diff --git a/.agents/skills/cli-agent/references/agent-message.md b/.agents/skills/cli-agent/references/agent-message.md index 64d7734692..b051e5f784 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 --threadId --authorRole [--actorId ] [--parts ] [--model ] [--agentId ] -csdk agent-message update --id [--actorId ] [--parts ] [--threadId ] [--authorRole ] [--model ] [--agentId ] +csdk agent-message create --threadId --databaseId --authorRole [--actorId ] [--parts ] [--model ] [--agentId ] +csdk agent-message update --id [--actorId ] [--parts ] [--threadId ] [--databaseId ] [--authorRole ] [--model ] [--agentId ] 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 --threadId --authorRole [--actorId ] [--parts ] [--model ] [--agentId ] +csdk agent-message create --threadId --databaseId --authorRole [--actorId ] [--parts ] [--model ] [--agentId ] ``` ### 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 498969a74d..fe16dc906a 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 --slug --name [--createdBy ] [--updatedBy ] [--description ] [--systemPrompt ] [--resources ] [--config ] [--isActive ] -csdk agent-persona update --id [--createdBy ] [--updatedBy ] [--slug ] [--name ] [--description ] [--systemPrompt ] [--resources ] [--config ] [--isActive ] +csdk agent-persona create --databaseId --slug --name [--createdBy ] [--updatedBy ] [--description ] [--systemPrompt ] [--resources ] [--config ] [--isActive ] +csdk agent-persona update --id [--createdBy ] [--updatedBy ] [--databaseId ] [--slug ] [--name ] [--description ] [--systemPrompt ] [--resources ] [--config ] [--isActive ] 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 --slug --name [--createdBy ] [--updatedBy ] [--description ] [--systemPrompt ] [--resources ] [--config ] [--isActive ] +csdk agent-persona create --databaseId --slug --name [--createdBy ] [--updatedBy ] [--description ] [--systemPrompt ] [--resources ] [--config ] [--isActive ] ``` ### 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 907795058e..2f945f930e 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 --threadId --title [--ownerId ] [--description ] [--status ] -csdk agent-plan update --id [--ownerId ] [--threadId ] [--title ] [--description ] [--status ] +csdk agent-plan create --threadId --databaseId --title [--ownerId ] [--description ] [--status ] +csdk agent-plan update --id [--ownerId ] [--threadId ] [--databaseId ] [--title ] [--description ] [--status ] 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 --threadId --title [--ownerId ] [--description ] [--status ] +csdk agent-plan create --threadId --databaseId --title [--ownerId ] [--description ] [--status ] ``` ### 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 4c815fff37..d36e585ea8 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 --name --content [--createdBy ] [--updatedBy ] [--description ] [--isDefault ] [--metadata ] -csdk agent-prompt update --id [--createdBy ] [--updatedBy ] [--name ] [--content ] [--description ] [--isDefault ] [--metadata ] +csdk agent-prompt create --databaseId --name --content [--createdBy ] [--updatedBy ] [--description ] [--isDefault ] [--metadata ] +csdk agent-prompt update --id [--createdBy ] [--updatedBy ] [--databaseId ] [--name ] [--content ] [--description ] [--isDefault ] [--metadata ] 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 --name --content [--createdBy ] [--updatedBy ] [--description ] [--isDefault ] [--metadata ] +csdk agent-prompt create --databaseId --name --content [--createdBy ] [--updatedBy ] [--description ] [--isDefault ] [--metadata ] ``` ### Get a agentPrompt by id diff --git a/.agents/skills/cli-agent/references/agent-resource.md b/.agents/skills/cli-agent/references/agent-resource.md index d769ab541c..a04a5047b6 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 --slug --title --body [--createdBy ] [--updatedBy ] [--kind ] [--description ] [--keywords ] [--isActive ] [--metadata ] [--isArchived ] [--archivedAt ] [--embedding ] [--embeddingUpdatedAt ] -csdk agent-resource update --id [--createdBy ] [--updatedBy ] [--slug ] [--kind ] [--title ] [--description ] [--body ] [--keywords ] [--isActive ] [--metadata ] [--isArchived ] [--archivedAt ] [--embedding ] [--embeddingUpdatedAt ] +csdk agent-resource create --databaseId --slug --title --body [--createdBy ] [--updatedBy ] [--kind ] [--description ] [--keywords ] [--isActive ] [--metadata ] [--isArchived ] [--archivedAt ] [--embedding ] [--embeddingUpdatedAt ] +csdk agent-resource update --id [--createdBy ] [--updatedBy ] [--databaseId ] [--slug ] [--kind ] [--title ] [--description ] [--body ] [--keywords ] [--isActive ] [--metadata ] [--isArchived ] [--archivedAt ] [--embedding ] [--embeddingUpdatedAt ] 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 --slug --title --body [--createdBy ] [--updatedBy ] [--kind ] [--description ] [--keywords ] [--isActive ] [--metadata ] [--isArchived ] [--archivedAt ] [--embedding ] [--embeddingUpdatedAt ] +csdk agent-resource create --databaseId --slug --title --body [--createdBy ] [--updatedBy ] [--kind ] [--description ] [--keywords ] [--isActive ] [--metadata ] [--isArchived ] [--archivedAt ] [--embedding ] [--embeddingUpdatedAt ] ``` ### 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 7472fee63b..f6c17680bc 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 --planId --description [--actorId ] [--status ] [--source ] [--error ] [--orderIndex ] [--requiresApproval ] [--approvalStatus ] [--approvedBy ] [--approvedAt ] [--approvalFeedback ] -csdk agent-task update --id [--actorId ] [--status ] [--planId ] [--description ] [--source ] [--error ] [--orderIndex ] [--requiresApproval ] [--approvalStatus ] [--approvedBy ] [--approvedAt ] [--approvalFeedback ] +csdk agent-task create --planId --databaseId --description [--actorId ] [--status ] [--source ] [--error ] [--orderIndex ] [--requiresApproval ] [--approvalStatus ] [--approvedBy ] [--approvedAt ] [--approvalFeedback ] +csdk agent-task update --id [--actorId ] [--status ] [--planId ] [--databaseId ] [--description ] [--source ] [--error ] [--orderIndex ] [--requiresApproval ] [--approvalStatus ] [--approvedBy ] [--approvedAt ] [--approvalFeedback ] 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 --planId --description [--actorId ] [--status ] [--source ] [--error ] [--orderIndex ] [--requiresApproval ] [--approvalStatus ] [--approvedBy ] [--approvedAt ] [--approvalFeedback ] +csdk agent-task create --planId --databaseId --description [--actorId ] [--status ] [--source ] [--error ] [--orderIndex ] [--requiresApproval ] [--approvalStatus ] [--approvedBy ] [--approvedAt ] [--approvalFeedback ] ``` ### 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 1ec7b571ef..533a088784 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 [--ownerId ] [--status ] [--isArchived ] [--archivedAt ] [--title ] [--mode ] [--model ] [--systemPrompt ] [--tags ] [--promptTemplateId ] [--agentId ] [--parentThreadId ] -csdk agent-thread update --id [--ownerId ] [--status ] [--isArchived ] [--archivedAt ] [--title ] [--mode ] [--model ] [--systemPrompt ] [--tags ] [--promptTemplateId ] [--agentId ] [--parentThreadId ] +csdk agent-thread create --databaseId [--ownerId ] [--status ] [--isArchived ] [--archivedAt ] [--title ] [--mode ] [--model ] [--systemPrompt ] [--tags ] [--promptTemplateId ] [--agentId ] [--parentThreadId ] +csdk agent-thread update --id [--ownerId ] [--databaseId ] [--status ] [--isArchived ] [--archivedAt ] [--title ] [--mode ] [--model ] [--systemPrompt ] [--tags ] [--promptTemplateId ] [--agentId ] [--parentThreadId ] 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 [--ownerId ] [--status ] [--isArchived ] [--archivedAt ] [--title ] [--mode ] [--model ] [--systemPrompt ] [--tags ] [--promptTemplateId ] [--agentId ] [--parentThreadId ] +csdk agent-thread create --databaseId [--ownerId ] [--status ] [--isArchived ] [--archivedAt ] [--title ] [--mode ] [--model ] [--systemPrompt ] [--tags ] [--promptTemplateId ] [--agentId ] [--parentThreadId ] ``` ### Get a agentThread by id diff --git a/.agents/skills/cli-agent/references/agent.md b/.agents/skills/cli-agent/references/agent.md index bbd726d4a3..6eebb48ec1 100644 --- a/.agents/skills/cli-agent/references/agent.md +++ b/.agents/skills/cli-agent/references/agent.md @@ -12,8 +12,8 @@ csdk agent list --where.. --orderBy csdk agent list --limit 10 --after csdk agent find-first --where.. csdk agent get --id -csdk agent create --name [--ownerId ] [--personaId ] [--parentId ] [--systemPrompt ] [--config ] [--status ] [--isEphemeral ] -csdk agent update --id [--ownerId ] [--personaId ] [--parentId ] [--name ] [--systemPrompt ] [--config ] [--status ] [--isEphemeral ] +csdk agent create --databaseId --name [--ownerId ] [--personaId ] [--parentId ] [--systemPrompt ] [--config ] [--status ] [--isEphemeral ] +csdk agent update --id [--ownerId ] [--databaseId ] [--personaId ] [--parentId ] [--name ] [--systemPrompt ] [--config ] [--status ] [--isEphemeral ] csdk agent delete --id ``` @@ -58,7 +58,7 @@ csdk agent list --where.id.equalTo --orderBy ID_ASC ### Create a agent ```bash -csdk agent create --name [--ownerId ] [--personaId ] [--parentId ] [--systemPrompt ] [--config ] [--status ] [--isEphemeral ] +csdk agent create --databaseId --name [--ownerId ] [--personaId ] [--parentId ] [--systemPrompt ] [--config ] [--status ] [--isEphemeral ] ``` ### Get a agent by id diff --git a/.agents/skills/cli-api/SKILL.md b/.agents/skills/cli-api/SKILL.md index 1134d90299..f65c206a67 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 46 tables and 10 custom operations +description: CLI tool (csdk) for the api API — provides CRUD commands for 46 tables and 8 custom operations --- # cli-api -CLI tool (csdk) for the api API — provides CRUD commands for 46 tables and 10 custom operations +CLI tool (csdk) for the api API — provides CRUD commands for 46 tables and 8 custom operations ## Usage @@ -100,15 +100,13 @@ See the `references/` directory for detailed per-entity API documentation: - [rls-setting](references/rls-setting.md) - [sql-action](references/sql-action.md) - [database-setting](references/database-setting.md) -- [webauthn-setting](references/webauthn-setting.md) - [ast-migration](references/ast-migration.md) +- [webauthn-setting](references/webauthn-setting.md) - [apply-registry-defaults](references/apply-registry-defaults.md) - [accept-database-transfer](references/accept-database-transfer.md) - [cancel-database-transfer](references/cancel-database-transfer.md) - [reject-database-transfer](references/reject-database-transfer.md) -- [provision-database-with-user](references/provision-database-with-user.md) -- [bootstrap-user](references/bootstrap-user.md) - [set-field-order](references/set-field-order.md) - [apply-rls](references/apply-rls.md) -- [create-user-database](references/create-user-database.md) +- [request-database](references/request-database.md) - [provision-bucket](references/provision-bucket.md) diff --git a/.agents/skills/cli-api/references/database.md b/.agents/skills/cli-api/references/database.md index 35e71400b2..fecac24005 100644 --- a/.agents/skills/cli-api/references/database.md +++ b/.agents/skills/cli-api/references/database.md @@ -12,8 +12,8 @@ csdk database list --where.. --orderBy csdk database list --limit 10 --after csdk database find-first --where.. csdk database get --id -csdk database create [--ownerId ] [--schemaHash ] [--name ] [--label ] [--hash ] -csdk database update --id [--ownerId ] [--schemaHash ] [--name ] [--label ] [--hash ] +csdk database create [--ownerId ] [--schemaHash ] [--name ] [--label ] [--hash ] [--platform ] +csdk database update --id [--ownerId ] [--schemaHash ] [--name ] [--label ] [--hash ] [--platform ] csdk database delete --id ``` @@ -58,7 +58,7 @@ csdk database list --where.id.equalTo --orderBy ID_ASC ### Create a database ```bash -csdk database create [--ownerId ] [--schemaHash ] [--name ] [--label ] [--hash ] +csdk database create [--ownerId ] [--schemaHash ] [--name ] [--label ] [--hash ] [--platform ] ``` ### Get a database by id diff --git a/.agents/skills/cli-api/references/field.md b/.agents/skills/cli-api/references/field.md index 4f4c26945c..ecff3a0791 100644 --- a/.agents/skills/cli-api/references/field.md +++ b/.agents/skills/cli-api/references/field.md @@ -12,8 +12,8 @@ csdk field list --where.. --orderBy csdk field list --limit 10 --after csdk field find-first --where.. csdk field get --id -csdk field create --tableId --name --type [--databaseId ] [--label ] [--description ] [--smartTags ] [--isRequired ] [--apiRequired ] [--defaultValue ] [--fieldOrder ] [--regexp ] [--chk ] [--chkExpr ] [--min ] [--max ] [--tags ] [--category ] -csdk field update --id [--databaseId ] [--tableId ] [--name ] [--label ] [--description ] [--smartTags ] [--isRequired ] [--apiRequired ] [--defaultValue ] [--type ] [--fieldOrder ] [--regexp ] [--chk ] [--chkExpr ] [--min ] [--max ] [--tags ] [--category ] +csdk field create --tableId --name --type [--databaseId ] [--label ] [--description ] [--smartTags ] [--isRequired ] [--apiRequired ] [--defaultValue ] [--generationExpression ] [--generationType ] [--fieldOrder ] [--regexp ] [--chk ] [--chkExpr ] [--min ] [--max ] [--tags ] [--category ] +csdk field update --id [--databaseId ] [--tableId ] [--name ] [--label ] [--description ] [--smartTags ] [--isRequired ] [--apiRequired ] [--defaultValue ] [--generationExpression ] [--generationType ] [--type ] [--fieldOrder ] [--regexp ] [--chk ] [--chkExpr ] [--min ] [--max ] [--tags ] [--category ] csdk field delete --id ``` @@ -58,7 +58,7 @@ csdk field list --where.id.equalTo --orderBy ID_ASC ### Create a field ```bash -csdk field create --tableId --name --type [--databaseId ] [--label ] [--description ] [--smartTags ] [--isRequired ] [--apiRequired ] [--defaultValue ] [--fieldOrder ] [--regexp ] [--chk ] [--chkExpr ] [--min ] [--max ] [--tags ] [--category ] +csdk field create --tableId --name --type [--databaseId ] [--label ] [--description ] [--smartTags ] [--isRequired ] [--apiRequired ] [--defaultValue ] [--generationExpression ] [--generationType ] [--fieldOrder ] [--regexp ] [--chk ] [--chkExpr ] [--min ] [--max ] [--tags ] [--category ] ``` ### Get a field by id diff --git a/.agents/skills/cli-api/references/policy.md b/.agents/skills/cli-api/references/policy.md index 01617f1e66..726da3ae77 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 [--databaseId ] [--name ] [--granteeName ] [--privilege ] [--permissive ] [--disabled ] [--policyType ] [--data ] [--smartTags ] [--category ] [--tags ] -csdk policy update --id [--databaseId ] [--tableId ] [--name ] [--granteeName ] [--privilege ] [--permissive ] [--disabled ] [--policyType ] [--data ] [--smartTags ] [--category ] [--tags ] +csdk policy create --tableId [--databaseId ] [--name ] [--granteeName ] [--privilege ] [--permissive ] [--disabled ] [--policyType ] [--data ] [--withCheck ] [--smartTags ] [--category ] [--tags ] +csdk policy update --id [--databaseId ] [--tableId ] [--name ] [--granteeName ] [--privilege ] [--permissive ] [--disabled ] [--policyType ] [--data ] [--withCheck ] [--smartTags ] [--category ] [--tags ] 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 [--databaseId ] [--name ] [--granteeName ] [--privilege ] [--permissive ] [--disabled ] [--policyType ] [--data ] [--smartTags ] [--category ] [--tags ] +csdk policy create --tableId [--databaseId ] [--name ] [--granteeName ] [--privilege ] [--permissive ] [--disabled ] [--policyType ] [--data ] [--withCheck ] [--smartTags ] [--category ] [--tags ] ``` ### Get a policy by id diff --git a/.agents/skills/cli-api/references/request-database.md b/.agents/skills/cli-api/references/request-database.md new file mode 100644 index 0000000000..d33bcc6a6c --- /dev/null +++ b/.agents/skills/cli-api/references/request-database.md @@ -0,0 +1,25 @@ +# requestDatabase + + + +Requests a database and returns a ticket (database_provision_module row) to poll. + +Pass exactly one of preset_slug or modules. The pool, presets, and owner bootstrap are private implementation details: a warm pool hit fulfills the ticket immediately (fulfilled_at set, deferred owner bootstrap), otherwise the database is cold-provisioned with exactly the requested modules. Poll the ticket until status = 'completed'; it then carries database_id and fulfilled_at. + +Example usage: + SELECT * FROM metaschema_public.request_database('my_app', 'example.com', preset_slug := 'full'); + SELECT * FROM metaschema_public.request_database('my_app', 'example.com', modules := '["users_module", "emails_module"]'::jsonb); + +## Usage + +```bash +csdk request-database --input.clientMutationId --input.databaseName --input.domain --input.presetSlug --input.modules --input.options --input.subdomain +``` + +## Examples + +### Run requestDatabase + +```bash +csdk request-database --input.clientMutationId --input.databaseName --input.domain --input.presetSlug --input.modules --input.options --input.subdomain +``` diff --git a/.agents/skills/cli-api/references/table.md b/.agents/skills/cli-api/references/table.md index dbf4cba79a..a8e6ad8b20 100644 --- a/.agents/skills/cli-api/references/table.md +++ b/.agents/skills/cli-api/references/table.md @@ -12,8 +12,8 @@ csdk table list --where.. --orderBy csdk table list --limit 10 --after csdk table find-first --where.. csdk table get --id -csdk table create --schemaId --name [--databaseId ] [--label ] [--description ] [--smartTags ] [--category ] [--useRls ] [--timestamps ] [--peoplestamps ] [--pluralName ] [--singularName ] [--tags ] [--partitioned ] [--partitionStrategy ] [--partitionKeyNames ] [--partitionKeyTypes ] [--inheritsId ] -csdk table update --id [--databaseId ] [--schemaId ] [--name ] [--label ] [--description ] [--smartTags ] [--category ] [--useRls ] [--timestamps ] [--peoplestamps ] [--pluralName ] [--singularName ] [--tags ] [--partitioned ] [--partitionStrategy ] [--partitionKeyNames ] [--partitionKeyTypes ] [--inheritsId ] +csdk table create --schemaId --name [--databaseId ] [--label ] [--description ] [--smartTags ] [--category ] [--useRls ] [--timestamps ] [--peoplestamps ] [--pluralName ] [--singularName ] [--tags ] [--stepUp ] [--partitioned ] [--partitionStrategy ] [--partitionKeyNames ] [--partitionKeyTypes ] [--inheritsId ] +csdk table update --id [--databaseId ] [--schemaId ] [--name ] [--label ] [--description ] [--smartTags ] [--category ] [--useRls ] [--timestamps ] [--peoplestamps ] [--pluralName ] [--singularName ] [--tags ] [--stepUp ] [--partitioned ] [--partitionStrategy ] [--partitionKeyNames ] [--partitionKeyTypes ] [--inheritsId ] csdk table delete --id ``` @@ -58,7 +58,7 @@ csdk table list --where.id.equalTo --orderBy ID_ASC ### Create a table ```bash -csdk table create --schemaId --name [--databaseId ] [--label ] [--description ] [--smartTags ] [--category ] [--useRls ] [--timestamps ] [--peoplestamps ] [--pluralName ] [--singularName ] [--tags ] [--partitioned ] [--partitionStrategy ] [--partitionKeyNames ] [--partitionKeyTypes ] [--inheritsId ] +csdk table create --schemaId --name [--databaseId ] [--label ] [--description ] [--smartTags ] [--category ] [--useRls ] [--timestamps ] [--peoplestamps ] [--pluralName ] [--singularName ] [--tags ] [--stepUp ] [--partitioned ] [--partitionStrategy ] [--partitionKeyNames ] [--partitionKeyTypes ] [--inheritsId ] ``` ### Get a table by id diff --git a/.agents/skills/cli-auth/SKILL.md b/.agents/skills/cli-auth/SKILL.md index a734d7daff..c8c7609075 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 34 custom operations +description: CLI tool (csdk) for the auth API — provides CRUD commands for 13 tables and 35 custom operations --- # cli-auth -CLI tool (csdk) for the auth API — provides CRUD commands for 13 tables and 34 custom operations +CLI tool (csdk) for the auth API — provides CRUD commands for 13 tables and 35 custom operations ## Usage @@ -78,6 +78,7 @@ See the `references/` directory for detailed per-entity API documentation: - [send-account-deletion-email](references/send-account-deletion-email.md) - [check-password](references/check-password.md) - [delete-org-principal](references/delete-org-principal.md) +- [delete-principal](references/delete-principal.md) - [disconnect-account](references/disconnect-account.md) - [revoke-api-key](references/revoke-api-key.md) - [revoke-session](references/revoke-session.md) @@ -89,13 +90,13 @@ See the `references/` directory for detailed per-entity API documentation: - [verify-email](references/verify-email.md) - [provision-new-user](references/provision-new-user.md) - [reset-password](references/reset-password.md) +- [create-org-principal](references/create-org-principal.md) - [sign-in-cross-origin](references/sign-in-cross-origin.md) - [sign-in-sms-otp](references/sign-in-sms-otp.md) - [sign-up-sms](references/sign-up-sms.md) - [sign-up](references/sign-up.md) - [sign-in](references/sign-in.md) - [link-identity](references/link-identity.md) -- [create-org-principal](references/create-org-principal.md) - [extend-token-expires](references/extend-token-expires.md) - [create-org-api-key](references/create-org-api-key.md) - [create-api-key](references/create-api-key.md) diff --git a/.agents/skills/cli-auth/references/create-org-principal.md b/.agents/skills/cli-auth/references/create-org-principal.md index f6f6d52944..5b691a506c 100644 --- a/.agents/skills/cli-auth/references/create-org-principal.md +++ b/.agents/skills/cli-auth/references/create-org-principal.md @@ -7,7 +7,7 @@ Execute the createOrgPrincipal mutation ## Usage ```bash -csdk create-org-principal --input.clientMutationId --input.name --input.orgId --input.allowedMask --input.isReadOnly --input.bypassStepUp +csdk create-org-principal --input.clientMutationId --input.name --input.orgId --input.useAdminOwner --input.isReadOnly --input.bypassStepUp ``` ## Examples @@ -15,5 +15,5 @@ csdk create-org-principal --input.clientMutationId --input.name --input.name --input.orgId --input.allowedMask --input.isReadOnly --input.bypassStepUp +csdk create-org-principal --input.clientMutationId --input.name --input.orgId --input.useAdminOwner --input.isReadOnly --input.bypassStepUp ``` diff --git a/.agents/skills/cli-auth/references/delete-principal.md b/.agents/skills/cli-auth/references/delete-principal.md new file mode 100644 index 0000000000..e2c184d69e --- /dev/null +++ b/.agents/skills/cli-auth/references/delete-principal.md @@ -0,0 +1,19 @@ +# deletePrincipal + + + +Execute the deletePrincipal mutation + +## Usage + +```bash +csdk delete-principal --input.clientMutationId --input.principalId +``` + +## Examples + +### Run deletePrincipal + +```bash +csdk delete-principal --input.clientMutationId --input.principalId +``` diff --git a/.agents/skills/cli-auth/references/principal-scope-override.md b/.agents/skills/cli-auth/references/principal-scope-override.md index e58c3919b1..8f99441601 100644 --- a/.agents/skills/cli-auth/references/principal-scope-override.md +++ b/.agents/skills/cli-auth/references/principal-scope-override.md @@ -12,8 +12,8 @@ csdk principal-scope-override list --where.. --orderBy csdk principal-scope-override find-first --where.. csdk principal-scope-override get --id -csdk principal-scope-override create --principalId --membershipType --allowedMask --isAdmin --isReadOnly -csdk principal-scope-override update --id [--principalId ] [--membershipType ] [--allowedMask ] [--isAdmin ] [--isReadOnly ] +csdk principal-scope-override create --principalId --membershipType --allowedMask --useAdminOwner --isActive --isReadOnly +csdk principal-scope-override update --id [--principalId ] [--membershipType ] [--allowedMask ] [--useAdminOwner ] [--isActive ] [--isReadOnly ] csdk principal-scope-override delete --id ``` @@ -58,7 +58,7 @@ csdk principal-scope-override list --where.id.equalTo --orderBy ID_ASC ### Create a principalScopeOverride ```bash -csdk principal-scope-override create --principalId --membershipType --allowedMask --isAdmin --isReadOnly +csdk principal-scope-override create --principalId --membershipType --allowedMask --useAdminOwner --isActive --isReadOnly ``` ### Get a principalScopeOverride by id diff --git a/.agents/skills/cli-auth/references/principal.md b/.agents/skills/cli-auth/references/principal.md index 9b67208a8f..40d424304a 100644 --- a/.agents/skills/cli-auth/references/principal.md +++ b/.agents/skills/cli-auth/references/principal.md @@ -12,8 +12,8 @@ csdk principal list --where.. --orderBy csdk principal list --limit 10 --after csdk principal find-first --where.. csdk principal get --principalId -csdk principal create --id --ownerId --userId --name --allowedMask --isReadOnly --bypassStepUp -csdk principal update --principalId [--id ] [--ownerId ] [--userId ] [--name ] [--allowedMask ] [--isReadOnly ] [--bypassStepUp ] +csdk principal create --id --ownerId --userId --name --useAdminOwner --isReadOnly --bypassStepUp +csdk principal update --principalId [--id ] [--ownerId ] [--userId ] [--name ] [--useAdminOwner ] [--isReadOnly ] [--bypassStepUp ] csdk principal delete --principalId ``` @@ -58,7 +58,7 @@ csdk principal list --where.principalId.equalTo --orderBy PRINCIPAL_ID_A ### Create a principal ```bash -csdk principal create --id --ownerId --userId --name --allowedMask --isReadOnly --bypassStepUp +csdk principal create --id --ownerId --userId --name --useAdminOwner --isReadOnly --bypassStepUp ``` ### Get a principal by principalId diff --git a/.agents/skills/cli-compute/SKILL.md b/.agents/skills/cli-compute/SKILL.md index b588f09019..f009c9f89c 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 22 tables and 15 custom operations +description: CLI tool (csdk) for the compute API — provides CRUD commands for 44 tables and 18 custom operations --- # cli-compute -CLI tool (csdk) for the compute API — provides CRUD commands for 22 tables and 15 custom operations +CLI tool (csdk) for the compute API — provides CRUD commands for 44 tables and 18 custom operations ## Usage @@ -23,13 +23,13 @@ csdk auth set-token csdk config set csdk config get -# CRUD for any table (e.g. get-all-record) -csdk get-all-record list -csdk get-all-record get --id -csdk get-all-record create -- +# CRUD for any table (e.g. infra-get-all-record) +csdk infra-get-all-record list +csdk infra-get-all-record get --id +csdk infra-get-all-record create -- # Non-interactive mode (skip all prompts, use flags only) -csdk --no-tty get-all-record list +csdk --no-tty infra-get-all-record list ``` ## Examples @@ -40,13 +40,13 @@ csdk --no-tty get-all-record list csdk context create local --endpoint http://localhost:5000/graphql csdk context use local csdk auth set-token -csdk get-all-record list +csdk infra-get-all-record list ``` ### Non-interactive mode (for scripts and CI) ```bash -csdk --no-tty get-all-record create -- +csdk --no-tty infra-get-all-record create -- ``` ## References @@ -56,33 +56,57 @@ See the `references/` directory for detailed per-entity API documentation: - [context](references/context.md) - [auth](references/auth.md) - [config](references/config.md) +- [infra-get-all-record](references/infra-get-all-record.md) - [get-all-record](references/get-all-record.md) +- [infra-ref](references/infra-ref.md) +- [infra-store](references/infra-store.md) - [function-api-binding](references/function-api-binding.md) -- [function-deployment](references/function-deployment.md) -- [resource](references/resource.md) - [function-graph-ref](references/function-graph-ref.md) - [function-graph-store](references/function-graph-store.md) +- [platform-function-api-binding](references/platform-function-api-binding.md) +- [platform-resources-requirements-state](references/platform-resources-requirements-state.md) +- [resources-requirements-state](references/resources-requirements-state.md) +- [platform-resource-status-check](references/platform-resource-status-check.md) +- [platform-function-deployment](references/platform-function-deployment.md) +- [platform-resource](references/platform-resource.md) +- [platform-resource-definition](references/platform-resource-definition.md) +- [infra-object](references/infra-object.md) - [function-graph-object](references/function-graph-object.md) +- [platform-function-deployment-event](references/platform-function-deployment-event.md) +- [platform-resource-event](references/platform-resource-event.md) +- [resource-status-check](references/resource-status-check.md) +- [function-deployment](references/function-deployment.md) +- [resource](references/resource.md) +- [resource-definition](references/resource-definition.md) - [function-deployment-event](references/function-deployment-event.md) -- [org-function-execution-log](references/org-function-execution-log.md) +- [platform-function-execution-log](references/platform-function-execution-log.md) - [resource-event](references/resource-event.md) - [function-graph-execution-output](references/function-graph-execution-output.md) +- [infra-commit](references/infra-commit.md) - [function-graph-commit](references/function-graph-commit.md) -- [secret-definition](references/secret-definition.md) - [function-execution-log](references/function-execution-log.md) +- [platform-resources-resolved-requirement](references/platform-resources-resolved-requirement.md) +- [resources-resolved-requirement](references/resources-resolved-requirement.md) +- [db-preset](references/db-preset.md) +- [platform-namespace](references/platform-namespace.md) - [function-graph](references/function-graph.md) - [function-graph-execution-node-state](references/function-graph-execution-node-state.md) -- [platform-namespace](references/platform-namespace.md) -- [org-function-invocation](references/org-function-invocation.md) +- [namespace](references/namespace.md) +- [platform-function-invocation](references/platform-function-invocation.md) - [function-invocation](references/function-invocation.md) - [platform-namespace-event](references/platform-namespace-event.md) +- [integration-provider](references/integration-provider.md) +- [namespace-event](references/namespace-event.md) - [function-graph-execution](references/function-graph-execution.md) +- [platform-function-definition](references/platform-function-definition.md) - [function-definition](references/function-definition.md) - [read-function-graph](references/read-function-graph.md) - [validate-function-graph](references/validate-function-graph.md) +- [infra-init-empty-repo](references/infra-init-empty-repo.md) - [init-empty-repo](references/init-empty-repo.md) -- [set-data-at-path](references/set-data-at-path.md) - [import-definitions](references/import-definitions.md) +- [infra-set-data-at-path](references/infra-set-data-at-path.md) +- [set-data-at-path](references/set-data-at-path.md) - [copy-graph](references/copy-graph.md) - [save-graph](references/save-graph.md) - [add-edge-and-save](references/add-edge-and-save.md) @@ -90,6 +114,7 @@ See the `references/` directory for detailed per-entity API documentation: - [import-graph-json](references/import-graph-json.md) - [add-edge](references/add-edge.md) - [add-node](references/add-node.md) +- [infra-insert-node-at-path](references/infra-insert-node-at-path.md) - [insert-node-at-path](references/insert-node-at-path.md) - [start-execution](references/start-execution.md) - [provision-bucket](references/provision-bucket.md) diff --git a/.agents/skills/cli-compute/references/add-edge.md b/.agents/skills/cli-compute/references/add-edge.md index 680956d4e6..bb4c098c66 100644 --- a/.agents/skills/cli-compute/references/add-edge.md +++ b/.agents/skills/cli-compute/references/add-edge.md @@ -7,7 +7,7 @@ Execute the addEdge mutation ## Usage ```bash -csdk add-edge --input.clientMutationId --input.databaseId --input.rootHash --input.srcNode --input.srcPort --input.dstNode --input.dstPort --input.context --input.graphName +csdk add-edge --input.clientMutationId --input.scopeId --input.rootHash --input.srcNode --input.srcPort --input.dstNode --input.dstPort --input.context --input.graphName ``` ## Examples @@ -15,5 +15,5 @@ csdk add-edge --input.clientMutationId --input.databaseId --inpu ### Run addEdge ```bash -csdk add-edge --input.clientMutationId --input.databaseId --input.rootHash --input.srcNode --input.srcPort --input.dstNode --input.dstPort --input.context --input.graphName +csdk add-edge --input.clientMutationId --input.scopeId --input.rootHash --input.srcNode --input.srcPort --input.dstNode --input.dstPort --input.context --input.graphName ``` diff --git a/.agents/skills/cli-compute/references/add-node.md b/.agents/skills/cli-compute/references/add-node.md index 39bfc31fa4..913c4ba251 100644 --- a/.agents/skills/cli-compute/references/add-node.md +++ b/.agents/skills/cli-compute/references/add-node.md @@ -7,7 +7,7 @@ Execute the addNode mutation ## Usage ```bash -csdk add-node --input.clientMutationId --input.databaseId --input.rootHash --input.nodeName --input.nodeType --input.context --input.graphName --input.props --input.meta +csdk add-node --input.clientMutationId --input.scopeId --input.rootHash --input.nodeName --input.nodeType --input.context --input.graphName --input.props --input.meta ``` ## Examples @@ -15,5 +15,5 @@ csdk add-node --input.clientMutationId --input.databaseId --inpu ### Run addNode ```bash -csdk add-node --input.clientMutationId --input.databaseId --input.rootHash --input.nodeName --input.nodeType --input.context --input.graphName --input.props --input.meta +csdk add-node --input.clientMutationId --input.scopeId --input.rootHash --input.nodeName --input.nodeType --input.context --input.graphName --input.props --input.meta ``` diff --git a/.agents/skills/cli-compute/references/copy-graph.md b/.agents/skills/cli-compute/references/copy-graph.md index 99a6e5be68..ddaea71749 100644 --- a/.agents/skills/cli-compute/references/copy-graph.md +++ b/.agents/skills/cli-compute/references/copy-graph.md @@ -7,7 +7,7 @@ Execute the copyGraph mutation ## Usage ```bash -csdk copy-graph --input.clientMutationId --input.databaseId --input.graphId --input.name +csdk copy-graph --input.clientMutationId --input.scopeId --input.graphId --input.name ``` ## Examples @@ -15,5 +15,5 @@ csdk copy-graph --input.clientMutationId --input.databaseId --in ### Run copyGraph ```bash -csdk copy-graph --input.clientMutationId --input.databaseId --input.graphId --input.name +csdk copy-graph --input.clientMutationId --input.scopeId --input.graphId --input.name ``` diff --git a/.agents/skills/cli-compute/references/db-preset.md b/.agents/skills/cli-compute/references/db-preset.md new file mode 100644 index 0000000000..0528cdf5df --- /dev/null +++ b/.agents/skills/cli-compute/references/db-preset.md @@ -0,0 +1,68 @@ +# dbPreset + + + +CRUD operations for DbPreset records via csdk CLI + +## Usage + +```bash +csdk db-preset list +csdk db-preset list --where.. --orderBy +csdk db-preset list --limit 10 --after +csdk db-preset find-first --where.. +csdk db-preset get --id +csdk db-preset create --slug --definition [--storeId ] [--commitId ] [--modulesHash ] [--label ] [--description ] [--active ] +csdk db-preset update --id [--storeId ] [--slug ] [--definition ] [--commitId ] [--modulesHash ] [--label ] [--description ] [--active ] +csdk db-preset delete --id +``` + +## Examples + +### List dbPreset records + +```bash +csdk db-preset list +``` + +### List dbPreset records with pagination + +```bash +csdk db-preset list --limit 10 --offset 0 +``` + +### List dbPreset records with cursor pagination + +```bash +csdk db-preset list --limit 10 --after +``` + +### Find first matching dbPreset + +```bash +csdk db-preset find-first --where.id.equalTo +``` + +### List dbPreset records with field selection + +```bash +csdk db-preset list --select id,id +``` + +### List dbPreset records with filtering and ordering + +```bash +csdk db-preset list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a dbPreset + +```bash +csdk db-preset create --slug --definition [--storeId ] [--commitId ] [--modulesHash ] [--label ] [--description ] [--active ] +``` + +### Get a dbPreset by id + +```bash +csdk db-preset get --id +``` diff --git a/.agents/skills/cli-compute/references/function-definition.md b/.agents/skills/cli-compute/references/function-definition.md index 8de4fc411f..44690c84b1 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 --scope --name --taskIdentifier [--description ] [--isInvocable ] [--maxAttempts ] [--priority ] [--queueName ] [--runtime ] [--image ] [--concurrency ] [--scaleMin ] [--scaleMax ] [--timeoutSeconds ] [--resources ] [--isBuiltIn ] [--requiredSecrets ] [--requiredConfigs ] [--requiredBuckets ] [--requiredModels ] [--inputs ] [--outputs ] [--props ] [--volatile ] [--icon ] [--category ] -csdk function-definition update --id [--scope ] [--name ] [--taskIdentifier ] [--description ] [--isInvocable ] [--maxAttempts ] [--priority ] [--queueName ] [--runtime ] [--image ] [--concurrency ] [--scaleMin ] [--scaleMax ] [--timeoutSeconds ] [--resources ] [--isBuiltIn ] [--requiredSecrets ] [--requiredConfigs ] [--requiredBuckets ] [--requiredModels ] [--inputs ] [--outputs ] [--props ] [--volatile ] [--icon ] [--category ] +csdk function-definition create --scope --name --taskIdentifier --databaseId [--description ] [--isPublished ] [--accessChannels ] [--publishedAt ] [--maxAttempts ] [--priority ] [--queueName ] [--runtime ] [--targetSchema ] [--targetFunction ] [--moduleTable ] [--functionColumns ] [--payloadArgs ] [--image ] [--concurrency ] [--scaleMin ] [--scaleMax ] [--timeoutSeconds ] [--resources ] [--isBuiltIn ] [--requiredSecrets ] [--requiredConfigs ] [--integrations ] [--requiredBuckets ] [--requiredModels ] [--inputs ] [--outputs ] [--props ] [--volatile ] [--icon ] [--category ] +csdk function-definition update --id [--scope ] [--name ] [--taskIdentifier ] [--description ] [--isPublished ] [--accessChannels ] [--publishedAt ] [--maxAttempts ] [--priority ] [--queueName ] [--runtime ] [--targetSchema ] [--targetFunction ] [--moduleTable ] [--functionColumns ] [--payloadArgs ] [--image ] [--concurrency ] [--scaleMin ] [--scaleMax ] [--timeoutSeconds ] [--resources ] [--isBuiltIn ] [--requiredSecrets ] [--requiredConfigs ] [--integrations ] [--requiredBuckets ] [--requiredModels ] [--inputs ] [--outputs ] [--props ] [--volatile ] [--icon ] [--category ] [--databaseId ] 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 --scope --name --taskIdentifier [--description ] [--isInvocable ] [--maxAttempts ] [--priority ] [--queueName ] [--runtime ] [--image ] [--concurrency ] [--scaleMin ] [--scaleMax ] [--timeoutSeconds ] [--resources ] [--isBuiltIn ] [--requiredSecrets ] [--requiredConfigs ] [--requiredBuckets ] [--requiredModels ] [--inputs ] [--outputs ] [--props ] [--volatile ] [--icon ] [--category ] +csdk function-definition create --scope --name --taskIdentifier --databaseId [--description ] [--isPublished ] [--accessChannels ] [--publishedAt ] [--maxAttempts ] [--priority ] [--queueName ] [--runtime ] [--targetSchema ] [--targetFunction ] [--moduleTable ] [--functionColumns ] [--payloadArgs ] [--image ] [--concurrency ] [--scaleMin ] [--scaleMax ] [--timeoutSeconds ] [--resources ] [--isBuiltIn ] [--requiredSecrets ] [--requiredConfigs ] [--integrations ] [--requiredBuckets ] [--requiredModels ] [--inputs ] [--outputs ] [--props ] [--volatile ] [--icon ] [--category ] ``` ### 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 4e960f6167..b160a9b109 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 --functionDefinitionId --namespaceId --databaseId [--status ] [--serviceUrl ] [--serviceName ] [--revision ] [--image ] [--concurrency ] [--scaleMin ] [--scaleMax ] [--timeoutSeconds ] [--resources ] [--lastError ] [--lastErrorAt ] [--errorCount ] [--labels ] [--annotations ] -csdk function-deployment update --id [--functionDefinitionId ] [--namespaceId ] [--status ] [--serviceUrl ] [--serviceName ] [--revision ] [--image ] [--concurrency ] [--scaleMin ] [--scaleMax ] [--timeoutSeconds ] [--resources ] [--lastError ] [--lastErrorAt ] [--errorCount ] [--labels ] [--annotations ] [--databaseId ] +csdk function-deployment create --namespaceId --image --databaseId [--status ] [--serviceUrl ] [--serviceName ] [--revision ] [--imageVersion ] [--handlerName ] [--concurrency ] [--scaleMin ] [--scaleMax ] [--timeoutSeconds ] [--resources ] [--lastError ] [--lastErrorAt ] [--errorCount ] [--labels ] [--annotations ] +csdk function-deployment update --id [--namespaceId ] [--status ] [--serviceUrl ] [--serviceName ] [--revision ] [--image ] [--imageVersion ] [--handlerName ] [--concurrency ] [--scaleMin ] [--scaleMax ] [--timeoutSeconds ] [--resources ] [--lastError ] [--lastErrorAt ] [--errorCount ] [--labels ] [--annotations ] [--databaseId ] 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 --functionDefinitionId --namespaceId --databaseId [--status ] [--serviceUrl ] [--serviceName ] [--revision ] [--image ] [--concurrency ] [--scaleMin ] [--scaleMax ] [--timeoutSeconds ] [--resources ] [--lastError ] [--lastErrorAt ] [--errorCount ] [--labels ] [--annotations ] +csdk function-deployment create --namespaceId --image --databaseId [--status ] [--serviceUrl ] [--serviceName ] [--revision ] [--imageVersion ] [--handlerName ] [--concurrency ] [--scaleMin ] [--scaleMax ] [--timeoutSeconds ] [--resources ] [--lastError ] [--lastErrorAt ] [--errorCount ] [--labels ] [--annotations ] ``` ### Get a functionDeployment by id diff --git a/.agents/skills/cli-compute/references/function-graph-commit.md b/.agents/skills/cli-compute/references/function-graph-commit.md index b33e991b81..7016f3d6d6 100644 --- a/.agents/skills/cli-compute/references/function-graph-commit.md +++ b/.agents/skills/cli-compute/references/function-graph-commit.md @@ -12,8 +12,8 @@ csdk function-graph-commit list --where.. --orderBy csdk function-graph-commit list --limit 10 --after csdk function-graph-commit find-first --where.. csdk function-graph-commit get --id -csdk function-graph-commit create --databaseId --storeId [--message ] [--parentIds ] [--authorId ] [--committerId ] [--treeId ] [--date ] -csdk function-graph-commit update --id [--message ] [--databaseId ] [--storeId ] [--parentIds ] [--authorId ] [--committerId ] [--treeId ] [--date ] +csdk function-graph-commit create --scopeId --storeId [--message ] [--parentIds ] [--authorId ] [--committerId ] [--treeId ] [--date ] +csdk function-graph-commit update --id [--message ] [--scopeId ] [--storeId ] [--parentIds ] [--authorId ] [--committerId ] [--treeId ] [--date ] csdk function-graph-commit delete --id ``` @@ -58,7 +58,7 @@ csdk function-graph-commit list --where.id.equalTo --orderBy ID_ASC ### Create a functionGraphCommit ```bash -csdk function-graph-commit create --databaseId --storeId [--message ] [--parentIds ] [--authorId ] [--committerId ] [--treeId ] [--date ] +csdk function-graph-commit create --scopeId --storeId [--message ] [--parentIds ] [--authorId ] [--committerId ] [--treeId ] [--date ] ``` ### Get a functionGraphCommit by id diff --git a/.agents/skills/cli-compute/references/function-graph-execution-node-state.md b/.agents/skills/cli-compute/references/function-graph-execution-node-state.md index 086612504a..2972c94c4b 100644 --- a/.agents/skills/cli-compute/references/function-graph-execution-node-state.md +++ b/.agents/skills/cli-compute/references/function-graph-execution-node-state.md @@ -12,8 +12,8 @@ csdk function-graph-execution-node-state list --where.. --ord csdk function-graph-execution-node-state list --limit 10 --after csdk function-graph-execution-node-state find-first --where.. csdk function-graph-execution-node-state get --id -csdk function-graph-execution-node-state create --executionId --databaseId --nodeName [--nodePath ] [--status ] [--startedAt ] [--completedAt ] [--errorCode ] [--errorMessage ] [--outputId ] -csdk function-graph-execution-node-state update --id [--executionId ] [--databaseId ] [--nodeName ] [--nodePath ] [--status ] [--startedAt ] [--completedAt ] [--errorCode ] [--errorMessage ] [--outputId ] +csdk function-graph-execution-node-state create --executionId --scopeId --nodeName [--nodePath ] [--status ] [--startedAt ] [--completedAt ] [--errorCode ] [--errorMessage ] [--outputId ] +csdk function-graph-execution-node-state update --id [--executionId ] [--scopeId ] [--nodeName ] [--nodePath ] [--status ] [--startedAt ] [--completedAt ] [--errorCode ] [--errorMessage ] [--outputId ] csdk function-graph-execution-node-state delete --id ``` @@ -58,7 +58,7 @@ csdk function-graph-execution-node-state list --where.id.equalTo --order ### Create a functionGraphExecutionNodeState ```bash -csdk function-graph-execution-node-state create --executionId --databaseId --nodeName [--nodePath ] [--status ] [--startedAt ] [--completedAt ] [--errorCode ] [--errorMessage ] [--outputId ] +csdk function-graph-execution-node-state create --executionId --scopeId --nodeName [--nodePath ] [--status ] [--startedAt ] [--completedAt ] [--errorCode ] [--errorMessage ] [--outputId ] ``` ### Get a functionGraphExecutionNodeState by id diff --git a/.agents/skills/cli-compute/references/function-graph-execution-output.md b/.agents/skills/cli-compute/references/function-graph-execution-output.md index 863af1bde6..2b809399a7 100644 --- a/.agents/skills/cli-compute/references/function-graph-execution-output.md +++ b/.agents/skills/cli-compute/references/function-graph-execution-output.md @@ -12,8 +12,8 @@ csdk function-graph-execution-output list --where.. --orderBy csdk function-graph-execution-output list --limit 10 --after csdk function-graph-execution-output find-first --where.. csdk function-graph-execution-output get --id -csdk function-graph-execution-output create --databaseId --hash --data -csdk function-graph-execution-output update --id [--databaseId ] [--hash ] [--data ] +csdk function-graph-execution-output create --scopeId --hash --data +csdk function-graph-execution-output update --id [--scopeId ] [--hash ] [--data ] csdk function-graph-execution-output delete --id ``` @@ -58,7 +58,7 @@ csdk function-graph-execution-output list --where.id.equalTo --orderBy I ### Create a functionGraphExecutionOutput ```bash -csdk function-graph-execution-output create --databaseId --hash --data +csdk function-graph-execution-output create --scopeId --hash --data ``` ### Get a functionGraphExecutionOutput by id diff --git a/.agents/skills/cli-compute/references/function-graph-execution.md b/.agents/skills/cli-compute/references/function-graph-execution.md index eba250196b..041de50428 100644 --- a/.agents/skills/cli-compute/references/function-graph-execution.md +++ b/.agents/skills/cli-compute/references/function-graph-execution.md @@ -12,8 +12,8 @@ csdk function-graph-execution list --where.. --orderBy csdk function-graph-execution find-first --where.. csdk function-graph-execution get --id -csdk function-graph-execution create --graphId --databaseId --outputNode [--startedAt ] [--invocationId ] [--outputPort ] [--status ] [--inputPayload ] [--outputPayload ] [--nodeOutputs ] [--executionPlan ] [--currentWave ] [--parentExecutionId ] [--parentNodeName ] [--definitionsCommitId ] [--tickCount ] [--completedAt ] [--maxTicks ] [--maxPendingJobs ] [--timeoutAt ] [--errorCode ] [--errorMessage ] -csdk function-graph-execution update --id [--startedAt ] [--graphId ] [--invocationId ] [--databaseId ] [--outputNode ] [--outputPort ] [--status ] [--inputPayload ] [--outputPayload ] [--nodeOutputs ] [--executionPlan ] [--currentWave ] [--parentExecutionId ] [--parentNodeName ] [--definitionsCommitId ] [--tickCount ] [--completedAt ] [--maxTicks ] [--maxPendingJobs ] [--timeoutAt ] [--errorCode ] [--errorMessage ] +csdk function-graph-execution create --graphId --scopeId [--startedAt ] [--invocationId ] [--outputNode ] [--outputPort ] [--status ] [--inputPayload ] [--outputPayload ] [--nodeOutputs ] [--executionPlan ] [--currentWave ] [--parentExecutionId ] [--parentNodeName ] [--definitionsCommitId ] [--tickCount ] [--completedAt ] [--maxTicks ] [--maxPendingJobs ] [--timeoutAt ] [--lastProgressAt ] [--errorCode ] [--errorMessage ] +csdk function-graph-execution update --id [--startedAt ] [--graphId ] [--invocationId ] [--scopeId ] [--outputNode ] [--outputPort ] [--status ] [--inputPayload ] [--outputPayload ] [--nodeOutputs ] [--executionPlan ] [--currentWave ] [--parentExecutionId ] [--parentNodeName ] [--definitionsCommitId ] [--tickCount ] [--completedAt ] [--maxTicks ] [--maxPendingJobs ] [--timeoutAt ] [--lastProgressAt ] [--errorCode ] [--errorMessage ] csdk function-graph-execution delete --id ``` @@ -58,7 +58,7 @@ csdk function-graph-execution list --where.id.equalTo --orderBy ID_ASC ### Create a functionGraphExecution ```bash -csdk function-graph-execution create --graphId --databaseId --outputNode [--startedAt ] [--invocationId ] [--outputPort ] [--status ] [--inputPayload ] [--outputPayload ] [--nodeOutputs ] [--executionPlan ] [--currentWave ] [--parentExecutionId ] [--parentNodeName ] [--definitionsCommitId ] [--tickCount ] [--completedAt ] [--maxTicks ] [--maxPendingJobs ] [--timeoutAt ] [--errorCode ] [--errorMessage ] +csdk function-graph-execution create --graphId --scopeId [--startedAt ] [--invocationId ] [--outputNode ] [--outputPort ] [--status ] [--inputPayload ] [--outputPayload ] [--nodeOutputs ] [--executionPlan ] [--currentWave ] [--parentExecutionId ] [--parentNodeName ] [--definitionsCommitId ] [--tickCount ] [--completedAt ] [--maxTicks ] [--maxPendingJobs ] [--timeoutAt ] [--lastProgressAt ] [--errorCode ] [--errorMessage ] ``` ### Get a functionGraphExecution by id diff --git a/.agents/skills/cli-compute/references/function-graph-object.md b/.agents/skills/cli-compute/references/function-graph-object.md index 95f78fc084..6e02c4dab1 100644 --- a/.agents/skills/cli-compute/references/function-graph-object.md +++ b/.agents/skills/cli-compute/references/function-graph-object.md @@ -12,8 +12,8 @@ csdk function-graph-object list --where.. --orderBy csdk function-graph-object list --limit 10 --after csdk function-graph-object find-first --where.. csdk function-graph-object get --id -csdk function-graph-object create --databaseId [--kids ] [--ktree ] [--data ] -csdk function-graph-object update --id [--databaseId ] [--kids ] [--ktree ] [--data ] +csdk function-graph-object create --scopeId [--kids ] [--ktree ] [--data ] +csdk function-graph-object update --id [--scopeId ] [--kids ] [--ktree ] [--data ] csdk function-graph-object delete --id ``` @@ -58,7 +58,7 @@ csdk function-graph-object list --where.id.equalTo --orderBy ID_ASC ### Create a functionGraphObject ```bash -csdk function-graph-object create --databaseId [--kids ] [--ktree ] [--data ] +csdk function-graph-object create --scopeId [--kids ] [--ktree ] [--data ] ``` ### Get a functionGraphObject by id diff --git a/.agents/skills/cli-compute/references/function-graph-ref.md b/.agents/skills/cli-compute/references/function-graph-ref.md index cebef9d679..46f1a26b0c 100644 --- a/.agents/skills/cli-compute/references/function-graph-ref.md +++ b/.agents/skills/cli-compute/references/function-graph-ref.md @@ -12,8 +12,8 @@ csdk function-graph-ref list --where.. --orderBy csdk function-graph-ref list --limit 10 --after csdk function-graph-ref find-first --where.. csdk function-graph-ref get --id -csdk function-graph-ref create --name --databaseId --storeId [--commitId ] -csdk function-graph-ref update --id [--name ] [--databaseId ] [--storeId ] [--commitId ] +csdk function-graph-ref create --name --scopeId --storeId [--commitId ] +csdk function-graph-ref update --id [--name ] [--scopeId ] [--storeId ] [--commitId ] csdk function-graph-ref delete --id ``` @@ -58,7 +58,7 @@ csdk function-graph-ref list --where.id.equalTo --orderBy ID_ASC ### Create a functionGraphRef ```bash -csdk function-graph-ref create --name --databaseId --storeId [--commitId ] +csdk function-graph-ref create --name --scopeId --storeId [--commitId ] ``` ### Get a functionGraphRef by id diff --git a/.agents/skills/cli-compute/references/function-graph-store.md b/.agents/skills/cli-compute/references/function-graph-store.md index a99871828d..dd1e4a1536 100644 --- a/.agents/skills/cli-compute/references/function-graph-store.md +++ b/.agents/skills/cli-compute/references/function-graph-store.md @@ -12,8 +12,8 @@ csdk function-graph-store list --where.. --orderBy csdk function-graph-store list --limit 10 --after csdk function-graph-store find-first --where.. csdk function-graph-store get --id -csdk function-graph-store create --name --databaseId [--hash ] -csdk function-graph-store update --id [--name ] [--databaseId ] [--hash ] +csdk function-graph-store create --name --scopeId [--hash ] +csdk function-graph-store update --id [--name ] [--scopeId ] [--hash ] csdk function-graph-store delete --id ``` @@ -58,7 +58,7 @@ csdk function-graph-store list --where.id.equalTo --orderBy ID_ASC ### Create a functionGraphStore ```bash -csdk function-graph-store create --name --databaseId [--hash ] +csdk function-graph-store create --name --scopeId [--hash ] ``` ### Get a functionGraphStore by id diff --git a/.agents/skills/cli-compute/references/function-graph.md b/.agents/skills/cli-compute/references/function-graph.md index f3d01a4ac2..15d0effead 100644 --- a/.agents/skills/cli-compute/references/function-graph.md +++ b/.agents/skills/cli-compute/references/function-graph.md @@ -12,8 +12,8 @@ csdk function-graph list --where.. --orderBy csdk function-graph list --limit 10 --after csdk function-graph find-first --where.. csdk function-graph get --id -csdk function-graph create --databaseId --storeId --context --name --description --definitionsCommitId --isValid --validationErrors --createdBy -csdk function-graph update --id [--databaseId ] [--storeId ] [--context ] [--name ] [--description ] [--definitionsCommitId ] [--isValid ] [--validationErrors ] [--createdBy ] +csdk function-graph create --scopeId --storeId --context --name --description --definitionsCommitId --isValid --validationErrors --createdBy +csdk function-graph update --id [--scopeId ] [--storeId ] [--context ] [--name ] [--description ] [--definitionsCommitId ] [--isValid ] [--validationErrors ] [--createdBy ] csdk function-graph delete --id ``` @@ -58,7 +58,7 @@ csdk function-graph list --where.id.equalTo --orderBy ID_ASC ### Create a functionGraph ```bash -csdk function-graph create --databaseId --storeId --context --name --description --definitionsCommitId --isValid --validationErrors --createdBy +csdk function-graph create --scopeId --storeId --context --name --description --definitionsCommitId --isValid --validationErrors --createdBy ``` ### Get a functionGraph by id diff --git a/.agents/skills/cli-compute/references/import-graph-json.md b/.agents/skills/cli-compute/references/import-graph-json.md index 6fd69cdc6c..4d8bd23ecd 100644 --- a/.agents/skills/cli-compute/references/import-graph-json.md +++ b/.agents/skills/cli-compute/references/import-graph-json.md @@ -7,7 +7,7 @@ Execute the importGraphJson mutation ## Usage ```bash -csdk import-graph-json --input.clientMutationId --input.databaseId --input.name --input.graphJson --input.context --input.description --input.createdBy --input.definitionsCommitId +csdk import-graph-json --input.clientMutationId --input.scopeId --input.name --input.graphJson --input.context --input.description --input.createdBy --input.definitionsCommitId ``` ## Examples @@ -15,5 +15,5 @@ csdk import-graph-json --input.clientMutationId --input.databaseId --input.databaseId --input.name --input.graphJson --input.context --input.description --input.createdBy --input.definitionsCommitId +csdk import-graph-json --input.clientMutationId --input.scopeId --input.name --input.graphJson --input.context --input.description --input.createdBy --input.definitionsCommitId ``` diff --git a/.agents/skills/cli-compute/references/infra-commit.md b/.agents/skills/cli-compute/references/infra-commit.md new file mode 100644 index 0000000000..e543bf7c81 --- /dev/null +++ b/.agents/skills/cli-compute/references/infra-commit.md @@ -0,0 +1,68 @@ +# infraCommit + + + +CRUD operations for InfraCommit records via csdk CLI + +## Usage + +```bash +csdk infra-commit list +csdk infra-commit list --where.. --orderBy +csdk infra-commit list --limit 10 --after +csdk infra-commit find-first --where.. +csdk infra-commit get --id +csdk infra-commit create --scopeId --storeId [--message ] [--parentIds ] [--authorId ] [--committerId ] [--treeId ] [--date ] +csdk infra-commit update --id [--message ] [--scopeId ] [--storeId ] [--parentIds ] [--authorId ] [--committerId ] [--treeId ] [--date ] +csdk infra-commit delete --id +``` + +## Examples + +### List infraCommit records + +```bash +csdk infra-commit list +``` + +### List infraCommit records with pagination + +```bash +csdk infra-commit list --limit 10 --offset 0 +``` + +### List infraCommit records with cursor pagination + +```bash +csdk infra-commit list --limit 10 --after +``` + +### Find first matching infraCommit + +```bash +csdk infra-commit find-first --where.id.equalTo +``` + +### List infraCommit records with field selection + +```bash +csdk infra-commit list --select id,id +``` + +### List infraCommit records with filtering and ordering + +```bash +csdk infra-commit list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a infraCommit + +```bash +csdk infra-commit create --scopeId --storeId [--message ] [--parentIds ] [--authorId ] [--committerId ] [--treeId ] [--date ] +``` + +### Get a infraCommit by id + +```bash +csdk infra-commit get --id +``` diff --git a/.agents/skills/cli-compute/references/infra-get-all-record.md b/.agents/skills/cli-compute/references/infra-get-all-record.md new file mode 100644 index 0000000000..aceb284c31 --- /dev/null +++ b/.agents/skills/cli-compute/references/infra-get-all-record.md @@ -0,0 +1,68 @@ +# infraGetAllRecord + + + +CRUD operations for InfraGetAllRecord records via csdk CLI + +## Usage + +```bash +csdk infra-get-all-record list +csdk infra-get-all-record list --where.. --orderBy +csdk infra-get-all-record list --limit 10 --after +csdk infra-get-all-record find-first --where.. +csdk infra-get-all-record get --id +csdk infra-get-all-record create --path --data +csdk infra-get-all-record update --id [--path ] [--data ] +csdk infra-get-all-record delete --id +``` + +## Examples + +### List infraGetAllRecord records + +```bash +csdk infra-get-all-record list +``` + +### List infraGetAllRecord records with pagination + +```bash +csdk infra-get-all-record list --limit 10 --offset 0 +``` + +### List infraGetAllRecord records with cursor pagination + +```bash +csdk infra-get-all-record list --limit 10 --after +``` + +### Find first matching infraGetAllRecord + +```bash +csdk infra-get-all-record find-first --where.id.equalTo +``` + +### List infraGetAllRecord records with field selection + +```bash +csdk infra-get-all-record list --select id,id +``` + +### List infraGetAllRecord records with filtering and ordering + +```bash +csdk infra-get-all-record list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a infraGetAllRecord + +```bash +csdk infra-get-all-record create --path --data +``` + +### Get a infraGetAllRecord by id + +```bash +csdk infra-get-all-record get --id +``` diff --git a/.agents/skills/cli-compute/references/infra-init-empty-repo.md b/.agents/skills/cli-compute/references/infra-init-empty-repo.md new file mode 100644 index 0000000000..ba51c953fd --- /dev/null +++ b/.agents/skills/cli-compute/references/infra-init-empty-repo.md @@ -0,0 +1,19 @@ +# infraInitEmptyRepo + + + +Execute the infraInitEmptyRepo mutation + +## Usage + +```bash +csdk infra-init-empty-repo --input.clientMutationId --input.sId --input.storeId +``` + +## Examples + +### Run infraInitEmptyRepo + +```bash +csdk infra-init-empty-repo --input.clientMutationId --input.sId --input.storeId +``` diff --git a/.agents/skills/cli-compute/references/infra-insert-node-at-path.md b/.agents/skills/cli-compute/references/infra-insert-node-at-path.md new file mode 100644 index 0000000000..9918dfa24a --- /dev/null +++ b/.agents/skills/cli-compute/references/infra-insert-node-at-path.md @@ -0,0 +1,19 @@ +# infraInsertNodeAtPath + + + +Execute the infraInsertNodeAtPath mutation + +## Usage + +```bash +csdk infra-insert-node-at-path --input.clientMutationId --input.sId --input.root --input.path --input.data --input.kids --input.ktree +``` + +## Examples + +### Run infraInsertNodeAtPath + +```bash +csdk infra-insert-node-at-path --input.clientMutationId --input.sId --input.root --input.path --input.data --input.kids --input.ktree +``` diff --git a/.agents/skills/cli-compute/references/infra-object.md b/.agents/skills/cli-compute/references/infra-object.md new file mode 100644 index 0000000000..2fc40bf6d1 --- /dev/null +++ b/.agents/skills/cli-compute/references/infra-object.md @@ -0,0 +1,68 @@ +# infraObject + + + +CRUD operations for InfraObject records via csdk CLI + +## Usage + +```bash +csdk infra-object list +csdk infra-object list --where.. --orderBy +csdk infra-object list --limit 10 --after +csdk infra-object find-first --where.. +csdk infra-object get --id +csdk infra-object create --scopeId [--kids ] [--ktree ] [--data ] +csdk infra-object update --id [--scopeId ] [--kids ] [--ktree ] [--data ] +csdk infra-object delete --id +``` + +## Examples + +### List infraObject records + +```bash +csdk infra-object list +``` + +### List infraObject records with pagination + +```bash +csdk infra-object list --limit 10 --offset 0 +``` + +### List infraObject records with cursor pagination + +```bash +csdk infra-object list --limit 10 --after +``` + +### Find first matching infraObject + +```bash +csdk infra-object find-first --where.id.equalTo +``` + +### List infraObject records with field selection + +```bash +csdk infra-object list --select id,id +``` + +### List infraObject records with filtering and ordering + +```bash +csdk infra-object list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a infraObject + +```bash +csdk infra-object create --scopeId [--kids ] [--ktree ] [--data ] +``` + +### Get a infraObject by id + +```bash +csdk infra-object get --id +``` diff --git a/.agents/skills/cli-compute/references/infra-ref.md b/.agents/skills/cli-compute/references/infra-ref.md new file mode 100644 index 0000000000..6676c6c0b1 --- /dev/null +++ b/.agents/skills/cli-compute/references/infra-ref.md @@ -0,0 +1,68 @@ +# infraRef + + + +CRUD operations for InfraRef records via csdk CLI + +## Usage + +```bash +csdk infra-ref list +csdk infra-ref list --where.. --orderBy +csdk infra-ref list --limit 10 --after +csdk infra-ref find-first --where.. +csdk infra-ref get --id +csdk infra-ref create --name --scopeId --storeId [--commitId ] +csdk infra-ref update --id [--name ] [--scopeId ] [--storeId ] [--commitId ] +csdk infra-ref delete --id +``` + +## Examples + +### List infraRef records + +```bash +csdk infra-ref list +``` + +### List infraRef records with pagination + +```bash +csdk infra-ref list --limit 10 --offset 0 +``` + +### List infraRef records with cursor pagination + +```bash +csdk infra-ref list --limit 10 --after +``` + +### Find first matching infraRef + +```bash +csdk infra-ref find-first --where.id.equalTo +``` + +### List infraRef records with field selection + +```bash +csdk infra-ref list --select id,id +``` + +### List infraRef records with filtering and ordering + +```bash +csdk infra-ref list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a infraRef + +```bash +csdk infra-ref create --name --scopeId --storeId [--commitId ] +``` + +### Get a infraRef by id + +```bash +csdk infra-ref get --id +``` diff --git a/.agents/skills/cli-compute/references/infra-set-data-at-path.md b/.agents/skills/cli-compute/references/infra-set-data-at-path.md new file mode 100644 index 0000000000..e1d7645cfe --- /dev/null +++ b/.agents/skills/cli-compute/references/infra-set-data-at-path.md @@ -0,0 +1,19 @@ +# infraSetDataAtPath + + + +Execute the infraSetDataAtPath mutation + +## Usage + +```bash +csdk infra-set-data-at-path --input.clientMutationId --input.sId --input.root --input.path --input.data +``` + +## Examples + +### Run infraSetDataAtPath + +```bash +csdk infra-set-data-at-path --input.clientMutationId --input.sId --input.root --input.path --input.data +``` diff --git a/.agents/skills/cli-compute/references/infra-store.md b/.agents/skills/cli-compute/references/infra-store.md new file mode 100644 index 0000000000..ac363c7358 --- /dev/null +++ b/.agents/skills/cli-compute/references/infra-store.md @@ -0,0 +1,68 @@ +# infraStore + + + +CRUD operations for InfraStore records via csdk CLI + +## Usage + +```bash +csdk infra-store list +csdk infra-store list --where.. --orderBy +csdk infra-store list --limit 10 --after +csdk infra-store find-first --where.. +csdk infra-store get --id +csdk infra-store create --name --scopeId [--hash ] +csdk infra-store update --id [--name ] [--scopeId ] [--hash ] +csdk infra-store delete --id +``` + +## Examples + +### List infraStore records + +```bash +csdk infra-store list +``` + +### List infraStore records with pagination + +```bash +csdk infra-store list --limit 10 --offset 0 +``` + +### List infraStore records with cursor pagination + +```bash +csdk infra-store list --limit 10 --after +``` + +### Find first matching infraStore + +```bash +csdk infra-store find-first --where.id.equalTo +``` + +### List infraStore records with field selection + +```bash +csdk infra-store list --select id,id +``` + +### List infraStore records with filtering and ordering + +```bash +csdk infra-store list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a infraStore + +```bash +csdk infra-store create --name --scopeId [--hash ] +``` + +### Get a infraStore by id + +```bash +csdk infra-store get --id +``` diff --git a/.agents/skills/cli-compute/references/integration-provider.md b/.agents/skills/cli-compute/references/integration-provider.md new file mode 100644 index 0000000000..d570fd6aac --- /dev/null +++ b/.agents/skills/cli-compute/references/integration-provider.md @@ -0,0 +1,68 @@ +# integrationProvider + + + +CRUD operations for IntegrationProvider records via csdk CLI + +## Usage + +```bash +csdk integration-provider list +csdk integration-provider list --where.. --orderBy +csdk integration-provider list --limit 10 --after +csdk integration-provider find-first --where.. +csdk integration-provider get --id +csdk integration-provider create --slug --name [--description ] [--category ] [--icon ] [--logo ] [--brand ] [--requiredSecrets ] [--requiredConfigs ] +csdk integration-provider update --id [--slug ] [--name ] [--description ] [--category ] [--icon ] [--logo ] [--brand ] [--requiredSecrets ] [--requiredConfigs ] +csdk integration-provider delete --id +``` + +## Examples + +### List integrationProvider records + +```bash +csdk integration-provider list +``` + +### List integrationProvider records with pagination + +```bash +csdk integration-provider list --limit 10 --offset 0 +``` + +### List integrationProvider records with cursor pagination + +```bash +csdk integration-provider list --limit 10 --after +``` + +### Find first matching integrationProvider + +```bash +csdk integration-provider find-first --where.id.equalTo +``` + +### List integrationProvider records with field selection + +```bash +csdk integration-provider list --select id,id +``` + +### List integrationProvider records with filtering and ordering + +```bash +csdk integration-provider list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a integrationProvider + +```bash +csdk integration-provider create --slug --name [--description ] [--category ] [--icon ] [--logo ] [--brand ] [--requiredSecrets ] [--requiredConfigs ] +``` + +### Get a integrationProvider by id + +```bash +csdk integration-provider get --id +``` diff --git a/.agents/skills/cli-compute/references/namespace-event.md b/.agents/skills/cli-compute/references/namespace-event.md new file mode 100644 index 0000000000..b80c650a04 --- /dev/null +++ b/.agents/skills/cli-compute/references/namespace-event.md @@ -0,0 +1,68 @@ +# namespaceEvent + + + +CRUD operations for NamespaceEvent records via csdk CLI + +## Usage + +```bash +csdk namespace-event list +csdk namespace-event list --where.. --orderBy +csdk namespace-event list --limit 10 --after +csdk namespace-event find-first --where.. +csdk namespace-event get --id +csdk namespace-event create --namespaceId --eventType --databaseId [--actorId ] [--message ] [--metadata ] [--cpuMillicores ] [--memoryBytes ] [--storageBytes ] [--networkIngressBytes ] [--networkEgressBytes ] [--podCount ] [--metrics ] +csdk namespace-event update --id [--namespaceId ] [--eventType ] [--actorId ] [--message ] [--metadata ] [--cpuMillicores ] [--memoryBytes ] [--storageBytes ] [--networkIngressBytes ] [--networkEgressBytes ] [--podCount ] [--metrics ] [--databaseId ] +csdk namespace-event delete --id +``` + +## Examples + +### List namespaceEvent records + +```bash +csdk namespace-event list +``` + +### List namespaceEvent records with pagination + +```bash +csdk namespace-event list --limit 10 --offset 0 +``` + +### List namespaceEvent records with cursor pagination + +```bash +csdk namespace-event list --limit 10 --after +``` + +### Find first matching namespaceEvent + +```bash +csdk namespace-event find-first --where.id.equalTo +``` + +### List namespaceEvent records with field selection + +```bash +csdk namespace-event list --select id,id +``` + +### List namespaceEvent records with filtering and ordering + +```bash +csdk namespace-event list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a namespaceEvent + +```bash +csdk namespace-event create --namespaceId --eventType --databaseId [--actorId ] [--message ] [--metadata ] [--cpuMillicores ] [--memoryBytes ] [--storageBytes ] [--networkIngressBytes ] [--networkEgressBytes ] [--podCount ] [--metrics ] +``` + +### Get a namespaceEvent by id + +```bash +csdk namespace-event get --id +``` diff --git a/.agents/skills/cli-compute/references/namespace.md b/.agents/skills/cli-compute/references/namespace.md new file mode 100644 index 0000000000..ff32e0dbf1 --- /dev/null +++ b/.agents/skills/cli-compute/references/namespace.md @@ -0,0 +1,68 @@ +# namespace + + + +CRUD operations for Namespace records via csdk CLI + +## Usage + +```bash +csdk namespace list +csdk namespace list --where.. --orderBy +csdk namespace list --limit 10 --after +csdk namespace find-first --where.. +csdk namespace get --id +csdk namespace create --name --namespaceName --databaseId [--description ] [--isActive ] [--status ] [--lastError ] [--labels ] [--annotations ] [--isManaged ] +csdk namespace update --id [--name ] [--namespaceName ] [--description ] [--isActive ] [--status ] [--lastError ] [--labels ] [--annotations ] [--databaseId ] [--isManaged ] +csdk namespace delete --id +``` + +## Examples + +### List namespace records + +```bash +csdk namespace list +``` + +### List namespace records with pagination + +```bash +csdk namespace list --limit 10 --offset 0 +``` + +### List namespace records with cursor pagination + +```bash +csdk namespace list --limit 10 --after +``` + +### Find first matching namespace + +```bash +csdk namespace find-first --where.id.equalTo +``` + +### List namespace records with field selection + +```bash +csdk namespace list --select id,id +``` + +### List namespace records with filtering and ordering + +```bash +csdk namespace list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a namespace + +```bash +csdk namespace create --name --namespaceName --databaseId [--description ] [--isActive ] [--status ] [--lastError ] [--labels ] [--annotations ] [--isManaged ] +``` + +### Get a namespace by id + +```bash +csdk namespace get --id +``` diff --git a/.agents/skills/cli-compute/references/platform-function-api-binding.md b/.agents/skills/cli-compute/references/platform-function-api-binding.md new file mode 100644 index 0000000000..d6441063ec --- /dev/null +++ b/.agents/skills/cli-compute/references/platform-function-api-binding.md @@ -0,0 +1,68 @@ +# platformFunctionApiBinding + + + +CRUD operations for PlatformFunctionApiBinding records via csdk CLI + +## Usage + +```bash +csdk platform-function-api-binding list +csdk platform-function-api-binding list --where.. --orderBy +csdk platform-function-api-binding list --limit 10 --after +csdk platform-function-api-binding find-first --where.. +csdk platform-function-api-binding get --id +csdk platform-function-api-binding create --functionDefinitionId --apiId [--alias ] [--config ] +csdk platform-function-api-binding update --id [--functionDefinitionId ] [--apiId ] [--alias ] [--config ] +csdk platform-function-api-binding delete --id +``` + +## Examples + +### List platformFunctionApiBinding records + +```bash +csdk platform-function-api-binding list +``` + +### List platformFunctionApiBinding records with pagination + +```bash +csdk platform-function-api-binding list --limit 10 --offset 0 +``` + +### List platformFunctionApiBinding records with cursor pagination + +```bash +csdk platform-function-api-binding list --limit 10 --after +``` + +### Find first matching platformFunctionApiBinding + +```bash +csdk platform-function-api-binding find-first --where.id.equalTo +``` + +### List platformFunctionApiBinding records with field selection + +```bash +csdk platform-function-api-binding list --select id,id +``` + +### List platformFunctionApiBinding records with filtering and ordering + +```bash +csdk platform-function-api-binding list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a platformFunctionApiBinding + +```bash +csdk platform-function-api-binding create --functionDefinitionId --apiId [--alias ] [--config ] +``` + +### Get a platformFunctionApiBinding by id + +```bash +csdk platform-function-api-binding get --id +``` diff --git a/.agents/skills/cli-compute/references/platform-function-definition.md b/.agents/skills/cli-compute/references/platform-function-definition.md new file mode 100644 index 0000000000..5fe3cabfe7 --- /dev/null +++ b/.agents/skills/cli-compute/references/platform-function-definition.md @@ -0,0 +1,68 @@ +# platformFunctionDefinition + + + +CRUD operations for PlatformFunctionDefinition records via csdk CLI + +## Usage + +```bash +csdk platform-function-definition list +csdk platform-function-definition list --where.. --orderBy +csdk platform-function-definition list --limit 10 --after +csdk platform-function-definition find-first --where.. +csdk platform-function-definition get --id +csdk platform-function-definition create --scope --name --taskIdentifier [--description ] [--isPublished ] [--accessChannels ] [--publishedAt ] [--maxAttempts ] [--priority ] [--queueName ] [--runtime ] [--targetSchema ] [--targetFunction ] [--moduleTable ] [--functionColumns ] [--payloadArgs ] [--image ] [--concurrency ] [--scaleMin ] [--scaleMax ] [--timeoutSeconds ] [--resources ] [--isBuiltIn ] [--requiredSecrets ] [--requiredConfigs ] [--integrations ] [--requiredBuckets ] [--requiredModels ] [--inputs ] [--outputs ] [--props ] [--volatile ] [--icon ] [--category ] +csdk platform-function-definition update --id [--scope ] [--name ] [--taskIdentifier ] [--description ] [--isPublished ] [--accessChannels ] [--publishedAt ] [--maxAttempts ] [--priority ] [--queueName ] [--runtime ] [--targetSchema ] [--targetFunction ] [--moduleTable ] [--functionColumns ] [--payloadArgs ] [--image ] [--concurrency ] [--scaleMin ] [--scaleMax ] [--timeoutSeconds ] [--resources ] [--isBuiltIn ] [--requiredSecrets ] [--requiredConfigs ] [--integrations ] [--requiredBuckets ] [--requiredModels ] [--inputs ] [--outputs ] [--props ] [--volatile ] [--icon ] [--category ] +csdk platform-function-definition delete --id +``` + +## Examples + +### List platformFunctionDefinition records + +```bash +csdk platform-function-definition list +``` + +### List platformFunctionDefinition records with pagination + +```bash +csdk platform-function-definition list --limit 10 --offset 0 +``` + +### List platformFunctionDefinition records with cursor pagination + +```bash +csdk platform-function-definition list --limit 10 --after +``` + +### Find first matching platformFunctionDefinition + +```bash +csdk platform-function-definition find-first --where.id.equalTo +``` + +### List platformFunctionDefinition records with field selection + +```bash +csdk platform-function-definition list --select id,id +``` + +### List platformFunctionDefinition records with filtering and ordering + +```bash +csdk platform-function-definition list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a platformFunctionDefinition + +```bash +csdk platform-function-definition create --scope --name --taskIdentifier [--description ] [--isPublished ] [--accessChannels ] [--publishedAt ] [--maxAttempts ] [--priority ] [--queueName ] [--runtime ] [--targetSchema ] [--targetFunction ] [--moduleTable ] [--functionColumns ] [--payloadArgs ] [--image ] [--concurrency ] [--scaleMin ] [--scaleMax ] [--timeoutSeconds ] [--resources ] [--isBuiltIn ] [--requiredSecrets ] [--requiredConfigs ] [--integrations ] [--requiredBuckets ] [--requiredModels ] [--inputs ] [--outputs ] [--props ] [--volatile ] [--icon ] [--category ] +``` + +### Get a platformFunctionDefinition by id + +```bash +csdk platform-function-definition get --id +``` diff --git a/.agents/skills/cli-compute/references/platform-function-deployment-event.md b/.agents/skills/cli-compute/references/platform-function-deployment-event.md new file mode 100644 index 0000000000..15c68cf2de --- /dev/null +++ b/.agents/skills/cli-compute/references/platform-function-deployment-event.md @@ -0,0 +1,68 @@ +# platformFunctionDeploymentEvent + + + +CRUD operations for PlatformFunctionDeploymentEvent records via csdk CLI + +## Usage + +```bash +csdk platform-function-deployment-event list +csdk platform-function-deployment-event list --where.. --orderBy +csdk platform-function-deployment-event list --limit 10 --after +csdk platform-function-deployment-event find-first --where.. +csdk platform-function-deployment-event get --id +csdk platform-function-deployment-event create --deploymentId --eventType [--actorId ] [--message ] [--metadata ] +csdk platform-function-deployment-event update --id [--deploymentId ] [--eventType ] [--actorId ] [--message ] [--metadata ] +csdk platform-function-deployment-event delete --id +``` + +## Examples + +### List platformFunctionDeploymentEvent records + +```bash +csdk platform-function-deployment-event list +``` + +### List platformFunctionDeploymentEvent records with pagination + +```bash +csdk platform-function-deployment-event list --limit 10 --offset 0 +``` + +### List platformFunctionDeploymentEvent records with cursor pagination + +```bash +csdk platform-function-deployment-event list --limit 10 --after +``` + +### Find first matching platformFunctionDeploymentEvent + +```bash +csdk platform-function-deployment-event find-first --where.id.equalTo +``` + +### List platformFunctionDeploymentEvent records with field selection + +```bash +csdk platform-function-deployment-event list --select id,id +``` + +### List platformFunctionDeploymentEvent records with filtering and ordering + +```bash +csdk platform-function-deployment-event list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a platformFunctionDeploymentEvent + +```bash +csdk platform-function-deployment-event create --deploymentId --eventType [--actorId ] [--message ] [--metadata ] +``` + +### Get a platformFunctionDeploymentEvent by id + +```bash +csdk platform-function-deployment-event get --id +``` diff --git a/.agents/skills/cli-compute/references/platform-function-deployment.md b/.agents/skills/cli-compute/references/platform-function-deployment.md new file mode 100644 index 0000000000..6ede1ccacf --- /dev/null +++ b/.agents/skills/cli-compute/references/platform-function-deployment.md @@ -0,0 +1,68 @@ +# platformFunctionDeployment + + + +CRUD operations for PlatformFunctionDeployment records via csdk CLI + +## Usage + +```bash +csdk platform-function-deployment list +csdk platform-function-deployment list --where.. --orderBy +csdk platform-function-deployment list --limit 10 --after +csdk platform-function-deployment find-first --where.. +csdk platform-function-deployment get --id +csdk platform-function-deployment create --namespaceId --image [--status ] [--serviceUrl ] [--serviceName ] [--revision ] [--imageVersion ] [--handlerName ] [--concurrency ] [--scaleMin ] [--scaleMax ] [--timeoutSeconds ] [--resources ] [--lastError ] [--lastErrorAt ] [--errorCount ] [--labels ] [--annotations ] +csdk platform-function-deployment update --id [--namespaceId ] [--status ] [--serviceUrl ] [--serviceName ] [--revision ] [--image ] [--imageVersion ] [--handlerName ] [--concurrency ] [--scaleMin ] [--scaleMax ] [--timeoutSeconds ] [--resources ] [--lastError ] [--lastErrorAt ] [--errorCount ] [--labels ] [--annotations ] +csdk platform-function-deployment delete --id +``` + +## Examples + +### List platformFunctionDeployment records + +```bash +csdk platform-function-deployment list +``` + +### List platformFunctionDeployment records with pagination + +```bash +csdk platform-function-deployment list --limit 10 --offset 0 +``` + +### List platformFunctionDeployment records with cursor pagination + +```bash +csdk platform-function-deployment list --limit 10 --after +``` + +### Find first matching platformFunctionDeployment + +```bash +csdk platform-function-deployment find-first --where.id.equalTo +``` + +### List platformFunctionDeployment records with field selection + +```bash +csdk platform-function-deployment list --select id,id +``` + +### List platformFunctionDeployment records with filtering and ordering + +```bash +csdk platform-function-deployment list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a platformFunctionDeployment + +```bash +csdk platform-function-deployment create --namespaceId --image [--status ] [--serviceUrl ] [--serviceName ] [--revision ] [--imageVersion ] [--handlerName ] [--concurrency ] [--scaleMin ] [--scaleMax ] [--timeoutSeconds ] [--resources ] [--lastError ] [--lastErrorAt ] [--errorCount ] [--labels ] [--annotations ] +``` + +### Get a platformFunctionDeployment by id + +```bash +csdk platform-function-deployment get --id +``` diff --git a/.agents/skills/cli-compute/references/platform-function-execution-log.md b/.agents/skills/cli-compute/references/platform-function-execution-log.md new file mode 100644 index 0000000000..4140984c2b --- /dev/null +++ b/.agents/skills/cli-compute/references/platform-function-execution-log.md @@ -0,0 +1,68 @@ +# platformFunctionExecutionLog + + + +CRUD operations for PlatformFunctionExecutionLog records via csdk CLI + +## Usage + +```bash +csdk platform-function-execution-log list +csdk platform-function-execution-log list --where.. --orderBy +csdk platform-function-execution-log list --limit 10 --after +csdk platform-function-execution-log find-first --where.. +csdk platform-function-execution-log get --id +csdk platform-function-execution-log create --message [--invocationId ] [--taskIdentifier ] [--logLevel ] [--metadata ] [--actorId ] +csdk platform-function-execution-log update --id [--invocationId ] [--taskIdentifier ] [--logLevel ] [--message ] [--metadata ] [--actorId ] +csdk platform-function-execution-log delete --id +``` + +## Examples + +### List platformFunctionExecutionLog records + +```bash +csdk platform-function-execution-log list +``` + +### List platformFunctionExecutionLog records with pagination + +```bash +csdk platform-function-execution-log list --limit 10 --offset 0 +``` + +### List platformFunctionExecutionLog records with cursor pagination + +```bash +csdk platform-function-execution-log list --limit 10 --after +``` + +### Find first matching platformFunctionExecutionLog + +```bash +csdk platform-function-execution-log find-first --where.id.equalTo +``` + +### List platformFunctionExecutionLog records with field selection + +```bash +csdk platform-function-execution-log list --select id,id +``` + +### List platformFunctionExecutionLog records with filtering and ordering + +```bash +csdk platform-function-execution-log list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a platformFunctionExecutionLog + +```bash +csdk platform-function-execution-log create --message [--invocationId ] [--taskIdentifier ] [--logLevel ] [--metadata ] [--actorId ] +``` + +### Get a platformFunctionExecutionLog by id + +```bash +csdk platform-function-execution-log get --id +``` diff --git a/.agents/skills/cli-compute/references/platform-function-invocation.md b/.agents/skills/cli-compute/references/platform-function-invocation.md new file mode 100644 index 0000000000..160fc231dc --- /dev/null +++ b/.agents/skills/cli-compute/references/platform-function-invocation.md @@ -0,0 +1,68 @@ +# platformFunctionInvocation + + + +CRUD operations for PlatformFunctionInvocation records via csdk CLI + +## Usage + +```bash +csdk platform-function-invocation list +csdk platform-function-invocation list --where.. --orderBy +csdk platform-function-invocation list --limit 10 --after +csdk platform-function-invocation find-first --where.. +csdk platform-function-invocation get --id +csdk platform-function-invocation create --taskIdentifier [--actorId ] [--payload ] [--status ] [--result ] [--error ] [--durationMs ] [--jobId ] [--startedAt ] [--completedAt ] [--parentInvocationId ] [--graphExecutionId ] +csdk platform-function-invocation update --id [--actorId ] [--taskIdentifier ] [--payload ] [--status ] [--result ] [--error ] [--durationMs ] [--jobId ] [--startedAt ] [--completedAt ] [--parentInvocationId ] [--graphExecutionId ] +csdk platform-function-invocation delete --id +``` + +## Examples + +### List platformFunctionInvocation records + +```bash +csdk platform-function-invocation list +``` + +### List platformFunctionInvocation records with pagination + +```bash +csdk platform-function-invocation list --limit 10 --offset 0 +``` + +### List platformFunctionInvocation records with cursor pagination + +```bash +csdk platform-function-invocation list --limit 10 --after +``` + +### Find first matching platformFunctionInvocation + +```bash +csdk platform-function-invocation find-first --where.id.equalTo +``` + +### List platformFunctionInvocation records with field selection + +```bash +csdk platform-function-invocation list --select id,id +``` + +### List platformFunctionInvocation records with filtering and ordering + +```bash +csdk platform-function-invocation list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a platformFunctionInvocation + +```bash +csdk platform-function-invocation create --taskIdentifier [--actorId ] [--payload ] [--status ] [--result ] [--error ] [--durationMs ] [--jobId ] [--startedAt ] [--completedAt ] [--parentInvocationId ] [--graphExecutionId ] +``` + +### Get a platformFunctionInvocation by id + +```bash +csdk platform-function-invocation get --id +``` diff --git a/.agents/skills/cli-compute/references/platform-namespace-event.md b/.agents/skills/cli-compute/references/platform-namespace-event.md index d09ac8d2e0..922c7ba84b 100644 --- a/.agents/skills/cli-compute/references/platform-namespace-event.md +++ b/.agents/skills/cli-compute/references/platform-namespace-event.md @@ -12,8 +12,8 @@ csdk platform-namespace-event list --where.. --orderBy csdk platform-namespace-event find-first --where.. csdk platform-namespace-event get --id -csdk platform-namespace-event create --namespaceId --eventType --databaseId [--actorId ] [--message ] [--metadata ] [--cpuMillicores ] [--memoryBytes ] [--storageBytes ] [--networkIngressBytes ] [--networkEgressBytes ] [--podCount ] [--metrics ] -csdk platform-namespace-event update --id [--namespaceId ] [--eventType ] [--actorId ] [--message ] [--metadata ] [--cpuMillicores ] [--memoryBytes ] [--storageBytes ] [--networkIngressBytes ] [--networkEgressBytes ] [--podCount ] [--metrics ] [--databaseId ] +csdk platform-namespace-event create --namespaceId --eventType [--actorId ] [--message ] [--metadata ] [--cpuMillicores ] [--memoryBytes ] [--storageBytes ] [--networkIngressBytes ] [--networkEgressBytes ] [--podCount ] [--metrics ] +csdk platform-namespace-event update --id [--namespaceId ] [--eventType ] [--actorId ] [--message ] [--metadata ] [--cpuMillicores ] [--memoryBytes ] [--storageBytes ] [--networkIngressBytes ] [--networkEgressBytes ] [--podCount ] [--metrics ] csdk platform-namespace-event delete --id ``` @@ -58,7 +58,7 @@ csdk platform-namespace-event list --where.id.equalTo --orderBy ID_ASC ### Create a platformNamespaceEvent ```bash -csdk platform-namespace-event create --namespaceId --eventType --databaseId [--actorId ] [--message ] [--metadata ] [--cpuMillicores ] [--memoryBytes ] [--storageBytes ] [--networkIngressBytes ] [--networkEgressBytes ] [--podCount ] [--metrics ] +csdk platform-namespace-event create --namespaceId --eventType [--actorId ] [--message ] [--metadata ] [--cpuMillicores ] [--memoryBytes ] [--storageBytes ] [--networkIngressBytes ] [--networkEgressBytes ] [--podCount ] [--metrics ] ``` ### Get a platformNamespaceEvent by id diff --git a/.agents/skills/cli-compute/references/platform-namespace.md b/.agents/skills/cli-compute/references/platform-namespace.md index 6ba3ebfd2e..ce389fc475 100644 --- a/.agents/skills/cli-compute/references/platform-namespace.md +++ b/.agents/skills/cli-compute/references/platform-namespace.md @@ -12,8 +12,8 @@ csdk platform-namespace list --where.. --orderBy csdk platform-namespace list --limit 10 --after csdk platform-namespace find-first --where.. csdk platform-namespace get --id -csdk platform-namespace create --name --namespaceName --databaseId [--description ] [--isActive ] [--labels ] [--annotations ] [--sourceDatabaseId ] [--sourceScope ] [--isManaged ] -csdk platform-namespace update --id [--name ] [--namespaceName ] [--description ] [--isActive ] [--labels ] [--annotations ] [--databaseId ] [--sourceDatabaseId ] [--sourceScope ] [--isManaged ] +csdk platform-namespace create --name --namespaceName [--description ] [--isActive ] [--status ] [--lastError ] [--labels ] [--annotations ] [--isManaged ] +csdk platform-namespace update --id [--name ] [--namespaceName ] [--description ] [--isActive ] [--status ] [--lastError ] [--labels ] [--annotations ] [--isManaged ] csdk platform-namespace delete --id ``` @@ -58,7 +58,7 @@ csdk platform-namespace list --where.id.equalTo --orderBy ID_ASC ### Create a platformNamespace ```bash -csdk platform-namespace create --name --namespaceName --databaseId [--description ] [--isActive ] [--labels ] [--annotations ] [--sourceDatabaseId ] [--sourceScope ] [--isManaged ] +csdk platform-namespace create --name --namespaceName [--description ] [--isActive ] [--status ] [--lastError ] [--labels ] [--annotations ] [--isManaged ] ``` ### Get a platformNamespace by id diff --git a/.agents/skills/cli-compute/references/platform-resource-definition.md b/.agents/skills/cli-compute/references/platform-resource-definition.md new file mode 100644 index 0000000000..ee249ecc1a --- /dev/null +++ b/.agents/skills/cli-compute/references/platform-resource-definition.md @@ -0,0 +1,68 @@ +# platformResourceDefinition + + + +CRUD operations for PlatformResourceDefinition records via csdk CLI + +## Usage + +```bash +csdk platform-resource-definition list +csdk platform-resource-definition list --where.. --orderBy +csdk platform-resource-definition list --limit 10 --after +csdk platform-resource-definition find-first --where.. +csdk platform-resource-definition get --id +csdk platform-resource-definition create --namespaceId --kind --name --slug [--createdBy ] [--updatedBy ] [--description ] [--defaultSpec ] [--requiredSecrets ] [--requiredConfigs ] [--integrations ] [--labels ] [--annotations ] [--stepUpMinAge ] +csdk platform-resource-definition update --id [--createdBy ] [--updatedBy ] [--namespaceId ] [--kind ] [--name ] [--slug ] [--description ] [--defaultSpec ] [--requiredSecrets ] [--requiredConfigs ] [--integrations ] [--labels ] [--annotations ] [--stepUpMinAge ] +csdk platform-resource-definition delete --id +``` + +## Examples + +### List platformResourceDefinition records + +```bash +csdk platform-resource-definition list +``` + +### List platformResourceDefinition records with pagination + +```bash +csdk platform-resource-definition list --limit 10 --offset 0 +``` + +### List platformResourceDefinition records with cursor pagination + +```bash +csdk platform-resource-definition list --limit 10 --after +``` + +### Find first matching platformResourceDefinition + +```bash +csdk platform-resource-definition find-first --where.id.equalTo +``` + +### List platformResourceDefinition records with field selection + +```bash +csdk platform-resource-definition list --select id,id +``` + +### List platformResourceDefinition records with filtering and ordering + +```bash +csdk platform-resource-definition list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a platformResourceDefinition + +```bash +csdk platform-resource-definition create --namespaceId --kind --name --slug [--createdBy ] [--updatedBy ] [--description ] [--defaultSpec ] [--requiredSecrets ] [--requiredConfigs ] [--integrations ] [--labels ] [--annotations ] [--stepUpMinAge ] +``` + +### Get a platformResourceDefinition by id + +```bash +csdk platform-resource-definition get --id +``` diff --git a/.agents/skills/cli-compute/references/platform-resource-event.md b/.agents/skills/cli-compute/references/platform-resource-event.md new file mode 100644 index 0000000000..0878960f88 --- /dev/null +++ b/.agents/skills/cli-compute/references/platform-resource-event.md @@ -0,0 +1,68 @@ +# platformResourceEvent + + + +CRUD operations for PlatformResourceEvent records via csdk CLI + +## Usage + +```bash +csdk platform-resource-event list +csdk platform-resource-event list --where.. --orderBy +csdk platform-resource-event list --limit 10 --after +csdk platform-resource-event find-first --where.. +csdk platform-resource-event get --id +csdk platform-resource-event create --resourceId --eventType [--actorId ] [--message ] [--metadata ] +csdk platform-resource-event update --id [--resourceId ] [--eventType ] [--actorId ] [--message ] [--metadata ] +csdk platform-resource-event delete --id +``` + +## Examples + +### List platformResourceEvent records + +```bash +csdk platform-resource-event list +``` + +### List platformResourceEvent records with pagination + +```bash +csdk platform-resource-event list --limit 10 --offset 0 +``` + +### List platformResourceEvent records with cursor pagination + +```bash +csdk platform-resource-event list --limit 10 --after +``` + +### Find first matching platformResourceEvent + +```bash +csdk platform-resource-event find-first --where.id.equalTo +``` + +### List platformResourceEvent records with field selection + +```bash +csdk platform-resource-event list --select id,id +``` + +### List platformResourceEvent records with filtering and ordering + +```bash +csdk platform-resource-event list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a platformResourceEvent + +```bash +csdk platform-resource-event create --resourceId --eventType [--actorId ] [--message ] [--metadata ] +``` + +### Get a platformResourceEvent by id + +```bash +csdk platform-resource-event get --id +``` diff --git a/.agents/skills/cli-compute/references/platform-resource-status-check.md b/.agents/skills/cli-compute/references/platform-resource-status-check.md new file mode 100644 index 0000000000..14ad66a640 --- /dev/null +++ b/.agents/skills/cli-compute/references/platform-resource-status-check.md @@ -0,0 +1,68 @@ +# platformResourceStatusCheck + + + +CRUD operations for PlatformResourceStatusCheck records via csdk CLI + +## Usage + +```bash +csdk platform-resource-status-check list +csdk platform-resource-status-check list --where.. --orderBy +csdk platform-resource-status-check list --limit 10 --after +csdk platform-resource-status-check find-first --where.. +csdk platform-resource-status-check get --id +csdk platform-resource-status-check create --resourceId [--requestedBy ] [--requestedAt ] [--completedAt ] [--status ] [--result ] +csdk platform-resource-status-check update --id [--resourceId ] [--requestedBy ] [--requestedAt ] [--completedAt ] [--status ] [--result ] +csdk platform-resource-status-check delete --id +``` + +## Examples + +### List platformResourceStatusCheck records + +```bash +csdk platform-resource-status-check list +``` + +### List platformResourceStatusCheck records with pagination + +```bash +csdk platform-resource-status-check list --limit 10 --offset 0 +``` + +### List platformResourceStatusCheck records with cursor pagination + +```bash +csdk platform-resource-status-check list --limit 10 --after +``` + +### Find first matching platformResourceStatusCheck + +```bash +csdk platform-resource-status-check find-first --where.id.equalTo +``` + +### List platformResourceStatusCheck records with field selection + +```bash +csdk platform-resource-status-check list --select id,id +``` + +### List platformResourceStatusCheck records with filtering and ordering + +```bash +csdk platform-resource-status-check list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a platformResourceStatusCheck + +```bash +csdk platform-resource-status-check create --resourceId [--requestedBy ] [--requestedAt ] [--completedAt ] [--status ] [--result ] +``` + +### Get a platformResourceStatusCheck by id + +```bash +csdk platform-resource-status-check get --id +``` diff --git a/.agents/skills/cli-compute/references/platform-resource.md b/.agents/skills/cli-compute/references/platform-resource.md new file mode 100644 index 0000000000..f80444a7d9 --- /dev/null +++ b/.agents/skills/cli-compute/references/platform-resource.md @@ -0,0 +1,68 @@ +# platformResource + + + +CRUD operations for PlatformResource records via csdk CLI + +## Usage + +```bash +csdk platform-resource list +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 --namespaceId --kind --name --slug [--createdBy ] [--updatedBy ] [--spec ] [--status ] [--statusObserved ] [--lastError ] [--errorCount ] [--labels ] [--annotations ] [--requiredSecrets ] [--requiredConfigs ] [--integrations ] [--resourceDefinitionId ] +csdk platform-resource update --id [--createdBy ] [--updatedBy ] [--namespaceId ] [--kind ] [--name ] [--slug ] [--spec ] [--status ] [--statusObserved ] [--lastError ] [--errorCount ] [--labels ] [--annotations ] [--requiredSecrets ] [--requiredConfigs ] [--integrations ] [--resourceDefinitionId ] +csdk platform-resource delete --id +``` + +## Examples + +### List platformResource records + +```bash +csdk platform-resource list +``` + +### List platformResource records with pagination + +```bash +csdk platform-resource list --limit 10 --offset 0 +``` + +### List platformResource records with cursor pagination + +```bash +csdk platform-resource list --limit 10 --after +``` + +### Find first matching platformResource + +```bash +csdk platform-resource find-first --where.id.equalTo +``` + +### List platformResource records with field selection + +```bash +csdk platform-resource list --select id,id +``` + +### List platformResource records with filtering and ordering + +```bash +csdk platform-resource list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a platformResource + +```bash +csdk platform-resource create --namespaceId --kind --name --slug [--createdBy ] [--updatedBy ] [--spec ] [--status ] [--statusObserved ] [--lastError ] [--errorCount ] [--labels ] [--annotations ] [--requiredSecrets ] [--requiredConfigs ] [--integrations ] [--resourceDefinitionId ] +``` + +### Get a platformResource by id + +```bash +csdk platform-resource get --id +``` diff --git a/.agents/skills/cli-compute/references/platform-resources-requirements-state.md b/.agents/skills/cli-compute/references/platform-resources-requirements-state.md new file mode 100644 index 0000000000..3ab0dfd5be --- /dev/null +++ b/.agents/skills/cli-compute/references/platform-resources-requirements-state.md @@ -0,0 +1,68 @@ +# platformResourcesRequirementsState + + + +CRUD operations for PlatformResourcesRequirementsState records via csdk CLI + +## Usage + +```bash +csdk platform-resources-requirements-state list +csdk platform-resources-requirements-state list --where.. --orderBy +csdk platform-resources-requirements-state list --limit 10 --after +csdk platform-resources-requirements-state find-first --where.. +csdk platform-resources-requirements-state get --id +csdk platform-resources-requirements-state create --resourceId --slug --secretsHash --configHash --requirementsHash --secretsObjectName --configObjectName +csdk platform-resources-requirements-state update --id [--resourceId ] [--slug ] [--secretsHash ] [--configHash ] [--requirementsHash ] [--secretsObjectName ] [--configObjectName ] +csdk platform-resources-requirements-state delete --id +``` + +## Examples + +### List platformResourcesRequirementsState records + +```bash +csdk platform-resources-requirements-state list +``` + +### List platformResourcesRequirementsState records with pagination + +```bash +csdk platform-resources-requirements-state list --limit 10 --offset 0 +``` + +### List platformResourcesRequirementsState records with cursor pagination + +```bash +csdk platform-resources-requirements-state list --limit 10 --after +``` + +### Find first matching platformResourcesRequirementsState + +```bash +csdk platform-resources-requirements-state find-first --where.id.equalTo +``` + +### List platformResourcesRequirementsState records with field selection + +```bash +csdk platform-resources-requirements-state list --select id,id +``` + +### List platformResourcesRequirementsState records with filtering and ordering + +```bash +csdk platform-resources-requirements-state list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a platformResourcesRequirementsState + +```bash +csdk platform-resources-requirements-state create --resourceId --slug --secretsHash --configHash --requirementsHash --secretsObjectName --configObjectName +``` + +### Get a platformResourcesRequirementsState by id + +```bash +csdk platform-resources-requirements-state get --id +``` diff --git a/.agents/skills/cli-compute/references/platform-resources-resolved-requirement.md b/.agents/skills/cli-compute/references/platform-resources-resolved-requirement.md new file mode 100644 index 0000000000..6cdbee6068 --- /dev/null +++ b/.agents/skills/cli-compute/references/platform-resources-resolved-requirement.md @@ -0,0 +1,68 @@ +# platformResourcesResolvedRequirement + + + +CRUD operations for PlatformResourcesResolvedRequirement records via csdk CLI + +## Usage + +```bash +csdk platform-resources-resolved-requirement list +csdk platform-resources-resolved-requirement list --where.. --orderBy +csdk platform-resources-resolved-requirement list --limit 10 --after +csdk platform-resources-resolved-requirement find-first --where.. +csdk platform-resources-resolved-requirement get --id +csdk platform-resources-resolved-requirement create --resourceId --slug --namespaceId --requirementKind --name --required --atomId --present --secretsObjectName --configObjectName +csdk platform-resources-resolved-requirement update --id [--resourceId ] [--slug ] [--namespaceId ] [--requirementKind ] [--name ] [--required ] [--atomId ] [--present ] [--secretsObjectName ] [--configObjectName ] +csdk platform-resources-resolved-requirement delete --id +``` + +## Examples + +### List platformResourcesResolvedRequirement records + +```bash +csdk platform-resources-resolved-requirement list +``` + +### List platformResourcesResolvedRequirement records with pagination + +```bash +csdk platform-resources-resolved-requirement list --limit 10 --offset 0 +``` + +### List platformResourcesResolvedRequirement records with cursor pagination + +```bash +csdk platform-resources-resolved-requirement list --limit 10 --after +``` + +### Find first matching platformResourcesResolvedRequirement + +```bash +csdk platform-resources-resolved-requirement find-first --where.id.equalTo +``` + +### List platformResourcesResolvedRequirement records with field selection + +```bash +csdk platform-resources-resolved-requirement list --select id,id +``` + +### List platformResourcesResolvedRequirement records with filtering and ordering + +```bash +csdk platform-resources-resolved-requirement list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a platformResourcesResolvedRequirement + +```bash +csdk platform-resources-resolved-requirement create --resourceId --slug --namespaceId --requirementKind --name --required --atomId --present --secretsObjectName --configObjectName +``` + +### Get a platformResourcesResolvedRequirement by id + +```bash +csdk platform-resources-resolved-requirement get --id +``` diff --git a/.agents/skills/cli-compute/references/resource-definition.md b/.agents/skills/cli-compute/references/resource-definition.md new file mode 100644 index 0000000000..e051217367 --- /dev/null +++ b/.agents/skills/cli-compute/references/resource-definition.md @@ -0,0 +1,68 @@ +# resourceDefinition + + + +CRUD operations for ResourceDefinition records via csdk CLI + +## Usage + +```bash +csdk resource-definition list +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 --namespaceId --kind --name --slug --databaseId [--createdBy ] [--updatedBy ] [--description ] [--defaultSpec ] [--requiredSecrets ] [--requiredConfigs ] [--integrations ] [--labels ] [--annotations ] [--stepUpMinAge ] +csdk resource-definition update --id [--createdBy ] [--updatedBy ] [--namespaceId ] [--kind ] [--name ] [--slug ] [--description ] [--defaultSpec ] [--requiredSecrets ] [--requiredConfigs ] [--integrations ] [--labels ] [--annotations ] [--stepUpMinAge ] [--databaseId ] +csdk resource-definition delete --id +``` + +## Examples + +### List resourceDefinition records + +```bash +csdk resource-definition list +``` + +### List resourceDefinition records with pagination + +```bash +csdk resource-definition list --limit 10 --offset 0 +``` + +### List resourceDefinition records with cursor pagination + +```bash +csdk resource-definition list --limit 10 --after +``` + +### Find first matching resourceDefinition + +```bash +csdk resource-definition find-first --where.id.equalTo +``` + +### List resourceDefinition records with field selection + +```bash +csdk resource-definition list --select id,id +``` + +### List resourceDefinition records with filtering and ordering + +```bash +csdk resource-definition list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a resourceDefinition + +```bash +csdk resource-definition create --namespaceId --kind --name --slug --databaseId [--createdBy ] [--updatedBy ] [--description ] [--defaultSpec ] [--requiredSecrets ] [--requiredConfigs ] [--integrations ] [--labels ] [--annotations ] [--stepUpMinAge ] +``` + +### Get a resourceDefinition by id + +```bash +csdk resource-definition get --id +``` diff --git a/.agents/skills/cli-compute/references/resource-status-check.md b/.agents/skills/cli-compute/references/resource-status-check.md new file mode 100644 index 0000000000..0b101478e5 --- /dev/null +++ b/.agents/skills/cli-compute/references/resource-status-check.md @@ -0,0 +1,68 @@ +# resourceStatusCheck + + + +CRUD operations for ResourceStatusCheck records via csdk CLI + +## Usage + +```bash +csdk resource-status-check list +csdk resource-status-check list --where.. --orderBy +csdk resource-status-check list --limit 10 --after +csdk resource-status-check find-first --where.. +csdk resource-status-check get --id +csdk resource-status-check create --resourceId --databaseId [--requestedBy ] [--requestedAt ] [--completedAt ] [--status ] [--result ] +csdk resource-status-check update --id [--resourceId ] [--databaseId ] [--requestedBy ] [--requestedAt ] [--completedAt ] [--status ] [--result ] +csdk resource-status-check delete --id +``` + +## Examples + +### List resourceStatusCheck records + +```bash +csdk resource-status-check list +``` + +### List resourceStatusCheck records with pagination + +```bash +csdk resource-status-check list --limit 10 --offset 0 +``` + +### List resourceStatusCheck records with cursor pagination + +```bash +csdk resource-status-check list --limit 10 --after +``` + +### Find first matching resourceStatusCheck + +```bash +csdk resource-status-check find-first --where.id.equalTo +``` + +### List resourceStatusCheck records with field selection + +```bash +csdk resource-status-check list --select id,id +``` + +### List resourceStatusCheck records with filtering and ordering + +```bash +csdk resource-status-check list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a resourceStatusCheck + +```bash +csdk resource-status-check create --resourceId --databaseId [--requestedBy ] [--requestedAt ] [--completedAt ] [--status ] [--result ] +``` + +### Get a resourceStatusCheck by id + +```bash +csdk resource-status-check get --id +``` diff --git a/.agents/skills/cli-compute/references/resource.md b/.agents/skills/cli-compute/references/resource.md index 4caaf2f192..d8d9a1569f 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 --namespaceId --kind --name --slug --databaseId [--createdBy ] [--updatedBy ] [--spec ] [--status ] [--statusObserved ] [--lastError ] [--errorCount ] [--labels ] [--annotations ] -csdk resource update --id [--createdBy ] [--updatedBy ] [--namespaceId ] [--kind ] [--name ] [--slug ] [--spec ] [--status ] [--statusObserved ] [--lastError ] [--errorCount ] [--labels ] [--annotations ] [--databaseId ] +csdk resource create --namespaceId --kind --name --slug --databaseId [--createdBy ] [--updatedBy ] [--spec ] [--status ] [--statusObserved ] [--lastError ] [--errorCount ] [--labels ] [--annotations ] [--requiredSecrets ] [--requiredConfigs ] [--integrations ] [--resourceDefinitionId ] +csdk resource update --id [--createdBy ] [--updatedBy ] [--namespaceId ] [--kind ] [--name ] [--slug ] [--spec ] [--status ] [--statusObserved ] [--lastError ] [--errorCount ] [--labels ] [--annotations ] [--databaseId ] [--requiredSecrets ] [--requiredConfigs ] [--integrations ] [--resourceDefinitionId ] csdk resource delete --id ``` @@ -58,7 +58,7 @@ csdk resource list --where.id.equalTo --orderBy ID_ASC ### Create a resource ```bash -csdk resource create --namespaceId --kind --name --slug --databaseId [--createdBy ] [--updatedBy ] [--spec ] [--status ] [--statusObserved ] [--lastError ] [--errorCount ] [--labels ] [--annotations ] +csdk resource create --namespaceId --kind --name --slug --databaseId [--createdBy ] [--updatedBy ] [--spec ] [--status ] [--statusObserved ] [--lastError ] [--errorCount ] [--labels ] [--annotations ] [--requiredSecrets ] [--requiredConfigs ] [--integrations ] [--resourceDefinitionId ] ``` ### Get a resource by id diff --git a/.agents/skills/cli-compute/references/resources-requirements-state.md b/.agents/skills/cli-compute/references/resources-requirements-state.md new file mode 100644 index 0000000000..fc267f4eee --- /dev/null +++ b/.agents/skills/cli-compute/references/resources-requirements-state.md @@ -0,0 +1,68 @@ +# resourcesRequirementsState + + + +CRUD operations for ResourcesRequirementsState records via csdk CLI + +## Usage + +```bash +csdk resources-requirements-state list +csdk resources-requirements-state list --where.. --orderBy +csdk resources-requirements-state list --limit 10 --after +csdk resources-requirements-state find-first --where.. +csdk resources-requirements-state get --id +csdk resources-requirements-state create --resourceId --slug --secretsHash --configHash --requirementsHash --secretsObjectName --configObjectName +csdk resources-requirements-state update --id [--resourceId ] [--slug ] [--secretsHash ] [--configHash ] [--requirementsHash ] [--secretsObjectName ] [--configObjectName ] +csdk resources-requirements-state delete --id +``` + +## Examples + +### List resourcesRequirementsState records + +```bash +csdk resources-requirements-state list +``` + +### List resourcesRequirementsState records with pagination + +```bash +csdk resources-requirements-state list --limit 10 --offset 0 +``` + +### List resourcesRequirementsState records with cursor pagination + +```bash +csdk resources-requirements-state list --limit 10 --after +``` + +### Find first matching resourcesRequirementsState + +```bash +csdk resources-requirements-state find-first --where.id.equalTo +``` + +### List resourcesRequirementsState records with field selection + +```bash +csdk resources-requirements-state list --select id,id +``` + +### List resourcesRequirementsState records with filtering and ordering + +```bash +csdk resources-requirements-state list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a resourcesRequirementsState + +```bash +csdk resources-requirements-state create --resourceId --slug --secretsHash --configHash --requirementsHash --secretsObjectName --configObjectName +``` + +### Get a resourcesRequirementsState by id + +```bash +csdk resources-requirements-state get --id +``` diff --git a/.agents/skills/cli-compute/references/resources-resolved-requirement.md b/.agents/skills/cli-compute/references/resources-resolved-requirement.md new file mode 100644 index 0000000000..513fdf9c09 --- /dev/null +++ b/.agents/skills/cli-compute/references/resources-resolved-requirement.md @@ -0,0 +1,68 @@ +# resourcesResolvedRequirement + + + +CRUD operations for ResourcesResolvedRequirement records via csdk CLI + +## Usage + +```bash +csdk resources-resolved-requirement list +csdk resources-resolved-requirement list --where.. --orderBy +csdk resources-resolved-requirement list --limit 10 --after +csdk resources-resolved-requirement find-first --where.. +csdk resources-resolved-requirement get --id +csdk resources-resolved-requirement create --resourceId --slug --namespaceId --requirementKind --name --required --atomId --present --secretsObjectName --configObjectName +csdk resources-resolved-requirement update --id [--resourceId ] [--slug ] [--namespaceId ] [--requirementKind ] [--name ] [--required ] [--atomId ] [--present ] [--secretsObjectName ] [--configObjectName ] +csdk resources-resolved-requirement delete --id +``` + +## Examples + +### List resourcesResolvedRequirement records + +```bash +csdk resources-resolved-requirement list +``` + +### List resourcesResolvedRequirement records with pagination + +```bash +csdk resources-resolved-requirement list --limit 10 --offset 0 +``` + +### List resourcesResolvedRequirement records with cursor pagination + +```bash +csdk resources-resolved-requirement list --limit 10 --after +``` + +### Find first matching resourcesResolvedRequirement + +```bash +csdk resources-resolved-requirement find-first --where.id.equalTo +``` + +### List resourcesResolvedRequirement records with field selection + +```bash +csdk resources-resolved-requirement list --select id,id +``` + +### List resourcesResolvedRequirement records with filtering and ordering + +```bash +csdk resources-resolved-requirement list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a resourcesResolvedRequirement + +```bash +csdk resources-resolved-requirement create --resourceId --slug --namespaceId --requirementKind --name --required --atomId --present --secretsObjectName --configObjectName +``` + +### Get a resourcesResolvedRequirement by id + +```bash +csdk resources-resolved-requirement get --id +``` diff --git a/.agents/skills/cli-config/SKILL.md b/.agents/skills/cli-config/SKILL.md index d5d0e5b939..034c0c44e7 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 2 tables and 9 custom operations +description: CLI tool (csdk) for the config API — provides CRUD commands for 5 tables and 13 custom operations --- # cli-config -CLI tool (csdk) for the config API — provides CRUD commands for 2 tables and 9 custom operations +CLI tool (csdk) for the config API — provides CRUD commands for 5 tables and 13 custom operations ## Usage @@ -23,13 +23,13 @@ csdk auth set-token csdk config set csdk config get -# CRUD for any table (e.g. platform-config-definition) -csdk platform-config-definition list -csdk platform-config-definition get --id -csdk platform-config-definition create -- +# CRUD for any table (e.g. platform-config) +csdk platform-config list +csdk platform-config get --id +csdk platform-config create -- # Non-interactive mode (skip all prompts, use flags only) -csdk --no-tty platform-config-definition list +csdk --no-tty platform-config list ``` ## Examples @@ -40,13 +40,13 @@ csdk --no-tty platform-config-definition list csdk context create local --endpoint http://localhost:5000/graphql csdk context use local csdk auth set-token -csdk platform-config-definition list +csdk platform-config list ``` ### Non-interactive mode (for scripts and CI) ```bash -csdk --no-tty platform-config-definition create -- +csdk --no-tty platform-config create -- ``` ## References @@ -56,14 +56,21 @@ See the `references/` directory for detailed per-entity API documentation: - [context](references/context.md) - [auth](references/auth.md) - [config](references/config.md) -- [platform-config-definition](references/platform-config-definition.md) - [platform-config](references/platform-config.md) +- [config](references/config.md) +- [platform-internal-secret](references/platform-internal-secret.md) +- [platform-secret](references/platform-secret.md) +- [secret](references/secret.md) +- [platform-internal-secrets-del](references/platform-internal-secrets-del.md) - [platform-secrets-del](references/platform-secrets-del.md) -- [org-secrets-del](references/org-secrets-del.md) +- [secrets-del](references/secrets-del.md) +- [platform-internal-secrets-remove-array](references/platform-internal-secrets-remove-array.md) - [platform-secrets-remove-array](references/platform-secrets-remove-array.md) -- [org-secrets-remove-array](references/org-secrets-remove-array.md) +- [secrets-remove-array](references/secrets-remove-array.md) +- [platform-internal-secrets-rotate](references/platform-internal-secrets-rotate.md) +- [platform-internal-secrets-set](references/platform-internal-secrets-set.md) - [platform-secrets-rotate](references/platform-secrets-rotate.md) +- [secrets-rotate](references/secrets-rotate.md) - [platform-secrets-set](references/platform-secrets-set.md) -- [org-secrets-rotate](references/org-secrets-rotate.md) -- [org-secrets-set](references/org-secrets-set.md) +- [secrets-set](references/secrets-set.md) - [provision-bucket](references/provision-bucket.md) diff --git a/.agents/skills/cli-config/references/config.md b/.agents/skills/cli-config/references/config.md index cc1c23b7ba..7391eac492 100644 --- a/.agents/skills/cli-config/references/config.md +++ b/.agents/skills/cli-config/references/config.md @@ -1,29 +1,68 @@ -# Config Variables +# config -Manage per-context key-value configuration variables for csdk +CRUD operations for Config records via csdk CLI ## Usage ```bash -csdk config get -csdk config set csdk config list -csdk config delete +csdk config list --where.. --orderBy +csdk config list --limit 10 --after +csdk config find-first --where.. +csdk config get --id +csdk config create --namespaceId --databaseId --name [--provider ] [--value ] [--labels ] [--annotations ] [--description ] [--expiresAt ] +csdk config update --id [--namespaceId ] [--databaseId ] [--name ] [--provider ] [--value ] [--labels ] [--annotations ] [--description ] [--expiresAt ] +csdk config delete --id ``` ## Examples -### Store and retrieve a config variable +### List config records ```bash -csdk config set orgId abc-123 -csdk config get orgId +csdk config list ``` -### List all config variables +### List config records with pagination ```bash -csdk config list +csdk config list --limit 10 --offset 0 +``` + +### List config records with cursor pagination + +```bash +csdk config list --limit 10 --after +``` + +### Find first matching config + +```bash +csdk config find-first --where.id.equalTo +``` + +### List config records with field selection + +```bash +csdk config list --select id,id +``` + +### List config records with filtering and ordering + +```bash +csdk config list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a config + +```bash +csdk config create --namespaceId --databaseId --name [--provider ] [--value ] [--labels ] [--annotations ] [--description ] [--expiresAt ] +``` + +### Get a config by id + +```bash +csdk config get --id ``` diff --git a/.agents/skills/cli-config/references/platform-config.md b/.agents/skills/cli-config/references/platform-config.md index 7f130c97ac..f8f15048cb 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 --namespaceId --name [--value ] [--labels ] [--annotations ] [--description ] [--expiresAt ] -csdk platform-config update --id [--namespaceId ] [--name ] [--value ] [--labels ] [--annotations ] [--description ] [--expiresAt ] +csdk platform-config create --namespaceId --name [--provider ] [--value ] [--labels ] [--annotations ] [--description ] [--expiresAt ] +csdk platform-config update --id [--namespaceId ] [--name ] [--provider ] [--value ] [--labels ] [--annotations ] [--description ] [--expiresAt ] 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 --namespaceId --name [--value ] [--labels ] [--annotations ] [--description ] [--expiresAt ] +csdk platform-config create --namespaceId --name [--provider ] [--value ] [--labels ] [--annotations ] [--description ] [--expiresAt ] ``` ### Get a platformConfig by id diff --git a/.agents/skills/cli-config/references/platform-internal-secret.md b/.agents/skills/cli-config/references/platform-internal-secret.md new file mode 100644 index 0000000000..7a7f59ebc7 --- /dev/null +++ b/.agents/skills/cli-config/references/platform-internal-secret.md @@ -0,0 +1,68 @@ +# platformInternalSecret + + + +CRUD operations for PlatformInternalSecret records via csdk CLI + +## Usage + +```bash +csdk platform-internal-secret list +csdk platform-internal-secret list --where.. --orderBy +csdk platform-internal-secret list --limit 10 --after +csdk platform-internal-secret find-first --where.. +csdk platform-internal-secret get --id +csdk platform-internal-secret create [--name ] [--namespaceId ] [--description ] [--labels ] [--annotations ] [--rotatedAt ] [--retiredAt ] +csdk platform-internal-secret update --id [--name ] [--namespaceId ] [--description ] [--labels ] [--annotations ] [--rotatedAt ] [--retiredAt ] +csdk platform-internal-secret delete --id +``` + +## Examples + +### List platformInternalSecret records + +```bash +csdk platform-internal-secret list +``` + +### List platformInternalSecret records with pagination + +```bash +csdk platform-internal-secret list --limit 10 --offset 0 +``` + +### List platformInternalSecret records with cursor pagination + +```bash +csdk platform-internal-secret list --limit 10 --after +``` + +### Find first matching platformInternalSecret + +```bash +csdk platform-internal-secret find-first --where.id.equalTo +``` + +### List platformInternalSecret records with field selection + +```bash +csdk platform-internal-secret list --select id,id +``` + +### List platformInternalSecret records with filtering and ordering + +```bash +csdk platform-internal-secret list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a platformInternalSecret + +```bash +csdk platform-internal-secret create [--name ] [--namespaceId ] [--description ] [--labels ] [--annotations ] [--rotatedAt ] [--retiredAt ] +``` + +### Get a platformInternalSecret by id + +```bash +csdk platform-internal-secret get --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 new file mode 100644 index 0000000000..f6aff587a0 --- /dev/null +++ b/.agents/skills/cli-config/references/platform-internal-secrets-del.md @@ -0,0 +1,19 @@ +# platformInternalSecretsDel + + + +Execute the platformInternalSecretsDel mutation + +## Usage + +```bash +csdk platform-internal-secrets-del --input.clientMutationId --input.secretName --input.namespaceId +``` + +## Examples + +### Run platformInternalSecretsDel + +```bash +csdk platform-internal-secrets-del --input.clientMutationId --input.secretName --input.namespaceId +``` 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 new file mode 100644 index 0000000000..07f28e475c --- /dev/null +++ b/.agents/skills/cli-config/references/platform-internal-secrets-remove-array.md @@ -0,0 +1,19 @@ +# platformInternalSecretsRemoveArray + + + +Execute the platformInternalSecretsRemoveArray mutation + +## Usage + +```bash +csdk platform-internal-secrets-remove-array --input.clientMutationId --input.secretNames --input.namespaceId +``` + +## Examples + +### Run platformInternalSecretsRemoveArray + +```bash +csdk platform-internal-secrets-remove-array --input.clientMutationId --input.secretNames --input.namespaceId +``` diff --git a/.agents/skills/cli-config/references/platform-internal-secrets-rotate.md b/.agents/skills/cli-config/references/platform-internal-secrets-rotate.md new file mode 100644 index 0000000000..8695312555 --- /dev/null +++ b/.agents/skills/cli-config/references/platform-internal-secrets-rotate.md @@ -0,0 +1,19 @@ +# platformInternalSecretsRotate + + + +Execute the platformInternalSecretsRotate mutation + +## Usage + +```bash +csdk platform-internal-secrets-rotate --input.clientMutationId --input.secretName --input.secretValue --input.namespaceId --input.algo +``` + +## Examples + +### Run platformInternalSecretsRotate + +```bash +csdk platform-internal-secrets-rotate --input.clientMutationId --input.secretName --input.secretValue --input.namespaceId --input.algo +``` diff --git a/.agents/skills/cli-config/references/platform-internal-secrets-set.md b/.agents/skills/cli-config/references/platform-internal-secrets-set.md new file mode 100644 index 0000000000..a8ab516e52 --- /dev/null +++ b/.agents/skills/cli-config/references/platform-internal-secrets-set.md @@ -0,0 +1,19 @@ +# platformInternalSecretsSet + + + +Execute the platformInternalSecretsSet mutation + +## Usage + +```bash +csdk platform-internal-secrets-set --input.clientMutationId --input.secretName --input.secretValue --input.secretNamespaceId --input.algo +``` + +## Examples + +### Run platformInternalSecretsSet + +```bash +csdk platform-internal-secrets-set --input.clientMutationId --input.secretName --input.secretValue --input.secretNamespaceId --input.algo +``` diff --git a/.agents/skills/cli-config/references/platform-secret.md b/.agents/skills/cli-config/references/platform-secret.md new file mode 100644 index 0000000000..7d56e8d902 --- /dev/null +++ b/.agents/skills/cli-config/references/platform-secret.md @@ -0,0 +1,68 @@ +# platformSecret + + + +CRUD operations for PlatformSecret records via csdk CLI + +## Usage + +```bash +csdk platform-secret list +csdk platform-secret list --where.. --orderBy +csdk platform-secret list --limit 10 --after +csdk platform-secret find-first --where.. +csdk platform-secret get --id +csdk platform-secret create [--name ] [--provider ] [--namespaceId ] [--description ] [--labels ] [--annotations ] [--rotatedAt ] [--retiredAt ] +csdk platform-secret update --id [--name ] [--provider ] [--namespaceId ] [--description ] [--labels ] [--annotations ] [--rotatedAt ] [--retiredAt ] +csdk platform-secret delete --id +``` + +## Examples + +### List platformSecret records + +```bash +csdk platform-secret list +``` + +### List platformSecret records with pagination + +```bash +csdk platform-secret list --limit 10 --offset 0 +``` + +### List platformSecret records with cursor pagination + +```bash +csdk platform-secret list --limit 10 --after +``` + +### Find first matching platformSecret + +```bash +csdk platform-secret find-first --where.id.equalTo +``` + +### List platformSecret records with field selection + +```bash +csdk platform-secret list --select id,id +``` + +### List platformSecret records with filtering and ordering + +```bash +csdk platform-secret list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a platformSecret + +```bash +csdk platform-secret create [--name ] [--provider ] [--namespaceId ] [--description ] [--labels ] [--annotations ] [--rotatedAt ] [--retiredAt ] +``` + +### Get a platformSecret by id + +```bash +csdk platform-secret get --id +``` diff --git a/.agents/skills/cli-config/references/platform-secrets-set.md b/.agents/skills/cli-config/references/platform-secrets-set.md index 035caa95c5..6917ed5d9f 100644 --- a/.agents/skills/cli-config/references/platform-secrets-set.md +++ b/.agents/skills/cli-config/references/platform-secrets-set.md @@ -7,7 +7,7 @@ Execute the platformSecretsSet mutation ## Usage ```bash -csdk platform-secrets-set --input.clientMutationId --input.secretName --input.secretValue --input.secretNamespaceId --input.algo +csdk platform-secrets-set --input.clientMutationId --input.secretName --input.secretValue --input.secretNamespaceId --input.algo --input.provider ``` ## Examples @@ -15,5 +15,5 @@ csdk platform-secrets-set --input.clientMutationId --input.secretName < ### Run platformSecretsSet ```bash -csdk platform-secrets-set --input.clientMutationId --input.secretName --input.secretValue --input.secretNamespaceId --input.algo +csdk platform-secrets-set --input.clientMutationId --input.secretName --input.secretValue --input.secretNamespaceId --input.algo --input.provider ``` diff --git a/.agents/skills/cli-config/references/secret.md b/.agents/skills/cli-config/references/secret.md new file mode 100644 index 0000000000..e39eb3f65c --- /dev/null +++ b/.agents/skills/cli-config/references/secret.md @@ -0,0 +1,68 @@ +# secret + + + +CRUD operations for Secret records via csdk CLI + +## Usage + +```bash +csdk secret list +csdk secret list --where.. --orderBy +csdk secret list --limit 10 --after +csdk secret find-first --where.. +csdk secret get --id +csdk secret create [--databaseId ] [--name ] [--provider ] [--namespaceId ] [--description ] [--labels ] [--annotations ] [--rotatedAt ] [--retiredAt ] +csdk secret update --id [--databaseId ] [--name ] [--provider ] [--namespaceId ] [--description ] [--labels ] [--annotations ] [--rotatedAt ] [--retiredAt ] +csdk secret delete --id +``` + +## Examples + +### List secret records + +```bash +csdk secret list +``` + +### List secret records with pagination + +```bash +csdk secret list --limit 10 --offset 0 +``` + +### List secret records with cursor pagination + +```bash +csdk secret list --limit 10 --after +``` + +### Find first matching secret + +```bash +csdk secret find-first --where.id.equalTo +``` + +### List secret records with field selection + +```bash +csdk secret list --select id,id +``` + +### List secret records with filtering and ordering + +```bash +csdk secret list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a secret + +```bash +csdk secret create [--databaseId ] [--name ] [--provider ] [--namespaceId ] [--description ] [--labels ] [--annotations ] [--rotatedAt ] [--retiredAt ] +``` + +### Get a secret by id + +```bash +csdk secret get --id +``` diff --git a/.agents/skills/cli-config/references/secrets-del.md b/.agents/skills/cli-config/references/secrets-del.md new file mode 100644 index 0000000000..5207e80551 --- /dev/null +++ b/.agents/skills/cli-config/references/secrets-del.md @@ -0,0 +1,19 @@ +# _secretsDel + + + +Execute the _secretsDel mutation + +## Usage + +```bash +csdk secrets-del --input.clientMutationId --input.databaseId --input.secretName --input.namespaceId +``` + +## Examples + +### Run _secretsDel + +```bash +csdk secrets-del --input.clientMutationId --input.databaseId --input.secretName --input.namespaceId +``` diff --git a/.agents/skills/cli-config/references/secrets-remove-array.md b/.agents/skills/cli-config/references/secrets-remove-array.md new file mode 100644 index 0000000000..d5affa9fb7 --- /dev/null +++ b/.agents/skills/cli-config/references/secrets-remove-array.md @@ -0,0 +1,19 @@ +# _secretsRemoveArray + + + +Execute the _secretsRemoveArray mutation + +## Usage + +```bash +csdk secrets-remove-array --input.clientMutationId --input.databaseId --input.secretNames --input.namespaceId +``` + +## Examples + +### Run _secretsRemoveArray + +```bash +csdk secrets-remove-array --input.clientMutationId --input.databaseId --input.secretNames --input.namespaceId +``` diff --git a/.agents/skills/cli-config/references/secrets-rotate.md b/.agents/skills/cli-config/references/secrets-rotate.md new file mode 100644 index 0000000000..e5eb39cee3 --- /dev/null +++ b/.agents/skills/cli-config/references/secrets-rotate.md @@ -0,0 +1,19 @@ +# _secretsRotate + + + +Execute the _secretsRotate mutation + +## Usage + +```bash +csdk secrets-rotate --input.clientMutationId --input.databaseId --input.secretName --input.secretValue --input.namespaceId --input.algo +``` + +## Examples + +### Run _secretsRotate + +```bash +csdk secrets-rotate --input.clientMutationId --input.databaseId --input.secretName --input.secretValue --input.namespaceId --input.algo +``` diff --git a/.agents/skills/cli-config/references/secrets-set.md b/.agents/skills/cli-config/references/secrets-set.md new file mode 100644 index 0000000000..885b554e24 --- /dev/null +++ b/.agents/skills/cli-config/references/secrets-set.md @@ -0,0 +1,19 @@ +# _secretsSet + + + +Execute the _secretsSet mutation + +## Usage + +```bash +csdk secrets-set --input.clientMutationId --input.scopeDatabaseId --input.secretName --input.secretValue --input.secretNamespaceId --input.algo --input.provider +``` + +## Examples + +### Run _secretsSet + +```bash +csdk secrets-set --input.clientMutationId --input.scopeDatabaseId --input.secretName --input.secretValue --input.secretNamespaceId --input.algo --input.provider +``` diff --git a/.agents/skills/cli-infra/SKILL.md b/.agents/skills/cli-infra/SKILL.md new file mode 100644 index 0000000000..ea21740d29 --- /dev/null +++ b/.agents/skills/cli-infra/SKILL.md @@ -0,0 +1,72 @@ +--- +name: cli-infra +description: CLI tool (csdk) for the infra API — provides CRUD commands for 10 tables and 4 custom operations +--- + +# cli-infra + + + +CLI tool (csdk) for the infra API — provides CRUD commands for 10 tables and 4 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. infra-get-all-record) +csdk infra-get-all-record list +csdk infra-get-all-record get --id +csdk infra-get-all-record create -- + +# Non-interactive mode (skip all prompts, use flags only) +csdk --no-tty infra-get-all-record 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 infra-get-all-record list +``` + +### Non-interactive mode (for scripts and CI) + +```bash +csdk --no-tty infra-get-all-record create -- +``` + +## References + +See the `references/` directory for detailed per-entity API documentation: + +- [context](references/context.md) +- [auth](references/auth.md) +- [config](references/config.md) +- [infra-get-all-record](references/infra-get-all-record.md) +- [infra-ref](references/infra-ref.md) +- [infra-store](references/infra-store.md) +- [infra-object](references/infra-object.md) +- [infra-commit](references/infra-commit.md) +- [db-preset](references/db-preset.md) +- [platform-namespace](references/platform-namespace.md) +- [namespace](references/namespace.md) +- [platform-namespace-event](references/platform-namespace-event.md) +- [namespace-event](references/namespace-event.md) +- [infra-init-empty-repo](references/infra-init-empty-repo.md) +- [infra-set-data-at-path](references/infra-set-data-at-path.md) +- [infra-insert-node-at-path](references/infra-insert-node-at-path.md) +- [provision-bucket](references/provision-bucket.md) diff --git a/.agents/skills/cli-infra/references/auth.md b/.agents/skills/cli-infra/references/auth.md new file mode 100644 index 0000000000..d24ec20dd5 --- /dev/null +++ b/.agents/skills/cli-infra/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-infra/references/config.md b/.agents/skills/cli-infra/references/config.md new file mode 100644 index 0000000000..cc1c23b7ba --- /dev/null +++ b/.agents/skills/cli-infra/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-infra/references/context.md b/.agents/skills/cli-infra/references/context.md new file mode 100644 index 0000000000..704ff09111 --- /dev/null +++ b/.agents/skills/cli-infra/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-infra/references/db-preset.md b/.agents/skills/cli-infra/references/db-preset.md new file mode 100644 index 0000000000..0528cdf5df --- /dev/null +++ b/.agents/skills/cli-infra/references/db-preset.md @@ -0,0 +1,68 @@ +# dbPreset + + + +CRUD operations for DbPreset records via csdk CLI + +## Usage + +```bash +csdk db-preset list +csdk db-preset list --where.. --orderBy +csdk db-preset list --limit 10 --after +csdk db-preset find-first --where.. +csdk db-preset get --id +csdk db-preset create --slug --definition [--storeId ] [--commitId ] [--modulesHash ] [--label ] [--description ] [--active ] +csdk db-preset update --id [--storeId ] [--slug ] [--definition ] [--commitId ] [--modulesHash ] [--label ] [--description ] [--active ] +csdk db-preset delete --id +``` + +## Examples + +### List dbPreset records + +```bash +csdk db-preset list +``` + +### List dbPreset records with pagination + +```bash +csdk db-preset list --limit 10 --offset 0 +``` + +### List dbPreset records with cursor pagination + +```bash +csdk db-preset list --limit 10 --after +``` + +### Find first matching dbPreset + +```bash +csdk db-preset find-first --where.id.equalTo +``` + +### List dbPreset records with field selection + +```bash +csdk db-preset list --select id,id +``` + +### List dbPreset records with filtering and ordering + +```bash +csdk db-preset list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a dbPreset + +```bash +csdk db-preset create --slug --definition [--storeId ] [--commitId ] [--modulesHash ] [--label ] [--description ] [--active ] +``` + +### Get a dbPreset by id + +```bash +csdk db-preset get --id +``` diff --git a/.agents/skills/cli-infra/references/infra-commit.md b/.agents/skills/cli-infra/references/infra-commit.md new file mode 100644 index 0000000000..e543bf7c81 --- /dev/null +++ b/.agents/skills/cli-infra/references/infra-commit.md @@ -0,0 +1,68 @@ +# infraCommit + + + +CRUD operations for InfraCommit records via csdk CLI + +## Usage + +```bash +csdk infra-commit list +csdk infra-commit list --where.. --orderBy +csdk infra-commit list --limit 10 --after +csdk infra-commit find-first --where.. +csdk infra-commit get --id +csdk infra-commit create --scopeId --storeId [--message ] [--parentIds ] [--authorId ] [--committerId ] [--treeId ] [--date ] +csdk infra-commit update --id [--message ] [--scopeId ] [--storeId ] [--parentIds ] [--authorId ] [--committerId ] [--treeId ] [--date ] +csdk infra-commit delete --id +``` + +## Examples + +### List infraCommit records + +```bash +csdk infra-commit list +``` + +### List infraCommit records with pagination + +```bash +csdk infra-commit list --limit 10 --offset 0 +``` + +### List infraCommit records with cursor pagination + +```bash +csdk infra-commit list --limit 10 --after +``` + +### Find first matching infraCommit + +```bash +csdk infra-commit find-first --where.id.equalTo +``` + +### List infraCommit records with field selection + +```bash +csdk infra-commit list --select id,id +``` + +### List infraCommit records with filtering and ordering + +```bash +csdk infra-commit list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a infraCommit + +```bash +csdk infra-commit create --scopeId --storeId [--message ] [--parentIds ] [--authorId ] [--committerId ] [--treeId ] [--date ] +``` + +### Get a infraCommit by id + +```bash +csdk infra-commit get --id +``` diff --git a/.agents/skills/cli-infra/references/infra-get-all-record.md b/.agents/skills/cli-infra/references/infra-get-all-record.md new file mode 100644 index 0000000000..aceb284c31 --- /dev/null +++ b/.agents/skills/cli-infra/references/infra-get-all-record.md @@ -0,0 +1,68 @@ +# infraGetAllRecord + + + +CRUD operations for InfraGetAllRecord records via csdk CLI + +## Usage + +```bash +csdk infra-get-all-record list +csdk infra-get-all-record list --where.. --orderBy +csdk infra-get-all-record list --limit 10 --after +csdk infra-get-all-record find-first --where.. +csdk infra-get-all-record get --id +csdk infra-get-all-record create --path --data +csdk infra-get-all-record update --id [--path ] [--data ] +csdk infra-get-all-record delete --id +``` + +## Examples + +### List infraGetAllRecord records + +```bash +csdk infra-get-all-record list +``` + +### List infraGetAllRecord records with pagination + +```bash +csdk infra-get-all-record list --limit 10 --offset 0 +``` + +### List infraGetAllRecord records with cursor pagination + +```bash +csdk infra-get-all-record list --limit 10 --after +``` + +### Find first matching infraGetAllRecord + +```bash +csdk infra-get-all-record find-first --where.id.equalTo +``` + +### List infraGetAllRecord records with field selection + +```bash +csdk infra-get-all-record list --select id,id +``` + +### List infraGetAllRecord records with filtering and ordering + +```bash +csdk infra-get-all-record list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a infraGetAllRecord + +```bash +csdk infra-get-all-record create --path --data +``` + +### Get a infraGetAllRecord by id + +```bash +csdk infra-get-all-record get --id +``` diff --git a/.agents/skills/cli-infra/references/infra-init-empty-repo.md b/.agents/skills/cli-infra/references/infra-init-empty-repo.md new file mode 100644 index 0000000000..ba51c953fd --- /dev/null +++ b/.agents/skills/cli-infra/references/infra-init-empty-repo.md @@ -0,0 +1,19 @@ +# infraInitEmptyRepo + + + +Execute the infraInitEmptyRepo mutation + +## Usage + +```bash +csdk infra-init-empty-repo --input.clientMutationId --input.sId --input.storeId +``` + +## Examples + +### Run infraInitEmptyRepo + +```bash +csdk infra-init-empty-repo --input.clientMutationId --input.sId --input.storeId +``` diff --git a/.agents/skills/cli-infra/references/infra-insert-node-at-path.md b/.agents/skills/cli-infra/references/infra-insert-node-at-path.md new file mode 100644 index 0000000000..9918dfa24a --- /dev/null +++ b/.agents/skills/cli-infra/references/infra-insert-node-at-path.md @@ -0,0 +1,19 @@ +# infraInsertNodeAtPath + + + +Execute the infraInsertNodeAtPath mutation + +## Usage + +```bash +csdk infra-insert-node-at-path --input.clientMutationId --input.sId --input.root --input.path --input.data --input.kids --input.ktree +``` + +## Examples + +### Run infraInsertNodeAtPath + +```bash +csdk infra-insert-node-at-path --input.clientMutationId --input.sId --input.root --input.path --input.data --input.kids --input.ktree +``` diff --git a/.agents/skills/cli-infra/references/infra-object.md b/.agents/skills/cli-infra/references/infra-object.md new file mode 100644 index 0000000000..2fc40bf6d1 --- /dev/null +++ b/.agents/skills/cli-infra/references/infra-object.md @@ -0,0 +1,68 @@ +# infraObject + + + +CRUD operations for InfraObject records via csdk CLI + +## Usage + +```bash +csdk infra-object list +csdk infra-object list --where.. --orderBy +csdk infra-object list --limit 10 --after +csdk infra-object find-first --where.. +csdk infra-object get --id +csdk infra-object create --scopeId [--kids ] [--ktree ] [--data ] +csdk infra-object update --id [--scopeId ] [--kids ] [--ktree ] [--data ] +csdk infra-object delete --id +``` + +## Examples + +### List infraObject records + +```bash +csdk infra-object list +``` + +### List infraObject records with pagination + +```bash +csdk infra-object list --limit 10 --offset 0 +``` + +### List infraObject records with cursor pagination + +```bash +csdk infra-object list --limit 10 --after +``` + +### Find first matching infraObject + +```bash +csdk infra-object find-first --where.id.equalTo +``` + +### List infraObject records with field selection + +```bash +csdk infra-object list --select id,id +``` + +### List infraObject records with filtering and ordering + +```bash +csdk infra-object list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a infraObject + +```bash +csdk infra-object create --scopeId [--kids ] [--ktree ] [--data ] +``` + +### Get a infraObject by id + +```bash +csdk infra-object get --id +``` diff --git a/.agents/skills/cli-infra/references/infra-ref.md b/.agents/skills/cli-infra/references/infra-ref.md new file mode 100644 index 0000000000..6676c6c0b1 --- /dev/null +++ b/.agents/skills/cli-infra/references/infra-ref.md @@ -0,0 +1,68 @@ +# infraRef + + + +CRUD operations for InfraRef records via csdk CLI + +## Usage + +```bash +csdk infra-ref list +csdk infra-ref list --where.. --orderBy +csdk infra-ref list --limit 10 --after +csdk infra-ref find-first --where.. +csdk infra-ref get --id +csdk infra-ref create --name --scopeId --storeId [--commitId ] +csdk infra-ref update --id [--name ] [--scopeId ] [--storeId ] [--commitId ] +csdk infra-ref delete --id +``` + +## Examples + +### List infraRef records + +```bash +csdk infra-ref list +``` + +### List infraRef records with pagination + +```bash +csdk infra-ref list --limit 10 --offset 0 +``` + +### List infraRef records with cursor pagination + +```bash +csdk infra-ref list --limit 10 --after +``` + +### Find first matching infraRef + +```bash +csdk infra-ref find-first --where.id.equalTo +``` + +### List infraRef records with field selection + +```bash +csdk infra-ref list --select id,id +``` + +### List infraRef records with filtering and ordering + +```bash +csdk infra-ref list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a infraRef + +```bash +csdk infra-ref create --name --scopeId --storeId [--commitId ] +``` + +### Get a infraRef by id + +```bash +csdk infra-ref get --id +``` diff --git a/.agents/skills/cli-infra/references/infra-set-data-at-path.md b/.agents/skills/cli-infra/references/infra-set-data-at-path.md new file mode 100644 index 0000000000..e1d7645cfe --- /dev/null +++ b/.agents/skills/cli-infra/references/infra-set-data-at-path.md @@ -0,0 +1,19 @@ +# infraSetDataAtPath + + + +Execute the infraSetDataAtPath mutation + +## Usage + +```bash +csdk infra-set-data-at-path --input.clientMutationId --input.sId --input.root --input.path --input.data +``` + +## Examples + +### Run infraSetDataAtPath + +```bash +csdk infra-set-data-at-path --input.clientMutationId --input.sId --input.root --input.path --input.data +``` diff --git a/.agents/skills/cli-infra/references/infra-store.md b/.agents/skills/cli-infra/references/infra-store.md new file mode 100644 index 0000000000..ac363c7358 --- /dev/null +++ b/.agents/skills/cli-infra/references/infra-store.md @@ -0,0 +1,68 @@ +# infraStore + + + +CRUD operations for InfraStore records via csdk CLI + +## Usage + +```bash +csdk infra-store list +csdk infra-store list --where.. --orderBy +csdk infra-store list --limit 10 --after +csdk infra-store find-first --where.. +csdk infra-store get --id +csdk infra-store create --name --scopeId [--hash ] +csdk infra-store update --id [--name ] [--scopeId ] [--hash ] +csdk infra-store delete --id +``` + +## Examples + +### List infraStore records + +```bash +csdk infra-store list +``` + +### List infraStore records with pagination + +```bash +csdk infra-store list --limit 10 --offset 0 +``` + +### List infraStore records with cursor pagination + +```bash +csdk infra-store list --limit 10 --after +``` + +### Find first matching infraStore + +```bash +csdk infra-store find-first --where.id.equalTo +``` + +### List infraStore records with field selection + +```bash +csdk infra-store list --select id,id +``` + +### List infraStore records with filtering and ordering + +```bash +csdk infra-store list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a infraStore + +```bash +csdk infra-store create --name --scopeId [--hash ] +``` + +### Get a infraStore by id + +```bash +csdk infra-store get --id +``` diff --git a/.agents/skills/cli-infra/references/namespace-event.md b/.agents/skills/cli-infra/references/namespace-event.md new file mode 100644 index 0000000000..b80c650a04 --- /dev/null +++ b/.agents/skills/cli-infra/references/namespace-event.md @@ -0,0 +1,68 @@ +# namespaceEvent + + + +CRUD operations for NamespaceEvent records via csdk CLI + +## Usage + +```bash +csdk namespace-event list +csdk namespace-event list --where.. --orderBy +csdk namespace-event list --limit 10 --after +csdk namespace-event find-first --where.. +csdk namespace-event get --id +csdk namespace-event create --namespaceId --eventType --databaseId [--actorId ] [--message ] [--metadata ] [--cpuMillicores ] [--memoryBytes ] [--storageBytes ] [--networkIngressBytes ] [--networkEgressBytes ] [--podCount ] [--metrics ] +csdk namespace-event update --id [--namespaceId ] [--eventType ] [--actorId ] [--message ] [--metadata ] [--cpuMillicores ] [--memoryBytes ] [--storageBytes ] [--networkIngressBytes ] [--networkEgressBytes ] [--podCount ] [--metrics ] [--databaseId ] +csdk namespace-event delete --id +``` + +## Examples + +### List namespaceEvent records + +```bash +csdk namespace-event list +``` + +### List namespaceEvent records with pagination + +```bash +csdk namespace-event list --limit 10 --offset 0 +``` + +### List namespaceEvent records with cursor pagination + +```bash +csdk namespace-event list --limit 10 --after +``` + +### Find first matching namespaceEvent + +```bash +csdk namespace-event find-first --where.id.equalTo +``` + +### List namespaceEvent records with field selection + +```bash +csdk namespace-event list --select id,id +``` + +### List namespaceEvent records with filtering and ordering + +```bash +csdk namespace-event list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a namespaceEvent + +```bash +csdk namespace-event create --namespaceId --eventType --databaseId [--actorId ] [--message ] [--metadata ] [--cpuMillicores ] [--memoryBytes ] [--storageBytes ] [--networkIngressBytes ] [--networkEgressBytes ] [--podCount ] [--metrics ] +``` + +### Get a namespaceEvent by id + +```bash +csdk namespace-event get --id +``` diff --git a/.agents/skills/cli-infra/references/namespace.md b/.agents/skills/cli-infra/references/namespace.md new file mode 100644 index 0000000000..ff32e0dbf1 --- /dev/null +++ b/.agents/skills/cli-infra/references/namespace.md @@ -0,0 +1,68 @@ +# namespace + + + +CRUD operations for Namespace records via csdk CLI + +## Usage + +```bash +csdk namespace list +csdk namespace list --where.. --orderBy +csdk namespace list --limit 10 --after +csdk namespace find-first --where.. +csdk namespace get --id +csdk namespace create --name --namespaceName --databaseId [--description ] [--isActive ] [--status ] [--lastError ] [--labels ] [--annotations ] [--isManaged ] +csdk namespace update --id [--name ] [--namespaceName ] [--description ] [--isActive ] [--status ] [--lastError ] [--labels ] [--annotations ] [--databaseId ] [--isManaged ] +csdk namespace delete --id +``` + +## Examples + +### List namespace records + +```bash +csdk namespace list +``` + +### List namespace records with pagination + +```bash +csdk namespace list --limit 10 --offset 0 +``` + +### List namespace records with cursor pagination + +```bash +csdk namespace list --limit 10 --after +``` + +### Find first matching namespace + +```bash +csdk namespace find-first --where.id.equalTo +``` + +### List namespace records with field selection + +```bash +csdk namespace list --select id,id +``` + +### List namespace records with filtering and ordering + +```bash +csdk namespace list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a namespace + +```bash +csdk namespace create --name --namespaceName --databaseId [--description ] [--isActive ] [--status ] [--lastError ] [--labels ] [--annotations ] [--isManaged ] +``` + +### Get a namespace by id + +```bash +csdk namespace get --id +``` diff --git a/.agents/skills/cli-infra/references/platform-namespace-event.md b/.agents/skills/cli-infra/references/platform-namespace-event.md new file mode 100644 index 0000000000..922c7ba84b --- /dev/null +++ b/.agents/skills/cli-infra/references/platform-namespace-event.md @@ -0,0 +1,68 @@ +# platformNamespaceEvent + + + +CRUD operations for PlatformNamespaceEvent records via csdk CLI + +## Usage + +```bash +csdk platform-namespace-event list +csdk platform-namespace-event list --where.. --orderBy +csdk platform-namespace-event list --limit 10 --after +csdk platform-namespace-event find-first --where.. +csdk platform-namespace-event get --id +csdk platform-namespace-event create --namespaceId --eventType [--actorId ] [--message ] [--metadata ] [--cpuMillicores ] [--memoryBytes ] [--storageBytes ] [--networkIngressBytes ] [--networkEgressBytes ] [--podCount ] [--metrics ] +csdk platform-namespace-event update --id [--namespaceId ] [--eventType ] [--actorId ] [--message ] [--metadata ] [--cpuMillicores ] [--memoryBytes ] [--storageBytes ] [--networkIngressBytes ] [--networkEgressBytes ] [--podCount ] [--metrics ] +csdk platform-namespace-event delete --id +``` + +## Examples + +### List platformNamespaceEvent records + +```bash +csdk platform-namespace-event list +``` + +### List platformNamespaceEvent records with pagination + +```bash +csdk platform-namespace-event list --limit 10 --offset 0 +``` + +### List platformNamespaceEvent records with cursor pagination + +```bash +csdk platform-namespace-event list --limit 10 --after +``` + +### Find first matching platformNamespaceEvent + +```bash +csdk platform-namespace-event find-first --where.id.equalTo +``` + +### List platformNamespaceEvent records with field selection + +```bash +csdk platform-namespace-event list --select id,id +``` + +### List platformNamespaceEvent records with filtering and ordering + +```bash +csdk platform-namespace-event list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a platformNamespaceEvent + +```bash +csdk platform-namespace-event create --namespaceId --eventType [--actorId ] [--message ] [--metadata ] [--cpuMillicores ] [--memoryBytes ] [--storageBytes ] [--networkIngressBytes ] [--networkEgressBytes ] [--podCount ] [--metrics ] +``` + +### Get a platformNamespaceEvent by id + +```bash +csdk platform-namespace-event get --id +``` diff --git a/.agents/skills/cli-infra/references/platform-namespace.md b/.agents/skills/cli-infra/references/platform-namespace.md new file mode 100644 index 0000000000..ce389fc475 --- /dev/null +++ b/.agents/skills/cli-infra/references/platform-namespace.md @@ -0,0 +1,68 @@ +# platformNamespace + + + +CRUD operations for PlatformNamespace records via csdk CLI + +## Usage + +```bash +csdk platform-namespace list +csdk platform-namespace list --where.. --orderBy +csdk platform-namespace list --limit 10 --after +csdk platform-namespace find-first --where.. +csdk platform-namespace get --id +csdk platform-namespace create --name --namespaceName [--description ] [--isActive ] [--status ] [--lastError ] [--labels ] [--annotations ] [--isManaged ] +csdk platform-namespace update --id [--name ] [--namespaceName ] [--description ] [--isActive ] [--status ] [--lastError ] [--labels ] [--annotations ] [--isManaged ] +csdk platform-namespace delete --id +``` + +## Examples + +### List platformNamespace records + +```bash +csdk platform-namespace list +``` + +### List platformNamespace records with pagination + +```bash +csdk platform-namespace list --limit 10 --offset 0 +``` + +### List platformNamespace records with cursor pagination + +```bash +csdk platform-namespace list --limit 10 --after +``` + +### Find first matching platformNamespace + +```bash +csdk platform-namespace find-first --where.id.equalTo +``` + +### List platformNamespace records with field selection + +```bash +csdk platform-namespace list --select id,id +``` + +### List platformNamespace records with filtering and ordering + +```bash +csdk platform-namespace list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a platformNamespace + +```bash +csdk platform-namespace create --name --namespaceName [--description ] [--isActive ] [--status ] [--lastError ] [--labels ] [--annotations ] [--isManaged ] +``` + +### Get a platformNamespace by id + +```bash +csdk platform-namespace get --id +``` diff --git a/.agents/skills/cli-infra/references/provision-bucket.md b/.agents/skills/cli-infra/references/provision-bucket.md new file mode 100644 index 0000000000..cc17ffbc21 --- /dev/null +++ b/.agents/skills/cli-infra/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-modules/SKILL.md b/.agents/skills/cli-modules/SKILL.md index 847b40562c..48efe8d8d1 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 61 tables and 12 custom operations +description: CLI tool (csdk) for the modules API — provides CRUD commands for 66 tables and 12 custom operations --- # cli-modules -CLI tool (csdk) for the modules API — provides CRUD commands for 61 tables and 12 custom operations +CLI tool (csdk) for the modules API — provides CRUD commands for 66 tables and 12 custom operations ## Usage @@ -58,23 +58,21 @@ See the `references/` directory for detailed per-entity API documentation: - [config](references/config.md) - [default-ids-module](references/default-ids-module.md) - [membership-types-module](references/membership-types-module.md) -- [user-state-module](references/user-state-module.md) - [session-secrets-module](references/session-secrets-module.md) -- [config-secrets-org-module](references/config-secrets-org-module.md) - [devices-module](references/devices-module.md) - [i-18-n-module](references/i-18-n-module.md) -- [user-credentials-module](references/user-credentials-module.md) - [user-settings-module](references/user-settings-module.md) -- [config-secrets-user-module](references/config-secrets-user-module.md) +- [user-state-module](references/user-state-module.md) +- [user-credentials-module](references/user-credentials-module.md) - [connected-accounts-module](references/connected-accounts-module.md) - [emails-module](references/emails-module.md) - [phone-numbers-module](references/phone-numbers-module.md) - [rate-limits-module](references/rate-limits-module.md) - [users-module](references/users-module.md) - [webauthn-credentials-module](references/webauthn-credentials-module.md) +- [config-secrets-user-module](references/config-secrets-user-module.md) - [crypto-addresses-module](references/crypto-addresses-module.md) - [denormalized-table-field](references/denormalized-table-field.md) -- [identity-providers-module](references/identity-providers-module.md) - [rls-module](references/rls-module.md) - [blueprint](references/blueprint.md) - [blueprint-template](references/blueprint-template.md) @@ -82,40 +80,47 @@ See the `references/` directory for detailed per-entity API documentation: - [crypto-auth-module](references/crypto-auth-module.md) - [sessions-module](references/sessions-module.md) - [secure-table-provision](references/secure-table-provision.md) -- [database-provision-module](references/database-provision-module.md) -- [config-secrets-module](references/config-secrets-module.md) +- [identity-providers-module](references/identity-providers-module.md) +- [integration-providers-module](references/integration-providers-module.md) +- [db-pool-config](references/db-pool-config.md) +- [realtime-module](references/realtime-module.md) +- [infra-secrets-module](references/infra-secrets-module.md) +- [internal-secrets-module](references/internal-secrets-module.md) +- [db-preset-module](references/db-preset-module.md) - [graph-module](references/graph-module.md) -- [merkle-store-module](references/merkle-store-module.md) - [rate-limit-meters-module](references/rate-limit-meters-module.md) -- [realtime-module](references/realtime-module.md) +- [infra-config-module](references/infra-config-module.md) - [webauthn-auth-module](references/webauthn-auth-module.md) -- [function-invocation-module](references/function-invocation-module.md) +- [principal-auth-module](references/principal-auth-module.md) +- [db-pool](references/db-pool.md) - [function-module](references/function-module.md) +- [merkle-store-module](references/merkle-store-module.md) +- [database-provision-module](references/database-provision-module.md) +- [function-invocation-module](references/function-invocation-module.md) - [invites-module](references/invites-module.md) -- [principal-auth-module](references/principal-auth-module.md) +- [namespace-module](references/namespace-module.md) +- [plans-module](references/plans-module.md) - [compute-log-module](references/compute-log-module.md) - [inference-log-module](references/inference-log-module.md) -- [namespace-module](references/namespace-module.md) -- [resource-module](references/resource-module.md) - [storage-log-module](references/storage-log-module.md) - [transfer-log-module](references/transfer-log-module.md) -- [function-deployment-module](references/function-deployment-module.md) -- [plans-module](references/plans-module.md) - [billing-provider-module](references/billing-provider-module.md) -- [db-usage-module](references/db-usage-module.md) +- [function-deployment-module](references/function-deployment-module.md) +- [permissions-module](references/permissions-module.md) - [graph-execution-module](references/graph-execution-module.md) - [hierarchy-module](references/hierarchy-module.md) -- [permissions-module](references/permissions-module.md) - [notifications-module](references/notifications-module.md) +- [relation-provision](references/relation-provision.md) - [profiles-module](references/profiles-module.md) - [billing-module](references/billing-module.md) -- [relation-provision](references/relation-provision.md) +- [resource-module](references/resource-module.md) - [user-auth-module](references/user-auth-module.md) +- [db-usage-module](references/db-usage-module.md) - [agent-module](references/agent-module.md) - [limits-module](references/limits-module.md) -- [memberships-module](references/memberships-module.md) - [entity-type-provision](references/entity-type-provision.md) - [storage-module](references/storage-module.md) +- [memberships-module](references/memberships-module.md) - [events-module](references/events-module.md) - [resolve-blueprint-field](references/resolve-blueprint-field.md) - [resolve-blueprint-table](references/resolve-blueprint-table.md) diff --git a/.agents/skills/cli-modules/references/agent-module.md b/.agents/skills/cli-modules/references/agent-module.md index 3d7cd19845..c1b6697958 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 [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--threadTableId ] [--messageTableId ] [--taskTableId ] [--promptsTableId ] [--planTableId ] [--agentTableId ] [--personaTableId ] [--resourceTableId ] [--threadTableName ] [--messageTableName ] [--taskTableName ] [--promptsTableName ] [--planTableName ] [--agentTableName ] [--personaTableName ] [--resourceTableName ] [--hasPlans ] [--hasResources ] [--hasAgents ] [--shared ] [--apiName ] [--privateApiName ] [--scope ] [--prefix ] [--entityTableId ] [--policies ] [--resources ] [--provisions ] [--defaultPermissions ] -csdk agent-module update --id [--databaseId ] [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--threadTableId ] [--messageTableId ] [--taskTableId ] [--promptsTableId ] [--planTableId ] [--agentTableId ] [--personaTableId ] [--resourceTableId ] [--threadTableName ] [--messageTableName ] [--taskTableName ] [--promptsTableName ] [--planTableName ] [--agentTableName ] [--personaTableName ] [--resourceTableName ] [--hasPlans ] [--hasResources ] [--hasAgents ] [--shared ] [--apiName ] [--privateApiName ] [--scope ] [--prefix ] [--entityTableId ] [--policies ] [--resources ] [--provisions ] [--defaultPermissions ] +csdk agent-module create --databaseId [--entityField ] [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--threadTableId ] [--messageTableId ] [--taskTableId ] [--promptsTableId ] [--planTableId ] [--agentTableId ] [--personaTableId ] [--resourceTableId ] [--threadTableName ] [--messageTableName ] [--taskTableName ] [--promptsTableName ] [--planTableName ] [--agentTableName ] [--personaTableName ] [--resourceTableName ] [--hasPlans ] [--hasResources ] [--hasAgents ] [--shared ] [--apiName ] [--privateApiName ] [--scope ] [--prefix ] [--entityTableId ] [--policies ] [--resources ] [--provisions ] [--defaultPermissions ] +csdk agent-module update --id [--databaseId ] [--entityField ] [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--threadTableId ] [--messageTableId ] [--taskTableId ] [--promptsTableId ] [--planTableId ] [--agentTableId ] [--personaTableId ] [--resourceTableId ] [--threadTableName ] [--messageTableName ] [--taskTableName ] [--promptsTableName ] [--planTableName ] [--agentTableName ] [--personaTableName ] [--resourceTableName ] [--hasPlans ] [--hasResources ] [--hasAgents ] [--shared ] [--apiName ] [--privateApiName ] [--scope ] [--prefix ] [--entityTableId ] [--policies ] [--resources ] [--provisions ] [--defaultPermissions ] 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 [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--threadTableId ] [--messageTableId ] [--taskTableId ] [--promptsTableId ] [--planTableId ] [--agentTableId ] [--personaTableId ] [--resourceTableId ] [--threadTableName ] [--messageTableName ] [--taskTableName ] [--promptsTableName ] [--planTableName ] [--agentTableName ] [--personaTableName ] [--resourceTableName ] [--hasPlans ] [--hasResources ] [--hasAgents ] [--shared ] [--apiName ] [--privateApiName ] [--scope ] [--prefix ] [--entityTableId ] [--policies ] [--resources ] [--provisions ] [--defaultPermissions ] +csdk agent-module create --databaseId [--entityField ] [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--threadTableId ] [--messageTableId ] [--taskTableId ] [--promptsTableId ] [--planTableId ] [--agentTableId ] [--personaTableId ] [--resourceTableId ] [--threadTableName ] [--messageTableName ] [--taskTableName ] [--promptsTableName ] [--planTableName ] [--agentTableName ] [--personaTableName ] [--resourceTableName ] [--hasPlans ] [--hasResources ] [--hasAgents ] [--shared ] [--apiName ] [--privateApiName ] [--scope ] [--prefix ] [--entityTableId ] [--policies ] [--resources ] [--provisions ] [--defaultPermissions ] ``` ### Get a agentModule by id diff --git a/.agents/skills/cli-modules/references/billing-module.md b/.agents/skills/cli-modules/references/billing-module.md index 38ae1cca18..e43171a9dd 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 [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--metersTableId ] [--metersTableName ] [--planSubscriptionsTableId ] [--planSubscriptionsTableName ] [--ledgerTableId ] [--ledgerTableName ] [--balancesTableId ] [--balancesTableName ] [--meterCreditsTableId ] [--meterCreditsTableName ] [--meterSourcesTableId ] [--meterSourcesTableName ] [--meterDefaultsTableId ] [--meterDefaultsTableName ] [--recordUsageFunction ] [--prefix ] [--defaultPermissions ] [--apiName ] [--privateApiName ] -csdk billing-module update --id [--databaseId ] [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--metersTableId ] [--metersTableName ] [--planSubscriptionsTableId ] [--planSubscriptionsTableName ] [--ledgerTableId ] [--ledgerTableName ] [--balancesTableId ] [--balancesTableName ] [--meterCreditsTableId ] [--meterCreditsTableName ] [--meterSourcesTableId ] [--meterSourcesTableName ] [--meterDefaultsTableId ] [--meterDefaultsTableName ] [--recordUsageFunction ] [--prefix ] [--defaultPermissions ] [--apiName ] [--privateApiName ] +csdk billing-module create --databaseId [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--metersTableId ] [--metersTableName ] [--planSubscriptionsTableId ] [--planSubscriptionsTableName ] [--ledgerTableId ] [--ledgerTableName ] [--balancesTableId ] [--balancesTableName ] [--meterCreditsTableId ] [--meterCreditsTableName ] [--meterSourcesTableId ] [--meterSourcesTableName ] [--meterDefaultsTableId ] [--meterDefaultsTableName ] [--recordUsageFunction ] [--sweepExpiredSubscriptionsFunction ] [--rollupUsageSummaryFunction ] [--prefix ] [--defaultPermissions ] [--apiName ] [--privateApiName ] +csdk billing-module update --id [--databaseId ] [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--metersTableId ] [--metersTableName ] [--planSubscriptionsTableId ] [--planSubscriptionsTableName ] [--ledgerTableId ] [--ledgerTableName ] [--balancesTableId ] [--balancesTableName ] [--meterCreditsTableId ] [--meterCreditsTableName ] [--meterSourcesTableId ] [--meterSourcesTableName ] [--meterDefaultsTableId ] [--meterDefaultsTableName ] [--recordUsageFunction ] [--sweepExpiredSubscriptionsFunction ] [--rollupUsageSummaryFunction ] [--prefix ] [--defaultPermissions ] [--apiName ] [--privateApiName ] csdk billing-module delete --id ``` @@ -58,7 +58,7 @@ csdk billing-module list --where.id.equalTo --orderBy ID_ASC ### Create a billingModule ```bash -csdk billing-module create --databaseId [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--metersTableId ] [--metersTableName ] [--planSubscriptionsTableId ] [--planSubscriptionsTableName ] [--ledgerTableId ] [--ledgerTableName ] [--balancesTableId ] [--balancesTableName ] [--meterCreditsTableId ] [--meterCreditsTableName ] [--meterSourcesTableId ] [--meterSourcesTableName ] [--meterDefaultsTableId ] [--meterDefaultsTableName ] [--recordUsageFunction ] [--prefix ] [--defaultPermissions ] [--apiName ] [--privateApiName ] +csdk billing-module create --databaseId [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--metersTableId ] [--metersTableName ] [--planSubscriptionsTableId ] [--planSubscriptionsTableName ] [--ledgerTableId ] [--ledgerTableName ] [--balancesTableId ] [--balancesTableName ] [--meterCreditsTableId ] [--meterCreditsTableName ] [--meterSourcesTableId ] [--meterSourcesTableName ] [--meterDefaultsTableId ] [--meterDefaultsTableName ] [--recordUsageFunction ] [--sweepExpiredSubscriptionsFunction ] [--rollupUsageSummaryFunction ] [--prefix ] [--defaultPermissions ] [--apiName ] [--privateApiName ] ``` ### Get a billingModule by id diff --git a/.agents/skills/cli-modules/references/compute-log-module.md b/.agents/skills/cli-modules/references/compute-log-module.md index 8f8ef904e1..6a5abf5423 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 [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--computeLogTableId ] [--computeLogTableName ] [--usageDailyTableId ] [--usageDailyTableName ] [--interval ] [--retention ] [--premake ] [--scope ] [--actorFkTableId ] [--entityFkTableId ] [--prefix ] [--apiName ] [--privateApiName ] -csdk compute-log-module update --id [--databaseId ] [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--computeLogTableId ] [--computeLogTableName ] [--usageDailyTableId ] [--usageDailyTableName ] [--interval ] [--retention ] [--premake ] [--scope ] [--actorFkTableId ] [--entityFkTableId ] [--prefix ] [--apiName ] [--privateApiName ] +csdk compute-log-module create --databaseId [--entityField ] [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--computeLogTableId ] [--computeLogTableName ] [--usageDailyTableId ] [--usageDailyTableName ] [--interval ] [--retention ] [--premake ] [--scope ] [--actorFkTableId ] [--entityFkTableId ] [--prefix ] [--apiName ] [--privateApiName ] +csdk compute-log-module update --id [--databaseId ] [--entityField ] [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--computeLogTableId ] [--computeLogTableName ] [--usageDailyTableId ] [--usageDailyTableName ] [--interval ] [--retention ] [--premake ] [--scope ] [--actorFkTableId ] [--entityFkTableId ] [--prefix ] [--apiName ] [--privateApiName ] 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 [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--computeLogTableId ] [--computeLogTableName ] [--usageDailyTableId ] [--usageDailyTableName ] [--interval ] [--retention ] [--premake ] [--scope ] [--actorFkTableId ] [--entityFkTableId ] [--prefix ] [--apiName ] [--privateApiName ] +csdk compute-log-module create --databaseId [--entityField ] [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--computeLogTableId ] [--computeLogTableName ] [--usageDailyTableId ] [--usageDailyTableName ] [--interval ] [--retention ] [--premake ] [--scope ] [--actorFkTableId ] [--entityFkTableId ] [--prefix ] [--apiName ] [--privateApiName ] ``` ### Get a computeLogModule by id diff --git a/.agents/skills/cli-modules/references/config-secrets-user-module.md b/.agents/skills/cli-modules/references/config-secrets-user-module.md index 592fcc7f77..4c80e53706 100644 --- a/.agents/skills/cli-modules/references/config-secrets-user-module.md +++ b/.agents/skills/cli-modules/references/config-secrets-user-module.md @@ -12,8 +12,8 @@ csdk config-secrets-user-module list --where.. --orderBy csdk config-secrets-user-module find-first --where.. csdk config-secrets-user-module get --id -csdk config-secrets-user-module create --databaseId [--schemaId ] [--tableId ] [--tableName ] [--configDefinitionsTableId ] [--apiName ] [--privateApiName ] -csdk config-secrets-user-module update --id [--databaseId ] [--schemaId ] [--tableId ] [--tableName ] [--configDefinitionsTableId ] [--apiName ] [--privateApiName ] +csdk config-secrets-user-module create --databaseId [--entityField ] [--schemaId ] [--tableId ] [--tableName ] [--apiName ] [--privateApiName ] +csdk config-secrets-user-module update --id [--databaseId ] [--entityField ] [--schemaId ] [--tableId ] [--tableName ] [--apiName ] [--privateApiName ] csdk config-secrets-user-module delete --id ``` @@ -58,7 +58,7 @@ csdk config-secrets-user-module list --where.id.equalTo --orderBy ID_ASC ### Create a configSecretsUserModule ```bash -csdk config-secrets-user-module create --databaseId [--schemaId ] [--tableId ] [--tableName ] [--configDefinitionsTableId ] [--apiName ] [--privateApiName ] +csdk config-secrets-user-module create --databaseId [--entityField ] [--schemaId ] [--tableId ] [--tableName ] [--apiName ] [--privateApiName ] ``` ### Get a configSecretsUserModule by id diff --git a/.agents/skills/cli-modules/references/database-provision-module.md b/.agents/skills/cli-modules/references/database-provision-module.md index d90694c6af..1118110afd 100644 --- a/.agents/skills/cli-modules/references/database-provision-module.md +++ b/.agents/skills/cli-modules/references/database-provision-module.md @@ -12,8 +12,8 @@ csdk database-provision-module list --where.. --orderBy csdk database-provision-module find-first --where.. csdk database-provision-module get --id -csdk database-provision-module create --databaseName --ownerId --domain [--subdomain ] [--modules ] [--options ] [--bootstrapUser ] [--status ] [--errorMessage ] [--databaseId ] [--completedAt ] -csdk database-provision-module update --id [--databaseName ] [--ownerId ] [--subdomain ] [--domain ] [--modules ] [--options ] [--bootstrapUser ] [--status ] [--errorMessage ] [--databaseId ] [--completedAt ] +csdk database-provision-module create --databaseName --ownerId --domain [--subdomain ] [--modules ] [--options ] [--bootstrapUser ] [--status ] [--errorMessage ] [--sourceDatabaseId ] [--bootstrapStatus ] [--bootstrapError ] [--databaseId ] [--completedAt ] [--fulfilledAt ] +csdk database-provision-module update --id [--databaseName ] [--ownerId ] [--subdomain ] [--domain ] [--modules ] [--options ] [--bootstrapUser ] [--status ] [--errorMessage ] [--sourceDatabaseId ] [--bootstrapStatus ] [--bootstrapError ] [--databaseId ] [--completedAt ] [--fulfilledAt ] csdk database-provision-module delete --id ``` @@ -58,7 +58,7 @@ csdk database-provision-module list --where.id.equalTo --orderBy ID_ASC ### Create a databaseProvisionModule ```bash -csdk database-provision-module create --databaseName --ownerId --domain [--subdomain ] [--modules ] [--options ] [--bootstrapUser ] [--status ] [--errorMessage ] [--databaseId ] [--completedAt ] +csdk database-provision-module create --databaseName --ownerId --domain [--subdomain ] [--modules ] [--options ] [--bootstrapUser ] [--status ] [--errorMessage ] [--sourceDatabaseId ] [--bootstrapStatus ] [--bootstrapError ] [--databaseId ] [--completedAt ] [--fulfilledAt ] ``` ### Get a databaseProvisionModule by id diff --git a/.agents/skills/cli-modules/references/db-pool-config.md b/.agents/skills/cli-modules/references/db-pool-config.md new file mode 100644 index 0000000000..cf967033ed --- /dev/null +++ b/.agents/skills/cli-modules/references/db-pool-config.md @@ -0,0 +1,68 @@ +# dbPoolConfig + + + +CRUD operations for DbPoolConfig records via csdk CLI + +## Usage + +```bash +csdk db-pool-config list +csdk db-pool-config list --where.. --orderBy +csdk db-pool-config list --limit 10 --after +csdk db-pool-config find-first --where.. +csdk db-pool-config get --id +csdk db-pool-config create --presetSlug --domain --poolOwnerId [--min ] [--max ] [--warmTtl ] [--enabled ] +csdk db-pool-config update --id [--presetSlug ] [--domain ] [--poolOwnerId ] [--min ] [--max ] [--warmTtl ] [--enabled ] +csdk db-pool-config delete --id +``` + +## Examples + +### List dbPoolConfig records + +```bash +csdk db-pool-config list +``` + +### List dbPoolConfig records with pagination + +```bash +csdk db-pool-config list --limit 10 --offset 0 +``` + +### List dbPoolConfig records with cursor pagination + +```bash +csdk db-pool-config list --limit 10 --after +``` + +### Find first matching dbPoolConfig + +```bash +csdk db-pool-config find-first --where.id.equalTo +``` + +### List dbPoolConfig records with field selection + +```bash +csdk db-pool-config list --select id,id +``` + +### List dbPoolConfig records with filtering and ordering + +```bash +csdk db-pool-config list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a dbPoolConfig + +```bash +csdk db-pool-config create --presetSlug --domain --poolOwnerId [--min ] [--max ] [--warmTtl ] [--enabled ] +``` + +### Get a dbPoolConfig by id + +```bash +csdk db-pool-config get --id +``` diff --git a/.agents/skills/cli-modules/references/db-pool.md b/.agents/skills/cli-modules/references/db-pool.md new file mode 100644 index 0000000000..ffa8b594d1 --- /dev/null +++ b/.agents/skills/cli-modules/references/db-pool.md @@ -0,0 +1,68 @@ +# dbPool + + + +CRUD operations for DbPool records via csdk CLI + +## Usage + +```bash +csdk db-pool list +csdk db-pool list --where.. --orderBy +csdk db-pool list --limit 10 --after +csdk db-pool find-first --where.. +csdk db-pool get --id +csdk db-pool create --presetSlug [--presetCommitId ] [--databaseId ] [--status ] [--errorMessage ] [--expiresAt ] [--claimedBy ] [--claimedAt ] [--bootstrapStatus ] [--bootstrapError ] +csdk db-pool update --id [--presetSlug ] [--presetCommitId ] [--databaseId ] [--status ] [--errorMessage ] [--expiresAt ] [--claimedBy ] [--claimedAt ] [--bootstrapStatus ] [--bootstrapError ] +csdk db-pool delete --id +``` + +## Examples + +### List dbPool records + +```bash +csdk db-pool list +``` + +### List dbPool records with pagination + +```bash +csdk db-pool list --limit 10 --offset 0 +``` + +### List dbPool records with cursor pagination + +```bash +csdk db-pool list --limit 10 --after +``` + +### Find first matching dbPool + +```bash +csdk db-pool find-first --where.id.equalTo +``` + +### List dbPool records with field selection + +```bash +csdk db-pool list --select id,id +``` + +### List dbPool records with filtering and ordering + +```bash +csdk db-pool list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a dbPool + +```bash +csdk db-pool create --presetSlug [--presetCommitId ] [--databaseId ] [--status ] [--errorMessage ] [--expiresAt ] [--claimedBy ] [--claimedAt ] [--bootstrapStatus ] [--bootstrapError ] +``` + +### Get a dbPool by id + +```bash +csdk db-pool get --id +``` diff --git a/.agents/skills/cli-modules/references/db-preset-module.md b/.agents/skills/cli-modules/references/db-preset-module.md new file mode 100644 index 0000000000..63bb2e7842 --- /dev/null +++ b/.agents/skills/cli-modules/references/db-preset-module.md @@ -0,0 +1,68 @@ +# dbPresetModule + + + +CRUD operations for DbPresetModule records via csdk CLI + +## Usage + +```bash +csdk db-preset-module list +csdk db-preset-module list --where.. --orderBy +csdk db-preset-module list --limit 10 --after +csdk db-preset-module find-first --where.. +csdk db-preset-module get --id +csdk db-preset-module create --databaseId --scope --prefix --merkleStoreModuleId --storeName [--publicSchemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--dbPresetsTableId ] [--apiName ] [--privateApiName ] [--entityTableId ] [--policies ] [--provisions ] +csdk db-preset-module update --id [--databaseId ] [--publicSchemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--scope ] [--prefix ] [--merkleStoreModuleId ] [--dbPresetsTableId ] [--storeName ] [--apiName ] [--privateApiName ] [--entityTableId ] [--policies ] [--provisions ] +csdk db-preset-module delete --id +``` + +## Examples + +### List dbPresetModule records + +```bash +csdk db-preset-module list +``` + +### List dbPresetModule records with pagination + +```bash +csdk db-preset-module list --limit 10 --offset 0 +``` + +### List dbPresetModule records with cursor pagination + +```bash +csdk db-preset-module list --limit 10 --after +``` + +### Find first matching dbPresetModule + +```bash +csdk db-preset-module find-first --where.id.equalTo +``` + +### List dbPresetModule records with field selection + +```bash +csdk db-preset-module list --select id,id +``` + +### List dbPresetModule records with filtering and ordering + +```bash +csdk db-preset-module list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a dbPresetModule + +```bash +csdk db-preset-module create --databaseId --scope --prefix --merkleStoreModuleId --storeName [--publicSchemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--dbPresetsTableId ] [--apiName ] [--privateApiName ] [--entityTableId ] [--policies ] [--provisions ] +``` + +### Get a dbPresetModule by id + +```bash +csdk db-preset-module get --id +``` diff --git a/.agents/skills/cli-modules/references/db-usage-module.md b/.agents/skills/cli-modules/references/db-usage-module.md index ab276f0a09..831eaed12f 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 [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--tableStatsLogTableId ] [--tableStatsLogTableName ] [--tableStatsDailyTableId ] [--tableStatsDailyTableName ] [--queryStatsLogTableId ] [--queryStatsLogTableName ] [--queryStatsDailyTableId ] [--queryStatsDailyTableName ] [--interval ] [--retention ] [--premake ] [--scope ] [--prefix ] [--defaultPermissions ] [--apiName ] [--privateApiName ] -csdk db-usage-module update --id [--databaseId ] [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--tableStatsLogTableId ] [--tableStatsLogTableName ] [--tableStatsDailyTableId ] [--tableStatsDailyTableName ] [--queryStatsLogTableId ] [--queryStatsLogTableName ] [--queryStatsDailyTableId ] [--queryStatsDailyTableName ] [--interval ] [--retention ] [--premake ] [--scope ] [--prefix ] [--defaultPermissions ] [--apiName ] [--privateApiName ] +csdk db-usage-module create --databaseId [--entityField ] [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--tableStatsLogTableId ] [--tableStatsLogTableName ] [--tableStatsDailyTableId ] [--tableStatsDailyTableName ] [--queryStatsLogTableId ] [--queryStatsLogTableName ] [--queryStatsDailyTableId ] [--queryStatsDailyTableName ] [--collectDbTableStatsFunction ] [--collectDbQueryStatsFunction ] [--rollupDbTableStatsDailyFunction ] [--rollupDbQueryStatsDailyFunction ] [--interval ] [--retention ] [--premake ] [--scope ] [--prefix ] [--defaultPermissions ] [--apiName ] [--privateApiName ] +csdk db-usage-module update --id [--databaseId ] [--entityField ] [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--tableStatsLogTableId ] [--tableStatsLogTableName ] [--tableStatsDailyTableId ] [--tableStatsDailyTableName ] [--queryStatsLogTableId ] [--queryStatsLogTableName ] [--queryStatsDailyTableId ] [--queryStatsDailyTableName ] [--collectDbTableStatsFunction ] [--collectDbQueryStatsFunction ] [--rollupDbTableStatsDailyFunction ] [--rollupDbQueryStatsDailyFunction ] [--interval ] [--retention ] [--premake ] [--scope ] [--prefix ] [--defaultPermissions ] [--apiName ] [--privateApiName ] 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 [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--tableStatsLogTableId ] [--tableStatsLogTableName ] [--tableStatsDailyTableId ] [--tableStatsDailyTableName ] [--queryStatsLogTableId ] [--queryStatsLogTableName ] [--queryStatsDailyTableId ] [--queryStatsDailyTableName ] [--interval ] [--retention ] [--premake ] [--scope ] [--prefix ] [--defaultPermissions ] [--apiName ] [--privateApiName ] +csdk db-usage-module create --databaseId [--entityField ] [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--tableStatsLogTableId ] [--tableStatsLogTableName ] [--tableStatsDailyTableId ] [--tableStatsDailyTableName ] [--queryStatsLogTableId ] [--queryStatsLogTableName ] [--queryStatsDailyTableId ] [--queryStatsDailyTableName ] [--collectDbTableStatsFunction ] [--collectDbQueryStatsFunction ] [--rollupDbTableStatsDailyFunction ] [--rollupDbQueryStatsDailyFunction ] [--interval ] [--retention ] [--premake ] [--scope ] [--prefix ] [--defaultPermissions ] [--apiName ] [--privateApiName ] ``` ### Get a dbUsageModule by id diff --git a/.agents/skills/cli-modules/references/entity-type-provision.md b/.agents/skills/cli-modules/references/entity-type-provision.md index 2eda353380..fb8f3f8f18 100644 --- a/.agents/skills/cli-modules/references/entity-type-provision.md +++ b/.agents/skills/cli-modules/references/entity-type-provision.md @@ -12,8 +12,8 @@ csdk entity-type-provision list --where.. --orderBy csdk entity-type-provision list --limit 10 --after csdk entity-type-provision find-first --where.. csdk entity-type-provision get --id -csdk entity-type-provision create --databaseId --name --prefix [--description ] [--parentEntity ] [--tableName ] [--isVisible ] [--hasLimits ] [--hasProfiles ] [--hasLevels ] [--hasInvites ] [--hasInviteAchievements ] [--storage ] [--namespaces ] [--functions ] [--graphs ] [--agents ] [--skipEntityPolicies ] [--tableProvision ] [--outMembershipType ] [--outEntityTableId ] [--outEntityTableName ] [--outInstalledModules ] [--outStorageModuleId ] [--outBucketsTableId ] [--outFilesTableId ] [--outPathSharesTableId ] [--outInvitesModuleId ] [--outNamespaceModuleId ] [--outNamespacesTableId ] [--outNamespaceEventsTableId ] [--outFunctionModuleId ] [--outDefinitionsTableId ] [--outInvocationsTableId ] [--outExecutionLogsTableId ] [--outSecretDefinitionsTableId ] [--outGraphModuleId ] [--outGraphsTableId ] [--outAgentModuleId ] -csdk entity-type-provision update --id [--databaseId ] [--name ] [--prefix ] [--description ] [--parentEntity ] [--tableName ] [--isVisible ] [--hasLimits ] [--hasProfiles ] [--hasLevels ] [--hasInvites ] [--hasInviteAchievements ] [--storage ] [--namespaces ] [--functions ] [--graphs ] [--agents ] [--skipEntityPolicies ] [--tableProvision ] [--outMembershipType ] [--outEntityTableId ] [--outEntityTableName ] [--outInstalledModules ] [--outStorageModuleId ] [--outBucketsTableId ] [--outFilesTableId ] [--outPathSharesTableId ] [--outInvitesModuleId ] [--outNamespaceModuleId ] [--outNamespacesTableId ] [--outNamespaceEventsTableId ] [--outFunctionModuleId ] [--outDefinitionsTableId ] [--outInvocationsTableId ] [--outExecutionLogsTableId ] [--outSecretDefinitionsTableId ] [--outGraphModuleId ] [--outGraphsTableId ] [--outAgentModuleId ] +csdk entity-type-provision create --databaseId --name --prefix [--description ] [--parentEntity ] [--tableName ] [--isVisible ] [--hasLimits ] [--hasProfiles ] [--hasLevels ] [--hasInvites ] [--hasInviteAchievements ] [--storage ] [--namespaces ] [--functions ] [--graphs ] [--agents ] [--skipEntityPolicies ] [--tableProvision ] [--outMembershipType ] [--outEntityTableId ] [--outEntityTableName ] [--outInstalledModules ] [--outStorageModuleId ] [--outBucketsTableId ] [--outFilesTableId ] [--outPathSharesTableId ] [--outInvitesModuleId ] [--outNamespaceModuleId ] [--outNamespacesTableId ] [--outNamespaceEventsTableId ] [--outFunctionModuleId ] [--outDefinitionsTableId ] [--outInvocationsTableId ] [--outExecutionLogsTableId ] [--outGraphModuleId ] [--outGraphsTableId ] [--outAgentModuleId ] +csdk entity-type-provision update --id [--databaseId ] [--name ] [--prefix ] [--description ] [--parentEntity ] [--tableName ] [--isVisible ] [--hasLimits ] [--hasProfiles ] [--hasLevels ] [--hasInvites ] [--hasInviteAchievements ] [--storage ] [--namespaces ] [--functions ] [--graphs ] [--agents ] [--skipEntityPolicies ] [--tableProvision ] [--outMembershipType ] [--outEntityTableId ] [--outEntityTableName ] [--outInstalledModules ] [--outStorageModuleId ] [--outBucketsTableId ] [--outFilesTableId ] [--outPathSharesTableId ] [--outInvitesModuleId ] [--outNamespaceModuleId ] [--outNamespacesTableId ] [--outNamespaceEventsTableId ] [--outFunctionModuleId ] [--outDefinitionsTableId ] [--outInvocationsTableId ] [--outExecutionLogsTableId ] [--outGraphModuleId ] [--outGraphsTableId ] [--outAgentModuleId ] csdk entity-type-provision delete --id ``` @@ -58,7 +58,7 @@ csdk entity-type-provision list --where.id.equalTo --orderBy ID_ASC ### Create a entityTypeProvision ```bash -csdk entity-type-provision create --databaseId --name --prefix [--description ] [--parentEntity ] [--tableName ] [--isVisible ] [--hasLimits ] [--hasProfiles ] [--hasLevels ] [--hasInvites ] [--hasInviteAchievements ] [--storage ] [--namespaces ] [--functions ] [--graphs ] [--agents ] [--skipEntityPolicies ] [--tableProvision ] [--outMembershipType ] [--outEntityTableId ] [--outEntityTableName ] [--outInstalledModules ] [--outStorageModuleId ] [--outBucketsTableId ] [--outFilesTableId ] [--outPathSharesTableId ] [--outInvitesModuleId ] [--outNamespaceModuleId ] [--outNamespacesTableId ] [--outNamespaceEventsTableId ] [--outFunctionModuleId ] [--outDefinitionsTableId ] [--outInvocationsTableId ] [--outExecutionLogsTableId ] [--outSecretDefinitionsTableId ] [--outGraphModuleId ] [--outGraphsTableId ] [--outAgentModuleId ] +csdk entity-type-provision create --databaseId --name --prefix [--description ] [--parentEntity ] [--tableName ] [--isVisible ] [--hasLimits ] [--hasProfiles ] [--hasLevels ] [--hasInvites ] [--hasInviteAchievements ] [--storage ] [--namespaces ] [--functions ] [--graphs ] [--agents ] [--skipEntityPolicies ] [--tableProvision ] [--outMembershipType ] [--outEntityTableId ] [--outEntityTableName ] [--outInstalledModules ] [--outStorageModuleId ] [--outBucketsTableId ] [--outFilesTableId ] [--outPathSharesTableId ] [--outInvitesModuleId ] [--outNamespaceModuleId ] [--outNamespacesTableId ] [--outNamespaceEventsTableId ] [--outFunctionModuleId ] [--outDefinitionsTableId ] [--outInvocationsTableId ] [--outExecutionLogsTableId ] [--outGraphModuleId ] [--outGraphsTableId ] [--outAgentModuleId ] ``` ### Get a entityTypeProvision by id diff --git a/.agents/skills/cli-modules/references/events-module.md b/.agents/skills/cli-modules/references/events-module.md index 4d99a8335c..05b91143da 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 [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--eventsTableId ] [--eventsTableName ] [--eventAggregatesTableId ] [--eventAggregatesTableName ] [--eventTypesTableId ] [--eventTypesTableName ] [--levelsTableId ] [--levelsTableName ] [--levelRequirementsTableId ] [--levelRequirementsTableName ] [--levelGrantsTableId ] [--levelGrantsTableName ] [--achievementRewardsTableId ] [--achievementRewardsTableName ] [--recordEvent ] [--removeEvent ] [--tgEvent ] [--tgEventToggle ] [--tgEventToggleBool ] [--tgEventBool ] [--upsertAggregate ] [--tgUpdateAggregates ] [--pruneEvents ] [--stepsRequired ] [--levelAchieved ] [--tgCheckAchievements ] [--grantAchievement ] [--tgAchievementReward ] [--interval ] [--retention ] [--premake ] [--scope ] [--prefix ] [--entityTableId ] [--actorTableId ] [--defaultPermissions ] [--apiName ] [--privateApiName ] -csdk events-module update --id [--databaseId ] [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--eventsTableId ] [--eventsTableName ] [--eventAggregatesTableId ] [--eventAggregatesTableName ] [--eventTypesTableId ] [--eventTypesTableName ] [--levelsTableId ] [--levelsTableName ] [--levelRequirementsTableId ] [--levelRequirementsTableName ] [--levelGrantsTableId ] [--levelGrantsTableName ] [--achievementRewardsTableId ] [--achievementRewardsTableName ] [--recordEvent ] [--removeEvent ] [--tgEvent ] [--tgEventToggle ] [--tgEventToggleBool ] [--tgEventBool ] [--upsertAggregate ] [--tgUpdateAggregates ] [--pruneEvents ] [--stepsRequired ] [--levelAchieved ] [--tgCheckAchievements ] [--grantAchievement ] [--tgAchievementReward ] [--interval ] [--retention ] [--premake ] [--scope ] [--prefix ] [--entityTableId ] [--actorTableId ] [--defaultPermissions ] [--apiName ] [--privateApiName ] +csdk events-module create --databaseId [--entityField ] [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--eventsTableId ] [--eventsTableName ] [--eventAggregatesTableId ] [--eventAggregatesTableName ] [--eventTypesTableId ] [--eventTypesTableName ] [--levelsTableId ] [--levelsTableName ] [--levelRequirementsTableId ] [--levelRequirementsTableName ] [--levelGrantsTableId ] [--levelGrantsTableName ] [--achievementRewardsTableId ] [--achievementRewardsTableName ] [--recordEvent ] [--removeEvent ] [--tgEvent ] [--tgEventToggle ] [--tgEventToggleBool ] [--tgEventBool ] [--upsertAggregate ] [--tgUpdateAggregates ] [--stepsRequired ] [--levelAchieved ] [--tgCheckAchievements ] [--grantAchievement ] [--tgAchievementReward ] [--interval ] [--retention ] [--premake ] [--scope ] [--prefix ] [--entityTableId ] [--actorTableId ] [--defaultPermissions ] [--apiName ] [--privateApiName ] +csdk events-module update --id [--databaseId ] [--entityField ] [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--eventsTableId ] [--eventsTableName ] [--eventAggregatesTableId ] [--eventAggregatesTableName ] [--eventTypesTableId ] [--eventTypesTableName ] [--levelsTableId ] [--levelsTableName ] [--levelRequirementsTableId ] [--levelRequirementsTableName ] [--levelGrantsTableId ] [--levelGrantsTableName ] [--achievementRewardsTableId ] [--achievementRewardsTableName ] [--recordEvent ] [--removeEvent ] [--tgEvent ] [--tgEventToggle ] [--tgEventToggleBool ] [--tgEventBool ] [--upsertAggregate ] [--tgUpdateAggregates ] [--stepsRequired ] [--levelAchieved ] [--tgCheckAchievements ] [--grantAchievement ] [--tgAchievementReward ] [--interval ] [--retention ] [--premake ] [--scope ] [--prefix ] [--entityTableId ] [--actorTableId ] [--defaultPermissions ] [--apiName ] [--privateApiName ] 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 [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--eventsTableId ] [--eventsTableName ] [--eventAggregatesTableId ] [--eventAggregatesTableName ] [--eventTypesTableId ] [--eventTypesTableName ] [--levelsTableId ] [--levelsTableName ] [--levelRequirementsTableId ] [--levelRequirementsTableName ] [--levelGrantsTableId ] [--levelGrantsTableName ] [--achievementRewardsTableId ] [--achievementRewardsTableName ] [--recordEvent ] [--removeEvent ] [--tgEvent ] [--tgEventToggle ] [--tgEventToggleBool ] [--tgEventBool ] [--upsertAggregate ] [--tgUpdateAggregates ] [--pruneEvents ] [--stepsRequired ] [--levelAchieved ] [--tgCheckAchievements ] [--grantAchievement ] [--tgAchievementReward ] [--interval ] [--retention ] [--premake ] [--scope ] [--prefix ] [--entityTableId ] [--actorTableId ] [--defaultPermissions ] [--apiName ] [--privateApiName ] +csdk events-module create --databaseId [--entityField ] [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--eventsTableId ] [--eventsTableName ] [--eventAggregatesTableId ] [--eventAggregatesTableName ] [--eventTypesTableId ] [--eventTypesTableName ] [--levelsTableId ] [--levelsTableName ] [--levelRequirementsTableId ] [--levelRequirementsTableName ] [--levelGrantsTableId ] [--levelGrantsTableName ] [--achievementRewardsTableId ] [--achievementRewardsTableName ] [--recordEvent ] [--removeEvent ] [--tgEvent ] [--tgEventToggle ] [--tgEventToggleBool ] [--tgEventBool ] [--upsertAggregate ] [--tgUpdateAggregates ] [--stepsRequired ] [--levelAchieved ] [--tgCheckAchievements ] [--grantAchievement ] [--tgAchievementReward ] [--interval ] [--retention ] [--premake ] [--scope ] [--prefix ] [--entityTableId ] [--actorTableId ] [--defaultPermissions ] [--apiName ] [--privateApiName ] ``` ### Get a eventsModule by id diff --git a/.agents/skills/cli-modules/references/function-deployment-module.md b/.agents/skills/cli-modules/references/function-deployment-module.md index 8505c67ff1..1f6d71bdea 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 [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--deploymentsTableId ] [--deploymentEventsTableId ] [--deploymentsTableName ] [--deploymentEventsTableName ] [--apiName ] [--privateApiName ] [--scope ] [--prefix ] [--entityTableId ] [--functionModuleId ] [--namespaceModuleId ] [--policies ] [--provisions ] [--defaultPermissions ] -csdk function-deployment-module update --id [--databaseId ] [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--deploymentsTableId ] [--deploymentEventsTableId ] [--deploymentsTableName ] [--deploymentEventsTableName ] [--apiName ] [--privateApiName ] [--scope ] [--prefix ] [--entityTableId ] [--functionModuleId ] [--namespaceModuleId ] [--policies ] [--provisions ] [--defaultPermissions ] +csdk function-deployment-module create --databaseId [--entityField ] [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--deploymentsTableId ] [--deploymentEventsTableId ] [--deploymentsTableName ] [--deploymentEventsTableName ] [--apiName ] [--privateApiName ] [--scope ] [--prefix ] [--entityTableId ] [--functionModuleId ] [--namespaceModuleId ] [--policies ] [--provisions ] [--defaultPermissions ] +csdk function-deployment-module update --id [--databaseId ] [--entityField ] [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--deploymentsTableId ] [--deploymentEventsTableId ] [--deploymentsTableName ] [--deploymentEventsTableName ] [--apiName ] [--privateApiName ] [--scope ] [--prefix ] [--entityTableId ] [--functionModuleId ] [--namespaceModuleId ] [--policies ] [--provisions ] [--defaultPermissions ] 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 [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--deploymentsTableId ] [--deploymentEventsTableId ] [--deploymentsTableName ] [--deploymentEventsTableName ] [--apiName ] [--privateApiName ] [--scope ] [--prefix ] [--entityTableId ] [--functionModuleId ] [--namespaceModuleId ] [--policies ] [--provisions ] [--defaultPermissions ] +csdk function-deployment-module create --databaseId [--entityField ] [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--deploymentsTableId ] [--deploymentEventsTableId ] [--deploymentsTableName ] [--deploymentEventsTableName ] [--apiName ] [--privateApiName ] [--scope ] [--prefix ] [--entityTableId ] [--functionModuleId ] [--namespaceModuleId ] [--policies ] [--provisions ] [--defaultPermissions ] ``` ### 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 9dbc899b8e..7ed99a3697 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 [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--invocationsTableId ] [--executionLogsTableId ] [--invocationsTableName ] [--executionLogsTableName ] [--apiName ] [--privateApiName ] [--scope ] [--prefix ] [--entityTableId ] [--policies ] [--provisions ] [--defaultPermissions ] -csdk function-invocation-module update --id [--databaseId ] [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--invocationsTableId ] [--executionLogsTableId ] [--invocationsTableName ] [--executionLogsTableName ] [--apiName ] [--privateApiName ] [--scope ] [--prefix ] [--entityTableId ] [--policies ] [--provisions ] [--defaultPermissions ] +csdk function-invocation-module create --databaseId [--entityField ] [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--invocationsTableId ] [--executionLogsTableId ] [--invocationsTableName ] [--executionLogsTableName ] [--apiName ] [--privateApiName ] [--scope ] [--prefix ] [--entityTableId ] [--policies ] [--provisions ] [--defaultPermissions ] +csdk function-invocation-module update --id [--databaseId ] [--entityField ] [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--invocationsTableId ] [--executionLogsTableId ] [--invocationsTableName ] [--executionLogsTableName ] [--apiName ] [--privateApiName ] [--scope ] [--prefix ] [--entityTableId ] [--policies ] [--provisions ] [--defaultPermissions ] 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 [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--invocationsTableId ] [--executionLogsTableId ] [--invocationsTableName ] [--executionLogsTableName ] [--apiName ] [--privateApiName ] [--scope ] [--prefix ] [--entityTableId ] [--policies ] [--provisions ] [--defaultPermissions ] +csdk function-invocation-module create --databaseId [--entityField ] [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--invocationsTableId ] [--executionLogsTableId ] [--invocationsTableName ] [--executionLogsTableName ] [--apiName ] [--privateApiName ] [--scope ] [--prefix ] [--entityTableId ] [--policies ] [--provisions ] [--defaultPermissions ] ``` ### 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 842c7f2c64..d1699c2579 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 [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--definitionsTableId ] [--secretDefinitionsTableId ] [--definitionsTableName ] [--secretDefinitionsTableName ] [--apiName ] [--privateApiName ] [--scope ] [--prefix ] [--entityTableId ] [--policies ] [--provisions ] [--defaultPermissions ] -csdk function-module update --id [--databaseId ] [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--definitionsTableId ] [--secretDefinitionsTableId ] [--definitionsTableName ] [--secretDefinitionsTableName ] [--apiName ] [--privateApiName ] [--scope ] [--prefix ] [--entityTableId ] [--policies ] [--provisions ] [--defaultPermissions ] +csdk function-module create --databaseId [--entityField ] [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--definitionsTableId ] [--definitionsTableName ] [--apiName ] [--privateApiName ] [--scope ] [--prefix ] [--entityTableId ] [--policies ] [--provisions ] [--defaultPermissions ] +csdk function-module update --id [--databaseId ] [--entityField ] [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--definitionsTableId ] [--definitionsTableName ] [--apiName ] [--privateApiName ] [--scope ] [--prefix ] [--entityTableId ] [--policies ] [--provisions ] [--defaultPermissions ] 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 [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--definitionsTableId ] [--secretDefinitionsTableId ] [--definitionsTableName ] [--secretDefinitionsTableName ] [--apiName ] [--privateApiName ] [--scope ] [--prefix ] [--entityTableId ] [--policies ] [--provisions ] [--defaultPermissions ] +csdk function-module create --databaseId [--entityField ] [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--definitionsTableId ] [--definitionsTableName ] [--apiName ] [--privateApiName ] [--scope ] [--prefix ] [--entityTableId ] [--policies ] [--provisions ] [--defaultPermissions ] ``` ### 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 50ee7ff321..77b64e13d8 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 [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--scope ] [--prefix ] [--executionsTableId ] [--outputsTableId ] [--nodeStatesTableId ] [--executionsTableName ] [--outputsTableName ] [--nodeStatesTableName ] [--apiName ] [--privateApiName ] [--entityTableId ] [--policies ] [--provisions ] [--defaultPermissions ] -csdk graph-execution-module update --id [--databaseId ] [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--graphModuleId ] [--scope ] [--prefix ] [--executionsTableId ] [--outputsTableId ] [--nodeStatesTableId ] [--executionsTableName ] [--outputsTableName ] [--nodeStatesTableName ] [--apiName ] [--privateApiName ] [--entityTableId ] [--policies ] [--provisions ] [--defaultPermissions ] +csdk graph-execution-module create --databaseId --graphModuleId [--entityField ] [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--scope ] [--prefix ] [--executionsTableId ] [--outputsTableId ] [--nodeStatesTableId ] [--executionsTableName ] [--outputsTableName ] [--nodeStatesTableName ] [--apiName ] [--privateApiName ] [--entityTableId ] [--policies ] [--provisions ] [--defaultPermissions ] +csdk graph-execution-module update --id [--databaseId ] [--entityField ] [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--graphModuleId ] [--scope ] [--prefix ] [--executionsTableId ] [--outputsTableId ] [--nodeStatesTableId ] [--executionsTableName ] [--outputsTableName ] [--nodeStatesTableName ] [--apiName ] [--privateApiName ] [--entityTableId ] [--policies ] [--provisions ] [--defaultPermissions ] 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 [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--scope ] [--prefix ] [--executionsTableId ] [--outputsTableId ] [--nodeStatesTableId ] [--executionsTableName ] [--outputsTableName ] [--nodeStatesTableName ] [--apiName ] [--privateApiName ] [--entityTableId ] [--policies ] [--provisions ] [--defaultPermissions ] +csdk graph-execution-module create --databaseId --graphModuleId [--entityField ] [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--scope ] [--prefix ] [--executionsTableId ] [--outputsTableId ] [--nodeStatesTableId ] [--executionsTableName ] [--outputsTableName ] [--nodeStatesTableName ] [--apiName ] [--privateApiName ] [--entityTableId ] [--policies ] [--provisions ] [--defaultPermissions ] ``` ### 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 08a6eb6294..80e1b44838 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 [--publicSchemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--scope ] [--prefix ] [--graphsTableId ] [--apiName ] [--privateApiName ] [--entityTableId ] [--policies ] [--provisions ] [--defaultPermissions ] -csdk graph-module update --id [--databaseId ] [--publicSchemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--scope ] [--prefix ] [--merkleStoreModuleId ] [--graphsTableId ] [--apiName ] [--privateApiName ] [--entityTableId ] [--policies ] [--provisions ] [--defaultPermissions ] +csdk graph-module create --databaseId --merkleStoreModuleId [--entityField ] [--publicSchemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--scope ] [--prefix ] [--graphsTableId ] [--apiName ] [--privateApiName ] [--entityTableId ] [--policies ] [--provisions ] [--defaultPermissions ] +csdk graph-module update --id [--databaseId ] [--entityField ] [--publicSchemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--scope ] [--prefix ] [--merkleStoreModuleId ] [--graphsTableId ] [--apiName ] [--privateApiName ] [--entityTableId ] [--policies ] [--provisions ] [--defaultPermissions ] 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 [--publicSchemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--scope ] [--prefix ] [--graphsTableId ] [--apiName ] [--privateApiName ] [--entityTableId ] [--policies ] [--provisions ] [--defaultPermissions ] +csdk graph-module create --databaseId --merkleStoreModuleId [--entityField ] [--publicSchemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--scope ] [--prefix ] [--graphsTableId ] [--apiName ] [--privateApiName ] [--entityTableId ] [--policies ] [--provisions ] [--defaultPermissions ] ``` ### 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 d3e3ed3333..48e7095118 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 --usersTableId [--schemaId ] [--privateSchemaId ] [--chartEdgesTableId ] [--chartEdgesTableName ] [--hierarchySprtTableId ] [--hierarchySprtTableName ] [--chartEdgeGrantsTableId ] [--chartEdgeGrantsTableName ] [--scope ] [--prefix ] [--privateSchemaName ] [--sprtTableName ] [--rebuildHierarchyFunction ] [--getSubordinatesFunction ] [--getManagersFunction ] [--isManagerOfFunction ] [--defaultPermissions ] -csdk hierarchy-module update --id [--databaseId ] [--schemaId ] [--privateSchemaId ] [--chartEdgesTableId ] [--chartEdgesTableName ] [--hierarchySprtTableId ] [--hierarchySprtTableName ] [--chartEdgeGrantsTableId ] [--chartEdgeGrantsTableName ] [--entityTableId ] [--usersTableId ] [--scope ] [--prefix ] [--privateSchemaName ] [--sprtTableName ] [--rebuildHierarchyFunction ] [--getSubordinatesFunction ] [--getManagersFunction ] [--isManagerOfFunction ] [--defaultPermissions ] +csdk hierarchy-module create --databaseId --entityTableId --usersTableId [--entityField ] [--schemaId ] [--privateSchemaId ] [--chartEdgesTableId ] [--chartEdgesTableName ] [--hierarchySprtTableId ] [--hierarchySprtTableName ] [--chartEdgeGrantsTableId ] [--chartEdgeGrantsTableName ] [--scope ] [--prefix ] [--privateSchemaName ] [--sprtTableName ] [--rebuildHierarchyFunction ] [--getSubordinatesFunction ] [--getManagersFunction ] [--isManagerOfFunction ] [--defaultPermissions ] +csdk hierarchy-module update --id [--databaseId ] [--entityField ] [--schemaId ] [--privateSchemaId ] [--chartEdgesTableId ] [--chartEdgesTableName ] [--hierarchySprtTableId ] [--hierarchySprtTableName ] [--chartEdgeGrantsTableId ] [--chartEdgeGrantsTableName ] [--entityTableId ] [--usersTableId ] [--scope ] [--prefix ] [--privateSchemaName ] [--sprtTableName ] [--rebuildHierarchyFunction ] [--getSubordinatesFunction ] [--getManagersFunction ] [--isManagerOfFunction ] [--defaultPermissions ] 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 --usersTableId [--schemaId ] [--privateSchemaId ] [--chartEdgesTableId ] [--chartEdgesTableName ] [--hierarchySprtTableId ] [--hierarchySprtTableName ] [--chartEdgeGrantsTableId ] [--chartEdgeGrantsTableName ] [--scope ] [--prefix ] [--privateSchemaName ] [--sprtTableName ] [--rebuildHierarchyFunction ] [--getSubordinatesFunction ] [--getManagersFunction ] [--isManagerOfFunction ] [--defaultPermissions ] +csdk hierarchy-module create --databaseId --entityTableId --usersTableId [--entityField ] [--schemaId ] [--privateSchemaId ] [--chartEdgesTableId ] [--chartEdgesTableName ] [--hierarchySprtTableId ] [--hierarchySprtTableName ] [--chartEdgeGrantsTableId ] [--chartEdgeGrantsTableName ] [--scope ] [--prefix ] [--privateSchemaName ] [--sprtTableName ] [--rebuildHierarchyFunction ] [--getSubordinatesFunction ] [--getManagersFunction ] [--isManagerOfFunction ] [--defaultPermissions ] ``` ### Get a hierarchyModule by id diff --git a/.agents/skills/cli-modules/references/identity-providers-module.md b/.agents/skills/cli-modules/references/identity-providers-module.md index c1226d0ec5..7cef3a15b0 100644 --- a/.agents/skills/cli-modules/references/identity-providers-module.md +++ b/.agents/skills/cli-modules/references/identity-providers-module.md @@ -12,8 +12,8 @@ csdk identity-providers-module list --where.. --orderBy csdk identity-providers-module find-first --where.. csdk identity-providers-module get --id -csdk identity-providers-module create --databaseId [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--tableId ] [--tableName ] [--apiName ] [--privateApiName ] [--scope ] [--prefix ] [--entityTableId ] -csdk identity-providers-module update --id [--databaseId ] [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--tableId ] [--tableName ] [--apiName ] [--privateApiName ] [--scope ] [--prefix ] [--entityTableId ] +csdk identity-providers-module create --databaseId [--entityField ] [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--tableId ] [--tableName ] [--apiName ] [--privateApiName ] [--scope ] [--prefix ] [--entityTableId ] +csdk identity-providers-module update --id [--databaseId ] [--entityField ] [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--tableId ] [--tableName ] [--apiName ] [--privateApiName ] [--scope ] [--prefix ] [--entityTableId ] csdk identity-providers-module delete --id ``` @@ -58,7 +58,7 @@ csdk identity-providers-module list --where.id.equalTo --orderBy ID_ASC ### Create a identityProvidersModule ```bash -csdk identity-providers-module create --databaseId [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--tableId ] [--tableName ] [--apiName ] [--privateApiName ] [--scope ] [--prefix ] [--entityTableId ] +csdk identity-providers-module create --databaseId [--entityField ] [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--tableId ] [--tableName ] [--apiName ] [--privateApiName ] [--scope ] [--prefix ] [--entityTableId ] ``` ### Get a identityProvidersModule by id diff --git a/.agents/skills/cli-modules/references/inference-log-module.md b/.agents/skills/cli-modules/references/inference-log-module.md index facbfd5037..6561563da2 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 [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--inferenceLogTableId ] [--inferenceLogTableName ] [--usageDailyTableId ] [--usageDailyTableName ] [--interval ] [--retention ] [--premake ] [--scope ] [--actorFkTableId ] [--entityFkTableId ] [--prefix ] [--apiName ] [--privateApiName ] -csdk inference-log-module update --id [--databaseId ] [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--inferenceLogTableId ] [--inferenceLogTableName ] [--usageDailyTableId ] [--usageDailyTableName ] [--interval ] [--retention ] [--premake ] [--scope ] [--actorFkTableId ] [--entityFkTableId ] [--prefix ] [--apiName ] [--privateApiName ] +csdk inference-log-module create --databaseId [--entityField ] [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--inferenceLogTableId ] [--inferenceLogTableName ] [--usageDailyTableId ] [--usageDailyTableName ] [--interval ] [--retention ] [--premake ] [--scope ] [--actorFkTableId ] [--entityFkTableId ] [--prefix ] [--apiName ] [--privateApiName ] +csdk inference-log-module update --id [--databaseId ] [--entityField ] [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--inferenceLogTableId ] [--inferenceLogTableName ] [--usageDailyTableId ] [--usageDailyTableName ] [--interval ] [--retention ] [--premake ] [--scope ] [--actorFkTableId ] [--entityFkTableId ] [--prefix ] [--apiName ] [--privateApiName ] 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 [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--inferenceLogTableId ] [--inferenceLogTableName ] [--usageDailyTableId ] [--usageDailyTableName ] [--interval ] [--retention ] [--premake ] [--scope ] [--actorFkTableId ] [--entityFkTableId ] [--prefix ] [--apiName ] [--privateApiName ] +csdk inference-log-module create --databaseId [--entityField ] [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--inferenceLogTableId ] [--inferenceLogTableName ] [--usageDailyTableId ] [--usageDailyTableName ] [--interval ] [--retention ] [--premake ] [--scope ] [--actorFkTableId ] [--entityFkTableId ] [--prefix ] [--apiName ] [--privateApiName ] ``` ### Get a inferenceLogModule by id diff --git a/.agents/skills/cli-modules/references/infra-config-module.md b/.agents/skills/cli-modules/references/infra-config-module.md new file mode 100644 index 0000000000..1f110ce43c --- /dev/null +++ b/.agents/skills/cli-modules/references/infra-config-module.md @@ -0,0 +1,68 @@ +# infraConfigModule + + + +CRUD operations for InfraConfigModule records via csdk CLI + +## Usage + +```bash +csdk infra-config-module list +csdk infra-config-module list --where.. --orderBy +csdk infra-config-module list --limit 10 --after +csdk infra-config-module find-first --where.. +csdk infra-config-module get --id +csdk infra-config-module create --databaseId [--entityField ] [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--configTableId ] [--configTableName ] [--apiName ] [--privateApiName ] [--scope ] [--prefix ] [--entityTableId ] [--policies ] [--provisions ] +csdk infra-config-module update --id [--databaseId ] [--entityField ] [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--configTableId ] [--configTableName ] [--apiName ] [--privateApiName ] [--scope ] [--prefix ] [--entityTableId ] [--policies ] [--provisions ] +csdk infra-config-module delete --id +``` + +## Examples + +### List infraConfigModule records + +```bash +csdk infra-config-module list +``` + +### List infraConfigModule records with pagination + +```bash +csdk infra-config-module list --limit 10 --offset 0 +``` + +### List infraConfigModule records with cursor pagination + +```bash +csdk infra-config-module list --limit 10 --after +``` + +### Find first matching infraConfigModule + +```bash +csdk infra-config-module find-first --where.id.equalTo +``` + +### List infraConfigModule records with field selection + +```bash +csdk infra-config-module list --select id,id +``` + +### List infraConfigModule records with filtering and ordering + +```bash +csdk infra-config-module list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a infraConfigModule + +```bash +csdk infra-config-module create --databaseId [--entityField ] [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--configTableId ] [--configTableName ] [--apiName ] [--privateApiName ] [--scope ] [--prefix ] [--entityTableId ] [--policies ] [--provisions ] +``` + +### Get a infraConfigModule by id + +```bash +csdk infra-config-module get --id +``` diff --git a/.agents/skills/cli-modules/references/infra-secrets-module.md b/.agents/skills/cli-modules/references/infra-secrets-module.md new file mode 100644 index 0000000000..25d129ac5a --- /dev/null +++ b/.agents/skills/cli-modules/references/infra-secrets-module.md @@ -0,0 +1,68 @@ +# infraSecretsModule + + + +CRUD operations for InfraSecretsModule records via csdk CLI + +## Usage + +```bash +csdk infra-secrets-module list +csdk infra-secrets-module list --where.. --orderBy +csdk infra-secrets-module list --limit 10 --after +csdk infra-secrets-module find-first --where.. +csdk infra-secrets-module get --id +csdk infra-secrets-module create --databaseId [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--secretsTableId ] [--secretsTableName ] [--apiName ] [--privateApiName ] [--scope ] [--prefix ] [--entityTableId ] [--entityField ] [--policies ] [--provisions ] +csdk infra-secrets-module update --id [--databaseId ] [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--secretsTableId ] [--secretsTableName ] [--apiName ] [--privateApiName ] [--scope ] [--prefix ] [--entityTableId ] [--entityField ] [--policies ] [--provisions ] +csdk infra-secrets-module delete --id +``` + +## Examples + +### List infraSecretsModule records + +```bash +csdk infra-secrets-module list +``` + +### List infraSecretsModule records with pagination + +```bash +csdk infra-secrets-module list --limit 10 --offset 0 +``` + +### List infraSecretsModule records with cursor pagination + +```bash +csdk infra-secrets-module list --limit 10 --after +``` + +### Find first matching infraSecretsModule + +```bash +csdk infra-secrets-module find-first --where.id.equalTo +``` + +### List infraSecretsModule records with field selection + +```bash +csdk infra-secrets-module list --select id,id +``` + +### List infraSecretsModule records with filtering and ordering + +```bash +csdk infra-secrets-module list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a infraSecretsModule + +```bash +csdk infra-secrets-module create --databaseId [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--secretsTableId ] [--secretsTableName ] [--apiName ] [--privateApiName ] [--scope ] [--prefix ] [--entityTableId ] [--entityField ] [--policies ] [--provisions ] +``` + +### Get a infraSecretsModule by id + +```bash +csdk infra-secrets-module get --id +``` diff --git a/.agents/skills/cli-modules/references/integration-providers-module.md b/.agents/skills/cli-modules/references/integration-providers-module.md new file mode 100644 index 0000000000..a5576f87df --- /dev/null +++ b/.agents/skills/cli-modules/references/integration-providers-module.md @@ -0,0 +1,68 @@ +# integrationProvidersModule + + + +CRUD operations for IntegrationProvidersModule records via csdk CLI + +## Usage + +```bash +csdk integration-providers-module list +csdk integration-providers-module list --where.. --orderBy +csdk integration-providers-module list --limit 10 --after +csdk integration-providers-module find-first --where.. +csdk integration-providers-module get --id +csdk integration-providers-module create --databaseId [--entityField ] [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--tableId ] [--tableName ] [--apiName ] [--privateApiName ] [--scope ] [--prefix ] [--entityTableId ] +csdk integration-providers-module update --id [--databaseId ] [--entityField ] [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--tableId ] [--tableName ] [--apiName ] [--privateApiName ] [--scope ] [--prefix ] [--entityTableId ] +csdk integration-providers-module delete --id +``` + +## Examples + +### List integrationProvidersModule records + +```bash +csdk integration-providers-module list +``` + +### List integrationProvidersModule records with pagination + +```bash +csdk integration-providers-module list --limit 10 --offset 0 +``` + +### List integrationProvidersModule records with cursor pagination + +```bash +csdk integration-providers-module list --limit 10 --after +``` + +### Find first matching integrationProvidersModule + +```bash +csdk integration-providers-module find-first --where.id.equalTo +``` + +### List integrationProvidersModule records with field selection + +```bash +csdk integration-providers-module list --select id,id +``` + +### List integrationProvidersModule records with filtering and ordering + +```bash +csdk integration-providers-module list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a integrationProvidersModule + +```bash +csdk integration-providers-module create --databaseId [--entityField ] [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--tableId ] [--tableName ] [--apiName ] [--privateApiName ] [--scope ] [--prefix ] [--entityTableId ] +``` + +### Get a integrationProvidersModule by id + +```bash +csdk integration-providers-module get --id +``` diff --git a/.agents/skills/cli-modules/references/internal-secrets-module.md b/.agents/skills/cli-modules/references/internal-secrets-module.md new file mode 100644 index 0000000000..a8331534e9 --- /dev/null +++ b/.agents/skills/cli-modules/references/internal-secrets-module.md @@ -0,0 +1,68 @@ +# internalSecretsModule + + + +CRUD operations for InternalSecretsModule records via csdk CLI + +## Usage + +```bash +csdk internal-secrets-module list +csdk internal-secrets-module list --where.. --orderBy +csdk internal-secrets-module list --limit 10 --after +csdk internal-secrets-module find-first --where.. +csdk internal-secrets-module get --id +csdk internal-secrets-module create --databaseId [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--internalSecretsTableId ] [--internalSecretsTableName ] [--apiName ] [--privateApiName ] [--scope ] [--prefix ] [--entityTableId ] [--entityField ] [--policies ] [--provisions ] +csdk internal-secrets-module update --id [--databaseId ] [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--internalSecretsTableId ] [--internalSecretsTableName ] [--apiName ] [--privateApiName ] [--scope ] [--prefix ] [--entityTableId ] [--entityField ] [--policies ] [--provisions ] +csdk internal-secrets-module delete --id +``` + +## Examples + +### List internalSecretsModule records + +```bash +csdk internal-secrets-module list +``` + +### List internalSecretsModule records with pagination + +```bash +csdk internal-secrets-module list --limit 10 --offset 0 +``` + +### List internalSecretsModule records with cursor pagination + +```bash +csdk internal-secrets-module list --limit 10 --after +``` + +### Find first matching internalSecretsModule + +```bash +csdk internal-secrets-module find-first --where.id.equalTo +``` + +### List internalSecretsModule records with field selection + +```bash +csdk internal-secrets-module list --select id,id +``` + +### List internalSecretsModule records with filtering and ordering + +```bash +csdk internal-secrets-module list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a internalSecretsModule + +```bash +csdk internal-secrets-module create --databaseId [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--internalSecretsTableId ] [--internalSecretsTableName ] [--apiName ] [--privateApiName ] [--scope ] [--prefix ] [--entityTableId ] [--entityField ] [--policies ] [--provisions ] +``` + +### Get a internalSecretsModule by id + +```bash +csdk internal-secrets-module get --id +``` diff --git a/.agents/skills/cli-modules/references/invites-module.md b/.agents/skills/cli-modules/references/invites-module.md index 11058b0ab3..7a6605a564 100644 --- a/.agents/skills/cli-modules/references/invites-module.md +++ b/.agents/skills/cli-modules/references/invites-module.md @@ -12,8 +12,8 @@ csdk invites-module list --where.. --orderBy csdk invites-module list --limit 10 --after csdk invites-module find-first --where.. csdk invites-module get --id -csdk invites-module create --databaseId [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--emailsTableId ] [--usersTableId ] [--invitesTableId ] [--claimedInvitesTableId ] [--invitesTableName ] [--claimedInvitesTableName ] [--submitInviteCodeFunction ] [--scope ] [--prefix ] [--entityTableId ] [--apiName ] [--privateApiName ] -csdk invites-module update --id [--databaseId ] [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--emailsTableId ] [--usersTableId ] [--invitesTableId ] [--claimedInvitesTableId ] [--invitesTableName ] [--claimedInvitesTableName ] [--submitInviteCodeFunction ] [--scope ] [--prefix ] [--entityTableId ] [--apiName ] [--privateApiName ] +csdk invites-module create --databaseId [--entityField ] [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--emailsTableId ] [--usersTableId ] [--invitesTableId ] [--claimedInvitesTableId ] [--invitesTableName ] [--claimedInvitesTableName ] [--submitInviteCodeFunction ] [--scope ] [--prefix ] [--entityTableId ] [--apiName ] [--privateApiName ] +csdk invites-module update --id [--databaseId ] [--entityField ] [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--emailsTableId ] [--usersTableId ] [--invitesTableId ] [--claimedInvitesTableId ] [--invitesTableName ] [--claimedInvitesTableName ] [--submitInviteCodeFunction ] [--scope ] [--prefix ] [--entityTableId ] [--apiName ] [--privateApiName ] csdk invites-module delete --id ``` @@ -58,7 +58,7 @@ csdk invites-module list --where.id.equalTo --orderBy ID_ASC ### Create a invitesModule ```bash -csdk invites-module create --databaseId [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--emailsTableId ] [--usersTableId ] [--invitesTableId ] [--claimedInvitesTableId ] [--invitesTableName ] [--claimedInvitesTableName ] [--submitInviteCodeFunction ] [--scope ] [--prefix ] [--entityTableId ] [--apiName ] [--privateApiName ] +csdk invites-module create --databaseId [--entityField ] [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--emailsTableId ] [--usersTableId ] [--invitesTableId ] [--claimedInvitesTableId ] [--invitesTableName ] [--claimedInvitesTableName ] [--submitInviteCodeFunction ] [--scope ] [--prefix ] [--entityTableId ] [--apiName ] [--privateApiName ] ``` ### Get a invitesModule by id diff --git a/.agents/skills/cli-modules/references/limits-module.md b/.agents/skills/cli-modules/references/limits-module.md index f7ec4cbfd7..c1068651ff 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 [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--tableId ] [--tableName ] [--defaultTableId ] [--defaultTableName ] [--limitIncrementFunction ] [--limitDecrementFunction ] [--limitIncrementTrigger ] [--limitDecrementTrigger ] [--limitUpdateTrigger ] [--limitCheckFunction ] [--limitCreditsTableId ] [--eventsTableId ] [--creditCodesTableId ] [--creditCodeItemsTableId ] [--creditRedemptionsTableId ] [--aggregateTableId ] [--limitCapsTableId ] [--limitCapsDefaultsTableId ] [--capCheckTrigger ] [--resolveCapFunction ] [--limitWarningsTableId ] [--limitWarningStateTableId ] [--limitCheckSoftFunction ] [--limitAggregateCheckSoftFunction ] [--scope ] [--prefix ] [--entityTableId ] [--actorTableId ] [--apiName ] [--privateApiName ] -csdk limits-module update --id [--databaseId ] [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--tableId ] [--tableName ] [--defaultTableId ] [--defaultTableName ] [--limitIncrementFunction ] [--limitDecrementFunction ] [--limitIncrementTrigger ] [--limitDecrementTrigger ] [--limitUpdateTrigger ] [--limitCheckFunction ] [--limitCreditsTableId ] [--eventsTableId ] [--creditCodesTableId ] [--creditCodeItemsTableId ] [--creditRedemptionsTableId ] [--aggregateTableId ] [--limitCapsTableId ] [--limitCapsDefaultsTableId ] [--capCheckTrigger ] [--resolveCapFunction ] [--limitWarningsTableId ] [--limitWarningStateTableId ] [--limitCheckSoftFunction ] [--limitAggregateCheckSoftFunction ] [--scope ] [--prefix ] [--entityTableId ] [--actorTableId ] [--apiName ] [--privateApiName ] +csdk limits-module create --databaseId [--entityField ] [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--tableId ] [--tableName ] [--defaultTableId ] [--defaultTableName ] [--limitIncrementFunction ] [--limitDecrementFunction ] [--limitIncrementTrigger ] [--limitDecrementTrigger ] [--limitUpdateTrigger ] [--limitCheckFunction ] [--limitCreditsTableId ] [--eventsTableId ] [--creditCodesTableId ] [--creditCodeItemsTableId ] [--creditRedemptionsTableId ] [--aggregateTableId ] [--limitCapsTableId ] [--limitCapsDefaultsTableId ] [--capCheckTrigger ] [--resolveCapFunction ] [--limitWarningsTableId ] [--limitWarningStateTableId ] [--limitCheckSoftFunction ] [--limitAggregateCheckSoftFunction ] [--scope ] [--prefix ] [--entityTableId ] [--actorTableId ] [--apiName ] [--privateApiName ] +csdk limits-module update --id [--databaseId ] [--entityField ] [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--tableId ] [--tableName ] [--defaultTableId ] [--defaultTableName ] [--limitIncrementFunction ] [--limitDecrementFunction ] [--limitIncrementTrigger ] [--limitDecrementTrigger ] [--limitUpdateTrigger ] [--limitCheckFunction ] [--limitCreditsTableId ] [--eventsTableId ] [--creditCodesTableId ] [--creditCodeItemsTableId ] [--creditRedemptionsTableId ] [--aggregateTableId ] [--limitCapsTableId ] [--limitCapsDefaultsTableId ] [--capCheckTrigger ] [--resolveCapFunction ] [--limitWarningsTableId ] [--limitWarningStateTableId ] [--limitCheckSoftFunction ] [--limitAggregateCheckSoftFunction ] [--scope ] [--prefix ] [--entityTableId ] [--actorTableId ] [--apiName ] [--privateApiName ] 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 [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--tableId ] [--tableName ] [--defaultTableId ] [--defaultTableName ] [--limitIncrementFunction ] [--limitDecrementFunction ] [--limitIncrementTrigger ] [--limitDecrementTrigger ] [--limitUpdateTrigger ] [--limitCheckFunction ] [--limitCreditsTableId ] [--eventsTableId ] [--creditCodesTableId ] [--creditCodeItemsTableId ] [--creditRedemptionsTableId ] [--aggregateTableId ] [--limitCapsTableId ] [--limitCapsDefaultsTableId ] [--capCheckTrigger ] [--resolveCapFunction ] [--limitWarningsTableId ] [--limitWarningStateTableId ] [--limitCheckSoftFunction ] [--limitAggregateCheckSoftFunction ] [--scope ] [--prefix ] [--entityTableId ] [--actorTableId ] [--apiName ] [--privateApiName ] +csdk limits-module create --databaseId [--entityField ] [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--tableId ] [--tableName ] [--defaultTableId ] [--defaultTableName ] [--limitIncrementFunction ] [--limitDecrementFunction ] [--limitIncrementTrigger ] [--limitDecrementTrigger ] [--limitUpdateTrigger ] [--limitCheckFunction ] [--limitCreditsTableId ] [--eventsTableId ] [--creditCodesTableId ] [--creditCodeItemsTableId ] [--creditRedemptionsTableId ] [--aggregateTableId ] [--limitCapsTableId ] [--limitCapsDefaultsTableId ] [--capCheckTrigger ] [--resolveCapFunction ] [--limitWarningsTableId ] [--limitWarningStateTableId ] [--limitCheckSoftFunction ] [--limitAggregateCheckSoftFunction ] [--scope ] [--prefix ] [--entityTableId ] [--actorTableId ] [--apiName ] [--privateApiName ] ``` ### Get a limitsModule by id diff --git a/.agents/skills/cli-modules/references/memberships-module.md b/.agents/skills/cli-modules/references/memberships-module.md index 20a285ba06..a50b5ab9cb 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 [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--membershipsTableId ] [--membershipsTableName ] [--membersTableId ] [--membersTableName ] [--membershipDefaultsTableId ] [--membershipDefaultsTableName ] [--membershipSettingsTableId ] [--membershipSettingsTableName ] [--grantsTableId ] [--grantsTableName ] [--actorTableId ] [--limitsTableId ] [--defaultLimitsTableId ] [--permissionsTableId ] [--defaultPermissionsTableId ] [--sprtTableId ] [--adminGrantsTableId ] [--adminGrantsTableName ] [--ownerGrantsTableId ] [--ownerGrantsTableName ] [--scope ] [--prefix ] [--entityTableId ] [--entityTableOwnerId ] [--getOrgFn ] [--actorMaskCheck ] [--actorPermCheck ] [--entityIdsByMask ] [--entityIdsByPerm ] [--entityIdsFunction ] [--memberProfilesTableId ] [--permissionDefaultPermissionsTableId ] [--permissionDefaultGrantsTableId ] [--apiName ] [--privateApiName ] -csdk memberships-module update --id [--databaseId ] [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--membershipsTableId ] [--membershipsTableName ] [--membersTableId ] [--membersTableName ] [--membershipDefaultsTableId ] [--membershipDefaultsTableName ] [--membershipSettingsTableId ] [--membershipSettingsTableName ] [--grantsTableId ] [--grantsTableName ] [--actorTableId ] [--limitsTableId ] [--defaultLimitsTableId ] [--permissionsTableId ] [--defaultPermissionsTableId ] [--sprtTableId ] [--adminGrantsTableId ] [--adminGrantsTableName ] [--ownerGrantsTableId ] [--ownerGrantsTableName ] [--scope ] [--prefix ] [--entityTableId ] [--entityTableOwnerId ] [--getOrgFn ] [--actorMaskCheck ] [--actorPermCheck ] [--entityIdsByMask ] [--entityIdsByPerm ] [--entityIdsFunction ] [--memberProfilesTableId ] [--permissionDefaultPermissionsTableId ] [--permissionDefaultGrantsTableId ] [--apiName ] [--privateApiName ] +csdk memberships-module create --databaseId [--entityField ] [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--membershipsTableId ] [--membershipsTableName ] [--membersTableId ] [--membersTableName ] [--membershipDefaultsTableId ] [--membershipDefaultsTableName ] [--membershipSettingsTableId ] [--membershipSettingsTableName ] [--grantsTableId ] [--grantsTableName ] [--actorTableId ] [--limitsTableId ] [--defaultLimitsTableId ] [--permissionsTableId ] [--defaultPermissionsTableId ] [--sprtTableId ] [--adminGrantsTableId ] [--adminGrantsTableName ] [--ownerGrantsTableId ] [--ownerGrantsTableName ] [--scope ] [--prefix ] [--entityTableId ] [--entityTableOwnerId ] [--getOrgFn ] [--actorMaskCheck ] [--actorPermCheck ] [--entityIdsByMask ] [--entityIdsByPerm ] [--entityIdsFunction ] [--memberProfilesTableId ] [--permissionDefaultPermissionsTableId ] [--permissionDefaultGrantsTableId ] [--apiName ] [--privateApiName ] +csdk memberships-module update --id [--databaseId ] [--entityField ] [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--membershipsTableId ] [--membershipsTableName ] [--membersTableId ] [--membersTableName ] [--membershipDefaultsTableId ] [--membershipDefaultsTableName ] [--membershipSettingsTableId ] [--membershipSettingsTableName ] [--grantsTableId ] [--grantsTableName ] [--actorTableId ] [--limitsTableId ] [--defaultLimitsTableId ] [--permissionsTableId ] [--defaultPermissionsTableId ] [--sprtTableId ] [--adminGrantsTableId ] [--adminGrantsTableName ] [--ownerGrantsTableId ] [--ownerGrantsTableName ] [--scope ] [--prefix ] [--entityTableId ] [--entityTableOwnerId ] [--getOrgFn ] [--actorMaskCheck ] [--actorPermCheck ] [--entityIdsByMask ] [--entityIdsByPerm ] [--entityIdsFunction ] [--memberProfilesTableId ] [--permissionDefaultPermissionsTableId ] [--permissionDefaultGrantsTableId ] [--apiName ] [--privateApiName ] 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 [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--membershipsTableId ] [--membershipsTableName ] [--membersTableId ] [--membersTableName ] [--membershipDefaultsTableId ] [--membershipDefaultsTableName ] [--membershipSettingsTableId ] [--membershipSettingsTableName ] [--grantsTableId ] [--grantsTableName ] [--actorTableId ] [--limitsTableId ] [--defaultLimitsTableId ] [--permissionsTableId ] [--defaultPermissionsTableId ] [--sprtTableId ] [--adminGrantsTableId ] [--adminGrantsTableName ] [--ownerGrantsTableId ] [--ownerGrantsTableName ] [--scope ] [--prefix ] [--entityTableId ] [--entityTableOwnerId ] [--getOrgFn ] [--actorMaskCheck ] [--actorPermCheck ] [--entityIdsByMask ] [--entityIdsByPerm ] [--entityIdsFunction ] [--memberProfilesTableId ] [--permissionDefaultPermissionsTableId ] [--permissionDefaultGrantsTableId ] [--apiName ] [--privateApiName ] +csdk memberships-module create --databaseId [--entityField ] [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--membershipsTableId ] [--membershipsTableName ] [--membersTableId ] [--membersTableName ] [--membershipDefaultsTableId ] [--membershipDefaultsTableName ] [--membershipSettingsTableId ] [--membershipSettingsTableName ] [--grantsTableId ] [--grantsTableName ] [--actorTableId ] [--limitsTableId ] [--defaultLimitsTableId ] [--permissionsTableId ] [--defaultPermissionsTableId ] [--sprtTableId ] [--adminGrantsTableId ] [--adminGrantsTableName ] [--ownerGrantsTableId ] [--ownerGrantsTableName ] [--scope ] [--prefix ] [--entityTableId ] [--entityTableOwnerId ] [--getOrgFn ] [--actorMaskCheck ] [--actorPermCheck ] [--entityIdsByMask ] [--entityIdsByPerm ] [--entityIdsFunction ] [--memberProfilesTableId ] [--permissionDefaultPermissionsTableId ] [--permissionDefaultGrantsTableId ] [--apiName ] [--privateApiName ] ``` ### 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 18876bc5d6..034afa2fff 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 [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--objectTableId ] [--storeTableId ] [--commitTableId ] [--refTableId ] [--prefix ] [--apiName ] [--privateApiName ] [--scope ] [--functionPrefix ] [--permissionKey ] -csdk merkle-store-module update --id [--databaseId ] [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--objectTableId ] [--storeTableId ] [--commitTableId ] [--refTableId ] [--prefix ] [--apiName ] [--privateApiName ] [--scope ] [--functionPrefix ] [--permissionKey ] +csdk merkle-store-module create --databaseId [--entityField ] [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--objectTableId ] [--storeTableId ] [--commitTableId ] [--refTableId ] [--prefix ] [--apiName ] [--privateApiName ] [--scope ] [--functionPrefix ] [--permissionKey ] +csdk merkle-store-module update --id [--databaseId ] [--entityField ] [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--objectTableId ] [--storeTableId ] [--commitTableId ] [--refTableId ] [--prefix ] [--apiName ] [--privateApiName ] [--scope ] [--functionPrefix ] [--permissionKey ] 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 [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--objectTableId ] [--storeTableId ] [--commitTableId ] [--refTableId ] [--prefix ] [--apiName ] [--privateApiName ] [--scope ] [--functionPrefix ] [--permissionKey ] +csdk merkle-store-module create --databaseId [--entityField ] [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--objectTableId ] [--storeTableId ] [--commitTableId ] [--refTableId ] [--prefix ] [--apiName ] [--privateApiName ] [--scope ] [--functionPrefix ] [--permissionKey ] ``` ### 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 1216834f4e..edefec8418 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 [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--namespacesTableId ] [--namespaceEventsTableId ] [--namespacesTableName ] [--namespaceEventsTableName ] [--apiName ] [--privateApiName ] [--scope ] [--prefix ] [--entityTableId ] [--platformNamespacesTableId ] [--policies ] [--provisions ] [--defaultPermissions ] -csdk namespace-module update --id [--databaseId ] [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--namespacesTableId ] [--namespaceEventsTableId ] [--namespacesTableName ] [--namespaceEventsTableName ] [--apiName ] [--privateApiName ] [--scope ] [--prefix ] [--entityTableId ] [--platformNamespacesTableId ] [--policies ] [--provisions ] [--defaultPermissions ] +csdk namespace-module create --databaseId [--entityField ] [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--namespacesTableId ] [--namespaceEventsTableId ] [--namespacesTableName ] [--namespaceEventsTableName ] [--apiName ] [--privateApiName ] [--scope ] [--prefix ] [--entityTableId ] [--policies ] [--provisions ] [--defaultPermissions ] +csdk namespace-module update --id [--databaseId ] [--entityField ] [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--namespacesTableId ] [--namespaceEventsTableId ] [--namespacesTableName ] [--namespaceEventsTableName ] [--apiName ] [--privateApiName ] [--scope ] [--prefix ] [--entityTableId ] [--policies ] [--provisions ] [--defaultPermissions ] 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 [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--namespacesTableId ] [--namespaceEventsTableId ] [--namespacesTableName ] [--namespaceEventsTableName ] [--apiName ] [--privateApiName ] [--scope ] [--prefix ] [--entityTableId ] [--platformNamespacesTableId ] [--policies ] [--provisions ] [--defaultPermissions ] +csdk namespace-module create --databaseId [--entityField ] [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--namespacesTableId ] [--namespaceEventsTableId ] [--namespacesTableName ] [--namespaceEventsTableName ] [--apiName ] [--privateApiName ] [--scope ] [--prefix ] [--entityTableId ] [--policies ] [--provisions ] [--defaultPermissions ] ``` ### 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 2b153ab786..83b3835bf3 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 [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--notificationsTableId ] [--readStateTableId ] [--preferencesTableId ] [--channelsTableId ] [--deliveryLogTableId ] [--suppressionsTableId ] [--ownerTableId ] [--userSettingsTableId ] [--organizationSettingsTableId ] [--hasChannels ] [--hasPreferences ] [--hasSettingsExtension ] [--hasDigestMetadata ] [--hasSubscriptions ] [--defaultPermissions ] [--apiName ] [--privateApiName ] -csdk notifications-module update --id [--databaseId ] [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--notificationsTableId ] [--readStateTableId ] [--preferencesTableId ] [--channelsTableId ] [--deliveryLogTableId ] [--suppressionsTableId ] [--ownerTableId ] [--userSettingsTableId ] [--organizationSettingsTableId ] [--hasChannels ] [--hasPreferences ] [--hasSettingsExtension ] [--hasDigestMetadata ] [--hasSubscriptions ] [--defaultPermissions ] [--apiName ] [--privateApiName ] +csdk notifications-module create --databaseId [--entityField ] [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--notificationsTableId ] [--readStateTableId ] [--preferencesTableId ] [--channelsTableId ] [--deliveryLogTableId ] [--suppressionsTableId ] [--ownerTableId ] [--userSettingsTableId ] [--organizationSettingsTableId ] [--hasChannels ] [--hasPreferences ] [--hasSettingsExtension ] [--hasDigestMetadata ] [--hasSubscriptions ] [--defaultPermissions ] [--apiName ] [--privateApiName ] +csdk notifications-module update --id [--databaseId ] [--entityField ] [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--notificationsTableId ] [--readStateTableId ] [--preferencesTableId ] [--channelsTableId ] [--deliveryLogTableId ] [--suppressionsTableId ] [--ownerTableId ] [--userSettingsTableId ] [--organizationSettingsTableId ] [--hasChannels ] [--hasPreferences ] [--hasSettingsExtension ] [--hasDigestMetadata ] [--hasSubscriptions ] [--defaultPermissions ] [--apiName ] [--privateApiName ] 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 [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--notificationsTableId ] [--readStateTableId ] [--preferencesTableId ] [--channelsTableId ] [--deliveryLogTableId ] [--suppressionsTableId ] [--ownerTableId ] [--userSettingsTableId ] [--organizationSettingsTableId ] [--hasChannels ] [--hasPreferences ] [--hasSettingsExtension ] [--hasDigestMetadata ] [--hasSubscriptions ] [--defaultPermissions ] [--apiName ] [--privateApiName ] +csdk notifications-module create --databaseId [--entityField ] [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--notificationsTableId ] [--readStateTableId ] [--preferencesTableId ] [--channelsTableId ] [--deliveryLogTableId ] [--suppressionsTableId ] [--ownerTableId ] [--userSettingsTableId ] [--organizationSettingsTableId ] [--hasChannels ] [--hasPreferences ] [--hasSettingsExtension ] [--hasDigestMetadata ] [--hasSubscriptions ] [--defaultPermissions ] [--apiName ] [--privateApiName ] ``` ### Get a notificationsModule by id diff --git a/.agents/skills/cli-modules/references/permissions-module.md b/.agents/skills/cli-modules/references/permissions-module.md index 21b4905727..68c0f7f844 100644 --- a/.agents/skills/cli-modules/references/permissions-module.md +++ b/.agents/skills/cli-modules/references/permissions-module.md @@ -12,8 +12,8 @@ csdk permissions-module list --where.. --orderBy csdk permissions-module list --limit 10 --after csdk permissions-module find-first --where.. csdk permissions-module get --id -csdk permissions-module create --databaseId [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--tableId ] [--tableName ] [--defaultTableId ] [--defaultTableName ] [--bitlen ] [--scope ] [--prefix ] [--entityTableId ] [--actorTableId ] [--getPaddedMask ] [--getMask ] [--getByMask ] [--getMaskByName ] [--apiName ] [--privateApiName ] -csdk permissions-module update --id [--databaseId ] [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--tableId ] [--tableName ] [--defaultTableId ] [--defaultTableName ] [--bitlen ] [--scope ] [--prefix ] [--entityTableId ] [--actorTableId ] [--getPaddedMask ] [--getMask ] [--getByMask ] [--getMaskByName ] [--apiName ] [--privateApiName ] +csdk permissions-module create --databaseId [--entityField ] [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--tableId ] [--tableName ] [--defaultTableId ] [--defaultTableName ] [--bitlen ] [--scope ] [--prefix ] [--entityTableId ] [--actorTableId ] [--getPaddedMask ] [--getMask ] [--getByMask ] [--getMaskByName ] [--apiName ] [--privateApiName ] +csdk permissions-module update --id [--databaseId ] [--entityField ] [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--tableId ] [--tableName ] [--defaultTableId ] [--defaultTableName ] [--bitlen ] [--scope ] [--prefix ] [--entityTableId ] [--actorTableId ] [--getPaddedMask ] [--getMask ] [--getByMask ] [--getMaskByName ] [--apiName ] [--privateApiName ] csdk permissions-module delete --id ``` @@ -58,7 +58,7 @@ csdk permissions-module list --where.id.equalTo --orderBy ID_ASC ### Create a permissionsModule ```bash -csdk permissions-module create --databaseId [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--tableId ] [--tableName ] [--defaultTableId ] [--defaultTableName ] [--bitlen ] [--scope ] [--prefix ] [--entityTableId ] [--actorTableId ] [--getPaddedMask ] [--getMask ] [--getByMask ] [--getMaskByName ] [--apiName ] [--privateApiName ] +csdk permissions-module create --databaseId [--entityField ] [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--tableId ] [--tableName ] [--defaultTableId ] [--defaultTableName ] [--bitlen ] [--scope ] [--prefix ] [--entityTableId ] [--actorTableId ] [--getPaddedMask ] [--getMask ] [--getByMask ] [--getMaskByName ] [--apiName ] [--privateApiName ] ``` ### Get a permissionsModule by id diff --git a/.agents/skills/cli-modules/references/profiles-module.md b/.agents/skills/cli-modules/references/profiles-module.md index 2d72d397e3..2f79c1f625 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 [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--tableId ] [--tableName ] [--profilePermissionsTableId ] [--profilePermissionsTableName ] [--profileGrantsTableId ] [--profileGrantsTableName ] [--profileDefinitionGrantsTableId ] [--profileDefinitionGrantsTableName ] [--profileTemplatesTableId ] [--profileTemplatesTableName ] [--scope ] [--prefix ] [--entityTableId ] [--actorTableId ] [--permissionsTableId ] [--membershipsTableId ] [--apiName ] [--privateApiName ] -csdk profiles-module update --id [--databaseId ] [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--tableId ] [--tableName ] [--profilePermissionsTableId ] [--profilePermissionsTableName ] [--profileGrantsTableId ] [--profileGrantsTableName ] [--profileDefinitionGrantsTableId ] [--profileDefinitionGrantsTableName ] [--profileTemplatesTableId ] [--profileTemplatesTableName ] [--scope ] [--prefix ] [--entityTableId ] [--actorTableId ] [--permissionsTableId ] [--membershipsTableId ] [--apiName ] [--privateApiName ] +csdk profiles-module create --databaseId [--entityField ] [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--tableId ] [--tableName ] [--profilePermissionsTableId ] [--profilePermissionsTableName ] [--profileGrantsTableId ] [--profileGrantsTableName ] [--profileDefinitionGrantsTableId ] [--profileDefinitionGrantsTableName ] [--profileTemplatesTableId ] [--profileTemplatesTableName ] [--scope ] [--prefix ] [--entityTableId ] [--actorTableId ] [--permissionsTableId ] [--membershipsTableId ] [--apiName ] [--privateApiName ] +csdk profiles-module update --id [--databaseId ] [--entityField ] [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--tableId ] [--tableName ] [--profilePermissionsTableId ] [--profilePermissionsTableName ] [--profileGrantsTableId ] [--profileGrantsTableName ] [--profileDefinitionGrantsTableId ] [--profileDefinitionGrantsTableName ] [--profileTemplatesTableId ] [--profileTemplatesTableName ] [--scope ] [--prefix ] [--entityTableId ] [--actorTableId ] [--permissionsTableId ] [--membershipsTableId ] [--apiName ] [--privateApiName ] 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 [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--tableId ] [--tableName ] [--profilePermissionsTableId ] [--profilePermissionsTableName ] [--profileGrantsTableId ] [--profileGrantsTableName ] [--profileDefinitionGrantsTableId ] [--profileDefinitionGrantsTableName ] [--profileTemplatesTableId ] [--profileTemplatesTableName ] [--scope ] [--prefix ] [--entityTableId ] [--actorTableId ] [--permissionsTableId ] [--membershipsTableId ] [--apiName ] [--privateApiName ] +csdk profiles-module create --databaseId [--entityField ] [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--tableId ] [--tableName ] [--profilePermissionsTableId ] [--profilePermissionsTableName ] [--profileGrantsTableId ] [--profileGrantsTableName ] [--profileDefinitionGrantsTableId ] [--profileDefinitionGrantsTableName ] [--profileTemplatesTableId ] [--profileTemplatesTableName ] [--scope ] [--prefix ] [--entityTableId ] [--actorTableId ] [--permissionsTableId ] [--membershipsTableId ] [--apiName ] [--privateApiName ] ``` ### Get a profilesModule by id diff --git a/.agents/skills/cli-modules/references/resource-module.md b/.agents/skills/cli-modules/references/resource-module.md index 2acbe1908d..81d9d8fe57 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 [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--resourcesTableId ] [--resourceEventsTableId ] [--resourcesTableName ] [--resourceEventsTableName ] [--apiName ] [--privateApiName ] [--scope ] [--prefix ] [--entityTableId ] [--namespaceModuleId ] [--policies ] [--provisions ] [--defaultPermissions ] -csdk resource-module update --id [--databaseId ] [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--resourcesTableId ] [--resourceEventsTableId ] [--resourcesTableName ] [--resourceEventsTableName ] [--apiName ] [--privateApiName ] [--scope ] [--prefix ] [--entityTableId ] [--namespaceModuleId ] [--policies ] [--provisions ] [--defaultPermissions ] +csdk resource-module create --databaseId [--entityField ] [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--resourcesTableId ] [--resourceEventsTableId ] [--resourceStatusChecksTableId ] [--resourceDefinitionsTableId ] [--resourcesTableName ] [--resourceEventsTableName ] [--resourceStatusChecksTableName ] [--resourceDefinitionsTableName ] [--resolvedRequirementsViewName ] [--requirementsStateViewName ] [--apiName ] [--privateApiName ] [--scope ] [--prefix ] [--entityTableId ] [--namespaceModuleId ] [--policies ] [--provisions ] [--defaultPermissions ] +csdk resource-module update --id [--databaseId ] [--entityField ] [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--resourcesTableId ] [--resourceEventsTableId ] [--resourceStatusChecksTableId ] [--resourceDefinitionsTableId ] [--resourcesTableName ] [--resourceEventsTableName ] [--resourceStatusChecksTableName ] [--resourceDefinitionsTableName ] [--resolvedRequirementsViewName ] [--requirementsStateViewName ] [--apiName ] [--privateApiName ] [--scope ] [--prefix ] [--entityTableId ] [--namespaceModuleId ] [--policies ] [--provisions ] [--defaultPermissions ] 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 [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--resourcesTableId ] [--resourceEventsTableId ] [--resourcesTableName ] [--resourceEventsTableName ] [--apiName ] [--privateApiName ] [--scope ] [--prefix ] [--entityTableId ] [--namespaceModuleId ] [--policies ] [--provisions ] [--defaultPermissions ] +csdk resource-module create --databaseId [--entityField ] [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--resourcesTableId ] [--resourceEventsTableId ] [--resourceStatusChecksTableId ] [--resourceDefinitionsTableId ] [--resourcesTableName ] [--resourceEventsTableName ] [--resourceStatusChecksTableName ] [--resourceDefinitionsTableName ] [--resolvedRequirementsViewName ] [--requirementsStateViewName ] [--apiName ] [--privateApiName ] [--scope ] [--prefix ] [--entityTableId ] [--namespaceModuleId ] [--policies ] [--provisions ] [--defaultPermissions ] ``` ### Get a resourceModule 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 4c037dbd8e..dd523c4be9 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 [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--storageLogTableId ] [--storageLogTableName ] [--usageDailyTableId ] [--usageDailyTableName ] [--interval ] [--retention ] [--premake ] [--scope ] [--actorFkTableId ] [--entityFkTableId ] [--prefix ] [--apiName ] [--privateApiName ] -csdk storage-log-module update --id [--databaseId ] [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--storageLogTableId ] [--storageLogTableName ] [--usageDailyTableId ] [--usageDailyTableName ] [--interval ] [--retention ] [--premake ] [--scope ] [--actorFkTableId ] [--entityFkTableId ] [--prefix ] [--apiName ] [--privateApiName ] +csdk storage-log-module create --databaseId [--entityField ] [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--storageLogTableId ] [--storageLogTableName ] [--usageDailyTableId ] [--usageDailyTableName ] [--interval ] [--retention ] [--premake ] [--scope ] [--actorFkTableId ] [--entityFkTableId ] [--prefix ] [--apiName ] [--privateApiName ] +csdk storage-log-module update --id [--databaseId ] [--entityField ] [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--storageLogTableId ] [--storageLogTableName ] [--usageDailyTableId ] [--usageDailyTableName ] [--interval ] [--retention ] [--premake ] [--scope ] [--actorFkTableId ] [--entityFkTableId ] [--prefix ] [--apiName ] [--privateApiName ] 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 [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--storageLogTableId ] [--storageLogTableName ] [--usageDailyTableId ] [--usageDailyTableName ] [--interval ] [--retention ] [--premake ] [--scope ] [--actorFkTableId ] [--entityFkTableId ] [--prefix ] [--apiName ] [--privateApiName ] +csdk storage-log-module create --databaseId [--entityField ] [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--storageLogTableId ] [--storageLogTableName ] [--usageDailyTableId ] [--usageDailyTableName ] [--interval ] [--retention ] [--premake ] [--scope ] [--actorFkTableId ] [--entityFkTableId ] [--prefix ] [--apiName ] [--privateApiName ] ``` ### 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 1441fe2646..0b6bcafd72 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 [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--bucketsTableId ] [--filesTableId ] [--bucketsTableName ] [--filesTableName ] [--scope ] [--prefix ] [--policies ] [--provisions ] [--entityTableId ] [--endpoint ] [--publicUrlPrefix ] [--provider ] [--allowedOrigins ] [--restrictReads ] [--hasPathShares ] [--pathSharesTableId ] [--uploadUrlExpirySeconds ] [--downloadUrlExpirySeconds ] [--defaultMaxFileSize ] [--maxFilenameLength ] [--cacheTtlSeconds ] [--maxBulkFiles ] [--maxBulkTotalSize ] [--hasVersioning ] [--hasContentHash ] [--hasCustomKeys ] [--hasAuditLog ] [--hasConfirmUpload ] [--confirmUploadDelay ] [--fileEventsTableId ] [--defaultPermissions ] [--apiName ] [--privateApiName ] -csdk storage-module update --id [--databaseId ] [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--bucketsTableId ] [--filesTableId ] [--bucketsTableName ] [--filesTableName ] [--scope ] [--prefix ] [--policies ] [--provisions ] [--entityTableId ] [--endpoint ] [--publicUrlPrefix ] [--provider ] [--allowedOrigins ] [--restrictReads ] [--hasPathShares ] [--pathSharesTableId ] [--uploadUrlExpirySeconds ] [--downloadUrlExpirySeconds ] [--defaultMaxFileSize ] [--maxFilenameLength ] [--cacheTtlSeconds ] [--maxBulkFiles ] [--maxBulkTotalSize ] [--hasVersioning ] [--hasContentHash ] [--hasCustomKeys ] [--hasAuditLog ] [--hasConfirmUpload ] [--confirmUploadDelay ] [--fileEventsTableId ] [--defaultPermissions ] [--apiName ] [--privateApiName ] +csdk storage-module create --databaseId [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--bucketsTableId ] [--filesTableId ] [--bucketsTableName ] [--filesTableName ] [--scope ] [--prefix ] [--policies ] [--provisions ] [--entityTableId ] [--entityField ] [--endpoint ] [--publicUrlPrefix ] [--provider ] [--allowedOrigins ] [--restrictReads ] [--hasPathShares ] [--pathSharesTableId ] [--uploadUrlExpirySeconds ] [--downloadUrlExpirySeconds ] [--defaultMaxFileSize ] [--maxFilenameLength ] [--cacheTtlSeconds ] [--maxBulkFiles ] [--maxBulkTotalSize ] [--hasVersioning ] [--hasContentHash ] [--hasCustomKeys ] [--hasAuditLog ] [--hasConfirmUpload ] [--confirmUploadDelay ] [--fileEventsTableId ] [--defaultPermissions ] [--apiName ] [--privateApiName ] +csdk storage-module update --id [--databaseId ] [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--bucketsTableId ] [--filesTableId ] [--bucketsTableName ] [--filesTableName ] [--scope ] [--prefix ] [--policies ] [--provisions ] [--entityTableId ] [--entityField ] [--endpoint ] [--publicUrlPrefix ] [--provider ] [--allowedOrigins ] [--restrictReads ] [--hasPathShares ] [--pathSharesTableId ] [--uploadUrlExpirySeconds ] [--downloadUrlExpirySeconds ] [--defaultMaxFileSize ] [--maxFilenameLength ] [--cacheTtlSeconds ] [--maxBulkFiles ] [--maxBulkTotalSize ] [--hasVersioning ] [--hasContentHash ] [--hasCustomKeys ] [--hasAuditLog ] [--hasConfirmUpload ] [--confirmUploadDelay ] [--fileEventsTableId ] [--defaultPermissions ] [--apiName ] [--privateApiName ] csdk storage-module delete --id ``` @@ -58,7 +58,7 @@ csdk storage-module list --where.id.equalTo --orderBy ID_ASC ### Create a storageModule ```bash -csdk storage-module create --databaseId [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--bucketsTableId ] [--filesTableId ] [--bucketsTableName ] [--filesTableName ] [--scope ] [--prefix ] [--policies ] [--provisions ] [--entityTableId ] [--endpoint ] [--publicUrlPrefix ] [--provider ] [--allowedOrigins ] [--restrictReads ] [--hasPathShares ] [--pathSharesTableId ] [--uploadUrlExpirySeconds ] [--downloadUrlExpirySeconds ] [--defaultMaxFileSize ] [--maxFilenameLength ] [--cacheTtlSeconds ] [--maxBulkFiles ] [--maxBulkTotalSize ] [--hasVersioning ] [--hasContentHash ] [--hasCustomKeys ] [--hasAuditLog ] [--hasConfirmUpload ] [--confirmUploadDelay ] [--fileEventsTableId ] [--defaultPermissions ] [--apiName ] [--privateApiName ] +csdk storage-module create --databaseId [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--bucketsTableId ] [--filesTableId ] [--bucketsTableName ] [--filesTableName ] [--scope ] [--prefix ] [--policies ] [--provisions ] [--entityTableId ] [--entityField ] [--endpoint ] [--publicUrlPrefix ] [--provider ] [--allowedOrigins ] [--restrictReads ] [--hasPathShares ] [--pathSharesTableId ] [--uploadUrlExpirySeconds ] [--downloadUrlExpirySeconds ] [--defaultMaxFileSize ] [--maxFilenameLength ] [--cacheTtlSeconds ] [--maxBulkFiles ] [--maxBulkTotalSize ] [--hasVersioning ] [--hasContentHash ] [--hasCustomKeys ] [--hasAuditLog ] [--hasConfirmUpload ] [--confirmUploadDelay ] [--fileEventsTableId ] [--defaultPermissions ] [--apiName ] [--privateApiName ] ``` ### 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 ce61325050..0add60e815 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 [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--transferLogTableId ] [--transferLogTableName ] [--usageDailyTableId ] [--usageDailyTableName ] [--interval ] [--retention ] [--premake ] [--scope ] [--actorFkTableId ] [--entityFkTableId ] [--prefix ] [--apiName ] [--privateApiName ] -csdk transfer-log-module update --id [--databaseId ] [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--transferLogTableId ] [--transferLogTableName ] [--usageDailyTableId ] [--usageDailyTableName ] [--interval ] [--retention ] [--premake ] [--scope ] [--actorFkTableId ] [--entityFkTableId ] [--prefix ] [--apiName ] [--privateApiName ] +csdk transfer-log-module create --databaseId [--entityField ] [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--transferLogTableId ] [--transferLogTableName ] [--usageDailyTableId ] [--usageDailyTableName ] [--interval ] [--retention ] [--premake ] [--scope ] [--actorFkTableId ] [--entityFkTableId ] [--prefix ] [--apiName ] [--privateApiName ] +csdk transfer-log-module update --id [--databaseId ] [--entityField ] [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--transferLogTableId ] [--transferLogTableName ] [--usageDailyTableId ] [--usageDailyTableName ] [--interval ] [--retention ] [--premake ] [--scope ] [--actorFkTableId ] [--entityFkTableId ] [--prefix ] [--apiName ] [--privateApiName ] 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 [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--transferLogTableId ] [--transferLogTableName ] [--usageDailyTableId ] [--usageDailyTableName ] [--interval ] [--retention ] [--premake ] [--scope ] [--actorFkTableId ] [--entityFkTableId ] [--prefix ] [--apiName ] [--privateApiName ] +csdk transfer-log-module create --databaseId [--entityField ] [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--transferLogTableId ] [--transferLogTableName ] [--usageDailyTableId ] [--usageDailyTableName ] [--interval ] [--retention ] [--premake ] [--scope ] [--actorFkTableId ] [--entityFkTableId ] [--prefix ] [--apiName ] [--privateApiName ] ``` ### Get a transferLogModule by id diff --git a/.agents/skills/cli-modules/references/user-credentials-module.md b/.agents/skills/cli-modules/references/user-credentials-module.md index 0602648363..3a1bb86eae 100644 --- a/.agents/skills/cli-modules/references/user-credentials-module.md +++ b/.agents/skills/cli-modules/references/user-credentials-module.md @@ -12,8 +12,8 @@ csdk user-credentials-module list --where.. --orderBy csdk user-credentials-module find-first --where.. csdk user-credentials-module get --id -csdk user-credentials-module create --databaseId [--schemaId ] [--tableId ] [--tableName ] [--apiName ] [--privateApiName ] -csdk user-credentials-module update --id [--databaseId ] [--schemaId ] [--tableId ] [--tableName ] [--apiName ] [--privateApiName ] +csdk user-credentials-module create --databaseId [--entityField ] [--schemaId ] [--tableId ] [--tableName ] [--privateApiName ] +csdk user-credentials-module update --id [--databaseId ] [--entityField ] [--schemaId ] [--tableId ] [--tableName ] [--privateApiName ] csdk user-credentials-module delete --id ``` @@ -58,7 +58,7 @@ csdk user-credentials-module list --where.id.equalTo --orderBy ID_ASC ### Create a userCredentialsModule ```bash -csdk user-credentials-module create --databaseId [--schemaId ] [--tableId ] [--tableName ] [--apiName ] [--privateApiName ] +csdk user-credentials-module create --databaseId [--entityField ] [--schemaId ] [--tableId ] [--tableName ] [--privateApiName ] ``` ### Get a userCredentialsModule by id diff --git a/.agents/skills/cli-modules/references/user-state-module.md b/.agents/skills/cli-modules/references/user-state-module.md index 325431eb21..972d05471f 100644 --- a/.agents/skills/cli-modules/references/user-state-module.md +++ b/.agents/skills/cli-modules/references/user-state-module.md @@ -12,8 +12,8 @@ csdk user-state-module list --where.. --orderBy csdk user-state-module list --limit 10 --after csdk user-state-module find-first --where.. csdk user-state-module get --id -csdk user-state-module create --databaseId [--schemaId ] [--tableId ] [--tableName ] -csdk user-state-module update --id [--databaseId ] [--schemaId ] [--tableId ] [--tableName ] +csdk user-state-module create --databaseId [--entityField ] [--schemaId ] [--tableId ] [--tableName ] +csdk user-state-module update --id [--databaseId ] [--entityField ] [--schemaId ] [--tableId ] [--tableName ] csdk user-state-module delete --id ``` @@ -58,7 +58,7 @@ csdk user-state-module list --where.id.equalTo --orderBy ID_ASC ### Create a userStateModule ```bash -csdk user-state-module create --databaseId [--schemaId ] [--tableId ] [--tableName ] +csdk user-state-module create --databaseId [--entityField ] [--schemaId ] [--tableId ] [--tableName ] ``` ### Get a userStateModule by id diff --git a/.agents/skills/hooks-agent/references/agent-message.md b/.agents/skills/hooks-agent/references/agent-message.md index 7bc764a653..7089c3a6a3 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: { id: true, createdAt: true, updatedAt: true, actorId: true, parts: true, threadId: true, authorRole: true, model: true, agentId: true } } }) -useAgentMessageQuery({ id: '', selection: { fields: { id: true, createdAt: true, updatedAt: true, actorId: true, parts: true, threadId: true, authorRole: true, model: true, agentId: true } } }) +useAgentMessagesQuery({ selection: { fields: { id: true, createdAt: true, updatedAt: true, actorId: true, parts: true, threadId: true, databaseId: true, authorRole: true, model: true, agentId: true } } }) +useAgentMessageQuery({ id: '', selection: { fields: { id: true, createdAt: true, updatedAt: true, actorId: true, parts: true, threadId: true, databaseId: true, authorRole: true, model: true, agentId: true } } }) useCreateAgentMessageMutation({ selection: { fields: { id: true } } }) useUpdateAgentMessageMutation({ selection: { fields: { id: true } } }) useDeleteAgentMessageMutation({}) @@ -20,7 +20,7 @@ useDeleteAgentMessageMutation({}) ```typescript const { data, isLoading } = useAgentMessagesQuery({ - selection: { fields: { id: true, createdAt: true, updatedAt: true, actorId: true, parts: true, threadId: true, authorRole: true, model: true, agentId: true } }, + selection: { fields: { id: true, createdAt: true, updatedAt: true, actorId: true, parts: true, threadId: true, databaseId: true, authorRole: true, model: true, agentId: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useAgentMessagesQuery({ const { mutate } = useCreateAgentMessageMutation({ selection: { fields: { id: true } }, }); -mutate({ actorId: '', parts: '', threadId: '', authorRole: '', model: '', agentId: '' }); +mutate({ actorId: '', parts: '', threadId: '', databaseId: '', authorRole: '', model: '', agentId: '' }); ``` diff --git a/.agents/skills/hooks-agent/references/agent-persona.md b/.agents/skills/hooks-agent/references/agent-persona.md index dc148a70a2..416b92c97a 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: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, slug: true, name: true, description: true, systemPrompt: true, resources: true, config: true, isActive: true } } }) -useAgentPersonaQuery({ id: '', selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, slug: true, name: true, description: true, systemPrompt: true, resources: true, config: true, isActive: true } } }) +useAgentPersonasQuery({ selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, databaseId: true, slug: true, name: true, description: true, systemPrompt: true, resources: true, config: true, isActive: true } } }) +useAgentPersonaQuery({ id: '', selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, databaseId: true, slug: true, name: true, description: true, systemPrompt: true, resources: true, config: true, isActive: true } } }) useCreateAgentPersonaMutation({ selection: { fields: { id: true } } }) useUpdateAgentPersonaMutation({ selection: { fields: { id: true } } }) useDeleteAgentPersonaMutation({}) @@ -20,7 +20,7 @@ useDeleteAgentPersonaMutation({}) ```typescript const { data, isLoading } = useAgentPersonasQuery({ - selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, slug: true, name: true, description: true, systemPrompt: true, resources: true, config: true, isActive: true } }, + selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, databaseId: true, slug: true, name: true, description: true, systemPrompt: true, resources: true, config: true, isActive: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useAgentPersonasQuery({ const { mutate } = useCreateAgentPersonaMutation({ selection: { fields: { id: true } }, }); -mutate({ createdBy: '', updatedBy: '', slug: '', name: '', description: '', systemPrompt: '', resources: '', config: '', isActive: '' }); +mutate({ createdBy: '', updatedBy: '', databaseId: '', slug: '', name: '', description: '', systemPrompt: '', resources: '', config: '', isActive: '' }); ``` diff --git a/.agents/skills/hooks-agent/references/agent-plan.md b/.agents/skills/hooks-agent/references/agent-plan.md index 50d71d4cf0..8ceeaeab0f 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: { id: true, createdAt: true, updatedAt: true, ownerId: true, threadId: true, title: true, description: true, status: true } } }) -useAgentPlanQuery({ id: '', selection: { fields: { id: true, createdAt: true, updatedAt: true, ownerId: true, threadId: true, title: true, description: true, status: true } } }) +useAgentPlansQuery({ selection: { fields: { id: true, createdAt: true, updatedAt: true, ownerId: true, threadId: true, databaseId: true, title: true, description: true, status: true } } }) +useAgentPlanQuery({ id: '', selection: { fields: { id: true, createdAt: true, updatedAt: true, ownerId: true, threadId: true, databaseId: true, title: true, description: true, status: true } } }) useCreateAgentPlanMutation({ selection: { fields: { id: true } } }) useUpdateAgentPlanMutation({ selection: { fields: { id: true } } }) useDeleteAgentPlanMutation({}) @@ -20,7 +20,7 @@ useDeleteAgentPlanMutation({}) ```typescript const { data, isLoading } = useAgentPlansQuery({ - selection: { fields: { id: true, createdAt: true, updatedAt: true, ownerId: true, threadId: true, title: true, description: true, status: true } }, + selection: { fields: { id: true, createdAt: true, updatedAt: true, ownerId: true, threadId: true, databaseId: true, title: true, description: true, status: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useAgentPlansQuery({ const { mutate } = useCreateAgentPlanMutation({ selection: { fields: { id: true } }, }); -mutate({ ownerId: '', threadId: '', title: '', description: '', status: '' }); +mutate({ ownerId: '', threadId: '', databaseId: '', title: '', description: '', status: '' }); ``` diff --git a/.agents/skills/hooks-agent/references/agent-prompt.md b/.agents/skills/hooks-agent/references/agent-prompt.md index 6933c2368a..7f295e6bf2 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: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, name: true, content: true, description: true, isDefault: true, metadata: true } } }) -useAgentPromptQuery({ id: '', selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, name: true, content: true, description: true, isDefault: true, metadata: true } } }) +useAgentPromptsQuery({ selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, databaseId: true, name: true, content: true, description: true, isDefault: true, metadata: true } } }) +useAgentPromptQuery({ id: '', selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, databaseId: true, name: true, content: true, description: true, isDefault: true, metadata: true } } }) useCreateAgentPromptMutation({ selection: { fields: { id: true } } }) useUpdateAgentPromptMutation({ selection: { fields: { id: true } } }) useDeleteAgentPromptMutation({}) @@ -20,7 +20,7 @@ useDeleteAgentPromptMutation({}) ```typescript const { data, isLoading } = useAgentPromptsQuery({ - selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, name: true, content: true, description: true, isDefault: true, metadata: true } }, + selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, databaseId: true, name: true, content: true, description: true, isDefault: true, metadata: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useAgentPromptsQuery({ const { mutate } = useCreateAgentPromptMutation({ selection: { fields: { id: true } }, }); -mutate({ createdBy: '', updatedBy: '', name: '', content: '', description: '', isDefault: '', metadata: '' }); +mutate({ createdBy: '', updatedBy: '', databaseId: '', name: '', content: '', description: '', isDefault: '', metadata: '' }); ``` diff --git a/.agents/skills/hooks-agent/references/agent-resource.md b/.agents/skills/hooks-agent/references/agent-resource.md index a81d1a0b7a..d90aa80304 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: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, slug: true, kind: true, title: true, description: true, body: true, keywords: true, isActive: true, metadata: true, isArchived: true, archivedAt: true, search: true, embedding: true, embeddingUpdatedAt: true, searchTsvRank: true, embeddingVectorDistance: true, kindTrgmSimilarity: true, titleTrgmSimilarity: true, descriptionTrgmSimilarity: true, bodyTrgmSimilarity: true, searchScore: true } } }) -useAgentResourceQuery({ id: '', selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, slug: true, kind: true, title: true, description: true, body: true, keywords: true, isActive: true, metadata: true, isArchived: true, archivedAt: true, search: true, embedding: true, embeddingUpdatedAt: true, searchTsvRank: true, embeddingVectorDistance: true, kindTrgmSimilarity: true, titleTrgmSimilarity: true, descriptionTrgmSimilarity: true, bodyTrgmSimilarity: true, searchScore: true } } }) +useAgentResourcesQuery({ selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, databaseId: true, slug: true, kind: true, title: true, description: true, body: true, keywords: true, isActive: true, metadata: true, isArchived: true, archivedAt: true, search: true, embedding: true, embeddingUpdatedAt: true, searchTsvRank: true, embeddingVectorDistance: true, kindTrgmSimilarity: true, titleTrgmSimilarity: true, descriptionTrgmSimilarity: true, bodyTrgmSimilarity: true, searchScore: true } } }) +useAgentResourceQuery({ id: '', selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, databaseId: true, slug: true, kind: true, title: true, description: true, body: true, keywords: true, isActive: true, metadata: true, isArchived: true, archivedAt: true, search: true, embedding: true, embeddingUpdatedAt: true, searchTsvRank: true, embeddingVectorDistance: true, kindTrgmSimilarity: true, titleTrgmSimilarity: true, descriptionTrgmSimilarity: true, bodyTrgmSimilarity: true, searchScore: true } } }) useCreateAgentResourceMutation({ selection: { fields: { id: true } } }) useUpdateAgentResourceMutation({ selection: { fields: { id: true } } }) useDeleteAgentResourceMutation({}) @@ -20,7 +20,7 @@ useDeleteAgentResourceMutation({}) ```typescript const { data, isLoading } = useAgentResourcesQuery({ - selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, slug: true, kind: true, title: true, description: true, body: true, keywords: true, isActive: true, metadata: true, isArchived: true, archivedAt: true, search: true, embedding: true, embeddingUpdatedAt: true, searchTsvRank: true, embeddingVectorDistance: true, kindTrgmSimilarity: true, titleTrgmSimilarity: true, descriptionTrgmSimilarity: true, bodyTrgmSimilarity: true, searchScore: true } }, + selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, databaseId: true, slug: true, kind: true, title: true, description: true, body: true, keywords: true, isActive: true, metadata: true, isArchived: true, archivedAt: true, search: true, embedding: true, embeddingUpdatedAt: true, searchTsvRank: true, embeddingVectorDistance: true, kindTrgmSimilarity: true, titleTrgmSimilarity: true, descriptionTrgmSimilarity: true, bodyTrgmSimilarity: true, searchScore: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useAgentResourcesQuery({ const { mutate } = useCreateAgentResourceMutation({ selection: { fields: { id: true } }, }); -mutate({ createdBy: '', updatedBy: '', slug: '', kind: '', title: '', description: '', body: '', keywords: '', isActive: '', metadata: '', isArchived: '', archivedAt: '', search: '', embedding: '', embeddingUpdatedAt: '', searchTsvRank: '', embeddingVectorDistance: '', kindTrgmSimilarity: '', titleTrgmSimilarity: '', descriptionTrgmSimilarity: '', bodyTrgmSimilarity: '', searchScore: '' }); +mutate({ createdBy: '', updatedBy: '', databaseId: '', slug: '', kind: '', title: '', description: '', body: '', keywords: '', isActive: '', metadata: '', isArchived: '', archivedAt: '', search: '', embedding: '', embeddingUpdatedAt: '', searchTsvRank: '', embeddingVectorDistance: '', kindTrgmSimilarity: '', titleTrgmSimilarity: '', descriptionTrgmSimilarity: '', bodyTrgmSimilarity: '', searchScore: '' }); ``` diff --git a/.agents/skills/hooks-agent/references/agent-task.md b/.agents/skills/hooks-agent/references/agent-task.md index 72763d673d..e218a258e9 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: { id: true, createdAt: true, updatedAt: true, actorId: true, status: true, planId: true, description: true, source: true, error: true, orderIndex: true, requiresApproval: true, approvalStatus: true, approvedBy: true, approvedAt: true, approvalFeedback: true } } }) -useAgentTaskQuery({ id: '', selection: { fields: { id: true, createdAt: true, updatedAt: true, actorId: true, status: true, planId: true, description: true, source: true, error: true, orderIndex: true, requiresApproval: true, approvalStatus: true, approvedBy: true, approvedAt: true, approvalFeedback: true } } }) +useAgentTasksQuery({ selection: { fields: { id: true, createdAt: true, updatedAt: true, actorId: true, status: true, planId: true, databaseId: true, description: true, source: true, error: true, orderIndex: true, requiresApproval: true, approvalStatus: true, approvedBy: true, approvedAt: true, approvalFeedback: true } } }) +useAgentTaskQuery({ id: '', selection: { fields: { id: true, createdAt: true, updatedAt: true, actorId: true, status: true, planId: true, databaseId: true, description: true, source: true, error: true, orderIndex: true, requiresApproval: true, approvalStatus: true, approvedBy: true, approvedAt: true, approvalFeedback: true } } }) useCreateAgentTaskMutation({ selection: { fields: { id: true } } }) useUpdateAgentTaskMutation({ selection: { fields: { id: true } } }) useDeleteAgentTaskMutation({}) @@ -20,7 +20,7 @@ useDeleteAgentTaskMutation({}) ```typescript const { data, isLoading } = useAgentTasksQuery({ - selection: { fields: { id: true, createdAt: true, updatedAt: true, actorId: true, status: true, planId: true, description: true, source: true, error: true, orderIndex: true, requiresApproval: true, approvalStatus: true, approvedBy: true, approvedAt: true, approvalFeedback: true } }, + selection: { fields: { id: true, createdAt: true, updatedAt: true, actorId: true, status: true, planId: true, databaseId: true, description: true, source: true, error: true, orderIndex: true, requiresApproval: true, approvalStatus: true, approvedBy: true, approvedAt: true, approvalFeedback: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useAgentTasksQuery({ const { mutate } = useCreateAgentTaskMutation({ selection: { fields: { id: true } }, }); -mutate({ actorId: '', status: '', planId: '', description: '', source: '', error: '', orderIndex: '', requiresApproval: '', approvalStatus: '', approvedBy: '', approvedAt: '', approvalFeedback: '' }); +mutate({ actorId: '', status: '', planId: '', databaseId: '', description: '', source: '', error: '', orderIndex: '', requiresApproval: '', approvalStatus: '', approvedBy: '', approvedAt: '', approvalFeedback: '' }); ``` diff --git a/.agents/skills/hooks-agent/references/agent-thread.md b/.agents/skills/hooks-agent/references/agent-thread.md index 876dd1ccfb..281c229e63 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: { id: true, createdAt: true, updatedAt: true, ownerId: true, status: true, isArchived: true, archivedAt: true, title: true, mode: true, model: true, systemPrompt: true, tags: true, promptTemplateId: true, agentId: true, parentThreadId: true } } }) -useAgentThreadQuery({ id: '', selection: { fields: { id: true, createdAt: true, updatedAt: true, ownerId: true, status: true, isArchived: true, archivedAt: true, title: true, mode: true, model: true, systemPrompt: true, tags: true, promptTemplateId: true, agentId: true, parentThreadId: true } } }) +useAgentThreadsQuery({ selection: { fields: { id: true, createdAt: true, updatedAt: true, ownerId: true, databaseId: true, status: true, isArchived: true, archivedAt: true, title: true, mode: true, model: true, systemPrompt: true, tags: true, promptTemplateId: true, agentId: true, parentThreadId: true } } }) +useAgentThreadQuery({ id: '', selection: { fields: { id: true, createdAt: true, updatedAt: true, ownerId: true, databaseId: true, status: true, isArchived: true, archivedAt: true, title: true, mode: true, model: true, systemPrompt: true, tags: true, promptTemplateId: true, agentId: true, parentThreadId: true } } }) useCreateAgentThreadMutation({ selection: { fields: { id: true } } }) useUpdateAgentThreadMutation({ selection: { fields: { id: true } } }) useDeleteAgentThreadMutation({}) @@ -20,7 +20,7 @@ useDeleteAgentThreadMutation({}) ```typescript const { data, isLoading } = useAgentThreadsQuery({ - selection: { fields: { id: true, createdAt: true, updatedAt: true, ownerId: true, status: true, isArchived: true, archivedAt: true, title: true, mode: true, model: true, systemPrompt: true, tags: true, promptTemplateId: true, agentId: true, parentThreadId: true } }, + selection: { fields: { id: true, createdAt: true, updatedAt: true, ownerId: true, databaseId: true, status: true, isArchived: true, archivedAt: true, title: true, mode: true, model: true, systemPrompt: true, tags: true, promptTemplateId: true, agentId: true, parentThreadId: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useAgentThreadsQuery({ const { mutate } = useCreateAgentThreadMutation({ selection: { fields: { id: true } }, }); -mutate({ ownerId: '', status: '', isArchived: '', archivedAt: '', title: '', mode: '', model: '', systemPrompt: '', tags: '', promptTemplateId: '', agentId: '', parentThreadId: '' }); +mutate({ ownerId: '', databaseId: '', status: '', isArchived: '', archivedAt: '', title: '', mode: '', model: '', systemPrompt: '', tags: '', promptTemplateId: '', agentId: '', parentThreadId: '' }); ``` diff --git a/.agents/skills/hooks-agent/references/agent.md b/.agents/skills/hooks-agent/references/agent.md index 311d7303c0..24ba28b799 100644 --- a/.agents/skills/hooks-agent/references/agent.md +++ b/.agents/skills/hooks-agent/references/agent.md @@ -7,8 +7,8 @@ Agent instance registry (human-managed or ephemeral sub-agents) ## Usage ```typescript -useAgentsQuery({ selection: { fields: { id: true, createdAt: true, updatedAt: true, ownerId: true, personaId: true, parentId: true, name: true, systemPrompt: true, config: true, status: true, isEphemeral: true } } }) -useAgentQuery({ id: '', selection: { fields: { id: true, createdAt: true, updatedAt: true, ownerId: true, personaId: true, parentId: true, name: true, systemPrompt: true, config: true, status: true, isEphemeral: true } } }) +useAgentsQuery({ selection: { fields: { id: true, createdAt: true, updatedAt: true, ownerId: true, databaseId: true, personaId: true, parentId: true, name: true, systemPrompt: true, config: true, status: true, isEphemeral: true } } }) +useAgentQuery({ id: '', selection: { fields: { id: true, createdAt: true, updatedAt: true, ownerId: true, databaseId: true, personaId: true, parentId: true, name: true, systemPrompt: true, config: true, status: true, isEphemeral: true } } }) useCreateAgentMutation({ selection: { fields: { id: true } } }) useUpdateAgentMutation({ selection: { fields: { id: true } } }) useDeleteAgentMutation({}) @@ -20,7 +20,7 @@ useDeleteAgentMutation({}) ```typescript const { data, isLoading } = useAgentsQuery({ - selection: { fields: { id: true, createdAt: true, updatedAt: true, ownerId: true, personaId: true, parentId: true, name: true, systemPrompt: true, config: true, status: true, isEphemeral: true } }, + selection: { fields: { id: true, createdAt: true, updatedAt: true, ownerId: true, databaseId: true, personaId: true, parentId: true, name: true, systemPrompt: true, config: true, status: true, isEphemeral: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useAgentsQuery({ const { mutate } = useCreateAgentMutation({ selection: { fields: { id: true } }, }); -mutate({ ownerId: '', personaId: '', parentId: '', name: '', systemPrompt: '', config: '', status: '', isEphemeral: '' }); +mutate({ ownerId: '', databaseId: '', personaId: '', parentId: '', name: '', systemPrompt: '', config: '', status: '', isEphemeral: '' }); ``` diff --git a/.agents/skills/hooks-api/SKILL.md b/.agents/skills/hooks-api/SKILL.md index c6a9c147bb..7cde64e228 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 46 tables and 10 custom operations +description: React Query hooks for the api API — provides typed query and mutation hooks for 46 tables and 8 custom operations --- # hooks-api -React Query hooks for the api API — provides typed query and mutation hooks for 46 tables and 10 custom operations +React Query hooks for the api API — provides typed query and mutation hooks for 46 tables and 8 custom operations ## Usage @@ -82,15 +82,13 @@ See the `references/` directory for detailed per-entity API documentation: - [rls-setting](references/rls-setting.md) - [sql-action](references/sql-action.md) - [database-setting](references/database-setting.md) -- [webauthn-setting](references/webauthn-setting.md) - [ast-migration](references/ast-migration.md) +- [webauthn-setting](references/webauthn-setting.md) - [apply-registry-defaults](references/apply-registry-defaults.md) - [accept-database-transfer](references/accept-database-transfer.md) - [cancel-database-transfer](references/cancel-database-transfer.md) - [reject-database-transfer](references/reject-database-transfer.md) -- [provision-database-with-user](references/provision-database-with-user.md) -- [bootstrap-user](references/bootstrap-user.md) - [set-field-order](references/set-field-order.md) - [apply-rls](references/apply-rls.md) -- [create-user-database](references/create-user-database.md) +- [request-database](references/request-database.md) - [provision-bucket](references/provision-bucket.md) diff --git a/.agents/skills/hooks-api/references/database.md b/.agents/skills/hooks-api/references/database.md index 5bc69199a6..a32fee8a6d 100644 --- a/.agents/skills/hooks-api/references/database.md +++ b/.agents/skills/hooks-api/references/database.md @@ -7,8 +7,8 @@ React Query hooks for Database data operations ## Usage ```typescript -useDatabasesQuery({ selection: { fields: { id: true, ownerId: true, schemaHash: true, name: true, label: true, hash: true, createdAt: true, updatedAt: true } } }) -useDatabaseQuery({ id: '', selection: { fields: { id: true, ownerId: true, schemaHash: true, name: true, label: true, hash: true, createdAt: true, updatedAt: true } } }) +useDatabasesQuery({ selection: { fields: { id: true, ownerId: true, schemaHash: true, name: true, label: true, hash: true, platform: true, createdAt: true, updatedAt: true } } }) +useDatabaseQuery({ id: '', selection: { fields: { id: true, ownerId: true, schemaHash: true, name: true, label: true, hash: true, platform: true, createdAt: true, updatedAt: true } } }) useCreateDatabaseMutation({ selection: { fields: { id: true } } }) useUpdateDatabaseMutation({ selection: { fields: { id: true } } }) useDeleteDatabaseMutation({}) @@ -20,7 +20,7 @@ useDeleteDatabaseMutation({}) ```typescript const { data, isLoading } = useDatabasesQuery({ - selection: { fields: { id: true, ownerId: true, schemaHash: true, name: true, label: true, hash: true, createdAt: true, updatedAt: true } }, + selection: { fields: { id: true, ownerId: true, schemaHash: true, name: true, label: true, hash: true, platform: true, createdAt: true, updatedAt: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useDatabasesQuery({ const { mutate } = useCreateDatabaseMutation({ selection: { fields: { id: true } }, }); -mutate({ ownerId: '', schemaHash: '', name: '', label: '', hash: '' }); +mutate({ ownerId: '', schemaHash: '', name: '', label: '', hash: '', platform: '' }); ``` diff --git a/.agents/skills/hooks-api/references/field.md b/.agents/skills/hooks-api/references/field.md index 1027b5a7b5..1ed5c6bed4 100644 --- a/.agents/skills/hooks-api/references/field.md +++ b/.agents/skills/hooks-api/references/field.md @@ -7,8 +7,8 @@ React Query hooks for Field data operations ## Usage ```typescript -useFieldsQuery({ selection: { fields: { id: true, databaseId: true, tableId: true, name: true, label: true, description: true, smartTags: true, isRequired: true, apiRequired: true, defaultValue: true, type: true, fieldOrder: true, regexp: true, chk: true, chkExpr: true, min: true, max: true, tags: true, category: true, createdAt: true, updatedAt: true } } }) -useFieldQuery({ id: '', selection: { fields: { id: true, databaseId: true, tableId: true, name: true, label: true, description: true, smartTags: true, isRequired: true, apiRequired: true, defaultValue: true, type: true, fieldOrder: true, regexp: true, chk: true, chkExpr: true, min: true, max: true, tags: true, category: true, createdAt: true, updatedAt: true } } }) +useFieldsQuery({ selection: { fields: { id: true, databaseId: true, tableId: true, name: true, label: true, description: true, smartTags: true, isRequired: true, apiRequired: true, defaultValue: true, generationExpression: true, generationType: true, type: true, fieldOrder: true, regexp: true, chk: true, chkExpr: true, min: true, max: true, tags: true, category: true, createdAt: true, updatedAt: true } } }) +useFieldQuery({ id: '', selection: { fields: { id: true, databaseId: true, tableId: true, name: true, label: true, description: true, smartTags: true, isRequired: true, apiRequired: true, defaultValue: true, generationExpression: true, generationType: true, type: true, fieldOrder: true, regexp: true, chk: true, chkExpr: true, min: true, max: true, tags: true, category: true, createdAt: true, updatedAt: true } } }) useCreateFieldMutation({ selection: { fields: { id: true } } }) useUpdateFieldMutation({ selection: { fields: { id: true } } }) useDeleteFieldMutation({}) @@ -20,7 +20,7 @@ useDeleteFieldMutation({}) ```typescript const { data, isLoading } = useFieldsQuery({ - selection: { fields: { id: true, databaseId: true, tableId: true, name: true, label: true, description: true, smartTags: true, isRequired: true, apiRequired: true, defaultValue: true, type: true, fieldOrder: true, regexp: true, chk: true, chkExpr: true, min: true, max: true, tags: true, category: true, createdAt: true, updatedAt: true } }, + selection: { fields: { id: true, databaseId: true, tableId: true, name: true, label: true, description: true, smartTags: true, isRequired: true, apiRequired: true, defaultValue: true, generationExpression: true, generationType: true, type: true, fieldOrder: true, regexp: true, chk: true, chkExpr: true, min: true, max: true, tags: true, category: true, createdAt: true, updatedAt: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useFieldsQuery({ const { mutate } = useCreateFieldMutation({ selection: { fields: { id: true } }, }); -mutate({ databaseId: '', tableId: '', name: '', label: '', description: '', smartTags: '', isRequired: '', apiRequired: '', defaultValue: '', type: '', fieldOrder: '', regexp: '', chk: '', chkExpr: '', min: '', max: '', tags: '', category: '' }); +mutate({ databaseId: '', tableId: '', name: '', label: '', description: '', smartTags: '', isRequired: '', apiRequired: '', defaultValue: '', generationExpression: '', generationType: '', type: '', fieldOrder: '', regexp: '', chk: '', chkExpr: '', min: '', max: '', tags: '', category: '' }); ``` diff --git a/.agents/skills/hooks-api/references/policy.md b/.agents/skills/hooks-api/references/policy.md index 49a2703319..5d9e48a9b4 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: { id: true, databaseId: true, tableId: true, name: true, granteeName: true, privilege: true, permissive: true, disabled: true, policyType: true, data: true, smartTags: true, category: true, tags: true, createdAt: true, updatedAt: true } } }) -usePolicyQuery({ id: '', selection: { fields: { id: true, databaseId: true, tableId: true, name: true, granteeName: true, privilege: true, permissive: true, disabled: true, policyType: true, data: true, smartTags: true, category: true, tags: true, createdAt: true, updatedAt: true } } }) +usePoliciesQuery({ selection: { fields: { id: true, databaseId: true, tableId: true, name: true, granteeName: true, privilege: true, permissive: true, disabled: true, policyType: true, data: true, withCheck: true, smartTags: true, category: true, tags: true, createdAt: true, updatedAt: true } } }) +usePolicyQuery({ id: '', selection: { fields: { id: true, databaseId: true, tableId: true, name: true, granteeName: true, privilege: true, permissive: true, disabled: true, policyType: true, data: true, withCheck: true, smartTags: true, category: true, tags: true, createdAt: true, updatedAt: true } } }) useCreatePolicyMutation({ selection: { fields: { id: true } } }) useUpdatePolicyMutation({ selection: { fields: { id: true } } }) useDeletePolicyMutation({}) @@ -20,7 +20,7 @@ useDeletePolicyMutation({}) ```typescript const { data, isLoading } = usePoliciesQuery({ - selection: { fields: { id: true, databaseId: true, tableId: true, name: true, granteeName: true, privilege: true, permissive: true, disabled: true, policyType: true, data: true, smartTags: true, category: true, tags: true, createdAt: true, updatedAt: true } }, + selection: { fields: { id: true, databaseId: true, tableId: true, name: true, granteeName: true, privilege: true, permissive: true, disabled: true, policyType: true, data: true, withCheck: true, smartTags: true, category: true, tags: true, createdAt: true, updatedAt: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = usePoliciesQuery({ const { mutate } = useCreatePolicyMutation({ selection: { fields: { id: true } }, }); -mutate({ databaseId: '', tableId: '', name: '', granteeName: '', privilege: '', permissive: '', disabled: '', policyType: '', data: '', smartTags: '', category: '', tags: '' }); +mutate({ databaseId: '', tableId: '', name: '', granteeName: '', privilege: '', permissive: '', disabled: '', policyType: '', data: '', withCheck: '', smartTags: '', category: '', tags: '' }); ``` diff --git a/.agents/skills/hooks-api/references/request-database.md b/.agents/skills/hooks-api/references/request-database.md new file mode 100644 index 0000000000..b464c30fcf --- /dev/null +++ b/.agents/skills/hooks-api/references/request-database.md @@ -0,0 +1,26 @@ +# requestDatabase + + + +Requests a database and returns a ticket (database_provision_module row) to poll. + +Pass exactly one of preset_slug or modules. The pool, presets, and owner bootstrap are private implementation details: a warm pool hit fulfills the ticket immediately (fulfilled_at set, deferred owner bootstrap), otherwise the database is cold-provisioned with exactly the requested modules. Poll the ticket until status = 'completed'; it then carries database_id and fulfilled_at. + +Example usage: + SELECT * FROM metaschema_public.request_database('my_app', 'example.com', preset_slug := 'full'); + SELECT * FROM metaschema_public.request_database('my_app', 'example.com', modules := '["users_module", "emails_module"]'::jsonb); + +## Usage + +```typescript +const { mutate } = useRequestDatabaseMutation(); mutate({ input: '' }); +``` + +## Examples + +### Use useRequestDatabaseMutation + +```typescript +const { mutate, isLoading } = useRequestDatabaseMutation(); +mutate({ input: '' }); +``` diff --git a/.agents/skills/hooks-api/references/table.md b/.agents/skills/hooks-api/references/table.md index 9cd072d3a2..582eae562c 100644 --- a/.agents/skills/hooks-api/references/table.md +++ b/.agents/skills/hooks-api/references/table.md @@ -7,8 +7,8 @@ React Query hooks for Table data operations ## Usage ```typescript -useTablesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, name: true, label: true, description: true, smartTags: true, category: true, useRls: true, timestamps: true, peoplestamps: true, pluralName: true, singularName: true, tags: true, partitioned: true, partitionStrategy: true, partitionKeyNames: true, partitionKeyTypes: true, createdAt: true, updatedAt: true, inheritsId: true } } }) -useTableQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, name: true, label: true, description: true, smartTags: true, category: true, useRls: true, timestamps: true, peoplestamps: true, pluralName: true, singularName: true, tags: true, partitioned: true, partitionStrategy: true, partitionKeyNames: true, partitionKeyTypes: true, createdAt: true, updatedAt: true, inheritsId: true } } }) +useTablesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, name: true, label: true, description: true, smartTags: true, category: true, useRls: true, timestamps: true, peoplestamps: true, pluralName: true, singularName: true, tags: true, stepUp: true, partitioned: true, partitionStrategy: true, partitionKeyNames: true, partitionKeyTypes: true, createdAt: true, updatedAt: true, inheritsId: true } } }) +useTableQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, name: true, label: true, description: true, smartTags: true, category: true, useRls: true, timestamps: true, peoplestamps: true, pluralName: true, singularName: true, tags: true, stepUp: true, partitioned: true, partitionStrategy: true, partitionKeyNames: true, partitionKeyTypes: true, createdAt: true, updatedAt: true, inheritsId: true } } }) useCreateTableMutation({ selection: { fields: { id: true } } }) useUpdateTableMutation({ selection: { fields: { id: true } } }) useDeleteTableMutation({}) @@ -20,7 +20,7 @@ useDeleteTableMutation({}) ```typescript const { data, isLoading } = useTablesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, name: true, label: true, description: true, smartTags: true, category: true, useRls: true, timestamps: true, peoplestamps: true, pluralName: true, singularName: true, tags: true, partitioned: true, partitionStrategy: true, partitionKeyNames: true, partitionKeyTypes: true, createdAt: true, updatedAt: true, inheritsId: true } }, + selection: { fields: { id: true, databaseId: true, schemaId: true, name: true, label: true, description: true, smartTags: true, category: true, useRls: true, timestamps: true, peoplestamps: true, pluralName: true, singularName: true, tags: true, stepUp: true, partitioned: true, partitionStrategy: true, partitionKeyNames: true, partitionKeyTypes: true, createdAt: true, updatedAt: true, inheritsId: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useTablesQuery({ const { mutate } = useCreateTableMutation({ selection: { fields: { id: true } }, }); -mutate({ databaseId: '', schemaId: '', name: '', label: '', description: '', smartTags: '', category: '', useRls: '', timestamps: '', peoplestamps: '', pluralName: '', singularName: '', tags: '', partitioned: '', partitionStrategy: '', partitionKeyNames: '', partitionKeyTypes: '', inheritsId: '' }); +mutate({ databaseId: '', schemaId: '', name: '', label: '', description: '', smartTags: '', category: '', useRls: '', timestamps: '', peoplestamps: '', pluralName: '', singularName: '', tags: '', stepUp: '', partitioned: '', partitionStrategy: '', partitionKeyNames: '', partitionKeyTypes: '', inheritsId: '' }); ``` diff --git a/.agents/skills/hooks-auth/SKILL.md b/.agents/skills/hooks-auth/SKILL.md index a315fb815b..be3c802421 100644 --- a/.agents/skills/hooks-auth/SKILL.md +++ b/.agents/skills/hooks-auth/SKILL.md @@ -1,13 +1,13 @@ --- name: hooks-auth -description: React Query hooks for the auth API — provides typed query and mutation hooks for 13 tables and 34 custom operations +description: React Query hooks for the auth API — provides typed query and mutation hooks for 13 tables and 35 custom operations --- # hooks-auth -React Query hooks for the auth API — provides typed query and mutation hooks for 13 tables and 34 custom operations +React Query hooks for the auth API — provides typed query and mutation hooks for 13 tables and 35 custom operations ## Usage @@ -60,6 +60,7 @@ See the `references/` directory for detailed per-entity API documentation: - [send-account-deletion-email](references/send-account-deletion-email.md) - [check-password](references/check-password.md) - [delete-org-principal](references/delete-org-principal.md) +- [delete-principal](references/delete-principal.md) - [disconnect-account](references/disconnect-account.md) - [revoke-api-key](references/revoke-api-key.md) - [revoke-session](references/revoke-session.md) @@ -71,13 +72,13 @@ See the `references/` directory for detailed per-entity API documentation: - [verify-email](references/verify-email.md) - [provision-new-user](references/provision-new-user.md) - [reset-password](references/reset-password.md) +- [create-org-principal](references/create-org-principal.md) - [sign-in-cross-origin](references/sign-in-cross-origin.md) - [sign-in-sms-otp](references/sign-in-sms-otp.md) - [sign-up-sms](references/sign-up-sms.md) - [sign-up](references/sign-up.md) - [sign-in](references/sign-in.md) - [link-identity](references/link-identity.md) -- [create-org-principal](references/create-org-principal.md) - [extend-token-expires](references/extend-token-expires.md) - [create-org-api-key](references/create-org-api-key.md) - [create-api-key](references/create-api-key.md) diff --git a/.agents/skills/hooks-auth/references/create-org-principal.md b/.agents/skills/hooks-auth/references/create-org-principal.md index b8ab8fa0d2..328774e4aa 100644 --- a/.agents/skills/hooks-auth/references/create-org-principal.md +++ b/.agents/skills/hooks-auth/references/create-org-principal.md @@ -7,7 +7,7 @@ React Query mutation hook for createOrgPrincipal ## Usage ```typescript -const { mutate } = useCreateOrgPrincipalMutation(); mutate({ input: { name: '', orgId: '', allowedMask: '', isReadOnly: '', bypassStepUp: '' } }); +const { mutate } = useCreateOrgPrincipalMutation(); mutate({ input: { name: '', orgId: '', useAdminOwner: '', isReadOnly: '', bypassStepUp: '' } }); ``` ## Examples @@ -16,5 +16,5 @@ const { mutate } = useCreateOrgPrincipalMutation(); mutate({ input: { name: '', orgId: '', allowedMask: '', isReadOnly: '', bypassStepUp: '' } }); +mutate({ input: { name: '', orgId: '', useAdminOwner: '', isReadOnly: '', bypassStepUp: '' } }); ``` diff --git a/.agents/skills/hooks-auth/references/delete-principal.md b/.agents/skills/hooks-auth/references/delete-principal.md new file mode 100644 index 0000000000..51c934e9cd --- /dev/null +++ b/.agents/skills/hooks-auth/references/delete-principal.md @@ -0,0 +1,20 @@ +# deletePrincipal + + + +React Query mutation hook for deletePrincipal + +## Usage + +```typescript +const { mutate } = useDeletePrincipalMutation(); mutate({ input: { principalId: '' } }); +``` + +## Examples + +### Use useDeletePrincipalMutation + +```typescript +const { mutate, isLoading } = useDeletePrincipalMutation(); +mutate({ input: { principalId: '' } }); +``` diff --git a/.agents/skills/hooks-auth/references/principal-scope-override.md b/.agents/skills/hooks-auth/references/principal-scope-override.md index 72a7cb9e67..fe9c3340e3 100644 --- a/.agents/skills/hooks-auth/references/principal-scope-override.md +++ b/.agents/skills/hooks-auth/references/principal-scope-override.md @@ -7,8 +7,8 @@ Per-scope permission overrides for principals. No row = full access; row exists ## Usage ```typescript -usePrincipalScopeOverridesQuery({ selection: { fields: { id: true, createdAt: true, updatedAt: true, principalId: true, membershipType: true, allowedMask: true, isAdmin: true, isReadOnly: true } } }) -usePrincipalScopeOverrideQuery({ id: '', selection: { fields: { id: true, createdAt: true, updatedAt: true, principalId: true, membershipType: true, allowedMask: true, isAdmin: true, isReadOnly: true } } }) +usePrincipalScopeOverridesQuery({ selection: { fields: { id: true, createdAt: true, updatedAt: true, principalId: true, membershipType: true, allowedMask: true, useAdminOwner: true, isActive: true, isReadOnly: true } } }) +usePrincipalScopeOverrideQuery({ id: '', selection: { fields: { id: true, createdAt: true, updatedAt: true, principalId: true, membershipType: true, allowedMask: true, useAdminOwner: true, isActive: true, isReadOnly: true } } }) useCreatePrincipalScopeOverrideMutation({ selection: { fields: { id: true } } }) useUpdatePrincipalScopeOverrideMutation({ selection: { fields: { id: true } } }) useDeletePrincipalScopeOverrideMutation({}) @@ -20,7 +20,7 @@ useDeletePrincipalScopeOverrideMutation({}) ```typescript const { data, isLoading } = usePrincipalScopeOverridesQuery({ - selection: { fields: { id: true, createdAt: true, updatedAt: true, principalId: true, membershipType: true, allowedMask: true, isAdmin: true, isReadOnly: true } }, + selection: { fields: { id: true, createdAt: true, updatedAt: true, principalId: true, membershipType: true, allowedMask: true, useAdminOwner: true, isActive: true, isReadOnly: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = usePrincipalScopeOverridesQuery({ const { mutate } = useCreatePrincipalScopeOverrideMutation({ selection: { fields: { id: true } }, }); -mutate({ principalId: '', membershipType: '', allowedMask: '', isAdmin: '', isReadOnly: '' }); +mutate({ principalId: '', membershipType: '', allowedMask: '', useAdminOwner: '', isActive: '', isReadOnly: '' }); ``` diff --git a/.agents/skills/hooks-auth/references/principal.md b/.agents/skills/hooks-auth/references/principal.md index e6ed3be9f5..396fe7ce1a 100644 --- a/.agents/skills/hooks-auth/references/principal.md +++ b/.agents/skills/hooks-auth/references/principal.md @@ -7,8 +7,8 @@ Scoped sub-identities (API keys and agents) with precomputed SPRT ## Usage ```typescript -usePrincipalsQuery({ selection: { fields: { id: true, createdAt: true, updatedAt: true, ownerId: true, userId: true, name: true, allowedMask: true, isReadOnly: true, bypassStepUp: true } } }) -usePrincipalQuery({ principalId: '', selection: { fields: { id: true, createdAt: true, updatedAt: true, ownerId: true, userId: true, name: true, allowedMask: true, isReadOnly: true, bypassStepUp: true } } }) +usePrincipalsQuery({ selection: { fields: { id: true, createdAt: true, updatedAt: true, ownerId: true, userId: true, name: true, useAdminOwner: true, isReadOnly: true, bypassStepUp: true } } }) +usePrincipalQuery({ principalId: '', selection: { fields: { id: true, createdAt: true, updatedAt: true, ownerId: true, userId: true, name: true, useAdminOwner: true, isReadOnly: true, bypassStepUp: true } } }) useCreatePrincipalMutation({ selection: { fields: { principalId: true } } }) useUpdatePrincipalMutation({ selection: { fields: { principalId: true } } }) useDeletePrincipalMutation({}) @@ -20,7 +20,7 @@ useDeletePrincipalMutation({}) ```typescript const { data, isLoading } = usePrincipalsQuery({ - selection: { fields: { id: true, createdAt: true, updatedAt: true, ownerId: true, userId: true, name: true, allowedMask: true, isReadOnly: true, bypassStepUp: true } }, + selection: { fields: { id: true, createdAt: true, updatedAt: true, ownerId: true, userId: true, name: true, useAdminOwner: true, isReadOnly: true, bypassStepUp: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = usePrincipalsQuery({ const { mutate } = useCreatePrincipalMutation({ selection: { fields: { principalId: true } }, }); -mutate({ id: '', ownerId: '', userId: '', name: '', allowedMask: '', isReadOnly: '', bypassStepUp: '' }); +mutate({ id: '', ownerId: '', userId: '', name: '', useAdminOwner: '', isReadOnly: '', bypassStepUp: '' }); ``` diff --git a/.agents/skills/hooks-compute/SKILL.md b/.agents/skills/hooks-compute/SKILL.md index 4fbe8a9347..d2b7424c65 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 22 tables and 15 custom operations +description: React Query hooks for the compute API — provides typed query and mutation hooks for 44 tables and 18 custom operations --- # hooks-compute -React Query hooks for the compute API — provides typed query and mutation hooks for 22 tables and 15 custom operations +React Query hooks for the compute API — provides typed query and mutation hooks for 44 tables and 18 custom operations ## Usage ```typescript // Import hooks -import { useGetAllQuery } from './hooks'; +import { useInfraGetAllQuery } from './hooks'; // Query hooks: useQuery, usesQuery // Mutation hooks: useCreateMutation, useUpdateMutation, useDeleteMutation // Bulk mutation hooks (when enabled): useBulkCreateMutation, useBulkUpsertMutation, etc. -const { data, isLoading } = useGetAllQuery({ +const { data, isLoading } = useInfraGetAllQuery({ selection: { fields: { id: true } }, }); ``` @@ -29,7 +29,7 @@ const { data, isLoading } = useGetAllQuery({ ### Query records ```typescript -const { data, isLoading } = useGetAllQuery({ +const { data, isLoading } = useInfraGetAllQuery({ selection: { fields: { id: true } }, }); ``` @@ -38,33 +38,57 @@ const { data, isLoading } = useGetAllQuery({ See the `references/` directory for detailed per-entity API documentation: +- [infra-get-all-record](references/infra-get-all-record.md) - [get-all-record](references/get-all-record.md) +- [infra-ref](references/infra-ref.md) +- [infra-store](references/infra-store.md) - [function-api-binding](references/function-api-binding.md) -- [function-deployment](references/function-deployment.md) -- [resource](references/resource.md) - [function-graph-ref](references/function-graph-ref.md) - [function-graph-store](references/function-graph-store.md) +- [platform-function-api-binding](references/platform-function-api-binding.md) +- [platform-resources-requirements-state](references/platform-resources-requirements-state.md) +- [resources-requirements-state](references/resources-requirements-state.md) +- [platform-resource-status-check](references/platform-resource-status-check.md) +- [platform-function-deployment](references/platform-function-deployment.md) +- [platform-resource](references/platform-resource.md) +- [platform-resource-definition](references/platform-resource-definition.md) +- [infra-object](references/infra-object.md) - [function-graph-object](references/function-graph-object.md) +- [platform-function-deployment-event](references/platform-function-deployment-event.md) +- [platform-resource-event](references/platform-resource-event.md) +- [resource-status-check](references/resource-status-check.md) +- [function-deployment](references/function-deployment.md) +- [resource](references/resource.md) +- [resource-definition](references/resource-definition.md) - [function-deployment-event](references/function-deployment-event.md) -- [org-function-execution-log](references/org-function-execution-log.md) +- [platform-function-execution-log](references/platform-function-execution-log.md) - [resource-event](references/resource-event.md) - [function-graph-execution-output](references/function-graph-execution-output.md) +- [infra-commit](references/infra-commit.md) - [function-graph-commit](references/function-graph-commit.md) -- [secret-definition](references/secret-definition.md) - [function-execution-log](references/function-execution-log.md) +- [platform-resources-resolved-requirement](references/platform-resources-resolved-requirement.md) +- [resources-resolved-requirement](references/resources-resolved-requirement.md) +- [db-preset](references/db-preset.md) +- [platform-namespace](references/platform-namespace.md) - [function-graph](references/function-graph.md) - [function-graph-execution-node-state](references/function-graph-execution-node-state.md) -- [platform-namespace](references/platform-namespace.md) -- [org-function-invocation](references/org-function-invocation.md) +- [namespace](references/namespace.md) +- [platform-function-invocation](references/platform-function-invocation.md) - [function-invocation](references/function-invocation.md) - [platform-namespace-event](references/platform-namespace-event.md) +- [integration-provider](references/integration-provider.md) +- [namespace-event](references/namespace-event.md) - [function-graph-execution](references/function-graph-execution.md) +- [platform-function-definition](references/platform-function-definition.md) - [function-definition](references/function-definition.md) - [read-function-graph](references/read-function-graph.md) - [validate-function-graph](references/validate-function-graph.md) +- [infra-init-empty-repo](references/infra-init-empty-repo.md) - [init-empty-repo](references/init-empty-repo.md) -- [set-data-at-path](references/set-data-at-path.md) - [import-definitions](references/import-definitions.md) +- [infra-set-data-at-path](references/infra-set-data-at-path.md) +- [set-data-at-path](references/set-data-at-path.md) - [copy-graph](references/copy-graph.md) - [save-graph](references/save-graph.md) - [add-edge-and-save](references/add-edge-and-save.md) @@ -72,6 +96,7 @@ See the `references/` directory for detailed per-entity API documentation: - [import-graph-json](references/import-graph-json.md) - [add-edge](references/add-edge.md) - [add-node](references/add-node.md) +- [infra-insert-node-at-path](references/infra-insert-node-at-path.md) - [insert-node-at-path](references/insert-node-at-path.md) - [start-execution](references/start-execution.md) - [provision-bucket](references/provision-bucket.md) diff --git a/.agents/skills/hooks-compute/references/copy-graph.md b/.agents/skills/hooks-compute/references/copy-graph.md index 6c26645ef4..a62606dc9f 100644 --- a/.agents/skills/hooks-compute/references/copy-graph.md +++ b/.agents/skills/hooks-compute/references/copy-graph.md @@ -7,7 +7,7 @@ React Query mutation hook for copyGraph ## Usage ```typescript -const { mutate } = useCopyGraphMutation(); mutate({ input: { databaseId: '', graphId: '', name: '' } }); +const { mutate } = useCopyGraphMutation(); mutate({ input: { scopeId: '', graphId: '', name: '' } }); ``` ## Examples @@ -16,5 +16,5 @@ const { mutate } = useCopyGraphMutation(); mutate({ input: { databaseId: ' ```typescript const { mutate, isLoading } = useCopyGraphMutation(); -mutate({ input: { databaseId: '', graphId: '', name: '' } }); +mutate({ input: { scopeId: '', graphId: '', name: '' } }); ``` diff --git a/.agents/skills/hooks-compute/references/db-preset.md b/.agents/skills/hooks-compute/references/db-preset.md new file mode 100644 index 0000000000..721a1880ec --- /dev/null +++ b/.agents/skills/hooks-compute/references/db-preset.md @@ -0,0 +1,34 @@ +# dbPreset + + + +Database provisioning preset catalog — merkle-versioned head over the infra store + +## Usage + +```typescript +useDbPresetsQuery({ selection: { fields: { id: true, storeId: true, slug: true, definition: true, commitId: true, modulesHash: true, label: true, description: true, active: true, createdAt: true, updatedAt: true } } }) +useDbPresetQuery({ id: '', selection: { fields: { id: true, storeId: true, slug: true, definition: true, commitId: true, modulesHash: true, label: true, description: true, active: true, createdAt: true, updatedAt: true } } }) +useCreateDbPresetMutation({ selection: { fields: { id: true } } }) +useUpdateDbPresetMutation({ selection: { fields: { id: true } } }) +useDeleteDbPresetMutation({}) +``` + +## Examples + +### List all dbPresets + +```typescript +const { data, isLoading } = useDbPresetsQuery({ + selection: { fields: { id: true, storeId: true, slug: true, definition: true, commitId: true, modulesHash: true, label: true, description: true, active: true, createdAt: true, updatedAt: true } }, +}); +``` + +### Create a dbPreset + +```typescript +const { mutate } = useCreateDbPresetMutation({ + selection: { fields: { id: true } }, +}); +mutate({ storeId: '', slug: '', definition: '', commitId: '', modulesHash: '', label: '', description: '', active: '' }); +``` diff --git a/.agents/skills/hooks-compute/references/function-definition.md b/.agents/skills/hooks-compute/references/function-definition.md index 95a4548351..7325bdf951 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: { id: true, createdAt: true, updatedAt: true, scope: true, name: true, taskIdentifier: true, description: true, isInvocable: true, maxAttempts: true, priority: true, queueName: true, runtime: true, image: true, concurrency: true, scaleMin: true, scaleMax: true, timeoutSeconds: true, resources: true, isBuiltIn: true, requiredSecrets: true, requiredConfigs: true, requiredBuckets: true, requiredModels: true, inputs: true, outputs: true, props: true, volatile: true, icon: true, category: true } } }) -useFunctionDefinitionQuery({ id: '', selection: { fields: { id: true, createdAt: true, updatedAt: true, scope: true, name: true, taskIdentifier: true, description: true, isInvocable: true, maxAttempts: true, priority: true, queueName: true, runtime: true, image: true, concurrency: true, scaleMin: true, scaleMax: true, timeoutSeconds: true, resources: true, isBuiltIn: true, requiredSecrets: true, requiredConfigs: true, requiredBuckets: true, requiredModels: true, inputs: true, outputs: true, props: true, volatile: true, icon: true, category: true } } }) +useFunctionDefinitionsQuery({ selection: { fields: { id: true, createdAt: true, updatedAt: true, scope: true, name: true, taskIdentifier: true, description: true, isPublished: true, accessChannels: true, publishedAt: true, maxAttempts: true, priority: true, queueName: true, runtime: true, targetSchema: true, targetFunction: true, moduleTable: true, functionColumns: true, payloadArgs: true, image: true, concurrency: true, scaleMin: true, scaleMax: true, timeoutSeconds: true, resources: true, isBuiltIn: true, requiredSecrets: true, requiredConfigs: true, integrations: true, requiredBuckets: true, requiredModels: true, inputs: true, outputs: true, props: true, volatile: true, icon: true, category: true, databaseId: true } } }) +useFunctionDefinitionQuery({ id: '', selection: { fields: { id: true, createdAt: true, updatedAt: true, scope: true, name: true, taskIdentifier: true, description: true, isPublished: true, accessChannels: true, publishedAt: true, maxAttempts: true, priority: true, queueName: true, runtime: true, targetSchema: true, targetFunction: true, moduleTable: true, functionColumns: true, payloadArgs: true, image: true, concurrency: true, scaleMin: true, scaleMax: true, timeoutSeconds: true, resources: true, isBuiltIn: true, requiredSecrets: true, requiredConfigs: true, integrations: true, requiredBuckets: true, requiredModels: true, inputs: true, outputs: true, props: true, volatile: true, icon: true, category: true, databaseId: true } } }) useCreateFunctionDefinitionMutation({ selection: { fields: { id: true } } }) useUpdateFunctionDefinitionMutation({ selection: { fields: { id: true } } }) useDeleteFunctionDefinitionMutation({}) @@ -20,7 +20,7 @@ useDeleteFunctionDefinitionMutation({}) ```typescript const { data, isLoading } = useFunctionDefinitionsQuery({ - selection: { fields: { id: true, createdAt: true, updatedAt: true, scope: true, name: true, taskIdentifier: true, description: true, isInvocable: true, maxAttempts: true, priority: true, queueName: true, runtime: true, image: true, concurrency: true, scaleMin: true, scaleMax: true, timeoutSeconds: true, resources: true, isBuiltIn: true, requiredSecrets: true, requiredConfigs: true, requiredBuckets: true, requiredModels: true, inputs: true, outputs: true, props: true, volatile: true, icon: true, category: true } }, + selection: { fields: { id: true, createdAt: true, updatedAt: true, scope: true, name: true, taskIdentifier: true, description: true, isPublished: true, accessChannels: true, publishedAt: true, maxAttempts: true, priority: true, queueName: true, runtime: true, targetSchema: true, targetFunction: true, moduleTable: true, functionColumns: true, payloadArgs: true, image: true, concurrency: true, scaleMin: true, scaleMax: true, timeoutSeconds: true, resources: true, isBuiltIn: true, requiredSecrets: true, requiredConfigs: true, integrations: true, requiredBuckets: true, requiredModels: true, inputs: true, outputs: true, props: true, volatile: true, icon: true, category: true, databaseId: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useFunctionDefinitionsQuery({ const { mutate } = useCreateFunctionDefinitionMutation({ selection: { fields: { id: true } }, }); -mutate({ scope: '', name: '', taskIdentifier: '', description: '', isInvocable: '', maxAttempts: '', priority: '', queueName: '', runtime: '', image: '', concurrency: '', scaleMin: '', scaleMax: '', timeoutSeconds: '', resources: '', isBuiltIn: '', requiredSecrets: '', requiredConfigs: '', requiredBuckets: '', requiredModels: '', inputs: '', outputs: '', props: '', volatile: '', icon: '', category: '' }); +mutate({ scope: '', name: '', taskIdentifier: '', description: '', isPublished: '', accessChannels: '', publishedAt: '', maxAttempts: '', priority: '', queueName: '', runtime: '', targetSchema: '', targetFunction: '', moduleTable: '', functionColumns: '', payloadArgs: '', image: '', concurrency: '', scaleMin: '', scaleMax: '', timeoutSeconds: '', resources: '', isBuiltIn: '', requiredSecrets: '', requiredConfigs: '', integrations: '', requiredBuckets: '', requiredModels: '', inputs: '', outputs: '', props: '', volatile: '', icon: '', category: '', databaseId: '' }); ``` diff --git a/.agents/skills/hooks-compute/references/function-deployment.md b/.agents/skills/hooks-compute/references/function-deployment.md index b86ca97978..cd346c6536 100644 --- a/.agents/skills/hooks-compute/references/function-deployment.md +++ b/.agents/skills/hooks-compute/references/function-deployment.md @@ -2,13 +2,13 @@ -Function deployment bindings — ties a function definition to a namespace for Knative provisioning and routing +Function deployment bindings — ties a handler image to a namespace for Knative provisioning and routing (one row per handler image per namespace) ## Usage ```typescript -useFunctionDeploymentsQuery({ selection: { fields: { id: true, createdAt: true, updatedAt: true, functionDefinitionId: true, namespaceId: true, status: true, serviceUrl: true, serviceName: true, revision: true, image: true, concurrency: true, scaleMin: true, scaleMax: true, timeoutSeconds: true, resources: true, lastError: true, lastErrorAt: true, errorCount: true, labels: true, annotations: true, databaseId: true } } }) -useFunctionDeploymentQuery({ id: '', selection: { fields: { id: true, createdAt: true, updatedAt: true, functionDefinitionId: true, namespaceId: true, status: true, serviceUrl: true, serviceName: true, revision: true, image: true, concurrency: true, scaleMin: true, scaleMax: true, timeoutSeconds: true, resources: true, lastError: true, lastErrorAt: true, errorCount: true, labels: true, annotations: true, databaseId: true } } }) +useFunctionDeploymentsQuery({ selection: { fields: { id: true, createdAt: true, updatedAt: true, namespaceId: true, status: true, serviceUrl: true, serviceName: true, revision: true, image: true, imageVersion: true, handlerName: true, concurrency: true, scaleMin: true, scaleMax: true, timeoutSeconds: true, resources: true, lastError: true, lastErrorAt: true, errorCount: true, labels: true, annotations: true, databaseId: true } } }) +useFunctionDeploymentQuery({ id: '', selection: { fields: { id: true, createdAt: true, updatedAt: true, namespaceId: true, status: true, serviceUrl: true, serviceName: true, revision: true, image: true, imageVersion: true, handlerName: true, concurrency: true, scaleMin: true, scaleMax: true, timeoutSeconds: true, resources: true, lastError: true, lastErrorAt: true, errorCount: true, labels: true, annotations: true, databaseId: true } } }) useCreateFunctionDeploymentMutation({ selection: { fields: { id: true } } }) useUpdateFunctionDeploymentMutation({ selection: { fields: { id: true } } }) useDeleteFunctionDeploymentMutation({}) @@ -20,7 +20,7 @@ useDeleteFunctionDeploymentMutation({}) ```typescript const { data, isLoading } = useFunctionDeploymentsQuery({ - selection: { fields: { id: true, createdAt: true, updatedAt: true, functionDefinitionId: true, namespaceId: true, status: true, serviceUrl: true, serviceName: true, revision: true, image: true, concurrency: true, scaleMin: true, scaleMax: true, timeoutSeconds: true, resources: true, lastError: true, lastErrorAt: true, errorCount: true, labels: true, annotations: true, databaseId: true } }, + selection: { fields: { id: true, createdAt: true, updatedAt: true, namespaceId: true, status: true, serviceUrl: true, serviceName: true, revision: true, image: true, imageVersion: true, handlerName: true, concurrency: true, scaleMin: true, scaleMax: true, timeoutSeconds: true, resources: true, lastError: true, lastErrorAt: true, errorCount: true, labels: true, annotations: true, databaseId: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useFunctionDeploymentsQuery({ const { mutate } = useCreateFunctionDeploymentMutation({ selection: { fields: { id: true } }, }); -mutate({ functionDefinitionId: '', namespaceId: '', status: '', serviceUrl: '', serviceName: '', revision: '', image: '', concurrency: '', scaleMin: '', scaleMax: '', timeoutSeconds: '', resources: '', lastError: '', lastErrorAt: '', errorCount: '', labels: '', annotations: '', databaseId: '' }); +mutate({ namespaceId: '', status: '', serviceUrl: '', serviceName: '', revision: '', image: '', imageVersion: '', handlerName: '', concurrency: '', scaleMin: '', scaleMax: '', timeoutSeconds: '', resources: '', lastError: '', lastErrorAt: '', errorCount: '', labels: '', annotations: '', databaseId: '' }); ``` diff --git a/.agents/skills/hooks-compute/references/function-graph-commit.md b/.agents/skills/hooks-compute/references/function-graph-commit.md index 6e198be334..e454a14eca 100644 --- a/.agents/skills/hooks-compute/references/function-graph-commit.md +++ b/.agents/skills/hooks-compute/references/function-graph-commit.md @@ -7,8 +7,8 @@ Commit history — each commit snapshots a tree root for a store ## Usage ```typescript -useFunctionGraphCommitsQuery({ selection: { fields: { id: true, message: true, databaseId: true, storeId: true, parentIds: true, authorId: true, committerId: true, treeId: true, date: true } } }) -useFunctionGraphCommitQuery({ id: '', selection: { fields: { id: true, message: true, databaseId: true, storeId: true, parentIds: true, authorId: true, committerId: true, treeId: true, date: true } } }) +useFunctionGraphCommitsQuery({ selection: { fields: { id: true, message: true, scopeId: true, storeId: true, parentIds: true, authorId: true, committerId: true, treeId: true, date: true } } }) +useFunctionGraphCommitQuery({ id: '', selection: { fields: { id: true, message: true, scopeId: true, storeId: true, parentIds: true, authorId: true, committerId: true, treeId: true, date: true } } }) useCreateFunctionGraphCommitMutation({ selection: { fields: { id: true } } }) useUpdateFunctionGraphCommitMutation({ selection: { fields: { id: true } } }) useDeleteFunctionGraphCommitMutation({}) @@ -20,7 +20,7 @@ useDeleteFunctionGraphCommitMutation({}) ```typescript const { data, isLoading } = useFunctionGraphCommitsQuery({ - selection: { fields: { id: true, message: true, databaseId: true, storeId: true, parentIds: true, authorId: true, committerId: true, treeId: true, date: true } }, + selection: { fields: { id: true, message: true, scopeId: true, storeId: true, parentIds: true, authorId: true, committerId: true, treeId: true, date: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useFunctionGraphCommitsQuery({ const { mutate } = useCreateFunctionGraphCommitMutation({ selection: { fields: { id: true } }, }); -mutate({ message: '', databaseId: '', storeId: '', parentIds: '', authorId: '', committerId: '', treeId: '', date: '' }); +mutate({ message: '', scopeId: '', storeId: '', parentIds: '', authorId: '', committerId: '', treeId: '', date: '' }); ``` diff --git a/.agents/skills/hooks-compute/references/function-graph-execution-node-state.md b/.agents/skills/hooks-compute/references/function-graph-execution-node-state.md index 26e3948817..7babc05e0c 100644 --- a/.agents/skills/hooks-compute/references/function-graph-execution-node-state.md +++ b/.agents/skills/hooks-compute/references/function-graph-execution-node-state.md @@ -7,8 +7,8 @@ Per-node execution state — tracks individual node lifecycle for debugging ## Usage ```typescript -useFunctionGraphExecutionNodeStatesQuery({ selection: { fields: { createdAt: true, id: true, executionId: true, databaseId: true, nodeName: true, nodePath: true, status: true, startedAt: true, completedAt: true, errorCode: true, errorMessage: true, outputId: true } } }) -useFunctionGraphExecutionNodeStateQuery({ id: '', selection: { fields: { createdAt: true, id: true, executionId: true, databaseId: true, nodeName: true, nodePath: true, status: true, startedAt: true, completedAt: true, errorCode: true, errorMessage: true, outputId: true } } }) +useFunctionGraphExecutionNodeStatesQuery({ selection: { fields: { createdAt: true, id: true, executionId: true, scopeId: true, nodeName: true, nodePath: true, status: true, startedAt: true, completedAt: true, errorCode: true, errorMessage: true, outputId: true } } }) +useFunctionGraphExecutionNodeStateQuery({ id: '', selection: { fields: { createdAt: true, id: true, executionId: true, scopeId: true, nodeName: true, nodePath: true, status: true, startedAt: true, completedAt: true, errorCode: true, errorMessage: true, outputId: true } } }) useCreateFunctionGraphExecutionNodeStateMutation({ selection: { fields: { id: true } } }) useUpdateFunctionGraphExecutionNodeStateMutation({ selection: { fields: { id: true } } }) useDeleteFunctionGraphExecutionNodeStateMutation({}) @@ -20,7 +20,7 @@ useDeleteFunctionGraphExecutionNodeStateMutation({}) ```typescript const { data, isLoading } = useFunctionGraphExecutionNodeStatesQuery({ - selection: { fields: { createdAt: true, id: true, executionId: true, databaseId: true, nodeName: true, nodePath: true, status: true, startedAt: true, completedAt: true, errorCode: true, errorMessage: true, outputId: true } }, + selection: { fields: { createdAt: true, id: true, executionId: true, scopeId: true, nodeName: true, nodePath: true, status: true, startedAt: true, completedAt: true, errorCode: true, errorMessage: true, outputId: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useFunctionGraphExecutionNodeStatesQuery({ const { mutate } = useCreateFunctionGraphExecutionNodeStateMutation({ selection: { fields: { id: true } }, }); -mutate({ executionId: '', databaseId: '', nodeName: '', nodePath: '', status: '', startedAt: '', completedAt: '', errorCode: '', errorMessage: '', outputId: '' }); +mutate({ executionId: '', scopeId: '', nodeName: '', nodePath: '', status: '', startedAt: '', completedAt: '', errorCode: '', errorMessage: '', outputId: '' }); ``` diff --git a/.agents/skills/hooks-compute/references/function-graph-execution-output.md b/.agents/skills/hooks-compute/references/function-graph-execution-output.md index 111dfdde05..4dfe84262a 100644 --- a/.agents/skills/hooks-compute/references/function-graph-execution-output.md +++ b/.agents/skills/hooks-compute/references/function-graph-execution-output.md @@ -7,8 +7,8 @@ Content-addressed store for execution outputs — hash-referenced from node_outp ## Usage ```typescript -useFunctionGraphExecutionOutputsQuery({ selection: { fields: { createdAt: true, id: true, databaseId: true, hash: true, data: true } } }) -useFunctionGraphExecutionOutputQuery({ id: '', selection: { fields: { createdAt: true, id: true, databaseId: true, hash: true, data: true } } }) +useFunctionGraphExecutionOutputsQuery({ selection: { fields: { createdAt: true, id: true, scopeId: true, hash: true, data: true } } }) +useFunctionGraphExecutionOutputQuery({ id: '', selection: { fields: { createdAt: true, id: true, scopeId: true, hash: true, data: true } } }) useCreateFunctionGraphExecutionOutputMutation({ selection: { fields: { id: true } } }) useUpdateFunctionGraphExecutionOutputMutation({ selection: { fields: { id: true } } }) useDeleteFunctionGraphExecutionOutputMutation({}) @@ -20,7 +20,7 @@ useDeleteFunctionGraphExecutionOutputMutation({}) ```typescript const { data, isLoading } = useFunctionGraphExecutionOutputsQuery({ - selection: { fields: { createdAt: true, id: true, databaseId: true, hash: true, data: true } }, + selection: { fields: { createdAt: true, id: true, scopeId: true, hash: true, data: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useFunctionGraphExecutionOutputsQuery({ const { mutate } = useCreateFunctionGraphExecutionOutputMutation({ selection: { fields: { id: true } }, }); -mutate({ databaseId: '', hash: '', data: '' }); +mutate({ scopeId: '', hash: '', data: '' }); ``` diff --git a/.agents/skills/hooks-compute/references/function-graph-execution.md b/.agents/skills/hooks-compute/references/function-graph-execution.md index 88b1492294..63ca318cea 100644 --- a/.agents/skills/hooks-compute/references/function-graph-execution.md +++ b/.agents/skills/hooks-compute/references/function-graph-execution.md @@ -7,8 +7,8 @@ Ephemeral execution state for flow graph evaluation ## Usage ```typescript -useFunctionGraphExecutionsQuery({ selection: { fields: { startedAt: true, id: true, graphId: true, invocationId: true, databaseId: true, outputNode: true, outputPort: true, status: true, inputPayload: true, outputPayload: true, nodeOutputs: true, executionPlan: true, currentWave: true, parentExecutionId: true, parentNodeName: true, definitionsCommitId: true, tickCount: true, completedAt: true, maxTicks: true, maxPendingJobs: true, timeoutAt: true, errorCode: true, errorMessage: true } } }) -useFunctionGraphExecutionQuery({ id: '', selection: { fields: { startedAt: true, id: true, graphId: true, invocationId: true, databaseId: true, outputNode: true, outputPort: true, status: true, inputPayload: true, outputPayload: true, nodeOutputs: true, executionPlan: true, currentWave: true, parentExecutionId: true, parentNodeName: true, definitionsCommitId: true, tickCount: true, completedAt: true, maxTicks: true, maxPendingJobs: true, timeoutAt: true, errorCode: true, errorMessage: true } } }) +useFunctionGraphExecutionsQuery({ selection: { fields: { startedAt: true, id: true, graphId: true, invocationId: true, scopeId: true, outputNode: true, outputPort: true, status: true, inputPayload: true, outputPayload: true, nodeOutputs: true, executionPlan: true, currentWave: true, parentExecutionId: true, parentNodeName: true, definitionsCommitId: true, tickCount: true, completedAt: true, maxTicks: true, maxPendingJobs: true, timeoutAt: true, lastProgressAt: true, errorCode: true, errorMessage: true } } }) +useFunctionGraphExecutionQuery({ id: '', selection: { fields: { startedAt: true, id: true, graphId: true, invocationId: true, scopeId: true, outputNode: true, outputPort: true, status: true, inputPayload: true, outputPayload: true, nodeOutputs: true, executionPlan: true, currentWave: true, parentExecutionId: true, parentNodeName: true, definitionsCommitId: true, tickCount: true, completedAt: true, maxTicks: true, maxPendingJobs: true, timeoutAt: true, lastProgressAt: true, errorCode: true, errorMessage: true } } }) useCreateFunctionGraphExecutionMutation({ selection: { fields: { id: true } } }) useUpdateFunctionGraphExecutionMutation({ selection: { fields: { id: true } } }) useDeleteFunctionGraphExecutionMutation({}) @@ -20,7 +20,7 @@ useDeleteFunctionGraphExecutionMutation({}) ```typescript const { data, isLoading } = useFunctionGraphExecutionsQuery({ - selection: { fields: { startedAt: true, id: true, graphId: true, invocationId: true, databaseId: true, outputNode: true, outputPort: true, status: true, inputPayload: true, outputPayload: true, nodeOutputs: true, executionPlan: true, currentWave: true, parentExecutionId: true, parentNodeName: true, definitionsCommitId: true, tickCount: true, completedAt: true, maxTicks: true, maxPendingJobs: true, timeoutAt: true, errorCode: true, errorMessage: true } }, + selection: { fields: { startedAt: true, id: true, graphId: true, invocationId: true, scopeId: true, outputNode: true, outputPort: true, status: true, inputPayload: true, outputPayload: true, nodeOutputs: true, executionPlan: true, currentWave: true, parentExecutionId: true, parentNodeName: true, definitionsCommitId: true, tickCount: true, completedAt: true, maxTicks: true, maxPendingJobs: true, timeoutAt: true, lastProgressAt: true, errorCode: true, errorMessage: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useFunctionGraphExecutionsQuery({ const { mutate } = useCreateFunctionGraphExecutionMutation({ selection: { fields: { id: true } }, }); -mutate({ startedAt: '', graphId: '', invocationId: '', databaseId: '', outputNode: '', outputPort: '', status: '', inputPayload: '', outputPayload: '', nodeOutputs: '', executionPlan: '', currentWave: '', parentExecutionId: '', parentNodeName: '', definitionsCommitId: '', tickCount: '', completedAt: '', maxTicks: '', maxPendingJobs: '', timeoutAt: '', errorCode: '', errorMessage: '' }); +mutate({ startedAt: '', graphId: '', invocationId: '', scopeId: '', outputNode: '', outputPort: '', status: '', inputPayload: '', outputPayload: '', nodeOutputs: '', executionPlan: '', currentWave: '', parentExecutionId: '', parentNodeName: '', definitionsCommitId: '', tickCount: '', completedAt: '', maxTicks: '', maxPendingJobs: '', timeoutAt: '', lastProgressAt: '', errorCode: '', errorMessage: '' }); ``` diff --git a/.agents/skills/hooks-compute/references/function-graph-object.md b/.agents/skills/hooks-compute/references/function-graph-object.md index 7bd6a8a1bf..7180a03380 100644 --- a/.agents/skills/hooks-compute/references/function-graph-object.md +++ b/.agents/skills/hooks-compute/references/function-graph-object.md @@ -7,8 +7,8 @@ Content-addressed Merkle tree objects keyed by UUID v5 hash of data + children ## Usage ```typescript -useFunctionGraphObjectsQuery({ selection: { fields: { id: true, databaseId: true, kids: true, ktree: true, data: true, createdAt: true } } }) -useFunctionGraphObjectQuery({ id: '', selection: { fields: { id: true, databaseId: true, kids: true, ktree: true, data: true, createdAt: true } } }) +useFunctionGraphObjectsQuery({ selection: { fields: { id: true, scopeId: true, kids: true, ktree: true, data: true, createdAt: true } } }) +useFunctionGraphObjectQuery({ id: '', selection: { fields: { id: true, scopeId: true, kids: true, ktree: true, data: true, createdAt: true } } }) useCreateFunctionGraphObjectMutation({ selection: { fields: { id: true } } }) useUpdateFunctionGraphObjectMutation({ selection: { fields: { id: true } } }) useDeleteFunctionGraphObjectMutation({}) @@ -20,7 +20,7 @@ useDeleteFunctionGraphObjectMutation({}) ```typescript const { data, isLoading } = useFunctionGraphObjectsQuery({ - selection: { fields: { id: true, databaseId: true, kids: true, ktree: true, data: true, createdAt: true } }, + selection: { fields: { id: true, scopeId: true, kids: true, ktree: true, data: true, createdAt: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useFunctionGraphObjectsQuery({ const { mutate } = useCreateFunctionGraphObjectMutation({ selection: { fields: { id: true } }, }); -mutate({ databaseId: '', kids: '', ktree: '', data: '' }); +mutate({ scopeId: '', kids: '', ktree: '', data: '' }); ``` diff --git a/.agents/skills/hooks-compute/references/function-graph-ref.md b/.agents/skills/hooks-compute/references/function-graph-ref.md index 26e7bcc5b9..bed6a6b9cd 100644 --- a/.agents/skills/hooks-compute/references/function-graph-ref.md +++ b/.agents/skills/hooks-compute/references/function-graph-ref.md @@ -7,8 +7,8 @@ Branch heads — mutable pointers into the commit chain ## Usage ```typescript -useFunctionGraphRefsQuery({ selection: { fields: { id: true, name: true, databaseId: true, storeId: true, commitId: true } } }) -useFunctionGraphRefQuery({ id: '', selection: { fields: { id: true, name: true, databaseId: true, storeId: true, commitId: true } } }) +useFunctionGraphRefsQuery({ selection: { fields: { id: true, name: true, scopeId: true, storeId: true, commitId: true } } }) +useFunctionGraphRefQuery({ id: '', selection: { fields: { id: true, name: true, scopeId: true, storeId: true, commitId: true } } }) useCreateFunctionGraphRefMutation({ selection: { fields: { id: true } } }) useUpdateFunctionGraphRefMutation({ selection: { fields: { id: true } } }) useDeleteFunctionGraphRefMutation({}) @@ -20,7 +20,7 @@ useDeleteFunctionGraphRefMutation({}) ```typescript const { data, isLoading } = useFunctionGraphRefsQuery({ - selection: { fields: { id: true, name: true, databaseId: true, storeId: true, commitId: true } }, + selection: { fields: { id: true, name: true, scopeId: true, storeId: true, commitId: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useFunctionGraphRefsQuery({ const { mutate } = useCreateFunctionGraphRefMutation({ selection: { fields: { id: true } }, }); -mutate({ name: '', databaseId: '', storeId: '', commitId: '' }); +mutate({ name: '', scopeId: '', storeId: '', commitId: '' }); ``` diff --git a/.agents/skills/hooks-compute/references/function-graph-store.md b/.agents/skills/hooks-compute/references/function-graph-store.md index db38dcc17f..91a672f90d 100644 --- a/.agents/skills/hooks-compute/references/function-graph-store.md +++ b/.agents/skills/hooks-compute/references/function-graph-store.md @@ -7,8 +7,8 @@ Named stores — one per version-controlled tree (e.g. one graph, one definition ## Usage ```typescript -useFunctionGraphStoresQuery({ selection: { fields: { id: true, name: true, databaseId: true, hash: true, createdAt: true } } }) -useFunctionGraphStoreQuery({ id: '', selection: { fields: { id: true, name: true, databaseId: true, hash: true, createdAt: true } } }) +useFunctionGraphStoresQuery({ selection: { fields: { id: true, name: true, scopeId: true, hash: true, createdAt: true } } }) +useFunctionGraphStoreQuery({ id: '', selection: { fields: { id: true, name: true, scopeId: true, hash: true, createdAt: true } } }) useCreateFunctionGraphStoreMutation({ selection: { fields: { id: true } } }) useUpdateFunctionGraphStoreMutation({ selection: { fields: { id: true } } }) useDeleteFunctionGraphStoreMutation({}) @@ -20,7 +20,7 @@ useDeleteFunctionGraphStoreMutation({}) ```typescript const { data, isLoading } = useFunctionGraphStoresQuery({ - selection: { fields: { id: true, name: true, databaseId: true, hash: true, createdAt: true } }, + selection: { fields: { id: true, name: true, scopeId: true, hash: true, createdAt: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useFunctionGraphStoresQuery({ const { mutate } = useCreateFunctionGraphStoreMutation({ selection: { fields: { id: true } }, }); -mutate({ name: '', databaseId: '', hash: '' }); +mutate({ name: '', scopeId: '', hash: '' }); ``` diff --git a/.agents/skills/hooks-compute/references/function-graph.md b/.agents/skills/hooks-compute/references/function-graph.md index e29fab1d4e..c8549ae55b 100644 --- a/.agents/skills/hooks-compute/references/function-graph.md +++ b/.agents/skills/hooks-compute/references/function-graph.md @@ -7,8 +7,8 @@ Flow graph definitions — FBP graphs stored in the dedicated graph Merkle store ## Usage ```typescript -useFunctionGraphsQuery({ selection: { fields: { id: true, databaseId: true, storeId: true, context: true, name: true, description: true, definitionsCommitId: true, isValid: true, validationErrors: true, createdBy: true, createdAt: true, updatedAt: true } } }) -useFunctionGraphQuery({ id: '', selection: { fields: { id: true, databaseId: true, storeId: true, context: true, name: true, description: true, definitionsCommitId: true, isValid: true, validationErrors: true, createdBy: true, createdAt: true, updatedAt: true } } }) +useFunctionGraphsQuery({ selection: { fields: { id: true, scopeId: true, storeId: true, context: true, name: true, description: true, definitionsCommitId: true, isValid: true, validationErrors: true, createdBy: true, createdAt: true, updatedAt: true } } }) +useFunctionGraphQuery({ id: '', selection: { fields: { id: true, scopeId: true, storeId: true, context: true, name: true, description: true, definitionsCommitId: true, isValid: true, validationErrors: true, createdBy: true, createdAt: true, updatedAt: true } } }) useCreateFunctionGraphMutation({ selection: { fields: { id: true } } }) useUpdateFunctionGraphMutation({ selection: { fields: { id: true } } }) useDeleteFunctionGraphMutation({}) @@ -20,7 +20,7 @@ useDeleteFunctionGraphMutation({}) ```typescript const { data, isLoading } = useFunctionGraphsQuery({ - selection: { fields: { id: true, databaseId: true, storeId: true, context: true, name: true, description: true, definitionsCommitId: true, isValid: true, validationErrors: true, createdBy: true, createdAt: true, updatedAt: true } }, + selection: { fields: { id: true, scopeId: true, storeId: true, context: true, name: true, description: true, definitionsCommitId: true, isValid: true, validationErrors: true, createdBy: true, createdAt: true, updatedAt: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useFunctionGraphsQuery({ const { mutate } = useCreateFunctionGraphMutation({ selection: { fields: { id: true } }, }); -mutate({ databaseId: '', storeId: '', context: '', name: '', description: '', definitionsCommitId: '', isValid: '', validationErrors: '', createdBy: '' }); +mutate({ scopeId: '', storeId: '', context: '', name: '', description: '', definitionsCommitId: '', isValid: '', validationErrors: '', createdBy: '' }); ``` diff --git a/.agents/skills/hooks-compute/references/infra-commit.md b/.agents/skills/hooks-compute/references/infra-commit.md new file mode 100644 index 0000000000..41a2184c2c --- /dev/null +++ b/.agents/skills/hooks-compute/references/infra-commit.md @@ -0,0 +1,34 @@ +# infraCommit + + + +Commit history — each commit snapshots a tree root for a store + +## Usage + +```typescript +useInfraCommitsQuery({ selection: { fields: { id: true, message: true, scopeId: true, storeId: true, parentIds: true, authorId: true, committerId: true, treeId: true, date: true } } }) +useInfraCommitQuery({ id: '', selection: { fields: { id: true, message: true, scopeId: true, storeId: true, parentIds: true, authorId: true, committerId: true, treeId: true, date: true } } }) +useCreateInfraCommitMutation({ selection: { fields: { id: true } } }) +useUpdateInfraCommitMutation({ selection: { fields: { id: true } } }) +useDeleteInfraCommitMutation({}) +``` + +## Examples + +### List all infraCommits + +```typescript +const { data, isLoading } = useInfraCommitsQuery({ + selection: { fields: { id: true, message: true, scopeId: true, storeId: true, parentIds: true, authorId: true, committerId: true, treeId: true, date: true } }, +}); +``` + +### Create a infraCommit + +```typescript +const { mutate } = useCreateInfraCommitMutation({ + selection: { fields: { id: true } }, +}); +mutate({ message: '', scopeId: '', storeId: '', parentIds: '', authorId: '', committerId: '', treeId: '', date: '' }); +``` diff --git a/.agents/skills/hooks-compute/references/infra-get-all-record.md b/.agents/skills/hooks-compute/references/infra-get-all-record.md new file mode 100644 index 0000000000..b8bb39ad0b --- /dev/null +++ b/.agents/skills/hooks-compute/references/infra-get-all-record.md @@ -0,0 +1,31 @@ +# infraGetAllRecord + + + +React Query hooks for InfraGetAllRecord data operations + +## Usage + +```typescript +useInfraGetAllQuery({ selection: { fields: { path: true, data: true } } }) +useCreateInfraGetAllRecordMutation({ selection: { fields: { id: true } } }) +``` + +## Examples + +### List all infraGetAll + +```typescript +const { data, isLoading } = useInfraGetAllQuery({ + selection: { fields: { path: true, data: true } }, +}); +``` + +### Create a infraGetAllRecord + +```typescript +const { mutate } = useCreateInfraGetAllRecordMutation({ + selection: { fields: { id: true } }, +}); +mutate({ path: '', data: '' }); +``` diff --git a/.agents/skills/hooks-compute/references/infra-init-empty-repo.md b/.agents/skills/hooks-compute/references/infra-init-empty-repo.md new file mode 100644 index 0000000000..fe097995fa --- /dev/null +++ b/.agents/skills/hooks-compute/references/infra-init-empty-repo.md @@ -0,0 +1,20 @@ +# infraInitEmptyRepo + + + +React Query mutation hook for infraInitEmptyRepo + +## Usage + +```typescript +const { mutate } = useInfraInitEmptyRepoMutation(); mutate({ input: { sId: '', storeId: '' } }); +``` + +## Examples + +### Use useInfraInitEmptyRepoMutation + +```typescript +const { mutate, isLoading } = useInfraInitEmptyRepoMutation(); +mutate({ input: { sId: '', storeId: '' } }); +``` diff --git a/.agents/skills/hooks-compute/references/infra-insert-node-at-path.md b/.agents/skills/hooks-compute/references/infra-insert-node-at-path.md new file mode 100644 index 0000000000..3f9cb06354 --- /dev/null +++ b/.agents/skills/hooks-compute/references/infra-insert-node-at-path.md @@ -0,0 +1,20 @@ +# infraInsertNodeAtPath + + + +React Query mutation hook for infraInsertNodeAtPath + +## Usage + +```typescript +const { mutate } = useInfraInsertNodeAtPathMutation(); mutate({ input: '' }); +``` + +## Examples + +### Use useInfraInsertNodeAtPathMutation + +```typescript +const { mutate, isLoading } = useInfraInsertNodeAtPathMutation(); +mutate({ input: '' }); +``` diff --git a/.agents/skills/hooks-compute/references/infra-object.md b/.agents/skills/hooks-compute/references/infra-object.md new file mode 100644 index 0000000000..13b79d225a --- /dev/null +++ b/.agents/skills/hooks-compute/references/infra-object.md @@ -0,0 +1,34 @@ +# infraObject + + + +Content-addressed Merkle tree objects keyed by UUID v5 hash of data + children + +## Usage + +```typescript +useInfraObjectsQuery({ selection: { fields: { id: true, scopeId: true, kids: true, ktree: true, data: true, createdAt: true } } }) +useInfraObjectQuery({ id: '', selection: { fields: { id: true, scopeId: true, kids: true, ktree: true, data: true, createdAt: true } } }) +useCreateInfraObjectMutation({ selection: { fields: { id: true } } }) +useUpdateInfraObjectMutation({ selection: { fields: { id: true } } }) +useDeleteInfraObjectMutation({}) +``` + +## Examples + +### List all infraObjects + +```typescript +const { data, isLoading } = useInfraObjectsQuery({ + selection: { fields: { id: true, scopeId: true, kids: true, ktree: true, data: true, createdAt: true } }, +}); +``` + +### Create a infraObject + +```typescript +const { mutate } = useCreateInfraObjectMutation({ + selection: { fields: { id: true } }, +}); +mutate({ scopeId: '', kids: '', ktree: '', data: '' }); +``` diff --git a/.agents/skills/hooks-compute/references/infra-ref.md b/.agents/skills/hooks-compute/references/infra-ref.md new file mode 100644 index 0000000000..022e47ed53 --- /dev/null +++ b/.agents/skills/hooks-compute/references/infra-ref.md @@ -0,0 +1,34 @@ +# infraRef + + + +Branch heads — mutable pointers into the commit chain + +## Usage + +```typescript +useInfraRefsQuery({ selection: { fields: { id: true, name: true, scopeId: true, storeId: true, commitId: true } } }) +useInfraRefQuery({ id: '', selection: { fields: { id: true, name: true, scopeId: true, storeId: true, commitId: true } } }) +useCreateInfraRefMutation({ selection: { fields: { id: true } } }) +useUpdateInfraRefMutation({ selection: { fields: { id: true } } }) +useDeleteInfraRefMutation({}) +``` + +## Examples + +### List all infraRefs + +```typescript +const { data, isLoading } = useInfraRefsQuery({ + selection: { fields: { id: true, name: true, scopeId: true, storeId: true, commitId: true } }, +}); +``` + +### Create a infraRef + +```typescript +const { mutate } = useCreateInfraRefMutation({ + selection: { fields: { id: true } }, +}); +mutate({ name: '', scopeId: '', storeId: '', commitId: '' }); +``` diff --git a/.agents/skills/hooks-compute/references/infra-set-data-at-path.md b/.agents/skills/hooks-compute/references/infra-set-data-at-path.md new file mode 100644 index 0000000000..0eff59f5fc --- /dev/null +++ b/.agents/skills/hooks-compute/references/infra-set-data-at-path.md @@ -0,0 +1,20 @@ +# infraSetDataAtPath + + + +React Query mutation hook for infraSetDataAtPath + +## Usage + +```typescript +const { mutate } = useInfraSetDataAtPathMutation(); mutate({ input: { sId: '', root: '', path: '', data: '' } }); +``` + +## Examples + +### Use useInfraSetDataAtPathMutation + +```typescript +const { mutate, isLoading } = useInfraSetDataAtPathMutation(); +mutate({ input: { sId: '', root: '', path: '', data: '' } }); +``` diff --git a/.agents/skills/hooks-compute/references/infra-store.md b/.agents/skills/hooks-compute/references/infra-store.md new file mode 100644 index 0000000000..adec3e3972 --- /dev/null +++ b/.agents/skills/hooks-compute/references/infra-store.md @@ -0,0 +1,34 @@ +# infraStore + + + +Named stores — one per version-controlled tree (e.g. one graph, one definition set) + +## Usage + +```typescript +useInfraStoresQuery({ selection: { fields: { id: true, name: true, scopeId: true, hash: true, createdAt: true } } }) +useInfraStoreQuery({ id: '', selection: { fields: { id: true, name: true, scopeId: true, hash: true, createdAt: true } } }) +useCreateInfraStoreMutation({ selection: { fields: { id: true } } }) +useUpdateInfraStoreMutation({ selection: { fields: { id: true } } }) +useDeleteInfraStoreMutation({}) +``` + +## Examples + +### List all infraStores + +```typescript +const { data, isLoading } = useInfraStoresQuery({ + selection: { fields: { id: true, name: true, scopeId: true, hash: true, createdAt: true } }, +}); +``` + +### Create a infraStore + +```typescript +const { mutate } = useCreateInfraStoreMutation({ + selection: { fields: { id: true } }, +}); +mutate({ name: '', scopeId: '', hash: '' }); +``` diff --git a/.agents/skills/hooks-compute/references/integration-provider.md b/.agents/skills/hooks-compute/references/integration-provider.md new file mode 100644 index 0000000000..59b0464723 --- /dev/null +++ b/.agents/skills/hooks-compute/references/integration-provider.md @@ -0,0 +1,34 @@ +# integrationProvider + + + +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. + +## Usage + +```typescript +useIntegrationProvidersQuery({ selection: { fields: { id: true, createdAt: true, updatedAt: true, slug: true, name: true, description: true, category: true, icon: true, logo: true, brand: true, requiredSecrets: true, requiredConfigs: true } } }) +useIntegrationProviderQuery({ id: '', selection: { fields: { id: true, createdAt: true, updatedAt: true, slug: true, name: true, description: true, category: true, icon: true, logo: true, brand: true, requiredSecrets: true, requiredConfigs: true } } }) +useCreateIntegrationProviderMutation({ selection: { fields: { id: true } } }) +useUpdateIntegrationProviderMutation({ selection: { fields: { id: true } } }) +useDeleteIntegrationProviderMutation({}) +``` + +## Examples + +### List all integrationProviders + +```typescript +const { data, isLoading } = useIntegrationProvidersQuery({ + selection: { fields: { id: true, createdAt: true, updatedAt: true, slug: true, name: true, description: true, category: true, icon: true, logo: true, brand: true, requiredSecrets: true, requiredConfigs: true } }, +}); +``` + +### Create a integrationProvider + +```typescript +const { mutate } = useCreateIntegrationProviderMutation({ + selection: { fields: { id: true } }, +}); +mutate({ slug: '', name: '', description: '', category: '', icon: '', logo: '', brand: '', requiredSecrets: '', requiredConfigs: '' }); +``` diff --git a/.agents/skills/hooks-compute/references/namespace-event.md b/.agents/skills/hooks-compute/references/namespace-event.md new file mode 100644 index 0000000000..6f13214351 --- /dev/null +++ b/.agents/skills/hooks-compute/references/namespace-event.md @@ -0,0 +1,34 @@ +# namespaceEvent + + + +Namespace lifecycle events — audit log of creation, activation, deactivation, label changes + +## Usage + +```typescript +useNamespaceEventsQuery({ selection: { fields: { createdAt: true, id: true, namespaceId: true, eventType: true, actorId: true, message: true, metadata: true, cpuMillicores: true, memoryBytes: true, storageBytes: true, networkIngressBytes: true, networkEgressBytes: true, podCount: true, metrics: true, databaseId: true } } }) +useNamespaceEventQuery({ id: '', selection: { fields: { createdAt: true, id: true, namespaceId: true, eventType: true, actorId: true, message: true, metadata: true, cpuMillicores: true, memoryBytes: true, storageBytes: true, networkIngressBytes: true, networkEgressBytes: true, podCount: true, metrics: true, databaseId: true } } }) +useCreateNamespaceEventMutation({ selection: { fields: { id: true } } }) +useUpdateNamespaceEventMutation({ selection: { fields: { id: true } } }) +useDeleteNamespaceEventMutation({}) +``` + +## Examples + +### List all namespaceEvents + +```typescript +const { data, isLoading } = useNamespaceEventsQuery({ + selection: { fields: { createdAt: true, id: true, namespaceId: true, eventType: true, actorId: true, message: true, metadata: true, cpuMillicores: true, memoryBytes: true, storageBytes: true, networkIngressBytes: true, networkEgressBytes: true, podCount: true, metrics: true, databaseId: true } }, +}); +``` + +### Create a namespaceEvent + +```typescript +const { mutate } = useCreateNamespaceEventMutation({ + selection: { fields: { id: true } }, +}); +mutate({ namespaceId: '', eventType: '', actorId: '', message: '', metadata: '', cpuMillicores: '', memoryBytes: '', storageBytes: '', networkIngressBytes: '', networkEgressBytes: '', podCount: '', metrics: '', databaseId: '' }); +``` diff --git a/.agents/skills/hooks-compute/references/namespace.md b/.agents/skills/hooks-compute/references/namespace.md new file mode 100644 index 0000000000..fa86ce6142 --- /dev/null +++ b/.agents/skills/hooks-compute/references/namespace.md @@ -0,0 +1,34 @@ +# namespace + + + +Logical namespace containers for grouping secrets, config, functions, and other resources + +## Usage + +```typescript +useNamespacesQuery({ selection: { fields: { id: true, createdAt: true, updatedAt: true, name: true, namespaceName: true, description: true, isActive: true, status: true, lastError: true, labels: true, annotations: true, databaseId: true, isManaged: true } } }) +useNamespaceQuery({ id: '', selection: { fields: { id: true, createdAt: true, updatedAt: true, name: true, namespaceName: true, description: true, isActive: true, status: true, lastError: true, labels: true, annotations: true, databaseId: true, isManaged: true } } }) +useCreateNamespaceMutation({ selection: { fields: { id: true } } }) +useUpdateNamespaceMutation({ selection: { fields: { id: true } } }) +useDeleteNamespaceMutation({}) +``` + +## Examples + +### List all namespaces + +```typescript +const { data, isLoading } = useNamespacesQuery({ + selection: { fields: { id: true, createdAt: true, updatedAt: true, name: true, namespaceName: true, description: true, isActive: true, status: true, lastError: true, labels: true, annotations: true, databaseId: true, isManaged: true } }, +}); +``` + +### Create a namespace + +```typescript +const { mutate } = useCreateNamespaceMutation({ + selection: { fields: { id: true } }, +}); +mutate({ name: '', namespaceName: '', description: '', isActive: '', status: '', lastError: '', labels: '', annotations: '', databaseId: '', isManaged: '' }); +``` diff --git a/.agents/skills/hooks-compute/references/platform-function-api-binding.md b/.agents/skills/hooks-compute/references/platform-function-api-binding.md new file mode 100644 index 0000000000..8292b85d06 --- /dev/null +++ b/.agents/skills/hooks-compute/references/platform-function-api-binding.md @@ -0,0 +1,34 @@ +# platformFunctionApiBinding + + + +Join table binding function definitions to API endpoints with per-binding alias and config + +## Usage + +```typescript +usePlatformFunctionApiBindingsQuery({ selection: { fields: { id: true, functionDefinitionId: true, apiId: true, alias: true, config: true } } }) +usePlatformFunctionApiBindingQuery({ id: '', selection: { fields: { id: true, functionDefinitionId: true, apiId: true, alias: true, config: true } } }) +useCreatePlatformFunctionApiBindingMutation({ selection: { fields: { id: true } } }) +useUpdatePlatformFunctionApiBindingMutation({ selection: { fields: { id: true } } }) +useDeletePlatformFunctionApiBindingMutation({}) +``` + +## Examples + +### List all platformFunctionApiBindings + +```typescript +const { data, isLoading } = usePlatformFunctionApiBindingsQuery({ + selection: { fields: { id: true, functionDefinitionId: true, apiId: true, alias: true, config: true } }, +}); +``` + +### Create a platformFunctionApiBinding + +```typescript +const { mutate } = useCreatePlatformFunctionApiBindingMutation({ + selection: { fields: { id: true } }, +}); +mutate({ functionDefinitionId: '', apiId: '', alias: '', config: '' }); +``` diff --git a/.agents/skills/hooks-compute/references/platform-function-definition.md b/.agents/skills/hooks-compute/references/platform-function-definition.md new file mode 100644 index 0000000000..4bd0286e6d --- /dev/null +++ b/.agents/skills/hooks-compute/references/platform-function-definition.md @@ -0,0 +1,34 @@ +# platformFunctionDefinition + + + +Function definitions — registered cloud functions with routing, queue, and retry configuration + +## Usage + +```typescript +usePlatformFunctionDefinitionsQuery({ selection: { fields: { id: true, createdAt: true, updatedAt: true, scope: true, name: true, taskIdentifier: true, description: true, isPublished: true, accessChannels: true, publishedAt: true, maxAttempts: true, priority: true, queueName: true, runtime: true, targetSchema: true, targetFunction: true, moduleTable: true, functionColumns: true, payloadArgs: true, image: true, concurrency: true, scaleMin: true, scaleMax: true, timeoutSeconds: true, resources: true, isBuiltIn: true, requiredSecrets: true, requiredConfigs: true, integrations: true, requiredBuckets: true, requiredModels: true, inputs: true, outputs: true, props: true, volatile: true, icon: true, category: true } } }) +usePlatformFunctionDefinitionQuery({ id: '', selection: { fields: { id: true, createdAt: true, updatedAt: true, scope: true, name: true, taskIdentifier: true, description: true, isPublished: true, accessChannels: true, publishedAt: true, maxAttempts: true, priority: true, queueName: true, runtime: true, targetSchema: true, targetFunction: true, moduleTable: true, functionColumns: true, payloadArgs: true, image: true, concurrency: true, scaleMin: true, scaleMax: true, timeoutSeconds: true, resources: true, isBuiltIn: true, requiredSecrets: true, requiredConfigs: true, integrations: true, requiredBuckets: true, requiredModels: true, inputs: true, outputs: true, props: true, volatile: true, icon: true, category: true } } }) +useCreatePlatformFunctionDefinitionMutation({ selection: { fields: { id: true } } }) +useUpdatePlatformFunctionDefinitionMutation({ selection: { fields: { id: true } } }) +useDeletePlatformFunctionDefinitionMutation({}) +``` + +## Examples + +### List all platformFunctionDefinitions + +```typescript +const { data, isLoading } = usePlatformFunctionDefinitionsQuery({ + selection: { fields: { id: true, createdAt: true, updatedAt: true, scope: true, name: true, taskIdentifier: true, description: true, isPublished: true, accessChannels: true, publishedAt: true, maxAttempts: true, priority: true, queueName: true, runtime: true, targetSchema: true, targetFunction: true, moduleTable: true, functionColumns: true, payloadArgs: true, image: true, concurrency: true, scaleMin: true, scaleMax: true, timeoutSeconds: true, resources: true, isBuiltIn: true, requiredSecrets: true, requiredConfigs: true, integrations: true, requiredBuckets: true, requiredModels: true, inputs: true, outputs: true, props: true, volatile: true, icon: true, category: true } }, +}); +``` + +### Create a platformFunctionDefinition + +```typescript +const { mutate } = useCreatePlatformFunctionDefinitionMutation({ + selection: { fields: { id: true } }, +}); +mutate({ scope: '', name: '', taskIdentifier: '', description: '', isPublished: '', accessChannels: '', publishedAt: '', maxAttempts: '', priority: '', queueName: '', runtime: '', targetSchema: '', targetFunction: '', moduleTable: '', functionColumns: '', payloadArgs: '', image: '', concurrency: '', scaleMin: '', scaleMax: '', timeoutSeconds: '', resources: '', isBuiltIn: '', requiredSecrets: '', requiredConfigs: '', integrations: '', requiredBuckets: '', requiredModels: '', inputs: '', outputs: '', props: '', volatile: '', icon: '', category: '' }); +``` diff --git a/.agents/skills/hooks-compute/references/platform-function-deployment-event.md b/.agents/skills/hooks-compute/references/platform-function-deployment-event.md new file mode 100644 index 0000000000..93af82828b --- /dev/null +++ b/.agents/skills/hooks-compute/references/platform-function-deployment-event.md @@ -0,0 +1,34 @@ +# platformFunctionDeploymentEvent + + + +Deployment lifecycle events — audit log of provisioning, scaling, and failure events + +## Usage + +```typescript +usePlatformFunctionDeploymentEventsQuery({ selection: { fields: { createdAt: true, id: true, deploymentId: true, eventType: true, actorId: true, message: true, metadata: true } } }) +usePlatformFunctionDeploymentEventQuery({ id: '', selection: { fields: { createdAt: true, id: true, deploymentId: true, eventType: true, actorId: true, message: true, metadata: true } } }) +useCreatePlatformFunctionDeploymentEventMutation({ selection: { fields: { id: true } } }) +useUpdatePlatformFunctionDeploymentEventMutation({ selection: { fields: { id: true } } }) +useDeletePlatformFunctionDeploymentEventMutation({}) +``` + +## Examples + +### List all platformFunctionDeploymentEvents + +```typescript +const { data, isLoading } = usePlatformFunctionDeploymentEventsQuery({ + selection: { fields: { createdAt: true, id: true, deploymentId: true, eventType: true, actorId: true, message: true, metadata: true } }, +}); +``` + +### Create a platformFunctionDeploymentEvent + +```typescript +const { mutate } = useCreatePlatformFunctionDeploymentEventMutation({ + selection: { fields: { id: true } }, +}); +mutate({ deploymentId: '', eventType: '', actorId: '', message: '', metadata: '' }); +``` diff --git a/.agents/skills/hooks-compute/references/platform-function-deployment.md b/.agents/skills/hooks-compute/references/platform-function-deployment.md new file mode 100644 index 0000000000..04a9fe67bc --- /dev/null +++ b/.agents/skills/hooks-compute/references/platform-function-deployment.md @@ -0,0 +1,34 @@ +# platformFunctionDeployment + + + +Function deployment bindings — ties a handler image to a namespace for Knative provisioning and routing (one row per handler image per namespace) + +## Usage + +```typescript +usePlatformFunctionDeploymentsQuery({ selection: { fields: { id: true, createdAt: true, updatedAt: true, namespaceId: true, status: true, serviceUrl: true, serviceName: true, revision: true, image: true, imageVersion: true, handlerName: true, concurrency: true, scaleMin: true, scaleMax: true, timeoutSeconds: true, resources: true, lastError: true, lastErrorAt: true, errorCount: true, labels: true, annotations: true } } }) +usePlatformFunctionDeploymentQuery({ id: '', selection: { fields: { id: true, createdAt: true, updatedAt: true, namespaceId: true, status: true, serviceUrl: true, serviceName: true, revision: true, image: true, imageVersion: true, handlerName: true, concurrency: true, scaleMin: true, scaleMax: true, timeoutSeconds: true, resources: true, lastError: true, lastErrorAt: true, errorCount: true, labels: true, annotations: true } } }) +useCreatePlatformFunctionDeploymentMutation({ selection: { fields: { id: true } } }) +useUpdatePlatformFunctionDeploymentMutation({ selection: { fields: { id: true } } }) +useDeletePlatformFunctionDeploymentMutation({}) +``` + +## Examples + +### List all platformFunctionDeployments + +```typescript +const { data, isLoading } = usePlatformFunctionDeploymentsQuery({ + selection: { fields: { id: true, createdAt: true, updatedAt: true, namespaceId: true, status: true, serviceUrl: true, serviceName: true, revision: true, image: true, imageVersion: true, handlerName: true, concurrency: true, scaleMin: true, scaleMax: true, timeoutSeconds: true, resources: true, lastError: true, lastErrorAt: true, errorCount: true, labels: true, annotations: true } }, +}); +``` + +### Create a platformFunctionDeployment + +```typescript +const { mutate } = useCreatePlatformFunctionDeploymentMutation({ + selection: { fields: { id: true } }, +}); +mutate({ namespaceId: '', status: '', serviceUrl: '', serviceName: '', revision: '', image: '', imageVersion: '', handlerName: '', concurrency: '', scaleMin: '', scaleMax: '', timeoutSeconds: '', resources: '', lastError: '', lastErrorAt: '', errorCount: '', labels: '', annotations: '' }); +``` diff --git a/.agents/skills/hooks-compute/references/platform-function-execution-log.md b/.agents/skills/hooks-compute/references/platform-function-execution-log.md new file mode 100644 index 0000000000..8e760cabcd --- /dev/null +++ b/.agents/skills/hooks-compute/references/platform-function-execution-log.md @@ -0,0 +1,34 @@ +# platformFunctionExecutionLog + + + +Function execution logs — structured console output per invocation + +## Usage + +```typescript +usePlatformFunctionExecutionLogsQuery({ selection: { fields: { createdAt: true, id: true, invocationId: true, taskIdentifier: true, logLevel: true, message: true, metadata: true, actorId: true } } }) +usePlatformFunctionExecutionLogQuery({ id: '', selection: { fields: { createdAt: true, id: true, invocationId: true, taskIdentifier: true, logLevel: true, message: true, metadata: true, actorId: true } } }) +useCreatePlatformFunctionExecutionLogMutation({ selection: { fields: { id: true } } }) +useUpdatePlatformFunctionExecutionLogMutation({ selection: { fields: { id: true } } }) +useDeletePlatformFunctionExecutionLogMutation({}) +``` + +## Examples + +### List all platformFunctionExecutionLogs + +```typescript +const { data, isLoading } = usePlatformFunctionExecutionLogsQuery({ + selection: { fields: { createdAt: true, id: true, invocationId: true, taskIdentifier: true, logLevel: true, message: true, metadata: true, actorId: true } }, +}); +``` + +### Create a platformFunctionExecutionLog + +```typescript +const { mutate } = useCreatePlatformFunctionExecutionLogMutation({ + selection: { fields: { id: true } }, +}); +mutate({ invocationId: '', taskIdentifier: '', logLevel: '', message: '', metadata: '', actorId: '' }); +``` diff --git a/.agents/skills/hooks-compute/references/platform-function-invocation.md b/.agents/skills/hooks-compute/references/platform-function-invocation.md new file mode 100644 index 0000000000..c6a4471b8d --- /dev/null +++ b/.agents/skills/hooks-compute/references/platform-function-invocation.md @@ -0,0 +1,34 @@ +# platformFunctionInvocation + + + +Function invocation log — INSERT to call a function (business-layer, metered). Linked to definitions by task_identifier string. + +## Usage + +```typescript +usePlatformFunctionInvocationsQuery({ selection: { fields: { createdAt: true, id: true, actorId: true, taskIdentifier: true, payload: true, status: true, result: true, error: true, durationMs: true, jobId: true, startedAt: true, completedAt: true, parentInvocationId: true, graphExecutionId: true } } }) +usePlatformFunctionInvocationQuery({ id: '', selection: { fields: { createdAt: true, id: true, actorId: true, taskIdentifier: true, payload: true, status: true, result: true, error: true, durationMs: true, jobId: true, startedAt: true, completedAt: true, parentInvocationId: true, graphExecutionId: true } } }) +useCreatePlatformFunctionInvocationMutation({ selection: { fields: { id: true } } }) +useUpdatePlatformFunctionInvocationMutation({ selection: { fields: { id: true } } }) +useDeletePlatformFunctionInvocationMutation({}) +``` + +## Examples + +### List all platformFunctionInvocations + +```typescript +const { data, isLoading } = usePlatformFunctionInvocationsQuery({ + selection: { fields: { createdAt: true, id: true, actorId: true, taskIdentifier: true, payload: true, status: true, result: true, error: true, durationMs: true, jobId: true, startedAt: true, completedAt: true, parentInvocationId: true, graphExecutionId: true } }, +}); +``` + +### Create a platformFunctionInvocation + +```typescript +const { mutate } = useCreatePlatformFunctionInvocationMutation({ + selection: { fields: { id: true } }, +}); +mutate({ actorId: '', taskIdentifier: '', payload: '', status: '', result: '', error: '', durationMs: '', jobId: '', startedAt: '', completedAt: '', parentInvocationId: '', graphExecutionId: '' }); +``` diff --git a/.agents/skills/hooks-compute/references/platform-namespace-event.md b/.agents/skills/hooks-compute/references/platform-namespace-event.md index 05a9c912eb..af4d309017 100644 --- a/.agents/skills/hooks-compute/references/platform-namespace-event.md +++ b/.agents/skills/hooks-compute/references/platform-namespace-event.md @@ -7,8 +7,8 @@ Namespace lifecycle events — audit log of creation, activation, deactivation, ## Usage ```typescript -usePlatformNamespaceEventsQuery({ selection: { fields: { createdAt: true, id: true, namespaceId: true, eventType: true, actorId: true, message: true, metadata: true, cpuMillicores: true, memoryBytes: true, storageBytes: true, networkIngressBytes: true, networkEgressBytes: true, podCount: true, metrics: true, databaseId: true } } }) -usePlatformNamespaceEventQuery({ id: '', selection: { fields: { createdAt: true, id: true, namespaceId: true, eventType: true, actorId: true, message: true, metadata: true, cpuMillicores: true, memoryBytes: true, storageBytes: true, networkIngressBytes: true, networkEgressBytes: true, podCount: true, metrics: true, databaseId: true } } }) +usePlatformNamespaceEventsQuery({ selection: { fields: { createdAt: true, id: true, namespaceId: true, eventType: true, actorId: true, message: true, metadata: true, cpuMillicores: true, memoryBytes: true, storageBytes: true, networkIngressBytes: true, networkEgressBytes: true, podCount: true, metrics: true } } }) +usePlatformNamespaceEventQuery({ id: '', selection: { fields: { createdAt: true, id: true, namespaceId: true, eventType: true, actorId: true, message: true, metadata: true, cpuMillicores: true, memoryBytes: true, storageBytes: true, networkIngressBytes: true, networkEgressBytes: true, podCount: true, metrics: true } } }) useCreatePlatformNamespaceEventMutation({ selection: { fields: { id: true } } }) useUpdatePlatformNamespaceEventMutation({ selection: { fields: { id: true } } }) useDeletePlatformNamespaceEventMutation({}) @@ -20,7 +20,7 @@ useDeletePlatformNamespaceEventMutation({}) ```typescript const { data, isLoading } = usePlatformNamespaceEventsQuery({ - selection: { fields: { createdAt: true, id: true, namespaceId: true, eventType: true, actorId: true, message: true, metadata: true, cpuMillicores: true, memoryBytes: true, storageBytes: true, networkIngressBytes: true, networkEgressBytes: true, podCount: true, metrics: true, databaseId: true } }, + selection: { fields: { createdAt: true, id: true, namespaceId: true, eventType: true, actorId: true, message: true, metadata: true, cpuMillicores: true, memoryBytes: true, storageBytes: true, networkIngressBytes: true, networkEgressBytes: true, podCount: true, metrics: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = usePlatformNamespaceEventsQuery({ const { mutate } = useCreatePlatformNamespaceEventMutation({ selection: { fields: { id: true } }, }); -mutate({ namespaceId: '', eventType: '', actorId: '', message: '', metadata: '', cpuMillicores: '', memoryBytes: '', storageBytes: '', networkIngressBytes: '', networkEgressBytes: '', podCount: '', metrics: '', databaseId: '' }); +mutate({ namespaceId: '', eventType: '', actorId: '', message: '', metadata: '', cpuMillicores: '', memoryBytes: '', storageBytes: '', networkIngressBytes: '', networkEgressBytes: '', podCount: '', metrics: '' }); ``` diff --git a/.agents/skills/hooks-compute/references/platform-namespace.md b/.agents/skills/hooks-compute/references/platform-namespace.md index abf251bdef..95eabeb6e1 100644 --- a/.agents/skills/hooks-compute/references/platform-namespace.md +++ b/.agents/skills/hooks-compute/references/platform-namespace.md @@ -7,8 +7,8 @@ Logical namespace containers for grouping secrets, config, functions, and other ## Usage ```typescript -usePlatformNamespacesQuery({ selection: { fields: { id: true, createdAt: true, updatedAt: true, name: true, namespaceName: true, description: true, isActive: true, labels: true, annotations: true, databaseId: true, sourceDatabaseId: true, sourceScope: true, isManaged: true } } }) -usePlatformNamespaceQuery({ id: '', selection: { fields: { id: true, createdAt: true, updatedAt: true, name: true, namespaceName: true, description: true, isActive: true, labels: true, annotations: true, databaseId: true, sourceDatabaseId: true, sourceScope: true, isManaged: true } } }) +usePlatformNamespacesQuery({ selection: { fields: { id: true, createdAt: true, updatedAt: true, name: true, namespaceName: true, description: true, isActive: true, status: true, lastError: true, labels: true, annotations: true, isManaged: true } } }) +usePlatformNamespaceQuery({ id: '', selection: { fields: { id: true, createdAt: true, updatedAt: true, name: true, namespaceName: true, description: true, isActive: true, status: true, lastError: true, labels: true, annotations: true, isManaged: true } } }) useCreatePlatformNamespaceMutation({ selection: { fields: { id: true } } }) useUpdatePlatformNamespaceMutation({ selection: { fields: { id: true } } }) useDeletePlatformNamespaceMutation({}) @@ -20,7 +20,7 @@ useDeletePlatformNamespaceMutation({}) ```typescript const { data, isLoading } = usePlatformNamespacesQuery({ - selection: { fields: { id: true, createdAt: true, updatedAt: true, name: true, namespaceName: true, description: true, isActive: true, labels: true, annotations: true, databaseId: true, sourceDatabaseId: true, sourceScope: true, isManaged: true } }, + selection: { fields: { id: true, createdAt: true, updatedAt: true, name: true, namespaceName: true, description: true, isActive: true, status: true, lastError: true, labels: true, annotations: true, isManaged: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = usePlatformNamespacesQuery({ const { mutate } = useCreatePlatformNamespaceMutation({ selection: { fields: { id: true } }, }); -mutate({ name: '', namespaceName: '', description: '', isActive: '', labels: '', annotations: '', databaseId: '', sourceDatabaseId: '', sourceScope: '', isManaged: '' }); +mutate({ name: '', namespaceName: '', description: '', isActive: '', status: '', lastError: '', labels: '', annotations: '', isManaged: '' }); ``` diff --git a/.agents/skills/hooks-compute/references/platform-resource-definition.md b/.agents/skills/hooks-compute/references/platform-resource-definition.md new file mode 100644 index 0000000000..c08081d00c --- /dev/null +++ b/.agents/skills/hooks-compute/references/platform-resource-definition.md @@ -0,0 +1,34 @@ +# platformResourceDefinition + + + +Resource definitions — templates for resource kinds declaring default spec and secret/config requirements + +## Usage + +```typescript +usePlatformResourceDefinitionsQuery({ selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, namespaceId: true, kind: true, name: true, slug: true, description: true, defaultSpec: true, requiredSecrets: true, requiredConfigs: true, integrations: true, labels: true, annotations: true, stepUpMinAge: true } } }) +usePlatformResourceDefinitionQuery({ id: '', selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, namespaceId: true, kind: true, name: true, slug: true, description: true, defaultSpec: true, requiredSecrets: true, requiredConfigs: true, integrations: true, labels: true, annotations: true, stepUpMinAge: true } } }) +useCreatePlatformResourceDefinitionMutation({ selection: { fields: { id: true } } }) +useUpdatePlatformResourceDefinitionMutation({ selection: { fields: { id: true } } }) +useDeletePlatformResourceDefinitionMutation({}) +``` + +## Examples + +### List all platformResourceDefinitions + +```typescript +const { data, isLoading } = usePlatformResourceDefinitionsQuery({ + selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, namespaceId: true, kind: true, name: true, slug: true, description: true, defaultSpec: true, requiredSecrets: true, requiredConfigs: true, integrations: true, labels: true, annotations: true, stepUpMinAge: true } }, +}); +``` + +### Create a platformResourceDefinition + +```typescript +const { mutate } = useCreatePlatformResourceDefinitionMutation({ + selection: { fields: { id: true } }, +}); +mutate({ createdBy: '', updatedBy: '', namespaceId: '', kind: '', name: '', slug: '', description: '', defaultSpec: '', requiredSecrets: '', requiredConfigs: '', integrations: '', labels: '', annotations: '', stepUpMinAge: '' }); +``` diff --git a/.agents/skills/hooks-compute/references/platform-resource-event.md b/.agents/skills/hooks-compute/references/platform-resource-event.md new file mode 100644 index 0000000000..232614f12e --- /dev/null +++ b/.agents/skills/hooks-compute/references/platform-resource-event.md @@ -0,0 +1,34 @@ +# platformResourceEvent + + + +Resource lifecycle events — audit log of provisioning, updates, and failure events + +## Usage + +```typescript +usePlatformResourceEventsQuery({ selection: { fields: { createdAt: true, id: true, resourceId: true, eventType: true, actorId: true, message: true, metadata: true } } }) +usePlatformResourceEventQuery({ id: '', selection: { fields: { createdAt: true, id: true, resourceId: true, eventType: true, actorId: true, message: true, metadata: true } } }) +useCreatePlatformResourceEventMutation({ selection: { fields: { id: true } } }) +useUpdatePlatformResourceEventMutation({ selection: { fields: { id: true } } }) +useDeletePlatformResourceEventMutation({}) +``` + +## Examples + +### List all platformResourceEvents + +```typescript +const { data, isLoading } = usePlatformResourceEventsQuery({ + selection: { fields: { createdAt: true, id: true, resourceId: true, eventType: true, actorId: true, message: true, metadata: true } }, +}); +``` + +### Create a platformResourceEvent + +```typescript +const { mutate } = useCreatePlatformResourceEventMutation({ + selection: { fields: { id: true } }, +}); +mutate({ resourceId: '', eventType: '', actorId: '', message: '', metadata: '' }); +``` diff --git a/.agents/skills/hooks-compute/references/platform-resource-status-check.md b/.agents/skills/hooks-compute/references/platform-resource-status-check.md new file mode 100644 index 0000000000..913432fab8 --- /dev/null +++ b/.agents/skills/hooks-compute/references/platform-resource-status-check.md @@ -0,0 +1,34 @@ +# platformResourceStatusCheck + + + +On-demand resource status checks — diagnostic snapshots from the runtime (K8s status, conditions, log tails) + +## Usage + +```typescript +usePlatformResourceStatusChecksQuery({ selection: { fields: { id: true, resourceId: true, requestedBy: true, requestedAt: true, completedAt: true, status: true, result: true } } }) +usePlatformResourceStatusCheckQuery({ id: '', selection: { fields: { id: true, resourceId: true, requestedBy: true, requestedAt: true, completedAt: true, status: true, result: true } } }) +useCreatePlatformResourceStatusCheckMutation({ selection: { fields: { id: true } } }) +useUpdatePlatformResourceStatusCheckMutation({ selection: { fields: { id: true } } }) +useDeletePlatformResourceStatusCheckMutation({}) +``` + +## Examples + +### List all platformResourceStatusChecks + +```typescript +const { data, isLoading } = usePlatformResourceStatusChecksQuery({ + selection: { fields: { id: true, resourceId: true, requestedBy: true, requestedAt: true, completedAt: true, status: true, result: true } }, +}); +``` + +### Create a platformResourceStatusCheck + +```typescript +const { mutate } = useCreatePlatformResourceStatusCheckMutation({ + selection: { fields: { id: true } }, +}); +mutate({ resourceId: '', requestedBy: '', requestedAt: '', completedAt: '', status: '', result: '' }); +``` diff --git a/.agents/skills/hooks-compute/references/platform-resource.md b/.agents/skills/hooks-compute/references/platform-resource.md new file mode 100644 index 0000000000..98d37be77d --- /dev/null +++ b/.agents/skills/hooks-compute/references/platform-resource.md @@ -0,0 +1,34 @@ +# platformResource + + + +Unified K8s resource declarations — stores desired state (spec) and observed state (status) for all resource kinds within a namespace + +## Usage + +```typescript +usePlatformResourcesQuery({ selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, namespaceId: true, kind: true, name: true, slug: true, spec: true, status: true, statusObserved: true, lastError: true, errorCount: true, labels: true, annotations: true, requiredSecrets: true, requiredConfigs: true, integrations: true, resourceDefinitionId: true } } }) +usePlatformResourceQuery({ id: '', selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, namespaceId: true, kind: true, name: true, slug: true, spec: true, status: true, statusObserved: true, lastError: true, errorCount: true, labels: true, annotations: true, requiredSecrets: true, requiredConfigs: true, integrations: true, resourceDefinitionId: true } } }) +useCreatePlatformResourceMutation({ selection: { fields: { id: true } } }) +useUpdatePlatformResourceMutation({ selection: { fields: { id: true } } }) +useDeletePlatformResourceMutation({}) +``` + +## Examples + +### List all platformResources + +```typescript +const { data, isLoading } = usePlatformResourcesQuery({ + selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, namespaceId: true, kind: true, name: true, slug: true, spec: true, status: true, statusObserved: true, lastError: true, errorCount: true, labels: true, annotations: true, requiredSecrets: true, requiredConfigs: true, integrations: true, resourceDefinitionId: true } }, +}); +``` + +### Create a platformResource + +```typescript +const { mutate } = useCreatePlatformResourceMutation({ + selection: { fields: { id: true } }, +}); +mutate({ createdBy: '', updatedBy: '', namespaceId: '', kind: '', name: '', slug: '', spec: '', status: '', statusObserved: '', lastError: '', errorCount: '', labels: '', annotations: '', requiredSecrets: '', requiredConfigs: '', integrations: '', resourceDefinitionId: '' }); +``` diff --git a/.agents/skills/hooks-compute/references/platform-resources-requirements-state.md b/.agents/skills/hooks-compute/references/platform-resources-requirements-state.md new file mode 100644 index 0000000000..c66aaedd84 --- /dev/null +++ b/.agents/skills/hooks-compute/references/platform-resources-requirements-state.md @@ -0,0 +1,31 @@ +# platformResourcesRequirementsState + + + +React Query hooks for PlatformResourcesRequirementsState data operations + +## Usage + +```typescript +usePlatformResourcesRequirementsStatesQuery({ selection: { fields: { resourceId: true, slug: true, secretsHash: true, configHash: true, requirementsHash: true, secretsObjectName: true, configObjectName: true } } }) +useCreatePlatformResourcesRequirementsStateMutation({ selection: { fields: { id: true } } }) +``` + +## Examples + +### List all platformResourcesRequirementsStates + +```typescript +const { data, isLoading } = usePlatformResourcesRequirementsStatesQuery({ + selection: { fields: { resourceId: true, slug: true, secretsHash: true, configHash: true, requirementsHash: true, secretsObjectName: true, configObjectName: true } }, +}); +``` + +### Create a platformResourcesRequirementsState + +```typescript +const { mutate } = useCreatePlatformResourcesRequirementsStateMutation({ + selection: { fields: { id: true } }, +}); +mutate({ resourceId: '', slug: '', secretsHash: '', configHash: '', requirementsHash: '', secretsObjectName: '', configObjectName: '' }); +``` diff --git a/.agents/skills/hooks-compute/references/platform-resources-resolved-requirement.md b/.agents/skills/hooks-compute/references/platform-resources-resolved-requirement.md new file mode 100644 index 0000000000..77759aabff --- /dev/null +++ b/.agents/skills/hooks-compute/references/platform-resources-resolved-requirement.md @@ -0,0 +1,31 @@ +# platformResourcesResolvedRequirement + + + +React Query hooks for PlatformResourcesResolvedRequirement data operations + +## Usage + +```typescript +usePlatformResourcesResolvedRequirementsQuery({ selection: { fields: { resourceId: true, slug: true, namespaceId: true, requirementKind: true, name: true, required: true, atomId: true, present: true, secretsObjectName: true, configObjectName: true } } }) +useCreatePlatformResourcesResolvedRequirementMutation({ selection: { fields: { id: true } } }) +``` + +## Examples + +### List all platformResourcesResolvedRequirements + +```typescript +const { data, isLoading } = usePlatformResourcesResolvedRequirementsQuery({ + selection: { fields: { resourceId: true, slug: true, namespaceId: true, requirementKind: true, name: true, required: true, atomId: true, present: true, secretsObjectName: true, configObjectName: true } }, +}); +``` + +### Create a platformResourcesResolvedRequirement + +```typescript +const { mutate } = useCreatePlatformResourcesResolvedRequirementMutation({ + selection: { fields: { id: true } }, +}); +mutate({ resourceId: '', slug: '', namespaceId: '', requirementKind: '', name: '', required: '', atomId: '', present: '', secretsObjectName: '', configObjectName: '' }); +``` diff --git a/.agents/skills/hooks-compute/references/resource-definition.md b/.agents/skills/hooks-compute/references/resource-definition.md new file mode 100644 index 0000000000..0cd04eb170 --- /dev/null +++ b/.agents/skills/hooks-compute/references/resource-definition.md @@ -0,0 +1,34 @@ +# resourceDefinition + + + +Resource definitions — templates for resource kinds declaring default spec and secret/config requirements + +## Usage + +```typescript +useResourceDefinitionsQuery({ selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, namespaceId: true, kind: true, name: true, slug: true, description: true, defaultSpec: true, requiredSecrets: true, requiredConfigs: true, integrations: true, labels: true, annotations: true, stepUpMinAge: true, databaseId: true } } }) +useResourceDefinitionQuery({ id: '', selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, namespaceId: true, kind: true, name: true, slug: true, description: true, defaultSpec: true, requiredSecrets: true, requiredConfigs: true, integrations: true, labels: true, annotations: true, stepUpMinAge: true, databaseId: true } } }) +useCreateResourceDefinitionMutation({ selection: { fields: { id: true } } }) +useUpdateResourceDefinitionMutation({ selection: { fields: { id: true } } }) +useDeleteResourceDefinitionMutation({}) +``` + +## Examples + +### List all resourceDefinitions + +```typescript +const { data, isLoading } = useResourceDefinitionsQuery({ + selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, namespaceId: true, kind: true, name: true, slug: true, description: true, defaultSpec: true, requiredSecrets: true, requiredConfigs: true, integrations: true, labels: true, annotations: true, stepUpMinAge: true, databaseId: true } }, +}); +``` + +### Create a resourceDefinition + +```typescript +const { mutate } = useCreateResourceDefinitionMutation({ + selection: { fields: { id: true } }, +}); +mutate({ createdBy: '', updatedBy: '', namespaceId: '', kind: '', name: '', slug: '', description: '', defaultSpec: '', requiredSecrets: '', requiredConfigs: '', integrations: '', labels: '', annotations: '', stepUpMinAge: '', databaseId: '' }); +``` diff --git a/.agents/skills/hooks-compute/references/resource-status-check.md b/.agents/skills/hooks-compute/references/resource-status-check.md new file mode 100644 index 0000000000..ab9bfaceca --- /dev/null +++ b/.agents/skills/hooks-compute/references/resource-status-check.md @@ -0,0 +1,34 @@ +# resourceStatusCheck + + + +On-demand resource status checks — diagnostic snapshots from the runtime (K8s status, conditions, log tails) + +## Usage + +```typescript +useResourceStatusChecksQuery({ selection: { fields: { id: true, resourceId: true, databaseId: true, requestedBy: true, requestedAt: true, completedAt: true, status: true, result: true } } }) +useResourceStatusCheckQuery({ id: '', selection: { fields: { id: true, resourceId: true, databaseId: true, requestedBy: true, requestedAt: true, completedAt: true, status: true, result: true } } }) +useCreateResourceStatusCheckMutation({ selection: { fields: { id: true } } }) +useUpdateResourceStatusCheckMutation({ selection: { fields: { id: true } } }) +useDeleteResourceStatusCheckMutation({}) +``` + +## Examples + +### List all resourceStatusChecks + +```typescript +const { data, isLoading } = useResourceStatusChecksQuery({ + selection: { fields: { id: true, resourceId: true, databaseId: true, requestedBy: true, requestedAt: true, completedAt: true, status: true, result: true } }, +}); +``` + +### Create a resourceStatusCheck + +```typescript +const { mutate } = useCreateResourceStatusCheckMutation({ + selection: { fields: { id: true } }, +}); +mutate({ resourceId: '', databaseId: '', requestedBy: '', requestedAt: '', completedAt: '', status: '', result: '' }); +``` diff --git a/.agents/skills/hooks-compute/references/resource.md b/.agents/skills/hooks-compute/references/resource.md index c40cbac03b..77136ca008 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: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, namespaceId: true, kind: true, name: true, slug: true, spec: true, status: true, statusObserved: true, lastError: true, errorCount: true, labels: true, annotations: true, databaseId: true } } }) -useResourceQuery({ id: '', selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, namespaceId: true, kind: true, name: true, slug: true, spec: true, status: true, statusObserved: true, lastError: true, errorCount: true, labels: true, annotations: true, databaseId: true } } }) +useResourcesQuery({ selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, namespaceId: true, kind: true, name: true, slug: true, spec: true, status: true, statusObserved: true, lastError: true, errorCount: true, labels: true, annotations: true, databaseId: true, requiredSecrets: true, requiredConfigs: true, integrations: true, resourceDefinitionId: true } } }) +useResourceQuery({ id: '', selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, namespaceId: true, kind: true, name: true, slug: true, spec: true, status: true, statusObserved: true, lastError: true, errorCount: true, labels: true, annotations: true, databaseId: true, requiredSecrets: true, requiredConfigs: true, integrations: true, resourceDefinitionId: true } } }) useCreateResourceMutation({ selection: { fields: { id: true } } }) useUpdateResourceMutation({ selection: { fields: { id: true } } }) useDeleteResourceMutation({}) @@ -20,7 +20,7 @@ useDeleteResourceMutation({}) ```typescript const { data, isLoading } = useResourcesQuery({ - selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, namespaceId: true, kind: true, name: true, slug: true, spec: true, status: true, statusObserved: true, lastError: true, errorCount: true, labels: true, annotations: true, databaseId: true } }, + selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, namespaceId: true, kind: true, name: true, slug: true, spec: true, status: true, statusObserved: true, lastError: true, errorCount: true, labels: true, annotations: true, databaseId: true, requiredSecrets: true, requiredConfigs: true, integrations: true, resourceDefinitionId: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useResourcesQuery({ const { mutate } = useCreateResourceMutation({ selection: { fields: { id: true } }, }); -mutate({ createdBy: '', updatedBy: '', namespaceId: '', kind: '', name: '', slug: '', spec: '', status: '', statusObserved: '', lastError: '', errorCount: '', labels: '', annotations: '', databaseId: '' }); +mutate({ createdBy: '', updatedBy: '', namespaceId: '', kind: '', name: '', slug: '', spec: '', status: '', statusObserved: '', lastError: '', errorCount: '', labels: '', annotations: '', databaseId: '', requiredSecrets: '', requiredConfigs: '', integrations: '', resourceDefinitionId: '' }); ``` diff --git a/.agents/skills/hooks-compute/references/resources-requirements-state.md b/.agents/skills/hooks-compute/references/resources-requirements-state.md new file mode 100644 index 0000000000..f1e381cb13 --- /dev/null +++ b/.agents/skills/hooks-compute/references/resources-requirements-state.md @@ -0,0 +1,31 @@ +# resourcesRequirementsState + + + +React Query hooks for ResourcesRequirementsState data operations + +## Usage + +```typescript +useResourcesRequirementsStatesQuery({ selection: { fields: { resourceId: true, slug: true, secretsHash: true, configHash: true, requirementsHash: true, secretsObjectName: true, configObjectName: true } } }) +useCreateResourcesRequirementsStateMutation({ selection: { fields: { id: true } } }) +``` + +## Examples + +### List all resourcesRequirementsStates + +```typescript +const { data, isLoading } = useResourcesRequirementsStatesQuery({ + selection: { fields: { resourceId: true, slug: true, secretsHash: true, configHash: true, requirementsHash: true, secretsObjectName: true, configObjectName: true } }, +}); +``` + +### Create a resourcesRequirementsState + +```typescript +const { mutate } = useCreateResourcesRequirementsStateMutation({ + selection: { fields: { id: true } }, +}); +mutate({ resourceId: '', slug: '', secretsHash: '', configHash: '', requirementsHash: '', secretsObjectName: '', configObjectName: '' }); +``` diff --git a/.agents/skills/hooks-compute/references/resources-resolved-requirement.md b/.agents/skills/hooks-compute/references/resources-resolved-requirement.md new file mode 100644 index 0000000000..eb42d94718 --- /dev/null +++ b/.agents/skills/hooks-compute/references/resources-resolved-requirement.md @@ -0,0 +1,31 @@ +# resourcesResolvedRequirement + + + +React Query hooks for ResourcesResolvedRequirement data operations + +## Usage + +```typescript +useResourcesResolvedRequirementsQuery({ selection: { fields: { resourceId: true, slug: true, namespaceId: true, requirementKind: true, name: true, required: true, atomId: true, present: true, secretsObjectName: true, configObjectName: true } } }) +useCreateResourcesResolvedRequirementMutation({ selection: { fields: { id: true } } }) +``` + +## Examples + +### List all resourcesResolvedRequirements + +```typescript +const { data, isLoading } = useResourcesResolvedRequirementsQuery({ + selection: { fields: { resourceId: true, slug: true, namespaceId: true, requirementKind: true, name: true, required: true, atomId: true, present: true, secretsObjectName: true, configObjectName: true } }, +}); +``` + +### Create a resourcesResolvedRequirement + +```typescript +const { mutate } = useCreateResourcesResolvedRequirementMutation({ + selection: { fields: { id: true } }, +}); +mutate({ resourceId: '', slug: '', namespaceId: '', requirementKind: '', name: '', required: '', atomId: '', present: '', secretsObjectName: '', configObjectName: '' }); +``` diff --git a/.agents/skills/hooks-config/SKILL.md b/.agents/skills/hooks-config/SKILL.md index fa6b09c0cf..8e63cc04ef 100644 --- a/.agents/skills/hooks-config/SKILL.md +++ b/.agents/skills/hooks-config/SKILL.md @@ -1,25 +1,25 @@ --- name: hooks-config -description: React Query hooks for the config API — provides typed query and mutation hooks for 2 tables and 9 custom operations +description: React Query hooks for the config API — provides typed query and mutation hooks for 5 tables and 13 custom operations --- # hooks-config -React Query hooks for the config API — provides typed query and mutation hooks for 2 tables and 9 custom operations +React Query hooks for the config API — provides typed query and mutation hooks for 5 tables and 13 custom operations ## Usage ```typescript // Import hooks -import { usePlatformConfigDefinitionsQuery } from './hooks'; +import { usePlatformConfigsQuery } from './hooks'; // Query hooks: useQuery, usesQuery // Mutation hooks: useCreateMutation, useUpdateMutation, useDeleteMutation // Bulk mutation hooks (when enabled): useBulkCreateMutation, useBulkUpsertMutation, etc. -const { data, isLoading } = usePlatformConfigDefinitionsQuery({ +const { data, isLoading } = usePlatformConfigsQuery({ selection: { fields: { id: true } }, }); ``` @@ -29,7 +29,7 @@ const { data, isLoading } = usePlatformConfigDefinitionsQuery({ ### Query records ```typescript -const { data, isLoading } = usePlatformConfigDefinitionsQuery({ +const { data, isLoading } = usePlatformConfigsQuery({ selection: { fields: { id: true } }, }); ``` @@ -38,14 +38,21 @@ const { data, isLoading } = usePlatformConfigDefinitionsQuery({ See the `references/` directory for detailed per-entity API documentation: -- [platform-config-definition](references/platform-config-definition.md) - [platform-config](references/platform-config.md) +- [config](references/config.md) +- [platform-internal-secret](references/platform-internal-secret.md) +- [platform-secret](references/platform-secret.md) +- [secret](references/secret.md) +- [platform-internal-secrets-del](references/platform-internal-secrets-del.md) - [platform-secrets-del](references/platform-secrets-del.md) -- [org-secrets-del](references/org-secrets-del.md) +- [secrets-del](references/secrets-del.md) +- [platform-internal-secrets-remove-array](references/platform-internal-secrets-remove-array.md) - [platform-secrets-remove-array](references/platform-secrets-remove-array.md) -- [org-secrets-remove-array](references/org-secrets-remove-array.md) +- [secrets-remove-array](references/secrets-remove-array.md) +- [platform-internal-secrets-rotate](references/platform-internal-secrets-rotate.md) +- [platform-internal-secrets-set](references/platform-internal-secrets-set.md) - [platform-secrets-rotate](references/platform-secrets-rotate.md) +- [secrets-rotate](references/secrets-rotate.md) - [platform-secrets-set](references/platform-secrets-set.md) -- [org-secrets-rotate](references/org-secrets-rotate.md) -- [org-secrets-set](references/org-secrets-set.md) +- [secrets-set](references/secrets-set.md) - [provision-bucket](references/provision-bucket.md) diff --git a/.agents/skills/hooks-config/references/config.md b/.agents/skills/hooks-config/references/config.md new file mode 100644 index 0000000000..28586acf42 --- /dev/null +++ b/.agents/skills/hooks-config/references/config.md @@ -0,0 +1,34 @@ +# config + + + +Namespace-backed plaintext key-value config store (like a k8s ConfigMap); admin-only, fully CRUD-exposed + +## Usage + +```typescript +useConfigsQuery({ selection: { fields: { id: true, namespaceId: true, databaseId: true, name: true, provider: true, value: true, labels: true, annotations: true, description: true, createdAt: true, updatedAt: true, expiresAt: true } } }) +useConfigQuery({ id: '', selection: { fields: { id: true, namespaceId: true, databaseId: true, name: true, provider: true, value: true, labels: true, annotations: true, description: true, createdAt: true, updatedAt: true, expiresAt: true } } }) +useCreateConfigMutation({ selection: { fields: { id: true } } }) +useUpdateConfigMutation({ selection: { fields: { id: true } } }) +useDeleteConfigMutation({}) +``` + +## Examples + +### List all configs + +```typescript +const { data, isLoading } = useConfigsQuery({ + selection: { fields: { id: true, namespaceId: true, databaseId: true, name: true, provider: true, value: true, labels: true, annotations: true, description: true, createdAt: true, updatedAt: true, expiresAt: true } }, +}); +``` + +### Create a config + +```typescript +const { mutate } = useCreateConfigMutation({ + selection: { fields: { id: true } }, +}); +mutate({ namespaceId: '', databaseId: '', name: '', provider: '', value: '', labels: '', annotations: '', description: '', expiresAt: '' }); +``` diff --git a/.agents/skills/hooks-config/references/platform-config.md b/.agents/skills/hooks-config/references/platform-config.md index 8a1551e143..905b1a7463 100644 --- a/.agents/skills/hooks-config/references/platform-config.md +++ b/.agents/skills/hooks-config/references/platform-config.md @@ -2,13 +2,13 @@ -App-level plaintext key-value config store (like a k8s ConfigMap); admin-only, fully CRUD-exposed +Namespace-backed plaintext key-value config store (like a k8s ConfigMap); admin-only, fully CRUD-exposed ## Usage ```typescript -usePlatformConfigsQuery({ selection: { fields: { id: true, namespaceId: true, name: true, value: true, labels: true, annotations: true, description: true, createdAt: true, updatedAt: true, expiresAt: true } } }) -usePlatformConfigQuery({ id: '', selection: { fields: { id: true, namespaceId: true, name: true, value: true, labels: true, annotations: true, description: true, createdAt: true, updatedAt: true, expiresAt: true } } }) +usePlatformConfigsQuery({ selection: { fields: { id: true, namespaceId: true, name: true, provider: true, value: true, labels: true, annotations: true, description: true, createdAt: true, updatedAt: true, expiresAt: true } } }) +usePlatformConfigQuery({ id: '', selection: { fields: { id: true, namespaceId: true, name: true, provider: true, value: true, labels: true, annotations: true, description: true, createdAt: true, updatedAt: true, expiresAt: true } } }) useCreatePlatformConfigMutation({ selection: { fields: { id: true } } }) useUpdatePlatformConfigMutation({ selection: { fields: { id: true } } }) useDeletePlatformConfigMutation({}) @@ -20,7 +20,7 @@ useDeletePlatformConfigMutation({}) ```typescript const { data, isLoading } = usePlatformConfigsQuery({ - selection: { fields: { id: true, namespaceId: true, name: true, value: true, labels: true, annotations: true, description: true, createdAt: true, updatedAt: true, expiresAt: true } }, + selection: { fields: { id: true, namespaceId: true, name: true, provider: true, value: true, labels: true, annotations: true, description: true, createdAt: true, updatedAt: true, expiresAt: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = usePlatformConfigsQuery({ const { mutate } = useCreatePlatformConfigMutation({ selection: { fields: { id: true } }, }); -mutate({ namespaceId: '', name: '', value: '', labels: '', annotations: '', description: '', expiresAt: '' }); +mutate({ namespaceId: '', name: '', provider: '', value: '', labels: '', annotations: '', description: '', expiresAt: '' }); ``` diff --git a/.agents/skills/hooks-config/references/platform-internal-secret.md b/.agents/skills/hooks-config/references/platform-internal-secret.md new file mode 100644 index 0000000000..8b32885a29 --- /dev/null +++ b/.agents/skills/hooks-config/references/platform-internal-secret.md @@ -0,0 +1,34 @@ +# platformInternalSecret + + + +React Query hooks for PlatformInternalSecret data operations + +## Usage + +```typescript +usePlatformInternalSecretsQuery({ selection: { fields: { id: true, name: true, namespaceId: true, description: true, labels: true, annotations: true, createdAt: true, updatedAt: true, rotatedAt: true, retiredAt: true } } }) +usePlatformInternalSecretQuery({ id: '', selection: { fields: { id: true, name: true, namespaceId: true, description: true, labels: true, annotations: true, createdAt: true, updatedAt: true, rotatedAt: true, retiredAt: true } } }) +useCreatePlatformInternalSecretMutation({ selection: { fields: { id: true } } }) +useUpdatePlatformInternalSecretMutation({ selection: { fields: { id: true } } }) +useDeletePlatformInternalSecretMutation({}) +``` + +## Examples + +### List all platformInternalSecrets + +```typescript +const { data, isLoading } = usePlatformInternalSecretsQuery({ + selection: { fields: { id: true, name: true, namespaceId: true, description: true, labels: true, annotations: true, createdAt: true, updatedAt: true, rotatedAt: true, retiredAt: true } }, +}); +``` + +### Create a platformInternalSecret + +```typescript +const { mutate } = useCreatePlatformInternalSecretMutation({ + selection: { fields: { id: true } }, +}); +mutate({ name: '', namespaceId: '', description: '', labels: '', annotations: '', rotatedAt: '', retiredAt: '' }); +``` diff --git a/.agents/skills/hooks-config/references/platform-internal-secrets-del.md b/.agents/skills/hooks-config/references/platform-internal-secrets-del.md new file mode 100644 index 0000000000..f947b5f830 --- /dev/null +++ b/.agents/skills/hooks-config/references/platform-internal-secrets-del.md @@ -0,0 +1,20 @@ +# platformInternalSecretsDel + + + +React Query mutation hook for platformInternalSecretsDel + +## Usage + +```typescript +const { mutate } = usePlatformInternalSecretsDelMutation(); mutate({ input: { secretName: '', namespaceId: '' } }); +``` + +## Examples + +### Use usePlatformInternalSecretsDelMutation + +```typescript +const { mutate, isLoading } = usePlatformInternalSecretsDelMutation(); +mutate({ input: { secretName: '', namespaceId: '' } }); +``` 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 new file mode 100644 index 0000000000..1ba9c673e5 --- /dev/null +++ b/.agents/skills/hooks-config/references/platform-internal-secrets-remove-array.md @@ -0,0 +1,20 @@ +# platformInternalSecretsRemoveArray + + + +React Query mutation hook for platformInternalSecretsRemoveArray + +## Usage + +```typescript +const { mutate } = usePlatformInternalSecretsRemoveArrayMutation(); mutate({ input: { secretNames: '', namespaceId: '' } }); +``` + +## Examples + +### Use usePlatformInternalSecretsRemoveArrayMutation + +```typescript +const { mutate, isLoading } = usePlatformInternalSecretsRemoveArrayMutation(); +mutate({ input: { secretNames: '', namespaceId: '' } }); +``` diff --git a/.agents/skills/hooks-config/references/platform-internal-secrets-rotate.md b/.agents/skills/hooks-config/references/platform-internal-secrets-rotate.md new file mode 100644 index 0000000000..ea2a5ead11 --- /dev/null +++ b/.agents/skills/hooks-config/references/platform-internal-secrets-rotate.md @@ -0,0 +1,20 @@ +# platformInternalSecretsRotate + + + +React Query mutation hook for platformInternalSecretsRotate + +## Usage + +```typescript +const { mutate } = usePlatformInternalSecretsRotateMutation(); mutate({ input: { secretName: '', secretValue: '', namespaceId: '', algo: '' } }); +``` + +## Examples + +### Use usePlatformInternalSecretsRotateMutation + +```typescript +const { mutate, isLoading } = usePlatformInternalSecretsRotateMutation(); +mutate({ input: { secretName: '', secretValue: '', namespaceId: '', algo: '' } }); +``` diff --git a/.agents/skills/hooks-config/references/platform-internal-secrets-set.md b/.agents/skills/hooks-config/references/platform-internal-secrets-set.md new file mode 100644 index 0000000000..755a25fd52 --- /dev/null +++ b/.agents/skills/hooks-config/references/platform-internal-secrets-set.md @@ -0,0 +1,20 @@ +# platformInternalSecretsSet + + + +React Query mutation hook for platformInternalSecretsSet + +## Usage + +```typescript +const { mutate } = usePlatformInternalSecretsSetMutation(); mutate({ input: { secretName: '', secretValue: '', secretNamespaceId: '', algo: '' } }); +``` + +## Examples + +### Use usePlatformInternalSecretsSetMutation + +```typescript +const { mutate, isLoading } = usePlatformInternalSecretsSetMutation(); +mutate({ input: { secretName: '', secretValue: '', secretNamespaceId: '', algo: '' } }); +``` diff --git a/.agents/skills/hooks-config/references/platform-secret.md b/.agents/skills/hooks-config/references/platform-secret.md new file mode 100644 index 0000000000..1c712cce16 --- /dev/null +++ b/.agents/skills/hooks-config/references/platform-secret.md @@ -0,0 +1,34 @@ +# platformSecret + + + +React Query hooks for PlatformSecret data operations + +## Usage + +```typescript +usePlatformSecretsQuery({ selection: { fields: { id: true, name: true, provider: true, namespaceId: true, description: true, labels: true, annotations: true, createdAt: true, updatedAt: true, rotatedAt: true, retiredAt: true } } }) +usePlatformSecretQuery({ id: '', selection: { fields: { id: true, name: true, provider: true, namespaceId: true, description: true, labels: true, annotations: true, createdAt: true, updatedAt: true, rotatedAt: true, retiredAt: true } } }) +useCreatePlatformSecretMutation({ selection: { fields: { id: true } } }) +useUpdatePlatformSecretMutation({ selection: { fields: { id: true } } }) +useDeletePlatformSecretMutation({}) +``` + +## Examples + +### List all platformSecrets + +```typescript +const { data, isLoading } = usePlatformSecretsQuery({ + selection: { fields: { id: true, name: true, provider: true, namespaceId: true, description: true, labels: true, annotations: true, createdAt: true, updatedAt: true, rotatedAt: true, retiredAt: true } }, +}); +``` + +### Create a platformSecret + +```typescript +const { mutate } = useCreatePlatformSecretMutation({ + selection: { fields: { id: true } }, +}); +mutate({ name: '', provider: '', namespaceId: '', description: '', labels: '', annotations: '', rotatedAt: '', retiredAt: '' }); +``` diff --git a/.agents/skills/hooks-config/references/platform-secrets-set.md b/.agents/skills/hooks-config/references/platform-secrets-set.md index f08a02e872..70e5f2d949 100644 --- a/.agents/skills/hooks-config/references/platform-secrets-set.md +++ b/.agents/skills/hooks-config/references/platform-secrets-set.md @@ -7,7 +7,7 @@ React Query mutation hook for platformSecretsSet ## Usage ```typescript -const { mutate } = usePlatformSecretsSetMutation(); mutate({ input: { secretName: '', secretValue: '', secretNamespaceId: '', algo: '' } }); +const { mutate } = usePlatformSecretsSetMutation(); mutate({ input: { secretName: '', secretValue: '', secretNamespaceId: '', algo: '', provider: '' } }); ``` ## Examples @@ -16,5 +16,5 @@ const { mutate } = usePlatformSecretsSetMutation(); mutate({ input: { secretName ```typescript const { mutate, isLoading } = usePlatformSecretsSetMutation(); -mutate({ input: { secretName: '', secretValue: '', secretNamespaceId: '', algo: '' } }); +mutate({ input: { secretName: '', secretValue: '', secretNamespaceId: '', algo: '', provider: '' } }); ``` diff --git a/.agents/skills/hooks-config/references/secret.md b/.agents/skills/hooks-config/references/secret.md new file mode 100644 index 0000000000..f6872d63dd --- /dev/null +++ b/.agents/skills/hooks-config/references/secret.md @@ -0,0 +1,34 @@ +# secret + + + +React Query hooks for Secret data operations + +## Usage + +```typescript +useSecretsQuery({ selection: { fields: { databaseId: true, id: true, name: true, provider: true, namespaceId: true, description: true, labels: true, annotations: true, createdAt: true, updatedAt: true, rotatedAt: true, retiredAt: true } } }) +useSecretQuery({ id: '', selection: { fields: { databaseId: true, id: true, name: true, provider: true, namespaceId: true, description: true, labels: true, annotations: true, createdAt: true, updatedAt: true, rotatedAt: true, retiredAt: true } } }) +useCreateSecretMutation({ selection: { fields: { id: true } } }) +useUpdateSecretMutation({ selection: { fields: { id: true } } }) +useDeleteSecretMutation({}) +``` + +## Examples + +### List all secrets + +```typescript +const { data, isLoading } = useSecretsQuery({ + selection: { fields: { databaseId: true, id: true, name: true, provider: true, namespaceId: true, description: true, labels: true, annotations: true, createdAt: true, updatedAt: true, rotatedAt: true, retiredAt: true } }, +}); +``` + +### Create a secret + +```typescript +const { mutate } = useCreateSecretMutation({ + selection: { fields: { id: true } }, +}); +mutate({ databaseId: '', name: '', provider: '', namespaceId: '', description: '', labels: '', annotations: '', rotatedAt: '', retiredAt: '' }); +``` diff --git a/.agents/skills/hooks-config/references/secrets-del.md b/.agents/skills/hooks-config/references/secrets-del.md new file mode 100644 index 0000000000..278c5cca5c --- /dev/null +++ b/.agents/skills/hooks-config/references/secrets-del.md @@ -0,0 +1,20 @@ +# _secretsDel + + + +React Query mutation hook for _secretsDel + +## Usage + +```typescript +const { mutate } = use_secretsDelMutation(); mutate({ input: { databaseId: '', secretName: '', namespaceId: '' } }); +``` + +## Examples + +### Use use_secretsDelMutation + +```typescript +const { mutate, isLoading } = use_secretsDelMutation(); +mutate({ input: { databaseId: '', secretName: '', namespaceId: '' } }); +``` diff --git a/.agents/skills/hooks-config/references/secrets-remove-array.md b/.agents/skills/hooks-config/references/secrets-remove-array.md new file mode 100644 index 0000000000..3fa2b0bf16 --- /dev/null +++ b/.agents/skills/hooks-config/references/secrets-remove-array.md @@ -0,0 +1,20 @@ +# _secretsRemoveArray + + + +React Query mutation hook for _secretsRemoveArray + +## Usage + +```typescript +const { mutate } = use_secretsRemoveArrayMutation(); mutate({ input: { databaseId: '', secretNames: '', namespaceId: '' } }); +``` + +## Examples + +### Use use_secretsRemoveArrayMutation + +```typescript +const { mutate, isLoading } = use_secretsRemoveArrayMutation(); +mutate({ input: { databaseId: '', secretNames: '', namespaceId: '' } }); +``` diff --git a/.agents/skills/hooks-config/references/secrets-rotate.md b/.agents/skills/hooks-config/references/secrets-rotate.md new file mode 100644 index 0000000000..73ea791c2c --- /dev/null +++ b/.agents/skills/hooks-config/references/secrets-rotate.md @@ -0,0 +1,20 @@ +# _secretsRotate + + + +React Query mutation hook for _secretsRotate + +## Usage + +```typescript +const { mutate } = use_secretsRotateMutation(); mutate({ input: { databaseId: '', secretName: '', secretValue: '', namespaceId: '', algo: '' } }); +``` + +## Examples + +### Use use_secretsRotateMutation + +```typescript +const { mutate, isLoading } = use_secretsRotateMutation(); +mutate({ input: { databaseId: '', secretName: '', secretValue: '', namespaceId: '', algo: '' } }); +``` diff --git a/.agents/skills/hooks-config/references/secrets-set.md b/.agents/skills/hooks-config/references/secrets-set.md new file mode 100644 index 0000000000..53843d6789 --- /dev/null +++ b/.agents/skills/hooks-config/references/secrets-set.md @@ -0,0 +1,20 @@ +# _secretsSet + + + +React Query mutation hook for _secretsSet + +## Usage + +```typescript +const { mutate } = use_secretsSetMutation(); mutate({ input: '<_SecretsSetInput>' }); +``` + +## Examples + +### Use use_secretsSetMutation + +```typescript +const { mutate, isLoading } = use_secretsSetMutation(); +mutate({ input: '<_SecretsSetInput>' }); +``` diff --git a/.agents/skills/hooks-infra/SKILL.md b/.agents/skills/hooks-infra/SKILL.md new file mode 100644 index 0000000000..6f7891f053 --- /dev/null +++ b/.agents/skills/hooks-infra/SKILL.md @@ -0,0 +1,54 @@ +--- +name: hooks-infra +description: React Query hooks for the infra API — provides typed query and mutation hooks for 10 tables and 4 custom operations +--- + +# hooks-infra + + + +React Query hooks for the infra API — provides typed query and mutation hooks for 10 tables and 4 custom operations + +## Usage + +```typescript +// Import hooks +import { useInfraGetAllQuery } from './hooks'; + +// Query hooks: useQuery, usesQuery +// Mutation hooks: useCreateMutation, useUpdateMutation, useDeleteMutation +// Bulk mutation hooks (when enabled): useBulkCreateMutation, useBulkUpsertMutation, etc. + +const { data, isLoading } = useInfraGetAllQuery({ + selection: { fields: { id: true } }, +}); +``` + +## Examples + +### Query records + +```typescript +const { data, isLoading } = useInfraGetAllQuery({ + selection: { fields: { id: true } }, +}); +``` + +## References + +See the `references/` directory for detailed per-entity API documentation: + +- [infra-get-all-record](references/infra-get-all-record.md) +- [infra-ref](references/infra-ref.md) +- [infra-store](references/infra-store.md) +- [infra-object](references/infra-object.md) +- [infra-commit](references/infra-commit.md) +- [db-preset](references/db-preset.md) +- [platform-namespace](references/platform-namespace.md) +- [namespace](references/namespace.md) +- [platform-namespace-event](references/platform-namespace-event.md) +- [namespace-event](references/namespace-event.md) +- [infra-init-empty-repo](references/infra-init-empty-repo.md) +- [infra-set-data-at-path](references/infra-set-data-at-path.md) +- [infra-insert-node-at-path](references/infra-insert-node-at-path.md) +- [provision-bucket](references/provision-bucket.md) diff --git a/.agents/skills/hooks-infra/references/db-preset.md b/.agents/skills/hooks-infra/references/db-preset.md new file mode 100644 index 0000000000..721a1880ec --- /dev/null +++ b/.agents/skills/hooks-infra/references/db-preset.md @@ -0,0 +1,34 @@ +# dbPreset + + + +Database provisioning preset catalog — merkle-versioned head over the infra store + +## Usage + +```typescript +useDbPresetsQuery({ selection: { fields: { id: true, storeId: true, slug: true, definition: true, commitId: true, modulesHash: true, label: true, description: true, active: true, createdAt: true, updatedAt: true } } }) +useDbPresetQuery({ id: '', selection: { fields: { id: true, storeId: true, slug: true, definition: true, commitId: true, modulesHash: true, label: true, description: true, active: true, createdAt: true, updatedAt: true } } }) +useCreateDbPresetMutation({ selection: { fields: { id: true } } }) +useUpdateDbPresetMutation({ selection: { fields: { id: true } } }) +useDeleteDbPresetMutation({}) +``` + +## Examples + +### List all dbPresets + +```typescript +const { data, isLoading } = useDbPresetsQuery({ + selection: { fields: { id: true, storeId: true, slug: true, definition: true, commitId: true, modulesHash: true, label: true, description: true, active: true, createdAt: true, updatedAt: true } }, +}); +``` + +### Create a dbPreset + +```typescript +const { mutate } = useCreateDbPresetMutation({ + selection: { fields: { id: true } }, +}); +mutate({ storeId: '', slug: '', definition: '', commitId: '', modulesHash: '', label: '', description: '', active: '' }); +``` diff --git a/.agents/skills/hooks-infra/references/infra-commit.md b/.agents/skills/hooks-infra/references/infra-commit.md new file mode 100644 index 0000000000..41a2184c2c --- /dev/null +++ b/.agents/skills/hooks-infra/references/infra-commit.md @@ -0,0 +1,34 @@ +# infraCommit + + + +Commit history — each commit snapshots a tree root for a store + +## Usage + +```typescript +useInfraCommitsQuery({ selection: { fields: { id: true, message: true, scopeId: true, storeId: true, parentIds: true, authorId: true, committerId: true, treeId: true, date: true } } }) +useInfraCommitQuery({ id: '', selection: { fields: { id: true, message: true, scopeId: true, storeId: true, parentIds: true, authorId: true, committerId: true, treeId: true, date: true } } }) +useCreateInfraCommitMutation({ selection: { fields: { id: true } } }) +useUpdateInfraCommitMutation({ selection: { fields: { id: true } } }) +useDeleteInfraCommitMutation({}) +``` + +## Examples + +### List all infraCommits + +```typescript +const { data, isLoading } = useInfraCommitsQuery({ + selection: { fields: { id: true, message: true, scopeId: true, storeId: true, parentIds: true, authorId: true, committerId: true, treeId: true, date: true } }, +}); +``` + +### Create a infraCommit + +```typescript +const { mutate } = useCreateInfraCommitMutation({ + selection: { fields: { id: true } }, +}); +mutate({ message: '', scopeId: '', storeId: '', parentIds: '', authorId: '', committerId: '', treeId: '', date: '' }); +``` diff --git a/.agents/skills/hooks-infra/references/infra-get-all-record.md b/.agents/skills/hooks-infra/references/infra-get-all-record.md new file mode 100644 index 0000000000..b8bb39ad0b --- /dev/null +++ b/.agents/skills/hooks-infra/references/infra-get-all-record.md @@ -0,0 +1,31 @@ +# infraGetAllRecord + + + +React Query hooks for InfraGetAllRecord data operations + +## Usage + +```typescript +useInfraGetAllQuery({ selection: { fields: { path: true, data: true } } }) +useCreateInfraGetAllRecordMutation({ selection: { fields: { id: true } } }) +``` + +## Examples + +### List all infraGetAll + +```typescript +const { data, isLoading } = useInfraGetAllQuery({ + selection: { fields: { path: true, data: true } }, +}); +``` + +### Create a infraGetAllRecord + +```typescript +const { mutate } = useCreateInfraGetAllRecordMutation({ + selection: { fields: { id: true } }, +}); +mutate({ path: '', data: '' }); +``` diff --git a/.agents/skills/hooks-infra/references/infra-init-empty-repo.md b/.agents/skills/hooks-infra/references/infra-init-empty-repo.md new file mode 100644 index 0000000000..fe097995fa --- /dev/null +++ b/.agents/skills/hooks-infra/references/infra-init-empty-repo.md @@ -0,0 +1,20 @@ +# infraInitEmptyRepo + + + +React Query mutation hook for infraInitEmptyRepo + +## Usage + +```typescript +const { mutate } = useInfraInitEmptyRepoMutation(); mutate({ input: { sId: '', storeId: '' } }); +``` + +## Examples + +### Use useInfraInitEmptyRepoMutation + +```typescript +const { mutate, isLoading } = useInfraInitEmptyRepoMutation(); +mutate({ input: { sId: '', storeId: '' } }); +``` diff --git a/.agents/skills/hooks-infra/references/infra-insert-node-at-path.md b/.agents/skills/hooks-infra/references/infra-insert-node-at-path.md new file mode 100644 index 0000000000..3f9cb06354 --- /dev/null +++ b/.agents/skills/hooks-infra/references/infra-insert-node-at-path.md @@ -0,0 +1,20 @@ +# infraInsertNodeAtPath + + + +React Query mutation hook for infraInsertNodeAtPath + +## Usage + +```typescript +const { mutate } = useInfraInsertNodeAtPathMutation(); mutate({ input: '' }); +``` + +## Examples + +### Use useInfraInsertNodeAtPathMutation + +```typescript +const { mutate, isLoading } = useInfraInsertNodeAtPathMutation(); +mutate({ input: '' }); +``` diff --git a/.agents/skills/hooks-infra/references/infra-object.md b/.agents/skills/hooks-infra/references/infra-object.md new file mode 100644 index 0000000000..13b79d225a --- /dev/null +++ b/.agents/skills/hooks-infra/references/infra-object.md @@ -0,0 +1,34 @@ +# infraObject + + + +Content-addressed Merkle tree objects keyed by UUID v5 hash of data + children + +## Usage + +```typescript +useInfraObjectsQuery({ selection: { fields: { id: true, scopeId: true, kids: true, ktree: true, data: true, createdAt: true } } }) +useInfraObjectQuery({ id: '', selection: { fields: { id: true, scopeId: true, kids: true, ktree: true, data: true, createdAt: true } } }) +useCreateInfraObjectMutation({ selection: { fields: { id: true } } }) +useUpdateInfraObjectMutation({ selection: { fields: { id: true } } }) +useDeleteInfraObjectMutation({}) +``` + +## Examples + +### List all infraObjects + +```typescript +const { data, isLoading } = useInfraObjectsQuery({ + selection: { fields: { id: true, scopeId: true, kids: true, ktree: true, data: true, createdAt: true } }, +}); +``` + +### Create a infraObject + +```typescript +const { mutate } = useCreateInfraObjectMutation({ + selection: { fields: { id: true } }, +}); +mutate({ scopeId: '', kids: '', ktree: '', data: '' }); +``` diff --git a/.agents/skills/hooks-infra/references/infra-ref.md b/.agents/skills/hooks-infra/references/infra-ref.md new file mode 100644 index 0000000000..022e47ed53 --- /dev/null +++ b/.agents/skills/hooks-infra/references/infra-ref.md @@ -0,0 +1,34 @@ +# infraRef + + + +Branch heads — mutable pointers into the commit chain + +## Usage + +```typescript +useInfraRefsQuery({ selection: { fields: { id: true, name: true, scopeId: true, storeId: true, commitId: true } } }) +useInfraRefQuery({ id: '', selection: { fields: { id: true, name: true, scopeId: true, storeId: true, commitId: true } } }) +useCreateInfraRefMutation({ selection: { fields: { id: true } } }) +useUpdateInfraRefMutation({ selection: { fields: { id: true } } }) +useDeleteInfraRefMutation({}) +``` + +## Examples + +### List all infraRefs + +```typescript +const { data, isLoading } = useInfraRefsQuery({ + selection: { fields: { id: true, name: true, scopeId: true, storeId: true, commitId: true } }, +}); +``` + +### Create a infraRef + +```typescript +const { mutate } = useCreateInfraRefMutation({ + selection: { fields: { id: true } }, +}); +mutate({ name: '', scopeId: '', storeId: '', commitId: '' }); +``` diff --git a/.agents/skills/hooks-infra/references/infra-set-data-at-path.md b/.agents/skills/hooks-infra/references/infra-set-data-at-path.md new file mode 100644 index 0000000000..0eff59f5fc --- /dev/null +++ b/.agents/skills/hooks-infra/references/infra-set-data-at-path.md @@ -0,0 +1,20 @@ +# infraSetDataAtPath + + + +React Query mutation hook for infraSetDataAtPath + +## Usage + +```typescript +const { mutate } = useInfraSetDataAtPathMutation(); mutate({ input: { sId: '', root: '', path: '', data: '' } }); +``` + +## Examples + +### Use useInfraSetDataAtPathMutation + +```typescript +const { mutate, isLoading } = useInfraSetDataAtPathMutation(); +mutate({ input: { sId: '', root: '', path: '', data: '' } }); +``` diff --git a/.agents/skills/hooks-infra/references/infra-store.md b/.agents/skills/hooks-infra/references/infra-store.md new file mode 100644 index 0000000000..adec3e3972 --- /dev/null +++ b/.agents/skills/hooks-infra/references/infra-store.md @@ -0,0 +1,34 @@ +# infraStore + + + +Named stores — one per version-controlled tree (e.g. one graph, one definition set) + +## Usage + +```typescript +useInfraStoresQuery({ selection: { fields: { id: true, name: true, scopeId: true, hash: true, createdAt: true } } }) +useInfraStoreQuery({ id: '', selection: { fields: { id: true, name: true, scopeId: true, hash: true, createdAt: true } } }) +useCreateInfraStoreMutation({ selection: { fields: { id: true } } }) +useUpdateInfraStoreMutation({ selection: { fields: { id: true } } }) +useDeleteInfraStoreMutation({}) +``` + +## Examples + +### List all infraStores + +```typescript +const { data, isLoading } = useInfraStoresQuery({ + selection: { fields: { id: true, name: true, scopeId: true, hash: true, createdAt: true } }, +}); +``` + +### Create a infraStore + +```typescript +const { mutate } = useCreateInfraStoreMutation({ + selection: { fields: { id: true } }, +}); +mutate({ name: '', scopeId: '', hash: '' }); +``` diff --git a/.agents/skills/hooks-infra/references/namespace-event.md b/.agents/skills/hooks-infra/references/namespace-event.md new file mode 100644 index 0000000000..6f13214351 --- /dev/null +++ b/.agents/skills/hooks-infra/references/namespace-event.md @@ -0,0 +1,34 @@ +# namespaceEvent + + + +Namespace lifecycle events — audit log of creation, activation, deactivation, label changes + +## Usage + +```typescript +useNamespaceEventsQuery({ selection: { fields: { createdAt: true, id: true, namespaceId: true, eventType: true, actorId: true, message: true, metadata: true, cpuMillicores: true, memoryBytes: true, storageBytes: true, networkIngressBytes: true, networkEgressBytes: true, podCount: true, metrics: true, databaseId: true } } }) +useNamespaceEventQuery({ id: '', selection: { fields: { createdAt: true, id: true, namespaceId: true, eventType: true, actorId: true, message: true, metadata: true, cpuMillicores: true, memoryBytes: true, storageBytes: true, networkIngressBytes: true, networkEgressBytes: true, podCount: true, metrics: true, databaseId: true } } }) +useCreateNamespaceEventMutation({ selection: { fields: { id: true } } }) +useUpdateNamespaceEventMutation({ selection: { fields: { id: true } } }) +useDeleteNamespaceEventMutation({}) +``` + +## Examples + +### List all namespaceEvents + +```typescript +const { data, isLoading } = useNamespaceEventsQuery({ + selection: { fields: { createdAt: true, id: true, namespaceId: true, eventType: true, actorId: true, message: true, metadata: true, cpuMillicores: true, memoryBytes: true, storageBytes: true, networkIngressBytes: true, networkEgressBytes: true, podCount: true, metrics: true, databaseId: true } }, +}); +``` + +### Create a namespaceEvent + +```typescript +const { mutate } = useCreateNamespaceEventMutation({ + selection: { fields: { id: true } }, +}); +mutate({ namespaceId: '', eventType: '', actorId: '', message: '', metadata: '', cpuMillicores: '', memoryBytes: '', storageBytes: '', networkIngressBytes: '', networkEgressBytes: '', podCount: '', metrics: '', databaseId: '' }); +``` diff --git a/.agents/skills/hooks-infra/references/namespace.md b/.agents/skills/hooks-infra/references/namespace.md new file mode 100644 index 0000000000..fa86ce6142 --- /dev/null +++ b/.agents/skills/hooks-infra/references/namespace.md @@ -0,0 +1,34 @@ +# namespace + + + +Logical namespace containers for grouping secrets, config, functions, and other resources + +## Usage + +```typescript +useNamespacesQuery({ selection: { fields: { id: true, createdAt: true, updatedAt: true, name: true, namespaceName: true, description: true, isActive: true, status: true, lastError: true, labels: true, annotations: true, databaseId: true, isManaged: true } } }) +useNamespaceQuery({ id: '', selection: { fields: { id: true, createdAt: true, updatedAt: true, name: true, namespaceName: true, description: true, isActive: true, status: true, lastError: true, labels: true, annotations: true, databaseId: true, isManaged: true } } }) +useCreateNamespaceMutation({ selection: { fields: { id: true } } }) +useUpdateNamespaceMutation({ selection: { fields: { id: true } } }) +useDeleteNamespaceMutation({}) +``` + +## Examples + +### List all namespaces + +```typescript +const { data, isLoading } = useNamespacesQuery({ + selection: { fields: { id: true, createdAt: true, updatedAt: true, name: true, namespaceName: true, description: true, isActive: true, status: true, lastError: true, labels: true, annotations: true, databaseId: true, isManaged: true } }, +}); +``` + +### Create a namespace + +```typescript +const { mutate } = useCreateNamespaceMutation({ + selection: { fields: { id: true } }, +}); +mutate({ name: '', namespaceName: '', description: '', isActive: '', status: '', lastError: '', labels: '', annotations: '', databaseId: '', isManaged: '' }); +``` diff --git a/.agents/skills/hooks-infra/references/platform-namespace-event.md b/.agents/skills/hooks-infra/references/platform-namespace-event.md new file mode 100644 index 0000000000..af4d309017 --- /dev/null +++ b/.agents/skills/hooks-infra/references/platform-namespace-event.md @@ -0,0 +1,34 @@ +# platformNamespaceEvent + + + +Namespace lifecycle events — audit log of creation, activation, deactivation, label changes + +## Usage + +```typescript +usePlatformNamespaceEventsQuery({ selection: { fields: { createdAt: true, id: true, namespaceId: true, eventType: true, actorId: true, message: true, metadata: true, cpuMillicores: true, memoryBytes: true, storageBytes: true, networkIngressBytes: true, networkEgressBytes: true, podCount: true, metrics: true } } }) +usePlatformNamespaceEventQuery({ id: '', selection: { fields: { createdAt: true, id: true, namespaceId: true, eventType: true, actorId: true, message: true, metadata: true, cpuMillicores: true, memoryBytes: true, storageBytes: true, networkIngressBytes: true, networkEgressBytes: true, podCount: true, metrics: true } } }) +useCreatePlatformNamespaceEventMutation({ selection: { fields: { id: true } } }) +useUpdatePlatformNamespaceEventMutation({ selection: { fields: { id: true } } }) +useDeletePlatformNamespaceEventMutation({}) +``` + +## Examples + +### List all platformNamespaceEvents + +```typescript +const { data, isLoading } = usePlatformNamespaceEventsQuery({ + selection: { fields: { createdAt: true, id: true, namespaceId: true, eventType: true, actorId: true, message: true, metadata: true, cpuMillicores: true, memoryBytes: true, storageBytes: true, networkIngressBytes: true, networkEgressBytes: true, podCount: true, metrics: true } }, +}); +``` + +### Create a platformNamespaceEvent + +```typescript +const { mutate } = useCreatePlatformNamespaceEventMutation({ + selection: { fields: { id: true } }, +}); +mutate({ namespaceId: '', eventType: '', actorId: '', message: '', metadata: '', cpuMillicores: '', memoryBytes: '', storageBytes: '', networkIngressBytes: '', networkEgressBytes: '', podCount: '', metrics: '' }); +``` diff --git a/.agents/skills/hooks-infra/references/platform-namespace.md b/.agents/skills/hooks-infra/references/platform-namespace.md new file mode 100644 index 0000000000..95eabeb6e1 --- /dev/null +++ b/.agents/skills/hooks-infra/references/platform-namespace.md @@ -0,0 +1,34 @@ +# platformNamespace + + + +Logical namespace containers for grouping secrets, config, functions, and other resources + +## Usage + +```typescript +usePlatformNamespacesQuery({ selection: { fields: { id: true, createdAt: true, updatedAt: true, name: true, namespaceName: true, description: true, isActive: true, status: true, lastError: true, labels: true, annotations: true, isManaged: true } } }) +usePlatformNamespaceQuery({ id: '', selection: { fields: { id: true, createdAt: true, updatedAt: true, name: true, namespaceName: true, description: true, isActive: true, status: true, lastError: true, labels: true, annotations: true, isManaged: true } } }) +useCreatePlatformNamespaceMutation({ selection: { fields: { id: true } } }) +useUpdatePlatformNamespaceMutation({ selection: { fields: { id: true } } }) +useDeletePlatformNamespaceMutation({}) +``` + +## Examples + +### List all platformNamespaces + +```typescript +const { data, isLoading } = usePlatformNamespacesQuery({ + selection: { fields: { id: true, createdAt: true, updatedAt: true, name: true, namespaceName: true, description: true, isActive: true, status: true, lastError: true, labels: true, annotations: true, isManaged: true } }, +}); +``` + +### Create a platformNamespace + +```typescript +const { mutate } = useCreatePlatformNamespaceMutation({ + selection: { fields: { id: true } }, +}); +mutate({ name: '', namespaceName: '', description: '', isActive: '', status: '', lastError: '', labels: '', annotations: '', isManaged: '' }); +``` diff --git a/.agents/skills/hooks-infra/references/provision-bucket.md b/.agents/skills/hooks-infra/references/provision-bucket.md new file mode 100644 index 0000000000..e003fc5551 --- /dev/null +++ b/.agents/skills/hooks-infra/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-modules/SKILL.md b/.agents/skills/hooks-modules/SKILL.md index af7c6c9505..c526e7f68b 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 61 tables and 12 custom operations +description: React Query hooks for the modules API — provides typed query and mutation hooks for 66 tables and 12 custom operations --- # hooks-modules -React Query hooks for the modules API — provides typed query and mutation hooks for 61 tables and 12 custom operations +React Query hooks for the modules API — provides typed query and mutation hooks for 66 tables and 12 custom operations ## Usage @@ -40,23 +40,21 @@ See the `references/` directory for detailed per-entity API documentation: - [default-ids-module](references/default-ids-module.md) - [membership-types-module](references/membership-types-module.md) -- [user-state-module](references/user-state-module.md) - [session-secrets-module](references/session-secrets-module.md) -- [config-secrets-org-module](references/config-secrets-org-module.md) - [devices-module](references/devices-module.md) - [i-18-n-module](references/i-18-n-module.md) -- [user-credentials-module](references/user-credentials-module.md) - [user-settings-module](references/user-settings-module.md) -- [config-secrets-user-module](references/config-secrets-user-module.md) +- [user-state-module](references/user-state-module.md) +- [user-credentials-module](references/user-credentials-module.md) - [connected-accounts-module](references/connected-accounts-module.md) - [emails-module](references/emails-module.md) - [phone-numbers-module](references/phone-numbers-module.md) - [rate-limits-module](references/rate-limits-module.md) - [users-module](references/users-module.md) - [webauthn-credentials-module](references/webauthn-credentials-module.md) +- [config-secrets-user-module](references/config-secrets-user-module.md) - [crypto-addresses-module](references/crypto-addresses-module.md) - [denormalized-table-field](references/denormalized-table-field.md) -- [identity-providers-module](references/identity-providers-module.md) - [rls-module](references/rls-module.md) - [blueprint](references/blueprint.md) - [blueprint-template](references/blueprint-template.md) @@ -64,40 +62,47 @@ See the `references/` directory for detailed per-entity API documentation: - [crypto-auth-module](references/crypto-auth-module.md) - [sessions-module](references/sessions-module.md) - [secure-table-provision](references/secure-table-provision.md) -- [database-provision-module](references/database-provision-module.md) -- [config-secrets-module](references/config-secrets-module.md) +- [identity-providers-module](references/identity-providers-module.md) +- [integration-providers-module](references/integration-providers-module.md) +- [db-pool-config](references/db-pool-config.md) +- [realtime-module](references/realtime-module.md) +- [infra-secrets-module](references/infra-secrets-module.md) +- [internal-secrets-module](references/internal-secrets-module.md) +- [db-preset-module](references/db-preset-module.md) - [graph-module](references/graph-module.md) -- [merkle-store-module](references/merkle-store-module.md) - [rate-limit-meters-module](references/rate-limit-meters-module.md) -- [realtime-module](references/realtime-module.md) +- [infra-config-module](references/infra-config-module.md) - [webauthn-auth-module](references/webauthn-auth-module.md) -- [function-invocation-module](references/function-invocation-module.md) +- [principal-auth-module](references/principal-auth-module.md) +- [db-pool](references/db-pool.md) - [function-module](references/function-module.md) +- [merkle-store-module](references/merkle-store-module.md) +- [database-provision-module](references/database-provision-module.md) +- [function-invocation-module](references/function-invocation-module.md) - [invites-module](references/invites-module.md) -- [principal-auth-module](references/principal-auth-module.md) +- [namespace-module](references/namespace-module.md) +- [plans-module](references/plans-module.md) - [compute-log-module](references/compute-log-module.md) - [inference-log-module](references/inference-log-module.md) -- [namespace-module](references/namespace-module.md) -- [resource-module](references/resource-module.md) - [storage-log-module](references/storage-log-module.md) - [transfer-log-module](references/transfer-log-module.md) -- [function-deployment-module](references/function-deployment-module.md) -- [plans-module](references/plans-module.md) - [billing-provider-module](references/billing-provider-module.md) -- [db-usage-module](references/db-usage-module.md) +- [function-deployment-module](references/function-deployment-module.md) +- [permissions-module](references/permissions-module.md) - [graph-execution-module](references/graph-execution-module.md) - [hierarchy-module](references/hierarchy-module.md) -- [permissions-module](references/permissions-module.md) - [notifications-module](references/notifications-module.md) +- [relation-provision](references/relation-provision.md) - [profiles-module](references/profiles-module.md) - [billing-module](references/billing-module.md) -- [relation-provision](references/relation-provision.md) +- [resource-module](references/resource-module.md) - [user-auth-module](references/user-auth-module.md) +- [db-usage-module](references/db-usage-module.md) - [agent-module](references/agent-module.md) - [limits-module](references/limits-module.md) -- [memberships-module](references/memberships-module.md) - [entity-type-provision](references/entity-type-provision.md) - [storage-module](references/storage-module.md) +- [memberships-module](references/memberships-module.md) - [events-module](references/events-module.md) - [resolve-blueprint-field](references/resolve-blueprint-field.md) - [resolve-blueprint-table](references/resolve-blueprint-table.md) diff --git a/.agents/skills/hooks-modules/references/agent-module.md b/.agents/skills/hooks-modules/references/agent-module.md index 779dec4564..9fe7970703 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: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, threadTableId: true, messageTableId: true, taskTableId: true, promptsTableId: true, planTableId: true, agentTableId: true, personaTableId: true, resourceTableId: true, threadTableName: true, messageTableName: true, taskTableName: true, promptsTableName: true, planTableName: true, agentTableName: true, personaTableName: true, resourceTableName: true, hasPlans: true, hasResources: true, hasAgents: true, shared: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, policies: true, resources: true, provisions: true, defaultPermissions: true } } }) -useAgentModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, threadTableId: true, messageTableId: true, taskTableId: true, promptsTableId: true, planTableId: true, agentTableId: true, personaTableId: true, resourceTableId: true, threadTableName: true, messageTableName: true, taskTableName: true, promptsTableName: true, planTableName: true, agentTableName: true, personaTableName: true, resourceTableName: true, hasPlans: true, hasResources: true, hasAgents: true, shared: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, policies: true, resources: true, provisions: true, defaultPermissions: true } } }) +useAgentModulesQuery({ selection: { fields: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, threadTableId: true, messageTableId: true, taskTableId: true, promptsTableId: true, planTableId: true, agentTableId: true, personaTableId: true, resourceTableId: true, threadTableName: true, messageTableName: true, taskTableName: true, promptsTableName: true, planTableName: true, agentTableName: true, personaTableName: true, resourceTableName: true, hasPlans: true, hasResources: true, hasAgents: true, shared: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, policies: true, resources: true, provisions: true, defaultPermissions: true } } }) +useAgentModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, threadTableId: true, messageTableId: true, taskTableId: true, promptsTableId: true, planTableId: true, agentTableId: true, personaTableId: true, resourceTableId: true, threadTableName: true, messageTableName: true, taskTableName: true, promptsTableName: true, planTableName: true, agentTableName: true, personaTableName: true, resourceTableName: true, hasPlans: true, hasResources: true, hasAgents: true, shared: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, policies: true, resources: true, provisions: true, defaultPermissions: true } } }) useCreateAgentModuleMutation({ selection: { fields: { id: true } } }) useUpdateAgentModuleMutation({ selection: { fields: { id: true } } }) useDeleteAgentModuleMutation({}) @@ -20,7 +20,7 @@ useDeleteAgentModuleMutation({}) ```typescript const { data, isLoading } = useAgentModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, threadTableId: true, messageTableId: true, taskTableId: true, promptsTableId: true, planTableId: true, agentTableId: true, personaTableId: true, resourceTableId: true, threadTableName: true, messageTableName: true, taskTableName: true, promptsTableName: true, planTableName: true, agentTableName: true, personaTableName: true, resourceTableName: true, hasPlans: true, hasResources: true, hasAgents: true, shared: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, policies: true, resources: true, provisions: true, defaultPermissions: true } }, + selection: { fields: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, threadTableId: true, messageTableId: true, taskTableId: true, promptsTableId: true, planTableId: true, agentTableId: true, personaTableId: true, resourceTableId: true, threadTableName: true, messageTableName: true, taskTableName: true, promptsTableName: true, planTableName: true, agentTableName: true, personaTableName: true, resourceTableName: true, hasPlans: true, hasResources: true, hasAgents: true, shared: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, policies: true, resources: true, provisions: true, defaultPermissions: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useAgentModulesQuery({ const { mutate } = useCreateAgentModuleMutation({ selection: { fields: { id: true } }, }); -mutate({ databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', threadTableId: '', messageTableId: '', taskTableId: '', promptsTableId: '', planTableId: '', agentTableId: '', personaTableId: '', resourceTableId: '', threadTableName: '', messageTableName: '', taskTableName: '', promptsTableName: '', planTableName: '', agentTableName: '', personaTableName: '', resourceTableName: '', hasPlans: '', hasResources: '', hasAgents: '', shared: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '', policies: '', resources: '', provisions: '', defaultPermissions: '' }); +mutate({ databaseId: '', entityField: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', threadTableId: '', messageTableId: '', taskTableId: '', promptsTableId: '', planTableId: '', agentTableId: '', personaTableId: '', resourceTableId: '', threadTableName: '', messageTableName: '', taskTableName: '', promptsTableName: '', planTableName: '', agentTableName: '', personaTableName: '', resourceTableName: '', hasPlans: '', hasResources: '', hasAgents: '', shared: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '', policies: '', resources: '', provisions: '', defaultPermissions: '' }); ``` diff --git a/.agents/skills/hooks-modules/references/billing-module.md b/.agents/skills/hooks-modules/references/billing-module.md index ea9bba54ad..404c4350db 100644 --- a/.agents/skills/hooks-modules/references/billing-module.md +++ b/.agents/skills/hooks-modules/references/billing-module.md @@ -7,8 +7,8 @@ React Query hooks for BillingModule data operations ## Usage ```typescript -useBillingModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, metersTableId: true, metersTableName: true, planSubscriptionsTableId: true, planSubscriptionsTableName: true, ledgerTableId: true, ledgerTableName: true, balancesTableId: true, balancesTableName: true, meterCreditsTableId: true, meterCreditsTableName: true, meterSourcesTableId: true, meterSourcesTableName: true, meterDefaultsTableId: true, meterDefaultsTableName: true, recordUsageFunction: true, prefix: true, defaultPermissions: true, apiName: true, privateApiName: true } } }) -useBillingModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, metersTableId: true, metersTableName: true, planSubscriptionsTableId: true, planSubscriptionsTableName: true, ledgerTableId: true, ledgerTableName: true, balancesTableId: true, balancesTableName: true, meterCreditsTableId: true, meterCreditsTableName: true, meterSourcesTableId: true, meterSourcesTableName: true, meterDefaultsTableId: true, meterDefaultsTableName: true, recordUsageFunction: true, prefix: true, defaultPermissions: true, apiName: true, privateApiName: true } } }) +useBillingModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, metersTableId: true, metersTableName: true, planSubscriptionsTableId: true, planSubscriptionsTableName: true, ledgerTableId: true, ledgerTableName: true, balancesTableId: true, balancesTableName: true, meterCreditsTableId: true, meterCreditsTableName: true, meterSourcesTableId: true, meterSourcesTableName: true, meterDefaultsTableId: true, meterDefaultsTableName: true, recordUsageFunction: true, sweepExpiredSubscriptionsFunction: true, rollupUsageSummaryFunction: true, prefix: true, defaultPermissions: true, apiName: true, privateApiName: true } } }) +useBillingModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, metersTableId: true, metersTableName: true, planSubscriptionsTableId: true, planSubscriptionsTableName: true, ledgerTableId: true, ledgerTableName: true, balancesTableId: true, balancesTableName: true, meterCreditsTableId: true, meterCreditsTableName: true, meterSourcesTableId: true, meterSourcesTableName: true, meterDefaultsTableId: true, meterDefaultsTableName: true, recordUsageFunction: true, sweepExpiredSubscriptionsFunction: true, rollupUsageSummaryFunction: true, prefix: true, defaultPermissions: true, apiName: true, privateApiName: true } } }) useCreateBillingModuleMutation({ selection: { fields: { id: true } } }) useUpdateBillingModuleMutation({ selection: { fields: { id: true } } }) useDeleteBillingModuleMutation({}) @@ -20,7 +20,7 @@ useDeleteBillingModuleMutation({}) ```typescript const { data, isLoading } = useBillingModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, metersTableId: true, metersTableName: true, planSubscriptionsTableId: true, planSubscriptionsTableName: true, ledgerTableId: true, ledgerTableName: true, balancesTableId: true, balancesTableName: true, meterCreditsTableId: true, meterCreditsTableName: true, meterSourcesTableId: true, meterSourcesTableName: true, meterDefaultsTableId: true, meterDefaultsTableName: true, recordUsageFunction: true, prefix: true, defaultPermissions: true, apiName: true, privateApiName: true } }, + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, metersTableId: true, metersTableName: true, planSubscriptionsTableId: true, planSubscriptionsTableName: true, ledgerTableId: true, ledgerTableName: true, balancesTableId: true, balancesTableName: true, meterCreditsTableId: true, meterCreditsTableName: true, meterSourcesTableId: true, meterSourcesTableName: true, meterDefaultsTableId: true, meterDefaultsTableName: true, recordUsageFunction: true, sweepExpiredSubscriptionsFunction: true, rollupUsageSummaryFunction: true, prefix: true, defaultPermissions: true, apiName: true, privateApiName: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useBillingModulesQuery({ const { mutate } = useCreateBillingModuleMutation({ selection: { fields: { id: true } }, }); -mutate({ databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', metersTableId: '', metersTableName: '', planSubscriptionsTableId: '', planSubscriptionsTableName: '', ledgerTableId: '', ledgerTableName: '', balancesTableId: '', balancesTableName: '', meterCreditsTableId: '', meterCreditsTableName: '', meterSourcesTableId: '', meterSourcesTableName: '', meterDefaultsTableId: '', meterDefaultsTableName: '', recordUsageFunction: '', prefix: '', defaultPermissions: '', apiName: '', privateApiName: '' }); +mutate({ databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', metersTableId: '', metersTableName: '', planSubscriptionsTableId: '', planSubscriptionsTableName: '', ledgerTableId: '', ledgerTableName: '', balancesTableId: '', balancesTableName: '', meterCreditsTableId: '', meterCreditsTableName: '', meterSourcesTableId: '', meterSourcesTableName: '', meterDefaultsTableId: '', meterDefaultsTableName: '', recordUsageFunction: '', sweepExpiredSubscriptionsFunction: '', rollupUsageSummaryFunction: '', prefix: '', defaultPermissions: '', apiName: '', privateApiName: '' }); ``` diff --git a/.agents/skills/hooks-modules/references/compute-log-module.md b/.agents/skills/hooks-modules/references/compute-log-module.md index d706a10173..7e875d8146 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: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, computeLogTableId: true, computeLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } } }) -useComputeLogModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, computeLogTableId: true, computeLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } } }) +useComputeLogModulesQuery({ selection: { fields: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, computeLogTableId: true, computeLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } } }) +useComputeLogModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, computeLogTableId: true, computeLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } } }) useCreateComputeLogModuleMutation({ selection: { fields: { id: true } } }) useUpdateComputeLogModuleMutation({ selection: { fields: { id: true } } }) useDeleteComputeLogModuleMutation({}) @@ -20,7 +20,7 @@ useDeleteComputeLogModuleMutation({}) ```typescript const { data, isLoading } = useComputeLogModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, computeLogTableId: true, computeLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } }, + selection: { fields: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, computeLogTableId: true, computeLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useComputeLogModulesQuery({ const { mutate } = useCreateComputeLogModuleMutation({ selection: { fields: { id: true } }, }); -mutate({ databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', computeLogTableId: '', computeLogTableName: '', usageDailyTableId: '', usageDailyTableName: '', interval: '', retention: '', premake: '', scope: '', actorFkTableId: '', entityFkTableId: '', prefix: '', apiName: '', privateApiName: '' }); +mutate({ databaseId: '', entityField: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', computeLogTableId: '', computeLogTableName: '', usageDailyTableId: '', usageDailyTableName: '', interval: '', retention: '', premake: '', scope: '', actorFkTableId: '', entityFkTableId: '', prefix: '', apiName: '', privateApiName: '' }); ``` diff --git a/.agents/skills/hooks-modules/references/config-secrets-user-module.md b/.agents/skills/hooks-modules/references/config-secrets-user-module.md index 5249159e9e..ed3bbb5f43 100644 --- a/.agents/skills/hooks-modules/references/config-secrets-user-module.md +++ b/.agents/skills/hooks-modules/references/config-secrets-user-module.md @@ -7,8 +7,8 @@ React Query hooks for ConfigSecretsUserModule data operations ## Usage ```typescript -useConfigSecretsUserModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, configDefinitionsTableId: true, apiName: true, privateApiName: true } } }) -useConfigSecretsUserModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, configDefinitionsTableId: true, apiName: true, privateApiName: true } } }) +useConfigSecretsUserModulesQuery({ selection: { fields: { id: true, databaseId: true, entityField: true, schemaId: true, tableId: true, tableName: true, apiName: true, privateApiName: true } } }) +useConfigSecretsUserModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, entityField: true, schemaId: true, tableId: true, tableName: true, apiName: true, privateApiName: true } } }) useCreateConfigSecretsUserModuleMutation({ selection: { fields: { id: true } } }) useUpdateConfigSecretsUserModuleMutation({ selection: { fields: { id: true } } }) useDeleteConfigSecretsUserModuleMutation({}) @@ -20,7 +20,7 @@ useDeleteConfigSecretsUserModuleMutation({}) ```typescript const { data, isLoading } = useConfigSecretsUserModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, configDefinitionsTableId: true, apiName: true, privateApiName: true } }, + selection: { fields: { id: true, databaseId: true, entityField: true, schemaId: true, tableId: true, tableName: true, apiName: true, privateApiName: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useConfigSecretsUserModulesQuery({ const { mutate } = useCreateConfigSecretsUserModuleMutation({ selection: { fields: { id: true } }, }); -mutate({ databaseId: '', schemaId: '', tableId: '', tableName: '', configDefinitionsTableId: '', apiName: '', privateApiName: '' }); +mutate({ databaseId: '', entityField: '', schemaId: '', tableId: '', tableName: '', apiName: '', privateApiName: '' }); ``` diff --git a/.agents/skills/hooks-modules/references/database-provision-module.md b/.agents/skills/hooks-modules/references/database-provision-module.md index cb4de4d0bf..dcd91eaf6c 100644 --- a/.agents/skills/hooks-modules/references/database-provision-module.md +++ b/.agents/skills/hooks-modules/references/database-provision-module.md @@ -7,8 +7,8 @@ Tracks database provisioning requests and their status. The BEFORE INSERT trigge ## Usage ```typescript -useDatabaseProvisionModulesQuery({ selection: { fields: { id: true, databaseName: true, ownerId: true, subdomain: true, domain: true, modules: true, options: true, bootstrapUser: true, status: true, errorMessage: true, databaseId: true, createdAt: true, updatedAt: true, completedAt: true } } }) -useDatabaseProvisionModuleQuery({ id: '', selection: { fields: { id: true, databaseName: true, ownerId: true, subdomain: true, domain: true, modules: true, options: true, bootstrapUser: true, status: true, errorMessage: true, databaseId: true, createdAt: true, updatedAt: true, completedAt: true } } }) +useDatabaseProvisionModulesQuery({ selection: { fields: { id: true, databaseName: true, ownerId: true, subdomain: true, domain: true, modules: true, options: true, bootstrapUser: true, status: true, errorMessage: true, sourceDatabaseId: true, bootstrapStatus: true, bootstrapError: true, databaseId: true, createdAt: true, updatedAt: true, completedAt: true, fulfilledAt: true } } }) +useDatabaseProvisionModuleQuery({ id: '', selection: { fields: { id: true, databaseName: true, ownerId: true, subdomain: true, domain: true, modules: true, options: true, bootstrapUser: true, status: true, errorMessage: true, sourceDatabaseId: true, bootstrapStatus: true, bootstrapError: true, databaseId: true, createdAt: true, updatedAt: true, completedAt: true, fulfilledAt: true } } }) useCreateDatabaseProvisionModuleMutation({ selection: { fields: { id: true } } }) useUpdateDatabaseProvisionModuleMutation({ selection: { fields: { id: true } } }) useDeleteDatabaseProvisionModuleMutation({}) @@ -20,7 +20,7 @@ useDeleteDatabaseProvisionModuleMutation({}) ```typescript const { data, isLoading } = useDatabaseProvisionModulesQuery({ - selection: { fields: { id: true, databaseName: true, ownerId: true, subdomain: true, domain: true, modules: true, options: true, bootstrapUser: true, status: true, errorMessage: true, databaseId: true, createdAt: true, updatedAt: true, completedAt: true } }, + selection: { fields: { id: true, databaseName: true, ownerId: true, subdomain: true, domain: true, modules: true, options: true, bootstrapUser: true, status: true, errorMessage: true, sourceDatabaseId: true, bootstrapStatus: true, bootstrapError: true, databaseId: true, createdAt: true, updatedAt: true, completedAt: true, fulfilledAt: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useDatabaseProvisionModulesQuery({ const { mutate } = useCreateDatabaseProvisionModuleMutation({ selection: { fields: { id: true } }, }); -mutate({ databaseName: '', ownerId: '', subdomain: '', domain: '', modules: '', options: '', bootstrapUser: '', status: '', errorMessage: '', databaseId: '', completedAt: '' }); +mutate({ databaseName: '', ownerId: '', subdomain: '', domain: '', modules: '', options: '', bootstrapUser: '', status: '', errorMessage: '', sourceDatabaseId: '', bootstrapStatus: '', bootstrapError: '', databaseId: '', completedAt: '', fulfilledAt: '' }); ``` diff --git a/.agents/skills/hooks-modules/references/db-pool-config.md b/.agents/skills/hooks-modules/references/db-pool-config.md new file mode 100644 index 0000000000..7f97b38e74 --- /dev/null +++ b/.agents/skills/hooks-modules/references/db-pool-config.md @@ -0,0 +1,34 @@ +# dbPoolConfig + + + +Per-preset configuration for the warm database pool: sizing, TTL, and the platform service org that owns unclaimed warm databases. + +## Usage + +```typescript +useDbPoolConfigsQuery({ selection: { fields: { id: true, presetSlug: true, domain: true, poolOwnerId: true, min: true, max: true, warmTtl: true, enabled: true, createdAt: true, updatedAt: true } } }) +useDbPoolConfigQuery({ id: '', selection: { fields: { id: true, presetSlug: true, domain: true, poolOwnerId: true, min: true, max: true, warmTtl: true, enabled: true, createdAt: true, updatedAt: true } } }) +useCreateDbPoolConfigMutation({ selection: { fields: { id: true } } }) +useUpdateDbPoolConfigMutation({ selection: { fields: { id: true } } }) +useDeleteDbPoolConfigMutation({}) +``` + +## Examples + +### List all dbPoolConfigs + +```typescript +const { data, isLoading } = useDbPoolConfigsQuery({ + selection: { fields: { id: true, presetSlug: true, domain: true, poolOwnerId: true, min: true, max: true, warmTtl: true, enabled: true, createdAt: true, updatedAt: true } }, +}); +``` + +### Create a dbPoolConfig + +```typescript +const { mutate } = useCreateDbPoolConfigMutation({ + selection: { fields: { id: true } }, +}); +mutate({ presetSlug: '', domain: '', poolOwnerId: '', min: '', max: '', warmTtl: '', enabled: '' }); +``` diff --git a/.agents/skills/hooks-modules/references/db-pool.md b/.agents/skills/hooks-modules/references/db-pool.md new file mode 100644 index 0000000000..12df764db4 --- /dev/null +++ b/.agents/skills/hooks-modules/references/db-pool.md @@ -0,0 +1,34 @@ +# dbPool + + + +Warm database pool entries. Rows are inserted as warming (which enqueues a db_pool:warm_database job), become ready once provisioned, and are handed to users via metaschema_private.db_pool_claim (invoked by metaschema_public.request_database). + +## Usage + +```typescript +useDbPoolsQuery({ selection: { fields: { id: true, presetSlug: true, presetCommitId: true, databaseId: true, status: true, errorMessage: true, expiresAt: true, claimedBy: true, claimedAt: true, bootstrapStatus: true, bootstrapError: true, createdAt: true, updatedAt: true } } }) +useDbPoolQuery({ id: '', selection: { fields: { id: true, presetSlug: true, presetCommitId: true, databaseId: true, status: true, errorMessage: true, expiresAt: true, claimedBy: true, claimedAt: true, bootstrapStatus: true, bootstrapError: true, createdAt: true, updatedAt: true } } }) +useCreateDbPoolMutation({ selection: { fields: { id: true } } }) +useUpdateDbPoolMutation({ selection: { fields: { id: true } } }) +useDeleteDbPoolMutation({}) +``` + +## Examples + +### List all dbPools + +```typescript +const { data, isLoading } = useDbPoolsQuery({ + selection: { fields: { id: true, presetSlug: true, presetCommitId: true, databaseId: true, status: true, errorMessage: true, expiresAt: true, claimedBy: true, claimedAt: true, bootstrapStatus: true, bootstrapError: true, createdAt: true, updatedAt: true } }, +}); +``` + +### Create a dbPool + +```typescript +const { mutate } = useCreateDbPoolMutation({ + selection: { fields: { id: true } }, +}); +mutate({ presetSlug: '', presetCommitId: '', databaseId: '', status: '', errorMessage: '', expiresAt: '', claimedBy: '', claimedAt: '', bootstrapStatus: '', bootstrapError: '' }); +``` diff --git a/.agents/skills/hooks-modules/references/db-preset-module.md b/.agents/skills/hooks-modules/references/db-preset-module.md new file mode 100644 index 0000000000..993a5513b5 --- /dev/null +++ b/.agents/skills/hooks-modules/references/db-preset-module.md @@ -0,0 +1,34 @@ +# dbPresetModule + + + +React Query hooks for DbPresetModule data operations + +## Usage + +```typescript +useDbPresetModulesQuery({ selection: { fields: { id: true, databaseId: true, publicSchemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, scope: true, prefix: true, merkleStoreModuleId: true, dbPresetsTableId: true, storeName: true, apiName: true, privateApiName: true, entityTableId: true, policies: true, provisions: true, createdAt: true } } }) +useDbPresetModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, publicSchemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, scope: true, prefix: true, merkleStoreModuleId: true, dbPresetsTableId: true, storeName: true, apiName: true, privateApiName: true, entityTableId: true, policies: true, provisions: true, createdAt: true } } }) +useCreateDbPresetModuleMutation({ selection: { fields: { id: true } } }) +useUpdateDbPresetModuleMutation({ selection: { fields: { id: true } } }) +useDeleteDbPresetModuleMutation({}) +``` + +## Examples + +### List all dbPresetModules + +```typescript +const { data, isLoading } = useDbPresetModulesQuery({ + selection: { fields: { id: true, databaseId: true, publicSchemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, scope: true, prefix: true, merkleStoreModuleId: true, dbPresetsTableId: true, storeName: true, apiName: true, privateApiName: true, entityTableId: true, policies: true, provisions: true, createdAt: true } }, +}); +``` + +### Create a dbPresetModule + +```typescript +const { mutate } = useCreateDbPresetModuleMutation({ + selection: { fields: { id: true } }, +}); +mutate({ databaseId: '', publicSchemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', scope: '', prefix: '', merkleStoreModuleId: '', dbPresetsTableId: '', storeName: '', apiName: '', privateApiName: '', entityTableId: '', policies: '', provisions: '' }); +``` diff --git a/.agents/skills/hooks-modules/references/db-usage-module.md b/.agents/skills/hooks-modules/references/db-usage-module.md index f22cffa460..2e29b61db2 100644 --- a/.agents/skills/hooks-modules/references/db-usage-module.md +++ b/.agents/skills/hooks-modules/references/db-usage-module.md @@ -7,8 +7,8 @@ React Query hooks for DbUsageModule data operations ## Usage ```typescript -useDbUsageModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, tableStatsLogTableId: true, tableStatsLogTableName: true, tableStatsDailyTableId: true, tableStatsDailyTableName: true, queryStatsLogTableId: true, queryStatsLogTableName: true, queryStatsDailyTableId: true, queryStatsDailyTableName: true, interval: true, retention: true, premake: true, scope: true, prefix: true, defaultPermissions: true, apiName: true, privateApiName: true } } }) -useDbUsageModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, tableStatsLogTableId: true, tableStatsLogTableName: true, tableStatsDailyTableId: true, tableStatsDailyTableName: true, queryStatsLogTableId: true, queryStatsLogTableName: true, queryStatsDailyTableId: true, queryStatsDailyTableName: true, interval: true, retention: true, premake: true, scope: true, prefix: true, defaultPermissions: true, apiName: true, privateApiName: true } } }) +useDbUsageModulesQuery({ selection: { fields: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, tableStatsLogTableId: true, tableStatsLogTableName: true, tableStatsDailyTableId: true, tableStatsDailyTableName: true, queryStatsLogTableId: true, queryStatsLogTableName: true, queryStatsDailyTableId: true, queryStatsDailyTableName: true, collectDbTableStatsFunction: true, collectDbQueryStatsFunction: true, rollupDbTableStatsDailyFunction: true, rollupDbQueryStatsDailyFunction: true, interval: true, retention: true, premake: true, scope: true, prefix: true, defaultPermissions: true, apiName: true, privateApiName: true } } }) +useDbUsageModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, tableStatsLogTableId: true, tableStatsLogTableName: true, tableStatsDailyTableId: true, tableStatsDailyTableName: true, queryStatsLogTableId: true, queryStatsLogTableName: true, queryStatsDailyTableId: true, queryStatsDailyTableName: true, collectDbTableStatsFunction: true, collectDbQueryStatsFunction: true, rollupDbTableStatsDailyFunction: true, rollupDbQueryStatsDailyFunction: true, interval: true, retention: true, premake: true, scope: true, prefix: true, defaultPermissions: true, apiName: true, privateApiName: true } } }) useCreateDbUsageModuleMutation({ selection: { fields: { id: true } } }) useUpdateDbUsageModuleMutation({ selection: { fields: { id: true } } }) useDeleteDbUsageModuleMutation({}) @@ -20,7 +20,7 @@ useDeleteDbUsageModuleMutation({}) ```typescript const { data, isLoading } = useDbUsageModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, tableStatsLogTableId: true, tableStatsLogTableName: true, tableStatsDailyTableId: true, tableStatsDailyTableName: true, queryStatsLogTableId: true, queryStatsLogTableName: true, queryStatsDailyTableId: true, queryStatsDailyTableName: true, interval: true, retention: true, premake: true, scope: true, prefix: true, defaultPermissions: true, apiName: true, privateApiName: true } }, + selection: { fields: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, tableStatsLogTableId: true, tableStatsLogTableName: true, tableStatsDailyTableId: true, tableStatsDailyTableName: true, queryStatsLogTableId: true, queryStatsLogTableName: true, queryStatsDailyTableId: true, queryStatsDailyTableName: true, collectDbTableStatsFunction: true, collectDbQueryStatsFunction: true, rollupDbTableStatsDailyFunction: true, rollupDbQueryStatsDailyFunction: true, interval: true, retention: true, premake: true, scope: true, prefix: true, defaultPermissions: true, apiName: true, privateApiName: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useDbUsageModulesQuery({ const { mutate } = useCreateDbUsageModuleMutation({ selection: { fields: { id: true } }, }); -mutate({ databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', tableStatsLogTableId: '', tableStatsLogTableName: '', tableStatsDailyTableId: '', tableStatsDailyTableName: '', queryStatsLogTableId: '', queryStatsLogTableName: '', queryStatsDailyTableId: '', queryStatsDailyTableName: '', interval: '', retention: '', premake: '', scope: '', prefix: '', defaultPermissions: '', apiName: '', privateApiName: '' }); +mutate({ databaseId: '', entityField: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', tableStatsLogTableId: '', tableStatsLogTableName: '', tableStatsDailyTableId: '', tableStatsDailyTableName: '', queryStatsLogTableId: '', queryStatsLogTableName: '', queryStatsDailyTableId: '', queryStatsDailyTableName: '', collectDbTableStatsFunction: '', collectDbQueryStatsFunction: '', rollupDbTableStatsDailyFunction: '', rollupDbQueryStatsDailyFunction: '', interval: '', retention: '', premake: '', scope: '', prefix: '', defaultPermissions: '', apiName: '', privateApiName: '' }); ``` diff --git a/.agents/skills/hooks-modules/references/entity-type-provision.md b/.agents/skills/hooks-modules/references/entity-type-provision.md index 34bc5a38a7..c971a815d0 100644 --- a/.agents/skills/hooks-modules/references/entity-type-provision.md +++ b/.agents/skills/hooks-modules/references/entity-type-provision.md @@ -14,8 +14,8 @@ Provisions a new membership entity type. Each INSERT creates an entity table, re ## Usage ```typescript -useEntityTypeProvisionsQuery({ selection: { fields: { id: true, databaseId: true, name: true, prefix: true, description: true, parentEntity: true, tableName: true, isVisible: true, hasLimits: true, hasProfiles: true, hasLevels: true, hasInvites: true, hasInviteAchievements: true, storage: true, namespaces: true, functions: true, graphs: true, agents: true, skipEntityPolicies: true, tableProvision: true, outMembershipType: true, outEntityTableId: true, outEntityTableName: true, outInstalledModules: true, outStorageModuleId: true, outBucketsTableId: true, outFilesTableId: true, outPathSharesTableId: true, outInvitesModuleId: true, outNamespaceModuleId: true, outNamespacesTableId: true, outNamespaceEventsTableId: true, outFunctionModuleId: true, outDefinitionsTableId: true, outInvocationsTableId: true, outExecutionLogsTableId: true, outSecretDefinitionsTableId: true, outGraphModuleId: true, outGraphsTableId: true, outAgentModuleId: true } } }) -useEntityTypeProvisionQuery({ id: '', selection: { fields: { id: true, databaseId: true, name: true, prefix: true, description: true, parentEntity: true, tableName: true, isVisible: true, hasLimits: true, hasProfiles: true, hasLevels: true, hasInvites: true, hasInviteAchievements: true, storage: true, namespaces: true, functions: true, graphs: true, agents: true, skipEntityPolicies: true, tableProvision: true, outMembershipType: true, outEntityTableId: true, outEntityTableName: true, outInstalledModules: true, outStorageModuleId: true, outBucketsTableId: true, outFilesTableId: true, outPathSharesTableId: true, outInvitesModuleId: true, outNamespaceModuleId: true, outNamespacesTableId: true, outNamespaceEventsTableId: true, outFunctionModuleId: true, outDefinitionsTableId: true, outInvocationsTableId: true, outExecutionLogsTableId: true, outSecretDefinitionsTableId: true, outGraphModuleId: true, outGraphsTableId: true, outAgentModuleId: true } } }) +useEntityTypeProvisionsQuery({ selection: { fields: { id: true, databaseId: true, name: true, prefix: true, description: true, parentEntity: true, tableName: true, isVisible: true, hasLimits: true, hasProfiles: true, hasLevels: true, hasInvites: true, hasInviteAchievements: true, storage: true, namespaces: true, functions: true, graphs: true, agents: true, skipEntityPolicies: true, tableProvision: true, outMembershipType: true, outEntityTableId: true, outEntityTableName: true, outInstalledModules: true, outStorageModuleId: true, outBucketsTableId: true, outFilesTableId: true, outPathSharesTableId: true, outInvitesModuleId: true, outNamespaceModuleId: true, outNamespacesTableId: true, outNamespaceEventsTableId: true, outFunctionModuleId: true, outDefinitionsTableId: true, outInvocationsTableId: true, outExecutionLogsTableId: true, outGraphModuleId: true, outGraphsTableId: true, outAgentModuleId: true } } }) +useEntityTypeProvisionQuery({ id: '', selection: { fields: { id: true, databaseId: true, name: true, prefix: true, description: true, parentEntity: true, tableName: true, isVisible: true, hasLimits: true, hasProfiles: true, hasLevels: true, hasInvites: true, hasInviteAchievements: true, storage: true, namespaces: true, functions: true, graphs: true, agents: true, skipEntityPolicies: true, tableProvision: true, outMembershipType: true, outEntityTableId: true, outEntityTableName: true, outInstalledModules: true, outStorageModuleId: true, outBucketsTableId: true, outFilesTableId: true, outPathSharesTableId: true, outInvitesModuleId: true, outNamespaceModuleId: true, outNamespacesTableId: true, outNamespaceEventsTableId: true, outFunctionModuleId: true, outDefinitionsTableId: true, outInvocationsTableId: true, outExecutionLogsTableId: true, outGraphModuleId: true, outGraphsTableId: true, outAgentModuleId: true } } }) useCreateEntityTypeProvisionMutation({ selection: { fields: { id: true } } }) useUpdateEntityTypeProvisionMutation({ selection: { fields: { id: true } } }) useDeleteEntityTypeProvisionMutation({}) @@ -27,7 +27,7 @@ useDeleteEntityTypeProvisionMutation({}) ```typescript const { data, isLoading } = useEntityTypeProvisionsQuery({ - selection: { fields: { id: true, databaseId: true, name: true, prefix: true, description: true, parentEntity: true, tableName: true, isVisible: true, hasLimits: true, hasProfiles: true, hasLevels: true, hasInvites: true, hasInviteAchievements: true, storage: true, namespaces: true, functions: true, graphs: true, agents: true, skipEntityPolicies: true, tableProvision: true, outMembershipType: true, outEntityTableId: true, outEntityTableName: true, outInstalledModules: true, outStorageModuleId: true, outBucketsTableId: true, outFilesTableId: true, outPathSharesTableId: true, outInvitesModuleId: true, outNamespaceModuleId: true, outNamespacesTableId: true, outNamespaceEventsTableId: true, outFunctionModuleId: true, outDefinitionsTableId: true, outInvocationsTableId: true, outExecutionLogsTableId: true, outSecretDefinitionsTableId: true, outGraphModuleId: true, outGraphsTableId: true, outAgentModuleId: true } }, + selection: { fields: { id: true, databaseId: true, name: true, prefix: true, description: true, parentEntity: true, tableName: true, isVisible: true, hasLimits: true, hasProfiles: true, hasLevels: true, hasInvites: true, hasInviteAchievements: true, storage: true, namespaces: true, functions: true, graphs: true, agents: true, skipEntityPolicies: true, tableProvision: true, outMembershipType: true, outEntityTableId: true, outEntityTableName: true, outInstalledModules: true, outStorageModuleId: true, outBucketsTableId: true, outFilesTableId: true, outPathSharesTableId: true, outInvitesModuleId: true, outNamespaceModuleId: true, outNamespacesTableId: true, outNamespaceEventsTableId: true, outFunctionModuleId: true, outDefinitionsTableId: true, outInvocationsTableId: true, outExecutionLogsTableId: true, outGraphModuleId: true, outGraphsTableId: true, outAgentModuleId: true } }, }); ``` @@ -37,5 +37,5 @@ const { data, isLoading } = useEntityTypeProvisionsQuery({ const { mutate } = useCreateEntityTypeProvisionMutation({ selection: { fields: { id: true } }, }); -mutate({ databaseId: '', name: '', prefix: '', description: '', parentEntity: '', tableName: '', isVisible: '', hasLimits: '', hasProfiles: '', hasLevels: '', hasInvites: '', hasInviteAchievements: '', storage: '', namespaces: '', functions: '', graphs: '', agents: '', skipEntityPolicies: '', tableProvision: '', outMembershipType: '', outEntityTableId: '', outEntityTableName: '', outInstalledModules: '', outStorageModuleId: '', outBucketsTableId: '', outFilesTableId: '', outPathSharesTableId: '', outInvitesModuleId: '', outNamespaceModuleId: '', outNamespacesTableId: '', outNamespaceEventsTableId: '', outFunctionModuleId: '', outDefinitionsTableId: '', outInvocationsTableId: '', outExecutionLogsTableId: '', outSecretDefinitionsTableId: '', outGraphModuleId: '', outGraphsTableId: '', outAgentModuleId: '' }); +mutate({ databaseId: '', name: '', prefix: '', description: '', parentEntity: '', tableName: '', isVisible: '', hasLimits: '', hasProfiles: '', hasLevels: '', hasInvites: '', hasInviteAchievements: '', storage: '', namespaces: '', functions: '', graphs: '', agents: '', skipEntityPolicies: '', tableProvision: '', outMembershipType: '', outEntityTableId: '', outEntityTableName: '', outInstalledModules: '', outStorageModuleId: '', outBucketsTableId: '', outFilesTableId: '', outPathSharesTableId: '', outInvitesModuleId: '', outNamespaceModuleId: '', outNamespacesTableId: '', outNamespaceEventsTableId: '', outFunctionModuleId: '', outDefinitionsTableId: '', outInvocationsTableId: '', outExecutionLogsTableId: '', outGraphModuleId: '', outGraphsTableId: '', outAgentModuleId: '' }); ``` diff --git a/.agents/skills/hooks-modules/references/events-module.md b/.agents/skills/hooks-modules/references/events-module.md index 3ce739e438..192d5abd65 100644 --- a/.agents/skills/hooks-modules/references/events-module.md +++ b/.agents/skills/hooks-modules/references/events-module.md @@ -7,8 +7,8 @@ React Query hooks for EventsModule data operations ## Usage ```typescript -useEventsModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, eventsTableId: true, eventsTableName: true, eventAggregatesTableId: true, eventAggregatesTableName: true, eventTypesTableId: true, eventTypesTableName: true, levelsTableId: true, levelsTableName: true, levelRequirementsTableId: true, levelRequirementsTableName: true, levelGrantsTableId: true, levelGrantsTableName: true, achievementRewardsTableId: true, achievementRewardsTableName: true, recordEvent: true, removeEvent: true, tgEvent: true, tgEventToggle: true, tgEventToggleBool: true, tgEventBool: true, upsertAggregate: true, tgUpdateAggregates: true, pruneEvents: true, stepsRequired: true, levelAchieved: true, tgCheckAchievements: true, grantAchievement: true, tgAchievementReward: true, interval: true, retention: true, premake: true, scope: true, prefix: true, entityTableId: true, actorTableId: true, defaultPermissions: true, apiName: true, privateApiName: true } } }) -useEventsModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, eventsTableId: true, eventsTableName: true, eventAggregatesTableId: true, eventAggregatesTableName: true, eventTypesTableId: true, eventTypesTableName: true, levelsTableId: true, levelsTableName: true, levelRequirementsTableId: true, levelRequirementsTableName: true, levelGrantsTableId: true, levelGrantsTableName: true, achievementRewardsTableId: true, achievementRewardsTableName: true, recordEvent: true, removeEvent: true, tgEvent: true, tgEventToggle: true, tgEventToggleBool: true, tgEventBool: true, upsertAggregate: true, tgUpdateAggregates: true, pruneEvents: true, stepsRequired: true, levelAchieved: true, tgCheckAchievements: true, grantAchievement: true, tgAchievementReward: true, interval: true, retention: true, premake: true, scope: true, prefix: true, entityTableId: true, actorTableId: true, defaultPermissions: true, apiName: true, privateApiName: true } } }) +useEventsModulesQuery({ selection: { fields: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, eventsTableId: true, eventsTableName: true, eventAggregatesTableId: true, eventAggregatesTableName: true, eventTypesTableId: true, eventTypesTableName: true, levelsTableId: true, levelsTableName: true, levelRequirementsTableId: true, levelRequirementsTableName: true, levelGrantsTableId: true, levelGrantsTableName: true, achievementRewardsTableId: true, achievementRewardsTableName: true, recordEvent: true, removeEvent: true, tgEvent: true, tgEventToggle: true, tgEventToggleBool: true, tgEventBool: true, upsertAggregate: true, tgUpdateAggregates: true, stepsRequired: true, levelAchieved: true, tgCheckAchievements: true, grantAchievement: true, tgAchievementReward: true, interval: true, retention: true, premake: true, scope: true, prefix: true, entityTableId: true, actorTableId: true, defaultPermissions: true, apiName: true, privateApiName: true } } }) +useEventsModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, eventsTableId: true, eventsTableName: true, eventAggregatesTableId: true, eventAggregatesTableName: true, eventTypesTableId: true, eventTypesTableName: true, levelsTableId: true, levelsTableName: true, levelRequirementsTableId: true, levelRequirementsTableName: true, levelGrantsTableId: true, levelGrantsTableName: true, achievementRewardsTableId: true, achievementRewardsTableName: true, recordEvent: true, removeEvent: true, tgEvent: true, tgEventToggle: true, tgEventToggleBool: true, tgEventBool: true, upsertAggregate: true, tgUpdateAggregates: true, stepsRequired: true, levelAchieved: true, tgCheckAchievements: true, grantAchievement: true, tgAchievementReward: true, interval: true, retention: true, premake: true, scope: true, prefix: true, entityTableId: true, actorTableId: true, defaultPermissions: true, apiName: true, privateApiName: true } } }) useCreateEventsModuleMutation({ selection: { fields: { id: true } } }) useUpdateEventsModuleMutation({ selection: { fields: { id: true } } }) useDeleteEventsModuleMutation({}) @@ -20,7 +20,7 @@ useDeleteEventsModuleMutation({}) ```typescript const { data, isLoading } = useEventsModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, eventsTableId: true, eventsTableName: true, eventAggregatesTableId: true, eventAggregatesTableName: true, eventTypesTableId: true, eventTypesTableName: true, levelsTableId: true, levelsTableName: true, levelRequirementsTableId: true, levelRequirementsTableName: true, levelGrantsTableId: true, levelGrantsTableName: true, achievementRewardsTableId: true, achievementRewardsTableName: true, recordEvent: true, removeEvent: true, tgEvent: true, tgEventToggle: true, tgEventToggleBool: true, tgEventBool: true, upsertAggregate: true, tgUpdateAggregates: true, pruneEvents: true, stepsRequired: true, levelAchieved: true, tgCheckAchievements: true, grantAchievement: true, tgAchievementReward: true, interval: true, retention: true, premake: true, scope: true, prefix: true, entityTableId: true, actorTableId: true, defaultPermissions: true, apiName: true, privateApiName: true } }, + selection: { fields: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, eventsTableId: true, eventsTableName: true, eventAggregatesTableId: true, eventAggregatesTableName: true, eventTypesTableId: true, eventTypesTableName: true, levelsTableId: true, levelsTableName: true, levelRequirementsTableId: true, levelRequirementsTableName: true, levelGrantsTableId: true, levelGrantsTableName: true, achievementRewardsTableId: true, achievementRewardsTableName: true, recordEvent: true, removeEvent: true, tgEvent: true, tgEventToggle: true, tgEventToggleBool: true, tgEventBool: true, upsertAggregate: true, tgUpdateAggregates: true, stepsRequired: true, levelAchieved: true, tgCheckAchievements: true, grantAchievement: true, tgAchievementReward: true, interval: true, retention: true, premake: true, scope: true, prefix: true, entityTableId: true, actorTableId: true, defaultPermissions: true, apiName: true, privateApiName: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useEventsModulesQuery({ const { mutate } = useCreateEventsModuleMutation({ selection: { fields: { id: true } }, }); -mutate({ databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', eventsTableId: '', eventsTableName: '', eventAggregatesTableId: '', eventAggregatesTableName: '', eventTypesTableId: '', eventTypesTableName: '', levelsTableId: '', levelsTableName: '', levelRequirementsTableId: '', levelRequirementsTableName: '', levelGrantsTableId: '', levelGrantsTableName: '', achievementRewardsTableId: '', achievementRewardsTableName: '', recordEvent: '', removeEvent: '', tgEvent: '', tgEventToggle: '', tgEventToggleBool: '', tgEventBool: '', upsertAggregate: '', tgUpdateAggregates: '', pruneEvents: '', stepsRequired: '', levelAchieved: '', tgCheckAchievements: '', grantAchievement: '', tgAchievementReward: '', interval: '', retention: '', premake: '', scope: '', prefix: '', entityTableId: '', actorTableId: '', defaultPermissions: '', apiName: '', privateApiName: '' }); +mutate({ databaseId: '', entityField: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', eventsTableId: '', eventsTableName: '', eventAggregatesTableId: '', eventAggregatesTableName: '', eventTypesTableId: '', eventTypesTableName: '', levelsTableId: '', levelsTableName: '', levelRequirementsTableId: '', levelRequirementsTableName: '', levelGrantsTableId: '', levelGrantsTableName: '', achievementRewardsTableId: '', achievementRewardsTableName: '', recordEvent: '', removeEvent: '', tgEvent: '', tgEventToggle: '', tgEventToggleBool: '', tgEventBool: '', upsertAggregate: '', tgUpdateAggregates: '', stepsRequired: '', levelAchieved: '', tgCheckAchievements: '', grantAchievement: '', tgAchievementReward: '', interval: '', retention: '', premake: '', scope: '', prefix: '', entityTableId: '', actorTableId: '', defaultPermissions: '', apiName: '', privateApiName: '' }); ``` diff --git a/.agents/skills/hooks-modules/references/function-deployment-module.md b/.agents/skills/hooks-modules/references/function-deployment-module.md index 696e55abe7..5eb7504c5d 100644 --- a/.agents/skills/hooks-modules/references/function-deployment-module.md +++ b/.agents/skills/hooks-modules/references/function-deployment-module.md @@ -7,8 +7,8 @@ React Query hooks for FunctionDeploymentModule data operations ## Usage ```typescript -useFunctionDeploymentModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, deploymentsTableId: true, deploymentEventsTableId: true, deploymentsTableName: true, deploymentEventsTableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, functionModuleId: true, namespaceModuleId: true, policies: true, provisions: true, defaultPermissions: true } } }) -useFunctionDeploymentModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, deploymentsTableId: true, deploymentEventsTableId: true, deploymentsTableName: true, deploymentEventsTableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, functionModuleId: true, namespaceModuleId: true, policies: true, provisions: true, defaultPermissions: true } } }) +useFunctionDeploymentModulesQuery({ selection: { fields: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, deploymentsTableId: true, deploymentEventsTableId: true, deploymentsTableName: true, deploymentEventsTableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, functionModuleId: true, namespaceModuleId: true, policies: true, provisions: true, defaultPermissions: true } } }) +useFunctionDeploymentModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, deploymentsTableId: true, deploymentEventsTableId: true, deploymentsTableName: true, deploymentEventsTableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, functionModuleId: true, namespaceModuleId: true, policies: true, provisions: true, defaultPermissions: true } } }) useCreateFunctionDeploymentModuleMutation({ selection: { fields: { id: true } } }) useUpdateFunctionDeploymentModuleMutation({ selection: { fields: { id: true } } }) useDeleteFunctionDeploymentModuleMutation({}) @@ -20,7 +20,7 @@ useDeleteFunctionDeploymentModuleMutation({}) ```typescript const { data, isLoading } = useFunctionDeploymentModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, deploymentsTableId: true, deploymentEventsTableId: true, deploymentsTableName: true, deploymentEventsTableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, functionModuleId: true, namespaceModuleId: true, policies: true, provisions: true, defaultPermissions: true } }, + selection: { fields: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, deploymentsTableId: true, deploymentEventsTableId: true, deploymentsTableName: true, deploymentEventsTableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, functionModuleId: true, namespaceModuleId: true, policies: true, provisions: true, defaultPermissions: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useFunctionDeploymentModulesQuery({ const { mutate } = useCreateFunctionDeploymentModuleMutation({ selection: { fields: { id: true } }, }); -mutate({ databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', deploymentsTableId: '', deploymentEventsTableId: '', deploymentsTableName: '', deploymentEventsTableName: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '', functionModuleId: '', namespaceModuleId: '', policies: '', provisions: '', defaultPermissions: '' }); +mutate({ databaseId: '', entityField: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', deploymentsTableId: '', deploymentEventsTableId: '', deploymentsTableName: '', deploymentEventsTableName: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '', functionModuleId: '', namespaceModuleId: '', policies: '', provisions: '', defaultPermissions: '' }); ``` diff --git a/.agents/skills/hooks-modules/references/function-invocation-module.md b/.agents/skills/hooks-modules/references/function-invocation-module.md index 7d50d11122..d73ca3ff11 100644 --- a/.agents/skills/hooks-modules/references/function-invocation-module.md +++ b/.agents/skills/hooks-modules/references/function-invocation-module.md @@ -7,8 +7,8 @@ React Query hooks for FunctionInvocationModule data operations ## Usage ```typescript -useFunctionInvocationModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, invocationsTableId: true, executionLogsTableId: true, invocationsTableName: true, executionLogsTableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, policies: true, provisions: true, defaultPermissions: true } } }) -useFunctionInvocationModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, invocationsTableId: true, executionLogsTableId: true, invocationsTableName: true, executionLogsTableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, policies: true, provisions: true, defaultPermissions: true } } }) +useFunctionInvocationModulesQuery({ selection: { fields: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, invocationsTableId: true, executionLogsTableId: true, invocationsTableName: true, executionLogsTableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, policies: true, provisions: true, defaultPermissions: true } } }) +useFunctionInvocationModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, invocationsTableId: true, executionLogsTableId: true, invocationsTableName: true, executionLogsTableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, policies: true, provisions: true, defaultPermissions: true } } }) useCreateFunctionInvocationModuleMutation({ selection: { fields: { id: true } } }) useUpdateFunctionInvocationModuleMutation({ selection: { fields: { id: true } } }) useDeleteFunctionInvocationModuleMutation({}) @@ -20,7 +20,7 @@ useDeleteFunctionInvocationModuleMutation({}) ```typescript const { data, isLoading } = useFunctionInvocationModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, invocationsTableId: true, executionLogsTableId: true, invocationsTableName: true, executionLogsTableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, policies: true, provisions: true, defaultPermissions: true } }, + selection: { fields: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, invocationsTableId: true, executionLogsTableId: true, invocationsTableName: true, executionLogsTableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, policies: true, provisions: true, defaultPermissions: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useFunctionInvocationModulesQuery({ const { mutate } = useCreateFunctionInvocationModuleMutation({ selection: { fields: { id: true } }, }); -mutate({ databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', invocationsTableId: '', executionLogsTableId: '', invocationsTableName: '', executionLogsTableName: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '', policies: '', provisions: '', defaultPermissions: '' }); +mutate({ databaseId: '', entityField: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', invocationsTableId: '', executionLogsTableId: '', invocationsTableName: '', executionLogsTableName: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '', policies: '', provisions: '', defaultPermissions: '' }); ``` diff --git a/.agents/skills/hooks-modules/references/function-module.md b/.agents/skills/hooks-modules/references/function-module.md index 6f7b7f2f7b..2dd2ca0180 100644 --- a/.agents/skills/hooks-modules/references/function-module.md +++ b/.agents/skills/hooks-modules/references/function-module.md @@ -7,8 +7,8 @@ React Query hooks for FunctionModule data operations ## Usage ```typescript -useFunctionModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, definitionsTableId: true, secretDefinitionsTableId: true, definitionsTableName: true, secretDefinitionsTableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, policies: true, provisions: true, defaultPermissions: true } } }) -useFunctionModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, definitionsTableId: true, secretDefinitionsTableId: true, definitionsTableName: true, secretDefinitionsTableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, policies: true, provisions: true, defaultPermissions: true } } }) +useFunctionModulesQuery({ selection: { fields: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, definitionsTableId: true, definitionsTableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, policies: true, provisions: true, defaultPermissions: true } } }) +useFunctionModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, definitionsTableId: true, definitionsTableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, policies: true, provisions: true, defaultPermissions: true } } }) useCreateFunctionModuleMutation({ selection: { fields: { id: true } } }) useUpdateFunctionModuleMutation({ selection: { fields: { id: true } } }) useDeleteFunctionModuleMutation({}) @@ -20,7 +20,7 @@ useDeleteFunctionModuleMutation({}) ```typescript const { data, isLoading } = useFunctionModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, definitionsTableId: true, secretDefinitionsTableId: true, definitionsTableName: true, secretDefinitionsTableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, policies: true, provisions: true, defaultPermissions: true } }, + selection: { fields: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, definitionsTableId: true, definitionsTableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, policies: true, provisions: true, defaultPermissions: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useFunctionModulesQuery({ const { mutate } = useCreateFunctionModuleMutation({ selection: { fields: { id: true } }, }); -mutate({ databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', definitionsTableId: '', secretDefinitionsTableId: '', definitionsTableName: '', secretDefinitionsTableName: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '', policies: '', provisions: '', defaultPermissions: '' }); +mutate({ databaseId: '', entityField: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', definitionsTableId: '', definitionsTableName: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '', policies: '', provisions: '', defaultPermissions: '' }); ``` diff --git a/.agents/skills/hooks-modules/references/graph-execution-module.md b/.agents/skills/hooks-modules/references/graph-execution-module.md index 8eed0c1c70..bbee27770e 100644 --- a/.agents/skills/hooks-modules/references/graph-execution-module.md +++ b/.agents/skills/hooks-modules/references/graph-execution-module.md @@ -7,8 +7,8 @@ React Query hooks for GraphExecutionModule data operations ## Usage ```typescript -useGraphExecutionModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, graphModuleId: true, scope: true, prefix: true, executionsTableId: true, outputsTableId: true, nodeStatesTableId: true, executionsTableName: true, outputsTableName: true, nodeStatesTableName: true, apiName: true, privateApiName: true, entityTableId: true, policies: true, provisions: true, defaultPermissions: true, createdAt: true } } }) -useGraphExecutionModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, graphModuleId: true, scope: true, prefix: true, executionsTableId: true, outputsTableId: true, nodeStatesTableId: true, executionsTableName: true, outputsTableName: true, nodeStatesTableName: true, apiName: true, privateApiName: true, entityTableId: true, policies: true, provisions: true, defaultPermissions: true, createdAt: true } } }) +useGraphExecutionModulesQuery({ selection: { fields: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, graphModuleId: true, scope: true, prefix: true, executionsTableId: true, outputsTableId: true, nodeStatesTableId: true, executionsTableName: true, outputsTableName: true, nodeStatesTableName: true, apiName: true, privateApiName: true, entityTableId: true, policies: true, provisions: true, defaultPermissions: true, createdAt: true } } }) +useGraphExecutionModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, graphModuleId: true, scope: true, prefix: true, executionsTableId: true, outputsTableId: true, nodeStatesTableId: true, executionsTableName: true, outputsTableName: true, nodeStatesTableName: true, apiName: true, privateApiName: true, entityTableId: true, policies: true, provisions: true, defaultPermissions: true, createdAt: true } } }) useCreateGraphExecutionModuleMutation({ selection: { fields: { id: true } } }) useUpdateGraphExecutionModuleMutation({ selection: { fields: { id: true } } }) useDeleteGraphExecutionModuleMutation({}) @@ -20,7 +20,7 @@ useDeleteGraphExecutionModuleMutation({}) ```typescript const { data, isLoading } = useGraphExecutionModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, graphModuleId: true, scope: true, prefix: true, executionsTableId: true, outputsTableId: true, nodeStatesTableId: true, executionsTableName: true, outputsTableName: true, nodeStatesTableName: true, apiName: true, privateApiName: true, entityTableId: true, policies: true, provisions: true, defaultPermissions: true, createdAt: true } }, + selection: { fields: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, graphModuleId: true, scope: true, prefix: true, executionsTableId: true, outputsTableId: true, nodeStatesTableId: true, executionsTableName: true, outputsTableName: true, nodeStatesTableName: true, apiName: true, privateApiName: true, entityTableId: true, policies: true, provisions: true, defaultPermissions: true, createdAt: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useGraphExecutionModulesQuery({ const { mutate } = useCreateGraphExecutionModuleMutation({ selection: { fields: { id: true } }, }); -mutate({ databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', graphModuleId: '', scope: '', prefix: '', executionsTableId: '', outputsTableId: '', nodeStatesTableId: '', executionsTableName: '', outputsTableName: '', nodeStatesTableName: '', apiName: '', privateApiName: '', entityTableId: '', policies: '', provisions: '', defaultPermissions: '' }); +mutate({ databaseId: '', entityField: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', graphModuleId: '', scope: '', prefix: '', executionsTableId: '', outputsTableId: '', nodeStatesTableId: '', executionsTableName: '', outputsTableName: '', nodeStatesTableName: '', apiName: '', privateApiName: '', entityTableId: '', policies: '', provisions: '', defaultPermissions: '' }); ``` diff --git a/.agents/skills/hooks-modules/references/graph-module.md b/.agents/skills/hooks-modules/references/graph-module.md index 2c7db8a328..0278715145 100644 --- a/.agents/skills/hooks-modules/references/graph-module.md +++ b/.agents/skills/hooks-modules/references/graph-module.md @@ -7,8 +7,8 @@ React Query hooks for GraphModule data operations ## Usage ```typescript -useGraphModulesQuery({ selection: { fields: { id: true, databaseId: true, publicSchemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, scope: true, prefix: true, merkleStoreModuleId: true, graphsTableId: true, apiName: true, privateApiName: true, entityTableId: true, policies: true, provisions: true, defaultPermissions: true, createdAt: true } } }) -useGraphModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, publicSchemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, scope: true, prefix: true, merkleStoreModuleId: true, graphsTableId: true, apiName: true, privateApiName: true, entityTableId: true, policies: true, provisions: true, defaultPermissions: true, createdAt: true } } }) +useGraphModulesQuery({ selection: { fields: { id: true, databaseId: true, entityField: true, publicSchemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, scope: true, prefix: true, merkleStoreModuleId: true, graphsTableId: true, apiName: true, privateApiName: true, entityTableId: true, policies: true, provisions: true, defaultPermissions: true, createdAt: true } } }) +useGraphModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, entityField: true, publicSchemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, scope: true, prefix: true, merkleStoreModuleId: true, graphsTableId: true, apiName: true, privateApiName: true, entityTableId: true, policies: true, provisions: true, defaultPermissions: true, createdAt: true } } }) useCreateGraphModuleMutation({ selection: { fields: { id: true } } }) useUpdateGraphModuleMutation({ selection: { fields: { id: true } } }) useDeleteGraphModuleMutation({}) @@ -20,7 +20,7 @@ useDeleteGraphModuleMutation({}) ```typescript const { data, isLoading } = useGraphModulesQuery({ - selection: { fields: { id: true, databaseId: true, publicSchemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, scope: true, prefix: true, merkleStoreModuleId: true, graphsTableId: true, apiName: true, privateApiName: true, entityTableId: true, policies: true, provisions: true, defaultPermissions: true, createdAt: true } }, + selection: { fields: { id: true, databaseId: true, entityField: true, publicSchemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, scope: true, prefix: true, merkleStoreModuleId: true, graphsTableId: true, apiName: true, privateApiName: true, entityTableId: true, policies: true, provisions: true, defaultPermissions: true, createdAt: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useGraphModulesQuery({ const { mutate } = useCreateGraphModuleMutation({ selection: { fields: { id: true } }, }); -mutate({ databaseId: '', publicSchemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', scope: '', prefix: '', merkleStoreModuleId: '', graphsTableId: '', apiName: '', privateApiName: '', entityTableId: '', policies: '', provisions: '', defaultPermissions: '' }); +mutate({ databaseId: '', entityField: '', publicSchemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', scope: '', prefix: '', merkleStoreModuleId: '', graphsTableId: '', apiName: '', privateApiName: '', entityTableId: '', policies: '', provisions: '', defaultPermissions: '' }); ``` diff --git a/.agents/skills/hooks-modules/references/hierarchy-module.md b/.agents/skills/hooks-modules/references/hierarchy-module.md index 648531b64f..4ecd04064e 100644 --- a/.agents/skills/hooks-modules/references/hierarchy-module.md +++ b/.agents/skills/hooks-modules/references/hierarchy-module.md @@ -7,8 +7,8 @@ React Query hooks for HierarchyModule data operations ## Usage ```typescript -useHierarchyModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, chartEdgesTableId: true, chartEdgesTableName: true, hierarchySprtTableId: true, hierarchySprtTableName: true, chartEdgeGrantsTableId: true, chartEdgeGrantsTableName: true, entityTableId: true, usersTableId: true, scope: true, prefix: true, privateSchemaName: true, sprtTableName: true, rebuildHierarchyFunction: true, getSubordinatesFunction: true, getManagersFunction: true, isManagerOfFunction: true, defaultPermissions: true, createdAt: true } } }) -useHierarchyModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, chartEdgesTableId: true, chartEdgesTableName: true, hierarchySprtTableId: true, hierarchySprtTableName: true, chartEdgeGrantsTableId: true, chartEdgeGrantsTableName: true, entityTableId: true, usersTableId: true, scope: true, prefix: true, privateSchemaName: true, sprtTableName: true, rebuildHierarchyFunction: true, getSubordinatesFunction: true, getManagersFunction: true, isManagerOfFunction: true, defaultPermissions: true, createdAt: true } } }) +useHierarchyModulesQuery({ selection: { fields: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, chartEdgesTableId: true, chartEdgesTableName: true, hierarchySprtTableId: true, hierarchySprtTableName: true, chartEdgeGrantsTableId: true, chartEdgeGrantsTableName: true, entityTableId: true, usersTableId: true, scope: true, prefix: true, privateSchemaName: true, sprtTableName: true, rebuildHierarchyFunction: true, getSubordinatesFunction: true, getManagersFunction: true, isManagerOfFunction: true, defaultPermissions: true, createdAt: true } } }) +useHierarchyModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, chartEdgesTableId: true, chartEdgesTableName: true, hierarchySprtTableId: true, hierarchySprtTableName: true, chartEdgeGrantsTableId: true, chartEdgeGrantsTableName: true, entityTableId: true, usersTableId: true, scope: true, prefix: true, privateSchemaName: true, sprtTableName: true, rebuildHierarchyFunction: true, getSubordinatesFunction: true, getManagersFunction: true, isManagerOfFunction: true, defaultPermissions: true, createdAt: true } } }) useCreateHierarchyModuleMutation({ selection: { fields: { id: true } } }) useUpdateHierarchyModuleMutation({ selection: { fields: { id: true } } }) useDeleteHierarchyModuleMutation({}) @@ -20,7 +20,7 @@ useDeleteHierarchyModuleMutation({}) ```typescript const { data, isLoading } = useHierarchyModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, chartEdgesTableId: true, chartEdgesTableName: true, hierarchySprtTableId: true, hierarchySprtTableName: true, chartEdgeGrantsTableId: true, chartEdgeGrantsTableName: true, entityTableId: true, usersTableId: true, scope: true, prefix: true, privateSchemaName: true, sprtTableName: true, rebuildHierarchyFunction: true, getSubordinatesFunction: true, getManagersFunction: true, isManagerOfFunction: true, defaultPermissions: true, createdAt: true } }, + selection: { fields: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, chartEdgesTableId: true, chartEdgesTableName: true, hierarchySprtTableId: true, hierarchySprtTableName: true, chartEdgeGrantsTableId: true, chartEdgeGrantsTableName: true, entityTableId: true, usersTableId: true, scope: true, prefix: true, privateSchemaName: true, sprtTableName: true, rebuildHierarchyFunction: true, getSubordinatesFunction: true, getManagersFunction: true, isManagerOfFunction: true, defaultPermissions: true, createdAt: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useHierarchyModulesQuery({ const { mutate } = useCreateHierarchyModuleMutation({ selection: { fields: { id: true } }, }); -mutate({ databaseId: '', schemaId: '', privateSchemaId: '', chartEdgesTableId: '', chartEdgesTableName: '', hierarchySprtTableId: '', hierarchySprtTableName: '', chartEdgeGrantsTableId: '', chartEdgeGrantsTableName: '', entityTableId: '', usersTableId: '', scope: '', prefix: '', privateSchemaName: '', sprtTableName: '', rebuildHierarchyFunction: '', getSubordinatesFunction: '', getManagersFunction: '', isManagerOfFunction: '', defaultPermissions: '' }); +mutate({ databaseId: '', entityField: '', schemaId: '', privateSchemaId: '', chartEdgesTableId: '', chartEdgesTableName: '', hierarchySprtTableId: '', hierarchySprtTableName: '', chartEdgeGrantsTableId: '', chartEdgeGrantsTableName: '', entityTableId: '', usersTableId: '', scope: '', prefix: '', privateSchemaName: '', sprtTableName: '', rebuildHierarchyFunction: '', getSubordinatesFunction: '', getManagersFunction: '', isManagerOfFunction: '', defaultPermissions: '' }); ``` diff --git a/.agents/skills/hooks-modules/references/identity-providers-module.md b/.agents/skills/hooks-modules/references/identity-providers-module.md index 114d5b84ed..265a13b26c 100644 --- a/.agents/skills/hooks-modules/references/identity-providers-module.md +++ b/.agents/skills/hooks-modules/references/identity-providers-module.md @@ -4,20 +4,19 @@ Entity-aware config row for the identity_providers_module, which provisions a per-database identity_providers table holding OAuth2 / OIDC (and future SAML) provider definitions. - The scope column determines which config_secrets_module table the rotate proc targets - (app_secrets for app scope, org_secrets for org scope). When scope = platform, - the secrets table gets a database_id column and platform-level RLS via - AuthzRelatedEntityMembership through database.owner_id. + The scope column determines which internal_secrets_module table the rotate proc targets + (app_secrets for app scope, platform_secrets for platform scope). When scope = database, + the secrets table gets a database_id column. Scoping matrix: scope=app → per-database flat, in-app admin manages - scope=platform → per-database, platform admin manages (generate:constructive) - scope=org → per-org tenant, org admin manages + scope=platform → platform-wide, platform admin manages (generate:constructive) + scope=database → per-database infra, carries database_id ## Usage ```typescript -useIdentityProvidersModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, tableId: true, tableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true } } }) -useIdentityProvidersModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, tableId: true, tableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true } } }) +useIdentityProvidersModulesQuery({ selection: { fields: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, tableId: true, tableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true } } }) +useIdentityProvidersModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, tableId: true, tableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true } } }) useCreateIdentityProvidersModuleMutation({ selection: { fields: { id: true } } }) useUpdateIdentityProvidersModuleMutation({ selection: { fields: { id: true } } }) useDeleteIdentityProvidersModuleMutation({}) @@ -29,7 +28,7 @@ useDeleteIdentityProvidersModuleMutation({}) ```typescript const { data, isLoading } = useIdentityProvidersModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, tableId: true, tableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true } }, + selection: { fields: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, tableId: true, tableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true } }, }); ``` @@ -39,5 +38,5 @@ const { data, isLoading } = useIdentityProvidersModulesQuery({ const { mutate } = useCreateIdentityProvidersModuleMutation({ selection: { fields: { id: true } }, }); -mutate({ databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', tableId: '', tableName: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '' }); +mutate({ databaseId: '', entityField: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', tableId: '', tableName: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '' }); ``` diff --git a/.agents/skills/hooks-modules/references/inference-log-module.md b/.agents/skills/hooks-modules/references/inference-log-module.md index e28a33600f..2e5b705dcc 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: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, inferenceLogTableId: true, inferenceLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } } }) -useInferenceLogModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, inferenceLogTableId: true, inferenceLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } } }) +useInferenceLogModulesQuery({ selection: { fields: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, inferenceLogTableId: true, inferenceLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } } }) +useInferenceLogModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, inferenceLogTableId: true, inferenceLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } } }) useCreateInferenceLogModuleMutation({ selection: { fields: { id: true } } }) useUpdateInferenceLogModuleMutation({ selection: { fields: { id: true } } }) useDeleteInferenceLogModuleMutation({}) @@ -20,7 +20,7 @@ useDeleteInferenceLogModuleMutation({}) ```typescript const { data, isLoading } = useInferenceLogModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, inferenceLogTableId: true, inferenceLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } }, + selection: { fields: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, inferenceLogTableId: true, inferenceLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useInferenceLogModulesQuery({ const { mutate } = useCreateInferenceLogModuleMutation({ selection: { fields: { id: true } }, }); -mutate({ databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', inferenceLogTableId: '', inferenceLogTableName: '', usageDailyTableId: '', usageDailyTableName: '', interval: '', retention: '', premake: '', scope: '', actorFkTableId: '', entityFkTableId: '', prefix: '', apiName: '', privateApiName: '' }); +mutate({ databaseId: '', entityField: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', inferenceLogTableId: '', inferenceLogTableName: '', usageDailyTableId: '', usageDailyTableName: '', interval: '', retention: '', premake: '', scope: '', actorFkTableId: '', entityFkTableId: '', prefix: '', apiName: '', privateApiName: '' }); ``` diff --git a/.agents/skills/hooks-modules/references/infra-config-module.md b/.agents/skills/hooks-modules/references/infra-config-module.md new file mode 100644 index 0000000000..56832275c8 --- /dev/null +++ b/.agents/skills/hooks-modules/references/infra-config-module.md @@ -0,0 +1,34 @@ +# infraConfigModule + + + +Namespace-backed plaintext key-value config module. Requires namespace_module and emits namespace:sync_config job triggers for K8s ConfigMap synchronization. + +## Usage + +```typescript +useInfraConfigModulesQuery({ selection: { fields: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, configTableId: true, configTableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, policies: true, provisions: true } } }) +useInfraConfigModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, configTableId: true, configTableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, policies: true, provisions: true } } }) +useCreateInfraConfigModuleMutation({ selection: { fields: { id: true } } }) +useUpdateInfraConfigModuleMutation({ selection: { fields: { id: true } } }) +useDeleteInfraConfigModuleMutation({}) +``` + +## Examples + +### List all infraConfigModules + +```typescript +const { data, isLoading } = useInfraConfigModulesQuery({ + selection: { fields: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, configTableId: true, configTableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, policies: true, provisions: true } }, +}); +``` + +### Create a infraConfigModule + +```typescript +const { mutate } = useCreateInfraConfigModuleMutation({ + selection: { fields: { id: true } }, +}); +mutate({ databaseId: '', entityField: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', configTableId: '', configTableName: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '', policies: '', provisions: '' }); +``` diff --git a/.agents/skills/hooks-modules/references/infra-secrets-module.md b/.agents/skills/hooks-modules/references/infra-secrets-module.md new file mode 100644 index 0000000000..f8e9e66a3e --- /dev/null +++ b/.agents/skills/hooks-modules/references/infra-secrets-module.md @@ -0,0 +1,34 @@ +# infraSecretsModule + + + +Namespace-backed PGP-encrypted key-value secrets module. Requires namespace_module and emits namespace:sync_secrets job triggers for K8s Secret synchronization. + +## Usage + +```typescript +useInfraSecretsModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, secretsTableId: true, secretsTableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, entityField: true, policies: true, provisions: true } } }) +useInfraSecretsModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, secretsTableId: true, secretsTableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, entityField: true, policies: true, provisions: true } } }) +useCreateInfraSecretsModuleMutation({ selection: { fields: { id: true } } }) +useUpdateInfraSecretsModuleMutation({ selection: { fields: { id: true } } }) +useDeleteInfraSecretsModuleMutation({}) +``` + +## Examples + +### List all infraSecretsModules + +```typescript +const { data, isLoading } = useInfraSecretsModulesQuery({ + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, secretsTableId: true, secretsTableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, entityField: true, policies: true, provisions: true } }, +}); +``` + +### Create a infraSecretsModule + +```typescript +const { mutate } = useCreateInfraSecretsModuleMutation({ + selection: { fields: { id: true } }, +}); +mutate({ databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', secretsTableId: '', secretsTableName: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '', entityField: '', policies: '', provisions: '' }); +``` diff --git a/.agents/skills/hooks-modules/references/integration-providers-module.md b/.agents/skills/hooks-modules/references/integration-providers-module.md new file mode 100644 index 0000000000..28846e3fbb --- /dev/null +++ b/.agents/skills/hooks-modules/references/integration-providers-module.md @@ -0,0 +1,38 @@ +# integrationProvidersModule + + + +Config row for the integration_providers_module, which provisions a per-database + integration_providers table holding branded, reusable service definitions. + 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. + +## Usage + +```typescript +useIntegrationProvidersModulesQuery({ selection: { fields: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, tableId: true, tableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true } } }) +useIntegrationProvidersModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, tableId: true, tableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true } } }) +useCreateIntegrationProvidersModuleMutation({ selection: { fields: { id: true } } }) +useUpdateIntegrationProvidersModuleMutation({ selection: { fields: { id: true } } }) +useDeleteIntegrationProvidersModuleMutation({}) +``` + +## Examples + +### List all integrationProvidersModules + +```typescript +const { data, isLoading } = useIntegrationProvidersModulesQuery({ + selection: { fields: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, tableId: true, tableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true } }, +}); +``` + +### Create a integrationProvidersModule + +```typescript +const { mutate } = useCreateIntegrationProvidersModuleMutation({ + selection: { fields: { id: true } }, +}); +mutate({ databaseId: '', entityField: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', tableId: '', tableName: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '' }); +``` diff --git a/.agents/skills/hooks-modules/references/internal-secrets-module.md b/.agents/skills/hooks-modules/references/internal-secrets-module.md new file mode 100644 index 0000000000..8cd3dffa30 --- /dev/null +++ b/.agents/skills/hooks-modules/references/internal-secrets-module.md @@ -0,0 +1,34 @@ +# internalSecretsModule + + + +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. + +## Usage + +```typescript +useInternalSecretsModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, internalSecretsTableId: true, internalSecretsTableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, entityField: true, policies: true, provisions: true } } }) +useInternalSecretsModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, internalSecretsTableId: true, internalSecretsTableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, entityField: true, policies: true, provisions: true } } }) +useCreateInternalSecretsModuleMutation({ selection: { fields: { id: true } } }) +useUpdateInternalSecretsModuleMutation({ selection: { fields: { id: true } } }) +useDeleteInternalSecretsModuleMutation({}) +``` + +## Examples + +### List all internalSecretsModules + +```typescript +const { data, isLoading } = useInternalSecretsModulesQuery({ + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, internalSecretsTableId: true, internalSecretsTableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, entityField: true, policies: true, provisions: true } }, +}); +``` + +### Create a internalSecretsModule + +```typescript +const { mutate } = useCreateInternalSecretsModuleMutation({ + selection: { fields: { id: true } }, +}); +mutate({ databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', internalSecretsTableId: '', internalSecretsTableName: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '', entityField: '', policies: '', provisions: '' }); +``` diff --git a/.agents/skills/hooks-modules/references/invites-module.md b/.agents/skills/hooks-modules/references/invites-module.md index a1d26c7136..b5f856efa4 100644 --- a/.agents/skills/hooks-modules/references/invites-module.md +++ b/.agents/skills/hooks-modules/references/invites-module.md @@ -7,8 +7,8 @@ React Query hooks for InvitesModule data operations ## Usage ```typescript -useInvitesModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, emailsTableId: true, usersTableId: true, invitesTableId: true, claimedInvitesTableId: true, invitesTableName: true, claimedInvitesTableName: true, submitInviteCodeFunction: true, scope: true, prefix: true, entityTableId: true, apiName: true, privateApiName: true } } }) -useInvitesModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, emailsTableId: true, usersTableId: true, invitesTableId: true, claimedInvitesTableId: true, invitesTableName: true, claimedInvitesTableName: true, submitInviteCodeFunction: true, scope: true, prefix: true, entityTableId: true, apiName: true, privateApiName: true } } }) +useInvitesModulesQuery({ selection: { fields: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, emailsTableId: true, usersTableId: true, invitesTableId: true, claimedInvitesTableId: true, invitesTableName: true, claimedInvitesTableName: true, submitInviteCodeFunction: true, scope: true, prefix: true, entityTableId: true, apiName: true, privateApiName: true } } }) +useInvitesModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, emailsTableId: true, usersTableId: true, invitesTableId: true, claimedInvitesTableId: true, invitesTableName: true, claimedInvitesTableName: true, submitInviteCodeFunction: true, scope: true, prefix: true, entityTableId: true, apiName: true, privateApiName: true } } }) useCreateInvitesModuleMutation({ selection: { fields: { id: true } } }) useUpdateInvitesModuleMutation({ selection: { fields: { id: true } } }) useDeleteInvitesModuleMutation({}) @@ -20,7 +20,7 @@ useDeleteInvitesModuleMutation({}) ```typescript const { data, isLoading } = useInvitesModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, emailsTableId: true, usersTableId: true, invitesTableId: true, claimedInvitesTableId: true, invitesTableName: true, claimedInvitesTableName: true, submitInviteCodeFunction: true, scope: true, prefix: true, entityTableId: true, apiName: true, privateApiName: true } }, + selection: { fields: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, emailsTableId: true, usersTableId: true, invitesTableId: true, claimedInvitesTableId: true, invitesTableName: true, claimedInvitesTableName: true, submitInviteCodeFunction: true, scope: true, prefix: true, entityTableId: true, apiName: true, privateApiName: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useInvitesModulesQuery({ const { mutate } = useCreateInvitesModuleMutation({ selection: { fields: { id: true } }, }); -mutate({ databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', emailsTableId: '', usersTableId: '', invitesTableId: '', claimedInvitesTableId: '', invitesTableName: '', claimedInvitesTableName: '', submitInviteCodeFunction: '', scope: '', prefix: '', entityTableId: '', apiName: '', privateApiName: '' }); +mutate({ databaseId: '', entityField: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', emailsTableId: '', usersTableId: '', invitesTableId: '', claimedInvitesTableId: '', invitesTableName: '', claimedInvitesTableName: '', submitInviteCodeFunction: '', scope: '', prefix: '', entityTableId: '', apiName: '', privateApiName: '' }); ``` diff --git a/.agents/skills/hooks-modules/references/limits-module.md b/.agents/skills/hooks-modules/references/limits-module.md index 9f6d6e9668..7a7e5c50fa 100644 --- a/.agents/skills/hooks-modules/references/limits-module.md +++ b/.agents/skills/hooks-modules/references/limits-module.md @@ -7,8 +7,8 @@ React Query hooks for LimitsModule data operations ## Usage ```typescript -useLimitsModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, tableId: true, tableName: true, defaultTableId: true, defaultTableName: true, limitIncrementFunction: true, limitDecrementFunction: true, limitIncrementTrigger: true, limitDecrementTrigger: true, limitUpdateTrigger: true, limitCheckFunction: true, limitCreditsTableId: true, eventsTableId: true, creditCodesTableId: true, creditCodeItemsTableId: true, creditRedemptionsTableId: true, aggregateTableId: true, limitCapsTableId: true, limitCapsDefaultsTableId: true, capCheckTrigger: true, resolveCapFunction: true, limitWarningsTableId: true, limitWarningStateTableId: true, limitCheckSoftFunction: true, limitAggregateCheckSoftFunction: true, scope: true, prefix: true, entityTableId: true, actorTableId: true, apiName: true, privateApiName: true } } }) -useLimitsModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, tableId: true, tableName: true, defaultTableId: true, defaultTableName: true, limitIncrementFunction: true, limitDecrementFunction: true, limitIncrementTrigger: true, limitDecrementTrigger: true, limitUpdateTrigger: true, limitCheckFunction: true, limitCreditsTableId: true, eventsTableId: true, creditCodesTableId: true, creditCodeItemsTableId: true, creditRedemptionsTableId: true, aggregateTableId: true, limitCapsTableId: true, limitCapsDefaultsTableId: true, capCheckTrigger: true, resolveCapFunction: true, limitWarningsTableId: true, limitWarningStateTableId: true, limitCheckSoftFunction: true, limitAggregateCheckSoftFunction: true, scope: true, prefix: true, entityTableId: true, actorTableId: true, apiName: true, privateApiName: true } } }) +useLimitsModulesQuery({ selection: { fields: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, tableId: true, tableName: true, defaultTableId: true, defaultTableName: true, limitIncrementFunction: true, limitDecrementFunction: true, limitIncrementTrigger: true, limitDecrementTrigger: true, limitUpdateTrigger: true, limitCheckFunction: true, limitCreditsTableId: true, eventsTableId: true, creditCodesTableId: true, creditCodeItemsTableId: true, creditRedemptionsTableId: true, aggregateTableId: true, limitCapsTableId: true, limitCapsDefaultsTableId: true, capCheckTrigger: true, resolveCapFunction: true, limitWarningsTableId: true, limitWarningStateTableId: true, limitCheckSoftFunction: true, limitAggregateCheckSoftFunction: true, scope: true, prefix: true, entityTableId: true, actorTableId: true, apiName: true, privateApiName: true } } }) +useLimitsModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, tableId: true, tableName: true, defaultTableId: true, defaultTableName: true, limitIncrementFunction: true, limitDecrementFunction: true, limitIncrementTrigger: true, limitDecrementTrigger: true, limitUpdateTrigger: true, limitCheckFunction: true, limitCreditsTableId: true, eventsTableId: true, creditCodesTableId: true, creditCodeItemsTableId: true, creditRedemptionsTableId: true, aggregateTableId: true, limitCapsTableId: true, limitCapsDefaultsTableId: true, capCheckTrigger: true, resolveCapFunction: true, limitWarningsTableId: true, limitWarningStateTableId: true, limitCheckSoftFunction: true, limitAggregateCheckSoftFunction: true, scope: true, prefix: true, entityTableId: true, actorTableId: true, apiName: true, privateApiName: true } } }) useCreateLimitsModuleMutation({ selection: { fields: { id: true } } }) useUpdateLimitsModuleMutation({ selection: { fields: { id: true } } }) useDeleteLimitsModuleMutation({}) @@ -20,7 +20,7 @@ useDeleteLimitsModuleMutation({}) ```typescript const { data, isLoading } = useLimitsModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, tableId: true, tableName: true, defaultTableId: true, defaultTableName: true, limitIncrementFunction: true, limitDecrementFunction: true, limitIncrementTrigger: true, limitDecrementTrigger: true, limitUpdateTrigger: true, limitCheckFunction: true, limitCreditsTableId: true, eventsTableId: true, creditCodesTableId: true, creditCodeItemsTableId: true, creditRedemptionsTableId: true, aggregateTableId: true, limitCapsTableId: true, limitCapsDefaultsTableId: true, capCheckTrigger: true, resolveCapFunction: true, limitWarningsTableId: true, limitWarningStateTableId: true, limitCheckSoftFunction: true, limitAggregateCheckSoftFunction: true, scope: true, prefix: true, entityTableId: true, actorTableId: true, apiName: true, privateApiName: true } }, + selection: { fields: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, tableId: true, tableName: true, defaultTableId: true, defaultTableName: true, limitIncrementFunction: true, limitDecrementFunction: true, limitIncrementTrigger: true, limitDecrementTrigger: true, limitUpdateTrigger: true, limitCheckFunction: true, limitCreditsTableId: true, eventsTableId: true, creditCodesTableId: true, creditCodeItemsTableId: true, creditRedemptionsTableId: true, aggregateTableId: true, limitCapsTableId: true, limitCapsDefaultsTableId: true, capCheckTrigger: true, resolveCapFunction: true, limitWarningsTableId: true, limitWarningStateTableId: true, limitCheckSoftFunction: true, limitAggregateCheckSoftFunction: true, scope: true, prefix: true, entityTableId: true, actorTableId: true, apiName: true, privateApiName: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useLimitsModulesQuery({ const { mutate } = useCreateLimitsModuleMutation({ selection: { fields: { id: true } }, }); -mutate({ databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', tableId: '', tableName: '', defaultTableId: '', defaultTableName: '', limitIncrementFunction: '', limitDecrementFunction: '', limitIncrementTrigger: '', limitDecrementTrigger: '', limitUpdateTrigger: '', limitCheckFunction: '', limitCreditsTableId: '', eventsTableId: '', creditCodesTableId: '', creditCodeItemsTableId: '', creditRedemptionsTableId: '', aggregateTableId: '', limitCapsTableId: '', limitCapsDefaultsTableId: '', capCheckTrigger: '', resolveCapFunction: '', limitWarningsTableId: '', limitWarningStateTableId: '', limitCheckSoftFunction: '', limitAggregateCheckSoftFunction: '', scope: '', prefix: '', entityTableId: '', actorTableId: '', apiName: '', privateApiName: '' }); +mutate({ databaseId: '', entityField: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', tableId: '', tableName: '', defaultTableId: '', defaultTableName: '', limitIncrementFunction: '', limitDecrementFunction: '', limitIncrementTrigger: '', limitDecrementTrigger: '', limitUpdateTrigger: '', limitCheckFunction: '', limitCreditsTableId: '', eventsTableId: '', creditCodesTableId: '', creditCodeItemsTableId: '', creditRedemptionsTableId: '', aggregateTableId: '', limitCapsTableId: '', limitCapsDefaultsTableId: '', capCheckTrigger: '', resolveCapFunction: '', limitWarningsTableId: '', limitWarningStateTableId: '', limitCheckSoftFunction: '', limitAggregateCheckSoftFunction: '', scope: '', prefix: '', entityTableId: '', actorTableId: '', apiName: '', privateApiName: '' }); ``` diff --git a/.agents/skills/hooks-modules/references/memberships-module.md b/.agents/skills/hooks-modules/references/memberships-module.md index 617f4cc989..ee442972f7 100644 --- a/.agents/skills/hooks-modules/references/memberships-module.md +++ b/.agents/skills/hooks-modules/references/memberships-module.md @@ -7,8 +7,8 @@ React Query hooks for MembershipsModule data operations ## Usage ```typescript -useMembershipsModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, membershipsTableId: true, membershipsTableName: true, membersTableId: true, membersTableName: true, membershipDefaultsTableId: true, membershipDefaultsTableName: true, membershipSettingsTableId: true, membershipSettingsTableName: true, grantsTableId: true, grantsTableName: true, actorTableId: true, limitsTableId: true, defaultLimitsTableId: true, permissionsTableId: true, defaultPermissionsTableId: true, sprtTableId: true, adminGrantsTableId: true, adminGrantsTableName: true, ownerGrantsTableId: true, ownerGrantsTableName: true, scope: true, prefix: true, entityTableId: true, entityTableOwnerId: true, getOrgFn: true, actorMaskCheck: true, actorPermCheck: true, entityIdsByMask: true, entityIdsByPerm: true, entityIdsFunction: true, memberProfilesTableId: true, permissionDefaultPermissionsTableId: true, permissionDefaultGrantsTableId: true, apiName: true, privateApiName: true } } }) -useMembershipsModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, membershipsTableId: true, membershipsTableName: true, membersTableId: true, membersTableName: true, membershipDefaultsTableId: true, membershipDefaultsTableName: true, membershipSettingsTableId: true, membershipSettingsTableName: true, grantsTableId: true, grantsTableName: true, actorTableId: true, limitsTableId: true, defaultLimitsTableId: true, permissionsTableId: true, defaultPermissionsTableId: true, sprtTableId: true, adminGrantsTableId: true, adminGrantsTableName: true, ownerGrantsTableId: true, ownerGrantsTableName: true, scope: true, prefix: true, entityTableId: true, entityTableOwnerId: true, getOrgFn: true, actorMaskCheck: true, actorPermCheck: true, entityIdsByMask: true, entityIdsByPerm: true, entityIdsFunction: true, memberProfilesTableId: true, permissionDefaultPermissionsTableId: true, permissionDefaultGrantsTableId: true, apiName: true, privateApiName: true } } }) +useMembershipsModulesQuery({ selection: { fields: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, membershipsTableId: true, membershipsTableName: true, membersTableId: true, membersTableName: true, membershipDefaultsTableId: true, membershipDefaultsTableName: true, membershipSettingsTableId: true, membershipSettingsTableName: true, grantsTableId: true, grantsTableName: true, actorTableId: true, limitsTableId: true, defaultLimitsTableId: true, permissionsTableId: true, defaultPermissionsTableId: true, sprtTableId: true, adminGrantsTableId: true, adminGrantsTableName: true, ownerGrantsTableId: true, ownerGrantsTableName: true, scope: true, prefix: true, entityTableId: true, entityTableOwnerId: true, getOrgFn: true, actorMaskCheck: true, actorPermCheck: true, entityIdsByMask: true, entityIdsByPerm: true, entityIdsFunction: true, memberProfilesTableId: true, permissionDefaultPermissionsTableId: true, permissionDefaultGrantsTableId: true, apiName: true, privateApiName: true } } }) +useMembershipsModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, membershipsTableId: true, membershipsTableName: true, membersTableId: true, membersTableName: true, membershipDefaultsTableId: true, membershipDefaultsTableName: true, membershipSettingsTableId: true, membershipSettingsTableName: true, grantsTableId: true, grantsTableName: true, actorTableId: true, limitsTableId: true, defaultLimitsTableId: true, permissionsTableId: true, defaultPermissionsTableId: true, sprtTableId: true, adminGrantsTableId: true, adminGrantsTableName: true, ownerGrantsTableId: true, ownerGrantsTableName: true, scope: true, prefix: true, entityTableId: true, entityTableOwnerId: true, getOrgFn: true, actorMaskCheck: true, actorPermCheck: true, entityIdsByMask: true, entityIdsByPerm: true, entityIdsFunction: true, memberProfilesTableId: true, permissionDefaultPermissionsTableId: true, permissionDefaultGrantsTableId: true, apiName: true, privateApiName: true } } }) useCreateMembershipsModuleMutation({ selection: { fields: { id: true } } }) useUpdateMembershipsModuleMutation({ selection: { fields: { id: true } } }) useDeleteMembershipsModuleMutation({}) @@ -20,7 +20,7 @@ useDeleteMembershipsModuleMutation({}) ```typescript const { data, isLoading } = useMembershipsModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, membershipsTableId: true, membershipsTableName: true, membersTableId: true, membersTableName: true, membershipDefaultsTableId: true, membershipDefaultsTableName: true, membershipSettingsTableId: true, membershipSettingsTableName: true, grantsTableId: true, grantsTableName: true, actorTableId: true, limitsTableId: true, defaultLimitsTableId: true, permissionsTableId: true, defaultPermissionsTableId: true, sprtTableId: true, adminGrantsTableId: true, adminGrantsTableName: true, ownerGrantsTableId: true, ownerGrantsTableName: true, scope: true, prefix: true, entityTableId: true, entityTableOwnerId: true, getOrgFn: true, actorMaskCheck: true, actorPermCheck: true, entityIdsByMask: true, entityIdsByPerm: true, entityIdsFunction: true, memberProfilesTableId: true, permissionDefaultPermissionsTableId: true, permissionDefaultGrantsTableId: true, apiName: true, privateApiName: true } }, + selection: { fields: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, membershipsTableId: true, membershipsTableName: true, membersTableId: true, membersTableName: true, membershipDefaultsTableId: true, membershipDefaultsTableName: true, membershipSettingsTableId: true, membershipSettingsTableName: true, grantsTableId: true, grantsTableName: true, actorTableId: true, limitsTableId: true, defaultLimitsTableId: true, permissionsTableId: true, defaultPermissionsTableId: true, sprtTableId: true, adminGrantsTableId: true, adminGrantsTableName: true, ownerGrantsTableId: true, ownerGrantsTableName: true, scope: true, prefix: true, entityTableId: true, entityTableOwnerId: true, getOrgFn: true, actorMaskCheck: true, actorPermCheck: true, entityIdsByMask: true, entityIdsByPerm: true, entityIdsFunction: true, memberProfilesTableId: true, permissionDefaultPermissionsTableId: true, permissionDefaultGrantsTableId: true, apiName: true, privateApiName: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useMembershipsModulesQuery({ const { mutate } = useCreateMembershipsModuleMutation({ selection: { fields: { id: true } }, }); -mutate({ databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', membershipsTableId: '', membershipsTableName: '', membersTableId: '', membersTableName: '', membershipDefaultsTableId: '', membershipDefaultsTableName: '', membershipSettingsTableId: '', membershipSettingsTableName: '', grantsTableId: '', grantsTableName: '', actorTableId: '', limitsTableId: '', defaultLimitsTableId: '', permissionsTableId: '', defaultPermissionsTableId: '', sprtTableId: '', adminGrantsTableId: '', adminGrantsTableName: '', ownerGrantsTableId: '', ownerGrantsTableName: '', scope: '', prefix: '', entityTableId: '', entityTableOwnerId: '', getOrgFn: '', actorMaskCheck: '', actorPermCheck: '', entityIdsByMask: '', entityIdsByPerm: '', entityIdsFunction: '', memberProfilesTableId: '', permissionDefaultPermissionsTableId: '', permissionDefaultGrantsTableId: '', apiName: '', privateApiName: '' }); +mutate({ databaseId: '', entityField: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', membershipsTableId: '', membershipsTableName: '', membersTableId: '', membersTableName: '', membershipDefaultsTableId: '', membershipDefaultsTableName: '', membershipSettingsTableId: '', membershipSettingsTableName: '', grantsTableId: '', grantsTableName: '', actorTableId: '', limitsTableId: '', defaultLimitsTableId: '', permissionsTableId: '', defaultPermissionsTableId: '', sprtTableId: '', adminGrantsTableId: '', adminGrantsTableName: '', ownerGrantsTableId: '', ownerGrantsTableName: '', scope: '', prefix: '', entityTableId: '', entityTableOwnerId: '', getOrgFn: '', actorMaskCheck: '', actorPermCheck: '', entityIdsByMask: '', entityIdsByPerm: '', entityIdsFunction: '', memberProfilesTableId: '', permissionDefaultPermissionsTableId: '', permissionDefaultGrantsTableId: '', apiName: '', privateApiName: '' }); ``` diff --git a/.agents/skills/hooks-modules/references/merkle-store-module.md b/.agents/skills/hooks-modules/references/merkle-store-module.md index 2124c1753a..c66d1d25ed 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: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, objectTableId: true, storeTableId: true, commitTableId: true, refTableId: true, prefix: true, apiName: true, privateApiName: true, scope: true, functionPrefix: true, permissionKey: true, createdAt: true } } }) -useMerkleStoreModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, objectTableId: true, storeTableId: true, commitTableId: true, refTableId: true, prefix: true, apiName: true, privateApiName: true, scope: true, functionPrefix: true, permissionKey: true, createdAt: true } } }) +useMerkleStoreModulesQuery({ selection: { fields: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, objectTableId: true, storeTableId: true, commitTableId: true, refTableId: true, prefix: true, apiName: true, privateApiName: true, scope: true, functionPrefix: true, permissionKey: true, createdAt: true } } }) +useMerkleStoreModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, objectTableId: true, storeTableId: true, commitTableId: true, refTableId: true, prefix: true, apiName: true, privateApiName: true, scope: true, functionPrefix: true, permissionKey: true, createdAt: true } } }) useCreateMerkleStoreModuleMutation({ selection: { fields: { id: true } } }) useUpdateMerkleStoreModuleMutation({ selection: { fields: { id: true } } }) useDeleteMerkleStoreModuleMutation({}) @@ -20,7 +20,7 @@ useDeleteMerkleStoreModuleMutation({}) ```typescript const { data, isLoading } = useMerkleStoreModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, objectTableId: true, storeTableId: true, commitTableId: true, refTableId: true, prefix: true, apiName: true, privateApiName: true, scope: true, functionPrefix: true, permissionKey: true, createdAt: true } }, + selection: { fields: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, objectTableId: true, storeTableId: true, commitTableId: true, refTableId: true, prefix: true, apiName: true, privateApiName: true, scope: true, functionPrefix: true, permissionKey: true, createdAt: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useMerkleStoreModulesQuery({ const { mutate } = useCreateMerkleStoreModuleMutation({ selection: { fields: { id: true } }, }); -mutate({ databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', objectTableId: '', storeTableId: '', commitTableId: '', refTableId: '', prefix: '', apiName: '', privateApiName: '', scope: '', functionPrefix: '', permissionKey: '' }); +mutate({ databaseId: '', entityField: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', objectTableId: '', storeTableId: '', commitTableId: '', refTableId: '', prefix: '', apiName: '', privateApiName: '', scope: '', functionPrefix: '', permissionKey: '' }); ``` diff --git a/.agents/skills/hooks-modules/references/namespace-module.md b/.agents/skills/hooks-modules/references/namespace-module.md index 7537c5d8f3..d8c28a8431 100644 --- a/.agents/skills/hooks-modules/references/namespace-module.md +++ b/.agents/skills/hooks-modules/references/namespace-module.md @@ -7,8 +7,8 @@ React Query hooks for NamespaceModule data operations ## Usage ```typescript -useNamespaceModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, namespacesTableId: true, namespaceEventsTableId: true, namespacesTableName: true, namespaceEventsTableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, platformNamespacesTableId: true, policies: true, provisions: true, defaultPermissions: true } } }) -useNamespaceModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, namespacesTableId: true, namespaceEventsTableId: true, namespacesTableName: true, namespaceEventsTableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, platformNamespacesTableId: true, policies: true, provisions: true, defaultPermissions: true } } }) +useNamespaceModulesQuery({ selection: { fields: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, namespacesTableId: true, namespaceEventsTableId: true, namespacesTableName: true, namespaceEventsTableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, policies: true, provisions: true, defaultPermissions: true } } }) +useNamespaceModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, namespacesTableId: true, namespaceEventsTableId: true, namespacesTableName: true, namespaceEventsTableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, policies: true, provisions: true, defaultPermissions: true } } }) useCreateNamespaceModuleMutation({ selection: { fields: { id: true } } }) useUpdateNamespaceModuleMutation({ selection: { fields: { id: true } } }) useDeleteNamespaceModuleMutation({}) @@ -20,7 +20,7 @@ useDeleteNamespaceModuleMutation({}) ```typescript const { data, isLoading } = useNamespaceModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, namespacesTableId: true, namespaceEventsTableId: true, namespacesTableName: true, namespaceEventsTableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, platformNamespacesTableId: true, policies: true, provisions: true, defaultPermissions: true } }, + selection: { fields: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, namespacesTableId: true, namespaceEventsTableId: true, namespacesTableName: true, namespaceEventsTableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, policies: true, provisions: true, defaultPermissions: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useNamespaceModulesQuery({ const { mutate } = useCreateNamespaceModuleMutation({ selection: { fields: { id: true } }, }); -mutate({ databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', namespacesTableId: '', namespaceEventsTableId: '', namespacesTableName: '', namespaceEventsTableName: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '', platformNamespacesTableId: '', policies: '', provisions: '', defaultPermissions: '' }); +mutate({ databaseId: '', entityField: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', namespacesTableId: '', namespaceEventsTableId: '', namespacesTableName: '', namespaceEventsTableName: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '', policies: '', provisions: '', defaultPermissions: '' }); ``` diff --git a/.agents/skills/hooks-modules/references/notifications-module.md b/.agents/skills/hooks-modules/references/notifications-module.md index ef448261a0..ae7a78c917 100644 --- a/.agents/skills/hooks-modules/references/notifications-module.md +++ b/.agents/skills/hooks-modules/references/notifications-module.md @@ -7,8 +7,8 @@ React Query hooks for NotificationsModule data operations ## Usage ```typescript -useNotificationsModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, notificationsTableId: true, readStateTableId: true, preferencesTableId: true, channelsTableId: true, deliveryLogTableId: true, suppressionsTableId: true, ownerTableId: true, userSettingsTableId: true, organizationSettingsTableId: true, hasChannels: true, hasPreferences: true, hasSettingsExtension: true, hasDigestMetadata: true, hasSubscriptions: true, defaultPermissions: true, apiName: true, privateApiName: true } } }) -useNotificationsModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, notificationsTableId: true, readStateTableId: true, preferencesTableId: true, channelsTableId: true, deliveryLogTableId: true, suppressionsTableId: true, ownerTableId: true, userSettingsTableId: true, organizationSettingsTableId: true, hasChannels: true, hasPreferences: true, hasSettingsExtension: true, hasDigestMetadata: true, hasSubscriptions: true, defaultPermissions: true, apiName: true, privateApiName: true } } }) +useNotificationsModulesQuery({ selection: { fields: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, notificationsTableId: true, readStateTableId: true, preferencesTableId: true, channelsTableId: true, deliveryLogTableId: true, suppressionsTableId: true, ownerTableId: true, userSettingsTableId: true, organizationSettingsTableId: true, hasChannels: true, hasPreferences: true, hasSettingsExtension: true, hasDigestMetadata: true, hasSubscriptions: true, defaultPermissions: true, apiName: true, privateApiName: true } } }) +useNotificationsModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, notificationsTableId: true, readStateTableId: true, preferencesTableId: true, channelsTableId: true, deliveryLogTableId: true, suppressionsTableId: true, ownerTableId: true, userSettingsTableId: true, organizationSettingsTableId: true, hasChannels: true, hasPreferences: true, hasSettingsExtension: true, hasDigestMetadata: true, hasSubscriptions: true, defaultPermissions: true, apiName: true, privateApiName: true } } }) useCreateNotificationsModuleMutation({ selection: { fields: { id: true } } }) useUpdateNotificationsModuleMutation({ selection: { fields: { id: true } } }) useDeleteNotificationsModuleMutation({}) @@ -20,7 +20,7 @@ useDeleteNotificationsModuleMutation({}) ```typescript const { data, isLoading } = useNotificationsModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, notificationsTableId: true, readStateTableId: true, preferencesTableId: true, channelsTableId: true, deliveryLogTableId: true, suppressionsTableId: true, ownerTableId: true, userSettingsTableId: true, organizationSettingsTableId: true, hasChannels: true, hasPreferences: true, hasSettingsExtension: true, hasDigestMetadata: true, hasSubscriptions: true, defaultPermissions: true, apiName: true, privateApiName: true } }, + selection: { fields: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, notificationsTableId: true, readStateTableId: true, preferencesTableId: true, channelsTableId: true, deliveryLogTableId: true, suppressionsTableId: true, ownerTableId: true, userSettingsTableId: true, organizationSettingsTableId: true, hasChannels: true, hasPreferences: true, hasSettingsExtension: true, hasDigestMetadata: true, hasSubscriptions: true, defaultPermissions: true, apiName: true, privateApiName: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useNotificationsModulesQuery({ const { mutate } = useCreateNotificationsModuleMutation({ selection: { fields: { id: true } }, }); -mutate({ databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', notificationsTableId: '', readStateTableId: '', preferencesTableId: '', channelsTableId: '', deliveryLogTableId: '', suppressionsTableId: '', ownerTableId: '', userSettingsTableId: '', organizationSettingsTableId: '', hasChannels: '', hasPreferences: '', hasSettingsExtension: '', hasDigestMetadata: '', hasSubscriptions: '', defaultPermissions: '', apiName: '', privateApiName: '' }); +mutate({ databaseId: '', entityField: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', notificationsTableId: '', readStateTableId: '', preferencesTableId: '', channelsTableId: '', deliveryLogTableId: '', suppressionsTableId: '', ownerTableId: '', userSettingsTableId: '', organizationSettingsTableId: '', hasChannels: '', hasPreferences: '', hasSettingsExtension: '', hasDigestMetadata: '', hasSubscriptions: '', defaultPermissions: '', apiName: '', privateApiName: '' }); ``` diff --git a/.agents/skills/hooks-modules/references/permissions-module.md b/.agents/skills/hooks-modules/references/permissions-module.md index d04caf4a28..2551c93180 100644 --- a/.agents/skills/hooks-modules/references/permissions-module.md +++ b/.agents/skills/hooks-modules/references/permissions-module.md @@ -7,8 +7,8 @@ React Query hooks for PermissionsModule data operations ## Usage ```typescript -usePermissionsModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, tableId: true, tableName: true, defaultTableId: true, defaultTableName: true, bitlen: true, scope: true, prefix: true, entityTableId: true, actorTableId: true, getPaddedMask: true, getMask: true, getByMask: true, getMaskByName: true, apiName: true, privateApiName: true } } }) -usePermissionsModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, tableId: true, tableName: true, defaultTableId: true, defaultTableName: true, bitlen: true, scope: true, prefix: true, entityTableId: true, actorTableId: true, getPaddedMask: true, getMask: true, getByMask: true, getMaskByName: true, apiName: true, privateApiName: true } } }) +usePermissionsModulesQuery({ selection: { fields: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, tableId: true, tableName: true, defaultTableId: true, defaultTableName: true, bitlen: true, scope: true, prefix: true, entityTableId: true, actorTableId: true, getPaddedMask: true, getMask: true, getByMask: true, getMaskByName: true, apiName: true, privateApiName: true } } }) +usePermissionsModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, tableId: true, tableName: true, defaultTableId: true, defaultTableName: true, bitlen: true, scope: true, prefix: true, entityTableId: true, actorTableId: true, getPaddedMask: true, getMask: true, getByMask: true, getMaskByName: true, apiName: true, privateApiName: true } } }) useCreatePermissionsModuleMutation({ selection: { fields: { id: true } } }) useUpdatePermissionsModuleMutation({ selection: { fields: { id: true } } }) useDeletePermissionsModuleMutation({}) @@ -20,7 +20,7 @@ useDeletePermissionsModuleMutation({}) ```typescript const { data, isLoading } = usePermissionsModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, tableId: true, tableName: true, defaultTableId: true, defaultTableName: true, bitlen: true, scope: true, prefix: true, entityTableId: true, actorTableId: true, getPaddedMask: true, getMask: true, getByMask: true, getMaskByName: true, apiName: true, privateApiName: true } }, + selection: { fields: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, tableId: true, tableName: true, defaultTableId: true, defaultTableName: true, bitlen: true, scope: true, prefix: true, entityTableId: true, actorTableId: true, getPaddedMask: true, getMask: true, getByMask: true, getMaskByName: true, apiName: true, privateApiName: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = usePermissionsModulesQuery({ const { mutate } = useCreatePermissionsModuleMutation({ selection: { fields: { id: true } }, }); -mutate({ databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', tableId: '', tableName: '', defaultTableId: '', defaultTableName: '', bitlen: '', scope: '', prefix: '', entityTableId: '', actorTableId: '', getPaddedMask: '', getMask: '', getByMask: '', getMaskByName: '', apiName: '', privateApiName: '' }); +mutate({ databaseId: '', entityField: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', tableId: '', tableName: '', defaultTableId: '', defaultTableName: '', bitlen: '', scope: '', prefix: '', entityTableId: '', actorTableId: '', getPaddedMask: '', getMask: '', getByMask: '', getMaskByName: '', apiName: '', privateApiName: '' }); ``` diff --git a/.agents/skills/hooks-modules/references/profiles-module.md b/.agents/skills/hooks-modules/references/profiles-module.md index b45581e6c5..24a3dad3d0 100644 --- a/.agents/skills/hooks-modules/references/profiles-module.md +++ b/.agents/skills/hooks-modules/references/profiles-module.md @@ -7,8 +7,8 @@ React Query hooks for ProfilesModule data operations ## Usage ```typescript -useProfilesModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, tableId: true, tableName: true, profilePermissionsTableId: true, profilePermissionsTableName: true, profileGrantsTableId: true, profileGrantsTableName: true, profileDefinitionGrantsTableId: true, profileDefinitionGrantsTableName: true, profileTemplatesTableId: true, profileTemplatesTableName: true, scope: true, prefix: true, entityTableId: true, actorTableId: true, permissionsTableId: true, membershipsTableId: true, apiName: true, privateApiName: true } } }) -useProfilesModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, tableId: true, tableName: true, profilePermissionsTableId: true, profilePermissionsTableName: true, profileGrantsTableId: true, profileGrantsTableName: true, profileDefinitionGrantsTableId: true, profileDefinitionGrantsTableName: true, profileTemplatesTableId: true, profileTemplatesTableName: true, scope: true, prefix: true, entityTableId: true, actorTableId: true, permissionsTableId: true, membershipsTableId: true, apiName: true, privateApiName: true } } }) +useProfilesModulesQuery({ selection: { fields: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, tableId: true, tableName: true, profilePermissionsTableId: true, profilePermissionsTableName: true, profileGrantsTableId: true, profileGrantsTableName: true, profileDefinitionGrantsTableId: true, profileDefinitionGrantsTableName: true, profileTemplatesTableId: true, profileTemplatesTableName: true, scope: true, prefix: true, entityTableId: true, actorTableId: true, permissionsTableId: true, membershipsTableId: true, apiName: true, privateApiName: true } } }) +useProfilesModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, tableId: true, tableName: true, profilePermissionsTableId: true, profilePermissionsTableName: true, profileGrantsTableId: true, profileGrantsTableName: true, profileDefinitionGrantsTableId: true, profileDefinitionGrantsTableName: true, profileTemplatesTableId: true, profileTemplatesTableName: true, scope: true, prefix: true, entityTableId: true, actorTableId: true, permissionsTableId: true, membershipsTableId: true, apiName: true, privateApiName: true } } }) useCreateProfilesModuleMutation({ selection: { fields: { id: true } } }) useUpdateProfilesModuleMutation({ selection: { fields: { id: true } } }) useDeleteProfilesModuleMutation({}) @@ -20,7 +20,7 @@ useDeleteProfilesModuleMutation({}) ```typescript const { data, isLoading } = useProfilesModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, tableId: true, tableName: true, profilePermissionsTableId: true, profilePermissionsTableName: true, profileGrantsTableId: true, profileGrantsTableName: true, profileDefinitionGrantsTableId: true, profileDefinitionGrantsTableName: true, profileTemplatesTableId: true, profileTemplatesTableName: true, scope: true, prefix: true, entityTableId: true, actorTableId: true, permissionsTableId: true, membershipsTableId: true, apiName: true, privateApiName: true } }, + selection: { fields: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, tableId: true, tableName: true, profilePermissionsTableId: true, profilePermissionsTableName: true, profileGrantsTableId: true, profileGrantsTableName: true, profileDefinitionGrantsTableId: true, profileDefinitionGrantsTableName: true, profileTemplatesTableId: true, profileTemplatesTableName: true, scope: true, prefix: true, entityTableId: true, actorTableId: true, permissionsTableId: true, membershipsTableId: true, apiName: true, privateApiName: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useProfilesModulesQuery({ const { mutate } = useCreateProfilesModuleMutation({ selection: { fields: { id: true } }, }); -mutate({ databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', tableId: '', tableName: '', profilePermissionsTableId: '', profilePermissionsTableName: '', profileGrantsTableId: '', profileGrantsTableName: '', profileDefinitionGrantsTableId: '', profileDefinitionGrantsTableName: '', profileTemplatesTableId: '', profileTemplatesTableName: '', scope: '', prefix: '', entityTableId: '', actorTableId: '', permissionsTableId: '', membershipsTableId: '', apiName: '', privateApiName: '' }); +mutate({ databaseId: '', entityField: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', tableId: '', tableName: '', profilePermissionsTableId: '', profilePermissionsTableName: '', profileGrantsTableId: '', profileGrantsTableName: '', profileDefinitionGrantsTableId: '', profileDefinitionGrantsTableName: '', profileTemplatesTableId: '', profileTemplatesTableName: '', scope: '', prefix: '', entityTableId: '', actorTableId: '', permissionsTableId: '', membershipsTableId: '', apiName: '', privateApiName: '' }); ``` diff --git a/.agents/skills/hooks-modules/references/resource-module.md b/.agents/skills/hooks-modules/references/resource-module.md index 4c844e38ad..83e6f03b14 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: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, resourcesTableId: true, resourceEventsTableId: true, resourcesTableName: true, resourceEventsTableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, namespaceModuleId: true, policies: true, provisions: true, defaultPermissions: true } } }) -useResourceModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, resourcesTableId: true, resourceEventsTableId: true, resourcesTableName: true, resourceEventsTableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, namespaceModuleId: true, policies: true, provisions: true, defaultPermissions: true } } }) +useResourceModulesQuery({ selection: { fields: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, resourcesTableId: true, resourceEventsTableId: true, resourceStatusChecksTableId: true, resourceDefinitionsTableId: true, resourcesTableName: true, resourceEventsTableName: true, resourceStatusChecksTableName: true, resourceDefinitionsTableName: true, resolvedRequirementsViewName: true, requirementsStateViewName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, namespaceModuleId: true, policies: true, provisions: true, defaultPermissions: true } } }) +useResourceModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, resourcesTableId: true, resourceEventsTableId: true, resourceStatusChecksTableId: true, resourceDefinitionsTableId: true, resourcesTableName: true, resourceEventsTableName: true, resourceStatusChecksTableName: true, resourceDefinitionsTableName: true, resolvedRequirementsViewName: true, requirementsStateViewName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, namespaceModuleId: true, policies: true, provisions: true, defaultPermissions: true } } }) useCreateResourceModuleMutation({ selection: { fields: { id: true } } }) useUpdateResourceModuleMutation({ selection: { fields: { id: true } } }) useDeleteResourceModuleMutation({}) @@ -20,7 +20,7 @@ useDeleteResourceModuleMutation({}) ```typescript const { data, isLoading } = useResourceModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, resourcesTableId: true, resourceEventsTableId: true, resourcesTableName: true, resourceEventsTableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, namespaceModuleId: true, policies: true, provisions: true, defaultPermissions: true } }, + selection: { fields: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, resourcesTableId: true, resourceEventsTableId: true, resourceStatusChecksTableId: true, resourceDefinitionsTableId: true, resourcesTableName: true, resourceEventsTableName: true, resourceStatusChecksTableName: true, resourceDefinitionsTableName: true, resolvedRequirementsViewName: true, requirementsStateViewName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, namespaceModuleId: true, policies: true, provisions: true, defaultPermissions: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useResourceModulesQuery({ const { mutate } = useCreateResourceModuleMutation({ selection: { fields: { id: true } }, }); -mutate({ databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', resourcesTableId: '', resourceEventsTableId: '', resourcesTableName: '', resourceEventsTableName: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '', namespaceModuleId: '', policies: '', provisions: '', defaultPermissions: '' }); +mutate({ databaseId: '', entityField: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', resourcesTableId: '', resourceEventsTableId: '', resourceStatusChecksTableId: '', resourceDefinitionsTableId: '', resourcesTableName: '', resourceEventsTableName: '', resourceStatusChecksTableName: '', resourceDefinitionsTableName: '', resolvedRequirementsViewName: '', requirementsStateViewName: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '', namespaceModuleId: '', policies: '', provisions: '', defaultPermissions: '' }); ``` diff --git a/.agents/skills/hooks-modules/references/storage-log-module.md b/.agents/skills/hooks-modules/references/storage-log-module.md index 20bd028341..8f25b61fe9 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: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, storageLogTableId: true, storageLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } } }) -useStorageLogModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, storageLogTableId: true, storageLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } } }) +useStorageLogModulesQuery({ selection: { fields: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, storageLogTableId: true, storageLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } } }) +useStorageLogModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, storageLogTableId: true, storageLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } } }) useCreateStorageLogModuleMutation({ selection: { fields: { id: true } } }) useUpdateStorageLogModuleMutation({ selection: { fields: { id: true } } }) useDeleteStorageLogModuleMutation({}) @@ -20,7 +20,7 @@ useDeleteStorageLogModuleMutation({}) ```typescript const { data, isLoading } = useStorageLogModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, storageLogTableId: true, storageLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } }, + selection: { fields: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, storageLogTableId: true, storageLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useStorageLogModulesQuery({ const { mutate } = useCreateStorageLogModuleMutation({ selection: { fields: { id: true } }, }); -mutate({ databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', storageLogTableId: '', storageLogTableName: '', usageDailyTableId: '', usageDailyTableName: '', interval: '', retention: '', premake: '', scope: '', actorFkTableId: '', entityFkTableId: '', prefix: '', apiName: '', privateApiName: '' }); +mutate({ databaseId: '', entityField: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', storageLogTableId: '', storageLogTableName: '', usageDailyTableId: '', usageDailyTableName: '', interval: '', retention: '', premake: '', scope: '', actorFkTableId: '', entityFkTableId: '', prefix: '', apiName: '', privateApiName: '' }); ``` diff --git a/.agents/skills/hooks-modules/references/storage-module.md b/.agents/skills/hooks-modules/references/storage-module.md index 38bc9440e5..3d19547154 100644 --- a/.agents/skills/hooks-modules/references/storage-module.md +++ b/.agents/skills/hooks-modules/references/storage-module.md @@ -7,8 +7,8 @@ React Query hooks for StorageModule data operations ## Usage ```typescript -useStorageModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, bucketsTableId: true, filesTableId: true, bucketsTableName: true, filesTableName: true, scope: true, prefix: true, policies: true, provisions: true, entityTableId: true, endpoint: true, publicUrlPrefix: true, provider: true, allowedOrigins: true, restrictReads: true, hasPathShares: true, pathSharesTableId: true, uploadUrlExpirySeconds: true, downloadUrlExpirySeconds: true, defaultMaxFileSize: true, maxFilenameLength: true, cacheTtlSeconds: true, maxBulkFiles: true, maxBulkTotalSize: true, hasVersioning: true, hasContentHash: true, hasCustomKeys: true, hasAuditLog: true, hasConfirmUpload: true, confirmUploadDelay: true, fileEventsTableId: true, defaultPermissions: true, apiName: true, privateApiName: true } } }) -useStorageModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, bucketsTableId: true, filesTableId: true, bucketsTableName: true, filesTableName: true, scope: true, prefix: true, policies: true, provisions: true, entityTableId: true, endpoint: true, publicUrlPrefix: true, provider: true, allowedOrigins: true, restrictReads: true, hasPathShares: true, pathSharesTableId: true, uploadUrlExpirySeconds: true, downloadUrlExpirySeconds: true, defaultMaxFileSize: true, maxFilenameLength: true, cacheTtlSeconds: true, maxBulkFiles: true, maxBulkTotalSize: true, hasVersioning: true, hasContentHash: true, hasCustomKeys: true, hasAuditLog: true, hasConfirmUpload: true, confirmUploadDelay: true, fileEventsTableId: true, defaultPermissions: true, apiName: true, privateApiName: true } } }) +useStorageModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, bucketsTableId: true, filesTableId: true, bucketsTableName: true, filesTableName: true, scope: true, prefix: true, policies: true, provisions: true, entityTableId: true, entityField: true, endpoint: true, publicUrlPrefix: true, provider: true, allowedOrigins: true, restrictReads: true, hasPathShares: true, pathSharesTableId: true, uploadUrlExpirySeconds: true, downloadUrlExpirySeconds: true, defaultMaxFileSize: true, maxFilenameLength: true, cacheTtlSeconds: true, maxBulkFiles: true, maxBulkTotalSize: true, hasVersioning: true, hasContentHash: true, hasCustomKeys: true, hasAuditLog: true, hasConfirmUpload: true, confirmUploadDelay: true, fileEventsTableId: true, defaultPermissions: true, apiName: true, privateApiName: true } } }) +useStorageModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, bucketsTableId: true, filesTableId: true, bucketsTableName: true, filesTableName: true, scope: true, prefix: true, policies: true, provisions: true, entityTableId: true, entityField: true, endpoint: true, publicUrlPrefix: true, provider: true, allowedOrigins: true, restrictReads: true, hasPathShares: true, pathSharesTableId: true, uploadUrlExpirySeconds: true, downloadUrlExpirySeconds: true, defaultMaxFileSize: true, maxFilenameLength: true, cacheTtlSeconds: true, maxBulkFiles: true, maxBulkTotalSize: true, hasVersioning: true, hasContentHash: true, hasCustomKeys: true, hasAuditLog: true, hasConfirmUpload: true, confirmUploadDelay: true, fileEventsTableId: true, defaultPermissions: true, apiName: true, privateApiName: true } } }) useCreateStorageModuleMutation({ selection: { fields: { id: true } } }) useUpdateStorageModuleMutation({ selection: { fields: { id: true } } }) useDeleteStorageModuleMutation({}) @@ -20,7 +20,7 @@ useDeleteStorageModuleMutation({}) ```typescript const { data, isLoading } = useStorageModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, bucketsTableId: true, filesTableId: true, bucketsTableName: true, filesTableName: true, scope: true, prefix: true, policies: true, provisions: true, entityTableId: true, endpoint: true, publicUrlPrefix: true, provider: true, allowedOrigins: true, restrictReads: true, hasPathShares: true, pathSharesTableId: true, uploadUrlExpirySeconds: true, downloadUrlExpirySeconds: true, defaultMaxFileSize: true, maxFilenameLength: true, cacheTtlSeconds: true, maxBulkFiles: true, maxBulkTotalSize: true, hasVersioning: true, hasContentHash: true, hasCustomKeys: true, hasAuditLog: true, hasConfirmUpload: true, confirmUploadDelay: true, fileEventsTableId: true, defaultPermissions: true, apiName: true, privateApiName: true } }, + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, bucketsTableId: true, filesTableId: true, bucketsTableName: true, filesTableName: true, scope: true, prefix: true, policies: true, provisions: true, entityTableId: true, entityField: true, endpoint: true, publicUrlPrefix: true, provider: true, allowedOrigins: true, restrictReads: true, hasPathShares: true, pathSharesTableId: true, uploadUrlExpirySeconds: true, downloadUrlExpirySeconds: true, defaultMaxFileSize: true, maxFilenameLength: true, cacheTtlSeconds: true, maxBulkFiles: true, maxBulkTotalSize: true, hasVersioning: true, hasContentHash: true, hasCustomKeys: true, hasAuditLog: true, hasConfirmUpload: true, confirmUploadDelay: true, fileEventsTableId: true, defaultPermissions: true, apiName: true, privateApiName: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useStorageModulesQuery({ const { mutate } = useCreateStorageModuleMutation({ selection: { fields: { id: true } }, }); -mutate({ databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', bucketsTableId: '', filesTableId: '', bucketsTableName: '', filesTableName: '', scope: '', prefix: '', policies: '', provisions: '', entityTableId: '', endpoint: '', publicUrlPrefix: '', provider: '', allowedOrigins: '', restrictReads: '', hasPathShares: '', pathSharesTableId: '', uploadUrlExpirySeconds: '', downloadUrlExpirySeconds: '', defaultMaxFileSize: '', maxFilenameLength: '', cacheTtlSeconds: '', maxBulkFiles: '', maxBulkTotalSize: '', hasVersioning: '', hasContentHash: '', hasCustomKeys: '', hasAuditLog: '', hasConfirmUpload: '', confirmUploadDelay: '', fileEventsTableId: '', defaultPermissions: '', apiName: '', privateApiName: '' }); +mutate({ databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', bucketsTableId: '', filesTableId: '', bucketsTableName: '', filesTableName: '', scope: '', prefix: '', policies: '', provisions: '', entityTableId: '', entityField: '', endpoint: '', publicUrlPrefix: '', provider: '', allowedOrigins: '', restrictReads: '', hasPathShares: '', pathSharesTableId: '', uploadUrlExpirySeconds: '', downloadUrlExpirySeconds: '', defaultMaxFileSize: '', maxFilenameLength: '', cacheTtlSeconds: '', maxBulkFiles: '', maxBulkTotalSize: '', hasVersioning: '', hasContentHash: '', hasCustomKeys: '', hasAuditLog: '', hasConfirmUpload: '', confirmUploadDelay: '', fileEventsTableId: '', defaultPermissions: '', apiName: '', privateApiName: '' }); ``` diff --git a/.agents/skills/hooks-modules/references/transfer-log-module.md b/.agents/skills/hooks-modules/references/transfer-log-module.md index aca4de0536..37d6438569 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: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, transferLogTableId: true, transferLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } } }) -useTransferLogModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, transferLogTableId: true, transferLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } } }) +useTransferLogModulesQuery({ selection: { fields: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, transferLogTableId: true, transferLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } } }) +useTransferLogModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, transferLogTableId: true, transferLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } } }) useCreateTransferLogModuleMutation({ selection: { fields: { id: true } } }) useUpdateTransferLogModuleMutation({ selection: { fields: { id: true } } }) useDeleteTransferLogModuleMutation({}) @@ -20,7 +20,7 @@ useDeleteTransferLogModuleMutation({}) ```typescript const { data, isLoading } = useTransferLogModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, transferLogTableId: true, transferLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } }, + selection: { fields: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, transferLogTableId: true, transferLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useTransferLogModulesQuery({ const { mutate } = useCreateTransferLogModuleMutation({ selection: { fields: { id: true } }, }); -mutate({ databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', transferLogTableId: '', transferLogTableName: '', usageDailyTableId: '', usageDailyTableName: '', interval: '', retention: '', premake: '', scope: '', actorFkTableId: '', entityFkTableId: '', prefix: '', apiName: '', privateApiName: '' }); +mutate({ databaseId: '', entityField: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', transferLogTableId: '', transferLogTableName: '', usageDailyTableId: '', usageDailyTableName: '', interval: '', retention: '', premake: '', scope: '', actorFkTableId: '', entityFkTableId: '', prefix: '', apiName: '', privateApiName: '' }); ``` diff --git a/.agents/skills/hooks-modules/references/user-credentials-module.md b/.agents/skills/hooks-modules/references/user-credentials-module.md index de1169a972..aadefac8fd 100644 --- a/.agents/skills/hooks-modules/references/user-credentials-module.md +++ b/.agents/skills/hooks-modules/references/user-credentials-module.md @@ -9,8 +9,8 @@ Per-user bcrypt credential store (password hashes, API key hashes). ## Usage ```typescript -useUserCredentialsModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, apiName: true, privateApiName: true } } }) -useUserCredentialsModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, apiName: true, privateApiName: true } } }) +useUserCredentialsModulesQuery({ selection: { fields: { id: true, databaseId: true, entityField: true, schemaId: true, tableId: true, tableName: true, privateApiName: true } } }) +useUserCredentialsModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, entityField: true, schemaId: true, tableId: true, tableName: true, privateApiName: true } } }) useCreateUserCredentialsModuleMutation({ selection: { fields: { id: true } } }) useUpdateUserCredentialsModuleMutation({ selection: { fields: { id: true } } }) useDeleteUserCredentialsModuleMutation({}) @@ -22,7 +22,7 @@ useDeleteUserCredentialsModuleMutation({}) ```typescript const { data, isLoading } = useUserCredentialsModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, apiName: true, privateApiName: true } }, + selection: { fields: { id: true, databaseId: true, entityField: true, schemaId: true, tableId: true, tableName: true, privateApiName: true } }, }); ``` @@ -32,5 +32,5 @@ const { data, isLoading } = useUserCredentialsModulesQuery({ const { mutate } = useCreateUserCredentialsModuleMutation({ selection: { fields: { id: true } }, }); -mutate({ databaseId: '', schemaId: '', tableId: '', tableName: '', apiName: '', privateApiName: '' }); +mutate({ databaseId: '', entityField: '', schemaId: '', tableId: '', tableName: '', privateApiName: '' }); ``` diff --git a/.agents/skills/hooks-modules/references/user-state-module.md b/.agents/skills/hooks-modules/references/user-state-module.md index 37cefbfdad..e083dcd947 100644 --- a/.agents/skills/hooks-modules/references/user-state-module.md +++ b/.agents/skills/hooks-modules/references/user-state-module.md @@ -7,8 +7,8 @@ React Query hooks for UserStateModule data operations ## Usage ```typescript -useUserStateModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true } } }) -useUserStateModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true } } }) +useUserStateModulesQuery({ selection: { fields: { id: true, databaseId: true, entityField: true, schemaId: true, tableId: true, tableName: true } } }) +useUserStateModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, entityField: true, schemaId: true, tableId: true, tableName: true } } }) useCreateUserStateModuleMutation({ selection: { fields: { id: true } } }) useUpdateUserStateModuleMutation({ selection: { fields: { id: true } } }) useDeleteUserStateModuleMutation({}) @@ -20,7 +20,7 @@ useDeleteUserStateModuleMutation({}) ```typescript const { data, isLoading } = useUserStateModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true } }, + selection: { fields: { id: true, databaseId: true, entityField: true, schemaId: true, tableId: true, tableName: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useUserStateModulesQuery({ const { mutate } = useCreateUserStateModuleMutation({ selection: { fields: { id: true } }, }); -mutate({ databaseId: '', schemaId: '', tableId: '', tableName: '' }); +mutate({ databaseId: '', entityField: '', schemaId: '', tableId: '', tableName: '' }); ``` diff --git a/.agents/skills/orm-agent/references/agent-message.md b/.agents/skills/orm-agent/references/agent-message.md index d2b179734b..0d12937e18 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: '', parts: '', threadId: '', authorRole: '', model: '', agentId: '' }, select: { id: true } }).execute() +db.agentMessage.create({ data: { actorId: '', parts: '', threadId: '', databaseId: '', authorRole: '', model: '', agentId: '' }, 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: '', parts: '', threadId: '', authorRole: '', model: '', agentId: '' }, + data: { actorId: '', parts: '', threadId: '', databaseId: '', authorRole: '', model: '', agentId: '' }, 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 835662f6c4..fdd47ebe27 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: { createdBy: '', updatedBy: '', slug: '', name: '', description: '', systemPrompt: '', resources: '', config: '', isActive: '' }, select: { id: true } }).execute() +db.agentPersona.create({ data: { createdBy: '', updatedBy: '', databaseId: '', slug: '', name: '', description: '', systemPrompt: '', resources: '', config: '', isActive: '' }, select: { id: true } }).execute() db.agentPersona.update({ where: { id: '' }, data: { createdBy: '' }, 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: { createdBy: '', updatedBy: '', slug: '', name: '', description: '', systemPrompt: '', resources: '', config: '', isActive: '' }, + data: { createdBy: '', updatedBy: '', databaseId: '', slug: '', name: '', description: '', systemPrompt: '', resources: '', config: '', isActive: '' }, 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 d7e9a6bc49..187b6fcaad 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: { ownerId: '', threadId: '', title: '', description: '', status: '' }, select: { id: true } }).execute() +db.agentPlan.create({ data: { ownerId: '', threadId: '', databaseId: '', title: '', description: '', status: '' }, select: { id: true } }).execute() db.agentPlan.update({ where: { id: '' }, data: { ownerId: '' }, 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: { ownerId: '', threadId: '', title: '', description: '', status: '' }, + data: { ownerId: '', threadId: '', databaseId: '', title: '', description: '', status: '' }, 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 1b71c14b52..2b8b38244b 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: { createdBy: '', updatedBy: '', name: '', content: '', description: '', isDefault: '', metadata: '' }, select: { id: true } }).execute() +db.agentPrompt.create({ data: { createdBy: '', updatedBy: '', databaseId: '', name: '', content: '', description: '', isDefault: '', metadata: '' }, select: { id: true } }).execute() db.agentPrompt.update({ where: { id: '' }, data: { createdBy: '' }, 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: { createdBy: '', updatedBy: '', name: '', content: '', description: '', isDefault: '', metadata: '' }, + data: { createdBy: '', updatedBy: '', databaseId: '', name: '', content: '', description: '', isDefault: '', metadata: '' }, 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 d867955e59..90e30c5fb5 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: { createdBy: '', updatedBy: '', slug: '', kind: '', title: '', description: '', body: '', keywords: '', isActive: '', metadata: '', isArchived: '', archivedAt: '', search: '', embedding: '', embeddingUpdatedAt: '', searchTsvRank: '', embeddingVectorDistance: '', kindTrgmSimilarity: '', titleTrgmSimilarity: '', descriptionTrgmSimilarity: '', bodyTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute() +db.agentResource.create({ data: { createdBy: '', updatedBy: '', databaseId: '', slug: '', kind: '', title: '', description: '', body: '', keywords: '', isActive: '', metadata: '', isArchived: '', archivedAt: '', search: '', embedding: '', embeddingUpdatedAt: '', searchTsvRank: '', embeddingVectorDistance: '', kindTrgmSimilarity: '', titleTrgmSimilarity: '', descriptionTrgmSimilarity: '', bodyTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute() db.agentResource.update({ where: { id: '' }, data: { createdBy: '' }, 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: { createdBy: '', updatedBy: '', slug: '', kind: '', title: '', description: '', body: '', keywords: '', isActive: '', metadata: '', isArchived: '', archivedAt: '', search: '', embedding: '', embeddingUpdatedAt: '', searchTsvRank: '', embeddingVectorDistance: '', kindTrgmSimilarity: '', titleTrgmSimilarity: '', descriptionTrgmSimilarity: '', bodyTrgmSimilarity: '', searchScore: '' }, + data: { createdBy: '', updatedBy: '', databaseId: '', slug: '', kind: '', title: '', description: '', body: '', keywords: '', isActive: '', metadata: '', isArchived: '', archivedAt: '', search: '', embedding: '', embeddingUpdatedAt: '', searchTsvRank: '', embeddingVectorDistance: '', kindTrgmSimilarity: '', titleTrgmSimilarity: '', descriptionTrgmSimilarity: '', bodyTrgmSimilarity: '', searchScore: '' }, 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 dbbe6b5c72..8ed2de3dbe 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: '', status: '', planId: '', description: '', source: '', error: '', orderIndex: '', requiresApproval: '', approvalStatus: '', approvedBy: '', approvedAt: '', approvalFeedback: '' }, select: { id: true } }).execute() +db.agentTask.create({ data: { actorId: '', status: '', planId: '', databaseId: '', description: '', source: '', error: '', orderIndex: '', requiresApproval: '', approvalStatus: '', approvedBy: '', approvedAt: '', approvalFeedback: '' }, 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: '', status: '', planId: '', description: '', source: '', error: '', orderIndex: '', requiresApproval: '', approvalStatus: '', approvedBy: '', approvedAt: '', approvalFeedback: '' }, + data: { actorId: '', status: '', planId: '', databaseId: '', description: '', source: '', error: '', orderIndex: '', requiresApproval: '', approvalStatus: '', approvedBy: '', approvedAt: '', approvalFeedback: '' }, 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 08303e7c0c..e8511784e8 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: { ownerId: '', status: '', isArchived: '', archivedAt: '', title: '', mode: '', model: '', systemPrompt: '', tags: '', promptTemplateId: '', agentId: '', parentThreadId: '' }, select: { id: true } }).execute() +db.agentThread.create({ data: { ownerId: '', databaseId: '', status: '', isArchived: '', archivedAt: '', title: '', mode: '', model: '', systemPrompt: '', tags: '', promptTemplateId: '', agentId: '', parentThreadId: '' }, select: { id: true } }).execute() db.agentThread.update({ where: { id: '' }, data: { ownerId: '' }, 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: { ownerId: '', status: '', isArchived: '', archivedAt: '', title: '', mode: '', model: '', systemPrompt: '', tags: '', promptTemplateId: '', agentId: '', parentThreadId: '' }, + data: { ownerId: '', databaseId: '', status: '', isArchived: '', archivedAt: '', title: '', mode: '', model: '', systemPrompt: '', tags: '', promptTemplateId: '', agentId: '', parentThreadId: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-agent/references/agent.md b/.agents/skills/orm-agent/references/agent.md index b74de8f488..14ef134bce 100644 --- a/.agents/skills/orm-agent/references/agent.md +++ b/.agents/skills/orm-agent/references/agent.md @@ -9,7 +9,7 @@ Agent instance registry (human-managed or ephemeral sub-agents) ```typescript db.agent.findMany({ select: { id: true } }).execute() db.agent.findOne({ id: '', select: { id: true } }).execute() -db.agent.create({ data: { ownerId: '', personaId: '', parentId: '', name: '', systemPrompt: '', config: '', status: '', isEphemeral: '' }, select: { id: true } }).execute() +db.agent.create({ data: { ownerId: '', databaseId: '', personaId: '', parentId: '', name: '', systemPrompt: '', config: '', status: '', isEphemeral: '' }, select: { id: true } }).execute() db.agent.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute() db.agent.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.agent.findMany({ ```typescript const item = await db.agent.create({ - data: { ownerId: '', personaId: '', parentId: '', name: '', systemPrompt: '', config: '', status: '', isEphemeral: '' }, + data: { ownerId: '', databaseId: '', personaId: '', parentId: '', name: '', systemPrompt: '', config: '', status: '', isEphemeral: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-api/SKILL.md b/.agents/skills/orm-api/SKILL.md index 4dbef8383a..92eb3d2a55 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 46 tables and 10 custom operations +description: ORM client for the api API — provides typed CRUD operations for 46 tables and 8 custom operations --- # orm-api -ORM client for the api API — provides typed CRUD operations for 46 tables and 10 custom operations +ORM client for the api API — provides typed CRUD operations for 46 tables and 8 custom operations ## Usage @@ -81,15 +81,13 @@ See the `references/` directory for detailed per-entity API documentation: - [rls-setting](references/rls-setting.md) - [sql-action](references/sql-action.md) - [database-setting](references/database-setting.md) -- [webauthn-setting](references/webauthn-setting.md) - [ast-migration](references/ast-migration.md) +- [webauthn-setting](references/webauthn-setting.md) - [apply-registry-defaults](references/apply-registry-defaults.md) - [accept-database-transfer](references/accept-database-transfer.md) - [cancel-database-transfer](references/cancel-database-transfer.md) - [reject-database-transfer](references/reject-database-transfer.md) -- [provision-database-with-user](references/provision-database-with-user.md) -- [bootstrap-user](references/bootstrap-user.md) - [set-field-order](references/set-field-order.md) - [apply-rls](references/apply-rls.md) -- [create-user-database](references/create-user-database.md) +- [request-database](references/request-database.md) - [provision-bucket](references/provision-bucket.md) diff --git a/.agents/skills/orm-api/references/database.md b/.agents/skills/orm-api/references/database.md index a225f1def2..228a2e4e8f 100644 --- a/.agents/skills/orm-api/references/database.md +++ b/.agents/skills/orm-api/references/database.md @@ -9,7 +9,7 @@ ORM operations for Database records ```typescript db.database.findMany({ select: { id: true } }).execute() db.database.findOne({ id: '', select: { id: true } }).execute() -db.database.create({ data: { ownerId: '', schemaHash: '', name: '', label: '', hash: '' }, select: { id: true } }).execute() +db.database.create({ data: { ownerId: '', schemaHash: '', name: '', label: '', hash: '', platform: '' }, select: { id: true } }).execute() db.database.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute() db.database.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.database.findMany({ ```typescript const item = await db.database.create({ - data: { ownerId: '', schemaHash: '', name: '', label: '', hash: '' }, + data: { ownerId: '', schemaHash: '', name: '', label: '', hash: '', platform: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-api/references/field.md b/.agents/skills/orm-api/references/field.md index e395613910..5b8e126381 100644 --- a/.agents/skills/orm-api/references/field.md +++ b/.agents/skills/orm-api/references/field.md @@ -9,7 +9,7 @@ ORM operations for Field records ```typescript db.field.findMany({ select: { id: true } }).execute() db.field.findOne({ id: '', select: { id: true } }).execute() -db.field.create({ data: { databaseId: '', tableId: '', name: '', label: '', description: '', smartTags: '', isRequired: '', apiRequired: '', defaultValue: '', type: '', fieldOrder: '', regexp: '', chk: '', chkExpr: '', min: '', max: '', tags: '', category: '' }, select: { id: true } }).execute() +db.field.create({ data: { databaseId: '', tableId: '', name: '', label: '', description: '', smartTags: '', isRequired: '', apiRequired: '', defaultValue: '', generationExpression: '', generationType: '', type: '', fieldOrder: '', regexp: '', chk: '', chkExpr: '', min: '', max: '', tags: '', category: '' }, select: { id: true } }).execute() db.field.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() db.field.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.field.findMany({ ```typescript const item = await db.field.create({ - data: { databaseId: '', tableId: '', name: '', label: '', description: '', smartTags: '', isRequired: '', apiRequired: '', defaultValue: '', type: '', fieldOrder: '', regexp: '', chk: '', chkExpr: '', min: '', max: '', tags: '', category: '' }, + data: { databaseId: '', tableId: '', name: '', label: '', description: '', smartTags: '', isRequired: '', apiRequired: '', defaultValue: '', generationExpression: '', generationType: '', type: '', fieldOrder: '', regexp: '', chk: '', chkExpr: '', min: '', max: '', tags: '', category: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-api/references/policy.md b/.agents/skills/orm-api/references/policy.md index 2ac06e0f63..a68aef5595 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: { databaseId: '', tableId: '', name: '', granteeName: '', privilege: '', permissive: '', disabled: '', policyType: '', data: '', smartTags: '', category: '', tags: '' }, select: { id: true } }).execute() +db.policy.create({ data: { databaseId: '', tableId: '', name: '', granteeName: '', privilege: '', permissive: '', disabled: '', policyType: '', data: '', withCheck: '', smartTags: '', category: '', tags: '' }, select: { id: true } }).execute() db.policy.update({ where: { id: '' }, data: { databaseId: '' }, 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: { databaseId: '', tableId: '', name: '', granteeName: '', privilege: '', permissive: '', disabled: '', policyType: '', data: '', smartTags: '', category: '', tags: '' }, + data: { databaseId: '', tableId: '', name: '', granteeName: '', privilege: '', permissive: '', disabled: '', policyType: '', data: '', withCheck: '', smartTags: '', category: '', tags: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-api/references/request-database.md b/.agents/skills/orm-api/references/request-database.md new file mode 100644 index 0000000000..2b9835b743 --- /dev/null +++ b/.agents/skills/orm-api/references/request-database.md @@ -0,0 +1,25 @@ +# requestDatabase + + + +Requests a database and returns a ticket (database_provision_module row) to poll. + +Pass exactly one of preset_slug or modules. The pool, presets, and owner bootstrap are private implementation details: a warm pool hit fulfills the ticket immediately (fulfilled_at set, deferred owner bootstrap), otherwise the database is cold-provisioned with exactly the requested modules. Poll the ticket until status = 'completed'; it then carries database_id and fulfilled_at. + +Example usage: + SELECT * FROM metaschema_public.request_database('my_app', 'example.com', preset_slug := 'full'); + SELECT * FROM metaschema_public.request_database('my_app', 'example.com', modules := '["users_module", "emails_module"]'::jsonb); + +## Usage + +```typescript +db.mutation.requestDatabase({ input: '' }).execute() +``` + +## Examples + +### Run requestDatabase + +```typescript +const result = await db.mutation.requestDatabase({ input: '' }).execute(); +``` diff --git a/.agents/skills/orm-api/references/table.md b/.agents/skills/orm-api/references/table.md index 18020d54c3..280c8f6375 100644 --- a/.agents/skills/orm-api/references/table.md +++ b/.agents/skills/orm-api/references/table.md @@ -9,7 +9,7 @@ ORM operations for Table records ```typescript db.table.findMany({ select: { id: true } }).execute() db.table.findOne({ id: '', select: { id: true } }).execute() -db.table.create({ data: { databaseId: '', schemaId: '', name: '', label: '', description: '', smartTags: '', category: '', useRls: '', timestamps: '', peoplestamps: '', pluralName: '', singularName: '', tags: '', partitioned: '', partitionStrategy: '', partitionKeyNames: '', partitionKeyTypes: '', inheritsId: '' }, select: { id: true } }).execute() +db.table.create({ data: { databaseId: '', schemaId: '', name: '', label: '', description: '', smartTags: '', category: '', useRls: '', timestamps: '', peoplestamps: '', pluralName: '', singularName: '', tags: '', stepUp: '', partitioned: '', partitionStrategy: '', partitionKeyNames: '', partitionKeyTypes: '', inheritsId: '' }, select: { id: true } }).execute() db.table.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() db.table.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.table.findMany({ ```typescript const item = await db.table.create({ - data: { databaseId: '', schemaId: '', name: '', label: '', description: '', smartTags: '', category: '', useRls: '', timestamps: '', peoplestamps: '', pluralName: '', singularName: '', tags: '', partitioned: '', partitionStrategy: '', partitionKeyNames: '', partitionKeyTypes: '', inheritsId: '' }, + data: { databaseId: '', schemaId: '', name: '', label: '', description: '', smartTags: '', category: '', useRls: '', timestamps: '', peoplestamps: '', pluralName: '', singularName: '', tags: '', stepUp: '', partitioned: '', partitionStrategy: '', partitionKeyNames: '', partitionKeyTypes: '', inheritsId: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-auth/SKILL.md b/.agents/skills/orm-auth/SKILL.md index e41f89370a..1e828b7ca7 100644 --- a/.agents/skills/orm-auth/SKILL.md +++ b/.agents/skills/orm-auth/SKILL.md @@ -1,13 +1,13 @@ --- name: orm-auth -description: ORM client for the auth API — provides typed CRUD operations for 13 tables and 34 custom operations +description: ORM client for the auth API — provides typed CRUD operations for 13 tables and 35 custom operations --- # orm-auth -ORM client for the auth API — provides typed CRUD operations for 13 tables and 34 custom operations +ORM client for the auth API — provides typed CRUD operations for 13 tables and 35 custom operations ## Usage @@ -59,6 +59,7 @@ See the `references/` directory for detailed per-entity API documentation: - [send-account-deletion-email](references/send-account-deletion-email.md) - [check-password](references/check-password.md) - [delete-org-principal](references/delete-org-principal.md) +- [delete-principal](references/delete-principal.md) - [disconnect-account](references/disconnect-account.md) - [revoke-api-key](references/revoke-api-key.md) - [revoke-session](references/revoke-session.md) @@ -70,13 +71,13 @@ See the `references/` directory for detailed per-entity API documentation: - [verify-email](references/verify-email.md) - [provision-new-user](references/provision-new-user.md) - [reset-password](references/reset-password.md) +- [create-org-principal](references/create-org-principal.md) - [sign-in-cross-origin](references/sign-in-cross-origin.md) - [sign-in-sms-otp](references/sign-in-sms-otp.md) - [sign-up-sms](references/sign-up-sms.md) - [sign-up](references/sign-up.md) - [sign-in](references/sign-in.md) - [link-identity](references/link-identity.md) -- [create-org-principal](references/create-org-principal.md) - [extend-token-expires](references/extend-token-expires.md) - [create-org-api-key](references/create-org-api-key.md) - [create-api-key](references/create-api-key.md) diff --git a/.agents/skills/orm-auth/references/create-org-principal.md b/.agents/skills/orm-auth/references/create-org-principal.md index c9c09855a1..7f07973ab1 100644 --- a/.agents/skills/orm-auth/references/create-org-principal.md +++ b/.agents/skills/orm-auth/references/create-org-principal.md @@ -7,7 +7,7 @@ Execute the createOrgPrincipal mutation ## Usage ```typescript -db.mutation.createOrgPrincipal({ input: { name: '', orgId: '', allowedMask: '', isReadOnly: '', bypassStepUp: '' } }).execute() +db.mutation.createOrgPrincipal({ input: { name: '', orgId: '', useAdminOwner: '', isReadOnly: '', bypassStepUp: '' } }).execute() ``` ## Examples @@ -15,5 +15,5 @@ db.mutation.createOrgPrincipal({ input: { name: '', orgId: '', all ### Run createOrgPrincipal ```typescript -const result = await db.mutation.createOrgPrincipal({ input: { name: '', orgId: '', allowedMask: '', isReadOnly: '', bypassStepUp: '' } }).execute(); +const result = await db.mutation.createOrgPrincipal({ input: { name: '', orgId: '', useAdminOwner: '', isReadOnly: '', bypassStepUp: '' } }).execute(); ``` diff --git a/.agents/skills/orm-auth/references/delete-principal.md b/.agents/skills/orm-auth/references/delete-principal.md new file mode 100644 index 0000000000..7c8e862b1a --- /dev/null +++ b/.agents/skills/orm-auth/references/delete-principal.md @@ -0,0 +1,19 @@ +# deletePrincipal + + + +Execute the deletePrincipal mutation + +## Usage + +```typescript +db.mutation.deletePrincipal({ input: { principalId: '' } }).execute() +``` + +## Examples + +### Run deletePrincipal + +```typescript +const result = await db.mutation.deletePrincipal({ input: { principalId: '' } }).execute(); +``` diff --git a/.agents/skills/orm-auth/references/principal-scope-override.md b/.agents/skills/orm-auth/references/principal-scope-override.md index c8060f199a..e72f943a3b 100644 --- a/.agents/skills/orm-auth/references/principal-scope-override.md +++ b/.agents/skills/orm-auth/references/principal-scope-override.md @@ -9,7 +9,7 @@ Per-scope permission overrides for principals. No row = full access; row exists ```typescript db.principalScopeOverride.findMany({ select: { id: true } }).execute() db.principalScopeOverride.findOne({ id: '', select: { id: true } }).execute() -db.principalScopeOverride.create({ data: { principalId: '', membershipType: '', allowedMask: '', isAdmin: '', isReadOnly: '' }, select: { id: true } }).execute() +db.principalScopeOverride.create({ data: { principalId: '', membershipType: '', allowedMask: '', useAdminOwner: '', isActive: '', isReadOnly: '' }, select: { id: true } }).execute() db.principalScopeOverride.update({ where: { id: '' }, data: { principalId: '' }, select: { id: true } }).execute() db.principalScopeOverride.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.principalScopeOverride.findMany({ ```typescript const item = await db.principalScopeOverride.create({ - data: { principalId: '', membershipType: '', allowedMask: '', isAdmin: '', isReadOnly: '' }, + data: { principalId: '', membershipType: '', allowedMask: '', useAdminOwner: '', isActive: '', isReadOnly: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-auth/references/principal.md b/.agents/skills/orm-auth/references/principal.md index 8aeef93618..5f12758fc0 100644 --- a/.agents/skills/orm-auth/references/principal.md +++ b/.agents/skills/orm-auth/references/principal.md @@ -9,7 +9,7 @@ Scoped sub-identities (API keys and agents) with precomputed SPRT ```typescript db.principal.findMany({ select: { id: true } }).execute() db.principal.findOne({ principalId: '', select: { id: true } }).execute() -db.principal.create({ data: { id: '', ownerId: '', userId: '', name: '', allowedMask: '', isReadOnly: '', bypassStepUp: '' }, select: { id: true } }).execute() +db.principal.create({ data: { id: '', ownerId: '', userId: '', name: '', useAdminOwner: '', isReadOnly: '', bypassStepUp: '' }, select: { id: true } }).execute() db.principal.update({ where: { principalId: '' }, data: { id: '' }, select: { id: true } }).execute() db.principal.delete({ where: { principalId: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.principal.findMany({ ```typescript const item = await db.principal.create({ - data: { id: '', ownerId: '', userId: '', name: '', allowedMask: '', isReadOnly: '', bypassStepUp: '' }, + data: { id: '', ownerId: '', userId: '', name: '', useAdminOwner: '', isReadOnly: '', bypassStepUp: '' }, select: { principalId: true } }).execute(); ``` diff --git a/.agents/skills/orm-compute/SKILL.md b/.agents/skills/orm-compute/SKILL.md index ab4c41d287..ff0d90e29e 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 22 tables and 15 custom operations +description: ORM client for the compute API — provides typed CRUD operations for 44 tables and 18 custom operations --- # orm-compute -ORM client for the compute API — provides typed CRUD operations for 22 tables and 15 custom operations +ORM client for the compute API — provides typed CRUD operations for 44 tables and 18 custom operations ## Usage @@ -15,7 +15,7 @@ ORM client for the compute API — provides typed CRUD operations for 22 tables // Import the ORM client import { db } from './orm'; -// Available models: getAllRecord, functionApiBinding, functionDeployment, resource, functionGraphRef, functionGraphStore, functionGraphObject, functionDeploymentEvent, ... +// Available models: infraGetAllRecord, getAllRecord, infraRef, infraStore, functionApiBinding, functionGraphRef, functionGraphStore, platformFunctionApiBinding, ... 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.getAllRecord.findMany({ +const items = await db.infraGetAllRecord.findMany({ select: { id: true } }).execute(); ``` @@ -37,33 +37,57 @@ const items = await db.getAllRecord.findMany({ See the `references/` directory for detailed per-entity API documentation: +- [infra-get-all-record](references/infra-get-all-record.md) - [get-all-record](references/get-all-record.md) +- [infra-ref](references/infra-ref.md) +- [infra-store](references/infra-store.md) - [function-api-binding](references/function-api-binding.md) -- [function-deployment](references/function-deployment.md) -- [resource](references/resource.md) - [function-graph-ref](references/function-graph-ref.md) - [function-graph-store](references/function-graph-store.md) +- [platform-function-api-binding](references/platform-function-api-binding.md) +- [platform-resources-requirements-state](references/platform-resources-requirements-state.md) +- [resources-requirements-state](references/resources-requirements-state.md) +- [platform-resource-status-check](references/platform-resource-status-check.md) +- [platform-function-deployment](references/platform-function-deployment.md) +- [platform-resource](references/platform-resource.md) +- [platform-resource-definition](references/platform-resource-definition.md) +- [infra-object](references/infra-object.md) - [function-graph-object](references/function-graph-object.md) +- [platform-function-deployment-event](references/platform-function-deployment-event.md) +- [platform-resource-event](references/platform-resource-event.md) +- [resource-status-check](references/resource-status-check.md) +- [function-deployment](references/function-deployment.md) +- [resource](references/resource.md) +- [resource-definition](references/resource-definition.md) - [function-deployment-event](references/function-deployment-event.md) -- [org-function-execution-log](references/org-function-execution-log.md) +- [platform-function-execution-log](references/platform-function-execution-log.md) - [resource-event](references/resource-event.md) - [function-graph-execution-output](references/function-graph-execution-output.md) +- [infra-commit](references/infra-commit.md) - [function-graph-commit](references/function-graph-commit.md) -- [secret-definition](references/secret-definition.md) - [function-execution-log](references/function-execution-log.md) +- [platform-resources-resolved-requirement](references/platform-resources-resolved-requirement.md) +- [resources-resolved-requirement](references/resources-resolved-requirement.md) +- [db-preset](references/db-preset.md) +- [platform-namespace](references/platform-namespace.md) - [function-graph](references/function-graph.md) - [function-graph-execution-node-state](references/function-graph-execution-node-state.md) -- [platform-namespace](references/platform-namespace.md) -- [org-function-invocation](references/org-function-invocation.md) +- [namespace](references/namespace.md) +- [platform-function-invocation](references/platform-function-invocation.md) - [function-invocation](references/function-invocation.md) - [platform-namespace-event](references/platform-namespace-event.md) +- [integration-provider](references/integration-provider.md) +- [namespace-event](references/namespace-event.md) - [function-graph-execution](references/function-graph-execution.md) +- [platform-function-definition](references/platform-function-definition.md) - [function-definition](references/function-definition.md) - [read-function-graph](references/read-function-graph.md) - [validate-function-graph](references/validate-function-graph.md) +- [infra-init-empty-repo](references/infra-init-empty-repo.md) - [init-empty-repo](references/init-empty-repo.md) -- [set-data-at-path](references/set-data-at-path.md) - [import-definitions](references/import-definitions.md) +- [infra-set-data-at-path](references/infra-set-data-at-path.md) +- [set-data-at-path](references/set-data-at-path.md) - [copy-graph](references/copy-graph.md) - [save-graph](references/save-graph.md) - [add-edge-and-save](references/add-edge-and-save.md) @@ -71,6 +95,7 @@ See the `references/` directory for detailed per-entity API documentation: - [import-graph-json](references/import-graph-json.md) - [add-edge](references/add-edge.md) - [add-node](references/add-node.md) +- [infra-insert-node-at-path](references/infra-insert-node-at-path.md) - [insert-node-at-path](references/insert-node-at-path.md) - [start-execution](references/start-execution.md) - [provision-bucket](references/provision-bucket.md) diff --git a/.agents/skills/orm-compute/references/copy-graph.md b/.agents/skills/orm-compute/references/copy-graph.md index 6893ea7ff6..a71e6cdcc0 100644 --- a/.agents/skills/orm-compute/references/copy-graph.md +++ b/.agents/skills/orm-compute/references/copy-graph.md @@ -7,7 +7,7 @@ Execute the copyGraph mutation ## Usage ```typescript -db.mutation.copyGraph({ input: { databaseId: '', graphId: '', name: '' } }).execute() +db.mutation.copyGraph({ input: { scopeId: '', graphId: '', name: '' } }).execute() ``` ## Examples @@ -15,5 +15,5 @@ db.mutation.copyGraph({ input: { databaseId: '', graphId: '', name: ### Run copyGraph ```typescript -const result = await db.mutation.copyGraph({ input: { databaseId: '', graphId: '', name: '' } }).execute(); +const result = await db.mutation.copyGraph({ input: { scopeId: '', graphId: '', name: '' } }).execute(); ``` diff --git a/.agents/skills/orm-compute/references/db-preset.md b/.agents/skills/orm-compute/references/db-preset.md new file mode 100644 index 0000000000..ec572de7a1 --- /dev/null +++ b/.agents/skills/orm-compute/references/db-preset.md @@ -0,0 +1,34 @@ +# dbPreset + + + +Database provisioning preset catalog — merkle-versioned head over the infra store + +## Usage + +```typescript +db.dbPreset.findMany({ select: { id: true } }).execute() +db.dbPreset.findOne({ id: '', select: { id: true } }).execute() +db.dbPreset.create({ data: { storeId: '', slug: '', definition: '', commitId: '', modulesHash: '', label: '', description: '', active: '' }, select: { id: true } }).execute() +db.dbPreset.update({ where: { id: '' }, data: { storeId: '' }, select: { id: true } }).execute() +db.dbPreset.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all dbPreset records + +```typescript +const items = await db.dbPreset.findMany({ + select: { id: true, storeId: true } +}).execute(); +``` + +### Create a dbPreset + +```typescript +const item = await db.dbPreset.create({ + data: { storeId: '', slug: '', definition: '', commitId: '', modulesHash: '', label: '', description: '', active: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-compute/references/function-definition.md b/.agents/skills/orm-compute/references/function-definition.md index 2e7e5eabae..e4aec5554a 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: { scope: '', name: '', taskIdentifier: '', description: '', isInvocable: '', maxAttempts: '', priority: '', queueName: '', runtime: '', image: '', concurrency: '', scaleMin: '', scaleMax: '', timeoutSeconds: '', resources: '', isBuiltIn: '', requiredSecrets: '', requiredConfigs: '', requiredBuckets: '', requiredModels: '', inputs: '', outputs: '', props: '', volatile: '', icon: '', category: '' }, select: { id: true } }).execute() +db.functionDefinition.create({ data: { scope: '', name: '', taskIdentifier: '', description: '', isPublished: '', accessChannels: '', publishedAt: '', maxAttempts: '', priority: '', queueName: '', runtime: '', targetSchema: '', targetFunction: '', moduleTable: '', functionColumns: '', payloadArgs: '', image: '', concurrency: '', scaleMin: '', scaleMax: '', timeoutSeconds: '', resources: '', isBuiltIn: '', requiredSecrets: '', requiredConfigs: '', integrations: '', requiredBuckets: '', requiredModels: '', inputs: '', outputs: '', props: '', volatile: '', icon: '', category: '', databaseId: '' }, select: { id: true } }).execute() db.functionDefinition.update({ where: { id: '' }, data: { scope: '' }, 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: { scope: '', name: '', taskIdentifier: '', description: '', isInvocable: '', maxAttempts: '', priority: '', queueName: '', runtime: '', image: '', concurrency: '', scaleMin: '', scaleMax: '', timeoutSeconds: '', resources: '', isBuiltIn: '', requiredSecrets: '', requiredConfigs: '', requiredBuckets: '', requiredModels: '', inputs: '', outputs: '', props: '', volatile: '', icon: '', category: '' }, + data: { scope: '', name: '', taskIdentifier: '', description: '', isPublished: '', accessChannels: '', publishedAt: '', maxAttempts: '', priority: '', queueName: '', runtime: '', targetSchema: '', targetFunction: '', moduleTable: '', functionColumns: '', payloadArgs: '', image: '', concurrency: '', scaleMin: '', scaleMax: '', timeoutSeconds: '', resources: '', isBuiltIn: '', requiredSecrets: '', requiredConfigs: '', integrations: '', requiredBuckets: '', requiredModels: '', inputs: '', outputs: '', props: '', volatile: '', icon: '', category: '', databaseId: '' }, 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 9a01f98dfe..2f01e13de7 100644 --- a/.agents/skills/orm-compute/references/function-deployment.md +++ b/.agents/skills/orm-compute/references/function-deployment.md @@ -2,15 +2,15 @@ -Function deployment bindings — ties a function definition to a namespace for Knative provisioning and routing +Function deployment bindings — ties a handler image to a namespace for Knative provisioning and routing (one row per handler image per namespace) ## Usage ```typescript db.functionDeployment.findMany({ select: { id: true } }).execute() db.functionDeployment.findOne({ id: '', select: { id: true } }).execute() -db.functionDeployment.create({ data: { functionDefinitionId: '', namespaceId: '', status: '', serviceUrl: '', serviceName: '', revision: '', image: '', concurrency: '', scaleMin: '', scaleMax: '', timeoutSeconds: '', resources: '', lastError: '', lastErrorAt: '', errorCount: '', labels: '', annotations: '', databaseId: '' }, select: { id: true } }).execute() -db.functionDeployment.update({ where: { id: '' }, data: { functionDefinitionId: '' }, select: { id: true } }).execute() +db.functionDeployment.create({ data: { namespaceId: '', status: '', serviceUrl: '', serviceName: '', revision: '', image: '', imageVersion: '', handlerName: '', concurrency: '', scaleMin: '', scaleMax: '', timeoutSeconds: '', resources: '', lastError: '', lastErrorAt: '', errorCount: '', labels: '', annotations: '', databaseId: '' }, select: { id: true } }).execute() +db.functionDeployment.update({ where: { id: '' }, data: { namespaceId: '' }, select: { id: true } }).execute() db.functionDeployment.delete({ where: { id: '' } }).execute() ``` @@ -20,7 +20,7 @@ db.functionDeployment.delete({ where: { id: '' } }).execute() ```typescript const items = await db.functionDeployment.findMany({ - select: { id: true, functionDefinitionId: true } + select: { id: true, namespaceId: true } }).execute(); ``` @@ -28,7 +28,7 @@ const items = await db.functionDeployment.findMany({ ```typescript const item = await db.functionDeployment.create({ - data: { functionDefinitionId: '', namespaceId: '', status: '', serviceUrl: '', serviceName: '', revision: '', image: '', concurrency: '', scaleMin: '', scaleMax: '', timeoutSeconds: '', resources: '', lastError: '', lastErrorAt: '', errorCount: '', labels: '', annotations: '', databaseId: '' }, + data: { namespaceId: '', status: '', serviceUrl: '', serviceName: '', revision: '', image: '', imageVersion: '', handlerName: '', concurrency: '', scaleMin: '', scaleMax: '', timeoutSeconds: '', resources: '', lastError: '', lastErrorAt: '', errorCount: '', labels: '', annotations: '', databaseId: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-compute/references/function-graph-commit.md b/.agents/skills/orm-compute/references/function-graph-commit.md index 68afeb1424..93a9b78a4f 100644 --- a/.agents/skills/orm-compute/references/function-graph-commit.md +++ b/.agents/skills/orm-compute/references/function-graph-commit.md @@ -9,7 +9,7 @@ Commit history — each commit snapshots a tree root for a store ```typescript db.functionGraphCommit.findMany({ select: { id: true } }).execute() db.functionGraphCommit.findOne({ id: '', select: { id: true } }).execute() -db.functionGraphCommit.create({ data: { message: '', databaseId: '', storeId: '', parentIds: '', authorId: '', committerId: '', treeId: '', date: '' }, select: { id: true } }).execute() +db.functionGraphCommit.create({ data: { message: '', scopeId: '', storeId: '', parentIds: '', authorId: '', committerId: '', treeId: '', date: '' }, select: { id: true } }).execute() db.functionGraphCommit.update({ where: { id: '' }, data: { message: '' }, select: { id: true } }).execute() db.functionGraphCommit.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.functionGraphCommit.findMany({ ```typescript const item = await db.functionGraphCommit.create({ - data: { message: '', databaseId: '', storeId: '', parentIds: '', authorId: '', committerId: '', treeId: '', date: '' }, + data: { message: '', scopeId: '', storeId: '', parentIds: '', authorId: '', committerId: '', treeId: '', date: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-compute/references/function-graph-execution-node-state.md b/.agents/skills/orm-compute/references/function-graph-execution-node-state.md index 975233198b..83f49f9ffa 100644 --- a/.agents/skills/orm-compute/references/function-graph-execution-node-state.md +++ b/.agents/skills/orm-compute/references/function-graph-execution-node-state.md @@ -9,7 +9,7 @@ Per-node execution state — tracks individual node lifecycle for debugging ```typescript db.functionGraphExecutionNodeState.findMany({ select: { id: true } }).execute() db.functionGraphExecutionNodeState.findOne({ id: '', select: { id: true } }).execute() -db.functionGraphExecutionNodeState.create({ data: { executionId: '', databaseId: '', nodeName: '', nodePath: '', status: '', startedAt: '', completedAt: '', errorCode: '', errorMessage: '', outputId: '' }, select: { id: true } }).execute() +db.functionGraphExecutionNodeState.create({ data: { executionId: '', scopeId: '', nodeName: '', nodePath: '', status: '', startedAt: '', completedAt: '', errorCode: '', errorMessage: '', outputId: '' }, select: { id: true } }).execute() db.functionGraphExecutionNodeState.update({ where: { id: '' }, data: { executionId: '' }, select: { id: true } }).execute() db.functionGraphExecutionNodeState.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.functionGraphExecutionNodeState.findMany({ ```typescript const item = await db.functionGraphExecutionNodeState.create({ - data: { executionId: '', databaseId: '', nodeName: '', nodePath: '', status: '', startedAt: '', completedAt: '', errorCode: '', errorMessage: '', outputId: '' }, + data: { executionId: '', scopeId: '', nodeName: '', nodePath: '', status: '', startedAt: '', completedAt: '', errorCode: '', errorMessage: '', outputId: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-compute/references/function-graph-execution-output.md b/.agents/skills/orm-compute/references/function-graph-execution-output.md index 821dbbe9b6..7bd7a62a20 100644 --- a/.agents/skills/orm-compute/references/function-graph-execution-output.md +++ b/.agents/skills/orm-compute/references/function-graph-execution-output.md @@ -9,8 +9,8 @@ Content-addressed store for execution outputs — hash-referenced from node_outp ```typescript db.functionGraphExecutionOutput.findMany({ select: { id: true } }).execute() db.functionGraphExecutionOutput.findOne({ id: '', select: { id: true } }).execute() -db.functionGraphExecutionOutput.create({ data: { databaseId: '', hash: '', data: '' }, select: { id: true } }).execute() -db.functionGraphExecutionOutput.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.functionGraphExecutionOutput.create({ data: { scopeId: '', hash: '', data: '' }, select: { id: true } }).execute() +db.functionGraphExecutionOutput.update({ where: { id: '' }, data: { scopeId: '' }, select: { id: true } }).execute() db.functionGraphExecutionOutput.delete({ where: { id: '' } }).execute() ``` @@ -20,7 +20,7 @@ db.functionGraphExecutionOutput.delete({ where: { id: '' } }).execute() ```typescript const items = await db.functionGraphExecutionOutput.findMany({ - select: { id: true, databaseId: true } + select: { id: true, scopeId: true } }).execute(); ``` @@ -28,7 +28,7 @@ const items = await db.functionGraphExecutionOutput.findMany({ ```typescript const item = await db.functionGraphExecutionOutput.create({ - data: { databaseId: '', hash: '', data: '' }, + data: { scopeId: '', hash: '', data: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-compute/references/function-graph-execution.md b/.agents/skills/orm-compute/references/function-graph-execution.md index f0953a862d..4148c337c0 100644 --- a/.agents/skills/orm-compute/references/function-graph-execution.md +++ b/.agents/skills/orm-compute/references/function-graph-execution.md @@ -9,7 +9,7 @@ Ephemeral execution state for flow graph evaluation ```typescript db.functionGraphExecution.findMany({ select: { id: true } }).execute() db.functionGraphExecution.findOne({ id: '', select: { id: true } }).execute() -db.functionGraphExecution.create({ data: { startedAt: '', graphId: '', invocationId: '', databaseId: '', outputNode: '', outputPort: '', status: '', inputPayload: '', outputPayload: '', nodeOutputs: '', executionPlan: '', currentWave: '', parentExecutionId: '', parentNodeName: '', definitionsCommitId: '', tickCount: '', completedAt: '', maxTicks: '', maxPendingJobs: '', timeoutAt: '', errorCode: '', errorMessage: '' }, select: { id: true } }).execute() +db.functionGraphExecution.create({ data: { startedAt: '', graphId: '', invocationId: '', scopeId: '', outputNode: '', outputPort: '', status: '', inputPayload: '', outputPayload: '', nodeOutputs: '', executionPlan: '', currentWave: '', parentExecutionId: '', parentNodeName: '', definitionsCommitId: '', tickCount: '', completedAt: '', maxTicks: '', maxPendingJobs: '', timeoutAt: '', lastProgressAt: '', errorCode: '', errorMessage: '' }, select: { id: true } }).execute() db.functionGraphExecution.update({ where: { id: '' }, data: { startedAt: '' }, select: { id: true } }).execute() db.functionGraphExecution.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.functionGraphExecution.findMany({ ```typescript const item = await db.functionGraphExecution.create({ - data: { startedAt: '', graphId: '', invocationId: '', databaseId: '', outputNode: '', outputPort: '', status: '', inputPayload: '', outputPayload: '', nodeOutputs: '', executionPlan: '', currentWave: '', parentExecutionId: '', parentNodeName: '', definitionsCommitId: '', tickCount: '', completedAt: '', maxTicks: '', maxPendingJobs: '', timeoutAt: '', errorCode: '', errorMessage: '' }, + data: { startedAt: '', graphId: '', invocationId: '', scopeId: '', outputNode: '', outputPort: '', status: '', inputPayload: '', outputPayload: '', nodeOutputs: '', executionPlan: '', currentWave: '', parentExecutionId: '', parentNodeName: '', definitionsCommitId: '', tickCount: '', completedAt: '', maxTicks: '', maxPendingJobs: '', timeoutAt: '', lastProgressAt: '', errorCode: '', errorMessage: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-compute/references/function-graph-object.md b/.agents/skills/orm-compute/references/function-graph-object.md index 4cbb5e899b..9a3b44d9c2 100644 --- a/.agents/skills/orm-compute/references/function-graph-object.md +++ b/.agents/skills/orm-compute/references/function-graph-object.md @@ -9,8 +9,8 @@ Content-addressed Merkle tree objects keyed by UUID v5 hash of data + children ```typescript db.functionGraphObject.findMany({ select: { id: true } }).execute() db.functionGraphObject.findOne({ id: '', select: { id: true } }).execute() -db.functionGraphObject.create({ data: { databaseId: '', kids: '', ktree: '', data: '' }, select: { id: true } }).execute() -db.functionGraphObject.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.functionGraphObject.create({ data: { scopeId: '', kids: '', ktree: '', data: '' }, select: { id: true } }).execute() +db.functionGraphObject.update({ where: { id: '' }, data: { scopeId: '' }, select: { id: true } }).execute() db.functionGraphObject.delete({ where: { id: '' } }).execute() ``` @@ -20,7 +20,7 @@ db.functionGraphObject.delete({ where: { id: '' } }).execute() ```typescript const items = await db.functionGraphObject.findMany({ - select: { id: true, databaseId: true } + select: { id: true, scopeId: true } }).execute(); ``` @@ -28,7 +28,7 @@ const items = await db.functionGraphObject.findMany({ ```typescript const item = await db.functionGraphObject.create({ - data: { databaseId: '', kids: '', ktree: '', data: '' }, + data: { scopeId: '', kids: '', ktree: '', data: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-compute/references/function-graph-ref.md b/.agents/skills/orm-compute/references/function-graph-ref.md index dc5f7367b7..a82e1138c8 100644 --- a/.agents/skills/orm-compute/references/function-graph-ref.md +++ b/.agents/skills/orm-compute/references/function-graph-ref.md @@ -9,7 +9,7 @@ Branch heads — mutable pointers into the commit chain ```typescript db.functionGraphRef.findMany({ select: { id: true } }).execute() db.functionGraphRef.findOne({ id: '', select: { id: true } }).execute() -db.functionGraphRef.create({ data: { name: '', databaseId: '', storeId: '', commitId: '' }, select: { id: true } }).execute() +db.functionGraphRef.create({ data: { name: '', scopeId: '', storeId: '', commitId: '' }, select: { id: true } }).execute() db.functionGraphRef.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() db.functionGraphRef.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.functionGraphRef.findMany({ ```typescript const item = await db.functionGraphRef.create({ - data: { name: '', databaseId: '', storeId: '', commitId: '' }, + data: { name: '', scopeId: '', storeId: '', commitId: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-compute/references/function-graph-store.md b/.agents/skills/orm-compute/references/function-graph-store.md index f99f311639..873f2af01b 100644 --- a/.agents/skills/orm-compute/references/function-graph-store.md +++ b/.agents/skills/orm-compute/references/function-graph-store.md @@ -9,7 +9,7 @@ Named stores — one per version-controlled tree (e.g. one graph, one definition ```typescript db.functionGraphStore.findMany({ select: { id: true } }).execute() db.functionGraphStore.findOne({ id: '', select: { id: true } }).execute() -db.functionGraphStore.create({ data: { name: '', databaseId: '', hash: '' }, select: { id: true } }).execute() +db.functionGraphStore.create({ data: { name: '', scopeId: '', hash: '' }, select: { id: true } }).execute() db.functionGraphStore.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() db.functionGraphStore.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.functionGraphStore.findMany({ ```typescript const item = await db.functionGraphStore.create({ - data: { name: '', databaseId: '', hash: '' }, + data: { name: '', scopeId: '', hash: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-compute/references/function-graph.md b/.agents/skills/orm-compute/references/function-graph.md index 71c530fb04..1c4995e2da 100644 --- a/.agents/skills/orm-compute/references/function-graph.md +++ b/.agents/skills/orm-compute/references/function-graph.md @@ -9,8 +9,8 @@ Flow graph definitions — FBP graphs stored in the dedicated graph Merkle store ```typescript db.functionGraph.findMany({ select: { id: true } }).execute() db.functionGraph.findOne({ id: '', select: { id: true } }).execute() -db.functionGraph.create({ data: { databaseId: '', storeId: '', context: '', name: '', description: '', definitionsCommitId: '', isValid: '', validationErrors: '', createdBy: '' }, select: { id: true } }).execute() -db.functionGraph.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.functionGraph.create({ data: { scopeId: '', storeId: '', context: '', name: '', description: '', definitionsCommitId: '', isValid: '', validationErrors: '', createdBy: '' }, select: { id: true } }).execute() +db.functionGraph.update({ where: { id: '' }, data: { scopeId: '' }, select: { id: true } }).execute() db.functionGraph.delete({ where: { id: '' } }).execute() ``` @@ -20,7 +20,7 @@ db.functionGraph.delete({ where: { id: '' } }).execute() ```typescript const items = await db.functionGraph.findMany({ - select: { id: true, databaseId: true } + select: { id: true, scopeId: true } }).execute(); ``` @@ -28,7 +28,7 @@ const items = await db.functionGraph.findMany({ ```typescript const item = await db.functionGraph.create({ - data: { databaseId: '', storeId: '', context: '', name: '', description: '', definitionsCommitId: '', isValid: '', validationErrors: '', createdBy: '' }, + data: { scopeId: '', storeId: '', context: '', name: '', description: '', definitionsCommitId: '', isValid: '', validationErrors: '', createdBy: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-compute/references/infra-commit.md b/.agents/skills/orm-compute/references/infra-commit.md new file mode 100644 index 0000000000..53f180badb --- /dev/null +++ b/.agents/skills/orm-compute/references/infra-commit.md @@ -0,0 +1,34 @@ +# infraCommit + + + +Commit history — each commit snapshots a tree root for a store + +## Usage + +```typescript +db.infraCommit.findMany({ select: { id: true } }).execute() +db.infraCommit.findOne({ id: '', select: { id: true } }).execute() +db.infraCommit.create({ data: { message: '', scopeId: '', storeId: '', parentIds: '', authorId: '', committerId: '', treeId: '', date: '' }, select: { id: true } }).execute() +db.infraCommit.update({ where: { id: '' }, data: { message: '' }, select: { id: true } }).execute() +db.infraCommit.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all infraCommit records + +```typescript +const items = await db.infraCommit.findMany({ + select: { id: true, message: true } +}).execute(); +``` + +### Create a infraCommit + +```typescript +const item = await db.infraCommit.create({ + data: { message: '', scopeId: '', storeId: '', parentIds: '', authorId: '', committerId: '', treeId: '', date: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-compute/references/infra-get-all-record.md b/.agents/skills/orm-compute/references/infra-get-all-record.md new file mode 100644 index 0000000000..b12cfcba48 --- /dev/null +++ b/.agents/skills/orm-compute/references/infra-get-all-record.md @@ -0,0 +1,34 @@ +# infraGetAllRecord + + + +ORM operations for InfraGetAllRecord records + +## Usage + +```typescript +db.infraGetAllRecord.findMany({ select: { id: true } }).execute() +db.infraGetAllRecord.findOne({ id: '', select: { id: true } }).execute() +db.infraGetAllRecord.create({ data: { path: '', data: '' }, select: { id: true } }).execute() +db.infraGetAllRecord.update({ where: { id: '' }, data: { path: '' }, select: { id: true } }).execute() +db.infraGetAllRecord.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all infraGetAllRecord records + +```typescript +const items = await db.infraGetAllRecord.findMany({ + select: { id: true, path: true } +}).execute(); +``` + +### Create a infraGetAllRecord + +```typescript +const item = await db.infraGetAllRecord.create({ + data: { path: '', data: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-compute/references/infra-init-empty-repo.md b/.agents/skills/orm-compute/references/infra-init-empty-repo.md new file mode 100644 index 0000000000..fdacb51068 --- /dev/null +++ b/.agents/skills/orm-compute/references/infra-init-empty-repo.md @@ -0,0 +1,19 @@ +# infraInitEmptyRepo + + + +Execute the infraInitEmptyRepo mutation + +## Usage + +```typescript +db.mutation.infraInitEmptyRepo({ input: { sId: '', storeId: '' } }).execute() +``` + +## Examples + +### Run infraInitEmptyRepo + +```typescript +const result = await db.mutation.infraInitEmptyRepo({ input: { sId: '', storeId: '' } }).execute(); +``` diff --git a/.agents/skills/orm-compute/references/infra-insert-node-at-path.md b/.agents/skills/orm-compute/references/infra-insert-node-at-path.md new file mode 100644 index 0000000000..b9e0ae97db --- /dev/null +++ b/.agents/skills/orm-compute/references/infra-insert-node-at-path.md @@ -0,0 +1,19 @@ +# infraInsertNodeAtPath + + + +Execute the infraInsertNodeAtPath mutation + +## Usage + +```typescript +db.mutation.infraInsertNodeAtPath({ input: '' }).execute() +``` + +## Examples + +### Run infraInsertNodeAtPath + +```typescript +const result = await db.mutation.infraInsertNodeAtPath({ input: '' }).execute(); +``` diff --git a/.agents/skills/orm-compute/references/infra-object.md b/.agents/skills/orm-compute/references/infra-object.md new file mode 100644 index 0000000000..f70f16804f --- /dev/null +++ b/.agents/skills/orm-compute/references/infra-object.md @@ -0,0 +1,34 @@ +# infraObject + + + +Content-addressed Merkle tree objects keyed by UUID v5 hash of data + children + +## Usage + +```typescript +db.infraObject.findMany({ select: { id: true } }).execute() +db.infraObject.findOne({ id: '', select: { id: true } }).execute() +db.infraObject.create({ data: { scopeId: '', kids: '', ktree: '', data: '' }, select: { id: true } }).execute() +db.infraObject.update({ where: { id: '' }, data: { scopeId: '' }, select: { id: true } }).execute() +db.infraObject.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all infraObject records + +```typescript +const items = await db.infraObject.findMany({ + select: { id: true, scopeId: true } +}).execute(); +``` + +### Create a infraObject + +```typescript +const item = await db.infraObject.create({ + data: { scopeId: '', kids: '', ktree: '', data: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-compute/references/infra-ref.md b/.agents/skills/orm-compute/references/infra-ref.md new file mode 100644 index 0000000000..94a175b89d --- /dev/null +++ b/.agents/skills/orm-compute/references/infra-ref.md @@ -0,0 +1,34 @@ +# infraRef + + + +Branch heads — mutable pointers into the commit chain + +## Usage + +```typescript +db.infraRef.findMany({ select: { id: true } }).execute() +db.infraRef.findOne({ id: '', select: { id: true } }).execute() +db.infraRef.create({ data: { name: '', scopeId: '', storeId: '', commitId: '' }, select: { id: true } }).execute() +db.infraRef.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() +db.infraRef.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all infraRef records + +```typescript +const items = await db.infraRef.findMany({ + select: { id: true, name: true } +}).execute(); +``` + +### Create a infraRef + +```typescript +const item = await db.infraRef.create({ + data: { name: '', scopeId: '', storeId: '', commitId: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-compute/references/infra-set-data-at-path.md b/.agents/skills/orm-compute/references/infra-set-data-at-path.md new file mode 100644 index 0000000000..d663360449 --- /dev/null +++ b/.agents/skills/orm-compute/references/infra-set-data-at-path.md @@ -0,0 +1,19 @@ +# infraSetDataAtPath + + + +Execute the infraSetDataAtPath mutation + +## Usage + +```typescript +db.mutation.infraSetDataAtPath({ input: { sId: '', root: '', path: '', data: '' } }).execute() +``` + +## Examples + +### Run infraSetDataAtPath + +```typescript +const result = await db.mutation.infraSetDataAtPath({ input: { sId: '', root: '', path: '', data: '' } }).execute(); +``` diff --git a/.agents/skills/orm-compute/references/infra-store.md b/.agents/skills/orm-compute/references/infra-store.md new file mode 100644 index 0000000000..9b79d1c935 --- /dev/null +++ b/.agents/skills/orm-compute/references/infra-store.md @@ -0,0 +1,34 @@ +# infraStore + + + +Named stores — one per version-controlled tree (e.g. one graph, one definition set) + +## Usage + +```typescript +db.infraStore.findMany({ select: { id: true } }).execute() +db.infraStore.findOne({ id: '', select: { id: true } }).execute() +db.infraStore.create({ data: { name: '', scopeId: '', hash: '' }, select: { id: true } }).execute() +db.infraStore.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() +db.infraStore.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all infraStore records + +```typescript +const items = await db.infraStore.findMany({ + select: { id: true, name: true } +}).execute(); +``` + +### Create a infraStore + +```typescript +const item = await db.infraStore.create({ + data: { name: '', scopeId: '', hash: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-compute/references/integration-provider.md b/.agents/skills/orm-compute/references/integration-provider.md new file mode 100644 index 0000000000..93c8f07daa --- /dev/null +++ b/.agents/skills/orm-compute/references/integration-provider.md @@ -0,0 +1,34 @@ +# integrationProvider + + + +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. + +## Usage + +```typescript +db.integrationProvider.findMany({ select: { id: true } }).execute() +db.integrationProvider.findOne({ id: '', select: { id: true } }).execute() +db.integrationProvider.create({ data: { slug: '', name: '', description: '', category: '', icon: '', logo: '', brand: '', requiredSecrets: '', requiredConfigs: '' }, select: { id: true } }).execute() +db.integrationProvider.update({ where: { id: '' }, data: { slug: '' }, select: { id: true } }).execute() +db.integrationProvider.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all integrationProvider records + +```typescript +const items = await db.integrationProvider.findMany({ + select: { id: true, slug: true } +}).execute(); +``` + +### Create a integrationProvider + +```typescript +const item = await db.integrationProvider.create({ + data: { slug: '', name: '', description: '', category: '', icon: '', logo: '', brand: '', requiredSecrets: '', requiredConfigs: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-compute/references/namespace-event.md b/.agents/skills/orm-compute/references/namespace-event.md new file mode 100644 index 0000000000..e6448d948e --- /dev/null +++ b/.agents/skills/orm-compute/references/namespace-event.md @@ -0,0 +1,34 @@ +# namespaceEvent + + + +Namespace lifecycle events — audit log of creation, activation, deactivation, label changes + +## Usage + +```typescript +db.namespaceEvent.findMany({ select: { id: true } }).execute() +db.namespaceEvent.findOne({ id: '', select: { id: true } }).execute() +db.namespaceEvent.create({ data: { namespaceId: '', eventType: '', actorId: '', message: '', metadata: '', cpuMillicores: '', memoryBytes: '', storageBytes: '', networkIngressBytes: '', networkEgressBytes: '', podCount: '', metrics: '', databaseId: '' }, select: { id: true } }).execute() +db.namespaceEvent.update({ where: { id: '' }, data: { namespaceId: '' }, select: { id: true } }).execute() +db.namespaceEvent.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all namespaceEvent records + +```typescript +const items = await db.namespaceEvent.findMany({ + select: { id: true, namespaceId: true } +}).execute(); +``` + +### Create a namespaceEvent + +```typescript +const item = await db.namespaceEvent.create({ + data: { namespaceId: '', eventType: '', actorId: '', message: '', metadata: '', cpuMillicores: '', memoryBytes: '', storageBytes: '', networkIngressBytes: '', networkEgressBytes: '', podCount: '', metrics: '', databaseId: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-compute/references/namespace.md b/.agents/skills/orm-compute/references/namespace.md new file mode 100644 index 0000000000..5839a3d5e7 --- /dev/null +++ b/.agents/skills/orm-compute/references/namespace.md @@ -0,0 +1,34 @@ +# namespace + + + +Logical namespace containers for grouping secrets, config, functions, and other resources + +## Usage + +```typescript +db.namespace.findMany({ select: { id: true } }).execute() +db.namespace.findOne({ id: '', select: { id: true } }).execute() +db.namespace.create({ data: { name: '', namespaceName: '', description: '', isActive: '', status: '', lastError: '', labels: '', annotations: '', databaseId: '', isManaged: '' }, select: { id: true } }).execute() +db.namespace.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() +db.namespace.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all namespace records + +```typescript +const items = await db.namespace.findMany({ + select: { id: true, name: true } +}).execute(); +``` + +### Create a namespace + +```typescript +const item = await db.namespace.create({ + data: { name: '', namespaceName: '', description: '', isActive: '', status: '', lastError: '', labels: '', annotations: '', databaseId: '', isManaged: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-compute/references/platform-function-api-binding.md b/.agents/skills/orm-compute/references/platform-function-api-binding.md new file mode 100644 index 0000000000..06b74a8d17 --- /dev/null +++ b/.agents/skills/orm-compute/references/platform-function-api-binding.md @@ -0,0 +1,34 @@ +# platformFunctionApiBinding + + + +Join table binding function definitions to API endpoints with per-binding alias and config + +## Usage + +```typescript +db.platformFunctionApiBinding.findMany({ select: { id: true } }).execute() +db.platformFunctionApiBinding.findOne({ id: '', select: { id: true } }).execute() +db.platformFunctionApiBinding.create({ data: { functionDefinitionId: '', apiId: '', alias: '', config: '' }, select: { id: true } }).execute() +db.platformFunctionApiBinding.update({ where: { id: '' }, data: { functionDefinitionId: '' }, select: { id: true } }).execute() +db.platformFunctionApiBinding.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all platformFunctionApiBinding records + +```typescript +const items = await db.platformFunctionApiBinding.findMany({ + select: { id: true, functionDefinitionId: true } +}).execute(); +``` + +### Create a platformFunctionApiBinding + +```typescript +const item = await db.platformFunctionApiBinding.create({ + data: { functionDefinitionId: '', apiId: '', alias: '', config: '' }, + 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 new file mode 100644 index 0000000000..c8c473ebe2 --- /dev/null +++ b/.agents/skills/orm-compute/references/platform-function-definition.md @@ -0,0 +1,34 @@ +# platformFunctionDefinition + + + +Function definitions — registered cloud functions with routing, queue, and retry configuration + +## Usage + +```typescript +db.platformFunctionDefinition.findMany({ select: { id: true } }).execute() +db.platformFunctionDefinition.findOne({ id: '', select: { id: true } }).execute() +db.platformFunctionDefinition.create({ data: { scope: '', name: '', taskIdentifier: '', description: '', isPublished: '', accessChannels: '', publishedAt: '', maxAttempts: '', priority: '', queueName: '', runtime: '', targetSchema: '', targetFunction: '', moduleTable: '', functionColumns: '', payloadArgs: '', image: '', concurrency: '', scaleMin: '', scaleMax: '', timeoutSeconds: '', resources: '', isBuiltIn: '', requiredSecrets: '', requiredConfigs: '', integrations: '', requiredBuckets: '', requiredModels: '', inputs: '', outputs: '', props: '', volatile: '', icon: '', category: '' }, select: { id: true } }).execute() +db.platformFunctionDefinition.update({ where: { id: '' }, data: { scope: '' }, select: { id: true } }).execute() +db.platformFunctionDefinition.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all platformFunctionDefinition records + +```typescript +const items = await db.platformFunctionDefinition.findMany({ + select: { id: true, scope: true } +}).execute(); +``` + +### Create a platformFunctionDefinition + +```typescript +const item = await db.platformFunctionDefinition.create({ + data: { scope: '', name: '', taskIdentifier: '', description: '', isPublished: '', accessChannels: '', publishedAt: '', maxAttempts: '', priority: '', queueName: '', runtime: '', targetSchema: '', targetFunction: '', moduleTable: '', functionColumns: '', payloadArgs: '', image: '', concurrency: '', scaleMin: '', scaleMax: '', timeoutSeconds: '', resources: '', isBuiltIn: '', requiredSecrets: '', requiredConfigs: '', integrations: '', requiredBuckets: '', requiredModels: '', inputs: '', outputs: '', props: '', volatile: '', icon: '', category: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-compute/references/platform-function-deployment-event.md b/.agents/skills/orm-compute/references/platform-function-deployment-event.md new file mode 100644 index 0000000000..4e44fb20de --- /dev/null +++ b/.agents/skills/orm-compute/references/platform-function-deployment-event.md @@ -0,0 +1,34 @@ +# platformFunctionDeploymentEvent + + + +Deployment lifecycle events — audit log of provisioning, scaling, and failure events + +## Usage + +```typescript +db.platformFunctionDeploymentEvent.findMany({ select: { id: true } }).execute() +db.platformFunctionDeploymentEvent.findOne({ id: '', select: { id: true } }).execute() +db.platformFunctionDeploymentEvent.create({ data: { deploymentId: '', eventType: '', actorId: '', message: '', metadata: '' }, select: { id: true } }).execute() +db.platformFunctionDeploymentEvent.update({ where: { id: '' }, data: { deploymentId: '' }, select: { id: true } }).execute() +db.platformFunctionDeploymentEvent.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all platformFunctionDeploymentEvent records + +```typescript +const items = await db.platformFunctionDeploymentEvent.findMany({ + select: { id: true, deploymentId: true } +}).execute(); +``` + +### Create a platformFunctionDeploymentEvent + +```typescript +const item = await db.platformFunctionDeploymentEvent.create({ + data: { deploymentId: '', eventType: '', actorId: '', message: '', metadata: '' }, + 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 new file mode 100644 index 0000000000..5a74fd1725 --- /dev/null +++ b/.agents/skills/orm-compute/references/platform-function-deployment.md @@ -0,0 +1,34 @@ +# platformFunctionDeployment + + + +Function deployment bindings — ties a handler image to a namespace for Knative provisioning and routing (one row per handler image per namespace) + +## Usage + +```typescript +db.platformFunctionDeployment.findMany({ select: { id: true } }).execute() +db.platformFunctionDeployment.findOne({ id: '', select: { id: true } }).execute() +db.platformFunctionDeployment.create({ data: { namespaceId: '', status: '', serviceUrl: '', serviceName: '', revision: '', image: '', imageVersion: '', handlerName: '', concurrency: '', scaleMin: '', scaleMax: '', timeoutSeconds: '', resources: '', lastError: '', lastErrorAt: '', errorCount: '', labels: '', annotations: '' }, select: { id: true } }).execute() +db.platformFunctionDeployment.update({ where: { id: '' }, data: { namespaceId: '' }, select: { id: true } }).execute() +db.platformFunctionDeployment.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all platformFunctionDeployment records + +```typescript +const items = await db.platformFunctionDeployment.findMany({ + select: { id: true, namespaceId: true } +}).execute(); +``` + +### Create a platformFunctionDeployment + +```typescript +const item = await db.platformFunctionDeployment.create({ + data: { namespaceId: '', status: '', serviceUrl: '', serviceName: '', revision: '', image: '', imageVersion: '', handlerName: '', concurrency: '', scaleMin: '', scaleMax: '', timeoutSeconds: '', resources: '', lastError: '', lastErrorAt: '', errorCount: '', labels: '', annotations: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-compute/references/platform-function-execution-log.md b/.agents/skills/orm-compute/references/platform-function-execution-log.md new file mode 100644 index 0000000000..75672fac6f --- /dev/null +++ b/.agents/skills/orm-compute/references/platform-function-execution-log.md @@ -0,0 +1,34 @@ +# platformFunctionExecutionLog + + + +Function execution logs — structured console output per invocation + +## Usage + +```typescript +db.platformFunctionExecutionLog.findMany({ select: { id: true } }).execute() +db.platformFunctionExecutionLog.findOne({ id: '', select: { id: true } }).execute() +db.platformFunctionExecutionLog.create({ data: { invocationId: '', taskIdentifier: '', logLevel: '', message: '', metadata: '', actorId: '' }, select: { id: true } }).execute() +db.platformFunctionExecutionLog.update({ where: { id: '' }, data: { invocationId: '' }, select: { id: true } }).execute() +db.platformFunctionExecutionLog.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all platformFunctionExecutionLog records + +```typescript +const items = await db.platformFunctionExecutionLog.findMany({ + select: { id: true, invocationId: true } +}).execute(); +``` + +### Create a platformFunctionExecutionLog + +```typescript +const item = await db.platformFunctionExecutionLog.create({ + data: { invocationId: '', taskIdentifier: '', logLevel: '', message: '', metadata: '', actorId: '' }, + 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 new file mode 100644 index 0000000000..40a8f09a40 --- /dev/null +++ b/.agents/skills/orm-compute/references/platform-function-invocation.md @@ -0,0 +1,34 @@ +# platformFunctionInvocation + + + +Function invocation log — INSERT to call a function (business-layer, metered). Linked to definitions by task_identifier string. + +## Usage + +```typescript +db.platformFunctionInvocation.findMany({ select: { id: true } }).execute() +db.platformFunctionInvocation.findOne({ id: '', select: { id: true } }).execute() +db.platformFunctionInvocation.create({ data: { actorId: '', taskIdentifier: '', payload: '', status: '', result: '', error: '', durationMs: '', jobId: '', startedAt: '', completedAt: '', parentInvocationId: '', graphExecutionId: '' }, select: { id: true } }).execute() +db.platformFunctionInvocation.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute() +db.platformFunctionInvocation.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all platformFunctionInvocation records + +```typescript +const items = await db.platformFunctionInvocation.findMany({ + select: { id: true, actorId: true } +}).execute(); +``` + +### Create a platformFunctionInvocation + +```typescript +const item = await db.platformFunctionInvocation.create({ + data: { actorId: '', taskIdentifier: '', payload: '', status: '', result: '', error: '', durationMs: '', jobId: '', startedAt: '', completedAt: '', parentInvocationId: '', graphExecutionId: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-compute/references/platform-namespace-event.md b/.agents/skills/orm-compute/references/platform-namespace-event.md index 00fab17e8e..9c1e139634 100644 --- a/.agents/skills/orm-compute/references/platform-namespace-event.md +++ b/.agents/skills/orm-compute/references/platform-namespace-event.md @@ -9,7 +9,7 @@ Namespace lifecycle events — audit log of creation, activation, deactivation, ```typescript db.platformNamespaceEvent.findMany({ select: { id: true } }).execute() db.platformNamespaceEvent.findOne({ id: '', select: { id: true } }).execute() -db.platformNamespaceEvent.create({ data: { namespaceId: '', eventType: '', actorId: '', message: '', metadata: '', cpuMillicores: '', memoryBytes: '', storageBytes: '', networkIngressBytes: '', networkEgressBytes: '', podCount: '', metrics: '', databaseId: '' }, select: { id: true } }).execute() +db.platformNamespaceEvent.create({ data: { namespaceId: '', eventType: '', actorId: '', message: '', metadata: '', cpuMillicores: '', memoryBytes: '', storageBytes: '', networkIngressBytes: '', networkEgressBytes: '', podCount: '', metrics: '' }, select: { id: true } }).execute() db.platformNamespaceEvent.update({ where: { id: '' }, data: { namespaceId: '' }, select: { id: true } }).execute() db.platformNamespaceEvent.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.platformNamespaceEvent.findMany({ ```typescript const item = await db.platformNamespaceEvent.create({ - data: { namespaceId: '', eventType: '', actorId: '', message: '', metadata: '', cpuMillicores: '', memoryBytes: '', storageBytes: '', networkIngressBytes: '', networkEgressBytes: '', podCount: '', metrics: '', databaseId: '' }, + data: { namespaceId: '', eventType: '', actorId: '', message: '', metadata: '', cpuMillicores: '', memoryBytes: '', storageBytes: '', networkIngressBytes: '', networkEgressBytes: '', podCount: '', metrics: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-compute/references/platform-namespace.md b/.agents/skills/orm-compute/references/platform-namespace.md index ab4071ce74..6156483403 100644 --- a/.agents/skills/orm-compute/references/platform-namespace.md +++ b/.agents/skills/orm-compute/references/platform-namespace.md @@ -9,7 +9,7 @@ Logical namespace containers for grouping secrets, config, functions, and other ```typescript db.platformNamespace.findMany({ select: { id: true } }).execute() db.platformNamespace.findOne({ id: '', select: { id: true } }).execute() -db.platformNamespace.create({ data: { name: '', namespaceName: '', description: '', isActive: '', labels: '', annotations: '', databaseId: '', sourceDatabaseId: '', sourceScope: '', isManaged: '' }, select: { id: true } }).execute() +db.platformNamespace.create({ data: { name: '', namespaceName: '', description: '', isActive: '', status: '', lastError: '', labels: '', annotations: '', isManaged: '' }, select: { id: true } }).execute() db.platformNamespace.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() db.platformNamespace.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.platformNamespace.findMany({ ```typescript const item = await db.platformNamespace.create({ - data: { name: '', namespaceName: '', description: '', isActive: '', labels: '', annotations: '', databaseId: '', sourceDatabaseId: '', sourceScope: '', isManaged: '' }, + data: { name: '', namespaceName: '', description: '', isActive: '', status: '', lastError: '', labels: '', annotations: '', isManaged: '' }, 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 new file mode 100644 index 0000000000..3787bafcc3 --- /dev/null +++ b/.agents/skills/orm-compute/references/platform-resource-definition.md @@ -0,0 +1,34 @@ +# platformResourceDefinition + + + +Resource definitions — templates for resource kinds declaring default spec and secret/config requirements + +## Usage + +```typescript +db.platformResourceDefinition.findMany({ select: { id: true } }).execute() +db.platformResourceDefinition.findOne({ id: '', select: { id: true } }).execute() +db.platformResourceDefinition.create({ data: { createdBy: '', updatedBy: '', namespaceId: '', kind: '', name: '', slug: '', description: '', defaultSpec: '', requiredSecrets: '', requiredConfigs: '', integrations: '', labels: '', annotations: '', stepUpMinAge: '' }, select: { id: true } }).execute() +db.platformResourceDefinition.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute() +db.platformResourceDefinition.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all platformResourceDefinition records + +```typescript +const items = await db.platformResourceDefinition.findMany({ + select: { id: true, createdBy: true } +}).execute(); +``` + +### Create a platformResourceDefinition + +```typescript +const item = await db.platformResourceDefinition.create({ + data: { createdBy: '', updatedBy: '', namespaceId: '', kind: '', name: '', slug: '', description: '', defaultSpec: '', requiredSecrets: '', requiredConfigs: '', integrations: '', labels: '', annotations: '', stepUpMinAge: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-compute/references/platform-resource-event.md b/.agents/skills/orm-compute/references/platform-resource-event.md new file mode 100644 index 0000000000..c5ce8c51f3 --- /dev/null +++ b/.agents/skills/orm-compute/references/platform-resource-event.md @@ -0,0 +1,34 @@ +# platformResourceEvent + + + +Resource lifecycle events — audit log of provisioning, updates, and failure events + +## Usage + +```typescript +db.platformResourceEvent.findMany({ select: { id: true } }).execute() +db.platformResourceEvent.findOne({ id: '', select: { id: true } }).execute() +db.platformResourceEvent.create({ data: { resourceId: '', eventType: '', actorId: '', message: '', metadata: '' }, select: { id: true } }).execute() +db.platformResourceEvent.update({ where: { id: '' }, data: { resourceId: '' }, select: { id: true } }).execute() +db.platformResourceEvent.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all platformResourceEvent records + +```typescript +const items = await db.platformResourceEvent.findMany({ + select: { id: true, resourceId: true } +}).execute(); +``` + +### Create a platformResourceEvent + +```typescript +const item = await db.platformResourceEvent.create({ + data: { resourceId: '', eventType: '', actorId: '', message: '', metadata: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-compute/references/platform-resource-status-check.md b/.agents/skills/orm-compute/references/platform-resource-status-check.md new file mode 100644 index 0000000000..8a9e075cef --- /dev/null +++ b/.agents/skills/orm-compute/references/platform-resource-status-check.md @@ -0,0 +1,34 @@ +# platformResourceStatusCheck + + + +On-demand resource status checks — diagnostic snapshots from the runtime (K8s status, conditions, log tails) + +## Usage + +```typescript +db.platformResourceStatusCheck.findMany({ select: { id: true } }).execute() +db.platformResourceStatusCheck.findOne({ id: '', select: { id: true } }).execute() +db.platformResourceStatusCheck.create({ data: { resourceId: '', requestedBy: '', requestedAt: '', completedAt: '', status: '', result: '' }, select: { id: true } }).execute() +db.platformResourceStatusCheck.update({ where: { id: '' }, data: { resourceId: '' }, select: { id: true } }).execute() +db.platformResourceStatusCheck.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all platformResourceStatusCheck records + +```typescript +const items = await db.platformResourceStatusCheck.findMany({ + select: { id: true, resourceId: true } +}).execute(); +``` + +### Create a platformResourceStatusCheck + +```typescript +const item = await db.platformResourceStatusCheck.create({ + data: { resourceId: '', requestedBy: '', requestedAt: '', completedAt: '', status: '', result: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-compute/references/platform-resource.md b/.agents/skills/orm-compute/references/platform-resource.md new file mode 100644 index 0000000000..f4b2c63648 --- /dev/null +++ b/.agents/skills/orm-compute/references/platform-resource.md @@ -0,0 +1,34 @@ +# platformResource + + + +Unified K8s resource declarations — stores desired state (spec) and observed state (status) for all resource kinds within a namespace + +## Usage + +```typescript +db.platformResource.findMany({ select: { id: true } }).execute() +db.platformResource.findOne({ id: '', select: { id: true } }).execute() +db.platformResource.create({ data: { createdBy: '', updatedBy: '', namespaceId: '', kind: '', name: '', slug: '', spec: '', status: '', statusObserved: '', lastError: '', errorCount: '', labels: '', annotations: '', requiredSecrets: '', requiredConfigs: '', integrations: '', resourceDefinitionId: '' }, select: { id: true } }).execute() +db.platformResource.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute() +db.platformResource.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all platformResource records + +```typescript +const items = await db.platformResource.findMany({ + select: { id: true, createdBy: true } +}).execute(); +``` + +### Create a platformResource + +```typescript +const item = await db.platformResource.create({ + data: { createdBy: '', updatedBy: '', namespaceId: '', kind: '', name: '', slug: '', spec: '', status: '', statusObserved: '', lastError: '', errorCount: '', labels: '', annotations: '', requiredSecrets: '', requiredConfigs: '', integrations: '', resourceDefinitionId: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-compute/references/platform-resources-requirements-state.md b/.agents/skills/orm-compute/references/platform-resources-requirements-state.md new file mode 100644 index 0000000000..6b3c6d9d51 --- /dev/null +++ b/.agents/skills/orm-compute/references/platform-resources-requirements-state.md @@ -0,0 +1,34 @@ +# platformResourcesRequirementsState + + + +ORM operations for PlatformResourcesRequirementsState records + +## Usage + +```typescript +db.platformResourcesRequirementsState.findMany({ select: { id: true } }).execute() +db.platformResourcesRequirementsState.findOne({ id: '', select: { id: true } }).execute() +db.platformResourcesRequirementsState.create({ data: { resourceId: '', slug: '', secretsHash: '', configHash: '', requirementsHash: '', secretsObjectName: '', configObjectName: '' }, select: { id: true } }).execute() +db.platformResourcesRequirementsState.update({ where: { id: '' }, data: { resourceId: '' }, select: { id: true } }).execute() +db.platformResourcesRequirementsState.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all platformResourcesRequirementsState records + +```typescript +const items = await db.platformResourcesRequirementsState.findMany({ + select: { id: true, resourceId: true } +}).execute(); +``` + +### Create a platformResourcesRequirementsState + +```typescript +const item = await db.platformResourcesRequirementsState.create({ + data: { resourceId: '', slug: '', secretsHash: '', configHash: '', requirementsHash: '', secretsObjectName: '', configObjectName: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-compute/references/platform-resources-resolved-requirement.md b/.agents/skills/orm-compute/references/platform-resources-resolved-requirement.md new file mode 100644 index 0000000000..0af4d60a4d --- /dev/null +++ b/.agents/skills/orm-compute/references/platform-resources-resolved-requirement.md @@ -0,0 +1,34 @@ +# platformResourcesResolvedRequirement + + + +ORM operations for PlatformResourcesResolvedRequirement records + +## Usage + +```typescript +db.platformResourcesResolvedRequirement.findMany({ select: { id: true } }).execute() +db.platformResourcesResolvedRequirement.findOne({ id: '', select: { id: true } }).execute() +db.platformResourcesResolvedRequirement.create({ data: { resourceId: '', slug: '', namespaceId: '', requirementKind: '', name: '', required: '', atomId: '', present: '', secretsObjectName: '', configObjectName: '' }, select: { id: true } }).execute() +db.platformResourcesResolvedRequirement.update({ where: { id: '' }, data: { resourceId: '' }, select: { id: true } }).execute() +db.platformResourcesResolvedRequirement.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all platformResourcesResolvedRequirement records + +```typescript +const items = await db.platformResourcesResolvedRequirement.findMany({ + select: { id: true, resourceId: true } +}).execute(); +``` + +### Create a platformResourcesResolvedRequirement + +```typescript +const item = await db.platformResourcesResolvedRequirement.create({ + data: { resourceId: '', slug: '', namespaceId: '', requirementKind: '', name: '', required: '', atomId: '', present: '', secretsObjectName: '', configObjectName: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-compute/references/resource-definition.md b/.agents/skills/orm-compute/references/resource-definition.md new file mode 100644 index 0000000000..5afeec8f6f --- /dev/null +++ b/.agents/skills/orm-compute/references/resource-definition.md @@ -0,0 +1,34 @@ +# resourceDefinition + + + +Resource definitions — templates for resource kinds declaring default spec and secret/config requirements + +## Usage + +```typescript +db.resourceDefinition.findMany({ select: { id: true } }).execute() +db.resourceDefinition.findOne({ id: '', select: { id: true } }).execute() +db.resourceDefinition.create({ data: { createdBy: '', updatedBy: '', namespaceId: '', kind: '', name: '', slug: '', description: '', defaultSpec: '', requiredSecrets: '', requiredConfigs: '', integrations: '', labels: '', annotations: '', stepUpMinAge: '', databaseId: '' }, select: { id: true } }).execute() +db.resourceDefinition.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute() +db.resourceDefinition.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all resourceDefinition records + +```typescript +const items = await db.resourceDefinition.findMany({ + select: { id: true, createdBy: true } +}).execute(); +``` + +### Create a resourceDefinition + +```typescript +const item = await db.resourceDefinition.create({ + data: { createdBy: '', updatedBy: '', namespaceId: '', kind: '', name: '', slug: '', description: '', defaultSpec: '', requiredSecrets: '', requiredConfigs: '', integrations: '', labels: '', annotations: '', stepUpMinAge: '', databaseId: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-compute/references/resource-status-check.md b/.agents/skills/orm-compute/references/resource-status-check.md new file mode 100644 index 0000000000..e777f38b9b --- /dev/null +++ b/.agents/skills/orm-compute/references/resource-status-check.md @@ -0,0 +1,34 @@ +# resourceStatusCheck + + + +On-demand resource status checks — diagnostic snapshots from the runtime (K8s status, conditions, log tails) + +## Usage + +```typescript +db.resourceStatusCheck.findMany({ select: { id: true } }).execute() +db.resourceStatusCheck.findOne({ id: '', select: { id: true } }).execute() +db.resourceStatusCheck.create({ data: { resourceId: '', databaseId: '', requestedBy: '', requestedAt: '', completedAt: '', status: '', result: '' }, select: { id: true } }).execute() +db.resourceStatusCheck.update({ where: { id: '' }, data: { resourceId: '' }, select: { id: true } }).execute() +db.resourceStatusCheck.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all resourceStatusCheck records + +```typescript +const items = await db.resourceStatusCheck.findMany({ + select: { id: true, resourceId: true } +}).execute(); +``` + +### Create a resourceStatusCheck + +```typescript +const item = await db.resourceStatusCheck.create({ + data: { resourceId: '', databaseId: '', requestedBy: '', requestedAt: '', completedAt: '', status: '', result: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-compute/references/resource.md b/.agents/skills/orm-compute/references/resource.md index 4a30da640a..bfe862713e 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: { createdBy: '', updatedBy: '', namespaceId: '', kind: '', name: '', slug: '', spec: '', status: '', statusObserved: '', lastError: '', errorCount: '', labels: '', annotations: '', databaseId: '' }, select: { id: true } }).execute() +db.resource.create({ data: { createdBy: '', updatedBy: '', namespaceId: '', kind: '', name: '', slug: '', spec: '', status: '', statusObserved: '', lastError: '', errorCount: '', labels: '', annotations: '', databaseId: '', requiredSecrets: '', requiredConfigs: '', integrations: '', resourceDefinitionId: '' }, select: { id: true } }).execute() db.resource.update({ where: { id: '' }, data: { createdBy: '' }, 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: { createdBy: '', updatedBy: '', namespaceId: '', kind: '', name: '', slug: '', spec: '', status: '', statusObserved: '', lastError: '', errorCount: '', labels: '', annotations: '', databaseId: '' }, + data: { createdBy: '', updatedBy: '', namespaceId: '', kind: '', name: '', slug: '', spec: '', status: '', statusObserved: '', lastError: '', errorCount: '', labels: '', annotations: '', databaseId: '', requiredSecrets: '', requiredConfigs: '', integrations: '', resourceDefinitionId: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-compute/references/resources-requirements-state.md b/.agents/skills/orm-compute/references/resources-requirements-state.md new file mode 100644 index 0000000000..080368a66d --- /dev/null +++ b/.agents/skills/orm-compute/references/resources-requirements-state.md @@ -0,0 +1,34 @@ +# resourcesRequirementsState + + + +ORM operations for ResourcesRequirementsState records + +## Usage + +```typescript +db.resourcesRequirementsState.findMany({ select: { id: true } }).execute() +db.resourcesRequirementsState.findOne({ id: '', select: { id: true } }).execute() +db.resourcesRequirementsState.create({ data: { resourceId: '', slug: '', secretsHash: '', configHash: '', requirementsHash: '', secretsObjectName: '', configObjectName: '' }, select: { id: true } }).execute() +db.resourcesRequirementsState.update({ where: { id: '' }, data: { resourceId: '' }, select: { id: true } }).execute() +db.resourcesRequirementsState.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all resourcesRequirementsState records + +```typescript +const items = await db.resourcesRequirementsState.findMany({ + select: { id: true, resourceId: true } +}).execute(); +``` + +### Create a resourcesRequirementsState + +```typescript +const item = await db.resourcesRequirementsState.create({ + data: { resourceId: '', slug: '', secretsHash: '', configHash: '', requirementsHash: '', secretsObjectName: '', configObjectName: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-compute/references/resources-resolved-requirement.md b/.agents/skills/orm-compute/references/resources-resolved-requirement.md new file mode 100644 index 0000000000..5551283d97 --- /dev/null +++ b/.agents/skills/orm-compute/references/resources-resolved-requirement.md @@ -0,0 +1,34 @@ +# resourcesResolvedRequirement + + + +ORM operations for ResourcesResolvedRequirement records + +## Usage + +```typescript +db.resourcesResolvedRequirement.findMany({ select: { id: true } }).execute() +db.resourcesResolvedRequirement.findOne({ id: '', select: { id: true } }).execute() +db.resourcesResolvedRequirement.create({ data: { resourceId: '', slug: '', namespaceId: '', requirementKind: '', name: '', required: '', atomId: '', present: '', secretsObjectName: '', configObjectName: '' }, select: { id: true } }).execute() +db.resourcesResolvedRequirement.update({ where: { id: '' }, data: { resourceId: '' }, select: { id: true } }).execute() +db.resourcesResolvedRequirement.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all resourcesResolvedRequirement records + +```typescript +const items = await db.resourcesResolvedRequirement.findMany({ + select: { id: true, resourceId: true } +}).execute(); +``` + +### Create a resourcesResolvedRequirement + +```typescript +const item = await db.resourcesResolvedRequirement.create({ + data: { resourceId: '', slug: '', namespaceId: '', requirementKind: '', name: '', required: '', atomId: '', present: '', secretsObjectName: '', configObjectName: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-config/SKILL.md b/.agents/skills/orm-config/SKILL.md index 69dd124d57..b960b52890 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 2 tables and 9 custom operations +description: ORM client for the config API — provides typed CRUD operations for 5 tables and 13 custom operations --- # orm-config -ORM client for the config API — provides typed CRUD operations for 2 tables and 9 custom operations +ORM client for the config API — provides typed CRUD operations for 5 tables and 13 custom operations ## Usage @@ -15,7 +15,7 @@ ORM client for the config API — provides typed CRUD operations for 2 tables an // Import the ORM client import { db } from './orm'; -// Available models: platformConfigDefinition, platformConfig +// Available models: platformConfig, config, platformInternalSecret, platformSecret, secret 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.platformConfigDefinition.findMany({ +const items = await db.platformConfig.findMany({ select: { id: true } }).execute(); ``` @@ -37,14 +37,21 @@ const items = await db.platformConfigDefinition.findMany({ See the `references/` directory for detailed per-entity API documentation: -- [platform-config-definition](references/platform-config-definition.md) - [platform-config](references/platform-config.md) +- [config](references/config.md) +- [platform-internal-secret](references/platform-internal-secret.md) +- [platform-secret](references/platform-secret.md) +- [secret](references/secret.md) +- [platform-internal-secrets-del](references/platform-internal-secrets-del.md) - [platform-secrets-del](references/platform-secrets-del.md) -- [org-secrets-del](references/org-secrets-del.md) +- [secrets-del](references/secrets-del.md) +- [platform-internal-secrets-remove-array](references/platform-internal-secrets-remove-array.md) - [platform-secrets-remove-array](references/platform-secrets-remove-array.md) -- [org-secrets-remove-array](references/org-secrets-remove-array.md) +- [secrets-remove-array](references/secrets-remove-array.md) +- [platform-internal-secrets-rotate](references/platform-internal-secrets-rotate.md) +- [platform-internal-secrets-set](references/platform-internal-secrets-set.md) - [platform-secrets-rotate](references/platform-secrets-rotate.md) +- [secrets-rotate](references/secrets-rotate.md) - [platform-secrets-set](references/platform-secrets-set.md) -- [org-secrets-rotate](references/org-secrets-rotate.md) -- [org-secrets-set](references/org-secrets-set.md) +- [secrets-set](references/secrets-set.md) - [provision-bucket](references/provision-bucket.md) diff --git a/.agents/skills/orm-config/references/config.md b/.agents/skills/orm-config/references/config.md new file mode 100644 index 0000000000..6be8888bdf --- /dev/null +++ b/.agents/skills/orm-config/references/config.md @@ -0,0 +1,34 @@ +# config + + + +Namespace-backed plaintext key-value config store (like a k8s ConfigMap); admin-only, fully CRUD-exposed + +## Usage + +```typescript +db.config.findMany({ select: { id: true } }).execute() +db.config.findOne({ id: '', select: { id: true } }).execute() +db.config.create({ data: { namespaceId: '', databaseId: '', name: '', provider: '', value: '', labels: '', annotations: '', description: '', expiresAt: '' }, select: { id: true } }).execute() +db.config.update({ where: { id: '' }, data: { namespaceId: '' }, select: { id: true } }).execute() +db.config.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all config records + +```typescript +const items = await db.config.findMany({ + select: { id: true, namespaceId: true } +}).execute(); +``` + +### Create a config + +```typescript +const item = await db.config.create({ + data: { namespaceId: '', databaseId: '', name: '', provider: '', value: '', labels: '', annotations: '', description: '', expiresAt: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-config/references/platform-config.md b/.agents/skills/orm-config/references/platform-config.md index 6223a3aa0b..86072a3304 100644 --- a/.agents/skills/orm-config/references/platform-config.md +++ b/.agents/skills/orm-config/references/platform-config.md @@ -2,14 +2,14 @@ -App-level plaintext key-value config store (like a k8s ConfigMap); admin-only, fully CRUD-exposed +Namespace-backed plaintext key-value config store (like a k8s ConfigMap); admin-only, fully CRUD-exposed ## Usage ```typescript db.platformConfig.findMany({ select: { id: true } }).execute() db.platformConfig.findOne({ id: '', select: { id: true } }).execute() -db.platformConfig.create({ data: { namespaceId: '', name: '', value: '', labels: '', annotations: '', description: '', expiresAt: '' }, select: { id: true } }).execute() +db.platformConfig.create({ data: { namespaceId: '', name: '', provider: '', value: '', labels: '', annotations: '', description: '', expiresAt: '' }, select: { id: true } }).execute() db.platformConfig.update({ where: { id: '' }, data: { namespaceId: '' }, 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: { namespaceId: '', name: '', value: '', labels: '', annotations: '', description: '', expiresAt: '' }, + data: { namespaceId: '', name: '', provider: '', value: '', labels: '', annotations: '', description: '', expiresAt: '' }, 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 new file mode 100644 index 0000000000..53679ddf36 --- /dev/null +++ b/.agents/skills/orm-config/references/platform-internal-secret.md @@ -0,0 +1,34 @@ +# platformInternalSecret + + + +ORM operations for PlatformInternalSecret records + +## Usage + +```typescript +db.platformInternalSecret.findMany({ select: { id: true } }).execute() +db.platformInternalSecret.findOne({ id: '', select: { id: true } }).execute() +db.platformInternalSecret.create({ data: { name: '', namespaceId: '', description: '', labels: '', annotations: '', rotatedAt: '', retiredAt: '' }, select: { id: true } }).execute() +db.platformInternalSecret.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() +db.platformInternalSecret.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all platformInternalSecret records + +```typescript +const items = await db.platformInternalSecret.findMany({ + select: { id: true, name: true } +}).execute(); +``` + +### Create a platformInternalSecret + +```typescript +const item = await db.platformInternalSecret.create({ + data: { name: '', namespaceId: '', description: '', labels: '', annotations: '', rotatedAt: '', retiredAt: '' }, + 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 new file mode 100644 index 0000000000..0316043efe --- /dev/null +++ b/.agents/skills/orm-config/references/platform-internal-secrets-del.md @@ -0,0 +1,19 @@ +# platformInternalSecretsDel + + + +Execute the platformInternalSecretsDel mutation + +## Usage + +```typescript +db.mutation.platformInternalSecretsDel({ input: { secretName: '', namespaceId: '' } }).execute() +``` + +## Examples + +### Run platformInternalSecretsDel + +```typescript +const result = await db.mutation.platformInternalSecretsDel({ input: { secretName: '', namespaceId: '' } }).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 new file mode 100644 index 0000000000..44547edd3a --- /dev/null +++ b/.agents/skills/orm-config/references/platform-internal-secrets-remove-array.md @@ -0,0 +1,19 @@ +# platformInternalSecretsRemoveArray + + + +Execute the platformInternalSecretsRemoveArray mutation + +## Usage + +```typescript +db.mutation.platformInternalSecretsRemoveArray({ input: { secretNames: '', namespaceId: '' } }).execute() +``` + +## Examples + +### Run platformInternalSecretsRemoveArray + +```typescript +const result = await db.mutation.platformInternalSecretsRemoveArray({ input: { secretNames: '', namespaceId: '' } }).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 new file mode 100644 index 0000000000..973fa17ab6 --- /dev/null +++ b/.agents/skills/orm-config/references/platform-internal-secrets-rotate.md @@ -0,0 +1,19 @@ +# platformInternalSecretsRotate + + + +Execute the platformInternalSecretsRotate mutation + +## Usage + +```typescript +db.mutation.platformInternalSecretsRotate({ input: { secretName: '', secretValue: '', namespaceId: '', algo: '' } }).execute() +``` + +## Examples + +### Run platformInternalSecretsRotate + +```typescript +const result = await db.mutation.platformInternalSecretsRotate({ input: { secretName: '', secretValue: '', namespaceId: '', algo: '' } }).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 new file mode 100644 index 0000000000..22ca4da54d --- /dev/null +++ b/.agents/skills/orm-config/references/platform-internal-secrets-set.md @@ -0,0 +1,19 @@ +# platformInternalSecretsSet + + + +Execute the platformInternalSecretsSet mutation + +## Usage + +```typescript +db.mutation.platformInternalSecretsSet({ input: { secretName: '', secretValue: '', secretNamespaceId: '', algo: '' } }).execute() +``` + +## Examples + +### Run platformInternalSecretsSet + +```typescript +const result = await db.mutation.platformInternalSecretsSet({ input: { secretName: '', secretValue: '', secretNamespaceId: '', algo: '' } }).execute(); +``` diff --git a/.agents/skills/orm-config/references/platform-secret.md b/.agents/skills/orm-config/references/platform-secret.md new file mode 100644 index 0000000000..4e07433010 --- /dev/null +++ b/.agents/skills/orm-config/references/platform-secret.md @@ -0,0 +1,34 @@ +# platformSecret + + + +ORM operations for PlatformSecret records + +## Usage + +```typescript +db.platformSecret.findMany({ select: { id: true } }).execute() +db.platformSecret.findOne({ id: '', select: { id: true } }).execute() +db.platformSecret.create({ data: { name: '', provider: '', namespaceId: '', description: '', labels: '', annotations: '', rotatedAt: '', retiredAt: '' }, select: { id: true } }).execute() +db.platformSecret.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() +db.platformSecret.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all platformSecret records + +```typescript +const items = await db.platformSecret.findMany({ + select: { id: true, name: true } +}).execute(); +``` + +### Create a platformSecret + +```typescript +const item = await db.platformSecret.create({ + data: { name: '', provider: '', namespaceId: '', description: '', labels: '', annotations: '', rotatedAt: '', retiredAt: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-config/references/platform-secrets-set.md b/.agents/skills/orm-config/references/platform-secrets-set.md index 0101e1cac4..4c5517b23e 100644 --- a/.agents/skills/orm-config/references/platform-secrets-set.md +++ b/.agents/skills/orm-config/references/platform-secrets-set.md @@ -7,7 +7,7 @@ Execute the platformSecretsSet mutation ## Usage ```typescript -db.mutation.platformSecretsSet({ input: { secretName: '', secretValue: '', secretNamespaceId: '', algo: '' } }).execute() +db.mutation.platformSecretsSet({ input: { secretName: '', secretValue: '', secretNamespaceId: '', algo: '', provider: '' } }).execute() ``` ## Examples @@ -15,5 +15,5 @@ db.mutation.platformSecretsSet({ input: { secretName: '', secretValue: ' ### Run platformSecretsSet ```typescript -const result = await db.mutation.platformSecretsSet({ input: { secretName: '', secretValue: '', secretNamespaceId: '', algo: '' } }).execute(); +const result = await db.mutation.platformSecretsSet({ input: { secretName: '', secretValue: '', secretNamespaceId: '', algo: '', provider: '' } }).execute(); ``` diff --git a/.agents/skills/orm-config/references/secret.md b/.agents/skills/orm-config/references/secret.md new file mode 100644 index 0000000000..c984679b30 --- /dev/null +++ b/.agents/skills/orm-config/references/secret.md @@ -0,0 +1,34 @@ +# secret + + + +ORM operations for Secret records + +## Usage + +```typescript +db.secret.findMany({ select: { id: true } }).execute() +db.secret.findOne({ id: '', select: { id: true } }).execute() +db.secret.create({ data: { databaseId: '', name: '', provider: '', namespaceId: '', description: '', labels: '', annotations: '', rotatedAt: '', retiredAt: '' }, select: { id: true } }).execute() +db.secret.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.secret.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all secret records + +```typescript +const items = await db.secret.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a secret + +```typescript +const item = await db.secret.create({ + data: { databaseId: '', name: '', provider: '', namespaceId: '', description: '', labels: '', annotations: '', rotatedAt: '', retiredAt: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-config/references/secrets-del.md b/.agents/skills/orm-config/references/secrets-del.md new file mode 100644 index 0000000000..845eb6f425 --- /dev/null +++ b/.agents/skills/orm-config/references/secrets-del.md @@ -0,0 +1,19 @@ +# _secretsDel + + + +Execute the _secretsDel mutation + +## Usage + +```typescript +db.mutation._secretsDel({ input: { databaseId: '', secretName: '', namespaceId: '' } }).execute() +``` + +## Examples + +### Run _secretsDel + +```typescript +const result = await db.mutation._secretsDel({ input: { databaseId: '', secretName: '', namespaceId: '' } }).execute(); +``` diff --git a/.agents/skills/orm-config/references/secrets-remove-array.md b/.agents/skills/orm-config/references/secrets-remove-array.md new file mode 100644 index 0000000000..c88d1efa05 --- /dev/null +++ b/.agents/skills/orm-config/references/secrets-remove-array.md @@ -0,0 +1,19 @@ +# _secretsRemoveArray + + + +Execute the _secretsRemoveArray mutation + +## Usage + +```typescript +db.mutation._secretsRemoveArray({ input: { databaseId: '', secretNames: '', namespaceId: '' } }).execute() +``` + +## Examples + +### Run _secretsRemoveArray + +```typescript +const result = await db.mutation._secretsRemoveArray({ input: { databaseId: '', secretNames: '', namespaceId: '' } }).execute(); +``` diff --git a/.agents/skills/orm-config/references/secrets-rotate.md b/.agents/skills/orm-config/references/secrets-rotate.md new file mode 100644 index 0000000000..1da4029a5f --- /dev/null +++ b/.agents/skills/orm-config/references/secrets-rotate.md @@ -0,0 +1,19 @@ +# _secretsRotate + + + +Execute the _secretsRotate mutation + +## Usage + +```typescript +db.mutation._secretsRotate({ input: { databaseId: '', secretName: '', secretValue: '', namespaceId: '', algo: '' } }).execute() +``` + +## Examples + +### Run _secretsRotate + +```typescript +const result = await db.mutation._secretsRotate({ input: { databaseId: '', secretName: '', secretValue: '', namespaceId: '', algo: '' } }).execute(); +``` diff --git a/.agents/skills/orm-config/references/secrets-set.md b/.agents/skills/orm-config/references/secrets-set.md new file mode 100644 index 0000000000..379f858bef --- /dev/null +++ b/.agents/skills/orm-config/references/secrets-set.md @@ -0,0 +1,19 @@ +# _secretsSet + + + +Execute the _secretsSet mutation + +## Usage + +```typescript +db.mutation._secretsSet({ input: '<_SecretsSetInput>' }).execute() +``` + +## Examples + +### Run _secretsSet + +```typescript +const result = await db.mutation._secretsSet({ input: '<_SecretsSetInput>' }).execute(); +``` diff --git a/.agents/skills/orm-infra/SKILL.md b/.agents/skills/orm-infra/SKILL.md new file mode 100644 index 0000000000..9dbad36cf5 --- /dev/null +++ b/.agents/skills/orm-infra/SKILL.md @@ -0,0 +1,53 @@ +--- +name: orm-infra +description: ORM client for the infra API — provides typed CRUD operations for 10 tables and 4 custom operations +--- + +# orm-infra + + + +ORM client for the infra API — provides typed CRUD operations for 10 tables and 4 custom operations + +## Usage + +```typescript +// Import the ORM client +import { db } from './orm'; + +// Available models: infraGetAllRecord, infraRef, infraStore, infraObject, infraCommit, dbPreset, platformNamespace, namespace, ... +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.infraGetAllRecord.findMany({ + select: { id: true } +}).execute(); +``` + +## References + +See the `references/` directory for detailed per-entity API documentation: + +- [infra-get-all-record](references/infra-get-all-record.md) +- [infra-ref](references/infra-ref.md) +- [infra-store](references/infra-store.md) +- [infra-object](references/infra-object.md) +- [infra-commit](references/infra-commit.md) +- [db-preset](references/db-preset.md) +- [platform-namespace](references/platform-namespace.md) +- [namespace](references/namespace.md) +- [platform-namespace-event](references/platform-namespace-event.md) +- [namespace-event](references/namespace-event.md) +- [infra-init-empty-repo](references/infra-init-empty-repo.md) +- [infra-set-data-at-path](references/infra-set-data-at-path.md) +- [infra-insert-node-at-path](references/infra-insert-node-at-path.md) +- [provision-bucket](references/provision-bucket.md) diff --git a/.agents/skills/orm-infra/references/db-preset.md b/.agents/skills/orm-infra/references/db-preset.md new file mode 100644 index 0000000000..ec572de7a1 --- /dev/null +++ b/.agents/skills/orm-infra/references/db-preset.md @@ -0,0 +1,34 @@ +# dbPreset + + + +Database provisioning preset catalog — merkle-versioned head over the infra store + +## Usage + +```typescript +db.dbPreset.findMany({ select: { id: true } }).execute() +db.dbPreset.findOne({ id: '', select: { id: true } }).execute() +db.dbPreset.create({ data: { storeId: '', slug: '', definition: '', commitId: '', modulesHash: '', label: '', description: '', active: '' }, select: { id: true } }).execute() +db.dbPreset.update({ where: { id: '' }, data: { storeId: '' }, select: { id: true } }).execute() +db.dbPreset.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all dbPreset records + +```typescript +const items = await db.dbPreset.findMany({ + select: { id: true, storeId: true } +}).execute(); +``` + +### Create a dbPreset + +```typescript +const item = await db.dbPreset.create({ + data: { storeId: '', slug: '', definition: '', commitId: '', modulesHash: '', label: '', description: '', active: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-infra/references/infra-commit.md b/.agents/skills/orm-infra/references/infra-commit.md new file mode 100644 index 0000000000..53f180badb --- /dev/null +++ b/.agents/skills/orm-infra/references/infra-commit.md @@ -0,0 +1,34 @@ +# infraCommit + + + +Commit history — each commit snapshots a tree root for a store + +## Usage + +```typescript +db.infraCommit.findMany({ select: { id: true } }).execute() +db.infraCommit.findOne({ id: '', select: { id: true } }).execute() +db.infraCommit.create({ data: { message: '', scopeId: '', storeId: '', parentIds: '', authorId: '', committerId: '', treeId: '', date: '' }, select: { id: true } }).execute() +db.infraCommit.update({ where: { id: '' }, data: { message: '' }, select: { id: true } }).execute() +db.infraCommit.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all infraCommit records + +```typescript +const items = await db.infraCommit.findMany({ + select: { id: true, message: true } +}).execute(); +``` + +### Create a infraCommit + +```typescript +const item = await db.infraCommit.create({ + data: { message: '', scopeId: '', storeId: '', parentIds: '', authorId: '', committerId: '', treeId: '', date: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-infra/references/infra-get-all-record.md b/.agents/skills/orm-infra/references/infra-get-all-record.md new file mode 100644 index 0000000000..b12cfcba48 --- /dev/null +++ b/.agents/skills/orm-infra/references/infra-get-all-record.md @@ -0,0 +1,34 @@ +# infraGetAllRecord + + + +ORM operations for InfraGetAllRecord records + +## Usage + +```typescript +db.infraGetAllRecord.findMany({ select: { id: true } }).execute() +db.infraGetAllRecord.findOne({ id: '', select: { id: true } }).execute() +db.infraGetAllRecord.create({ data: { path: '', data: '' }, select: { id: true } }).execute() +db.infraGetAllRecord.update({ where: { id: '' }, data: { path: '' }, select: { id: true } }).execute() +db.infraGetAllRecord.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all infraGetAllRecord records + +```typescript +const items = await db.infraGetAllRecord.findMany({ + select: { id: true, path: true } +}).execute(); +``` + +### Create a infraGetAllRecord + +```typescript +const item = await db.infraGetAllRecord.create({ + data: { path: '', data: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-infra/references/infra-init-empty-repo.md b/.agents/skills/orm-infra/references/infra-init-empty-repo.md new file mode 100644 index 0000000000..fdacb51068 --- /dev/null +++ b/.agents/skills/orm-infra/references/infra-init-empty-repo.md @@ -0,0 +1,19 @@ +# infraInitEmptyRepo + + + +Execute the infraInitEmptyRepo mutation + +## Usage + +```typescript +db.mutation.infraInitEmptyRepo({ input: { sId: '', storeId: '' } }).execute() +``` + +## Examples + +### Run infraInitEmptyRepo + +```typescript +const result = await db.mutation.infraInitEmptyRepo({ input: { sId: '', storeId: '' } }).execute(); +``` diff --git a/.agents/skills/orm-infra/references/infra-insert-node-at-path.md b/.agents/skills/orm-infra/references/infra-insert-node-at-path.md new file mode 100644 index 0000000000..b9e0ae97db --- /dev/null +++ b/.agents/skills/orm-infra/references/infra-insert-node-at-path.md @@ -0,0 +1,19 @@ +# infraInsertNodeAtPath + + + +Execute the infraInsertNodeAtPath mutation + +## Usage + +```typescript +db.mutation.infraInsertNodeAtPath({ input: '' }).execute() +``` + +## Examples + +### Run infraInsertNodeAtPath + +```typescript +const result = await db.mutation.infraInsertNodeAtPath({ input: '' }).execute(); +``` diff --git a/.agents/skills/orm-infra/references/infra-object.md b/.agents/skills/orm-infra/references/infra-object.md new file mode 100644 index 0000000000..f70f16804f --- /dev/null +++ b/.agents/skills/orm-infra/references/infra-object.md @@ -0,0 +1,34 @@ +# infraObject + + + +Content-addressed Merkle tree objects keyed by UUID v5 hash of data + children + +## Usage + +```typescript +db.infraObject.findMany({ select: { id: true } }).execute() +db.infraObject.findOne({ id: '', select: { id: true } }).execute() +db.infraObject.create({ data: { scopeId: '', kids: '', ktree: '', data: '' }, select: { id: true } }).execute() +db.infraObject.update({ where: { id: '' }, data: { scopeId: '' }, select: { id: true } }).execute() +db.infraObject.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all infraObject records + +```typescript +const items = await db.infraObject.findMany({ + select: { id: true, scopeId: true } +}).execute(); +``` + +### Create a infraObject + +```typescript +const item = await db.infraObject.create({ + data: { scopeId: '', kids: '', ktree: '', data: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-infra/references/infra-ref.md b/.agents/skills/orm-infra/references/infra-ref.md new file mode 100644 index 0000000000..94a175b89d --- /dev/null +++ b/.agents/skills/orm-infra/references/infra-ref.md @@ -0,0 +1,34 @@ +# infraRef + + + +Branch heads — mutable pointers into the commit chain + +## Usage + +```typescript +db.infraRef.findMany({ select: { id: true } }).execute() +db.infraRef.findOne({ id: '', select: { id: true } }).execute() +db.infraRef.create({ data: { name: '', scopeId: '', storeId: '', commitId: '' }, select: { id: true } }).execute() +db.infraRef.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() +db.infraRef.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all infraRef records + +```typescript +const items = await db.infraRef.findMany({ + select: { id: true, name: true } +}).execute(); +``` + +### Create a infraRef + +```typescript +const item = await db.infraRef.create({ + data: { name: '', scopeId: '', storeId: '', commitId: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-infra/references/infra-set-data-at-path.md b/.agents/skills/orm-infra/references/infra-set-data-at-path.md new file mode 100644 index 0000000000..d663360449 --- /dev/null +++ b/.agents/skills/orm-infra/references/infra-set-data-at-path.md @@ -0,0 +1,19 @@ +# infraSetDataAtPath + + + +Execute the infraSetDataAtPath mutation + +## Usage + +```typescript +db.mutation.infraSetDataAtPath({ input: { sId: '', root: '', path: '', data: '' } }).execute() +``` + +## Examples + +### Run infraSetDataAtPath + +```typescript +const result = await db.mutation.infraSetDataAtPath({ input: { sId: '', root: '', path: '', data: '' } }).execute(); +``` diff --git a/.agents/skills/orm-infra/references/infra-store.md b/.agents/skills/orm-infra/references/infra-store.md new file mode 100644 index 0000000000..9b79d1c935 --- /dev/null +++ b/.agents/skills/orm-infra/references/infra-store.md @@ -0,0 +1,34 @@ +# infraStore + + + +Named stores — one per version-controlled tree (e.g. one graph, one definition set) + +## Usage + +```typescript +db.infraStore.findMany({ select: { id: true } }).execute() +db.infraStore.findOne({ id: '', select: { id: true } }).execute() +db.infraStore.create({ data: { name: '', scopeId: '', hash: '' }, select: { id: true } }).execute() +db.infraStore.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() +db.infraStore.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all infraStore records + +```typescript +const items = await db.infraStore.findMany({ + select: { id: true, name: true } +}).execute(); +``` + +### Create a infraStore + +```typescript +const item = await db.infraStore.create({ + data: { name: '', scopeId: '', hash: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-infra/references/namespace-event.md b/.agents/skills/orm-infra/references/namespace-event.md new file mode 100644 index 0000000000..e6448d948e --- /dev/null +++ b/.agents/skills/orm-infra/references/namespace-event.md @@ -0,0 +1,34 @@ +# namespaceEvent + + + +Namespace lifecycle events — audit log of creation, activation, deactivation, label changes + +## Usage + +```typescript +db.namespaceEvent.findMany({ select: { id: true } }).execute() +db.namespaceEvent.findOne({ id: '', select: { id: true } }).execute() +db.namespaceEvent.create({ data: { namespaceId: '', eventType: '', actorId: '', message: '', metadata: '', cpuMillicores: '', memoryBytes: '', storageBytes: '', networkIngressBytes: '', networkEgressBytes: '', podCount: '', metrics: '', databaseId: '' }, select: { id: true } }).execute() +db.namespaceEvent.update({ where: { id: '' }, data: { namespaceId: '' }, select: { id: true } }).execute() +db.namespaceEvent.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all namespaceEvent records + +```typescript +const items = await db.namespaceEvent.findMany({ + select: { id: true, namespaceId: true } +}).execute(); +``` + +### Create a namespaceEvent + +```typescript +const item = await db.namespaceEvent.create({ + data: { namespaceId: '', eventType: '', actorId: '', message: '', metadata: '', cpuMillicores: '', memoryBytes: '', storageBytes: '', networkIngressBytes: '', networkEgressBytes: '', podCount: '', metrics: '', databaseId: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-infra/references/namespace.md b/.agents/skills/orm-infra/references/namespace.md new file mode 100644 index 0000000000..5839a3d5e7 --- /dev/null +++ b/.agents/skills/orm-infra/references/namespace.md @@ -0,0 +1,34 @@ +# namespace + + + +Logical namespace containers for grouping secrets, config, functions, and other resources + +## Usage + +```typescript +db.namespace.findMany({ select: { id: true } }).execute() +db.namespace.findOne({ id: '', select: { id: true } }).execute() +db.namespace.create({ data: { name: '', namespaceName: '', description: '', isActive: '', status: '', lastError: '', labels: '', annotations: '', databaseId: '', isManaged: '' }, select: { id: true } }).execute() +db.namespace.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() +db.namespace.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all namespace records + +```typescript +const items = await db.namespace.findMany({ + select: { id: true, name: true } +}).execute(); +``` + +### Create a namespace + +```typescript +const item = await db.namespace.create({ + data: { name: '', namespaceName: '', description: '', isActive: '', status: '', lastError: '', labels: '', annotations: '', databaseId: '', isManaged: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-infra/references/platform-namespace-event.md b/.agents/skills/orm-infra/references/platform-namespace-event.md new file mode 100644 index 0000000000..9c1e139634 --- /dev/null +++ b/.agents/skills/orm-infra/references/platform-namespace-event.md @@ -0,0 +1,34 @@ +# platformNamespaceEvent + + + +Namespace lifecycle events — audit log of creation, activation, deactivation, label changes + +## Usage + +```typescript +db.platformNamespaceEvent.findMany({ select: { id: true } }).execute() +db.platformNamespaceEvent.findOne({ id: '', select: { id: true } }).execute() +db.platformNamespaceEvent.create({ data: { namespaceId: '', eventType: '', actorId: '', message: '', metadata: '', cpuMillicores: '', memoryBytes: '', storageBytes: '', networkIngressBytes: '', networkEgressBytes: '', podCount: '', metrics: '' }, select: { id: true } }).execute() +db.platformNamespaceEvent.update({ where: { id: '' }, data: { namespaceId: '' }, select: { id: true } }).execute() +db.platformNamespaceEvent.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all platformNamespaceEvent records + +```typescript +const items = await db.platformNamespaceEvent.findMany({ + select: { id: true, namespaceId: true } +}).execute(); +``` + +### Create a platformNamespaceEvent + +```typescript +const item = await db.platformNamespaceEvent.create({ + data: { namespaceId: '', eventType: '', actorId: '', message: '', metadata: '', cpuMillicores: '', memoryBytes: '', storageBytes: '', networkIngressBytes: '', networkEgressBytes: '', podCount: '', metrics: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-infra/references/platform-namespace.md b/.agents/skills/orm-infra/references/platform-namespace.md new file mode 100644 index 0000000000..6156483403 --- /dev/null +++ b/.agents/skills/orm-infra/references/platform-namespace.md @@ -0,0 +1,34 @@ +# platformNamespace + + + +Logical namespace containers for grouping secrets, config, functions, and other resources + +## Usage + +```typescript +db.platformNamespace.findMany({ select: { id: true } }).execute() +db.platformNamespace.findOne({ id: '', select: { id: true } }).execute() +db.platformNamespace.create({ data: { name: '', namespaceName: '', description: '', isActive: '', status: '', lastError: '', labels: '', annotations: '', isManaged: '' }, select: { id: true } }).execute() +db.platformNamespace.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() +db.platformNamespace.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all platformNamespace records + +```typescript +const items = await db.platformNamespace.findMany({ + select: { id: true, name: true } +}).execute(); +``` + +### Create a platformNamespace + +```typescript +const item = await db.platformNamespace.create({ + data: { name: '', namespaceName: '', description: '', isActive: '', status: '', lastError: '', labels: '', annotations: '', isManaged: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-infra/references/provision-bucket.md b/.agents/skills/orm-infra/references/provision-bucket.md new file mode 100644 index 0000000000..a9133530f2 --- /dev/null +++ b/.agents/skills/orm-infra/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-modules/SKILL.md b/.agents/skills/orm-modules/SKILL.md index 73ddcd709b..850f878f20 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 61 tables and 12 custom operations +description: ORM client for the modules API — provides typed CRUD operations for 66 tables and 12 custom operations --- # orm-modules -ORM client for the modules API — provides typed CRUD operations for 61 tables and 12 custom operations +ORM client for the modules API — provides typed CRUD operations for 66 tables and 12 custom operations ## Usage @@ -15,7 +15,7 @@ ORM client for the modules API — provides typed CRUD operations for 61 tables // Import the ORM client import { db } from './orm'; -// Available models: defaultIdsModule, membershipTypesModule, userStateModule, sessionSecretsModule, configSecretsOrgModule, devicesModule, i18NModule, userCredentialsModule, ... +// Available models: defaultIdsModule, membershipTypesModule, sessionSecretsModule, devicesModule, i18NModule, userSettingsModule, userStateModule, userCredentialsModule, ... db..findMany({ select: { id: true } }).execute() db..findOne({ id: '', select: { id: true } }).execute() db..create({ data: { ... }, select: { id: true } }).execute() @@ -39,23 +39,21 @@ See the `references/` directory for detailed per-entity API documentation: - [default-ids-module](references/default-ids-module.md) - [membership-types-module](references/membership-types-module.md) -- [user-state-module](references/user-state-module.md) - [session-secrets-module](references/session-secrets-module.md) -- [config-secrets-org-module](references/config-secrets-org-module.md) - [devices-module](references/devices-module.md) - [i-18-n-module](references/i-18-n-module.md) -- [user-credentials-module](references/user-credentials-module.md) - [user-settings-module](references/user-settings-module.md) -- [config-secrets-user-module](references/config-secrets-user-module.md) +- [user-state-module](references/user-state-module.md) +- [user-credentials-module](references/user-credentials-module.md) - [connected-accounts-module](references/connected-accounts-module.md) - [emails-module](references/emails-module.md) - [phone-numbers-module](references/phone-numbers-module.md) - [rate-limits-module](references/rate-limits-module.md) - [users-module](references/users-module.md) - [webauthn-credentials-module](references/webauthn-credentials-module.md) +- [config-secrets-user-module](references/config-secrets-user-module.md) - [crypto-addresses-module](references/crypto-addresses-module.md) - [denormalized-table-field](references/denormalized-table-field.md) -- [identity-providers-module](references/identity-providers-module.md) - [rls-module](references/rls-module.md) - [blueprint](references/blueprint.md) - [blueprint-template](references/blueprint-template.md) @@ -63,40 +61,47 @@ See the `references/` directory for detailed per-entity API documentation: - [crypto-auth-module](references/crypto-auth-module.md) - [sessions-module](references/sessions-module.md) - [secure-table-provision](references/secure-table-provision.md) -- [database-provision-module](references/database-provision-module.md) -- [config-secrets-module](references/config-secrets-module.md) +- [identity-providers-module](references/identity-providers-module.md) +- [integration-providers-module](references/integration-providers-module.md) +- [db-pool-config](references/db-pool-config.md) +- [realtime-module](references/realtime-module.md) +- [infra-secrets-module](references/infra-secrets-module.md) +- [internal-secrets-module](references/internal-secrets-module.md) +- [db-preset-module](references/db-preset-module.md) - [graph-module](references/graph-module.md) -- [merkle-store-module](references/merkle-store-module.md) - [rate-limit-meters-module](references/rate-limit-meters-module.md) -- [realtime-module](references/realtime-module.md) +- [infra-config-module](references/infra-config-module.md) - [webauthn-auth-module](references/webauthn-auth-module.md) -- [function-invocation-module](references/function-invocation-module.md) +- [principal-auth-module](references/principal-auth-module.md) +- [db-pool](references/db-pool.md) - [function-module](references/function-module.md) +- [merkle-store-module](references/merkle-store-module.md) +- [database-provision-module](references/database-provision-module.md) +- [function-invocation-module](references/function-invocation-module.md) - [invites-module](references/invites-module.md) -- [principal-auth-module](references/principal-auth-module.md) +- [namespace-module](references/namespace-module.md) +- [plans-module](references/plans-module.md) - [compute-log-module](references/compute-log-module.md) - [inference-log-module](references/inference-log-module.md) -- [namespace-module](references/namespace-module.md) -- [resource-module](references/resource-module.md) - [storage-log-module](references/storage-log-module.md) - [transfer-log-module](references/transfer-log-module.md) -- [function-deployment-module](references/function-deployment-module.md) -- [plans-module](references/plans-module.md) - [billing-provider-module](references/billing-provider-module.md) -- [db-usage-module](references/db-usage-module.md) +- [function-deployment-module](references/function-deployment-module.md) +- [permissions-module](references/permissions-module.md) - [graph-execution-module](references/graph-execution-module.md) - [hierarchy-module](references/hierarchy-module.md) -- [permissions-module](references/permissions-module.md) - [notifications-module](references/notifications-module.md) +- [relation-provision](references/relation-provision.md) - [profiles-module](references/profiles-module.md) - [billing-module](references/billing-module.md) -- [relation-provision](references/relation-provision.md) +- [resource-module](references/resource-module.md) - [user-auth-module](references/user-auth-module.md) +- [db-usage-module](references/db-usage-module.md) - [agent-module](references/agent-module.md) - [limits-module](references/limits-module.md) -- [memberships-module](references/memberships-module.md) - [entity-type-provision](references/entity-type-provision.md) - [storage-module](references/storage-module.md) +- [memberships-module](references/memberships-module.md) - [events-module](references/events-module.md) - [resolve-blueprint-field](references/resolve-blueprint-field.md) - [resolve-blueprint-table](references/resolve-blueprint-table.md) diff --git a/.agents/skills/orm-modules/references/agent-module.md b/.agents/skills/orm-modules/references/agent-module.md index ce3e15aaf9..f2a082ddde 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: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', threadTableId: '', messageTableId: '', taskTableId: '', promptsTableId: '', planTableId: '', agentTableId: '', personaTableId: '', resourceTableId: '', threadTableName: '', messageTableName: '', taskTableName: '', promptsTableName: '', planTableName: '', agentTableName: '', personaTableName: '', resourceTableName: '', hasPlans: '', hasResources: '', hasAgents: '', shared: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '', policies: '', resources: '', provisions: '', defaultPermissions: '' }, select: { id: true } }).execute() +db.agentModule.create({ data: { databaseId: '', entityField: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', threadTableId: '', messageTableId: '', taskTableId: '', promptsTableId: '', planTableId: '', agentTableId: '', personaTableId: '', resourceTableId: '', threadTableName: '', messageTableName: '', taskTableName: '', promptsTableName: '', planTableName: '', agentTableName: '', personaTableName: '', resourceTableName: '', hasPlans: '', hasResources: '', hasAgents: '', shared: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '', policies: '', resources: '', provisions: '', defaultPermissions: '' }, select: { id: true } }).execute() db.agentModule.update({ where: { id: '' }, data: { databaseId: '' }, 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: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', threadTableId: '', messageTableId: '', taskTableId: '', promptsTableId: '', planTableId: '', agentTableId: '', personaTableId: '', resourceTableId: '', threadTableName: '', messageTableName: '', taskTableName: '', promptsTableName: '', planTableName: '', agentTableName: '', personaTableName: '', resourceTableName: '', hasPlans: '', hasResources: '', hasAgents: '', shared: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '', policies: '', resources: '', provisions: '', defaultPermissions: '' }, + data: { databaseId: '', entityField: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', threadTableId: '', messageTableId: '', taskTableId: '', promptsTableId: '', planTableId: '', agentTableId: '', personaTableId: '', resourceTableId: '', threadTableName: '', messageTableName: '', taskTableName: '', promptsTableName: '', planTableName: '', agentTableName: '', personaTableName: '', resourceTableName: '', hasPlans: '', hasResources: '', hasAgents: '', shared: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '', policies: '', resources: '', provisions: '', defaultPermissions: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-modules/references/billing-module.md b/.agents/skills/orm-modules/references/billing-module.md index 523505ca8d..4fab3eb2b9 100644 --- a/.agents/skills/orm-modules/references/billing-module.md +++ b/.agents/skills/orm-modules/references/billing-module.md @@ -9,7 +9,7 @@ ORM operations for BillingModule records ```typescript db.billingModule.findMany({ select: { id: true } }).execute() db.billingModule.findOne({ id: '', select: { id: true } }).execute() -db.billingModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', metersTableId: '', metersTableName: '', planSubscriptionsTableId: '', planSubscriptionsTableName: '', ledgerTableId: '', ledgerTableName: '', balancesTableId: '', balancesTableName: '', meterCreditsTableId: '', meterCreditsTableName: '', meterSourcesTableId: '', meterSourcesTableName: '', meterDefaultsTableId: '', meterDefaultsTableName: '', recordUsageFunction: '', prefix: '', defaultPermissions: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute() +db.billingModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', metersTableId: '', metersTableName: '', planSubscriptionsTableId: '', planSubscriptionsTableName: '', ledgerTableId: '', ledgerTableName: '', balancesTableId: '', balancesTableName: '', meterCreditsTableId: '', meterCreditsTableName: '', meterSourcesTableId: '', meterSourcesTableName: '', meterDefaultsTableId: '', meterDefaultsTableName: '', recordUsageFunction: '', sweepExpiredSubscriptionsFunction: '', rollupUsageSummaryFunction: '', prefix: '', defaultPermissions: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute() db.billingModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() db.billingModule.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.billingModule.findMany({ ```typescript const item = await db.billingModule.create({ - data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', metersTableId: '', metersTableName: '', planSubscriptionsTableId: '', planSubscriptionsTableName: '', ledgerTableId: '', ledgerTableName: '', balancesTableId: '', balancesTableName: '', meterCreditsTableId: '', meterCreditsTableName: '', meterSourcesTableId: '', meterSourcesTableName: '', meterDefaultsTableId: '', meterDefaultsTableName: '', recordUsageFunction: '', prefix: '', defaultPermissions: '', apiName: '', privateApiName: '' }, + data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', metersTableId: '', metersTableName: '', planSubscriptionsTableId: '', planSubscriptionsTableName: '', ledgerTableId: '', ledgerTableName: '', balancesTableId: '', balancesTableName: '', meterCreditsTableId: '', meterCreditsTableName: '', meterSourcesTableId: '', meterSourcesTableName: '', meterDefaultsTableId: '', meterDefaultsTableName: '', recordUsageFunction: '', sweepExpiredSubscriptionsFunction: '', rollupUsageSummaryFunction: '', prefix: '', defaultPermissions: '', apiName: '', privateApiName: '' }, 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 9336f96614..0f4e2ac6cb 100644 --- a/.agents/skills/orm-modules/references/compute-log-module.md +++ b/.agents/skills/orm-modules/references/compute-log-module.md @@ -9,7 +9,7 @@ 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: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', computeLogTableId: '', computeLogTableName: '', usageDailyTableId: '', usageDailyTableName: '', interval: '', retention: '', premake: '', scope: '', actorFkTableId: '', entityFkTableId: '', prefix: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute() +db.computeLogModule.create({ data: { databaseId: '', entityField: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', computeLogTableId: '', computeLogTableName: '', usageDailyTableId: '', usageDailyTableName: '', interval: '', retention: '', premake: '', scope: '', actorFkTableId: '', entityFkTableId: '', prefix: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute() db.computeLogModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() db.computeLogModule.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.computeLogModule.findMany({ ```typescript const item = await db.computeLogModule.create({ - data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', computeLogTableId: '', computeLogTableName: '', usageDailyTableId: '', usageDailyTableName: '', interval: '', retention: '', premake: '', scope: '', actorFkTableId: '', entityFkTableId: '', prefix: '', apiName: '', privateApiName: '' }, + data: { databaseId: '', entityField: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', computeLogTableId: '', computeLogTableName: '', usageDailyTableId: '', usageDailyTableName: '', interval: '', retention: '', premake: '', scope: '', actorFkTableId: '', entityFkTableId: '', prefix: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-modules/references/config-secrets-user-module.md b/.agents/skills/orm-modules/references/config-secrets-user-module.md index 7cdf8bcebb..2cdb66217b 100644 --- a/.agents/skills/orm-modules/references/config-secrets-user-module.md +++ b/.agents/skills/orm-modules/references/config-secrets-user-module.md @@ -9,7 +9,7 @@ ORM operations for ConfigSecretsUserModule records ```typescript db.configSecretsUserModule.findMany({ select: { id: true } }).execute() db.configSecretsUserModule.findOne({ id: '', select: { id: true } }).execute() -db.configSecretsUserModule.create({ data: { databaseId: '', schemaId: '', tableId: '', tableName: '', configDefinitionsTableId: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute() +db.configSecretsUserModule.create({ data: { databaseId: '', entityField: '', schemaId: '', tableId: '', tableName: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute() db.configSecretsUserModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() db.configSecretsUserModule.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.configSecretsUserModule.findMany({ ```typescript const item = await db.configSecretsUserModule.create({ - data: { databaseId: '', schemaId: '', tableId: '', tableName: '', configDefinitionsTableId: '', apiName: '', privateApiName: '' }, + data: { databaseId: '', entityField: '', schemaId: '', tableId: '', tableName: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-modules/references/database-provision-module.md b/.agents/skills/orm-modules/references/database-provision-module.md index 223b584a49..19983252cc 100644 --- a/.agents/skills/orm-modules/references/database-provision-module.md +++ b/.agents/skills/orm-modules/references/database-provision-module.md @@ -9,7 +9,7 @@ Tracks database provisioning requests and their status. The BEFORE INSERT trigge ```typescript db.databaseProvisionModule.findMany({ select: { id: true } }).execute() db.databaseProvisionModule.findOne({ id: '', select: { id: true } }).execute() -db.databaseProvisionModule.create({ data: { databaseName: '', ownerId: '', subdomain: '', domain: '', modules: '', options: '', bootstrapUser: '', status: '', errorMessage: '', databaseId: '', completedAt: '' }, select: { id: true } }).execute() +db.databaseProvisionModule.create({ data: { databaseName: '', ownerId: '', subdomain: '', domain: '', modules: '', options: '', bootstrapUser: '', status: '', errorMessage: '', sourceDatabaseId: '', bootstrapStatus: '', bootstrapError: '', databaseId: '', completedAt: '', fulfilledAt: '' }, select: { id: true } }).execute() db.databaseProvisionModule.update({ where: { id: '' }, data: { databaseName: '' }, select: { id: true } }).execute() db.databaseProvisionModule.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.databaseProvisionModule.findMany({ ```typescript const item = await db.databaseProvisionModule.create({ - data: { databaseName: '', ownerId: '', subdomain: '', domain: '', modules: '', options: '', bootstrapUser: '', status: '', errorMessage: '', databaseId: '', completedAt: '' }, + data: { databaseName: '', ownerId: '', subdomain: '', domain: '', modules: '', options: '', bootstrapUser: '', status: '', errorMessage: '', sourceDatabaseId: '', bootstrapStatus: '', bootstrapError: '', databaseId: '', completedAt: '', fulfilledAt: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-modules/references/db-pool-config.md b/.agents/skills/orm-modules/references/db-pool-config.md new file mode 100644 index 0000000000..6be4991b3a --- /dev/null +++ b/.agents/skills/orm-modules/references/db-pool-config.md @@ -0,0 +1,34 @@ +# dbPoolConfig + + + +Per-preset configuration for the warm database pool: sizing, TTL, and the platform service org that owns unclaimed warm databases. + +## Usage + +```typescript +db.dbPoolConfig.findMany({ select: { id: true } }).execute() +db.dbPoolConfig.findOne({ id: '', select: { id: true } }).execute() +db.dbPoolConfig.create({ data: { presetSlug: '', domain: '', poolOwnerId: '', min: '', max: '', warmTtl: '', enabled: '' }, select: { id: true } }).execute() +db.dbPoolConfig.update({ where: { id: '' }, data: { presetSlug: '' }, select: { id: true } }).execute() +db.dbPoolConfig.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all dbPoolConfig records + +```typescript +const items = await db.dbPoolConfig.findMany({ + select: { id: true, presetSlug: true } +}).execute(); +``` + +### Create a dbPoolConfig + +```typescript +const item = await db.dbPoolConfig.create({ + data: { presetSlug: '', domain: '', poolOwnerId: '', min: '', max: '', warmTtl: '', enabled: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-modules/references/db-pool.md b/.agents/skills/orm-modules/references/db-pool.md new file mode 100644 index 0000000000..5ecca7dbc3 --- /dev/null +++ b/.agents/skills/orm-modules/references/db-pool.md @@ -0,0 +1,34 @@ +# dbPool + + + +Warm database pool entries. Rows are inserted as warming (which enqueues a db_pool:warm_database job), become ready once provisioned, and are handed to users via metaschema_private.db_pool_claim (invoked by metaschema_public.request_database). + +## Usage + +```typescript +db.dbPool.findMany({ select: { id: true } }).execute() +db.dbPool.findOne({ id: '', select: { id: true } }).execute() +db.dbPool.create({ data: { presetSlug: '', presetCommitId: '', databaseId: '', status: '', errorMessage: '', expiresAt: '', claimedBy: '', claimedAt: '', bootstrapStatus: '', bootstrapError: '' }, select: { id: true } }).execute() +db.dbPool.update({ where: { id: '' }, data: { presetSlug: '' }, select: { id: true } }).execute() +db.dbPool.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all dbPool records + +```typescript +const items = await db.dbPool.findMany({ + select: { id: true, presetSlug: true } +}).execute(); +``` + +### Create a dbPool + +```typescript +const item = await db.dbPool.create({ + data: { presetSlug: '', presetCommitId: '', databaseId: '', status: '', errorMessage: '', expiresAt: '', claimedBy: '', claimedAt: '', bootstrapStatus: '', bootstrapError: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-modules/references/db-preset-module.md b/.agents/skills/orm-modules/references/db-preset-module.md new file mode 100644 index 0000000000..79aa3265b3 --- /dev/null +++ b/.agents/skills/orm-modules/references/db-preset-module.md @@ -0,0 +1,34 @@ +# dbPresetModule + + + +ORM operations for DbPresetModule records + +## Usage + +```typescript +db.dbPresetModule.findMany({ select: { id: true } }).execute() +db.dbPresetModule.findOne({ id: '', select: { id: true } }).execute() +db.dbPresetModule.create({ data: { databaseId: '', publicSchemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', scope: '', prefix: '', merkleStoreModuleId: '', dbPresetsTableId: '', storeName: '', apiName: '', privateApiName: '', entityTableId: '', policies: '', provisions: '' }, select: { id: true } }).execute() +db.dbPresetModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.dbPresetModule.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all dbPresetModule records + +```typescript +const items = await db.dbPresetModule.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a dbPresetModule + +```typescript +const item = await db.dbPresetModule.create({ + data: { databaseId: '', publicSchemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', scope: '', prefix: '', merkleStoreModuleId: '', dbPresetsTableId: '', storeName: '', apiName: '', privateApiName: '', entityTableId: '', policies: '', provisions: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-modules/references/db-usage-module.md b/.agents/skills/orm-modules/references/db-usage-module.md index 1d9a5b06dd..071027dc18 100644 --- a/.agents/skills/orm-modules/references/db-usage-module.md +++ b/.agents/skills/orm-modules/references/db-usage-module.md @@ -9,7 +9,7 @@ ORM operations for DbUsageModule records ```typescript db.dbUsageModule.findMany({ select: { id: true } }).execute() db.dbUsageModule.findOne({ id: '', select: { id: true } }).execute() -db.dbUsageModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', tableStatsLogTableId: '', tableStatsLogTableName: '', tableStatsDailyTableId: '', tableStatsDailyTableName: '', queryStatsLogTableId: '', queryStatsLogTableName: '', queryStatsDailyTableId: '', queryStatsDailyTableName: '', interval: '', retention: '', premake: '', scope: '', prefix: '', defaultPermissions: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute() +db.dbUsageModule.create({ data: { databaseId: '', entityField: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', tableStatsLogTableId: '', tableStatsLogTableName: '', tableStatsDailyTableId: '', tableStatsDailyTableName: '', queryStatsLogTableId: '', queryStatsLogTableName: '', queryStatsDailyTableId: '', queryStatsDailyTableName: '', collectDbTableStatsFunction: '', collectDbQueryStatsFunction: '', rollupDbTableStatsDailyFunction: '', rollupDbQueryStatsDailyFunction: '', interval: '', retention: '', premake: '', scope: '', prefix: '', defaultPermissions: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute() db.dbUsageModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() db.dbUsageModule.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.dbUsageModule.findMany({ ```typescript const item = await db.dbUsageModule.create({ - data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', tableStatsLogTableId: '', tableStatsLogTableName: '', tableStatsDailyTableId: '', tableStatsDailyTableName: '', queryStatsLogTableId: '', queryStatsLogTableName: '', queryStatsDailyTableId: '', queryStatsDailyTableName: '', interval: '', retention: '', premake: '', scope: '', prefix: '', defaultPermissions: '', apiName: '', privateApiName: '' }, + data: { databaseId: '', entityField: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', tableStatsLogTableId: '', tableStatsLogTableName: '', tableStatsDailyTableId: '', tableStatsDailyTableName: '', queryStatsLogTableId: '', queryStatsLogTableName: '', queryStatsDailyTableId: '', queryStatsDailyTableName: '', collectDbTableStatsFunction: '', collectDbQueryStatsFunction: '', rollupDbTableStatsDailyFunction: '', rollupDbQueryStatsDailyFunction: '', interval: '', retention: '', premake: '', scope: '', prefix: '', defaultPermissions: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-modules/references/entity-type-provision.md b/.agents/skills/orm-modules/references/entity-type-provision.md index 9d8c8736f9..f4f22d0b4e 100644 --- a/.agents/skills/orm-modules/references/entity-type-provision.md +++ b/.agents/skills/orm-modules/references/entity-type-provision.md @@ -16,7 +16,7 @@ Provisions a new membership entity type. Each INSERT creates an entity table, re ```typescript db.entityTypeProvision.findMany({ select: { id: true } }).execute() db.entityTypeProvision.findOne({ id: '', select: { id: true } }).execute() -db.entityTypeProvision.create({ data: { databaseId: '', name: '', prefix: '', description: '', parentEntity: '', tableName: '', isVisible: '', hasLimits: '', hasProfiles: '', hasLevels: '', hasInvites: '', hasInviteAchievements: '', storage: '', namespaces: '', functions: '', graphs: '', agents: '', skipEntityPolicies: '', tableProvision: '', outMembershipType: '', outEntityTableId: '', outEntityTableName: '', outInstalledModules: '', outStorageModuleId: '', outBucketsTableId: '', outFilesTableId: '', outPathSharesTableId: '', outInvitesModuleId: '', outNamespaceModuleId: '', outNamespacesTableId: '', outNamespaceEventsTableId: '', outFunctionModuleId: '', outDefinitionsTableId: '', outInvocationsTableId: '', outExecutionLogsTableId: '', outSecretDefinitionsTableId: '', outGraphModuleId: '', outGraphsTableId: '', outAgentModuleId: '' }, select: { id: true } }).execute() +db.entityTypeProvision.create({ data: { databaseId: '', name: '', prefix: '', description: '', parentEntity: '', tableName: '', isVisible: '', hasLimits: '', hasProfiles: '', hasLevels: '', hasInvites: '', hasInviteAchievements: '', storage: '', namespaces: '', functions: '', graphs: '', agents: '', skipEntityPolicies: '', tableProvision: '', outMembershipType: '', outEntityTableId: '', outEntityTableName: '', outInstalledModules: '', outStorageModuleId: '', outBucketsTableId: '', outFilesTableId: '', outPathSharesTableId: '', outInvitesModuleId: '', outNamespaceModuleId: '', outNamespacesTableId: '', outNamespaceEventsTableId: '', outFunctionModuleId: '', outDefinitionsTableId: '', outInvocationsTableId: '', outExecutionLogsTableId: '', outGraphModuleId: '', outGraphsTableId: '', outAgentModuleId: '' }, select: { id: true } }).execute() db.entityTypeProvision.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() db.entityTypeProvision.delete({ where: { id: '' } }).execute() ``` @@ -35,7 +35,7 @@ const items = await db.entityTypeProvision.findMany({ ```typescript const item = await db.entityTypeProvision.create({ - data: { databaseId: '', name: '', prefix: '', description: '', parentEntity: '', tableName: '', isVisible: '', hasLimits: '', hasProfiles: '', hasLevels: '', hasInvites: '', hasInviteAchievements: '', storage: '', namespaces: '', functions: '', graphs: '', agents: '', skipEntityPolicies: '', tableProvision: '', outMembershipType: '', outEntityTableId: '', outEntityTableName: '', outInstalledModules: '', outStorageModuleId: '', outBucketsTableId: '', outFilesTableId: '', outPathSharesTableId: '', outInvitesModuleId: '', outNamespaceModuleId: '', outNamespacesTableId: '', outNamespaceEventsTableId: '', outFunctionModuleId: '', outDefinitionsTableId: '', outInvocationsTableId: '', outExecutionLogsTableId: '', outSecretDefinitionsTableId: '', outGraphModuleId: '', outGraphsTableId: '', outAgentModuleId: '' }, + data: { databaseId: '', name: '', prefix: '', description: '', parentEntity: '', tableName: '', isVisible: '', hasLimits: '', hasProfiles: '', hasLevels: '', hasInvites: '', hasInviteAchievements: '', storage: '', namespaces: '', functions: '', graphs: '', agents: '', skipEntityPolicies: '', tableProvision: '', outMembershipType: '', outEntityTableId: '', outEntityTableName: '', outInstalledModules: '', outStorageModuleId: '', outBucketsTableId: '', outFilesTableId: '', outPathSharesTableId: '', outInvitesModuleId: '', outNamespaceModuleId: '', outNamespacesTableId: '', outNamespaceEventsTableId: '', outFunctionModuleId: '', outDefinitionsTableId: '', outInvocationsTableId: '', outExecutionLogsTableId: '', outGraphModuleId: '', outGraphsTableId: '', outAgentModuleId: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-modules/references/events-module.md b/.agents/skills/orm-modules/references/events-module.md index cdc1d51b6f..05332b5d01 100644 --- a/.agents/skills/orm-modules/references/events-module.md +++ b/.agents/skills/orm-modules/references/events-module.md @@ -9,7 +9,7 @@ ORM operations for EventsModule records ```typescript db.eventsModule.findMany({ select: { id: true } }).execute() db.eventsModule.findOne({ id: '', select: { id: true } }).execute() -db.eventsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', eventsTableId: '', eventsTableName: '', eventAggregatesTableId: '', eventAggregatesTableName: '', eventTypesTableId: '', eventTypesTableName: '', levelsTableId: '', levelsTableName: '', levelRequirementsTableId: '', levelRequirementsTableName: '', levelGrantsTableId: '', levelGrantsTableName: '', achievementRewardsTableId: '', achievementRewardsTableName: '', recordEvent: '', removeEvent: '', tgEvent: '', tgEventToggle: '', tgEventToggleBool: '', tgEventBool: '', upsertAggregate: '', tgUpdateAggregates: '', pruneEvents: '', stepsRequired: '', levelAchieved: '', tgCheckAchievements: '', grantAchievement: '', tgAchievementReward: '', interval: '', retention: '', premake: '', scope: '', prefix: '', entityTableId: '', actorTableId: '', defaultPermissions: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute() +db.eventsModule.create({ data: { databaseId: '', entityField: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', eventsTableId: '', eventsTableName: '', eventAggregatesTableId: '', eventAggregatesTableName: '', eventTypesTableId: '', eventTypesTableName: '', levelsTableId: '', levelsTableName: '', levelRequirementsTableId: '', levelRequirementsTableName: '', levelGrantsTableId: '', levelGrantsTableName: '', achievementRewardsTableId: '', achievementRewardsTableName: '', recordEvent: '', removeEvent: '', tgEvent: '', tgEventToggle: '', tgEventToggleBool: '', tgEventBool: '', upsertAggregate: '', tgUpdateAggregates: '', stepsRequired: '', levelAchieved: '', tgCheckAchievements: '', grantAchievement: '', tgAchievementReward: '', interval: '', retention: '', premake: '', scope: '', prefix: '', entityTableId: '', actorTableId: '', defaultPermissions: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute() db.eventsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() db.eventsModule.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.eventsModule.findMany({ ```typescript const item = await db.eventsModule.create({ - data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', eventsTableId: '', eventsTableName: '', eventAggregatesTableId: '', eventAggregatesTableName: '', eventTypesTableId: '', eventTypesTableName: '', levelsTableId: '', levelsTableName: '', levelRequirementsTableId: '', levelRequirementsTableName: '', levelGrantsTableId: '', levelGrantsTableName: '', achievementRewardsTableId: '', achievementRewardsTableName: '', recordEvent: '', removeEvent: '', tgEvent: '', tgEventToggle: '', tgEventToggleBool: '', tgEventBool: '', upsertAggregate: '', tgUpdateAggregates: '', pruneEvents: '', stepsRequired: '', levelAchieved: '', tgCheckAchievements: '', grantAchievement: '', tgAchievementReward: '', interval: '', retention: '', premake: '', scope: '', prefix: '', entityTableId: '', actorTableId: '', defaultPermissions: '', apiName: '', privateApiName: '' }, + data: { databaseId: '', entityField: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', eventsTableId: '', eventsTableName: '', eventAggregatesTableId: '', eventAggregatesTableName: '', eventTypesTableId: '', eventTypesTableName: '', levelsTableId: '', levelsTableName: '', levelRequirementsTableId: '', levelRequirementsTableName: '', levelGrantsTableId: '', levelGrantsTableName: '', achievementRewardsTableId: '', achievementRewardsTableName: '', recordEvent: '', removeEvent: '', tgEvent: '', tgEventToggle: '', tgEventToggleBool: '', tgEventBool: '', upsertAggregate: '', tgUpdateAggregates: '', stepsRequired: '', levelAchieved: '', tgCheckAchievements: '', grantAchievement: '', tgAchievementReward: '', interval: '', retention: '', premake: '', scope: '', prefix: '', entityTableId: '', actorTableId: '', defaultPermissions: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-modules/references/function-deployment-module.md b/.agents/skills/orm-modules/references/function-deployment-module.md index 3c5faa82de..85cf806a35 100644 --- a/.agents/skills/orm-modules/references/function-deployment-module.md +++ b/.agents/skills/orm-modules/references/function-deployment-module.md @@ -9,7 +9,7 @@ ORM operations for FunctionDeploymentModule records ```typescript db.functionDeploymentModule.findMany({ select: { id: true } }).execute() db.functionDeploymentModule.findOne({ id: '', select: { id: true } }).execute() -db.functionDeploymentModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', deploymentsTableId: '', deploymentEventsTableId: '', deploymentsTableName: '', deploymentEventsTableName: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '', functionModuleId: '', namespaceModuleId: '', policies: '', provisions: '', defaultPermissions: '' }, select: { id: true } }).execute() +db.functionDeploymentModule.create({ data: { databaseId: '', entityField: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', deploymentsTableId: '', deploymentEventsTableId: '', deploymentsTableName: '', deploymentEventsTableName: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '', functionModuleId: '', namespaceModuleId: '', policies: '', provisions: '', defaultPermissions: '' }, select: { id: true } }).execute() db.functionDeploymentModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() db.functionDeploymentModule.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.functionDeploymentModule.findMany({ ```typescript const item = await db.functionDeploymentModule.create({ - data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', deploymentsTableId: '', deploymentEventsTableId: '', deploymentsTableName: '', deploymentEventsTableName: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '', functionModuleId: '', namespaceModuleId: '', policies: '', provisions: '', defaultPermissions: '' }, + data: { databaseId: '', entityField: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', deploymentsTableId: '', deploymentEventsTableId: '', deploymentsTableName: '', deploymentEventsTableName: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '', functionModuleId: '', namespaceModuleId: '', policies: '', provisions: '', defaultPermissions: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-modules/references/function-invocation-module.md b/.agents/skills/orm-modules/references/function-invocation-module.md index a1f66f7ac7..20d0812529 100644 --- a/.agents/skills/orm-modules/references/function-invocation-module.md +++ b/.agents/skills/orm-modules/references/function-invocation-module.md @@ -9,7 +9,7 @@ ORM operations for FunctionInvocationModule records ```typescript db.functionInvocationModule.findMany({ select: { id: true } }).execute() db.functionInvocationModule.findOne({ id: '', select: { id: true } }).execute() -db.functionInvocationModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', invocationsTableId: '', executionLogsTableId: '', invocationsTableName: '', executionLogsTableName: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '', policies: '', provisions: '', defaultPermissions: '' }, select: { id: true } }).execute() +db.functionInvocationModule.create({ data: { databaseId: '', entityField: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', invocationsTableId: '', executionLogsTableId: '', invocationsTableName: '', executionLogsTableName: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '', policies: '', provisions: '', defaultPermissions: '' }, select: { id: true } }).execute() db.functionInvocationModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() db.functionInvocationModule.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.functionInvocationModule.findMany({ ```typescript const item = await db.functionInvocationModule.create({ - data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', invocationsTableId: '', executionLogsTableId: '', invocationsTableName: '', executionLogsTableName: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '', policies: '', provisions: '', defaultPermissions: '' }, + data: { databaseId: '', entityField: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', invocationsTableId: '', executionLogsTableId: '', invocationsTableName: '', executionLogsTableName: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '', policies: '', provisions: '', defaultPermissions: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-modules/references/function-module.md b/.agents/skills/orm-modules/references/function-module.md index 997fe736ef..b9d0601df4 100644 --- a/.agents/skills/orm-modules/references/function-module.md +++ b/.agents/skills/orm-modules/references/function-module.md @@ -9,7 +9,7 @@ ORM operations for FunctionModule records ```typescript db.functionModule.findMany({ select: { id: true } }).execute() db.functionModule.findOne({ id: '', select: { id: true } }).execute() -db.functionModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', definitionsTableId: '', secretDefinitionsTableId: '', definitionsTableName: '', secretDefinitionsTableName: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '', policies: '', provisions: '', defaultPermissions: '' }, select: { id: true } }).execute() +db.functionModule.create({ data: { databaseId: '', entityField: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', definitionsTableId: '', definitionsTableName: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '', policies: '', provisions: '', defaultPermissions: '' }, select: { id: true } }).execute() db.functionModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() db.functionModule.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.functionModule.findMany({ ```typescript const item = await db.functionModule.create({ - data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', definitionsTableId: '', secretDefinitionsTableId: '', definitionsTableName: '', secretDefinitionsTableName: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '', policies: '', provisions: '', defaultPermissions: '' }, + data: { databaseId: '', entityField: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', definitionsTableId: '', definitionsTableName: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '', policies: '', provisions: '', defaultPermissions: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-modules/references/graph-execution-module.md b/.agents/skills/orm-modules/references/graph-execution-module.md index 94b24f988d..0ef827188f 100644 --- a/.agents/skills/orm-modules/references/graph-execution-module.md +++ b/.agents/skills/orm-modules/references/graph-execution-module.md @@ -9,7 +9,7 @@ ORM operations for GraphExecutionModule records ```typescript db.graphExecutionModule.findMany({ select: { id: true } }).execute() db.graphExecutionModule.findOne({ id: '', select: { id: true } }).execute() -db.graphExecutionModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', graphModuleId: '', scope: '', prefix: '', executionsTableId: '', outputsTableId: '', nodeStatesTableId: '', executionsTableName: '', outputsTableName: '', nodeStatesTableName: '', apiName: '', privateApiName: '', entityTableId: '', policies: '', provisions: '', defaultPermissions: '' }, select: { id: true } }).execute() +db.graphExecutionModule.create({ data: { databaseId: '', entityField: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', graphModuleId: '', scope: '', prefix: '', executionsTableId: '', outputsTableId: '', nodeStatesTableId: '', executionsTableName: '', outputsTableName: '', nodeStatesTableName: '', apiName: '', privateApiName: '', entityTableId: '', policies: '', provisions: '', defaultPermissions: '' }, select: { id: true } }).execute() db.graphExecutionModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() db.graphExecutionModule.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.graphExecutionModule.findMany({ ```typescript const item = await db.graphExecutionModule.create({ - data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', graphModuleId: '', scope: '', prefix: '', executionsTableId: '', outputsTableId: '', nodeStatesTableId: '', executionsTableName: '', outputsTableName: '', nodeStatesTableName: '', apiName: '', privateApiName: '', entityTableId: '', policies: '', provisions: '', defaultPermissions: '' }, + data: { databaseId: '', entityField: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', graphModuleId: '', scope: '', prefix: '', executionsTableId: '', outputsTableId: '', nodeStatesTableId: '', executionsTableName: '', outputsTableName: '', nodeStatesTableName: '', apiName: '', privateApiName: '', entityTableId: '', policies: '', provisions: '', defaultPermissions: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-modules/references/graph-module.md b/.agents/skills/orm-modules/references/graph-module.md index 2bdd14385e..491f8a5562 100644 --- a/.agents/skills/orm-modules/references/graph-module.md +++ b/.agents/skills/orm-modules/references/graph-module.md @@ -9,7 +9,7 @@ ORM operations for GraphModule records ```typescript db.graphModule.findMany({ select: { id: true } }).execute() db.graphModule.findOne({ id: '', select: { id: true } }).execute() -db.graphModule.create({ data: { databaseId: '', publicSchemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', scope: '', prefix: '', merkleStoreModuleId: '', graphsTableId: '', apiName: '', privateApiName: '', entityTableId: '', policies: '', provisions: '', defaultPermissions: '' }, select: { id: true } }).execute() +db.graphModule.create({ data: { databaseId: '', entityField: '', publicSchemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', scope: '', prefix: '', merkleStoreModuleId: '', graphsTableId: '', apiName: '', privateApiName: '', entityTableId: '', policies: '', provisions: '', defaultPermissions: '' }, select: { id: true } }).execute() db.graphModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() db.graphModule.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.graphModule.findMany({ ```typescript const item = await db.graphModule.create({ - data: { databaseId: '', publicSchemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', scope: '', prefix: '', merkleStoreModuleId: '', graphsTableId: '', apiName: '', privateApiName: '', entityTableId: '', policies: '', provisions: '', defaultPermissions: '' }, + data: { databaseId: '', entityField: '', publicSchemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', scope: '', prefix: '', merkleStoreModuleId: '', graphsTableId: '', apiName: '', privateApiName: '', entityTableId: '', policies: '', provisions: '', defaultPermissions: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-modules/references/hierarchy-module.md b/.agents/skills/orm-modules/references/hierarchy-module.md index c87a016fb0..2cd1a3bc3c 100644 --- a/.agents/skills/orm-modules/references/hierarchy-module.md +++ b/.agents/skills/orm-modules/references/hierarchy-module.md @@ -9,7 +9,7 @@ ORM operations for HierarchyModule records ```typescript db.hierarchyModule.findMany({ select: { id: true } }).execute() db.hierarchyModule.findOne({ id: '', select: { id: true } }).execute() -db.hierarchyModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', chartEdgesTableId: '', chartEdgesTableName: '', hierarchySprtTableId: '', hierarchySprtTableName: '', chartEdgeGrantsTableId: '', chartEdgeGrantsTableName: '', entityTableId: '', usersTableId: '', scope: '', prefix: '', privateSchemaName: '', sprtTableName: '', rebuildHierarchyFunction: '', getSubordinatesFunction: '', getManagersFunction: '', isManagerOfFunction: '', defaultPermissions: '' }, select: { id: true } }).execute() +db.hierarchyModule.create({ data: { databaseId: '', entityField: '', schemaId: '', privateSchemaId: '', chartEdgesTableId: '', chartEdgesTableName: '', hierarchySprtTableId: '', hierarchySprtTableName: '', chartEdgeGrantsTableId: '', chartEdgeGrantsTableName: '', entityTableId: '', usersTableId: '', scope: '', prefix: '', privateSchemaName: '', sprtTableName: '', rebuildHierarchyFunction: '', getSubordinatesFunction: '', getManagersFunction: '', isManagerOfFunction: '', defaultPermissions: '' }, select: { id: true } }).execute() db.hierarchyModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() db.hierarchyModule.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.hierarchyModule.findMany({ ```typescript const item = await db.hierarchyModule.create({ - data: { databaseId: '', schemaId: '', privateSchemaId: '', chartEdgesTableId: '', chartEdgesTableName: '', hierarchySprtTableId: '', hierarchySprtTableName: '', chartEdgeGrantsTableId: '', chartEdgeGrantsTableName: '', entityTableId: '', usersTableId: '', scope: '', prefix: '', privateSchemaName: '', sprtTableName: '', rebuildHierarchyFunction: '', getSubordinatesFunction: '', getManagersFunction: '', isManagerOfFunction: '', defaultPermissions: '' }, + data: { databaseId: '', entityField: '', schemaId: '', privateSchemaId: '', chartEdgesTableId: '', chartEdgesTableName: '', hierarchySprtTableId: '', hierarchySprtTableName: '', chartEdgeGrantsTableId: '', chartEdgeGrantsTableName: '', entityTableId: '', usersTableId: '', scope: '', prefix: '', privateSchemaName: '', sprtTableName: '', rebuildHierarchyFunction: '', getSubordinatesFunction: '', getManagersFunction: '', isManagerOfFunction: '', defaultPermissions: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-modules/references/identity-providers-module.md b/.agents/skills/orm-modules/references/identity-providers-module.md index 03aa875482..041c258aef 100644 --- a/.agents/skills/orm-modules/references/identity-providers-module.md +++ b/.agents/skills/orm-modules/references/identity-providers-module.md @@ -4,21 +4,20 @@ Entity-aware config row for the identity_providers_module, which provisions a per-database identity_providers table holding OAuth2 / OIDC (and future SAML) provider definitions. - The scope column determines which config_secrets_module table the rotate proc targets - (app_secrets for app scope, org_secrets for org scope). When scope = platform, - the secrets table gets a database_id column and platform-level RLS via - AuthzRelatedEntityMembership through database.owner_id. + The scope column determines which internal_secrets_module table the rotate proc targets + (app_secrets for app scope, platform_secrets for platform scope). When scope = database, + the secrets table gets a database_id column. Scoping matrix: scope=app → per-database flat, in-app admin manages - scope=platform → per-database, platform admin manages (generate:constructive) - scope=org → per-org tenant, org admin manages + scope=platform → platform-wide, platform admin manages (generate:constructive) + scope=database → per-database infra, carries database_id ## Usage ```typescript db.identityProvidersModule.findMany({ select: { id: true } }).execute() db.identityProvidersModule.findOne({ id: '', select: { id: true } }).execute() -db.identityProvidersModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', tableId: '', tableName: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '' }, select: { id: true } }).execute() +db.identityProvidersModule.create({ data: { databaseId: '', entityField: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', tableId: '', tableName: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '' }, select: { id: true } }).execute() db.identityProvidersModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() db.identityProvidersModule.delete({ where: { id: '' } }).execute() ``` @@ -37,7 +36,7 @@ const items = await db.identityProvidersModule.findMany({ ```typescript const item = await db.identityProvidersModule.create({ - data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', tableId: '', tableName: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '' }, + data: { databaseId: '', entityField: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', tableId: '', tableName: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '' }, 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 2906f034f0..32e4522042 100644 --- a/.agents/skills/orm-modules/references/inference-log-module.md +++ b/.agents/skills/orm-modules/references/inference-log-module.md @@ -9,7 +9,7 @@ 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: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', inferenceLogTableId: '', inferenceLogTableName: '', usageDailyTableId: '', usageDailyTableName: '', interval: '', retention: '', premake: '', scope: '', actorFkTableId: '', entityFkTableId: '', prefix: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute() +db.inferenceLogModule.create({ data: { databaseId: '', entityField: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', inferenceLogTableId: '', inferenceLogTableName: '', usageDailyTableId: '', usageDailyTableName: '', interval: '', retention: '', premake: '', scope: '', actorFkTableId: '', entityFkTableId: '', prefix: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute() db.inferenceLogModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() db.inferenceLogModule.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.inferenceLogModule.findMany({ ```typescript const item = await db.inferenceLogModule.create({ - data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', inferenceLogTableId: '', inferenceLogTableName: '', usageDailyTableId: '', usageDailyTableName: '', interval: '', retention: '', premake: '', scope: '', actorFkTableId: '', entityFkTableId: '', prefix: '', apiName: '', privateApiName: '' }, + data: { databaseId: '', entityField: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', inferenceLogTableId: '', inferenceLogTableName: '', usageDailyTableId: '', usageDailyTableName: '', interval: '', retention: '', premake: '', scope: '', actorFkTableId: '', entityFkTableId: '', prefix: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-modules/references/infra-config-module.md b/.agents/skills/orm-modules/references/infra-config-module.md new file mode 100644 index 0000000000..21cbcfc0e9 --- /dev/null +++ b/.agents/skills/orm-modules/references/infra-config-module.md @@ -0,0 +1,34 @@ +# infraConfigModule + + + +Namespace-backed plaintext key-value config module. Requires namespace_module and emits namespace:sync_config job triggers for K8s ConfigMap synchronization. + +## Usage + +```typescript +db.infraConfigModule.findMany({ select: { id: true } }).execute() +db.infraConfigModule.findOne({ id: '', select: { id: true } }).execute() +db.infraConfigModule.create({ data: { databaseId: '', entityField: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', configTableId: '', configTableName: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '', policies: '', provisions: '' }, select: { id: true } }).execute() +db.infraConfigModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.infraConfigModule.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all infraConfigModule records + +```typescript +const items = await db.infraConfigModule.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a infraConfigModule + +```typescript +const item = await db.infraConfigModule.create({ + data: { databaseId: '', entityField: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', configTableId: '', configTableName: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '', policies: '', provisions: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-modules/references/infra-secrets-module.md b/.agents/skills/orm-modules/references/infra-secrets-module.md new file mode 100644 index 0000000000..4400ade064 --- /dev/null +++ b/.agents/skills/orm-modules/references/infra-secrets-module.md @@ -0,0 +1,34 @@ +# infraSecretsModule + + + +Namespace-backed PGP-encrypted key-value secrets module. Requires namespace_module and emits namespace:sync_secrets job triggers for K8s Secret synchronization. + +## Usage + +```typescript +db.infraSecretsModule.findMany({ select: { id: true } }).execute() +db.infraSecretsModule.findOne({ id: '', select: { id: true } }).execute() +db.infraSecretsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', secretsTableId: '', secretsTableName: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '', entityField: '', policies: '', provisions: '' }, select: { id: true } }).execute() +db.infraSecretsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.infraSecretsModule.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all infraSecretsModule records + +```typescript +const items = await db.infraSecretsModule.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a infraSecretsModule + +```typescript +const item = await db.infraSecretsModule.create({ + data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', secretsTableId: '', secretsTableName: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '', entityField: '', policies: '', provisions: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-modules/references/integration-providers-module.md b/.agents/skills/orm-modules/references/integration-providers-module.md new file mode 100644 index 0000000000..106ebf1092 --- /dev/null +++ b/.agents/skills/orm-modules/references/integration-providers-module.md @@ -0,0 +1,38 @@ +# integrationProvidersModule + + + +Config row for the integration_providers_module, which provisions a per-database + integration_providers table holding branded, reusable service definitions. + 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. + +## Usage + +```typescript +db.integrationProvidersModule.findMany({ select: { id: true } }).execute() +db.integrationProvidersModule.findOne({ id: '', select: { id: true } }).execute() +db.integrationProvidersModule.create({ data: { databaseId: '', entityField: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', tableId: '', tableName: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '' }, select: { id: true } }).execute() +db.integrationProvidersModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.integrationProvidersModule.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all integrationProvidersModule records + +```typescript +const items = await db.integrationProvidersModule.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a integrationProvidersModule + +```typescript +const item = await db.integrationProvidersModule.create({ + data: { databaseId: '', entityField: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', tableId: '', tableName: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-modules/references/internal-secrets-module.md b/.agents/skills/orm-modules/references/internal-secrets-module.md new file mode 100644 index 0000000000..c95de4853b --- /dev/null +++ b/.agents/skills/orm-modules/references/internal-secrets-module.md @@ -0,0 +1,34 @@ +# internalSecretsModule + + + +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. + +## Usage + +```typescript +db.internalSecretsModule.findMany({ select: { id: true } }).execute() +db.internalSecretsModule.findOne({ id: '', select: { id: true } }).execute() +db.internalSecretsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', internalSecretsTableId: '', internalSecretsTableName: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '', entityField: '', policies: '', provisions: '' }, select: { id: true } }).execute() +db.internalSecretsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.internalSecretsModule.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all internalSecretsModule records + +```typescript +const items = await db.internalSecretsModule.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a internalSecretsModule + +```typescript +const item = await db.internalSecretsModule.create({ + data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', internalSecretsTableId: '', internalSecretsTableName: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '', entityField: '', policies: '', provisions: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-modules/references/invites-module.md b/.agents/skills/orm-modules/references/invites-module.md index 405401d640..70c62271c5 100644 --- a/.agents/skills/orm-modules/references/invites-module.md +++ b/.agents/skills/orm-modules/references/invites-module.md @@ -9,7 +9,7 @@ ORM operations for InvitesModule records ```typescript db.invitesModule.findMany({ select: { id: true } }).execute() db.invitesModule.findOne({ id: '', select: { id: true } }).execute() -db.invitesModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', emailsTableId: '', usersTableId: '', invitesTableId: '', claimedInvitesTableId: '', invitesTableName: '', claimedInvitesTableName: '', submitInviteCodeFunction: '', scope: '', prefix: '', entityTableId: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute() +db.invitesModule.create({ data: { databaseId: '', entityField: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', emailsTableId: '', usersTableId: '', invitesTableId: '', claimedInvitesTableId: '', invitesTableName: '', claimedInvitesTableName: '', submitInviteCodeFunction: '', scope: '', prefix: '', entityTableId: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute() db.invitesModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() db.invitesModule.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.invitesModule.findMany({ ```typescript const item = await db.invitesModule.create({ - data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', emailsTableId: '', usersTableId: '', invitesTableId: '', claimedInvitesTableId: '', invitesTableName: '', claimedInvitesTableName: '', submitInviteCodeFunction: '', scope: '', prefix: '', entityTableId: '', apiName: '', privateApiName: '' }, + data: { databaseId: '', entityField: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', emailsTableId: '', usersTableId: '', invitesTableId: '', claimedInvitesTableId: '', invitesTableName: '', claimedInvitesTableName: '', submitInviteCodeFunction: '', scope: '', prefix: '', entityTableId: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-modules/references/limits-module.md b/.agents/skills/orm-modules/references/limits-module.md index 917b193b4e..a906b263ba 100644 --- a/.agents/skills/orm-modules/references/limits-module.md +++ b/.agents/skills/orm-modules/references/limits-module.md @@ -9,7 +9,7 @@ ORM operations for LimitsModule records ```typescript db.limitsModule.findMany({ select: { id: true } }).execute() db.limitsModule.findOne({ id: '', select: { id: true } }).execute() -db.limitsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', tableId: '', tableName: '', defaultTableId: '', defaultTableName: '', limitIncrementFunction: '', limitDecrementFunction: '', limitIncrementTrigger: '', limitDecrementTrigger: '', limitUpdateTrigger: '', limitCheckFunction: '', limitCreditsTableId: '', eventsTableId: '', creditCodesTableId: '', creditCodeItemsTableId: '', creditRedemptionsTableId: '', aggregateTableId: '', limitCapsTableId: '', limitCapsDefaultsTableId: '', capCheckTrigger: '', resolveCapFunction: '', limitWarningsTableId: '', limitWarningStateTableId: '', limitCheckSoftFunction: '', limitAggregateCheckSoftFunction: '', scope: '', prefix: '', entityTableId: '', actorTableId: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute() +db.limitsModule.create({ data: { databaseId: '', entityField: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', tableId: '', tableName: '', defaultTableId: '', defaultTableName: '', limitIncrementFunction: '', limitDecrementFunction: '', limitIncrementTrigger: '', limitDecrementTrigger: '', limitUpdateTrigger: '', limitCheckFunction: '', limitCreditsTableId: '', eventsTableId: '', creditCodesTableId: '', creditCodeItemsTableId: '', creditRedemptionsTableId: '', aggregateTableId: '', limitCapsTableId: '', limitCapsDefaultsTableId: '', capCheckTrigger: '', resolveCapFunction: '', limitWarningsTableId: '', limitWarningStateTableId: '', limitCheckSoftFunction: '', limitAggregateCheckSoftFunction: '', scope: '', prefix: '', entityTableId: '', actorTableId: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute() db.limitsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() db.limitsModule.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.limitsModule.findMany({ ```typescript const item = await db.limitsModule.create({ - data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', tableId: '', tableName: '', defaultTableId: '', defaultTableName: '', limitIncrementFunction: '', limitDecrementFunction: '', limitIncrementTrigger: '', limitDecrementTrigger: '', limitUpdateTrigger: '', limitCheckFunction: '', limitCreditsTableId: '', eventsTableId: '', creditCodesTableId: '', creditCodeItemsTableId: '', creditRedemptionsTableId: '', aggregateTableId: '', limitCapsTableId: '', limitCapsDefaultsTableId: '', capCheckTrigger: '', resolveCapFunction: '', limitWarningsTableId: '', limitWarningStateTableId: '', limitCheckSoftFunction: '', limitAggregateCheckSoftFunction: '', scope: '', prefix: '', entityTableId: '', actorTableId: '', apiName: '', privateApiName: '' }, + data: { databaseId: '', entityField: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', tableId: '', tableName: '', defaultTableId: '', defaultTableName: '', limitIncrementFunction: '', limitDecrementFunction: '', limitIncrementTrigger: '', limitDecrementTrigger: '', limitUpdateTrigger: '', limitCheckFunction: '', limitCreditsTableId: '', eventsTableId: '', creditCodesTableId: '', creditCodeItemsTableId: '', creditRedemptionsTableId: '', aggregateTableId: '', limitCapsTableId: '', limitCapsDefaultsTableId: '', capCheckTrigger: '', resolveCapFunction: '', limitWarningsTableId: '', limitWarningStateTableId: '', limitCheckSoftFunction: '', limitAggregateCheckSoftFunction: '', scope: '', prefix: '', entityTableId: '', actorTableId: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-modules/references/memberships-module.md b/.agents/skills/orm-modules/references/memberships-module.md index d2111d9a01..6c43952f20 100644 --- a/.agents/skills/orm-modules/references/memberships-module.md +++ b/.agents/skills/orm-modules/references/memberships-module.md @@ -9,7 +9,7 @@ ORM operations for MembershipsModule records ```typescript db.membershipsModule.findMany({ select: { id: true } }).execute() db.membershipsModule.findOne({ id: '', select: { id: true } }).execute() -db.membershipsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', membershipsTableId: '', membershipsTableName: '', membersTableId: '', membersTableName: '', membershipDefaultsTableId: '', membershipDefaultsTableName: '', membershipSettingsTableId: '', membershipSettingsTableName: '', grantsTableId: '', grantsTableName: '', actorTableId: '', limitsTableId: '', defaultLimitsTableId: '', permissionsTableId: '', defaultPermissionsTableId: '', sprtTableId: '', adminGrantsTableId: '', adminGrantsTableName: '', ownerGrantsTableId: '', ownerGrantsTableName: '', scope: '', prefix: '', entityTableId: '', entityTableOwnerId: '', getOrgFn: '', actorMaskCheck: '', actorPermCheck: '', entityIdsByMask: '', entityIdsByPerm: '', entityIdsFunction: '', memberProfilesTableId: '', permissionDefaultPermissionsTableId: '', permissionDefaultGrantsTableId: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute() +db.membershipsModule.create({ data: { databaseId: '', entityField: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', membershipsTableId: '', membershipsTableName: '', membersTableId: '', membersTableName: '', membershipDefaultsTableId: '', membershipDefaultsTableName: '', membershipSettingsTableId: '', membershipSettingsTableName: '', grantsTableId: '', grantsTableName: '', actorTableId: '', limitsTableId: '', defaultLimitsTableId: '', permissionsTableId: '', defaultPermissionsTableId: '', sprtTableId: '', adminGrantsTableId: '', adminGrantsTableName: '', ownerGrantsTableId: '', ownerGrantsTableName: '', scope: '', prefix: '', entityTableId: '', entityTableOwnerId: '', getOrgFn: '', actorMaskCheck: '', actorPermCheck: '', entityIdsByMask: '', entityIdsByPerm: '', entityIdsFunction: '', memberProfilesTableId: '', permissionDefaultPermissionsTableId: '', permissionDefaultGrantsTableId: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute() db.membershipsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() db.membershipsModule.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.membershipsModule.findMany({ ```typescript const item = await db.membershipsModule.create({ - data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', membershipsTableId: '', membershipsTableName: '', membersTableId: '', membersTableName: '', membershipDefaultsTableId: '', membershipDefaultsTableName: '', membershipSettingsTableId: '', membershipSettingsTableName: '', grantsTableId: '', grantsTableName: '', actorTableId: '', limitsTableId: '', defaultLimitsTableId: '', permissionsTableId: '', defaultPermissionsTableId: '', sprtTableId: '', adminGrantsTableId: '', adminGrantsTableName: '', ownerGrantsTableId: '', ownerGrantsTableName: '', scope: '', prefix: '', entityTableId: '', entityTableOwnerId: '', getOrgFn: '', actorMaskCheck: '', actorPermCheck: '', entityIdsByMask: '', entityIdsByPerm: '', entityIdsFunction: '', memberProfilesTableId: '', permissionDefaultPermissionsTableId: '', permissionDefaultGrantsTableId: '', apiName: '', privateApiName: '' }, + data: { databaseId: '', entityField: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', membershipsTableId: '', membershipsTableName: '', membersTableId: '', membersTableName: '', membershipDefaultsTableId: '', membershipDefaultsTableName: '', membershipSettingsTableId: '', membershipSettingsTableName: '', grantsTableId: '', grantsTableName: '', actorTableId: '', limitsTableId: '', defaultLimitsTableId: '', permissionsTableId: '', defaultPermissionsTableId: '', sprtTableId: '', adminGrantsTableId: '', adminGrantsTableName: '', ownerGrantsTableId: '', ownerGrantsTableName: '', scope: '', prefix: '', entityTableId: '', entityTableOwnerId: '', getOrgFn: '', actorMaskCheck: '', actorPermCheck: '', entityIdsByMask: '', entityIdsByPerm: '', entityIdsFunction: '', memberProfilesTableId: '', permissionDefaultPermissionsTableId: '', permissionDefaultGrantsTableId: '', apiName: '', privateApiName: '' }, 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 969e72eaa1..794d89b2a8 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: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', objectTableId: '', storeTableId: '', commitTableId: '', refTableId: '', prefix: '', apiName: '', privateApiName: '', scope: '', functionPrefix: '', permissionKey: '' }, select: { id: true } }).execute() +db.merkleStoreModule.create({ data: { databaseId: '', entityField: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', objectTableId: '', storeTableId: '', commitTableId: '', refTableId: '', prefix: '', apiName: '', privateApiName: '', scope: '', functionPrefix: '', permissionKey: '' }, select: { id: true } }).execute() db.merkleStoreModule.update({ where: { id: '' }, data: { databaseId: '' }, 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: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', objectTableId: '', storeTableId: '', commitTableId: '', refTableId: '', prefix: '', apiName: '', privateApiName: '', scope: '', functionPrefix: '', permissionKey: '' }, + data: { databaseId: '', entityField: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', objectTableId: '', storeTableId: '', commitTableId: '', refTableId: '', prefix: '', apiName: '', privateApiName: '', scope: '', functionPrefix: '', permissionKey: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-modules/references/namespace-module.md b/.agents/skills/orm-modules/references/namespace-module.md index 7f345fab95..ba2707f03d 100644 --- a/.agents/skills/orm-modules/references/namespace-module.md +++ b/.agents/skills/orm-modules/references/namespace-module.md @@ -9,7 +9,7 @@ ORM operations for NamespaceModule records ```typescript db.namespaceModule.findMany({ select: { id: true } }).execute() db.namespaceModule.findOne({ id: '', select: { id: true } }).execute() -db.namespaceModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', namespacesTableId: '', namespaceEventsTableId: '', namespacesTableName: '', namespaceEventsTableName: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '', platformNamespacesTableId: '', policies: '', provisions: '', defaultPermissions: '' }, select: { id: true } }).execute() +db.namespaceModule.create({ data: { databaseId: '', entityField: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', namespacesTableId: '', namespaceEventsTableId: '', namespacesTableName: '', namespaceEventsTableName: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '', policies: '', provisions: '', defaultPermissions: '' }, select: { id: true } }).execute() db.namespaceModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() db.namespaceModule.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.namespaceModule.findMany({ ```typescript const item = await db.namespaceModule.create({ - data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', namespacesTableId: '', namespaceEventsTableId: '', namespacesTableName: '', namespaceEventsTableName: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '', platformNamespacesTableId: '', policies: '', provisions: '', defaultPermissions: '' }, + data: { databaseId: '', entityField: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', namespacesTableId: '', namespaceEventsTableId: '', namespacesTableName: '', namespaceEventsTableName: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '', policies: '', provisions: '', defaultPermissions: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-modules/references/notifications-module.md b/.agents/skills/orm-modules/references/notifications-module.md index a13ba34724..e19bc73827 100644 --- a/.agents/skills/orm-modules/references/notifications-module.md +++ b/.agents/skills/orm-modules/references/notifications-module.md @@ -9,7 +9,7 @@ ORM operations for NotificationsModule records ```typescript db.notificationsModule.findMany({ select: { id: true } }).execute() db.notificationsModule.findOne({ id: '', select: { id: true } }).execute() -db.notificationsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', notificationsTableId: '', readStateTableId: '', preferencesTableId: '', channelsTableId: '', deliveryLogTableId: '', suppressionsTableId: '', ownerTableId: '', userSettingsTableId: '', organizationSettingsTableId: '', hasChannels: '', hasPreferences: '', hasSettingsExtension: '', hasDigestMetadata: '', hasSubscriptions: '', defaultPermissions: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute() +db.notificationsModule.create({ data: { databaseId: '', entityField: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', notificationsTableId: '', readStateTableId: '', preferencesTableId: '', channelsTableId: '', deliveryLogTableId: '', suppressionsTableId: '', ownerTableId: '', userSettingsTableId: '', organizationSettingsTableId: '', hasChannels: '', hasPreferences: '', hasSettingsExtension: '', hasDigestMetadata: '', hasSubscriptions: '', defaultPermissions: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute() db.notificationsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() db.notificationsModule.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.notificationsModule.findMany({ ```typescript const item = await db.notificationsModule.create({ - data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', notificationsTableId: '', readStateTableId: '', preferencesTableId: '', channelsTableId: '', deliveryLogTableId: '', suppressionsTableId: '', ownerTableId: '', userSettingsTableId: '', organizationSettingsTableId: '', hasChannels: '', hasPreferences: '', hasSettingsExtension: '', hasDigestMetadata: '', hasSubscriptions: '', defaultPermissions: '', apiName: '', privateApiName: '' }, + data: { databaseId: '', entityField: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', notificationsTableId: '', readStateTableId: '', preferencesTableId: '', channelsTableId: '', deliveryLogTableId: '', suppressionsTableId: '', ownerTableId: '', userSettingsTableId: '', organizationSettingsTableId: '', hasChannels: '', hasPreferences: '', hasSettingsExtension: '', hasDigestMetadata: '', hasSubscriptions: '', defaultPermissions: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-modules/references/permissions-module.md b/.agents/skills/orm-modules/references/permissions-module.md index c85ccea0b8..3428ef5c74 100644 --- a/.agents/skills/orm-modules/references/permissions-module.md +++ b/.agents/skills/orm-modules/references/permissions-module.md @@ -9,7 +9,7 @@ ORM operations for PermissionsModule records ```typescript db.permissionsModule.findMany({ select: { id: true } }).execute() db.permissionsModule.findOne({ id: '', select: { id: true } }).execute() -db.permissionsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', tableId: '', tableName: '', defaultTableId: '', defaultTableName: '', bitlen: '', scope: '', prefix: '', entityTableId: '', actorTableId: '', getPaddedMask: '', getMask: '', getByMask: '', getMaskByName: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute() +db.permissionsModule.create({ data: { databaseId: '', entityField: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', tableId: '', tableName: '', defaultTableId: '', defaultTableName: '', bitlen: '', scope: '', prefix: '', entityTableId: '', actorTableId: '', getPaddedMask: '', getMask: '', getByMask: '', getMaskByName: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute() db.permissionsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() db.permissionsModule.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.permissionsModule.findMany({ ```typescript const item = await db.permissionsModule.create({ - data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', tableId: '', tableName: '', defaultTableId: '', defaultTableName: '', bitlen: '', scope: '', prefix: '', entityTableId: '', actorTableId: '', getPaddedMask: '', getMask: '', getByMask: '', getMaskByName: '', apiName: '', privateApiName: '' }, + data: { databaseId: '', entityField: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', tableId: '', tableName: '', defaultTableId: '', defaultTableName: '', bitlen: '', scope: '', prefix: '', entityTableId: '', actorTableId: '', getPaddedMask: '', getMask: '', getByMask: '', getMaskByName: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-modules/references/profiles-module.md b/.agents/skills/orm-modules/references/profiles-module.md index 02e5602769..3c762a5b2e 100644 --- a/.agents/skills/orm-modules/references/profiles-module.md +++ b/.agents/skills/orm-modules/references/profiles-module.md @@ -9,7 +9,7 @@ ORM operations for ProfilesModule records ```typescript db.profilesModule.findMany({ select: { id: true } }).execute() db.profilesModule.findOne({ id: '', select: { id: true } }).execute() -db.profilesModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', tableId: '', tableName: '', profilePermissionsTableId: '', profilePermissionsTableName: '', profileGrantsTableId: '', profileGrantsTableName: '', profileDefinitionGrantsTableId: '', profileDefinitionGrantsTableName: '', profileTemplatesTableId: '', profileTemplatesTableName: '', scope: '', prefix: '', entityTableId: '', actorTableId: '', permissionsTableId: '', membershipsTableId: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute() +db.profilesModule.create({ data: { databaseId: '', entityField: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', tableId: '', tableName: '', profilePermissionsTableId: '', profilePermissionsTableName: '', profileGrantsTableId: '', profileGrantsTableName: '', profileDefinitionGrantsTableId: '', profileDefinitionGrantsTableName: '', profileTemplatesTableId: '', profileTemplatesTableName: '', scope: '', prefix: '', entityTableId: '', actorTableId: '', permissionsTableId: '', membershipsTableId: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute() db.profilesModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() db.profilesModule.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.profilesModule.findMany({ ```typescript const item = await db.profilesModule.create({ - data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', tableId: '', tableName: '', profilePermissionsTableId: '', profilePermissionsTableName: '', profileGrantsTableId: '', profileGrantsTableName: '', profileDefinitionGrantsTableId: '', profileDefinitionGrantsTableName: '', profileTemplatesTableId: '', profileTemplatesTableName: '', scope: '', prefix: '', entityTableId: '', actorTableId: '', permissionsTableId: '', membershipsTableId: '', apiName: '', privateApiName: '' }, + data: { databaseId: '', entityField: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', tableId: '', tableName: '', profilePermissionsTableId: '', profilePermissionsTableName: '', profileGrantsTableId: '', profileGrantsTableName: '', profileDefinitionGrantsTableId: '', profileDefinitionGrantsTableName: '', profileTemplatesTableId: '', profileTemplatesTableName: '', scope: '', prefix: '', entityTableId: '', actorTableId: '', permissionsTableId: '', membershipsTableId: '', apiName: '', privateApiName: '' }, 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 44267a1876..dad73d3914 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: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', resourcesTableId: '', resourceEventsTableId: '', resourcesTableName: '', resourceEventsTableName: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '', namespaceModuleId: '', policies: '', provisions: '', defaultPermissions: '' }, select: { id: true } }).execute() +db.resourceModule.create({ data: { databaseId: '', entityField: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', resourcesTableId: '', resourceEventsTableId: '', resourceStatusChecksTableId: '', resourceDefinitionsTableId: '', resourcesTableName: '', resourceEventsTableName: '', resourceStatusChecksTableName: '', resourceDefinitionsTableName: '', resolvedRequirementsViewName: '', requirementsStateViewName: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '', namespaceModuleId: '', policies: '', provisions: '', defaultPermissions: '' }, select: { id: true } }).execute() db.resourceModule.update({ where: { id: '' }, data: { databaseId: '' }, 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: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', resourcesTableId: '', resourceEventsTableId: '', resourcesTableName: '', resourceEventsTableName: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '', namespaceModuleId: '', policies: '', provisions: '', defaultPermissions: '' }, + data: { databaseId: '', entityField: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', resourcesTableId: '', resourceEventsTableId: '', resourceStatusChecksTableId: '', resourceDefinitionsTableId: '', resourcesTableName: '', resourceEventsTableName: '', resourceStatusChecksTableName: '', resourceDefinitionsTableName: '', resolvedRequirementsViewName: '', requirementsStateViewName: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '', namespaceModuleId: '', policies: '', provisions: '', defaultPermissions: '' }, 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 870539c71b..f0e6d362d6 100644 --- a/.agents/skills/orm-modules/references/storage-log-module.md +++ b/.agents/skills/orm-modules/references/storage-log-module.md @@ -9,7 +9,7 @@ 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: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', storageLogTableId: '', storageLogTableName: '', usageDailyTableId: '', usageDailyTableName: '', interval: '', retention: '', premake: '', scope: '', actorFkTableId: '', entityFkTableId: '', prefix: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute() +db.storageLogModule.create({ data: { databaseId: '', entityField: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', storageLogTableId: '', storageLogTableName: '', usageDailyTableId: '', usageDailyTableName: '', interval: '', retention: '', premake: '', scope: '', actorFkTableId: '', entityFkTableId: '', prefix: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute() db.storageLogModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() db.storageLogModule.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.storageLogModule.findMany({ ```typescript const item = await db.storageLogModule.create({ - data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', storageLogTableId: '', storageLogTableName: '', usageDailyTableId: '', usageDailyTableName: '', interval: '', retention: '', premake: '', scope: '', actorFkTableId: '', entityFkTableId: '', prefix: '', apiName: '', privateApiName: '' }, + data: { databaseId: '', entityField: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', storageLogTableId: '', storageLogTableName: '', usageDailyTableId: '', usageDailyTableName: '', interval: '', retention: '', premake: '', scope: '', actorFkTableId: '', entityFkTableId: '', prefix: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-modules/references/storage-module.md b/.agents/skills/orm-modules/references/storage-module.md index 3ab657edbf..5a238dcdd0 100644 --- a/.agents/skills/orm-modules/references/storage-module.md +++ b/.agents/skills/orm-modules/references/storage-module.md @@ -9,7 +9,7 @@ ORM operations for StorageModule records ```typescript db.storageModule.findMany({ select: { id: true } }).execute() db.storageModule.findOne({ id: '', select: { id: true } }).execute() -db.storageModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', bucketsTableId: '', filesTableId: '', bucketsTableName: '', filesTableName: '', scope: '', prefix: '', policies: '', provisions: '', entityTableId: '', endpoint: '', publicUrlPrefix: '', provider: '', allowedOrigins: '', restrictReads: '', hasPathShares: '', pathSharesTableId: '', uploadUrlExpirySeconds: '', downloadUrlExpirySeconds: '', defaultMaxFileSize: '', maxFilenameLength: '', cacheTtlSeconds: '', maxBulkFiles: '', maxBulkTotalSize: '', hasVersioning: '', hasContentHash: '', hasCustomKeys: '', hasAuditLog: '', hasConfirmUpload: '', confirmUploadDelay: '', fileEventsTableId: '', defaultPermissions: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute() +db.storageModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', bucketsTableId: '', filesTableId: '', bucketsTableName: '', filesTableName: '', scope: '', prefix: '', policies: '', provisions: '', entityTableId: '', entityField: '', endpoint: '', publicUrlPrefix: '', provider: '', allowedOrigins: '', restrictReads: '', hasPathShares: '', pathSharesTableId: '', uploadUrlExpirySeconds: '', downloadUrlExpirySeconds: '', defaultMaxFileSize: '', maxFilenameLength: '', cacheTtlSeconds: '', maxBulkFiles: '', maxBulkTotalSize: '', hasVersioning: '', hasContentHash: '', hasCustomKeys: '', hasAuditLog: '', hasConfirmUpload: '', confirmUploadDelay: '', fileEventsTableId: '', defaultPermissions: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute() db.storageModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() db.storageModule.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.storageModule.findMany({ ```typescript const item = await db.storageModule.create({ - data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', bucketsTableId: '', filesTableId: '', bucketsTableName: '', filesTableName: '', scope: '', prefix: '', policies: '', provisions: '', entityTableId: '', endpoint: '', publicUrlPrefix: '', provider: '', allowedOrigins: '', restrictReads: '', hasPathShares: '', pathSharesTableId: '', uploadUrlExpirySeconds: '', downloadUrlExpirySeconds: '', defaultMaxFileSize: '', maxFilenameLength: '', cacheTtlSeconds: '', maxBulkFiles: '', maxBulkTotalSize: '', hasVersioning: '', hasContentHash: '', hasCustomKeys: '', hasAuditLog: '', hasConfirmUpload: '', confirmUploadDelay: '', fileEventsTableId: '', defaultPermissions: '', apiName: '', privateApiName: '' }, + data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', bucketsTableId: '', filesTableId: '', bucketsTableName: '', filesTableName: '', scope: '', prefix: '', policies: '', provisions: '', entityTableId: '', entityField: '', endpoint: '', publicUrlPrefix: '', provider: '', allowedOrigins: '', restrictReads: '', hasPathShares: '', pathSharesTableId: '', uploadUrlExpirySeconds: '', downloadUrlExpirySeconds: '', defaultMaxFileSize: '', maxFilenameLength: '', cacheTtlSeconds: '', maxBulkFiles: '', maxBulkTotalSize: '', hasVersioning: '', hasContentHash: '', hasCustomKeys: '', hasAuditLog: '', hasConfirmUpload: '', confirmUploadDelay: '', fileEventsTableId: '', defaultPermissions: '', apiName: '', privateApiName: '' }, 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 8507a5cb2e..eb2e43953d 100644 --- a/.agents/skills/orm-modules/references/transfer-log-module.md +++ b/.agents/skills/orm-modules/references/transfer-log-module.md @@ -9,7 +9,7 @@ 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: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', transferLogTableId: '', transferLogTableName: '', usageDailyTableId: '', usageDailyTableName: '', interval: '', retention: '', premake: '', scope: '', actorFkTableId: '', entityFkTableId: '', prefix: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute() +db.transferLogModule.create({ data: { databaseId: '', entityField: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', transferLogTableId: '', transferLogTableName: '', usageDailyTableId: '', usageDailyTableName: '', interval: '', retention: '', premake: '', scope: '', actorFkTableId: '', entityFkTableId: '', prefix: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute() db.transferLogModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() db.transferLogModule.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.transferLogModule.findMany({ ```typescript const item = await db.transferLogModule.create({ - data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', transferLogTableId: '', transferLogTableName: '', usageDailyTableId: '', usageDailyTableName: '', interval: '', retention: '', premake: '', scope: '', actorFkTableId: '', entityFkTableId: '', prefix: '', apiName: '', privateApiName: '' }, + data: { databaseId: '', entityField: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', transferLogTableId: '', transferLogTableName: '', usageDailyTableId: '', usageDailyTableName: '', interval: '', retention: '', premake: '', scope: '', actorFkTableId: '', entityFkTableId: '', prefix: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-modules/references/user-credentials-module.md b/.agents/skills/orm-modules/references/user-credentials-module.md index e87f5e61a8..7aee1419d4 100644 --- a/.agents/skills/orm-modules/references/user-credentials-module.md +++ b/.agents/skills/orm-modules/references/user-credentials-module.md @@ -11,7 +11,7 @@ Per-user bcrypt credential store (password hashes, API key hashes). ```typescript db.userCredentialsModule.findMany({ select: { id: true } }).execute() db.userCredentialsModule.findOne({ id: '', select: { id: true } }).execute() -db.userCredentialsModule.create({ data: { databaseId: '', schemaId: '', tableId: '', tableName: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute() +db.userCredentialsModule.create({ data: { databaseId: '', entityField: '', schemaId: '', tableId: '', tableName: '', privateApiName: '' }, select: { id: true } }).execute() db.userCredentialsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() db.userCredentialsModule.delete({ where: { id: '' } }).execute() ``` @@ -30,7 +30,7 @@ const items = await db.userCredentialsModule.findMany({ ```typescript const item = await db.userCredentialsModule.create({ - data: { databaseId: '', schemaId: '', tableId: '', tableName: '', apiName: '', privateApiName: '' }, + data: { databaseId: '', entityField: '', schemaId: '', tableId: '', tableName: '', privateApiName: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-modules/references/user-state-module.md b/.agents/skills/orm-modules/references/user-state-module.md index 4110d5ff75..42eb5864d7 100644 --- a/.agents/skills/orm-modules/references/user-state-module.md +++ b/.agents/skills/orm-modules/references/user-state-module.md @@ -9,7 +9,7 @@ ORM operations for UserStateModule records ```typescript db.userStateModule.findMany({ select: { id: true } }).execute() db.userStateModule.findOne({ id: '', select: { id: true } }).execute() -db.userStateModule.create({ data: { databaseId: '', schemaId: '', tableId: '', tableName: '' }, select: { id: true } }).execute() +db.userStateModule.create({ data: { databaseId: '', entityField: '', schemaId: '', tableId: '', tableName: '' }, select: { id: true } }).execute() db.userStateModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() db.userStateModule.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.userStateModule.findMany({ ```typescript const item = await db.userStateModule.create({ - data: { databaseId: '', schemaId: '', tableId: '', tableName: '' }, + data: { databaseId: '', entityField: '', schemaId: '', tableId: '', tableName: '' }, select: { id: true } }).execute(); ``` diff --git a/sdk/constructive-cli/README.md b/sdk/constructive-cli/README.md index fd3b22c3b4..ff624c5f0e 100644 --- a/sdk/constructive-cli/README.md +++ b/sdk/constructive-cli/README.md @@ -16,6 +16,7 @@ | auth | - | ORM, CLI | [./src/auth/README.md](./src/auth/README.md) | | compute | - | ORM, CLI | [./src/compute/README.md](./src/compute/README.md) | | config | - | ORM, CLI | [./src/config/README.md](./src/config/README.md) | +| 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) | | 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 42542d6c87..cf3103f66e 100644 --- a/sdk/constructive-cli/src/.targets +++ b/sdk/constructive-cli/src/.targets @@ -1 +1 @@ -["admin","agent","api","auth","compute","config","modules","objects","usage"] +["admin","agent","api","auth","compute","config","infra","modules","objects","usage"] diff --git a/sdk/constructive-cli/src/agent/cli/README.md b/sdk/constructive-cli/src/agent/cli/README.md index b50c3f3940..44246775fe 100644 --- a/sdk/constructive-cli/src/agent/cli/README.md +++ b/sdk/constructive-cli/src/agent/cli/README.md @@ -103,11 +103,12 @@ CRUD operations for AgentPlan records. | `updatedAt` | Datetime | | `ownerId` | UUID | | `threadId` | UUID | +| `databaseId` | UUID | | `title` | String | | `description` | String | | `status` | String | -**Required create fields:** `threadId`, `title` +**Required create fields:** `threadId`, `databaseId`, `title` **Optional create fields (backend defaults):** `ownerId`, `description`, `status` ### `agent` @@ -131,6 +132,7 @@ CRUD operations for Agent records. | `createdAt` | Datetime | | `updatedAt` | Datetime | | `ownerId` | UUID | +| `databaseId` | UUID | | `personaId` | UUID | | `parentId` | UUID | | `name` | String | @@ -139,7 +141,7 @@ CRUD operations for Agent records. | `status` | String | | `isEphemeral` | Boolean | -**Required create fields:** `name` +**Required create fields:** `databaseId`, `name` **Optional create fields (backend defaults):** `ownerId`, `personaId`, `parentId`, `systemPrompt`, `config`, `status`, `isEphemeral` ### `agent-thread` @@ -163,6 +165,7 @@ CRUD operations for AgentThread records. | `createdAt` | Datetime | | `updatedAt` | Datetime | | `ownerId` | UUID | +| `databaseId` | UUID | | `status` | String | | `isArchived` | Boolean | | `archivedAt` | Datetime | @@ -175,6 +178,7 @@ CRUD operations for AgentThread records. | `agentId` | UUID | | `parentThreadId` | UUID | +**Required create fields:** `databaseId` **Optional create fields (backend defaults):** `ownerId`, `status`, `isArchived`, `archivedAt`, `title`, `mode`, `model`, `systemPrompt`, `tags`, `promptTemplateId`, `agentId`, `parentThreadId` ### `agent-message` @@ -200,11 +204,12 @@ CRUD operations for AgentMessage records. | `actorId` | UUID | | `parts` | JSON | | `threadId` | UUID | +| `databaseId` | UUID | | `authorRole` | String | | `model` | String | | `agentId` | UUID | -**Required create fields:** `threadId`, `authorRole` +**Required create fields:** `threadId`, `databaseId`, `authorRole` **Optional create fields (backend defaults):** `actorId`, `parts`, `model`, `agentId` ### `agent-task` @@ -230,6 +235,7 @@ CRUD operations for AgentTask records. | `actorId` | UUID | | `status` | String | | `planId` | UUID | +| `databaseId` | UUID | | `description` | String | | `source` | String | | `error` | String | @@ -240,7 +246,7 @@ CRUD operations for AgentTask records. | `approvedAt` | Datetime | | `approvalFeedback` | String | -**Required create fields:** `planId`, `description` +**Required create fields:** `planId`, `databaseId`, `description` **Optional create fields (backend defaults):** `actorId`, `status`, `source`, `error`, `orderIndex`, `requiresApproval`, `approvalStatus`, `approvedBy`, `approvedAt`, `approvalFeedback` ### `agent-prompt` @@ -265,13 +271,14 @@ CRUD operations for AgentPrompt records. | `updatedAt` | Datetime | | `createdBy` | UUID | | `updatedBy` | UUID | +| `databaseId` | UUID | | `name` | String | | `content` | String | | `description` | String | | `isDefault` | Boolean | | `metadata` | JSON | -**Required create fields:** `name`, `content` +**Required create fields:** `databaseId`, `name`, `content` **Optional create fields (backend defaults):** `createdBy`, `updatedBy`, `description`, `isDefault`, `metadata` ### `agent-resource-chunk` @@ -362,6 +369,7 @@ CRUD operations for AgentPersona records. | `updatedAt` | Datetime | | `createdBy` | UUID | | `updatedBy` | UUID | +| `databaseId` | UUID | | `slug` | String | | `name` | String | | `description` | String | @@ -370,7 +378,7 @@ CRUD operations for AgentPersona records. | `config` | JSON | | `isActive` | Boolean | -**Required create fields:** `slug`, `name` +**Required create fields:** `databaseId`, `slug`, `name` **Optional create fields (backend defaults):** `createdBy`, `updatedBy`, `description`, `systemPrompt`, `resources`, `config`, `isActive` ### `agent-resource` @@ -396,6 +404,7 @@ CRUD operations for AgentResource records. | `updatedAt` | Datetime | | `createdBy` | UUID | | `updatedBy` | UUID | +| `databaseId` | UUID | | `slug` | String | | `kind` | String | | `title` | String | @@ -417,7 +426,7 @@ CRUD operations for AgentResource records. | `bodyTrgmSimilarity` | Float | | `searchScore` | Float | -**Required create fields:** `slug`, `title`, `body` +**Required create fields:** `databaseId`, `slug`, `title`, `body` **Optional create fields (backend defaults):** `createdBy`, `updatedBy`, `kind`, `description`, `keywords`, `isActive`, `metadata`, `isArchived`, `archivedAt`, `embedding`, `embeddingUpdatedAt` > **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. 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 9ad2641cd5..5ce11f7f24 100644 --- a/sdk/constructive-cli/src/agent/cli/commands/agent-message.ts +++ b/sdk/constructive-cli/src/agent/cli/commands/agent-message.ts @@ -22,6 +22,7 @@ const fieldSchema: FieldSchema = { actorId: 'uuid', parts: 'json', threadId: 'uuid', + databaseId: 'uuid', authorRole: 'string', model: 'string', agentId: 'uuid', @@ -83,6 +84,7 @@ async function handleList(argv: Partial>, _prompter: Inq actorId: true, parts: true, threadId: true, + databaseId: true, authorRole: true, model: true, agentId: true, @@ -112,6 +114,7 @@ async function handleFindFirst(argv: Partial>, _prompter actorId: true, parts: true, threadId: true, + databaseId: true, authorRole: true, model: true, agentId: true, @@ -153,6 +156,7 @@ async function handleGet(argv: Partial>, prompter: Inqui actorId: true, parts: true, threadId: true, + databaseId: true, authorRole: true, model: true, agentId: true, @@ -191,6 +195,12 @@ async function handleCreate(argv: Partial>, prompter: In message: 'threadId', required: true, }, + { + type: 'text', + name: 'databaseId', + message: 'databaseId', + required: true, + }, { type: 'text', name: 'authorRole', @@ -224,6 +234,7 @@ async function handleCreate(argv: Partial>, prompter: In actorId: cleanedData.actorId, parts: cleanedData.parts, threadId: cleanedData.threadId, + databaseId: cleanedData.databaseId, authorRole: cleanedData.authorRole, model: cleanedData.model, agentId: cleanedData.agentId, @@ -235,6 +246,7 @@ async function handleCreate(argv: Partial>, prompter: In actorId: true, parts: true, threadId: true, + databaseId: true, authorRole: true, model: true, agentId: true, @@ -279,6 +291,12 @@ async function handleUpdate(argv: Partial>, prompter: In message: 'threadId', required: false, }, + { + type: 'text', + name: 'databaseId', + message: 'databaseId', + required: false, + }, { type: 'text', name: 'authorRole', @@ -312,6 +330,7 @@ async function handleUpdate(argv: Partial>, prompter: In actorId: cleanedData.actorId, parts: cleanedData.parts, threadId: cleanedData.threadId, + databaseId: cleanedData.databaseId, authorRole: cleanedData.authorRole, model: cleanedData.model, agentId: cleanedData.agentId, @@ -323,6 +342,7 @@ async function handleUpdate(argv: Partial>, prompter: In actorId: true, parts: true, threadId: true, + databaseId: true, authorRole: true, model: true, agentId: true, 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 c690d672f0..12f105a3a9 100644 --- a/sdk/constructive-cli/src/agent/cli/commands/agent-persona.ts +++ b/sdk/constructive-cli/src/agent/cli/commands/agent-persona.ts @@ -21,6 +21,7 @@ const fieldSchema: FieldSchema = { updatedAt: 'string', createdBy: 'uuid', updatedBy: 'uuid', + databaseId: 'uuid', slug: 'string', name: 'string', description: 'string', @@ -85,6 +86,7 @@ async function handleList(argv: Partial>, _prompter: Inq updatedAt: true, createdBy: true, updatedBy: true, + databaseId: true, slug: true, name: true, description: true, @@ -117,6 +119,7 @@ async function handleFindFirst(argv: Partial>, _prompter updatedAt: true, createdBy: true, updatedBy: true, + databaseId: true, slug: true, name: true, description: true, @@ -161,6 +164,7 @@ async function handleGet(argv: Partial>, prompter: Inqui updatedAt: true, createdBy: true, updatedBy: true, + databaseId: true, slug: true, name: true, description: true, @@ -197,6 +201,12 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'databaseId', + message: 'databaseId', + required: true, + }, { type: 'text', name: 'slug', @@ -256,6 +266,7 @@ async function handleCreate(argv: Partial>, prompter: In data: { createdBy: cleanedData.createdBy, updatedBy: cleanedData.updatedBy, + databaseId: cleanedData.databaseId, slug: cleanedData.slug, name: cleanedData.name, description: cleanedData.description, @@ -270,6 +281,7 @@ async function handleCreate(argv: Partial>, prompter: In updatedAt: true, createdBy: true, updatedBy: true, + databaseId: true, slug: true, name: true, description: true, @@ -312,6 +324,12 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'databaseId', + message: 'databaseId', + required: false, + }, { type: 'text', name: 'slug', @@ -371,6 +389,7 @@ async function handleUpdate(argv: Partial>, prompter: In data: { createdBy: cleanedData.createdBy, updatedBy: cleanedData.updatedBy, + databaseId: cleanedData.databaseId, slug: cleanedData.slug, name: cleanedData.name, description: cleanedData.description, @@ -385,6 +404,7 @@ async function handleUpdate(argv: Partial>, prompter: In updatedAt: true, createdBy: true, updatedBy: true, + databaseId: true, slug: true, name: true, description: true, 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 955eb6b584..9ddab80ff8 100644 --- a/sdk/constructive-cli/src/agent/cli/commands/agent-plan.ts +++ b/sdk/constructive-cli/src/agent/cli/commands/agent-plan.ts @@ -21,6 +21,7 @@ const fieldSchema: FieldSchema = { updatedAt: 'string', ownerId: 'uuid', threadId: 'uuid', + databaseId: 'uuid', title: 'string', description: 'string', status: 'string', @@ -81,6 +82,7 @@ async function handleList(argv: Partial>, _prompter: Inq updatedAt: true, ownerId: true, threadId: true, + databaseId: true, title: true, description: true, status: true, @@ -109,6 +111,7 @@ async function handleFindFirst(argv: Partial>, _prompter updatedAt: true, ownerId: true, threadId: true, + databaseId: true, title: true, description: true, status: true, @@ -149,6 +152,7 @@ async function handleGet(argv: Partial>, prompter: Inqui updatedAt: true, ownerId: true, threadId: true, + databaseId: true, title: true, description: true, status: true, @@ -180,6 +184,12 @@ async function handleCreate(argv: Partial>, prompter: In message: 'threadId', required: true, }, + { + type: 'text', + name: 'databaseId', + message: 'databaseId', + required: true, + }, { type: 'text', name: 'title', @@ -209,6 +219,7 @@ async function handleCreate(argv: Partial>, prompter: In data: { ownerId: cleanedData.ownerId, threadId: cleanedData.threadId, + databaseId: cleanedData.databaseId, title: cleanedData.title, description: cleanedData.description, status: cleanedData.status, @@ -219,6 +230,7 @@ async function handleCreate(argv: Partial>, prompter: In updatedAt: true, ownerId: true, threadId: true, + databaseId: true, title: true, description: true, status: true, @@ -256,6 +268,12 @@ async function handleUpdate(argv: Partial>, prompter: In message: 'threadId', required: false, }, + { + type: 'text', + name: 'databaseId', + message: 'databaseId', + required: false, + }, { type: 'text', name: 'title', @@ -288,6 +306,7 @@ async function handleUpdate(argv: Partial>, prompter: In data: { ownerId: cleanedData.ownerId, threadId: cleanedData.threadId, + databaseId: cleanedData.databaseId, title: cleanedData.title, description: cleanedData.description, status: cleanedData.status, @@ -298,6 +317,7 @@ async function handleUpdate(argv: Partial>, prompter: In updatedAt: true, ownerId: true, threadId: true, + databaseId: true, title: true, description: true, status: true, 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 5efcb21d98..88728aaf4c 100644 --- a/sdk/constructive-cli/src/agent/cli/commands/agent-prompt.ts +++ b/sdk/constructive-cli/src/agent/cli/commands/agent-prompt.ts @@ -21,6 +21,7 @@ const fieldSchema: FieldSchema = { updatedAt: 'string', createdBy: 'uuid', updatedBy: 'uuid', + databaseId: 'uuid', name: 'string', content: 'string', description: 'string', @@ -83,6 +84,7 @@ async function handleList(argv: Partial>, _prompter: Inq updatedAt: true, createdBy: true, updatedBy: true, + databaseId: true, name: true, content: true, description: true, @@ -113,6 +115,7 @@ async function handleFindFirst(argv: Partial>, _prompter updatedAt: true, createdBy: true, updatedBy: true, + databaseId: true, name: true, content: true, description: true, @@ -155,6 +158,7 @@ async function handleGet(argv: Partial>, prompter: Inqui updatedAt: true, createdBy: true, updatedBy: true, + databaseId: true, name: true, content: true, description: true, @@ -189,6 +193,12 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'databaseId', + message: 'databaseId', + required: true, + }, { type: 'text', name: 'name', @@ -234,6 +244,7 @@ async function handleCreate(argv: Partial>, prompter: In data: { createdBy: cleanedData.createdBy, updatedBy: cleanedData.updatedBy, + databaseId: cleanedData.databaseId, name: cleanedData.name, content: cleanedData.content, description: cleanedData.description, @@ -246,6 +257,7 @@ async function handleCreate(argv: Partial>, prompter: In updatedAt: true, createdBy: true, updatedBy: true, + databaseId: true, name: true, content: true, description: true, @@ -286,6 +298,12 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'databaseId', + message: 'databaseId', + required: false, + }, { type: 'text', name: 'name', @@ -331,6 +349,7 @@ async function handleUpdate(argv: Partial>, prompter: In data: { createdBy: cleanedData.createdBy, updatedBy: cleanedData.updatedBy, + databaseId: cleanedData.databaseId, name: cleanedData.name, content: cleanedData.content, description: cleanedData.description, @@ -343,6 +362,7 @@ async function handleUpdate(argv: Partial>, prompter: In updatedAt: true, createdBy: true, updatedBy: true, + databaseId: true, name: true, content: true, description: 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 743f10660d..b3b2eed49c 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 = { updatedAt: 'string', createdBy: 'uuid', updatedBy: 'uuid', + databaseId: 'uuid', slug: 'string', kind: 'string', title: 'string', @@ -101,6 +102,7 @@ async function handleList(argv: Partial>, _prompter: Inq updatedAt: true, createdBy: true, updatedBy: true, + databaseId: true, slug: true, kind: true, title: true, @@ -148,6 +150,7 @@ async function handleFindFirst(argv: Partial>, _prompter updatedAt: true, createdBy: true, updatedBy: true, + databaseId: true, slug: true, kind: true, title: true, @@ -224,6 +227,7 @@ async function handleSearch(argv: Partial>, _prompter: I updatedAt: true, createdBy: true, updatedBy: true, + databaseId: true, slug: true, kind: true, title: true, @@ -273,6 +277,7 @@ async function handleGet(argv: Partial>, prompter: Inqui updatedAt: true, createdBy: true, updatedBy: true, + databaseId: true, slug: true, kind: true, title: true, @@ -314,6 +319,12 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'databaseId', + message: 'databaseId', + required: true, + }, { type: 'text', name: 'slug', @@ -417,6 +428,7 @@ async function handleCreate(argv: Partial>, prompter: In data: { createdBy: cleanedData.createdBy, updatedBy: cleanedData.updatedBy, + databaseId: cleanedData.databaseId, slug: cleanedData.slug, kind: cleanedData.kind, title: cleanedData.title, @@ -436,6 +448,7 @@ async function handleCreate(argv: Partial>, prompter: In updatedAt: true, createdBy: true, updatedBy: true, + databaseId: true, slug: true, kind: true, title: true, @@ -483,6 +496,12 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'databaseId', + message: 'databaseId', + required: false, + }, { type: 'text', name: 'slug', @@ -586,6 +605,7 @@ async function handleUpdate(argv: Partial>, prompter: In data: { createdBy: cleanedData.createdBy, updatedBy: cleanedData.updatedBy, + databaseId: cleanedData.databaseId, slug: cleanedData.slug, kind: cleanedData.kind, title: cleanedData.title, @@ -605,6 +625,7 @@ async function handleUpdate(argv: Partial>, prompter: In updatedAt: true, createdBy: true, updatedBy: true, + databaseId: true, slug: true, kind: true, title: true, 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 6c5f7120e8..1a7ca8ab92 100644 --- a/sdk/constructive-cli/src/agent/cli/commands/agent-task.ts +++ b/sdk/constructive-cli/src/agent/cli/commands/agent-task.ts @@ -22,6 +22,7 @@ const fieldSchema: FieldSchema = { actorId: 'uuid', status: 'string', planId: 'uuid', + databaseId: 'uuid', description: 'string', source: 'string', error: 'string', @@ -89,6 +90,7 @@ async function handleList(argv: Partial>, _prompter: Inq actorId: true, status: true, planId: true, + databaseId: true, description: true, source: true, error: true, @@ -124,6 +126,7 @@ async function handleFindFirst(argv: Partial>, _prompter actorId: true, status: true, planId: true, + databaseId: true, description: true, source: true, error: true, @@ -171,6 +174,7 @@ async function handleGet(argv: Partial>, prompter: Inqui actorId: true, status: true, planId: true, + databaseId: true, description: true, source: true, error: true, @@ -215,6 +219,12 @@ async function handleCreate(argv: Partial>, prompter: In message: 'planId', required: true, }, + { + type: 'text', + name: 'databaseId', + message: 'databaseId', + required: true, + }, { type: 'text', name: 'description', @@ -287,6 +297,7 @@ async function handleCreate(argv: Partial>, prompter: In actorId: cleanedData.actorId, status: cleanedData.status, planId: cleanedData.planId, + databaseId: cleanedData.databaseId, description: cleanedData.description, source: cleanedData.source, error: cleanedData.error, @@ -304,6 +315,7 @@ async function handleCreate(argv: Partial>, prompter: In actorId: true, status: true, planId: true, + databaseId: true, description: true, source: true, error: true, @@ -354,6 +366,12 @@ async function handleUpdate(argv: Partial>, prompter: In message: 'planId', required: false, }, + { + type: 'text', + name: 'databaseId', + message: 'databaseId', + required: false, + }, { type: 'text', name: 'description', @@ -429,6 +447,7 @@ async function handleUpdate(argv: Partial>, prompter: In actorId: cleanedData.actorId, status: cleanedData.status, planId: cleanedData.planId, + databaseId: cleanedData.databaseId, description: cleanedData.description, source: cleanedData.source, error: cleanedData.error, @@ -446,6 +465,7 @@ async function handleUpdate(argv: Partial>, prompter: In actorId: true, status: true, planId: true, + databaseId: true, description: true, source: true, error: true, 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 98068a7d6a..83186205ee 100644 --- a/sdk/constructive-cli/src/agent/cli/commands/agent-thread.ts +++ b/sdk/constructive-cli/src/agent/cli/commands/agent-thread.ts @@ -20,6 +20,7 @@ const fieldSchema: FieldSchema = { createdAt: 'string', updatedAt: 'string', ownerId: 'uuid', + databaseId: 'uuid', status: 'string', isArchived: 'boolean', archivedAt: 'string', @@ -87,6 +88,7 @@ async function handleList(argv: Partial>, _prompter: Inq createdAt: true, updatedAt: true, ownerId: true, + databaseId: true, status: true, isArchived: true, archivedAt: true, @@ -122,6 +124,7 @@ async function handleFindFirst(argv: Partial>, _prompter createdAt: true, updatedAt: true, ownerId: true, + databaseId: true, status: true, isArchived: true, archivedAt: true, @@ -169,6 +172,7 @@ async function handleGet(argv: Partial>, prompter: Inqui createdAt: true, updatedAt: true, ownerId: true, + databaseId: true, status: true, isArchived: true, archivedAt: true, @@ -202,6 +206,12 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'databaseId', + message: 'databaseId', + required: true, + }, { type: 'text', name: 'status', @@ -290,6 +300,7 @@ async function handleCreate(argv: Partial>, prompter: In .create({ data: { ownerId: cleanedData.ownerId, + databaseId: cleanedData.databaseId, status: cleanedData.status, isArchived: cleanedData.isArchived, archivedAt: cleanedData.archivedAt, @@ -307,6 +318,7 @@ async function handleCreate(argv: Partial>, prompter: In createdAt: true, updatedAt: true, ownerId: true, + databaseId: true, status: true, isArchived: true, archivedAt: true, @@ -346,6 +358,12 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'databaseId', + message: 'databaseId', + required: false, + }, { type: 'text', name: 'status', @@ -434,6 +452,7 @@ async function handleUpdate(argv: Partial>, prompter: In }, data: { ownerId: cleanedData.ownerId, + databaseId: cleanedData.databaseId, status: cleanedData.status, isArchived: cleanedData.isArchived, archivedAt: cleanedData.archivedAt, @@ -451,6 +470,7 @@ async function handleUpdate(argv: Partial>, prompter: In createdAt: true, updatedAt: true, ownerId: true, + databaseId: true, status: true, isArchived: true, archivedAt: true, diff --git a/sdk/constructive-cli/src/agent/cli/commands/agent.ts b/sdk/constructive-cli/src/agent/cli/commands/agent.ts index 780975eb1c..a4b9b083c5 100644 --- a/sdk/constructive-cli/src/agent/cli/commands/agent.ts +++ b/sdk/constructive-cli/src/agent/cli/commands/agent.ts @@ -20,6 +20,7 @@ const fieldSchema: FieldSchema = { createdAt: 'string', updatedAt: 'string', ownerId: 'uuid', + databaseId: 'uuid', personaId: 'uuid', parentId: 'uuid', name: 'string', @@ -83,6 +84,7 @@ async function handleList(argv: Partial>, _prompter: Inq createdAt: true, updatedAt: true, ownerId: true, + databaseId: true, personaId: true, parentId: true, name: true, @@ -114,6 +116,7 @@ async function handleFindFirst(argv: Partial>, _prompter createdAt: true, updatedAt: true, ownerId: true, + databaseId: true, personaId: true, parentId: true, name: true, @@ -157,6 +160,7 @@ async function handleGet(argv: Partial>, prompter: Inqui createdAt: true, updatedAt: true, ownerId: true, + databaseId: true, personaId: true, parentId: true, name: true, @@ -186,6 +190,12 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'databaseId', + message: 'databaseId', + required: true, + }, { type: 'text', name: 'personaId', @@ -242,6 +252,7 @@ async function handleCreate(argv: Partial>, prompter: In .create({ data: { ownerId: cleanedData.ownerId, + databaseId: cleanedData.databaseId, personaId: cleanedData.personaId, parentId: cleanedData.parentId, name: cleanedData.name, @@ -255,6 +266,7 @@ async function handleCreate(argv: Partial>, prompter: In createdAt: true, updatedAt: true, ownerId: true, + databaseId: true, personaId: true, parentId: true, name: true, @@ -290,6 +302,12 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'databaseId', + message: 'databaseId', + required: false, + }, { type: 'text', name: 'personaId', @@ -349,6 +367,7 @@ async function handleUpdate(argv: Partial>, prompter: In }, data: { ownerId: cleanedData.ownerId, + databaseId: cleanedData.databaseId, personaId: cleanedData.personaId, parentId: cleanedData.parentId, name: cleanedData.name, @@ -362,6 +381,7 @@ async function handleUpdate(argv: Partial>, prompter: In createdAt: true, updatedAt: true, ownerId: true, + databaseId: true, personaId: true, parentId: true, name: true, diff --git a/sdk/constructive-cli/src/agent/orm/README.md b/sdk/constructive-cli/src/agent/orm/README.md index b8063a2d31..d45e434aab 100644 --- a/sdk/constructive-cli/src/agent/orm/README.md +++ b/sdk/constructive-cli/src/agent/orm/README.md @@ -46,6 +46,7 @@ CRUD operations for AgentPlan records. | `updatedAt` | Datetime | No | | `ownerId` | UUID | Yes | | `threadId` | UUID | Yes | +| `databaseId` | UUID | Yes | | `title` | String | Yes | | `description` | String | Yes | | `status` | String | Yes | @@ -54,13 +55,13 @@ CRUD operations for AgentPlan records. ```typescript // List all agentPlan records -const items = await db.agentPlan.findMany({ select: { id: true, createdAt: true, updatedAt: true, ownerId: true, threadId: true, title: true, description: true, status: true } }).execute(); +const items = await db.agentPlan.findMany({ select: { id: true, createdAt: true, updatedAt: true, ownerId: true, threadId: true, databaseId: true, title: true, description: true, status: true } }).execute(); // Get one by id -const item = await db.agentPlan.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, ownerId: true, threadId: true, title: true, description: true, status: true } }).execute(); +const item = await db.agentPlan.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, ownerId: true, threadId: true, databaseId: true, title: true, description: true, status: true } }).execute(); // Create -const created = await db.agentPlan.create({ data: { ownerId: '', threadId: '', title: '', description: '', status: '' }, select: { id: true } }).execute(); +const created = await db.agentPlan.create({ data: { ownerId: '', threadId: '', databaseId: '', title: '', description: '', status: '' }, select: { id: true } }).execute(); // Update const updated = await db.agentPlan.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute(); @@ -81,6 +82,7 @@ CRUD operations for Agent records. | `createdAt` | Datetime | No | | `updatedAt` | Datetime | No | | `ownerId` | UUID | Yes | +| `databaseId` | UUID | Yes | | `personaId` | UUID | Yes | | `parentId` | UUID | Yes | | `name` | String | Yes | @@ -93,13 +95,13 @@ CRUD operations for Agent records. ```typescript // List all agent records -const items = await db.agent.findMany({ select: { id: true, createdAt: true, updatedAt: true, ownerId: true, personaId: true, parentId: true, name: true, systemPrompt: true, config: true, status: true, isEphemeral: true } }).execute(); +const items = await db.agent.findMany({ select: { id: true, createdAt: true, updatedAt: true, ownerId: true, databaseId: true, personaId: true, parentId: true, name: true, systemPrompt: true, config: true, status: true, isEphemeral: true } }).execute(); // Get one by id -const item = await db.agent.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, ownerId: true, personaId: true, parentId: true, name: true, systemPrompt: true, config: true, status: true, isEphemeral: true } }).execute(); +const item = await db.agent.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, ownerId: true, databaseId: true, personaId: true, parentId: true, name: true, systemPrompt: true, config: true, status: true, isEphemeral: true } }).execute(); // Create -const created = await db.agent.create({ data: { ownerId: '', personaId: '', parentId: '', name: '', systemPrompt: '', config: '', status: '', isEphemeral: '' }, select: { id: true } }).execute(); +const created = await db.agent.create({ data: { ownerId: '', databaseId: '', personaId: '', parentId: '', name: '', systemPrompt: '', config: '', status: '', isEphemeral: '' }, select: { id: true } }).execute(); // Update const updated = await db.agent.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute(); @@ -120,6 +122,7 @@ CRUD operations for AgentThread records. | `createdAt` | Datetime | No | | `updatedAt` | Datetime | No | | `ownerId` | UUID | Yes | +| `databaseId` | UUID | Yes | | `status` | String | Yes | | `isArchived` | Boolean | Yes | | `archivedAt` | Datetime | Yes | @@ -136,13 +139,13 @@ CRUD operations for AgentThread records. ```typescript // List all agentThread records -const items = await db.agentThread.findMany({ select: { id: true, createdAt: true, updatedAt: true, ownerId: true, status: true, isArchived: true, archivedAt: true, title: true, mode: true, model: true, systemPrompt: true, tags: true, promptTemplateId: true, agentId: true, parentThreadId: true } }).execute(); +const items = await db.agentThread.findMany({ select: { id: true, createdAt: true, updatedAt: true, ownerId: true, databaseId: true, status: true, isArchived: true, archivedAt: true, title: true, mode: true, model: true, systemPrompt: true, tags: true, promptTemplateId: true, agentId: true, parentThreadId: true } }).execute(); // Get one by id -const item = await db.agentThread.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, ownerId: true, status: true, isArchived: true, archivedAt: true, title: true, mode: true, model: true, systemPrompt: true, tags: true, promptTemplateId: true, agentId: true, parentThreadId: true } }).execute(); +const item = await db.agentThread.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, ownerId: true, databaseId: true, status: true, isArchived: true, archivedAt: true, title: true, mode: true, model: true, systemPrompt: true, tags: true, promptTemplateId: true, agentId: true, parentThreadId: true } }).execute(); // Create -const created = await db.agentThread.create({ data: { ownerId: '', status: '', isArchived: '', archivedAt: '', title: '', mode: '', model: '', systemPrompt: '', tags: '', promptTemplateId: '', agentId: '', parentThreadId: '' }, select: { id: true } }).execute(); +const created = await db.agentThread.create({ data: { ownerId: '', databaseId: '', status: '', isArchived: '', archivedAt: '', title: '', mode: '', model: '', systemPrompt: '', tags: '', promptTemplateId: '', agentId: '', parentThreadId: '' }, select: { id: true } }).execute(); // Update const updated = await db.agentThread.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute(); @@ -165,6 +168,7 @@ CRUD operations for AgentMessage records. | `actorId` | UUID | Yes | | `parts` | JSON | Yes | | `threadId` | UUID | Yes | +| `databaseId` | UUID | Yes | | `authorRole` | String | Yes | | `model` | String | Yes | | `agentId` | UUID | Yes | @@ -173,13 +177,13 @@ CRUD operations for AgentMessage records. ```typescript // List all agentMessage records -const items = await db.agentMessage.findMany({ select: { id: true, createdAt: true, updatedAt: true, actorId: true, parts: true, threadId: true, authorRole: true, model: true, agentId: true } }).execute(); +const items = await db.agentMessage.findMany({ select: { id: true, createdAt: true, updatedAt: true, actorId: true, parts: true, threadId: true, databaseId: true, authorRole: true, model: true, agentId: true } }).execute(); // Get one by id -const item = await db.agentMessage.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, actorId: true, parts: true, threadId: true, authorRole: true, model: true, agentId: true } }).execute(); +const item = await db.agentMessage.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, actorId: true, parts: true, threadId: true, databaseId: true, authorRole: true, model: true, agentId: true } }).execute(); // Create -const created = await db.agentMessage.create({ data: { actorId: '', parts: '', threadId: '', authorRole: '', model: '', agentId: '' }, select: { id: true } }).execute(); +const created = await db.agentMessage.create({ data: { actorId: '', parts: '', threadId: '', databaseId: '', authorRole: '', model: '', agentId: '' }, select: { id: true } }).execute(); // Update const updated = await db.agentMessage.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); @@ -202,6 +206,7 @@ CRUD operations for AgentTask records. | `actorId` | UUID | Yes | | `status` | String | Yes | | `planId` | UUID | Yes | +| `databaseId` | UUID | Yes | | `description` | String | Yes | | `source` | String | Yes | | `error` | String | Yes | @@ -216,13 +221,13 @@ CRUD operations for AgentTask records. ```typescript // List all agentTask records -const items = await db.agentTask.findMany({ select: { id: true, createdAt: true, updatedAt: true, actorId: true, status: true, planId: true, description: true, source: true, error: true, orderIndex: true, requiresApproval: true, approvalStatus: true, approvedBy: true, approvedAt: true, approvalFeedback: true } }).execute(); +const items = await db.agentTask.findMany({ select: { id: true, createdAt: true, updatedAt: true, actorId: true, status: true, planId: true, databaseId: true, description: true, source: true, error: true, orderIndex: true, requiresApproval: true, approvalStatus: true, approvedBy: true, approvedAt: true, approvalFeedback: true } }).execute(); // Get one by id -const item = await db.agentTask.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, actorId: true, status: true, planId: true, description: true, source: true, error: true, orderIndex: true, requiresApproval: true, approvalStatus: true, approvedBy: true, approvedAt: true, approvalFeedback: true } }).execute(); +const item = await db.agentTask.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, actorId: true, status: true, planId: true, databaseId: true, description: true, source: true, error: true, orderIndex: true, requiresApproval: true, approvalStatus: true, approvedBy: true, approvedAt: true, approvalFeedback: true } }).execute(); // Create -const created = await db.agentTask.create({ data: { actorId: '', status: '', planId: '', description: '', source: '', error: '', orderIndex: '', requiresApproval: '', approvalStatus: '', approvedBy: '', approvedAt: '', approvalFeedback: '' }, select: { id: true } }).execute(); +const created = await db.agentTask.create({ data: { actorId: '', status: '', planId: '', databaseId: '', description: '', source: '', error: '', orderIndex: '', requiresApproval: '', approvalStatus: '', approvedBy: '', approvedAt: '', approvalFeedback: '' }, select: { id: true } }).execute(); // Update const updated = await db.agentTask.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); @@ -244,6 +249,7 @@ CRUD operations for AgentPrompt records. | `updatedAt` | Datetime | No | | `createdBy` | UUID | Yes | | `updatedBy` | UUID | Yes | +| `databaseId` | UUID | Yes | | `name` | String | Yes | | `content` | String | Yes | | `description` | String | Yes | @@ -254,13 +260,13 @@ CRUD operations for AgentPrompt records. ```typescript // List all agentPrompt records -const items = await db.agentPrompt.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, name: true, content: true, description: true, isDefault: true, metadata: true } }).execute(); +const items = await db.agentPrompt.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, databaseId: true, name: true, content: true, description: true, isDefault: true, metadata: true } }).execute(); // Get one by id -const item = await db.agentPrompt.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, name: true, content: true, description: true, isDefault: true, metadata: true } }).execute(); +const item = await db.agentPrompt.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, databaseId: true, name: true, content: true, description: true, isDefault: true, metadata: true } }).execute(); // Create -const created = await db.agentPrompt.create({ data: { createdBy: '', updatedBy: '', name: '', content: '', description: '', isDefault: '', metadata: '' }, select: { id: true } }).execute(); +const created = await db.agentPrompt.create({ data: { createdBy: '', updatedBy: '', databaseId: '', name: '', content: '', description: '', isDefault: '', metadata: '' }, select: { id: true } }).execute(); // Update const updated = await db.agentPrompt.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); @@ -323,6 +329,7 @@ CRUD operations for AgentPersona records. | `updatedAt` | Datetime | No | | `createdBy` | UUID | Yes | | `updatedBy` | UUID | Yes | +| `databaseId` | UUID | Yes | | `slug` | String | Yes | | `name` | String | Yes | | `description` | String | Yes | @@ -335,13 +342,13 @@ CRUD operations for AgentPersona records. ```typescript // List all agentPersona records -const items = await db.agentPersona.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, slug: true, name: true, description: true, systemPrompt: true, resources: true, config: true, isActive: true } }).execute(); +const items = await db.agentPersona.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, databaseId: true, slug: true, name: true, description: true, systemPrompt: true, resources: true, config: true, isActive: true } }).execute(); // Get one by id -const item = await db.agentPersona.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, slug: true, name: true, description: true, systemPrompt: true, resources: true, config: true, isActive: true } }).execute(); +const item = await db.agentPersona.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, databaseId: true, slug: true, name: true, description: true, systemPrompt: true, resources: true, config: true, isActive: true } }).execute(); // Create -const created = await db.agentPersona.create({ data: { createdBy: '', updatedBy: '', slug: '', name: '', description: '', systemPrompt: '', resources: '', config: '', isActive: '' }, select: { id: true } }).execute(); +const created = await db.agentPersona.create({ data: { createdBy: '', updatedBy: '', databaseId: '', slug: '', name: '', description: '', systemPrompt: '', resources: '', config: '', isActive: '' }, select: { id: true } }).execute(); // Update const updated = await db.agentPersona.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); @@ -363,6 +370,7 @@ CRUD operations for AgentResource records. | `updatedAt` | Datetime | No | | `createdBy` | UUID | Yes | | `updatedBy` | UUID | Yes | +| `databaseId` | UUID | Yes | | `slug` | String | Yes | | `kind` | String | Yes | | `title` | String | Yes | @@ -388,13 +396,13 @@ CRUD operations for AgentResource records. ```typescript // List all agentResource records -const items = await db.agentResource.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, slug: true, kind: true, title: true, description: true, body: true, keywords: true, isActive: true, metadata: true, isArchived: true, archivedAt: true, search: true, embedding: true, embeddingUpdatedAt: true, searchTsvRank: true, embeddingVectorDistance: true, kindTrgmSimilarity: true, titleTrgmSimilarity: true, descriptionTrgmSimilarity: true, bodyTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.agentResource.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, databaseId: true, slug: true, kind: true, title: true, description: true, body: true, keywords: true, isActive: true, metadata: true, isArchived: true, archivedAt: true, search: true, embedding: true, embeddingUpdatedAt: true, searchTsvRank: true, embeddingVectorDistance: true, kindTrgmSimilarity: true, titleTrgmSimilarity: true, descriptionTrgmSimilarity: true, bodyTrgmSimilarity: true, searchScore: true } }).execute(); // Get one by id -const item = await db.agentResource.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, slug: true, kind: true, title: true, description: true, body: true, keywords: true, isActive: true, metadata: true, isArchived: true, archivedAt: true, search: true, embedding: true, embeddingUpdatedAt: true, searchTsvRank: true, embeddingVectorDistance: true, kindTrgmSimilarity: true, titleTrgmSimilarity: true, descriptionTrgmSimilarity: true, bodyTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.agentResource.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, databaseId: true, slug: true, kind: true, title: true, description: true, body: true, keywords: true, isActive: true, metadata: true, isArchived: true, archivedAt: true, search: true, embedding: true, embeddingUpdatedAt: true, searchTsvRank: true, embeddingVectorDistance: true, kindTrgmSimilarity: true, titleTrgmSimilarity: true, descriptionTrgmSimilarity: true, bodyTrgmSimilarity: true, searchScore: true } }).execute(); // Create -const created = await db.agentResource.create({ data: { createdBy: '', updatedBy: '', slug: '', kind: '', title: '', description: '', body: '', keywords: '', isActive: '', metadata: '', isArchived: '', archivedAt: '', search: '', embedding: '', embeddingUpdatedAt: '', searchTsvRank: '', embeddingVectorDistance: '', kindTrgmSimilarity: '', titleTrgmSimilarity: '', descriptionTrgmSimilarity: '', bodyTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.agentResource.create({ data: { createdBy: '', updatedBy: '', databaseId: '', slug: '', kind: '', title: '', description: '', body: '', keywords: '', isActive: '', metadata: '', isArchived: '', archivedAt: '', search: '', embedding: '', embeddingUpdatedAt: '', searchTsvRank: '', embeddingVectorDistance: '', kindTrgmSimilarity: '', titleTrgmSimilarity: '', descriptionTrgmSimilarity: '', bodyTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); // Update const updated = await db.agentResource.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); diff --git a/sdk/constructive-cli/src/agent/orm/input-types.ts b/sdk/constructive-cli/src/agent/orm/input-types.ts index 8198498912..045bfeb438 100644 --- a/sdk/constructive-cli/src/agent/orm/input-types.ts +++ b/sdk/constructive-cli/src/agent/orm/input-types.ts @@ -240,6 +240,8 @@ export interface AgentPlan { ownerId?: string | null; /** Foreign key to agent_thread */ threadId?: string | null; + /** Database that owns this resource (database-scoped isolation) */ + databaseId?: string | null; /** Human-readable plan name */ title?: string | null; /** Overall goal or context for this plan */ @@ -254,6 +256,8 @@ export interface Agent { updatedAt?: string | null; /** Human who owns/manages this agent */ ownerId?: string | null; + /** Database that owns this resource (database-scoped isolation) */ + databaseId?: string | null; /** Persona template this agent was created from */ personaId?: string | null; /** Parent agent (for sub-agent delegation hierarchy) */ @@ -276,6 +280,8 @@ export interface AgentThread { updatedAt?: string | null; /** User who owns this thread */ ownerId?: string | null; + /** Database that owns this resource (database-scoped isolation) */ + databaseId?: string | null; /** Current status of this thread */ status?: string | null; /** Whether this record has been archived by the user */ @@ -310,6 +316,8 @@ export interface AgentMessage { parts?: Record | null; /** Foreign key to agent_thread */ threadId?: string | null; + /** Database that owns this resource (database-scoped isolation) */ + databaseId?: string | null; /** Who authored this message: user or assistant */ authorRole?: string | null; /** LLM model that generated this response */ @@ -328,6 +336,8 @@ export interface AgentTask { status?: string | null; /** Foreign key to agent_plan */ planId?: string | null; + /** Database that owns this resource (database-scoped isolation) */ + databaseId?: string | null; /** Natural-language description of the work to do */ description?: string | null; /** Who created the task: agent or user */ @@ -354,6 +364,8 @@ export interface AgentPrompt { updatedAt?: string | null; createdBy?: string | null; updatedBy?: string | null; + /** Database that owns this resource (database-scoped isolation) */ + databaseId?: string | null; /** Unique name for lookup (e.g. default, code-review, sales-assistant) */ name?: string | null; /** The system prompt template content */ @@ -386,6 +398,8 @@ export interface AgentPersona { updatedAt?: string | null; createdBy?: string | null; updatedBy?: string | null; + /** Database that owns this resource (database-scoped isolation) */ + databaseId?: string | null; /** Unique human-readable identifier for this persona */ slug?: string | null; /** Display name for this persona */ @@ -408,6 +422,8 @@ export interface AgentResource { updatedAt?: string | null; createdBy?: string | null; updatedBy?: string | null; + /** Database that owns this resource (database-scoped isolation) */ + databaseId?: string | null; /** Unique human-readable identifier for portable references */ slug?: string | null; /** Resource type: skill, knowledge, or convention */ @@ -512,6 +528,7 @@ export type AgentPlanSelect = { updatedAt?: boolean; ownerId?: boolean; threadId?: boolean; + databaseId?: boolean; title?: boolean; description?: boolean; status?: boolean; @@ -530,6 +547,7 @@ export type AgentSelect = { createdAt?: boolean; updatedAt?: boolean; ownerId?: boolean; + databaseId?: boolean; personaId?: boolean; parentId?: boolean; name?: boolean; @@ -567,6 +585,7 @@ export type AgentThreadSelect = { createdAt?: boolean; updatedAt?: boolean; ownerId?: boolean; + databaseId?: boolean; status?: boolean; isArchived?: boolean; archivedAt?: boolean; @@ -613,6 +632,7 @@ export type AgentMessageSelect = { actorId?: boolean; parts?: boolean; threadId?: boolean; + databaseId?: boolean; authorRole?: boolean; model?: boolean; agentId?: boolean; @@ -630,6 +650,7 @@ export type AgentTaskSelect = { actorId?: boolean; status?: boolean; planId?: boolean; + databaseId?: boolean; description?: boolean; source?: boolean; error?: boolean; @@ -649,6 +670,7 @@ export type AgentPromptSelect = { updatedAt?: boolean; createdBy?: boolean; updatedBy?: boolean; + databaseId?: boolean; name?: boolean; content?: boolean; description?: boolean; @@ -676,6 +698,7 @@ export type AgentPersonaSelect = { updatedAt?: boolean; createdBy?: boolean; updatedBy?: boolean; + databaseId?: boolean; slug?: boolean; name?: boolean; description?: boolean; @@ -696,6 +719,7 @@ export type AgentResourceSelect = { updatedAt?: boolean; createdBy?: boolean; updatedBy?: boolean; + databaseId?: boolean; slug?: boolean; kind?: boolean; title?: boolean; @@ -735,6 +759,8 @@ export interface AgentPlanFilter { ownerId?: UUIDFilter; /** Filter by the object’s `threadId` field. */ threadId?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; /** Filter by the object’s `title` field. */ title?: StringFilter; /** Filter by the object’s `description` field. */ @@ -763,6 +789,8 @@ export interface AgentFilter { updatedAt?: DatetimeFilter; /** Filter by the object’s `ownerId` field. */ ownerId?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; /** Filter by the object’s `personaId` field. */ personaId?: UUIDFilter; /** Filter by the object’s `parentId` field. */ @@ -813,6 +841,8 @@ export interface AgentThreadFilter { updatedAt?: DatetimeFilter; /** Filter by the object’s `ownerId` field. */ ownerId?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; /** Filter by the object’s `status` field. */ status?: StringFilter; /** Filter by the object’s `isArchived` field. */ @@ -879,6 +909,8 @@ export interface AgentMessageFilter { parts?: JSONFilter; /** Filter by the object’s `threadId` field. */ threadId?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; /** Filter by the object’s `authorRole` field. */ authorRole?: StringFilter; /** Filter by the object’s `model` field. */ @@ -911,6 +943,8 @@ export interface AgentTaskFilter { status?: StringFilter; /** Filter by the object’s `planId` field. */ planId?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; /** Filter by the object’s `description` field. */ description?: StringFilter; /** Filter by the object’s `source` field. */ @@ -949,6 +983,8 @@ export interface AgentPromptFilter { createdBy?: UUIDFilter; /** Filter by the object’s `updatedBy` field. */ updatedBy?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; /** Filter by the object’s `content` field. */ @@ -1005,6 +1041,8 @@ export interface AgentPersonaFilter { createdBy?: UUIDFilter; /** Filter by the object’s `updatedBy` field. */ updatedBy?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; /** Filter by the object’s `slug` field. */ slug?: StringFilter; /** Filter by the object’s `name` field. */ @@ -1041,6 +1079,8 @@ export interface AgentResourceFilter { createdBy?: UUIDFilter; /** Filter by the object’s `updatedBy` field. */ updatedBy?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; /** Filter by the object’s `slug` field. */ slug?: StringTrgmFilter; /** Filter by the object’s `kind` field. */ @@ -1113,6 +1153,8 @@ export type AgentPlanOrderBy = | 'OWNER_ID_DESC' | 'THREAD_ID_ASC' | 'THREAD_ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' | 'TITLE_ASC' | 'TITLE_DESC' | 'DESCRIPTION_ASC' @@ -1131,6 +1173,8 @@ export type AgentOrderBy = | 'UPDATED_AT_DESC' | 'OWNER_ID_ASC' | 'OWNER_ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' | 'PERSONA_ID_ASC' | 'PERSONA_ID_DESC' | 'PARENT_ID_ASC' @@ -1157,6 +1201,8 @@ export type AgentThreadOrderBy = | 'UPDATED_AT_DESC' | 'OWNER_ID_ASC' | 'OWNER_ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' | 'STATUS_ASC' | 'STATUS_DESC' | 'IS_ARCHIVED_ASC' @@ -1195,6 +1241,8 @@ export type AgentMessageOrderBy = | 'PARTS_DESC' | 'THREAD_ID_ASC' | 'THREAD_ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' | 'AUTHOR_ROLE_ASC' | 'AUTHOR_ROLE_DESC' | 'MODEL_ASC' @@ -1217,6 +1265,8 @@ export type AgentTaskOrderBy = | 'STATUS_DESC' | 'PLAN_ID_ASC' | 'PLAN_ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' | 'DESCRIPTION_ASC' | 'DESCRIPTION_DESC' | 'SOURCE_ASC' @@ -1249,6 +1299,8 @@ export type AgentPromptOrderBy = | 'CREATED_BY_DESC' | 'UPDATED_BY_ASC' | 'UPDATED_BY_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' | 'NAME_ASC' | 'NAME_DESC' | 'CONTENT_ASC' @@ -1297,6 +1349,8 @@ export type AgentPersonaOrderBy = | 'CREATED_BY_DESC' | 'UPDATED_BY_ASC' | 'UPDATED_BY_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' | 'SLUG_ASC' | 'SLUG_DESC' | 'NAME_ASC' @@ -1325,6 +1379,8 @@ export type AgentResourceOrderBy = | 'CREATED_BY_DESC' | 'UPDATED_BY_ASC' | 'UPDATED_BY_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' | 'SLUG_ASC' | 'SLUG_DESC' | 'KIND_ASC' @@ -1371,6 +1427,7 @@ export interface CreateAgentPlanInput { agentPlan: { ownerId?: string; threadId: string; + databaseId: string; title: string; description?: string; status?: string; @@ -1379,6 +1436,7 @@ export interface CreateAgentPlanInput { export interface AgentPlanPatch { ownerId?: string | null; threadId?: string | null; + databaseId?: string | null; title?: string | null; description?: string | null; status?: string | null; @@ -1396,6 +1454,7 @@ export interface CreateAgentInput { clientMutationId?: string; agent: { ownerId?: string; + databaseId: string; personaId?: string; parentId?: string; name: string; @@ -1407,6 +1466,7 @@ export interface CreateAgentInput { } export interface AgentPatch { ownerId?: string | null; + databaseId?: string | null; personaId?: string | null; parentId?: string | null; name?: string | null; @@ -1428,6 +1488,7 @@ export interface CreateAgentThreadInput { clientMutationId?: string; agentThread: { ownerId?: string; + databaseId: string; status?: string; isArchived?: boolean; archivedAt?: string; @@ -1443,6 +1504,7 @@ export interface CreateAgentThreadInput { } export interface AgentThreadPatch { ownerId?: string | null; + databaseId?: string | null; status?: string | null; isArchived?: boolean | null; archivedAt?: string | null; @@ -1470,6 +1532,7 @@ export interface CreateAgentMessageInput { actorId?: string; parts?: Record; threadId: string; + databaseId: string; authorRole: string; model?: string; agentId?: string; @@ -1479,6 +1542,7 @@ export interface AgentMessagePatch { actorId?: string | null; parts?: Record | null; threadId?: string | null; + databaseId?: string | null; authorRole?: string | null; model?: string | null; agentId?: string | null; @@ -1498,6 +1562,7 @@ export interface CreateAgentTaskInput { actorId?: string; status?: string; planId: string; + databaseId: string; description: string; source?: string; error?: string; @@ -1513,6 +1578,7 @@ export interface AgentTaskPatch { actorId?: string | null; status?: string | null; planId?: string | null; + databaseId?: string | null; description?: string | null; source?: string | null; error?: string | null; @@ -1537,6 +1603,7 @@ export interface CreateAgentPromptInput { agentPrompt: { createdBy?: string; updatedBy?: string; + databaseId: string; name: string; content: string; description?: string; @@ -1547,6 +1614,7 @@ export interface CreateAgentPromptInput { export interface AgentPromptPatch { createdBy?: string | null; updatedBy?: string | null; + databaseId?: string | null; name?: string | null; content?: string | null; description?: string | null; @@ -1595,6 +1663,7 @@ export interface CreateAgentPersonaInput { agentPersona: { createdBy?: string; updatedBy?: string; + databaseId: string; slug: string; name: string; description?: string; @@ -1607,6 +1676,7 @@ export interface CreateAgentPersonaInput { export interface AgentPersonaPatch { createdBy?: string | null; updatedBy?: string | null; + databaseId?: string | null; slug?: string | null; name?: string | null; description?: string | null; @@ -1629,6 +1699,7 @@ export interface CreateAgentResourceInput { agentResource: { createdBy?: string; updatedBy?: string; + databaseId: string; slug: string; kind?: string; title: string; @@ -1647,6 +1718,7 @@ export interface CreateAgentResourceInput { export interface AgentResourcePatch { createdBy?: string | null; updatedBy?: string | null; + databaseId?: string | null; slug?: string | null; kind?: string | null; title?: string | null; @@ -1893,6 +1965,8 @@ export interface AgentPlanInput { ownerId?: string; /** Foreign key to agent_thread */ threadId: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; /** Human-readable plan name */ title: string; /** Overall goal or context for this plan */ @@ -1907,6 +1981,8 @@ export interface AgentInput { updatedAt?: string; /** Human who owns/manages this agent */ ownerId?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; /** Persona template this agent was created from */ personaId?: string; /** Parent agent (for sub-agent delegation hierarchy) */ @@ -1929,6 +2005,8 @@ export interface AgentThreadInput { updatedAt?: string; /** User who owns this thread */ ownerId?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; /** Current status of this thread */ status?: string; /** Whether this record has been archived by the user */ @@ -1963,6 +2041,8 @@ export interface AgentMessageInput { parts?: Record; /** Foreign key to agent_thread */ threadId: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; /** Who authored this message: user or assistant */ authorRole: string; /** LLM model that generated this response */ @@ -1981,6 +2061,8 @@ export interface AgentTaskInput { status?: string; /** Foreign key to agent_plan */ planId: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; /** Natural-language description of the work to do */ description: string; /** Who created the task: agent or user */ @@ -2007,6 +2089,8 @@ export interface AgentPromptInput { updatedAt?: string; createdBy?: string; updatedBy?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; /** Unique name for lookup (e.g. default, code-review, sales-assistant) */ name: string; /** The system prompt template content */ @@ -2038,6 +2122,8 @@ export interface AgentPersonaInput { updatedAt?: string; createdBy?: string; updatedBy?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; /** Unique human-readable identifier for this persona */ slug: string; /** Display name for this persona */ @@ -2060,6 +2146,8 @@ export interface AgentResourceInput { updatedAt?: string; createdBy?: string; updatedBy?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; /** Unique human-readable identifier for portable references */ slug: string; /** Resource type: skill, knowledge, or convention */ @@ -2099,6 +2187,8 @@ export interface AgentTaskFilter { status?: StringFilter; /** Filter by the object’s `planId` field. */ planId?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; /** Filter by the object’s `description` field. */ description?: StringFilter; /** Filter by the object’s `source` field. */ @@ -2136,6 +2226,8 @@ export interface AgentThreadFilter { updatedAt?: DatetimeFilter; /** Filter by the object’s `ownerId` field. */ ownerId?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; /** Filter by the object’s `status` field. */ status?: StringFilter; /** Filter by the object’s `isArchived` field. */ @@ -2203,6 +2295,8 @@ export interface AgentMessageFilter { parts?: JSONFilter; /** Filter by the object’s `threadId` field. */ threadId?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; /** Filter by the object’s `authorRole` field. */ authorRole?: StringFilter; /** Filter by the object’s `model` field. */ @@ -2232,6 +2326,8 @@ export interface AgentFilter { updatedAt?: DatetimeFilter; /** Filter by the object’s `ownerId` field. */ ownerId?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; /** Filter by the object’s `personaId` field. */ personaId?: UUIDFilter; /** Filter by the object’s `parentId` field. */ @@ -2285,6 +2381,8 @@ export interface AgentPlanFilter { ownerId?: UUIDFilter; /** Filter by the object’s `threadId` field. */ threadId?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; /** Filter by the object’s `title` field. */ title?: StringFilter; /** Filter by the object’s `description` field. */ @@ -2563,6 +2661,8 @@ export interface AgentPromptFilter { createdBy?: UUIDFilter; /** Filter by the object’s `updatedBy` field. */ updatedBy?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; /** Filter by the object’s `content` field. */ @@ -2627,6 +2727,8 @@ export interface AgentPersonaFilter { createdBy?: UUIDFilter; /** Filter by the object’s `updatedBy` field. */ updatedBy?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; /** Filter by the object’s `slug` field. */ slug?: StringFilter; /** Filter by the object’s `name` field. */ @@ -2681,6 +2783,8 @@ export interface AgentResourceFilter { createdBy?: UUIDFilter; /** Filter by the object’s `updatedBy` field. */ updatedBy?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; /** Filter by the object’s `slug` field. */ slug?: StringTrgmFilter; /** Filter by the object’s `kind` field. */ diff --git a/sdk/constructive-cli/src/api/README.md b/sdk/constructive-cli/src/api/README.md index e6bc4e49c7..b0a098a1fc 100644 --- a/sdk/constructive-cli/src/api/README.md +++ b/sdk/constructive-cli/src/api/README.md @@ -10,7 +10,7 @@ - **Tables:** 46 - **Custom queries:** 1 -- **Custom mutations:** 9 +- **Custom mutations:** 7 **Generators:** ORM, CLI diff --git a/sdk/constructive-cli/src/api/cli/README.md b/sdk/constructive-cli/src/api/cli/README.md index f1b9749bc9..ad7c1d5f3d 100644 --- a/sdk/constructive-cli/src/api/cli/README.md +++ b/sdk/constructive-cli/src/api/cli/README.md @@ -70,33 +70,21 @@ csdk auth set-token | `rls-setting` | rlsSetting CRUD operations | | `sql-action` | sqlAction CRUD operations | | `database-setting` | databaseSetting CRUD operations | -| `webauthn-setting` | webauthnSetting CRUD operations | | `ast-migration` | astMigration CRUD operations | +| `webauthn-setting` | webauthnSetting CRUD operations | | `apply-registry-defaults` | applyRegistryDefaults | | `accept-database-transfer` | acceptDatabaseTransfer | | `cancel-database-transfer` | cancelDatabaseTransfer | | `reject-database-transfer` | rejectDatabaseTransfer | -| `provision-database-with-user` | provisionDatabaseWithUser | -| `bootstrap-user` | bootstrapUser | | `set-field-order` | setFieldOrder | | `apply-rls` | applyRls | -| `create-user-database` | Creates a new user database with all required modules, permissions, and RLS policies. - -Parameters: - - database_name: Name for the new database (required) - - owner_id: UUID of the owner user (required) - - include_invites: Include invite system (default: true) - - include_groups: Include group-level memberships (default: false) - - include_levels: Include events/analytics (default: false) - - bitlen: Bit length for permission masks (default: 64) - - tokens_expiration: Token expiration interval (default: 30 days) +| `request-database` | Requests a database and returns a ticket (database_provision_module row) to poll. -Returns the database_id UUID of the newly created database. +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 with exactly the requested modules. Poll the ticket until status = 'completed'; it then carries database_id and fulfilled_at. Example usage: - SELECT metaschema_public.create_user_database('my_app', 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'::uuid); - SELECT metaschema_public.create_user_database('my_app', 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'::uuid, true, true); -- with invites and groups - | + SELECT * FROM metaschema_public.request_database('my_app', 'example.com', preset_slug := 'full'); + SELECT * FROM metaschema_public.request_database('my_app', 'example.com', modules := '["users_module", "emails_module"]'::jsonb); | | `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, @@ -232,6 +220,7 @@ CRUD operations for Table records. | `pluralName` | String | | `singularName` | String | | `tags` | String | +| `stepUp` | JSON | | `partitioned` | Boolean | | `partitionStrategy` | String | | `partitionKeyNames` | String | @@ -241,7 +230,7 @@ CRUD operations for Table records. | `inheritsId` | UUID | **Required create fields:** `schemaId`, `name` -**Optional create fields (backend defaults):** `databaseId`, `label`, `description`, `smartTags`, `category`, `useRls`, `timestamps`, `peoplestamps`, `pluralName`, `singularName`, `tags`, `partitioned`, `partitionStrategy`, `partitionKeyNames`, `partitionKeyTypes`, `inheritsId` +**Optional create fields (backend defaults):** `databaseId`, `label`, `description`, `smartTags`, `category`, `useRls`, `timestamps`, `peoplestamps`, `pluralName`, `singularName`, `tags`, `stepUp`, `partitioned`, `partitionStrategy`, `partitionKeyNames`, `partitionKeyTypes`, `inheritsId` ### `check-constraint` @@ -303,6 +292,8 @@ CRUD operations for Field records. | `isRequired` | Boolean | | `apiRequired` | Boolean | | `defaultValue` | JSON | +| `generationExpression` | JSON | +| `generationType` | String | | `type` | JSON | | `fieldOrder` | Int | | `regexp` | String | @@ -316,7 +307,7 @@ CRUD operations for Field records. | `updatedAt` | Datetime | **Required create fields:** `tableId`, `name`, `type` -**Optional create fields (backend defaults):** `databaseId`, `label`, `description`, `smartTags`, `isRequired`, `apiRequired`, `defaultValue`, `fieldOrder`, `regexp`, `chk`, `chkExpr`, `min`, `max`, `tags`, `category` +**Optional create fields (backend defaults):** `databaseId`, `label`, `description`, `smartTags`, `isRequired`, `apiRequired`, `defaultValue`, `generationExpression`, `generationType`, `fieldOrder`, `regexp`, `chk`, `chkExpr`, `min`, `max`, `tags`, `category` ### `spatial-relation` @@ -485,6 +476,7 @@ CRUD operations for Policy records. | `disabled` | Boolean | | `policyType` | String | | `data` | JSON | +| `withCheck` | JSON | | `smartTags` | JSON | | `category` | ObjectCategory | | `tags` | String | @@ -492,7 +484,7 @@ CRUD operations for Policy records. | `updatedAt` | Datetime | **Required create fields:** `tableId` -**Optional create fields (backend defaults):** `databaseId`, `name`, `granteeName`, `privilege`, `permissive`, `disabled`, `policyType`, `data`, `smartTags`, `category`, `tags` +**Optional create fields (backend defaults):** `databaseId`, `name`, `granteeName`, `privilege`, `permissive`, `disabled`, `policyType`, `data`, `withCheck`, `smartTags`, `category`, `tags` ### `primary-key-constraint` @@ -1405,10 +1397,11 @@ CRUD operations for Database records. | `name` | String | | `label` | String | | `hash` | UUID | +| `platform` | Boolean | | `createdAt` | Datetime | | `updatedAt` | Datetime | -**Optional create fields (backend defaults):** `ownerId`, `schemaHash`, `name`, `label`, `hash` +**Optional create fields (backend defaults):** `ownerId`, `schemaHash`, `name`, `label`, `hash`, `platform` ### `rls-setting` @@ -1512,6 +1505,39 @@ CRUD operations for DatabaseSetting records. **Required create fields:** `databaseId` **Optional create fields (backend defaults):** `enableAggregates`, `enablePostgis`, `enableSearch`, `enableDirectUploads`, `enablePresignedUploads`, `enableManyToMany`, `enableConnectionFilter`, `enableLtree`, `enableLlm`, `enableRealtime`, `enableBulk`, `enableI18N`, `options`, `labels`, `annotations` +### `ast-migration` + +CRUD operations for AstMigration records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all astMigration records | +| `find-first` | Find first matching astMigration record | +| `get` | Get a astMigration by id | +| `create` | Create a new astMigration | +| `update` | Update an existing astMigration | +| `delete` | Delete a astMigration | + +**Fields:** + +| Field | Type | +|-------|------| +| `id` | Int | +| `databaseId` | UUID | +| `name` | String | +| `requires` | String | +| `payload` | JSON | +| `deploys` | String | +| `deploy` | JSON | +| `revert` | JSON | +| `verify` | JSON | +| `createdAt` | Datetime | +| `action` | String | +| `actionId` | UUID | +| `actorId` | UUID | + +**Optional create fields (backend defaults):** `databaseId`, `name`, `requires`, `payload`, `deploys`, `deploy`, `revert`, `verify`, `action`, `actionId`, `actorId` + ### `webauthn-setting` CRUD operations for WebauthnSetting records. @@ -1551,39 +1577,6 @@ CRUD operations for WebauthnSetting records. **Required create fields:** `databaseId` **Optional create fields (backend defaults):** `schemaId`, `credentialsSchemaId`, `sessionsSchemaId`, `sessionSecretsSchemaId`, `credentialsTableId`, `sessionsTableId`, `sessionCredentialsTableId`, `sessionSecretsTableId`, `userFieldId`, `rpId`, `rpName`, `originAllowlist`, `attestationType`, `requireUserVerification`, `residentKey`, `challengeExpirySeconds` -### `ast-migration` - -CRUD operations for AstMigration records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all astMigration records | -| `find-first` | Find first matching astMigration record | -| `get` | Get a astMigration by id | -| `create` | Create a new astMigration | -| `update` | Update an existing astMigration | -| `delete` | Delete a astMigration | - -**Fields:** - -| Field | Type | -|-------|------| -| `id` | Int | -| `databaseId` | UUID | -| `name` | String | -| `requires` | String | -| `payload` | JSON | -| `deploys` | String | -| `deploy` | JSON | -| `revert` | JSON | -| `verify` | JSON | -| `createdAt` | Datetime | -| `action` | String | -| `actionId` | UUID | -| `actorId` | UUID | - -**Optional create fields (backend defaults):** `databaseId`, `name`, `requires`, `payload`, `deploys`, `deploy`, `revert`, `verify`, `action`, `actionId`, `actorId` - ## Custom Operations ### `apply-registry-defaults` @@ -1634,40 +1627,6 @@ rejectDatabaseTransfer | `--input.clientMutationId` | String | | `--input.transferId` | UUID | -### `provision-database-with-user` - -provisionDatabaseWithUser - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `--input.clientMutationId` | String | - | `--input.pDatabaseName` | String | - | `--input.pDomain` | String | - | `--input.pSubdomain` | String | - | `--input.pModules` | JSON | - | `--input.pOptions` | JSON | - -### `bootstrap-user` - -bootstrapUser - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `--input.clientMutationId` | String | - | `--input.targetDatabaseId` | UUID | - | `--input.password` | String | - | `--input.isAdmin` | Boolean | - | `--input.isOwner` | Boolean | - | `--input.username` | String | - | `--input.displayName` | String | - | `--input.returnApiKey` | Boolean | - ### `set-field-order` setFieldOrder @@ -1698,25 +1657,15 @@ applyRls | `--input.permissive` | Boolean | | `--input.name` | String | -### `create-user-database` - -Creates a new user database with all required modules, permissions, and RLS policies. +### `request-database` -Parameters: - - database_name: Name for the new database (required) - - owner_id: UUID of the owner user (required) - - include_invites: Include invite system (default: true) - - include_groups: Include group-level memberships (default: false) - - include_levels: Include events/analytics (default: false) - - bitlen: Bit length for permission masks (default: 64) - - tokens_expiration: Token expiration interval (default: 30 days) +Requests a database and returns a ticket (database_provision_module row) to poll. -Returns the database_id UUID of the newly created database. +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 with exactly the requested modules. Poll the ticket until status = 'completed'; it then carries database_id and fulfilled_at. Example usage: - SELECT metaschema_public.create_user_database('my_app', 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'::uuid); - SELECT metaschema_public.create_user_database('my_app', 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'::uuid, true, true); -- with invites and groups - + SELECT * FROM metaschema_public.request_database('my_app', 'example.com', preset_slug := 'full'); + SELECT * FROM metaschema_public.request_database('my_app', 'example.com', modules := '["users_module", "emails_module"]'::jsonb); - **Type:** mutation - **Arguments:** @@ -1725,12 +1674,11 @@ Example usage: |----------|------| | `--input.clientMutationId` | String | | `--input.databaseName` | String | - | `--input.ownerId` | UUID | - | `--input.includeInvites` | Boolean | - | `--input.includeGroups` | Boolean | - | `--input.includeLevels` | Boolean | - | `--input.bitlen` | Int | - | `--input.tokensExpiration` | IntervalInput | + | `--input.domain` | String | + | `--input.presetSlug` | String | + | `--input.modules` | JSON | + | `--input.options` | JSON | + | `--input.subdomain` | String | ### `provision-bucket` diff --git a/sdk/constructive-cli/src/api/cli/commands.ts b/sdk/constructive-cli/src/api/cli/commands.ts index 149fd8340f..92d55d322d 100644 --- a/sdk/constructive-cli/src/api/cli/commands.ts +++ b/sdk/constructive-cli/src/api/cli/commands.ts @@ -50,17 +50,15 @@ import databaseCmd from './commands/database'; import rlsSettingCmd from './commands/rls-setting'; import sqlActionCmd from './commands/sql-action'; import databaseSettingCmd from './commands/database-setting'; -import webauthnSettingCmd from './commands/webauthn-setting'; import astMigrationCmd from './commands/ast-migration'; +import webauthnSettingCmd from './commands/webauthn-setting'; import applyRegistryDefaultsCmd from './commands/apply-registry-defaults'; import acceptDatabaseTransferCmd from './commands/accept-database-transfer'; import cancelDatabaseTransferCmd from './commands/cancel-database-transfer'; import rejectDatabaseTransferCmd from './commands/reject-database-transfer'; -import provisionDatabaseWithUserCmd from './commands/provision-database-with-user'; -import bootstrapUserCmd from './commands/bootstrap-user'; import setFieldOrderCmd from './commands/set-field-order'; import applyRlsCmd from './commands/apply-rls'; -import createUserDatabaseCmd from './commands/create-user-database'; +import requestDatabaseCmd from './commands/request-database'; import provisionBucketCmd from './commands/provision-bucket'; const createCommandMap: () => Record< string, @@ -116,21 +114,19 @@ const createCommandMap: () => Record< 'rls-setting': rlsSettingCmd, 'sql-action': sqlActionCmd, 'database-setting': databaseSettingCmd, - 'webauthn-setting': webauthnSettingCmd, 'ast-migration': astMigrationCmd, + 'webauthn-setting': webauthnSettingCmd, 'apply-registry-defaults': applyRegistryDefaultsCmd, 'accept-database-transfer': acceptDatabaseTransferCmd, 'cancel-database-transfer': cancelDatabaseTransferCmd, 'reject-database-transfer': rejectDatabaseTransferCmd, - 'provision-database-with-user': provisionDatabaseWithUserCmd, - 'bootstrap-user': bootstrapUserCmd, 'set-field-order': setFieldOrderCmd, 'apply-rls': applyRlsCmd, - 'create-user-database': createUserDatabaseCmd, + 'request-database': requestDatabaseCmd, 'provision-bucket': provisionBucketCmd, }); const usage = - "\ncsdk \n\nCommands:\n context Manage API contexts\n auth Manage authentication\n function function CRUD operations\n schema schema CRUD operations\n table table CRUD operations\n check-constraint checkConstraint CRUD operations\n field field CRUD operations\n spatial-relation spatialRelation CRUD operations\n foreign-key-constraint foreignKeyConstraint CRUD operations\n full-text-search fullTextSearch CRUD operations\n index index CRUD operations\n policy policy CRUD operations\n primary-key-constraint primaryKeyConstraint CRUD operations\n table-grant tableGrant CRUD operations\n trigger trigger CRUD operations\n unique-constraint uniqueConstraint CRUD operations\n view view CRUD operations\n view-table viewTable CRUD operations\n view-grant viewGrant CRUD operations\n view-rule viewRule CRUD operations\n embedding-chunk embeddingChunk CRUD operations\n schema-grant schemaGrant CRUD operations\n default-privilege defaultPrivilege CRUD operations\n enum enum CRUD operations\n composite-type compositeType CRUD operations\n api-schema apiSchema CRUD operations\n api-module apiModule CRUD operations\n domain domain CRUD operations\n site-metadatum siteMetadatum CRUD operations\n site-module siteModule CRUD operations\n site-theme siteTheme CRUD operations\n cors-setting corsSetting CRUD operations\n trigger-function triggerFunction CRUD operations\n partition partition CRUD operations\n database-transfer databaseTransfer CRUD operations\n api api CRUD operations\n site site CRUD operations\n app app CRUD operations\n api-setting apiSetting CRUD operations\n migrate-file migrateFile CRUD operations\n node-type-registry nodeTypeRegistry CRUD operations\n pubkey-setting pubkeySetting CRUD operations\n database database CRUD operations\n rls-setting rlsSetting CRUD operations\n sql-action sqlAction CRUD operations\n database-setting databaseSetting CRUD operations\n webauthn-setting webauthnSetting CRUD operations\n ast-migration astMigration CRUD operations\n apply-registry-defaults applyRegistryDefaults\n accept-database-transfer acceptDatabaseTransfer\n cancel-database-transfer cancelDatabaseTransfer\n reject-database-transfer rejectDatabaseTransfer\n provision-database-with-user provisionDatabaseWithUser\n bootstrap-user bootstrapUser\n set-field-order setFieldOrder\n apply-rls applyRls\n create-user-database Creates a new user database with all required modules, permissions, and RLS policies.\n\nParameters:\n - database_name: Name for the new database (required)\n - owner_id: UUID of the owner user (required)\n - include_invites: Include invite system (default: true)\n - include_groups: Include group-level memberships (default: false)\n - include_levels: Include events/analytics (default: false)\n - bitlen: Bit length for permission masks (default: 64)\n - tokens_expiration: Token expiration interval (default: 30 days)\n\nReturns the database_id UUID of the newly created database.\n\nExample usage:\n SELECT metaschema_public.create_user_database('my_app', 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'::uuid);\n SELECT metaschema_public.create_user_database('my_app', 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'::uuid, true, true); -- with invites and groups\n\n 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 function function CRUD operations\n schema schema CRUD operations\n table table CRUD operations\n check-constraint checkConstraint CRUD operations\n field field CRUD operations\n spatial-relation spatialRelation CRUD operations\n foreign-key-constraint foreignKeyConstraint CRUD operations\n full-text-search fullTextSearch CRUD operations\n index index CRUD operations\n policy policy CRUD operations\n primary-key-constraint primaryKeyConstraint CRUD operations\n table-grant tableGrant CRUD operations\n trigger trigger CRUD operations\n unique-constraint uniqueConstraint CRUD operations\n view view CRUD operations\n view-table viewTable CRUD operations\n view-grant viewGrant CRUD operations\n view-rule viewRule CRUD operations\n embedding-chunk embeddingChunk CRUD operations\n schema-grant schemaGrant CRUD operations\n default-privilege defaultPrivilege CRUD operations\n enum enum CRUD operations\n composite-type compositeType CRUD operations\n api-schema apiSchema CRUD operations\n api-module apiModule CRUD operations\n domain domain CRUD operations\n site-metadatum siteMetadatum CRUD operations\n site-module siteModule CRUD operations\n site-theme siteTheme CRUD operations\n cors-setting corsSetting CRUD operations\n trigger-function triggerFunction CRUD operations\n partition partition CRUD operations\n database-transfer databaseTransfer CRUD operations\n api api CRUD operations\n site site CRUD operations\n app app CRUD operations\n api-setting apiSetting CRUD operations\n migrate-file migrateFile CRUD operations\n node-type-registry nodeTypeRegistry CRUD operations\n pubkey-setting pubkeySetting CRUD operations\n database database CRUD operations\n rls-setting rlsSetting CRUD operations\n sql-action sqlAction CRUD operations\n database-setting databaseSetting CRUD operations\n ast-migration astMigration CRUD operations\n webauthn-setting webauthnSetting CRUD operations\n apply-registry-defaults applyRegistryDefaults\n accept-database-transfer acceptDatabaseTransfer\n cancel-database-transfer cancelDatabaseTransfer\n reject-database-transfer rejectDatabaseTransfer\n set-field-order setFieldOrder\n apply-rls applyRls\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 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 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/api/cli/commands/create-user-database.ts b/sdk/constructive-cli/src/api/cli/commands/create-user-database.ts deleted file mode 100644 index a31ebf6ef0..0000000000 --- a/sdk/constructive-cli/src/api/cli/commands/create-user-database.ts +++ /dev/null @@ -1,53 +0,0 @@ -/** - * CLI command for mutation createUserDatabase - * @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 { CreateUserDatabaseVariables } from '../../orm/mutation'; -import type { CreateUserDatabasePayloadSelect } from '../../orm/input-types'; -export default async ( - argv: Partial>, - prompter: Inquirerer, - _options: CLIOptions -) => { - try { - if (argv.help || argv.h) { - console.log( - "create-user-database - Creates a new user database with all required modules, permissions, and RLS policies.\n\nParameters:\n - database_name: Name for the new database (required)\n - owner_id: UUID of the owner user (required)\n - include_invites: Include invite system (default: true)\n - include_groups: Include group-level memberships (default: false)\n - include_levels: Include events/analytics (default: false)\n - bitlen: Bit length for permission masks (default: 64)\n - tokens_expiration: Token expiration interval (default: 30 days)\n\nReturns the database_id UUID of the newly created database.\n\nExample usage:\n SELECT metaschema_public.create_user_database('my_app', 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'::uuid);\n SELECT metaschema_public.create_user_database('my_app', 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'::uuid, true, true); -- with invites and groups\n\n\nUsage: create-user-database [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 - .createUserDatabase( - parsedAnswers as unknown as CreateUserDatabaseVariables, - { - select: selectFields, - } as unknown as { - select: CreateUserDatabasePayloadSelect; - } - ) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed: createUserDatabase'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -}; diff --git a/sdk/constructive-cli/src/api/cli/commands/database.ts b/sdk/constructive-cli/src/api/cli/commands/database.ts index 59dda272ff..995ad3c8fc 100644 --- a/sdk/constructive-cli/src/api/cli/commands/database.ts +++ b/sdk/constructive-cli/src/api/cli/commands/database.ts @@ -22,6 +22,7 @@ const fieldSchema: FieldSchema = { name: 'string', label: 'string', hash: 'uuid', + platform: 'boolean', createdAt: 'string', updatedAt: 'string', }; @@ -82,6 +83,7 @@ async function handleList(argv: Partial>, _prompter: Inq name: true, label: true, hash: true, + platform: true, createdAt: true, updatedAt: true, }; @@ -110,6 +112,7 @@ async function handleFindFirst(argv: Partial>, _prompter name: true, label: true, hash: true, + platform: true, createdAt: true, updatedAt: true, }; @@ -150,6 +153,7 @@ async function handleGet(argv: Partial>, prompter: Inqui name: true, label: true, hash: true, + platform: true, createdAt: true, updatedAt: true, }, @@ -202,6 +206,13 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'boolean', + name: 'platform', + message: 'platform', + required: false, + skipPrompt: true, + }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const cleanedData = stripUndefined(answers, fieldSchema) as CreateDatabaseInput['database']; @@ -214,6 +225,7 @@ async function handleCreate(argv: Partial>, prompter: In name: cleanedData.name, label: cleanedData.label, hash: cleanedData.hash, + platform: cleanedData.platform, }, select: { id: true, @@ -222,6 +234,7 @@ async function handleCreate(argv: Partial>, prompter: In name: true, label: true, hash: true, + platform: true, createdAt: true, updatedAt: true, }, @@ -280,6 +293,13 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'boolean', + name: 'platform', + message: 'platform', + required: false, + skipPrompt: true, + }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const cleanedData = stripUndefined(answers, fieldSchema) as DatabasePatch; @@ -295,6 +315,7 @@ async function handleUpdate(argv: Partial>, prompter: In name: cleanedData.name, label: cleanedData.label, hash: cleanedData.hash, + platform: cleanedData.platform, }, select: { id: true, @@ -303,6 +324,7 @@ async function handleUpdate(argv: Partial>, prompter: In name: true, label: true, hash: true, + platform: true, createdAt: true, updatedAt: true, }, diff --git a/sdk/constructive-cli/src/api/cli/commands/field.ts b/sdk/constructive-cli/src/api/cli/commands/field.ts index daa66476d1..ce152cf2c0 100644 --- a/sdk/constructive-cli/src/api/cli/commands/field.ts +++ b/sdk/constructive-cli/src/api/cli/commands/field.ts @@ -26,6 +26,8 @@ const fieldSchema: FieldSchema = { isRequired: 'boolean', apiRequired: 'boolean', defaultValue: 'json', + generationExpression: 'json', + generationType: 'string', type: 'json', fieldOrder: 'int', regexp: 'string', @@ -99,6 +101,8 @@ async function handleList(argv: Partial>, _prompter: Inq isRequired: true, apiRequired: true, defaultValue: true, + generationExpression: true, + generationType: true, type: true, fieldOrder: true, regexp: true, @@ -140,6 +144,8 @@ async function handleFindFirst(argv: Partial>, _prompter isRequired: true, apiRequired: true, defaultValue: true, + generationExpression: true, + generationType: true, type: true, fieldOrder: true, regexp: true, @@ -193,6 +199,8 @@ async function handleGet(argv: Partial>, prompter: Inqui isRequired: true, apiRequired: true, defaultValue: true, + generationExpression: true, + generationType: true, type: true, fieldOrder: true, regexp: true, @@ -280,6 +288,20 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'json', + name: 'generationExpression', + message: 'generationExpression', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'generationType', + message: 'generationType', + required: false, + skipPrompt: true, + }, { type: 'json', name: 'type', @@ -358,6 +380,8 @@ async function handleCreate(argv: Partial>, prompter: In isRequired: cleanedData.isRequired, apiRequired: cleanedData.apiRequired, defaultValue: cleanedData.defaultValue, + generationExpression: cleanedData.generationExpression, + generationType: cleanedData.generationType, type: cleanedData.type, fieldOrder: cleanedData.fieldOrder, regexp: cleanedData.regexp, @@ -379,6 +403,8 @@ async function handleCreate(argv: Partial>, prompter: In isRequired: true, apiRequired: true, defaultValue: true, + generationExpression: true, + generationType: true, type: true, fieldOrder: true, regexp: true, @@ -472,6 +498,20 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'json', + name: 'generationExpression', + message: 'generationExpression', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'generationType', + message: 'generationType', + required: false, + skipPrompt: true, + }, { type: 'json', name: 'type', @@ -553,6 +593,8 @@ async function handleUpdate(argv: Partial>, prompter: In isRequired: cleanedData.isRequired, apiRequired: cleanedData.apiRequired, defaultValue: cleanedData.defaultValue, + generationExpression: cleanedData.generationExpression, + generationType: cleanedData.generationType, type: cleanedData.type, fieldOrder: cleanedData.fieldOrder, regexp: cleanedData.regexp, @@ -574,6 +616,8 @@ async function handleUpdate(argv: Partial>, prompter: In isRequired: true, apiRequired: true, defaultValue: true, + generationExpression: true, + generationType: true, type: true, fieldOrder: true, regexp: true, diff --git a/sdk/constructive-cli/src/api/cli/commands/policy.ts b/sdk/constructive-cli/src/api/cli/commands/policy.ts index 3c47247374..e609b9f665 100644 --- a/sdk/constructive-cli/src/api/cli/commands/policy.ts +++ b/sdk/constructive-cli/src/api/cli/commands/policy.ts @@ -26,6 +26,7 @@ const fieldSchema: FieldSchema = { disabled: 'boolean', policyType: 'string', data: 'json', + withCheck: 'json', smartTags: 'json', category: 'string', tags: 'string', @@ -93,6 +94,7 @@ async function handleList(argv: Partial>, _prompter: Inq disabled: true, policyType: true, data: true, + withCheck: true, smartTags: true, category: true, tags: true, @@ -128,6 +130,7 @@ async function handleFindFirst(argv: Partial>, _prompter disabled: true, policyType: true, data: true, + withCheck: true, smartTags: true, category: true, tags: true, @@ -175,6 +178,7 @@ async function handleGet(argv: Partial>, prompter: Inqui disabled: true, policyType: true, data: true, + withCheck: true, smartTags: true, category: true, tags: true, @@ -257,6 +261,13 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'json', + name: 'withCheck', + message: 'withCheck', + required: false, + skipPrompt: true, + }, { type: 'json', name: 'smartTags', @@ -294,6 +305,7 @@ async function handleCreate(argv: Partial>, prompter: In disabled: cleanedData.disabled, policyType: cleanedData.policyType, data: cleanedData.data, + withCheck: cleanedData.withCheck, smartTags: cleanedData.smartTags, category: cleanedData.category, tags: cleanedData.tags, @@ -309,6 +321,7 @@ async function handleCreate(argv: Partial>, prompter: In disabled: true, policyType: true, data: true, + withCheck: true, smartTags: true, category: true, tags: true, @@ -397,6 +410,13 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'json', + name: 'withCheck', + message: 'withCheck', + required: false, + skipPrompt: true, + }, { type: 'json', name: 'smartTags', @@ -437,6 +457,7 @@ async function handleUpdate(argv: Partial>, prompter: In disabled: cleanedData.disabled, policyType: cleanedData.policyType, data: cleanedData.data, + withCheck: cleanedData.withCheck, smartTags: cleanedData.smartTags, category: cleanedData.category, tags: cleanedData.tags, @@ -452,6 +473,7 @@ async function handleUpdate(argv: Partial>, prompter: In disabled: true, policyType: true, data: true, + withCheck: true, smartTags: true, category: true, tags: true, diff --git a/sdk/constructive-cli/src/api/cli/commands/request-database.ts b/sdk/constructive-cli/src/api/cli/commands/request-database.ts new file mode 100644 index 0000000000..f81331a02f --- /dev/null +++ b/sdk/constructive-cli/src/api/cli/commands/request-database.ts @@ -0,0 +1,53 @@ +/** + * CLI command for mutation requestDatabase + * @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 { RequestDatabaseVariables } from '../../orm/mutation'; +import type { RequestDatabasePayloadSelect } from '../../orm/input-types'; +export default async ( + argv: Partial>, + prompter: Inquirerer, + _options: CLIOptions +) => { + try { + if (argv.help || argv.h) { + console.log( + "request-database - Requests a database and returns a ticket (database_provision_module row) to poll.\n\nPass exactly one of preset_slug or modules. The pool, presets, and owner bootstrap are private implementation details: a warm pool hit fulfills the ticket immediately (fulfilled_at set, deferred owner bootstrap), otherwise the database is cold-provisioned with exactly the requested modules. Poll the ticket until status = 'completed'; it then carries database_id and fulfilled_at.\n\nExample usage:\n SELECT * FROM metaschema_public.request_database('my_app', 'example.com', preset_slug := 'full');\n SELECT * FROM metaschema_public.request_database('my_app', 'example.com', modules := '[\"users_module\", \"emails_module\"]'::jsonb);\n\nUsage: request-database [OPTIONS]\n" + ); + 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 + .requestDatabase( + parsedAnswers as unknown as RequestDatabaseVariables, + { + select: selectFields, + } as unknown as { + select: RequestDatabasePayloadSelect; + } + ) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed: requestDatabase'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +}; diff --git a/sdk/constructive-cli/src/api/cli/commands/table.ts b/sdk/constructive-cli/src/api/cli/commands/table.ts index dfc34f2ea3..b0238cb3f0 100644 --- a/sdk/constructive-cli/src/api/cli/commands/table.ts +++ b/sdk/constructive-cli/src/api/cli/commands/table.ts @@ -30,6 +30,7 @@ const fieldSchema: FieldSchema = { pluralName: 'string', singularName: 'string', tags: 'string', + stepUp: 'json', partitioned: 'boolean', partitionStrategy: 'string', partitionKeyNames: 'string', @@ -103,6 +104,7 @@ async function handleList(argv: Partial>, _prompter: Inq pluralName: true, singularName: true, tags: true, + stepUp: true, partitioned: true, partitionStrategy: true, partitionKeyNames: true, @@ -144,6 +146,7 @@ async function handleFindFirst(argv: Partial>, _prompter pluralName: true, singularName: true, tags: true, + stepUp: true, partitioned: true, partitionStrategy: true, partitionKeyNames: true, @@ -197,6 +200,7 @@ async function handleGet(argv: Partial>, prompter: Inqui pluralName: true, singularName: true, tags: true, + stepUp: true, partitioned: true, partitionStrategy: true, partitionKeyNames: true, @@ -308,6 +312,13 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'json', + name: 'stepUp', + message: 'stepUp', + required: false, + skipPrompt: true, + }, { type: 'boolean', name: 'partitioned', @@ -363,6 +374,7 @@ async function handleCreate(argv: Partial>, prompter: In pluralName: cleanedData.pluralName, singularName: cleanedData.singularName, tags: cleanedData.tags, + stepUp: cleanedData.stepUp, partitioned: cleanedData.partitioned, partitionStrategy: cleanedData.partitionStrategy, partitionKeyNames: cleanedData.partitionKeyNames, @@ -384,6 +396,7 @@ async function handleCreate(argv: Partial>, prompter: In pluralName: true, singularName: true, tags: true, + stepUp: true, partitioned: true, partitionStrategy: true, partitionKeyNames: true, @@ -501,6 +514,13 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'json', + name: 'stepUp', + message: 'stepUp', + required: false, + skipPrompt: true, + }, { type: 'boolean', name: 'partitioned', @@ -559,6 +579,7 @@ async function handleUpdate(argv: Partial>, prompter: In pluralName: cleanedData.pluralName, singularName: cleanedData.singularName, tags: cleanedData.tags, + stepUp: cleanedData.stepUp, partitioned: cleanedData.partitioned, partitionStrategy: cleanedData.partitionStrategy, partitionKeyNames: cleanedData.partitionKeyNames, @@ -580,6 +601,7 @@ async function handleUpdate(argv: Partial>, prompter: In pluralName: true, singularName: true, tags: true, + stepUp: true, partitioned: true, partitionStrategy: true, partitionKeyNames: true, diff --git a/sdk/constructive-cli/src/api/orm/README.md b/sdk/constructive-cli/src/api/orm/README.md index 1c2ec1c782..5412c911ce 100644 --- a/sdk/constructive-cli/src/api/orm/README.md +++ b/sdk/constructive-cli/src/api/orm/README.md @@ -65,8 +65,8 @@ const db = createClient({ | `rlsSetting` | findMany, findOne, create, update, delete | | `sqlAction` | findMany, findOne, create, update, delete | | `databaseSetting` | findMany, findOne, create, update, delete | -| `webauthnSetting` | findMany, findOne, create, update, delete | | `astMigration` | findMany, findOne, create, update, delete | +| `webauthnSetting` | findMany, findOne, create, update, delete | ## Table Operations @@ -165,6 +165,7 @@ CRUD operations for Table records. | `pluralName` | String | Yes | | `singularName` | String | Yes | | `tags` | String | Yes | +| `stepUp` | JSON | Yes | | `partitioned` | Boolean | Yes | | `partitionStrategy` | String | Yes | | `partitionKeyNames` | String | Yes | @@ -177,13 +178,13 @@ CRUD operations for Table records. ```typescript // List all table records -const items = await db.table.findMany({ select: { id: true, databaseId: true, schemaId: true, name: true, label: true, description: true, smartTags: true, category: true, useRls: true, timestamps: true, peoplestamps: true, pluralName: true, singularName: true, tags: true, partitioned: true, partitionStrategy: true, partitionKeyNames: true, partitionKeyTypes: true, createdAt: true, updatedAt: true, inheritsId: true } }).execute(); +const items = await db.table.findMany({ select: { id: true, databaseId: true, schemaId: true, name: true, label: true, description: true, smartTags: true, category: true, useRls: true, timestamps: true, peoplestamps: true, pluralName: true, singularName: true, tags: true, stepUp: true, partitioned: true, partitionStrategy: true, partitionKeyNames: true, partitionKeyTypes: true, createdAt: true, updatedAt: true, inheritsId: true } }).execute(); // Get one by id -const item = await db.table.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, name: true, label: true, description: true, smartTags: true, category: true, useRls: true, timestamps: true, peoplestamps: true, pluralName: true, singularName: true, tags: true, partitioned: true, partitionStrategy: true, partitionKeyNames: true, partitionKeyTypes: true, createdAt: true, updatedAt: true, inheritsId: true } }).execute(); +const item = await db.table.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, name: true, label: true, description: true, smartTags: true, category: true, useRls: true, timestamps: true, peoplestamps: true, pluralName: true, singularName: true, tags: true, stepUp: true, partitioned: true, partitionStrategy: true, partitionKeyNames: true, partitionKeyTypes: true, createdAt: true, updatedAt: true, inheritsId: true } }).execute(); // Create -const created = await db.table.create({ data: { databaseId: '', schemaId: '', name: '', label: '', description: '', smartTags: '', category: '', useRls: '', timestamps: '', peoplestamps: '', pluralName: '', singularName: '', tags: '', partitioned: '', partitionStrategy: '', partitionKeyNames: '', partitionKeyTypes: '', inheritsId: '' }, select: { id: true } }).execute(); +const created = await db.table.create({ data: { databaseId: '', schemaId: '', name: '', label: '', description: '', smartTags: '', category: '', useRls: '', timestamps: '', peoplestamps: '', pluralName: '', singularName: '', tags: '', stepUp: '', partitioned: '', partitionStrategy: '', partitionKeyNames: '', partitionKeyTypes: '', inheritsId: '' }, select: { id: true } }).execute(); // Update const updated = await db.table.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); @@ -250,6 +251,8 @@ CRUD operations for Field records. | `isRequired` | Boolean | Yes | | `apiRequired` | Boolean | Yes | | `defaultValue` | JSON | Yes | +| `generationExpression` | JSON | Yes | +| `generationType` | String | Yes | | `type` | JSON | Yes | | `fieldOrder` | Int | Yes | | `regexp` | String | Yes | @@ -266,13 +269,13 @@ CRUD operations for Field records. ```typescript // List all field records -const items = await db.field.findMany({ select: { id: true, databaseId: true, tableId: true, name: true, label: true, description: true, smartTags: true, isRequired: true, apiRequired: true, defaultValue: true, type: true, fieldOrder: true, regexp: true, chk: true, chkExpr: true, min: true, max: true, tags: true, category: true, createdAt: true, updatedAt: true } }).execute(); +const items = await db.field.findMany({ select: { id: true, databaseId: true, tableId: true, name: true, label: true, description: true, smartTags: true, isRequired: true, apiRequired: true, defaultValue: true, generationExpression: true, generationType: true, type: true, fieldOrder: true, regexp: true, chk: true, chkExpr: true, min: true, max: true, tags: true, category: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.field.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, name: true, label: true, description: true, smartTags: true, isRequired: true, apiRequired: true, defaultValue: true, type: true, fieldOrder: true, regexp: true, chk: true, chkExpr: true, min: true, max: true, tags: true, category: true, createdAt: true, updatedAt: true } }).execute(); +const item = await db.field.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, name: true, label: true, description: true, smartTags: true, isRequired: true, apiRequired: true, defaultValue: true, generationExpression: true, generationType: true, type: true, fieldOrder: true, regexp: true, chk: true, chkExpr: true, min: true, max: true, tags: true, category: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.field.create({ data: { databaseId: '', tableId: '', name: '', label: '', description: '', smartTags: '', isRequired: '', apiRequired: '', defaultValue: '', type: '', fieldOrder: '', regexp: '', chk: '', chkExpr: '', min: '', max: '', tags: '', category: '' }, select: { id: true } }).execute(); +const created = await db.field.create({ data: { databaseId: '', tableId: '', name: '', label: '', description: '', smartTags: '', isRequired: '', apiRequired: '', defaultValue: '', generationExpression: '', generationType: '', type: '', fieldOrder: '', regexp: '', chk: '', chkExpr: '', min: '', max: '', tags: '', category: '' }, select: { id: true } }).execute(); // Update const updated = await db.field.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); @@ -467,6 +470,7 @@ CRUD operations for Policy records. | `disabled` | Boolean | Yes | | `policyType` | String | Yes | | `data` | JSON | Yes | +| `withCheck` | JSON | Yes | | `smartTags` | JSON | Yes | | `category` | ObjectCategory | Yes | | `tags` | String | Yes | @@ -477,13 +481,13 @@ CRUD operations for Policy records. ```typescript // List all policy records -const items = await db.policy.findMany({ select: { id: true, databaseId: true, tableId: true, name: true, granteeName: true, privilege: true, permissive: true, disabled: true, policyType: true, data: true, smartTags: true, category: true, tags: true, createdAt: true, updatedAt: true } }).execute(); +const items = await db.policy.findMany({ select: { id: true, databaseId: true, tableId: true, name: true, granteeName: true, privilege: true, permissive: true, disabled: true, policyType: true, data: true, withCheck: true, smartTags: true, category: true, tags: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.policy.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, name: true, granteeName: true, privilege: true, permissive: true, disabled: true, policyType: true, data: true, smartTags: true, category: true, tags: true, createdAt: true, updatedAt: true } }).execute(); +const item = await db.policy.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, name: true, granteeName: true, privilege: true, permissive: true, disabled: true, policyType: true, data: true, withCheck: true, smartTags: true, category: true, tags: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.policy.create({ data: { databaseId: '', tableId: '', name: '', granteeName: '', privilege: '', permissive: '', disabled: '', policyType: '', data: '', smartTags: '', category: '', tags: '' }, select: { id: true } }).execute(); +const created = await db.policy.create({ data: { databaseId: '', tableId: '', name: '', granteeName: '', privilege: '', permissive: '', disabled: '', policyType: '', data: '', withCheck: '', smartTags: '', category: '', tags: '' }, select: { id: true } }).execute(); // Update const updated = await db.policy.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); @@ -1609,6 +1613,7 @@ CRUD operations for Database records. | `name` | String | Yes | | `label` | String | Yes | | `hash` | UUID | Yes | +| `platform` | Boolean | Yes | | `createdAt` | Datetime | No | | `updatedAt` | Datetime | No | @@ -1616,13 +1621,13 @@ CRUD operations for Database records. ```typescript // List all database records -const items = await db.database.findMany({ select: { id: true, ownerId: true, schemaHash: true, name: true, label: true, hash: true, createdAt: true, updatedAt: true } }).execute(); +const items = await db.database.findMany({ select: { id: true, ownerId: true, schemaHash: true, name: true, label: true, hash: true, platform: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.database.findOne({ id: '', select: { id: true, ownerId: true, schemaHash: true, name: true, label: true, hash: true, createdAt: true, updatedAt: true } }).execute(); +const item = await db.database.findOne({ id: '', select: { id: true, ownerId: true, schemaHash: true, name: true, label: true, hash: true, platform: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.database.create({ data: { ownerId: '', schemaHash: '', name: '', label: '', hash: '' }, select: { id: true } }).execute(); +const created = await db.database.create({ data: { ownerId: '', schemaHash: '', name: '', label: '', hash: '', platform: '' }, select: { id: true } }).execute(); // Update const updated = await db.database.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute(); @@ -1755,6 +1760,47 @@ const updated = await db.databaseSetting.update({ where: { id: '' }, data: const deleted = await db.databaseSetting.delete({ where: { id: '' } }).execute(); ``` +### `db.astMigration` + +CRUD operations for AstMigration records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | Int | No | +| `databaseId` | UUID | Yes | +| `name` | String | Yes | +| `requires` | String | Yes | +| `payload` | JSON | Yes | +| `deploys` | String | Yes | +| `deploy` | JSON | Yes | +| `revert` | JSON | Yes | +| `verify` | JSON | Yes | +| `createdAt` | Datetime | No | +| `action` | String | Yes | +| `actionId` | UUID | Yes | +| `actorId` | UUID | Yes | + +**Operations:** + +```typescript +// List all astMigration records +const items = await db.astMigration.findMany({ select: { id: true, databaseId: true, name: true, requires: true, payload: true, deploys: true, deploy: true, revert: true, verify: true, createdAt: true, action: true, actionId: true, actorId: true } }).execute(); + +// Get one by id +const item = await db.astMigration.findOne({ id: '', select: { id: true, databaseId: true, name: true, requires: true, payload: true, deploys: true, deploy: true, revert: true, verify: true, createdAt: true, action: true, actionId: true, actorId: true } }).execute(); + +// Create +const created = await db.astMigration.create({ data: { databaseId: '', name: '', requires: '', payload: '', deploys: '', deploy: '', revert: '', verify: '', action: '', actionId: '', actorId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.astMigration.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.astMigration.delete({ where: { id: '' } }).execute(); +``` + ### `db.webauthnSetting` CRUD operations for WebauthnSetting records. @@ -1801,47 +1847,6 @@ const updated = await db.webauthnSetting.update({ where: { id: '' }, data: const deleted = await db.webauthnSetting.delete({ where: { id: '' } }).execute(); ``` -### `db.astMigration` - -CRUD operations for AstMigration records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | Int | No | -| `databaseId` | UUID | Yes | -| `name` | String | Yes | -| `requires` | String | Yes | -| `payload` | JSON | Yes | -| `deploys` | String | Yes | -| `deploy` | JSON | Yes | -| `revert` | JSON | Yes | -| `verify` | JSON | Yes | -| `createdAt` | Datetime | No | -| `action` | String | Yes | -| `actionId` | UUID | Yes | -| `actorId` | UUID | Yes | - -**Operations:** - -```typescript -// List all astMigration records -const items = await db.astMigration.findMany({ select: { id: true, databaseId: true, name: true, requires: true, payload: true, deploys: true, deploy: true, revert: true, verify: true, createdAt: true, action: true, actionId: true, actorId: true } }).execute(); - -// Get one by id -const item = await db.astMigration.findOne({ id: '', select: { id: true, databaseId: true, name: true, requires: true, payload: true, deploys: true, deploy: true, revert: true, verify: true, createdAt: true, action: true, actionId: true, actorId: true } }).execute(); - -// Create -const created = await db.astMigration.create({ data: { databaseId: '', name: '', requires: '', payload: '', deploys: '', deploy: '', revert: '', verify: '', action: '', actionId: '', actorId: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.astMigration.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.astMigration.delete({ where: { id: '' } }).execute(); -``` - ## Custom Operations ### `db.query.applyRegistryDefaults` @@ -1905,36 +1910,6 @@ rejectDatabaseTransfer const result = await db.mutation.rejectDatabaseTransfer({ input: { transferId: '' } }).execute(); ``` -### `db.mutation.provisionDatabaseWithUser` - -provisionDatabaseWithUser - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | ProvisionDatabaseWithUserInput (required) | - -```typescript -const result = await db.mutation.provisionDatabaseWithUser({ input: { pDatabaseName: '', pDomain: '', pSubdomain: '', pModules: '', pOptions: '' } }).execute(); -``` - -### `db.mutation.bootstrapUser` - -bootstrapUser - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | BootstrapUserInput (required) | - -```typescript -const result = await db.mutation.bootstrapUser({ input: '' }).execute(); -``` - ### `db.mutation.setFieldOrder` setFieldOrder @@ -1965,35 +1940,25 @@ applyRls const result = await db.mutation.applyRls({ input: '' }).execute(); ``` -### `db.mutation.createUserDatabase` - -Creates a new user database with all required modules, permissions, and RLS policies. +### `db.mutation.requestDatabase` -Parameters: - - database_name: Name for the new database (required) - - owner_id: UUID of the owner user (required) - - include_invites: Include invite system (default: true) - - include_groups: Include group-level memberships (default: false) - - include_levels: Include events/analytics (default: false) - - bitlen: Bit length for permission masks (default: 64) - - tokens_expiration: Token expiration interval (default: 30 days) +Requests a database and returns a ticket (database_provision_module row) to poll. -Returns the database_id UUID of the newly created database. +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 with exactly the requested modules. Poll the ticket until status = 'completed'; it then carries database_id and fulfilled_at. Example usage: - SELECT metaschema_public.create_user_database('my_app', 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'::uuid); - SELECT metaschema_public.create_user_database('my_app', 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'::uuid, true, true); -- with invites and groups - + SELECT * FROM metaschema_public.request_database('my_app', 'example.com', preset_slug := 'full'); + SELECT * FROM metaschema_public.request_database('my_app', 'example.com', modules := '["users_module", "emails_module"]'::jsonb); - **Type:** mutation - **Arguments:** | Argument | Type | |----------|------| - | `input` | CreateUserDatabaseInput (required) | + | `input` | RequestDatabaseInput (required) | ```typescript -const result = await db.mutation.createUserDatabase({ input: '' }).execute(); +const result = await db.mutation.requestDatabase({ input: '' }).execute(); ``` ### `db.mutation.provisionBucket` diff --git a/sdk/constructive-cli/src/api/orm/index.ts b/sdk/constructive-cli/src/api/orm/index.ts index bde4dcc042..ead83692e0 100644 --- a/sdk/constructive-cli/src/api/orm/index.ts +++ b/sdk/constructive-cli/src/api/orm/index.ts @@ -49,8 +49,8 @@ import { DatabaseModel } from './models/database'; import { RlsSettingModel } from './models/rlsSetting'; import { SqlActionModel } from './models/sqlAction'; import { DatabaseSettingModel } from './models/databaseSetting'; -import { WebauthnSettingModel } from './models/webauthnSetting'; import { AstMigrationModel } from './models/astMigration'; +import { WebauthnSettingModel } from './models/webauthnSetting'; import { createQueryOperations } from './query'; import { createMutationOperations } from './mutation'; export type { OrmClientConfig, QueryResult, GraphQLError, GraphQLAdapter } from './client'; @@ -130,8 +130,8 @@ export function createClient(config: OrmClientConfig) { rlsSetting: new RlsSettingModel(client), sqlAction: new SqlActionModel(client), databaseSetting: new DatabaseSettingModel(client), - webauthnSetting: new WebauthnSettingModel(client), astMigration: new AstMigrationModel(client), + webauthnSetting: new WebauthnSettingModel(client), query: createQueryOperations(client), mutation: createMutationOperations(client), }; diff --git a/sdk/constructive-cli/src/api/orm/input-types.ts b/sdk/constructive-cli/src/api/orm/input-types.ts index 60f796a207..ecca204945 100644 --- a/sdk/constructive-cli/src/api/orm/input-types.ts +++ b/sdk/constructive-cli/src/api/orm/input-types.ts @@ -276,6 +276,8 @@ export interface Table { pluralName?: string | null; singularName?: string | null; tags?: string[] | null; + /** Declarative step-up auth guard: jsonb object mapping DML verbs (INSERT, UPDATE, DELETE) to a step-up spec. Values: true (default password_or_mfa), a type string (password / mfa / password_or_mfa), or an object {type, min_age, min_age_lookup, conditions} where min_age is an interval string (e.g. 6 hours) gating the guard to rows older than that age (UPDATE/DELETE only), min_age_lookup resolves per-row windows from a lookup table, and conditions is a declarative WHEN-clause tree compiled by build_condition_expr. */ + stepUp?: Record | null; partitioned?: boolean | null; partitionStrategy?: string | null; partitionKeyNames?: string[] | null; @@ -309,6 +311,8 @@ export interface Field { isRequired?: boolean | null; apiRequired?: boolean | null; defaultValue?: Record | null; + generationExpression?: Record | null; + generationType?: string | null; type?: Record | null; fieldOrder?: number | null; regexp?: string | null; @@ -396,6 +400,8 @@ export interface Policy { disabled?: boolean | null; policyType?: string | null; data?: Record | null; + /** Optional WITH CHECK override node {"$type": "Authz...", "data": {...}}. Only valid for UPDATE policies; NULL inherits the USING expression. */ + withCheck?: Record | null; smartTags?: Record | null; category?: ObjectCategory | null; tags?: string[] | null; @@ -839,6 +845,7 @@ export interface Database { name?: string | null; label?: string | null; hash?: string | null; + platform?: boolean | null; createdAt?: string | null; updatedAt?: string | null; } @@ -917,6 +924,21 @@ export interface DatabaseSetting { /** Freeform metadata for tooling and operational notes */ annotations?: Record | null; } +export interface AstMigration { + id: number; + databaseId?: string | null; + name?: string | null; + requires?: string[] | null; + payload?: Record | null; + deploys?: string | null; + deploy?: Record | null; + revert?: Record | null; + verify?: Record | null; + createdAt?: string | null; + action?: string | null; + actionId?: string | null; + actorId?: string | null; +} /** Per-database WebAuthn/passkey runtime configuration; typed replacement for api_modules webauthn_challenge JSONB entries */ export interface WebauthnSetting { /** Unique identifier for this WebAuthn settings record */ @@ -956,21 +978,6 @@ export interface WebauthnSetting { /** Challenge TTL in seconds (default 300 = 5 minutes) */ challengeExpirySeconds?: string | null; } -export interface AstMigration { - id: number; - databaseId?: string | null; - name?: string | null; - requires?: string[] | null; - payload?: Record | null; - deploys?: string | null; - deploy?: Record | null; - revert?: Record | null; - verify?: Record | null; - createdAt?: string | null; - action?: string | null; - actionId?: string | null; - actorId?: string | null; -} // ============ Relation Helper Types ============ export interface ConnectionResult { nodes: T[]; @@ -1248,6 +1255,7 @@ export interface SqlActionRelations {} export interface DatabaseSettingRelations { database?: Database | null; } +export interface AstMigrationRelations {} export interface WebauthnSettingRelations { credentialsSchema?: Schema | null; credentialsTable?: Table | null; @@ -1260,7 +1268,6 @@ export interface WebauthnSettingRelations { sessionsTable?: Table | null; userField?: Field | null; } -export interface AstMigrationRelations {} // ============ Entity Types With Relations ============ export type FunctionWithRelations = Function & FunctionRelations; export type SchemaWithRelations = Schema & SchemaRelations; @@ -1308,8 +1315,8 @@ export type DatabaseWithRelations = Database & DatabaseRelations; export type RlsSettingWithRelations = RlsSetting & RlsSettingRelations; export type SqlActionWithRelations = SqlAction & SqlActionRelations; export type DatabaseSettingWithRelations = DatabaseSetting & DatabaseSettingRelations; -export type WebauthnSettingWithRelations = WebauthnSetting & WebauthnSettingRelations; export type AstMigrationWithRelations = AstMigration & AstMigrationRelations; +export type WebauthnSettingWithRelations = WebauthnSetting & WebauthnSettingRelations; // ============ Entity Select Types ============ export type FunctionSelect = { id?: boolean; @@ -1404,6 +1411,7 @@ export type TableSelect = { pluralName?: boolean; singularName?: boolean; tags?: boolean; + stepUp?: boolean; partitioned?: boolean; partitionStrategy?: boolean; partitionKeyNames?: boolean; @@ -1551,6 +1559,8 @@ export type FieldSelect = { isRequired?: boolean; apiRequired?: boolean; defaultValue?: boolean; + generationExpression?: boolean; + generationType?: boolean; type?: boolean; fieldOrder?: boolean; regexp?: boolean; @@ -1692,6 +1702,7 @@ export type PolicySelect = { disabled?: boolean; policyType?: boolean; data?: boolean; + withCheck?: boolean; smartTags?: boolean; category?: boolean; tags?: boolean; @@ -2298,6 +2309,7 @@ export type DatabaseSelect = { name?: boolean; label?: boolean; hash?: boolean; + platform?: boolean; createdAt?: boolean; updatedAt?: boolean; databaseSetting?: { @@ -2611,6 +2623,21 @@ export type DatabaseSettingSelect = { select: DatabaseSelect; }; }; +export type AstMigrationSelect = { + id?: boolean; + databaseId?: boolean; + name?: boolean; + requires?: boolean; + payload?: boolean; + deploys?: boolean; + deploy?: boolean; + revert?: boolean; + verify?: boolean; + createdAt?: boolean; + action?: boolean; + actionId?: boolean; + actorId?: boolean; +}; export type WebauthnSettingSelect = { id?: boolean; databaseId?: boolean; @@ -2661,21 +2688,6 @@ export type WebauthnSettingSelect = { select: FieldSelect; }; }; -export type AstMigrationSelect = { - id?: boolean; - databaseId?: boolean; - name?: boolean; - requires?: boolean; - payload?: boolean; - deploys?: boolean; - deploy?: boolean; - revert?: boolean; - verify?: boolean; - createdAt?: boolean; - action?: boolean; - actionId?: boolean; - actorId?: boolean; -}; // ============ Table Filter Types ============ export interface FunctionFilter { /** Filter by the object’s `id` field. */ @@ -2794,6 +2806,8 @@ export interface TableFilter { singularName?: StringFilter; /** Filter by the object’s `tags` field. */ tags?: StringListFilter; + /** Filter by the object’s `stepUp` field. */ + stepUp?: JSONFilter; /** Filter by the object’s `partitioned` field. */ partitioned?: BooleanFilter; /** Filter by the object’s `partitionStrategy` field. */ @@ -2948,6 +2962,10 @@ export interface FieldFilter { apiRequired?: BooleanFilter; /** Filter by the object’s `defaultValue` field. */ defaultValue?: JSONFilter; + /** Filter by the object’s `generationExpression` field. */ + generationExpression?: JSONFilter; + /** Filter by the object’s `generationType` field. */ + generationType?: StringFilter; /** Filter by the object’s `type` field. */ type?: JSONFilter; /** Filter by the object’s `fieldOrder` field. */ @@ -3178,6 +3196,8 @@ export interface PolicyFilter { policyType?: StringFilter; /** Filter by the object’s `data` field. */ data?: JSONFilter; + /** Filter by the object’s `withCheck` field. */ + withCheck?: JSONFilter; /** Filter by the object’s `smartTags` field. */ smartTags?: JSONFilter; /** Filter by the object’s `category` field. */ @@ -4178,6 +4198,8 @@ export interface DatabaseFilter { label?: StringFilter; /** Filter by the object’s `hash` field. */ hash?: UUIDFilter; + /** Filter by the object’s `platform` field. */ + platform?: BooleanFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; /** Filter by the object’s `updatedAt` field. */ @@ -4491,6 +4513,40 @@ export interface DatabaseSettingFilter { /** Filter by the object’s `database` relation. */ database?: DatabaseFilter; } +export interface AstMigrationFilter { + /** Filter by the object’s `id` field. */ + id?: IntFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `requires` field. */ + requires?: StringListFilter; + /** Filter by the object’s `payload` field. */ + payload?: JSONFilter; + /** Filter by the object’s `deploys` field. */ + deploys?: StringFilter; + /** Filter by the object’s `deploy` field. */ + deploy?: JSONFilter; + /** Filter by the object’s `revert` field. */ + revert?: JSONFilter; + /** Filter by the object’s `verify` field. */ + verify?: JSONFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `action` field. */ + action?: StringFilter; + /** Filter by the object’s `actionId` field. */ + actionId?: UUIDFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: AstMigrationFilter[]; + /** Checks for any expressions in this list. */ + or?: AstMigrationFilter[]; + /** Negates the expression. */ + not?: AstMigrationFilter; +} export interface WebauthnSettingFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; @@ -4573,40 +4629,6 @@ export interface WebauthnSettingFilter { /** A related `userField` exists. */ userFieldExists?: boolean; } -export interface AstMigrationFilter { - /** Filter by the object’s `id` field. */ - id?: IntFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `requires` field. */ - requires?: StringListFilter; - /** Filter by the object’s `payload` field. */ - payload?: JSONFilter; - /** Filter by the object’s `deploys` field. */ - deploys?: StringFilter; - /** Filter by the object’s `deploy` field. */ - deploy?: JSONFilter; - /** Filter by the object’s `revert` field. */ - revert?: JSONFilter; - /** Filter by the object’s `verify` field. */ - verify?: JSONFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `action` field. */ - action?: StringFilter; - /** Filter by the object’s `actionId` field. */ - actionId?: UUIDFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: AstMigrationFilter[]; - /** Checks for any expressions in this list. */ - or?: AstMigrationFilter[]; - /** Negates the expression. */ - not?: AstMigrationFilter; -} // ============ OrderBy Types ============ export type FunctionOrderBy = | 'NATURAL' @@ -4682,6 +4704,8 @@ export type TableOrderBy = | 'SINGULAR_NAME_DESC' | 'TAGS_ASC' | 'TAGS_DESC' + | 'STEP_UP_ASC' + | 'STEP_UP_DESC' | 'PARTITIONED_ASC' | 'PARTITIONED_DESC' | 'PARTITION_STRATEGY_ASC' @@ -4748,6 +4772,10 @@ export type FieldOrderBy = | 'API_REQUIRED_DESC' | 'DEFAULT_VALUE_ASC' | 'DEFAULT_VALUE_DESC' + | 'GENERATION_EXPRESSION_ASC' + | 'GENERATION_EXPRESSION_DESC' + | 'GENERATION_TYPE_ASC' + | 'GENERATION_TYPE_DESC' | 'TYPE_ASC' | 'TYPE_DESC' | 'FIELD_ORDER_ASC' @@ -4922,6 +4950,8 @@ export type PolicyOrderBy = | 'POLICY_TYPE_DESC' | 'DATA_ASC' | 'DATA_DESC' + | 'WITH_CHECK_ASC' + | 'WITH_CHECK_DESC' | 'SMART_TAGS_ASC' | 'SMART_TAGS_DESC' | 'CATEGORY_ASC' @@ -5592,6 +5622,8 @@ export type DatabaseOrderBy = | 'LABEL_DESC' | 'HASH_ASC' | 'HASH_DESC' + | 'PLATFORM_ASC' + | 'PLATFORM_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' @@ -5686,6 +5718,34 @@ export type DatabaseSettingOrderBy = | 'LABELS_DESC' | 'ANNOTATIONS_ASC' | 'ANNOTATIONS_DESC'; +export type AstMigrationOrderBy = + | 'NATURAL' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'REQUIRES_ASC' + | 'REQUIRES_DESC' + | 'PAYLOAD_ASC' + | 'PAYLOAD_DESC' + | 'DEPLOYS_ASC' + | 'DEPLOYS_DESC' + | 'DEPLOY_ASC' + | 'DEPLOY_DESC' + | 'REVERT_ASC' + | 'REVERT_DESC' + | 'VERIFY_ASC' + | 'VERIFY_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'ACTION_ASC' + | 'ACTION_DESC' + | 'ACTION_ID_ASC' + | 'ACTION_ID_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC'; export type WebauthnSettingOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -5726,34 +5786,6 @@ export type WebauthnSettingOrderBy = | 'RESIDENT_KEY_DESC' | 'CHALLENGE_EXPIRY_SECONDS_ASC' | 'CHALLENGE_EXPIRY_SECONDS_DESC'; -export type AstMigrationOrderBy = - | 'NATURAL' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'REQUIRES_ASC' - | 'REQUIRES_DESC' - | 'PAYLOAD_ASC' - | 'PAYLOAD_DESC' - | 'DEPLOYS_ASC' - | 'DEPLOYS_DESC' - | 'DEPLOY_ASC' - | 'DEPLOY_DESC' - | 'REVERT_ASC' - | 'REVERT_DESC' - | 'VERIFY_ASC' - | 'VERIFY_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'ACTION_ASC' - | 'ACTION_DESC' - | 'ACTION_ID_ASC' - | 'ACTION_ID_DESC' - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC'; // ============ CRUD Input Types ============ export interface CreateFunctionInput { clientMutationId?: string; @@ -5829,6 +5861,7 @@ export interface CreateTableInput { pluralName?: string; singularName?: string; tags?: string[]; + stepUp?: Record; partitioned?: boolean; partitionStrategy?: string; partitionKeyNames?: string[]; @@ -5850,6 +5883,7 @@ export interface TablePatch { pluralName?: string | null; singularName?: string | null; tags?: string[] | null; + stepUp?: Record | null; partitioned?: boolean | null; partitionStrategy?: string | null; partitionKeyNames?: string[] | null; @@ -5911,6 +5945,8 @@ export interface CreateFieldInput { isRequired?: boolean; apiRequired?: boolean; defaultValue?: Record; + generationExpression?: Record; + generationType?: string; type: Record; fieldOrder?: number; regexp?: string; @@ -5932,6 +5968,8 @@ export interface FieldPatch { isRequired?: boolean | null; apiRequired?: boolean | null; defaultValue?: Record | null; + generationExpression?: Record | null; + generationType?: string | null; type?: Record | null; fieldOrder?: number | null; regexp?: string | null; @@ -6115,6 +6153,7 @@ export interface CreatePolicyInput { disabled?: boolean; policyType?: string; data?: Record; + withCheck?: Record; smartTags?: Record; category?: ObjectCategory; tags?: string[]; @@ -6130,6 +6169,7 @@ export interface PolicyPatch { disabled?: boolean | null; policyType?: string | null; data?: Record | null; + withCheck?: Record | null; smartTags?: Record | null; category?: ObjectCategory | null; tags?: string[] | null; @@ -7069,6 +7109,7 @@ export interface CreateDatabaseInput { name?: string; label?: string; hash?: string; + platform?: boolean; }; } export interface DatabasePatch { @@ -7077,6 +7118,7 @@ export interface DatabasePatch { name?: string | null; label?: string | null; hash?: string | null; + platform?: boolean | null; } export interface UpdateDatabaseInput { clientMutationId?: string; @@ -7207,6 +7249,44 @@ export interface DeleteDatabaseSettingInput { clientMutationId?: string; id: string; } +export interface CreateAstMigrationInput { + clientMutationId?: string; + astMigration: { + databaseId?: string; + name?: string; + requires?: string[]; + payload?: Record; + deploys?: string; + deploy?: Record; + revert?: Record; + verify?: Record; + action?: string; + actionId?: string; + actorId?: string; + }; +} +export interface AstMigrationPatch { + databaseId?: string | null; + name?: string | null; + requires?: string[] | null; + payload?: Record | null; + deploys?: string | null; + deploy?: Record | null; + revert?: Record | null; + verify?: Record | null; + action?: string | null; + actionId?: string | null; + actorId?: string | null; +} +export interface UpdateAstMigrationInput { + clientMutationId?: string; + id: number; + astMigrationPatch: AstMigrationPatch; +} +export interface DeleteAstMigrationInput { + clientMutationId?: string; + id: number; +} export interface CreateWebauthnSettingInput { clientMutationId?: string; webauthnSetting: { @@ -7257,44 +7337,6 @@ export interface DeleteWebauthnSettingInput { clientMutationId?: string; id: string; } -export interface CreateAstMigrationInput { - clientMutationId?: string; - astMigration: { - databaseId?: string; - name?: string; - requires?: string[]; - payload?: Record; - deploys?: string; - deploy?: Record; - revert?: Record; - verify?: Record; - action?: string; - actionId?: string; - actorId?: string; - }; -} -export interface AstMigrationPatch { - databaseId?: string | null; - name?: string | null; - requires?: string[] | null; - payload?: Record | null; - deploys?: string | null; - deploy?: Record | null; - revert?: Record | null; - verify?: Record | null; - action?: string | null; - actionId?: string | null; - actorId?: string | null; -} -export interface UpdateAstMigrationInput { - clientMutationId?: string; - id: number; - astMigrationPatch: AstMigrationPatch; -} -export interface DeleteAstMigrationInput { - clientMutationId?: string; - id: number; -} // ============ Connection Fields Map ============ export const connectionFieldsMap = { Schema: { @@ -7399,24 +7441,6 @@ export interface RejectDatabaseTransferInput { clientMutationId?: string; transferId?: string; } -export interface ProvisionDatabaseWithUserInput { - clientMutationId?: string; - pDatabaseName?: string; - pDomain?: string; - pSubdomain?: string; - pModules?: Record; - pOptions?: Record; -} -export interface BootstrapUserInput { - clientMutationId?: string; - targetDatabaseId?: string; - password?: string; - isAdmin?: boolean; - isOwner?: boolean; - username?: string; - displayName?: string; - returnApiKey?: boolean; -} export interface SetFieldOrderInput { clientMutationId?: string; fieldIds?: string[]; @@ -7431,15 +7455,14 @@ export interface ApplyRlsInput { permissive?: boolean; name?: string; } -export interface CreateUserDatabaseInput { +export interface RequestDatabaseInput { clientMutationId?: string; databaseName?: string; - ownerId?: string; - includeInvites?: boolean; - includeGroups?: boolean; - includeLevels?: boolean; - bitlen?: number; - tokensExpiration?: IntervalInput; + domain?: string; + presetSlug?: string; + modules?: Record; + options?: Record; + subdomain?: string; } export interface ProvisionBucketInput { /** The logical bucket key (e.g., "public", "private") */ @@ -8479,6 +8502,8 @@ export interface TableInput { pluralName?: string; singularName?: string; tags?: string[]; + /** Declarative step-up auth guard: jsonb object mapping DML verbs (INSERT, UPDATE, DELETE) to a step-up spec. Values: true (default password_or_mfa), a type string (password / mfa / password_or_mfa), or an object {type, min_age, min_age_lookup, conditions} where min_age is an interval string (e.g. 6 hours) gating the guard to rows older than that age (UPDATE/DELETE only), min_age_lookup resolves per-row windows from a lookup table, and conditions is a declarative WHEN-clause tree compiled by build_condition_expr. */ + stepUp?: Record; partitioned?: boolean; partitionStrategy?: string; partitionKeyNames?: string[]; @@ -8514,6 +8539,8 @@ export interface FieldInput { isRequired?: boolean; apiRequired?: boolean; defaultValue?: Record; + generationExpression?: Record; + generationType?: string; type: Record; fieldOrder?: number; regexp?: string; @@ -8606,6 +8633,8 @@ export interface PolicyInput { disabled?: boolean; policyType?: string; data?: Record; + /** Optional WITH CHECK override node {"$type": "Authz...", "data": {...}}. Only valid for UPDATE policies; NULL inherits the USING expression. */ + withCheck?: Record; smartTags?: Record; category?: ObjectCategory; tags?: string[]; @@ -9066,6 +9095,7 @@ export interface DatabaseInput { name?: string; label?: string; hash?: string; + platform?: boolean; createdAt?: string; updatedAt?: string; } @@ -9145,6 +9175,22 @@ export interface DatabaseSettingInput { /** Freeform metadata for tooling and operational notes */ annotations?: Record; } +/** An input for mutations affecting `AstMigration` */ +export interface AstMigrationInput { + id?: number; + databaseId?: string; + name?: string; + requires?: string[]; + payload?: Record; + deploys?: string; + deploy?: Record; + revert?: Record; + verify?: Record; + createdAt?: string; + action?: string; + actionId?: string; + actorId?: string; +} /** An input for mutations affecting `WebauthnSetting` */ export interface WebauthnSettingInput { /** Unique identifier for this WebAuthn settings record */ @@ -9184,41 +9230,6 @@ export interface WebauthnSettingInput { /** Challenge TTL in seconds (default 300 = 5 minutes) */ challengeExpirySeconds?: string; } -/** An input for mutations affecting `AstMigration` */ -export interface AstMigrationInput { - id?: number; - databaseId?: string; - name?: string; - requires?: string[]; - payload?: Record; - deploys?: string; - deploy?: Record; - revert?: Record; - verify?: Record; - createdAt?: string; - action?: string; - actionId?: string; - actorId?: string; -} -/** An interval of time that has passed where the smallest distinct unit is a second. */ -export interface IntervalInput { - /** - * A quantity of seconds. This is the only non-integer field, as all the other - * fields will dump their overflow into a smaller unit of time. Intervals don’t - * have a smaller unit than seconds. - */ - seconds?: number; - /** A quantity of minutes. */ - minutes?: number; - /** A quantity of hours. */ - hours?: number; - /** A quantity of days. */ - days?: number; - /** A quantity of months. */ - months?: number; - /** A quantity of years. */ - years?: number; -} /** A filter to be used against `Table` object types. All fields are combined with a logical ‘and.’ */ export interface TableFilter { /** Filter by the object’s `id` field. */ @@ -9249,6 +9260,8 @@ export interface TableFilter { singularName?: StringFilter; /** Filter by the object’s `tags` field. */ tags?: StringListFilter; + /** Filter by the object’s `stepUp` field. */ + stepUp?: JSONFilter; /** Filter by the object’s `partitioned` field. */ partitioned?: BooleanFilter; /** Filter by the object’s `partitionStrategy` field. */ @@ -9624,6 +9637,10 @@ export interface FieldFilter { apiRequired?: BooleanFilter; /** Filter by the object’s `defaultValue` field. */ defaultValue?: JSONFilter; + /** Filter by the object’s `generationExpression` field. */ + generationExpression?: JSONFilter; + /** Filter by the object’s `generationType` field. */ + generationType?: StringFilter; /** Filter by the object’s `type` field. */ type?: JSONFilter; /** Filter by the object’s `fieldOrder` field. */ @@ -9814,6 +9831,8 @@ export interface PolicyFilter { policyType?: StringFilter; /** Filter by the object’s `data` field. */ data?: JSONFilter; + /** Filter by the object’s `withCheck` field. */ + withCheck?: JSONFilter; /** Filter by the object’s `smartTags` field. */ smartTags?: JSONFilter; /** Filter by the object’s `category` field. */ @@ -10900,6 +10919,8 @@ export interface DatabaseFilter { label?: StringFilter; /** Filter by the object’s `hash` field. */ hash?: UUIDFilter; + /** Filter by the object’s `platform` field. */ + platform?: BooleanFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; /** Filter by the object’s `updatedAt` field. */ @@ -11454,26 +11475,6 @@ export type RejectDatabaseTransferPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; -export interface ProvisionDatabaseWithUserPayload { - clientMutationId?: string | null; - result?: ProvisionDatabaseWithUserRecord[] | null; -} -export type ProvisionDatabaseWithUserPayloadSelect = { - clientMutationId?: boolean; - result?: { - select: ProvisionDatabaseWithUserRecordSelect; - }; -}; -export interface BootstrapUserPayload { - clientMutationId?: string | null; - result?: BootstrapUserRecord[] | null; -} -export type BootstrapUserPayloadSelect = { - clientMutationId?: boolean; - result?: { - select: BootstrapUserRecordSelect; - }; -}; export interface SetFieldOrderPayload { clientMutationId?: string | null; } @@ -11486,13 +11487,15 @@ export interface ApplyRlsPayload { export type ApplyRlsPayloadSelect = { clientMutationId?: boolean; }; -export interface CreateUserDatabasePayload { +export interface RequestDatabasePayload { clientMutationId?: string | null; - result?: string | null; + result?: DatabaseProvisionModule | null; } -export type CreateUserDatabasePayloadSelect = { +export type RequestDatabasePayloadSelect = { clientMutationId?: boolean; - result?: boolean; + result?: { + select: DatabaseProvisionModuleSelect; + }; }; export interface ProvisionBucketPayload { /** Whether provisioning succeeded */ @@ -13428,6 +13431,17 @@ export type DeleteDatabaseSettingPayloadSelect = { select: DatabaseSettingEdgeSelect; }; }; +export interface CreateAstMigrationPayload { + clientMutationId?: string | null; + /** The `AstMigration` that was created by this mutation. */ + astMigration?: AstMigration | null; +} +export type CreateAstMigrationPayloadSelect = { + clientMutationId?: boolean; + astMigration?: { + select: AstMigrationSelect; + }; +}; export interface CreateWebauthnSettingPayload { clientMutationId?: string | null; /** The `WebauthnSetting` that was created by this mutation. */ @@ -13473,44 +13487,59 @@ export type DeleteWebauthnSettingPayloadSelect = { select: WebauthnSettingEdgeSelect; }; }; -export interface CreateAstMigrationPayload { - clientMutationId?: string | null; - /** The `AstMigration` that was created by this mutation. */ - astMigration?: AstMigration | null; +/** Tracks database provisioning requests and their status. The BEFORE INSERT trigger creates the database and sets database_id before RLS policies are evaluated. */ +export interface DatabaseProvisionModule { + id: string; + /** The name for the new database */ + databaseName: string; + /** UUID of the user who owns this database */ + ownerId: string; + /** Subdomain prefix for the database. If null, auto-generated using unique_names + random chars */ + subdomain?: string | null; + /** Base domain for the database (e.g., example.com) */ + domain: string; + /** JSONB array of modules to install. Each element is either a string ("users_module") or a [name, options] tuple (["permissions_module", {"scope": "app"}]) */ + modules: Record; + /** Additional configuration options for provisioning */ + options: Record; + /** When true, copies the owner user and password hash from source database to the newly provisioned database */ + bootstrapUser: boolean; + /** Current status: pending, in_progress, completed, or failed */ + status: string; + errorMessage?: string | null; + /** The database the owner user is copied from during bootstrap (captured from JWT context at provision time) */ + sourceDatabaseId?: string | null; + /** Status of the deferred owner bootstrap job: not_requested, pending, completed, or failed */ + bootstrapStatus: string; + /** Error message from the most recent failed bootstrap attempt */ + bootstrapError?: string | null; + /** The ID of the provisioned database (set by trigger before RLS check) */ + databaseId?: string | null; + createdAt: string; + updatedAt: string; + completedAt?: string | null; + /** 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; } -export type CreateAstMigrationPayloadSelect = { - clientMutationId?: boolean; - astMigration?: { - select: AstMigrationSelect; - }; -}; -export interface ProvisionDatabaseWithUserRecord { - outDatabaseId?: string | null; - outApiKey?: string | null; -} -export type ProvisionDatabaseWithUserRecordSelect = { - outDatabaseId?: boolean; - outApiKey?: boolean; -}; -export interface BootstrapUserRecord { - outUserId?: string | null; - outEmail?: string | null; - outUsername?: string | null; - outDisplayName?: string | null; - outIsAdmin?: boolean | null; - outIsOwner?: boolean | null; - outIsSudo?: boolean | null; - outApiKey?: string | null; -} -export type BootstrapUserRecordSelect = { - outUserId?: boolean; - outEmail?: boolean; - outUsername?: boolean; - outDisplayName?: boolean; - outIsAdmin?: boolean; - outIsOwner?: boolean; - outIsSudo?: boolean; - outApiKey?: boolean; +export type DatabaseProvisionModuleSelect = { + id?: boolean; + databaseName?: boolean; + ownerId?: boolean; + subdomain?: boolean; + domain?: boolean; + modules?: boolean; + options?: boolean; + bootstrapUser?: boolean; + status?: boolean; + errorMessage?: boolean; + sourceDatabaseId?: boolean; + bootstrapStatus?: boolean; + bootstrapError?: boolean; + databaseId?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + completedAt?: boolean; + fulfilledAt?: boolean; }; /** A `Function` edge in the connection. */ export interface FunctionEdge { diff --git a/sdk/constructive-cli/src/api/orm/models/index.ts b/sdk/constructive-cli/src/api/orm/models/index.ts index ddc91f27a9..09182060f7 100644 --- a/sdk/constructive-cli/src/api/orm/models/index.ts +++ b/sdk/constructive-cli/src/api/orm/models/index.ts @@ -47,5 +47,5 @@ export { DatabaseModel } from './database'; export { RlsSettingModel } from './rlsSetting'; export { SqlActionModel } from './sqlAction'; export { DatabaseSettingModel } from './databaseSetting'; -export { WebauthnSettingModel } from './webauthnSetting'; export { AstMigrationModel } from './astMigration'; +export { WebauthnSettingModel } from './webauthnSetting'; diff --git a/sdk/constructive-cli/src/api/orm/mutation/index.ts b/sdk/constructive-cli/src/api/orm/mutation/index.ts index ef3c67f877..72af77babd 100644 --- a/sdk/constructive-cli/src/api/orm/mutation/index.ts +++ b/sdk/constructive-cli/src/api/orm/mutation/index.ts @@ -10,29 +10,23 @@ import type { AcceptDatabaseTransferInput, CancelDatabaseTransferInput, RejectDatabaseTransferInput, - ProvisionDatabaseWithUserInput, - BootstrapUserInput, SetFieldOrderInput, ApplyRlsInput, - CreateUserDatabaseInput, + RequestDatabaseInput, ProvisionBucketInput, AcceptDatabaseTransferPayload, CancelDatabaseTransferPayload, RejectDatabaseTransferPayload, - ProvisionDatabaseWithUserPayload, - BootstrapUserPayload, SetFieldOrderPayload, ApplyRlsPayload, - CreateUserDatabasePayload, + RequestDatabasePayload, ProvisionBucketPayload, AcceptDatabaseTransferPayloadSelect, CancelDatabaseTransferPayloadSelect, RejectDatabaseTransferPayloadSelect, - ProvisionDatabaseWithUserPayloadSelect, - BootstrapUserPayloadSelect, SetFieldOrderPayloadSelect, ApplyRlsPayloadSelect, - CreateUserDatabasePayloadSelect, + RequestDatabasePayloadSelect, ProvisionBucketPayloadSelect, } from '../input-types'; import { connectionFieldsMap } from '../input-types'; @@ -45,12 +39,6 @@ export interface CancelDatabaseTransferVariables { export interface RejectDatabaseTransferVariables { input: RejectDatabaseTransferInput; } -export interface ProvisionDatabaseWithUserVariables { - input: ProvisionDatabaseWithUserInput; -} -export interface BootstrapUserVariables { - input: BootstrapUserInput; -} export interface SetFieldOrderVariables { input: SetFieldOrderInput; } @@ -58,26 +46,17 @@ export interface ApplyRlsVariables { input: ApplyRlsInput; } /** - * Variables for createUserDatabase - * Creates a new user database with all required modules, permissions, and RLS policies. - -Parameters: - - database_name: Name for the new database (required) - - owner_id: UUID of the owner user (required) - - include_invites: Include invite system (default: true) - - include_groups: Include group-level memberships (default: false) - - include_levels: Include events/analytics (default: false) - - bitlen: Bit length for permission masks (default: 64) - - tokens_expiration: Token expiration interval (default: 30 days) + * Variables for requestDatabase + * Requests a database and returns a ticket (database_provision_module row) to poll. -Returns the database_id UUID of the newly created database. +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 with exactly the requested modules. Poll the ticket until status = 'completed'; it then carries database_id and fulfilled_at. Example usage: - SELECT metaschema_public.create_user_database('my_app', 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'::uuid); - SELECT metaschema_public.create_user_database('my_app', 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'::uuid, true, true); -- with invites and groups + SELECT * FROM metaschema_public.request_database('my_app', 'example.com', preset_slug := 'full'); + SELECT * FROM metaschema_public.request_database('my_app', 'example.com', modules := '["users_module", "emails_module"]'::jsonb); */ -export interface CreateUserDatabaseVariables { - input: CreateUserDatabaseInput; +export interface RequestDatabaseVariables { + input: RequestDatabaseInput; } /** * Variables for provisionBucket @@ -178,64 +157,6 @@ export function createMutationOperations(client: OrmClient) { 'RejectDatabaseTransferPayload' ), }), - provisionDatabaseWithUser: ( - args: ProvisionDatabaseWithUserVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - provisionDatabaseWithUser: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'ProvisionDatabaseWithUser', - fieldName: 'provisionDatabaseWithUser', - ...buildCustomDocument( - 'mutation', - 'ProvisionDatabaseWithUser', - 'provisionDatabaseWithUser', - options.select, - args, - [ - { - name: 'input', - type: 'ProvisionDatabaseWithUserInput!', - }, - ], - connectionFieldsMap, - 'ProvisionDatabaseWithUserPayload' - ), - }), - bootstrapUser: ( - args: BootstrapUserVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - bootstrapUser: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'BootstrapUser', - fieldName: 'bootstrapUser', - ...buildCustomDocument( - 'mutation', - 'BootstrapUser', - 'bootstrapUser', - options.select, - args, - [ - { - name: 'input', - type: 'BootstrapUserInput!', - }, - ], - connectionFieldsMap, - 'BootstrapUserPayload' - ), - }), setFieldOrder: ( args: SetFieldOrderVariables, options: { @@ -294,33 +215,33 @@ export function createMutationOperations(client: OrmClient) { 'ApplyRlsPayload' ), }), - createUserDatabase: ( - args: CreateUserDatabaseVariables, + requestDatabase: ( + args: RequestDatabaseVariables, options: { select: S; - } & StrictSelect + } & StrictSelect ) => new QueryBuilder<{ - createUserDatabase: InferSelectResult | null; + requestDatabase: InferSelectResult | null; }>({ client, operation: 'mutation', - operationName: 'CreateUserDatabase', - fieldName: 'createUserDatabase', + operationName: 'RequestDatabase', + fieldName: 'requestDatabase', ...buildCustomDocument( 'mutation', - 'CreateUserDatabase', - 'createUserDatabase', + 'RequestDatabase', + 'requestDatabase', options.select, args, [ { name: 'input', - type: 'CreateUserDatabaseInput!', + type: 'RequestDatabaseInput!', }, ], connectionFieldsMap, - 'CreateUserDatabasePayload' + 'RequestDatabasePayload' ), }), provisionBucket: ( diff --git a/sdk/constructive-cli/src/auth/README.md b/sdk/constructive-cli/src/auth/README.md index 1dae886a2c..41c1582308 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:** 29 +- **Custom mutations:** 30 **Generators:** ORM, CLI diff --git a/sdk/constructive-cli/src/auth/cli/README.md b/sdk/constructive-cli/src/auth/cli/README.md index 255ee197d5..e4dbb09b4c 100644 --- a/sdk/constructive-cli/src/auth/cli/README.md +++ b/sdk/constructive-cli/src/auth/cli/README.md @@ -48,6 +48,7 @@ csdk auth set-token | `send-account-deletion-email` | sendAccountDeletionEmail | | `check-password` | checkPassword | | `delete-org-principal` | deleteOrgPrincipal | +| `delete-principal` | deletePrincipal | | `disconnect-account` | disconnectAccount | | `revoke-api-key` | revokeApiKey | | `revoke-session` | revokeSession | @@ -59,13 +60,13 @@ csdk auth set-token | `verify-email` | verifyEmail | | `provision-new-user` | provisionNewUser | | `reset-password` | resetPassword | +| `create-org-principal` | createOrgPrincipal | | `sign-in-cross-origin` | signInCrossOrigin | | `sign-in-sms-otp` | signInSmsOtp | | `sign-up-sms` | signUpSms | | `sign-up` | signUp | | `sign-in` | signIn | | `link-identity` | linkIdentity | -| `create-org-principal` | createOrgPrincipal | | `extend-token-expires` | extendTokenExpires | | `create-org-api-key` | createOrgApiKey | | `create-api-key` | createApiKey | @@ -141,11 +142,11 @@ CRUD operations for Principal records. | `ownerId` | UUID | | `userId` | UUID | | `name` | String | -| `allowedMask` | BitString | +| `useAdminOwner` | Boolean | | `isReadOnly` | Boolean | | `bypassStepUp` | Boolean | -**Required create fields:** `id`, `ownerId`, `userId`, `name`, `allowedMask`, `isReadOnly`, `bypassStepUp` +**Required create fields:** `id`, `ownerId`, `userId`, `name`, `useAdminOwner`, `isReadOnly`, `bypassStepUp` ### `principal-entity` @@ -196,10 +197,11 @@ CRUD operations for PrincipalScopeOverride records. | `principalId` | UUID | | `membershipType` | Int | | `allowedMask` | BitString | -| `isAdmin` | Boolean | +| `useAdminOwner` | Boolean | +| `isActive` | Boolean | | `isReadOnly` | Boolean | -**Required create fields:** `principalId`, `membershipType`, `allowedMask`, `isAdmin`, `isReadOnly` +**Required create fields:** `principalId`, `membershipType`, `allowedMask`, `useAdminOwner`, `isActive`, `isReadOnly` ### `email` @@ -597,6 +599,18 @@ checkPassword deleteOrgPrincipal +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `--input.clientMutationId` | String | + | `--input.principalId` | UUID | + +### `delete-principal` + +deletePrincipal + - **Type:** mutation - **Arguments:** @@ -744,6 +758,22 @@ resetPassword | `--input.resetToken` | String | | `--input.newPassword` | String | +### `create-org-principal` + +createOrgPrincipal + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `--input.clientMutationId` | String | + | `--input.name` | String | + | `--input.orgId` | UUID | + | `--input.useAdminOwner` | Boolean | + | `--input.isReadOnly` | Boolean | + | `--input.bypassStepUp` | Boolean | + ### `sign-in-cross-origin` signInCrossOrigin @@ -837,22 +867,6 @@ linkIdentity | `--input.identifier` | String (required) | | `--input.details` | JSON | -### `create-org-principal` - -createOrgPrincipal - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `--input.clientMutationId` | String | - | `--input.name` | String | - | `--input.orgId` | UUID | - | `--input.allowedMask` | BitString | - | `--input.isReadOnly` | Boolean | - | `--input.bypassStepUp` | Boolean | - ### `extend-token-expires` extendTokenExpires diff --git a/sdk/constructive-cli/src/auth/cli/commands.ts b/sdk/constructive-cli/src/auth/cli/commands.ts index 508fa2de57..b71266700a 100644 --- a/sdk/constructive-cli/src/auth/cli/commands.ts +++ b/sdk/constructive-cli/src/auth/cli/commands.ts @@ -28,6 +28,7 @@ import signOutCmd from './commands/sign-out'; import sendAccountDeletionEmailCmd from './commands/send-account-deletion-email'; import checkPasswordCmd from './commands/check-password'; import deleteOrgPrincipalCmd from './commands/delete-org-principal'; +import deletePrincipalCmd from './commands/delete-principal'; import disconnectAccountCmd from './commands/disconnect-account'; import revokeApiKeyCmd from './commands/revoke-api-key'; import revokeSessionCmd from './commands/revoke-session'; @@ -39,13 +40,13 @@ import setPasswordCmd from './commands/set-password'; import verifyEmailCmd from './commands/verify-email'; import provisionNewUserCmd from './commands/provision-new-user'; import resetPasswordCmd from './commands/reset-password'; +import createOrgPrincipalCmd from './commands/create-org-principal'; import signInCrossOriginCmd from './commands/sign-in-cross-origin'; import signInSmsOtpCmd from './commands/sign-in-sms-otp'; import signUpSmsCmd from './commands/sign-up-sms'; import signUpCmd from './commands/sign-up'; import signInCmd from './commands/sign-in'; import linkIdentityCmd from './commands/link-identity'; -import createOrgPrincipalCmd from './commands/create-org-principal'; import extendTokenExpiresCmd from './commands/extend-token-expires'; import createOrgApiKeyCmd from './commands/create-org-api-key'; import createApiKeyCmd from './commands/create-api-key'; @@ -85,6 +86,7 @@ const createCommandMap: () => Record< 'send-account-deletion-email': sendAccountDeletionEmailCmd, 'check-password': checkPasswordCmd, 'delete-org-principal': deleteOrgPrincipalCmd, + 'delete-principal': deletePrincipalCmd, 'disconnect-account': disconnectAccountCmd, 'revoke-api-key': revokeApiKeyCmd, 'revoke-session': revokeSessionCmd, @@ -96,13 +98,13 @@ const createCommandMap: () => Record< 'verify-email': verifyEmailCmd, 'provision-new-user': provisionNewUserCmd, 'reset-password': resetPasswordCmd, + 'create-org-principal': createOrgPrincipalCmd, 'sign-in-cross-origin': signInCrossOriginCmd, 'sign-in-sms-otp': signInSmsOtpCmd, 'sign-up-sms': signUpSmsCmd, 'sign-up': signUpCmd, 'sign-in': signInCmd, 'link-identity': linkIdentityCmd, - 'create-org-principal': createOrgPrincipalCmd, 'extend-token-expires': extendTokenExpiresCmd, 'create-org-api-key': createOrgApiKeyCmd, 'create-api-key': createApiKeyCmd, @@ -112,7 +114,7 @@ const createCommandMap: () => Record< 'provision-bucket': provisionBucketCmd, }); const usage = - '\ncsdk \n\nCommands:\n context Manage API contexts\n auth Manage authentication\n principal principal CRUD operations\n principal-entity principalEntity CRUD operations\n principal-scope-override principalScopeOverride CRUD operations\n email email CRUD operations\n phone-number phoneNumber CRUD operations\n crypto-address cryptoAddress CRUD operations\n webauthn-credential webauthnCredential CRUD operations\n audit-log-auth auditLogAuth CRUD operations\n identity-provider identityProvider CRUD operations\n role-type roleType CRUD operations\n user-connected-account userConnectedAccount CRUD operations\n org-api-key-list orgApiKeyList CRUD operations\n user user CRUD operations\n current-user-agent currentUserAgent\n current-user-id currentUserId\n current-ip-address currentIpAddress\n require-step-up requireStepUp\n current-user currentUser\n sign-out signOut\n send-account-deletion-email sendAccountDeletionEmail\n check-password checkPassword\n delete-org-principal deleteOrgPrincipal\n disconnect-account disconnectAccount\n revoke-api-key revokeApiKey\n revoke-session revokeSession\n verify-password verifyPassword\n verify-totp verifyTotp\n confirm-delete-account confirmDeleteAccount\n revoke-org-api-key revokeOrgApiKey\n set-password setPassword\n verify-email verifyEmail\n provision-new-user provisionNewUser\n reset-password resetPassword\n sign-in-cross-origin signInCrossOrigin\n sign-in-sms-otp signInSmsOtp\n sign-up-sms signUpSms\n sign-up signUp\n sign-in signIn\n link-identity linkIdentity\n create-org-principal createOrgPrincipal\n extend-token-expires extendTokenExpires\n create-org-api-key createOrgApiKey\n create-api-key createApiKey\n request-cross-origin-token requestCrossOriginToken\n forgot-password forgotPassword\n send-verification-email sendVerificationEmail\n provision-bucket Provision an S3 bucket for a logical bucket in the database.\nReads the bucket config via RLS, then creates and configures\nthe S3 bucket with the appropriate privacy policies, CORS rules,\nand lifecycle settings.\n\n --help, -h Show this help message\n --version, -v Show version\n'; + '\ncsdk \n\nCommands:\n context Manage API contexts\n auth Manage authentication\n principal principal CRUD operations\n principal-entity principalEntity CRUD operations\n principal-scope-override principalScopeOverride CRUD operations\n email email CRUD operations\n phone-number phoneNumber CRUD operations\n crypto-address cryptoAddress CRUD operations\n webauthn-credential webauthnCredential CRUD operations\n audit-log-auth auditLogAuth CRUD operations\n identity-provider identityProvider CRUD operations\n role-type roleType CRUD operations\n user-connected-account userConnectedAccount CRUD operations\n org-api-key-list orgApiKeyList CRUD operations\n user user CRUD operations\n current-user-agent currentUserAgent\n current-user-id currentUserId\n current-ip-address currentIpAddress\n require-step-up requireStepUp\n current-user currentUser\n sign-out signOut\n send-account-deletion-email sendAccountDeletionEmail\n check-password checkPassword\n delete-org-principal deleteOrgPrincipal\n delete-principal deletePrincipal\n disconnect-account disconnectAccount\n revoke-api-key revokeApiKey\n revoke-session revokeSession\n verify-password verifyPassword\n verify-totp verifyTotp\n confirm-delete-account confirmDeleteAccount\n revoke-org-api-key revokeOrgApiKey\n set-password setPassword\n verify-email verifyEmail\n provision-new-user provisionNewUser\n reset-password resetPassword\n create-org-principal createOrgPrincipal\n sign-in-cross-origin signInCrossOrigin\n sign-in-sms-otp signInSmsOtp\n sign-up-sms signUpSms\n sign-up signUp\n sign-in signIn\n link-identity linkIdentity\n extend-token-expires extendTokenExpires\n create-org-api-key createOrgApiKey\n create-api-key createApiKey\n request-cross-origin-token requestCrossOriginToken\n forgot-password forgotPassword\n send-verification-email sendVerificationEmail\n provision-bucket Provision an S3 bucket for a logical bucket in the database.\nReads the bucket config via RLS, then creates and configures\nthe S3 bucket with the appropriate privacy policies, CORS rules,\nand lifecycle settings.\n\n --help, -h Show this help message\n --version, -v Show version\n'; export const commands = async ( argv: Partial>, prompter: Inquirerer, diff --git a/sdk/constructive-cli/src/config/cli/commands/org-secrets-rotate.ts b/sdk/constructive-cli/src/auth/cli/commands/delete-principal.ts similarity index 72% rename from sdk/constructive-cli/src/config/cli/commands/org-secrets-rotate.ts rename to sdk/constructive-cli/src/auth/cli/commands/delete-principal.ts index 465a4eceb7..71195aacbc 100644 --- a/sdk/constructive-cli/src/config/cli/commands/org-secrets-rotate.ts +++ b/sdk/constructive-cli/src/auth/cli/commands/delete-principal.ts @@ -1,13 +1,13 @@ /** - * CLI command for mutation orgSecretsRotate + * CLI command for mutation deletePrincipal * @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 { OrgSecretsRotateVariables } from '../../orm/mutation'; -import type { OrgSecretsRotatePayloadSelect } from '../../orm/input-types'; +import type { DeletePrincipalVariables } from '../../orm/mutation'; +import type { DeletePrincipalPayloadSelect } from '../../orm/input-types'; export default async ( argv: Partial>, prompter: Inquirerer, @@ -15,7 +15,7 @@ export default async ( ) => { try { if (argv.help || argv.h) { - console.log('org-secrets-rotate - orgSecretsRotate\n\nUsage: org-secrets-rotate [OPTIONS]\n'); + console.log('delete-principal - deletePrincipal\n\nUsage: delete-principal [OPTIONS]\n'); process.exit(0); } const answers = await prompter.prompt(argv, [ @@ -31,18 +31,18 @@ export default async ( const parsedAnswers = unflattenDotNotation(answers); const selectFields = buildSelectFromPaths((argv.select as string) ?? 'clientMutationId'); const result = await client.mutation - .orgSecretsRotate( - parsedAnswers as unknown as OrgSecretsRotateVariables, + .deletePrincipal( + parsedAnswers as unknown as DeletePrincipalVariables, { select: selectFields, } as unknown as { - select: OrgSecretsRotatePayloadSelect; + select: DeletePrincipalPayloadSelect; } ) .execute(); console.log(JSON.stringify(result, null, 2)); } catch (error) { - console.error('Failed: orgSecretsRotate'); + console.error('Failed: deletePrincipal'); if (error instanceof Error) { console.error(error.message); } diff --git a/sdk/constructive-cli/src/auth/cli/commands/principal-scope-override.ts b/sdk/constructive-cli/src/auth/cli/commands/principal-scope-override.ts index a23cc5a4ef..c153353973 100644 --- a/sdk/constructive-cli/src/auth/cli/commands/principal-scope-override.ts +++ b/sdk/constructive-cli/src/auth/cli/commands/principal-scope-override.ts @@ -22,7 +22,8 @@ const fieldSchema: FieldSchema = { principalId: 'uuid', membershipType: 'int', allowedMask: 'string', - isAdmin: 'boolean', + useAdminOwner: 'boolean', + isActive: 'boolean', isReadOnly: 'boolean', }; const usage = @@ -76,7 +77,8 @@ async function handleList(argv: Partial>, _prompter: Inq principalId: true, membershipType: true, allowedMask: true, - isAdmin: true, + useAdminOwner: true, + isActive: true, isReadOnly: true, }; const findManyArgs = parseFindManyArgs< @@ -108,7 +110,8 @@ async function handleFindFirst(argv: Partial>, _prompter principalId: true, membershipType: true, allowedMask: true, - isAdmin: true, + useAdminOwner: true, + isActive: true, isReadOnly: true, }; const findFirstArgs = parseFindFirstArgs< @@ -154,8 +157,14 @@ async function handleCreate(argv: Partial>, prompter: In }, { type: 'boolean', - name: 'isAdmin', - message: 'isAdmin', + name: 'useAdminOwner', + message: 'useAdminOwner', + required: true, + }, + { + type: 'boolean', + name: 'isActive', + message: 'isActive', required: true, }, { @@ -177,7 +186,8 @@ async function handleCreate(argv: Partial>, prompter: In principalId: cleanedData.principalId, membershipType: cleanedData.membershipType, allowedMask: cleanedData.allowedMask, - isAdmin: cleanedData.isAdmin, + useAdminOwner: cleanedData.useAdminOwner, + isActive: cleanedData.isActive, isReadOnly: cleanedData.isReadOnly, }, select: { @@ -187,7 +197,8 @@ async function handleCreate(argv: Partial>, prompter: In principalId: true, membershipType: true, allowedMask: true, - isAdmin: true, + useAdminOwner: true, + isActive: true, isReadOnly: true, }, }) diff --git a/sdk/constructive-cli/src/auth/cli/commands/principal.ts b/sdk/constructive-cli/src/auth/cli/commands/principal.ts index 9066f9d2e1..880be1de01 100644 --- a/sdk/constructive-cli/src/auth/cli/commands/principal.ts +++ b/sdk/constructive-cli/src/auth/cli/commands/principal.ts @@ -3,51 +3,65 @@ * @generated 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 { CreatePrincipalInput, PrincipalPatch, PrincipalSelect, PrincipalFilter, PrincipalOrderBy } from "../../orm/input-types"; -import type { FindManyArgs, FindFirstArgs } from "../../orm/select-types"; +import { CLIOptions, Inquirerer, extractFirst } from 'inquirerer'; +import { getClient } from '../executor'; +import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; +import type { FieldSchema } from '../utils'; +import type { + CreatePrincipalInput, + PrincipalPatch, + PrincipalSelect, + PrincipalFilter, + PrincipalOrderBy, +} from '../../orm/input-types'; +import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; const fieldSchema: FieldSchema = { - id: "uuid", - createdAt: "string", - updatedAt: "string", - ownerId: "uuid", - userId: "uuid", - name: "string", - allowedMask: "string", - isReadOnly: "boolean", - bypassStepUp: "boolean" + id: 'uuid', + createdAt: 'string', + updatedAt: 'string', + ownerId: 'uuid', + userId: 'uuid', + name: 'string', + useAdminOwner: 'boolean', + isReadOnly: 'boolean', + bypassStepUp: 'boolean', }; -const usage = "\nprincipal \n\nCommands:\n list List principal records\n find-first Find first matching principal record\n create Create a new principal\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (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) => { +const usage = + '\nprincipal \n\nCommands:\n list List principal records\n find-first Find first matching principal record\n create Create a new principal\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (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); + const { first: subcommand, 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"] - }]); + 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) { +async function handleTableSubcommand( + subcommand: string, + argv: Partial>, + prompter: Inquirerer +) { switch (subcommand) { - case "list": + case 'list': return handleList(argv, prompter); - case "find-first": + case 'find-first': return handleFindFirst(argv, prompter); - case "create": + case 'create': return handleCreate(argv, prompter); default: console.log(usage); @@ -63,18 +77,20 @@ async function handleList(argv: Partial>, _prompter: Inq ownerId: true, userId: true, name: true, - allowedMask: true, + useAdminOwner: true, isReadOnly: true, - bypassStepUp: true + bypassStepUp: true, }; - const findManyArgs = parseFindManyArgs & { - select: PrincipalSelect; - }>(argv, defaultSelect); + const findManyArgs = parseFindManyArgs< + FindManyArgs & { + select: PrincipalSelect; + } + >(argv, defaultSelect); const client = getClient(); const result = await client.principal.findMany(findManyArgs).execute(); console.log(JSON.stringify(result, null, 2)); } catch (error) { - console.error("Failed to list records."); + console.error('Failed to list records.'); if (error instanceof Error) { console.error(error.message); } @@ -90,18 +106,20 @@ async function handleFindFirst(argv: Partial>, _prompter ownerId: true, userId: true, name: true, - allowedMask: true, + useAdminOwner: true, isReadOnly: true, - bypassStepUp: true + bypassStepUp: true, }; - const findFirstArgs = parseFindFirstArgs & { - select: PrincipalSelect; - }>(argv, defaultSelect); + const findFirstArgs = parseFindFirstArgs< + FindFirstArgs & { + select: PrincipalSelect; + } + >(argv, defaultSelect); const client = getClient(); const result = await client.principal.findFirst(findFirstArgs).execute(); console.log(JSON.stringify(result, null, 2)); } catch (error) { - console.error("Failed to find record."); + console.error('Failed to find record.'); if (error instanceof Error) { console.error(error.message); } @@ -110,67 +128,76 @@ async function handleFindFirst(argv: Partial>, _prompter } async function handleCreate(argv: Partial>, prompter: Inquirerer) { try { - const rawAnswers = await prompter.prompt(argv, [{ - type: "text", - name: "ownerId", - message: "ownerId", - required: true - }, { - type: "text", - name: "userId", - message: "userId", - required: true - }, { - type: "text", - name: "name", - message: "name", - required: true - }, { - type: "text", - name: "allowedMask", - message: "allowedMask", - required: true - }, { - type: "boolean", - name: "isReadOnly", - message: "isReadOnly", - required: true - }, { - type: "boolean", - name: "bypassStepUp", - message: "bypassStepUp", - required: true - }]); + const rawAnswers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'ownerId', + message: 'ownerId', + required: true, + }, + { + type: 'text', + name: 'userId', + message: 'userId', + required: true, + }, + { + type: 'text', + name: 'name', + message: 'name', + required: true, + }, + { + type: 'boolean', + name: 'useAdminOwner', + message: 'useAdminOwner', + required: true, + }, + { + type: 'boolean', + name: 'isReadOnly', + message: 'isReadOnly', + required: true, + }, + { + type: 'boolean', + name: 'bypassStepUp', + message: 'bypassStepUp', + required: true, + }, + ]); const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined(answers, fieldSchema) as CreatePrincipalInput["principal"]; + const cleanedData = stripUndefined(answers, fieldSchema) as CreatePrincipalInput['principal']; const client = getClient(); - const result = await client.principal.create({ - data: { - ownerId: cleanedData.ownerId, - userId: cleanedData.userId, - name: cleanedData.name, - allowedMask: cleanedData.allowedMask, - isReadOnly: cleanedData.isReadOnly, - bypassStepUp: cleanedData.bypassStepUp - }, - select: { - id: true, - createdAt: true, - updatedAt: true, - ownerId: true, - userId: true, - name: true, - allowedMask: true, - isReadOnly: true, - bypassStepUp: true - } - }).execute(); + const result = await client.principal + .create({ + data: { + ownerId: cleanedData.ownerId, + userId: cleanedData.userId, + name: cleanedData.name, + useAdminOwner: cleanedData.useAdminOwner, + isReadOnly: cleanedData.isReadOnly, + bypassStepUp: cleanedData.bypassStepUp, + }, + select: { + id: true, + createdAt: true, + updatedAt: true, + ownerId: true, + userId: true, + name: true, + useAdminOwner: true, + isReadOnly: true, + bypassStepUp: true, + }, + }) + .execute(); console.log(JSON.stringify(result, null, 2)); } catch (error) { - console.error("Failed to create record."); + console.error('Failed to create record.'); if (error instanceof Error) { console.error(error.message); } process.exit(1); } -} \ No newline at end of file +} diff --git a/sdk/constructive-cli/src/auth/orm/README.md b/sdk/constructive-cli/src/auth/orm/README.md index 343ccbb2bd..e92266058a 100644 --- a/sdk/constructive-cli/src/auth/orm/README.md +++ b/sdk/constructive-cli/src/auth/orm/README.md @@ -51,7 +51,7 @@ CRUD operations for Principal records. | `ownerId` | UUID | Yes | | `userId` | UUID | Yes | | `name` | String | Yes | -| `allowedMask` | BitString | Yes | +| `useAdminOwner` | Boolean | Yes | | `isReadOnly` | Boolean | Yes | | `bypassStepUp` | Boolean | Yes | @@ -59,13 +59,13 @@ CRUD operations for Principal records. ```typescript // List all principal records -const items = await db.principal.findMany({ select: { id: true, createdAt: true, updatedAt: true, ownerId: true, userId: true, name: true, allowedMask: true, isReadOnly: true, bypassStepUp: true } }).execute(); +const items = await db.principal.findMany({ select: { id: true, createdAt: true, updatedAt: true, ownerId: true, userId: true, name: true, useAdminOwner: true, isReadOnly: true, bypassStepUp: true } }).execute(); // Get one by principalId -const item = await db.principal.findOne({ principalId: '', select: { id: true, createdAt: true, updatedAt: true, ownerId: true, userId: true, name: true, allowedMask: true, isReadOnly: true, bypassStepUp: true } }).execute(); +const item = await db.principal.findOne({ principalId: '', select: { id: true, createdAt: true, updatedAt: true, ownerId: true, userId: true, name: true, useAdminOwner: true, isReadOnly: true, bypassStepUp: true } }).execute(); // Create -const created = await db.principal.create({ data: { id: '', ownerId: '', userId: '', name: '', allowedMask: '', isReadOnly: '', bypassStepUp: '' }, select: { principalId: true } }).execute(); +const created = await db.principal.create({ data: { id: '', ownerId: '', userId: '', name: '', useAdminOwner: '', isReadOnly: '', bypassStepUp: '' }, select: { principalId: true } }).execute(); // Update const updated = await db.principal.update({ where: { principalId: '' }, data: { id: '' }, select: { principalId: true } }).execute(); @@ -122,20 +122,21 @@ CRUD operations for PrincipalScopeOverride records. | `principalId` | UUID | Yes | | `membershipType` | Int | Yes | | `allowedMask` | BitString | Yes | -| `isAdmin` | Boolean | Yes | +| `useAdminOwner` | Boolean | Yes | +| `isActive` | Boolean | Yes | | `isReadOnly` | Boolean | Yes | **Operations:** ```typescript // List all principalScopeOverride records -const items = await db.principalScopeOverride.findMany({ select: { id: true, createdAt: true, updatedAt: true, principalId: true, membershipType: true, allowedMask: true, isAdmin: true, isReadOnly: true } }).execute(); +const items = await db.principalScopeOverride.findMany({ select: { id: true, createdAt: true, updatedAt: true, principalId: true, membershipType: true, allowedMask: true, useAdminOwner: true, isActive: true, isReadOnly: true } }).execute(); // Get one by id -const item = await db.principalScopeOverride.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, principalId: true, membershipType: true, allowedMask: true, isAdmin: true, isReadOnly: true } }).execute(); +const item = await db.principalScopeOverride.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, principalId: true, membershipType: true, allowedMask: true, useAdminOwner: true, isActive: true, isReadOnly: true } }).execute(); // Create -const created = await db.principalScopeOverride.create({ data: { principalId: '', membershipType: '', allowedMask: '', isAdmin: '', isReadOnly: '' }, select: { id: true } }).execute(); +const created = await db.principalScopeOverride.create({ data: { principalId: '', membershipType: '', allowedMask: '', useAdminOwner: '', isActive: '', isReadOnly: '' }, select: { id: true } }).execute(); // Update const updated = await db.principalScopeOverride.update({ where: { id: '' }, data: { principalId: '' }, select: { id: true } }).execute(); @@ -633,6 +634,21 @@ deleteOrgPrincipal const result = await db.mutation.deleteOrgPrincipal({ input: { principalId: '' } }).execute(); ``` +### `db.mutation.deletePrincipal` + +deletePrincipal + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | DeletePrincipalInput (required) | + +```typescript +const result = await db.mutation.deletePrincipal({ input: { principalId: '' } }).execute(); +``` + ### `db.mutation.disconnectAccount` disconnectAccount @@ -798,6 +814,21 @@ resetPassword const result = await db.mutation.resetPassword({ input: { roleId: '', resetToken: '', newPassword: '' } }).execute(); ``` +### `db.mutation.createOrgPrincipal` + +createOrgPrincipal + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | CreateOrgPrincipalInput (required) | + +```typescript +const result = await db.mutation.createOrgPrincipal({ input: { name: '', orgId: '', useAdminOwner: '', isReadOnly: '', bypassStepUp: '' } }).execute(); +``` + ### `db.mutation.signInCrossOrigin` signInCrossOrigin @@ -888,21 +919,6 @@ linkIdentity const result = await db.mutation.linkIdentity({ input: { service: '', identifier: '', details: '' } }).execute(); ``` -### `db.mutation.createOrgPrincipal` - -createOrgPrincipal - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | CreateOrgPrincipalInput (required) | - -```typescript -const result = await db.mutation.createOrgPrincipal({ input: { name: '', orgId: '', allowedMask: '', isReadOnly: '', bypassStepUp: '' } }).execute(); -``` - ### `db.mutation.extendTokenExpires` extendTokenExpires diff --git a/sdk/constructive-cli/src/auth/orm/input-types.ts b/sdk/constructive-cli/src/auth/orm/input-types.ts index f47ec67005..3f7f1df024 100644 --- a/sdk/constructive-cli/src/auth/orm/input-types.ts +++ b/sdk/constructive-cli/src/auth/orm/input-types.ts @@ -247,8 +247,8 @@ export interface Principal { userId?: string | null; /** Human-readable label for this principal (e.g., billing-bot, ci-deploy-key) */ name?: string | null; - /** Permission bitmask subset; all-1s means inherit all parent permissions */ - allowedMask?: string | null; + /** Whether this principal inherits admin/owner privileges from the owner */ + useAdminOwner?: boolean | null; /** Whether this principal is restricted to read-only operations */ isReadOnly?: boolean | null; /** Whether this principal bypasses MFA step-up requirements */ @@ -275,10 +275,12 @@ export interface PrincipalScopeOverride { principalId?: string | null; /** The scope level (membership_type) this override restricts */ membershipType?: number | null; - /** Permission bitmask for this scope; AND-masked with parent permissions during cascade */ + /** Optional permission mask; AND-masked with parent permissions during cascade. NULL means no extra mask. */ allowedMask?: string | null; - /** Whether this principal has admin access at this scope (default true = inherit from parent) */ - isAdmin?: boolean | null; + /** Whether this principal inherits admin/owner at this scope (default true = inherit from parent) */ + useAdminOwner?: boolean | null; + /** Whether this scope is active for this principal; false disables all access at this scope */ + isActive?: boolean | null; /** Whether this principal is restricted to read-only at this scope */ isReadOnly?: boolean | null; } @@ -506,7 +508,7 @@ export type PrincipalSelect = { ownerId?: boolean; userId?: boolean; name?: boolean; - allowedMask?: boolean; + useAdminOwner?: boolean; isReadOnly?: boolean; bypassStepUp?: boolean; owner?: { @@ -552,7 +554,8 @@ export type PrincipalScopeOverrideSelect = { principalId?: boolean; membershipType?: boolean; allowedMask?: boolean; - isAdmin?: boolean; + useAdminOwner?: boolean; + isActive?: boolean; isReadOnly?: boolean; principal?: { select: PrincipalSelect; @@ -743,8 +746,8 @@ export interface PrincipalFilter { userId?: UUIDFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; - /** Filter by the object’s `allowedMask` field. */ - allowedMask?: BitStringFilter; + /** Filter by the object’s `useAdminOwner` field. */ + useAdminOwner?: BooleanFilter; /** Filter by the object’s `isReadOnly` field. */ isReadOnly?: BooleanFilter; /** Filter by the object’s `bypassStepUp` field. */ @@ -807,8 +810,10 @@ export interface PrincipalScopeOverrideFilter { membershipType?: IntFilter; /** Filter by the object’s `allowedMask` field. */ allowedMask?: BitStringFilter; - /** Filter by the object’s `isAdmin` field. */ - isAdmin?: BooleanFilter; + /** Filter by the object’s `useAdminOwner` field. */ + useAdminOwner?: BooleanFilter; + /** Filter by the object’s `isActive` field. */ + isActive?: BooleanFilter; /** Filter by the object’s `isReadOnly` field. */ isReadOnly?: BooleanFilter; /** Checks for all expressions in this list. */ @@ -1139,8 +1144,8 @@ export type PrincipalOrderBy = | 'USER_ID_DESC' | 'NAME_ASC' | 'NAME_DESC' - | 'ALLOWED_MASK_ASC' - | 'ALLOWED_MASK_DESC' + | 'USE_ADMIN_OWNER_ASC' + | 'USE_ADMIN_OWNER_DESC' | 'IS_READ_ONLY_ASC' | 'IS_READ_ONLY_DESC' | 'BYPASS_STEP_UP_ASC' @@ -1177,8 +1182,10 @@ export type PrincipalScopeOverrideOrderBy = | 'MEMBERSHIP_TYPE_DESC' | 'ALLOWED_MASK_ASC' | 'ALLOWED_MASK_DESC' - | 'IS_ADMIN_ASC' - | 'IS_ADMIN_DESC' + | 'USE_ADMIN_OWNER_ASC' + | 'USE_ADMIN_OWNER_DESC' + | 'IS_ACTIVE_ASC' + | 'IS_ACTIVE_DESC' | 'IS_READ_ONLY_ASC' | 'IS_READ_ONLY_DESC'; export type EmailOrderBy = @@ -1392,7 +1399,7 @@ export interface CreatePrincipalInput { ownerId: string; userId: string; name?: string; - allowedMask?: string; + useAdminOwner?: boolean; isReadOnly?: boolean; bypassStepUp?: boolean; }; @@ -1401,7 +1408,7 @@ export interface PrincipalPatch { ownerId?: string | null; userId?: string | null; name?: string | null; - allowedMask?: string | null; + useAdminOwner?: boolean | null; isReadOnly?: boolean | null; bypassStepUp?: boolean | null; } @@ -1442,7 +1449,8 @@ export interface CreatePrincipalScopeOverrideInput { principalId: string; membershipType?: number; allowedMask?: string; - isAdmin?: boolean; + useAdminOwner?: boolean; + isActive?: boolean; isReadOnly?: boolean; }; } @@ -1450,7 +1458,8 @@ export interface PrincipalScopeOverridePatch { principalId?: string | null; membershipType?: number | null; allowedMask?: string | null; - isAdmin?: boolean | null; + useAdminOwner?: boolean | null; + isActive?: boolean | null; isReadOnly?: boolean | null; } export interface UpdatePrincipalScopeOverrideInput { @@ -1820,6 +1829,14 @@ export interface ResetPasswordInput { resetToken?: string; newPassword?: string; } +export interface CreateOrgPrincipalInput { + clientMutationId?: string; + name?: string; + orgId?: string; + useAdminOwner?: boolean; + isReadOnly?: boolean; + bypassStepUp?: boolean; +} export interface SignInCrossOriginInput { clientMutationId?: string; token?: string; @@ -1865,14 +1882,6 @@ export interface LinkIdentityInput { identifier: string; details?: Record; } -export interface CreateOrgPrincipalInput { - clientMutationId?: string; - name?: string; - orgId?: string; - allowedMask?: string; - isReadOnly?: boolean; - bypassStepUp?: boolean; -} export interface ExtendTokenExpiresInput { clientMutationId?: string; amount?: IntervalInput; @@ -2506,8 +2515,10 @@ export interface PrincipalScopeOverrideFilter { membershipType?: IntFilter; /** Filter by the object’s `allowedMask` field. */ allowedMask?: BitStringFilter; - /** Filter by the object’s `isAdmin` field. */ - isAdmin?: BooleanFilter; + /** Filter by the object’s `useAdminOwner` field. */ + useAdminOwner?: BooleanFilter; + /** Filter by the object’s `isActive` field. */ + isActive?: BooleanFilter; /** Filter by the object’s `isReadOnly` field. */ isReadOnly?: BooleanFilter; /** Checks for all expressions in this list. */ @@ -2533,8 +2544,8 @@ export interface PrincipalFilter { userId?: UUIDFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; - /** Filter by the object’s `allowedMask` field. */ - allowedMask?: BitStringFilter; + /** Filter by the object’s `useAdminOwner` field. */ + useAdminOwner?: BooleanFilter; /** Filter by the object’s `isReadOnly` field. */ isReadOnly?: BooleanFilter; /** Filter by the object’s `bypassStepUp` field. */ @@ -3142,6 +3153,14 @@ export type DeleteOrgPrincipalPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; +export interface DeletePrincipalPayload { + clientMutationId?: string | null; + result?: boolean | null; +} +export type DeletePrincipalPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; export interface DisconnectAccountPayload { clientMutationId?: string | null; result?: boolean | null; @@ -3230,6 +3249,14 @@ export type ResetPasswordPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; +export interface CreateOrgPrincipalPayload { + clientMutationId?: string | null; + result?: string | null; +} +export type CreateOrgPrincipalPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; export interface SignInCrossOriginPayload { clientMutationId?: string | null; result?: SignInCrossOriginRecord | null; @@ -3288,14 +3315,6 @@ export type LinkIdentityPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; -export interface CreateOrgPrincipalPayload { - clientMutationId?: string | null; - result?: string | null; -} -export type CreateOrgPrincipalPayloadSelect = { - clientMutationId?: boolean; - result?: boolean; -}; export interface ExtendTokenExpiresPayload { clientMutationId?: string | null; result?: ExtendTokenExpiresRecord[] | null; @@ -3378,14 +3397,6 @@ export type CreatePrincipalPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; -export interface DeletePrincipalPayload { - clientMutationId?: string | null; - result?: boolean | null; -} -export type DeletePrincipalPayloadSelect = { - clientMutationId?: boolean; - result?: boolean; -}; export interface CreatePrincipalEntityPayload { clientMutationId?: string | null; /** The `PrincipalEntity` that was created by this mutation. */ diff --git a/sdk/constructive-cli/src/auth/orm/models/principal.ts b/sdk/constructive-cli/src/auth/orm/models/principal.ts index 66c9d2ff40..05e5aa400c 100644 --- a/sdk/constructive-cli/src/auth/orm/models/principal.ts +++ b/sdk/constructive-cli/src/auth/orm/models/principal.ts @@ -171,38 +171,4 @@ export class PrincipalModel { variables, }); } - delete( - args: DeleteArgs< - { - principalId: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deletePrincipal: { - principal: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'Principal', - 'deletePrincipal', - 'principal', - { - principalId: args.where.principalId, - }, - 'DeletePrincipalInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'Principal', - fieldName: 'deletePrincipal', - document, - variables, - }); - } } diff --git a/sdk/constructive-cli/src/auth/orm/mutation/index.ts b/sdk/constructive-cli/src/auth/orm/mutation/index.ts index de98ebe402..b7b4ae0b0c 100644 --- a/sdk/constructive-cli/src/auth/orm/mutation/index.ts +++ b/sdk/constructive-cli/src/auth/orm/mutation/index.ts @@ -11,6 +11,7 @@ import type { SendAccountDeletionEmailInput, CheckPasswordInput, DeleteOrgPrincipalInput, + DeletePrincipalInput, DisconnectAccountInput, RevokeApiKeyInput, RevokeSessionInput, @@ -22,13 +23,13 @@ import type { VerifyEmailInput, ProvisionNewUserInput, ResetPasswordInput, + CreateOrgPrincipalInput, SignInCrossOriginInput, SignInSmsOtpInput, SignUpSmsInput, SignUpInput, SignInInput, LinkIdentityInput, - CreateOrgPrincipalInput, ExtendTokenExpiresInput, CreateOrgApiKeyInput, CreateApiKeyInput, @@ -40,6 +41,7 @@ import type { SendAccountDeletionEmailPayload, CheckPasswordPayload, DeleteOrgPrincipalPayload, + DeletePrincipalPayload, DisconnectAccountPayload, RevokeApiKeyPayload, RevokeSessionPayload, @@ -51,13 +53,13 @@ import type { VerifyEmailPayload, ProvisionNewUserPayload, ResetPasswordPayload, + CreateOrgPrincipalPayload, SignInCrossOriginPayload, SignInSmsOtpPayload, SignUpSmsPayload, SignUpPayload, SignInPayload, LinkIdentityPayload, - CreateOrgPrincipalPayload, ExtendTokenExpiresPayload, CreateOrgApiKeyPayload, CreateApiKeyPayload, @@ -69,6 +71,7 @@ import type { SendAccountDeletionEmailPayloadSelect, CheckPasswordPayloadSelect, DeleteOrgPrincipalPayloadSelect, + DeletePrincipalPayloadSelect, DisconnectAccountPayloadSelect, RevokeApiKeyPayloadSelect, RevokeSessionPayloadSelect, @@ -80,13 +83,13 @@ import type { VerifyEmailPayloadSelect, ProvisionNewUserPayloadSelect, ResetPasswordPayloadSelect, + CreateOrgPrincipalPayloadSelect, SignInCrossOriginPayloadSelect, SignInSmsOtpPayloadSelect, SignUpSmsPayloadSelect, SignUpPayloadSelect, SignInPayloadSelect, LinkIdentityPayloadSelect, - CreateOrgPrincipalPayloadSelect, ExtendTokenExpiresPayloadSelect, CreateOrgApiKeyPayloadSelect, CreateApiKeyPayloadSelect, @@ -108,6 +111,9 @@ export interface CheckPasswordVariables { export interface DeleteOrgPrincipalVariables { input: DeleteOrgPrincipalInput; } +export interface DeletePrincipalVariables { + input: DeletePrincipalInput; +} export interface DisconnectAccountVariables { input: DisconnectAccountInput; } @@ -141,6 +147,9 @@ export interface ProvisionNewUserVariables { export interface ResetPasswordVariables { input: ResetPasswordInput; } +export interface CreateOrgPrincipalVariables { + input: CreateOrgPrincipalInput; +} export interface SignInCrossOriginVariables { input: SignInCrossOriginInput; } @@ -159,9 +168,6 @@ export interface SignInVariables { export interface LinkIdentityVariables { input: LinkIdentityInput; } -export interface CreateOrgPrincipalVariables { - input: CreateOrgPrincipalInput; -} export interface ExtendTokenExpiresVariables { input: ExtendTokenExpiresInput; } @@ -308,6 +314,35 @@ export function createMutationOperations(client: OrmClient) { 'DeleteOrgPrincipalPayload' ), }), + deletePrincipal: ( + args: DeletePrincipalVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + deletePrincipal: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'DeletePrincipal', + fieldName: 'deletePrincipal', + ...buildCustomDocument( + 'mutation', + 'DeletePrincipal', + 'deletePrincipal', + options.select, + args, + [ + { + name: 'input', + type: 'DeletePrincipalInput!', + }, + ], + connectionFieldsMap, + 'DeletePrincipalPayload' + ), + }), disconnectAccount: ( args: DisconnectAccountVariables, options: { @@ -627,6 +662,35 @@ export function createMutationOperations(client: OrmClient) { 'ResetPasswordPayload' ), }), + createOrgPrincipal: ( + args: CreateOrgPrincipalVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + createOrgPrincipal: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'CreateOrgPrincipal', + fieldName: 'createOrgPrincipal', + ...buildCustomDocument( + 'mutation', + 'CreateOrgPrincipal', + 'createOrgPrincipal', + options.select, + args, + [ + { + name: 'input', + type: 'CreateOrgPrincipalInput!', + }, + ], + connectionFieldsMap, + 'CreateOrgPrincipalPayload' + ), + }), signInCrossOrigin: ( args: SignInCrossOriginVariables, options: { @@ -801,35 +865,6 @@ export function createMutationOperations(client: OrmClient) { 'LinkIdentityPayload' ), }), - createOrgPrincipal: ( - args: CreateOrgPrincipalVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - createOrgPrincipal: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'CreateOrgPrincipal', - fieldName: 'createOrgPrincipal', - ...buildCustomDocument( - 'mutation', - 'CreateOrgPrincipal', - 'createOrgPrincipal', - options.select, - args, - [ - { - name: 'input', - type: 'CreateOrgPrincipalInput!', - }, - ], - connectionFieldsMap, - 'CreateOrgPrincipalPayload' - ), - }), extendTokenExpires: ( args: ExtendTokenExpiresVariables, options: { diff --git a/sdk/constructive-cli/src/compute/README.md b/sdk/constructive-cli/src/compute/README.md index d9710e24f9..ce3d7ec53f 100644 --- a/sdk/constructive-cli/src/compute/README.md +++ b/sdk/constructive-cli/src/compute/README.md @@ -8,9 +8,9 @@ ## Overview -- **Tables:** 22 +- **Tables:** 44 - **Custom queries:** 1 -- **Custom mutations:** 14 +- **Custom mutations:** 17 **Generators:** ORM, CLI diff --git a/sdk/constructive-cli/src/compute/cli/README.md b/sdk/constructive-cli/src/compute/cli/README.md index 099416845c..2d959b33ce 100644 --- a/sdk/constructive-cli/src/compute/cli/README.md +++ b/sdk/constructive-cli/src/compute/cli/README.md @@ -26,33 +26,57 @@ csdk auth set-token | `context` | Manage API contexts (endpoints) | | `auth` | Manage authentication tokens | | `config` | Manage config key-value store (per-context) | +| `infra-get-all-record` | infraGetAllRecord CRUD operations | | `get-all-record` | getAllRecord CRUD operations | +| `infra-ref` | infraRef CRUD operations | +| `infra-store` | infraStore CRUD operations | | `function-api-binding` | functionApiBinding CRUD operations | -| `function-deployment` | functionDeployment CRUD operations | -| `resource` | resource CRUD operations | | `function-graph-ref` | functionGraphRef CRUD operations | | `function-graph-store` | functionGraphStore CRUD operations | +| `platform-function-api-binding` | platformFunctionApiBinding CRUD operations | +| `platform-resources-requirements-state` | platformResourcesRequirementsState CRUD operations | +| `resources-requirements-state` | resourcesRequirementsState CRUD operations | +| `platform-resource-status-check` | platformResourceStatusCheck CRUD operations | +| `platform-function-deployment` | platformFunctionDeployment CRUD operations | +| `platform-resource` | platformResource CRUD operations | +| `platform-resource-definition` | platformResourceDefinition CRUD operations | +| `infra-object` | infraObject CRUD operations | | `function-graph-object` | functionGraphObject CRUD operations | +| `platform-function-deployment-event` | platformFunctionDeploymentEvent CRUD operations | +| `platform-resource-event` | platformResourceEvent CRUD operations | +| `resource-status-check` | resourceStatusCheck CRUD operations | +| `function-deployment` | functionDeployment CRUD operations | +| `resource` | resource CRUD operations | +| `resource-definition` | resourceDefinition CRUD operations | | `function-deployment-event` | functionDeploymentEvent CRUD operations | -| `org-function-execution-log` | orgFunctionExecutionLog CRUD operations | +| `platform-function-execution-log` | platformFunctionExecutionLog CRUD operations | | `resource-event` | resourceEvent CRUD operations | | `function-graph-execution-output` | functionGraphExecutionOutput CRUD operations | +| `infra-commit` | infraCommit CRUD operations | | `function-graph-commit` | functionGraphCommit CRUD operations | -| `secret-definition` | secretDefinition CRUD operations | | `function-execution-log` | functionExecutionLog CRUD operations | +| `platform-resources-resolved-requirement` | platformResourcesResolvedRequirement CRUD operations | +| `resources-resolved-requirement` | resourcesResolvedRequirement CRUD operations | +| `db-preset` | dbPreset CRUD operations | +| `platform-namespace` | platformNamespace CRUD operations | | `function-graph` | functionGraph CRUD operations | | `function-graph-execution-node-state` | functionGraphExecutionNodeState CRUD operations | -| `platform-namespace` | platformNamespace CRUD operations | -| `org-function-invocation` | orgFunctionInvocation CRUD operations | +| `namespace` | namespace CRUD operations | +| `platform-function-invocation` | platformFunctionInvocation CRUD operations | | `function-invocation` | functionInvocation CRUD operations | | `platform-namespace-event` | platformNamespaceEvent CRUD operations | +| `integration-provider` | integrationProvider CRUD operations | +| `namespace-event` | namespaceEvent CRUD operations | | `function-graph-execution` | functionGraphExecution CRUD operations | +| `platform-function-definition` | platformFunctionDefinition CRUD operations | | `function-definition` | functionDefinition CRUD operations | | `read-function-graph` | readFunctionGraph | | `validate-function-graph` | validateFunctionGraph | +| `infra-init-empty-repo` | infraInitEmptyRepo | | `init-empty-repo` | initEmptyRepo | -| `set-data-at-path` | setDataAtPath | | `import-definitions` | importDefinitions | +| `infra-set-data-at-path` | infraSetDataAtPath | +| `set-data-at-path` | setDataAtPath | | `copy-graph` | copyGraph | | `save-graph` | saveGraph | | `add-edge-and-save` | addEdgeAndSave | @@ -60,6 +84,7 @@ csdk auth set-token | `import-graph-json` | importGraphJson | | `add-edge` | addEdge | | `add-node` | addNode | +| `infra-insert-node-at-path` | infraInsertNodeAtPath | | `insert-node-at-path` | insertNodeAtPath | | `start-execution` | startExecution | | `provision-bucket` | Provision an S3 bucket for a logical bucket in the database. @@ -108,6 +133,28 @@ Variables are scoped to the active context and stored at `~/.csdk/config/`. ## Table Commands +### `infra-get-all-record` + +CRUD operations for InfraGetAllRecord records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all infraGetAllRecord records | +| `find-first` | Find first matching infraGetAllRecord record | +| `get` | Get a infraGetAllRecord by id | +| `create` | Create a new infraGetAllRecord | +| `update` | Update an existing infraGetAllRecord | +| `delete` | Delete a infraGetAllRecord | + +**Fields:** + +| Field | Type | +|-------|------| +| `path` | String | +| `data` | JSON | + +**Required create fields:** `path`, `data` + ### `get-all-record` CRUD operations for GetAllRecord records. @@ -130,6 +177,58 @@ CRUD operations for GetAllRecord records. **Required create fields:** `path`, `data` +### `infra-ref` + +CRUD operations for InfraRef 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 | + +**Fields:** + +| Field | Type | +|-------|------| +| `id` | UUID | +| `name` | String | +| `scopeId` | UUID | +| `storeId` | UUID | +| `commitId` | UUID | + +**Required create fields:** `name`, `scopeId`, `storeId` +**Optional create fields (backend defaults):** `commitId` + +### `infra-store` + +CRUD operations for InfraStore 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 | + +**Fields:** + +| Field | Type | +|-------|------| +| `id` | UUID | +| `name` | String | +| `scopeId` | UUID | +| `hash` | UUID | +| `createdAt` | Datetime | + +**Required create fields:** `name`, `scopeId` +**Optional create fields (backend defaults):** `hash` + ### `function-api-binding` CRUD operations for FunctionApiBinding records. @@ -156,33 +255,194 @@ CRUD operations for FunctionApiBinding records. **Required create fields:** `functionDefinitionId`, `apiId` **Optional create fields (backend defaults):** `alias`, `config` -### `function-deployment` +### `function-graph-ref` -CRUD operations for FunctionDeployment records. +CRUD operations for FunctionGraphRef 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 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 | |-------|------| | `id` | UUID | +| `name` | String | +| `scopeId` | UUID | +| `storeId` | UUID | +| `commitId` | UUID | + +**Required create fields:** `name`, `scopeId`, `storeId` +**Optional create fields (backend defaults):** `commitId` + +### `function-graph-store` + +CRUD operations for FunctionGraphStore 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 | + +**Fields:** + +| Field | Type | +|-------|------| +| `id` | UUID | +| `name` | String | +| `scopeId` | UUID | +| `hash` | UUID | | `createdAt` | Datetime | -| `updatedAt` | Datetime | + +**Required create fields:** `name`, `scopeId` +**Optional create fields (backend defaults):** `hash` + +### `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 | +|-------|------| +| `id` | UUID | | `functionDefinitionId` | UUID | +| `apiId` | UUID | +| `alias` | String | +| `config` | JSON | + +**Required create fields:** `functionDefinitionId`, `apiId` +**Optional create fields (backend defaults):** `alias`, `config` + +### `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 | +|-------|------| +| `resourceId` | UUID | +| `slug` | String | +| `secretsHash` | String | +| `configHash` | String | +| `requirementsHash` | String | +| `secretsObjectName` | String | +| `configObjectName` | String | + +**Required create fields:** `resourceId`, `slug`, `secretsHash`, `configHash`, `requirementsHash`, `secretsObjectName`, `configObjectName` + +### `resources-requirements-state` + +CRUD operations for ResourcesRequirementsState records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all resourcesRequirementsState records | +| `find-first` | Find first matching resourcesRequirementsState record | +| `get` | Get a resourcesRequirementsState by id | +| `create` | Create a new resourcesRequirementsState | +| `update` | Update an existing resourcesRequirementsState | +| `delete` | Delete a resourcesRequirementsState | + +**Fields:** + +| Field | Type | +|-------|------| +| `resourceId` | UUID | +| `slug` | String | +| `secretsHash` | String | +| `configHash` | String | +| `requirementsHash` | String | +| `secretsObjectName` | String | +| `configObjectName` | String | + +**Required create fields:** `resourceId`, `slug`, `secretsHash`, `configHash`, `requirementsHash`, `secretsObjectName`, `configObjectName` + +### `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 | +|-------|------| +| `id` | UUID | +| `resourceId` | UUID | +| `requestedBy` | UUID | +| `requestedAt` | Datetime | +| `completedAt` | Datetime | +| `status` | String | +| `result` | JSON | + +**Required create fields:** `resourceId` +**Optional create fields (backend defaults):** `requestedBy`, `requestedAt`, `completedAt`, `status`, `result` + +### `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 | +|-------|------| +| `id` | UUID | +| `createdAt` | Datetime | +| `updatedAt` | Datetime | | `namespaceId` | UUID | | `status` | String | | `serviceUrl` | String | | `serviceName` | String | | `revision` | Int | | `image` | String | +| `imageVersion` | String | +| `handlerName` | String | | `concurrency` | Int | | `scaleMin` | Int | | `scaleMax` | Int | @@ -193,23 +453,22 @@ CRUD operations for FunctionDeployment records. | `errorCount` | Int | | `labels` | JSON | | `annotations` | JSON | -| `databaseId` | UUID | -**Required create fields:** `functionDefinitionId`, `namespaceId`, `databaseId` -**Optional create fields (backend defaults):** `status`, `serviceUrl`, `serviceName`, `revision`, `image`, `concurrency`, `scaleMin`, `scaleMax`, `timeoutSeconds`, `resources`, `lastError`, `lastErrorAt`, `errorCount`, `labels`, `annotations` +**Required create fields:** `namespaceId`, `image` +**Optional create fields (backend defaults):** `status`, `serviceUrl`, `serviceName`, `revision`, `imageVersion`, `handlerName`, `concurrency`, `scaleMin`, `scaleMax`, `timeoutSeconds`, `resources`, `lastError`, `lastErrorAt`, `errorCount`, `labels`, `annotations` -### `resource` +### `platform-resource` -CRUD operations for Resource records. +CRUD operations for PlatformResource records. | Subcommand | Description | |------------|-------------| -| `list` | List all resource records | -| `find-first` | Find first matching resource record | -| `get` | Get a resource by id | -| `create` | Create a new resource | -| `update` | Update an existing resource | -| `delete` | Delete a resource | +| `list` | List all 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:** @@ -231,62 +490,78 @@ CRUD operations for Resource records. | `errorCount` | Int | | `labels` | JSON | | `annotations` | JSON | -| `databaseId` | UUID | +| `requiredSecrets` | ResourceRequirement | +| `requiredConfigs` | ResourceRequirement | +| `integrations` | String | +| `resourceDefinitionId` | UUID | -**Required create fields:** `namespaceId`, `kind`, `name`, `slug`, `databaseId` -**Optional create fields (backend defaults):** `createdBy`, `updatedBy`, `spec`, `status`, `statusObserved`, `lastError`, `errorCount`, `labels`, `annotations` +**Required create fields:** `namespaceId`, `kind`, `name`, `slug` +**Optional create fields (backend defaults):** `createdBy`, `updatedBy`, `spec`, `status`, `statusObserved`, `lastError`, `errorCount`, `labels`, `annotations`, `requiredSecrets`, `requiredConfigs`, `integrations`, `resourceDefinitionId` -### `function-graph-ref` +### `platform-resource-definition` -CRUD operations for FunctionGraphRef records. +CRUD operations for PlatformResourceDefinition 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 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 | |-------|------| | `id` | UUID | +| `createdAt` | Datetime | +| `updatedAt` | Datetime | +| `createdBy` | UUID | +| `updatedBy` | UUID | +| `namespaceId` | UUID | +| `kind` | String | | `name` | String | -| `databaseId` | UUID | -| `storeId` | UUID | -| `commitId` | UUID | +| `slug` | String | +| `description` | String | +| `defaultSpec` | JSON | +| `requiredSecrets` | ResourceRequirement | +| `requiredConfigs` | ResourceRequirement | +| `integrations` | String | +| `labels` | JSON | +| `annotations` | JSON | +| `stepUpMinAge` | Interval | -**Required create fields:** `name`, `databaseId`, `storeId` -**Optional create fields (backend defaults):** `commitId` +**Required create fields:** `namespaceId`, `kind`, `name`, `slug` +**Optional create fields (backend defaults):** `createdBy`, `updatedBy`, `description`, `defaultSpec`, `requiredSecrets`, `requiredConfigs`, `integrations`, `labels`, `annotations`, `stepUpMinAge` -### `function-graph-store` +### `infra-object` -CRUD operations for FunctionGraphStore records. +CRUD operations for InfraObject 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 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:** | Field | Type | |-------|------| | `id` | UUID | -| `name` | String | -| `databaseId` | UUID | -| `hash` | UUID | +| `scopeId` | UUID | +| `kids` | UUID | +| `ktree` | String | +| `data` | JSON | | `createdAt` | Datetime | -**Required create fields:** `name`, `databaseId` -**Optional create fields (backend defaults):** `hash` +**Required create fields:** `scopeId` +**Optional create fields (backend defaults):** `kids`, `ktree`, `data` ### `function-graph-object` @@ -306,15 +581,224 @@ CRUD operations for FunctionGraphObject records. | Field | Type | |-------|------| | `id` | UUID | -| `databaseId` | UUID | +| `scopeId` | UUID | | `kids` | UUID | | `ktree` | String | | `data` | JSON | | `createdAt` | Datetime | -**Required create fields:** `databaseId` +**Required create fields:** `scopeId` **Optional create fields (backend defaults):** `kids`, `ktree`, `data` +### `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 | +|-------|------| +| `createdAt` | Datetime | +| `id` | UUID | +| `deploymentId` | UUID | +| `eventType` | String | +| `actorId` | UUID | +| `message` | String | +| `metadata` | JSON | + +**Required create fields:** `deploymentId`, `eventType` +**Optional create fields (backend defaults):** `actorId`, `message`, `metadata` + +### `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 | +|-------|------| +| `createdAt` | Datetime | +| `id` | UUID | +| `resourceId` | UUID | +| `eventType` | String | +| `actorId` | UUID | +| `message` | String | +| `metadata` | JSON | + +**Required create fields:** `resourceId`, `eventType` +**Optional create fields (backend defaults):** `actorId`, `message`, `metadata` + +### `resource-status-check` + +CRUD operations for ResourceStatusCheck records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all resourceStatusCheck records | +| `find-first` | Find first matching resourceStatusCheck record | +| `get` | Get a resourceStatusCheck by id | +| `create` | Create a new resourceStatusCheck | +| `update` | Update an existing resourceStatusCheck | +| `delete` | Delete a resourceStatusCheck | + +**Fields:** + +| Field | Type | +|-------|------| +| `id` | UUID | +| `resourceId` | UUID | +| `databaseId` | UUID | +| `requestedBy` | UUID | +| `requestedAt` | Datetime | +| `completedAt` | Datetime | +| `status` | String | +| `result` | JSON | + +**Required create fields:** `resourceId`, `databaseId` +**Optional create fields (backend defaults):** `requestedBy`, `requestedAt`, `completedAt`, `status`, `result` + +### `function-deployment` + +CRUD operations for FunctionDeployment 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 | + +**Fields:** + +| Field | Type | +|-------|------| +| `id` | UUID | +| `createdAt` | Datetime | +| `updatedAt` | Datetime | +| `namespaceId` | UUID | +| `status` | String | +| `serviceUrl` | String | +| `serviceName` | String | +| `revision` | Int | +| `image` | String | +| `imageVersion` | String | +| `handlerName` | String | +| `concurrency` | Int | +| `scaleMin` | Int | +| `scaleMax` | Int | +| `timeoutSeconds` | Int | +| `resources` | JSON | +| `lastError` | String | +| `lastErrorAt` | Datetime | +| `errorCount` | Int | +| `labels` | JSON | +| `annotations` | JSON | +| `databaseId` | UUID | + +**Required create fields:** `namespaceId`, `image`, `databaseId` +**Optional create fields (backend defaults):** `status`, `serviceUrl`, `serviceName`, `revision`, `imageVersion`, `handlerName`, `concurrency`, `scaleMin`, `scaleMax`, `timeoutSeconds`, `resources`, `lastError`, `lastErrorAt`, `errorCount`, `labels`, `annotations` + +### `resource` + +CRUD operations for Resource records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all resource records | +| `find-first` | Find first matching resource record | +| `get` | Get a resource by id | +| `create` | Create a new resource | +| `update` | Update an existing resource | +| `delete` | Delete a resource | + +**Fields:** + +| Field | Type | +|-------|------| +| `id` | UUID | +| `createdAt` | Datetime | +| `updatedAt` | Datetime | +| `createdBy` | UUID | +| `updatedBy` | UUID | +| `namespaceId` | UUID | +| `kind` | String | +| `name` | String | +| `slug` | String | +| `spec` | JSON | +| `status` | String | +| `statusObserved` | JSON | +| `lastError` | String | +| `errorCount` | Int | +| `labels` | JSON | +| `annotations` | JSON | +| `databaseId` | UUID | +| `requiredSecrets` | ResourceRequirement | +| `requiredConfigs` | ResourceRequirement | +| `integrations` | String | +| `resourceDefinitionId` | UUID | + +**Required create fields:** `namespaceId`, `kind`, `name`, `slug`, `databaseId` +**Optional create fields (backend defaults):** `createdBy`, `updatedBy`, `spec`, `status`, `statusObserved`, `lastError`, `errorCount`, `labels`, `annotations`, `requiredSecrets`, `requiredConfigs`, `integrations`, `resourceDefinitionId` + +### `resource-definition` + +CRUD operations for ResourceDefinition records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all resourceDefinition records | +| `find-first` | Find first matching resourceDefinition record | +| `get` | Get a resourceDefinition by id | +| `create` | Create a new resourceDefinition | +| `update` | Update an existing resourceDefinition | +| `delete` | Delete a resourceDefinition | + +**Fields:** + +| Field | Type | +|-------|------| +| `id` | UUID | +| `createdAt` | Datetime | +| `updatedAt` | Datetime | +| `createdBy` | UUID | +| `updatedBy` | UUID | +| `namespaceId` | UUID | +| `kind` | String | +| `name` | String | +| `slug` | String | +| `description` | String | +| `defaultSpec` | JSON | +| `requiredSecrets` | ResourceRequirement | +| `requiredConfigs` | ResourceRequirement | +| `integrations` | String | +| `labels` | JSON | +| `annotations` | JSON | +| `stepUpMinAge` | Interval | +| `databaseId` | UUID | + +**Required create fields:** `namespaceId`, `kind`, `name`, `slug`, `databaseId` +**Optional create fields (backend defaults):** `createdBy`, `updatedBy`, `description`, `defaultSpec`, `requiredSecrets`, `requiredConfigs`, `integrations`, `labels`, `annotations`, `stepUpMinAge` + ### `function-deployment-event` CRUD operations for FunctionDeploymentEvent records. @@ -344,18 +828,18 @@ CRUD operations for FunctionDeploymentEvent records. **Required create fields:** `deploymentId`, `eventType`, `databaseId` **Optional create fields (backend defaults):** `actorId`, `message`, `metadata` -### `org-function-execution-log` +### `platform-function-execution-log` -CRUD operations for OrgFunctionExecutionLog records. +CRUD operations for PlatformFunctionExecutionLog records. | Subcommand | Description | |------------|-------------| -| `list` | List all orgFunctionExecutionLog records | -| `find-first` | Find first matching orgFunctionExecutionLog record | -| `get` | Get a orgFunctionExecutionLog by id | -| `create` | Create a new orgFunctionExecutionLog | -| `update` | Update an existing orgFunctionExecutionLog | -| `delete` | Delete a orgFunctionExecutionLog | +| `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:** @@ -421,11 +905,41 @@ CRUD operations for FunctionGraphExecutionOutput records. |-------|------| | `createdAt` | Datetime | | `id` | UUID | -| `databaseId` | UUID | +| `scopeId` | UUID | | `hash` | Base64EncodedBinary | | `data` | JSON | -**Required create fields:** `databaseId`, `hash`, `data` +**Required create fields:** `scopeId`, `hash`, `data` + +### `infra-commit` + +CRUD operations for InfraCommit 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 | + +**Fields:** + +| Field | Type | +|-------|------| +| `id` | UUID | +| `message` | String | +| `scopeId` | UUID | +| `storeId` | UUID | +| `parentIds` | UUID | +| `authorId` | UUID | +| `committerId` | UUID | +| `treeId` | UUID | +| `date` | Datetime | + +**Required create fields:** `scopeId`, `storeId` +**Optional create fields (backend defaults):** `message`, `parentIds`, `authorId`, `committerId`, `treeId`, `date` ### `function-graph-commit` @@ -446,7 +960,7 @@ CRUD operations for FunctionGraphCommit records. |-------|------| | `id` | UUID | | `message` | String | -| `databaseId` | UUID | +| `scopeId` | UUID | | `storeId` | UUID | | `parentIds` | UUID | | `authorId` | UUID | @@ -454,39 +968,9 @@ CRUD operations for FunctionGraphCommit records. | `treeId` | UUID | | `date` | Datetime | -**Required create fields:** `databaseId`, `storeId` +**Required create fields:** `scopeId`, `storeId` **Optional create fields (backend defaults):** `message`, `parentIds`, `authorId`, `committerId`, `treeId`, `date` -### `secret-definition` - -CRUD operations for SecretDefinition records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all secretDefinition records | -| `find-first` | Find first matching secretDefinition record | -| `get` | Get a secretDefinition by id | -| `create` | Create a new secretDefinition | -| `update` | Update an existing secretDefinition | -| `delete` | Delete a secretDefinition | - -**Fields:** - -| Field | Type | -|-------|------| -| `id` | UUID | -| `createdAt` | Datetime | -| `updatedAt` | Datetime | -| `name` | String | -| `description` | String | -| `isBuiltIn` | Boolean | -| `labels` | JSON | -| `annotations` | JSON | -| `databaseId` | UUID | - -**Required create fields:** `name`, `databaseId` -**Optional create fields (backend defaults):** `description`, `isBuiltIn`, `labels`, `annotations` - ### `function-execution-log` CRUD operations for FunctionExecutionLog records. @@ -517,6 +1001,131 @@ CRUD operations for FunctionExecutionLog records. **Required create fields:** `message`, `databaseId` **Optional create fields (backend defaults):** `invocationId`, `taskIdentifier`, `logLevel`, `metadata`, `actorId` +### `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 | +|-------|------| +| `resourceId` | UUID | +| `slug` | String | +| `namespaceId` | UUID | +| `requirementKind` | String | +| `name` | String | +| `required` | Boolean | +| `atomId` | UUID | +| `present` | Boolean | +| `secretsObjectName` | String | +| `configObjectName` | String | + +**Required create fields:** `resourceId`, `slug`, `namespaceId`, `requirementKind`, `name`, `required`, `atomId`, `present`, `secretsObjectName`, `configObjectName` + +### `resources-resolved-requirement` + +CRUD operations for ResourcesResolvedRequirement records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all resourcesResolvedRequirement records | +| `find-first` | Find first matching resourcesResolvedRequirement record | +| `get` | Get a resourcesResolvedRequirement by id | +| `create` | Create a new resourcesResolvedRequirement | +| `update` | Update an existing resourcesResolvedRequirement | +| `delete` | Delete a resourcesResolvedRequirement | + +**Fields:** + +| Field | Type | +|-------|------| +| `resourceId` | UUID | +| `slug` | String | +| `namespaceId` | UUID | +| `requirementKind` | String | +| `name` | String | +| `required` | Boolean | +| `atomId` | UUID | +| `present` | Boolean | +| `secretsObjectName` | String | +| `configObjectName` | String | + +**Required create fields:** `resourceId`, `slug`, `namespaceId`, `requirementKind`, `name`, `required`, `atomId`, `present`, `secretsObjectName`, `configObjectName` + +### `db-preset` + +CRUD operations for DbPreset 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 | + +**Fields:** + +| Field | Type | +|-------|------| +| `id` | UUID | +| `storeId` | UUID | +| `slug` | String | +| `definition` | JSON | +| `commitId` | UUID | +| `modulesHash` | UUID | +| `label` | String | +| `description` | String | +| `active` | Boolean | +| `createdAt` | Datetime | +| `updatedAt` | Datetime | + +**Required create fields:** `slug`, `definition` +**Optional create fields (backend defaults):** `storeId`, `commitId`, `modulesHash`, `label`, `description`, `active` + +### `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 | +|-------|------| +| `id` | UUID | +| `createdAt` | Datetime | +| `updatedAt` | Datetime | +| `name` | String | +| `namespaceName` | String | +| `description` | String | +| `isActive` | Boolean | +| `status` | String | +| `lastError` | String | +| `labels` | JSON | +| `annotations` | JSON | +| `isManaged` | Boolean | + +**Required create fields:** `name`, `namespaceName` +**Optional create fields (backend defaults):** `description`, `isActive`, `status`, `lastError`, `labels`, `annotations`, `isManaged` + ### `function-graph` CRUD operations for FunctionGraph records. @@ -535,7 +1144,7 @@ CRUD operations for FunctionGraph records. | Field | Type | |-------|------| | `id` | UUID | -| `databaseId` | UUID | +| `scopeId` | UUID | | `storeId` | UUID | | `context` | String | | `name` | String | @@ -547,7 +1156,7 @@ CRUD operations for FunctionGraph records. | `createdAt` | Datetime | | `updatedAt` | Datetime | -**Required create fields:** `databaseId`, `storeId`, `context`, `name`, `description`, `definitionsCommitId`, `isValid`, `validationErrors`, `createdBy` +**Required create fields:** `scopeId`, `storeId`, `context`, `name`, `description`, `definitionsCommitId`, `isValid`, `validationErrors`, `createdBy` ### `function-graph-execution-node-state` @@ -569,7 +1178,7 @@ CRUD operations for FunctionGraphExecutionNodeState records. | `createdAt` | Datetime | | `id` | UUID | | `executionId` | UUID | -| `databaseId` | UUID | +| `scopeId` | UUID | | `nodeName` | String | | `nodePath` | String | | `status` | String | @@ -579,21 +1188,21 @@ CRUD operations for FunctionGraphExecutionNodeState records. | `errorMessage` | String | | `outputId` | UUID | -**Required create fields:** `executionId`, `databaseId`, `nodeName` +**Required create fields:** `executionId`, `scopeId`, `nodeName` **Optional create fields (backend defaults):** `nodePath`, `status`, `startedAt`, `completedAt`, `errorCode`, `errorMessage`, `outputId` -### `platform-namespace` +### `namespace` -CRUD operations for PlatformNamespace records. +CRUD operations for Namespace 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 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:** @@ -606,28 +1215,28 @@ CRUD operations for PlatformNamespace records. | `namespaceName` | String | | `description` | String | | `isActive` | Boolean | +| `status` | String | +| `lastError` | String | | `labels` | JSON | | `annotations` | JSON | | `databaseId` | UUID | -| `sourceDatabaseId` | UUID | -| `sourceScope` | String | | `isManaged` | Boolean | **Required create fields:** `name`, `namespaceName`, `databaseId` -**Optional create fields (backend defaults):** `description`, `isActive`, `labels`, `annotations`, `sourceDatabaseId`, `sourceScope`, `isManaged` +**Optional create fields (backend defaults):** `description`, `isActive`, `status`, `lastError`, `labels`, `annotations`, `isManaged` -### `org-function-invocation` +### `platform-function-invocation` -CRUD operations for OrgFunctionInvocation records. +CRUD operations for PlatformFunctionInvocation records. | Subcommand | Description | |------------|-------------| -| `list` | List all orgFunctionInvocation records | -| `find-first` | Find first matching orgFunctionInvocation record | -| `get` | Get a orgFunctionInvocation by id | -| `create` | Create a new orgFunctionInvocation | -| `update` | Update an existing orgFunctionInvocation | -| `delete` | Delete a orgFunctionInvocation | +| `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:** @@ -702,6 +1311,74 @@ CRUD operations for PlatformNamespaceEvent records. **Fields:** +| Field | Type | +|-------|------| +| `createdAt` | Datetime | +| `id` | UUID | +| `namespaceId` | UUID | +| `eventType` | String | +| `actorId` | UUID | +| `message` | String | +| `metadata` | JSON | +| `cpuMillicores` | Int | +| `memoryBytes` | BigInt | +| `storageBytes` | BigInt | +| `networkIngressBytes` | BigInt | +| `networkEgressBytes` | BigInt | +| `podCount` | Int | +| `metrics` | JSON | + +**Required create fields:** `namespaceId`, `eventType` +**Optional create fields (backend defaults):** `actorId`, `message`, `metadata`, `cpuMillicores`, `memoryBytes`, `storageBytes`, `networkIngressBytes`, `networkEgressBytes`, `podCount`, `metrics` + +### `integration-provider` + +CRUD operations for IntegrationProvider 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 | + +**Fields:** + +| Field | Type | +|-------|------| +| `id` | UUID | +| `createdAt` | Datetime | +| `updatedAt` | Datetime | +| `slug` | String | +| `name` | String | +| `description` | String | +| `category` | String | +| `icon` | String | +| `logo` | Image | +| `brand` | JSON | +| `requiredSecrets` | ResourceRequirement | +| `requiredConfigs` | ResourceRequirement | + +**Required create fields:** `slug`, `name` +**Optional create fields (backend defaults):** `description`, `category`, `icon`, `logo`, `brand`, `requiredSecrets`, `requiredConfigs` + +### `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 | |-------|------| | `createdAt` | Datetime | @@ -744,7 +1421,7 @@ CRUD operations for FunctionGraphExecution records. | `id` | UUID | | `graphId` | UUID | | `invocationId` | UUID | -| `databaseId` | UUID | +| `scopeId` | UUID | | `outputNode` | String | | `outputPort` | String | | `status` | String | @@ -761,11 +1438,70 @@ CRUD operations for FunctionGraphExecution records. | `maxTicks` | Int | | `maxPendingJobs` | Int | | `timeoutAt` | Datetime | +| `lastProgressAt` | Datetime | | `errorCode` | String | | `errorMessage` | String | -**Required create fields:** `graphId`, `databaseId`, `outputNode` -**Optional create fields (backend defaults):** `startedAt`, `invocationId`, `outputPort`, `status`, `inputPayload`, `outputPayload`, `nodeOutputs`, `executionPlan`, `currentWave`, `parentExecutionId`, `parentNodeName`, `definitionsCommitId`, `tickCount`, `completedAt`, `maxTicks`, `maxPendingJobs`, `timeoutAt`, `errorCode`, `errorMessage` +**Required create fields:** `graphId`, `scopeId` +**Optional create fields (backend defaults):** `startedAt`, `invocationId`, `outputNode`, `outputPort`, `status`, `inputPayload`, `outputPayload`, `nodeOutputs`, `executionPlan`, `currentWave`, `parentExecutionId`, `parentNodeName`, `definitionsCommitId`, `tickCount`, `completedAt`, `maxTicks`, `maxPendingJobs`, `timeoutAt`, `lastProgressAt`, `errorCode`, `errorMessage` + +### `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 | +|-------|------| +| `id` | UUID | +| `createdAt` | Datetime | +| `updatedAt` | Datetime | +| `scope` | String | +| `name` | String | +| `taskIdentifier` | String | +| `description` | String | +| `isPublished` | Boolean | +| `accessChannels` | String | +| `publishedAt` | Datetime | +| `maxAttempts` | Int | +| `priority` | Int | +| `queueName` | String | +| `runtime` | String | +| `targetSchema` | String | +| `targetFunction` | String | +| `moduleTable` | String | +| `functionColumns` | JSON | +| `payloadArgs` | JSON | +| `image` | String | +| `concurrency` | Int | +| `scaleMin` | Int | +| `scaleMax` | Int | +| `timeoutSeconds` | Int | +| `resources` | JSON | +| `isBuiltIn` | Boolean | +| `requiredSecrets` | ResourceRequirement | +| `requiredConfigs` | ResourceRequirement | +| `integrations` | String | +| `requiredBuckets` | String | +| `requiredModels` | String | +| `inputs` | JSON | +| `outputs` | JSON | +| `props` | JSON | +| `volatile` | Boolean | +| `icon` | String | +| `category` | String | + +**Required create fields:** `scope`, `name`, `taskIdentifier` +**Optional create fields (backend defaults):** `description`, `isPublished`, `accessChannels`, `publishedAt`, `maxAttempts`, `priority`, `queueName`, `runtime`, `targetSchema`, `targetFunction`, `moduleTable`, `functionColumns`, `payloadArgs`, `image`, `concurrency`, `scaleMin`, `scaleMax`, `timeoutSeconds`, `resources`, `isBuiltIn`, `requiredSecrets`, `requiredConfigs`, `integrations`, `requiredBuckets`, `requiredModels`, `inputs`, `outputs`, `props`, `volatile`, `icon`, `category` ### `function-definition` @@ -791,11 +1527,18 @@ CRUD operations for FunctionDefinition records. | `name` | String | | `taskIdentifier` | String | | `description` | String | -| `isInvocable` | Boolean | +| `isPublished` | Boolean | +| `accessChannels` | String | +| `publishedAt` | Datetime | | `maxAttempts` | Int | | `priority` | Int | | `queueName` | String | | `runtime` | String | +| `targetSchema` | String | +| `targetFunction` | String | +| `moduleTable` | String | +| `functionColumns` | JSON | +| `payloadArgs` | JSON | | `image` | String | | `concurrency` | Int | | `scaleMin` | Int | @@ -803,8 +1546,9 @@ CRUD operations for FunctionDefinition records. | `timeoutSeconds` | Int | | `resources` | JSON | | `isBuiltIn` | Boolean | -| `requiredSecrets` | FunctionRequirement | -| `requiredConfigs` | FunctionRequirement | +| `requiredSecrets` | ResourceRequirement | +| `requiredConfigs` | ResourceRequirement | +| `integrations` | String | | `requiredBuckets` | String | | `requiredModels` | String | | `inputs` | JSON | @@ -813,9 +1557,10 @@ CRUD operations for FunctionDefinition records. | `volatile` | Boolean | | `icon` | String | | `category` | String | +| `databaseId` | UUID | -**Required create fields:** `scope`, `name`, `taskIdentifier` -**Optional create fields (backend defaults):** `description`, `isInvocable`, `maxAttempts`, `priority`, `queueName`, `runtime`, `image`, `concurrency`, `scaleMin`, `scaleMax`, `timeoutSeconds`, `resources`, `isBuiltIn`, `requiredSecrets`, `requiredConfigs`, `requiredBuckets`, `requiredModels`, `inputs`, `outputs`, `props`, `volatile`, `icon`, `category` +**Required create fields:** `scope`, `name`, `taskIdentifier`, `databaseId` +**Optional create fields (backend defaults):** `description`, `isPublished`, `accessChannels`, `publishedAt`, `maxAttempts`, `priority`, `queueName`, `runtime`, `targetSchema`, `targetFunction`, `moduleTable`, `functionColumns`, `payloadArgs`, `image`, `concurrency`, `scaleMin`, `scaleMax`, `timeoutSeconds`, `resources`, `isBuiltIn`, `requiredSecrets`, `requiredConfigs`, `integrations`, `requiredBuckets`, `requiredModels`, `inputs`, `outputs`, `props`, `volatile`, `icon`, `category` ## Custom Operations @@ -842,9 +1587,9 @@ validateFunctionGraph | `--input.clientMutationId` | String | | `--input.graphId` | UUID | -### `init-empty-repo` +### `infra-init-empty-repo` -initEmptyRepo +infraInitEmptyRepo - **Type:** mutation - **Arguments:** @@ -855,9 +1600,9 @@ initEmptyRepo | `--input.sId` | UUID | | `--input.storeId` | UUID | -### `set-data-at-path` +### `init-empty-repo` -setDataAtPath +initEmptyRepo - **Type:** mutation - **Arguments:** @@ -866,9 +1611,7 @@ setDataAtPath |----------|------| | `--input.clientMutationId` | String | | `--input.sId` | UUID | - | `--input.root` | UUID | - | `--input.path` | String | - | `--input.data` | JSON | + | `--input.storeId` | UUID | ### `import-definitions` @@ -885,6 +1628,36 @@ importDefinitions | `--input.sourceCommitId` | UUID | | `--input.contexts` | String | +### `infra-set-data-at-path` + +infraSetDataAtPath + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `--input.clientMutationId` | String | + | `--input.sId` | UUID | + | `--input.root` | UUID | + | `--input.path` | String | + | `--input.data` | JSON | + +### `set-data-at-path` + +setDataAtPath + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `--input.clientMutationId` | String | + | `--input.sId` | UUID | + | `--input.root` | UUID | + | `--input.path` | String | + | `--input.data` | JSON | + ### `copy-graph` copyGraph @@ -895,7 +1668,7 @@ copyGraph | Argument | Type | |----------|------| | `--input.clientMutationId` | String | - | `--input.databaseId` | UUID | + | `--input.scopeId` | UUID | | `--input.graphId` | UUID | | `--input.name` | String | @@ -957,7 +1730,7 @@ importGraphJson | Argument | Type | |----------|------| | `--input.clientMutationId` | String | - | `--input.databaseId` | UUID | + | `--input.scopeId` | UUID | | `--input.name` | String | | `--input.graphJson` | JSON | | `--input.context` | String | @@ -975,7 +1748,7 @@ addEdge | Argument | Type | |----------|------| | `--input.clientMutationId` | String | - | `--input.databaseId` | UUID | + | `--input.scopeId` | UUID | | `--input.rootHash` | UUID | | `--input.srcNode` | String | | `--input.srcPort` | String | @@ -994,7 +1767,7 @@ addNode | Argument | Type | |----------|------| | `--input.clientMutationId` | String | - | `--input.databaseId` | UUID | + | `--input.scopeId` | UUID | | `--input.rootHash` | UUID | | `--input.nodeName` | String | | `--input.nodeType` | String | @@ -1003,6 +1776,23 @@ addNode | `--input.props` | JSON | | `--input.meta` | JSON | +### `infra-insert-node-at-path` + +infraInsertNodeAtPath + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `--input.clientMutationId` | String | + | `--input.sId` | UUID | + | `--input.root` | UUID | + | `--input.path` | String | + | `--input.data` | JSON | + | `--input.kids` | UUID | + | `--input.ktree` | String | + ### `insert-node-at-path` insertNodeAtPath diff --git a/sdk/constructive-cli/src/compute/cli/commands.ts b/sdk/constructive-cli/src/compute/cli/commands.ts index 3210aafa91..b45a2634ac 100644 --- a/sdk/constructive-cli/src/compute/cli/commands.ts +++ b/sdk/constructive-cli/src/compute/cli/commands.ts @@ -6,33 +6,57 @@ import { CLIOptions, Inquirerer, extractFirst } from 'inquirerer'; import contextCmd from './commands/context'; import authCmd from './commands/auth'; +import infraGetAllRecordCmd from './commands/infra-get-all-record'; import getAllRecordCmd from './commands/get-all-record'; +import infraRefCmd from './commands/infra-ref'; +import infraStoreCmd from './commands/infra-store'; import functionApiBindingCmd from './commands/function-api-binding'; -import functionDeploymentCmd from './commands/function-deployment'; -import resourceCmd from './commands/resource'; import functionGraphRefCmd from './commands/function-graph-ref'; import functionGraphStoreCmd from './commands/function-graph-store'; +import platformFunctionApiBindingCmd from './commands/platform-function-api-binding'; +import platformResourcesRequirementsStateCmd from './commands/platform-resources-requirements-state'; +import resourcesRequirementsStateCmd from './commands/resources-requirements-state'; +import platformResourceStatusCheckCmd from './commands/platform-resource-status-check'; +import platformFunctionDeploymentCmd from './commands/platform-function-deployment'; +import platformResourceCmd from './commands/platform-resource'; +import platformResourceDefinitionCmd from './commands/platform-resource-definition'; +import infraObjectCmd from './commands/infra-object'; import functionGraphObjectCmd from './commands/function-graph-object'; +import platformFunctionDeploymentEventCmd from './commands/platform-function-deployment-event'; +import platformResourceEventCmd from './commands/platform-resource-event'; +import resourceStatusCheckCmd from './commands/resource-status-check'; +import functionDeploymentCmd from './commands/function-deployment'; +import resourceCmd from './commands/resource'; +import resourceDefinitionCmd from './commands/resource-definition'; import functionDeploymentEventCmd from './commands/function-deployment-event'; -import orgFunctionExecutionLogCmd from './commands/org-function-execution-log'; +import platformFunctionExecutionLogCmd from './commands/platform-function-execution-log'; import resourceEventCmd from './commands/resource-event'; import functionGraphExecutionOutputCmd from './commands/function-graph-execution-output'; +import infraCommitCmd from './commands/infra-commit'; import functionGraphCommitCmd from './commands/function-graph-commit'; -import secretDefinitionCmd from './commands/secret-definition'; import functionExecutionLogCmd from './commands/function-execution-log'; +import platformResourcesResolvedRequirementCmd from './commands/platform-resources-resolved-requirement'; +import resourcesResolvedRequirementCmd from './commands/resources-resolved-requirement'; +import dbPresetCmd from './commands/db-preset'; +import platformNamespaceCmd from './commands/platform-namespace'; import functionGraphCmd from './commands/function-graph'; import functionGraphExecutionNodeStateCmd from './commands/function-graph-execution-node-state'; -import platformNamespaceCmd from './commands/platform-namespace'; -import orgFunctionInvocationCmd from './commands/org-function-invocation'; +import namespaceCmd from './commands/namespace'; +import platformFunctionInvocationCmd from './commands/platform-function-invocation'; import functionInvocationCmd from './commands/function-invocation'; import platformNamespaceEventCmd from './commands/platform-namespace-event'; +import integrationProviderCmd from './commands/integration-provider'; +import namespaceEventCmd from './commands/namespace-event'; import functionGraphExecutionCmd from './commands/function-graph-execution'; +import platformFunctionDefinitionCmd from './commands/platform-function-definition'; import functionDefinitionCmd from './commands/function-definition'; import readFunctionGraphCmd from './commands/read-function-graph'; import validateFunctionGraphCmd from './commands/validate-function-graph'; +import infraInitEmptyRepoCmd from './commands/infra-init-empty-repo'; import initEmptyRepoCmd from './commands/init-empty-repo'; -import setDataAtPathCmd from './commands/set-data-at-path'; import importDefinitionsCmd from './commands/import-definitions'; +import infraSetDataAtPathCmd from './commands/infra-set-data-at-path'; +import setDataAtPathCmd from './commands/set-data-at-path'; import copyGraphCmd from './commands/copy-graph'; import saveGraphCmd from './commands/save-graph'; import addEdgeAndSaveCmd from './commands/add-edge-and-save'; @@ -40,6 +64,7 @@ import addNodeAndSaveCmd from './commands/add-node-and-save'; import importGraphJsonCmd from './commands/import-graph-json'; import addEdgeCmd from './commands/add-edge'; import addNodeCmd from './commands/add-node'; +import infraInsertNodeAtPathCmd from './commands/infra-insert-node-at-path'; import insertNodeAtPathCmd from './commands/insert-node-at-path'; import startExecutionCmd from './commands/start-execution'; import provisionBucketCmd from './commands/provision-bucket'; @@ -53,33 +78,57 @@ const createCommandMap: () => Record< > = () => ({ context: contextCmd, auth: authCmd, + 'infra-get-all-record': infraGetAllRecordCmd, 'get-all-record': getAllRecordCmd, + 'infra-ref': infraRefCmd, + 'infra-store': infraStoreCmd, 'function-api-binding': functionApiBindingCmd, - 'function-deployment': functionDeploymentCmd, - resource: resourceCmd, 'function-graph-ref': functionGraphRefCmd, 'function-graph-store': functionGraphStoreCmd, + 'platform-function-api-binding': platformFunctionApiBindingCmd, + 'platform-resources-requirements-state': platformResourcesRequirementsStateCmd, + 'resources-requirements-state': resourcesRequirementsStateCmd, + 'platform-resource-status-check': platformResourceStatusCheckCmd, + 'platform-function-deployment': platformFunctionDeploymentCmd, + 'platform-resource': platformResourceCmd, + 'platform-resource-definition': platformResourceDefinitionCmd, + 'infra-object': infraObjectCmd, 'function-graph-object': functionGraphObjectCmd, + 'platform-function-deployment-event': platformFunctionDeploymentEventCmd, + 'platform-resource-event': platformResourceEventCmd, + 'resource-status-check': resourceStatusCheckCmd, + 'function-deployment': functionDeploymentCmd, + resource: resourceCmd, + 'resource-definition': resourceDefinitionCmd, 'function-deployment-event': functionDeploymentEventCmd, - 'org-function-execution-log': orgFunctionExecutionLogCmd, + 'platform-function-execution-log': platformFunctionExecutionLogCmd, 'resource-event': resourceEventCmd, 'function-graph-execution-output': functionGraphExecutionOutputCmd, + 'infra-commit': infraCommitCmd, 'function-graph-commit': functionGraphCommitCmd, - 'secret-definition': secretDefinitionCmd, 'function-execution-log': functionExecutionLogCmd, + 'platform-resources-resolved-requirement': platformResourcesResolvedRequirementCmd, + 'resources-resolved-requirement': resourcesResolvedRequirementCmd, + 'db-preset': dbPresetCmd, + 'platform-namespace': platformNamespaceCmd, 'function-graph': functionGraphCmd, 'function-graph-execution-node-state': functionGraphExecutionNodeStateCmd, - 'platform-namespace': platformNamespaceCmd, - 'org-function-invocation': orgFunctionInvocationCmd, + namespace: namespaceCmd, + 'platform-function-invocation': platformFunctionInvocationCmd, 'function-invocation': functionInvocationCmd, 'platform-namespace-event': platformNamespaceEventCmd, + 'integration-provider': integrationProviderCmd, + 'namespace-event': namespaceEventCmd, 'function-graph-execution': functionGraphExecutionCmd, + 'platform-function-definition': platformFunctionDefinitionCmd, 'function-definition': functionDefinitionCmd, 'read-function-graph': readFunctionGraphCmd, 'validate-function-graph': validateFunctionGraphCmd, + 'infra-init-empty-repo': infraInitEmptyRepoCmd, 'init-empty-repo': initEmptyRepoCmd, - 'set-data-at-path': setDataAtPathCmd, 'import-definitions': importDefinitionsCmd, + 'infra-set-data-at-path': infraSetDataAtPathCmd, + 'set-data-at-path': setDataAtPathCmd, 'copy-graph': copyGraphCmd, 'save-graph': saveGraphCmd, 'add-edge-and-save': addEdgeAndSaveCmd, @@ -87,12 +136,13 @@ const createCommandMap: () => Record< 'import-graph-json': importGraphJsonCmd, 'add-edge': addEdgeCmd, 'add-node': addNodeCmd, + 'infra-insert-node-at-path': infraInsertNodeAtPathCmd, 'insert-node-at-path': insertNodeAtPathCmd, 'start-execution': startExecutionCmd, 'provision-bucket': provisionBucketCmd, }); const usage = - '\ncsdk \n\nCommands:\n context Manage API contexts\n auth Manage authentication\n get-all-record getAllRecord CRUD operations\n function-api-binding functionApiBinding CRUD operations\n function-deployment functionDeployment CRUD operations\n resource resource CRUD operations\n function-graph-ref functionGraphRef CRUD operations\n function-graph-store functionGraphStore CRUD operations\n function-graph-object functionGraphObject CRUD operations\n function-deployment-event functionDeploymentEvent CRUD operations\n org-function-execution-log orgFunctionExecutionLog CRUD operations\n resource-event resourceEvent CRUD operations\n function-graph-execution-output functionGraphExecutionOutput CRUD operations\n function-graph-commit functionGraphCommit CRUD operations\n secret-definition secretDefinition CRUD operations\n function-execution-log functionExecutionLog CRUD operations\n function-graph functionGraph CRUD operations\n function-graph-execution-node-state functionGraphExecutionNodeState CRUD operations\n platform-namespace platformNamespace CRUD operations\n org-function-invocation orgFunctionInvocation CRUD operations\n function-invocation functionInvocation CRUD operations\n platform-namespace-event platformNamespaceEvent CRUD operations\n function-graph-execution functionGraphExecution CRUD operations\n function-definition functionDefinition CRUD operations\n read-function-graph readFunctionGraph\n validate-function-graph validateFunctionGraph\n init-empty-repo initEmptyRepo\n set-data-at-path setDataAtPath\n import-definitions importDefinitions\n copy-graph copyGraph\n save-graph saveGraph\n add-edge-and-save addEdgeAndSave\n add-node-and-save addNodeAndSave\n import-graph-json importGraphJson\n add-edge addEdge\n add-node addNode\n insert-node-at-path insertNodeAtPath\n start-execution startExecution\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 infra-get-all-record infraGetAllRecord CRUD operations\n get-all-record getAllRecord CRUD operations\n infra-ref infraRef CRUD operations\n infra-store infraStore CRUD operations\n function-api-binding functionApiBinding CRUD operations\n function-graph-ref functionGraphRef CRUD operations\n function-graph-store functionGraphStore CRUD operations\n platform-function-api-binding platformFunctionApiBinding CRUD operations\n platform-resources-requirements-state platformResourcesRequirementsState CRUD operations\n resources-requirements-state resourcesRequirementsState CRUD operations\n platform-resource-status-check platformResourceStatusCheck CRUD operations\n platform-function-deployment platformFunctionDeployment CRUD operations\n platform-resource platformResource CRUD operations\n platform-resource-definition platformResourceDefinition CRUD operations\n infra-object infraObject CRUD operations\n function-graph-object functionGraphObject CRUD operations\n platform-function-deployment-event platformFunctionDeploymentEvent CRUD operations\n platform-resource-event platformResourceEvent CRUD operations\n resource-status-check resourceStatusCheck CRUD operations\n function-deployment functionDeployment CRUD operations\n resource resource CRUD operations\n resource-definition resourceDefinition CRUD operations\n function-deployment-event functionDeploymentEvent CRUD operations\n platform-function-execution-log platformFunctionExecutionLog CRUD operations\n resource-event resourceEvent CRUD operations\n function-graph-execution-output functionGraphExecutionOutput CRUD operations\n infra-commit infraCommit CRUD operations\n function-graph-commit functionGraphCommit CRUD operations\n function-execution-log functionExecutionLog CRUD operations\n platform-resources-resolved-requirement platformResourcesResolvedRequirement CRUD operations\n resources-resolved-requirement resourcesResolvedRequirement CRUD operations\n db-preset dbPreset CRUD operations\n platform-namespace platformNamespace CRUD operations\n function-graph functionGraph CRUD operations\n function-graph-execution-node-state functionGraphExecutionNodeState CRUD operations\n namespace namespace CRUD operations\n platform-function-invocation platformFunctionInvocation CRUD operations\n function-invocation functionInvocation CRUD operations\n platform-namespace-event platformNamespaceEvent CRUD operations\n integration-provider integrationProvider CRUD operations\n namespace-event namespaceEvent CRUD operations\n function-graph-execution functionGraphExecution CRUD operations\n platform-function-definition platformFunctionDefinition CRUD operations\n function-definition functionDefinition CRUD operations\n read-function-graph readFunctionGraph\n validate-function-graph validateFunctionGraph\n infra-init-empty-repo infraInitEmptyRepo\n init-empty-repo initEmptyRepo\n import-definitions importDefinitions\n infra-set-data-at-path infraSetDataAtPath\n set-data-at-path setDataAtPath\n copy-graph copyGraph\n save-graph saveGraph\n add-edge-and-save addEdgeAndSave\n add-node-and-save addNodeAndSave\n import-graph-json importGraphJson\n add-edge addEdge\n add-node addNode\n infra-insert-node-at-path infraInsertNodeAtPath\n insert-node-at-path insertNodeAtPath\n start-execution startExecution\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/compute/cli/commands/db-preset.ts b/sdk/constructive-cli/src/compute/cli/commands/db-preset.ts new file mode 100644 index 0000000000..ff9c85ed9d --- /dev/null +++ b/sdk/constructive-cli/src/compute/cli/commands/db-preset.ts @@ -0,0 +1,412 @@ +/** + * CLI commands for DbPreset + * @generated 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 { + CreateDbPresetInput, + DbPresetPatch, + DbPresetSelect, + DbPresetFilter, + DbPresetOrderBy, +} from '../../orm/input-types'; +import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; +const fieldSchema: FieldSchema = { + id: 'uuid', + storeId: 'uuid', + slug: 'string', + definition: 'json', + commitId: 'uuid', + modulesHash: 'uuid', + label: 'string', + description: 'string', + active: 'boolean', + createdAt: 'string', + updatedAt: 'string', +}; +const usage = + '\ndb-preset \n\nCommands:\n list List dbPreset records\n find-first Find first matching dbPreset record\n get Get a dbPreset by ID\n create Create a new dbPreset\n update Update an existing dbPreset\n delete Delete a dbPreset\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (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, + storeId: true, + slug: true, + definition: true, + commitId: true, + modulesHash: true, + label: true, + description: true, + active: true, + createdAt: true, + updatedAt: true, + }; + const findManyArgs = parseFindManyArgs< + FindManyArgs & { + select: DbPresetSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.dbPreset.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, + storeId: true, + slug: true, + definition: true, + commitId: true, + modulesHash: true, + label: true, + description: true, + active: true, + createdAt: true, + updatedAt: true, + }; + const findFirstArgs = parseFindFirstArgs< + FindFirstArgs & { + select: DbPresetSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.dbPreset.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.dbPreset + .findOne({ + id: answers.id as string, + select: { + id: true, + storeId: true, + slug: true, + definition: true, + commitId: true, + modulesHash: true, + label: true, + description: true, + active: true, + createdAt: true, + updatedAt: true, + }, + }) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Record not found.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} +async function handleCreate(argv: Partial>, prompter: Inquirerer) { + try { + const rawAnswers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'storeId', + message: 'storeId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'slug', + message: 'slug', + required: true, + }, + { + type: 'json', + name: 'definition', + message: 'definition', + required: true, + }, + { + type: 'text', + name: 'commitId', + message: 'commitId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'modulesHash', + message: 'modulesHash', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'label', + message: 'label', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'description', + message: 'description', + required: false, + skipPrompt: true, + }, + { + type: 'boolean', + name: 'active', + message: 'active', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined(answers, fieldSchema) as CreateDbPresetInput['dbPreset']; + const client = getClient(); + const result = await client.dbPreset + .create({ + data: { + storeId: cleanedData.storeId, + slug: cleanedData.slug, + definition: cleanedData.definition, + commitId: cleanedData.commitId, + modulesHash: cleanedData.modulesHash, + label: cleanedData.label, + description: cleanedData.description, + active: cleanedData.active, + }, + select: { + id: true, + storeId: true, + slug: true, + definition: true, + commitId: true, + modulesHash: true, + label: true, + description: true, + active: true, + createdAt: true, + updatedAt: true, + }, + }) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to create record.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} +async function handleUpdate(argv: Partial>, prompter: Inquirerer) { + try { + const rawAnswers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'id', + message: 'id', + required: true, + }, + { + type: 'text', + name: 'storeId', + message: 'storeId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'slug', + message: 'slug', + required: false, + }, + { + type: 'json', + name: 'definition', + message: 'definition', + required: false, + }, + { + type: 'text', + name: 'commitId', + message: 'commitId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'modulesHash', + message: 'modulesHash', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'label', + message: 'label', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'description', + message: 'description', + required: false, + skipPrompt: true, + }, + { + type: 'boolean', + name: 'active', + message: 'active', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined(answers, fieldSchema) as DbPresetPatch; + const client = getClient(); + const result = await client.dbPreset + .update({ + where: { + id: answers.id as string, + }, + data: { + storeId: cleanedData.storeId, + slug: cleanedData.slug, + definition: cleanedData.definition, + commitId: cleanedData.commitId, + modulesHash: cleanedData.modulesHash, + label: cleanedData.label, + description: cleanedData.description, + active: cleanedData.active, + }, + select: { + id: true, + storeId: true, + slug: true, + definition: true, + commitId: true, + modulesHash: true, + label: true, + description: true, + active: true, + createdAt: true, + updatedAt: true, + }, + }) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to update record.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} +async function handleDelete(argv: Partial>, prompter: Inquirerer) { + try { + const rawAnswers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'id', + message: 'id', + required: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const client = getClient(); + const result = await client.dbPreset + .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/function-definition.ts b/sdk/constructive-cli/src/compute/cli/commands/function-definition.ts index 16609a2606..ae8edad19b 100644 --- a/sdk/constructive-cli/src/compute/cli/commands/function-definition.ts +++ b/sdk/constructive-cli/src/compute/cli/commands/function-definition.ts @@ -23,11 +23,18 @@ const fieldSchema: FieldSchema = { name: 'string', taskIdentifier: 'string', description: 'string', - isInvocable: 'boolean', + isPublished: 'boolean', + accessChannels: 'string', + publishedAt: 'string', maxAttempts: 'int', priority: 'int', queueName: 'string', runtime: 'string', + targetSchema: 'string', + targetFunction: 'string', + moduleTable: 'string', + functionColumns: 'json', + payloadArgs: 'json', image: 'string', concurrency: 'int', scaleMin: 'int', @@ -37,6 +44,7 @@ const fieldSchema: FieldSchema = { isBuiltIn: 'boolean', requiredSecrets: 'string', requiredConfigs: 'string', + integrations: 'string', requiredBuckets: 'string', requiredModels: 'string', inputs: 'json', @@ -45,6 +53,7 @@ const fieldSchema: FieldSchema = { volatile: 'boolean', icon: 'string', category: 'string', + databaseId: 'uuid', }; const usage = '\nfunction-definition \n\nCommands:\n list List functionDefinition records\n find-first Find first matching functionDefinition record\n get Get a functionDefinition by ID\n create Create a new functionDefinition\n update Update an existing functionDefinition\n delete Delete a functionDefinition\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\n --help, -h Show this help message\n'; @@ -104,11 +113,18 @@ async function handleList(argv: Partial>, _prompter: Inq name: true, taskIdentifier: true, description: true, - isInvocable: true, + isPublished: true, + accessChannels: true, + publishedAt: true, maxAttempts: true, priority: true, queueName: true, runtime: true, + targetSchema: true, + targetFunction: true, + moduleTable: true, + functionColumns: true, + payloadArgs: true, image: true, concurrency: true, scaleMin: true, @@ -118,6 +134,7 @@ async function handleList(argv: Partial>, _prompter: Inq isBuiltIn: true, requiredSecrets: true, requiredConfigs: true, + integrations: true, requiredBuckets: true, requiredModels: true, inputs: true, @@ -126,6 +143,7 @@ async function handleList(argv: Partial>, _prompter: Inq volatile: true, icon: true, category: true, + databaseId: true, }; const findManyArgs = parseFindManyArgs< FindManyArgs< @@ -157,11 +175,18 @@ async function handleFindFirst(argv: Partial>, _prompter name: true, taskIdentifier: true, description: true, - isInvocable: true, + isPublished: true, + accessChannels: true, + publishedAt: true, maxAttempts: true, priority: true, queueName: true, runtime: true, + targetSchema: true, + targetFunction: true, + moduleTable: true, + functionColumns: true, + payloadArgs: true, image: true, concurrency: true, scaleMin: true, @@ -171,6 +196,7 @@ async function handleFindFirst(argv: Partial>, _prompter isBuiltIn: true, requiredSecrets: true, requiredConfigs: true, + integrations: true, requiredBuckets: true, requiredModels: true, inputs: true, @@ -179,6 +205,7 @@ async function handleFindFirst(argv: Partial>, _prompter volatile: true, icon: true, category: true, + databaseId: true, }; const findFirstArgs = parseFindFirstArgs< FindFirstArgs< @@ -222,11 +249,18 @@ async function handleGet(argv: Partial>, prompter: Inqui name: true, taskIdentifier: true, description: true, - isInvocable: true, + isPublished: true, + accessChannels: true, + publishedAt: true, maxAttempts: true, priority: true, queueName: true, runtime: true, + targetSchema: true, + targetFunction: true, + moduleTable: true, + functionColumns: true, + payloadArgs: true, image: true, concurrency: true, scaleMin: true, @@ -236,6 +270,7 @@ async function handleGet(argv: Partial>, prompter: Inqui isBuiltIn: true, requiredSecrets: true, requiredConfigs: true, + integrations: true, requiredBuckets: true, requiredModels: true, inputs: true, @@ -244,6 +279,7 @@ async function handleGet(argv: Partial>, prompter: Inqui volatile: true, icon: true, category: true, + databaseId: true, }, }) .execute(); @@ -286,8 +322,22 @@ async function handleCreate(argv: Partial>, prompter: In }, { type: 'boolean', - name: 'isInvocable', - message: 'isInvocable', + name: 'isPublished', + message: 'isPublished', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'accessChannels', + message: 'accessChannels', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'publishedAt', + message: 'publishedAt', required: false, skipPrompt: true, }, @@ -319,6 +369,41 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'targetSchema', + message: 'targetSchema', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'targetFunction', + message: 'targetFunction', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'moduleTable', + message: 'moduleTable', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'functionColumns', + message: 'functionColumns', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'payloadArgs', + message: 'payloadArgs', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'image', @@ -382,6 +467,13 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'integrations', + message: 'integrations', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'requiredBuckets', @@ -438,6 +530,12 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'databaseId', + message: 'databaseId', + required: true, + }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const cleanedData = stripUndefined( @@ -452,11 +550,18 @@ async function handleCreate(argv: Partial>, prompter: In name: cleanedData.name, taskIdentifier: cleanedData.taskIdentifier, description: cleanedData.description, - isInvocable: cleanedData.isInvocable, + isPublished: cleanedData.isPublished, + accessChannels: cleanedData.accessChannels, + publishedAt: cleanedData.publishedAt, maxAttempts: cleanedData.maxAttempts, priority: cleanedData.priority, queueName: cleanedData.queueName, runtime: cleanedData.runtime, + targetSchema: cleanedData.targetSchema, + targetFunction: cleanedData.targetFunction, + moduleTable: cleanedData.moduleTable, + functionColumns: cleanedData.functionColumns, + payloadArgs: cleanedData.payloadArgs, image: cleanedData.image, concurrency: cleanedData.concurrency, scaleMin: cleanedData.scaleMin, @@ -466,6 +571,7 @@ async function handleCreate(argv: Partial>, prompter: In isBuiltIn: cleanedData.isBuiltIn, requiredSecrets: cleanedData.requiredSecrets, requiredConfigs: cleanedData.requiredConfigs, + integrations: cleanedData.integrations, requiredBuckets: cleanedData.requiredBuckets, requiredModels: cleanedData.requiredModels, inputs: cleanedData.inputs, @@ -474,6 +580,7 @@ async function handleCreate(argv: Partial>, prompter: In volatile: cleanedData.volatile, icon: cleanedData.icon, category: cleanedData.category, + databaseId: cleanedData.databaseId, }, select: { id: true, @@ -483,11 +590,18 @@ async function handleCreate(argv: Partial>, prompter: In name: true, taskIdentifier: true, description: true, - isInvocable: true, + isPublished: true, + accessChannels: true, + publishedAt: true, maxAttempts: true, priority: true, queueName: true, runtime: true, + targetSchema: true, + targetFunction: true, + moduleTable: true, + functionColumns: true, + payloadArgs: true, image: true, concurrency: true, scaleMin: true, @@ -497,6 +611,7 @@ async function handleCreate(argv: Partial>, prompter: In isBuiltIn: true, requiredSecrets: true, requiredConfigs: true, + integrations: true, requiredBuckets: true, requiredModels: true, inputs: true, @@ -505,6 +620,7 @@ async function handleCreate(argv: Partial>, prompter: In volatile: true, icon: true, category: true, + databaseId: true, }, }) .execute(); @@ -553,8 +669,22 @@ async function handleUpdate(argv: Partial>, prompter: In }, { type: 'boolean', - name: 'isInvocable', - message: 'isInvocable', + name: 'isPublished', + message: 'isPublished', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'accessChannels', + message: 'accessChannels', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'publishedAt', + message: 'publishedAt', required: false, skipPrompt: true, }, @@ -586,6 +716,41 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'targetSchema', + message: 'targetSchema', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'targetFunction', + message: 'targetFunction', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'moduleTable', + message: 'moduleTable', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'functionColumns', + message: 'functionColumns', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'payloadArgs', + message: 'payloadArgs', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'image', @@ -649,6 +814,13 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'integrations', + message: 'integrations', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'requiredBuckets', @@ -705,6 +877,12 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'databaseId', + message: 'databaseId', + required: false, + }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const cleanedData = stripUndefined(answers, fieldSchema) as FunctionDefinitionPatch; @@ -719,11 +897,18 @@ async function handleUpdate(argv: Partial>, prompter: In name: cleanedData.name, taskIdentifier: cleanedData.taskIdentifier, description: cleanedData.description, - isInvocable: cleanedData.isInvocable, + isPublished: cleanedData.isPublished, + accessChannels: cleanedData.accessChannels, + publishedAt: cleanedData.publishedAt, maxAttempts: cleanedData.maxAttempts, priority: cleanedData.priority, queueName: cleanedData.queueName, runtime: cleanedData.runtime, + targetSchema: cleanedData.targetSchema, + targetFunction: cleanedData.targetFunction, + moduleTable: cleanedData.moduleTable, + functionColumns: cleanedData.functionColumns, + payloadArgs: cleanedData.payloadArgs, image: cleanedData.image, concurrency: cleanedData.concurrency, scaleMin: cleanedData.scaleMin, @@ -733,6 +918,7 @@ async function handleUpdate(argv: Partial>, prompter: In isBuiltIn: cleanedData.isBuiltIn, requiredSecrets: cleanedData.requiredSecrets, requiredConfigs: cleanedData.requiredConfigs, + integrations: cleanedData.integrations, requiredBuckets: cleanedData.requiredBuckets, requiredModels: cleanedData.requiredModels, inputs: cleanedData.inputs, @@ -741,6 +927,7 @@ async function handleUpdate(argv: Partial>, prompter: In volatile: cleanedData.volatile, icon: cleanedData.icon, category: cleanedData.category, + databaseId: cleanedData.databaseId, }, select: { id: true, @@ -750,11 +937,18 @@ async function handleUpdate(argv: Partial>, prompter: In name: true, taskIdentifier: true, description: true, - isInvocable: true, + isPublished: true, + accessChannels: true, + publishedAt: true, maxAttempts: true, priority: true, queueName: true, runtime: true, + targetSchema: true, + targetFunction: true, + moduleTable: true, + functionColumns: true, + payloadArgs: true, image: true, concurrency: true, scaleMin: true, @@ -764,6 +958,7 @@ async function handleUpdate(argv: Partial>, prompter: In isBuiltIn: true, requiredSecrets: true, requiredConfigs: true, + integrations: true, requiredBuckets: true, requiredModels: true, inputs: true, @@ -772,6 +967,7 @@ async function handleUpdate(argv: Partial>, prompter: In volatile: true, icon: true, category: true, + databaseId: true, }, }) .execute(); 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 5aa5f11826..ab46a953aa 100644 --- a/sdk/constructive-cli/src/compute/cli/commands/function-deployment.ts +++ b/sdk/constructive-cli/src/compute/cli/commands/function-deployment.ts @@ -19,13 +19,14 @@ const fieldSchema: FieldSchema = { id: 'uuid', createdAt: 'string', updatedAt: 'string', - functionDefinitionId: 'uuid', namespaceId: 'uuid', status: 'string', serviceUrl: 'string', serviceName: 'string', revision: 'int', image: 'string', + imageVersion: 'string', + handlerName: 'string', concurrency: 'int', scaleMin: 'int', scaleMax: 'int', @@ -92,13 +93,14 @@ async function handleList(argv: Partial>, _prompter: Inq id: true, createdAt: true, updatedAt: true, - functionDefinitionId: true, namespaceId: true, status: true, serviceUrl: true, serviceName: true, revision: true, image: true, + imageVersion: true, + handlerName: true, concurrency: true, scaleMin: true, scaleMax: true, @@ -137,13 +139,14 @@ async function handleFindFirst(argv: Partial>, _prompter id: true, createdAt: true, updatedAt: true, - functionDefinitionId: true, namespaceId: true, status: true, serviceUrl: true, serviceName: true, revision: true, image: true, + imageVersion: true, + handlerName: true, concurrency: true, scaleMin: true, scaleMax: true, @@ -194,13 +197,14 @@ async function handleGet(argv: Partial>, prompter: Inqui id: true, createdAt: true, updatedAt: true, - functionDefinitionId: true, namespaceId: true, status: true, serviceUrl: true, serviceName: true, revision: true, image: true, + imageVersion: true, + handlerName: true, concurrency: true, scaleMin: true, scaleMax: true, @@ -227,12 +231,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: 'functionDefinitionId', - message: 'functionDefinitionId', - required: true, - }, { type: 'text', name: 'namespaceId', @@ -271,6 +269,19 @@ async function handleCreate(argv: Partial>, prompter: In type: 'text', name: 'image', message: 'image', + required: true, + }, + { + type: 'text', + name: 'imageVersion', + message: 'imageVersion', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'handlerName', + message: 'handlerName', required: false, skipPrompt: true, }, @@ -360,13 +371,14 @@ async function handleCreate(argv: Partial>, prompter: In const result = await client.functionDeployment .create({ data: { - functionDefinitionId: cleanedData.functionDefinitionId, namespaceId: cleanedData.namespaceId, status: cleanedData.status, serviceUrl: cleanedData.serviceUrl, serviceName: cleanedData.serviceName, revision: cleanedData.revision, image: cleanedData.image, + imageVersion: cleanedData.imageVersion, + handlerName: cleanedData.handlerName, concurrency: cleanedData.concurrency, scaleMin: cleanedData.scaleMin, scaleMax: cleanedData.scaleMax, @@ -383,13 +395,14 @@ async function handleCreate(argv: Partial>, prompter: In id: true, createdAt: true, updatedAt: true, - functionDefinitionId: true, namespaceId: true, status: true, serviceUrl: true, serviceName: true, revision: true, image: true, + imageVersion: true, + handlerName: true, concurrency: true, scaleMin: true, scaleMax: true, @@ -422,12 +435,6 @@ async function handleUpdate(argv: Partial>, prompter: In message: 'id', required: true, }, - { - type: 'text', - name: 'functionDefinitionId', - message: 'functionDefinitionId', - required: false, - }, { type: 'text', name: 'namespaceId', @@ -467,6 +474,19 @@ async function handleUpdate(argv: Partial>, prompter: In name: 'image', message: 'image', required: false, + }, + { + type: 'text', + name: 'imageVersion', + message: 'imageVersion', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'handlerName', + message: 'handlerName', + required: false, skipPrompt: true, }, { @@ -555,13 +575,14 @@ async function handleUpdate(argv: Partial>, prompter: In id: answers.id as string, }, data: { - functionDefinitionId: cleanedData.functionDefinitionId, namespaceId: cleanedData.namespaceId, status: cleanedData.status, serviceUrl: cleanedData.serviceUrl, serviceName: cleanedData.serviceName, revision: cleanedData.revision, image: cleanedData.image, + imageVersion: cleanedData.imageVersion, + handlerName: cleanedData.handlerName, concurrency: cleanedData.concurrency, scaleMin: cleanedData.scaleMin, scaleMax: cleanedData.scaleMax, @@ -578,13 +599,14 @@ async function handleUpdate(argv: Partial>, prompter: In id: true, createdAt: true, updatedAt: true, - functionDefinitionId: true, namespaceId: true, status: true, serviceUrl: true, serviceName: true, revision: true, image: true, + imageVersion: true, + handlerName: true, concurrency: true, scaleMin: true, scaleMax: true, diff --git a/sdk/constructive-cli/src/compute/cli/commands/function-graph-commit.ts b/sdk/constructive-cli/src/compute/cli/commands/function-graph-commit.ts index 3708a5c1a2..8c3f5a6990 100644 --- a/sdk/constructive-cli/src/compute/cli/commands/function-graph-commit.ts +++ b/sdk/constructive-cli/src/compute/cli/commands/function-graph-commit.ts @@ -18,7 +18,7 @@ import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; const fieldSchema: FieldSchema = { id: 'uuid', message: 'string', - databaseId: 'uuid', + scopeId: 'uuid', storeId: 'uuid', parentIds: 'uuid', authorId: 'uuid', @@ -79,7 +79,7 @@ async function handleList(argv: Partial>, _prompter: Inq const defaultSelect = { id: true, message: true, - databaseId: true, + scopeId: true, storeId: true, parentIds: true, authorId: true, @@ -112,7 +112,7 @@ async function handleFindFirst(argv: Partial>, _prompter const defaultSelect = { id: true, message: true, - databaseId: true, + scopeId: true, storeId: true, parentIds: true, authorId: true, @@ -157,7 +157,7 @@ async function handleGet(argv: Partial>, prompter: Inqui select: { id: true, message: true, - databaseId: true, + scopeId: true, storeId: true, parentIds: true, authorId: true, @@ -188,8 +188,8 @@ async function handleCreate(argv: Partial>, prompter: In }, { type: 'text', - name: 'databaseId', - message: 'databaseId', + name: 'scopeId', + message: 'scopeId', required: true, }, { @@ -244,7 +244,7 @@ async function handleCreate(argv: Partial>, prompter: In .create({ data: { message: cleanedData.message, - databaseId: cleanedData.databaseId, + scopeId: cleanedData.scopeId, storeId: cleanedData.storeId, parentIds: cleanedData.parentIds, authorId: cleanedData.authorId, @@ -255,7 +255,7 @@ async function handleCreate(argv: Partial>, prompter: In select: { id: true, message: true, - databaseId: true, + scopeId: true, storeId: true, parentIds: true, authorId: true, @@ -285,8 +285,8 @@ async function handleUpdate(argv: Partial>, prompter: In }, { type: 'text', - name: 'databaseId', - message: 'databaseId', + name: 'scopeId', + message: 'scopeId', required: true, }, { @@ -345,7 +345,7 @@ async function handleUpdate(argv: Partial>, prompter: In .update({ where: { id: answers.id as string, - databaseId: answers.databaseId as string, + scopeId: answers.scopeId as string, }, data: { message: cleanedData.message, @@ -359,7 +359,7 @@ async function handleUpdate(argv: Partial>, prompter: In select: { id: true, message: true, - databaseId: true, + scopeId: true, storeId: true, parentIds: true, authorId: true, @@ -389,8 +389,8 @@ async function handleDelete(argv: Partial>, prompter: In }, { type: 'text', - name: 'databaseId', - message: 'databaseId', + name: 'scopeId', + message: 'scopeId', required: true, }, ]); @@ -400,7 +400,7 @@ async function handleDelete(argv: Partial>, prompter: In .delete({ where: { id: answers.id as string, - databaseId: answers.databaseId as string, + scopeId: answers.scopeId as string, }, select: { id: true, diff --git a/sdk/constructive-cli/src/compute/cli/commands/function-graph-execution-node-state.ts b/sdk/constructive-cli/src/compute/cli/commands/function-graph-execution-node-state.ts index b464a44c09..69d31091c1 100644 --- a/sdk/constructive-cli/src/compute/cli/commands/function-graph-execution-node-state.ts +++ b/sdk/constructive-cli/src/compute/cli/commands/function-graph-execution-node-state.ts @@ -19,7 +19,7 @@ const fieldSchema: FieldSchema = { createdAt: 'string', id: 'uuid', executionId: 'uuid', - databaseId: 'uuid', + scopeId: 'uuid', nodeName: 'string', nodePath: 'string', status: 'string', @@ -83,7 +83,7 @@ async function handleList(argv: Partial>, _prompter: Inq createdAt: true, id: true, executionId: true, - databaseId: true, + scopeId: true, nodeName: true, nodePath: true, status: true, @@ -119,7 +119,7 @@ async function handleFindFirst(argv: Partial>, _prompter createdAt: true, id: true, executionId: true, - databaseId: true, + scopeId: true, nodeName: true, nodePath: true, status: true, @@ -167,7 +167,7 @@ async function handleGet(argv: Partial>, prompter: Inqui createdAt: true, id: true, executionId: true, - databaseId: true, + scopeId: true, nodeName: true, nodePath: true, status: true, @@ -199,8 +199,8 @@ async function handleCreate(argv: Partial>, prompter: In }, { type: 'text', - name: 'databaseId', - message: 'databaseId', + name: 'scopeId', + message: 'scopeId', required: true, }, { @@ -269,7 +269,7 @@ async function handleCreate(argv: Partial>, prompter: In .create({ data: { executionId: cleanedData.executionId, - databaseId: cleanedData.databaseId, + scopeId: cleanedData.scopeId, nodeName: cleanedData.nodeName, nodePath: cleanedData.nodePath, status: cleanedData.status, @@ -283,7 +283,7 @@ async function handleCreate(argv: Partial>, prompter: In createdAt: true, id: true, executionId: true, - databaseId: true, + scopeId: true, nodeName: true, nodePath: true, status: true, @@ -327,8 +327,8 @@ async function handleUpdate(argv: Partial>, prompter: In }, { type: 'text', - name: 'databaseId', - message: 'databaseId', + name: 'scopeId', + message: 'scopeId', required: false, }, { @@ -401,7 +401,7 @@ async function handleUpdate(argv: Partial>, prompter: In }, data: { executionId: cleanedData.executionId, - databaseId: cleanedData.databaseId, + scopeId: cleanedData.scopeId, nodeName: cleanedData.nodeName, nodePath: cleanedData.nodePath, status: cleanedData.status, @@ -415,7 +415,7 @@ async function handleUpdate(argv: Partial>, prompter: In createdAt: true, id: true, executionId: true, - databaseId: true, + scopeId: true, nodeName: true, nodePath: true, status: true, diff --git a/sdk/constructive-cli/src/compute/cli/commands/function-graph-execution-output.ts b/sdk/constructive-cli/src/compute/cli/commands/function-graph-execution-output.ts index e4f5ea3b0a..4034578257 100644 --- a/sdk/constructive-cli/src/compute/cli/commands/function-graph-execution-output.ts +++ b/sdk/constructive-cli/src/compute/cli/commands/function-graph-execution-output.ts @@ -18,7 +18,7 @@ import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; const fieldSchema: FieldSchema = { createdAt: 'string', id: 'uuid', - databaseId: 'uuid', + scopeId: 'uuid', hash: 'string', data: 'json', }; @@ -75,7 +75,7 @@ async function handleList(argv: Partial>, _prompter: Inq const defaultSelect = { createdAt: true, id: true, - databaseId: true, + scopeId: true, hash: true, data: true, }; @@ -104,7 +104,7 @@ async function handleFindFirst(argv: Partial>, _prompter const defaultSelect = { createdAt: true, id: true, - databaseId: true, + scopeId: true, hash: true, data: true, }; @@ -145,7 +145,7 @@ async function handleGet(argv: Partial>, prompter: Inqui select: { createdAt: true, id: true, - databaseId: true, + scopeId: true, hash: true, data: true, }, @@ -165,8 +165,8 @@ async function handleCreate(argv: Partial>, prompter: In const rawAnswers = await prompter.prompt(argv, [ { type: 'text', - name: 'databaseId', - message: 'databaseId', + name: 'scopeId', + message: 'scopeId', required: true, }, { @@ -191,14 +191,14 @@ async function handleCreate(argv: Partial>, prompter: In const result = await client.functionGraphExecutionOutput .create({ data: { - databaseId: cleanedData.databaseId, + scopeId: cleanedData.scopeId, hash: cleanedData.hash, data: cleanedData.data, }, select: { createdAt: true, id: true, - databaseId: true, + scopeId: true, hash: true, data: true, }, @@ -230,8 +230,8 @@ async function handleUpdate(argv: Partial>, prompter: In }, { type: 'text', - name: 'databaseId', - message: 'databaseId', + name: 'scopeId', + message: 'scopeId', required: false, }, { @@ -257,14 +257,14 @@ async function handleUpdate(argv: Partial>, prompter: In createdAt: answers.createdAt as string, }, data: { - databaseId: cleanedData.databaseId, + scopeId: cleanedData.scopeId, hash: cleanedData.hash, data: cleanedData.data, }, select: { createdAt: true, id: true, - databaseId: true, + scopeId: true, hash: true, data: true, }, diff --git a/sdk/constructive-cli/src/compute/cli/commands/function-graph-execution.ts b/sdk/constructive-cli/src/compute/cli/commands/function-graph-execution.ts index 059abe7b20..66dd29823e 100644 --- a/sdk/constructive-cli/src/compute/cli/commands/function-graph-execution.ts +++ b/sdk/constructive-cli/src/compute/cli/commands/function-graph-execution.ts @@ -20,7 +20,7 @@ const fieldSchema: FieldSchema = { id: 'uuid', graphId: 'uuid', invocationId: 'uuid', - databaseId: 'uuid', + scopeId: 'uuid', outputNode: 'string', outputPort: 'string', status: 'string', @@ -37,6 +37,7 @@ const fieldSchema: FieldSchema = { maxTicks: 'int', maxPendingJobs: 'int', timeoutAt: 'string', + lastProgressAt: 'string', errorCode: 'string', errorMessage: 'string', }; @@ -95,7 +96,7 @@ async function handleList(argv: Partial>, _prompter: Inq id: true, graphId: true, invocationId: true, - databaseId: true, + scopeId: true, outputNode: true, outputPort: true, status: true, @@ -112,6 +113,7 @@ async function handleList(argv: Partial>, _prompter: Inq maxTicks: true, maxPendingJobs: true, timeoutAt: true, + lastProgressAt: true, errorCode: true, errorMessage: true, }; @@ -142,7 +144,7 @@ async function handleFindFirst(argv: Partial>, _prompter id: true, graphId: true, invocationId: true, - databaseId: true, + scopeId: true, outputNode: true, outputPort: true, status: true, @@ -159,6 +161,7 @@ async function handleFindFirst(argv: Partial>, _prompter maxTicks: true, maxPendingJobs: true, timeoutAt: true, + lastProgressAt: true, errorCode: true, errorMessage: true, }; @@ -201,7 +204,7 @@ async function handleGet(argv: Partial>, prompter: Inqui id: true, graphId: true, invocationId: true, - databaseId: true, + scopeId: true, outputNode: true, outputPort: true, status: true, @@ -218,6 +221,7 @@ async function handleGet(argv: Partial>, prompter: Inqui maxTicks: true, maxPendingJobs: true, timeoutAt: true, + lastProgressAt: true, errorCode: true, errorMessage: true, }, @@ -257,15 +261,16 @@ async function handleCreate(argv: Partial>, prompter: In }, { type: 'text', - name: 'databaseId', - message: 'databaseId', + name: 'scopeId', + message: 'scopeId', required: true, }, { type: 'text', name: 'outputNode', message: 'outputNode', - required: true, + required: false, + skipPrompt: true, }, { type: 'text', @@ -372,6 +377,13 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'lastProgressAt', + message: 'lastProgressAt', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'errorCode', @@ -399,7 +411,7 @@ async function handleCreate(argv: Partial>, prompter: In startedAt: cleanedData.startedAt, graphId: cleanedData.graphId, invocationId: cleanedData.invocationId, - databaseId: cleanedData.databaseId, + scopeId: cleanedData.scopeId, outputNode: cleanedData.outputNode, outputPort: cleanedData.outputPort, status: cleanedData.status, @@ -416,6 +428,7 @@ async function handleCreate(argv: Partial>, prompter: In maxTicks: cleanedData.maxTicks, maxPendingJobs: cleanedData.maxPendingJobs, timeoutAt: cleanedData.timeoutAt, + lastProgressAt: cleanedData.lastProgressAt, errorCode: cleanedData.errorCode, errorMessage: cleanedData.errorMessage, }, @@ -424,7 +437,7 @@ async function handleCreate(argv: Partial>, prompter: In id: true, graphId: true, invocationId: true, - databaseId: true, + scopeId: true, outputNode: true, outputPort: true, status: true, @@ -441,6 +454,7 @@ async function handleCreate(argv: Partial>, prompter: In maxTicks: true, maxPendingJobs: true, timeoutAt: true, + lastProgressAt: true, errorCode: true, errorMessage: true, }, @@ -485,8 +499,8 @@ async function handleUpdate(argv: Partial>, prompter: In }, { type: 'text', - name: 'databaseId', - message: 'databaseId', + name: 'scopeId', + message: 'scopeId', required: false, }, { @@ -494,6 +508,7 @@ async function handleUpdate(argv: Partial>, prompter: In name: 'outputNode', message: 'outputNode', required: false, + skipPrompt: true, }, { type: 'text', @@ -600,6 +615,13 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'lastProgressAt', + message: 'lastProgressAt', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'errorCode', @@ -627,7 +649,7 @@ async function handleUpdate(argv: Partial>, prompter: In data: { graphId: cleanedData.graphId, invocationId: cleanedData.invocationId, - databaseId: cleanedData.databaseId, + scopeId: cleanedData.scopeId, outputNode: cleanedData.outputNode, outputPort: cleanedData.outputPort, status: cleanedData.status, @@ -644,6 +666,7 @@ async function handleUpdate(argv: Partial>, prompter: In maxTicks: cleanedData.maxTicks, maxPendingJobs: cleanedData.maxPendingJobs, timeoutAt: cleanedData.timeoutAt, + lastProgressAt: cleanedData.lastProgressAt, errorCode: cleanedData.errorCode, errorMessage: cleanedData.errorMessage, }, @@ -652,7 +675,7 @@ async function handleUpdate(argv: Partial>, prompter: In id: true, graphId: true, invocationId: true, - databaseId: true, + scopeId: true, outputNode: true, outputPort: true, status: true, @@ -669,6 +692,7 @@ async function handleUpdate(argv: Partial>, prompter: In maxTicks: true, maxPendingJobs: true, timeoutAt: true, + lastProgressAt: true, errorCode: true, errorMessage: true, }, diff --git a/sdk/constructive-cli/src/compute/cli/commands/function-graph-object.ts b/sdk/constructive-cli/src/compute/cli/commands/function-graph-object.ts index 055b2fcefe..6dae8a976d 100644 --- a/sdk/constructive-cli/src/compute/cli/commands/function-graph-object.ts +++ b/sdk/constructive-cli/src/compute/cli/commands/function-graph-object.ts @@ -17,7 +17,7 @@ import type { import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; const fieldSchema: FieldSchema = { id: 'uuid', - databaseId: 'uuid', + scopeId: 'uuid', kids: 'uuid', ktree: 'string', data: 'json', @@ -75,7 +75,7 @@ async function handleList(argv: Partial>, _prompter: Inq try { const defaultSelect = { id: true, - databaseId: true, + scopeId: true, kids: true, ktree: true, data: true, @@ -105,7 +105,7 @@ async function handleFindFirst(argv: Partial>, _prompter try { const defaultSelect = { id: true, - databaseId: true, + scopeId: true, kids: true, ktree: true, data: true, @@ -147,7 +147,7 @@ async function handleGet(argv: Partial>, prompter: Inqui id: answers.id as string, select: { id: true, - databaseId: true, + scopeId: true, kids: true, ktree: true, data: true, @@ -169,8 +169,8 @@ async function handleCreate(argv: Partial>, prompter: In const rawAnswers = await prompter.prompt(argv, [ { type: 'text', - name: 'databaseId', - message: 'databaseId', + name: 'scopeId', + message: 'scopeId', required: true, }, { @@ -204,14 +204,14 @@ async function handleCreate(argv: Partial>, prompter: In const result = await client.functionGraphObject .create({ data: { - databaseId: cleanedData.databaseId, + scopeId: cleanedData.scopeId, kids: cleanedData.kids, ktree: cleanedData.ktree, data: cleanedData.data, }, select: { id: true, - databaseId: true, + scopeId: true, kids: true, ktree: true, data: true, @@ -239,8 +239,8 @@ async function handleUpdate(argv: Partial>, prompter: In }, { type: 'text', - name: 'databaseId', - message: 'databaseId', + name: 'scopeId', + message: 'scopeId', required: true, }, { @@ -272,7 +272,7 @@ async function handleUpdate(argv: Partial>, prompter: In .update({ where: { id: answers.id as string, - databaseId: answers.databaseId as string, + scopeId: answers.scopeId as string, }, data: { kids: cleanedData.kids, @@ -281,7 +281,7 @@ async function handleUpdate(argv: Partial>, prompter: In }, select: { id: true, - databaseId: true, + scopeId: true, kids: true, ktree: true, data: true, @@ -309,8 +309,8 @@ async function handleDelete(argv: Partial>, prompter: In }, { type: 'text', - name: 'databaseId', - message: 'databaseId', + name: 'scopeId', + message: 'scopeId', required: true, }, ]); @@ -320,7 +320,7 @@ async function handleDelete(argv: Partial>, prompter: In .delete({ where: { id: answers.id as string, - databaseId: answers.databaseId as string, + scopeId: answers.scopeId as string, }, select: { id: true, diff --git a/sdk/constructive-cli/src/compute/cli/commands/function-graph-ref.ts b/sdk/constructive-cli/src/compute/cli/commands/function-graph-ref.ts index 3a0701610e..a1ed1f9960 100644 --- a/sdk/constructive-cli/src/compute/cli/commands/function-graph-ref.ts +++ b/sdk/constructive-cli/src/compute/cli/commands/function-graph-ref.ts @@ -18,7 +18,7 @@ import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; const fieldSchema: FieldSchema = { id: 'uuid', name: 'string', - databaseId: 'uuid', + scopeId: 'uuid', storeId: 'uuid', commitId: 'uuid', }; @@ -75,7 +75,7 @@ async function handleList(argv: Partial>, _prompter: Inq const defaultSelect = { id: true, name: true, - databaseId: true, + scopeId: true, storeId: true, commitId: true, }; @@ -100,7 +100,7 @@ async function handleFindFirst(argv: Partial>, _prompter const defaultSelect = { id: true, name: true, - databaseId: true, + scopeId: true, storeId: true, commitId: true, }; @@ -137,7 +137,7 @@ async function handleGet(argv: Partial>, prompter: Inqui select: { id: true, name: true, - databaseId: true, + scopeId: true, storeId: true, commitId: true, }, @@ -163,8 +163,8 @@ async function handleCreate(argv: Partial>, prompter: In }, { type: 'text', - name: 'databaseId', - message: 'databaseId', + name: 'scopeId', + message: 'scopeId', required: true, }, { @@ -191,14 +191,14 @@ async function handleCreate(argv: Partial>, prompter: In .create({ data: { name: cleanedData.name, - databaseId: cleanedData.databaseId, + scopeId: cleanedData.scopeId, storeId: cleanedData.storeId, commitId: cleanedData.commitId, }, select: { id: true, name: true, - databaseId: true, + scopeId: true, storeId: true, commitId: true, }, @@ -224,8 +224,8 @@ async function handleUpdate(argv: Partial>, prompter: In }, { type: 'text', - name: 'databaseId', - message: 'databaseId', + name: 'scopeId', + message: 'scopeId', required: true, }, { @@ -255,7 +255,7 @@ async function handleUpdate(argv: Partial>, prompter: In .update({ where: { id: answers.id as string, - databaseId: answers.databaseId as string, + scopeId: answers.scopeId as string, }, data: { name: cleanedData.name, @@ -265,7 +265,7 @@ async function handleUpdate(argv: Partial>, prompter: In select: { id: true, name: true, - databaseId: true, + scopeId: true, storeId: true, commitId: true, }, @@ -291,8 +291,8 @@ async function handleDelete(argv: Partial>, prompter: In }, { type: 'text', - name: 'databaseId', - message: 'databaseId', + name: 'scopeId', + message: 'scopeId', required: true, }, ]); @@ -302,7 +302,7 @@ async function handleDelete(argv: Partial>, prompter: In .delete({ where: { id: answers.id as string, - databaseId: answers.databaseId as string, + scopeId: answers.scopeId as string, }, select: { id: true, diff --git a/sdk/constructive-cli/src/compute/cli/commands/function-graph-store.ts b/sdk/constructive-cli/src/compute/cli/commands/function-graph-store.ts index 9cb67b3970..32b54ff1da 100644 --- a/sdk/constructive-cli/src/compute/cli/commands/function-graph-store.ts +++ b/sdk/constructive-cli/src/compute/cli/commands/function-graph-store.ts @@ -18,7 +18,7 @@ import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; const fieldSchema: FieldSchema = { id: 'uuid', name: 'string', - databaseId: 'uuid', + scopeId: 'uuid', hash: 'uuid', createdAt: 'string', }; @@ -75,7 +75,7 @@ async function handleList(argv: Partial>, _prompter: Inq const defaultSelect = { id: true, name: true, - databaseId: true, + scopeId: true, hash: true, createdAt: true, }; @@ -104,7 +104,7 @@ async function handleFindFirst(argv: Partial>, _prompter const defaultSelect = { id: true, name: true, - databaseId: true, + scopeId: true, hash: true, createdAt: true, }; @@ -145,7 +145,7 @@ async function handleGet(argv: Partial>, prompter: Inqui select: { id: true, name: true, - databaseId: true, + scopeId: true, hash: true, createdAt: true, }, @@ -171,8 +171,8 @@ async function handleCreate(argv: Partial>, prompter: In }, { type: 'text', - name: 'databaseId', - message: 'databaseId', + name: 'scopeId', + message: 'scopeId', required: true, }, { @@ -193,13 +193,13 @@ async function handleCreate(argv: Partial>, prompter: In .create({ data: { name: cleanedData.name, - databaseId: cleanedData.databaseId, + scopeId: cleanedData.scopeId, hash: cleanedData.hash, }, select: { id: true, name: true, - databaseId: true, + scopeId: true, hash: true, createdAt: true, }, @@ -231,8 +231,8 @@ async function handleUpdate(argv: Partial>, prompter: In }, { type: 'text', - name: 'databaseId', - message: 'databaseId', + name: 'scopeId', + message: 'scopeId', required: false, }, { @@ -253,13 +253,13 @@ async function handleUpdate(argv: Partial>, prompter: In }, data: { name: cleanedData.name, - databaseId: cleanedData.databaseId, + scopeId: cleanedData.scopeId, hash: cleanedData.hash, }, select: { id: true, name: true, - databaseId: true, + scopeId: true, hash: true, createdAt: true, }, diff --git a/sdk/constructive-cli/src/compute/cli/commands/function-graph.ts b/sdk/constructive-cli/src/compute/cli/commands/function-graph.ts index 0a5288cd3f..916afefc93 100644 --- a/sdk/constructive-cli/src/compute/cli/commands/function-graph.ts +++ b/sdk/constructive-cli/src/compute/cli/commands/function-graph.ts @@ -17,7 +17,7 @@ import type { import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; const fieldSchema: FieldSchema = { id: 'uuid', - databaseId: 'uuid', + scopeId: 'uuid', storeId: 'uuid', context: 'string', name: 'string', @@ -81,7 +81,7 @@ async function handleList(argv: Partial>, _prompter: Inq try { const defaultSelect = { id: true, - databaseId: true, + scopeId: true, storeId: true, context: true, name: true, @@ -113,7 +113,7 @@ async function handleFindFirst(argv: Partial>, _prompter try { const defaultSelect = { id: true, - databaseId: true, + scopeId: true, storeId: true, context: true, name: true, @@ -157,7 +157,7 @@ async function handleGet(argv: Partial>, prompter: Inqui id: answers.id as string, select: { id: true, - databaseId: true, + scopeId: true, storeId: true, context: true, name: true, @@ -185,8 +185,8 @@ async function handleCreate(argv: Partial>, prompter: In const rawAnswers = await prompter.prompt(argv, [ { type: 'text', - name: 'databaseId', - message: 'databaseId', + name: 'scopeId', + message: 'scopeId', required: true, }, { @@ -247,7 +247,7 @@ async function handleCreate(argv: Partial>, prompter: In const result = await client.functionGraph .create({ data: { - databaseId: cleanedData.databaseId, + scopeId: cleanedData.scopeId, storeId: cleanedData.storeId, context: cleanedData.context, name: cleanedData.name, @@ -259,7 +259,7 @@ async function handleCreate(argv: Partial>, prompter: In }, select: { id: true, - databaseId: true, + scopeId: true, storeId: true, context: true, name: true, @@ -293,8 +293,8 @@ async function handleUpdate(argv: Partial>, prompter: In }, { type: 'text', - name: 'databaseId', - message: 'databaseId', + name: 'scopeId', + message: 'scopeId', required: false, }, { @@ -355,7 +355,7 @@ async function handleUpdate(argv: Partial>, prompter: In id: answers.id as string, }, data: { - databaseId: cleanedData.databaseId, + scopeId: cleanedData.scopeId, storeId: cleanedData.storeId, context: cleanedData.context, name: cleanedData.name, @@ -367,7 +367,7 @@ async function handleUpdate(argv: Partial>, prompter: In }, select: { id: true, - databaseId: true, + scopeId: true, storeId: true, context: true, name: true, diff --git a/sdk/constructive-cli/src/compute/cli/commands/infra-commit.ts b/sdk/constructive-cli/src/compute/cli/commands/infra-commit.ts new file mode 100644 index 0000000000..c3a13642c4 --- /dev/null +++ b/sdk/constructive-cli/src/compute/cli/commands/infra-commit.ts @@ -0,0 +1,410 @@ +/** + * CLI commands for InfraCommit + * @generated 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 { + CreateInfraCommitInput, + InfraCommitPatch, + InfraCommitSelect, + InfraCommitFilter, + InfraCommitOrderBy, +} from '../../orm/input-types'; +import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; +const fieldSchema: FieldSchema = { + id: 'uuid', + message: 'string', + scopeId: 'uuid', + storeId: 'uuid', + parentIds: 'uuid', + authorId: 'uuid', + committerId: 'uuid', + treeId: 'uuid', + date: 'string', +}; +const usage = + '\ninfra-commit \n\nCommands:\n list List infraCommit records\n find-first Find first matching infraCommit record\n get Get a infraCommit by ID\n create Create a new infraCommit\n update Update an existing infraCommit\n delete Delete a infraCommit\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (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, + message: true, + scopeId: true, + storeId: true, + parentIds: true, + authorId: true, + committerId: true, + treeId: true, + date: true, + }; + const findManyArgs = parseFindManyArgs< + FindManyArgs & { + select: InfraCommitSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.infraCommit.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, + message: true, + scopeId: true, + storeId: true, + parentIds: true, + authorId: true, + committerId: true, + treeId: true, + date: true, + }; + const findFirstArgs = parseFindFirstArgs< + FindFirstArgs & { + select: InfraCommitSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.infraCommit.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.infraCommit + .findOne({ + id: answers.id as string, + select: { + id: true, + message: true, + scopeId: true, + storeId: true, + parentIds: true, + authorId: true, + committerId: true, + treeId: true, + date: 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: 'message', + message: 'message', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'scopeId', + message: 'scopeId', + required: true, + }, + { + type: 'text', + name: 'storeId', + message: 'storeId', + required: true, + }, + { + type: 'text', + name: 'parentIds', + message: 'parentIds', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'authorId', + message: 'authorId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'committerId', + message: 'committerId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'treeId', + message: 'treeId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'date', + message: 'date', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined( + answers, + fieldSchema + ) as CreateInfraCommitInput['infraCommit']; + const client = getClient(); + const result = await client.infraCommit + .create({ + data: { + message: cleanedData.message, + scopeId: cleanedData.scopeId, + storeId: cleanedData.storeId, + parentIds: cleanedData.parentIds, + authorId: cleanedData.authorId, + committerId: cleanedData.committerId, + treeId: cleanedData.treeId, + date: cleanedData.date, + }, + select: { + id: true, + message: true, + scopeId: true, + storeId: true, + parentIds: true, + authorId: true, + committerId: true, + treeId: true, + date: true, + }, + }) + .execute(); + console.log(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: 'scopeId', + message: 'scopeId', + required: true, + }, + { + type: 'text', + name: 'message', + message: 'message', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'storeId', + message: 'storeId', + required: false, + }, + { + type: 'text', + name: 'parentIds', + message: 'parentIds', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'authorId', + message: 'authorId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'committerId', + message: 'committerId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'treeId', + message: 'treeId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'date', + message: 'date', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined(answers, fieldSchema) as InfraCommitPatch; + const client = getClient(); + const result = await client.infraCommit + .update({ + where: { + id: answers.id as string, + scopeId: answers.scopeId as string, + }, + data: { + message: cleanedData.message, + storeId: cleanedData.storeId, + parentIds: cleanedData.parentIds, + authorId: cleanedData.authorId, + committerId: cleanedData.committerId, + treeId: cleanedData.treeId, + date: cleanedData.date, + }, + select: { + id: true, + message: true, + scopeId: true, + storeId: true, + parentIds: true, + authorId: true, + committerId: true, + treeId: true, + date: 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: 'scopeId', + message: 'scopeId', + required: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const client = getClient(); + const result = await client.infraCommit + .delete({ + where: { + id: answers.id as string, + scopeId: answers.scopeId 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-get-all-record.ts b/sdk/constructive-cli/src/compute/cli/commands/infra-get-all-record.ts new file mode 100644 index 0000000000..c3dd220e2c --- /dev/null +++ b/sdk/constructive-cli/src/compute/cli/commands/infra-get-all-record.ts @@ -0,0 +1,150 @@ +/** + * CLI commands for InfraGetAllRecord + * @generated 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 { + CreateInfraGetAllRecordInput, + InfraGetAllRecordPatch, + InfraGetAllRecordSelect, + InfraGetAllRecordFilter, + InfraGetAllRecordsOrderBy, +} from '../../orm/input-types'; +import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; +const fieldSchema: FieldSchema = { + path: 'string', + data: 'json', +}; +const usage = + '\ninfra-get-all-record \n\nCommands:\n list List infraGetAllRecord records\n find-first Find first matching infraGetAllRecord record\n create Create a new infraGetAllRecord\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (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 = { + path: true, + data: true, + }; + const findManyArgs = parseFindManyArgs< + FindManyArgs & { + select: InfraGetAllRecordSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.infraGetAllRecord.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 = { + path: true, + data: true, + }; + const findFirstArgs = parseFindFirstArgs< + FindFirstArgs & { + select: InfraGetAllRecordSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.infraGetAllRecord.findFirst(findFirstArgs).execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to find record.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} +async function handleCreate(argv: Partial>, prompter: Inquirerer) { + try { + const rawAnswers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'path', + message: 'path', + required: true, + }, + { + type: 'json', + name: 'data', + message: 'data', + required: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined( + answers, + fieldSchema + ) as CreateInfraGetAllRecordInput['infraGetAllRecord']; + const client = getClient(); + const result = await client.infraGetAllRecord + .create({ + data: { + path: cleanedData.path, + data: cleanedData.data, + }, + select: { + path: true, + data: true, + }, + }) + .execute(); + console.log(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/infra-init-empty-repo.ts b/sdk/constructive-cli/src/compute/cli/commands/infra-init-empty-repo.ts new file mode 100644 index 0000000000..1178351d1e --- /dev/null +++ b/sdk/constructive-cli/src/compute/cli/commands/infra-init-empty-repo.ts @@ -0,0 +1,53 @@ +/** + * CLI command for mutation infraInitEmptyRepo + * @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 { InfraInitEmptyRepoVariables } from '../../orm/mutation'; +import type { InfraInitEmptyRepoPayloadSelect } from '../../orm/input-types'; +export default async ( + argv: Partial>, + prompter: Inquirerer, + _options: CLIOptions +) => { + try { + if (argv.help || argv.h) { + console.log( + 'infra-init-empty-repo - infraInitEmptyRepo\n\nUsage: infra-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 + .infraInitEmptyRepo( + parsedAnswers as unknown as InfraInitEmptyRepoVariables, + { + select: selectFields, + } as unknown as { + select: InfraInitEmptyRepoPayloadSelect; + } + ) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed: infraInitEmptyRepo'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +}; diff --git a/sdk/constructive-cli/src/config/cli/commands/org-secrets-remove-array.ts b/sdk/constructive-cli/src/compute/cli/commands/infra-insert-node-at-path.ts similarity index 73% rename from sdk/constructive-cli/src/config/cli/commands/org-secrets-remove-array.ts rename to sdk/constructive-cli/src/compute/cli/commands/infra-insert-node-at-path.ts index e8c120b6e2..f5c871f585 100644 --- a/sdk/constructive-cli/src/config/cli/commands/org-secrets-remove-array.ts +++ b/sdk/constructive-cli/src/compute/cli/commands/infra-insert-node-at-path.ts @@ -1,13 +1,13 @@ /** - * CLI command for mutation orgSecretsRemoveArray + * CLI command for mutation infraInsertNodeAtPath * @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 { OrgSecretsRemoveArrayVariables } from '../../orm/mutation'; -import type { OrgSecretsRemoveArrayPayloadSelect } from '../../orm/input-types'; +import type { InfraInsertNodeAtPathVariables } from '../../orm/mutation'; +import type { InfraInsertNodeAtPathPayloadSelect } from '../../orm/input-types'; export default async ( argv: Partial>, prompter: Inquirerer, @@ -16,7 +16,7 @@ export default async ( try { if (argv.help || argv.h) { console.log( - 'org-secrets-remove-array - orgSecretsRemoveArray\n\nUsage: org-secrets-remove-array [OPTIONS]\n' + 'infra-insert-node-at-path - infraInsertNodeAtPath\n\nUsage: infra-insert-node-at-path [OPTIONS]\n' ); process.exit(0); } @@ -33,18 +33,18 @@ export default async ( const parsedAnswers = unflattenDotNotation(answers); const selectFields = buildSelectFromPaths((argv.select as string) ?? 'clientMutationId'); const result = await client.mutation - .orgSecretsRemoveArray( - parsedAnswers as unknown as OrgSecretsRemoveArrayVariables, + .infraInsertNodeAtPath( + parsedAnswers as unknown as InfraInsertNodeAtPathVariables, { select: selectFields, } as unknown as { - select: OrgSecretsRemoveArrayPayloadSelect; + select: InfraInsertNodeAtPathPayloadSelect; } ) .execute(); console.log(JSON.stringify(result, null, 2)); } catch (error) { - console.error('Failed: orgSecretsRemoveArray'); + console.error('Failed: infraInsertNodeAtPath'); if (error instanceof Error) { console.error(error.message); } diff --git a/sdk/constructive-cli/src/compute/cli/commands/infra-object.ts b/sdk/constructive-cli/src/compute/cli/commands/infra-object.ts new file mode 100644 index 0000000000..246b69d428 --- /dev/null +++ b/sdk/constructive-cli/src/compute/cli/commands/infra-object.ts @@ -0,0 +1,330 @@ +/** + * CLI commands for InfraObject + * @generated 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 { + CreateInfraObjectInput, + InfraObjectPatch, + InfraObjectSelect, + InfraObjectFilter, + InfraObjectOrderBy, +} from '../../orm/input-types'; +import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; +const fieldSchema: FieldSchema = { + id: 'uuid', + scopeId: 'uuid', + kids: 'uuid', + ktree: 'string', + data: 'json', + createdAt: 'string', +}; +const usage = + '\ninfra-object \n\nCommands:\n list List infraObject records\n find-first Find first matching infraObject record\n get Get a infraObject by ID\n create Create a new infraObject\n update Update an existing infraObject\n delete Delete a infraObject\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (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, + scopeId: true, + kids: true, + ktree: true, + data: true, + createdAt: true, + }; + const findManyArgs = parseFindManyArgs< + FindManyArgs & { + select: InfraObjectSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.infraObject.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, + scopeId: true, + kids: true, + ktree: true, + data: true, + createdAt: true, + }; + const findFirstArgs = parseFindFirstArgs< + FindFirstArgs & { + select: InfraObjectSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.infraObject.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.infraObject + .findOne({ + id: answers.id as string, + select: { + id: true, + scopeId: true, + kids: true, + ktree: true, + data: true, + createdAt: 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: 'scopeId', + message: 'scopeId', + required: true, + }, + { + type: 'text', + name: 'kids', + message: 'kids', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'ktree', + message: 'ktree', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'data', + message: 'data', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined( + answers, + fieldSchema + ) as CreateInfraObjectInput['infraObject']; + const client = getClient(); + const result = await client.infraObject + .create({ + data: { + scopeId: cleanedData.scopeId, + kids: cleanedData.kids, + ktree: cleanedData.ktree, + data: cleanedData.data, + }, + select: { + id: true, + scopeId: true, + kids: true, + ktree: true, + data: true, + createdAt: true, + }, + }) + .execute(); + console.log(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: 'scopeId', + message: 'scopeId', + required: true, + }, + { + type: 'text', + name: 'kids', + message: 'kids', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'ktree', + message: 'ktree', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'data', + message: 'data', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined(answers, fieldSchema) as InfraObjectPatch; + const client = getClient(); + const result = await client.infraObject + .update({ + where: { + id: answers.id as string, + scopeId: answers.scopeId as string, + }, + data: { + kids: cleanedData.kids, + ktree: cleanedData.ktree, + data: cleanedData.data, + }, + select: { + id: true, + scopeId: true, + kids: true, + ktree: true, + data: true, + createdAt: 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: 'scopeId', + message: 'scopeId', + required: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const client = getClient(); + const result = await client.infraObject + .delete({ + where: { + id: answers.id as string, + scopeId: answers.scopeId 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-ref.ts b/sdk/constructive-cli/src/compute/cli/commands/infra-ref.ts new file mode 100644 index 0000000000..2b07ab4624 --- /dev/null +++ b/sdk/constructive-cli/src/compute/cli/commands/infra-ref.ts @@ -0,0 +1,317 @@ +/** + * CLI commands for InfraRef + * @generated 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 { + CreateInfraRefInput, + InfraRefPatch, + InfraRefSelect, + InfraRefFilter, + InfraRefOrderBy, +} from '../../orm/input-types'; +import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; +const fieldSchema: FieldSchema = { + id: 'uuid', + name: 'string', + scopeId: 'uuid', + storeId: 'uuid', + commitId: 'uuid', +}; +const usage = + '\ninfra-ref \n\nCommands:\n list List infraRef records\n find-first Find first matching infraRef record\n get Get a infraRef by ID\n create Create a new infraRef\n update Update an existing infraRef\n delete Delete a infraRef\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (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, + name: true, + scopeId: true, + storeId: true, + commitId: true, + }; + const findManyArgs = parseFindManyArgs< + FindManyArgs & { + select: InfraRefSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.infraRef.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, + name: true, + scopeId: true, + storeId: true, + commitId: true, + }; + const findFirstArgs = parseFindFirstArgs< + FindFirstArgs & { + select: InfraRefSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.infraRef.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.infraRef + .findOne({ + id: answers.id as string, + select: { + id: true, + name: true, + scopeId: true, + storeId: true, + commitId: true, + }, + }) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Record not found.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} +async function handleCreate(argv: Partial>, prompter: Inquirerer) { + try { + const rawAnswers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'name', + message: 'name', + required: true, + }, + { + type: 'text', + name: 'scopeId', + message: 'scopeId', + required: true, + }, + { + type: 'text', + name: 'storeId', + message: 'storeId', + required: true, + }, + { + type: 'text', + name: 'commitId', + message: 'commitId', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined(answers, fieldSchema) as CreateInfraRefInput['infraRef']; + const client = getClient(); + const result = await client.infraRef + .create({ + data: { + name: cleanedData.name, + scopeId: cleanedData.scopeId, + storeId: cleanedData.storeId, + commitId: cleanedData.commitId, + }, + select: { + id: true, + name: true, + scopeId: true, + storeId: true, + commitId: true, + }, + }) + .execute(); + console.log(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: 'scopeId', + message: 'scopeId', + required: true, + }, + { + type: 'text', + name: 'name', + message: 'name', + required: false, + }, + { + type: 'text', + name: 'storeId', + message: 'storeId', + required: false, + }, + { + type: 'text', + name: 'commitId', + message: 'commitId', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined(answers, fieldSchema) as InfraRefPatch; + const client = getClient(); + const result = await client.infraRef + .update({ + where: { + id: answers.id as string, + scopeId: answers.scopeId as string, + }, + data: { + name: cleanedData.name, + storeId: cleanedData.storeId, + commitId: cleanedData.commitId, + }, + select: { + id: true, + name: true, + scopeId: true, + storeId: true, + commitId: 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: 'scopeId', + message: 'scopeId', + required: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const client = getClient(); + const result = await client.infraRef + .delete({ + where: { + id: answers.id as string, + scopeId: answers.scopeId 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-set-data-at-path.ts b/sdk/constructive-cli/src/compute/cli/commands/infra-set-data-at-path.ts new file mode 100644 index 0000000000..63fa0bf97a --- /dev/null +++ b/sdk/constructive-cli/src/compute/cli/commands/infra-set-data-at-path.ts @@ -0,0 +1,53 @@ +/** + * CLI command for mutation infraSetDataAtPath + * @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 { InfraSetDataAtPathVariables } from '../../orm/mutation'; +import type { InfraSetDataAtPathPayloadSelect } from '../../orm/input-types'; +export default async ( + argv: Partial>, + prompter: Inquirerer, + _options: CLIOptions +) => { + try { + if (argv.help || argv.h) { + console.log( + 'infra-set-data-at-path - infraSetDataAtPath\n\nUsage: infra-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 + .infraSetDataAtPath( + parsedAnswers as unknown as InfraSetDataAtPathVariables, + { + select: selectFields, + } as unknown as { + select: InfraSetDataAtPathPayloadSelect; + } + ) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed: infraSetDataAtPath'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +}; diff --git a/sdk/constructive-cli/src/compute/cli/commands/infra-store.ts b/sdk/constructive-cli/src/compute/cli/commands/infra-store.ts new file mode 100644 index 0000000000..5bdf28a7b9 --- /dev/null +++ b/sdk/constructive-cli/src/compute/cli/commands/infra-store.ts @@ -0,0 +1,296 @@ +/** + * CLI commands for InfraStore + * @generated 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 { + CreateInfraStoreInput, + InfraStorePatch, + InfraStoreSelect, + InfraStoreFilter, + InfraStoreOrderBy, +} from '../../orm/input-types'; +import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; +const fieldSchema: FieldSchema = { + id: 'uuid', + name: 'string', + scopeId: 'uuid', + hash: 'uuid', + createdAt: 'string', +}; +const usage = + '\ninfra-store \n\nCommands:\n list List infraStore records\n find-first Find first matching infraStore record\n get Get a infraStore by ID\n create Create a new infraStore\n update Update an existing infraStore\n delete Delete a infraStore\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (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, + name: true, + scopeId: true, + hash: true, + createdAt: true, + }; + const findManyArgs = parseFindManyArgs< + FindManyArgs & { + select: InfraStoreSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.infraStore.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, + name: true, + scopeId: true, + hash: true, + createdAt: true, + }; + const findFirstArgs = parseFindFirstArgs< + FindFirstArgs & { + select: InfraStoreSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.infraStore.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.infraStore + .findOne({ + id: answers.id as string, + select: { + id: true, + name: true, + scopeId: true, + hash: true, + createdAt: true, + }, + }) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Record not found.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} +async function handleCreate(argv: Partial>, prompter: Inquirerer) { + try { + const rawAnswers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'name', + message: 'name', + required: true, + }, + { + type: 'text', + name: 'scopeId', + message: 'scopeId', + required: true, + }, + { + type: 'text', + name: 'hash', + message: 'hash', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined(answers, fieldSchema) as CreateInfraStoreInput['infraStore']; + const client = getClient(); + const result = await client.infraStore + .create({ + data: { + name: cleanedData.name, + scopeId: cleanedData.scopeId, + hash: cleanedData.hash, + }, + select: { + id: true, + name: true, + scopeId: true, + hash: true, + createdAt: true, + }, + }) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to create record.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} +async function handleUpdate(argv: Partial>, prompter: Inquirerer) { + try { + const rawAnswers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'id', + message: 'id', + required: true, + }, + { + type: 'text', + name: 'name', + message: 'name', + required: false, + }, + { + type: 'text', + name: 'scopeId', + message: 'scopeId', + required: false, + }, + { + type: 'text', + name: 'hash', + message: 'hash', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined(answers, fieldSchema) as InfraStorePatch; + const client = getClient(); + const result = await client.infraStore + .update({ + where: { + id: answers.id as string, + }, + data: { + name: cleanedData.name, + scopeId: cleanedData.scopeId, + hash: cleanedData.hash, + }, + select: { + id: true, + name: true, + scopeId: true, + hash: true, + createdAt: 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.infraStore + .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/integration-provider.ts b/sdk/constructive-cli/src/compute/cli/commands/integration-provider.ts new file mode 100644 index 0000000000..5b27ffe819 --- /dev/null +++ b/sdk/constructive-cli/src/compute/cli/commands/integration-provider.ts @@ -0,0 +1,445 @@ +/** + * CLI commands for IntegrationProvider + * @generated 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 { + CreateIntegrationProviderInput, + IntegrationProviderPatch, + IntegrationProviderSelect, + IntegrationProviderFilter, + IntegrationProviderOrderBy, +} from '../../orm/input-types'; +import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; +const fieldSchema: FieldSchema = { + id: 'uuid', + createdAt: 'string', + updatedAt: 'string', + slug: 'string', + name: 'string', + description: 'string', + category: 'string', + icon: 'string', + logo: 'string', + brand: 'json', + requiredSecrets: 'string', + requiredConfigs: 'string', +}; +const usage = + '\nintegration-provider \n\nCommands:\n list List integrationProvider records\n find-first Find first matching integrationProvider record\n get Get a integrationProvider by ID\n create Create a new integrationProvider\n update Update an existing integrationProvider\n delete Delete a integrationProvider\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (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, + createdAt: true, + updatedAt: true, + slug: true, + name: true, + description: true, + category: true, + icon: true, + logo: true, + brand: true, + requiredSecrets: true, + requiredConfigs: true, + }; + const findManyArgs = parseFindManyArgs< + FindManyArgs< + IntegrationProviderSelect, + IntegrationProviderFilter, + IntegrationProviderOrderBy + > & { + select: IntegrationProviderSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.integrationProvider.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, + createdAt: true, + updatedAt: true, + slug: true, + name: true, + description: true, + category: true, + icon: true, + logo: true, + brand: true, + requiredSecrets: true, + requiredConfigs: true, + }; + const findFirstArgs = parseFindFirstArgs< + FindFirstArgs< + IntegrationProviderSelect, + IntegrationProviderFilter, + IntegrationProviderOrderBy + > & { + select: IntegrationProviderSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.integrationProvider.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.integrationProvider + .findOne({ + id: answers.id as string, + select: { + id: true, + createdAt: true, + updatedAt: true, + slug: true, + name: true, + description: true, + category: true, + icon: true, + logo: true, + brand: true, + requiredSecrets: true, + requiredConfigs: 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: 'slug', + message: 'slug', + required: true, + }, + { + type: 'text', + name: 'name', + message: 'name', + required: true, + }, + { + type: 'text', + name: 'description', + message: 'description', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'category', + message: 'category', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'icon', + message: 'icon', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'logo', + message: 'logo', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'brand', + message: 'brand', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'requiredSecrets', + message: 'requiredSecrets', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'requiredConfigs', + message: 'requiredConfigs', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined( + answers, + fieldSchema + ) as CreateIntegrationProviderInput['integrationProvider']; + const client = getClient(); + const result = await client.integrationProvider + .create({ + data: { + slug: cleanedData.slug, + name: cleanedData.name, + description: cleanedData.description, + category: cleanedData.category, + icon: cleanedData.icon, + logo: cleanedData.logo, + brand: cleanedData.brand, + requiredSecrets: cleanedData.requiredSecrets, + requiredConfigs: cleanedData.requiredConfigs, + }, + select: { + id: true, + createdAt: true, + updatedAt: true, + slug: true, + name: true, + description: true, + category: true, + icon: true, + logo: true, + brand: true, + requiredSecrets: true, + requiredConfigs: true, + }, + }) + .execute(); + console.log(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: 'slug', + message: 'slug', + required: false, + }, + { + type: 'text', + name: 'name', + message: 'name', + required: false, + }, + { + type: 'text', + name: 'description', + message: 'description', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'category', + message: 'category', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'icon', + message: 'icon', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'logo', + message: 'logo', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'brand', + message: 'brand', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'requiredSecrets', + message: 'requiredSecrets', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'requiredConfigs', + message: 'requiredConfigs', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined(answers, fieldSchema) as IntegrationProviderPatch; + const client = getClient(); + const result = await client.integrationProvider + .update({ + where: { + id: answers.id as string, + }, + data: { + slug: cleanedData.slug, + name: cleanedData.name, + description: cleanedData.description, + category: cleanedData.category, + icon: cleanedData.icon, + logo: cleanedData.logo, + brand: cleanedData.brand, + requiredSecrets: cleanedData.requiredSecrets, + requiredConfigs: cleanedData.requiredConfigs, + }, + select: { + id: true, + createdAt: true, + updatedAt: true, + slug: true, + name: true, + description: true, + category: true, + icon: true, + logo: true, + brand: true, + requiredSecrets: true, + requiredConfigs: 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.integrationProvider + .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/namespace-event.ts b/sdk/constructive-cli/src/compute/cli/commands/namespace-event.ts new file mode 100644 index 0000000000..e5e8d0f77d --- /dev/null +++ b/sdk/constructive-cli/src/compute/cli/commands/namespace-event.ts @@ -0,0 +1,531 @@ +/** + * CLI commands for NamespaceEvent + * @generated 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 { + CreateNamespaceEventInput, + NamespaceEventPatch, + NamespaceEventSelect, + NamespaceEventFilter, + NamespaceEventOrderBy, +} from '../../orm/input-types'; +import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; +const fieldSchema: FieldSchema = { + createdAt: 'string', + id: 'uuid', + namespaceId: 'uuid', + eventType: 'string', + actorId: 'uuid', + message: 'string', + metadata: 'json', + cpuMillicores: 'int', + memoryBytes: 'int', + storageBytes: 'int', + networkIngressBytes: 'int', + networkEgressBytes: 'int', + podCount: 'int', + metrics: 'json', + databaseId: 'uuid', +}; +const usage = + '\nnamespace-event \n\nCommands:\n list List namespaceEvent records\n find-first Find first matching namespaceEvent record\n get Get a namespaceEvent by ID\n create Create a new namespaceEvent\n update Update an existing namespaceEvent\n delete Delete a namespaceEvent\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (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, + namespaceId: true, + eventType: true, + actorId: true, + message: true, + metadata: true, + cpuMillicores: true, + memoryBytes: true, + storageBytes: true, + networkIngressBytes: true, + networkEgressBytes: true, + podCount: true, + metrics: true, + databaseId: true, + }; + const findManyArgs = parseFindManyArgs< + FindManyArgs & { + select: NamespaceEventSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.namespaceEvent.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, + namespaceId: true, + eventType: true, + actorId: true, + message: true, + metadata: true, + cpuMillicores: true, + memoryBytes: true, + storageBytes: true, + networkIngressBytes: true, + networkEgressBytes: true, + podCount: true, + metrics: true, + databaseId: true, + }; + const findFirstArgs = parseFindFirstArgs< + FindFirstArgs & { + select: NamespaceEventSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.namespaceEvent.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.namespaceEvent + .findOne({ + id: answers.id as string, + select: { + createdAt: true, + id: true, + namespaceId: true, + eventType: true, + actorId: true, + message: true, + metadata: true, + cpuMillicores: true, + memoryBytes: true, + storageBytes: true, + networkIngressBytes: true, + networkEgressBytes: true, + podCount: true, + metrics: true, + databaseId: 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: 'namespaceId', + message: 'namespaceId', + required: true, + }, + { + type: 'text', + name: 'eventType', + message: 'eventType', + required: true, + }, + { + type: 'text', + name: 'actorId', + message: 'actorId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'message', + message: 'message', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'metadata', + message: 'metadata', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'cpuMillicores', + message: 'cpuMillicores', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'memoryBytes', + message: 'memoryBytes', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'storageBytes', + message: 'storageBytes', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'networkIngressBytes', + message: 'networkIngressBytes', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'networkEgressBytes', + message: 'networkEgressBytes', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'podCount', + message: 'podCount', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'metrics', + message: 'metrics', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'databaseId', + message: 'databaseId', + required: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined( + answers, + fieldSchema + ) as CreateNamespaceEventInput['namespaceEvent']; + const client = getClient(); + const result = await client.namespaceEvent + .create({ + data: { + namespaceId: cleanedData.namespaceId, + eventType: cleanedData.eventType, + actorId: cleanedData.actorId, + message: cleanedData.message, + metadata: cleanedData.metadata, + cpuMillicores: cleanedData.cpuMillicores, + memoryBytes: cleanedData.memoryBytes, + storageBytes: cleanedData.storageBytes, + networkIngressBytes: cleanedData.networkIngressBytes, + networkEgressBytes: cleanedData.networkEgressBytes, + podCount: cleanedData.podCount, + metrics: cleanedData.metrics, + databaseId: cleanedData.databaseId, + }, + select: { + createdAt: true, + id: true, + namespaceId: true, + eventType: true, + actorId: true, + message: true, + metadata: true, + cpuMillicores: true, + memoryBytes: true, + storageBytes: true, + networkIngressBytes: true, + networkEgressBytes: true, + podCount: true, + metrics: true, + databaseId: true, + }, + }) + .execute(); + console.log(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: 'text', + name: 'namespaceId', + message: 'namespaceId', + required: false, + }, + { + type: 'text', + name: 'eventType', + message: 'eventType', + required: false, + }, + { + type: 'text', + name: 'actorId', + message: 'actorId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'message', + message: 'message', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'metadata', + message: 'metadata', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'cpuMillicores', + message: 'cpuMillicores', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'memoryBytes', + message: 'memoryBytes', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'storageBytes', + message: 'storageBytes', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'networkIngressBytes', + message: 'networkIngressBytes', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'networkEgressBytes', + message: 'networkEgressBytes', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'podCount', + message: 'podCount', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'metrics', + message: 'metrics', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'databaseId', + message: 'databaseId', + required: false, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined(answers, fieldSchema) as NamespaceEventPatch; + const client = getClient(); + const result = await client.namespaceEvent + .update({ + where: { + id: answers.id as string, + createdAt: answers.createdAt as string, + }, + data: { + namespaceId: cleanedData.namespaceId, + eventType: cleanedData.eventType, + actorId: cleanedData.actorId, + message: cleanedData.message, + metadata: cleanedData.metadata, + cpuMillicores: cleanedData.cpuMillicores, + memoryBytes: cleanedData.memoryBytes, + storageBytes: cleanedData.storageBytes, + networkIngressBytes: cleanedData.networkIngressBytes, + networkEgressBytes: cleanedData.networkEgressBytes, + podCount: cleanedData.podCount, + metrics: cleanedData.metrics, + databaseId: cleanedData.databaseId, + }, + select: { + createdAt: true, + id: true, + namespaceId: true, + eventType: true, + actorId: true, + message: true, + metadata: true, + cpuMillicores: true, + memoryBytes: true, + storageBytes: true, + networkIngressBytes: true, + networkEgressBytes: true, + podCount: true, + metrics: true, + databaseId: 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.namespaceEvent + .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/secret-definition.ts b/sdk/constructive-cli/src/compute/cli/commands/namespace.ts similarity index 65% rename from sdk/constructive-cli/src/compute/cli/commands/secret-definition.ts rename to sdk/constructive-cli/src/compute/cli/commands/namespace.ts index efaa11c98e..61a41c16c3 100644 --- a/sdk/constructive-cli/src/compute/cli/commands/secret-definition.ts +++ b/sdk/constructive-cli/src/compute/cli/commands/namespace.ts @@ -1,5 +1,5 @@ /** - * CLI commands for SecretDefinition + * CLI commands for Namespace * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -8,11 +8,11 @@ import { getClient } from '../executor'; import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; import type { FieldSchema } from '../utils'; import type { - CreateSecretDefinitionInput, - SecretDefinitionPatch, - SecretDefinitionSelect, - SecretDefinitionFilter, - SecretDefinitionOrderBy, + CreateNamespaceInput, + NamespacePatch, + NamespaceSelect, + NamespaceFilter, + NamespaceOrderBy, } from '../../orm/input-types'; import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; const fieldSchema: FieldSchema = { @@ -20,14 +20,18 @@ const fieldSchema: FieldSchema = { createdAt: 'string', updatedAt: 'string', name: 'string', + namespaceName: 'string', description: 'string', - isBuiltIn: 'boolean', + isActive: 'boolean', + status: 'string', + lastError: 'string', labels: 'json', annotations: 'json', databaseId: 'uuid', + isManaged: 'boolean', }; const usage = - '\nsecret-definition \n\nCommands:\n list List secretDefinition records\n find-first Find first matching secretDefinition record\n get Get a secretDefinition by ID\n create Create a new secretDefinition\n update Update an existing secretDefinition\n delete Delete a secretDefinition\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\n --help, -h Show this help message\n'; + '\nnamespace \n\nCommands:\n list List namespace records\n find-first Find first matching namespace record\n get Get a namespace by ID\n create Create a new namespace\n update Update an existing namespace\n delete Delete a namespace\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\n --help, -h Show this help message\n'; export default async ( argv: Partial>, prompter: Inquirerer, @@ -81,19 +85,23 @@ async function handleList(argv: Partial>, _prompter: Inq createdAt: true, updatedAt: true, name: true, + namespaceName: true, description: true, - isBuiltIn: true, + isActive: true, + status: true, + lastError: true, labels: true, annotations: true, databaseId: true, + isManaged: true, }; const findManyArgs = parseFindManyArgs< - FindManyArgs & { - select: SecretDefinitionSelect; + FindManyArgs & { + select: NamespaceSelect; } >(argv, defaultSelect); const client = getClient(); - const result = await client.secretDefinition.findMany(findManyArgs).execute(); + const result = await client.namespace.findMany(findManyArgs).execute(); console.log(JSON.stringify(result, null, 2)); } catch (error) { console.error('Failed to list records.'); @@ -110,19 +118,23 @@ async function handleFindFirst(argv: Partial>, _prompter createdAt: true, updatedAt: true, name: true, + namespaceName: true, description: true, - isBuiltIn: true, + isActive: true, + status: true, + lastError: true, labels: true, annotations: true, databaseId: true, + isManaged: true, }; const findFirstArgs = parseFindFirstArgs< - FindFirstArgs & { - select: SecretDefinitionSelect; + FindFirstArgs & { + select: NamespaceSelect; } >(argv, defaultSelect); const client = getClient(); - const result = await client.secretDefinition.findFirst(findFirstArgs).execute(); + const result = await client.namespace.findFirst(findFirstArgs).execute(); console.log(JSON.stringify(result, null, 2)); } catch (error) { console.error('Failed to find record.'); @@ -143,7 +155,7 @@ async function handleGet(argv: Partial>, prompter: Inqui }, ]); const client = getClient(); - const result = await client.secretDefinition + const result = await client.namespace .findOne({ id: answers.id as string, select: { @@ -151,11 +163,15 @@ async function handleGet(argv: Partial>, prompter: Inqui createdAt: true, updatedAt: true, name: true, + namespaceName: true, description: true, - isBuiltIn: true, + isActive: true, + status: true, + lastError: true, labels: true, annotations: true, databaseId: true, + isManaged: true, }, }) .execute(); @@ -177,6 +193,12 @@ async function handleCreate(argv: Partial>, prompter: In message: 'name', required: true, }, + { + type: 'text', + name: 'namespaceName', + message: 'namespaceName', + required: true, + }, { type: 'text', name: 'description', @@ -186,8 +208,22 @@ async function handleCreate(argv: Partial>, prompter: In }, { type: 'boolean', - name: 'isBuiltIn', - message: 'isBuiltIn', + name: 'isActive', + message: 'isActive', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'status', + message: 'status', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'lastError', + message: 'lastError', required: false, skipPrompt: true, }, @@ -211,33 +247,45 @@ async function handleCreate(argv: Partial>, prompter: In message: 'databaseId', required: true, }, + { + type: 'boolean', + name: 'isManaged', + message: 'isManaged', + required: false, + skipPrompt: true, + }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined( - answers, - fieldSchema - ) as CreateSecretDefinitionInput['secretDefinition']; + const cleanedData = stripUndefined(answers, fieldSchema) as CreateNamespaceInput['namespace']; const client = getClient(); - const result = await client.secretDefinition + const result = await client.namespace .create({ data: { name: cleanedData.name, + namespaceName: cleanedData.namespaceName, description: cleanedData.description, - isBuiltIn: cleanedData.isBuiltIn, + isActive: cleanedData.isActive, + status: cleanedData.status, + lastError: cleanedData.lastError, labels: cleanedData.labels, annotations: cleanedData.annotations, databaseId: cleanedData.databaseId, + isManaged: cleanedData.isManaged, }, select: { id: true, createdAt: true, updatedAt: true, name: true, + namespaceName: true, description: true, - isBuiltIn: true, + isActive: true, + status: true, + lastError: true, labels: true, annotations: true, databaseId: true, + isManaged: true, }, }) .execute(); @@ -265,6 +313,12 @@ async function handleUpdate(argv: Partial>, prompter: In message: 'name', required: false, }, + { + type: 'text', + name: 'namespaceName', + message: 'namespaceName', + required: false, + }, { type: 'text', name: 'description', @@ -274,8 +328,22 @@ async function handleUpdate(argv: Partial>, prompter: In }, { type: 'boolean', - name: 'isBuiltIn', - message: 'isBuiltIn', + name: 'isActive', + message: 'isActive', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'status', + message: 'status', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'lastError', + message: 'lastError', required: false, skipPrompt: true, }, @@ -299,33 +367,48 @@ async function handleUpdate(argv: Partial>, prompter: In message: 'databaseId', required: false, }, + { + type: 'boolean', + name: 'isManaged', + message: 'isManaged', + required: false, + skipPrompt: true, + }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined(answers, fieldSchema) as SecretDefinitionPatch; + const cleanedData = stripUndefined(answers, fieldSchema) as NamespacePatch; const client = getClient(); - const result = await client.secretDefinition + const result = await client.namespace .update({ where: { id: answers.id as string, }, data: { name: cleanedData.name, + namespaceName: cleanedData.namespaceName, description: cleanedData.description, - isBuiltIn: cleanedData.isBuiltIn, + isActive: cleanedData.isActive, + status: cleanedData.status, + lastError: cleanedData.lastError, labels: cleanedData.labels, annotations: cleanedData.annotations, databaseId: cleanedData.databaseId, + isManaged: cleanedData.isManaged, }, select: { id: true, createdAt: true, updatedAt: true, name: true, + namespaceName: true, description: true, - isBuiltIn: true, + isActive: true, + status: true, + lastError: true, labels: true, annotations: true, databaseId: true, + isManaged: true, }, }) .execute(); @@ -350,7 +433,7 @@ async function handleDelete(argv: Partial>, prompter: In ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const client = getClient(); - const result = await client.secretDefinition + const result = await client.namespace .delete({ where: { id: answers.id as string, diff --git a/sdk/constructive-cli/src/compute/cli/commands/platform-function-api-binding.ts b/sdk/constructive-cli/src/compute/cli/commands/platform-function-api-binding.ts new file mode 100644 index 0000000000..8cac5cde7d --- /dev/null +++ b/sdk/constructive-cli/src/compute/cli/commands/platform-function-api-binding.ts @@ -0,0 +1,323 @@ +/** + * CLI commands for PlatformFunctionApiBinding + * @generated 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 { + CreatePlatformFunctionApiBindingInput, + PlatformFunctionApiBindingPatch, + PlatformFunctionApiBindingSelect, + PlatformFunctionApiBindingFilter, + PlatformFunctionApiBindingOrderBy, +} from '../../orm/input-types'; +import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; +const fieldSchema: FieldSchema = { + id: 'uuid', + functionDefinitionId: 'uuid', + apiId: 'uuid', + alias: 'string', + config: 'json', +}; +const usage = + '\nplatform-function-api-binding \n\nCommands:\n list List platformFunctionApiBinding records\n find-first Find first matching platformFunctionApiBinding record\n get Get a platformFunctionApiBinding by ID\n create Create a new platformFunctionApiBinding\n update Update an existing platformFunctionApiBinding\n delete Delete a platformFunctionApiBinding\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (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, + functionDefinitionId: true, + apiId: true, + alias: true, + config: true, + }; + const findManyArgs = parseFindManyArgs< + FindManyArgs< + PlatformFunctionApiBindingSelect, + PlatformFunctionApiBindingFilter, + PlatformFunctionApiBindingOrderBy + > & { + select: PlatformFunctionApiBindingSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.platformFunctionApiBinding.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, + functionDefinitionId: true, + apiId: true, + alias: true, + config: true, + }; + const findFirstArgs = parseFindFirstArgs< + FindFirstArgs< + PlatformFunctionApiBindingSelect, + PlatformFunctionApiBindingFilter, + PlatformFunctionApiBindingOrderBy + > & { + select: PlatformFunctionApiBindingSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.platformFunctionApiBinding.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.platformFunctionApiBinding + .findOne({ + id: answers.id as string, + select: { + id: true, + functionDefinitionId: true, + apiId: true, + alias: true, + config: 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: 'functionDefinitionId', + message: 'functionDefinitionId', + required: true, + }, + { + type: 'text', + name: 'apiId', + message: 'apiId', + required: true, + }, + { + type: 'text', + name: 'alias', + message: 'alias', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'config', + message: 'config', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined( + answers, + fieldSchema + ) as CreatePlatformFunctionApiBindingInput['platformFunctionApiBinding']; + const client = getClient(); + const result = await client.platformFunctionApiBinding + .create({ + data: { + functionDefinitionId: cleanedData.functionDefinitionId, + apiId: cleanedData.apiId, + alias: cleanedData.alias, + config: cleanedData.config, + }, + select: { + id: true, + functionDefinitionId: true, + apiId: true, + alias: true, + config: true, + }, + }) + .execute(); + console.log(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: 'functionDefinitionId', + message: 'functionDefinitionId', + required: false, + }, + { + type: 'text', + name: 'apiId', + message: 'apiId', + required: false, + }, + { + type: 'text', + name: 'alias', + message: 'alias', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'config', + message: 'config', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined(answers, fieldSchema) as PlatformFunctionApiBindingPatch; + const client = getClient(); + const result = await client.platformFunctionApiBinding + .update({ + where: { + id: answers.id as string, + }, + data: { + functionDefinitionId: cleanedData.functionDefinitionId, + apiId: cleanedData.apiId, + alias: cleanedData.alias, + config: cleanedData.config, + }, + select: { + id: true, + functionDefinitionId: true, + apiId: true, + alias: true, + config: 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.platformFunctionApiBinding + .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 new file mode 100644 index 0000000000..9044bc2457 --- /dev/null +++ b/sdk/constructive-cli/src/compute/cli/commands/platform-function-definition.ts @@ -0,0 +1,993 @@ +/** + * CLI commands for PlatformFunctionDefinition + * @generated 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 { + CreatePlatformFunctionDefinitionInput, + PlatformFunctionDefinitionPatch, + PlatformFunctionDefinitionSelect, + PlatformFunctionDefinitionFilter, + PlatformFunctionDefinitionOrderBy, +} from '../../orm/input-types'; +import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; +const fieldSchema: FieldSchema = { + id: 'uuid', + createdAt: 'string', + updatedAt: 'string', + scope: 'string', + name: 'string', + taskIdentifier: 'string', + description: 'string', + isPublished: 'boolean', + accessChannels: 'string', + publishedAt: 'string', + maxAttempts: 'int', + priority: 'int', + queueName: 'string', + runtime: 'string', + targetSchema: 'string', + targetFunction: 'string', + moduleTable: 'string', + functionColumns: 'json', + payloadArgs: 'json', + image: 'string', + concurrency: 'int', + scaleMin: 'int', + scaleMax: 'int', + timeoutSeconds: 'int', + resources: 'json', + isBuiltIn: 'boolean', + requiredSecrets: 'string', + requiredConfigs: 'string', + integrations: 'string', + requiredBuckets: 'string', + requiredModels: 'string', + inputs: 'json', + outputs: 'json', + props: 'json', + volatile: 'boolean', + icon: 'string', + category: 'string', +}; +const usage = + '\nplatform-function-definition \n\nCommands:\n list List platformFunctionDefinition records\n find-first Find first matching platformFunctionDefinition record\n get Get a platformFunctionDefinition by ID\n create Create a new platformFunctionDefinition\n update Update an existing platformFunctionDefinition\n delete Delete a platformFunctionDefinition\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (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, + createdAt: true, + updatedAt: true, + scope: true, + name: true, + taskIdentifier: true, + description: true, + isPublished: true, + accessChannels: true, + publishedAt: true, + maxAttempts: true, + priority: true, + queueName: true, + runtime: true, + targetSchema: true, + targetFunction: true, + moduleTable: true, + functionColumns: true, + payloadArgs: true, + image: true, + concurrency: true, + scaleMin: true, + scaleMax: true, + timeoutSeconds: true, + resources: true, + isBuiltIn: true, + requiredSecrets: true, + requiredConfigs: true, + integrations: true, + requiredBuckets: true, + requiredModels: true, + inputs: true, + outputs: true, + props: true, + volatile: true, + icon: true, + category: true, + }; + const findManyArgs = parseFindManyArgs< + FindManyArgs< + PlatformFunctionDefinitionSelect, + PlatformFunctionDefinitionFilter, + PlatformFunctionDefinitionOrderBy + > & { + select: PlatformFunctionDefinitionSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.platformFunctionDefinition.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, + createdAt: true, + updatedAt: true, + scope: true, + name: true, + taskIdentifier: true, + description: true, + isPublished: true, + accessChannels: true, + publishedAt: true, + maxAttempts: true, + priority: true, + queueName: true, + runtime: true, + targetSchema: true, + targetFunction: true, + moduleTable: true, + functionColumns: true, + payloadArgs: true, + image: true, + concurrency: true, + scaleMin: true, + scaleMax: true, + timeoutSeconds: true, + resources: true, + isBuiltIn: true, + requiredSecrets: true, + requiredConfigs: true, + integrations: true, + requiredBuckets: true, + requiredModels: true, + inputs: true, + outputs: true, + props: true, + volatile: true, + icon: true, + category: true, + }; + const findFirstArgs = parseFindFirstArgs< + FindFirstArgs< + PlatformFunctionDefinitionSelect, + PlatformFunctionDefinitionFilter, + PlatformFunctionDefinitionOrderBy + > & { + select: PlatformFunctionDefinitionSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.platformFunctionDefinition.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.platformFunctionDefinition + .findOne({ + id: answers.id as string, + select: { + id: true, + createdAt: true, + updatedAt: true, + scope: true, + name: true, + taskIdentifier: true, + description: true, + isPublished: true, + accessChannels: true, + publishedAt: true, + maxAttempts: true, + priority: true, + queueName: true, + runtime: true, + targetSchema: true, + targetFunction: true, + moduleTable: true, + functionColumns: true, + payloadArgs: true, + image: true, + concurrency: true, + scaleMin: true, + scaleMax: true, + timeoutSeconds: true, + resources: true, + isBuiltIn: true, + requiredSecrets: true, + requiredConfigs: true, + integrations: true, + requiredBuckets: true, + requiredModels: true, + inputs: true, + outputs: true, + props: true, + volatile: true, + icon: true, + category: 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: 'scope', + message: 'scope', + required: true, + }, + { + type: 'text', + name: 'name', + message: 'name', + required: true, + }, + { + type: 'text', + name: 'taskIdentifier', + message: 'taskIdentifier', + required: true, + }, + { + type: 'text', + name: 'description', + message: 'description', + required: false, + skipPrompt: true, + }, + { + type: 'boolean', + name: 'isPublished', + message: 'isPublished', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'accessChannels', + message: 'accessChannels', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'publishedAt', + message: 'publishedAt', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'maxAttempts', + message: 'maxAttempts', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'priority', + message: 'priority', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'queueName', + message: 'queueName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'runtime', + message: 'runtime', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'targetSchema', + message: 'targetSchema', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'targetFunction', + message: 'targetFunction', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'moduleTable', + message: 'moduleTable', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'functionColumns', + message: 'functionColumns', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'payloadArgs', + message: 'payloadArgs', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'image', + message: 'image', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'concurrency', + message: 'concurrency', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'scaleMin', + message: 'scaleMin', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'scaleMax', + message: 'scaleMax', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'timeoutSeconds', + message: 'timeoutSeconds', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'resources', + message: 'resources', + required: false, + skipPrompt: true, + }, + { + type: 'boolean', + name: 'isBuiltIn', + message: 'isBuiltIn', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'requiredSecrets', + message: 'requiredSecrets', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'requiredConfigs', + message: 'requiredConfigs', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'integrations', + message: 'integrations', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'requiredBuckets', + message: 'requiredBuckets', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'requiredModels', + message: 'requiredModels', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'inputs', + message: 'inputs', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'outputs', + message: 'outputs', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'props', + message: 'props', + required: false, + skipPrompt: true, + }, + { + type: 'boolean', + name: 'volatile', + message: 'volatile', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'icon', + message: 'icon', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'category', + message: 'category', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined( + answers, + fieldSchema + ) as CreatePlatformFunctionDefinitionInput['platformFunctionDefinition']; + const client = getClient(); + const result = await client.platformFunctionDefinition + .create({ + data: { + scope: cleanedData.scope, + name: cleanedData.name, + taskIdentifier: cleanedData.taskIdentifier, + description: cleanedData.description, + isPublished: cleanedData.isPublished, + accessChannels: cleanedData.accessChannels, + publishedAt: cleanedData.publishedAt, + maxAttempts: cleanedData.maxAttempts, + priority: cleanedData.priority, + queueName: cleanedData.queueName, + runtime: cleanedData.runtime, + targetSchema: cleanedData.targetSchema, + targetFunction: cleanedData.targetFunction, + moduleTable: cleanedData.moduleTable, + functionColumns: cleanedData.functionColumns, + payloadArgs: cleanedData.payloadArgs, + image: cleanedData.image, + concurrency: cleanedData.concurrency, + scaleMin: cleanedData.scaleMin, + scaleMax: cleanedData.scaleMax, + timeoutSeconds: cleanedData.timeoutSeconds, + resources: cleanedData.resources, + isBuiltIn: cleanedData.isBuiltIn, + requiredSecrets: cleanedData.requiredSecrets, + requiredConfigs: cleanedData.requiredConfigs, + integrations: cleanedData.integrations, + requiredBuckets: cleanedData.requiredBuckets, + requiredModels: cleanedData.requiredModels, + inputs: cleanedData.inputs, + outputs: cleanedData.outputs, + props: cleanedData.props, + volatile: cleanedData.volatile, + icon: cleanedData.icon, + category: cleanedData.category, + }, + select: { + id: true, + createdAt: true, + updatedAt: true, + scope: true, + name: true, + taskIdentifier: true, + description: true, + isPublished: true, + accessChannels: true, + publishedAt: true, + maxAttempts: true, + priority: true, + queueName: true, + runtime: true, + targetSchema: true, + targetFunction: true, + moduleTable: true, + functionColumns: true, + payloadArgs: true, + image: true, + concurrency: true, + scaleMin: true, + scaleMax: true, + timeoutSeconds: true, + resources: true, + isBuiltIn: true, + requiredSecrets: true, + requiredConfigs: true, + integrations: true, + requiredBuckets: true, + requiredModels: true, + inputs: true, + outputs: true, + props: true, + volatile: true, + icon: true, + category: true, + }, + }) + .execute(); + console.log(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: 'scope', + message: 'scope', + required: false, + }, + { + type: 'text', + name: 'name', + message: 'name', + required: false, + }, + { + type: 'text', + name: 'taskIdentifier', + message: 'taskIdentifier', + required: false, + }, + { + type: 'text', + name: 'description', + message: 'description', + required: false, + skipPrompt: true, + }, + { + type: 'boolean', + name: 'isPublished', + message: 'isPublished', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'accessChannels', + message: 'accessChannels', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'publishedAt', + message: 'publishedAt', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'maxAttempts', + message: 'maxAttempts', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'priority', + message: 'priority', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'queueName', + message: 'queueName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'runtime', + message: 'runtime', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'targetSchema', + message: 'targetSchema', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'targetFunction', + message: 'targetFunction', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'moduleTable', + message: 'moduleTable', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'functionColumns', + message: 'functionColumns', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'payloadArgs', + message: 'payloadArgs', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'image', + message: 'image', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'concurrency', + message: 'concurrency', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'scaleMin', + message: 'scaleMin', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'scaleMax', + message: 'scaleMax', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'timeoutSeconds', + message: 'timeoutSeconds', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'resources', + message: 'resources', + required: false, + skipPrompt: true, + }, + { + type: 'boolean', + name: 'isBuiltIn', + message: 'isBuiltIn', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'requiredSecrets', + message: 'requiredSecrets', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'requiredConfigs', + message: 'requiredConfigs', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'integrations', + message: 'integrations', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'requiredBuckets', + message: 'requiredBuckets', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'requiredModels', + message: 'requiredModels', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'inputs', + message: 'inputs', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'outputs', + message: 'outputs', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'props', + message: 'props', + required: false, + skipPrompt: true, + }, + { + type: 'boolean', + name: 'volatile', + message: 'volatile', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'icon', + message: 'icon', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'category', + message: 'category', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined(answers, fieldSchema) as PlatformFunctionDefinitionPatch; + const client = getClient(); + const result = await client.platformFunctionDefinition + .update({ + where: { + id: answers.id as string, + }, + data: { + scope: cleanedData.scope, + name: cleanedData.name, + taskIdentifier: cleanedData.taskIdentifier, + description: cleanedData.description, + isPublished: cleanedData.isPublished, + accessChannels: cleanedData.accessChannels, + publishedAt: cleanedData.publishedAt, + maxAttempts: cleanedData.maxAttempts, + priority: cleanedData.priority, + queueName: cleanedData.queueName, + runtime: cleanedData.runtime, + targetSchema: cleanedData.targetSchema, + targetFunction: cleanedData.targetFunction, + moduleTable: cleanedData.moduleTable, + functionColumns: cleanedData.functionColumns, + payloadArgs: cleanedData.payloadArgs, + image: cleanedData.image, + concurrency: cleanedData.concurrency, + scaleMin: cleanedData.scaleMin, + scaleMax: cleanedData.scaleMax, + timeoutSeconds: cleanedData.timeoutSeconds, + resources: cleanedData.resources, + isBuiltIn: cleanedData.isBuiltIn, + requiredSecrets: cleanedData.requiredSecrets, + requiredConfigs: cleanedData.requiredConfigs, + integrations: cleanedData.integrations, + requiredBuckets: cleanedData.requiredBuckets, + requiredModels: cleanedData.requiredModels, + inputs: cleanedData.inputs, + outputs: cleanedData.outputs, + props: cleanedData.props, + volatile: cleanedData.volatile, + icon: cleanedData.icon, + category: cleanedData.category, + }, + select: { + id: true, + createdAt: true, + updatedAt: true, + scope: true, + name: true, + taskIdentifier: true, + description: true, + isPublished: true, + accessChannels: true, + publishedAt: true, + maxAttempts: true, + priority: true, + queueName: true, + runtime: true, + targetSchema: true, + targetFunction: true, + moduleTable: true, + functionColumns: true, + payloadArgs: true, + image: true, + concurrency: true, + scaleMin: true, + scaleMax: true, + timeoutSeconds: true, + resources: true, + isBuiltIn: true, + requiredSecrets: true, + requiredConfigs: true, + integrations: true, + requiredBuckets: true, + requiredModels: true, + inputs: true, + outputs: true, + props: true, + volatile: true, + icon: true, + category: 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.platformFunctionDefinition + .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-deployment-event.ts b/sdk/constructive-cli/src/compute/cli/commands/platform-function-deployment-event.ts new file mode 100644 index 0000000000..d56cbfe0e2 --- /dev/null +++ b/sdk/constructive-cli/src/compute/cli/commands/platform-function-deployment-event.ts @@ -0,0 +1,368 @@ +/** + * CLI commands for PlatformFunctionDeploymentEvent + * @generated 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 { + CreatePlatformFunctionDeploymentEventInput, + PlatformFunctionDeploymentEventPatch, + PlatformFunctionDeploymentEventSelect, + PlatformFunctionDeploymentEventFilter, + PlatformFunctionDeploymentEventOrderBy, +} from '../../orm/input-types'; +import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; +const fieldSchema: FieldSchema = { + createdAt: 'string', + id: 'uuid', + deploymentId: 'uuid', + eventType: 'string', + actorId: 'uuid', + message: 'string', + metadata: 'json', +}; +const usage = + '\nplatform-function-deployment-event \n\nCommands:\n list List platformFunctionDeploymentEvent records\n find-first Find first matching platformFunctionDeploymentEvent record\n get Get a platformFunctionDeploymentEvent by ID\n create Create a new platformFunctionDeploymentEvent\n update Update an existing platformFunctionDeploymentEvent\n delete Delete a platformFunctionDeploymentEvent\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (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, + deploymentId: true, + eventType: true, + actorId: true, + message: true, + metadata: true, + }; + const findManyArgs = parseFindManyArgs< + FindManyArgs< + PlatformFunctionDeploymentEventSelect, + PlatformFunctionDeploymentEventFilter, + PlatformFunctionDeploymentEventOrderBy + > & { + select: PlatformFunctionDeploymentEventSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.platformFunctionDeploymentEvent.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, + deploymentId: true, + eventType: true, + actorId: true, + message: true, + metadata: true, + }; + const findFirstArgs = parseFindFirstArgs< + FindFirstArgs< + PlatformFunctionDeploymentEventSelect, + PlatformFunctionDeploymentEventFilter, + PlatformFunctionDeploymentEventOrderBy + > & { + select: PlatformFunctionDeploymentEventSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.platformFunctionDeploymentEvent.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.platformFunctionDeploymentEvent + .findOne({ + id: answers.id as string, + select: { + createdAt: true, + id: true, + deploymentId: true, + eventType: true, + actorId: true, + message: true, + metadata: 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: 'deploymentId', + message: 'deploymentId', + required: true, + }, + { + type: 'text', + name: 'eventType', + message: 'eventType', + required: true, + }, + { + type: 'text', + name: 'actorId', + message: 'actorId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'message', + message: 'message', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'metadata', + message: 'metadata', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined( + answers, + fieldSchema + ) as CreatePlatformFunctionDeploymentEventInput['platformFunctionDeploymentEvent']; + const client = getClient(); + const result = await client.platformFunctionDeploymentEvent + .create({ + data: { + deploymentId: cleanedData.deploymentId, + eventType: cleanedData.eventType, + actorId: cleanedData.actorId, + message: cleanedData.message, + metadata: cleanedData.metadata, + }, + select: { + createdAt: true, + id: true, + deploymentId: true, + eventType: true, + actorId: true, + message: true, + metadata: true, + }, + }) + .execute(); + console.log(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: 'text', + name: 'deploymentId', + message: 'deploymentId', + required: false, + }, + { + type: 'text', + name: 'eventType', + message: 'eventType', + required: false, + }, + { + type: 'text', + name: 'actorId', + message: 'actorId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'message', + message: 'message', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'metadata', + message: 'metadata', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined( + answers, + fieldSchema + ) as PlatformFunctionDeploymentEventPatch; + const client = getClient(); + const result = await client.platformFunctionDeploymentEvent + .update({ + where: { + id: answers.id as string, + createdAt: answers.createdAt as string, + }, + data: { + deploymentId: cleanedData.deploymentId, + eventType: cleanedData.eventType, + actorId: cleanedData.actorId, + message: cleanedData.message, + metadata: cleanedData.metadata, + }, + select: { + createdAt: true, + id: true, + deploymentId: true, + eventType: true, + actorId: true, + message: true, + metadata: 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.platformFunctionDeploymentEvent + .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/platform-function-deployment.ts b/sdk/constructive-cli/src/compute/cli/commands/platform-function-deployment.ts new file mode 100644 index 0000000000..741d40b082 --- /dev/null +++ b/sdk/constructive-cli/src/compute/cli/commands/platform-function-deployment.ts @@ -0,0 +1,643 @@ +/** + * CLI commands for PlatformFunctionDeployment + * @generated 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 { + CreatePlatformFunctionDeploymentInput, + PlatformFunctionDeploymentPatch, + PlatformFunctionDeploymentSelect, + PlatformFunctionDeploymentFilter, + PlatformFunctionDeploymentOrderBy, +} from '../../orm/input-types'; +import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; +const fieldSchema: FieldSchema = { + id: 'uuid', + createdAt: 'string', + updatedAt: 'string', + namespaceId: 'uuid', + status: 'string', + serviceUrl: 'string', + serviceName: 'string', + revision: 'int', + image: 'string', + imageVersion: 'string', + handlerName: 'string', + concurrency: 'int', + scaleMin: 'int', + scaleMax: 'int', + timeoutSeconds: 'int', + resources: 'json', + lastError: 'string', + lastErrorAt: 'string', + errorCount: 'int', + labels: 'json', + annotations: 'json', +}; +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'; +export default async ( + argv: Partial>, + prompter: Inquirerer, + _options: CLIOptions +) => { + if (argv.help || argv.h) { + console.log(usage); + process.exit(0); + } + const { first: subcommand, 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, + createdAt: true, + updatedAt: true, + namespaceId: true, + status: true, + serviceUrl: true, + serviceName: true, + revision: true, + image: true, + imageVersion: true, + handlerName: true, + concurrency: true, + scaleMin: true, + scaleMax: true, + timeoutSeconds: true, + resources: true, + lastError: true, + lastErrorAt: true, + errorCount: true, + labels: true, + annotations: true, + }; + const findManyArgs = parseFindManyArgs< + FindManyArgs< + PlatformFunctionDeploymentSelect, + PlatformFunctionDeploymentFilter, + PlatformFunctionDeploymentOrderBy + > & { + select: PlatformFunctionDeploymentSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.platformFunctionDeployment.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, + createdAt: true, + updatedAt: true, + namespaceId: true, + status: true, + serviceUrl: true, + serviceName: true, + revision: true, + image: true, + imageVersion: true, + handlerName: true, + concurrency: true, + scaleMin: true, + scaleMax: true, + timeoutSeconds: true, + resources: true, + lastError: true, + lastErrorAt: true, + errorCount: true, + labels: true, + annotations: true, + }; + const findFirstArgs = parseFindFirstArgs< + FindFirstArgs< + PlatformFunctionDeploymentSelect, + PlatformFunctionDeploymentFilter, + PlatformFunctionDeploymentOrderBy + > & { + select: PlatformFunctionDeploymentSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.platformFunctionDeployment.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.platformFunctionDeployment + .findOne({ + id: answers.id as string, + select: { + id: true, + createdAt: true, + updatedAt: true, + namespaceId: true, + status: true, + serviceUrl: true, + serviceName: true, + revision: true, + image: true, + imageVersion: true, + handlerName: true, + concurrency: true, + scaleMin: true, + scaleMax: true, + timeoutSeconds: true, + resources: true, + lastError: true, + lastErrorAt: true, + errorCount: true, + labels: true, + annotations: 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: 'namespaceId', + message: 'namespaceId', + required: true, + }, + { + type: 'text', + name: 'status', + message: 'status', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'serviceUrl', + message: 'serviceUrl', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'serviceName', + message: 'serviceName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'revision', + message: 'revision', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'image', + message: 'image', + required: true, + }, + { + type: 'text', + name: 'imageVersion', + message: 'imageVersion', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'handlerName', + message: 'handlerName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'concurrency', + message: 'concurrency', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'scaleMin', + message: 'scaleMin', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'scaleMax', + message: 'scaleMax', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'timeoutSeconds', + message: 'timeoutSeconds', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'resources', + message: 'resources', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'lastError', + message: 'lastError', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'lastErrorAt', + message: 'lastErrorAt', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'errorCount', + message: 'errorCount', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'labels', + message: 'labels', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'annotations', + message: 'annotations', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined( + answers, + fieldSchema + ) as CreatePlatformFunctionDeploymentInput['platformFunctionDeployment']; + const client = getClient(); + const result = await client.platformFunctionDeployment + .create({ + data: { + namespaceId: cleanedData.namespaceId, + status: cleanedData.status, + serviceUrl: cleanedData.serviceUrl, + serviceName: cleanedData.serviceName, + revision: cleanedData.revision, + image: cleanedData.image, + imageVersion: cleanedData.imageVersion, + handlerName: cleanedData.handlerName, + concurrency: cleanedData.concurrency, + scaleMin: cleanedData.scaleMin, + scaleMax: cleanedData.scaleMax, + timeoutSeconds: cleanedData.timeoutSeconds, + resources: cleanedData.resources, + lastError: cleanedData.lastError, + lastErrorAt: cleanedData.lastErrorAt, + errorCount: cleanedData.errorCount, + labels: cleanedData.labels, + annotations: cleanedData.annotations, + }, + select: { + id: true, + createdAt: true, + updatedAt: true, + namespaceId: true, + status: true, + serviceUrl: true, + serviceName: true, + revision: true, + image: true, + imageVersion: true, + handlerName: true, + concurrency: true, + scaleMin: true, + scaleMax: true, + timeoutSeconds: true, + resources: true, + lastError: true, + lastErrorAt: true, + errorCount: true, + labels: true, + annotations: true, + }, + }) + .execute(); + console.log(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: 'namespaceId', + message: 'namespaceId', + required: false, + }, + { + type: 'text', + name: 'status', + message: 'status', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'serviceUrl', + message: 'serviceUrl', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'serviceName', + message: 'serviceName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'revision', + message: 'revision', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'image', + message: 'image', + required: false, + }, + { + type: 'text', + name: 'imageVersion', + message: 'imageVersion', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'handlerName', + message: 'handlerName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'concurrency', + message: 'concurrency', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'scaleMin', + message: 'scaleMin', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'scaleMax', + message: 'scaleMax', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'timeoutSeconds', + message: 'timeoutSeconds', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'resources', + message: 'resources', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'lastError', + message: 'lastError', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'lastErrorAt', + message: 'lastErrorAt', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'errorCount', + message: 'errorCount', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'labels', + message: 'labels', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'annotations', + message: 'annotations', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined(answers, fieldSchema) as PlatformFunctionDeploymentPatch; + const client = getClient(); + const result = await client.platformFunctionDeployment + .update({ + where: { + id: answers.id as string, + }, + data: { + namespaceId: cleanedData.namespaceId, + status: cleanedData.status, + serviceUrl: cleanedData.serviceUrl, + serviceName: cleanedData.serviceName, + revision: cleanedData.revision, + image: cleanedData.image, + imageVersion: cleanedData.imageVersion, + handlerName: cleanedData.handlerName, + concurrency: cleanedData.concurrency, + scaleMin: cleanedData.scaleMin, + scaleMax: cleanedData.scaleMax, + timeoutSeconds: cleanedData.timeoutSeconds, + resources: cleanedData.resources, + lastError: cleanedData.lastError, + lastErrorAt: cleanedData.lastErrorAt, + errorCount: cleanedData.errorCount, + labels: cleanedData.labels, + annotations: cleanedData.annotations, + }, + select: { + id: true, + createdAt: true, + updatedAt: true, + namespaceId: true, + status: true, + serviceUrl: true, + serviceName: true, + revision: true, + image: true, + imageVersion: true, + handlerName: true, + concurrency: true, + scaleMin: true, + scaleMax: true, + timeoutSeconds: true, + resources: true, + lastError: true, + lastErrorAt: true, + errorCount: true, + labels: true, + annotations: 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.platformFunctionDeployment + .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/org-function-execution-log.ts b/sdk/constructive-cli/src/compute/cli/commands/platform-function-execution-log.ts similarity index 78% rename from sdk/constructive-cli/src/compute/cli/commands/org-function-execution-log.ts rename to sdk/constructive-cli/src/compute/cli/commands/platform-function-execution-log.ts index 145f2d292a..311bd49795 100644 --- a/sdk/constructive-cli/src/compute/cli/commands/org-function-execution-log.ts +++ b/sdk/constructive-cli/src/compute/cli/commands/platform-function-execution-log.ts @@ -1,5 +1,5 @@ /** - * CLI commands for OrgFunctionExecutionLog + * CLI commands for PlatformFunctionExecutionLog * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -8,11 +8,11 @@ import { getClient } from '../executor'; import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; import type { FieldSchema } from '../utils'; import type { - CreateOrgFunctionExecutionLogInput, - OrgFunctionExecutionLogPatch, - OrgFunctionExecutionLogSelect, - OrgFunctionExecutionLogFilter, - OrgFunctionExecutionLogOrderBy, + CreatePlatformFunctionExecutionLogInput, + PlatformFunctionExecutionLogPatch, + PlatformFunctionExecutionLogSelect, + PlatformFunctionExecutionLogFilter, + PlatformFunctionExecutionLogOrderBy, } from '../../orm/input-types'; import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; const fieldSchema: FieldSchema = { @@ -26,7 +26,7 @@ const fieldSchema: FieldSchema = { actorId: 'uuid', }; const usage = - '\norg-function-execution-log \n\nCommands:\n list List orgFunctionExecutionLog records\n find-first Find first matching orgFunctionExecutionLog record\n get Get a orgFunctionExecutionLog by ID\n create Create a new orgFunctionExecutionLog\n update Update an existing orgFunctionExecutionLog\n delete Delete a orgFunctionExecutionLog\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\n --help, -h Show this help message\n'; + '\nplatform-function-execution-log \n\nCommands:\n list List platformFunctionExecutionLog records\n find-first Find first matching platformFunctionExecutionLog record\n get Get a platformFunctionExecutionLog by ID\n create Create a new platformFunctionExecutionLog\n update Update an existing platformFunctionExecutionLog\n delete Delete a platformFunctionExecutionLog\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (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, @@ -87,15 +87,15 @@ async function handleList(argv: Partial>, _prompter: Inq }; const findManyArgs = parseFindManyArgs< FindManyArgs< - OrgFunctionExecutionLogSelect, - OrgFunctionExecutionLogFilter, - OrgFunctionExecutionLogOrderBy + PlatformFunctionExecutionLogSelect, + PlatformFunctionExecutionLogFilter, + PlatformFunctionExecutionLogOrderBy > & { - select: OrgFunctionExecutionLogSelect; + select: PlatformFunctionExecutionLogSelect; } >(argv, defaultSelect); const client = getClient(); - const result = await client.orgFunctionExecutionLog.findMany(findManyArgs).execute(); + const result = await client.platformFunctionExecutionLog.findMany(findManyArgs).execute(); console.log(JSON.stringify(result, null, 2)); } catch (error) { console.error('Failed to list records.'); @@ -119,15 +119,15 @@ async function handleFindFirst(argv: Partial>, _prompter }; const findFirstArgs = parseFindFirstArgs< FindFirstArgs< - OrgFunctionExecutionLogSelect, - OrgFunctionExecutionLogFilter, - OrgFunctionExecutionLogOrderBy + PlatformFunctionExecutionLogSelect, + PlatformFunctionExecutionLogFilter, + PlatformFunctionExecutionLogOrderBy > & { - select: OrgFunctionExecutionLogSelect; + select: PlatformFunctionExecutionLogSelect; } >(argv, defaultSelect); const client = getClient(); - const result = await client.orgFunctionExecutionLog.findFirst(findFirstArgs).execute(); + const result = await client.platformFunctionExecutionLog.findFirst(findFirstArgs).execute(); console.log(JSON.stringify(result, null, 2)); } catch (error) { console.error('Failed to find record.'); @@ -148,7 +148,7 @@ async function handleGet(argv: Partial>, prompter: Inqui }, ]); const client = getClient(); - const result = await client.orgFunctionExecutionLog + const result = await client.platformFunctionExecutionLog .findOne({ id: answers.id as string, select: { @@ -221,9 +221,9 @@ async function handleCreate(argv: Partial>, prompter: In const cleanedData = stripUndefined( answers, fieldSchema - ) as CreateOrgFunctionExecutionLogInput['orgFunctionExecutionLog']; + ) as CreatePlatformFunctionExecutionLogInput['platformFunctionExecutionLog']; const client = getClient(); - const result = await client.orgFunctionExecutionLog + const result = await client.platformFunctionExecutionLog .create({ data: { invocationId: cleanedData.invocationId, @@ -312,9 +312,9 @@ async function handleUpdate(argv: Partial>, prompter: In }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined(answers, fieldSchema) as OrgFunctionExecutionLogPatch; + const cleanedData = stripUndefined(answers, fieldSchema) as PlatformFunctionExecutionLogPatch; const client = getClient(); - const result = await client.orgFunctionExecutionLog + const result = await client.platformFunctionExecutionLog .update({ where: { id: answers.id as string, @@ -367,7 +367,7 @@ async function handleDelete(argv: Partial>, prompter: In ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const client = getClient(); - const result = await client.orgFunctionExecutionLog + const result = await client.platformFunctionExecutionLog .delete({ where: { id: answers.id as string, diff --git a/sdk/constructive-cli/src/compute/cli/commands/org-function-invocation.ts b/sdk/constructive-cli/src/compute/cli/commands/platform-function-invocation.ts similarity index 83% rename from sdk/constructive-cli/src/compute/cli/commands/org-function-invocation.ts rename to sdk/constructive-cli/src/compute/cli/commands/platform-function-invocation.ts index 5b20916002..1e731e9c37 100644 --- a/sdk/constructive-cli/src/compute/cli/commands/org-function-invocation.ts +++ b/sdk/constructive-cli/src/compute/cli/commands/platform-function-invocation.ts @@ -1,5 +1,5 @@ /** - * CLI commands for OrgFunctionInvocation + * CLI commands for PlatformFunctionInvocation * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -8,11 +8,11 @@ import { getClient } from '../executor'; import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; import type { FieldSchema } from '../utils'; import type { - CreateOrgFunctionInvocationInput, - OrgFunctionInvocationPatch, - OrgFunctionInvocationSelect, - OrgFunctionInvocationFilter, - OrgFunctionInvocationOrderBy, + CreatePlatformFunctionInvocationInput, + PlatformFunctionInvocationPatch, + PlatformFunctionInvocationSelect, + PlatformFunctionInvocationFilter, + PlatformFunctionInvocationOrderBy, } from '../../orm/input-types'; import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; const fieldSchema: FieldSchema = { @@ -32,7 +32,7 @@ const fieldSchema: FieldSchema = { graphExecutionId: 'uuid', }; const usage = - '\norg-function-invocation \n\nCommands:\n list List orgFunctionInvocation records\n find-first Find first matching orgFunctionInvocation record\n get Get a orgFunctionInvocation by ID\n create Create a new orgFunctionInvocation\n update Update an existing orgFunctionInvocation\n delete Delete a orgFunctionInvocation\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\n --help, -h Show this help message\n'; + '\nplatform-function-invocation \n\nCommands:\n list List platformFunctionInvocation records\n find-first Find first matching platformFunctionInvocation record\n get Get a platformFunctionInvocation by ID\n create Create a new platformFunctionInvocation\n update Update an existing platformFunctionInvocation\n delete Delete a platformFunctionInvocation\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (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, @@ -99,15 +99,15 @@ async function handleList(argv: Partial>, _prompter: Inq }; const findManyArgs = parseFindManyArgs< FindManyArgs< - OrgFunctionInvocationSelect, - OrgFunctionInvocationFilter, - OrgFunctionInvocationOrderBy + PlatformFunctionInvocationSelect, + PlatformFunctionInvocationFilter, + PlatformFunctionInvocationOrderBy > & { - select: OrgFunctionInvocationSelect; + select: PlatformFunctionInvocationSelect; } >(argv, defaultSelect); const client = getClient(); - const result = await client.orgFunctionInvocation.findMany(findManyArgs).execute(); + const result = await client.platformFunctionInvocation.findMany(findManyArgs).execute(); console.log(JSON.stringify(result, null, 2)); } catch (error) { console.error('Failed to list records.'); @@ -137,15 +137,15 @@ async function handleFindFirst(argv: Partial>, _prompter }; const findFirstArgs = parseFindFirstArgs< FindFirstArgs< - OrgFunctionInvocationSelect, - OrgFunctionInvocationFilter, - OrgFunctionInvocationOrderBy + PlatformFunctionInvocationSelect, + PlatformFunctionInvocationFilter, + PlatformFunctionInvocationOrderBy > & { - select: OrgFunctionInvocationSelect; + select: PlatformFunctionInvocationSelect; } >(argv, defaultSelect); const client = getClient(); - const result = await client.orgFunctionInvocation.findFirst(findFirstArgs).execute(); + const result = await client.platformFunctionInvocation.findFirst(findFirstArgs).execute(); console.log(JSON.stringify(result, null, 2)); } catch (error) { console.error('Failed to find record.'); @@ -166,7 +166,7 @@ async function handleGet(argv: Partial>, prompter: Inqui }, ]); const client = getClient(); - const result = await client.orgFunctionInvocation + const result = await client.platformFunctionInvocation .findOne({ id: answers.id as string, select: { @@ -287,9 +287,9 @@ async function handleCreate(argv: Partial>, prompter: In const cleanedData = stripUndefined( answers, fieldSchema - ) as CreateOrgFunctionInvocationInput['orgFunctionInvocation']; + ) as CreatePlatformFunctionInvocationInput['platformFunctionInvocation']; const client = getClient(); - const result = await client.orgFunctionInvocation + const result = await client.platformFunctionInvocation .create({ data: { actorId: cleanedData.actorId, @@ -432,9 +432,9 @@ async function handleUpdate(argv: Partial>, prompter: In }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined(answers, fieldSchema) as OrgFunctionInvocationPatch; + const cleanedData = stripUndefined(answers, fieldSchema) as PlatformFunctionInvocationPatch; const client = getClient(); - const result = await client.orgFunctionInvocation + const result = await client.platformFunctionInvocation .update({ where: { id: answers.id as string, @@ -499,7 +499,7 @@ async function handleDelete(argv: Partial>, prompter: In ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const client = getClient(); - const result = await client.orgFunctionInvocation + const result = await client.platformFunctionInvocation .delete({ where: { id: answers.id as string, diff --git a/sdk/constructive-cli/src/compute/cli/commands/platform-namespace-event.ts b/sdk/constructive-cli/src/compute/cli/commands/platform-namespace-event.ts index e50a517de3..0ef3c0d677 100644 --- a/sdk/constructive-cli/src/compute/cli/commands/platform-namespace-event.ts +++ b/sdk/constructive-cli/src/compute/cli/commands/platform-namespace-event.ts @@ -30,7 +30,6 @@ const fieldSchema: FieldSchema = { networkEgressBytes: 'int', podCount: 'int', metrics: 'json', - databaseId: 'uuid', }; const usage = '\nplatform-namespace-event \n\nCommands:\n list List platformNamespaceEvent records\n find-first Find first matching platformNamespaceEvent record\n get Get a platformNamespaceEvent by ID\n create Create a new platformNamespaceEvent\n update Update an existing platformNamespaceEvent\n delete Delete a platformNamespaceEvent\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\n --help, -h Show this help message\n'; @@ -97,7 +96,6 @@ async function handleList(argv: Partial>, _prompter: Inq networkEgressBytes: true, podCount: true, metrics: true, - databaseId: true, }; const findManyArgs = parseFindManyArgs< FindManyArgs< @@ -136,7 +134,6 @@ async function handleFindFirst(argv: Partial>, _prompter networkEgressBytes: true, podCount: true, metrics: true, - databaseId: true, }; const findFirstArgs = parseFindFirstArgs< FindFirstArgs< @@ -187,7 +184,6 @@ async function handleGet(argv: Partial>, prompter: Inqui networkEgressBytes: true, podCount: true, metrics: true, - databaseId: true, }, }) .execute(); @@ -285,12 +281,6 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, - { - type: 'text', - name: 'databaseId', - message: 'databaseId', - required: true, - }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const cleanedData = stripUndefined( @@ -313,7 +303,6 @@ async function handleCreate(argv: Partial>, prompter: In networkEgressBytes: cleanedData.networkEgressBytes, podCount: cleanedData.podCount, metrics: cleanedData.metrics, - databaseId: cleanedData.databaseId, }, select: { createdAt: true, @@ -330,7 +319,6 @@ async function handleCreate(argv: Partial>, prompter: In networkEgressBytes: true, podCount: true, metrics: true, - databaseId: true, }, }) .execute(); @@ -440,12 +428,6 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, - { - type: 'text', - name: 'databaseId', - message: 'databaseId', - required: false, - }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const cleanedData = stripUndefined(answers, fieldSchema) as PlatformNamespaceEventPatch; @@ -469,7 +451,6 @@ async function handleUpdate(argv: Partial>, prompter: In networkEgressBytes: cleanedData.networkEgressBytes, podCount: cleanedData.podCount, metrics: cleanedData.metrics, - databaseId: cleanedData.databaseId, }, select: { createdAt: true, @@ -486,7 +467,6 @@ async function handleUpdate(argv: Partial>, prompter: In networkEgressBytes: true, podCount: true, metrics: true, - databaseId: true, }, }) .execute(); diff --git a/sdk/constructive-cli/src/compute/cli/commands/platform-namespace.ts b/sdk/constructive-cli/src/compute/cli/commands/platform-namespace.ts index ab47a40519..7a9b23fd65 100644 --- a/sdk/constructive-cli/src/compute/cli/commands/platform-namespace.ts +++ b/sdk/constructive-cli/src/compute/cli/commands/platform-namespace.ts @@ -23,11 +23,10 @@ const fieldSchema: FieldSchema = { namespaceName: 'string', description: 'string', isActive: 'boolean', + status: 'string', + lastError: 'string', labels: 'json', annotations: 'json', - databaseId: 'uuid', - sourceDatabaseId: 'uuid', - sourceScope: 'string', isManaged: 'boolean', }; const usage = @@ -88,11 +87,10 @@ async function handleList(argv: Partial>, _prompter: Inq namespaceName: true, description: true, isActive: true, + status: true, + lastError: true, labels: true, annotations: true, - databaseId: true, - sourceDatabaseId: true, - sourceScope: true, isManaged: true, }; const findManyArgs = parseFindManyArgs< @@ -121,11 +119,10 @@ async function handleFindFirst(argv: Partial>, _prompter namespaceName: true, description: true, isActive: true, + status: true, + lastError: true, labels: true, annotations: true, - databaseId: true, - sourceDatabaseId: true, - sourceScope: true, isManaged: true, }; const findFirstArgs = parseFindFirstArgs< @@ -166,11 +163,10 @@ async function handleGet(argv: Partial>, prompter: Inqui namespaceName: true, description: true, isActive: true, + status: true, + lastError: true, labels: true, annotations: true, - databaseId: true, - sourceDatabaseId: true, - sourceScope: true, isManaged: true, }, }) @@ -214,36 +210,30 @@ async function handleCreate(argv: Partial>, prompter: In skipPrompt: true, }, { - type: 'json', - name: 'labels', - message: 'labels', + type: 'text', + name: 'status', + message: 'status', required: false, skipPrompt: true, }, { - type: 'json', - name: 'annotations', - message: 'annotations', + type: 'text', + name: 'lastError', + message: 'lastError', required: false, skipPrompt: true, }, { - type: 'text', - name: 'databaseId', - message: 'databaseId', - required: true, - }, - { - type: 'text', - name: 'sourceDatabaseId', - message: 'sourceDatabaseId', + type: 'json', + name: 'labels', + message: 'labels', required: false, skipPrompt: true, }, { - type: 'text', - name: 'sourceScope', - message: 'sourceScope', + type: 'json', + name: 'annotations', + message: 'annotations', required: false, skipPrompt: true, }, @@ -268,11 +258,10 @@ async function handleCreate(argv: Partial>, prompter: In namespaceName: cleanedData.namespaceName, description: cleanedData.description, isActive: cleanedData.isActive, + status: cleanedData.status, + lastError: cleanedData.lastError, labels: cleanedData.labels, annotations: cleanedData.annotations, - databaseId: cleanedData.databaseId, - sourceDatabaseId: cleanedData.sourceDatabaseId, - sourceScope: cleanedData.sourceScope, isManaged: cleanedData.isManaged, }, select: { @@ -283,11 +272,10 @@ async function handleCreate(argv: Partial>, prompter: In namespaceName: true, description: true, isActive: true, + status: true, + lastError: true, labels: true, annotations: true, - databaseId: true, - sourceDatabaseId: true, - sourceScope: true, isManaged: true, }, }) @@ -337,36 +325,30 @@ async function handleUpdate(argv: Partial>, prompter: In skipPrompt: true, }, { - type: 'json', - name: 'labels', - message: 'labels', - required: false, - skipPrompt: true, - }, - { - type: 'json', - name: 'annotations', - message: 'annotations', + type: 'text', + name: 'status', + message: 'status', required: false, skipPrompt: true, }, { type: 'text', - name: 'databaseId', - message: 'databaseId', + name: 'lastError', + message: 'lastError', required: false, + skipPrompt: true, }, { - type: 'text', - name: 'sourceDatabaseId', - message: 'sourceDatabaseId', + type: 'json', + name: 'labels', + message: 'labels', required: false, skipPrompt: true, }, { - type: 'text', - name: 'sourceScope', - message: 'sourceScope', + type: 'json', + name: 'annotations', + message: 'annotations', required: false, skipPrompt: true, }, @@ -391,11 +373,10 @@ async function handleUpdate(argv: Partial>, prompter: In namespaceName: cleanedData.namespaceName, description: cleanedData.description, isActive: cleanedData.isActive, + status: cleanedData.status, + lastError: cleanedData.lastError, labels: cleanedData.labels, annotations: cleanedData.annotations, - databaseId: cleanedData.databaseId, - sourceDatabaseId: cleanedData.sourceDatabaseId, - sourceScope: cleanedData.sourceScope, isManaged: cleanedData.isManaged, }, select: { @@ -406,11 +387,10 @@ async function handleUpdate(argv: Partial>, prompter: In namespaceName: true, description: true, isActive: true, + status: true, + lastError: true, labels: true, annotations: true, - databaseId: true, - sourceDatabaseId: true, - sourceScope: true, isManaged: true, }, }) 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 new file mode 100644 index 0000000000..5f8a58d40d --- /dev/null +++ b/sdk/constructive-cli/src/compute/cli/commands/platform-resource-definition.ts @@ -0,0 +1,551 @@ +/** + * CLI commands for PlatformResourceDefinition + * @generated 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 { + CreatePlatformResourceDefinitionInput, + PlatformResourceDefinitionPatch, + PlatformResourceDefinitionSelect, + PlatformResourceDefinitionFilter, + PlatformResourceDefinitionOrderBy, +} from '../../orm/input-types'; +import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; +const fieldSchema: FieldSchema = { + id: 'uuid', + createdAt: 'string', + updatedAt: 'string', + createdBy: 'uuid', + updatedBy: 'uuid', + namespaceId: 'uuid', + kind: 'string', + name: 'string', + slug: 'string', + description: 'string', + defaultSpec: 'json', + requiredSecrets: 'string', + requiredConfigs: 'string', + integrations: 'string', + labels: 'json', + annotations: 'json', + stepUpMinAge: 'string', +}; +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'; +export default async ( + argv: Partial>, + prompter: Inquirerer, + _options: CLIOptions +) => { + if (argv.help || argv.h) { + console.log(usage); + process.exit(0); + } + const { first: subcommand, 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, + createdAt: true, + updatedAt: true, + createdBy: true, + updatedBy: true, + namespaceId: true, + kind: true, + name: true, + slug: true, + description: true, + defaultSpec: true, + requiredSecrets: true, + requiredConfigs: true, + integrations: true, + labels: true, + annotations: true, + stepUpMinAge: true, + }; + const findManyArgs = parseFindManyArgs< + FindManyArgs< + PlatformResourceDefinitionSelect, + PlatformResourceDefinitionFilter, + PlatformResourceDefinitionOrderBy + > & { + select: PlatformResourceDefinitionSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.platformResourceDefinition.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, + createdAt: true, + updatedAt: true, + createdBy: true, + updatedBy: true, + namespaceId: true, + kind: true, + name: true, + slug: true, + description: true, + defaultSpec: true, + requiredSecrets: true, + requiredConfigs: true, + integrations: true, + labels: true, + annotations: true, + stepUpMinAge: true, + }; + const findFirstArgs = parseFindFirstArgs< + FindFirstArgs< + PlatformResourceDefinitionSelect, + PlatformResourceDefinitionFilter, + PlatformResourceDefinitionOrderBy + > & { + select: PlatformResourceDefinitionSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.platformResourceDefinition.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.platformResourceDefinition + .findOne({ + id: answers.id as string, + select: { + id: true, + createdAt: true, + updatedAt: true, + createdBy: true, + updatedBy: true, + namespaceId: true, + kind: true, + name: true, + slug: true, + description: true, + defaultSpec: true, + requiredSecrets: true, + requiredConfigs: true, + integrations: true, + labels: true, + annotations: true, + stepUpMinAge: 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: 'updatedBy', + message: 'updatedBy', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'namespaceId', + message: 'namespaceId', + required: true, + }, + { + type: 'text', + name: 'kind', + message: 'kind', + required: true, + }, + { + type: 'text', + name: 'name', + message: 'name', + required: true, + }, + { + type: 'text', + name: 'slug', + message: 'slug', + required: true, + }, + { + type: 'text', + name: 'description', + message: 'description', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'defaultSpec', + message: 'defaultSpec', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'requiredSecrets', + message: 'requiredSecrets', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'requiredConfigs', + message: 'requiredConfigs', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'integrations', + message: 'integrations', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'labels', + message: 'labels', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'annotations', + message: 'annotations', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'stepUpMinAge', + message: 'stepUpMinAge', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined( + answers, + fieldSchema + ) as CreatePlatformResourceDefinitionInput['platformResourceDefinition']; + const client = getClient(); + const result = await client.platformResourceDefinition + .create({ + data: { + createdBy: cleanedData.createdBy, + updatedBy: cleanedData.updatedBy, + namespaceId: cleanedData.namespaceId, + kind: cleanedData.kind, + name: cleanedData.name, + slug: cleanedData.slug, + description: cleanedData.description, + defaultSpec: cleanedData.defaultSpec, + requiredSecrets: cleanedData.requiredSecrets, + requiredConfigs: cleanedData.requiredConfigs, + integrations: cleanedData.integrations, + labels: cleanedData.labels, + annotations: cleanedData.annotations, + stepUpMinAge: cleanedData.stepUpMinAge, + }, + select: { + id: true, + createdAt: true, + updatedAt: true, + createdBy: true, + updatedBy: true, + namespaceId: true, + kind: true, + name: true, + slug: true, + description: true, + defaultSpec: true, + requiredSecrets: true, + requiredConfigs: true, + integrations: true, + labels: true, + annotations: true, + stepUpMinAge: true, + }, + }) + .execute(); + console.log(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: 'updatedBy', + message: 'updatedBy', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'namespaceId', + message: 'namespaceId', + required: false, + }, + { + type: 'text', + name: 'kind', + message: 'kind', + required: false, + }, + { + type: 'text', + name: 'name', + message: 'name', + required: false, + }, + { + type: 'text', + name: 'slug', + message: 'slug', + required: false, + }, + { + type: 'text', + name: 'description', + message: 'description', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'defaultSpec', + message: 'defaultSpec', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'requiredSecrets', + message: 'requiredSecrets', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'requiredConfigs', + message: 'requiredConfigs', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'integrations', + message: 'integrations', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'labels', + message: 'labels', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'annotations', + message: 'annotations', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'stepUpMinAge', + message: 'stepUpMinAge', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined(answers, fieldSchema) as PlatformResourceDefinitionPatch; + const client = getClient(); + const result = await client.platformResourceDefinition + .update({ + where: { + id: answers.id as string, + }, + data: { + createdBy: cleanedData.createdBy, + updatedBy: cleanedData.updatedBy, + namespaceId: cleanedData.namespaceId, + kind: cleanedData.kind, + name: cleanedData.name, + slug: cleanedData.slug, + description: cleanedData.description, + defaultSpec: cleanedData.defaultSpec, + requiredSecrets: cleanedData.requiredSecrets, + requiredConfigs: cleanedData.requiredConfigs, + integrations: cleanedData.integrations, + labels: cleanedData.labels, + annotations: cleanedData.annotations, + stepUpMinAge: cleanedData.stepUpMinAge, + }, + select: { + id: true, + createdAt: true, + updatedAt: true, + createdBy: true, + updatedBy: true, + namespaceId: true, + kind: true, + name: true, + slug: true, + description: true, + defaultSpec: true, + requiredSecrets: true, + requiredConfigs: true, + integrations: true, + labels: true, + annotations: true, + stepUpMinAge: 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.platformResourceDefinition + .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-event.ts b/sdk/constructive-cli/src/compute/cli/commands/platform-resource-event.ts new file mode 100644 index 0000000000..d22d480a95 --- /dev/null +++ b/sdk/constructive-cli/src/compute/cli/commands/platform-resource-event.ts @@ -0,0 +1,365 @@ +/** + * CLI commands for PlatformResourceEvent + * @generated 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 { + CreatePlatformResourceEventInput, + PlatformResourceEventPatch, + PlatformResourceEventSelect, + PlatformResourceEventFilter, + PlatformResourceEventOrderBy, +} from '../../orm/input-types'; +import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; +const fieldSchema: FieldSchema = { + createdAt: 'string', + id: 'uuid', + resourceId: 'uuid', + eventType: 'string', + actorId: 'uuid', + message: 'string', + metadata: 'json', +}; +const usage = + '\nplatform-resource-event \n\nCommands:\n list List platformResourceEvent records\n find-first Find first matching platformResourceEvent record\n get Get a platformResourceEvent by ID\n create Create a new platformResourceEvent\n update Update an existing platformResourceEvent\n delete Delete a platformResourceEvent\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (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, + resourceId: true, + eventType: true, + actorId: true, + message: true, + metadata: true, + }; + const findManyArgs = parseFindManyArgs< + FindManyArgs< + PlatformResourceEventSelect, + PlatformResourceEventFilter, + PlatformResourceEventOrderBy + > & { + select: PlatformResourceEventSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.platformResourceEvent.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, + resourceId: true, + eventType: true, + actorId: true, + message: true, + metadata: true, + }; + const findFirstArgs = parseFindFirstArgs< + FindFirstArgs< + PlatformResourceEventSelect, + PlatformResourceEventFilter, + PlatformResourceEventOrderBy + > & { + select: PlatformResourceEventSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.platformResourceEvent.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.platformResourceEvent + .findOne({ + id: answers.id as string, + select: { + createdAt: true, + id: true, + resourceId: true, + eventType: true, + actorId: true, + message: true, + metadata: 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: 'resourceId', + message: 'resourceId', + required: true, + }, + { + type: 'text', + name: 'eventType', + message: 'eventType', + required: true, + }, + { + type: 'text', + name: 'actorId', + message: 'actorId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'message', + message: 'message', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'metadata', + message: 'metadata', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined( + answers, + fieldSchema + ) as CreatePlatformResourceEventInput['platformResourceEvent']; + const client = getClient(); + const result = await client.platformResourceEvent + .create({ + data: { + resourceId: cleanedData.resourceId, + eventType: cleanedData.eventType, + actorId: cleanedData.actorId, + message: cleanedData.message, + metadata: cleanedData.metadata, + }, + select: { + createdAt: true, + id: true, + resourceId: true, + eventType: true, + actorId: true, + message: true, + metadata: true, + }, + }) + .execute(); + console.log(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: 'text', + name: 'resourceId', + message: 'resourceId', + required: false, + }, + { + type: 'text', + name: 'eventType', + message: 'eventType', + required: false, + }, + { + type: 'text', + name: 'actorId', + message: 'actorId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'message', + message: 'message', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'metadata', + message: 'metadata', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined(answers, fieldSchema) as PlatformResourceEventPatch; + const client = getClient(); + const result = await client.platformResourceEvent + .update({ + where: { + id: answers.id as string, + createdAt: answers.createdAt as string, + }, + data: { + resourceId: cleanedData.resourceId, + eventType: cleanedData.eventType, + actorId: cleanedData.actorId, + message: cleanedData.message, + metadata: cleanedData.metadata, + }, + select: { + createdAt: true, + id: true, + resourceId: true, + eventType: true, + actorId: true, + message: true, + metadata: 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.platformResourceEvent + .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/platform-resource-status-check.ts b/sdk/constructive-cli/src/compute/cli/commands/platform-resource-status-check.ts new file mode 100644 index 0000000000..477c320b07 --- /dev/null +++ b/sdk/constructive-cli/src/compute/cli/commands/platform-resource-status-check.ts @@ -0,0 +1,369 @@ +/** + * CLI commands for PlatformResourceStatusCheck + * @generated 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 { + CreatePlatformResourceStatusCheckInput, + PlatformResourceStatusCheckPatch, + PlatformResourceStatusCheckSelect, + PlatformResourceStatusCheckFilter, + PlatformResourceStatusCheckOrderBy, +} from '../../orm/input-types'; +import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; +const fieldSchema: FieldSchema = { + id: 'uuid', + resourceId: 'uuid', + requestedBy: 'uuid', + requestedAt: 'string', + completedAt: 'string', + status: 'string', + result: 'json', +}; +const usage = + '\nplatform-resource-status-check \n\nCommands:\n list List platformResourceStatusCheck records\n find-first Find first matching platformResourceStatusCheck record\n get Get a platformResourceStatusCheck by ID\n create Create a new platformResourceStatusCheck\n update Update an existing platformResourceStatusCheck\n delete Delete a platformResourceStatusCheck\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (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, + resourceId: true, + requestedBy: true, + requestedAt: true, + completedAt: true, + status: true, + result: true, + }; + const findManyArgs = parseFindManyArgs< + FindManyArgs< + PlatformResourceStatusCheckSelect, + PlatformResourceStatusCheckFilter, + PlatformResourceStatusCheckOrderBy + > & { + select: PlatformResourceStatusCheckSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.platformResourceStatusCheck.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, + resourceId: true, + requestedBy: true, + requestedAt: true, + completedAt: true, + status: true, + result: true, + }; + const findFirstArgs = parseFindFirstArgs< + FindFirstArgs< + PlatformResourceStatusCheckSelect, + PlatformResourceStatusCheckFilter, + PlatformResourceStatusCheckOrderBy + > & { + select: PlatformResourceStatusCheckSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.platformResourceStatusCheck.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.platformResourceStatusCheck + .findOne({ + id: answers.id as string, + select: { + id: true, + resourceId: true, + requestedBy: true, + requestedAt: true, + completedAt: true, + status: true, + result: 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: 'resourceId', + message: 'resourceId', + required: true, + }, + { + type: 'text', + name: 'requestedBy', + message: 'requestedBy', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'requestedAt', + message: 'requestedAt', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'completedAt', + message: 'completedAt', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'status', + message: 'status', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'result', + message: 'result', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined( + answers, + fieldSchema + ) as CreatePlatformResourceStatusCheckInput['platformResourceStatusCheck']; + const client = getClient(); + const result = await client.platformResourceStatusCheck + .create({ + data: { + resourceId: cleanedData.resourceId, + requestedBy: cleanedData.requestedBy, + requestedAt: cleanedData.requestedAt, + completedAt: cleanedData.completedAt, + status: cleanedData.status, + result: cleanedData.result, + }, + select: { + id: true, + resourceId: true, + requestedBy: true, + requestedAt: true, + completedAt: true, + status: true, + result: true, + }, + }) + .execute(); + console.log(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: 'resourceId', + message: 'resourceId', + required: false, + }, + { + type: 'text', + name: 'requestedBy', + message: 'requestedBy', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'requestedAt', + message: 'requestedAt', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'completedAt', + message: 'completedAt', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'status', + message: 'status', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'result', + message: 'result', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined(answers, fieldSchema) as PlatformResourceStatusCheckPatch; + const client = getClient(); + const result = await client.platformResourceStatusCheck + .update({ + where: { + id: answers.id as string, + }, + data: { + resourceId: cleanedData.resourceId, + requestedBy: cleanedData.requestedBy, + requestedAt: cleanedData.requestedAt, + completedAt: cleanedData.completedAt, + status: cleanedData.status, + result: cleanedData.result, + }, + select: { + id: true, + resourceId: true, + requestedBy: true, + requestedAt: true, + completedAt: true, + status: true, + result: 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.platformResourceStatusCheck + .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.ts b/sdk/constructive-cli/src/compute/cli/commands/platform-resource.ts new file mode 100644 index 0000000000..617d454a84 --- /dev/null +++ b/sdk/constructive-cli/src/compute/cli/commands/platform-resource.ts @@ -0,0 +1,609 @@ +/** + * CLI commands for PlatformResource + * @generated 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 { + CreatePlatformResourceInput, + PlatformResourcePatch, + PlatformResourceSelect, + PlatformResourceFilter, + PlatformResourceOrderBy, +} from '../../orm/input-types'; +import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; +const fieldSchema: FieldSchema = { + id: 'uuid', + createdAt: 'string', + updatedAt: 'string', + createdBy: 'uuid', + updatedBy: 'uuid', + namespaceId: 'uuid', + kind: 'string', + name: 'string', + slug: 'string', + spec: 'json', + status: 'string', + statusObserved: 'json', + lastError: 'string', + errorCount: 'int', + labels: 'json', + annotations: 'json', + requiredSecrets: 'string', + requiredConfigs: 'string', + integrations: 'string', + resourceDefinitionId: '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'; +export default async ( + argv: Partial>, + prompter: Inquirerer, + _options: CLIOptions +) => { + if (argv.help || argv.h) { + console.log(usage); + process.exit(0); + } + const { first: subcommand, 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, + createdAt: true, + updatedAt: true, + createdBy: true, + updatedBy: true, + namespaceId: true, + kind: true, + name: true, + slug: true, + spec: true, + status: true, + statusObserved: true, + lastError: true, + errorCount: true, + labels: true, + annotations: true, + requiredSecrets: true, + requiredConfigs: true, + integrations: true, + resourceDefinitionId: true, + }; + const findManyArgs = parseFindManyArgs< + FindManyArgs & { + select: PlatformResourceSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.platformResource.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, + createdAt: true, + updatedAt: true, + createdBy: true, + updatedBy: true, + namespaceId: true, + kind: true, + name: true, + slug: true, + spec: true, + status: true, + statusObserved: true, + lastError: true, + errorCount: true, + labels: true, + annotations: true, + requiredSecrets: true, + requiredConfigs: true, + integrations: true, + resourceDefinitionId: true, + }; + const findFirstArgs = parseFindFirstArgs< + FindFirstArgs & { + select: PlatformResourceSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.platformResource.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.platformResource + .findOne({ + id: answers.id as string, + select: { + id: true, + createdAt: true, + updatedAt: true, + createdBy: true, + updatedBy: true, + namespaceId: true, + kind: true, + name: true, + slug: true, + spec: true, + status: true, + statusObserved: true, + lastError: true, + errorCount: true, + labels: true, + annotations: true, + requiredSecrets: true, + requiredConfigs: true, + integrations: true, + resourceDefinitionId: 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: 'updatedBy', + message: 'updatedBy', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'namespaceId', + message: 'namespaceId', + required: true, + }, + { + type: 'text', + name: 'kind', + message: 'kind', + required: true, + }, + { + type: 'text', + name: 'name', + message: 'name', + required: true, + }, + { + type: 'text', + name: 'slug', + message: 'slug', + required: true, + }, + { + type: 'json', + name: 'spec', + message: 'spec', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'status', + message: 'status', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'statusObserved', + message: 'statusObserved', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'lastError', + message: 'lastError', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'errorCount', + message: 'errorCount', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'labels', + message: 'labels', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'annotations', + message: 'annotations', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'requiredSecrets', + message: 'requiredSecrets', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'requiredConfigs', + message: 'requiredConfigs', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'integrations', + message: 'integrations', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'resourceDefinitionId', + message: 'resourceDefinitionId', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined( + answers, + fieldSchema + ) as CreatePlatformResourceInput['platformResource']; + const client = getClient(); + const result = await client.platformResource + .create({ + data: { + createdBy: cleanedData.createdBy, + updatedBy: cleanedData.updatedBy, + namespaceId: cleanedData.namespaceId, + kind: cleanedData.kind, + name: cleanedData.name, + slug: cleanedData.slug, + spec: cleanedData.spec, + status: cleanedData.status, + statusObserved: cleanedData.statusObserved, + lastError: cleanedData.lastError, + errorCount: cleanedData.errorCount, + labels: cleanedData.labels, + annotations: cleanedData.annotations, + requiredSecrets: cleanedData.requiredSecrets, + requiredConfigs: cleanedData.requiredConfigs, + integrations: cleanedData.integrations, + resourceDefinitionId: cleanedData.resourceDefinitionId, + }, + select: { + id: true, + createdAt: true, + updatedAt: true, + createdBy: true, + updatedBy: true, + namespaceId: true, + kind: true, + name: true, + slug: true, + spec: true, + status: true, + statusObserved: true, + lastError: true, + errorCount: true, + labels: true, + annotations: true, + requiredSecrets: true, + requiredConfigs: true, + integrations: true, + resourceDefinitionId: true, + }, + }) + .execute(); + console.log(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: 'updatedBy', + message: 'updatedBy', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'namespaceId', + message: 'namespaceId', + required: false, + }, + { + type: 'text', + name: 'kind', + message: 'kind', + required: false, + }, + { + type: 'text', + name: 'name', + message: 'name', + required: false, + }, + { + type: 'text', + name: 'slug', + message: 'slug', + required: false, + }, + { + type: 'json', + name: 'spec', + message: 'spec', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'status', + message: 'status', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'statusObserved', + message: 'statusObserved', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'lastError', + message: 'lastError', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'errorCount', + message: 'errorCount', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'labels', + message: 'labels', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'annotations', + message: 'annotations', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'requiredSecrets', + message: 'requiredSecrets', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'requiredConfigs', + message: 'requiredConfigs', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'integrations', + message: 'integrations', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'resourceDefinitionId', + message: 'resourceDefinitionId', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined(answers, fieldSchema) as PlatformResourcePatch; + const client = getClient(); + const result = await client.platformResource + .update({ + where: { + id: answers.id as string, + }, + data: { + createdBy: cleanedData.createdBy, + updatedBy: cleanedData.updatedBy, + namespaceId: cleanedData.namespaceId, + kind: cleanedData.kind, + name: cleanedData.name, + slug: cleanedData.slug, + spec: cleanedData.spec, + status: cleanedData.status, + statusObserved: cleanedData.statusObserved, + lastError: cleanedData.lastError, + errorCount: cleanedData.errorCount, + labels: cleanedData.labels, + annotations: cleanedData.annotations, + requiredSecrets: cleanedData.requiredSecrets, + requiredConfigs: cleanedData.requiredConfigs, + integrations: cleanedData.integrations, + resourceDefinitionId: cleanedData.resourceDefinitionId, + }, + select: { + id: true, + createdAt: true, + updatedAt: true, + createdBy: true, + updatedBy: true, + namespaceId: true, + kind: true, + name: true, + slug: true, + spec: true, + status: true, + statusObserved: true, + lastError: true, + errorCount: true, + labels: true, + annotations: true, + requiredSecrets: true, + requiredConfigs: true, + integrations: true, + resourceDefinitionId: 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.platformResource + .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-resources-requirements-state.ts b/sdk/constructive-cli/src/compute/cli/commands/platform-resources-requirements-state.ts new file mode 100644 index 0000000000..7309d0f77a --- /dev/null +++ b/sdk/constructive-cli/src/compute/cli/commands/platform-resources-requirements-state.ts @@ -0,0 +1,215 @@ +/** + * CLI commands for PlatformResourcesRequirementsState + * @generated 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 { + CreatePlatformResourcesRequirementsStateInput, + PlatformResourcesRequirementsStatePatch, + PlatformResourcesRequirementsStateSelect, + PlatformResourcesRequirementsStateFilter, + PlatformResourcesRequirementsStateOrderBy, +} from '../../orm/input-types'; +import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; +const fieldSchema: FieldSchema = { + resourceId: 'uuid', + slug: 'string', + secretsHash: 'string', + configHash: 'string', + requirementsHash: 'string', + secretsObjectName: 'string', + configObjectName: 'string', +}; +const usage = + '\nplatform-resources-requirements-state \n\nCommands:\n list List platformResourcesRequirementsState records\n find-first Find first matching platformResourcesRequirementsState record\n create Create a new platformResourcesRequirementsState\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (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 = { + resourceId: true, + slug: true, + secretsHash: true, + configHash: true, + requirementsHash: true, + secretsObjectName: true, + configObjectName: true, + }; + const findManyArgs = parseFindManyArgs< + FindManyArgs< + PlatformResourcesRequirementsStateSelect, + PlatformResourcesRequirementsStateFilter, + PlatformResourcesRequirementsStateOrderBy + > & { + select: PlatformResourcesRequirementsStateSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.platformResourcesRequirementsState.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 = { + resourceId: true, + slug: true, + secretsHash: true, + configHash: true, + requirementsHash: true, + secretsObjectName: true, + configObjectName: true, + }; + const findFirstArgs = parseFindFirstArgs< + FindFirstArgs< + PlatformResourcesRequirementsStateSelect, + PlatformResourcesRequirementsStateFilter, + PlatformResourcesRequirementsStateOrderBy + > & { + select: PlatformResourcesRequirementsStateSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.platformResourcesRequirementsState + .findFirst(findFirstArgs) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to find record.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} +async function handleCreate(argv: Partial>, prompter: Inquirerer) { + try { + const rawAnswers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'resourceId', + message: 'resourceId', + required: true, + }, + { + type: 'text', + name: 'slug', + message: 'slug', + required: true, + }, + { + type: 'text', + name: 'secretsHash', + message: 'secretsHash', + required: true, + }, + { + type: 'text', + name: 'configHash', + message: 'configHash', + required: true, + }, + { + type: 'text', + name: 'requirementsHash', + message: 'requirementsHash', + required: true, + }, + { + type: 'text', + name: 'secretsObjectName', + message: 'secretsObjectName', + required: true, + }, + { + type: 'text', + name: 'configObjectName', + message: 'configObjectName', + required: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined( + answers, + fieldSchema + ) as CreatePlatformResourcesRequirementsStateInput['platformResourcesRequirementsState']; + const client = getClient(); + const result = await client.platformResourcesRequirementsState + .create({ + data: { + resourceId: cleanedData.resourceId, + slug: cleanedData.slug, + secretsHash: cleanedData.secretsHash, + configHash: cleanedData.configHash, + requirementsHash: cleanedData.requirementsHash, + secretsObjectName: cleanedData.secretsObjectName, + configObjectName: cleanedData.configObjectName, + }, + select: { + resourceId: true, + slug: true, + secretsHash: true, + configHash: true, + requirementsHash: true, + secretsObjectName: true, + configObjectName: true, + }, + }) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to create record.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} diff --git a/sdk/constructive-cli/src/compute/cli/commands/platform-resources-resolved-requirement.ts b/sdk/constructive-cli/src/compute/cli/commands/platform-resources-resolved-requirement.ts new file mode 100644 index 0000000000..8e61cc91d1 --- /dev/null +++ b/sdk/constructive-cli/src/compute/cli/commands/platform-resources-resolved-requirement.ts @@ -0,0 +1,250 @@ +/** + * CLI commands for PlatformResourcesResolvedRequirement + * @generated 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 { + CreatePlatformResourcesResolvedRequirementInput, + PlatformResourcesResolvedRequirementPatch, + PlatformResourcesResolvedRequirementSelect, + PlatformResourcesResolvedRequirementFilter, + PlatformResourcesResolvedRequirementOrderBy, +} from '../../orm/input-types'; +import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; +const fieldSchema: FieldSchema = { + resourceId: 'uuid', + slug: 'string', + namespaceId: 'uuid', + requirementKind: 'string', + name: 'string', + required: 'boolean', + atomId: 'uuid', + present: 'boolean', + secretsObjectName: 'string', + configObjectName: 'string', +}; +const usage = + '\nplatform-resources-resolved-requirement \n\nCommands:\n list List platformResourcesResolvedRequirement records\n find-first Find first matching platformResourcesResolvedRequirement record\n create Create a new platformResourcesResolvedRequirement\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (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 = { + resourceId: true, + slug: true, + namespaceId: true, + requirementKind: true, + name: true, + required: true, + atomId: true, + present: true, + secretsObjectName: true, + configObjectName: true, + }; + const findManyArgs = parseFindManyArgs< + FindManyArgs< + PlatformResourcesResolvedRequirementSelect, + PlatformResourcesResolvedRequirementFilter, + PlatformResourcesResolvedRequirementOrderBy + > & { + select: PlatformResourcesResolvedRequirementSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.platformResourcesResolvedRequirement + .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 = { + resourceId: true, + slug: true, + namespaceId: true, + requirementKind: true, + name: true, + required: true, + atomId: true, + present: true, + secretsObjectName: true, + configObjectName: true, + }; + const findFirstArgs = parseFindFirstArgs< + FindFirstArgs< + PlatformResourcesResolvedRequirementSelect, + PlatformResourcesResolvedRequirementFilter, + PlatformResourcesResolvedRequirementOrderBy + > & { + select: PlatformResourcesResolvedRequirementSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.platformResourcesResolvedRequirement + .findFirst(findFirstArgs) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to find record.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} +async function handleCreate(argv: Partial>, prompter: Inquirerer) { + try { + const rawAnswers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'resourceId', + message: 'resourceId', + required: true, + }, + { + type: 'text', + name: 'slug', + message: 'slug', + required: true, + }, + { + type: 'text', + name: 'namespaceId', + message: 'namespaceId', + required: true, + }, + { + type: 'text', + name: 'requirementKind', + message: 'requirementKind', + required: true, + }, + { + type: 'text', + name: 'name', + message: 'name', + required: true, + }, + { + type: 'boolean', + name: 'required', + message: 'required', + required: true, + }, + { + type: 'text', + name: 'atomId', + message: 'atomId', + required: true, + }, + { + type: 'boolean', + name: 'present', + message: 'present', + required: true, + }, + { + type: 'text', + name: 'secretsObjectName', + message: 'secretsObjectName', + required: true, + }, + { + type: 'text', + name: 'configObjectName', + message: 'configObjectName', + required: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined( + answers, + fieldSchema + ) as CreatePlatformResourcesResolvedRequirementInput['platformResourcesResolvedRequirement']; + const client = getClient(); + const result = await client.platformResourcesResolvedRequirement + .create({ + data: { + resourceId: cleanedData.resourceId, + slug: cleanedData.slug, + namespaceId: cleanedData.namespaceId, + requirementKind: cleanedData.requirementKind, + name: cleanedData.name, + required: cleanedData.required, + atomId: cleanedData.atomId, + present: cleanedData.present, + secretsObjectName: cleanedData.secretsObjectName, + configObjectName: cleanedData.configObjectName, + }, + select: { + resourceId: true, + slug: true, + namespaceId: true, + requirementKind: true, + name: true, + required: true, + atomId: true, + present: true, + secretsObjectName: true, + configObjectName: true, + }, + }) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to create record.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} diff --git a/sdk/constructive-cli/src/compute/cli/commands/resource-definition.ts b/sdk/constructive-cli/src/compute/cli/commands/resource-definition.ts new file mode 100644 index 0000000000..84f94340b4 --- /dev/null +++ b/sdk/constructive-cli/src/compute/cli/commands/resource-definition.ts @@ -0,0 +1,571 @@ +/** + * CLI commands for ResourceDefinition + * @generated 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 { + CreateResourceDefinitionInput, + ResourceDefinitionPatch, + ResourceDefinitionSelect, + ResourceDefinitionFilter, + ResourceDefinitionOrderBy, +} from '../../orm/input-types'; +import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; +const fieldSchema: FieldSchema = { + id: 'uuid', + createdAt: 'string', + updatedAt: 'string', + createdBy: 'uuid', + updatedBy: 'uuid', + namespaceId: 'uuid', + kind: 'string', + name: 'string', + slug: 'string', + description: 'string', + defaultSpec: 'json', + requiredSecrets: 'string', + requiredConfigs: 'string', + integrations: 'string', + labels: 'json', + annotations: 'json', + stepUpMinAge: 'string', + databaseId: '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'; +export default async ( + argv: Partial>, + prompter: Inquirerer, + _options: CLIOptions +) => { + if (argv.help || argv.h) { + console.log(usage); + process.exit(0); + } + const { first: subcommand, 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, + createdAt: true, + updatedAt: true, + createdBy: true, + updatedBy: true, + namespaceId: true, + kind: true, + name: true, + slug: true, + description: true, + defaultSpec: true, + requiredSecrets: true, + requiredConfigs: true, + integrations: true, + labels: true, + annotations: true, + stepUpMinAge: true, + databaseId: true, + }; + const findManyArgs = parseFindManyArgs< + FindManyArgs< + ResourceDefinitionSelect, + ResourceDefinitionFilter, + ResourceDefinitionOrderBy + > & { + select: ResourceDefinitionSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.resourceDefinition.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, + createdAt: true, + updatedAt: true, + createdBy: true, + updatedBy: true, + namespaceId: true, + kind: true, + name: true, + slug: true, + description: true, + defaultSpec: true, + requiredSecrets: true, + requiredConfigs: true, + integrations: true, + labels: true, + annotations: true, + stepUpMinAge: true, + databaseId: true, + }; + const findFirstArgs = parseFindFirstArgs< + FindFirstArgs< + ResourceDefinitionSelect, + ResourceDefinitionFilter, + ResourceDefinitionOrderBy + > & { + select: ResourceDefinitionSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.resourceDefinition.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.resourceDefinition + .findOne({ + id: answers.id as string, + select: { + id: true, + createdAt: true, + updatedAt: true, + createdBy: true, + updatedBy: true, + namespaceId: true, + kind: true, + name: true, + slug: true, + description: true, + defaultSpec: true, + requiredSecrets: true, + requiredConfigs: true, + integrations: true, + labels: true, + annotations: true, + stepUpMinAge: true, + databaseId: 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: 'updatedBy', + message: 'updatedBy', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'namespaceId', + message: 'namespaceId', + required: true, + }, + { + type: 'text', + name: 'kind', + message: 'kind', + required: true, + }, + { + type: 'text', + name: 'name', + message: 'name', + required: true, + }, + { + type: 'text', + name: 'slug', + message: 'slug', + required: true, + }, + { + type: 'text', + name: 'description', + message: 'description', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'defaultSpec', + message: 'defaultSpec', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'requiredSecrets', + message: 'requiredSecrets', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'requiredConfigs', + message: 'requiredConfigs', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'integrations', + message: 'integrations', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'labels', + message: 'labels', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'annotations', + message: 'annotations', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'stepUpMinAge', + message: 'stepUpMinAge', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'databaseId', + message: 'databaseId', + required: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined( + answers, + fieldSchema + ) as CreateResourceDefinitionInput['resourceDefinition']; + const client = getClient(); + const result = await client.resourceDefinition + .create({ + data: { + createdBy: cleanedData.createdBy, + updatedBy: cleanedData.updatedBy, + namespaceId: cleanedData.namespaceId, + kind: cleanedData.kind, + name: cleanedData.name, + slug: cleanedData.slug, + description: cleanedData.description, + defaultSpec: cleanedData.defaultSpec, + requiredSecrets: cleanedData.requiredSecrets, + requiredConfigs: cleanedData.requiredConfigs, + integrations: cleanedData.integrations, + labels: cleanedData.labels, + annotations: cleanedData.annotations, + stepUpMinAge: cleanedData.stepUpMinAge, + databaseId: cleanedData.databaseId, + }, + select: { + id: true, + createdAt: true, + updatedAt: true, + createdBy: true, + updatedBy: true, + namespaceId: true, + kind: true, + name: true, + slug: true, + description: true, + defaultSpec: true, + requiredSecrets: true, + requiredConfigs: true, + integrations: true, + labels: true, + annotations: true, + stepUpMinAge: true, + databaseId: true, + }, + }) + .execute(); + console.log(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: 'updatedBy', + message: 'updatedBy', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'namespaceId', + message: 'namespaceId', + required: false, + }, + { + type: 'text', + name: 'kind', + message: 'kind', + required: false, + }, + { + type: 'text', + name: 'name', + message: 'name', + required: false, + }, + { + type: 'text', + name: 'slug', + message: 'slug', + required: false, + }, + { + type: 'text', + name: 'description', + message: 'description', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'defaultSpec', + message: 'defaultSpec', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'requiredSecrets', + message: 'requiredSecrets', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'requiredConfigs', + message: 'requiredConfigs', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'integrations', + message: 'integrations', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'labels', + message: 'labels', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'annotations', + message: 'annotations', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'stepUpMinAge', + message: 'stepUpMinAge', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'databaseId', + message: 'databaseId', + required: false, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined(answers, fieldSchema) as ResourceDefinitionPatch; + const client = getClient(); + const result = await client.resourceDefinition + .update({ + where: { + id: answers.id as string, + }, + data: { + createdBy: cleanedData.createdBy, + updatedBy: cleanedData.updatedBy, + namespaceId: cleanedData.namespaceId, + kind: cleanedData.kind, + name: cleanedData.name, + slug: cleanedData.slug, + description: cleanedData.description, + defaultSpec: cleanedData.defaultSpec, + requiredSecrets: cleanedData.requiredSecrets, + requiredConfigs: cleanedData.requiredConfigs, + integrations: cleanedData.integrations, + labels: cleanedData.labels, + annotations: cleanedData.annotations, + stepUpMinAge: cleanedData.stepUpMinAge, + databaseId: cleanedData.databaseId, + }, + select: { + id: true, + createdAt: true, + updatedAt: true, + createdBy: true, + updatedBy: true, + namespaceId: true, + kind: true, + name: true, + slug: true, + description: true, + defaultSpec: true, + requiredSecrets: true, + requiredConfigs: true, + integrations: true, + labels: true, + annotations: true, + stepUpMinAge: true, + databaseId: 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.resourceDefinition + .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/config-secrets-org-module.ts b/sdk/constructive-cli/src/compute/cli/commands/resource-status-check.ts similarity index 60% rename from sdk/constructive-cli/src/modules/cli/commands/config-secrets-org-module.ts rename to sdk/constructive-cli/src/compute/cli/commands/resource-status-check.ts index 7d2b87da72..7e54b58d89 100644 --- a/sdk/constructive-cli/src/modules/cli/commands/config-secrets-org-module.ts +++ b/sdk/constructive-cli/src/compute/cli/commands/resource-status-check.ts @@ -1,5 +1,5 @@ /** - * CLI commands for ConfigSecretsOrgModule + * CLI commands for ResourceStatusCheck * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -8,24 +8,25 @@ import { getClient } from '../executor'; import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; import type { FieldSchema } from '../utils'; import type { - CreateConfigSecretsOrgModuleInput, - ConfigSecretsOrgModulePatch, - ConfigSecretsOrgModuleSelect, - ConfigSecretsOrgModuleFilter, - ConfigSecretsOrgModuleOrderBy, + CreateResourceStatusCheckInput, + ResourceStatusCheckPatch, + ResourceStatusCheckSelect, + ResourceStatusCheckFilter, + ResourceStatusCheckOrderBy, } from '../../orm/input-types'; import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; const fieldSchema: FieldSchema = { id: 'uuid', + resourceId: 'uuid', databaseId: 'uuid', - schemaId: 'uuid', - tableId: 'uuid', - tableName: 'string', - apiName: 'string', - privateApiName: 'string', + requestedBy: 'uuid', + requestedAt: 'string', + completedAt: 'string', + status: 'string', + result: 'json', }; const usage = - '\nconfig-secrets-org-module \n\nCommands:\n list List configSecretsOrgModule records\n find-first Find first matching configSecretsOrgModule record\n get Get a configSecretsOrgModule by ID\n create Create a new configSecretsOrgModule\n update Update an existing configSecretsOrgModule\n delete Delete a configSecretsOrgModule\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\n --help, -h Show this help message\n'; + '\nresource-status-check \n\nCommands:\n list List resourceStatusCheck records\n find-first Find first matching resourceStatusCheck record\n get Get a resourceStatusCheck by ID\n create Create a new resourceStatusCheck\n update Update an existing resourceStatusCheck\n delete Delete a resourceStatusCheck\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\n --help, -h Show this help message\n'; export default async ( argv: Partial>, prompter: Inquirerer, @@ -76,24 +77,25 @@ async function handleList(argv: Partial>, _prompter: Inq try { const defaultSelect = { id: true, + resourceId: true, databaseId: true, - schemaId: true, - tableId: true, - tableName: true, - apiName: true, - privateApiName: true, + requestedBy: true, + requestedAt: true, + completedAt: true, + status: true, + result: true, }; const findManyArgs = parseFindManyArgs< FindManyArgs< - ConfigSecretsOrgModuleSelect, - ConfigSecretsOrgModuleFilter, - ConfigSecretsOrgModuleOrderBy + ResourceStatusCheckSelect, + ResourceStatusCheckFilter, + ResourceStatusCheckOrderBy > & { - select: ConfigSecretsOrgModuleSelect; + select: ResourceStatusCheckSelect; } >(argv, defaultSelect); const client = getClient(); - const result = await client.configSecretsOrgModule.findMany(findManyArgs).execute(); + const result = await client.resourceStatusCheck.findMany(findManyArgs).execute(); console.log(JSON.stringify(result, null, 2)); } catch (error) { console.error('Failed to list records.'); @@ -107,24 +109,25 @@ async function handleFindFirst(argv: Partial>, _prompter try { const defaultSelect = { id: true, + resourceId: true, databaseId: true, - schemaId: true, - tableId: true, - tableName: true, - apiName: true, - privateApiName: true, + requestedBy: true, + requestedAt: true, + completedAt: true, + status: true, + result: true, }; const findFirstArgs = parseFindFirstArgs< FindFirstArgs< - ConfigSecretsOrgModuleSelect, - ConfigSecretsOrgModuleFilter, - ConfigSecretsOrgModuleOrderBy + ResourceStatusCheckSelect, + ResourceStatusCheckFilter, + ResourceStatusCheckOrderBy > & { - select: ConfigSecretsOrgModuleSelect; + select: ResourceStatusCheckSelect; } >(argv, defaultSelect); const client = getClient(); - const result = await client.configSecretsOrgModule.findFirst(findFirstArgs).execute(); + const result = await client.resourceStatusCheck.findFirst(findFirstArgs).execute(); console.log(JSON.stringify(result, null, 2)); } catch (error) { console.error('Failed to find record.'); @@ -145,17 +148,18 @@ async function handleGet(argv: Partial>, prompter: Inqui }, ]); const client = getClient(); - const result = await client.configSecretsOrgModule + const result = await client.resourceStatusCheck .findOne({ id: answers.id as string, select: { id: true, + resourceId: true, databaseId: true, - schemaId: true, - tableId: true, - tableName: true, - apiName: true, - privateApiName: true, + requestedBy: true, + requestedAt: true, + completedAt: true, + status: true, + result: true, }, }) .execute(); @@ -171,6 +175,12 @@ async function handleGet(argv: Partial>, prompter: Inqui async function handleCreate(argv: Partial>, prompter: Inquirerer) { try { const rawAnswers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'resourceId', + message: 'resourceId', + required: true, + }, { type: 'text', name: 'databaseId', @@ -179,36 +189,36 @@ async function handleCreate(argv: Partial>, prompter: In }, { type: 'text', - name: 'schemaId', - message: 'schemaId', + name: 'requestedBy', + message: 'requestedBy', required: false, skipPrompt: true, }, { type: 'text', - name: 'tableId', - message: 'tableId', + name: 'requestedAt', + message: 'requestedAt', required: false, skipPrompt: true, }, { type: 'text', - name: 'tableName', - message: 'tableName', + name: 'completedAt', + message: 'completedAt', required: false, skipPrompt: true, }, { type: 'text', - name: 'apiName', - message: 'apiName', + name: 'status', + message: 'status', required: false, skipPrompt: true, }, { - type: 'text', - name: 'privateApiName', - message: 'privateApiName', + type: 'json', + name: 'result', + message: 'result', required: false, skipPrompt: true, }, @@ -217,26 +227,28 @@ async function handleCreate(argv: Partial>, prompter: In const cleanedData = stripUndefined( answers, fieldSchema - ) as CreateConfigSecretsOrgModuleInput['configSecretsOrgModule']; + ) as CreateResourceStatusCheckInput['resourceStatusCheck']; const client = getClient(); - const result = await client.configSecretsOrgModule + const result = await client.resourceStatusCheck .create({ data: { + resourceId: cleanedData.resourceId, databaseId: cleanedData.databaseId, - schemaId: cleanedData.schemaId, - tableId: cleanedData.tableId, - tableName: cleanedData.tableName, - apiName: cleanedData.apiName, - privateApiName: cleanedData.privateApiName, + requestedBy: cleanedData.requestedBy, + requestedAt: cleanedData.requestedAt, + completedAt: cleanedData.completedAt, + status: cleanedData.status, + result: cleanedData.result, }, select: { id: true, + resourceId: true, databaseId: true, - schemaId: true, - tableId: true, - tableName: true, - apiName: true, - privateApiName: true, + requestedBy: true, + requestedAt: true, + completedAt: true, + status: true, + result: true, }, }) .execute(); @@ -258,6 +270,12 @@ async function handleUpdate(argv: Partial>, prompter: In message: 'id', required: true, }, + { + type: 'text', + name: 'resourceId', + message: 'resourceId', + required: false, + }, { type: 'text', name: 'databaseId', @@ -266,64 +284,66 @@ async function handleUpdate(argv: Partial>, prompter: In }, { type: 'text', - name: 'schemaId', - message: 'schemaId', + name: 'requestedBy', + message: 'requestedBy', required: false, skipPrompt: true, }, { type: 'text', - name: 'tableId', - message: 'tableId', + name: 'requestedAt', + message: 'requestedAt', required: false, skipPrompt: true, }, { type: 'text', - name: 'tableName', - message: 'tableName', + name: 'completedAt', + message: 'completedAt', required: false, skipPrompt: true, }, { type: 'text', - name: 'apiName', - message: 'apiName', + name: 'status', + message: 'status', required: false, skipPrompt: true, }, { - type: 'text', - name: 'privateApiName', - message: 'privateApiName', + type: 'json', + name: 'result', + message: 'result', required: false, skipPrompt: true, }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined(answers, fieldSchema) as ConfigSecretsOrgModulePatch; + const cleanedData = stripUndefined(answers, fieldSchema) as ResourceStatusCheckPatch; const client = getClient(); - const result = await client.configSecretsOrgModule + const result = await client.resourceStatusCheck .update({ where: { id: answers.id as string, }, data: { + resourceId: cleanedData.resourceId, databaseId: cleanedData.databaseId, - schemaId: cleanedData.schemaId, - tableId: cleanedData.tableId, - tableName: cleanedData.tableName, - apiName: cleanedData.apiName, - privateApiName: cleanedData.privateApiName, + requestedBy: cleanedData.requestedBy, + requestedAt: cleanedData.requestedAt, + completedAt: cleanedData.completedAt, + status: cleanedData.status, + result: cleanedData.result, }, select: { id: true, + resourceId: true, databaseId: true, - schemaId: true, - tableId: true, - tableName: true, - apiName: true, - privateApiName: true, + requestedBy: true, + requestedAt: true, + completedAt: true, + status: true, + result: true, }, }) .execute(); @@ -348,7 +368,7 @@ async function handleDelete(argv: Partial>, prompter: In ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const client = getClient(); - const result = await client.configSecretsOrgModule + const result = await client.resourceStatusCheck .delete({ where: { id: answers.id as string, diff --git a/sdk/constructive-cli/src/compute/cli/commands/resource.ts b/sdk/constructive-cli/src/compute/cli/commands/resource.ts index 5edb34fc5d..b12bca5eda 100644 --- a/sdk/constructive-cli/src/compute/cli/commands/resource.ts +++ b/sdk/constructive-cli/src/compute/cli/commands/resource.ts @@ -33,6 +33,10 @@ const fieldSchema: FieldSchema = { labels: 'json', annotations: 'json', databaseId: 'uuid', + requiredSecrets: 'string', + requiredConfigs: 'string', + integrations: 'string', + resourceDefinitionId: 'uuid', }; const usage = '\nresource \n\nCommands:\n list List resource records\n find-first Find first matching resource record\n get Get a resource by ID\n create Create a new resource\n update Update an existing resource\n delete Delete a resource\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\n --help, -h Show this help message\n'; @@ -102,6 +106,10 @@ async function handleList(argv: Partial>, _prompter: Inq labels: true, annotations: true, databaseId: true, + requiredSecrets: true, + requiredConfigs: true, + integrations: true, + resourceDefinitionId: true, }; const findManyArgs = parseFindManyArgs< FindManyArgs & { @@ -139,6 +147,10 @@ async function handleFindFirst(argv: Partial>, _prompter labels: true, annotations: true, databaseId: true, + requiredSecrets: true, + requiredConfigs: true, + integrations: true, + resourceDefinitionId: true, }; const findFirstArgs = parseFindFirstArgs< FindFirstArgs & { @@ -188,6 +200,10 @@ async function handleGet(argv: Partial>, prompter: Inqui labels: true, annotations: true, databaseId: true, + requiredSecrets: true, + requiredConfigs: true, + integrations: true, + resourceDefinitionId: true, }, }) .execute(); @@ -296,6 +312,34 @@ async function handleCreate(argv: Partial>, prompter: In message: 'databaseId', required: true, }, + { + type: 'text', + name: 'requiredSecrets', + message: 'requiredSecrets', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'requiredConfigs', + message: 'requiredConfigs', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'integrations', + message: 'integrations', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'resourceDefinitionId', + message: 'resourceDefinitionId', + required: false, + skipPrompt: true, + }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const cleanedData = stripUndefined(answers, fieldSchema) as CreateResourceInput['resource']; @@ -317,6 +361,10 @@ async function handleCreate(argv: Partial>, prompter: In labels: cleanedData.labels, annotations: cleanedData.annotations, databaseId: cleanedData.databaseId, + requiredSecrets: cleanedData.requiredSecrets, + requiredConfigs: cleanedData.requiredConfigs, + integrations: cleanedData.integrations, + resourceDefinitionId: cleanedData.resourceDefinitionId, }, select: { id: true, @@ -336,6 +384,10 @@ async function handleCreate(argv: Partial>, prompter: In labels: true, annotations: true, databaseId: true, + requiredSecrets: true, + requiredConfigs: true, + integrations: true, + resourceDefinitionId: true, }, }) .execute(); @@ -450,6 +502,34 @@ async function handleUpdate(argv: Partial>, prompter: In message: 'databaseId', required: false, }, + { + type: 'text', + name: 'requiredSecrets', + message: 'requiredSecrets', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'requiredConfigs', + message: 'requiredConfigs', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'integrations', + message: 'integrations', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'resourceDefinitionId', + message: 'resourceDefinitionId', + required: false, + skipPrompt: true, + }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const cleanedData = stripUndefined(answers, fieldSchema) as ResourcePatch; @@ -474,6 +554,10 @@ async function handleUpdate(argv: Partial>, prompter: In labels: cleanedData.labels, annotations: cleanedData.annotations, databaseId: cleanedData.databaseId, + requiredSecrets: cleanedData.requiredSecrets, + requiredConfigs: cleanedData.requiredConfigs, + integrations: cleanedData.integrations, + resourceDefinitionId: cleanedData.resourceDefinitionId, }, select: { id: true, @@ -493,6 +577,10 @@ async function handleUpdate(argv: Partial>, prompter: In labels: true, annotations: true, databaseId: true, + requiredSecrets: true, + requiredConfigs: true, + integrations: true, + resourceDefinitionId: true, }, }) .execute(); diff --git a/sdk/constructive-cli/src/compute/cli/commands/resources-requirements-state.ts b/sdk/constructive-cli/src/compute/cli/commands/resources-requirements-state.ts new file mode 100644 index 0000000000..79815bc91e --- /dev/null +++ b/sdk/constructive-cli/src/compute/cli/commands/resources-requirements-state.ts @@ -0,0 +1,213 @@ +/** + * CLI commands for ResourcesRequirementsState + * @generated 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 { + CreateResourcesRequirementsStateInput, + ResourcesRequirementsStatePatch, + ResourcesRequirementsStateSelect, + ResourcesRequirementsStateFilter, + ResourcesRequirementsStateOrderBy, +} from '../../orm/input-types'; +import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; +const fieldSchema: FieldSchema = { + resourceId: 'uuid', + slug: 'string', + secretsHash: 'string', + configHash: 'string', + requirementsHash: 'string', + secretsObjectName: 'string', + configObjectName: 'string', +}; +const usage = + '\nresources-requirements-state \n\nCommands:\n list List resourcesRequirementsState records\n find-first Find first matching resourcesRequirementsState record\n create Create a new resourcesRequirementsState\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (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 = { + resourceId: true, + slug: true, + secretsHash: true, + configHash: true, + requirementsHash: true, + secretsObjectName: true, + configObjectName: true, + }; + const findManyArgs = parseFindManyArgs< + FindManyArgs< + ResourcesRequirementsStateSelect, + ResourcesRequirementsStateFilter, + ResourcesRequirementsStateOrderBy + > & { + select: ResourcesRequirementsStateSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.resourcesRequirementsState.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 = { + resourceId: true, + slug: true, + secretsHash: true, + configHash: true, + requirementsHash: true, + secretsObjectName: true, + configObjectName: true, + }; + const findFirstArgs = parseFindFirstArgs< + FindFirstArgs< + ResourcesRequirementsStateSelect, + ResourcesRequirementsStateFilter, + ResourcesRequirementsStateOrderBy + > & { + select: ResourcesRequirementsStateSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.resourcesRequirementsState.findFirst(findFirstArgs).execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to find record.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} +async function handleCreate(argv: Partial>, prompter: Inquirerer) { + try { + const rawAnswers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'resourceId', + message: 'resourceId', + required: true, + }, + { + type: 'text', + name: 'slug', + message: 'slug', + required: true, + }, + { + type: 'text', + name: 'secretsHash', + message: 'secretsHash', + required: true, + }, + { + type: 'text', + name: 'configHash', + message: 'configHash', + required: true, + }, + { + type: 'text', + name: 'requirementsHash', + message: 'requirementsHash', + required: true, + }, + { + type: 'text', + name: 'secretsObjectName', + message: 'secretsObjectName', + required: true, + }, + { + type: 'text', + name: 'configObjectName', + message: 'configObjectName', + required: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined( + answers, + fieldSchema + ) as CreateResourcesRequirementsStateInput['resourcesRequirementsState']; + const client = getClient(); + const result = await client.resourcesRequirementsState + .create({ + data: { + resourceId: cleanedData.resourceId, + slug: cleanedData.slug, + secretsHash: cleanedData.secretsHash, + configHash: cleanedData.configHash, + requirementsHash: cleanedData.requirementsHash, + secretsObjectName: cleanedData.secretsObjectName, + configObjectName: cleanedData.configObjectName, + }, + select: { + resourceId: true, + slug: true, + secretsHash: true, + configHash: true, + requirementsHash: true, + secretsObjectName: true, + configObjectName: true, + }, + }) + .execute(); + console.log(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/resources-resolved-requirement.ts b/sdk/constructive-cli/src/compute/cli/commands/resources-resolved-requirement.ts new file mode 100644 index 0000000000..7adb536fd4 --- /dev/null +++ b/sdk/constructive-cli/src/compute/cli/commands/resources-resolved-requirement.ts @@ -0,0 +1,246 @@ +/** + * CLI commands for ResourcesResolvedRequirement + * @generated 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 { + CreateResourcesResolvedRequirementInput, + ResourcesResolvedRequirementPatch, + ResourcesResolvedRequirementSelect, + ResourcesResolvedRequirementFilter, + ResourcesResolvedRequirementOrderBy, +} from '../../orm/input-types'; +import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; +const fieldSchema: FieldSchema = { + resourceId: 'uuid', + slug: 'string', + namespaceId: 'uuid', + requirementKind: 'string', + name: 'string', + required: 'boolean', + atomId: 'uuid', + present: 'boolean', + secretsObjectName: 'string', + configObjectName: 'string', +}; +const usage = + '\nresources-resolved-requirement \n\nCommands:\n list List resourcesResolvedRequirement records\n find-first Find first matching resourcesResolvedRequirement record\n create Create a new resourcesResolvedRequirement\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (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 = { + resourceId: true, + slug: true, + namespaceId: true, + requirementKind: true, + name: true, + required: true, + atomId: true, + present: true, + secretsObjectName: true, + configObjectName: true, + }; + const findManyArgs = parseFindManyArgs< + FindManyArgs< + ResourcesResolvedRequirementSelect, + ResourcesResolvedRequirementFilter, + ResourcesResolvedRequirementOrderBy + > & { + select: ResourcesResolvedRequirementSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.resourcesResolvedRequirement.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 = { + resourceId: true, + slug: true, + namespaceId: true, + requirementKind: true, + name: true, + required: true, + atomId: true, + present: true, + secretsObjectName: true, + configObjectName: true, + }; + const findFirstArgs = parseFindFirstArgs< + FindFirstArgs< + ResourcesResolvedRequirementSelect, + ResourcesResolvedRequirementFilter, + ResourcesResolvedRequirementOrderBy + > & { + select: ResourcesResolvedRequirementSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.resourcesResolvedRequirement.findFirst(findFirstArgs).execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to find record.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} +async function handleCreate(argv: Partial>, prompter: Inquirerer) { + try { + const rawAnswers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'resourceId', + message: 'resourceId', + required: true, + }, + { + type: 'text', + name: 'slug', + message: 'slug', + required: true, + }, + { + type: 'text', + name: 'namespaceId', + message: 'namespaceId', + required: true, + }, + { + type: 'text', + name: 'requirementKind', + message: 'requirementKind', + required: true, + }, + { + type: 'text', + name: 'name', + message: 'name', + required: true, + }, + { + type: 'boolean', + name: 'required', + message: 'required', + required: true, + }, + { + type: 'text', + name: 'atomId', + message: 'atomId', + required: true, + }, + { + type: 'boolean', + name: 'present', + message: 'present', + required: true, + }, + { + type: 'text', + name: 'secretsObjectName', + message: 'secretsObjectName', + required: true, + }, + { + type: 'text', + name: 'configObjectName', + message: 'configObjectName', + required: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined( + answers, + fieldSchema + ) as CreateResourcesResolvedRequirementInput['resourcesResolvedRequirement']; + const client = getClient(); + const result = await client.resourcesResolvedRequirement + .create({ + data: { + resourceId: cleanedData.resourceId, + slug: cleanedData.slug, + namespaceId: cleanedData.namespaceId, + requirementKind: cleanedData.requirementKind, + name: cleanedData.name, + required: cleanedData.required, + atomId: cleanedData.atomId, + present: cleanedData.present, + secretsObjectName: cleanedData.secretsObjectName, + configObjectName: cleanedData.configObjectName, + }, + select: { + resourceId: true, + slug: true, + namespaceId: true, + requirementKind: true, + name: true, + required: true, + atomId: true, + present: true, + secretsObjectName: true, + configObjectName: true, + }, + }) + .execute(); + console.log(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/orm/README.md b/sdk/constructive-cli/src/compute/orm/README.md index 2ea41b7b40..3aec082514 100644 --- a/sdk/constructive-cli/src/compute/orm/README.md +++ b/sdk/constructive-cli/src/compute/orm/README.md @@ -21,92 +21,730 @@ const db = createClient({ | Model | Operations | |-------|------------| +| `infraGetAllRecord` | findMany, findOne, create, update, delete | | `getAllRecord` | findMany, findOne, create, update, delete | +| `infraRef` | findMany, findOne, create, update, delete | +| `infraStore` | findMany, findOne, create, update, delete | | `functionApiBinding` | findMany, findOne, create, update, delete | -| `functionDeployment` | findMany, findOne, create, update, delete | -| `resource` | findMany, findOne, create, update, delete | | `functionGraphRef` | findMany, findOne, create, update, delete | | `functionGraphStore` | findMany, findOne, create, update, delete | +| `platformFunctionApiBinding` | findMany, findOne, create, update, delete | +| `platformResourcesRequirementsState` | findMany, findOne, create, update, delete | +| `resourcesRequirementsState` | findMany, findOne, create, update, delete | +| `platformResourceStatusCheck` | findMany, findOne, create, update, delete | +| `platformFunctionDeployment` | findMany, findOne, create, update, delete | +| `platformResource` | findMany, findOne, create, update, delete | +| `platformResourceDefinition` | findMany, findOne, create, update, delete | +| `infraObject` | findMany, findOne, create, update, delete | | `functionGraphObject` | findMany, findOne, create, update, delete | +| `platformFunctionDeploymentEvent` | findMany, findOne, create, update, delete | +| `platformResourceEvent` | findMany, findOne, create, update, delete | +| `resourceStatusCheck` | findMany, findOne, create, update, delete | +| `functionDeployment` | findMany, findOne, create, update, delete | +| `resource` | findMany, findOne, create, update, delete | +| `resourceDefinition` | findMany, findOne, create, update, delete | | `functionDeploymentEvent` | findMany, findOne, create, update, delete | -| `orgFunctionExecutionLog` | findMany, findOne, create, update, delete | +| `platformFunctionExecutionLog` | findMany, findOne, create, update, delete | | `resourceEvent` | findMany, findOne, create, update, delete | | `functionGraphExecutionOutput` | findMany, findOne, create, update, delete | +| `infraCommit` | findMany, findOne, create, update, delete | | `functionGraphCommit` | findMany, findOne, create, update, delete | -| `secretDefinition` | findMany, findOne, create, update, delete | | `functionExecutionLog` | findMany, findOne, create, update, delete | +| `platformResourcesResolvedRequirement` | findMany, findOne, create, update, delete | +| `resourcesResolvedRequirement` | findMany, findOne, create, update, delete | +| `dbPreset` | findMany, findOne, create, update, delete | +| `platformNamespace` | findMany, findOne, create, update, delete | | `functionGraph` | findMany, findOne, create, update, delete | | `functionGraphExecutionNodeState` | findMany, findOne, create, update, delete | -| `platformNamespace` | findMany, findOne, create, update, delete | -| `orgFunctionInvocation` | findMany, findOne, create, update, delete | +| `namespace` | findMany, findOne, create, update, delete | +| `platformFunctionInvocation` | findMany, findOne, create, update, delete | | `functionInvocation` | findMany, findOne, create, update, delete | | `platformNamespaceEvent` | findMany, findOne, create, update, delete | +| `integrationProvider` | findMany, findOne, create, update, delete | +| `namespaceEvent` | findMany, findOne, create, update, delete | | `functionGraphExecution` | findMany, findOne, create, update, delete | +| `platformFunctionDefinition` | findMany, findOne, create, update, delete | | `functionDefinition` | findMany, findOne, create, update, delete | -## Table Operations +## Table Operations + +### `db.infraGetAllRecord` + +CRUD operations for InfraGetAllRecord records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `path` | String | Yes | +| `data` | JSON | Yes | + +**Operations:** + +```typescript +// List all infraGetAllRecord records +const items = await db.infraGetAllRecord.findMany({ select: { path: true, data: true } }).execute(); + +// Get one by id +const item = await db.infraGetAllRecord.findOne({ id: '', select: { path: true, data: true } }).execute(); + +// Create +const created = await db.infraGetAllRecord.create({ data: { path: '', data: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.infraGetAllRecord.update({ where: { id: '' }, data: { path: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.infraGetAllRecord.delete({ where: { id: '' } }).execute(); +``` + +### `db.getAllRecord` + +CRUD operations for GetAllRecord records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `path` | String | Yes | +| `data` | JSON | Yes | + +**Operations:** + +```typescript +// List all getAllRecord records +const items = await db.getAllRecord.findMany({ select: { path: true, data: true } }).execute(); + +// Get one by id +const item = await db.getAllRecord.findOne({ id: '', select: { path: true, data: true } }).execute(); + +// Create +const created = await db.getAllRecord.create({ data: { path: '', data: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.getAllRecord.update({ where: { id: '' }, data: { path: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.getAllRecord.delete({ where: { id: '' } }).execute(); +``` + +### `db.infraRef` + +CRUD operations for InfraRef records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `name` | String | Yes | +| `scopeId` | UUID | Yes | +| `storeId` | UUID | Yes | +| `commitId` | UUID | Yes | + +**Operations:** + +```typescript +// List all infraRef records +const items = await db.infraRef.findMany({ select: { id: true, name: true, scopeId: true, storeId: true, commitId: true } }).execute(); + +// Get one by id +const item = await db.infraRef.findOne({ id: '', select: { id: true, name: true, scopeId: true, storeId: true, commitId: true } }).execute(); + +// Create +const created = await db.infraRef.create({ data: { name: '', scopeId: '', storeId: '', commitId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.infraRef.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.infraRef.delete({ where: { id: '' } }).execute(); +``` + +### `db.infraStore` + +CRUD operations for InfraStore records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `name` | String | Yes | +| `scopeId` | UUID | Yes | +| `hash` | UUID | Yes | +| `createdAt` | Datetime | No | + +**Operations:** + +```typescript +// List all infraStore records +const items = await db.infraStore.findMany({ select: { id: true, name: true, scopeId: true, hash: true, createdAt: true } }).execute(); + +// Get one by id +const item = await db.infraStore.findOne({ id: '', select: { id: true, name: true, scopeId: true, hash: true, createdAt: true } }).execute(); + +// Create +const created = await db.infraStore.create({ data: { name: '', scopeId: '', hash: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.infraStore.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.infraStore.delete({ where: { id: '' } }).execute(); +``` + +### `db.functionApiBinding` + +CRUD operations for FunctionApiBinding records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `functionDefinitionId` | UUID | Yes | +| `apiId` | UUID | Yes | +| `alias` | String | Yes | +| `config` | JSON | Yes | + +**Operations:** + +```typescript +// List all functionApiBinding records +const items = await db.functionApiBinding.findMany({ select: { id: true, functionDefinitionId: true, apiId: true, alias: true, config: true } }).execute(); + +// Get one by id +const item = await db.functionApiBinding.findOne({ id: '', select: { id: true, functionDefinitionId: true, apiId: true, alias: true, config: true } }).execute(); + +// Create +const created = await db.functionApiBinding.create({ data: { functionDefinitionId: '', apiId: '', alias: '', config: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.functionApiBinding.update({ where: { id: '' }, data: { functionDefinitionId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.functionApiBinding.delete({ where: { id: '' } }).execute(); +``` + +### `db.functionGraphRef` + +CRUD operations for FunctionGraphRef records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `name` | String | Yes | +| `scopeId` | UUID | Yes | +| `storeId` | UUID | Yes | +| `commitId` | UUID | Yes | + +**Operations:** + +```typescript +// List all functionGraphRef records +const items = await db.functionGraphRef.findMany({ select: { id: true, name: true, scopeId: true, storeId: true, commitId: true } }).execute(); + +// Get one by id +const item = await db.functionGraphRef.findOne({ id: '', select: { id: true, name: true, scopeId: true, storeId: true, commitId: true } }).execute(); + +// Create +const created = await db.functionGraphRef.create({ data: { name: '', scopeId: '', storeId: '', commitId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.functionGraphRef.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.functionGraphRef.delete({ where: { id: '' } }).execute(); +``` + +### `db.functionGraphStore` + +CRUD operations for FunctionGraphStore records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `name` | String | Yes | +| `scopeId` | UUID | Yes | +| `hash` | UUID | Yes | +| `createdAt` | Datetime | No | + +**Operations:** + +```typescript +// List all functionGraphStore records +const items = await db.functionGraphStore.findMany({ select: { id: true, name: true, scopeId: true, hash: true, createdAt: true } }).execute(); + +// Get one by id +const item = await db.functionGraphStore.findOne({ id: '', select: { id: true, name: true, scopeId: true, hash: true, createdAt: true } }).execute(); + +// Create +const created = await db.functionGraphStore.create({ data: { name: '', scopeId: '', hash: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.functionGraphStore.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.functionGraphStore.delete({ where: { id: '' } }).execute(); +``` + +### `db.platformFunctionApiBinding` + +CRUD operations for PlatformFunctionApiBinding records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `functionDefinitionId` | UUID | Yes | +| `apiId` | UUID | Yes | +| `alias` | String | Yes | +| `config` | JSON | Yes | + +**Operations:** + +```typescript +// List all platformFunctionApiBinding records +const items = await db.platformFunctionApiBinding.findMany({ select: { id: true, functionDefinitionId: true, apiId: true, alias: true, config: true } }).execute(); + +// Get one by id +const item = await db.platformFunctionApiBinding.findOne({ id: '', select: { id: true, functionDefinitionId: true, apiId: true, alias: true, config: true } }).execute(); + +// Create +const created = await db.platformFunctionApiBinding.create({ data: { functionDefinitionId: '', apiId: '', alias: '', config: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformFunctionApiBinding.update({ where: { id: '' }, data: { functionDefinitionId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformFunctionApiBinding.delete({ where: { id: '' } }).execute(); +``` + +### `db.platformResourcesRequirementsState` + +CRUD operations for PlatformResourcesRequirementsState records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `resourceId` | UUID | Yes | +| `slug` | String | Yes | +| `secretsHash` | String | Yes | +| `configHash` | String | Yes | +| `requirementsHash` | String | Yes | +| `secretsObjectName` | String | Yes | +| `configObjectName` | String | Yes | + +**Operations:** + +```typescript +// List all platformResourcesRequirementsState records +const items = await db.platformResourcesRequirementsState.findMany({ select: { resourceId: true, slug: true, secretsHash: true, configHash: true, requirementsHash: true, secretsObjectName: true, configObjectName: true } }).execute(); + +// Get one by id +const item = await db.platformResourcesRequirementsState.findOne({ id: '', select: { resourceId: true, slug: true, secretsHash: true, configHash: true, requirementsHash: true, secretsObjectName: true, configObjectName: true } }).execute(); + +// Create +const created = await db.platformResourcesRequirementsState.create({ data: { resourceId: '', slug: '', secretsHash: '', configHash: '', requirementsHash: '', secretsObjectName: '', configObjectName: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformResourcesRequirementsState.update({ where: { id: '' }, data: { resourceId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformResourcesRequirementsState.delete({ where: { id: '' } }).execute(); +``` + +### `db.resourcesRequirementsState` + +CRUD operations for ResourcesRequirementsState records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `resourceId` | UUID | Yes | +| `slug` | String | Yes | +| `secretsHash` | String | Yes | +| `configHash` | String | Yes | +| `requirementsHash` | String | Yes | +| `secretsObjectName` | String | Yes | +| `configObjectName` | String | Yes | + +**Operations:** + +```typescript +// List all resourcesRequirementsState records +const items = await db.resourcesRequirementsState.findMany({ select: { resourceId: true, slug: true, secretsHash: true, configHash: true, requirementsHash: true, secretsObjectName: true, configObjectName: true } }).execute(); + +// Get one by id +const item = await db.resourcesRequirementsState.findOne({ id: '', select: { resourceId: true, slug: true, secretsHash: true, configHash: true, requirementsHash: true, secretsObjectName: true, configObjectName: true } }).execute(); + +// Create +const created = await db.resourcesRequirementsState.create({ data: { resourceId: '', slug: '', secretsHash: '', configHash: '', requirementsHash: '', secretsObjectName: '', configObjectName: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.resourcesRequirementsState.update({ where: { id: '' }, data: { resourceId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.resourcesRequirementsState.delete({ where: { id: '' } }).execute(); +``` + +### `db.platformResourceStatusCheck` + +CRUD operations for PlatformResourceStatusCheck records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `resourceId` | UUID | Yes | +| `requestedBy` | UUID | Yes | +| `requestedAt` | Datetime | Yes | +| `completedAt` | Datetime | Yes | +| `status` | String | Yes | +| `result` | JSON | Yes | + +**Operations:** + +```typescript +// List all platformResourceStatusCheck records +const items = await db.platformResourceStatusCheck.findMany({ select: { id: true, resourceId: true, requestedBy: true, requestedAt: true, completedAt: true, status: true, result: true } }).execute(); + +// Get one by id +const item = await db.platformResourceStatusCheck.findOne({ id: '', select: { id: true, resourceId: true, requestedBy: true, requestedAt: true, completedAt: true, status: true, result: true } }).execute(); + +// Create +const created = await db.platformResourceStatusCheck.create({ data: { resourceId: '', requestedBy: '', requestedAt: '', completedAt: '', status: '', result: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformResourceStatusCheck.update({ where: { id: '' }, data: { resourceId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformResourceStatusCheck.delete({ where: { id: '' } }).execute(); +``` + +### `db.platformFunctionDeployment` + +CRUD operations for PlatformFunctionDeployment records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | +| `namespaceId` | UUID | Yes | +| `status` | String | Yes | +| `serviceUrl` | String | Yes | +| `serviceName` | String | Yes | +| `revision` | Int | Yes | +| `image` | String | Yes | +| `imageVersion` | String | Yes | +| `handlerName` | String | Yes | +| `concurrency` | Int | Yes | +| `scaleMin` | Int | Yes | +| `scaleMax` | Int | Yes | +| `timeoutSeconds` | Int | Yes | +| `resources` | JSON | Yes | +| `lastError` | String | Yes | +| `lastErrorAt` | Datetime | Yes | +| `errorCount` | Int | Yes | +| `labels` | JSON | Yes | +| `annotations` | JSON | Yes | + +**Operations:** + +```typescript +// List all platformFunctionDeployment records +const items = await db.platformFunctionDeployment.findMany({ select: { id: true, createdAt: true, updatedAt: true, namespaceId: true, status: true, serviceUrl: true, serviceName: true, revision: true, image: true, imageVersion: true, handlerName: true, concurrency: true, scaleMin: true, scaleMax: true, timeoutSeconds: true, resources: true, lastError: true, lastErrorAt: true, errorCount: true, labels: true, annotations: true } }).execute(); + +// Get one by id +const item = await db.platformFunctionDeployment.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, namespaceId: true, status: true, serviceUrl: true, serviceName: true, revision: true, image: true, imageVersion: true, handlerName: true, concurrency: true, scaleMin: true, scaleMax: true, timeoutSeconds: true, resources: true, lastError: true, lastErrorAt: true, errorCount: true, labels: true, annotations: true } }).execute(); + +// Create +const created = await db.platformFunctionDeployment.create({ data: { namespaceId: '', status: '', serviceUrl: '', serviceName: '', revision: '', image: '', imageVersion: '', handlerName: '', concurrency: '', scaleMin: '', scaleMax: '', timeoutSeconds: '', resources: '', lastError: '', lastErrorAt: '', errorCount: '', labels: '', annotations: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformFunctionDeployment.update({ where: { id: '' }, data: { namespaceId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformFunctionDeployment.delete({ where: { id: '' } }).execute(); +``` + +### `db.platformResource` + +CRUD operations for PlatformResource records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | +| `createdBy` | UUID | Yes | +| `updatedBy` | UUID | Yes | +| `namespaceId` | UUID | Yes | +| `kind` | String | Yes | +| `name` | String | Yes | +| `slug` | String | Yes | +| `spec` | JSON | Yes | +| `status` | String | Yes | +| `statusObserved` | JSON | Yes | +| `lastError` | String | Yes | +| `errorCount` | Int | Yes | +| `labels` | JSON | Yes | +| `annotations` | JSON | Yes | +| `requiredSecrets` | ResourceRequirement | Yes | +| `requiredConfigs` | ResourceRequirement | Yes | +| `integrations` | String | Yes | +| `resourceDefinitionId` | UUID | Yes | + +**Operations:** + +```typescript +// List all platformResource records +const items = await db.platformResource.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, namespaceId: true, kind: true, name: true, slug: true, spec: true, status: true, statusObserved: true, lastError: true, errorCount: true, labels: true, annotations: true, requiredSecrets: true, requiredConfigs: true, integrations: true, resourceDefinitionId: true } }).execute(); + +// Get one by id +const item = await db.platformResource.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, namespaceId: true, kind: true, name: true, slug: true, spec: true, status: true, statusObserved: true, lastError: true, errorCount: true, labels: true, annotations: true, requiredSecrets: true, requiredConfigs: true, integrations: true, resourceDefinitionId: true } }).execute(); + +// Create +const created = await db.platformResource.create({ data: { createdBy: '', updatedBy: '', namespaceId: '', kind: '', name: '', slug: '', spec: '', status: '', statusObserved: '', lastError: '', errorCount: '', labels: '', annotations: '', requiredSecrets: '', requiredConfigs: '', integrations: '', resourceDefinitionId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformResource.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformResource.delete({ where: { id: '' } }).execute(); +``` + +### `db.platformResourceDefinition` + +CRUD operations for PlatformResourceDefinition records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | +| `createdBy` | UUID | Yes | +| `updatedBy` | UUID | Yes | +| `namespaceId` | UUID | Yes | +| `kind` | String | Yes | +| `name` | String | Yes | +| `slug` | String | Yes | +| `description` | String | Yes | +| `defaultSpec` | JSON | Yes | +| `requiredSecrets` | ResourceRequirement | Yes | +| `requiredConfigs` | ResourceRequirement | Yes | +| `integrations` | String | Yes | +| `labels` | JSON | Yes | +| `annotations` | JSON | Yes | +| `stepUpMinAge` | Interval | Yes | + +**Operations:** + +```typescript +// List all platformResourceDefinition records +const items = await db.platformResourceDefinition.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, namespaceId: true, kind: true, name: true, slug: true, description: true, defaultSpec: true, requiredSecrets: true, requiredConfigs: true, integrations: true, labels: true, annotations: true, stepUpMinAge: true } }).execute(); + +// Get one by id +const item = await db.platformResourceDefinition.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, namespaceId: true, kind: true, name: true, slug: true, description: true, defaultSpec: true, requiredSecrets: true, requiredConfigs: true, integrations: true, labels: true, annotations: true, stepUpMinAge: true } }).execute(); + +// Create +const created = await db.platformResourceDefinition.create({ data: { createdBy: '', updatedBy: '', namespaceId: '', kind: '', name: '', slug: '', description: '', defaultSpec: '', requiredSecrets: '', requiredConfigs: '', integrations: '', labels: '', annotations: '', stepUpMinAge: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformResourceDefinition.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformResourceDefinition.delete({ where: { id: '' } }).execute(); +``` + +### `db.infraObject` + +CRUD operations for InfraObject records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `scopeId` | UUID | Yes | +| `kids` | UUID | Yes | +| `ktree` | String | Yes | +| `data` | JSON | Yes | +| `createdAt` | Datetime | No | + +**Operations:** -### `db.getAllRecord` +```typescript +// List all infraObject records +const items = await db.infraObject.findMany({ select: { id: true, scopeId: true, kids: true, ktree: true, data: true, createdAt: true } }).execute(); -CRUD operations for GetAllRecord records. +// Get one by id +const item = await db.infraObject.findOne({ id: '', select: { id: true, scopeId: true, kids: true, ktree: true, data: true, createdAt: true } }).execute(); + +// Create +const created = await db.infraObject.create({ data: { scopeId: '', kids: '', ktree: '', data: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.infraObject.update({ where: { id: '' }, data: { scopeId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.infraObject.delete({ where: { id: '' } }).execute(); +``` + +### `db.functionGraphObject` + +CRUD operations for FunctionGraphObject records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `path` | String | Yes | +| `id` | UUID | No | +| `scopeId` | UUID | Yes | +| `kids` | UUID | Yes | +| `ktree` | String | Yes | | `data` | JSON | Yes | +| `createdAt` | Datetime | No | **Operations:** ```typescript -// List all getAllRecord records -const items = await db.getAllRecord.findMany({ select: { path: true, data: true } }).execute(); +// List all functionGraphObject records +const items = await db.functionGraphObject.findMany({ select: { id: true, scopeId: true, kids: true, ktree: true, data: true, createdAt: true } }).execute(); // Get one by id -const item = await db.getAllRecord.findOne({ id: '', select: { path: true, data: true } }).execute(); +const item = await db.functionGraphObject.findOne({ id: '', select: { id: true, scopeId: true, kids: true, ktree: true, data: true, createdAt: true } }).execute(); // Create -const created = await db.getAllRecord.create({ data: { path: '', data: '' }, select: { id: true } }).execute(); +const created = await db.functionGraphObject.create({ data: { scopeId: '', kids: '', ktree: '', data: '' }, select: { id: true } }).execute(); // Update -const updated = await db.getAllRecord.update({ where: { id: '' }, data: { path: '' }, select: { id: true } }).execute(); +const updated = await db.functionGraphObject.update({ where: { id: '' }, data: { scopeId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.getAllRecord.delete({ where: { id: '' } }).execute(); +const deleted = await db.functionGraphObject.delete({ where: { id: '' } }).execute(); ``` -### `db.functionApiBinding` +### `db.platformFunctionDeploymentEvent` -CRUD operations for FunctionApiBinding records. +CRUD operations for PlatformFunctionDeploymentEvent records. **Fields:** | Field | Type | Editable | |-------|------|----------| +| `createdAt` | Datetime | No | | `id` | UUID | No | -| `functionDefinitionId` | UUID | Yes | -| `apiId` | UUID | Yes | -| `alias` | String | Yes | -| `config` | JSON | Yes | +| `deploymentId` | UUID | Yes | +| `eventType` | String | Yes | +| `actorId` | UUID | Yes | +| `message` | String | Yes | +| `metadata` | JSON | Yes | **Operations:** ```typescript -// List all functionApiBinding records -const items = await db.functionApiBinding.findMany({ select: { id: true, functionDefinitionId: true, apiId: true, alias: true, config: true } }).execute(); +// List all platformFunctionDeploymentEvent records +const items = await db.platformFunctionDeploymentEvent.findMany({ select: { createdAt: true, id: true, deploymentId: true, eventType: true, actorId: true, message: true, metadata: true } }).execute(); // Get one by id -const item = await db.functionApiBinding.findOne({ id: '', select: { id: true, functionDefinitionId: true, apiId: true, alias: true, config: true } }).execute(); +const item = await db.platformFunctionDeploymentEvent.findOne({ id: '', select: { createdAt: true, id: true, deploymentId: true, eventType: true, actorId: true, message: true, metadata: true } }).execute(); // Create -const created = await db.functionApiBinding.create({ data: { functionDefinitionId: '', apiId: '', alias: '', config: '' }, select: { id: true } }).execute(); +const created = await db.platformFunctionDeploymentEvent.create({ data: { deploymentId: '', eventType: '', actorId: '', message: '', metadata: '' }, select: { id: true } }).execute(); // Update -const updated = await db.functionApiBinding.update({ where: { id: '' }, data: { functionDefinitionId: '' }, select: { id: true } }).execute(); +const updated = await db.platformFunctionDeploymentEvent.update({ where: { id: '' }, data: { deploymentId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.functionApiBinding.delete({ where: { id: '' } }).execute(); +const deleted = await db.platformFunctionDeploymentEvent.delete({ where: { id: '' } }).execute(); +``` + +### `db.platformResourceEvent` + +CRUD operations for PlatformResourceEvent records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `createdAt` | Datetime | No | +| `id` | UUID | No | +| `resourceId` | UUID | Yes | +| `eventType` | String | Yes | +| `actorId` | UUID | Yes | +| `message` | String | Yes | +| `metadata` | JSON | Yes | + +**Operations:** + +```typescript +// List all platformResourceEvent records +const items = await db.platformResourceEvent.findMany({ select: { createdAt: true, id: true, resourceId: true, eventType: true, actorId: true, message: true, metadata: true } }).execute(); + +// Get one by id +const item = await db.platformResourceEvent.findOne({ id: '', select: { createdAt: true, id: true, resourceId: true, eventType: true, actorId: true, message: true, metadata: true } }).execute(); + +// Create +const created = await db.platformResourceEvent.create({ data: { resourceId: '', eventType: '', actorId: '', message: '', metadata: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformResourceEvent.update({ where: { id: '' }, data: { resourceId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformResourceEvent.delete({ where: { id: '' } }).execute(); +``` + +### `db.resourceStatusCheck` + +CRUD operations for ResourceStatusCheck records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `resourceId` | UUID | Yes | +| `databaseId` | UUID | Yes | +| `requestedBy` | UUID | Yes | +| `requestedAt` | Datetime | Yes | +| `completedAt` | Datetime | Yes | +| `status` | String | Yes | +| `result` | JSON | Yes | + +**Operations:** + +```typescript +// List all resourceStatusCheck records +const items = await db.resourceStatusCheck.findMany({ select: { id: true, resourceId: true, databaseId: true, requestedBy: true, requestedAt: true, completedAt: true, status: true, result: true } }).execute(); + +// Get one by id +const item = await db.resourceStatusCheck.findOne({ id: '', select: { id: true, resourceId: true, databaseId: true, requestedBy: true, requestedAt: true, completedAt: true, status: true, result: true } }).execute(); + +// Create +const created = await db.resourceStatusCheck.create({ data: { resourceId: '', databaseId: '', requestedBy: '', requestedAt: '', completedAt: '', status: '', result: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.resourceStatusCheck.update({ where: { id: '' }, data: { resourceId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.resourceStatusCheck.delete({ where: { id: '' } }).execute(); ``` ### `db.functionDeployment` @@ -120,13 +758,14 @@ CRUD operations for FunctionDeployment records. | `id` | UUID | No | | `createdAt` | Datetime | No | | `updatedAt` | Datetime | No | -| `functionDefinitionId` | UUID | Yes | | `namespaceId` | UUID | Yes | | `status` | String | Yes | | `serviceUrl` | String | Yes | | `serviceName` | String | Yes | | `revision` | Int | Yes | | `image` | String | Yes | +| `imageVersion` | String | Yes | +| `handlerName` | String | Yes | | `concurrency` | Int | Yes | | `scaleMin` | Int | Yes | | `scaleMax` | Int | Yes | @@ -143,16 +782,16 @@ CRUD operations for FunctionDeployment records. ```typescript // List all functionDeployment records -const items = await db.functionDeployment.findMany({ select: { id: true, createdAt: true, updatedAt: true, functionDefinitionId: true, namespaceId: true, status: true, serviceUrl: true, serviceName: true, revision: true, image: true, concurrency: true, scaleMin: true, scaleMax: true, timeoutSeconds: true, resources: true, lastError: true, lastErrorAt: true, errorCount: true, labels: true, annotations: true, databaseId: true } }).execute(); +const items = await db.functionDeployment.findMany({ select: { id: true, createdAt: true, updatedAt: true, namespaceId: true, status: true, serviceUrl: true, serviceName: true, revision: true, image: true, imageVersion: true, handlerName: true, concurrency: true, scaleMin: true, scaleMax: true, timeoutSeconds: true, resources: true, lastError: true, lastErrorAt: true, errorCount: true, labels: true, annotations: true, databaseId: true } }).execute(); // Get one by id -const item = await db.functionDeployment.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, functionDefinitionId: true, namespaceId: true, status: true, serviceUrl: true, serviceName: true, revision: true, image: true, concurrency: true, scaleMin: true, scaleMax: true, timeoutSeconds: true, resources: true, lastError: true, lastErrorAt: true, errorCount: true, labels: true, annotations: true, databaseId: true } }).execute(); +const item = await db.functionDeployment.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, namespaceId: true, status: true, serviceUrl: true, serviceName: true, revision: true, image: true, imageVersion: true, handlerName: true, concurrency: true, scaleMin: true, scaleMax: true, timeoutSeconds: true, resources: true, lastError: true, lastErrorAt: true, errorCount: true, labels: true, annotations: true, databaseId: true } }).execute(); // Create -const created = await db.functionDeployment.create({ data: { functionDefinitionId: '', namespaceId: '', status: '', serviceUrl: '', serviceName: '', revision: '', image: '', concurrency: '', scaleMin: '', scaleMax: '', timeoutSeconds: '', resources: '', lastError: '', lastErrorAt: '', errorCount: '', labels: '', annotations: '', databaseId: '' }, select: { id: true } }).execute(); +const created = await db.functionDeployment.create({ data: { namespaceId: '', status: '', serviceUrl: '', serviceName: '', revision: '', image: '', imageVersion: '', handlerName: '', concurrency: '', scaleMin: '', scaleMax: '', timeoutSeconds: '', resources: '', lastError: '', lastErrorAt: '', errorCount: '', labels: '', annotations: '', databaseId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.functionDeployment.update({ where: { id: '' }, data: { functionDefinitionId: '' }, select: { id: true } }).execute(); +const updated = await db.functionDeployment.update({ where: { id: '' }, data: { namespaceId: '' }, select: { id: true } }).execute(); // Delete const deleted = await db.functionDeployment.delete({ where: { id: '' } }).execute(); @@ -183,18 +822,22 @@ CRUD operations for Resource records. | `labels` | JSON | Yes | | `annotations` | JSON | Yes | | `databaseId` | UUID | Yes | +| `requiredSecrets` | ResourceRequirement | Yes | +| `requiredConfigs` | ResourceRequirement | Yes | +| `integrations` | String | Yes | +| `resourceDefinitionId` | UUID | Yes | **Operations:** ```typescript // List all resource records -const items = await db.resource.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, namespaceId: true, kind: true, name: true, slug: true, spec: true, status: true, statusObserved: true, lastError: true, errorCount: true, labels: true, annotations: true, databaseId: true } }).execute(); +const items = await db.resource.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, namespaceId: true, kind: true, name: true, slug: true, spec: true, status: true, statusObserved: true, lastError: true, errorCount: true, labels: true, annotations: true, databaseId: true, requiredSecrets: true, requiredConfigs: true, integrations: true, resourceDefinitionId: true } }).execute(); // Get one by id -const item = await db.resource.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, namespaceId: true, kind: true, name: true, slug: true, spec: true, status: true, statusObserved: true, lastError: true, errorCount: true, labels: true, annotations: true, databaseId: true } }).execute(); +const item = await db.resource.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, namespaceId: true, kind: true, name: true, slug: true, spec: true, status: true, statusObserved: true, lastError: true, errorCount: true, labels: true, annotations: true, databaseId: true, requiredSecrets: true, requiredConfigs: true, integrations: true, resourceDefinitionId: true } }).execute(); // Create -const created = await db.resource.create({ data: { createdBy: '', updatedBy: '', namespaceId: '', kind: '', name: '', slug: '', spec: '', status: '', statusObserved: '', lastError: '', errorCount: '', labels: '', annotations: '', databaseId: '' }, select: { id: true } }).execute(); +const created = await db.resource.create({ data: { createdBy: '', updatedBy: '', namespaceId: '', kind: '', name: '', slug: '', spec: '', status: '', statusObserved: '', lastError: '', errorCount: '', labels: '', annotations: '', databaseId: '', requiredSecrets: '', requiredConfigs: '', integrations: '', resourceDefinitionId: '' }, select: { id: true } }).execute(); // Update const updated = await db.resource.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); @@ -203,109 +846,127 @@ const updated = await db.resource.update({ where: { id: '' }, data: { crea const deleted = await db.resource.delete({ where: { id: '' } }).execute(); ``` -### `db.functionGraphRef` +### `db.resourceDefinition` -CRUD operations for FunctionGraphRef records. +CRUD operations for ResourceDefinition records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | +| `createdBy` | UUID | Yes | +| `updatedBy` | UUID | Yes | +| `namespaceId` | UUID | Yes | +| `kind` | String | Yes | | `name` | String | Yes | +| `slug` | String | Yes | +| `description` | String | Yes | +| `defaultSpec` | JSON | Yes | +| `requiredSecrets` | ResourceRequirement | Yes | +| `requiredConfigs` | ResourceRequirement | Yes | +| `integrations` | String | Yes | +| `labels` | JSON | Yes | +| `annotations` | JSON | Yes | +| `stepUpMinAge` | Interval | Yes | | `databaseId` | UUID | Yes | -| `storeId` | UUID | Yes | -| `commitId` | UUID | Yes | **Operations:** ```typescript -// List all functionGraphRef records -const items = await db.functionGraphRef.findMany({ select: { id: true, name: true, databaseId: true, storeId: true, commitId: true } }).execute(); +// List all resourceDefinition records +const items = await db.resourceDefinition.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, namespaceId: true, kind: true, name: true, slug: true, description: true, defaultSpec: true, requiredSecrets: true, requiredConfigs: true, integrations: true, labels: true, annotations: true, stepUpMinAge: true, databaseId: true } }).execute(); // Get one by id -const item = await db.functionGraphRef.findOne({ id: '', select: { id: true, name: true, databaseId: true, storeId: true, commitId: true } }).execute(); +const item = await db.resourceDefinition.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, namespaceId: true, kind: true, name: true, slug: true, description: true, defaultSpec: true, requiredSecrets: true, requiredConfigs: true, integrations: true, labels: true, annotations: true, stepUpMinAge: true, databaseId: true } }).execute(); // Create -const created = await db.functionGraphRef.create({ data: { name: '', databaseId: '', storeId: '', commitId: '' }, select: { id: true } }).execute(); +const created = await db.resourceDefinition.create({ data: { createdBy: '', updatedBy: '', namespaceId: '', kind: '', name: '', slug: '', description: '', defaultSpec: '', requiredSecrets: '', requiredConfigs: '', integrations: '', labels: '', annotations: '', stepUpMinAge: '', databaseId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.functionGraphRef.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.resourceDefinition.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.functionGraphRef.delete({ where: { id: '' } }).execute(); +const deleted = await db.resourceDefinition.delete({ where: { id: '' } }).execute(); ``` -### `db.functionGraphStore` +### `db.functionDeploymentEvent` -CRUD operations for FunctionGraphStore records. +CRUD operations for FunctionDeploymentEvent records. **Fields:** | Field | Type | Editable | |-------|------|----------| +| `createdAt` | Datetime | No | | `id` | UUID | No | -| `name` | String | Yes | +| `deploymentId` | UUID | Yes | +| `eventType` | String | Yes | +| `actorId` | UUID | Yes | +| `message` | String | Yes | +| `metadata` | JSON | Yes | | `databaseId` | UUID | Yes | -| `hash` | UUID | Yes | -| `createdAt` | Datetime | No | **Operations:** ```typescript -// List all functionGraphStore records -const items = await db.functionGraphStore.findMany({ select: { id: true, name: true, databaseId: true, hash: true, createdAt: true } }).execute(); +// List all functionDeploymentEvent records +const items = await db.functionDeploymentEvent.findMany({ select: { createdAt: true, id: true, deploymentId: true, eventType: true, actorId: true, message: true, metadata: true, databaseId: true } }).execute(); // Get one by id -const item = await db.functionGraphStore.findOne({ id: '', select: { id: true, name: true, databaseId: true, hash: true, createdAt: true } }).execute(); +const item = await db.functionDeploymentEvent.findOne({ id: '', select: { createdAt: true, id: true, deploymentId: true, eventType: true, actorId: true, message: true, metadata: true, databaseId: true } }).execute(); // Create -const created = await db.functionGraphStore.create({ data: { name: '', databaseId: '', hash: '' }, select: { id: true } }).execute(); +const created = await db.functionDeploymentEvent.create({ data: { deploymentId: '', eventType: '', actorId: '', message: '', metadata: '', databaseId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.functionGraphStore.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.functionDeploymentEvent.update({ where: { id: '' }, data: { deploymentId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.functionGraphStore.delete({ where: { id: '' } }).execute(); +const deleted = await db.functionDeploymentEvent.delete({ where: { id: '' } }).execute(); ``` -### `db.functionGraphObject` +### `db.platformFunctionExecutionLog` -CRUD operations for FunctionGraphObject records. +CRUD operations for PlatformFunctionExecutionLog records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `kids` | UUID | Yes | -| `ktree` | String | Yes | -| `data` | JSON | Yes | | `createdAt` | Datetime | No | +| `id` | UUID | No | +| `invocationId` | UUID | Yes | +| `taskIdentifier` | String | Yes | +| `logLevel` | String | Yes | +| `message` | String | Yes | +| `metadata` | JSON | Yes | +| `actorId` | UUID | Yes | **Operations:** ```typescript -// List all functionGraphObject records -const items = await db.functionGraphObject.findMany({ select: { id: true, databaseId: true, kids: true, ktree: true, data: true, createdAt: true } }).execute(); +// List all platformFunctionExecutionLog records +const items = await db.platformFunctionExecutionLog.findMany({ select: { createdAt: true, id: true, invocationId: true, taskIdentifier: true, logLevel: true, message: true, metadata: true, actorId: true } }).execute(); // Get one by id -const item = await db.functionGraphObject.findOne({ id: '', select: { id: true, databaseId: true, kids: true, ktree: true, data: true, createdAt: true } }).execute(); +const item = await db.platformFunctionExecutionLog.findOne({ id: '', select: { createdAt: true, id: true, invocationId: true, taskIdentifier: true, logLevel: true, message: true, metadata: true, actorId: true } }).execute(); // Create -const created = await db.functionGraphObject.create({ data: { databaseId: '', kids: '', ktree: '', data: '' }, select: { id: true } }).execute(); +const created = await db.platformFunctionExecutionLog.create({ data: { invocationId: '', taskIdentifier: '', logLevel: '', message: '', metadata: '', actorId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.functionGraphObject.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.platformFunctionExecutionLog.update({ where: { id: '' }, data: { invocationId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.functionGraphObject.delete({ where: { id: '' } }).execute(); +const deleted = await db.platformFunctionExecutionLog.delete({ where: { id: '' } }).execute(); ``` -### `db.functionDeploymentEvent` +### `db.resourceEvent` -CRUD operations for FunctionDeploymentEvent records. +CRUD operations for ResourceEvent records. **Fields:** @@ -313,7 +974,7 @@ CRUD operations for FunctionDeploymentEvent records. |-------|------|----------| | `createdAt` | Datetime | No | | `id` | UUID | No | -| `deploymentId` | UUID | Yes | +| `resourceId` | UUID | Yes | | `eventType` | String | Yes | | `actorId` | UUID | Yes | | `message` | String | Yes | @@ -323,25 +984,25 @@ CRUD operations for FunctionDeploymentEvent records. **Operations:** ```typescript -// List all functionDeploymentEvent records -const items = await db.functionDeploymentEvent.findMany({ select: { createdAt: true, id: true, deploymentId: true, eventType: true, actorId: true, message: true, metadata: true, databaseId: true } }).execute(); +// List all resourceEvent records +const items = await db.resourceEvent.findMany({ select: { createdAt: true, id: true, resourceId: true, eventType: true, actorId: true, message: true, metadata: true, databaseId: true } }).execute(); // Get one by id -const item = await db.functionDeploymentEvent.findOne({ id: '', select: { createdAt: true, id: true, deploymentId: true, eventType: true, actorId: true, message: true, metadata: true, databaseId: true } }).execute(); +const item = await db.resourceEvent.findOne({ id: '', select: { createdAt: true, id: true, resourceId: true, eventType: true, actorId: true, message: true, metadata: true, databaseId: true } }).execute(); // Create -const created = await db.functionDeploymentEvent.create({ data: { deploymentId: '', eventType: '', actorId: '', message: '', metadata: '', databaseId: '' }, select: { id: true } }).execute(); +const created = await db.resourceEvent.create({ data: { resourceId: '', eventType: '', actorId: '', message: '', metadata: '', databaseId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.functionDeploymentEvent.update({ where: { id: '' }, data: { deploymentId: '' }, select: { id: true } }).execute(); +const updated = await db.resourceEvent.update({ where: { id: '' }, data: { resourceId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.functionDeploymentEvent.delete({ where: { id: '' } }).execute(); +const deleted = await db.resourceEvent.delete({ where: { id: '' } }).execute(); ``` -### `db.orgFunctionExecutionLog` +### `db.functionGraphExecutionOutput` -CRUD operations for OrgFunctionExecutionLog records. +CRUD operations for FunctionGraphExecutionOutput records. **Fields:** @@ -349,35 +1010,106 @@ CRUD operations for OrgFunctionExecutionLog records. |-------|------|----------| | `createdAt` | Datetime | No | | `id` | UUID | No | -| `invocationId` | UUID | Yes | -| `taskIdentifier` | String | Yes | -| `logLevel` | String | Yes | +| `scopeId` | UUID | Yes | +| `hash` | Base64EncodedBinary | Yes | +| `data` | JSON | Yes | + +**Operations:** + +```typescript +// List all functionGraphExecutionOutput records +const items = await db.functionGraphExecutionOutput.findMany({ select: { createdAt: true, id: true, scopeId: true, hash: true, data: true } }).execute(); + +// Get one by id +const item = await db.functionGraphExecutionOutput.findOne({ id: '', select: { createdAt: true, id: true, scopeId: true, hash: true, data: true } }).execute(); + +// Create +const created = await db.functionGraphExecutionOutput.create({ data: { scopeId: '', hash: '', data: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.functionGraphExecutionOutput.update({ where: { id: '' }, data: { scopeId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.functionGraphExecutionOutput.delete({ where: { id: '' } }).execute(); +``` + +### `db.infraCommit` + +CRUD operations for InfraCommit records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | | `message` | String | Yes | -| `metadata` | JSON | Yes | -| `actorId` | UUID | Yes | +| `scopeId` | UUID | Yes | +| `storeId` | UUID | Yes | +| `parentIds` | UUID | Yes | +| `authorId` | UUID | Yes | +| `committerId` | UUID | Yes | +| `treeId` | UUID | Yes | +| `date` | Datetime | Yes | **Operations:** ```typescript -// List all orgFunctionExecutionLog records -const items = await db.orgFunctionExecutionLog.findMany({ select: { createdAt: true, id: true, invocationId: true, taskIdentifier: true, logLevel: true, message: true, metadata: true, actorId: true } }).execute(); +// List all infraCommit records +const items = await db.infraCommit.findMany({ select: { id: true, message: true, scopeId: true, storeId: true, parentIds: true, authorId: true, committerId: true, treeId: true, date: true } }).execute(); // Get one by id -const item = await db.orgFunctionExecutionLog.findOne({ id: '', select: { createdAt: true, id: true, invocationId: true, taskIdentifier: true, logLevel: true, message: true, metadata: true, actorId: true } }).execute(); +const item = await db.infraCommit.findOne({ id: '', select: { id: true, message: true, scopeId: true, storeId: true, parentIds: true, authorId: true, committerId: true, treeId: true, date: true } }).execute(); // Create -const created = await db.orgFunctionExecutionLog.create({ data: { invocationId: '', taskIdentifier: '', logLevel: '', message: '', metadata: '', actorId: '' }, select: { id: true } }).execute(); +const created = await db.infraCommit.create({ data: { message: '', scopeId: '', storeId: '', parentIds: '', authorId: '', committerId: '', treeId: '', date: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgFunctionExecutionLog.update({ where: { id: '' }, data: { invocationId: '' }, select: { id: true } }).execute(); +const updated = await db.infraCommit.update({ where: { id: '' }, data: { message: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgFunctionExecutionLog.delete({ where: { id: '' } }).execute(); +const deleted = await db.infraCommit.delete({ where: { id: '' } }).execute(); ``` -### `db.resourceEvent` +### `db.functionGraphCommit` -CRUD operations for ResourceEvent records. +CRUD operations for FunctionGraphCommit records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `message` | String | Yes | +| `scopeId` | UUID | Yes | +| `storeId` | UUID | Yes | +| `parentIds` | UUID | Yes | +| `authorId` | UUID | Yes | +| `committerId` | UUID | Yes | +| `treeId` | UUID | Yes | +| `date` | Datetime | Yes | + +**Operations:** + +```typescript +// List all functionGraphCommit records +const items = await db.functionGraphCommit.findMany({ select: { id: true, message: true, scopeId: true, storeId: true, parentIds: true, authorId: true, committerId: true, treeId: true, date: true } }).execute(); + +// Get one by id +const item = await db.functionGraphCommit.findOne({ id: '', select: { id: true, message: true, scopeId: true, storeId: true, parentIds: true, authorId: true, committerId: true, treeId: true, date: true } }).execute(); + +// Create +const created = await db.functionGraphCommit.create({ data: { message: '', scopeId: '', storeId: '', parentIds: '', authorId: '', committerId: '', treeId: '', date: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.functionGraphCommit.update({ where: { id: '' }, data: { message: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.functionGraphCommit.delete({ where: { id: '' } }).execute(); +``` + +### `db.functionExecutionLog` + +CRUD operations for FunctionExecutionLog records. **Fields:** @@ -385,174 +1117,186 @@ CRUD operations for ResourceEvent records. |-------|------|----------| | `createdAt` | Datetime | No | | `id` | UUID | No | -| `resourceId` | UUID | Yes | -| `eventType` | String | Yes | -| `actorId` | UUID | Yes | +| `invocationId` | UUID | Yes | +| `taskIdentifier` | String | Yes | +| `logLevel` | String | Yes | | `message` | String | Yes | | `metadata` | JSON | Yes | +| `actorId` | UUID | Yes | | `databaseId` | UUID | Yes | **Operations:** ```typescript -// List all resourceEvent records -const items = await db.resourceEvent.findMany({ select: { createdAt: true, id: true, resourceId: true, eventType: true, actorId: true, message: true, metadata: true, databaseId: true } }).execute(); +// List all functionExecutionLog records +const items = await db.functionExecutionLog.findMany({ select: { createdAt: true, id: true, invocationId: true, taskIdentifier: true, logLevel: true, message: true, metadata: true, actorId: true, databaseId: true } }).execute(); // Get one by id -const item = await db.resourceEvent.findOne({ id: '', select: { createdAt: true, id: true, resourceId: true, eventType: true, actorId: true, message: true, metadata: true, databaseId: true } }).execute(); +const item = await db.functionExecutionLog.findOne({ id: '', select: { createdAt: true, id: true, invocationId: true, taskIdentifier: true, logLevel: true, message: true, metadata: true, actorId: true, databaseId: true } }).execute(); // Create -const created = await db.resourceEvent.create({ data: { resourceId: '', eventType: '', actorId: '', message: '', metadata: '', databaseId: '' }, select: { id: true } }).execute(); +const created = await db.functionExecutionLog.create({ data: { invocationId: '', taskIdentifier: '', logLevel: '', message: '', metadata: '', actorId: '', databaseId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.resourceEvent.update({ where: { id: '' }, data: { resourceId: '' }, select: { id: true } }).execute(); +const updated = await db.functionExecutionLog.update({ where: { id: '' }, data: { invocationId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.resourceEvent.delete({ where: { id: '' } }).execute(); +const deleted = await db.functionExecutionLog.delete({ where: { id: '' } }).execute(); ``` -### `db.functionGraphExecutionOutput` +### `db.platformResourcesResolvedRequirement` -CRUD operations for FunctionGraphExecutionOutput records. +CRUD operations for PlatformResourcesResolvedRequirement records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `createdAt` | Datetime | No | -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `hash` | Base64EncodedBinary | Yes | -| `data` | JSON | Yes | +| `resourceId` | UUID | Yes | +| `slug` | String | Yes | +| `namespaceId` | UUID | Yes | +| `requirementKind` | String | Yes | +| `name` | String | Yes | +| `required` | Boolean | Yes | +| `atomId` | UUID | Yes | +| `present` | Boolean | Yes | +| `secretsObjectName` | String | Yes | +| `configObjectName` | String | Yes | **Operations:** ```typescript -// List all functionGraphExecutionOutput records -const items = await db.functionGraphExecutionOutput.findMany({ select: { createdAt: true, id: true, databaseId: true, hash: true, data: true } }).execute(); +// List all platformResourcesResolvedRequirement records +const items = await db.platformResourcesResolvedRequirement.findMany({ select: { resourceId: true, slug: true, namespaceId: true, requirementKind: true, name: true, required: true, atomId: true, present: true, secretsObjectName: true, configObjectName: true } }).execute(); // Get one by id -const item = await db.functionGraphExecutionOutput.findOne({ id: '', select: { createdAt: true, id: true, databaseId: true, hash: true, data: true } }).execute(); +const item = await db.platformResourcesResolvedRequirement.findOne({ id: '', select: { resourceId: true, slug: true, namespaceId: true, requirementKind: true, name: true, required: true, atomId: true, present: true, secretsObjectName: true, configObjectName: true } }).execute(); // Create -const created = await db.functionGraphExecutionOutput.create({ data: { databaseId: '', hash: '', data: '' }, select: { id: true } }).execute(); +const created = await db.platformResourcesResolvedRequirement.create({ data: { resourceId: '', slug: '', namespaceId: '', requirementKind: '', name: '', required: '', atomId: '', present: '', secretsObjectName: '', configObjectName: '' }, select: { id: true } }).execute(); // Update -const updated = await db.functionGraphExecutionOutput.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.platformResourcesResolvedRequirement.update({ where: { id: '' }, data: { resourceId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.functionGraphExecutionOutput.delete({ where: { id: '' } }).execute(); +const deleted = await db.platformResourcesResolvedRequirement.delete({ where: { id: '' } }).execute(); ``` -### `db.functionGraphCommit` +### `db.resourcesResolvedRequirement` -CRUD operations for FunctionGraphCommit records. +CRUD operations for ResourcesResolvedRequirement records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `id` | UUID | No | -| `message` | String | Yes | -| `databaseId` | UUID | Yes | -| `storeId` | UUID | Yes | -| `parentIds` | UUID | Yes | -| `authorId` | UUID | Yes | -| `committerId` | UUID | Yes | -| `treeId` | UUID | Yes | -| `date` | Datetime | Yes | +| `resourceId` | UUID | Yes | +| `slug` | String | Yes | +| `namespaceId` | UUID | Yes | +| `requirementKind` | String | Yes | +| `name` | String | Yes | +| `required` | Boolean | Yes | +| `atomId` | UUID | Yes | +| `present` | Boolean | Yes | +| `secretsObjectName` | String | Yes | +| `configObjectName` | String | Yes | **Operations:** ```typescript -// List all functionGraphCommit records -const items = await db.functionGraphCommit.findMany({ select: { id: true, message: true, databaseId: true, storeId: true, parentIds: true, authorId: true, committerId: true, treeId: true, date: true } }).execute(); +// List all resourcesResolvedRequirement records +const items = await db.resourcesResolvedRequirement.findMany({ select: { resourceId: true, slug: true, namespaceId: true, requirementKind: true, name: true, required: true, atomId: true, present: true, secretsObjectName: true, configObjectName: true } }).execute(); // Get one by id -const item = await db.functionGraphCommit.findOne({ id: '', select: { id: true, message: true, databaseId: true, storeId: true, parentIds: true, authorId: true, committerId: true, treeId: true, date: true } }).execute(); +const item = await db.resourcesResolvedRequirement.findOne({ id: '', select: { resourceId: true, slug: true, namespaceId: true, requirementKind: true, name: true, required: true, atomId: true, present: true, secretsObjectName: true, configObjectName: true } }).execute(); // Create -const created = await db.functionGraphCommit.create({ data: { message: '', databaseId: '', storeId: '', parentIds: '', authorId: '', committerId: '', treeId: '', date: '' }, select: { id: true } }).execute(); +const created = await db.resourcesResolvedRequirement.create({ data: { resourceId: '', slug: '', namespaceId: '', requirementKind: '', name: '', required: '', atomId: '', present: '', secretsObjectName: '', configObjectName: '' }, select: { id: true } }).execute(); // Update -const updated = await db.functionGraphCommit.update({ where: { id: '' }, data: { message: '' }, select: { id: true } }).execute(); +const updated = await db.resourcesResolvedRequirement.update({ where: { id: '' }, data: { resourceId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.functionGraphCommit.delete({ where: { id: '' } }).execute(); +const deleted = await db.resourcesResolvedRequirement.delete({ where: { id: '' } }).execute(); ``` -### `db.secretDefinition` +### `db.dbPreset` -CRUD operations for SecretDefinition records. +CRUD operations for DbPreset records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | +| `storeId` | UUID | Yes | +| `slug` | String | Yes | +| `definition` | JSON | Yes | +| `commitId` | UUID | Yes | +| `modulesHash` | UUID | Yes | +| `label` | String | Yes | +| `description` | String | Yes | +| `active` | Boolean | Yes | | `createdAt` | Datetime | No | | `updatedAt` | Datetime | No | -| `name` | String | Yes | -| `description` | String | Yes | -| `isBuiltIn` | Boolean | Yes | -| `labels` | JSON | Yes | -| `annotations` | JSON | Yes | -| `databaseId` | UUID | Yes | **Operations:** ```typescript -// List all secretDefinition records -const items = await db.secretDefinition.findMany({ select: { id: true, createdAt: true, updatedAt: true, name: true, description: true, isBuiltIn: true, labels: true, annotations: true, databaseId: true } }).execute(); +// List all dbPreset records +const items = await db.dbPreset.findMany({ select: { id: true, storeId: true, slug: true, definition: true, commitId: true, modulesHash: true, label: true, description: true, active: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.secretDefinition.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, name: true, description: true, isBuiltIn: true, labels: true, annotations: true, databaseId: true } }).execute(); +const item = await db.dbPreset.findOne({ id: '', select: { id: true, storeId: true, slug: true, definition: true, commitId: true, modulesHash: true, label: true, description: true, active: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.secretDefinition.create({ data: { name: '', description: '', isBuiltIn: '', labels: '', annotations: '', databaseId: '' }, select: { id: true } }).execute(); +const created = await db.dbPreset.create({ data: { storeId: '', slug: '', definition: '', commitId: '', modulesHash: '', label: '', description: '', active: '' }, select: { id: true } }).execute(); // Update -const updated = await db.secretDefinition.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.dbPreset.update({ where: { id: '' }, data: { storeId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.secretDefinition.delete({ where: { id: '' } }).execute(); +const deleted = await db.dbPreset.delete({ where: { id: '' } }).execute(); ``` -### `db.functionExecutionLog` +### `db.platformNamespace` -CRUD operations for FunctionExecutionLog records. +CRUD operations for PlatformNamespace records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `createdAt` | Datetime | No | | `id` | UUID | No | -| `invocationId` | UUID | Yes | -| `taskIdentifier` | String | Yes | -| `logLevel` | String | Yes | -| `message` | String | Yes | -| `metadata` | JSON | Yes | -| `actorId` | UUID | Yes | -| `databaseId` | UUID | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | +| `name` | String | Yes | +| `namespaceName` | String | Yes | +| `description` | String | Yes | +| `isActive` | Boolean | Yes | +| `status` | String | Yes | +| `lastError` | String | Yes | +| `labels` | JSON | Yes | +| `annotations` | JSON | Yes | +| `isManaged` | Boolean | Yes | **Operations:** ```typescript -// List all functionExecutionLog records -const items = await db.functionExecutionLog.findMany({ select: { createdAt: true, id: true, invocationId: true, taskIdentifier: true, logLevel: true, message: true, metadata: true, actorId: true, databaseId: true } }).execute(); +// List all platformNamespace records +const items = await db.platformNamespace.findMany({ select: { id: true, createdAt: true, updatedAt: true, name: true, namespaceName: true, description: true, isActive: true, status: true, lastError: true, labels: true, annotations: true, isManaged: true } }).execute(); // Get one by id -const item = await db.functionExecutionLog.findOne({ id: '', select: { createdAt: true, id: true, invocationId: true, taskIdentifier: true, logLevel: true, message: true, metadata: true, actorId: true, databaseId: true } }).execute(); +const item = await db.platformNamespace.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, name: true, namespaceName: true, description: true, isActive: true, status: true, lastError: true, labels: true, annotations: true, isManaged: true } }).execute(); // Create -const created = await db.functionExecutionLog.create({ data: { invocationId: '', taskIdentifier: '', logLevel: '', message: '', metadata: '', actorId: '', databaseId: '' }, select: { id: true } }).execute(); +const created = await db.platformNamespace.create({ data: { name: '', namespaceName: '', description: '', isActive: '', status: '', lastError: '', labels: '', annotations: '', isManaged: '' }, select: { id: true } }).execute(); // Update -const updated = await db.functionExecutionLog.update({ where: { id: '' }, data: { invocationId: '' }, select: { id: true } }).execute(); +const updated = await db.platformNamespace.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.functionExecutionLog.delete({ where: { id: '' } }).execute(); +const deleted = await db.platformNamespace.delete({ where: { id: '' } }).execute(); ``` ### `db.functionGraph` @@ -564,7 +1308,7 @@ CRUD operations for FunctionGraph records. | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `databaseId` | UUID | Yes | +| `scopeId` | UUID | Yes | | `storeId` | UUID | Yes | | `context` | String | Yes | | `name` | String | Yes | @@ -580,16 +1324,16 @@ CRUD operations for FunctionGraph records. ```typescript // List all functionGraph records -const items = await db.functionGraph.findMany({ select: { id: true, databaseId: true, storeId: true, context: true, name: true, description: true, definitionsCommitId: true, isValid: true, validationErrors: true, createdBy: true, createdAt: true, updatedAt: true } }).execute(); +const items = await db.functionGraph.findMany({ select: { id: true, scopeId: true, storeId: true, context: true, name: true, description: true, definitionsCommitId: true, isValid: true, validationErrors: true, createdBy: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.functionGraph.findOne({ id: '', select: { id: true, databaseId: true, storeId: true, context: true, name: true, description: true, definitionsCommitId: true, isValid: true, validationErrors: true, createdBy: true, createdAt: true, updatedAt: true } }).execute(); +const item = await db.functionGraph.findOne({ id: '', select: { id: true, scopeId: true, storeId: true, context: true, name: true, description: true, definitionsCommitId: true, isValid: true, validationErrors: true, createdBy: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.functionGraph.create({ data: { databaseId: '', storeId: '', context: '', name: '', description: '', definitionsCommitId: '', isValid: '', validationErrors: '', createdBy: '' }, select: { id: true } }).execute(); +const created = await db.functionGraph.create({ data: { scopeId: '', storeId: '', context: '', name: '', description: '', definitionsCommitId: '', isValid: '', validationErrors: '', createdBy: '' }, select: { id: true } }).execute(); // Update -const updated = await db.functionGraph.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.functionGraph.update({ where: { id: '' }, data: { scopeId: '' }, select: { id: true } }).execute(); // Delete const deleted = await db.functionGraph.delete({ where: { id: '' } }).execute(); @@ -606,7 +1350,7 @@ CRUD operations for FunctionGraphExecutionNodeState records. | `createdAt` | Datetime | No | | `id` | UUID | No | | `executionId` | UUID | Yes | -| `databaseId` | UUID | Yes | +| `scopeId` | UUID | Yes | | `nodeName` | String | Yes | | `nodePath` | String | Yes | | `status` | String | Yes | @@ -620,13 +1364,13 @@ CRUD operations for FunctionGraphExecutionNodeState records. ```typescript // List all functionGraphExecutionNodeState records -const items = await db.functionGraphExecutionNodeState.findMany({ select: { createdAt: true, id: true, executionId: true, databaseId: true, nodeName: true, nodePath: true, status: true, startedAt: true, completedAt: true, errorCode: true, errorMessage: true, outputId: true } }).execute(); +const items = await db.functionGraphExecutionNodeState.findMany({ select: { createdAt: true, id: true, executionId: true, scopeId: true, nodeName: true, nodePath: true, status: true, startedAt: true, completedAt: true, errorCode: true, errorMessage: true, outputId: true } }).execute(); // Get one by id -const item = await db.functionGraphExecutionNodeState.findOne({ id: '', select: { createdAt: true, id: true, executionId: true, databaseId: true, nodeName: true, nodePath: true, status: true, startedAt: true, completedAt: true, errorCode: true, errorMessage: true, outputId: true } }).execute(); +const item = await db.functionGraphExecutionNodeState.findOne({ id: '', select: { createdAt: true, id: true, executionId: true, scopeId: true, nodeName: true, nodePath: true, status: true, startedAt: true, completedAt: true, errorCode: true, errorMessage: true, outputId: true } }).execute(); // Create -const created = await db.functionGraphExecutionNodeState.create({ data: { executionId: '', databaseId: '', nodeName: '', nodePath: '', status: '', startedAt: '', completedAt: '', errorCode: '', errorMessage: '', outputId: '' }, select: { id: true } }).execute(); +const created = await db.functionGraphExecutionNodeState.create({ data: { executionId: '', scopeId: '', nodeName: '', nodePath: '', status: '', startedAt: '', completedAt: '', errorCode: '', errorMessage: '', outputId: '' }, select: { id: true } }).execute(); // Update const updated = await db.functionGraphExecutionNodeState.update({ where: { id: '' }, data: { executionId: '' }, select: { id: true } }).execute(); @@ -635,9 +1379,9 @@ const updated = await db.functionGraphExecutionNodeState.update({ where: { id: ' const deleted = await db.functionGraphExecutionNodeState.delete({ where: { id: '' } }).execute(); ``` -### `db.platformNamespace` +### `db.namespace` -CRUD operations for PlatformNamespace records. +CRUD operations for Namespace records. **Fields:** @@ -650,35 +1394,35 @@ CRUD operations for PlatformNamespace records. | `namespaceName` | String | Yes | | `description` | String | Yes | | `isActive` | Boolean | Yes | +| `status` | String | Yes | +| `lastError` | String | Yes | | `labels` | JSON | Yes | | `annotations` | JSON | Yes | | `databaseId` | UUID | Yes | -| `sourceDatabaseId` | UUID | Yes | -| `sourceScope` | String | Yes | | `isManaged` | Boolean | Yes | **Operations:** ```typescript -// List all platformNamespace records -const items = await db.platformNamespace.findMany({ select: { id: true, createdAt: true, updatedAt: true, name: true, namespaceName: true, description: true, isActive: true, labels: true, annotations: true, databaseId: true, sourceDatabaseId: true, sourceScope: true, isManaged: true } }).execute(); +// List all namespace records +const items = await db.namespace.findMany({ select: { id: true, createdAt: true, updatedAt: true, name: true, namespaceName: true, description: true, isActive: true, status: true, lastError: true, labels: true, annotations: true, databaseId: true, isManaged: true } }).execute(); // Get one by id -const item = await db.platformNamespace.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, name: true, namespaceName: true, description: true, isActive: true, labels: true, annotations: true, databaseId: true, sourceDatabaseId: true, sourceScope: true, isManaged: true } }).execute(); +const item = await db.namespace.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, name: true, namespaceName: true, description: true, isActive: true, status: true, lastError: true, labels: true, annotations: true, databaseId: true, isManaged: true } }).execute(); // Create -const created = await db.platformNamespace.create({ data: { name: '', namespaceName: '', description: '', isActive: '', labels: '', annotations: '', databaseId: '', sourceDatabaseId: '', sourceScope: '', isManaged: '' }, select: { id: true } }).execute(); +const created = await db.namespace.create({ data: { name: '', namespaceName: '', description: '', isActive: '', status: '', lastError: '', labels: '', annotations: '', databaseId: '', isManaged: '' }, select: { id: true } }).execute(); // Update -const updated = await db.platformNamespace.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.namespace.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.platformNamespace.delete({ where: { id: '' } }).execute(); +const deleted = await db.namespace.delete({ where: { id: '' } }).execute(); ``` -### `db.orgFunctionInvocation` +### `db.platformFunctionInvocation` -CRUD operations for OrgFunctionInvocation records. +CRUD operations for PlatformFunctionInvocation records. **Fields:** @@ -702,20 +1446,20 @@ CRUD operations for OrgFunctionInvocation records. **Operations:** ```typescript -// List all orgFunctionInvocation records -const items = await db.orgFunctionInvocation.findMany({ select: { createdAt: true, id: true, actorId: true, taskIdentifier: true, payload: true, status: true, result: true, error: true, durationMs: true, jobId: true, startedAt: true, completedAt: true, parentInvocationId: true, graphExecutionId: true } }).execute(); +// List all platformFunctionInvocation records +const items = await db.platformFunctionInvocation.findMany({ select: { createdAt: true, id: true, actorId: true, taskIdentifier: true, payload: true, status: true, result: true, error: true, durationMs: true, jobId: true, startedAt: true, completedAt: true, parentInvocationId: true, graphExecutionId: true } }).execute(); // Get one by id -const item = await db.orgFunctionInvocation.findOne({ id: '', select: { createdAt: true, id: true, actorId: true, taskIdentifier: true, payload: true, status: true, result: true, error: true, durationMs: true, jobId: true, startedAt: true, completedAt: true, parentInvocationId: true, graphExecutionId: true } }).execute(); +const item = await db.platformFunctionInvocation.findOne({ id: '', select: { createdAt: true, id: true, actorId: true, taskIdentifier: true, payload: true, status: true, result: true, error: true, durationMs: true, jobId: true, startedAt: true, completedAt: true, parentInvocationId: true, graphExecutionId: true } }).execute(); // Create -const created = await db.orgFunctionInvocation.create({ data: { actorId: '', taskIdentifier: '', payload: '', status: '', result: '', error: '', durationMs: '', jobId: '', startedAt: '', completedAt: '', parentInvocationId: '', graphExecutionId: '' }, select: { id: true } }).execute(); +const created = await db.platformFunctionInvocation.create({ data: { actorId: '', taskIdentifier: '', payload: '', status: '', result: '', error: '', durationMs: '', jobId: '', startedAt: '', completedAt: '', parentInvocationId: '', graphExecutionId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgFunctionInvocation.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); +const updated = await db.platformFunctionInvocation.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgFunctionInvocation.delete({ where: { id: '' } }).execute(); +const deleted = await db.platformFunctionInvocation.delete({ where: { id: '' } }).execute(); ``` ### `db.functionInvocation` @@ -783,19 +1527,18 @@ CRUD operations for PlatformNamespaceEvent records. | `networkEgressBytes` | BigInt | Yes | | `podCount` | Int | Yes | | `metrics` | JSON | Yes | -| `databaseId` | UUID | Yes | **Operations:** ```typescript // List all platformNamespaceEvent records -const items = await db.platformNamespaceEvent.findMany({ select: { createdAt: true, id: true, namespaceId: true, eventType: true, actorId: true, message: true, metadata: true, cpuMillicores: true, memoryBytes: true, storageBytes: true, networkIngressBytes: true, networkEgressBytes: true, podCount: true, metrics: true, databaseId: true } }).execute(); +const items = await db.platformNamespaceEvent.findMany({ select: { createdAt: true, id: true, namespaceId: true, eventType: true, actorId: true, message: true, metadata: true, cpuMillicores: true, memoryBytes: true, storageBytes: true, networkIngressBytes: true, networkEgressBytes: true, podCount: true, metrics: true } }).execute(); // Get one by id -const item = await db.platformNamespaceEvent.findOne({ id: '', select: { createdAt: true, id: true, namespaceId: true, eventType: true, actorId: true, message: true, metadata: true, cpuMillicores: true, memoryBytes: true, storageBytes: true, networkIngressBytes: true, networkEgressBytes: true, podCount: true, metrics: true, databaseId: true } }).execute(); +const item = await db.platformNamespaceEvent.findOne({ id: '', select: { createdAt: true, id: true, namespaceId: true, eventType: true, actorId: true, message: true, metadata: true, cpuMillicores: true, memoryBytes: true, storageBytes: true, networkIngressBytes: true, networkEgressBytes: true, podCount: true, metrics: true } }).execute(); // Create -const created = await db.platformNamespaceEvent.create({ data: { namespaceId: '', eventType: '', actorId: '', message: '', metadata: '', cpuMillicores: '', memoryBytes: '', storageBytes: '', networkIngressBytes: '', networkEgressBytes: '', podCount: '', metrics: '', databaseId: '' }, select: { id: true } }).execute(); +const created = await db.platformNamespaceEvent.create({ data: { namespaceId: '', eventType: '', actorId: '', message: '', metadata: '', cpuMillicores: '', memoryBytes: '', storageBytes: '', networkIngressBytes: '', networkEgressBytes: '', podCount: '', metrics: '' }, select: { id: true } }).execute(); // Update const updated = await db.platformNamespaceEvent.update({ where: { id: '' }, data: { namespaceId: '' }, select: { id: true } }).execute(); @@ -804,6 +1547,89 @@ const updated = await db.platformNamespaceEvent.update({ where: { id: '' } const deleted = await db.platformNamespaceEvent.delete({ where: { id: '' } }).execute(); ``` +### `db.integrationProvider` + +CRUD operations for IntegrationProvider records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | +| `slug` | String | Yes | +| `name` | String | Yes | +| `description` | String | Yes | +| `category` | String | Yes | +| `icon` | String | Yes | +| `logo` | ConstructiveInternalTypeImage | Yes | +| `brand` | JSON | Yes | +| `requiredSecrets` | ResourceRequirement | Yes | +| `requiredConfigs` | ResourceRequirement | Yes | + +**Operations:** + +```typescript +// List all integrationProvider records +const items = await db.integrationProvider.findMany({ select: { id: true, createdAt: true, updatedAt: true, slug: true, name: true, description: true, category: true, icon: true, logo: true, brand: true, requiredSecrets: true, requiredConfigs: true } }).execute(); + +// Get one by id +const item = await db.integrationProvider.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, slug: true, name: true, description: true, category: true, icon: true, logo: true, brand: true, requiredSecrets: true, requiredConfigs: true } }).execute(); + +// Create +const created = await db.integrationProvider.create({ data: { slug: '', name: '', description: '', category: '', icon: '', logo: '', brand: '', requiredSecrets: '', requiredConfigs: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.integrationProvider.update({ where: { id: '' }, data: { slug: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.integrationProvider.delete({ where: { id: '' } }).execute(); +``` + +### `db.namespaceEvent` + +CRUD operations for NamespaceEvent records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `createdAt` | Datetime | No | +| `id` | UUID | No | +| `namespaceId` | UUID | Yes | +| `eventType` | String | Yes | +| `actorId` | UUID | Yes | +| `message` | String | Yes | +| `metadata` | JSON | Yes | +| `cpuMillicores` | Int | Yes | +| `memoryBytes` | BigInt | Yes | +| `storageBytes` | BigInt | Yes | +| `networkIngressBytes` | BigInt | Yes | +| `networkEgressBytes` | BigInt | Yes | +| `podCount` | Int | Yes | +| `metrics` | JSON | Yes | +| `databaseId` | UUID | Yes | + +**Operations:** + +```typescript +// List all namespaceEvent records +const items = await db.namespaceEvent.findMany({ select: { createdAt: true, id: true, namespaceId: true, eventType: true, actorId: true, message: true, metadata: true, cpuMillicores: true, memoryBytes: true, storageBytes: true, networkIngressBytes: true, networkEgressBytes: true, podCount: true, metrics: true, databaseId: true } }).execute(); + +// Get one by id +const item = await db.namespaceEvent.findOne({ id: '', select: { createdAt: true, id: true, namespaceId: true, eventType: true, actorId: true, message: true, metadata: true, cpuMillicores: true, memoryBytes: true, storageBytes: true, networkIngressBytes: true, networkEgressBytes: true, podCount: true, metrics: true, databaseId: true } }).execute(); + +// Create +const created = await db.namespaceEvent.create({ data: { namespaceId: '', eventType: '', actorId: '', message: '', metadata: '', cpuMillicores: '', memoryBytes: '', storageBytes: '', networkIngressBytes: '', networkEgressBytes: '', podCount: '', metrics: '', databaseId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.namespaceEvent.update({ where: { id: '' }, data: { namespaceId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.namespaceEvent.delete({ where: { id: '' } }).execute(); +``` + ### `db.functionGraphExecution` CRUD operations for FunctionGraphExecution records. @@ -816,7 +1642,7 @@ CRUD operations for FunctionGraphExecution records. | `id` | UUID | No | | `graphId` | UUID | Yes | | `invocationId` | UUID | Yes | -| `databaseId` | UUID | Yes | +| `scopeId` | UUID | Yes | | `outputNode` | String | Yes | | `outputPort` | String | Yes | | `status` | String | Yes | @@ -833,6 +1659,7 @@ CRUD operations for FunctionGraphExecution records. | `maxTicks` | Int | Yes | | `maxPendingJobs` | Int | Yes | | `timeoutAt` | Datetime | Yes | +| `lastProgressAt` | Datetime | Yes | | `errorCode` | String | Yes | | `errorMessage` | String | Yes | @@ -840,13 +1667,13 @@ CRUD operations for FunctionGraphExecution records. ```typescript // List all functionGraphExecution records -const items = await db.functionGraphExecution.findMany({ select: { startedAt: true, id: true, graphId: true, invocationId: true, databaseId: true, outputNode: true, outputPort: true, status: true, inputPayload: true, outputPayload: true, nodeOutputs: true, executionPlan: true, currentWave: true, parentExecutionId: true, parentNodeName: true, definitionsCommitId: true, tickCount: true, completedAt: true, maxTicks: true, maxPendingJobs: true, timeoutAt: true, errorCode: true, errorMessage: true } }).execute(); +const items = await db.functionGraphExecution.findMany({ select: { startedAt: true, id: true, graphId: true, invocationId: true, scopeId: true, outputNode: true, outputPort: true, status: true, inputPayload: true, outputPayload: true, nodeOutputs: true, executionPlan: true, currentWave: true, parentExecutionId: true, parentNodeName: true, definitionsCommitId: true, tickCount: true, completedAt: true, maxTicks: true, maxPendingJobs: true, timeoutAt: true, lastProgressAt: true, errorCode: true, errorMessage: true } }).execute(); // Get one by id -const item = await db.functionGraphExecution.findOne({ id: '', select: { startedAt: true, id: true, graphId: true, invocationId: true, databaseId: true, outputNode: true, outputPort: true, status: true, inputPayload: true, outputPayload: true, nodeOutputs: true, executionPlan: true, currentWave: true, parentExecutionId: true, parentNodeName: true, definitionsCommitId: true, tickCount: true, completedAt: true, maxTicks: true, maxPendingJobs: true, timeoutAt: true, errorCode: true, errorMessage: true } }).execute(); +const item = await db.functionGraphExecution.findOne({ id: '', select: { startedAt: true, id: true, graphId: true, invocationId: true, scopeId: true, outputNode: true, outputPort: true, status: true, inputPayload: true, outputPayload: true, nodeOutputs: true, executionPlan: true, currentWave: true, parentExecutionId: true, parentNodeName: true, definitionsCommitId: true, tickCount: true, completedAt: true, maxTicks: true, maxPendingJobs: true, timeoutAt: true, lastProgressAt: true, errorCode: true, errorMessage: true } }).execute(); // Create -const created = await db.functionGraphExecution.create({ data: { startedAt: '', graphId: '', invocationId: '', databaseId: '', outputNode: '', outputPort: '', status: '', inputPayload: '', outputPayload: '', nodeOutputs: '', executionPlan: '', currentWave: '', parentExecutionId: '', parentNodeName: '', definitionsCommitId: '', tickCount: '', completedAt: '', maxTicks: '', maxPendingJobs: '', timeoutAt: '', errorCode: '', errorMessage: '' }, select: { id: true } }).execute(); +const created = await db.functionGraphExecution.create({ data: { startedAt: '', graphId: '', invocationId: '', scopeId: '', outputNode: '', outputPort: '', status: '', inputPayload: '', outputPayload: '', nodeOutputs: '', executionPlan: '', currentWave: '', parentExecutionId: '', parentNodeName: '', definitionsCommitId: '', tickCount: '', completedAt: '', maxTicks: '', maxPendingJobs: '', timeoutAt: '', lastProgressAt: '', errorCode: '', errorMessage: '' }, select: { id: true } }).execute(); // Update const updated = await db.functionGraphExecution.update({ where: { id: '' }, data: { startedAt: '' }, select: { id: true } }).execute(); @@ -855,6 +1682,71 @@ const updated = await db.functionGraphExecution.update({ where: { id: '' } const deleted = await db.functionGraphExecution.delete({ where: { id: '' } }).execute(); ``` +### `db.platformFunctionDefinition` + +CRUD operations for PlatformFunctionDefinition records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | +| `scope` | String | Yes | +| `name` | String | Yes | +| `taskIdentifier` | String | Yes | +| `description` | String | Yes | +| `isPublished` | Boolean | Yes | +| `accessChannels` | String | Yes | +| `publishedAt` | Datetime | Yes | +| `maxAttempts` | Int | Yes | +| `priority` | Int | Yes | +| `queueName` | String | Yes | +| `runtime` | String | Yes | +| `targetSchema` | String | Yes | +| `targetFunction` | String | Yes | +| `moduleTable` | String | Yes | +| `functionColumns` | JSON | Yes | +| `payloadArgs` | JSON | Yes | +| `image` | String | Yes | +| `concurrency` | Int | Yes | +| `scaleMin` | Int | Yes | +| `scaleMax` | Int | Yes | +| `timeoutSeconds` | Int | Yes | +| `resources` | JSON | Yes | +| `isBuiltIn` | Boolean | Yes | +| `requiredSecrets` | ResourceRequirement | Yes | +| `requiredConfigs` | ResourceRequirement | Yes | +| `integrations` | String | Yes | +| `requiredBuckets` | String | Yes | +| `requiredModels` | String | Yes | +| `inputs` | JSON | Yes | +| `outputs` | JSON | Yes | +| `props` | JSON | Yes | +| `volatile` | Boolean | Yes | +| `icon` | String | Yes | +| `category` | String | Yes | + +**Operations:** + +```typescript +// List all platformFunctionDefinition records +const items = await db.platformFunctionDefinition.findMany({ select: { id: true, createdAt: true, updatedAt: true, scope: true, name: true, taskIdentifier: true, description: true, isPublished: true, accessChannels: true, publishedAt: true, maxAttempts: true, priority: true, queueName: true, runtime: true, targetSchema: true, targetFunction: true, moduleTable: true, functionColumns: true, payloadArgs: true, image: true, concurrency: true, scaleMin: true, scaleMax: true, timeoutSeconds: true, resources: true, isBuiltIn: true, requiredSecrets: true, requiredConfigs: true, integrations: true, requiredBuckets: true, requiredModels: true, inputs: true, outputs: true, props: true, volatile: true, icon: true, category: true } }).execute(); + +// Get one by id +const item = await db.platformFunctionDefinition.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, scope: true, name: true, taskIdentifier: true, description: true, isPublished: true, accessChannels: true, publishedAt: true, maxAttempts: true, priority: true, queueName: true, runtime: true, targetSchema: true, targetFunction: true, moduleTable: true, functionColumns: true, payloadArgs: true, image: true, concurrency: true, scaleMin: true, scaleMax: true, timeoutSeconds: true, resources: true, isBuiltIn: true, requiredSecrets: true, requiredConfigs: true, integrations: true, requiredBuckets: true, requiredModels: true, inputs: true, outputs: true, props: true, volatile: true, icon: true, category: true } }).execute(); + +// Create +const created = await db.platformFunctionDefinition.create({ data: { scope: '', name: '', taskIdentifier: '', description: '', isPublished: '', accessChannels: '', publishedAt: '', maxAttempts: '', priority: '', queueName: '', runtime: '', targetSchema: '', targetFunction: '', moduleTable: '', functionColumns: '', payloadArgs: '', image: '', concurrency: '', scaleMin: '', scaleMax: '', timeoutSeconds: '', resources: '', isBuiltIn: '', requiredSecrets: '', requiredConfigs: '', integrations: '', requiredBuckets: '', requiredModels: '', inputs: '', outputs: '', props: '', volatile: '', icon: '', category: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformFunctionDefinition.update({ where: { id: '' }, data: { scope: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformFunctionDefinition.delete({ where: { id: '' } }).execute(); +``` + ### `db.functionDefinition` CRUD operations for FunctionDefinition records. @@ -870,11 +1762,18 @@ CRUD operations for FunctionDefinition records. | `name` | String | Yes | | `taskIdentifier` | String | Yes | | `description` | String | Yes | -| `isInvocable` | Boolean | Yes | +| `isPublished` | Boolean | Yes | +| `accessChannels` | String | Yes | +| `publishedAt` | Datetime | Yes | | `maxAttempts` | Int | Yes | | `priority` | Int | Yes | | `queueName` | String | Yes | | `runtime` | String | Yes | +| `targetSchema` | String | Yes | +| `targetFunction` | String | Yes | +| `moduleTable` | String | Yes | +| `functionColumns` | JSON | Yes | +| `payloadArgs` | JSON | Yes | | `image` | String | Yes | | `concurrency` | Int | Yes | | `scaleMin` | Int | Yes | @@ -882,8 +1781,9 @@ CRUD operations for FunctionDefinition records. | `timeoutSeconds` | Int | Yes | | `resources` | JSON | Yes | | `isBuiltIn` | Boolean | Yes | -| `requiredSecrets` | FunctionRequirement | Yes | -| `requiredConfigs` | FunctionRequirement | Yes | +| `requiredSecrets` | ResourceRequirement | Yes | +| `requiredConfigs` | ResourceRequirement | Yes | +| `integrations` | String | Yes | | `requiredBuckets` | String | Yes | | `requiredModels` | String | Yes | | `inputs` | JSON | Yes | @@ -892,18 +1792,19 @@ CRUD operations for FunctionDefinition records. | `volatile` | Boolean | Yes | | `icon` | String | Yes | | `category` | String | Yes | +| `databaseId` | UUID | Yes | **Operations:** ```typescript // List all functionDefinition records -const items = await db.functionDefinition.findMany({ select: { id: true, createdAt: true, updatedAt: true, scope: true, name: true, taskIdentifier: true, description: true, isInvocable: true, maxAttempts: true, priority: true, queueName: true, runtime: true, image: true, concurrency: true, scaleMin: true, scaleMax: true, timeoutSeconds: true, resources: true, isBuiltIn: true, requiredSecrets: true, requiredConfigs: true, requiredBuckets: true, requiredModels: true, inputs: true, outputs: true, props: true, volatile: true, icon: true, category: true } }).execute(); +const items = await db.functionDefinition.findMany({ select: { id: true, createdAt: true, updatedAt: true, scope: true, name: true, taskIdentifier: true, description: true, isPublished: true, accessChannels: true, publishedAt: true, maxAttempts: true, priority: true, queueName: true, runtime: true, targetSchema: true, targetFunction: true, moduleTable: true, functionColumns: true, payloadArgs: true, image: true, concurrency: true, scaleMin: true, scaleMax: true, timeoutSeconds: true, resources: true, isBuiltIn: true, requiredSecrets: true, requiredConfigs: true, integrations: true, requiredBuckets: true, requiredModels: true, inputs: true, outputs: true, props: true, volatile: true, icon: true, category: true, databaseId: true } }).execute(); // Get one by id -const item = await db.functionDefinition.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, scope: true, name: true, taskIdentifier: true, description: true, isInvocable: true, maxAttempts: true, priority: true, queueName: true, runtime: true, image: true, concurrency: true, scaleMin: true, scaleMax: true, timeoutSeconds: true, resources: true, isBuiltIn: true, requiredSecrets: true, requiredConfigs: true, requiredBuckets: true, requiredModels: true, inputs: true, outputs: true, props: true, volatile: true, icon: true, category: true } }).execute(); +const item = await db.functionDefinition.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, scope: true, name: true, taskIdentifier: true, description: true, isPublished: true, accessChannels: true, publishedAt: true, maxAttempts: true, priority: true, queueName: true, runtime: true, targetSchema: true, targetFunction: true, moduleTable: true, functionColumns: true, payloadArgs: true, image: true, concurrency: true, scaleMin: true, scaleMax: true, timeoutSeconds: true, resources: true, isBuiltIn: true, requiredSecrets: true, requiredConfigs: true, integrations: true, requiredBuckets: true, requiredModels: true, inputs: true, outputs: true, props: true, volatile: true, icon: true, category: true, databaseId: true } }).execute(); // Create -const created = await db.functionDefinition.create({ data: { scope: '', name: '', taskIdentifier: '', description: '', isInvocable: '', maxAttempts: '', priority: '', queueName: '', runtime: '', image: '', concurrency: '', scaleMin: '', scaleMax: '', timeoutSeconds: '', resources: '', isBuiltIn: '', requiredSecrets: '', requiredConfigs: '', requiredBuckets: '', requiredModels: '', inputs: '', outputs: '', props: '', volatile: '', icon: '', category: '' }, select: { id: true } }).execute(); +const created = await db.functionDefinition.create({ data: { scope: '', name: '', taskIdentifier: '', description: '', isPublished: '', accessChannels: '', publishedAt: '', maxAttempts: '', priority: '', queueName: '', runtime: '', targetSchema: '', targetFunction: '', moduleTable: '', functionColumns: '', payloadArgs: '', image: '', concurrency: '', scaleMin: '', scaleMax: '', timeoutSeconds: '', resources: '', isBuiltIn: '', requiredSecrets: '', requiredConfigs: '', integrations: '', requiredBuckets: '', requiredModels: '', inputs: '', outputs: '', props: '', volatile: '', icon: '', category: '', databaseId: '' }, select: { id: true } }).execute(); // Update const updated = await db.functionDefinition.update({ where: { id: '' }, data: { scope: '' }, select: { id: true } }).execute(); @@ -944,34 +1845,34 @@ validateFunctionGraph const result = await db.mutation.validateFunctionGraph({ input: { graphId: '' } }).execute(); ``` -### `db.mutation.initEmptyRepo` +### `db.mutation.infraInitEmptyRepo` -initEmptyRepo +infraInitEmptyRepo - **Type:** mutation - **Arguments:** | Argument | Type | |----------|------| - | `input` | InitEmptyRepoInput (required) | + | `input` | InfraInitEmptyRepoInput (required) | ```typescript -const result = await db.mutation.initEmptyRepo({ input: { sId: '', storeId: '' } }).execute(); +const result = await db.mutation.infraInitEmptyRepo({ input: { sId: '', storeId: '' } }).execute(); ``` -### `db.mutation.setDataAtPath` +### `db.mutation.initEmptyRepo` -setDataAtPath +initEmptyRepo - **Type:** mutation - **Arguments:** | Argument | Type | |----------|------| - | `input` | SetDataAtPathInput (required) | + | `input` | InitEmptyRepoInput (required) | ```typescript -const result = await db.mutation.setDataAtPath({ input: { sId: '', root: '', path: '', data: '' } }).execute(); +const result = await db.mutation.initEmptyRepo({ input: { sId: '', storeId: '' } }).execute(); ``` ### `db.mutation.importDefinitions` @@ -989,6 +1890,36 @@ importDefinitions const result = await db.mutation.importDefinitions({ input: { graphId: '', sourceScopeId: '', sourceCommitId: '', contexts: '' } }).execute(); ``` +### `db.mutation.infraSetDataAtPath` + +infraSetDataAtPath + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | InfraSetDataAtPathInput (required) | + +```typescript +const result = await db.mutation.infraSetDataAtPath({ input: { sId: '', root: '', path: '', data: '' } }).execute(); +``` + +### `db.mutation.setDataAtPath` + +setDataAtPath + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | SetDataAtPathInput (required) | + +```typescript +const result = await db.mutation.setDataAtPath({ input: { sId: '', root: '', path: '', data: '' } }).execute(); +``` + ### `db.mutation.copyGraph` copyGraph @@ -1001,7 +1932,7 @@ copyGraph | `input` | CopyGraphInput (required) | ```typescript -const result = await db.mutation.copyGraph({ input: { databaseId: '', graphId: '', name: '' } }).execute(); +const result = await db.mutation.copyGraph({ input: { scopeId: '', graphId: '', name: '' } }).execute(); ``` ### `db.mutation.saveGraph` @@ -1094,6 +2025,21 @@ addNode const result = await db.mutation.addNode({ input: '' }).execute(); ``` +### `db.mutation.infraInsertNodeAtPath` + +infraInsertNodeAtPath + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | InfraInsertNodeAtPathInput (required) | + +```typescript +const result = await db.mutation.infraInsertNodeAtPath({ input: '' }).execute(); +``` + ### `db.mutation.insertNodeAtPath` insertNodeAtPath diff --git a/sdk/constructive-cli/src/compute/orm/index.ts b/sdk/constructive-cli/src/compute/orm/index.ts index ba7ce4651f..4cc4ca7a60 100644 --- a/sdk/constructive-cli/src/compute/orm/index.ts +++ b/sdk/constructive-cli/src/compute/orm/index.ts @@ -5,27 +5,49 @@ */ import { OrmClient } from './client'; import type { OrmClientConfig } from './client'; +import { InfraGetAllRecordModel } from './models/infraGetAllRecord'; import { GetAllRecordModel } from './models/getAllRecord'; +import { InfraRefModel } from './models/infraRef'; +import { InfraStoreModel } from './models/infraStore'; import { FunctionApiBindingModel } from './models/functionApiBinding'; -import { FunctionDeploymentModel } from './models/functionDeployment'; -import { ResourceModel } from './models/resource'; import { FunctionGraphRefModel } from './models/functionGraphRef'; import { FunctionGraphStoreModel } from './models/functionGraphStore'; +import { PlatformFunctionApiBindingModel } from './models/platformFunctionApiBinding'; +import { PlatformResourcesRequirementsStateModel } from './models/platformResourcesRequirementsState'; +import { ResourcesRequirementsStateModel } from './models/resourcesRequirementsState'; +import { PlatformResourceStatusCheckModel } from './models/platformResourceStatusCheck'; +import { PlatformFunctionDeploymentModel } from './models/platformFunctionDeployment'; +import { PlatformResourceModel } from './models/platformResource'; +import { PlatformResourceDefinitionModel } from './models/platformResourceDefinition'; +import { InfraObjectModel } from './models/infraObject'; import { FunctionGraphObjectModel } from './models/functionGraphObject'; +import { PlatformFunctionDeploymentEventModel } from './models/platformFunctionDeploymentEvent'; +import { PlatformResourceEventModel } from './models/platformResourceEvent'; +import { ResourceStatusCheckModel } from './models/resourceStatusCheck'; +import { FunctionDeploymentModel } from './models/functionDeployment'; +import { ResourceModel } from './models/resource'; +import { ResourceDefinitionModel } from './models/resourceDefinition'; import { FunctionDeploymentEventModel } from './models/functionDeploymentEvent'; -import { OrgFunctionExecutionLogModel } from './models/orgFunctionExecutionLog'; +import { PlatformFunctionExecutionLogModel } from './models/platformFunctionExecutionLog'; import { ResourceEventModel } from './models/resourceEvent'; import { FunctionGraphExecutionOutputModel } from './models/functionGraphExecutionOutput'; +import { InfraCommitModel } from './models/infraCommit'; import { FunctionGraphCommitModel } from './models/functionGraphCommit'; -import { SecretDefinitionModel } from './models/secretDefinition'; import { FunctionExecutionLogModel } from './models/functionExecutionLog'; +import { PlatformResourcesResolvedRequirementModel } from './models/platformResourcesResolvedRequirement'; +import { ResourcesResolvedRequirementModel } from './models/resourcesResolvedRequirement'; +import { DbPresetModel } from './models/dbPreset'; +import { PlatformNamespaceModel } from './models/platformNamespace'; import { FunctionGraphModel } from './models/functionGraph'; import { FunctionGraphExecutionNodeStateModel } from './models/functionGraphExecutionNodeState'; -import { PlatformNamespaceModel } from './models/platformNamespace'; -import { OrgFunctionInvocationModel } from './models/orgFunctionInvocation'; +import { NamespaceModel } from './models/namespace'; +import { PlatformFunctionInvocationModel } from './models/platformFunctionInvocation'; import { FunctionInvocationModel } from './models/functionInvocation'; import { PlatformNamespaceEventModel } from './models/platformNamespaceEvent'; +import { IntegrationProviderModel } from './models/integrationProvider'; +import { NamespaceEventModel } from './models/namespaceEvent'; import { FunctionGraphExecutionModel } from './models/functionGraphExecution'; +import { PlatformFunctionDefinitionModel } from './models/platformFunctionDefinition'; import { FunctionDefinitionModel } from './models/functionDefinition'; import { createQueryOperations } from './query'; import { createMutationOperations } from './mutation'; @@ -62,27 +84,49 @@ export { createMutationOperations } from './mutation'; export function createClient(config: OrmClientConfig) { const client = new OrmClient(config); return { + infraGetAllRecord: new InfraGetAllRecordModel(client), getAllRecord: new GetAllRecordModel(client), + infraRef: new InfraRefModel(client), + infraStore: new InfraStoreModel(client), functionApiBinding: new FunctionApiBindingModel(client), - functionDeployment: new FunctionDeploymentModel(client), - resource: new ResourceModel(client), functionGraphRef: new FunctionGraphRefModel(client), functionGraphStore: new FunctionGraphStoreModel(client), + platformFunctionApiBinding: new PlatformFunctionApiBindingModel(client), + platformResourcesRequirementsState: new PlatformResourcesRequirementsStateModel(client), + resourcesRequirementsState: new ResourcesRequirementsStateModel(client), + platformResourceStatusCheck: new PlatformResourceStatusCheckModel(client), + platformFunctionDeployment: new PlatformFunctionDeploymentModel(client), + platformResource: new PlatformResourceModel(client), + platformResourceDefinition: new PlatformResourceDefinitionModel(client), + infraObject: new InfraObjectModel(client), functionGraphObject: new FunctionGraphObjectModel(client), + platformFunctionDeploymentEvent: new PlatformFunctionDeploymentEventModel(client), + platformResourceEvent: new PlatformResourceEventModel(client), + resourceStatusCheck: new ResourceStatusCheckModel(client), + functionDeployment: new FunctionDeploymentModel(client), + resource: new ResourceModel(client), + resourceDefinition: new ResourceDefinitionModel(client), functionDeploymentEvent: new FunctionDeploymentEventModel(client), - orgFunctionExecutionLog: new OrgFunctionExecutionLogModel(client), + platformFunctionExecutionLog: new PlatformFunctionExecutionLogModel(client), resourceEvent: new ResourceEventModel(client), functionGraphExecutionOutput: new FunctionGraphExecutionOutputModel(client), + infraCommit: new InfraCommitModel(client), functionGraphCommit: new FunctionGraphCommitModel(client), - secretDefinition: new SecretDefinitionModel(client), functionExecutionLog: new FunctionExecutionLogModel(client), + platformResourcesResolvedRequirement: new PlatformResourcesResolvedRequirementModel(client), + resourcesResolvedRequirement: new ResourcesResolvedRequirementModel(client), + dbPreset: new DbPresetModel(client), + platformNamespace: new PlatformNamespaceModel(client), functionGraph: new FunctionGraphModel(client), functionGraphExecutionNodeState: new FunctionGraphExecutionNodeStateModel(client), - platformNamespace: new PlatformNamespaceModel(client), - orgFunctionInvocation: new OrgFunctionInvocationModel(client), + namespace: new NamespaceModel(client), + platformFunctionInvocation: new PlatformFunctionInvocationModel(client), functionInvocation: new FunctionInvocationModel(client), platformNamespaceEvent: new PlatformNamespaceEventModel(client), + integrationProvider: new IntegrationProviderModel(client), + namespaceEvent: new NamespaceEventModel(client), functionGraphExecution: new FunctionGraphExecutionModel(client), + platformFunctionDefinition: new PlatformFunctionDefinitionModel(client), functionDefinition: new FunctionDefinitionModel(client), query: createQueryOperations(client), mutation: createMutationOperations(client), diff --git a/sdk/constructive-cli/src/compute/orm/input-types.ts b/sdk/constructive-cli/src/compute/orm/input-types.ts index 6b89295abc..7a8db48e00 100644 --- a/sdk/constructive-cli/src/compute/orm/input-types.ts +++ b/sdk/constructive-cli/src/compute/orm/input-types.ts @@ -232,12 +232,43 @@ export interface UUIDListFilter { } // ============ Custom Scalar Types ============ export type Base64EncodedBinary = unknown; -export type FunctionRequirement = unknown; +export type ConstructiveInternalTypeImage = unknown; +export type ResourceRequirement = unknown; // ============ Entity Types ============ +export interface InfraGetAllRecord { + path?: string[] | null; + data?: Record | null; +} export interface GetAllRecord { path?: string[] | null; data?: Record | null; } +/** Branch heads — mutable pointers into the commit chain */ +export interface InfraRef { + /** Unique ref identifier */ + id: string; + /** Ref name (e.g. HEAD, main) */ + name?: string | null; + /** Opaque store partition key for the global tier */ + scopeId?: string | null; + /** Store this ref belongs to */ + storeId?: string | null; + /** Commit this ref points to */ + commitId?: string | null; +} +/** Named stores — one per version-controlled tree (e.g. one graph, one definition set) */ +export interface InfraStore { + /** Unique store identifier */ + id: string; + /** Human-readable store name */ + name?: string | null; + /** Opaque store partition key for the global tier */ + scopeId?: string | null; + /** Current root object hash of this store */ + hash?: string | null; + /** Timestamp of store creation */ + createdAt?: string | null; +} /** Join table binding function definitions to API endpoints with per-binding alias and config */ export interface FunctionApiBinding { id: string; @@ -250,25 +281,100 @@ export interface FunctionApiBinding { /** Per-binding configuration (overrides, routing rules, etc.) */ config?: Record | null; } -/** Function deployment bindings — ties a function definition to a namespace for Knative provisioning and routing */ -export interface FunctionDeployment { +/** Branch heads — mutable pointers into the commit chain */ +export interface FunctionGraphRef { + /** Unique ref identifier */ + id: string; + /** Ref name (e.g. HEAD, main) */ + name?: string | null; + /** Opaque store partition key for the global tier */ + scopeId?: string | null; + /** Store this ref belongs to */ + storeId?: string | null; + /** Commit this ref points to */ + commitId?: string | null; +} +/** Named stores — one per version-controlled tree (e.g. one graph, one definition set) */ +export interface FunctionGraphStore { + /** Unique store identifier */ id: string; + /** Human-readable store name */ + name?: string | null; + /** Opaque store partition key for the global tier */ + scopeId?: string | null; + /** Current root object hash of this store */ + hash?: string | null; + /** Timestamp of store creation */ createdAt?: string | null; - updatedAt?: string | null; - /** Function definition being deployed to this namespace */ +} +/** Join table binding function definitions to API endpoints with per-binding alias and config */ +export interface PlatformFunctionApiBinding { + id: string; + /** Function definition this binding belongs to */ functionDefinitionId?: string | null; + /** API endpoint this function is bound to */ + apiId?: string | null; + /** Binding alias (e.g. default, staging, production) */ + alias?: string | null; + /** Per-binding configuration (overrides, routing rules, etc.) */ + config?: Record | null; +} +export interface PlatformResourcesRequirementsState { + resourceId?: string | null; + slug?: string | null; + secretsHash?: string | null; + configHash?: string | null; + requirementsHash?: string | null; + secretsObjectName?: string | null; + configObjectName?: string | null; +} +export interface ResourcesRequirementsState { + resourceId?: string | null; + slug?: string | null; + secretsHash?: string | null; + configHash?: string | null; + requirementsHash?: string | null; + secretsObjectName?: string | null; + configObjectName?: string | null; +} +/** On-demand resource status checks — diagnostic snapshots from the runtime (K8s status, conditions, log tails) */ +export interface PlatformResourceStatusCheck { + /** Unique status check identifier */ + id: string; + /** Resource to check */ + resourceId?: string | null; + /** User who requested the check (NULL for system/scheduled) */ + requestedBy?: string | null; + /** When the check was requested */ + requestedAt?: string | null; + /** When the check completed (NULL while pending/running) */ + completedAt?: string | null; + /** Check lifecycle: pending, running, completed, failed */ + status?: string | null; + /** Diagnostic snapshot: k8s_status, conditions, pod_logs_tail, events */ + result?: Record | null; +} +/** Function deployment bindings — ties a handler image to a namespace for Knative provisioning and routing (one row per handler image per namespace) */ +export interface PlatformFunctionDeployment { + id: string; + createdAt?: string | null; + updatedAt?: string | null; /** Target namespace for this deployment (maps to a K8s namespace) */ namespaceId?: string | null; /** Deployment lifecycle status: pending, provisioning, active, failed, scaled_to_zero, deactivated */ status?: string | null; /** Knative service URL (http://{service-name}.{namespace}.svc.cluster.local) — populated after provisioning */ serviceUrl?: string | null; - /** Knative service name — derived from task_identifier at provision time */ + /** 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 | null; /** Deployment revision number (incremented on each redeployment) */ revision?: number | null; - /** Container image override (NULL = inherit from function definition) */ + /** 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 | null; + /** Image tag/version for the handler container (e.g. latest, 2.6.4) */ + imageVersion?: string | null; + /** Handler directory name (e.g. email, document) — used as FN_HANDLER_NAME in combined-image mode to select the entry point */ + handlerName?: string | null; /** Max concurrent requests per pod (NULL = inherit from definition) */ concurrency?: number | null; /** Minimum replica count (NULL = inherit from definition or Knative default) */ @@ -289,11 +395,9 @@ export interface FunctionDeployment { labels?: Record | null; /** Freeform metadata for tooling and operational notes */ annotations?: Record | null; - /** Database that owns this resource (database-scoped isolation) */ - databaseId?: string | null; } /** Unified K8s resource declarations — stores desired state (spec) and observed state (status) for all resource kinds within a namespace */ -export interface Resource { +export interface PlatformResource { id: string; createdAt?: string | null; updatedAt?: string | null; @@ -321,41 +425,68 @@ export interface Resource { labels?: Record | null; /** Freeform metadata for tooling and operational notes */ annotations?: Record | null; - /** Database that owns this resource (database-scoped isolation) */ - databaseId?: string | null; -} -/** Branch heads — mutable pointers into the commit chain */ -export interface FunctionGraphRef { - /** Unique ref identifier */ + /** 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; + /** 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; + /** 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; + /** Definition template this resource was created from (NULL for standalone resources) */ + resourceDefinitionId?: string | null; +} +/** Resource definitions — templates for resource kinds declaring default spec and secret/config requirements */ +export interface PlatformResourceDefinition { id: string; - /** Ref name (e.g. HEAD, main) */ + createdAt?: string | null; + updatedAt?: string | null; + createdBy?: string | null; + updatedBy?: string | null; + /** Namespace this definition belongs to (security boundary, maps to K8s namespace) */ + namespaceId?: string | null; + /** Resource kind: Deployment, StatefulSet, Service, Ingress, Certificate, or custom kinds */ + kind?: string | null; + /** Human-readable definition name */ name?: string | null; - /** Database scope for multi-tenant isolation */ - databaseId?: string | null; - /** Store this ref belongs to */ - storeId?: string | null; - /** Commit this ref points to */ - commitId?: string | null; + /** URL-safe identifier, unique within (namespace_id, kind) */ + slug?: string | null; + /** What this resource definition provides */ + description?: string | null; + /** Template spec for creating resource instances of this kind */ + defaultSpec?: Record | null; + /** Embedded secret requirements: array of (name, required, provider) tuples. provider is the integration slug this requirement belongs to, if any. */ + requiredSecrets?: ResourceRequirement[] | null; + /** Embedded config requirements: array of (name, required, provider) tuples. provider is the integration slug this requirement belongs to, if any. */ + requiredConfigs?: ResourceRequirement[] | null; + /** 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; + /** Key/value pairs for selecting and filtering definitions */ + labels?: Record | null; + /** Freeform metadata for tooling and operational notes */ + annotations?: Record | null; + /** Min age before DELETE of a resource of this kind requires step-up; NULL inherits the 6h default */ + stepUpMinAge?: string | null; } -/** Named stores — one per version-controlled tree (e.g. one graph, one definition set) */ -export interface FunctionGraphStore { - /** Unique store identifier */ +/** Content-addressed Merkle tree objects keyed by UUID v5 hash of data + children */ +export interface InfraObject { + /** Content-addressed UUID v5 — deterministic hash of (data, kids, ktree) */ id: string; - /** Human-readable store name */ - name?: string | null; - /** Database scope for multi-tenant isolation */ - databaseId?: string | null; - /** Current root object hash of this store */ - hash?: string | null; - /** Timestamp of store creation */ + /** Opaque store partition key for the global tier */ + scopeId?: string | null; + /** Ordered array of child object IDs */ + kids?: string[] | null; + /** Ordered array of child path names (parallel to kids) */ + ktree?: string[] | null; + /** Payload data for this object node */ + data?: Record | null; + /** Timestamp of object creation */ createdAt?: string | null; } /** Content-addressed Merkle tree objects keyed by UUID v5 hash of data + children */ export interface FunctionGraphObject { /** Content-addressed UUID v5 — deterministic hash of (data, kids, ktree) */ id: string; - /** Database scope for multi-tenant isolation */ - databaseId?: string | null; + /** Opaque store partition key for the global tier */ + scopeId?: string | null; /** Ordered array of child object IDs */ kids?: string[] | null; /** Ordered array of child path names (parallel to kids) */ @@ -366,6 +497,177 @@ export interface FunctionGraphObject { createdAt?: string | null; } /** Deployment lifecycle events — audit log of provisioning, scaling, and failure events */ +export interface PlatformFunctionDeploymentEvent { + /** Event timestamp (partition key) */ + createdAt?: string | null; + /** Unique event identifier */ + id: string; + /** Deployment this event belongs to */ + deploymentId?: string | null; + /** Event type: provisioned, scaled, failed, deactivated, redeployed, health_check */ + eventType?: string | null; + /** User who triggered this event (NULL for system/automated) */ + actorId?: string | null; + /** Human-readable description of the event */ + message?: string | null; + /** Structured context (old/new values, error details, etc.) */ + metadata?: Record | null; +} +/** Resource lifecycle events — audit log of provisioning, updates, and failure events */ +export interface PlatformResourceEvent { + /** Event timestamp (partition key) */ + createdAt?: string | null; + /** Unique event identifier */ + id: string; + /** Resource this event belongs to */ + resourceId?: string | null; + /** Event type: provisioned, provisioning, updated, failed, deprovisioned, health_check */ + eventType?: string | null; + /** User who triggered this event (NULL for system/automated) */ + actorId?: string | null; + /** Human-readable description of the event */ + message?: string | null; + /** Structured context (old/new values, error details, etc.) */ + metadata?: Record | null; +} +/** On-demand resource status checks — diagnostic snapshots from the runtime (K8s status, conditions, log tails) */ +export interface ResourceStatusCheck { + /** Unique status check identifier */ + id: string; + /** Resource to check */ + resourceId?: string | null; + /** Database that owns this resource (database-scoped isolation) */ + databaseId?: string | null; + /** User who requested the check (NULL for system/scheduled) */ + requestedBy?: string | null; + /** When the check was requested */ + requestedAt?: string | null; + /** When the check completed (NULL while pending/running) */ + completedAt?: string | null; + /** Check lifecycle: pending, running, completed, failed */ + status?: string | null; + /** Diagnostic snapshot: k8s_status, conditions, pod_logs_tail, events */ + result?: Record | null; +} +/** Function deployment bindings — ties a handler image to a namespace for Knative provisioning and routing (one row per handler image per namespace) */ +export interface FunctionDeployment { + id: string; + createdAt?: string | null; + updatedAt?: string | null; + /** Target namespace for this deployment (maps to a K8s namespace) */ + namespaceId?: string | null; + /** Deployment lifecycle status: pending, provisioning, active, failed, scaled_to_zero, deactivated */ + status?: string | null; + /** Knative service URL (http://{service-name}.{namespace}.svc.cluster.local) — populated after provisioning */ + serviceUrl?: string | null; + /** 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 | null; + /** Deployment revision number (incremented on each redeployment) */ + revision?: number | null; + /** 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 | null; + /** Image tag/version for the handler container (e.g. latest, 2.6.4) */ + imageVersion?: string | null; + /** Handler directory name (e.g. email, document) — used as FN_HANDLER_NAME in combined-image mode to select the entry point */ + handlerName?: string | null; + /** Max concurrent requests per pod (NULL = inherit from definition) */ + concurrency?: number | null; + /** Minimum replica count (NULL = inherit from definition or Knative default) */ + scaleMin?: number | null; + /** Maximum replica count (NULL = inherit from definition or Knative default) */ + scaleMax?: number | null; + /** Request timeout override in seconds (NULL = inherit from definition) */ + timeoutSeconds?: number | null; + /** K8s resource spec override: {"requests":{"cpu":"100m","memory":"128Mi"},"limits":{...}} */ + resources?: Record | null; + /** Most recent provisioning or runtime error message */ + lastError?: string | null; + /** Timestamp of the most recent error */ + lastErrorAt?: string | null; + /** Cumulative error count for this deployment */ + errorCount?: number | null; + /** Key/value pairs for selecting and filtering deployments */ + labels?: Record | null; + /** Freeform metadata for tooling and operational notes */ + annotations?: Record | null; + /** Database that owns this resource (database-scoped isolation) */ + databaseId?: string | null; +} +/** Unified K8s resource declarations — stores desired state (spec) and observed state (status) for all resource kinds within a namespace */ +export interface Resource { + id: string; + createdAt?: string | null; + updatedAt?: string | null; + createdBy?: string | null; + updatedBy?: string | null; + /** Namespace this resource belongs to (security boundary, maps to K8s namespace) */ + namespaceId?: string | null; + /** Resource kind: Deployment, StatefulSet, Service, Ingress, Certificate */ + kind?: string | null; + /** Human-readable resource name */ + name?: 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, failed, draining, deleting */ + status?: string | null; + /** Observed state from K8s — populated by handlers after reconciliation (service_url, clone_url, replicas, etc.) */ + statusObserved?: Record | null; + /** Most recent provisioning or runtime error message */ + lastError?: string | null; + /** Cumulative error count for this resource */ + errorCount?: number | null; + /** Key/value pairs for selecting and filtering resources */ + labels?: Record | null; + /** Freeform metadata for tooling and operational notes */ + annotations?: Record | null; + /** Database that owns this resource (database-scoped isolation) */ + databaseId?: string | 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; + /** 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; + /** 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; + /** Definition template this resource was created from (NULL for standalone resources) */ + resourceDefinitionId?: string | null; +} +/** Resource definitions — templates for resource kinds declaring default spec and secret/config requirements */ +export interface ResourceDefinition { + id: string; + createdAt?: string | null; + updatedAt?: string | null; + createdBy?: string | null; + updatedBy?: string | null; + /** Namespace this definition belongs to (security boundary, maps to K8s namespace) */ + namespaceId?: string | null; + /** Resource kind: Deployment, StatefulSet, Service, Ingress, Certificate, or custom kinds */ + kind?: string | null; + /** Human-readable definition name */ + name?: string | null; + /** URL-safe identifier, unique within (namespace_id, kind) */ + slug?: string | null; + /** What this resource definition provides */ + description?: string | null; + /** Template spec for creating resource instances of this kind */ + defaultSpec?: Record | null; + /** Embedded secret requirements: array of (name, required, provider) tuples. provider is the integration slug this requirement belongs to, if any. */ + requiredSecrets?: ResourceRequirement[] | null; + /** Embedded config requirements: array of (name, required, provider) tuples. provider is the integration slug this requirement belongs to, if any. */ + requiredConfigs?: ResourceRequirement[] | null; + /** 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; + /** Key/value pairs for selecting and filtering definitions */ + labels?: Record | null; + /** Freeform metadata for tooling and operational notes */ + annotations?: Record | null; + /** Min age before DELETE of a resource of this kind requires step-up; NULL inherits the 6h default */ + stepUpMinAge?: string | null; + /** Database that owns this resource (database-scoped isolation) */ + databaseId?: string | null; +} +/** Deployment lifecycle events — audit log of provisioning, scaling, and failure events */ export interface FunctionDeploymentEvent { /** Event timestamp (partition key) */ createdAt?: string | null; @@ -385,7 +687,7 @@ export interface FunctionDeploymentEvent { databaseId?: string | null; } /** Function execution logs — structured console output per invocation */ -export interface OrgFunctionExecutionLog { +export interface PlatformFunctionExecutionLog { /** Log entry timestamp (partition key) */ createdAt?: string | null; /** Unique log entry identifier */ @@ -428,21 +730,21 @@ export interface FunctionGraphExecutionOutput { createdAt?: string | null; /** Unique execution output identifier */ id: string; - /** Scope for multi-tenant isolation */ - databaseId?: string | null; + /** Opaque store partition key for the global tier */ + scopeId?: string | null; /** SHA-256 hash of the data JSONB — content-addressed deduplication */ hash?: Base64EncodedBinary | null; /** The actual output payload from a completed node */ data?: Record | null; } /** Commit history — each commit snapshots a tree root for a store */ -export interface FunctionGraphCommit { +export interface InfraCommit { /** Unique commit identifier */ id: string; /** Optional commit message */ message?: string | null; - /** Database scope for multi-tenant isolation */ - databaseId?: string | null; + /** Opaque store partition key for the global tier */ + scopeId?: string | null; /** Store this commit belongs to */ storeId?: string | null; /** Parent commit IDs (supports merge commits) */ @@ -456,24 +758,27 @@ export interface FunctionGraphCommit { /** Commit timestamp */ date?: string | null; } -/** Global secret name registry — declares which secrets the platform recognizes. Actual values live in app_secrets. */ -export interface SecretDefinition { +/** Commit history — each commit snapshots a tree root for a store */ +export interface FunctionGraphCommit { + /** Unique commit identifier */ id: string; - createdAt?: string | null; - updatedAt?: string | null; - /** Secret name (must match app_secrets.name for resolution) */ - name?: string | null; - /** Human-readable description of what this secret is used for */ - description?: string | null; - /** Whether this row was seeded as a built-in secret definition. Built-in rows are immutable. */ - isBuiltIn?: boolean | null; - /** Key-value metadata for filtering and grouping secret definitions */ - labels?: Record | null; - /** Freeform metadata annotations for secret definitions */ - annotations?: Record | null; - /** Database that owns this resource (database-scoped isolation) */ - databaseId?: string | null; -} + /** Optional commit message */ + message?: string | null; + /** Opaque store partition key for the global tier */ + scopeId?: string | null; + /** Store this commit belongs to */ + storeId?: string | null; + /** Parent commit IDs (supports merge commits) */ + parentIds?: string[] | null; + /** User who authored the changes */ + authorId?: string | null; + /** User who committed (may differ from author) */ + committerId?: string | null; + /** Root object ID of the tree snapshot at this commit */ + treeId?: string | null; + /** Commit timestamp */ + date?: string | null; +} /** Function execution logs — structured console output per invocation */ export interface FunctionExecutionLog { /** Log entry timestamp (partition key) */ @@ -495,12 +800,85 @@ export interface FunctionExecutionLog { /** Database that owns this resource (database-scoped isolation) */ databaseId?: string | null; } +export interface PlatformResourcesResolvedRequirement { + resourceId?: string | null; + slug?: string | null; + namespaceId?: string | null; + requirementKind?: string | null; + name?: string | null; + required?: boolean | null; + atomId?: string | null; + present?: boolean | null; + secretsObjectName?: string | null; + configObjectName?: string | null; +} +export interface ResourcesResolvedRequirement { + resourceId?: string | null; + slug?: string | null; + namespaceId?: string | null; + requirementKind?: string | null; + name?: string | null; + required?: boolean | null; + atomId?: string | null; + present?: boolean | null; + secretsObjectName?: string | null; + configObjectName?: string | null; +} +/** Database provisioning preset catalog — merkle-versioned head over the infra store */ +export interface DbPreset { + /** Unique preset identifier */ + id: string; + /** Infra Merkle store holding this preset's history (stamped by the versioned trigger) */ + storeId?: string | null; + /** Preset slug (unique per scope); the preset's path in the infra tree is [db_preset, slug] */ + slug?: string | null; + /** Preset definition (modules + options) — the readily-cached head; history lives in the infra store */ + definition?: Record | null; + /** Infra store commit for the current definition (stamped by the versioned trigger on every write) */ + commitId?: string | null; + /** 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 | null; + /** Human-readable preset name */ + label?: string | null; + /** Human-readable description of the preset */ + description?: string | null; + /** Whether this preset is selectable for new databases */ + active?: boolean | null; + /** Timestamp of preset creation */ + createdAt?: string | null; + /** Timestamp of last modification */ + updatedAt?: string | null; +} +/** Logical namespace containers for grouping secrets, config, functions, and other resources */ +export interface PlatformNamespace { + id: string; + createdAt?: string | null; + updatedAt?: string | null; + /** Human-readable namespace name (e.g. default, production, oauth) */ + name?: string | null; + /** Globally unique computed namespace identifier via inflection.underscore */ + namespaceName?: string | null; + /** Optional human-readable description of this namespace */ + description?: string | null; + /** Whether this namespace is active (soft-disable for filtering) */ + isActive?: boolean | null; + /** Namespace provisioning lifecycle status: pending, provisioning, active, failed */ + status?: string | null; + /** Most recent provisioning or reconcile error message */ + lastError?: string | null; + /** Key/value pairs for selecting and filtering namespaces */ + labels?: Record | null; + /** Freeform metadata for tooling and operational notes */ + annotations?: Record | null; + /** true = provisioned by the platform via jobs, false = unmanaged/platform-native (bootstrapped externally) */ + isManaged?: boolean | null; +} /** Flow graph definitions — FBP graphs stored in the dedicated graph Merkle store */ export interface FunctionGraph { /** Unique graph identifier */ id: string; - /** Database scope for multi-tenant isolation */ - databaseId?: string | null; + /** Opaque store partition key for the global tier */ + scopeId?: string | null; /** Graph store (Merkle store) holding the graph definition */ storeId?: string | null; /** Evaluator/runtime context (function, js, sql, system) */ @@ -530,8 +908,8 @@ export interface FunctionGraphExecutionNodeState { id: string; /** FK to the parent graph execution */ executionId?: string | null; - /** Scope for multi-tenant isolation */ - databaseId?: string | null; + /** Opaque store partition key for the global tier */ + scopeId?: string | null; /** 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 */ @@ -550,7 +928,7 @@ export interface FunctionGraphExecutionNodeState { outputId?: string | null; } /** Logical namespace containers for grouping secrets, config, functions, and other resources */ -export interface PlatformNamespace { +export interface Namespace { id: string; createdAt?: string | null; updatedAt?: string | null; @@ -562,21 +940,21 @@ export interface PlatformNamespace { description?: string | null; /** Whether this namespace is active (soft-disable for filtering) */ isActive?: boolean | null; + /** Namespace provisioning lifecycle status: pending, provisioning, active, failed */ + status?: string | null; + /** Most recent provisioning or reconcile error message */ + lastError?: string | null; /** Key/value pairs for selecting and filtering namespaces */ labels?: Record | null; /** Freeform metadata for tooling and operational notes */ annotations?: Record | null; /** Database that owns this resource (database-scoped isolation) */ databaseId?: string | null; - /** Database that created this namespace (NULL for platform-native namespaces) */ - sourceDatabaseId?: string | null; - /** Origin scope: platform, org, app — indicates where this namespace was created */ - sourceScope?: string | null; - /** true = created by a child scope mirror trigger, false = platform-native */ + /** true = provisioned by the platform via jobs, false = unmanaged/platform-native (bootstrapped externally) */ isManaged?: boolean | null; } /** Function invocation log — INSERT to call a function (business-layer, metered). Linked to definitions by task_identifier string. */ -export interface OrgFunctionInvocation { +export interface PlatformFunctionInvocation { /** Invocation creation timestamp (partition key) */ createdAt?: string | null; /** Unique invocation identifier */ @@ -669,6 +1047,61 @@ export interface PlatformNamespaceEvent { podCount?: number | null; /** Additional resource metrics (gpu, replicas, quotas, etc.) */ metrics?: Record | null; +} +/** 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. */ +export interface IntegrationProvider { + id: string; + createdAt?: string | null; + updatedAt?: string | null; + /** Stable URL-safe identifier for the provider. Other tables match by this string, not by FK. */ + slug?: string | null; + /** Human-readable brand name (e.g. 'Mailgun', 'PostgreSQL') */ + name?: string | null; + /** Short description of what this integration provides and when to use it */ + description?: string | null; + /** Browser category (e.g. email, database, storage, ai, analytics) */ + category?: string | null; + /** Icon identifier for the UI (e.g. mail, database, cloud) */ + icon?: string | null; + /** Provider logo as an image domain value (url, id, key, bucket, provider) */ + logo?: ConstructiveInternalTypeImage | null; + /** Brand metadata: colors, fonts, and other provider-specific styling. Not a foreign key. */ + brand?: Record | null; + /** 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[] | null; + /** 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[] | null; +} +/** Namespace lifecycle events — audit log of creation, activation, deactivation, label changes */ +export interface NamespaceEvent { + /** Event timestamp (partition key) */ + createdAt?: string | null; + /** Unique event identifier */ + id: string; + /** Namespace this event belongs to */ + namespaceId?: string | null; + /** Event type: created, activated, deactivated, labels_updated, annotations_updated, renamed */ + eventType?: string | null; + /** User who triggered this event (NULL for system/automated) */ + actorId?: string | null; + /** Human-readable description of the event */ + message?: string | null; + /** Structured context (old/new values, labels diff, etc.) */ + metadata?: Record | null; + /** CPU usage in millicores at time of event */ + cpuMillicores?: number | null; + /** Memory usage in bytes at time of event */ + memoryBytes?: string | null; + /** Storage usage in bytes at time of event */ + storageBytes?: string | null; + /** Network ingress in bytes during event window */ + networkIngressBytes?: string | null; + /** Network egress in bytes during event window */ + networkEgressBytes?: string | null; + /** Number of active pods in the namespace at time of event */ + podCount?: number | null; + /** Additional resource metrics (gpu, replicas, quotas, etc.) */ + metrics?: Record | null; /** Database that owns this resource (database-scoped isolation) */ databaseId?: string | null; } @@ -682,9 +1115,9 @@ export interface FunctionGraphExecution { graphId?: string | null; /** Parent function_invocations row (for metering) */ invocationId?: string | null; - /** Scope for multi-tenant isolation */ - databaseId?: string | null; - /** Target output boundary node name to resolve */ + /** Opaque store partition key for the global tier */ + scopeId?: string | null; + /** Target output boundary node name to resolve; NULL derives completion from the graph's graphOutput nodes */ outputNode?: string | null; /** Target output port name (default: value) */ outputPort?: string | null; @@ -716,12 +1149,88 @@ export interface FunctionGraphExecution { maxPendingJobs?: number | null; /** Absolute deadline — execution fails if still running after this time */ timeoutAt?: string | null; + /** Timestamp of the last real progress (node enqueue, node output, completion) — drives the activity-debounced watchdog */ + lastProgressAt?: string | null; /** Machine-readable error code when status = failed */ errorCode?: string | null; /** Human-readable error description when status = failed */ errorMessage?: string | null; } /** Function definitions — registered cloud functions with routing, queue, and retry configuration */ +export interface PlatformFunctionDefinition { + id: string; + createdAt?: string | null; + updatedAt?: string | null; + /** Function grouping scope (e.g. email, embed, chunk, custom) */ + scope?: string | null; + /** Function name within scope (e.g. send_verification_link, process_file_embedding) */ + name?: string | null; + /** Computed routing slug: scope:name (used by Knative job worker for dispatch) */ + taskIdentifier?: string | null; + /** Human-readable description of what this function does */ + description?: string | null; + /** Whether this function definition is published to the public catalog for direct authenticated invocation. Default false = internal-only via add_job() */ + isPublished?: boolean | null; + /** Non-public invocation channels this function may be exposed through (api, graph). Internal job dispatch is implicit and never listed. Default [] = job worker only. */ + accessChannels?: string[] | null; + /** Timestamp when this function was published. NULL means immediately published when is_published is true; future timestamps delay public visibility */ + publishedAt?: string | null; + /** Maximum retry attempts for the underlying job */ + maxAttempts?: number | null; + /** Job priority (lower = higher priority) */ + priority?: number | null; + /** Job queue name for serialization (e.g. email, ai, default) */ + queueName?: string | null; + /** Execution mode: http (Knative Service dispatch), inline (in-process in compute worker), handler (registered infrastructure handler), or sql (generic SQL dispatch via a trusted direct target or module-resolved function names) */ + runtime?: string | null; + /** Schema of the SQL function to invoke when runtime=sql (direct mode). NULL for module mode and other runtimes. */ + targetSchema?: string | null; + /** Name of the SQL function to invoke when runtime=sql (direct mode). NULL for module mode and other runtimes. */ + targetFunction?: string | null; + /** 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 | null; + /** 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 | null; + /** Ordered bind-parameter mapping for runtime=sql: [{name, type}]. payload[name] is bound as $n::type. */ + payloadArgs?: Record | null; + /** Docker image reference (e.g. ghcr.io/constructive-io/email-send-fn:latest). Required when runtime=http. NULL for inline functions. */ + image?: string | null; + /** Knative containerConcurrency — max concurrent requests per pod instance */ + concurrency?: number | null; + /** Minimum pod count for Knative autoscaling (minScale) */ + scaleMin?: number | null; + /** Maximum pod count for Knative autoscaling (maxScale) */ + scaleMax?: number | null; + /** Knative request timeout in seconds */ + timeoutSeconds?: number | null; + /** Container resource requests and limits: {requests: {memory, cpu}, limits: {memory, cpu}} */ + resources?: Record | null; + /** Whether this function is a built-in platform function (synced from platform) vs user-created */ + isBuiltIn?: boolean | null; + /** Embedded secret requirements: array of (name, required, provider) tuples. provider is the integration slug this requirement belongs to, if any. */ + requiredSecrets?: ResourceRequirement[] | null; + /** Embedded config requirements: array of (name, required, provider) tuples. provider is the integration slug this requirement belongs to, if any. */ + requiredConfigs?: ResourceRequirement[] | null; + /** 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[] | null; + /** Bucket keys this function needs (e.g. uploads, exports). Empty = no bucket requirements. */ + requiredBuckets?: string[] | null; + /** Inference model whitelist (e.g. gpt-4o, claude-3). Empty = no model requirements. */ + requiredModels?: string[] | null; + /** Data input ports: [{name, type, description?, optional?, multi?, schema?}] */ + inputs?: Record | null; + /** Data output ports: [{name, type, description?, optional?, multi?, schema?}] */ + outputs?: Record | null; + /** Configuration properties: [{name, type, default?, description?, required?, schema?}] */ + props?: Record | null; + /** Whether this function has side effects and cannot be cached or memoized */ + volatile?: boolean | null; + /** Icon identifier for UI palette rendering (e.g. mail, database, code) */ + icon?: string | null; + /** Palette grouping category (e.g. email, data, ai, custom) */ + category?: string | null; +} +/** Function definitions — registered cloud functions with routing, queue, and retry configuration */ export interface FunctionDefinition { id: string; createdAt?: string | null; @@ -734,16 +1243,30 @@ export interface FunctionDefinition { taskIdentifier?: string | null; /** Human-readable description of what this function does */ description?: string | null; - /** Whether this function can be called via function_invocations (public API). Default false = internal-only via add_job() */ - isInvocable?: boolean | null; + /** Whether this function definition is published to the public catalog for direct authenticated invocation. Default false = internal-only via add_job() */ + isPublished?: boolean | null; + /** Non-public invocation channels this function may be exposed through (api, graph). Internal job dispatch is implicit and never listed. Default [] = job worker only. */ + accessChannels?: string[] | null; + /** Timestamp when this function was published. NULL means immediately published when is_published is true; future timestamps delay public visibility */ + publishedAt?: string | null; /** Maximum retry attempts for the underlying job */ maxAttempts?: number | null; /** Job priority (lower = higher priority) */ priority?: number | null; /** Job queue name for serialization (e.g. email, ai, default) */ queueName?: string | null; - /** Execution mode: http (Knative Service dispatch) or inline (in-process in compute worker) */ + /** Execution mode: http (Knative Service dispatch), inline (in-process in compute worker), handler (registered infrastructure handler), or sql (generic SQL dispatch via a trusted direct target or module-resolved function names) */ runtime?: string | null; + /** Schema of the SQL function to invoke when runtime=sql (direct mode). NULL for module mode and other runtimes. */ + targetSchema?: string | null; + /** Name of the SQL function to invoke when runtime=sql (direct mode). NULL for module mode and other runtimes. */ + targetFunction?: string | null; + /** 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 | null; + /** 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 | null; + /** Ordered bind-parameter mapping for runtime=sql: [{name, type}]. payload[name] is bound as $n::type. */ + payloadArgs?: Record | null; /** Docker image reference (e.g. ghcr.io/constructive-io/email-send-fn:latest). Required when runtime=http. NULL for inline functions. */ image?: string | null; /** Knative containerConcurrency — max concurrent requests per pod instance */ @@ -758,10 +1281,12 @@ export interface FunctionDefinition { resources?: Record | null; /** Whether this function is a built-in platform function (synced from platform) vs user-created */ isBuiltIn?: boolean | null; - /** Embedded secret requirements: array of (name, required) tuples */ - requiredSecrets?: FunctionRequirement[] | null; - /** Embedded config requirements: array of (name, required) tuples */ - requiredConfigs?: FunctionRequirement[] | null; + /** Embedded secret requirements: array of (name, required, provider) tuples. provider is the integration slug this requirement belongs to, if any. */ + requiredSecrets?: ResourceRequirement[] | null; + /** Embedded config requirements: array of (name, required, provider) tuples. provider is the integration slug this requirement belongs to, if any. */ + requiredConfigs?: ResourceRequirement[] | null; + /** 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[] | null; /** Bucket keys this function needs (e.g. uploads, exports). Empty = no bucket requirements. */ requiredBuckets?: string[] | null; /** Inference model whitelist (e.g. gpt-4o, claude-3). Empty = no model requirements. */ @@ -778,6 +1303,8 @@ export interface FunctionDefinition { icon?: string | null; /** Palette grouping category (e.g. email, data, ai, custom) */ category?: string | null; + /** Database that owns this resource (database-scoped isolation) */ + databaseId?: string | null; } // ============ Relation Helper Types ============ export interface ConnectionResult { @@ -792,79 +1319,175 @@ export interface PageInfo { endCursor?: string | null; } // ============ Entity Relation Types ============ +export interface InfraGetAllRecordRelations {} export interface GetAllRecordRelations {} +export interface InfraRefRelations {} +export interface InfraStoreRelations {} export interface FunctionApiBindingRelations { functionDefinition?: FunctionDefinition | null; } -export interface FunctionDeploymentRelations { - functionDefinition?: FunctionDefinition | null; +export interface FunctionGraphRefRelations {} +export interface FunctionGraphStoreRelations {} +export interface PlatformFunctionApiBindingRelations { + functionDefinition?: PlatformFunctionDefinition | null; +} +export interface PlatformResourcesRequirementsStateRelations {} +export interface ResourcesRequirementsStateRelations {} +export interface PlatformResourceStatusCheckRelations { + resource?: PlatformResource | null; +} +export interface PlatformFunctionDeploymentRelations { namespace?: PlatformNamespace | null; } -export interface ResourceRelations { +export interface PlatformResourceRelations { namespace?: PlatformNamespace | null; + resourceDefinition?: PlatformResourceDefinition | null; + platformResourceStatusChecksByResourceId?: ConnectionResult; } -export interface FunctionGraphRefRelations {} -export interface FunctionGraphStoreRelations {} +export interface PlatformResourceDefinitionRelations { + namespace?: PlatformNamespace | null; +} +export interface InfraObjectRelations {} export interface FunctionGraphObjectRelations {} +export interface PlatformFunctionDeploymentEventRelations {} +export interface PlatformResourceEventRelations {} +export interface ResourceStatusCheckRelations { + resource?: Resource | null; +} +export interface FunctionDeploymentRelations { + namespace?: Namespace | null; +} +export interface ResourceRelations { + namespace?: Namespace | null; + resourceDefinition?: ResourceDefinition | null; + resourceStatusChecks?: ConnectionResult; +} +export interface ResourceDefinitionRelations { + namespace?: Namespace | null; +} export interface FunctionDeploymentEventRelations {} -export interface OrgFunctionExecutionLogRelations {} +export interface PlatformFunctionExecutionLogRelations {} export interface ResourceEventRelations {} export interface FunctionGraphExecutionOutputRelations {} +export interface InfraCommitRelations {} export interface FunctionGraphCommitRelations {} -export interface SecretDefinitionRelations {} export interface FunctionExecutionLogRelations {} +export interface PlatformResourcesResolvedRequirementRelations {} +export interface ResourcesResolvedRequirementRelations {} +export interface DbPresetRelations {} +export interface PlatformNamespaceRelations { + platformFunctionDeploymentsByNamespaceId?: ConnectionResult; + platformResourcesByNamespaceId?: ConnectionResult; + platformResourceDefinitionsByNamespaceId?: ConnectionResult; +} export interface FunctionGraphRelations {} export interface FunctionGraphExecutionNodeStateRelations {} -export interface PlatformNamespaceRelations { - functionDeploymentsByNamespaceId?: ConnectionResult; - resourcesByNamespaceId?: ConnectionResult; +export interface NamespaceRelations { + functionDeployments?: ConnectionResult; + resources?: ConnectionResult; + resourceDefinitions?: ConnectionResult; } -export interface OrgFunctionInvocationRelations {} +export interface PlatformFunctionInvocationRelations {} export interface FunctionInvocationRelations {} export interface PlatformNamespaceEventRelations {} +export interface IntegrationProviderRelations {} +export interface NamespaceEventRelations {} export interface FunctionGraphExecutionRelations { graph?: FunctionGraph | null; } +export interface PlatformFunctionDefinitionRelations { + platformFunctionApiBindingsByFunctionDefinitionId?: ConnectionResult; +} export interface FunctionDefinitionRelations { functionApiBindings?: ConnectionResult; - functionDeployments?: ConnectionResult; } // ============ Entity Types With Relations ============ +export type InfraGetAllRecordWithRelations = InfraGetAllRecord & InfraGetAllRecordRelations; export type GetAllRecordWithRelations = GetAllRecord & GetAllRecordRelations; +export type InfraRefWithRelations = InfraRef & InfraRefRelations; +export type InfraStoreWithRelations = InfraStore & InfraStoreRelations; export type FunctionApiBindingWithRelations = FunctionApiBinding & FunctionApiBindingRelations; -export type FunctionDeploymentWithRelations = FunctionDeployment & FunctionDeploymentRelations; -export type ResourceWithRelations = Resource & ResourceRelations; export type FunctionGraphRefWithRelations = FunctionGraphRef & FunctionGraphRefRelations; export type FunctionGraphStoreWithRelations = FunctionGraphStore & FunctionGraphStoreRelations; +export type PlatformFunctionApiBindingWithRelations = PlatformFunctionApiBinding & + PlatformFunctionApiBindingRelations; +export type PlatformResourcesRequirementsStateWithRelations = PlatformResourcesRequirementsState & + PlatformResourcesRequirementsStateRelations; +export type ResourcesRequirementsStateWithRelations = ResourcesRequirementsState & + ResourcesRequirementsStateRelations; +export type PlatformResourceStatusCheckWithRelations = PlatformResourceStatusCheck & + PlatformResourceStatusCheckRelations; +export type PlatformFunctionDeploymentWithRelations = PlatformFunctionDeployment & + PlatformFunctionDeploymentRelations; +export type PlatformResourceWithRelations = PlatformResource & PlatformResourceRelations; +export type PlatformResourceDefinitionWithRelations = PlatformResourceDefinition & + PlatformResourceDefinitionRelations; +export type InfraObjectWithRelations = InfraObject & InfraObjectRelations; export type FunctionGraphObjectWithRelations = FunctionGraphObject & FunctionGraphObjectRelations; +export type PlatformFunctionDeploymentEventWithRelations = PlatformFunctionDeploymentEvent & + PlatformFunctionDeploymentEventRelations; +export type PlatformResourceEventWithRelations = PlatformResourceEvent & + PlatformResourceEventRelations; +export type ResourceStatusCheckWithRelations = ResourceStatusCheck & ResourceStatusCheckRelations; +export type FunctionDeploymentWithRelations = FunctionDeployment & FunctionDeploymentRelations; +export type ResourceWithRelations = Resource & ResourceRelations; +export type ResourceDefinitionWithRelations = ResourceDefinition & ResourceDefinitionRelations; export type FunctionDeploymentEventWithRelations = FunctionDeploymentEvent & FunctionDeploymentEventRelations; -export type OrgFunctionExecutionLogWithRelations = OrgFunctionExecutionLog & - OrgFunctionExecutionLogRelations; +export type PlatformFunctionExecutionLogWithRelations = PlatformFunctionExecutionLog & + PlatformFunctionExecutionLogRelations; export type ResourceEventWithRelations = ResourceEvent & ResourceEventRelations; export type FunctionGraphExecutionOutputWithRelations = FunctionGraphExecutionOutput & FunctionGraphExecutionOutputRelations; +export type InfraCommitWithRelations = InfraCommit & InfraCommitRelations; export type FunctionGraphCommitWithRelations = FunctionGraphCommit & FunctionGraphCommitRelations; -export type SecretDefinitionWithRelations = SecretDefinition & SecretDefinitionRelations; export type FunctionExecutionLogWithRelations = FunctionExecutionLog & FunctionExecutionLogRelations; +export type PlatformResourcesResolvedRequirementWithRelations = + PlatformResourcesResolvedRequirement & PlatformResourcesResolvedRequirementRelations; +export type ResourcesResolvedRequirementWithRelations = ResourcesResolvedRequirement & + ResourcesResolvedRequirementRelations; +export type DbPresetWithRelations = DbPreset & DbPresetRelations; +export type PlatformNamespaceWithRelations = PlatformNamespace & PlatformNamespaceRelations; export type FunctionGraphWithRelations = FunctionGraph & FunctionGraphRelations; export type FunctionGraphExecutionNodeStateWithRelations = FunctionGraphExecutionNodeState & FunctionGraphExecutionNodeStateRelations; -export type PlatformNamespaceWithRelations = PlatformNamespace & PlatformNamespaceRelations; -export type OrgFunctionInvocationWithRelations = OrgFunctionInvocation & - OrgFunctionInvocationRelations; +export type NamespaceWithRelations = Namespace & NamespaceRelations; +export type PlatformFunctionInvocationWithRelations = PlatformFunctionInvocation & + PlatformFunctionInvocationRelations; export type FunctionInvocationWithRelations = FunctionInvocation & FunctionInvocationRelations; export type PlatformNamespaceEventWithRelations = PlatformNamespaceEvent & PlatformNamespaceEventRelations; +export type IntegrationProviderWithRelations = IntegrationProvider & IntegrationProviderRelations; +export type NamespaceEventWithRelations = NamespaceEvent & NamespaceEventRelations; export type FunctionGraphExecutionWithRelations = FunctionGraphExecution & FunctionGraphExecutionRelations; +export type PlatformFunctionDefinitionWithRelations = PlatformFunctionDefinition & + PlatformFunctionDefinitionRelations; export type FunctionDefinitionWithRelations = FunctionDefinition & FunctionDefinitionRelations; // ============ Entity Select Types ============ +export type InfraGetAllRecordSelect = { + path?: boolean; + data?: boolean; +}; export type GetAllRecordSelect = { path?: boolean; data?: boolean; }; +export type InfraRefSelect = { + id?: boolean; + name?: boolean; + scopeId?: boolean; + storeId?: boolean; + commitId?: boolean; +}; +export type InfraStoreSelect = { + id?: boolean; + name?: boolean; + scopeId?: boolean; + hash?: boolean; + createdAt?: boolean; +}; export type FunctionApiBindingSelect = { id?: boolean; functionDefinitionId?: boolean; @@ -875,17 +1498,72 @@ export type FunctionApiBindingSelect = { select: FunctionDefinitionSelect; }; }; -export type FunctionDeploymentSelect = { +export type FunctionGraphRefSelect = { + id?: boolean; + name?: boolean; + scopeId?: boolean; + storeId?: boolean; + commitId?: boolean; +}; +export type FunctionGraphStoreSelect = { id?: boolean; + name?: boolean; + scopeId?: boolean; + hash?: boolean; createdAt?: boolean; - updatedAt?: boolean; +}; +export type PlatformFunctionApiBindingSelect = { + id?: boolean; functionDefinitionId?: boolean; + apiId?: boolean; + alias?: boolean; + config?: boolean; + functionDefinition?: { + select: PlatformFunctionDefinitionSelect; + }; +}; +export type PlatformResourcesRequirementsStateSelect = { + resourceId?: boolean; + slug?: boolean; + secretsHash?: boolean; + configHash?: boolean; + requirementsHash?: boolean; + secretsObjectName?: boolean; + configObjectName?: boolean; +}; +export type ResourcesRequirementsStateSelect = { + resourceId?: boolean; + slug?: boolean; + secretsHash?: boolean; + configHash?: boolean; + requirementsHash?: boolean; + secretsObjectName?: boolean; + configObjectName?: boolean; +}; +export type PlatformResourceStatusCheckSelect = { + id?: boolean; + resourceId?: boolean; + requestedBy?: boolean; + requestedAt?: boolean; + completedAt?: boolean; + status?: boolean; + result?: boolean; + resource?: { + select: PlatformResourceSelect; + }; +}; +export type PlatformFunctionDeploymentSelect = { + id?: boolean; + createdAt?: boolean; + updatedAt?: boolean; namespaceId?: boolean; status?: boolean; serviceUrl?: boolean; serviceName?: boolean; revision?: boolean; image?: boolean; + imageVersion?: boolean; + handlerName?: boolean; concurrency?: boolean; scaleMin?: boolean; scaleMax?: boolean; @@ -896,15 +1574,11 @@ export type FunctionDeploymentSelect = { errorCount?: boolean; labels?: boolean; annotations?: boolean; - databaseId?: boolean; - functionDefinition?: { - select: FunctionDefinitionSelect; - }; namespace?: { select: PlatformNamespaceSelect; }; }; -export type ResourceSelect = { +export type PlatformResourceSelect = { id?: boolean; createdAt?: boolean; updatedAt?: boolean; @@ -921,33 +1595,177 @@ export type ResourceSelect = { errorCount?: boolean; labels?: boolean; annotations?: boolean; - databaseId?: boolean; + requiredSecrets?: boolean; + requiredConfigs?: boolean; + integrations?: boolean; + resourceDefinitionId?: boolean; namespace?: { select: PlatformNamespaceSelect; }; + resourceDefinition?: { + select: PlatformResourceDefinitionSelect; + }; + platformResourceStatusChecksByResourceId?: { + select: PlatformResourceStatusCheckSelect; + first?: number; + filter?: PlatformResourceStatusCheckFilter; + orderBy?: PlatformResourceStatusCheckOrderBy[]; + }; }; -export type FunctionGraphRefSelect = { - id?: boolean; - name?: boolean; - databaseId?: boolean; - storeId?: boolean; - commitId?: boolean; -}; -export type FunctionGraphStoreSelect = { +export type PlatformResourceDefinitionSelect = { id?: boolean; - name?: boolean; - databaseId?: boolean; - hash?: boolean; createdAt?: boolean; -}; -export type FunctionGraphObjectSelect = { - id?: boolean; - databaseId?: boolean; + updatedAt?: boolean; + createdBy?: boolean; + updatedBy?: boolean; + namespaceId?: boolean; + kind?: boolean; + name?: boolean; + slug?: boolean; + description?: boolean; + defaultSpec?: boolean; + requiredSecrets?: boolean; + requiredConfigs?: boolean; + integrations?: boolean; + labels?: boolean; + annotations?: boolean; + stepUpMinAge?: boolean; + namespace?: { + select: PlatformNamespaceSelect; + }; +}; +export type InfraObjectSelect = { + id?: boolean; + scopeId?: boolean; + kids?: boolean; + ktree?: boolean; + data?: boolean; + createdAt?: boolean; +}; +export type FunctionGraphObjectSelect = { + id?: boolean; + scopeId?: boolean; kids?: boolean; ktree?: boolean; data?: boolean; createdAt?: boolean; }; +export type PlatformFunctionDeploymentEventSelect = { + createdAt?: boolean; + id?: boolean; + deploymentId?: boolean; + eventType?: boolean; + actorId?: boolean; + message?: boolean; + metadata?: boolean; +}; +export type PlatformResourceEventSelect = { + createdAt?: boolean; + id?: boolean; + resourceId?: boolean; + eventType?: boolean; + actorId?: boolean; + message?: boolean; + metadata?: boolean; +}; +export type ResourceStatusCheckSelect = { + id?: boolean; + resourceId?: boolean; + databaseId?: boolean; + requestedBy?: boolean; + requestedAt?: boolean; + completedAt?: boolean; + status?: boolean; + result?: boolean; + resource?: { + select: ResourceSelect; + }; +}; +export type FunctionDeploymentSelect = { + id?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + namespaceId?: boolean; + status?: boolean; + serviceUrl?: boolean; + serviceName?: boolean; + revision?: boolean; + image?: boolean; + imageVersion?: boolean; + handlerName?: boolean; + concurrency?: boolean; + scaleMin?: boolean; + scaleMax?: boolean; + timeoutSeconds?: boolean; + resources?: boolean; + lastError?: boolean; + lastErrorAt?: boolean; + errorCount?: boolean; + labels?: boolean; + annotations?: boolean; + databaseId?: boolean; + namespace?: { + select: NamespaceSelect; + }; +}; +export type ResourceSelect = { + id?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + createdBy?: boolean; + updatedBy?: boolean; + namespaceId?: boolean; + kind?: boolean; + name?: boolean; + slug?: boolean; + spec?: boolean; + status?: boolean; + statusObserved?: boolean; + lastError?: boolean; + errorCount?: boolean; + labels?: boolean; + annotations?: boolean; + databaseId?: boolean; + requiredSecrets?: boolean; + requiredConfigs?: boolean; + integrations?: boolean; + resourceDefinitionId?: boolean; + namespace?: { + select: NamespaceSelect; + }; + resourceDefinition?: { + select: ResourceDefinitionSelect; + }; + resourceStatusChecks?: { + select: ResourceStatusCheckSelect; + first?: number; + filter?: ResourceStatusCheckFilter; + orderBy?: ResourceStatusCheckOrderBy[]; + }; +}; +export type ResourceDefinitionSelect = { + id?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + createdBy?: boolean; + updatedBy?: boolean; + namespaceId?: boolean; + kind?: boolean; + name?: boolean; + slug?: boolean; + description?: boolean; + defaultSpec?: boolean; + requiredSecrets?: boolean; + requiredConfigs?: boolean; + integrations?: boolean; + labels?: boolean; + annotations?: boolean; + stepUpMinAge?: boolean; + databaseId?: boolean; + namespace?: { + select: NamespaceSelect; + }; +}; export type FunctionDeploymentEventSelect = { createdAt?: boolean; id?: boolean; @@ -958,7 +1776,7 @@ export type FunctionDeploymentEventSelect = { metadata?: boolean; databaseId?: boolean; }; -export type OrgFunctionExecutionLogSelect = { +export type PlatformFunctionExecutionLogSelect = { createdAt?: boolean; id?: boolean; invocationId?: boolean; @@ -981,14 +1799,14 @@ export type ResourceEventSelect = { export type FunctionGraphExecutionOutputSelect = { createdAt?: boolean; id?: boolean; - databaseId?: boolean; + scopeId?: boolean; hash?: boolean; data?: boolean; }; -export type FunctionGraphCommitSelect = { +export type InfraCommitSelect = { id?: boolean; message?: boolean; - databaseId?: boolean; + scopeId?: boolean; storeId?: boolean; parentIds?: boolean; authorId?: boolean; @@ -996,16 +1814,16 @@ export type FunctionGraphCommitSelect = { treeId?: boolean; date?: boolean; }; -export type SecretDefinitionSelect = { +export type FunctionGraphCommitSelect = { id?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - name?: boolean; - description?: boolean; - isBuiltIn?: boolean; - labels?: boolean; - annotations?: boolean; - databaseId?: boolean; + message?: boolean; + scopeId?: boolean; + storeId?: boolean; + parentIds?: boolean; + authorId?: boolean; + committerId?: boolean; + treeId?: boolean; + date?: boolean; }; export type FunctionExecutionLogSelect = { createdAt?: boolean; @@ -1018,9 +1836,78 @@ export type FunctionExecutionLogSelect = { actorId?: boolean; databaseId?: boolean; }; +export type PlatformResourcesResolvedRequirementSelect = { + resourceId?: boolean; + slug?: boolean; + namespaceId?: boolean; + requirementKind?: boolean; + name?: boolean; + required?: boolean; + atomId?: boolean; + present?: boolean; + secretsObjectName?: boolean; + configObjectName?: boolean; +}; +export type ResourcesResolvedRequirementSelect = { + resourceId?: boolean; + slug?: boolean; + namespaceId?: boolean; + requirementKind?: boolean; + name?: boolean; + required?: boolean; + atomId?: boolean; + present?: boolean; + secretsObjectName?: boolean; + configObjectName?: boolean; +}; +export type DbPresetSelect = { + id?: boolean; + storeId?: boolean; + slug?: boolean; + definition?: boolean; + commitId?: boolean; + modulesHash?: boolean; + label?: boolean; + description?: boolean; + active?: boolean; + createdAt?: boolean; + updatedAt?: boolean; +}; +export type PlatformNamespaceSelect = { + id?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + name?: boolean; + namespaceName?: boolean; + description?: boolean; + isActive?: boolean; + status?: boolean; + lastError?: boolean; + labels?: boolean; + annotations?: boolean; + isManaged?: boolean; + platformFunctionDeploymentsByNamespaceId?: { + select: PlatformFunctionDeploymentSelect; + first?: number; + filter?: PlatformFunctionDeploymentFilter; + orderBy?: PlatformFunctionDeploymentOrderBy[]; + }; + platformResourcesByNamespaceId?: { + select: PlatformResourceSelect; + first?: number; + filter?: PlatformResourceFilter; + orderBy?: PlatformResourceOrderBy[]; + }; + platformResourceDefinitionsByNamespaceId?: { + select: PlatformResourceDefinitionSelect; + first?: number; + filter?: PlatformResourceDefinitionFilter; + orderBy?: PlatformResourceDefinitionOrderBy[]; + }; +}; export type FunctionGraphSelect = { id?: boolean; - databaseId?: boolean; + scopeId?: boolean; storeId?: boolean; context?: boolean; name?: boolean; @@ -1036,7 +1923,7 @@ export type FunctionGraphExecutionNodeStateSelect = { createdAt?: boolean; id?: boolean; executionId?: boolean; - databaseId?: boolean; + scopeId?: boolean; nodeName?: boolean; nodePath?: boolean; status?: boolean; @@ -1046,7 +1933,7 @@ export type FunctionGraphExecutionNodeStateSelect = { errorMessage?: boolean; outputId?: boolean; }; -export type PlatformNamespaceSelect = { +export type NamespaceSelect = { id?: boolean; createdAt?: boolean; updatedAt?: boolean; @@ -1054,26 +1941,32 @@ export type PlatformNamespaceSelect = { namespaceName?: boolean; description?: boolean; isActive?: boolean; + status?: boolean; + lastError?: boolean; labels?: boolean; annotations?: boolean; databaseId?: boolean; - sourceDatabaseId?: boolean; - sourceScope?: boolean; isManaged?: boolean; - functionDeploymentsByNamespaceId?: { + functionDeployments?: { select: FunctionDeploymentSelect; first?: number; filter?: FunctionDeploymentFilter; orderBy?: FunctionDeploymentOrderBy[]; }; - resourcesByNamespaceId?: { + resources?: { select: ResourceSelect; first?: number; filter?: ResourceFilter; orderBy?: ResourceOrderBy[]; }; + resourceDefinitions?: { + select: ResourceDefinitionSelect; + first?: number; + filter?: ResourceDefinitionFilter; + orderBy?: ResourceDefinitionOrderBy[]; + }; }; -export type OrgFunctionInvocationSelect = { +export type PlatformFunctionInvocationSelect = { createdAt?: boolean; id?: boolean; actorId?: boolean; @@ -1121,6 +2014,36 @@ export type PlatformNamespaceEventSelect = { networkEgressBytes?: boolean; podCount?: boolean; metrics?: boolean; +}; +export type IntegrationProviderSelect = { + id?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + slug?: boolean; + name?: boolean; + description?: boolean; + category?: boolean; + icon?: boolean; + logo?: boolean; + brand?: boolean; + requiredSecrets?: boolean; + requiredConfigs?: boolean; +}; +export type NamespaceEventSelect = { + createdAt?: boolean; + id?: boolean; + namespaceId?: boolean; + eventType?: boolean; + actorId?: boolean; + message?: boolean; + metadata?: boolean; + cpuMillicores?: boolean; + memoryBytes?: boolean; + storageBytes?: boolean; + networkIngressBytes?: boolean; + networkEgressBytes?: boolean; + podCount?: boolean; + metrics?: boolean; databaseId?: boolean; }; export type FunctionGraphExecutionSelect = { @@ -1128,7 +2051,7 @@ export type FunctionGraphExecutionSelect = { id?: boolean; graphId?: boolean; invocationId?: boolean; - databaseId?: boolean; + scopeId?: boolean; outputNode?: boolean; outputPort?: boolean; status?: boolean; @@ -1145,12 +2068,58 @@ export type FunctionGraphExecutionSelect = { maxTicks?: boolean; maxPendingJobs?: boolean; timeoutAt?: boolean; + lastProgressAt?: boolean; errorCode?: boolean; errorMessage?: boolean; graph?: { select: FunctionGraphSelect; }; }; +export type PlatformFunctionDefinitionSelect = { + id?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + scope?: boolean; + name?: boolean; + taskIdentifier?: boolean; + description?: boolean; + isPublished?: boolean; + accessChannels?: boolean; + publishedAt?: boolean; + maxAttempts?: boolean; + priority?: boolean; + queueName?: boolean; + runtime?: boolean; + targetSchema?: boolean; + targetFunction?: boolean; + moduleTable?: boolean; + functionColumns?: boolean; + payloadArgs?: boolean; + image?: boolean; + concurrency?: boolean; + scaleMin?: boolean; + scaleMax?: boolean; + timeoutSeconds?: boolean; + resources?: boolean; + isBuiltIn?: boolean; + requiredSecrets?: boolean; + requiredConfigs?: boolean; + integrations?: boolean; + requiredBuckets?: boolean; + requiredModels?: boolean; + inputs?: boolean; + outputs?: boolean; + props?: boolean; + volatile?: boolean; + icon?: boolean; + category?: boolean; + platformFunctionApiBindingsByFunctionDefinitionId?: { + select: PlatformFunctionApiBindingSelect; + first?: number; + filter?: PlatformFunctionApiBindingFilter; + orderBy?: PlatformFunctionApiBindingOrderBy[]; + }; +}; export type FunctionDefinitionSelect = { id?: boolean; createdAt?: boolean; @@ -1159,11 +2128,18 @@ export type FunctionDefinitionSelect = { name?: boolean; taskIdentifier?: boolean; description?: boolean; - isInvocable?: boolean; + isPublished?: boolean; + accessChannels?: boolean; + publishedAt?: boolean; maxAttempts?: boolean; priority?: boolean; queueName?: boolean; runtime?: boolean; + targetSchema?: boolean; + targetFunction?: boolean; + moduleTable?: boolean; + functionColumns?: boolean; + payloadArgs?: boolean; image?: boolean; concurrency?: boolean; scaleMin?: boolean; @@ -1173,6 +2149,7 @@ export type FunctionDefinitionSelect = { isBuiltIn?: boolean; requiredSecrets?: boolean; requiredConfigs?: boolean; + integrations?: boolean; requiredBuckets?: boolean; requiredModels?: boolean; inputs?: boolean; @@ -1181,20 +2158,22 @@ export type FunctionDefinitionSelect = { volatile?: boolean; icon?: boolean; category?: boolean; + databaseId?: boolean; functionApiBindings?: { select: FunctionApiBindingSelect; first?: number; filter?: FunctionApiBindingFilter; orderBy?: FunctionApiBindingOrderBy[]; }; - functionDeployments?: { - select: FunctionDeploymentSelect; - first?: number; - filter?: FunctionDeploymentFilter; - orderBy?: FunctionDeploymentOrderBy[]; - }; }; // ============ Table Filter Types ============ +export interface InfraGetAllRecordFilter { + path?: StringListFilter; + data?: JSONFilter; + and?: InfraGetAllRecordFilter[]; + or?: InfraGetAllRecordFilter[]; + not?: InfraGetAllRecordFilter; +} export interface GetAllRecordFilter { path?: StringListFilter; data?: JSONFilter; @@ -1202,11 +2181,47 @@ export interface GetAllRecordFilter { or?: GetAllRecordFilter[]; not?: GetAllRecordFilter; } -export interface FunctionApiBindingFilter { +export interface InfraRefFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `functionDefinitionId` field. */ - functionDefinitionId?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `scopeId` field. */ + scopeId?: UUIDFilter; + /** Filter by the object’s `storeId` field. */ + storeId?: UUIDFilter; + /** Filter by the object’s `commitId` field. */ + commitId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: InfraRefFilter[]; + /** Checks for any expressions in this list. */ + or?: InfraRefFilter[]; + /** Negates the expression. */ + not?: InfraRefFilter; +} +export interface InfraStoreFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `scopeId` field. */ + scopeId?: UUIDFilter; + /** Filter by the object’s `hash` field. */ + hash?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Checks for all expressions in this list. */ + and?: InfraStoreFilter[]; + /** Checks for any expressions in this list. */ + or?: InfraStoreFilter[]; + /** Negates the expression. */ + not?: InfraStoreFilter; +} +export interface FunctionApiBindingFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `functionDefinitionId` field. */ + functionDefinitionId?: UUIDFilter; /** Filter by the object’s `apiId` field. */ apiId?: UUIDFilter; /** Filter by the object’s `alias` field. */ @@ -1222,15 +2237,137 @@ export interface FunctionApiBindingFilter { /** Filter by the object’s `functionDefinition` relation. */ functionDefinition?: FunctionDefinitionFilter; } -export interface FunctionDeploymentFilter { +export interface FunctionGraphRefFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `scopeId` field. */ + scopeId?: UUIDFilter; + /** Filter by the object’s `storeId` field. */ + storeId?: UUIDFilter; + /** Filter by the object’s `commitId` field. */ + commitId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: FunctionGraphRefFilter[]; + /** Checks for any expressions in this list. */ + or?: FunctionGraphRefFilter[]; + /** Negates the expression. */ + not?: FunctionGraphRefFilter; +} +export interface FunctionGraphStoreFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `scopeId` field. */ + scopeId?: UUIDFilter; + /** Filter by the object’s `hash` field. */ + hash?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; + /** Checks for all expressions in this list. */ + and?: FunctionGraphStoreFilter[]; + /** Checks for any expressions in this list. */ + or?: FunctionGraphStoreFilter[]; + /** Negates the expression. */ + not?: FunctionGraphStoreFilter; +} +export interface PlatformFunctionApiBindingFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; /** Filter by the object’s `functionDefinitionId` field. */ functionDefinitionId?: UUIDFilter; + /** Filter by the object’s `apiId` field. */ + apiId?: UUIDFilter; + /** Filter by the object’s `alias` field. */ + alias?: StringFilter; + /** Filter by the object’s `config` field. */ + config?: JSONFilter; + /** Checks for all expressions in this list. */ + and?: PlatformFunctionApiBindingFilter[]; + /** Checks for any expressions in this list. */ + or?: PlatformFunctionApiBindingFilter[]; + /** Negates the expression. */ + not?: PlatformFunctionApiBindingFilter; + /** Filter by the object’s `functionDefinition` relation. */ + functionDefinition?: PlatformFunctionDefinitionFilter; +} +export interface PlatformResourcesRequirementsStateFilter { + /** Filter by the object’s `resourceId` field. */ + resourceId?: UUIDFilter; + /** Filter by the object’s `slug` field. */ + slug?: StringFilter; + /** Filter by the object’s `secretsHash` field. */ + secretsHash?: StringFilter; + /** Filter by the object’s `configHash` field. */ + configHash?: StringFilter; + /** Filter by the object’s `requirementsHash` field. */ + requirementsHash?: StringFilter; + /** Filter by the object’s `secretsObjectName` field. */ + secretsObjectName?: StringFilter; + /** Filter by the object’s `configObjectName` field. */ + configObjectName?: StringFilter; + /** Checks for all expressions in this list. */ + and?: PlatformResourcesRequirementsStateFilter[]; + /** Checks for any expressions in this list. */ + or?: PlatformResourcesRequirementsStateFilter[]; + /** Negates the expression. */ + not?: PlatformResourcesRequirementsStateFilter; +} +export interface ResourcesRequirementsStateFilter { + /** Filter by the object’s `resourceId` field. */ + resourceId?: UUIDFilter; + /** Filter by the object’s `slug` field. */ + slug?: StringFilter; + /** Filter by the object’s `secretsHash` field. */ + secretsHash?: StringFilter; + /** Filter by the object’s `configHash` field. */ + configHash?: StringFilter; + /** Filter by the object’s `requirementsHash` field. */ + requirementsHash?: StringFilter; + /** Filter by the object’s `secretsObjectName` field. */ + secretsObjectName?: StringFilter; + /** Filter by the object’s `configObjectName` field. */ + configObjectName?: StringFilter; + /** Checks for all expressions in this list. */ + and?: ResourcesRequirementsStateFilter[]; + /** Checks for any expressions in this list. */ + or?: ResourcesRequirementsStateFilter[]; + /** Negates the expression. */ + not?: ResourcesRequirementsStateFilter; +} +export interface PlatformResourceStatusCheckFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `resourceId` field. */ + resourceId?: UUIDFilter; + /** Filter by the object’s `requestedBy` field. */ + requestedBy?: UUIDFilter; + /** Filter by the object’s `requestedAt` field. */ + requestedAt?: DatetimeFilter; + /** Filter by the object’s `completedAt` field. */ + completedAt?: DatetimeFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `result` field. */ + result?: JSONFilter; + /** Checks for all expressions in this list. */ + and?: PlatformResourceStatusCheckFilter[]; + /** Checks for any expressions in this list. */ + or?: PlatformResourceStatusCheckFilter[]; + /** Negates the expression. */ + not?: PlatformResourceStatusCheckFilter; + /** Filter by the object’s `resource` relation. */ + resource?: PlatformResourceFilter; +} +export interface PlatformFunctionDeploymentFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; /** Filter by the object’s `namespaceId` field. */ namespaceId?: UUIDFilter; /** Filter by the object’s `status` field. */ @@ -1243,6 +2380,10 @@ export interface FunctionDeploymentFilter { revision?: IntFilter; /** Filter by the object’s `image` field. */ image?: StringFilter; + /** Filter by the object’s `imageVersion` field. */ + imageVersion?: StringFilter; + /** Filter by the object’s `handlerName` field. */ + handlerName?: StringFilter; /** Filter by the object’s `concurrency` field. */ concurrency?: IntFilter; /** Filter by the object’s `scaleMin` field. */ @@ -1263,20 +2404,16 @@ export interface FunctionDeploymentFilter { labels?: JSONFilter; /** Filter by the object’s `annotations` field. */ annotations?: JSONFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; /** Checks for all expressions in this list. */ - and?: FunctionDeploymentFilter[]; + and?: PlatformFunctionDeploymentFilter[]; /** Checks for any expressions in this list. */ - or?: FunctionDeploymentFilter[]; + or?: PlatformFunctionDeploymentFilter[]; /** Negates the expression. */ - not?: FunctionDeploymentFilter; - /** Filter by the object’s `functionDefinition` relation. */ - functionDefinition?: FunctionDefinitionFilter; + not?: PlatformFunctionDeploymentFilter; /** Filter by the object’s `namespace` relation. */ namespace?: PlatformNamespaceFilter; } -export interface ResourceFilter { +export interface PlatformResourceFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ @@ -1309,58 +2446,92 @@ export interface ResourceFilter { labels?: JSONFilter; /** Filter by the object’s `annotations` field. */ annotations?: JSONFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; + /** Filter by the object’s `integrations` field. */ + integrations?: StringListFilter; + /** Filter by the object’s `resourceDefinitionId` field. */ + resourceDefinitionId?: UUIDFilter; /** Checks for all expressions in this list. */ - and?: ResourceFilter[]; + and?: PlatformResourceFilter[]; /** Checks for any expressions in this list. */ - or?: ResourceFilter[]; + or?: PlatformResourceFilter[]; /** Negates the expression. */ - not?: ResourceFilter; + not?: PlatformResourceFilter; /** Filter by the object’s `namespace` relation. */ namespace?: PlatformNamespaceFilter; -} -export interface FunctionGraphRefFilter { + /** Filter by the object’s `resourceDefinition` relation. */ + resourceDefinition?: PlatformResourceDefinitionFilter; + /** A related `resourceDefinition` exists. */ + resourceDefinitionExists?: boolean; + /** Filter by the object’s `platformResourceStatusChecksByResourceId` relation. */ + platformResourceStatusChecksByResourceId?: PlatformResourceToManyPlatformResourceStatusCheckFilter; + /** `platformResourceStatusChecksByResourceId` exist. */ + platformResourceStatusChecksByResourceIdExist?: boolean; +} +export interface PlatformResourceDefinitionFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; + /** Filter by the object’s `kind` field. */ + kind?: StringFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `storeId` field. */ - storeId?: UUIDFilter; - /** Filter by the object’s `commitId` field. */ - commitId?: UUIDFilter; + /** Filter by the object’s `slug` field. */ + slug?: StringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `defaultSpec` field. */ + defaultSpec?: JSONFilter; + /** Filter by the object’s `integrations` field. */ + integrations?: StringListFilter; + /** Filter by the object’s `labels` field. */ + labels?: JSONFilter; + /** Filter by the object’s `annotations` field. */ + annotations?: JSONFilter; + /** Filter by the object’s `stepUpMinAge` field. */ + stepUpMinAge?: IntervalFilter; /** Checks for all expressions in this list. */ - and?: FunctionGraphRefFilter[]; + and?: PlatformResourceDefinitionFilter[]; /** Checks for any expressions in this list. */ - or?: FunctionGraphRefFilter[]; + or?: PlatformResourceDefinitionFilter[]; /** Negates the expression. */ - not?: FunctionGraphRefFilter; + not?: PlatformResourceDefinitionFilter; + /** Filter by the object’s `namespace` relation. */ + namespace?: PlatformNamespaceFilter; } -export interface FunctionGraphStoreFilter { +export interface InfraObjectFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `hash` field. */ - hash?: UUIDFilter; + /** Filter by the object’s `scopeId` field. */ + scopeId?: UUIDFilter; + /** Filter by the object’s `kids` field. */ + kids?: UUIDListFilter; + /** Filter by the object’s `ktree` field. */ + ktree?: StringListFilter; + /** Filter by the object’s `data` field. */ + data?: JSONFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; /** Checks for all expressions in this list. */ - and?: FunctionGraphStoreFilter[]; + and?: InfraObjectFilter[]; /** Checks for any expressions in this list. */ - or?: FunctionGraphStoreFilter[]; + or?: InfraObjectFilter[]; /** Negates the expression. */ - not?: FunctionGraphStoreFilter; + not?: InfraObjectFilter; } export interface FunctionGraphObjectFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; + /** Filter by the object’s `scopeId` field. */ + scopeId?: UUIDFilter; /** Filter by the object’s `kids` field. */ kids?: UUIDListFilter; /** Filter by the object’s `ktree` field. */ @@ -1376,7 +2547,7 @@ export interface FunctionGraphObjectFilter { /** Negates the expression. */ not?: FunctionGraphObjectFilter; } -export interface FunctionDeploymentEventFilter { +export interface PlatformFunctionDeploymentEventFilter { /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; /** Filter by the object’s `id` field. */ @@ -1391,40 +2562,14 @@ export interface FunctionDeploymentEventFilter { message?: StringFilter; /** Filter by the object’s `metadata` field. */ metadata?: JSONFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: FunctionDeploymentEventFilter[]; - /** Checks for any expressions in this list. */ - or?: FunctionDeploymentEventFilter[]; - /** Negates the expression. */ - not?: FunctionDeploymentEventFilter; -} -export interface OrgFunctionExecutionLogFilter { - /** 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 `taskIdentifier` field. */ - taskIdentifier?: 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; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; /** Checks for all expressions in this list. */ - and?: OrgFunctionExecutionLogFilter[]; + and?: PlatformFunctionDeploymentEventFilter[]; /** Checks for any expressions in this list. */ - or?: OrgFunctionExecutionLogFilter[]; + or?: PlatformFunctionDeploymentEventFilter[]; /** Negates the expression. */ - not?: OrgFunctionExecutionLogFilter; + not?: PlatformFunctionDeploymentEventFilter; } -export interface ResourceEventFilter { +export interface PlatformResourceEventFilter { /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; /** Filter by the object’s `id` field. */ @@ -1439,298 +2584,246 @@ export interface ResourceEventFilter { message?: StringFilter; /** Filter by the object’s `metadata` field. */ metadata?: JSONFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: ResourceEventFilter[]; - /** Checks for any expressions in this list. */ - or?: ResourceEventFilter[]; - /** Negates the expression. */ - not?: ResourceEventFilter; -} -export interface FunctionGraphExecutionOutputFilter { - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `hash` field. */ - hash?: Base64EncodedBinaryFilter; - /** Filter by the object’s `data` field. */ - data?: JSONFilter; /** Checks for all expressions in this list. */ - and?: FunctionGraphExecutionOutputFilter[]; + and?: PlatformResourceEventFilter[]; /** Checks for any expressions in this list. */ - or?: FunctionGraphExecutionOutputFilter[]; + or?: PlatformResourceEventFilter[]; /** Negates the expression. */ - not?: FunctionGraphExecutionOutputFilter; + not?: PlatformResourceEventFilter; } -export interface FunctionGraphCommitFilter { +export interface ResourceStatusCheckFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `message` field. */ - message?: StringFilter; + /** Filter by the object’s `resourceId` field. */ + resourceId?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `storeId` field. */ - storeId?: UUIDFilter; - /** Filter by the object’s `parentIds` field. */ - parentIds?: UUIDListFilter; - /** Filter by the object’s `authorId` field. */ - authorId?: UUIDFilter; - /** Filter by the object’s `committerId` field. */ - committerId?: UUIDFilter; - /** Filter by the object’s `treeId` field. */ - treeId?: UUIDFilter; - /** Filter by the object’s `date` field. */ - date?: DatetimeFilter; + /** Filter by the object’s `requestedBy` field. */ + requestedBy?: UUIDFilter; + /** Filter by the object’s `requestedAt` field. */ + requestedAt?: DatetimeFilter; + /** Filter by the object’s `completedAt` field. */ + completedAt?: DatetimeFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `result` field. */ + result?: JSONFilter; /** Checks for all expressions in this list. */ - and?: FunctionGraphCommitFilter[]; + and?: ResourceStatusCheckFilter[]; /** Checks for any expressions in this list. */ - or?: FunctionGraphCommitFilter[]; + or?: ResourceStatusCheckFilter[]; /** Negates the expression. */ - not?: FunctionGraphCommitFilter; + not?: ResourceStatusCheckFilter; + /** Filter by the object’s `resource` relation. */ + resource?: ResourceFilter; } -export interface SecretDefinitionFilter { +export interface FunctionDeploymentFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Filter by the object’s `isBuiltIn` field. */ - isBuiltIn?: BooleanFilter; - /** Filter by the object’s `labels` field. */ - labels?: JSONFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `serviceUrl` field. */ + serviceUrl?: StringFilter; + /** Filter by the object’s `serviceName` field. */ + serviceName?: StringFilter; + /** Filter by the object’s `revision` field. */ + revision?: IntFilter; + /** Filter by the object’s `image` field. */ + image?: StringFilter; + /** Filter by the object’s `imageVersion` field. */ + imageVersion?: StringFilter; + /** Filter by the object’s `handlerName` field. */ + handlerName?: StringFilter; + /** Filter by the object’s `concurrency` field. */ + concurrency?: IntFilter; + /** Filter by the object’s `scaleMin` field. */ + scaleMin?: IntFilter; + /** Filter by the object’s `scaleMax` field. */ + scaleMax?: IntFilter; + /** Filter by the object’s `timeoutSeconds` field. */ + timeoutSeconds?: IntFilter; + /** Filter by the object’s `resources` field. */ + resources?: JSONFilter; + /** Filter by the object’s `lastError` field. */ + lastError?: StringFilter; + /** Filter by the object’s `lastErrorAt` field. */ + lastErrorAt?: DatetimeFilter; + /** Filter by the object’s `errorCount` field. */ + errorCount?: IntFilter; + /** Filter by the object’s `labels` field. */ + labels?: JSONFilter; /** Filter by the object’s `annotations` field. */ annotations?: JSONFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; /** Checks for all expressions in this list. */ - and?: SecretDefinitionFilter[]; - /** Checks for any expressions in this list. */ - or?: SecretDefinitionFilter[]; - /** Negates the expression. */ - not?: SecretDefinitionFilter; -} -export interface FunctionExecutionLogFilter { - /** 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 `taskIdentifier` field. */ - taskIdentifier?: 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; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: FunctionExecutionLogFilter[]; + and?: FunctionDeploymentFilter[]; /** Checks for any expressions in this list. */ - or?: FunctionExecutionLogFilter[]; + or?: FunctionDeploymentFilter[]; /** Negates the expression. */ - not?: FunctionExecutionLogFilter; + not?: FunctionDeploymentFilter; + /** Filter by the object’s `namespace` relation. */ + namespace?: NamespaceFilter; } -export interface FunctionGraphFilter { +export interface ResourceFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `storeId` field. */ - storeId?: UUIDFilter; - /** Filter by the object’s `context` field. */ - context?: StringFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Filter by the object’s `definitionsCommitId` field. */ - definitionsCommitId?: UUIDFilter; - /** Filter by the object’s `isValid` field. */ - isValid?: BooleanFilter; - /** Filter by the object’s `validationErrors` field. */ - validationErrors?: JSONFilter; - /** Filter by the object’s `createdBy` field. */ - createdBy?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; - /** Checks for all expressions in this list. */ - and?: FunctionGraphFilter[]; - /** Checks for any expressions in this list. */ - or?: FunctionGraphFilter[]; - /** Negates the expression. */ - not?: FunctionGraphFilter; -} -export interface FunctionGraphExecutionNodeStateFilter { - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `executionId` field. */ - executionId?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `nodeName` field. */ - nodeName?: StringFilter; - /** Filter by the object’s `nodePath` field. */ - nodePath?: StringListFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; + /** Filter by the object’s `kind` field. */ + kind?: StringFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** 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 `startedAt` field. */ - startedAt?: DatetimeFilter; - /** Filter by the object’s `completedAt` field. */ - completedAt?: DatetimeFilter; - /** Filter by the object’s `errorCode` field. */ - errorCode?: StringFilter; - /** Filter by the object’s `errorMessage` field. */ - errorMessage?: StringFilter; - /** Filter by the object’s `outputId` field. */ - outputId?: UUIDFilter; + /** Filter by the object’s `statusObserved` field. */ + statusObserved?: JSONFilter; + /** Filter by the object’s `lastError` field. */ + lastError?: StringFilter; + /** Filter by the object’s `errorCount` field. */ + errorCount?: IntFilter; + /** Filter by the object’s `labels` field. */ + labels?: JSONFilter; + /** Filter by the object’s `annotations` field. */ + annotations?: JSONFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `integrations` field. */ + integrations?: StringListFilter; + /** Filter by the object’s `resourceDefinitionId` field. */ + resourceDefinitionId?: UUIDFilter; /** Checks for all expressions in this list. */ - and?: FunctionGraphExecutionNodeStateFilter[]; + and?: ResourceFilter[]; /** Checks for any expressions in this list. */ - or?: FunctionGraphExecutionNodeStateFilter[]; + or?: ResourceFilter[]; /** Negates the expression. */ - not?: FunctionGraphExecutionNodeStateFilter; -} -export interface PlatformNamespaceFilter { + not?: ResourceFilter; + /** Filter by the object’s `namespace` relation. */ + namespace?: NamespaceFilter; + /** Filter by the object’s `resourceDefinition` relation. */ + resourceDefinition?: ResourceDefinitionFilter; + /** A related `resourceDefinition` exists. */ + resourceDefinitionExists?: boolean; + /** Filter by the object’s `resourceStatusChecks` relation. */ + resourceStatusChecks?: ResourceToManyResourceStatusCheckFilter; + /** `resourceStatusChecks` exist. */ + resourceStatusChecksExist?: boolean; +} +export interface ResourceDefinitionFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; + /** Filter by the object’s `kind` field. */ + kind?: StringFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; - /** Filter by the object’s `namespaceName` field. */ - namespaceName?: StringFilter; + /** Filter by the object’s `slug` field. */ + slug?: StringFilter; /** Filter by the object’s `description` field. */ description?: StringFilter; - /** Filter by the object’s `isActive` field. */ - isActive?: BooleanFilter; + /** Filter by the object’s `defaultSpec` field. */ + defaultSpec?: JSONFilter; + /** Filter by the object’s `integrations` field. */ + integrations?: StringListFilter; /** Filter by the object’s `labels` field. */ labels?: JSONFilter; /** Filter by the object’s `annotations` field. */ annotations?: JSONFilter; + /** Filter by the object’s `stepUpMinAge` field. */ + stepUpMinAge?: IntervalFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `sourceDatabaseId` field. */ - sourceDatabaseId?: UUIDFilter; - /** Filter by the object’s `sourceScope` field. */ - sourceScope?: StringFilter; - /** Filter by the object’s `isManaged` field. */ - isManaged?: BooleanFilter; /** Checks for all expressions in this list. */ - and?: PlatformNamespaceFilter[]; + and?: ResourceDefinitionFilter[]; /** Checks for any expressions in this list. */ - or?: PlatformNamespaceFilter[]; + or?: ResourceDefinitionFilter[]; /** Negates the expression. */ - not?: PlatformNamespaceFilter; - /** Filter by the object’s `functionDeploymentsByNamespaceId` relation. */ - functionDeploymentsByNamespaceId?: PlatformNamespaceToManyFunctionDeploymentFilter; - /** `functionDeploymentsByNamespaceId` exist. */ - functionDeploymentsByNamespaceIdExist?: boolean; - /** Filter by the object’s `resourcesByNamespaceId` relation. */ - resourcesByNamespaceId?: PlatformNamespaceToManyResourceFilter; - /** `resourcesByNamespaceId` exist. */ - resourcesByNamespaceIdExist?: boolean; -} -export interface OrgFunctionInvocationFilter { + not?: ResourceDefinitionFilter; + /** Filter by the object’s `namespace` relation. */ + namespace?: NamespaceFilter; +} +export interface FunctionDeploymentEventFilter { /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; + /** Filter by the object’s `deploymentId` field. */ + deploymentId?: UUIDFilter; + /** Filter by the object’s `eventType` field. */ + eventType?: StringFilter; /** Filter by the object’s `actorId` field. */ actorId?: UUIDFilter; - /** Filter by the object’s `taskIdentifier` field. */ - taskIdentifier?: StringFilter; - /** Filter by the object’s `payload` field. */ - payload?: JSONFilter; - /** Filter by the object’s `status` field. */ - status?: StringFilter; - /** Filter by the object’s `result` field. */ - result?: JSONFilter; - /** Filter by the object’s `error` field. */ - error?: StringFilter; - /** Filter by the object’s `durationMs` field. */ - durationMs?: IntFilter; - /** Filter by the object’s `jobId` field. */ - jobId?: BigIntFilter; - /** Filter by the object’s `startedAt` field. */ - startedAt?: DatetimeFilter; - /** Filter by the object’s `completedAt` field. */ - completedAt?: DatetimeFilter; - /** Filter by the object’s `parentInvocationId` field. */ - parentInvocationId?: UUIDFilter; - /** Filter by the object’s `graphExecutionId` field. */ - graphExecutionId?: UUIDFilter; + /** Filter by the object’s `message` field. */ + message?: StringFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; /** Checks for all expressions in this list. */ - and?: OrgFunctionInvocationFilter[]; + and?: FunctionDeploymentEventFilter[]; /** Checks for any expressions in this list. */ - or?: OrgFunctionInvocationFilter[]; + or?: FunctionDeploymentEventFilter[]; /** Negates the expression. */ - not?: OrgFunctionInvocationFilter; + not?: FunctionDeploymentEventFilter; } -export interface FunctionInvocationFilter { +export interface PlatformFunctionExecutionLogFilter { /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; + /** Filter by the object’s `invocationId` field. */ + invocationId?: UUIDFilter; /** Filter by the object’s `taskIdentifier` field. */ taskIdentifier?: StringFilter; - /** Filter by the object’s `payload` field. */ - payload?: JSONFilter; - /** Filter by the object’s `status` field. */ - status?: StringFilter; - /** Filter by the object’s `result` field. */ - result?: JSONFilter; - /** Filter by the object’s `error` field. */ - error?: StringFilter; - /** Filter by the object’s `durationMs` field. */ - durationMs?: IntFilter; - /** Filter by the object’s `jobId` field. */ - jobId?: BigIntFilter; - /** Filter by the object’s `startedAt` field. */ - startedAt?: DatetimeFilter; - /** Filter by the object’s `completedAt` field. */ - completedAt?: DatetimeFilter; - /** Filter by the object’s `parentInvocationId` field. */ - parentInvocationId?: UUIDFilter; - /** Filter by the object’s `graphExecutionId` field. */ - graphExecutionId?: 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 `actorId` field. */ + actorId?: UUIDFilter; /** Checks for all expressions in this list. */ - and?: FunctionInvocationFilter[]; + and?: PlatformFunctionExecutionLogFilter[]; /** Checks for any expressions in this list. */ - or?: FunctionInvocationFilter[]; + or?: PlatformFunctionExecutionLogFilter[]; /** Negates the expression. */ - not?: FunctionInvocationFilter; + not?: PlatformFunctionExecutionLogFilter; } -export interface PlatformNamespaceEventFilter { +export interface ResourceEventFilter { /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `namespaceId` field. */ - namespaceId?: UUIDFilter; + /** Filter by the object’s `resourceId` field. */ + resourceId?: UUIDFilter; /** Filter by the object’s `eventType` field. */ eventType?: StringFilter; /** Filter by the object’s `actorId` field. */ @@ -1739,110 +2832,624 @@ export interface PlatformNamespaceEventFilter { message?: StringFilter; /** Filter by the object’s `metadata` field. */ metadata?: JSONFilter; - /** Filter by the object’s `cpuMillicores` field. */ - cpuMillicores?: IntFilter; - /** Filter by the object’s `memoryBytes` field. */ - memoryBytes?: BigIntFilter; - /** Filter by the object’s `storageBytes` field. */ - storageBytes?: BigIntFilter; - /** Filter by the object’s `networkIngressBytes` field. */ - networkIngressBytes?: BigIntFilter; - /** Filter by the object’s `networkEgressBytes` field. */ - networkEgressBytes?: BigIntFilter; - /** Filter by the object’s `podCount` field. */ - podCount?: IntFilter; - /** Filter by the object’s `metrics` field. */ - metrics?: JSONFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; /** Checks for all expressions in this list. */ - and?: PlatformNamespaceEventFilter[]; + and?: ResourceEventFilter[]; /** Checks for any expressions in this list. */ - or?: PlatformNamespaceEventFilter[]; + or?: ResourceEventFilter[]; /** Negates the expression. */ - not?: PlatformNamespaceEventFilter; + not?: ResourceEventFilter; } -export interface FunctionGraphExecutionFilter { - /** Filter by the object’s `startedAt` field. */ - startedAt?: DatetimeFilter; +export interface FunctionGraphExecutionOutputFilter { + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `scopeId` field. */ + scopeId?: UUIDFilter; + /** Filter by the object’s `hash` field. */ + hash?: Base64EncodedBinaryFilter; + /** Filter by the object’s `data` field. */ + data?: JSONFilter; + /** Checks for all expressions in this list. */ + and?: FunctionGraphExecutionOutputFilter[]; + /** Checks for any expressions in this list. */ + or?: FunctionGraphExecutionOutputFilter[]; + /** Negates the expression. */ + not?: FunctionGraphExecutionOutputFilter; +} +export interface InfraCommitFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `message` field. */ + message?: StringFilter; + /** Filter by the object’s `scopeId` field. */ + scopeId?: UUIDFilter; + /** Filter by the object’s `storeId` field. */ + storeId?: UUIDFilter; + /** Filter by the object’s `parentIds` field. */ + parentIds?: UUIDListFilter; + /** Filter by the object’s `authorId` field. */ + authorId?: UUIDFilter; + /** Filter by the object’s `committerId` field. */ + committerId?: UUIDFilter; + /** Filter by the object’s `treeId` field. */ + treeId?: UUIDFilter; + /** Filter by the object’s `date` field. */ + date?: DatetimeFilter; + /** Checks for all expressions in this list. */ + and?: InfraCommitFilter[]; + /** Checks for any expressions in this list. */ + or?: InfraCommitFilter[]; + /** Negates the expression. */ + not?: InfraCommitFilter; +} +export interface FunctionGraphCommitFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `message` field. */ + message?: StringFilter; + /** Filter by the object’s `scopeId` field. */ + scopeId?: UUIDFilter; + /** Filter by the object’s `storeId` field. */ + storeId?: UUIDFilter; + /** Filter by the object’s `parentIds` field. */ + parentIds?: UUIDListFilter; + /** Filter by the object’s `authorId` field. */ + authorId?: UUIDFilter; + /** Filter by the object’s `committerId` field. */ + committerId?: UUIDFilter; + /** Filter by the object’s `treeId` field. */ + treeId?: UUIDFilter; + /** Filter by the object’s `date` field. */ + date?: DatetimeFilter; + /** Checks for all expressions in this list. */ + and?: FunctionGraphCommitFilter[]; + /** Checks for any expressions in this list. */ + or?: FunctionGraphCommitFilter[]; + /** Negates the expression. */ + not?: FunctionGraphCommitFilter; +} +export interface FunctionExecutionLogFilter { + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `graphId` field. */ - graphId?: UUIDFilter; /** Filter by the object’s `invocationId` field. */ invocationId?: UUIDFilter; + /** Filter by the object’s `taskIdentifier` field. */ + taskIdentifier?: 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; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `outputNode` field. */ - outputNode?: StringFilter; - /** Filter by the object’s `outputPort` field. */ - outputPort?: StringFilter; + /** Checks for all expressions in this list. */ + and?: FunctionExecutionLogFilter[]; + /** Checks for any expressions in this list. */ + or?: FunctionExecutionLogFilter[]; + /** Negates the expression. */ + not?: FunctionExecutionLogFilter; +} +export interface PlatformResourcesResolvedRequirementFilter { + /** Filter by the object’s `resourceId` field. */ + resourceId?: UUIDFilter; + /** Filter by the object’s `slug` field. */ + slug?: StringFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; + /** Filter by the object’s `requirementKind` field. */ + requirementKind?: StringFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `required` field. */ + required?: BooleanFilter; + /** Filter by the object’s `atomId` field. */ + atomId?: UUIDFilter; + /** Filter by the object’s `present` field. */ + present?: BooleanFilter; + /** Filter by the object’s `secretsObjectName` field. */ + secretsObjectName?: StringFilter; + /** Filter by the object’s `configObjectName` field. */ + configObjectName?: StringFilter; + /** Checks for all expressions in this list. */ + and?: PlatformResourcesResolvedRequirementFilter[]; + /** Checks for any expressions in this list. */ + or?: PlatformResourcesResolvedRequirementFilter[]; + /** Negates the expression. */ + not?: PlatformResourcesResolvedRequirementFilter; +} +export interface ResourcesResolvedRequirementFilter { + /** Filter by the object’s `resourceId` field. */ + resourceId?: UUIDFilter; + /** Filter by the object’s `slug` field. */ + slug?: StringFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; + /** Filter by the object’s `requirementKind` field. */ + requirementKind?: StringFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `required` field. */ + required?: BooleanFilter; + /** Filter by the object’s `atomId` field. */ + atomId?: UUIDFilter; + /** Filter by the object’s `present` field. */ + present?: BooleanFilter; + /** Filter by the object’s `secretsObjectName` field. */ + secretsObjectName?: StringFilter; + /** Filter by the object’s `configObjectName` field. */ + configObjectName?: StringFilter; + /** Checks for all expressions in this list. */ + and?: ResourcesResolvedRequirementFilter[]; + /** Checks for any expressions in this list. */ + or?: ResourcesResolvedRequirementFilter[]; + /** Negates the expression. */ + not?: ResourcesResolvedRequirementFilter; +} +export interface DbPresetFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `storeId` field. */ + storeId?: UUIDFilter; + /** Filter by the object’s `slug` field. */ + slug?: StringFilter; + /** Filter by the object’s `definition` field. */ + definition?: JSONFilter; + /** Filter by the object’s `commitId` field. */ + commitId?: UUIDFilter; + /** Filter by the object’s `modulesHash` field. */ + modulesHash?: UUIDFilter; + /** Filter by the object’s `label` field. */ + label?: StringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `active` field. */ + active?: BooleanFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Checks for all expressions in this list. */ + and?: DbPresetFilter[]; + /** Checks for any expressions in this list. */ + or?: DbPresetFilter[]; + /** Negates the expression. */ + not?: DbPresetFilter; +} +export interface PlatformNamespaceFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `namespaceName` field. */ + namespaceName?: StringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `isActive` field. */ + isActive?: BooleanFilter; /** Filter by the object’s `status` field. */ status?: StringFilter; - /** Filter by the object’s `inputPayload` field. */ - inputPayload?: JSONFilter; - /** Filter by the object’s `outputPayload` field. */ - outputPayload?: JSONFilter; - /** Filter by the object’s `nodeOutputs` field. */ - nodeOutputs?: JSONFilter; - /** Filter by the object’s `executionPlan` field. */ - executionPlan?: JSONFilter; - /** Filter by the object’s `currentWave` field. */ - currentWave?: IntFilter; - /** Filter by the object’s `parentExecutionId` field. */ - parentExecutionId?: UUIDFilter; - /** Filter by the object’s `parentNodeName` field. */ - parentNodeName?: StringFilter; + /** Filter by the object’s `lastError` field. */ + lastError?: StringFilter; + /** Filter by the object’s `labels` field. */ + labels?: JSONFilter; + /** Filter by the object’s `annotations` field. */ + annotations?: JSONFilter; + /** Filter by the object’s `isManaged` field. */ + isManaged?: BooleanFilter; + /** Checks for all expressions in this list. */ + and?: PlatformNamespaceFilter[]; + /** Checks for any expressions in this list. */ + or?: PlatformNamespaceFilter[]; + /** Negates the expression. */ + not?: PlatformNamespaceFilter; + /** Filter by the object’s `platformFunctionDeploymentsByNamespaceId` relation. */ + platformFunctionDeploymentsByNamespaceId?: PlatformNamespaceToManyPlatformFunctionDeploymentFilter; + /** `platformFunctionDeploymentsByNamespaceId` exist. */ + platformFunctionDeploymentsByNamespaceIdExist?: boolean; + /** Filter by the object’s `platformResourcesByNamespaceId` relation. */ + platformResourcesByNamespaceId?: PlatformNamespaceToManyPlatformResourceFilter; + /** `platformResourcesByNamespaceId` exist. */ + platformResourcesByNamespaceIdExist?: boolean; + /** Filter by the object’s `platformResourceDefinitionsByNamespaceId` relation. */ + platformResourceDefinitionsByNamespaceId?: PlatformNamespaceToManyPlatformResourceDefinitionFilter; + /** `platformResourceDefinitionsByNamespaceId` exist. */ + platformResourceDefinitionsByNamespaceIdExist?: boolean; +} +export interface FunctionGraphFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `scopeId` field. */ + scopeId?: UUIDFilter; + /** Filter by the object’s `storeId` field. */ + storeId?: UUIDFilter; + /** Filter by the object’s `context` field. */ + context?: StringFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; /** Filter by the object’s `definitionsCommitId` field. */ definitionsCommitId?: UUIDFilter; - /** Filter by the object’s `tickCount` field. */ - tickCount?: IntFilter; + /** Filter by the object’s `isValid` field. */ + isValid?: BooleanFilter; + /** Filter by the object’s `validationErrors` field. */ + validationErrors?: JSONFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Checks for all expressions in this list. */ + and?: FunctionGraphFilter[]; + /** Checks for any expressions in this list. */ + or?: FunctionGraphFilter[]; + /** Negates the expression. */ + not?: FunctionGraphFilter; +} +export interface FunctionGraphExecutionNodeStateFilter { + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `executionId` field. */ + executionId?: UUIDFilter; + /** Filter by the object’s `scopeId` field. */ + scopeId?: UUIDFilter; + /** Filter by the object’s `nodeName` field. */ + nodeName?: StringFilter; + /** Filter by the object’s `nodePath` field. */ + nodePath?: StringListFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `startedAt` field. */ + startedAt?: DatetimeFilter; /** Filter by the object’s `completedAt` field. */ completedAt?: DatetimeFilter; - /** Filter by the object’s `maxTicks` field. */ - maxTicks?: IntFilter; - /** Filter by the object’s `maxPendingJobs` field. */ - maxPendingJobs?: IntFilter; - /** Filter by the object’s `timeoutAt` field. */ - timeoutAt?: DatetimeFilter; /** Filter by the object’s `errorCode` field. */ errorCode?: StringFilter; /** Filter by the object’s `errorMessage` field. */ errorMessage?: StringFilter; + /** Filter by the object’s `outputId` field. */ + outputId?: UUIDFilter; /** Checks for all expressions in this list. */ - and?: FunctionGraphExecutionFilter[]; + and?: FunctionGraphExecutionNodeStateFilter[]; /** Checks for any expressions in this list. */ - or?: FunctionGraphExecutionFilter[]; + or?: FunctionGraphExecutionNodeStateFilter[]; /** Negates the expression. */ - not?: FunctionGraphExecutionFilter; - /** Filter by the object’s `graph` relation. */ - graph?: FunctionGraphFilter; + not?: FunctionGraphExecutionNodeStateFilter; } -export interface FunctionDefinitionFilter { +export interface NamespaceFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; - /** Filter by the object’s `scope` field. */ - scope?: StringFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; - /** Filter by the object’s `taskIdentifier` field. */ - taskIdentifier?: StringFilter; + /** Filter by the object’s `namespaceName` field. */ + namespaceName?: StringFilter; /** Filter by the object’s `description` field. */ description?: StringFilter; - /** Filter by the object’s `isInvocable` field. */ - isInvocable?: BooleanFilter; - /** Filter by the object’s `maxAttempts` field. */ - maxAttempts?: IntFilter; - /** Filter by the object’s `priority` field. */ + /** Filter by the object’s `isActive` field. */ + isActive?: BooleanFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `lastError` field. */ + lastError?: StringFilter; + /** Filter by the object’s `labels` field. */ + labels?: JSONFilter; + /** Filter by the object’s `annotations` field. */ + annotations?: JSONFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `isManaged` field. */ + isManaged?: BooleanFilter; + /** Checks for all expressions in this list. */ + and?: NamespaceFilter[]; + /** Checks for any expressions in this list. */ + or?: NamespaceFilter[]; + /** Negates the expression. */ + not?: NamespaceFilter; + /** Filter by the object’s `functionDeployments` relation. */ + functionDeployments?: NamespaceToManyFunctionDeploymentFilter; + /** `functionDeployments` exist. */ + functionDeploymentsExist?: boolean; + /** Filter by the object’s `resources` relation. */ + resources?: NamespaceToManyResourceFilter; + /** `resources` exist. */ + resourcesExist?: boolean; + /** Filter by the object’s `resourceDefinitions` relation. */ + resourceDefinitions?: NamespaceToManyResourceDefinitionFilter; + /** `resourceDefinitions` exist. */ + resourceDefinitionsExist?: boolean; +} +export interface PlatformFunctionInvocationFilter { + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Filter by the object’s `taskIdentifier` field. */ + taskIdentifier?: StringFilter; + /** Filter by the object’s `payload` field. */ + payload?: JSONFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `result` field. */ + result?: JSONFilter; + /** Filter by the object’s `error` field. */ + error?: StringFilter; + /** Filter by the object’s `durationMs` field. */ + durationMs?: IntFilter; + /** Filter by the object’s `jobId` field. */ + jobId?: BigIntFilter; + /** Filter by the object’s `startedAt` field. */ + startedAt?: DatetimeFilter; + /** Filter by the object’s `completedAt` field. */ + completedAt?: DatetimeFilter; + /** Filter by the object’s `parentInvocationId` field. */ + parentInvocationId?: UUIDFilter; + /** Filter by the object’s `graphExecutionId` field. */ + graphExecutionId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: PlatformFunctionInvocationFilter[]; + /** Checks for any expressions in this list. */ + or?: PlatformFunctionInvocationFilter[]; + /** Negates the expression. */ + not?: PlatformFunctionInvocationFilter; +} +export interface FunctionInvocationFilter { + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `taskIdentifier` field. */ + taskIdentifier?: StringFilter; + /** Filter by the object’s `payload` field. */ + payload?: JSONFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `result` field. */ + result?: JSONFilter; + /** Filter by the object’s `error` field. */ + error?: StringFilter; + /** Filter by the object’s `durationMs` field. */ + durationMs?: IntFilter; + /** Filter by the object’s `jobId` field. */ + jobId?: BigIntFilter; + /** Filter by the object’s `startedAt` field. */ + startedAt?: DatetimeFilter; + /** Filter by the object’s `completedAt` field. */ + completedAt?: DatetimeFilter; + /** Filter by the object’s `parentInvocationId` field. */ + parentInvocationId?: UUIDFilter; + /** Filter by the object’s `graphExecutionId` field. */ + graphExecutionId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: FunctionInvocationFilter[]; + /** Checks for any expressions in this list. */ + or?: FunctionInvocationFilter[]; + /** Negates the expression. */ + not?: FunctionInvocationFilter; +} +export interface PlatformNamespaceEventFilter { + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; + /** Filter by the object’s `eventType` field. */ + eventType?: StringFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Filter by the object’s `message` field. */ + message?: StringFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Filter by the object’s `cpuMillicores` field. */ + cpuMillicores?: IntFilter; + /** Filter by the object’s `memoryBytes` field. */ + memoryBytes?: BigIntFilter; + /** Filter by the object’s `storageBytes` field. */ + storageBytes?: BigIntFilter; + /** Filter by the object’s `networkIngressBytes` field. */ + networkIngressBytes?: BigIntFilter; + /** Filter by the object’s `networkEgressBytes` field. */ + networkEgressBytes?: BigIntFilter; + /** Filter by the object’s `podCount` field. */ + podCount?: IntFilter; + /** Filter by the object’s `metrics` field. */ + metrics?: JSONFilter; + /** Checks for all expressions in this list. */ + and?: PlatformNamespaceEventFilter[]; + /** Checks for any expressions in this list. */ + or?: PlatformNamespaceEventFilter[]; + /** Negates the expression. */ + not?: PlatformNamespaceEventFilter; +} +export interface IntegrationProviderFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `slug` field. */ + slug?: StringFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `category` field. */ + category?: StringFilter; + /** Filter by the object’s `icon` field. */ + icon?: StringFilter; + /** Filter by the object’s `logo` field. */ + logo?: ConstructiveInternalTypeImageFilter; + /** Filter by the object’s `brand` field. */ + brand?: JSONFilter; + /** Checks for all expressions in this list. */ + and?: IntegrationProviderFilter[]; + /** Checks for any expressions in this list. */ + or?: IntegrationProviderFilter[]; + /** Negates the expression. */ + not?: IntegrationProviderFilter; +} +export interface NamespaceEventFilter { + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; + /** Filter by the object’s `eventType` field. */ + eventType?: StringFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Filter by the object’s `message` field. */ + message?: StringFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Filter by the object’s `cpuMillicores` field. */ + cpuMillicores?: IntFilter; + /** Filter by the object’s `memoryBytes` field. */ + memoryBytes?: BigIntFilter; + /** Filter by the object’s `storageBytes` field. */ + storageBytes?: BigIntFilter; + /** Filter by the object’s `networkIngressBytes` field. */ + networkIngressBytes?: BigIntFilter; + /** Filter by the object’s `networkEgressBytes` field. */ + networkEgressBytes?: BigIntFilter; + /** Filter by the object’s `podCount` field. */ + podCount?: IntFilter; + /** Filter by the object’s `metrics` field. */ + metrics?: JSONFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: NamespaceEventFilter[]; + /** Checks for any expressions in this list. */ + or?: NamespaceEventFilter[]; + /** Negates the expression. */ + not?: NamespaceEventFilter; +} +export interface FunctionGraphExecutionFilter { + /** Filter by the object’s `startedAt` field. */ + startedAt?: DatetimeFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `graphId` field. */ + graphId?: UUIDFilter; + /** Filter by the object’s `invocationId` field. */ + invocationId?: UUIDFilter; + /** Filter by the object’s `scopeId` field. */ + scopeId?: UUIDFilter; + /** Filter by the object’s `outputNode` field. */ + outputNode?: StringFilter; + /** Filter by the object’s `outputPort` field. */ + outputPort?: StringFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `inputPayload` field. */ + inputPayload?: JSONFilter; + /** Filter by the object’s `outputPayload` field. */ + outputPayload?: JSONFilter; + /** Filter by the object’s `nodeOutputs` field. */ + nodeOutputs?: JSONFilter; + /** Filter by the object’s `executionPlan` field. */ + executionPlan?: JSONFilter; + /** Filter by the object’s `currentWave` field. */ + currentWave?: IntFilter; + /** Filter by the object’s `parentExecutionId` field. */ + parentExecutionId?: UUIDFilter; + /** Filter by the object’s `parentNodeName` field. */ + parentNodeName?: StringFilter; + /** Filter by the object’s `definitionsCommitId` field. */ + definitionsCommitId?: UUIDFilter; + /** Filter by the object’s `tickCount` field. */ + tickCount?: IntFilter; + /** Filter by the object’s `completedAt` field. */ + completedAt?: DatetimeFilter; + /** Filter by the object’s `maxTicks` field. */ + maxTicks?: IntFilter; + /** Filter by the object’s `maxPendingJobs` field. */ + maxPendingJobs?: IntFilter; + /** Filter by the object’s `timeoutAt` field. */ + timeoutAt?: DatetimeFilter; + /** Filter by the object’s `lastProgressAt` field. */ + lastProgressAt?: DatetimeFilter; + /** Filter by the object’s `errorCode` field. */ + errorCode?: StringFilter; + /** Filter by the object’s `errorMessage` field. */ + errorMessage?: StringFilter; + /** Checks for all expressions in this list. */ + and?: FunctionGraphExecutionFilter[]; + /** Checks for any expressions in this list. */ + or?: FunctionGraphExecutionFilter[]; + /** Negates the expression. */ + not?: FunctionGraphExecutionFilter; + /** Filter by the object’s `graph` relation. */ + graph?: FunctionGraphFilter; +} +export interface PlatformFunctionDefinitionFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `taskIdentifier` field. */ + taskIdentifier?: StringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `isPublished` field. */ + isPublished?: BooleanFilter; + /** Filter by the object’s `accessChannels` field. */ + accessChannels?: StringListFilter; + /** Filter by the object’s `publishedAt` field. */ + publishedAt?: DatetimeFilter; + /** Filter by the object’s `maxAttempts` field. */ + maxAttempts?: IntFilter; + /** Filter by the object’s `priority` field. */ priority?: IntFilter; /** Filter by the object’s `queueName` field. */ queueName?: StringFilter; /** Filter by the object’s `runtime` field. */ runtime?: StringFilter; + /** Filter by the object’s `targetSchema` field. */ + targetSchema?: StringFilter; + /** Filter by the object’s `targetFunction` field. */ + targetFunction?: StringFilter; + /** Filter by the object’s `moduleTable` field. */ + moduleTable?: StringFilter; + /** Filter by the object’s `functionColumns` field. */ + functionColumns?: JSONFilter; + /** Filter by the object’s `payloadArgs` field. */ + payloadArgs?: JSONFilter; /** Filter by the object’s `image` field. */ image?: StringFilter; /** Filter by the object’s `concurrency` field. */ @@ -1857,6 +3464,8 @@ export interface FunctionDefinitionFilter { resources?: JSONFilter; /** Filter by the object’s `isBuiltIn` field. */ isBuiltIn?: BooleanFilter; + /** Filter by the object’s `integrations` field. */ + integrations?: StringListFilter; /** Filter by the object’s `requiredBuckets` field. */ requiredBuckets?: StringListFilter; /** Filter by the object’s `requiredModels` field. */ @@ -1874,21 +3483,109 @@ export interface FunctionDefinitionFilter { /** Filter by the object’s `category` field. */ category?: StringFilter; /** Checks for all expressions in this list. */ - and?: FunctionDefinitionFilter[]; + and?: PlatformFunctionDefinitionFilter[]; /** Checks for any expressions in this list. */ - or?: FunctionDefinitionFilter[]; + or?: PlatformFunctionDefinitionFilter[]; /** Negates the expression. */ - not?: FunctionDefinitionFilter; - /** Filter by the object’s `functionApiBindings` relation. */ - functionApiBindings?: FunctionDefinitionToManyFunctionApiBindingFilter; + not?: PlatformFunctionDefinitionFilter; + /** Filter by the object’s `platformFunctionApiBindingsByFunctionDefinitionId` relation. */ + platformFunctionApiBindingsByFunctionDefinitionId?: PlatformFunctionDefinitionToManyPlatformFunctionApiBindingFilter; + /** `platformFunctionApiBindingsByFunctionDefinitionId` exist. */ + platformFunctionApiBindingsByFunctionDefinitionIdExist?: boolean; +} +export interface FunctionDefinitionFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `taskIdentifier` field. */ + taskIdentifier?: StringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `isPublished` field. */ + isPublished?: BooleanFilter; + /** Filter by the object’s `accessChannels` field. */ + accessChannels?: StringListFilter; + /** Filter by the object’s `publishedAt` field. */ + publishedAt?: DatetimeFilter; + /** Filter by the object’s `maxAttempts` field. */ + maxAttempts?: IntFilter; + /** Filter by the object’s `priority` field. */ + priority?: IntFilter; + /** Filter by the object’s `queueName` field. */ + queueName?: StringFilter; + /** Filter by the object’s `runtime` field. */ + runtime?: StringFilter; + /** Filter by the object’s `targetSchema` field. */ + targetSchema?: StringFilter; + /** Filter by the object’s `targetFunction` field. */ + targetFunction?: StringFilter; + /** Filter by the object’s `moduleTable` field. */ + moduleTable?: StringFilter; + /** Filter by the object’s `functionColumns` field. */ + functionColumns?: JSONFilter; + /** Filter by the object’s `payloadArgs` field. */ + payloadArgs?: JSONFilter; + /** Filter by the object’s `image` field. */ + image?: StringFilter; + /** Filter by the object’s `concurrency` field. */ + concurrency?: IntFilter; + /** Filter by the object’s `scaleMin` field. */ + scaleMin?: IntFilter; + /** Filter by the object’s `scaleMax` field. */ + scaleMax?: IntFilter; + /** Filter by the object’s `timeoutSeconds` field. */ + timeoutSeconds?: IntFilter; + /** Filter by the object’s `resources` field. */ + resources?: JSONFilter; + /** Filter by the object’s `isBuiltIn` field. */ + isBuiltIn?: BooleanFilter; + /** Filter by the object’s `integrations` field. */ + integrations?: StringListFilter; + /** Filter by the object’s `requiredBuckets` field. */ + requiredBuckets?: StringListFilter; + /** Filter by the object’s `requiredModels` field. */ + requiredModels?: StringListFilter; + /** Filter by the object’s `inputs` field. */ + inputs?: JSONFilter; + /** Filter by the object’s `outputs` field. */ + outputs?: JSONFilter; + /** Filter by the object’s `props` field. */ + props?: JSONFilter; + /** Filter by the object’s `volatile` field. */ + volatile?: BooleanFilter; + /** Filter by the object’s `icon` field. */ + icon?: StringFilter; + /** Filter by the object’s `category` field. */ + category?: StringFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: FunctionDefinitionFilter[]; + /** Checks for any expressions in this list. */ + or?: FunctionDefinitionFilter[]; + /** Negates the expression. */ + not?: FunctionDefinitionFilter; + /** Filter by the object’s `functionApiBindings` relation. */ + functionApiBindings?: FunctionDefinitionToManyFunctionApiBindingFilter; /** `functionApiBindings` exist. */ functionApiBindingsExist?: boolean; - /** Filter by the object’s `functionDeployments` relation. */ - functionDeployments?: FunctionDefinitionToManyFunctionDeploymentFilter; - /** `functionDeployments` exist. */ - functionDeploymentsExist?: boolean; } // ============ OrderBy Types ============ +export type InfraGetAllRecordsOrderBy = + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NATURAL' + | 'PATH_ASC' + | 'PATH_DESC' + | 'DATA_ASC' + | 'DATA_DESC'; export type GetAllRecordsOrderBy = | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -1897,6 +3594,34 @@ export type GetAllRecordsOrderBy = | 'PATH_DESC' | 'DATA_ASC' | 'DATA_DESC'; +export type InfraRefOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'SCOPE_ID_ASC' + | 'SCOPE_ID_DESC' + | 'STORE_ID_ASC' + | 'STORE_ID_DESC' + | 'COMMIT_ID_ASC' + | 'COMMIT_ID_DESC'; +export type InfraStoreOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'SCOPE_ID_ASC' + | 'SCOPE_ID_DESC' + | 'HASH_ASC' + | 'HASH_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC'; export type FunctionApiBindingOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -1911,7 +3636,99 @@ export type FunctionApiBindingOrderBy = | 'ALIAS_DESC' | 'CONFIG_ASC' | 'CONFIG_DESC'; -export type FunctionDeploymentOrderBy = +export type FunctionGraphRefOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'SCOPE_ID_ASC' + | 'SCOPE_ID_DESC' + | 'STORE_ID_ASC' + | 'STORE_ID_DESC' + | 'COMMIT_ID_ASC' + | 'COMMIT_ID_DESC'; +export type FunctionGraphStoreOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'SCOPE_ID_ASC' + | 'SCOPE_ID_DESC' + | 'HASH_ASC' + | 'HASH_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC'; +export type PlatformFunctionApiBindingOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'FUNCTION_DEFINITION_ID_ASC' + | 'FUNCTION_DEFINITION_ID_DESC' + | 'API_ID_ASC' + | 'API_ID_DESC' + | 'ALIAS_ASC' + | 'ALIAS_DESC' + | 'CONFIG_ASC' + | 'CONFIG_DESC'; +export type PlatformResourcesRequirementsStateOrderBy = + | 'NATURAL' + | 'RESOURCE_ID_ASC' + | 'RESOURCE_ID_DESC' + | 'SLUG_ASC' + | 'SLUG_DESC' + | 'SECRETS_HASH_ASC' + | 'SECRETS_HASH_DESC' + | 'CONFIG_HASH_ASC' + | 'CONFIG_HASH_DESC' + | 'REQUIREMENTS_HASH_ASC' + | 'REQUIREMENTS_HASH_DESC' + | 'SECRETS_OBJECT_NAME_ASC' + | 'SECRETS_OBJECT_NAME_DESC' + | 'CONFIG_OBJECT_NAME_ASC' + | 'CONFIG_OBJECT_NAME_DESC'; +export type ResourcesRequirementsStateOrderBy = + | 'NATURAL' + | 'RESOURCE_ID_ASC' + | 'RESOURCE_ID_DESC' + | 'SLUG_ASC' + | 'SLUG_DESC' + | 'SECRETS_HASH_ASC' + | 'SECRETS_HASH_DESC' + | 'CONFIG_HASH_ASC' + | 'CONFIG_HASH_DESC' + | 'REQUIREMENTS_HASH_ASC' + | 'REQUIREMENTS_HASH_DESC' + | 'SECRETS_OBJECT_NAME_ASC' + | 'SECRETS_OBJECT_NAME_DESC' + | 'CONFIG_OBJECT_NAME_ASC' + | 'CONFIG_OBJECT_NAME_DESC'; +export type PlatformResourceStatusCheckOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'RESOURCE_ID_ASC' + | 'RESOURCE_ID_DESC' + | 'REQUESTED_BY_ASC' + | 'REQUESTED_BY_DESC' + | 'REQUESTED_AT_ASC' + | 'REQUESTED_AT_DESC' + | 'COMPLETED_AT_ASC' + | 'COMPLETED_AT_DESC' + | 'STATUS_ASC' + | 'STATUS_DESC' + | 'RESULT_ASC' + | 'RESULT_DESC'; +export type PlatformFunctionDeploymentOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -1921,8 +3738,6 @@ export type FunctionDeploymentOrderBy = | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' - | 'FUNCTION_DEFINITION_ID_ASC' - | 'FUNCTION_DEFINITION_ID_DESC' | 'NAMESPACE_ID_ASC' | 'NAMESPACE_ID_DESC' | 'STATUS_ASC' @@ -1935,6 +3750,10 @@ export type FunctionDeploymentOrderBy = | 'REVISION_DESC' | 'IMAGE_ASC' | 'IMAGE_DESC' + | 'IMAGE_VERSION_ASC' + | 'IMAGE_VERSION_DESC' + | 'HANDLER_NAME_ASC' + | 'HANDLER_NAME_DESC' | 'CONCURRENCY_ASC' | 'CONCURRENCY_DESC' | 'SCALE_MIN_ASC' @@ -1954,10 +3773,8 @@ export type FunctionDeploymentOrderBy = | 'LABELS_ASC' | 'LABELS_DESC' | 'ANNOTATIONS_ASC' - | 'ANNOTATIONS_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC'; -export type ResourceOrderBy = + | 'ANNOTATIONS_DESC'; +export type PlatformResourceOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -1993,34 +3810,66 @@ export type ResourceOrderBy = | 'LABELS_DESC' | 'ANNOTATIONS_ASC' | 'ANNOTATIONS_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC'; -export type FunctionGraphRefOrderBy = + | 'REQUIRED_SECRETS_ASC' + | 'REQUIRED_SECRETS_DESC' + | 'REQUIRED_CONFIGS_ASC' + | 'REQUIRED_CONFIGS_DESC' + | 'INTEGRATIONS_ASC' + | 'INTEGRATIONS_DESC' + | 'RESOURCE_DEFINITION_ID_ASC' + | 'RESOURCE_DEFINITION_ID_DESC'; +export type PlatformResourceDefinitionOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'CREATED_BY_ASC' + | 'CREATED_BY_DESC' + | 'UPDATED_BY_ASC' + | 'UPDATED_BY_DESC' + | 'NAMESPACE_ID_ASC' + | 'NAMESPACE_ID_DESC' + | 'KIND_ASC' + | 'KIND_DESC' | 'NAME_ASC' | 'NAME_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'STORE_ID_ASC' - | 'STORE_ID_DESC' - | 'COMMIT_ID_ASC' - | 'COMMIT_ID_DESC'; -export type FunctionGraphStoreOrderBy = + | 'SLUG_ASC' + | 'SLUG_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'DEFAULT_SPEC_ASC' + | 'DEFAULT_SPEC_DESC' + | 'REQUIRED_SECRETS_ASC' + | 'REQUIRED_SECRETS_DESC' + | 'REQUIRED_CONFIGS_ASC' + | 'REQUIRED_CONFIGS_DESC' + | 'INTEGRATIONS_ASC' + | 'INTEGRATIONS_DESC' + | 'LABELS_ASC' + | 'LABELS_DESC' + | 'ANNOTATIONS_ASC' + | 'ANNOTATIONS_DESC' + | 'STEP_UP_MIN_AGE_ASC' + | 'STEP_UP_MIN_AGE_DESC'; +export type InfraObjectOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'HASH_ASC' - | 'HASH_DESC' + | 'SCOPE_ID_ASC' + | 'SCOPE_ID_DESC' + | 'KIDS_ASC' + | 'KIDS_DESC' + | 'KTREE_ASC' + | 'KTREE_DESC' + | 'DATA_ASC' + | 'DATA_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC'; export type FunctionGraphObjectOrderBy = @@ -2029,8 +3878,8 @@ export type FunctionGraphObjectOrderBy = | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' + | 'SCOPE_ID_ASC' + | 'SCOPE_ID_DESC' | 'KIDS_ASC' | 'KIDS_DESC' | 'KTREE_ASC' @@ -2039,7 +3888,7 @@ export type FunctionGraphObjectOrderBy = | 'DATA_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC'; -export type FunctionDeploymentEventOrderBy = +export type PlatformFunctionDeploymentEventOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -2056,30 +3905,8 @@ export type FunctionDeploymentEventOrderBy = | 'MESSAGE_ASC' | 'MESSAGE_DESC' | 'METADATA_ASC' - | 'METADATA_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC'; -export type OrgFunctionExecutionLogOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'INVOCATION_ID_ASC' - | 'INVOCATION_ID_DESC' - | 'TASK_IDENTIFIER_ASC' - | 'TASK_IDENTIFIER_DESC' - | 'LOG_LEVEL_ASC' - | 'LOG_LEVEL_DESC' - | 'MESSAGE_ASC' - | 'MESSAGE_DESC' - | 'METADATA_ASC' - | 'METADATA_DESC' - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC'; -export type ResourceEventOrderBy = + | 'METADATA_DESC'; +export type PlatformResourceEventOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -2096,46 +3923,28 @@ export type ResourceEventOrderBy = | 'MESSAGE_ASC' | 'MESSAGE_DESC' | 'METADATA_ASC' - | 'METADATA_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC'; -export type FunctionGraphExecutionOutputOrderBy = + | 'METADATA_DESC'; +export type ResourceStatusCheckOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' | 'ID_ASC' | 'ID_DESC' + | 'RESOURCE_ID_ASC' + | 'RESOURCE_ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' - | 'HASH_ASC' - | 'HASH_DESC' - | 'DATA_ASC' - | 'DATA_DESC'; -export type FunctionGraphCommitOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'MESSAGE_ASC' - | 'MESSAGE_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'STORE_ID_ASC' - | 'STORE_ID_DESC' - | 'PARENT_IDS_ASC' - | 'PARENT_IDS_DESC' - | 'AUTHOR_ID_ASC' - | 'AUTHOR_ID_DESC' - | 'COMMITTER_ID_ASC' - | 'COMMITTER_ID_DESC' - | 'TREE_ID_ASC' - | 'TREE_ID_DESC' - | 'DATE_ASC' - | 'DATE_DESC'; -export type SecretDefinitionOrderBy = + | 'REQUESTED_BY_ASC' + | 'REQUESTED_BY_DESC' + | 'REQUESTED_AT_ASC' + | 'REQUESTED_AT_DESC' + | 'COMPLETED_AT_ASC' + | 'COMPLETED_AT_DESC' + | 'STATUS_ASC' + | 'STATUS_DESC' + | 'RESULT_ASC' + | 'RESULT_DESC'; +export type FunctionDeploymentOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -2145,97 +3954,91 @@ export type SecretDefinitionOrderBy = | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC' - | 'IS_BUILT_IN_ASC' - | 'IS_BUILT_IN_DESC' + | 'NAMESPACE_ID_ASC' + | 'NAMESPACE_ID_DESC' + | 'STATUS_ASC' + | 'STATUS_DESC' + | 'SERVICE_URL_ASC' + | 'SERVICE_URL_DESC' + | 'SERVICE_NAME_ASC' + | 'SERVICE_NAME_DESC' + | 'REVISION_ASC' + | 'REVISION_DESC' + | 'IMAGE_ASC' + | 'IMAGE_DESC' + | 'IMAGE_VERSION_ASC' + | 'IMAGE_VERSION_DESC' + | 'HANDLER_NAME_ASC' + | 'HANDLER_NAME_DESC' + | 'CONCURRENCY_ASC' + | 'CONCURRENCY_DESC' + | 'SCALE_MIN_ASC' + | 'SCALE_MIN_DESC' + | 'SCALE_MAX_ASC' + | 'SCALE_MAX_DESC' + | 'TIMEOUT_SECONDS_ASC' + | 'TIMEOUT_SECONDS_DESC' + | 'RESOURCES_ASC' + | 'RESOURCES_DESC' + | 'LAST_ERROR_ASC' + | 'LAST_ERROR_DESC' + | 'LAST_ERROR_AT_ASC' + | 'LAST_ERROR_AT_DESC' + | 'ERROR_COUNT_ASC' + | 'ERROR_COUNT_DESC' | 'LABELS_ASC' | 'LABELS_DESC' | 'ANNOTATIONS_ASC' | 'ANNOTATIONS_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC'; -export type FunctionExecutionLogOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'INVOCATION_ID_ASC' - | 'INVOCATION_ID_DESC' - | 'TASK_IDENTIFIER_ASC' - | 'TASK_IDENTIFIER_DESC' - | 'LOG_LEVEL_ASC' - | 'LOG_LEVEL_DESC' - | 'MESSAGE_ASC' - | 'MESSAGE_DESC' - | 'METADATA_ASC' - | 'METADATA_DESC' - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC'; -export type FunctionGraphOrderBy = +export type ResourceOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'STORE_ID_ASC' - | 'STORE_ID_DESC' - | 'CONTEXT_ASC' - | 'CONTEXT_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC' - | 'DEFINITIONS_COMMIT_ID_ASC' - | 'DEFINITIONS_COMMIT_ID_DESC' - | 'IS_VALID_ASC' - | 'IS_VALID_DESC' - | 'VALIDATION_ERRORS_ASC' - | 'VALIDATION_ERRORS_DESC' - | 'CREATED_BY_ASC' - | 'CREATED_BY_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -export type FunctionGraphExecutionNodeStateOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'EXECUTION_ID_ASC' - | 'EXECUTION_ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'NODE_NAME_ASC' - | 'NODE_NAME_DESC' - | 'NODE_PATH_ASC' - | 'NODE_PATH_DESC' + | 'UPDATED_AT_DESC' + | 'CREATED_BY_ASC' + | 'CREATED_BY_DESC' + | 'UPDATED_BY_ASC' + | 'UPDATED_BY_DESC' + | 'NAMESPACE_ID_ASC' + | 'NAMESPACE_ID_DESC' + | 'KIND_ASC' + | 'KIND_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'SLUG_ASC' + | 'SLUG_DESC' + | 'SPEC_ASC' + | 'SPEC_DESC' | 'STATUS_ASC' | 'STATUS_DESC' - | 'STARTED_AT_ASC' - | 'STARTED_AT_DESC' - | 'COMPLETED_AT_ASC' - | 'COMPLETED_AT_DESC' - | 'ERROR_CODE_ASC' - | 'ERROR_CODE_DESC' - | 'ERROR_MESSAGE_ASC' - | 'ERROR_MESSAGE_DESC' - | 'OUTPUT_ID_ASC' - | 'OUTPUT_ID_DESC'; -export type PlatformNamespaceOrderBy = + | 'STATUS_OBSERVED_ASC' + | 'STATUS_OBSERVED_DESC' + | 'LAST_ERROR_ASC' + | 'LAST_ERROR_DESC' + | 'ERROR_COUNT_ASC' + | 'ERROR_COUNT_DESC' + | 'LABELS_ASC' + | 'LABELS_DESC' + | 'ANNOTATIONS_ASC' + | 'ANNOTATIONS_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'REQUIRED_SECRETS_ASC' + | 'REQUIRED_SECRETS_DESC' + | 'REQUIRED_CONFIGS_ASC' + | 'REQUIRED_CONFIGS_DESC' + | 'INTEGRATIONS_ASC' + | 'INTEGRATIONS_DESC' + | 'RESOURCE_DEFINITION_ID_ASC' + | 'RESOURCE_DEFINITION_ID_DESC'; +export type ResourceDefinitionOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -2245,27 +4048,37 @@ export type PlatformNamespaceOrderBy = | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' + | 'CREATED_BY_ASC' + | 'CREATED_BY_DESC' + | 'UPDATED_BY_ASC' + | 'UPDATED_BY_DESC' + | 'NAMESPACE_ID_ASC' + | 'NAMESPACE_ID_DESC' + | 'KIND_ASC' + | 'KIND_DESC' | 'NAME_ASC' | 'NAME_DESC' - | 'NAMESPACE_NAME_ASC' - | 'NAMESPACE_NAME_DESC' + | 'SLUG_ASC' + | 'SLUG_DESC' | 'DESCRIPTION_ASC' | 'DESCRIPTION_DESC' - | 'IS_ACTIVE_ASC' - | 'IS_ACTIVE_DESC' + | 'DEFAULT_SPEC_ASC' + | 'DEFAULT_SPEC_DESC' + | 'REQUIRED_SECRETS_ASC' + | 'REQUIRED_SECRETS_DESC' + | 'REQUIRED_CONFIGS_ASC' + | 'REQUIRED_CONFIGS_DESC' + | 'INTEGRATIONS_ASC' + | 'INTEGRATIONS_DESC' | 'LABELS_ASC' | 'LABELS_DESC' | 'ANNOTATIONS_ASC' | 'ANNOTATIONS_DESC' + | 'STEP_UP_MIN_AGE_ASC' + | 'STEP_UP_MIN_AGE_DESC' | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'SOURCE_DATABASE_ID_ASC' - | 'SOURCE_DATABASE_ID_DESC' - | 'SOURCE_SCOPE_ASC' - | 'SOURCE_SCOPE_DESC' - | 'IS_MANAGED_ASC' - | 'IS_MANAGED_DESC'; -export type OrgFunctionInvocationOrderBy = + | 'DATABASE_ID_DESC'; +export type FunctionDeploymentEventOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -2273,31 +4086,19 @@ export type OrgFunctionInvocationOrderBy = | 'CREATED_AT_DESC' | 'ID_ASC' | 'ID_DESC' + | 'DEPLOYMENT_ID_ASC' + | 'DEPLOYMENT_ID_DESC' + | 'EVENT_TYPE_ASC' + | 'EVENT_TYPE_DESC' | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' - | 'TASK_IDENTIFIER_ASC' - | 'TASK_IDENTIFIER_DESC' - | 'PAYLOAD_ASC' - | 'PAYLOAD_DESC' - | 'STATUS_ASC' - | 'STATUS_DESC' - | 'RESULT_ASC' - | 'RESULT_DESC' - | 'ERROR_ASC' - | 'ERROR_DESC' - | 'DURATION_MS_ASC' - | 'DURATION_MS_DESC' - | 'JOB_ID_ASC' - | 'JOB_ID_DESC' - | 'STARTED_AT_ASC' - | 'STARTED_AT_DESC' - | 'COMPLETED_AT_ASC' - | 'COMPLETED_AT_DESC' - | 'PARENT_INVOCATION_ID_ASC' - | 'PARENT_INVOCATION_ID_DESC' - | 'GRAPH_EXECUTION_ID_ASC' - | 'GRAPH_EXECUTION_ID_DESC'; -export type FunctionInvocationOrderBy = + | 'MESSAGE_ASC' + | 'MESSAGE_DESC' + | 'METADATA_ASC' + | 'METADATA_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC'; +export type PlatformFunctionExecutionLogOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -2305,33 +4106,19 @@ export type FunctionInvocationOrderBy = | 'CREATED_AT_DESC' | 'ID_ASC' | 'ID_DESC' - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' + | 'INVOCATION_ID_ASC' + | 'INVOCATION_ID_DESC' | 'TASK_IDENTIFIER_ASC' | 'TASK_IDENTIFIER_DESC' - | 'PAYLOAD_ASC' - | 'PAYLOAD_DESC' - | 'STATUS_ASC' - | 'STATUS_DESC' - | 'RESULT_ASC' - | 'RESULT_DESC' - | 'ERROR_ASC' - | 'ERROR_DESC' - | 'DURATION_MS_ASC' - | 'DURATION_MS_DESC' - | 'JOB_ID_ASC' - | 'JOB_ID_DESC' - | 'STARTED_AT_ASC' - | 'STARTED_AT_DESC' - | 'COMPLETED_AT_ASC' - | 'COMPLETED_AT_DESC' - | 'PARENT_INVOCATION_ID_ASC' - | 'PARENT_INVOCATION_ID_DESC' - | 'GRAPH_EXECUTION_ID_ASC' - | 'GRAPH_EXECUTION_ID_DESC'; -export type PlatformNamespaceEventOrderBy = + | 'LOG_LEVEL_ASC' + | 'LOG_LEVEL_DESC' + | 'MESSAGE_ASC' + | 'MESSAGE_DESC' + | 'METADATA_ASC' + | 'METADATA_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC'; +export type ResourceEventOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -2339,8 +4126,8 @@ export type PlatformNamespaceEventOrderBy = | 'CREATED_AT_DESC' | 'ID_ASC' | 'ID_DESC' - | 'NAMESPACE_ID_ASC' - | 'NAMESPACE_ID_DESC' + | 'RESOURCE_ID_ASC' + | 'RESOURCE_ID_DESC' | 'EVENT_TYPE_ASC' | 'EVENT_TYPE_DESC' | 'ACTOR_ID_ASC' @@ -2349,73 +4136,243 @@ export type PlatformNamespaceEventOrderBy = | 'MESSAGE_DESC' | 'METADATA_ASC' | 'METADATA_DESC' - | 'CPU_MILLICORES_ASC' - | 'CPU_MILLICORES_DESC' - | 'MEMORY_BYTES_ASC' - | 'MEMORY_BYTES_DESC' - | 'STORAGE_BYTES_ASC' - | 'STORAGE_BYTES_DESC' - | 'NETWORK_INGRESS_BYTES_ASC' - | 'NETWORK_INGRESS_BYTES_DESC' - | 'NETWORK_EGRESS_BYTES_ASC' - | 'NETWORK_EGRESS_BYTES_DESC' - | 'POD_COUNT_ASC' - | 'POD_COUNT_DESC' - | 'METRICS_ASC' - | 'METRICS_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC'; -export type FunctionGraphExecutionOrderBy = +export type FunctionGraphExecutionOutputOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'STARTED_AT_ASC' - | 'STARTED_AT_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'SCOPE_ID_ASC' + | 'SCOPE_ID_DESC' + | 'HASH_ASC' + | 'HASH_DESC' + | 'DATA_ASC' + | 'DATA_DESC'; +export type InfraCommitOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'MESSAGE_ASC' + | 'MESSAGE_DESC' + | 'SCOPE_ID_ASC' + | 'SCOPE_ID_DESC' + | 'STORE_ID_ASC' + | 'STORE_ID_DESC' + | 'PARENT_IDS_ASC' + | 'PARENT_IDS_DESC' + | 'AUTHOR_ID_ASC' + | 'AUTHOR_ID_DESC' + | 'COMMITTER_ID_ASC' + | 'COMMITTER_ID_DESC' + | 'TREE_ID_ASC' + | 'TREE_ID_DESC' + | 'DATE_ASC' + | 'DATE_DESC'; +export type FunctionGraphCommitOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'MESSAGE_ASC' + | 'MESSAGE_DESC' + | 'SCOPE_ID_ASC' + | 'SCOPE_ID_DESC' + | 'STORE_ID_ASC' + | 'STORE_ID_DESC' + | 'PARENT_IDS_ASC' + | 'PARENT_IDS_DESC' + | 'AUTHOR_ID_ASC' + | 'AUTHOR_ID_DESC' + | 'COMMITTER_ID_ASC' + | 'COMMITTER_ID_DESC' + | 'TREE_ID_ASC' + | 'TREE_ID_DESC' + | 'DATE_ASC' + | 'DATE_DESC'; +export type FunctionExecutionLogOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' | 'ID_ASC' | 'ID_DESC' - | 'GRAPH_ID_ASC' - | 'GRAPH_ID_DESC' | 'INVOCATION_ID_ASC' | 'INVOCATION_ID_DESC' + | 'TASK_IDENTIFIER_ASC' + | 'TASK_IDENTIFIER_DESC' + | 'LOG_LEVEL_ASC' + | 'LOG_LEVEL_DESC' + | 'MESSAGE_ASC' + | 'MESSAGE_DESC' + | 'METADATA_ASC' + | 'METADATA_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'OUTPUT_NODE_ASC' - | 'OUTPUT_NODE_DESC' - | 'OUTPUT_PORT_ASC' - | 'OUTPUT_PORT_DESC' + | 'DATABASE_ID_DESC'; +export type PlatformResourcesResolvedRequirementOrderBy = + | 'NATURAL' + | 'RESOURCE_ID_ASC' + | 'RESOURCE_ID_DESC' + | 'SLUG_ASC' + | 'SLUG_DESC' + | 'NAMESPACE_ID_ASC' + | 'NAMESPACE_ID_DESC' + | 'REQUIREMENT_KIND_ASC' + | 'REQUIREMENT_KIND_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'REQUIRED_ASC' + | 'REQUIRED_DESC' + | 'ATOM_ID_ASC' + | 'ATOM_ID_DESC' + | 'PRESENT_ASC' + | 'PRESENT_DESC' + | 'SECRETS_OBJECT_NAME_ASC' + | 'SECRETS_OBJECT_NAME_DESC' + | 'CONFIG_OBJECT_NAME_ASC' + | 'CONFIG_OBJECT_NAME_DESC'; +export type ResourcesResolvedRequirementOrderBy = + | 'NATURAL' + | 'RESOURCE_ID_ASC' + | 'RESOURCE_ID_DESC' + | 'SLUG_ASC' + | 'SLUG_DESC' + | 'NAMESPACE_ID_ASC' + | 'NAMESPACE_ID_DESC' + | 'REQUIREMENT_KIND_ASC' + | 'REQUIREMENT_KIND_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'REQUIRED_ASC' + | 'REQUIRED_DESC' + | 'ATOM_ID_ASC' + | 'ATOM_ID_DESC' + | 'PRESENT_ASC' + | 'PRESENT_DESC' + | 'SECRETS_OBJECT_NAME_ASC' + | 'SECRETS_OBJECT_NAME_DESC' + | 'CONFIG_OBJECT_NAME_ASC' + | 'CONFIG_OBJECT_NAME_DESC'; +export type DbPresetOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'STORE_ID_ASC' + | 'STORE_ID_DESC' + | 'SLUG_ASC' + | 'SLUG_DESC' + | 'DEFINITION_ASC' + | 'DEFINITION_DESC' + | 'COMMIT_ID_ASC' + | 'COMMIT_ID_DESC' + | 'MODULES_HASH_ASC' + | 'MODULES_HASH_DESC' + | 'LABEL_ASC' + | 'LABEL_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'ACTIVE_ASC' + | 'ACTIVE_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +export type PlatformNamespaceOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'NAMESPACE_NAME_ASC' + | 'NAMESPACE_NAME_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'IS_ACTIVE_ASC' + | 'IS_ACTIVE_DESC' | 'STATUS_ASC' | 'STATUS_DESC' - | 'INPUT_PAYLOAD_ASC' - | 'INPUT_PAYLOAD_DESC' - | 'OUTPUT_PAYLOAD_ASC' - | 'OUTPUT_PAYLOAD_DESC' - | 'NODE_OUTPUTS_ASC' - | 'NODE_OUTPUTS_DESC' - | 'EXECUTION_PLAN_ASC' - | 'EXECUTION_PLAN_DESC' - | 'CURRENT_WAVE_ASC' - | 'CURRENT_WAVE_DESC' - | 'PARENT_EXECUTION_ID_ASC' - | 'PARENT_EXECUTION_ID_DESC' - | 'PARENT_NODE_NAME_ASC' - | 'PARENT_NODE_NAME_DESC' + | 'LAST_ERROR_ASC' + | 'LAST_ERROR_DESC' + | 'LABELS_ASC' + | 'LABELS_DESC' + | 'ANNOTATIONS_ASC' + | 'ANNOTATIONS_DESC' + | 'IS_MANAGED_ASC' + | 'IS_MANAGED_DESC'; +export type FunctionGraphOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'SCOPE_ID_ASC' + | 'SCOPE_ID_DESC' + | 'STORE_ID_ASC' + | 'STORE_ID_DESC' + | 'CONTEXT_ASC' + | 'CONTEXT_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' | 'DEFINITIONS_COMMIT_ID_ASC' | 'DEFINITIONS_COMMIT_ID_DESC' - | 'TICK_COUNT_ASC' - | 'TICK_COUNT_DESC' + | 'IS_VALID_ASC' + | 'IS_VALID_DESC' + | 'VALIDATION_ERRORS_ASC' + | 'VALIDATION_ERRORS_DESC' + | 'CREATED_BY_ASC' + | 'CREATED_BY_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +export type FunctionGraphExecutionNodeStateOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'EXECUTION_ID_ASC' + | 'EXECUTION_ID_DESC' + | 'SCOPE_ID_ASC' + | 'SCOPE_ID_DESC' + | 'NODE_NAME_ASC' + | 'NODE_NAME_DESC' + | 'NODE_PATH_ASC' + | 'NODE_PATH_DESC' + | 'STATUS_ASC' + | 'STATUS_DESC' + | 'STARTED_AT_ASC' + | 'STARTED_AT_DESC' | 'COMPLETED_AT_ASC' | 'COMPLETED_AT_DESC' - | 'MAX_TICKS_ASC' - | 'MAX_TICKS_DESC' - | 'MAX_PENDING_JOBS_ASC' - | 'MAX_PENDING_JOBS_DESC' - | 'TIMEOUT_AT_ASC' - | 'TIMEOUT_AT_DESC' | 'ERROR_CODE_ASC' | 'ERROR_CODE_DESC' | 'ERROR_MESSAGE_ASC' - | 'ERROR_MESSAGE_DESC'; -export type FunctionDefinitionOrderBy = + | 'ERROR_MESSAGE_DESC' + | 'OUTPUT_ID_ASC' + | 'OUTPUT_ID_DESC'; +export type NamespaceOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -2425,2193 +4382,5043 @@ export type FunctionDefinitionOrderBy = | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' - | 'SCOPE_ASC' - | 'SCOPE_DESC' | 'NAME_ASC' | 'NAME_DESC' - | 'TASK_IDENTIFIER_ASC' - | 'TASK_IDENTIFIER_DESC' + | 'NAMESPACE_NAME_ASC' + | 'NAMESPACE_NAME_DESC' | 'DESCRIPTION_ASC' | 'DESCRIPTION_DESC' - | 'IS_INVOCABLE_ASC' - | 'IS_INVOCABLE_DESC' - | 'MAX_ATTEMPTS_ASC' - | 'MAX_ATTEMPTS_DESC' - | 'PRIORITY_ASC' - | 'PRIORITY_DESC' - | 'QUEUE_NAME_ASC' - | 'QUEUE_NAME_DESC' - | 'RUNTIME_ASC' - | 'RUNTIME_DESC' - | 'IMAGE_ASC' - | 'IMAGE_DESC' - | 'CONCURRENCY_ASC' - | 'CONCURRENCY_DESC' - | 'SCALE_MIN_ASC' - | 'SCALE_MIN_DESC' - | 'SCALE_MAX_ASC' - | 'SCALE_MAX_DESC' - | 'TIMEOUT_SECONDS_ASC' - | 'TIMEOUT_SECONDS_DESC' - | 'RESOURCES_ASC' - | 'RESOURCES_DESC' - | 'IS_BUILT_IN_ASC' - | 'IS_BUILT_IN_DESC' - | 'REQUIRED_SECRETS_ASC' - | 'REQUIRED_SECRETS_DESC' - | 'REQUIRED_CONFIGS_ASC' - | 'REQUIRED_CONFIGS_DESC' - | 'REQUIRED_BUCKETS_ASC' - | 'REQUIRED_BUCKETS_DESC' - | 'REQUIRED_MODELS_ASC' - | 'REQUIRED_MODELS_DESC' - | 'INPUTS_ASC' - | 'INPUTS_DESC' - | 'OUTPUTS_ASC' - | 'OUTPUTS_DESC' - | 'PROPS_ASC' - | 'PROPS_DESC' - | 'VOLATILE_ASC' - | 'VOLATILE_DESC' + | 'IS_ACTIVE_ASC' + | 'IS_ACTIVE_DESC' + | 'STATUS_ASC' + | 'STATUS_DESC' + | 'LAST_ERROR_ASC' + | 'LAST_ERROR_DESC' + | 'LABELS_ASC' + | 'LABELS_DESC' + | 'ANNOTATIONS_ASC' + | 'ANNOTATIONS_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'IS_MANAGED_ASC' + | 'IS_MANAGED_DESC'; +export type PlatformFunctionInvocationOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'TASK_IDENTIFIER_ASC' + | 'TASK_IDENTIFIER_DESC' + | 'PAYLOAD_ASC' + | 'PAYLOAD_DESC' + | 'STATUS_ASC' + | 'STATUS_DESC' + | 'RESULT_ASC' + | 'RESULT_DESC' + | 'ERROR_ASC' + | 'ERROR_DESC' + | 'DURATION_MS_ASC' + | 'DURATION_MS_DESC' + | 'JOB_ID_ASC' + | 'JOB_ID_DESC' + | 'STARTED_AT_ASC' + | 'STARTED_AT_DESC' + | 'COMPLETED_AT_ASC' + | 'COMPLETED_AT_DESC' + | 'PARENT_INVOCATION_ID_ASC' + | 'PARENT_INVOCATION_ID_DESC' + | 'GRAPH_EXECUTION_ID_ASC' + | 'GRAPH_EXECUTION_ID_DESC'; +export type FunctionInvocationOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'TASK_IDENTIFIER_ASC' + | 'TASK_IDENTIFIER_DESC' + | 'PAYLOAD_ASC' + | 'PAYLOAD_DESC' + | 'STATUS_ASC' + | 'STATUS_DESC' + | 'RESULT_ASC' + | 'RESULT_DESC' + | 'ERROR_ASC' + | 'ERROR_DESC' + | 'DURATION_MS_ASC' + | 'DURATION_MS_DESC' + | 'JOB_ID_ASC' + | 'JOB_ID_DESC' + | 'STARTED_AT_ASC' + | 'STARTED_AT_DESC' + | 'COMPLETED_AT_ASC' + | 'COMPLETED_AT_DESC' + | 'PARENT_INVOCATION_ID_ASC' + | 'PARENT_INVOCATION_ID_DESC' + | 'GRAPH_EXECUTION_ID_ASC' + | 'GRAPH_EXECUTION_ID_DESC'; +export type PlatformNamespaceEventOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAMESPACE_ID_ASC' + | 'NAMESPACE_ID_DESC' + | 'EVENT_TYPE_ASC' + | 'EVENT_TYPE_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'MESSAGE_ASC' + | 'MESSAGE_DESC' + | 'METADATA_ASC' + | 'METADATA_DESC' + | 'CPU_MILLICORES_ASC' + | 'CPU_MILLICORES_DESC' + | 'MEMORY_BYTES_ASC' + | 'MEMORY_BYTES_DESC' + | 'STORAGE_BYTES_ASC' + | 'STORAGE_BYTES_DESC' + | 'NETWORK_INGRESS_BYTES_ASC' + | 'NETWORK_INGRESS_BYTES_DESC' + | 'NETWORK_EGRESS_BYTES_ASC' + | 'NETWORK_EGRESS_BYTES_DESC' + | 'POD_COUNT_ASC' + | 'POD_COUNT_DESC' + | 'METRICS_ASC' + | 'METRICS_DESC'; +export type IntegrationProviderOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'SLUG_ASC' + | 'SLUG_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'CATEGORY_ASC' + | 'CATEGORY_DESC' | 'ICON_ASC' | 'ICON_DESC' - | 'CATEGORY_ASC' - | 'CATEGORY_DESC'; -// ============ CRUD Input Types ============ -export interface CreateGetAllRecordInput { + | 'LOGO_ASC' + | 'LOGO_DESC' + | 'BRAND_ASC' + | 'BRAND_DESC' + | 'REQUIRED_SECRETS_ASC' + | 'REQUIRED_SECRETS_DESC' + | 'REQUIRED_CONFIGS_ASC' + | 'REQUIRED_CONFIGS_DESC'; +export type NamespaceEventOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAMESPACE_ID_ASC' + | 'NAMESPACE_ID_DESC' + | 'EVENT_TYPE_ASC' + | 'EVENT_TYPE_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'MESSAGE_ASC' + | 'MESSAGE_DESC' + | 'METADATA_ASC' + | 'METADATA_DESC' + | 'CPU_MILLICORES_ASC' + | 'CPU_MILLICORES_DESC' + | 'MEMORY_BYTES_ASC' + | 'MEMORY_BYTES_DESC' + | 'STORAGE_BYTES_ASC' + | 'STORAGE_BYTES_DESC' + | 'NETWORK_INGRESS_BYTES_ASC' + | 'NETWORK_INGRESS_BYTES_DESC' + | 'NETWORK_EGRESS_BYTES_ASC' + | 'NETWORK_EGRESS_BYTES_DESC' + | 'POD_COUNT_ASC' + | 'POD_COUNT_DESC' + | 'METRICS_ASC' + | 'METRICS_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC'; +export type FunctionGraphExecutionOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'STARTED_AT_ASC' + | 'STARTED_AT_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'GRAPH_ID_ASC' + | 'GRAPH_ID_DESC' + | 'INVOCATION_ID_ASC' + | 'INVOCATION_ID_DESC' + | 'SCOPE_ID_ASC' + | 'SCOPE_ID_DESC' + | 'OUTPUT_NODE_ASC' + | 'OUTPUT_NODE_DESC' + | 'OUTPUT_PORT_ASC' + | 'OUTPUT_PORT_DESC' + | 'STATUS_ASC' + | 'STATUS_DESC' + | 'INPUT_PAYLOAD_ASC' + | 'INPUT_PAYLOAD_DESC' + | 'OUTPUT_PAYLOAD_ASC' + | 'OUTPUT_PAYLOAD_DESC' + | 'NODE_OUTPUTS_ASC' + | 'NODE_OUTPUTS_DESC' + | 'EXECUTION_PLAN_ASC' + | 'EXECUTION_PLAN_DESC' + | 'CURRENT_WAVE_ASC' + | 'CURRENT_WAVE_DESC' + | 'PARENT_EXECUTION_ID_ASC' + | 'PARENT_EXECUTION_ID_DESC' + | 'PARENT_NODE_NAME_ASC' + | 'PARENT_NODE_NAME_DESC' + | 'DEFINITIONS_COMMIT_ID_ASC' + | 'DEFINITIONS_COMMIT_ID_DESC' + | 'TICK_COUNT_ASC' + | 'TICK_COUNT_DESC' + | 'COMPLETED_AT_ASC' + | 'COMPLETED_AT_DESC' + | 'MAX_TICKS_ASC' + | 'MAX_TICKS_DESC' + | 'MAX_PENDING_JOBS_ASC' + | 'MAX_PENDING_JOBS_DESC' + | 'TIMEOUT_AT_ASC' + | 'TIMEOUT_AT_DESC' + | 'LAST_PROGRESS_AT_ASC' + | 'LAST_PROGRESS_AT_DESC' + | 'ERROR_CODE_ASC' + | 'ERROR_CODE_DESC' + | 'ERROR_MESSAGE_ASC' + | 'ERROR_MESSAGE_DESC'; +export type PlatformFunctionDefinitionOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'TASK_IDENTIFIER_ASC' + | 'TASK_IDENTIFIER_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'IS_PUBLISHED_ASC' + | 'IS_PUBLISHED_DESC' + | 'ACCESS_CHANNELS_ASC' + | 'ACCESS_CHANNELS_DESC' + | 'PUBLISHED_AT_ASC' + | 'PUBLISHED_AT_DESC' + | 'MAX_ATTEMPTS_ASC' + | 'MAX_ATTEMPTS_DESC' + | 'PRIORITY_ASC' + | 'PRIORITY_DESC' + | 'QUEUE_NAME_ASC' + | 'QUEUE_NAME_DESC' + | 'RUNTIME_ASC' + | 'RUNTIME_DESC' + | 'TARGET_SCHEMA_ASC' + | 'TARGET_SCHEMA_DESC' + | 'TARGET_FUNCTION_ASC' + | 'TARGET_FUNCTION_DESC' + | 'MODULE_TABLE_ASC' + | 'MODULE_TABLE_DESC' + | 'FUNCTION_COLUMNS_ASC' + | 'FUNCTION_COLUMNS_DESC' + | 'PAYLOAD_ARGS_ASC' + | 'PAYLOAD_ARGS_DESC' + | 'IMAGE_ASC' + | 'IMAGE_DESC' + | 'CONCURRENCY_ASC' + | 'CONCURRENCY_DESC' + | 'SCALE_MIN_ASC' + | 'SCALE_MIN_DESC' + | 'SCALE_MAX_ASC' + | 'SCALE_MAX_DESC' + | 'TIMEOUT_SECONDS_ASC' + | 'TIMEOUT_SECONDS_DESC' + | 'RESOURCES_ASC' + | 'RESOURCES_DESC' + | 'IS_BUILT_IN_ASC' + | 'IS_BUILT_IN_DESC' + | 'REQUIRED_SECRETS_ASC' + | 'REQUIRED_SECRETS_DESC' + | 'REQUIRED_CONFIGS_ASC' + | 'REQUIRED_CONFIGS_DESC' + | 'INTEGRATIONS_ASC' + | 'INTEGRATIONS_DESC' + | 'REQUIRED_BUCKETS_ASC' + | 'REQUIRED_BUCKETS_DESC' + | 'REQUIRED_MODELS_ASC' + | 'REQUIRED_MODELS_DESC' + | 'INPUTS_ASC' + | 'INPUTS_DESC' + | 'OUTPUTS_ASC' + | 'OUTPUTS_DESC' + | 'PROPS_ASC' + | 'PROPS_DESC' + | 'VOLATILE_ASC' + | 'VOLATILE_DESC' + | 'ICON_ASC' + | 'ICON_DESC' + | 'CATEGORY_ASC' + | 'CATEGORY_DESC'; +export type FunctionDefinitionOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'TASK_IDENTIFIER_ASC' + | 'TASK_IDENTIFIER_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'IS_PUBLISHED_ASC' + | 'IS_PUBLISHED_DESC' + | 'ACCESS_CHANNELS_ASC' + | 'ACCESS_CHANNELS_DESC' + | 'PUBLISHED_AT_ASC' + | 'PUBLISHED_AT_DESC' + | 'MAX_ATTEMPTS_ASC' + | 'MAX_ATTEMPTS_DESC' + | 'PRIORITY_ASC' + | 'PRIORITY_DESC' + | 'QUEUE_NAME_ASC' + | 'QUEUE_NAME_DESC' + | 'RUNTIME_ASC' + | 'RUNTIME_DESC' + | 'TARGET_SCHEMA_ASC' + | 'TARGET_SCHEMA_DESC' + | 'TARGET_FUNCTION_ASC' + | 'TARGET_FUNCTION_DESC' + | 'MODULE_TABLE_ASC' + | 'MODULE_TABLE_DESC' + | 'FUNCTION_COLUMNS_ASC' + | 'FUNCTION_COLUMNS_DESC' + | 'PAYLOAD_ARGS_ASC' + | 'PAYLOAD_ARGS_DESC' + | 'IMAGE_ASC' + | 'IMAGE_DESC' + | 'CONCURRENCY_ASC' + | 'CONCURRENCY_DESC' + | 'SCALE_MIN_ASC' + | 'SCALE_MIN_DESC' + | 'SCALE_MAX_ASC' + | 'SCALE_MAX_DESC' + | 'TIMEOUT_SECONDS_ASC' + | 'TIMEOUT_SECONDS_DESC' + | 'RESOURCES_ASC' + | 'RESOURCES_DESC' + | 'IS_BUILT_IN_ASC' + | 'IS_BUILT_IN_DESC' + | 'REQUIRED_SECRETS_ASC' + | 'REQUIRED_SECRETS_DESC' + | 'REQUIRED_CONFIGS_ASC' + | 'REQUIRED_CONFIGS_DESC' + | 'INTEGRATIONS_ASC' + | 'INTEGRATIONS_DESC' + | 'REQUIRED_BUCKETS_ASC' + | 'REQUIRED_BUCKETS_DESC' + | 'REQUIRED_MODELS_ASC' + | 'REQUIRED_MODELS_DESC' + | 'INPUTS_ASC' + | 'INPUTS_DESC' + | 'OUTPUTS_ASC' + | 'OUTPUTS_DESC' + | 'PROPS_ASC' + | 'PROPS_DESC' + | 'VOLATILE_ASC' + | 'VOLATILE_DESC' + | 'ICON_ASC' + | 'ICON_DESC' + | 'CATEGORY_ASC' + | 'CATEGORY_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC'; +// ============ CRUD Input Types ============ +export interface CreateInfraGetAllRecordInput { + clientMutationId?: string; + infraGetAllRecord: { + path?: string[]; + data?: Record; + }; +} +export interface InfraGetAllRecordPatch { + path?: string[] | null; + data?: Record | null; +} +export interface UpdateInfraGetAllRecordInput { + clientMutationId?: string; + id: string; + infraGetAllRecordPatch: InfraGetAllRecordPatch; +} +export interface DeleteInfraGetAllRecordInput { + clientMutationId?: string; + id: string; +} +export interface CreateGetAllRecordInput { + clientMutationId?: string; + getAllRecord: { + path?: string[]; + data?: Record; + }; +} +export interface GetAllRecordPatch { + path?: string[] | null; + data?: Record | null; +} +export interface UpdateGetAllRecordInput { + clientMutationId?: string; + id: string; + getAllRecordPatch: GetAllRecordPatch; +} +export interface DeleteGetAllRecordInput { + clientMutationId?: string; + id: string; +} +export interface CreateInfraRefInput { + clientMutationId?: string; + infraRef: { + name: string; + scopeId: string; + storeId: string; + commitId?: string; + }; +} +export interface InfraRefPatch { + name?: string | null; + scopeId?: string | null; + storeId?: string | null; + commitId?: string | null; +} +export interface UpdateInfraRefInput { + clientMutationId?: string; + id: string; + infraRefPatch: InfraRefPatch; +} +export interface DeleteInfraRefInput { + clientMutationId?: string; + id: string; +} +export interface CreateInfraStoreInput { + clientMutationId?: string; + infraStore: { + name: string; + scopeId: string; + hash?: string; + }; +} +export interface InfraStorePatch { + name?: string | null; + scopeId?: string | null; + hash?: string | null; +} +export interface UpdateInfraStoreInput { + clientMutationId?: string; + id: string; + infraStorePatch: InfraStorePatch; +} +export interface DeleteInfraStoreInput { + clientMutationId?: string; + id: string; +} +export interface CreateFunctionApiBindingInput { + clientMutationId?: string; + functionApiBinding: { + functionDefinitionId: string; + apiId: string; + alias?: string; + config?: Record; + }; +} +export interface FunctionApiBindingPatch { + functionDefinitionId?: string | null; + apiId?: string | null; + alias?: string | null; + config?: Record | null; +} +export interface UpdateFunctionApiBindingInput { + clientMutationId?: string; + id: string; + functionApiBindingPatch: FunctionApiBindingPatch; +} +export interface DeleteFunctionApiBindingInput { + clientMutationId?: string; + id: string; +} +export interface CreateFunctionGraphRefInput { + clientMutationId?: string; + functionGraphRef: { + name: string; + scopeId: string; + storeId: string; + commitId?: string; + }; +} +export interface FunctionGraphRefPatch { + name?: string | null; + scopeId?: string | null; + storeId?: string | null; + commitId?: string | null; +} +export interface UpdateFunctionGraphRefInput { + clientMutationId?: string; + id: string; + functionGraphRefPatch: FunctionGraphRefPatch; +} +export interface DeleteFunctionGraphRefInput { + clientMutationId?: string; + id: string; +} +export interface CreateFunctionGraphStoreInput { + clientMutationId?: string; + functionGraphStore: { + name: string; + scopeId: string; + hash?: string; + }; +} +export interface FunctionGraphStorePatch { + name?: string | null; + scopeId?: string | null; + hash?: string | null; +} +export interface UpdateFunctionGraphStoreInput { + clientMutationId?: string; + id: string; + functionGraphStorePatch: FunctionGraphStorePatch; +} +export interface DeleteFunctionGraphStoreInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformFunctionApiBindingInput { + clientMutationId?: string; + platformFunctionApiBinding: { + functionDefinitionId: string; + apiId: string; + alias?: string; + config?: Record; + }; +} +export interface PlatformFunctionApiBindingPatch { + functionDefinitionId?: string | null; + apiId?: string | null; + alias?: string | null; + config?: Record | null; +} +export interface UpdatePlatformFunctionApiBindingInput { + clientMutationId?: string; + id: string; + platformFunctionApiBindingPatch: PlatformFunctionApiBindingPatch; +} +export interface DeletePlatformFunctionApiBindingInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformResourcesRequirementsStateInput { + clientMutationId?: string; + platformResourcesRequirementsState: { + resourceId: string; + slug?: string; + secretsHash?: string; + configHash?: string; + requirementsHash?: string; + secretsObjectName?: string; + configObjectName?: string; + }; +} +export interface PlatformResourcesRequirementsStatePatch { + resourceId?: string | null; + slug?: string | null; + secretsHash?: string | null; + configHash?: string | null; + requirementsHash?: string | null; + secretsObjectName?: string | null; + configObjectName?: string | null; +} +export interface UpdatePlatformResourcesRequirementsStateInput { + clientMutationId?: string; + id: string; + platformResourcesRequirementsStatePatch: PlatformResourcesRequirementsStatePatch; +} +export interface DeletePlatformResourcesRequirementsStateInput { + clientMutationId?: string; + id: string; +} +export interface CreateResourcesRequirementsStateInput { + clientMutationId?: string; + resourcesRequirementsState: { + resourceId: string; + slug?: string; + secretsHash?: string; + configHash?: string; + requirementsHash?: string; + secretsObjectName?: string; + configObjectName?: string; + }; +} +export interface ResourcesRequirementsStatePatch { + resourceId?: string | null; + slug?: string | null; + secretsHash?: string | null; + configHash?: string | null; + requirementsHash?: string | null; + secretsObjectName?: string | null; + configObjectName?: string | null; +} +export interface UpdateResourcesRequirementsStateInput { + clientMutationId?: string; + id: string; + resourcesRequirementsStatePatch: ResourcesRequirementsStatePatch; +} +export interface DeleteResourcesRequirementsStateInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformResourceStatusCheckInput { + clientMutationId?: string; + platformResourceStatusCheck: { + resourceId: string; + requestedBy?: string; + requestedAt?: string; + completedAt?: string; + status?: string; + result?: Record; + }; +} +export interface PlatformResourceStatusCheckPatch { + resourceId?: string | null; + requestedBy?: string | null; + requestedAt?: string | null; + completedAt?: string | null; + status?: string | null; + result?: Record | null; +} +export interface UpdatePlatformResourceStatusCheckInput { + clientMutationId?: string; + id: string; + platformResourceStatusCheckPatch: PlatformResourceStatusCheckPatch; +} +export interface DeletePlatformResourceStatusCheckInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformFunctionDeploymentInput { + clientMutationId?: string; + platformFunctionDeployment: { + namespaceId: string; + status?: string; + serviceUrl?: string; + serviceName?: string; + revision?: number; + image: string; + imageVersion?: string; + handlerName?: string; + concurrency?: number; + scaleMin?: number; + scaleMax?: number; + timeoutSeconds?: number; + resources?: Record; + lastError?: string; + lastErrorAt?: string; + errorCount?: number; + labels?: Record; + annotations?: Record; + }; +} +export interface PlatformFunctionDeploymentPatch { + namespaceId?: string | null; + status?: string | null; + serviceUrl?: string | null; + serviceName?: string | null; + revision?: number | null; + image?: string | null; + imageVersion?: string | null; + handlerName?: string | null; + concurrency?: number | null; + scaleMin?: number | null; + scaleMax?: number | null; + timeoutSeconds?: number | null; + resources?: Record | null; + lastError?: string | null; + lastErrorAt?: string | null; + errorCount?: number | null; + labels?: Record | null; + annotations?: Record | null; +} +export interface UpdatePlatformFunctionDeploymentInput { + clientMutationId?: string; + id: string; + platformFunctionDeploymentPatch: PlatformFunctionDeploymentPatch; +} +export interface DeletePlatformFunctionDeploymentInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformResourceInput { + clientMutationId?: string; + platformResource: { + createdBy?: string; + updatedBy?: string; + namespaceId: string; + kind: string; + name: string; + slug: string; + spec?: Record; + status?: string; + statusObserved?: Record; + lastError?: string; + errorCount?: number; + labels?: Record; + annotations?: Record; + requiredSecrets?: ResourceRequirementInput[]; + requiredConfigs?: ResourceRequirementInput[]; + integrations?: string[]; + resourceDefinitionId?: string; + }; +} +export interface PlatformResourcePatch { + createdBy?: string | null; + updatedBy?: string | null; + namespaceId?: string | null; + kind?: string | null; + name?: string | null; + slug?: string | null; + spec?: Record | null; + status?: string | null; + statusObserved?: Record | null; + lastError?: string | null; + errorCount?: number | null; + labels?: Record | null; + annotations?: Record | null; + requiredSecrets?: ResourceRequirementInput[] | null; + requiredConfigs?: ResourceRequirementInput[] | null; + integrations?: string[] | null; + resourceDefinitionId?: string | null; +} +export interface UpdatePlatformResourceInput { + clientMutationId?: string; + id: string; + platformResourcePatch: PlatformResourcePatch; +} +export interface DeletePlatformResourceInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformResourceDefinitionInput { + clientMutationId?: string; + platformResourceDefinition: { + createdBy?: string; + updatedBy?: string; + namespaceId: string; + kind: string; + name: string; + slug: string; + description?: string; + defaultSpec?: Record; + requiredSecrets?: ResourceRequirementInput[]; + requiredConfigs?: ResourceRequirementInput[]; + integrations?: string[]; + labels?: Record; + annotations?: Record; + stepUpMinAge?: IntervalInput; + }; +} +export interface PlatformResourceDefinitionPatch { + createdBy?: string | null; + updatedBy?: string | null; + namespaceId?: string | null; + kind?: string | null; + name?: string | null; + slug?: string | null; + description?: string | null; + defaultSpec?: Record | null; + requiredSecrets?: ResourceRequirementInput[] | null; + requiredConfigs?: ResourceRequirementInput[] | null; + integrations?: string[] | null; + labels?: Record | null; + annotations?: Record | null; + stepUpMinAge?: IntervalInput | null; +} +export interface UpdatePlatformResourceDefinitionInput { + clientMutationId?: string; + id: string; + platformResourceDefinitionPatch: PlatformResourceDefinitionPatch; +} +export interface DeletePlatformResourceDefinitionInput { + clientMutationId?: string; + id: string; +} +export interface CreateInfraObjectInput { + clientMutationId?: string; + infraObject: { + scopeId: string; + kids?: string[]; + ktree?: string[]; + data?: Record; + }; +} +export interface InfraObjectPatch { + scopeId?: string | null; + kids?: string[] | null; + ktree?: string[] | null; + data?: Record | null; +} +export interface UpdateInfraObjectInput { + clientMutationId?: string; + id: string; + infraObjectPatch: InfraObjectPatch; +} +export interface DeleteInfraObjectInput { + clientMutationId?: string; + id: string; +} +export interface CreateFunctionGraphObjectInput { + clientMutationId?: string; + functionGraphObject: { + scopeId: string; + kids?: string[]; + ktree?: string[]; + data?: Record; + }; +} +export interface FunctionGraphObjectPatch { + scopeId?: string | null; + kids?: string[] | null; + ktree?: string[] | null; + data?: Record | null; +} +export interface UpdateFunctionGraphObjectInput { + clientMutationId?: string; + id: string; + functionGraphObjectPatch: FunctionGraphObjectPatch; +} +export interface DeleteFunctionGraphObjectInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformFunctionDeploymentEventInput { + clientMutationId?: string; + platformFunctionDeploymentEvent: { + deploymentId: string; + eventType: string; + actorId?: string; + message?: string; + metadata?: Record; + }; +} +export interface PlatformFunctionDeploymentEventPatch { + deploymentId?: string | null; + eventType?: string | null; + actorId?: 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 CreatePlatformResourceEventInput { + clientMutationId?: string; + platformResourceEvent: { + resourceId: string; + eventType: string; + actorId?: string; + message?: string; + metadata?: Record; + }; +} +export interface PlatformResourceEventPatch { + resourceId?: string | null; + eventType?: string | null; + actorId?: string | null; + message?: string | null; + metadata?: Record | null; +} +export interface UpdatePlatformResourceEventInput { + clientMutationId?: string; + id: string; + platformResourceEventPatch: PlatformResourceEventPatch; +} +export interface DeletePlatformResourceEventInput { + clientMutationId?: string; + id: string; +} +export interface CreateResourceStatusCheckInput { + clientMutationId?: string; + resourceStatusCheck: { + resourceId: string; + databaseId: string; + requestedBy?: string; + requestedAt?: string; + completedAt?: string; + status?: string; + result?: Record; + }; +} +export interface ResourceStatusCheckPatch { + resourceId?: string | null; + databaseId?: string | null; + requestedBy?: string | null; + requestedAt?: string | null; + completedAt?: string | null; + status?: string | null; + result?: Record | null; +} +export interface UpdateResourceStatusCheckInput { + clientMutationId?: string; + id: string; + resourceStatusCheckPatch: ResourceStatusCheckPatch; +} +export interface DeleteResourceStatusCheckInput { + clientMutationId?: string; + id: string; +} +export interface CreateFunctionDeploymentInput { + clientMutationId?: string; + functionDeployment: { + namespaceId: string; + status?: string; + serviceUrl?: string; + serviceName?: string; + revision?: number; + image: string; + imageVersion?: string; + handlerName?: string; + concurrency?: number; + scaleMin?: number; + scaleMax?: number; + timeoutSeconds?: number; + resources?: Record; + lastError?: string; + lastErrorAt?: string; + errorCount?: number; + labels?: Record; + annotations?: Record; + databaseId: string; + }; +} +export interface FunctionDeploymentPatch { + namespaceId?: string | null; + status?: string | null; + serviceUrl?: string | null; + serviceName?: string | null; + revision?: number | null; + image?: string | null; + imageVersion?: string | null; + handlerName?: string | null; + concurrency?: number | null; + scaleMin?: number | null; + scaleMax?: number | null; + timeoutSeconds?: number | null; + resources?: Record | null; + lastError?: string | null; + lastErrorAt?: string | null; + errorCount?: number | null; + labels?: Record | null; + annotations?: Record | null; + databaseId?: string | null; +} +export interface UpdateFunctionDeploymentInput { + clientMutationId?: string; + id: string; + functionDeploymentPatch: FunctionDeploymentPatch; +} +export interface DeleteFunctionDeploymentInput { + clientMutationId?: string; + id: string; +} +export interface CreateResourceInput { + clientMutationId?: string; + resource: { + createdBy?: string; + updatedBy?: string; + namespaceId: string; + kind: string; + name: string; + slug: string; + spec?: Record; + status?: string; + statusObserved?: Record; + lastError?: string; + errorCount?: number; + labels?: Record; + annotations?: Record; + databaseId: string; + requiredSecrets?: ResourceRequirementInput[]; + requiredConfigs?: ResourceRequirementInput[]; + integrations?: string[]; + resourceDefinitionId?: string; + }; +} +export interface ResourcePatch { + createdBy?: string | null; + updatedBy?: string | null; + namespaceId?: string | null; + kind?: string | null; + name?: string | null; + slug?: string | null; + spec?: Record | null; + status?: string | null; + statusObserved?: Record | null; + lastError?: string | null; + errorCount?: number | null; + labels?: Record | null; + annotations?: Record | null; + databaseId?: string | null; + requiredSecrets?: ResourceRequirementInput[] | null; + requiredConfigs?: ResourceRequirementInput[] | null; + integrations?: string[] | null; + resourceDefinitionId?: string | null; +} +export interface UpdateResourceInput { + clientMutationId?: string; + id: string; + resourcePatch: ResourcePatch; +} +export interface DeleteResourceInput { + clientMutationId?: string; + id: string; +} +export interface CreateResourceDefinitionInput { + clientMutationId?: string; + resourceDefinition: { + createdBy?: string; + updatedBy?: string; + namespaceId: string; + kind: string; + name: string; + slug: string; + description?: string; + defaultSpec?: Record; + requiredSecrets?: ResourceRequirementInput[]; + requiredConfigs?: ResourceRequirementInput[]; + integrations?: string[]; + labels?: Record; + annotations?: Record; + stepUpMinAge?: IntervalInput; + databaseId: string; + }; +} +export interface ResourceDefinitionPatch { + createdBy?: string | null; + updatedBy?: string | null; + namespaceId?: string | null; + kind?: string | null; + name?: string | null; + slug?: string | null; + description?: string | null; + defaultSpec?: Record | null; + requiredSecrets?: ResourceRequirementInput[] | null; + requiredConfigs?: ResourceRequirementInput[] | null; + integrations?: string[] | null; + labels?: Record | null; + annotations?: Record | null; + stepUpMinAge?: IntervalInput | null; + databaseId?: string | null; +} +export interface UpdateResourceDefinitionInput { + clientMutationId?: string; + id: string; + resourceDefinitionPatch: ResourceDefinitionPatch; +} +export interface DeleteResourceDefinitionInput { + clientMutationId?: string; + id: string; +} +export interface CreateFunctionDeploymentEventInput { + clientMutationId?: string; + functionDeploymentEvent: { + deploymentId: string; + eventType: string; + actorId?: string; + message?: string; + metadata?: Record; + databaseId: string; + }; +} +export interface FunctionDeploymentEventPatch { + deploymentId?: string | null; + eventType?: string | null; + actorId?: string | null; + message?: string | null; + metadata?: Record | null; + databaseId?: string | null; +} +export interface UpdateFunctionDeploymentEventInput { + clientMutationId?: string; + id: string; + functionDeploymentEventPatch: FunctionDeploymentEventPatch; +} +export interface DeleteFunctionDeploymentEventInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformFunctionExecutionLogInput { + clientMutationId?: string; + platformFunctionExecutionLog: { + invocationId?: string; + taskIdentifier?: string; + logLevel?: string; + message: string; + metadata?: Record; + actorId?: string; + }; +} +export interface PlatformFunctionExecutionLogPatch { + invocationId?: string | null; + taskIdentifier?: string | null; + logLevel?: string | null; + message?: string | null; + metadata?: Record | null; + actorId?: string | null; +} +export interface UpdatePlatformFunctionExecutionLogInput { + clientMutationId?: string; + id: string; + platformFunctionExecutionLogPatch: PlatformFunctionExecutionLogPatch; +} +export interface DeletePlatformFunctionExecutionLogInput { + clientMutationId?: string; + id: string; +} +export interface CreateResourceEventInput { + clientMutationId?: string; + resourceEvent: { + resourceId: string; + eventType: string; + actorId?: string; + message?: string; + metadata?: Record; + databaseId: string; + }; +} +export interface ResourceEventPatch { + resourceId?: string | null; + eventType?: string | null; + actorId?: string | null; + message?: string | null; + metadata?: Record | null; + databaseId?: string | null; +} +export interface UpdateResourceEventInput { + clientMutationId?: string; + id: string; + resourceEventPatch: ResourceEventPatch; +} +export interface DeleteResourceEventInput { + clientMutationId?: string; + id: string; +} +export interface CreateFunctionGraphExecutionOutputInput { + clientMutationId?: string; + functionGraphExecutionOutput: { + scopeId: string; + hash: Base64EncodedBinary; + data: Record; + }; +} +export interface FunctionGraphExecutionOutputPatch { + scopeId?: string | null; + hash?: Base64EncodedBinary | null; + data?: Record | null; +} +export interface UpdateFunctionGraphExecutionOutputInput { + clientMutationId?: string; + id: string; + functionGraphExecutionOutputPatch: FunctionGraphExecutionOutputPatch; +} +export interface DeleteFunctionGraphExecutionOutputInput { + clientMutationId?: string; + id: string; +} +export interface CreateInfraCommitInput { + clientMutationId?: string; + infraCommit: { + message?: string; + scopeId: string; + storeId: string; + parentIds?: string[]; + authorId?: string; + committerId?: string; + treeId?: string; + date?: string; + }; +} +export interface InfraCommitPatch { + message?: string | null; + scopeId?: string | null; + storeId?: string | null; + parentIds?: string[] | null; + authorId?: string | null; + committerId?: string | null; + treeId?: string | null; + date?: string | null; +} +export interface UpdateInfraCommitInput { + clientMutationId?: string; + id: string; + infraCommitPatch: InfraCommitPatch; +} +export interface DeleteInfraCommitInput { + clientMutationId?: string; + id: string; +} +export interface CreateFunctionGraphCommitInput { + clientMutationId?: string; + functionGraphCommit: { + message?: string; + scopeId: string; + storeId: string; + parentIds?: string[]; + authorId?: string; + committerId?: string; + treeId?: string; + date?: string; + }; +} +export interface FunctionGraphCommitPatch { + message?: string | null; + scopeId?: string | null; + storeId?: string | null; + parentIds?: string[] | null; + authorId?: string | null; + committerId?: string | null; + treeId?: string | null; + date?: string | null; +} +export interface UpdateFunctionGraphCommitInput { + clientMutationId?: string; + id: string; + functionGraphCommitPatch: FunctionGraphCommitPatch; +} +export interface DeleteFunctionGraphCommitInput { + clientMutationId?: string; + id: string; +} +export interface CreateFunctionExecutionLogInput { + clientMutationId?: string; + functionExecutionLog: { + invocationId?: string; + taskIdentifier?: string; + logLevel?: string; + message: string; + metadata?: Record; + actorId?: string; + databaseId: string; + }; +} +export interface FunctionExecutionLogPatch { + invocationId?: string | null; + taskIdentifier?: string | null; + logLevel?: string | null; + message?: string | null; + metadata?: Record | null; + actorId?: string | null; + databaseId?: string | null; +} +export interface UpdateFunctionExecutionLogInput { + clientMutationId?: string; + id: string; + functionExecutionLogPatch: FunctionExecutionLogPatch; +} +export interface DeleteFunctionExecutionLogInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformResourcesResolvedRequirementInput { + clientMutationId?: string; + platformResourcesResolvedRequirement: { + resourceId: string; + slug?: string; + namespaceId: string; + requirementKind?: string; + name?: string; + required?: boolean; + atomId: string; + present?: boolean; + secretsObjectName?: string; + configObjectName?: string; + }; +} +export interface PlatformResourcesResolvedRequirementPatch { + resourceId?: string | null; + slug?: string | null; + namespaceId?: string | null; + requirementKind?: string | null; + name?: string | null; + required?: boolean | null; + atomId?: string | null; + present?: boolean | null; + secretsObjectName?: string | null; + configObjectName?: string | null; +} +export interface UpdatePlatformResourcesResolvedRequirementInput { + clientMutationId?: string; + id: string; + platformResourcesResolvedRequirementPatch: PlatformResourcesResolvedRequirementPatch; +} +export interface DeletePlatformResourcesResolvedRequirementInput { + clientMutationId?: string; + id: string; +} +export interface CreateResourcesResolvedRequirementInput { + clientMutationId?: string; + resourcesResolvedRequirement: { + resourceId: string; + slug?: string; + namespaceId: string; + requirementKind?: string; + name?: string; + required?: boolean; + atomId: string; + present?: boolean; + secretsObjectName?: string; + configObjectName?: string; + }; +} +export interface ResourcesResolvedRequirementPatch { + resourceId?: string | null; + slug?: string | null; + namespaceId?: string | null; + requirementKind?: string | null; + name?: string | null; + required?: boolean | null; + atomId?: string | null; + present?: boolean | null; + secretsObjectName?: string | null; + configObjectName?: string | null; +} +export interface UpdateResourcesResolvedRequirementInput { + clientMutationId?: string; + id: string; + resourcesResolvedRequirementPatch: ResourcesResolvedRequirementPatch; +} +export interface DeleteResourcesResolvedRequirementInput { + clientMutationId?: string; + id: string; +} +export interface CreateDbPresetInput { + clientMutationId?: string; + dbPreset: { + storeId?: string; + slug: string; + definition: Record; + commitId?: string; + modulesHash?: string; + label?: string; + description?: string; + active?: boolean; + }; +} +export interface DbPresetPatch { + storeId?: string | null; + slug?: string | null; + definition?: Record | null; + commitId?: string | null; + modulesHash?: string | null; + label?: string | null; + description?: string | null; + active?: boolean | null; +} +export interface UpdateDbPresetInput { + clientMutationId?: string; + id: string; + dbPresetPatch: DbPresetPatch; +} +export interface DeleteDbPresetInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformNamespaceInput { + clientMutationId?: string; + platformNamespace: { + name: string; + namespaceName: string; + description?: string; + isActive?: boolean; + status?: string; + lastError?: string; + labels?: Record; + annotations?: Record; + isManaged?: boolean; + }; +} +export interface PlatformNamespacePatch { + name?: string | null; + namespaceName?: string | null; + description?: string | null; + isActive?: boolean | null; + status?: string | null; + lastError?: string | null; + labels?: Record | null; + annotations?: Record | null; + isManaged?: boolean | null; +} +export interface UpdatePlatformNamespaceInput { + clientMutationId?: string; + id: string; + platformNamespacePatch: PlatformNamespacePatch; +} +export interface DeletePlatformNamespaceInput { + clientMutationId?: string; + id: string; +} +export interface CreateFunctionGraphInput { + clientMutationId?: string; + functionGraph: { + scopeId: string; + storeId: string; + context?: string; + name?: string; + description?: string; + definitionsCommitId: string; + isValid?: boolean; + validationErrors?: Record; + createdBy?: string; + }; +} +export interface FunctionGraphPatch { + scopeId?: string | null; + storeId?: string | null; + context?: string | null; + name?: string | null; + description?: string | null; + definitionsCommitId?: string | null; + isValid?: boolean | null; + validationErrors?: Record | null; + createdBy?: string | null; +} +export interface UpdateFunctionGraphInput { + clientMutationId?: string; + id: string; + functionGraphPatch: FunctionGraphPatch; +} +export interface DeleteFunctionGraphInput { + clientMutationId?: string; + id: string; +} +export interface CreateFunctionGraphExecutionNodeStateInput { + clientMutationId?: string; + functionGraphExecutionNodeState: { + executionId: string; + scopeId: string; + nodeName: string; + nodePath?: string[]; + status?: string; + startedAt?: string; + completedAt?: string; + errorCode?: string; + errorMessage?: string; + outputId?: string; + }; +} +export interface FunctionGraphExecutionNodeStatePatch { + executionId?: string | null; + scopeId?: string | null; + nodeName?: string | null; + nodePath?: string[] | null; + status?: string | null; + startedAt?: string | null; + completedAt?: string | null; + errorCode?: string | null; + errorMessage?: string | null; + outputId?: string | null; +} +export interface UpdateFunctionGraphExecutionNodeStateInput { + clientMutationId?: string; + id: string; + functionGraphExecutionNodeStatePatch: FunctionGraphExecutionNodeStatePatch; +} +export interface DeleteFunctionGraphExecutionNodeStateInput { + clientMutationId?: string; + id: string; +} +export interface CreateNamespaceInput { + clientMutationId?: string; + namespace: { + name: string; + namespaceName: string; + description?: string; + isActive?: boolean; + status?: string; + lastError?: string; + labels?: Record; + annotations?: Record; + databaseId: string; + isManaged?: boolean; + }; +} +export interface NamespacePatch { + name?: string | null; + namespaceName?: string | null; + description?: string | null; + isActive?: boolean | null; + status?: string | null; + lastError?: string | null; + labels?: Record | null; + annotations?: Record | null; + databaseId?: string | null; + isManaged?: boolean | null; +} +export interface UpdateNamespaceInput { clientMutationId?: string; - getAllRecord: { - path?: string[]; - data?: Record; + id: string; + namespacePatch: NamespacePatch; +} +export interface DeleteNamespaceInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformFunctionInvocationInput { + clientMutationId?: string; + platformFunctionInvocation: { + actorId?: string; + taskIdentifier: string; + payload?: Record; + status?: string; + result?: Record; + error?: string; + durationMs?: number; + jobId?: string; + startedAt?: string; + completedAt?: string; + parentInvocationId?: string; + graphExecutionId?: string; }; } -export interface GetAllRecordPatch { - path?: string[] | null; - data?: Record | null; +export interface PlatformFunctionInvocationPatch { + actorId?: string | null; + taskIdentifier?: string | null; + payload?: Record | null; + status?: string | null; + result?: Record | null; + error?: string | null; + durationMs?: number | null; + jobId?: string | null; + startedAt?: string | null; + completedAt?: string | null; + parentInvocationId?: string | null; + graphExecutionId?: string | null; } -export interface UpdateGetAllRecordInput { +export interface UpdatePlatformFunctionInvocationInput { clientMutationId?: string; id: string; - getAllRecordPatch: GetAllRecordPatch; + platformFunctionInvocationPatch: PlatformFunctionInvocationPatch; } -export interface DeleteGetAllRecordInput { +export interface DeletePlatformFunctionInvocationInput { clientMutationId?: string; id: string; } -export interface CreateFunctionApiBindingInput { +export interface CreateFunctionInvocationInput { clientMutationId?: string; - functionApiBinding: { - functionDefinitionId: string; - apiId: string; - alias?: string; - config?: Record; + functionInvocation: { + actorId?: string; + databaseId: string; + taskIdentifier: string; + payload?: Record; + status?: string; + result?: Record; + error?: string; + durationMs?: number; + jobId?: string; + startedAt?: string; + completedAt?: string; + parentInvocationId?: string; + graphExecutionId?: string; }; } -export interface FunctionApiBindingPatch { - functionDefinitionId?: string | null; - apiId?: string | null; - alias?: string | null; - config?: Record | null; +export interface FunctionInvocationPatch { + actorId?: string | null; + databaseId?: string | null; + taskIdentifier?: string | null; + payload?: Record | null; + status?: string | null; + result?: Record | null; + error?: string | null; + durationMs?: number | null; + jobId?: string | null; + startedAt?: string | null; + completedAt?: string | null; + parentInvocationId?: string | null; + graphExecutionId?: string | null; } -export interface UpdateFunctionApiBindingInput { +export interface UpdateFunctionInvocationInput { clientMutationId?: string; id: string; - functionApiBindingPatch: FunctionApiBindingPatch; + functionInvocationPatch: FunctionInvocationPatch; } -export interface DeleteFunctionApiBindingInput { +export interface DeleteFunctionInvocationInput { clientMutationId?: string; id: string; } -export interface CreateFunctionDeploymentInput { +export interface CreatePlatformNamespaceEventInput { clientMutationId?: string; - functionDeployment: { - functionDefinitionId: string; + platformNamespaceEvent: { namespaceId: string; - status?: string; - serviceUrl?: string; - serviceName?: string; - revision?: number; - image?: string; - concurrency?: number; - scaleMin?: number; - scaleMax?: number; - timeoutSeconds?: number; - resources?: Record; - lastError?: string; - lastErrorAt?: string; - errorCount?: number; - labels?: Record; - annotations?: Record; - databaseId: string; + eventType: string; + actorId?: string; + message?: string; + metadata?: Record; + cpuMillicores?: number; + memoryBytes?: string; + storageBytes?: string; + networkIngressBytes?: string; + networkEgressBytes?: string; + podCount?: number; + metrics?: Record; }; } -export interface FunctionDeploymentPatch { - functionDefinitionId?: string | null; +export interface PlatformNamespaceEventPatch { namespaceId?: string | null; - status?: string | null; - serviceUrl?: string | null; - serviceName?: string | null; - revision?: number | null; - image?: string | null; - concurrency?: number | null; - scaleMin?: number | null; - scaleMax?: number | null; - timeoutSeconds?: number | null; - resources?: Record | null; - lastError?: string | null; - lastErrorAt?: string | null; - errorCount?: number | null; - labels?: Record | null; - annotations?: Record | null; - databaseId?: string | null; + eventType?: string | null; + actorId?: string | null; + message?: string | null; + metadata?: Record | null; + cpuMillicores?: number | null; + memoryBytes?: string | null; + storageBytes?: string | null; + networkIngressBytes?: string | null; + networkEgressBytes?: string | null; + podCount?: number | null; + metrics?: Record | null; } -export interface UpdateFunctionDeploymentInput { +export interface UpdatePlatformNamespaceEventInput { clientMutationId?: string; id: string; - functionDeploymentPatch: FunctionDeploymentPatch; + platformNamespaceEventPatch: PlatformNamespaceEventPatch; } -export interface DeleteFunctionDeploymentInput { +export interface DeletePlatformNamespaceEventInput { clientMutationId?: string; id: string; } -export interface CreateResourceInput { +export interface CreateIntegrationProviderInput { clientMutationId?: string; - resource: { - createdBy?: string; - updatedBy?: string; - namespaceId: string; - kind: string; - name: string; + integrationProvider: { slug: string; - spec?: Record; - status?: string; - statusObserved?: Record; - lastError?: string; - errorCount?: number; - labels?: Record; - annotations?: Record; + name: string; + description?: string; + category?: string; + icon?: string; + logo?: ConstructiveInternalTypeImage; + brand?: Record; + requiredSecrets?: ResourceRequirementInput[]; + requiredConfigs?: ResourceRequirementInput[]; + }; +} +export interface IntegrationProviderPatch { + slug?: string | null; + name?: string | null; + description?: string | null; + category?: string | null; + icon?: string | null; + logo?: ConstructiveInternalTypeImage | null; + brand?: Record | null; + requiredSecrets?: ResourceRequirementInput[] | null; + requiredConfigs?: ResourceRequirementInput[] | null; + logoUpload?: File | null; +} +export interface UpdateIntegrationProviderInput { + clientMutationId?: string; + id: string; + integrationProviderPatch: IntegrationProviderPatch; +} +export interface DeleteIntegrationProviderInput { + clientMutationId?: string; + id: string; +} +export interface CreateNamespaceEventInput { + clientMutationId?: string; + namespaceEvent: { + namespaceId: string; + eventType: string; + actorId?: string; + message?: string; + metadata?: Record; + cpuMillicores?: number; + memoryBytes?: string; + storageBytes?: string; + networkIngressBytes?: string; + networkEgressBytes?: string; + podCount?: number; + metrics?: Record; databaseId: string; }; } -export interface ResourcePatch { - createdBy?: string | null; - updatedBy?: string | null; +export interface NamespaceEventPatch { namespaceId?: string | null; - kind?: string | null; - name?: string | null; - slug?: string | null; - spec?: Record | null; + eventType?: string | null; + actorId?: string | null; + message?: string | null; + metadata?: Record | null; + cpuMillicores?: number | null; + memoryBytes?: string | null; + storageBytes?: string | null; + networkIngressBytes?: string | null; + networkEgressBytes?: string | null; + podCount?: number | null; + metrics?: Record | null; + databaseId?: string | null; +} +export interface UpdateNamespaceEventInput { + clientMutationId?: string; + id: string; + namespaceEventPatch: NamespaceEventPatch; +} +export interface DeleteNamespaceEventInput { + clientMutationId?: string; + id: string; +} +export interface CreateFunctionGraphExecutionInput { + clientMutationId?: string; + functionGraphExecution: { + startedAt?: string; + graphId: string; + invocationId?: string; + scopeId: string; + outputNode?: string; + outputPort?: string; + status?: string; + inputPayload?: Record; + outputPayload?: Record; + nodeOutputs?: Record; + executionPlan?: Record; + currentWave?: number; + parentExecutionId?: string; + parentNodeName?: string; + definitionsCommitId?: string; + tickCount?: number; + completedAt?: string; + maxTicks?: number; + maxPendingJobs?: number; + timeoutAt?: string; + lastProgressAt?: string; + errorCode?: string; + errorMessage?: string; + }; +} +export interface FunctionGraphExecutionPatch { + startedAt?: string | null; + graphId?: string | null; + invocationId?: string | null; + scopeId?: string | null; + outputNode?: string | null; + outputPort?: string | null; status?: string | null; - statusObserved?: Record | null; - lastError?: string | null; - errorCount?: number | null; - labels?: Record | null; - annotations?: Record | null; - databaseId?: string | null; + inputPayload?: Record | null; + outputPayload?: Record | null; + nodeOutputs?: Record | null; + executionPlan?: Record | null; + currentWave?: number | null; + parentExecutionId?: string | null; + parentNodeName?: string | null; + definitionsCommitId?: string | null; + tickCount?: number | null; + completedAt?: string | null; + maxTicks?: number | null; + maxPendingJobs?: number | null; + timeoutAt?: string | null; + lastProgressAt?: string | null; + errorCode?: string | null; + errorMessage?: string | null; } -export interface UpdateResourceInput { +export interface UpdateFunctionGraphExecutionInput { clientMutationId?: string; id: string; - resourcePatch: ResourcePatch; + functionGraphExecutionPatch: FunctionGraphExecutionPatch; } -export interface DeleteResourceInput { +export interface DeleteFunctionGraphExecutionInput { clientMutationId?: string; id: string; } -export interface CreateFunctionGraphRefInput { +export interface CreatePlatformFunctionDefinitionInput { clientMutationId?: string; - functionGraphRef: { + platformFunctionDefinition: { + scope: string; name: string; - databaseId: string; - storeId: string; - commitId?: string; + taskIdentifier: string; + description?: string; + isPublished?: boolean; + accessChannels?: string[]; + publishedAt?: string; + maxAttempts?: number; + priority?: number; + queueName?: string; + runtime?: string; + targetSchema?: string; + targetFunction?: string; + moduleTable?: string; + functionColumns?: Record; + payloadArgs?: Record; + image?: string; + concurrency?: number; + scaleMin?: number; + scaleMax?: number; + timeoutSeconds?: number; + resources?: Record; + isBuiltIn?: boolean; + requiredSecrets?: ResourceRequirementInput[]; + requiredConfigs?: ResourceRequirementInput[]; + integrations?: string[]; + requiredBuckets?: string[]; + requiredModels?: string[]; + inputs?: Record; + outputs?: Record; + props?: Record; + volatile?: boolean; + icon?: string; + category?: string; }; } -export interface FunctionGraphRefPatch { +export interface PlatformFunctionDefinitionPatch { + scope?: string | null; name?: string | null; - databaseId?: string | null; - storeId?: string | null; - commitId?: string | null; + taskIdentifier?: string | null; + description?: string | null; + isPublished?: boolean | null; + accessChannels?: string[] | null; + publishedAt?: string | null; + maxAttempts?: number | null; + priority?: number | null; + queueName?: string | null; + runtime?: string | null; + targetSchema?: string | null; + targetFunction?: string | null; + moduleTable?: string | null; + functionColumns?: Record | null; + payloadArgs?: Record | null; + image?: string | null; + concurrency?: number | null; + scaleMin?: number | null; + scaleMax?: number | null; + timeoutSeconds?: number | null; + resources?: Record | null; + isBuiltIn?: boolean | null; + requiredSecrets?: ResourceRequirementInput[] | null; + requiredConfigs?: ResourceRequirementInput[] | null; + integrations?: string[] | null; + requiredBuckets?: string[] | null; + requiredModels?: string[] | null; + inputs?: Record | null; + outputs?: Record | null; + props?: Record | null; + volatile?: boolean | null; + icon?: string | null; + category?: string | null; } -export interface UpdateFunctionGraphRefInput { +export interface UpdatePlatformFunctionDefinitionInput { clientMutationId?: string; id: string; - functionGraphRefPatch: FunctionGraphRefPatch; + platformFunctionDefinitionPatch: PlatformFunctionDefinitionPatch; } -export interface DeleteFunctionGraphRefInput { +export interface DeletePlatformFunctionDefinitionInput { clientMutationId?: string; id: string; } -export interface CreateFunctionGraphStoreInput { +export interface CreateFunctionDefinitionInput { clientMutationId?: string; - functionGraphStore: { + functionDefinition: { + scope: string; name: string; + taskIdentifier: string; + description?: string; + isPublished?: boolean; + accessChannels?: string[]; + publishedAt?: string; + maxAttempts?: number; + priority?: number; + queueName?: string; + runtime?: string; + targetSchema?: string; + targetFunction?: string; + moduleTable?: string; + functionColumns?: Record; + payloadArgs?: Record; + image?: string; + concurrency?: number; + scaleMin?: number; + scaleMax?: number; + timeoutSeconds?: number; + resources?: Record; + isBuiltIn?: boolean; + requiredSecrets?: ResourceRequirementInput[]; + requiredConfigs?: ResourceRequirementInput[]; + integrations?: string[]; + requiredBuckets?: string[]; + requiredModels?: string[]; + inputs?: Record; + outputs?: Record; + props?: Record; + volatile?: boolean; + icon?: string; + category?: string; databaseId: string; - hash?: string; }; } -export interface FunctionGraphStorePatch { +export interface FunctionDefinitionPatch { + scope?: string | null; name?: string | null; + taskIdentifier?: string | null; + description?: string | null; + isPublished?: boolean | null; + accessChannels?: string[] | null; + publishedAt?: string | null; + maxAttempts?: number | null; + priority?: number | null; + queueName?: string | null; + runtime?: string | null; + targetSchema?: string | null; + targetFunction?: string | null; + moduleTable?: string | null; + functionColumns?: Record | null; + payloadArgs?: Record | null; + image?: string | null; + concurrency?: number | null; + scaleMin?: number | null; + scaleMax?: number | null; + timeoutSeconds?: number | null; + resources?: Record | null; + isBuiltIn?: boolean | null; + requiredSecrets?: ResourceRequirementInput[] | null; + requiredConfigs?: ResourceRequirementInput[] | null; + integrations?: string[] | null; + requiredBuckets?: string[] | null; + requiredModels?: string[] | null; + inputs?: Record | null; + outputs?: Record | null; + props?: Record | null; + volatile?: boolean | null; + icon?: string | null; + category?: string | null; databaseId?: string | null; - hash?: string | null; } -export interface UpdateFunctionGraphStoreInput { +export interface UpdateFunctionDefinitionInput { clientMutationId?: string; id: string; - functionGraphStorePatch: FunctionGraphStorePatch; + functionDefinitionPatch: FunctionDefinitionPatch; } -export interface DeleteFunctionGraphStoreInput { +export interface DeleteFunctionDefinitionInput { clientMutationId?: string; id: string; } -export interface CreateFunctionGraphObjectInput { +// ============ Connection Fields Map ============ +export const connectionFieldsMap = { + PlatformResource: { + platformResourceStatusChecksByResourceId: 'PlatformResourceStatusCheck', + }, + Resource: { + resourceStatusChecks: 'ResourceStatusCheck', + }, + PlatformNamespace: { + platformFunctionDeploymentsByNamespaceId: 'PlatformFunctionDeployment', + platformResourcesByNamespaceId: 'PlatformResource', + platformResourceDefinitionsByNamespaceId: 'PlatformResourceDefinition', + }, + Namespace: { + functionDeployments: 'FunctionDeployment', + resources: 'Resource', + resourceDefinitions: 'ResourceDefinition', + }, + PlatformFunctionDefinition: { + platformFunctionApiBindingsByFunctionDefinitionId: 'PlatformFunctionApiBinding', + }, + FunctionDefinition: { + functionApiBindings: 'FunctionApiBinding', + }, +} as Record>; +// ============ Custom Input Types (from schema) ============ +export interface ValidateFunctionGraphInput { clientMutationId?: string; - functionGraphObject: { - databaseId: string; - kids?: string[]; - ktree?: string[]; - data?: Record; - }; + graphId?: string; } -export interface FunctionGraphObjectPatch { - databaseId?: string | null; - kids?: string[] | null; - ktree?: string[] | null; - data?: Record | null; +export interface InfraInitEmptyRepoInput { + clientMutationId?: string; + sId?: string; + storeId?: string; } -export interface UpdateFunctionGraphObjectInput { +export interface InitEmptyRepoInput { clientMutationId?: string; - id: string; - functionGraphObjectPatch: FunctionGraphObjectPatch; + sId?: string; + storeId?: string; } -export interface DeleteFunctionGraphObjectInput { +export interface ImportDefinitionsInput { clientMutationId?: string; - id: string; + graphId?: string; + sourceScopeId?: string; + sourceCommitId?: string; + contexts?: string[]; } -export interface CreateFunctionDeploymentEventInput { +export interface InfraSetDataAtPathInput { clientMutationId?: string; - functionDeploymentEvent: { - deploymentId: string; - eventType: string; - actorId?: string; - message?: string; - metadata?: Record; - databaseId: string; - }; + sId?: string; + root?: string; + path?: string[]; + data?: Record; } -export interface FunctionDeploymentEventPatch { - deploymentId?: string | null; - eventType?: string | null; - actorId?: string | null; - message?: string | null; - metadata?: Record | null; - databaseId?: string | null; +export interface SetDataAtPathInput { + clientMutationId?: string; + sId?: string; + root?: string; + path?: string[]; + data?: Record; } -export interface UpdateFunctionDeploymentEventInput { +export interface CopyGraphInput { clientMutationId?: string; - id: string; - functionDeploymentEventPatch: FunctionDeploymentEventPatch; + scopeId?: string; + graphId?: string; + name?: string; } -export interface DeleteFunctionDeploymentEventInput { +export interface SaveGraphInput { clientMutationId?: string; - id: string; + graphId?: string; + rootHash?: string; + message?: string; } -export interface CreateOrgFunctionExecutionLogInput { +export interface AddEdgeAndSaveInput { clientMutationId?: string; - orgFunctionExecutionLog: { - invocationId?: string; - taskIdentifier?: string; - logLevel?: string; - message: string; - metadata?: Record; - actorId?: string; - }; + graphId?: string; + srcNode?: string; + srcPort?: string; + dstNode?: string; + dstPort?: string; + message?: string; } -export interface OrgFunctionExecutionLogPatch { - invocationId?: string | null; - taskIdentifier?: string | null; - logLevel?: string | null; - message?: string | null; - metadata?: Record | null; - actorId?: string | null; +export interface AddNodeAndSaveInput { + clientMutationId?: string; + graphId?: string; + nodeName?: string; + nodeType?: string; + props?: Record; + meta?: Record; + message?: string; } -export interface UpdateOrgFunctionExecutionLogInput { +export interface ImportGraphJsonInput { clientMutationId?: string; - id: string; - orgFunctionExecutionLogPatch: OrgFunctionExecutionLogPatch; + scopeId?: string; + name?: string; + graphJson?: Record; + context?: string; + description?: string; + createdBy?: string; + definitionsCommitId?: string; } -export interface DeleteOrgFunctionExecutionLogInput { +export interface AddEdgeInput { clientMutationId?: string; - id: string; + scopeId?: string; + rootHash?: string; + srcNode?: string; + srcPort?: string; + dstNode?: string; + dstPort?: string; + context?: string; + graphName?: string; } -export interface CreateResourceEventInput { +export interface AddNodeInput { clientMutationId?: string; - resourceEvent: { - resourceId: string; - eventType: string; - actorId?: string; - message?: string; - metadata?: Record; - databaseId: string; - }; -} -export interface ResourceEventPatch { - resourceId?: string | null; - eventType?: string | null; - actorId?: string | null; - message?: string | null; - metadata?: Record | null; - databaseId?: string | null; + scopeId?: string; + rootHash?: string; + nodeName?: string; + nodeType?: string; + context?: string; + graphName?: string; + props?: Record; + meta?: Record; } -export interface UpdateResourceEventInput { +export interface InfraInsertNodeAtPathInput { clientMutationId?: string; - id: string; - resourceEventPatch: ResourceEventPatch; + sId?: string; + root?: string; + path?: string[]; + data?: Record; + kids?: string[]; + ktree?: string[]; } -export interface DeleteResourceEventInput { +export interface InsertNodeAtPathInput { clientMutationId?: string; - id: string; + sId?: string; + root?: string; + path?: string[]; + data?: Record; + kids?: string[]; + ktree?: string[]; } -export interface CreateFunctionGraphExecutionOutputInput { +export interface StartExecutionInput { clientMutationId?: string; - functionGraphExecutionOutput: { - databaseId: string; - hash: Base64EncodedBinary; - data: Record; - }; + graphId?: string; + inputPayload?: Record; + outputNode?: string; + outputPort?: string; + maxTicks?: number; + maxPendingJobs?: number; + timeoutInterval?: IntervalInput; + parentExecutionId?: string; + parentNodeName?: string; } -export interface FunctionGraphExecutionOutputPatch { - databaseId?: string | null; - hash?: Base64EncodedBinary | null; - data?: Record | 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 UpdateFunctionGraphExecutionOutputInput { - clientMutationId?: string; - id: string; - functionGraphExecutionOutputPatch: FunctionGraphExecutionOutputPatch; +/** 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 at least one related entity matches. */ + some?: PlatformResourceStatusCheckFilter; + /** Filters to entities where every related entity matches. */ + every?: PlatformResourceStatusCheckFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformResourceStatusCheckFilter; } -export interface DeleteFunctionGraphExecutionOutputInput { - clientMutationId?: string; - id: string; +/** A filter to be used against Interval fields. All fields are combined with a logical ‘and.’ */ +export interface IntervalFilter { + /** Is null (if `true` is specified) or is not null (if `false` is specified). */ + isNull?: boolean; + /** Equal to the specified value. */ + equalTo?: IntervalInput; + /** Not equal to the specified value. */ + notEqualTo?: IntervalInput; + /** Not equal to the specified value, treating null like an ordinary value. */ + distinctFrom?: IntervalInput; + /** Equal to the specified value, treating null like an ordinary value. */ + notDistinctFrom?: IntervalInput; + /** Included in the specified list. */ + in?: IntervalInput[]; + /** Not included in the specified list. */ + notIn?: IntervalInput[]; + /** Less than the specified value. */ + lessThan?: IntervalInput; + /** Less than or equal to the specified value. */ + lessThanOrEqualTo?: IntervalInput; + /** Greater than the specified value. */ + greaterThan?: IntervalInput; + /** Greater than or equal to the specified value. */ + greaterThanOrEqualTo?: IntervalInput; } -export interface CreateFunctionGraphCommitInput { - clientMutationId?: string; - functionGraphCommit: { - message?: string; - databaseId: string; - storeId: string; - parentIds?: string[]; - authorId?: string; - committerId?: string; - treeId?: string; - date?: 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 at least one related entity matches. */ + some?: ResourceStatusCheckFilter; + /** Filters to entities where every related entity matches. */ + every?: ResourceStatusCheckFilter; + /** Filters to entities where no related entity matches. */ + none?: ResourceStatusCheckFilter; } -export interface FunctionGraphCommitPatch { - message?: string | null; - databaseId?: string | null; - storeId?: string | null; - parentIds?: string[] | null; - authorId?: string | null; - committerId?: string | null; - treeId?: string | null; - date?: string | null; +/** A filter to be used against Base64EncodedBinary fields. All fields are combined with a logical ‘and.’ */ +export interface Base64EncodedBinaryFilter { + /** Is null (if `true` is specified) or is not null (if `false` is specified). */ + isNull?: boolean; + /** Equal to the specified value. */ + equalTo?: Base64EncodedBinary; + /** Not equal to the specified value. */ + notEqualTo?: Base64EncodedBinary; + /** Not equal to the specified value, treating null like an ordinary value. */ + distinctFrom?: Base64EncodedBinary; + /** Equal to the specified value, treating null like an ordinary value. */ + notDistinctFrom?: Base64EncodedBinary; + /** Included in the specified list. */ + in?: Base64EncodedBinary[]; + /** Not included in the specified list. */ + notIn?: Base64EncodedBinary[]; } -export interface UpdateFunctionGraphCommitInput { - clientMutationId?: string; - id: string; - functionGraphCommitPatch: FunctionGraphCommitPatch; +/** 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 at least one related entity matches. */ + some?: PlatformFunctionDeploymentFilter; + /** Filters to entities where every related entity matches. */ + every?: PlatformFunctionDeploymentFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformFunctionDeploymentFilter; } -export interface DeleteFunctionGraphCommitInput { - clientMutationId?: string; - id: string; +/** 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 at least one related entity matches. */ + some?: PlatformResourceFilter; + /** Filters to entities where every related entity matches. */ + every?: PlatformResourceFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformResourceFilter; } -export interface CreateSecretDefinitionInput { - clientMutationId?: string; - secretDefinition: { - name: string; - description?: string; - isBuiltIn?: boolean; - labels?: Record; - annotations?: Record; - databaseId: 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 at least one related entity matches. */ + some?: PlatformResourceDefinitionFilter; + /** Filters to entities where every related entity matches. */ + every?: PlatformResourceDefinitionFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformResourceDefinitionFilter; } -export interface SecretDefinitionPatch { - name?: string | null; - description?: string | null; - isBuiltIn?: boolean | null; - labels?: Record | null; - annotations?: Record | null; - databaseId?: 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 at least one related entity matches. */ + some?: FunctionDeploymentFilter; + /** Filters to entities where every related entity matches. */ + every?: FunctionDeploymentFilter; + /** Filters to entities where no related entity matches. */ + none?: FunctionDeploymentFilter; } -export interface UpdateSecretDefinitionInput { - clientMutationId?: string; - id: string; - secretDefinitionPatch: SecretDefinitionPatch; +/** 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 at least one related entity matches. */ + some?: ResourceFilter; + /** Filters to entities where every related entity matches. */ + every?: ResourceFilter; + /** Filters to entities where no related entity matches. */ + none?: ResourceFilter; } -export interface DeleteSecretDefinitionInput { - 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 at least one related entity matches. */ + some?: ResourceDefinitionFilter; + /** Filters to entities where every related entity matches. */ + every?: ResourceDefinitionFilter; + /** Filters to entities where no related entity matches. */ + none?: ResourceDefinitionFilter; } -export interface CreateFunctionExecutionLogInput { - clientMutationId?: string; - functionExecutionLog: { - invocationId?: string; - taskIdentifier?: string; - logLevel?: string; - message: string; - metadata?: Record; - actorId?: string; - databaseId: string; - }; +/** A filter to be used against ConstructiveInternalTypeImage fields. All fields are combined with a logical ‘and.’ */ +export interface ConstructiveInternalTypeImageFilter { + /** Is null (if `true` is specified) or is not null (if `false` is specified). */ + isNull?: boolean; + /** Equal to the specified value. */ + equalTo?: ConstructiveInternalTypeImage; + /** Not equal to the specified value. */ + notEqualTo?: ConstructiveInternalTypeImage; + /** Not equal to the specified value, treating null like an ordinary value. */ + distinctFrom?: ConstructiveInternalTypeImage; + /** Equal to the specified value, treating null like an ordinary value. */ + notDistinctFrom?: ConstructiveInternalTypeImage; + /** Included in the specified list. */ + in?: ConstructiveInternalTypeImage[]; + /** Not included in the specified list. */ + notIn?: ConstructiveInternalTypeImage[]; + /** Less than the specified value. */ + lessThan?: ConstructiveInternalTypeImage; + /** Less than or equal to the specified value. */ + lessThanOrEqualTo?: ConstructiveInternalTypeImage; + /** Greater than the specified value. */ + greaterThan?: ConstructiveInternalTypeImage; + /** Greater than or equal to the specified value. */ + greaterThanOrEqualTo?: ConstructiveInternalTypeImage; + /** Contains the specified JSON. */ + contains?: ConstructiveInternalTypeImage; + /** Contains the specified key. */ + containsKey?: string; + /** Contains all of the specified keys. */ + containsAllKeys?: string[]; + /** Contains any of the specified keys. */ + containsAnyKeys?: string[]; + /** Contained by the specified JSON. */ + containedBy?: ConstructiveInternalTypeImage; +} +/** A filter to be used against many `PlatformFunctionApiBinding` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformFunctionDefinitionToManyPlatformFunctionApiBindingFilter { + /** Filters to entities where at least one related entity matches. */ + some?: PlatformFunctionApiBindingFilter; + /** Filters to entities where every related entity matches. */ + every?: PlatformFunctionApiBindingFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformFunctionApiBindingFilter; +} +/** 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 at least one related entity matches. */ + some?: FunctionApiBindingFilter; + /** Filters to entities where every related entity matches. */ + every?: FunctionApiBindingFilter; + /** Filters to entities where no related entity matches. */ + none?: FunctionApiBindingFilter; +} +/** An input for mutations affecting `InfraRef` */ +export interface InfraRefInput { + /** 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; + /** Commit this ref points to */ + commitId?: string; +} +/** An input for mutations affecting `InfraStore` */ +export interface InfraStoreInput { + /** Unique store identifier */ + id?: string; + /** Human-readable store name */ + name: string; + /** Opaque store partition key for the global tier */ + scopeId: string; + /** Current root object hash of this store */ + hash?: string; + /** Timestamp of store creation */ + createdAt?: string; } -export interface FunctionExecutionLogPatch { - invocationId?: string | null; - taskIdentifier?: string | null; - logLevel?: string | null; - message?: string | null; - metadata?: Record | null; - actorId?: string | null; - databaseId?: string | null; +/** An input for mutations affecting `FunctionApiBinding` */ +export interface FunctionApiBindingInput { + id?: string; + /** Function definition this binding belongs to */ + functionDefinitionId: string; + /** API endpoint this function is bound to */ + apiId: string; + /** Binding alias (e.g. default, staging, production) */ + alias?: string; + /** Per-binding configuration (overrides, routing rules, etc.) */ + config?: Record; } -export interface UpdateFunctionExecutionLogInput { - clientMutationId?: string; - id: string; - functionExecutionLogPatch: FunctionExecutionLogPatch; +/** An input for mutations affecting `FunctionGraphRef` */ +export interface FunctionGraphRefInput { + /** 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; + /** Commit this ref points to */ + commitId?: string; } -export interface DeleteFunctionExecutionLogInput { - clientMutationId?: string; - id: string; +/** An input for mutations affecting `FunctionGraphStore` */ +export interface FunctionGraphStoreInput { + /** Unique store identifier */ + id?: string; + /** Human-readable store name */ + name: string; + /** Opaque store partition key for the global tier */ + scopeId: string; + /** Current root object hash of this store */ + hash?: string; + /** Timestamp of store creation */ + createdAt?: string; } -export interface CreateFunctionGraphInput { - clientMutationId?: string; - functionGraph: { - databaseId: string; - storeId: string; - context?: string; - name?: string; - description?: string; - definitionsCommitId: string; - isValid?: boolean; - validationErrors?: Record; - createdBy?: string; - }; +/** An input for mutations affecting `PlatformFunctionApiBinding` */ +export interface PlatformFunctionApiBindingInput { + id?: string; + /** Function definition this binding belongs to */ + functionDefinitionId: string; + /** API endpoint this function is bound to */ + apiId: string; + /** Binding alias (e.g. default, staging, production) */ + alias?: string; + /** Per-binding configuration (overrides, routing rules, etc.) */ + config?: Record; } -export interface FunctionGraphPatch { - databaseId?: string | null; - storeId?: string | null; - context?: string | null; - name?: string | null; - description?: string | null; - definitionsCommitId?: string | null; - isValid?: boolean | null; - validationErrors?: Record | null; - createdBy?: string | null; +/** An input for mutations affecting `PlatformResourceStatusCheck` */ +export interface PlatformResourceStatusCheckInput { + /** Unique status check identifier */ + id?: string; + /** Resource to check */ + resourceId: string; + /** User who requested the check (NULL for system/scheduled) */ + requestedBy?: string; + /** When the check was requested */ + requestedAt?: string; + /** When the check completed (NULL while pending/running) */ + completedAt?: string; + /** Check lifecycle: pending, running, completed, failed */ + status?: string; + /** Diagnostic snapshot: k8s_status, conditions, pod_logs_tail, events */ + result?: Record; } -export interface UpdateFunctionGraphInput { - clientMutationId?: string; - id: string; - functionGraphPatch: FunctionGraphPatch; +/** An input for mutations affecting `PlatformFunctionDeployment` */ +export interface PlatformFunctionDeploymentInput { + id?: string; + createdAt?: string; + updatedAt?: string; + /** Target namespace for this deployment (maps to a K8s namespace) */ + namespaceId: string; + /** Deployment lifecycle status: pending, provisioning, active, failed, scaled_to_zero, deactivated */ + status?: string; + /** Knative service URL (http://{service-name}.{namespace}.svc.cluster.local) — populated after provisioning */ + serviceUrl?: string; + /** 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; + /** Deployment revision number (incremented on each redeployment) */ + revision?: number; + /** 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; + /** Handler directory name (e.g. email, document) — used as FN_HANDLER_NAME in combined-image mode to select the entry point */ + handlerName?: string; + /** Max concurrent requests per pod (NULL = inherit from definition) */ + concurrency?: number; + /** Minimum replica count (NULL = inherit from definition or Knative default) */ + scaleMin?: number; + /** Maximum replica count (NULL = inherit from definition or Knative default) */ + scaleMax?: number; + /** Request timeout override in seconds (NULL = inherit from definition) */ + timeoutSeconds?: number; + /** K8s resource spec override: {"requests":{"cpu":"100m","memory":"128Mi"},"limits":{...}} */ + resources?: Record; + /** Most recent provisioning or runtime error message */ + lastError?: string; + /** Timestamp of the most recent error */ + lastErrorAt?: string; + /** Cumulative error count for this deployment */ + errorCount?: number; + /** Key/value pairs for selecting and filtering deployments */ + labels?: Record; + /** Freeform metadata for tooling and operational notes */ + annotations?: Record; } -export interface DeleteFunctionGraphInput { - clientMutationId?: string; - id: string; +/** An input for mutations affecting `PlatformResource` */ +export interface PlatformResourceInput { + id?: string; + createdAt?: string; + updatedAt?: string; + createdBy?: string; + updatedBy?: string; + /** Namespace this resource belongs to (security boundary, maps to K8s namespace) */ + namespaceId: string; + /** Resource kind: Deployment, StatefulSet, Service, Ingress, Certificate */ + kind: string; + /** Human-readable resource name */ + name: 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, failed, draining, deleting */ + status?: string; + /** Observed state from K8s — populated by handlers after reconciliation (service_url, clone_url, replicas, etc.) */ + statusObserved?: Record; + /** Most recent provisioning or runtime error message */ + lastError?: string; + /** Cumulative error count for this resource */ + errorCount?: number; + /** Key/value pairs for selecting and filtering resources */ + labels?: Record; + /** Freeform metadata for tooling and operational notes */ + annotations?: Record; + /** 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[]; + /** 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[]; + /** 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[]; + /** Definition template this resource was created from (NULL for standalone resources) */ + resourceDefinitionId?: string; +} +/** An input for mutations affecting `ResourceRequirement` */ +export interface ResourceRequirementInput { + name?: string; + required?: boolean; + provider?: string; } -export interface CreateFunctionGraphExecutionNodeStateInput { - clientMutationId?: string; - functionGraphExecutionNodeState: { - executionId: string; - databaseId: string; - nodeName: string; - nodePath?: string[]; - status?: string; - startedAt?: string; - completedAt?: string; - errorCode?: string; - errorMessage?: string; - outputId?: string; - }; +/** An input for mutations affecting `PlatformResourceDefinition` */ +export interface PlatformResourceDefinitionInput { + id?: string; + createdAt?: string; + updatedAt?: string; + createdBy?: string; + updatedBy?: string; + /** Namespace this definition belongs to (security boundary, maps to K8s namespace) */ + namespaceId: string; + /** Resource kind: Deployment, StatefulSet, Service, Ingress, Certificate, or custom kinds */ + kind: string; + /** Human-readable definition name */ + name: string; + /** URL-safe identifier, unique within (namespace_id, kind) */ + slug: string; + /** What this resource definition provides */ + description?: string; + /** Template spec for creating resource instances of this kind */ + defaultSpec?: Record; + /** Embedded secret requirements: array of (name, required, provider) tuples. provider is the integration slug this requirement belongs to, if any. */ + requiredSecrets?: ResourceRequirementInput[]; + /** Embedded config requirements: array of (name, required, provider) tuples. provider is the integration slug this requirement belongs to, if any. */ + requiredConfigs?: ResourceRequirementInput[]; + /** 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[]; + /** Key/value pairs for selecting and filtering definitions */ + labels?: Record; + /** Freeform metadata for tooling and operational notes */ + annotations?: Record; + /** Min age before DELETE of a resource of this kind requires step-up; NULL inherits the 6h default */ + stepUpMinAge?: IntervalInput; } -export interface FunctionGraphExecutionNodeStatePatch { - executionId?: string | null; - databaseId?: string | null; - nodeName?: string | null; - nodePath?: string[] | null; - status?: string | null; - startedAt?: string | null; - completedAt?: string | null; - errorCode?: string | null; - errorMessage?: string | null; - outputId?: string | null; +/** An interval of time that has passed where the smallest distinct unit is a second. */ +export interface IntervalInput { + /** + * A quantity of seconds. This is the only non-integer field, as all the other + * fields will dump their overflow into a smaller unit of time. Intervals don’t + * have a smaller unit than seconds. + */ + seconds?: number; + /** A quantity of minutes. */ + minutes?: number; + /** A quantity of hours. */ + hours?: number; + /** A quantity of days. */ + days?: number; + /** A quantity of months. */ + months?: number; + /** A quantity of years. */ + years?: number; } -export interface UpdateFunctionGraphExecutionNodeStateInput { - clientMutationId?: string; +/** An input for mutations affecting `InfraObject` */ +export interface InfraObjectInput { + /** Content-addressed UUID v5 — deterministic hash of (data, kids, ktree) */ id: string; - functionGraphExecutionNodeStatePatch: FunctionGraphExecutionNodeStatePatch; + /** Opaque store partition key for the global tier */ + scopeId: string; + /** Ordered array of child object IDs */ + kids?: string[]; + /** Ordered array of child path names (parallel to kids) */ + ktree?: string[]; + /** Payload data for this object node */ + data?: Record; + /** Timestamp of object creation */ + createdAt?: string; } -export interface DeleteFunctionGraphExecutionNodeStateInput { - clientMutationId?: string; +/** An input for mutations affecting `FunctionGraphObject` */ +export interface FunctionGraphObjectInput { + /** Content-addressed UUID v5 — deterministic hash of (data, kids, ktree) */ id: string; + /** Opaque store partition key for the global tier */ + scopeId: string; + /** Ordered array of child object IDs */ + kids?: string[]; + /** Ordered array of child path names (parallel to kids) */ + ktree?: string[]; + /** Payload data for this object node */ + data?: Record; + /** Timestamp of object creation */ + createdAt?: string; +} +/** An input for mutations affecting `PlatformFunctionDeploymentEvent` */ +export interface PlatformFunctionDeploymentEventInput { + /** Event timestamp (partition key) */ + createdAt?: string; + /** Unique event identifier */ + id?: string; + /** Deployment this event belongs to */ + deploymentId: string; + /** Event type: provisioned, scaled, failed, deactivated, redeployed, health_check */ + eventType: string; + /** User who triggered this event (NULL for system/automated) */ + actorId?: string; + /** Human-readable description of the event */ + message?: string; + /** Structured context (old/new values, error details, etc.) */ + metadata?: Record; } -export interface CreatePlatformNamespaceInput { - clientMutationId?: string; - platformNamespace: { - name: string; - namespaceName: string; - description?: string; - isActive?: boolean; - labels?: Record; - annotations?: Record; - databaseId: string; - sourceDatabaseId?: string; - sourceScope?: string; - isManaged?: boolean; - }; +/** An input for mutations affecting `PlatformResourceEvent` */ +export interface PlatformResourceEventInput { + /** Event timestamp (partition key) */ + createdAt?: string; + /** Unique event identifier */ + id?: string; + /** Resource this event belongs to */ + resourceId: string; + /** Event type: provisioned, provisioning, updated, failed, deprovisioned, health_check */ + eventType: string; + /** User who triggered this event (NULL for system/automated) */ + actorId?: string; + /** Human-readable description of the event */ + message?: string; + /** Structured context (old/new values, error details, etc.) */ + metadata?: Record; } -export interface PlatformNamespacePatch { - name?: string | null; - namespaceName?: string | null; - description?: string | null; - isActive?: boolean | null; - labels?: Record | null; - annotations?: Record | null; - databaseId?: string | null; - sourceDatabaseId?: string | null; - sourceScope?: string | null; - isManaged?: boolean | null; +/** An input for mutations affecting `ResourceStatusCheck` */ +export interface ResourceStatusCheckInput { + /** Unique status check identifier */ + id?: string; + /** Resource to check */ + resourceId: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + /** User who requested the check (NULL for system/scheduled) */ + requestedBy?: string; + /** When the check was requested */ + requestedAt?: string; + /** When the check completed (NULL while pending/running) */ + completedAt?: string; + /** Check lifecycle: pending, running, completed, failed */ + status?: string; + /** Diagnostic snapshot: k8s_status, conditions, pod_logs_tail, events */ + result?: Record; } -export interface UpdatePlatformNamespaceInput { - clientMutationId?: string; - id: string; - platformNamespacePatch: PlatformNamespacePatch; +/** An input for mutations affecting `FunctionDeployment` */ +export interface FunctionDeploymentInput { + id?: string; + createdAt?: string; + updatedAt?: string; + /** Target namespace for this deployment (maps to a K8s namespace) */ + namespaceId: string; + /** Deployment lifecycle status: pending, provisioning, active, failed, scaled_to_zero, deactivated */ + status?: string; + /** Knative service URL (http://{service-name}.{namespace}.svc.cluster.local) — populated after provisioning */ + serviceUrl?: string; + /** 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; + /** Deployment revision number (incremented on each redeployment) */ + revision?: number; + /** 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; + /** Handler directory name (e.g. email, document) — used as FN_HANDLER_NAME in combined-image mode to select the entry point */ + handlerName?: string; + /** Max concurrent requests per pod (NULL = inherit from definition) */ + concurrency?: number; + /** Minimum replica count (NULL = inherit from definition or Knative default) */ + scaleMin?: number; + /** Maximum replica count (NULL = inherit from definition or Knative default) */ + scaleMax?: number; + /** Request timeout override in seconds (NULL = inherit from definition) */ + timeoutSeconds?: number; + /** K8s resource spec override: {"requests":{"cpu":"100m","memory":"128Mi"},"limits":{...}} */ + resources?: Record; + /** Most recent provisioning or runtime error message */ + lastError?: string; + /** Timestamp of the most recent error */ + lastErrorAt?: string; + /** Cumulative error count for this deployment */ + errorCount?: number; + /** Key/value pairs for selecting and filtering deployments */ + labels?: Record; + /** Freeform metadata for tooling and operational notes */ + annotations?: Record; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; } -export interface DeletePlatformNamespaceInput { - clientMutationId?: string; - id: string; +/** An input for mutations affecting `Resource` */ +export interface ResourceInput { + id?: string; + createdAt?: string; + updatedAt?: string; + createdBy?: string; + updatedBy?: string; + /** Namespace this resource belongs to (security boundary, maps to K8s namespace) */ + namespaceId: string; + /** Resource kind: Deployment, StatefulSet, Service, Ingress, Certificate */ + kind: string; + /** Human-readable resource name */ + name: 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, failed, draining, deleting */ + status?: string; + /** Observed state from K8s — populated by handlers after reconciliation (service_url, clone_url, replicas, etc.) */ + statusObserved?: Record; + /** Most recent provisioning or runtime error message */ + lastError?: string; + /** Cumulative error count for this resource */ + errorCount?: number; + /** Key/value pairs for selecting and filtering resources */ + labels?: Record; + /** Freeform metadata for tooling and operational notes */ + annotations?: Record; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + /** 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[]; + /** 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[]; + /** 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[]; + /** Definition template this resource was created from (NULL for standalone resources) */ + resourceDefinitionId?: string; +} +/** An input for mutations affecting `ResourceDefinition` */ +export interface ResourceDefinitionInput { + id?: string; + createdAt?: string; + updatedAt?: string; + createdBy?: string; + updatedBy?: string; + /** Namespace this definition belongs to (security boundary, maps to K8s namespace) */ + namespaceId: string; + /** Resource kind: Deployment, StatefulSet, Service, Ingress, Certificate, or custom kinds */ + kind: string; + /** Human-readable definition name */ + name: string; + /** URL-safe identifier, unique within (namespace_id, kind) */ + slug: string; + /** What this resource definition provides */ + description?: string; + /** Template spec for creating resource instances of this kind */ + defaultSpec?: Record; + /** Embedded secret requirements: array of (name, required, provider) tuples. provider is the integration slug this requirement belongs to, if any. */ + requiredSecrets?: ResourceRequirementInput[]; + /** Embedded config requirements: array of (name, required, provider) tuples. provider is the integration slug this requirement belongs to, if any. */ + requiredConfigs?: ResourceRequirementInput[]; + /** 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[]; + /** Key/value pairs for selecting and filtering definitions */ + labels?: Record; + /** Freeform metadata for tooling and operational notes */ + annotations?: Record; + /** Min age before DELETE of a resource of this kind requires step-up; NULL inherits the 6h default */ + stepUpMinAge?: IntervalInput; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; } -export interface CreateOrgFunctionInvocationInput { - clientMutationId?: string; - orgFunctionInvocation: { - actorId?: string; - taskIdentifier: string; - payload?: Record; - status?: string; - result?: Record; - error?: string; - durationMs?: number; - jobId?: string; - startedAt?: string; - completedAt?: string; - parentInvocationId?: string; - graphExecutionId?: string; - }; +/** An input for mutations affecting `FunctionDeploymentEvent` */ +export interface FunctionDeploymentEventInput { + /** Event timestamp (partition key) */ + createdAt?: string; + /** Unique event identifier */ + id?: string; + /** Deployment this event belongs to */ + deploymentId: string; + /** Event type: provisioned, scaled, failed, deactivated, redeployed, health_check */ + eventType: string; + /** User who triggered this event (NULL for system/automated) */ + actorId?: string; + /** Human-readable description of the event */ + message?: string; + /** Structured context (old/new values, error details, etc.) */ + metadata?: Record; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; } -export interface OrgFunctionInvocationPatch { - actorId?: string | null; - taskIdentifier?: string | null; - payload?: Record | null; - status?: string | null; - result?: Record | null; - error?: string | null; - durationMs?: number | null; - jobId?: string | null; - startedAt?: string | null; - completedAt?: string | null; - parentInvocationId?: string | null; - graphExecutionId?: string | null; +/** An input for mutations affecting `PlatformFunctionExecutionLog` */ +export interface PlatformFunctionExecutionLogInput { + /** 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; + /** Function routing key (NULL for generic job logs) */ + taskIdentifier?: string; + /** Log severity: debug, info, warn, error */ + logLevel?: string; + /** Log message text */ + message: string; + /** Structured context (labels, trace data, extra fields) */ + metadata?: Record; + /** User who triggered the execution (NULL for system/cron) */ + actorId?: string; } -export interface UpdateOrgFunctionInvocationInput { - clientMutationId?: string; - id: string; - orgFunctionInvocationPatch: OrgFunctionInvocationPatch; +/** An input for mutations affecting `ResourceEvent` */ +export interface ResourceEventInput { + /** Event timestamp (partition key) */ + createdAt?: string; + /** Unique event identifier */ + id?: string; + /** Resource this event belongs to */ + resourceId: string; + /** Event type: provisioned, provisioning, updated, failed, deprovisioned, health_check */ + eventType: string; + /** User who triggered this event (NULL for system/automated) */ + actorId?: string; + /** Human-readable description of the event */ + message?: string; + /** Structured context (old/new values, error details, etc.) */ + metadata?: Record; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; } -export interface DeleteOrgFunctionInvocationInput { - clientMutationId?: string; - id: string; +/** An input for mutations affecting `FunctionGraphExecutionOutput` */ +export interface FunctionGraphExecutionOutputInput { + /** Timestamp of output creation */ + createdAt?: string; + /** Unique execution output identifier */ + id?: string; + /** Opaque store partition key for the global tier */ + scopeId: string; + /** SHA-256 hash of the data JSONB — content-addressed deduplication */ + hash: Base64EncodedBinary; + /** The actual output payload from a completed node */ + data: Record; } -export interface CreateFunctionInvocationInput { - clientMutationId?: string; - functionInvocation: { - actorId?: string; - databaseId: string; - taskIdentifier: string; - payload?: Record; - status?: string; - result?: Record; - error?: string; - durationMs?: number; - jobId?: string; - startedAt?: string; - completedAt?: string; - parentInvocationId?: string; - graphExecutionId?: string; - }; +/** An input for mutations affecting `InfraCommit` */ +export interface InfraCommitInput { + /** Unique commit identifier */ + id?: string; + /** Optional commit message */ + message?: string; + /** Opaque store partition key for the global tier */ + scopeId: string; + /** Store this commit belongs to */ + storeId: string; + /** Parent commit IDs (supports merge commits) */ + parentIds?: string[]; + /** User who authored the changes */ + authorId?: string; + /** User who committed (may differ from author) */ + committerId?: string; + /** Root object ID of the tree snapshot at this commit */ + treeId?: string; + /** Commit timestamp */ + date?: string; } -export interface FunctionInvocationPatch { - actorId?: string | null; - databaseId?: string | null; - taskIdentifier?: string | null; - payload?: Record | null; - status?: string | null; - result?: Record | null; - error?: string | null; - durationMs?: number | null; - jobId?: string | null; - startedAt?: string | null; - completedAt?: string | null; - parentInvocationId?: string | null; - graphExecutionId?: string | null; +/** An input for mutations affecting `FunctionGraphCommit` */ +export interface FunctionGraphCommitInput { + /** Unique commit identifier */ + id?: string; + /** Optional commit message */ + message?: string; + /** Opaque store partition key for the global tier */ + scopeId: string; + /** Store this commit belongs to */ + storeId: string; + /** Parent commit IDs (supports merge commits) */ + parentIds?: string[]; + /** User who authored the changes */ + authorId?: string; + /** User who committed (may differ from author) */ + committerId?: string; + /** Root object ID of the tree snapshot at this commit */ + treeId?: string; + /** Commit timestamp */ + date?: string; } -export interface UpdateFunctionInvocationInput { - clientMutationId?: string; - id: string; - functionInvocationPatch: FunctionInvocationPatch; +/** An input for mutations affecting `FunctionExecutionLog` */ +export interface FunctionExecutionLogInput { + /** 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; + /** Function routing key (NULL for generic job logs) */ + taskIdentifier?: string; + /** Log severity: debug, info, warn, error */ + logLevel?: string; + /** Log message text */ + message: string; + /** Structured context (labels, trace data, extra fields) */ + metadata?: Record; + /** User who triggered the execution (NULL for system/cron) */ + actorId?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; } -export interface DeleteFunctionInvocationInput { - clientMutationId?: string; - id: string; +/** An input for mutations affecting `DbPreset` */ +export interface DbPresetInput { + /** Unique preset identifier */ + id?: string; + /** Infra Merkle store holding this preset's history (stamped by the versioned trigger) */ + storeId?: string; + /** Preset slug (unique per scope); the preset's path in the infra tree is [db_preset, slug] */ + slug: string; + /** Preset definition (modules + options) — the readily-cached head; history lives in the infra store */ + definition: Record; + /** Infra store commit for the current definition (stamped by the versioned trigger on every write) */ + commitId?: 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; + /** Human-readable preset name */ + label?: string; + /** Human-readable description of the preset */ + description?: string; + /** Whether this preset is selectable for new databases */ + active?: boolean; + /** Timestamp of preset creation */ + createdAt?: string; + /** Timestamp of last modification */ + updatedAt?: string; } -export interface CreatePlatformNamespaceEventInput { - clientMutationId?: string; - platformNamespaceEvent: { - namespaceId: string; - eventType: string; - actorId?: string; - message?: string; - metadata?: Record; - cpuMillicores?: number; - memoryBytes?: string; - storageBytes?: string; - networkIngressBytes?: string; - networkEgressBytes?: string; - podCount?: number; - metrics?: Record; - databaseId: string; - }; +/** An input for mutations affecting `PlatformNamespace` */ +export interface PlatformNamespaceInput { + id?: string; + createdAt?: string; + updatedAt?: string; + /** Human-readable namespace name (e.g. default, production, oauth) */ + name: string; + /** Globally unique computed namespace identifier via inflection.underscore */ + namespaceName: string; + /** Optional human-readable description of this namespace */ + description?: string; + /** Whether this namespace is active (soft-disable for filtering) */ + isActive?: boolean; + /** Namespace provisioning lifecycle status: pending, provisioning, active, failed */ + status?: string; + /** Most recent provisioning or reconcile error message */ + lastError?: string; + /** Key/value pairs for selecting and filtering namespaces */ + labels?: Record; + /** Freeform metadata for tooling and operational notes */ + annotations?: Record; + /** true = provisioned by the platform via jobs, false = unmanaged/platform-native (bootstrapped externally) */ + isManaged?: boolean; } -export interface PlatformNamespaceEventPatch { - namespaceId?: string | null; - eventType?: string | null; - actorId?: string | null; - message?: string | null; - metadata?: Record | null; - cpuMillicores?: number | null; - memoryBytes?: string | null; - storageBytes?: string | null; - networkIngressBytes?: string | null; - networkEgressBytes?: string | null; - podCount?: number | null; - metrics?: Record | null; - databaseId?: string | null; +/** An input for mutations affecting `FunctionGraphExecutionNodeState` */ +export interface FunctionGraphExecutionNodeStateInput { + /** Timestamp of node state creation (partition key) */ + createdAt?: string; + /** Unique node state identifier */ + id?: string; + /** FK to the parent graph execution */ + executionId: string; + /** Opaque store partition key for the global tier */ + scopeId: 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[]; + /** Node lifecycle: pending → queued → running → completed/failed */ + status?: string; + /** Timestamp when the node began executing */ + startedAt?: string; + /** Timestamp when the node finished (success or failure) */ + completedAt?: string; + /** Machine-readable error code when status = failed */ + errorCode?: string; + /** Human-readable error description when status = failed */ + errorMessage?: string; + /** FK to execution_outputs — content-addressed output blob for this node */ + outputId?: string; } -export interface UpdatePlatformNamespaceEventInput { - clientMutationId?: string; - id: string; - platformNamespaceEventPatch: PlatformNamespaceEventPatch; +/** An input for mutations affecting `Namespace` */ +export interface NamespaceInput { + id?: string; + createdAt?: string; + updatedAt?: string; + /** Human-readable namespace name (e.g. default, production, oauth) */ + name: string; + /** Globally unique computed namespace identifier via inflection.underscore */ + namespaceName: string; + /** Optional human-readable description of this namespace */ + description?: string; + /** Whether this namespace is active (soft-disable for filtering) */ + isActive?: boolean; + /** Namespace provisioning lifecycle status: pending, provisioning, active, failed */ + status?: string; + /** Most recent provisioning or reconcile error message */ + lastError?: string; + /** Key/value pairs for selecting and filtering namespaces */ + labels?: Record; + /** Freeform metadata for tooling and operational notes */ + annotations?: Record; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + /** true = provisioned by the platform via jobs, false = unmanaged/platform-native (bootstrapped externally) */ + isManaged?: boolean; } -export interface DeletePlatformNamespaceEventInput { - clientMutationId?: string; - id: string; +/** An input for mutations affecting `PlatformFunctionInvocation` */ +export interface PlatformFunctionInvocationInput { + /** Invocation creation timestamp (partition key) */ + createdAt?: string; + /** Unique invocation identifier */ + id?: string; + /** Who triggered the invocation (NULL for system/cron) */ + actorId?: string; + /** Function routing slug (scope:name). Links to function_definitions.task_identifier by convention — no FK. */ + taskIdentifier: string; + /** Function input payload */ + payload?: Record; + /** Lifecycle: pending → running → completed/failed/cancelled */ + status?: string; + /** Function return value (success) or structured error (failure) */ + result?: Record; + /** Error message when status is failed */ + error?: string; + /** Wall-clock execution time in milliseconds */ + durationMs?: number; + /** FK to app_jobs.jobs — the underlying transport */ + jobId?: string; + /** When execution started */ + startedAt?: string; + /** When execution completed */ + completedAt?: string; + /** Parent invocation when this is a child node of a flow graph execution */ + parentInvocationId?: string; + /** Groups all node invocations from a single flow graph execution */ + graphExecutionId?: string; } -export interface CreateFunctionGraphExecutionInput { - clientMutationId?: string; - functionGraphExecution: { - startedAt?: string; - graphId: string; - invocationId?: string; - databaseId: string; - outputNode: string; - outputPort?: string; - status?: string; - inputPayload?: Record; - outputPayload?: Record; - nodeOutputs?: Record; - executionPlan?: Record; - currentWave?: number; - parentExecutionId?: string; - parentNodeName?: string; - definitionsCommitId?: string; - tickCount?: number; - completedAt?: string; - maxTicks?: number; - maxPendingJobs?: number; - timeoutAt?: string; - errorCode?: string; - errorMessage?: string; - }; +/** An input for mutations affecting `FunctionInvocation` */ +export interface FunctionInvocationInput { + /** Invocation creation timestamp (partition key) */ + createdAt?: string; + /** Unique invocation identifier */ + id?: string; + /** Who triggered the invocation (NULL for system/cron) */ + actorId?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + /** Function routing slug (scope:name). Links to function_definitions.task_identifier by convention — no FK. */ + taskIdentifier: string; + /** Function input payload */ + payload?: Record; + /** Lifecycle: pending → running → completed/failed/cancelled */ + status?: string; + /** Function return value (success) or structured error (failure) */ + result?: Record; + /** Error message when status is failed */ + error?: string; + /** Wall-clock execution time in milliseconds */ + durationMs?: number; + /** FK to app_jobs.jobs — the underlying transport */ + jobId?: string; + /** When execution started */ + startedAt?: string; + /** When execution completed */ + completedAt?: string; + /** Parent invocation when this is a child node of a flow graph execution */ + parentInvocationId?: string; + /** Groups all node invocations from a single flow graph execution */ + graphExecutionId?: string; +} +/** An input for mutations affecting `PlatformNamespaceEvent` */ +export interface PlatformNamespaceEventInput { + /** Event timestamp (partition key) */ + createdAt?: string; + /** Unique event identifier */ + id?: string; + /** Namespace this event belongs to */ + namespaceId: string; + /** Event type: created, activated, deactivated, labels_updated, annotations_updated, renamed */ + eventType: string; + /** User who triggered this event (NULL for system/automated) */ + actorId?: string; + /** Human-readable description of the event */ + message?: string; + /** Structured context (old/new values, labels diff, etc.) */ + metadata?: Record; + /** CPU usage in millicores at time of event */ + cpuMillicores?: number; + /** Memory usage in bytes at time of event */ + memoryBytes?: string; + /** Storage usage in bytes at time of event */ + storageBytes?: string; + /** Network ingress in bytes during event window */ + networkIngressBytes?: string; + /** Network egress in bytes during event window */ + networkEgressBytes?: string; + /** Number of active pods in the namespace at time of event */ + podCount?: number; + /** Additional resource metrics (gpu, replicas, quotas, etc.) */ + metrics?: Record; } -export interface FunctionGraphExecutionPatch { - startedAt?: string | null; - graphId?: string | null; - invocationId?: string | null; - databaseId?: string | null; - outputNode?: string | null; - outputPort?: string | null; - status?: string | null; - inputPayload?: Record | null; - outputPayload?: Record | null; - nodeOutputs?: Record | null; - executionPlan?: Record | null; - currentWave?: number | null; - parentExecutionId?: string | null; - parentNodeName?: string | null; - definitionsCommitId?: string | null; - tickCount?: number | null; - completedAt?: string | null; - maxTicks?: number | null; - maxPendingJobs?: number | null; - timeoutAt?: string | null; - errorCode?: string | null; - errorMessage?: string | null; +/** An input for mutations affecting `IntegrationProvider` */ +export interface IntegrationProviderInput { + id?: string; + createdAt?: string; + updatedAt?: string; + /** Stable URL-safe identifier for the provider. Other tables match by this string, not by FK. */ + slug: string; + /** Human-readable brand name (e.g. 'Mailgun', 'PostgreSQL') */ + name: string; + /** Short description of what this integration provides and when to use it */ + description?: string; + /** Browser category (e.g. email, database, storage, ai, analytics) */ + category?: string; + /** Icon identifier for the UI (e.g. mail, database, cloud) */ + icon?: string; + /** Provider logo as an image domain value (url, id, key, bucket, provider) */ + logo?: ConstructiveInternalTypeImage; + /** Brand metadata: colors, fonts, and other provider-specific styling. Not a foreign key. */ + brand?: Record; + /** 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[]; + /** 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[]; +} +/** An input for mutations affecting `NamespaceEvent` */ +export interface NamespaceEventInput { + /** Event timestamp (partition key) */ + createdAt?: string; + /** Unique event identifier */ + id?: string; + /** Namespace this event belongs to */ + namespaceId: string; + /** Event type: created, activated, deactivated, labels_updated, annotations_updated, renamed */ + eventType: string; + /** User who triggered this event (NULL for system/automated) */ + actorId?: string; + /** Human-readable description of the event */ + message?: string; + /** Structured context (old/new values, labels diff, etc.) */ + metadata?: Record; + /** CPU usage in millicores at time of event */ + cpuMillicores?: number; + /** Memory usage in bytes at time of event */ + memoryBytes?: string; + /** Storage usage in bytes at time of event */ + storageBytes?: string; + /** Network ingress in bytes during event window */ + networkIngressBytes?: string; + /** Network egress in bytes during event window */ + networkEgressBytes?: string; + /** Number of active pods in the namespace at time of event */ + podCount?: number; + /** Additional resource metrics (gpu, replicas, quotas, etc.) */ + metrics?: Record; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; } -export interface UpdateFunctionGraphExecutionInput { - clientMutationId?: string; - id: string; - functionGraphExecutionPatch: FunctionGraphExecutionPatch; +/** An input for mutations affecting `FunctionGraphExecution` */ +export interface FunctionGraphExecutionInput { + /** Execution start timestamp */ + startedAt?: string; + /** Unique execution identifier */ + id?: string; + /** FK to the graph definition being executed */ + graphId: string; + /** Parent function_invocations row (for metering) */ + invocationId?: string; + /** Opaque store partition key for the global tier */ + scopeId: string; + /** Target output boundary node name to resolve; NULL derives completion from the graph's graphOutput nodes */ + outputNode?: string; + /** Target output port name (default: value) */ + outputPort?: string; + /** Lifecycle: pending → running → completed/failed/cancelled */ + status?: string; + /** Initial inputs provided at invocation time */ + inputPayload?: Record; + /** Final result extracted from terminal output node */ + outputPayload?: Record; + /** Map of node_name → execution output id (content-addressed hash reference) */ + nodeOutputs?: Record; + /** Pre-computed topological sort as array of wave objects */ + executionPlan?: Record; + /** Index into execution_plan — tick only processes this wave */ + currentWave?: number; + /** Parent execution when this is a sub-execution */ + parentExecutionId?: string; + /** Node name in parent execution that spawned this sub-execution */ + parentNodeName?: string; + /** Pinned definitions store commit for deterministic evaluation */ + definitionsCommitId?: string; + /** Number of evaluate_step ticks executed */ + tickCount?: number; + /** Execution completion timestamp */ + completedAt?: string; + /** Maximum ticks before execution is failed (default 100) */ + maxTicks?: number; + /** Maximum pending jobs before execution is failed (default 50) */ + maxPendingJobs?: number; + /** Absolute deadline — execution fails if still running after this time */ + timeoutAt?: string; + /** Timestamp of the last real progress (node enqueue, node output, completion) — drives the activity-debounced watchdog */ + lastProgressAt?: string; + /** Machine-readable error code when status = failed */ + errorCode?: string; + /** Human-readable error description when status = failed */ + errorMessage?: string; } -export interface DeleteFunctionGraphExecutionInput { - clientMutationId?: string; - id: string; +/** An input for mutations affecting `PlatformFunctionDefinition` */ +export interface PlatformFunctionDefinitionInput { + id?: string; + createdAt?: string; + updatedAt?: string; + /** Function grouping scope (e.g. email, embed, chunk, custom) */ + scope: string; + /** Function name within scope (e.g. send_verification_link, process_file_embedding) */ + name: string; + /** Computed routing slug: scope:name (used by Knative job worker for dispatch) */ + taskIdentifier: string; + /** Human-readable description of what this function does */ + description?: string; + /** Whether this function definition is published to the public catalog for direct authenticated invocation. Default false = internal-only via add_job() */ + isPublished?: boolean; + /** Non-public invocation channels this function may be exposed through (api, graph). Internal job dispatch is implicit and never listed. Default [] = job worker only. */ + accessChannels?: string[]; + /** Timestamp when this function was published. NULL means immediately published when is_published is true; future timestamps delay public visibility */ + publishedAt?: string; + /** Maximum retry attempts for the underlying job */ + maxAttempts?: number; + /** Job priority (lower = higher priority) */ + priority?: number; + /** Job queue name for serialization (e.g. email, ai, default) */ + queueName?: string; + /** Execution mode: http (Knative Service dispatch), inline (in-process in compute worker), handler (registered infrastructure handler), or sql (generic SQL dispatch via a trusted direct target or module-resolved function names) */ + runtime?: string; + /** Schema of the SQL function to invoke when runtime=sql (direct mode). NULL for module mode and other runtimes. */ + targetSchema?: string; + /** Name of the SQL function to invoke when runtime=sql (direct mode). NULL for module mode and other runtimes. */ + targetFunction?: string; + /** metaschema_modules_public table whose per-database row carries the generated function names when runtime=sql (module mode). NULL for direct mode and other runtimes. */ + moduleTable?: string; + /** 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; + /** Ordered bind-parameter mapping for runtime=sql: [{name, type}]. payload[name] is bound as $n::type. */ + payloadArgs?: Record; + /** Docker image reference (e.g. ghcr.io/constructive-io/email-send-fn:latest). Required when runtime=http. NULL for inline functions. */ + image?: string; + /** Knative containerConcurrency — max concurrent requests per pod instance */ + concurrency?: number; + /** Minimum pod count for Knative autoscaling (minScale) */ + scaleMin?: number; + /** Maximum pod count for Knative autoscaling (maxScale) */ + scaleMax?: number; + /** Knative request timeout in seconds */ + timeoutSeconds?: number; + /** Container resource requests and limits: {requests: {memory, cpu}, limits: {memory, cpu}} */ + resources?: Record; + /** Whether this function is a built-in platform function (synced from platform) vs user-created */ + isBuiltIn?: boolean; + /** Embedded secret requirements: array of (name, required, provider) tuples. provider is the integration slug this requirement belongs to, if any. */ + requiredSecrets?: ResourceRequirementInput[]; + /** Embedded config requirements: array of (name, required, provider) tuples. provider is the integration slug this requirement belongs to, if any. */ + 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. */ + integrations?: string[]; + /** Bucket keys this function needs (e.g. uploads, exports). Empty = no bucket requirements. */ + requiredBuckets?: string[]; + /** Inference model whitelist (e.g. gpt-4o, claude-3). Empty = no model requirements. */ + requiredModels?: string[]; + /** Data input ports: [{name, type, description?, optional?, multi?, schema?}] */ + inputs?: Record; + /** Data output ports: [{name, type, description?, optional?, multi?, schema?}] */ + outputs?: Record; + /** Configuration properties: [{name, type, default?, description?, required?, schema?}] */ + props?: Record; + /** Whether this function has side effects and cannot be cached or memoized */ + volatile?: boolean; + /** Icon identifier for UI palette rendering (e.g. mail, database, code) */ + icon?: string; + /** Palette grouping category (e.g. email, data, ai, custom) */ + category?: string; } -export interface CreateFunctionDefinitionInput { - clientMutationId?: string; - functionDefinition: { - scope: string; - name: string; - taskIdentifier: string; - description?: string; - isInvocable?: boolean; - maxAttempts?: number; - priority?: number; - queueName?: string; - runtime?: string; - image?: string; - concurrency?: number; - scaleMin?: number; - scaleMax?: number; - timeoutSeconds?: number; - resources?: Record; - isBuiltIn?: boolean; - requiredSecrets?: FunctionRequirementInput[]; - requiredConfigs?: FunctionRequirementInput[]; - requiredBuckets?: string[]; - requiredModels?: string[]; - inputs?: Record; - outputs?: Record; - props?: Record; - volatile?: boolean; - icon?: string; - category?: string; - }; +/** An input for mutations affecting `FunctionDefinition` */ +export interface FunctionDefinitionInput { + id?: string; + createdAt?: string; + updatedAt?: string; + /** Function grouping scope (e.g. email, embed, chunk, custom) */ + scope: string; + /** Function name within scope (e.g. send_verification_link, process_file_embedding) */ + name: string; + /** Computed routing slug: scope:name (used by Knative job worker for dispatch) */ + taskIdentifier: string; + /** Human-readable description of what this function does */ + description?: string; + /** Whether this function definition is published to the public catalog for direct authenticated invocation. Default false = internal-only via add_job() */ + isPublished?: boolean; + /** Non-public invocation channels this function may be exposed through (api, graph). Internal job dispatch is implicit and never listed. Default [] = job worker only. */ + accessChannels?: string[]; + /** Timestamp when this function was published. NULL means immediately published when is_published is true; future timestamps delay public visibility */ + publishedAt?: string; + /** Maximum retry attempts for the underlying job */ + maxAttempts?: number; + /** Job priority (lower = higher priority) */ + priority?: number; + /** Job queue name for serialization (e.g. email, ai, default) */ + queueName?: string; + /** Execution mode: http (Knative Service dispatch), inline (in-process in compute worker), handler (registered infrastructure handler), or sql (generic SQL dispatch via a trusted direct target or module-resolved function names) */ + runtime?: string; + /** Schema of the SQL function to invoke when runtime=sql (direct mode). NULL for module mode and other runtimes. */ + targetSchema?: string; + /** Name of the SQL function to invoke when runtime=sql (direct mode). NULL for module mode and other runtimes. */ + targetFunction?: string; + /** metaschema_modules_public table whose per-database row carries the generated function names when runtime=sql (module mode). NULL for direct mode and other runtimes. */ + moduleTable?: string; + /** 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; + /** Ordered bind-parameter mapping for runtime=sql: [{name, type}]. payload[name] is bound as $n::type. */ + payloadArgs?: Record; + /** Docker image reference (e.g. ghcr.io/constructive-io/email-send-fn:latest). Required when runtime=http. NULL for inline functions. */ + image?: string; + /** Knative containerConcurrency — max concurrent requests per pod instance */ + concurrency?: number; + /** Minimum pod count for Knative autoscaling (minScale) */ + scaleMin?: number; + /** Maximum pod count for Knative autoscaling (maxScale) */ + scaleMax?: number; + /** Knative request timeout in seconds */ + timeoutSeconds?: number; + /** Container resource requests and limits: {requests: {memory, cpu}, limits: {memory, cpu}} */ + resources?: Record; + /** Whether this function is a built-in platform function (synced from platform) vs user-created */ + isBuiltIn?: boolean; + /** Embedded secret requirements: array of (name, required, provider) tuples. provider is the integration slug this requirement belongs to, if any. */ + requiredSecrets?: ResourceRequirementInput[]; + /** Embedded config requirements: array of (name, required, provider) tuples. provider is the integration slug this requirement belongs to, if any. */ + 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. */ + integrations?: string[]; + /** Bucket keys this function needs (e.g. uploads, exports). Empty = no bucket requirements. */ + requiredBuckets?: string[]; + /** Inference model whitelist (e.g. gpt-4o, claude-3). Empty = no model requirements. */ + requiredModels?: string[]; + /** Data input ports: [{name, type, description?, optional?, multi?, schema?}] */ + inputs?: Record; + /** Data output ports: [{name, type, description?, optional?, multi?, schema?}] */ + outputs?: Record; + /** Configuration properties: [{name, type, default?, description?, required?, schema?}] */ + props?: Record; + /** Whether this function has side effects and cannot be cached or memoized */ + volatile?: boolean; + /** Icon identifier for UI palette rendering (e.g. mail, database, code) */ + icon?: string; + /** Palette grouping category (e.g. email, data, ai, custom) */ + category?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; } -export interface FunctionDefinitionPatch { - scope?: string | null; - name?: string | null; - taskIdentifier?: string | null; - description?: string | null; - isInvocable?: boolean | null; - maxAttempts?: number | null; - priority?: number | null; - queueName?: string | null; - runtime?: string | null; - image?: string | null; - concurrency?: number | null; - scaleMin?: number | null; - scaleMax?: number | null; - timeoutSeconds?: number | null; - resources?: Record | null; - isBuiltIn?: boolean | null; - requiredSecrets?: FunctionRequirementInput[] | null; - requiredConfigs?: FunctionRequirementInput[] | null; - requiredBuckets?: string[] | null; - requiredModels?: string[] | null; - inputs?: Record | null; - outputs?: Record | null; - props?: Record | null; - volatile?: boolean | null; - icon?: string | null; - category?: string | null; +/** A filter to be used against `PlatformResourceStatusCheck` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformResourceStatusCheckFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `resourceId` field. */ + resourceId?: UUIDFilter; + /** Filter by the object’s `requestedBy` field. */ + requestedBy?: UUIDFilter; + /** Filter by the object’s `requestedAt` field. */ + requestedAt?: DatetimeFilter; + /** Filter by the object’s `completedAt` field. */ + completedAt?: DatetimeFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `result` field. */ + result?: JSONFilter; + /** Checks for all expressions in this list. */ + and?: PlatformResourceStatusCheckFilter[]; + /** Checks for any expressions in this list. */ + or?: PlatformResourceStatusCheckFilter[]; + /** Negates the expression. */ + not?: PlatformResourceStatusCheckFilter; + /** Filter by the object’s `resource` relation. */ + resource?: PlatformResourceFilter; } -export interface UpdateFunctionDefinitionInput { - clientMutationId?: string; - id: string; - functionDefinitionPatch: FunctionDefinitionPatch; +/** A filter to be used against `ResourceStatusCheck` object types. All fields are combined with a logical ‘and.’ */ +export interface ResourceStatusCheckFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `resourceId` field. */ + resourceId?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `requestedBy` field. */ + requestedBy?: UUIDFilter; + /** Filter by the object’s `requestedAt` field. */ + requestedAt?: DatetimeFilter; + /** Filter by the object’s `completedAt` field. */ + completedAt?: DatetimeFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `result` field. */ + result?: JSONFilter; + /** Checks for all expressions in this list. */ + and?: ResourceStatusCheckFilter[]; + /** Checks for any expressions in this list. */ + or?: ResourceStatusCheckFilter[]; + /** Negates the expression. */ + not?: ResourceStatusCheckFilter; + /** Filter by the object’s `resource` relation. */ + resource?: ResourceFilter; } -export interface DeleteFunctionDefinitionInput { - clientMutationId?: string; - id: string; +/** A filter to be used against `PlatformFunctionDeployment` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformFunctionDeploymentFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `serviceUrl` field. */ + serviceUrl?: StringFilter; + /** Filter by the object’s `serviceName` field. */ + serviceName?: StringFilter; + /** Filter by the object’s `revision` field. */ + revision?: IntFilter; + /** Filter by the object’s `image` field. */ + image?: StringFilter; + /** Filter by the object’s `imageVersion` field. */ + imageVersion?: StringFilter; + /** Filter by the object’s `handlerName` field. */ + handlerName?: StringFilter; + /** Filter by the object’s `concurrency` field. */ + concurrency?: IntFilter; + /** Filter by the object’s `scaleMin` field. */ + scaleMin?: IntFilter; + /** Filter by the object’s `scaleMax` field. */ + scaleMax?: IntFilter; + /** Filter by the object’s `timeoutSeconds` field. */ + timeoutSeconds?: IntFilter; + /** Filter by the object’s `resources` field. */ + resources?: JSONFilter; + /** Filter by the object’s `lastError` field. */ + lastError?: StringFilter; + /** Filter by the object’s `lastErrorAt` field. */ + lastErrorAt?: DatetimeFilter; + /** Filter by the object’s `errorCount` field. */ + errorCount?: IntFilter; + /** Filter by the object’s `labels` field. */ + labels?: JSONFilter; + /** Filter by the object’s `annotations` field. */ + annotations?: JSONFilter; + /** Checks for all expressions in this list. */ + and?: PlatformFunctionDeploymentFilter[]; + /** Checks for any expressions in this list. */ + or?: PlatformFunctionDeploymentFilter[]; + /** Negates the expression. */ + not?: PlatformFunctionDeploymentFilter; + /** Filter by the object’s `namespace` relation. */ + namespace?: PlatformNamespaceFilter; } -// ============ Connection Fields Map ============ -export const connectionFieldsMap = { - PlatformNamespace: { - functionDeploymentsByNamespaceId: 'FunctionDeployment', - resourcesByNamespaceId: 'Resource', - }, - FunctionDefinition: { - functionApiBindings: 'FunctionApiBinding', - functionDeployments: 'FunctionDeployment', - }, -} as Record>; -// ============ Custom Input Types (from schema) ============ -export interface ValidateFunctionGraphInput { - clientMutationId?: string; - graphId?: string; +/** A filter to be used against `PlatformResource` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformResourceFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; + /** Filter by the object’s `kind` field. */ + kind?: StringFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** 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 `lastError` field. */ + lastError?: StringFilter; + /** Filter by the object’s `errorCount` field. */ + errorCount?: IntFilter; + /** Filter by the object’s `labels` field. */ + labels?: JSONFilter; + /** Filter by the object’s `annotations` field. */ + annotations?: JSONFilter; + /** Filter by the object’s `integrations` field. */ + integrations?: StringListFilter; + /** Filter by the object’s `resourceDefinitionId` field. */ + resourceDefinitionId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: PlatformResourceFilter[]; + /** Checks for any expressions in this list. */ + or?: PlatformResourceFilter[]; + /** Negates the expression. */ + not?: PlatformResourceFilter; + /** Filter by the object’s `namespace` relation. */ + namespace?: PlatformNamespaceFilter; + /** Filter by the object’s `resourceDefinition` relation. */ + resourceDefinition?: PlatformResourceDefinitionFilter; + /** A related `resourceDefinition` exists. */ + resourceDefinitionExists?: boolean; + /** Filter by the object’s `platformResourceStatusChecksByResourceId` relation. */ + platformResourceStatusChecksByResourceId?: PlatformResourceToManyPlatformResourceStatusCheckFilter; + /** `platformResourceStatusChecksByResourceId` exist. */ + platformResourceStatusChecksByResourceIdExist?: boolean; +} +/** A filter to be used against `PlatformResourceDefinition` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformResourceDefinitionFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; + /** Filter by the object’s `kind` field. */ + kind?: StringFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `slug` field. */ + slug?: StringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `defaultSpec` field. */ + defaultSpec?: JSONFilter; + /** Filter by the object’s `integrations` field. */ + integrations?: StringListFilter; + /** Filter by the object’s `labels` field. */ + labels?: JSONFilter; + /** Filter by the object’s `annotations` field. */ + annotations?: JSONFilter; + /** Filter by the object’s `stepUpMinAge` field. */ + stepUpMinAge?: IntervalFilter; + /** Checks for all expressions in this list. */ + and?: PlatformResourceDefinitionFilter[]; + /** Checks for any expressions in this list. */ + or?: PlatformResourceDefinitionFilter[]; + /** Negates the expression. */ + not?: PlatformResourceDefinitionFilter; + /** Filter by the object’s `namespace` relation. */ + namespace?: PlatformNamespaceFilter; } -export interface InitEmptyRepoInput { - clientMutationId?: string; - sId?: string; - storeId?: string; +/** A filter to be used against `FunctionDeployment` object types. All fields are combined with a logical ‘and.’ */ +export interface FunctionDeploymentFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `serviceUrl` field. */ + serviceUrl?: StringFilter; + /** Filter by the object’s `serviceName` field. */ + serviceName?: StringFilter; + /** Filter by the object’s `revision` field. */ + revision?: IntFilter; + /** Filter by the object’s `image` field. */ + image?: StringFilter; + /** Filter by the object’s `imageVersion` field. */ + imageVersion?: StringFilter; + /** Filter by the object’s `handlerName` field. */ + handlerName?: StringFilter; + /** Filter by the object’s `concurrency` field. */ + concurrency?: IntFilter; + /** Filter by the object’s `scaleMin` field. */ + scaleMin?: IntFilter; + /** Filter by the object’s `scaleMax` field. */ + scaleMax?: IntFilter; + /** Filter by the object’s `timeoutSeconds` field. */ + timeoutSeconds?: IntFilter; + /** Filter by the object’s `resources` field. */ + resources?: JSONFilter; + /** Filter by the object’s `lastError` field. */ + lastError?: StringFilter; + /** Filter by the object’s `lastErrorAt` field. */ + lastErrorAt?: DatetimeFilter; + /** Filter by the object’s `errorCount` field. */ + errorCount?: IntFilter; + /** Filter by the object’s `labels` field. */ + labels?: JSONFilter; + /** Filter by the object’s `annotations` field. */ + annotations?: JSONFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: FunctionDeploymentFilter[]; + /** Checks for any expressions in this list. */ + or?: FunctionDeploymentFilter[]; + /** Negates the expression. */ + not?: FunctionDeploymentFilter; + /** Filter by the object’s `namespace` relation. */ + namespace?: NamespaceFilter; } -export interface SetDataAtPathInput { - clientMutationId?: string; - sId?: string; - root?: string; - path?: string[]; - data?: Record; +/** A filter to be used against `Resource` object types. All fields are combined with a logical ‘and.’ */ +export interface ResourceFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; + /** Filter by the object’s `kind` field. */ + kind?: StringFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** 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 `lastError` field. */ + lastError?: StringFilter; + /** Filter by the object’s `errorCount` field. */ + errorCount?: IntFilter; + /** Filter by the object’s `labels` field. */ + labels?: JSONFilter; + /** Filter by the object’s `annotations` field. */ + annotations?: JSONFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `integrations` field. */ + integrations?: StringListFilter; + /** Filter by the object’s `resourceDefinitionId` field. */ + resourceDefinitionId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: ResourceFilter[]; + /** Checks for any expressions in this list. */ + or?: ResourceFilter[]; + /** Negates the expression. */ + not?: ResourceFilter; + /** Filter by the object’s `namespace` relation. */ + namespace?: NamespaceFilter; + /** Filter by the object’s `resourceDefinition` relation. */ + resourceDefinition?: ResourceDefinitionFilter; + /** A related `resourceDefinition` exists. */ + resourceDefinitionExists?: boolean; + /** Filter by the object’s `resourceStatusChecks` relation. */ + resourceStatusChecks?: ResourceToManyResourceStatusCheckFilter; + /** `resourceStatusChecks` exist. */ + resourceStatusChecksExist?: boolean; +} +/** A filter to be used against `ResourceDefinition` object types. All fields are combined with a logical ‘and.’ */ +export interface ResourceDefinitionFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; + /** Filter by the object’s `kind` field. */ + kind?: StringFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `slug` field. */ + slug?: StringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `defaultSpec` field. */ + defaultSpec?: JSONFilter; + /** Filter by the object’s `integrations` field. */ + integrations?: StringListFilter; + /** Filter by the object’s `labels` field. */ + labels?: JSONFilter; + /** Filter by the object’s `annotations` field. */ + annotations?: JSONFilter; + /** Filter by the object’s `stepUpMinAge` field. */ + stepUpMinAge?: IntervalFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: ResourceDefinitionFilter[]; + /** Checks for any expressions in this list. */ + or?: ResourceDefinitionFilter[]; + /** Negates the expression. */ + not?: ResourceDefinitionFilter; + /** Filter by the object’s `namespace` relation. */ + namespace?: NamespaceFilter; } -export interface ImportDefinitionsInput { - clientMutationId?: string; - graphId?: string; - sourceScopeId?: string; - sourceCommitId?: string; - contexts?: 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 `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `functionDefinitionId` field. */ + functionDefinitionId?: UUIDFilter; + /** Filter by the object’s `apiId` field. */ + apiId?: UUIDFilter; + /** Filter by the object’s `alias` field. */ + alias?: StringFilter; + /** Filter by the object’s `config` field. */ + config?: JSONFilter; + /** Checks for all expressions in this list. */ + and?: PlatformFunctionApiBindingFilter[]; + /** Checks for any expressions in this list. */ + or?: PlatformFunctionApiBindingFilter[]; + /** Negates the expression. */ + not?: PlatformFunctionApiBindingFilter; + /** Filter by the object’s `functionDefinition` relation. */ + functionDefinition?: PlatformFunctionDefinitionFilter; } -export interface CopyGraphInput { - clientMutationId?: string; - databaseId?: string; - graphId?: string; - name?: 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 `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `functionDefinitionId` field. */ + functionDefinitionId?: UUIDFilter; + /** Filter by the object’s `apiId` field. */ + apiId?: UUIDFilter; + /** Filter by the object’s `alias` field. */ + alias?: StringFilter; + /** Filter by the object’s `config` field. */ + config?: JSONFilter; + /** Checks for all expressions in this list. */ + and?: FunctionApiBindingFilter[]; + /** Checks for any expressions in this list. */ + or?: FunctionApiBindingFilter[]; + /** Negates the expression. */ + not?: FunctionApiBindingFilter; + /** Filter by the object’s `functionDefinition` relation. */ + functionDefinition?: FunctionDefinitionFilter; } -export interface SaveGraphInput { - clientMutationId?: string; - graphId?: string; - rootHash?: string; - message?: string; +/** A filter to be used against UUID fields. All fields are combined with a logical ‘and.’ */ +export interface UUIDFilter { + /** Is null (if `true` is specified) or is not null (if `false` is specified). */ + isNull?: boolean; + /** Equal to the specified value. */ + equalTo?: string; + /** Not equal to the specified value. */ + notEqualTo?: string; + /** Not equal to the specified value, treating null like an ordinary value. */ + distinctFrom?: string; + /** Equal to the specified value, treating null like an ordinary value. */ + notDistinctFrom?: string; + /** Included in the specified list. */ + in?: string[]; + /** Not included in the specified list. */ + notIn?: string[]; + /** Less than the specified value. */ + lessThan?: string; + /** Less than or equal to the specified value. */ + lessThanOrEqualTo?: string; + /** Greater than the specified value. */ + greaterThan?: string; + /** Greater than or equal to the specified value. */ + greaterThanOrEqualTo?: string; } -export interface AddEdgeAndSaveInput { - clientMutationId?: string; - graphId?: string; - srcNode?: string; - srcPort?: string; - dstNode?: string; - dstPort?: string; - message?: string; +/** A filter to be used against Datetime fields. All fields are combined with a logical ‘and.’ */ +export interface DatetimeFilter { + /** Is null (if `true` is specified) or is not null (if `false` is specified). */ + isNull?: boolean; + /** Equal to the specified value. */ + equalTo?: string; + /** Not equal to the specified value. */ + notEqualTo?: string; + /** Not equal to the specified value, treating null like an ordinary value. */ + distinctFrom?: string; + /** Equal to the specified value, treating null like an ordinary value. */ + notDistinctFrom?: string; + /** Included in the specified list. */ + in?: string[]; + /** Not included in the specified list. */ + notIn?: string[]; + /** Less than the specified value. */ + lessThan?: string; + /** Less than or equal to the specified value. */ + lessThanOrEqualTo?: string; + /** Greater than the specified value. */ + greaterThan?: string; + /** Greater than or equal to the specified value. */ + greaterThanOrEqualTo?: string; } -export interface AddNodeAndSaveInput { - clientMutationId?: string; - graphId?: string; - nodeName?: string; - nodeType?: string; - props?: Record; - meta?: Record; - message?: string; +/** A filter to be used against String fields. All fields are combined with a logical ‘and.’ */ +export interface StringFilter { + /** Is null (if `true` is specified) or is not null (if `false` is specified). */ + isNull?: boolean; + /** Equal to the specified value. */ + equalTo?: string; + /** Not equal to the specified value. */ + notEqualTo?: string; + /** Not equal to the specified value, treating null like an ordinary value. */ + distinctFrom?: string; + /** Equal to the specified value, treating null like an ordinary value. */ + notDistinctFrom?: string; + /** Included in the specified list. */ + in?: string[]; + /** Not included in the specified list. */ + notIn?: string[]; + /** Less than the specified value. */ + lessThan?: string; + /** Less than or equal to the specified value. */ + lessThanOrEqualTo?: string; + /** Greater than the specified value. */ + greaterThan?: string; + /** Greater than or equal to the specified value. */ + greaterThanOrEqualTo?: string; + /** Contains the specified string (case-sensitive). */ + includes?: string; + /** Does not contain the specified string (case-sensitive). */ + notIncludes?: string; + /** Contains the specified string (case-insensitive). */ + includesInsensitive?: string; + /** Does not contain the specified string (case-insensitive). */ + notIncludesInsensitive?: string; + /** Starts with the specified string (case-sensitive). */ + startsWith?: string; + /** Does not start with the specified string (case-sensitive). */ + notStartsWith?: string; + /** Starts with the specified string (case-insensitive). */ + startsWithInsensitive?: string; + /** Does not start with the specified string (case-insensitive). */ + notStartsWithInsensitive?: string; + /** Ends with the specified string (case-sensitive). */ + endsWith?: string; + /** Does not end with the specified string (case-sensitive). */ + notEndsWith?: string; + /** Ends with the specified string (case-insensitive). */ + endsWithInsensitive?: string; + /** Does not end with the specified string (case-insensitive). */ + notEndsWithInsensitive?: string; + /** Matches the specified pattern (case-sensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. */ + like?: string; + /** Does not match the specified pattern (case-sensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. */ + notLike?: string; + /** Matches the specified pattern (case-insensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. */ + likeInsensitive?: string; + /** Does not match the specified pattern (case-insensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. */ + notLikeInsensitive?: string; + /** Equal to the specified value (case-insensitive). */ + equalToInsensitive?: string; + /** Not equal to the specified value (case-insensitive). */ + notEqualToInsensitive?: string; + /** Not equal to the specified value, treating null like an ordinary value (case-insensitive). */ + distinctFromInsensitive?: string; + /** Equal to the specified value, treating null like an ordinary value (case-insensitive). */ + notDistinctFromInsensitive?: string; + /** Included in the specified list (case-insensitive). */ + inInsensitive?: string[]; + /** Not included in the specified list (case-insensitive). */ + notInInsensitive?: string[]; + /** Less than the specified value (case-insensitive). */ + lessThanInsensitive?: string; + /** Less than or equal to the specified value (case-insensitive). */ + lessThanOrEqualToInsensitive?: string; + /** Greater than the specified value (case-insensitive). */ + greaterThanInsensitive?: string; + /** Greater than or equal to the specified value (case-insensitive). */ + greaterThanOrEqualToInsensitive?: string; } -export interface ImportGraphJsonInput { - clientMutationId?: string; - databaseId?: string; - name?: string; - graphJson?: Record; - context?: string; - description?: string; - createdBy?: string; - definitionsCommitId?: string; +/** A filter to be used against JSON fields. All fields are combined with a logical ‘and.’ */ +export interface JSONFilter { + /** Is null (if `true` is specified) or is not null (if `false` is specified). */ + isNull?: boolean; + /** Equal to the specified value. */ + equalTo?: Record; + /** Not equal to the specified value. */ + notEqualTo?: Record; + /** Not equal to the specified value, treating null like an ordinary value. */ + distinctFrom?: Record; + /** Equal to the specified value, treating null like an ordinary value. */ + notDistinctFrom?: Record; + /** Included in the specified list. */ + in?: Record[]; + /** Not included in the specified list. */ + notIn?: Record[]; + /** Less than the specified value. */ + lessThan?: Record; + /** Less than or equal to the specified value. */ + lessThanOrEqualTo?: Record; + /** Greater than the specified value. */ + greaterThan?: Record; + /** Greater than or equal to the specified value. */ + greaterThanOrEqualTo?: Record; + /** Contains the specified JSON. */ + contains?: Record; + /** Contains the specified key. */ + containsKey?: string; + /** Contains all of the specified keys. */ + containsAllKeys?: string[]; + /** Contains any of the specified keys. */ + containsAnyKeys?: string[]; + /** Contained by the specified JSON. */ + containedBy?: Record; } -export interface AddEdgeInput { - clientMutationId?: string; - databaseId?: string; - rootHash?: string; - srcNode?: string; - srcPort?: string; - dstNode?: string; - dstPort?: string; - context?: string; - graphName?: string; +/** A filter to be used against Int fields. All fields are combined with a logical ‘and.’ */ +export interface IntFilter { + /** Is null (if `true` is specified) or is not null (if `false` is specified). */ + isNull?: boolean; + /** Equal to the specified value. */ + equalTo?: number; + /** Not equal to the specified value. */ + notEqualTo?: number; + /** Not equal to the specified value, treating null like an ordinary value. */ + distinctFrom?: number; + /** Equal to the specified value, treating null like an ordinary value. */ + notDistinctFrom?: number; + /** Included in the specified list. */ + in?: number[]; + /** Not included in the specified list. */ + notIn?: number[]; + /** Less than the specified value. */ + lessThan?: number; + /** Less than or equal to the specified value. */ + lessThanOrEqualTo?: number; + /** Greater than the specified value. */ + greaterThan?: number; + /** Greater than or equal to the specified value. */ + greaterThanOrEqualTo?: number; } -export interface AddNodeInput { - clientMutationId?: string; - databaseId?: string; - rootHash?: string; - nodeName?: string; - nodeType?: string; - context?: string; - graphName?: string; - props?: Record; - meta?: Record; +/** A filter to be used against `PlatformNamespace` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformNamespaceFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `namespaceName` field. */ + namespaceName?: StringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `isActive` field. */ + isActive?: BooleanFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `lastError` field. */ + lastError?: StringFilter; + /** Filter by the object’s `labels` field. */ + labels?: JSONFilter; + /** Filter by the object’s `annotations` field. */ + annotations?: JSONFilter; + /** Filter by the object’s `isManaged` field. */ + isManaged?: BooleanFilter; + /** Checks for all expressions in this list. */ + and?: PlatformNamespaceFilter[]; + /** Checks for any expressions in this list. */ + or?: PlatformNamespaceFilter[]; + /** Negates the expression. */ + not?: PlatformNamespaceFilter; + /** Filter by the object’s `platformFunctionDeploymentsByNamespaceId` relation. */ + platformFunctionDeploymentsByNamespaceId?: PlatformNamespaceToManyPlatformFunctionDeploymentFilter; + /** `platformFunctionDeploymentsByNamespaceId` exist. */ + platformFunctionDeploymentsByNamespaceIdExist?: boolean; + /** Filter by the object’s `platformResourcesByNamespaceId` relation. */ + platformResourcesByNamespaceId?: PlatformNamespaceToManyPlatformResourceFilter; + /** `platformResourcesByNamespaceId` exist. */ + platformResourcesByNamespaceIdExist?: boolean; + /** Filter by the object’s `platformResourceDefinitionsByNamespaceId` relation. */ + platformResourceDefinitionsByNamespaceId?: PlatformNamespaceToManyPlatformResourceDefinitionFilter; + /** `platformResourceDefinitionsByNamespaceId` exist. */ + platformResourceDefinitionsByNamespaceIdExist?: boolean; } -export interface InsertNodeAtPathInput { - clientMutationId?: string; - sId?: string; - root?: string; - path?: string[]; - data?: Record; - kids?: string[]; - ktree?: string[]; +/** A filter to be used against String List fields. All fields are combined with a logical ‘and.’ */ +export interface StringListFilter { + /** Is null (if `true` is specified) or is not null (if `false` is specified). */ + isNull?: boolean; + /** Equal to the specified value. */ + equalTo?: string[]; + /** Not equal to the specified value. */ + notEqualTo?: string[]; + /** Not equal to the specified value, treating null like an ordinary value. */ + distinctFrom?: string[]; + /** Equal to the specified value, treating null like an ordinary value. */ + notDistinctFrom?: string[]; + /** Less than the specified value. */ + lessThan?: string[]; + /** Less than or equal to the specified value. */ + lessThanOrEqualTo?: string[]; + /** Greater than the specified value. */ + greaterThan?: string[]; + /** Greater than or equal to the specified value. */ + greaterThanOrEqualTo?: string[]; + /** Contains the specified list of values. */ + contains?: string[]; + /** Contained by the specified list of values. */ + containedBy?: string[]; + /** Overlaps the specified list of values. */ + overlaps?: string[]; + /** Any array item is equal to the specified value. */ + anyEqualTo?: string; + /** Any array item is not equal to the specified value. */ + anyNotEqualTo?: 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 greater than the specified value. */ + anyGreaterThan?: string; + /** Any array item is greater than or equal to the specified value. */ + anyGreaterThanOrEqualTo?: string; } -export interface StartExecutionInput { - clientMutationId?: string; - graphId?: string; - inputPayload?: Record; - outputNode?: string; - outputPort?: string; - maxTicks?: number; - maxPendingJobs?: number; - timeoutInterval?: IntervalInput; - parentExecutionId?: string; - parentNodeName?: string; +/** A filter to be used against `Namespace` object types. All fields are combined with a logical ‘and.’ */ +export interface NamespaceFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `namespaceName` field. */ + namespaceName?: StringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `isActive` field. */ + isActive?: BooleanFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `lastError` field. */ + lastError?: StringFilter; + /** Filter by the object’s `labels` field. */ + labels?: JSONFilter; + /** Filter by the object’s `annotations` field. */ + annotations?: JSONFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `isManaged` field. */ + isManaged?: BooleanFilter; + /** Checks for all expressions in this list. */ + and?: NamespaceFilter[]; + /** Checks for any expressions in this list. */ + or?: NamespaceFilter[]; + /** Negates the expression. */ + not?: NamespaceFilter; + /** Filter by the object’s `functionDeployments` relation. */ + functionDeployments?: NamespaceToManyFunctionDeploymentFilter; + /** `functionDeployments` exist. */ + functionDeploymentsExist?: boolean; + /** Filter by the object’s `resources` relation. */ + resources?: NamespaceToManyResourceFilter; + /** `resources` exist. */ + resourcesExist?: boolean; + /** Filter by the object’s `resourceDefinitions` relation. */ + resourceDefinitions?: NamespaceToManyResourceDefinitionFilter; + /** `resourceDefinitions` exist. */ + resourceDefinitionsExist?: boolean; +} +/** 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 `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `taskIdentifier` field. */ + taskIdentifier?: StringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `isPublished` field. */ + isPublished?: BooleanFilter; + /** Filter by the object’s `accessChannels` field. */ + accessChannels?: StringListFilter; + /** Filter by the object’s `publishedAt` field. */ + publishedAt?: DatetimeFilter; + /** Filter by the object’s `maxAttempts` field. */ + maxAttempts?: IntFilter; + /** Filter by the object’s `priority` field. */ + priority?: IntFilter; + /** Filter by the object’s `queueName` field. */ + queueName?: StringFilter; + /** Filter by the object’s `runtime` field. */ + runtime?: StringFilter; + /** Filter by the object’s `targetSchema` field. */ + targetSchema?: StringFilter; + /** Filter by the object’s `targetFunction` field. */ + targetFunction?: StringFilter; + /** Filter by the object’s `moduleTable` field. */ + moduleTable?: StringFilter; + /** Filter by the object’s `functionColumns` field. */ + functionColumns?: JSONFilter; + /** Filter by the object’s `payloadArgs` field. */ + payloadArgs?: JSONFilter; + /** Filter by the object’s `image` field. */ + image?: StringFilter; + /** Filter by the object’s `concurrency` field. */ + concurrency?: IntFilter; + /** Filter by the object’s `scaleMin` field. */ + scaleMin?: IntFilter; + /** Filter by the object’s `scaleMax` field. */ + scaleMax?: IntFilter; + /** Filter by the object’s `timeoutSeconds` field. */ + timeoutSeconds?: IntFilter; + /** Filter by the object’s `resources` field. */ + resources?: JSONFilter; + /** Filter by the object’s `isBuiltIn` field. */ + isBuiltIn?: BooleanFilter; + /** Filter by the object’s `integrations` field. */ + integrations?: StringListFilter; + /** Filter by the object’s `requiredBuckets` field. */ + requiredBuckets?: StringListFilter; + /** Filter by the object’s `requiredModels` field. */ + requiredModels?: StringListFilter; + /** Filter by the object’s `inputs` field. */ + inputs?: JSONFilter; + /** Filter by the object’s `outputs` field. */ + outputs?: JSONFilter; + /** Filter by the object’s `props` field. */ + props?: JSONFilter; + /** Filter by the object’s `volatile` field. */ + volatile?: BooleanFilter; + /** Filter by the object’s `icon` field. */ + icon?: StringFilter; + /** Filter by the object’s `category` field. */ + category?: StringFilter; + /** Checks for all expressions in this list. */ + and?: PlatformFunctionDefinitionFilter[]; + /** Checks for any expressions in this list. */ + or?: PlatformFunctionDefinitionFilter[]; + /** Negates the expression. */ + not?: PlatformFunctionDefinitionFilter; + /** Filter by the object’s `platformFunctionApiBindingsByFunctionDefinitionId` relation. */ + platformFunctionApiBindingsByFunctionDefinitionId?: PlatformFunctionDefinitionToManyPlatformFunctionApiBindingFilter; + /** `platformFunctionApiBindingsByFunctionDefinitionId` exist. */ + platformFunctionApiBindingsByFunctionDefinitionIdExist?: 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 `FunctionDefinition` object types. All fields are combined with a logical ‘and.’ */ +export interface FunctionDefinitionFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `taskIdentifier` field. */ + taskIdentifier?: StringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `isPublished` field. */ + isPublished?: BooleanFilter; + /** Filter by the object’s `accessChannels` field. */ + accessChannels?: StringListFilter; + /** Filter by the object’s `publishedAt` field. */ + publishedAt?: DatetimeFilter; + /** Filter by the object’s `maxAttempts` field. */ + maxAttempts?: IntFilter; + /** Filter by the object’s `priority` field. */ + priority?: IntFilter; + /** Filter by the object’s `queueName` field. */ + queueName?: StringFilter; + /** Filter by the object’s `runtime` field. */ + runtime?: StringFilter; + /** Filter by the object’s `targetSchema` field. */ + targetSchema?: StringFilter; + /** Filter by the object’s `targetFunction` field. */ + targetFunction?: StringFilter; + /** Filter by the object’s `moduleTable` field. */ + moduleTable?: StringFilter; + /** Filter by the object’s `functionColumns` field. */ + functionColumns?: JSONFilter; + /** Filter by the object’s `payloadArgs` field. */ + payloadArgs?: JSONFilter; + /** Filter by the object’s `image` field. */ + image?: StringFilter; + /** Filter by the object’s `concurrency` field. */ + concurrency?: IntFilter; + /** Filter by the object’s `scaleMin` field. */ + scaleMin?: IntFilter; + /** Filter by the object’s `scaleMax` field. */ + scaleMax?: IntFilter; + /** Filter by the object’s `timeoutSeconds` field. */ + timeoutSeconds?: IntFilter; + /** Filter by the object’s `resources` field. */ + resources?: JSONFilter; + /** Filter by the object’s `isBuiltIn` field. */ + isBuiltIn?: BooleanFilter; + /** Filter by the object’s `integrations` field. */ + integrations?: StringListFilter; + /** Filter by the object’s `requiredBuckets` field. */ + requiredBuckets?: StringListFilter; + /** Filter by the object’s `requiredModels` field. */ + requiredModels?: StringListFilter; + /** Filter by the object’s `inputs` field. */ + inputs?: JSONFilter; + /** Filter by the object’s `outputs` field. */ + outputs?: JSONFilter; + /** Filter by the object’s `props` field. */ + props?: JSONFilter; + /** Filter by the object’s `volatile` field. */ + volatile?: BooleanFilter; + /** Filter by the object’s `icon` field. */ + icon?: StringFilter; + /** Filter by the object’s `category` field. */ + category?: StringFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: FunctionDefinitionFilter[]; + /** Checks for any expressions in this list. */ + or?: FunctionDefinitionFilter[]; + /** Negates the expression. */ + not?: FunctionDefinitionFilter; + /** Filter by the object’s `functionApiBindings` relation. */ + functionApiBindings?: FunctionDefinitionToManyFunctionApiBindingFilter; + /** `functionApiBindings` exist. */ + functionApiBindingsExist?: boolean; } -/** 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 Boolean fields. All fields are combined with a logical ‘and.’ */ +export interface BooleanFilter { /** Is null (if `true` is specified) or is not null (if `false` is specified). */ isNull?: boolean; /** Equal to the specified value. */ - equalTo?: Base64EncodedBinary; + equalTo?: boolean; /** Not equal to the specified value. */ - notEqualTo?: Base64EncodedBinary; + notEqualTo?: boolean; /** Not equal to the specified value, treating null like an ordinary value. */ - distinctFrom?: Base64EncodedBinary; + distinctFrom?: boolean; /** Equal to the specified value, treating null like an ordinary value. */ - notDistinctFrom?: Base64EncodedBinary; + notDistinctFrom?: boolean; /** Included in the specified list. */ - in?: Base64EncodedBinary[]; + in?: boolean[]; /** Not included in the specified list. */ - notIn?: Base64EncodedBinary[]; + notIn?: boolean[]; + /** Less than the specified value. */ + lessThan?: boolean; + /** Less than or equal to the specified value. */ + lessThanOrEqualTo?: boolean; + /** Greater than the specified value. */ + greaterThan?: boolean; + /** Greater than or equal to the specified value. */ + greaterThanOrEqualTo?: boolean; } -/** A filter to be used against many `FunctionDeployment` object types. All fields are combined with a logical ‘and.’ */ -export interface PlatformNamespaceToManyFunctionDeploymentFilter { - /** Filters to entities where at least one related entity matches. */ - some?: FunctionDeploymentFilter; - /** Filters to entities where every related entity matches. */ - every?: FunctionDeploymentFilter; - /** Filters to entities where no related entity matches. */ - none?: FunctionDeploymentFilter; +// ============ Payload/Return Types (for custom operations) ============ +export interface ValidateFunctionGraphPayload { + clientMutationId?: string | null; + result?: boolean | null; } -/** A filter to be used against many `Resource` object types. All fields are combined with a logical ‘and.’ */ -export interface PlatformNamespaceToManyResourceFilter { - /** Filters to entities where at least one related entity matches. */ - some?: ResourceFilter; - /** Filters to entities where every related entity matches. */ - every?: ResourceFilter; - /** Filters to entities where no related entity matches. */ - none?: ResourceFilter; +export type ValidateFunctionGraphPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface InfraInitEmptyRepoPayload { + clientMutationId?: string | null; } -/** A filter to be used against many `FunctionApiBinding` object types. All fields are combined with a logical ‘and.’ */ -export interface FunctionDefinitionToManyFunctionApiBindingFilter { - /** Filters to entities where at least one related entity matches. */ - some?: FunctionApiBindingFilter; - /** Filters to entities where every related entity matches. */ - every?: FunctionApiBindingFilter; - /** Filters to entities where no related entity matches. */ - none?: FunctionApiBindingFilter; +export type InfraInitEmptyRepoPayloadSelect = { + clientMutationId?: boolean; +}; +export interface InitEmptyRepoPayload { + clientMutationId?: string | null; } -/** A filter to be used against many `FunctionDeployment` object types. All fields are combined with a logical ‘and.’ */ -export interface FunctionDefinitionToManyFunctionDeploymentFilter { - /** Filters to entities where at least one related entity matches. */ - some?: FunctionDeploymentFilter; - /** Filters to entities where every related entity matches. */ - every?: FunctionDeploymentFilter; - /** Filters to entities where no related entity matches. */ - none?: FunctionDeploymentFilter; +export type InitEmptyRepoPayloadSelect = { + clientMutationId?: boolean; +}; +export interface ImportDefinitionsPayload { + clientMutationId?: string | null; } -/** An input for mutations affecting `FunctionApiBinding` */ -export interface FunctionApiBindingInput { - id?: string; - /** Function definition this binding belongs to */ - functionDefinitionId: string; - /** API endpoint this function is bound to */ - apiId: string; - /** Binding alias (e.g. default, staging, production) */ - alias?: string; - /** Per-binding configuration (overrides, routing rules, etc.) */ - config?: Record; +export type ImportDefinitionsPayloadSelect = { + clientMutationId?: boolean; +}; +export interface InfraSetDataAtPathPayload { + clientMutationId?: string | null; + result?: string | null; } -/** An input for mutations affecting `FunctionDeployment` */ -export interface FunctionDeploymentInput { - id?: string; - createdAt?: string; - updatedAt?: string; - /** Function definition being deployed to this namespace */ - functionDefinitionId: string; - /** Target namespace for this deployment (maps to a K8s namespace) */ - namespaceId: string; - /** Deployment lifecycle status: pending, provisioning, active, failed, scaled_to_zero, deactivated */ - status?: string; - /** Knative service URL (http://{service-name}.{namespace}.svc.cluster.local) — populated after provisioning */ - serviceUrl?: string; - /** Knative service name — derived from task_identifier at provision time */ - serviceName?: string; - /** Deployment revision number (incremented on each redeployment) */ - revision?: number; - /** Container image override (NULL = inherit from function definition) */ - image?: string; - /** Max concurrent requests per pod (NULL = inherit from definition) */ - concurrency?: number; - /** Minimum replica count (NULL = inherit from definition or Knative default) */ - scaleMin?: number; - /** Maximum replica count (NULL = inherit from definition or Knative default) */ - scaleMax?: number; - /** Request timeout override in seconds (NULL = inherit from definition) */ - timeoutSeconds?: number; - /** K8s resource spec override: {"requests":{"cpu":"100m","memory":"128Mi"},"limits":{...}} */ - resources?: Record; - /** Most recent provisioning or runtime error message */ - lastError?: string; - /** Timestamp of the most recent error */ - lastErrorAt?: string; - /** Cumulative error count for this deployment */ - errorCount?: number; - /** Key/value pairs for selecting and filtering deployments */ - labels?: Record; - /** Freeform metadata for tooling and operational notes */ - annotations?: Record; - /** Database that owns this resource (database-scoped isolation) */ - databaseId: string; +export type InfraSetDataAtPathPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface SetDataAtPathPayload { + clientMutationId?: string | null; + result?: string | null; } -/** An input for mutations affecting `Resource` */ -export interface ResourceInput { - id?: string; - createdAt?: string; - updatedAt?: string; - createdBy?: string; - updatedBy?: string; - /** Namespace this resource belongs to (security boundary, maps to K8s namespace) */ - namespaceId: string; - /** Resource kind: Deployment, StatefulSet, Service, Ingress, Certificate */ - kind: string; - /** Human-readable resource name */ - name: 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, failed, draining, deleting */ - status?: string; - /** Observed state from K8s — populated by handlers after reconciliation (service_url, clone_url, replicas, etc.) */ - statusObserved?: Record; - /** Most recent provisioning or runtime error message */ - lastError?: string; - /** Cumulative error count for this resource */ - errorCount?: number; - /** Key/value pairs for selecting and filtering resources */ - labels?: Record; - /** Freeform metadata for tooling and operational notes */ - annotations?: Record; - /** Database that owns this resource (database-scoped isolation) */ - databaseId: string; +export type SetDataAtPathPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface CopyGraphPayload { + clientMutationId?: string | null; + result?: string | null; +} +export type CopyGraphPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface SaveGraphPayload { + clientMutationId?: string | null; + result?: string | null; } -/** An input for mutations affecting `FunctionGraphRef` */ -export interface FunctionGraphRefInput { - /** Unique ref identifier */ - id?: string; - /** Ref name (e.g. HEAD, main) */ - name: string; - /** Database scope for multi-tenant isolation */ - databaseId: string; - /** Store this ref belongs to */ - storeId: string; - /** Commit this ref points to */ - commitId?: string; +export type SaveGraphPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface AddEdgeAndSavePayload { + clientMutationId?: string | null; + result?: string | null; } -/** An input for mutations affecting `FunctionGraphStore` */ -export interface FunctionGraphStoreInput { - /** Unique store identifier */ - id?: string; - /** Human-readable store name */ - name: string; - /** Database scope for multi-tenant isolation */ - databaseId: string; - /** Current root object hash of this store */ - hash?: string; - /** Timestamp of store creation */ - createdAt?: string; +export type AddEdgeAndSavePayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface AddNodeAndSavePayload { + clientMutationId?: string | null; + result?: string | null; } -/** An input for mutations affecting `FunctionGraphObject` */ -export interface FunctionGraphObjectInput { - /** Content-addressed UUID v5 — deterministic hash of (data, kids, ktree) */ - id: string; - /** Database scope for multi-tenant isolation */ - databaseId: string; - /** Ordered array of child object IDs */ - kids?: string[]; - /** Ordered array of child path names (parallel to kids) */ - ktree?: string[]; - /** Payload data for this object node */ - data?: Record; - /** Timestamp of object creation */ - createdAt?: string; +export type AddNodeAndSavePayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface ImportGraphJsonPayload { + clientMutationId?: string | null; + result?: string | null; } -/** An input for mutations affecting `FunctionDeploymentEvent` */ -export interface FunctionDeploymentEventInput { - /** Event timestamp (partition key) */ - createdAt?: string; - /** Unique event identifier */ - id?: string; - /** Deployment this event belongs to */ - deploymentId: string; - /** Event type: provisioned, scaled, failed, deactivated, redeployed, health_check */ - eventType: string; - /** User who triggered this event (NULL for system/automated) */ - actorId?: string; - /** Human-readable description of the event */ - message?: string; - /** Structured context (old/new values, error details, etc.) */ - metadata?: Record; - /** Database that owns this resource (database-scoped isolation) */ - databaseId: string; +export type ImportGraphJsonPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface AddEdgePayload { + clientMutationId?: string | null; + result?: string | null; } -/** An input for mutations affecting `OrgFunctionExecutionLog` */ -export interface OrgFunctionExecutionLogInput { - /** 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; - /** Function routing key (NULL for generic job logs) */ - taskIdentifier?: string; - /** Log severity: debug, info, warn, error */ - logLevel?: string; - /** Log message text */ - message: string; - /** Structured context (labels, trace data, extra fields) */ - metadata?: Record; - /** User who triggered the execution (NULL for system/cron) */ - actorId?: string; +export type AddEdgePayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface AddNodePayload { + clientMutationId?: string | null; + result?: string | null; } -/** An input for mutations affecting `ResourceEvent` */ -export interface ResourceEventInput { - /** Event timestamp (partition key) */ - createdAt?: string; - /** Unique event identifier */ - id?: string; - /** Resource this event belongs to */ - resourceId: string; - /** Event type: provisioned, provisioning, updated, failed, deprovisioned, health_check */ - eventType: string; - /** User who triggered this event (NULL for system/automated) */ - actorId?: string; - /** Human-readable description of the event */ - message?: string; - /** Structured context (old/new values, error details, etc.) */ - metadata?: Record; - /** Database that owns this resource (database-scoped isolation) */ - databaseId: string; +export type AddNodePayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface InfraInsertNodeAtPathPayload { + clientMutationId?: string | null; + result?: string | null; } -/** An input for mutations affecting `FunctionGraphExecutionOutput` */ -export interface FunctionGraphExecutionOutputInput { - /** Timestamp of output creation */ - createdAt?: string; - /** Unique execution output identifier */ - id?: string; - /** Scope for multi-tenant isolation */ - databaseId: string; - /** SHA-256 hash of the data JSONB — content-addressed deduplication */ - hash: Base64EncodedBinary; - /** The actual output payload from a completed node */ - data: Record; +export type InfraInsertNodeAtPathPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface InsertNodeAtPathPayload { + clientMutationId?: string | null; + result?: string | null; } -/** An input for mutations affecting `FunctionGraphCommit` */ -export interface FunctionGraphCommitInput { - /** Unique commit identifier */ - id?: string; - /** Optional commit message */ - message?: string; - /** Database scope for multi-tenant isolation */ - databaseId: string; - /** Store this commit belongs to */ - storeId: string; - /** Parent commit IDs (supports merge commits) */ - parentIds?: string[]; - /** User who authored the changes */ - authorId?: string; - /** User who committed (may differ from author) */ - committerId?: string; - /** Root object ID of the tree snapshot at this commit */ - treeId?: string; - /** Commit timestamp */ - date?: string; +export type InsertNodeAtPathPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface StartExecutionPayload { + clientMutationId?: string | null; + result?: string | null; } -/** An input for mutations affecting `SecretDefinition` */ -export interface SecretDefinitionInput { - id?: string; - createdAt?: string; - updatedAt?: string; - /** Secret name (must match app_secrets.name for resolution) */ - name: string; - /** Human-readable description of what this secret is used for */ - description?: string; - /** Whether this row was seeded as a built-in secret definition. Built-in rows are immutable. */ - isBuiltIn?: boolean; - /** Key-value metadata for filtering and grouping secret definitions */ - labels?: Record; - /** Freeform metadata annotations for secret definitions */ - annotations?: Record; - /** Database that owns this resource (database-scoped isolation) */ - databaseId: string; +export type StartExecutionPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface ProvisionBucketPayload { + /** Whether provisioning succeeded */ + success: boolean; + /** The S3 bucket name that was provisioned */ + bucketName: string; + /** The access type applied */ + accessType: string; + /** The storage provider used */ + provider: string; + /** The S3 endpoint (null for AWS S3 default) */ + endpoint?: string | null; + /** Error message if provisioning failed */ + error?: string | null; } -/** An input for mutations affecting `FunctionExecutionLog` */ -export interface FunctionExecutionLogInput { - /** 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; - /** Function routing key (NULL for generic job logs) */ - taskIdentifier?: string; - /** Log severity: debug, info, warn, error */ - logLevel?: string; - /** Log message text */ - message: string; - /** Structured context (labels, trace data, extra fields) */ - metadata?: Record; - /** User who triggered the execution (NULL for system/cron) */ - actorId?: string; - /** Database that owns this resource (database-scoped isolation) */ - databaseId: string; +export type ProvisionBucketPayloadSelect = { + success?: boolean; + bucketName?: boolean; + accessType?: boolean; + provider?: boolean; + endpoint?: boolean; + error?: boolean; +}; +export interface CreateInfraRefPayload { + clientMutationId?: string | null; + /** The `InfraRef` that was created by this mutation. */ + infraRef?: InfraRef | null; + infraRefEdge?: InfraRefEdge | null; } -/** An input for mutations affecting `FunctionGraphExecutionNodeState` */ -export interface FunctionGraphExecutionNodeStateInput { - /** Timestamp of node state creation (partition key) */ - createdAt?: string; - /** Unique node state identifier */ - id?: string; - /** FK to the parent graph execution */ - executionId: string; - /** Scope for multi-tenant isolation */ - databaseId: 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[]; - /** Node lifecycle: pending → queued → running → completed/failed */ - status?: string; - /** Timestamp when the node began executing */ - startedAt?: string; - /** Timestamp when the node finished (success or failure) */ - completedAt?: string; - /** Machine-readable error code when status = failed */ - errorCode?: string; - /** Human-readable error description when status = failed */ - errorMessage?: string; - /** FK to execution_outputs — content-addressed output blob for this node */ - outputId?: string; +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; } -/** An input for mutations affecting `PlatformNamespace` */ -export interface PlatformNamespaceInput { - id?: string; - createdAt?: string; - updatedAt?: string; - /** Human-readable namespace name (e.g. default, production, oauth) */ - name: string; - /** Globally unique computed namespace identifier via inflection.underscore */ - namespaceName: string; - /** Optional human-readable description of this namespace */ - description?: string; - /** Whether this namespace is active (soft-disable for filtering) */ - isActive?: boolean; - /** Key/value pairs for selecting and filtering namespaces */ - labels?: Record; - /** Freeform metadata for tooling and operational notes */ - annotations?: Record; - /** Database that owns this resource (database-scoped isolation) */ - databaseId: string; - /** Database that created this namespace (NULL for platform-native namespaces) */ - sourceDatabaseId?: string; - /** Origin scope: platform, org, app — indicates where this namespace was created */ - sourceScope?: string; - /** true = created by a child scope mirror trigger, false = platform-native */ - isManaged?: boolean; +export type UpdateInfraRefPayloadSelect = { + clientMutationId?: boolean; + infraRef?: { + select: InfraRefSelect; + }; + infraRefEdge?: { + select: InfraRefEdgeSelect; + }; +}; +export interface DeleteInfraRefPayload { + clientMutationId?: string | null; + /** The `InfraRef` that was deleted by this mutation. */ + infraRef?: InfraRef | null; + infraRefEdge?: InfraRefEdge | null; } -/** An input for mutations affecting `OrgFunctionInvocation` */ -export interface OrgFunctionInvocationInput { - /** Invocation creation timestamp (partition key) */ - createdAt?: string; - /** Unique invocation identifier */ - id?: string; - /** Who triggered the invocation (NULL for system/cron) */ - actorId?: string; - /** Function routing slug (scope:name). Links to function_definitions.task_identifier by convention — no FK. */ - taskIdentifier: string; - /** Function input payload */ - payload?: Record; - /** Lifecycle: pending → running → completed/failed/cancelled */ - status?: string; - /** Function return value (success) or structured error (failure) */ - result?: Record; - /** Error message when status is failed */ - error?: string; - /** Wall-clock execution time in milliseconds */ - durationMs?: number; - /** FK to app_jobs.jobs — the underlying transport */ - jobId?: string; - /** When execution started */ - startedAt?: string; - /** When execution completed */ - completedAt?: string; - /** Parent invocation when this is a child node of a flow graph execution */ - parentInvocationId?: string; - /** Groups all node invocations from a single flow graph execution */ - graphExecutionId?: string; +export type DeleteInfraRefPayloadSelect = { + clientMutationId?: boolean; + infraRef?: { + select: InfraRefSelect; + }; + infraRefEdge?: { + select: InfraRefEdgeSelect; + }; +}; +export interface CreateInfraStorePayload { + clientMutationId?: string | null; + /** The `InfraStore` that was created by this mutation. */ + infraStore?: InfraStore | null; + infraStoreEdge?: InfraStoreEdge | null; } -/** An input for mutations affecting `FunctionInvocation` */ -export interface FunctionInvocationInput { - /** Invocation creation timestamp (partition key) */ - createdAt?: string; - /** Unique invocation identifier */ - id?: string; - /** Who triggered the invocation (NULL for system/cron) */ - actorId?: string; - /** Database that owns this resource (database-scoped isolation) */ - databaseId: string; - /** Function routing slug (scope:name). Links to function_definitions.task_identifier by convention — no FK. */ - taskIdentifier: string; - /** Function input payload */ - payload?: Record; - /** Lifecycle: pending → running → completed/failed/cancelled */ - status?: string; - /** Function return value (success) or structured error (failure) */ - result?: Record; - /** Error message when status is failed */ - error?: string; - /** Wall-clock execution time in milliseconds */ - durationMs?: number; - /** FK to app_jobs.jobs — the underlying transport */ - jobId?: string; - /** When execution started */ - startedAt?: string; - /** When execution completed */ - completedAt?: string; - /** Parent invocation when this is a child node of a flow graph execution */ - parentInvocationId?: string; - /** Groups all node invocations from a single flow graph execution */ - graphExecutionId?: string; +export type CreateInfraStorePayloadSelect = { + clientMutationId?: boolean; + infraStore?: { + select: InfraStoreSelect; + }; + infraStoreEdge?: { + select: InfraStoreEdgeSelect; + }; +}; +export interface UpdateInfraStorePayload { + clientMutationId?: string | null; + /** The `InfraStore` that was updated by this mutation. */ + infraStore?: InfraStore | null; + infraStoreEdge?: InfraStoreEdge | null; } -/** An input for mutations affecting `PlatformNamespaceEvent` */ -export interface PlatformNamespaceEventInput { - /** Event timestamp (partition key) */ - createdAt?: string; - /** Unique event identifier */ - id?: string; - /** Namespace this event belongs to */ - namespaceId: string; - /** Event type: created, activated, deactivated, labels_updated, annotations_updated, renamed */ - eventType: string; - /** User who triggered this event (NULL for system/automated) */ - actorId?: string; - /** Human-readable description of the event */ - message?: string; - /** Structured context (old/new values, labels diff, etc.) */ - metadata?: Record; - /** CPU usage in millicores at time of event */ - cpuMillicores?: number; - /** Memory usage in bytes at time of event */ - memoryBytes?: string; - /** Storage usage in bytes at time of event */ - storageBytes?: string; - /** Network ingress in bytes during event window */ - networkIngressBytes?: string; - /** Network egress in bytes during event window */ - networkEgressBytes?: string; - /** Number of active pods in the namespace at time of event */ - podCount?: number; - /** Additional resource metrics (gpu, replicas, quotas, etc.) */ - metrics?: Record; - /** Database that owns this resource (database-scoped isolation) */ - databaseId: string; +export type UpdateInfraStorePayloadSelect = { + clientMutationId?: boolean; + infraStore?: { + select: InfraStoreSelect; + }; + infraStoreEdge?: { + select: InfraStoreEdgeSelect; + }; +}; +export interface DeleteInfraStorePayload { + clientMutationId?: string | null; + /** The `InfraStore` that was deleted by this mutation. */ + infraStore?: InfraStore | null; + infraStoreEdge?: InfraStoreEdge | null; } -/** An input for mutations affecting `FunctionGraphExecution` */ -export interface FunctionGraphExecutionInput { - /** Execution start timestamp */ - startedAt?: string; - /** Unique execution identifier */ - id?: string; - /** FK to the graph definition being executed */ - graphId: string; - /** Parent function_invocations row (for metering) */ - invocationId?: string; - /** Scope for multi-tenant isolation */ - databaseId: string; - /** Target output boundary node name to resolve */ - outputNode: string; - /** Target output port name (default: value) */ - outputPort?: string; - /** Lifecycle: pending → running → completed/failed/cancelled */ - status?: string; - /** Initial inputs provided at invocation time */ - inputPayload?: Record; - /** Final result extracted from terminal output node */ - outputPayload?: Record; - /** Map of node_name → execution output id (content-addressed hash reference) */ - nodeOutputs?: Record; - /** Pre-computed topological sort as array of wave objects */ - executionPlan?: Record; - /** Index into execution_plan — tick only processes this wave */ - currentWave?: number; - /** Parent execution when this is a sub-execution */ - parentExecutionId?: string; - /** Node name in parent execution that spawned this sub-execution */ - parentNodeName?: string; - /** Pinned definitions store commit for deterministic evaluation */ - definitionsCommitId?: string; - /** Number of evaluate_step ticks executed */ - tickCount?: number; - /** Execution completion timestamp */ - completedAt?: string; - /** Maximum ticks before execution is failed (default 100) */ - maxTicks?: number; - /** Maximum pending jobs before execution is failed (default 50) */ - maxPendingJobs?: number; - /** Absolute deadline — execution fails if still running after this time */ - timeoutAt?: string; - /** Machine-readable error code when status = failed */ - errorCode?: string; - /** Human-readable error description when status = failed */ - errorMessage?: string; +export type DeleteInfraStorePayloadSelect = { + clientMutationId?: boolean; + infraStore?: { + select: InfraStoreSelect; + }; + infraStoreEdge?: { + select: InfraStoreEdgeSelect; + }; +}; +export interface CreateFunctionApiBindingPayload { + clientMutationId?: string | null; + /** The `FunctionApiBinding` that was created by this mutation. */ + functionApiBinding?: FunctionApiBinding | null; + functionApiBindingEdge?: FunctionApiBindingEdge | null; } -/** An input for mutations affecting `FunctionDefinition` */ -export interface FunctionDefinitionInput { - id?: string; - createdAt?: string; - updatedAt?: string; - /** Function grouping scope (e.g. email, embed, chunk, custom) */ - scope: string; - /** Function name within scope (e.g. send_verification_link, process_file_embedding) */ - name: string; - /** Computed routing slug: scope:name (used by Knative job worker for dispatch) */ - taskIdentifier: string; - /** Human-readable description of what this function does */ - description?: string; - /** Whether this function can be called via function_invocations (public API). Default false = internal-only via add_job() */ - isInvocable?: boolean; - /** Maximum retry attempts for the underlying job */ - maxAttempts?: number; - /** Job priority (lower = higher priority) */ - priority?: number; - /** Job queue name for serialization (e.g. email, ai, default) */ - queueName?: string; - /** Execution mode: http (Knative Service dispatch) or inline (in-process in compute worker) */ - runtime?: string; - /** Docker image reference (e.g. ghcr.io/constructive-io/email-send-fn:latest). Required when runtime=http. NULL for inline functions. */ - image?: string; - /** Knative containerConcurrency — max concurrent requests per pod instance */ - concurrency?: number; - /** Minimum pod count for Knative autoscaling (minScale) */ - scaleMin?: number; - /** Maximum pod count for Knative autoscaling (maxScale) */ - scaleMax?: number; - /** Knative request timeout in seconds */ - timeoutSeconds?: number; - /** Container resource requests and limits: {requests: {memory, cpu}, limits: {memory, cpu}} */ - resources?: Record; - /** Whether this function is a built-in platform function (synced from platform) vs user-created */ - isBuiltIn?: boolean; - /** Embedded secret requirements: array of (name, required) tuples */ - requiredSecrets?: FunctionRequirementInput[]; - /** Embedded config requirements: array of (name, required) tuples */ - requiredConfigs?: FunctionRequirementInput[]; - /** Bucket keys this function needs (e.g. uploads, exports). Empty = no bucket requirements. */ - requiredBuckets?: string[]; - /** Inference model whitelist (e.g. gpt-4o, claude-3). Empty = no model requirements. */ - requiredModels?: string[]; - /** Data input ports: [{name, type, description?, optional?, multi?, schema?}] */ - inputs?: Record; - /** Data output ports: [{name, type, description?, optional?, multi?, schema?}] */ - outputs?: Record; - /** Configuration properties: [{name, type, default?, description?, required?, schema?}] */ - props?: Record; - /** Whether this function has side effects and cannot be cached or memoized */ - volatile?: boolean; - /** Icon identifier for UI palette rendering (e.g. mail, database, code) */ - icon?: string; - /** Palette grouping category (e.g. email, data, ai, custom) */ - category?: string; +export type CreateFunctionApiBindingPayloadSelect = { + clientMutationId?: boolean; + functionApiBinding?: { + select: FunctionApiBindingSelect; + }; + functionApiBindingEdge?: { + select: FunctionApiBindingEdgeSelect; + }; +}; +export interface UpdateFunctionApiBindingPayload { + clientMutationId?: string | null; + /** The `FunctionApiBinding` that was updated by this mutation. */ + functionApiBinding?: FunctionApiBinding | null; + functionApiBindingEdge?: FunctionApiBindingEdge | null; +} +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 `FunctionRequirement` */ -export interface FunctionRequirementInput { - name?: string; - required?: boolean; +export type DeleteFunctionApiBindingPayloadSelect = { + clientMutationId?: boolean; + functionApiBinding?: { + select: FunctionApiBindingSelect; + }; + functionApiBindingEdge?: { + select: FunctionApiBindingEdgeSelect; + }; +}; +export interface CreateFunctionGraphRefPayload { + clientMutationId?: string | null; + /** The `FunctionGraphRef` that was created by this mutation. */ + functionGraphRef?: FunctionGraphRef | null; + functionGraphRefEdge?: FunctionGraphRefEdge | null; } -/** An interval of time that has passed where the smallest distinct unit is a second. */ -export interface IntervalInput { - /** - * A quantity of seconds. This is the only non-integer field, as all the other - * fields will dump their overflow into a smaller unit of time. Intervals don’t - * have a smaller unit than seconds. - */ - seconds?: number; - /** A quantity of minutes. */ - minutes?: number; - /** A quantity of hours. */ - hours?: number; - /** A quantity of days. */ - days?: number; - /** A quantity of months. */ - months?: number; - /** A quantity of years. */ - years?: number; +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 `FunctionDeployment` object types. All fields are combined with a logical ‘and.’ */ -export interface FunctionDeploymentFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `functionDefinitionId` field. */ - functionDefinitionId?: UUIDFilter; - /** Filter by the object’s `namespaceId` field. */ - namespaceId?: UUIDFilter; - /** Filter by the object’s `status` field. */ - status?: StringFilter; - /** Filter by the object’s `serviceUrl` field. */ - serviceUrl?: StringFilter; - /** Filter by the object’s `serviceName` field. */ - serviceName?: StringFilter; - /** Filter by the object’s `revision` field. */ - revision?: IntFilter; - /** Filter by the object’s `image` field. */ - image?: StringFilter; - /** Filter by the object’s `concurrency` field. */ - concurrency?: IntFilter; - /** Filter by the object’s `scaleMin` field. */ - scaleMin?: IntFilter; - /** Filter by the object’s `scaleMax` field. */ - scaleMax?: IntFilter; - /** Filter by the object’s `timeoutSeconds` field. */ - timeoutSeconds?: IntFilter; - /** Filter by the object’s `resources` field. */ - resources?: JSONFilter; - /** Filter by the object’s `lastError` field. */ - lastError?: StringFilter; - /** Filter by the object’s `lastErrorAt` field. */ - lastErrorAt?: DatetimeFilter; - /** Filter by the object’s `errorCount` field. */ - errorCount?: IntFilter; - /** Filter by the object’s `labels` field. */ - labels?: JSONFilter; - /** Filter by the object’s `annotations` field. */ - annotations?: JSONFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: FunctionDeploymentFilter[]; - /** Checks for any expressions in this list. */ - or?: FunctionDeploymentFilter[]; - /** Negates the expression. */ - not?: FunctionDeploymentFilter; - /** Filter by the object’s `functionDefinition` relation. */ - functionDefinition?: FunctionDefinitionFilter; - /** Filter by the object’s `namespace` relation. */ - namespace?: PlatformNamespaceFilter; +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 `Resource` object types. All fields are combined with a logical ‘and.’ */ -export interface ResourceFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `createdBy` field. */ - createdBy?: UUIDFilter; - /** Filter by the object’s `updatedBy` field. */ - updatedBy?: UUIDFilter; - /** Filter by the object’s `namespaceId` field. */ - namespaceId?: UUIDFilter; - /** Filter by the object’s `kind` field. */ - kind?: StringFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** 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 `lastError` field. */ - lastError?: StringFilter; - /** Filter by the object’s `errorCount` field. */ - errorCount?: IntFilter; - /** Filter by the object’s `labels` field. */ - labels?: JSONFilter; - /** Filter by the object’s `annotations` field. */ - annotations?: JSONFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: ResourceFilter[]; - /** Checks for any expressions in this list. */ - or?: ResourceFilter[]; - /** Negates the expression. */ - not?: ResourceFilter; - /** Filter by the object’s `namespace` relation. */ - namespace?: PlatformNamespaceFilter; +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 `FunctionApiBinding` object types. All fields are combined with a logical ‘and.’ */ -export interface FunctionApiBindingFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `functionDefinitionId` field. */ - functionDefinitionId?: UUIDFilter; - /** Filter by the object’s `apiId` field. */ - apiId?: UUIDFilter; - /** Filter by the object’s `alias` field. */ - alias?: StringFilter; - /** Filter by the object’s `config` field. */ - config?: JSONFilter; - /** Checks for all expressions in this list. */ - and?: FunctionApiBindingFilter[]; - /** Checks for any expressions in this list. */ - or?: FunctionApiBindingFilter[]; - /** Negates the expression. */ - not?: FunctionApiBindingFilter; - /** Filter by the object’s `functionDefinition` relation. */ - functionDefinition?: FunctionDefinitionFilter; +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 UUID fields. All fields are combined with a logical ‘and.’ */ -export interface UUIDFilter { - /** Is null (if `true` is specified) or is not null (if `false` is specified). */ - isNull?: boolean; - /** Equal to the specified value. */ - equalTo?: string; - /** Not equal to the specified value. */ - notEqualTo?: string; - /** Not equal to the specified value, treating null like an ordinary value. */ - distinctFrom?: string; - /** Equal to the specified value, treating null like an ordinary value. */ - notDistinctFrom?: string; - /** Included in the specified list. */ - in?: string[]; - /** Not included in the specified list. */ - notIn?: string[]; - /** Less than the specified value. */ - lessThan?: string; - /** Less than or equal to the specified value. */ - lessThanOrEqualTo?: string; - /** Greater than the specified value. */ - greaterThan?: string; - /** Greater than or equal to the specified value. */ - greaterThanOrEqualTo?: string; +export type UpdateFunctionGraphStorePayloadSelect = { + clientMutationId?: boolean; + functionGraphStore?: { + select: FunctionGraphStoreSelect; + }; + functionGraphStoreEdge?: { + select: FunctionGraphStoreEdgeSelect; + }; +}; +export interface DeleteFunctionGraphStorePayload { + clientMutationId?: string | null; + /** The `FunctionGraphStore` that was deleted by this mutation. */ + functionGraphStore?: FunctionGraphStore | null; + functionGraphStoreEdge?: FunctionGraphStoreEdge | null; } -/** A filter to be used against Datetime fields. All fields are combined with a logical ‘and.’ */ -export interface DatetimeFilter { - /** Is null (if `true` is specified) or is not null (if `false` is specified). */ - isNull?: boolean; - /** Equal to the specified value. */ - equalTo?: string; - /** Not equal to the specified value. */ - notEqualTo?: string; - /** Not equal to the specified value, treating null like an ordinary value. */ - distinctFrom?: string; - /** Equal to the specified value, treating null like an ordinary value. */ - notDistinctFrom?: string; - /** Included in the specified list. */ - in?: string[]; - /** Not included in the specified list. */ - notIn?: string[]; - /** Less than the specified value. */ - lessThan?: string; - /** Less than or equal to the specified value. */ - lessThanOrEqualTo?: string; - /** Greater than the specified value. */ - greaterThan?: string; - /** Greater than or equal to the specified value. */ - greaterThanOrEqualTo?: string; +export type DeleteFunctionGraphStorePayloadSelect = { + clientMutationId?: boolean; + functionGraphStore?: { + select: FunctionGraphStoreSelect; + }; + functionGraphStoreEdge?: { + select: FunctionGraphStoreEdgeSelect; + }; +}; +export interface CreatePlatformFunctionApiBindingPayload { + clientMutationId?: string | null; + /** The `PlatformFunctionApiBinding` that was created by this mutation. */ + platformFunctionApiBinding?: PlatformFunctionApiBinding | null; + platformFunctionApiBindingEdge?: PlatformFunctionApiBindingEdge | null; } -/** A filter to be used against String fields. All fields are combined with a logical ‘and.’ */ -export interface StringFilter { - /** Is null (if `true` is specified) or is not null (if `false` is specified). */ - isNull?: boolean; - /** Equal to the specified value. */ - equalTo?: string; - /** Not equal to the specified value. */ - notEqualTo?: string; - /** Not equal to the specified value, treating null like an ordinary value. */ - distinctFrom?: string; - /** Equal to the specified value, treating null like an ordinary value. */ - notDistinctFrom?: string; - /** Included in the specified list. */ - in?: string[]; - /** Not included in the specified list. */ - notIn?: string[]; - /** Less than the specified value. */ - lessThan?: string; - /** Less than or equal to the specified value. */ - lessThanOrEqualTo?: string; - /** Greater than the specified value. */ - greaterThan?: string; - /** Greater than or equal to the specified value. */ - greaterThanOrEqualTo?: string; - /** Contains the specified string (case-sensitive). */ - includes?: string; - /** Does not contain the specified string (case-sensitive). */ - notIncludes?: string; - /** Contains the specified string (case-insensitive). */ - includesInsensitive?: string; - /** Does not contain the specified string (case-insensitive). */ - notIncludesInsensitive?: string; - /** Starts with the specified string (case-sensitive). */ - startsWith?: string; - /** Does not start with the specified string (case-sensitive). */ - notStartsWith?: string; - /** Starts with the specified string (case-insensitive). */ - startsWithInsensitive?: string; - /** Does not start with the specified string (case-insensitive). */ - notStartsWithInsensitive?: string; - /** Ends with the specified string (case-sensitive). */ - endsWith?: string; - /** Does not end with the specified string (case-sensitive). */ - notEndsWith?: string; - /** Ends with the specified string (case-insensitive). */ - endsWithInsensitive?: string; - /** Does not end with the specified string (case-insensitive). */ - notEndsWithInsensitive?: string; - /** Matches the specified pattern (case-sensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. */ - like?: string; - /** Does not match the specified pattern (case-sensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. */ - notLike?: string; - /** Matches the specified pattern (case-insensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. */ - likeInsensitive?: string; - /** Does not match the specified pattern (case-insensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. */ - notLikeInsensitive?: string; - /** Equal to the specified value (case-insensitive). */ - equalToInsensitive?: string; - /** Not equal to the specified value (case-insensitive). */ - notEqualToInsensitive?: string; - /** Not equal to the specified value, treating null like an ordinary value (case-insensitive). */ - distinctFromInsensitive?: string; - /** Equal to the specified value, treating null like an ordinary value (case-insensitive). */ - notDistinctFromInsensitive?: string; - /** Included in the specified list (case-insensitive). */ - inInsensitive?: string[]; - /** Not included in the specified list (case-insensitive). */ - notInInsensitive?: string[]; - /** Less than the specified value (case-insensitive). */ - lessThanInsensitive?: string; - /** Less than or equal to the specified value (case-insensitive). */ - lessThanOrEqualToInsensitive?: string; - /** Greater than the specified value (case-insensitive). */ - greaterThanInsensitive?: string; - /** Greater than or equal to the specified value (case-insensitive). */ - greaterThanOrEqualToInsensitive?: string; +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; } -/** A filter to be used against Int fields. All fields are combined with a logical ‘and.’ */ -export interface IntFilter { - /** Is null (if `true` is specified) or is not null (if `false` is specified). */ - isNull?: boolean; - /** Equal to the specified value. */ - equalTo?: number; - /** Not equal to the specified value. */ - notEqualTo?: number; - /** Not equal to the specified value, treating null like an ordinary value. */ - distinctFrom?: number; - /** Equal to the specified value, treating null like an ordinary value. */ - notDistinctFrom?: number; - /** Included in the specified list. */ - in?: number[]; - /** Not included in the specified list. */ - notIn?: number[]; - /** Less than the specified value. */ - lessThan?: number; - /** Less than or equal to the specified value. */ - lessThanOrEqualTo?: number; - /** Greater than the specified value. */ - greaterThan?: number; - /** Greater than or equal to the specified value. */ - greaterThanOrEqualTo?: number; +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; } -/** A filter to be used against JSON fields. All fields are combined with a logical ‘and.’ */ -export interface JSONFilter { - /** Is null (if `true` is specified) or is not null (if `false` is specified). */ - isNull?: boolean; - /** Equal to the specified value. */ - equalTo?: Record; - /** Not equal to the specified value. */ - notEqualTo?: Record; - /** Not equal to the specified value, treating null like an ordinary value. */ - distinctFrom?: Record; - /** Equal to the specified value, treating null like an ordinary value. */ - notDistinctFrom?: Record; - /** Included in the specified list. */ - in?: Record[]; - /** Not included in the specified list. */ - notIn?: Record[]; - /** Less than the specified value. */ - lessThan?: Record; - /** Less than or equal to the specified value. */ - lessThanOrEqualTo?: Record; - /** Greater than the specified value. */ - greaterThan?: Record; - /** Greater than or equal to the specified value. */ - greaterThanOrEqualTo?: Record; - /** Contains the specified JSON. */ - contains?: Record; - /** Contains the specified key. */ - containsKey?: string; - /** Contains all of the specified keys. */ - containsAllKeys?: string[]; - /** Contains any of the specified keys. */ - containsAnyKeys?: string[]; - /** Contained by the specified JSON. */ - containedBy?: Record; +export type DeletePlatformFunctionApiBindingPayloadSelect = { + clientMutationId?: boolean; + platformFunctionApiBinding?: { + select: PlatformFunctionApiBindingSelect; + }; + platformFunctionApiBindingEdge?: { + select: PlatformFunctionApiBindingEdgeSelect; + }; +}; +export interface CreatePlatformResourceStatusCheckPayload { + clientMutationId?: string | null; + /** The `PlatformResourceStatusCheck` that was created by this mutation. */ + platformResourceStatusCheck?: PlatformResourceStatusCheck | null; + platformResourceStatusCheckEdge?: PlatformResourceStatusCheckEdge | 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 `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `scope` field. */ - scope?: StringFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `taskIdentifier` field. */ - taskIdentifier?: StringFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Filter by the object’s `isInvocable` field. */ - isInvocable?: BooleanFilter; - /** Filter by the object’s `maxAttempts` field. */ - maxAttempts?: IntFilter; - /** Filter by the object’s `priority` field. */ - priority?: IntFilter; - /** Filter by the object’s `queueName` field. */ - queueName?: StringFilter; - /** Filter by the object’s `runtime` field. */ - runtime?: StringFilter; - /** Filter by the object’s `image` field. */ - image?: StringFilter; - /** Filter by the object’s `concurrency` field. */ - concurrency?: IntFilter; - /** Filter by the object’s `scaleMin` field. */ - scaleMin?: IntFilter; - /** Filter by the object’s `scaleMax` field. */ - scaleMax?: IntFilter; - /** Filter by the object’s `timeoutSeconds` field. */ - timeoutSeconds?: IntFilter; - /** Filter by the object’s `resources` field. */ - resources?: JSONFilter; - /** Filter by the object’s `isBuiltIn` field. */ - isBuiltIn?: BooleanFilter; - /** Filter by the object’s `requiredBuckets` field. */ - requiredBuckets?: StringListFilter; - /** Filter by the object’s `requiredModels` field. */ - requiredModels?: StringListFilter; - /** Filter by the object’s `inputs` field. */ - inputs?: JSONFilter; - /** Filter by the object’s `outputs` field. */ - outputs?: JSONFilter; - /** Filter by the object’s `props` field. */ - props?: JSONFilter; - /** Filter by the object’s `volatile` field. */ - volatile?: BooleanFilter; - /** Filter by the object’s `icon` field. */ - icon?: StringFilter; - /** Filter by the object’s `category` field. */ - category?: StringFilter; - /** Checks for all expressions in this list. */ - and?: FunctionDefinitionFilter[]; - /** Checks for any expressions in this list. */ - or?: FunctionDefinitionFilter[]; - /** Negates the expression. */ - not?: FunctionDefinitionFilter; - /** Filter by the object’s `functionApiBindings` relation. */ - functionApiBindings?: FunctionDefinitionToManyFunctionApiBindingFilter; - /** `functionApiBindings` exist. */ - functionApiBindingsExist?: boolean; - /** Filter by the object’s `functionDeployments` relation. */ - functionDeployments?: FunctionDefinitionToManyFunctionDeploymentFilter; - /** `functionDeployments` exist. */ - functionDeploymentsExist?: boolean; +export type CreatePlatformResourceStatusCheckPayloadSelect = { + clientMutationId?: boolean; + platformResourceStatusCheck?: { + select: PlatformResourceStatusCheckSelect; + }; + platformResourceStatusCheckEdge?: { + select: PlatformResourceStatusCheckEdgeSelect; + }; +}; +export interface UpdatePlatformResourceStatusCheckPayload { + clientMutationId?: string | null; + /** The `PlatformResourceStatusCheck` that was updated by this mutation. */ + platformResourceStatusCheck?: PlatformResourceStatusCheck | null; + platformResourceStatusCheckEdge?: PlatformResourceStatusCheckEdge | null; } -/** A filter to be used against `PlatformNamespace` object types. All fields are combined with a logical ‘and.’ */ -export interface PlatformNamespaceFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `namespaceName` field. */ - namespaceName?: StringFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Filter by the object’s `isActive` field. */ - isActive?: BooleanFilter; - /** Filter by the object’s `labels` field. */ - labels?: JSONFilter; - /** Filter by the object’s `annotations` field. */ - annotations?: JSONFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `sourceDatabaseId` field. */ - sourceDatabaseId?: UUIDFilter; - /** Filter by the object’s `sourceScope` field. */ - sourceScope?: StringFilter; - /** Filter by the object’s `isManaged` field. */ - isManaged?: BooleanFilter; - /** Checks for all expressions in this list. */ - and?: PlatformNamespaceFilter[]; - /** Checks for any expressions in this list. */ - or?: PlatformNamespaceFilter[]; - /** Negates the expression. */ - not?: PlatformNamespaceFilter; - /** Filter by the object’s `functionDeploymentsByNamespaceId` relation. */ - functionDeploymentsByNamespaceId?: PlatformNamespaceToManyFunctionDeploymentFilter; - /** `functionDeploymentsByNamespaceId` exist. */ - functionDeploymentsByNamespaceIdExist?: boolean; - /** Filter by the object’s `resourcesByNamespaceId` relation. */ - resourcesByNamespaceId?: PlatformNamespaceToManyResourceFilter; - /** `resourcesByNamespaceId` exist. */ - resourcesByNamespaceIdExist?: boolean; +export type UpdatePlatformResourceStatusCheckPayloadSelect = { + clientMutationId?: boolean; + platformResourceStatusCheck?: { + select: PlatformResourceStatusCheckSelect; + }; + platformResourceStatusCheckEdge?: { + select: PlatformResourceStatusCheckEdgeSelect; + }; +}; +export interface DeletePlatformResourceStatusCheckPayload { + clientMutationId?: string | null; + /** The `PlatformResourceStatusCheck` that was deleted by this mutation. */ + platformResourceStatusCheck?: PlatformResourceStatusCheck | null; + platformResourceStatusCheckEdge?: PlatformResourceStatusCheckEdge | null; } -/** A filter to be used against Boolean fields. All fields are combined with a logical ‘and.’ */ -export interface BooleanFilter { - /** Is null (if `true` is specified) or is not null (if `false` is specified). */ - isNull?: boolean; - /** Equal to the specified value. */ - equalTo?: boolean; - /** Not equal to the specified value. */ - notEqualTo?: boolean; - /** Not equal to the specified value, treating null like an ordinary value. */ - distinctFrom?: boolean; - /** Equal to the specified value, treating null like an ordinary value. */ - notDistinctFrom?: boolean; - /** Included in the specified list. */ - in?: boolean[]; - /** Not included in the specified list. */ - notIn?: boolean[]; - /** Less than the specified value. */ - lessThan?: boolean; - /** Less than or equal to the specified value. */ - lessThanOrEqualTo?: boolean; - /** Greater than the specified value. */ - greaterThan?: boolean; - /** Greater than or equal to the specified value. */ - greaterThanOrEqualTo?: boolean; +export type DeletePlatformResourceStatusCheckPayloadSelect = { + clientMutationId?: boolean; + platformResourceStatusCheck?: { + select: PlatformResourceStatusCheckSelect; + }; + platformResourceStatusCheckEdge?: { + select: PlatformResourceStatusCheckEdgeSelect; + }; +}; +export interface CreatePlatformFunctionDeploymentPayload { + clientMutationId?: string | null; + /** The `PlatformFunctionDeployment` that was created by this mutation. */ + platformFunctionDeployment?: PlatformFunctionDeployment | null; + platformFunctionDeploymentEdge?: PlatformFunctionDeploymentEdge | null; } -/** A filter to be used against String List fields. All fields are combined with a logical ‘and.’ */ -export interface StringListFilter { - /** Is null (if `true` is specified) or is not null (if `false` is specified). */ - isNull?: boolean; - /** Equal to the specified value. */ - equalTo?: string[]; - /** Not equal to the specified value. */ - notEqualTo?: string[]; - /** Not equal to the specified value, treating null like an ordinary value. */ - distinctFrom?: string[]; - /** Equal to the specified value, treating null like an ordinary value. */ - notDistinctFrom?: string[]; - /** Less than the specified value. */ - lessThan?: string[]; - /** Less than or equal to the specified value. */ - lessThanOrEqualTo?: string[]; - /** Greater than the specified value. */ - greaterThan?: string[]; - /** Greater than or equal to the specified value. */ - greaterThanOrEqualTo?: string[]; - /** Contains the specified list of values. */ - contains?: string[]; - /** Contained by the specified list of values. */ - containedBy?: string[]; - /** Overlaps the specified list of values. */ - overlaps?: string[]; - /** Any array item is equal to the specified value. */ - anyEqualTo?: string; - /** Any array item is not equal to the specified value. */ - anyNotEqualTo?: 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 greater than the specified value. */ - anyGreaterThan?: string; - /** Any array item is greater than or equal to the specified value. */ - anyGreaterThanOrEqualTo?: string; +export type CreatePlatformFunctionDeploymentPayloadSelect = { + clientMutationId?: boolean; + platformFunctionDeployment?: { + select: PlatformFunctionDeploymentSelect; + }; + platformFunctionDeploymentEdge?: { + select: PlatformFunctionDeploymentEdgeSelect; + }; +}; +export interface UpdatePlatformFunctionDeploymentPayload { + clientMutationId?: string | null; + /** The `PlatformFunctionDeployment` that was updated by this mutation. */ + platformFunctionDeployment?: PlatformFunctionDeployment | null; + platformFunctionDeploymentEdge?: PlatformFunctionDeploymentEdge | null; } -// ============ Payload/Return Types (for custom operations) ============ -export interface ValidateFunctionGraphPayload { +export type UpdatePlatformFunctionDeploymentPayloadSelect = { + clientMutationId?: boolean; + platformFunctionDeployment?: { + select: PlatformFunctionDeploymentSelect; + }; + platformFunctionDeploymentEdge?: { + select: PlatformFunctionDeploymentEdgeSelect; + }; +}; +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 InitEmptyRepoPayload { +export interface CreatePlatformResourcePayload { clientMutationId?: string | null; + /** The `PlatformResource` that was created by this mutation. */ + platformResource?: PlatformResource | null; + platformResourceEdge?: PlatformResourceEdge | null; } -export type InitEmptyRepoPayloadSelect = { +export type CreatePlatformResourcePayloadSelect = { clientMutationId?: boolean; + platformResource?: { + select: PlatformResourceSelect; + }; + platformResourceEdge?: { + select: PlatformResourceEdgeSelect; + }; }; -export interface SetDataAtPathPayload { +export interface UpdatePlatformResourcePayload { clientMutationId?: string | null; - result?: string | null; + /** The `PlatformResource` that was updated by this mutation. */ + platformResource?: PlatformResource | null; + platformResourceEdge?: PlatformResourceEdge | null; } -export type SetDataAtPathPayloadSelect = { +export type UpdatePlatformResourcePayloadSelect = { clientMutationId?: boolean; - result?: boolean; + platformResource?: { + select: PlatformResourceSelect; + }; + platformResourceEdge?: { + select: PlatformResourceEdgeSelect; + }; }; -export interface ImportDefinitionsPayload { +export interface DeletePlatformResourcePayload { clientMutationId?: string | null; + /** The `PlatformResource` that was deleted by this mutation. */ + platformResource?: PlatformResource | null; + platformResourceEdge?: PlatformResourceEdge | null; } -export type ImportDefinitionsPayloadSelect = { +export type DeletePlatformResourcePayloadSelect = { clientMutationId?: boolean; + platformResource?: { + select: PlatformResourceSelect; + }; + platformResourceEdge?: { + select: PlatformResourceEdgeSelect; + }; }; -export interface CopyGraphPayload { +export interface CreatePlatformResourceDefinitionPayload { clientMutationId?: string | null; - result?: string | null; + /** The `PlatformResourceDefinition` that was created by this mutation. */ + platformResourceDefinition?: PlatformResourceDefinition | null; + platformResourceDefinitionEdge?: PlatformResourceDefinitionEdge | null; } -export type CopyGraphPayloadSelect = { +export type CreatePlatformResourceDefinitionPayloadSelect = { clientMutationId?: boolean; - result?: boolean; + platformResourceDefinition?: { + select: PlatformResourceDefinitionSelect; + }; + platformResourceDefinitionEdge?: { + select: PlatformResourceDefinitionEdgeSelect; + }; }; -export interface SaveGraphPayload { +export interface UpdatePlatformResourceDefinitionPayload { clientMutationId?: string | null; - result?: string | null; + /** The `PlatformResourceDefinition` that was updated by this mutation. */ + platformResourceDefinition?: PlatformResourceDefinition | null; + platformResourceDefinitionEdge?: PlatformResourceDefinitionEdge | null; } -export type SaveGraphPayloadSelect = { +export type UpdatePlatformResourceDefinitionPayloadSelect = { clientMutationId?: boolean; - result?: boolean; + platformResourceDefinition?: { + select: PlatformResourceDefinitionSelect; + }; + platformResourceDefinitionEdge?: { + select: PlatformResourceDefinitionEdgeSelect; + }; }; -export interface AddEdgeAndSavePayload { +export interface DeletePlatformResourceDefinitionPayload { clientMutationId?: string | null; - result?: string | null; + /** The `PlatformResourceDefinition` that was deleted by this mutation. */ + platformResourceDefinition?: PlatformResourceDefinition | null; + platformResourceDefinitionEdge?: PlatformResourceDefinitionEdge | null; } -export type AddEdgeAndSavePayloadSelect = { +export type DeletePlatformResourceDefinitionPayloadSelect = { clientMutationId?: boolean; - result?: boolean; + platformResourceDefinition?: { + select: PlatformResourceDefinitionSelect; + }; + platformResourceDefinitionEdge?: { + select: PlatformResourceDefinitionEdgeSelect; + }; }; -export interface AddNodeAndSavePayload { +export interface CreateInfraObjectPayload { clientMutationId?: string | null; - result?: string | null; + /** The `InfraObject` that was created by this mutation. */ + infraObject?: InfraObject | null; + infraObjectEdge?: InfraObjectEdge | null; } -export type AddNodeAndSavePayloadSelect = { +export type CreateInfraObjectPayloadSelect = { clientMutationId?: boolean; - result?: boolean; + infraObject?: { + select: InfraObjectSelect; + }; + infraObjectEdge?: { + select: InfraObjectEdgeSelect; + }; }; -export interface ImportGraphJsonPayload { +export interface UpdateInfraObjectPayload { clientMutationId?: string | null; - result?: string | null; + /** The `InfraObject` that was updated by this mutation. */ + infraObject?: InfraObject | null; + infraObjectEdge?: InfraObjectEdge | null; } -export type ImportGraphJsonPayloadSelect = { +export type UpdateInfraObjectPayloadSelect = { clientMutationId?: boolean; - result?: boolean; + infraObject?: { + select: InfraObjectSelect; + }; + infraObjectEdge?: { + select: InfraObjectEdgeSelect; + }; }; -export interface AddEdgePayload { +export interface DeleteInfraObjectPayload { clientMutationId?: string | null; - result?: string | null; + /** The `InfraObject` that was deleted by this mutation. */ + infraObject?: InfraObject | null; + infraObjectEdge?: InfraObjectEdge | null; } -export type AddEdgePayloadSelect = { +export type DeleteInfraObjectPayloadSelect = { clientMutationId?: boolean; - result?: boolean; + infraObject?: { + select: InfraObjectSelect; + }; + infraObjectEdge?: { + select: InfraObjectEdgeSelect; + }; }; -export interface AddNodePayload { +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 AddNodePayloadSelect = { +export type CreateFunctionGraphObjectPayloadSelect = { clientMutationId?: boolean; - result?: boolean; + functionGraphObject?: { + select: FunctionGraphObjectSelect; + }; + functionGraphObjectEdge?: { + select: FunctionGraphObjectEdgeSelect; + }; }; -export interface InsertNodeAtPathPayload { +export interface UpdateFunctionGraphObjectPayload { clientMutationId?: string | null; - result?: string | null; + /** The `FunctionGraphObject` that was updated by this mutation. */ + functionGraphObject?: FunctionGraphObject | null; + functionGraphObjectEdge?: FunctionGraphObjectEdge | null; } -export type InsertNodeAtPathPayloadSelect = { +export type UpdateFunctionGraphObjectPayloadSelect = { clientMutationId?: boolean; - result?: boolean; + functionGraphObject?: { + select: FunctionGraphObjectSelect; + }; + functionGraphObjectEdge?: { + select: FunctionGraphObjectEdgeSelect; + }; }; -export interface StartExecutionPayload { +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 StartExecutionPayloadSelect = { +export type DeleteFunctionGraphObjectPayloadSelect = { clientMutationId?: boolean; - result?: boolean; + functionGraphObject?: { + select: FunctionGraphObjectSelect; + }; + functionGraphObjectEdge?: { + select: FunctionGraphObjectEdgeSelect; + }; }; -export interface ProvisionBucketPayload { - /** Whether provisioning succeeded */ - success: boolean; - /** The S3 bucket name that was provisioned */ - bucketName: string; - /** The access type applied */ - accessType: string; - /** The storage provider used */ - provider: string; - /** The S3 endpoint (null for AWS S3 default) */ - endpoint?: string | null; - /** Error message if provisioning failed */ - error?: string | null; +export interface CreatePlatformFunctionDeploymentEventPayload { + clientMutationId?: string | null; + /** The `PlatformFunctionDeploymentEvent` that was created by this mutation. */ + platformFunctionDeploymentEvent?: PlatformFunctionDeploymentEvent | null; + platformFunctionDeploymentEventEdge?: PlatformFunctionDeploymentEventEdge | null; +} +export type CreatePlatformFunctionDeploymentEventPayloadSelect = { + clientMutationId?: boolean; + platformFunctionDeploymentEvent?: { + select: PlatformFunctionDeploymentEventSelect; + }; + platformFunctionDeploymentEventEdge?: { + select: PlatformFunctionDeploymentEventEdgeSelect; + }; +}; +export interface UpdatePlatformFunctionDeploymentEventPayload { + clientMutationId?: string | null; + /** The `PlatformFunctionDeploymentEvent` that was updated by this mutation. */ + platformFunctionDeploymentEvent?: PlatformFunctionDeploymentEvent | null; + platformFunctionDeploymentEventEdge?: PlatformFunctionDeploymentEventEdge | null; +} +export type UpdatePlatformFunctionDeploymentEventPayloadSelect = { + clientMutationId?: boolean; + platformFunctionDeploymentEvent?: { + select: PlatformFunctionDeploymentEventSelect; + }; + platformFunctionDeploymentEventEdge?: { + select: PlatformFunctionDeploymentEventEdgeSelect; + }; +}; +export interface DeletePlatformFunctionDeploymentEventPayload { + clientMutationId?: string | null; + /** The `PlatformFunctionDeploymentEvent` that was deleted by this mutation. */ + platformFunctionDeploymentEvent?: PlatformFunctionDeploymentEvent | null; + platformFunctionDeploymentEventEdge?: PlatformFunctionDeploymentEventEdge | null; +} +export type DeletePlatformFunctionDeploymentEventPayloadSelect = { + clientMutationId?: boolean; + platformFunctionDeploymentEvent?: { + select: PlatformFunctionDeploymentEventSelect; + }; + platformFunctionDeploymentEventEdge?: { + select: PlatformFunctionDeploymentEventEdgeSelect; + }; +}; +export interface CreatePlatformResourceEventPayload { + clientMutationId?: string | null; + /** The `PlatformResourceEvent` that was created by this mutation. */ + platformResourceEvent?: PlatformResourceEvent | null; + platformResourceEventEdge?: PlatformResourceEventEdge | null; +} +export type CreatePlatformResourceEventPayloadSelect = { + clientMutationId?: boolean; + platformResourceEvent?: { + select: PlatformResourceEventSelect; + }; + platformResourceEventEdge?: { + select: PlatformResourceEventEdgeSelect; + }; +}; +export interface UpdatePlatformResourceEventPayload { + clientMutationId?: string | null; + /** The `PlatformResourceEvent` that was updated by this mutation. */ + platformResourceEvent?: PlatformResourceEvent | null; + platformResourceEventEdge?: PlatformResourceEventEdge | null; +} +export type UpdatePlatformResourceEventPayloadSelect = { + clientMutationId?: boolean; + platformResourceEvent?: { + select: PlatformResourceEventSelect; + }; + platformResourceEventEdge?: { + select: PlatformResourceEventEdgeSelect; + }; +}; +export interface DeletePlatformResourceEventPayload { + clientMutationId?: string | null; + /** The `PlatformResourceEvent` that was deleted by this mutation. */ + platformResourceEvent?: PlatformResourceEvent | null; + platformResourceEventEdge?: PlatformResourceEventEdge | null; } -export type ProvisionBucketPayloadSelect = { - success?: boolean; - bucketName?: boolean; - accessType?: boolean; - provider?: boolean; - endpoint?: boolean; - error?: boolean; +export type DeletePlatformResourceEventPayloadSelect = { + clientMutationId?: boolean; + platformResourceEvent?: { + select: PlatformResourceEventSelect; + }; + platformResourceEventEdge?: { + select: PlatformResourceEventEdgeSelect; + }; }; -export interface CreateFunctionApiBindingPayload { +export interface CreateResourceStatusCheckPayload { clientMutationId?: string | null; - /** The `FunctionApiBinding` that was created by this mutation. */ - functionApiBinding?: FunctionApiBinding | null; - functionApiBindingEdge?: FunctionApiBindingEdge | null; + /** The `ResourceStatusCheck` that was created by this mutation. */ + resourceStatusCheck?: ResourceStatusCheck | null; + resourceStatusCheckEdge?: ResourceStatusCheckEdge | null; } -export type CreateFunctionApiBindingPayloadSelect = { +export type CreateResourceStatusCheckPayloadSelect = { clientMutationId?: boolean; - functionApiBinding?: { - select: FunctionApiBindingSelect; + resourceStatusCheck?: { + select: ResourceStatusCheckSelect; }; - functionApiBindingEdge?: { - select: FunctionApiBindingEdgeSelect; + resourceStatusCheckEdge?: { + select: ResourceStatusCheckEdgeSelect; }; }; -export interface UpdateFunctionApiBindingPayload { +export interface UpdateResourceStatusCheckPayload { clientMutationId?: string | null; - /** The `FunctionApiBinding` that was updated by this mutation. */ - functionApiBinding?: FunctionApiBinding | null; - functionApiBindingEdge?: FunctionApiBindingEdge | null; + /** The `ResourceStatusCheck` that was updated by this mutation. */ + resourceStatusCheck?: ResourceStatusCheck | null; + resourceStatusCheckEdge?: ResourceStatusCheckEdge | null; } -export type UpdateFunctionApiBindingPayloadSelect = { +export type UpdateResourceStatusCheckPayloadSelect = { clientMutationId?: boolean; - functionApiBinding?: { - select: FunctionApiBindingSelect; + resourceStatusCheck?: { + select: ResourceStatusCheckSelect; }; - functionApiBindingEdge?: { - select: FunctionApiBindingEdgeSelect; + resourceStatusCheckEdge?: { + select: ResourceStatusCheckEdgeSelect; }; }; -export interface DeleteFunctionApiBindingPayload { +export interface DeleteResourceStatusCheckPayload { clientMutationId?: string | null; - /** The `FunctionApiBinding` that was deleted by this mutation. */ - functionApiBinding?: FunctionApiBinding | null; - functionApiBindingEdge?: FunctionApiBindingEdge | null; + /** The `ResourceStatusCheck` that was deleted by this mutation. */ + resourceStatusCheck?: ResourceStatusCheck | null; + resourceStatusCheckEdge?: ResourceStatusCheckEdge | null; } -export type DeleteFunctionApiBindingPayloadSelect = { +export type DeleteResourceStatusCheckPayloadSelect = { clientMutationId?: boolean; - functionApiBinding?: { - select: FunctionApiBindingSelect; + resourceStatusCheck?: { + select: ResourceStatusCheckSelect; }; - functionApiBindingEdge?: { - select: FunctionApiBindingEdgeSelect; + resourceStatusCheckEdge?: { + select: ResourceStatusCheckEdgeSelect; }; }; export interface CreateFunctionDeploymentPayload { @@ -4704,139 +9511,49 @@ export type DeleteResourcePayloadSelect = { select: ResourceEdgeSelect; }; }; -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; -} -export type UpdateFunctionGraphRefPayloadSelect = { - clientMutationId?: boolean; - functionGraphRef?: { - select: FunctionGraphRefSelect; - }; - functionGraphRefEdge?: { - select: FunctionGraphRefEdgeSelect; - }; -}; -export interface DeleteFunctionGraphRefPayload { - clientMutationId?: string | null; - /** The `FunctionGraphRef` that was deleted by this mutation. */ - functionGraphRef?: FunctionGraphRef | null; - functionGraphRefEdge?: FunctionGraphRefEdge | null; -} -export type DeleteFunctionGraphRefPayloadSelect = { - clientMutationId?: boolean; - functionGraphRef?: { - select: FunctionGraphRefSelect; - }; - functionGraphRefEdge?: { - select: FunctionGraphRefEdgeSelect; - }; -}; -export interface CreateFunctionGraphStorePayload { - clientMutationId?: string | null; - /** The `FunctionGraphStore` that was created by this mutation. */ - functionGraphStore?: FunctionGraphStore | null; - functionGraphStoreEdge?: FunctionGraphStoreEdge | null; -} -export type CreateFunctionGraphStorePayloadSelect = { - clientMutationId?: boolean; - functionGraphStore?: { - select: FunctionGraphStoreSelect; - }; - functionGraphStoreEdge?: { - select: FunctionGraphStoreEdgeSelect; - }; -}; -export interface UpdateFunctionGraphStorePayload { - clientMutationId?: string | null; - /** The `FunctionGraphStore` that was updated by this mutation. */ - functionGraphStore?: FunctionGraphStore | null; - functionGraphStoreEdge?: FunctionGraphStoreEdge | null; -} -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 CreateFunctionGraphObjectPayload { +export interface CreateResourceDefinitionPayload { clientMutationId?: string | null; - /** The `FunctionGraphObject` that was created by this mutation. */ - functionGraphObject?: FunctionGraphObject | null; - functionGraphObjectEdge?: FunctionGraphObjectEdge | null; + /** The `ResourceDefinition` that was created by this mutation. */ + resourceDefinition?: ResourceDefinition | null; + resourceDefinitionEdge?: ResourceDefinitionEdge | null; } -export type CreateFunctionGraphObjectPayloadSelect = { +export type CreateResourceDefinitionPayloadSelect = { clientMutationId?: boolean; - functionGraphObject?: { - select: FunctionGraphObjectSelect; + resourceDefinition?: { + select: ResourceDefinitionSelect; }; - functionGraphObjectEdge?: { - select: FunctionGraphObjectEdgeSelect; + resourceDefinitionEdge?: { + select: ResourceDefinitionEdgeSelect; }; }; -export interface UpdateFunctionGraphObjectPayload { +export interface UpdateResourceDefinitionPayload { clientMutationId?: string | null; - /** The `FunctionGraphObject` that was updated by this mutation. */ - functionGraphObject?: FunctionGraphObject | null; - functionGraphObjectEdge?: FunctionGraphObjectEdge | null; + /** The `ResourceDefinition` that was updated by this mutation. */ + resourceDefinition?: ResourceDefinition | null; + resourceDefinitionEdge?: ResourceDefinitionEdge | null; } -export type UpdateFunctionGraphObjectPayloadSelect = { +export type UpdateResourceDefinitionPayloadSelect = { clientMutationId?: boolean; - functionGraphObject?: { - select: FunctionGraphObjectSelect; + resourceDefinition?: { + select: ResourceDefinitionSelect; }; - functionGraphObjectEdge?: { - select: FunctionGraphObjectEdgeSelect; + resourceDefinitionEdge?: { + select: ResourceDefinitionEdgeSelect; }; }; -export interface DeleteFunctionGraphObjectPayload { +export interface DeleteResourceDefinitionPayload { clientMutationId?: string | null; - /** The `FunctionGraphObject` that was deleted by this mutation. */ - functionGraphObject?: FunctionGraphObject | null; - functionGraphObjectEdge?: FunctionGraphObjectEdge | null; + /** The `ResourceDefinition` that was deleted by this mutation. */ + resourceDefinition?: ResourceDefinition | null; + resourceDefinitionEdge?: ResourceDefinitionEdge | null; } -export type DeleteFunctionGraphObjectPayloadSelect = { +export type DeleteResourceDefinitionPayloadSelect = { clientMutationId?: boolean; - functionGraphObject?: { - select: FunctionGraphObjectSelect; + resourceDefinition?: { + select: ResourceDefinitionSelect; }; - functionGraphObjectEdge?: { - select: FunctionGraphObjectEdgeSelect; + resourceDefinitionEdge?: { + select: ResourceDefinitionEdgeSelect; }; }; export interface CreateFunctionDeploymentEventPayload { @@ -4884,49 +9601,49 @@ export type DeleteFunctionDeploymentEventPayloadSelect = { select: FunctionDeploymentEventEdgeSelect; }; }; -export interface CreateOrgFunctionExecutionLogPayload { +export interface CreatePlatformFunctionExecutionLogPayload { clientMutationId?: string | null; - /** The `OrgFunctionExecutionLog` that was created by this mutation. */ - orgFunctionExecutionLog?: OrgFunctionExecutionLog | null; - orgFunctionExecutionLogEdge?: OrgFunctionExecutionLogEdge | null; + /** The `PlatformFunctionExecutionLog` that was created by this mutation. */ + platformFunctionExecutionLog?: PlatformFunctionExecutionLog | null; + platformFunctionExecutionLogEdge?: PlatformFunctionExecutionLogEdge | null; } -export type CreateOrgFunctionExecutionLogPayloadSelect = { +export type CreatePlatformFunctionExecutionLogPayloadSelect = { clientMutationId?: boolean; - orgFunctionExecutionLog?: { - select: OrgFunctionExecutionLogSelect; + platformFunctionExecutionLog?: { + select: PlatformFunctionExecutionLogSelect; }; - orgFunctionExecutionLogEdge?: { - select: OrgFunctionExecutionLogEdgeSelect; + platformFunctionExecutionLogEdge?: { + select: PlatformFunctionExecutionLogEdgeSelect; }; }; -export interface UpdateOrgFunctionExecutionLogPayload { +export interface UpdatePlatformFunctionExecutionLogPayload { clientMutationId?: string | null; - /** The `OrgFunctionExecutionLog` that was updated by this mutation. */ - orgFunctionExecutionLog?: OrgFunctionExecutionLog | null; - orgFunctionExecutionLogEdge?: OrgFunctionExecutionLogEdge | null; + /** The `PlatformFunctionExecutionLog` that was updated by this mutation. */ + platformFunctionExecutionLog?: PlatformFunctionExecutionLog | null; + platformFunctionExecutionLogEdge?: PlatformFunctionExecutionLogEdge | null; } -export type UpdateOrgFunctionExecutionLogPayloadSelect = { +export type UpdatePlatformFunctionExecutionLogPayloadSelect = { clientMutationId?: boolean; - orgFunctionExecutionLog?: { - select: OrgFunctionExecutionLogSelect; + platformFunctionExecutionLog?: { + select: PlatformFunctionExecutionLogSelect; }; - orgFunctionExecutionLogEdge?: { - select: OrgFunctionExecutionLogEdgeSelect; + platformFunctionExecutionLogEdge?: { + select: PlatformFunctionExecutionLogEdgeSelect; }; }; -export interface DeleteOrgFunctionExecutionLogPayload { +export interface DeletePlatformFunctionExecutionLogPayload { clientMutationId?: string | null; - /** The `OrgFunctionExecutionLog` that was deleted by this mutation. */ - orgFunctionExecutionLog?: OrgFunctionExecutionLog | null; - orgFunctionExecutionLogEdge?: OrgFunctionExecutionLogEdge | null; + /** The `PlatformFunctionExecutionLog` that was deleted by this mutation. */ + platformFunctionExecutionLog?: PlatformFunctionExecutionLog | null; + platformFunctionExecutionLogEdge?: PlatformFunctionExecutionLogEdge | null; } -export type DeleteOrgFunctionExecutionLogPayloadSelect = { +export type DeletePlatformFunctionExecutionLogPayloadSelect = { clientMutationId?: boolean; - orgFunctionExecutionLog?: { - select: OrgFunctionExecutionLogSelect; + platformFunctionExecutionLog?: { + select: PlatformFunctionExecutionLogSelect; }; - orgFunctionExecutionLogEdge?: { - select: OrgFunctionExecutionLogEdgeSelect; + platformFunctionExecutionLogEdge?: { + select: PlatformFunctionExecutionLogEdgeSelect; }; }; export interface CreateResourceEventPayload { @@ -5019,6 +9736,51 @@ export type DeleteFunctionGraphExecutionOutputPayloadSelect = { select: FunctionGraphExecutionOutputEdgeSelect; }; }; +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 CreateFunctionGraphCommitPayload { clientMutationId?: string | null; /** The `FunctionGraphCommit` that was created by this mutation. */ @@ -5064,51 +9826,6 @@ export type DeleteFunctionGraphCommitPayloadSelect = { select: FunctionGraphCommitEdgeSelect; }; }; -export interface CreateSecretDefinitionPayload { - clientMutationId?: string | null; - /** The `SecretDefinition` that was created by this mutation. */ - secretDefinition?: SecretDefinition | null; - secretDefinitionEdge?: SecretDefinitionEdge | null; -} -export type CreateSecretDefinitionPayloadSelect = { - clientMutationId?: boolean; - secretDefinition?: { - select: SecretDefinitionSelect; - }; - secretDefinitionEdge?: { - select: SecretDefinitionEdgeSelect; - }; -}; -export interface UpdateSecretDefinitionPayload { - clientMutationId?: string | null; - /** The `SecretDefinition` that was updated by this mutation. */ - secretDefinition?: SecretDefinition | null; - secretDefinitionEdge?: SecretDefinitionEdge | null; -} -export type UpdateSecretDefinitionPayloadSelect = { - clientMutationId?: boolean; - secretDefinition?: { - select: SecretDefinitionSelect; - }; - secretDefinitionEdge?: { - select: SecretDefinitionEdgeSelect; - }; -}; -export interface DeleteSecretDefinitionPayload { - clientMutationId?: string | null; - /** The `SecretDefinition` that was deleted by this mutation. */ - secretDefinition?: SecretDefinition | null; - secretDefinitionEdge?: SecretDefinitionEdge | null; -} -export type DeleteSecretDefinitionPayloadSelect = { - clientMutationId?: boolean; - secretDefinition?: { - select: SecretDefinitionSelect; - }; - secretDefinitionEdge?: { - select: SecretDefinitionEdgeSelect; - }; -}; export interface CreateFunctionExecutionLogPayload { clientMutationId?: string | null; /** The `FunctionExecutionLog` that was created by this mutation. */ @@ -5145,13 +9862,103 @@ export interface DeleteFunctionExecutionLogPayload { functionExecutionLog?: FunctionExecutionLog | null; functionExecutionLogEdge?: FunctionExecutionLogEdge | null; } -export type DeleteFunctionExecutionLogPayloadSelect = { +export type DeleteFunctionExecutionLogPayloadSelect = { + clientMutationId?: boolean; + functionExecutionLog?: { + select: FunctionExecutionLogSelect; + }; + functionExecutionLogEdge?: { + select: FunctionExecutionLogEdgeSelect; + }; +}; +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 CreatePlatformNamespacePayload { + clientMutationId?: string | null; + /** The `PlatformNamespace` that was created by this mutation. */ + platformNamespace?: PlatformNamespace | null; + platformNamespaceEdge?: PlatformNamespaceEdge | null; +} +export type CreatePlatformNamespacePayloadSelect = { + clientMutationId?: boolean; + platformNamespace?: { + select: PlatformNamespaceSelect; + }; + platformNamespaceEdge?: { + select: PlatformNamespaceEdgeSelect; + }; +}; +export interface UpdatePlatformNamespacePayload { + clientMutationId?: string | null; + /** The `PlatformNamespace` that was updated by this mutation. */ + platformNamespace?: PlatformNamespace | null; + platformNamespaceEdge?: PlatformNamespaceEdge | null; +} +export type UpdatePlatformNamespacePayloadSelect = { + clientMutationId?: boolean; + platformNamespace?: { + select: PlatformNamespaceSelect; + }; + platformNamespaceEdge?: { + select: PlatformNamespaceEdgeSelect; + }; +}; +export interface DeletePlatformNamespacePayload { + clientMutationId?: string | null; + /** The `PlatformNamespace` that was deleted by this mutation. */ + platformNamespace?: PlatformNamespace | null; + platformNamespaceEdge?: PlatformNamespaceEdge | null; +} +export type DeletePlatformNamespacePayloadSelect = { clientMutationId?: boolean; - functionExecutionLog?: { - select: FunctionExecutionLogSelect; + platformNamespace?: { + select: PlatformNamespaceSelect; }; - functionExecutionLogEdge?: { - select: FunctionExecutionLogEdgeSelect; + platformNamespaceEdge?: { + select: PlatformNamespaceEdgeSelect; }; }; export interface CreateFunctionGraphPayload { @@ -5237,94 +10044,94 @@ export type DeleteFunctionGraphExecutionNodeStatePayloadSelect = { select: FunctionGraphExecutionNodeStateEdgeSelect; }; }; -export interface CreatePlatformNamespacePayload { +export interface CreateNamespacePayload { clientMutationId?: string | null; - /** The `PlatformNamespace` that was created by this mutation. */ - platformNamespace?: PlatformNamespace | null; - platformNamespaceEdge?: PlatformNamespaceEdge | null; + /** The `Namespace` that was created by this mutation. */ + namespace?: Namespace | null; + namespaceEdge?: NamespaceEdge | null; } -export type CreatePlatformNamespacePayloadSelect = { +export type CreateNamespacePayloadSelect = { clientMutationId?: boolean; - platformNamespace?: { - select: PlatformNamespaceSelect; + namespace?: { + select: NamespaceSelect; }; - platformNamespaceEdge?: { - select: PlatformNamespaceEdgeSelect; + namespaceEdge?: { + select: NamespaceEdgeSelect; }; }; -export interface UpdatePlatformNamespacePayload { +export interface UpdateNamespacePayload { clientMutationId?: string | null; - /** The `PlatformNamespace` that was updated by this mutation. */ - platformNamespace?: PlatformNamespace | null; - platformNamespaceEdge?: PlatformNamespaceEdge | null; + /** The `Namespace` that was updated by this mutation. */ + namespace?: Namespace | null; + namespaceEdge?: NamespaceEdge | null; } -export type UpdatePlatformNamespacePayloadSelect = { +export type UpdateNamespacePayloadSelect = { clientMutationId?: boolean; - platformNamespace?: { - select: PlatformNamespaceSelect; + namespace?: { + select: NamespaceSelect; }; - platformNamespaceEdge?: { - select: PlatformNamespaceEdgeSelect; + namespaceEdge?: { + select: NamespaceEdgeSelect; }; }; -export interface DeletePlatformNamespacePayload { +export interface DeleteNamespacePayload { clientMutationId?: string | null; - /** The `PlatformNamespace` that was deleted by this mutation. */ - platformNamespace?: PlatformNamespace | null; - platformNamespaceEdge?: PlatformNamespaceEdge | null; + /** The `Namespace` that was deleted by this mutation. */ + namespace?: Namespace | null; + namespaceEdge?: NamespaceEdge | null; } -export type DeletePlatformNamespacePayloadSelect = { +export type DeleteNamespacePayloadSelect = { clientMutationId?: boolean; - platformNamespace?: { - select: PlatformNamespaceSelect; + namespace?: { + select: NamespaceSelect; }; - platformNamespaceEdge?: { - select: PlatformNamespaceEdgeSelect; + namespaceEdge?: { + select: NamespaceEdgeSelect; }; }; -export interface CreateOrgFunctionInvocationPayload { +export interface CreatePlatformFunctionInvocationPayload { clientMutationId?: string | null; - /** The `OrgFunctionInvocation` that was created by this mutation. */ - orgFunctionInvocation?: OrgFunctionInvocation | null; - orgFunctionInvocationEdge?: OrgFunctionInvocationEdge | null; + /** The `PlatformFunctionInvocation` that was created by this mutation. */ + platformFunctionInvocation?: PlatformFunctionInvocation | null; + platformFunctionInvocationEdge?: PlatformFunctionInvocationEdge | null; } -export type CreateOrgFunctionInvocationPayloadSelect = { +export type CreatePlatformFunctionInvocationPayloadSelect = { clientMutationId?: boolean; - orgFunctionInvocation?: { - select: OrgFunctionInvocationSelect; + platformFunctionInvocation?: { + select: PlatformFunctionInvocationSelect; }; - orgFunctionInvocationEdge?: { - select: OrgFunctionInvocationEdgeSelect; + platformFunctionInvocationEdge?: { + select: PlatformFunctionInvocationEdgeSelect; }; }; -export interface UpdateOrgFunctionInvocationPayload { +export interface UpdatePlatformFunctionInvocationPayload { clientMutationId?: string | null; - /** The `OrgFunctionInvocation` that was updated by this mutation. */ - orgFunctionInvocation?: OrgFunctionInvocation | null; - orgFunctionInvocationEdge?: OrgFunctionInvocationEdge | null; + /** The `PlatformFunctionInvocation` that was updated by this mutation. */ + platformFunctionInvocation?: PlatformFunctionInvocation | null; + platformFunctionInvocationEdge?: PlatformFunctionInvocationEdge | null; } -export type UpdateOrgFunctionInvocationPayloadSelect = { +export type UpdatePlatformFunctionInvocationPayloadSelect = { clientMutationId?: boolean; - orgFunctionInvocation?: { - select: OrgFunctionInvocationSelect; + platformFunctionInvocation?: { + select: PlatformFunctionInvocationSelect; }; - orgFunctionInvocationEdge?: { - select: OrgFunctionInvocationEdgeSelect; + platformFunctionInvocationEdge?: { + select: PlatformFunctionInvocationEdgeSelect; }; }; -export interface DeleteOrgFunctionInvocationPayload { +export interface DeletePlatformFunctionInvocationPayload { clientMutationId?: string | null; - /** The `OrgFunctionInvocation` that was deleted by this mutation. */ - orgFunctionInvocation?: OrgFunctionInvocation | null; - orgFunctionInvocationEdge?: OrgFunctionInvocationEdge | null; + /** The `PlatformFunctionInvocation` that was deleted by this mutation. */ + platformFunctionInvocation?: PlatformFunctionInvocation | null; + platformFunctionInvocationEdge?: PlatformFunctionInvocationEdge | null; } -export type DeleteOrgFunctionInvocationPayloadSelect = { +export type DeletePlatformFunctionInvocationPayloadSelect = { clientMutationId?: boolean; - orgFunctionInvocation?: { - select: OrgFunctionInvocationSelect; + platformFunctionInvocation?: { + select: PlatformFunctionInvocationSelect; }; - orgFunctionInvocationEdge?: { - select: OrgFunctionInvocationEdgeSelect; + platformFunctionInvocationEdge?: { + select: PlatformFunctionInvocationEdgeSelect; }; }; export interface CreateFunctionInvocationPayload { @@ -5417,6 +10224,96 @@ export type DeletePlatformNamespaceEventPayloadSelect = { select: PlatformNamespaceEventEdgeSelect; }; }; +export interface CreateIntegrationProviderPayload { + clientMutationId?: string | null; + /** The `IntegrationProvider` that was created by this mutation. */ + integrationProvider?: IntegrationProvider | null; + integrationProviderEdge?: IntegrationProviderEdge | null; +} +export type CreateIntegrationProviderPayloadSelect = { + clientMutationId?: boolean; + integrationProvider?: { + select: IntegrationProviderSelect; + }; + integrationProviderEdge?: { + select: IntegrationProviderEdgeSelect; + }; +}; +export interface UpdateIntegrationProviderPayload { + clientMutationId?: string | null; + /** The `IntegrationProvider` that was updated by this mutation. */ + integrationProvider?: IntegrationProvider | null; + integrationProviderEdge?: IntegrationProviderEdge | null; +} +export type UpdateIntegrationProviderPayloadSelect = { + clientMutationId?: boolean; + integrationProvider?: { + select: IntegrationProviderSelect; + }; + integrationProviderEdge?: { + select: IntegrationProviderEdgeSelect; + }; +}; +export interface DeleteIntegrationProviderPayload { + clientMutationId?: string | null; + /** The `IntegrationProvider` that was deleted by this mutation. */ + integrationProvider?: IntegrationProvider | null; + integrationProviderEdge?: IntegrationProviderEdge | null; +} +export type DeleteIntegrationProviderPayloadSelect = { + clientMutationId?: boolean; + integrationProvider?: { + select: IntegrationProviderSelect; + }; + integrationProviderEdge?: { + select: IntegrationProviderEdgeSelect; + }; +}; +export interface CreateNamespaceEventPayload { + clientMutationId?: string | null; + /** The `NamespaceEvent` that was created by this mutation. */ + namespaceEvent?: NamespaceEvent | null; + namespaceEventEdge?: NamespaceEventEdge | null; +} +export type CreateNamespaceEventPayloadSelect = { + clientMutationId?: boolean; + namespaceEvent?: { + select: NamespaceEventSelect; + }; + namespaceEventEdge?: { + select: NamespaceEventEdgeSelect; + }; +}; +export interface UpdateNamespaceEventPayload { + clientMutationId?: string | null; + /** The `NamespaceEvent` that was updated by this mutation. */ + namespaceEvent?: NamespaceEvent | null; + namespaceEventEdge?: NamespaceEventEdge | null; +} +export type UpdateNamespaceEventPayloadSelect = { + clientMutationId?: boolean; + namespaceEvent?: { + select: NamespaceEventSelect; + }; + namespaceEventEdge?: { + select: NamespaceEventEdgeSelect; + }; +}; +export interface DeleteNamespaceEventPayload { + clientMutationId?: string | null; + /** The `NamespaceEvent` that was deleted by this mutation. */ + namespaceEvent?: NamespaceEvent | null; + namespaceEventEdge?: NamespaceEventEdge | null; +} +export type DeleteNamespaceEventPayloadSelect = { + clientMutationId?: boolean; + namespaceEvent?: { + select: NamespaceEventSelect; + }; + namespaceEventEdge?: { + select: NamespaceEventEdgeSelect; + }; +}; export interface CreateFunctionGraphExecutionPayload { clientMutationId?: string | null; /** The `FunctionGraphExecution` that was created by this mutation. */ @@ -5462,6 +10359,51 @@ export type DeleteFunctionGraphExecutionPayloadSelect = { select: FunctionGraphExecutionEdgeSelect; }; }; +export interface CreatePlatformFunctionDefinitionPayload { + clientMutationId?: string | null; + /** The `PlatformFunctionDefinition` that was created by this mutation. */ + platformFunctionDefinition?: PlatformFunctionDefinition | null; + platformFunctionDefinitionEdge?: PlatformFunctionDefinitionEdge | null; +} +export type CreatePlatformFunctionDefinitionPayloadSelect = { + clientMutationId?: boolean; + platformFunctionDefinition?: { + select: PlatformFunctionDefinitionSelect; + }; + platformFunctionDefinitionEdge?: { + select: PlatformFunctionDefinitionEdgeSelect; + }; +}; +export interface UpdatePlatformFunctionDefinitionPayload { + clientMutationId?: string | null; + /** The `PlatformFunctionDefinition` that was updated by this mutation. */ + platformFunctionDefinition?: PlatformFunctionDefinition | null; + platformFunctionDefinitionEdge?: PlatformFunctionDefinitionEdge | null; +} +export type UpdatePlatformFunctionDefinitionPayloadSelect = { + clientMutationId?: boolean; + platformFunctionDefinition?: { + select: PlatformFunctionDefinitionSelect; + }; + platformFunctionDefinitionEdge?: { + select: PlatformFunctionDefinitionEdgeSelect; + }; +}; +export interface DeletePlatformFunctionDefinitionPayload { + clientMutationId?: string | null; + /** The `PlatformFunctionDefinition` that was deleted by this mutation. */ + platformFunctionDefinition?: PlatformFunctionDefinition | null; + platformFunctionDefinitionEdge?: PlatformFunctionDefinitionEdge | null; +} +export type DeletePlatformFunctionDefinitionPayloadSelect = { + clientMutationId?: boolean; + platformFunctionDefinition?: { + select: PlatformFunctionDefinitionSelect; + }; + platformFunctionDefinitionEdge?: { + select: PlatformFunctionDefinitionEdgeSelect; + }; +}; export interface CreateFunctionDefinitionPayload { clientMutationId?: string | null; /** The `FunctionDefinition` that was created by this mutation. */ @@ -5507,40 +10449,40 @@ export type DeleteFunctionDefinitionPayloadSelect = { select: FunctionDefinitionEdgeSelect; }; }; -/** A `FunctionApiBinding` edge in the connection. */ -export interface FunctionApiBindingEdge { +/** A `InfraRef` edge in the connection. */ +export interface InfraRefEdge { cursor?: string | null; - /** The `FunctionApiBinding` at the end of the edge. */ - node?: FunctionApiBinding | null; + /** The `InfraRef` at the end of the edge. */ + node?: InfraRef | null; } -export type FunctionApiBindingEdgeSelect = { +export type InfraRefEdgeSelect = { cursor?: boolean; node?: { - select: FunctionApiBindingSelect; + select: InfraRefSelect; }; }; -/** A `FunctionDeployment` edge in the connection. */ -export interface FunctionDeploymentEdge { +/** A `InfraStore` edge in the connection. */ +export interface InfraStoreEdge { cursor?: string | null; - /** The `FunctionDeployment` at the end of the edge. */ - node?: FunctionDeployment | null; + /** The `InfraStore` at the end of the edge. */ + node?: InfraStore | null; } -export type FunctionDeploymentEdgeSelect = { +export type InfraStoreEdgeSelect = { cursor?: boolean; node?: { - select: FunctionDeploymentSelect; + select: InfraStoreSelect; }; }; -/** A `Resource` edge in the connection. */ -export interface ResourceEdge { +/** A `FunctionApiBinding` edge in the connection. */ +export interface FunctionApiBindingEdge { cursor?: string | null; - /** The `Resource` at the end of the edge. */ - node?: Resource | null; + /** The `FunctionApiBinding` at the end of the edge. */ + node?: FunctionApiBinding | null; } -export type ResourceEdgeSelect = { +export type FunctionApiBindingEdgeSelect = { cursor?: boolean; node?: { - select: ResourceSelect; + select: FunctionApiBindingSelect; }; }; /** A `FunctionGraphRef` edge in the connection. */ @@ -5567,6 +10509,78 @@ export type FunctionGraphStoreEdgeSelect = { select: FunctionGraphStoreSelect; }; }; +/** A `PlatformFunctionApiBinding` edge in the connection. */ +export interface PlatformFunctionApiBindingEdge { + cursor?: string | null; + /** The `PlatformFunctionApiBinding` at the end of the edge. */ + node?: PlatformFunctionApiBinding | null; +} +export type PlatformFunctionApiBindingEdgeSelect = { + cursor?: boolean; + node?: { + select: PlatformFunctionApiBindingSelect; + }; +}; +/** A `PlatformResourceStatusCheck` edge in the connection. */ +export interface PlatformResourceStatusCheckEdge { + cursor?: string | null; + /** The `PlatformResourceStatusCheck` at the end of the edge. */ + node?: PlatformResourceStatusCheck | null; +} +export type PlatformResourceStatusCheckEdgeSelect = { + cursor?: boolean; + node?: { + select: PlatformResourceStatusCheckSelect; + }; +}; +/** A `PlatformFunctionDeployment` edge in the connection. */ +export interface PlatformFunctionDeploymentEdge { + cursor?: string | null; + /** The `PlatformFunctionDeployment` at the end of the edge. */ + node?: PlatformFunctionDeployment | null; +} +export type PlatformFunctionDeploymentEdgeSelect = { + cursor?: boolean; + node?: { + select: PlatformFunctionDeploymentSelect; + }; +}; +/** A `PlatformResource` edge in the connection. */ +export interface PlatformResourceEdge { + cursor?: string | null; + /** The `PlatformResource` at the end of the edge. */ + node?: PlatformResource | null; +} +export type PlatformResourceEdgeSelect = { + cursor?: boolean; + node?: { + select: PlatformResourceSelect; + }; +}; +/** A `PlatformResourceDefinition` edge in the connection. */ +export interface PlatformResourceDefinitionEdge { + cursor?: string | null; + /** The `PlatformResourceDefinition` at the end of the edge. */ + node?: PlatformResourceDefinition | null; +} +export type PlatformResourceDefinitionEdgeSelect = { + cursor?: boolean; + node?: { + select: PlatformResourceDefinitionSelect; + }; +}; +/** A `InfraObject` edge in the connection. */ +export interface InfraObjectEdge { + cursor?: string | null; + /** The `InfraObject` at the end of the edge. */ + node?: InfraObject | null; +} +export type InfraObjectEdgeSelect = { + cursor?: boolean; + node?: { + select: InfraObjectSelect; + }; +}; /** A `FunctionGraphObject` edge in the connection. */ export interface FunctionGraphObjectEdge { cursor?: string | null; @@ -5579,6 +10593,78 @@ export type FunctionGraphObjectEdgeSelect = { select: FunctionGraphObjectSelect; }; }; +/** A `PlatformFunctionDeploymentEvent` edge in the connection. */ +export interface PlatformFunctionDeploymentEventEdge { + cursor?: string | null; + /** The `PlatformFunctionDeploymentEvent` at the end of the edge. */ + node?: PlatformFunctionDeploymentEvent | null; +} +export type PlatformFunctionDeploymentEventEdgeSelect = { + cursor?: boolean; + node?: { + select: PlatformFunctionDeploymentEventSelect; + }; +}; +/** A `PlatformResourceEvent` edge in the connection. */ +export interface PlatformResourceEventEdge { + cursor?: string | null; + /** The `PlatformResourceEvent` at the end of the edge. */ + node?: PlatformResourceEvent | null; +} +export type PlatformResourceEventEdgeSelect = { + cursor?: boolean; + node?: { + select: PlatformResourceEventSelect; + }; +}; +/** A `ResourceStatusCheck` edge in the connection. */ +export interface ResourceStatusCheckEdge { + cursor?: string | null; + /** The `ResourceStatusCheck` at the end of the edge. */ + node?: ResourceStatusCheck | null; +} +export type ResourceStatusCheckEdgeSelect = { + cursor?: boolean; + node?: { + select: ResourceStatusCheckSelect; + }; +}; +/** A `FunctionDeployment` edge in the connection. */ +export interface FunctionDeploymentEdge { + cursor?: string | null; + /** The `FunctionDeployment` at the end of the edge. */ + node?: FunctionDeployment | null; +} +export type FunctionDeploymentEdgeSelect = { + cursor?: boolean; + node?: { + select: FunctionDeploymentSelect; + }; +}; +/** A `Resource` edge in the connection. */ +export interface ResourceEdge { + cursor?: string | null; + /** The `Resource` at the end of the edge. */ + node?: Resource | null; +} +export type ResourceEdgeSelect = { + cursor?: boolean; + node?: { + select: ResourceSelect; + }; +}; +/** A `ResourceDefinition` edge in the connection. */ +export interface ResourceDefinitionEdge { + cursor?: string | null; + /** The `ResourceDefinition` at the end of the edge. */ + node?: ResourceDefinition | null; +} +export type ResourceDefinitionEdgeSelect = { + cursor?: boolean; + node?: { + select: ResourceDefinitionSelect; + }; +}; /** A `FunctionDeploymentEvent` edge in the connection. */ export interface FunctionDeploymentEventEdge { cursor?: string | null; @@ -5591,16 +10677,16 @@ export type FunctionDeploymentEventEdgeSelect = { select: FunctionDeploymentEventSelect; }; }; -/** A `OrgFunctionExecutionLog` edge in the connection. */ -export interface OrgFunctionExecutionLogEdge { +/** A `PlatformFunctionExecutionLog` edge in the connection. */ +export interface PlatformFunctionExecutionLogEdge { cursor?: string | null; - /** The `OrgFunctionExecutionLog` at the end of the edge. */ - node?: OrgFunctionExecutionLog | null; + /** The `PlatformFunctionExecutionLog` at the end of the edge. */ + node?: PlatformFunctionExecutionLog | null; } -export type OrgFunctionExecutionLogEdgeSelect = { +export type PlatformFunctionExecutionLogEdgeSelect = { cursor?: boolean; node?: { - select: OrgFunctionExecutionLogSelect; + select: PlatformFunctionExecutionLogSelect; }; }; /** A `ResourceEvent` edge in the connection. */ @@ -5627,28 +10713,28 @@ export type FunctionGraphExecutionOutputEdgeSelect = { select: FunctionGraphExecutionOutputSelect; }; }; -/** A `FunctionGraphCommit` edge in the connection. */ -export interface FunctionGraphCommitEdge { +/** A `InfraCommit` edge in the connection. */ +export interface InfraCommitEdge { cursor?: string | null; - /** The `FunctionGraphCommit` at the end of the edge. */ - node?: FunctionGraphCommit | null; + /** The `InfraCommit` at the end of the edge. */ + node?: InfraCommit | null; } -export type FunctionGraphCommitEdgeSelect = { +export type InfraCommitEdgeSelect = { cursor?: boolean; node?: { - select: FunctionGraphCommitSelect; + select: InfraCommitSelect; }; }; -/** A `SecretDefinition` edge in the connection. */ -export interface SecretDefinitionEdge { +/** A `FunctionGraphCommit` edge in the connection. */ +export interface FunctionGraphCommitEdge { cursor?: string | null; - /** The `SecretDefinition` at the end of the edge. */ - node?: SecretDefinition | null; + /** The `FunctionGraphCommit` at the end of the edge. */ + node?: FunctionGraphCommit | null; } -export type SecretDefinitionEdgeSelect = { +export type FunctionGraphCommitEdgeSelect = { cursor?: boolean; node?: { - select: SecretDefinitionSelect; + select: FunctionGraphCommitSelect; }; }; /** A `FunctionExecutionLog` edge in the connection. */ @@ -5663,6 +10749,30 @@ export type FunctionExecutionLogEdgeSelect = { select: FunctionExecutionLogSelect; }; }; +/** A `DbPreset` edge in the connection. */ +export interface DbPresetEdge { + cursor?: string | null; + /** The `DbPreset` at the end of the edge. */ + node?: DbPreset | null; +} +export type DbPresetEdgeSelect = { + cursor?: boolean; + node?: { + select: DbPresetSelect; + }; +}; +/** A `PlatformNamespace` edge in the connection. */ +export interface PlatformNamespaceEdge { + cursor?: string | null; + /** The `PlatformNamespace` at the end of the edge. */ + node?: PlatformNamespace | null; +} +export type PlatformNamespaceEdgeSelect = { + cursor?: boolean; + node?: { + select: PlatformNamespaceSelect; + }; +}; /** A `FunctionGraph` edge in the connection. */ export interface FunctionGraphEdge { cursor?: string | null; @@ -5687,28 +10797,28 @@ export type FunctionGraphExecutionNodeStateEdgeSelect = { select: FunctionGraphExecutionNodeStateSelect; }; }; -/** A `PlatformNamespace` edge in the connection. */ -export interface PlatformNamespaceEdge { +/** A `Namespace` edge in the connection. */ +export interface NamespaceEdge { cursor?: string | null; - /** The `PlatformNamespace` at the end of the edge. */ - node?: PlatformNamespace | null; + /** The `Namespace` at the end of the edge. */ + node?: Namespace | null; } -export type PlatformNamespaceEdgeSelect = { +export type NamespaceEdgeSelect = { cursor?: boolean; node?: { - select: PlatformNamespaceSelect; + select: NamespaceSelect; }; }; -/** A `OrgFunctionInvocation` edge in the connection. */ -export interface OrgFunctionInvocationEdge { +/** A `PlatformFunctionInvocation` edge in the connection. */ +export interface PlatformFunctionInvocationEdge { cursor?: string | null; - /** The `OrgFunctionInvocation` at the end of the edge. */ - node?: OrgFunctionInvocation | null; + /** The `PlatformFunctionInvocation` at the end of the edge. */ + node?: PlatformFunctionInvocation | null; } -export type OrgFunctionInvocationEdgeSelect = { +export type PlatformFunctionInvocationEdgeSelect = { cursor?: boolean; node?: { - select: OrgFunctionInvocationSelect; + select: PlatformFunctionInvocationSelect; }; }; /** A `FunctionInvocation` edge in the connection. */ @@ -5735,6 +10845,30 @@ export type PlatformNamespaceEventEdgeSelect = { select: PlatformNamespaceEventSelect; }; }; +/** A `IntegrationProvider` edge in the connection. */ +export interface IntegrationProviderEdge { + cursor?: string | null; + /** The `IntegrationProvider` at the end of the edge. */ + node?: IntegrationProvider | null; +} +export type IntegrationProviderEdgeSelect = { + cursor?: boolean; + node?: { + select: IntegrationProviderSelect; + }; +}; +/** A `NamespaceEvent` edge in the connection. */ +export interface NamespaceEventEdge { + cursor?: string | null; + /** The `NamespaceEvent` at the end of the edge. */ + node?: NamespaceEvent | null; +} +export type NamespaceEventEdgeSelect = { + cursor?: boolean; + node?: { + select: NamespaceEventSelect; + }; +}; /** A `FunctionGraphExecution` edge in the connection. */ export interface FunctionGraphExecutionEdge { cursor?: string | null; @@ -5747,6 +10881,18 @@ export type FunctionGraphExecutionEdgeSelect = { select: FunctionGraphExecutionSelect; }; }; +/** A `PlatformFunctionDefinition` edge in the connection. */ +export interface PlatformFunctionDefinitionEdge { + cursor?: string | null; + /** The `PlatformFunctionDefinition` at the end of the edge. */ + node?: PlatformFunctionDefinition | null; +} +export type PlatformFunctionDefinitionEdgeSelect = { + cursor?: boolean; + node?: { + select: PlatformFunctionDefinitionSelect; + }; +}; /** A `FunctionDefinition` edge in the connection. */ export interface FunctionDefinitionEdge { cursor?: string | null; diff --git a/sdk/constructive-cli/src/compute/orm/models/dbPreset.ts b/sdk/constructive-cli/src/compute/orm/models/dbPreset.ts new file mode 100644 index 0000000000..a3e824a674 --- /dev/null +++ b/sdk/constructive-cli/src/compute/orm/models/dbPreset.ts @@ -0,0 +1,245 @@ +/** + * DbPreset model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + DbPreset, + DbPresetWithRelations, + DbPresetSelect, + DbPresetFilter, + DbPresetOrderBy, + CreateDbPresetInput, + UpdateDbPresetInput, + DbPresetPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class DbPresetModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + dbPresets: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'DbPreset', + 'dbPresets', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'DbPresetFilter', + 'DbPresetOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'DbPreset', + fieldName: 'dbPresets', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + dbPreset: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'DbPreset', + 'dbPresets', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'DbPresetFilter', + 'DbPresetOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'DbPreset', + fieldName: 'dbPreset', + document, + variables, + transform: (data: { + dbPresets?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + dbPreset: data.dbPresets?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + dbPreset: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'DbPreset', + 'dbPresets', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'DbPresetFilter', + 'DbPresetOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'DbPreset', + fieldName: 'dbPreset', + document, + variables, + transform: (data: { + dbPresets?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + dbPreset: data.dbPresets?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createDbPreset: { + dbPreset: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'DbPreset', + 'createDbPreset', + 'dbPreset', + args.select, + args.data, + 'CreateDbPresetInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'DbPreset', + fieldName: 'createDbPreset', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + DbPresetPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateDbPreset: { + dbPreset: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'DbPreset', + 'updateDbPreset', + 'dbPreset', + args.select, + args.where.id, + args.data, + 'UpdateDbPresetInput', + 'id', + 'dbPresetPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'DbPreset', + fieldName: 'updateDbPreset', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteDbPreset: { + dbPreset: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'DbPreset', + 'deleteDbPreset', + 'dbPreset', + { + id: args.where.id, + }, + 'DeleteDbPresetInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'DbPreset', + fieldName: 'deleteDbPreset', + document, + variables, + }); + } +} diff --git a/sdk/constructive-cli/src/compute/orm/models/functionGraphCommit.ts b/sdk/constructive-cli/src/compute/orm/models/functionGraphCommit.ts index 65426339ae..cd7d7dad08 100644 --- a/sdk/constructive-cli/src/compute/orm/models/functionGraphCommit.ts +++ b/sdk/constructive-cli/src/compute/orm/models/functionGraphCommit.ts @@ -176,7 +176,7 @@ export class FunctionGraphCommitModel { S, { id: string; - databaseId: string; + scopeId: string; }, FunctionGraphCommitPatch > & { @@ -199,7 +199,7 @@ export class FunctionGraphCommitModel { 'functionGraphCommitPatch', connectionFieldsMap, { - databaseId: args.where.databaseId, + scopeId: args.where.scopeId, } ); return new QueryBuilder({ @@ -215,7 +215,7 @@ export class FunctionGraphCommitModel { args: DeleteArgs< { id: string; - databaseId: string; + scopeId: string; }, S > & { @@ -232,7 +232,7 @@ export class FunctionGraphCommitModel { 'functionGraphCommit', { id: args.where.id, - databaseId: args.where.databaseId, + scopeId: args.where.scopeId, }, 'DeleteFunctionGraphCommitInput', args.select, diff --git a/sdk/constructive-cli/src/compute/orm/models/functionGraphObject.ts b/sdk/constructive-cli/src/compute/orm/models/functionGraphObject.ts index cf946855ac..d1f358a726 100644 --- a/sdk/constructive-cli/src/compute/orm/models/functionGraphObject.ts +++ b/sdk/constructive-cli/src/compute/orm/models/functionGraphObject.ts @@ -162,7 +162,7 @@ export class FunctionGraphObjectModel { S, { id: string; - databaseId: string; + scopeId: string; }, FunctionGraphObjectPatch > & { @@ -185,7 +185,7 @@ export class FunctionGraphObjectModel { 'functionGraphObjectPatch', connectionFieldsMap, { - databaseId: args.where.databaseId, + scopeId: args.where.scopeId, } ); return new QueryBuilder({ @@ -201,7 +201,7 @@ export class FunctionGraphObjectModel { args: DeleteArgs< { id: string; - databaseId: string; + scopeId: string; }, S > & { @@ -218,7 +218,7 @@ export class FunctionGraphObjectModel { 'functionGraphObject', { id: args.where.id, - databaseId: args.where.databaseId, + scopeId: args.where.scopeId, }, 'DeleteFunctionGraphObjectInput', args.select, diff --git a/sdk/constructive-cli/src/compute/orm/models/functionGraphRef.ts b/sdk/constructive-cli/src/compute/orm/models/functionGraphRef.ts index 22d8769625..c4ee3889eb 100644 --- a/sdk/constructive-cli/src/compute/orm/models/functionGraphRef.ts +++ b/sdk/constructive-cli/src/compute/orm/models/functionGraphRef.ts @@ -176,7 +176,7 @@ export class FunctionGraphRefModel { S, { id: string; - databaseId: string; + scopeId: string; }, FunctionGraphRefPatch > & { @@ -199,7 +199,7 @@ export class FunctionGraphRefModel { 'functionGraphRefPatch', connectionFieldsMap, { - databaseId: args.where.databaseId, + scopeId: args.where.scopeId, } ); return new QueryBuilder({ @@ -215,7 +215,7 @@ export class FunctionGraphRefModel { args: DeleteArgs< { id: string; - databaseId: string; + scopeId: string; }, S > & { @@ -232,7 +232,7 @@ export class FunctionGraphRefModel { 'functionGraphRef', { id: args.where.id, - databaseId: args.where.databaseId, + scopeId: args.where.scopeId, }, 'DeleteFunctionGraphRefInput', args.select, diff --git a/sdk/constructive-cli/src/compute/orm/models/index.ts b/sdk/constructive-cli/src/compute/orm/models/index.ts index cce3b40556..f081e66007 100644 --- a/sdk/constructive-cli/src/compute/orm/models/index.ts +++ b/sdk/constructive-cli/src/compute/orm/models/index.ts @@ -3,25 +3,47 @@ * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ +export { InfraGetAllRecordModel } from './infraGetAllRecord'; export { GetAllRecordModel } from './getAllRecord'; +export { InfraRefModel } from './infraRef'; +export { InfraStoreModel } from './infraStore'; export { FunctionApiBindingModel } from './functionApiBinding'; -export { FunctionDeploymentModel } from './functionDeployment'; -export { ResourceModel } from './resource'; export { FunctionGraphRefModel } from './functionGraphRef'; export { FunctionGraphStoreModel } from './functionGraphStore'; +export { PlatformFunctionApiBindingModel } from './platformFunctionApiBinding'; +export { PlatformResourcesRequirementsStateModel } from './platformResourcesRequirementsState'; +export { ResourcesRequirementsStateModel } from './resourcesRequirementsState'; +export { PlatformResourceStatusCheckModel } from './platformResourceStatusCheck'; +export { PlatformFunctionDeploymentModel } from './platformFunctionDeployment'; +export { PlatformResourceModel } from './platformResource'; +export { PlatformResourceDefinitionModel } from './platformResourceDefinition'; +export { InfraObjectModel } from './infraObject'; export { FunctionGraphObjectModel } from './functionGraphObject'; +export { PlatformFunctionDeploymentEventModel } from './platformFunctionDeploymentEvent'; +export { PlatformResourceEventModel } from './platformResourceEvent'; +export { ResourceStatusCheckModel } from './resourceStatusCheck'; +export { FunctionDeploymentModel } from './functionDeployment'; +export { ResourceModel } from './resource'; +export { ResourceDefinitionModel } from './resourceDefinition'; export { FunctionDeploymentEventModel } from './functionDeploymentEvent'; -export { OrgFunctionExecutionLogModel } from './orgFunctionExecutionLog'; +export { PlatformFunctionExecutionLogModel } from './platformFunctionExecutionLog'; export { ResourceEventModel } from './resourceEvent'; export { FunctionGraphExecutionOutputModel } from './functionGraphExecutionOutput'; +export { InfraCommitModel } from './infraCommit'; export { FunctionGraphCommitModel } from './functionGraphCommit'; -export { SecretDefinitionModel } from './secretDefinition'; export { FunctionExecutionLogModel } from './functionExecutionLog'; +export { PlatformResourcesResolvedRequirementModel } from './platformResourcesResolvedRequirement'; +export { ResourcesResolvedRequirementModel } from './resourcesResolvedRequirement'; +export { DbPresetModel } from './dbPreset'; +export { PlatformNamespaceModel } from './platformNamespace'; export { FunctionGraphModel } from './functionGraph'; export { FunctionGraphExecutionNodeStateModel } from './functionGraphExecutionNodeState'; -export { PlatformNamespaceModel } from './platformNamespace'; -export { OrgFunctionInvocationModel } from './orgFunctionInvocation'; +export { NamespaceModel } from './namespace'; +export { PlatformFunctionInvocationModel } from './platformFunctionInvocation'; export { FunctionInvocationModel } from './functionInvocation'; export { PlatformNamespaceEventModel } from './platformNamespaceEvent'; +export { IntegrationProviderModel } from './integrationProvider'; +export { NamespaceEventModel } from './namespaceEvent'; export { FunctionGraphExecutionModel } from './functionGraphExecution'; +export { PlatformFunctionDefinitionModel } from './platformFunctionDefinition'; export { FunctionDefinitionModel } from './functionDefinition'; diff --git a/sdk/constructive-cli/src/compute/orm/models/infraCommit.ts b/sdk/constructive-cli/src/compute/orm/models/infraCommit.ts new file mode 100644 index 0000000000..410e937a90 --- /dev/null +++ b/sdk/constructive-cli/src/compute/orm/models/infraCommit.ts @@ -0,0 +1,250 @@ +/** + * InfraCommit model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + InfraCommit, + InfraCommitWithRelations, + InfraCommitSelect, + InfraCommitFilter, + InfraCommitOrderBy, + CreateInfraCommitInput, + UpdateInfraCommitInput, + InfraCommitPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class InfraCommitModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + infraCommits: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'InfraCommit', + 'infraCommits', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'InfraCommitFilter', + 'InfraCommitOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'InfraCommit', + fieldName: 'infraCommits', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + infraCommit: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'InfraCommit', + 'infraCommits', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'InfraCommitFilter', + 'InfraCommitOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'InfraCommit', + fieldName: 'infraCommit', + document, + variables, + transform: (data: { + infraCommits?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + infraCommit: data.infraCommits?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + infraCommit: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'InfraCommit', + 'infraCommits', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'InfraCommitFilter', + 'InfraCommitOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'InfraCommit', + fieldName: 'infraCommit', + document, + variables, + transform: (data: { + infraCommits?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + infraCommit: data.infraCommits?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createInfraCommit: { + infraCommit: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'InfraCommit', + 'createInfraCommit', + 'infraCommit', + args.select, + args.data, + 'CreateInfraCommitInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'InfraCommit', + fieldName: 'createInfraCommit', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + scopeId: string; + }, + InfraCommitPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateInfraCommit: { + infraCommit: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'InfraCommit', + 'updateInfraCommit', + 'infraCommit', + args.select, + args.where.id, + args.data, + 'UpdateInfraCommitInput', + 'id', + 'infraCommitPatch', + connectionFieldsMap, + { + scopeId: args.where.scopeId, + } + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'InfraCommit', + fieldName: 'updateInfraCommit', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + scopeId: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteInfraCommit: { + infraCommit: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'InfraCommit', + 'deleteInfraCommit', + 'infraCommit', + { + id: args.where.id, + scopeId: args.where.scopeId, + }, + 'DeleteInfraCommitInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'InfraCommit', + fieldName: 'deleteInfraCommit', + document, + variables, + }); + } +} diff --git a/sdk/constructive-cli/src/compute/orm/models/infraGetAllRecord.ts b/sdk/constructive-cli/src/compute/orm/models/infraGetAllRecord.ts new file mode 100644 index 0000000000..ebe2f8c1f2 --- /dev/null +++ b/sdk/constructive-cli/src/compute/orm/models/infraGetAllRecord.ts @@ -0,0 +1,134 @@ +/** + * InfraGetAllRecord model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + InfraGetAllRecord, + InfraGetAllRecordWithRelations, + InfraGetAllRecordSelect, + InfraGetAllRecordFilter, + InfraGetAllRecordsOrderBy, + CreateInfraGetAllRecordInput, + UpdateInfraGetAllRecordInput, + InfraGetAllRecordPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class InfraGetAllRecordModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + infraGetAll: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'InfraGetAllRecord', + 'infraGetAll', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'InfraGetAllRecordFilter', + 'InfraGetAllRecordsOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'InfraGetAllRecord', + fieldName: 'infraGetAll', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + infraGetAllRecord: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'InfraGetAllRecord', + 'infraGetAll', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'InfraGetAllRecordFilter', + 'InfraGetAllRecordsOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'InfraGetAllRecord', + fieldName: 'infraGetAllRecord', + document, + variables, + transform: (data: { + infraGetAll?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + infraGetAllRecord: data.infraGetAll?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createInfraGetAllRecord: { + infraGetAllRecord: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'InfraGetAllRecord', + 'createInfraGetAllRecord', + 'infraGetAllRecord', + args.select, + args.data, + 'CreateInfraGetAllRecordInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'InfraGetAllRecord', + fieldName: 'createInfraGetAllRecord', + document, + variables, + }); + } +} diff --git a/sdk/constructive-cli/src/compute/orm/models/infraObject.ts b/sdk/constructive-cli/src/compute/orm/models/infraObject.ts new file mode 100644 index 0000000000..e097c8b271 --- /dev/null +++ b/sdk/constructive-cli/src/compute/orm/models/infraObject.ts @@ -0,0 +1,236 @@ +/** + * InfraObject model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + InfraObject, + InfraObjectWithRelations, + InfraObjectSelect, + InfraObjectFilter, + InfraObjectOrderBy, + CreateInfraObjectInput, + UpdateInfraObjectInput, + InfraObjectPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class InfraObjectModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + infraObjects: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'InfraObject', + 'infraObjects', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'InfraObjectFilter', + 'InfraObjectOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'InfraObject', + fieldName: 'infraObjects', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + infraObject: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'InfraObject', + 'infraObjects', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'InfraObjectFilter', + 'InfraObjectOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'InfraObject', + fieldName: 'infraObject', + document, + variables, + transform: (data: { + infraObjects?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + infraObject: data.infraObjects?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + infraObject: InferSelectResult | null; + }> { + const { document, variables } = buildFindOneDocument( + 'InfraObject', + 'infraGetNodeAtPath', + args.id, + args.select, + 'id', + 'UUID!', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'InfraObject', + fieldName: 'infraObject', + document, + variables, + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createInfraObject: { + infraObject: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'InfraObject', + 'createInfraObject', + 'infraObject', + args.select, + args.data, + 'CreateInfraObjectInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'InfraObject', + fieldName: 'createInfraObject', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + scopeId: string; + }, + InfraObjectPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateInfraObject: { + infraObject: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'InfraObject', + 'updateInfraObject', + 'infraObject', + args.select, + args.where.id, + args.data, + 'UpdateInfraObjectInput', + 'id', + 'infraObjectPatch', + connectionFieldsMap, + { + scopeId: args.where.scopeId, + } + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'InfraObject', + fieldName: 'updateInfraObject', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + scopeId: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteInfraObject: { + infraObject: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'InfraObject', + 'deleteInfraObject', + 'infraObject', + { + id: args.where.id, + scopeId: args.where.scopeId, + }, + 'DeleteInfraObjectInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'InfraObject', + fieldName: 'deleteInfraObject', + document, + variables, + }); + } +} diff --git a/sdk/constructive-cli/src/compute/orm/models/infraRef.ts b/sdk/constructive-cli/src/compute/orm/models/infraRef.ts new file mode 100644 index 0000000000..3c474d3186 --- /dev/null +++ b/sdk/constructive-cli/src/compute/orm/models/infraRef.ts @@ -0,0 +1,250 @@ +/** + * InfraRef model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + InfraRef, + InfraRefWithRelations, + InfraRefSelect, + InfraRefFilter, + InfraRefOrderBy, + CreateInfraRefInput, + UpdateInfraRefInput, + InfraRefPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class InfraRefModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + infraRefs: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'InfraRef', + 'infraRefs', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'InfraRefFilter', + 'InfraRefOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'InfraRef', + fieldName: 'infraRefs', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + infraRef: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'InfraRef', + 'infraRefs', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'InfraRefFilter', + 'InfraRefOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'InfraRef', + fieldName: 'infraRef', + document, + variables, + transform: (data: { + infraRefs?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + infraRef: data.infraRefs?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + infraRef: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'InfraRef', + 'infraRefs', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'InfraRefFilter', + 'InfraRefOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'InfraRef', + fieldName: 'infraRef', + document, + variables, + transform: (data: { + infraRefs?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + infraRef: data.infraRefs?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createInfraRef: { + infraRef: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'InfraRef', + 'createInfraRef', + 'infraRef', + args.select, + args.data, + 'CreateInfraRefInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'InfraRef', + fieldName: 'createInfraRef', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + scopeId: string; + }, + InfraRefPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateInfraRef: { + infraRef: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'InfraRef', + 'updateInfraRef', + 'infraRef', + args.select, + args.where.id, + args.data, + 'UpdateInfraRefInput', + 'id', + 'infraRefPatch', + connectionFieldsMap, + { + scopeId: args.where.scopeId, + } + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'InfraRef', + fieldName: 'updateInfraRef', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + scopeId: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteInfraRef: { + infraRef: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'InfraRef', + 'deleteInfraRef', + 'infraRef', + { + id: args.where.id, + scopeId: args.where.scopeId, + }, + 'DeleteInfraRefInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'InfraRef', + fieldName: 'deleteInfraRef', + document, + variables, + }); + } +} diff --git a/sdk/constructive-cli/src/compute/orm/models/infraStore.ts b/sdk/constructive-cli/src/compute/orm/models/infraStore.ts new file mode 100644 index 0000000000..a0ed0dbe7b --- /dev/null +++ b/sdk/constructive-cli/src/compute/orm/models/infraStore.ts @@ -0,0 +1,245 @@ +/** + * InfraStore model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + InfraStore, + InfraStoreWithRelations, + InfraStoreSelect, + InfraStoreFilter, + InfraStoreOrderBy, + CreateInfraStoreInput, + UpdateInfraStoreInput, + InfraStorePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class InfraStoreModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + infraStores: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'InfraStore', + 'infraStores', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'InfraStoreFilter', + 'InfraStoreOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'InfraStore', + fieldName: 'infraStores', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + infraStore: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'InfraStore', + 'infraStores', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'InfraStoreFilter', + 'InfraStoreOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'InfraStore', + fieldName: 'infraStore', + document, + variables, + transform: (data: { + infraStores?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + infraStore: data.infraStores?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + infraStore: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'InfraStore', + 'infraStores', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'InfraStoreFilter', + 'InfraStoreOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'InfraStore', + fieldName: 'infraStore', + document, + variables, + transform: (data: { + infraStores?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + infraStore: data.infraStores?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createInfraStore: { + infraStore: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'InfraStore', + 'createInfraStore', + 'infraStore', + args.select, + args.data, + 'CreateInfraStoreInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'InfraStore', + fieldName: 'createInfraStore', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + InfraStorePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateInfraStore: { + infraStore: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'InfraStore', + 'updateInfraStore', + 'infraStore', + args.select, + args.where.id, + args.data, + 'UpdateInfraStoreInput', + 'id', + 'infraStorePatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'InfraStore', + fieldName: 'updateInfraStore', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteInfraStore: { + infraStore: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'InfraStore', + 'deleteInfraStore', + 'infraStore', + { + id: args.where.id, + }, + 'DeleteInfraStoreInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'InfraStore', + fieldName: 'deleteInfraStore', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/modules/orm/models/configSecretsModule.ts b/sdk/constructive-cli/src/compute/orm/models/integrationProvider.ts similarity index 50% rename from sdk/constructive-react/src/modules/orm/models/configSecretsModule.ts rename to sdk/constructive-cli/src/compute/orm/models/integrationProvider.ts index 59a6edd5cd..c79ad9375c 100644 --- a/sdk/constructive-react/src/modules/orm/models/configSecretsModule.ts +++ b/sdk/constructive-cli/src/compute/orm/models/integrationProvider.ts @@ -1,5 +1,5 @@ /** - * ConfigSecretsModule model for ORM client + * IntegrationProvider model for ORM client * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -24,28 +24,28 @@ import type { StrictSelect, } from '../select-types'; import type { - ConfigSecretsModule, - ConfigSecretsModuleWithRelations, - ConfigSecretsModuleSelect, - ConfigSecretsModuleFilter, - ConfigSecretsModuleOrderBy, - CreateConfigSecretsModuleInput, - UpdateConfigSecretsModuleInput, - ConfigSecretsModulePatch, + IntegrationProvider, + IntegrationProviderWithRelations, + IntegrationProviderSelect, + IntegrationProviderFilter, + IntegrationProviderOrderBy, + CreateIntegrationProviderInput, + UpdateIntegrationProviderInput, + IntegrationProviderPatch, } from '../input-types'; import { connectionFieldsMap } from '../input-types'; -export class ConfigSecretsModuleModel { +export class IntegrationProviderModel { constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { + findMany( + args: FindManyArgs & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - configSecretsModules: ConnectionResult>; + integrationProviders: ConnectionResult>; }> { const { document, variables } = buildFindManyDocument( - 'ConfigSecretsModule', - 'configSecretsModules', + 'IntegrationProvider', + 'integrationProviders', args.select, { where: args?.where, @@ -56,65 +56,65 @@ export class ConfigSecretsModuleModel { before: args?.before, offset: args?.offset, }, - 'ConfigSecretsModuleFilter', - 'ConfigSecretsModuleOrderBy', + 'IntegrationProviderFilter', + 'IntegrationProviderOrderBy', connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'query', - operationName: 'ConfigSecretsModule', - fieldName: 'configSecretsModules', + operationName: 'IntegrationProvider', + fieldName: 'integrationProviders', document, variables, }); } - findFirst( - args: FindFirstArgs & { + findFirst( + args: FindFirstArgs & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - configSecretsModule: InferSelectResult | null; + integrationProvider: InferSelectResult | null; }> { const { document, variables } = buildFindFirstDocument( - 'ConfigSecretsModule', - 'configSecretsModules', + 'IntegrationProvider', + 'integrationProviders', args.select, { where: args?.where, orderBy: args?.orderBy as string[] | undefined, }, - 'ConfigSecretsModuleFilter', - 'ConfigSecretsModuleOrderBy', + 'IntegrationProviderFilter', + 'IntegrationProviderOrderBy', connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'query', - operationName: 'ConfigSecretsModule', - fieldName: 'configSecretsModule', + operationName: 'IntegrationProvider', + fieldName: 'integrationProvider', document, variables, transform: (data: { - configSecretsModules?: { - nodes?: InferSelectResult[]; + integrationProviders?: { + nodes?: InferSelectResult[]; }; }) => ({ - configSecretsModule: data.configSecretsModules?.nodes?.[0] ?? null, + integrationProvider: data.integrationProviders?.nodes?.[0] ?? null, }), }); } - findOne( + findOne( args: { id: string; select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - configSecretsModule: InferSelectResult | null; + integrationProvider: InferSelectResult | null; }> { const { document, variables } = buildFindManyDocument( - 'ConfigSecretsModule', - 'configSecretsModules', + 'IntegrationProvider', + 'integrationProviders', args.select, { where: { @@ -124,91 +124,91 @@ export class ConfigSecretsModuleModel { }, first: 1, }, - 'ConfigSecretsModuleFilter', - 'ConfigSecretsModuleOrderBy', + 'IntegrationProviderFilter', + 'IntegrationProviderOrderBy', connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'query', - operationName: 'ConfigSecretsModule', - fieldName: 'configSecretsModule', + operationName: 'IntegrationProvider', + fieldName: 'integrationProvider', document, variables, transform: (data: { - configSecretsModules?: { - nodes?: InferSelectResult[]; + integrationProviders?: { + nodes?: InferSelectResult[]; }; }) => ({ - configSecretsModule: data.configSecretsModules?.nodes?.[0] ?? null, + integrationProvider: data.integrationProviders?.nodes?.[0] ?? null, }), }); } - create( - args: CreateArgs & { + create( + args: CreateArgs & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - createConfigSecretsModule: { - configSecretsModule: InferSelectResult; + createIntegrationProvider: { + integrationProvider: InferSelectResult; }; }> { const { document, variables } = buildCreateDocument( - 'ConfigSecretsModule', - 'createConfigSecretsModule', - 'configSecretsModule', + 'IntegrationProvider', + 'createIntegrationProvider', + 'integrationProvider', args.select, args.data, - 'CreateConfigSecretsModuleInput', + 'CreateIntegrationProviderInput', connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'mutation', - operationName: 'ConfigSecretsModule', - fieldName: 'createConfigSecretsModule', + operationName: 'IntegrationProvider', + fieldName: 'createIntegrationProvider', document, variables, }); } - update( + update( args: UpdateArgs< S, { id: string; }, - ConfigSecretsModulePatch + IntegrationProviderPatch > & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - updateConfigSecretsModule: { - configSecretsModule: InferSelectResult; + updateIntegrationProvider: { + integrationProvider: InferSelectResult; }; }> { const { document, variables } = buildUpdateByPkDocument( - 'ConfigSecretsModule', - 'updateConfigSecretsModule', - 'configSecretsModule', + 'IntegrationProvider', + 'updateIntegrationProvider', + 'integrationProvider', args.select, args.where.id, args.data, - 'UpdateConfigSecretsModuleInput', + 'UpdateIntegrationProviderInput', 'id', - 'configSecretsModulePatch', + 'integrationProviderPatch', connectionFieldsMap, undefined ); return new QueryBuilder({ client: this.client, operation: 'mutation', - operationName: 'ConfigSecretsModule', - fieldName: 'updateConfigSecretsModule', + operationName: 'IntegrationProvider', + fieldName: 'updateIntegrationProvider', document, variables, }); } - delete( + delete( args: DeleteArgs< { id: string; @@ -216,28 +216,28 @@ export class ConfigSecretsModuleModel { S > & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - deleteConfigSecretsModule: { - configSecretsModule: InferSelectResult; + deleteIntegrationProvider: { + integrationProvider: InferSelectResult; }; }> { const { document, variables } = buildDeleteByPkDocument( - 'ConfigSecretsModule', - 'deleteConfigSecretsModule', - 'configSecretsModule', + 'IntegrationProvider', + 'deleteIntegrationProvider', + 'integrationProvider', { id: args.where.id, }, - 'DeleteConfigSecretsModuleInput', + 'DeleteIntegrationProviderInput', args.select, connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'mutation', - operationName: 'ConfigSecretsModule', - fieldName: 'deleteConfigSecretsModule', + operationName: 'IntegrationProvider', + fieldName: 'deleteIntegrationProvider', document, variables, }); diff --git a/sdk/constructive-cli/src/compute/orm/models/namespace.ts b/sdk/constructive-cli/src/compute/orm/models/namespace.ts new file mode 100644 index 0000000000..4e300068cd --- /dev/null +++ b/sdk/constructive-cli/src/compute/orm/models/namespace.ts @@ -0,0 +1,245 @@ +/** + * Namespace model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + Namespace, + NamespaceWithRelations, + NamespaceSelect, + NamespaceFilter, + NamespaceOrderBy, + CreateNamespaceInput, + UpdateNamespaceInput, + NamespacePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class NamespaceModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + namespaces: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'Namespace', + 'namespaces', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'NamespaceFilter', + 'NamespaceOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'Namespace', + fieldName: 'namespaces', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + namespace: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'Namespace', + 'namespaces', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'NamespaceFilter', + 'NamespaceOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'Namespace', + fieldName: 'namespace', + document, + variables, + transform: (data: { + namespaces?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + namespace: data.namespaces?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + namespace: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'Namespace', + 'namespaces', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'NamespaceFilter', + 'NamespaceOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'Namespace', + fieldName: 'namespace', + document, + variables, + transform: (data: { + namespaces?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + namespace: data.namespaces?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createNamespace: { + namespace: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'Namespace', + 'createNamespace', + 'namespace', + args.select, + args.data, + 'CreateNamespaceInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'Namespace', + fieldName: 'createNamespace', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + NamespacePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateNamespace: { + namespace: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'Namespace', + 'updateNamespace', + 'namespace', + args.select, + args.where.id, + args.data, + 'UpdateNamespaceInput', + 'id', + 'namespacePatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'Namespace', + fieldName: 'updateNamespace', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteNamespace: { + namespace: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'Namespace', + 'deleteNamespace', + 'namespace', + { + id: args.where.id, + }, + 'DeleteNamespaceInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'Namespace', + fieldName: 'deleteNamespace', + document, + variables, + }); + } +} diff --git a/sdk/constructive-cli/src/compute/orm/models/namespaceEvent.ts b/sdk/constructive-cli/src/compute/orm/models/namespaceEvent.ts new file mode 100644 index 0000000000..494442c263 --- /dev/null +++ b/sdk/constructive-cli/src/compute/orm/models/namespaceEvent.ts @@ -0,0 +1,250 @@ +/** + * NamespaceEvent model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + NamespaceEvent, + NamespaceEventWithRelations, + NamespaceEventSelect, + NamespaceEventFilter, + NamespaceEventOrderBy, + CreateNamespaceEventInput, + UpdateNamespaceEventInput, + NamespaceEventPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class NamespaceEventModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + namespaceEvents: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'NamespaceEvent', + 'namespaceEvents', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'NamespaceEventFilter', + 'NamespaceEventOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'NamespaceEvent', + fieldName: 'namespaceEvents', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + namespaceEvent: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'NamespaceEvent', + 'namespaceEvents', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'NamespaceEventFilter', + 'NamespaceEventOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'NamespaceEvent', + fieldName: 'namespaceEvent', + document, + variables, + transform: (data: { + namespaceEvents?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + namespaceEvent: data.namespaceEvents?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + namespaceEvent: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'NamespaceEvent', + 'namespaceEvents', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'NamespaceEventFilter', + 'NamespaceEventOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'NamespaceEvent', + fieldName: 'namespaceEvent', + document, + variables, + transform: (data: { + namespaceEvents?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + namespaceEvent: data.namespaceEvents?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createNamespaceEvent: { + namespaceEvent: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'NamespaceEvent', + 'createNamespaceEvent', + 'namespaceEvent', + args.select, + args.data, + 'CreateNamespaceEventInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'NamespaceEvent', + fieldName: 'createNamespaceEvent', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + createdAt: string; + }, + NamespaceEventPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateNamespaceEvent: { + namespaceEvent: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'NamespaceEvent', + 'updateNamespaceEvent', + 'namespaceEvent', + args.select, + args.where.id, + args.data, + 'UpdateNamespaceEventInput', + 'id', + 'namespaceEventPatch', + connectionFieldsMap, + { + createdAt: args.where.createdAt, + } + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'NamespaceEvent', + fieldName: 'updateNamespaceEvent', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + createdAt: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteNamespaceEvent: { + namespaceEvent: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'NamespaceEvent', + 'deleteNamespaceEvent', + 'namespaceEvent', + { + id: args.where.id, + createdAt: args.where.createdAt, + }, + 'DeleteNamespaceEventInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'NamespaceEvent', + fieldName: 'deleteNamespaceEvent', + document, + variables, + }); + } +} diff --git a/sdk/constructive-cli/src/compute/orm/models/orgFunctionExecutionLog.ts b/sdk/constructive-cli/src/compute/orm/models/orgFunctionExecutionLog.ts deleted file mode 100644 index 95b37a939d..0000000000 --- a/sdk/constructive-cli/src/compute/orm/models/orgFunctionExecutionLog.ts +++ /dev/null @@ -1,252 +0,0 @@ -/** - * OrgFunctionExecutionLog model for ORM client - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { OrmClient } from '../client'; -import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, - buildCreateDocument, - buildUpdateByPkDocument, - buildDeleteByPkDocument, -} from '../query-builder'; -import type { - ConnectionResult, - FindManyArgs, - FindFirstArgs, - CreateArgs, - UpdateArgs, - DeleteArgs, - InferSelectResult, - StrictSelect, -} from '../select-types'; -import type { - OrgFunctionExecutionLog, - OrgFunctionExecutionLogWithRelations, - OrgFunctionExecutionLogSelect, - OrgFunctionExecutionLogFilter, - OrgFunctionExecutionLogOrderBy, - CreateOrgFunctionExecutionLogInput, - UpdateOrgFunctionExecutionLogInput, - OrgFunctionExecutionLogPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class OrgFunctionExecutionLogModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgFunctionExecutionLogs: ConnectionResult< - InferSelectResult - >; - }> { - const { document, variables } = buildFindManyDocument( - 'OrgFunctionExecutionLog', - 'orgFunctionExecutionLogs', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - first: args?.first, - last: args?.last, - after: args?.after, - before: args?.before, - offset: args?.offset, - }, - 'OrgFunctionExecutionLogFilter', - 'OrgFunctionExecutionLogOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgFunctionExecutionLog', - fieldName: 'orgFunctionExecutionLogs', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgFunctionExecutionLog: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'OrgFunctionExecutionLog', - 'orgFunctionExecutionLogs', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'OrgFunctionExecutionLogFilter', - 'OrgFunctionExecutionLogOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgFunctionExecutionLog', - fieldName: 'orgFunctionExecutionLog', - document, - variables, - transform: (data: { - orgFunctionExecutionLogs?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - orgFunctionExecutionLog: data.orgFunctionExecutionLogs?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgFunctionExecutionLog: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'OrgFunctionExecutionLog', - 'orgFunctionExecutionLogs', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'OrgFunctionExecutionLogFilter', - 'OrgFunctionExecutionLogOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgFunctionExecutionLog', - fieldName: 'orgFunctionExecutionLog', - document, - variables, - transform: (data: { - orgFunctionExecutionLogs?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - orgFunctionExecutionLog: data.orgFunctionExecutionLogs?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createOrgFunctionExecutionLog: { - orgFunctionExecutionLog: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'OrgFunctionExecutionLog', - 'createOrgFunctionExecutionLog', - 'orgFunctionExecutionLog', - args.select, - args.data, - 'CreateOrgFunctionExecutionLogInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgFunctionExecutionLog', - fieldName: 'createOrgFunctionExecutionLog', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - createdAt: string; - }, - OrgFunctionExecutionLogPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateOrgFunctionExecutionLog: { - orgFunctionExecutionLog: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'OrgFunctionExecutionLog', - 'updateOrgFunctionExecutionLog', - 'orgFunctionExecutionLog', - args.select, - args.where.id, - args.data, - 'UpdateOrgFunctionExecutionLogInput', - 'id', - 'orgFunctionExecutionLogPatch', - connectionFieldsMap, - { - createdAt: args.where.createdAt, - } - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgFunctionExecutionLog', - fieldName: 'updateOrgFunctionExecutionLog', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - createdAt: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteOrgFunctionExecutionLog: { - orgFunctionExecutionLog: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'OrgFunctionExecutionLog', - 'deleteOrgFunctionExecutionLog', - 'orgFunctionExecutionLog', - { - id: args.where.id, - createdAt: args.where.createdAt, - }, - 'DeleteOrgFunctionExecutionLogInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgFunctionExecutionLog', - fieldName: 'deleteOrgFunctionExecutionLog', - document, - variables, - }); - } -} diff --git a/sdk/constructive-cli/src/compute/orm/models/orgFunctionInvocation.ts b/sdk/constructive-cli/src/compute/orm/models/orgFunctionInvocation.ts deleted file mode 100644 index 3f3eaab557..0000000000 --- a/sdk/constructive-cli/src/compute/orm/models/orgFunctionInvocation.ts +++ /dev/null @@ -1,252 +0,0 @@ -/** - * OrgFunctionInvocation model for ORM client - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { OrmClient } from '../client'; -import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, - buildCreateDocument, - buildUpdateByPkDocument, - buildDeleteByPkDocument, -} from '../query-builder'; -import type { - ConnectionResult, - FindManyArgs, - FindFirstArgs, - CreateArgs, - UpdateArgs, - DeleteArgs, - InferSelectResult, - StrictSelect, -} from '../select-types'; -import type { - OrgFunctionInvocation, - OrgFunctionInvocationWithRelations, - OrgFunctionInvocationSelect, - OrgFunctionInvocationFilter, - OrgFunctionInvocationOrderBy, - CreateOrgFunctionInvocationInput, - UpdateOrgFunctionInvocationInput, - OrgFunctionInvocationPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class OrgFunctionInvocationModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgFunctionInvocations: ConnectionResult< - InferSelectResult - >; - }> { - const { document, variables } = buildFindManyDocument( - 'OrgFunctionInvocation', - 'orgFunctionInvocations', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - first: args?.first, - last: args?.last, - after: args?.after, - before: args?.before, - offset: args?.offset, - }, - 'OrgFunctionInvocationFilter', - 'OrgFunctionInvocationOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgFunctionInvocation', - fieldName: 'orgFunctionInvocations', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgFunctionInvocation: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'OrgFunctionInvocation', - 'orgFunctionInvocations', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'OrgFunctionInvocationFilter', - 'OrgFunctionInvocationOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgFunctionInvocation', - fieldName: 'orgFunctionInvocation', - document, - variables, - transform: (data: { - orgFunctionInvocations?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - orgFunctionInvocation: data.orgFunctionInvocations?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgFunctionInvocation: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'OrgFunctionInvocation', - 'orgFunctionInvocations', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'OrgFunctionInvocationFilter', - 'OrgFunctionInvocationOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgFunctionInvocation', - fieldName: 'orgFunctionInvocation', - document, - variables, - transform: (data: { - orgFunctionInvocations?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - orgFunctionInvocation: data.orgFunctionInvocations?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createOrgFunctionInvocation: { - orgFunctionInvocation: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'OrgFunctionInvocation', - 'createOrgFunctionInvocation', - 'orgFunctionInvocation', - args.select, - args.data, - 'CreateOrgFunctionInvocationInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgFunctionInvocation', - fieldName: 'createOrgFunctionInvocation', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - createdAt: string; - }, - OrgFunctionInvocationPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateOrgFunctionInvocation: { - orgFunctionInvocation: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'OrgFunctionInvocation', - 'updateOrgFunctionInvocation', - 'orgFunctionInvocation', - args.select, - args.where.id, - args.data, - 'UpdateOrgFunctionInvocationInput', - 'id', - 'orgFunctionInvocationPatch', - connectionFieldsMap, - { - createdAt: args.where.createdAt, - } - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgFunctionInvocation', - fieldName: 'updateOrgFunctionInvocation', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - createdAt: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteOrgFunctionInvocation: { - orgFunctionInvocation: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'OrgFunctionInvocation', - 'deleteOrgFunctionInvocation', - 'orgFunctionInvocation', - { - id: args.where.id, - createdAt: args.where.createdAt, - }, - 'DeleteOrgFunctionInvocationInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgFunctionInvocation', - fieldName: 'deleteOrgFunctionInvocation', - document, - variables, - }); - } -} diff --git a/sdk/constructive-cli/src/compute/orm/models/platformFunctionApiBinding.ts b/sdk/constructive-cli/src/compute/orm/models/platformFunctionApiBinding.ts new file mode 100644 index 0000000000..c74d4423e8 --- /dev/null +++ b/sdk/constructive-cli/src/compute/orm/models/platformFunctionApiBinding.ts @@ -0,0 +1,253 @@ +/** + * PlatformFunctionApiBinding model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + PlatformFunctionApiBinding, + PlatformFunctionApiBindingWithRelations, + PlatformFunctionApiBindingSelect, + PlatformFunctionApiBindingFilter, + PlatformFunctionApiBindingOrderBy, + CreatePlatformFunctionApiBindingInput, + UpdatePlatformFunctionApiBindingInput, + PlatformFunctionApiBindingPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class PlatformFunctionApiBindingModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformFunctionApiBindings: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformFunctionApiBinding', + 'platformFunctionApiBindings', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'PlatformFunctionApiBindingFilter', + 'PlatformFunctionApiBindingOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformFunctionApiBinding', + fieldName: 'platformFunctionApiBindings', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformFunctionApiBinding: InferSelectResult< + PlatformFunctionApiBindingWithRelations, + S + > | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'PlatformFunctionApiBinding', + 'platformFunctionApiBindings', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'PlatformFunctionApiBindingFilter', + 'PlatformFunctionApiBindingOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformFunctionApiBinding', + fieldName: 'platformFunctionApiBinding', + document, + variables, + transform: (data: { + platformFunctionApiBindings?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformFunctionApiBinding: data.platformFunctionApiBindings?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformFunctionApiBinding: InferSelectResult< + PlatformFunctionApiBindingWithRelations, + S + > | null; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformFunctionApiBinding', + 'platformFunctionApiBindings', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'PlatformFunctionApiBindingFilter', + 'PlatformFunctionApiBindingOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformFunctionApiBinding', + fieldName: 'platformFunctionApiBinding', + document, + variables, + transform: (data: { + platformFunctionApiBindings?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformFunctionApiBinding: data.platformFunctionApiBindings?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createPlatformFunctionApiBinding: { + platformFunctionApiBinding: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'PlatformFunctionApiBinding', + 'createPlatformFunctionApiBinding', + 'platformFunctionApiBinding', + args.select, + args.data, + 'CreatePlatformFunctionApiBindingInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformFunctionApiBinding', + fieldName: 'createPlatformFunctionApiBinding', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + PlatformFunctionApiBindingPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updatePlatformFunctionApiBinding: { + platformFunctionApiBinding: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'PlatformFunctionApiBinding', + 'updatePlatformFunctionApiBinding', + 'platformFunctionApiBinding', + args.select, + args.where.id, + args.data, + 'UpdatePlatformFunctionApiBindingInput', + 'id', + 'platformFunctionApiBindingPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformFunctionApiBinding', + fieldName: 'updatePlatformFunctionApiBinding', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deletePlatformFunctionApiBinding: { + platformFunctionApiBinding: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'PlatformFunctionApiBinding', + 'deletePlatformFunctionApiBinding', + 'platformFunctionApiBinding', + { + id: args.where.id, + }, + 'DeletePlatformFunctionApiBindingInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformFunctionApiBinding', + fieldName: 'deletePlatformFunctionApiBinding', + document, + variables, + }); + } +} diff --git a/sdk/constructive-cli/src/compute/orm/models/platformFunctionDefinition.ts b/sdk/constructive-cli/src/compute/orm/models/platformFunctionDefinition.ts new file mode 100644 index 0000000000..7422743780 --- /dev/null +++ b/sdk/constructive-cli/src/compute/orm/models/platformFunctionDefinition.ts @@ -0,0 +1,253 @@ +/** + * PlatformFunctionDefinition model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + PlatformFunctionDefinition, + PlatformFunctionDefinitionWithRelations, + PlatformFunctionDefinitionSelect, + PlatformFunctionDefinitionFilter, + PlatformFunctionDefinitionOrderBy, + CreatePlatformFunctionDefinitionInput, + UpdatePlatformFunctionDefinitionInput, + PlatformFunctionDefinitionPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class PlatformFunctionDefinitionModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformFunctionDefinitions: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformFunctionDefinition', + 'platformFunctionDefinitions', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'PlatformFunctionDefinitionFilter', + 'PlatformFunctionDefinitionOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformFunctionDefinition', + fieldName: 'platformFunctionDefinitions', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformFunctionDefinition: InferSelectResult< + PlatformFunctionDefinitionWithRelations, + S + > | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'PlatformFunctionDefinition', + 'platformFunctionDefinitions', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'PlatformFunctionDefinitionFilter', + 'PlatformFunctionDefinitionOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformFunctionDefinition', + fieldName: 'platformFunctionDefinition', + document, + variables, + transform: (data: { + platformFunctionDefinitions?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformFunctionDefinition: data.platformFunctionDefinitions?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformFunctionDefinition: InferSelectResult< + PlatformFunctionDefinitionWithRelations, + S + > | null; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformFunctionDefinition', + 'platformFunctionDefinitions', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'PlatformFunctionDefinitionFilter', + 'PlatformFunctionDefinitionOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformFunctionDefinition', + fieldName: 'platformFunctionDefinition', + document, + variables, + transform: (data: { + platformFunctionDefinitions?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformFunctionDefinition: data.platformFunctionDefinitions?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createPlatformFunctionDefinition: { + platformFunctionDefinition: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'PlatformFunctionDefinition', + 'createPlatformFunctionDefinition', + 'platformFunctionDefinition', + args.select, + args.data, + 'CreatePlatformFunctionDefinitionInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformFunctionDefinition', + fieldName: 'createPlatformFunctionDefinition', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + PlatformFunctionDefinitionPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updatePlatformFunctionDefinition: { + platformFunctionDefinition: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'PlatformFunctionDefinition', + 'updatePlatformFunctionDefinition', + 'platformFunctionDefinition', + args.select, + args.where.id, + args.data, + 'UpdatePlatformFunctionDefinitionInput', + 'id', + 'platformFunctionDefinitionPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformFunctionDefinition', + fieldName: 'updatePlatformFunctionDefinition', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deletePlatformFunctionDefinition: { + platformFunctionDefinition: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'PlatformFunctionDefinition', + 'deletePlatformFunctionDefinition', + 'platformFunctionDefinition', + { + id: args.where.id, + }, + 'DeletePlatformFunctionDefinitionInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformFunctionDefinition', + fieldName: 'deletePlatformFunctionDefinition', + document, + variables, + }); + } +} diff --git a/sdk/constructive-cli/src/compute/orm/models/platformFunctionDeployment.ts b/sdk/constructive-cli/src/compute/orm/models/platformFunctionDeployment.ts new file mode 100644 index 0000000000..6331c14b14 --- /dev/null +++ b/sdk/constructive-cli/src/compute/orm/models/platformFunctionDeployment.ts @@ -0,0 +1,253 @@ +/** + * PlatformFunctionDeployment model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + PlatformFunctionDeployment, + PlatformFunctionDeploymentWithRelations, + PlatformFunctionDeploymentSelect, + PlatformFunctionDeploymentFilter, + PlatformFunctionDeploymentOrderBy, + CreatePlatformFunctionDeploymentInput, + UpdatePlatformFunctionDeploymentInput, + PlatformFunctionDeploymentPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class PlatformFunctionDeploymentModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformFunctionDeployments: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformFunctionDeployment', + 'platformFunctionDeployments', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'PlatformFunctionDeploymentFilter', + 'PlatformFunctionDeploymentOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformFunctionDeployment', + fieldName: 'platformFunctionDeployments', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformFunctionDeployment: InferSelectResult< + PlatformFunctionDeploymentWithRelations, + S + > | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'PlatformFunctionDeployment', + 'platformFunctionDeployments', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'PlatformFunctionDeploymentFilter', + 'PlatformFunctionDeploymentOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformFunctionDeployment', + fieldName: 'platformFunctionDeployment', + document, + variables, + transform: (data: { + platformFunctionDeployments?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformFunctionDeployment: data.platformFunctionDeployments?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformFunctionDeployment: InferSelectResult< + PlatformFunctionDeploymentWithRelations, + S + > | null; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformFunctionDeployment', + 'platformFunctionDeployments', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'PlatformFunctionDeploymentFilter', + 'PlatformFunctionDeploymentOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformFunctionDeployment', + fieldName: 'platformFunctionDeployment', + document, + variables, + transform: (data: { + platformFunctionDeployments?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformFunctionDeployment: data.platformFunctionDeployments?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createPlatformFunctionDeployment: { + platformFunctionDeployment: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'PlatformFunctionDeployment', + 'createPlatformFunctionDeployment', + 'platformFunctionDeployment', + args.select, + args.data, + 'CreatePlatformFunctionDeploymentInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformFunctionDeployment', + fieldName: 'createPlatformFunctionDeployment', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + PlatformFunctionDeploymentPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updatePlatformFunctionDeployment: { + platformFunctionDeployment: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'PlatformFunctionDeployment', + 'updatePlatformFunctionDeployment', + 'platformFunctionDeployment', + args.select, + args.where.id, + args.data, + 'UpdatePlatformFunctionDeploymentInput', + 'id', + 'platformFunctionDeploymentPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformFunctionDeployment', + fieldName: 'updatePlatformFunctionDeployment', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deletePlatformFunctionDeployment: { + platformFunctionDeployment: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'PlatformFunctionDeployment', + 'deletePlatformFunctionDeployment', + 'platformFunctionDeployment', + { + id: args.where.id, + }, + 'DeletePlatformFunctionDeploymentInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformFunctionDeployment', + fieldName: 'deletePlatformFunctionDeployment', + document, + variables, + }); + } +} diff --git a/sdk/constructive-cli/src/compute/orm/models/platformFunctionDeploymentEvent.ts b/sdk/constructive-cli/src/compute/orm/models/platformFunctionDeploymentEvent.ts new file mode 100644 index 0000000000..9e28f1c2c4 --- /dev/null +++ b/sdk/constructive-cli/src/compute/orm/models/platformFunctionDeploymentEvent.ts @@ -0,0 +1,278 @@ +/** + * PlatformFunctionDeploymentEvent model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + PlatformFunctionDeploymentEvent, + PlatformFunctionDeploymentEventWithRelations, + PlatformFunctionDeploymentEventSelect, + PlatformFunctionDeploymentEventFilter, + PlatformFunctionDeploymentEventOrderBy, + CreatePlatformFunctionDeploymentEventInput, + UpdatePlatformFunctionDeploymentEventInput, + PlatformFunctionDeploymentEventPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class PlatformFunctionDeploymentEventModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs< + S, + PlatformFunctionDeploymentEventFilter, + PlatformFunctionDeploymentEventOrderBy + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformFunctionDeploymentEvents: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformFunctionDeploymentEvent', + 'platformFunctionDeploymentEvents', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'PlatformFunctionDeploymentEventFilter', + 'PlatformFunctionDeploymentEventOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformFunctionDeploymentEvent', + fieldName: 'platformFunctionDeploymentEvents', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs< + S, + PlatformFunctionDeploymentEventFilter, + PlatformFunctionDeploymentEventOrderBy + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformFunctionDeploymentEvent: InferSelectResult< + PlatformFunctionDeploymentEventWithRelations, + S + > | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'PlatformFunctionDeploymentEvent', + 'platformFunctionDeploymentEvents', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'PlatformFunctionDeploymentEventFilter', + 'PlatformFunctionDeploymentEventOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformFunctionDeploymentEvent', + fieldName: 'platformFunctionDeploymentEvent', + document, + variables, + transform: (data: { + platformFunctionDeploymentEvents?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformFunctionDeploymentEvent: data.platformFunctionDeploymentEvents?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformFunctionDeploymentEvent: InferSelectResult< + PlatformFunctionDeploymentEventWithRelations, + S + > | null; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformFunctionDeploymentEvent', + 'platformFunctionDeploymentEvents', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'PlatformFunctionDeploymentEventFilter', + 'PlatformFunctionDeploymentEventOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformFunctionDeploymentEvent', + fieldName: 'platformFunctionDeploymentEvent', + document, + variables, + transform: (data: { + platformFunctionDeploymentEvents?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformFunctionDeploymentEvent: data.platformFunctionDeploymentEvents?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs< + S, + CreatePlatformFunctionDeploymentEventInput['platformFunctionDeploymentEvent'] + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createPlatformFunctionDeploymentEvent: { + platformFunctionDeploymentEvent: InferSelectResult< + PlatformFunctionDeploymentEventWithRelations, + S + >; + }; + }> { + const { document, variables } = buildCreateDocument( + 'PlatformFunctionDeploymentEvent', + 'createPlatformFunctionDeploymentEvent', + 'platformFunctionDeploymentEvent', + args.select, + args.data, + 'CreatePlatformFunctionDeploymentEventInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformFunctionDeploymentEvent', + fieldName: 'createPlatformFunctionDeploymentEvent', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + createdAt: string; + }, + PlatformFunctionDeploymentEventPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updatePlatformFunctionDeploymentEvent: { + platformFunctionDeploymentEvent: InferSelectResult< + PlatformFunctionDeploymentEventWithRelations, + S + >; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'PlatformFunctionDeploymentEvent', + 'updatePlatformFunctionDeploymentEvent', + 'platformFunctionDeploymentEvent', + args.select, + args.where.id, + args.data, + 'UpdatePlatformFunctionDeploymentEventInput', + 'id', + 'platformFunctionDeploymentEventPatch', + connectionFieldsMap, + { + createdAt: args.where.createdAt, + } + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformFunctionDeploymentEvent', + fieldName: 'updatePlatformFunctionDeploymentEvent', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + createdAt: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deletePlatformFunctionDeploymentEvent: { + platformFunctionDeploymentEvent: InferSelectResult< + PlatformFunctionDeploymentEventWithRelations, + S + >; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'PlatformFunctionDeploymentEvent', + 'deletePlatformFunctionDeploymentEvent', + 'platformFunctionDeploymentEvent', + { + id: args.where.id, + createdAt: args.where.createdAt, + }, + 'DeletePlatformFunctionDeploymentEventInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformFunctionDeploymentEvent', + fieldName: 'deletePlatformFunctionDeploymentEvent', + document, + variables, + }); + } +} diff --git a/sdk/constructive-cli/src/compute/orm/models/platformFunctionExecutionLog.ts b/sdk/constructive-cli/src/compute/orm/models/platformFunctionExecutionLog.ts new file mode 100644 index 0000000000..1fe6df0cf8 --- /dev/null +++ b/sdk/constructive-cli/src/compute/orm/models/platformFunctionExecutionLog.ts @@ -0,0 +1,266 @@ +/** + * PlatformFunctionExecutionLog model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + PlatformFunctionExecutionLog, + PlatformFunctionExecutionLogWithRelations, + PlatformFunctionExecutionLogSelect, + PlatformFunctionExecutionLogFilter, + PlatformFunctionExecutionLogOrderBy, + CreatePlatformFunctionExecutionLogInput, + UpdatePlatformFunctionExecutionLogInput, + PlatformFunctionExecutionLogPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class PlatformFunctionExecutionLogModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs< + S, + PlatformFunctionExecutionLogFilter, + PlatformFunctionExecutionLogOrderBy + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformFunctionExecutionLogs: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformFunctionExecutionLog', + 'platformFunctionExecutionLogs', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'PlatformFunctionExecutionLogFilter', + 'PlatformFunctionExecutionLogOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformFunctionExecutionLog', + fieldName: 'platformFunctionExecutionLogs', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs< + S, + PlatformFunctionExecutionLogFilter, + PlatformFunctionExecutionLogOrderBy + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformFunctionExecutionLog: InferSelectResult< + PlatformFunctionExecutionLogWithRelations, + S + > | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'PlatformFunctionExecutionLog', + 'platformFunctionExecutionLogs', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'PlatformFunctionExecutionLogFilter', + 'PlatformFunctionExecutionLogOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformFunctionExecutionLog', + fieldName: 'platformFunctionExecutionLog', + document, + variables, + transform: (data: { + platformFunctionExecutionLogs?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformFunctionExecutionLog: data.platformFunctionExecutionLogs?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformFunctionExecutionLog: InferSelectResult< + PlatformFunctionExecutionLogWithRelations, + S + > | null; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformFunctionExecutionLog', + 'platformFunctionExecutionLogs', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'PlatformFunctionExecutionLogFilter', + 'PlatformFunctionExecutionLogOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformFunctionExecutionLog', + fieldName: 'platformFunctionExecutionLog', + document, + variables, + transform: (data: { + platformFunctionExecutionLogs?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformFunctionExecutionLog: data.platformFunctionExecutionLogs?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createPlatformFunctionExecutionLog: { + platformFunctionExecutionLog: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'PlatformFunctionExecutionLog', + 'createPlatformFunctionExecutionLog', + 'platformFunctionExecutionLog', + args.select, + args.data, + 'CreatePlatformFunctionExecutionLogInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformFunctionExecutionLog', + fieldName: 'createPlatformFunctionExecutionLog', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + createdAt: string; + }, + PlatformFunctionExecutionLogPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updatePlatformFunctionExecutionLog: { + platformFunctionExecutionLog: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'PlatformFunctionExecutionLog', + 'updatePlatformFunctionExecutionLog', + 'platformFunctionExecutionLog', + args.select, + args.where.id, + args.data, + 'UpdatePlatformFunctionExecutionLogInput', + 'id', + 'platformFunctionExecutionLogPatch', + connectionFieldsMap, + { + createdAt: args.where.createdAt, + } + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformFunctionExecutionLog', + fieldName: 'updatePlatformFunctionExecutionLog', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + createdAt: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deletePlatformFunctionExecutionLog: { + platformFunctionExecutionLog: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'PlatformFunctionExecutionLog', + 'deletePlatformFunctionExecutionLog', + 'platformFunctionExecutionLog', + { + id: args.where.id, + createdAt: args.where.createdAt, + }, + 'DeletePlatformFunctionExecutionLogInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformFunctionExecutionLog', + fieldName: 'deletePlatformFunctionExecutionLog', + document, + variables, + }); + } +} diff --git a/sdk/constructive-cli/src/compute/orm/models/platformFunctionInvocation.ts b/sdk/constructive-cli/src/compute/orm/models/platformFunctionInvocation.ts new file mode 100644 index 0000000000..f52ba9df33 --- /dev/null +++ b/sdk/constructive-cli/src/compute/orm/models/platformFunctionInvocation.ts @@ -0,0 +1,258 @@ +/** + * PlatformFunctionInvocation model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + PlatformFunctionInvocation, + PlatformFunctionInvocationWithRelations, + PlatformFunctionInvocationSelect, + PlatformFunctionInvocationFilter, + PlatformFunctionInvocationOrderBy, + CreatePlatformFunctionInvocationInput, + UpdatePlatformFunctionInvocationInput, + PlatformFunctionInvocationPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class PlatformFunctionInvocationModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformFunctionInvocations: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformFunctionInvocation', + 'platformFunctionInvocations', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'PlatformFunctionInvocationFilter', + 'PlatformFunctionInvocationOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformFunctionInvocation', + fieldName: 'platformFunctionInvocations', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformFunctionInvocation: InferSelectResult< + PlatformFunctionInvocationWithRelations, + S + > | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'PlatformFunctionInvocation', + 'platformFunctionInvocations', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'PlatformFunctionInvocationFilter', + 'PlatformFunctionInvocationOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformFunctionInvocation', + fieldName: 'platformFunctionInvocation', + document, + variables, + transform: (data: { + platformFunctionInvocations?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformFunctionInvocation: data.platformFunctionInvocations?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformFunctionInvocation: InferSelectResult< + PlatformFunctionInvocationWithRelations, + S + > | null; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformFunctionInvocation', + 'platformFunctionInvocations', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'PlatformFunctionInvocationFilter', + 'PlatformFunctionInvocationOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformFunctionInvocation', + fieldName: 'platformFunctionInvocation', + document, + variables, + transform: (data: { + platformFunctionInvocations?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformFunctionInvocation: data.platformFunctionInvocations?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createPlatformFunctionInvocation: { + platformFunctionInvocation: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'PlatformFunctionInvocation', + 'createPlatformFunctionInvocation', + 'platformFunctionInvocation', + args.select, + args.data, + 'CreatePlatformFunctionInvocationInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformFunctionInvocation', + fieldName: 'createPlatformFunctionInvocation', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + createdAt: string; + }, + PlatformFunctionInvocationPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updatePlatformFunctionInvocation: { + platformFunctionInvocation: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'PlatformFunctionInvocation', + 'updatePlatformFunctionInvocation', + 'platformFunctionInvocation', + args.select, + args.where.id, + args.data, + 'UpdatePlatformFunctionInvocationInput', + 'id', + 'platformFunctionInvocationPatch', + connectionFieldsMap, + { + createdAt: args.where.createdAt, + } + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformFunctionInvocation', + fieldName: 'updatePlatformFunctionInvocation', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + createdAt: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deletePlatformFunctionInvocation: { + platformFunctionInvocation: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'PlatformFunctionInvocation', + 'deletePlatformFunctionInvocation', + 'platformFunctionInvocation', + { + id: args.where.id, + createdAt: args.where.createdAt, + }, + 'DeletePlatformFunctionInvocationInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformFunctionInvocation', + fieldName: 'deletePlatformFunctionInvocation', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/compute/orm/models/secretDefinition.ts b/sdk/constructive-cli/src/compute/orm/models/platformResource.ts similarity index 51% rename from sdk/constructive-sdk/src/compute/orm/models/secretDefinition.ts rename to sdk/constructive-cli/src/compute/orm/models/platformResource.ts index 09b9a0b956..00f03ea1dc 100644 --- a/sdk/constructive-sdk/src/compute/orm/models/secretDefinition.ts +++ b/sdk/constructive-cli/src/compute/orm/models/platformResource.ts @@ -1,5 +1,5 @@ /** - * SecretDefinition model for ORM client + * PlatformResource model for ORM client * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -24,28 +24,28 @@ import type { StrictSelect, } from '../select-types'; import type { - SecretDefinition, - SecretDefinitionWithRelations, - SecretDefinitionSelect, - SecretDefinitionFilter, - SecretDefinitionOrderBy, - CreateSecretDefinitionInput, - UpdateSecretDefinitionInput, - SecretDefinitionPatch, + PlatformResource, + PlatformResourceWithRelations, + PlatformResourceSelect, + PlatformResourceFilter, + PlatformResourceOrderBy, + CreatePlatformResourceInput, + UpdatePlatformResourceInput, + PlatformResourcePatch, } from '../input-types'; import { connectionFieldsMap } from '../input-types'; -export class SecretDefinitionModel { +export class PlatformResourceModel { constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { + findMany( + args: FindManyArgs & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - secretDefinitions: ConnectionResult>; + platformResources: ConnectionResult>; }> { const { document, variables } = buildFindManyDocument( - 'SecretDefinition', - 'secretDefinitions', + 'PlatformResource', + 'platformResources', args.select, { where: args?.where, @@ -56,65 +56,65 @@ export class SecretDefinitionModel { before: args?.before, offset: args?.offset, }, - 'SecretDefinitionFilter', - 'SecretDefinitionOrderBy', + 'PlatformResourceFilter', + 'PlatformResourceOrderBy', connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'query', - operationName: 'SecretDefinition', - fieldName: 'secretDefinitions', + operationName: 'PlatformResource', + fieldName: 'platformResources', document, variables, }); } - findFirst( - args: FindFirstArgs & { + findFirst( + args: FindFirstArgs & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - secretDefinition: InferSelectResult | null; + platformResource: InferSelectResult | null; }> { const { document, variables } = buildFindFirstDocument( - 'SecretDefinition', - 'secretDefinitions', + 'PlatformResource', + 'platformResources', args.select, { where: args?.where, orderBy: args?.orderBy as string[] | undefined, }, - 'SecretDefinitionFilter', - 'SecretDefinitionOrderBy', + 'PlatformResourceFilter', + 'PlatformResourceOrderBy', connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'query', - operationName: 'SecretDefinition', - fieldName: 'secretDefinition', + operationName: 'PlatformResource', + fieldName: 'platformResource', document, variables, transform: (data: { - secretDefinitions?: { - nodes?: InferSelectResult[]; + platformResources?: { + nodes?: InferSelectResult[]; }; }) => ({ - secretDefinition: data.secretDefinitions?.nodes?.[0] ?? null, + platformResource: data.platformResources?.nodes?.[0] ?? null, }), }); } - findOne( + findOne( args: { id: string; select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - secretDefinition: InferSelectResult | null; + platformResource: InferSelectResult | null; }> { const { document, variables } = buildFindManyDocument( - 'SecretDefinition', - 'secretDefinitions', + 'PlatformResource', + 'platformResources', args.select, { where: { @@ -124,91 +124,91 @@ export class SecretDefinitionModel { }, first: 1, }, - 'SecretDefinitionFilter', - 'SecretDefinitionOrderBy', + 'PlatformResourceFilter', + 'PlatformResourceOrderBy', connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'query', - operationName: 'SecretDefinition', - fieldName: 'secretDefinition', + operationName: 'PlatformResource', + fieldName: 'platformResource', document, variables, transform: (data: { - secretDefinitions?: { - nodes?: InferSelectResult[]; + platformResources?: { + nodes?: InferSelectResult[]; }; }) => ({ - secretDefinition: data.secretDefinitions?.nodes?.[0] ?? null, + platformResource: data.platformResources?.nodes?.[0] ?? null, }), }); } - create( - args: CreateArgs & { + create( + args: CreateArgs & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - createSecretDefinition: { - secretDefinition: InferSelectResult; + createPlatformResource: { + platformResource: InferSelectResult; }; }> { const { document, variables } = buildCreateDocument( - 'SecretDefinition', - 'createSecretDefinition', - 'secretDefinition', + 'PlatformResource', + 'createPlatformResource', + 'platformResource', args.select, args.data, - 'CreateSecretDefinitionInput', + 'CreatePlatformResourceInput', connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'mutation', - operationName: 'SecretDefinition', - fieldName: 'createSecretDefinition', + operationName: 'PlatformResource', + fieldName: 'createPlatformResource', document, variables, }); } - update( + update( args: UpdateArgs< S, { id: string; }, - SecretDefinitionPatch + PlatformResourcePatch > & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - updateSecretDefinition: { - secretDefinition: InferSelectResult; + updatePlatformResource: { + platformResource: InferSelectResult; }; }> { const { document, variables } = buildUpdateByPkDocument( - 'SecretDefinition', - 'updateSecretDefinition', - 'secretDefinition', + 'PlatformResource', + 'updatePlatformResource', + 'platformResource', args.select, args.where.id, args.data, - 'UpdateSecretDefinitionInput', + 'UpdatePlatformResourceInput', 'id', - 'secretDefinitionPatch', + 'platformResourcePatch', connectionFieldsMap, undefined ); return new QueryBuilder({ client: this.client, operation: 'mutation', - operationName: 'SecretDefinition', - fieldName: 'updateSecretDefinition', + operationName: 'PlatformResource', + fieldName: 'updatePlatformResource', document, variables, }); } - delete( + delete( args: DeleteArgs< { id: string; @@ -216,28 +216,28 @@ export class SecretDefinitionModel { S > & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - deleteSecretDefinition: { - secretDefinition: InferSelectResult; + deletePlatformResource: { + platformResource: InferSelectResult; }; }> { const { document, variables } = buildDeleteByPkDocument( - 'SecretDefinition', - 'deleteSecretDefinition', - 'secretDefinition', + 'PlatformResource', + 'deletePlatformResource', + 'platformResource', { id: args.where.id, }, - 'DeleteSecretDefinitionInput', + 'DeletePlatformResourceInput', args.select, connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'mutation', - operationName: 'SecretDefinition', - fieldName: 'deleteSecretDefinition', + operationName: 'PlatformResource', + fieldName: 'deletePlatformResource', document, variables, }); diff --git a/sdk/constructive-cli/src/compute/orm/models/platformResourceDefinition.ts b/sdk/constructive-cli/src/compute/orm/models/platformResourceDefinition.ts new file mode 100644 index 0000000000..a23e8bf5a1 --- /dev/null +++ b/sdk/constructive-cli/src/compute/orm/models/platformResourceDefinition.ts @@ -0,0 +1,253 @@ +/** + * PlatformResourceDefinition model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + PlatformResourceDefinition, + PlatformResourceDefinitionWithRelations, + PlatformResourceDefinitionSelect, + PlatformResourceDefinitionFilter, + PlatformResourceDefinitionOrderBy, + CreatePlatformResourceDefinitionInput, + UpdatePlatformResourceDefinitionInput, + PlatformResourceDefinitionPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class PlatformResourceDefinitionModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformResourceDefinitions: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformResourceDefinition', + 'platformResourceDefinitions', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'PlatformResourceDefinitionFilter', + 'PlatformResourceDefinitionOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformResourceDefinition', + fieldName: 'platformResourceDefinitions', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformResourceDefinition: InferSelectResult< + PlatformResourceDefinitionWithRelations, + S + > | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'PlatformResourceDefinition', + 'platformResourceDefinitions', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'PlatformResourceDefinitionFilter', + 'PlatformResourceDefinitionOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformResourceDefinition', + fieldName: 'platformResourceDefinition', + document, + variables, + transform: (data: { + platformResourceDefinitions?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformResourceDefinition: data.platformResourceDefinitions?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformResourceDefinition: InferSelectResult< + PlatformResourceDefinitionWithRelations, + S + > | null; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformResourceDefinition', + 'platformResourceDefinitions', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'PlatformResourceDefinitionFilter', + 'PlatformResourceDefinitionOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformResourceDefinition', + fieldName: 'platformResourceDefinition', + document, + variables, + transform: (data: { + platformResourceDefinitions?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformResourceDefinition: data.platformResourceDefinitions?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createPlatformResourceDefinition: { + platformResourceDefinition: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'PlatformResourceDefinition', + 'createPlatformResourceDefinition', + 'platformResourceDefinition', + args.select, + args.data, + 'CreatePlatformResourceDefinitionInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformResourceDefinition', + fieldName: 'createPlatformResourceDefinition', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + PlatformResourceDefinitionPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updatePlatformResourceDefinition: { + platformResourceDefinition: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'PlatformResourceDefinition', + 'updatePlatformResourceDefinition', + 'platformResourceDefinition', + args.select, + args.where.id, + args.data, + 'UpdatePlatformResourceDefinitionInput', + 'id', + 'platformResourceDefinitionPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformResourceDefinition', + fieldName: 'updatePlatformResourceDefinition', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deletePlatformResourceDefinition: { + platformResourceDefinition: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'PlatformResourceDefinition', + 'deletePlatformResourceDefinition', + 'platformResourceDefinition', + { + id: args.where.id, + }, + 'DeletePlatformResourceDefinitionInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformResourceDefinition', + fieldName: 'deletePlatformResourceDefinition', + document, + variables, + }); + } +} diff --git a/sdk/constructive-cli/src/compute/orm/models/platformResourceEvent.ts b/sdk/constructive-cli/src/compute/orm/models/platformResourceEvent.ts new file mode 100644 index 0000000000..77ae28e155 --- /dev/null +++ b/sdk/constructive-cli/src/compute/orm/models/platformResourceEvent.ts @@ -0,0 +1,252 @@ +/** + * PlatformResourceEvent model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + PlatformResourceEvent, + PlatformResourceEventWithRelations, + PlatformResourceEventSelect, + PlatformResourceEventFilter, + PlatformResourceEventOrderBy, + CreatePlatformResourceEventInput, + UpdatePlatformResourceEventInput, + PlatformResourceEventPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class PlatformResourceEventModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformResourceEvents: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformResourceEvent', + 'platformResourceEvents', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'PlatformResourceEventFilter', + 'PlatformResourceEventOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformResourceEvent', + fieldName: 'platformResourceEvents', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformResourceEvent: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'PlatformResourceEvent', + 'platformResourceEvents', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'PlatformResourceEventFilter', + 'PlatformResourceEventOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformResourceEvent', + fieldName: 'platformResourceEvent', + document, + variables, + transform: (data: { + platformResourceEvents?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformResourceEvent: data.platformResourceEvents?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformResourceEvent: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformResourceEvent', + 'platformResourceEvents', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'PlatformResourceEventFilter', + 'PlatformResourceEventOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformResourceEvent', + fieldName: 'platformResourceEvent', + document, + variables, + transform: (data: { + platformResourceEvents?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformResourceEvent: data.platformResourceEvents?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createPlatformResourceEvent: { + platformResourceEvent: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'PlatformResourceEvent', + 'createPlatformResourceEvent', + 'platformResourceEvent', + args.select, + args.data, + 'CreatePlatformResourceEventInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformResourceEvent', + fieldName: 'createPlatformResourceEvent', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + createdAt: string; + }, + PlatformResourceEventPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updatePlatformResourceEvent: { + platformResourceEvent: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'PlatformResourceEvent', + 'updatePlatformResourceEvent', + 'platformResourceEvent', + args.select, + args.where.id, + args.data, + 'UpdatePlatformResourceEventInput', + 'id', + 'platformResourceEventPatch', + connectionFieldsMap, + { + createdAt: args.where.createdAt, + } + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformResourceEvent', + fieldName: 'updatePlatformResourceEvent', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + createdAt: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deletePlatformResourceEvent: { + platformResourceEvent: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'PlatformResourceEvent', + 'deletePlatformResourceEvent', + 'platformResourceEvent', + { + id: args.where.id, + createdAt: args.where.createdAt, + }, + 'DeletePlatformResourceEventInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformResourceEvent', + fieldName: 'deletePlatformResourceEvent', + document, + variables, + }); + } +} diff --git a/sdk/constructive-cli/src/compute/orm/models/platformResourceStatusCheck.ts b/sdk/constructive-cli/src/compute/orm/models/platformResourceStatusCheck.ts new file mode 100644 index 0000000000..16f33db355 --- /dev/null +++ b/sdk/constructive-cli/src/compute/orm/models/platformResourceStatusCheck.ts @@ -0,0 +1,257 @@ +/** + * PlatformResourceStatusCheck model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + PlatformResourceStatusCheck, + PlatformResourceStatusCheckWithRelations, + PlatformResourceStatusCheckSelect, + PlatformResourceStatusCheckFilter, + PlatformResourceStatusCheckOrderBy, + CreatePlatformResourceStatusCheckInput, + UpdatePlatformResourceStatusCheckInput, + PlatformResourceStatusCheckPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class PlatformResourceStatusCheckModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformResourceStatusChecks: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformResourceStatusCheck', + 'platformResourceStatusChecks', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'PlatformResourceStatusCheckFilter', + 'PlatformResourceStatusCheckOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformResourceStatusCheck', + fieldName: 'platformResourceStatusChecks', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs< + S, + PlatformResourceStatusCheckFilter, + PlatformResourceStatusCheckOrderBy + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformResourceStatusCheck: InferSelectResult< + PlatformResourceStatusCheckWithRelations, + S + > | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'PlatformResourceStatusCheck', + 'platformResourceStatusChecks', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'PlatformResourceStatusCheckFilter', + 'PlatformResourceStatusCheckOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformResourceStatusCheck', + fieldName: 'platformResourceStatusCheck', + document, + variables, + transform: (data: { + platformResourceStatusChecks?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformResourceStatusCheck: data.platformResourceStatusChecks?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformResourceStatusCheck: InferSelectResult< + PlatformResourceStatusCheckWithRelations, + S + > | null; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformResourceStatusCheck', + 'platformResourceStatusChecks', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'PlatformResourceStatusCheckFilter', + 'PlatformResourceStatusCheckOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformResourceStatusCheck', + fieldName: 'platformResourceStatusCheck', + document, + variables, + transform: (data: { + platformResourceStatusChecks?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformResourceStatusCheck: data.platformResourceStatusChecks?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createPlatformResourceStatusCheck: { + platformResourceStatusCheck: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'PlatformResourceStatusCheck', + 'createPlatformResourceStatusCheck', + 'platformResourceStatusCheck', + args.select, + args.data, + 'CreatePlatformResourceStatusCheckInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformResourceStatusCheck', + fieldName: 'createPlatformResourceStatusCheck', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + PlatformResourceStatusCheckPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updatePlatformResourceStatusCheck: { + platformResourceStatusCheck: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'PlatformResourceStatusCheck', + 'updatePlatformResourceStatusCheck', + 'platformResourceStatusCheck', + args.select, + args.where.id, + args.data, + 'UpdatePlatformResourceStatusCheckInput', + 'id', + 'platformResourceStatusCheckPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformResourceStatusCheck', + fieldName: 'updatePlatformResourceStatusCheck', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deletePlatformResourceStatusCheck: { + platformResourceStatusCheck: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'PlatformResourceStatusCheck', + 'deletePlatformResourceStatusCheck', + 'platformResourceStatusCheck', + { + id: args.where.id, + }, + 'DeletePlatformResourceStatusCheckInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformResourceStatusCheck', + fieldName: 'deletePlatformResourceStatusCheck', + document, + variables, + }); + } +} diff --git a/sdk/constructive-cli/src/compute/orm/models/platformResourcesRequirementsState.ts b/sdk/constructive-cli/src/compute/orm/models/platformResourcesRequirementsState.ts new file mode 100644 index 0000000000..ab6152e426 --- /dev/null +++ b/sdk/constructive-cli/src/compute/orm/models/platformResourcesRequirementsState.ts @@ -0,0 +1,154 @@ +/** + * PlatformResourcesRequirementsState model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + PlatformResourcesRequirementsState, + PlatformResourcesRequirementsStateWithRelations, + PlatformResourcesRequirementsStateSelect, + PlatformResourcesRequirementsStateFilter, + PlatformResourcesRequirementsStateOrderBy, + CreatePlatformResourcesRequirementsStateInput, + UpdatePlatformResourcesRequirementsStateInput, + PlatformResourcesRequirementsStatePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class PlatformResourcesRequirementsStateModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs< + S, + PlatformResourcesRequirementsStateFilter, + PlatformResourcesRequirementsStateOrderBy + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformResourcesRequirementsStates: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformResourcesRequirementsState', + 'platformResourcesRequirementsStates', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'PlatformResourcesRequirementsStateFilter', + 'PlatformResourcesRequirementsStateOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformResourcesRequirementsState', + fieldName: 'platformResourcesRequirementsStates', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs< + S, + PlatformResourcesRequirementsStateFilter, + PlatformResourcesRequirementsStateOrderBy + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformResourcesRequirementsState: InferSelectResult< + PlatformResourcesRequirementsStateWithRelations, + S + > | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'PlatformResourcesRequirementsState', + 'platformResourcesRequirementsStates', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'PlatformResourcesRequirementsStateFilter', + 'PlatformResourcesRequirementsStateOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformResourcesRequirementsState', + fieldName: 'platformResourcesRequirementsState', + document, + variables, + transform: (data: { + platformResourcesRequirementsStates?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformResourcesRequirementsState: + data.platformResourcesRequirementsStates?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs< + S, + CreatePlatformResourcesRequirementsStateInput['platformResourcesRequirementsState'] + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createPlatformResourcesRequirementsState: { + platformResourcesRequirementsState: InferSelectResult< + PlatformResourcesRequirementsStateWithRelations, + S + >; + }; + }> { + const { document, variables } = buildCreateDocument( + 'PlatformResourcesRequirementsState', + 'createPlatformResourcesRequirementsState', + 'platformResourcesRequirementsState', + args.select, + args.data, + 'CreatePlatformResourcesRequirementsStateInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformResourcesRequirementsState', + fieldName: 'createPlatformResourcesRequirementsState', + document, + variables, + }); + } +} diff --git a/sdk/constructive-cli/src/compute/orm/models/platformResourcesResolvedRequirement.ts b/sdk/constructive-cli/src/compute/orm/models/platformResourcesResolvedRequirement.ts new file mode 100644 index 0000000000..d7d7bf4ed0 --- /dev/null +++ b/sdk/constructive-cli/src/compute/orm/models/platformResourcesResolvedRequirement.ts @@ -0,0 +1,154 @@ +/** + * PlatformResourcesResolvedRequirement model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + PlatformResourcesResolvedRequirement, + PlatformResourcesResolvedRequirementWithRelations, + PlatformResourcesResolvedRequirementSelect, + PlatformResourcesResolvedRequirementFilter, + PlatformResourcesResolvedRequirementOrderBy, + CreatePlatformResourcesResolvedRequirementInput, + UpdatePlatformResourcesResolvedRequirementInput, + PlatformResourcesResolvedRequirementPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class PlatformResourcesResolvedRequirementModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs< + S, + PlatformResourcesResolvedRequirementFilter, + PlatformResourcesResolvedRequirementOrderBy + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformResourcesResolvedRequirements: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformResourcesResolvedRequirement', + 'platformResourcesResolvedRequirements', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'PlatformResourcesResolvedRequirementFilter', + 'PlatformResourcesResolvedRequirementOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformResourcesResolvedRequirement', + fieldName: 'platformResourcesResolvedRequirements', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs< + S, + PlatformResourcesResolvedRequirementFilter, + PlatformResourcesResolvedRequirementOrderBy + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformResourcesResolvedRequirement: InferSelectResult< + PlatformResourcesResolvedRequirementWithRelations, + S + > | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'PlatformResourcesResolvedRequirement', + 'platformResourcesResolvedRequirements', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'PlatformResourcesResolvedRequirementFilter', + 'PlatformResourcesResolvedRequirementOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformResourcesResolvedRequirement', + fieldName: 'platformResourcesResolvedRequirement', + document, + variables, + transform: (data: { + platformResourcesResolvedRequirements?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformResourcesResolvedRequirement: + data.platformResourcesResolvedRequirements?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs< + S, + CreatePlatformResourcesResolvedRequirementInput['platformResourcesResolvedRequirement'] + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createPlatformResourcesResolvedRequirement: { + platformResourcesResolvedRequirement: InferSelectResult< + PlatformResourcesResolvedRequirementWithRelations, + S + >; + }; + }> { + const { document, variables } = buildCreateDocument( + 'PlatformResourcesResolvedRequirement', + 'createPlatformResourcesResolvedRequirement', + 'platformResourcesResolvedRequirement', + args.select, + args.data, + 'CreatePlatformResourcesResolvedRequirementInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformResourcesResolvedRequirement', + fieldName: 'createPlatformResourcesResolvedRequirement', + document, + variables, + }); + } +} diff --git a/sdk/constructive-cli/src/compute/orm/models/resourceDefinition.ts b/sdk/constructive-cli/src/compute/orm/models/resourceDefinition.ts new file mode 100644 index 0000000000..26be134a8b --- /dev/null +++ b/sdk/constructive-cli/src/compute/orm/models/resourceDefinition.ts @@ -0,0 +1,245 @@ +/** + * ResourceDefinition model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + ResourceDefinition, + ResourceDefinitionWithRelations, + ResourceDefinitionSelect, + ResourceDefinitionFilter, + ResourceDefinitionOrderBy, + CreateResourceDefinitionInput, + UpdateResourceDefinitionInput, + ResourceDefinitionPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class ResourceDefinitionModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + resourceDefinitions: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'ResourceDefinition', + 'resourceDefinitions', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'ResourceDefinitionFilter', + 'ResourceDefinitionOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ResourceDefinition', + fieldName: 'resourceDefinitions', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + resourceDefinition: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'ResourceDefinition', + 'resourceDefinitions', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'ResourceDefinitionFilter', + 'ResourceDefinitionOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ResourceDefinition', + fieldName: 'resourceDefinition', + document, + variables, + transform: (data: { + resourceDefinitions?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + resourceDefinition: data.resourceDefinitions?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + resourceDefinition: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'ResourceDefinition', + 'resourceDefinitions', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'ResourceDefinitionFilter', + 'ResourceDefinitionOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ResourceDefinition', + fieldName: 'resourceDefinition', + document, + variables, + transform: (data: { + resourceDefinitions?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + resourceDefinition: data.resourceDefinitions?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createResourceDefinition: { + resourceDefinition: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'ResourceDefinition', + 'createResourceDefinition', + 'resourceDefinition', + args.select, + args.data, + 'CreateResourceDefinitionInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ResourceDefinition', + fieldName: 'createResourceDefinition', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + ResourceDefinitionPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateResourceDefinition: { + resourceDefinition: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'ResourceDefinition', + 'updateResourceDefinition', + 'resourceDefinition', + args.select, + args.where.id, + args.data, + 'UpdateResourceDefinitionInput', + 'id', + 'resourceDefinitionPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ResourceDefinition', + fieldName: 'updateResourceDefinition', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteResourceDefinition: { + resourceDefinition: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'ResourceDefinition', + 'deleteResourceDefinition', + 'resourceDefinition', + { + id: args.where.id, + }, + 'DeleteResourceDefinitionInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ResourceDefinition', + fieldName: 'deleteResourceDefinition', + document, + variables, + }); + } +} diff --git a/sdk/constructive-cli/src/modules/orm/models/configSecretsModule.ts b/sdk/constructive-cli/src/compute/orm/models/resourceStatusCheck.ts similarity index 50% rename from sdk/constructive-cli/src/modules/orm/models/configSecretsModule.ts rename to sdk/constructive-cli/src/compute/orm/models/resourceStatusCheck.ts index 59a6edd5cd..e7241931ee 100644 --- a/sdk/constructive-cli/src/modules/orm/models/configSecretsModule.ts +++ b/sdk/constructive-cli/src/compute/orm/models/resourceStatusCheck.ts @@ -1,5 +1,5 @@ /** - * ConfigSecretsModule model for ORM client + * ResourceStatusCheck model for ORM client * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -24,28 +24,28 @@ import type { StrictSelect, } from '../select-types'; import type { - ConfigSecretsModule, - ConfigSecretsModuleWithRelations, - ConfigSecretsModuleSelect, - ConfigSecretsModuleFilter, - ConfigSecretsModuleOrderBy, - CreateConfigSecretsModuleInput, - UpdateConfigSecretsModuleInput, - ConfigSecretsModulePatch, + ResourceStatusCheck, + ResourceStatusCheckWithRelations, + ResourceStatusCheckSelect, + ResourceStatusCheckFilter, + ResourceStatusCheckOrderBy, + CreateResourceStatusCheckInput, + UpdateResourceStatusCheckInput, + ResourceStatusCheckPatch, } from '../input-types'; import { connectionFieldsMap } from '../input-types'; -export class ConfigSecretsModuleModel { +export class ResourceStatusCheckModel { constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { + findMany( + args: FindManyArgs & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - configSecretsModules: ConnectionResult>; + resourceStatusChecks: ConnectionResult>; }> { const { document, variables } = buildFindManyDocument( - 'ConfigSecretsModule', - 'configSecretsModules', + 'ResourceStatusCheck', + 'resourceStatusChecks', args.select, { where: args?.where, @@ -56,65 +56,65 @@ export class ConfigSecretsModuleModel { before: args?.before, offset: args?.offset, }, - 'ConfigSecretsModuleFilter', - 'ConfigSecretsModuleOrderBy', + 'ResourceStatusCheckFilter', + 'ResourceStatusCheckOrderBy', connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'query', - operationName: 'ConfigSecretsModule', - fieldName: 'configSecretsModules', + operationName: 'ResourceStatusCheck', + fieldName: 'resourceStatusChecks', document, variables, }); } - findFirst( - args: FindFirstArgs & { + findFirst( + args: FindFirstArgs & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - configSecretsModule: InferSelectResult | null; + resourceStatusCheck: InferSelectResult | null; }> { const { document, variables } = buildFindFirstDocument( - 'ConfigSecretsModule', - 'configSecretsModules', + 'ResourceStatusCheck', + 'resourceStatusChecks', args.select, { where: args?.where, orderBy: args?.orderBy as string[] | undefined, }, - 'ConfigSecretsModuleFilter', - 'ConfigSecretsModuleOrderBy', + 'ResourceStatusCheckFilter', + 'ResourceStatusCheckOrderBy', connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'query', - operationName: 'ConfigSecretsModule', - fieldName: 'configSecretsModule', + operationName: 'ResourceStatusCheck', + fieldName: 'resourceStatusCheck', document, variables, transform: (data: { - configSecretsModules?: { - nodes?: InferSelectResult[]; + resourceStatusChecks?: { + nodes?: InferSelectResult[]; }; }) => ({ - configSecretsModule: data.configSecretsModules?.nodes?.[0] ?? null, + resourceStatusCheck: data.resourceStatusChecks?.nodes?.[0] ?? null, }), }); } - findOne( + findOne( args: { id: string; select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - configSecretsModule: InferSelectResult | null; + resourceStatusCheck: InferSelectResult | null; }> { const { document, variables } = buildFindManyDocument( - 'ConfigSecretsModule', - 'configSecretsModules', + 'ResourceStatusCheck', + 'resourceStatusChecks', args.select, { where: { @@ -124,91 +124,91 @@ export class ConfigSecretsModuleModel { }, first: 1, }, - 'ConfigSecretsModuleFilter', - 'ConfigSecretsModuleOrderBy', + 'ResourceStatusCheckFilter', + 'ResourceStatusCheckOrderBy', connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'query', - operationName: 'ConfigSecretsModule', - fieldName: 'configSecretsModule', + operationName: 'ResourceStatusCheck', + fieldName: 'resourceStatusCheck', document, variables, transform: (data: { - configSecretsModules?: { - nodes?: InferSelectResult[]; + resourceStatusChecks?: { + nodes?: InferSelectResult[]; }; }) => ({ - configSecretsModule: data.configSecretsModules?.nodes?.[0] ?? null, + resourceStatusCheck: data.resourceStatusChecks?.nodes?.[0] ?? null, }), }); } - create( - args: CreateArgs & { + create( + args: CreateArgs & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - createConfigSecretsModule: { - configSecretsModule: InferSelectResult; + createResourceStatusCheck: { + resourceStatusCheck: InferSelectResult; }; }> { const { document, variables } = buildCreateDocument( - 'ConfigSecretsModule', - 'createConfigSecretsModule', - 'configSecretsModule', + 'ResourceStatusCheck', + 'createResourceStatusCheck', + 'resourceStatusCheck', args.select, args.data, - 'CreateConfigSecretsModuleInput', + 'CreateResourceStatusCheckInput', connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'mutation', - operationName: 'ConfigSecretsModule', - fieldName: 'createConfigSecretsModule', + operationName: 'ResourceStatusCheck', + fieldName: 'createResourceStatusCheck', document, variables, }); } - update( + update( args: UpdateArgs< S, { id: string; }, - ConfigSecretsModulePatch + ResourceStatusCheckPatch > & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - updateConfigSecretsModule: { - configSecretsModule: InferSelectResult; + updateResourceStatusCheck: { + resourceStatusCheck: InferSelectResult; }; }> { const { document, variables } = buildUpdateByPkDocument( - 'ConfigSecretsModule', - 'updateConfigSecretsModule', - 'configSecretsModule', + 'ResourceStatusCheck', + 'updateResourceStatusCheck', + 'resourceStatusCheck', args.select, args.where.id, args.data, - 'UpdateConfigSecretsModuleInput', + 'UpdateResourceStatusCheckInput', 'id', - 'configSecretsModulePatch', + 'resourceStatusCheckPatch', connectionFieldsMap, undefined ); return new QueryBuilder({ client: this.client, operation: 'mutation', - operationName: 'ConfigSecretsModule', - fieldName: 'updateConfigSecretsModule', + operationName: 'ResourceStatusCheck', + fieldName: 'updateResourceStatusCheck', document, variables, }); } - delete( + delete( args: DeleteArgs< { id: string; @@ -216,28 +216,28 @@ export class ConfigSecretsModuleModel { S > & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - deleteConfigSecretsModule: { - configSecretsModule: InferSelectResult; + deleteResourceStatusCheck: { + resourceStatusCheck: InferSelectResult; }; }> { const { document, variables } = buildDeleteByPkDocument( - 'ConfigSecretsModule', - 'deleteConfigSecretsModule', - 'configSecretsModule', + 'ResourceStatusCheck', + 'deleteResourceStatusCheck', + 'resourceStatusCheck', { id: args.where.id, }, - 'DeleteConfigSecretsModuleInput', + 'DeleteResourceStatusCheckInput', args.select, connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'mutation', - operationName: 'ConfigSecretsModule', - fieldName: 'deleteConfigSecretsModule', + operationName: 'ResourceStatusCheck', + fieldName: 'deleteResourceStatusCheck', document, variables, }); diff --git a/sdk/constructive-cli/src/compute/orm/models/resourcesRequirementsState.ts b/sdk/constructive-cli/src/compute/orm/models/resourcesRequirementsState.ts new file mode 100644 index 0000000000..8ce68f6a31 --- /dev/null +++ b/sdk/constructive-cli/src/compute/orm/models/resourcesRequirementsState.ts @@ -0,0 +1,139 @@ +/** + * ResourcesRequirementsState model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + ResourcesRequirementsState, + ResourcesRequirementsStateWithRelations, + ResourcesRequirementsStateSelect, + ResourcesRequirementsStateFilter, + ResourcesRequirementsStateOrderBy, + CreateResourcesRequirementsStateInput, + UpdateResourcesRequirementsStateInput, + ResourcesRequirementsStatePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class ResourcesRequirementsStateModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + resourcesRequirementsStates: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'ResourcesRequirementsState', + 'resourcesRequirementsStates', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'ResourcesRequirementsStateFilter', + 'ResourcesRequirementsStateOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ResourcesRequirementsState', + fieldName: 'resourcesRequirementsStates', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + resourcesRequirementsState: InferSelectResult< + ResourcesRequirementsStateWithRelations, + S + > | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'ResourcesRequirementsState', + 'resourcesRequirementsStates', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'ResourcesRequirementsStateFilter', + 'ResourcesRequirementsStateOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ResourcesRequirementsState', + fieldName: 'resourcesRequirementsState', + document, + variables, + transform: (data: { + resourcesRequirementsStates?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + resourcesRequirementsState: data.resourcesRequirementsStates?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createResourcesRequirementsState: { + resourcesRequirementsState: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'ResourcesRequirementsState', + 'createResourcesRequirementsState', + 'resourcesRequirementsState', + args.select, + args.data, + 'CreateResourcesRequirementsStateInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ResourcesRequirementsState', + fieldName: 'createResourcesRequirementsState', + document, + variables, + }); + } +} diff --git a/sdk/constructive-cli/src/compute/orm/models/resourcesResolvedRequirement.ts b/sdk/constructive-cli/src/compute/orm/models/resourcesResolvedRequirement.ts new file mode 100644 index 0000000000..40680dcfb3 --- /dev/null +++ b/sdk/constructive-cli/src/compute/orm/models/resourcesResolvedRequirement.ts @@ -0,0 +1,147 @@ +/** + * ResourcesResolvedRequirement model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + ResourcesResolvedRequirement, + ResourcesResolvedRequirementWithRelations, + ResourcesResolvedRequirementSelect, + ResourcesResolvedRequirementFilter, + ResourcesResolvedRequirementOrderBy, + CreateResourcesResolvedRequirementInput, + UpdateResourcesResolvedRequirementInput, + ResourcesResolvedRequirementPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class ResourcesResolvedRequirementModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs< + S, + ResourcesResolvedRequirementFilter, + ResourcesResolvedRequirementOrderBy + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + resourcesResolvedRequirements: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'ResourcesResolvedRequirement', + 'resourcesResolvedRequirements', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'ResourcesResolvedRequirementFilter', + 'ResourcesResolvedRequirementOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ResourcesResolvedRequirement', + fieldName: 'resourcesResolvedRequirements', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs< + S, + ResourcesResolvedRequirementFilter, + ResourcesResolvedRequirementOrderBy + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + resourcesResolvedRequirement: InferSelectResult< + ResourcesResolvedRequirementWithRelations, + S + > | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'ResourcesResolvedRequirement', + 'resourcesResolvedRequirements', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'ResourcesResolvedRequirementFilter', + 'ResourcesResolvedRequirementOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ResourcesResolvedRequirement', + fieldName: 'resourcesResolvedRequirement', + document, + variables, + transform: (data: { + resourcesResolvedRequirements?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + resourcesResolvedRequirement: data.resourcesResolvedRequirements?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createResourcesResolvedRequirement: { + resourcesResolvedRequirement: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'ResourcesResolvedRequirement', + 'createResourcesResolvedRequirement', + 'resourcesResolvedRequirement', + args.select, + args.data, + 'CreateResourcesResolvedRequirementInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ResourcesResolvedRequirement', + fieldName: 'createResourcesResolvedRequirement', + 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 932f75c399..d7b6550f55 100644 --- a/sdk/constructive-cli/src/compute/orm/mutation/index.ts +++ b/sdk/constructive-cli/src/compute/orm/mutation/index.ts @@ -8,9 +8,11 @@ import { QueryBuilder, buildCustomDocument } from '../query-builder'; import type { InferSelectResult, StrictSelect } from '../select-types'; import type { ValidateFunctionGraphInput, + InfraInitEmptyRepoInput, InitEmptyRepoInput, - SetDataAtPathInput, ImportDefinitionsInput, + InfraSetDataAtPathInput, + SetDataAtPathInput, CopyGraphInput, SaveGraphInput, AddEdgeAndSaveInput, @@ -18,13 +20,16 @@ import type { ImportGraphJsonInput, AddEdgeInput, AddNodeInput, + InfraInsertNodeAtPathInput, InsertNodeAtPathInput, StartExecutionInput, ProvisionBucketInput, ValidateFunctionGraphPayload, + InfraInitEmptyRepoPayload, InitEmptyRepoPayload, - SetDataAtPathPayload, ImportDefinitionsPayload, + InfraSetDataAtPathPayload, + SetDataAtPathPayload, CopyGraphPayload, SaveGraphPayload, AddEdgeAndSavePayload, @@ -32,13 +37,16 @@ import type { ImportGraphJsonPayload, AddEdgePayload, AddNodePayload, + InfraInsertNodeAtPathPayload, InsertNodeAtPathPayload, StartExecutionPayload, ProvisionBucketPayload, ValidateFunctionGraphPayloadSelect, + InfraInitEmptyRepoPayloadSelect, InitEmptyRepoPayloadSelect, - SetDataAtPathPayloadSelect, ImportDefinitionsPayloadSelect, + InfraSetDataAtPathPayloadSelect, + SetDataAtPathPayloadSelect, CopyGraphPayloadSelect, SaveGraphPayloadSelect, AddEdgeAndSavePayloadSelect, @@ -46,6 +54,7 @@ import type { ImportGraphJsonPayloadSelect, AddEdgePayloadSelect, AddNodePayloadSelect, + InfraInsertNodeAtPathPayloadSelect, InsertNodeAtPathPayloadSelect, StartExecutionPayloadSelect, ProvisionBucketPayloadSelect, @@ -54,15 +63,21 @@ import { connectionFieldsMap } from '../input-types'; export interface ValidateFunctionGraphVariables { input: ValidateFunctionGraphInput; } +export interface InfraInitEmptyRepoVariables { + input: InfraInitEmptyRepoInput; +} export interface InitEmptyRepoVariables { input: InitEmptyRepoInput; } -export interface SetDataAtPathVariables { - input: SetDataAtPathInput; -} export interface ImportDefinitionsVariables { input: ImportDefinitionsInput; } +export interface InfraSetDataAtPathVariables { + input: InfraSetDataAtPathInput; +} +export interface SetDataAtPathVariables { + input: SetDataAtPathInput; +} export interface CopyGraphVariables { input: CopyGraphInput; } @@ -84,6 +99,9 @@ export interface AddEdgeVariables { export interface AddNodeVariables { input: AddNodeInput; } +export interface InfraInsertNodeAtPathVariables { + input: InfraInsertNodeAtPathInput; +} export interface InsertNodeAtPathVariables { input: InsertNodeAtPathInput; } @@ -131,62 +149,62 @@ export function createMutationOperations(client: OrmClient) { 'ValidateFunctionGraphPayload' ), }), - initEmptyRepo: ( - args: InitEmptyRepoVariables, + infraInitEmptyRepo: ( + args: InfraInitEmptyRepoVariables, options: { select: S; - } & StrictSelect + } & StrictSelect ) => new QueryBuilder<{ - initEmptyRepo: InferSelectResult | null; + infraInitEmptyRepo: InferSelectResult | null; }>({ client, operation: 'mutation', - operationName: 'InitEmptyRepo', - fieldName: 'initEmptyRepo', + operationName: 'InfraInitEmptyRepo', + fieldName: 'infraInitEmptyRepo', ...buildCustomDocument( 'mutation', - 'InitEmptyRepo', - 'initEmptyRepo', + 'InfraInitEmptyRepo', + 'infraInitEmptyRepo', options.select, args, [ { name: 'input', - type: 'InitEmptyRepoInput!', + type: 'InfraInitEmptyRepoInput!', }, ], connectionFieldsMap, - 'InitEmptyRepoPayload' + 'InfraInitEmptyRepoPayload' ), }), - setDataAtPath: ( - args: SetDataAtPathVariables, + initEmptyRepo: ( + args: InitEmptyRepoVariables, options: { select: S; - } & StrictSelect + } & StrictSelect ) => new QueryBuilder<{ - setDataAtPath: InferSelectResult | null; + initEmptyRepo: InferSelectResult | null; }>({ client, operation: 'mutation', - operationName: 'SetDataAtPath', - fieldName: 'setDataAtPath', + operationName: 'InitEmptyRepo', + fieldName: 'initEmptyRepo', ...buildCustomDocument( 'mutation', - 'SetDataAtPath', - 'setDataAtPath', + 'InitEmptyRepo', + 'initEmptyRepo', options.select, args, [ { name: 'input', - type: 'SetDataAtPathInput!', + type: 'InitEmptyRepoInput!', }, ], connectionFieldsMap, - 'SetDataAtPathPayload' + 'InitEmptyRepoPayload' ), }), importDefinitions: ( @@ -218,6 +236,64 @@ export function createMutationOperations(client: OrmClient) { 'ImportDefinitionsPayload' ), }), + infraSetDataAtPath: ( + args: InfraSetDataAtPathVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + infraSetDataAtPath: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'InfraSetDataAtPath', + fieldName: 'infraSetDataAtPath', + ...buildCustomDocument( + 'mutation', + 'InfraSetDataAtPath', + 'infraSetDataAtPath', + options.select, + args, + [ + { + name: 'input', + type: 'InfraSetDataAtPathInput!', + }, + ], + connectionFieldsMap, + 'InfraSetDataAtPathPayload' + ), + }), + setDataAtPath: ( + args: SetDataAtPathVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + setDataAtPath: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'SetDataAtPath', + fieldName: 'setDataAtPath', + ...buildCustomDocument( + 'mutation', + 'SetDataAtPath', + 'setDataAtPath', + options.select, + args, + [ + { + name: 'input', + type: 'SetDataAtPathInput!', + }, + ], + connectionFieldsMap, + 'SetDataAtPathPayload' + ), + }), copyGraph: ( args: CopyGraphVariables, options: { @@ -421,6 +497,35 @@ export function createMutationOperations(client: OrmClient) { 'AddNodePayload' ), }), + infraInsertNodeAtPath: ( + args: InfraInsertNodeAtPathVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + infraInsertNodeAtPath: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'InfraInsertNodeAtPath', + fieldName: 'infraInsertNodeAtPath', + ...buildCustomDocument( + 'mutation', + 'InfraInsertNodeAtPath', + 'infraInsertNodeAtPath', + options.select, + args, + [ + { + name: 'input', + type: 'InfraInsertNodeAtPathInput!', + }, + ], + connectionFieldsMap, + 'InfraInsertNodeAtPathPayload' + ), + }), insertNodeAtPath: ( args: InsertNodeAtPathVariables, options: { diff --git a/sdk/constructive-cli/src/config/README.md b/sdk/constructive-cli/src/config/README.md index 43932f559c..cf2d7e67dc 100644 --- a/sdk/constructive-cli/src/config/README.md +++ b/sdk/constructive-cli/src/config/README.md @@ -8,9 +8,9 @@ ## Overview -- **Tables:** 2 +- **Tables:** 5 - **Custom queries:** 0 -- **Custom mutations:** 9 +- **Custom mutations:** 13 **Generators:** ORM, CLI diff --git a/sdk/constructive-cli/src/config/cli/README.md b/sdk/constructive-cli/src/config/cli/README.md index 921229256b..0fa4d57f8c 100644 --- a/sdk/constructive-cli/src/config/cli/README.md +++ b/sdk/constructive-cli/src/config/cli/README.md @@ -26,16 +26,23 @@ csdk auth set-token | `context` | Manage API contexts (endpoints) | | `auth` | Manage authentication tokens | | `config` | Manage config key-value store (per-context) | -| `platform-config-definition` | platformConfigDefinition CRUD operations | | `platform-config` | platformConfig CRUD operations | +| `config` | config CRUD operations | +| `platform-internal-secret` | platformInternalSecret CRUD operations | +| `platform-secret` | platformSecret CRUD operations | +| `secret` | secret CRUD operations | +| `platform-internal-secrets-del` | platformInternalSecretsDel | | `platform-secrets-del` | platformSecretsDel | -| `org-secrets-del` | orgSecretsDel | +| `secrets-del` | _secretsDel | +| `platform-internal-secrets-remove-array` | platformInternalSecretsRemoveArray | | `platform-secrets-remove-array` | platformSecretsRemoveArray | -| `org-secrets-remove-array` | orgSecretsRemoveArray | +| `secrets-remove-array` | _secretsRemoveArray | +| `platform-internal-secrets-rotate` | platformInternalSecretsRotate | +| `platform-internal-secrets-set` | platformInternalSecretsSet | | `platform-secrets-rotate` | platformSecretsRotate | +| `secrets-rotate` | _secretsRotate | | `platform-secrets-set` | platformSecretsSet | -| `org-secrets-rotate` | orgSecretsRotate | -| `org-secrets-set` | orgSecretsSet | +| `secrets-set` | _secretsSet | | `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, @@ -82,48 +89,50 @@ Variables are scoped to the active context and stored at `~/.csdk/config/`. ## Table Commands -### `platform-config-definition` +### `platform-config` -CRUD operations for PlatformConfigDefinition records. +CRUD operations for PlatformConfig records. | Subcommand | Description | |------------|-------------| -| `list` | List all platformConfigDefinition records | -| `find-first` | Find first matching platformConfigDefinition record | -| `get` | Get a platformConfigDefinition by id | -| `create` | Create a new platformConfigDefinition | -| `update` | Update an existing platformConfigDefinition | -| `delete` | Delete a platformConfigDefinition | +| `list` | List all platformConfig records | +| `find-first` | Find first matching platformConfig record | +| `get` | Get a platformConfig by id | +| `create` | Create a new platformConfig | +| `update` | Update an existing platformConfig | +| `delete` | Delete a platformConfig | **Fields:** | Field | Type | |-------|------| | `id` | UUID | -| `createdAt` | Datetime | -| `updatedAt` | Datetime | +| `namespaceId` | UUID | | `name` | String | -| `description` | String | -| `defaultValue` | String | -| `isBuiltIn` | Boolean | +| `provider` | String | +| `value` | String | | `labels` | JSON | | `annotations` | JSON | +| `description` | String | +| `createdAt` | Datetime | +| `updatedAt` | Datetime | +| `expiresAt` | Datetime | -**Required create fields:** `name` -**Optional create fields (backend defaults):** `description`, `defaultValue`, `isBuiltIn`, `labels`, `annotations` +**Required create fields:** `namespaceId`, `name` +**Optional create fields (backend defaults):** `provider`, `value`, `labels`, `annotations`, `description`, `expiresAt` -### `platform-config` +### `config` -CRUD operations for PlatformConfig records. +CRUD operations for Config records. | Subcommand | Description | |------------|-------------| -| `list` | List all platformConfig records | -| `find-first` | Find first matching platformConfig record | -| `get` | Get a platformConfig by id | -| `create` | Create a new platformConfig | -| `update` | Update an existing platformConfig | -| `delete` | Delete a platformConfig | +| `list` | List all config records | +| `find-first` | Find first matching config record | +| `get` | Get a config by id | +| `create` | Create a new config | +| `update` | Update an existing config | +| `delete` | Delete a config | **Fields:** @@ -131,7 +140,9 @@ CRUD operations for PlatformConfig records. |-------|------| | `id` | UUID | | `namespaceId` | UUID | +| `databaseId` | UUID | | `name` | String | +| `provider` | String | | `value` | String | | `labels` | JSON | | `annotations` | JSON | @@ -140,11 +151,117 @@ CRUD operations for PlatformConfig records. | `updatedAt` | Datetime | | `expiresAt` | Datetime | -**Required create fields:** `namespaceId`, `name` -**Optional create fields (backend defaults):** `value`, `labels`, `annotations`, `description`, `expiresAt` +**Required create fields:** `namespaceId`, `databaseId`, `name` +**Optional create fields (backend defaults):** `provider`, `value`, `labels`, `annotations`, `description`, `expiresAt` + +### `platform-internal-secret` + +CRUD operations for PlatformInternalSecret records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all platformInternalSecret records | +| `find-first` | Find first matching platformInternalSecret record | +| `get` | Get a platformInternalSecret by id | +| `create` | Create a new platformInternalSecret | +| `update` | Update an existing platformInternalSecret | +| `delete` | Delete a platformInternalSecret | + +**Fields:** + +| Field | Type | +|-------|------| +| `id` | UUID | +| `name` | String | +| `namespaceId` | UUID | +| `description` | String | +| `labels` | JSON | +| `annotations` | JSON | +| `createdAt` | Datetime | +| `updatedAt` | Datetime | +| `rotatedAt` | Datetime | +| `retiredAt` | Datetime | + +**Optional create fields (backend defaults):** `name`, `namespaceId`, `description`, `labels`, `annotations`, `rotatedAt`, `retiredAt` + +### `platform-secret` + +CRUD operations for PlatformSecret records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all platformSecret records | +| `find-first` | Find first matching platformSecret record | +| `get` | Get a platformSecret by id | +| `create` | Create a new platformSecret | +| `update` | Update an existing platformSecret | +| `delete` | Delete a platformSecret | + +**Fields:** + +| Field | Type | +|-------|------| +| `id` | UUID | +| `name` | String | +| `provider` | String | +| `namespaceId` | UUID | +| `description` | String | +| `labels` | JSON | +| `annotations` | JSON | +| `createdAt` | Datetime | +| `updatedAt` | Datetime | +| `rotatedAt` | Datetime | +| `retiredAt` | Datetime | + +**Optional create fields (backend defaults):** `name`, `provider`, `namespaceId`, `description`, `labels`, `annotations`, `rotatedAt`, `retiredAt` + +### `secret` + +CRUD operations for Secret records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all secret records | +| `find-first` | Find first matching secret record | +| `get` | Get a secret by id | +| `create` | Create a new secret | +| `update` | Update an existing secret | +| `delete` | Delete a secret | + +**Fields:** + +| Field | Type | +|-------|------| +| `databaseId` | UUID | +| `id` | UUID | +| `name` | String | +| `provider` | String | +| `namespaceId` | UUID | +| `description` | String | +| `labels` | JSON | +| `annotations` | JSON | +| `createdAt` | Datetime | +| `updatedAt` | Datetime | +| `rotatedAt` | Datetime | +| `retiredAt` | Datetime | + +**Optional create fields (backend defaults):** `databaseId`, `name`, `provider`, `namespaceId`, `description`, `labels`, `annotations`, `rotatedAt`, `retiredAt` ## Custom Operations +### `platform-internal-secrets-del` + +platformInternalSecretsDel + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `--input.clientMutationId` | String | + | `--input.secretName` | String | + | `--input.namespaceId` | UUID | + ### `platform-secrets-del` platformSecretsDel @@ -158,9 +275,9 @@ platformSecretsDel | `--input.secretName` | String | | `--input.namespaceId` | UUID | -### `org-secrets-del` +### `secrets-del` -orgSecretsDel +_secretsDel - **Type:** mutation - **Arguments:** @@ -168,10 +285,23 @@ orgSecretsDel | Argument | Type | |----------|------| | `--input.clientMutationId` | String | - | `--input.ownerId` | UUID | + | `--input.databaseId` | UUID | | `--input.secretName` | String | | `--input.namespaceId` | UUID | +### `platform-internal-secrets-remove-array` + +platformInternalSecretsRemoveArray + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `--input.clientMutationId` | String | + | `--input.secretNames` | String | + | `--input.namespaceId` | UUID | + ### `platform-secrets-remove-array` platformSecretsRemoveArray @@ -185,9 +315,9 @@ platformSecretsRemoveArray | `--input.secretNames` | String | | `--input.namespaceId` | UUID | -### `org-secrets-remove-array` +### `secrets-remove-array` -orgSecretsRemoveArray +_secretsRemoveArray - **Type:** mutation - **Arguments:** @@ -195,13 +325,13 @@ orgSecretsRemoveArray | Argument | Type | |----------|------| | `--input.clientMutationId` | String | - | `--input.ownerId` | UUID | + | `--input.databaseId` | UUID | | `--input.secretNames` | String | | `--input.namespaceId` | UUID | -### `platform-secrets-rotate` +### `platform-internal-secrets-rotate` -platformSecretsRotate +platformInternalSecretsRotate - **Type:** mutation - **Arguments:** @@ -214,9 +344,9 @@ platformSecretsRotate | `--input.namespaceId` | UUID | | `--input.algo` | String | -### `platform-secrets-set` +### `platform-internal-secrets-set` -platformSecretsSet +platformInternalSecretsSet - **Type:** mutation - **Arguments:** @@ -229,9 +359,9 @@ platformSecretsSet | `--input.secretNamespaceId` | UUID | | `--input.algo` | String | -### `org-secrets-rotate` +### `platform-secrets-rotate` -orgSecretsRotate +platformSecretsRotate - **Type:** mutation - **Arguments:** @@ -239,15 +369,46 @@ orgSecretsRotate | Argument | Type | |----------|------| | `--input.clientMutationId` | String | - | `--input.ownerId` | UUID | | `--input.secretName` | String | | `--input.secretValue` | String | | `--input.namespaceId` | UUID | | `--input.algo` | String | -### `org-secrets-set` +### `secrets-rotate` + +_secretsRotate + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `--input.clientMutationId` | String | + | `--input.databaseId` | UUID | + | `--input.secretName` | String | + | `--input.secretValue` | String | + | `--input.namespaceId` | UUID | + | `--input.algo` | String | + +### `platform-secrets-set` + +platformSecretsSet + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `--input.clientMutationId` | String | + | `--input.secretName` | String | + | `--input.secretValue` | String | + | `--input.secretNamespaceId` | UUID | + | `--input.algo` | String | + | `--input.provider` | String | + +### `secrets-set` -orgSecretsSet +_secretsSet - **Type:** mutation - **Arguments:** @@ -255,11 +416,12 @@ orgSecretsSet | Argument | Type | |----------|------| | `--input.clientMutationId` | String | - | `--input.scopeOwnerId` | UUID | + | `--input.scopeDatabaseId` | UUID | | `--input.secretName` | String | | `--input.secretValue` | String | | `--input.secretNamespaceId` | UUID | | `--input.algo` | String | + | `--input.provider` | String | ### `provision-bucket` diff --git a/sdk/constructive-cli/src/config/cli/commands.ts b/sdk/constructive-cli/src/config/cli/commands.ts index dddc9888c3..fd642bdfd4 100644 --- a/sdk/constructive-cli/src/config/cli/commands.ts +++ b/sdk/constructive-cli/src/config/cli/commands.ts @@ -6,16 +6,23 @@ import { CLIOptions, Inquirerer, extractFirst } from 'inquirerer'; import contextCmd from './commands/context'; import authCmd from './commands/auth'; -import platformConfigDefinitionCmd from './commands/platform-config-definition'; import platformConfigCmd from './commands/platform-config'; +import configCmd from './commands/config'; +import platformInternalSecretCmd from './commands/platform-internal-secret'; +import platformSecretCmd from './commands/platform-secret'; +import secretCmd from './commands/secret'; +import platformInternalSecretsDelCmd from './commands/platform-internal-secrets-del'; import platformSecretsDelCmd from './commands/platform-secrets-del'; -import orgSecretsDelCmd from './commands/org-secrets-del'; +import _secretsDelCmd from './commands/secrets-del'; +import platformInternalSecretsRemoveArrayCmd from './commands/platform-internal-secrets-remove-array'; import platformSecretsRemoveArrayCmd from './commands/platform-secrets-remove-array'; -import orgSecretsRemoveArrayCmd from './commands/org-secrets-remove-array'; +import _secretsRemoveArrayCmd from './commands/secrets-remove-array'; +import platformInternalSecretsRotateCmd from './commands/platform-internal-secrets-rotate'; +import platformInternalSecretsSetCmd from './commands/platform-internal-secrets-set'; import platformSecretsRotateCmd from './commands/platform-secrets-rotate'; +import _secretsRotateCmd from './commands/secrets-rotate'; import platformSecretsSetCmd from './commands/platform-secrets-set'; -import orgSecretsRotateCmd from './commands/org-secrets-rotate'; -import orgSecretsSetCmd from './commands/org-secrets-set'; +import _secretsSetCmd from './commands/secrets-set'; import provisionBucketCmd from './commands/provision-bucket'; const createCommandMap: () => Record< string, @@ -27,20 +34,27 @@ const createCommandMap: () => Record< > = () => ({ context: contextCmd, auth: authCmd, - 'platform-config-definition': platformConfigDefinitionCmd, 'platform-config': platformConfigCmd, + config: configCmd, + 'platform-internal-secret': platformInternalSecretCmd, + 'platform-secret': platformSecretCmd, + secret: secretCmd, + 'platform-internal-secrets-del': platformInternalSecretsDelCmd, 'platform-secrets-del': platformSecretsDelCmd, - 'org-secrets-del': orgSecretsDelCmd, + 'secrets-del': _secretsDelCmd, + 'platform-internal-secrets-remove-array': platformInternalSecretsRemoveArrayCmd, 'platform-secrets-remove-array': platformSecretsRemoveArrayCmd, - 'org-secrets-remove-array': orgSecretsRemoveArrayCmd, + 'secrets-remove-array': _secretsRemoveArrayCmd, + 'platform-internal-secrets-rotate': platformInternalSecretsRotateCmd, + 'platform-internal-secrets-set': platformInternalSecretsSetCmd, 'platform-secrets-rotate': platformSecretsRotateCmd, + 'secrets-rotate': _secretsRotateCmd, 'platform-secrets-set': platformSecretsSetCmd, - 'org-secrets-rotate': orgSecretsRotateCmd, - 'org-secrets-set': orgSecretsSetCmd, + 'secrets-set': _secretsSetCmd, 'provision-bucket': provisionBucketCmd, }); const usage = - '\ncsdk \n\nCommands:\n context Manage API contexts\n auth Manage authentication\n platform-config-definition platformConfigDefinition CRUD operations\n platform-config platformConfig CRUD operations\n platform-secrets-del platformSecretsDel\n org-secrets-del orgSecretsDel\n platform-secrets-remove-array platformSecretsRemoveArray\n org-secrets-remove-array orgSecretsRemoveArray\n platform-secrets-rotate platformSecretsRotate\n platform-secrets-set platformSecretsSet\n org-secrets-rotate orgSecretsRotate\n org-secrets-set orgSecretsSet\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 platform-config platformConfig CRUD operations\n config config CRUD operations\n platform-internal-secret platformInternalSecret CRUD operations\n platform-secret platformSecret CRUD operations\n secret secret CRUD operations\n platform-internal-secrets-del platformInternalSecretsDel\n platform-secrets-del platformSecretsDel\n secrets-del _secretsDel\n platform-internal-secrets-remove-array platformInternalSecretsRemoveArray\n platform-secrets-remove-array platformSecretsRemoveArray\n secrets-remove-array _secretsRemoveArray\n platform-internal-secrets-rotate platformInternalSecretsRotate\n platform-internal-secrets-set platformInternalSecretsSet\n platform-secrets-rotate platformSecretsRotate\n secrets-rotate _secretsRotate\n platform-secrets-set platformSecretsSet\n secrets-set _secretsSet\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/platform-config-definition.ts b/sdk/constructive-cli/src/config/cli/commands/config.ts similarity index 73% rename from sdk/constructive-cli/src/config/cli/commands/platform-config-definition.ts rename to sdk/constructive-cli/src/config/cli/commands/config.ts index 6a6cb0991b..154fc8d811 100644 --- a/sdk/constructive-cli/src/config/cli/commands/platform-config-definition.ts +++ b/sdk/constructive-cli/src/config/cli/commands/config.ts @@ -1,5 +1,5 @@ /** - * CLI commands for PlatformConfigDefinition + * CLI commands for Config * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -8,26 +8,29 @@ import { getClient } from '../executor'; import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; import type { FieldSchema } from '../utils'; import type { - CreatePlatformConfigDefinitionInput, - PlatformConfigDefinitionPatch, - PlatformConfigDefinitionSelect, - PlatformConfigDefinitionFilter, - PlatformConfigDefinitionOrderBy, + CreateConfigInput, + ConfigPatch, + ConfigSelect, + ConfigFilter, + ConfigOrderBy, } from '../../orm/input-types'; import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; const fieldSchema: FieldSchema = { id: 'uuid', - createdAt: 'string', - updatedAt: 'string', + namespaceId: 'uuid', + databaseId: 'uuid', name: 'string', - description: 'string', - defaultValue: 'string', - isBuiltIn: 'boolean', + provider: 'string', + value: 'string', labels: 'json', annotations: 'json', + description: 'string', + createdAt: 'string', + updatedAt: 'string', + expiresAt: 'string', }; const usage = - '\nplatform-config-definition \n\nCommands:\n list List platformConfigDefinition records\n find-first Find first matching platformConfigDefinition record\n get Get a platformConfigDefinition by ID\n create Create a new platformConfigDefinition\n update Update an existing platformConfigDefinition\n delete Delete a platformConfigDefinition\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\n --help, -h Show this help message\n'; + '\nconfig \n\nCommands:\n list List config records\n find-first Find first matching config record\n get Get a config by ID\n create Create a new config\n update Update an existing config\n delete Delete a config\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (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, @@ -78,26 +81,25 @@ async function handleList(argv: Partial>, _prompter: Inq try { const defaultSelect = { id: true, - createdAt: true, - updatedAt: true, + namespaceId: true, + databaseId: true, name: true, - description: true, - defaultValue: true, - isBuiltIn: true, + provider: true, + value: true, labels: true, annotations: true, + description: true, + createdAt: true, + updatedAt: true, + expiresAt: true, }; const findManyArgs = parseFindManyArgs< - FindManyArgs< - PlatformConfigDefinitionSelect, - PlatformConfigDefinitionFilter, - PlatformConfigDefinitionOrderBy - > & { - select: PlatformConfigDefinitionSelect; + FindManyArgs & { + select: ConfigSelect; } >(argv, defaultSelect); const client = getClient(); - const result = await client.platformConfigDefinition.findMany(findManyArgs).execute(); + const result = await client.config.findMany(findManyArgs).execute(); console.log(JSON.stringify(result, null, 2)); } catch (error) { console.error('Failed to list records.'); @@ -111,26 +113,25 @@ async function handleFindFirst(argv: Partial>, _prompter try { const defaultSelect = { id: true, - createdAt: true, - updatedAt: true, + namespaceId: true, + databaseId: true, name: true, - description: true, - defaultValue: true, - isBuiltIn: true, + provider: true, + value: true, labels: true, annotations: true, + description: true, + createdAt: true, + updatedAt: true, + expiresAt: true, }; const findFirstArgs = parseFindFirstArgs< - FindFirstArgs< - PlatformConfigDefinitionSelect, - PlatformConfigDefinitionFilter, - PlatformConfigDefinitionOrderBy - > & { - select: PlatformConfigDefinitionSelect; + FindFirstArgs & { + select: ConfigSelect; } >(argv, defaultSelect); const client = getClient(); - const result = await client.platformConfigDefinition.findFirst(findFirstArgs).execute(); + const result = await client.config.findFirst(findFirstArgs).execute(); console.log(JSON.stringify(result, null, 2)); } catch (error) { console.error('Failed to find record.'); @@ -151,19 +152,22 @@ async function handleGet(argv: Partial>, prompter: Inqui }, ]); const client = getClient(); - const result = await client.platformConfigDefinition + const result = await client.config .findOne({ id: answers.id as string, select: { id: true, - createdAt: true, - updatedAt: true, + namespaceId: true, + databaseId: true, name: true, - description: true, - defaultValue: true, - isBuiltIn: true, + provider: true, + value: true, labels: true, annotations: true, + description: true, + createdAt: true, + updatedAt: true, + expiresAt: true, }, }) .execute(); @@ -181,28 +185,33 @@ async function handleCreate(argv: Partial>, prompter: In const rawAnswers = await prompter.prompt(argv, [ { type: 'text', - name: 'name', - message: 'name', + name: 'namespaceId', + message: 'namespaceId', required: true, }, { type: 'text', - name: 'description', - message: 'description', - required: false, - skipPrompt: true, + name: 'databaseId', + message: 'databaseId', + required: true, + }, + { + type: 'text', + name: 'name', + message: 'name', + required: true, }, { type: 'text', - name: 'defaultValue', - message: 'defaultValue', + name: 'provider', + message: 'provider', required: false, skipPrompt: true, }, { - type: 'boolean', - name: 'isBuiltIn', - message: 'isBuiltIn', + type: 'text', + name: 'value', + message: 'value', required: false, skipPrompt: true, }, @@ -220,33 +229,50 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'description', + message: 'description', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'expiresAt', + message: 'expiresAt', + required: false, + skipPrompt: true, + }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined( - answers, - fieldSchema - ) as CreatePlatformConfigDefinitionInput['platformConfigDefinition']; + const cleanedData = stripUndefined(answers, fieldSchema) as CreateConfigInput['config']; const client = getClient(); - const result = await client.platformConfigDefinition + const result = await client.config .create({ data: { + namespaceId: cleanedData.namespaceId, + databaseId: cleanedData.databaseId, name: cleanedData.name, - description: cleanedData.description, - defaultValue: cleanedData.defaultValue, - isBuiltIn: cleanedData.isBuiltIn, + provider: cleanedData.provider, + value: cleanedData.value, labels: cleanedData.labels, annotations: cleanedData.annotations, + description: cleanedData.description, + expiresAt: cleanedData.expiresAt, }, select: { id: true, - createdAt: true, - updatedAt: true, + namespaceId: true, + databaseId: true, name: true, - description: true, - defaultValue: true, - isBuiltIn: true, + provider: true, + value: true, labels: true, annotations: true, + description: true, + createdAt: true, + updatedAt: true, + expiresAt: true, }, }) .execute(); @@ -270,28 +296,33 @@ async function handleUpdate(argv: Partial>, prompter: In }, { type: 'text', - name: 'name', - message: 'name', + name: 'namespaceId', + message: 'namespaceId', required: false, }, { type: 'text', - name: 'description', - message: 'description', + name: 'databaseId', + message: 'databaseId', required: false, - skipPrompt: true, }, { type: 'text', - name: 'defaultValue', - message: 'defaultValue', + name: 'name', + message: 'name', + required: false, + }, + { + type: 'text', + name: 'provider', + message: 'provider', required: false, skipPrompt: true, }, { - type: 'boolean', - name: 'isBuiltIn', - message: 'isBuiltIn', + type: 'text', + name: 'value', + message: 'value', required: false, skipPrompt: true, }, @@ -309,33 +340,53 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'description', + message: 'description', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'expiresAt', + message: 'expiresAt', + required: false, + skipPrompt: true, + }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined(answers, fieldSchema) as PlatformConfigDefinitionPatch; + const cleanedData = stripUndefined(answers, fieldSchema) as ConfigPatch; const client = getClient(); - const result = await client.platformConfigDefinition + const result = await client.config .update({ where: { id: answers.id as string, }, data: { + namespaceId: cleanedData.namespaceId, + databaseId: cleanedData.databaseId, name: cleanedData.name, - description: cleanedData.description, - defaultValue: cleanedData.defaultValue, - isBuiltIn: cleanedData.isBuiltIn, + provider: cleanedData.provider, + value: cleanedData.value, labels: cleanedData.labels, annotations: cleanedData.annotations, + description: cleanedData.description, + expiresAt: cleanedData.expiresAt, }, select: { id: true, - createdAt: true, - updatedAt: true, + namespaceId: true, + databaseId: true, name: true, - description: true, - defaultValue: true, - isBuiltIn: true, + provider: true, + value: true, labels: true, annotations: true, + description: true, + createdAt: true, + updatedAt: true, + expiresAt: true, }, }) .execute(); @@ -360,7 +411,7 @@ async function handleDelete(argv: Partial>, prompter: In ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const client = getClient(); - const result = await client.platformConfigDefinition + const result = await client.config .delete({ where: { id: answers.id as string, 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 d8e1398c75..3947de06af 100644 --- a/sdk/constructive-cli/src/config/cli/commands/platform-config.ts +++ b/sdk/constructive-cli/src/config/cli/commands/platform-config.ts @@ -19,6 +19,7 @@ const fieldSchema: FieldSchema = { id: 'uuid', namespaceId: 'uuid', name: 'string', + provider: 'string', value: 'string', labels: 'json', annotations: 'json', @@ -81,6 +82,7 @@ async function handleList(argv: Partial>, _prompter: Inq id: true, namespaceId: true, name: true, + provider: true, value: true, labels: true, annotations: true, @@ -111,6 +113,7 @@ async function handleFindFirst(argv: Partial>, _prompter id: true, namespaceId: true, name: true, + provider: true, value: true, labels: true, annotations: true, @@ -153,6 +156,7 @@ async function handleGet(argv: Partial>, prompter: Inqui id: true, namespaceId: true, name: true, + provider: true, value: true, labels: true, annotations: true, @@ -187,6 +191,13 @@ async function handleCreate(argv: Partial>, prompter: In message: 'name', required: true, }, + { + type: 'text', + name: 'provider', + message: 'provider', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'value', @@ -234,6 +245,7 @@ async function handleCreate(argv: Partial>, prompter: In data: { namespaceId: cleanedData.namespaceId, name: cleanedData.name, + provider: cleanedData.provider, value: cleanedData.value, labels: cleanedData.labels, annotations: cleanedData.annotations, @@ -244,6 +256,7 @@ async function handleCreate(argv: Partial>, prompter: In id: true, namespaceId: true, name: true, + provider: true, value: true, labels: true, annotations: true, @@ -284,6 +297,13 @@ async function handleUpdate(argv: Partial>, prompter: In message: 'name', required: false, }, + { + type: 'text', + name: 'provider', + message: 'provider', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'value', @@ -331,6 +351,7 @@ async function handleUpdate(argv: Partial>, prompter: In data: { namespaceId: cleanedData.namespaceId, name: cleanedData.name, + provider: cleanedData.provider, value: cleanedData.value, labels: cleanedData.labels, annotations: cleanedData.annotations, @@ -341,6 +362,7 @@ async function handleUpdate(argv: Partial>, prompter: In id: true, namespaceId: true, name: true, + provider: true, value: true, labels: true, annotations: true, 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 new file mode 100644 index 0000000000..22f9fdf6ea --- /dev/null +++ b/sdk/constructive-cli/src/config/cli/commands/platform-internal-secret.ts @@ -0,0 +1,232 @@ +/** + * CLI commands for PlatformInternalSecret + * @generated 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 { + CreatePlatformInternalSecretInput, + PlatformInternalSecretPatch, + PlatformInternalSecretSelect, + PlatformInternalSecretFilter, + PlatformInternalSecretOrderBy, +} from '../../orm/input-types'; +import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; +const fieldSchema: FieldSchema = { + id: 'uuid', + name: 'string', + namespaceId: 'uuid', + description: 'string', + labels: 'json', + annotations: 'json', + createdAt: 'string', + updatedAt: 'string', + rotatedAt: 'string', + retiredAt: 'string', +}; +const usage = + '\nplatform-internal-secret \n\nCommands:\n list List platformInternalSecret records\n find-first Find first matching platformInternalSecret record\n create Create a new platformInternalSecret\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (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 = { + id: true, + name: true, + namespaceId: true, + description: true, + labels: true, + annotations: true, + createdAt: true, + updatedAt: true, + rotatedAt: true, + retiredAt: true, + }; + const findManyArgs = parseFindManyArgs< + FindManyArgs< + PlatformInternalSecretSelect, + PlatformInternalSecretFilter, + PlatformInternalSecretOrderBy + > & { + select: PlatformInternalSecretSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.platformInternalSecret.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, + name: true, + namespaceId: true, + description: true, + labels: true, + annotations: true, + createdAt: true, + updatedAt: true, + rotatedAt: true, + retiredAt: true, + }; + const findFirstArgs = parseFindFirstArgs< + FindFirstArgs< + PlatformInternalSecretSelect, + PlatformInternalSecretFilter, + PlatformInternalSecretOrderBy + > & { + select: PlatformInternalSecretSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.platformInternalSecret.findFirst(findFirstArgs).execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to find record.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} +async function handleCreate(argv: Partial>, prompter: Inquirerer) { + try { + const rawAnswers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'name', + message: 'name', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'namespaceId', + message: 'namespaceId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'description', + message: 'description', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'labels', + message: 'labels', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'annotations', + message: 'annotations', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'rotatedAt', + message: 'rotatedAt', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'retiredAt', + message: 'retiredAt', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined( + answers, + fieldSchema + ) as CreatePlatformInternalSecretInput['platformInternalSecret']; + const client = getClient(); + const result = await client.platformInternalSecret + .create({ + data: { + name: cleanedData.name, + namespaceId: cleanedData.namespaceId, + description: cleanedData.description, + labels: cleanedData.labels, + annotations: cleanedData.annotations, + rotatedAt: cleanedData.rotatedAt, + retiredAt: cleanedData.retiredAt, + }, + select: { + id: true, + name: true, + namespaceId: true, + description: true, + labels: true, + annotations: true, + createdAt: true, + updatedAt: true, + rotatedAt: true, + retiredAt: true, + }, + }) + .execute(); + console.log(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/platform-internal-secrets-del.ts b/sdk/constructive-cli/src/config/cli/commands/platform-internal-secrets-del.ts new file mode 100644 index 0000000000..70921af0ef --- /dev/null +++ b/sdk/constructive-cli/src/config/cli/commands/platform-internal-secrets-del.ts @@ -0,0 +1,53 @@ +/** + * CLI command for mutation platformInternalSecretsDel + * @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 { PlatformInternalSecretsDelVariables } from '../../orm/mutation'; +import type { PlatformInternalSecretsDelPayloadSelect } from '../../orm/input-types'; +export default async ( + argv: Partial>, + prompter: Inquirerer, + _options: CLIOptions +) => { + try { + if (argv.help || argv.h) { + console.log( + 'platform-internal-secrets-del - platformInternalSecretsDel\n\nUsage: platform-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 + .platformInternalSecretsDel( + parsedAnswers as unknown as PlatformInternalSecretsDelVariables, + { + select: selectFields, + } as unknown as { + select: PlatformInternalSecretsDelPayloadSelect; + } + ) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed: platformInternalSecretsDel'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +}; diff --git a/sdk/constructive-cli/src/config/cli/commands/platform-internal-secrets-remove-array.ts b/sdk/constructive-cli/src/config/cli/commands/platform-internal-secrets-remove-array.ts new file mode 100644 index 0000000000..ee9eabbef5 --- /dev/null +++ b/sdk/constructive-cli/src/config/cli/commands/platform-internal-secrets-remove-array.ts @@ -0,0 +1,53 @@ +/** + * CLI command for mutation platformInternalSecretsRemoveArray + * @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 { PlatformInternalSecretsRemoveArrayVariables } from '../../orm/mutation'; +import type { PlatformInternalSecretsRemoveArrayPayloadSelect } from '../../orm/input-types'; +export default async ( + argv: Partial>, + prompter: Inquirerer, + _options: CLIOptions +) => { + try { + if (argv.help || argv.h) { + console.log( + 'platform-internal-secrets-remove-array - platformInternalSecretsRemoveArray\n\nUsage: platform-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 + .platformInternalSecretsRemoveArray( + parsedAnswers as unknown as PlatformInternalSecretsRemoveArrayVariables, + { + select: selectFields, + } as unknown as { + select: PlatformInternalSecretsRemoveArrayPayloadSelect; + } + ) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed: platformInternalSecretsRemoveArray'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +}; diff --git a/sdk/constructive-cli/src/config/cli/commands/platform-internal-secrets-rotate.ts b/sdk/constructive-cli/src/config/cli/commands/platform-internal-secrets-rotate.ts new file mode 100644 index 0000000000..46bfa993f3 --- /dev/null +++ b/sdk/constructive-cli/src/config/cli/commands/platform-internal-secrets-rotate.ts @@ -0,0 +1,53 @@ +/** + * CLI command for mutation platformInternalSecretsRotate + * @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 { PlatformInternalSecretsRotateVariables } from '../../orm/mutation'; +import type { PlatformInternalSecretsRotatePayloadSelect } from '../../orm/input-types'; +export default async ( + argv: Partial>, + prompter: Inquirerer, + _options: CLIOptions +) => { + try { + if (argv.help || argv.h) { + console.log( + 'platform-internal-secrets-rotate - platformInternalSecretsRotate\n\nUsage: platform-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 + .platformInternalSecretsRotate( + parsedAnswers as unknown as PlatformInternalSecretsRotateVariables, + { + select: selectFields, + } as unknown as { + select: PlatformInternalSecretsRotatePayloadSelect; + } + ) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed: platformInternalSecretsRotate'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +}; diff --git a/sdk/constructive-cli/src/config/cli/commands/platform-internal-secrets-set.ts b/sdk/constructive-cli/src/config/cli/commands/platform-internal-secrets-set.ts new file mode 100644 index 0000000000..0daec243c1 --- /dev/null +++ b/sdk/constructive-cli/src/config/cli/commands/platform-internal-secrets-set.ts @@ -0,0 +1,53 @@ +/** + * CLI command for mutation platformInternalSecretsSet + * @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 { PlatformInternalSecretsSetVariables } from '../../orm/mutation'; +import type { PlatformInternalSecretsSetPayloadSelect } from '../../orm/input-types'; +export default async ( + argv: Partial>, + prompter: Inquirerer, + _options: CLIOptions +) => { + try { + if (argv.help || argv.h) { + console.log( + 'platform-internal-secrets-set - platformInternalSecretsSet\n\nUsage: platform-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 + .platformInternalSecretsSet( + parsedAnswers as unknown as PlatformInternalSecretsSetVariables, + { + select: selectFields, + } as unknown as { + select: PlatformInternalSecretsSetPayloadSelect; + } + ) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed: platformInternalSecretsSet'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +}; diff --git a/sdk/constructive-cli/src/config/cli/commands/platform-secret.ts b/sdk/constructive-cli/src/config/cli/commands/platform-secret.ts new file mode 100644 index 0000000000..0b92368c69 --- /dev/null +++ b/sdk/constructive-cli/src/config/cli/commands/platform-secret.ts @@ -0,0 +1,236 @@ +/** + * CLI commands for PlatformSecret + * @generated 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 { + CreatePlatformSecretInput, + PlatformSecretPatch, + PlatformSecretSelect, + PlatformSecretFilter, + PlatformSecretOrderBy, +} from '../../orm/input-types'; +import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; +const fieldSchema: FieldSchema = { + id: 'uuid', + name: 'string', + provider: 'string', + namespaceId: 'uuid', + description: 'string', + labels: 'json', + annotations: 'json', + createdAt: 'string', + updatedAt: 'string', + rotatedAt: 'string', + retiredAt: 'string', +}; +const usage = + '\nplatform-secret \n\nCommands:\n list List platformSecret records\n find-first Find first matching platformSecret record\n create Create a new platformSecret\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (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 = { + id: true, + name: true, + provider: true, + namespaceId: true, + description: true, + labels: true, + annotations: true, + createdAt: true, + updatedAt: true, + rotatedAt: true, + retiredAt: true, + }; + const findManyArgs = parseFindManyArgs< + FindManyArgs & { + select: PlatformSecretSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.platformSecret.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, + name: true, + provider: true, + namespaceId: true, + description: true, + labels: true, + annotations: true, + createdAt: true, + updatedAt: true, + rotatedAt: true, + retiredAt: true, + }; + const findFirstArgs = parseFindFirstArgs< + FindFirstArgs & { + select: PlatformSecretSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.platformSecret.findFirst(findFirstArgs).execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to find record.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} +async function handleCreate(argv: Partial>, prompter: Inquirerer) { + try { + const rawAnswers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'name', + message: 'name', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'provider', + message: 'provider', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'namespaceId', + message: 'namespaceId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'description', + message: 'description', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'labels', + message: 'labels', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'annotations', + message: 'annotations', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'rotatedAt', + message: 'rotatedAt', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'retiredAt', + message: 'retiredAt', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined( + answers, + fieldSchema + ) as CreatePlatformSecretInput['platformSecret']; + const client = getClient(); + const result = await client.platformSecret + .create({ + data: { + name: cleanedData.name, + provider: cleanedData.provider, + namespaceId: cleanedData.namespaceId, + description: cleanedData.description, + labels: cleanedData.labels, + annotations: cleanedData.annotations, + rotatedAt: cleanedData.rotatedAt, + retiredAt: cleanedData.retiredAt, + }, + select: { + id: true, + name: true, + provider: true, + namespaceId: true, + description: true, + labels: true, + annotations: true, + createdAt: true, + updatedAt: true, + rotatedAt: true, + retiredAt: true, + }, + }) + .execute(); + console.log(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/secret.ts b/sdk/constructive-cli/src/config/cli/commands/secret.ts new file mode 100644 index 0000000000..513d39049c --- /dev/null +++ b/sdk/constructive-cli/src/config/cli/commands/secret.ts @@ -0,0 +1,245 @@ +/** + * CLI commands for Secret + * @generated 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 { + CreateSecretInput, + SecretPatch, + SecretSelect, + SecretFilter, + SecretOrderBy, +} from '../../orm/input-types'; +import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; +const fieldSchema: FieldSchema = { + databaseId: 'uuid', + id: 'uuid', + name: 'string', + provider: 'string', + namespaceId: 'uuid', + description: 'string', + labels: 'json', + annotations: 'json', + createdAt: 'string', + updatedAt: 'string', + rotatedAt: 'string', + retiredAt: 'string', +}; +const usage = + '\nsecret \n\nCommands:\n list List secret records\n find-first Find first matching secret record\n create Create a new secret\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (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 = { + databaseId: true, + id: true, + name: true, + provider: true, + namespaceId: true, + description: true, + labels: true, + annotations: true, + createdAt: true, + updatedAt: true, + rotatedAt: true, + retiredAt: true, + }; + const findManyArgs = parseFindManyArgs< + FindManyArgs & { + select: SecretSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.secret.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, + name: true, + provider: true, + namespaceId: true, + description: true, + labels: true, + annotations: true, + createdAt: true, + updatedAt: true, + rotatedAt: true, + retiredAt: true, + }; + const findFirstArgs = parseFindFirstArgs< + FindFirstArgs & { + select: SecretSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.secret.findFirst(findFirstArgs).execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to find record.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} +async function handleCreate(argv: Partial>, prompter: Inquirerer) { + try { + const rawAnswers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'databaseId', + message: 'databaseId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'name', + message: 'name', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'provider', + message: 'provider', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'namespaceId', + message: 'namespaceId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'description', + message: 'description', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'labels', + message: 'labels', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'annotations', + message: 'annotations', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'rotatedAt', + message: 'rotatedAt', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'retiredAt', + message: 'retiredAt', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined(answers, fieldSchema) as CreateSecretInput['secret']; + const client = getClient(); + const result = await client.secret + .create({ + data: { + databaseId: cleanedData.databaseId, + name: cleanedData.name, + provider: cleanedData.provider, + namespaceId: cleanedData.namespaceId, + description: cleanedData.description, + labels: cleanedData.labels, + annotations: cleanedData.annotations, + rotatedAt: cleanedData.rotatedAt, + retiredAt: cleanedData.retiredAt, + }, + select: { + databaseId: true, + id: true, + name: true, + provider: true, + namespaceId: true, + description: true, + labels: true, + annotations: true, + createdAt: true, + updatedAt: true, + rotatedAt: true, + retiredAt: true, + }, + }) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to create record.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} diff --git a/sdk/constructive-cli/src/api/cli/commands/bootstrap-user.ts b/sdk/constructive-cli/src/config/cli/commands/secrets-del.ts similarity index 73% rename from sdk/constructive-cli/src/api/cli/commands/bootstrap-user.ts rename to sdk/constructive-cli/src/config/cli/commands/secrets-del.ts index d68f636979..737daa2aef 100644 --- a/sdk/constructive-cli/src/api/cli/commands/bootstrap-user.ts +++ b/sdk/constructive-cli/src/config/cli/commands/secrets-del.ts @@ -1,13 +1,13 @@ /** - * CLI command for mutation bootstrapUser + * CLI command for mutation _secretsDel * @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 { BootstrapUserVariables } from '../../orm/mutation'; -import type { BootstrapUserPayloadSelect } from '../../orm/input-types'; +import type { _secretsDelVariables } from '../../orm/mutation'; +import type { _SecretsDelPayloadSelect } from '../../orm/input-types'; export default async ( argv: Partial>, prompter: Inquirerer, @@ -15,7 +15,7 @@ export default async ( ) => { try { if (argv.help || argv.h) { - console.log('bootstrap-user - bootstrapUser\n\nUsage: bootstrap-user [OPTIONS]\n'); + console.log('secrets-del - _secretsDel\n\nUsage: secrets-del [OPTIONS]\n'); process.exit(0); } const answers = await prompter.prompt(argv, [ @@ -31,18 +31,18 @@ export default async ( const parsedAnswers = unflattenDotNotation(answers); const selectFields = buildSelectFromPaths((argv.select as string) ?? 'clientMutationId'); const result = await client.mutation - .bootstrapUser( - parsedAnswers as unknown as BootstrapUserVariables, + ._secretsDel( + parsedAnswers as unknown as _secretsDelVariables, { select: selectFields, } as unknown as { - select: BootstrapUserPayloadSelect; + select: _SecretsDelPayloadSelect; } ) .execute(); console.log(JSON.stringify(result, null, 2)); } catch (error) { - console.error('Failed: bootstrapUser'); + console.error('Failed: _secretsDel'); if (error instanceof Error) { console.error(error.message); } diff --git a/sdk/constructive-cli/src/config/cli/commands/secrets-remove-array.ts b/sdk/constructive-cli/src/config/cli/commands/secrets-remove-array.ts new file mode 100644 index 0000000000..8c2cb720c1 --- /dev/null +++ b/sdk/constructive-cli/src/config/cli/commands/secrets-remove-array.ts @@ -0,0 +1,53 @@ +/** + * CLI command for mutation _secretsRemoveArray + * @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 { _secretsRemoveArrayVariables } from '../../orm/mutation'; +import type { _SecretsRemoveArrayPayloadSelect } from '../../orm/input-types'; +export default async ( + argv: Partial>, + prompter: Inquirerer, + _options: CLIOptions +) => { + try { + if (argv.help || argv.h) { + console.log( + 'secrets-remove-array - _secretsRemoveArray\n\nUsage: 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 + ._secretsRemoveArray( + parsedAnswers as unknown as _secretsRemoveArrayVariables, + { + select: selectFields, + } as unknown as { + select: _SecretsRemoveArrayPayloadSelect; + } + ) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed: _secretsRemoveArray'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +}; diff --git a/sdk/constructive-cli/src/config/cli/commands/org-secrets-del.ts b/sdk/constructive-cli/src/config/cli/commands/secrets-rotate.ts similarity index 73% rename from sdk/constructive-cli/src/config/cli/commands/org-secrets-del.ts rename to sdk/constructive-cli/src/config/cli/commands/secrets-rotate.ts index a01ebabe32..849bb8aa12 100644 --- a/sdk/constructive-cli/src/config/cli/commands/org-secrets-del.ts +++ b/sdk/constructive-cli/src/config/cli/commands/secrets-rotate.ts @@ -1,13 +1,13 @@ /** - * CLI command for mutation orgSecretsDel + * CLI command for mutation _secretsRotate * @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 { OrgSecretsDelVariables } from '../../orm/mutation'; -import type { OrgSecretsDelPayloadSelect } from '../../orm/input-types'; +import type { _secretsRotateVariables } from '../../orm/mutation'; +import type { _SecretsRotatePayloadSelect } from '../../orm/input-types'; export default async ( argv: Partial>, prompter: Inquirerer, @@ -15,7 +15,7 @@ export default async ( ) => { try { if (argv.help || argv.h) { - console.log('org-secrets-del - orgSecretsDel\n\nUsage: org-secrets-del [OPTIONS]\n'); + console.log('secrets-rotate - _secretsRotate\n\nUsage: secrets-rotate [OPTIONS]\n'); process.exit(0); } const answers = await prompter.prompt(argv, [ @@ -31,18 +31,18 @@ export default async ( const parsedAnswers = unflattenDotNotation(answers); const selectFields = buildSelectFromPaths((argv.select as string) ?? 'clientMutationId'); const result = await client.mutation - .orgSecretsDel( - parsedAnswers as unknown as OrgSecretsDelVariables, + ._secretsRotate( + parsedAnswers as unknown as _secretsRotateVariables, { select: selectFields, } as unknown as { - select: OrgSecretsDelPayloadSelect; + select: _SecretsRotatePayloadSelect; } ) .execute(); console.log(JSON.stringify(result, null, 2)); } catch (error) { - console.error('Failed: orgSecretsDel'); + console.error('Failed: _secretsRotate'); if (error instanceof Error) { console.error(error.message); } diff --git a/sdk/constructive-cli/src/config/cli/commands/org-secrets-set.ts b/sdk/constructive-cli/src/config/cli/commands/secrets-set.ts similarity index 73% rename from sdk/constructive-cli/src/config/cli/commands/org-secrets-set.ts rename to sdk/constructive-cli/src/config/cli/commands/secrets-set.ts index f7a440ee00..f7e3452fee 100644 --- a/sdk/constructive-cli/src/config/cli/commands/org-secrets-set.ts +++ b/sdk/constructive-cli/src/config/cli/commands/secrets-set.ts @@ -1,13 +1,13 @@ /** - * CLI command for mutation orgSecretsSet + * CLI command for mutation _secretsSet * @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 { OrgSecretsSetVariables } from '../../orm/mutation'; -import type { OrgSecretsSetPayloadSelect } from '../../orm/input-types'; +import type { _secretsSetVariables } from '../../orm/mutation'; +import type { _SecretsSetPayloadSelect } from '../../orm/input-types'; export default async ( argv: Partial>, prompter: Inquirerer, @@ -15,7 +15,7 @@ export default async ( ) => { try { if (argv.help || argv.h) { - console.log('org-secrets-set - orgSecretsSet\n\nUsage: org-secrets-set [OPTIONS]\n'); + console.log('secrets-set - _secretsSet\n\nUsage: secrets-set [OPTIONS]\n'); process.exit(0); } const answers = await prompter.prompt(argv, [ @@ -31,18 +31,18 @@ export default async ( const parsedAnswers = unflattenDotNotation(answers); const selectFields = buildSelectFromPaths((argv.select as string) ?? 'clientMutationId'); const result = await client.mutation - .orgSecretsSet( - parsedAnswers as unknown as OrgSecretsSetVariables, + ._secretsSet( + parsedAnswers as unknown as _secretsSetVariables, { select: selectFields, } as unknown as { - select: OrgSecretsSetPayloadSelect; + select: _SecretsSetPayloadSelect; } ) .execute(); console.log(JSON.stringify(result, null, 2)); } catch (error) { - console.error('Failed: orgSecretsSet'); + console.error('Failed: _secretsSet'); if (error instanceof Error) { console.error(error.message); } diff --git a/sdk/constructive-cli/src/config/orm/README.md b/sdk/constructive-cli/src/config/orm/README.md index 803661dc8e..767f523c89 100644 --- a/sdk/constructive-cli/src/config/orm/README.md +++ b/sdk/constructive-cli/src/config/orm/README.md @@ -21,51 +21,56 @@ const db = createClient({ | Model | Operations | |-------|------------| -| `platformConfigDefinition` | findMany, findOne, create, update, delete | | `platformConfig` | findMany, findOne, create, update, delete | +| `config` | findMany, findOne, create, update, delete | +| `platformInternalSecret` | findMany, findOne, create, update, delete | +| `platformSecret` | findMany, findOne, create, update, delete | +| `secret` | findMany, findOne, create, update, delete | ## Table Operations -### `db.platformConfigDefinition` +### `db.platformConfig` -CRUD operations for PlatformConfigDefinition records. +CRUD operations for PlatformConfig records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | +| `namespaceId` | UUID | Yes | | `name` | String | Yes | -| `description` | String | Yes | -| `defaultValue` | String | Yes | -| `isBuiltIn` | Boolean | Yes | +| `provider` | String | Yes | +| `value` | String | Yes | | `labels` | JSON | Yes | | `annotations` | JSON | Yes | +| `description` | String | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | +| `expiresAt` | Datetime | Yes | **Operations:** ```typescript -// List all platformConfigDefinition records -const items = await db.platformConfigDefinition.findMany({ select: { id: true, createdAt: true, updatedAt: true, name: true, description: true, defaultValue: true, isBuiltIn: true, labels: true, annotations: true } }).execute(); +// List all platformConfig records +const items = await db.platformConfig.findMany({ select: { id: true, namespaceId: true, name: true, provider: true, value: true, labels: true, annotations: true, description: true, createdAt: true, updatedAt: true, expiresAt: true } }).execute(); // Get one by id -const item = await db.platformConfigDefinition.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, name: true, description: true, defaultValue: true, isBuiltIn: true, labels: true, annotations: true } }).execute(); +const item = await db.platformConfig.findOne({ id: '', select: { id: true, namespaceId: true, name: true, provider: true, value: true, labels: true, annotations: true, description: true, createdAt: true, updatedAt: true, expiresAt: true } }).execute(); // Create -const created = await db.platformConfigDefinition.create({ data: { name: '', description: '', defaultValue: '', isBuiltIn: '', labels: '', annotations: '' }, select: { id: true } }).execute(); +const created = await db.platformConfig.create({ data: { namespaceId: '', name: '', provider: '', value: '', labels: '', annotations: '', description: '', expiresAt: '' }, select: { id: true } }).execute(); // Update -const updated = await db.platformConfigDefinition.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.platformConfig.update({ where: { id: '' }, data: { namespaceId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.platformConfigDefinition.delete({ where: { id: '' } }).execute(); +const deleted = await db.platformConfig.delete({ where: { id: '' } }).execute(); ``` -### `db.platformConfig` +### `db.config` -CRUD operations for PlatformConfig records. +CRUD operations for Config records. **Fields:** @@ -73,7 +78,9 @@ CRUD operations for PlatformConfig records. |-------|------|----------| | `id` | UUID | No | | `namespaceId` | UUID | Yes | +| `databaseId` | UUID | Yes | | `name` | String | Yes | +| `provider` | String | Yes | | `value` | String | Yes | | `labels` | JSON | Yes | | `annotations` | JSON | Yes | @@ -85,24 +92,156 @@ CRUD operations for PlatformConfig records. **Operations:** ```typescript -// List all platformConfig records -const items = await db.platformConfig.findMany({ select: { id: true, namespaceId: true, name: true, value: true, labels: true, annotations: true, description: true, createdAt: true, updatedAt: true, expiresAt: true } }).execute(); +// List all config records +const items = await db.config.findMany({ select: { id: true, namespaceId: true, databaseId: true, name: true, provider: true, value: true, labels: true, annotations: true, description: true, createdAt: true, updatedAt: true, expiresAt: true } }).execute(); // Get one by id -const item = await db.platformConfig.findOne({ id: '', select: { id: true, namespaceId: true, name: true, value: true, labels: true, annotations: true, description: true, createdAt: true, updatedAt: true, expiresAt: true } }).execute(); +const item = await db.config.findOne({ id: '', select: { id: true, namespaceId: true, databaseId: true, name: true, provider: true, value: true, labels: true, annotations: true, description: true, createdAt: true, updatedAt: true, expiresAt: true } }).execute(); // Create -const created = await db.platformConfig.create({ data: { namespaceId: '', name: '', value: '', labels: '', annotations: '', description: '', expiresAt: '' }, select: { id: true } }).execute(); +const created = await db.config.create({ data: { namespaceId: '', databaseId: '', name: '', provider: '', value: '', labels: '', annotations: '', description: '', expiresAt: '' }, select: { id: true } }).execute(); // Update -const updated = await db.platformConfig.update({ where: { id: '' }, data: { namespaceId: '' }, select: { id: true } }).execute(); +const updated = await db.config.update({ where: { id: '' }, data: { namespaceId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.platformConfig.delete({ where: { id: '' } }).execute(); +const deleted = await db.config.delete({ where: { id: '' } }).execute(); +``` + +### `db.platformInternalSecret` + +CRUD operations for PlatformInternalSecret records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `name` | String | Yes | +| `namespaceId` | UUID | Yes | +| `description` | String | Yes | +| `labels` | JSON | Yes | +| `annotations` | JSON | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | +| `rotatedAt` | Datetime | Yes | +| `retiredAt` | Datetime | Yes | + +**Operations:** + +```typescript +// List all platformInternalSecret records +const items = await db.platformInternalSecret.findMany({ select: { id: true, name: true, namespaceId: true, description: true, labels: true, annotations: true, createdAt: true, updatedAt: true, rotatedAt: true, retiredAt: true } }).execute(); + +// Get one by id +const item = await db.platformInternalSecret.findOne({ id: '', select: { id: true, name: true, namespaceId: true, description: true, labels: true, annotations: true, createdAt: true, updatedAt: true, rotatedAt: true, retiredAt: true } }).execute(); + +// Create +const created = await db.platformInternalSecret.create({ data: { name: '', namespaceId: '', description: '', labels: '', annotations: '', rotatedAt: '', retiredAt: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformInternalSecret.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformInternalSecret.delete({ where: { id: '' } }).execute(); +``` + +### `db.platformSecret` + +CRUD operations for PlatformSecret records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `name` | String | Yes | +| `provider` | String | Yes | +| `namespaceId` | UUID | Yes | +| `description` | String | Yes | +| `labels` | JSON | Yes | +| `annotations` | JSON | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | +| `rotatedAt` | Datetime | Yes | +| `retiredAt` | Datetime | Yes | + +**Operations:** + +```typescript +// List all platformSecret records +const items = await db.platformSecret.findMany({ select: { id: true, name: true, provider: true, namespaceId: true, description: true, labels: true, annotations: true, createdAt: true, updatedAt: true, rotatedAt: true, retiredAt: true } }).execute(); + +// Get one by id +const item = await db.platformSecret.findOne({ id: '', select: { id: true, name: true, provider: true, namespaceId: true, description: true, labels: true, annotations: true, createdAt: true, updatedAt: true, rotatedAt: true, retiredAt: true } }).execute(); + +// Create +const created = await db.platformSecret.create({ data: { name: '', provider: '', namespaceId: '', description: '', labels: '', annotations: '', rotatedAt: '', retiredAt: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformSecret.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformSecret.delete({ where: { id: '' } }).execute(); +``` + +### `db.secret` + +CRUD operations for Secret records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `databaseId` | UUID | Yes | +| `id` | UUID | No | +| `name` | String | Yes | +| `provider` | String | Yes | +| `namespaceId` | UUID | Yes | +| `description` | String | Yes | +| `labels` | JSON | Yes | +| `annotations` | JSON | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | +| `rotatedAt` | Datetime | Yes | +| `retiredAt` | Datetime | Yes | + +**Operations:** + +```typescript +// List all secret records +const items = await db.secret.findMany({ select: { databaseId: true, id: true, name: true, provider: true, namespaceId: true, description: true, labels: true, annotations: true, createdAt: true, updatedAt: true, rotatedAt: true, retiredAt: true } }).execute(); + +// Get one by id +const item = await db.secret.findOne({ id: '', select: { databaseId: true, id: true, name: true, provider: true, namespaceId: true, description: true, labels: true, annotations: true, createdAt: true, updatedAt: true, rotatedAt: true, retiredAt: true } }).execute(); + +// Create +const created = await db.secret.create({ data: { databaseId: '', name: '', provider: '', namespaceId: '', description: '', labels: '', annotations: '', rotatedAt: '', retiredAt: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.secret.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.secret.delete({ where: { id: '' } }).execute(); ``` ## Custom Operations +### `db.mutation.platformInternalSecretsDel` + +platformInternalSecretsDel + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | PlatformInternalSecretsDelInput (required) | + +```typescript +const result = await db.mutation.platformInternalSecretsDel({ input: { secretName: '', namespaceId: '' } }).execute(); +``` + ### `db.mutation.platformSecretsDel` platformSecretsDel @@ -118,19 +257,34 @@ platformSecretsDel const result = await db.mutation.platformSecretsDel({ input: { secretName: '', namespaceId: '' } }).execute(); ``` -### `db.mutation.orgSecretsDel` +### `db.mutation._secretsDel` + +_secretsDel + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | _SecretsDelInput (required) | + +```typescript +const result = await db.mutation._secretsDel({ input: { databaseId: '', secretName: '', namespaceId: '' } }).execute(); +``` + +### `db.mutation.platformInternalSecretsRemoveArray` -orgSecretsDel +platformInternalSecretsRemoveArray - **Type:** mutation - **Arguments:** | Argument | Type | |----------|------| - | `input` | OrgSecretsDelInput (required) | + | `input` | PlatformInternalSecretsRemoveArrayInput (required) | ```typescript -const result = await db.mutation.orgSecretsDel({ input: { ownerId: '', secretName: '', namespaceId: '' } }).execute(); +const result = await db.mutation.platformInternalSecretsRemoveArray({ input: { secretNames: '', namespaceId: '' } }).execute(); ``` ### `db.mutation.platformSecretsRemoveArray` @@ -148,19 +302,49 @@ platformSecretsRemoveArray const result = await db.mutation.platformSecretsRemoveArray({ input: { secretNames: '', namespaceId: '' } }).execute(); ``` -### `db.mutation.orgSecretsRemoveArray` +### `db.mutation._secretsRemoveArray` + +_secretsRemoveArray + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | _SecretsRemoveArrayInput (required) | + +```typescript +const result = await db.mutation._secretsRemoveArray({ input: { databaseId: '', secretNames: '', namespaceId: '' } }).execute(); +``` + +### `db.mutation.platformInternalSecretsRotate` -orgSecretsRemoveArray +platformInternalSecretsRotate - **Type:** mutation - **Arguments:** | Argument | Type | |----------|------| - | `input` | OrgSecretsRemoveArrayInput (required) | + | `input` | PlatformInternalSecretsRotateInput (required) | ```typescript -const result = await db.mutation.orgSecretsRemoveArray({ input: { ownerId: '', secretNames: '', namespaceId: '' } }).execute(); +const result = await db.mutation.platformInternalSecretsRotate({ input: { secretName: '', secretValue: '', namespaceId: '', algo: '' } }).execute(); +``` + +### `db.mutation.platformInternalSecretsSet` + +platformInternalSecretsSet + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | PlatformInternalSecretsSetInput (required) | + +```typescript +const result = await db.mutation.platformInternalSecretsSet({ input: { secretName: '', secretValue: '', secretNamespaceId: '', algo: '' } }).execute(); ``` ### `db.mutation.platformSecretsRotate` @@ -178,49 +362,49 @@ platformSecretsRotate const result = await db.mutation.platformSecretsRotate({ input: { secretName: '', secretValue: '', namespaceId: '', algo: '' } }).execute(); ``` -### `db.mutation.platformSecretsSet` +### `db.mutation._secretsRotate` -platformSecretsSet +_secretsRotate - **Type:** mutation - **Arguments:** | Argument | Type | |----------|------| - | `input` | PlatformSecretsSetInput (required) | + | `input` | _SecretsRotateInput (required) | ```typescript -const result = await db.mutation.platformSecretsSet({ input: { secretName: '', secretValue: '', secretNamespaceId: '', algo: '' } }).execute(); +const result = await db.mutation._secretsRotate({ input: { databaseId: '', secretName: '', secretValue: '', namespaceId: '', algo: '' } }).execute(); ``` -### `db.mutation.orgSecretsRotate` +### `db.mutation.platformSecretsSet` -orgSecretsRotate +platformSecretsSet - **Type:** mutation - **Arguments:** | Argument | Type | |----------|------| - | `input` | OrgSecretsRotateInput (required) | + | `input` | PlatformSecretsSetInput (required) | ```typescript -const result = await db.mutation.orgSecretsRotate({ input: { ownerId: '', secretName: '', secretValue: '', namespaceId: '', algo: '' } }).execute(); +const result = await db.mutation.platformSecretsSet({ input: { secretName: '', secretValue: '', secretNamespaceId: '', algo: '', provider: '' } }).execute(); ``` -### `db.mutation.orgSecretsSet` +### `db.mutation._secretsSet` -orgSecretsSet +_secretsSet - **Type:** mutation - **Arguments:** | Argument | Type | |----------|------| - | `input` | OrgSecretsSetInput (required) | + | `input` | _SecretsSetInput (required) | ```typescript -const result = await db.mutation.orgSecretsSet({ input: { scopeOwnerId: '', secretName: '', secretValue: '', secretNamespaceId: '', algo: '' } }).execute(); +const result = await db.mutation._secretsSet({ input: '<_SecretsSetInput>' }).execute(); ``` ### `db.mutation.provisionBucket` diff --git a/sdk/constructive-cli/src/config/orm/index.ts b/sdk/constructive-cli/src/config/orm/index.ts index 9ea4028079..eef38276fc 100644 --- a/sdk/constructive-cli/src/config/orm/index.ts +++ b/sdk/constructive-cli/src/config/orm/index.ts @@ -5,8 +5,11 @@ */ import { OrmClient } from './client'; import type { OrmClientConfig } from './client'; -import { PlatformConfigDefinitionModel } from './models/platformConfigDefinition'; import { PlatformConfigModel } from './models/platformConfig'; +import { ConfigModel } from './models/config'; +import { PlatformInternalSecretModel } from './models/platformInternalSecret'; +import { PlatformSecretModel } from './models/platformSecret'; +import { SecretModel } from './models/secret'; import { createMutationOperations } from './mutation'; export type { OrmClientConfig, QueryResult, GraphQLError, GraphQLAdapter } from './client'; export { GraphQLRequestError, FetchAdapter } from './client'; @@ -40,8 +43,11 @@ export { createMutationOperations } from './mutation'; export function createClient(config: OrmClientConfig) { const client = new OrmClient(config); return { - platformConfigDefinition: new PlatformConfigDefinitionModel(client), platformConfig: new PlatformConfigModel(client), + config: new ConfigModel(client), + platformInternalSecret: new PlatformInternalSecretModel(client), + platformSecret: new PlatformSecretModel(client), + secret: new SecretModel(client), mutation: createMutationOperations(client), }; } diff --git a/sdk/constructive-cli/src/config/orm/input-types.ts b/sdk/constructive-cli/src/config/orm/input-types.ts index 693309a1fb..0da12a05d0 100644 --- a/sdk/constructive-cli/src/config/orm/input-types.ts +++ b/sdk/constructive-cli/src/config/orm/input-types.ts @@ -230,34 +230,42 @@ export interface UUIDListFilter { anyGreaterThan?: string; anyGreaterThanOrEqualTo?: string; } -/** Registry of valid config keys — declares which config entries the platform recognizes */ +/** Namespace-backed plaintext key-value config store (like a k8s ConfigMap); admin-only, fully CRUD-exposed */ // ============ Entity Types ============ -export interface PlatformConfigDefinition { - /** Unique identifier for this config definition */ +export interface PlatformConfig { + /** Unique identifier for this config entry */ id: string; - createdAt?: string | null; - updatedAt?: string | null; - /** Config key name (must match config table name for resolution) */ + /** FK to namespaces — logical grouping for config entries */ + namespaceId?: string | null; + /** Key name identifying the config entry */ name?: string | null; - /** Human-readable description of what this config key controls */ - description?: string | null; - /** Default value used when no config entry exists for a namespace */ - defaultValue?: string | null; - /** Whether this row was seeded as a built-in config definition */ - isBuiltIn?: boolean | null; - /** Key-value metadata for filtering and grouping config definitions */ + /** Integration provider slug (e.g. mailgun, postgres). Used by the UI to group config entries by integration. No FK. */ + provider?: string | null; + /** Plaintext config value */ + value?: string | null; + /** Key/value pairs for selecting/filtering config entries */ labels?: Record | null; - /** Freeform metadata annotations for config definitions */ + /** Freeform metadata for tooling and operational notes */ annotations?: Record | null; + /** Human-readable note about this config entry */ + description?: string | null; + createdAt?: string | null; + updatedAt?: string | null; + /** Optional expiration timestamp for time-limited config entries */ + expiresAt?: string | null; } -/** App-level plaintext key-value config store (like a k8s ConfigMap); admin-only, fully CRUD-exposed */ -export interface PlatformConfig { +/** Namespace-backed plaintext key-value config store (like a k8s ConfigMap); admin-only, fully CRUD-exposed */ +export interface Config { /** Unique identifier for this config entry */ id: string; /** FK to namespaces — logical grouping for config entries */ namespaceId?: string | null; + /** Database that owns this resource (database-scoped isolation) */ + databaseId?: string | 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; /** Plaintext config value */ value?: string | null; /** Key/value pairs for selecting/filtering config entries */ @@ -271,6 +279,45 @@ export interface PlatformConfig { /** Optional expiration timestamp for time-limited config entries */ expiresAt?: string | null; } +export interface PlatformInternalSecret { + id: string; + name?: string | null; + namespaceId?: string | null; + description?: string | null; + labels?: Record | null; + annotations?: Record | null; + createdAt?: string | null; + updatedAt?: string | null; + rotatedAt?: string | null; + retiredAt?: string | null; +} +export interface PlatformSecret { + id: string; + name?: string | null; + provider?: string | null; + namespaceId?: string | null; + description?: string | null; + labels?: Record | null; + annotations?: Record | null; + createdAt?: string | null; + updatedAt?: string | null; + rotatedAt?: string | null; + retiredAt?: string | null; +} +export interface Secret { + databaseId?: string | null; + id: string; + name?: string | null; + provider?: string | null; + namespaceId?: string | null; + description?: string | null; + labels?: Record | null; + annotations?: Record | null; + createdAt?: string | null; + updatedAt?: string | null; + rotatedAt?: string | null; + retiredAt?: string | null; +} // ============ Relation Helper Types ============ export interface ConnectionResult { nodes: T[]; @@ -284,28 +331,38 @@ export interface PageInfo { endCursor?: string | null; } // ============ Entity Relation Types ============ -export interface PlatformConfigDefinitionRelations {} export interface PlatformConfigRelations {} +export interface ConfigRelations {} +export interface PlatformInternalSecretRelations {} +export interface PlatformSecretRelations {} +export interface SecretRelations {} // ============ Entity Types With Relations ============ -export type PlatformConfigDefinitionWithRelations = PlatformConfigDefinition & - PlatformConfigDefinitionRelations; export type PlatformConfigWithRelations = PlatformConfig & PlatformConfigRelations; +export type ConfigWithRelations = Config & ConfigRelations; +export type PlatformInternalSecretWithRelations = PlatformInternalSecret & + PlatformInternalSecretRelations; +export type PlatformSecretWithRelations = PlatformSecret & PlatformSecretRelations; +export type SecretWithRelations = Secret & SecretRelations; // ============ Entity Select Types ============ -export type PlatformConfigDefinitionSelect = { +export type PlatformConfigSelect = { id?: boolean; - createdAt?: boolean; - updatedAt?: boolean; + namespaceId?: boolean; name?: boolean; - description?: boolean; - defaultValue?: boolean; - isBuiltIn?: boolean; + provider?: boolean; + value?: boolean; labels?: boolean; annotations?: boolean; + description?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + expiresAt?: boolean; }; -export type PlatformConfigSelect = { +export type ConfigSelect = { id?: boolean; namespaceId?: boolean; + databaseId?: boolean; name?: boolean; + provider?: boolean; value?: boolean; labels?: boolean; annotations?: boolean; @@ -314,40 +371,87 @@ export type PlatformConfigSelect = { updatedAt?: boolean; expiresAt?: boolean; }; +export type PlatformInternalSecretSelect = { + id?: boolean; + name?: boolean; + namespaceId?: boolean; + description?: boolean; + labels?: boolean; + annotations?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + rotatedAt?: boolean; + retiredAt?: boolean; +}; +export type PlatformSecretSelect = { + id?: boolean; + name?: boolean; + provider?: boolean; + namespaceId?: boolean; + description?: boolean; + labels?: boolean; + annotations?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + rotatedAt?: boolean; + retiredAt?: boolean; +}; +export type SecretSelect = { + databaseId?: boolean; + id?: boolean; + name?: boolean; + provider?: boolean; + namespaceId?: boolean; + description?: boolean; + labels?: boolean; + annotations?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + rotatedAt?: boolean; + retiredAt?: boolean; +}; // ============ Table Filter Types ============ -export interface PlatformConfigDefinitionFilter { +export interface PlatformConfigFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Filter by the object’s `defaultValue` field. */ - defaultValue?: StringFilter; - /** Filter by the object’s `isBuiltIn` field. */ - isBuiltIn?: BooleanFilter; + /** Filter by the object’s `provider` field. */ + provider?: StringFilter; + /** Filter by the object’s `value` field. */ + value?: StringFilter; /** Filter by the object’s `labels` field. */ labels?: JSONFilter; /** Filter by the object’s `annotations` field. */ annotations?: JSONFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `expiresAt` field. */ + expiresAt?: DatetimeFilter; /** Checks for all expressions in this list. */ - and?: PlatformConfigDefinitionFilter[]; + and?: PlatformConfigFilter[]; /** Checks for any expressions in this list. */ - or?: PlatformConfigDefinitionFilter[]; + or?: PlatformConfigFilter[]; /** Negates the expression. */ - not?: PlatformConfigDefinitionFilter; + not?: PlatformConfigFilter; } -export interface PlatformConfigFilter { +export interface ConfigFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `namespaceId` field. */ namespaceId?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; + /** Filter by the object’s `provider` field. */ + provider?: StringFilter; /** Filter by the object’s `value` field. */ value?: StringFilter; /** Filter by the object’s `labels` field. */ @@ -363,36 +467,130 @@ export interface PlatformConfigFilter { /** Filter by the object’s `expiresAt` field. */ expiresAt?: DatetimeFilter; /** Checks for all expressions in this list. */ - and?: PlatformConfigFilter[]; + and?: ConfigFilter[]; /** Checks for any expressions in this list. */ - or?: PlatformConfigFilter[]; + or?: ConfigFilter[]; /** Negates the expression. */ - not?: PlatformConfigFilter; + not?: ConfigFilter; +} +export interface PlatformInternalSecretFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `labels` field. */ + labels?: JSONFilter; + /** Filter by the object’s `annotations` field. */ + annotations?: JSONFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `rotatedAt` field. */ + rotatedAt?: DatetimeFilter; + /** Filter by the object’s `retiredAt` field. */ + retiredAt?: DatetimeFilter; + /** Checks for all expressions in this list. */ + and?: PlatformInternalSecretFilter[]; + /** Checks for any expressions in this list. */ + or?: PlatformInternalSecretFilter[]; + /** Negates the expression. */ + not?: PlatformInternalSecretFilter; +} +export interface PlatformSecretFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `provider` field. */ + provider?: StringFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `labels` field. */ + labels?: JSONFilter; + /** Filter by the object’s `annotations` field. */ + annotations?: JSONFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `rotatedAt` field. */ + rotatedAt?: DatetimeFilter; + /** Filter by the object’s `retiredAt` field. */ + retiredAt?: DatetimeFilter; + /** Checks for all expressions in this list. */ + and?: PlatformSecretFilter[]; + /** Checks for any expressions in this list. */ + or?: PlatformSecretFilter[]; + /** Negates the expression. */ + not?: PlatformSecretFilter; +} +export interface SecretFilter { + /** 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 `provider` field. */ + provider?: StringFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `labels` field. */ + labels?: JSONFilter; + /** Filter by the object’s `annotations` field. */ + annotations?: JSONFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `rotatedAt` field. */ + rotatedAt?: DatetimeFilter; + /** Filter by the object’s `retiredAt` field. */ + retiredAt?: DatetimeFilter; + /** Checks for all expressions in this list. */ + and?: SecretFilter[]; + /** Checks for any expressions in this list. */ + or?: SecretFilter[]; + /** Negates the expression. */ + not?: SecretFilter; } // ============ OrderBy Types ============ -export type PlatformConfigDefinitionOrderBy = +export type PlatformConfigOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' + | 'NAMESPACE_ID_ASC' + | 'NAMESPACE_ID_DESC' | 'NAME_ASC' | 'NAME_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC' - | 'DEFAULT_VALUE_ASC' - | 'DEFAULT_VALUE_DESC' - | 'IS_BUILT_IN_ASC' - | 'IS_BUILT_IN_DESC' + | 'PROVIDER_ASC' + | 'PROVIDER_DESC' + | 'VALUE_ASC' + | 'VALUE_DESC' | 'LABELS_ASC' | 'LABELS_DESC' | 'ANNOTATIONS_ASC' - | 'ANNOTATIONS_DESC'; -export type PlatformConfigOrderBy = + | 'ANNOTATIONS_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'EXPIRES_AT_ASC' + | 'EXPIRES_AT_DESC'; +export type ConfigOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -400,8 +598,12 @@ export type PlatformConfigOrderBy = | 'ID_DESC' | 'NAMESPACE_ID_ASC' | 'NAMESPACE_ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' | 'NAME_ASC' | 'NAME_DESC' + | 'PROVIDER_ASC' + | 'PROVIDER_DESC' | 'VALUE_ASC' | 'VALUE_DESC' | 'LABELS_ASC' @@ -416,40 +618,118 @@ export type PlatformConfigOrderBy = | 'UPDATED_AT_DESC' | 'EXPIRES_AT_ASC' | 'EXPIRES_AT_DESC'; +export type PlatformInternalSecretOrderBy = + | 'NATURAL' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'NAMESPACE_ID_ASC' + | 'NAMESPACE_ID_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'LABELS_ASC' + | 'LABELS_DESC' + | 'ANNOTATIONS_ASC' + | 'ANNOTATIONS_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'ROTATED_AT_ASC' + | 'ROTATED_AT_DESC' + | 'RETIRED_AT_ASC' + | 'RETIRED_AT_DESC'; +export type PlatformSecretOrderBy = + | 'NATURAL' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'PROVIDER_ASC' + | 'PROVIDER_DESC' + | 'NAMESPACE_ID_ASC' + | 'NAMESPACE_ID_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'LABELS_ASC' + | 'LABELS_DESC' + | 'ANNOTATIONS_ASC' + | 'ANNOTATIONS_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'ROTATED_AT_ASC' + | 'ROTATED_AT_DESC' + | 'RETIRED_AT_ASC' + | 'RETIRED_AT_DESC'; +export type SecretOrderBy = + | 'NATURAL' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'PROVIDER_ASC' + | 'PROVIDER_DESC' + | 'NAMESPACE_ID_ASC' + | 'NAMESPACE_ID_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'LABELS_ASC' + | 'LABELS_DESC' + | 'ANNOTATIONS_ASC' + | 'ANNOTATIONS_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'ROTATED_AT_ASC' + | 'ROTATED_AT_DESC' + | 'RETIRED_AT_ASC' + | 'RETIRED_AT_DESC'; // ============ CRUD Input Types ============ -export interface CreatePlatformConfigDefinitionInput { +export interface CreatePlatformConfigInput { clientMutationId?: string; - platformConfigDefinition: { + platformConfig: { + namespaceId: string; name: string; - description?: string; - defaultValue?: string; - isBuiltIn?: boolean; + provider?: string; + value?: string; labels?: Record; annotations?: Record; + description?: string; + expiresAt?: string; }; } -export interface PlatformConfigDefinitionPatch { +export interface PlatformConfigPatch { + namespaceId?: string | null; name?: string | null; - description?: string | null; - defaultValue?: string | null; - isBuiltIn?: boolean | null; + provider?: string | null; + value?: string | null; labels?: Record | null; annotations?: Record | null; + description?: string | null; + expiresAt?: string | null; } -export interface UpdatePlatformConfigDefinitionInput { +export interface UpdatePlatformConfigInput { clientMutationId?: string; id: string; - platformConfigDefinitionPatch: PlatformConfigDefinitionPatch; + platformConfigPatch: PlatformConfigPatch; } -export interface DeletePlatformConfigDefinitionInput { +export interface DeletePlatformConfigInput { clientMutationId?: string; id: string; } -export interface CreatePlatformConfigInput { +export interface CreateConfigInput { clientMutationId?: string; - platformConfig: { + config: { namespaceId: string; + databaseId: string; name: string; + provider?: string; value?: string; labels?: Record; annotations?: Record; @@ -457,78 +737,202 @@ export interface CreatePlatformConfigInput { expiresAt?: string; }; } -export interface PlatformConfigPatch { +export interface ConfigPatch { namespaceId?: string | null; + databaseId?: string | null; name?: string | null; + provider?: string | null; value?: string | null; labels?: Record | null; annotations?: Record | null; description?: string | null; expiresAt?: string | null; } -export interface UpdatePlatformConfigInput { +export interface UpdateConfigInput { clientMutationId?: string; id: string; - platformConfigPatch: PlatformConfigPatch; + configPatch: ConfigPatch; } -export interface DeletePlatformConfigInput { +export interface DeleteConfigInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformInternalSecretInput { + clientMutationId?: string; + platformInternalSecret: { + name?: string; + namespaceId?: string; + description?: string; + labels?: Record; + annotations?: Record; + rotatedAt?: string; + retiredAt?: string; + }; +} +export interface PlatformInternalSecretPatch { + name?: string | null; + namespaceId?: string | null; + description?: string | null; + labels?: Record | null; + annotations?: Record | null; + rotatedAt?: string | null; + retiredAt?: string | null; +} +export interface UpdatePlatformInternalSecretInput { + clientMutationId?: string; + id: string; + platformInternalSecretPatch: PlatformInternalSecretPatch; +} +export interface DeletePlatformInternalSecretInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformSecretInput { + clientMutationId?: string; + platformSecret: { + name?: string; + provider?: string; + namespaceId?: string; + description?: string; + labels?: Record; + annotations?: Record; + rotatedAt?: string; + retiredAt?: string; + }; +} +export interface PlatformSecretPatch { + name?: string | null; + provider?: string | null; + namespaceId?: string | null; + description?: string | null; + labels?: Record | null; + annotations?: Record | null; + rotatedAt?: string | null; + retiredAt?: string | null; +} +export interface UpdatePlatformSecretInput { + clientMutationId?: string; + id: string; + platformSecretPatch: PlatformSecretPatch; +} +export interface DeletePlatformSecretInput { + clientMutationId?: string; + id: string; +} +export interface CreateSecretInput { + clientMutationId?: string; + secret: { + databaseId?: string; + name?: string; + provider?: string; + namespaceId?: string; + description?: string; + labels?: Record; + annotations?: Record; + rotatedAt?: string; + retiredAt?: string; + }; +} +export interface SecretPatch { + databaseId?: string | null; + name?: string | null; + provider?: string | null; + namespaceId?: string | null; + description?: string | null; + labels?: Record | null; + annotations?: Record | null; + rotatedAt?: string | null; + retiredAt?: string | null; +} +export interface UpdateSecretInput { + clientMutationId?: string; + id: string; + secretPatch: SecretPatch; +} +export interface DeleteSecretInput { clientMutationId?: string; id: string; } // ============ Connection Fields Map ============ export const connectionFieldsMap = {} as Record>; // ============ Custom Input Types (from schema) ============ +export interface PlatformInternalSecretsDelInput { + clientMutationId?: string; + secretName?: string; + namespaceId?: string; +} export interface PlatformSecretsDelInput { clientMutationId?: string; secretName?: string; namespaceId?: string; } -export interface OrgSecretsDelInput { +export interface _SecretsDelInput { clientMutationId?: string; - ownerId?: string; + databaseId?: string; secretName?: string; namespaceId?: string; } +export interface PlatformInternalSecretsRemoveArrayInput { + clientMutationId?: string; + secretNames?: string[]; + namespaceId?: string; +} export interface PlatformSecretsRemoveArrayInput { clientMutationId?: string; secretNames?: string[]; namespaceId?: string; } -export interface OrgSecretsRemoveArrayInput { +export interface _SecretsRemoveArrayInput { clientMutationId?: string; - ownerId?: string; + databaseId?: string; secretNames?: string[]; namespaceId?: string; } -export interface PlatformSecretsRotateInput { +export interface PlatformInternalSecretsRotateInput { clientMutationId?: string; secretName?: string; secretValue?: string; namespaceId?: string; algo?: string; } -export interface PlatformSecretsSetInput { +export interface PlatformInternalSecretsSetInput { clientMutationId?: string; secretName?: string; secretValue?: string; secretNamespaceId?: string; algo?: string; } -export interface OrgSecretsRotateInput { +export interface PlatformSecretsRotateInput { clientMutationId?: string; - ownerId?: string; secretName?: string; secretValue?: string; namespaceId?: string; algo?: string; } -export interface OrgSecretsSetInput { +export interface _SecretsRotateInput { + clientMutationId?: string; + databaseId?: string; + secretName?: string; + secretValue?: string; + namespaceId?: string; + algo?: string; +} +export interface PlatformSecretsSetInput { clientMutationId?: string; - scopeOwnerId?: string; secretName?: string; secretValue?: string; secretNamespaceId?: string; algo?: string; + provider?: string; +} +export interface _SecretsSetInput { + clientMutationId?: string; + scopeDatabaseId?: string; + secretName?: string; + secretValue?: string; + secretNamespaceId?: string; + algo?: string; + provider?: string; } export interface ProvisionBucketInput { /** The logical bucket key (e.g., "public", "private") */ @@ -539,33 +943,41 @@ export interface ProvisionBucketInput { */ ownerId?: string; } -/** An input for mutations affecting `PlatformConfigDefinition` */ -export interface PlatformConfigDefinitionInput { - /** Unique identifier for this config definition */ +/** An input for mutations affecting `PlatformConfig` */ +export interface PlatformConfigInput { + /** Unique identifier for this config entry */ id?: string; - createdAt?: string; - updatedAt?: string; - /** Config key name (must match config table name for resolution) */ + /** FK to namespaces — logical grouping for config entries */ + namespaceId: string; + /** Key name identifying the config entry */ name: string; - /** Human-readable description of what this config key controls */ - description?: string; - /** Default value used when no config entry exists for a namespace */ - defaultValue?: string; - /** Whether this row was seeded as a built-in config definition */ - isBuiltIn?: boolean; - /** Key-value metadata for filtering and grouping config definitions */ + /** Integration provider slug (e.g. mailgun, postgres). Used by the UI to group config entries by integration. No FK. */ + provider?: string; + /** Plaintext config value */ + value?: string; + /** Key/value pairs for selecting/filtering config entries */ labels?: Record; - /** Freeform metadata annotations for config definitions */ + /** Freeform metadata for tooling and operational notes */ annotations?: Record; + /** Human-readable note about this config entry */ + description?: string; + createdAt?: string; + updatedAt?: string; + /** Optional expiration timestamp for time-limited config entries */ + expiresAt?: string; } -/** An input for mutations affecting `PlatformConfig` */ -export interface PlatformConfigInput { +/** An input for mutations affecting `Config` */ +export interface ConfigInput { /** Unique identifier for this config entry */ id?: string; /** FK to namespaces — logical grouping for config entries */ namespaceId: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; /** 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; /** Plaintext config value */ value?: string; /** Key/value pairs for selecting/filtering config entries */ @@ -579,17 +991,71 @@ export interface PlatformConfigInput { /** Optional expiration timestamp for time-limited config entries */ expiresAt?: string; } +/** An input for mutations affecting `PlatformInternalSecret` */ +export interface PlatformInternalSecretInput { + id?: string; + name?: string; + namespaceId?: string; + description?: string; + labels?: Record; + annotations?: Record; + createdAt?: string; + updatedAt?: string; + rotatedAt?: string; + retiredAt?: string; +} +/** An input for mutations affecting `PlatformSecret` */ +export interface PlatformSecretInput { + id?: string; + name?: string; + provider?: string; + namespaceId?: string; + description?: string; + labels?: Record; + annotations?: Record; + createdAt?: string; + updatedAt?: string; + rotatedAt?: string; + retiredAt?: string; +} +/** An input for mutations affecting `Secret` */ +export interface SecretInput { + databaseId?: string; + id?: string; + name?: string; + provider?: string; + namespaceId?: string; + description?: string; + labels?: Record; + annotations?: Record; + createdAt?: string; + updatedAt?: string; + rotatedAt?: string; + retiredAt?: string; +} // ============ Payload/Return Types (for custom operations) ============ +export interface PlatformInternalSecretsDelPayload { + clientMutationId?: string | null; +} +export type PlatformInternalSecretsDelPayloadSelect = { + clientMutationId?: boolean; +}; export interface PlatformSecretsDelPayload { clientMutationId?: string | null; } export type PlatformSecretsDelPayloadSelect = { clientMutationId?: boolean; }; -export interface OrgSecretsDelPayload { +export interface _SecretsDelPayload { + clientMutationId?: string | null; +} +export type _SecretsDelPayloadSelect = { + clientMutationId?: boolean; +}; +export interface PlatformInternalSecretsRemoveArrayPayload { clientMutationId?: string | null; } -export type OrgSecretsDelPayloadSelect = { +export type PlatformInternalSecretsRemoveArrayPayloadSelect = { clientMutationId?: boolean; }; export interface PlatformSecretsRemoveArrayPayload { @@ -598,12 +1064,28 @@ export interface PlatformSecretsRemoveArrayPayload { export type PlatformSecretsRemoveArrayPayloadSelect = { clientMutationId?: boolean; }; -export interface OrgSecretsRemoveArrayPayload { +export interface _SecretsRemoveArrayPayload { clientMutationId?: string | null; } -export type OrgSecretsRemoveArrayPayloadSelect = { +export type _SecretsRemoveArrayPayloadSelect = { clientMutationId?: boolean; }; +export interface PlatformInternalSecretsRotatePayload { + clientMutationId?: string | null; + result?: boolean | null; +} +export type PlatformInternalSecretsRotatePayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface PlatformInternalSecretsSetPayload { + clientMutationId?: string | null; + result?: boolean | null; +} +export type PlatformInternalSecretsSetPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; export interface PlatformSecretsRotatePayload { clientMutationId?: string | null; result?: boolean | null; @@ -612,27 +1094,27 @@ export type PlatformSecretsRotatePayloadSelect = { clientMutationId?: boolean; result?: boolean; }; -export interface PlatformSecretsSetPayload { +export interface _SecretsRotatePayload { clientMutationId?: string | null; result?: boolean | null; } -export type PlatformSecretsSetPayloadSelect = { +export type _SecretsRotatePayloadSelect = { clientMutationId?: boolean; result?: boolean; }; -export interface OrgSecretsRotatePayload { +export interface PlatformSecretsSetPayload { clientMutationId?: string | null; result?: boolean | null; } -export type OrgSecretsRotatePayloadSelect = { +export type PlatformSecretsSetPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; -export interface OrgSecretsSetPayload { +export interface _SecretsSetPayload { clientMutationId?: string | null; result?: boolean | null; } -export type OrgSecretsSetPayloadSelect = { +export type _SecretsSetPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; @@ -658,51 +1140,6 @@ export type ProvisionBucketPayloadSelect = { endpoint?: boolean; error?: boolean; }; -export interface CreatePlatformConfigDefinitionPayload { - clientMutationId?: string | null; - /** The `PlatformConfigDefinition` that was created by this mutation. */ - platformConfigDefinition?: PlatformConfigDefinition | null; - platformConfigDefinitionEdge?: PlatformConfigDefinitionEdge | null; -} -export type CreatePlatformConfigDefinitionPayloadSelect = { - clientMutationId?: boolean; - platformConfigDefinition?: { - select: PlatformConfigDefinitionSelect; - }; - platformConfigDefinitionEdge?: { - select: PlatformConfigDefinitionEdgeSelect; - }; -}; -export interface UpdatePlatformConfigDefinitionPayload { - clientMutationId?: string | null; - /** The `PlatformConfigDefinition` that was updated by this mutation. */ - platformConfigDefinition?: PlatformConfigDefinition | null; - platformConfigDefinitionEdge?: PlatformConfigDefinitionEdge | null; -} -export type UpdatePlatformConfigDefinitionPayloadSelect = { - clientMutationId?: boolean; - platformConfigDefinition?: { - select: PlatformConfigDefinitionSelect; - }; - platformConfigDefinitionEdge?: { - select: PlatformConfigDefinitionEdgeSelect; - }; -}; -export interface DeletePlatformConfigDefinitionPayload { - clientMutationId?: string | null; - /** The `PlatformConfigDefinition` that was deleted by this mutation. */ - platformConfigDefinition?: PlatformConfigDefinition | null; - platformConfigDefinitionEdge?: PlatformConfigDefinitionEdge | null; -} -export type DeletePlatformConfigDefinitionPayloadSelect = { - clientMutationId?: boolean; - platformConfigDefinition?: { - select: PlatformConfigDefinitionSelect; - }; - platformConfigDefinitionEdge?: { - select: PlatformConfigDefinitionEdgeSelect; - }; -}; export interface CreatePlatformConfigPayload { clientMutationId?: string | null; /** The `PlatformConfig` that was created by this mutation. */ @@ -748,16 +1185,82 @@ export type DeletePlatformConfigPayloadSelect = { select: PlatformConfigEdgeSelect; }; }; -/** A `PlatformConfigDefinition` edge in the connection. */ -export interface PlatformConfigDefinitionEdge { - cursor?: string | null; - /** The `PlatformConfigDefinition` at the end of the edge. */ - node?: PlatformConfigDefinition | null; +export interface CreateConfigPayload { + clientMutationId?: string | null; + /** The `Config` that was created by this mutation. */ + config?: Config | null; + configEdge?: ConfigEdge | null; } -export type PlatformConfigDefinitionEdgeSelect = { - cursor?: boolean; - node?: { - select: PlatformConfigDefinitionSelect; +export type CreateConfigPayloadSelect = { + clientMutationId?: boolean; + config?: { + select: ConfigSelect; + }; + configEdge?: { + select: ConfigEdgeSelect; + }; +}; +export interface UpdateConfigPayload { + clientMutationId?: string | null; + /** The `Config` that was updated by this mutation. */ + config?: Config | null; + configEdge?: ConfigEdge | null; +} +export type UpdateConfigPayloadSelect = { + clientMutationId?: boolean; + config?: { + select: ConfigSelect; + }; + configEdge?: { + select: ConfigEdgeSelect; + }; +}; +export interface DeleteConfigPayload { + clientMutationId?: string | null; + /** The `Config` that was deleted by this mutation. */ + config?: Config | null; + configEdge?: ConfigEdge | null; +} +export type DeleteConfigPayloadSelect = { + clientMutationId?: boolean; + config?: { + select: ConfigSelect; + }; + configEdge?: { + select: ConfigEdgeSelect; + }; +}; +export interface CreatePlatformInternalSecretPayload { + clientMutationId?: string | null; + /** The `PlatformInternalSecret` that was created by this mutation. */ + platformInternalSecret?: PlatformInternalSecret | null; +} +export type CreatePlatformInternalSecretPayloadSelect = { + clientMutationId?: boolean; + platformInternalSecret?: { + select: PlatformInternalSecretSelect; + }; +}; +export interface CreatePlatformSecretPayload { + clientMutationId?: string | null; + /** The `PlatformSecret` that was created by this mutation. */ + platformSecret?: PlatformSecret | null; +} +export type CreatePlatformSecretPayloadSelect = { + clientMutationId?: boolean; + platformSecret?: { + select: PlatformSecretSelect; + }; +}; +export interface CreateSecretPayload { + clientMutationId?: string | null; + /** The `Secret` that was created by this mutation. */ + secret?: Secret | null; +} +export type CreateSecretPayloadSelect = { + clientMutationId?: boolean; + secret?: { + select: SecretSelect; }; }; /** A `PlatformConfig` edge in the connection. */ @@ -772,3 +1275,15 @@ export type PlatformConfigEdgeSelect = { select: PlatformConfigSelect; }; }; +/** A `Config` edge in the connection. */ +export interface ConfigEdge { + cursor?: string | null; + /** The `Config` at the end of the edge. */ + node?: Config | null; +} +export type ConfigEdgeSelect = { + cursor?: boolean; + node?: { + select: ConfigSelect; + }; +}; diff --git a/sdk/constructive-cli/src/config/orm/models/config.ts b/sdk/constructive-cli/src/config/orm/models/config.ts new file mode 100644 index 0000000000..cef2950915 --- /dev/null +++ b/sdk/constructive-cli/src/config/orm/models/config.ts @@ -0,0 +1,245 @@ +/** + * Config model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + Config, + ConfigWithRelations, + ConfigSelect, + ConfigFilter, + ConfigOrderBy, + CreateConfigInput, + UpdateConfigInput, + ConfigPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class ConfigModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + configs: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'Config', + 'configs', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'ConfigFilter', + 'ConfigOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'Config', + fieldName: 'configs', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + config: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'Config', + 'configs', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'ConfigFilter', + 'ConfigOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'Config', + fieldName: 'config', + document, + variables, + transform: (data: { + configs?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + config: data.configs?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + config: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'Config', + 'configs', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'ConfigFilter', + 'ConfigOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'Config', + fieldName: 'config', + document, + variables, + transform: (data: { + configs?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + config: data.configs?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createConfig: { + config: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'Config', + 'createConfig', + 'config', + args.select, + args.data, + 'CreateConfigInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'Config', + fieldName: 'createConfig', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + ConfigPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateConfig: { + config: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'Config', + 'updateConfig', + 'config', + args.select, + args.where.id, + args.data, + 'UpdateConfigInput', + 'id', + 'configPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'Config', + fieldName: 'updateConfig', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteConfig: { + config: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'Config', + 'deleteConfig', + 'config', + { + id: args.where.id, + }, + 'DeleteConfigInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'Config', + fieldName: 'deleteConfig', + document, + variables, + }); + } +} diff --git a/sdk/constructive-cli/src/config/orm/models/index.ts b/sdk/constructive-cli/src/config/orm/models/index.ts index c641a1f3e5..34d689b28d 100644 --- a/sdk/constructive-cli/src/config/orm/models/index.ts +++ b/sdk/constructive-cli/src/config/orm/models/index.ts @@ -3,5 +3,8 @@ * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ -export { PlatformConfigDefinitionModel } from './platformConfigDefinition'; export { PlatformConfigModel } from './platformConfig'; +export { ConfigModel } from './config'; +export { PlatformInternalSecretModel } from './platformInternalSecret'; +export { PlatformSecretModel } from './platformSecret'; +export { SecretModel } from './secret'; diff --git a/sdk/constructive-cli/src/config/orm/models/platformConfigDefinition.ts b/sdk/constructive-cli/src/config/orm/models/platformConfigDefinition.ts deleted file mode 100644 index c28ff1566e..0000000000 --- a/sdk/constructive-cli/src/config/orm/models/platformConfigDefinition.ts +++ /dev/null @@ -1,247 +0,0 @@ -/** - * PlatformConfigDefinition model for ORM client - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { OrmClient } from '../client'; -import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, - buildCreateDocument, - buildUpdateByPkDocument, - buildDeleteByPkDocument, -} from '../query-builder'; -import type { - ConnectionResult, - FindManyArgs, - FindFirstArgs, - CreateArgs, - UpdateArgs, - DeleteArgs, - InferSelectResult, - StrictSelect, -} from '../select-types'; -import type { - PlatformConfigDefinition, - PlatformConfigDefinitionWithRelations, - PlatformConfigDefinitionSelect, - PlatformConfigDefinitionFilter, - PlatformConfigDefinitionOrderBy, - CreatePlatformConfigDefinitionInput, - UpdatePlatformConfigDefinitionInput, - PlatformConfigDefinitionPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class PlatformConfigDefinitionModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - platformConfigDefinitions: ConnectionResult< - InferSelectResult - >; - }> { - const { document, variables } = buildFindManyDocument( - 'PlatformConfigDefinition', - 'platformConfigDefinitions', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - first: args?.first, - last: args?.last, - after: args?.after, - before: args?.before, - offset: args?.offset, - }, - 'PlatformConfigDefinitionFilter', - 'PlatformConfigDefinitionOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'PlatformConfigDefinition', - fieldName: 'platformConfigDefinitions', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - platformConfigDefinition: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'PlatformConfigDefinition', - 'platformConfigDefinitions', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'PlatformConfigDefinitionFilter', - 'PlatformConfigDefinitionOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'PlatformConfigDefinition', - fieldName: 'platformConfigDefinition', - document, - variables, - transform: (data: { - platformConfigDefinitions?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - platformConfigDefinition: data.platformConfigDefinitions?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - platformConfigDefinition: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'PlatformConfigDefinition', - 'platformConfigDefinitions', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'PlatformConfigDefinitionFilter', - 'PlatformConfigDefinitionOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'PlatformConfigDefinition', - fieldName: 'platformConfigDefinition', - document, - variables, - transform: (data: { - platformConfigDefinitions?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - platformConfigDefinition: data.platformConfigDefinitions?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createPlatformConfigDefinition: { - platformConfigDefinition: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'PlatformConfigDefinition', - 'createPlatformConfigDefinition', - 'platformConfigDefinition', - args.select, - args.data, - 'CreatePlatformConfigDefinitionInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'PlatformConfigDefinition', - fieldName: 'createPlatformConfigDefinition', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - PlatformConfigDefinitionPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updatePlatformConfigDefinition: { - platformConfigDefinition: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'PlatformConfigDefinition', - 'updatePlatformConfigDefinition', - 'platformConfigDefinition', - args.select, - args.where.id, - args.data, - 'UpdatePlatformConfigDefinitionInput', - 'id', - 'platformConfigDefinitionPatch', - connectionFieldsMap, - undefined - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'PlatformConfigDefinition', - fieldName: 'updatePlatformConfigDefinition', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deletePlatformConfigDefinition: { - platformConfigDefinition: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'PlatformConfigDefinition', - 'deletePlatformConfigDefinition', - 'platformConfigDefinition', - { - id: args.where.id, - }, - 'DeletePlatformConfigDefinitionInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'PlatformConfigDefinition', - fieldName: 'deletePlatformConfigDefinition', - document, - variables, - }); - } -} diff --git a/sdk/constructive-cli/src/config/orm/models/platformInternalSecret.ts b/sdk/constructive-cli/src/config/orm/models/platformInternalSecret.ts new file mode 100644 index 0000000000..35e0c7b538 --- /dev/null +++ b/sdk/constructive-cli/src/config/orm/models/platformInternalSecret.ts @@ -0,0 +1,176 @@ +/** + * PlatformInternalSecret model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + PlatformInternalSecret, + PlatformInternalSecretWithRelations, + PlatformInternalSecretSelect, + PlatformInternalSecretFilter, + PlatformInternalSecretOrderBy, + CreatePlatformInternalSecretInput, + UpdatePlatformInternalSecretInput, + PlatformInternalSecretPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class PlatformInternalSecretModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformInternalSecrets: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformInternalSecret', + 'platformInternalSecrets', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'PlatformInternalSecretFilter', + 'PlatformInternalSecretOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformInternalSecret', + fieldName: 'platformInternalSecrets', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformInternalSecret: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'PlatformInternalSecret', + 'platformInternalSecrets', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'PlatformInternalSecretFilter', + 'PlatformInternalSecretOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformInternalSecret', + fieldName: 'platformInternalSecret', + document, + variables, + transform: (data: { + platformInternalSecrets?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformInternalSecret: data.platformInternalSecrets?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformInternalSecret: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformInternalSecret', + 'platformInternalSecrets', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'PlatformInternalSecretFilter', + 'PlatformInternalSecretOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformInternalSecret', + fieldName: 'platformInternalSecret', + document, + variables, + transform: (data: { + platformInternalSecrets?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformInternalSecret: data.platformInternalSecrets?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createPlatformInternalSecret: { + platformInternalSecret: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'PlatformInternalSecret', + 'createPlatformInternalSecret', + 'platformInternalSecret', + args.select, + args.data, + 'CreatePlatformInternalSecretInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformInternalSecret', + fieldName: 'createPlatformInternalSecret', + document, + variables, + }); + } +} diff --git a/sdk/constructive-cli/src/config/orm/models/platformSecret.ts b/sdk/constructive-cli/src/config/orm/models/platformSecret.ts new file mode 100644 index 0000000000..03c0e23540 --- /dev/null +++ b/sdk/constructive-cli/src/config/orm/models/platformSecret.ts @@ -0,0 +1,174 @@ +/** + * PlatformSecret model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + PlatformSecret, + PlatformSecretWithRelations, + PlatformSecretSelect, + PlatformSecretFilter, + PlatformSecretOrderBy, + CreatePlatformSecretInput, + UpdatePlatformSecretInput, + PlatformSecretPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class PlatformSecretModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformSecrets: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformSecret', + 'platformSecrets', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'PlatformSecretFilter', + 'PlatformSecretOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformSecret', + fieldName: 'platformSecrets', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformSecret: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'PlatformSecret', + 'platformSecrets', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'PlatformSecretFilter', + 'PlatformSecretOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformSecret', + fieldName: 'platformSecret', + document, + variables, + transform: (data: { + platformSecrets?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformSecret: data.platformSecrets?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformSecret: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformSecret', + 'platformSecrets', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'PlatformSecretFilter', + 'PlatformSecretOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformSecret', + fieldName: 'platformSecret', + document, + variables, + transform: (data: { + platformSecrets?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformSecret: data.platformSecrets?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createPlatformSecret: { + platformSecret: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'PlatformSecret', + 'createPlatformSecret', + 'platformSecret', + args.select, + args.data, + 'CreatePlatformSecretInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformSecret', + fieldName: 'createPlatformSecret', + document, + variables, + }); + } +} diff --git a/sdk/constructive-cli/src/config/orm/models/secret.ts b/sdk/constructive-cli/src/config/orm/models/secret.ts new file mode 100644 index 0000000000..37571240d8 --- /dev/null +++ b/sdk/constructive-cli/src/config/orm/models/secret.ts @@ -0,0 +1,174 @@ +/** + * Secret model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + Secret, + SecretWithRelations, + SecretSelect, + SecretFilter, + SecretOrderBy, + CreateSecretInput, + UpdateSecretInput, + SecretPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class SecretModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + secrets: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'Secret', + 'secrets', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'SecretFilter', + 'SecretOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'Secret', + fieldName: 'secrets', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + secret: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'Secret', + 'secrets', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'SecretFilter', + 'SecretOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'Secret', + fieldName: 'secret', + document, + variables, + transform: (data: { + secrets?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + secret: data.secrets?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + secret: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'Secret', + 'secrets', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'SecretFilter', + 'SecretOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'Secret', + fieldName: 'secret', + document, + variables, + transform: (data: { + secrets?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + secret: data.secrets?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createSecret: { + secret: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'Secret', + 'createSecret', + 'secret', + args.select, + args.data, + 'CreateSecretInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'Secret', + fieldName: 'createSecret', + 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 b9ef205a98..9eff7cd543 100644 --- a/sdk/constructive-cli/src/config/orm/mutation/index.ts +++ b/sdk/constructive-cli/src/config/orm/mutation/index.ts @@ -7,58 +7,82 @@ import { OrmClient } from '../client'; import { QueryBuilder, buildCustomDocument } from '../query-builder'; import type { InferSelectResult, StrictSelect } from '../select-types'; import type { + PlatformInternalSecretsDelInput, PlatformSecretsDelInput, - OrgSecretsDelInput, + _SecretsDelInput, + PlatformInternalSecretsRemoveArrayInput, PlatformSecretsRemoveArrayInput, - OrgSecretsRemoveArrayInput, + _SecretsRemoveArrayInput, + PlatformInternalSecretsRotateInput, + PlatformInternalSecretsSetInput, PlatformSecretsRotateInput, + _SecretsRotateInput, PlatformSecretsSetInput, - OrgSecretsRotateInput, - OrgSecretsSetInput, + _SecretsSetInput, ProvisionBucketInput, + PlatformInternalSecretsDelPayload, PlatformSecretsDelPayload, - OrgSecretsDelPayload, + _SecretsDelPayload, + PlatformInternalSecretsRemoveArrayPayload, PlatformSecretsRemoveArrayPayload, - OrgSecretsRemoveArrayPayload, + _SecretsRemoveArrayPayload, + PlatformInternalSecretsRotatePayload, + PlatformInternalSecretsSetPayload, PlatformSecretsRotatePayload, + _SecretsRotatePayload, PlatformSecretsSetPayload, - OrgSecretsRotatePayload, - OrgSecretsSetPayload, + _SecretsSetPayload, ProvisionBucketPayload, + PlatformInternalSecretsDelPayloadSelect, PlatformSecretsDelPayloadSelect, - OrgSecretsDelPayloadSelect, + _SecretsDelPayloadSelect, + PlatformInternalSecretsRemoveArrayPayloadSelect, PlatformSecretsRemoveArrayPayloadSelect, - OrgSecretsRemoveArrayPayloadSelect, + _SecretsRemoveArrayPayloadSelect, + PlatformInternalSecretsRotatePayloadSelect, + PlatformInternalSecretsSetPayloadSelect, PlatformSecretsRotatePayloadSelect, + _SecretsRotatePayloadSelect, PlatformSecretsSetPayloadSelect, - OrgSecretsRotatePayloadSelect, - OrgSecretsSetPayloadSelect, + _SecretsSetPayloadSelect, ProvisionBucketPayloadSelect, } from '../input-types'; import { connectionFieldsMap } from '../input-types'; +export interface PlatformInternalSecretsDelVariables { + input: PlatformInternalSecretsDelInput; +} export interface PlatformSecretsDelVariables { input: PlatformSecretsDelInput; } -export interface OrgSecretsDelVariables { - input: OrgSecretsDelInput; +export interface _secretsDelVariables { + input: _SecretsDelInput; +} +export interface PlatformInternalSecretsRemoveArrayVariables { + input: PlatformInternalSecretsRemoveArrayInput; } export interface PlatformSecretsRemoveArrayVariables { input: PlatformSecretsRemoveArrayInput; } -export interface OrgSecretsRemoveArrayVariables { - input: OrgSecretsRemoveArrayInput; +export interface _secretsRemoveArrayVariables { + input: _SecretsRemoveArrayInput; +} +export interface PlatformInternalSecretsRotateVariables { + input: PlatformInternalSecretsRotateInput; +} +export interface PlatformInternalSecretsSetVariables { + input: PlatformInternalSecretsSetInput; } export interface PlatformSecretsRotateVariables { input: PlatformSecretsRotateInput; } +export interface _secretsRotateVariables { + input: _SecretsRotateInput; +} export interface PlatformSecretsSetVariables { input: PlatformSecretsSetInput; } -export interface OrgSecretsRotateVariables { - input: OrgSecretsRotateInput; -} -export interface OrgSecretsSetVariables { - input: OrgSecretsSetInput; +export interface _secretsSetVariables { + input: _SecretsSetInput; } /** * Variables for provisionBucket @@ -72,6 +96,35 @@ export interface ProvisionBucketVariables { } export function createMutationOperations(client: OrmClient) { return { + platformInternalSecretsDel: ( + args: PlatformInternalSecretsDelVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + platformInternalSecretsDel: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'PlatformInternalSecretsDel', + fieldName: 'platformInternalSecretsDel', + ...buildCustomDocument( + 'mutation', + 'PlatformInternalSecretsDel', + 'platformInternalSecretsDel', + options.select, + args, + [ + { + name: 'input', + type: 'PlatformInternalSecretsDelInput!', + }, + ], + connectionFieldsMap, + 'PlatformInternalSecretsDelPayload' + ), + }), platformSecretsDel: ( args: PlatformSecretsDelVariables, options: { @@ -101,33 +154,65 @@ export function createMutationOperations(client: OrmClient) { 'PlatformSecretsDelPayload' ), }), - orgSecretsDel: ( - args: OrgSecretsDelVariables, + _secretsDel: ( + args: _secretsDelVariables, options: { select: S; - } & StrictSelect + } & StrictSelect ) => new QueryBuilder<{ - orgSecretsDel: InferSelectResult | null; + _secretsDel: InferSelectResult<_SecretsDelPayload, S> | null; }>({ client, operation: 'mutation', - operationName: 'OrgSecretsDel', - fieldName: 'orgSecretsDel', + operationName: '_secretsDel', + fieldName: '_secretsDel', ...buildCustomDocument( 'mutation', - 'OrgSecretsDel', - 'orgSecretsDel', + '_secretsDel', + '_secretsDel', options.select, args, [ { name: 'input', - type: 'OrgSecretsDelInput!', + type: '_SecretsDelInput!', }, ], connectionFieldsMap, - 'OrgSecretsDelPayload' + '_SecretsDelPayload' + ), + }), + platformInternalSecretsRemoveArray: ( + args: PlatformInternalSecretsRemoveArrayVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + platformInternalSecretsRemoveArray: InferSelectResult< + PlatformInternalSecretsRemoveArrayPayload, + S + > | null; + }>({ + client, + operation: 'mutation', + operationName: 'PlatformInternalSecretsRemoveArray', + fieldName: 'platformInternalSecretsRemoveArray', + ...buildCustomDocument( + 'mutation', + 'PlatformInternalSecretsRemoveArray', + 'platformInternalSecretsRemoveArray', + options.select, + args, + [ + { + name: 'input', + type: 'PlatformInternalSecretsRemoveArrayInput!', + }, + ], + connectionFieldsMap, + 'PlatformInternalSecretsRemoveArrayPayload' ), }), platformSecretsRemoveArray: ( @@ -159,33 +244,94 @@ export function createMutationOperations(client: OrmClient) { 'PlatformSecretsRemoveArrayPayload' ), }), - orgSecretsRemoveArray: ( - args: OrgSecretsRemoveArrayVariables, + _secretsRemoveArray: ( + args: _secretsRemoveArrayVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + _secretsRemoveArray: InferSelectResult<_SecretsRemoveArrayPayload, S> | null; + }>({ + client, + operation: 'mutation', + operationName: '_secretsRemoveArray', + fieldName: '_secretsRemoveArray', + ...buildCustomDocument( + 'mutation', + '_secretsRemoveArray', + '_secretsRemoveArray', + options.select, + args, + [ + { + name: 'input', + type: '_SecretsRemoveArrayInput!', + }, + ], + connectionFieldsMap, + '_SecretsRemoveArrayPayload' + ), + }), + platformInternalSecretsRotate: ( + args: PlatformInternalSecretsRotateVariables, options: { select: S; - } & StrictSelect + } & StrictSelect ) => new QueryBuilder<{ - orgSecretsRemoveArray: InferSelectResult | null; + platformInternalSecretsRotate: InferSelectResult< + PlatformInternalSecretsRotatePayload, + S + > | null; }>({ client, operation: 'mutation', - operationName: 'OrgSecretsRemoveArray', - fieldName: 'orgSecretsRemoveArray', + operationName: 'PlatformInternalSecretsRotate', + fieldName: 'platformInternalSecretsRotate', ...buildCustomDocument( 'mutation', - 'OrgSecretsRemoveArray', - 'orgSecretsRemoveArray', + 'PlatformInternalSecretsRotate', + 'platformInternalSecretsRotate', options.select, args, [ { name: 'input', - type: 'OrgSecretsRemoveArrayInput!', + type: 'PlatformInternalSecretsRotateInput!', }, ], connectionFieldsMap, - 'OrgSecretsRemoveArrayPayload' + 'PlatformInternalSecretsRotatePayload' + ), + }), + platformInternalSecretsSet: ( + args: PlatformInternalSecretsSetVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + platformInternalSecretsSet: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'PlatformInternalSecretsSet', + fieldName: 'platformInternalSecretsSet', + ...buildCustomDocument( + 'mutation', + 'PlatformInternalSecretsSet', + 'platformInternalSecretsSet', + options.select, + args, + [ + { + name: 'input', + type: 'PlatformInternalSecretsSetInput!', + }, + ], + connectionFieldsMap, + 'PlatformInternalSecretsSetPayload' ), }), platformSecretsRotate: ( @@ -217,91 +363,91 @@ export function createMutationOperations(client: OrmClient) { 'PlatformSecretsRotatePayload' ), }), - platformSecretsSet: ( - args: PlatformSecretsSetVariables, + _secretsRotate: ( + args: _secretsRotateVariables, options: { select: S; - } & StrictSelect + } & StrictSelect ) => new QueryBuilder<{ - platformSecretsSet: InferSelectResult | null; + _secretsRotate: InferSelectResult<_SecretsRotatePayload, S> | null; }>({ client, operation: 'mutation', - operationName: 'PlatformSecretsSet', - fieldName: 'platformSecretsSet', + operationName: '_secretsRotate', + fieldName: '_secretsRotate', ...buildCustomDocument( 'mutation', - 'PlatformSecretsSet', - 'platformSecretsSet', + '_secretsRotate', + '_secretsRotate', options.select, args, [ { name: 'input', - type: 'PlatformSecretsSetInput!', + type: '_SecretsRotateInput!', }, ], connectionFieldsMap, - 'PlatformSecretsSetPayload' + '_SecretsRotatePayload' ), }), - orgSecretsRotate: ( - args: OrgSecretsRotateVariables, + platformSecretsSet: ( + args: PlatformSecretsSetVariables, options: { select: S; - } & StrictSelect + } & StrictSelect ) => new QueryBuilder<{ - orgSecretsRotate: InferSelectResult | null; + platformSecretsSet: InferSelectResult | null; }>({ client, operation: 'mutation', - operationName: 'OrgSecretsRotate', - fieldName: 'orgSecretsRotate', + operationName: 'PlatformSecretsSet', + fieldName: 'platformSecretsSet', ...buildCustomDocument( 'mutation', - 'OrgSecretsRotate', - 'orgSecretsRotate', + 'PlatformSecretsSet', + 'platformSecretsSet', options.select, args, [ { name: 'input', - type: 'OrgSecretsRotateInput!', + type: 'PlatformSecretsSetInput!', }, ], connectionFieldsMap, - 'OrgSecretsRotatePayload' + 'PlatformSecretsSetPayload' ), }), - orgSecretsSet: ( - args: OrgSecretsSetVariables, + _secretsSet: ( + args: _secretsSetVariables, options: { select: S; - } & StrictSelect + } & StrictSelect ) => new QueryBuilder<{ - orgSecretsSet: InferSelectResult | null; + _secretsSet: InferSelectResult<_SecretsSetPayload, S> | null; }>({ client, operation: 'mutation', - operationName: 'OrgSecretsSet', - fieldName: 'orgSecretsSet', + operationName: '_secretsSet', + fieldName: '_secretsSet', ...buildCustomDocument( 'mutation', - 'OrgSecretsSet', - 'orgSecretsSet', + '_secretsSet', + '_secretsSet', options.select, args, [ { name: 'input', - type: 'OrgSecretsSetInput!', + type: '_SecretsSetInput!', }, ], connectionFieldsMap, - 'OrgSecretsSetPayload' + '_SecretsSetPayload' ), }), provisionBucket: ( diff --git a/sdk/constructive-cli/src/index.ts b/sdk/constructive-cli/src/index.ts index eb54985786..f64a72cd39 100644 --- a/sdk/constructive-cli/src/index.ts +++ b/sdk/constructive-cli/src/index.ts @@ -12,6 +12,7 @@ export * as api from './api'; export * as auth from './auth'; export * as compute from './compute'; export * as config from './config'; +export * as infra from './infra'; export * as modules from './modules'; export * as objects from './objects'; export * as usage from './usage'; diff --git a/sdk/constructive-cli/src/infra/README.md b/sdk/constructive-cli/src/infra/README.md new file mode 100644 index 0000000000..ab97a0d2bf --- /dev/null +++ b/sdk/constructive-cli/src/infra/README.md @@ -0,0 +1,47 @@ +# Generated GraphQL SDK + +

+ +

+ + + +## Overview + +- **Tables:** 10 +- **Custom queries:** 0 +- **Custom mutations:** 4 + +**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. + +--- + +Built by the [Constructive](https://constructive.io) team. + +## Disclaimer + +AS DESCRIBED IN THE LICENSES, THE SOFTWARE IS PROVIDED "AS IS", AT YOUR OWN RISK, AND WITHOUT WARRANTIES OF ANY KIND. + +No developer or entity involved in creating this software will be liable for any claims or damages whatsoever associated with your use, inability to use, or your interaction with other users of the code, including any direct, indirect, incidental, special, exemplary, punitive or consequential damages, or loss of profits, cryptocurrencies, tokens, or anything else of value. diff --git a/sdk/constructive-cli/src/infra/cli/README.md b/sdk/constructive-cli/src/infra/cli/README.md new file mode 100644 index 0000000000..826d2286c3 --- /dev/null +++ b/sdk/constructive-cli/src/infra/cli/README.md @@ -0,0 +1,476 @@ +# 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) | +| `infra-get-all-record` | infraGetAllRecord CRUD operations | +| `infra-ref` | infraRef CRUD operations | +| `infra-store` | infraStore CRUD operations | +| `infra-object` | infraObject CRUD operations | +| `infra-commit` | infraCommit CRUD operations | +| `db-preset` | dbPreset CRUD operations | +| `platform-namespace` | platformNamespace CRUD operations | +| `namespace` | namespace CRUD operations | +| `platform-namespace-event` | platformNamespaceEvent CRUD operations | +| `namespace-event` | namespaceEvent CRUD operations | +| `infra-init-empty-repo` | infraInitEmptyRepo | +| `infra-set-data-at-path` | infraSetDataAtPath | +| `infra-insert-node-at-path` | infraInsertNodeAtPath | +| `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 + +### `infra-get-all-record` + +CRUD operations for InfraGetAllRecord records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all infraGetAllRecord records | +| `find-first` | Find first matching infraGetAllRecord record | +| `get` | Get a infraGetAllRecord by id | +| `create` | Create a new infraGetAllRecord | +| `update` | Update an existing infraGetAllRecord | +| `delete` | Delete a infraGetAllRecord | + +**Fields:** + +| Field | Type | +|-------|------| +| `path` | String | +| `data` | JSON | + +**Required create fields:** `path`, `data` + +### `infra-ref` + +CRUD operations for InfraRef 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 | + +**Fields:** + +| Field | Type | +|-------|------| +| `id` | UUID | +| `name` | String | +| `scopeId` | UUID | +| `storeId` | UUID | +| `commitId` | UUID | + +**Required create fields:** `name`, `scopeId`, `storeId` +**Optional create fields (backend defaults):** `commitId` + +### `infra-store` + +CRUD operations for InfraStore 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 | + +**Fields:** + +| Field | Type | +|-------|------| +| `id` | UUID | +| `name` | String | +| `scopeId` | UUID | +| `hash` | UUID | +| `createdAt` | Datetime | + +**Required create fields:** `name`, `scopeId` +**Optional create fields (backend defaults):** `hash` + +### `infra-object` + +CRUD operations for InfraObject 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 | + +**Fields:** + +| Field | Type | +|-------|------| +| `id` | UUID | +| `scopeId` | UUID | +| `kids` | UUID | +| `ktree` | String | +| `data` | JSON | +| `createdAt` | Datetime | + +**Required create fields:** `scopeId` +**Optional create fields (backend defaults):** `kids`, `ktree`, `data` + +### `infra-commit` + +CRUD operations for InfraCommit 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 | + +**Fields:** + +| Field | Type | +|-------|------| +| `id` | UUID | +| `message` | String | +| `scopeId` | UUID | +| `storeId` | UUID | +| `parentIds` | UUID | +| `authorId` | UUID | +| `committerId` | UUID | +| `treeId` | UUID | +| `date` | Datetime | + +**Required create fields:** `scopeId`, `storeId` +**Optional create fields (backend defaults):** `message`, `parentIds`, `authorId`, `committerId`, `treeId`, `date` + +### `db-preset` + +CRUD operations for DbPreset 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 | + +**Fields:** + +| Field | Type | +|-------|------| +| `id` | UUID | +| `storeId` | UUID | +| `slug` | String | +| `definition` | JSON | +| `commitId` | UUID | +| `modulesHash` | UUID | +| `label` | String | +| `description` | String | +| `active` | Boolean | +| `createdAt` | Datetime | +| `updatedAt` | Datetime | + +**Required create fields:** `slug`, `definition` +**Optional create fields (backend defaults):** `storeId`, `commitId`, `modulesHash`, `label`, `description`, `active` + +### `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 | +|-------|------| +| `id` | UUID | +| `createdAt` | Datetime | +| `updatedAt` | Datetime | +| `name` | String | +| `namespaceName` | String | +| `description` | String | +| `isActive` | Boolean | +| `status` | String | +| `lastError` | String | +| `labels` | JSON | +| `annotations` | JSON | +| `isManaged` | Boolean | + +**Required create fields:** `name`, `namespaceName` +**Optional create fields (backend defaults):** `description`, `isActive`, `status`, `lastError`, `labels`, `annotations`, `isManaged` + +### `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 | +|-------|------| +| `id` | UUID | +| `createdAt` | Datetime | +| `updatedAt` | Datetime | +| `name` | String | +| `namespaceName` | String | +| `description` | String | +| `isActive` | Boolean | +| `status` | String | +| `lastError` | String | +| `labels` | JSON | +| `annotations` | JSON | +| `databaseId` | UUID | +| `isManaged` | Boolean | + +**Required create fields:** `name`, `namespaceName`, `databaseId` +**Optional create fields (backend defaults):** `description`, `isActive`, `status`, `lastError`, `labels`, `annotations`, `isManaged` + +### `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 | +|-------|------| +| `createdAt` | Datetime | +| `id` | UUID | +| `namespaceId` | UUID | +| `eventType` | String | +| `actorId` | UUID | +| `message` | String | +| `metadata` | JSON | +| `cpuMillicores` | Int | +| `memoryBytes` | BigInt | +| `storageBytes` | BigInt | +| `networkIngressBytes` | BigInt | +| `networkEgressBytes` | BigInt | +| `podCount` | Int | +| `metrics` | JSON | + +**Required create fields:** `namespaceId`, `eventType` +**Optional create fields (backend defaults):** `actorId`, `message`, `metadata`, `cpuMillicores`, `memoryBytes`, `storageBytes`, `networkIngressBytes`, `networkEgressBytes`, `podCount`, `metrics` + +### `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 | +|-------|------| +| `createdAt` | Datetime | +| `id` | UUID | +| `namespaceId` | UUID | +| `eventType` | String | +| `actorId` | UUID | +| `message` | String | +| `metadata` | JSON | +| `cpuMillicores` | Int | +| `memoryBytes` | BigInt | +| `storageBytes` | BigInt | +| `networkIngressBytes` | BigInt | +| `networkEgressBytes` | BigInt | +| `podCount` | Int | +| `metrics` | JSON | +| `databaseId` | UUID | + +**Required create fields:** `namespaceId`, `eventType`, `databaseId` +**Optional create fields (backend defaults):** `actorId`, `message`, `metadata`, `cpuMillicores`, `memoryBytes`, `storageBytes`, `networkIngressBytes`, `networkEgressBytes`, `podCount`, `metrics` + +## Custom Operations + +### `infra-init-empty-repo` + +infraInitEmptyRepo + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `--input.clientMutationId` | String | + | `--input.sId` | UUID | + | `--input.storeId` | UUID | + +### `infra-set-data-at-path` + +infraSetDataAtPath + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `--input.clientMutationId` | String | + | `--input.sId` | UUID | + | `--input.root` | UUID | + | `--input.path` | String | + | `--input.data` | JSON | + +### `infra-insert-node-at-path` + +infraInsertNodeAtPath + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `--input.clientMutationId` | String | + | `--input.sId` | UUID | + | `--input.root` | UUID | + | `--input.path` | String | + | `--input.data` | JSON | + | `--input.kids` | UUID | + | `--input.ktree` | 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 | + +## 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 +``` + +--- + +Built by the [Constructive](https://constructive.io) team. + +## Disclaimer + +AS DESCRIBED IN THE LICENSES, THE SOFTWARE IS PROVIDED "AS IS", AT YOUR OWN RISK, AND WITHOUT WARRANTIES OF ANY KIND. + +No developer or entity involved in creating this software will be liable for any claims or damages whatsoever associated with your use, inability to use, or your interaction with other users of the code, including any direct, indirect, incidental, special, exemplary, punitive or consequential damages, or loss of profits, cryptocurrencies, tokens, or anything else of value. diff --git a/sdk/constructive-cli/src/infra/cli/commands.ts b/sdk/constructive-cli/src/infra/cli/commands.ts new file mode 100644 index 0000000000..c771563b0d --- /dev/null +++ b/sdk/constructive-cli/src/infra/cli/commands.ts @@ -0,0 +1,81 @@ +/** + * 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 infraGetAllRecordCmd from './commands/infra-get-all-record'; +import infraRefCmd from './commands/infra-ref'; +import infraStoreCmd from './commands/infra-store'; +import infraObjectCmd from './commands/infra-object'; +import infraCommitCmd from './commands/infra-commit'; +import dbPresetCmd from './commands/db-preset'; +import platformNamespaceCmd from './commands/platform-namespace'; +import namespaceCmd from './commands/namespace'; +import platformNamespaceEventCmd from './commands/platform-namespace-event'; +import namespaceEventCmd from './commands/namespace-event'; +import infraInitEmptyRepoCmd from './commands/infra-init-empty-repo'; +import infraSetDataAtPathCmd from './commands/infra-set-data-at-path'; +import infraInsertNodeAtPathCmd from './commands/infra-insert-node-at-path'; +import provisionBucketCmd from './commands/provision-bucket'; +const createCommandMap: () => Record< + string, + ( + argv: Partial>, + prompter: Inquirerer, + options: CLIOptions + ) => Promise +> = () => ({ + context: contextCmd, + auth: authCmd, + 'infra-get-all-record': infraGetAllRecordCmd, + 'infra-ref': infraRefCmd, + 'infra-store': infraStoreCmd, + 'infra-object': infraObjectCmd, + 'infra-commit': infraCommitCmd, + 'db-preset': dbPresetCmd, + 'platform-namespace': platformNamespaceCmd, + namespace: namespaceCmd, + 'platform-namespace-event': platformNamespaceEventCmd, + 'namespace-event': namespaceEventCmd, + 'infra-init-empty-repo': infraInitEmptyRepoCmd, + 'infra-set-data-at-path': infraSetDataAtPathCmd, + 'infra-insert-node-at-path': infraInsertNodeAtPathCmd, + 'provision-bucket': provisionBucketCmd, +}); +const usage = + '\ncsdk \n\nCommands:\n context Manage API contexts\n auth Manage authentication\n infra-get-all-record infraGetAllRecord CRUD operations\n infra-ref infraRef CRUD operations\n infra-store infraStore CRUD operations\n infra-object infraObject CRUD operations\n infra-commit infraCommit CRUD operations\n db-preset dbPreset CRUD operations\n platform-namespace platformNamespace CRUD operations\n namespace namespace CRUD operations\n platform-namespace-event platformNamespaceEvent CRUD operations\n namespace-event namespaceEvent CRUD operations\n infra-init-empty-repo infraInitEmptyRepo\n infra-set-data-at-path infraSetDataAtPath\n infra-insert-node-at-path infraInsertNodeAtPath\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/infra/cli/commands/auth.ts b/sdk/constructive-cli/src/infra/cli/commands/auth.ts new file mode 100644 index 0000000000..c731ba27ca --- /dev/null +++ b/sdk/constructive-cli/src/infra/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/infra/cli/commands/context.ts b/sdk/constructive-cli/src/infra/cli/commands/context.ts new file mode 100644 index 0000000000..52d12c666b --- /dev/null +++ b/sdk/constructive-cli/src/infra/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/infra/cli/commands/db-preset.ts b/sdk/constructive-cli/src/infra/cli/commands/db-preset.ts new file mode 100644 index 0000000000..ff9c85ed9d --- /dev/null +++ b/sdk/constructive-cli/src/infra/cli/commands/db-preset.ts @@ -0,0 +1,412 @@ +/** + * CLI commands for DbPreset + * @generated 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 { + CreateDbPresetInput, + DbPresetPatch, + DbPresetSelect, + DbPresetFilter, + DbPresetOrderBy, +} from '../../orm/input-types'; +import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; +const fieldSchema: FieldSchema = { + id: 'uuid', + storeId: 'uuid', + slug: 'string', + definition: 'json', + commitId: 'uuid', + modulesHash: 'uuid', + label: 'string', + description: 'string', + active: 'boolean', + createdAt: 'string', + updatedAt: 'string', +}; +const usage = + '\ndb-preset \n\nCommands:\n list List dbPreset records\n find-first Find first matching dbPreset record\n get Get a dbPreset by ID\n create Create a new dbPreset\n update Update an existing dbPreset\n delete Delete a dbPreset\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (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, + storeId: true, + slug: true, + definition: true, + commitId: true, + modulesHash: true, + label: true, + description: true, + active: true, + createdAt: true, + updatedAt: true, + }; + const findManyArgs = parseFindManyArgs< + FindManyArgs & { + select: DbPresetSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.dbPreset.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, + storeId: true, + slug: true, + definition: true, + commitId: true, + modulesHash: true, + label: true, + description: true, + active: true, + createdAt: true, + updatedAt: true, + }; + const findFirstArgs = parseFindFirstArgs< + FindFirstArgs & { + select: DbPresetSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.dbPreset.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.dbPreset + .findOne({ + id: answers.id as string, + select: { + id: true, + storeId: true, + slug: true, + definition: true, + commitId: true, + modulesHash: true, + label: true, + description: true, + active: true, + createdAt: true, + updatedAt: true, + }, + }) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Record not found.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} +async function handleCreate(argv: Partial>, prompter: Inquirerer) { + try { + const rawAnswers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'storeId', + message: 'storeId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'slug', + message: 'slug', + required: true, + }, + { + type: 'json', + name: 'definition', + message: 'definition', + required: true, + }, + { + type: 'text', + name: 'commitId', + message: 'commitId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'modulesHash', + message: 'modulesHash', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'label', + message: 'label', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'description', + message: 'description', + required: false, + skipPrompt: true, + }, + { + type: 'boolean', + name: 'active', + message: 'active', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined(answers, fieldSchema) as CreateDbPresetInput['dbPreset']; + const client = getClient(); + const result = await client.dbPreset + .create({ + data: { + storeId: cleanedData.storeId, + slug: cleanedData.slug, + definition: cleanedData.definition, + commitId: cleanedData.commitId, + modulesHash: cleanedData.modulesHash, + label: cleanedData.label, + description: cleanedData.description, + active: cleanedData.active, + }, + select: { + id: true, + storeId: true, + slug: true, + definition: true, + commitId: true, + modulesHash: true, + label: true, + description: true, + active: true, + createdAt: true, + updatedAt: true, + }, + }) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to create record.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} +async function handleUpdate(argv: Partial>, prompter: Inquirerer) { + try { + const rawAnswers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'id', + message: 'id', + required: true, + }, + { + type: 'text', + name: 'storeId', + message: 'storeId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'slug', + message: 'slug', + required: false, + }, + { + type: 'json', + name: 'definition', + message: 'definition', + required: false, + }, + { + type: 'text', + name: 'commitId', + message: 'commitId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'modulesHash', + message: 'modulesHash', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'label', + message: 'label', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'description', + message: 'description', + required: false, + skipPrompt: true, + }, + { + type: 'boolean', + name: 'active', + message: 'active', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined(answers, fieldSchema) as DbPresetPatch; + const client = getClient(); + const result = await client.dbPreset + .update({ + where: { + id: answers.id as string, + }, + data: { + storeId: cleanedData.storeId, + slug: cleanedData.slug, + definition: cleanedData.definition, + commitId: cleanedData.commitId, + modulesHash: cleanedData.modulesHash, + label: cleanedData.label, + description: cleanedData.description, + active: cleanedData.active, + }, + select: { + id: true, + storeId: true, + slug: true, + definition: true, + commitId: true, + modulesHash: true, + label: true, + description: true, + active: true, + createdAt: true, + updatedAt: true, + }, + }) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to update record.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} +async function handleDelete(argv: Partial>, prompter: Inquirerer) { + try { + const rawAnswers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'id', + message: 'id', + required: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const client = getClient(); + const result = await client.dbPreset + .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/infra-commit.ts b/sdk/constructive-cli/src/infra/cli/commands/infra-commit.ts new file mode 100644 index 0000000000..c3a13642c4 --- /dev/null +++ b/sdk/constructive-cli/src/infra/cli/commands/infra-commit.ts @@ -0,0 +1,410 @@ +/** + * CLI commands for InfraCommit + * @generated 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 { + CreateInfraCommitInput, + InfraCommitPatch, + InfraCommitSelect, + InfraCommitFilter, + InfraCommitOrderBy, +} from '../../orm/input-types'; +import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; +const fieldSchema: FieldSchema = { + id: 'uuid', + message: 'string', + scopeId: 'uuid', + storeId: 'uuid', + parentIds: 'uuid', + authorId: 'uuid', + committerId: 'uuid', + treeId: 'uuid', + date: 'string', +}; +const usage = + '\ninfra-commit \n\nCommands:\n list List infraCommit records\n find-first Find first matching infraCommit record\n get Get a infraCommit by ID\n create Create a new infraCommit\n update Update an existing infraCommit\n delete Delete a infraCommit\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (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, + message: true, + scopeId: true, + storeId: true, + parentIds: true, + authorId: true, + committerId: true, + treeId: true, + date: true, + }; + const findManyArgs = parseFindManyArgs< + FindManyArgs & { + select: InfraCommitSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.infraCommit.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, + message: true, + scopeId: true, + storeId: true, + parentIds: true, + authorId: true, + committerId: true, + treeId: true, + date: true, + }; + const findFirstArgs = parseFindFirstArgs< + FindFirstArgs & { + select: InfraCommitSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.infraCommit.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.infraCommit + .findOne({ + id: answers.id as string, + select: { + id: true, + message: true, + scopeId: true, + storeId: true, + parentIds: true, + authorId: true, + committerId: true, + treeId: true, + date: 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: 'message', + message: 'message', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'scopeId', + message: 'scopeId', + required: true, + }, + { + type: 'text', + name: 'storeId', + message: 'storeId', + required: true, + }, + { + type: 'text', + name: 'parentIds', + message: 'parentIds', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'authorId', + message: 'authorId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'committerId', + message: 'committerId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'treeId', + message: 'treeId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'date', + message: 'date', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined( + answers, + fieldSchema + ) as CreateInfraCommitInput['infraCommit']; + const client = getClient(); + const result = await client.infraCommit + .create({ + data: { + message: cleanedData.message, + scopeId: cleanedData.scopeId, + storeId: cleanedData.storeId, + parentIds: cleanedData.parentIds, + authorId: cleanedData.authorId, + committerId: cleanedData.committerId, + treeId: cleanedData.treeId, + date: cleanedData.date, + }, + select: { + id: true, + message: true, + scopeId: true, + storeId: true, + parentIds: true, + authorId: true, + committerId: true, + treeId: true, + date: true, + }, + }) + .execute(); + console.log(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: 'scopeId', + message: 'scopeId', + required: true, + }, + { + type: 'text', + name: 'message', + message: 'message', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'storeId', + message: 'storeId', + required: false, + }, + { + type: 'text', + name: 'parentIds', + message: 'parentIds', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'authorId', + message: 'authorId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'committerId', + message: 'committerId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'treeId', + message: 'treeId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'date', + message: 'date', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined(answers, fieldSchema) as InfraCommitPatch; + const client = getClient(); + const result = await client.infraCommit + .update({ + where: { + id: answers.id as string, + scopeId: answers.scopeId as string, + }, + data: { + message: cleanedData.message, + storeId: cleanedData.storeId, + parentIds: cleanedData.parentIds, + authorId: cleanedData.authorId, + committerId: cleanedData.committerId, + treeId: cleanedData.treeId, + date: cleanedData.date, + }, + select: { + id: true, + message: true, + scopeId: true, + storeId: true, + parentIds: true, + authorId: true, + committerId: true, + treeId: true, + date: 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: 'scopeId', + message: 'scopeId', + required: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const client = getClient(); + const result = await client.infraCommit + .delete({ + where: { + id: answers.id as string, + scopeId: answers.scopeId 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/infra-get-all-record.ts b/sdk/constructive-cli/src/infra/cli/commands/infra-get-all-record.ts new file mode 100644 index 0000000000..c3dd220e2c --- /dev/null +++ b/sdk/constructive-cli/src/infra/cli/commands/infra-get-all-record.ts @@ -0,0 +1,150 @@ +/** + * CLI commands for InfraGetAllRecord + * @generated 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 { + CreateInfraGetAllRecordInput, + InfraGetAllRecordPatch, + InfraGetAllRecordSelect, + InfraGetAllRecordFilter, + InfraGetAllRecordsOrderBy, +} from '../../orm/input-types'; +import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; +const fieldSchema: FieldSchema = { + path: 'string', + data: 'json', +}; +const usage = + '\ninfra-get-all-record \n\nCommands:\n list List infraGetAllRecord records\n find-first Find first matching infraGetAllRecord record\n create Create a new infraGetAllRecord\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (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 = { + path: true, + data: true, + }; + const findManyArgs = parseFindManyArgs< + FindManyArgs & { + select: InfraGetAllRecordSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.infraGetAllRecord.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 = { + path: true, + data: true, + }; + const findFirstArgs = parseFindFirstArgs< + FindFirstArgs & { + select: InfraGetAllRecordSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.infraGetAllRecord.findFirst(findFirstArgs).execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to find record.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} +async function handleCreate(argv: Partial>, prompter: Inquirerer) { + try { + const rawAnswers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'path', + message: 'path', + required: true, + }, + { + type: 'json', + name: 'data', + message: 'data', + required: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined( + answers, + fieldSchema + ) as CreateInfraGetAllRecordInput['infraGetAllRecord']; + const client = getClient(); + const result = await client.infraGetAllRecord + .create({ + data: { + path: cleanedData.path, + data: cleanedData.data, + }, + select: { + path: true, + data: true, + }, + }) + .execute(); + console.log(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/infra/cli/commands/infra-init-empty-repo.ts b/sdk/constructive-cli/src/infra/cli/commands/infra-init-empty-repo.ts new file mode 100644 index 0000000000..1178351d1e --- /dev/null +++ b/sdk/constructive-cli/src/infra/cli/commands/infra-init-empty-repo.ts @@ -0,0 +1,53 @@ +/** + * CLI command for mutation infraInitEmptyRepo + * @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 { InfraInitEmptyRepoVariables } from '../../orm/mutation'; +import type { InfraInitEmptyRepoPayloadSelect } from '../../orm/input-types'; +export default async ( + argv: Partial>, + prompter: Inquirerer, + _options: CLIOptions +) => { + try { + if (argv.help || argv.h) { + console.log( + 'infra-init-empty-repo - infraInitEmptyRepo\n\nUsage: infra-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 + .infraInitEmptyRepo( + parsedAnswers as unknown as InfraInitEmptyRepoVariables, + { + select: selectFields, + } as unknown as { + select: InfraInitEmptyRepoPayloadSelect; + } + ) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed: infraInitEmptyRepo'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +}; diff --git a/sdk/constructive-cli/src/api/cli/commands/provision-database-with-user.ts b/sdk/constructive-cli/src/infra/cli/commands/infra-insert-node-at-path.ts similarity index 69% rename from sdk/constructive-cli/src/api/cli/commands/provision-database-with-user.ts rename to sdk/constructive-cli/src/infra/cli/commands/infra-insert-node-at-path.ts index 48479aaaa7..f5c871f585 100644 --- a/sdk/constructive-cli/src/api/cli/commands/provision-database-with-user.ts +++ b/sdk/constructive-cli/src/infra/cli/commands/infra-insert-node-at-path.ts @@ -1,13 +1,13 @@ /** - * CLI command for mutation provisionDatabaseWithUser + * CLI command for mutation infraInsertNodeAtPath * @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 { ProvisionDatabaseWithUserVariables } from '../../orm/mutation'; -import type { ProvisionDatabaseWithUserPayloadSelect } from '../../orm/input-types'; +import type { InfraInsertNodeAtPathVariables } from '../../orm/mutation'; +import type { InfraInsertNodeAtPathPayloadSelect } from '../../orm/input-types'; export default async ( argv: Partial>, prompter: Inquirerer, @@ -16,7 +16,7 @@ export default async ( try { if (argv.help || argv.h) { console.log( - 'provision-database-with-user - provisionDatabaseWithUser\n\nUsage: provision-database-with-user [OPTIONS]\n' + 'infra-insert-node-at-path - infraInsertNodeAtPath\n\nUsage: infra-insert-node-at-path [OPTIONS]\n' ); process.exit(0); } @@ -33,18 +33,18 @@ export default async ( const parsedAnswers = unflattenDotNotation(answers); const selectFields = buildSelectFromPaths((argv.select as string) ?? 'clientMutationId'); const result = await client.mutation - .provisionDatabaseWithUser( - parsedAnswers as unknown as ProvisionDatabaseWithUserVariables, + .infraInsertNodeAtPath( + parsedAnswers as unknown as InfraInsertNodeAtPathVariables, { select: selectFields, } as unknown as { - select: ProvisionDatabaseWithUserPayloadSelect; + select: InfraInsertNodeAtPathPayloadSelect; } ) .execute(); console.log(JSON.stringify(result, null, 2)); } catch (error) { - console.error('Failed: provisionDatabaseWithUser'); + console.error('Failed: infraInsertNodeAtPath'); if (error instanceof Error) { console.error(error.message); } diff --git a/sdk/constructive-cli/src/infra/cli/commands/infra-object.ts b/sdk/constructive-cli/src/infra/cli/commands/infra-object.ts new file mode 100644 index 0000000000..246b69d428 --- /dev/null +++ b/sdk/constructive-cli/src/infra/cli/commands/infra-object.ts @@ -0,0 +1,330 @@ +/** + * CLI commands for InfraObject + * @generated 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 { + CreateInfraObjectInput, + InfraObjectPatch, + InfraObjectSelect, + InfraObjectFilter, + InfraObjectOrderBy, +} from '../../orm/input-types'; +import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; +const fieldSchema: FieldSchema = { + id: 'uuid', + scopeId: 'uuid', + kids: 'uuid', + ktree: 'string', + data: 'json', + createdAt: 'string', +}; +const usage = + '\ninfra-object \n\nCommands:\n list List infraObject records\n find-first Find first matching infraObject record\n get Get a infraObject by ID\n create Create a new infraObject\n update Update an existing infraObject\n delete Delete a infraObject\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (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, + scopeId: true, + kids: true, + ktree: true, + data: true, + createdAt: true, + }; + const findManyArgs = parseFindManyArgs< + FindManyArgs & { + select: InfraObjectSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.infraObject.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, + scopeId: true, + kids: true, + ktree: true, + data: true, + createdAt: true, + }; + const findFirstArgs = parseFindFirstArgs< + FindFirstArgs & { + select: InfraObjectSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.infraObject.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.infraObject + .findOne({ + id: answers.id as string, + select: { + id: true, + scopeId: true, + kids: true, + ktree: true, + data: true, + createdAt: 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: 'scopeId', + message: 'scopeId', + required: true, + }, + { + type: 'text', + name: 'kids', + message: 'kids', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'ktree', + message: 'ktree', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'data', + message: 'data', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined( + answers, + fieldSchema + ) as CreateInfraObjectInput['infraObject']; + const client = getClient(); + const result = await client.infraObject + .create({ + data: { + scopeId: cleanedData.scopeId, + kids: cleanedData.kids, + ktree: cleanedData.ktree, + data: cleanedData.data, + }, + select: { + id: true, + scopeId: true, + kids: true, + ktree: true, + data: true, + createdAt: true, + }, + }) + .execute(); + console.log(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: 'scopeId', + message: 'scopeId', + required: true, + }, + { + type: 'text', + name: 'kids', + message: 'kids', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'ktree', + message: 'ktree', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'data', + message: 'data', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined(answers, fieldSchema) as InfraObjectPatch; + const client = getClient(); + const result = await client.infraObject + .update({ + where: { + id: answers.id as string, + scopeId: answers.scopeId as string, + }, + data: { + kids: cleanedData.kids, + ktree: cleanedData.ktree, + data: cleanedData.data, + }, + select: { + id: true, + scopeId: true, + kids: true, + ktree: true, + data: true, + createdAt: 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: 'scopeId', + message: 'scopeId', + required: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const client = getClient(); + const result = await client.infraObject + .delete({ + where: { + id: answers.id as string, + scopeId: answers.scopeId 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/infra-ref.ts b/sdk/constructive-cli/src/infra/cli/commands/infra-ref.ts new file mode 100644 index 0000000000..2b07ab4624 --- /dev/null +++ b/sdk/constructive-cli/src/infra/cli/commands/infra-ref.ts @@ -0,0 +1,317 @@ +/** + * CLI commands for InfraRef + * @generated 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 { + CreateInfraRefInput, + InfraRefPatch, + InfraRefSelect, + InfraRefFilter, + InfraRefOrderBy, +} from '../../orm/input-types'; +import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; +const fieldSchema: FieldSchema = { + id: 'uuid', + name: 'string', + scopeId: 'uuid', + storeId: 'uuid', + commitId: 'uuid', +}; +const usage = + '\ninfra-ref \n\nCommands:\n list List infraRef records\n find-first Find first matching infraRef record\n get Get a infraRef by ID\n create Create a new infraRef\n update Update an existing infraRef\n delete Delete a infraRef\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (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, + name: true, + scopeId: true, + storeId: true, + commitId: true, + }; + const findManyArgs = parseFindManyArgs< + FindManyArgs & { + select: InfraRefSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.infraRef.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, + name: true, + scopeId: true, + storeId: true, + commitId: true, + }; + const findFirstArgs = parseFindFirstArgs< + FindFirstArgs & { + select: InfraRefSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.infraRef.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.infraRef + .findOne({ + id: answers.id as string, + select: { + id: true, + name: true, + scopeId: true, + storeId: true, + commitId: true, + }, + }) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Record not found.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} +async function handleCreate(argv: Partial>, prompter: Inquirerer) { + try { + const rawAnswers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'name', + message: 'name', + required: true, + }, + { + type: 'text', + name: 'scopeId', + message: 'scopeId', + required: true, + }, + { + type: 'text', + name: 'storeId', + message: 'storeId', + required: true, + }, + { + type: 'text', + name: 'commitId', + message: 'commitId', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined(answers, fieldSchema) as CreateInfraRefInput['infraRef']; + const client = getClient(); + const result = await client.infraRef + .create({ + data: { + name: cleanedData.name, + scopeId: cleanedData.scopeId, + storeId: cleanedData.storeId, + commitId: cleanedData.commitId, + }, + select: { + id: true, + name: true, + scopeId: true, + storeId: true, + commitId: true, + }, + }) + .execute(); + console.log(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: 'scopeId', + message: 'scopeId', + required: true, + }, + { + type: 'text', + name: 'name', + message: 'name', + required: false, + }, + { + type: 'text', + name: 'storeId', + message: 'storeId', + required: false, + }, + { + type: 'text', + name: 'commitId', + message: 'commitId', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined(answers, fieldSchema) as InfraRefPatch; + const client = getClient(); + const result = await client.infraRef + .update({ + where: { + id: answers.id as string, + scopeId: answers.scopeId as string, + }, + data: { + name: cleanedData.name, + storeId: cleanedData.storeId, + commitId: cleanedData.commitId, + }, + select: { + id: true, + name: true, + scopeId: true, + storeId: true, + commitId: 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: 'scopeId', + message: 'scopeId', + required: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const client = getClient(); + const result = await client.infraRef + .delete({ + where: { + id: answers.id as string, + scopeId: answers.scopeId 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/infra-set-data-at-path.ts b/sdk/constructive-cli/src/infra/cli/commands/infra-set-data-at-path.ts new file mode 100644 index 0000000000..63fa0bf97a --- /dev/null +++ b/sdk/constructive-cli/src/infra/cli/commands/infra-set-data-at-path.ts @@ -0,0 +1,53 @@ +/** + * CLI command for mutation infraSetDataAtPath + * @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 { InfraSetDataAtPathVariables } from '../../orm/mutation'; +import type { InfraSetDataAtPathPayloadSelect } from '../../orm/input-types'; +export default async ( + argv: Partial>, + prompter: Inquirerer, + _options: CLIOptions +) => { + try { + if (argv.help || argv.h) { + console.log( + 'infra-set-data-at-path - infraSetDataAtPath\n\nUsage: infra-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 + .infraSetDataAtPath( + parsedAnswers as unknown as InfraSetDataAtPathVariables, + { + select: selectFields, + } as unknown as { + select: InfraSetDataAtPathPayloadSelect; + } + ) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed: infraSetDataAtPath'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +}; diff --git a/sdk/constructive-cli/src/infra/cli/commands/infra-store.ts b/sdk/constructive-cli/src/infra/cli/commands/infra-store.ts new file mode 100644 index 0000000000..5bdf28a7b9 --- /dev/null +++ b/sdk/constructive-cli/src/infra/cli/commands/infra-store.ts @@ -0,0 +1,296 @@ +/** + * CLI commands for InfraStore + * @generated 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 { + CreateInfraStoreInput, + InfraStorePatch, + InfraStoreSelect, + InfraStoreFilter, + InfraStoreOrderBy, +} from '../../orm/input-types'; +import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; +const fieldSchema: FieldSchema = { + id: 'uuid', + name: 'string', + scopeId: 'uuid', + hash: 'uuid', + createdAt: 'string', +}; +const usage = + '\ninfra-store \n\nCommands:\n list List infraStore records\n find-first Find first matching infraStore record\n get Get a infraStore by ID\n create Create a new infraStore\n update Update an existing infraStore\n delete Delete a infraStore\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (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, + name: true, + scopeId: true, + hash: true, + createdAt: true, + }; + const findManyArgs = parseFindManyArgs< + FindManyArgs & { + select: InfraStoreSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.infraStore.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, + name: true, + scopeId: true, + hash: true, + createdAt: true, + }; + const findFirstArgs = parseFindFirstArgs< + FindFirstArgs & { + select: InfraStoreSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.infraStore.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.infraStore + .findOne({ + id: answers.id as string, + select: { + id: true, + name: true, + scopeId: true, + hash: true, + createdAt: true, + }, + }) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Record not found.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} +async function handleCreate(argv: Partial>, prompter: Inquirerer) { + try { + const rawAnswers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'name', + message: 'name', + required: true, + }, + { + type: 'text', + name: 'scopeId', + message: 'scopeId', + required: true, + }, + { + type: 'text', + name: 'hash', + message: 'hash', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined(answers, fieldSchema) as CreateInfraStoreInput['infraStore']; + const client = getClient(); + const result = await client.infraStore + .create({ + data: { + name: cleanedData.name, + scopeId: cleanedData.scopeId, + hash: cleanedData.hash, + }, + select: { + id: true, + name: true, + scopeId: true, + hash: true, + createdAt: true, + }, + }) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to create record.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} +async function handleUpdate(argv: Partial>, prompter: Inquirerer) { + try { + const rawAnswers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'id', + message: 'id', + required: true, + }, + { + type: 'text', + name: 'name', + message: 'name', + required: false, + }, + { + type: 'text', + name: 'scopeId', + message: 'scopeId', + required: false, + }, + { + type: 'text', + name: 'hash', + message: 'hash', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined(answers, fieldSchema) as InfraStorePatch; + const client = getClient(); + const result = await client.infraStore + .update({ + where: { + id: answers.id as string, + }, + data: { + name: cleanedData.name, + scopeId: cleanedData.scopeId, + hash: cleanedData.hash, + }, + select: { + id: true, + name: true, + scopeId: true, + hash: true, + createdAt: 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.infraStore + .delete({ + where: { + id: answers.id as string, + }, + select: { + id: true, + }, + }) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to delete record.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} diff --git a/sdk/constructive-cli/src/infra/cli/commands/namespace-event.ts b/sdk/constructive-cli/src/infra/cli/commands/namespace-event.ts new file mode 100644 index 0000000000..e5e8d0f77d --- /dev/null +++ b/sdk/constructive-cli/src/infra/cli/commands/namespace-event.ts @@ -0,0 +1,531 @@ +/** + * CLI commands for NamespaceEvent + * @generated 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 { + CreateNamespaceEventInput, + NamespaceEventPatch, + NamespaceEventSelect, + NamespaceEventFilter, + NamespaceEventOrderBy, +} from '../../orm/input-types'; +import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; +const fieldSchema: FieldSchema = { + createdAt: 'string', + id: 'uuid', + namespaceId: 'uuid', + eventType: 'string', + actorId: 'uuid', + message: 'string', + metadata: 'json', + cpuMillicores: 'int', + memoryBytes: 'int', + storageBytes: 'int', + networkIngressBytes: 'int', + networkEgressBytes: 'int', + podCount: 'int', + metrics: 'json', + databaseId: 'uuid', +}; +const usage = + '\nnamespace-event \n\nCommands:\n list List namespaceEvent records\n find-first Find first matching namespaceEvent record\n get Get a namespaceEvent by ID\n create Create a new namespaceEvent\n update Update an existing namespaceEvent\n delete Delete a namespaceEvent\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (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, + namespaceId: true, + eventType: true, + actorId: true, + message: true, + metadata: true, + cpuMillicores: true, + memoryBytes: true, + storageBytes: true, + networkIngressBytes: true, + networkEgressBytes: true, + podCount: true, + metrics: true, + databaseId: true, + }; + const findManyArgs = parseFindManyArgs< + FindManyArgs & { + select: NamespaceEventSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.namespaceEvent.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, + namespaceId: true, + eventType: true, + actorId: true, + message: true, + metadata: true, + cpuMillicores: true, + memoryBytes: true, + storageBytes: true, + networkIngressBytes: true, + networkEgressBytes: true, + podCount: true, + metrics: true, + databaseId: true, + }; + const findFirstArgs = parseFindFirstArgs< + FindFirstArgs & { + select: NamespaceEventSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.namespaceEvent.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.namespaceEvent + .findOne({ + id: answers.id as string, + select: { + createdAt: true, + id: true, + namespaceId: true, + eventType: true, + actorId: true, + message: true, + metadata: true, + cpuMillicores: true, + memoryBytes: true, + storageBytes: true, + networkIngressBytes: true, + networkEgressBytes: true, + podCount: true, + metrics: true, + databaseId: 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: 'namespaceId', + message: 'namespaceId', + required: true, + }, + { + type: 'text', + name: 'eventType', + message: 'eventType', + required: true, + }, + { + type: 'text', + name: 'actorId', + message: 'actorId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'message', + message: 'message', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'metadata', + message: 'metadata', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'cpuMillicores', + message: 'cpuMillicores', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'memoryBytes', + message: 'memoryBytes', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'storageBytes', + message: 'storageBytes', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'networkIngressBytes', + message: 'networkIngressBytes', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'networkEgressBytes', + message: 'networkEgressBytes', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'podCount', + message: 'podCount', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'metrics', + message: 'metrics', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'databaseId', + message: 'databaseId', + required: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined( + answers, + fieldSchema + ) as CreateNamespaceEventInput['namespaceEvent']; + const client = getClient(); + const result = await client.namespaceEvent + .create({ + data: { + namespaceId: cleanedData.namespaceId, + eventType: cleanedData.eventType, + actorId: cleanedData.actorId, + message: cleanedData.message, + metadata: cleanedData.metadata, + cpuMillicores: cleanedData.cpuMillicores, + memoryBytes: cleanedData.memoryBytes, + storageBytes: cleanedData.storageBytes, + networkIngressBytes: cleanedData.networkIngressBytes, + networkEgressBytes: cleanedData.networkEgressBytes, + podCount: cleanedData.podCount, + metrics: cleanedData.metrics, + databaseId: cleanedData.databaseId, + }, + select: { + createdAt: true, + id: true, + namespaceId: true, + eventType: true, + actorId: true, + message: true, + metadata: true, + cpuMillicores: true, + memoryBytes: true, + storageBytes: true, + networkIngressBytes: true, + networkEgressBytes: true, + podCount: true, + metrics: true, + databaseId: true, + }, + }) + .execute(); + console.log(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: 'text', + name: 'namespaceId', + message: 'namespaceId', + required: false, + }, + { + type: 'text', + name: 'eventType', + message: 'eventType', + required: false, + }, + { + type: 'text', + name: 'actorId', + message: 'actorId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'message', + message: 'message', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'metadata', + message: 'metadata', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'cpuMillicores', + message: 'cpuMillicores', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'memoryBytes', + message: 'memoryBytes', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'storageBytes', + message: 'storageBytes', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'networkIngressBytes', + message: 'networkIngressBytes', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'networkEgressBytes', + message: 'networkEgressBytes', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'podCount', + message: 'podCount', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'metrics', + message: 'metrics', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'databaseId', + message: 'databaseId', + required: false, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined(answers, fieldSchema) as NamespaceEventPatch; + const client = getClient(); + const result = await client.namespaceEvent + .update({ + where: { + id: answers.id as string, + createdAt: answers.createdAt as string, + }, + data: { + namespaceId: cleanedData.namespaceId, + eventType: cleanedData.eventType, + actorId: cleanedData.actorId, + message: cleanedData.message, + metadata: cleanedData.metadata, + cpuMillicores: cleanedData.cpuMillicores, + memoryBytes: cleanedData.memoryBytes, + storageBytes: cleanedData.storageBytes, + networkIngressBytes: cleanedData.networkIngressBytes, + networkEgressBytes: cleanedData.networkEgressBytes, + podCount: cleanedData.podCount, + metrics: cleanedData.metrics, + databaseId: cleanedData.databaseId, + }, + select: { + createdAt: true, + id: true, + namespaceId: true, + eventType: true, + actorId: true, + message: true, + metadata: true, + cpuMillicores: true, + memoryBytes: true, + storageBytes: true, + networkIngressBytes: true, + networkEgressBytes: true, + podCount: true, + metrics: true, + databaseId: 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.namespaceEvent + .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/infra/cli/commands/namespace.ts b/sdk/constructive-cli/src/infra/cli/commands/namespace.ts new file mode 100644 index 0000000000..61a41c16c3 --- /dev/null +++ b/sdk/constructive-cli/src/infra/cli/commands/namespace.ts @@ -0,0 +1,454 @@ +/** + * CLI commands for Namespace + * @generated 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 { + CreateNamespaceInput, + NamespacePatch, + NamespaceSelect, + NamespaceFilter, + NamespaceOrderBy, +} from '../../orm/input-types'; +import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; +const fieldSchema: FieldSchema = { + id: 'uuid', + createdAt: 'string', + updatedAt: 'string', + name: 'string', + namespaceName: 'string', + description: 'string', + isActive: 'boolean', + status: 'string', + lastError: 'string', + labels: 'json', + annotations: 'json', + databaseId: 'uuid', + isManaged: 'boolean', +}; +const usage = + '\nnamespace \n\nCommands:\n list List namespace records\n find-first Find first matching namespace record\n get Get a namespace by ID\n create Create a new namespace\n update Update an existing namespace\n delete Delete a namespace\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (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, + createdAt: true, + updatedAt: true, + name: true, + namespaceName: true, + description: true, + isActive: true, + status: true, + lastError: true, + labels: true, + annotations: true, + databaseId: true, + isManaged: true, + }; + const findManyArgs = parseFindManyArgs< + FindManyArgs & { + select: NamespaceSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.namespace.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, + createdAt: true, + updatedAt: true, + name: true, + namespaceName: true, + description: true, + isActive: true, + status: true, + lastError: true, + labels: true, + annotations: true, + databaseId: true, + isManaged: true, + }; + const findFirstArgs = parseFindFirstArgs< + FindFirstArgs & { + select: NamespaceSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.namespace.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.namespace + .findOne({ + id: answers.id as string, + select: { + id: true, + createdAt: true, + updatedAt: true, + name: true, + namespaceName: true, + description: true, + isActive: true, + status: true, + lastError: true, + labels: true, + annotations: true, + databaseId: true, + isManaged: true, + }, + }) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Record not found.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} +async function handleCreate(argv: Partial>, prompter: Inquirerer) { + try { + const rawAnswers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'name', + message: 'name', + required: true, + }, + { + type: 'text', + name: 'namespaceName', + message: 'namespaceName', + required: true, + }, + { + type: 'text', + name: 'description', + message: 'description', + required: false, + skipPrompt: true, + }, + { + type: 'boolean', + name: 'isActive', + message: 'isActive', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'status', + message: 'status', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'lastError', + message: 'lastError', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'labels', + message: 'labels', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'annotations', + message: 'annotations', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'databaseId', + message: 'databaseId', + required: true, + }, + { + type: 'boolean', + name: 'isManaged', + message: 'isManaged', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined(answers, fieldSchema) as CreateNamespaceInput['namespace']; + const client = getClient(); + const result = await client.namespace + .create({ + data: { + name: cleanedData.name, + namespaceName: cleanedData.namespaceName, + description: cleanedData.description, + isActive: cleanedData.isActive, + status: cleanedData.status, + lastError: cleanedData.lastError, + labels: cleanedData.labels, + annotations: cleanedData.annotations, + databaseId: cleanedData.databaseId, + isManaged: cleanedData.isManaged, + }, + select: { + id: true, + createdAt: true, + updatedAt: true, + name: true, + namespaceName: true, + description: true, + isActive: true, + status: true, + lastError: true, + labels: true, + annotations: true, + databaseId: true, + isManaged: true, + }, + }) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to create record.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} +async function handleUpdate(argv: Partial>, prompter: Inquirerer) { + try { + const rawAnswers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'id', + message: 'id', + required: true, + }, + { + type: 'text', + name: 'name', + message: 'name', + required: false, + }, + { + type: 'text', + name: 'namespaceName', + message: 'namespaceName', + required: false, + }, + { + type: 'text', + name: 'description', + message: 'description', + required: false, + skipPrompt: true, + }, + { + type: 'boolean', + name: 'isActive', + message: 'isActive', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'status', + message: 'status', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'lastError', + message: 'lastError', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'labels', + message: 'labels', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'annotations', + message: 'annotations', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'databaseId', + message: 'databaseId', + required: false, + }, + { + type: 'boolean', + name: 'isManaged', + message: 'isManaged', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined(answers, fieldSchema) as NamespacePatch; + const client = getClient(); + const result = await client.namespace + .update({ + where: { + id: answers.id as string, + }, + data: { + name: cleanedData.name, + namespaceName: cleanedData.namespaceName, + description: cleanedData.description, + isActive: cleanedData.isActive, + status: cleanedData.status, + lastError: cleanedData.lastError, + labels: cleanedData.labels, + annotations: cleanedData.annotations, + databaseId: cleanedData.databaseId, + isManaged: cleanedData.isManaged, + }, + select: { + id: true, + createdAt: true, + updatedAt: true, + name: true, + namespaceName: true, + description: true, + isActive: true, + status: true, + lastError: true, + labels: true, + annotations: true, + databaseId: true, + isManaged: 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.namespace + .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-namespace-event.ts b/sdk/constructive-cli/src/infra/cli/commands/platform-namespace-event.ts new file mode 100644 index 0000000000..0ef3c0d677 --- /dev/null +++ b/sdk/constructive-cli/src/infra/cli/commands/platform-namespace-event.ts @@ -0,0 +1,519 @@ +/** + * CLI commands for PlatformNamespaceEvent + * @generated 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 { + CreatePlatformNamespaceEventInput, + PlatformNamespaceEventPatch, + PlatformNamespaceEventSelect, + PlatformNamespaceEventFilter, + PlatformNamespaceEventOrderBy, +} from '../../orm/input-types'; +import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; +const fieldSchema: FieldSchema = { + createdAt: 'string', + id: 'uuid', + namespaceId: 'uuid', + eventType: 'string', + actorId: 'uuid', + message: 'string', + metadata: 'json', + cpuMillicores: 'int', + memoryBytes: 'int', + storageBytes: 'int', + networkIngressBytes: 'int', + networkEgressBytes: 'int', + podCount: 'int', + metrics: 'json', +}; +const usage = + '\nplatform-namespace-event \n\nCommands:\n list List platformNamespaceEvent records\n find-first Find first matching platformNamespaceEvent record\n get Get a platformNamespaceEvent by ID\n create Create a new platformNamespaceEvent\n update Update an existing platformNamespaceEvent\n delete Delete a platformNamespaceEvent\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (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, + namespaceId: true, + eventType: true, + actorId: true, + message: true, + metadata: true, + cpuMillicores: true, + memoryBytes: true, + storageBytes: true, + networkIngressBytes: true, + networkEgressBytes: true, + podCount: true, + metrics: true, + }; + const findManyArgs = parseFindManyArgs< + FindManyArgs< + PlatformNamespaceEventSelect, + PlatformNamespaceEventFilter, + PlatformNamespaceEventOrderBy + > & { + select: PlatformNamespaceEventSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.platformNamespaceEvent.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, + namespaceId: true, + eventType: true, + actorId: true, + message: true, + metadata: true, + cpuMillicores: true, + memoryBytes: true, + storageBytes: true, + networkIngressBytes: true, + networkEgressBytes: true, + podCount: true, + metrics: true, + }; + const findFirstArgs = parseFindFirstArgs< + FindFirstArgs< + PlatformNamespaceEventSelect, + PlatformNamespaceEventFilter, + PlatformNamespaceEventOrderBy + > & { + select: PlatformNamespaceEventSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.platformNamespaceEvent.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.platformNamespaceEvent + .findOne({ + id: answers.id as string, + select: { + createdAt: true, + id: true, + namespaceId: true, + eventType: true, + actorId: true, + message: true, + metadata: true, + cpuMillicores: true, + memoryBytes: true, + storageBytes: true, + networkIngressBytes: true, + networkEgressBytes: true, + podCount: true, + metrics: 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: 'namespaceId', + message: 'namespaceId', + required: true, + }, + { + type: 'text', + name: 'eventType', + message: 'eventType', + required: true, + }, + { + type: 'text', + name: 'actorId', + message: 'actorId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'message', + message: 'message', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'metadata', + message: 'metadata', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'cpuMillicores', + message: 'cpuMillicores', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'memoryBytes', + message: 'memoryBytes', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'storageBytes', + message: 'storageBytes', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'networkIngressBytes', + message: 'networkIngressBytes', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'networkEgressBytes', + message: 'networkEgressBytes', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'podCount', + message: 'podCount', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'metrics', + message: 'metrics', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined( + answers, + fieldSchema + ) as CreatePlatformNamespaceEventInput['platformNamespaceEvent']; + const client = getClient(); + const result = await client.platformNamespaceEvent + .create({ + data: { + namespaceId: cleanedData.namespaceId, + eventType: cleanedData.eventType, + actorId: cleanedData.actorId, + message: cleanedData.message, + metadata: cleanedData.metadata, + cpuMillicores: cleanedData.cpuMillicores, + memoryBytes: cleanedData.memoryBytes, + storageBytes: cleanedData.storageBytes, + networkIngressBytes: cleanedData.networkIngressBytes, + networkEgressBytes: cleanedData.networkEgressBytes, + podCount: cleanedData.podCount, + metrics: cleanedData.metrics, + }, + select: { + createdAt: true, + id: true, + namespaceId: true, + eventType: true, + actorId: true, + message: true, + metadata: true, + cpuMillicores: true, + memoryBytes: true, + storageBytes: true, + networkIngressBytes: true, + networkEgressBytes: true, + podCount: true, + metrics: true, + }, + }) + .execute(); + console.log(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: 'text', + name: 'namespaceId', + message: 'namespaceId', + required: false, + }, + { + type: 'text', + name: 'eventType', + message: 'eventType', + required: false, + }, + { + type: 'text', + name: 'actorId', + message: 'actorId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'message', + message: 'message', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'metadata', + message: 'metadata', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'cpuMillicores', + message: 'cpuMillicores', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'memoryBytes', + message: 'memoryBytes', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'storageBytes', + message: 'storageBytes', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'networkIngressBytes', + message: 'networkIngressBytes', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'networkEgressBytes', + message: 'networkEgressBytes', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'podCount', + message: 'podCount', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'metrics', + message: 'metrics', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined(answers, fieldSchema) as PlatformNamespaceEventPatch; + const client = getClient(); + const result = await client.platformNamespaceEvent + .update({ + where: { + id: answers.id as string, + createdAt: answers.createdAt as string, + }, + data: { + namespaceId: cleanedData.namespaceId, + eventType: cleanedData.eventType, + actorId: cleanedData.actorId, + message: cleanedData.message, + metadata: cleanedData.metadata, + cpuMillicores: cleanedData.cpuMillicores, + memoryBytes: cleanedData.memoryBytes, + storageBytes: cleanedData.storageBytes, + networkIngressBytes: cleanedData.networkIngressBytes, + networkEgressBytes: cleanedData.networkEgressBytes, + podCount: cleanedData.podCount, + metrics: cleanedData.metrics, + }, + select: { + createdAt: true, + id: true, + namespaceId: true, + eventType: true, + actorId: true, + message: true, + metadata: true, + cpuMillicores: true, + memoryBytes: true, + storageBytes: true, + networkIngressBytes: true, + networkEgressBytes: true, + podCount: true, + metrics: 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.platformNamespaceEvent + .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/infra/cli/commands/platform-namespace.ts b/sdk/constructive-cli/src/infra/cli/commands/platform-namespace.ts new file mode 100644 index 0000000000..7a9b23fd65 --- /dev/null +++ b/sdk/constructive-cli/src/infra/cli/commands/platform-namespace.ts @@ -0,0 +1,437 @@ +/** + * CLI commands for PlatformNamespace + * @generated 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 { + CreatePlatformNamespaceInput, + PlatformNamespacePatch, + PlatformNamespaceSelect, + PlatformNamespaceFilter, + PlatformNamespaceOrderBy, +} from '../../orm/input-types'; +import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; +const fieldSchema: FieldSchema = { + id: 'uuid', + createdAt: 'string', + updatedAt: 'string', + name: 'string', + namespaceName: 'string', + description: 'string', + isActive: 'boolean', + status: 'string', + lastError: 'string', + labels: 'json', + annotations: 'json', + isManaged: 'boolean', +}; +const usage = + '\nplatform-namespace \n\nCommands:\n list List platformNamespace records\n find-first Find first matching platformNamespace record\n get Get a platformNamespace by ID\n create Create a new platformNamespace\n update Update an existing platformNamespace\n delete Delete a platformNamespace\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (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, + createdAt: true, + updatedAt: true, + name: true, + namespaceName: true, + description: true, + isActive: true, + status: true, + lastError: true, + labels: true, + annotations: true, + isManaged: true, + }; + const findManyArgs = parseFindManyArgs< + FindManyArgs & { + select: PlatformNamespaceSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.platformNamespace.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, + createdAt: true, + updatedAt: true, + name: true, + namespaceName: true, + description: true, + isActive: true, + status: true, + lastError: true, + labels: true, + annotations: true, + isManaged: true, + }; + const findFirstArgs = parseFindFirstArgs< + FindFirstArgs & { + select: PlatformNamespaceSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.platformNamespace.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.platformNamespace + .findOne({ + id: answers.id as string, + select: { + id: true, + createdAt: true, + updatedAt: true, + name: true, + namespaceName: true, + description: true, + isActive: true, + status: true, + lastError: true, + labels: true, + annotations: true, + isManaged: true, + }, + }) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Record not found.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} +async function handleCreate(argv: Partial>, prompter: Inquirerer) { + try { + const rawAnswers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'name', + message: 'name', + required: true, + }, + { + type: 'text', + name: 'namespaceName', + message: 'namespaceName', + required: true, + }, + { + type: 'text', + name: 'description', + message: 'description', + required: false, + skipPrompt: true, + }, + { + type: 'boolean', + name: 'isActive', + message: 'isActive', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'status', + message: 'status', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'lastError', + message: 'lastError', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'labels', + message: 'labels', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'annotations', + message: 'annotations', + required: false, + skipPrompt: true, + }, + { + type: 'boolean', + name: 'isManaged', + message: 'isManaged', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined( + answers, + fieldSchema + ) as CreatePlatformNamespaceInput['platformNamespace']; + const client = getClient(); + const result = await client.platformNamespace + .create({ + data: { + name: cleanedData.name, + namespaceName: cleanedData.namespaceName, + description: cleanedData.description, + isActive: cleanedData.isActive, + status: cleanedData.status, + lastError: cleanedData.lastError, + labels: cleanedData.labels, + annotations: cleanedData.annotations, + isManaged: cleanedData.isManaged, + }, + select: { + id: true, + createdAt: true, + updatedAt: true, + name: true, + namespaceName: true, + description: true, + isActive: true, + status: true, + lastError: true, + labels: true, + annotations: true, + isManaged: true, + }, + }) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to create record.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} +async function handleUpdate(argv: Partial>, prompter: Inquirerer) { + try { + const rawAnswers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'id', + message: 'id', + required: true, + }, + { + type: 'text', + name: 'name', + message: 'name', + required: false, + }, + { + type: 'text', + name: 'namespaceName', + message: 'namespaceName', + required: false, + }, + { + type: 'text', + name: 'description', + message: 'description', + required: false, + skipPrompt: true, + }, + { + type: 'boolean', + name: 'isActive', + message: 'isActive', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'status', + message: 'status', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'lastError', + message: 'lastError', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'labels', + message: 'labels', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'annotations', + message: 'annotations', + required: false, + skipPrompt: true, + }, + { + type: 'boolean', + name: 'isManaged', + message: 'isManaged', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined(answers, fieldSchema) as PlatformNamespacePatch; + const client = getClient(); + const result = await client.platformNamespace + .update({ + where: { + id: answers.id as string, + }, + data: { + name: cleanedData.name, + namespaceName: cleanedData.namespaceName, + description: cleanedData.description, + isActive: cleanedData.isActive, + status: cleanedData.status, + lastError: cleanedData.lastError, + labels: cleanedData.labels, + annotations: cleanedData.annotations, + isManaged: cleanedData.isManaged, + }, + select: { + id: true, + createdAt: true, + updatedAt: true, + name: true, + namespaceName: true, + description: true, + isActive: true, + status: true, + lastError: true, + labels: true, + annotations: true, + isManaged: 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.platformNamespace + .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/provision-bucket.ts b/sdk/constructive-cli/src/infra/cli/commands/provision-bucket.ts new file mode 100644 index 0000000000..ecd2e539d5 --- /dev/null +++ b/sdk/constructive-cli/src/infra/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/infra/cli/executor.ts b/sdk/constructive-cli/src/infra/cli/executor.ts new file mode 100644 index 0000000000..50d150bce8 --- /dev/null +++ b/sdk/constructive-cli/src/infra/cli/executor.ts @@ -0,0 +1,34 @@ +/** + * 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'); +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/infra/cli/index.ts b/sdk/constructive-cli/src/infra/cli/index.ts new file mode 100644 index 0000000000..9ca839a9ee --- /dev/null +++ b/sdk/constructive-cli/src/infra/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/infra/cli/utils.ts b/sdk/constructive-cli/src/infra/cli/utils.ts new file mode 100644 index 0000000000..78a7defb6f --- /dev/null +++ b/sdk/constructive-cli/src/infra/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/infra/index.ts b/sdk/constructive-cli/src/infra/index.ts new file mode 100644 index 0000000000..df67cba476 --- /dev/null +++ b/sdk/constructive-cli/src/infra/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/infra/orm/README.md b/sdk/constructive-cli/src/infra/orm/README.md new file mode 100644 index 0000000000..e8ecab6424 --- /dev/null +++ b/sdk/constructive-cli/src/infra/orm/README.md @@ -0,0 +1,482 @@ +# ORM Client + +

+ +

+ + + +## Setup + +```typescript +import { createClient } from './orm'; + +const db = createClient({ + endpoint: 'https://api.example.com/graphql', + headers: { Authorization: 'Bearer ' }, +}); +``` + +## Models + +| Model | Operations | +|-------|------------| +| `infraGetAllRecord` | findMany, findOne, create, update, delete | +| `infraRef` | findMany, findOne, create, update, delete | +| `infraStore` | findMany, findOne, create, update, delete | +| `infraObject` | findMany, findOne, create, update, delete | +| `infraCommit` | findMany, findOne, create, update, delete | +| `dbPreset` | findMany, findOne, create, update, delete | +| `platformNamespace` | findMany, findOne, create, update, delete | +| `namespace` | findMany, findOne, create, update, delete | +| `platformNamespaceEvent` | findMany, findOne, create, update, delete | +| `namespaceEvent` | findMany, findOne, create, update, delete | + +## Table Operations + +### `db.infraGetAllRecord` + +CRUD operations for InfraGetAllRecord records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `path` | String | Yes | +| `data` | JSON | Yes | + +**Operations:** + +```typescript +// List all infraGetAllRecord records +const items = await db.infraGetAllRecord.findMany({ select: { path: true, data: true } }).execute(); + +// Get one by id +const item = await db.infraGetAllRecord.findOne({ id: '', select: { path: true, data: true } }).execute(); + +// Create +const created = await db.infraGetAllRecord.create({ data: { path: '', data: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.infraGetAllRecord.update({ where: { id: '' }, data: { path: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.infraGetAllRecord.delete({ where: { id: '' } }).execute(); +``` + +### `db.infraRef` + +CRUD operations for InfraRef records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `name` | String | Yes | +| `scopeId` | UUID | Yes | +| `storeId` | UUID | Yes | +| `commitId` | UUID | Yes | + +**Operations:** + +```typescript +// List all infraRef records +const items = await db.infraRef.findMany({ select: { id: true, name: true, scopeId: true, storeId: true, commitId: true } }).execute(); + +// Get one by id +const item = await db.infraRef.findOne({ id: '', select: { id: true, name: true, scopeId: true, storeId: true, commitId: true } }).execute(); + +// Create +const created = await db.infraRef.create({ data: { name: '', scopeId: '', storeId: '', commitId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.infraRef.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.infraRef.delete({ where: { id: '' } }).execute(); +``` + +### `db.infraStore` + +CRUD operations for InfraStore records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `name` | String | Yes | +| `scopeId` | UUID | Yes | +| `hash` | UUID | Yes | +| `createdAt` | Datetime | No | + +**Operations:** + +```typescript +// List all infraStore records +const items = await db.infraStore.findMany({ select: { id: true, name: true, scopeId: true, hash: true, createdAt: true } }).execute(); + +// Get one by id +const item = await db.infraStore.findOne({ id: '', select: { id: true, name: true, scopeId: true, hash: true, createdAt: true } }).execute(); + +// Create +const created = await db.infraStore.create({ data: { name: '', scopeId: '', hash: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.infraStore.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.infraStore.delete({ where: { id: '' } }).execute(); +``` + +### `db.infraObject` + +CRUD operations for InfraObject records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `scopeId` | UUID | Yes | +| `kids` | UUID | Yes | +| `ktree` | String | Yes | +| `data` | JSON | Yes | +| `createdAt` | Datetime | No | + +**Operations:** + +```typescript +// List all infraObject records +const items = await db.infraObject.findMany({ select: { id: true, scopeId: true, kids: true, ktree: true, data: true, createdAt: true } }).execute(); + +// Get one by id +const item = await db.infraObject.findOne({ id: '', select: { id: true, scopeId: true, kids: true, ktree: true, data: true, createdAt: true } }).execute(); + +// Create +const created = await db.infraObject.create({ data: { scopeId: '', kids: '', ktree: '', data: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.infraObject.update({ where: { id: '' }, data: { scopeId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.infraObject.delete({ where: { id: '' } }).execute(); +``` + +### `db.infraCommit` + +CRUD operations for InfraCommit records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `message` | String | Yes | +| `scopeId` | UUID | Yes | +| `storeId` | UUID | Yes | +| `parentIds` | UUID | Yes | +| `authorId` | UUID | Yes | +| `committerId` | UUID | Yes | +| `treeId` | UUID | Yes | +| `date` | Datetime | Yes | + +**Operations:** + +```typescript +// List all infraCommit records +const items = await db.infraCommit.findMany({ select: { id: true, message: true, scopeId: true, storeId: true, parentIds: true, authorId: true, committerId: true, treeId: true, date: true } }).execute(); + +// Get one by id +const item = await db.infraCommit.findOne({ id: '', select: { id: true, message: true, scopeId: true, storeId: true, parentIds: true, authorId: true, committerId: true, treeId: true, date: true } }).execute(); + +// Create +const created = await db.infraCommit.create({ data: { message: '', scopeId: '', storeId: '', parentIds: '', authorId: '', committerId: '', treeId: '', date: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.infraCommit.update({ where: { id: '' }, data: { message: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.infraCommit.delete({ where: { id: '' } }).execute(); +``` + +### `db.dbPreset` + +CRUD operations for DbPreset records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `storeId` | UUID | Yes | +| `slug` | String | Yes | +| `definition` | JSON | Yes | +| `commitId` | UUID | Yes | +| `modulesHash` | UUID | Yes | +| `label` | String | Yes | +| `description` | String | Yes | +| `active` | Boolean | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all dbPreset records +const items = await db.dbPreset.findMany({ select: { id: true, storeId: true, slug: true, definition: true, commitId: true, modulesHash: true, label: true, description: true, active: true, createdAt: true, updatedAt: true } }).execute(); + +// Get one by id +const item = await db.dbPreset.findOne({ id: '', select: { id: true, storeId: true, slug: true, definition: true, commitId: true, modulesHash: true, label: true, description: true, active: true, createdAt: true, updatedAt: true } }).execute(); + +// Create +const created = await db.dbPreset.create({ data: { storeId: '', slug: '', definition: '', commitId: '', modulesHash: '', label: '', description: '', active: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.dbPreset.update({ where: { id: '' }, data: { storeId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.dbPreset.delete({ where: { id: '' } }).execute(); +``` + +### `db.platformNamespace` + +CRUD operations for PlatformNamespace records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | +| `name` | String | Yes | +| `namespaceName` | String | Yes | +| `description` | String | Yes | +| `isActive` | Boolean | Yes | +| `status` | String | Yes | +| `lastError` | String | Yes | +| `labels` | JSON | Yes | +| `annotations` | JSON | Yes | +| `isManaged` | Boolean | Yes | + +**Operations:** + +```typescript +// List all platformNamespace records +const items = await db.platformNamespace.findMany({ select: { id: true, createdAt: true, updatedAt: true, name: true, namespaceName: true, description: true, isActive: true, status: true, lastError: true, labels: true, annotations: true, isManaged: true } }).execute(); + +// Get one by id +const item = await db.platformNamespace.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, name: true, namespaceName: true, description: true, isActive: true, status: true, lastError: true, labels: true, annotations: true, isManaged: true } }).execute(); + +// Create +const created = await db.platformNamespace.create({ data: { name: '', namespaceName: '', description: '', isActive: '', status: '', lastError: '', labels: '', annotations: '', isManaged: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformNamespace.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformNamespace.delete({ where: { id: '' } }).execute(); +``` + +### `db.namespace` + +CRUD operations for Namespace records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | +| `name` | String | Yes | +| `namespaceName` | String | Yes | +| `description` | String | Yes | +| `isActive` | Boolean | Yes | +| `status` | String | Yes | +| `lastError` | String | Yes | +| `labels` | JSON | Yes | +| `annotations` | JSON | Yes | +| `databaseId` | UUID | Yes | +| `isManaged` | Boolean | Yes | + +**Operations:** + +```typescript +// List all namespace records +const items = await db.namespace.findMany({ select: { id: true, createdAt: true, updatedAt: true, name: true, namespaceName: true, description: true, isActive: true, status: true, lastError: true, labels: true, annotations: true, databaseId: true, isManaged: true } }).execute(); + +// Get one by id +const item = await db.namespace.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, name: true, namespaceName: true, description: true, isActive: true, status: true, lastError: true, labels: true, annotations: true, databaseId: true, isManaged: true } }).execute(); + +// Create +const created = await db.namespace.create({ data: { name: '', namespaceName: '', description: '', isActive: '', status: '', lastError: '', labels: '', annotations: '', databaseId: '', isManaged: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.namespace.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.namespace.delete({ where: { id: '' } }).execute(); +``` + +### `db.platformNamespaceEvent` + +CRUD operations for PlatformNamespaceEvent records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `createdAt` | Datetime | No | +| `id` | UUID | No | +| `namespaceId` | UUID | Yes | +| `eventType` | String | Yes | +| `actorId` | UUID | Yes | +| `message` | String | Yes | +| `metadata` | JSON | Yes | +| `cpuMillicores` | Int | Yes | +| `memoryBytes` | BigInt | Yes | +| `storageBytes` | BigInt | Yes | +| `networkIngressBytes` | BigInt | Yes | +| `networkEgressBytes` | BigInt | Yes | +| `podCount` | Int | Yes | +| `metrics` | JSON | Yes | + +**Operations:** + +```typescript +// List all platformNamespaceEvent records +const items = await db.platformNamespaceEvent.findMany({ select: { createdAt: true, id: true, namespaceId: true, eventType: true, actorId: true, message: true, metadata: true, cpuMillicores: true, memoryBytes: true, storageBytes: true, networkIngressBytes: true, networkEgressBytes: true, podCount: true, metrics: true } }).execute(); + +// Get one by id +const item = await db.platformNamespaceEvent.findOne({ id: '', select: { createdAt: true, id: true, namespaceId: true, eventType: true, actorId: true, message: true, metadata: true, cpuMillicores: true, memoryBytes: true, storageBytes: true, networkIngressBytes: true, networkEgressBytes: true, podCount: true, metrics: true } }).execute(); + +// Create +const created = await db.platformNamespaceEvent.create({ data: { namespaceId: '', eventType: '', actorId: '', message: '', metadata: '', cpuMillicores: '', memoryBytes: '', storageBytes: '', networkIngressBytes: '', networkEgressBytes: '', podCount: '', metrics: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformNamespaceEvent.update({ where: { id: '' }, data: { namespaceId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformNamespaceEvent.delete({ where: { id: '' } }).execute(); +``` + +### `db.namespaceEvent` + +CRUD operations for NamespaceEvent records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `createdAt` | Datetime | No | +| `id` | UUID | No | +| `namespaceId` | UUID | Yes | +| `eventType` | String | Yes | +| `actorId` | UUID | Yes | +| `message` | String | Yes | +| `metadata` | JSON | Yes | +| `cpuMillicores` | Int | Yes | +| `memoryBytes` | BigInt | Yes | +| `storageBytes` | BigInt | Yes | +| `networkIngressBytes` | BigInt | Yes | +| `networkEgressBytes` | BigInt | Yes | +| `podCount` | Int | Yes | +| `metrics` | JSON | Yes | +| `databaseId` | UUID | Yes | + +**Operations:** + +```typescript +// List all namespaceEvent records +const items = await db.namespaceEvent.findMany({ select: { createdAt: true, id: true, namespaceId: true, eventType: true, actorId: true, message: true, metadata: true, cpuMillicores: true, memoryBytes: true, storageBytes: true, networkIngressBytes: true, networkEgressBytes: true, podCount: true, metrics: true, databaseId: true } }).execute(); + +// Get one by id +const item = await db.namespaceEvent.findOne({ id: '', select: { createdAt: true, id: true, namespaceId: true, eventType: true, actorId: true, message: true, metadata: true, cpuMillicores: true, memoryBytes: true, storageBytes: true, networkIngressBytes: true, networkEgressBytes: true, podCount: true, metrics: true, databaseId: true } }).execute(); + +// Create +const created = await db.namespaceEvent.create({ data: { namespaceId: '', eventType: '', actorId: '', message: '', metadata: '', cpuMillicores: '', memoryBytes: '', storageBytes: '', networkIngressBytes: '', networkEgressBytes: '', podCount: '', metrics: '', databaseId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.namespaceEvent.update({ where: { id: '' }, data: { namespaceId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.namespaceEvent.delete({ where: { id: '' } }).execute(); +``` + +## Custom Operations + +### `db.mutation.infraInitEmptyRepo` + +infraInitEmptyRepo + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | InfraInitEmptyRepoInput (required) | + +```typescript +const result = await db.mutation.infraInitEmptyRepo({ input: { sId: '', storeId: '' } }).execute(); +``` + +### `db.mutation.infraSetDataAtPath` + +infraSetDataAtPath + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | InfraSetDataAtPathInput (required) | + +```typescript +const result = await db.mutation.infraSetDataAtPath({ input: { sId: '', root: '', path: '', data: '' } }).execute(); +``` + +### `db.mutation.infraInsertNodeAtPath` + +infraInsertNodeAtPath + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | InfraInsertNodeAtPathInput (required) | + +```typescript +const result = await db.mutation.infraInsertNodeAtPath({ input: '' }).execute(); +``` + +### `db.mutation.provisionBucket` + +Provision an S3 bucket for a logical bucket in the database. +Reads the bucket config via RLS, then creates and configures +the S3 bucket with the appropriate privacy policies, CORS rules, +and lifecycle settings. + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | ProvisionBucketInput (required) | + +```typescript +const result = await db.mutation.provisionBucket({ input: { bucketKey: '', ownerId: '' } }).execute(); +``` + +--- + +Built by the [Constructive](https://constructive.io) team. + +## Disclaimer + +AS DESCRIBED IN THE LICENSES, THE SOFTWARE IS PROVIDED "AS IS", AT YOUR OWN RISK, AND WITHOUT WARRANTIES OF ANY KIND. + +No developer or entity involved in creating this software will be liable for any claims or damages whatsoever associated with your use, inability to use, or your interaction with other users of the code, including any direct, indirect, incidental, special, exemplary, punitive or consequential damages, or loss of profits, cryptocurrencies, tokens, or anything else of value. diff --git a/sdk/constructive-cli/src/infra/orm/client.ts b/sdk/constructive-cli/src/infra/orm/client.ts new file mode 100644 index 0000000000..16e683c712 --- /dev/null +++ b/sdk/constructive-cli/src/infra/orm/client.ts @@ -0,0 +1,244 @@ +/** + * 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; +} + +/** + * 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((e) => e.message).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/infra/orm/index.ts b/sdk/constructive-cli/src/infra/orm/index.ts new file mode 100644 index 0000000000..95de2771fa --- /dev/null +++ b/sdk/constructive-cli/src/infra/orm/index.ts @@ -0,0 +1,63 @@ +/** + * 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 { InfraGetAllRecordModel } from './models/infraGetAllRecord'; +import { InfraRefModel } from './models/infraRef'; +import { InfraStoreModel } from './models/infraStore'; +import { InfraObjectModel } from './models/infraObject'; +import { InfraCommitModel } from './models/infraCommit'; +import { DbPresetModel } from './models/dbPreset'; +import { PlatformNamespaceModel } from './models/platformNamespace'; +import { NamespaceModel } from './models/namespace'; +import { PlatformNamespaceEventModel } from './models/platformNamespaceEvent'; +import { NamespaceEventModel } from './models/namespaceEvent'; +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 { + infraGetAllRecord: new InfraGetAllRecordModel(client), + infraRef: new InfraRefModel(client), + infraStore: new InfraStoreModel(client), + infraObject: new InfraObjectModel(client), + infraCommit: new InfraCommitModel(client), + dbPreset: new DbPresetModel(client), + platformNamespace: new PlatformNamespaceModel(client), + namespace: new NamespaceModel(client), + platformNamespaceEvent: new PlatformNamespaceEventModel(client), + namespaceEvent: new NamespaceEventModel(client), + mutation: createMutationOperations(client), + }; +} diff --git a/sdk/constructive-cli/src/infra/orm/input-types.ts b/sdk/constructive-cli/src/infra/orm/input-types.ts new file mode 100644 index 0000000000..1cad40c72a --- /dev/null +++ b/sdk/constructive-cli/src/infra/orm/input-types.ts @@ -0,0 +1,2170 @@ +/** + * 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; +} +// ============ Entity Types ============ +export interface InfraGetAllRecord { + path?: string[] | null; + data?: Record | null; +} +/** Branch heads — mutable pointers into the commit chain */ +export interface InfraRef { + /** Unique ref identifier */ + id: string; + /** Ref name (e.g. HEAD, main) */ + name?: string | null; + /** Opaque store partition key for the global tier */ + scopeId?: string | null; + /** Store this ref belongs to */ + storeId?: string | null; + /** Commit this ref points to */ + commitId?: string | null; +} +/** Named stores — one per version-controlled tree (e.g. one graph, one definition set) */ +export interface InfraStore { + /** Unique store identifier */ + id: string; + /** Human-readable store name */ + name?: string | null; + /** Opaque store partition key for the global tier */ + scopeId?: string | null; + /** Current root object hash of this store */ + hash?: string | null; + /** Timestamp of store creation */ + createdAt?: string | null; +} +/** Content-addressed Merkle tree objects keyed by UUID v5 hash of data + children */ +export interface InfraObject { + /** Content-addressed UUID v5 — deterministic hash of (data, kids, ktree) */ + id: string; + /** Opaque store partition key for the global tier */ + scopeId?: string | null; + /** Ordered array of child object IDs */ + kids?: string[] | null; + /** Ordered array of child path names (parallel to kids) */ + ktree?: string[] | null; + /** Payload data for this object node */ + data?: Record | null; + /** Timestamp of object creation */ + createdAt?: string | null; +} +/** Commit history — each commit snapshots a tree root for a store */ +export interface InfraCommit { + /** Unique commit identifier */ + id: string; + /** Optional commit message */ + message?: string | null; + /** Opaque store partition key for the global tier */ + scopeId?: string | null; + /** Store this commit belongs to */ + storeId?: string | null; + /** Parent commit IDs (supports merge commits) */ + parentIds?: string[] | null; + /** User who authored the changes */ + authorId?: string | null; + /** User who committed (may differ from author) */ + committerId?: string | null; + /** Root object ID of the tree snapshot at this commit */ + treeId?: string | null; + /** Commit timestamp */ + date?: string | null; +} +/** Database provisioning preset catalog — merkle-versioned head over the infra store */ +export interface DbPreset { + /** Unique preset identifier */ + id: string; + /** Infra Merkle store holding this preset's history (stamped by the versioned trigger) */ + storeId?: string | null; + /** Preset slug (unique per scope); the preset's path in the infra tree is [db_preset, slug] */ + slug?: string | null; + /** Preset definition (modules + options) — the readily-cached head; history lives in the infra store */ + definition?: Record | null; + /** Infra store commit for the current definition (stamped by the versioned trigger on every write) */ + commitId?: string | null; + /** 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 | null; + /** Human-readable preset name */ + label?: string | null; + /** Human-readable description of the preset */ + description?: string | null; + /** Whether this preset is selectable for new databases */ + active?: boolean | null; + /** Timestamp of preset creation */ + createdAt?: string | null; + /** Timestamp of last modification */ + updatedAt?: string | null; +} +/** Logical namespace containers for grouping secrets, config, functions, and other resources */ +export interface PlatformNamespace { + id: string; + createdAt?: string | null; + updatedAt?: string | null; + /** Human-readable namespace name (e.g. default, production, oauth) */ + name?: string | null; + /** Globally unique computed namespace identifier via inflection.underscore */ + namespaceName?: string | null; + /** Optional human-readable description of this namespace */ + description?: string | null; + /** Whether this namespace is active (soft-disable for filtering) */ + isActive?: boolean | null; + /** Namespace provisioning lifecycle status: pending, provisioning, active, failed */ + status?: string | null; + /** Most recent provisioning or reconcile error message */ + lastError?: string | null; + /** Key/value pairs for selecting and filtering namespaces */ + labels?: Record | null; + /** Freeform metadata for tooling and operational notes */ + annotations?: Record | null; + /** true = provisioned by the platform via jobs, false = unmanaged/platform-native (bootstrapped externally) */ + isManaged?: boolean | null; +} +/** Logical namespace containers for grouping secrets, config, functions, and other resources */ +export interface Namespace { + id: string; + createdAt?: string | null; + updatedAt?: string | null; + /** Human-readable namespace name (e.g. default, production, oauth) */ + name?: string | null; + /** Globally unique computed namespace identifier via inflection.underscore */ + namespaceName?: string | null; + /** Optional human-readable description of this namespace */ + description?: string | null; + /** Whether this namespace is active (soft-disable for filtering) */ + isActive?: boolean | null; + /** Namespace provisioning lifecycle status: pending, provisioning, active, failed */ + status?: string | null; + /** Most recent provisioning or reconcile error message */ + lastError?: string | null; + /** Key/value pairs for selecting and filtering namespaces */ + labels?: Record | null; + /** Freeform metadata for tooling and operational notes */ + annotations?: Record | null; + /** Database that owns this resource (database-scoped isolation) */ + databaseId?: string | null; + /** true = provisioned by the platform via jobs, false = unmanaged/platform-native (bootstrapped externally) */ + isManaged?: boolean | null; +} +/** Namespace lifecycle events — audit log of creation, activation, deactivation, label changes */ +export interface PlatformNamespaceEvent { + /** Event timestamp (partition key) */ + createdAt?: string | null; + /** Unique event identifier */ + id: string; + /** Namespace this event belongs to */ + namespaceId?: string | null; + /** Event type: created, activated, deactivated, labels_updated, annotations_updated, renamed */ + eventType?: string | null; + /** User who triggered this event (NULL for system/automated) */ + actorId?: string | null; + /** Human-readable description of the event */ + message?: string | null; + /** Structured context (old/new values, labels diff, etc.) */ + metadata?: Record | null; + /** CPU usage in millicores at time of event */ + cpuMillicores?: number | null; + /** Memory usage in bytes at time of event */ + memoryBytes?: string | null; + /** Storage usage in bytes at time of event */ + storageBytes?: string | null; + /** Network ingress in bytes during event window */ + networkIngressBytes?: string | null; + /** Network egress in bytes during event window */ + networkEgressBytes?: string | null; + /** Number of active pods in the namespace at time of event */ + podCount?: number | null; + /** Additional resource metrics (gpu, replicas, quotas, etc.) */ + metrics?: Record | null; +} +/** Namespace lifecycle events — audit log of creation, activation, deactivation, label changes */ +export interface NamespaceEvent { + /** Event timestamp (partition key) */ + createdAt?: string | null; + /** Unique event identifier */ + id: string; + /** Namespace this event belongs to */ + namespaceId?: string | null; + /** Event type: created, activated, deactivated, labels_updated, annotations_updated, renamed */ + eventType?: string | null; + /** User who triggered this event (NULL for system/automated) */ + actorId?: string | null; + /** Human-readable description of the event */ + message?: string | null; + /** Structured context (old/new values, labels diff, etc.) */ + metadata?: Record | null; + /** CPU usage in millicores at time of event */ + cpuMillicores?: number | null; + /** Memory usage in bytes at time of event */ + memoryBytes?: string | null; + /** Storage usage in bytes at time of event */ + storageBytes?: string | null; + /** Network ingress in bytes during event window */ + networkIngressBytes?: string | null; + /** Network egress in bytes during event window */ + networkEgressBytes?: string | null; + /** Number of active pods in the namespace at time of event */ + podCount?: number | null; + /** Additional resource metrics (gpu, replicas, quotas, etc.) */ + metrics?: Record | null; + /** Database that owns this resource (database-scoped isolation) */ + databaseId?: 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 InfraGetAllRecordRelations {} +export interface InfraRefRelations {} +export interface InfraStoreRelations {} +export interface InfraObjectRelations {} +export interface InfraCommitRelations {} +export interface DbPresetRelations {} +export interface PlatformNamespaceRelations {} +export interface NamespaceRelations {} +export interface PlatformNamespaceEventRelations {} +export interface NamespaceEventRelations {} +// ============ Entity Types With Relations ============ +export type InfraGetAllRecordWithRelations = InfraGetAllRecord & InfraGetAllRecordRelations; +export type InfraRefWithRelations = InfraRef & InfraRefRelations; +export type InfraStoreWithRelations = InfraStore & InfraStoreRelations; +export type InfraObjectWithRelations = InfraObject & InfraObjectRelations; +export type InfraCommitWithRelations = InfraCommit & InfraCommitRelations; +export type DbPresetWithRelations = DbPreset & DbPresetRelations; +export type PlatformNamespaceWithRelations = PlatformNamespace & PlatformNamespaceRelations; +export type NamespaceWithRelations = Namespace & NamespaceRelations; +export type PlatformNamespaceEventWithRelations = PlatformNamespaceEvent & + PlatformNamespaceEventRelations; +export type NamespaceEventWithRelations = NamespaceEvent & NamespaceEventRelations; +// ============ Entity Select Types ============ +export type InfraGetAllRecordSelect = { + path?: boolean; + data?: boolean; +}; +export type InfraRefSelect = { + id?: boolean; + name?: boolean; + scopeId?: boolean; + storeId?: boolean; + commitId?: boolean; +}; +export type InfraStoreSelect = { + id?: boolean; + name?: boolean; + scopeId?: boolean; + hash?: boolean; + createdAt?: boolean; +}; +export type InfraObjectSelect = { + id?: boolean; + scopeId?: boolean; + kids?: boolean; + ktree?: boolean; + data?: boolean; + createdAt?: boolean; +}; +export type InfraCommitSelect = { + id?: boolean; + message?: boolean; + scopeId?: boolean; + storeId?: boolean; + parentIds?: boolean; + authorId?: boolean; + committerId?: boolean; + treeId?: boolean; + date?: boolean; +}; +export type DbPresetSelect = { + id?: boolean; + storeId?: boolean; + slug?: boolean; + definition?: boolean; + commitId?: boolean; + modulesHash?: boolean; + label?: boolean; + description?: boolean; + active?: boolean; + createdAt?: boolean; + updatedAt?: boolean; +}; +export type PlatformNamespaceSelect = { + id?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + name?: boolean; + namespaceName?: boolean; + description?: boolean; + isActive?: boolean; + status?: boolean; + lastError?: boolean; + labels?: boolean; + annotations?: boolean; + isManaged?: boolean; +}; +export type NamespaceSelect = { + id?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + name?: boolean; + namespaceName?: boolean; + description?: boolean; + isActive?: boolean; + status?: boolean; + lastError?: boolean; + labels?: boolean; + annotations?: boolean; + databaseId?: boolean; + isManaged?: boolean; +}; +export type PlatformNamespaceEventSelect = { + createdAt?: boolean; + id?: boolean; + namespaceId?: boolean; + eventType?: boolean; + actorId?: boolean; + message?: boolean; + metadata?: boolean; + cpuMillicores?: boolean; + memoryBytes?: boolean; + storageBytes?: boolean; + networkIngressBytes?: boolean; + networkEgressBytes?: boolean; + podCount?: boolean; + metrics?: boolean; +}; +export type NamespaceEventSelect = { + createdAt?: boolean; + id?: boolean; + namespaceId?: boolean; + eventType?: boolean; + actorId?: boolean; + message?: boolean; + metadata?: boolean; + cpuMillicores?: boolean; + memoryBytes?: boolean; + storageBytes?: boolean; + networkIngressBytes?: boolean; + networkEgressBytes?: boolean; + podCount?: boolean; + metrics?: boolean; + databaseId?: boolean; +}; +// ============ Table Filter Types ============ +export interface InfraGetAllRecordFilter { + path?: StringListFilter; + data?: JSONFilter; + and?: InfraGetAllRecordFilter[]; + or?: InfraGetAllRecordFilter[]; + not?: InfraGetAllRecordFilter; +} +export interface InfraRefFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `scopeId` field. */ + scopeId?: UUIDFilter; + /** Filter by the object’s `storeId` field. */ + storeId?: UUIDFilter; + /** Filter by the object’s `commitId` field. */ + commitId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: InfraRefFilter[]; + /** Checks for any expressions in this list. */ + or?: InfraRefFilter[]; + /** Negates the expression. */ + not?: InfraRefFilter; +} +export interface InfraStoreFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `scopeId` field. */ + scopeId?: UUIDFilter; + /** Filter by the object’s `hash` field. */ + hash?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Checks for all expressions in this list. */ + and?: InfraStoreFilter[]; + /** Checks for any expressions in this list. */ + or?: InfraStoreFilter[]; + /** Negates the expression. */ + not?: InfraStoreFilter; +} +export interface InfraObjectFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `scopeId` field. */ + scopeId?: UUIDFilter; + /** Filter by the object’s `kids` field. */ + kids?: UUIDListFilter; + /** Filter by the object’s `ktree` field. */ + ktree?: StringListFilter; + /** Filter by the object’s `data` field. */ + data?: JSONFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Checks for all expressions in this list. */ + and?: InfraObjectFilter[]; + /** Checks for any expressions in this list. */ + or?: InfraObjectFilter[]; + /** Negates the expression. */ + not?: InfraObjectFilter; +} +export interface InfraCommitFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `message` field. */ + message?: StringFilter; + /** Filter by the object’s `scopeId` field. */ + scopeId?: UUIDFilter; + /** Filter by the object’s `storeId` field. */ + storeId?: UUIDFilter; + /** Filter by the object’s `parentIds` field. */ + parentIds?: UUIDListFilter; + /** Filter by the object’s `authorId` field. */ + authorId?: UUIDFilter; + /** Filter by the object’s `committerId` field. */ + committerId?: UUIDFilter; + /** Filter by the object’s `treeId` field. */ + treeId?: UUIDFilter; + /** Filter by the object’s `date` field. */ + date?: DatetimeFilter; + /** Checks for all expressions in this list. */ + and?: InfraCommitFilter[]; + /** Checks for any expressions in this list. */ + or?: InfraCommitFilter[]; + /** Negates the expression. */ + not?: InfraCommitFilter; +} +export interface DbPresetFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `storeId` field. */ + storeId?: UUIDFilter; + /** Filter by the object’s `slug` field. */ + slug?: StringFilter; + /** Filter by the object’s `definition` field. */ + definition?: JSONFilter; + /** Filter by the object’s `commitId` field. */ + commitId?: UUIDFilter; + /** Filter by the object’s `modulesHash` field. */ + modulesHash?: UUIDFilter; + /** Filter by the object’s `label` field. */ + label?: StringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `active` field. */ + active?: BooleanFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Checks for all expressions in this list. */ + and?: DbPresetFilter[]; + /** Checks for any expressions in this list. */ + or?: DbPresetFilter[]; + /** Negates the expression. */ + not?: DbPresetFilter; +} +export interface PlatformNamespaceFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `namespaceName` field. */ + namespaceName?: StringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `isActive` field. */ + isActive?: BooleanFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `lastError` field. */ + lastError?: StringFilter; + /** Filter by the object’s `labels` field. */ + labels?: JSONFilter; + /** Filter by the object’s `annotations` field. */ + annotations?: JSONFilter; + /** Filter by the object’s `isManaged` field. */ + isManaged?: BooleanFilter; + /** Checks for all expressions in this list. */ + and?: PlatformNamespaceFilter[]; + /** Checks for any expressions in this list. */ + or?: PlatformNamespaceFilter[]; + /** Negates the expression. */ + not?: PlatformNamespaceFilter; +} +export interface NamespaceFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `namespaceName` field. */ + namespaceName?: StringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `isActive` field. */ + isActive?: BooleanFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `lastError` field. */ + lastError?: StringFilter; + /** Filter by the object’s `labels` field. */ + labels?: JSONFilter; + /** Filter by the object’s `annotations` field. */ + annotations?: JSONFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `isManaged` field. */ + isManaged?: BooleanFilter; + /** Checks for all expressions in this list. */ + and?: NamespaceFilter[]; + /** Checks for any expressions in this list. */ + or?: NamespaceFilter[]; + /** Negates the expression. */ + not?: NamespaceFilter; +} +export interface PlatformNamespaceEventFilter { + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; + /** Filter by the object’s `eventType` field. */ + eventType?: StringFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Filter by the object’s `message` field. */ + message?: StringFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Filter by the object’s `cpuMillicores` field. */ + cpuMillicores?: IntFilter; + /** Filter by the object’s `memoryBytes` field. */ + memoryBytes?: BigIntFilter; + /** Filter by the object’s `storageBytes` field. */ + storageBytes?: BigIntFilter; + /** Filter by the object’s `networkIngressBytes` field. */ + networkIngressBytes?: BigIntFilter; + /** Filter by the object’s `networkEgressBytes` field. */ + networkEgressBytes?: BigIntFilter; + /** Filter by the object’s `podCount` field. */ + podCount?: IntFilter; + /** Filter by the object’s `metrics` field. */ + metrics?: JSONFilter; + /** Checks for all expressions in this list. */ + and?: PlatformNamespaceEventFilter[]; + /** Checks for any expressions in this list. */ + or?: PlatformNamespaceEventFilter[]; + /** Negates the expression. */ + not?: PlatformNamespaceEventFilter; +} +export interface NamespaceEventFilter { + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; + /** Filter by the object’s `eventType` field. */ + eventType?: StringFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Filter by the object’s `message` field. */ + message?: StringFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Filter by the object’s `cpuMillicores` field. */ + cpuMillicores?: IntFilter; + /** Filter by the object’s `memoryBytes` field. */ + memoryBytes?: BigIntFilter; + /** Filter by the object’s `storageBytes` field. */ + storageBytes?: BigIntFilter; + /** Filter by the object’s `networkIngressBytes` field. */ + networkIngressBytes?: BigIntFilter; + /** Filter by the object’s `networkEgressBytes` field. */ + networkEgressBytes?: BigIntFilter; + /** Filter by the object’s `podCount` field. */ + podCount?: IntFilter; + /** Filter by the object’s `metrics` field. */ + metrics?: JSONFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: NamespaceEventFilter[]; + /** Checks for any expressions in this list. */ + or?: NamespaceEventFilter[]; + /** Negates the expression. */ + not?: NamespaceEventFilter; +} +// ============ OrderBy Types ============ +export type InfraGetAllRecordsOrderBy = + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NATURAL' + | 'PATH_ASC' + | 'PATH_DESC' + | 'DATA_ASC' + | 'DATA_DESC'; +export type InfraRefOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'SCOPE_ID_ASC' + | 'SCOPE_ID_DESC' + | 'STORE_ID_ASC' + | 'STORE_ID_DESC' + | 'COMMIT_ID_ASC' + | 'COMMIT_ID_DESC'; +export type InfraStoreOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'SCOPE_ID_ASC' + | 'SCOPE_ID_DESC' + | 'HASH_ASC' + | 'HASH_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC'; +export type InfraObjectOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'SCOPE_ID_ASC' + | 'SCOPE_ID_DESC' + | 'KIDS_ASC' + | 'KIDS_DESC' + | 'KTREE_ASC' + | 'KTREE_DESC' + | 'DATA_ASC' + | 'DATA_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC'; +export type InfraCommitOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'MESSAGE_ASC' + | 'MESSAGE_DESC' + | 'SCOPE_ID_ASC' + | 'SCOPE_ID_DESC' + | 'STORE_ID_ASC' + | 'STORE_ID_DESC' + | 'PARENT_IDS_ASC' + | 'PARENT_IDS_DESC' + | 'AUTHOR_ID_ASC' + | 'AUTHOR_ID_DESC' + | 'COMMITTER_ID_ASC' + | 'COMMITTER_ID_DESC' + | 'TREE_ID_ASC' + | 'TREE_ID_DESC' + | 'DATE_ASC' + | 'DATE_DESC'; +export type DbPresetOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'STORE_ID_ASC' + | 'STORE_ID_DESC' + | 'SLUG_ASC' + | 'SLUG_DESC' + | 'DEFINITION_ASC' + | 'DEFINITION_DESC' + | 'COMMIT_ID_ASC' + | 'COMMIT_ID_DESC' + | 'MODULES_HASH_ASC' + | 'MODULES_HASH_DESC' + | 'LABEL_ASC' + | 'LABEL_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'ACTIVE_ASC' + | 'ACTIVE_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +export type PlatformNamespaceOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'NAMESPACE_NAME_ASC' + | 'NAMESPACE_NAME_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'IS_ACTIVE_ASC' + | 'IS_ACTIVE_DESC' + | 'STATUS_ASC' + | 'STATUS_DESC' + | 'LAST_ERROR_ASC' + | 'LAST_ERROR_DESC' + | 'LABELS_ASC' + | 'LABELS_DESC' + | 'ANNOTATIONS_ASC' + | 'ANNOTATIONS_DESC' + | 'IS_MANAGED_ASC' + | 'IS_MANAGED_DESC'; +export type NamespaceOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'NAMESPACE_NAME_ASC' + | 'NAMESPACE_NAME_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'IS_ACTIVE_ASC' + | 'IS_ACTIVE_DESC' + | 'STATUS_ASC' + | 'STATUS_DESC' + | 'LAST_ERROR_ASC' + | 'LAST_ERROR_DESC' + | 'LABELS_ASC' + | 'LABELS_DESC' + | 'ANNOTATIONS_ASC' + | 'ANNOTATIONS_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'IS_MANAGED_ASC' + | 'IS_MANAGED_DESC'; +export type PlatformNamespaceEventOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAMESPACE_ID_ASC' + | 'NAMESPACE_ID_DESC' + | 'EVENT_TYPE_ASC' + | 'EVENT_TYPE_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'MESSAGE_ASC' + | 'MESSAGE_DESC' + | 'METADATA_ASC' + | 'METADATA_DESC' + | 'CPU_MILLICORES_ASC' + | 'CPU_MILLICORES_DESC' + | 'MEMORY_BYTES_ASC' + | 'MEMORY_BYTES_DESC' + | 'STORAGE_BYTES_ASC' + | 'STORAGE_BYTES_DESC' + | 'NETWORK_INGRESS_BYTES_ASC' + | 'NETWORK_INGRESS_BYTES_DESC' + | 'NETWORK_EGRESS_BYTES_ASC' + | 'NETWORK_EGRESS_BYTES_DESC' + | 'POD_COUNT_ASC' + | 'POD_COUNT_DESC' + | 'METRICS_ASC' + | 'METRICS_DESC'; +export type NamespaceEventOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAMESPACE_ID_ASC' + | 'NAMESPACE_ID_DESC' + | 'EVENT_TYPE_ASC' + | 'EVENT_TYPE_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'MESSAGE_ASC' + | 'MESSAGE_DESC' + | 'METADATA_ASC' + | 'METADATA_DESC' + | 'CPU_MILLICORES_ASC' + | 'CPU_MILLICORES_DESC' + | 'MEMORY_BYTES_ASC' + | 'MEMORY_BYTES_DESC' + | 'STORAGE_BYTES_ASC' + | 'STORAGE_BYTES_DESC' + | 'NETWORK_INGRESS_BYTES_ASC' + | 'NETWORK_INGRESS_BYTES_DESC' + | 'NETWORK_EGRESS_BYTES_ASC' + | 'NETWORK_EGRESS_BYTES_DESC' + | 'POD_COUNT_ASC' + | 'POD_COUNT_DESC' + | 'METRICS_ASC' + | 'METRICS_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC'; +// ============ CRUD Input Types ============ +export interface CreateInfraGetAllRecordInput { + clientMutationId?: string; + infraGetAllRecord: { + path?: string[]; + data?: Record; + }; +} +export interface InfraGetAllRecordPatch { + path?: string[] | null; + data?: Record | null; +} +export interface UpdateInfraGetAllRecordInput { + clientMutationId?: string; + id: string; + infraGetAllRecordPatch: InfraGetAllRecordPatch; +} +export interface DeleteInfraGetAllRecordInput { + clientMutationId?: string; + id: string; +} +export interface CreateInfraRefInput { + clientMutationId?: string; + infraRef: { + name: string; + scopeId: string; + storeId: string; + commitId?: string; + }; +} +export interface InfraRefPatch { + name?: string | null; + scopeId?: string | null; + storeId?: string | null; + commitId?: string | null; +} +export interface UpdateInfraRefInput { + clientMutationId?: string; + id: string; + infraRefPatch: InfraRefPatch; +} +export interface DeleteInfraRefInput { + clientMutationId?: string; + id: string; +} +export interface CreateInfraStoreInput { + clientMutationId?: string; + infraStore: { + name: string; + scopeId: string; + hash?: string; + }; +} +export interface InfraStorePatch { + name?: string | null; + scopeId?: string | null; + hash?: string | null; +} +export interface UpdateInfraStoreInput { + clientMutationId?: string; + id: string; + infraStorePatch: InfraStorePatch; +} +export interface DeleteInfraStoreInput { + clientMutationId?: string; + id: string; +} +export interface CreateInfraObjectInput { + clientMutationId?: string; + infraObject: { + scopeId: string; + kids?: string[]; + ktree?: string[]; + data?: Record; + }; +} +export interface InfraObjectPatch { + scopeId?: string | null; + kids?: string[] | null; + ktree?: string[] | null; + data?: Record | null; +} +export interface UpdateInfraObjectInput { + clientMutationId?: string; + id: string; + infraObjectPatch: InfraObjectPatch; +} +export interface DeleteInfraObjectInput { + clientMutationId?: string; + id: string; +} +export interface CreateInfraCommitInput { + clientMutationId?: string; + infraCommit: { + message?: string; + scopeId: string; + storeId: string; + parentIds?: string[]; + authorId?: string; + committerId?: string; + treeId?: string; + date?: string; + }; +} +export interface InfraCommitPatch { + message?: string | null; + scopeId?: string | null; + storeId?: string | null; + parentIds?: string[] | null; + authorId?: string | null; + committerId?: string | null; + treeId?: string | null; + date?: string | null; +} +export interface UpdateInfraCommitInput { + clientMutationId?: string; + id: string; + infraCommitPatch: InfraCommitPatch; +} +export interface DeleteInfraCommitInput { + clientMutationId?: string; + id: string; +} +export interface CreateDbPresetInput { + clientMutationId?: string; + dbPreset: { + storeId?: string; + slug: string; + definition: Record; + commitId?: string; + modulesHash?: string; + label?: string; + description?: string; + active?: boolean; + }; +} +export interface DbPresetPatch { + storeId?: string | null; + slug?: string | null; + definition?: Record | null; + commitId?: string | null; + modulesHash?: string | null; + label?: string | null; + description?: string | null; + active?: boolean | null; +} +export interface UpdateDbPresetInput { + clientMutationId?: string; + id: string; + dbPresetPatch: DbPresetPatch; +} +export interface DeleteDbPresetInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformNamespaceInput { + clientMutationId?: string; + platformNamespace: { + name: string; + namespaceName: string; + description?: string; + isActive?: boolean; + status?: string; + lastError?: string; + labels?: Record; + annotations?: Record; + isManaged?: boolean; + }; +} +export interface PlatformNamespacePatch { + name?: string | null; + namespaceName?: string | null; + description?: string | null; + isActive?: boolean | null; + status?: string | null; + lastError?: string | null; + labels?: Record | null; + annotations?: Record | null; + isManaged?: boolean | null; +} +export interface UpdatePlatformNamespaceInput { + clientMutationId?: string; + id: string; + platformNamespacePatch: PlatformNamespacePatch; +} +export interface DeletePlatformNamespaceInput { + clientMutationId?: string; + id: string; +} +export interface CreateNamespaceInput { + clientMutationId?: string; + namespace: { + name: string; + namespaceName: string; + description?: string; + isActive?: boolean; + status?: string; + lastError?: string; + labels?: Record; + annotations?: Record; + databaseId: string; + isManaged?: boolean; + }; +} +export interface NamespacePatch { + name?: string | null; + namespaceName?: string | null; + description?: string | null; + isActive?: boolean | null; + status?: string | null; + lastError?: string | null; + labels?: Record | null; + annotations?: Record | null; + databaseId?: string | null; + isManaged?: boolean | null; +} +export interface UpdateNamespaceInput { + clientMutationId?: string; + id: string; + namespacePatch: NamespacePatch; +} +export interface DeleteNamespaceInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformNamespaceEventInput { + clientMutationId?: string; + platformNamespaceEvent: { + namespaceId: string; + eventType: string; + actorId?: string; + message?: string; + metadata?: Record; + cpuMillicores?: number; + memoryBytes?: string; + storageBytes?: string; + networkIngressBytes?: string; + networkEgressBytes?: string; + podCount?: number; + metrics?: Record; + }; +} +export interface PlatformNamespaceEventPatch { + namespaceId?: string | null; + eventType?: string | null; + actorId?: string | null; + message?: string | null; + metadata?: Record | null; + cpuMillicores?: number | null; + memoryBytes?: string | null; + storageBytes?: string | null; + networkIngressBytes?: string | null; + networkEgressBytes?: string | null; + podCount?: number | null; + metrics?: Record | null; +} +export interface UpdatePlatformNamespaceEventInput { + clientMutationId?: string; + id: string; + platformNamespaceEventPatch: PlatformNamespaceEventPatch; +} +export interface DeletePlatformNamespaceEventInput { + clientMutationId?: string; + id: string; +} +export interface CreateNamespaceEventInput { + clientMutationId?: string; + namespaceEvent: { + namespaceId: string; + eventType: string; + actorId?: string; + message?: string; + metadata?: Record; + cpuMillicores?: number; + memoryBytes?: string; + storageBytes?: string; + networkIngressBytes?: string; + networkEgressBytes?: string; + podCount?: number; + metrics?: Record; + databaseId: string; + }; +} +export interface NamespaceEventPatch { + namespaceId?: string | null; + eventType?: string | null; + actorId?: string | null; + message?: string | null; + metadata?: Record | null; + cpuMillicores?: number | null; + memoryBytes?: string | null; + storageBytes?: string | null; + networkIngressBytes?: string | null; + networkEgressBytes?: string | null; + podCount?: number | null; + metrics?: Record | null; + databaseId?: string | null; +} +export interface UpdateNamespaceEventInput { + clientMutationId?: string; + id: string; + namespaceEventPatch: NamespaceEventPatch; +} +export interface DeleteNamespaceEventInput { + clientMutationId?: string; + id: string; +} +// ============ Connection Fields Map ============ +export const connectionFieldsMap = {} as Record>; +// ============ Custom Input Types (from schema) ============ +export interface InfraInitEmptyRepoInput { + clientMutationId?: string; + sId?: string; + storeId?: string; +} +export interface InfraSetDataAtPathInput { + clientMutationId?: string; + sId?: string; + root?: string; + path?: string[]; + data?: Record; +} +export interface InfraInsertNodeAtPathInput { + clientMutationId?: string; + sId?: string; + root?: string; + path?: string[]; + data?: Record; + kids?: string[]; + ktree?: 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; +} +/** An input for mutations affecting `InfraRef` */ +export interface InfraRefInput { + /** 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; + /** Commit this ref points to */ + commitId?: string; +} +/** An input for mutations affecting `InfraStore` */ +export interface InfraStoreInput { + /** Unique store identifier */ + id?: string; + /** Human-readable store name */ + name: string; + /** Opaque store partition key for the global tier */ + scopeId: string; + /** Current root object hash of this store */ + hash?: string; + /** Timestamp of store creation */ + createdAt?: string; +} +/** An input for mutations affecting `InfraObject` */ +export interface InfraObjectInput { + /** Content-addressed UUID v5 — deterministic hash of (data, kids, ktree) */ + id: string; + /** Opaque store partition key for the global tier */ + scopeId: string; + /** Ordered array of child object IDs */ + kids?: string[]; + /** Ordered array of child path names (parallel to kids) */ + ktree?: string[]; + /** Payload data for this object node */ + data?: Record; + /** Timestamp of object creation */ + createdAt?: string; +} +/** An input for mutations affecting `InfraCommit` */ +export interface InfraCommitInput { + /** Unique commit identifier */ + id?: string; + /** Optional commit message */ + message?: string; + /** Opaque store partition key for the global tier */ + scopeId: string; + /** Store this commit belongs to */ + storeId: string; + /** Parent commit IDs (supports merge commits) */ + parentIds?: string[]; + /** User who authored the changes */ + authorId?: string; + /** User who committed (may differ from author) */ + committerId?: string; + /** Root object ID of the tree snapshot at this commit */ + treeId?: string; + /** Commit timestamp */ + date?: string; +} +/** An input for mutations affecting `DbPreset` */ +export interface DbPresetInput { + /** Unique preset identifier */ + id?: string; + /** Infra Merkle store holding this preset's history (stamped by the versioned trigger) */ + storeId?: string; + /** Preset slug (unique per scope); the preset's path in the infra tree is [db_preset, slug] */ + slug: string; + /** Preset definition (modules + options) — the readily-cached head; history lives in the infra store */ + definition: Record; + /** Infra store commit for the current definition (stamped by the versioned trigger on every write) */ + commitId?: 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; + /** Human-readable preset name */ + label?: string; + /** Human-readable description of the preset */ + description?: string; + /** Whether this preset is selectable for new databases */ + active?: boolean; + /** Timestamp of preset creation */ + createdAt?: string; + /** Timestamp of last modification */ + updatedAt?: string; +} +/** An input for mutations affecting `PlatformNamespace` */ +export interface PlatformNamespaceInput { + id?: string; + createdAt?: string; + updatedAt?: string; + /** Human-readable namespace name (e.g. default, production, oauth) */ + name: string; + /** Globally unique computed namespace identifier via inflection.underscore */ + namespaceName: string; + /** Optional human-readable description of this namespace */ + description?: string; + /** Whether this namespace is active (soft-disable for filtering) */ + isActive?: boolean; + /** Namespace provisioning lifecycle status: pending, provisioning, active, failed */ + status?: string; + /** Most recent provisioning or reconcile error message */ + lastError?: string; + /** Key/value pairs for selecting and filtering namespaces */ + labels?: Record; + /** Freeform metadata for tooling and operational notes */ + annotations?: Record; + /** true = provisioned by the platform via jobs, false = unmanaged/platform-native (bootstrapped externally) */ + isManaged?: boolean; +} +/** An input for mutations affecting `Namespace` */ +export interface NamespaceInput { + id?: string; + createdAt?: string; + updatedAt?: string; + /** Human-readable namespace name (e.g. default, production, oauth) */ + name: string; + /** Globally unique computed namespace identifier via inflection.underscore */ + namespaceName: string; + /** Optional human-readable description of this namespace */ + description?: string; + /** Whether this namespace is active (soft-disable for filtering) */ + isActive?: boolean; + /** Namespace provisioning lifecycle status: pending, provisioning, active, failed */ + status?: string; + /** Most recent provisioning or reconcile error message */ + lastError?: string; + /** Key/value pairs for selecting and filtering namespaces */ + labels?: Record; + /** Freeform metadata for tooling and operational notes */ + annotations?: Record; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + /** true = provisioned by the platform via jobs, false = unmanaged/platform-native (bootstrapped externally) */ + isManaged?: boolean; +} +/** An input for mutations affecting `PlatformNamespaceEvent` */ +export interface PlatformNamespaceEventInput { + /** Event timestamp (partition key) */ + createdAt?: string; + /** Unique event identifier */ + id?: string; + /** Namespace this event belongs to */ + namespaceId: string; + /** Event type: created, activated, deactivated, labels_updated, annotations_updated, renamed */ + eventType: string; + /** User who triggered this event (NULL for system/automated) */ + actorId?: string; + /** Human-readable description of the event */ + message?: string; + /** Structured context (old/new values, labels diff, etc.) */ + metadata?: Record; + /** CPU usage in millicores at time of event */ + cpuMillicores?: number; + /** Memory usage in bytes at time of event */ + memoryBytes?: string; + /** Storage usage in bytes at time of event */ + storageBytes?: string; + /** Network ingress in bytes during event window */ + networkIngressBytes?: string; + /** Network egress in bytes during event window */ + networkEgressBytes?: string; + /** Number of active pods in the namespace at time of event */ + podCount?: number; + /** Additional resource metrics (gpu, replicas, quotas, etc.) */ + metrics?: Record; +} +/** An input for mutations affecting `NamespaceEvent` */ +export interface NamespaceEventInput { + /** Event timestamp (partition key) */ + createdAt?: string; + /** Unique event identifier */ + id?: string; + /** Namespace this event belongs to */ + namespaceId: string; + /** Event type: created, activated, deactivated, labels_updated, annotations_updated, renamed */ + eventType: string; + /** User who triggered this event (NULL for system/automated) */ + actorId?: string; + /** Human-readable description of the event */ + message?: string; + /** Structured context (old/new values, labels diff, etc.) */ + metadata?: Record; + /** CPU usage in millicores at time of event */ + cpuMillicores?: number; + /** Memory usage in bytes at time of event */ + memoryBytes?: string; + /** Storage usage in bytes at time of event */ + storageBytes?: string; + /** Network ingress in bytes during event window */ + networkIngressBytes?: string; + /** Network egress in bytes during event window */ + networkEgressBytes?: string; + /** Number of active pods in the namespace at time of event */ + podCount?: number; + /** Additional resource metrics (gpu, replicas, quotas, etc.) */ + metrics?: Record; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; +} +// ============ Payload/Return Types (for custom operations) ============ +export interface InfraInitEmptyRepoPayload { + clientMutationId?: string | null; +} +export type InfraInitEmptyRepoPayloadSelect = { + clientMutationId?: boolean; +}; +export interface InfraSetDataAtPathPayload { + clientMutationId?: string | null; + result?: string | null; +} +export type InfraSetDataAtPathPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface InfraInsertNodeAtPathPayload { + clientMutationId?: string | null; + result?: string | null; +} +export type InfraInsertNodeAtPathPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface ProvisionBucketPayload { + /** Whether provisioning succeeded */ + success: boolean; + /** The S3 bucket name that was provisioned */ + bucketName: string; + /** The access type applied */ + accessType: string; + /** The storage provider used */ + provider: string; + /** The S3 endpoint (null for AWS S3 default) */ + endpoint?: string | null; + /** Error message if provisioning failed */ + error?: string | null; +} +export type ProvisionBucketPayloadSelect = { + success?: boolean; + bucketName?: boolean; + accessType?: boolean; + provider?: boolean; + endpoint?: boolean; + error?: boolean; +}; +export interface CreateInfraRefPayload { + clientMutationId?: string | null; + /** The `InfraRef` that was created by this mutation. */ + infraRef?: InfraRef | null; + infraRefEdge?: InfraRefEdge | null; +} +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; +} +export type DeleteInfraRefPayloadSelect = { + clientMutationId?: boolean; + infraRef?: { + select: InfraRefSelect; + }; + infraRefEdge?: { + select: InfraRefEdgeSelect; + }; +}; +export interface CreateInfraStorePayload { + clientMutationId?: string | null; + /** The `InfraStore` that was created by this mutation. */ + infraStore?: InfraStore | null; + infraStoreEdge?: InfraStoreEdge | null; +} +export type CreateInfraStorePayloadSelect = { + clientMutationId?: boolean; + infraStore?: { + select: InfraStoreSelect; + }; + infraStoreEdge?: { + select: InfraStoreEdgeSelect; + }; +}; +export interface UpdateInfraStorePayload { + clientMutationId?: string | null; + /** The `InfraStore` that was updated by this mutation. */ + infraStore?: InfraStore | null; + infraStoreEdge?: InfraStoreEdge | null; +} +export type UpdateInfraStorePayloadSelect = { + clientMutationId?: boolean; + infraStore?: { + select: InfraStoreSelect; + }; + infraStoreEdge?: { + select: InfraStoreEdgeSelect; + }; +}; +export interface DeleteInfraStorePayload { + clientMutationId?: string | null; + /** The `InfraStore` that was deleted by this mutation. */ + infraStore?: InfraStore | null; + infraStoreEdge?: InfraStoreEdge | null; +} +export type DeleteInfraStorePayloadSelect = { + clientMutationId?: boolean; + infraStore?: { + select: InfraStoreSelect; + }; + infraStoreEdge?: { + select: InfraStoreEdgeSelect; + }; +}; +export interface CreateInfraObjectPayload { + clientMutationId?: string | null; + /** The `InfraObject` that was created by this mutation. */ + infraObject?: InfraObject | null; + infraObjectEdge?: InfraObjectEdge | null; +} +export type CreateInfraObjectPayloadSelect = { + clientMutationId?: boolean; + infraObject?: { + select: InfraObjectSelect; + }; + infraObjectEdge?: { + select: InfraObjectEdgeSelect; + }; +}; +export interface UpdateInfraObjectPayload { + clientMutationId?: string | null; + /** The `InfraObject` that was updated by this mutation. */ + infraObject?: InfraObject | null; + infraObjectEdge?: InfraObjectEdge | null; +} +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; +} +export type DeleteInfraObjectPayloadSelect = { + clientMutationId?: boolean; + infraObject?: { + select: InfraObjectSelect; + }; + infraObjectEdge?: { + select: InfraObjectEdgeSelect; + }; +}; +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 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 CreatePlatformNamespacePayload { + clientMutationId?: string | null; + /** The `PlatformNamespace` that was created by this mutation. */ + platformNamespace?: PlatformNamespace | null; + platformNamespaceEdge?: PlatformNamespaceEdge | null; +} +export type CreatePlatformNamespacePayloadSelect = { + clientMutationId?: boolean; + platformNamespace?: { + select: PlatformNamespaceSelect; + }; + platformNamespaceEdge?: { + select: PlatformNamespaceEdgeSelect; + }; +}; +export interface UpdatePlatformNamespacePayload { + clientMutationId?: string | null; + /** The `PlatformNamespace` that was updated by this mutation. */ + platformNamespace?: PlatformNamespace | null; + platformNamespaceEdge?: PlatformNamespaceEdge | null; +} +export type UpdatePlatformNamespacePayloadSelect = { + clientMutationId?: boolean; + platformNamespace?: { + select: PlatformNamespaceSelect; + }; + platformNamespaceEdge?: { + select: PlatformNamespaceEdgeSelect; + }; +}; +export interface DeletePlatformNamespacePayload { + clientMutationId?: string | null; + /** The `PlatformNamespace` that was deleted by this mutation. */ + platformNamespace?: PlatformNamespace | null; + platformNamespaceEdge?: PlatformNamespaceEdge | null; +} +export type DeletePlatformNamespacePayloadSelect = { + clientMutationId?: boolean; + platformNamespace?: { + select: PlatformNamespaceSelect; + }; + platformNamespaceEdge?: { + select: PlatformNamespaceEdgeSelect; + }; +}; +export interface CreateNamespacePayload { + clientMutationId?: string | null; + /** The `Namespace` that was created by this mutation. */ + namespace?: Namespace | null; + namespaceEdge?: NamespaceEdge | null; +} +export type CreateNamespacePayloadSelect = { + clientMutationId?: boolean; + namespace?: { + select: NamespaceSelect; + }; + namespaceEdge?: { + select: NamespaceEdgeSelect; + }; +}; +export interface UpdateNamespacePayload { + clientMutationId?: string | null; + /** The `Namespace` that was updated by this mutation. */ + namespace?: Namespace | null; + namespaceEdge?: NamespaceEdge | null; +} +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 CreatePlatformNamespaceEventPayload { + clientMutationId?: string | null; + /** The `PlatformNamespaceEvent` that was created by this mutation. */ + platformNamespaceEvent?: PlatformNamespaceEvent | null; + platformNamespaceEventEdge?: PlatformNamespaceEventEdge | null; +} +export type CreatePlatformNamespaceEventPayloadSelect = { + clientMutationId?: boolean; + platformNamespaceEvent?: { + select: PlatformNamespaceEventSelect; + }; + platformNamespaceEventEdge?: { + select: PlatformNamespaceEventEdgeSelect; + }; +}; +export interface UpdatePlatformNamespaceEventPayload { + clientMutationId?: string | null; + /** The `PlatformNamespaceEvent` that was updated by this mutation. */ + platformNamespaceEvent?: PlatformNamespaceEvent | null; + platformNamespaceEventEdge?: PlatformNamespaceEventEdge | null; +} +export type UpdatePlatformNamespaceEventPayloadSelect = { + clientMutationId?: boolean; + platformNamespaceEvent?: { + select: PlatformNamespaceEventSelect; + }; + platformNamespaceEventEdge?: { + select: PlatformNamespaceEventEdgeSelect; + }; +}; +export interface DeletePlatformNamespaceEventPayload { + clientMutationId?: string | null; + /** The `PlatformNamespaceEvent` that was deleted by this mutation. */ + platformNamespaceEvent?: PlatformNamespaceEvent | null; + platformNamespaceEventEdge?: PlatformNamespaceEventEdge | null; +} +export type DeletePlatformNamespaceEventPayloadSelect = { + clientMutationId?: boolean; + platformNamespaceEvent?: { + select: PlatformNamespaceEventSelect; + }; + platformNamespaceEventEdge?: { + select: PlatformNamespaceEventEdgeSelect; + }; +}; +export interface CreateNamespaceEventPayload { + clientMutationId?: string | null; + /** The `NamespaceEvent` that was created by this mutation. */ + namespaceEvent?: NamespaceEvent | null; + namespaceEventEdge?: NamespaceEventEdge | null; +} +export type CreateNamespaceEventPayloadSelect = { + clientMutationId?: boolean; + namespaceEvent?: { + select: NamespaceEventSelect; + }; + namespaceEventEdge?: { + select: NamespaceEventEdgeSelect; + }; +}; +export interface UpdateNamespaceEventPayload { + clientMutationId?: string | null; + /** The `NamespaceEvent` that was updated by this mutation. */ + namespaceEvent?: NamespaceEvent | null; + namespaceEventEdge?: NamespaceEventEdge | null; +} +export type UpdateNamespaceEventPayloadSelect = { + clientMutationId?: boolean; + namespaceEvent?: { + select: NamespaceEventSelect; + }; + namespaceEventEdge?: { + select: NamespaceEventEdgeSelect; + }; +}; +export interface DeleteNamespaceEventPayload { + clientMutationId?: string | null; + /** The `NamespaceEvent` that was deleted by this mutation. */ + namespaceEvent?: NamespaceEvent | null; + namespaceEventEdge?: NamespaceEventEdge | null; +} +export type DeleteNamespaceEventPayloadSelect = { + clientMutationId?: boolean; + namespaceEvent?: { + select: NamespaceEventSelect; + }; + namespaceEventEdge?: { + select: NamespaceEventEdgeSelect; + }; +}; +/** A `InfraRef` edge in the connection. */ +export interface InfraRefEdge { + cursor?: string | null; + /** The `InfraRef` at the end of the edge. */ + node?: InfraRef | null; +} +export type InfraRefEdgeSelect = { + cursor?: boolean; + node?: { + select: InfraRefSelect; + }; +}; +/** A `InfraStore` edge in the connection. */ +export interface InfraStoreEdge { + cursor?: string | null; + /** The `InfraStore` at the end of the edge. */ + node?: InfraStore | null; +} +export type InfraStoreEdgeSelect = { + cursor?: boolean; + node?: { + select: InfraStoreSelect; + }; +}; +/** A `InfraObject` edge in the connection. */ +export interface InfraObjectEdge { + cursor?: string | null; + /** The `InfraObject` at the end of the edge. */ + node?: InfraObject | null; +} +export type InfraObjectEdgeSelect = { + cursor?: boolean; + node?: { + select: InfraObjectSelect; + }; +}; +/** 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 `DbPreset` edge in the connection. */ +export interface DbPresetEdge { + cursor?: string | null; + /** The `DbPreset` at the end of the edge. */ + node?: DbPreset | null; +} +export type DbPresetEdgeSelect = { + cursor?: boolean; + node?: { + select: DbPresetSelect; + }; +}; +/** A `PlatformNamespace` edge in the connection. */ +export interface PlatformNamespaceEdge { + cursor?: string | null; + /** The `PlatformNamespace` at the end of the edge. */ + node?: PlatformNamespace | null; +} +export type PlatformNamespaceEdgeSelect = { + cursor?: boolean; + node?: { + select: PlatformNamespaceSelect; + }; +}; +/** A `Namespace` edge in the connection. */ +export interface NamespaceEdge { + cursor?: string | null; + /** The `Namespace` at the end of the edge. */ + node?: Namespace | null; +} +export type NamespaceEdgeSelect = { + cursor?: boolean; + node?: { + select: NamespaceSelect; + }; +}; +/** A `PlatformNamespaceEvent` edge in the connection. */ +export interface PlatformNamespaceEventEdge { + cursor?: string | null; + /** The `PlatformNamespaceEvent` at the end of the edge. */ + node?: PlatformNamespaceEvent | null; +} +export type PlatformNamespaceEventEdgeSelect = { + cursor?: boolean; + node?: { + select: PlatformNamespaceEventSelect; + }; +}; +/** A `NamespaceEvent` edge in the connection. */ +export interface NamespaceEventEdge { + cursor?: string | null; + /** The `NamespaceEvent` at the end of the edge. */ + node?: NamespaceEvent | null; +} +export type NamespaceEventEdgeSelect = { + cursor?: boolean; + node?: { + select: NamespaceEventSelect; + }; +}; diff --git a/sdk/constructive-cli/src/infra/orm/models/dbPreset.ts b/sdk/constructive-cli/src/infra/orm/models/dbPreset.ts new file mode 100644 index 0000000000..a3e824a674 --- /dev/null +++ b/sdk/constructive-cli/src/infra/orm/models/dbPreset.ts @@ -0,0 +1,245 @@ +/** + * DbPreset model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + DbPreset, + DbPresetWithRelations, + DbPresetSelect, + DbPresetFilter, + DbPresetOrderBy, + CreateDbPresetInput, + UpdateDbPresetInput, + DbPresetPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class DbPresetModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + dbPresets: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'DbPreset', + 'dbPresets', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'DbPresetFilter', + 'DbPresetOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'DbPreset', + fieldName: 'dbPresets', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + dbPreset: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'DbPreset', + 'dbPresets', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'DbPresetFilter', + 'DbPresetOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'DbPreset', + fieldName: 'dbPreset', + document, + variables, + transform: (data: { + dbPresets?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + dbPreset: data.dbPresets?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + dbPreset: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'DbPreset', + 'dbPresets', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'DbPresetFilter', + 'DbPresetOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'DbPreset', + fieldName: 'dbPreset', + document, + variables, + transform: (data: { + dbPresets?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + dbPreset: data.dbPresets?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createDbPreset: { + dbPreset: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'DbPreset', + 'createDbPreset', + 'dbPreset', + args.select, + args.data, + 'CreateDbPresetInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'DbPreset', + fieldName: 'createDbPreset', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + DbPresetPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateDbPreset: { + dbPreset: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'DbPreset', + 'updateDbPreset', + 'dbPreset', + args.select, + args.where.id, + args.data, + 'UpdateDbPresetInput', + 'id', + 'dbPresetPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'DbPreset', + fieldName: 'updateDbPreset', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteDbPreset: { + dbPreset: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'DbPreset', + 'deleteDbPreset', + 'dbPreset', + { + id: args.where.id, + }, + 'DeleteDbPresetInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'DbPreset', + fieldName: 'deleteDbPreset', + document, + variables, + }); + } +} diff --git a/sdk/constructive-cli/src/infra/orm/models/index.ts b/sdk/constructive-cli/src/infra/orm/models/index.ts new file mode 100644 index 0000000000..e3c440f5ad --- /dev/null +++ b/sdk/constructive-cli/src/infra/orm/models/index.ts @@ -0,0 +1,15 @@ +/** + * Models barrel export + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +export { InfraGetAllRecordModel } from './infraGetAllRecord'; +export { InfraRefModel } from './infraRef'; +export { InfraStoreModel } from './infraStore'; +export { InfraObjectModel } from './infraObject'; +export { InfraCommitModel } from './infraCommit'; +export { DbPresetModel } from './dbPreset'; +export { PlatformNamespaceModel } from './platformNamespace'; +export { NamespaceModel } from './namespace'; +export { PlatformNamespaceEventModel } from './platformNamespaceEvent'; +export { NamespaceEventModel } from './namespaceEvent'; diff --git a/sdk/constructive-cli/src/infra/orm/models/infraCommit.ts b/sdk/constructive-cli/src/infra/orm/models/infraCommit.ts new file mode 100644 index 0000000000..410e937a90 --- /dev/null +++ b/sdk/constructive-cli/src/infra/orm/models/infraCommit.ts @@ -0,0 +1,250 @@ +/** + * InfraCommit model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + InfraCommit, + InfraCommitWithRelations, + InfraCommitSelect, + InfraCommitFilter, + InfraCommitOrderBy, + CreateInfraCommitInput, + UpdateInfraCommitInput, + InfraCommitPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class InfraCommitModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + infraCommits: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'InfraCommit', + 'infraCommits', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'InfraCommitFilter', + 'InfraCommitOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'InfraCommit', + fieldName: 'infraCommits', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + infraCommit: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'InfraCommit', + 'infraCommits', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'InfraCommitFilter', + 'InfraCommitOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'InfraCommit', + fieldName: 'infraCommit', + document, + variables, + transform: (data: { + infraCommits?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + infraCommit: data.infraCommits?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + infraCommit: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'InfraCommit', + 'infraCommits', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'InfraCommitFilter', + 'InfraCommitOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'InfraCommit', + fieldName: 'infraCommit', + document, + variables, + transform: (data: { + infraCommits?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + infraCommit: data.infraCommits?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createInfraCommit: { + infraCommit: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'InfraCommit', + 'createInfraCommit', + 'infraCommit', + args.select, + args.data, + 'CreateInfraCommitInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'InfraCommit', + fieldName: 'createInfraCommit', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + scopeId: string; + }, + InfraCommitPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateInfraCommit: { + infraCommit: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'InfraCommit', + 'updateInfraCommit', + 'infraCommit', + args.select, + args.where.id, + args.data, + 'UpdateInfraCommitInput', + 'id', + 'infraCommitPatch', + connectionFieldsMap, + { + scopeId: args.where.scopeId, + } + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'InfraCommit', + fieldName: 'updateInfraCommit', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + scopeId: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteInfraCommit: { + infraCommit: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'InfraCommit', + 'deleteInfraCommit', + 'infraCommit', + { + id: args.where.id, + scopeId: args.where.scopeId, + }, + 'DeleteInfraCommitInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'InfraCommit', + fieldName: 'deleteInfraCommit', + document, + variables, + }); + } +} diff --git a/sdk/constructive-cli/src/infra/orm/models/infraGetAllRecord.ts b/sdk/constructive-cli/src/infra/orm/models/infraGetAllRecord.ts new file mode 100644 index 0000000000..ebe2f8c1f2 --- /dev/null +++ b/sdk/constructive-cli/src/infra/orm/models/infraGetAllRecord.ts @@ -0,0 +1,134 @@ +/** + * InfraGetAllRecord model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + InfraGetAllRecord, + InfraGetAllRecordWithRelations, + InfraGetAllRecordSelect, + InfraGetAllRecordFilter, + InfraGetAllRecordsOrderBy, + CreateInfraGetAllRecordInput, + UpdateInfraGetAllRecordInput, + InfraGetAllRecordPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class InfraGetAllRecordModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + infraGetAll: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'InfraGetAllRecord', + 'infraGetAll', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'InfraGetAllRecordFilter', + 'InfraGetAllRecordsOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'InfraGetAllRecord', + fieldName: 'infraGetAll', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + infraGetAllRecord: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'InfraGetAllRecord', + 'infraGetAll', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'InfraGetAllRecordFilter', + 'InfraGetAllRecordsOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'InfraGetAllRecord', + fieldName: 'infraGetAllRecord', + document, + variables, + transform: (data: { + infraGetAll?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + infraGetAllRecord: data.infraGetAll?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createInfraGetAllRecord: { + infraGetAllRecord: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'InfraGetAllRecord', + 'createInfraGetAllRecord', + 'infraGetAllRecord', + args.select, + args.data, + 'CreateInfraGetAllRecordInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'InfraGetAllRecord', + fieldName: 'createInfraGetAllRecord', + document, + variables, + }); + } +} diff --git a/sdk/constructive-cli/src/infra/orm/models/infraObject.ts b/sdk/constructive-cli/src/infra/orm/models/infraObject.ts new file mode 100644 index 0000000000..e097c8b271 --- /dev/null +++ b/sdk/constructive-cli/src/infra/orm/models/infraObject.ts @@ -0,0 +1,236 @@ +/** + * InfraObject model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + InfraObject, + InfraObjectWithRelations, + InfraObjectSelect, + InfraObjectFilter, + InfraObjectOrderBy, + CreateInfraObjectInput, + UpdateInfraObjectInput, + InfraObjectPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class InfraObjectModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + infraObjects: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'InfraObject', + 'infraObjects', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'InfraObjectFilter', + 'InfraObjectOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'InfraObject', + fieldName: 'infraObjects', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + infraObject: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'InfraObject', + 'infraObjects', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'InfraObjectFilter', + 'InfraObjectOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'InfraObject', + fieldName: 'infraObject', + document, + variables, + transform: (data: { + infraObjects?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + infraObject: data.infraObjects?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + infraObject: InferSelectResult | null; + }> { + const { document, variables } = buildFindOneDocument( + 'InfraObject', + 'infraGetNodeAtPath', + args.id, + args.select, + 'id', + 'UUID!', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'InfraObject', + fieldName: 'infraObject', + document, + variables, + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createInfraObject: { + infraObject: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'InfraObject', + 'createInfraObject', + 'infraObject', + args.select, + args.data, + 'CreateInfraObjectInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'InfraObject', + fieldName: 'createInfraObject', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + scopeId: string; + }, + InfraObjectPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateInfraObject: { + infraObject: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'InfraObject', + 'updateInfraObject', + 'infraObject', + args.select, + args.where.id, + args.data, + 'UpdateInfraObjectInput', + 'id', + 'infraObjectPatch', + connectionFieldsMap, + { + scopeId: args.where.scopeId, + } + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'InfraObject', + fieldName: 'updateInfraObject', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + scopeId: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteInfraObject: { + infraObject: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'InfraObject', + 'deleteInfraObject', + 'infraObject', + { + id: args.where.id, + scopeId: args.where.scopeId, + }, + 'DeleteInfraObjectInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'InfraObject', + fieldName: 'deleteInfraObject', + document, + variables, + }); + } +} diff --git a/sdk/constructive-cli/src/infra/orm/models/infraRef.ts b/sdk/constructive-cli/src/infra/orm/models/infraRef.ts new file mode 100644 index 0000000000..3c474d3186 --- /dev/null +++ b/sdk/constructive-cli/src/infra/orm/models/infraRef.ts @@ -0,0 +1,250 @@ +/** + * InfraRef model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + InfraRef, + InfraRefWithRelations, + InfraRefSelect, + InfraRefFilter, + InfraRefOrderBy, + CreateInfraRefInput, + UpdateInfraRefInput, + InfraRefPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class InfraRefModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + infraRefs: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'InfraRef', + 'infraRefs', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'InfraRefFilter', + 'InfraRefOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'InfraRef', + fieldName: 'infraRefs', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + infraRef: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'InfraRef', + 'infraRefs', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'InfraRefFilter', + 'InfraRefOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'InfraRef', + fieldName: 'infraRef', + document, + variables, + transform: (data: { + infraRefs?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + infraRef: data.infraRefs?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + infraRef: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'InfraRef', + 'infraRefs', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'InfraRefFilter', + 'InfraRefOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'InfraRef', + fieldName: 'infraRef', + document, + variables, + transform: (data: { + infraRefs?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + infraRef: data.infraRefs?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createInfraRef: { + infraRef: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'InfraRef', + 'createInfraRef', + 'infraRef', + args.select, + args.data, + 'CreateInfraRefInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'InfraRef', + fieldName: 'createInfraRef', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + scopeId: string; + }, + InfraRefPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateInfraRef: { + infraRef: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'InfraRef', + 'updateInfraRef', + 'infraRef', + args.select, + args.where.id, + args.data, + 'UpdateInfraRefInput', + 'id', + 'infraRefPatch', + connectionFieldsMap, + { + scopeId: args.where.scopeId, + } + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'InfraRef', + fieldName: 'updateInfraRef', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + scopeId: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteInfraRef: { + infraRef: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'InfraRef', + 'deleteInfraRef', + 'infraRef', + { + id: args.where.id, + scopeId: args.where.scopeId, + }, + 'DeleteInfraRefInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'InfraRef', + fieldName: 'deleteInfraRef', + document, + variables, + }); + } +} diff --git a/sdk/constructive-cli/src/infra/orm/models/infraStore.ts b/sdk/constructive-cli/src/infra/orm/models/infraStore.ts new file mode 100644 index 0000000000..a0ed0dbe7b --- /dev/null +++ b/sdk/constructive-cli/src/infra/orm/models/infraStore.ts @@ -0,0 +1,245 @@ +/** + * InfraStore model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + InfraStore, + InfraStoreWithRelations, + InfraStoreSelect, + InfraStoreFilter, + InfraStoreOrderBy, + CreateInfraStoreInput, + UpdateInfraStoreInput, + InfraStorePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class InfraStoreModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + infraStores: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'InfraStore', + 'infraStores', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'InfraStoreFilter', + 'InfraStoreOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'InfraStore', + fieldName: 'infraStores', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + infraStore: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'InfraStore', + 'infraStores', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'InfraStoreFilter', + 'InfraStoreOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'InfraStore', + fieldName: 'infraStore', + document, + variables, + transform: (data: { + infraStores?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + infraStore: data.infraStores?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + infraStore: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'InfraStore', + 'infraStores', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'InfraStoreFilter', + 'InfraStoreOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'InfraStore', + fieldName: 'infraStore', + document, + variables, + transform: (data: { + infraStores?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + infraStore: data.infraStores?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createInfraStore: { + infraStore: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'InfraStore', + 'createInfraStore', + 'infraStore', + args.select, + args.data, + 'CreateInfraStoreInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'InfraStore', + fieldName: 'createInfraStore', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + InfraStorePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateInfraStore: { + infraStore: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'InfraStore', + 'updateInfraStore', + 'infraStore', + args.select, + args.where.id, + args.data, + 'UpdateInfraStoreInput', + 'id', + 'infraStorePatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'InfraStore', + fieldName: 'updateInfraStore', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteInfraStore: { + infraStore: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'InfraStore', + 'deleteInfraStore', + 'infraStore', + { + id: args.where.id, + }, + 'DeleteInfraStoreInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'InfraStore', + fieldName: 'deleteInfraStore', + document, + variables, + }); + } +} diff --git a/sdk/constructive-cli/src/infra/orm/models/namespace.ts b/sdk/constructive-cli/src/infra/orm/models/namespace.ts new file mode 100644 index 0000000000..4e300068cd --- /dev/null +++ b/sdk/constructive-cli/src/infra/orm/models/namespace.ts @@ -0,0 +1,245 @@ +/** + * Namespace model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + Namespace, + NamespaceWithRelations, + NamespaceSelect, + NamespaceFilter, + NamespaceOrderBy, + CreateNamespaceInput, + UpdateNamespaceInput, + NamespacePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class NamespaceModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + namespaces: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'Namespace', + 'namespaces', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'NamespaceFilter', + 'NamespaceOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'Namespace', + fieldName: 'namespaces', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + namespace: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'Namespace', + 'namespaces', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'NamespaceFilter', + 'NamespaceOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'Namespace', + fieldName: 'namespace', + document, + variables, + transform: (data: { + namespaces?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + namespace: data.namespaces?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + namespace: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'Namespace', + 'namespaces', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'NamespaceFilter', + 'NamespaceOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'Namespace', + fieldName: 'namespace', + document, + variables, + transform: (data: { + namespaces?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + namespace: data.namespaces?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createNamespace: { + namespace: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'Namespace', + 'createNamespace', + 'namespace', + args.select, + args.data, + 'CreateNamespaceInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'Namespace', + fieldName: 'createNamespace', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + NamespacePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateNamespace: { + namespace: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'Namespace', + 'updateNamespace', + 'namespace', + args.select, + args.where.id, + args.data, + 'UpdateNamespaceInput', + 'id', + 'namespacePatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'Namespace', + fieldName: 'updateNamespace', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteNamespace: { + namespace: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'Namespace', + 'deleteNamespace', + 'namespace', + { + id: args.where.id, + }, + 'DeleteNamespaceInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'Namespace', + fieldName: 'deleteNamespace', + document, + variables, + }); + } +} diff --git a/sdk/constructive-cli/src/infra/orm/models/namespaceEvent.ts b/sdk/constructive-cli/src/infra/orm/models/namespaceEvent.ts new file mode 100644 index 0000000000..494442c263 --- /dev/null +++ b/sdk/constructive-cli/src/infra/orm/models/namespaceEvent.ts @@ -0,0 +1,250 @@ +/** + * NamespaceEvent model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + NamespaceEvent, + NamespaceEventWithRelations, + NamespaceEventSelect, + NamespaceEventFilter, + NamespaceEventOrderBy, + CreateNamespaceEventInput, + UpdateNamespaceEventInput, + NamespaceEventPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class NamespaceEventModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + namespaceEvents: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'NamespaceEvent', + 'namespaceEvents', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'NamespaceEventFilter', + 'NamespaceEventOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'NamespaceEvent', + fieldName: 'namespaceEvents', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + namespaceEvent: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'NamespaceEvent', + 'namespaceEvents', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'NamespaceEventFilter', + 'NamespaceEventOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'NamespaceEvent', + fieldName: 'namespaceEvent', + document, + variables, + transform: (data: { + namespaceEvents?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + namespaceEvent: data.namespaceEvents?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + namespaceEvent: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'NamespaceEvent', + 'namespaceEvents', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'NamespaceEventFilter', + 'NamespaceEventOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'NamespaceEvent', + fieldName: 'namespaceEvent', + document, + variables, + transform: (data: { + namespaceEvents?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + namespaceEvent: data.namespaceEvents?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createNamespaceEvent: { + namespaceEvent: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'NamespaceEvent', + 'createNamespaceEvent', + 'namespaceEvent', + args.select, + args.data, + 'CreateNamespaceEventInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'NamespaceEvent', + fieldName: 'createNamespaceEvent', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + createdAt: string; + }, + NamespaceEventPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateNamespaceEvent: { + namespaceEvent: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'NamespaceEvent', + 'updateNamespaceEvent', + 'namespaceEvent', + args.select, + args.where.id, + args.data, + 'UpdateNamespaceEventInput', + 'id', + 'namespaceEventPatch', + connectionFieldsMap, + { + createdAt: args.where.createdAt, + } + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'NamespaceEvent', + fieldName: 'updateNamespaceEvent', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + createdAt: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteNamespaceEvent: { + namespaceEvent: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'NamespaceEvent', + 'deleteNamespaceEvent', + 'namespaceEvent', + { + id: args.where.id, + createdAt: args.where.createdAt, + }, + 'DeleteNamespaceEventInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'NamespaceEvent', + fieldName: 'deleteNamespaceEvent', + document, + variables, + }); + } +} diff --git a/sdk/constructive-cli/src/infra/orm/models/platformNamespace.ts b/sdk/constructive-cli/src/infra/orm/models/platformNamespace.ts new file mode 100644 index 0000000000..c4dff94953 --- /dev/null +++ b/sdk/constructive-cli/src/infra/orm/models/platformNamespace.ts @@ -0,0 +1,245 @@ +/** + * PlatformNamespace model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + PlatformNamespace, + PlatformNamespaceWithRelations, + PlatformNamespaceSelect, + PlatformNamespaceFilter, + PlatformNamespaceOrderBy, + CreatePlatformNamespaceInput, + UpdatePlatformNamespaceInput, + PlatformNamespacePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class PlatformNamespaceModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformNamespaces: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformNamespace', + 'platformNamespaces', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'PlatformNamespaceFilter', + 'PlatformNamespaceOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformNamespace', + fieldName: 'platformNamespaces', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformNamespace: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'PlatformNamespace', + 'platformNamespaces', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'PlatformNamespaceFilter', + 'PlatformNamespaceOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformNamespace', + fieldName: 'platformNamespace', + document, + variables, + transform: (data: { + platformNamespaces?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformNamespace: data.platformNamespaces?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformNamespace: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformNamespace', + 'platformNamespaces', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'PlatformNamespaceFilter', + 'PlatformNamespaceOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformNamespace', + fieldName: 'platformNamespace', + document, + variables, + transform: (data: { + platformNamespaces?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformNamespace: data.platformNamespaces?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createPlatformNamespace: { + platformNamespace: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'PlatformNamespace', + 'createPlatformNamespace', + 'platformNamespace', + args.select, + args.data, + 'CreatePlatformNamespaceInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformNamespace', + fieldName: 'createPlatformNamespace', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + PlatformNamespacePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updatePlatformNamespace: { + platformNamespace: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'PlatformNamespace', + 'updatePlatformNamespace', + 'platformNamespace', + args.select, + args.where.id, + args.data, + 'UpdatePlatformNamespaceInput', + 'id', + 'platformNamespacePatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformNamespace', + fieldName: 'updatePlatformNamespace', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deletePlatformNamespace: { + platformNamespace: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'PlatformNamespace', + 'deletePlatformNamespace', + 'platformNamespace', + { + id: args.where.id, + }, + 'DeletePlatformNamespaceInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformNamespace', + fieldName: 'deletePlatformNamespace', + document, + variables, + }); + } +} diff --git a/sdk/constructive-cli/src/infra/orm/models/platformNamespaceEvent.ts b/sdk/constructive-cli/src/infra/orm/models/platformNamespaceEvent.ts new file mode 100644 index 0000000000..198afe79ae --- /dev/null +++ b/sdk/constructive-cli/src/infra/orm/models/platformNamespaceEvent.ts @@ -0,0 +1,252 @@ +/** + * PlatformNamespaceEvent model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + PlatformNamespaceEvent, + PlatformNamespaceEventWithRelations, + PlatformNamespaceEventSelect, + PlatformNamespaceEventFilter, + PlatformNamespaceEventOrderBy, + CreatePlatformNamespaceEventInput, + UpdatePlatformNamespaceEventInput, + PlatformNamespaceEventPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class PlatformNamespaceEventModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformNamespaceEvents: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformNamespaceEvent', + 'platformNamespaceEvents', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'PlatformNamespaceEventFilter', + 'PlatformNamespaceEventOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformNamespaceEvent', + fieldName: 'platformNamespaceEvents', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformNamespaceEvent: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'PlatformNamespaceEvent', + 'platformNamespaceEvents', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'PlatformNamespaceEventFilter', + 'PlatformNamespaceEventOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformNamespaceEvent', + fieldName: 'platformNamespaceEvent', + document, + variables, + transform: (data: { + platformNamespaceEvents?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformNamespaceEvent: data.platformNamespaceEvents?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformNamespaceEvent: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformNamespaceEvent', + 'platformNamespaceEvents', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'PlatformNamespaceEventFilter', + 'PlatformNamespaceEventOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformNamespaceEvent', + fieldName: 'platformNamespaceEvent', + document, + variables, + transform: (data: { + platformNamespaceEvents?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformNamespaceEvent: data.platformNamespaceEvents?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createPlatformNamespaceEvent: { + platformNamespaceEvent: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'PlatformNamespaceEvent', + 'createPlatformNamespaceEvent', + 'platformNamespaceEvent', + args.select, + args.data, + 'CreatePlatformNamespaceEventInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformNamespaceEvent', + fieldName: 'createPlatformNamespaceEvent', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + createdAt: string; + }, + PlatformNamespaceEventPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updatePlatformNamespaceEvent: { + platformNamespaceEvent: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'PlatformNamespaceEvent', + 'updatePlatformNamespaceEvent', + 'platformNamespaceEvent', + args.select, + args.where.id, + args.data, + 'UpdatePlatformNamespaceEventInput', + 'id', + 'platformNamespaceEventPatch', + connectionFieldsMap, + { + createdAt: args.where.createdAt, + } + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformNamespaceEvent', + fieldName: 'updatePlatformNamespaceEvent', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + createdAt: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deletePlatformNamespaceEvent: { + platformNamespaceEvent: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'PlatformNamespaceEvent', + 'deletePlatformNamespaceEvent', + 'platformNamespaceEvent', + { + id: args.where.id, + createdAt: args.where.createdAt, + }, + 'DeletePlatformNamespaceEventInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformNamespaceEvent', + fieldName: 'deletePlatformNamespaceEvent', + document, + variables, + }); + } +} diff --git a/sdk/constructive-cli/src/infra/orm/mutation/index.ts b/sdk/constructive-cli/src/infra/orm/mutation/index.ts new file mode 100644 index 0000000000..25e22830fc --- /dev/null +++ b/sdk/constructive-cli/src/infra/orm/mutation/index.ts @@ -0,0 +1,162 @@ +/** + * 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 { + InfraInitEmptyRepoInput, + InfraSetDataAtPathInput, + InfraInsertNodeAtPathInput, + ProvisionBucketInput, + InfraInitEmptyRepoPayload, + InfraSetDataAtPathPayload, + InfraInsertNodeAtPathPayload, + ProvisionBucketPayload, + InfraInitEmptyRepoPayloadSelect, + InfraSetDataAtPathPayloadSelect, + InfraInsertNodeAtPathPayloadSelect, + ProvisionBucketPayloadSelect, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export interface InfraInitEmptyRepoVariables { + input: InfraInitEmptyRepoInput; +} +export interface InfraSetDataAtPathVariables { + input: InfraSetDataAtPathInput; +} +export interface InfraInsertNodeAtPathVariables { + input: InfraInsertNodeAtPathInput; +} +/** + * 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 { + infraInitEmptyRepo: ( + args: InfraInitEmptyRepoVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + infraInitEmptyRepo: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'InfraInitEmptyRepo', + fieldName: 'infraInitEmptyRepo', + ...buildCustomDocument( + 'mutation', + 'InfraInitEmptyRepo', + 'infraInitEmptyRepo', + options.select, + args, + [ + { + name: 'input', + type: 'InfraInitEmptyRepoInput!', + }, + ], + connectionFieldsMap, + 'InfraInitEmptyRepoPayload' + ), + }), + infraSetDataAtPath: ( + args: InfraSetDataAtPathVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + infraSetDataAtPath: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'InfraSetDataAtPath', + fieldName: 'infraSetDataAtPath', + ...buildCustomDocument( + 'mutation', + 'InfraSetDataAtPath', + 'infraSetDataAtPath', + options.select, + args, + [ + { + name: 'input', + type: 'InfraSetDataAtPathInput!', + }, + ], + connectionFieldsMap, + 'InfraSetDataAtPathPayload' + ), + }), + infraInsertNodeAtPath: ( + args: InfraInsertNodeAtPathVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + infraInsertNodeAtPath: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'InfraInsertNodeAtPath', + fieldName: 'infraInsertNodeAtPath', + ...buildCustomDocument( + 'mutation', + 'InfraInsertNodeAtPath', + 'infraInsertNodeAtPath', + options.select, + args, + [ + { + name: 'input', + type: 'InfraInsertNodeAtPathInput!', + }, + ], + connectionFieldsMap, + 'InfraInsertNodeAtPathPayload' + ), + }), + 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/infra/orm/query-builder.ts b/sdk/constructive-cli/src/infra/orm/query-builder.ts new file mode 100644 index 0000000000..fd785bbae6 --- /dev/null +++ b/sdk/constructive-cli/src/infra/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/infra/orm/realtime.ts b/sdk/constructive-cli/src/infra/orm/realtime.ts new file mode 100644 index 0000000000..214eb56203 --- /dev/null +++ b/sdk/constructive-cli/src/infra/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/infra/orm/select-types.ts b/sdk/constructive-cli/src/infra/orm/select-types.ts new file mode 100644 index 0000000000..4b39d7e820 --- /dev/null +++ b/sdk/constructive-cli/src/infra/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/infra/orm/types.ts b/sdk/constructive-cli/src/infra/orm/types.ts new file mode 100644 index 0000000000..7c1120bcdf --- /dev/null +++ b/sdk/constructive-cli/src/infra/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/modules/README.md b/sdk/constructive-cli/src/modules/README.md index 2a6700eff5..b252c2395b 100644 --- a/sdk/constructive-cli/src/modules/README.md +++ b/sdk/constructive-cli/src/modules/README.md @@ -8,7 +8,7 @@ ## Overview -- **Tables:** 61 +- **Tables:** 66 - **Custom queries:** 2 - **Custom mutations:** 10 diff --git a/sdk/constructive-cli/src/modules/cli/README.md b/sdk/constructive-cli/src/modules/cli/README.md index 724073653d..96b640f4c9 100644 --- a/sdk/constructive-cli/src/modules/cli/README.md +++ b/sdk/constructive-cli/src/modules/cli/README.md @@ -28,23 +28,21 @@ csdk auth set-token | `config` | Manage config key-value store (per-context) | | `default-ids-module` | defaultIdsModule CRUD operations | | `membership-types-module` | membershipTypesModule CRUD operations | -| `user-state-module` | userStateModule CRUD operations | | `session-secrets-module` | sessionSecretsModule CRUD operations | -| `config-secrets-org-module` | configSecretsOrgModule CRUD operations | | `devices-module` | devicesModule CRUD operations | | `i-18-n-module` | i18NModule CRUD operations | -| `user-credentials-module` | userCredentialsModule CRUD operations | | `user-settings-module` | userSettingsModule CRUD operations | -| `config-secrets-user-module` | configSecretsUserModule CRUD operations | +| `user-state-module` | userStateModule CRUD operations | +| `user-credentials-module` | userCredentialsModule CRUD operations | | `connected-accounts-module` | connectedAccountsModule CRUD operations | | `emails-module` | emailsModule CRUD operations | | `phone-numbers-module` | phoneNumbersModule CRUD operations | | `rate-limits-module` | rateLimitsModule CRUD operations | | `users-module` | usersModule CRUD operations | | `webauthn-credentials-module` | webauthnCredentialsModule CRUD operations | +| `config-secrets-user-module` | configSecretsUserModule CRUD operations | | `crypto-addresses-module` | cryptoAddressesModule CRUD operations | | `denormalized-table-field` | denormalizedTableField CRUD operations | -| `identity-providers-module` | identityProvidersModule CRUD operations | | `rls-module` | rlsModule CRUD operations | | `blueprint` | blueprint CRUD operations | | `blueprint-template` | blueprintTemplate CRUD operations | @@ -52,40 +50,47 @@ csdk auth set-token | `crypto-auth-module` | cryptoAuthModule CRUD operations | | `sessions-module` | sessionsModule CRUD operations | | `secure-table-provision` | secureTableProvision CRUD operations | -| `database-provision-module` | databaseProvisionModule CRUD operations | -| `config-secrets-module` | configSecretsModule CRUD operations | +| `identity-providers-module` | identityProvidersModule CRUD operations | +| `integration-providers-module` | integrationProvidersModule CRUD operations | +| `db-pool-config` | dbPoolConfig CRUD operations | +| `realtime-module` | realtimeModule CRUD operations | +| `infra-secrets-module` | infraSecretsModule CRUD operations | +| `internal-secrets-module` | internalSecretsModule CRUD operations | +| `db-preset-module` | dbPresetModule CRUD operations | | `graph-module` | graphModule CRUD operations | -| `merkle-store-module` | merkleStoreModule CRUD operations | | `rate-limit-meters-module` | rateLimitMetersModule CRUD operations | -| `realtime-module` | realtimeModule CRUD operations | +| `infra-config-module` | infraConfigModule CRUD operations | | `webauthn-auth-module` | webauthnAuthModule CRUD operations | -| `function-invocation-module` | functionInvocationModule CRUD operations | +| `principal-auth-module` | principalAuthModule CRUD operations | +| `db-pool` | dbPool CRUD operations | | `function-module` | functionModule CRUD operations | +| `merkle-store-module` | merkleStoreModule CRUD operations | +| `database-provision-module` | databaseProvisionModule CRUD operations | +| `function-invocation-module` | functionInvocationModule CRUD operations | | `invites-module` | invitesModule CRUD operations | -| `principal-auth-module` | principalAuthModule CRUD operations | +| `namespace-module` | namespaceModule CRUD operations | +| `plans-module` | plansModule CRUD operations | | `compute-log-module` | computeLogModule CRUD operations | | `inference-log-module` | inferenceLogModule CRUD operations | -| `namespace-module` | namespaceModule CRUD operations | -| `resource-module` | resourceModule CRUD operations | | `storage-log-module` | storageLogModule CRUD operations | | `transfer-log-module` | transferLogModule CRUD operations | -| `function-deployment-module` | functionDeploymentModule CRUD operations | -| `plans-module` | plansModule CRUD operations | | `billing-provider-module` | billingProviderModule CRUD operations | -| `db-usage-module` | dbUsageModule CRUD operations | +| `function-deployment-module` | functionDeploymentModule CRUD operations | +| `permissions-module` | permissionsModule CRUD operations | | `graph-execution-module` | graphExecutionModule CRUD operations | | `hierarchy-module` | hierarchyModule CRUD operations | -| `permissions-module` | permissionsModule CRUD operations | | `notifications-module` | notificationsModule CRUD operations | +| `relation-provision` | relationProvision CRUD operations | | `profiles-module` | profilesModule CRUD operations | | `billing-module` | billingModule CRUD operations | -| `relation-provision` | relationProvision CRUD operations | +| `resource-module` | resourceModule CRUD operations | | `user-auth-module` | userAuthModule CRUD operations | +| `db-usage-module` | dbUsageModule CRUD operations | | `agent-module` | agentModule CRUD operations | | `limits-module` | limitsModule CRUD operations | -| `memberships-module` | membershipsModule CRUD operations | | `entity-type-provision` | entityTypeProvision CRUD operations | | `storage-module` | storageModule CRUD operations | +| `memberships-module` | membershipsModule CRUD operations | | `events-module` | eventsModule 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. | @@ -192,32 +197,6 @@ CRUD operations for MembershipTypesModule records. **Required create fields:** `databaseId` **Optional create fields (backend defaults):** `schemaId`, `tableId`, `tableName` -### `user-state-module` - -CRUD operations for UserStateModule records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all userStateModule records | -| `find-first` | Find first matching userStateModule record | -| `get` | Get a userStateModule by id | -| `create` | Create a new userStateModule | -| `update` | Update an existing userStateModule | -| `delete` | Delete a userStateModule | - -**Fields:** - -| Field | Type | -|-------|------| -| `id` | UUID | -| `databaseId` | UUID | -| `schemaId` | UUID | -| `tableId` | UUID | -| `tableName` | String | - -**Required create fields:** `databaseId` -**Optional create fields (backend defaults):** `schemaId`, `tableId`, `tableName` - ### `session-secrets-module` CRUD operations for SessionSecretsModule records. @@ -245,34 +224,6 @@ CRUD operations for SessionSecretsModule records. **Required create fields:** `databaseId` **Optional create fields (backend defaults):** `schemaId`, `tableId`, `tableName`, `sessionsTableId` -### `config-secrets-org-module` - -CRUD operations for ConfigSecretsOrgModule records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all configSecretsOrgModule records | -| `find-first` | Find first matching configSecretsOrgModule record | -| `get` | Get a configSecretsOrgModule by id | -| `create` | Create a new configSecretsOrgModule | -| `update` | Update an existing configSecretsOrgModule | -| `delete` | Delete a configSecretsOrgModule | - -**Fields:** - -| Field | Type | -|-------|------| -| `id` | UUID | -| `databaseId` | UUID | -| `schemaId` | UUID | -| `tableId` | UUID | -| `tableName` | String | -| `apiName` | String | -| `privateApiName` | String | - -**Required create fields:** `databaseId` -**Optional create fields (backend defaults):** `schemaId`, `tableId`, `tableName`, `apiName`, `privateApiName` - ### `devices-module` CRUD operations for DevicesModule records. @@ -329,18 +280,18 @@ CRUD operations for I18NModule records. **Required create fields:** `databaseId` **Optional create fields (backend defaults):** `schemaId`, `privateSchemaId`, `settingsTableId`, `apiName`, `privateApiName` -### `user-credentials-module` +### `user-settings-module` -CRUD operations for UserCredentialsModule records. +CRUD operations for UserSettingsModule records. | Subcommand | Description | |------------|-------------| -| `list` | List all userCredentialsModule records | -| `find-first` | Find first matching userCredentialsModule record | -| `get` | Get a userCredentialsModule by id | -| `create` | Create a new userCredentialsModule | -| `update` | Update an existing userCredentialsModule | -| `delete` | Delete a userCredentialsModule | +| `list` | List all userSettingsModule records | +| `find-first` | Find first matching userSettingsModule record | +| `get` | Get a userSettingsModule by id | +| `create` | Create a new userSettingsModule | +| `update` | Update an existing userSettingsModule | +| `delete` | Delete a userSettingsModule | **Fields:** @@ -350,25 +301,25 @@ CRUD operations for UserCredentialsModule records. | `databaseId` | UUID | | `schemaId` | UUID | | `tableId` | UUID | +| `ownerTableId` | UUID | | `tableName` | String | | `apiName` | String | -| `privateApiName` | String | **Required create fields:** `databaseId` -**Optional create fields (backend defaults):** `schemaId`, `tableId`, `tableName`, `apiName`, `privateApiName` +**Optional create fields (backend defaults):** `schemaId`, `tableId`, `ownerTableId`, `tableName`, `apiName` -### `user-settings-module` +### `user-state-module` -CRUD operations for UserSettingsModule records. +CRUD operations for UserStateModule records. | Subcommand | Description | |------------|-------------| -| `list` | List all userSettingsModule records | -| `find-first` | Find first matching userSettingsModule record | -| `get` | Get a userSettingsModule by id | -| `create` | Create a new userSettingsModule | -| `update` | Update an existing userSettingsModule | -| `delete` | Delete a userSettingsModule | +| `list` | List all userStateModule records | +| `find-first` | Find first matching userStateModule record | +| `get` | Get a userStateModule by id | +| `create` | Create a new userStateModule | +| `update` | Update an existing userStateModule | +| `delete` | Delete a userStateModule | **Fields:** @@ -376,27 +327,26 @@ CRUD operations for UserSettingsModule records. |-------|------| | `id` | UUID | | `databaseId` | UUID | +| `entityField` | String | | `schemaId` | UUID | | `tableId` | UUID | -| `ownerTableId` | UUID | | `tableName` | String | -| `apiName` | String | **Required create fields:** `databaseId` -**Optional create fields (backend defaults):** `schemaId`, `tableId`, `ownerTableId`, `tableName`, `apiName` +**Optional create fields (backend defaults):** `entityField`, `schemaId`, `tableId`, `tableName` -### `config-secrets-user-module` +### `user-credentials-module` -CRUD operations for ConfigSecretsUserModule records. +CRUD operations for UserCredentialsModule 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 userCredentialsModule records | +| `find-first` | Find first matching userCredentialsModule record | +| `get` | Get a userCredentialsModule by id | +| `create` | Create a new userCredentialsModule | +| `update` | Update an existing userCredentialsModule | +| `delete` | Delete a userCredentialsModule | **Fields:** @@ -404,15 +354,14 @@ CRUD operations for ConfigSecretsUserModule records. |-------|------| | `id` | UUID | | `databaseId` | UUID | +| `entityField` | String | | `schemaId` | UUID | | `tableId` | UUID | | `tableName` | String | -| `configDefinitionsTableId` | UUID | -| `apiName` | String | | `privateApiName` | String | **Required create fields:** `databaseId` -**Optional create fields (backend defaults):** `schemaId`, `tableId`, `tableName`, `configDefinitionsTableId`, `apiName`, `privateApiName` +**Optional create fields (backend defaults):** `entityField`, `schemaId`, `tableId`, `tableName`, `privateApiName` ### `connected-accounts-module` @@ -594,6 +543,35 @@ CRUD operations for WebauthnCredentialsModule records. **Required create fields:** `databaseId` **Optional create fields (backend defaults):** `schemaId`, `privateSchemaId`, `tableId`, `ownerTableId`, `tableName`, `apiName`, `privateApiName` +### `config-secrets-user-module` + +CRUD operations for ConfigSecretsUserModule 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 | + +**Fields:** + +| Field | Type | +|-------|------| +| `id` | UUID | +| `databaseId` | UUID | +| `entityField` | String | +| `schemaId` | UUID | +| `tableId` | UUID | +| `tableName` | String | +| `apiName` | String | +| `privateApiName` | String | + +**Required create fields:** `databaseId` +**Optional create fields (backend defaults):** `entityField`, `schemaId`, `tableId`, `tableName`, `apiName`, `privateApiName` + ### `crypto-addresses-module` CRUD operations for CryptoAddressesModule records. @@ -658,40 +636,6 @@ CRUD operations for DenormalizedTableField records. **Required create fields:** `databaseId`, `tableId`, `fieldId`, `refTableId`, `refFieldId` **Optional create fields (backend defaults):** `setIds`, `refIds`, `useUpdates`, `updateDefaults`, `funcName`, `funcOrder` -### `identity-providers-module` - -CRUD operations for IdentityProvidersModule records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all identityProvidersModule records | -| `find-first` | Find first matching identityProvidersModule record | -| `get` | Get a identityProvidersModule by id | -| `create` | Create a new identityProvidersModule | -| `update` | Update an existing identityProvidersModule | -| `delete` | Delete a identityProvidersModule | - -**Fields:** - -| Field | Type | -|-------|------| -| `id` | UUID | -| `databaseId` | UUID | -| `schemaId` | UUID | -| `privateSchemaId` | UUID | -| `publicSchemaName` | String | -| `privateSchemaName` | String | -| `tableId` | UUID | -| `tableName` | String | -| `apiName` | String | -| `privateApiName` | String | -| `scope` | String | -| `prefix` | String | -| `entityTableId` | UUID | - -**Required create fields:** `databaseId` -**Optional create fields (backend defaults):** `schemaId`, `privateSchemaId`, `publicSchemaName`, `privateSchemaName`, `tableId`, `tableName`, `apiName`, `privateApiName`, `scope`, `prefix`, `entityTableId` - ### `rls-module` CRUD operations for RlsModule records. @@ -931,53 +875,53 @@ CRUD operations for SecureTableProvision records. **Required create fields:** `databaseId` **Optional create fields (backend defaults):** `schemaId`, `tableId`, `tableName`, `nodes`, `useRls`, `fields`, `grants`, `policies`, `outFields` -### `database-provision-module` +### `identity-providers-module` -CRUD operations for DatabaseProvisionModule records. +CRUD operations for IdentityProvidersModule records. | Subcommand | Description | |------------|-------------| -| `list` | List all databaseProvisionModule records | -| `find-first` | Find first matching databaseProvisionModule record | -| `get` | Get a databaseProvisionModule by id | -| `create` | Create a new databaseProvisionModule | -| `update` | Update an existing databaseProvisionModule | -| `delete` | Delete a databaseProvisionModule | +| `list` | List all identityProvidersModule records | +| `find-first` | Find first matching identityProvidersModule record | +| `get` | Get a identityProvidersModule by id | +| `create` | Create a new identityProvidersModule | +| `update` | Update an existing identityProvidersModule | +| `delete` | Delete a identityProvidersModule | **Fields:** | Field | Type | |-------|------| | `id` | UUID | -| `databaseName` | String | -| `ownerId` | UUID | -| `subdomain` | String | -| `domain` | String | -| `modules` | JSON | -| `options` | JSON | -| `bootstrapUser` | Boolean | -| `status` | String | -| `errorMessage` | String | | `databaseId` | UUID | -| `createdAt` | Datetime | -| `updatedAt` | Datetime | -| `completedAt` | Datetime | +| `entityField` | String | +| `schemaId` | UUID | +| `privateSchemaId` | UUID | +| `publicSchemaName` | String | +| `privateSchemaName` | String | +| `tableId` | UUID | +| `tableName` | String | +| `apiName` | String | +| `privateApiName` | String | +| `scope` | String | +| `prefix` | String | +| `entityTableId` | UUID | -**Required create fields:** `databaseName`, `ownerId`, `domain` -**Optional create fields (backend defaults):** `subdomain`, `modules`, `options`, `bootstrapUser`, `status`, `errorMessage`, `databaseId`, `completedAt` +**Required create fields:** `databaseId` +**Optional create fields (backend defaults):** `entityField`, `schemaId`, `privateSchemaId`, `publicSchemaName`, `privateSchemaName`, `tableId`, `tableName`, `apiName`, `privateApiName`, `scope`, `prefix`, `entityTableId` -### `config-secrets-module` +### `integration-providers-module` -CRUD operations for ConfigSecretsModule records. +CRUD operations for IntegrationProvidersModule records. | Subcommand | Description | |------------|-------------| -| `list` | List all configSecretsModule records | -| `find-first` | Find first matching configSecretsModule record | -| `get` | Get a configSecretsModule by id | -| `create` | Create a new configSecretsModule | -| `update` | Update an existing configSecretsModule | -| `delete` | Delete a configSecretsModule | +| `list` | List all integrationProvidersModule records | +| `find-first` | Find first matching integrationProvidersModule record | +| `get` | Get a integrationProvidersModule by id | +| `create` | Create a new integrationProvidersModule | +| `update` | Update an existing integrationProvidersModule | +| `delete` | Delete a integrationProvidersModule | **Fields:** @@ -985,75 +929,137 @@ CRUD operations for ConfigSecretsModule records. |-------|------| | `id` | UUID | | `databaseId` | UUID | +| `entityField` | String | | `schemaId` | UUID | | `privateSchemaId` | UUID | | `publicSchemaName` | String | | `privateSchemaName` | String | | `tableId` | UUID | -| `configDefinitionsTableId` | UUID | | `tableName` | String | | `apiName` | String | | `privateApiName` | String | | `scope` | String | | `prefix` | String | | `entityTableId` | UUID | -| `policies` | JSON | -| `provisions` | JSON | -| `hasConfig` | Boolean | **Required create fields:** `databaseId` -**Optional create fields (backend defaults):** `schemaId`, `privateSchemaId`, `publicSchemaName`, `privateSchemaName`, `tableId`, `configDefinitionsTableId`, `tableName`, `apiName`, `privateApiName`, `scope`, `prefix`, `entityTableId`, `policies`, `provisions`, `hasConfig` +**Optional create fields (backend defaults):** `entityField`, `schemaId`, `privateSchemaId`, `publicSchemaName`, `privateSchemaName`, `tableId`, `tableName`, `apiName`, `privateApiName`, `scope`, `prefix`, `entityTableId` -### `graph-module` +### `db-pool-config` -CRUD operations for GraphModule records. +CRUD operations for DbPoolConfig records. | Subcommand | Description | |------------|-------------| -| `list` | List all graphModule records | -| `find-first` | Find first matching graphModule record | -| `get` | Get a graphModule by id | -| `create` | Create a new graphModule | -| `update` | Update an existing graphModule | -| `delete` | Delete a graphModule | +| `list` | List all dbPoolConfig records | +| `find-first` | Find first matching dbPoolConfig record | +| `get` | Get a dbPoolConfig by id | +| `create` | Create a new dbPoolConfig | +| `update` | Update an existing dbPoolConfig | +| `delete` | Delete a dbPoolConfig | **Fields:** | Field | Type | |-------|------| | `id` | UUID | -| `databaseId` | UUID | -| `publicSchemaId` | UUID | -| `privateSchemaId` | UUID | -| `publicSchemaName` | String | -| `privateSchemaName` | String | -| `scope` | String | -| `prefix` | String | -| `merkleStoreModuleId` | UUID | -| `graphsTableId` | UUID | -| `apiName` | String | -| `privateApiName` | String | +| `presetSlug` | String | +| `domain` | String | +| `poolOwnerId` | UUID | +| `min` | Int | +| `max` | Int | +| `warmTtl` | Interval | +| `enabled` | Boolean | +| `createdAt` | Datetime | +| `updatedAt` | Datetime | + +**Required create fields:** `presetSlug`, `domain`, `poolOwnerId` +**Optional create fields (backend defaults):** `min`, `max`, `warmTtl`, `enabled` + +### `realtime-module` + +CRUD operations for RealtimeModule records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all realtimeModule records | +| `find-first` | Find first matching realtimeModule record | +| `get` | Get a realtimeModule by id | +| `create` | Create a new realtimeModule | +| `update` | Update an existing realtimeModule | +| `delete` | Delete a realtimeModule | + +**Fields:** + +| Field | Type | +|-------|------| +| `id` | UUID | +| `databaseId` | UUID | +| `schemaId` | UUID | +| `privateSchemaId` | UUID | +| `subscriptionsSchemaId` | UUID | +| `changeLogTableId` | UUID | +| `listenerNodeTableId` | UUID | +| `sourceRegistryTableId` | UUID | +| `retentionHours` | Int | +| `premake` | Int | +| `interval` | String | +| `notifyChannel` | String | +| `apiName` | String | +| `privateApiName` | String | + +**Required create fields:** `databaseId` +**Optional create fields (backend defaults):** `schemaId`, `privateSchemaId`, `subscriptionsSchemaId`, `changeLogTableId`, `listenerNodeTableId`, `sourceRegistryTableId`, `retentionHours`, `premake`, `interval`, `notifyChannel`, `apiName`, `privateApiName` + +### `infra-secrets-module` + +CRUD operations for InfraSecretsModule records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all infraSecretsModule records | +| `find-first` | Find first matching infraSecretsModule record | +| `get` | Get a infraSecretsModule by id | +| `create` | Create a new infraSecretsModule | +| `update` | Update an existing infraSecretsModule | +| `delete` | Delete a infraSecretsModule | + +**Fields:** + +| Field | Type | +|-------|------| +| `id` | UUID | +| `databaseId` | UUID | +| `schemaId` | UUID | +| `privateSchemaId` | UUID | +| `publicSchemaName` | String | +| `privateSchemaName` | String | +| `secretsTableId` | UUID | +| `secretsTableName` | String | +| `apiName` | String | +| `privateApiName` | String | +| `scope` | String | +| `prefix` | String | | `entityTableId` | UUID | +| `entityField` | String | | `policies` | JSON | | `provisions` | JSON | -| `defaultPermissions` | String | -| `createdAt` | Datetime | -**Required create fields:** `databaseId`, `merkleStoreModuleId` -**Optional create fields (backend defaults):** `publicSchemaId`, `privateSchemaId`, `publicSchemaName`, `privateSchemaName`, `scope`, `prefix`, `graphsTableId`, `apiName`, `privateApiName`, `entityTableId`, `policies`, `provisions`, `defaultPermissions` +**Required create fields:** `databaseId` +**Optional create fields (backend defaults):** `schemaId`, `privateSchemaId`, `publicSchemaName`, `privateSchemaName`, `secretsTableId`, `secretsTableName`, `apiName`, `privateApiName`, `scope`, `prefix`, `entityTableId`, `entityField`, `policies`, `provisions` -### `merkle-store-module` +### `internal-secrets-module` -CRUD operations for MerkleStoreModule records. +CRUD operations for InternalSecretsModule records. | Subcommand | Description | |------------|-------------| -| `list` | List all merkleStoreModule records | -| `find-first` | Find first matching merkleStoreModule record | -| `get` | Get a merkleStoreModule by id | -| `create` | Create a new merkleStoreModule | -| `update` | Update an existing merkleStoreModule | -| `delete` | Delete a merkleStoreModule | +| `list` | List all internalSecretsModule records | +| `find-first` | Find first matching internalSecretsModule record | +| `get` | Get a internalSecretsModule by id | +| `create` | Create a new internalSecretsModule | +| `update` | Update an existing internalSecretsModule | +| `delete` | Delete a internalSecretsModule | **Fields:** @@ -1065,20 +1071,96 @@ CRUD operations for MerkleStoreModule records. | `privateSchemaId` | UUID | | `publicSchemaName` | String | | `privateSchemaName` | String | -| `objectTableId` | UUID | -| `storeTableId` | UUID | -| `commitTableId` | UUID | -| `refTableId` | UUID | +| `internalSecretsTableId` | UUID | +| `internalSecretsTableName` | String | +| `apiName` | String | +| `privateApiName` | String | +| `scope` | String | +| `prefix` | String | +| `entityTableId` | UUID | +| `entityField` | String | +| `policies` | JSON | +| `provisions` | JSON | + +**Required create fields:** `databaseId` +**Optional create fields (backend defaults):** `schemaId`, `privateSchemaId`, `publicSchemaName`, `privateSchemaName`, `internalSecretsTableId`, `internalSecretsTableName`, `apiName`, `privateApiName`, `scope`, `prefix`, `entityTableId`, `entityField`, `policies`, `provisions` + +### `db-preset-module` + +CRUD operations for DbPresetModule records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all dbPresetModule records | +| `find-first` | Find first matching dbPresetModule record | +| `get` | Get a dbPresetModule by id | +| `create` | Create a new dbPresetModule | +| `update` | Update an existing dbPresetModule | +| `delete` | Delete a dbPresetModule | + +**Fields:** + +| Field | Type | +|-------|------| +| `id` | UUID | +| `databaseId` | UUID | +| `publicSchemaId` | UUID | +| `privateSchemaId` | UUID | +| `publicSchemaName` | String | +| `privateSchemaName` | String | +| `scope` | String | | `prefix` | String | +| `merkleStoreModuleId` | UUID | +| `dbPresetsTableId` | UUID | +| `storeName` | String | | `apiName` | String | | `privateApiName` | String | +| `entityTableId` | UUID | +| `policies` | JSON | +| `provisions` | JSON | +| `createdAt` | Datetime | + +**Required create fields:** `databaseId`, `scope`, `prefix`, `merkleStoreModuleId`, `storeName` +**Optional create fields (backend defaults):** `publicSchemaId`, `privateSchemaId`, `publicSchemaName`, `privateSchemaName`, `dbPresetsTableId`, `apiName`, `privateApiName`, `entityTableId`, `policies`, `provisions` + +### `graph-module` + +CRUD operations for GraphModule records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all graphModule records | +| `find-first` | Find first matching graphModule record | +| `get` | Get a graphModule by id | +| `create` | Create a new graphModule | +| `update` | Update an existing graphModule | +| `delete` | Delete a graphModule | + +**Fields:** + +| Field | Type | +|-------|------| +| `id` | UUID | +| `databaseId` | UUID | +| `entityField` | String | +| `publicSchemaId` | UUID | +| `privateSchemaId` | UUID | +| `publicSchemaName` | String | +| `privateSchemaName` | String | | `scope` | String | -| `functionPrefix` | String | -| `permissionKey` | String | +| `prefix` | String | +| `merkleStoreModuleId` | UUID | +| `graphsTableId` | UUID | +| `apiName` | String | +| `privateApiName` | String | +| `entityTableId` | UUID | +| `policies` | JSON | +| `provisions` | JSON | +| `defaultPermissions` | String | | `createdAt` | Datetime | -**Required create fields:** `databaseId` -**Optional create fields (backend defaults):** `schemaId`, `privateSchemaId`, `publicSchemaName`, `privateSchemaName`, `objectTableId`, `storeTableId`, `commitTableId`, `refTableId`, `prefix`, `apiName`, `privateApiName`, `scope`, `functionPrefix`, `permissionKey` +**Required create fields:** `databaseId`, `merkleStoreModuleId` +**Optional create fields (backend defaults):** `entityField`, `publicSchemaId`, `privateSchemaId`, `publicSchemaName`, `privateSchemaName`, `scope`, `prefix`, `graphsTableId`, `apiName`, `privateApiName`, `entityTableId`, `policies`, `provisions`, `defaultPermissions` ### `rate-limit-meters-module` @@ -1118,18 +1200,18 @@ CRUD operations for RateLimitMetersModule records. **Required create fields:** `databaseId` **Optional create fields (backend defaults):** `schemaId`, `privateSchemaId`, `publicSchemaName`, `privateSchemaName`, `rateLimitStateTableId`, `rateLimitStateTableName`, `rateLimitOverridesTableId`, `rateLimitOverridesTableName`, `rateWindowLimitsTableId`, `rateWindowLimitsTableName`, `checkRateLimitFunction`, `prefix`, `defaultPermissions`, `apiName`, `privateApiName` -### `realtime-module` +### `infra-config-module` -CRUD operations for RealtimeModule records. +CRUD operations for InfraConfigModule records. | Subcommand | Description | |------------|-------------| -| `list` | List all realtimeModule records | -| `find-first` | Find first matching realtimeModule record | -| `get` | Get a realtimeModule by id | -| `create` | Create a new realtimeModule | -| `update` | Update an existing realtimeModule | -| `delete` | Delete a realtimeModule | +| `list` | List all infraConfigModule records | +| `find-first` | Find first matching infraConfigModule record | +| `get` | Get a infraConfigModule by id | +| `create` | Create a new infraConfigModule | +| `update` | Update an existing infraConfigModule | +| `delete` | Delete a infraConfigModule | **Fields:** @@ -1137,21 +1219,23 @@ CRUD operations for RealtimeModule records. |-------|------| | `id` | UUID | | `databaseId` | UUID | +| `entityField` | String | | `schemaId` | UUID | | `privateSchemaId` | UUID | -| `subscriptionsSchemaId` | UUID | -| `changeLogTableId` | UUID | -| `listenerNodeTableId` | UUID | -| `sourceRegistryTableId` | UUID | -| `retentionHours` | Int | -| `premake` | Int | -| `interval` | String | -| `notifyChannel` | String | +| `publicSchemaName` | String | +| `privateSchemaName` | String | +| `configTableId` | UUID | +| `configTableName` | String | | `apiName` | String | | `privateApiName` | String | +| `scope` | String | +| `prefix` | String | +| `entityTableId` | UUID | +| `policies` | JSON | +| `provisions` | JSON | **Required create fields:** `databaseId` -**Optional create fields (backend defaults):** `schemaId`, `privateSchemaId`, `subscriptionsSchemaId`, `changeLogTableId`, `listenerNodeTableId`, `sourceRegistryTableId`, `retentionHours`, `premake`, `interval`, `notifyChannel`, `apiName`, `privateApiName` +**Optional create fields (backend defaults):** `entityField`, `schemaId`, `privateSchemaId`, `publicSchemaName`, `privateSchemaName`, `configTableId`, `configTableName`, `apiName`, `privateApiName`, `scope`, `prefix`, `entityTableId`, `policies`, `provisions` ### `webauthn-auth-module` @@ -1190,18 +1274,18 @@ CRUD operations for WebauthnAuthModule records. **Required create fields:** `databaseId` **Optional create fields (backend defaults):** `schemaId`, `usersTableId`, `credentialsTableId`, `sessionsTableId`, `sessionCredentialsTableId`, `sessionSecretsTableId`, `authSettingsTableId`, `rpId`, `rpName`, `originAllowlist`, `attestationType`, `requireUserVerification`, `residentKey`, `challengeExpiry` -### `function-invocation-module` +### `principal-auth-module` -CRUD operations for FunctionInvocationModule records. +CRUD operations for PrincipalAuthModule records. | Subcommand | Description | |------------|-------------| -| `list` | List all functionInvocationModule records | -| `find-first` | Find first matching functionInvocationModule record | -| `get` | Get a functionInvocationModule by id | -| `create` | Create a new functionInvocationModule | -| `update` | Update an existing functionInvocationModule | -| `delete` | Delete a functionInvocationModule | +| `list` | List all principalAuthModule records | +| `find-first` | Find first matching principalAuthModule record | +| `get` | Get a principalAuthModule by id | +| `create` | Create a new principalAuthModule | +| `update` | Update an existing principalAuthModule | +| `delete` | Delete a principalAuthModule | **Fields:** @@ -1210,24 +1294,58 @@ CRUD operations for FunctionInvocationModule records. | `id` | UUID | | `databaseId` | UUID | | `schemaId` | UUID | -| `privateSchemaId` | UUID | -| `publicSchemaName` | String | -| `privateSchemaName` | String | -| `invocationsTableId` | UUID | -| `executionLogsTableId` | UUID | -| `invocationsTableName` | String | -| `executionLogsTableName` | String | +| `principalsTableId` | UUID | +| `principalEntitiesTableId` | UUID | +| `principalScopeOverridesTableId` | UUID | +| `usersTableId` | UUID | +| `sessionsTableId` | UUID | +| `sessionCredentialsTableId` | UUID | +| `auditsTableId` | UUID | +| `principalsTableName` | String | +| `createPrincipalFunction` | String | +| `deletePrincipalFunction` | String | +| `createOrgPrincipalFunction` | String | +| `deleteOrgPrincipalFunction` | String | +| `createOrgApiKeyFunction` | String | +| `revokeOrgApiKeyFunction` | String | | `apiName` | String | -| `privateApiName` | String | -| `scope` | String | -| `prefix` | String | -| `entityTableId` | UUID | -| `policies` | JSON | -| `provisions` | JSON | -| `defaultPermissions` | String | **Required create fields:** `databaseId` -**Optional create fields (backend defaults):** `schemaId`, `privateSchemaId`, `publicSchemaName`, `privateSchemaName`, `invocationsTableId`, `executionLogsTableId`, `invocationsTableName`, `executionLogsTableName`, `apiName`, `privateApiName`, `scope`, `prefix`, `entityTableId`, `policies`, `provisions`, `defaultPermissions` +**Optional create fields (backend defaults):** `schemaId`, `principalsTableId`, `principalEntitiesTableId`, `principalScopeOverridesTableId`, `usersTableId`, `sessionsTableId`, `sessionCredentialsTableId`, `auditsTableId`, `principalsTableName`, `createPrincipalFunction`, `deletePrincipalFunction`, `createOrgPrincipalFunction`, `deleteOrgPrincipalFunction`, `createOrgApiKeyFunction`, `revokeOrgApiKeyFunction`, `apiName` + +### `db-pool` + +CRUD operations for DbPool records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all dbPool records | +| `find-first` | Find first matching dbPool record | +| `get` | Get a dbPool by id | +| `create` | Create a new dbPool | +| `update` | Update an existing dbPool | +| `delete` | Delete a dbPool | + +**Fields:** + +| Field | Type | +|-------|------| +| `id` | UUID | +| `presetSlug` | String | +| `presetCommitId` | UUID | +| `databaseId` | UUID | +| `status` | String | +| `errorMessage` | String | +| `expiresAt` | Datetime | +| `claimedBy` | UUID | +| `claimedAt` | Datetime | +| `bootstrapStatus` | String | +| `bootstrapError` | String | +| `createdAt` | Datetime | +| `updatedAt` | Datetime | + +**Required create fields:** `presetSlug` +**Optional create fields (backend defaults):** `presetCommitId`, `databaseId`, `status`, `errorMessage`, `expiresAt`, `claimedBy`, `claimedAt`, `bootstrapStatus`, `bootstrapError` ### `function-module` @@ -1248,14 +1366,13 @@ CRUD operations for FunctionModule records. |-------|------| | `id` | UUID | | `databaseId` | UUID | +| `entityField` | String | | `schemaId` | UUID | | `privateSchemaId` | UUID | | `publicSchemaName` | String | | `privateSchemaName` | String | | `definitionsTableId` | UUID | -| `secretDefinitionsTableId` | UUID | | `definitionsTableName` | String | -| `secretDefinitionsTableName` | String | | `apiName` | String | | `privateApiName` | String | | `scope` | String | @@ -1266,20 +1383,20 @@ CRUD operations for FunctionModule records. | `defaultPermissions` | String | **Required create fields:** `databaseId` -**Optional create fields (backend defaults):** `schemaId`, `privateSchemaId`, `publicSchemaName`, `privateSchemaName`, `definitionsTableId`, `secretDefinitionsTableId`, `definitionsTableName`, `secretDefinitionsTableName`, `apiName`, `privateApiName`, `scope`, `prefix`, `entityTableId`, `policies`, `provisions`, `defaultPermissions` +**Optional create fields (backend defaults):** `entityField`, `schemaId`, `privateSchemaId`, `publicSchemaName`, `privateSchemaName`, `definitionsTableId`, `definitionsTableName`, `apiName`, `privateApiName`, `scope`, `prefix`, `entityTableId`, `policies`, `provisions`, `defaultPermissions` -### `invites-module` +### `merkle-store-module` -CRUD operations for InvitesModule records. +CRUD operations for MerkleStoreModule records. | Subcommand | Description | |------------|-------------| -| `list` | List all invitesModule records | -| `find-first` | Find first matching invitesModule record | -| `get` | Get a invitesModule by id | -| `create` | Create a new invitesModule | -| `update` | Update an existing invitesModule | -| `delete` | Delete a invitesModule | +| `list` | List all merkleStoreModule records | +| `find-first` | Find first matching merkleStoreModule record | +| `get` | Get a merkleStoreModule by id | +| `create` | Create a new merkleStoreModule | +| `update` | Update an existing merkleStoreModule | +| `delete` | Delete a merkleStoreModule | **Fields:** @@ -1287,77 +1404,77 @@ CRUD operations for InvitesModule records. |-------|------| | `id` | UUID | | `databaseId` | UUID | +| `entityField` | String | | `schemaId` | UUID | | `privateSchemaId` | UUID | | `publicSchemaName` | String | | `privateSchemaName` | String | -| `emailsTableId` | UUID | -| `usersTableId` | UUID | -| `invitesTableId` | UUID | -| `claimedInvitesTableId` | UUID | -| `invitesTableName` | String | -| `claimedInvitesTableName` | String | -| `submitInviteCodeFunction` | String | -| `scope` | String | +| `objectTableId` | UUID | +| `storeTableId` | UUID | +| `commitTableId` | UUID | +| `refTableId` | UUID | | `prefix` | String | -| `entityTableId` | UUID | | `apiName` | String | | `privateApiName` | String | +| `scope` | String | +| `functionPrefix` | String | +| `permissionKey` | String | +| `createdAt` | Datetime | **Required create fields:** `databaseId` -**Optional create fields (backend defaults):** `schemaId`, `privateSchemaId`, `publicSchemaName`, `privateSchemaName`, `emailsTableId`, `usersTableId`, `invitesTableId`, `claimedInvitesTableId`, `invitesTableName`, `claimedInvitesTableName`, `submitInviteCodeFunction`, `scope`, `prefix`, `entityTableId`, `apiName`, `privateApiName` +**Optional create fields (backend defaults):** `entityField`, `schemaId`, `privateSchemaId`, `publicSchemaName`, `privateSchemaName`, `objectTableId`, `storeTableId`, `commitTableId`, `refTableId`, `prefix`, `apiName`, `privateApiName`, `scope`, `functionPrefix`, `permissionKey` -### `principal-auth-module` +### `database-provision-module` -CRUD operations for PrincipalAuthModule records. +CRUD operations for DatabaseProvisionModule records. | Subcommand | Description | |------------|-------------| -| `list` | List all principalAuthModule records | -| `find-first` | Find first matching principalAuthModule record | -| `get` | Get a principalAuthModule by id | -| `create` | Create a new principalAuthModule | -| `update` | Update an existing principalAuthModule | -| `delete` | Delete a principalAuthModule | +| `list` | List all databaseProvisionModule records | +| `find-first` | Find first matching databaseProvisionModule record | +| `get` | Get a databaseProvisionModule by id | +| `create` | Create a new databaseProvisionModule | +| `update` | Update an existing databaseProvisionModule | +| `delete` | Delete a databaseProvisionModule | **Fields:** | Field | Type | |-------|------| | `id` | UUID | +| `databaseName` | String | +| `ownerId` | UUID | +| `subdomain` | String | +| `domain` | String | +| `modules` | JSON | +| `options` | JSON | +| `bootstrapUser` | Boolean | +| `status` | String | +| `errorMessage` | String | +| `sourceDatabaseId` | UUID | +| `bootstrapStatus` | String | +| `bootstrapError` | String | | `databaseId` | UUID | -| `schemaId` | UUID | -| `principalsTableId` | UUID | -| `principalEntitiesTableId` | UUID | -| `principalScopeOverridesTableId` | UUID | -| `usersTableId` | UUID | -| `sessionsTableId` | UUID | -| `sessionCredentialsTableId` | UUID | -| `auditsTableId` | UUID | -| `principalsTableName` | String | -| `createPrincipalFunction` | String | -| `deletePrincipalFunction` | String | -| `createOrgPrincipalFunction` | String | -| `deleteOrgPrincipalFunction` | String | -| `createOrgApiKeyFunction` | String | -| `revokeOrgApiKeyFunction` | String | -| `apiName` | String | +| `createdAt` | Datetime | +| `updatedAt` | Datetime | +| `completedAt` | Datetime | +| `fulfilledAt` | Datetime | -**Required create fields:** `databaseId` -**Optional create fields (backend defaults):** `schemaId`, `principalsTableId`, `principalEntitiesTableId`, `principalScopeOverridesTableId`, `usersTableId`, `sessionsTableId`, `sessionCredentialsTableId`, `auditsTableId`, `principalsTableName`, `createPrincipalFunction`, `deletePrincipalFunction`, `createOrgPrincipalFunction`, `deleteOrgPrincipalFunction`, `createOrgApiKeyFunction`, `revokeOrgApiKeyFunction`, `apiName` +**Required create fields:** `databaseName`, `ownerId`, `domain` +**Optional create fields (backend defaults):** `subdomain`, `modules`, `options`, `bootstrapUser`, `status`, `errorMessage`, `sourceDatabaseId`, `bootstrapStatus`, `bootstrapError`, `databaseId`, `completedAt`, `fulfilledAt` -### `compute-log-module` +### `function-invocation-module` -CRUD operations for ComputeLogModule records. +CRUD operations for FunctionInvocationModule records. | Subcommand | Description | |------------|-------------| -| `list` | List all computeLogModule records | -| `find-first` | Find first matching computeLogModule record | -| `get` | Get a computeLogModule by id | -| `create` | Create a new computeLogModule | -| `update` | Update an existing computeLogModule | -| `delete` | Delete a computeLogModule | +| `list` | List all functionInvocationModule records | +| `find-first` | Find first matching functionInvocationModule record | +| `get` | Get a functionInvocationModule by id | +| `create` | Create a new functionInvocationModule | +| `update` | Update an existing functionInvocationModule | +| `delete` | Delete a functionInvocationModule | **Fields:** @@ -1365,39 +1482,39 @@ CRUD operations for ComputeLogModule records. |-------|------| | `id` | UUID | | `databaseId` | UUID | +| `entityField` | String | | `schemaId` | UUID | | `privateSchemaId` | UUID | | `publicSchemaName` | String | | `privateSchemaName` | String | -| `computeLogTableId` | UUID | -| `computeLogTableName` | String | -| `usageDailyTableId` | UUID | -| `usageDailyTableName` | String | -| `interval` | String | -| `retention` | String | -| `premake` | Int | -| `scope` | String | -| `actorFkTableId` | UUID | -| `entityFkTableId` | UUID | -| `prefix` | String | +| `invocationsTableId` | UUID | +| `executionLogsTableId` | UUID | +| `invocationsTableName` | String | +| `executionLogsTableName` | String | | `apiName` | String | | `privateApiName` | String | +| `scope` | String | +| `prefix` | String | +| `entityTableId` | UUID | +| `policies` | JSON | +| `provisions` | JSON | +| `defaultPermissions` | String | **Required create fields:** `databaseId` -**Optional create fields (backend defaults):** `schemaId`, `privateSchemaId`, `publicSchemaName`, `privateSchemaName`, `computeLogTableId`, `computeLogTableName`, `usageDailyTableId`, `usageDailyTableName`, `interval`, `retention`, `premake`, `scope`, `actorFkTableId`, `entityFkTableId`, `prefix`, `apiName`, `privateApiName` +**Optional create fields (backend defaults):** `entityField`, `schemaId`, `privateSchemaId`, `publicSchemaName`, `privateSchemaName`, `invocationsTableId`, `executionLogsTableId`, `invocationsTableName`, `executionLogsTableName`, `apiName`, `privateApiName`, `scope`, `prefix`, `entityTableId`, `policies`, `provisions`, `defaultPermissions` -### `inference-log-module` +### `invites-module` -CRUD operations for InferenceLogModule records. +CRUD operations for InvitesModule records. | Subcommand | Description | |------------|-------------| -| `list` | List all inferenceLogModule records | -| `find-first` | Find first matching inferenceLogModule record | -| `get` | Get a inferenceLogModule by id | -| `create` | Create a new inferenceLogModule | -| `update` | Update an existing inferenceLogModule | -| `delete` | Delete a inferenceLogModule | +| `list` | List all invitesModule records | +| `find-first` | Find first matching invitesModule record | +| `get` | Get a invitesModule by id | +| `create` | Create a new invitesModule | +| `update` | Update an existing invitesModule | +| `delete` | Delete a invitesModule | **Fields:** @@ -1405,26 +1522,26 @@ CRUD operations for InferenceLogModule records. |-------|------| | `id` | UUID | | `databaseId` | UUID | +| `entityField` | String | | `schemaId` | UUID | | `privateSchemaId` | UUID | | `publicSchemaName` | String | | `privateSchemaName` | String | -| `inferenceLogTableId` | UUID | -| `inferenceLogTableName` | String | -| `usageDailyTableId` | UUID | -| `usageDailyTableName` | String | -| `interval` | String | -| `retention` | String | -| `premake` | Int | +| `emailsTableId` | UUID | +| `usersTableId` | UUID | +| `invitesTableId` | UUID | +| `claimedInvitesTableId` | UUID | +| `invitesTableName` | String | +| `claimedInvitesTableName` | String | +| `submitInviteCodeFunction` | String | | `scope` | String | -| `actorFkTableId` | UUID | -| `entityFkTableId` | UUID | | `prefix` | String | +| `entityTableId` | UUID | | `apiName` | String | | `privateApiName` | String | **Required create fields:** `databaseId` -**Optional create fields (backend defaults):** `schemaId`, `privateSchemaId`, `publicSchemaName`, `privateSchemaName`, `inferenceLogTableId`, `inferenceLogTableName`, `usageDailyTableId`, `usageDailyTableName`, `interval`, `retention`, `premake`, `scope`, `actorFkTableId`, `entityFkTableId`, `prefix`, `apiName`, `privateApiName` +**Optional create fields (backend defaults):** `entityField`, `schemaId`, `privateSchemaId`, `publicSchemaName`, `privateSchemaName`, `emailsTableId`, `usersTableId`, `invitesTableId`, `claimedInvitesTableId`, `invitesTableName`, `claimedInvitesTableName`, `submitInviteCodeFunction`, `scope`, `prefix`, `entityTableId`, `apiName`, `privateApiName` ### `namespace-module` @@ -1445,6 +1562,7 @@ CRUD operations for NamespaceModule records. |-------|------| | `id` | UUID | | `databaseId` | UUID | +| `entityField` | String | | `schemaId` | UUID | | `privateSchemaId` | UUID | | `publicSchemaName` | String | @@ -1458,26 +1576,25 @@ CRUD operations for NamespaceModule records. | `scope` | String | | `prefix` | String | | `entityTableId` | UUID | -| `platformNamespacesTableId` | UUID | | `policies` | JSON | | `provisions` | JSON | | `defaultPermissions` | String | **Required create fields:** `databaseId` -**Optional create fields (backend defaults):** `schemaId`, `privateSchemaId`, `publicSchemaName`, `privateSchemaName`, `namespacesTableId`, `namespaceEventsTableId`, `namespacesTableName`, `namespaceEventsTableName`, `apiName`, `privateApiName`, `scope`, `prefix`, `entityTableId`, `platformNamespacesTableId`, `policies`, `provisions`, `defaultPermissions` +**Optional create fields (backend defaults):** `entityField`, `schemaId`, `privateSchemaId`, `publicSchemaName`, `privateSchemaName`, `namespacesTableId`, `namespaceEventsTableId`, `namespacesTableName`, `namespaceEventsTableName`, `apiName`, `privateApiName`, `scope`, `prefix`, `entityTableId`, `policies`, `provisions`, `defaultPermissions` -### `resource-module` +### `plans-module` -CRUD operations for ResourceModule records. +CRUD operations for PlansModule records. | Subcommand | Description | |------------|-------------| -| `list` | List all resourceModule records | -| `find-first` | Find first matching resourceModule record | -| `get` | Get a resourceModule by id | -| `create` | Create a new resourceModule | -| `update` | Update an existing resourceModule | -| `delete` | Delete a resourceModule | +| `list` | List all plansModule records | +| `find-first` | Find first matching plansModule record | +| `get` | Get a plansModule by id | +| `create` | Create a new plansModule | +| `update` | Update an existing plansModule | +| `delete` | Delete a plansModule | **Fields:** @@ -1489,35 +1606,37 @@ CRUD operations for ResourceModule records. | `privateSchemaId` | UUID | | `publicSchemaName` | String | | `privateSchemaName` | String | -| `resourcesTableId` | UUID | -| `resourceEventsTableId` | UUID | -| `resourcesTableName` | String | -| `resourceEventsTableName` | String | +| `plansTableId` | UUID | +| `plansTableName` | String | +| `planLimitsTableId` | UUID | +| `planLimitsTableName` | String | +| `planPricingTableId` | UUID | +| `planOverridesTableId` | UUID | +| `planMeterLimitsTableId` | UUID | +| `planCapsTableId` | UUID | +| `applyPlanFunction` | String | +| `applyPlanAggregateFunction` | String | +| `applyBillingPlanFunction` | String | +| `applyPlanCapsFunction` | String | +| `prefix` | String | | `apiName` | String | | `privateApiName` | String | -| `scope` | String | -| `prefix` | String | -| `entityTableId` | UUID | -| `namespaceModuleId` | UUID | -| `policies` | JSON | -| `provisions` | JSON | -| `defaultPermissions` | String | **Required create fields:** `databaseId` -**Optional create fields (backend defaults):** `schemaId`, `privateSchemaId`, `publicSchemaName`, `privateSchemaName`, `resourcesTableId`, `resourceEventsTableId`, `resourcesTableName`, `resourceEventsTableName`, `apiName`, `privateApiName`, `scope`, `prefix`, `entityTableId`, `namespaceModuleId`, `policies`, `provisions`, `defaultPermissions` +**Optional create fields (backend defaults):** `schemaId`, `privateSchemaId`, `publicSchemaName`, `privateSchemaName`, `plansTableId`, `plansTableName`, `planLimitsTableId`, `planLimitsTableName`, `planPricingTableId`, `planOverridesTableId`, `planMeterLimitsTableId`, `planCapsTableId`, `applyPlanFunction`, `applyPlanAggregateFunction`, `applyBillingPlanFunction`, `applyPlanCapsFunction`, `prefix`, `apiName`, `privateApiName` -### `storage-log-module` +### `compute-log-module` -CRUD operations for StorageLogModule records. +CRUD operations for ComputeLogModule records. | Subcommand | Description | |------------|-------------| -| `list` | List all storageLogModule records | -| `find-first` | Find first matching storageLogModule record | -| `get` | Get a storageLogModule by id | -| `create` | Create a new storageLogModule | -| `update` | Update an existing storageLogModule | -| `delete` | Delete a storageLogModule | +| `list` | List all computeLogModule records | +| `find-first` | Find first matching computeLogModule record | +| `get` | Get a computeLogModule by id | +| `create` | Create a new computeLogModule | +| `update` | Update an existing computeLogModule | +| `delete` | Delete a computeLogModule | **Fields:** @@ -1525,12 +1644,13 @@ CRUD operations for StorageLogModule records. |-------|------| | `id` | UUID | | `databaseId` | UUID | +| `entityField` | String | | `schemaId` | UUID | | `privateSchemaId` | UUID | | `publicSchemaName` | String | | `privateSchemaName` | String | -| `storageLogTableId` | UUID | -| `storageLogTableName` | String | +| `computeLogTableId` | UUID | +| `computeLogTableName` | String | | `usageDailyTableId` | UUID | | `usageDailyTableName` | String | | `interval` | String | @@ -1544,20 +1664,20 @@ CRUD operations for StorageLogModule records. | `privateApiName` | String | **Required create fields:** `databaseId` -**Optional create fields (backend defaults):** `schemaId`, `privateSchemaId`, `publicSchemaName`, `privateSchemaName`, `storageLogTableId`, `storageLogTableName`, `usageDailyTableId`, `usageDailyTableName`, `interval`, `retention`, `premake`, `scope`, `actorFkTableId`, `entityFkTableId`, `prefix`, `apiName`, `privateApiName` +**Optional create fields (backend defaults):** `entityField`, `schemaId`, `privateSchemaId`, `publicSchemaName`, `privateSchemaName`, `computeLogTableId`, `computeLogTableName`, `usageDailyTableId`, `usageDailyTableName`, `interval`, `retention`, `premake`, `scope`, `actorFkTableId`, `entityFkTableId`, `prefix`, `apiName`, `privateApiName` -### `transfer-log-module` +### `inference-log-module` -CRUD operations for TransferLogModule records. +CRUD operations for InferenceLogModule records. | Subcommand | Description | |------------|-------------| -| `list` | List all transferLogModule records | -| `find-first` | Find first matching transferLogModule record | -| `get` | Get a transferLogModule by id | -| `create` | Create a new transferLogModule | -| `update` | Update an existing transferLogModule | -| `delete` | Delete a transferLogModule | +| `list` | List all inferenceLogModule records | +| `find-first` | Find first matching inferenceLogModule record | +| `get` | Get a inferenceLogModule by id | +| `create` | Create a new inferenceLogModule | +| `update` | Update an existing inferenceLogModule | +| `delete` | Delete a inferenceLogModule | **Fields:** @@ -1565,12 +1685,13 @@ CRUD operations for TransferLogModule records. |-------|------| | `id` | UUID | | `databaseId` | UUID | +| `entityField` | String | | `schemaId` | UUID | | `privateSchemaId` | UUID | | `publicSchemaName` | String | | `privateSchemaName` | String | -| `transferLogTableId` | UUID | -| `transferLogTableName` | String | +| `inferenceLogTableId` | UUID | +| `inferenceLogTableName` | String | | `usageDailyTableId` | UUID | | `usageDailyTableName` | String | | `interval` | String | @@ -1584,20 +1705,20 @@ CRUD operations for TransferLogModule records. | `privateApiName` | String | **Required create fields:** `databaseId` -**Optional create fields (backend defaults):** `schemaId`, `privateSchemaId`, `publicSchemaName`, `privateSchemaName`, `transferLogTableId`, `transferLogTableName`, `usageDailyTableId`, `usageDailyTableName`, `interval`, `retention`, `premake`, `scope`, `actorFkTableId`, `entityFkTableId`, `prefix`, `apiName`, `privateApiName` +**Optional create fields (backend defaults):** `entityField`, `schemaId`, `privateSchemaId`, `publicSchemaName`, `privateSchemaName`, `inferenceLogTableId`, `inferenceLogTableName`, `usageDailyTableId`, `usageDailyTableName`, `interval`, `retention`, `premake`, `scope`, `actorFkTableId`, `entityFkTableId`, `prefix`, `apiName`, `privateApiName` -### `function-deployment-module` +### `storage-log-module` -CRUD operations for FunctionDeploymentModule records. +CRUD operations for StorageLogModule records. | Subcommand | Description | |------------|-------------| -| `list` | List all functionDeploymentModule records | -| `find-first` | Find first matching functionDeploymentModule record | -| `get` | Get a functionDeploymentModule by id | -| `create` | Create a new functionDeploymentModule | -| `update` | Update an existing functionDeploymentModule | -| `delete` | Delete a functionDeploymentModule | +| `list` | List all storageLogModule records | +| `find-first` | Find first matching storageLogModule record | +| `get` | Get a storageLogModule by id | +| `create` | Create a new storageLogModule | +| `update` | Update an existing storageLogModule | +| `delete` | Delete a storageLogModule | **Fields:** @@ -1605,40 +1726,40 @@ CRUD operations for FunctionDeploymentModule records. |-------|------| | `id` | UUID | | `databaseId` | UUID | +| `entityField` | String | | `schemaId` | UUID | | `privateSchemaId` | UUID | | `publicSchemaName` | String | | `privateSchemaName` | String | -| `deploymentsTableId` | UUID | -| `deploymentEventsTableId` | UUID | -| `deploymentsTableName` | String | -| `deploymentEventsTableName` | String | -| `apiName` | String | -| `privateApiName` | String | +| `storageLogTableId` | UUID | +| `storageLogTableName` | String | +| `usageDailyTableId` | UUID | +| `usageDailyTableName` | String | +| `interval` | String | +| `retention` | String | +| `premake` | Int | | `scope` | String | +| `actorFkTableId` | UUID | +| `entityFkTableId` | UUID | | `prefix` | String | -| `entityTableId` | UUID | -| `functionModuleId` | UUID | -| `namespaceModuleId` | UUID | -| `policies` | JSON | -| `provisions` | JSON | -| `defaultPermissions` | String | +| `apiName` | String | +| `privateApiName` | String | **Required create fields:** `databaseId` -**Optional create fields (backend defaults):** `schemaId`, `privateSchemaId`, `publicSchemaName`, `privateSchemaName`, `deploymentsTableId`, `deploymentEventsTableId`, `deploymentsTableName`, `deploymentEventsTableName`, `apiName`, `privateApiName`, `scope`, `prefix`, `entityTableId`, `functionModuleId`, `namespaceModuleId`, `policies`, `provisions`, `defaultPermissions` +**Optional create fields (backend defaults):** `entityField`, `schemaId`, `privateSchemaId`, `publicSchemaName`, `privateSchemaName`, `storageLogTableId`, `storageLogTableName`, `usageDailyTableId`, `usageDailyTableName`, `interval`, `retention`, `premake`, `scope`, `actorFkTableId`, `entityFkTableId`, `prefix`, `apiName`, `privateApiName` -### `plans-module` +### `transfer-log-module` -CRUD operations for PlansModule records. +CRUD operations for TransferLogModule records. | Subcommand | Description | |------------|-------------| -| `list` | List all plansModule records | -| `find-first` | Find first matching plansModule record | -| `get` | Get a plansModule by id | -| `create` | Create a new plansModule | -| `update` | Update an existing plansModule | -| `delete` | Delete a plansModule | +| `list` | List all transferLogModule records | +| `find-first` | Find first matching transferLogModule record | +| `get` | Get a transferLogModule by id | +| `create` | Create a new transferLogModule | +| `update` | Update an existing transferLogModule | +| `delete` | Delete a transferLogModule | **Fields:** @@ -1646,28 +1767,27 @@ CRUD operations for PlansModule records. |-------|------| | `id` | UUID | | `databaseId` | UUID | +| `entityField` | String | | `schemaId` | UUID | | `privateSchemaId` | UUID | | `publicSchemaName` | String | | `privateSchemaName` | String | -| `plansTableId` | UUID | -| `plansTableName` | String | -| `planLimitsTableId` | UUID | -| `planLimitsTableName` | String | -| `planPricingTableId` | UUID | -| `planOverridesTableId` | UUID | -| `planMeterLimitsTableId` | UUID | -| `planCapsTableId` | UUID | -| `applyPlanFunction` | String | -| `applyPlanAggregateFunction` | String | -| `applyBillingPlanFunction` | String | -| `applyPlanCapsFunction` | String | +| `transferLogTableId` | UUID | +| `transferLogTableName` | String | +| `usageDailyTableId` | UUID | +| `usageDailyTableName` | String | +| `interval` | String | +| `retention` | String | +| `premake` | Int | +| `scope` | String | +| `actorFkTableId` | UUID | +| `entityFkTableId` | UUID | | `prefix` | String | | `apiName` | String | | `privateApiName` | String | **Required create fields:** `databaseId` -**Optional create fields (backend defaults):** `schemaId`, `privateSchemaId`, `publicSchemaName`, `privateSchemaName`, `plansTableId`, `plansTableName`, `planLimitsTableId`, `planLimitsTableName`, `planPricingTableId`, `planOverridesTableId`, `planMeterLimitsTableId`, `planCapsTableId`, `applyPlanFunction`, `applyPlanAggregateFunction`, `applyBillingPlanFunction`, `applyPlanCapsFunction`, `prefix`, `apiName`, `privateApiName` +**Optional create fields (backend defaults):** `entityField`, `schemaId`, `privateSchemaId`, `publicSchemaName`, `privateSchemaName`, `transferLogTableId`, `transferLogTableName`, `usageDailyTableId`, `usageDailyTableName`, `interval`, `retention`, `premake`, `scope`, `actorFkTableId`, `entityFkTableId`, `prefix`, `apiName`, `privateApiName` ### `billing-provider-module` @@ -1712,18 +1832,18 @@ CRUD operations for BillingProviderModule records. **Required create fields:** `databaseId` **Optional create fields (backend defaults):** `schemaId`, `privateSchemaId`, `provider`, `productsTableId`, `pricesTableId`, `subscriptionsTableId`, `billingCustomersTableId`, `billingCustomersTableName`, `billingProductsTableId`, `billingProductsTableName`, `billingPricesTableId`, `billingPricesTableName`, `billingSubscriptionsTableId`, `billingSubscriptionsTableName`, `billingWebhookEventsTableId`, `billingWebhookEventsTableName`, `processBillingEventFunction`, `prefix`, `apiName`, `privateApiName` -### `db-usage-module` +### `function-deployment-module` -CRUD operations for DbUsageModule records. +CRUD operations for FunctionDeploymentModule records. | Subcommand | Description | |------------|-------------| -| `list` | List all dbUsageModule records | -| `find-first` | Find first matching dbUsageModule record | -| `get` | Get a dbUsageModule by id | -| `create` | Create a new dbUsageModule | -| `update` | Update an existing dbUsageModule | -| `delete` | Delete a dbUsageModule | +| `list` | List all functionDeploymentModule records | +| `find-first` | Find first matching functionDeploymentModule record | +| `get` | Get a functionDeploymentModule by id | +| `create` | Create a new functionDeploymentModule | +| `update` | Update an existing functionDeploymentModule | +| `delete` | Delete a functionDeploymentModule | **Fields:** @@ -1731,29 +1851,71 @@ CRUD operations for DbUsageModule records. |-------|------| | `id` | UUID | | `databaseId` | UUID | +| `entityField` | String | | `schemaId` | UUID | | `privateSchemaId` | UUID | | `publicSchemaName` | String | | `privateSchemaName` | String | -| `tableStatsLogTableId` | UUID | -| `tableStatsLogTableName` | String | -| `tableStatsDailyTableId` | UUID | -| `tableStatsDailyTableName` | String | -| `queryStatsLogTableId` | UUID | -| `queryStatsLogTableName` | String | -| `queryStatsDailyTableId` | UUID | -| `queryStatsDailyTableName` | String | -| `interval` | String | -| `retention` | String | -| `premake` | Int | +| `deploymentsTableId` | UUID | +| `deploymentEventsTableId` | UUID | +| `deploymentsTableName` | String | +| `deploymentEventsTableName` | String | +| `apiName` | String | +| `privateApiName` | String | | `scope` | String | | `prefix` | String | +| `entityTableId` | UUID | +| `functionModuleId` | UUID | +| `namespaceModuleId` | UUID | +| `policies` | JSON | +| `provisions` | JSON | | `defaultPermissions` | String | + +**Required create fields:** `databaseId` +**Optional create fields (backend defaults):** `entityField`, `schemaId`, `privateSchemaId`, `publicSchemaName`, `privateSchemaName`, `deploymentsTableId`, `deploymentEventsTableId`, `deploymentsTableName`, `deploymentEventsTableName`, `apiName`, `privateApiName`, `scope`, `prefix`, `entityTableId`, `functionModuleId`, `namespaceModuleId`, `policies`, `provisions`, `defaultPermissions` + +### `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 | +|-------|------| +| `id` | UUID | +| `databaseId` | UUID | +| `entityField` | String | +| `schemaId` | UUID | +| `privateSchemaId` | UUID | +| `publicSchemaName` | String | +| `privateSchemaName` | String | +| `tableId` | UUID | +| `tableName` | String | +| `defaultTableId` | UUID | +| `defaultTableName` | String | +| `bitlen` | Int | +| `scope` | String | +| `prefix` | String | +| `entityTableId` | UUID | +| `actorTableId` | UUID | +| `getPaddedMask` | String | +| `getMask` | String | +| `getByMask` | String | +| `getMaskByName` | String | | `apiName` | String | | `privateApiName` | String | **Required create fields:** `databaseId` -**Optional create fields (backend defaults):** `schemaId`, `privateSchemaId`, `publicSchemaName`, `privateSchemaName`, `tableStatsLogTableId`, `tableStatsLogTableName`, `tableStatsDailyTableId`, `tableStatsDailyTableName`, `queryStatsLogTableId`, `queryStatsLogTableName`, `queryStatsDailyTableId`, `queryStatsDailyTableName`, `interval`, `retention`, `premake`, `scope`, `prefix`, `defaultPermissions`, `apiName`, `privateApiName` +**Optional create fields (backend defaults):** `entityField`, `schemaId`, `privateSchemaId`, `publicSchemaName`, `privateSchemaName`, `tableId`, `tableName`, `defaultTableId`, `defaultTableName`, `bitlen`, `scope`, `prefix`, `entityTableId`, `actorTableId`, `getPaddedMask`, `getMask`, `getByMask`, `getMaskByName`, `apiName`, `privateApiName` ### `graph-execution-module` @@ -1774,6 +1936,7 @@ CRUD operations for GraphExecutionModule records. |-------|------| | `id` | UUID | | `databaseId` | UUID | +| `entityField` | String | | `schemaId` | UUID | | `privateSchemaId` | UUID | | `publicSchemaName` | String | @@ -1796,7 +1959,7 @@ CRUD operations for GraphExecutionModule records. | `createdAt` | Datetime | **Required create fields:** `databaseId`, `graphModuleId` -**Optional create fields (backend defaults):** `schemaId`, `privateSchemaId`, `publicSchemaName`, `privateSchemaName`, `scope`, `prefix`, `executionsTableId`, `outputsTableId`, `nodeStatesTableId`, `executionsTableName`, `outputsTableName`, `nodeStatesTableName`, `apiName`, `privateApiName`, `entityTableId`, `policies`, `provisions`, `defaultPermissions` +**Optional create fields (backend defaults):** `entityField`, `schemaId`, `privateSchemaId`, `publicSchemaName`, `privateSchemaName`, `scope`, `prefix`, `executionsTableId`, `outputsTableId`, `nodeStatesTableId`, `executionsTableName`, `outputsTableName`, `nodeStatesTableName`, `apiName`, `privateApiName`, `entityTableId`, `policies`, `provisions`, `defaultPermissions` ### `hierarchy-module` @@ -1817,6 +1980,7 @@ CRUD operations for HierarchyModule records. |-------|------| | `id` | UUID | | `databaseId` | UUID | +| `entityField` | String | | `schemaId` | UUID | | `privateSchemaId` | UUID | | `chartEdgesTableId` | UUID | @@ -1839,49 +2003,7 @@ CRUD operations for HierarchyModule records. | `createdAt` | Datetime | **Required create fields:** `databaseId`, `entityTableId`, `usersTableId` -**Optional create fields (backend defaults):** `schemaId`, `privateSchemaId`, `chartEdgesTableId`, `chartEdgesTableName`, `hierarchySprtTableId`, `hierarchySprtTableName`, `chartEdgeGrantsTableId`, `chartEdgeGrantsTableName`, `scope`, `prefix`, `privateSchemaName`, `sprtTableName`, `rebuildHierarchyFunction`, `getSubordinatesFunction`, `getManagersFunction`, `isManagerOfFunction`, `defaultPermissions` - -### `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 | -|-------|------| -| `id` | UUID | -| `databaseId` | UUID | -| `schemaId` | UUID | -| `privateSchemaId` | UUID | -| `publicSchemaName` | String | -| `privateSchemaName` | String | -| `tableId` | UUID | -| `tableName` | String | -| `defaultTableId` | UUID | -| `defaultTableName` | String | -| `bitlen` | Int | -| `scope` | String | -| `prefix` | String | -| `entityTableId` | UUID | -| `actorTableId` | UUID | -| `getPaddedMask` | String | -| `getMask` | String | -| `getByMask` | String | -| `getMaskByName` | String | -| `apiName` | String | -| `privateApiName` | String | - -**Required create fields:** `databaseId` -**Optional create fields (backend defaults):** `schemaId`, `privateSchemaId`, `publicSchemaName`, `privateSchemaName`, `tableId`, `tableName`, `defaultTableId`, `defaultTableName`, `bitlen`, `scope`, `prefix`, `entityTableId`, `actorTableId`, `getPaddedMask`, `getMask`, `getByMask`, `getMaskByName`, `apiName`, `privateApiName` +**Optional create fields (backend defaults):** `entityField`, `schemaId`, `privateSchemaId`, `chartEdgesTableId`, `chartEdgesTableName`, `hierarchySprtTableId`, `hierarchySprtTableName`, `chartEdgeGrantsTableId`, `chartEdgeGrantsTableName`, `scope`, `prefix`, `privateSchemaName`, `sprtTableName`, `rebuildHierarchyFunction`, `getSubordinatesFunction`, `getManagersFunction`, `isManagerOfFunction`, `defaultPermissions` ### `notifications-module` @@ -1902,6 +2024,7 @@ CRUD operations for NotificationsModule records. |-------|------| | `id` | UUID | | `databaseId` | UUID | +| `entityField` | String | | `schemaId` | UUID | | `privateSchemaId` | UUID | | `publicSchemaName` | String | @@ -1924,8 +2047,53 @@ CRUD operations for NotificationsModule records. | `apiName` | String | | `privateApiName` | String | -**Required create fields:** `databaseId` -**Optional create fields (backend defaults):** `schemaId`, `privateSchemaId`, `publicSchemaName`, `privateSchemaName`, `notificationsTableId`, `readStateTableId`, `preferencesTableId`, `channelsTableId`, `deliveryLogTableId`, `suppressionsTableId`, `ownerTableId`, `userSettingsTableId`, `organizationSettingsTableId`, `hasChannels`, `hasPreferences`, `hasSettingsExtension`, `hasDigestMetadata`, `hasSubscriptions`, `defaultPermissions`, `apiName`, `privateApiName` +**Required create fields:** `databaseId` +**Optional create fields (backend defaults):** `entityField`, `schemaId`, `privateSchemaId`, `publicSchemaName`, `privateSchemaName`, `notificationsTableId`, `readStateTableId`, `preferencesTableId`, `channelsTableId`, `deliveryLogTableId`, `suppressionsTableId`, `ownerTableId`, `userSettingsTableId`, `organizationSettingsTableId`, `hasChannels`, `hasPreferences`, `hasSettingsExtension`, `hasDigestMetadata`, `hasSubscriptions`, `defaultPermissions`, `apiName`, `privateApiName` + +### `relation-provision` + +CRUD operations for RelationProvision records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all relationProvision records | +| `find-first` | Find first matching relationProvision record | +| `get` | Get a relationProvision by id | +| `create` | Create a new relationProvision | +| `update` | Update an existing relationProvision | +| `delete` | Delete a relationProvision | + +**Fields:** + +| Field | Type | +|-------|------| +| `id` | UUID | +| `databaseId` | UUID | +| `relationType` | String | +| `sourceTableId` | UUID | +| `targetTableId` | UUID | +| `fieldName` | String | +| `deleteAction` | String | +| `isRequired` | Boolean | +| `apiRequired` | Boolean | +| `junctionTableId` | UUID | +| `junctionTableName` | String | +| `junctionSchemaId` | UUID | +| `sourceFieldName` | String | +| `targetFieldName` | String | +| `useCompositeKey` | Boolean | +| `createIndex` | Boolean | +| `exposeInApi` | Boolean | +| `nodes` | JSON | +| `grants` | JSON | +| `policies` | JSON | +| `outFieldId` | UUID | +| `outJunctionTableId` | UUID | +| `outSourceFieldId` | UUID | +| `outTargetFieldId` | UUID | + +**Required create fields:** `databaseId`, `relationType`, `sourceTableId`, `targetTableId` +**Optional create fields (backend defaults):** `fieldName`, `deleteAction`, `isRequired`, `apiRequired`, `junctionTableId`, `junctionTableName`, `junctionSchemaId`, `sourceFieldName`, `targetFieldName`, `useCompositeKey`, `createIndex`, `exposeInApi`, `nodes`, `grants`, `policies`, `outFieldId`, `outJunctionTableId`, `outSourceFieldId`, `outTargetFieldId` ### `profiles-module` @@ -1946,6 +2114,7 @@ CRUD operations for ProfilesModule records. |-------|------| | `id` | UUID | | `databaseId` | UUID | +| `entityField` | String | | `schemaId` | UUID | | `privateSchemaId` | UUID | | `publicSchemaName` | String | @@ -1970,7 +2139,7 @@ CRUD operations for ProfilesModule records. | `privateApiName` | String | **Required create fields:** `databaseId` -**Optional create fields (backend defaults):** `schemaId`, `privateSchemaId`, `publicSchemaName`, `privateSchemaName`, `tableId`, `tableName`, `profilePermissionsTableId`, `profilePermissionsTableName`, `profileGrantsTableId`, `profileGrantsTableName`, `profileDefinitionGrantsTableId`, `profileDefinitionGrantsTableName`, `profileTemplatesTableId`, `profileTemplatesTableName`, `scope`, `prefix`, `entityTableId`, `actorTableId`, `permissionsTableId`, `membershipsTableId`, `apiName`, `privateApiName` +**Optional create fields (backend defaults):** `entityField`, `schemaId`, `privateSchemaId`, `publicSchemaName`, `privateSchemaName`, `tableId`, `tableName`, `profilePermissionsTableId`, `profilePermissionsTableName`, `profileGrantsTableId`, `profileGrantsTableName`, `profileDefinitionGrantsTableId`, `profileDefinitionGrantsTableName`, `profileTemplatesTableId`, `profileTemplatesTableName`, `scope`, `prefix`, `entityTableId`, `actorTableId`, `permissionsTableId`, `membershipsTableId`, `apiName`, `privateApiName` ### `billing-module` @@ -2010,26 +2179,28 @@ CRUD operations for BillingModule records. | `meterDefaultsTableId` | UUID | | `meterDefaultsTableName` | String | | `recordUsageFunction` | String | +| `sweepExpiredSubscriptionsFunction` | String | +| `rollupUsageSummaryFunction` | String | | `prefix` | String | | `defaultPermissions` | String | | `apiName` | String | | `privateApiName` | String | **Required create fields:** `databaseId` -**Optional create fields (backend defaults):** `schemaId`, `privateSchemaId`, `publicSchemaName`, `privateSchemaName`, `metersTableId`, `metersTableName`, `planSubscriptionsTableId`, `planSubscriptionsTableName`, `ledgerTableId`, `ledgerTableName`, `balancesTableId`, `balancesTableName`, `meterCreditsTableId`, `meterCreditsTableName`, `meterSourcesTableId`, `meterSourcesTableName`, `meterDefaultsTableId`, `meterDefaultsTableName`, `recordUsageFunction`, `prefix`, `defaultPermissions`, `apiName`, `privateApiName` +**Optional create fields (backend defaults):** `schemaId`, `privateSchemaId`, `publicSchemaName`, `privateSchemaName`, `metersTableId`, `metersTableName`, `planSubscriptionsTableId`, `planSubscriptionsTableName`, `ledgerTableId`, `ledgerTableName`, `balancesTableId`, `balancesTableName`, `meterCreditsTableId`, `meterCreditsTableName`, `meterSourcesTableId`, `meterSourcesTableName`, `meterDefaultsTableId`, `meterDefaultsTableName`, `recordUsageFunction`, `sweepExpiredSubscriptionsFunction`, `rollupUsageSummaryFunction`, `prefix`, `defaultPermissions`, `apiName`, `privateApiName` -### `relation-provision` +### `resource-module` -CRUD operations for RelationProvision records. +CRUD operations for ResourceModule records. | Subcommand | Description | |------------|-------------| -| `list` | List all relationProvision records | -| `find-first` | Find first matching relationProvision record | -| `get` | Get a relationProvision by id | -| `create` | Create a new relationProvision | -| `update` | Update an existing relationProvision | -| `delete` | Delete a relationProvision | +| `list` | List all resourceModule records | +| `find-first` | Find first matching resourceModule record | +| `get` | Get a resourceModule by id | +| `create` | Create a new resourceModule | +| `update` | Update an existing resourceModule | +| `delete` | Delete a resourceModule | **Fields:** @@ -2037,31 +2208,33 @@ CRUD operations for RelationProvision records. |-------|------| | `id` | UUID | | `databaseId` | UUID | -| `relationType` | String | -| `sourceTableId` | UUID | -| `targetTableId` | UUID | -| `fieldName` | String | -| `deleteAction` | String | -| `isRequired` | Boolean | -| `apiRequired` | Boolean | -| `junctionTableId` | UUID | -| `junctionTableName` | String | -| `junctionSchemaId` | UUID | -| `sourceFieldName` | String | -| `targetFieldName` | String | -| `useCompositeKey` | Boolean | -| `createIndex` | Boolean | -| `exposeInApi` | Boolean | -| `nodes` | JSON | -| `grants` | JSON | +| `entityField` | String | +| `schemaId` | UUID | +| `privateSchemaId` | UUID | +| `publicSchemaName` | String | +| `privateSchemaName` | String | +| `resourcesTableId` | UUID | +| `resourceEventsTableId` | UUID | +| `resourceStatusChecksTableId` | UUID | +| `resourceDefinitionsTableId` | UUID | +| `resourcesTableName` | String | +| `resourceEventsTableName` | String | +| `resourceStatusChecksTableName` | String | +| `resourceDefinitionsTableName` | String | +| `resolvedRequirementsViewName` | String | +| `requirementsStateViewName` | String | +| `apiName` | String | +| `privateApiName` | String | +| `scope` | String | +| `prefix` | String | +| `entityTableId` | UUID | +| `namespaceModuleId` | UUID | | `policies` | JSON | -| `outFieldId` | UUID | -| `outJunctionTableId` | UUID | -| `outSourceFieldId` | UUID | -| `outTargetFieldId` | UUID | +| `provisions` | JSON | +| `defaultPermissions` | String | -**Required create fields:** `databaseId`, `relationType`, `sourceTableId`, `targetTableId` -**Optional create fields (backend defaults):** `fieldName`, `deleteAction`, `isRequired`, `apiRequired`, `junctionTableId`, `junctionTableName`, `junctionSchemaId`, `sourceFieldName`, `targetFieldName`, `useCompositeKey`, `createIndex`, `exposeInApi`, `nodes`, `grants`, `policies`, `outFieldId`, `outJunctionTableId`, `outSourceFieldId`, `outTargetFieldId` +**Required create fields:** `databaseId` +**Optional create fields (backend defaults):** `entityField`, `schemaId`, `privateSchemaId`, `publicSchemaName`, `privateSchemaName`, `resourcesTableId`, `resourceEventsTableId`, `resourceStatusChecksTableId`, `resourceDefinitionsTableId`, `resourcesTableName`, `resourceEventsTableName`, `resourceStatusChecksTableName`, `resourceDefinitionsTableName`, `resolvedRequirementsViewName`, `requirementsStateViewName`, `apiName`, `privateApiName`, `scope`, `prefix`, `entityTableId`, `namespaceModuleId`, `policies`, `provisions`, `defaultPermissions` ### `user-auth-module` @@ -2112,6 +2285,54 @@ CRUD operations for UserAuthModule records. **Required create fields:** `databaseId` **Optional create fields (backend defaults):** `schemaId`, `emailsTableId`, `usersTableId`, `secretsTableId`, `encryptedTableId`, `sessionsTableId`, `sessionCredentialsTableId`, `auditsTableId`, `auditsTableName`, `signInFunction`, `signUpFunction`, `signOutFunction`, `setPasswordFunction`, `resetPasswordFunction`, `forgotPasswordFunction`, `sendVerificationEmailFunction`, `verifyEmailFunction`, `verifyPasswordFunction`, `checkPasswordFunction`, `sendAccountDeletionEmailFunction`, `deleteAccountFunction`, `signInCrossOriginFunction`, `requestCrossOriginTokenFunction`, `extendTokenExpires`, `apiName`, `privateApiName` +### `db-usage-module` + +CRUD operations for DbUsageModule records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all dbUsageModule records | +| `find-first` | Find first matching dbUsageModule record | +| `get` | Get a dbUsageModule by id | +| `create` | Create a new dbUsageModule | +| `update` | Update an existing dbUsageModule | +| `delete` | Delete a dbUsageModule | + +**Fields:** + +| Field | Type | +|-------|------| +| `id` | UUID | +| `databaseId` | UUID | +| `entityField` | String | +| `schemaId` | UUID | +| `privateSchemaId` | UUID | +| `publicSchemaName` | String | +| `privateSchemaName` | String | +| `tableStatsLogTableId` | UUID | +| `tableStatsLogTableName` | String | +| `tableStatsDailyTableId` | UUID | +| `tableStatsDailyTableName` | String | +| `queryStatsLogTableId` | UUID | +| `queryStatsLogTableName` | String | +| `queryStatsDailyTableId` | UUID | +| `queryStatsDailyTableName` | String | +| `collectDbTableStatsFunction` | String | +| `collectDbQueryStatsFunction` | String | +| `rollupDbTableStatsDailyFunction` | String | +| `rollupDbQueryStatsDailyFunction` | String | +| `interval` | String | +| `retention` | String | +| `premake` | Int | +| `scope` | String | +| `prefix` | String | +| `defaultPermissions` | String | +| `apiName` | String | +| `privateApiName` | String | + +**Required create fields:** `databaseId` +**Optional create fields (backend defaults):** `entityField`, `schemaId`, `privateSchemaId`, `publicSchemaName`, `privateSchemaName`, `tableStatsLogTableId`, `tableStatsLogTableName`, `tableStatsDailyTableId`, `tableStatsDailyTableName`, `queryStatsLogTableId`, `queryStatsLogTableName`, `queryStatsDailyTableId`, `queryStatsDailyTableName`, `collectDbTableStatsFunction`, `collectDbQueryStatsFunction`, `rollupDbTableStatsDailyFunction`, `rollupDbQueryStatsDailyFunction`, `interval`, `retention`, `premake`, `scope`, `prefix`, `defaultPermissions`, `apiName`, `privateApiName` + ### `agent-module` CRUD operations for AgentModule records. @@ -2131,6 +2352,7 @@ CRUD operations for AgentModule records. |-------|------| | `id` | UUID | | `databaseId` | UUID | +| `entityField` | String | | `schemaId` | UUID | | `privateSchemaId` | UUID | | `publicSchemaName` | String | @@ -2166,7 +2388,7 @@ CRUD operations for AgentModule records. | `defaultPermissions` | String | **Required create fields:** `databaseId` -**Optional create fields (backend defaults):** `schemaId`, `privateSchemaId`, `publicSchemaName`, `privateSchemaName`, `threadTableId`, `messageTableId`, `taskTableId`, `promptsTableId`, `planTableId`, `agentTableId`, `personaTableId`, `resourceTableId`, `threadTableName`, `messageTableName`, `taskTableName`, `promptsTableName`, `planTableName`, `agentTableName`, `personaTableName`, `resourceTableName`, `hasPlans`, `hasResources`, `hasAgents`, `shared`, `apiName`, `privateApiName`, `scope`, `prefix`, `entityTableId`, `policies`, `resources`, `provisions`, `defaultPermissions` +**Optional create fields (backend defaults):** `entityField`, `schemaId`, `privateSchemaId`, `publicSchemaName`, `privateSchemaName`, `threadTableId`, `messageTableId`, `taskTableId`, `promptsTableId`, `planTableId`, `agentTableId`, `personaTableId`, `resourceTableId`, `threadTableName`, `messageTableName`, `taskTableName`, `promptsTableName`, `planTableName`, `agentTableName`, `personaTableName`, `resourceTableName`, `hasPlans`, `hasResources`, `hasAgents`, `shared`, `apiName`, `privateApiName`, `scope`, `prefix`, `entityTableId`, `policies`, `resources`, `provisions`, `defaultPermissions` ### `limits-module` @@ -2187,6 +2409,7 @@ CRUD operations for LimitsModule records. |-------|------| | `id` | UUID | | `databaseId` | UUID | +| `entityField` | String | | `schemaId` | UUID | | `privateSchemaId` | UUID | | `publicSchemaName` | String | @@ -2223,69 +2446,7 @@ CRUD operations for LimitsModule records. | `privateApiName` | String | **Required create fields:** `databaseId` -**Optional create fields (backend defaults):** `schemaId`, `privateSchemaId`, `publicSchemaName`, `privateSchemaName`, `tableId`, `tableName`, `defaultTableId`, `defaultTableName`, `limitIncrementFunction`, `limitDecrementFunction`, `limitIncrementTrigger`, `limitDecrementTrigger`, `limitUpdateTrigger`, `limitCheckFunction`, `limitCreditsTableId`, `eventsTableId`, `creditCodesTableId`, `creditCodeItemsTableId`, `creditRedemptionsTableId`, `aggregateTableId`, `limitCapsTableId`, `limitCapsDefaultsTableId`, `capCheckTrigger`, `resolveCapFunction`, `limitWarningsTableId`, `limitWarningStateTableId`, `limitCheckSoftFunction`, `limitAggregateCheckSoftFunction`, `scope`, `prefix`, `entityTableId`, `actorTableId`, `apiName`, `privateApiName` - -### `memberships-module` - -CRUD operations for MembershipsModule records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all membershipsModule records | -| `find-first` | Find first matching membershipsModule record | -| `get` | Get a membershipsModule by id | -| `create` | Create a new membershipsModule | -| `update` | Update an existing membershipsModule | -| `delete` | Delete a membershipsModule | - -**Fields:** - -| Field | Type | -|-------|------| -| `id` | UUID | -| `databaseId` | UUID | -| `schemaId` | UUID | -| `privateSchemaId` | UUID | -| `publicSchemaName` | String | -| `privateSchemaName` | String | -| `membershipsTableId` | UUID | -| `membershipsTableName` | String | -| `membersTableId` | UUID | -| `membersTableName` | String | -| `membershipDefaultsTableId` | UUID | -| `membershipDefaultsTableName` | String | -| `membershipSettingsTableId` | UUID | -| `membershipSettingsTableName` | String | -| `grantsTableId` | UUID | -| `grantsTableName` | String | -| `actorTableId` | UUID | -| `limitsTableId` | UUID | -| `defaultLimitsTableId` | UUID | -| `permissionsTableId` | UUID | -| `defaultPermissionsTableId` | UUID | -| `sprtTableId` | UUID | -| `adminGrantsTableId` | UUID | -| `adminGrantsTableName` | String | -| `ownerGrantsTableId` | UUID | -| `ownerGrantsTableName` | String | -| `scope` | String | -| `prefix` | String | -| `entityTableId` | UUID | -| `entityTableOwnerId` | UUID | -| `getOrgFn` | String | -| `actorMaskCheck` | String | -| `actorPermCheck` | String | -| `entityIdsByMask` | String | -| `entityIdsByPerm` | String | -| `entityIdsFunction` | String | -| `memberProfilesTableId` | UUID | -| `permissionDefaultPermissionsTableId` | UUID | -| `permissionDefaultGrantsTableId` | UUID | -| `apiName` | String | -| `privateApiName` | String | - -**Required create fields:** `databaseId` -**Optional create fields (backend defaults):** `schemaId`, `privateSchemaId`, `publicSchemaName`, `privateSchemaName`, `membershipsTableId`, `membershipsTableName`, `membersTableId`, `membersTableName`, `membershipDefaultsTableId`, `membershipDefaultsTableName`, `membershipSettingsTableId`, `membershipSettingsTableName`, `grantsTableId`, `grantsTableName`, `actorTableId`, `limitsTableId`, `defaultLimitsTableId`, `permissionsTableId`, `defaultPermissionsTableId`, `sprtTableId`, `adminGrantsTableId`, `adminGrantsTableName`, `ownerGrantsTableId`, `ownerGrantsTableName`, `scope`, `prefix`, `entityTableId`, `entityTableOwnerId`, `getOrgFn`, `actorMaskCheck`, `actorPermCheck`, `entityIdsByMask`, `entityIdsByPerm`, `entityIdsFunction`, `memberProfilesTableId`, `permissionDefaultPermissionsTableId`, `permissionDefaultGrantsTableId`, `apiName`, `privateApiName` +**Optional create fields (backend defaults):** `entityField`, `schemaId`, `privateSchemaId`, `publicSchemaName`, `privateSchemaName`, `tableId`, `tableName`, `defaultTableId`, `defaultTableName`, `limitIncrementFunction`, `limitDecrementFunction`, `limitIncrementTrigger`, `limitDecrementTrigger`, `limitUpdateTrigger`, `limitCheckFunction`, `limitCreditsTableId`, `eventsTableId`, `creditCodesTableId`, `creditCodeItemsTableId`, `creditRedemptionsTableId`, `aggregateTableId`, `limitCapsTableId`, `limitCapsDefaultsTableId`, `capCheckTrigger`, `resolveCapFunction`, `limitWarningsTableId`, `limitWarningStateTableId`, `limitCheckSoftFunction`, `limitAggregateCheckSoftFunction`, `scope`, `prefix`, `entityTableId`, `actorTableId`, `apiName`, `privateApiName` ### `entity-type-provision` @@ -2340,13 +2501,12 @@ CRUD operations for EntityTypeProvision records. | `outDefinitionsTableId` | UUID | | `outInvocationsTableId` | UUID | | `outExecutionLogsTableId` | UUID | -| `outSecretDefinitionsTableId` | UUID | | `outGraphModuleId` | UUID | | `outGraphsTableId` | UUID | | `outAgentModuleId` | UUID | **Required create fields:** `databaseId`, `name`, `prefix` -**Optional create fields (backend defaults):** `description`, `parentEntity`, `tableName`, `isVisible`, `hasLimits`, `hasProfiles`, `hasLevels`, `hasInvites`, `hasInviteAchievements`, `storage`, `namespaces`, `functions`, `graphs`, `agents`, `skipEntityPolicies`, `tableProvision`, `outMembershipType`, `outEntityTableId`, `outEntityTableName`, `outInstalledModules`, `outStorageModuleId`, `outBucketsTableId`, `outFilesTableId`, `outPathSharesTableId`, `outInvitesModuleId`, `outNamespaceModuleId`, `outNamespacesTableId`, `outNamespaceEventsTableId`, `outFunctionModuleId`, `outDefinitionsTableId`, `outInvocationsTableId`, `outExecutionLogsTableId`, `outSecretDefinitionsTableId`, `outGraphModuleId`, `outGraphsTableId`, `outAgentModuleId` +**Optional create fields (backend defaults):** `description`, `parentEntity`, `tableName`, `isVisible`, `hasLimits`, `hasProfiles`, `hasLevels`, `hasInvites`, `hasInviteAchievements`, `storage`, `namespaces`, `functions`, `graphs`, `agents`, `skipEntityPolicies`, `tableProvision`, `outMembershipType`, `outEntityTableId`, `outEntityTableName`, `outInstalledModules`, `outStorageModuleId`, `outBucketsTableId`, `outFilesTableId`, `outPathSharesTableId`, `outInvitesModuleId`, `outNamespaceModuleId`, `outNamespacesTableId`, `outNamespaceEventsTableId`, `outFunctionModuleId`, `outDefinitionsTableId`, `outInvocationsTableId`, `outExecutionLogsTableId`, `outGraphModuleId`, `outGraphsTableId`, `outAgentModuleId` ### `storage-module` @@ -2380,6 +2540,7 @@ CRUD operations for StorageModule records. | `policies` | JSON | | `provisions` | JSON | | `entityTableId` | UUID | +| `entityField` | String | | `endpoint` | String | | `publicUrlPrefix` | String | | `provider` | String | @@ -2406,7 +2567,70 @@ CRUD operations for StorageModule records. | `privateApiName` | String | **Required create fields:** `databaseId` -**Optional create fields (backend defaults):** `schemaId`, `privateSchemaId`, `publicSchemaName`, `privateSchemaName`, `bucketsTableId`, `filesTableId`, `bucketsTableName`, `filesTableName`, `scope`, `prefix`, `policies`, `provisions`, `entityTableId`, `endpoint`, `publicUrlPrefix`, `provider`, `allowedOrigins`, `restrictReads`, `hasPathShares`, `pathSharesTableId`, `uploadUrlExpirySeconds`, `downloadUrlExpirySeconds`, `defaultMaxFileSize`, `maxFilenameLength`, `cacheTtlSeconds`, `maxBulkFiles`, `maxBulkTotalSize`, `hasVersioning`, `hasContentHash`, `hasCustomKeys`, `hasAuditLog`, `hasConfirmUpload`, `confirmUploadDelay`, `fileEventsTableId`, `defaultPermissions`, `apiName`, `privateApiName` +**Optional create fields (backend defaults):** `schemaId`, `privateSchemaId`, `publicSchemaName`, `privateSchemaName`, `bucketsTableId`, `filesTableId`, `bucketsTableName`, `filesTableName`, `scope`, `prefix`, `policies`, `provisions`, `entityTableId`, `entityField`, `endpoint`, `publicUrlPrefix`, `provider`, `allowedOrigins`, `restrictReads`, `hasPathShares`, `pathSharesTableId`, `uploadUrlExpirySeconds`, `downloadUrlExpirySeconds`, `defaultMaxFileSize`, `maxFilenameLength`, `cacheTtlSeconds`, `maxBulkFiles`, `maxBulkTotalSize`, `hasVersioning`, `hasContentHash`, `hasCustomKeys`, `hasAuditLog`, `hasConfirmUpload`, `confirmUploadDelay`, `fileEventsTableId`, `defaultPermissions`, `apiName`, `privateApiName` + +### `memberships-module` + +CRUD operations for MembershipsModule records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all membershipsModule records | +| `find-first` | Find first matching membershipsModule record | +| `get` | Get a membershipsModule by id | +| `create` | Create a new membershipsModule | +| `update` | Update an existing membershipsModule | +| `delete` | Delete a membershipsModule | + +**Fields:** + +| Field | Type | +|-------|------| +| `id` | UUID | +| `databaseId` | UUID | +| `entityField` | String | +| `schemaId` | UUID | +| `privateSchemaId` | UUID | +| `publicSchemaName` | String | +| `privateSchemaName` | String | +| `membershipsTableId` | UUID | +| `membershipsTableName` | String | +| `membersTableId` | UUID | +| `membersTableName` | String | +| `membershipDefaultsTableId` | UUID | +| `membershipDefaultsTableName` | String | +| `membershipSettingsTableId` | UUID | +| `membershipSettingsTableName` | String | +| `grantsTableId` | UUID | +| `grantsTableName` | String | +| `actorTableId` | UUID | +| `limitsTableId` | UUID | +| `defaultLimitsTableId` | UUID | +| `permissionsTableId` | UUID | +| `defaultPermissionsTableId` | UUID | +| `sprtTableId` | UUID | +| `adminGrantsTableId` | UUID | +| `adminGrantsTableName` | String | +| `ownerGrantsTableId` | UUID | +| `ownerGrantsTableName` | String | +| `scope` | String | +| `prefix` | String | +| `entityTableId` | UUID | +| `entityTableOwnerId` | UUID | +| `getOrgFn` | String | +| `actorMaskCheck` | String | +| `actorPermCheck` | String | +| `entityIdsByMask` | String | +| `entityIdsByPerm` | String | +| `entityIdsFunction` | String | +| `memberProfilesTableId` | UUID | +| `permissionDefaultPermissionsTableId` | UUID | +| `permissionDefaultGrantsTableId` | UUID | +| `apiName` | String | +| `privateApiName` | String | + +**Required create fields:** `databaseId` +**Optional create fields (backend defaults):** `entityField`, `schemaId`, `privateSchemaId`, `publicSchemaName`, `privateSchemaName`, `membershipsTableId`, `membershipsTableName`, `membersTableId`, `membersTableName`, `membershipDefaultsTableId`, `membershipDefaultsTableName`, `membershipSettingsTableId`, `membershipSettingsTableName`, `grantsTableId`, `grantsTableName`, `actorTableId`, `limitsTableId`, `defaultLimitsTableId`, `permissionsTableId`, `defaultPermissionsTableId`, `sprtTableId`, `adminGrantsTableId`, `adminGrantsTableName`, `ownerGrantsTableId`, `ownerGrantsTableName`, `scope`, `prefix`, `entityTableId`, `entityTableOwnerId`, `getOrgFn`, `actorMaskCheck`, `actorPermCheck`, `entityIdsByMask`, `entityIdsByPerm`, `entityIdsFunction`, `memberProfilesTableId`, `permissionDefaultPermissionsTableId`, `permissionDefaultGrantsTableId`, `apiName`, `privateApiName` ### `events-module` @@ -2427,6 +2651,7 @@ CRUD operations for EventsModule records. |-------|------| | `id` | UUID | | `databaseId` | UUID | +| `entityField` | String | | `schemaId` | UUID | | `privateSchemaId` | UUID | | `publicSchemaName` | String | @@ -2453,7 +2678,6 @@ CRUD operations for EventsModule records. | `tgEventBool` | String | | `upsertAggregate` | String | | `tgUpdateAggregates` | String | -| `pruneEvents` | String | | `stepsRequired` | String | | `levelAchieved` | String | | `tgCheckAchievements` | String | @@ -2471,7 +2695,7 @@ CRUD operations for EventsModule records. | `privateApiName` | String | **Required create fields:** `databaseId` -**Optional create fields (backend defaults):** `schemaId`, `privateSchemaId`, `publicSchemaName`, `privateSchemaName`, `eventsTableId`, `eventsTableName`, `eventAggregatesTableId`, `eventAggregatesTableName`, `eventTypesTableId`, `eventTypesTableName`, `levelsTableId`, `levelsTableName`, `levelRequirementsTableId`, `levelRequirementsTableName`, `levelGrantsTableId`, `levelGrantsTableName`, `achievementRewardsTableId`, `achievementRewardsTableName`, `recordEvent`, `removeEvent`, `tgEvent`, `tgEventToggle`, `tgEventToggleBool`, `tgEventBool`, `upsertAggregate`, `tgUpdateAggregates`, `pruneEvents`, `stepsRequired`, `levelAchieved`, `tgCheckAchievements`, `grantAchievement`, `tgAchievementReward`, `interval`, `retention`, `premake`, `scope`, `prefix`, `entityTableId`, `actorTableId`, `defaultPermissions`, `apiName`, `privateApiName` +**Optional create fields (backend defaults):** `entityField`, `schemaId`, `privateSchemaId`, `publicSchemaName`, `privateSchemaName`, `eventsTableId`, `eventsTableName`, `eventAggregatesTableId`, `eventAggregatesTableName`, `eventTypesTableId`, `eventTypesTableName`, `levelsTableId`, `levelsTableName`, `levelRequirementsTableId`, `levelRequirementsTableName`, `levelGrantsTableId`, `levelGrantsTableName`, `achievementRewardsTableId`, `achievementRewardsTableName`, `recordEvent`, `removeEvent`, `tgEvent`, `tgEventToggle`, `tgEventToggleBool`, `tgEventBool`, `upsertAggregate`, `tgUpdateAggregates`, `stepsRequired`, `levelAchieved`, `tgCheckAchievements`, `grantAchievement`, `tgAchievementReward`, `interval`, `retention`, `premake`, `scope`, `prefix`, `entityTableId`, `actorTableId`, `defaultPermissions`, `apiName`, `privateApiName` ## Custom Operations diff --git a/sdk/constructive-cli/src/modules/cli/commands.ts b/sdk/constructive-cli/src/modules/cli/commands.ts index 2d72cb097a..cc4d693593 100644 --- a/sdk/constructive-cli/src/modules/cli/commands.ts +++ b/sdk/constructive-cli/src/modules/cli/commands.ts @@ -8,23 +8,21 @@ import contextCmd from './commands/context'; import authCmd from './commands/auth'; import defaultIdsModuleCmd from './commands/default-ids-module'; import membershipTypesModuleCmd from './commands/membership-types-module'; -import userStateModuleCmd from './commands/user-state-module'; import sessionSecretsModuleCmd from './commands/session-secrets-module'; -import configSecretsOrgModuleCmd from './commands/config-secrets-org-module'; import devicesModuleCmd from './commands/devices-module'; import i18NModuleCmd from './commands/i-18-n-module'; -import userCredentialsModuleCmd from './commands/user-credentials-module'; import userSettingsModuleCmd from './commands/user-settings-module'; -import configSecretsUserModuleCmd from './commands/config-secrets-user-module'; +import userStateModuleCmd from './commands/user-state-module'; +import userCredentialsModuleCmd from './commands/user-credentials-module'; import connectedAccountsModuleCmd from './commands/connected-accounts-module'; import emailsModuleCmd from './commands/emails-module'; import phoneNumbersModuleCmd from './commands/phone-numbers-module'; import rateLimitsModuleCmd from './commands/rate-limits-module'; import usersModuleCmd from './commands/users-module'; import webauthnCredentialsModuleCmd from './commands/webauthn-credentials-module'; +import configSecretsUserModuleCmd from './commands/config-secrets-user-module'; import cryptoAddressesModuleCmd from './commands/crypto-addresses-module'; import denormalizedTableFieldCmd from './commands/denormalized-table-field'; -import identityProvidersModuleCmd from './commands/identity-providers-module'; import rlsModuleCmd from './commands/rls-module'; import blueprintCmd from './commands/blueprint'; import blueprintTemplateCmd from './commands/blueprint-template'; @@ -32,40 +30,47 @@ import blueprintConstructionCmd from './commands/blueprint-construction'; import cryptoAuthModuleCmd from './commands/crypto-auth-module'; import sessionsModuleCmd from './commands/sessions-module'; import secureTableProvisionCmd from './commands/secure-table-provision'; -import databaseProvisionModuleCmd from './commands/database-provision-module'; -import configSecretsModuleCmd from './commands/config-secrets-module'; +import identityProvidersModuleCmd from './commands/identity-providers-module'; +import integrationProvidersModuleCmd from './commands/integration-providers-module'; +import dbPoolConfigCmd from './commands/db-pool-config'; +import realtimeModuleCmd from './commands/realtime-module'; +import infraSecretsModuleCmd from './commands/infra-secrets-module'; +import internalSecretsModuleCmd from './commands/internal-secrets-module'; +import dbPresetModuleCmd from './commands/db-preset-module'; import graphModuleCmd from './commands/graph-module'; -import merkleStoreModuleCmd from './commands/merkle-store-module'; import rateLimitMetersModuleCmd from './commands/rate-limit-meters-module'; -import realtimeModuleCmd from './commands/realtime-module'; +import infraConfigModuleCmd from './commands/infra-config-module'; import webauthnAuthModuleCmd from './commands/webauthn-auth-module'; -import functionInvocationModuleCmd from './commands/function-invocation-module'; +import principalAuthModuleCmd from './commands/principal-auth-module'; +import dbPoolCmd from './commands/db-pool'; import functionModuleCmd from './commands/function-module'; +import merkleStoreModuleCmd from './commands/merkle-store-module'; +import databaseProvisionModuleCmd from './commands/database-provision-module'; +import functionInvocationModuleCmd from './commands/function-invocation-module'; import invitesModuleCmd from './commands/invites-module'; -import principalAuthModuleCmd from './commands/principal-auth-module'; +import namespaceModuleCmd from './commands/namespace-module'; +import plansModuleCmd from './commands/plans-module'; import computeLogModuleCmd from './commands/compute-log-module'; import inferenceLogModuleCmd from './commands/inference-log-module'; -import namespaceModuleCmd from './commands/namespace-module'; -import resourceModuleCmd from './commands/resource-module'; import storageLogModuleCmd from './commands/storage-log-module'; import transferLogModuleCmd from './commands/transfer-log-module'; -import functionDeploymentModuleCmd from './commands/function-deployment-module'; -import plansModuleCmd from './commands/plans-module'; import billingProviderModuleCmd from './commands/billing-provider-module'; -import dbUsageModuleCmd from './commands/db-usage-module'; +import functionDeploymentModuleCmd from './commands/function-deployment-module'; +import permissionsModuleCmd from './commands/permissions-module'; import graphExecutionModuleCmd from './commands/graph-execution-module'; import hierarchyModuleCmd from './commands/hierarchy-module'; -import permissionsModuleCmd from './commands/permissions-module'; import notificationsModuleCmd from './commands/notifications-module'; +import relationProvisionCmd from './commands/relation-provision'; import profilesModuleCmd from './commands/profiles-module'; import billingModuleCmd from './commands/billing-module'; -import relationProvisionCmd from './commands/relation-provision'; +import resourceModuleCmd from './commands/resource-module'; import userAuthModuleCmd from './commands/user-auth-module'; +import dbUsageModuleCmd from './commands/db-usage-module'; import agentModuleCmd from './commands/agent-module'; import limitsModuleCmd from './commands/limits-module'; -import membershipsModuleCmd from './commands/memberships-module'; import entityTypeProvisionCmd from './commands/entity-type-provision'; import storageModuleCmd from './commands/storage-module'; +import membershipsModuleCmd from './commands/memberships-module'; import eventsModuleCmd from './commands/events-module'; import resolveBlueprintFieldCmd from './commands/resolve-blueprint-field'; import resolveBlueprintTableCmd from './commands/resolve-blueprint-table'; @@ -91,23 +96,21 @@ const createCommandMap: () => Record< auth: authCmd, 'default-ids-module': defaultIdsModuleCmd, 'membership-types-module': membershipTypesModuleCmd, - 'user-state-module': userStateModuleCmd, 'session-secrets-module': sessionSecretsModuleCmd, - 'config-secrets-org-module': configSecretsOrgModuleCmd, 'devices-module': devicesModuleCmd, 'i-18-n-module': i18NModuleCmd, - 'user-credentials-module': userCredentialsModuleCmd, 'user-settings-module': userSettingsModuleCmd, - 'config-secrets-user-module': configSecretsUserModuleCmd, + 'user-state-module': userStateModuleCmd, + 'user-credentials-module': userCredentialsModuleCmd, 'connected-accounts-module': connectedAccountsModuleCmd, 'emails-module': emailsModuleCmd, 'phone-numbers-module': phoneNumbersModuleCmd, 'rate-limits-module': rateLimitsModuleCmd, 'users-module': usersModuleCmd, 'webauthn-credentials-module': webauthnCredentialsModuleCmd, + 'config-secrets-user-module': configSecretsUserModuleCmd, 'crypto-addresses-module': cryptoAddressesModuleCmd, 'denormalized-table-field': denormalizedTableFieldCmd, - 'identity-providers-module': identityProvidersModuleCmd, 'rls-module': rlsModuleCmd, blueprint: blueprintCmd, 'blueprint-template': blueprintTemplateCmd, @@ -115,40 +118,47 @@ const createCommandMap: () => Record< 'crypto-auth-module': cryptoAuthModuleCmd, 'sessions-module': sessionsModuleCmd, 'secure-table-provision': secureTableProvisionCmd, - 'database-provision-module': databaseProvisionModuleCmd, - 'config-secrets-module': configSecretsModuleCmd, + 'identity-providers-module': identityProvidersModuleCmd, + 'integration-providers-module': integrationProvidersModuleCmd, + 'db-pool-config': dbPoolConfigCmd, + 'realtime-module': realtimeModuleCmd, + 'infra-secrets-module': infraSecretsModuleCmd, + 'internal-secrets-module': internalSecretsModuleCmd, + 'db-preset-module': dbPresetModuleCmd, 'graph-module': graphModuleCmd, - 'merkle-store-module': merkleStoreModuleCmd, 'rate-limit-meters-module': rateLimitMetersModuleCmd, - 'realtime-module': realtimeModuleCmd, + 'infra-config-module': infraConfigModuleCmd, 'webauthn-auth-module': webauthnAuthModuleCmd, - 'function-invocation-module': functionInvocationModuleCmd, + 'principal-auth-module': principalAuthModuleCmd, + 'db-pool': dbPoolCmd, 'function-module': functionModuleCmd, + 'merkle-store-module': merkleStoreModuleCmd, + 'database-provision-module': databaseProvisionModuleCmd, + 'function-invocation-module': functionInvocationModuleCmd, 'invites-module': invitesModuleCmd, - 'principal-auth-module': principalAuthModuleCmd, + 'namespace-module': namespaceModuleCmd, + 'plans-module': plansModuleCmd, 'compute-log-module': computeLogModuleCmd, 'inference-log-module': inferenceLogModuleCmd, - 'namespace-module': namespaceModuleCmd, - 'resource-module': resourceModuleCmd, 'storage-log-module': storageLogModuleCmd, 'transfer-log-module': transferLogModuleCmd, - 'function-deployment-module': functionDeploymentModuleCmd, - 'plans-module': plansModuleCmd, 'billing-provider-module': billingProviderModuleCmd, - 'db-usage-module': dbUsageModuleCmd, + 'function-deployment-module': functionDeploymentModuleCmd, + 'permissions-module': permissionsModuleCmd, 'graph-execution-module': graphExecutionModuleCmd, 'hierarchy-module': hierarchyModuleCmd, - 'permissions-module': permissionsModuleCmd, 'notifications-module': notificationsModuleCmd, + 'relation-provision': relationProvisionCmd, 'profiles-module': profilesModuleCmd, 'billing-module': billingModuleCmd, - 'relation-provision': relationProvisionCmd, + 'resource-module': resourceModuleCmd, 'user-auth-module': userAuthModuleCmd, + 'db-usage-module': dbUsageModuleCmd, 'agent-module': agentModuleCmd, 'limits-module': limitsModuleCmd, - 'memberships-module': membershipsModuleCmd, 'entity-type-provision': entityTypeProvisionCmd, 'storage-module': storageModuleCmd, + 'memberships-module': membershipsModuleCmd, 'events-module': eventsModuleCmd, 'resolve-blueprint-field': resolveBlueprintFieldCmd, 'resolve-blueprint-table': resolveBlueprintTableCmd, @@ -164,7 +174,7 @@ const createCommandMap: () => Record< 'provision-bucket': provisionBucketCmd, }); const usage = - "\ncsdk \n\nCommands:\n context Manage API contexts\n auth Manage authentication\n default-ids-module defaultIdsModule CRUD operations\n membership-types-module membershipTypesModule CRUD operations\n user-state-module userStateModule CRUD operations\n session-secrets-module sessionSecretsModule CRUD operations\n config-secrets-org-module configSecretsOrgModule CRUD operations\n devices-module devicesModule CRUD operations\n i-18-n-module i18NModule CRUD operations\n user-credentials-module userCredentialsModule CRUD operations\n user-settings-module userSettingsModule CRUD operations\n config-secrets-user-module configSecretsUserModule CRUD operations\n connected-accounts-module connectedAccountsModule CRUD operations\n emails-module emailsModule CRUD operations\n phone-numbers-module phoneNumbersModule CRUD operations\n rate-limits-module rateLimitsModule CRUD operations\n users-module usersModule CRUD operations\n webauthn-credentials-module webauthnCredentialsModule CRUD operations\n crypto-addresses-module cryptoAddressesModule CRUD operations\n denormalized-table-field denormalizedTableField CRUD operations\n identity-providers-module identityProvidersModule CRUD operations\n rls-module rlsModule CRUD operations\n blueprint blueprint CRUD operations\n blueprint-template blueprintTemplate CRUD operations\n blueprint-construction blueprintConstruction CRUD operations\n crypto-auth-module cryptoAuthModule CRUD operations\n sessions-module sessionsModule CRUD operations\n secure-table-provision secureTableProvision CRUD operations\n database-provision-module databaseProvisionModule CRUD operations\n config-secrets-module configSecretsModule CRUD operations\n graph-module graphModule CRUD operations\n merkle-store-module merkleStoreModule CRUD operations\n rate-limit-meters-module rateLimitMetersModule CRUD operations\n realtime-module realtimeModule CRUD operations\n webauthn-auth-module webauthnAuthModule CRUD operations\n function-invocation-module functionInvocationModule CRUD operations\n function-module functionModule CRUD operations\n invites-module invitesModule CRUD operations\n principal-auth-module principalAuthModule CRUD operations\n compute-log-module computeLogModule CRUD operations\n inference-log-module inferenceLogModule CRUD operations\n namespace-module namespaceModule CRUD operations\n resource-module resourceModule CRUD operations\n storage-log-module storageLogModule CRUD operations\n transfer-log-module transferLogModule CRUD operations\n function-deployment-module functionDeploymentModule CRUD operations\n plans-module plansModule CRUD operations\n billing-provider-module billingProviderModule CRUD operations\n db-usage-module dbUsageModule CRUD operations\n graph-execution-module graphExecutionModule CRUD operations\n hierarchy-module hierarchyModule CRUD operations\n permissions-module permissionsModule CRUD operations\n notifications-module notificationsModule CRUD operations\n profiles-module profilesModule CRUD operations\n billing-module billingModule CRUD operations\n relation-provision relationProvision CRUD operations\n user-auth-module userAuthModule CRUD operations\n agent-module agentModule CRUD operations\n limits-module limitsModule CRUD operations\n memberships-module membershipsModule CRUD operations\n entity-type-provision entityTypeProvision CRUD operations\n storage-module storageModule CRUD operations\n events-module eventsModule 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 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-check-constraint Creates a check constraint on a table from a $type + data blueprint definition. Supports: CheckOneOf (enum validation via = ANY(ARRAY[...])), CheckGreaterThan (single-column > value or cross-column), CheckLessThan (single-column < value or cross-column), CheckNotEqual (cross-column inequality). Builds AST expressions via ast_helpers and inserts into metaschema_public.check_constraint. Graceful: skips if a constraint with the same name already exists.\n provision-unique-constraint Creates a unique constraint on a table. Accepts a jsonb definition with columns (array of field names). Graceful: skips if the exact same unique constraint already exists.\n copy-template-to-blueprint Creates a new blueprint by copying a template definition. Checks visibility: owners can always copy their own templates, others require public visibility. Increments the template copy_count. Returns the new blueprint ID.\n provision-spatial-relation Idempotent provisioner for metaschema_public.spatial_relation. Inserts a row declaring a spatial predicate between two geometry/geography columns (owner and target). Called from construct_blueprint when a relation entry has $type=RelationSpatial. Graceful: re-running with the same (source_table_id, name) returns the existing id without modifying the row. Operator whitelist and st_dwithin \u2194 param_name pairing are enforced by the spatial_relation table CHECKs. Both fields must already exist \u2014 this is a metadata-only insert.\n 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-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-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 default-ids-module defaultIdsModule CRUD operations\n membership-types-module membershipTypesModule CRUD operations\n session-secrets-module sessionSecretsModule CRUD operations\n devices-module devicesModule CRUD operations\n i-18-n-module i18NModule CRUD operations\n user-settings-module userSettingsModule CRUD operations\n user-state-module userStateModule CRUD operations\n user-credentials-module userCredentialsModule CRUD operations\n connected-accounts-module connectedAccountsModule CRUD operations\n emails-module emailsModule CRUD operations\n phone-numbers-module phoneNumbersModule CRUD operations\n rate-limits-module rateLimitsModule CRUD operations\n users-module usersModule CRUD operations\n webauthn-credentials-module webauthnCredentialsModule CRUD operations\n config-secrets-user-module configSecretsUserModule CRUD operations\n crypto-addresses-module cryptoAddressesModule CRUD operations\n denormalized-table-field denormalizedTableField CRUD operations\n rls-module rlsModule CRUD operations\n blueprint blueprint CRUD operations\n blueprint-template blueprintTemplate CRUD operations\n blueprint-construction blueprintConstruction CRUD operations\n crypto-auth-module cryptoAuthModule CRUD operations\n sessions-module sessionsModule CRUD operations\n secure-table-provision secureTableProvision CRUD operations\n identity-providers-module identityProvidersModule CRUD operations\n integration-providers-module integrationProvidersModule CRUD operations\n db-pool-config dbPoolConfig CRUD operations\n realtime-module realtimeModule CRUD operations\n infra-secrets-module infraSecretsModule CRUD operations\n internal-secrets-module internalSecretsModule CRUD operations\n db-preset-module dbPresetModule CRUD operations\n graph-module graphModule CRUD operations\n rate-limit-meters-module rateLimitMetersModule CRUD operations\n infra-config-module infraConfigModule CRUD operations\n webauthn-auth-module webauthnAuthModule CRUD operations\n principal-auth-module principalAuthModule CRUD operations\n db-pool dbPool CRUD operations\n function-module functionModule CRUD operations\n merkle-store-module merkleStoreModule CRUD operations\n database-provision-module databaseProvisionModule CRUD operations\n function-invocation-module functionInvocationModule CRUD operations\n invites-module invitesModule CRUD operations\n namespace-module namespaceModule CRUD operations\n plans-module plansModule CRUD operations\n compute-log-module computeLogModule CRUD operations\n inference-log-module inferenceLogModule CRUD operations\n storage-log-module storageLogModule CRUD operations\n transfer-log-module transferLogModule CRUD operations\n billing-provider-module billingProviderModule CRUD operations\n function-deployment-module functionDeploymentModule CRUD operations\n permissions-module permissionsModule CRUD operations\n graph-execution-module graphExecutionModule CRUD operations\n hierarchy-module hierarchyModule CRUD operations\n notifications-module notificationsModule CRUD operations\n relation-provision relationProvision CRUD operations\n profiles-module profilesModule CRUD operations\n billing-module billingModule CRUD operations\n resource-module resourceModule CRUD operations\n user-auth-module userAuthModule CRUD operations\n db-usage-module dbUsageModule CRUD operations\n agent-module agentModule CRUD operations\n limits-module limitsModule CRUD operations\n entity-type-provision entityTypeProvision CRUD operations\n storage-module storageModule CRUD operations\n memberships-module membershipsModule CRUD operations\n events-module eventsModule 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 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-check-constraint Creates a check constraint on a table from a $type + data blueprint definition. Supports: CheckOneOf (enum validation via = ANY(ARRAY[...])), CheckGreaterThan (single-column > value or cross-column), CheckLessThan (single-column < value or cross-column), CheckNotEqual (cross-column inequality). Builds AST expressions via ast_helpers and inserts into metaschema_public.check_constraint. Graceful: skips if a constraint with the same name already exists.\n provision-unique-constraint Creates a unique constraint on a table. Accepts a jsonb definition with columns (array of field names). Graceful: skips if the exact same unique constraint already exists.\n copy-template-to-blueprint Creates a new blueprint by copying a template definition. Checks visibility: owners can always copy their own templates, others require public visibility. Increments the template copy_count. Returns the new blueprint ID.\n provision-spatial-relation Idempotent provisioner for metaschema_public.spatial_relation. Inserts a row declaring a spatial predicate between two geometry/geography columns (owner and target). Called from construct_blueprint when a relation entry has $type=RelationSpatial. Graceful: re-running with the same (source_table_id, name) returns the existing id without modifying the row. Operator whitelist and st_dwithin \u2194 param_name pairing are enforced by the spatial_relation table CHECKs. Both fields must already exist \u2014 this is a metadata-only insert.\n 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-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-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 0f91b0444c..f22d659014 100644 --- a/sdk/constructive-cli/src/modules/cli/commands/agent-module.ts +++ b/sdk/constructive-cli/src/modules/cli/commands/agent-module.ts @@ -18,6 +18,7 @@ import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; const fieldSchema: FieldSchema = { id: 'uuid', databaseId: 'uuid', + entityField: 'string', schemaId: 'uuid', privateSchemaId: 'uuid', publicSchemaName: 'string', @@ -105,6 +106,7 @@ async function handleList(argv: Partial>, _prompter: Inq const defaultSelect = { id: true, databaseId: true, + entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, @@ -160,6 +162,7 @@ async function handleFindFirst(argv: Partial>, _prompter const defaultSelect = { id: true, databaseId: true, + entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, @@ -227,6 +230,7 @@ async function handleGet(argv: Partial>, prompter: Inqui select: { id: true, databaseId: true, + entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, @@ -281,6 +285,13 @@ async function handleCreate(argv: Partial>, prompter: In message: 'databaseId', required: true, }, + { + type: 'text', + name: 'entityField', + message: 'entityField', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'schemaId', @@ -523,6 +534,7 @@ async function handleCreate(argv: Partial>, prompter: In .create({ data: { databaseId: cleanedData.databaseId, + entityField: cleanedData.entityField, schemaId: cleanedData.schemaId, privateSchemaId: cleanedData.privateSchemaId, publicSchemaName: cleanedData.publicSchemaName, @@ -560,6 +572,7 @@ async function handleCreate(argv: Partial>, prompter: In select: { id: true, databaseId: true, + entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, @@ -620,6 +633,13 @@ async function handleUpdate(argv: Partial>, prompter: In message: 'databaseId', required: false, }, + { + type: 'text', + name: 'entityField', + message: 'entityField', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'schemaId', @@ -862,6 +882,7 @@ async function handleUpdate(argv: Partial>, prompter: In }, data: { databaseId: cleanedData.databaseId, + entityField: cleanedData.entityField, schemaId: cleanedData.schemaId, privateSchemaId: cleanedData.privateSchemaId, publicSchemaName: cleanedData.publicSchemaName, @@ -899,6 +920,7 @@ async function handleUpdate(argv: Partial>, prompter: In select: { id: true, databaseId: true, + entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: 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 ee532144d9..9f0ee03634 100644 --- a/sdk/constructive-cli/src/modules/cli/commands/billing-module.ts +++ b/sdk/constructive-cli/src/modules/cli/commands/billing-module.ts @@ -37,6 +37,8 @@ const fieldSchema: FieldSchema = { meterDefaultsTableId: 'uuid', meterDefaultsTableName: 'string', recordUsageFunction: 'string', + sweepExpiredSubscriptionsFunction: 'string', + rollupUsageSummaryFunction: 'string', prefix: 'string', defaultPermissions: 'string', apiName: 'string', @@ -114,6 +116,8 @@ async function handleList(argv: Partial>, _prompter: Inq meterDefaultsTableId: true, meterDefaultsTableName: true, recordUsageFunction: true, + sweepExpiredSubscriptionsFunction: true, + rollupUsageSummaryFunction: true, prefix: true, defaultPermissions: true, apiName: true, @@ -159,6 +163,8 @@ async function handleFindFirst(argv: Partial>, _prompter meterDefaultsTableId: true, meterDefaultsTableName: true, recordUsageFunction: true, + sweepExpiredSubscriptionsFunction: true, + rollupUsageSummaryFunction: true, prefix: true, defaultPermissions: true, apiName: true, @@ -216,6 +222,8 @@ async function handleGet(argv: Partial>, prompter: Inqui meterDefaultsTableId: true, meterDefaultsTableName: true, recordUsageFunction: true, + sweepExpiredSubscriptionsFunction: true, + rollupUsageSummaryFunction: true, prefix: true, defaultPermissions: true, apiName: true, @@ -374,6 +382,20 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'sweepExpiredSubscriptionsFunction', + message: 'sweepExpiredSubscriptionsFunction', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'rollupUsageSummaryFunction', + message: 'rollupUsageSummaryFunction', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'prefix', @@ -432,6 +454,8 @@ async function handleCreate(argv: Partial>, prompter: In meterDefaultsTableId: cleanedData.meterDefaultsTableId, meterDefaultsTableName: cleanedData.meterDefaultsTableName, recordUsageFunction: cleanedData.recordUsageFunction, + sweepExpiredSubscriptionsFunction: cleanedData.sweepExpiredSubscriptionsFunction, + rollupUsageSummaryFunction: cleanedData.rollupUsageSummaryFunction, prefix: cleanedData.prefix, defaultPermissions: cleanedData.defaultPermissions, apiName: cleanedData.apiName, @@ -459,6 +483,8 @@ async function handleCreate(argv: Partial>, prompter: In meterDefaultsTableId: true, meterDefaultsTableName: true, recordUsageFunction: true, + sweepExpiredSubscriptionsFunction: true, + rollupUsageSummaryFunction: true, prefix: true, defaultPermissions: true, apiName: true, @@ -623,6 +649,20 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'sweepExpiredSubscriptionsFunction', + message: 'sweepExpiredSubscriptionsFunction', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'rollupUsageSummaryFunction', + message: 'rollupUsageSummaryFunction', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'prefix', @@ -681,6 +721,8 @@ async function handleUpdate(argv: Partial>, prompter: In meterDefaultsTableId: cleanedData.meterDefaultsTableId, meterDefaultsTableName: cleanedData.meterDefaultsTableName, recordUsageFunction: cleanedData.recordUsageFunction, + sweepExpiredSubscriptionsFunction: cleanedData.sweepExpiredSubscriptionsFunction, + rollupUsageSummaryFunction: cleanedData.rollupUsageSummaryFunction, prefix: cleanedData.prefix, defaultPermissions: cleanedData.defaultPermissions, apiName: cleanedData.apiName, @@ -708,6 +750,8 @@ async function handleUpdate(argv: Partial>, prompter: In meterDefaultsTableId: true, meterDefaultsTableName: true, recordUsageFunction: true, + sweepExpiredSubscriptionsFunction: true, + rollupUsageSummaryFunction: true, prefix: true, defaultPermissions: true, apiName: true, 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 66f273d01c..0ffa3752e8 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 @@ -18,6 +18,7 @@ import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; const fieldSchema: FieldSchema = { id: 'uuid', databaseId: 'uuid', + entityField: 'string', schemaId: 'uuid', privateSchemaId: 'uuid', publicSchemaName: 'string', @@ -89,6 +90,7 @@ async function handleList(argv: Partial>, _prompter: Inq const defaultSelect = { id: true, databaseId: true, + entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, @@ -128,6 +130,7 @@ async function handleFindFirst(argv: Partial>, _prompter const defaultSelect = { id: true, databaseId: true, + entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, @@ -179,6 +182,7 @@ async function handleGet(argv: Partial>, prompter: Inqui select: { id: true, databaseId: true, + entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, @@ -217,6 +221,13 @@ async function handleCreate(argv: Partial>, prompter: In message: 'databaseId', required: true, }, + { + type: 'text', + name: 'entityField', + message: 'entityField', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'schemaId', @@ -347,6 +358,7 @@ async function handleCreate(argv: Partial>, prompter: In .create({ data: { databaseId: cleanedData.databaseId, + entityField: cleanedData.entityField, schemaId: cleanedData.schemaId, privateSchemaId: cleanedData.privateSchemaId, publicSchemaName: cleanedData.publicSchemaName, @@ -368,6 +380,7 @@ async function handleCreate(argv: Partial>, prompter: In select: { id: true, databaseId: true, + entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, @@ -412,6 +425,13 @@ async function handleUpdate(argv: Partial>, prompter: In message: 'databaseId', required: false, }, + { + type: 'text', + name: 'entityField', + message: 'entityField', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'schemaId', @@ -542,6 +562,7 @@ async function handleUpdate(argv: Partial>, prompter: In }, data: { databaseId: cleanedData.databaseId, + entityField: cleanedData.entityField, schemaId: cleanedData.schemaId, privateSchemaId: cleanedData.privateSchemaId, publicSchemaName: cleanedData.publicSchemaName, @@ -563,6 +584,7 @@ async function handleUpdate(argv: Partial>, prompter: In select: { id: true, databaseId: true, + entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: 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 index 4c0fbaf8ab..c2b94b98e2 100644 --- 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 @@ -18,10 +18,10 @@ import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; const fieldSchema: FieldSchema = { id: 'uuid', databaseId: 'uuid', + entityField: 'string', schemaId: 'uuid', tableId: 'uuid', tableName: 'string', - configDefinitionsTableId: 'uuid', apiName: 'string', privateApiName: 'string', }; @@ -78,10 +78,10 @@ async function handleList(argv: Partial>, _prompter: Inq const defaultSelect = { id: true, databaseId: true, + entityField: true, schemaId: true, tableId: true, tableName: true, - configDefinitionsTableId: true, apiName: true, privateApiName: true, }; @@ -110,10 +110,10 @@ async function handleFindFirst(argv: Partial>, _prompter const defaultSelect = { id: true, databaseId: true, + entityField: true, schemaId: true, tableId: true, tableName: true, - configDefinitionsTableId: true, apiName: true, privateApiName: true, }; @@ -154,10 +154,10 @@ async function handleGet(argv: Partial>, prompter: Inqui select: { id: true, databaseId: true, + entityField: true, schemaId: true, tableId: true, tableName: true, - configDefinitionsTableId: true, apiName: true, privateApiName: true, }, @@ -181,6 +181,13 @@ async function handleCreate(argv: Partial>, prompter: In message: 'databaseId', required: true, }, + { + type: 'text', + name: 'entityField', + message: 'entityField', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'schemaId', @@ -202,13 +209,6 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, - { - type: 'text', - name: 'configDefinitionsTableId', - message: 'configDefinitionsTableId', - required: false, - skipPrompt: true, - }, { type: 'text', name: 'apiName', @@ -234,20 +234,20 @@ async function handleCreate(argv: Partial>, prompter: In .create({ data: { databaseId: cleanedData.databaseId, + entityField: cleanedData.entityField, schemaId: cleanedData.schemaId, tableId: cleanedData.tableId, tableName: cleanedData.tableName, - configDefinitionsTableId: cleanedData.configDefinitionsTableId, apiName: cleanedData.apiName, privateApiName: cleanedData.privateApiName, }, select: { id: true, databaseId: true, + entityField: true, schemaId: true, tableId: true, tableName: true, - configDefinitionsTableId: true, apiName: true, privateApiName: true, }, @@ -277,6 +277,13 @@ async function handleUpdate(argv: Partial>, prompter: In message: 'databaseId', required: false, }, + { + type: 'text', + name: 'entityField', + message: 'entityField', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'schemaId', @@ -298,13 +305,6 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, - { - type: 'text', - name: 'configDefinitionsTableId', - message: 'configDefinitionsTableId', - required: false, - skipPrompt: true, - }, { type: 'text', name: 'apiName', @@ -330,20 +330,20 @@ async function handleUpdate(argv: Partial>, prompter: In }, data: { databaseId: cleanedData.databaseId, + entityField: cleanedData.entityField, schemaId: cleanedData.schemaId, tableId: cleanedData.tableId, tableName: cleanedData.tableName, - configDefinitionsTableId: cleanedData.configDefinitionsTableId, apiName: cleanedData.apiName, privateApiName: cleanedData.privateApiName, }, select: { id: true, databaseId: true, + entityField: true, schemaId: true, tableId: true, tableName: true, - configDefinitionsTableId: true, apiName: true, privateApiName: true, }, diff --git a/sdk/constructive-cli/src/modules/cli/commands/database-provision-module.ts b/sdk/constructive-cli/src/modules/cli/commands/database-provision-module.ts index 9fc93dc9b6..f64da0dc7c 100644 --- a/sdk/constructive-cli/src/modules/cli/commands/database-provision-module.ts +++ b/sdk/constructive-cli/src/modules/cli/commands/database-provision-module.ts @@ -26,10 +26,14 @@ const fieldSchema: FieldSchema = { bootstrapUser: 'boolean', status: 'string', errorMessage: 'string', + sourceDatabaseId: 'uuid', + bootstrapStatus: 'string', + bootstrapError: 'string', databaseId: 'uuid', createdAt: 'string', updatedAt: 'string', completedAt: 'string', + fulfilledAt: 'string', }; const usage = '\ndatabase-provision-module \n\nCommands:\n list List databaseProvisionModule records\n find-first Find first matching databaseProvisionModule record\n get Get a databaseProvisionModule by ID\n create Create a new databaseProvisionModule\n update Update an existing databaseProvisionModule\n delete Delete a databaseProvisionModule\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\n --help, -h Show this help message\n'; @@ -92,10 +96,14 @@ async function handleList(argv: Partial>, _prompter: Inq bootstrapUser: true, status: true, errorMessage: true, + sourceDatabaseId: true, + bootstrapStatus: true, + bootstrapError: true, databaseId: true, createdAt: true, updatedAt: true, completedAt: true, + fulfilledAt: true, }; const findManyArgs = parseFindManyArgs< FindManyArgs< @@ -130,10 +138,14 @@ async function handleFindFirst(argv: Partial>, _prompter bootstrapUser: true, status: true, errorMessage: true, + sourceDatabaseId: true, + bootstrapStatus: true, + bootstrapError: true, databaseId: true, createdAt: true, updatedAt: true, completedAt: true, + fulfilledAt: true, }; const findFirstArgs = parseFindFirstArgs< FindFirstArgs< @@ -180,10 +192,14 @@ async function handleGet(argv: Partial>, prompter: Inqui bootstrapUser: true, status: true, errorMessage: true, + sourceDatabaseId: true, + bootstrapStatus: true, + bootstrapError: true, databaseId: true, createdAt: true, updatedAt: true, completedAt: true, + fulfilledAt: true, }, }) .execute(); @@ -259,6 +275,27 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'sourceDatabaseId', + message: 'sourceDatabaseId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'bootstrapStatus', + message: 'bootstrapStatus', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'bootstrapError', + message: 'bootstrapError', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'databaseId', @@ -273,6 +310,13 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'fulfilledAt', + message: 'fulfilledAt', + required: false, + skipPrompt: true, + }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const cleanedData = stripUndefined( @@ -292,8 +336,12 @@ async function handleCreate(argv: Partial>, prompter: In bootstrapUser: cleanedData.bootstrapUser, status: cleanedData.status, errorMessage: cleanedData.errorMessage, + sourceDatabaseId: cleanedData.sourceDatabaseId, + bootstrapStatus: cleanedData.bootstrapStatus, + bootstrapError: cleanedData.bootstrapError, databaseId: cleanedData.databaseId, completedAt: cleanedData.completedAt, + fulfilledAt: cleanedData.fulfilledAt, }, select: { id: true, @@ -306,10 +354,14 @@ async function handleCreate(argv: Partial>, prompter: In bootstrapUser: true, status: true, errorMessage: true, + sourceDatabaseId: true, + bootstrapStatus: true, + bootstrapError: true, databaseId: true, createdAt: true, updatedAt: true, completedAt: true, + fulfilledAt: true, }, }) .execute(); @@ -391,6 +443,27 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'sourceDatabaseId', + message: 'sourceDatabaseId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'bootstrapStatus', + message: 'bootstrapStatus', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'bootstrapError', + message: 'bootstrapError', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'databaseId', @@ -405,6 +478,13 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'fulfilledAt', + message: 'fulfilledAt', + required: false, + skipPrompt: true, + }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const cleanedData = stripUndefined(answers, fieldSchema) as DatabaseProvisionModulePatch; @@ -424,8 +504,12 @@ async function handleUpdate(argv: Partial>, prompter: In bootstrapUser: cleanedData.bootstrapUser, status: cleanedData.status, errorMessage: cleanedData.errorMessage, + sourceDatabaseId: cleanedData.sourceDatabaseId, + bootstrapStatus: cleanedData.bootstrapStatus, + bootstrapError: cleanedData.bootstrapError, databaseId: cleanedData.databaseId, completedAt: cleanedData.completedAt, + fulfilledAt: cleanedData.fulfilledAt, }, select: { id: true, @@ -438,10 +522,14 @@ async function handleUpdate(argv: Partial>, prompter: In bootstrapUser: true, status: true, errorMessage: true, + sourceDatabaseId: true, + bootstrapStatus: true, + bootstrapError: true, databaseId: true, createdAt: true, updatedAt: true, completedAt: true, + fulfilledAt: true, }, }) .execute(); diff --git a/sdk/constructive-cli/src/modules/cli/commands/db-pool-config.ts b/sdk/constructive-cli/src/modules/cli/commands/db-pool-config.ts new file mode 100644 index 0000000000..435b95c2e5 --- /dev/null +++ b/sdk/constructive-cli/src/modules/cli/commands/db-pool-config.ts @@ -0,0 +1,391 @@ +/** + * CLI commands for DbPoolConfig + * @generated 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 { + CreateDbPoolConfigInput, + DbPoolConfigPatch, + DbPoolConfigSelect, + DbPoolConfigFilter, + DbPoolConfigOrderBy, +} from '../../orm/input-types'; +import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; +const fieldSchema: FieldSchema = { + id: 'uuid', + presetSlug: 'string', + domain: 'string', + poolOwnerId: 'uuid', + min: 'int', + max: 'int', + warmTtl: 'string', + enabled: 'boolean', + createdAt: 'string', + updatedAt: 'string', +}; +const usage = + '\ndb-pool-config \n\nCommands:\n list List dbPoolConfig records\n find-first Find first matching dbPoolConfig record\n get Get a dbPoolConfig by ID\n create Create a new dbPoolConfig\n update Update an existing dbPoolConfig\n delete Delete a dbPoolConfig\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (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, + presetSlug: true, + domain: true, + poolOwnerId: true, + min: true, + max: true, + warmTtl: true, + enabled: true, + createdAt: true, + updatedAt: true, + }; + const findManyArgs = parseFindManyArgs< + FindManyArgs & { + select: DbPoolConfigSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.dbPoolConfig.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, + presetSlug: true, + domain: true, + poolOwnerId: true, + min: true, + max: true, + warmTtl: true, + enabled: true, + createdAt: true, + updatedAt: true, + }; + const findFirstArgs = parseFindFirstArgs< + FindFirstArgs & { + select: DbPoolConfigSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.dbPoolConfig.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.dbPoolConfig + .findOne({ + id: answers.id as string, + select: { + id: true, + presetSlug: true, + domain: true, + poolOwnerId: true, + min: true, + max: true, + warmTtl: true, + enabled: true, + createdAt: true, + updatedAt: true, + }, + }) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Record not found.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} +async function handleCreate(argv: Partial>, prompter: Inquirerer) { + try { + const rawAnswers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'presetSlug', + message: 'presetSlug', + required: true, + }, + { + type: 'text', + name: 'domain', + message: 'domain', + required: true, + }, + { + type: 'text', + name: 'poolOwnerId', + message: 'poolOwnerId', + required: true, + }, + { + type: 'text', + name: 'min', + message: 'min', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'max', + message: 'max', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'warmTtl', + message: 'warmTtl', + required: false, + skipPrompt: true, + }, + { + type: 'boolean', + name: 'enabled', + message: 'enabled', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined( + answers, + fieldSchema + ) as CreateDbPoolConfigInput['dbPoolConfig']; + const client = getClient(); + const result = await client.dbPoolConfig + .create({ + data: { + presetSlug: cleanedData.presetSlug, + domain: cleanedData.domain, + poolOwnerId: cleanedData.poolOwnerId, + min: cleanedData.min, + max: cleanedData.max, + warmTtl: cleanedData.warmTtl, + enabled: cleanedData.enabled, + }, + select: { + id: true, + presetSlug: true, + domain: true, + poolOwnerId: true, + min: true, + max: true, + warmTtl: true, + enabled: true, + createdAt: true, + updatedAt: true, + }, + }) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to create record.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} +async function handleUpdate(argv: Partial>, prompter: Inquirerer) { + try { + const rawAnswers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'id', + message: 'id', + required: true, + }, + { + type: 'text', + name: 'presetSlug', + message: 'presetSlug', + required: false, + }, + { + type: 'text', + name: 'domain', + message: 'domain', + required: false, + }, + { + type: 'text', + name: 'poolOwnerId', + message: 'poolOwnerId', + required: false, + }, + { + type: 'text', + name: 'min', + message: 'min', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'max', + message: 'max', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'warmTtl', + message: 'warmTtl', + required: false, + skipPrompt: true, + }, + { + type: 'boolean', + name: 'enabled', + message: 'enabled', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined(answers, fieldSchema) as DbPoolConfigPatch; + const client = getClient(); + const result = await client.dbPoolConfig + .update({ + where: { + id: answers.id as string, + }, + data: { + presetSlug: cleanedData.presetSlug, + domain: cleanedData.domain, + poolOwnerId: cleanedData.poolOwnerId, + min: cleanedData.min, + max: cleanedData.max, + warmTtl: cleanedData.warmTtl, + enabled: cleanedData.enabled, + }, + select: { + id: true, + presetSlug: true, + domain: true, + poolOwnerId: true, + min: true, + max: true, + warmTtl: true, + enabled: true, + createdAt: true, + updatedAt: true, + }, + }) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to update record.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} +async function handleDelete(argv: Partial>, prompter: Inquirerer) { + try { + const rawAnswers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'id', + message: 'id', + required: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const client = getClient(); + const result = await client.dbPoolConfig + .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/db-pool.ts b/sdk/constructive-cli/src/modules/cli/commands/db-pool.ts new file mode 100644 index 0000000000..c839dacd6e --- /dev/null +++ b/sdk/constructive-cli/src/modules/cli/commands/db-pool.ts @@ -0,0 +1,458 @@ +/** + * CLI commands for DbPool + * @generated 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 { + CreateDbPoolInput, + DbPoolPatch, + DbPoolSelect, + DbPoolFilter, + DbPoolOrderBy, +} from '../../orm/input-types'; +import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; +const fieldSchema: FieldSchema = { + id: 'uuid', + presetSlug: 'string', + presetCommitId: 'uuid', + databaseId: 'uuid', + status: 'string', + errorMessage: 'string', + expiresAt: 'string', + claimedBy: 'uuid', + claimedAt: 'string', + bootstrapStatus: 'string', + bootstrapError: 'string', + createdAt: 'string', + updatedAt: 'string', +}; +const usage = + '\ndb-pool \n\nCommands:\n list List dbPool records\n find-first Find first matching dbPool record\n get Get a dbPool by ID\n create Create a new dbPool\n update Update an existing dbPool\n delete Delete a dbPool\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (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, + presetSlug: true, + presetCommitId: true, + databaseId: true, + status: true, + errorMessage: true, + expiresAt: true, + claimedBy: true, + claimedAt: true, + bootstrapStatus: true, + bootstrapError: true, + createdAt: true, + updatedAt: true, + }; + const findManyArgs = parseFindManyArgs< + FindManyArgs & { + select: DbPoolSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.dbPool.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, + presetSlug: true, + presetCommitId: true, + databaseId: true, + status: true, + errorMessage: true, + expiresAt: true, + claimedBy: true, + claimedAt: true, + bootstrapStatus: true, + bootstrapError: true, + createdAt: true, + updatedAt: true, + }; + const findFirstArgs = parseFindFirstArgs< + FindFirstArgs & { + select: DbPoolSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.dbPool.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.dbPool + .findOne({ + id: answers.id as string, + select: { + id: true, + presetSlug: true, + presetCommitId: true, + databaseId: true, + status: true, + errorMessage: true, + expiresAt: true, + claimedBy: true, + claimedAt: true, + bootstrapStatus: true, + bootstrapError: true, + createdAt: true, + updatedAt: true, + }, + }) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Record not found.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} +async function handleCreate(argv: Partial>, prompter: Inquirerer) { + try { + const rawAnswers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'presetSlug', + message: 'presetSlug', + required: true, + }, + { + type: 'text', + name: 'presetCommitId', + message: 'presetCommitId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'databaseId', + message: 'databaseId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'status', + message: 'status', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'errorMessage', + message: 'errorMessage', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'expiresAt', + message: 'expiresAt', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'claimedBy', + message: 'claimedBy', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'claimedAt', + message: 'claimedAt', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'bootstrapStatus', + message: 'bootstrapStatus', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'bootstrapError', + message: 'bootstrapError', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined(answers, fieldSchema) as CreateDbPoolInput['dbPool']; + const client = getClient(); + const result = await client.dbPool + .create({ + data: { + presetSlug: cleanedData.presetSlug, + presetCommitId: cleanedData.presetCommitId, + databaseId: cleanedData.databaseId, + status: cleanedData.status, + errorMessage: cleanedData.errorMessage, + expiresAt: cleanedData.expiresAt, + claimedBy: cleanedData.claimedBy, + claimedAt: cleanedData.claimedAt, + bootstrapStatus: cleanedData.bootstrapStatus, + bootstrapError: cleanedData.bootstrapError, + }, + select: { + id: true, + presetSlug: true, + presetCommitId: true, + databaseId: true, + status: true, + errorMessage: true, + expiresAt: true, + claimedBy: true, + claimedAt: true, + bootstrapStatus: true, + bootstrapError: true, + createdAt: true, + updatedAt: true, + }, + }) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to create record.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} +async function handleUpdate(argv: Partial>, prompter: Inquirerer) { + try { + const rawAnswers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'id', + message: 'id', + required: true, + }, + { + type: 'text', + name: 'presetSlug', + message: 'presetSlug', + required: false, + }, + { + type: 'text', + name: 'presetCommitId', + message: 'presetCommitId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'databaseId', + message: 'databaseId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'status', + message: 'status', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'errorMessage', + message: 'errorMessage', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'expiresAt', + message: 'expiresAt', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'claimedBy', + message: 'claimedBy', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'claimedAt', + message: 'claimedAt', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'bootstrapStatus', + message: 'bootstrapStatus', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'bootstrapError', + message: 'bootstrapError', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined(answers, fieldSchema) as DbPoolPatch; + const client = getClient(); + const result = await client.dbPool + .update({ + where: { + id: answers.id as string, + }, + data: { + presetSlug: cleanedData.presetSlug, + presetCommitId: cleanedData.presetCommitId, + databaseId: cleanedData.databaseId, + status: cleanedData.status, + errorMessage: cleanedData.errorMessage, + expiresAt: cleanedData.expiresAt, + claimedBy: cleanedData.claimedBy, + claimedAt: cleanedData.claimedAt, + bootstrapStatus: cleanedData.bootstrapStatus, + bootstrapError: cleanedData.bootstrapError, + }, + select: { + id: true, + presetSlug: true, + presetCommitId: true, + databaseId: true, + status: true, + errorMessage: true, + expiresAt: true, + claimedBy: true, + claimedAt: true, + bootstrapStatus: true, + bootstrapError: true, + createdAt: true, + updatedAt: true, + }, + }) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to update record.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} +async function handleDelete(argv: Partial>, prompter: Inquirerer) { + try { + const rawAnswers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'id', + message: 'id', + required: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const client = getClient(); + const result = await client.dbPool + .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/db-preset-module.ts b/sdk/constructive-cli/src/modules/cli/commands/db-preset-module.ts new file mode 100644 index 0000000000..85aeb14463 --- /dev/null +++ b/sdk/constructive-cli/src/modules/cli/commands/db-preset-module.ts @@ -0,0 +1,557 @@ +/** + * CLI commands for DbPresetModule + * @generated 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 { + CreateDbPresetModuleInput, + DbPresetModulePatch, + DbPresetModuleSelect, + DbPresetModuleFilter, + DbPresetModuleOrderBy, +} from '../../orm/input-types'; +import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; +const fieldSchema: FieldSchema = { + id: 'uuid', + databaseId: 'uuid', + publicSchemaId: 'uuid', + privateSchemaId: 'uuid', + publicSchemaName: 'string', + privateSchemaName: 'string', + scope: 'string', + prefix: 'string', + merkleStoreModuleId: 'uuid', + dbPresetsTableId: 'uuid', + storeName: 'string', + apiName: 'string', + privateApiName: 'string', + entityTableId: 'uuid', + policies: 'json', + provisions: 'json', + createdAt: 'string', +}; +const usage = + '\ndb-preset-module \n\nCommands:\n list List dbPresetModule records\n find-first Find first matching dbPresetModule record\n get Get a dbPresetModule by ID\n create Create a new dbPresetModule\n update Update an existing dbPresetModule\n delete Delete a dbPresetModule\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\n --help, -h Show this help message\n'; +export default async ( + argv: Partial>, + prompter: Inquirerer, + _options: CLIOptions +) => { + if (argv.help || argv.h) { + console.log(usage); + process.exit(0); + } + const { first: subcommand, newArgv } = extractFirst(argv); + if (!subcommand) { + const answer = await prompter.prompt(argv, [ + { + type: 'autocomplete', + name: 'subcommand', + message: 'What do you want to do?', + options: ['list', 'find-first', 'get', 'create', 'update', 'delete'], + }, + ]); + return handleTableSubcommand(answer.subcommand as string, newArgv, prompter); + } + return handleTableSubcommand(subcommand, newArgv, prompter); +}; +async function handleTableSubcommand( + subcommand: string, + argv: Partial>, + prompter: Inquirerer +) { + switch (subcommand) { + case 'list': + return handleList(argv, prompter); + case 'find-first': + return handleFindFirst(argv, prompter); + case 'get': + return handleGet(argv, prompter); + case 'create': + return handleCreate(argv, prompter); + case 'update': + return handleUpdate(argv, prompter); + case 'delete': + return handleDelete(argv, prompter); + default: + console.log(usage); + process.exit(1); + } +} +async function handleList(argv: Partial>, _prompter: Inquirerer) { + try { + const defaultSelect = { + id: true, + databaseId: true, + publicSchemaId: true, + privateSchemaId: true, + publicSchemaName: true, + privateSchemaName: true, + scope: true, + prefix: true, + merkleStoreModuleId: true, + dbPresetsTableId: true, + storeName: true, + apiName: true, + privateApiName: true, + entityTableId: true, + policies: true, + provisions: true, + createdAt: true, + }; + const findManyArgs = parseFindManyArgs< + FindManyArgs & { + select: DbPresetModuleSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.dbPresetModule.findMany(findManyArgs).execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to list records.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} +async function handleFindFirst(argv: Partial>, _prompter: Inquirerer) { + try { + const defaultSelect = { + id: true, + databaseId: true, + publicSchemaId: true, + privateSchemaId: true, + publicSchemaName: true, + privateSchemaName: true, + scope: true, + prefix: true, + merkleStoreModuleId: true, + dbPresetsTableId: true, + storeName: true, + apiName: true, + privateApiName: true, + entityTableId: true, + policies: true, + provisions: true, + createdAt: true, + }; + const findFirstArgs = parseFindFirstArgs< + FindFirstArgs & { + select: DbPresetModuleSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.dbPresetModule.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.dbPresetModule + .findOne({ + id: answers.id as string, + select: { + id: true, + databaseId: true, + publicSchemaId: true, + privateSchemaId: true, + publicSchemaName: true, + privateSchemaName: true, + scope: true, + prefix: true, + merkleStoreModuleId: true, + dbPresetsTableId: true, + storeName: true, + apiName: true, + privateApiName: true, + entityTableId: true, + policies: true, + provisions: true, + createdAt: 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: 'publicSchemaId', + message: 'publicSchemaId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'privateSchemaId', + message: 'privateSchemaId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'publicSchemaName', + message: 'publicSchemaName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'privateSchemaName', + message: 'privateSchemaName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'scope', + message: 'scope', + required: true, + }, + { + type: 'text', + name: 'prefix', + message: 'prefix', + required: true, + }, + { + type: 'text', + name: 'merkleStoreModuleId', + message: 'merkleStoreModuleId', + required: true, + }, + { + type: 'text', + name: 'dbPresetsTableId', + message: 'dbPresetsTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'storeName', + message: 'storeName', + required: true, + }, + { + type: 'text', + name: 'apiName', + message: 'apiName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'privateApiName', + message: 'privateApiName', + 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: 'json', + name: 'provisions', + message: 'provisions', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined( + answers, + fieldSchema + ) as CreateDbPresetModuleInput['dbPresetModule']; + const client = getClient(); + const result = await client.dbPresetModule + .create({ + data: { + databaseId: cleanedData.databaseId, + publicSchemaId: cleanedData.publicSchemaId, + privateSchemaId: cleanedData.privateSchemaId, + publicSchemaName: cleanedData.publicSchemaName, + privateSchemaName: cleanedData.privateSchemaName, + scope: cleanedData.scope, + prefix: cleanedData.prefix, + merkleStoreModuleId: cleanedData.merkleStoreModuleId, + dbPresetsTableId: cleanedData.dbPresetsTableId, + storeName: cleanedData.storeName, + apiName: cleanedData.apiName, + privateApiName: cleanedData.privateApiName, + entityTableId: cleanedData.entityTableId, + policies: cleanedData.policies, + provisions: cleanedData.provisions, + }, + select: { + id: true, + databaseId: true, + publicSchemaId: true, + privateSchemaId: true, + publicSchemaName: true, + privateSchemaName: true, + scope: true, + prefix: true, + merkleStoreModuleId: true, + dbPresetsTableId: true, + storeName: true, + apiName: true, + privateApiName: true, + entityTableId: true, + policies: true, + provisions: true, + createdAt: true, + }, + }) + .execute(); + console.log(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: 'publicSchemaId', + message: 'publicSchemaId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'privateSchemaId', + message: 'privateSchemaId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'publicSchemaName', + message: 'publicSchemaName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'privateSchemaName', + message: 'privateSchemaName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'scope', + message: 'scope', + required: false, + }, + { + type: 'text', + name: 'prefix', + message: 'prefix', + required: false, + }, + { + type: 'text', + name: 'merkleStoreModuleId', + message: 'merkleStoreModuleId', + required: false, + }, + { + type: 'text', + name: 'dbPresetsTableId', + message: 'dbPresetsTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'storeName', + message: 'storeName', + required: false, + }, + { + type: 'text', + name: 'apiName', + message: 'apiName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'privateApiName', + message: 'privateApiName', + 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: 'json', + name: 'provisions', + message: 'provisions', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined(answers, fieldSchema) as DbPresetModulePatch; + const client = getClient(); + const result = await client.dbPresetModule + .update({ + where: { + id: answers.id as string, + }, + data: { + databaseId: cleanedData.databaseId, + publicSchemaId: cleanedData.publicSchemaId, + privateSchemaId: cleanedData.privateSchemaId, + publicSchemaName: cleanedData.publicSchemaName, + privateSchemaName: cleanedData.privateSchemaName, + scope: cleanedData.scope, + prefix: cleanedData.prefix, + merkleStoreModuleId: cleanedData.merkleStoreModuleId, + dbPresetsTableId: cleanedData.dbPresetsTableId, + storeName: cleanedData.storeName, + apiName: cleanedData.apiName, + privateApiName: cleanedData.privateApiName, + entityTableId: cleanedData.entityTableId, + policies: cleanedData.policies, + provisions: cleanedData.provisions, + }, + select: { + id: true, + databaseId: true, + publicSchemaId: true, + privateSchemaId: true, + publicSchemaName: true, + privateSchemaName: true, + scope: true, + prefix: true, + merkleStoreModuleId: true, + dbPresetsTableId: true, + storeName: true, + apiName: true, + privateApiName: true, + entityTableId: true, + policies: true, + provisions: true, + createdAt: 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.dbPresetModule + .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/db-usage-module.ts b/sdk/constructive-cli/src/modules/cli/commands/db-usage-module.ts index bc3f99f1b3..2806ade69c 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 @@ -18,6 +18,7 @@ import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; const fieldSchema: FieldSchema = { id: 'uuid', databaseId: 'uuid', + entityField: 'string', schemaId: 'uuid', privateSchemaId: 'uuid', publicSchemaName: 'string', @@ -30,6 +31,10 @@ const fieldSchema: FieldSchema = { queryStatsLogTableName: 'string', queryStatsDailyTableId: 'uuid', queryStatsDailyTableName: 'string', + collectDbTableStatsFunction: 'string', + collectDbQueryStatsFunction: 'string', + rollupDbTableStatsDailyFunction: 'string', + rollupDbQueryStatsDailyFunction: 'string', interval: 'string', retention: 'string', premake: 'int', @@ -92,6 +97,7 @@ async function handleList(argv: Partial>, _prompter: Inq const defaultSelect = { id: true, databaseId: true, + entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, @@ -104,6 +110,10 @@ async function handleList(argv: Partial>, _prompter: Inq queryStatsLogTableName: true, queryStatsDailyTableId: true, queryStatsDailyTableName: true, + collectDbTableStatsFunction: true, + collectDbQueryStatsFunction: true, + rollupDbTableStatsDailyFunction: true, + rollupDbQueryStatsDailyFunction: true, interval: true, retention: true, premake: true, @@ -134,6 +144,7 @@ async function handleFindFirst(argv: Partial>, _prompter const defaultSelect = { id: true, databaseId: true, + entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, @@ -146,6 +157,10 @@ async function handleFindFirst(argv: Partial>, _prompter queryStatsLogTableName: true, queryStatsDailyTableId: true, queryStatsDailyTableName: true, + collectDbTableStatsFunction: true, + collectDbQueryStatsFunction: true, + rollupDbTableStatsDailyFunction: true, + rollupDbQueryStatsDailyFunction: true, interval: true, retention: true, premake: true, @@ -188,6 +203,7 @@ async function handleGet(argv: Partial>, prompter: Inqui select: { id: true, databaseId: true, + entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, @@ -200,6 +216,10 @@ async function handleGet(argv: Partial>, prompter: Inqui queryStatsLogTableName: true, queryStatsDailyTableId: true, queryStatsDailyTableName: true, + collectDbTableStatsFunction: true, + collectDbQueryStatsFunction: true, + rollupDbTableStatsDailyFunction: true, + rollupDbQueryStatsDailyFunction: true, interval: true, retention: true, premake: true, @@ -229,6 +249,13 @@ async function handleCreate(argv: Partial>, prompter: In message: 'databaseId', required: true, }, + { + type: 'text', + name: 'entityField', + message: 'entityField', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'schemaId', @@ -313,6 +340,34 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'collectDbTableStatsFunction', + message: 'collectDbTableStatsFunction', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'collectDbQueryStatsFunction', + message: 'collectDbQueryStatsFunction', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'rollupDbTableStatsDailyFunction', + message: 'rollupDbTableStatsDailyFunction', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'rollupDbQueryStatsDailyFunction', + message: 'rollupDbQueryStatsDailyFunction', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'interval', @@ -380,6 +435,7 @@ async function handleCreate(argv: Partial>, prompter: In .create({ data: { databaseId: cleanedData.databaseId, + entityField: cleanedData.entityField, schemaId: cleanedData.schemaId, privateSchemaId: cleanedData.privateSchemaId, publicSchemaName: cleanedData.publicSchemaName, @@ -392,6 +448,10 @@ async function handleCreate(argv: Partial>, prompter: In queryStatsLogTableName: cleanedData.queryStatsLogTableName, queryStatsDailyTableId: cleanedData.queryStatsDailyTableId, queryStatsDailyTableName: cleanedData.queryStatsDailyTableName, + collectDbTableStatsFunction: cleanedData.collectDbTableStatsFunction, + collectDbQueryStatsFunction: cleanedData.collectDbQueryStatsFunction, + rollupDbTableStatsDailyFunction: cleanedData.rollupDbTableStatsDailyFunction, + rollupDbQueryStatsDailyFunction: cleanedData.rollupDbQueryStatsDailyFunction, interval: cleanedData.interval, retention: cleanedData.retention, premake: cleanedData.premake, @@ -404,6 +464,7 @@ async function handleCreate(argv: Partial>, prompter: In select: { id: true, databaseId: true, + entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, @@ -416,6 +477,10 @@ async function handleCreate(argv: Partial>, prompter: In queryStatsLogTableName: true, queryStatsDailyTableId: true, queryStatsDailyTableName: true, + collectDbTableStatsFunction: true, + collectDbQueryStatsFunction: true, + rollupDbTableStatsDailyFunction: true, + rollupDbQueryStatsDailyFunction: true, interval: true, retention: true, premake: true, @@ -451,6 +516,13 @@ async function handleUpdate(argv: Partial>, prompter: In message: 'databaseId', required: false, }, + { + type: 'text', + name: 'entityField', + message: 'entityField', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'schemaId', @@ -535,6 +607,34 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'collectDbTableStatsFunction', + message: 'collectDbTableStatsFunction', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'collectDbQueryStatsFunction', + message: 'collectDbQueryStatsFunction', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'rollupDbTableStatsDailyFunction', + message: 'rollupDbTableStatsDailyFunction', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'rollupDbQueryStatsDailyFunction', + message: 'rollupDbQueryStatsDailyFunction', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'interval', @@ -602,6 +702,7 @@ async function handleUpdate(argv: Partial>, prompter: In }, data: { databaseId: cleanedData.databaseId, + entityField: cleanedData.entityField, schemaId: cleanedData.schemaId, privateSchemaId: cleanedData.privateSchemaId, publicSchemaName: cleanedData.publicSchemaName, @@ -614,6 +715,10 @@ async function handleUpdate(argv: Partial>, prompter: In queryStatsLogTableName: cleanedData.queryStatsLogTableName, queryStatsDailyTableId: cleanedData.queryStatsDailyTableId, queryStatsDailyTableName: cleanedData.queryStatsDailyTableName, + collectDbTableStatsFunction: cleanedData.collectDbTableStatsFunction, + collectDbQueryStatsFunction: cleanedData.collectDbQueryStatsFunction, + rollupDbTableStatsDailyFunction: cleanedData.rollupDbTableStatsDailyFunction, + rollupDbQueryStatsDailyFunction: cleanedData.rollupDbQueryStatsDailyFunction, interval: cleanedData.interval, retention: cleanedData.retention, premake: cleanedData.premake, @@ -626,6 +731,7 @@ async function handleUpdate(argv: Partial>, prompter: In select: { id: true, databaseId: true, + entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, @@ -638,6 +744,10 @@ async function handleUpdate(argv: Partial>, prompter: In queryStatsLogTableName: true, queryStatsDailyTableId: true, queryStatsDailyTableName: true, + collectDbTableStatsFunction: true, + collectDbQueryStatsFunction: true, + rollupDbTableStatsDailyFunction: true, + rollupDbQueryStatsDailyFunction: true, interval: true, retention: true, premake: true, diff --git a/sdk/constructive-cli/src/modules/cli/commands/entity-type-provision.ts b/sdk/constructive-cli/src/modules/cli/commands/entity-type-provision.ts index db10301c25..0156e9902f 100644 --- a/sdk/constructive-cli/src/modules/cli/commands/entity-type-provision.ts +++ b/sdk/constructive-cli/src/modules/cli/commands/entity-type-provision.ts @@ -52,7 +52,6 @@ const fieldSchema: FieldSchema = { outDefinitionsTableId: 'uuid', outInvocationsTableId: 'uuid', outExecutionLogsTableId: 'uuid', - outSecretDefinitionsTableId: 'uuid', outGraphModuleId: 'uuid', outGraphsTableId: 'uuid', outAgentModuleId: 'uuid', @@ -144,7 +143,6 @@ async function handleList(argv: Partial>, _prompter: Inq outDefinitionsTableId: true, outInvocationsTableId: true, outExecutionLogsTableId: true, - outSecretDefinitionsTableId: true, outGraphModuleId: true, outGraphsTableId: true, outAgentModuleId: true, @@ -208,7 +206,6 @@ async function handleFindFirst(argv: Partial>, _prompter outDefinitionsTableId: true, outInvocationsTableId: true, outExecutionLogsTableId: true, - outSecretDefinitionsTableId: true, outGraphModuleId: true, outGraphsTableId: true, outAgentModuleId: true, @@ -284,7 +281,6 @@ async function handleGet(argv: Partial>, prompter: Inqui outDefinitionsTableId: true, outInvocationsTableId: true, outExecutionLogsTableId: true, - outSecretDefinitionsTableId: true, outGraphModuleId: true, outGraphsTableId: true, outAgentModuleId: true, @@ -545,13 +541,6 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, - { - type: 'text', - name: 'outSecretDefinitionsTableId', - message: 'outSecretDefinitionsTableId', - required: false, - skipPrompt: true, - }, { type: 'text', name: 'outGraphModuleId', @@ -618,7 +607,6 @@ async function handleCreate(argv: Partial>, prompter: In outDefinitionsTableId: cleanedData.outDefinitionsTableId, outInvocationsTableId: cleanedData.outInvocationsTableId, outExecutionLogsTableId: cleanedData.outExecutionLogsTableId, - outSecretDefinitionsTableId: cleanedData.outSecretDefinitionsTableId, outGraphModuleId: cleanedData.outGraphModuleId, outGraphsTableId: cleanedData.outGraphsTableId, outAgentModuleId: cleanedData.outAgentModuleId, @@ -660,7 +648,6 @@ async function handleCreate(argv: Partial>, prompter: In outDefinitionsTableId: true, outInvocationsTableId: true, outExecutionLogsTableId: true, - outSecretDefinitionsTableId: true, outGraphModuleId: true, outGraphsTableId: true, outAgentModuleId: true, @@ -927,13 +914,6 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, - { - type: 'text', - name: 'outSecretDefinitionsTableId', - message: 'outSecretDefinitionsTableId', - required: false, - skipPrompt: true, - }, { type: 'text', name: 'outGraphModuleId', @@ -1000,7 +980,6 @@ async function handleUpdate(argv: Partial>, prompter: In outDefinitionsTableId: cleanedData.outDefinitionsTableId, outInvocationsTableId: cleanedData.outInvocationsTableId, outExecutionLogsTableId: cleanedData.outExecutionLogsTableId, - outSecretDefinitionsTableId: cleanedData.outSecretDefinitionsTableId, outGraphModuleId: cleanedData.outGraphModuleId, outGraphsTableId: cleanedData.outGraphsTableId, outAgentModuleId: cleanedData.outAgentModuleId, @@ -1042,7 +1021,6 @@ async function handleUpdate(argv: Partial>, prompter: In outDefinitionsTableId: true, outInvocationsTableId: true, outExecutionLogsTableId: true, - outSecretDefinitionsTableId: true, outGraphModuleId: true, outGraphsTableId: true, outAgentModuleId: true, 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 9061fa3368..afc4f9827c 100644 --- a/sdk/constructive-cli/src/modules/cli/commands/events-module.ts +++ b/sdk/constructive-cli/src/modules/cli/commands/events-module.ts @@ -18,6 +18,7 @@ import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; const fieldSchema: FieldSchema = { id: 'uuid', databaseId: 'uuid', + entityField: 'string', schemaId: 'uuid', privateSchemaId: 'uuid', publicSchemaName: 'string', @@ -44,7 +45,6 @@ const fieldSchema: FieldSchema = { tgEventBool: 'string', upsertAggregate: 'string', tgUpdateAggregates: 'string', - pruneEvents: 'string', stepsRequired: 'string', levelAchieved: 'string', tgCheckAchievements: 'string', @@ -114,6 +114,7 @@ async function handleList(argv: Partial>, _prompter: Inq const defaultSelect = { id: true, databaseId: true, + entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, @@ -140,7 +141,6 @@ async function handleList(argv: Partial>, _prompter: Inq tgEventBool: true, upsertAggregate: true, tgUpdateAggregates: true, - pruneEvents: true, stepsRequired: true, levelAchieved: true, tgCheckAchievements: true, @@ -178,6 +178,7 @@ async function handleFindFirst(argv: Partial>, _prompter const defaultSelect = { id: true, databaseId: true, + entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, @@ -204,7 +205,6 @@ async function handleFindFirst(argv: Partial>, _prompter tgEventBool: true, upsertAggregate: true, tgUpdateAggregates: true, - pruneEvents: true, stepsRequired: true, levelAchieved: true, tgCheckAchievements: true, @@ -254,6 +254,7 @@ async function handleGet(argv: Partial>, prompter: Inqui select: { id: true, databaseId: true, + entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, @@ -280,7 +281,6 @@ async function handleGet(argv: Partial>, prompter: Inqui tgEventBool: true, upsertAggregate: true, tgUpdateAggregates: true, - pruneEvents: true, stepsRequired: true, levelAchieved: true, tgCheckAchievements: true, @@ -317,6 +317,13 @@ async function handleCreate(argv: Partial>, prompter: In message: 'databaseId', required: true, }, + { + type: 'text', + name: 'entityField', + message: 'entityField', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'schemaId', @@ -499,13 +506,6 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, - { - type: 'text', - name: 'pruneEvents', - message: 'pruneEvents', - required: false, - skipPrompt: true, - }, { type: 'text', name: 'stepsRequired', @@ -622,6 +622,7 @@ async function handleCreate(argv: Partial>, prompter: In .create({ data: { databaseId: cleanedData.databaseId, + entityField: cleanedData.entityField, schemaId: cleanedData.schemaId, privateSchemaId: cleanedData.privateSchemaId, publicSchemaName: cleanedData.publicSchemaName, @@ -648,7 +649,6 @@ async function handleCreate(argv: Partial>, prompter: In tgEventBool: cleanedData.tgEventBool, upsertAggregate: cleanedData.upsertAggregate, tgUpdateAggregates: cleanedData.tgUpdateAggregates, - pruneEvents: cleanedData.pruneEvents, stepsRequired: cleanedData.stepsRequired, levelAchieved: cleanedData.levelAchieved, tgCheckAchievements: cleanedData.tgCheckAchievements, @@ -668,6 +668,7 @@ async function handleCreate(argv: Partial>, prompter: In select: { id: true, databaseId: true, + entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, @@ -694,7 +695,6 @@ async function handleCreate(argv: Partial>, prompter: In tgEventBool: true, upsertAggregate: true, tgUpdateAggregates: true, - pruneEvents: true, stepsRequired: true, levelAchieved: true, tgCheckAchievements: true, @@ -737,6 +737,13 @@ async function handleUpdate(argv: Partial>, prompter: In message: 'databaseId', required: false, }, + { + type: 'text', + name: 'entityField', + message: 'entityField', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'schemaId', @@ -919,13 +926,6 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, - { - type: 'text', - name: 'pruneEvents', - message: 'pruneEvents', - required: false, - skipPrompt: true, - }, { type: 'text', name: 'stepsRequired', @@ -1042,6 +1042,7 @@ async function handleUpdate(argv: Partial>, prompter: In }, data: { databaseId: cleanedData.databaseId, + entityField: cleanedData.entityField, schemaId: cleanedData.schemaId, privateSchemaId: cleanedData.privateSchemaId, publicSchemaName: cleanedData.publicSchemaName, @@ -1068,7 +1069,6 @@ async function handleUpdate(argv: Partial>, prompter: In tgEventBool: cleanedData.tgEventBool, upsertAggregate: cleanedData.upsertAggregate, tgUpdateAggregates: cleanedData.tgUpdateAggregates, - pruneEvents: cleanedData.pruneEvents, stepsRequired: cleanedData.stepsRequired, levelAchieved: cleanedData.levelAchieved, tgCheckAchievements: cleanedData.tgCheckAchievements, @@ -1088,6 +1088,7 @@ async function handleUpdate(argv: Partial>, prompter: In select: { id: true, databaseId: true, + entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, @@ -1114,7 +1115,6 @@ async function handleUpdate(argv: Partial>, prompter: In tgEventBool: true, upsertAggregate: true, tgUpdateAggregates: true, - pruneEvents: true, stepsRequired: true, levelAchieved: true, tgCheckAchievements: true, 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 e30486580a..438e0c62ce 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,6 +18,7 @@ import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; const fieldSchema: FieldSchema = { id: 'uuid', databaseId: 'uuid', + entityField: 'string', schemaId: 'uuid', privateSchemaId: 'uuid', publicSchemaName: 'string', @@ -90,6 +91,7 @@ async function handleList(argv: Partial>, _prompter: Inq const defaultSelect = { id: true, databaseId: true, + entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, @@ -134,6 +136,7 @@ async function handleFindFirst(argv: Partial>, _prompter const defaultSelect = { id: true, databaseId: true, + entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, @@ -190,6 +193,7 @@ async function handleGet(argv: Partial>, prompter: Inqui select: { id: true, databaseId: true, + entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, @@ -229,6 +233,13 @@ async function handleCreate(argv: Partial>, prompter: In message: 'databaseId', required: true, }, + { + type: 'text', + name: 'entityField', + message: 'entityField', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'schemaId', @@ -366,6 +377,7 @@ async function handleCreate(argv: Partial>, prompter: In .create({ data: { databaseId: cleanedData.databaseId, + entityField: cleanedData.entityField, schemaId: cleanedData.schemaId, privateSchemaId: cleanedData.privateSchemaId, publicSchemaName: cleanedData.publicSchemaName, @@ -388,6 +400,7 @@ async function handleCreate(argv: Partial>, prompter: In select: { id: true, databaseId: true, + entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, @@ -433,6 +446,13 @@ async function handleUpdate(argv: Partial>, prompter: In message: 'databaseId', required: false, }, + { + type: 'text', + name: 'entityField', + message: 'entityField', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'schemaId', @@ -570,6 +590,7 @@ async function handleUpdate(argv: Partial>, prompter: In }, data: { databaseId: cleanedData.databaseId, + entityField: cleanedData.entityField, schemaId: cleanedData.schemaId, privateSchemaId: cleanedData.privateSchemaId, publicSchemaName: cleanedData.publicSchemaName, @@ -592,6 +613,7 @@ async function handleUpdate(argv: Partial>, prompter: In select: { id: true, databaseId: true, + entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: 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 386104c734..c746c43ca4 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 @@ -18,6 +18,7 @@ import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; const fieldSchema: FieldSchema = { id: 'uuid', databaseId: 'uuid', + entityField: 'string', schemaId: 'uuid', privateSchemaId: 'uuid', publicSchemaName: 'string', @@ -88,6 +89,7 @@ async function handleList(argv: Partial>, _prompter: Inq const defaultSelect = { id: true, databaseId: true, + entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, @@ -130,6 +132,7 @@ async function handleFindFirst(argv: Partial>, _prompter const defaultSelect = { id: true, databaseId: true, + entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, @@ -184,6 +187,7 @@ async function handleGet(argv: Partial>, prompter: Inqui select: { id: true, databaseId: true, + entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, @@ -221,6 +225,13 @@ async function handleCreate(argv: Partial>, prompter: In message: 'databaseId', required: true, }, + { + type: 'text', + name: 'entityField', + message: 'entityField', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'schemaId', @@ -344,6 +355,7 @@ async function handleCreate(argv: Partial>, prompter: In .create({ data: { databaseId: cleanedData.databaseId, + entityField: cleanedData.entityField, schemaId: cleanedData.schemaId, privateSchemaId: cleanedData.privateSchemaId, publicSchemaName: cleanedData.publicSchemaName, @@ -364,6 +376,7 @@ async function handleCreate(argv: Partial>, prompter: In select: { id: true, databaseId: true, + entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, @@ -407,6 +420,13 @@ async function handleUpdate(argv: Partial>, prompter: In message: 'databaseId', required: false, }, + { + type: 'text', + name: 'entityField', + message: 'entityField', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'schemaId', @@ -530,6 +550,7 @@ async function handleUpdate(argv: Partial>, prompter: In }, data: { databaseId: cleanedData.databaseId, + entityField: cleanedData.entityField, schemaId: cleanedData.schemaId, privateSchemaId: cleanedData.privateSchemaId, publicSchemaName: cleanedData.publicSchemaName, @@ -550,6 +571,7 @@ async function handleUpdate(argv: Partial>, prompter: In select: { id: true, databaseId: true, + entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: 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 3bb2cd0301..fadd6243ff 100644 --- a/sdk/constructive-cli/src/modules/cli/commands/function-module.ts +++ b/sdk/constructive-cli/src/modules/cli/commands/function-module.ts @@ -18,14 +18,13 @@ import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; const fieldSchema: FieldSchema = { id: 'uuid', databaseId: 'uuid', + entityField: 'string', schemaId: 'uuid', privateSchemaId: 'uuid', publicSchemaName: 'string', privateSchemaName: 'string', definitionsTableId: 'uuid', - secretDefinitionsTableId: 'uuid', definitionsTableName: 'string', - secretDefinitionsTableName: 'string', apiName: 'string', privateApiName: 'string', scope: 'string', @@ -88,14 +87,13 @@ async function handleList(argv: Partial>, _prompter: Inq const defaultSelect = { id: true, databaseId: true, + entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, definitionsTableId: true, - secretDefinitionsTableId: true, definitionsTableName: true, - secretDefinitionsTableName: true, apiName: true, privateApiName: true, scope: true, @@ -126,14 +124,13 @@ async function handleFindFirst(argv: Partial>, _prompter const defaultSelect = { id: true, databaseId: true, + entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, definitionsTableId: true, - secretDefinitionsTableId: true, definitionsTableName: true, - secretDefinitionsTableName: true, apiName: true, privateApiName: true, scope: true, @@ -176,14 +173,13 @@ async function handleGet(argv: Partial>, prompter: Inqui select: { id: true, databaseId: true, + entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, definitionsTableId: true, - secretDefinitionsTableId: true, definitionsTableName: true, - secretDefinitionsTableName: true, apiName: true, privateApiName: true, scope: true, @@ -213,6 +209,13 @@ async function handleCreate(argv: Partial>, prompter: In message: 'databaseId', required: true, }, + { + type: 'text', + name: 'entityField', + message: 'entityField', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'schemaId', @@ -248,13 +251,6 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, - { - type: 'text', - name: 'secretDefinitionsTableId', - message: 'secretDefinitionsTableId', - required: false, - skipPrompt: true, - }, { type: 'text', name: 'definitionsTableName', @@ -262,13 +258,6 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, - { - type: 'text', - name: 'secretDefinitionsTableName', - message: 'secretDefinitionsTableName', - required: false, - skipPrompt: true, - }, { type: 'text', name: 'apiName', @@ -336,14 +325,13 @@ async function handleCreate(argv: Partial>, prompter: In .create({ data: { databaseId: cleanedData.databaseId, + entityField: cleanedData.entityField, schemaId: cleanedData.schemaId, privateSchemaId: cleanedData.privateSchemaId, publicSchemaName: cleanedData.publicSchemaName, privateSchemaName: cleanedData.privateSchemaName, definitionsTableId: cleanedData.definitionsTableId, - secretDefinitionsTableId: cleanedData.secretDefinitionsTableId, definitionsTableName: cleanedData.definitionsTableName, - secretDefinitionsTableName: cleanedData.secretDefinitionsTableName, apiName: cleanedData.apiName, privateApiName: cleanedData.privateApiName, scope: cleanedData.scope, @@ -356,14 +344,13 @@ async function handleCreate(argv: Partial>, prompter: In select: { id: true, databaseId: true, + entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, definitionsTableId: true, - secretDefinitionsTableId: true, definitionsTableName: true, - secretDefinitionsTableName: true, apiName: true, privateApiName: true, scope: true, @@ -399,6 +386,13 @@ async function handleUpdate(argv: Partial>, prompter: In message: 'databaseId', required: false, }, + { + type: 'text', + name: 'entityField', + message: 'entityField', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'schemaId', @@ -434,13 +428,6 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, - { - type: 'text', - name: 'secretDefinitionsTableId', - message: 'secretDefinitionsTableId', - required: false, - skipPrompt: true, - }, { type: 'text', name: 'definitionsTableName', @@ -448,13 +435,6 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, - { - type: 'text', - name: 'secretDefinitionsTableName', - message: 'secretDefinitionsTableName', - required: false, - skipPrompt: true, - }, { type: 'text', name: 'apiName', @@ -522,14 +502,13 @@ async function handleUpdate(argv: Partial>, prompter: In }, data: { databaseId: cleanedData.databaseId, + entityField: cleanedData.entityField, schemaId: cleanedData.schemaId, privateSchemaId: cleanedData.privateSchemaId, publicSchemaName: cleanedData.publicSchemaName, privateSchemaName: cleanedData.privateSchemaName, definitionsTableId: cleanedData.definitionsTableId, - secretDefinitionsTableId: cleanedData.secretDefinitionsTableId, definitionsTableName: cleanedData.definitionsTableName, - secretDefinitionsTableName: cleanedData.secretDefinitionsTableName, apiName: cleanedData.apiName, privateApiName: cleanedData.privateApiName, scope: cleanedData.scope, @@ -542,14 +521,13 @@ async function handleUpdate(argv: Partial>, prompter: In select: { id: true, databaseId: true, + entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, definitionsTableId: true, - secretDefinitionsTableId: true, definitionsTableName: true, - secretDefinitionsTableName: true, apiName: true, privateApiName: true, scope: 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 9956ad6ae1..b55e06c20f 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 @@ -18,6 +18,7 @@ import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; const fieldSchema: FieldSchema = { id: 'uuid', databaseId: 'uuid', + entityField: 'string', schemaId: 'uuid', privateSchemaId: 'uuid', publicSchemaName: 'string', @@ -92,6 +93,7 @@ async function handleList(argv: Partial>, _prompter: Inq const defaultSelect = { id: true, databaseId: true, + entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, @@ -138,6 +140,7 @@ async function handleFindFirst(argv: Partial>, _prompter const defaultSelect = { id: true, databaseId: true, + entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, @@ -196,6 +199,7 @@ async function handleGet(argv: Partial>, prompter: Inqui select: { id: true, databaseId: true, + entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, @@ -237,6 +241,13 @@ async function handleCreate(argv: Partial>, prompter: In message: 'databaseId', required: true, }, + { + type: 'text', + name: 'entityField', + message: 'entityField', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'schemaId', @@ -380,6 +391,7 @@ async function handleCreate(argv: Partial>, prompter: In .create({ data: { databaseId: cleanedData.databaseId, + entityField: cleanedData.entityField, schemaId: cleanedData.schemaId, privateSchemaId: cleanedData.privateSchemaId, publicSchemaName: cleanedData.publicSchemaName, @@ -403,6 +415,7 @@ async function handleCreate(argv: Partial>, prompter: In select: { id: true, databaseId: true, + entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, @@ -450,6 +463,13 @@ async function handleUpdate(argv: Partial>, prompter: In message: 'databaseId', required: false, }, + { + type: 'text', + name: 'entityField', + message: 'entityField', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'schemaId', @@ -593,6 +613,7 @@ async function handleUpdate(argv: Partial>, prompter: In }, data: { databaseId: cleanedData.databaseId, + entityField: cleanedData.entityField, schemaId: cleanedData.schemaId, privateSchemaId: cleanedData.privateSchemaId, publicSchemaName: cleanedData.publicSchemaName, @@ -616,6 +637,7 @@ async function handleUpdate(argv: Partial>, prompter: In select: { id: true, databaseId: true, + entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: 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 00c4a64de1..c507522d30 100644 --- a/sdk/constructive-cli/src/modules/cli/commands/graph-module.ts +++ b/sdk/constructive-cli/src/modules/cli/commands/graph-module.ts @@ -18,6 +18,7 @@ import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; const fieldSchema: FieldSchema = { id: 'uuid', databaseId: 'uuid', + entityField: 'string', publicSchemaId: 'uuid', privateSchemaId: 'uuid', publicSchemaName: 'string', @@ -87,6 +88,7 @@ async function handleList(argv: Partial>, _prompter: Inq const defaultSelect = { id: true, databaseId: true, + entityField: true, publicSchemaId: true, privateSchemaId: true, publicSchemaName: true, @@ -124,6 +126,7 @@ async function handleFindFirst(argv: Partial>, _prompter const defaultSelect = { id: true, databaseId: true, + entityField: true, publicSchemaId: true, privateSchemaId: true, publicSchemaName: true, @@ -173,6 +176,7 @@ async function handleGet(argv: Partial>, prompter: Inqui select: { id: true, databaseId: true, + entityField: true, publicSchemaId: true, privateSchemaId: true, publicSchemaName: true, @@ -209,6 +213,13 @@ async function handleCreate(argv: Partial>, prompter: In message: 'databaseId', required: true, }, + { + type: 'text', + name: 'entityField', + message: 'entityField', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'publicSchemaId', @@ -317,6 +328,7 @@ async function handleCreate(argv: Partial>, prompter: In .create({ data: { databaseId: cleanedData.databaseId, + entityField: cleanedData.entityField, publicSchemaId: cleanedData.publicSchemaId, privateSchemaId: cleanedData.privateSchemaId, publicSchemaName: cleanedData.publicSchemaName, @@ -335,6 +347,7 @@ async function handleCreate(argv: Partial>, prompter: In select: { id: true, databaseId: true, + entityField: true, publicSchemaId: true, privateSchemaId: true, publicSchemaName: true, @@ -377,6 +390,13 @@ async function handleUpdate(argv: Partial>, prompter: In message: 'databaseId', required: false, }, + { + type: 'text', + name: 'entityField', + message: 'entityField', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'publicSchemaId', @@ -485,6 +505,7 @@ async function handleUpdate(argv: Partial>, prompter: In }, data: { databaseId: cleanedData.databaseId, + entityField: cleanedData.entityField, publicSchemaId: cleanedData.publicSchemaId, privateSchemaId: cleanedData.privateSchemaId, publicSchemaName: cleanedData.publicSchemaName, @@ -503,6 +524,7 @@ async function handleUpdate(argv: Partial>, prompter: In select: { id: true, databaseId: true, + entityField: true, publicSchemaId: true, privateSchemaId: true, publicSchemaName: 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 c3487890d4..6b4a7058dd 100644 --- a/sdk/constructive-cli/src/modules/cli/commands/hierarchy-module.ts +++ b/sdk/constructive-cli/src/modules/cli/commands/hierarchy-module.ts @@ -18,6 +18,7 @@ import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; const fieldSchema: FieldSchema = { id: 'uuid', databaseId: 'uuid', + entityField: 'string', schemaId: 'uuid', privateSchemaId: 'uuid', chartEdgesTableId: 'uuid', @@ -92,6 +93,7 @@ async function handleList(argv: Partial>, _prompter: Inq const defaultSelect = { id: true, databaseId: true, + entityField: true, schemaId: true, privateSchemaId: true, chartEdgesTableId: true, @@ -134,6 +136,7 @@ async function handleFindFirst(argv: Partial>, _prompter const defaultSelect = { id: true, databaseId: true, + entityField: true, schemaId: true, privateSchemaId: true, chartEdgesTableId: true, @@ -188,6 +191,7 @@ async function handleGet(argv: Partial>, prompter: Inqui select: { id: true, databaseId: true, + entityField: true, schemaId: true, privateSchemaId: true, chartEdgesTableId: true, @@ -229,6 +233,13 @@ async function handleCreate(argv: Partial>, prompter: In message: 'databaseId', required: true, }, + { + type: 'text', + name: 'entityField', + message: 'entityField', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'schemaId', @@ -371,6 +382,7 @@ async function handleCreate(argv: Partial>, prompter: In .create({ data: { databaseId: cleanedData.databaseId, + entityField: cleanedData.entityField, schemaId: cleanedData.schemaId, privateSchemaId: cleanedData.privateSchemaId, chartEdgesTableId: cleanedData.chartEdgesTableId, @@ -394,6 +406,7 @@ async function handleCreate(argv: Partial>, prompter: In select: { id: true, databaseId: true, + entityField: true, schemaId: true, privateSchemaId: true, chartEdgesTableId: true, @@ -441,6 +454,13 @@ async function handleUpdate(argv: Partial>, prompter: In message: 'databaseId', required: false, }, + { + type: 'text', + name: 'entityField', + message: 'entityField', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'schemaId', @@ -583,6 +603,7 @@ async function handleUpdate(argv: Partial>, prompter: In }, data: { databaseId: cleanedData.databaseId, + entityField: cleanedData.entityField, schemaId: cleanedData.schemaId, privateSchemaId: cleanedData.privateSchemaId, chartEdgesTableId: cleanedData.chartEdgesTableId, @@ -606,6 +627,7 @@ async function handleUpdate(argv: Partial>, prompter: In select: { id: true, databaseId: true, + entityField: true, schemaId: true, privateSchemaId: true, chartEdgesTableId: true, diff --git a/sdk/constructive-cli/src/modules/cli/commands/identity-providers-module.ts b/sdk/constructive-cli/src/modules/cli/commands/identity-providers-module.ts index eea6c037b9..4c4c9e33bd 100644 --- a/sdk/constructive-cli/src/modules/cli/commands/identity-providers-module.ts +++ b/sdk/constructive-cli/src/modules/cli/commands/identity-providers-module.ts @@ -18,6 +18,7 @@ import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; const fieldSchema: FieldSchema = { id: 'uuid', databaseId: 'uuid', + entityField: 'string', schemaId: 'uuid', privateSchemaId: 'uuid', publicSchemaName: 'string', @@ -83,6 +84,7 @@ async function handleList(argv: Partial>, _prompter: Inq const defaultSelect = { id: true, databaseId: true, + entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, @@ -120,6 +122,7 @@ async function handleFindFirst(argv: Partial>, _prompter const defaultSelect = { id: true, databaseId: true, + entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, @@ -169,6 +172,7 @@ async function handleGet(argv: Partial>, prompter: Inqui select: { id: true, databaseId: true, + entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, @@ -201,6 +205,13 @@ async function handleCreate(argv: Partial>, prompter: In message: 'databaseId', required: true, }, + { + type: 'text', + name: 'entityField', + message: 'entityField', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'schemaId', @@ -289,6 +300,7 @@ async function handleCreate(argv: Partial>, prompter: In .create({ data: { databaseId: cleanedData.databaseId, + entityField: cleanedData.entityField, schemaId: cleanedData.schemaId, privateSchemaId: cleanedData.privateSchemaId, publicSchemaName: cleanedData.publicSchemaName, @@ -304,6 +316,7 @@ async function handleCreate(argv: Partial>, prompter: In select: { id: true, databaseId: true, + entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, @@ -342,6 +355,13 @@ async function handleUpdate(argv: Partial>, prompter: In message: 'databaseId', required: false, }, + { + type: 'text', + name: 'entityField', + message: 'entityField', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'schemaId', @@ -430,6 +450,7 @@ async function handleUpdate(argv: Partial>, prompter: In }, data: { databaseId: cleanedData.databaseId, + entityField: cleanedData.entityField, schemaId: cleanedData.schemaId, privateSchemaId: cleanedData.privateSchemaId, publicSchemaName: cleanedData.publicSchemaName, @@ -445,6 +466,7 @@ async function handleUpdate(argv: Partial>, prompter: In select: { id: true, databaseId: true, + entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, 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 22049731a4..c7c53a482f 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 @@ -18,6 +18,7 @@ import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; const fieldSchema: FieldSchema = { id: 'uuid', databaseId: 'uuid', + entityField: 'string', schemaId: 'uuid', privateSchemaId: 'uuid', publicSchemaName: 'string', @@ -89,6 +90,7 @@ async function handleList(argv: Partial>, _prompter: Inq const defaultSelect = { id: true, databaseId: true, + entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, @@ -132,6 +134,7 @@ async function handleFindFirst(argv: Partial>, _prompter const defaultSelect = { id: true, databaseId: true, + entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, @@ -187,6 +190,7 @@ async function handleGet(argv: Partial>, prompter: Inqui select: { id: true, databaseId: true, + entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, @@ -225,6 +229,13 @@ async function handleCreate(argv: Partial>, prompter: In message: 'databaseId', required: true, }, + { + type: 'text', + name: 'entityField', + message: 'entityField', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'schemaId', @@ -355,6 +366,7 @@ async function handleCreate(argv: Partial>, prompter: In .create({ data: { databaseId: cleanedData.databaseId, + entityField: cleanedData.entityField, schemaId: cleanedData.schemaId, privateSchemaId: cleanedData.privateSchemaId, publicSchemaName: cleanedData.publicSchemaName, @@ -376,6 +388,7 @@ async function handleCreate(argv: Partial>, prompter: In select: { id: true, databaseId: true, + entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, @@ -420,6 +433,13 @@ async function handleUpdate(argv: Partial>, prompter: In message: 'databaseId', required: false, }, + { + type: 'text', + name: 'entityField', + message: 'entityField', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'schemaId', @@ -550,6 +570,7 @@ async function handleUpdate(argv: Partial>, prompter: In }, data: { databaseId: cleanedData.databaseId, + entityField: cleanedData.entityField, schemaId: cleanedData.schemaId, privateSchemaId: cleanedData.privateSchemaId, publicSchemaName: cleanedData.publicSchemaName, @@ -571,6 +592,7 @@ async function handleUpdate(argv: Partial>, prompter: In select: { id: true, databaseId: true, + entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, diff --git a/sdk/constructive-cli/src/modules/cli/commands/infra-config-module.ts b/sdk/constructive-cli/src/modules/cli/commands/infra-config-module.ts new file mode 100644 index 0000000000..9c154a56a9 --- /dev/null +++ b/sdk/constructive-cli/src/modules/cli/commands/infra-config-module.ts @@ -0,0 +1,559 @@ +/** + * CLI commands for InfraConfigModule + * @generated 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 { + CreateInfraConfigModuleInput, + InfraConfigModulePatch, + InfraConfigModuleSelect, + InfraConfigModuleFilter, + InfraConfigModuleOrderBy, +} from '../../orm/input-types'; +import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; +const fieldSchema: FieldSchema = { + id: 'uuid', + databaseId: 'uuid', + entityField: 'string', + schemaId: 'uuid', + privateSchemaId: 'uuid', + publicSchemaName: 'string', + privateSchemaName: 'string', + configTableId: 'uuid', + configTableName: 'string', + apiName: 'string', + privateApiName: 'string', + scope: 'string', + prefix: 'string', + entityTableId: 'uuid', + policies: 'json', + provisions: 'json', +}; +const usage = + '\ninfra-config-module \n\nCommands:\n list List infraConfigModule records\n find-first Find first matching infraConfigModule record\n get Get a infraConfigModule by ID\n create Create a new infraConfigModule\n update Update an existing infraConfigModule\n delete Delete a infraConfigModule\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\n --help, -h Show this help message\n'; +export default async ( + argv: Partial>, + prompter: Inquirerer, + _options: CLIOptions +) => { + if (argv.help || argv.h) { + console.log(usage); + process.exit(0); + } + const { first: subcommand, newArgv } = extractFirst(argv); + if (!subcommand) { + const answer = await prompter.prompt(argv, [ + { + type: 'autocomplete', + name: 'subcommand', + message: 'What do you want to do?', + options: ['list', 'find-first', 'get', 'create', 'update', 'delete'], + }, + ]); + return handleTableSubcommand(answer.subcommand as string, newArgv, prompter); + } + return handleTableSubcommand(subcommand, newArgv, prompter); +}; +async function handleTableSubcommand( + subcommand: string, + argv: Partial>, + prompter: Inquirerer +) { + switch (subcommand) { + case 'list': + return handleList(argv, prompter); + case 'find-first': + return handleFindFirst(argv, prompter); + case 'get': + return handleGet(argv, prompter); + case 'create': + return handleCreate(argv, prompter); + case 'update': + return handleUpdate(argv, prompter); + case 'delete': + return handleDelete(argv, prompter); + default: + console.log(usage); + process.exit(1); + } +} +async function handleList(argv: Partial>, _prompter: Inquirerer) { + try { + const defaultSelect = { + id: true, + databaseId: true, + entityField: true, + schemaId: true, + privateSchemaId: true, + publicSchemaName: true, + privateSchemaName: true, + configTableId: true, + configTableName: true, + apiName: true, + privateApiName: true, + scope: true, + prefix: true, + entityTableId: true, + policies: true, + provisions: true, + }; + const findManyArgs = parseFindManyArgs< + FindManyArgs & { + select: InfraConfigModuleSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.infraConfigModule.findMany(findManyArgs).execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to list records.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} +async function handleFindFirst(argv: Partial>, _prompter: Inquirerer) { + try { + const defaultSelect = { + id: true, + databaseId: true, + entityField: true, + schemaId: true, + privateSchemaId: true, + publicSchemaName: true, + privateSchemaName: true, + configTableId: true, + configTableName: true, + apiName: true, + privateApiName: true, + scope: true, + prefix: true, + entityTableId: true, + policies: true, + provisions: true, + }; + const findFirstArgs = parseFindFirstArgs< + FindFirstArgs & { + select: InfraConfigModuleSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.infraConfigModule.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.infraConfigModule + .findOne({ + id: answers.id as string, + select: { + id: true, + databaseId: true, + entityField: true, + schemaId: true, + privateSchemaId: true, + publicSchemaName: true, + privateSchemaName: true, + configTableId: true, + configTableName: true, + apiName: true, + privateApiName: true, + scope: true, + prefix: true, + entityTableId: true, + policies: true, + provisions: 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: 'schemaId', + message: 'schemaId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'privateSchemaId', + message: 'privateSchemaId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'publicSchemaName', + message: 'publicSchemaName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'privateSchemaName', + message: 'privateSchemaName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'configTableId', + message: 'configTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'configTableName', + message: 'configTableName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'apiName', + message: 'apiName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'privateApiName', + message: 'privateApiName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'scope', + message: 'scope', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'prefix', + message: 'prefix', + 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: 'json', + name: 'provisions', + message: 'provisions', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined( + answers, + fieldSchema + ) as CreateInfraConfigModuleInput['infraConfigModule']; + const client = getClient(); + const result = await client.infraConfigModule + .create({ + data: { + databaseId: cleanedData.databaseId, + entityField: cleanedData.entityField, + schemaId: cleanedData.schemaId, + privateSchemaId: cleanedData.privateSchemaId, + publicSchemaName: cleanedData.publicSchemaName, + privateSchemaName: cleanedData.privateSchemaName, + configTableId: cleanedData.configTableId, + configTableName: cleanedData.configTableName, + apiName: cleanedData.apiName, + privateApiName: cleanedData.privateApiName, + scope: cleanedData.scope, + prefix: cleanedData.prefix, + entityTableId: cleanedData.entityTableId, + policies: cleanedData.policies, + provisions: cleanedData.provisions, + }, + select: { + id: true, + databaseId: true, + entityField: true, + schemaId: true, + privateSchemaId: true, + publicSchemaName: true, + privateSchemaName: true, + configTableId: true, + configTableName: true, + apiName: true, + privateApiName: true, + scope: true, + prefix: true, + entityTableId: true, + policies: true, + provisions: true, + }, + }) + .execute(); + console.log(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: 'schemaId', + message: 'schemaId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'privateSchemaId', + message: 'privateSchemaId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'publicSchemaName', + message: 'publicSchemaName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'privateSchemaName', + message: 'privateSchemaName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'configTableId', + message: 'configTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'configTableName', + message: 'configTableName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'apiName', + message: 'apiName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'privateApiName', + message: 'privateApiName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'scope', + message: 'scope', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'prefix', + message: 'prefix', + 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: 'json', + name: 'provisions', + message: 'provisions', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined(answers, fieldSchema) as InfraConfigModulePatch; + const client = getClient(); + const result = await client.infraConfigModule + .update({ + where: { + id: answers.id as string, + }, + data: { + databaseId: cleanedData.databaseId, + entityField: cleanedData.entityField, + schemaId: cleanedData.schemaId, + privateSchemaId: cleanedData.privateSchemaId, + publicSchemaName: cleanedData.publicSchemaName, + privateSchemaName: cleanedData.privateSchemaName, + configTableId: cleanedData.configTableId, + configTableName: cleanedData.configTableName, + apiName: cleanedData.apiName, + privateApiName: cleanedData.privateApiName, + scope: cleanedData.scope, + prefix: cleanedData.prefix, + entityTableId: cleanedData.entityTableId, + policies: cleanedData.policies, + provisions: cleanedData.provisions, + }, + select: { + id: true, + databaseId: true, + entityField: true, + schemaId: true, + privateSchemaId: true, + publicSchemaName: true, + privateSchemaName: true, + configTableId: true, + configTableName: true, + apiName: true, + privateApiName: true, + scope: true, + prefix: true, + entityTableId: true, + policies: true, + provisions: 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.infraConfigModule + .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/config-secrets-module.ts b/sdk/constructive-cli/src/modules/cli/commands/infra-secrets-module.ts similarity index 76% rename from sdk/constructive-cli/src/modules/cli/commands/config-secrets-module.ts rename to sdk/constructive-cli/src/modules/cli/commands/infra-secrets-module.ts index 370e863b61..ac78071405 100644 --- a/sdk/constructive-cli/src/modules/cli/commands/config-secrets-module.ts +++ b/sdk/constructive-cli/src/modules/cli/commands/infra-secrets-module.ts @@ -1,5 +1,5 @@ /** - * CLI commands for ConfigSecretsModule + * CLI commands for InfraSecretsModule * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -8,11 +8,11 @@ import { getClient } from '../executor'; import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; import type { FieldSchema } from '../utils'; import type { - CreateConfigSecretsModuleInput, - ConfigSecretsModulePatch, - ConfigSecretsModuleSelect, - ConfigSecretsModuleFilter, - ConfigSecretsModuleOrderBy, + CreateInfraSecretsModuleInput, + InfraSecretsModulePatch, + InfraSecretsModuleSelect, + InfraSecretsModuleFilter, + InfraSecretsModuleOrderBy, } from '../../orm/input-types'; import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; const fieldSchema: FieldSchema = { @@ -22,20 +22,19 @@ const fieldSchema: FieldSchema = { privateSchemaId: 'uuid', publicSchemaName: 'string', privateSchemaName: 'string', - tableId: 'uuid', - configDefinitionsTableId: 'uuid', - tableName: 'string', + secretsTableId: 'uuid', + secretsTableName: 'string', apiName: 'string', privateApiName: 'string', scope: 'string', prefix: 'string', entityTableId: 'uuid', + entityField: 'string', policies: 'json', provisions: 'json', - hasConfig: 'boolean', }; const usage = - '\nconfig-secrets-module \n\nCommands:\n list List configSecretsModule records\n find-first Find first matching configSecretsModule record\n get Get a configSecretsModule by ID\n create Create a new configSecretsModule\n update Update an existing configSecretsModule\n delete Delete a configSecretsModule\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\n --help, -h Show this help message\n'; + '\ninfra-secrets-module \n\nCommands:\n list List infraSecretsModule records\n find-first Find first matching infraSecretsModule record\n get Get a infraSecretsModule by ID\n create Create a new infraSecretsModule\n update Update an existing infraSecretsModule\n delete Delete a infraSecretsModule\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (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, @@ -91,29 +90,28 @@ async function handleList(argv: Partial>, _prompter: Inq privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, - tableId: true, - configDefinitionsTableId: true, - tableName: true, + secretsTableId: true, + secretsTableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, + entityField: true, policies: true, provisions: true, - hasConfig: true, }; const findManyArgs = parseFindManyArgs< FindManyArgs< - ConfigSecretsModuleSelect, - ConfigSecretsModuleFilter, - ConfigSecretsModuleOrderBy + InfraSecretsModuleSelect, + InfraSecretsModuleFilter, + InfraSecretsModuleOrderBy > & { - select: ConfigSecretsModuleSelect; + select: InfraSecretsModuleSelect; } >(argv, defaultSelect); const client = getClient(); - const result = await client.configSecretsModule.findMany(findManyArgs).execute(); + const result = await client.infraSecretsModule.findMany(findManyArgs).execute(); console.log(JSON.stringify(result, null, 2)); } catch (error) { console.error('Failed to list records.'); @@ -132,29 +130,28 @@ async function handleFindFirst(argv: Partial>, _prompter privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, - tableId: true, - configDefinitionsTableId: true, - tableName: true, + secretsTableId: true, + secretsTableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, + entityField: true, policies: true, provisions: true, - hasConfig: true, }; const findFirstArgs = parseFindFirstArgs< FindFirstArgs< - ConfigSecretsModuleSelect, - ConfigSecretsModuleFilter, - ConfigSecretsModuleOrderBy + InfraSecretsModuleSelect, + InfraSecretsModuleFilter, + InfraSecretsModuleOrderBy > & { - select: ConfigSecretsModuleSelect; + select: InfraSecretsModuleSelect; } >(argv, defaultSelect); const client = getClient(); - const result = await client.configSecretsModule.findFirst(findFirstArgs).execute(); + const result = await client.infraSecretsModule.findFirst(findFirstArgs).execute(); console.log(JSON.stringify(result, null, 2)); } catch (error) { console.error('Failed to find record.'); @@ -175,7 +172,7 @@ async function handleGet(argv: Partial>, prompter: Inqui }, ]); const client = getClient(); - const result = await client.configSecretsModule + const result = await client.infraSecretsModule .findOne({ id: answers.id as string, select: { @@ -185,17 +182,16 @@ async function handleGet(argv: Partial>, prompter: Inqui privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, - tableId: true, - configDefinitionsTableId: true, - tableName: true, + secretsTableId: true, + secretsTableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, + entityField: true, policies: true, provisions: true, - hasConfig: true, }, }) .execute(); @@ -247,22 +243,15 @@ async function handleCreate(argv: Partial>, prompter: In }, { type: 'text', - name: 'tableId', - message: 'tableId', + name: 'secretsTableId', + message: 'secretsTableId', required: false, skipPrompt: true, }, { type: 'text', - name: 'configDefinitionsTableId', - message: 'configDefinitionsTableId', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'tableName', - message: 'tableName', + name: 'secretsTableName', + message: 'secretsTableName', required: false, skipPrompt: true, }, @@ -301,6 +290,13 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'entityField', + message: 'entityField', + required: false, + skipPrompt: true, + }, { type: 'json', name: 'policies', @@ -315,21 +311,14 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, - { - type: 'boolean', - name: 'hasConfig', - message: 'hasConfig', - required: false, - skipPrompt: true, - }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const cleanedData = stripUndefined( answers, fieldSchema - ) as CreateConfigSecretsModuleInput['configSecretsModule']; + ) as CreateInfraSecretsModuleInput['infraSecretsModule']; const client = getClient(); - const result = await client.configSecretsModule + const result = await client.infraSecretsModule .create({ data: { databaseId: cleanedData.databaseId, @@ -337,17 +326,16 @@ async function handleCreate(argv: Partial>, prompter: In privateSchemaId: cleanedData.privateSchemaId, publicSchemaName: cleanedData.publicSchemaName, privateSchemaName: cleanedData.privateSchemaName, - tableId: cleanedData.tableId, - configDefinitionsTableId: cleanedData.configDefinitionsTableId, - tableName: cleanedData.tableName, + secretsTableId: cleanedData.secretsTableId, + secretsTableName: cleanedData.secretsTableName, apiName: cleanedData.apiName, privateApiName: cleanedData.privateApiName, scope: cleanedData.scope, prefix: cleanedData.prefix, entityTableId: cleanedData.entityTableId, + entityField: cleanedData.entityField, policies: cleanedData.policies, provisions: cleanedData.provisions, - hasConfig: cleanedData.hasConfig, }, select: { id: true, @@ -356,17 +344,16 @@ async function handleCreate(argv: Partial>, prompter: In privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, - tableId: true, - configDefinitionsTableId: true, - tableName: true, + secretsTableId: true, + secretsTableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, + entityField: true, policies: true, provisions: true, - hasConfig: true, }, }) .execute(); @@ -424,22 +411,15 @@ async function handleUpdate(argv: Partial>, prompter: In }, { type: 'text', - name: 'tableId', - message: 'tableId', + name: 'secretsTableId', + message: 'secretsTableId', required: false, skipPrompt: true, }, { type: 'text', - name: 'configDefinitionsTableId', - message: 'configDefinitionsTableId', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'tableName', - message: 'tableName', + name: 'secretsTableName', + message: 'secretsTableName', required: false, skipPrompt: true, }, @@ -478,6 +458,13 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'entityField', + message: 'entityField', + required: false, + skipPrompt: true, + }, { type: 'json', name: 'policies', @@ -492,18 +479,11 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, - { - type: 'boolean', - name: 'hasConfig', - message: 'hasConfig', - required: false, - skipPrompt: true, - }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined(answers, fieldSchema) as ConfigSecretsModulePatch; + const cleanedData = stripUndefined(answers, fieldSchema) as InfraSecretsModulePatch; const client = getClient(); - const result = await client.configSecretsModule + const result = await client.infraSecretsModule .update({ where: { id: answers.id as string, @@ -514,17 +494,16 @@ async function handleUpdate(argv: Partial>, prompter: In privateSchemaId: cleanedData.privateSchemaId, publicSchemaName: cleanedData.publicSchemaName, privateSchemaName: cleanedData.privateSchemaName, - tableId: cleanedData.tableId, - configDefinitionsTableId: cleanedData.configDefinitionsTableId, - tableName: cleanedData.tableName, + secretsTableId: cleanedData.secretsTableId, + secretsTableName: cleanedData.secretsTableName, apiName: cleanedData.apiName, privateApiName: cleanedData.privateApiName, scope: cleanedData.scope, prefix: cleanedData.prefix, entityTableId: cleanedData.entityTableId, + entityField: cleanedData.entityField, policies: cleanedData.policies, provisions: cleanedData.provisions, - hasConfig: cleanedData.hasConfig, }, select: { id: true, @@ -533,17 +512,16 @@ async function handleUpdate(argv: Partial>, prompter: In privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, - tableId: true, - configDefinitionsTableId: true, - tableName: true, + secretsTableId: true, + secretsTableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, + entityField: true, policies: true, provisions: true, - hasConfig: true, }, }) .execute(); @@ -568,7 +546,7 @@ async function handleDelete(argv: Partial>, prompter: In ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const client = getClient(); - const result = await client.configSecretsModule + const result = await client.infraSecretsModule .delete({ where: { id: answers.id as string, diff --git a/sdk/constructive-cli/src/modules/cli/commands/integration-providers-module.ts b/sdk/constructive-cli/src/modules/cli/commands/integration-providers-module.ts new file mode 100644 index 0000000000..7746b4456c --- /dev/null +++ b/sdk/constructive-cli/src/modules/cli/commands/integration-providers-module.ts @@ -0,0 +1,523 @@ +/** + * CLI commands for IntegrationProvidersModule + * @generated 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 { + CreateIntegrationProvidersModuleInput, + IntegrationProvidersModulePatch, + IntegrationProvidersModuleSelect, + IntegrationProvidersModuleFilter, + IntegrationProvidersModuleOrderBy, +} from '../../orm/input-types'; +import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; +const fieldSchema: FieldSchema = { + id: 'uuid', + databaseId: 'uuid', + entityField: 'string', + schemaId: 'uuid', + privateSchemaId: 'uuid', + publicSchemaName: 'string', + privateSchemaName: 'string', + tableId: 'uuid', + tableName: 'string', + apiName: 'string', + privateApiName: 'string', + scope: 'string', + prefix: 'string', + entityTableId: 'uuid', +}; +const usage = + '\nintegration-providers-module \n\nCommands:\n list List integrationProvidersModule records\n find-first Find first matching integrationProvidersModule record\n get Get a integrationProvidersModule by ID\n create Create a new integrationProvidersModule\n update Update an existing integrationProvidersModule\n delete Delete a integrationProvidersModule\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\n --help, -h Show this help message\n'; +export default async ( + argv: Partial>, + prompter: Inquirerer, + _options: CLIOptions +) => { + if (argv.help || argv.h) { + console.log(usage); + process.exit(0); + } + const { first: subcommand, newArgv } = extractFirst(argv); + if (!subcommand) { + const answer = await prompter.prompt(argv, [ + { + type: 'autocomplete', + name: 'subcommand', + message: 'What do you want to do?', + options: ['list', 'find-first', 'get', 'create', 'update', 'delete'], + }, + ]); + return handleTableSubcommand(answer.subcommand as string, newArgv, prompter); + } + return handleTableSubcommand(subcommand, newArgv, prompter); +}; +async function handleTableSubcommand( + subcommand: string, + argv: Partial>, + prompter: Inquirerer +) { + switch (subcommand) { + case 'list': + return handleList(argv, prompter); + case 'find-first': + return handleFindFirst(argv, prompter); + case 'get': + return handleGet(argv, prompter); + case 'create': + return handleCreate(argv, prompter); + case 'update': + return handleUpdate(argv, prompter); + case 'delete': + return handleDelete(argv, prompter); + default: + console.log(usage); + process.exit(1); + } +} +async function handleList(argv: Partial>, _prompter: Inquirerer) { + try { + const defaultSelect = { + id: true, + databaseId: true, + entityField: true, + schemaId: true, + privateSchemaId: true, + publicSchemaName: true, + privateSchemaName: true, + tableId: true, + tableName: true, + apiName: true, + privateApiName: true, + scope: true, + prefix: true, + entityTableId: true, + }; + const findManyArgs = parseFindManyArgs< + FindManyArgs< + IntegrationProvidersModuleSelect, + IntegrationProvidersModuleFilter, + IntegrationProvidersModuleOrderBy + > & { + select: IntegrationProvidersModuleSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.integrationProvidersModule.findMany(findManyArgs).execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to list records.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} +async function handleFindFirst(argv: Partial>, _prompter: Inquirerer) { + try { + const defaultSelect = { + id: true, + databaseId: true, + entityField: true, + schemaId: true, + privateSchemaId: true, + publicSchemaName: true, + privateSchemaName: true, + tableId: true, + tableName: true, + apiName: true, + privateApiName: true, + scope: true, + prefix: true, + entityTableId: true, + }; + const findFirstArgs = parseFindFirstArgs< + FindFirstArgs< + IntegrationProvidersModuleSelect, + IntegrationProvidersModuleFilter, + IntegrationProvidersModuleOrderBy + > & { + select: IntegrationProvidersModuleSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.integrationProvidersModule.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.integrationProvidersModule + .findOne({ + id: answers.id as string, + select: { + id: true, + databaseId: true, + entityField: true, + schemaId: true, + privateSchemaId: true, + publicSchemaName: true, + privateSchemaName: true, + tableId: true, + tableName: true, + apiName: true, + privateApiName: true, + scope: true, + prefix: true, + entityTableId: 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: 'schemaId', + message: 'schemaId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'privateSchemaId', + message: 'privateSchemaId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'publicSchemaName', + message: 'publicSchemaName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'privateSchemaName', + message: 'privateSchemaName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'tableId', + message: 'tableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'tableName', + message: 'tableName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'apiName', + message: 'apiName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'privateApiName', + message: 'privateApiName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'scope', + message: 'scope', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'prefix', + message: 'prefix', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'entityTableId', + message: 'entityTableId', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined( + answers, + fieldSchema + ) as CreateIntegrationProvidersModuleInput['integrationProvidersModule']; + const client = getClient(); + const result = await client.integrationProvidersModule + .create({ + data: { + databaseId: cleanedData.databaseId, + entityField: cleanedData.entityField, + schemaId: cleanedData.schemaId, + privateSchemaId: cleanedData.privateSchemaId, + publicSchemaName: cleanedData.publicSchemaName, + privateSchemaName: cleanedData.privateSchemaName, + tableId: cleanedData.tableId, + tableName: cleanedData.tableName, + apiName: cleanedData.apiName, + privateApiName: cleanedData.privateApiName, + scope: cleanedData.scope, + prefix: cleanedData.prefix, + entityTableId: cleanedData.entityTableId, + }, + select: { + id: true, + databaseId: true, + entityField: true, + schemaId: true, + privateSchemaId: true, + publicSchemaName: true, + privateSchemaName: true, + tableId: true, + tableName: true, + apiName: true, + privateApiName: true, + scope: true, + prefix: true, + entityTableId: true, + }, + }) + .execute(); + console.log(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: 'schemaId', + message: 'schemaId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'privateSchemaId', + message: 'privateSchemaId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'publicSchemaName', + message: 'publicSchemaName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'privateSchemaName', + message: 'privateSchemaName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'tableId', + message: 'tableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'tableName', + message: 'tableName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'apiName', + message: 'apiName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'privateApiName', + message: 'privateApiName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'scope', + message: 'scope', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'prefix', + message: 'prefix', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'entityTableId', + message: 'entityTableId', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined(answers, fieldSchema) as IntegrationProvidersModulePatch; + const client = getClient(); + const result = await client.integrationProvidersModule + .update({ + where: { + id: answers.id as string, + }, + data: { + databaseId: cleanedData.databaseId, + entityField: cleanedData.entityField, + schemaId: cleanedData.schemaId, + privateSchemaId: cleanedData.privateSchemaId, + publicSchemaName: cleanedData.publicSchemaName, + privateSchemaName: cleanedData.privateSchemaName, + tableId: cleanedData.tableId, + tableName: cleanedData.tableName, + apiName: cleanedData.apiName, + privateApiName: cleanedData.privateApiName, + scope: cleanedData.scope, + prefix: cleanedData.prefix, + entityTableId: cleanedData.entityTableId, + }, + select: { + id: true, + databaseId: true, + entityField: true, + schemaId: true, + privateSchemaId: true, + publicSchemaName: true, + privateSchemaName: true, + tableId: true, + tableName: true, + apiName: true, + privateApiName: true, + scope: true, + prefix: true, + entityTableId: 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.integrationProvidersModule + .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/internal-secrets-module.ts b/sdk/constructive-cli/src/modules/cli/commands/internal-secrets-module.ts new file mode 100644 index 0000000000..f0ddd324e4 --- /dev/null +++ b/sdk/constructive-cli/src/modules/cli/commands/internal-secrets-module.ts @@ -0,0 +1,567 @@ +/** + * CLI commands for InternalSecretsModule + * @generated 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 { + CreateInternalSecretsModuleInput, + InternalSecretsModulePatch, + InternalSecretsModuleSelect, + InternalSecretsModuleFilter, + InternalSecretsModuleOrderBy, +} from '../../orm/input-types'; +import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; +const fieldSchema: FieldSchema = { + id: 'uuid', + databaseId: 'uuid', + schemaId: 'uuid', + privateSchemaId: 'uuid', + publicSchemaName: 'string', + privateSchemaName: 'string', + internalSecretsTableId: 'uuid', + internalSecretsTableName: 'string', + apiName: 'string', + privateApiName: 'string', + scope: 'string', + prefix: 'string', + entityTableId: 'uuid', + entityField: 'string', + policies: 'json', + provisions: 'json', +}; +const usage = + '\ninternal-secrets-module \n\nCommands:\n list List internalSecretsModule records\n find-first Find first matching internalSecretsModule record\n get Get a internalSecretsModule by ID\n create Create a new internalSecretsModule\n update Update an existing internalSecretsModule\n delete Delete a internalSecretsModule\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\n --help, -h Show this help message\n'; +export default async ( + argv: Partial>, + prompter: Inquirerer, + _options: CLIOptions +) => { + if (argv.help || argv.h) { + console.log(usage); + process.exit(0); + } + const { first: subcommand, newArgv } = extractFirst(argv); + if (!subcommand) { + const answer = await prompter.prompt(argv, [ + { + type: 'autocomplete', + name: 'subcommand', + message: 'What do you want to do?', + options: ['list', 'find-first', 'get', 'create', 'update', 'delete'], + }, + ]); + return handleTableSubcommand(answer.subcommand as string, newArgv, prompter); + } + return handleTableSubcommand(subcommand, newArgv, prompter); +}; +async function handleTableSubcommand( + subcommand: string, + argv: Partial>, + prompter: Inquirerer +) { + switch (subcommand) { + case 'list': + return handleList(argv, prompter); + case 'find-first': + return handleFindFirst(argv, prompter); + case 'get': + return handleGet(argv, prompter); + case 'create': + return handleCreate(argv, prompter); + case 'update': + return handleUpdate(argv, prompter); + case 'delete': + return handleDelete(argv, prompter); + default: + console.log(usage); + process.exit(1); + } +} +async function handleList(argv: Partial>, _prompter: Inquirerer) { + try { + const defaultSelect = { + id: true, + databaseId: true, + schemaId: true, + privateSchemaId: true, + publicSchemaName: true, + privateSchemaName: true, + internalSecretsTableId: true, + internalSecretsTableName: true, + apiName: true, + privateApiName: true, + scope: true, + prefix: true, + entityTableId: true, + entityField: true, + policies: true, + provisions: true, + }; + const findManyArgs = parseFindManyArgs< + FindManyArgs< + InternalSecretsModuleSelect, + InternalSecretsModuleFilter, + InternalSecretsModuleOrderBy + > & { + select: InternalSecretsModuleSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.internalSecretsModule.findMany(findManyArgs).execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to list records.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} +async function handleFindFirst(argv: Partial>, _prompter: Inquirerer) { + try { + const defaultSelect = { + id: true, + databaseId: true, + schemaId: true, + privateSchemaId: true, + publicSchemaName: true, + privateSchemaName: true, + internalSecretsTableId: true, + internalSecretsTableName: true, + apiName: true, + privateApiName: true, + scope: true, + prefix: true, + entityTableId: true, + entityField: true, + policies: true, + provisions: true, + }; + const findFirstArgs = parseFindFirstArgs< + FindFirstArgs< + InternalSecretsModuleSelect, + InternalSecretsModuleFilter, + InternalSecretsModuleOrderBy + > & { + select: InternalSecretsModuleSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.internalSecretsModule.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.internalSecretsModule + .findOne({ + id: answers.id as string, + select: { + id: true, + databaseId: true, + schemaId: true, + privateSchemaId: true, + publicSchemaName: true, + privateSchemaName: true, + internalSecretsTableId: true, + internalSecretsTableName: true, + apiName: true, + privateApiName: true, + scope: true, + prefix: true, + entityTableId: true, + entityField: true, + policies: true, + provisions: true, + }, + }) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Record not found.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} +async function handleCreate(argv: Partial>, prompter: Inquirerer) { + try { + const rawAnswers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'databaseId', + message: 'databaseId', + required: true, + }, + { + type: 'text', + name: 'schemaId', + message: 'schemaId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'privateSchemaId', + message: 'privateSchemaId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'publicSchemaName', + message: 'publicSchemaName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'privateSchemaName', + message: 'privateSchemaName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'internalSecretsTableId', + message: 'internalSecretsTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'internalSecretsTableName', + message: 'internalSecretsTableName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'apiName', + message: 'apiName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'privateApiName', + message: 'privateApiName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'scope', + message: 'scope', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'prefix', + message: 'prefix', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'entityTableId', + message: 'entityTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'entityField', + message: 'entityField', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'policies', + message: 'policies', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'provisions', + message: 'provisions', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined( + answers, + fieldSchema + ) as CreateInternalSecretsModuleInput['internalSecretsModule']; + const client = getClient(); + const result = await client.internalSecretsModule + .create({ + data: { + databaseId: cleanedData.databaseId, + schemaId: cleanedData.schemaId, + privateSchemaId: cleanedData.privateSchemaId, + publicSchemaName: cleanedData.publicSchemaName, + privateSchemaName: cleanedData.privateSchemaName, + internalSecretsTableId: cleanedData.internalSecretsTableId, + internalSecretsTableName: cleanedData.internalSecretsTableName, + apiName: cleanedData.apiName, + privateApiName: cleanedData.privateApiName, + scope: cleanedData.scope, + prefix: cleanedData.prefix, + entityTableId: cleanedData.entityTableId, + entityField: cleanedData.entityField, + policies: cleanedData.policies, + provisions: cleanedData.provisions, + }, + select: { + id: true, + databaseId: true, + schemaId: true, + privateSchemaId: true, + publicSchemaName: true, + privateSchemaName: true, + internalSecretsTableId: true, + internalSecretsTableName: true, + apiName: true, + privateApiName: true, + scope: true, + prefix: true, + entityTableId: true, + entityField: true, + policies: true, + provisions: true, + }, + }) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to create record.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} +async function handleUpdate(argv: Partial>, prompter: Inquirerer) { + try { + const rawAnswers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'id', + message: 'id', + required: true, + }, + { + type: 'text', + name: 'databaseId', + message: 'databaseId', + required: false, + }, + { + type: 'text', + name: 'schemaId', + message: 'schemaId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'privateSchemaId', + message: 'privateSchemaId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'publicSchemaName', + message: 'publicSchemaName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'privateSchemaName', + message: 'privateSchemaName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'internalSecretsTableId', + message: 'internalSecretsTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'internalSecretsTableName', + message: 'internalSecretsTableName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'apiName', + message: 'apiName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'privateApiName', + message: 'privateApiName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'scope', + message: 'scope', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'prefix', + message: 'prefix', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'entityTableId', + message: 'entityTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'entityField', + message: 'entityField', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'policies', + message: 'policies', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'provisions', + message: 'provisions', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined(answers, fieldSchema) as InternalSecretsModulePatch; + const client = getClient(); + const result = await client.internalSecretsModule + .update({ + where: { + id: answers.id as string, + }, + data: { + databaseId: cleanedData.databaseId, + schemaId: cleanedData.schemaId, + privateSchemaId: cleanedData.privateSchemaId, + publicSchemaName: cleanedData.publicSchemaName, + privateSchemaName: cleanedData.privateSchemaName, + internalSecretsTableId: cleanedData.internalSecretsTableId, + internalSecretsTableName: cleanedData.internalSecretsTableName, + apiName: cleanedData.apiName, + privateApiName: cleanedData.privateApiName, + scope: cleanedData.scope, + prefix: cleanedData.prefix, + entityTableId: cleanedData.entityTableId, + entityField: cleanedData.entityField, + policies: cleanedData.policies, + provisions: cleanedData.provisions, + }, + select: { + id: true, + databaseId: true, + schemaId: true, + privateSchemaId: true, + publicSchemaName: true, + privateSchemaName: true, + internalSecretsTableId: true, + internalSecretsTableName: true, + apiName: true, + privateApiName: true, + scope: true, + prefix: true, + entityTableId: true, + entityField: true, + policies: true, + provisions: 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.internalSecretsModule + .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/invites-module.ts b/sdk/constructive-cli/src/modules/cli/commands/invites-module.ts index 0a64be883a..ff6a9de467 100644 --- a/sdk/constructive-cli/src/modules/cli/commands/invites-module.ts +++ b/sdk/constructive-cli/src/modules/cli/commands/invites-module.ts @@ -18,6 +18,7 @@ import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; const fieldSchema: FieldSchema = { id: 'uuid', databaseId: 'uuid', + entityField: 'string', schemaId: 'uuid', privateSchemaId: 'uuid', publicSchemaName: 'string', @@ -88,6 +89,7 @@ async function handleList(argv: Partial>, _prompter: Inq const defaultSelect = { id: true, databaseId: true, + entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, @@ -126,6 +128,7 @@ async function handleFindFirst(argv: Partial>, _prompter const defaultSelect = { id: true, databaseId: true, + entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, @@ -176,6 +179,7 @@ async function handleGet(argv: Partial>, prompter: Inqui select: { id: true, databaseId: true, + entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, @@ -213,6 +217,13 @@ async function handleCreate(argv: Partial>, prompter: In message: 'databaseId', required: true, }, + { + type: 'text', + name: 'entityField', + message: 'entityField', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'schemaId', @@ -336,6 +347,7 @@ async function handleCreate(argv: Partial>, prompter: In .create({ data: { databaseId: cleanedData.databaseId, + entityField: cleanedData.entityField, schemaId: cleanedData.schemaId, privateSchemaId: cleanedData.privateSchemaId, publicSchemaName: cleanedData.publicSchemaName, @@ -356,6 +368,7 @@ async function handleCreate(argv: Partial>, prompter: In select: { id: true, databaseId: true, + entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, @@ -399,6 +412,13 @@ async function handleUpdate(argv: Partial>, prompter: In message: 'databaseId', required: false, }, + { + type: 'text', + name: 'entityField', + message: 'entityField', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'schemaId', @@ -522,6 +542,7 @@ async function handleUpdate(argv: Partial>, prompter: In }, data: { databaseId: cleanedData.databaseId, + entityField: cleanedData.entityField, schemaId: cleanedData.schemaId, privateSchemaId: cleanedData.privateSchemaId, publicSchemaName: cleanedData.publicSchemaName, @@ -542,6 +563,7 @@ async function handleUpdate(argv: Partial>, prompter: In select: { id: true, databaseId: true, + entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, diff --git a/sdk/constructive-cli/src/modules/cli/commands/limits-module.ts b/sdk/constructive-cli/src/modules/cli/commands/limits-module.ts index c9877a1f96..fcc4bff7de 100644 --- a/sdk/constructive-cli/src/modules/cli/commands/limits-module.ts +++ b/sdk/constructive-cli/src/modules/cli/commands/limits-module.ts @@ -18,6 +18,7 @@ import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; const fieldSchema: FieldSchema = { id: 'uuid', databaseId: 'uuid', + entityField: 'string', schemaId: 'uuid', privateSchemaId: 'uuid', publicSchemaName: 'string', @@ -106,6 +107,7 @@ async function handleList(argv: Partial>, _prompter: Inq const defaultSelect = { id: true, databaseId: true, + entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, @@ -162,6 +164,7 @@ async function handleFindFirst(argv: Partial>, _prompter const defaultSelect = { id: true, databaseId: true, + entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, @@ -230,6 +233,7 @@ async function handleGet(argv: Partial>, prompter: Inqui select: { id: true, databaseId: true, + entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, @@ -285,6 +289,13 @@ async function handleCreate(argv: Partial>, prompter: In message: 'databaseId', required: true, }, + { + type: 'text', + name: 'entityField', + message: 'entityField', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'schemaId', @@ -534,6 +545,7 @@ async function handleCreate(argv: Partial>, prompter: In .create({ data: { databaseId: cleanedData.databaseId, + entityField: cleanedData.entityField, schemaId: cleanedData.schemaId, privateSchemaId: cleanedData.privateSchemaId, publicSchemaName: cleanedData.publicSchemaName, @@ -572,6 +584,7 @@ async function handleCreate(argv: Partial>, prompter: In select: { id: true, databaseId: true, + entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, @@ -633,6 +646,13 @@ async function handleUpdate(argv: Partial>, prompter: In message: 'databaseId', required: false, }, + { + type: 'text', + name: 'entityField', + message: 'entityField', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'schemaId', @@ -882,6 +902,7 @@ async function handleUpdate(argv: Partial>, prompter: In }, data: { databaseId: cleanedData.databaseId, + entityField: cleanedData.entityField, schemaId: cleanedData.schemaId, privateSchemaId: cleanedData.privateSchemaId, publicSchemaName: cleanedData.publicSchemaName, @@ -920,6 +941,7 @@ async function handleUpdate(argv: Partial>, prompter: In select: { id: true, databaseId: true, + entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, diff --git a/sdk/constructive-cli/src/modules/cli/commands/memberships-module.ts b/sdk/constructive-cli/src/modules/cli/commands/memberships-module.ts index 9e4dc82f65..3ab297edab 100644 --- a/sdk/constructive-cli/src/modules/cli/commands/memberships-module.ts +++ b/sdk/constructive-cli/src/modules/cli/commands/memberships-module.ts @@ -18,6 +18,7 @@ import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; const fieldSchema: FieldSchema = { id: 'uuid', databaseId: 'uuid', + entityField: 'string', schemaId: 'uuid', privateSchemaId: 'uuid', publicSchemaName: 'string', @@ -111,6 +112,7 @@ async function handleList(argv: Partial>, _prompter: Inq const defaultSelect = { id: true, databaseId: true, + entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, @@ -172,6 +174,7 @@ async function handleFindFirst(argv: Partial>, _prompter const defaultSelect = { id: true, databaseId: true, + entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, @@ -245,6 +248,7 @@ async function handleGet(argv: Partial>, prompter: Inqui select: { id: true, databaseId: true, + entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, @@ -305,6 +309,13 @@ async function handleCreate(argv: Partial>, prompter: In message: 'databaseId', required: true, }, + { + type: 'text', + name: 'entityField', + message: 'entityField', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'schemaId', @@ -589,6 +600,7 @@ async function handleCreate(argv: Partial>, prompter: In .create({ data: { databaseId: cleanedData.databaseId, + entityField: cleanedData.entityField, schemaId: cleanedData.schemaId, privateSchemaId: cleanedData.privateSchemaId, publicSchemaName: cleanedData.publicSchemaName, @@ -632,6 +644,7 @@ async function handleCreate(argv: Partial>, prompter: In select: { id: true, databaseId: true, + entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, @@ -698,6 +711,13 @@ async function handleUpdate(argv: Partial>, prompter: In message: 'databaseId', required: false, }, + { + type: 'text', + name: 'entityField', + message: 'entityField', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'schemaId', @@ -982,6 +1002,7 @@ async function handleUpdate(argv: Partial>, prompter: In }, data: { databaseId: cleanedData.databaseId, + entityField: cleanedData.entityField, schemaId: cleanedData.schemaId, privateSchemaId: cleanedData.privateSchemaId, publicSchemaName: cleanedData.publicSchemaName, @@ -1025,6 +1046,7 @@ async function handleUpdate(argv: Partial>, prompter: In select: { id: true, databaseId: true, + entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: 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 b7ce012a7e..aad41ea3a2 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 @@ -18,6 +18,7 @@ import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; const fieldSchema: FieldSchema = { id: 'uuid', databaseId: 'uuid', + entityField: 'string', schemaId: 'uuid', privateSchemaId: 'uuid', publicSchemaName: 'string', @@ -87,6 +88,7 @@ async function handleList(argv: Partial>, _prompter: Inq const defaultSelect = { id: true, databaseId: true, + entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, @@ -124,6 +126,7 @@ async function handleFindFirst(argv: Partial>, _prompter const defaultSelect = { id: true, databaseId: true, + entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, @@ -173,6 +176,7 @@ async function handleGet(argv: Partial>, prompter: Inqui select: { id: true, databaseId: true, + entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, @@ -209,6 +213,13 @@ async function handleCreate(argv: Partial>, prompter: In message: 'databaseId', required: true, }, + { + type: 'text', + name: 'entityField', + message: 'entityField', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'schemaId', @@ -318,6 +329,7 @@ async function handleCreate(argv: Partial>, prompter: In .create({ data: { databaseId: cleanedData.databaseId, + entityField: cleanedData.entityField, schemaId: cleanedData.schemaId, privateSchemaId: cleanedData.privateSchemaId, publicSchemaName: cleanedData.publicSchemaName, @@ -336,6 +348,7 @@ async function handleCreate(argv: Partial>, prompter: In select: { id: true, databaseId: true, + entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, @@ -378,6 +391,13 @@ async function handleUpdate(argv: Partial>, prompter: In message: 'databaseId', required: false, }, + { + type: 'text', + name: 'entityField', + message: 'entityField', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'schemaId', @@ -487,6 +507,7 @@ async function handleUpdate(argv: Partial>, prompter: In }, data: { databaseId: cleanedData.databaseId, + entityField: cleanedData.entityField, schemaId: cleanedData.schemaId, privateSchemaId: cleanedData.privateSchemaId, publicSchemaName: cleanedData.publicSchemaName, @@ -505,6 +526,7 @@ async function handleUpdate(argv: Partial>, prompter: In select: { id: true, databaseId: true, + entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: 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 79db4e10f8..463f235167 100644 --- a/sdk/constructive-cli/src/modules/cli/commands/namespace-module.ts +++ b/sdk/constructive-cli/src/modules/cli/commands/namespace-module.ts @@ -18,6 +18,7 @@ import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; const fieldSchema: FieldSchema = { id: 'uuid', databaseId: 'uuid', + entityField: 'string', schemaId: 'uuid', privateSchemaId: 'uuid', publicSchemaName: 'string', @@ -31,7 +32,6 @@ const fieldSchema: FieldSchema = { scope: 'string', prefix: 'string', entityTableId: 'uuid', - platformNamespacesTableId: 'uuid', policies: 'json', provisions: 'json', defaultPermissions: 'string', @@ -89,6 +89,7 @@ async function handleList(argv: Partial>, _prompter: Inq const defaultSelect = { id: true, databaseId: true, + entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, @@ -102,7 +103,6 @@ async function handleList(argv: Partial>, _prompter: Inq scope: true, prefix: true, entityTableId: true, - platformNamespacesTableId: true, policies: true, provisions: true, defaultPermissions: true, @@ -128,6 +128,7 @@ async function handleFindFirst(argv: Partial>, _prompter const defaultSelect = { id: true, databaseId: true, + entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, @@ -141,7 +142,6 @@ async function handleFindFirst(argv: Partial>, _prompter scope: true, prefix: true, entityTableId: true, - platformNamespacesTableId: true, policies: true, provisions: true, defaultPermissions: true, @@ -179,6 +179,7 @@ async function handleGet(argv: Partial>, prompter: Inqui select: { id: true, databaseId: true, + entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, @@ -192,7 +193,6 @@ async function handleGet(argv: Partial>, prompter: Inqui scope: true, prefix: true, entityTableId: true, - platformNamespacesTableId: true, policies: true, provisions: true, defaultPermissions: true, @@ -217,6 +217,13 @@ async function handleCreate(argv: Partial>, prompter: In message: 'databaseId', required: true, }, + { + type: 'text', + name: 'entityField', + message: 'entityField', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'schemaId', @@ -308,13 +315,6 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, - { - type: 'text', - name: 'platformNamespacesTableId', - message: 'platformNamespacesTableId', - required: false, - skipPrompt: true, - }, { type: 'json', name: 'policies', @@ -347,6 +347,7 @@ async function handleCreate(argv: Partial>, prompter: In .create({ data: { databaseId: cleanedData.databaseId, + entityField: cleanedData.entityField, schemaId: cleanedData.schemaId, privateSchemaId: cleanedData.privateSchemaId, publicSchemaName: cleanedData.publicSchemaName, @@ -360,7 +361,6 @@ async function handleCreate(argv: Partial>, prompter: In scope: cleanedData.scope, prefix: cleanedData.prefix, entityTableId: cleanedData.entityTableId, - platformNamespacesTableId: cleanedData.platformNamespacesTableId, policies: cleanedData.policies, provisions: cleanedData.provisions, defaultPermissions: cleanedData.defaultPermissions, @@ -368,6 +368,7 @@ async function handleCreate(argv: Partial>, prompter: In select: { id: true, databaseId: true, + entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, @@ -381,7 +382,6 @@ async function handleCreate(argv: Partial>, prompter: In scope: true, prefix: true, entityTableId: true, - platformNamespacesTableId: true, policies: true, provisions: true, defaultPermissions: true, @@ -412,6 +412,13 @@ async function handleUpdate(argv: Partial>, prompter: In message: 'databaseId', required: false, }, + { + type: 'text', + name: 'entityField', + message: 'entityField', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'schemaId', @@ -503,13 +510,6 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, - { - type: 'text', - name: 'platformNamespacesTableId', - message: 'platformNamespacesTableId', - required: false, - skipPrompt: true, - }, { type: 'json', name: 'policies', @@ -542,6 +542,7 @@ async function handleUpdate(argv: Partial>, prompter: In }, data: { databaseId: cleanedData.databaseId, + entityField: cleanedData.entityField, schemaId: cleanedData.schemaId, privateSchemaId: cleanedData.privateSchemaId, publicSchemaName: cleanedData.publicSchemaName, @@ -555,7 +556,6 @@ async function handleUpdate(argv: Partial>, prompter: In scope: cleanedData.scope, prefix: cleanedData.prefix, entityTableId: cleanedData.entityTableId, - platformNamespacesTableId: cleanedData.platformNamespacesTableId, policies: cleanedData.policies, provisions: cleanedData.provisions, defaultPermissions: cleanedData.defaultPermissions, @@ -563,6 +563,7 @@ async function handleUpdate(argv: Partial>, prompter: In select: { id: true, databaseId: true, + entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, @@ -576,7 +577,6 @@ async function handleUpdate(argv: Partial>, prompter: In scope: true, prefix: true, entityTableId: true, - platformNamespacesTableId: true, policies: true, provisions: true, defaultPermissions: 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 88db9c2885..fcbd05125e 100644 --- a/sdk/constructive-cli/src/modules/cli/commands/notifications-module.ts +++ b/sdk/constructive-cli/src/modules/cli/commands/notifications-module.ts @@ -18,6 +18,7 @@ import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; const fieldSchema: FieldSchema = { id: 'uuid', databaseId: 'uuid', + entityField: 'string', schemaId: 'uuid', privateSchemaId: 'uuid', publicSchemaName: 'string', @@ -93,6 +94,7 @@ async function handleList(argv: Partial>, _prompter: Inq const defaultSelect = { id: true, databaseId: true, + entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, @@ -140,6 +142,7 @@ async function handleFindFirst(argv: Partial>, _prompter const defaultSelect = { id: true, databaseId: true, + entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, @@ -199,6 +202,7 @@ async function handleGet(argv: Partial>, prompter: Inqui select: { id: true, databaseId: true, + entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, @@ -241,6 +245,13 @@ async function handleCreate(argv: Partial>, prompter: In message: 'databaseId', required: true, }, + { + type: 'text', + name: 'entityField', + message: 'entityField', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'schemaId', @@ -399,6 +410,7 @@ async function handleCreate(argv: Partial>, prompter: In .create({ data: { databaseId: cleanedData.databaseId, + entityField: cleanedData.entityField, schemaId: cleanedData.schemaId, privateSchemaId: cleanedData.privateSchemaId, publicSchemaName: cleanedData.publicSchemaName, @@ -424,6 +436,7 @@ async function handleCreate(argv: Partial>, prompter: In select: { id: true, databaseId: true, + entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, @@ -472,6 +485,13 @@ async function handleUpdate(argv: Partial>, prompter: In message: 'databaseId', required: false, }, + { + type: 'text', + name: 'entityField', + message: 'entityField', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'schemaId', @@ -630,6 +650,7 @@ async function handleUpdate(argv: Partial>, prompter: In }, data: { databaseId: cleanedData.databaseId, + entityField: cleanedData.entityField, schemaId: cleanedData.schemaId, privateSchemaId: cleanedData.privateSchemaId, publicSchemaName: cleanedData.publicSchemaName, @@ -655,6 +676,7 @@ async function handleUpdate(argv: Partial>, prompter: In select: { id: true, databaseId: true, + entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, diff --git a/sdk/constructive-cli/src/modules/cli/commands/permissions-module.ts b/sdk/constructive-cli/src/modules/cli/commands/permissions-module.ts index b3d22674c3..8267581173 100644 --- a/sdk/constructive-cli/src/modules/cli/commands/permissions-module.ts +++ b/sdk/constructive-cli/src/modules/cli/commands/permissions-module.ts @@ -18,6 +18,7 @@ import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; const fieldSchema: FieldSchema = { id: 'uuid', databaseId: 'uuid', + entityField: 'string', schemaId: 'uuid', privateSchemaId: 'uuid', publicSchemaName: 'string', @@ -91,6 +92,7 @@ async function handleList(argv: Partial>, _prompter: Inq const defaultSelect = { id: true, databaseId: true, + entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, @@ -132,6 +134,7 @@ async function handleFindFirst(argv: Partial>, _prompter const defaultSelect = { id: true, databaseId: true, + entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, @@ -185,6 +188,7 @@ async function handleGet(argv: Partial>, prompter: Inqui select: { id: true, databaseId: true, + entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, @@ -225,6 +229,13 @@ async function handleCreate(argv: Partial>, prompter: In message: 'databaseId', required: true, }, + { + type: 'text', + name: 'entityField', + message: 'entityField', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'schemaId', @@ -369,6 +380,7 @@ async function handleCreate(argv: Partial>, prompter: In .create({ data: { databaseId: cleanedData.databaseId, + entityField: cleanedData.entityField, schemaId: cleanedData.schemaId, privateSchemaId: cleanedData.privateSchemaId, publicSchemaName: cleanedData.publicSchemaName, @@ -392,6 +404,7 @@ async function handleCreate(argv: Partial>, prompter: In select: { id: true, databaseId: true, + entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, @@ -438,6 +451,13 @@ async function handleUpdate(argv: Partial>, prompter: In message: 'databaseId', required: false, }, + { + type: 'text', + name: 'entityField', + message: 'entityField', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'schemaId', @@ -582,6 +602,7 @@ async function handleUpdate(argv: Partial>, prompter: In }, data: { databaseId: cleanedData.databaseId, + entityField: cleanedData.entityField, schemaId: cleanedData.schemaId, privateSchemaId: cleanedData.privateSchemaId, publicSchemaName: cleanedData.publicSchemaName, @@ -605,6 +626,7 @@ async function handleUpdate(argv: Partial>, prompter: In select: { id: true, databaseId: true, + entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, diff --git a/sdk/constructive-cli/src/modules/cli/commands/profiles-module.ts b/sdk/constructive-cli/src/modules/cli/commands/profiles-module.ts index 2c40f7aa13..9288cf3e3c 100644 --- a/sdk/constructive-cli/src/modules/cli/commands/profiles-module.ts +++ b/sdk/constructive-cli/src/modules/cli/commands/profiles-module.ts @@ -18,6 +18,7 @@ import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; const fieldSchema: FieldSchema = { id: 'uuid', databaseId: 'uuid', + entityField: 'string', schemaId: 'uuid', privateSchemaId: 'uuid', publicSchemaName: 'string', @@ -94,6 +95,7 @@ async function handleList(argv: Partial>, _prompter: Inq const defaultSelect = { id: true, databaseId: true, + entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, @@ -138,6 +140,7 @@ async function handleFindFirst(argv: Partial>, _prompter const defaultSelect = { id: true, databaseId: true, + entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, @@ -194,6 +197,7 @@ async function handleGet(argv: Partial>, prompter: Inqui select: { id: true, databaseId: true, + entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, @@ -237,6 +241,13 @@ async function handleCreate(argv: Partial>, prompter: In message: 'databaseId', required: true, }, + { + type: 'text', + name: 'entityField', + message: 'entityField', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'schemaId', @@ -402,6 +413,7 @@ async function handleCreate(argv: Partial>, prompter: In .create({ data: { databaseId: cleanedData.databaseId, + entityField: cleanedData.entityField, schemaId: cleanedData.schemaId, privateSchemaId: cleanedData.privateSchemaId, publicSchemaName: cleanedData.publicSchemaName, @@ -428,6 +440,7 @@ async function handleCreate(argv: Partial>, prompter: In select: { id: true, databaseId: true, + entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, @@ -477,6 +490,13 @@ async function handleUpdate(argv: Partial>, prompter: In message: 'databaseId', required: false, }, + { + type: 'text', + name: 'entityField', + message: 'entityField', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'schemaId', @@ -642,6 +662,7 @@ async function handleUpdate(argv: Partial>, prompter: In }, data: { databaseId: cleanedData.databaseId, + entityField: cleanedData.entityField, schemaId: cleanedData.schemaId, privateSchemaId: cleanedData.privateSchemaId, publicSchemaName: cleanedData.publicSchemaName, @@ -668,6 +689,7 @@ async function handleUpdate(argv: Partial>, prompter: In select: { id: true, databaseId: true, + entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, 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 c42905f6fb..d22aa1f3e3 100644 --- a/sdk/constructive-cli/src/modules/cli/commands/resource-module.ts +++ b/sdk/constructive-cli/src/modules/cli/commands/resource-module.ts @@ -18,14 +18,21 @@ import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; const fieldSchema: FieldSchema = { id: 'uuid', databaseId: 'uuid', + entityField: 'string', schemaId: 'uuid', privateSchemaId: 'uuid', publicSchemaName: 'string', privateSchemaName: 'string', resourcesTableId: 'uuid', resourceEventsTableId: 'uuid', + resourceStatusChecksTableId: 'uuid', + resourceDefinitionsTableId: 'uuid', resourcesTableName: 'string', resourceEventsTableName: 'string', + resourceStatusChecksTableName: 'string', + resourceDefinitionsTableName: 'string', + resolvedRequirementsViewName: 'string', + requirementsStateViewName: 'string', apiName: 'string', privateApiName: 'string', scope: 'string', @@ -89,14 +96,21 @@ async function handleList(argv: Partial>, _prompter: Inq const defaultSelect = { id: true, databaseId: true, + entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, resourcesTableId: true, resourceEventsTableId: true, + resourceStatusChecksTableId: true, + resourceDefinitionsTableId: true, resourcesTableName: true, resourceEventsTableName: true, + resourceStatusChecksTableName: true, + resourceDefinitionsTableName: true, + resolvedRequirementsViewName: true, + requirementsStateViewName: true, apiName: true, privateApiName: true, scope: true, @@ -128,14 +142,21 @@ async function handleFindFirst(argv: Partial>, _prompter const defaultSelect = { id: true, databaseId: true, + entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, resourcesTableId: true, resourceEventsTableId: true, + resourceStatusChecksTableId: true, + resourceDefinitionsTableId: true, resourcesTableName: true, resourceEventsTableName: true, + resourceStatusChecksTableName: true, + resourceDefinitionsTableName: true, + resolvedRequirementsViewName: true, + requirementsStateViewName: true, apiName: true, privateApiName: true, scope: true, @@ -179,14 +200,21 @@ async function handleGet(argv: Partial>, prompter: Inqui select: { id: true, databaseId: true, + entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, resourcesTableId: true, resourceEventsTableId: true, + resourceStatusChecksTableId: true, + resourceDefinitionsTableId: true, resourcesTableName: true, resourceEventsTableName: true, + resourceStatusChecksTableName: true, + resourceDefinitionsTableName: true, + resolvedRequirementsViewName: true, + requirementsStateViewName: true, apiName: true, privateApiName: true, scope: true, @@ -217,6 +245,13 @@ async function handleCreate(argv: Partial>, prompter: In message: 'databaseId', required: true, }, + { + type: 'text', + name: 'entityField', + message: 'entityField', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'schemaId', @@ -259,6 +294,20 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'resourceStatusChecksTableId', + message: 'resourceStatusChecksTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'resourceDefinitionsTableId', + message: 'resourceDefinitionsTableId', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'resourcesTableName', @@ -273,6 +322,34 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'resourceStatusChecksTableName', + message: 'resourceStatusChecksTableName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'resourceDefinitionsTableName', + message: 'resourceDefinitionsTableName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'resolvedRequirementsViewName', + message: 'resolvedRequirementsViewName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'requirementsStateViewName', + message: 'requirementsStateViewName', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'apiName', @@ -347,14 +424,21 @@ async function handleCreate(argv: Partial>, prompter: In .create({ data: { databaseId: cleanedData.databaseId, + entityField: cleanedData.entityField, schemaId: cleanedData.schemaId, privateSchemaId: cleanedData.privateSchemaId, publicSchemaName: cleanedData.publicSchemaName, privateSchemaName: cleanedData.privateSchemaName, resourcesTableId: cleanedData.resourcesTableId, resourceEventsTableId: cleanedData.resourceEventsTableId, + resourceStatusChecksTableId: cleanedData.resourceStatusChecksTableId, + resourceDefinitionsTableId: cleanedData.resourceDefinitionsTableId, resourcesTableName: cleanedData.resourcesTableName, resourceEventsTableName: cleanedData.resourceEventsTableName, + resourceStatusChecksTableName: cleanedData.resourceStatusChecksTableName, + resourceDefinitionsTableName: cleanedData.resourceDefinitionsTableName, + resolvedRequirementsViewName: cleanedData.resolvedRequirementsViewName, + requirementsStateViewName: cleanedData.requirementsStateViewName, apiName: cleanedData.apiName, privateApiName: cleanedData.privateApiName, scope: cleanedData.scope, @@ -368,14 +452,21 @@ async function handleCreate(argv: Partial>, prompter: In select: { id: true, databaseId: true, + entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, resourcesTableId: true, resourceEventsTableId: true, + resourceStatusChecksTableId: true, + resourceDefinitionsTableId: true, resourcesTableName: true, resourceEventsTableName: true, + resourceStatusChecksTableName: true, + resourceDefinitionsTableName: true, + resolvedRequirementsViewName: true, + requirementsStateViewName: true, apiName: true, privateApiName: true, scope: true, @@ -412,6 +503,13 @@ async function handleUpdate(argv: Partial>, prompter: In message: 'databaseId', required: false, }, + { + type: 'text', + name: 'entityField', + message: 'entityField', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'schemaId', @@ -454,6 +552,20 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'resourceStatusChecksTableId', + message: 'resourceStatusChecksTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'resourceDefinitionsTableId', + message: 'resourceDefinitionsTableId', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'resourcesTableName', @@ -468,6 +580,34 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'resourceStatusChecksTableName', + message: 'resourceStatusChecksTableName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'resourceDefinitionsTableName', + message: 'resourceDefinitionsTableName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'resolvedRequirementsViewName', + message: 'resolvedRequirementsViewName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'requirementsStateViewName', + message: 'requirementsStateViewName', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'apiName', @@ -542,14 +682,21 @@ async function handleUpdate(argv: Partial>, prompter: In }, data: { databaseId: cleanedData.databaseId, + entityField: cleanedData.entityField, schemaId: cleanedData.schemaId, privateSchemaId: cleanedData.privateSchemaId, publicSchemaName: cleanedData.publicSchemaName, privateSchemaName: cleanedData.privateSchemaName, resourcesTableId: cleanedData.resourcesTableId, resourceEventsTableId: cleanedData.resourceEventsTableId, + resourceStatusChecksTableId: cleanedData.resourceStatusChecksTableId, + resourceDefinitionsTableId: cleanedData.resourceDefinitionsTableId, resourcesTableName: cleanedData.resourcesTableName, resourceEventsTableName: cleanedData.resourceEventsTableName, + resourceStatusChecksTableName: cleanedData.resourceStatusChecksTableName, + resourceDefinitionsTableName: cleanedData.resourceDefinitionsTableName, + resolvedRequirementsViewName: cleanedData.resolvedRequirementsViewName, + requirementsStateViewName: cleanedData.requirementsStateViewName, apiName: cleanedData.apiName, privateApiName: cleanedData.privateApiName, scope: cleanedData.scope, @@ -563,14 +710,21 @@ async function handleUpdate(argv: Partial>, prompter: In select: { id: true, databaseId: true, + entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, resourcesTableId: true, resourceEventsTableId: true, + resourceStatusChecksTableId: true, + resourceDefinitionsTableId: true, resourcesTableName: true, resourceEventsTableName: true, + resourceStatusChecksTableName: true, + resourceDefinitionsTableName: true, + resolvedRequirementsViewName: true, + requirementsStateViewName: true, apiName: true, privateApiName: true, scope: 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 e84482ed78..817be50c5d 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 @@ -18,6 +18,7 @@ import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; const fieldSchema: FieldSchema = { id: 'uuid', databaseId: 'uuid', + entityField: 'string', schemaId: 'uuid', privateSchemaId: 'uuid', publicSchemaName: 'string', @@ -89,6 +90,7 @@ async function handleList(argv: Partial>, _prompter: Inq const defaultSelect = { id: true, databaseId: true, + entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, @@ -128,6 +130,7 @@ async function handleFindFirst(argv: Partial>, _prompter const defaultSelect = { id: true, databaseId: true, + entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, @@ -179,6 +182,7 @@ async function handleGet(argv: Partial>, prompter: Inqui select: { id: true, databaseId: true, + entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, @@ -217,6 +221,13 @@ async function handleCreate(argv: Partial>, prompter: In message: 'databaseId', required: true, }, + { + type: 'text', + name: 'entityField', + message: 'entityField', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'schemaId', @@ -347,6 +358,7 @@ async function handleCreate(argv: Partial>, prompter: In .create({ data: { databaseId: cleanedData.databaseId, + entityField: cleanedData.entityField, schemaId: cleanedData.schemaId, privateSchemaId: cleanedData.privateSchemaId, publicSchemaName: cleanedData.publicSchemaName, @@ -368,6 +380,7 @@ async function handleCreate(argv: Partial>, prompter: In select: { id: true, databaseId: true, + entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, @@ -412,6 +425,13 @@ async function handleUpdate(argv: Partial>, prompter: In message: 'databaseId', required: false, }, + { + type: 'text', + name: 'entityField', + message: 'entityField', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'schemaId', @@ -542,6 +562,7 @@ async function handleUpdate(argv: Partial>, prompter: In }, data: { databaseId: cleanedData.databaseId, + entityField: cleanedData.entityField, schemaId: cleanedData.schemaId, privateSchemaId: cleanedData.privateSchemaId, publicSchemaName: cleanedData.publicSchemaName, @@ -563,6 +584,7 @@ async function handleUpdate(argv: Partial>, prompter: In select: { id: true, databaseId: true, + entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: 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 9d11f48d0a..a91d90c138 100644 --- a/sdk/constructive-cli/src/modules/cli/commands/storage-module.ts +++ b/sdk/constructive-cli/src/modules/cli/commands/storage-module.ts @@ -31,6 +31,7 @@ const fieldSchema: FieldSchema = { policies: 'json', provisions: 'json', entityTableId: 'uuid', + entityField: 'string', endpoint: 'string', publicUrlPrefix: 'string', provider: 'string', @@ -122,6 +123,7 @@ async function handleList(argv: Partial>, _prompter: Inq policies: true, provisions: true, entityTableId: true, + entityField: true, endpoint: true, publicUrlPrefix: true, provider: true, @@ -181,6 +183,7 @@ async function handleFindFirst(argv: Partial>, _prompter policies: true, provisions: true, entityTableId: true, + entityField: true, endpoint: true, publicUrlPrefix: true, provider: true, @@ -252,6 +255,7 @@ async function handleGet(argv: Partial>, prompter: Inqui policies: true, provisions: true, entityTableId: true, + entityField: true, endpoint: true, publicUrlPrefix: true, provider: true, @@ -388,6 +392,13 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'entityField', + message: 'entityField', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'endpoint', @@ -580,6 +591,7 @@ async function handleCreate(argv: Partial>, prompter: In policies: cleanedData.policies, provisions: cleanedData.provisions, entityTableId: cleanedData.entityTableId, + entityField: cleanedData.entityField, endpoint: cleanedData.endpoint, publicUrlPrefix: cleanedData.publicUrlPrefix, provider: cleanedData.provider, @@ -621,6 +633,7 @@ async function handleCreate(argv: Partial>, prompter: In policies: true, provisions: true, entityTableId: true, + entityField: true, endpoint: true, publicUrlPrefix: true, provider: true, @@ -763,6 +776,13 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'entityField', + message: 'entityField', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'endpoint', @@ -955,6 +975,7 @@ async function handleUpdate(argv: Partial>, prompter: In policies: cleanedData.policies, provisions: cleanedData.provisions, entityTableId: cleanedData.entityTableId, + entityField: cleanedData.entityField, endpoint: cleanedData.endpoint, publicUrlPrefix: cleanedData.publicUrlPrefix, provider: cleanedData.provider, @@ -996,6 +1017,7 @@ async function handleUpdate(argv: Partial>, prompter: In policies: true, provisions: true, entityTableId: true, + entityField: true, endpoint: true, publicUrlPrefix: true, provider: 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 61a85cc3ce..c824aa2e1b 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 @@ -18,6 +18,7 @@ import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; const fieldSchema: FieldSchema = { id: 'uuid', databaseId: 'uuid', + entityField: 'string', schemaId: 'uuid', privateSchemaId: 'uuid', publicSchemaName: 'string', @@ -89,6 +90,7 @@ async function handleList(argv: Partial>, _prompter: Inq const defaultSelect = { id: true, databaseId: true, + entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, @@ -128,6 +130,7 @@ async function handleFindFirst(argv: Partial>, _prompter const defaultSelect = { id: true, databaseId: true, + entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, @@ -179,6 +182,7 @@ async function handleGet(argv: Partial>, prompter: Inqui select: { id: true, databaseId: true, + entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, @@ -217,6 +221,13 @@ async function handleCreate(argv: Partial>, prompter: In message: 'databaseId', required: true, }, + { + type: 'text', + name: 'entityField', + message: 'entityField', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'schemaId', @@ -347,6 +358,7 @@ async function handleCreate(argv: Partial>, prompter: In .create({ data: { databaseId: cleanedData.databaseId, + entityField: cleanedData.entityField, schemaId: cleanedData.schemaId, privateSchemaId: cleanedData.privateSchemaId, publicSchemaName: cleanedData.publicSchemaName, @@ -368,6 +380,7 @@ async function handleCreate(argv: Partial>, prompter: In select: { id: true, databaseId: true, + entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, @@ -412,6 +425,13 @@ async function handleUpdate(argv: Partial>, prompter: In message: 'databaseId', required: false, }, + { + type: 'text', + name: 'entityField', + message: 'entityField', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'schemaId', @@ -542,6 +562,7 @@ async function handleUpdate(argv: Partial>, prompter: In }, data: { databaseId: cleanedData.databaseId, + entityField: cleanedData.entityField, schemaId: cleanedData.schemaId, privateSchemaId: cleanedData.privateSchemaId, publicSchemaName: cleanedData.publicSchemaName, @@ -563,6 +584,7 @@ async function handleUpdate(argv: Partial>, prompter: In select: { id: true, databaseId: true, + entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, diff --git a/sdk/constructive-cli/src/modules/cli/commands/user-credentials-module.ts b/sdk/constructive-cli/src/modules/cli/commands/user-credentials-module.ts index 2391c27675..37a6584065 100644 --- a/sdk/constructive-cli/src/modules/cli/commands/user-credentials-module.ts +++ b/sdk/constructive-cli/src/modules/cli/commands/user-credentials-module.ts @@ -18,10 +18,10 @@ import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; const fieldSchema: FieldSchema = { id: 'uuid', databaseId: 'uuid', + entityField: 'string', schemaId: 'uuid', tableId: 'uuid', tableName: 'string', - apiName: 'string', privateApiName: 'string', }; const usage = @@ -77,10 +77,10 @@ async function handleList(argv: Partial>, _prompter: Inq const defaultSelect = { id: true, databaseId: true, + entityField: true, schemaId: true, tableId: true, tableName: true, - apiName: true, privateApiName: true, }; const findManyArgs = parseFindManyArgs< @@ -108,10 +108,10 @@ async function handleFindFirst(argv: Partial>, _prompter const defaultSelect = { id: true, databaseId: true, + entityField: true, schemaId: true, tableId: true, tableName: true, - apiName: true, privateApiName: true, }; const findFirstArgs = parseFindFirstArgs< @@ -151,10 +151,10 @@ async function handleGet(argv: Partial>, prompter: Inqui select: { id: true, databaseId: true, + entityField: true, schemaId: true, tableId: true, tableName: true, - apiName: true, privateApiName: true, }, }) @@ -177,6 +177,13 @@ async function handleCreate(argv: Partial>, prompter: In message: 'databaseId', required: true, }, + { + type: 'text', + name: 'entityField', + message: 'entityField', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'schemaId', @@ -198,13 +205,6 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, - { - type: 'text', - name: 'apiName', - message: 'apiName', - required: false, - skipPrompt: true, - }, { type: 'text', name: 'privateApiName', @@ -223,19 +223,19 @@ async function handleCreate(argv: Partial>, prompter: In .create({ data: { databaseId: cleanedData.databaseId, + entityField: cleanedData.entityField, schemaId: cleanedData.schemaId, tableId: cleanedData.tableId, tableName: cleanedData.tableName, - apiName: cleanedData.apiName, privateApiName: cleanedData.privateApiName, }, select: { id: true, databaseId: true, + entityField: true, schemaId: true, tableId: true, tableName: true, - apiName: true, privateApiName: true, }, }) @@ -264,6 +264,13 @@ async function handleUpdate(argv: Partial>, prompter: In message: 'databaseId', required: false, }, + { + type: 'text', + name: 'entityField', + message: 'entityField', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'schemaId', @@ -285,13 +292,6 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, - { - type: 'text', - name: 'apiName', - message: 'apiName', - required: false, - skipPrompt: true, - }, { type: 'text', name: 'privateApiName', @@ -310,19 +310,19 @@ async function handleUpdate(argv: Partial>, prompter: In }, data: { databaseId: cleanedData.databaseId, + entityField: cleanedData.entityField, schemaId: cleanedData.schemaId, tableId: cleanedData.tableId, tableName: cleanedData.tableName, - apiName: cleanedData.apiName, privateApiName: cleanedData.privateApiName, }, select: { id: true, databaseId: true, + entityField: true, schemaId: true, tableId: true, tableName: true, - apiName: true, privateApiName: true, }, }) diff --git a/sdk/constructive-cli/src/modules/cli/commands/user-state-module.ts b/sdk/constructive-cli/src/modules/cli/commands/user-state-module.ts index 00cfd1fb03..7a6a0c1c6b 100644 --- a/sdk/constructive-cli/src/modules/cli/commands/user-state-module.ts +++ b/sdk/constructive-cli/src/modules/cli/commands/user-state-module.ts @@ -18,6 +18,7 @@ import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; const fieldSchema: FieldSchema = { id: 'uuid', databaseId: 'uuid', + entityField: 'string', schemaId: 'uuid', tableId: 'uuid', tableName: 'string', @@ -75,6 +76,7 @@ async function handleList(argv: Partial>, _prompter: Inq const defaultSelect = { id: true, databaseId: true, + entityField: true, schemaId: true, tableId: true, tableName: true, @@ -100,6 +102,7 @@ async function handleFindFirst(argv: Partial>, _prompter const defaultSelect = { id: true, databaseId: true, + entityField: true, schemaId: true, tableId: true, tableName: true, @@ -137,6 +140,7 @@ async function handleGet(argv: Partial>, prompter: Inqui select: { id: true, databaseId: true, + entityField: true, schemaId: true, tableId: true, tableName: true, @@ -161,6 +165,13 @@ async function handleCreate(argv: Partial>, prompter: In message: 'databaseId', required: true, }, + { + type: 'text', + name: 'entityField', + message: 'entityField', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'schemaId', @@ -193,6 +204,7 @@ async function handleCreate(argv: Partial>, prompter: In .create({ data: { databaseId: cleanedData.databaseId, + entityField: cleanedData.entityField, schemaId: cleanedData.schemaId, tableId: cleanedData.tableId, tableName: cleanedData.tableName, @@ -200,6 +212,7 @@ async function handleCreate(argv: Partial>, prompter: In select: { id: true, databaseId: true, + entityField: true, schemaId: true, tableId: true, tableName: true, @@ -230,6 +243,13 @@ async function handleUpdate(argv: Partial>, prompter: In message: 'databaseId', required: false, }, + { + type: 'text', + name: 'entityField', + message: 'entityField', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'schemaId', @@ -262,6 +282,7 @@ async function handleUpdate(argv: Partial>, prompter: In }, data: { databaseId: cleanedData.databaseId, + entityField: cleanedData.entityField, schemaId: cleanedData.schemaId, tableId: cleanedData.tableId, tableName: cleanedData.tableName, @@ -269,6 +290,7 @@ async function handleUpdate(argv: Partial>, prompter: In select: { id: true, databaseId: true, + entityField: true, schemaId: true, tableId: true, tableName: true, diff --git a/sdk/constructive-cli/src/modules/orm/README.md b/sdk/constructive-cli/src/modules/orm/README.md index 90e60f2bd9..f1c1b5fb18 100644 --- a/sdk/constructive-cli/src/modules/orm/README.md +++ b/sdk/constructive-cli/src/modules/orm/README.md @@ -23,23 +23,21 @@ const db = createClient({ |-------|------------| | `defaultIdsModule` | findMany, findOne, create, update, delete | | `membershipTypesModule` | findMany, findOne, create, update, delete | -| `userStateModule` | findMany, findOne, create, update, delete | | `sessionSecretsModule` | findMany, findOne, create, update, delete | -| `configSecretsOrgModule` | findMany, findOne, create, update, delete | | `devicesModule` | findMany, findOne, create, update, delete | | `i18NModule` | findMany, findOne, create, update, delete | -| `userCredentialsModule` | findMany, findOne, create, update, delete | | `userSettingsModule` | findMany, findOne, create, update, delete | -| `configSecretsUserModule` | findMany, findOne, create, update, delete | +| `userStateModule` | findMany, findOne, create, update, delete | +| `userCredentialsModule` | findMany, findOne, create, update, delete | | `connectedAccountsModule` | findMany, findOne, create, update, delete | | `emailsModule` | findMany, findOne, create, update, delete | | `phoneNumbersModule` | findMany, findOne, create, update, delete | | `rateLimitsModule` | findMany, findOne, create, update, delete | | `usersModule` | findMany, findOne, create, update, delete | | `webauthnCredentialsModule` | findMany, findOne, create, update, delete | +| `configSecretsUserModule` | findMany, findOne, create, update, delete | | `cryptoAddressesModule` | findMany, findOne, create, update, delete | | `denormalizedTableField` | findMany, findOne, create, update, delete | -| `identityProvidersModule` | findMany, findOne, create, update, delete | | `rlsModule` | findMany, findOne, create, update, delete | | `blueprint` | findMany, findOne, create, update, delete | | `blueprintTemplate` | findMany, findOne, create, update, delete | @@ -47,40 +45,47 @@ const db = createClient({ | `cryptoAuthModule` | findMany, findOne, create, update, delete | | `sessionsModule` | findMany, findOne, create, update, delete | | `secureTableProvision` | findMany, findOne, create, update, delete | -| `databaseProvisionModule` | findMany, findOne, create, update, delete | -| `configSecretsModule` | findMany, findOne, create, update, delete | +| `identityProvidersModule` | findMany, findOne, create, update, delete | +| `integrationProvidersModule` | findMany, findOne, create, update, delete | +| `dbPoolConfig` | findMany, findOne, create, update, delete | +| `realtimeModule` | findMany, findOne, create, update, delete | +| `infraSecretsModule` | findMany, findOne, create, update, delete | +| `internalSecretsModule` | findMany, findOne, create, update, delete | +| `dbPresetModule` | findMany, findOne, create, update, delete | | `graphModule` | findMany, findOne, create, update, delete | -| `merkleStoreModule` | findMany, findOne, create, update, delete | | `rateLimitMetersModule` | findMany, findOne, create, update, delete | -| `realtimeModule` | findMany, findOne, create, update, delete | +| `infraConfigModule` | findMany, findOne, create, update, delete | | `webauthnAuthModule` | findMany, findOne, create, update, delete | -| `functionInvocationModule` | findMany, findOne, create, update, delete | +| `principalAuthModule` | findMany, findOne, create, update, delete | +| `dbPool` | findMany, findOne, create, update, delete | | `functionModule` | findMany, findOne, create, update, delete | +| `merkleStoreModule` | findMany, findOne, create, update, delete | +| `databaseProvisionModule` | findMany, findOne, create, update, delete | +| `functionInvocationModule` | findMany, findOne, create, update, delete | | `invitesModule` | findMany, findOne, create, update, delete | -| `principalAuthModule` | findMany, findOne, create, update, delete | +| `namespaceModule` | findMany, findOne, create, update, delete | +| `plansModule` | findMany, findOne, create, update, delete | | `computeLogModule` | findMany, findOne, create, update, delete | | `inferenceLogModule` | findMany, findOne, create, update, delete | -| `namespaceModule` | findMany, findOne, create, update, delete | -| `resourceModule` | findMany, findOne, create, update, delete | | `storageLogModule` | findMany, findOne, create, update, delete | | `transferLogModule` | findMany, findOne, create, update, delete | -| `functionDeploymentModule` | findMany, findOne, create, update, delete | -| `plansModule` | findMany, findOne, create, update, delete | | `billingProviderModule` | findMany, findOne, create, update, delete | -| `dbUsageModule` | findMany, findOne, create, update, delete | +| `functionDeploymentModule` | findMany, findOne, create, update, delete | +| `permissionsModule` | findMany, findOne, create, update, delete | | `graphExecutionModule` | findMany, findOne, create, update, delete | | `hierarchyModule` | findMany, findOne, create, update, delete | -| `permissionsModule` | findMany, findOne, create, update, delete | | `notificationsModule` | findMany, findOne, create, update, delete | +| `relationProvision` | findMany, findOne, create, update, delete | | `profilesModule` | findMany, findOne, create, update, delete | | `billingModule` | findMany, findOne, create, update, delete | -| `relationProvision` | findMany, findOne, create, update, delete | +| `resourceModule` | findMany, findOne, create, update, delete | | `userAuthModule` | findMany, findOne, create, update, delete | +| `dbUsageModule` | findMany, findOne, create, update, delete | | `agentModule` | findMany, findOne, create, update, delete | | `limitsModule` | findMany, findOne, create, update, delete | -| `membershipsModule` | findMany, findOne, create, update, delete | | `entityTypeProvision` | findMany, findOne, create, update, delete | | `storageModule` | findMany, findOne, create, update, delete | +| `membershipsModule` | findMany, findOne, create, update, delete | | `eventsModule` | findMany, findOne, create, update, delete | ## Table Operations @@ -148,39 +153,6 @@ const updated = await db.membershipTypesModule.update({ where: { id: '' }, const deleted = await db.membershipTypesModule.delete({ where: { id: '' } }).execute(); ``` -### `db.userStateModule` - -CRUD operations for UserStateModule records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `schemaId` | UUID | Yes | -| `tableId` | UUID | Yes | -| `tableName` | String | Yes | - -**Operations:** - -```typescript -// List all userStateModule records -const items = await db.userStateModule.findMany({ select: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true } }).execute(); - -// Get one by id -const item = await db.userStateModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true } }).execute(); - -// Create -const created = await db.userStateModule.create({ data: { databaseId: '', schemaId: '', tableId: '', tableName: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.userStateModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.userStateModule.delete({ where: { id: '' } }).execute(); -``` - ### `db.sessionSecretsModule` CRUD operations for SessionSecretsModule records. @@ -215,41 +187,6 @@ const updated = await db.sessionSecretsModule.update({ where: { id: '' }, const deleted = await db.sessionSecretsModule.delete({ where: { id: '' } }).execute(); ``` -### `db.configSecretsOrgModule` - -CRUD operations for ConfigSecretsOrgModule records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `schemaId` | UUID | Yes | -| `tableId` | UUID | Yes | -| `tableName` | String | Yes | -| `apiName` | String | Yes | -| `privateApiName` | String | Yes | - -**Operations:** - -```typescript -// List all configSecretsOrgModule records -const items = await db.configSecretsOrgModule.findMany({ select: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, apiName: true, privateApiName: true } }).execute(); - -// Get one by id -const item = await db.configSecretsOrgModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, apiName: true, privateApiName: true } }).execute(); - -// Create -const created = await db.configSecretsOrgModule.create({ data: { databaseId: '', schemaId: '', tableId: '', tableName: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.configSecretsOrgModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.configSecretsOrgModule.delete({ where: { id: '' } }).execute(); -``` - ### `db.devicesModule` CRUD operations for DevicesModule records. @@ -320,9 +257,9 @@ const updated = await db.i18NModule.update({ where: { id: '' }, data: { da const deleted = await db.i18NModule.delete({ where: { id: '' } }).execute(); ``` -### `db.userCredentialsModule` +### `db.userSettingsModule` -CRUD operations for UserCredentialsModule records. +CRUD operations for UserSettingsModule records. **Fields:** @@ -332,32 +269,32 @@ CRUD operations for UserCredentialsModule records. | `databaseId` | UUID | Yes | | `schemaId` | UUID | Yes | | `tableId` | UUID | Yes | +| `ownerTableId` | UUID | Yes | | `tableName` | String | Yes | | `apiName` | String | Yes | -| `privateApiName` | String | Yes | **Operations:** ```typescript -// List all userCredentialsModule records -const items = await db.userCredentialsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, apiName: true, privateApiName: true } }).execute(); +// List all userSettingsModule records +const items = await db.userSettingsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, tableId: true, ownerTableId: true, tableName: true, apiName: true } }).execute(); // Get one by id -const item = await db.userCredentialsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, apiName: true, privateApiName: true } }).execute(); +const item = await db.userSettingsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, tableId: true, ownerTableId: true, tableName: true, apiName: true } }).execute(); // Create -const created = await db.userCredentialsModule.create({ data: { databaseId: '', schemaId: '', tableId: '', tableName: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); +const created = await db.userSettingsModule.create({ data: { databaseId: '', schemaId: '', tableId: '', ownerTableId: '', tableName: '', apiName: '' }, select: { id: true } }).execute(); // Update -const updated = await db.userCredentialsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.userSettingsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.userCredentialsModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.userSettingsModule.delete({ where: { id: '' } }).execute(); ``` -### `db.userSettingsModule` +### `db.userStateModule` -CRUD operations for UserSettingsModule records. +CRUD operations for UserStateModule records. **Fields:** @@ -365,34 +302,33 @@ CRUD operations for UserSettingsModule records. |-------|------|----------| | `id` | UUID | No | | `databaseId` | UUID | Yes | +| `entityField` | String | Yes | | `schemaId` | UUID | Yes | | `tableId` | UUID | Yes | -| `ownerTableId` | UUID | Yes | | `tableName` | String | Yes | -| `apiName` | String | Yes | **Operations:** ```typescript -// List all userSettingsModule records -const items = await db.userSettingsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, tableId: true, ownerTableId: true, tableName: true, apiName: true } }).execute(); +// List all userStateModule records +const items = await db.userStateModule.findMany({ select: { id: true, databaseId: true, entityField: true, schemaId: true, tableId: true, tableName: true } }).execute(); // Get one by id -const item = await db.userSettingsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, tableId: true, ownerTableId: true, tableName: true, apiName: true } }).execute(); +const item = await db.userStateModule.findOne({ id: '', select: { id: true, databaseId: true, entityField: true, schemaId: true, tableId: true, tableName: true } }).execute(); // Create -const created = await db.userSettingsModule.create({ data: { databaseId: '', schemaId: '', tableId: '', ownerTableId: '', tableName: '', apiName: '' }, select: { id: true } }).execute(); +const created = await db.userStateModule.create({ data: { databaseId: '', entityField: '', schemaId: '', tableId: '', tableName: '' }, select: { id: true } }).execute(); // Update -const updated = await db.userSettingsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.userStateModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.userSettingsModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.userStateModule.delete({ where: { id: '' } }).execute(); ``` -### `db.configSecretsUserModule` +### `db.userCredentialsModule` -CRUD operations for ConfigSecretsUserModule records. +CRUD operations for UserCredentialsModule records. **Fields:** @@ -400,30 +336,29 @@ CRUD operations for ConfigSecretsUserModule records. |-------|------|----------| | `id` | UUID | No | | `databaseId` | UUID | Yes | +| `entityField` | String | Yes | | `schemaId` | UUID | Yes | | `tableId` | UUID | Yes | | `tableName` | String | Yes | -| `configDefinitionsTableId` | UUID | Yes | -| `apiName` | String | Yes | | `privateApiName` | String | Yes | **Operations:** ```typescript -// List all configSecretsUserModule records -const items = await db.configSecretsUserModule.findMany({ select: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, configDefinitionsTableId: true, apiName: true, privateApiName: true } }).execute(); +// List all userCredentialsModule records +const items = await db.userCredentialsModule.findMany({ select: { id: true, databaseId: true, entityField: true, schemaId: true, tableId: true, tableName: true, privateApiName: true } }).execute(); // Get one by id -const item = await db.configSecretsUserModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, configDefinitionsTableId: true, apiName: true, privateApiName: true } }).execute(); +const item = await db.userCredentialsModule.findOne({ id: '', select: { id: true, databaseId: true, entityField: true, schemaId: true, tableId: true, tableName: true, privateApiName: true } }).execute(); // Create -const created = await db.configSecretsUserModule.create({ data: { databaseId: '', schemaId: '', tableId: '', tableName: '', configDefinitionsTableId: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); +const created = await db.userCredentialsModule.create({ data: { databaseId: '', entityField: '', schemaId: '', tableId: '', tableName: '', privateApiName: '' }, select: { id: true } }).execute(); // Update -const updated = await db.configSecretsUserModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.userCredentialsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.configSecretsUserModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.userCredentialsModule.delete({ where: { id: '' } }).execute(); ``` ### `db.connectedAccountsModule` @@ -648,6 +583,42 @@ const updated = await db.webauthnCredentialsModule.update({ where: { id: ' const deleted = await db.webauthnCredentialsModule.delete({ where: { id: '' } }).execute(); ``` +### `db.configSecretsUserModule` + +CRUD operations for ConfigSecretsUserModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `entityField` | String | Yes | +| `schemaId` | UUID | Yes | +| `tableId` | UUID | Yes | +| `tableName` | String | Yes | +| `apiName` | String | Yes | +| `privateApiName` | String | Yes | + +**Operations:** + +```typescript +// List all configSecretsUserModule records +const items = await db.configSecretsUserModule.findMany({ select: { id: true, databaseId: true, entityField: true, schemaId: true, tableId: true, tableName: true, apiName: true, privateApiName: true } }).execute(); + +// Get one by id +const item = await db.configSecretsUserModule.findOne({ id: '', select: { id: true, databaseId: true, entityField: true, schemaId: true, tableId: true, tableName: true, apiName: true, privateApiName: true } }).execute(); + +// Create +const created = await db.configSecretsUserModule.create({ data: { databaseId: '', entityField: '', schemaId: '', tableId: '', tableName: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.configSecretsUserModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.configSecretsUserModule.delete({ where: { id: '' } }).execute(); +``` + ### `db.cryptoAddressesModule` CRUD operations for CryptoAddressesModule records. @@ -726,47 +697,6 @@ const updated = await db.denormalizedTableField.update({ where: { id: '' } const deleted = await db.denormalizedTableField.delete({ where: { id: '' } }).execute(); ``` -### `db.identityProvidersModule` - -CRUD operations for IdentityProvidersModule records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `schemaId` | UUID | Yes | -| `privateSchemaId` | UUID | Yes | -| `publicSchemaName` | String | Yes | -| `privateSchemaName` | String | Yes | -| `tableId` | UUID | Yes | -| `tableName` | String | Yes | -| `apiName` | String | Yes | -| `privateApiName` | String | Yes | -| `scope` | String | Yes | -| `prefix` | String | Yes | -| `entityTableId` | UUID | Yes | - -**Operations:** - -```typescript -// List all identityProvidersModule records -const items = await db.identityProvidersModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, tableId: true, tableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true } }).execute(); - -// Get one by id -const item = await db.identityProvidersModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, tableId: true, tableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true } }).execute(); - -// Create -const created = await db.identityProvidersModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', tableId: '', tableName: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.identityProvidersModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.identityProvidersModule.delete({ where: { id: '' } }).execute(); -``` - ### `db.rlsModule` CRUD operations for RlsModule records. @@ -1055,51 +985,51 @@ const updated = await db.secureTableProvision.update({ where: { id: '' }, const deleted = await db.secureTableProvision.delete({ where: { id: '' } }).execute(); ``` -### `db.databaseProvisionModule` +### `db.identityProvidersModule` -CRUD operations for DatabaseProvisionModule records. +CRUD operations for IdentityProvidersModule records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `databaseName` | String | Yes | -| `ownerId` | UUID | Yes | -| `subdomain` | String | Yes | -| `domain` | String | Yes | -| `modules` | JSON | Yes | -| `options` | JSON | Yes | -| `bootstrapUser` | Boolean | Yes | -| `status` | String | Yes | -| `errorMessage` | String | Yes | | `databaseId` | UUID | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | -| `completedAt` | Datetime | Yes | +| `entityField` | String | Yes | +| `schemaId` | UUID | Yes | +| `privateSchemaId` | UUID | Yes | +| `publicSchemaName` | String | Yes | +| `privateSchemaName` | String | Yes | +| `tableId` | UUID | Yes | +| `tableName` | String | Yes | +| `apiName` | String | Yes | +| `privateApiName` | String | Yes | +| `scope` | String | Yes | +| `prefix` | String | Yes | +| `entityTableId` | UUID | Yes | **Operations:** ```typescript -// List all databaseProvisionModule records -const items = await db.databaseProvisionModule.findMany({ select: { id: true, databaseName: true, ownerId: true, subdomain: true, domain: true, modules: true, options: true, bootstrapUser: true, status: true, errorMessage: true, databaseId: true, createdAt: true, updatedAt: true, completedAt: true } }).execute(); +// List all identityProvidersModule records +const items = await db.identityProvidersModule.findMany({ select: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, tableId: true, tableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true } }).execute(); // Get one by id -const item = await db.databaseProvisionModule.findOne({ id: '', select: { id: true, databaseName: true, ownerId: true, subdomain: true, domain: true, modules: true, options: true, bootstrapUser: true, status: true, errorMessage: true, databaseId: true, createdAt: true, updatedAt: true, completedAt: true } }).execute(); +const item = await db.identityProvidersModule.findOne({ id: '', select: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, tableId: true, tableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true } }).execute(); // Create -const created = await db.databaseProvisionModule.create({ data: { databaseName: '', ownerId: '', subdomain: '', domain: '', modules: '', options: '', bootstrapUser: '', status: '', errorMessage: '', databaseId: '', completedAt: '' }, select: { id: true } }).execute(); +const created = await db.identityProvidersModule.create({ data: { databaseId: '', entityField: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', tableId: '', tableName: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.databaseProvisionModule.update({ where: { id: '' }, data: { databaseName: '' }, select: { id: true } }).execute(); +const updated = await db.identityProvidersModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.databaseProvisionModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.identityProvidersModule.delete({ where: { id: '' } }).execute(); ``` -### `db.configSecretsModule` +### `db.integrationProvidersModule` -CRUD operations for ConfigSecretsModule records. +CRUD operations for IntegrationProvidersModule records. **Fields:** @@ -1107,89 +1037,121 @@ CRUD operations for ConfigSecretsModule records. |-------|------|----------| | `id` | UUID | No | | `databaseId` | UUID | Yes | +| `entityField` | String | Yes | | `schemaId` | UUID | Yes | | `privateSchemaId` | UUID | Yes | | `publicSchemaName` | String | Yes | | `privateSchemaName` | String | Yes | | `tableId` | UUID | Yes | -| `configDefinitionsTableId` | UUID | Yes | | `tableName` | String | Yes | | `apiName` | String | Yes | | `privateApiName` | String | Yes | | `scope` | String | Yes | | `prefix` | String | Yes | | `entityTableId` | UUID | Yes | -| `policies` | JSON | Yes | -| `provisions` | JSON | Yes | -| `hasConfig` | Boolean | Yes | **Operations:** ```typescript -// List all configSecretsModule records -const items = await db.configSecretsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, tableId: true, configDefinitionsTableId: true, tableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, policies: true, provisions: true, hasConfig: true } }).execute(); +// List all integrationProvidersModule records +const items = await db.integrationProvidersModule.findMany({ select: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, tableId: true, tableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true } }).execute(); // Get one by id -const item = await db.configSecretsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, tableId: true, configDefinitionsTableId: true, tableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, policies: true, provisions: true, hasConfig: true } }).execute(); +const item = await db.integrationProvidersModule.findOne({ id: '', select: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, tableId: true, tableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true } }).execute(); // Create -const created = await db.configSecretsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', tableId: '', configDefinitionsTableId: '', tableName: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '', policies: '', provisions: '', hasConfig: '' }, select: { id: true } }).execute(); +const created = await db.integrationProvidersModule.create({ data: { databaseId: '', entityField: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', tableId: '', tableName: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.configSecretsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.integrationProvidersModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.configSecretsModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.integrationProvidersModule.delete({ where: { id: '' } }).execute(); ``` -### `db.graphModule` +### `db.dbPoolConfig` -CRUD operations for GraphModule records. +CRUD operations for DbPoolConfig records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `publicSchemaId` | UUID | Yes | -| `privateSchemaId` | UUID | Yes | -| `publicSchemaName` | String | Yes | -| `privateSchemaName` | String | Yes | -| `scope` | String | Yes | -| `prefix` | String | Yes | -| `merkleStoreModuleId` | UUID | Yes | -| `graphsTableId` | UUID | Yes | -| `apiName` | String | Yes | -| `privateApiName` | String | Yes | -| `entityTableId` | UUID | Yes | -| `policies` | JSON | Yes | -| `provisions` | JSON | Yes | -| `defaultPermissions` | String | Yes | +| `presetSlug` | String | Yes | +| `domain` | String | Yes | +| `poolOwnerId` | UUID | Yes | +| `min` | Int | Yes | +| `max` | Int | Yes | +| `warmTtl` | Interval | Yes | +| `enabled` | Boolean | Yes | | `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | **Operations:** ```typescript -// List all graphModule records -const items = await db.graphModule.findMany({ select: { id: true, databaseId: true, publicSchemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, scope: true, prefix: true, merkleStoreModuleId: true, graphsTableId: true, apiName: true, privateApiName: true, entityTableId: true, policies: true, provisions: true, defaultPermissions: true, createdAt: true } }).execute(); +// List all dbPoolConfig records +const items = await db.dbPoolConfig.findMany({ select: { id: true, presetSlug: true, domain: true, poolOwnerId: true, min: true, max: true, warmTtl: true, enabled: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.graphModule.findOne({ id: '', select: { id: true, databaseId: true, publicSchemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, scope: true, prefix: true, merkleStoreModuleId: true, graphsTableId: true, apiName: true, privateApiName: true, entityTableId: true, policies: true, provisions: true, defaultPermissions: true, createdAt: true } }).execute(); +const item = await db.dbPoolConfig.findOne({ id: '', select: { id: true, presetSlug: true, domain: true, poolOwnerId: true, min: true, max: true, warmTtl: true, enabled: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.graphModule.create({ data: { databaseId: '', publicSchemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', scope: '', prefix: '', merkleStoreModuleId: '', graphsTableId: '', apiName: '', privateApiName: '', entityTableId: '', policies: '', provisions: '', defaultPermissions: '' }, select: { id: true } }).execute(); +const created = await db.dbPoolConfig.create({ data: { presetSlug: '', domain: '', poolOwnerId: '', min: '', max: '', warmTtl: '', enabled: '' }, select: { id: true } }).execute(); // Update -const updated = await db.graphModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.dbPoolConfig.update({ where: { id: '' }, data: { presetSlug: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.graphModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.dbPoolConfig.delete({ where: { id: '' } }).execute(); ``` -### `db.merkleStoreModule` +### `db.realtimeModule` -CRUD operations for MerkleStoreModule records. +CRUD operations for RealtimeModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `privateSchemaId` | UUID | Yes | +| `subscriptionsSchemaId` | UUID | Yes | +| `changeLogTableId` | UUID | Yes | +| `listenerNodeTableId` | UUID | Yes | +| `sourceRegistryTableId` | UUID | Yes | +| `retentionHours` | Int | Yes | +| `premake` | Int | Yes | +| `interval` | String | Yes | +| `notifyChannel` | String | Yes | +| `apiName` | String | Yes | +| `privateApiName` | String | Yes | + +**Operations:** + +```typescript +// List all realtimeModule records +const items = await db.realtimeModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, subscriptionsSchemaId: true, changeLogTableId: true, listenerNodeTableId: true, sourceRegistryTableId: true, retentionHours: true, premake: true, interval: true, notifyChannel: true, apiName: true, privateApiName: true } }).execute(); + +// Get one by id +const item = await db.realtimeModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, subscriptionsSchemaId: true, changeLogTableId: true, listenerNodeTableId: true, sourceRegistryTableId: true, retentionHours: true, premake: true, interval: true, notifyChannel: true, apiName: true, privateApiName: true } }).execute(); + +// Create +const created = await db.realtimeModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', subscriptionsSchemaId: '', changeLogTableId: '', listenerNodeTableId: '', sourceRegistryTableId: '', retentionHours: '', premake: '', interval: '', notifyChannel: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.realtimeModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.realtimeModule.delete({ where: { id: '' } }).execute(); +``` + +### `db.infraSecretsModule` + +CRUD operations for InfraSecretsModule records. **Fields:** @@ -1201,35 +1163,169 @@ CRUD operations for MerkleStoreModule records. | `privateSchemaId` | UUID | Yes | | `publicSchemaName` | String | Yes | | `privateSchemaName` | String | Yes | -| `objectTableId` | UUID | Yes | -| `storeTableId` | UUID | Yes | -| `commitTableId` | UUID | Yes | -| `refTableId` | UUID | Yes | +| `secretsTableId` | UUID | Yes | +| `secretsTableName` | String | Yes | +| `apiName` | String | Yes | +| `privateApiName` | String | Yes | +| `scope` | String | Yes | | `prefix` | String | Yes | +| `entityTableId` | UUID | Yes | +| `entityField` | String | Yes | +| `policies` | JSON | Yes | +| `provisions` | JSON | Yes | + +**Operations:** + +```typescript +// List all infraSecretsModule records +const items = await db.infraSecretsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, secretsTableId: true, secretsTableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, entityField: true, policies: true, provisions: true } }).execute(); + +// Get one by id +const item = await db.infraSecretsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, secretsTableId: true, secretsTableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, entityField: true, policies: true, provisions: true } }).execute(); + +// Create +const created = await db.infraSecretsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', secretsTableId: '', secretsTableName: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '', entityField: '', policies: '', provisions: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.infraSecretsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.infraSecretsModule.delete({ where: { id: '' } }).execute(); +``` + +### `db.internalSecretsModule` + +CRUD operations for InternalSecretsModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `privateSchemaId` | UUID | Yes | +| `publicSchemaName` | String | Yes | +| `privateSchemaName` | String | Yes | +| `internalSecretsTableId` | UUID | Yes | +| `internalSecretsTableName` | String | Yes | | `apiName` | String | Yes | | `privateApiName` | String | Yes | | `scope` | String | Yes | -| `functionPrefix` | String | Yes | -| `permissionKey` | String | Yes | +| `prefix` | String | Yes | +| `entityTableId` | UUID | Yes | +| `entityField` | String | Yes | +| `policies` | JSON | Yes | +| `provisions` | JSON | Yes | + +**Operations:** + +```typescript +// List all internalSecretsModule records +const items = await db.internalSecretsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, internalSecretsTableId: true, internalSecretsTableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, entityField: true, policies: true, provisions: true } }).execute(); + +// Get one by id +const item = await db.internalSecretsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, internalSecretsTableId: true, internalSecretsTableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, entityField: true, policies: true, provisions: true } }).execute(); + +// Create +const created = await db.internalSecretsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', internalSecretsTableId: '', internalSecretsTableName: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '', entityField: '', policies: '', provisions: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.internalSecretsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.internalSecretsModule.delete({ where: { id: '' } }).execute(); +``` + +### `db.dbPresetModule` + +CRUD operations for DbPresetModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `publicSchemaId` | UUID | Yes | +| `privateSchemaId` | UUID | Yes | +| `publicSchemaName` | String | Yes | +| `privateSchemaName` | String | Yes | +| `scope` | String | Yes | +| `prefix` | String | Yes | +| `merkleStoreModuleId` | UUID | Yes | +| `dbPresetsTableId` | UUID | Yes | +| `storeName` | String | Yes | +| `apiName` | String | Yes | +| `privateApiName` | String | Yes | +| `entityTableId` | UUID | Yes | +| `policies` | JSON | Yes | +| `provisions` | JSON | Yes | | `createdAt` | Datetime | No | **Operations:** ```typescript -// List all merkleStoreModule records -const items = await db.merkleStoreModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, objectTableId: true, storeTableId: true, commitTableId: true, refTableId: true, prefix: true, apiName: true, privateApiName: true, scope: true, functionPrefix: true, permissionKey: true, createdAt: true } }).execute(); +// List all dbPresetModule records +const items = await db.dbPresetModule.findMany({ select: { id: true, databaseId: true, publicSchemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, scope: true, prefix: true, merkleStoreModuleId: true, dbPresetsTableId: true, storeName: true, apiName: true, privateApiName: true, entityTableId: true, policies: true, provisions: true, createdAt: true } }).execute(); // Get one by id -const item = await db.merkleStoreModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, objectTableId: true, storeTableId: true, commitTableId: true, refTableId: true, prefix: true, apiName: true, privateApiName: true, scope: true, functionPrefix: true, permissionKey: true, createdAt: true } }).execute(); +const item = await db.dbPresetModule.findOne({ id: '', select: { id: true, databaseId: true, publicSchemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, scope: true, prefix: true, merkleStoreModuleId: true, dbPresetsTableId: true, storeName: true, apiName: true, privateApiName: true, entityTableId: true, policies: true, provisions: true, createdAt: true } }).execute(); // Create -const created = await db.merkleStoreModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', objectTableId: '', storeTableId: '', commitTableId: '', refTableId: '', prefix: '', apiName: '', privateApiName: '', scope: '', functionPrefix: '', permissionKey: '' }, select: { id: true } }).execute(); +const created = await db.dbPresetModule.create({ data: { databaseId: '', publicSchemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', scope: '', prefix: '', merkleStoreModuleId: '', dbPresetsTableId: '', storeName: '', apiName: '', privateApiName: '', entityTableId: '', policies: '', provisions: '' }, select: { id: true } }).execute(); // Update -const updated = await db.merkleStoreModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.dbPresetModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.merkleStoreModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.dbPresetModule.delete({ where: { id: '' } }).execute(); +``` + +### `db.graphModule` + +CRUD operations for GraphModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `entityField` | String | Yes | +| `publicSchemaId` | UUID | Yes | +| `privateSchemaId` | UUID | Yes | +| `publicSchemaName` | String | Yes | +| `privateSchemaName` | String | Yes | +| `scope` | String | Yes | +| `prefix` | String | Yes | +| `merkleStoreModuleId` | UUID | Yes | +| `graphsTableId` | UUID | Yes | +| `apiName` | String | Yes | +| `privateApiName` | String | Yes | +| `entityTableId` | UUID | Yes | +| `policies` | JSON | Yes | +| `provisions` | JSON | Yes | +| `defaultPermissions` | String | Yes | +| `createdAt` | Datetime | No | + +**Operations:** + +```typescript +// List all graphModule records +const items = await db.graphModule.findMany({ select: { id: true, databaseId: true, entityField: true, publicSchemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, scope: true, prefix: true, merkleStoreModuleId: true, graphsTableId: true, apiName: true, privateApiName: true, entityTableId: true, policies: true, provisions: true, defaultPermissions: true, createdAt: true } }).execute(); + +// Get one by id +const item = await db.graphModule.findOne({ id: '', select: { id: true, databaseId: true, entityField: true, publicSchemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, scope: true, prefix: true, merkleStoreModuleId: true, graphsTableId: true, apiName: true, privateApiName: true, entityTableId: true, policies: true, provisions: true, defaultPermissions: true, createdAt: true } }).execute(); + +// Create +const created = await db.graphModule.create({ data: { databaseId: '', entityField: '', publicSchemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', scope: '', prefix: '', merkleStoreModuleId: '', graphsTableId: '', apiName: '', privateApiName: '', entityTableId: '', policies: '', provisions: '', defaultPermissions: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.graphModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.graphModule.delete({ where: { id: '' } }).execute(); ``` ### `db.rateLimitMetersModule` @@ -1277,9 +1373,9 @@ const updated = await db.rateLimitMetersModule.update({ where: { id: '' }, const deleted = await db.rateLimitMetersModule.delete({ where: { id: '' } }).execute(); ``` -### `db.realtimeModule` +### `db.infraConfigModule` -CRUD operations for RealtimeModule records. +CRUD operations for InfraConfigModule records. **Fields:** @@ -1287,36 +1383,38 @@ CRUD operations for RealtimeModule records. |-------|------|----------| | `id` | UUID | No | | `databaseId` | UUID | Yes | +| `entityField` | String | Yes | | `schemaId` | UUID | Yes | | `privateSchemaId` | UUID | Yes | -| `subscriptionsSchemaId` | UUID | Yes | -| `changeLogTableId` | UUID | Yes | -| `listenerNodeTableId` | UUID | Yes | -| `sourceRegistryTableId` | UUID | Yes | -| `retentionHours` | Int | Yes | -| `premake` | Int | Yes | -| `interval` | String | Yes | -| `notifyChannel` | String | Yes | +| `publicSchemaName` | String | Yes | +| `privateSchemaName` | String | Yes | +| `configTableId` | UUID | Yes | +| `configTableName` | String | Yes | | `apiName` | String | Yes | | `privateApiName` | String | Yes | +| `scope` | String | Yes | +| `prefix` | String | Yes | +| `entityTableId` | UUID | Yes | +| `policies` | JSON | Yes | +| `provisions` | JSON | Yes | **Operations:** ```typescript -// List all realtimeModule records -const items = await db.realtimeModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, subscriptionsSchemaId: true, changeLogTableId: true, listenerNodeTableId: true, sourceRegistryTableId: true, retentionHours: true, premake: true, interval: true, notifyChannel: true, apiName: true, privateApiName: true } }).execute(); +// List all infraConfigModule records +const items = await db.infraConfigModule.findMany({ select: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, configTableId: true, configTableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, policies: true, provisions: true } }).execute(); // Get one by id -const item = await db.realtimeModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, subscriptionsSchemaId: true, changeLogTableId: true, listenerNodeTableId: true, sourceRegistryTableId: true, retentionHours: true, premake: true, interval: true, notifyChannel: true, apiName: true, privateApiName: true } }).execute(); +const item = await db.infraConfigModule.findOne({ id: '', select: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, configTableId: true, configTableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, policies: true, provisions: true } }).execute(); // Create -const created = await db.realtimeModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', subscriptionsSchemaId: '', changeLogTableId: '', listenerNodeTableId: '', sourceRegistryTableId: '', retentionHours: '', premake: '', interval: '', notifyChannel: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); +const created = await db.infraConfigModule.create({ data: { databaseId: '', entityField: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', configTableId: '', configTableName: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '', policies: '', provisions: '' }, select: { id: true } }).execute(); // Update -const updated = await db.realtimeModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.infraConfigModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.realtimeModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.infraConfigModule.delete({ where: { id: '' } }).execute(); ``` ### `db.webauthnAuthModule` @@ -1363,9 +1461,9 @@ const updated = await db.webauthnAuthModule.update({ where: { id: '' }, da const deleted = await db.webauthnAuthModule.delete({ where: { id: '' } }).execute(); ``` -### `db.functionInvocationModule` +### `db.principalAuthModule` -CRUD operations for FunctionInvocationModule records. +CRUD operations for PrincipalAuthModule records. **Fields:** @@ -1374,39 +1472,80 @@ CRUD operations for FunctionInvocationModule records. | `id` | UUID | No | | `databaseId` | UUID | Yes | | `schemaId` | UUID | Yes | -| `privateSchemaId` | UUID | Yes | -| `publicSchemaName` | String | Yes | -| `privateSchemaName` | String | Yes | -| `invocationsTableId` | UUID | Yes | -| `executionLogsTableId` | UUID | Yes | -| `invocationsTableName` | String | Yes | -| `executionLogsTableName` | String | Yes | +| `principalsTableId` | UUID | Yes | +| `principalEntitiesTableId` | UUID | Yes | +| `principalScopeOverridesTableId` | UUID | Yes | +| `usersTableId` | UUID | Yes | +| `sessionsTableId` | UUID | Yes | +| `sessionCredentialsTableId` | UUID | Yes | +| `auditsTableId` | UUID | Yes | +| `principalsTableName` | String | Yes | +| `createPrincipalFunction` | String | Yes | +| `deletePrincipalFunction` | String | Yes | +| `createOrgPrincipalFunction` | String | Yes | +| `deleteOrgPrincipalFunction` | String | Yes | +| `createOrgApiKeyFunction` | String | Yes | +| `revokeOrgApiKeyFunction` | String | Yes | | `apiName` | String | Yes | -| `privateApiName` | String | Yes | -| `scope` | String | Yes | -| `prefix` | String | Yes | -| `entityTableId` | UUID | Yes | -| `policies` | JSON | Yes | -| `provisions` | JSON | Yes | -| `defaultPermissions` | String | Yes | **Operations:** ```typescript -// List all functionInvocationModule records -const items = await db.functionInvocationModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, invocationsTableId: true, executionLogsTableId: true, invocationsTableName: true, executionLogsTableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, policies: true, provisions: true, defaultPermissions: true } }).execute(); +// List all principalAuthModule records +const items = await db.principalAuthModule.findMany({ select: { id: true, databaseId: true, schemaId: true, principalsTableId: true, principalEntitiesTableId: true, principalScopeOverridesTableId: true, usersTableId: true, sessionsTableId: true, sessionCredentialsTableId: true, auditsTableId: true, principalsTableName: true, createPrincipalFunction: true, deletePrincipalFunction: true, createOrgPrincipalFunction: true, deleteOrgPrincipalFunction: true, createOrgApiKeyFunction: true, revokeOrgApiKeyFunction: true, apiName: true } }).execute(); // Get one by id -const item = await db.functionInvocationModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, invocationsTableId: true, executionLogsTableId: true, invocationsTableName: true, executionLogsTableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, policies: true, provisions: true, defaultPermissions: true } }).execute(); +const item = await db.principalAuthModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, principalsTableId: true, principalEntitiesTableId: true, principalScopeOverridesTableId: true, usersTableId: true, sessionsTableId: true, sessionCredentialsTableId: true, auditsTableId: true, principalsTableName: true, createPrincipalFunction: true, deletePrincipalFunction: true, createOrgPrincipalFunction: true, deleteOrgPrincipalFunction: true, createOrgApiKeyFunction: true, revokeOrgApiKeyFunction: true, apiName: true } }).execute(); // Create -const created = await db.functionInvocationModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', invocationsTableId: '', executionLogsTableId: '', invocationsTableName: '', executionLogsTableName: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '', policies: '', provisions: '', defaultPermissions: '' }, select: { id: true } }).execute(); +const created = await db.principalAuthModule.create({ data: { databaseId: '', schemaId: '', principalsTableId: '', principalEntitiesTableId: '', principalScopeOverridesTableId: '', usersTableId: '', sessionsTableId: '', sessionCredentialsTableId: '', auditsTableId: '', principalsTableName: '', createPrincipalFunction: '', deletePrincipalFunction: '', createOrgPrincipalFunction: '', deleteOrgPrincipalFunction: '', createOrgApiKeyFunction: '', revokeOrgApiKeyFunction: '', apiName: '' }, select: { id: true } }).execute(); // Update -const updated = await db.functionInvocationModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.principalAuthModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.functionInvocationModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.principalAuthModule.delete({ where: { id: '' } }).execute(); +``` + +### `db.dbPool` + +CRUD operations for DbPool records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `presetSlug` | String | Yes | +| `presetCommitId` | UUID | Yes | +| `databaseId` | UUID | Yes | +| `status` | String | Yes | +| `errorMessage` | String | Yes | +| `expiresAt` | Datetime | Yes | +| `claimedBy` | UUID | Yes | +| `claimedAt` | Datetime | Yes | +| `bootstrapStatus` | String | Yes | +| `bootstrapError` | String | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all dbPool records +const items = await db.dbPool.findMany({ select: { id: true, presetSlug: true, presetCommitId: true, databaseId: true, status: true, errorMessage: true, expiresAt: true, claimedBy: true, claimedAt: true, bootstrapStatus: true, bootstrapError: true, createdAt: true, updatedAt: true } }).execute(); + +// Get one by id +const item = await db.dbPool.findOne({ id: '', select: { id: true, presetSlug: true, presetCommitId: true, databaseId: true, status: true, errorMessage: true, expiresAt: true, claimedBy: true, claimedAt: true, bootstrapStatus: true, bootstrapError: true, createdAt: true, updatedAt: true } }).execute(); + +// Create +const created = await db.dbPool.create({ data: { presetSlug: '', presetCommitId: '', databaseId: '', status: '', errorMessage: '', expiresAt: '', claimedBy: '', claimedAt: '', bootstrapStatus: '', bootstrapError: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.dbPool.update({ where: { id: '' }, data: { presetSlug: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.dbPool.delete({ where: { id: '' } }).execute(); ``` ### `db.functionModule` @@ -1419,14 +1558,13 @@ CRUD operations for FunctionModule records. |-------|------|----------| | `id` | UUID | No | | `databaseId` | UUID | Yes | +| `entityField` | String | Yes | | `schemaId` | UUID | Yes | | `privateSchemaId` | UUID | Yes | | `publicSchemaName` | String | Yes | | `privateSchemaName` | String | Yes | | `definitionsTableId` | UUID | Yes | -| `secretDefinitionsTableId` | UUID | Yes | | `definitionsTableName` | String | Yes | -| `secretDefinitionsTableName` | String | Yes | | `apiName` | String | Yes | | `privateApiName` | String | Yes | | `scope` | String | Yes | @@ -1440,13 +1578,13 @@ CRUD operations for FunctionModule records. ```typescript // List all functionModule records -const items = await db.functionModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, definitionsTableId: true, secretDefinitionsTableId: true, definitionsTableName: true, secretDefinitionsTableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, policies: true, provisions: true, defaultPermissions: true } }).execute(); +const items = await db.functionModule.findMany({ select: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, definitionsTableId: true, definitionsTableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, policies: true, provisions: true, defaultPermissions: true } }).execute(); // Get one by id -const item = await db.functionModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, definitionsTableId: true, secretDefinitionsTableId: true, definitionsTableName: true, secretDefinitionsTableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, policies: true, provisions: true, defaultPermissions: true } }).execute(); +const item = await db.functionModule.findOne({ id: '', select: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, definitionsTableId: true, definitionsTableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, policies: true, provisions: true, defaultPermissions: true } }).execute(); // Create -const created = await db.functionModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', definitionsTableId: '', secretDefinitionsTableId: '', definitionsTableName: '', secretDefinitionsTableName: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '', policies: '', provisions: '', defaultPermissions: '' }, select: { id: true } }).execute(); +const created = await db.functionModule.create({ data: { databaseId: '', entityField: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', definitionsTableId: '', definitionsTableName: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '', policies: '', provisions: '', defaultPermissions: '' }, select: { id: true } }).execute(); // Update const updated = await db.functionModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); @@ -1455,9 +1593,9 @@ const updated = await db.functionModule.update({ where: { id: '' }, data: const deleted = await db.functionModule.delete({ where: { id: '' } }).execute(); ``` -### `db.invitesModule` +### `db.merkleStoreModule` -CRUD operations for InvitesModule records. +CRUD operations for MerkleStoreModule records. **Fields:** @@ -1465,91 +1603,91 @@ CRUD operations for InvitesModule records. |-------|------|----------| | `id` | UUID | No | | `databaseId` | UUID | Yes | +| `entityField` | String | Yes | | `schemaId` | UUID | Yes | | `privateSchemaId` | UUID | Yes | | `publicSchemaName` | String | Yes | | `privateSchemaName` | String | Yes | -| `emailsTableId` | UUID | Yes | -| `usersTableId` | UUID | Yes | -| `invitesTableId` | UUID | Yes | -| `claimedInvitesTableId` | UUID | Yes | -| `invitesTableName` | String | Yes | -| `claimedInvitesTableName` | String | Yes | -| `submitInviteCodeFunction` | String | Yes | -| `scope` | String | Yes | +| `objectTableId` | UUID | Yes | +| `storeTableId` | UUID | Yes | +| `commitTableId` | UUID | Yes | +| `refTableId` | UUID | Yes | | `prefix` | String | Yes | -| `entityTableId` | UUID | Yes | | `apiName` | String | Yes | | `privateApiName` | String | Yes | +| `scope` | String | Yes | +| `functionPrefix` | String | Yes | +| `permissionKey` | String | Yes | +| `createdAt` | Datetime | No | **Operations:** ```typescript -// List all invitesModule records -const items = await db.invitesModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, emailsTableId: true, usersTableId: true, invitesTableId: true, claimedInvitesTableId: true, invitesTableName: true, claimedInvitesTableName: true, submitInviteCodeFunction: true, scope: true, prefix: true, entityTableId: true, apiName: true, privateApiName: true } }).execute(); +// List all merkleStoreModule records +const items = await db.merkleStoreModule.findMany({ select: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, objectTableId: true, storeTableId: true, commitTableId: true, refTableId: true, prefix: true, apiName: true, privateApiName: true, scope: true, functionPrefix: true, permissionKey: true, createdAt: true } }).execute(); // Get one by id -const item = await db.invitesModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, emailsTableId: true, usersTableId: true, invitesTableId: true, claimedInvitesTableId: true, invitesTableName: true, claimedInvitesTableName: true, submitInviteCodeFunction: true, scope: true, prefix: true, entityTableId: true, apiName: true, privateApiName: true } }).execute(); +const item = await db.merkleStoreModule.findOne({ id: '', select: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, objectTableId: true, storeTableId: true, commitTableId: true, refTableId: true, prefix: true, apiName: true, privateApiName: true, scope: true, functionPrefix: true, permissionKey: true, createdAt: true } }).execute(); // Create -const created = await db.invitesModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', emailsTableId: '', usersTableId: '', invitesTableId: '', claimedInvitesTableId: '', invitesTableName: '', claimedInvitesTableName: '', submitInviteCodeFunction: '', scope: '', prefix: '', entityTableId: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); +const created = await db.merkleStoreModule.create({ data: { databaseId: '', entityField: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', objectTableId: '', storeTableId: '', commitTableId: '', refTableId: '', prefix: '', apiName: '', privateApiName: '', scope: '', functionPrefix: '', permissionKey: '' }, select: { id: true } }).execute(); // Update -const updated = await db.invitesModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.merkleStoreModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.invitesModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.merkleStoreModule.delete({ where: { id: '' } }).execute(); ``` -### `db.principalAuthModule` +### `db.databaseProvisionModule` -CRUD operations for PrincipalAuthModule records. +CRUD operations for DatabaseProvisionModule records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | +| `databaseName` | String | Yes | +| `ownerId` | UUID | Yes | +| `subdomain` | String | Yes | +| `domain` | String | Yes | +| `modules` | JSON | Yes | +| `options` | JSON | Yes | +| `bootstrapUser` | Boolean | Yes | +| `status` | String | Yes | +| `errorMessage` | String | Yes | +| `sourceDatabaseId` | UUID | Yes | +| `bootstrapStatus` | String | Yes | +| `bootstrapError` | String | Yes | | `databaseId` | UUID | Yes | -| `schemaId` | UUID | Yes | -| `principalsTableId` | UUID | Yes | -| `principalEntitiesTableId` | UUID | Yes | -| `principalScopeOverridesTableId` | UUID | Yes | -| `usersTableId` | UUID | Yes | -| `sessionsTableId` | UUID | Yes | -| `sessionCredentialsTableId` | UUID | Yes | -| `auditsTableId` | UUID | Yes | -| `principalsTableName` | String | Yes | -| `createPrincipalFunction` | String | Yes | -| `deletePrincipalFunction` | String | Yes | -| `createOrgPrincipalFunction` | String | Yes | -| `deleteOrgPrincipalFunction` | String | Yes | -| `createOrgApiKeyFunction` | String | Yes | -| `revokeOrgApiKeyFunction` | String | Yes | -| `apiName` | String | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | +| `completedAt` | Datetime | Yes | +| `fulfilledAt` | Datetime | Yes | **Operations:** ```typescript -// List all principalAuthModule records -const items = await db.principalAuthModule.findMany({ select: { id: true, databaseId: true, schemaId: true, principalsTableId: true, principalEntitiesTableId: true, principalScopeOverridesTableId: true, usersTableId: true, sessionsTableId: true, sessionCredentialsTableId: true, auditsTableId: true, principalsTableName: true, createPrincipalFunction: true, deletePrincipalFunction: true, createOrgPrincipalFunction: true, deleteOrgPrincipalFunction: true, createOrgApiKeyFunction: true, revokeOrgApiKeyFunction: true, apiName: true } }).execute(); +// List all databaseProvisionModule records +const items = await db.databaseProvisionModule.findMany({ select: { id: true, databaseName: true, ownerId: true, subdomain: true, domain: true, modules: true, options: true, bootstrapUser: true, status: true, errorMessage: true, sourceDatabaseId: true, bootstrapStatus: true, bootstrapError: true, databaseId: true, createdAt: true, updatedAt: true, completedAt: true, fulfilledAt: true } }).execute(); // Get one by id -const item = await db.principalAuthModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, principalsTableId: true, principalEntitiesTableId: true, principalScopeOverridesTableId: true, usersTableId: true, sessionsTableId: true, sessionCredentialsTableId: true, auditsTableId: true, principalsTableName: true, createPrincipalFunction: true, deletePrincipalFunction: true, createOrgPrincipalFunction: true, deleteOrgPrincipalFunction: true, createOrgApiKeyFunction: true, revokeOrgApiKeyFunction: true, apiName: true } }).execute(); +const item = await db.databaseProvisionModule.findOne({ id: '', select: { id: true, databaseName: true, ownerId: true, subdomain: true, domain: true, modules: true, options: true, bootstrapUser: true, status: true, errorMessage: true, sourceDatabaseId: true, bootstrapStatus: true, bootstrapError: true, databaseId: true, createdAt: true, updatedAt: true, completedAt: true, fulfilledAt: true } }).execute(); // Create -const created = await db.principalAuthModule.create({ data: { databaseId: '', schemaId: '', principalsTableId: '', principalEntitiesTableId: '', principalScopeOverridesTableId: '', usersTableId: '', sessionsTableId: '', sessionCredentialsTableId: '', auditsTableId: '', principalsTableName: '', createPrincipalFunction: '', deletePrincipalFunction: '', createOrgPrincipalFunction: '', deleteOrgPrincipalFunction: '', createOrgApiKeyFunction: '', revokeOrgApiKeyFunction: '', apiName: '' }, select: { id: true } }).execute(); +const created = await db.databaseProvisionModule.create({ data: { databaseName: '', ownerId: '', subdomain: '', domain: '', modules: '', options: '', bootstrapUser: '', status: '', errorMessage: '', sourceDatabaseId: '', bootstrapStatus: '', bootstrapError: '', databaseId: '', completedAt: '', fulfilledAt: '' }, select: { id: true } }).execute(); // Update -const updated = await db.principalAuthModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.databaseProvisionModule.update({ where: { id: '' }, data: { databaseName: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.principalAuthModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.databaseProvisionModule.delete({ where: { id: '' } }).execute(); ``` -### `db.computeLogModule` +### `db.functionInvocationModule` -CRUD operations for ComputeLogModule records. +CRUD operations for FunctionInvocationModule records. **Fields:** @@ -1557,46 +1695,46 @@ CRUD operations for ComputeLogModule records. |-------|------|----------| | `id` | UUID | No | | `databaseId` | UUID | Yes | +| `entityField` | String | Yes | | `schemaId` | UUID | Yes | | `privateSchemaId` | UUID | Yes | | `publicSchemaName` | String | Yes | | `privateSchemaName` | String | Yes | -| `computeLogTableId` | UUID | Yes | -| `computeLogTableName` | String | Yes | -| `usageDailyTableId` | UUID | Yes | -| `usageDailyTableName` | String | Yes | -| `interval` | String | Yes | -| `retention` | String | Yes | -| `premake` | Int | Yes | -| `scope` | String | Yes | -| `actorFkTableId` | UUID | Yes | -| `entityFkTableId` | UUID | Yes | -| `prefix` | String | Yes | +| `invocationsTableId` | UUID | Yes | +| `executionLogsTableId` | UUID | Yes | +| `invocationsTableName` | String | Yes | +| `executionLogsTableName` | String | Yes | | `apiName` | String | Yes | | `privateApiName` | String | Yes | +| `scope` | String | Yes | +| `prefix` | String | Yes | +| `entityTableId` | UUID | Yes | +| `policies` | JSON | Yes | +| `provisions` | JSON | Yes | +| `defaultPermissions` | String | Yes | **Operations:** ```typescript -// List all computeLogModule records -const items = await db.computeLogModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, computeLogTableId: true, computeLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } }).execute(); +// List all functionInvocationModule records +const items = await db.functionInvocationModule.findMany({ select: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, invocationsTableId: true, executionLogsTableId: true, invocationsTableName: true, executionLogsTableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, policies: true, provisions: true, defaultPermissions: true } }).execute(); // Get one by id -const item = await db.computeLogModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, computeLogTableId: true, computeLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } }).execute(); +const item = await db.functionInvocationModule.findOne({ id: '', select: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, invocationsTableId: true, executionLogsTableId: true, invocationsTableName: true, executionLogsTableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, policies: true, provisions: true, defaultPermissions: true } }).execute(); // Create -const created = await db.computeLogModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', computeLogTableId: '', computeLogTableName: '', usageDailyTableId: '', usageDailyTableName: '', interval: '', retention: '', premake: '', scope: '', actorFkTableId: '', entityFkTableId: '', prefix: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); +const created = await db.functionInvocationModule.create({ data: { databaseId: '', entityField: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', invocationsTableId: '', executionLogsTableId: '', invocationsTableName: '', executionLogsTableName: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '', policies: '', provisions: '', defaultPermissions: '' }, select: { id: true } }).execute(); // Update -const updated = await db.computeLogModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.functionInvocationModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.computeLogModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.functionInvocationModule.delete({ where: { id: '' } }).execute(); ``` -### `db.inferenceLogModule` +### `db.invitesModule` -CRUD operations for InferenceLogModule records. +CRUD operations for InvitesModule records. **Fields:** @@ -1604,41 +1742,41 @@ CRUD operations for InferenceLogModule records. |-------|------|----------| | `id` | UUID | No | | `databaseId` | UUID | Yes | +| `entityField` | String | Yes | | `schemaId` | UUID | Yes | | `privateSchemaId` | UUID | Yes | | `publicSchemaName` | String | Yes | | `privateSchemaName` | String | Yes | -| `inferenceLogTableId` | UUID | Yes | -| `inferenceLogTableName` | String | Yes | -| `usageDailyTableId` | UUID | Yes | -| `usageDailyTableName` | String | Yes | -| `interval` | String | Yes | -| `retention` | String | Yes | -| `premake` | Int | Yes | +| `emailsTableId` | UUID | Yes | +| `usersTableId` | UUID | Yes | +| `invitesTableId` | UUID | Yes | +| `claimedInvitesTableId` | UUID | Yes | +| `invitesTableName` | String | Yes | +| `claimedInvitesTableName` | String | Yes | +| `submitInviteCodeFunction` | String | Yes | | `scope` | String | Yes | -| `actorFkTableId` | UUID | Yes | -| `entityFkTableId` | UUID | Yes | | `prefix` | String | Yes | +| `entityTableId` | UUID | Yes | | `apiName` | String | Yes | | `privateApiName` | String | Yes | **Operations:** ```typescript -// List all inferenceLogModule records -const items = await db.inferenceLogModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, inferenceLogTableId: true, inferenceLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } }).execute(); +// List all invitesModule records +const items = await db.invitesModule.findMany({ select: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, emailsTableId: true, usersTableId: true, invitesTableId: true, claimedInvitesTableId: true, invitesTableName: true, claimedInvitesTableName: true, submitInviteCodeFunction: true, scope: true, prefix: true, entityTableId: true, apiName: true, privateApiName: true } }).execute(); // Get one by id -const item = await db.inferenceLogModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, inferenceLogTableId: true, inferenceLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } }).execute(); +const item = await db.invitesModule.findOne({ id: '', select: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, emailsTableId: true, usersTableId: true, invitesTableId: true, claimedInvitesTableId: true, invitesTableName: true, claimedInvitesTableName: true, submitInviteCodeFunction: true, scope: true, prefix: true, entityTableId: true, apiName: true, privateApiName: true } }).execute(); // Create -const created = await db.inferenceLogModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', inferenceLogTableId: '', inferenceLogTableName: '', usageDailyTableId: '', usageDailyTableName: '', interval: '', retention: '', premake: '', scope: '', actorFkTableId: '', entityFkTableId: '', prefix: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); +const created = await db.invitesModule.create({ data: { databaseId: '', entityField: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', emailsTableId: '', usersTableId: '', invitesTableId: '', claimedInvitesTableId: '', invitesTableName: '', claimedInvitesTableName: '', submitInviteCodeFunction: '', scope: '', prefix: '', entityTableId: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); // Update -const updated = await db.inferenceLogModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.invitesModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.inferenceLogModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.invitesModule.delete({ where: { id: '' } }).execute(); ``` ### `db.namespaceModule` @@ -1651,6 +1789,7 @@ CRUD operations for NamespaceModule records. |-------|------|----------| | `id` | UUID | No | | `databaseId` | UUID | Yes | +| `entityField` | String | Yes | | `schemaId` | UUID | Yes | | `privateSchemaId` | UUID | Yes | | `publicSchemaName` | String | Yes | @@ -1664,7 +1803,6 @@ CRUD operations for NamespaceModule records. | `scope` | String | Yes | | `prefix` | String | Yes | | `entityTableId` | UUID | Yes | -| `platformNamespacesTableId` | UUID | Yes | | `policies` | JSON | Yes | | `provisions` | JSON | Yes | | `defaultPermissions` | String | Yes | @@ -1673,13 +1811,13 @@ CRUD operations for NamespaceModule records. ```typescript // List all namespaceModule records -const items = await db.namespaceModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, namespacesTableId: true, namespaceEventsTableId: true, namespacesTableName: true, namespaceEventsTableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, platformNamespacesTableId: true, policies: true, provisions: true, defaultPermissions: true } }).execute(); +const items = await db.namespaceModule.findMany({ select: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, namespacesTableId: true, namespaceEventsTableId: true, namespacesTableName: true, namespaceEventsTableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, policies: true, provisions: true, defaultPermissions: true } }).execute(); // Get one by id -const item = await db.namespaceModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, namespacesTableId: true, namespaceEventsTableId: true, namespacesTableName: true, namespaceEventsTableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, platformNamespacesTableId: true, policies: true, provisions: true, defaultPermissions: true } }).execute(); +const item = await db.namespaceModule.findOne({ id: '', select: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, namespacesTableId: true, namespaceEventsTableId: true, namespacesTableName: true, namespaceEventsTableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, policies: true, provisions: true, defaultPermissions: true } }).execute(); // Create -const created = await db.namespaceModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', namespacesTableId: '', namespaceEventsTableId: '', namespacesTableName: '', namespaceEventsTableName: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '', platformNamespacesTableId: '', policies: '', provisions: '', defaultPermissions: '' }, select: { id: true } }).execute(); +const created = await db.namespaceModule.create({ data: { databaseId: '', entityField: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', namespacesTableId: '', namespaceEventsTableId: '', namespacesTableName: '', namespaceEventsTableName: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '', policies: '', provisions: '', defaultPermissions: '' }, select: { id: true } }).execute(); // Update const updated = await db.namespaceModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); @@ -1688,9 +1826,9 @@ const updated = await db.namespaceModule.update({ where: { id: '' }, data: const deleted = await db.namespaceModule.delete({ where: { id: '' } }).execute(); ``` -### `db.resourceModule` +### `db.plansModule` -CRUD operations for ResourceModule records. +CRUD operations for PlansModule records. **Fields:** @@ -1702,42 +1840,44 @@ CRUD operations for ResourceModule records. | `privateSchemaId` | UUID | Yes | | `publicSchemaName` | String | Yes | | `privateSchemaName` | String | Yes | -| `resourcesTableId` | UUID | Yes | -| `resourceEventsTableId` | UUID | Yes | -| `resourcesTableName` | String | Yes | -| `resourceEventsTableName` | String | Yes | +| `plansTableId` | UUID | Yes | +| `plansTableName` | String | Yes | +| `planLimitsTableId` | UUID | Yes | +| `planLimitsTableName` | String | Yes | +| `planPricingTableId` | UUID | Yes | +| `planOverridesTableId` | UUID | Yes | +| `planMeterLimitsTableId` | UUID | Yes | +| `planCapsTableId` | UUID | Yes | +| `applyPlanFunction` | String | Yes | +| `applyPlanAggregateFunction` | String | Yes | +| `applyBillingPlanFunction` | String | Yes | +| `applyPlanCapsFunction` | String | Yes | +| `prefix` | String | Yes | | `apiName` | String | Yes | | `privateApiName` | String | Yes | -| `scope` | String | Yes | -| `prefix` | String | Yes | -| `entityTableId` | UUID | Yes | -| `namespaceModuleId` | UUID | Yes | -| `policies` | JSON | Yes | -| `provisions` | JSON | Yes | -| `defaultPermissions` | String | Yes | **Operations:** ```typescript -// List all resourceModule records -const items = await db.resourceModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, resourcesTableId: true, resourceEventsTableId: true, resourcesTableName: true, resourceEventsTableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, namespaceModuleId: true, policies: true, provisions: true, defaultPermissions: true } }).execute(); +// List all plansModule records +const items = await db.plansModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, plansTableId: true, plansTableName: true, planLimitsTableId: true, planLimitsTableName: true, planPricingTableId: true, planOverridesTableId: true, planMeterLimitsTableId: true, planCapsTableId: true, applyPlanFunction: true, applyPlanAggregateFunction: true, applyBillingPlanFunction: true, applyPlanCapsFunction: true, prefix: true, apiName: true, privateApiName: true } }).execute(); // Get one by id -const item = await db.resourceModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, resourcesTableId: true, resourceEventsTableId: true, resourcesTableName: true, resourceEventsTableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, namespaceModuleId: true, policies: true, provisions: true, defaultPermissions: true } }).execute(); +const item = await db.plansModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, plansTableId: true, plansTableName: true, planLimitsTableId: true, planLimitsTableName: true, planPricingTableId: true, planOverridesTableId: true, planMeterLimitsTableId: true, planCapsTableId: true, applyPlanFunction: true, applyPlanAggregateFunction: true, applyBillingPlanFunction: true, applyPlanCapsFunction: true, prefix: true, apiName: true, privateApiName: true } }).execute(); // Create -const created = await db.resourceModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', resourcesTableId: '', resourceEventsTableId: '', resourcesTableName: '', resourceEventsTableName: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '', namespaceModuleId: '', policies: '', provisions: '', defaultPermissions: '' }, select: { id: true } }).execute(); +const created = await db.plansModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', plansTableId: '', plansTableName: '', planLimitsTableId: '', planLimitsTableName: '', planPricingTableId: '', planOverridesTableId: '', planMeterLimitsTableId: '', planCapsTableId: '', applyPlanFunction: '', applyPlanAggregateFunction: '', applyBillingPlanFunction: '', applyPlanCapsFunction: '', prefix: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); // Update -const updated = await db.resourceModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.plansModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.resourceModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.plansModule.delete({ where: { id: '' } }).execute(); ``` -### `db.storageLogModule` +### `db.computeLogModule` -CRUD operations for StorageLogModule records. +CRUD operations for ComputeLogModule records. **Fields:** @@ -1745,12 +1885,13 @@ CRUD operations for StorageLogModule records. |-------|------|----------| | `id` | UUID | No | | `databaseId` | UUID | Yes | +| `entityField` | String | Yes | | `schemaId` | UUID | Yes | | `privateSchemaId` | UUID | Yes | | `publicSchemaName` | String | Yes | | `privateSchemaName` | String | Yes | -| `storageLogTableId` | UUID | Yes | -| `storageLogTableName` | String | Yes | +| `computeLogTableId` | UUID | Yes | +| `computeLogTableName` | String | Yes | | `usageDailyTableId` | UUID | Yes | | `usageDailyTableName` | String | Yes | | `interval` | String | Yes | @@ -1766,25 +1907,25 @@ CRUD operations for StorageLogModule records. **Operations:** ```typescript -// List all storageLogModule records -const items = await db.storageLogModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, storageLogTableId: true, storageLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } }).execute(); +// List all computeLogModule records +const items = await db.computeLogModule.findMany({ select: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, computeLogTableId: true, computeLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } }).execute(); // Get one by id -const item = await db.storageLogModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, storageLogTableId: true, storageLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } }).execute(); +const item = await db.computeLogModule.findOne({ id: '', select: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, computeLogTableId: true, computeLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } }).execute(); // Create -const created = await db.storageLogModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', storageLogTableId: '', storageLogTableName: '', usageDailyTableId: '', usageDailyTableName: '', interval: '', retention: '', premake: '', scope: '', actorFkTableId: '', entityFkTableId: '', prefix: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); +const created = await db.computeLogModule.create({ data: { databaseId: '', entityField: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', computeLogTableId: '', computeLogTableName: '', usageDailyTableId: '', usageDailyTableName: '', interval: '', retention: '', premake: '', scope: '', actorFkTableId: '', entityFkTableId: '', prefix: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); // Update -const updated = await db.storageLogModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.computeLogModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.storageLogModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.computeLogModule.delete({ where: { id: '' } }).execute(); ``` -### `db.transferLogModule` +### `db.inferenceLogModule` -CRUD operations for TransferLogModule records. +CRUD operations for InferenceLogModule records. **Fields:** @@ -1792,12 +1933,13 @@ CRUD operations for TransferLogModule records. |-------|------|----------| | `id` | UUID | No | | `databaseId` | UUID | Yes | +| `entityField` | String | Yes | | `schemaId` | UUID | Yes | | `privateSchemaId` | UUID | Yes | | `publicSchemaName` | String | Yes | | `privateSchemaName` | String | Yes | -| `transferLogTableId` | UUID | Yes | -| `transferLogTableName` | String | Yes | +| `inferenceLogTableId` | UUID | Yes | +| `inferenceLogTableName` | String | Yes | | `usageDailyTableId` | UUID | Yes | | `usageDailyTableName` | String | Yes | | `interval` | String | Yes | @@ -1813,25 +1955,25 @@ CRUD operations for TransferLogModule records. **Operations:** ```typescript -// List all transferLogModule records -const items = await db.transferLogModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, transferLogTableId: true, transferLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } }).execute(); +// List all inferenceLogModule records +const items = await db.inferenceLogModule.findMany({ select: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, inferenceLogTableId: true, inferenceLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } }).execute(); // Get one by id -const item = await db.transferLogModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, transferLogTableId: true, transferLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } }).execute(); +const item = await db.inferenceLogModule.findOne({ id: '', select: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, inferenceLogTableId: true, inferenceLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } }).execute(); // Create -const created = await db.transferLogModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', transferLogTableId: '', transferLogTableName: '', usageDailyTableId: '', usageDailyTableName: '', interval: '', retention: '', premake: '', scope: '', actorFkTableId: '', entityFkTableId: '', prefix: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); +const created = await db.inferenceLogModule.create({ data: { databaseId: '', entityField: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', inferenceLogTableId: '', inferenceLogTableName: '', usageDailyTableId: '', usageDailyTableName: '', interval: '', retention: '', premake: '', scope: '', actorFkTableId: '', entityFkTableId: '', prefix: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); // Update -const updated = await db.transferLogModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.inferenceLogModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.transferLogModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.inferenceLogModule.delete({ where: { id: '' } }).execute(); ``` -### `db.functionDeploymentModule` +### `db.storageLogModule` -CRUD operations for FunctionDeploymentModule records. +CRUD operations for StorageLogModule records. **Fields:** @@ -1839,47 +1981,47 @@ CRUD operations for FunctionDeploymentModule records. |-------|------|----------| | `id` | UUID | No | | `databaseId` | UUID | Yes | +| `entityField` | String | Yes | | `schemaId` | UUID | Yes | | `privateSchemaId` | UUID | Yes | | `publicSchemaName` | String | Yes | | `privateSchemaName` | String | Yes | -| `deploymentsTableId` | UUID | Yes | -| `deploymentEventsTableId` | UUID | Yes | -| `deploymentsTableName` | String | Yes | -| `deploymentEventsTableName` | String | Yes | -| `apiName` | String | Yes | -| `privateApiName` | String | Yes | +| `storageLogTableId` | UUID | Yes | +| `storageLogTableName` | String | Yes | +| `usageDailyTableId` | UUID | Yes | +| `usageDailyTableName` | String | Yes | +| `interval` | String | Yes | +| `retention` | String | Yes | +| `premake` | Int | Yes | | `scope` | String | Yes | +| `actorFkTableId` | UUID | Yes | +| `entityFkTableId` | UUID | Yes | | `prefix` | String | Yes | -| `entityTableId` | UUID | Yes | -| `functionModuleId` | UUID | Yes | -| `namespaceModuleId` | UUID | Yes | -| `policies` | JSON | Yes | -| `provisions` | JSON | Yes | -| `defaultPermissions` | String | Yes | +| `apiName` | String | Yes | +| `privateApiName` | String | Yes | **Operations:** ```typescript -// List all functionDeploymentModule records -const items = await db.functionDeploymentModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, deploymentsTableId: true, deploymentEventsTableId: true, deploymentsTableName: true, deploymentEventsTableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, functionModuleId: true, namespaceModuleId: true, policies: true, provisions: true, defaultPermissions: true } }).execute(); +// List all storageLogModule records +const items = await db.storageLogModule.findMany({ select: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, storageLogTableId: true, storageLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } }).execute(); // Get one by id -const item = await db.functionDeploymentModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, deploymentsTableId: true, deploymentEventsTableId: true, deploymentsTableName: true, deploymentEventsTableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, functionModuleId: true, namespaceModuleId: true, policies: true, provisions: true, defaultPermissions: true } }).execute(); +const item = await db.storageLogModule.findOne({ id: '', select: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, storageLogTableId: true, storageLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } }).execute(); // Create -const created = await db.functionDeploymentModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', deploymentsTableId: '', deploymentEventsTableId: '', deploymentsTableName: '', deploymentEventsTableName: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '', functionModuleId: '', namespaceModuleId: '', policies: '', provisions: '', defaultPermissions: '' }, select: { id: true } }).execute(); +const created = await db.storageLogModule.create({ data: { databaseId: '', entityField: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', storageLogTableId: '', storageLogTableName: '', usageDailyTableId: '', usageDailyTableName: '', interval: '', retention: '', premake: '', scope: '', actorFkTableId: '', entityFkTableId: '', prefix: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); // Update -const updated = await db.functionDeploymentModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.storageLogModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.functionDeploymentModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.storageLogModule.delete({ where: { id: '' } }).execute(); ``` -### `db.plansModule` +### `db.transferLogModule` -CRUD operations for PlansModule records. +CRUD operations for TransferLogModule records. **Fields:** @@ -1887,22 +2029,21 @@ CRUD operations for PlansModule records. |-------|------|----------| | `id` | UUID | No | | `databaseId` | UUID | Yes | +| `entityField` | String | Yes | | `schemaId` | UUID | Yes | | `privateSchemaId` | UUID | Yes | | `publicSchemaName` | String | Yes | | `privateSchemaName` | String | Yes | -| `plansTableId` | UUID | Yes | -| `plansTableName` | String | Yes | -| `planLimitsTableId` | UUID | Yes | -| `planLimitsTableName` | String | Yes | -| `planPricingTableId` | UUID | Yes | -| `planOverridesTableId` | UUID | Yes | -| `planMeterLimitsTableId` | UUID | Yes | -| `planCapsTableId` | UUID | Yes | -| `applyPlanFunction` | String | Yes | -| `applyPlanAggregateFunction` | String | Yes | -| `applyBillingPlanFunction` | String | Yes | -| `applyPlanCapsFunction` | String | Yes | +| `transferLogTableId` | UUID | Yes | +| `transferLogTableName` | String | Yes | +| `usageDailyTableId` | UUID | Yes | +| `usageDailyTableName` | String | Yes | +| `interval` | String | Yes | +| `retention` | String | Yes | +| `premake` | Int | Yes | +| `scope` | String | Yes | +| `actorFkTableId` | UUID | Yes | +| `entityFkTableId` | UUID | Yes | | `prefix` | String | Yes | | `apiName` | String | Yes | | `privateApiName` | String | Yes | @@ -1910,20 +2051,20 @@ CRUD operations for PlansModule records. **Operations:** ```typescript -// List all plansModule records -const items = await db.plansModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, plansTableId: true, plansTableName: true, planLimitsTableId: true, planLimitsTableName: true, planPricingTableId: true, planOverridesTableId: true, planMeterLimitsTableId: true, planCapsTableId: true, applyPlanFunction: true, applyPlanAggregateFunction: true, applyBillingPlanFunction: true, applyPlanCapsFunction: true, prefix: true, apiName: true, privateApiName: true } }).execute(); +// List all transferLogModule records +const items = await db.transferLogModule.findMany({ select: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, transferLogTableId: true, transferLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } }).execute(); // Get one by id -const item = await db.plansModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, plansTableId: true, plansTableName: true, planLimitsTableId: true, planLimitsTableName: true, planPricingTableId: true, planOverridesTableId: true, planMeterLimitsTableId: true, planCapsTableId: true, applyPlanFunction: true, applyPlanAggregateFunction: true, applyBillingPlanFunction: true, applyPlanCapsFunction: true, prefix: true, apiName: true, privateApiName: true } }).execute(); +const item = await db.transferLogModule.findOne({ id: '', select: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, transferLogTableId: true, transferLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } }).execute(); // Create -const created = await db.plansModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', plansTableId: '', plansTableName: '', planLimitsTableId: '', planLimitsTableName: '', planPricingTableId: '', planOverridesTableId: '', planMeterLimitsTableId: '', planCapsTableId: '', applyPlanFunction: '', applyPlanAggregateFunction: '', applyBillingPlanFunction: '', applyPlanCapsFunction: '', prefix: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); +const created = await db.transferLogModule.create({ data: { databaseId: '', entityField: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', transferLogTableId: '', transferLogTableName: '', usageDailyTableId: '', usageDailyTableName: '', interval: '', retention: '', premake: '', scope: '', actorFkTableId: '', entityFkTableId: '', prefix: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); // Update -const updated = await db.plansModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.transferLogModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.plansModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.transferLogModule.delete({ where: { id: '' } }).execute(); ``` ### `db.billingProviderModule` @@ -1976,9 +2117,9 @@ const updated = await db.billingProviderModule.update({ where: { id: '' }, const deleted = await db.billingProviderModule.delete({ where: { id: '' } }).execute(); ``` -### `db.dbUsageModule` +### `db.functionDeploymentModule` -CRUD operations for DbUsageModule records. +CRUD operations for FunctionDeploymentModule records. **Fields:** @@ -1986,44 +2127,93 @@ CRUD operations for DbUsageModule records. |-------|------|----------| | `id` | UUID | No | | `databaseId` | UUID | Yes | +| `entityField` | String | Yes | | `schemaId` | UUID | Yes | | `privateSchemaId` | UUID | Yes | | `publicSchemaName` | String | Yes | | `privateSchemaName` | String | Yes | -| `tableStatsLogTableId` | UUID | Yes | -| `tableStatsLogTableName` | String | Yes | -| `tableStatsDailyTableId` | UUID | Yes | -| `tableStatsDailyTableName` | String | Yes | -| `queryStatsLogTableId` | UUID | Yes | -| `queryStatsLogTableName` | String | Yes | -| `queryStatsDailyTableId` | UUID | Yes | -| `queryStatsDailyTableName` | String | Yes | -| `interval` | String | Yes | -| `retention` | String | Yes | -| `premake` | Int | Yes | +| `deploymentsTableId` | UUID | Yes | +| `deploymentEventsTableId` | UUID | Yes | +| `deploymentsTableName` | String | Yes | +| `deploymentEventsTableName` | String | Yes | +| `apiName` | String | Yes | +| `privateApiName` | String | Yes | | `scope` | String | Yes | | `prefix` | String | Yes | +| `entityTableId` | UUID | Yes | +| `functionModuleId` | UUID | Yes | +| `namespaceModuleId` | UUID | Yes | +| `policies` | JSON | Yes | +| `provisions` | JSON | Yes | | `defaultPermissions` | String | Yes | + +**Operations:** + +```typescript +// List all functionDeploymentModule records +const items = await db.functionDeploymentModule.findMany({ select: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, deploymentsTableId: true, deploymentEventsTableId: true, deploymentsTableName: true, deploymentEventsTableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, functionModuleId: true, namespaceModuleId: true, policies: true, provisions: true, defaultPermissions: true } }).execute(); + +// Get one by id +const item = await db.functionDeploymentModule.findOne({ id: '', select: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, deploymentsTableId: true, deploymentEventsTableId: true, deploymentsTableName: true, deploymentEventsTableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, functionModuleId: true, namespaceModuleId: true, policies: true, provisions: true, defaultPermissions: true } }).execute(); + +// Create +const created = await db.functionDeploymentModule.create({ data: { databaseId: '', entityField: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', deploymentsTableId: '', deploymentEventsTableId: '', deploymentsTableName: '', deploymentEventsTableName: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '', functionModuleId: '', namespaceModuleId: '', policies: '', provisions: '', defaultPermissions: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.functionDeploymentModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.functionDeploymentModule.delete({ where: { id: '' } }).execute(); +``` + +### `db.permissionsModule` + +CRUD operations for PermissionsModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `entityField` | String | Yes | +| `schemaId` | UUID | Yes | +| `privateSchemaId` | UUID | Yes | +| `publicSchemaName` | String | Yes | +| `privateSchemaName` | String | Yes | +| `tableId` | UUID | Yes | +| `tableName` | String | Yes | +| `defaultTableId` | UUID | Yes | +| `defaultTableName` | String | Yes | +| `bitlen` | Int | Yes | +| `scope` | String | Yes | +| `prefix` | String | Yes | +| `entityTableId` | UUID | Yes | +| `actorTableId` | UUID | Yes | +| `getPaddedMask` | String | Yes | +| `getMask` | String | Yes | +| `getByMask` | String | Yes | +| `getMaskByName` | String | Yes | | `apiName` | String | Yes | | `privateApiName` | String | Yes | **Operations:** ```typescript -// List all dbUsageModule records -const items = await db.dbUsageModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, tableStatsLogTableId: true, tableStatsLogTableName: true, tableStatsDailyTableId: true, tableStatsDailyTableName: true, queryStatsLogTableId: true, queryStatsLogTableName: true, queryStatsDailyTableId: true, queryStatsDailyTableName: true, interval: true, retention: true, premake: true, scope: true, prefix: true, defaultPermissions: true, apiName: true, privateApiName: true } }).execute(); +// List all permissionsModule records +const items = await db.permissionsModule.findMany({ select: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, tableId: true, tableName: true, defaultTableId: true, defaultTableName: true, bitlen: true, scope: true, prefix: true, entityTableId: true, actorTableId: true, getPaddedMask: true, getMask: true, getByMask: true, getMaskByName: true, apiName: true, privateApiName: true } }).execute(); // Get one by id -const item = await db.dbUsageModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, tableStatsLogTableId: true, tableStatsLogTableName: true, tableStatsDailyTableId: true, tableStatsDailyTableName: true, queryStatsLogTableId: true, queryStatsLogTableName: true, queryStatsDailyTableId: true, queryStatsDailyTableName: true, interval: true, retention: true, premake: true, scope: true, prefix: true, defaultPermissions: true, apiName: true, privateApiName: true } }).execute(); +const item = await db.permissionsModule.findOne({ id: '', select: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, tableId: true, tableName: true, defaultTableId: true, defaultTableName: true, bitlen: true, scope: true, prefix: true, entityTableId: true, actorTableId: true, getPaddedMask: true, getMask: true, getByMask: true, getMaskByName: true, apiName: true, privateApiName: true } }).execute(); // Create -const created = await db.dbUsageModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', tableStatsLogTableId: '', tableStatsLogTableName: '', tableStatsDailyTableId: '', tableStatsDailyTableName: '', queryStatsLogTableId: '', queryStatsLogTableName: '', queryStatsDailyTableId: '', queryStatsDailyTableName: '', interval: '', retention: '', premake: '', scope: '', prefix: '', defaultPermissions: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); +const created = await db.permissionsModule.create({ data: { databaseId: '', entityField: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', tableId: '', tableName: '', defaultTableId: '', defaultTableName: '', bitlen: '', scope: '', prefix: '', entityTableId: '', actorTableId: '', getPaddedMask: '', getMask: '', getByMask: '', getMaskByName: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); // Update -const updated = await db.dbUsageModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.permissionsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.dbUsageModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.permissionsModule.delete({ where: { id: '' } }).execute(); ``` ### `db.graphExecutionModule` @@ -2036,6 +2226,7 @@ CRUD operations for GraphExecutionModule records. |-------|------|----------| | `id` | UUID | No | | `databaseId` | UUID | Yes | +| `entityField` | String | Yes | | `schemaId` | UUID | Yes | | `privateSchemaId` | UUID | Yes | | `publicSchemaName` | String | Yes | @@ -2061,13 +2252,13 @@ CRUD operations for GraphExecutionModule records. ```typescript // List all graphExecutionModule records -const items = await db.graphExecutionModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, graphModuleId: true, scope: true, prefix: true, executionsTableId: true, outputsTableId: true, nodeStatesTableId: true, executionsTableName: true, outputsTableName: true, nodeStatesTableName: true, apiName: true, privateApiName: true, entityTableId: true, policies: true, provisions: true, defaultPermissions: true, createdAt: true } }).execute(); +const items = await db.graphExecutionModule.findMany({ select: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, graphModuleId: true, scope: true, prefix: true, executionsTableId: true, outputsTableId: true, nodeStatesTableId: true, executionsTableName: true, outputsTableName: true, nodeStatesTableName: true, apiName: true, privateApiName: true, entityTableId: true, policies: true, provisions: true, defaultPermissions: true, createdAt: true } }).execute(); // Get one by id -const item = await db.graphExecutionModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, graphModuleId: true, scope: true, prefix: true, executionsTableId: true, outputsTableId: true, nodeStatesTableId: true, executionsTableName: true, outputsTableName: true, nodeStatesTableName: true, apiName: true, privateApiName: true, entityTableId: true, policies: true, provisions: true, defaultPermissions: true, createdAt: true } }).execute(); +const item = await db.graphExecutionModule.findOne({ id: '', select: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, graphModuleId: true, scope: true, prefix: true, executionsTableId: true, outputsTableId: true, nodeStatesTableId: true, executionsTableName: true, outputsTableName: true, nodeStatesTableName: true, apiName: true, privateApiName: true, entityTableId: true, policies: true, provisions: true, defaultPermissions: true, createdAt: true } }).execute(); // Create -const created = await db.graphExecutionModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', graphModuleId: '', scope: '', prefix: '', executionsTableId: '', outputsTableId: '', nodeStatesTableId: '', executionsTableName: '', outputsTableName: '', nodeStatesTableName: '', apiName: '', privateApiName: '', entityTableId: '', policies: '', provisions: '', defaultPermissions: '' }, select: { id: true } }).execute(); +const created = await db.graphExecutionModule.create({ data: { databaseId: '', entityField: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', graphModuleId: '', scope: '', prefix: '', executionsTableId: '', outputsTableId: '', nodeStatesTableId: '', executionsTableName: '', outputsTableName: '', nodeStatesTableName: '', apiName: '', privateApiName: '', entityTableId: '', policies: '', provisions: '', defaultPermissions: '' }, select: { id: true } }).execute(); // Update const updated = await db.graphExecutionModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); @@ -2086,6 +2277,7 @@ CRUD operations for HierarchyModule records. |-------|------|----------| | `id` | UUID | No | | `databaseId` | UUID | Yes | +| `entityField` | String | Yes | | `schemaId` | UUID | Yes | | `privateSchemaId` | UUID | Yes | | `chartEdgesTableId` | UUID | Yes | @@ -2111,13 +2303,13 @@ CRUD operations for HierarchyModule records. ```typescript // List all hierarchyModule records -const items = await db.hierarchyModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, chartEdgesTableId: true, chartEdgesTableName: true, hierarchySprtTableId: true, hierarchySprtTableName: true, chartEdgeGrantsTableId: true, chartEdgeGrantsTableName: true, entityTableId: true, usersTableId: true, scope: true, prefix: true, privateSchemaName: true, sprtTableName: true, rebuildHierarchyFunction: true, getSubordinatesFunction: true, getManagersFunction: true, isManagerOfFunction: true, defaultPermissions: true, createdAt: true } }).execute(); +const items = await db.hierarchyModule.findMany({ select: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, chartEdgesTableId: true, chartEdgesTableName: true, hierarchySprtTableId: true, hierarchySprtTableName: true, chartEdgeGrantsTableId: true, chartEdgeGrantsTableName: true, entityTableId: true, usersTableId: true, scope: true, prefix: true, privateSchemaName: true, sprtTableName: true, rebuildHierarchyFunction: true, getSubordinatesFunction: true, getManagersFunction: true, isManagerOfFunction: true, defaultPermissions: true, createdAt: true } }).execute(); // Get one by id -const item = await db.hierarchyModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, chartEdgesTableId: true, chartEdgesTableName: true, hierarchySprtTableId: true, hierarchySprtTableName: true, chartEdgeGrantsTableId: true, chartEdgeGrantsTableName: true, entityTableId: true, usersTableId: true, scope: true, prefix: true, privateSchemaName: true, sprtTableName: true, rebuildHierarchyFunction: true, getSubordinatesFunction: true, getManagersFunction: true, isManagerOfFunction: true, defaultPermissions: true, createdAt: true } }).execute(); +const item = await db.hierarchyModule.findOne({ id: '', select: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, chartEdgesTableId: true, chartEdgesTableName: true, hierarchySprtTableId: true, hierarchySprtTableName: true, chartEdgeGrantsTableId: true, chartEdgeGrantsTableName: true, entityTableId: true, usersTableId: true, scope: true, prefix: true, privateSchemaName: true, sprtTableName: true, rebuildHierarchyFunction: true, getSubordinatesFunction: true, getManagersFunction: true, isManagerOfFunction: true, defaultPermissions: true, createdAt: true } }).execute(); // Create -const created = await db.hierarchyModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', chartEdgesTableId: '', chartEdgesTableName: '', hierarchySprtTableId: '', hierarchySprtTableName: '', chartEdgeGrantsTableId: '', chartEdgeGrantsTableName: '', entityTableId: '', usersTableId: '', scope: '', prefix: '', privateSchemaName: '', sprtTableName: '', rebuildHierarchyFunction: '', getSubordinatesFunction: '', getManagersFunction: '', isManagerOfFunction: '', defaultPermissions: '' }, select: { id: true } }).execute(); +const created = await db.hierarchyModule.create({ data: { databaseId: '', entityField: '', schemaId: '', privateSchemaId: '', chartEdgesTableId: '', chartEdgesTableName: '', hierarchySprtTableId: '', hierarchySprtTableName: '', chartEdgeGrantsTableId: '', chartEdgeGrantsTableName: '', entityTableId: '', usersTableId: '', scope: '', prefix: '', privateSchemaName: '', sprtTableName: '', rebuildHierarchyFunction: '', getSubordinatesFunction: '', getManagersFunction: '', isManagerOfFunction: '', defaultPermissions: '' }, select: { id: true } }).execute(); // Update const updated = await db.hierarchyModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); @@ -2126,9 +2318,9 @@ const updated = await db.hierarchyModule.update({ where: { id: '' }, data: const deleted = await db.hierarchyModule.delete({ where: { id: '' } }).execute(); ``` -### `db.permissionsModule` +### `db.notificationsModule` -CRUD operations for PermissionsModule records. +CRUD operations for NotificationsModule records. **Fields:** @@ -2136,48 +2328,51 @@ CRUD operations for PermissionsModule records. |-------|------|----------| | `id` | UUID | No | | `databaseId` | UUID | Yes | +| `entityField` | String | Yes | | `schemaId` | UUID | Yes | | `privateSchemaId` | UUID | Yes | | `publicSchemaName` | String | Yes | | `privateSchemaName` | String | Yes | -| `tableId` | UUID | Yes | -| `tableName` | String | Yes | -| `defaultTableId` | UUID | Yes | -| `defaultTableName` | String | Yes | -| `bitlen` | Int | Yes | -| `scope` | String | Yes | -| `prefix` | String | Yes | -| `entityTableId` | UUID | Yes | -| `actorTableId` | UUID | Yes | -| `getPaddedMask` | String | Yes | -| `getMask` | String | Yes | -| `getByMask` | String | Yes | -| `getMaskByName` | String | Yes | +| `notificationsTableId` | UUID | Yes | +| `readStateTableId` | UUID | Yes | +| `preferencesTableId` | UUID | Yes | +| `channelsTableId` | UUID | Yes | +| `deliveryLogTableId` | UUID | Yes | +| `suppressionsTableId` | UUID | Yes | +| `ownerTableId` | UUID | Yes | +| `userSettingsTableId` | UUID | Yes | +| `organizationSettingsTableId` | UUID | Yes | +| `hasChannels` | Boolean | Yes | +| `hasPreferences` | Boolean | Yes | +| `hasSettingsExtension` | Boolean | Yes | +| `hasDigestMetadata` | Boolean | Yes | +| `hasSubscriptions` | Boolean | Yes | +| `defaultPermissions` | String | Yes | | `apiName` | String | Yes | | `privateApiName` | String | Yes | **Operations:** ```typescript -// List all permissionsModule records -const items = await db.permissionsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, tableId: true, tableName: true, defaultTableId: true, defaultTableName: true, bitlen: true, scope: true, prefix: true, entityTableId: true, actorTableId: true, getPaddedMask: true, getMask: true, getByMask: true, getMaskByName: true, apiName: true, privateApiName: true } }).execute(); +// List all notificationsModule records +const items = await db.notificationsModule.findMany({ select: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, notificationsTableId: true, readStateTableId: true, preferencesTableId: true, channelsTableId: true, deliveryLogTableId: true, suppressionsTableId: true, ownerTableId: true, userSettingsTableId: true, organizationSettingsTableId: true, hasChannels: true, hasPreferences: true, hasSettingsExtension: true, hasDigestMetadata: true, hasSubscriptions: true, defaultPermissions: true, apiName: true, privateApiName: true } }).execute(); // Get one by id -const item = await db.permissionsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, tableId: true, tableName: true, defaultTableId: true, defaultTableName: true, bitlen: true, scope: true, prefix: true, entityTableId: true, actorTableId: true, getPaddedMask: true, getMask: true, getByMask: true, getMaskByName: true, apiName: true, privateApiName: true } }).execute(); +const item = await db.notificationsModule.findOne({ id: '', select: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, notificationsTableId: true, readStateTableId: true, preferencesTableId: true, channelsTableId: true, deliveryLogTableId: true, suppressionsTableId: true, ownerTableId: true, userSettingsTableId: true, organizationSettingsTableId: true, hasChannels: true, hasPreferences: true, hasSettingsExtension: true, hasDigestMetadata: true, hasSubscriptions: true, defaultPermissions: true, apiName: true, privateApiName: true } }).execute(); // Create -const created = await db.permissionsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', tableId: '', tableName: '', defaultTableId: '', defaultTableName: '', bitlen: '', scope: '', prefix: '', entityTableId: '', actorTableId: '', getPaddedMask: '', getMask: '', getByMask: '', getMaskByName: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); +const created = await db.notificationsModule.create({ data: { databaseId: '', entityField: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', notificationsTableId: '', readStateTableId: '', preferencesTableId: '', channelsTableId: '', deliveryLogTableId: '', suppressionsTableId: '', ownerTableId: '', userSettingsTableId: '', organizationSettingsTableId: '', hasChannels: '', hasPreferences: '', hasSettingsExtension: '', hasDigestMetadata: '', hasSubscriptions: '', defaultPermissions: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); // Update -const updated = await db.permissionsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.notificationsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.permissionsModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.notificationsModule.delete({ where: { id: '' } }).execute(); ``` -### `db.notificationsModule` +### `db.relationProvision` -CRUD operations for NotificationsModule records. +CRUD operations for RelationProvision records. **Fields:** @@ -2185,45 +2380,46 @@ CRUD operations for NotificationsModule records. |-------|------|----------| | `id` | UUID | No | | `databaseId` | UUID | Yes | -| `schemaId` | UUID | Yes | -| `privateSchemaId` | UUID | Yes | -| `publicSchemaName` | String | Yes | -| `privateSchemaName` | String | Yes | -| `notificationsTableId` | UUID | Yes | -| `readStateTableId` | UUID | Yes | -| `preferencesTableId` | UUID | Yes | -| `channelsTableId` | UUID | Yes | -| `deliveryLogTableId` | UUID | Yes | -| `suppressionsTableId` | UUID | Yes | -| `ownerTableId` | UUID | Yes | -| `userSettingsTableId` | UUID | Yes | -| `organizationSettingsTableId` | UUID | Yes | -| `hasChannels` | Boolean | Yes | -| `hasPreferences` | Boolean | Yes | -| `hasSettingsExtension` | Boolean | Yes | -| `hasDigestMetadata` | Boolean | Yes | -| `hasSubscriptions` | Boolean | Yes | -| `defaultPermissions` | String | Yes | -| `apiName` | String | Yes | -| `privateApiName` | String | Yes | +| `relationType` | String | Yes | +| `sourceTableId` | UUID | Yes | +| `targetTableId` | UUID | Yes | +| `fieldName` | String | Yes | +| `deleteAction` | String | Yes | +| `isRequired` | Boolean | Yes | +| `apiRequired` | Boolean | Yes | +| `junctionTableId` | UUID | Yes | +| `junctionTableName` | String | Yes | +| `junctionSchemaId` | UUID | Yes | +| `sourceFieldName` | String | Yes | +| `targetFieldName` | String | Yes | +| `useCompositeKey` | Boolean | Yes | +| `createIndex` | Boolean | Yes | +| `exposeInApi` | Boolean | Yes | +| `nodes` | JSON | Yes | +| `grants` | JSON | Yes | +| `policies` | JSON | Yes | +| `outFieldId` | UUID | Yes | +| `outJunctionTableId` | UUID | Yes | +| `outSourceFieldId` | UUID | Yes | +| `outTargetFieldId` | UUID | Yes | **Operations:** ```typescript -// List all notificationsModule records -const items = await db.notificationsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, notificationsTableId: true, readStateTableId: true, preferencesTableId: true, channelsTableId: true, deliveryLogTableId: true, suppressionsTableId: true, ownerTableId: true, userSettingsTableId: true, organizationSettingsTableId: true, hasChannels: true, hasPreferences: true, hasSettingsExtension: true, hasDigestMetadata: true, hasSubscriptions: true, defaultPermissions: true, apiName: true, privateApiName: true } }).execute(); +// List all relationProvision records +const items = await db.relationProvision.findMany({ select: { id: true, databaseId: true, relationType: true, sourceTableId: true, targetTableId: true, fieldName: true, deleteAction: true, isRequired: true, apiRequired: true, junctionTableId: true, junctionTableName: true, junctionSchemaId: true, sourceFieldName: true, targetFieldName: true, useCompositeKey: true, createIndex: true, exposeInApi: true, nodes: true, grants: true, policies: true, outFieldId: true, outJunctionTableId: true, outSourceFieldId: true, outTargetFieldId: true } }).execute(); // Get one by id -const item = await db.notificationsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, notificationsTableId: true, readStateTableId: true, preferencesTableId: true, channelsTableId: true, deliveryLogTableId: true, suppressionsTableId: true, ownerTableId: true, userSettingsTableId: true, organizationSettingsTableId: true, hasChannels: true, hasPreferences: true, hasSettingsExtension: true, hasDigestMetadata: true, hasSubscriptions: true, defaultPermissions: true, apiName: true, privateApiName: true } }).execute(); +const item = await db.relationProvision.findOne({ id: '', select: { id: true, databaseId: true, relationType: true, sourceTableId: true, targetTableId: true, fieldName: true, deleteAction: true, isRequired: true, apiRequired: true, junctionTableId: true, junctionTableName: true, junctionSchemaId: true, sourceFieldName: true, targetFieldName: true, useCompositeKey: true, createIndex: true, exposeInApi: true, nodes: true, grants: true, policies: true, outFieldId: true, outJunctionTableId: true, outSourceFieldId: true, outTargetFieldId: true } }).execute(); // Create -const created = await db.notificationsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', notificationsTableId: '', readStateTableId: '', preferencesTableId: '', channelsTableId: '', deliveryLogTableId: '', suppressionsTableId: '', ownerTableId: '', userSettingsTableId: '', organizationSettingsTableId: '', hasChannels: '', hasPreferences: '', hasSettingsExtension: '', hasDigestMetadata: '', hasSubscriptions: '', defaultPermissions: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); +const created = await db.relationProvision.create({ data: { databaseId: '', relationType: '', sourceTableId: '', targetTableId: '', fieldName: '', deleteAction: '', isRequired: '', apiRequired: '', junctionTableId: '', junctionTableName: '', junctionSchemaId: '', sourceFieldName: '', targetFieldName: '', useCompositeKey: '', createIndex: '', exposeInApi: '', nodes: '', grants: '', policies: '', outFieldId: '', outJunctionTableId: '', outSourceFieldId: '', outTargetFieldId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.notificationsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.relationProvision.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.notificationsModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.relationProvision.delete({ where: { id: '' } }).execute(); ``` ### `db.profilesModule` @@ -2236,6 +2432,7 @@ CRUD operations for ProfilesModule records. |-------|------|----------| | `id` | UUID | No | | `databaseId` | UUID | Yes | +| `entityField` | String | Yes | | `schemaId` | UUID | Yes | | `privateSchemaId` | UUID | Yes | | `publicSchemaName` | String | Yes | @@ -2263,13 +2460,13 @@ CRUD operations for ProfilesModule records. ```typescript // List all profilesModule records -const items = await db.profilesModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, tableId: true, tableName: true, profilePermissionsTableId: true, profilePermissionsTableName: true, profileGrantsTableId: true, profileGrantsTableName: true, profileDefinitionGrantsTableId: true, profileDefinitionGrantsTableName: true, profileTemplatesTableId: true, profileTemplatesTableName: true, scope: true, prefix: true, entityTableId: true, actorTableId: true, permissionsTableId: true, membershipsTableId: true, apiName: true, privateApiName: true } }).execute(); +const items = await db.profilesModule.findMany({ select: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, tableId: true, tableName: true, profilePermissionsTableId: true, profilePermissionsTableName: true, profileGrantsTableId: true, profileGrantsTableName: true, profileDefinitionGrantsTableId: true, profileDefinitionGrantsTableName: true, profileTemplatesTableId: true, profileTemplatesTableName: true, scope: true, prefix: true, entityTableId: true, actorTableId: true, permissionsTableId: true, membershipsTableId: true, apiName: true, privateApiName: true } }).execute(); // Get one by id -const item = await db.profilesModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, tableId: true, tableName: true, profilePermissionsTableId: true, profilePermissionsTableName: true, profileGrantsTableId: true, profileGrantsTableName: true, profileDefinitionGrantsTableId: true, profileDefinitionGrantsTableName: true, profileTemplatesTableId: true, profileTemplatesTableName: true, scope: true, prefix: true, entityTableId: true, actorTableId: true, permissionsTableId: true, membershipsTableId: true, apiName: true, privateApiName: true } }).execute(); +const item = await db.profilesModule.findOne({ id: '', select: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, tableId: true, tableName: true, profilePermissionsTableId: true, profilePermissionsTableName: true, profileGrantsTableId: true, profileGrantsTableName: true, profileDefinitionGrantsTableId: true, profileDefinitionGrantsTableName: true, profileTemplatesTableId: true, profileTemplatesTableName: true, scope: true, prefix: true, entityTableId: true, actorTableId: true, permissionsTableId: true, membershipsTableId: true, apiName: true, privateApiName: true } }).execute(); // Create -const created = await db.profilesModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', tableId: '', tableName: '', profilePermissionsTableId: '', profilePermissionsTableName: '', profileGrantsTableId: '', profileGrantsTableName: '', profileDefinitionGrantsTableId: '', profileDefinitionGrantsTableName: '', profileTemplatesTableId: '', profileTemplatesTableName: '', scope: '', prefix: '', entityTableId: '', actorTableId: '', permissionsTableId: '', membershipsTableId: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); +const created = await db.profilesModule.create({ data: { databaseId: '', entityField: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', tableId: '', tableName: '', profilePermissionsTableId: '', profilePermissionsTableName: '', profileGrantsTableId: '', profileGrantsTableName: '', profileDefinitionGrantsTableId: '', profileDefinitionGrantsTableName: '', profileTemplatesTableId: '', profileTemplatesTableName: '', scope: '', prefix: '', entityTableId: '', actorTableId: '', permissionsTableId: '', membershipsTableId: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); // Update const updated = await db.profilesModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); @@ -2307,6 +2504,8 @@ CRUD operations for BillingModule records. | `meterDefaultsTableId` | UUID | Yes | | `meterDefaultsTableName` | String | Yes | | `recordUsageFunction` | String | Yes | +| `sweepExpiredSubscriptionsFunction` | String | Yes | +| `rollupUsageSummaryFunction` | String | Yes | | `prefix` | String | Yes | | `defaultPermissions` | String | Yes | | `apiName` | String | Yes | @@ -2316,13 +2515,13 @@ CRUD operations for BillingModule records. ```typescript // List all billingModule records -const items = await db.billingModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, metersTableId: true, metersTableName: true, planSubscriptionsTableId: true, planSubscriptionsTableName: true, ledgerTableId: true, ledgerTableName: true, balancesTableId: true, balancesTableName: true, meterCreditsTableId: true, meterCreditsTableName: true, meterSourcesTableId: true, meterSourcesTableName: true, meterDefaultsTableId: true, meterDefaultsTableName: true, recordUsageFunction: true, prefix: true, defaultPermissions: true, apiName: true, privateApiName: true } }).execute(); +const items = await db.billingModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, metersTableId: true, metersTableName: true, planSubscriptionsTableId: true, planSubscriptionsTableName: true, ledgerTableId: true, ledgerTableName: true, balancesTableId: true, balancesTableName: true, meterCreditsTableId: true, meterCreditsTableName: true, meterSourcesTableId: true, meterSourcesTableName: true, meterDefaultsTableId: true, meterDefaultsTableName: true, recordUsageFunction: true, sweepExpiredSubscriptionsFunction: true, rollupUsageSummaryFunction: true, prefix: true, defaultPermissions: true, apiName: true, privateApiName: true } }).execute(); // Get one by id -const item = await db.billingModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, metersTableId: true, metersTableName: true, planSubscriptionsTableId: true, planSubscriptionsTableName: true, ledgerTableId: true, ledgerTableName: true, balancesTableId: true, balancesTableName: true, meterCreditsTableId: true, meterCreditsTableName: true, meterSourcesTableId: true, meterSourcesTableName: true, meterDefaultsTableId: true, meterDefaultsTableName: true, recordUsageFunction: true, prefix: true, defaultPermissions: true, apiName: true, privateApiName: true } }).execute(); +const item = await db.billingModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, metersTableId: true, metersTableName: true, planSubscriptionsTableId: true, planSubscriptionsTableName: true, ledgerTableId: true, ledgerTableName: true, balancesTableId: true, balancesTableName: true, meterCreditsTableId: true, meterCreditsTableName: true, meterSourcesTableId: true, meterSourcesTableName: true, meterDefaultsTableId: true, meterDefaultsTableName: true, recordUsageFunction: true, sweepExpiredSubscriptionsFunction: true, rollupUsageSummaryFunction: true, prefix: true, defaultPermissions: true, apiName: true, privateApiName: true } }).execute(); // Create -const created = await db.billingModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', metersTableId: '', metersTableName: '', planSubscriptionsTableId: '', planSubscriptionsTableName: '', ledgerTableId: '', ledgerTableName: '', balancesTableId: '', balancesTableName: '', meterCreditsTableId: '', meterCreditsTableName: '', meterSourcesTableId: '', meterSourcesTableName: '', meterDefaultsTableId: '', meterDefaultsTableName: '', recordUsageFunction: '', prefix: '', defaultPermissions: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); +const created = await db.billingModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', metersTableId: '', metersTableName: '', planSubscriptionsTableId: '', planSubscriptionsTableName: '', ledgerTableId: '', ledgerTableName: '', balancesTableId: '', balancesTableName: '', meterCreditsTableId: '', meterCreditsTableName: '', meterSourcesTableId: '', meterSourcesTableName: '', meterDefaultsTableId: '', meterDefaultsTableName: '', recordUsageFunction: '', sweepExpiredSubscriptionsFunction: '', rollupUsageSummaryFunction: '', prefix: '', defaultPermissions: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); // Update const updated = await db.billingModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); @@ -2331,9 +2530,9 @@ const updated = await db.billingModule.update({ where: { id: '' }, data: { const deleted = await db.billingModule.delete({ where: { id: '' } }).execute(); ``` -### `db.relationProvision` +### `db.resourceModule` -CRUD operations for RelationProvision records. +CRUD operations for ResourceModule records. **Fields:** @@ -2341,46 +2540,48 @@ CRUD operations for RelationProvision records. |-------|------|----------| | `id` | UUID | No | | `databaseId` | UUID | Yes | -| `relationType` | String | Yes | -| `sourceTableId` | UUID | Yes | -| `targetTableId` | UUID | Yes | -| `fieldName` | String | Yes | -| `deleteAction` | String | Yes | -| `isRequired` | Boolean | Yes | -| `apiRequired` | Boolean | Yes | -| `junctionTableId` | UUID | Yes | -| `junctionTableName` | String | Yes | -| `junctionSchemaId` | UUID | Yes | -| `sourceFieldName` | String | Yes | -| `targetFieldName` | String | Yes | -| `useCompositeKey` | Boolean | Yes | -| `createIndex` | Boolean | Yes | -| `exposeInApi` | Boolean | Yes | -| `nodes` | JSON | Yes | -| `grants` | JSON | Yes | +| `entityField` | String | Yes | +| `schemaId` | UUID | Yes | +| `privateSchemaId` | UUID | Yes | +| `publicSchemaName` | String | Yes | +| `privateSchemaName` | String | Yes | +| `resourcesTableId` | UUID | Yes | +| `resourceEventsTableId` | UUID | Yes | +| `resourceStatusChecksTableId` | UUID | Yes | +| `resourceDefinitionsTableId` | UUID | Yes | +| `resourcesTableName` | String | Yes | +| `resourceEventsTableName` | String | Yes | +| `resourceStatusChecksTableName` | String | Yes | +| `resourceDefinitionsTableName` | String | Yes | +| `resolvedRequirementsViewName` | String | Yes | +| `requirementsStateViewName` | String | Yes | +| `apiName` | String | Yes | +| `privateApiName` | String | Yes | +| `scope` | String | Yes | +| `prefix` | String | Yes | +| `entityTableId` | UUID | Yes | +| `namespaceModuleId` | UUID | Yes | | `policies` | JSON | Yes | -| `outFieldId` | UUID | Yes | -| `outJunctionTableId` | UUID | Yes | -| `outSourceFieldId` | UUID | Yes | -| `outTargetFieldId` | UUID | Yes | +| `provisions` | JSON | Yes | +| `defaultPermissions` | String | Yes | **Operations:** ```typescript -// List all relationProvision records -const items = await db.relationProvision.findMany({ select: { id: true, databaseId: true, relationType: true, sourceTableId: true, targetTableId: true, fieldName: true, deleteAction: true, isRequired: true, apiRequired: true, junctionTableId: true, junctionTableName: true, junctionSchemaId: true, sourceFieldName: true, targetFieldName: true, useCompositeKey: true, createIndex: true, exposeInApi: true, nodes: true, grants: true, policies: true, outFieldId: true, outJunctionTableId: true, outSourceFieldId: true, outTargetFieldId: true } }).execute(); +// List all resourceModule records +const items = await db.resourceModule.findMany({ select: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, resourcesTableId: true, resourceEventsTableId: true, resourceStatusChecksTableId: true, resourceDefinitionsTableId: true, resourcesTableName: true, resourceEventsTableName: true, resourceStatusChecksTableName: true, resourceDefinitionsTableName: true, resolvedRequirementsViewName: true, requirementsStateViewName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, namespaceModuleId: true, policies: true, provisions: true, defaultPermissions: true } }).execute(); // Get one by id -const item = await db.relationProvision.findOne({ id: '', select: { id: true, databaseId: true, relationType: true, sourceTableId: true, targetTableId: true, fieldName: true, deleteAction: true, isRequired: true, apiRequired: true, junctionTableId: true, junctionTableName: true, junctionSchemaId: true, sourceFieldName: true, targetFieldName: true, useCompositeKey: true, createIndex: true, exposeInApi: true, nodes: true, grants: true, policies: true, outFieldId: true, outJunctionTableId: true, outSourceFieldId: true, outTargetFieldId: true } }).execute(); +const item = await db.resourceModule.findOne({ id: '', select: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, resourcesTableId: true, resourceEventsTableId: true, resourceStatusChecksTableId: true, resourceDefinitionsTableId: true, resourcesTableName: true, resourceEventsTableName: true, resourceStatusChecksTableName: true, resourceDefinitionsTableName: true, resolvedRequirementsViewName: true, requirementsStateViewName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, namespaceModuleId: true, policies: true, provisions: true, defaultPermissions: true } }).execute(); // Create -const created = await db.relationProvision.create({ data: { databaseId: '', relationType: '', sourceTableId: '', targetTableId: '', fieldName: '', deleteAction: '', isRequired: '', apiRequired: '', junctionTableId: '', junctionTableName: '', junctionSchemaId: '', sourceFieldName: '', targetFieldName: '', useCompositeKey: '', createIndex: '', exposeInApi: '', nodes: '', grants: '', policies: '', outFieldId: '', outJunctionTableId: '', outSourceFieldId: '', outTargetFieldId: '' }, select: { id: true } }).execute(); +const created = await db.resourceModule.create({ data: { databaseId: '', entityField: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', resourcesTableId: '', resourceEventsTableId: '', resourceStatusChecksTableId: '', resourceDefinitionsTableId: '', resourcesTableName: '', resourceEventsTableName: '', resourceStatusChecksTableName: '', resourceDefinitionsTableName: '', resolvedRequirementsViewName: '', requirementsStateViewName: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '', namespaceModuleId: '', policies: '', provisions: '', defaultPermissions: '' }, select: { id: true } }).execute(); // Update -const updated = await db.relationProvision.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.resourceModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.relationProvision.delete({ where: { id: '' } }).execute(); +const deleted = await db.resourceModule.delete({ where: { id: '' } }).execute(); ``` ### `db.userAuthModule` @@ -2439,6 +2640,61 @@ const updated = await db.userAuthModule.update({ where: { id: '' }, data: const deleted = await db.userAuthModule.delete({ where: { id: '' } }).execute(); ``` +### `db.dbUsageModule` + +CRUD operations for DbUsageModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `entityField` | String | Yes | +| `schemaId` | UUID | Yes | +| `privateSchemaId` | UUID | Yes | +| `publicSchemaName` | String | Yes | +| `privateSchemaName` | String | Yes | +| `tableStatsLogTableId` | UUID | Yes | +| `tableStatsLogTableName` | String | Yes | +| `tableStatsDailyTableId` | UUID | Yes | +| `tableStatsDailyTableName` | String | Yes | +| `queryStatsLogTableId` | UUID | Yes | +| `queryStatsLogTableName` | String | Yes | +| `queryStatsDailyTableId` | UUID | Yes | +| `queryStatsDailyTableName` | String | Yes | +| `collectDbTableStatsFunction` | String | Yes | +| `collectDbQueryStatsFunction` | String | Yes | +| `rollupDbTableStatsDailyFunction` | String | Yes | +| `rollupDbQueryStatsDailyFunction` | String | Yes | +| `interval` | String | Yes | +| `retention` | String | Yes | +| `premake` | Int | Yes | +| `scope` | String | Yes | +| `prefix` | String | Yes | +| `defaultPermissions` | String | Yes | +| `apiName` | String | Yes | +| `privateApiName` | String | Yes | + +**Operations:** + +```typescript +// List all dbUsageModule records +const items = await db.dbUsageModule.findMany({ select: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, tableStatsLogTableId: true, tableStatsLogTableName: true, tableStatsDailyTableId: true, tableStatsDailyTableName: true, queryStatsLogTableId: true, queryStatsLogTableName: true, queryStatsDailyTableId: true, queryStatsDailyTableName: true, collectDbTableStatsFunction: true, collectDbQueryStatsFunction: true, rollupDbTableStatsDailyFunction: true, rollupDbQueryStatsDailyFunction: true, interval: true, retention: true, premake: true, scope: true, prefix: true, defaultPermissions: true, apiName: true, privateApiName: true } }).execute(); + +// Get one by id +const item = await db.dbUsageModule.findOne({ id: '', select: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, tableStatsLogTableId: true, tableStatsLogTableName: true, tableStatsDailyTableId: true, tableStatsDailyTableName: true, queryStatsLogTableId: true, queryStatsLogTableName: true, queryStatsDailyTableId: true, queryStatsDailyTableName: true, collectDbTableStatsFunction: true, collectDbQueryStatsFunction: true, rollupDbTableStatsDailyFunction: true, rollupDbQueryStatsDailyFunction: true, interval: true, retention: true, premake: true, scope: true, prefix: true, defaultPermissions: true, apiName: true, privateApiName: true } }).execute(); + +// Create +const created = await db.dbUsageModule.create({ data: { databaseId: '', entityField: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', tableStatsLogTableId: '', tableStatsLogTableName: '', tableStatsDailyTableId: '', tableStatsDailyTableName: '', queryStatsLogTableId: '', queryStatsLogTableName: '', queryStatsDailyTableId: '', queryStatsDailyTableName: '', collectDbTableStatsFunction: '', collectDbQueryStatsFunction: '', rollupDbTableStatsDailyFunction: '', rollupDbQueryStatsDailyFunction: '', interval: '', retention: '', premake: '', scope: '', prefix: '', defaultPermissions: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.dbUsageModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.dbUsageModule.delete({ where: { id: '' } }).execute(); +``` + ### `db.agentModule` CRUD operations for AgentModule records. @@ -2449,6 +2705,7 @@ CRUD operations for AgentModule records. |-------|------|----------| | `id` | UUID | No | | `databaseId` | UUID | Yes | +| `entityField` | String | Yes | | `schemaId` | UUID | Yes | | `privateSchemaId` | UUID | Yes | | `publicSchemaName` | String | Yes | @@ -2487,13 +2744,13 @@ CRUD operations for AgentModule records. ```typescript // List all agentModule records -const items = await db.agentModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, threadTableId: true, messageTableId: true, taskTableId: true, promptsTableId: true, planTableId: true, agentTableId: true, personaTableId: true, resourceTableId: true, threadTableName: true, messageTableName: true, taskTableName: true, promptsTableName: true, planTableName: true, agentTableName: true, personaTableName: true, resourceTableName: true, hasPlans: true, hasResources: true, hasAgents: true, shared: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, policies: true, resources: true, provisions: true, defaultPermissions: true } }).execute(); +const items = await db.agentModule.findMany({ select: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, threadTableId: true, messageTableId: true, taskTableId: true, promptsTableId: true, planTableId: true, agentTableId: true, personaTableId: true, resourceTableId: true, threadTableName: true, messageTableName: true, taskTableName: true, promptsTableName: true, planTableName: true, agentTableName: true, personaTableName: true, resourceTableName: true, hasPlans: true, hasResources: true, hasAgents: true, shared: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, policies: true, resources: true, provisions: true, defaultPermissions: true } }).execute(); // Get one by id -const item = await db.agentModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, threadTableId: true, messageTableId: true, taskTableId: true, promptsTableId: true, planTableId: true, agentTableId: true, personaTableId: true, resourceTableId: true, threadTableName: true, messageTableName: true, taskTableName: true, promptsTableName: true, planTableName: true, agentTableName: true, personaTableName: true, resourceTableName: true, hasPlans: true, hasResources: true, hasAgents: true, shared: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, policies: true, resources: true, provisions: true, defaultPermissions: true } }).execute(); +const item = await db.agentModule.findOne({ id: '', select: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, threadTableId: true, messageTableId: true, taskTableId: true, promptsTableId: true, planTableId: true, agentTableId: true, personaTableId: true, resourceTableId: true, threadTableName: true, messageTableName: true, taskTableName: true, promptsTableName: true, planTableName: true, agentTableName: true, personaTableName: true, resourceTableName: true, hasPlans: true, hasResources: true, hasAgents: true, shared: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, policies: true, resources: true, provisions: true, defaultPermissions: true } }).execute(); // Create -const created = await db.agentModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', threadTableId: '', messageTableId: '', taskTableId: '', promptsTableId: '', planTableId: '', agentTableId: '', personaTableId: '', resourceTableId: '', threadTableName: '', messageTableName: '', taskTableName: '', promptsTableName: '', planTableName: '', agentTableName: '', personaTableName: '', resourceTableName: '', hasPlans: '', hasResources: '', hasAgents: '', shared: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '', policies: '', resources: '', provisions: '', defaultPermissions: '' }, select: { id: true } }).execute(); +const created = await db.agentModule.create({ data: { databaseId: '', entityField: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', threadTableId: '', messageTableId: '', taskTableId: '', promptsTableId: '', planTableId: '', agentTableId: '', personaTableId: '', resourceTableId: '', threadTableName: '', messageTableName: '', taskTableName: '', promptsTableName: '', planTableName: '', agentTableName: '', personaTableName: '', resourceTableName: '', hasPlans: '', hasResources: '', hasAgents: '', shared: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '', policies: '', resources: '', provisions: '', defaultPermissions: '' }, select: { id: true } }).execute(); // Update const updated = await db.agentModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); @@ -2512,6 +2769,7 @@ CRUD operations for LimitsModule records. |-------|------|----------| | `id` | UUID | No | | `databaseId` | UUID | Yes | +| `entityField` | String | Yes | | `schemaId` | UUID | Yes | | `privateSchemaId` | UUID | Yes | | `publicSchemaName` | String | Yes | @@ -2551,13 +2809,13 @@ CRUD operations for LimitsModule records. ```typescript // List all limitsModule records -const items = await db.limitsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, tableId: true, tableName: true, defaultTableId: true, defaultTableName: true, limitIncrementFunction: true, limitDecrementFunction: true, limitIncrementTrigger: true, limitDecrementTrigger: true, limitUpdateTrigger: true, limitCheckFunction: true, limitCreditsTableId: true, eventsTableId: true, creditCodesTableId: true, creditCodeItemsTableId: true, creditRedemptionsTableId: true, aggregateTableId: true, limitCapsTableId: true, limitCapsDefaultsTableId: true, capCheckTrigger: true, resolveCapFunction: true, limitWarningsTableId: true, limitWarningStateTableId: true, limitCheckSoftFunction: true, limitAggregateCheckSoftFunction: true, scope: true, prefix: true, entityTableId: true, actorTableId: true, apiName: true, privateApiName: true } }).execute(); +const items = await db.limitsModule.findMany({ select: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, tableId: true, tableName: true, defaultTableId: true, defaultTableName: true, limitIncrementFunction: true, limitDecrementFunction: true, limitIncrementTrigger: true, limitDecrementTrigger: true, limitUpdateTrigger: true, limitCheckFunction: true, limitCreditsTableId: true, eventsTableId: true, creditCodesTableId: true, creditCodeItemsTableId: true, creditRedemptionsTableId: true, aggregateTableId: true, limitCapsTableId: true, limitCapsDefaultsTableId: true, capCheckTrigger: true, resolveCapFunction: true, limitWarningsTableId: true, limitWarningStateTableId: true, limitCheckSoftFunction: true, limitAggregateCheckSoftFunction: true, scope: true, prefix: true, entityTableId: true, actorTableId: true, apiName: true, privateApiName: true } }).execute(); // Get one by id -const item = await db.limitsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, tableId: true, tableName: true, defaultTableId: true, defaultTableName: true, limitIncrementFunction: true, limitDecrementFunction: true, limitIncrementTrigger: true, limitDecrementTrigger: true, limitUpdateTrigger: true, limitCheckFunction: true, limitCreditsTableId: true, eventsTableId: true, creditCodesTableId: true, creditCodeItemsTableId: true, creditRedemptionsTableId: true, aggregateTableId: true, limitCapsTableId: true, limitCapsDefaultsTableId: true, capCheckTrigger: true, resolveCapFunction: true, limitWarningsTableId: true, limitWarningStateTableId: true, limitCheckSoftFunction: true, limitAggregateCheckSoftFunction: true, scope: true, prefix: true, entityTableId: true, actorTableId: true, apiName: true, privateApiName: true } }).execute(); +const item = await db.limitsModule.findOne({ id: '', select: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, tableId: true, tableName: true, defaultTableId: true, defaultTableName: true, limitIncrementFunction: true, limitDecrementFunction: true, limitIncrementTrigger: true, limitDecrementTrigger: true, limitUpdateTrigger: true, limitCheckFunction: true, limitCreditsTableId: true, eventsTableId: true, creditCodesTableId: true, creditCodeItemsTableId: true, creditRedemptionsTableId: true, aggregateTableId: true, limitCapsTableId: true, limitCapsDefaultsTableId: true, capCheckTrigger: true, resolveCapFunction: true, limitWarningsTableId: true, limitWarningStateTableId: true, limitCheckSoftFunction: true, limitAggregateCheckSoftFunction: true, scope: true, prefix: true, entityTableId: true, actorTableId: true, apiName: true, privateApiName: true } }).execute(); // Create -const created = await db.limitsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', tableId: '', tableName: '', defaultTableId: '', defaultTableName: '', limitIncrementFunction: '', limitDecrementFunction: '', limitIncrementTrigger: '', limitDecrementTrigger: '', limitUpdateTrigger: '', limitCheckFunction: '', limitCreditsTableId: '', eventsTableId: '', creditCodesTableId: '', creditCodeItemsTableId: '', creditRedemptionsTableId: '', aggregateTableId: '', limitCapsTableId: '', limitCapsDefaultsTableId: '', capCheckTrigger: '', resolveCapFunction: '', limitWarningsTableId: '', limitWarningStateTableId: '', limitCheckSoftFunction: '', limitAggregateCheckSoftFunction: '', scope: '', prefix: '', entityTableId: '', actorTableId: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); +const created = await db.limitsModule.create({ data: { databaseId: '', entityField: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', tableId: '', tableName: '', defaultTableId: '', defaultTableName: '', limitIncrementFunction: '', limitDecrementFunction: '', limitIncrementTrigger: '', limitDecrementTrigger: '', limitUpdateTrigger: '', limitCheckFunction: '', limitCreditsTableId: '', eventsTableId: '', creditCodesTableId: '', creditCodeItemsTableId: '', creditRedemptionsTableId: '', aggregateTableId: '', limitCapsTableId: '', limitCapsDefaultsTableId: '', capCheckTrigger: '', resolveCapFunction: '', limitWarningsTableId: '', limitWarningStateTableId: '', limitCheckSoftFunction: '', limitAggregateCheckSoftFunction: '', scope: '', prefix: '', entityTableId: '', actorTableId: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); // Update const updated = await db.limitsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); @@ -2566,75 +2824,6 @@ const updated = await db.limitsModule.update({ where: { id: '' }, data: { const deleted = await db.limitsModule.delete({ where: { id: '' } }).execute(); ``` -### `db.membershipsModule` - -CRUD operations for MembershipsModule records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `schemaId` | UUID | Yes | -| `privateSchemaId` | UUID | Yes | -| `publicSchemaName` | String | Yes | -| `privateSchemaName` | String | Yes | -| `membershipsTableId` | UUID | Yes | -| `membershipsTableName` | String | Yes | -| `membersTableId` | UUID | Yes | -| `membersTableName` | String | Yes | -| `membershipDefaultsTableId` | UUID | Yes | -| `membershipDefaultsTableName` | String | Yes | -| `membershipSettingsTableId` | UUID | Yes | -| `membershipSettingsTableName` | String | Yes | -| `grantsTableId` | UUID | Yes | -| `grantsTableName` | String | Yes | -| `actorTableId` | UUID | Yes | -| `limitsTableId` | UUID | Yes | -| `defaultLimitsTableId` | UUID | Yes | -| `permissionsTableId` | UUID | Yes | -| `defaultPermissionsTableId` | UUID | Yes | -| `sprtTableId` | UUID | Yes | -| `adminGrantsTableId` | UUID | Yes | -| `adminGrantsTableName` | String | Yes | -| `ownerGrantsTableId` | UUID | Yes | -| `ownerGrantsTableName` | String | Yes | -| `scope` | String | Yes | -| `prefix` | String | Yes | -| `entityTableId` | UUID | Yes | -| `entityTableOwnerId` | UUID | Yes | -| `getOrgFn` | String | Yes | -| `actorMaskCheck` | String | Yes | -| `actorPermCheck` | String | Yes | -| `entityIdsByMask` | String | Yes | -| `entityIdsByPerm` | String | Yes | -| `entityIdsFunction` | String | Yes | -| `memberProfilesTableId` | UUID | Yes | -| `permissionDefaultPermissionsTableId` | UUID | Yes | -| `permissionDefaultGrantsTableId` | UUID | Yes | -| `apiName` | String | Yes | -| `privateApiName` | String | Yes | - -**Operations:** - -```typescript -// List all membershipsModule records -const items = await db.membershipsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, membershipsTableId: true, membershipsTableName: true, membersTableId: true, membersTableName: true, membershipDefaultsTableId: true, membershipDefaultsTableName: true, membershipSettingsTableId: true, membershipSettingsTableName: true, grantsTableId: true, grantsTableName: true, actorTableId: true, limitsTableId: true, defaultLimitsTableId: true, permissionsTableId: true, defaultPermissionsTableId: true, sprtTableId: true, adminGrantsTableId: true, adminGrantsTableName: true, ownerGrantsTableId: true, ownerGrantsTableName: true, scope: true, prefix: true, entityTableId: true, entityTableOwnerId: true, getOrgFn: true, actorMaskCheck: true, actorPermCheck: true, entityIdsByMask: true, entityIdsByPerm: true, entityIdsFunction: true, memberProfilesTableId: true, permissionDefaultPermissionsTableId: true, permissionDefaultGrantsTableId: true, apiName: true, privateApiName: true } }).execute(); - -// Get one by id -const item = await db.membershipsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, membershipsTableId: true, membershipsTableName: true, membersTableId: true, membersTableName: true, membershipDefaultsTableId: true, membershipDefaultsTableName: true, membershipSettingsTableId: true, membershipSettingsTableName: true, grantsTableId: true, grantsTableName: true, actorTableId: true, limitsTableId: true, defaultLimitsTableId: true, permissionsTableId: true, defaultPermissionsTableId: true, sprtTableId: true, adminGrantsTableId: true, adminGrantsTableName: true, ownerGrantsTableId: true, ownerGrantsTableName: true, scope: true, prefix: true, entityTableId: true, entityTableOwnerId: true, getOrgFn: true, actorMaskCheck: true, actorPermCheck: true, entityIdsByMask: true, entityIdsByPerm: true, entityIdsFunction: true, memberProfilesTableId: true, permissionDefaultPermissionsTableId: true, permissionDefaultGrantsTableId: true, apiName: true, privateApiName: true } }).execute(); - -// Create -const created = await db.membershipsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', membershipsTableId: '', membershipsTableName: '', membersTableId: '', membersTableName: '', membershipDefaultsTableId: '', membershipDefaultsTableName: '', membershipSettingsTableId: '', membershipSettingsTableName: '', grantsTableId: '', grantsTableName: '', actorTableId: '', limitsTableId: '', defaultLimitsTableId: '', permissionsTableId: '', defaultPermissionsTableId: '', sprtTableId: '', adminGrantsTableId: '', adminGrantsTableName: '', ownerGrantsTableId: '', ownerGrantsTableName: '', scope: '', prefix: '', entityTableId: '', entityTableOwnerId: '', getOrgFn: '', actorMaskCheck: '', actorPermCheck: '', entityIdsByMask: '', entityIdsByPerm: '', entityIdsFunction: '', memberProfilesTableId: '', permissionDefaultPermissionsTableId: '', permissionDefaultGrantsTableId: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.membershipsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.membershipsModule.delete({ where: { id: '' } }).execute(); -``` - ### `db.entityTypeProvision` CRUD operations for EntityTypeProvision records. @@ -2679,7 +2868,6 @@ CRUD operations for EntityTypeProvision records. | `outDefinitionsTableId` | UUID | Yes | | `outInvocationsTableId` | UUID | Yes | | `outExecutionLogsTableId` | UUID | Yes | -| `outSecretDefinitionsTableId` | UUID | Yes | | `outGraphModuleId` | UUID | Yes | | `outGraphsTableId` | UUID | Yes | | `outAgentModuleId` | UUID | Yes | @@ -2688,13 +2876,13 @@ CRUD operations for EntityTypeProvision records. ```typescript // List all entityTypeProvision records -const items = await db.entityTypeProvision.findMany({ select: { id: true, databaseId: true, name: true, prefix: true, description: true, parentEntity: true, tableName: true, isVisible: true, hasLimits: true, hasProfiles: true, hasLevels: true, hasInvites: true, hasInviteAchievements: true, storage: true, namespaces: true, functions: true, graphs: true, agents: true, skipEntityPolicies: true, tableProvision: true, outMembershipType: true, outEntityTableId: true, outEntityTableName: true, outInstalledModules: true, outStorageModuleId: true, outBucketsTableId: true, outFilesTableId: true, outPathSharesTableId: true, outInvitesModuleId: true, outNamespaceModuleId: true, outNamespacesTableId: true, outNamespaceEventsTableId: true, outFunctionModuleId: true, outDefinitionsTableId: true, outInvocationsTableId: true, outExecutionLogsTableId: true, outSecretDefinitionsTableId: true, outGraphModuleId: true, outGraphsTableId: true, outAgentModuleId: true } }).execute(); +const items = await db.entityTypeProvision.findMany({ select: { id: true, databaseId: true, name: true, prefix: true, description: true, parentEntity: true, tableName: true, isVisible: true, hasLimits: true, hasProfiles: true, hasLevels: true, hasInvites: true, hasInviteAchievements: true, storage: true, namespaces: true, functions: true, graphs: true, agents: true, skipEntityPolicies: true, tableProvision: true, outMembershipType: true, outEntityTableId: true, outEntityTableName: true, outInstalledModules: true, outStorageModuleId: true, outBucketsTableId: true, outFilesTableId: true, outPathSharesTableId: true, outInvitesModuleId: true, outNamespaceModuleId: true, outNamespacesTableId: true, outNamespaceEventsTableId: true, outFunctionModuleId: true, outDefinitionsTableId: true, outInvocationsTableId: true, outExecutionLogsTableId: true, outGraphModuleId: true, outGraphsTableId: true, outAgentModuleId: true } }).execute(); // Get one by id -const item = await db.entityTypeProvision.findOne({ id: '', select: { id: true, databaseId: true, name: true, prefix: true, description: true, parentEntity: true, tableName: true, isVisible: true, hasLimits: true, hasProfiles: true, hasLevels: true, hasInvites: true, hasInviteAchievements: true, storage: true, namespaces: true, functions: true, graphs: true, agents: true, skipEntityPolicies: true, tableProvision: true, outMembershipType: true, outEntityTableId: true, outEntityTableName: true, outInstalledModules: true, outStorageModuleId: true, outBucketsTableId: true, outFilesTableId: true, outPathSharesTableId: true, outInvitesModuleId: true, outNamespaceModuleId: true, outNamespacesTableId: true, outNamespaceEventsTableId: true, outFunctionModuleId: true, outDefinitionsTableId: true, outInvocationsTableId: true, outExecutionLogsTableId: true, outSecretDefinitionsTableId: true, outGraphModuleId: true, outGraphsTableId: true, outAgentModuleId: true } }).execute(); +const item = await db.entityTypeProvision.findOne({ id: '', select: { id: true, databaseId: true, name: true, prefix: true, description: true, parentEntity: true, tableName: true, isVisible: true, hasLimits: true, hasProfiles: true, hasLevels: true, hasInvites: true, hasInviteAchievements: true, storage: true, namespaces: true, functions: true, graphs: true, agents: true, skipEntityPolicies: true, tableProvision: true, outMembershipType: true, outEntityTableId: true, outEntityTableName: true, outInstalledModules: true, outStorageModuleId: true, outBucketsTableId: true, outFilesTableId: true, outPathSharesTableId: true, outInvitesModuleId: true, outNamespaceModuleId: true, outNamespacesTableId: true, outNamespaceEventsTableId: true, outFunctionModuleId: true, outDefinitionsTableId: true, outInvocationsTableId: true, outExecutionLogsTableId: true, outGraphModuleId: true, outGraphsTableId: true, outAgentModuleId: true } }).execute(); // Create -const created = await db.entityTypeProvision.create({ data: { databaseId: '', name: '', prefix: '', description: '', parentEntity: '', tableName: '', isVisible: '', hasLimits: '', hasProfiles: '', hasLevels: '', hasInvites: '', hasInviteAchievements: '', storage: '', namespaces: '', functions: '', graphs: '', agents: '', skipEntityPolicies: '', tableProvision: '', outMembershipType: '', outEntityTableId: '', outEntityTableName: '', outInstalledModules: '', outStorageModuleId: '', outBucketsTableId: '', outFilesTableId: '', outPathSharesTableId: '', outInvitesModuleId: '', outNamespaceModuleId: '', outNamespacesTableId: '', outNamespaceEventsTableId: '', outFunctionModuleId: '', outDefinitionsTableId: '', outInvocationsTableId: '', outExecutionLogsTableId: '', outSecretDefinitionsTableId: '', outGraphModuleId: '', outGraphsTableId: '', outAgentModuleId: '' }, select: { id: true } }).execute(); +const created = await db.entityTypeProvision.create({ data: { databaseId: '', name: '', prefix: '', description: '', parentEntity: '', tableName: '', isVisible: '', hasLimits: '', hasProfiles: '', hasLevels: '', hasInvites: '', hasInviteAchievements: '', storage: '', namespaces: '', functions: '', graphs: '', agents: '', skipEntityPolicies: '', tableProvision: '', outMembershipType: '', outEntityTableId: '', outEntityTableName: '', outInstalledModules: '', outStorageModuleId: '', outBucketsTableId: '', outFilesTableId: '', outPathSharesTableId: '', outInvitesModuleId: '', outNamespaceModuleId: '', outNamespacesTableId: '', outNamespaceEventsTableId: '', outFunctionModuleId: '', outDefinitionsTableId: '', outInvocationsTableId: '', outExecutionLogsTableId: '', outGraphModuleId: '', outGraphsTableId: '', outAgentModuleId: '' }, select: { id: true } }).execute(); // Update const updated = await db.entityTypeProvision.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); @@ -2726,6 +2914,7 @@ CRUD operations for StorageModule records. | `policies` | JSON | Yes | | `provisions` | JSON | Yes | | `entityTableId` | UUID | Yes | +| `entityField` | String | Yes | | `endpoint` | String | Yes | | `publicUrlPrefix` | String | Yes | | `provider` | String | Yes | @@ -2755,13 +2944,13 @@ CRUD operations for StorageModule records. ```typescript // List all storageModule records -const items = await db.storageModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, bucketsTableId: true, filesTableId: true, bucketsTableName: true, filesTableName: true, scope: true, prefix: true, policies: true, provisions: true, entityTableId: true, endpoint: true, publicUrlPrefix: true, provider: true, allowedOrigins: true, restrictReads: true, hasPathShares: true, pathSharesTableId: true, uploadUrlExpirySeconds: true, downloadUrlExpirySeconds: true, defaultMaxFileSize: true, maxFilenameLength: true, cacheTtlSeconds: true, maxBulkFiles: true, maxBulkTotalSize: true, hasVersioning: true, hasContentHash: true, hasCustomKeys: true, hasAuditLog: true, hasConfirmUpload: true, confirmUploadDelay: true, fileEventsTableId: true, defaultPermissions: true, apiName: true, privateApiName: true } }).execute(); +const items = await db.storageModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, bucketsTableId: true, filesTableId: true, bucketsTableName: true, filesTableName: true, scope: true, prefix: true, policies: true, provisions: true, entityTableId: true, entityField: true, endpoint: true, publicUrlPrefix: true, provider: true, allowedOrigins: true, restrictReads: true, hasPathShares: true, pathSharesTableId: true, uploadUrlExpirySeconds: true, downloadUrlExpirySeconds: true, defaultMaxFileSize: true, maxFilenameLength: true, cacheTtlSeconds: true, maxBulkFiles: true, maxBulkTotalSize: true, hasVersioning: true, hasContentHash: true, hasCustomKeys: true, hasAuditLog: true, hasConfirmUpload: true, confirmUploadDelay: true, fileEventsTableId: true, defaultPermissions: true, apiName: true, privateApiName: true } }).execute(); // Get one by id -const item = await db.storageModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, bucketsTableId: true, filesTableId: true, bucketsTableName: true, filesTableName: true, scope: true, prefix: true, policies: true, provisions: true, entityTableId: true, endpoint: true, publicUrlPrefix: true, provider: true, allowedOrigins: true, restrictReads: true, hasPathShares: true, pathSharesTableId: true, uploadUrlExpirySeconds: true, downloadUrlExpirySeconds: true, defaultMaxFileSize: true, maxFilenameLength: true, cacheTtlSeconds: true, maxBulkFiles: true, maxBulkTotalSize: true, hasVersioning: true, hasContentHash: true, hasCustomKeys: true, hasAuditLog: true, hasConfirmUpload: true, confirmUploadDelay: true, fileEventsTableId: true, defaultPermissions: true, apiName: true, privateApiName: true } }).execute(); +const item = await db.storageModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, bucketsTableId: true, filesTableId: true, bucketsTableName: true, filesTableName: true, scope: true, prefix: true, policies: true, provisions: true, entityTableId: true, entityField: true, endpoint: true, publicUrlPrefix: true, provider: true, allowedOrigins: true, restrictReads: true, hasPathShares: true, pathSharesTableId: true, uploadUrlExpirySeconds: true, downloadUrlExpirySeconds: true, defaultMaxFileSize: true, maxFilenameLength: true, cacheTtlSeconds: true, maxBulkFiles: true, maxBulkTotalSize: true, hasVersioning: true, hasContentHash: true, hasCustomKeys: true, hasAuditLog: true, hasConfirmUpload: true, confirmUploadDelay: true, fileEventsTableId: true, defaultPermissions: true, apiName: true, privateApiName: true } }).execute(); // Create -const created = await db.storageModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', bucketsTableId: '', filesTableId: '', bucketsTableName: '', filesTableName: '', scope: '', prefix: '', policies: '', provisions: '', entityTableId: '', endpoint: '', publicUrlPrefix: '', provider: '', allowedOrigins: '', restrictReads: '', hasPathShares: '', pathSharesTableId: '', uploadUrlExpirySeconds: '', downloadUrlExpirySeconds: '', defaultMaxFileSize: '', maxFilenameLength: '', cacheTtlSeconds: '', maxBulkFiles: '', maxBulkTotalSize: '', hasVersioning: '', hasContentHash: '', hasCustomKeys: '', hasAuditLog: '', hasConfirmUpload: '', confirmUploadDelay: '', fileEventsTableId: '', defaultPermissions: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); +const created = await db.storageModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', bucketsTableId: '', filesTableId: '', bucketsTableName: '', filesTableName: '', scope: '', prefix: '', policies: '', provisions: '', entityTableId: '', entityField: '', endpoint: '', publicUrlPrefix: '', provider: '', allowedOrigins: '', restrictReads: '', hasPathShares: '', pathSharesTableId: '', uploadUrlExpirySeconds: '', downloadUrlExpirySeconds: '', defaultMaxFileSize: '', maxFilenameLength: '', cacheTtlSeconds: '', maxBulkFiles: '', maxBulkTotalSize: '', hasVersioning: '', hasContentHash: '', hasCustomKeys: '', hasAuditLog: '', hasConfirmUpload: '', confirmUploadDelay: '', fileEventsTableId: '', defaultPermissions: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); // Update const updated = await db.storageModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); @@ -2770,6 +2959,76 @@ const updated = await db.storageModule.update({ where: { id: '' }, data: { const deleted = await db.storageModule.delete({ where: { id: '' } }).execute(); ``` +### `db.membershipsModule` + +CRUD operations for MembershipsModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `entityField` | String | Yes | +| `schemaId` | UUID | Yes | +| `privateSchemaId` | UUID | Yes | +| `publicSchemaName` | String | Yes | +| `privateSchemaName` | String | Yes | +| `membershipsTableId` | UUID | Yes | +| `membershipsTableName` | String | Yes | +| `membersTableId` | UUID | Yes | +| `membersTableName` | String | Yes | +| `membershipDefaultsTableId` | UUID | Yes | +| `membershipDefaultsTableName` | String | Yes | +| `membershipSettingsTableId` | UUID | Yes | +| `membershipSettingsTableName` | String | Yes | +| `grantsTableId` | UUID | Yes | +| `grantsTableName` | String | Yes | +| `actorTableId` | UUID | Yes | +| `limitsTableId` | UUID | Yes | +| `defaultLimitsTableId` | UUID | Yes | +| `permissionsTableId` | UUID | Yes | +| `defaultPermissionsTableId` | UUID | Yes | +| `sprtTableId` | UUID | Yes | +| `adminGrantsTableId` | UUID | Yes | +| `adminGrantsTableName` | String | Yes | +| `ownerGrantsTableId` | UUID | Yes | +| `ownerGrantsTableName` | String | Yes | +| `scope` | String | Yes | +| `prefix` | String | Yes | +| `entityTableId` | UUID | Yes | +| `entityTableOwnerId` | UUID | Yes | +| `getOrgFn` | String | Yes | +| `actorMaskCheck` | String | Yes | +| `actorPermCheck` | String | Yes | +| `entityIdsByMask` | String | Yes | +| `entityIdsByPerm` | String | Yes | +| `entityIdsFunction` | String | Yes | +| `memberProfilesTableId` | UUID | Yes | +| `permissionDefaultPermissionsTableId` | UUID | Yes | +| `permissionDefaultGrantsTableId` | UUID | Yes | +| `apiName` | String | Yes | +| `privateApiName` | String | Yes | + +**Operations:** + +```typescript +// List all membershipsModule records +const items = await db.membershipsModule.findMany({ select: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, membershipsTableId: true, membershipsTableName: true, membersTableId: true, membersTableName: true, membershipDefaultsTableId: true, membershipDefaultsTableName: true, membershipSettingsTableId: true, membershipSettingsTableName: true, grantsTableId: true, grantsTableName: true, actorTableId: true, limitsTableId: true, defaultLimitsTableId: true, permissionsTableId: true, defaultPermissionsTableId: true, sprtTableId: true, adminGrantsTableId: true, adminGrantsTableName: true, ownerGrantsTableId: true, ownerGrantsTableName: true, scope: true, prefix: true, entityTableId: true, entityTableOwnerId: true, getOrgFn: true, actorMaskCheck: true, actorPermCheck: true, entityIdsByMask: true, entityIdsByPerm: true, entityIdsFunction: true, memberProfilesTableId: true, permissionDefaultPermissionsTableId: true, permissionDefaultGrantsTableId: true, apiName: true, privateApiName: true } }).execute(); + +// Get one by id +const item = await db.membershipsModule.findOne({ id: '', select: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, membershipsTableId: true, membershipsTableName: true, membersTableId: true, membersTableName: true, membershipDefaultsTableId: true, membershipDefaultsTableName: true, membershipSettingsTableId: true, membershipSettingsTableName: true, grantsTableId: true, grantsTableName: true, actorTableId: true, limitsTableId: true, defaultLimitsTableId: true, permissionsTableId: true, defaultPermissionsTableId: true, sprtTableId: true, adminGrantsTableId: true, adminGrantsTableName: true, ownerGrantsTableId: true, ownerGrantsTableName: true, scope: true, prefix: true, entityTableId: true, entityTableOwnerId: true, getOrgFn: true, actorMaskCheck: true, actorPermCheck: true, entityIdsByMask: true, entityIdsByPerm: true, entityIdsFunction: true, memberProfilesTableId: true, permissionDefaultPermissionsTableId: true, permissionDefaultGrantsTableId: true, apiName: true, privateApiName: true } }).execute(); + +// Create +const created = await db.membershipsModule.create({ data: { databaseId: '', entityField: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', membershipsTableId: '', membershipsTableName: '', membersTableId: '', membersTableName: '', membershipDefaultsTableId: '', membershipDefaultsTableName: '', membershipSettingsTableId: '', membershipSettingsTableName: '', grantsTableId: '', grantsTableName: '', actorTableId: '', limitsTableId: '', defaultLimitsTableId: '', permissionsTableId: '', defaultPermissionsTableId: '', sprtTableId: '', adminGrantsTableId: '', adminGrantsTableName: '', ownerGrantsTableId: '', ownerGrantsTableName: '', scope: '', prefix: '', entityTableId: '', entityTableOwnerId: '', getOrgFn: '', actorMaskCheck: '', actorPermCheck: '', entityIdsByMask: '', entityIdsByPerm: '', entityIdsFunction: '', memberProfilesTableId: '', permissionDefaultPermissionsTableId: '', permissionDefaultGrantsTableId: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.membershipsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.membershipsModule.delete({ where: { id: '' } }).execute(); +``` + ### `db.eventsModule` CRUD operations for EventsModule records. @@ -2780,6 +3039,7 @@ CRUD operations for EventsModule records. |-------|------|----------| | `id` | UUID | No | | `databaseId` | UUID | Yes | +| `entityField` | String | Yes | | `schemaId` | UUID | Yes | | `privateSchemaId` | UUID | Yes | | `publicSchemaName` | String | Yes | @@ -2806,7 +3066,6 @@ CRUD operations for EventsModule records. | `tgEventBool` | String | Yes | | `upsertAggregate` | String | Yes | | `tgUpdateAggregates` | String | Yes | -| `pruneEvents` | String | Yes | | `stepsRequired` | String | Yes | | `levelAchieved` | String | Yes | | `tgCheckAchievements` | String | Yes | @@ -2827,13 +3086,13 @@ CRUD operations for EventsModule records. ```typescript // List all eventsModule records -const items = await db.eventsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, eventsTableId: true, eventsTableName: true, eventAggregatesTableId: true, eventAggregatesTableName: true, eventTypesTableId: true, eventTypesTableName: true, levelsTableId: true, levelsTableName: true, levelRequirementsTableId: true, levelRequirementsTableName: true, levelGrantsTableId: true, levelGrantsTableName: true, achievementRewardsTableId: true, achievementRewardsTableName: true, recordEvent: true, removeEvent: true, tgEvent: true, tgEventToggle: true, tgEventToggleBool: true, tgEventBool: true, upsertAggregate: true, tgUpdateAggregates: true, pruneEvents: true, stepsRequired: true, levelAchieved: true, tgCheckAchievements: true, grantAchievement: true, tgAchievementReward: true, interval: true, retention: true, premake: true, scope: true, prefix: true, entityTableId: true, actorTableId: true, defaultPermissions: true, apiName: true, privateApiName: true } }).execute(); +const items = await db.eventsModule.findMany({ select: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, eventsTableId: true, eventsTableName: true, eventAggregatesTableId: true, eventAggregatesTableName: true, eventTypesTableId: true, eventTypesTableName: true, levelsTableId: true, levelsTableName: true, levelRequirementsTableId: true, levelRequirementsTableName: true, levelGrantsTableId: true, levelGrantsTableName: true, achievementRewardsTableId: true, achievementRewardsTableName: true, recordEvent: true, removeEvent: true, tgEvent: true, tgEventToggle: true, tgEventToggleBool: true, tgEventBool: true, upsertAggregate: true, tgUpdateAggregates: true, stepsRequired: true, levelAchieved: true, tgCheckAchievements: true, grantAchievement: true, tgAchievementReward: true, interval: true, retention: true, premake: true, scope: true, prefix: true, entityTableId: true, actorTableId: true, defaultPermissions: true, apiName: true, privateApiName: true } }).execute(); // Get one by id -const item = await db.eventsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, eventsTableId: true, eventsTableName: true, eventAggregatesTableId: true, eventAggregatesTableName: true, eventTypesTableId: true, eventTypesTableName: true, levelsTableId: true, levelsTableName: true, levelRequirementsTableId: true, levelRequirementsTableName: true, levelGrantsTableId: true, levelGrantsTableName: true, achievementRewardsTableId: true, achievementRewardsTableName: true, recordEvent: true, removeEvent: true, tgEvent: true, tgEventToggle: true, tgEventToggleBool: true, tgEventBool: true, upsertAggregate: true, tgUpdateAggregates: true, pruneEvents: true, stepsRequired: true, levelAchieved: true, tgCheckAchievements: true, grantAchievement: true, tgAchievementReward: true, interval: true, retention: true, premake: true, scope: true, prefix: true, entityTableId: true, actorTableId: true, defaultPermissions: true, apiName: true, privateApiName: true } }).execute(); +const item = await db.eventsModule.findOne({ id: '', select: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, eventsTableId: true, eventsTableName: true, eventAggregatesTableId: true, eventAggregatesTableName: true, eventTypesTableId: true, eventTypesTableName: true, levelsTableId: true, levelsTableName: true, levelRequirementsTableId: true, levelRequirementsTableName: true, levelGrantsTableId: true, levelGrantsTableName: true, achievementRewardsTableId: true, achievementRewardsTableName: true, recordEvent: true, removeEvent: true, tgEvent: true, tgEventToggle: true, tgEventToggleBool: true, tgEventBool: true, upsertAggregate: true, tgUpdateAggregates: true, stepsRequired: true, levelAchieved: true, tgCheckAchievements: true, grantAchievement: true, tgAchievementReward: true, interval: true, retention: true, premake: true, scope: true, prefix: true, entityTableId: true, actorTableId: true, defaultPermissions: true, apiName: true, privateApiName: true } }).execute(); // Create -const created = await db.eventsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', eventsTableId: '', eventsTableName: '', eventAggregatesTableId: '', eventAggregatesTableName: '', eventTypesTableId: '', eventTypesTableName: '', levelsTableId: '', levelsTableName: '', levelRequirementsTableId: '', levelRequirementsTableName: '', levelGrantsTableId: '', levelGrantsTableName: '', achievementRewardsTableId: '', achievementRewardsTableName: '', recordEvent: '', removeEvent: '', tgEvent: '', tgEventToggle: '', tgEventToggleBool: '', tgEventBool: '', upsertAggregate: '', tgUpdateAggregates: '', pruneEvents: '', stepsRequired: '', levelAchieved: '', tgCheckAchievements: '', grantAchievement: '', tgAchievementReward: '', interval: '', retention: '', premake: '', scope: '', prefix: '', entityTableId: '', actorTableId: '', defaultPermissions: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); +const created = await db.eventsModule.create({ data: { databaseId: '', entityField: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', eventsTableId: '', eventsTableName: '', eventAggregatesTableId: '', eventAggregatesTableName: '', eventTypesTableId: '', eventTypesTableName: '', levelsTableId: '', levelsTableName: '', levelRequirementsTableId: '', levelRequirementsTableName: '', levelGrantsTableId: '', levelGrantsTableName: '', achievementRewardsTableId: '', achievementRewardsTableName: '', recordEvent: '', removeEvent: '', tgEvent: '', tgEventToggle: '', tgEventToggleBool: '', tgEventBool: '', upsertAggregate: '', tgUpdateAggregates: '', stepsRequired: '', levelAchieved: '', tgCheckAchievements: '', grantAchievement: '', tgAchievementReward: '', interval: '', retention: '', premake: '', scope: '', prefix: '', entityTableId: '', actorTableId: '', defaultPermissions: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); // Update const updated = await db.eventsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); diff --git a/sdk/constructive-cli/src/modules/orm/index.ts b/sdk/constructive-cli/src/modules/orm/index.ts index c425b183cd..6ef3c70258 100644 --- a/sdk/constructive-cli/src/modules/orm/index.ts +++ b/sdk/constructive-cli/src/modules/orm/index.ts @@ -7,23 +7,21 @@ import { OrmClient } from './client'; import type { OrmClientConfig } from './client'; import { DefaultIdsModuleModel } from './models/defaultIdsModule'; import { MembershipTypesModuleModel } from './models/membershipTypesModule'; -import { UserStateModuleModel } from './models/userStateModule'; import { SessionSecretsModuleModel } from './models/sessionSecretsModule'; -import { ConfigSecretsOrgModuleModel } from './models/configSecretsOrgModule'; import { DevicesModuleModel } from './models/devicesModule'; import { I18NModuleModel } from './models/i18NModule'; -import { UserCredentialsModuleModel } from './models/userCredentialsModule'; import { UserSettingsModuleModel } from './models/userSettingsModule'; -import { ConfigSecretsUserModuleModel } from './models/configSecretsUserModule'; +import { UserStateModuleModel } from './models/userStateModule'; +import { UserCredentialsModuleModel } from './models/userCredentialsModule'; import { ConnectedAccountsModuleModel } from './models/connectedAccountsModule'; import { EmailsModuleModel } from './models/emailsModule'; import { PhoneNumbersModuleModel } from './models/phoneNumbersModule'; import { RateLimitsModuleModel } from './models/rateLimitsModule'; import { UsersModuleModel } from './models/usersModule'; import { WebauthnCredentialsModuleModel } from './models/webauthnCredentialsModule'; +import { ConfigSecretsUserModuleModel } from './models/configSecretsUserModule'; import { CryptoAddressesModuleModel } from './models/cryptoAddressesModule'; import { DenormalizedTableFieldModel } from './models/denormalizedTableField'; -import { IdentityProvidersModuleModel } from './models/identityProvidersModule'; import { RlsModuleModel } from './models/rlsModule'; import { BlueprintModel } from './models/blueprint'; import { BlueprintTemplateModel } from './models/blueprintTemplate'; @@ -31,40 +29,47 @@ import { BlueprintConstructionModel } from './models/blueprintConstruction'; import { CryptoAuthModuleModel } from './models/cryptoAuthModule'; import { SessionsModuleModel } from './models/sessionsModule'; import { SecureTableProvisionModel } from './models/secureTableProvision'; -import { DatabaseProvisionModuleModel } from './models/databaseProvisionModule'; -import { ConfigSecretsModuleModel } from './models/configSecretsModule'; +import { IdentityProvidersModuleModel } from './models/identityProvidersModule'; +import { IntegrationProvidersModuleModel } from './models/integrationProvidersModule'; +import { DbPoolConfigModel } from './models/dbPoolConfig'; +import { RealtimeModuleModel } from './models/realtimeModule'; +import { InfraSecretsModuleModel } from './models/infraSecretsModule'; +import { InternalSecretsModuleModel } from './models/internalSecretsModule'; +import { DbPresetModuleModel } from './models/dbPresetModule'; import { GraphModuleModel } from './models/graphModule'; -import { MerkleStoreModuleModel } from './models/merkleStoreModule'; import { RateLimitMetersModuleModel } from './models/rateLimitMetersModule'; -import { RealtimeModuleModel } from './models/realtimeModule'; +import { InfraConfigModuleModel } from './models/infraConfigModule'; import { WebauthnAuthModuleModel } from './models/webauthnAuthModule'; -import { FunctionInvocationModuleModel } from './models/functionInvocationModule'; +import { PrincipalAuthModuleModel } from './models/principalAuthModule'; +import { DbPoolModel } from './models/dbPool'; import { FunctionModuleModel } from './models/functionModule'; +import { MerkleStoreModuleModel } from './models/merkleStoreModule'; +import { DatabaseProvisionModuleModel } from './models/databaseProvisionModule'; +import { FunctionInvocationModuleModel } from './models/functionInvocationModule'; import { InvitesModuleModel } from './models/invitesModule'; -import { PrincipalAuthModuleModel } from './models/principalAuthModule'; +import { NamespaceModuleModel } from './models/namespaceModule'; +import { PlansModuleModel } from './models/plansModule'; import { ComputeLogModuleModel } from './models/computeLogModule'; import { InferenceLogModuleModel } from './models/inferenceLogModule'; -import { NamespaceModuleModel } from './models/namespaceModule'; -import { ResourceModuleModel } from './models/resourceModule'; import { StorageLogModuleModel } from './models/storageLogModule'; import { TransferLogModuleModel } from './models/transferLogModule'; -import { FunctionDeploymentModuleModel } from './models/functionDeploymentModule'; -import { PlansModuleModel } from './models/plansModule'; import { BillingProviderModuleModel } from './models/billingProviderModule'; -import { DbUsageModuleModel } from './models/dbUsageModule'; +import { FunctionDeploymentModuleModel } from './models/functionDeploymentModule'; +import { PermissionsModuleModel } from './models/permissionsModule'; import { GraphExecutionModuleModel } from './models/graphExecutionModule'; import { HierarchyModuleModel } from './models/hierarchyModule'; -import { PermissionsModuleModel } from './models/permissionsModule'; import { NotificationsModuleModel } from './models/notificationsModule'; +import { RelationProvisionModel } from './models/relationProvision'; import { ProfilesModuleModel } from './models/profilesModule'; import { BillingModuleModel } from './models/billingModule'; -import { RelationProvisionModel } from './models/relationProvision'; +import { ResourceModuleModel } from './models/resourceModule'; import { UserAuthModuleModel } from './models/userAuthModule'; +import { DbUsageModuleModel } from './models/dbUsageModule'; import { AgentModuleModel } from './models/agentModule'; import { LimitsModuleModel } from './models/limitsModule'; -import { MembershipsModuleModel } from './models/membershipsModule'; import { EntityTypeProvisionModel } from './models/entityTypeProvision'; import { StorageModuleModel } from './models/storageModule'; +import { MembershipsModuleModel } from './models/membershipsModule'; import { EventsModuleModel } from './models/eventsModule'; import { createQueryOperations } from './query'; import { createMutationOperations } from './mutation'; @@ -103,23 +108,21 @@ export function createClient(config: OrmClientConfig) { return { defaultIdsModule: new DefaultIdsModuleModel(client), membershipTypesModule: new MembershipTypesModuleModel(client), - userStateModule: new UserStateModuleModel(client), sessionSecretsModule: new SessionSecretsModuleModel(client), - configSecretsOrgModule: new ConfigSecretsOrgModuleModel(client), devicesModule: new DevicesModuleModel(client), i18NModule: new I18NModuleModel(client), - userCredentialsModule: new UserCredentialsModuleModel(client), userSettingsModule: new UserSettingsModuleModel(client), - configSecretsUserModule: new ConfigSecretsUserModuleModel(client), + userStateModule: new UserStateModuleModel(client), + userCredentialsModule: new UserCredentialsModuleModel(client), connectedAccountsModule: new ConnectedAccountsModuleModel(client), emailsModule: new EmailsModuleModel(client), phoneNumbersModule: new PhoneNumbersModuleModel(client), rateLimitsModule: new RateLimitsModuleModel(client), usersModule: new UsersModuleModel(client), webauthnCredentialsModule: new WebauthnCredentialsModuleModel(client), + configSecretsUserModule: new ConfigSecretsUserModuleModel(client), cryptoAddressesModule: new CryptoAddressesModuleModel(client), denormalizedTableField: new DenormalizedTableFieldModel(client), - identityProvidersModule: new IdentityProvidersModuleModel(client), rlsModule: new RlsModuleModel(client), blueprint: new BlueprintModel(client), blueprintTemplate: new BlueprintTemplateModel(client), @@ -127,40 +130,47 @@ export function createClient(config: OrmClientConfig) { cryptoAuthModule: new CryptoAuthModuleModel(client), sessionsModule: new SessionsModuleModel(client), secureTableProvision: new SecureTableProvisionModel(client), - databaseProvisionModule: new DatabaseProvisionModuleModel(client), - configSecretsModule: new ConfigSecretsModuleModel(client), + identityProvidersModule: new IdentityProvidersModuleModel(client), + integrationProvidersModule: new IntegrationProvidersModuleModel(client), + dbPoolConfig: new DbPoolConfigModel(client), + realtimeModule: new RealtimeModuleModel(client), + infraSecretsModule: new InfraSecretsModuleModel(client), + internalSecretsModule: new InternalSecretsModuleModel(client), + dbPresetModule: new DbPresetModuleModel(client), graphModule: new GraphModuleModel(client), - merkleStoreModule: new MerkleStoreModuleModel(client), rateLimitMetersModule: new RateLimitMetersModuleModel(client), - realtimeModule: new RealtimeModuleModel(client), + infraConfigModule: new InfraConfigModuleModel(client), webauthnAuthModule: new WebauthnAuthModuleModel(client), - functionInvocationModule: new FunctionInvocationModuleModel(client), + principalAuthModule: new PrincipalAuthModuleModel(client), + dbPool: new DbPoolModel(client), functionModule: new FunctionModuleModel(client), + merkleStoreModule: new MerkleStoreModuleModel(client), + databaseProvisionModule: new DatabaseProvisionModuleModel(client), + functionInvocationModule: new FunctionInvocationModuleModel(client), invitesModule: new InvitesModuleModel(client), - principalAuthModule: new PrincipalAuthModuleModel(client), + namespaceModule: new NamespaceModuleModel(client), + plansModule: new PlansModuleModel(client), computeLogModule: new ComputeLogModuleModel(client), inferenceLogModule: new InferenceLogModuleModel(client), - namespaceModule: new NamespaceModuleModel(client), - resourceModule: new ResourceModuleModel(client), storageLogModule: new StorageLogModuleModel(client), transferLogModule: new TransferLogModuleModel(client), - functionDeploymentModule: new FunctionDeploymentModuleModel(client), - plansModule: new PlansModuleModel(client), billingProviderModule: new BillingProviderModuleModel(client), - dbUsageModule: new DbUsageModuleModel(client), + functionDeploymentModule: new FunctionDeploymentModuleModel(client), + permissionsModule: new PermissionsModuleModel(client), graphExecutionModule: new GraphExecutionModuleModel(client), hierarchyModule: new HierarchyModuleModel(client), - permissionsModule: new PermissionsModuleModel(client), notificationsModule: new NotificationsModuleModel(client), + relationProvision: new RelationProvisionModel(client), profilesModule: new ProfilesModuleModel(client), billingModule: new BillingModuleModel(client), - relationProvision: new RelationProvisionModel(client), + resourceModule: new ResourceModuleModel(client), userAuthModule: new UserAuthModuleModel(client), + dbUsageModule: new DbUsageModuleModel(client), agentModule: new AgentModuleModel(client), limitsModule: new LimitsModuleModel(client), - membershipsModule: new MembershipsModuleModel(client), entityTypeProvision: new EntityTypeProvisionModel(client), storageModule: new StorageModuleModel(client), + membershipsModule: new MembershipsModuleModel(client), eventsModule: new EventsModuleModel(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 2a57e98f03..88639dce8f 100644 --- a/sdk/constructive-cli/src/modules/orm/input-types.ts +++ b/sdk/constructive-cli/src/modules/orm/input-types.ts @@ -242,13 +242,6 @@ export interface MembershipTypesModule { tableId?: string | null; tableName?: string | null; } -export interface UserStateModule { - id: string; - databaseId?: string | null; - schemaId?: string | null; - tableId?: string | null; - tableName?: string | null; -} /** 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. */ export interface SessionSecretsModule { id: string; @@ -259,16 +252,6 @@ export interface SessionSecretsModule { /** Resolved reference to sessions_module.sessions_table, used to FK session_secrets.session_id with ON DELETE CASCADE. */ sessionsTableId?: string | null; } -/** Config row for the config_secrets_org_module, which provisions an organization-scoped encrypted key-value secrets store with manage_secrets permission and entity-membership RLS. */ -export interface ConfigSecretsOrgModule { - id: string; - databaseId?: string | null; - schemaId?: string | null; - tableId?: string | null; - tableName?: string | null; - apiName?: string | null; - privateApiName?: string | null; -} export interface DevicesModule { id: string; databaseId?: string | null; @@ -287,37 +270,35 @@ export interface I18NModule { apiName?: string | null; privateApiName?: string | null; } -/** - * Per-user bcrypt credential store (password hashes, API key hashes). - * Always user-scoped with AuthzDirectOwner RLS. Consumed by user_auth_module, - * identity_providers_module, and bootstrap procedures. - */ -export interface UserCredentialsModule { +export interface UserSettingsModule { id: string; databaseId?: string | null; schemaId?: string | null; tableId?: string | null; + ownerTableId?: string | null; tableName?: string | null; apiName?: string | null; - privateApiName?: string | null; } -export interface UserSettingsModule { +export interface UserStateModule { id: string; databaseId?: string | null; + entityField?: string | null; schemaId?: string | null; tableId?: string | null; - ownerTableId?: string | null; tableName?: string | null; - apiName?: string | null; } -export interface ConfigSecretsUserModule { +/** + * Per-user bcrypt credential store (password hashes, API key hashes). + * Always user-scoped with AuthzDirectOwner RLS. Consumed by user_auth_module, + * identity_providers_module, and bootstrap procedures. + */ +export interface UserCredentialsModule { id: string; databaseId?: string | null; + entityField?: string | null; schemaId?: string | null; tableId?: string | null; tableName?: string | null; - configDefinitionsTableId?: string | null; - apiName?: string | null; privateApiName?: string | null; } export interface ConnectedAccountsModule { @@ -388,6 +369,16 @@ export interface WebauthnCredentialsModule { apiName?: string | null; privateApiName?: string | null; } +export interface ConfigSecretsUserModule { + id: string; + databaseId?: string | null; + entityField?: string | null; + schemaId?: string | null; + tableId?: string | null; + tableName?: string | null; + apiName?: string | null; + privateApiName?: string | null; +} export interface CryptoAddressesModule { id: string; databaseId?: string | null; @@ -414,34 +405,6 @@ export interface DenormalizedTableField { funcName?: string | null; funcOrder?: number | null; } -/** - * Entity-aware config row for the identity_providers_module, which provisions a per-database - * identity_providers table holding OAuth2 / OIDC (and future SAML) provider definitions. - * The scope column determines which config_secrets_module table the rotate proc targets - * (app_secrets for app scope, org_secrets for org scope). When scope = platform, - * the secrets table gets a database_id column and platform-level RLS via - * AuthzRelatedEntityMembership through database.owner_id. - * Scoping matrix: - * scope=app → per-database flat, in-app admin manages - * scope=platform → per-database, platform admin manages (generate:constructive) - * scope=org → per-org tenant, org admin manages - */ -export interface IdentityProvidersModule { - id: string; - databaseId?: string | null; - schemaId?: string | null; - /** Private schema that hosts SECURITY DEFINER admin helpers which write to identity_providers (create / update / enable / disable / rotate-secret / delete) and the per-app quota check. */ - privateSchemaId?: string | null; - publicSchemaName?: string | null; - privateSchemaName?: string | null; - tableId?: string | null; - tableName?: string | null; - apiName?: string | null; - privateApiName?: string | null; - scope?: string | null; - prefix?: string | null; - entityTableId?: string | null; -} export interface RlsModule { id: string; databaseId?: string | null; @@ -606,57 +569,132 @@ export interface SecureTableProvision { /** 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; } -/** 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 { +/** + * Entity-aware config row for the identity_providers_module, which provisions a per-database + * identity_providers table holding OAuth2 / OIDC (and future SAML) provider definitions. + * The scope column determines which internal_secrets_module table the rotate proc targets + * (app_secrets for app scope, platform_secrets for platform scope). When scope = database, + * the secrets table gets a database_id column. + * Scoping matrix: + * 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 + */ +export interface IdentityProvidersModule { id: string; - /** The name for the new database */ - databaseName?: string | null; - /** UUID of the user who owns this database */ - ownerId?: string | null; - /** Subdomain prefix for the database. If null, auto-generated using unique_names + random chars */ - subdomain?: string | null; - /** Base domain for the database (e.g., example.com) */ - domain?: string | null; - /** JSONB array of modules to install. Each element is either a string ("users_module") or a [name, options] tuple (["permissions_module", {"scope": "app"}]) */ - modules?: Record | null; - /** Additional configuration options for provisioning */ - options?: Record | null; - /** When true, copies the owner user and password hash from source database to the newly provisioned database */ - bootstrapUser?: boolean | null; - /** Current status: pending, in_progress, completed, or failed */ - status?: string | null; - errorMessage?: string | null; - /** The ID of the provisioned database (set by trigger before RLS check) */ databaseId?: string | null; - createdAt?: string | null; - updatedAt?: string | null; - completedAt?: string | null; + entityField?: string | null; + schemaId?: string | null; + /** Private schema that hosts SECURITY DEFINER admin helpers which write to identity_providers (create / update / enable / disable / rotate-secret / delete) and the per-app quota check. */ + privateSchemaId?: string | null; + publicSchemaName?: string | null; + privateSchemaName?: string | null; + tableId?: string | null; + tableName?: string | null; + apiName?: string | null; + privateApiName?: string | null; + scope?: string | null; + prefix?: string | null; + entityTableId?: string | null; } /** - * Entity-aware PGP-encrypted key-value config/secrets module. Supports app-level (admin-only) - * and org-scoped (per-org secrets with manage_secrets permission) via the scope column. - * User-scoped bcrypt credentials are handled by user_credentials_module. + * Config row for the integration_providers_module, which provisions a per-database + * integration_providers table holding branded, reusable service definitions. + * 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. */ -export interface ConfigSecretsModule { +export interface IntegrationProvidersModule { id: string; databaseId?: string | null; + entityField?: string | null; schemaId?: string | null; privateSchemaId?: string | null; publicSchemaName?: string | null; privateSchemaName?: string | null; tableId?: string | null; - configDefinitionsTableId?: string | null; tableName?: string | null; apiName?: string | null; privateApiName?: string | null; scope?: string | null; prefix?: string | null; entityTableId?: string | null; +} +/** Per-preset configuration for the warm database pool: sizing, TTL, and the platform service org that owns unclaimed warm databases. */ +export interface DbPoolConfig { + id: string; + /** Slug of the db_presets catalog row this pool serves */ + presetSlug?: string | null; + /** Base domain used when provisioning warm databases */ + domain?: string | null; + /** Platform pool service org that owns warm databases until they are claimed */ + poolOwnerId?: string | null; + /** Minimum number of ready warm databases the reconciler maintains */ + min?: number | null; + /** Maximum number of warming + ready databases the reconciler will keep */ + max?: number | null; + /** How long a ready warm database stays claimable before it expires */ + warmTtl?: string | null; + /** When false the reconciler stops warming and the claim path falls through to cold provisioning */ + enabled?: boolean | null; + createdAt?: string | null; + updatedAt?: string | null; +} +export interface RealtimeModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + subscriptionsSchemaId?: string | null; + changeLogTableId?: string | null; + listenerNodeTableId?: string | null; + sourceRegistryTableId?: string | null; + retentionHours?: number | null; + premake?: number | null; + interval?: string | null; + notifyChannel?: string | null; + apiName?: string | null; + privateApiName?: string | null; +} +/** Namespace-backed PGP-encrypted key-value secrets module. Requires namespace_module and emits namespace:sync_secrets job triggers for K8s Secret synchronization. */ +export interface InfraSecretsModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + publicSchemaName?: string | null; + privateSchemaName?: string | null; + secretsTableId?: string | null; + secretsTableName?: string | null; + apiName?: string | null; + privateApiName?: string | null; + scope?: string | null; + prefix?: string | null; + entityTableId?: string | null; + entityField?: string | null; policies?: Record | null; provisions?: Record | null; - hasConfig?: boolean | null; } -export interface GraphModule { +/** 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 { + id: string; + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + publicSchemaName?: string | null; + privateSchemaName?: string | null; + internalSecretsTableId?: string | null; + internalSecretsTableName?: string | null; + apiName?: string | null; + privateApiName?: string | null; + scope?: string | null; + prefix?: string | null; + entityTableId?: string | null; + entityField?: string | null; + policies?: Record | null; + provisions?: Record | null; +} +export interface DbPresetModule { id: string; databaseId?: string | null; publicSchemaId?: string | null; @@ -666,32 +704,33 @@ export interface GraphModule { scope?: string | null; prefix?: string | null; merkleStoreModuleId?: string | null; - graphsTableId?: string | null; + dbPresetsTableId?: string | null; + storeName?: string | null; apiName?: string | null; privateApiName?: string | null; entityTableId?: string | null; policies?: Record | null; provisions?: Record | null; - defaultPermissions?: string[] | null; createdAt?: string | null; } -export interface MerkleStoreModule { +export interface GraphModule { id: string; databaseId?: string | null; - schemaId?: string | null; + entityField?: string | null; + publicSchemaId?: string | null; privateSchemaId?: string | null; publicSchemaName?: string | null; privateSchemaName?: string | null; - objectTableId?: string | null; - storeTableId?: string | null; - commitTableId?: string | null; - refTableId?: string | null; + scope?: string | null; prefix?: string | null; + merkleStoreModuleId?: string | null; + graphsTableId?: string | null; apiName?: string | null; privateApiName?: string | null; - scope?: string | null; - functionPrefix?: string | null; - permissionKey?: string | null; + entityTableId?: string | null; + policies?: Record | null; + provisions?: Record | null; + defaultPermissions?: string[] | null; createdAt?: string | null; } export interface RateLimitMetersModule { @@ -713,21 +752,24 @@ export interface RateLimitMetersModule { apiName?: string | null; privateApiName?: string | null; } -export interface RealtimeModule { +/** Namespace-backed plaintext key-value config module. Requires namespace_module and emits namespace:sync_config job triggers for K8s ConfigMap synchronization. */ +export interface InfraConfigModule { id: string; databaseId?: string | null; + entityField?: string | null; schemaId?: string | null; privateSchemaId?: string | null; - subscriptionsSchemaId?: string | null; - changeLogTableId?: string | null; - listenerNodeTableId?: string | null; - sourceRegistryTableId?: string | null; - retentionHours?: number | null; - premake?: number | null; - interval?: string | null; - notifyChannel?: string | null; + publicSchemaName?: string | null; + privateSchemaName?: string | null; + configTableId?: string | null; + configTableName?: string | null; apiName?: string | null; privateApiName?: string | null; + scope?: string | null; + prefix?: string | null; + entityTableId?: string | null; + policies?: Record | null; + provisions?: Record | null; } export interface WebauthnAuthModule { id: string; @@ -747,37 +789,59 @@ export interface WebauthnAuthModule { residentKey?: string | null; challengeExpiry?: string | null; } -export interface FunctionInvocationModule { +/** Provisions the principals subsystem: a principals table, a principal_entities junction table, create/delete mutations, and org API key management. Supports both human-owned principals (AuthzDirectOwner, AuthzHumanOnly) and org-owned principals (AuthzEntityMembership with is_admin). Org principal and org API key functions are only generated when an org-scoped memberships_module exists for the database. */ +export interface PrincipalAuthModule { id: string; databaseId?: string | null; schemaId?: string | null; - privateSchemaId?: string | null; - publicSchemaName?: string | null; - privateSchemaName?: string | null; - invocationsTableId?: string | null; - executionLogsTableId?: string | null; - invocationsTableName?: string | null; - executionLogsTableName?: string | null; + principalsTableId?: string | null; + principalEntitiesTableId?: string | null; + principalScopeOverridesTableId?: string | null; + usersTableId?: string | null; + sessionsTableId?: string | null; + sessionCredentialsTableId?: string | null; + auditsTableId?: string | null; + principalsTableName?: string | null; + createPrincipalFunction?: string | null; + deletePrincipalFunction?: string | null; + createOrgPrincipalFunction?: string | null; + deleteOrgPrincipalFunction?: string | null; + createOrgApiKeyFunction?: string | null; + revokeOrgApiKeyFunction?: string | null; apiName?: string | null; - privateApiName?: string | null; - scope?: string | null; - prefix?: string | null; - entityTableId?: string | null; - policies?: Record | null; - provisions?: Record | null; - defaultPermissions?: string[] | null; +} +/** Warm database pool entries. Rows are inserted as warming (which enqueues a db_pool:warm_database job), become ready once provisioned, and are handed to users via metaschema_private.db_pool_claim (invoked by metaschema_public.request_database). */ +export interface DbPool { + id: string; + /** Slug of the db_presets catalog row this entry was baked from */ + presetSlug?: string | null; + /** The db_presets merkle commit_id the warm database was baked from; a mismatch with the current head marks the entry stale */ + presetCommitId?: string | null; + databaseId?: string | null; + /** Lifecycle: warming, ready, claimed, stale, expired, or failed */ + status?: string | null; + errorMessage?: string | null; + /** When a ready entry expires (set from db_pool_config.warm_ttl at warm time) */ + expiresAt?: string | null; + /** User the database was transferred to at claim time */ + claimedBy?: string | null; + claimedAt?: string | null; + /** Status of the deferred owner bootstrap job after claim: not_requested, pending, completed, or failed */ + bootstrapStatus?: string | null; + bootstrapError?: string | null; + createdAt?: string | null; + updatedAt?: string | null; } export interface FunctionModule { id: string; databaseId?: string | null; + entityField?: string | null; schemaId?: string | null; privateSchemaId?: string | null; publicSchemaName?: string | null; privateSchemaName?: string | null; definitionsTableId?: string | null; - secretDefinitionsTableId?: string | null; definitionsTableName?: string | null; - secretDefinitionsTableName?: string | null; apiName?: string | null; privateApiName?: string | null; scope?: string | null; @@ -787,92 +851,106 @@ export interface FunctionModule { provisions?: Record | null; defaultPermissions?: string[] | null; } -export interface InvitesModule { +export interface MerkleStoreModule { id: string; databaseId?: string | null; + entityField?: string | null; schemaId?: string | null; privateSchemaId?: string | null; publicSchemaName?: string | null; privateSchemaName?: string | null; - emailsTableId?: string | null; - usersTableId?: string | null; - invitesTableId?: string | null; - claimedInvitesTableId?: string | null; - invitesTableName?: string | null; - claimedInvitesTableName?: string | null; - submitInviteCodeFunction?: string | null; - scope?: string | null; + objectTableId?: string | null; + storeTableId?: string | null; + commitTableId?: string | null; + refTableId?: string | null; prefix?: string | null; - entityTableId?: string | null; apiName?: string | null; privateApiName?: string | null; + scope?: string | null; + functionPrefix?: string | null; + permissionKey?: string | null; + createdAt?: string | null; } -/** Provisions the principals subsystem: a principals table, a principal_entities junction table, create/delete mutations, and org API key management. Supports both human-owned principals (AuthzDirectOwner, AuthzHumanOnly) and org-owned principals (AuthzEntityMembership with is_admin). Org principal and org API key functions are only generated when an org-scoped memberships_module exists for the database. */ -export interface PrincipalAuthModule { +/** Tracks database provisioning requests and their status. The BEFORE INSERT trigger creates the database and sets database_id before RLS policies are evaluated. */ +export interface DatabaseProvisionModule { id: string; - databaseId?: string | null; - schemaId?: string | null; - principalsTableId?: string | null; - principalEntitiesTableId?: string | null; - principalScopeOverridesTableId?: string | null; - usersTableId?: string | null; - sessionsTableId?: string | null; - sessionCredentialsTableId?: string | null; - auditsTableId?: string | null; - principalsTableName?: string | null; - createPrincipalFunction?: string | null; - deletePrincipalFunction?: string | null; - createOrgPrincipalFunction?: string | null; - deleteOrgPrincipalFunction?: string | null; - createOrgApiKeyFunction?: string | null; - revokeOrgApiKeyFunction?: string | null; - apiName?: string | null; + /** The name for the new database */ + databaseName?: string | null; + /** UUID of the user who owns this database */ + ownerId?: string | null; + /** Subdomain prefix for the database. If null, auto-generated using unique_names + random chars */ + subdomain?: string | null; + /** Base domain for the database (e.g., example.com) */ + domain?: string | null; + /** JSONB array of modules to install. Each element is either a string ("users_module") or a [name, options] tuple (["permissions_module", {"scope": "app"}]) */ + modules?: Record | null; + /** Additional configuration options for provisioning */ + options?: Record | null; + /** When true, copies the owner user and password hash from source database to the newly provisioned database */ + bootstrapUser?: boolean | null; + /** Current status: pending, in_progress, completed, or failed */ + status?: string | null; + errorMessage?: string | null; + /** The database the owner user is copied from during bootstrap (captured from JWT context at provision time) */ + sourceDatabaseId?: string | null; + /** Status of the deferred owner bootstrap job: not_requested, pending, completed, or failed */ + bootstrapStatus?: string | null; + /** Error message from the most recent failed bootstrap attempt */ + bootstrapError?: string | null; + /** The ID of the provisioned database (set by trigger before RLS check) */ + databaseId?: string | null; + createdAt?: string | null; + updatedAt?: string | null; + completedAt?: string | null; + /** 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; } -export interface ComputeLogModule { +export interface FunctionInvocationModule { id: string; databaseId?: string | null; + entityField?: string | null; schemaId?: string | null; privateSchemaId?: string | null; publicSchemaName?: string | null; privateSchemaName?: string | null; - computeLogTableId?: string | null; - computeLogTableName?: string | null; - usageDailyTableId?: string | null; - usageDailyTableName?: string | null; - interval?: string | null; - retention?: string | null; - premake?: number | null; - scope?: string | null; - actorFkTableId?: string | null; - entityFkTableId?: string | null; - prefix?: string | null; + invocationsTableId?: string | null; + executionLogsTableId?: string | null; + invocationsTableName?: string | null; + executionLogsTableName?: string | null; apiName?: string | null; privateApiName?: string | null; + scope?: string | null; + prefix?: string | null; + entityTableId?: string | null; + policies?: Record | null; + provisions?: Record | null; + defaultPermissions?: string[] | null; } -export interface InferenceLogModule { +export interface InvitesModule { id: string; databaseId?: string | null; + entityField?: string | null; schemaId?: string | null; privateSchemaId?: string | null; publicSchemaName?: string | null; privateSchemaName?: string | null; - inferenceLogTableId?: string | null; - inferenceLogTableName?: string | null; - usageDailyTableId?: string | null; - usageDailyTableName?: string | null; - interval?: string | null; - retention?: string | null; - premake?: number | null; + emailsTableId?: string | null; + usersTableId?: string | null; + invitesTableId?: string | null; + claimedInvitesTableId?: string | null; + invitesTableName?: string | null; + claimedInvitesTableName?: string | null; + submitInviteCodeFunction?: string | null; scope?: string | null; - actorFkTableId?: string | null; - entityFkTableId?: string | null; prefix?: string | null; + entityTableId?: string | null; apiName?: string | null; privateApiName?: string | null; } export interface NamespaceModule { id: string; databaseId?: string | null; + entityField?: string | null; schemaId?: string | null; privateSchemaId?: string | null; publicSchemaName?: string | null; @@ -886,41 +964,43 @@ export interface NamespaceModule { scope?: string | null; prefix?: string | null; entityTableId?: string | null; - platformNamespacesTableId?: string | null; policies?: Record | null; provisions?: Record | null; defaultPermissions?: string[] | null; } -export interface ResourceModule { +export interface PlansModule { id: string; databaseId?: string | null; schemaId?: string | null; privateSchemaId?: string | null; publicSchemaName?: string | null; privateSchemaName?: string | null; - resourcesTableId?: string | null; - resourceEventsTableId?: string | null; - resourcesTableName?: string | null; - resourceEventsTableName?: string | null; + plansTableId?: string | null; + plansTableName?: string | null; + planLimitsTableId?: string | null; + planLimitsTableName?: string | null; + planPricingTableId?: string | null; + planOverridesTableId?: string | null; + planMeterLimitsTableId?: string | null; + planCapsTableId?: string | null; + applyPlanFunction?: string | null; + applyPlanAggregateFunction?: string | null; + applyBillingPlanFunction?: string | null; + applyPlanCapsFunction?: string | null; + prefix?: string | null; apiName?: string | null; privateApiName?: string | null; - scope?: string | null; - prefix?: string | null; - entityTableId?: string | null; - namespaceModuleId?: string | null; - policies?: Record | null; - provisions?: Record | null; - defaultPermissions?: string[] | null; } -export interface StorageLogModule { +export interface ComputeLogModule { id: string; databaseId?: string | null; + entityField?: string | null; schemaId?: string | null; privateSchemaId?: string | null; publicSchemaName?: string | null; privateSchemaName?: string | null; - storageLogTableId?: string | null; - storageLogTableName?: string | null; + computeLogTableId?: string | null; + computeLogTableName?: string | null; usageDailyTableId?: string | null; usageDailyTableName?: string | null; interval?: string | null; @@ -933,15 +1013,16 @@ export interface StorageLogModule { apiName?: string | null; privateApiName?: string | null; } -export interface TransferLogModule { +export interface InferenceLogModule { id: string; databaseId?: string | null; + entityField?: string | null; schemaId?: string | null; privateSchemaId?: string | null; publicSchemaName?: string | null; privateSchemaName?: string | null; - transferLogTableId?: string | null; - transferLogTableName?: string | null; + inferenceLogTableId?: string | null; + inferenceLogTableName?: string | null; usageDailyTableId?: string | null; usageDailyTableName?: string | null; interval?: string | null; @@ -954,47 +1035,46 @@ export interface TransferLogModule { apiName?: string | null; privateApiName?: string | null; } -export interface FunctionDeploymentModule { +export interface StorageLogModule { id: string; databaseId?: string | null; + entityField?: string | null; schemaId?: string | null; privateSchemaId?: string | null; publicSchemaName?: string | null; privateSchemaName?: string | null; - deploymentsTableId?: string | null; - deploymentEventsTableId?: string | null; - deploymentsTableName?: string | null; - deploymentEventsTableName?: string | null; - apiName?: string | null; - privateApiName?: string | null; + storageLogTableId?: string | null; + storageLogTableName?: string | null; + usageDailyTableId?: string | null; + usageDailyTableName?: string | null; + interval?: string | null; + retention?: string | null; + premake?: number | null; scope?: string | null; + actorFkTableId?: string | null; + entityFkTableId?: string | null; prefix?: string | null; - entityTableId?: string | null; - functionModuleId?: string | null; - namespaceModuleId?: string | null; - policies?: Record | null; - provisions?: Record | null; - defaultPermissions?: string[] | null; + apiName?: string | null; + privateApiName?: string | null; } -export interface PlansModule { +export interface TransferLogModule { id: string; databaseId?: string | null; + entityField?: string | null; schemaId?: string | null; privateSchemaId?: string | null; publicSchemaName?: string | null; privateSchemaName?: string | null; - plansTableId?: string | null; - plansTableName?: string | null; - planLimitsTableId?: string | null; - planLimitsTableName?: string | null; - planPricingTableId?: string | null; - planOverridesTableId?: string | null; - planMeterLimitsTableId?: string | null; - planCapsTableId?: string | null; - applyPlanFunction?: string | null; - applyPlanAggregateFunction?: string | null; - applyBillingPlanFunction?: string | null; - applyPlanCapsFunction?: string | null; + transferLogTableId?: string | null; + transferLogTableName?: string | null; + usageDailyTableId?: string | null; + usageDailyTableName?: string | null; + interval?: string | null; + retention?: string | null; + premake?: number | null; + scope?: string | null; + actorFkTableId?: string | null; + entityFkTableId?: string | null; prefix?: string | null; apiName?: string | null; privateApiName?: string | null; @@ -1023,33 +1103,57 @@ export interface BillingProviderModule { apiName?: string | null; privateApiName?: string | null; } -export interface DbUsageModule { +export interface FunctionDeploymentModule { id: string; databaseId?: string | null; + entityField?: string | null; schemaId?: string | null; privateSchemaId?: string | null; publicSchemaName?: string | null; privateSchemaName?: string | null; - tableStatsLogTableId?: string | null; - tableStatsLogTableName?: string | null; - tableStatsDailyTableId?: string | null; - tableStatsDailyTableName?: string | null; - queryStatsLogTableId?: string | null; - queryStatsLogTableName?: string | null; - queryStatsDailyTableId?: string | null; - queryStatsDailyTableName?: string | null; - interval?: string | null; - retention?: string | null; - premake?: number | null; + deploymentsTableId?: string | null; + deploymentEventsTableId?: string | null; + deploymentsTableName?: string | null; + deploymentEventsTableName?: string | null; + apiName?: string | null; + privateApiName?: string | null; scope?: string | null; prefix?: string | null; + entityTableId?: string | null; + functionModuleId?: string | null; + namespaceModuleId?: string | null; + policies?: Record | null; + provisions?: Record | null; defaultPermissions?: string[] | null; +} +export interface PermissionsModule { + id: string; + databaseId?: string | null; + entityField?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + publicSchemaName?: string | null; + privateSchemaName?: string | null; + tableId?: string | null; + tableName?: string | null; + defaultTableId?: string | null; + defaultTableName?: string | null; + bitlen?: number | null; + scope?: string | null; + prefix?: string | null; + entityTableId?: string | null; + actorTableId?: string | null; + getPaddedMask?: string | null; + getMask?: string | null; + getByMask?: string | null; + getMaskByName?: string | null; apiName?: string | null; privateApiName?: string | null; } export interface GraphExecutionModule { id: string; databaseId?: string | null; + entityField?: string | null; schemaId?: string | null; privateSchemaId?: string | null; publicSchemaName?: string | null; @@ -1074,6 +1178,7 @@ export interface GraphExecutionModule { export interface HierarchyModule { id: string; databaseId?: string | null; + entityField?: string | null; schemaId?: string | null; privateSchemaId?: string | null; chartEdgesTableId?: string | null; @@ -1095,32 +1200,10 @@ export interface HierarchyModule { defaultPermissions?: string[] | null; createdAt?: string | null; } -export interface PermissionsModule { - id: string; - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - publicSchemaName?: string | null; - privateSchemaName?: string | null; - tableId?: string | null; - tableName?: string | null; - defaultTableId?: string | null; - defaultTableName?: string | null; - bitlen?: number | null; - scope?: string | null; - prefix?: string | null; - entityTableId?: string | null; - actorTableId?: string | null; - getPaddedMask?: string | null; - getMask?: string | null; - getByMask?: string | null; - getMaskByName?: string | null; - apiName?: string | null; - privateApiName?: string | null; -} export interface NotificationsModule { id: string; databaseId?: string | null; + entityField?: string | null; schemaId?: string | null; privateSchemaId?: string | null; publicSchemaName?: string | null; @@ -1143,73 +1226,20 @@ export interface NotificationsModule { apiName?: string | null; privateApiName?: string | null; } -export interface ProfilesModule { +/** + * Provisions relational structure between tables. Supports four relation types: + * - RelationBelongsTo: adds a FK field on the source table referencing the target table (child perspective: "tasks belongs to projects" -> tasks.project_id). + * - RelationHasMany: adds a FK field on the target table referencing the source table (parent perspective: "projects has many tasks" -> tasks.project_id). Inverse of BelongsTo. + * - RelationHasOne: adds a FK field with a unique constraint on the source table referencing the target table. Also supports shared-primary-key patterns where the FK field IS the primary key (set field_name to the existing PK field name). + * - RelationManyToMany: creates a junction table with FK fields to both source and target tables, delegating table creation and security to secure_table_provision. + * 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. + */ +export interface RelationProvision { + /** Unique identifier for this relation provision row. */ id: string; - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - publicSchemaName?: string | null; - privateSchemaName?: string | null; - tableId?: string | null; - tableName?: string | null; - profilePermissionsTableId?: string | null; - profilePermissionsTableName?: string | null; - profileGrantsTableId?: string | null; - profileGrantsTableName?: string | null; - profileDefinitionGrantsTableId?: string | null; - profileDefinitionGrantsTableName?: string | null; - profileTemplatesTableId?: string | null; - profileTemplatesTableName?: string | null; - scope?: string | null; - prefix?: string | null; - entityTableId?: string | null; - actorTableId?: string | null; - permissionsTableId?: string | null; - membershipsTableId?: string | null; - apiName?: string | null; - privateApiName?: string | null; -} -export interface BillingModule { - id: string; - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - publicSchemaName?: string | null; - privateSchemaName?: string | null; - metersTableId?: string | null; - metersTableName?: string | null; - planSubscriptionsTableId?: string | null; - planSubscriptionsTableName?: string | null; - ledgerTableId?: string | null; - ledgerTableName?: string | null; - balancesTableId?: string | null; - balancesTableName?: string | null; - meterCreditsTableId?: string | null; - meterCreditsTableName?: string | null; - meterSourcesTableId?: string | null; - meterSourcesTableName?: string | null; - meterDefaultsTableId?: string | null; - meterDefaultsTableName?: string | null; - recordUsageFunction?: string | null; - prefix?: string | null; - defaultPermissions?: string[] | null; - apiName?: string | null; - privateApiName?: string | null; -} -/** - * Provisions relational structure between tables. Supports four relation types: - * - RelationBelongsTo: adds a FK field on the source table referencing the target table (child perspective: "tasks belongs to projects" -> tasks.project_id). - * - RelationHasMany: adds a FK field on the target table referencing the source table (parent perspective: "projects has many tasks" -> tasks.project_id). Inverse of BelongsTo. - * - RelationHasOne: adds a FK field with a unique constraint on the source table referencing the target table. Also supports shared-primary-key patterns where the FK field IS the primary key (set field_name to the existing PK field name). - * - RelationManyToMany: creates a junction table with FK fields to both source and target tables, delegating table creation and security to secure_table_provision. - * 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. - */ -export interface RelationProvision { - /** Unique identifier for this relation provision row. */ - id: string; - /** The database this relation belongs to. Required. Must match the database of both source_table_id and target_table_id. */ + /** The database this relation belongs to. Required. Must match the database of both source_table_id and target_table_id. */ databaseId?: string | null; /** * The type of relation to create. Uses SuperCase naming: @@ -1329,6 +1359,90 @@ export interface RelationProvision { /** Output column for RelationManyToMany: the UUID of the FK field on the junction table referencing the target table. Populated by the trigger. NULL for RelationBelongsTo/RelationHasOne. Callers should not set this directly. */ outTargetFieldId?: string | null; } +export interface ProfilesModule { + id: string; + databaseId?: string | null; + entityField?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + publicSchemaName?: string | null; + privateSchemaName?: string | null; + tableId?: string | null; + tableName?: string | null; + profilePermissionsTableId?: string | null; + profilePermissionsTableName?: string | null; + profileGrantsTableId?: string | null; + profileGrantsTableName?: string | null; + profileDefinitionGrantsTableId?: string | null; + profileDefinitionGrantsTableName?: string | null; + profileTemplatesTableId?: string | null; + profileTemplatesTableName?: string | null; + scope?: string | null; + prefix?: string | null; + entityTableId?: string | null; + actorTableId?: string | null; + permissionsTableId?: string | null; + membershipsTableId?: string | null; + apiName?: string | null; + privateApiName?: string | null; +} +export interface BillingModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + publicSchemaName?: string | null; + privateSchemaName?: string | null; + metersTableId?: string | null; + metersTableName?: string | null; + planSubscriptionsTableId?: string | null; + planSubscriptionsTableName?: string | null; + ledgerTableId?: string | null; + ledgerTableName?: string | null; + balancesTableId?: string | null; + balancesTableName?: string | null; + meterCreditsTableId?: string | null; + meterCreditsTableName?: string | null; + meterSourcesTableId?: string | null; + meterSourcesTableName?: string | null; + meterDefaultsTableId?: string | null; + meterDefaultsTableName?: string | null; + recordUsageFunction?: string | null; + sweepExpiredSubscriptionsFunction?: string | null; + rollupUsageSummaryFunction?: string | null; + prefix?: string | null; + defaultPermissions?: string[] | null; + apiName?: string | null; + privateApiName?: string | null; +} +export interface ResourceModule { + id: string; + databaseId?: string | null; + entityField?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + publicSchemaName?: string | null; + privateSchemaName?: string | null; + resourcesTableId?: string | null; + resourceEventsTableId?: string | null; + resourceStatusChecksTableId?: string | null; + resourceDefinitionsTableId?: string | null; + resourcesTableName?: string | null; + resourceEventsTableName?: string | null; + resourceStatusChecksTableName?: string | null; + resourceDefinitionsTableName?: string | null; + resolvedRequirementsViewName?: string | null; + requirementsStateViewName?: string | null; + apiName?: string | null; + privateApiName?: string | null; + scope?: string | null; + prefix?: string | null; + entityTableId?: string | null; + namespaceModuleId?: string | null; + policies?: Record | null; + provisions?: Record | null; + defaultPermissions?: string[] | null; +} export interface UserAuthModule { id: string; databaseId?: string | null; @@ -1359,9 +1473,39 @@ export interface UserAuthModule { apiName?: string | null; privateApiName?: string | null; } +export interface DbUsageModule { + id: string; + databaseId?: string | null; + entityField?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + publicSchemaName?: string | null; + privateSchemaName?: string | null; + tableStatsLogTableId?: string | null; + tableStatsLogTableName?: string | null; + tableStatsDailyTableId?: string | null; + tableStatsDailyTableName?: string | null; + queryStatsLogTableId?: string | null; + queryStatsLogTableName?: string | null; + queryStatsDailyTableId?: string | null; + queryStatsDailyTableName?: string | null; + collectDbTableStatsFunction?: string | null; + collectDbQueryStatsFunction?: string | null; + rollupDbTableStatsDailyFunction?: string | null; + rollupDbQueryStatsDailyFunction?: string | null; + interval?: string | null; + retention?: string | null; + premake?: number | null; + scope?: string | null; + prefix?: string | null; + defaultPermissions?: string[] | null; + apiName?: string | null; + privateApiName?: string | null; +} export interface AgentModule { id: string; databaseId?: string | null; + entityField?: string | null; schemaId?: string | null; privateSchemaId?: string | null; publicSchemaName?: string | null; @@ -1399,6 +1543,7 @@ export interface AgentModule { export interface LimitsModule { id: string; databaseId?: string | null; + entityField?: string | null; schemaId?: string | null; privateSchemaId?: string | null; publicSchemaName?: string | null; @@ -1434,49 +1579,6 @@ export interface LimitsModule { apiName?: string | null; privateApiName?: string | null; } -export interface MembershipsModule { - id: string; - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - publicSchemaName?: string | null; - privateSchemaName?: string | null; - membershipsTableId?: string | null; - membershipsTableName?: string | null; - membersTableId?: string | null; - membersTableName?: string | null; - membershipDefaultsTableId?: string | null; - membershipDefaultsTableName?: string | null; - membershipSettingsTableId?: string | null; - membershipSettingsTableName?: string | null; - grantsTableId?: string | null; - grantsTableName?: string | null; - actorTableId?: string | null; - limitsTableId?: string | null; - defaultLimitsTableId?: string | null; - permissionsTableId?: string | null; - defaultPermissionsTableId?: string | null; - sprtTableId?: string | null; - adminGrantsTableId?: string | null; - adminGrantsTableName?: string | null; - ownerGrantsTableId?: string | null; - ownerGrantsTableName?: string | null; - scope?: string | null; - prefix?: string | null; - entityTableId?: string | null; - entityTableOwnerId?: string | null; - getOrgFn?: string | null; - actorMaskCheck?: string | null; - actorPermCheck?: string | null; - entityIdsByMask?: string | null; - entityIdsByPerm?: string | null; - entityIdsFunction?: string | null; - memberProfilesTableId?: string | null; - permissionDefaultPermissionsTableId?: string | null; - permissionDefaultGrantsTableId?: string | null; - apiName?: string | null; - privateApiName?: string | null; -} /** * 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). @@ -1734,7 +1836,6 @@ export interface EntityTypeProvision { outDefinitionsTableId?: string | null; outInvocationsTableId?: string | null; outExecutionLogsTableId?: string | null; - outSecretDefinitionsTableId?: string | null; outGraphModuleId?: string | null; outGraphsTableId?: string | null; outAgentModuleId?: string | null; @@ -1755,6 +1856,7 @@ export interface StorageModule { policies?: Record | null; provisions?: Record | null; entityTableId?: string | null; + entityField?: string | null; endpoint?: string | null; publicUrlPrefix?: string | null; provider?: string | null; @@ -1780,9 +1882,54 @@ export interface StorageModule { apiName?: string | null; privateApiName?: string | null; } +export interface MembershipsModule { + id: string; + databaseId?: string | null; + entityField?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + publicSchemaName?: string | null; + privateSchemaName?: string | null; + membershipsTableId?: string | null; + membershipsTableName?: string | null; + membersTableId?: string | null; + membersTableName?: string | null; + membershipDefaultsTableId?: string | null; + membershipDefaultsTableName?: string | null; + membershipSettingsTableId?: string | null; + membershipSettingsTableName?: string | null; + grantsTableId?: string | null; + grantsTableName?: string | null; + actorTableId?: string | null; + limitsTableId?: string | null; + defaultLimitsTableId?: string | null; + permissionsTableId?: string | null; + defaultPermissionsTableId?: string | null; + sprtTableId?: string | null; + adminGrantsTableId?: string | null; + adminGrantsTableName?: string | null; + ownerGrantsTableId?: string | null; + ownerGrantsTableName?: string | null; + scope?: string | null; + prefix?: string | null; + entityTableId?: string | null; + entityTableOwnerId?: string | null; + getOrgFn?: string | null; + actorMaskCheck?: string | null; + actorPermCheck?: string | null; + entityIdsByMask?: string | null; + entityIdsByPerm?: string | null; + entityIdsFunction?: string | null; + memberProfilesTableId?: string | null; + permissionDefaultPermissionsTableId?: string | null; + permissionDefaultGrantsTableId?: string | null; + apiName?: string | null; + privateApiName?: string | null; +} export interface EventsModule { id: string; databaseId?: string | null; + entityField?: string | null; schemaId?: string | null; privateSchemaId?: string | null; publicSchemaName?: string | null; @@ -1809,7 +1956,6 @@ export interface EventsModule { tgEventBool?: string | null; upsertAggregate?: string | null; tgUpdateAggregates?: string | null; - pruneEvents?: string | null; stepsRequired?: string | null; levelAchieved?: string | null; tgCheckAchievements?: string | null; @@ -1841,23 +1987,21 @@ export interface PageInfo { // ============ Entity Relation Types ============ export interface DefaultIdsModuleRelations {} export interface MembershipTypesModuleRelations {} -export interface UserStateModuleRelations {} export interface SessionSecretsModuleRelations {} -export interface ConfigSecretsOrgModuleRelations {} export interface DevicesModuleRelations {} export interface I18NModuleRelations {} -export interface UserCredentialsModuleRelations {} export interface UserSettingsModuleRelations {} -export interface ConfigSecretsUserModuleRelations {} +export interface UserStateModuleRelations {} +export interface UserCredentialsModuleRelations {} export interface ConnectedAccountsModuleRelations {} export interface EmailsModuleRelations {} export interface PhoneNumbersModuleRelations {} export interface RateLimitsModuleRelations {} export interface UsersModuleRelations {} export interface WebauthnCredentialsModuleRelations {} +export interface ConfigSecretsUserModuleRelations {} export interface CryptoAddressesModuleRelations {} export interface DenormalizedTableFieldRelations {} -export interface IdentityProvidersModuleRelations {} export interface RlsModuleRelations {} export interface BlueprintRelations { template?: BlueprintTemplate | null; @@ -1874,68 +2018,74 @@ export interface BlueprintConstructionRelations { export interface CryptoAuthModuleRelations {} export interface SessionsModuleRelations {} export interface SecureTableProvisionRelations {} -export interface DatabaseProvisionModuleRelations {} -export interface ConfigSecretsModuleRelations {} +export interface IdentityProvidersModuleRelations {} +export interface IntegrationProvidersModuleRelations {} +export interface DbPoolConfigRelations {} +export interface RealtimeModuleRelations {} +export interface InfraSecretsModuleRelations {} +export interface InternalSecretsModuleRelations {} +export interface DbPresetModuleRelations { + merkleStoreModule?: MerkleStoreModule | null; +} export interface GraphModuleRelations { merkleStoreModule?: MerkleStoreModule | null; } -export interface MerkleStoreModuleRelations { - graphModules?: ConnectionResult; -} export interface RateLimitMetersModuleRelations {} -export interface RealtimeModuleRelations {} +export interface InfraConfigModuleRelations {} export interface WebauthnAuthModuleRelations {} -export interface FunctionInvocationModuleRelations {} +export interface PrincipalAuthModuleRelations {} +export interface DbPoolRelations {} export interface FunctionModuleRelations {} +export interface MerkleStoreModuleRelations { + graphModules?: ConnectionResult; + dbPresetModules?: ConnectionResult; +} +export interface DatabaseProvisionModuleRelations {} +export interface FunctionInvocationModuleRelations {} export interface InvitesModuleRelations {} -export interface PrincipalAuthModuleRelations {} +export interface NamespaceModuleRelations {} +export interface PlansModuleRelations {} export interface ComputeLogModuleRelations {} export interface InferenceLogModuleRelations {} -export interface NamespaceModuleRelations {} -export interface ResourceModuleRelations { - namespaceModule?: NamespaceModule | null; -} export interface StorageLogModuleRelations {} export interface TransferLogModuleRelations {} +export interface BillingProviderModuleRelations {} export interface FunctionDeploymentModuleRelations { functionModule?: FunctionModule | null; namespaceModule?: NamespaceModule | null; } -export interface PlansModuleRelations {} -export interface BillingProviderModuleRelations {} -export interface DbUsageModuleRelations {} +export interface PermissionsModuleRelations {} export interface GraphExecutionModuleRelations { graphModule?: GraphModule | null; } export interface HierarchyModuleRelations {} -export interface PermissionsModuleRelations {} export interface NotificationsModuleRelations {} +export interface RelationProvisionRelations {} export interface ProfilesModuleRelations {} export interface BillingModuleRelations {} -export interface RelationProvisionRelations {} +export interface ResourceModuleRelations { + namespaceModule?: NamespaceModule | null; +} export interface UserAuthModuleRelations {} +export interface DbUsageModuleRelations {} export interface AgentModuleRelations {} export interface LimitsModuleRelations {} -export interface MembershipsModuleRelations {} export interface EntityTypeProvisionRelations {} export interface StorageModuleRelations {} +export interface MembershipsModuleRelations {} export interface EventsModuleRelations {} // ============ Entity Types With Relations ============ export type DefaultIdsModuleWithRelations = DefaultIdsModule & DefaultIdsModuleRelations; export type MembershipTypesModuleWithRelations = MembershipTypesModule & MembershipTypesModuleRelations; -export type UserStateModuleWithRelations = UserStateModule & UserStateModuleRelations; export type SessionSecretsModuleWithRelations = SessionSecretsModule & SessionSecretsModuleRelations; -export type ConfigSecretsOrgModuleWithRelations = ConfigSecretsOrgModule & - ConfigSecretsOrgModuleRelations; export type DevicesModuleWithRelations = DevicesModule & DevicesModuleRelations; export type I18NModuleWithRelations = I18NModule & I18NModuleRelations; +export type UserSettingsModuleWithRelations = UserSettingsModule & UserSettingsModuleRelations; +export type UserStateModuleWithRelations = UserStateModule & UserStateModuleRelations; export type UserCredentialsModuleWithRelations = UserCredentialsModule & UserCredentialsModuleRelations; -export type UserSettingsModuleWithRelations = UserSettingsModule & UserSettingsModuleRelations; -export type ConfigSecretsUserModuleWithRelations = ConfigSecretsUserModule & - ConfigSecretsUserModuleRelations; export type ConnectedAccountsModuleWithRelations = ConnectedAccountsModule & ConnectedAccountsModuleRelations; export type EmailsModuleWithRelations = EmailsModule & EmailsModuleRelations; @@ -1944,12 +2094,12 @@ export type RateLimitsModuleWithRelations = RateLimitsModule & RateLimitsModuleR export type UsersModuleWithRelations = UsersModule & UsersModuleRelations; export type WebauthnCredentialsModuleWithRelations = WebauthnCredentialsModule & WebauthnCredentialsModuleRelations; +export type ConfigSecretsUserModuleWithRelations = ConfigSecretsUserModule & + ConfigSecretsUserModuleRelations; export type CryptoAddressesModuleWithRelations = CryptoAddressesModule & CryptoAddressesModuleRelations; export type DenormalizedTableFieldWithRelations = DenormalizedTableField & DenormalizedTableFieldRelations; -export type IdentityProvidersModuleWithRelations = IdentityProvidersModule & - IdentityProvidersModuleRelations; export type RlsModuleWithRelations = RlsModule & RlsModuleRelations; export type BlueprintWithRelations = Blueprint & BlueprintRelations; export type BlueprintTemplateWithRelations = BlueprintTemplate & BlueprintTemplateRelations; @@ -1959,46 +2109,56 @@ export type CryptoAuthModuleWithRelations = CryptoAuthModule & CryptoAuthModuleR export type SessionsModuleWithRelations = SessionsModule & SessionsModuleRelations; export type SecureTableProvisionWithRelations = SecureTableProvision & SecureTableProvisionRelations; -export type DatabaseProvisionModuleWithRelations = DatabaseProvisionModule & - DatabaseProvisionModuleRelations; -export type ConfigSecretsModuleWithRelations = ConfigSecretsModule & ConfigSecretsModuleRelations; +export type IdentityProvidersModuleWithRelations = IdentityProvidersModule & + IdentityProvidersModuleRelations; +export type IntegrationProvidersModuleWithRelations = IntegrationProvidersModule & + IntegrationProvidersModuleRelations; +export type DbPoolConfigWithRelations = DbPoolConfig & DbPoolConfigRelations; +export type RealtimeModuleWithRelations = RealtimeModule & RealtimeModuleRelations; +export type InfraSecretsModuleWithRelations = InfraSecretsModule & InfraSecretsModuleRelations; +export type InternalSecretsModuleWithRelations = InternalSecretsModule & + InternalSecretsModuleRelations; +export type DbPresetModuleWithRelations = DbPresetModule & DbPresetModuleRelations; export type GraphModuleWithRelations = GraphModule & GraphModuleRelations; -export type MerkleStoreModuleWithRelations = MerkleStoreModule & MerkleStoreModuleRelations; export type RateLimitMetersModuleWithRelations = RateLimitMetersModule & RateLimitMetersModuleRelations; -export type RealtimeModuleWithRelations = RealtimeModule & RealtimeModuleRelations; +export type InfraConfigModuleWithRelations = InfraConfigModule & InfraConfigModuleRelations; export type WebauthnAuthModuleWithRelations = WebauthnAuthModule & WebauthnAuthModuleRelations; +export type PrincipalAuthModuleWithRelations = PrincipalAuthModule & PrincipalAuthModuleRelations; +export type DbPoolWithRelations = DbPool & DbPoolRelations; +export type FunctionModuleWithRelations = FunctionModule & FunctionModuleRelations; +export type MerkleStoreModuleWithRelations = MerkleStoreModule & MerkleStoreModuleRelations; +export type DatabaseProvisionModuleWithRelations = DatabaseProvisionModule & + DatabaseProvisionModuleRelations; export type FunctionInvocationModuleWithRelations = FunctionInvocationModule & FunctionInvocationModuleRelations; -export type FunctionModuleWithRelations = FunctionModule & FunctionModuleRelations; export type InvitesModuleWithRelations = InvitesModule & InvitesModuleRelations; -export type PrincipalAuthModuleWithRelations = PrincipalAuthModule & PrincipalAuthModuleRelations; +export type NamespaceModuleWithRelations = NamespaceModule & NamespaceModuleRelations; +export type PlansModuleWithRelations = PlansModule & PlansModuleRelations; export type ComputeLogModuleWithRelations = ComputeLogModule & ComputeLogModuleRelations; export type InferenceLogModuleWithRelations = InferenceLogModule & InferenceLogModuleRelations; -export type NamespaceModuleWithRelations = NamespaceModule & NamespaceModuleRelations; -export type ResourceModuleWithRelations = ResourceModule & ResourceModuleRelations; export type StorageLogModuleWithRelations = StorageLogModule & StorageLogModuleRelations; export type TransferLogModuleWithRelations = TransferLogModule & TransferLogModuleRelations; -export type FunctionDeploymentModuleWithRelations = FunctionDeploymentModule & - FunctionDeploymentModuleRelations; -export type PlansModuleWithRelations = PlansModule & PlansModuleRelations; export type BillingProviderModuleWithRelations = BillingProviderModule & BillingProviderModuleRelations; -export type DbUsageModuleWithRelations = DbUsageModule & DbUsageModuleRelations; +export type FunctionDeploymentModuleWithRelations = FunctionDeploymentModule & + FunctionDeploymentModuleRelations; +export type PermissionsModuleWithRelations = PermissionsModule & PermissionsModuleRelations; export type GraphExecutionModuleWithRelations = GraphExecutionModule & GraphExecutionModuleRelations; export type HierarchyModuleWithRelations = HierarchyModule & HierarchyModuleRelations; -export type PermissionsModuleWithRelations = PermissionsModule & PermissionsModuleRelations; export type NotificationsModuleWithRelations = NotificationsModule & NotificationsModuleRelations; +export type RelationProvisionWithRelations = RelationProvision & RelationProvisionRelations; export type ProfilesModuleWithRelations = ProfilesModule & ProfilesModuleRelations; export type BillingModuleWithRelations = BillingModule & BillingModuleRelations; -export type RelationProvisionWithRelations = RelationProvision & RelationProvisionRelations; +export type ResourceModuleWithRelations = ResourceModule & ResourceModuleRelations; export type UserAuthModuleWithRelations = UserAuthModule & UserAuthModuleRelations; +export type DbUsageModuleWithRelations = DbUsageModule & DbUsageModuleRelations; export type AgentModuleWithRelations = AgentModule & AgentModuleRelations; export type LimitsModuleWithRelations = LimitsModule & LimitsModuleRelations; -export type MembershipsModuleWithRelations = MembershipsModule & MembershipsModuleRelations; export type EntityTypeProvisionWithRelations = EntityTypeProvision & EntityTypeProvisionRelations; export type StorageModuleWithRelations = StorageModule & StorageModuleRelations; +export type MembershipsModuleWithRelations = MembershipsModule & MembershipsModuleRelations; export type EventsModuleWithRelations = EventsModule & EventsModuleRelations; // ============ Entity Select Types ============ export type DefaultIdsModuleSelect = { @@ -2012,13 +2172,6 @@ export type MembershipTypesModuleSelect = { tableId?: boolean; tableName?: boolean; }; -export type UserStateModuleSelect = { - id?: boolean; - databaseId?: boolean; - schemaId?: boolean; - tableId?: boolean; - tableName?: boolean; -}; export type SessionSecretsModuleSelect = { id?: boolean; databaseId?: boolean; @@ -2027,15 +2180,6 @@ export type SessionSecretsModuleSelect = { tableName?: boolean; sessionsTableId?: boolean; }; -export type ConfigSecretsOrgModuleSelect = { - id?: boolean; - databaseId?: boolean; - schemaId?: boolean; - tableId?: boolean; - tableName?: boolean; - apiName?: boolean; - privateApiName?: boolean; -}; export type DevicesModuleSelect = { id?: boolean; databaseId?: boolean; @@ -2054,32 +2198,30 @@ export type I18NModuleSelect = { apiName?: boolean; privateApiName?: boolean; }; -export type UserCredentialsModuleSelect = { +export type UserSettingsModuleSelect = { id?: boolean; databaseId?: boolean; schemaId?: boolean; tableId?: boolean; + ownerTableId?: boolean; tableName?: boolean; apiName?: boolean; - privateApiName?: boolean; }; -export type UserSettingsModuleSelect = { +export type UserStateModuleSelect = { id?: boolean; databaseId?: boolean; + entityField?: boolean; schemaId?: boolean; tableId?: boolean; - ownerTableId?: boolean; tableName?: boolean; - apiName?: boolean; }; -export type ConfigSecretsUserModuleSelect = { +export type UserCredentialsModuleSelect = { id?: boolean; databaseId?: boolean; + entityField?: boolean; schemaId?: boolean; tableId?: boolean; tableName?: boolean; - configDefinitionsTableId?: boolean; - apiName?: boolean; privateApiName?: boolean; }; export type ConnectedAccountsModuleSelect = { @@ -2148,6 +2290,16 @@ export type WebauthnCredentialsModuleSelect = { apiName?: boolean; privateApiName?: boolean; }; +export type ConfigSecretsUserModuleSelect = { + id?: boolean; + databaseId?: boolean; + entityField?: boolean; + schemaId?: boolean; + tableId?: boolean; + tableName?: boolean; + apiName?: boolean; + privateApiName?: boolean; +}; export type CryptoAddressesModuleSelect = { id?: boolean; databaseId?: boolean; @@ -2174,21 +2326,6 @@ export type DenormalizedTableFieldSelect = { funcName?: boolean; funcOrder?: boolean; }; -export type IdentityProvidersModuleSelect = { - id?: boolean; - databaseId?: boolean; - schemaId?: boolean; - privateSchemaId?: boolean; - publicSchemaName?: boolean; - privateSchemaName?: boolean; - tableId?: boolean; - tableName?: boolean; - apiName?: boolean; - privateApiName?: boolean; - scope?: boolean; - prefix?: boolean; - entityTableId?: boolean; -}; export type RlsModuleSelect = { id?: boolean; databaseId?: boolean; @@ -2322,42 +2459,103 @@ export type SecureTableProvisionSelect = { policies?: boolean; outFields?: boolean; }; -export type DatabaseProvisionModuleSelect = { +export type IdentityProvidersModuleSelect = { id?: boolean; - databaseName?: boolean; - ownerId?: boolean; - subdomain?: boolean; - domain?: boolean; - modules?: boolean; - options?: boolean; - bootstrapUser?: boolean; - status?: boolean; - errorMessage?: boolean; databaseId?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - completedAt?: boolean; + entityField?: boolean; + schemaId?: boolean; + privateSchemaId?: boolean; + publicSchemaName?: boolean; + privateSchemaName?: boolean; + tableId?: boolean; + tableName?: boolean; + apiName?: boolean; + privateApiName?: boolean; + scope?: boolean; + prefix?: boolean; + entityTableId?: boolean; }; -export type ConfigSecretsModuleSelect = { +export type IntegrationProvidersModuleSelect = { id?: boolean; databaseId?: boolean; + entityField?: boolean; schemaId?: boolean; privateSchemaId?: boolean; publicSchemaName?: boolean; privateSchemaName?: boolean; tableId?: boolean; - configDefinitionsTableId?: boolean; tableName?: boolean; apiName?: boolean; privateApiName?: boolean; scope?: boolean; prefix?: boolean; entityTableId?: boolean; +}; +export type DbPoolConfigSelect = { + id?: boolean; + presetSlug?: boolean; + domain?: boolean; + poolOwnerId?: boolean; + min?: boolean; + max?: boolean; + warmTtl?: boolean; + enabled?: boolean; + createdAt?: boolean; + updatedAt?: boolean; +}; +export type RealtimeModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + privateSchemaId?: boolean; + subscriptionsSchemaId?: boolean; + changeLogTableId?: boolean; + listenerNodeTableId?: boolean; + sourceRegistryTableId?: boolean; + retentionHours?: boolean; + premake?: boolean; + interval?: boolean; + notifyChannel?: boolean; + apiName?: boolean; + privateApiName?: boolean; +}; +export type InfraSecretsModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + privateSchemaId?: boolean; + publicSchemaName?: boolean; + privateSchemaName?: boolean; + secretsTableId?: boolean; + secretsTableName?: boolean; + apiName?: boolean; + privateApiName?: boolean; + scope?: boolean; + prefix?: boolean; + entityTableId?: boolean; + entityField?: boolean; policies?: boolean; provisions?: boolean; - hasConfig?: boolean; }; -export type GraphModuleSelect = { +export type InternalSecretsModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + privateSchemaId?: boolean; + publicSchemaName?: boolean; + privateSchemaName?: boolean; + internalSecretsTableId?: boolean; + internalSecretsTableName?: boolean; + apiName?: boolean; + privateApiName?: boolean; + scope?: boolean; + prefix?: boolean; + entityTableId?: boolean; + entityField?: boolean; + policies?: boolean; + provisions?: boolean; +}; +export type DbPresetModuleSelect = { id?: boolean; databaseId?: boolean; publicSchemaId?: boolean; @@ -2367,41 +2565,39 @@ export type GraphModuleSelect = { scope?: boolean; prefix?: boolean; merkleStoreModuleId?: boolean; - graphsTableId?: boolean; + dbPresetsTableId?: boolean; + storeName?: boolean; apiName?: boolean; privateApiName?: boolean; entityTableId?: boolean; policies?: boolean; provisions?: boolean; - defaultPermissions?: boolean; createdAt?: boolean; merkleStoreModule?: { select: MerkleStoreModuleSelect; }; }; -export type MerkleStoreModuleSelect = { +export type GraphModuleSelect = { id?: boolean; databaseId?: boolean; - schemaId?: boolean; + entityField?: boolean; + publicSchemaId?: boolean; privateSchemaId?: boolean; publicSchemaName?: boolean; privateSchemaName?: boolean; - objectTableId?: boolean; - storeTableId?: boolean; - commitTableId?: boolean; - refTableId?: boolean; + scope?: boolean; prefix?: boolean; + merkleStoreModuleId?: boolean; + graphsTableId?: boolean; apiName?: boolean; privateApiName?: boolean; - scope?: boolean; - functionPrefix?: boolean; - permissionKey?: boolean; + entityTableId?: boolean; + policies?: boolean; + provisions?: boolean; + defaultPermissions?: boolean; createdAt?: boolean; - graphModules?: { - select: GraphModuleSelect; - first?: number; - filter?: GraphModuleFilter; - orderBy?: GraphModuleOrderBy[]; + merkleStoreModule?: { + select: MerkleStoreModuleSelect; }; }; export type RateLimitMetersModuleSelect = { @@ -2423,21 +2619,23 @@ export type RateLimitMetersModuleSelect = { apiName?: boolean; privateApiName?: boolean; }; -export type RealtimeModuleSelect = { +export type InfraConfigModuleSelect = { id?: boolean; databaseId?: boolean; + entityField?: boolean; schemaId?: boolean; privateSchemaId?: boolean; - subscriptionsSchemaId?: boolean; - changeLogTableId?: boolean; - listenerNodeTableId?: boolean; - sourceRegistryTableId?: boolean; - retentionHours?: boolean; - premake?: boolean; - interval?: boolean; - notifyChannel?: boolean; + publicSchemaName?: boolean; + privateSchemaName?: boolean; + configTableId?: boolean; + configTableName?: boolean; apiName?: boolean; privateApiName?: boolean; + scope?: boolean; + prefix?: boolean; + entityTableId?: boolean; + policies?: boolean; + provisions?: boolean; }; export type WebauthnAuthModuleSelect = { id?: boolean; @@ -2457,37 +2655,51 @@ export type WebauthnAuthModuleSelect = { residentKey?: boolean; challengeExpiry?: boolean; }; -export type FunctionInvocationModuleSelect = { +export type PrincipalAuthModuleSelect = { id?: boolean; databaseId?: boolean; schemaId?: boolean; - privateSchemaId?: boolean; - publicSchemaName?: boolean; - privateSchemaName?: boolean; - invocationsTableId?: boolean; - executionLogsTableId?: boolean; - invocationsTableName?: boolean; - executionLogsTableName?: boolean; - apiName?: boolean; - privateApiName?: boolean; - scope?: boolean; - prefix?: boolean; - entityTableId?: boolean; - policies?: boolean; - provisions?: boolean; - defaultPermissions?: boolean; + principalsTableId?: boolean; + principalEntitiesTableId?: boolean; + principalScopeOverridesTableId?: boolean; + usersTableId?: boolean; + sessionsTableId?: boolean; + sessionCredentialsTableId?: boolean; + auditsTableId?: boolean; + principalsTableName?: boolean; + createPrincipalFunction?: boolean; + deletePrincipalFunction?: boolean; + createOrgPrincipalFunction?: boolean; + deleteOrgPrincipalFunction?: boolean; + createOrgApiKeyFunction?: boolean; + revokeOrgApiKeyFunction?: boolean; + apiName?: boolean; +}; +export type DbPoolSelect = { + id?: boolean; + presetSlug?: boolean; + presetCommitId?: boolean; + databaseId?: boolean; + status?: boolean; + errorMessage?: boolean; + expiresAt?: boolean; + claimedBy?: boolean; + claimedAt?: boolean; + bootstrapStatus?: boolean; + bootstrapError?: boolean; + createdAt?: boolean; + updatedAt?: boolean; }; export type FunctionModuleSelect = { id?: boolean; databaseId?: boolean; + entityField?: boolean; schemaId?: boolean; privateSchemaId?: boolean; publicSchemaName?: boolean; privateSchemaName?: boolean; definitionsTableId?: boolean; - secretDefinitionsTableId?: boolean; definitionsTableName?: boolean; - secretDefinitionsTableName?: boolean; apiName?: boolean; privateApiName?: boolean; scope?: boolean; @@ -2497,91 +2709,104 @@ export type FunctionModuleSelect = { provisions?: boolean; defaultPermissions?: boolean; }; -export type InvitesModuleSelect = { +export type MerkleStoreModuleSelect = { id?: boolean; databaseId?: boolean; + entityField?: boolean; schemaId?: boolean; privateSchemaId?: boolean; publicSchemaName?: boolean; privateSchemaName?: boolean; - emailsTableId?: boolean; - usersTableId?: boolean; - invitesTableId?: boolean; - claimedInvitesTableId?: boolean; - invitesTableName?: boolean; - claimedInvitesTableName?: boolean; - submitInviteCodeFunction?: boolean; - scope?: boolean; + objectTableId?: boolean; + storeTableId?: boolean; + commitTableId?: boolean; + refTableId?: boolean; prefix?: boolean; - entityTableId?: boolean; apiName?: boolean; privateApiName?: boolean; + scope?: boolean; + functionPrefix?: boolean; + permissionKey?: boolean; + createdAt?: boolean; + graphModules?: { + select: GraphModuleSelect; + first?: number; + filter?: GraphModuleFilter; + orderBy?: GraphModuleOrderBy[]; + }; + dbPresetModules?: { + select: DbPresetModuleSelect; + first?: number; + filter?: DbPresetModuleFilter; + orderBy?: DbPresetModuleOrderBy[]; + }; }; -export type PrincipalAuthModuleSelect = { +export type DatabaseProvisionModuleSelect = { id?: boolean; + databaseName?: boolean; + ownerId?: boolean; + subdomain?: boolean; + domain?: boolean; + modules?: boolean; + options?: boolean; + bootstrapUser?: boolean; + status?: boolean; + errorMessage?: boolean; + sourceDatabaseId?: boolean; + bootstrapStatus?: boolean; + bootstrapError?: boolean; databaseId?: boolean; - schemaId?: boolean; - principalsTableId?: boolean; - principalEntitiesTableId?: boolean; - principalScopeOverridesTableId?: boolean; - usersTableId?: boolean; - sessionsTableId?: boolean; - sessionCredentialsTableId?: boolean; - auditsTableId?: boolean; - principalsTableName?: boolean; - createPrincipalFunction?: boolean; - deletePrincipalFunction?: boolean; - createOrgPrincipalFunction?: boolean; - deleteOrgPrincipalFunction?: boolean; - createOrgApiKeyFunction?: boolean; - revokeOrgApiKeyFunction?: boolean; - apiName?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + completedAt?: boolean; + fulfilledAt?: boolean; }; -export type ComputeLogModuleSelect = { +export type FunctionInvocationModuleSelect = { id?: boolean; databaseId?: boolean; + entityField?: boolean; schemaId?: boolean; privateSchemaId?: boolean; publicSchemaName?: boolean; privateSchemaName?: boolean; - computeLogTableId?: boolean; - computeLogTableName?: boolean; - usageDailyTableId?: boolean; - usageDailyTableName?: boolean; - interval?: boolean; - retention?: boolean; - premake?: boolean; - scope?: boolean; - actorFkTableId?: boolean; - entityFkTableId?: boolean; - prefix?: boolean; + invocationsTableId?: boolean; + executionLogsTableId?: boolean; + invocationsTableName?: boolean; + executionLogsTableName?: boolean; apiName?: boolean; privateApiName?: boolean; + scope?: boolean; + prefix?: boolean; + entityTableId?: boolean; + policies?: boolean; + provisions?: boolean; + defaultPermissions?: boolean; }; -export type InferenceLogModuleSelect = { +export type InvitesModuleSelect = { id?: boolean; databaseId?: boolean; + entityField?: boolean; schemaId?: boolean; privateSchemaId?: boolean; publicSchemaName?: boolean; privateSchemaName?: boolean; - inferenceLogTableId?: boolean; - inferenceLogTableName?: boolean; - usageDailyTableId?: boolean; - usageDailyTableName?: boolean; - interval?: boolean; - retention?: boolean; - premake?: boolean; + emailsTableId?: boolean; + usersTableId?: boolean; + invitesTableId?: boolean; + claimedInvitesTableId?: boolean; + invitesTableName?: boolean; + claimedInvitesTableName?: boolean; + submitInviteCodeFunction?: boolean; scope?: boolean; - actorFkTableId?: boolean; - entityFkTableId?: boolean; prefix?: boolean; + entityTableId?: boolean; apiName?: boolean; privateApiName?: boolean; }; export type NamespaceModuleSelect = { id?: boolean; databaseId?: boolean; + entityField?: boolean; schemaId?: boolean; privateSchemaId?: boolean; publicSchemaName?: boolean; @@ -2595,44 +2820,43 @@ export type NamespaceModuleSelect = { scope?: boolean; prefix?: boolean; entityTableId?: boolean; - platformNamespacesTableId?: boolean; policies?: boolean; provisions?: boolean; defaultPermissions?: boolean; }; -export type ResourceModuleSelect = { +export type PlansModuleSelect = { id?: boolean; databaseId?: boolean; schemaId?: boolean; privateSchemaId?: boolean; publicSchemaName?: boolean; privateSchemaName?: boolean; - resourcesTableId?: boolean; - resourceEventsTableId?: boolean; - resourcesTableName?: boolean; - resourceEventsTableName?: boolean; + plansTableId?: boolean; + plansTableName?: boolean; + planLimitsTableId?: boolean; + planLimitsTableName?: boolean; + planPricingTableId?: boolean; + planOverridesTableId?: boolean; + planMeterLimitsTableId?: boolean; + planCapsTableId?: boolean; + applyPlanFunction?: boolean; + applyPlanAggregateFunction?: boolean; + applyBillingPlanFunction?: boolean; + applyPlanCapsFunction?: boolean; + prefix?: boolean; apiName?: boolean; privateApiName?: boolean; - scope?: boolean; - prefix?: boolean; - entityTableId?: boolean; - namespaceModuleId?: boolean; - policies?: boolean; - provisions?: boolean; - defaultPermissions?: boolean; - namespaceModule?: { - select: NamespaceModuleSelect; - }; }; -export type StorageLogModuleSelect = { +export type ComputeLogModuleSelect = { id?: boolean; databaseId?: boolean; + entityField?: boolean; schemaId?: boolean; privateSchemaId?: boolean; publicSchemaName?: boolean; privateSchemaName?: boolean; - storageLogTableId?: boolean; - storageLogTableName?: boolean; + computeLogTableId?: boolean; + computeLogTableName?: boolean; usageDailyTableId?: boolean; usageDailyTableName?: boolean; interval?: boolean; @@ -2645,15 +2869,16 @@ export type StorageLogModuleSelect = { apiName?: boolean; privateApiName?: boolean; }; -export type TransferLogModuleSelect = { +export type InferenceLogModuleSelect = { id?: boolean; databaseId?: boolean; + entityField?: boolean; schemaId?: boolean; privateSchemaId?: boolean; publicSchemaName?: boolean; privateSchemaName?: boolean; - transferLogTableId?: boolean; - transferLogTableName?: boolean; + inferenceLogTableId?: boolean; + inferenceLogTableName?: boolean; usageDailyTableId?: boolean; usageDailyTableName?: boolean; interval?: boolean; @@ -2666,53 +2891,46 @@ export type TransferLogModuleSelect = { apiName?: boolean; privateApiName?: boolean; }; -export type FunctionDeploymentModuleSelect = { +export type StorageLogModuleSelect = { id?: boolean; databaseId?: boolean; + entityField?: boolean; schemaId?: boolean; privateSchemaId?: boolean; publicSchemaName?: boolean; privateSchemaName?: boolean; - deploymentsTableId?: boolean; - deploymentEventsTableId?: boolean; - deploymentsTableName?: boolean; - deploymentEventsTableName?: boolean; - apiName?: boolean; - privateApiName?: boolean; + storageLogTableId?: boolean; + storageLogTableName?: boolean; + usageDailyTableId?: boolean; + usageDailyTableName?: boolean; + interval?: boolean; + retention?: boolean; + premake?: boolean; scope?: boolean; + actorFkTableId?: boolean; + entityFkTableId?: boolean; prefix?: boolean; - entityTableId?: boolean; - functionModuleId?: boolean; - namespaceModuleId?: boolean; - policies?: boolean; - provisions?: boolean; - defaultPermissions?: boolean; - functionModule?: { - select: FunctionModuleSelect; - }; - namespaceModule?: { - select: NamespaceModuleSelect; - }; + apiName?: boolean; + privateApiName?: boolean; }; -export type PlansModuleSelect = { +export type TransferLogModuleSelect = { id?: boolean; databaseId?: boolean; + entityField?: boolean; schemaId?: boolean; privateSchemaId?: boolean; publicSchemaName?: boolean; privateSchemaName?: boolean; - plansTableId?: boolean; - plansTableName?: boolean; - planLimitsTableId?: boolean; - planLimitsTableName?: boolean; - planPricingTableId?: boolean; - planOverridesTableId?: boolean; - planMeterLimitsTableId?: boolean; - planCapsTableId?: boolean; - applyPlanFunction?: boolean; - applyPlanAggregateFunction?: boolean; - applyBillingPlanFunction?: boolean; - applyPlanCapsFunction?: boolean; + transferLogTableId?: boolean; + transferLogTableName?: boolean; + usageDailyTableId?: boolean; + usageDailyTableName?: boolean; + interval?: boolean; + retention?: boolean; + premake?: boolean; + scope?: boolean; + actorFkTableId?: boolean; + entityFkTableId?: boolean; prefix?: boolean; apiName?: boolean; privateApiName?: boolean; @@ -2741,42 +2959,72 @@ export type BillingProviderModuleSelect = { apiName?: boolean; privateApiName?: boolean; }; -export type DbUsageModuleSelect = { +export type FunctionDeploymentModuleSelect = { id?: boolean; databaseId?: boolean; + entityField?: boolean; schemaId?: boolean; privateSchemaId?: boolean; publicSchemaName?: boolean; privateSchemaName?: boolean; - tableStatsLogTableId?: boolean; - tableStatsLogTableName?: boolean; - tableStatsDailyTableId?: boolean; - tableStatsDailyTableName?: boolean; - queryStatsLogTableId?: boolean; - queryStatsLogTableName?: boolean; - queryStatsDailyTableId?: boolean; - queryStatsDailyTableName?: boolean; - interval?: boolean; - retention?: boolean; - premake?: boolean; + deploymentsTableId?: boolean; + deploymentEventsTableId?: boolean; + deploymentsTableName?: boolean; + deploymentEventsTableName?: boolean; + apiName?: boolean; + privateApiName?: boolean; scope?: boolean; prefix?: boolean; + entityTableId?: boolean; + functionModuleId?: boolean; + namespaceModuleId?: boolean; + policies?: boolean; + provisions?: boolean; defaultPermissions?: boolean; - apiName?: boolean; - privateApiName?: boolean; + functionModule?: { + select: FunctionModuleSelect; + }; + namespaceModule?: { + select: NamespaceModuleSelect; + }; }; -export type GraphExecutionModuleSelect = { +export type PermissionsModuleSelect = { id?: boolean; databaseId?: boolean; + entityField?: boolean; schemaId?: boolean; privateSchemaId?: boolean; publicSchemaName?: boolean; privateSchemaName?: boolean; - graphModuleId?: boolean; - scope?: boolean; - prefix?: boolean; - executionsTableId?: boolean; - outputsTableId?: boolean; + tableId?: boolean; + tableName?: boolean; + defaultTableId?: boolean; + defaultTableName?: boolean; + bitlen?: boolean; + scope?: boolean; + prefix?: boolean; + entityTableId?: boolean; + actorTableId?: boolean; + getPaddedMask?: boolean; + getMask?: boolean; + getByMask?: boolean; + getMaskByName?: boolean; + apiName?: boolean; + privateApiName?: boolean; +}; +export type GraphExecutionModuleSelect = { + id?: boolean; + databaseId?: boolean; + entityField?: boolean; + schemaId?: boolean; + privateSchemaId?: boolean; + publicSchemaName?: boolean; + privateSchemaName?: boolean; + graphModuleId?: boolean; + scope?: boolean; + prefix?: boolean; + executionsTableId?: boolean; + outputsTableId?: boolean; nodeStatesTableId?: boolean; executionsTableName?: boolean; outputsTableName?: boolean; @@ -2795,6 +3043,7 @@ export type GraphExecutionModuleSelect = { export type HierarchyModuleSelect = { id?: boolean; databaseId?: boolean; + entityField?: boolean; schemaId?: boolean; privateSchemaId?: boolean; chartEdgesTableId?: boolean; @@ -2816,32 +3065,10 @@ export type HierarchyModuleSelect = { defaultPermissions?: boolean; createdAt?: boolean; }; -export type PermissionsModuleSelect = { - id?: boolean; - databaseId?: boolean; - schemaId?: boolean; - privateSchemaId?: boolean; - publicSchemaName?: boolean; - privateSchemaName?: boolean; - tableId?: boolean; - tableName?: boolean; - defaultTableId?: boolean; - defaultTableName?: boolean; - bitlen?: boolean; - scope?: boolean; - prefix?: boolean; - entityTableId?: boolean; - actorTableId?: boolean; - getPaddedMask?: boolean; - getMask?: boolean; - getByMask?: boolean; - getMaskByName?: boolean; - apiName?: boolean; - privateApiName?: boolean; -}; export type NotificationsModuleSelect = { id?: boolean; databaseId?: boolean; + entityField?: boolean; schemaId?: boolean; privateSchemaId?: boolean; publicSchemaName?: boolean; @@ -2864,9 +3091,36 @@ export type NotificationsModuleSelect = { apiName?: boolean; privateApiName?: boolean; }; +export type RelationProvisionSelect = { + id?: boolean; + databaseId?: boolean; + relationType?: boolean; + sourceTableId?: boolean; + targetTableId?: boolean; + fieldName?: boolean; + deleteAction?: boolean; + isRequired?: boolean; + apiRequired?: boolean; + junctionTableId?: boolean; + junctionTableName?: boolean; + junctionSchemaId?: boolean; + sourceFieldName?: boolean; + targetFieldName?: boolean; + useCompositeKey?: boolean; + createIndex?: boolean; + exposeInApi?: boolean; + nodes?: boolean; + grants?: boolean; + policies?: boolean; + outFieldId?: boolean; + outJunctionTableId?: boolean; + outSourceFieldId?: boolean; + outTargetFieldId?: boolean; +}; export type ProfilesModuleSelect = { id?: boolean; databaseId?: boolean; + entityField?: boolean; schemaId?: boolean; privateSchemaId?: boolean; publicSchemaName?: boolean; @@ -2912,36 +3166,43 @@ export type BillingModuleSelect = { meterDefaultsTableId?: boolean; meterDefaultsTableName?: boolean; recordUsageFunction?: boolean; + sweepExpiredSubscriptionsFunction?: boolean; + rollupUsageSummaryFunction?: boolean; prefix?: boolean; defaultPermissions?: boolean; apiName?: boolean; privateApiName?: boolean; }; -export type RelationProvisionSelect = { +export type ResourceModuleSelect = { id?: boolean; databaseId?: boolean; - relationType?: boolean; - sourceTableId?: boolean; - targetTableId?: boolean; - fieldName?: boolean; - deleteAction?: boolean; - isRequired?: boolean; - apiRequired?: boolean; - junctionTableId?: boolean; - junctionTableName?: boolean; - junctionSchemaId?: boolean; - sourceFieldName?: boolean; - targetFieldName?: boolean; - useCompositeKey?: boolean; - createIndex?: boolean; - exposeInApi?: boolean; - nodes?: boolean; - grants?: boolean; + entityField?: boolean; + schemaId?: boolean; + privateSchemaId?: boolean; + publicSchemaName?: boolean; + privateSchemaName?: boolean; + resourcesTableId?: boolean; + resourceEventsTableId?: boolean; + resourceStatusChecksTableId?: boolean; + resourceDefinitionsTableId?: boolean; + resourcesTableName?: boolean; + resourceEventsTableName?: boolean; + resourceStatusChecksTableName?: boolean; + resourceDefinitionsTableName?: boolean; + resolvedRequirementsViewName?: boolean; + requirementsStateViewName?: boolean; + apiName?: boolean; + privateApiName?: boolean; + scope?: boolean; + prefix?: boolean; + entityTableId?: boolean; + namespaceModuleId?: boolean; policies?: boolean; - outFieldId?: boolean; - outJunctionTableId?: boolean; - outSourceFieldId?: boolean; - outTargetFieldId?: boolean; + provisions?: boolean; + defaultPermissions?: boolean; + namespaceModule?: { + select: NamespaceModuleSelect; + }; }; export type UserAuthModuleSelect = { id?: boolean; @@ -2973,9 +3234,39 @@ export type UserAuthModuleSelect = { apiName?: boolean; privateApiName?: boolean; }; +export type DbUsageModuleSelect = { + id?: boolean; + databaseId?: boolean; + entityField?: boolean; + schemaId?: boolean; + privateSchemaId?: boolean; + publicSchemaName?: boolean; + privateSchemaName?: boolean; + tableStatsLogTableId?: boolean; + tableStatsLogTableName?: boolean; + tableStatsDailyTableId?: boolean; + tableStatsDailyTableName?: boolean; + queryStatsLogTableId?: boolean; + queryStatsLogTableName?: boolean; + queryStatsDailyTableId?: boolean; + queryStatsDailyTableName?: boolean; + collectDbTableStatsFunction?: boolean; + collectDbQueryStatsFunction?: boolean; + rollupDbTableStatsDailyFunction?: boolean; + rollupDbQueryStatsDailyFunction?: boolean; + interval?: boolean; + retention?: boolean; + premake?: boolean; + scope?: boolean; + prefix?: boolean; + defaultPermissions?: boolean; + apiName?: boolean; + privateApiName?: boolean; +}; export type AgentModuleSelect = { id?: boolean; databaseId?: boolean; + entityField?: boolean; schemaId?: boolean; privateSchemaId?: boolean; publicSchemaName?: boolean; @@ -3013,6 +3304,7 @@ export type AgentModuleSelect = { export type LimitsModuleSelect = { id?: boolean; databaseId?: boolean; + entityField?: boolean; schemaId?: boolean; privateSchemaId?: boolean; publicSchemaName?: boolean; @@ -3048,49 +3340,6 @@ export type LimitsModuleSelect = { apiName?: boolean; privateApiName?: boolean; }; -export type MembershipsModuleSelect = { - id?: boolean; - databaseId?: boolean; - schemaId?: boolean; - privateSchemaId?: boolean; - publicSchemaName?: boolean; - privateSchemaName?: boolean; - membershipsTableId?: boolean; - membershipsTableName?: boolean; - membersTableId?: boolean; - membersTableName?: boolean; - membershipDefaultsTableId?: boolean; - membershipDefaultsTableName?: boolean; - membershipSettingsTableId?: boolean; - membershipSettingsTableName?: boolean; - grantsTableId?: boolean; - grantsTableName?: boolean; - actorTableId?: boolean; - limitsTableId?: boolean; - defaultLimitsTableId?: boolean; - permissionsTableId?: boolean; - defaultPermissionsTableId?: boolean; - sprtTableId?: boolean; - adminGrantsTableId?: boolean; - adminGrantsTableName?: boolean; - ownerGrantsTableId?: boolean; - ownerGrantsTableName?: boolean; - scope?: boolean; - prefix?: boolean; - entityTableId?: boolean; - entityTableOwnerId?: boolean; - getOrgFn?: boolean; - actorMaskCheck?: boolean; - actorPermCheck?: boolean; - entityIdsByMask?: boolean; - entityIdsByPerm?: boolean; - entityIdsFunction?: boolean; - memberProfilesTableId?: boolean; - permissionDefaultPermissionsTableId?: boolean; - permissionDefaultGrantsTableId?: boolean; - apiName?: boolean; - privateApiName?: boolean; -}; export type EntityTypeProvisionSelect = { id?: boolean; databaseId?: boolean; @@ -3128,7 +3377,6 @@ export type EntityTypeProvisionSelect = { outDefinitionsTableId?: boolean; outInvocationsTableId?: boolean; outExecutionLogsTableId?: boolean; - outSecretDefinitionsTableId?: boolean; outGraphModuleId?: boolean; outGraphsTableId?: boolean; outAgentModuleId?: boolean; @@ -3149,6 +3397,7 @@ export type StorageModuleSelect = { policies?: boolean; provisions?: boolean; entityTableId?: boolean; + entityField?: boolean; endpoint?: boolean; publicUrlPrefix?: boolean; provider?: boolean; @@ -3174,9 +3423,54 @@ export type StorageModuleSelect = { apiName?: boolean; privateApiName?: boolean; }; +export type MembershipsModuleSelect = { + id?: boolean; + databaseId?: boolean; + entityField?: boolean; + schemaId?: boolean; + privateSchemaId?: boolean; + publicSchemaName?: boolean; + privateSchemaName?: boolean; + membershipsTableId?: boolean; + membershipsTableName?: boolean; + membersTableId?: boolean; + membersTableName?: boolean; + membershipDefaultsTableId?: boolean; + membershipDefaultsTableName?: boolean; + membershipSettingsTableId?: boolean; + membershipSettingsTableName?: boolean; + grantsTableId?: boolean; + grantsTableName?: boolean; + actorTableId?: boolean; + limitsTableId?: boolean; + defaultLimitsTableId?: boolean; + permissionsTableId?: boolean; + defaultPermissionsTableId?: boolean; + sprtTableId?: boolean; + adminGrantsTableId?: boolean; + adminGrantsTableName?: boolean; + ownerGrantsTableId?: boolean; + ownerGrantsTableName?: boolean; + scope?: boolean; + prefix?: boolean; + entityTableId?: boolean; + entityTableOwnerId?: boolean; + getOrgFn?: boolean; + actorMaskCheck?: boolean; + actorPermCheck?: boolean; + entityIdsByMask?: boolean; + entityIdsByPerm?: boolean; + entityIdsFunction?: boolean; + memberProfilesTableId?: boolean; + permissionDefaultPermissionsTableId?: boolean; + permissionDefaultGrantsTableId?: boolean; + apiName?: boolean; + privateApiName?: boolean; +}; export type EventsModuleSelect = { id?: boolean; databaseId?: boolean; + entityField?: boolean; schemaId?: boolean; privateSchemaId?: boolean; publicSchemaName?: boolean; @@ -3203,7 +3497,6 @@ export type EventsModuleSelect = { tgEventBool?: boolean; upsertAggregate?: boolean; tgUpdateAggregates?: boolean; - pruneEvents?: boolean; stepsRequired?: boolean; levelAchieved?: boolean; tgCheckAchievements?: boolean; @@ -3251,24 +3544,6 @@ export interface MembershipTypesModuleFilter { /** Negates the expression. */ not?: MembershipTypesModuleFilter; } -export interface UserStateModuleFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `schemaId` field. */ - schemaId?: UUIDFilter; - /** Filter by the object’s `tableId` field. */ - tableId?: UUIDFilter; - /** Filter by the object’s `tableName` field. */ - tableName?: StringFilter; - /** Checks for all expressions in this list. */ - and?: UserStateModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: UserStateModuleFilter[]; - /** Negates the expression. */ - not?: UserStateModuleFilter; -} export interface SessionSecretsModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; @@ -3289,29 +3564,7 @@ export interface SessionSecretsModuleFilter { /** Negates the expression. */ not?: SessionSecretsModuleFilter; } -export interface ConfigSecretsOrgModuleFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `schemaId` field. */ - schemaId?: UUIDFilter; - /** Filter by the object’s `tableId` field. */ - tableId?: UUIDFilter; - /** Filter by the object’s `tableName` field. */ - tableName?: StringFilter; - /** Filter by the object’s `apiName` field. */ - apiName?: StringFilter; - /** Filter by the object’s `privateApiName` field. */ - privateApiName?: StringFilter; - /** Checks for all expressions in this list. */ - and?: ConfigSecretsOrgModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: ConfigSecretsOrgModuleFilter[]; - /** Negates the expression. */ - not?: ConfigSecretsOrgModuleFilter; -} -export interface DevicesModuleFilter { +export interface DevicesModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ @@ -3355,7 +3608,7 @@ export interface I18NModuleFilter { /** Negates the expression. */ not?: I18NModuleFilter; } -export interface UserCredentialsModuleFilter { +export interface UserSettingsModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ @@ -3364,64 +3617,60 @@ export interface UserCredentialsModuleFilter { schemaId?: UUIDFilter; /** Filter by the object’s `tableId` field. */ tableId?: UUIDFilter; + /** Filter by the object’s `ownerTableId` field. */ + ownerTableId?: UUIDFilter; /** Filter by the object’s `tableName` field. */ tableName?: StringFilter; /** Filter by the object’s `apiName` field. */ apiName?: StringFilter; - /** Filter by the object’s `privateApiName` field. */ - privateApiName?: StringFilter; /** Checks for all expressions in this list. */ - and?: UserCredentialsModuleFilter[]; + and?: UserSettingsModuleFilter[]; /** Checks for any expressions in this list. */ - or?: UserCredentialsModuleFilter[]; + or?: UserSettingsModuleFilter[]; /** Negates the expression. */ - not?: UserCredentialsModuleFilter; + not?: UserSettingsModuleFilter; } -export interface UserSettingsModuleFilter { +export interface UserStateModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; + /** Filter by the object’s `entityField` field. */ + entityField?: StringFilter; /** Filter by the object’s `schemaId` field. */ schemaId?: UUIDFilter; /** Filter by the object’s `tableId` field. */ tableId?: UUIDFilter; - /** Filter by the object’s `ownerTableId` field. */ - ownerTableId?: UUIDFilter; /** Filter by the object’s `tableName` field. */ tableName?: StringFilter; - /** Filter by the object’s `apiName` field. */ - apiName?: StringFilter; /** Checks for all expressions in this list. */ - and?: UserSettingsModuleFilter[]; + and?: UserStateModuleFilter[]; /** Checks for any expressions in this list. */ - or?: UserSettingsModuleFilter[]; + or?: UserStateModuleFilter[]; /** Negates the expression. */ - not?: UserSettingsModuleFilter; + not?: UserStateModuleFilter; } -export interface ConfigSecretsUserModuleFilter { +export interface UserCredentialsModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; + /** Filter by the object’s `entityField` field. */ + entityField?: 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 `configDefinitionsTableId` field. */ - configDefinitionsTableId?: UUIDFilter; - /** Filter by the object’s `apiName` field. */ - apiName?: StringFilter; /** Filter by the object’s `privateApiName` field. */ privateApiName?: StringFilter; /** Checks for all expressions in this list. */ - and?: ConfigSecretsUserModuleFilter[]; + and?: UserCredentialsModuleFilter[]; /** Checks for any expressions in this list. */ - or?: ConfigSecretsUserModuleFilter[]; + or?: UserCredentialsModuleFilter[]; /** Negates the expression. */ - not?: ConfigSecretsUserModuleFilter; + not?: UserCredentialsModuleFilter; } export interface ConnectedAccountsModuleFilter { /** Filter by the object’s `id` field. */ @@ -3579,6 +3828,30 @@ export interface WebauthnCredentialsModuleFilter { /** Negates the expression. */ not?: WebauthnCredentialsModuleFilter; } +export interface ConfigSecretsUserModuleFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `entityField` field. */ + entityField?: 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 `apiName` field. */ + apiName?: StringFilter; + /** Filter by the object’s `privateApiName` field. */ + privateApiName?: StringFilter; + /** Checks for all expressions in this list. */ + and?: ConfigSecretsUserModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: ConfigSecretsUserModuleFilter[]; + /** Negates the expression. */ + not?: ConfigSecretsUserModuleFilter; +} export interface CryptoAddressesModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; @@ -3639,40 +3912,6 @@ export interface DenormalizedTableFieldFilter { /** Negates the expression. */ not?: DenormalizedTableFieldFilter; } -export interface IdentityProvidersModuleFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `schemaId` field. */ - schemaId?: UUIDFilter; - /** Filter by the object’s `privateSchemaId` field. */ - privateSchemaId?: UUIDFilter; - /** Filter by the object’s `publicSchemaName` field. */ - publicSchemaName?: StringFilter; - /** Filter by the object’s `privateSchemaName` field. */ - privateSchemaName?: StringFilter; - /** Filter by the object’s `tableId` field. */ - tableId?: UUIDFilter; - /** Filter by the object’s `tableName` field. */ - tableName?: StringFilter; - /** Filter by the object’s `apiName` field. */ - apiName?: StringFilter; - /** Filter by the object’s `privateApiName` field. */ - privateApiName?: StringFilter; - /** Filter by the object’s `scope` field. */ - scope?: StringFilter; - /** Filter by the object’s `prefix` field. */ - prefix?: StringFilter; - /** Filter by the object’s `entityTableId` field. */ - entityTableId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: IdentityProvidersModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: IdentityProvidersModuleFilter[]; - /** Negates the expression. */ - not?: IdentityProvidersModuleFilter; -} export interface RlsModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; @@ -3935,47 +4174,13 @@ export interface SecureTableProvisionFilter { /** Negates the expression. */ not?: SecureTableProvisionFilter; } -export interface DatabaseProvisionModuleFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseName` field. */ - databaseName?: StringFilter; - /** Filter by the object’s `ownerId` field. */ - ownerId?: UUIDFilter; - /** Filter by the object’s `subdomain` field. */ - subdomain?: StringFilter; - /** Filter by the object’s `domain` field. */ - domain?: StringFilter; - /** Filter by the object’s `modules` field. */ - modules?: JSONFilter; - /** Filter by the object’s `options` field. */ - options?: JSONFilter; - /** Filter by the object’s `bootstrapUser` field. */ - bootstrapUser?: BooleanFilter; - /** Filter by the object’s `status` field. */ - status?: StringFilter; - /** Filter by the object’s `errorMessage` field. */ - errorMessage?: StringFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `completedAt` field. */ - completedAt?: DatetimeFilter; - /** Checks for all expressions in this list. */ - and?: DatabaseProvisionModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: DatabaseProvisionModuleFilter[]; - /** Negates the expression. */ - not?: DatabaseProvisionModuleFilter; -} -export interface ConfigSecretsModuleFilter { +export interface IdentityProvidersModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; + /** Filter by the object’s `entityField` field. */ + entityField?: StringFilter; /** Filter by the object’s `schemaId` field. */ schemaId?: UUIDFilter; /** Filter by the object’s `privateSchemaId` field. */ @@ -3986,8 +4191,6 @@ export interface ConfigSecretsModuleFilter { privateSchemaName?: StringFilter; /** Filter by the object’s `tableId` field. */ tableId?: UUIDFilter; - /** Filter by the object’s `configDefinitionsTableId` field. */ - configDefinitionsTableId?: UUIDFilter; /** Filter by the object’s `tableName` field. */ tableName?: StringFilter; /** Filter by the object’s `apiName` field. */ @@ -4000,64 +4203,78 @@ export interface ConfigSecretsModuleFilter { prefix?: StringFilter; /** Filter by the object’s `entityTableId` field. */ entityTableId?: UUIDFilter; - /** Filter by the object’s `policies` field. */ - policies?: JSONFilter; - /** Filter by the object’s `provisions` field. */ - provisions?: JSONFilter; - /** Filter by the object’s `hasConfig` field. */ - hasConfig?: BooleanFilter; /** Checks for all expressions in this list. */ - and?: ConfigSecretsModuleFilter[]; + and?: IdentityProvidersModuleFilter[]; /** Checks for any expressions in this list. */ - or?: ConfigSecretsModuleFilter[]; + or?: IdentityProvidersModuleFilter[]; /** Negates the expression. */ - not?: ConfigSecretsModuleFilter; + not?: IdentityProvidersModuleFilter; } -export interface GraphModuleFilter { +export interface IntegrationProvidersModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `publicSchemaId` field. */ - publicSchemaId?: UUIDFilter; + /** Filter by the object’s `entityField` field. */ + entityField?: StringFilter; + /** Filter by the object’s `schemaId` field. */ + schemaId?: UUIDFilter; /** Filter by the object’s `privateSchemaId` field. */ privateSchemaId?: UUIDFilter; /** Filter by the object’s `publicSchemaName` field. */ publicSchemaName?: StringFilter; /** Filter by the object’s `privateSchemaName` field. */ privateSchemaName?: StringFilter; - /** Filter by the object’s `scope` field. */ - scope?: StringFilter; - /** Filter by the object’s `prefix` field. */ - prefix?: StringFilter; - /** Filter by the object’s `merkleStoreModuleId` field. */ - merkleStoreModuleId?: UUIDFilter; - /** Filter by the object’s `graphsTableId` field. */ - graphsTableId?: UUIDFilter; + /** Filter by the object’s `tableId` field. */ + tableId?: UUIDFilter; + /** Filter by the object’s `tableName` field. */ + tableName?: StringFilter; /** Filter by the object’s `apiName` field. */ apiName?: StringFilter; /** Filter by the object’s `privateApiName` field. */ privateApiName?: StringFilter; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; /** Filter by the object’s `entityTableId` field. */ entityTableId?: UUIDFilter; - /** Filter by the object’s `policies` field. */ - policies?: JSONFilter; - /** Filter by the object’s `provisions` field. */ - provisions?: JSONFilter; - /** Filter by the object’s `defaultPermissions` field. */ - defaultPermissions?: StringListFilter; + /** Checks for all expressions in this list. */ + and?: IntegrationProvidersModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: IntegrationProvidersModuleFilter[]; + /** Negates the expression. */ + not?: IntegrationProvidersModuleFilter; +} +export interface DbPoolConfigFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `presetSlug` field. */ + presetSlug?: StringFilter; + /** Filter by the object’s `domain` field. */ + domain?: StringFilter; + /** Filter by the object’s `poolOwnerId` field. */ + poolOwnerId?: UUIDFilter; + /** Filter by the object’s `min` field. */ + min?: IntFilter; + /** Filter by the object’s `max` field. */ + max?: IntFilter; + /** Filter by the object’s `warmTtl` field. */ + warmTtl?: IntervalFilter; + /** Filter by the object’s `enabled` field. */ + enabled?: BooleanFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; /** Checks for all expressions in this list. */ - and?: GraphModuleFilter[]; + and?: DbPoolConfigFilter[]; /** Checks for any expressions in this list. */ - or?: GraphModuleFilter[]; + or?: DbPoolConfigFilter[]; /** Negates the expression. */ - not?: GraphModuleFilter; - /** Filter by the object’s `merkleStoreModule` relation. */ - merkleStoreModule?: MerkleStoreModuleFilter; + not?: DbPoolConfigFilter; } -export interface MerkleStoreModuleFilter { +export interface RealtimeModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ @@ -4066,44 +4283,34 @@ export interface MerkleStoreModuleFilter { schemaId?: UUIDFilter; /** Filter by the object’s `privateSchemaId` field. */ privateSchemaId?: UUIDFilter; - /** Filter by the object’s `publicSchemaName` field. */ - publicSchemaName?: StringFilter; - /** Filter by the object’s `privateSchemaName` field. */ - privateSchemaName?: StringFilter; - /** Filter by the object’s `objectTableId` field. */ - objectTableId?: UUIDFilter; - /** Filter by the object’s `storeTableId` field. */ - storeTableId?: UUIDFilter; - /** Filter by the object’s `commitTableId` field. */ - commitTableId?: UUIDFilter; - /** Filter by the object’s `refTableId` field. */ - refTableId?: UUIDFilter; - /** Filter by the object’s `prefix` field. */ - prefix?: StringFilter; + /** Filter by the object’s `subscriptionsSchemaId` field. */ + subscriptionsSchemaId?: UUIDFilter; + /** Filter by the object’s `changeLogTableId` field. */ + changeLogTableId?: UUIDFilter; + /** Filter by the object’s `listenerNodeTableId` field. */ + listenerNodeTableId?: UUIDFilter; + /** Filter by the object’s `sourceRegistryTableId` field. */ + sourceRegistryTableId?: UUIDFilter; + /** Filter by the object’s `retentionHours` field. */ + retentionHours?: IntFilter; + /** Filter by the object’s `premake` field. */ + premake?: IntFilter; + /** Filter by the object’s `interval` field. */ + interval?: StringFilter; + /** Filter by the object’s `notifyChannel` field. */ + notifyChannel?: StringFilter; /** Filter by the object’s `apiName` field. */ apiName?: StringFilter; /** Filter by the object’s `privateApiName` field. */ privateApiName?: StringFilter; - /** Filter by the object’s `scope` field. */ - scope?: StringFilter; - /** Filter by the object’s `functionPrefix` field. */ - functionPrefix?: StringFilter; - /** Filter by the object’s `permissionKey` field. */ - permissionKey?: StringFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; /** Checks for all expressions in this list. */ - and?: MerkleStoreModuleFilter[]; + and?: RealtimeModuleFilter[]; /** Checks for any expressions in this list. */ - or?: MerkleStoreModuleFilter[]; + or?: RealtimeModuleFilter[]; /** Negates the expression. */ - not?: MerkleStoreModuleFilter; - /** Filter by the object’s `graphModules` relation. */ - graphModules?: MerkleStoreModuleToManyGraphModuleFilter; - /** `graphModules` exist. */ - graphModulesExist?: boolean; + not?: RealtimeModuleFilter; } -export interface RateLimitMetersModuleFilter { +export interface InfraSecretsModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ @@ -4116,36 +4323,34 @@ export interface RateLimitMetersModuleFilter { publicSchemaName?: StringFilter; /** Filter by the object’s `privateSchemaName` field. */ privateSchemaName?: StringFilter; - /** Filter by the object’s `rateLimitStateTableId` field. */ - rateLimitStateTableId?: UUIDFilter; - /** Filter by the object’s `rateLimitStateTableName` field. */ - rateLimitStateTableName?: StringFilter; - /** Filter by the object’s `rateLimitOverridesTableId` field. */ - rateLimitOverridesTableId?: UUIDFilter; - /** Filter by the object’s `rateLimitOverridesTableName` field. */ - rateLimitOverridesTableName?: StringFilter; - /** Filter by the object’s `rateWindowLimitsTableId` field. */ - rateWindowLimitsTableId?: UUIDFilter; - /** Filter by the object’s `rateWindowLimitsTableName` field. */ - rateWindowLimitsTableName?: StringFilter; - /** Filter by the object’s `checkRateLimitFunction` field. */ - checkRateLimitFunction?: StringFilter; - /** Filter by the object’s `prefix` field. */ - prefix?: StringFilter; - /** Filter by the object’s `defaultPermissions` field. */ - defaultPermissions?: StringListFilter; + /** Filter by the object’s `secretsTableId` field. */ + secretsTableId?: UUIDFilter; + /** Filter by the object’s `secretsTableName` field. */ + secretsTableName?: StringFilter; /** Filter by the object’s `apiName` field. */ apiName?: StringFilter; /** Filter by the object’s `privateApiName` field. */ privateApiName?: StringFilter; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Filter by the object’s `entityTableId` field. */ + entityTableId?: UUIDFilter; + /** Filter by the object’s `entityField` field. */ + entityField?: StringFilter; + /** Filter by the object’s `policies` field. */ + policies?: JSONFilter; + /** Filter by the object’s `provisions` field. */ + provisions?: JSONFilter; /** Checks for all expressions in this list. */ - and?: RateLimitMetersModuleFilter[]; + and?: InfraSecretsModuleFilter[]; /** Checks for any expressions in this list. */ - or?: RateLimitMetersModuleFilter[]; + or?: InfraSecretsModuleFilter[]; /** Negates the expression. */ - not?: RateLimitMetersModuleFilter; + not?: InfraSecretsModuleFilter; } -export interface RealtimeModuleFilter { +export interface InternalSecretsModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ @@ -4154,146 +4359,108 @@ export interface RealtimeModuleFilter { schemaId?: UUIDFilter; /** Filter by the object’s `privateSchemaId` field. */ privateSchemaId?: UUIDFilter; - /** Filter by the object’s `subscriptionsSchemaId` field. */ - subscriptionsSchemaId?: UUIDFilter; - /** Filter by the object’s `changeLogTableId` field. */ - changeLogTableId?: UUIDFilter; - /** Filter by the object’s `listenerNodeTableId` field. */ - listenerNodeTableId?: UUIDFilter; - /** Filter by the object’s `sourceRegistryTableId` field. */ - sourceRegistryTableId?: UUIDFilter; - /** Filter by the object’s `retentionHours` field. */ - retentionHours?: IntFilter; - /** Filter by the object’s `premake` field. */ - premake?: IntFilter; - /** Filter by the object’s `interval` field. */ - interval?: StringFilter; - /** Filter by the object’s `notifyChannel` field. */ - notifyChannel?: StringFilter; + /** Filter by the object’s `publicSchemaName` field. */ + publicSchemaName?: StringFilter; + /** Filter by the object’s `privateSchemaName` field. */ + privateSchemaName?: StringFilter; + /** Filter by the object’s `internalSecretsTableId` field. */ + internalSecretsTableId?: UUIDFilter; + /** Filter by the object’s `internalSecretsTableName` field. */ + internalSecretsTableName?: StringFilter; /** Filter by the object’s `apiName` field. */ apiName?: StringFilter; /** Filter by the object’s `privateApiName` field. */ privateApiName?: StringFilter; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Filter by the object’s `entityTableId` field. */ + entityTableId?: UUIDFilter; + /** Filter by the object’s `entityField` field. */ + entityField?: StringFilter; + /** Filter by the object’s `policies` field. */ + policies?: JSONFilter; + /** Filter by the object’s `provisions` field. */ + provisions?: JSONFilter; /** Checks for all expressions in this list. */ - and?: RealtimeModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: RealtimeModuleFilter[]; - /** Negates the expression. */ - not?: RealtimeModuleFilter; -} -export interface WebauthnAuthModuleFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `schemaId` field. */ - schemaId?: UUIDFilter; - /** Filter by the object’s `usersTableId` field. */ - usersTableId?: UUIDFilter; - /** Filter by the object’s `credentialsTableId` field. */ - credentialsTableId?: UUIDFilter; - /** Filter by the object’s `sessionsTableId` field. */ - sessionsTableId?: UUIDFilter; - /** Filter by the object’s `sessionCredentialsTableId` field. */ - sessionCredentialsTableId?: UUIDFilter; - /** Filter by the object’s `sessionSecretsTableId` field. */ - sessionSecretsTableId?: UUIDFilter; - /** Filter by the object’s `authSettingsTableId` field. */ - authSettingsTableId?: UUIDFilter; - /** Filter by the object’s `rpId` field. */ - rpId?: StringFilter; - /** Filter by the object’s `rpName` field. */ - rpName?: StringFilter; - /** Filter by the object’s `originAllowlist` field. */ - originAllowlist?: StringListFilter; - /** Filter by the object’s `attestationType` field. */ - attestationType?: StringFilter; - /** Filter by the object’s `requireUserVerification` field. */ - requireUserVerification?: BooleanFilter; - /** Filter by the object’s `residentKey` field. */ - residentKey?: StringFilter; - /** Filter by the object’s `challengeExpiry` field. */ - challengeExpiry?: IntervalFilter; - /** Checks for all expressions in this list. */ - and?: WebauthnAuthModuleFilter[]; + and?: InternalSecretsModuleFilter[]; /** Checks for any expressions in this list. */ - or?: WebauthnAuthModuleFilter[]; + or?: InternalSecretsModuleFilter[]; /** Negates the expression. */ - not?: WebauthnAuthModuleFilter; + not?: InternalSecretsModuleFilter; } -export interface FunctionInvocationModuleFilter { +export interface DbPresetModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `schemaId` field. */ - schemaId?: UUIDFilter; + /** Filter by the object’s `publicSchemaId` field. */ + publicSchemaId?: UUIDFilter; /** Filter by the object’s `privateSchemaId` field. */ privateSchemaId?: UUIDFilter; /** Filter by the object’s `publicSchemaName` field. */ publicSchemaName?: StringFilter; /** Filter by the object’s `privateSchemaName` field. */ privateSchemaName?: StringFilter; - /** Filter by the object’s `invocationsTableId` field. */ - invocationsTableId?: UUIDFilter; - /** Filter by the object’s `executionLogsTableId` field. */ - executionLogsTableId?: UUIDFilter; - /** Filter by the object’s `invocationsTableName` field. */ - invocationsTableName?: StringFilter; - /** Filter by the object’s `executionLogsTableName` field. */ - executionLogsTableName?: StringFilter; - /** Filter by the object’s `apiName` field. */ - apiName?: StringFilter; - /** Filter by the object’s `privateApiName` field. */ - privateApiName?: StringFilter; /** Filter by the object’s `scope` field. */ scope?: StringFilter; /** Filter by the object’s `prefix` field. */ prefix?: StringFilter; + /** Filter by the object’s `merkleStoreModuleId` field. */ + merkleStoreModuleId?: UUIDFilter; + /** Filter by the object’s `dbPresetsTableId` field. */ + dbPresetsTableId?: UUIDFilter; + /** Filter by the object’s `storeName` field. */ + storeName?: StringFilter; + /** Filter by the object’s `apiName` field. */ + apiName?: StringFilter; + /** Filter by the object’s `privateApiName` field. */ + privateApiName?: StringFilter; /** Filter by the object’s `entityTableId` field. */ entityTableId?: UUIDFilter; /** Filter by the object’s `policies` field. */ policies?: JSONFilter; /** Filter by the object’s `provisions` field. */ provisions?: JSONFilter; - /** Filter by the object’s `defaultPermissions` field. */ - defaultPermissions?: StringListFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; /** Checks for all expressions in this list. */ - and?: FunctionInvocationModuleFilter[]; + and?: DbPresetModuleFilter[]; /** Checks for any expressions in this list. */ - or?: FunctionInvocationModuleFilter[]; + or?: DbPresetModuleFilter[]; /** Negates the expression. */ - not?: FunctionInvocationModuleFilter; + not?: DbPresetModuleFilter; + /** Filter by the object’s `merkleStoreModule` relation. */ + merkleStoreModule?: MerkleStoreModuleFilter; } -export interface FunctionModuleFilter { +export interface GraphModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `schemaId` field. */ - schemaId?: UUIDFilter; + /** Filter by the object’s `entityField` field. */ + entityField?: StringFilter; + /** Filter by the object’s `publicSchemaId` field. */ + publicSchemaId?: UUIDFilter; /** Filter by the object’s `privateSchemaId` field. */ privateSchemaId?: UUIDFilter; /** Filter by the object’s `publicSchemaName` field. */ publicSchemaName?: StringFilter; /** Filter by the object’s `privateSchemaName` field. */ privateSchemaName?: StringFilter; - /** Filter by the object’s `definitionsTableId` field. */ - definitionsTableId?: UUIDFilter; - /** Filter by the object’s `secretDefinitionsTableId` field. */ - secretDefinitionsTableId?: UUIDFilter; - /** Filter by the object’s `definitionsTableName` field. */ - definitionsTableName?: StringFilter; - /** Filter by the object’s `secretDefinitionsTableName` field. */ - secretDefinitionsTableName?: StringFilter; - /** Filter by the object’s `apiName` field. */ - apiName?: StringFilter; - /** Filter by the object’s `privateApiName` field. */ - privateApiName?: StringFilter; /** Filter by the object’s `scope` field. */ scope?: StringFilter; /** Filter by the object’s `prefix` field. */ prefix?: StringFilter; + /** Filter by the object’s `merkleStoreModuleId` field. */ + merkleStoreModuleId?: UUIDFilter; + /** Filter by the object’s `graphsTableId` field. */ + graphsTableId?: UUIDFilter; + /** Filter by the object’s `apiName` field. */ + apiName?: StringFilter; + /** Filter by the object’s `privateApiName` field. */ + privateApiName?: StringFilter; /** Filter by the object’s `entityTableId` field. */ entityTableId?: UUIDFilter; /** Filter by the object’s `policies` field. */ @@ -4302,14 +4469,18 @@ export interface FunctionModuleFilter { provisions?: JSONFilter; /** Filter by the object’s `defaultPermissions` field. */ defaultPermissions?: StringListFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; /** Checks for all expressions in this list. */ - and?: FunctionModuleFilter[]; + and?: GraphModuleFilter[]; /** Checks for any expressions in this list. */ - or?: FunctionModuleFilter[]; + or?: GraphModuleFilter[]; /** Negates the expression. */ - not?: FunctionModuleFilter; + not?: GraphModuleFilter; + /** Filter by the object’s `merkleStoreModule` relation. */ + merkleStoreModule?: MerkleStoreModuleFilter; } -export interface InvitesModuleFilter { +export interface RateLimitMetersModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ @@ -4322,132 +4493,338 @@ export interface InvitesModuleFilter { publicSchemaName?: StringFilter; /** Filter by the object’s `privateSchemaName` field. */ privateSchemaName?: StringFilter; - /** Filter by the object’s `emailsTableId` field. */ - emailsTableId?: UUIDFilter; - /** Filter by the object’s `usersTableId` field. */ - usersTableId?: UUIDFilter; - /** Filter by the object’s `invitesTableId` field. */ - invitesTableId?: UUIDFilter; - /** Filter by the object’s `claimedInvitesTableId` field. */ - claimedInvitesTableId?: UUIDFilter; - /** Filter by the object’s `invitesTableName` field. */ - invitesTableName?: StringFilter; - /** Filter by the object’s `claimedInvitesTableName` field. */ - claimedInvitesTableName?: StringFilter; - /** Filter by the object’s `submitInviteCodeFunction` field. */ - submitInviteCodeFunction?: StringFilter; - /** Filter by the object’s `scope` field. */ - scope?: StringFilter; + /** Filter by the object’s `rateLimitStateTableId` field. */ + rateLimitStateTableId?: UUIDFilter; + /** Filter by the object’s `rateLimitStateTableName` field. */ + rateLimitStateTableName?: StringFilter; + /** Filter by the object’s `rateLimitOverridesTableId` field. */ + rateLimitOverridesTableId?: UUIDFilter; + /** Filter by the object’s `rateLimitOverridesTableName` field. */ + rateLimitOverridesTableName?: StringFilter; + /** Filter by the object’s `rateWindowLimitsTableId` field. */ + rateWindowLimitsTableId?: UUIDFilter; + /** Filter by the object’s `rateWindowLimitsTableName` field. */ + rateWindowLimitsTableName?: StringFilter; + /** Filter by the object’s `checkRateLimitFunction` field. */ + checkRateLimitFunction?: StringFilter; /** Filter by the object’s `prefix` field. */ prefix?: StringFilter; - /** Filter by the object’s `entityTableId` field. */ - entityTableId?: UUIDFilter; + /** Filter by the object’s `defaultPermissions` field. */ + defaultPermissions?: StringListFilter; /** Filter by the object’s `apiName` field. */ apiName?: StringFilter; /** Filter by the object’s `privateApiName` field. */ privateApiName?: StringFilter; /** Checks for all expressions in this list. */ - and?: InvitesModuleFilter[]; + and?: RateLimitMetersModuleFilter[]; /** Checks for any expressions in this list. */ - or?: InvitesModuleFilter[]; + or?: RateLimitMetersModuleFilter[]; /** Negates the expression. */ - not?: InvitesModuleFilter; + not?: RateLimitMetersModuleFilter; } -export interface PrincipalAuthModuleFilter { +export interface InfraConfigModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; + /** Filter by the object’s `entityField` field. */ + entityField?: StringFilter; /** Filter by the object’s `schemaId` field. */ schemaId?: UUIDFilter; - /** Filter by the object’s `principalsTableId` field. */ - principalsTableId?: UUIDFilter; - /** Filter by the object’s `principalEntitiesTableId` field. */ - principalEntitiesTableId?: UUIDFilter; - /** Filter by the object’s `principalScopeOverridesTableId` field. */ - principalScopeOverridesTableId?: UUIDFilter; - /** Filter by the object’s `usersTableId` field. */ - usersTableId?: UUIDFilter; - /** Filter by the object’s `sessionsTableId` field. */ - sessionsTableId?: UUIDFilter; - /** Filter by the object’s `sessionCredentialsTableId` field. */ - sessionCredentialsTableId?: UUIDFilter; - /** Filter by the object’s `auditsTableId` field. */ - auditsTableId?: UUIDFilter; - /** Filter by the object’s `principalsTableName` field. */ - principalsTableName?: StringFilter; - /** Filter by the object’s `createPrincipalFunction` field. */ - createPrincipalFunction?: StringFilter; - /** Filter by the object’s `deletePrincipalFunction` field. */ - deletePrincipalFunction?: StringFilter; - /** Filter by the object’s `createOrgPrincipalFunction` field. */ - createOrgPrincipalFunction?: StringFilter; - /** Filter by the object’s `deleteOrgPrincipalFunction` field. */ - deleteOrgPrincipalFunction?: StringFilter; - /** Filter by the object’s `createOrgApiKeyFunction` field. */ - createOrgApiKeyFunction?: StringFilter; - /** Filter by the object’s `revokeOrgApiKeyFunction` field. */ - revokeOrgApiKeyFunction?: StringFilter; + /** Filter by the object’s `privateSchemaId` field. */ + privateSchemaId?: UUIDFilter; + /** Filter by the object’s `publicSchemaName` field. */ + publicSchemaName?: StringFilter; + /** Filter by the object’s `privateSchemaName` field. */ + privateSchemaName?: StringFilter; + /** Filter by the object’s `configTableId` field. */ + configTableId?: UUIDFilter; + /** Filter by the object’s `configTableName` field. */ + configTableName?: StringFilter; /** Filter by the object’s `apiName` field. */ apiName?: StringFilter; + /** Filter by the object’s `privateApiName` field. */ + privateApiName?: StringFilter; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Filter by the object’s `entityTableId` field. */ + entityTableId?: UUIDFilter; + /** Filter by the object’s `policies` field. */ + policies?: JSONFilter; + /** Filter by the object’s `provisions` field. */ + provisions?: JSONFilter; /** Checks for all expressions in this list. */ - and?: PrincipalAuthModuleFilter[]; + and?: InfraConfigModuleFilter[]; /** Checks for any expressions in this list. */ - or?: PrincipalAuthModuleFilter[]; + or?: InfraConfigModuleFilter[]; /** Negates the expression. */ - not?: PrincipalAuthModuleFilter; + not?: InfraConfigModuleFilter; } -export interface ComputeLogModuleFilter { +export interface WebauthnAuthModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; /** Filter by the object’s `schemaId` field. */ schemaId?: UUIDFilter; - /** Filter by the object’s `privateSchemaId` field. */ - privateSchemaId?: UUIDFilter; - /** Filter by the object’s `publicSchemaName` field. */ - publicSchemaName?: StringFilter; - /** Filter by the object’s `privateSchemaName` field. */ - privateSchemaName?: StringFilter; - /** Filter by the object’s `computeLogTableId` field. */ - computeLogTableId?: UUIDFilter; - /** Filter by the object’s `computeLogTableName` field. */ - computeLogTableName?: StringFilter; - /** Filter by the object’s `usageDailyTableId` field. */ - usageDailyTableId?: UUIDFilter; - /** Filter by the object’s `usageDailyTableName` field. */ - usageDailyTableName?: StringFilter; - /** Filter by the object’s `interval` field. */ - interval?: StringFilter; - /** Filter by the object’s `retention` field. */ - retention?: StringFilter; - /** Filter by the object’s `premake` field. */ - premake?: IntFilter; + /** Filter by the object’s `usersTableId` field. */ + usersTableId?: UUIDFilter; + /** Filter by the object’s `credentialsTableId` field. */ + credentialsTableId?: UUIDFilter; + /** Filter by the object’s `sessionsTableId` field. */ + sessionsTableId?: UUIDFilter; + /** Filter by the object’s `sessionCredentialsTableId` field. */ + sessionCredentialsTableId?: UUIDFilter; + /** Filter by the object’s `sessionSecretsTableId` field. */ + sessionSecretsTableId?: UUIDFilter; + /** Filter by the object’s `authSettingsTableId` field. */ + authSettingsTableId?: UUIDFilter; + /** Filter by the object’s `rpId` field. */ + rpId?: StringFilter; + /** Filter by the object’s `rpName` field. */ + rpName?: StringFilter; + /** Filter by the object’s `originAllowlist` field. */ + originAllowlist?: StringListFilter; + /** Filter by the object’s `attestationType` field. */ + attestationType?: StringFilter; + /** Filter by the object’s `requireUserVerification` field. */ + requireUserVerification?: BooleanFilter; + /** Filter by the object’s `residentKey` field. */ + residentKey?: StringFilter; + /** Filter by the object’s `challengeExpiry` field. */ + challengeExpiry?: IntervalFilter; + /** Checks for all expressions in this list. */ + and?: WebauthnAuthModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: WebauthnAuthModuleFilter[]; + /** Negates the expression. */ + not?: WebauthnAuthModuleFilter; +} +export interface PrincipalAuthModuleFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `schemaId` field. */ + schemaId?: UUIDFilter; + /** Filter by the object’s `principalsTableId` field. */ + principalsTableId?: UUIDFilter; + /** Filter by the object’s `principalEntitiesTableId` field. */ + principalEntitiesTableId?: UUIDFilter; + /** Filter by the object’s `principalScopeOverridesTableId` field. */ + principalScopeOverridesTableId?: UUIDFilter; + /** Filter by the object’s `usersTableId` field. */ + usersTableId?: UUIDFilter; + /** Filter by the object’s `sessionsTableId` field. */ + sessionsTableId?: UUIDFilter; + /** Filter by the object’s `sessionCredentialsTableId` field. */ + sessionCredentialsTableId?: UUIDFilter; + /** Filter by the object’s `auditsTableId` field. */ + auditsTableId?: UUIDFilter; + /** Filter by the object’s `principalsTableName` field. */ + principalsTableName?: StringFilter; + /** Filter by the object’s `createPrincipalFunction` field. */ + createPrincipalFunction?: StringFilter; + /** Filter by the object’s `deletePrincipalFunction` field. */ + deletePrincipalFunction?: StringFilter; + /** Filter by the object’s `createOrgPrincipalFunction` field. */ + createOrgPrincipalFunction?: StringFilter; + /** Filter by the object’s `deleteOrgPrincipalFunction` field. */ + deleteOrgPrincipalFunction?: StringFilter; + /** Filter by the object’s `createOrgApiKeyFunction` field. */ + createOrgApiKeyFunction?: StringFilter; + /** Filter by the object’s `revokeOrgApiKeyFunction` field. */ + revokeOrgApiKeyFunction?: StringFilter; + /** Filter by the object’s `apiName` field. */ + apiName?: StringFilter; + /** Checks for all expressions in this list. */ + and?: PrincipalAuthModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: PrincipalAuthModuleFilter[]; + /** Negates the expression. */ + not?: PrincipalAuthModuleFilter; +} +export interface DbPoolFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `presetSlug` field. */ + presetSlug?: StringFilter; + /** Filter by the object’s `presetCommitId` field. */ + presetCommitId?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `errorMessage` field. */ + errorMessage?: StringFilter; + /** Filter by the object’s `expiresAt` field. */ + expiresAt?: DatetimeFilter; + /** Filter by the object’s `claimedBy` field. */ + claimedBy?: UUIDFilter; + /** Filter by the object’s `claimedAt` field. */ + claimedAt?: DatetimeFilter; + /** Filter by the object’s `bootstrapStatus` field. */ + bootstrapStatus?: StringFilter; + /** Filter by the object’s `bootstrapError` field. */ + bootstrapError?: StringFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Checks for all expressions in this list. */ + and?: DbPoolFilter[]; + /** Checks for any expressions in this list. */ + or?: DbPoolFilter[]; + /** Negates the expression. */ + not?: DbPoolFilter; +} +export interface FunctionModuleFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `entityField` field. */ + entityField?: StringFilter; + /** Filter by the object’s `schemaId` field. */ + schemaId?: UUIDFilter; + /** Filter by the object’s `privateSchemaId` field. */ + privateSchemaId?: UUIDFilter; + /** Filter by the object’s `publicSchemaName` field. */ + publicSchemaName?: StringFilter; + /** Filter by the object’s `privateSchemaName` field. */ + privateSchemaName?: StringFilter; + /** Filter by the object’s `definitionsTableId` field. */ + definitionsTableId?: UUIDFilter; + /** Filter by the object’s `definitionsTableName` field. */ + definitionsTableName?: StringFilter; + /** Filter by the object’s `apiName` field. */ + apiName?: StringFilter; + /** Filter by the object’s `privateApiName` field. */ + privateApiName?: StringFilter; /** Filter by the object’s `scope` field. */ scope?: StringFilter; - /** Filter by the object’s `actorFkTableId` field. */ - actorFkTableId?: UUIDFilter; - /** Filter by the object’s `entityFkTableId` field. */ - entityFkTableId?: UUIDFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Filter by the object’s `entityTableId` field. */ + entityTableId?: UUIDFilter; + /** Filter by the object’s `policies` field. */ + policies?: JSONFilter; + /** Filter by the object’s `provisions` field. */ + provisions?: JSONFilter; + /** Filter by the object’s `defaultPermissions` field. */ + defaultPermissions?: StringListFilter; + /** Checks for all expressions in this list. */ + and?: FunctionModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: FunctionModuleFilter[]; + /** Negates the expression. */ + not?: FunctionModuleFilter; +} +export interface MerkleStoreModuleFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `entityField` field. */ + entityField?: StringFilter; + /** Filter by the object’s `schemaId` field. */ + schemaId?: UUIDFilter; + /** Filter by the object’s `privateSchemaId` field. */ + privateSchemaId?: UUIDFilter; + /** Filter by the object’s `publicSchemaName` field. */ + publicSchemaName?: StringFilter; + /** Filter by the object’s `privateSchemaName` field. */ + privateSchemaName?: StringFilter; + /** Filter by the object’s `objectTableId` field. */ + objectTableId?: UUIDFilter; + /** Filter by the object’s `storeTableId` field. */ + storeTableId?: UUIDFilter; + /** Filter by the object’s `commitTableId` field. */ + commitTableId?: UUIDFilter; + /** Filter by the object’s `refTableId` field. */ + refTableId?: UUIDFilter; /** Filter by the object’s `prefix` field. */ prefix?: StringFilter; /** Filter by the object’s `apiName` field. */ apiName?: StringFilter; /** Filter by the object’s `privateApiName` field. */ privateApiName?: StringFilter; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; + /** Filter by the object’s `functionPrefix` field. */ + functionPrefix?: StringFilter; + /** Filter by the object’s `permissionKey` field. */ + permissionKey?: StringFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; /** Checks for all expressions in this list. */ - and?: ComputeLogModuleFilter[]; + and?: MerkleStoreModuleFilter[]; /** Checks for any expressions in this list. */ - or?: ComputeLogModuleFilter[]; + or?: MerkleStoreModuleFilter[]; /** Negates the expression. */ - not?: ComputeLogModuleFilter; + not?: MerkleStoreModuleFilter; + /** Filter by the object’s `graphModules` relation. */ + graphModules?: MerkleStoreModuleToManyGraphModuleFilter; + /** `graphModules` exist. */ + graphModulesExist?: boolean; + /** Filter by the object’s `dbPresetModules` relation. */ + dbPresetModules?: MerkleStoreModuleToManyDbPresetModuleFilter; + /** `dbPresetModules` exist. */ + dbPresetModulesExist?: boolean; } -export interface InferenceLogModuleFilter { +export interface DatabaseProvisionModuleFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseName` field. */ + databaseName?: StringFilter; + /** Filter by the object’s `ownerId` field. */ + ownerId?: UUIDFilter; + /** Filter by the object’s `subdomain` field. */ + subdomain?: StringFilter; + /** Filter by the object’s `domain` field. */ + domain?: StringFilter; + /** Filter by the object’s `modules` field. */ + modules?: JSONFilter; + /** Filter by the object’s `options` field. */ + options?: JSONFilter; + /** Filter by the object’s `bootstrapUser` field. */ + bootstrapUser?: BooleanFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `errorMessage` field. */ + errorMessage?: StringFilter; + /** Filter by the object’s `sourceDatabaseId` field. */ + sourceDatabaseId?: UUIDFilter; + /** Filter by the object’s `bootstrapStatus` field. */ + bootstrapStatus?: StringFilter; + /** Filter by the object’s `bootstrapError` field. */ + bootstrapError?: StringFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `completedAt` field. */ + completedAt?: DatetimeFilter; + /** Filter by the object’s `fulfilledAt` field. */ + fulfilledAt?: DatetimeFilter; + /** Checks for all expressions in this list. */ + and?: DatabaseProvisionModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: DatabaseProvisionModuleFilter[]; + /** Negates the expression. */ + not?: DatabaseProvisionModuleFilter; +} +export interface FunctionInvocationModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; + /** Filter by the object’s `entityField` field. */ + entityField?: StringFilter; /** Filter by the object’s `schemaId` field. */ schemaId?: UUIDFilter; /** Filter by the object’s `privateSchemaId` field. */ @@ -4456,44 +4833,90 @@ export interface InferenceLogModuleFilter { publicSchemaName?: StringFilter; /** Filter by the object’s `privateSchemaName` field. */ privateSchemaName?: StringFilter; - /** Filter by the object’s `inferenceLogTableId` field. */ - inferenceLogTableId?: UUIDFilter; - /** Filter by the object’s `inferenceLogTableName` field. */ - inferenceLogTableName?: StringFilter; - /** Filter by the object’s `usageDailyTableId` field. */ - usageDailyTableId?: UUIDFilter; - /** Filter by the object’s `usageDailyTableName` field. */ - usageDailyTableName?: StringFilter; - /** Filter by the object’s `interval` field. */ - interval?: StringFilter; - /** Filter by the object’s `retention` field. */ - retention?: StringFilter; - /** Filter by the object’s `premake` field. */ - premake?: IntFilter; + /** Filter by the object’s `invocationsTableId` field. */ + invocationsTableId?: UUIDFilter; + /** Filter by the object’s `executionLogsTableId` field. */ + executionLogsTableId?: UUIDFilter; + /** Filter by the object’s `invocationsTableName` field. */ + invocationsTableName?: StringFilter; + /** Filter by the object’s `executionLogsTableName` field. */ + executionLogsTableName?: StringFilter; + /** Filter by the object’s `apiName` field. */ + apiName?: StringFilter; + /** Filter by the object’s `privateApiName` field. */ + privateApiName?: StringFilter; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Filter by the object’s `entityTableId` field. */ + entityTableId?: UUIDFilter; + /** Filter by the object’s `policies` field. */ + policies?: JSONFilter; + /** Filter by the object’s `provisions` field. */ + provisions?: JSONFilter; + /** Filter by the object’s `defaultPermissions` field. */ + defaultPermissions?: StringListFilter; + /** Checks for all expressions in this list. */ + and?: FunctionInvocationModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: FunctionInvocationModuleFilter[]; + /** Negates the expression. */ + not?: FunctionInvocationModuleFilter; +} +export interface InvitesModuleFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `entityField` field. */ + entityField?: StringFilter; + /** Filter by the object’s `schemaId` field. */ + schemaId?: UUIDFilter; + /** Filter by the object’s `privateSchemaId` field. */ + privateSchemaId?: UUIDFilter; + /** Filter by the object’s `publicSchemaName` field. */ + publicSchemaName?: StringFilter; + /** Filter by the object’s `privateSchemaName` field. */ + privateSchemaName?: StringFilter; + /** Filter by the object’s `emailsTableId` field. */ + emailsTableId?: UUIDFilter; + /** Filter by the object’s `usersTableId` field. */ + usersTableId?: UUIDFilter; + /** Filter by the object’s `invitesTableId` field. */ + invitesTableId?: UUIDFilter; + /** Filter by the object’s `claimedInvitesTableId` field. */ + claimedInvitesTableId?: UUIDFilter; + /** Filter by the object’s `invitesTableName` field. */ + invitesTableName?: StringFilter; + /** Filter by the object’s `claimedInvitesTableName` field. */ + claimedInvitesTableName?: StringFilter; + /** Filter by the object’s `submitInviteCodeFunction` field. */ + submitInviteCodeFunction?: StringFilter; /** Filter by the object’s `scope` field. */ scope?: StringFilter; - /** Filter by the object’s `actorFkTableId` field. */ - actorFkTableId?: UUIDFilter; - /** Filter by the object’s `entityFkTableId` field. */ - entityFkTableId?: UUIDFilter; /** Filter by the object’s `prefix` field. */ prefix?: StringFilter; + /** Filter by the object’s `entityTableId` field. */ + entityTableId?: UUIDFilter; /** Filter by the object’s `apiName` field. */ apiName?: StringFilter; /** Filter by the object’s `privateApiName` field. */ privateApiName?: StringFilter; /** Checks for all expressions in this list. */ - and?: InferenceLogModuleFilter[]; + and?: InvitesModuleFilter[]; /** Checks for any expressions in this list. */ - or?: InferenceLogModuleFilter[]; + or?: InvitesModuleFilter[]; /** Negates the expression. */ - not?: InferenceLogModuleFilter; + not?: InvitesModuleFilter; } export interface NamespaceModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; + /** Filter by the object’s `entityField` field. */ + entityField?: StringFilter; /** Filter by the object’s `schemaId` field. */ schemaId?: UUIDFilter; /** Filter by the object’s `privateSchemaId` field. */ @@ -4520,8 +4943,6 @@ export interface NamespaceModuleFilter { prefix?: StringFilter; /** Filter by the object’s `entityTableId` field. */ entityTableId?: UUIDFilter; - /** Filter by the object’s `platformNamespacesTableId` field. */ - platformNamespacesTableId?: UUIDFilter; /** Filter by the object’s `policies` field. */ policies?: JSONFilter; /** Filter by the object’s `provisions` field. */ @@ -4535,7 +4956,7 @@ export interface NamespaceModuleFilter { /** Negates the expression. */ not?: NamespaceModuleFilter; } -export interface ResourceModuleFilter { +export interface PlansModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ @@ -4548,48 +4969,50 @@ export interface ResourceModuleFilter { publicSchemaName?: StringFilter; /** Filter by the object’s `privateSchemaName` field. */ privateSchemaName?: StringFilter; - /** Filter by the object’s `resourcesTableId` field. */ - resourcesTableId?: UUIDFilter; - /** Filter by the object’s `resourceEventsTableId` field. */ - resourceEventsTableId?: UUIDFilter; - /** Filter by the object’s `resourcesTableName` field. */ - resourcesTableName?: StringFilter; - /** Filter by the object’s `resourceEventsTableName` field. */ - resourceEventsTableName?: StringFilter; + /** Filter by the object’s `plansTableId` field. */ + plansTableId?: UUIDFilter; + /** Filter by the object’s `plansTableName` field. */ + plansTableName?: StringFilter; + /** Filter by the object’s `planLimitsTableId` field. */ + planLimitsTableId?: UUIDFilter; + /** Filter by the object’s `planLimitsTableName` field. */ + planLimitsTableName?: StringFilter; + /** Filter by the object’s `planPricingTableId` field. */ + planPricingTableId?: UUIDFilter; + /** Filter by the object’s `planOverridesTableId` field. */ + planOverridesTableId?: UUIDFilter; + /** Filter by the object’s `planMeterLimitsTableId` field. */ + planMeterLimitsTableId?: UUIDFilter; + /** Filter by the object’s `planCapsTableId` field. */ + planCapsTableId?: UUIDFilter; + /** Filter by the object’s `applyPlanFunction` field. */ + applyPlanFunction?: StringFilter; + /** Filter by the object’s `applyPlanAggregateFunction` field. */ + applyPlanAggregateFunction?: StringFilter; + /** Filter by the object’s `applyBillingPlanFunction` field. */ + applyBillingPlanFunction?: StringFilter; + /** Filter by the object’s `applyPlanCapsFunction` field. */ + applyPlanCapsFunction?: StringFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; /** Filter by the object’s `apiName` field. */ apiName?: StringFilter; /** Filter by the object’s `privateApiName` field. */ privateApiName?: StringFilter; - /** Filter by the object’s `scope` field. */ - scope?: StringFilter; - /** Filter by the object’s `prefix` field. */ - prefix?: StringFilter; - /** Filter by the object’s `entityTableId` field. */ - entityTableId?: UUIDFilter; - /** Filter by the object’s `namespaceModuleId` field. */ - namespaceModuleId?: UUIDFilter; - /** Filter by the object’s `policies` field. */ - policies?: JSONFilter; - /** Filter by the object’s `provisions` field. */ - provisions?: JSONFilter; - /** Filter by the object’s `defaultPermissions` field. */ - defaultPermissions?: StringListFilter; /** Checks for all expressions in this list. */ - and?: ResourceModuleFilter[]; + and?: PlansModuleFilter[]; /** Checks for any expressions in this list. */ - or?: ResourceModuleFilter[]; + or?: PlansModuleFilter[]; /** Negates the expression. */ - not?: ResourceModuleFilter; - /** Filter by the object’s `namespaceModule` relation. */ - namespaceModule?: NamespaceModuleFilter; - /** A related `namespaceModule` exists. */ - namespaceModuleExists?: boolean; + not?: PlansModuleFilter; } -export interface StorageLogModuleFilter { +export interface ComputeLogModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; + /** Filter by the object’s `entityField` field. */ + entityField?: StringFilter; /** Filter by the object’s `schemaId` field. */ schemaId?: UUIDFilter; /** Filter by the object’s `privateSchemaId` field. */ @@ -4598,10 +5021,10 @@ export interface StorageLogModuleFilter { publicSchemaName?: StringFilter; /** Filter by the object’s `privateSchemaName` field. */ privateSchemaName?: StringFilter; - /** Filter by the object’s `storageLogTableId` field. */ - storageLogTableId?: UUIDFilter; - /** Filter by the object’s `storageLogTableName` field. */ - storageLogTableName?: StringFilter; + /** Filter by the object’s `computeLogTableId` field. */ + computeLogTableId?: UUIDFilter; + /** Filter by the object’s `computeLogTableName` field. */ + computeLogTableName?: StringFilter; /** Filter by the object’s `usageDailyTableId` field. */ usageDailyTableId?: UUIDFilter; /** Filter by the object’s `usageDailyTableName` field. */ @@ -4625,17 +5048,19 @@ export interface StorageLogModuleFilter { /** Filter by the object’s `privateApiName` field. */ privateApiName?: StringFilter; /** Checks for all expressions in this list. */ - and?: StorageLogModuleFilter[]; + and?: ComputeLogModuleFilter[]; /** Checks for any expressions in this list. */ - or?: StorageLogModuleFilter[]; + or?: ComputeLogModuleFilter[]; /** Negates the expression. */ - not?: StorageLogModuleFilter; + not?: ComputeLogModuleFilter; } -export interface TransferLogModuleFilter { +export interface InferenceLogModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; + /** Filter by the object’s `entityField` field. */ + entityField?: StringFilter; /** Filter by the object’s `schemaId` field. */ schemaId?: UUIDFilter; /** Filter by the object’s `privateSchemaId` field. */ @@ -4644,10 +5069,10 @@ export interface TransferLogModuleFilter { publicSchemaName?: StringFilter; /** Filter by the object’s `privateSchemaName` field. */ privateSchemaName?: StringFilter; - /** Filter by the object’s `transferLogTableId` field. */ - transferLogTableId?: UUIDFilter; - /** Filter by the object’s `transferLogTableName` field. */ - transferLogTableName?: StringFilter; + /** Filter by the object’s `inferenceLogTableId` field. */ + inferenceLogTableId?: UUIDFilter; + /** Filter by the object’s `inferenceLogTableName` field. */ + inferenceLogTableName?: StringFilter; /** Filter by the object’s `usageDailyTableId` field. */ usageDailyTableId?: UUIDFilter; /** Filter by the object’s `usageDailyTableName` field. */ @@ -4671,17 +5096,19 @@ export interface TransferLogModuleFilter { /** Filter by the object’s `privateApiName` field. */ privateApiName?: StringFilter; /** Checks for all expressions in this list. */ - and?: TransferLogModuleFilter[]; + and?: InferenceLogModuleFilter[]; /** Checks for any expressions in this list. */ - or?: TransferLogModuleFilter[]; + or?: InferenceLogModuleFilter[]; /** Negates the expression. */ - not?: TransferLogModuleFilter; + not?: InferenceLogModuleFilter; } -export interface FunctionDeploymentModuleFilter { +export interface StorageLogModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; + /** Filter by the object’s `entityField` field. */ + entityField?: StringFilter; /** Filter by the object’s `schemaId` field. */ schemaId?: UUIDFilter; /** Filter by the object’s `privateSchemaId` field. */ @@ -4690,54 +5117,46 @@ export interface FunctionDeploymentModuleFilter { publicSchemaName?: StringFilter; /** Filter by the object’s `privateSchemaName` field. */ privateSchemaName?: StringFilter; - /** Filter by the object’s `deploymentsTableId` field. */ - deploymentsTableId?: UUIDFilter; - /** Filter by the object’s `deploymentEventsTableId` field. */ - deploymentEventsTableId?: UUIDFilter; - /** Filter by the object’s `deploymentsTableName` field. */ - deploymentsTableName?: StringFilter; - /** Filter by the object’s `deploymentEventsTableName` field. */ - deploymentEventsTableName?: StringFilter; - /** Filter by the object’s `apiName` field. */ - apiName?: StringFilter; - /** Filter by the object’s `privateApiName` field. */ - privateApiName?: StringFilter; + /** Filter by the object’s `storageLogTableId` field. */ + storageLogTableId?: UUIDFilter; + /** Filter by the object’s `storageLogTableName` field. */ + storageLogTableName?: StringFilter; + /** Filter by the object’s `usageDailyTableId` field. */ + usageDailyTableId?: UUIDFilter; + /** Filter by the object’s `usageDailyTableName` field. */ + usageDailyTableName?: StringFilter; + /** Filter by the object’s `interval` field. */ + interval?: StringFilter; + /** Filter by the object’s `retention` field. */ + retention?: StringFilter; + /** Filter by the object’s `premake` field. */ + premake?: IntFilter; /** Filter by the object’s `scope` field. */ scope?: StringFilter; + /** Filter by the object’s `actorFkTableId` field. */ + actorFkTableId?: UUIDFilter; + /** Filter by the object’s `entityFkTableId` field. */ + entityFkTableId?: UUIDFilter; /** Filter by the object’s `prefix` field. */ prefix?: StringFilter; - /** Filter by the object’s `entityTableId` field. */ - entityTableId?: UUIDFilter; - /** Filter by the object’s `functionModuleId` field. */ - functionModuleId?: UUIDFilter; - /** Filter by the object’s `namespaceModuleId` field. */ - namespaceModuleId?: UUIDFilter; - /** Filter by the object’s `policies` field. */ - policies?: JSONFilter; - /** Filter by the object’s `provisions` field. */ - provisions?: JSONFilter; - /** Filter by the object’s `defaultPermissions` field. */ - defaultPermissions?: StringListFilter; + /** Filter by the object’s `apiName` field. */ + apiName?: StringFilter; + /** Filter by the object’s `privateApiName` field. */ + privateApiName?: StringFilter; /** Checks for all expressions in this list. */ - and?: FunctionDeploymentModuleFilter[]; + and?: StorageLogModuleFilter[]; /** Checks for any expressions in this list. */ - or?: FunctionDeploymentModuleFilter[]; + or?: StorageLogModuleFilter[]; /** Negates the expression. */ - not?: FunctionDeploymentModuleFilter; - /** Filter by the object’s `functionModule` relation. */ - functionModule?: FunctionModuleFilter; - /** A related `functionModule` exists. */ - functionModuleExists?: boolean; - /** Filter by the object’s `namespaceModule` relation. */ - namespaceModule?: NamespaceModuleFilter; - /** A related `namespaceModule` exists. */ - namespaceModuleExists?: boolean; + not?: StorageLogModuleFilter; } -export interface PlansModuleFilter { +export interface TransferLogModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; + /** Filter by the object’s `entityField` field. */ + entityField?: StringFilter; /** Filter by the object’s `schemaId` field. */ schemaId?: UUIDFilter; /** Filter by the object’s `privateSchemaId` field. */ @@ -4746,30 +5165,26 @@ export interface PlansModuleFilter { publicSchemaName?: StringFilter; /** Filter by the object’s `privateSchemaName` field. */ privateSchemaName?: StringFilter; - /** Filter by the object’s `plansTableId` field. */ - plansTableId?: UUIDFilter; - /** Filter by the object’s `plansTableName` field. */ - plansTableName?: StringFilter; - /** Filter by the object’s `planLimitsTableId` field. */ - planLimitsTableId?: UUIDFilter; - /** Filter by the object’s `planLimitsTableName` field. */ - planLimitsTableName?: StringFilter; - /** Filter by the object’s `planPricingTableId` field. */ - planPricingTableId?: UUIDFilter; - /** Filter by the object’s `planOverridesTableId` field. */ - planOverridesTableId?: UUIDFilter; - /** Filter by the object’s `planMeterLimitsTableId` field. */ - planMeterLimitsTableId?: UUIDFilter; - /** Filter by the object’s `planCapsTableId` field. */ - planCapsTableId?: UUIDFilter; - /** Filter by the object’s `applyPlanFunction` field. */ - applyPlanFunction?: StringFilter; - /** Filter by the object’s `applyPlanAggregateFunction` field. */ - applyPlanAggregateFunction?: StringFilter; - /** Filter by the object’s `applyBillingPlanFunction` field. */ - applyBillingPlanFunction?: StringFilter; - /** Filter by the object’s `applyPlanCapsFunction` field. */ - applyPlanCapsFunction?: StringFilter; + /** Filter by the object’s `transferLogTableId` field. */ + transferLogTableId?: UUIDFilter; + /** Filter by the object’s `transferLogTableName` field. */ + transferLogTableName?: StringFilter; + /** Filter by the object’s `usageDailyTableId` field. */ + usageDailyTableId?: UUIDFilter; + /** Filter by the object’s `usageDailyTableName` field. */ + usageDailyTableName?: StringFilter; + /** Filter by the object’s `interval` field. */ + interval?: StringFilter; + /** Filter by the object’s `retention` field. */ + retention?: StringFilter; + /** Filter by the object’s `premake` field. */ + premake?: IntFilter; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; + /** Filter by the object’s `actorFkTableId` field. */ + actorFkTableId?: UUIDFilter; + /** Filter by the object’s `entityFkTableId` field. */ + entityFkTableId?: UUIDFilter; /** Filter by the object’s `prefix` field. */ prefix?: StringFilter; /** Filter by the object’s `apiName` field. */ @@ -4777,11 +5192,11 @@ export interface PlansModuleFilter { /** Filter by the object’s `privateApiName` field. */ privateApiName?: StringFilter; /** Checks for all expressions in this list. */ - and?: PlansModuleFilter[]; + and?: TransferLogModuleFilter[]; /** Checks for any expressions in this list. */ - or?: PlansModuleFilter[]; + or?: TransferLogModuleFilter[]; /** Negates the expression. */ - not?: PlansModuleFilter; + not?: TransferLogModuleFilter; } export interface BillingProviderModuleFilter { /** Filter by the object’s `id` field. */ @@ -4829,17 +5244,77 @@ export interface BillingProviderModuleFilter { /** Filter by the object’s `privateApiName` field. */ privateApiName?: StringFilter; /** Checks for all expressions in this list. */ - and?: BillingProviderModuleFilter[]; + and?: BillingProviderModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: BillingProviderModuleFilter[]; + /** Negates the expression. */ + not?: BillingProviderModuleFilter; +} +export interface FunctionDeploymentModuleFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `entityField` field. */ + entityField?: StringFilter; + /** Filter by the object’s `schemaId` field. */ + schemaId?: UUIDFilter; + /** Filter by the object’s `privateSchemaId` field. */ + privateSchemaId?: UUIDFilter; + /** Filter by the object’s `publicSchemaName` field. */ + publicSchemaName?: StringFilter; + /** Filter by the object’s `privateSchemaName` field. */ + privateSchemaName?: StringFilter; + /** Filter by the object’s `deploymentsTableId` field. */ + deploymentsTableId?: UUIDFilter; + /** Filter by the object’s `deploymentEventsTableId` field. */ + deploymentEventsTableId?: UUIDFilter; + /** Filter by the object’s `deploymentsTableName` field. */ + deploymentsTableName?: StringFilter; + /** Filter by the object’s `deploymentEventsTableName` field. */ + deploymentEventsTableName?: StringFilter; + /** Filter by the object’s `apiName` field. */ + apiName?: StringFilter; + /** Filter by the object’s `privateApiName` field. */ + privateApiName?: StringFilter; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Filter by the object’s `entityTableId` field. */ + entityTableId?: UUIDFilter; + /** Filter by the object’s `functionModuleId` field. */ + functionModuleId?: UUIDFilter; + /** Filter by the object’s `namespaceModuleId` field. */ + namespaceModuleId?: UUIDFilter; + /** Filter by the object’s `policies` field. */ + policies?: JSONFilter; + /** Filter by the object’s `provisions` field. */ + provisions?: JSONFilter; + /** Filter by the object’s `defaultPermissions` field. */ + defaultPermissions?: StringListFilter; + /** Checks for all expressions in this list. */ + and?: FunctionDeploymentModuleFilter[]; /** Checks for any expressions in this list. */ - or?: BillingProviderModuleFilter[]; + or?: FunctionDeploymentModuleFilter[]; /** Negates the expression. */ - not?: BillingProviderModuleFilter; + not?: FunctionDeploymentModuleFilter; + /** Filter by the object’s `functionModule` relation. */ + functionModule?: FunctionModuleFilter; + /** A related `functionModule` exists. */ + functionModuleExists?: boolean; + /** Filter by the object’s `namespaceModule` relation. */ + namespaceModule?: NamespaceModuleFilter; + /** A related `namespaceModule` exists. */ + namespaceModuleExists?: boolean; } -export interface DbUsageModuleFilter { +export interface PermissionsModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; + /** Filter by the object’s `entityField` field. */ + entityField?: StringFilter; /** Filter by the object’s `schemaId` field. */ schemaId?: UUIDFilter; /** Filter by the object’s `privateSchemaId` field. */ @@ -4848,50 +5323,50 @@ export interface DbUsageModuleFilter { publicSchemaName?: StringFilter; /** Filter by the object’s `privateSchemaName` field. */ privateSchemaName?: StringFilter; - /** Filter by the object’s `tableStatsLogTableId` field. */ - tableStatsLogTableId?: UUIDFilter; - /** Filter by the object’s `tableStatsLogTableName` field. */ - tableStatsLogTableName?: StringFilter; - /** Filter by the object’s `tableStatsDailyTableId` field. */ - tableStatsDailyTableId?: UUIDFilter; - /** Filter by the object’s `tableStatsDailyTableName` field. */ - tableStatsDailyTableName?: StringFilter; - /** Filter by the object’s `queryStatsLogTableId` field. */ - queryStatsLogTableId?: UUIDFilter; - /** Filter by the object’s `queryStatsLogTableName` field. */ - queryStatsLogTableName?: StringFilter; - /** Filter by the object’s `queryStatsDailyTableId` field. */ - queryStatsDailyTableId?: UUIDFilter; - /** Filter by the object’s `queryStatsDailyTableName` field. */ - queryStatsDailyTableName?: StringFilter; - /** Filter by the object’s `interval` field. */ - interval?: StringFilter; - /** Filter by the object’s `retention` field. */ - retention?: StringFilter; - /** Filter by the object’s `premake` field. */ - premake?: IntFilter; + /** Filter by the object’s `tableId` field. */ + tableId?: UUIDFilter; + /** Filter by the object’s `tableName` field. */ + tableName?: StringFilter; + /** Filter by the object’s `defaultTableId` field. */ + defaultTableId?: UUIDFilter; + /** Filter by the object’s `defaultTableName` field. */ + defaultTableName?: StringFilter; + /** Filter by the object’s `bitlen` field. */ + bitlen?: IntFilter; /** Filter by the object’s `scope` field. */ scope?: StringFilter; /** Filter by the object’s `prefix` field. */ prefix?: StringFilter; - /** Filter by the object’s `defaultPermissions` field. */ - defaultPermissions?: StringListFilter; + /** Filter by the object’s `entityTableId` field. */ + entityTableId?: UUIDFilter; + /** Filter by the object’s `actorTableId` field. */ + actorTableId?: UUIDFilter; + /** Filter by the object’s `getPaddedMask` field. */ + getPaddedMask?: StringFilter; + /** Filter by the object’s `getMask` field. */ + getMask?: StringFilter; + /** Filter by the object’s `getByMask` field. */ + getByMask?: StringFilter; + /** Filter by the object’s `getMaskByName` field. */ + getMaskByName?: StringFilter; /** Filter by the object’s `apiName` field. */ apiName?: StringFilter; /** Filter by the object’s `privateApiName` field. */ privateApiName?: StringFilter; /** Checks for all expressions in this list. */ - and?: DbUsageModuleFilter[]; + and?: PermissionsModuleFilter[]; /** Checks for any expressions in this list. */ - or?: DbUsageModuleFilter[]; + or?: PermissionsModuleFilter[]; /** Negates the expression. */ - not?: DbUsageModuleFilter; + not?: PermissionsModuleFilter; } export interface GraphExecutionModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; + /** Filter by the object’s `entityField` field. */ + entityField?: StringFilter; /** Filter by the object’s `schemaId` field. */ schemaId?: UUIDFilter; /** Filter by the object’s `privateSchemaId` field. */ @@ -4946,6 +5421,8 @@ export interface HierarchyModuleFilter { id?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; + /** Filter by the object’s `entityField` field. */ + entityField?: StringFilter; /** Filter by the object’s `schemaId` field. */ schemaId?: UUIDFilter; /** Filter by the object’s `privateSchemaId` field. */ @@ -4993,61 +5470,13 @@ export interface HierarchyModuleFilter { /** Negates the expression. */ not?: HierarchyModuleFilter; } -export interface PermissionsModuleFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `schemaId` field. */ - schemaId?: UUIDFilter; - /** Filter by the object’s `privateSchemaId` field. */ - privateSchemaId?: UUIDFilter; - /** Filter by the object’s `publicSchemaName` field. */ - publicSchemaName?: StringFilter; - /** Filter by the object’s `privateSchemaName` field. */ - privateSchemaName?: StringFilter; - /** Filter by the object’s `tableId` field. */ - tableId?: UUIDFilter; - /** Filter by the object’s `tableName` field. */ - tableName?: StringFilter; - /** Filter by the object’s `defaultTableId` field. */ - defaultTableId?: UUIDFilter; - /** Filter by the object’s `defaultTableName` field. */ - defaultTableName?: StringFilter; - /** Filter by the object’s `bitlen` field. */ - bitlen?: IntFilter; - /** Filter by the object’s `scope` field. */ - scope?: StringFilter; - /** Filter by the object’s `prefix` field. */ - prefix?: StringFilter; - /** Filter by the object’s `entityTableId` field. */ - entityTableId?: UUIDFilter; - /** Filter by the object’s `actorTableId` field. */ - actorTableId?: UUIDFilter; - /** Filter by the object’s `getPaddedMask` field. */ - getPaddedMask?: StringFilter; - /** Filter by the object’s `getMask` field. */ - getMask?: StringFilter; - /** Filter by the object’s `getByMask` field. */ - getByMask?: StringFilter; - /** Filter by the object’s `getMaskByName` field. */ - getMaskByName?: StringFilter; - /** Filter by the object’s `apiName` field. */ - apiName?: StringFilter; - /** Filter by the object’s `privateApiName` field. */ - privateApiName?: StringFilter; - /** Checks for all expressions in this list. */ - and?: PermissionsModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: PermissionsModuleFilter[]; - /** Negates the expression. */ - not?: PermissionsModuleFilter; -} export interface NotificationsModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; + /** Filter by the object’s `entityField` field. */ + entityField?: StringFilter; /** Filter by the object’s `schemaId` field. */ schemaId?: UUIDFilter; /** Filter by the object’s `privateSchemaId` field. */ @@ -5097,11 +5526,69 @@ export interface NotificationsModuleFilter { /** Negates the expression. */ not?: NotificationsModuleFilter; } +export interface RelationProvisionFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `relationType` field. */ + relationType?: StringFilter; + /** Filter by the object’s `sourceTableId` field. */ + sourceTableId?: UUIDFilter; + /** Filter by the object’s `targetTableId` field. */ + targetTableId?: UUIDFilter; + /** Filter by the object’s `fieldName` field. */ + fieldName?: StringFilter; + /** Filter by the object’s `deleteAction` field. */ + deleteAction?: StringFilter; + /** Filter by the object’s `isRequired` field. */ + isRequired?: BooleanFilter; + /** Filter by the object’s `apiRequired` field. */ + apiRequired?: BooleanFilter; + /** Filter by the object’s `junctionTableId` field. */ + junctionTableId?: UUIDFilter; + /** Filter by the object’s `junctionTableName` field. */ + junctionTableName?: StringFilter; + /** Filter by the object’s `junctionSchemaId` field. */ + junctionSchemaId?: UUIDFilter; + /** Filter by the object’s `sourceFieldName` field. */ + sourceFieldName?: StringFilter; + /** Filter by the object’s `targetFieldName` field. */ + targetFieldName?: StringFilter; + /** Filter by the object’s `useCompositeKey` field. */ + useCompositeKey?: BooleanFilter; + /** Filter by the object’s `createIndex` field. */ + createIndex?: BooleanFilter; + /** Filter by the object’s `exposeInApi` field. */ + exposeInApi?: BooleanFilter; + /** Filter by the object’s `nodes` field. */ + nodes?: JSONFilter; + /** Filter by the object’s `grants` field. */ + grants?: JSONFilter; + /** Filter by the object’s `policies` field. */ + policies?: JSONFilter; + /** Filter by the object’s `outFieldId` field. */ + outFieldId?: UUIDFilter; + /** Filter by the object’s `outJunctionTableId` field. */ + outJunctionTableId?: UUIDFilter; + /** Filter by the object’s `outSourceFieldId` field. */ + outSourceFieldId?: UUIDFilter; + /** Filter by the object’s `outTargetFieldId` field. */ + outTargetFieldId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: RelationProvisionFilter[]; + /** Checks for any expressions in this list. */ + or?: RelationProvisionFilter[]; + /** Negates the expression. */ + not?: RelationProvisionFilter; +} export interface ProfilesModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; + /** Filter by the object’s `entityField` field. */ + entityField?: StringFilter; /** Filter by the object’s `schemaId` field. */ schemaId?: UUIDFilter; /** Filter by the object’s `privateSchemaId` field. */ @@ -5196,6 +5683,10 @@ export interface BillingModuleFilter { meterDefaultsTableName?: StringFilter; /** Filter by the object’s `recordUsageFunction` field. */ recordUsageFunction?: StringFilter; + /** Filter by the object’s `sweepExpiredSubscriptionsFunction` field. */ + sweepExpiredSubscriptionsFunction?: StringFilter; + /** Filter by the object’s `rollupUsageSummaryFunction` field. */ + rollupUsageSummaryFunction?: StringFilter; /** Filter by the object’s `prefix` field. */ prefix?: StringFilter; /** Filter by the object’s `defaultPermissions` field. */ @@ -5211,61 +5702,69 @@ export interface BillingModuleFilter { /** Negates the expression. */ not?: BillingModuleFilter; } -export interface RelationProvisionFilter { +export interface ResourceModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `relationType` field. */ - relationType?: StringFilter; - /** Filter by the object’s `sourceTableId` field. */ - sourceTableId?: UUIDFilter; - /** Filter by the object’s `targetTableId` field. */ - targetTableId?: UUIDFilter; - /** Filter by the object’s `fieldName` field. */ - fieldName?: StringFilter; - /** Filter by the object’s `deleteAction` field. */ - deleteAction?: StringFilter; - /** Filter by the object’s `isRequired` field. */ - isRequired?: BooleanFilter; - /** Filter by the object’s `apiRequired` field. */ - apiRequired?: BooleanFilter; - /** Filter by the object’s `junctionTableId` field. */ - junctionTableId?: UUIDFilter; - /** Filter by the object’s `junctionTableName` field. */ - junctionTableName?: StringFilter; - /** Filter by the object’s `junctionSchemaId` field. */ - junctionSchemaId?: UUIDFilter; - /** Filter by the object’s `sourceFieldName` field. */ - sourceFieldName?: StringFilter; - /** Filter by the object’s `targetFieldName` field. */ - targetFieldName?: StringFilter; - /** Filter by the object’s `useCompositeKey` field. */ - useCompositeKey?: BooleanFilter; - /** Filter by the object’s `createIndex` field. */ - createIndex?: BooleanFilter; - /** Filter by the object’s `exposeInApi` field. */ - exposeInApi?: BooleanFilter; - /** Filter by the object’s `nodes` field. */ - nodes?: JSONFilter; - /** Filter by the object’s `grants` field. */ - grants?: JSONFilter; + /** Filter by the object’s `entityField` field. */ + entityField?: StringFilter; + /** Filter by the object’s `schemaId` field. */ + schemaId?: UUIDFilter; + /** Filter by the object’s `privateSchemaId` field. */ + privateSchemaId?: UUIDFilter; + /** Filter by the object’s `publicSchemaName` field. */ + publicSchemaName?: StringFilter; + /** Filter by the object’s `privateSchemaName` field. */ + privateSchemaName?: StringFilter; + /** Filter by the object’s `resourcesTableId` field. */ + resourcesTableId?: UUIDFilter; + /** Filter by the object’s `resourceEventsTableId` field. */ + resourceEventsTableId?: UUIDFilter; + /** Filter by the object’s `resourceStatusChecksTableId` field. */ + resourceStatusChecksTableId?: UUIDFilter; + /** Filter by the object’s `resourceDefinitionsTableId` field. */ + resourceDefinitionsTableId?: UUIDFilter; + /** Filter by the object’s `resourcesTableName` field. */ + resourcesTableName?: StringFilter; + /** Filter by the object’s `resourceEventsTableName` field. */ + resourceEventsTableName?: StringFilter; + /** Filter by the object’s `resourceStatusChecksTableName` field. */ + resourceStatusChecksTableName?: StringFilter; + /** Filter by the object’s `resourceDefinitionsTableName` field. */ + resourceDefinitionsTableName?: StringFilter; + /** Filter by the object’s `resolvedRequirementsViewName` field. */ + resolvedRequirementsViewName?: StringFilter; + /** Filter by the object’s `requirementsStateViewName` field. */ + requirementsStateViewName?: StringFilter; + /** Filter by the object’s `apiName` field. */ + apiName?: StringFilter; + /** Filter by the object’s `privateApiName` field. */ + privateApiName?: StringFilter; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Filter by the object’s `entityTableId` field. */ + entityTableId?: UUIDFilter; + /** Filter by the object’s `namespaceModuleId` field. */ + namespaceModuleId?: UUIDFilter; /** Filter by the object’s `policies` field. */ policies?: JSONFilter; - /** Filter by the object’s `outFieldId` field. */ - outFieldId?: UUIDFilter; - /** Filter by the object’s `outJunctionTableId` field. */ - outJunctionTableId?: UUIDFilter; - /** Filter by the object’s `outSourceFieldId` field. */ - outSourceFieldId?: UUIDFilter; - /** Filter by the object’s `outTargetFieldId` field. */ - outTargetFieldId?: UUIDFilter; + /** Filter by the object’s `provisions` field. */ + provisions?: JSONFilter; + /** Filter by the object’s `defaultPermissions` field. */ + defaultPermissions?: StringListFilter; /** Checks for all expressions in this list. */ - and?: RelationProvisionFilter[]; + and?: ResourceModuleFilter[]; /** Checks for any expressions in this list. */ - or?: RelationProvisionFilter[]; + or?: ResourceModuleFilter[]; /** Negates the expression. */ - not?: RelationProvisionFilter; + not?: ResourceModuleFilter; + /** Filter by the object’s `namespaceModule` relation. */ + namespaceModule?: NamespaceModuleFilter; + /** A related `namespaceModule` exists. */ + namespaceModuleExists?: boolean; } export interface UserAuthModuleFilter { /** Filter by the object’s `id` field. */ @@ -5331,11 +5830,75 @@ export interface UserAuthModuleFilter { /** Negates the expression. */ not?: UserAuthModuleFilter; } +export interface DbUsageModuleFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `entityField` field. */ + entityField?: StringFilter; + /** Filter by the object’s `schemaId` field. */ + schemaId?: UUIDFilter; + /** Filter by the object’s `privateSchemaId` field. */ + privateSchemaId?: UUIDFilter; + /** Filter by the object’s `publicSchemaName` field. */ + publicSchemaName?: StringFilter; + /** Filter by the object’s `privateSchemaName` field. */ + privateSchemaName?: StringFilter; + /** Filter by the object’s `tableStatsLogTableId` field. */ + tableStatsLogTableId?: UUIDFilter; + /** Filter by the object’s `tableStatsLogTableName` field. */ + tableStatsLogTableName?: StringFilter; + /** Filter by the object’s `tableStatsDailyTableId` field. */ + tableStatsDailyTableId?: UUIDFilter; + /** Filter by the object’s `tableStatsDailyTableName` field. */ + tableStatsDailyTableName?: StringFilter; + /** Filter by the object’s `queryStatsLogTableId` field. */ + queryStatsLogTableId?: UUIDFilter; + /** Filter by the object’s `queryStatsLogTableName` field. */ + queryStatsLogTableName?: StringFilter; + /** Filter by the object’s `queryStatsDailyTableId` field. */ + queryStatsDailyTableId?: UUIDFilter; + /** Filter by the object’s `queryStatsDailyTableName` field. */ + queryStatsDailyTableName?: StringFilter; + /** Filter by the object’s `collectDbTableStatsFunction` field. */ + collectDbTableStatsFunction?: StringFilter; + /** Filter by the object’s `collectDbQueryStatsFunction` field. */ + collectDbQueryStatsFunction?: StringFilter; + /** Filter by the object’s `rollupDbTableStatsDailyFunction` field. */ + rollupDbTableStatsDailyFunction?: StringFilter; + /** Filter by the object’s `rollupDbQueryStatsDailyFunction` field. */ + rollupDbQueryStatsDailyFunction?: StringFilter; + /** Filter by the object’s `interval` field. */ + interval?: StringFilter; + /** Filter by the object’s `retention` field. */ + retention?: StringFilter; + /** Filter by the object’s `premake` field. */ + premake?: IntFilter; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Filter by the object’s `defaultPermissions` field. */ + defaultPermissions?: StringListFilter; + /** Filter by the object’s `apiName` field. */ + apiName?: StringFilter; + /** Filter by the object’s `privateApiName` field. */ + privateApiName?: StringFilter; + /** Checks for all expressions in this list. */ + and?: DbUsageModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: DbUsageModuleFilter[]; + /** Negates the expression. */ + not?: DbUsageModuleFilter; +} export interface AgentModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; + /** Filter by the object’s `entityField` field. */ + entityField?: StringFilter; /** Filter by the object’s `schemaId` field. */ schemaId?: UUIDFilter; /** Filter by the object’s `privateSchemaId` field. */ @@ -5414,6 +5977,8 @@ export interface LimitsModuleFilter { id?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; + /** Filter by the object’s `entityField` field. */ + entityField?: StringFilter; /** Filter by the object’s `schemaId` field. */ schemaId?: UUIDFilter; /** Filter by the object’s `privateSchemaId` field. */ @@ -5489,96 +6054,6 @@ export interface LimitsModuleFilter { /** Negates the expression. */ not?: LimitsModuleFilter; } -export interface MembershipsModuleFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `schemaId` field. */ - schemaId?: UUIDFilter; - /** Filter by the object’s `privateSchemaId` field. */ - privateSchemaId?: UUIDFilter; - /** Filter by the object’s `publicSchemaName` field. */ - publicSchemaName?: StringFilter; - /** Filter by the object’s `privateSchemaName` field. */ - privateSchemaName?: StringFilter; - /** Filter by the object’s `membershipsTableId` field. */ - membershipsTableId?: UUIDFilter; - /** Filter by the object’s `membershipsTableName` field. */ - membershipsTableName?: StringFilter; - /** Filter by the object’s `membersTableId` field. */ - membersTableId?: UUIDFilter; - /** Filter by the object’s `membersTableName` field. */ - membersTableName?: StringFilter; - /** Filter by the object’s `membershipDefaultsTableId` field. */ - membershipDefaultsTableId?: UUIDFilter; - /** Filter by the object’s `membershipDefaultsTableName` field. */ - membershipDefaultsTableName?: StringFilter; - /** Filter by the object’s `membershipSettingsTableId` field. */ - membershipSettingsTableId?: UUIDFilter; - /** Filter by the object’s `membershipSettingsTableName` field. */ - membershipSettingsTableName?: StringFilter; - /** Filter by the object’s `grantsTableId` field. */ - grantsTableId?: UUIDFilter; - /** Filter by the object’s `grantsTableName` field. */ - grantsTableName?: StringFilter; - /** Filter by the object’s `actorTableId` field. */ - actorTableId?: UUIDFilter; - /** Filter by the object’s `limitsTableId` field. */ - limitsTableId?: UUIDFilter; - /** Filter by the object’s `defaultLimitsTableId` field. */ - defaultLimitsTableId?: UUIDFilter; - /** Filter by the object’s `permissionsTableId` field. */ - permissionsTableId?: UUIDFilter; - /** Filter by the object’s `defaultPermissionsTableId` field. */ - defaultPermissionsTableId?: UUIDFilter; - /** Filter by the object’s `sprtTableId` field. */ - sprtTableId?: UUIDFilter; - /** Filter by the object’s `adminGrantsTableId` field. */ - adminGrantsTableId?: UUIDFilter; - /** Filter by the object’s `adminGrantsTableName` field. */ - adminGrantsTableName?: StringFilter; - /** Filter by the object’s `ownerGrantsTableId` field. */ - ownerGrantsTableId?: UUIDFilter; - /** Filter by the object’s `ownerGrantsTableName` field. */ - ownerGrantsTableName?: StringFilter; - /** Filter by the object’s `scope` field. */ - scope?: StringFilter; - /** Filter by the object’s `prefix` field. */ - prefix?: StringFilter; - /** Filter by the object’s `entityTableId` field. */ - entityTableId?: UUIDFilter; - /** Filter by the object’s `entityTableOwnerId` field. */ - entityTableOwnerId?: UUIDFilter; - /** Filter by the object’s `getOrgFn` field. */ - getOrgFn?: StringFilter; - /** Filter by the object’s `actorMaskCheck` field. */ - actorMaskCheck?: StringFilter; - /** Filter by the object’s `actorPermCheck` field. */ - actorPermCheck?: StringFilter; - /** Filter by the object’s `entityIdsByMask` field. */ - entityIdsByMask?: StringFilter; - /** Filter by the object’s `entityIdsByPerm` field. */ - entityIdsByPerm?: StringFilter; - /** Filter by the object’s `entityIdsFunction` field. */ - entityIdsFunction?: StringFilter; - /** Filter by the object’s `memberProfilesTableId` field. */ - memberProfilesTableId?: UUIDFilter; - /** Filter by the object’s `permissionDefaultPermissionsTableId` field. */ - permissionDefaultPermissionsTableId?: UUIDFilter; - /** Filter by the object’s `permissionDefaultGrantsTableId` field. */ - permissionDefaultGrantsTableId?: UUIDFilter; - /** Filter by the object’s `apiName` field. */ - apiName?: StringFilter; - /** Filter by the object’s `privateApiName` field. */ - privateApiName?: StringFilter; - /** Checks for all expressions in this list. */ - and?: MembershipsModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: MembershipsModuleFilter[]; - /** Negates the expression. */ - not?: MembershipsModuleFilter; -} export interface EntityTypeProvisionFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; @@ -5652,8 +6127,6 @@ export interface EntityTypeProvisionFilter { outInvocationsTableId?: UUIDFilter; /** Filter by the object’s `outExecutionLogsTableId` field. */ outExecutionLogsTableId?: UUIDFilter; - /** Filter by the object’s `outSecretDefinitionsTableId` field. */ - outSecretDefinitionsTableId?: UUIDFilter; /** Filter by the object’s `outGraphModuleId` field. */ outGraphModuleId?: UUIDFilter; /** Filter by the object’s `outGraphsTableId` field. */ @@ -5698,6 +6171,8 @@ export interface StorageModuleFilter { provisions?: JSONFilter; /** Filter by the object’s `entityTableId` field. */ entityTableId?: UUIDFilter; + /** Filter by the object’s `entityField` field. */ + entityField?: StringFilter; /** Filter by the object’s `endpoint` field. */ endpoint?: StringFilter; /** Filter by the object’s `publicUrlPrefix` field. */ @@ -5747,17 +6222,111 @@ export interface StorageModuleFilter { /** Filter by the object’s `privateApiName` field. */ privateApiName?: StringFilter; /** Checks for all expressions in this list. */ - and?: StorageModuleFilter[]; + and?: StorageModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: StorageModuleFilter[]; + /** Negates the expression. */ + not?: StorageModuleFilter; +} +export interface MembershipsModuleFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `entityField` field. */ + entityField?: StringFilter; + /** Filter by the object’s `schemaId` field. */ + schemaId?: UUIDFilter; + /** Filter by the object’s `privateSchemaId` field. */ + privateSchemaId?: UUIDFilter; + /** Filter by the object’s `publicSchemaName` field. */ + publicSchemaName?: StringFilter; + /** Filter by the object’s `privateSchemaName` field. */ + privateSchemaName?: StringFilter; + /** Filter by the object’s `membershipsTableId` field. */ + membershipsTableId?: UUIDFilter; + /** Filter by the object’s `membershipsTableName` field. */ + membershipsTableName?: StringFilter; + /** Filter by the object’s `membersTableId` field. */ + membersTableId?: UUIDFilter; + /** Filter by the object’s `membersTableName` field. */ + membersTableName?: StringFilter; + /** Filter by the object’s `membershipDefaultsTableId` field. */ + membershipDefaultsTableId?: UUIDFilter; + /** Filter by the object’s `membershipDefaultsTableName` field. */ + membershipDefaultsTableName?: StringFilter; + /** Filter by the object’s `membershipSettingsTableId` field. */ + membershipSettingsTableId?: UUIDFilter; + /** Filter by the object’s `membershipSettingsTableName` field. */ + membershipSettingsTableName?: StringFilter; + /** Filter by the object’s `grantsTableId` field. */ + grantsTableId?: UUIDFilter; + /** Filter by the object’s `grantsTableName` field. */ + grantsTableName?: StringFilter; + /** Filter by the object’s `actorTableId` field. */ + actorTableId?: UUIDFilter; + /** Filter by the object’s `limitsTableId` field. */ + limitsTableId?: UUIDFilter; + /** Filter by the object’s `defaultLimitsTableId` field. */ + defaultLimitsTableId?: UUIDFilter; + /** Filter by the object’s `permissionsTableId` field. */ + permissionsTableId?: UUIDFilter; + /** Filter by the object’s `defaultPermissionsTableId` field. */ + defaultPermissionsTableId?: UUIDFilter; + /** Filter by the object’s `sprtTableId` field. */ + sprtTableId?: UUIDFilter; + /** Filter by the object’s `adminGrantsTableId` field. */ + adminGrantsTableId?: UUIDFilter; + /** Filter by the object’s `adminGrantsTableName` field. */ + adminGrantsTableName?: StringFilter; + /** Filter by the object’s `ownerGrantsTableId` field. */ + ownerGrantsTableId?: UUIDFilter; + /** Filter by the object’s `ownerGrantsTableName` field. */ + ownerGrantsTableName?: StringFilter; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Filter by the object’s `entityTableId` field. */ + entityTableId?: UUIDFilter; + /** Filter by the object’s `entityTableOwnerId` field. */ + entityTableOwnerId?: UUIDFilter; + /** Filter by the object’s `getOrgFn` field. */ + getOrgFn?: StringFilter; + /** Filter by the object’s `actorMaskCheck` field. */ + actorMaskCheck?: StringFilter; + /** Filter by the object’s `actorPermCheck` field. */ + actorPermCheck?: StringFilter; + /** Filter by the object’s `entityIdsByMask` field. */ + entityIdsByMask?: StringFilter; + /** Filter by the object’s `entityIdsByPerm` field. */ + entityIdsByPerm?: StringFilter; + /** Filter by the object’s `entityIdsFunction` field. */ + entityIdsFunction?: StringFilter; + /** Filter by the object’s `memberProfilesTableId` field. */ + memberProfilesTableId?: UUIDFilter; + /** Filter by the object’s `permissionDefaultPermissionsTableId` field. */ + permissionDefaultPermissionsTableId?: UUIDFilter; + /** Filter by the object’s `permissionDefaultGrantsTableId` field. */ + permissionDefaultGrantsTableId?: UUIDFilter; + /** Filter by the object’s `apiName` field. */ + apiName?: StringFilter; + /** Filter by the object’s `privateApiName` field. */ + privateApiName?: StringFilter; + /** Checks for all expressions in this list. */ + and?: MembershipsModuleFilter[]; /** Checks for any expressions in this list. */ - or?: StorageModuleFilter[]; + or?: MembershipsModuleFilter[]; /** Negates the expression. */ - not?: StorageModuleFilter; + not?: MembershipsModuleFilter; } export interface EventsModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; + /** Filter by the object’s `entityField` field. */ + entityField?: StringFilter; /** Filter by the object’s `schemaId` field. */ schemaId?: UUIDFilter; /** Filter by the object’s `privateSchemaId` field. */ @@ -5810,8 +6379,6 @@ export interface EventsModuleFilter { upsertAggregate?: StringFilter; /** Filter by the object’s `tgUpdateAggregates` field. */ tgUpdateAggregates?: StringFilter; - /** Filter by the object’s `pruneEvents` field. */ - pruneEvents?: StringFilter; /** Filter by the object’s `stepsRequired` field. */ stepsRequired?: StringFilter; /** Filter by the object’s `levelAchieved` field. */ @@ -5872,20 +6439,6 @@ export type MembershipTypesModuleOrderBy = | 'TABLE_ID_DESC' | 'TABLE_NAME_ASC' | 'TABLE_NAME_DESC'; -export type UserStateModuleOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC' - | 'TABLE_ID_ASC' - | 'TABLE_ID_DESC' - | 'TABLE_NAME_ASC' - | 'TABLE_NAME_DESC'; export type SessionSecretsModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -5902,24 +6455,6 @@ export type SessionSecretsModuleOrderBy = | 'TABLE_NAME_DESC' | 'SESSIONS_TABLE_ID_ASC' | 'SESSIONS_TABLE_ID_DESC'; -export type ConfigSecretsOrgModuleOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC' - | 'TABLE_ID_ASC' - | 'TABLE_ID_DESC' - | 'TABLE_NAME_ASC' - | 'TABLE_NAME_DESC' - | 'API_NAME_ASC' - | 'API_NAME_DESC' - | 'PRIVATE_API_NAME_ASC' - | 'PRIVATE_API_NAME_DESC'; export type DevicesModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -5956,7 +6491,7 @@ export type I18NModuleOrderBy = | 'API_NAME_DESC' | 'PRIVATE_API_NAME_ASC' | 'PRIVATE_API_NAME_DESC'; -export type UserCredentialsModuleOrderBy = +export type UserSettingsModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -5968,13 +6503,13 @@ export type UserCredentialsModuleOrderBy = | 'SCHEMA_ID_DESC' | 'TABLE_ID_ASC' | 'TABLE_ID_DESC' + | 'OWNER_TABLE_ID_ASC' + | 'OWNER_TABLE_ID_DESC' | 'TABLE_NAME_ASC' | 'TABLE_NAME_DESC' | 'API_NAME_ASC' - | 'API_NAME_DESC' - | 'PRIVATE_API_NAME_ASC' - | 'PRIVATE_API_NAME_DESC'; -export type UserSettingsModuleOrderBy = + | 'API_NAME_DESC'; +export type UserStateModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -5982,17 +6517,15 @@ export type UserSettingsModuleOrderBy = | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' + | 'ENTITY_FIELD_ASC' + | 'ENTITY_FIELD_DESC' | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' | 'TABLE_ID_ASC' | 'TABLE_ID_DESC' - | 'OWNER_TABLE_ID_ASC' - | 'OWNER_TABLE_ID_DESC' | 'TABLE_NAME_ASC' - | 'TABLE_NAME_DESC' - | 'API_NAME_ASC' - | 'API_NAME_DESC'; -export type ConfigSecretsUserModuleOrderBy = + | 'TABLE_NAME_DESC'; +export type UserCredentialsModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -6000,16 +6533,14 @@ export type ConfigSecretsUserModuleOrderBy = | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' + | 'ENTITY_FIELD_ASC' + | 'ENTITY_FIELD_DESC' | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' | 'TABLE_ID_ASC' | 'TABLE_ID_DESC' | 'TABLE_NAME_ASC' | 'TABLE_NAME_DESC' - | 'CONFIG_DEFINITIONS_TABLE_ID_ASC' - | 'CONFIG_DEFINITIONS_TABLE_ID_DESC' - | 'API_NAME_ASC' - | 'API_NAME_DESC' | 'PRIVATE_API_NAME_ASC' | 'PRIVATE_API_NAME_DESC'; export type ConnectedAccountsModuleOrderBy = @@ -6144,6 +6675,26 @@ export type WebauthnCredentialsModuleOrderBy = | 'API_NAME_DESC' | 'PRIVATE_API_NAME_ASC' | 'PRIVATE_API_NAME_DESC'; +export type ConfigSecretsUserModuleOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'ENTITY_FIELD_ASC' + | 'ENTITY_FIELD_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'TABLE_ID_ASC' + | 'TABLE_ID_DESC' + | 'TABLE_NAME_ASC' + | 'TABLE_NAME_DESC' + | 'API_NAME_ASC' + | 'API_NAME_DESC' + | 'PRIVATE_API_NAME_ASC' + | 'PRIVATE_API_NAME_DESC'; export type CryptoAddressesModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -6196,36 +6747,6 @@ export type DenormalizedTableFieldOrderBy = | 'FUNC_NAME_DESC' | 'FUNC_ORDER_ASC' | 'FUNC_ORDER_DESC'; -export type IdentityProvidersModuleOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC' - | 'PRIVATE_SCHEMA_ID_ASC' - | 'PRIVATE_SCHEMA_ID_DESC' - | 'PUBLIC_SCHEMA_NAME_ASC' - | 'PUBLIC_SCHEMA_NAME_DESC' - | 'PRIVATE_SCHEMA_NAME_ASC' - | 'PRIVATE_SCHEMA_NAME_DESC' - | 'TABLE_ID_ASC' - | 'TABLE_ID_DESC' - | 'TABLE_NAME_ASC' - | 'TABLE_NAME_DESC' - | 'API_NAME_ASC' - | 'API_NAME_DESC' - | 'PRIVATE_API_NAME_ASC' - | 'PRIVATE_API_NAME_DESC' - | 'SCOPE_ASC' - | 'SCOPE_DESC' - | 'PREFIX_ASC' - | 'PREFIX_DESC' - | 'ENTITY_TABLE_ID_ASC' - | 'ENTITY_TABLE_ID_DESC'; export type RlsModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -6438,39 +6959,39 @@ export type SecureTableProvisionOrderBy = | 'POLICIES_DESC' | 'OUT_FIELDS_ASC' | 'OUT_FIELDS_DESC'; -export type DatabaseProvisionModuleOrderBy = +export type IdentityProvidersModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' - | 'DATABASE_NAME_ASC' - | 'DATABASE_NAME_DESC' - | 'OWNER_ID_ASC' - | 'OWNER_ID_DESC' - | 'SUBDOMAIN_ASC' - | 'SUBDOMAIN_DESC' - | 'DOMAIN_ASC' - | 'DOMAIN_DESC' - | 'MODULES_ASC' - | 'MODULES_DESC' - | 'OPTIONS_ASC' - | 'OPTIONS_DESC' - | 'BOOTSTRAP_USER_ASC' - | 'BOOTSTRAP_USER_DESC' - | 'STATUS_ASC' - | 'STATUS_DESC' - | 'ERROR_MESSAGE_ASC' - | 'ERROR_MESSAGE_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'COMPLETED_AT_ASC' - | 'COMPLETED_AT_DESC'; -export type ConfigSecretsModuleOrderBy = + | 'ENTITY_FIELD_ASC' + | 'ENTITY_FIELD_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'PRIVATE_SCHEMA_ID_ASC' + | 'PRIVATE_SCHEMA_ID_DESC' + | 'PUBLIC_SCHEMA_NAME_ASC' + | 'PUBLIC_SCHEMA_NAME_DESC' + | 'PRIVATE_SCHEMA_NAME_ASC' + | 'PRIVATE_SCHEMA_NAME_DESC' + | 'TABLE_ID_ASC' + | 'TABLE_ID_DESC' + | 'TABLE_NAME_ASC' + | 'TABLE_NAME_DESC' + | 'API_NAME_ASC' + | 'API_NAME_DESC' + | 'PRIVATE_API_NAME_ASC' + | 'PRIVATE_API_NAME_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC' + | 'ENTITY_TABLE_ID_ASC' + | 'ENTITY_TABLE_ID_DESC'; +export type IntegrationProvidersModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -6478,6 +6999,8 @@ export type ConfigSecretsModuleOrderBy = | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' + | 'ENTITY_FIELD_ASC' + | 'ENTITY_FIELD_DESC' | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' | 'PRIVATE_SCHEMA_ID_ASC' @@ -6488,8 +7011,6 @@ export type ConfigSecretsModuleOrderBy = | 'PRIVATE_SCHEMA_NAME_DESC' | 'TABLE_ID_ASC' | 'TABLE_ID_DESC' - | 'CONFIG_DEFINITIONS_TABLE_ID_ASC' - | 'CONFIG_DEFINITIONS_TABLE_ID_DESC' | 'TABLE_NAME_ASC' | 'TABLE_NAME_DESC' | 'API_NAME_ASC' @@ -6501,14 +7022,136 @@ export type ConfigSecretsModuleOrderBy = | 'PREFIX_ASC' | 'PREFIX_DESC' | 'ENTITY_TABLE_ID_ASC' + | 'ENTITY_TABLE_ID_DESC'; +export type DbPoolConfigOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'PRESET_SLUG_ASC' + | 'PRESET_SLUG_DESC' + | 'DOMAIN_ASC' + | 'DOMAIN_DESC' + | 'POOL_OWNER_ID_ASC' + | 'POOL_OWNER_ID_DESC' + | 'MIN_ASC' + | 'MIN_DESC' + | 'MAX_ASC' + | 'MAX_DESC' + | 'WARM_TTL_ASC' + | 'WARM_TTL_DESC' + | 'ENABLED_ASC' + | 'ENABLED_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +export type RealtimeModuleOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'PRIVATE_SCHEMA_ID_ASC' + | 'PRIVATE_SCHEMA_ID_DESC' + | 'SUBSCRIPTIONS_SCHEMA_ID_ASC' + | 'SUBSCRIPTIONS_SCHEMA_ID_DESC' + | 'CHANGE_LOG_TABLE_ID_ASC' + | 'CHANGE_LOG_TABLE_ID_DESC' + | 'LISTENER_NODE_TABLE_ID_ASC' + | 'LISTENER_NODE_TABLE_ID_DESC' + | 'SOURCE_REGISTRY_TABLE_ID_ASC' + | 'SOURCE_REGISTRY_TABLE_ID_DESC' + | 'RETENTION_HOURS_ASC' + | 'RETENTION_HOURS_DESC' + | 'PREMAKE_ASC' + | 'PREMAKE_DESC' + | 'INTERVAL_ASC' + | 'INTERVAL_DESC' + | 'NOTIFY_CHANNEL_ASC' + | 'NOTIFY_CHANNEL_DESC' + | 'API_NAME_ASC' + | 'API_NAME_DESC' + | 'PRIVATE_API_NAME_ASC' + | 'PRIVATE_API_NAME_DESC'; +export type InfraSecretsModuleOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'PRIVATE_SCHEMA_ID_ASC' + | 'PRIVATE_SCHEMA_ID_DESC' + | 'PUBLIC_SCHEMA_NAME_ASC' + | 'PUBLIC_SCHEMA_NAME_DESC' + | 'PRIVATE_SCHEMA_NAME_ASC' + | 'PRIVATE_SCHEMA_NAME_DESC' + | 'SECRETS_TABLE_ID_ASC' + | 'SECRETS_TABLE_ID_DESC' + | 'SECRETS_TABLE_NAME_ASC' + | 'SECRETS_TABLE_NAME_DESC' + | 'API_NAME_ASC' + | 'API_NAME_DESC' + | 'PRIVATE_API_NAME_ASC' + | 'PRIVATE_API_NAME_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC' + | 'ENTITY_TABLE_ID_ASC' | 'ENTITY_TABLE_ID_DESC' + | 'ENTITY_FIELD_ASC' + | 'ENTITY_FIELD_DESC' | 'POLICIES_ASC' | 'POLICIES_DESC' | 'PROVISIONS_ASC' - | 'PROVISIONS_DESC' - | 'HAS_CONFIG_ASC' - | 'HAS_CONFIG_DESC'; -export type GraphModuleOrderBy = + | 'PROVISIONS_DESC'; +export type InternalSecretsModuleOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'PRIVATE_SCHEMA_ID_ASC' + | 'PRIVATE_SCHEMA_ID_DESC' + | 'PUBLIC_SCHEMA_NAME_ASC' + | 'PUBLIC_SCHEMA_NAME_DESC' + | 'PRIVATE_SCHEMA_NAME_ASC' + | 'PRIVATE_SCHEMA_NAME_DESC' + | 'INTERNAL_SECRETS_TABLE_ID_ASC' + | 'INTERNAL_SECRETS_TABLE_ID_DESC' + | 'INTERNAL_SECRETS_TABLE_NAME_ASC' + | 'INTERNAL_SECRETS_TABLE_NAME_DESC' + | 'API_NAME_ASC' + | 'API_NAME_DESC' + | 'PRIVATE_API_NAME_ASC' + | 'PRIVATE_API_NAME_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC' + | 'ENTITY_TABLE_ID_ASC' + | 'ENTITY_TABLE_ID_DESC' + | 'ENTITY_FIELD_ASC' + | 'ENTITY_FIELD_DESC' + | 'POLICIES_ASC' + | 'POLICIES_DESC' + | 'PROVISIONS_ASC' + | 'PROVISIONS_DESC'; +export type DbPresetModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -6530,8 +7173,10 @@ export type GraphModuleOrderBy = | 'PREFIX_DESC' | 'MERKLE_STORE_MODULE_ID_ASC' | 'MERKLE_STORE_MODULE_ID_DESC' - | 'GRAPHS_TABLE_ID_ASC' - | 'GRAPHS_TABLE_ID_DESC' + | 'DB_PRESETS_TABLE_ID_ASC' + | 'DB_PRESETS_TABLE_ID_DESC' + | 'STORE_NAME_ASC' + | 'STORE_NAME_DESC' | 'API_NAME_ASC' | 'API_NAME_DESC' | 'PRIVATE_API_NAME_ASC' @@ -6542,11 +7187,9 @@ export type GraphModuleOrderBy = | 'POLICIES_DESC' | 'PROVISIONS_ASC' | 'PROVISIONS_DESC' - | 'DEFAULT_PERMISSIONS_ASC' - | 'DEFAULT_PERMISSIONS_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC'; -export type MerkleStoreModuleOrderBy = +export type GraphModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -6554,34 +7197,36 @@ export type MerkleStoreModuleOrderBy = | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' - | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC' + | 'ENTITY_FIELD_ASC' + | 'ENTITY_FIELD_DESC' + | 'PUBLIC_SCHEMA_ID_ASC' + | 'PUBLIC_SCHEMA_ID_DESC' | 'PRIVATE_SCHEMA_ID_ASC' | 'PRIVATE_SCHEMA_ID_DESC' | 'PUBLIC_SCHEMA_NAME_ASC' | 'PUBLIC_SCHEMA_NAME_DESC' | 'PRIVATE_SCHEMA_NAME_ASC' | 'PRIVATE_SCHEMA_NAME_DESC' - | 'OBJECT_TABLE_ID_ASC' - | 'OBJECT_TABLE_ID_DESC' - | 'STORE_TABLE_ID_ASC' - | 'STORE_TABLE_ID_DESC' - | 'COMMIT_TABLE_ID_ASC' - | 'COMMIT_TABLE_ID_DESC' - | 'REF_TABLE_ID_ASC' - | 'REF_TABLE_ID_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' | 'PREFIX_ASC' | 'PREFIX_DESC' + | 'MERKLE_STORE_MODULE_ID_ASC' + | 'MERKLE_STORE_MODULE_ID_DESC' + | 'GRAPHS_TABLE_ID_ASC' + | 'GRAPHS_TABLE_ID_DESC' | 'API_NAME_ASC' | 'API_NAME_DESC' | 'PRIVATE_API_NAME_ASC' | 'PRIVATE_API_NAME_DESC' - | 'SCOPE_ASC' - | 'SCOPE_DESC' - | 'FUNCTION_PREFIX_ASC' - | 'FUNCTION_PREFIX_DESC' - | 'PERMISSION_KEY_ASC' - | 'PERMISSION_KEY_DESC' + | 'ENTITY_TABLE_ID_ASC' + | 'ENTITY_TABLE_ID_DESC' + | 'POLICIES_ASC' + | 'POLICIES_DESC' + | 'PROVISIONS_ASC' + | 'PROVISIONS_DESC' + | 'DEFAULT_PERMISSIONS_ASC' + | 'DEFAULT_PERMISSIONS_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC'; export type RateLimitMetersModuleOrderBy = @@ -6622,7 +7267,7 @@ export type RateLimitMetersModuleOrderBy = | 'API_NAME_DESC' | 'PRIVATE_API_NAME_ASC' | 'PRIVATE_API_NAME_DESC'; -export type RealtimeModuleOrderBy = +export type InfraConfigModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -6630,30 +7275,34 @@ export type RealtimeModuleOrderBy = | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' + | 'ENTITY_FIELD_ASC' + | 'ENTITY_FIELD_DESC' | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' | 'PRIVATE_SCHEMA_ID_ASC' | 'PRIVATE_SCHEMA_ID_DESC' - | 'SUBSCRIPTIONS_SCHEMA_ID_ASC' - | 'SUBSCRIPTIONS_SCHEMA_ID_DESC' - | 'CHANGE_LOG_TABLE_ID_ASC' - | 'CHANGE_LOG_TABLE_ID_DESC' - | 'LISTENER_NODE_TABLE_ID_ASC' - | 'LISTENER_NODE_TABLE_ID_DESC' - | 'SOURCE_REGISTRY_TABLE_ID_ASC' - | 'SOURCE_REGISTRY_TABLE_ID_DESC' - | 'RETENTION_HOURS_ASC' - | 'RETENTION_HOURS_DESC' - | 'PREMAKE_ASC' - | 'PREMAKE_DESC' - | 'INTERVAL_ASC' - | 'INTERVAL_DESC' - | 'NOTIFY_CHANNEL_ASC' - | 'NOTIFY_CHANNEL_DESC' + | 'PUBLIC_SCHEMA_NAME_ASC' + | 'PUBLIC_SCHEMA_NAME_DESC' + | 'PRIVATE_SCHEMA_NAME_ASC' + | 'PRIVATE_SCHEMA_NAME_DESC' + | 'CONFIG_TABLE_ID_ASC' + | 'CONFIG_TABLE_ID_DESC' + | 'CONFIG_TABLE_NAME_ASC' + | 'CONFIG_TABLE_NAME_DESC' | 'API_NAME_ASC' | 'API_NAME_DESC' | 'PRIVATE_API_NAME_ASC' - | 'PRIVATE_API_NAME_DESC'; + | 'PRIVATE_API_NAME_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC' + | 'ENTITY_TABLE_ID_ASC' + | 'ENTITY_TABLE_ID_DESC' + | 'POLICIES_ASC' + | 'POLICIES_DESC' + | 'PROVISIONS_ASC' + | 'PROVISIONS_DESC'; export type WebauthnAuthModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -6690,7 +7339,7 @@ export type WebauthnAuthModuleOrderBy = | 'RESIDENT_KEY_DESC' | 'CHALLENGE_EXPIRY_ASC' | 'CHALLENGE_EXPIRY_DESC'; -export type FunctionInvocationModuleOrderBy = +export type PrincipalAuthModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -6700,36 +7349,66 @@ export type FunctionInvocationModuleOrderBy = | 'DATABASE_ID_DESC' | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' - | 'PRIVATE_SCHEMA_ID_ASC' - | 'PRIVATE_SCHEMA_ID_DESC' - | 'PUBLIC_SCHEMA_NAME_ASC' - | 'PUBLIC_SCHEMA_NAME_DESC' - | 'PRIVATE_SCHEMA_NAME_ASC' - | 'PRIVATE_SCHEMA_NAME_DESC' - | 'INVOCATIONS_TABLE_ID_ASC' - | 'INVOCATIONS_TABLE_ID_DESC' - | 'EXECUTION_LOGS_TABLE_ID_ASC' - | 'EXECUTION_LOGS_TABLE_ID_DESC' - | 'INVOCATIONS_TABLE_NAME_ASC' - | 'INVOCATIONS_TABLE_NAME_DESC' - | 'EXECUTION_LOGS_TABLE_NAME_ASC' - | 'EXECUTION_LOGS_TABLE_NAME_DESC' + | 'PRINCIPALS_TABLE_ID_ASC' + | 'PRINCIPALS_TABLE_ID_DESC' + | 'PRINCIPAL_ENTITIES_TABLE_ID_ASC' + | 'PRINCIPAL_ENTITIES_TABLE_ID_DESC' + | 'PRINCIPAL_SCOPE_OVERRIDES_TABLE_ID_ASC' + | 'PRINCIPAL_SCOPE_OVERRIDES_TABLE_ID_DESC' + | 'USERS_TABLE_ID_ASC' + | 'USERS_TABLE_ID_DESC' + | 'SESSIONS_TABLE_ID_ASC' + | 'SESSIONS_TABLE_ID_DESC' + | 'SESSION_CREDENTIALS_TABLE_ID_ASC' + | 'SESSION_CREDENTIALS_TABLE_ID_DESC' + | 'AUDITS_TABLE_ID_ASC' + | 'AUDITS_TABLE_ID_DESC' + | 'PRINCIPALS_TABLE_NAME_ASC' + | 'PRINCIPALS_TABLE_NAME_DESC' + | 'CREATE_PRINCIPAL_FUNCTION_ASC' + | 'CREATE_PRINCIPAL_FUNCTION_DESC' + | 'DELETE_PRINCIPAL_FUNCTION_ASC' + | 'DELETE_PRINCIPAL_FUNCTION_DESC' + | 'CREATE_ORG_PRINCIPAL_FUNCTION_ASC' + | 'CREATE_ORG_PRINCIPAL_FUNCTION_DESC' + | 'DELETE_ORG_PRINCIPAL_FUNCTION_ASC' + | 'DELETE_ORG_PRINCIPAL_FUNCTION_DESC' + | 'CREATE_ORG_API_KEY_FUNCTION_ASC' + | 'CREATE_ORG_API_KEY_FUNCTION_DESC' + | 'REVOKE_ORG_API_KEY_FUNCTION_ASC' + | 'REVOKE_ORG_API_KEY_FUNCTION_DESC' | 'API_NAME_ASC' - | 'API_NAME_DESC' - | 'PRIVATE_API_NAME_ASC' - | 'PRIVATE_API_NAME_DESC' - | 'SCOPE_ASC' - | 'SCOPE_DESC' - | 'PREFIX_ASC' - | 'PREFIX_DESC' - | 'ENTITY_TABLE_ID_ASC' - | 'ENTITY_TABLE_ID_DESC' - | 'POLICIES_ASC' - | 'POLICIES_DESC' - | 'PROVISIONS_ASC' - | 'PROVISIONS_DESC' - | 'DEFAULT_PERMISSIONS_ASC' - | 'DEFAULT_PERMISSIONS_DESC'; + | 'API_NAME_DESC'; +export type DbPoolOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'PRESET_SLUG_ASC' + | 'PRESET_SLUG_DESC' + | 'PRESET_COMMIT_ID_ASC' + | 'PRESET_COMMIT_ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'STATUS_ASC' + | 'STATUS_DESC' + | 'ERROR_MESSAGE_ASC' + | 'ERROR_MESSAGE_DESC' + | 'EXPIRES_AT_ASC' + | 'EXPIRES_AT_DESC' + | 'CLAIMED_BY_ASC' + | 'CLAIMED_BY_DESC' + | 'CLAIMED_AT_ASC' + | 'CLAIMED_AT_DESC' + | 'BOOTSTRAP_STATUS_ASC' + | 'BOOTSTRAP_STATUS_DESC' + | 'BOOTSTRAP_ERROR_ASC' + | 'BOOTSTRAP_ERROR_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; export type FunctionModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -6738,6 +7417,8 @@ export type FunctionModuleOrderBy = | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' + | 'ENTITY_FIELD_ASC' + | 'ENTITY_FIELD_DESC' | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' | 'PRIVATE_SCHEMA_ID_ASC' @@ -6748,12 +7429,8 @@ export type FunctionModuleOrderBy = | 'PRIVATE_SCHEMA_NAME_DESC' | 'DEFINITIONS_TABLE_ID_ASC' | 'DEFINITIONS_TABLE_ID_DESC' - | 'SECRET_DEFINITIONS_TABLE_ID_ASC' - | 'SECRET_DEFINITIONS_TABLE_ID_DESC' | 'DEFINITIONS_TABLE_NAME_ASC' | 'DEFINITIONS_TABLE_NAME_DESC' - | 'SECRET_DEFINITIONS_TABLE_NAME_ASC' - | 'SECRET_DEFINITIONS_TABLE_NAME_DESC' | 'API_NAME_ASC' | 'API_NAME_DESC' | 'PRIVATE_API_NAME_ASC' @@ -6770,7 +7447,7 @@ export type FunctionModuleOrderBy = | 'PROVISIONS_DESC' | 'DEFAULT_PERMISSIONS_ASC' | 'DEFAULT_PERMISSIONS_DESC'; -export type InvitesModuleOrderBy = +export type MerkleStoreModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -6778,6 +7455,8 @@ export type InvitesModuleOrderBy = | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' + | 'ENTITY_FIELD_ASC' + | 'ENTITY_FIELD_DESC' | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' | 'PRIVATE_SCHEMA_ID_ASC' @@ -6786,71 +7465,69 @@ export type InvitesModuleOrderBy = | 'PUBLIC_SCHEMA_NAME_DESC' | 'PRIVATE_SCHEMA_NAME_ASC' | 'PRIVATE_SCHEMA_NAME_DESC' - | 'EMAILS_TABLE_ID_ASC' - | 'EMAILS_TABLE_ID_DESC' - | 'USERS_TABLE_ID_ASC' - | 'USERS_TABLE_ID_DESC' - | 'INVITES_TABLE_ID_ASC' - | 'INVITES_TABLE_ID_DESC' - | 'CLAIMED_INVITES_TABLE_ID_ASC' - | 'CLAIMED_INVITES_TABLE_ID_DESC' - | 'INVITES_TABLE_NAME_ASC' - | 'INVITES_TABLE_NAME_DESC' - | 'CLAIMED_INVITES_TABLE_NAME_ASC' - | 'CLAIMED_INVITES_TABLE_NAME_DESC' - | 'SUBMIT_INVITE_CODE_FUNCTION_ASC' - | 'SUBMIT_INVITE_CODE_FUNCTION_DESC' - | 'SCOPE_ASC' - | 'SCOPE_DESC' + | 'OBJECT_TABLE_ID_ASC' + | 'OBJECT_TABLE_ID_DESC' + | 'STORE_TABLE_ID_ASC' + | 'STORE_TABLE_ID_DESC' + | 'COMMIT_TABLE_ID_ASC' + | 'COMMIT_TABLE_ID_DESC' + | 'REF_TABLE_ID_ASC' + | 'REF_TABLE_ID_DESC' | 'PREFIX_ASC' | 'PREFIX_DESC' - | 'ENTITY_TABLE_ID_ASC' - | 'ENTITY_TABLE_ID_DESC' | 'API_NAME_ASC' | 'API_NAME_DESC' | 'PRIVATE_API_NAME_ASC' - | 'PRIVATE_API_NAME_DESC'; -export type PrincipalAuthModuleOrderBy = + | 'PRIVATE_API_NAME_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'FUNCTION_PREFIX_ASC' + | 'FUNCTION_PREFIX_DESC' + | 'PERMISSION_KEY_ASC' + | 'PERMISSION_KEY_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC'; +export type DatabaseProvisionModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' + | 'DATABASE_NAME_ASC' + | 'DATABASE_NAME_DESC' + | 'OWNER_ID_ASC' + | 'OWNER_ID_DESC' + | 'SUBDOMAIN_ASC' + | 'SUBDOMAIN_DESC' + | 'DOMAIN_ASC' + | 'DOMAIN_DESC' + | 'MODULES_ASC' + | 'MODULES_DESC' + | 'OPTIONS_ASC' + | 'OPTIONS_DESC' + | 'BOOTSTRAP_USER_ASC' + | 'BOOTSTRAP_USER_DESC' + | 'STATUS_ASC' + | 'STATUS_DESC' + | 'ERROR_MESSAGE_ASC' + | 'ERROR_MESSAGE_DESC' + | 'SOURCE_DATABASE_ID_ASC' + | 'SOURCE_DATABASE_ID_DESC' + | 'BOOTSTRAP_STATUS_ASC' + | 'BOOTSTRAP_STATUS_DESC' + | 'BOOTSTRAP_ERROR_ASC' + | 'BOOTSTRAP_ERROR_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' - | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC' - | 'PRINCIPALS_TABLE_ID_ASC' - | 'PRINCIPALS_TABLE_ID_DESC' - | 'PRINCIPAL_ENTITIES_TABLE_ID_ASC' - | 'PRINCIPAL_ENTITIES_TABLE_ID_DESC' - | 'PRINCIPAL_SCOPE_OVERRIDES_TABLE_ID_ASC' - | 'PRINCIPAL_SCOPE_OVERRIDES_TABLE_ID_DESC' - | 'USERS_TABLE_ID_ASC' - | 'USERS_TABLE_ID_DESC' - | 'SESSIONS_TABLE_ID_ASC' - | 'SESSIONS_TABLE_ID_DESC' - | 'SESSION_CREDENTIALS_TABLE_ID_ASC' - | 'SESSION_CREDENTIALS_TABLE_ID_DESC' - | 'AUDITS_TABLE_ID_ASC' - | 'AUDITS_TABLE_ID_DESC' - | 'PRINCIPALS_TABLE_NAME_ASC' - | 'PRINCIPALS_TABLE_NAME_DESC' - | 'CREATE_PRINCIPAL_FUNCTION_ASC' - | 'CREATE_PRINCIPAL_FUNCTION_DESC' - | 'DELETE_PRINCIPAL_FUNCTION_ASC' - | 'DELETE_PRINCIPAL_FUNCTION_DESC' - | 'CREATE_ORG_PRINCIPAL_FUNCTION_ASC' - | 'CREATE_ORG_PRINCIPAL_FUNCTION_DESC' - | 'DELETE_ORG_PRINCIPAL_FUNCTION_ASC' - | 'DELETE_ORG_PRINCIPAL_FUNCTION_DESC' - | 'CREATE_ORG_API_KEY_FUNCTION_ASC' - | 'CREATE_ORG_API_KEY_FUNCTION_DESC' - | 'REVOKE_ORG_API_KEY_FUNCTION_ASC' - | 'REVOKE_ORG_API_KEY_FUNCTION_DESC' - | 'API_NAME_ASC' - | 'API_NAME_DESC'; -export type ComputeLogModuleOrderBy = + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'COMPLETED_AT_ASC' + | 'COMPLETED_AT_DESC' + | 'FULFILLED_AT_ASC' + | 'FULFILLED_AT_DESC'; +export type FunctionInvocationModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -6858,6 +7535,8 @@ export type ComputeLogModuleOrderBy = | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' + | 'ENTITY_FIELD_ASC' + | 'ENTITY_FIELD_DESC' | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' | 'PRIVATE_SCHEMA_ID_ASC' @@ -6866,33 +7545,31 @@ export type ComputeLogModuleOrderBy = | 'PUBLIC_SCHEMA_NAME_DESC' | 'PRIVATE_SCHEMA_NAME_ASC' | 'PRIVATE_SCHEMA_NAME_DESC' - | 'COMPUTE_LOG_TABLE_ID_ASC' - | 'COMPUTE_LOG_TABLE_ID_DESC' - | 'COMPUTE_LOG_TABLE_NAME_ASC' - | 'COMPUTE_LOG_TABLE_NAME_DESC' - | 'USAGE_DAILY_TABLE_ID_ASC' - | 'USAGE_DAILY_TABLE_ID_DESC' - | 'USAGE_DAILY_TABLE_NAME_ASC' - | 'USAGE_DAILY_TABLE_NAME_DESC' - | 'INTERVAL_ASC' - | 'INTERVAL_DESC' - | 'RETENTION_ASC' - | 'RETENTION_DESC' - | 'PREMAKE_ASC' - | 'PREMAKE_DESC' + | 'INVOCATIONS_TABLE_ID_ASC' + | 'INVOCATIONS_TABLE_ID_DESC' + | 'EXECUTION_LOGS_TABLE_ID_ASC' + | 'EXECUTION_LOGS_TABLE_ID_DESC' + | 'INVOCATIONS_TABLE_NAME_ASC' + | 'INVOCATIONS_TABLE_NAME_DESC' + | 'EXECUTION_LOGS_TABLE_NAME_ASC' + | 'EXECUTION_LOGS_TABLE_NAME_DESC' + | 'API_NAME_ASC' + | 'API_NAME_DESC' + | 'PRIVATE_API_NAME_ASC' + | 'PRIVATE_API_NAME_DESC' | 'SCOPE_ASC' | 'SCOPE_DESC' - | 'ACTOR_FK_TABLE_ID_ASC' - | 'ACTOR_FK_TABLE_ID_DESC' - | 'ENTITY_FK_TABLE_ID_ASC' - | 'ENTITY_FK_TABLE_ID_DESC' | 'PREFIX_ASC' | 'PREFIX_DESC' - | 'API_NAME_ASC' - | 'API_NAME_DESC' - | 'PRIVATE_API_NAME_ASC' - | 'PRIVATE_API_NAME_DESC'; -export type InferenceLogModuleOrderBy = + | 'ENTITY_TABLE_ID_ASC' + | 'ENTITY_TABLE_ID_DESC' + | 'POLICIES_ASC' + | 'POLICIES_DESC' + | 'PROVISIONS_ASC' + | 'PROVISIONS_DESC' + | 'DEFAULT_PERMISSIONS_ASC' + | 'DEFAULT_PERMISSIONS_DESC'; +export type InvitesModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -6900,6 +7577,8 @@ export type InferenceLogModuleOrderBy = | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' + | 'ENTITY_FIELD_ASC' + | 'ENTITY_FIELD_DESC' | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' | 'PRIVATE_SCHEMA_ID_ASC' @@ -6908,28 +7587,26 @@ export type InferenceLogModuleOrderBy = | 'PUBLIC_SCHEMA_NAME_DESC' | 'PRIVATE_SCHEMA_NAME_ASC' | 'PRIVATE_SCHEMA_NAME_DESC' - | 'INFERENCE_LOG_TABLE_ID_ASC' - | 'INFERENCE_LOG_TABLE_ID_DESC' - | 'INFERENCE_LOG_TABLE_NAME_ASC' - | 'INFERENCE_LOG_TABLE_NAME_DESC' - | 'USAGE_DAILY_TABLE_ID_ASC' - | 'USAGE_DAILY_TABLE_ID_DESC' - | 'USAGE_DAILY_TABLE_NAME_ASC' - | 'USAGE_DAILY_TABLE_NAME_DESC' - | 'INTERVAL_ASC' - | 'INTERVAL_DESC' - | 'RETENTION_ASC' - | 'RETENTION_DESC' - | 'PREMAKE_ASC' - | 'PREMAKE_DESC' + | 'EMAILS_TABLE_ID_ASC' + | 'EMAILS_TABLE_ID_DESC' + | 'USERS_TABLE_ID_ASC' + | 'USERS_TABLE_ID_DESC' + | 'INVITES_TABLE_ID_ASC' + | 'INVITES_TABLE_ID_DESC' + | 'CLAIMED_INVITES_TABLE_ID_ASC' + | 'CLAIMED_INVITES_TABLE_ID_DESC' + | 'INVITES_TABLE_NAME_ASC' + | 'INVITES_TABLE_NAME_DESC' + | 'CLAIMED_INVITES_TABLE_NAME_ASC' + | 'CLAIMED_INVITES_TABLE_NAME_DESC' + | 'SUBMIT_INVITE_CODE_FUNCTION_ASC' + | 'SUBMIT_INVITE_CODE_FUNCTION_DESC' | 'SCOPE_ASC' | 'SCOPE_DESC' - | 'ACTOR_FK_TABLE_ID_ASC' - | 'ACTOR_FK_TABLE_ID_DESC' - | 'ENTITY_FK_TABLE_ID_ASC' - | 'ENTITY_FK_TABLE_ID_DESC' | 'PREFIX_ASC' | 'PREFIX_DESC' + | 'ENTITY_TABLE_ID_ASC' + | 'ENTITY_TABLE_ID_DESC' | 'API_NAME_ASC' | 'API_NAME_DESC' | 'PRIVATE_API_NAME_ASC' @@ -6942,6 +7619,8 @@ export type NamespaceModuleOrderBy = | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' + | 'ENTITY_FIELD_ASC' + | 'ENTITY_FIELD_DESC' | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' | 'PRIVATE_SCHEMA_ID_ASC' @@ -6968,15 +7647,13 @@ export type NamespaceModuleOrderBy = | 'PREFIX_DESC' | 'ENTITY_TABLE_ID_ASC' | 'ENTITY_TABLE_ID_DESC' - | 'PLATFORM_NAMESPACES_TABLE_ID_ASC' - | 'PLATFORM_NAMESPACES_TABLE_ID_DESC' | 'POLICIES_ASC' | 'POLICIES_DESC' | 'PROVISIONS_ASC' | 'PROVISIONS_DESC' | 'DEFAULT_PERMISSIONS_ASC' | 'DEFAULT_PERMISSIONS_DESC'; -export type ResourceModuleOrderBy = +export type PlansModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -6992,33 +7669,37 @@ export type ResourceModuleOrderBy = | 'PUBLIC_SCHEMA_NAME_DESC' | 'PRIVATE_SCHEMA_NAME_ASC' | 'PRIVATE_SCHEMA_NAME_DESC' - | 'RESOURCES_TABLE_ID_ASC' - | 'RESOURCES_TABLE_ID_DESC' - | 'RESOURCE_EVENTS_TABLE_ID_ASC' - | 'RESOURCE_EVENTS_TABLE_ID_DESC' - | 'RESOURCES_TABLE_NAME_ASC' - | 'RESOURCES_TABLE_NAME_DESC' - | 'RESOURCE_EVENTS_TABLE_NAME_ASC' - | 'RESOURCE_EVENTS_TABLE_NAME_DESC' + | 'PLANS_TABLE_ID_ASC' + | 'PLANS_TABLE_ID_DESC' + | 'PLANS_TABLE_NAME_ASC' + | 'PLANS_TABLE_NAME_DESC' + | 'PLAN_LIMITS_TABLE_ID_ASC' + | 'PLAN_LIMITS_TABLE_ID_DESC' + | 'PLAN_LIMITS_TABLE_NAME_ASC' + | 'PLAN_LIMITS_TABLE_NAME_DESC' + | 'PLAN_PRICING_TABLE_ID_ASC' + | 'PLAN_PRICING_TABLE_ID_DESC' + | 'PLAN_OVERRIDES_TABLE_ID_ASC' + | 'PLAN_OVERRIDES_TABLE_ID_DESC' + | 'PLAN_METER_LIMITS_TABLE_ID_ASC' + | 'PLAN_METER_LIMITS_TABLE_ID_DESC' + | 'PLAN_CAPS_TABLE_ID_ASC' + | 'PLAN_CAPS_TABLE_ID_DESC' + | 'APPLY_PLAN_FUNCTION_ASC' + | 'APPLY_PLAN_FUNCTION_DESC' + | 'APPLY_PLAN_AGGREGATE_FUNCTION_ASC' + | 'APPLY_PLAN_AGGREGATE_FUNCTION_DESC' + | 'APPLY_BILLING_PLAN_FUNCTION_ASC' + | 'APPLY_BILLING_PLAN_FUNCTION_DESC' + | 'APPLY_PLAN_CAPS_FUNCTION_ASC' + | 'APPLY_PLAN_CAPS_FUNCTION_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC' | 'API_NAME_ASC' | 'API_NAME_DESC' | 'PRIVATE_API_NAME_ASC' - | 'PRIVATE_API_NAME_DESC' - | 'SCOPE_ASC' - | 'SCOPE_DESC' - | 'PREFIX_ASC' - | 'PREFIX_DESC' - | 'ENTITY_TABLE_ID_ASC' - | 'ENTITY_TABLE_ID_DESC' - | 'NAMESPACE_MODULE_ID_ASC' - | 'NAMESPACE_MODULE_ID_DESC' - | 'POLICIES_ASC' - | 'POLICIES_DESC' - | 'PROVISIONS_ASC' - | 'PROVISIONS_DESC' - | 'DEFAULT_PERMISSIONS_ASC' - | 'DEFAULT_PERMISSIONS_DESC'; -export type StorageLogModuleOrderBy = + | 'PRIVATE_API_NAME_DESC'; +export type ComputeLogModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -7026,6 +7707,8 @@ export type StorageLogModuleOrderBy = | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' + | 'ENTITY_FIELD_ASC' + | 'ENTITY_FIELD_DESC' | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' | 'PRIVATE_SCHEMA_ID_ASC' @@ -7034,10 +7717,10 @@ export type StorageLogModuleOrderBy = | 'PUBLIC_SCHEMA_NAME_DESC' | 'PRIVATE_SCHEMA_NAME_ASC' | 'PRIVATE_SCHEMA_NAME_DESC' - | 'STORAGE_LOG_TABLE_ID_ASC' - | 'STORAGE_LOG_TABLE_ID_DESC' - | 'STORAGE_LOG_TABLE_NAME_ASC' - | 'STORAGE_LOG_TABLE_NAME_DESC' + | 'COMPUTE_LOG_TABLE_ID_ASC' + | 'COMPUTE_LOG_TABLE_ID_DESC' + | 'COMPUTE_LOG_TABLE_NAME_ASC' + | 'COMPUTE_LOG_TABLE_NAME_DESC' | 'USAGE_DAILY_TABLE_ID_ASC' | 'USAGE_DAILY_TABLE_ID_DESC' | 'USAGE_DAILY_TABLE_NAME_ASC' @@ -7060,7 +7743,7 @@ export type StorageLogModuleOrderBy = | 'API_NAME_DESC' | 'PRIVATE_API_NAME_ASC' | 'PRIVATE_API_NAME_DESC'; -export type TransferLogModuleOrderBy = +export type InferenceLogModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -7068,6 +7751,8 @@ export type TransferLogModuleOrderBy = | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' + | 'ENTITY_FIELD_ASC' + | 'ENTITY_FIELD_DESC' | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' | 'PRIVATE_SCHEMA_ID_ASC' @@ -7076,10 +7761,10 @@ export type TransferLogModuleOrderBy = | 'PUBLIC_SCHEMA_NAME_DESC' | 'PRIVATE_SCHEMA_NAME_ASC' | 'PRIVATE_SCHEMA_NAME_DESC' - | 'TRANSFER_LOG_TABLE_ID_ASC' - | 'TRANSFER_LOG_TABLE_ID_DESC' - | 'TRANSFER_LOG_TABLE_NAME_ASC' - | 'TRANSFER_LOG_TABLE_NAME_DESC' + | 'INFERENCE_LOG_TABLE_ID_ASC' + | 'INFERENCE_LOG_TABLE_ID_DESC' + | 'INFERENCE_LOG_TABLE_NAME_ASC' + | 'INFERENCE_LOG_TABLE_NAME_DESC' | 'USAGE_DAILY_TABLE_ID_ASC' | 'USAGE_DAILY_TABLE_ID_DESC' | 'USAGE_DAILY_TABLE_NAME_ASC' @@ -7102,7 +7787,7 @@ export type TransferLogModuleOrderBy = | 'API_NAME_DESC' | 'PRIVATE_API_NAME_ASC' | 'PRIVATE_API_NAME_DESC'; -export type FunctionDeploymentModuleOrderBy = +export type StorageLogModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -7110,6 +7795,8 @@ export type FunctionDeploymentModuleOrderBy = | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' + | 'ENTITY_FIELD_ASC' + | 'ENTITY_FIELD_DESC' | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' | 'PRIVATE_SCHEMA_ID_ASC' @@ -7118,35 +7805,33 @@ export type FunctionDeploymentModuleOrderBy = | 'PUBLIC_SCHEMA_NAME_DESC' | 'PRIVATE_SCHEMA_NAME_ASC' | 'PRIVATE_SCHEMA_NAME_DESC' - | 'DEPLOYMENTS_TABLE_ID_ASC' - | 'DEPLOYMENTS_TABLE_ID_DESC' - | 'DEPLOYMENT_EVENTS_TABLE_ID_ASC' - | 'DEPLOYMENT_EVENTS_TABLE_ID_DESC' - | 'DEPLOYMENTS_TABLE_NAME_ASC' - | 'DEPLOYMENTS_TABLE_NAME_DESC' - | 'DEPLOYMENT_EVENTS_TABLE_NAME_ASC' - | 'DEPLOYMENT_EVENTS_TABLE_NAME_DESC' - | 'API_NAME_ASC' - | 'API_NAME_DESC' - | 'PRIVATE_API_NAME_ASC' - | 'PRIVATE_API_NAME_DESC' + | 'STORAGE_LOG_TABLE_ID_ASC' + | 'STORAGE_LOG_TABLE_ID_DESC' + | 'STORAGE_LOG_TABLE_NAME_ASC' + | 'STORAGE_LOG_TABLE_NAME_DESC' + | 'USAGE_DAILY_TABLE_ID_ASC' + | 'USAGE_DAILY_TABLE_ID_DESC' + | 'USAGE_DAILY_TABLE_NAME_ASC' + | 'USAGE_DAILY_TABLE_NAME_DESC' + | 'INTERVAL_ASC' + | 'INTERVAL_DESC' + | 'RETENTION_ASC' + | 'RETENTION_DESC' + | 'PREMAKE_ASC' + | 'PREMAKE_DESC' | 'SCOPE_ASC' | 'SCOPE_DESC' + | 'ACTOR_FK_TABLE_ID_ASC' + | 'ACTOR_FK_TABLE_ID_DESC' + | 'ENTITY_FK_TABLE_ID_ASC' + | 'ENTITY_FK_TABLE_ID_DESC' | 'PREFIX_ASC' | 'PREFIX_DESC' - | 'ENTITY_TABLE_ID_ASC' - | 'ENTITY_TABLE_ID_DESC' - | 'FUNCTION_MODULE_ID_ASC' - | 'FUNCTION_MODULE_ID_DESC' - | 'NAMESPACE_MODULE_ID_ASC' - | 'NAMESPACE_MODULE_ID_DESC' - | 'POLICIES_ASC' - | 'POLICIES_DESC' - | 'PROVISIONS_ASC' - | 'PROVISIONS_DESC' - | 'DEFAULT_PERMISSIONS_ASC' - | 'DEFAULT_PERMISSIONS_DESC'; -export type PlansModuleOrderBy = + | 'API_NAME_ASC' + | 'API_NAME_DESC' + | 'PRIVATE_API_NAME_ASC' + | 'PRIVATE_API_NAME_DESC'; +export type TransferLogModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -7154,6 +7839,8 @@ export type PlansModuleOrderBy = | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' + | 'ENTITY_FIELD_ASC' + | 'ENTITY_FIELD_DESC' | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' | 'PRIVATE_SCHEMA_ID_ASC' @@ -7162,30 +7849,26 @@ export type PlansModuleOrderBy = | 'PUBLIC_SCHEMA_NAME_DESC' | 'PRIVATE_SCHEMA_NAME_ASC' | 'PRIVATE_SCHEMA_NAME_DESC' - | 'PLANS_TABLE_ID_ASC' - | 'PLANS_TABLE_ID_DESC' - | 'PLANS_TABLE_NAME_ASC' - | 'PLANS_TABLE_NAME_DESC' - | 'PLAN_LIMITS_TABLE_ID_ASC' - | 'PLAN_LIMITS_TABLE_ID_DESC' - | 'PLAN_LIMITS_TABLE_NAME_ASC' - | 'PLAN_LIMITS_TABLE_NAME_DESC' - | 'PLAN_PRICING_TABLE_ID_ASC' - | 'PLAN_PRICING_TABLE_ID_DESC' - | 'PLAN_OVERRIDES_TABLE_ID_ASC' - | 'PLAN_OVERRIDES_TABLE_ID_DESC' - | 'PLAN_METER_LIMITS_TABLE_ID_ASC' - | 'PLAN_METER_LIMITS_TABLE_ID_DESC' - | 'PLAN_CAPS_TABLE_ID_ASC' - | 'PLAN_CAPS_TABLE_ID_DESC' - | 'APPLY_PLAN_FUNCTION_ASC' - | 'APPLY_PLAN_FUNCTION_DESC' - | 'APPLY_PLAN_AGGREGATE_FUNCTION_ASC' - | 'APPLY_PLAN_AGGREGATE_FUNCTION_DESC' - | 'APPLY_BILLING_PLAN_FUNCTION_ASC' - | 'APPLY_BILLING_PLAN_FUNCTION_DESC' - | 'APPLY_PLAN_CAPS_FUNCTION_ASC' - | 'APPLY_PLAN_CAPS_FUNCTION_DESC' + | 'TRANSFER_LOG_TABLE_ID_ASC' + | 'TRANSFER_LOG_TABLE_ID_DESC' + | 'TRANSFER_LOG_TABLE_NAME_ASC' + | 'TRANSFER_LOG_TABLE_NAME_DESC' + | 'USAGE_DAILY_TABLE_ID_ASC' + | 'USAGE_DAILY_TABLE_ID_DESC' + | 'USAGE_DAILY_TABLE_NAME_ASC' + | 'USAGE_DAILY_TABLE_NAME_DESC' + | 'INTERVAL_ASC' + | 'INTERVAL_DESC' + | 'RETENTION_ASC' + | 'RETENTION_DESC' + | 'PREMAKE_ASC' + | 'PREMAKE_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'ACTOR_FK_TABLE_ID_ASC' + | 'ACTOR_FK_TABLE_ID_DESC' + | 'ENTITY_FK_TABLE_ID_ASC' + | 'ENTITY_FK_TABLE_ID_DESC' | 'PREFIX_ASC' | 'PREFIX_DESC' | 'API_NAME_ASC' @@ -7239,8 +7922,54 @@ export type BillingProviderModuleOrderBy = | 'API_NAME_ASC' | 'API_NAME_DESC' | 'PRIVATE_API_NAME_ASC' - | 'PRIVATE_API_NAME_DESC'; -export type DbUsageModuleOrderBy = + | 'PRIVATE_API_NAME_DESC'; +export type FunctionDeploymentModuleOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'ENTITY_FIELD_ASC' + | 'ENTITY_FIELD_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'PRIVATE_SCHEMA_ID_ASC' + | 'PRIVATE_SCHEMA_ID_DESC' + | 'PUBLIC_SCHEMA_NAME_ASC' + | 'PUBLIC_SCHEMA_NAME_DESC' + | 'PRIVATE_SCHEMA_NAME_ASC' + | 'PRIVATE_SCHEMA_NAME_DESC' + | 'DEPLOYMENTS_TABLE_ID_ASC' + | 'DEPLOYMENTS_TABLE_ID_DESC' + | 'DEPLOYMENT_EVENTS_TABLE_ID_ASC' + | 'DEPLOYMENT_EVENTS_TABLE_ID_DESC' + | 'DEPLOYMENTS_TABLE_NAME_ASC' + | 'DEPLOYMENTS_TABLE_NAME_DESC' + | 'DEPLOYMENT_EVENTS_TABLE_NAME_ASC' + | 'DEPLOYMENT_EVENTS_TABLE_NAME_DESC' + | 'API_NAME_ASC' + | 'API_NAME_DESC' + | 'PRIVATE_API_NAME_ASC' + | 'PRIVATE_API_NAME_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC' + | 'ENTITY_TABLE_ID_ASC' + | 'ENTITY_TABLE_ID_DESC' + | 'FUNCTION_MODULE_ID_ASC' + | 'FUNCTION_MODULE_ID_DESC' + | 'NAMESPACE_MODULE_ID_ASC' + | 'NAMESPACE_MODULE_ID_DESC' + | 'POLICIES_ASC' + | 'POLICIES_DESC' + | 'PROVISIONS_ASC' + | 'PROVISIONS_DESC' + | 'DEFAULT_PERMISSIONS_ASC' + | 'DEFAULT_PERMISSIONS_DESC'; +export type PermissionsModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -7248,6 +7977,8 @@ export type DbUsageModuleOrderBy = | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' + | 'ENTITY_FIELD_ASC' + | 'ENTITY_FIELD_DESC' | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' | 'PRIVATE_SCHEMA_ID_ASC' @@ -7256,34 +7987,32 @@ export type DbUsageModuleOrderBy = | 'PUBLIC_SCHEMA_NAME_DESC' | 'PRIVATE_SCHEMA_NAME_ASC' | 'PRIVATE_SCHEMA_NAME_DESC' - | 'TABLE_STATS_LOG_TABLE_ID_ASC' - | 'TABLE_STATS_LOG_TABLE_ID_DESC' - | 'TABLE_STATS_LOG_TABLE_NAME_ASC' - | 'TABLE_STATS_LOG_TABLE_NAME_DESC' - | 'TABLE_STATS_DAILY_TABLE_ID_ASC' - | 'TABLE_STATS_DAILY_TABLE_ID_DESC' - | 'TABLE_STATS_DAILY_TABLE_NAME_ASC' - | 'TABLE_STATS_DAILY_TABLE_NAME_DESC' - | 'QUERY_STATS_LOG_TABLE_ID_ASC' - | 'QUERY_STATS_LOG_TABLE_ID_DESC' - | 'QUERY_STATS_LOG_TABLE_NAME_ASC' - | 'QUERY_STATS_LOG_TABLE_NAME_DESC' - | 'QUERY_STATS_DAILY_TABLE_ID_ASC' - | 'QUERY_STATS_DAILY_TABLE_ID_DESC' - | 'QUERY_STATS_DAILY_TABLE_NAME_ASC' - | 'QUERY_STATS_DAILY_TABLE_NAME_DESC' - | 'INTERVAL_ASC' - | 'INTERVAL_DESC' - | 'RETENTION_ASC' - | 'RETENTION_DESC' - | 'PREMAKE_ASC' - | 'PREMAKE_DESC' + | 'TABLE_ID_ASC' + | 'TABLE_ID_DESC' + | 'TABLE_NAME_ASC' + | 'TABLE_NAME_DESC' + | 'DEFAULT_TABLE_ID_ASC' + | 'DEFAULT_TABLE_ID_DESC' + | 'DEFAULT_TABLE_NAME_ASC' + | 'DEFAULT_TABLE_NAME_DESC' + | 'BITLEN_ASC' + | 'BITLEN_DESC' | 'SCOPE_ASC' | 'SCOPE_DESC' | 'PREFIX_ASC' | 'PREFIX_DESC' - | 'DEFAULT_PERMISSIONS_ASC' - | 'DEFAULT_PERMISSIONS_DESC' + | 'ENTITY_TABLE_ID_ASC' + | 'ENTITY_TABLE_ID_DESC' + | 'ACTOR_TABLE_ID_ASC' + | 'ACTOR_TABLE_ID_DESC' + | 'GET_PADDED_MASK_ASC' + | 'GET_PADDED_MASK_DESC' + | 'GET_MASK_ASC' + | 'GET_MASK_DESC' + | 'GET_BY_MASK_ASC' + | 'GET_BY_MASK_DESC' + | 'GET_MASK_BY_NAME_ASC' + | 'GET_MASK_BY_NAME_DESC' | 'API_NAME_ASC' | 'API_NAME_DESC' | 'PRIVATE_API_NAME_ASC' @@ -7296,6 +8025,8 @@ export type GraphExecutionModuleOrderBy = | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' + | 'ENTITY_FIELD_ASC' + | 'ENTITY_FIELD_DESC' | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' | 'PRIVATE_SCHEMA_ID_ASC' @@ -7344,6 +8075,8 @@ export type HierarchyModuleOrderBy = | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' + | 'ENTITY_FIELD_ASC' + | 'ENTITY_FIELD_DESC' | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' | 'PRIVATE_SCHEMA_ID_ASC' @@ -7384,52 +8117,6 @@ export type HierarchyModuleOrderBy = | 'DEFAULT_PERMISSIONS_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC'; -export type PermissionsModuleOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC' - | 'PRIVATE_SCHEMA_ID_ASC' - | 'PRIVATE_SCHEMA_ID_DESC' - | 'PUBLIC_SCHEMA_NAME_ASC' - | 'PUBLIC_SCHEMA_NAME_DESC' - | 'PRIVATE_SCHEMA_NAME_ASC' - | 'PRIVATE_SCHEMA_NAME_DESC' - | 'TABLE_ID_ASC' - | 'TABLE_ID_DESC' - | 'TABLE_NAME_ASC' - | 'TABLE_NAME_DESC' - | 'DEFAULT_TABLE_ID_ASC' - | 'DEFAULT_TABLE_ID_DESC' - | 'DEFAULT_TABLE_NAME_ASC' - | 'DEFAULT_TABLE_NAME_DESC' - | 'BITLEN_ASC' - | 'BITLEN_DESC' - | 'SCOPE_ASC' - | 'SCOPE_DESC' - | 'PREFIX_ASC' - | 'PREFIX_DESC' - | 'ENTITY_TABLE_ID_ASC' - | 'ENTITY_TABLE_ID_DESC' - | 'ACTOR_TABLE_ID_ASC' - | 'ACTOR_TABLE_ID_DESC' - | 'GET_PADDED_MASK_ASC' - | 'GET_PADDED_MASK_DESC' - | 'GET_MASK_ASC' - | 'GET_MASK_DESC' - | 'GET_BY_MASK_ASC' - | 'GET_BY_MASK_DESC' - | 'GET_MASK_BY_NAME_ASC' - | 'GET_MASK_BY_NAME_DESC' - | 'API_NAME_ASC' - | 'API_NAME_DESC' - | 'PRIVATE_API_NAME_ASC' - | 'PRIVATE_API_NAME_DESC'; export type NotificationsModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -7438,6 +8125,8 @@ export type NotificationsModuleOrderBy = | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' + | 'ENTITY_FIELD_ASC' + | 'ENTITY_FIELD_DESC' | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' | 'PRIVATE_SCHEMA_ID_ASC' @@ -7480,6 +8169,58 @@ export type NotificationsModuleOrderBy = | 'API_NAME_DESC' | 'PRIVATE_API_NAME_ASC' | 'PRIVATE_API_NAME_DESC'; +export type RelationProvisionOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'RELATION_TYPE_ASC' + | 'RELATION_TYPE_DESC' + | 'SOURCE_TABLE_ID_ASC' + | 'SOURCE_TABLE_ID_DESC' + | 'TARGET_TABLE_ID_ASC' + | 'TARGET_TABLE_ID_DESC' + | 'FIELD_NAME_ASC' + | 'FIELD_NAME_DESC' + | 'DELETE_ACTION_ASC' + | 'DELETE_ACTION_DESC' + | 'IS_REQUIRED_ASC' + | 'IS_REQUIRED_DESC' + | 'API_REQUIRED_ASC' + | 'API_REQUIRED_DESC' + | 'JUNCTION_TABLE_ID_ASC' + | 'JUNCTION_TABLE_ID_DESC' + | 'JUNCTION_TABLE_NAME_ASC' + | 'JUNCTION_TABLE_NAME_DESC' + | 'JUNCTION_SCHEMA_ID_ASC' + | 'JUNCTION_SCHEMA_ID_DESC' + | 'SOURCE_FIELD_NAME_ASC' + | 'SOURCE_FIELD_NAME_DESC' + | 'TARGET_FIELD_NAME_ASC' + | 'TARGET_FIELD_NAME_DESC' + | 'USE_COMPOSITE_KEY_ASC' + | 'USE_COMPOSITE_KEY_DESC' + | 'CREATE_INDEX_ASC' + | 'CREATE_INDEX_DESC' + | 'EXPOSE_IN_API_ASC' + | 'EXPOSE_IN_API_DESC' + | 'NODES_ASC' + | 'NODES_DESC' + | 'GRANTS_ASC' + | 'GRANTS_DESC' + | 'POLICIES_ASC' + | 'POLICIES_DESC' + | 'OUT_FIELD_ID_ASC' + | 'OUT_FIELD_ID_DESC' + | 'OUT_JUNCTION_TABLE_ID_ASC' + | 'OUT_JUNCTION_TABLE_ID_DESC' + | 'OUT_SOURCE_FIELD_ID_ASC' + | 'OUT_SOURCE_FIELD_ID_DESC' + | 'OUT_TARGET_FIELD_ID_ASC' + | 'OUT_TARGET_FIELD_ID_DESC'; export type ProfilesModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -7488,6 +8229,8 @@ export type ProfilesModuleOrderBy = | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' + | 'ENTITY_FIELD_ASC' + | 'ENTITY_FIELD_DESC' | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' | 'PRIVATE_SCHEMA_ID_ASC' @@ -7578,6 +8321,10 @@ export type BillingModuleOrderBy = | 'METER_DEFAULTS_TABLE_NAME_DESC' | 'RECORD_USAGE_FUNCTION_ASC' | 'RECORD_USAGE_FUNCTION_DESC' + | 'SWEEP_EXPIRED_SUBSCRIPTIONS_FUNCTION_ASC' + | 'SWEEP_EXPIRED_SUBSCRIPTIONS_FUNCTION_DESC' + | 'ROLLUP_USAGE_SUMMARY_FUNCTION_ASC' + | 'ROLLUP_USAGE_SUMMARY_FUNCTION_DESC' | 'PREFIX_ASC' | 'PREFIX_DESC' | 'DEFAULT_PERMISSIONS_ASC' @@ -7586,7 +8333,7 @@ export type BillingModuleOrderBy = | 'API_NAME_DESC' | 'PRIVATE_API_NAME_ASC' | 'PRIVATE_API_NAME_DESC'; -export type RelationProvisionOrderBy = +export type ResourceModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -7594,50 +8341,54 @@ export type RelationProvisionOrderBy = | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' - | 'RELATION_TYPE_ASC' - | 'RELATION_TYPE_DESC' - | 'SOURCE_TABLE_ID_ASC' - | 'SOURCE_TABLE_ID_DESC' - | 'TARGET_TABLE_ID_ASC' - | 'TARGET_TABLE_ID_DESC' - | 'FIELD_NAME_ASC' - | 'FIELD_NAME_DESC' - | 'DELETE_ACTION_ASC' - | 'DELETE_ACTION_DESC' - | 'IS_REQUIRED_ASC' - | 'IS_REQUIRED_DESC' - | 'API_REQUIRED_ASC' - | 'API_REQUIRED_DESC' - | 'JUNCTION_TABLE_ID_ASC' - | 'JUNCTION_TABLE_ID_DESC' - | 'JUNCTION_TABLE_NAME_ASC' - | 'JUNCTION_TABLE_NAME_DESC' - | 'JUNCTION_SCHEMA_ID_ASC' - | 'JUNCTION_SCHEMA_ID_DESC' - | 'SOURCE_FIELD_NAME_ASC' - | 'SOURCE_FIELD_NAME_DESC' - | 'TARGET_FIELD_NAME_ASC' - | 'TARGET_FIELD_NAME_DESC' - | 'USE_COMPOSITE_KEY_ASC' - | 'USE_COMPOSITE_KEY_DESC' - | 'CREATE_INDEX_ASC' - | 'CREATE_INDEX_DESC' - | 'EXPOSE_IN_API_ASC' - | 'EXPOSE_IN_API_DESC' - | 'NODES_ASC' - | 'NODES_DESC' - | 'GRANTS_ASC' - | 'GRANTS_DESC' + | 'ENTITY_FIELD_ASC' + | 'ENTITY_FIELD_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'PRIVATE_SCHEMA_ID_ASC' + | 'PRIVATE_SCHEMA_ID_DESC' + | 'PUBLIC_SCHEMA_NAME_ASC' + | 'PUBLIC_SCHEMA_NAME_DESC' + | 'PRIVATE_SCHEMA_NAME_ASC' + | 'PRIVATE_SCHEMA_NAME_DESC' + | 'RESOURCES_TABLE_ID_ASC' + | 'RESOURCES_TABLE_ID_DESC' + | 'RESOURCE_EVENTS_TABLE_ID_ASC' + | 'RESOURCE_EVENTS_TABLE_ID_DESC' + | 'RESOURCE_STATUS_CHECKS_TABLE_ID_ASC' + | 'RESOURCE_STATUS_CHECKS_TABLE_ID_DESC' + | 'RESOURCE_DEFINITIONS_TABLE_ID_ASC' + | 'RESOURCE_DEFINITIONS_TABLE_ID_DESC' + | 'RESOURCES_TABLE_NAME_ASC' + | 'RESOURCES_TABLE_NAME_DESC' + | 'RESOURCE_EVENTS_TABLE_NAME_ASC' + | 'RESOURCE_EVENTS_TABLE_NAME_DESC' + | 'RESOURCE_STATUS_CHECKS_TABLE_NAME_ASC' + | 'RESOURCE_STATUS_CHECKS_TABLE_NAME_DESC' + | 'RESOURCE_DEFINITIONS_TABLE_NAME_ASC' + | 'RESOURCE_DEFINITIONS_TABLE_NAME_DESC' + | 'RESOLVED_REQUIREMENTS_VIEW_NAME_ASC' + | 'RESOLVED_REQUIREMENTS_VIEW_NAME_DESC' + | 'REQUIREMENTS_STATE_VIEW_NAME_ASC' + | 'REQUIREMENTS_STATE_VIEW_NAME_DESC' + | 'API_NAME_ASC' + | 'API_NAME_DESC' + | 'PRIVATE_API_NAME_ASC' + | 'PRIVATE_API_NAME_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC' + | 'ENTITY_TABLE_ID_ASC' + | 'ENTITY_TABLE_ID_DESC' + | 'NAMESPACE_MODULE_ID_ASC' + | 'NAMESPACE_MODULE_ID_DESC' | 'POLICIES_ASC' | 'POLICIES_DESC' - | 'OUT_FIELD_ID_ASC' - | 'OUT_FIELD_ID_DESC' - | 'OUT_JUNCTION_TABLE_ID_ASC' - | 'OUT_JUNCTION_TABLE_ID_DESC' - | 'OUT_SOURCE_FIELD_ID_ASC' - | 'OUT_SOURCE_FIELD_ID_DESC' - | 'OUT_TARGET_FIELD_ID_ASC' - | 'OUT_TARGET_FIELD_ID_DESC'; + | 'PROVISIONS_ASC' + | 'PROVISIONS_DESC' + | 'DEFAULT_PERMISSIONS_ASC' + | 'DEFAULT_PERMISSIONS_DESC'; export type UserAuthModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -7698,6 +8449,64 @@ export type UserAuthModuleOrderBy = | 'API_NAME_DESC' | 'PRIVATE_API_NAME_ASC' | 'PRIVATE_API_NAME_DESC'; +export type DbUsageModuleOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'ENTITY_FIELD_ASC' + | 'ENTITY_FIELD_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'PRIVATE_SCHEMA_ID_ASC' + | 'PRIVATE_SCHEMA_ID_DESC' + | 'PUBLIC_SCHEMA_NAME_ASC' + | 'PUBLIC_SCHEMA_NAME_DESC' + | 'PRIVATE_SCHEMA_NAME_ASC' + | 'PRIVATE_SCHEMA_NAME_DESC' + | 'TABLE_STATS_LOG_TABLE_ID_ASC' + | 'TABLE_STATS_LOG_TABLE_ID_DESC' + | 'TABLE_STATS_LOG_TABLE_NAME_ASC' + | 'TABLE_STATS_LOG_TABLE_NAME_DESC' + | 'TABLE_STATS_DAILY_TABLE_ID_ASC' + | 'TABLE_STATS_DAILY_TABLE_ID_DESC' + | 'TABLE_STATS_DAILY_TABLE_NAME_ASC' + | 'TABLE_STATS_DAILY_TABLE_NAME_DESC' + | 'QUERY_STATS_LOG_TABLE_ID_ASC' + | 'QUERY_STATS_LOG_TABLE_ID_DESC' + | 'QUERY_STATS_LOG_TABLE_NAME_ASC' + | 'QUERY_STATS_LOG_TABLE_NAME_DESC' + | 'QUERY_STATS_DAILY_TABLE_ID_ASC' + | 'QUERY_STATS_DAILY_TABLE_ID_DESC' + | 'QUERY_STATS_DAILY_TABLE_NAME_ASC' + | 'QUERY_STATS_DAILY_TABLE_NAME_DESC' + | 'COLLECT_DB_TABLE_STATS_FUNCTION_ASC' + | 'COLLECT_DB_TABLE_STATS_FUNCTION_DESC' + | 'COLLECT_DB_QUERY_STATS_FUNCTION_ASC' + | 'COLLECT_DB_QUERY_STATS_FUNCTION_DESC' + | 'ROLLUP_DB_TABLE_STATS_DAILY_FUNCTION_ASC' + | 'ROLLUP_DB_TABLE_STATS_DAILY_FUNCTION_DESC' + | 'ROLLUP_DB_QUERY_STATS_DAILY_FUNCTION_ASC' + | 'ROLLUP_DB_QUERY_STATS_DAILY_FUNCTION_DESC' + | 'INTERVAL_ASC' + | 'INTERVAL_DESC' + | 'RETENTION_ASC' + | 'RETENTION_DESC' + | 'PREMAKE_ASC' + | 'PREMAKE_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC' + | 'DEFAULT_PERMISSIONS_ASC' + | 'DEFAULT_PERMISSIONS_DESC' + | 'API_NAME_ASC' + | 'API_NAME_DESC' + | 'PRIVATE_API_NAME_ASC' + | 'PRIVATE_API_NAME_DESC'; export type AgentModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -7706,6 +8515,8 @@ export type AgentModuleOrderBy = | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' + | 'ENTITY_FIELD_ASC' + | 'ENTITY_FIELD_DESC' | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' | 'PRIVATE_SCHEMA_ID_ASC' @@ -7780,6 +8591,8 @@ export type LimitsModuleOrderBy = | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' + | 'ENTITY_FIELD_ASC' + | 'ENTITY_FIELD_DESC' | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' | 'PRIVATE_SCHEMA_ID_ASC' @@ -7848,92 +8661,6 @@ export type LimitsModuleOrderBy = | 'API_NAME_DESC' | 'PRIVATE_API_NAME_ASC' | 'PRIVATE_API_NAME_DESC'; -export type MembershipsModuleOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC' - | 'PRIVATE_SCHEMA_ID_ASC' - | 'PRIVATE_SCHEMA_ID_DESC' - | 'PUBLIC_SCHEMA_NAME_ASC' - | 'PUBLIC_SCHEMA_NAME_DESC' - | 'PRIVATE_SCHEMA_NAME_ASC' - | 'PRIVATE_SCHEMA_NAME_DESC' - | 'MEMBERSHIPS_TABLE_ID_ASC' - | 'MEMBERSHIPS_TABLE_ID_DESC' - | 'MEMBERSHIPS_TABLE_NAME_ASC' - | 'MEMBERSHIPS_TABLE_NAME_DESC' - | 'MEMBERS_TABLE_ID_ASC' - | 'MEMBERS_TABLE_ID_DESC' - | 'MEMBERS_TABLE_NAME_ASC' - | 'MEMBERS_TABLE_NAME_DESC' - | 'MEMBERSHIP_DEFAULTS_TABLE_ID_ASC' - | 'MEMBERSHIP_DEFAULTS_TABLE_ID_DESC' - | 'MEMBERSHIP_DEFAULTS_TABLE_NAME_ASC' - | 'MEMBERSHIP_DEFAULTS_TABLE_NAME_DESC' - | 'MEMBERSHIP_SETTINGS_TABLE_ID_ASC' - | 'MEMBERSHIP_SETTINGS_TABLE_ID_DESC' - | 'MEMBERSHIP_SETTINGS_TABLE_NAME_ASC' - | 'MEMBERSHIP_SETTINGS_TABLE_NAME_DESC' - | 'GRANTS_TABLE_ID_ASC' - | 'GRANTS_TABLE_ID_DESC' - | 'GRANTS_TABLE_NAME_ASC' - | 'GRANTS_TABLE_NAME_DESC' - | 'ACTOR_TABLE_ID_ASC' - | 'ACTOR_TABLE_ID_DESC' - | 'LIMITS_TABLE_ID_ASC' - | 'LIMITS_TABLE_ID_DESC' - | 'DEFAULT_LIMITS_TABLE_ID_ASC' - | 'DEFAULT_LIMITS_TABLE_ID_DESC' - | 'PERMISSIONS_TABLE_ID_ASC' - | 'PERMISSIONS_TABLE_ID_DESC' - | 'DEFAULT_PERMISSIONS_TABLE_ID_ASC' - | 'DEFAULT_PERMISSIONS_TABLE_ID_DESC' - | 'SPRT_TABLE_ID_ASC' - | 'SPRT_TABLE_ID_DESC' - | 'ADMIN_GRANTS_TABLE_ID_ASC' - | 'ADMIN_GRANTS_TABLE_ID_DESC' - | 'ADMIN_GRANTS_TABLE_NAME_ASC' - | 'ADMIN_GRANTS_TABLE_NAME_DESC' - | 'OWNER_GRANTS_TABLE_ID_ASC' - | 'OWNER_GRANTS_TABLE_ID_DESC' - | 'OWNER_GRANTS_TABLE_NAME_ASC' - | 'OWNER_GRANTS_TABLE_NAME_DESC' - | 'SCOPE_ASC' - | 'SCOPE_DESC' - | 'PREFIX_ASC' - | 'PREFIX_DESC' - | 'ENTITY_TABLE_ID_ASC' - | 'ENTITY_TABLE_ID_DESC' - | 'ENTITY_TABLE_OWNER_ID_ASC' - | 'ENTITY_TABLE_OWNER_ID_DESC' - | 'GET_ORG_FN_ASC' - | 'GET_ORG_FN_DESC' - | 'ACTOR_MASK_CHECK_ASC' - | 'ACTOR_MASK_CHECK_DESC' - | 'ACTOR_PERM_CHECK_ASC' - | 'ACTOR_PERM_CHECK_DESC' - | 'ENTITY_IDS_BY_MASK_ASC' - | 'ENTITY_IDS_BY_MASK_DESC' - | 'ENTITY_IDS_BY_PERM_ASC' - | 'ENTITY_IDS_BY_PERM_DESC' - | 'ENTITY_IDS_FUNCTION_ASC' - | 'ENTITY_IDS_FUNCTION_DESC' - | 'MEMBER_PROFILES_TABLE_ID_ASC' - | 'MEMBER_PROFILES_TABLE_ID_DESC' - | 'PERMISSION_DEFAULT_PERMISSIONS_TABLE_ID_ASC' - | 'PERMISSION_DEFAULT_PERMISSIONS_TABLE_ID_DESC' - | 'PERMISSION_DEFAULT_GRANTS_TABLE_ID_ASC' - | 'PERMISSION_DEFAULT_GRANTS_TABLE_ID_DESC' - | 'API_NAME_ASC' - | 'API_NAME_DESC' - | 'PRIVATE_API_NAME_ASC' - | 'PRIVATE_API_NAME_DESC'; export type EntityTypeProvisionOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -8010,8 +8737,6 @@ export type EntityTypeProvisionOrderBy = | 'OUT_INVOCATIONS_TABLE_ID_DESC' | 'OUT_EXECUTION_LOGS_TABLE_ID_ASC' | 'OUT_EXECUTION_LOGS_TABLE_ID_DESC' - | 'OUT_SECRET_DEFINITIONS_TABLE_ID_ASC' - | 'OUT_SECRET_DEFINITIONS_TABLE_ID_DESC' | 'OUT_GRAPH_MODULE_ID_ASC' | 'OUT_GRAPH_MODULE_ID_DESC' | 'OUT_GRAPHS_TABLE_ID_ASC' @@ -8052,6 +8777,8 @@ export type StorageModuleOrderBy = | 'PROVISIONS_DESC' | 'ENTITY_TABLE_ID_ASC' | 'ENTITY_TABLE_ID_DESC' + | 'ENTITY_FIELD_ASC' + | 'ENTITY_FIELD_DESC' | 'ENDPOINT_ASC' | 'ENDPOINT_DESC' | 'PUBLIC_URL_PREFIX_ASC' @@ -8100,6 +8827,94 @@ export type StorageModuleOrderBy = | 'API_NAME_DESC' | 'PRIVATE_API_NAME_ASC' | 'PRIVATE_API_NAME_DESC'; +export type MembershipsModuleOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'ENTITY_FIELD_ASC' + | 'ENTITY_FIELD_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'PRIVATE_SCHEMA_ID_ASC' + | 'PRIVATE_SCHEMA_ID_DESC' + | 'PUBLIC_SCHEMA_NAME_ASC' + | 'PUBLIC_SCHEMA_NAME_DESC' + | 'PRIVATE_SCHEMA_NAME_ASC' + | 'PRIVATE_SCHEMA_NAME_DESC' + | 'MEMBERSHIPS_TABLE_ID_ASC' + | 'MEMBERSHIPS_TABLE_ID_DESC' + | 'MEMBERSHIPS_TABLE_NAME_ASC' + | 'MEMBERSHIPS_TABLE_NAME_DESC' + | 'MEMBERS_TABLE_ID_ASC' + | 'MEMBERS_TABLE_ID_DESC' + | 'MEMBERS_TABLE_NAME_ASC' + | 'MEMBERS_TABLE_NAME_DESC' + | 'MEMBERSHIP_DEFAULTS_TABLE_ID_ASC' + | 'MEMBERSHIP_DEFAULTS_TABLE_ID_DESC' + | 'MEMBERSHIP_DEFAULTS_TABLE_NAME_ASC' + | 'MEMBERSHIP_DEFAULTS_TABLE_NAME_DESC' + | 'MEMBERSHIP_SETTINGS_TABLE_ID_ASC' + | 'MEMBERSHIP_SETTINGS_TABLE_ID_DESC' + | 'MEMBERSHIP_SETTINGS_TABLE_NAME_ASC' + | 'MEMBERSHIP_SETTINGS_TABLE_NAME_DESC' + | 'GRANTS_TABLE_ID_ASC' + | 'GRANTS_TABLE_ID_DESC' + | 'GRANTS_TABLE_NAME_ASC' + | 'GRANTS_TABLE_NAME_DESC' + | 'ACTOR_TABLE_ID_ASC' + | 'ACTOR_TABLE_ID_DESC' + | 'LIMITS_TABLE_ID_ASC' + | 'LIMITS_TABLE_ID_DESC' + | 'DEFAULT_LIMITS_TABLE_ID_ASC' + | 'DEFAULT_LIMITS_TABLE_ID_DESC' + | 'PERMISSIONS_TABLE_ID_ASC' + | 'PERMISSIONS_TABLE_ID_DESC' + | 'DEFAULT_PERMISSIONS_TABLE_ID_ASC' + | 'DEFAULT_PERMISSIONS_TABLE_ID_DESC' + | 'SPRT_TABLE_ID_ASC' + | 'SPRT_TABLE_ID_DESC' + | 'ADMIN_GRANTS_TABLE_ID_ASC' + | 'ADMIN_GRANTS_TABLE_ID_DESC' + | 'ADMIN_GRANTS_TABLE_NAME_ASC' + | 'ADMIN_GRANTS_TABLE_NAME_DESC' + | 'OWNER_GRANTS_TABLE_ID_ASC' + | 'OWNER_GRANTS_TABLE_ID_DESC' + | 'OWNER_GRANTS_TABLE_NAME_ASC' + | 'OWNER_GRANTS_TABLE_NAME_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC' + | 'ENTITY_TABLE_ID_ASC' + | 'ENTITY_TABLE_ID_DESC' + | 'ENTITY_TABLE_OWNER_ID_ASC' + | 'ENTITY_TABLE_OWNER_ID_DESC' + | 'GET_ORG_FN_ASC' + | 'GET_ORG_FN_DESC' + | 'ACTOR_MASK_CHECK_ASC' + | 'ACTOR_MASK_CHECK_DESC' + | 'ACTOR_PERM_CHECK_ASC' + | 'ACTOR_PERM_CHECK_DESC' + | 'ENTITY_IDS_BY_MASK_ASC' + | 'ENTITY_IDS_BY_MASK_DESC' + | 'ENTITY_IDS_BY_PERM_ASC' + | 'ENTITY_IDS_BY_PERM_DESC' + | 'ENTITY_IDS_FUNCTION_ASC' + | 'ENTITY_IDS_FUNCTION_DESC' + | 'MEMBER_PROFILES_TABLE_ID_ASC' + | 'MEMBER_PROFILES_TABLE_ID_DESC' + | 'PERMISSION_DEFAULT_PERMISSIONS_TABLE_ID_ASC' + | 'PERMISSION_DEFAULT_PERMISSIONS_TABLE_ID_DESC' + | 'PERMISSION_DEFAULT_GRANTS_TABLE_ID_ASC' + | 'PERMISSION_DEFAULT_GRANTS_TABLE_ID_DESC' + | 'API_NAME_ASC' + | 'API_NAME_DESC' + | 'PRIVATE_API_NAME_ASC' + | 'PRIVATE_API_NAME_DESC'; export type EventsModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -8108,6 +8923,8 @@ export type EventsModuleOrderBy = | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' + | 'ENTITY_FIELD_ASC' + | 'ENTITY_FIELD_DESC' | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' | 'PRIVATE_SCHEMA_ID_ASC' @@ -8160,8 +8977,6 @@ export type EventsModuleOrderBy = | 'UPSERT_AGGREGATE_DESC' | 'TG_UPDATE_AGGREGATES_ASC' | 'TG_UPDATE_AGGREGATES_DESC' - | 'PRUNE_EVENTS_ASC' - | 'PRUNE_EVENTS_DESC' | 'STEPS_REQUIRED_ASC' | 'STEPS_REQUIRED_DESC' | 'LEVEL_ACHIEVED_ASC' @@ -8220,96 +9035,44 @@ export interface CreateMembershipTypesModuleInput { tableName?: string; }; } -export interface MembershipTypesModulePatch { - databaseId?: string | null; - schemaId?: string | null; - tableId?: string | null; - tableName?: string | null; -} -export interface UpdateMembershipTypesModuleInput { - clientMutationId?: string; - id: string; - membershipTypesModulePatch: MembershipTypesModulePatch; -} -export interface DeleteMembershipTypesModuleInput { - clientMutationId?: string; - id: string; -} -export interface CreateUserStateModuleInput { - clientMutationId?: string; - userStateModule: { - databaseId: string; - schemaId?: string; - tableId?: string; - tableName?: string; - }; -} -export interface UserStateModulePatch { - databaseId?: string | null; - schemaId?: string | null; - tableId?: string | null; - tableName?: string | null; -} -export interface UpdateUserStateModuleInput { - clientMutationId?: string; - id: string; - userStateModulePatch: UserStateModulePatch; -} -export interface DeleteUserStateModuleInput { - clientMutationId?: string; - id: string; -} -export interface CreateSessionSecretsModuleInput { - clientMutationId?: string; - sessionSecretsModule: { - databaseId: string; - schemaId?: string; - tableId?: string; - tableName?: string; - sessionsTableId?: string; - }; -} -export interface SessionSecretsModulePatch { +export interface MembershipTypesModulePatch { databaseId?: string | null; schemaId?: string | null; tableId?: string | null; tableName?: string | null; - sessionsTableId?: string | null; } -export interface UpdateSessionSecretsModuleInput { +export interface UpdateMembershipTypesModuleInput { clientMutationId?: string; id: string; - sessionSecretsModulePatch: SessionSecretsModulePatch; + membershipTypesModulePatch: MembershipTypesModulePatch; } -export interface DeleteSessionSecretsModuleInput { +export interface DeleteMembershipTypesModuleInput { clientMutationId?: string; id: string; } -export interface CreateConfigSecretsOrgModuleInput { +export interface CreateSessionSecretsModuleInput { clientMutationId?: string; - configSecretsOrgModule: { + sessionSecretsModule: { databaseId: string; schemaId?: string; tableId?: string; tableName?: string; - apiName?: string; - privateApiName?: string; + sessionsTableId?: string; }; } -export interface ConfigSecretsOrgModulePatch { +export interface SessionSecretsModulePatch { databaseId?: string | null; schemaId?: string | null; tableId?: string | null; tableName?: string | null; - apiName?: string | null; - privateApiName?: string | null; + sessionsTableId?: string | null; } -export interface UpdateConfigSecretsOrgModuleInput { +export interface UpdateSessionSecretsModuleInput { clientMutationId?: string; id: string; - configSecretsOrgModulePatch: ConfigSecretsOrgModulePatch; + sessionSecretsModulePatch: SessionSecretsModulePatch; } -export interface DeleteConfigSecretsOrgModuleInput { +export interface DeleteSessionSecretsModuleInput { clientMutationId?: string; id: string; } @@ -8369,89 +9132,85 @@ export interface DeleteI18NModuleInput { clientMutationId?: string; id: string; } -export interface CreateUserCredentialsModuleInput { +export interface CreateUserSettingsModuleInput { clientMutationId?: string; - userCredentialsModule: { + userSettingsModule: { databaseId: string; schemaId?: string; tableId?: string; + ownerTableId?: string; tableName?: string; apiName?: string; - privateApiName?: string; }; } -export interface UserCredentialsModulePatch { +export interface UserSettingsModulePatch { databaseId?: string | null; schemaId?: string | null; tableId?: string | null; + ownerTableId?: string | null; tableName?: string | null; apiName?: string | null; - privateApiName?: string | null; } -export interface UpdateUserCredentialsModuleInput { +export interface UpdateUserSettingsModuleInput { clientMutationId?: string; id: string; - userCredentialsModulePatch: UserCredentialsModulePatch; + userSettingsModulePatch: UserSettingsModulePatch; } -export interface DeleteUserCredentialsModuleInput { +export interface DeleteUserSettingsModuleInput { clientMutationId?: string; id: string; } -export interface CreateUserSettingsModuleInput { +export interface CreateUserStateModuleInput { clientMutationId?: string; - userSettingsModule: { + userStateModule: { databaseId: string; + entityField?: string; schemaId?: string; tableId?: string; - ownerTableId?: string; tableName?: string; - apiName?: string; }; } -export interface UserSettingsModulePatch { +export interface UserStateModulePatch { databaseId?: string | null; + entityField?: string | null; schemaId?: string | null; tableId?: string | null; - ownerTableId?: string | null; tableName?: string | null; - apiName?: string | null; } -export interface UpdateUserSettingsModuleInput { +export interface UpdateUserStateModuleInput { clientMutationId?: string; id: string; - userSettingsModulePatch: UserSettingsModulePatch; + userStateModulePatch: UserStateModulePatch; } -export interface DeleteUserSettingsModuleInput { +export interface DeleteUserStateModuleInput { clientMutationId?: string; id: string; } -export interface CreateConfigSecretsUserModuleInput { +export interface CreateUserCredentialsModuleInput { clientMutationId?: string; - configSecretsUserModule: { + userCredentialsModule: { databaseId: string; + entityField?: string; schemaId?: string; tableId?: string; tableName?: string; - configDefinitionsTableId?: string; - apiName?: string; privateApiName?: string; }; } -export interface ConfigSecretsUserModulePatch { +export interface UserCredentialsModulePatch { databaseId?: string | null; + entityField?: string | null; schemaId?: string | null; tableId?: string | null; tableName?: string | null; - configDefinitionsTableId?: string | null; - apiName?: string | null; privateApiName?: string | null; } -export interface UpdateConfigSecretsUserModuleInput { +export interface UpdateUserCredentialsModuleInput { clientMutationId?: string; id: string; - configSecretsUserModulePatch: ConfigSecretsUserModulePatch; + userCredentialsModulePatch: UserCredentialsModulePatch; } -export interface DeleteConfigSecretsUserModuleInput { +export interface DeleteUserCredentialsModuleInput { clientMutationId?: string; id: string; } @@ -8647,6 +9406,36 @@ export interface DeleteWebauthnCredentialsModuleInput { clientMutationId?: string; id: string; } +export interface CreateConfigSecretsUserModuleInput { + clientMutationId?: string; + configSecretsUserModule: { + databaseId: string; + entityField?: string; + schemaId?: string; + tableId?: string; + tableName?: string; + apiName?: string; + privateApiName?: string; + }; +} +export interface ConfigSecretsUserModulePatch { + databaseId?: string | null; + entityField?: string | null; + schemaId?: string | null; + tableId?: string | null; + tableName?: string | null; + apiName?: string | null; + privateApiName?: string | null; +} +export interface UpdateConfigSecretsUserModuleInput { + clientMutationId?: string; + id: string; + configSecretsUserModulePatch: ConfigSecretsUserModulePatch; +} +export interface DeleteConfigSecretsUserModuleInput { + clientMutationId?: string; + id: string; +} export interface CreateCryptoAddressesModuleInput { clientMutationId?: string; cryptoAddressesModule: { @@ -8719,46 +9508,6 @@ export interface DeleteDenormalizedTableFieldInput { clientMutationId?: string; id: string; } -export interface CreateIdentityProvidersModuleInput { - clientMutationId?: string; - identityProvidersModule: { - databaseId: string; - schemaId?: string; - privateSchemaId?: string; - publicSchemaName?: string; - privateSchemaName?: string; - tableId?: string; - tableName?: string; - apiName?: string; - privateApiName?: string; - scope?: string; - prefix?: string; - entityTableId?: string; - }; -} -export interface IdentityProvidersModulePatch { - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - publicSchemaName?: string | null; - privateSchemaName?: string | null; - tableId?: string | null; - tableName?: string | null; - apiName?: string | null; - privateApiName?: string | null; - scope?: string | null; - prefix?: string | null; - entityTableId?: string | null; -} -export interface UpdateIdentityProvidersModuleInput { - clientMutationId?: string; - id: string; - identityProvidersModulePatch: IdentityProvidersModulePatch; -} -export interface DeleteIdentityProvidersModuleInput { - clientMutationId?: string; - id: string; -} export interface CreateRlsModuleInput { clientMutationId?: string; rlsModule: { @@ -9008,134 +9757,296 @@ export interface CreateSecureTableProvisionInput { outFields?: string[]; }; } -export interface SecureTableProvisionPatch { +export interface SecureTableProvisionPatch { + databaseId?: string | null; + schemaId?: string | null; + tableId?: string | null; + tableName?: string | null; + nodes?: Record | null; + useRls?: boolean | null; + fields?: Record[] | null; + grants?: Record | null; + policies?: Record | null; + outFields?: string[] | null; +} +export interface UpdateSecureTableProvisionInput { + clientMutationId?: string; + id: string; + secureTableProvisionPatch: SecureTableProvisionPatch; +} +export interface DeleteSecureTableProvisionInput { + clientMutationId?: string; + id: string; +} +export interface CreateIdentityProvidersModuleInput { + clientMutationId?: string; + identityProvidersModule: { + databaseId: string; + entityField?: string; + schemaId?: string; + privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + tableId?: string; + tableName?: string; + apiName?: string; + privateApiName?: string; + scope?: string; + prefix?: string; + entityTableId?: string; + }; +} +export interface IdentityProvidersModulePatch { + databaseId?: string | null; + entityField?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + publicSchemaName?: string | null; + privateSchemaName?: string | null; + tableId?: string | null; + tableName?: string | null; + apiName?: string | null; + privateApiName?: string | null; + scope?: string | null; + prefix?: string | null; + entityTableId?: string | null; +} +export interface UpdateIdentityProvidersModuleInput { + clientMutationId?: string; + id: string; + identityProvidersModulePatch: IdentityProvidersModulePatch; +} +export interface DeleteIdentityProvidersModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateIntegrationProvidersModuleInput { + clientMutationId?: string; + integrationProvidersModule: { + databaseId: string; + entityField?: string; + schemaId?: string; + privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + tableId?: string; + tableName?: string; + apiName?: string; + privateApiName?: string; + scope?: string; + prefix?: string; + entityTableId?: string; + }; +} +export interface IntegrationProvidersModulePatch { + databaseId?: string | null; + entityField?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + publicSchemaName?: string | null; + privateSchemaName?: string | null; + tableId?: string | null; + tableName?: string | null; + apiName?: string | null; + privateApiName?: string | null; + scope?: string | null; + prefix?: string | null; + entityTableId?: string | null; +} +export interface UpdateIntegrationProvidersModuleInput { + clientMutationId?: string; + id: string; + integrationProvidersModulePatch: IntegrationProvidersModulePatch; +} +export interface DeleteIntegrationProvidersModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateDbPoolConfigInput { + clientMutationId?: string; + dbPoolConfig: { + presetSlug: string; + domain: string; + poolOwnerId: string; + min?: number; + max?: number; + warmTtl?: IntervalInput; + enabled?: boolean; + }; +} +export interface DbPoolConfigPatch { + presetSlug?: string | null; + domain?: string | null; + poolOwnerId?: string | null; + min?: number | null; + max?: number | null; + warmTtl?: IntervalInput | null; + enabled?: boolean | null; +} +export interface UpdateDbPoolConfigInput { + clientMutationId?: string; + id: string; + dbPoolConfigPatch: DbPoolConfigPatch; +} +export interface DeleteDbPoolConfigInput { + clientMutationId?: string; + id: string; +} +export interface CreateRealtimeModuleInput { + clientMutationId?: string; + realtimeModule: { + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + subscriptionsSchemaId?: string; + changeLogTableId?: string; + listenerNodeTableId?: string; + sourceRegistryTableId?: string; + retentionHours?: number; + premake?: number; + interval?: string; + notifyChannel?: string; + apiName?: string; + privateApiName?: string; + }; +} +export interface RealtimeModulePatch { databaseId?: string | null; schemaId?: string | null; - tableId?: string | null; - tableName?: string | null; - nodes?: Record | null; - useRls?: boolean | null; - fields?: Record[] | null; - grants?: Record | null; - policies?: Record | null; - outFields?: string[] | null; + privateSchemaId?: string | null; + subscriptionsSchemaId?: string | null; + changeLogTableId?: string | null; + listenerNodeTableId?: string | null; + sourceRegistryTableId?: string | null; + retentionHours?: number | null; + premake?: number | null; + interval?: string | null; + notifyChannel?: string | null; + apiName?: string | null; + privateApiName?: string | null; } -export interface UpdateSecureTableProvisionInput { +export interface UpdateRealtimeModuleInput { clientMutationId?: string; id: string; - secureTableProvisionPatch: SecureTableProvisionPatch; + realtimeModulePatch: RealtimeModulePatch; } -export interface DeleteSecureTableProvisionInput { +export interface DeleteRealtimeModuleInput { clientMutationId?: string; id: string; } -export interface CreateDatabaseProvisionModuleInput { +export interface CreateInfraSecretsModuleInput { clientMutationId?: string; - databaseProvisionModule: { - databaseName: string; - ownerId: string; - subdomain?: string; - domain: string; - modules?: Record; - options?: Record; - bootstrapUser?: boolean; - status?: string; - errorMessage?: string; - databaseId?: string; - completedAt?: string; + infraSecretsModule: { + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + secretsTableId?: string; + secretsTableName?: string; + apiName?: string; + privateApiName?: string; + scope?: string; + prefix?: string; + entityTableId?: string; + entityField?: string; + policies?: Record; + provisions?: Record; }; } -export interface DatabaseProvisionModulePatch { - databaseName?: string | null; - ownerId?: string | null; - subdomain?: string | null; - domain?: string | null; - modules?: Record | null; - options?: Record | null; - bootstrapUser?: boolean | null; - status?: string | null; - errorMessage?: string | null; +export interface InfraSecretsModulePatch { databaseId?: string | null; - completedAt?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + publicSchemaName?: string | null; + privateSchemaName?: string | null; + secretsTableId?: string | null; + secretsTableName?: string | null; + apiName?: string | null; + privateApiName?: string | null; + scope?: string | null; + prefix?: string | null; + entityTableId?: string | null; + entityField?: string | null; + policies?: Record | null; + provisions?: Record | null; } -export interface UpdateDatabaseProvisionModuleInput { +export interface UpdateInfraSecretsModuleInput { clientMutationId?: string; id: string; - databaseProvisionModulePatch: DatabaseProvisionModulePatch; + infraSecretsModulePatch: InfraSecretsModulePatch; } -export interface DeleteDatabaseProvisionModuleInput { +export interface DeleteInfraSecretsModuleInput { clientMutationId?: string; id: string; } -export interface CreateConfigSecretsModuleInput { +export interface CreateInternalSecretsModuleInput { clientMutationId?: string; - configSecretsModule: { + internalSecretsModule: { databaseId: string; schemaId?: string; privateSchemaId?: string; publicSchemaName?: string; privateSchemaName?: string; - tableId?: string; - configDefinitionsTableId?: string; - tableName?: string; + internalSecretsTableId?: string; + internalSecretsTableName?: string; apiName?: string; privateApiName?: string; scope?: string; prefix?: string; entityTableId?: string; + entityField?: string; policies?: Record; provisions?: Record; - hasConfig?: boolean; }; } -export interface ConfigSecretsModulePatch { +export interface InternalSecretsModulePatch { databaseId?: string | null; schemaId?: string | null; privateSchemaId?: string | null; publicSchemaName?: string | null; privateSchemaName?: string | null; - tableId?: string | null; - configDefinitionsTableId?: string | null; - tableName?: string | null; + internalSecretsTableId?: string | null; + internalSecretsTableName?: string | null; apiName?: string | null; privateApiName?: string | null; scope?: string | null; prefix?: string | null; entityTableId?: string | null; + entityField?: string | null; policies?: Record | null; provisions?: Record | null; - hasConfig?: boolean | null; } -export interface UpdateConfigSecretsModuleInput { +export interface UpdateInternalSecretsModuleInput { clientMutationId?: string; id: string; - configSecretsModulePatch: ConfigSecretsModulePatch; + internalSecretsModulePatch: InternalSecretsModulePatch; } -export interface DeleteConfigSecretsModuleInput { +export interface DeleteInternalSecretsModuleInput { clientMutationId?: string; id: string; } -export interface CreateGraphModuleInput { +export interface CreateDbPresetModuleInput { clientMutationId?: string; - graphModule: { + dbPresetModule: { databaseId: string; publicSchemaId?: string; privateSchemaId?: string; publicSchemaName?: string; privateSchemaName?: string; - scope?: string; - prefix?: string; + scope: string; + prefix: string; merkleStoreModuleId: string; - graphsTableId?: string; + dbPresetsTableId?: string; + storeName: string; apiName?: string; privateApiName?: string; entityTableId?: string; policies?: Record; provisions?: Record; - defaultPermissions?: string[]; }; } -export interface GraphModulePatch { +export interface DbPresetModulePatch { databaseId?: string | null; publicSchemaId?: string | null; privateSchemaId?: string | null; @@ -9144,66 +10055,68 @@ export interface GraphModulePatch { scope?: string | null; prefix?: string | null; merkleStoreModuleId?: string | null; - graphsTableId?: string | null; + dbPresetsTableId?: string | null; + storeName?: string | null; apiName?: string | null; privateApiName?: string | null; entityTableId?: string | null; policies?: Record | null; provisions?: Record | null; - defaultPermissions?: string[] | null; } -export interface UpdateGraphModuleInput { +export interface UpdateDbPresetModuleInput { clientMutationId?: string; id: string; - graphModulePatch: GraphModulePatch; + dbPresetModulePatch: DbPresetModulePatch; } -export interface DeleteGraphModuleInput { +export interface DeleteDbPresetModuleInput { clientMutationId?: string; id: string; } -export interface CreateMerkleStoreModuleInput { +export interface CreateGraphModuleInput { clientMutationId?: string; - merkleStoreModule: { + graphModule: { databaseId: string; - schemaId?: string; + entityField?: string; + publicSchemaId?: string; privateSchemaId?: string; publicSchemaName?: string; privateSchemaName?: string; - objectTableId?: string; - storeTableId?: string; - commitTableId?: string; - refTableId?: string; + scope?: string; prefix?: string; + merkleStoreModuleId: string; + graphsTableId?: string; apiName?: string; privateApiName?: string; - scope?: string; - functionPrefix?: string; - permissionKey?: string; + entityTableId?: string; + policies?: Record; + provisions?: Record; + defaultPermissions?: string[]; }; } -export interface MerkleStoreModulePatch { +export interface GraphModulePatch { databaseId?: string | null; - schemaId?: string | null; + entityField?: string | null; + publicSchemaId?: string | null; privateSchemaId?: string | null; publicSchemaName?: string | null; privateSchemaName?: string | null; - objectTableId?: string | null; - storeTableId?: string | null; - commitTableId?: string | null; - refTableId?: string | null; + scope?: string | null; prefix?: string | null; + merkleStoreModuleId?: string | null; + graphsTableId?: string | null; apiName?: string | null; privateApiName?: string | null; - scope?: string | null; - functionPrefix?: string | null; - permissionKey?: string | null; + entityTableId?: string | null; + policies?: Record | null; + provisions?: Record | null; + defaultPermissions?: string[] | null; } -export interface UpdateMerkleStoreModuleInput { +export interface UpdateGraphModuleInput { clientMutationId?: string; id: string; - merkleStoreModulePatch: MerkleStoreModulePatch; + graphModulePatch: GraphModulePatch; } -export interface DeleteMerkleStoreModuleInput { +export interface DeleteGraphModuleInput { clientMutationId?: string; id: string; } @@ -9255,45 +10168,49 @@ export interface DeleteRateLimitMetersModuleInput { clientMutationId?: string; id: string; } -export interface CreateRealtimeModuleInput { +export interface CreateInfraConfigModuleInput { clientMutationId?: string; - realtimeModule: { + infraConfigModule: { databaseId: string; + entityField?: string; schemaId?: string; privateSchemaId?: string; - subscriptionsSchemaId?: string; - changeLogTableId?: string; - listenerNodeTableId?: string; - sourceRegistryTableId?: string; - retentionHours?: number; - premake?: number; - interval?: string; - notifyChannel?: string; + publicSchemaName?: string; + privateSchemaName?: string; + configTableId?: string; + configTableName?: string; apiName?: string; privateApiName?: string; + scope?: string; + prefix?: string; + entityTableId?: string; + policies?: Record; + provisions?: Record; }; } -export interface RealtimeModulePatch { +export interface InfraConfigModulePatch { databaseId?: string | null; + entityField?: string | null; schemaId?: string | null; privateSchemaId?: string | null; - subscriptionsSchemaId?: string | null; - changeLogTableId?: string | null; - listenerNodeTableId?: string | null; - sourceRegistryTableId?: string | null; - retentionHours?: number | null; - premake?: number | null; - interval?: string | null; - notifyChannel?: string | null; + publicSchemaName?: string | null; + privateSchemaName?: string | null; + configTableId?: string | null; + configTableName?: string | null; apiName?: string | null; privateApiName?: string | null; + scope?: string | null; + prefix?: string | null; + entityTableId?: string | null; + policies?: Record | null; + provisions?: Record | null; } -export interface UpdateRealtimeModuleInput { +export interface UpdateInfraConfigModuleInput { clientMutationId?: string; id: string; - realtimeModulePatch: RealtimeModulePatch; + infraConfigModulePatch: InfraConfigModulePatch; } -export interface DeleteRealtimeModuleInput { +export interface DeleteInfraConfigModuleInput { clientMutationId?: string; id: string; } @@ -9343,53 +10260,89 @@ export interface DeleteWebauthnAuthModuleInput { clientMutationId?: string; id: string; } -export interface CreateFunctionInvocationModuleInput { +export interface CreatePrincipalAuthModuleInput { clientMutationId?: string; - functionInvocationModule: { + principalAuthModule: { databaseId: string; schemaId?: string; - privateSchemaId?: string; - publicSchemaName?: string; - privateSchemaName?: string; - invocationsTableId?: string; - executionLogsTableId?: string; - invocationsTableName?: string; - executionLogsTableName?: string; + principalsTableId?: string; + principalEntitiesTableId?: string; + principalScopeOverridesTableId?: string; + usersTableId?: string; + sessionsTableId?: string; + sessionCredentialsTableId?: string; + auditsTableId?: string; + principalsTableName?: string; + createPrincipalFunction?: string; + deletePrincipalFunction?: string; + createOrgPrincipalFunction?: string; + deleteOrgPrincipalFunction?: string; + createOrgApiKeyFunction?: string; + revokeOrgApiKeyFunction?: string; apiName?: string; - privateApiName?: string; - scope?: string; - prefix?: string; - entityTableId?: string; - policies?: Record; - provisions?: Record; - defaultPermissions?: string[]; }; } -export interface FunctionInvocationModulePatch { +export interface PrincipalAuthModulePatch { databaseId?: string | null; schemaId?: string | null; - privateSchemaId?: string | null; - publicSchemaName?: string | null; - privateSchemaName?: string | null; - invocationsTableId?: string | null; - executionLogsTableId?: string | null; - invocationsTableName?: string | null; - executionLogsTableName?: string | null; + principalsTableId?: string | null; + principalEntitiesTableId?: string | null; + principalScopeOverridesTableId?: string | null; + usersTableId?: string | null; + sessionsTableId?: string | null; + sessionCredentialsTableId?: string | null; + auditsTableId?: string | null; + principalsTableName?: string | null; + createPrincipalFunction?: string | null; + deletePrincipalFunction?: string | null; + createOrgPrincipalFunction?: string | null; + deleteOrgPrincipalFunction?: string | null; + createOrgApiKeyFunction?: string | null; + revokeOrgApiKeyFunction?: string | null; apiName?: string | null; - privateApiName?: string | null; - scope?: string | null; - prefix?: string | null; - entityTableId?: string | null; - policies?: Record | null; - provisions?: Record | null; - defaultPermissions?: string[] | null; } -export interface UpdateFunctionInvocationModuleInput { +export interface UpdatePrincipalAuthModuleInput { + clientMutationId?: string; + id: string; + principalAuthModulePatch: PrincipalAuthModulePatch; +} +export interface DeletePrincipalAuthModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateDbPoolInput { + clientMutationId?: string; + dbPool: { + presetSlug: string; + presetCommitId?: string; + databaseId?: string; + status?: string; + errorMessage?: string; + expiresAt?: string; + claimedBy?: string; + claimedAt?: string; + bootstrapStatus?: string; + bootstrapError?: string; + }; +} +export interface DbPoolPatch { + presetSlug?: string | null; + presetCommitId?: string | null; + databaseId?: string | null; + status?: string | null; + errorMessage?: string | null; + expiresAt?: string | null; + claimedBy?: string | null; + claimedAt?: string | null; + bootstrapStatus?: string | null; + bootstrapError?: string | null; +} +export interface UpdateDbPoolInput { clientMutationId?: string; id: string; - functionInvocationModulePatch: FunctionInvocationModulePatch; + dbPoolPatch: DbPoolPatch; } -export interface DeleteFunctionInvocationModuleInput { +export interface DeleteDbPoolInput { clientMutationId?: string; id: string; } @@ -9397,14 +10350,13 @@ export interface CreateFunctionModuleInput { clientMutationId?: string; functionModule: { databaseId: string; + entityField?: string; schemaId?: string; privateSchemaId?: string; publicSchemaName?: string; privateSchemaName?: string; definitionsTableId?: string; - secretDefinitionsTableId?: string; definitionsTableName?: string; - secretDefinitionsTableName?: string; apiName?: string; privateApiName?: string; scope?: string; @@ -9417,14 +10369,13 @@ export interface CreateFunctionModuleInput { } export interface FunctionModulePatch { databaseId?: string | null; + entityField?: string | null; schemaId?: string | null; privateSchemaId?: string | null; publicSchemaName?: string | null; privateSchemaName?: string | null; definitionsTableId?: string | null; - secretDefinitionsTableId?: string | null; definitionsTableName?: string | null; - secretDefinitionsTableName?: string | null; apiName?: string | null; privateApiName?: string | null; scope?: string | null; @@ -9443,207 +10394,201 @@ export interface DeleteFunctionModuleInput { clientMutationId?: string; id: string; } -export interface CreateInvitesModuleInput { +export interface CreateMerkleStoreModuleInput { clientMutationId?: string; - invitesModule: { + merkleStoreModule: { databaseId: string; + entityField?: string; schemaId?: string; privateSchemaId?: string; publicSchemaName?: string; privateSchemaName?: string; - emailsTableId?: string; - usersTableId?: string; - invitesTableId?: string; - claimedInvitesTableId?: string; - invitesTableName?: string; - claimedInvitesTableName?: string; - submitInviteCodeFunction?: string; - scope?: string; + objectTableId?: string; + storeTableId?: string; + commitTableId?: string; + refTableId?: string; prefix?: string; - entityTableId?: string; apiName?: string; privateApiName?: string; + scope?: string; + functionPrefix?: string; + permissionKey?: string; }; } -export interface InvitesModulePatch { +export interface MerkleStoreModulePatch { databaseId?: string | null; + entityField?: string | null; schemaId?: string | null; privateSchemaId?: string | null; publicSchemaName?: string | null; privateSchemaName?: string | null; - emailsTableId?: string | null; - usersTableId?: string | null; - invitesTableId?: string | null; - claimedInvitesTableId?: string | null; - invitesTableName?: string | null; - claimedInvitesTableName?: string | null; - submitInviteCodeFunction?: string | null; - scope?: string | null; + objectTableId?: string | null; + storeTableId?: string | null; + commitTableId?: string | null; + refTableId?: string | null; prefix?: string | null; - entityTableId?: string | null; apiName?: string | null; privateApiName?: string | null; + scope?: string | null; + functionPrefix?: string | null; + permissionKey?: string | null; } -export interface UpdateInvitesModuleInput { +export interface UpdateMerkleStoreModuleInput { clientMutationId?: string; id: string; - invitesModulePatch: InvitesModulePatch; + merkleStoreModulePatch: MerkleStoreModulePatch; } -export interface DeleteInvitesModuleInput { +export interface DeleteMerkleStoreModuleInput { clientMutationId?: string; id: string; } -export interface CreatePrincipalAuthModuleInput { +export interface CreateDatabaseProvisionModuleInput { clientMutationId?: string; - principalAuthModule: { - databaseId: string; - schemaId?: string; - principalsTableId?: string; - principalEntitiesTableId?: string; - principalScopeOverridesTableId?: string; - usersTableId?: string; - sessionsTableId?: string; - sessionCredentialsTableId?: string; - auditsTableId?: string; - principalsTableName?: string; - createPrincipalFunction?: string; - deletePrincipalFunction?: string; - createOrgPrincipalFunction?: string; - deleteOrgPrincipalFunction?: string; - createOrgApiKeyFunction?: string; - revokeOrgApiKeyFunction?: string; - apiName?: string; + databaseProvisionModule: { + databaseName: string; + ownerId: string; + subdomain?: string; + domain: string; + modules?: Record; + options?: Record; + bootstrapUser?: boolean; + status?: string; + errorMessage?: string; + sourceDatabaseId?: string; + bootstrapStatus?: string; + bootstrapError?: string; + databaseId?: string; + completedAt?: string; + fulfilledAt?: string; }; } -export interface PrincipalAuthModulePatch { +export interface DatabaseProvisionModulePatch { + databaseName?: string | null; + ownerId?: string | null; + subdomain?: string | null; + domain?: string | null; + modules?: Record | null; + options?: Record | null; + bootstrapUser?: boolean | null; + status?: string | null; + errorMessage?: string | null; + sourceDatabaseId?: string | null; + bootstrapStatus?: string | null; + bootstrapError?: string | null; databaseId?: string | null; - schemaId?: string | null; - principalsTableId?: string | null; - principalEntitiesTableId?: string | null; - principalScopeOverridesTableId?: string | null; - usersTableId?: string | null; - sessionsTableId?: string | null; - sessionCredentialsTableId?: string | null; - auditsTableId?: string | null; - principalsTableName?: string | null; - createPrincipalFunction?: string | null; - deletePrincipalFunction?: string | null; - createOrgPrincipalFunction?: string | null; - deleteOrgPrincipalFunction?: string | null; - createOrgApiKeyFunction?: string | null; - revokeOrgApiKeyFunction?: string | null; - apiName?: string | null; + completedAt?: string | null; + fulfilledAt?: string | null; } -export interface UpdatePrincipalAuthModuleInput { +export interface UpdateDatabaseProvisionModuleInput { clientMutationId?: string; id: string; - principalAuthModulePatch: PrincipalAuthModulePatch; + databaseProvisionModulePatch: DatabaseProvisionModulePatch; } -export interface DeletePrincipalAuthModuleInput { +export interface DeleteDatabaseProvisionModuleInput { clientMutationId?: string; id: string; } -export interface CreateComputeLogModuleInput { +export interface CreateFunctionInvocationModuleInput { clientMutationId?: string; - computeLogModule: { + functionInvocationModule: { databaseId: string; + entityField?: string; schemaId?: string; privateSchemaId?: string; publicSchemaName?: string; privateSchemaName?: string; - computeLogTableId?: string; - computeLogTableName?: string; - usageDailyTableId?: string; - usageDailyTableName?: string; - interval?: string; - retention?: string; - premake?: number; - scope?: string; - actorFkTableId?: string; - entityFkTableId?: string; - prefix?: string; + invocationsTableId?: string; + executionLogsTableId?: string; + invocationsTableName?: string; + executionLogsTableName?: string; apiName?: string; privateApiName?: string; + scope?: string; + prefix?: string; + entityTableId?: string; + policies?: Record; + provisions?: Record; + defaultPermissions?: string[]; }; } -export interface ComputeLogModulePatch { +export interface FunctionInvocationModulePatch { databaseId?: string | null; + entityField?: string | null; schemaId?: string | null; privateSchemaId?: string | null; publicSchemaName?: string | null; privateSchemaName?: string | null; - computeLogTableId?: string | null; - computeLogTableName?: string | null; - usageDailyTableId?: string | null; - usageDailyTableName?: string | null; - interval?: string | null; - retention?: string | null; - premake?: number | null; - scope?: string | null; - actorFkTableId?: string | null; - entityFkTableId?: string | null; - prefix?: string | null; + invocationsTableId?: string | null; + executionLogsTableId?: string | null; + invocationsTableName?: string | null; + executionLogsTableName?: string | null; apiName?: string | null; privateApiName?: string | null; + scope?: string | null; + prefix?: string | null; + entityTableId?: string | null; + policies?: Record | null; + provisions?: Record | null; + defaultPermissions?: string[] | null; } -export interface UpdateComputeLogModuleInput { +export interface UpdateFunctionInvocationModuleInput { clientMutationId?: string; id: string; - computeLogModulePatch: ComputeLogModulePatch; + functionInvocationModulePatch: FunctionInvocationModulePatch; } -export interface DeleteComputeLogModuleInput { +export interface DeleteFunctionInvocationModuleInput { clientMutationId?: string; id: string; } -export interface CreateInferenceLogModuleInput { +export interface CreateInvitesModuleInput { clientMutationId?: string; - inferenceLogModule: { + invitesModule: { databaseId: string; + entityField?: string; schemaId?: string; privateSchemaId?: string; publicSchemaName?: string; privateSchemaName?: string; - inferenceLogTableId?: string; - inferenceLogTableName?: string; - usageDailyTableId?: string; - usageDailyTableName?: string; - interval?: string; - retention?: string; - premake?: number; + emailsTableId?: string; + usersTableId?: string; + invitesTableId?: string; + claimedInvitesTableId?: string; + invitesTableName?: string; + claimedInvitesTableName?: string; + submitInviteCodeFunction?: string; scope?: string; - actorFkTableId?: string; - entityFkTableId?: string; prefix?: string; + entityTableId?: string; apiName?: string; privateApiName?: string; }; } -export interface InferenceLogModulePatch { +export interface InvitesModulePatch { databaseId?: string | null; + entityField?: string | null; schemaId?: string | null; privateSchemaId?: string | null; publicSchemaName?: string | null; privateSchemaName?: string | null; - inferenceLogTableId?: string | null; - inferenceLogTableName?: string | null; - usageDailyTableId?: string | null; - usageDailyTableName?: string | null; - interval?: string | null; - retention?: string | null; - premake?: number | null; + emailsTableId?: string | null; + usersTableId?: string | null; + invitesTableId?: string | null; + claimedInvitesTableId?: string | null; + invitesTableName?: string | null; + claimedInvitesTableName?: string | null; + submitInviteCodeFunction?: string | null; scope?: string | null; - actorFkTableId?: string | null; - entityFkTableId?: string | null; prefix?: string | null; + entityTableId?: string | null; apiName?: string | null; privateApiName?: string | null; } -export interface UpdateInferenceLogModuleInput { +export interface UpdateInvitesModuleInput { clientMutationId?: string; id: string; - inferenceLogModulePatch: InferenceLogModulePatch; + invitesModulePatch: InvitesModulePatch; } -export interface DeleteInferenceLogModuleInput { +export interface DeleteInvitesModuleInput { clientMutationId?: string; id: string; } @@ -9651,6 +10596,7 @@ export interface CreateNamespaceModuleInput { clientMutationId?: string; namespaceModule: { databaseId: string; + entityField?: string; schemaId?: string; privateSchemaId?: string; publicSchemaName?: string; @@ -9664,7 +10610,6 @@ export interface CreateNamespaceModuleInput { scope?: string; prefix?: string; entityTableId?: string; - platformNamespacesTableId?: string; policies?: Record; provisions?: Record; defaultPermissions?: string[]; @@ -9672,6 +10617,7 @@ export interface CreateNamespaceModuleInput { } export interface NamespaceModulePatch { databaseId?: string | null; + entityField?: string | null; schemaId?: string | null; privateSchemaId?: string | null; publicSchemaName?: string | null; @@ -9685,7 +10631,6 @@ export interface NamespaceModulePatch { scope?: string | null; prefix?: string | null; entityTableId?: string | null; - platformNamespacesTableId?: string | null; policies?: Record | null; provisions?: Record | null; defaultPermissions?: string[] | null; @@ -9699,68 +10644,73 @@ export interface DeleteNamespaceModuleInput { clientMutationId?: string; id: string; } -export interface CreateResourceModuleInput { +export interface CreatePlansModuleInput { clientMutationId?: string; - resourceModule: { + plansModule: { databaseId: string; schemaId?: string; privateSchemaId?: string; publicSchemaName?: string; privateSchemaName?: string; - resourcesTableId?: string; - resourceEventsTableId?: string; - resourcesTableName?: string; - resourceEventsTableName?: string; + plansTableId?: string; + plansTableName?: string; + planLimitsTableId?: string; + planLimitsTableName?: string; + planPricingTableId?: string; + planOverridesTableId?: string; + planMeterLimitsTableId?: string; + planCapsTableId?: string; + applyPlanFunction?: string; + applyPlanAggregateFunction?: string; + applyBillingPlanFunction?: string; + applyPlanCapsFunction?: string; + prefix?: string; apiName?: string; privateApiName?: string; - scope?: string; - prefix?: string; - entityTableId?: string; - namespaceModuleId?: string; - policies?: Record; - provisions?: Record; - defaultPermissions?: string[]; }; } -export interface ResourceModulePatch { +export interface PlansModulePatch { databaseId?: string | null; schemaId?: string | null; privateSchemaId?: string | null; publicSchemaName?: string | null; privateSchemaName?: string | null; - resourcesTableId?: string | null; - resourceEventsTableId?: string | null; - resourcesTableName?: string | null; - resourceEventsTableName?: string | null; + plansTableId?: string | null; + plansTableName?: string | null; + planLimitsTableId?: string | null; + planLimitsTableName?: string | null; + planPricingTableId?: string | null; + planOverridesTableId?: string | null; + planMeterLimitsTableId?: string | null; + planCapsTableId?: string | null; + applyPlanFunction?: string | null; + applyPlanAggregateFunction?: string | null; + applyBillingPlanFunction?: string | null; + applyPlanCapsFunction?: string | null; + prefix?: string | null; apiName?: string | null; privateApiName?: string | null; - scope?: string | null; - prefix?: string | null; - entityTableId?: string | null; - namespaceModuleId?: string | null; - policies?: Record | null; - provisions?: Record | null; - defaultPermissions?: string[] | null; } -export interface UpdateResourceModuleInput { +export interface UpdatePlansModuleInput { clientMutationId?: string; id: string; - resourceModulePatch: ResourceModulePatch; + plansModulePatch: PlansModulePatch; } -export interface DeleteResourceModuleInput { +export interface DeletePlansModuleInput { clientMutationId?: string; id: string; } -export interface CreateStorageLogModuleInput { +export interface CreateComputeLogModuleInput { clientMutationId?: string; - storageLogModule: { + computeLogModule: { databaseId: string; + entityField?: string; schemaId?: string; privateSchemaId?: string; publicSchemaName?: string; privateSchemaName?: string; - storageLogTableId?: string; - storageLogTableName?: string; + computeLogTableId?: string; + computeLogTableName?: string; usageDailyTableId?: string; usageDailyTableName?: string; interval?: string; @@ -9774,14 +10724,15 @@ export interface CreateStorageLogModuleInput { privateApiName?: string; }; } -export interface StorageLogModulePatch { +export interface ComputeLogModulePatch { databaseId?: string | null; + entityField?: string | null; schemaId?: string | null; privateSchemaId?: string | null; publicSchemaName?: string | null; privateSchemaName?: string | null; - storageLogTableId?: string | null; - storageLogTableName?: string | null; + computeLogTableId?: string | null; + computeLogTableName?: string | null; usageDailyTableId?: string | null; usageDailyTableName?: string | null; interval?: string | null; @@ -9794,25 +10745,26 @@ export interface StorageLogModulePatch { apiName?: string | null; privateApiName?: string | null; } -export interface UpdateStorageLogModuleInput { +export interface UpdateComputeLogModuleInput { clientMutationId?: string; id: string; - storageLogModulePatch: StorageLogModulePatch; + computeLogModulePatch: ComputeLogModulePatch; } -export interface DeleteStorageLogModuleInput { +export interface DeleteComputeLogModuleInput { clientMutationId?: string; id: string; } -export interface CreateTransferLogModuleInput { +export interface CreateInferenceLogModuleInput { clientMutationId?: string; - transferLogModule: { + inferenceLogModule: { databaseId: string; + entityField?: string; schemaId?: string; privateSchemaId?: string; publicSchemaName?: string; privateSchemaName?: string; - transferLogTableId?: string; - transferLogTableName?: string; + inferenceLogTableId?: string; + inferenceLogTableName?: string; usageDailyTableId?: string; usageDailyTableName?: string; interval?: string; @@ -9826,14 +10778,15 @@ export interface CreateTransferLogModuleInput { privateApiName?: string; }; } -export interface TransferLogModulePatch { +export interface InferenceLogModulePatch { databaseId?: string | null; + entityField?: string | null; schemaId?: string | null; privateSchemaId?: string | null; publicSchemaName?: string | null; privateSchemaName?: string | null; - transferLogTableId?: string | null; - transferLogTableName?: string | null; + inferenceLogTableId?: string | null; + inferenceLogTableName?: string | null; usageDailyTableId?: string | null; usageDailyTableName?: string | null; interval?: string | null; @@ -9846,122 +10799,120 @@ export interface TransferLogModulePatch { apiName?: string | null; privateApiName?: string | null; } -export interface UpdateTransferLogModuleInput { +export interface UpdateInferenceLogModuleInput { clientMutationId?: string; id: string; - transferLogModulePatch: TransferLogModulePatch; + inferenceLogModulePatch: InferenceLogModulePatch; } -export interface DeleteTransferLogModuleInput { +export interface DeleteInferenceLogModuleInput { clientMutationId?: string; id: string; } -export interface CreateFunctionDeploymentModuleInput { +export interface CreateStorageLogModuleInput { clientMutationId?: string; - functionDeploymentModule: { + storageLogModule: { databaseId: string; + entityField?: string; schemaId?: string; privateSchemaId?: string; publicSchemaName?: string; privateSchemaName?: string; - deploymentsTableId?: string; - deploymentEventsTableId?: string; - deploymentsTableName?: string; - deploymentEventsTableName?: string; - apiName?: string; - privateApiName?: string; + storageLogTableId?: string; + storageLogTableName?: string; + usageDailyTableId?: string; + usageDailyTableName?: string; + interval?: string; + retention?: string; + premake?: number; scope?: string; + actorFkTableId?: string; + entityFkTableId?: string; prefix?: string; - entityTableId?: string; - functionModuleId?: string; - namespaceModuleId?: string; - policies?: Record; - provisions?: Record; - defaultPermissions?: string[]; + apiName?: string; + privateApiName?: string; }; } -export interface FunctionDeploymentModulePatch { +export interface StorageLogModulePatch { databaseId?: string | null; + entityField?: string | null; schemaId?: string | null; privateSchemaId?: string | null; publicSchemaName?: string | null; privateSchemaName?: string | null; - deploymentsTableId?: string | null; - deploymentEventsTableId?: string | null; - deploymentsTableName?: string | null; - deploymentEventsTableName?: string | null; - apiName?: string | null; - privateApiName?: string | null; + storageLogTableId?: string | null; + storageLogTableName?: string | null; + usageDailyTableId?: string | null; + usageDailyTableName?: string | null; + interval?: string | null; + retention?: string | null; + premake?: number | null; scope?: string | null; + actorFkTableId?: string | null; + entityFkTableId?: string | null; prefix?: string | null; - entityTableId?: string | null; - functionModuleId?: string | null; - namespaceModuleId?: string | null; - policies?: Record | null; - provisions?: Record | null; - defaultPermissions?: string[] | null; + apiName?: string | null; + privateApiName?: string | null; } -export interface UpdateFunctionDeploymentModuleInput { +export interface UpdateStorageLogModuleInput { clientMutationId?: string; id: string; - functionDeploymentModulePatch: FunctionDeploymentModulePatch; + storageLogModulePatch: StorageLogModulePatch; } -export interface DeleteFunctionDeploymentModuleInput { +export interface DeleteStorageLogModuleInput { clientMutationId?: string; id: string; } -export interface CreatePlansModuleInput { +export interface CreateTransferLogModuleInput { clientMutationId?: string; - plansModule: { + transferLogModule: { databaseId: string; + entityField?: string; schemaId?: string; privateSchemaId?: string; publicSchemaName?: string; privateSchemaName?: string; - plansTableId?: string; - plansTableName?: string; - planLimitsTableId?: string; - planLimitsTableName?: string; - planPricingTableId?: string; - planOverridesTableId?: string; - planMeterLimitsTableId?: string; - planCapsTableId?: string; - applyPlanFunction?: string; - applyPlanAggregateFunction?: string; - applyBillingPlanFunction?: string; - applyPlanCapsFunction?: string; + transferLogTableId?: string; + transferLogTableName?: string; + usageDailyTableId?: string; + usageDailyTableName?: string; + interval?: string; + retention?: string; + premake?: number; + scope?: string; + actorFkTableId?: string; + entityFkTableId?: string; prefix?: string; apiName?: string; privateApiName?: string; }; } -export interface PlansModulePatch { +export interface TransferLogModulePatch { databaseId?: string | null; + entityField?: string | null; schemaId?: string | null; privateSchemaId?: string | null; publicSchemaName?: string | null; privateSchemaName?: string | null; - plansTableId?: string | null; - plansTableName?: string | null; - planLimitsTableId?: string | null; - planLimitsTableName?: string | null; - planPricingTableId?: string | null; - planOverridesTableId?: string | null; - planMeterLimitsTableId?: string | null; - planCapsTableId?: string | null; - applyPlanFunction?: string | null; - applyPlanAggregateFunction?: string | null; - applyBillingPlanFunction?: string | null; - applyPlanCapsFunction?: string | null; + transferLogTableId?: string | null; + transferLogTableName?: string | null; + usageDailyTableId?: string | null; + usageDailyTableName?: string | null; + interval?: string | null; + retention?: string | null; + premake?: number | null; + scope?: string | null; + actorFkTableId?: string | null; + entityFkTableId?: string | null; prefix?: string | null; apiName?: string | null; privateApiName?: string | null; } -export interface UpdatePlansModuleInput { +export interface UpdateTransferLogModuleInput { clientMutationId?: string; id: string; - plansModulePatch: PlansModulePatch; + transferLogModulePatch: TransferLogModulePatch; } -export interface DeletePlansModuleInput { +export interface DeleteTransferLogModuleInput { clientMutationId?: string; id: string; } @@ -10023,61 +10974,117 @@ export interface DeleteBillingProviderModuleInput { clientMutationId?: string; id: string; } -export interface CreateDbUsageModuleInput { +export interface CreateFunctionDeploymentModuleInput { clientMutationId?: string; - dbUsageModule: { + functionDeploymentModule: { databaseId: string; + entityField?: string; schemaId?: string; privateSchemaId?: string; publicSchemaName?: string; privateSchemaName?: string; - tableStatsLogTableId?: string; - tableStatsLogTableName?: string; - tableStatsDailyTableId?: string; - tableStatsDailyTableName?: string; - queryStatsLogTableId?: string; - queryStatsLogTableName?: string; - queryStatsDailyTableId?: string; - queryStatsDailyTableName?: string; - interval?: string; - retention?: string; - premake?: number; + deploymentsTableId?: string; + deploymentEventsTableId?: string; + deploymentsTableName?: string; + deploymentEventsTableName?: string; + apiName?: string; + privateApiName?: string; scope?: string; prefix?: string; + entityTableId?: string; + functionModuleId?: string; + namespaceModuleId?: string; + policies?: Record; + provisions?: Record; defaultPermissions?: string[]; + }; +} +export interface FunctionDeploymentModulePatch { + databaseId?: string | null; + entityField?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + publicSchemaName?: string | null; + privateSchemaName?: string | null; + deploymentsTableId?: string | null; + deploymentEventsTableId?: string | null; + deploymentsTableName?: string | null; + deploymentEventsTableName?: string | null; + apiName?: string | null; + privateApiName?: string | null; + scope?: string | null; + prefix?: string | null; + entityTableId?: string | null; + functionModuleId?: string | null; + namespaceModuleId?: string | null; + policies?: Record | null; + provisions?: Record | null; + defaultPermissions?: string[] | null; +} +export interface UpdateFunctionDeploymentModuleInput { + clientMutationId?: string; + id: string; + functionDeploymentModulePatch: FunctionDeploymentModulePatch; +} +export interface DeleteFunctionDeploymentModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreatePermissionsModuleInput { + clientMutationId?: string; + permissionsModule: { + databaseId: string; + entityField?: string; + schemaId?: string; + privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + tableId?: string; + tableName?: string; + defaultTableId?: string; + defaultTableName?: string; + bitlen?: number; + scope?: string; + prefix?: string; + entityTableId?: string; + actorTableId?: string; + getPaddedMask?: string; + getMask?: string; + getByMask?: string; + getMaskByName?: string; apiName?: string; privateApiName?: string; }; } -export interface DbUsageModulePatch { +export interface PermissionsModulePatch { databaseId?: string | null; + entityField?: string | null; schemaId?: string | null; privateSchemaId?: string | null; publicSchemaName?: string | null; privateSchemaName?: string | null; - tableStatsLogTableId?: string | null; - tableStatsLogTableName?: string | null; - tableStatsDailyTableId?: string | null; - tableStatsDailyTableName?: string | null; - queryStatsLogTableId?: string | null; - queryStatsLogTableName?: string | null; - queryStatsDailyTableId?: string | null; - queryStatsDailyTableName?: string | null; - interval?: string | null; - retention?: string | null; - premake?: number | null; + tableId?: string | null; + tableName?: string | null; + defaultTableId?: string | null; + defaultTableName?: string | null; + bitlen?: number | null; scope?: string | null; prefix?: string | null; - defaultPermissions?: string[] | null; + entityTableId?: string | null; + actorTableId?: string | null; + getPaddedMask?: string | null; + getMask?: string | null; + getByMask?: string | null; + getMaskByName?: string | null; apiName?: string | null; privateApiName?: string | null; } -export interface UpdateDbUsageModuleInput { +export interface UpdatePermissionsModuleInput { clientMutationId?: string; id: string; - dbUsageModulePatch: DbUsageModulePatch; + permissionsModulePatch: PermissionsModulePatch; } -export interface DeleteDbUsageModuleInput { +export interface DeletePermissionsModuleInput { clientMutationId?: string; id: string; } @@ -10085,6 +11092,7 @@ export interface CreateGraphExecutionModuleInput { clientMutationId?: string; graphExecutionModule: { databaseId: string; + entityField?: string; schemaId?: string; privateSchemaId?: string; publicSchemaName?: string; @@ -10108,6 +11116,7 @@ export interface CreateGraphExecutionModuleInput { } export interface GraphExecutionModulePatch { databaseId?: string | null; + entityField?: string | null; schemaId?: string | null; privateSchemaId?: string | null; publicSchemaName?: string | null; @@ -10141,6 +11150,7 @@ export interface CreateHierarchyModuleInput { clientMutationId?: string; hierarchyModule: { databaseId: string; + entityField?: string; schemaId?: string; privateSchemaId?: string; chartEdgesTableId?: string; @@ -10164,6 +11174,7 @@ export interface CreateHierarchyModuleInput { } export interface HierarchyModulePatch { databaseId?: string | null; + entityField?: string | null; schemaId?: string | null; privateSchemaId?: string | null; chartEdgesTableId?: string | null; @@ -10193,66 +11204,11 @@ export interface DeleteHierarchyModuleInput { clientMutationId?: string; id: string; } -export interface CreatePermissionsModuleInput { - clientMutationId?: string; - permissionsModule: { - databaseId: string; - schemaId?: string; - privateSchemaId?: string; - publicSchemaName?: string; - privateSchemaName?: string; - tableId?: string; - tableName?: string; - defaultTableId?: string; - defaultTableName?: string; - bitlen?: number; - scope?: string; - prefix?: string; - entityTableId?: string; - actorTableId?: string; - getPaddedMask?: string; - getMask?: string; - getByMask?: string; - getMaskByName?: string; - apiName?: string; - privateApiName?: string; - }; -} -export interface PermissionsModulePatch { - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - publicSchemaName?: string | null; - privateSchemaName?: string | null; - tableId?: string | null; - tableName?: string | null; - defaultTableId?: string | null; - defaultTableName?: string | null; - bitlen?: number | null; - scope?: string | null; - prefix?: string | null; - entityTableId?: string | null; - actorTableId?: string | null; - getPaddedMask?: string | null; - getMask?: string | null; - getByMask?: string | null; - getMaskByName?: string | null; - apiName?: string | null; - privateApiName?: string | null; -} -export interface UpdatePermissionsModuleInput { - clientMutationId?: string; - id: string; - permissionsModulePatch: PermissionsModulePatch; -} -export interface DeletePermissionsModuleInput { - clientMutationId?: string; - id: string; -} export interface CreateNotificationsModuleInput { clientMutationId?: string; notificationsModule: { databaseId: string; + entityField?: string; schemaId?: string; privateSchemaId?: string; publicSchemaName?: string; @@ -10278,6 +11234,7 @@ export interface CreateNotificationsModuleInput { } export interface NotificationsModulePatch { databaseId?: string | null; + entityField?: string | null; schemaId?: string | null; privateSchemaId?: string | null; publicSchemaName?: string | null; @@ -10309,10 +11266,73 @@ export interface DeleteNotificationsModuleInput { clientMutationId?: string; id: string; } +export interface CreateRelationProvisionInput { + clientMutationId?: string; + relationProvision: { + databaseId: string; + relationType: string; + sourceTableId: string; + targetTableId: string; + fieldName?: string; + deleteAction?: string; + isRequired?: boolean; + apiRequired?: boolean; + junctionTableId?: string; + junctionTableName?: string; + junctionSchemaId?: string; + sourceFieldName?: string; + targetFieldName?: string; + useCompositeKey?: boolean; + createIndex?: boolean; + exposeInApi?: boolean; + nodes?: Record; + grants?: Record; + policies?: Record; + outFieldId?: string; + outJunctionTableId?: string; + outSourceFieldId?: string; + outTargetFieldId?: string; + }; +} +export interface RelationProvisionPatch { + databaseId?: string | null; + relationType?: string | null; + sourceTableId?: string | null; + targetTableId?: string | null; + fieldName?: string | null; + deleteAction?: string | null; + isRequired?: boolean | null; + apiRequired?: boolean | null; + junctionTableId?: string | null; + junctionTableName?: string | null; + junctionSchemaId?: string | null; + sourceFieldName?: string | null; + targetFieldName?: string | null; + useCompositeKey?: boolean | null; + createIndex?: boolean | null; + exposeInApi?: boolean | null; + nodes?: Record | null; + grants?: Record | null; + policies?: Record | null; + outFieldId?: string | null; + outJunctionTableId?: string | null; + outSourceFieldId?: string | null; + outTargetFieldId?: string | null; +} +export interface UpdateRelationProvisionInput { + clientMutationId?: string; + id: string; + relationProvisionPatch: RelationProvisionPatch; +} +export interface DeleteRelationProvisionInput { + clientMutationId?: string; + id: string; +} export interface CreateProfilesModuleInput { clientMutationId?: string; profilesModule: { databaseId: string; + entityField?: string; schemaId?: string; privateSchemaId?: string; publicSchemaName?: string; @@ -10339,6 +11359,7 @@ export interface CreateProfilesModuleInput { } export interface ProfilesModulePatch { databaseId?: string | null; + entityField?: string | null; schemaId?: string | null; privateSchemaId?: string | null; publicSchemaName?: string | null; @@ -10394,6 +11415,8 @@ export interface CreateBillingModuleInput { meterDefaultsTableId?: string; meterDefaultsTableName?: string; recordUsageFunction?: string; + sweepExpiredSubscriptionsFunction?: string; + rollupUsageSummaryFunction?: string; prefix?: string; defaultPermissions?: string[]; apiName?: string; @@ -10421,6 +11444,8 @@ export interface BillingModulePatch { meterDefaultsTableId?: string | null; meterDefaultsTableName?: string | null; recordUsageFunction?: string | null; + sweepExpiredSubscriptionsFunction?: string | null; + rollupUsageSummaryFunction?: string | null; prefix?: string | null; defaultPermissions?: string[] | null; apiName?: string | null; @@ -10435,65 +11460,69 @@ export interface DeleteBillingModuleInput { clientMutationId?: string; id: string; } -export interface CreateRelationProvisionInput { +export interface CreateResourceModuleInput { clientMutationId?: string; - relationProvision: { + resourceModule: { databaseId: string; - relationType: string; - sourceTableId: string; - targetTableId: string; - fieldName?: string; - deleteAction?: string; - isRequired?: boolean; - apiRequired?: boolean; - junctionTableId?: string; - junctionTableName?: string; - junctionSchemaId?: string; - sourceFieldName?: string; - targetFieldName?: string; - useCompositeKey?: boolean; - createIndex?: boolean; - exposeInApi?: boolean; - nodes?: Record; - grants?: Record; + entityField?: string; + schemaId?: string; + privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + resourcesTableId?: string; + resourceEventsTableId?: string; + resourceStatusChecksTableId?: string; + resourceDefinitionsTableId?: string; + resourcesTableName?: string; + resourceEventsTableName?: string; + resourceStatusChecksTableName?: string; + resourceDefinitionsTableName?: string; + resolvedRequirementsViewName?: string; + requirementsStateViewName?: string; + apiName?: string; + privateApiName?: string; + scope?: string; + prefix?: string; + entityTableId?: string; + namespaceModuleId?: string; policies?: Record; - outFieldId?: string; - outJunctionTableId?: string; - outSourceFieldId?: string; - outTargetFieldId?: string; + provisions?: Record; + defaultPermissions?: string[]; }; } -export interface RelationProvisionPatch { +export interface ResourceModulePatch { databaseId?: string | null; - relationType?: string | null; - sourceTableId?: string | null; - targetTableId?: string | null; - fieldName?: string | null; - deleteAction?: string | null; - isRequired?: boolean | null; - apiRequired?: boolean | null; - junctionTableId?: string | null; - junctionTableName?: string | null; - junctionSchemaId?: string | null; - sourceFieldName?: string | null; - targetFieldName?: string | null; - useCompositeKey?: boolean | null; - createIndex?: boolean | null; - exposeInApi?: boolean | null; - nodes?: Record | null; - grants?: Record | null; + entityField?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + publicSchemaName?: string | null; + privateSchemaName?: string | null; + resourcesTableId?: string | null; + resourceEventsTableId?: string | null; + resourceStatusChecksTableId?: string | null; + resourceDefinitionsTableId?: string | null; + resourcesTableName?: string | null; + resourceEventsTableName?: string | null; + resourceStatusChecksTableName?: string | null; + resourceDefinitionsTableName?: string | null; + resolvedRequirementsViewName?: string | null; + requirementsStateViewName?: string | null; + apiName?: string | null; + privateApiName?: string | null; + scope?: string | null; + prefix?: string | null; + entityTableId?: string | null; + namespaceModuleId?: string | null; policies?: Record | null; - outFieldId?: string | null; - outJunctionTableId?: string | null; - outSourceFieldId?: string | null; - outTargetFieldId?: string | null; + provisions?: Record | null; + defaultPermissions?: string[] | null; } -export interface UpdateRelationProvisionInput { +export interface UpdateResourceModuleInput { clientMutationId?: string; id: string; - relationProvisionPatch: RelationProvisionPatch; + resourceModulePatch: ResourceModulePatch; } -export interface DeleteRelationProvisionInput { +export interface DeleteResourceModuleInput { clientMutationId?: string; id: string; } @@ -10558,12 +11587,80 @@ export interface UserAuthModulePatch { apiName?: string | null; privateApiName?: string | null; } -export interface UpdateUserAuthModuleInput { +export interface UpdateUserAuthModuleInput { + clientMutationId?: string; + id: string; + userAuthModulePatch: UserAuthModulePatch; +} +export interface DeleteUserAuthModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateDbUsageModuleInput { + clientMutationId?: string; + dbUsageModule: { + databaseId: string; + entityField?: string; + schemaId?: string; + privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + tableStatsLogTableId?: string; + tableStatsLogTableName?: string; + tableStatsDailyTableId?: string; + tableStatsDailyTableName?: string; + queryStatsLogTableId?: string; + queryStatsLogTableName?: string; + queryStatsDailyTableId?: string; + queryStatsDailyTableName?: string; + collectDbTableStatsFunction?: string; + collectDbQueryStatsFunction?: string; + rollupDbTableStatsDailyFunction?: string; + rollupDbQueryStatsDailyFunction?: string; + interval?: string; + retention?: string; + premake?: number; + scope?: string; + prefix?: string; + defaultPermissions?: string[]; + apiName?: string; + privateApiName?: string; + }; +} +export interface DbUsageModulePatch { + databaseId?: string | null; + entityField?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + publicSchemaName?: string | null; + privateSchemaName?: string | null; + tableStatsLogTableId?: string | null; + tableStatsLogTableName?: string | null; + tableStatsDailyTableId?: string | null; + tableStatsDailyTableName?: string | null; + queryStatsLogTableId?: string | null; + queryStatsLogTableName?: string | null; + queryStatsDailyTableId?: string | null; + queryStatsDailyTableName?: string | null; + collectDbTableStatsFunction?: string | null; + collectDbQueryStatsFunction?: string | null; + rollupDbTableStatsDailyFunction?: string | null; + rollupDbQueryStatsDailyFunction?: string | null; + interval?: string | null; + retention?: string | null; + premake?: number | null; + scope?: string | null; + prefix?: string | null; + defaultPermissions?: string[] | null; + apiName?: string | null; + privateApiName?: string | null; +} +export interface UpdateDbUsageModuleInput { clientMutationId?: string; id: string; - userAuthModulePatch: UserAuthModulePatch; + dbUsageModulePatch: DbUsageModulePatch; } -export interface DeleteUserAuthModuleInput { +export interface DeleteDbUsageModuleInput { clientMutationId?: string; id: string; } @@ -10571,6 +11668,7 @@ export interface CreateAgentModuleInput { clientMutationId?: string; agentModule: { databaseId: string; + entityField?: string; schemaId?: string; privateSchemaId?: string; publicSchemaName?: string; @@ -10608,6 +11706,7 @@ export interface CreateAgentModuleInput { } export interface AgentModulePatch { databaseId?: string | null; + entityField?: string | null; schemaId?: string | null; privateSchemaId?: string | null; publicSchemaName?: string | null; @@ -10655,6 +11754,7 @@ export interface CreateLimitsModuleInput { clientMutationId?: string; limitsModule: { databaseId: string; + entityField?: string; schemaId?: string; privateSchemaId?: string; publicSchemaName?: string; @@ -10693,6 +11793,7 @@ export interface CreateLimitsModuleInput { } export interface LimitsModulePatch { databaseId?: string | null; + entityField?: string | null; schemaId?: string | null; privateSchemaId?: string | null; publicSchemaName?: string | null; @@ -10737,102 +11838,6 @@ export interface DeleteLimitsModuleInput { clientMutationId?: string; id: string; } -export interface CreateMembershipsModuleInput { - clientMutationId?: string; - membershipsModule: { - databaseId: string; - schemaId?: string; - privateSchemaId?: string; - publicSchemaName?: string; - privateSchemaName?: string; - membershipsTableId?: string; - membershipsTableName?: string; - membersTableId?: string; - membersTableName?: string; - membershipDefaultsTableId?: string; - membershipDefaultsTableName?: string; - membershipSettingsTableId?: string; - membershipSettingsTableName?: string; - grantsTableId?: string; - grantsTableName?: string; - actorTableId?: string; - limitsTableId?: string; - defaultLimitsTableId?: string; - permissionsTableId?: string; - defaultPermissionsTableId?: string; - sprtTableId?: string; - adminGrantsTableId?: string; - adminGrantsTableName?: string; - ownerGrantsTableId?: string; - ownerGrantsTableName?: string; - scope?: string; - prefix?: string; - entityTableId?: string; - entityTableOwnerId?: string; - getOrgFn?: string; - actorMaskCheck?: string; - actorPermCheck?: string; - entityIdsByMask?: string; - entityIdsByPerm?: string; - entityIdsFunction?: string; - memberProfilesTableId?: string; - permissionDefaultPermissionsTableId?: string; - permissionDefaultGrantsTableId?: string; - apiName?: string; - privateApiName?: string; - }; -} -export interface MembershipsModulePatch { - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - publicSchemaName?: string | null; - privateSchemaName?: string | null; - membershipsTableId?: string | null; - membershipsTableName?: string | null; - membersTableId?: string | null; - membersTableName?: string | null; - membershipDefaultsTableId?: string | null; - membershipDefaultsTableName?: string | null; - membershipSettingsTableId?: string | null; - membershipSettingsTableName?: string | null; - grantsTableId?: string | null; - grantsTableName?: string | null; - actorTableId?: string | null; - limitsTableId?: string | null; - defaultLimitsTableId?: string | null; - permissionsTableId?: string | null; - defaultPermissionsTableId?: string | null; - sprtTableId?: string | null; - adminGrantsTableId?: string | null; - adminGrantsTableName?: string | null; - ownerGrantsTableId?: string | null; - ownerGrantsTableName?: string | null; - scope?: string | null; - prefix?: string | null; - entityTableId?: string | null; - entityTableOwnerId?: string | null; - getOrgFn?: string | null; - actorMaskCheck?: string | null; - actorPermCheck?: string | null; - entityIdsByMask?: string | null; - entityIdsByPerm?: string | null; - entityIdsFunction?: string | null; - memberProfilesTableId?: string | null; - permissionDefaultPermissionsTableId?: string | null; - permissionDefaultGrantsTableId?: string | null; - apiName?: string | null; - privateApiName?: string | null; -} -export interface UpdateMembershipsModuleInput { - clientMutationId?: string; - id: string; - membershipsModulePatch: MembershipsModulePatch; -} -export interface DeleteMembershipsModuleInput { - clientMutationId?: string; - id: string; -} export interface CreateEntityTypeProvisionInput { clientMutationId?: string; entityTypeProvision: { @@ -10871,7 +11876,6 @@ export interface CreateEntityTypeProvisionInput { outDefinitionsTableId?: string; outInvocationsTableId?: string; outExecutionLogsTableId?: string; - outSecretDefinitionsTableId?: string; outGraphModuleId?: string; outGraphsTableId?: string; outAgentModuleId?: string; @@ -10913,7 +11917,6 @@ export interface EntityTypeProvisionPatch { outDefinitionsTableId?: string | null; outInvocationsTableId?: string | null; outExecutionLogsTableId?: string | null; - outSecretDefinitionsTableId?: string | null; outGraphModuleId?: string | null; outGraphsTableId?: string | null; outAgentModuleId?: string | null; @@ -10944,6 +11947,7 @@ export interface CreateStorageModuleInput { policies?: Record; provisions?: Record; entityTableId?: string; + entityField?: string; endpoint?: string; publicUrlPrefix?: string; provider?: string; @@ -10985,6 +11989,7 @@ export interface StorageModulePatch { policies?: Record | null; provisions?: Record | null; entityTableId?: string | null; + entityField?: string | null; endpoint?: string | null; publicUrlPrefix?: string | null; provider?: string | null; @@ -11019,10 +12024,109 @@ export interface DeleteStorageModuleInput { clientMutationId?: string; id: string; } +export interface CreateMembershipsModuleInput { + clientMutationId?: string; + membershipsModule: { + databaseId: string; + entityField?: string; + schemaId?: string; + privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + membershipsTableId?: string; + membershipsTableName?: string; + membersTableId?: string; + membersTableName?: string; + membershipDefaultsTableId?: string; + membershipDefaultsTableName?: string; + membershipSettingsTableId?: string; + membershipSettingsTableName?: string; + grantsTableId?: string; + grantsTableName?: string; + actorTableId?: string; + limitsTableId?: string; + defaultLimitsTableId?: string; + permissionsTableId?: string; + defaultPermissionsTableId?: string; + sprtTableId?: string; + adminGrantsTableId?: string; + adminGrantsTableName?: string; + ownerGrantsTableId?: string; + ownerGrantsTableName?: string; + scope?: string; + prefix?: string; + entityTableId?: string; + entityTableOwnerId?: string; + getOrgFn?: string; + actorMaskCheck?: string; + actorPermCheck?: string; + entityIdsByMask?: string; + entityIdsByPerm?: string; + entityIdsFunction?: string; + memberProfilesTableId?: string; + permissionDefaultPermissionsTableId?: string; + permissionDefaultGrantsTableId?: string; + apiName?: string; + privateApiName?: string; + }; +} +export interface MembershipsModulePatch { + databaseId?: string | null; + entityField?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + publicSchemaName?: string | null; + privateSchemaName?: string | null; + membershipsTableId?: string | null; + membershipsTableName?: string | null; + membersTableId?: string | null; + membersTableName?: string | null; + membershipDefaultsTableId?: string | null; + membershipDefaultsTableName?: string | null; + membershipSettingsTableId?: string | null; + membershipSettingsTableName?: string | null; + grantsTableId?: string | null; + grantsTableName?: string | null; + actorTableId?: string | null; + limitsTableId?: string | null; + defaultLimitsTableId?: string | null; + permissionsTableId?: string | null; + defaultPermissionsTableId?: string | null; + sprtTableId?: string | null; + adminGrantsTableId?: string | null; + adminGrantsTableName?: string | null; + ownerGrantsTableId?: string | null; + ownerGrantsTableName?: string | null; + scope?: string | null; + prefix?: string | null; + entityTableId?: string | null; + entityTableOwnerId?: string | null; + getOrgFn?: string | null; + actorMaskCheck?: string | null; + actorPermCheck?: string | null; + entityIdsByMask?: string | null; + entityIdsByPerm?: string | null; + entityIdsFunction?: string | null; + memberProfilesTableId?: string | null; + permissionDefaultPermissionsTableId?: string | null; + permissionDefaultGrantsTableId?: string | null; + apiName?: string | null; + privateApiName?: string | null; +} +export interface UpdateMembershipsModuleInput { + clientMutationId?: string; + id: string; + membershipsModulePatch: MembershipsModulePatch; +} +export interface DeleteMembershipsModuleInput { + clientMutationId?: string; + id: string; +} export interface CreateEventsModuleInput { clientMutationId?: string; eventsModule: { databaseId: string; + entityField?: string; schemaId?: string; privateSchemaId?: string; publicSchemaName?: string; @@ -11049,7 +12153,6 @@ export interface CreateEventsModuleInput { tgEventBool?: string; upsertAggregate?: string; tgUpdateAggregates?: string; - pruneEvents?: string; stepsRequired?: string; levelAchieved?: string; tgCheckAchievements?: string; @@ -11069,6 +12172,7 @@ export interface CreateEventsModuleInput { } export interface EventsModulePatch { databaseId?: string | null; + entityField?: string | null; schemaId?: string | null; privateSchemaId?: string | null; publicSchemaName?: string | null; @@ -11095,7 +12199,6 @@ export interface EventsModulePatch { tgEventBool?: string | null; upsertAggregate?: string | null; tgUpdateAggregates?: string | null; - pruneEvents?: string | null; stepsRequired?: string | null; levelAchieved?: string | null; tgCheckAchievements?: string | null; @@ -11132,6 +12235,7 @@ export const connectionFieldsMap = { }, MerkleStoreModule: { graphModules: 'GraphModule', + dbPresetModules: 'DbPresetModule', }, } as Record>; // ============ Custom Input Types (from schema) ============ @@ -11330,6 +12434,15 @@ export interface MerkleStoreModuleToManyGraphModuleFilter { /** Filters to entities where no related entity matches. */ none?: GraphModuleFilter; } +/** 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 at least one related entity matches. */ + some?: DbPresetModuleFilter; + /** Filters to entities where every related entity matches. */ + every?: DbPresetModuleFilter; + /** Filters to entities where no related entity matches. */ + none?: DbPresetModuleFilter; +} /** An input for mutations affecting `DefaultIdsModule` */ export interface DefaultIdsModuleInput { id?: string; @@ -11341,35 +12454,17 @@ export interface MembershipTypesModuleInput { databaseId: string; schemaId?: string; tableId?: string; - tableName?: string; -} -/** An input for mutations affecting `UserStateModule` */ -export interface UserStateModuleInput { - id?: string; - databaseId: string; - schemaId?: string; - tableId?: string; - tableName?: string; -} -/** An input for mutations affecting `SessionSecretsModule` */ -export interface SessionSecretsModuleInput { - id?: string; - databaseId: string; - schemaId?: string; - tableId?: string; - tableName?: string; - /** Resolved reference to sessions_module.sessions_table, used to FK session_secrets.session_id with ON DELETE CASCADE. */ - sessionsTableId?: string; + tableName?: string; } -/** An input for mutations affecting `ConfigSecretsOrgModule` */ -export interface ConfigSecretsOrgModuleInput { +/** An input for mutations affecting `SessionSecretsModule` */ +export interface SessionSecretsModuleInput { id?: string; databaseId: string; schemaId?: string; tableId?: string; tableName?: string; - apiName?: string; - privateApiName?: string; + /** Resolved reference to sessions_module.sessions_table, used to FK session_secrets.session_id with ON DELETE CASCADE. */ + sessionsTableId?: string; } /** An input for mutations affecting `DevicesModule` */ export interface DevicesModuleInput { @@ -11391,35 +12486,33 @@ export interface I18NModuleInput { apiName?: string; privateApiName?: string; } -/** An input for mutations affecting `UserCredentialsModule` */ -export interface UserCredentialsModuleInput { +/** An input for mutations affecting `UserSettingsModule` */ +export interface UserSettingsModuleInput { id?: string; databaseId: string; schemaId?: string; tableId?: string; + ownerTableId?: string; tableName?: string; apiName?: string; - privateApiName?: string; } -/** An input for mutations affecting `UserSettingsModule` */ -export interface UserSettingsModuleInput { +/** An input for mutations affecting `UserStateModule` */ +export interface UserStateModuleInput { id?: string; databaseId: string; + entityField?: string; schemaId?: string; tableId?: string; - ownerTableId?: string; tableName?: string; - apiName?: string; } -/** An input for mutations affecting `ConfigSecretsUserModule` */ -export interface ConfigSecretsUserModuleInput { +/** An input for mutations affecting `UserCredentialsModule` */ +export interface UserCredentialsModuleInput { id?: string; databaseId: string; + entityField?: string; schemaId?: string; tableId?: string; tableName?: string; - configDefinitionsTableId?: string; - apiName?: string; privateApiName?: string; } /** An input for mutations affecting `ConnectedAccountsModule` */ @@ -11495,6 +12588,17 @@ export interface WebauthnCredentialsModuleInput { apiName?: string; privateApiName?: string; } +/** An input for mutations affecting `ConfigSecretsUserModule` */ +export interface ConfigSecretsUserModuleInput { + id?: string; + databaseId: string; + entityField?: string; + schemaId?: string; + tableId?: string; + tableName?: string; + apiName?: string; + privateApiName?: string; +} /** An input for mutations affecting `CryptoAddressesModule` */ export interface CryptoAddressesModuleInput { id?: string; @@ -11523,23 +12627,6 @@ export interface DenormalizedTableFieldInput { funcName?: string; funcOrder?: number; } -/** An input for mutations affecting `IdentityProvidersModule` */ -export interface IdentityProvidersModuleInput { - id?: string; - databaseId: string; - schemaId?: string; - /** Private schema that hosts SECURITY DEFINER admin helpers which write to identity_providers (create / update / enable / disable / rotate-secret / delete) and the per-app quota check. */ - privateSchemaId?: string; - publicSchemaName?: string; - privateSchemaName?: string; - tableId?: string; - tableName?: string; - apiName?: string; - privateApiName?: string; - scope?: string; - prefix?: string; - entityTableId?: string; -} /** An input for mutations affecting `RlsModule` */ export interface RlsModuleInput { id?: string; @@ -11726,90 +12813,155 @@ export interface SecureTableProvisionInput { /** 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[]; } -/** An input for mutations affecting `DatabaseProvisionModule` */ -export interface DatabaseProvisionModuleInput { +/** An input for mutations affecting `IdentityProvidersModule` */ +export interface IdentityProvidersModuleInput { id?: string; - /** The name for the new database */ - databaseName: string; - /** UUID of the user who owns this database */ - ownerId: string; - /** Subdomain prefix for the database. If null, auto-generated using unique_names + random chars */ - subdomain?: string; - /** Base domain for the database (e.g., example.com) */ + databaseId: string; + entityField?: string; + schemaId?: string; + /** Private schema that hosts SECURITY DEFINER admin helpers which write to identity_providers (create / update / enable / disable / rotate-secret / delete) and the per-app quota check. */ + privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + tableId?: string; + tableName?: string; + apiName?: string; + privateApiName?: string; + scope?: string; + prefix?: string; + entityTableId?: string; +} +/** An input for mutations affecting `IntegrationProvidersModule` */ +export interface IntegrationProvidersModuleInput { + id?: string; + databaseId: string; + entityField?: string; + schemaId?: string; + privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + tableId?: string; + tableName?: string; + apiName?: string; + privateApiName?: string; + scope?: string; + prefix?: string; + entityTableId?: string; +} +/** An input for mutations affecting `DbPoolConfig` */ +export interface DbPoolConfigInput { + id?: string; + /** Slug of the db_presets catalog row this pool serves */ + presetSlug: string; + /** Base domain used when provisioning warm databases */ domain: string; - /** JSONB array of modules to install. Each element is either a string ("users_module") or a [name, options] tuple (["permissions_module", {"scope": "app"}]) */ - modules?: Record; - /** Additional configuration options for provisioning */ - options?: Record; - /** When true, copies the owner user and password hash from source database to the newly provisioned database */ - bootstrapUser?: boolean; - /** Current status: pending, in_progress, completed, or failed */ - status?: string; - errorMessage?: string; - /** The ID of the provisioned database (set by trigger before RLS check) */ - databaseId?: string; + /** Platform pool service org that owns warm databases until they are claimed */ + poolOwnerId: string; + /** Minimum number of ready warm databases the reconciler maintains */ + min?: number; + /** Maximum number of warming + ready databases the reconciler will keep */ + max?: number; + /** How long a ready warm database stays claimable before it expires */ + warmTtl?: IntervalInput; + /** When false the reconciler stops warming and the claim path falls through to cold provisioning */ + enabled?: boolean; createdAt?: string; updatedAt?: string; - completedAt?: string; } -/** An input for mutations affecting `ConfigSecretsModule` */ -export interface ConfigSecretsModuleInput { +/** An input for mutations affecting `RealtimeModule` */ +export interface RealtimeModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + subscriptionsSchemaId?: string; + changeLogTableId?: string; + listenerNodeTableId?: string; + sourceRegistryTableId?: string; + retentionHours?: number; + premake?: number; + interval?: string; + notifyChannel?: string; + apiName?: string; + privateApiName?: string; +} +/** An input for mutations affecting `InfraSecretsModule` */ +export interface InfraSecretsModuleInput { id?: string; databaseId: string; schemaId?: string; privateSchemaId?: string; publicSchemaName?: string; privateSchemaName?: string; - tableId?: string; - configDefinitionsTableId?: string; - tableName?: string; + secretsTableId?: string; + secretsTableName?: string; apiName?: string; privateApiName?: string; scope?: string; prefix?: string; entityTableId?: string; + entityField?: string; policies?: Record; provisions?: Record; - hasConfig?: boolean; } -/** An input for mutations affecting `GraphModule` */ -export interface GraphModuleInput { +/** An input for mutations affecting `InternalSecretsModule` */ +export interface InternalSecretsModuleInput { id?: string; databaseId: string; - publicSchemaId?: string; + schemaId?: string; privateSchemaId?: string; publicSchemaName?: string; privateSchemaName?: string; + internalSecretsTableId?: string; + internalSecretsTableName?: string; + apiName?: string; + privateApiName?: string; scope?: string; prefix?: string; + entityTableId?: string; + entityField?: string; + policies?: Record; + provisions?: Record; +} +/** An input for mutations affecting `DbPresetModule` */ +export interface DbPresetModuleInput { + id?: string; + databaseId: string; + publicSchemaId?: string; + privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + scope: string; + prefix: string; merkleStoreModuleId: string; - graphsTableId?: string; + dbPresetsTableId?: string; + storeName: string; apiName?: string; privateApiName?: string; entityTableId?: string; policies?: Record; provisions?: Record; - defaultPermissions?: string[]; createdAt?: string; } -/** An input for mutations affecting `MerkleStoreModule` */ -export interface MerkleStoreModuleInput { +/** An input for mutations affecting `GraphModule` */ +export interface GraphModuleInput { id?: string; databaseId: string; - schemaId?: string; + entityField?: string; + publicSchemaId?: string; privateSchemaId?: string; publicSchemaName?: string; privateSchemaName?: string; - objectTableId?: string; - storeTableId?: string; - commitTableId?: string; - refTableId?: string; + scope?: string; prefix?: string; + merkleStoreModuleId: string; + graphsTableId?: string; apiName?: string; privateApiName?: string; - scope?: string; - functionPrefix?: string; - permissionKey?: string; + entityTableId?: string; + policies?: Record; + provisions?: Record; + defaultPermissions?: string[]; createdAt?: string; } /** An input for mutations affecting `RateLimitMetersModule` */ @@ -11832,22 +12984,24 @@ export interface RateLimitMetersModuleInput { apiName?: string; privateApiName?: string; } -/** An input for mutations affecting `RealtimeModule` */ -export interface RealtimeModuleInput { +/** An input for mutations affecting `InfraConfigModule` */ +export interface InfraConfigModuleInput { id?: string; databaseId: string; + entityField?: string; schemaId?: string; privateSchemaId?: string; - subscriptionsSchemaId?: string; - changeLogTableId?: string; - listenerNodeTableId?: string; - sourceRegistryTableId?: string; - retentionHours?: number; - premake?: number; - interval?: string; - notifyChannel?: string; + publicSchemaName?: string; + privateSchemaName?: string; + configTableId?: string; + configTableName?: string; apiName?: string; privateApiName?: string; + scope?: string; + prefix?: string; + entityTableId?: string; + policies?: Record; + provisions?: Record; } /** An input for mutations affecting `WebauthnAuthModule` */ export interface WebauthnAuthModuleInput { @@ -11868,10 +13022,129 @@ export interface WebauthnAuthModuleInput { residentKey?: string; challengeExpiry?: IntervalInput; } +/** An input for mutations affecting `PrincipalAuthModule` */ +export interface PrincipalAuthModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + principalsTableId?: string; + principalEntitiesTableId?: string; + principalScopeOverridesTableId?: string; + usersTableId?: string; + sessionsTableId?: string; + sessionCredentialsTableId?: string; + auditsTableId?: string; + principalsTableName?: string; + createPrincipalFunction?: string; + deletePrincipalFunction?: string; + createOrgPrincipalFunction?: string; + deleteOrgPrincipalFunction?: string; + createOrgApiKeyFunction?: string; + revokeOrgApiKeyFunction?: string; + apiName?: string; +} +/** An input for mutations affecting `DbPool` */ +export interface DbPoolInput { + id?: string; + /** Slug of the db_presets catalog row this entry was baked from */ + presetSlug: string; + /** The db_presets merkle commit_id the warm database was baked from; a mismatch with the current head marks the entry stale */ + presetCommitId?: string; + databaseId?: string; + /** Lifecycle: warming, ready, claimed, stale, expired, or failed */ + status?: string; + errorMessage?: string; + /** When a ready entry expires (set from db_pool_config.warm_ttl at warm time) */ + expiresAt?: string; + /** User the database was transferred to at claim time */ + claimedBy?: string; + claimedAt?: string; + /** Status of the deferred owner bootstrap job after claim: not_requested, pending, completed, or failed */ + bootstrapStatus?: string; + bootstrapError?: string; + createdAt?: string; + updatedAt?: string; +} +/** An input for mutations affecting `FunctionModule` */ +export interface FunctionModuleInput { + id?: string; + databaseId: string; + entityField?: string; + schemaId?: string; + privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + definitionsTableId?: string; + definitionsTableName?: string; + apiName?: string; + privateApiName?: string; + scope?: string; + prefix?: string; + entityTableId?: string; + policies?: Record; + provisions?: Record; + defaultPermissions?: string[]; +} +/** An input for mutations affecting `MerkleStoreModule` */ +export interface MerkleStoreModuleInput { + id?: string; + databaseId: string; + entityField?: string; + schemaId?: string; + privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + objectTableId?: string; + storeTableId?: string; + commitTableId?: string; + refTableId?: string; + prefix?: string; + apiName?: string; + privateApiName?: string; + scope?: string; + functionPrefix?: string; + permissionKey?: string; + createdAt?: string; +} +/** An input for mutations affecting `DatabaseProvisionModule` */ +export interface DatabaseProvisionModuleInput { + id?: string; + /** The name for the new database */ + databaseName: string; + /** UUID of the user who owns this database */ + ownerId: string; + /** Subdomain prefix for the database. If null, auto-generated using unique_names + random chars */ + subdomain?: string; + /** Base domain for the database (e.g., example.com) */ + domain: string; + /** JSONB array of modules to install. Each element is either a string ("users_module") or a [name, options] tuple (["permissions_module", {"scope": "app"}]) */ + modules?: Record; + /** Additional configuration options for provisioning */ + options?: Record; + /** When true, copies the owner user and password hash from source database to the newly provisioned database */ + bootstrapUser?: boolean; + /** Current status: pending, in_progress, completed, or failed */ + status?: string; + errorMessage?: string; + /** The database the owner user is copied from during bootstrap (captured from JWT context at provision time) */ + sourceDatabaseId?: string; + /** Status of the deferred owner bootstrap job: not_requested, pending, completed, or failed */ + bootstrapStatus?: string; + /** Error message from the most recent failed bootstrap attempt */ + bootstrapError?: string; + /** The ID of the provisioned database (set by trigger before RLS check) */ + databaseId?: string; + createdAt?: string; + updatedAt?: string; + completedAt?: string; + /** 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; +} /** An input for mutations affecting `FunctionInvocationModule` */ export interface FunctionInvocationModuleInput { id?: string; databaseId: string; + entityField?: string; schemaId?: string; privateSchemaId?: string; publicSchemaName?: string; @@ -11889,31 +13162,11 @@ export interface FunctionInvocationModuleInput { provisions?: Record; defaultPermissions?: string[]; } -/** An input for mutations affecting `FunctionModule` */ -export interface FunctionModuleInput { - id?: string; - databaseId: string; - schemaId?: string; - privateSchemaId?: string; - publicSchemaName?: string; - privateSchemaName?: string; - definitionsTableId?: string; - secretDefinitionsTableId?: string; - definitionsTableName?: string; - secretDefinitionsTableName?: string; - apiName?: string; - privateApiName?: string; - scope?: string; - prefix?: string; - entityTableId?: string; - policies?: Record; - provisions?: Record; - defaultPermissions?: string[]; -} /** An input for mutations affecting `InvitesModule` */ export interface InvitesModuleInput { id?: string; databaseId: string; + entityField?: string; schemaId?: string; privateSchemaId?: string; publicSchemaName?: string; @@ -11931,31 +13184,57 @@ export interface InvitesModuleInput { apiName?: string; privateApiName?: string; } -/** An input for mutations affecting `PrincipalAuthModule` */ -export interface PrincipalAuthModuleInput { +/** An input for mutations affecting `NamespaceModule` */ +export interface NamespaceModuleInput { id?: string; databaseId: string; + entityField?: string; schemaId?: string; - principalsTableId?: string; - principalEntitiesTableId?: string; - principalScopeOverridesTableId?: string; - usersTableId?: string; - sessionsTableId?: string; - sessionCredentialsTableId?: string; - auditsTableId?: string; - principalsTableName?: string; - createPrincipalFunction?: string; - deletePrincipalFunction?: string; - createOrgPrincipalFunction?: string; - deleteOrgPrincipalFunction?: string; - createOrgApiKeyFunction?: string; - revokeOrgApiKeyFunction?: string; + privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + namespacesTableId?: string; + namespaceEventsTableId?: string; + namespacesTableName?: string; + namespaceEventsTableName?: string; + apiName?: string; + privateApiName?: string; + scope?: string; + prefix?: string; + entityTableId?: string; + policies?: Record; + provisions?: Record; + defaultPermissions?: string[]; +} +/** An input for mutations affecting `PlansModule` */ +export interface PlansModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + plansTableId?: string; + plansTableName?: string; + planLimitsTableId?: string; + planLimitsTableName?: string; + planPricingTableId?: string; + planOverridesTableId?: string; + planMeterLimitsTableId?: string; + planCapsTableId?: string; + applyPlanFunction?: string; + applyPlanAggregateFunction?: string; + applyBillingPlanFunction?: string; + applyPlanCapsFunction?: string; + prefix?: string; apiName?: string; + privateApiName?: string; } /** An input for mutations affecting `ComputeLogModule` */ export interface ComputeLogModuleInput { id?: string; databaseId: string; + entityField?: string; schemaId?: string; privateSchemaId?: string; publicSchemaName?: string; @@ -11978,6 +13257,7 @@ export interface ComputeLogModuleInput { export interface InferenceLogModuleInput { id?: string; databaseId: string; + entityField?: string; schemaId?: string; privateSchemaId?: string; publicSchemaName?: string; @@ -11996,54 +13276,11 @@ export interface InferenceLogModuleInput { apiName?: string; privateApiName?: string; } -/** An input for mutations affecting `NamespaceModule` */ -export interface NamespaceModuleInput { - id?: string; - databaseId: string; - schemaId?: string; - privateSchemaId?: string; - publicSchemaName?: string; - privateSchemaName?: string; - namespacesTableId?: string; - namespaceEventsTableId?: string; - namespacesTableName?: string; - namespaceEventsTableName?: string; - apiName?: string; - privateApiName?: string; - scope?: string; - prefix?: string; - entityTableId?: string; - platformNamespacesTableId?: string; - policies?: Record; - provisions?: Record; - defaultPermissions?: string[]; -} -/** An input for mutations affecting `ResourceModule` */ -export interface ResourceModuleInput { - id?: string; - databaseId: string; - schemaId?: string; - privateSchemaId?: string; - publicSchemaName?: string; - privateSchemaName?: string; - resourcesTableId?: string; - resourceEventsTableId?: string; - resourcesTableName?: string; - resourceEventsTableName?: string; - apiName?: string; - privateApiName?: string; - scope?: string; - prefix?: string; - entityTableId?: string; - namespaceModuleId?: string; - policies?: Record; - provisions?: Record; - defaultPermissions?: string[]; -} /** An input for mutations affecting `StorageLogModule` */ export interface StorageLogModuleInput { id?: string; databaseId: string; + entityField?: string; schemaId?: string; privateSchemaId?: string; publicSchemaName?: string; @@ -12066,6 +13303,7 @@ export interface StorageLogModuleInput { export interface TransferLogModuleInput { id?: string; databaseId: string; + entityField?: string; schemaId?: string; privateSchemaId?: string; publicSchemaName?: string; @@ -12084,53 +13322,6 @@ export interface TransferLogModuleInput { apiName?: string; privateApiName?: string; } -/** An input for mutations affecting `FunctionDeploymentModule` */ -export interface FunctionDeploymentModuleInput { - id?: string; - databaseId: string; - schemaId?: string; - privateSchemaId?: string; - publicSchemaName?: string; - privateSchemaName?: string; - deploymentsTableId?: string; - deploymentEventsTableId?: string; - deploymentsTableName?: string; - deploymentEventsTableName?: string; - apiName?: string; - privateApiName?: string; - scope?: string; - prefix?: string; - entityTableId?: string; - functionModuleId?: string; - namespaceModuleId?: string; - policies?: Record; - provisions?: Record; - defaultPermissions?: string[]; -} -/** An input for mutations affecting `PlansModule` */ -export interface PlansModuleInput { - id?: string; - databaseId: string; - schemaId?: string; - privateSchemaId?: string; - publicSchemaName?: string; - privateSchemaName?: string; - plansTableId?: string; - plansTableName?: string; - planLimitsTableId?: string; - planLimitsTableName?: string; - planPricingTableId?: string; - planOverridesTableId?: string; - planMeterLimitsTableId?: string; - planCapsTableId?: string; - applyPlanFunction?: string; - applyPlanAggregateFunction?: string; - applyBillingPlanFunction?: string; - applyPlanCapsFunction?: string; - prefix?: string; - apiName?: string; - privateApiName?: string; -} /** An input for mutations affecting `BillingProviderModule` */ export interface BillingProviderModuleInput { id?: string; @@ -12156,28 +13347,52 @@ export interface BillingProviderModuleInput { apiName?: string; privateApiName?: string; } -/** An input for mutations affecting `DbUsageModule` */ -export interface DbUsageModuleInput { +/** An input for mutations affecting `FunctionDeploymentModule` */ +export interface FunctionDeploymentModuleInput { id?: string; databaseId: string; + entityField?: string; schemaId?: string; privateSchemaId?: string; publicSchemaName?: string; privateSchemaName?: string; - tableStatsLogTableId?: string; - tableStatsLogTableName?: string; - tableStatsDailyTableId?: string; - tableStatsDailyTableName?: string; - queryStatsLogTableId?: string; - queryStatsLogTableName?: string; - queryStatsDailyTableId?: string; - queryStatsDailyTableName?: string; - interval?: string; - retention?: string; - premake?: number; + deploymentsTableId?: string; + deploymentEventsTableId?: string; + deploymentsTableName?: string; + deploymentEventsTableName?: string; + apiName?: string; + privateApiName?: string; scope?: string; prefix?: string; + entityTableId?: string; + functionModuleId?: string; + namespaceModuleId?: string; + policies?: Record; + provisions?: Record; defaultPermissions?: string[]; +} +/** An input for mutations affecting `PermissionsModule` */ +export interface PermissionsModuleInput { + id?: string; + databaseId: string; + entityField?: string; + schemaId?: string; + privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + tableId?: string; + tableName?: string; + defaultTableId?: string; + defaultTableName?: string; + bitlen?: number; + scope?: string; + prefix?: string; + entityTableId?: string; + actorTableId?: string; + getPaddedMask?: string; + getMask?: string; + getByMask?: string; + getMaskByName?: string; apiName?: string; privateApiName?: string; } @@ -12185,6 +13400,7 @@ export interface DbUsageModuleInput { export interface GraphExecutionModuleInput { id?: string; databaseId: string; + entityField?: string; schemaId?: string; privateSchemaId?: string; publicSchemaName?: string; @@ -12210,6 +13426,7 @@ export interface GraphExecutionModuleInput { export interface HierarchyModuleInput { id?: string; databaseId: string; + entityField?: string; schemaId?: string; privateSchemaId?: string; chartEdgesTableId?: string; @@ -12227,38 +13444,15 @@ export interface HierarchyModuleInput { rebuildHierarchyFunction?: string; getSubordinatesFunction?: string; getManagersFunction?: string; - isManagerOfFunction?: string; - defaultPermissions?: string[]; - createdAt?: string; -} -/** An input for mutations affecting `PermissionsModule` */ -export interface PermissionsModuleInput { - id?: string; - databaseId: string; - schemaId?: string; - privateSchemaId?: string; - publicSchemaName?: string; - privateSchemaName?: string; - tableId?: string; - tableName?: string; - defaultTableId?: string; - defaultTableName?: string; - bitlen?: number; - scope?: string; - prefix?: string; - entityTableId?: string; - actorTableId?: string; - getPaddedMask?: string; - getMask?: string; - getByMask?: string; - getMaskByName?: string; - apiName?: string; - privateApiName?: string; + isManagerOfFunction?: string; + defaultPermissions?: string[]; + createdAt?: string; } /** An input for mutations affecting `NotificationsModule` */ export interface NotificationsModuleInput { id?: string; databaseId: string; + entityField?: string; schemaId?: string; privateSchemaId?: string; publicSchemaName?: string; @@ -12281,61 +13475,6 @@ export interface NotificationsModuleInput { apiName?: string; privateApiName?: string; } -/** An input for mutations affecting `ProfilesModule` */ -export interface ProfilesModuleInput { - id?: string; - databaseId: string; - schemaId?: string; - privateSchemaId?: string; - publicSchemaName?: string; - privateSchemaName?: string; - tableId?: string; - tableName?: string; - profilePermissionsTableId?: string; - profilePermissionsTableName?: string; - profileGrantsTableId?: string; - profileGrantsTableName?: string; - profileDefinitionGrantsTableId?: string; - profileDefinitionGrantsTableName?: string; - profileTemplatesTableId?: string; - profileTemplatesTableName?: string; - scope?: string; - prefix?: string; - entityTableId?: string; - actorTableId?: string; - permissionsTableId?: string; - membershipsTableId?: string; - apiName?: string; - privateApiName?: string; -} -/** An input for mutations affecting `BillingModule` */ -export interface BillingModuleInput { - id?: string; - databaseId: string; - schemaId?: string; - privateSchemaId?: string; - publicSchemaName?: string; - privateSchemaName?: string; - metersTableId?: string; - metersTableName?: string; - planSubscriptionsTableId?: string; - planSubscriptionsTableName?: string; - ledgerTableId?: string; - ledgerTableName?: string; - balancesTableId?: string; - balancesTableName?: string; - meterCreditsTableId?: string; - meterCreditsTableName?: string; - meterSourcesTableId?: string; - meterSourcesTableName?: string; - meterDefaultsTableId?: string; - meterDefaultsTableName?: string; - recordUsageFunction?: string; - prefix?: string; - defaultPermissions?: string[]; - apiName?: string; - privateApiName?: string; -} /** An input for mutations affecting `RelationProvision` */ export interface RelationProvisionInput { /** Unique identifier for this relation provision row. */ @@ -12460,6 +13599,93 @@ export interface RelationProvisionInput { /** Output column for RelationManyToMany: the UUID of the FK field on the junction table referencing the target table. Populated by the trigger. NULL for RelationBelongsTo/RelationHasOne. Callers should not set this directly. */ outTargetFieldId?: string; } +/** An input for mutations affecting `ProfilesModule` */ +export interface ProfilesModuleInput { + id?: string; + databaseId: string; + entityField?: string; + schemaId?: string; + privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + tableId?: string; + tableName?: string; + profilePermissionsTableId?: string; + profilePermissionsTableName?: string; + profileGrantsTableId?: string; + profileGrantsTableName?: string; + profileDefinitionGrantsTableId?: string; + profileDefinitionGrantsTableName?: string; + profileTemplatesTableId?: string; + profileTemplatesTableName?: string; + scope?: string; + prefix?: string; + entityTableId?: string; + actorTableId?: string; + permissionsTableId?: string; + membershipsTableId?: string; + apiName?: string; + privateApiName?: string; +} +/** An input for mutations affecting `BillingModule` */ +export interface BillingModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + metersTableId?: string; + metersTableName?: string; + planSubscriptionsTableId?: string; + planSubscriptionsTableName?: string; + ledgerTableId?: string; + ledgerTableName?: string; + balancesTableId?: string; + balancesTableName?: string; + meterCreditsTableId?: string; + meterCreditsTableName?: string; + meterSourcesTableId?: string; + meterSourcesTableName?: string; + meterDefaultsTableId?: string; + meterDefaultsTableName?: string; + recordUsageFunction?: string; + sweepExpiredSubscriptionsFunction?: string; + rollupUsageSummaryFunction?: string; + prefix?: string; + defaultPermissions?: string[]; + apiName?: string; + privateApiName?: string; +} +/** An input for mutations affecting `ResourceModule` */ +export interface ResourceModuleInput { + id?: string; + databaseId: string; + entityField?: string; + schemaId?: string; + privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + resourcesTableId?: string; + resourceEventsTableId?: string; + resourceStatusChecksTableId?: string; + resourceDefinitionsTableId?: string; + resourcesTableName?: string; + resourceEventsTableName?: string; + resourceStatusChecksTableName?: string; + resourceDefinitionsTableName?: string; + resolvedRequirementsViewName?: string; + requirementsStateViewName?: string; + apiName?: string; + privateApiName?: string; + scope?: string; + prefix?: string; + entityTableId?: string; + namespaceModuleId?: string; + policies?: Record; + provisions?: Record; + defaultPermissions?: string[]; +} /** An input for mutations affecting `UserAuthModule` */ export interface UserAuthModuleInput { id?: string; @@ -12491,10 +13717,41 @@ export interface UserAuthModuleInput { apiName?: string; privateApiName?: string; } +/** An input for mutations affecting `DbUsageModule` */ +export interface DbUsageModuleInput { + id?: string; + databaseId: string; + entityField?: string; + schemaId?: string; + privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + tableStatsLogTableId?: string; + tableStatsLogTableName?: string; + tableStatsDailyTableId?: string; + tableStatsDailyTableName?: string; + queryStatsLogTableId?: string; + queryStatsLogTableName?: string; + queryStatsDailyTableId?: string; + queryStatsDailyTableName?: string; + collectDbTableStatsFunction?: string; + collectDbQueryStatsFunction?: string; + rollupDbTableStatsDailyFunction?: string; + rollupDbQueryStatsDailyFunction?: string; + interval?: string; + retention?: string; + premake?: number; + scope?: string; + prefix?: string; + defaultPermissions?: string[]; + apiName?: string; + privateApiName?: string; +} /** An input for mutations affecting `AgentModule` */ export interface AgentModuleInput { id?: string; databaseId: string; + entityField?: string; schemaId?: string; privateSchemaId?: string; publicSchemaName?: string; @@ -12533,6 +13790,7 @@ export interface AgentModuleInput { export interface LimitsModuleInput { id?: string; databaseId: string; + entityField?: string; schemaId?: string; privateSchemaId?: string; publicSchemaName?: string; @@ -12568,50 +13826,6 @@ export interface LimitsModuleInput { apiName?: string; privateApiName?: string; } -/** An input for mutations affecting `MembershipsModule` */ -export interface MembershipsModuleInput { - id?: string; - databaseId: string; - schemaId?: string; - privateSchemaId?: string; - publicSchemaName?: string; - privateSchemaName?: string; - membershipsTableId?: string; - membershipsTableName?: string; - membersTableId?: string; - membersTableName?: string; - membershipDefaultsTableId?: string; - membershipDefaultsTableName?: string; - membershipSettingsTableId?: string; - membershipSettingsTableName?: string; - grantsTableId?: string; - grantsTableName?: string; - actorTableId?: string; - limitsTableId?: string; - defaultLimitsTableId?: string; - permissionsTableId?: string; - defaultPermissionsTableId?: string; - sprtTableId?: string; - adminGrantsTableId?: string; - adminGrantsTableName?: string; - ownerGrantsTableId?: string; - ownerGrantsTableName?: string; - scope?: string; - prefix?: string; - entityTableId?: string; - entityTableOwnerId?: string; - getOrgFn?: string; - actorMaskCheck?: string; - actorPermCheck?: string; - entityIdsByMask?: string; - entityIdsByPerm?: string; - entityIdsFunction?: string; - memberProfilesTableId?: string; - permissionDefaultPermissionsTableId?: string; - permissionDefaultGrantsTableId?: string; - apiName?: string; - privateApiName?: string; -} /** An input for mutations affecting `EntityTypeProvision` */ export interface EntityTypeProvisionInput { /** Unique identifier for this provision row. */ @@ -12860,7 +14074,6 @@ export interface EntityTypeProvisionInput { outDefinitionsTableId?: string; outInvocationsTableId?: string; outExecutionLogsTableId?: string; - outSecretDefinitionsTableId?: string; outGraphModuleId?: string; outGraphsTableId?: string; outAgentModuleId?: string; @@ -12879,31 +14092,77 @@ export interface StorageModuleInput { filesTableName?: string; scope?: string; prefix?: string; - policies?: Record; - provisions?: Record; + policies?: Record; + provisions?: Record; + entityTableId?: string; + entityField?: string; + endpoint?: string; + publicUrlPrefix?: string; + provider?: string; + allowedOrigins?: string[]; + restrictReads?: boolean; + hasPathShares?: boolean; + pathSharesTableId?: string; + uploadUrlExpirySeconds?: number; + downloadUrlExpirySeconds?: number; + defaultMaxFileSize?: string; + maxFilenameLength?: number; + cacheTtlSeconds?: number; + maxBulkFiles?: number; + maxBulkTotalSize?: string; + hasVersioning?: boolean; + hasContentHash?: boolean; + hasCustomKeys?: boolean; + hasAuditLog?: boolean; + hasConfirmUpload?: boolean; + confirmUploadDelay?: IntervalInput; + fileEventsTableId?: string; + defaultPermissions?: string[]; + apiName?: string; + privateApiName?: string; +} +/** An input for mutations affecting `MembershipsModule` */ +export interface MembershipsModuleInput { + id?: string; + databaseId: string; + entityField?: string; + schemaId?: string; + privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + membershipsTableId?: string; + membershipsTableName?: string; + membersTableId?: string; + membersTableName?: string; + membershipDefaultsTableId?: string; + membershipDefaultsTableName?: string; + membershipSettingsTableId?: string; + membershipSettingsTableName?: string; + grantsTableId?: string; + grantsTableName?: string; + actorTableId?: string; + limitsTableId?: string; + defaultLimitsTableId?: string; + permissionsTableId?: string; + defaultPermissionsTableId?: string; + sprtTableId?: string; + adminGrantsTableId?: string; + adminGrantsTableName?: string; + ownerGrantsTableId?: string; + ownerGrantsTableName?: string; + scope?: string; + prefix?: string; entityTableId?: string; - endpoint?: string; - publicUrlPrefix?: string; - provider?: string; - allowedOrigins?: string[]; - restrictReads?: boolean; - hasPathShares?: boolean; - pathSharesTableId?: string; - uploadUrlExpirySeconds?: number; - downloadUrlExpirySeconds?: number; - defaultMaxFileSize?: string; - maxFilenameLength?: number; - cacheTtlSeconds?: number; - maxBulkFiles?: number; - maxBulkTotalSize?: string; - hasVersioning?: boolean; - hasContentHash?: boolean; - hasCustomKeys?: boolean; - hasAuditLog?: boolean; - hasConfirmUpload?: boolean; - confirmUploadDelay?: IntervalInput; - fileEventsTableId?: string; - defaultPermissions?: string[]; + entityTableOwnerId?: string; + getOrgFn?: string; + actorMaskCheck?: string; + actorPermCheck?: string; + entityIdsByMask?: string; + entityIdsByPerm?: string; + entityIdsFunction?: string; + memberProfilesTableId?: string; + permissionDefaultPermissionsTableId?: string; + permissionDefaultGrantsTableId?: string; apiName?: string; privateApiName?: string; } @@ -12911,6 +14170,7 @@ export interface StorageModuleInput { export interface EventsModuleInput { id?: string; databaseId: string; + entityField?: string; schemaId?: string; privateSchemaId?: string; publicSchemaName?: string; @@ -12937,7 +14197,6 @@ export interface EventsModuleInput { tgEventBool?: string; upsertAggregate?: string; tgUpdateAggregates?: string; - pruneEvents?: string; stepsRequired?: string; levelAchieved?: string; tgCheckAchievements?: string; @@ -13095,6 +14354,8 @@ export interface GraphModuleFilter { id?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; + /** Filter by the object’s `entityField` field. */ + entityField?: StringFilter; /** Filter by the object’s `publicSchemaId` field. */ publicSchemaId?: UUIDFilter; /** Filter by the object’s `privateSchemaId` field. */ @@ -13134,6 +14395,51 @@ export interface GraphModuleFilter { /** Filter by the object’s `merkleStoreModule` relation. */ merkleStoreModule?: MerkleStoreModuleFilter; } +/** A filter to be used against `DbPresetModule` object types. All fields are combined with a logical ‘and.’ */ +export interface DbPresetModuleFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `publicSchemaId` field. */ + publicSchemaId?: UUIDFilter; + /** Filter by the object’s `privateSchemaId` field. */ + privateSchemaId?: UUIDFilter; + /** Filter by the object’s `publicSchemaName` field. */ + publicSchemaName?: StringFilter; + /** Filter by the object’s `privateSchemaName` field. */ + privateSchemaName?: StringFilter; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Filter by the object’s `merkleStoreModuleId` field. */ + merkleStoreModuleId?: UUIDFilter; + /** Filter by the object’s `dbPresetsTableId` field. */ + dbPresetsTableId?: UUIDFilter; + /** Filter by the object’s `storeName` field. */ + storeName?: StringFilter; + /** Filter by the object’s `apiName` field. */ + apiName?: StringFilter; + /** Filter by the object’s `privateApiName` field. */ + privateApiName?: StringFilter; + /** Filter by the object’s `entityTableId` field. */ + entityTableId?: UUIDFilter; + /** Filter by the object’s `policies` field. */ + policies?: JSONFilter; + /** Filter by the object’s `provisions` field. */ + provisions?: JSONFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Checks for all expressions in this list. */ + and?: DbPresetModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: DbPresetModuleFilter[]; + /** Negates the expression. */ + not?: DbPresetModuleFilter; + /** Filter by the object’s `merkleStoreModule` relation. */ + merkleStoreModule?: MerkleStoreModuleFilter; +} /** A filter to be used against UUID fields. All fields are combined with a logical ‘and.’ */ export interface UUIDFilter { /** Is null (if `true` is specified) or is not null (if `false` is specified). */ @@ -13366,6 +14672,8 @@ export interface MerkleStoreModuleFilter { id?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; + /** Filter by the object’s `entityField` field. */ + entityField?: StringFilter; /** Filter by the object’s `schemaId` field. */ schemaId?: UUIDFilter; /** Filter by the object’s `privateSchemaId` field. */ @@ -13406,6 +14714,10 @@ export interface MerkleStoreModuleFilter { graphModules?: MerkleStoreModuleToManyGraphModuleFilter; /** `graphModules` exist. */ graphModulesExist?: boolean; + /** Filter by the object’s `dbPresetModules` relation. */ + dbPresetModules?: MerkleStoreModuleToManyDbPresetModuleFilter; + /** `dbPresetModules` exist. */ + dbPresetModulesExist?: boolean; } // ============ Payload/Return Types (for custom operations) ============ export interface ConstructBlueprintPayload { @@ -13588,8 +14900,188 @@ export type DeleteMembershipTypesModulePayloadSelect = { membershipTypesModule?: { select: MembershipTypesModuleSelect; }; - membershipTypesModuleEdge?: { - select: MembershipTypesModuleEdgeSelect; + membershipTypesModuleEdge?: { + select: MembershipTypesModuleEdgeSelect; + }; +}; +export interface CreateSessionSecretsModulePayload { + clientMutationId?: string | null; + /** The `SessionSecretsModule` that was created by this mutation. */ + sessionSecretsModule?: SessionSecretsModule | null; + sessionSecretsModuleEdge?: SessionSecretsModuleEdge | null; +} +export type CreateSessionSecretsModulePayloadSelect = { + clientMutationId?: boolean; + sessionSecretsModule?: { + select: SessionSecretsModuleSelect; + }; + sessionSecretsModuleEdge?: { + select: SessionSecretsModuleEdgeSelect; + }; +}; +export interface UpdateSessionSecretsModulePayload { + clientMutationId?: string | null; + /** The `SessionSecretsModule` that was updated by this mutation. */ + sessionSecretsModule?: SessionSecretsModule | null; + sessionSecretsModuleEdge?: SessionSecretsModuleEdge | null; +} +export type UpdateSessionSecretsModulePayloadSelect = { + clientMutationId?: boolean; + sessionSecretsModule?: { + select: SessionSecretsModuleSelect; + }; + sessionSecretsModuleEdge?: { + select: SessionSecretsModuleEdgeSelect; + }; +}; +export interface DeleteSessionSecretsModulePayload { + clientMutationId?: string | null; + /** The `SessionSecretsModule` that was deleted by this mutation. */ + sessionSecretsModule?: SessionSecretsModule | null; + sessionSecretsModuleEdge?: SessionSecretsModuleEdge | null; +} +export type DeleteSessionSecretsModulePayloadSelect = { + clientMutationId?: boolean; + sessionSecretsModule?: { + select: SessionSecretsModuleSelect; + }; + sessionSecretsModuleEdge?: { + select: SessionSecretsModuleEdgeSelect; + }; +}; +export interface CreateDevicesModulePayload { + clientMutationId?: string | null; + /** The `DevicesModule` that was created by this mutation. */ + devicesModule?: DevicesModule | null; + devicesModuleEdge?: DevicesModuleEdge | null; +} +export type CreateDevicesModulePayloadSelect = { + clientMutationId?: boolean; + devicesModule?: { + select: DevicesModuleSelect; + }; + devicesModuleEdge?: { + select: DevicesModuleEdgeSelect; + }; +}; +export interface UpdateDevicesModulePayload { + clientMutationId?: string | null; + /** The `DevicesModule` that was updated by this mutation. */ + devicesModule?: DevicesModule | null; + devicesModuleEdge?: DevicesModuleEdge | null; +} +export type UpdateDevicesModulePayloadSelect = { + clientMutationId?: boolean; + devicesModule?: { + select: DevicesModuleSelect; + }; + devicesModuleEdge?: { + select: DevicesModuleEdgeSelect; + }; +}; +export interface DeleteDevicesModulePayload { + clientMutationId?: string | null; + /** The `DevicesModule` that was deleted by this mutation. */ + devicesModule?: DevicesModule | null; + devicesModuleEdge?: DevicesModuleEdge | null; +} +export type DeleteDevicesModulePayloadSelect = { + clientMutationId?: boolean; + devicesModule?: { + select: DevicesModuleSelect; + }; + devicesModuleEdge?: { + select: DevicesModuleEdgeSelect; + }; +}; +export interface CreateI18NModulePayload { + clientMutationId?: string | null; + /** The `I18NModule` that was created by this mutation. */ + i18NModule?: I18NModule | null; + i18NModuleEdge?: I18NModuleEdge | null; +} +export type CreateI18NModulePayloadSelect = { + clientMutationId?: boolean; + i18NModule?: { + select: I18NModuleSelect; + }; + i18NModuleEdge?: { + select: I18NModuleEdgeSelect; + }; +}; +export interface UpdateI18NModulePayload { + clientMutationId?: string | null; + /** The `I18NModule` that was updated by this mutation. */ + i18NModule?: I18NModule | null; + i18NModuleEdge?: I18NModuleEdge | null; +} +export type UpdateI18NModulePayloadSelect = { + clientMutationId?: boolean; + i18NModule?: { + select: I18NModuleSelect; + }; + i18NModuleEdge?: { + select: I18NModuleEdgeSelect; + }; +}; +export interface DeleteI18NModulePayload { + clientMutationId?: string | null; + /** The `I18NModule` that was deleted by this mutation. */ + i18NModule?: I18NModule | null; + i18NModuleEdge?: I18NModuleEdge | null; +} +export type DeleteI18NModulePayloadSelect = { + clientMutationId?: boolean; + i18NModule?: { + select: I18NModuleSelect; + }; + i18NModuleEdge?: { + select: I18NModuleEdgeSelect; + }; +}; +export interface CreateUserSettingsModulePayload { + clientMutationId?: string | null; + /** The `UserSettingsModule` that was created by this mutation. */ + userSettingsModule?: UserSettingsModule | null; + userSettingsModuleEdge?: UserSettingsModuleEdge | null; +} +export type CreateUserSettingsModulePayloadSelect = { + clientMutationId?: boolean; + userSettingsModule?: { + select: UserSettingsModuleSelect; + }; + userSettingsModuleEdge?: { + select: UserSettingsModuleEdgeSelect; + }; +}; +export interface UpdateUserSettingsModulePayload { + clientMutationId?: string | null; + /** The `UserSettingsModule` that was updated by this mutation. */ + userSettingsModule?: UserSettingsModule | null; + userSettingsModuleEdge?: UserSettingsModuleEdge | null; +} +export type UpdateUserSettingsModulePayloadSelect = { + clientMutationId?: boolean; + userSettingsModule?: { + select: UserSettingsModuleSelect; + }; + userSettingsModuleEdge?: { + select: UserSettingsModuleEdgeSelect; + }; +}; +export interface DeleteUserSettingsModulePayload { + clientMutationId?: string | null; + /** The `UserSettingsModule` that was deleted by this mutation. */ + userSettingsModule?: UserSettingsModule | null; + userSettingsModuleEdge?: UserSettingsModuleEdge | null; +} +export type DeleteUserSettingsModulePayloadSelect = { + clientMutationId?: boolean; + userSettingsModule?: { + select: UserSettingsModuleSelect; + }; + userSettingsModuleEdge?: { + select: UserSettingsModuleEdgeSelect; }; }; export interface CreateUserStateModulePayload { @@ -13637,274 +15129,319 @@ export type DeleteUserStateModulePayloadSelect = { select: UserStateModuleEdgeSelect; }; }; -export interface CreateSessionSecretsModulePayload { +export interface CreateUserCredentialsModulePayload { clientMutationId?: string | null; - /** The `SessionSecretsModule` that was created by this mutation. */ - sessionSecretsModule?: SessionSecretsModule | null; - sessionSecretsModuleEdge?: SessionSecretsModuleEdge | null; + /** The `UserCredentialsModule` that was created by this mutation. */ + userCredentialsModule?: UserCredentialsModule | null; + userCredentialsModuleEdge?: UserCredentialsModuleEdge | null; } -export type CreateSessionSecretsModulePayloadSelect = { +export type CreateUserCredentialsModulePayloadSelect = { clientMutationId?: boolean; - sessionSecretsModule?: { - select: SessionSecretsModuleSelect; + userCredentialsModule?: { + select: UserCredentialsModuleSelect; }; - sessionSecretsModuleEdge?: { - select: SessionSecretsModuleEdgeSelect; + userCredentialsModuleEdge?: { + select: UserCredentialsModuleEdgeSelect; }; }; -export interface UpdateSessionSecretsModulePayload { +export interface UpdateUserCredentialsModulePayload { clientMutationId?: string | null; - /** The `SessionSecretsModule` that was updated by this mutation. */ - sessionSecretsModule?: SessionSecretsModule | null; - sessionSecretsModuleEdge?: SessionSecretsModuleEdge | null; + /** The `UserCredentialsModule` that was updated by this mutation. */ + userCredentialsModule?: UserCredentialsModule | null; + userCredentialsModuleEdge?: UserCredentialsModuleEdge | null; } -export type UpdateSessionSecretsModulePayloadSelect = { +export type UpdateUserCredentialsModulePayloadSelect = { clientMutationId?: boolean; - sessionSecretsModule?: { - select: SessionSecretsModuleSelect; + userCredentialsModule?: { + select: UserCredentialsModuleSelect; }; - sessionSecretsModuleEdge?: { - select: SessionSecretsModuleEdgeSelect; + userCredentialsModuleEdge?: { + select: UserCredentialsModuleEdgeSelect; }; }; -export interface DeleteSessionSecretsModulePayload { +export interface DeleteUserCredentialsModulePayload { clientMutationId?: string | null; - /** The `SessionSecretsModule` that was deleted by this mutation. */ - sessionSecretsModule?: SessionSecretsModule | null; - sessionSecretsModuleEdge?: SessionSecretsModuleEdge | null; + /** The `UserCredentialsModule` that was deleted by this mutation. */ + userCredentialsModule?: UserCredentialsModule | null; + userCredentialsModuleEdge?: UserCredentialsModuleEdge | null; } -export type DeleteSessionSecretsModulePayloadSelect = { +export type DeleteUserCredentialsModulePayloadSelect = { clientMutationId?: boolean; - sessionSecretsModule?: { - select: SessionSecretsModuleSelect; + userCredentialsModule?: { + select: UserCredentialsModuleSelect; }; - sessionSecretsModuleEdge?: { - select: SessionSecretsModuleEdgeSelect; + userCredentialsModuleEdge?: { + select: UserCredentialsModuleEdgeSelect; }; }; -export interface CreateConfigSecretsOrgModulePayload { +export interface CreateConnectedAccountsModulePayload { clientMutationId?: string | null; - /** The `ConfigSecretsOrgModule` that was created by this mutation. */ - configSecretsOrgModule?: ConfigSecretsOrgModule | null; - configSecretsOrgModuleEdge?: ConfigSecretsOrgModuleEdge | null; + /** The `ConnectedAccountsModule` that was created by this mutation. */ + connectedAccountsModule?: ConnectedAccountsModule | null; + connectedAccountsModuleEdge?: ConnectedAccountsModuleEdge | null; } -export type CreateConfigSecretsOrgModulePayloadSelect = { +export type CreateConnectedAccountsModulePayloadSelect = { clientMutationId?: boolean; - configSecretsOrgModule?: { - select: ConfigSecretsOrgModuleSelect; + connectedAccountsModule?: { + select: ConnectedAccountsModuleSelect; }; - configSecretsOrgModuleEdge?: { - select: ConfigSecretsOrgModuleEdgeSelect; + connectedAccountsModuleEdge?: { + select: ConnectedAccountsModuleEdgeSelect; }; }; -export interface UpdateConfigSecretsOrgModulePayload { +export interface UpdateConnectedAccountsModulePayload { clientMutationId?: string | null; - /** The `ConfigSecretsOrgModule` that was updated by this mutation. */ - configSecretsOrgModule?: ConfigSecretsOrgModule | null; - configSecretsOrgModuleEdge?: ConfigSecretsOrgModuleEdge | null; + /** The `ConnectedAccountsModule` that was updated by this mutation. */ + connectedAccountsModule?: ConnectedAccountsModule | null; + connectedAccountsModuleEdge?: ConnectedAccountsModuleEdge | null; } -export type UpdateConfigSecretsOrgModulePayloadSelect = { +export type UpdateConnectedAccountsModulePayloadSelect = { clientMutationId?: boolean; - configSecretsOrgModule?: { - select: ConfigSecretsOrgModuleSelect; + connectedAccountsModule?: { + select: ConnectedAccountsModuleSelect; }; - configSecretsOrgModuleEdge?: { - select: ConfigSecretsOrgModuleEdgeSelect; + connectedAccountsModuleEdge?: { + select: ConnectedAccountsModuleEdgeSelect; }; }; -export interface DeleteConfigSecretsOrgModulePayload { +export interface DeleteConnectedAccountsModulePayload { clientMutationId?: string | null; - /** The `ConfigSecretsOrgModule` that was deleted by this mutation. */ - configSecretsOrgModule?: ConfigSecretsOrgModule | null; - configSecretsOrgModuleEdge?: ConfigSecretsOrgModuleEdge | null; + /** The `ConnectedAccountsModule` that was deleted by this mutation. */ + connectedAccountsModule?: ConnectedAccountsModule | null; + connectedAccountsModuleEdge?: ConnectedAccountsModuleEdge | null; } -export type DeleteConfigSecretsOrgModulePayloadSelect = { +export type DeleteConnectedAccountsModulePayloadSelect = { clientMutationId?: boolean; - configSecretsOrgModule?: { - select: ConfigSecretsOrgModuleSelect; + connectedAccountsModule?: { + select: ConnectedAccountsModuleSelect; }; - configSecretsOrgModuleEdge?: { - select: ConfigSecretsOrgModuleEdgeSelect; + connectedAccountsModuleEdge?: { + select: ConnectedAccountsModuleEdgeSelect; }; }; -export interface CreateDevicesModulePayload { +export interface CreateEmailsModulePayload { clientMutationId?: string | null; - /** The `DevicesModule` that was created by this mutation. */ - devicesModule?: DevicesModule | null; - devicesModuleEdge?: DevicesModuleEdge | null; + /** The `EmailsModule` that was created by this mutation. */ + emailsModule?: EmailsModule | null; + emailsModuleEdge?: EmailsModuleEdge | null; } -export type CreateDevicesModulePayloadSelect = { +export type CreateEmailsModulePayloadSelect = { clientMutationId?: boolean; - devicesModule?: { - select: DevicesModuleSelect; + emailsModule?: { + select: EmailsModuleSelect; }; - devicesModuleEdge?: { - select: DevicesModuleEdgeSelect; + emailsModuleEdge?: { + select: EmailsModuleEdgeSelect; }; }; -export interface UpdateDevicesModulePayload { +export interface UpdateEmailsModulePayload { clientMutationId?: string | null; - /** The `DevicesModule` that was updated by this mutation. */ - devicesModule?: DevicesModule | null; - devicesModuleEdge?: DevicesModuleEdge | null; + /** The `EmailsModule` that was updated by this mutation. */ + emailsModule?: EmailsModule | null; + emailsModuleEdge?: EmailsModuleEdge | null; } -export type UpdateDevicesModulePayloadSelect = { +export type UpdateEmailsModulePayloadSelect = { clientMutationId?: boolean; - devicesModule?: { - select: DevicesModuleSelect; + emailsModule?: { + select: EmailsModuleSelect; }; - devicesModuleEdge?: { - select: DevicesModuleEdgeSelect; + emailsModuleEdge?: { + select: EmailsModuleEdgeSelect; }; }; -export interface DeleteDevicesModulePayload { +export interface DeleteEmailsModulePayload { clientMutationId?: string | null; - /** The `DevicesModule` that was deleted by this mutation. */ - devicesModule?: DevicesModule | null; - devicesModuleEdge?: DevicesModuleEdge | null; + /** The `EmailsModule` that was deleted by this mutation. */ + emailsModule?: EmailsModule | null; + emailsModuleEdge?: EmailsModuleEdge | null; } -export type DeleteDevicesModulePayloadSelect = { +export type DeleteEmailsModulePayloadSelect = { clientMutationId?: boolean; - devicesModule?: { - select: DevicesModuleSelect; + emailsModule?: { + select: EmailsModuleSelect; }; - devicesModuleEdge?: { - select: DevicesModuleEdgeSelect; + emailsModuleEdge?: { + select: EmailsModuleEdgeSelect; }; }; -export interface CreateI18NModulePayload { +export interface CreatePhoneNumbersModulePayload { clientMutationId?: string | null; - /** The `I18NModule` that was created by this mutation. */ - i18NModule?: I18NModule | null; - i18NModuleEdge?: I18NModuleEdge | null; + /** The `PhoneNumbersModule` that was created by this mutation. */ + phoneNumbersModule?: PhoneNumbersModule | null; + phoneNumbersModuleEdge?: PhoneNumbersModuleEdge | null; } -export type CreateI18NModulePayloadSelect = { +export type CreatePhoneNumbersModulePayloadSelect = { clientMutationId?: boolean; - i18NModule?: { - select: I18NModuleSelect; + phoneNumbersModule?: { + select: PhoneNumbersModuleSelect; }; - i18NModuleEdge?: { - select: I18NModuleEdgeSelect; + phoneNumbersModuleEdge?: { + select: PhoneNumbersModuleEdgeSelect; }; }; -export interface UpdateI18NModulePayload { +export interface UpdatePhoneNumbersModulePayload { clientMutationId?: string | null; - /** The `I18NModule` that was updated by this mutation. */ - i18NModule?: I18NModule | null; - i18NModuleEdge?: I18NModuleEdge | null; + /** The `PhoneNumbersModule` that was updated by this mutation. */ + phoneNumbersModule?: PhoneNumbersModule | null; + phoneNumbersModuleEdge?: PhoneNumbersModuleEdge | null; } -export type UpdateI18NModulePayloadSelect = { +export type UpdatePhoneNumbersModulePayloadSelect = { clientMutationId?: boolean; - i18NModule?: { - select: I18NModuleSelect; + phoneNumbersModule?: { + select: PhoneNumbersModuleSelect; }; - i18NModuleEdge?: { - select: I18NModuleEdgeSelect; + phoneNumbersModuleEdge?: { + select: PhoneNumbersModuleEdgeSelect; }; }; -export interface DeleteI18NModulePayload { +export interface DeletePhoneNumbersModulePayload { clientMutationId?: string | null; - /** The `I18NModule` that was deleted by this mutation. */ - i18NModule?: I18NModule | null; - i18NModuleEdge?: I18NModuleEdge | null; + /** The `PhoneNumbersModule` that was deleted by this mutation. */ + phoneNumbersModule?: PhoneNumbersModule | null; + phoneNumbersModuleEdge?: PhoneNumbersModuleEdge | null; } -export type DeleteI18NModulePayloadSelect = { +export type DeletePhoneNumbersModulePayloadSelect = { clientMutationId?: boolean; - i18NModule?: { - select: I18NModuleSelect; + phoneNumbersModule?: { + select: PhoneNumbersModuleSelect; }; - i18NModuleEdge?: { - select: I18NModuleEdgeSelect; + phoneNumbersModuleEdge?: { + select: PhoneNumbersModuleEdgeSelect; }; }; -export interface CreateUserCredentialsModulePayload { +export interface CreateRateLimitsModulePayload { clientMutationId?: string | null; - /** The `UserCredentialsModule` that was created by this mutation. */ - userCredentialsModule?: UserCredentialsModule | null; - userCredentialsModuleEdge?: UserCredentialsModuleEdge | null; + /** The `RateLimitsModule` that was created by this mutation. */ + rateLimitsModule?: RateLimitsModule | null; + rateLimitsModuleEdge?: RateLimitsModuleEdge | null; } -export type CreateUserCredentialsModulePayloadSelect = { +export type CreateRateLimitsModulePayloadSelect = { clientMutationId?: boolean; - userCredentialsModule?: { - select: UserCredentialsModuleSelect; + rateLimitsModule?: { + select: RateLimitsModuleSelect; }; - userCredentialsModuleEdge?: { - select: UserCredentialsModuleEdgeSelect; + rateLimitsModuleEdge?: { + select: RateLimitsModuleEdgeSelect; + }; +}; +export interface UpdateRateLimitsModulePayload { + clientMutationId?: string | null; + /** The `RateLimitsModule` that was updated by this mutation. */ + rateLimitsModule?: RateLimitsModule | null; + rateLimitsModuleEdge?: RateLimitsModuleEdge | null; +} +export type UpdateRateLimitsModulePayloadSelect = { + clientMutationId?: boolean; + rateLimitsModule?: { + select: RateLimitsModuleSelect; + }; + rateLimitsModuleEdge?: { + select: RateLimitsModuleEdgeSelect; + }; +}; +export interface DeleteRateLimitsModulePayload { + clientMutationId?: string | null; + /** The `RateLimitsModule` that was deleted by this mutation. */ + rateLimitsModule?: RateLimitsModule | null; + rateLimitsModuleEdge?: RateLimitsModuleEdge | null; +} +export type DeleteRateLimitsModulePayloadSelect = { + clientMutationId?: boolean; + rateLimitsModule?: { + select: RateLimitsModuleSelect; + }; + rateLimitsModuleEdge?: { + select: RateLimitsModuleEdgeSelect; + }; +}; +export interface CreateUsersModulePayload { + clientMutationId?: string | null; + /** The `UsersModule` that was created by this mutation. */ + usersModule?: UsersModule | null; + usersModuleEdge?: UsersModuleEdge | null; +} +export type CreateUsersModulePayloadSelect = { + clientMutationId?: boolean; + usersModule?: { + select: UsersModuleSelect; + }; + usersModuleEdge?: { + select: UsersModuleEdgeSelect; }; }; -export interface UpdateUserCredentialsModulePayload { +export interface UpdateUsersModulePayload { clientMutationId?: string | null; - /** The `UserCredentialsModule` that was updated by this mutation. */ - userCredentialsModule?: UserCredentialsModule | null; - userCredentialsModuleEdge?: UserCredentialsModuleEdge | null; + /** The `UsersModule` that was updated by this mutation. */ + usersModule?: UsersModule | null; + usersModuleEdge?: UsersModuleEdge | null; } -export type UpdateUserCredentialsModulePayloadSelect = { +export type UpdateUsersModulePayloadSelect = { clientMutationId?: boolean; - userCredentialsModule?: { - select: UserCredentialsModuleSelect; + usersModule?: { + select: UsersModuleSelect; }; - userCredentialsModuleEdge?: { - select: UserCredentialsModuleEdgeSelect; + usersModuleEdge?: { + select: UsersModuleEdgeSelect; }; }; -export interface DeleteUserCredentialsModulePayload { +export interface DeleteUsersModulePayload { clientMutationId?: string | null; - /** The `UserCredentialsModule` that was deleted by this mutation. */ - userCredentialsModule?: UserCredentialsModule | null; - userCredentialsModuleEdge?: UserCredentialsModuleEdge | null; + /** The `UsersModule` that was deleted by this mutation. */ + usersModule?: UsersModule | null; + usersModuleEdge?: UsersModuleEdge | null; } -export type DeleteUserCredentialsModulePayloadSelect = { +export type DeleteUsersModulePayloadSelect = { clientMutationId?: boolean; - userCredentialsModule?: { - select: UserCredentialsModuleSelect; + usersModule?: { + select: UsersModuleSelect; }; - userCredentialsModuleEdge?: { - select: UserCredentialsModuleEdgeSelect; + usersModuleEdge?: { + select: UsersModuleEdgeSelect; }; }; -export interface CreateUserSettingsModulePayload { +export interface CreateWebauthnCredentialsModulePayload { clientMutationId?: string | null; - /** The `UserSettingsModule` that was created by this mutation. */ - userSettingsModule?: UserSettingsModule | null; - userSettingsModuleEdge?: UserSettingsModuleEdge | null; + /** The `WebauthnCredentialsModule` that was created by this mutation. */ + webauthnCredentialsModule?: WebauthnCredentialsModule | null; + webauthnCredentialsModuleEdge?: WebauthnCredentialsModuleEdge | null; } -export type CreateUserSettingsModulePayloadSelect = { +export type CreateWebauthnCredentialsModulePayloadSelect = { clientMutationId?: boolean; - userSettingsModule?: { - select: UserSettingsModuleSelect; + webauthnCredentialsModule?: { + select: WebauthnCredentialsModuleSelect; }; - userSettingsModuleEdge?: { - select: UserSettingsModuleEdgeSelect; + webauthnCredentialsModuleEdge?: { + select: WebauthnCredentialsModuleEdgeSelect; }; }; -export interface UpdateUserSettingsModulePayload { +export interface UpdateWebauthnCredentialsModulePayload { clientMutationId?: string | null; - /** The `UserSettingsModule` that was updated by this mutation. */ - userSettingsModule?: UserSettingsModule | null; - userSettingsModuleEdge?: UserSettingsModuleEdge | null; + /** The `WebauthnCredentialsModule` that was updated by this mutation. */ + webauthnCredentialsModule?: WebauthnCredentialsModule | null; + webauthnCredentialsModuleEdge?: WebauthnCredentialsModuleEdge | null; } -export type UpdateUserSettingsModulePayloadSelect = { +export type UpdateWebauthnCredentialsModulePayloadSelect = { clientMutationId?: boolean; - userSettingsModule?: { - select: UserSettingsModuleSelect; + webauthnCredentialsModule?: { + select: WebauthnCredentialsModuleSelect; }; - userSettingsModuleEdge?: { - select: UserSettingsModuleEdgeSelect; + webauthnCredentialsModuleEdge?: { + select: WebauthnCredentialsModuleEdgeSelect; }; }; -export interface DeleteUserSettingsModulePayload { +export interface DeleteWebauthnCredentialsModulePayload { clientMutationId?: string | null; - /** The `UserSettingsModule` that was deleted by this mutation. */ - userSettingsModule?: UserSettingsModule | null; - userSettingsModuleEdge?: UserSettingsModuleEdge | null; + /** The `WebauthnCredentialsModule` that was deleted by this mutation. */ + webauthnCredentialsModule?: WebauthnCredentialsModule | null; + webauthnCredentialsModuleEdge?: WebauthnCredentialsModuleEdge | null; } -export type DeleteUserSettingsModulePayloadSelect = { +export type DeleteWebauthnCredentialsModulePayloadSelect = { clientMutationId?: boolean; - userSettingsModule?: { - select: UserSettingsModuleSelect; + webauthnCredentialsModule?: { + select: WebauthnCredentialsModuleSelect; }; - userSettingsModuleEdge?: { - select: UserSettingsModuleEdgeSelect; + webauthnCredentialsModuleEdge?: { + select: WebauthnCredentialsModuleEdgeSelect; }; }; export interface CreateConfigSecretsUserModulePayload { @@ -13952,364 +15489,409 @@ export type DeleteConfigSecretsUserModulePayloadSelect = { select: ConfigSecretsUserModuleEdgeSelect; }; }; -export interface CreateConnectedAccountsModulePayload { +export interface CreateCryptoAddressesModulePayload { clientMutationId?: string | null; - /** The `ConnectedAccountsModule` that was created by this mutation. */ - connectedAccountsModule?: ConnectedAccountsModule | null; - connectedAccountsModuleEdge?: ConnectedAccountsModuleEdge | null; + /** The `CryptoAddressesModule` that was created by this mutation. */ + cryptoAddressesModule?: CryptoAddressesModule | null; + cryptoAddressesModuleEdge?: CryptoAddressesModuleEdge | null; } -export type CreateConnectedAccountsModulePayloadSelect = { +export type CreateCryptoAddressesModulePayloadSelect = { clientMutationId?: boolean; - connectedAccountsModule?: { - select: ConnectedAccountsModuleSelect; + cryptoAddressesModule?: { + select: CryptoAddressesModuleSelect; }; - connectedAccountsModuleEdge?: { - select: ConnectedAccountsModuleEdgeSelect; + cryptoAddressesModuleEdge?: { + select: CryptoAddressesModuleEdgeSelect; }; }; -export interface UpdateConnectedAccountsModulePayload { +export interface UpdateCryptoAddressesModulePayload { clientMutationId?: string | null; - /** The `ConnectedAccountsModule` that was updated by this mutation. */ - connectedAccountsModule?: ConnectedAccountsModule | null; - connectedAccountsModuleEdge?: ConnectedAccountsModuleEdge | null; + /** The `CryptoAddressesModule` that was updated by this mutation. */ + cryptoAddressesModule?: CryptoAddressesModule | null; + cryptoAddressesModuleEdge?: CryptoAddressesModuleEdge | null; } -export type UpdateConnectedAccountsModulePayloadSelect = { +export type UpdateCryptoAddressesModulePayloadSelect = { clientMutationId?: boolean; - connectedAccountsModule?: { - select: ConnectedAccountsModuleSelect; + cryptoAddressesModule?: { + select: CryptoAddressesModuleSelect; }; - connectedAccountsModuleEdge?: { - select: ConnectedAccountsModuleEdgeSelect; + cryptoAddressesModuleEdge?: { + select: CryptoAddressesModuleEdgeSelect; }; }; -export interface DeleteConnectedAccountsModulePayload { +export interface DeleteCryptoAddressesModulePayload { clientMutationId?: string | null; - /** The `ConnectedAccountsModule` that was deleted by this mutation. */ - connectedAccountsModule?: ConnectedAccountsModule | null; - connectedAccountsModuleEdge?: ConnectedAccountsModuleEdge | null; + /** The `CryptoAddressesModule` that was deleted by this mutation. */ + cryptoAddressesModule?: CryptoAddressesModule | null; + cryptoAddressesModuleEdge?: CryptoAddressesModuleEdge | null; } -export type DeleteConnectedAccountsModulePayloadSelect = { +export type DeleteCryptoAddressesModulePayloadSelect = { clientMutationId?: boolean; - connectedAccountsModule?: { - select: ConnectedAccountsModuleSelect; + cryptoAddressesModule?: { + select: CryptoAddressesModuleSelect; }; - connectedAccountsModuleEdge?: { - select: ConnectedAccountsModuleEdgeSelect; + cryptoAddressesModuleEdge?: { + select: CryptoAddressesModuleEdgeSelect; }; }; -export interface CreateEmailsModulePayload { +export interface CreateDenormalizedTableFieldPayload { clientMutationId?: string | null; - /** The `EmailsModule` that was created by this mutation. */ - emailsModule?: EmailsModule | null; - emailsModuleEdge?: EmailsModuleEdge | null; + /** The `DenormalizedTableField` that was created by this mutation. */ + denormalizedTableField?: DenormalizedTableField | null; + denormalizedTableFieldEdge?: DenormalizedTableFieldEdge | null; } -export type CreateEmailsModulePayloadSelect = { +export type CreateDenormalizedTableFieldPayloadSelect = { clientMutationId?: boolean; - emailsModule?: { - select: EmailsModuleSelect; + denormalizedTableField?: { + select: DenormalizedTableFieldSelect; }; - emailsModuleEdge?: { - select: EmailsModuleEdgeSelect; + denormalizedTableFieldEdge?: { + select: DenormalizedTableFieldEdgeSelect; }; }; -export interface UpdateEmailsModulePayload { +export interface UpdateDenormalizedTableFieldPayload { clientMutationId?: string | null; - /** The `EmailsModule` that was updated by this mutation. */ - emailsModule?: EmailsModule | null; - emailsModuleEdge?: EmailsModuleEdge | null; + /** The `DenormalizedTableField` that was updated by this mutation. */ + denormalizedTableField?: DenormalizedTableField | null; + denormalizedTableFieldEdge?: DenormalizedTableFieldEdge | null; } -export type UpdateEmailsModulePayloadSelect = { +export type UpdateDenormalizedTableFieldPayloadSelect = { clientMutationId?: boolean; - emailsModule?: { - select: EmailsModuleSelect; + denormalizedTableField?: { + select: DenormalizedTableFieldSelect; }; - emailsModuleEdge?: { - select: EmailsModuleEdgeSelect; + denormalizedTableFieldEdge?: { + select: DenormalizedTableFieldEdgeSelect; }; }; -export interface DeleteEmailsModulePayload { +export interface DeleteDenormalizedTableFieldPayload { clientMutationId?: string | null; - /** The `EmailsModule` that was deleted by this mutation. */ - emailsModule?: EmailsModule | null; - emailsModuleEdge?: EmailsModuleEdge | null; + /** The `DenormalizedTableField` that was deleted by this mutation. */ + denormalizedTableField?: DenormalizedTableField | null; + denormalizedTableFieldEdge?: DenormalizedTableFieldEdge | null; } -export type DeleteEmailsModulePayloadSelect = { +export type DeleteDenormalizedTableFieldPayloadSelect = { clientMutationId?: boolean; - emailsModule?: { - select: EmailsModuleSelect; + denormalizedTableField?: { + select: DenormalizedTableFieldSelect; }; - emailsModuleEdge?: { - select: EmailsModuleEdgeSelect; + denormalizedTableFieldEdge?: { + select: DenormalizedTableFieldEdgeSelect; }; }; -export interface CreatePhoneNumbersModulePayload { +export interface CreateRlsModulePayload { clientMutationId?: string | null; - /** The `PhoneNumbersModule` that was created by this mutation. */ - phoneNumbersModule?: PhoneNumbersModule | null; - phoneNumbersModuleEdge?: PhoneNumbersModuleEdge | null; + /** The `RlsModule` that was created by this mutation. */ + rlsModule?: RlsModule | null; + rlsModuleEdge?: RlsModuleEdge | null; } -export type CreatePhoneNumbersModulePayloadSelect = { +export type CreateRlsModulePayloadSelect = { clientMutationId?: boolean; - phoneNumbersModule?: { - select: PhoneNumbersModuleSelect; + rlsModule?: { + select: RlsModuleSelect; + }; + rlsModuleEdge?: { + select: RlsModuleEdgeSelect; + }; +}; +export interface UpdateRlsModulePayload { + clientMutationId?: string | null; + /** The `RlsModule` that was updated by this mutation. */ + rlsModule?: RlsModule | null; + rlsModuleEdge?: RlsModuleEdge | null; +} +export type UpdateRlsModulePayloadSelect = { + clientMutationId?: boolean; + rlsModule?: { + select: RlsModuleSelect; + }; + rlsModuleEdge?: { + select: RlsModuleEdgeSelect; + }; +}; +export interface DeleteRlsModulePayload { + clientMutationId?: string | null; + /** The `RlsModule` that was deleted by this mutation. */ + rlsModule?: RlsModule | null; + rlsModuleEdge?: RlsModuleEdge | null; +} +export type DeleteRlsModulePayloadSelect = { + clientMutationId?: boolean; + rlsModule?: { + select: RlsModuleSelect; + }; + rlsModuleEdge?: { + select: RlsModuleEdgeSelect; + }; +}; +export interface CreateBlueprintPayload { + clientMutationId?: string | null; + /** The `Blueprint` that was created by this mutation. */ + blueprint?: Blueprint | null; + blueprintEdge?: BlueprintEdge | null; +} +export type CreateBlueprintPayloadSelect = { + clientMutationId?: boolean; + blueprint?: { + select: BlueprintSelect; }; - phoneNumbersModuleEdge?: { - select: PhoneNumbersModuleEdgeSelect; + blueprintEdge?: { + select: BlueprintEdgeSelect; }; }; -export interface UpdatePhoneNumbersModulePayload { +export interface UpdateBlueprintPayload { clientMutationId?: string | null; - /** The `PhoneNumbersModule` that was updated by this mutation. */ - phoneNumbersModule?: PhoneNumbersModule | null; - phoneNumbersModuleEdge?: PhoneNumbersModuleEdge | null; + /** The `Blueprint` that was updated by this mutation. */ + blueprint?: Blueprint | null; + blueprintEdge?: BlueprintEdge | null; } -export type UpdatePhoneNumbersModulePayloadSelect = { +export type UpdateBlueprintPayloadSelect = { clientMutationId?: boolean; - phoneNumbersModule?: { - select: PhoneNumbersModuleSelect; + blueprint?: { + select: BlueprintSelect; }; - phoneNumbersModuleEdge?: { - select: PhoneNumbersModuleEdgeSelect; + blueprintEdge?: { + select: BlueprintEdgeSelect; }; }; -export interface DeletePhoneNumbersModulePayload { +export interface DeleteBlueprintPayload { clientMutationId?: string | null; - /** The `PhoneNumbersModule` that was deleted by this mutation. */ - phoneNumbersModule?: PhoneNumbersModule | null; - phoneNumbersModuleEdge?: PhoneNumbersModuleEdge | null; + /** The `Blueprint` that was deleted by this mutation. */ + blueprint?: Blueprint | null; + blueprintEdge?: BlueprintEdge | null; } -export type DeletePhoneNumbersModulePayloadSelect = { +export type DeleteBlueprintPayloadSelect = { clientMutationId?: boolean; - phoneNumbersModule?: { - select: PhoneNumbersModuleSelect; + blueprint?: { + select: BlueprintSelect; }; - phoneNumbersModuleEdge?: { - select: PhoneNumbersModuleEdgeSelect; + blueprintEdge?: { + select: BlueprintEdgeSelect; }; }; -export interface CreateRateLimitsModulePayload { +export interface CreateBlueprintTemplatePayload { clientMutationId?: string | null; - /** The `RateLimitsModule` that was created by this mutation. */ - rateLimitsModule?: RateLimitsModule | null; - rateLimitsModuleEdge?: RateLimitsModuleEdge | null; + /** The `BlueprintTemplate` that was created by this mutation. */ + blueprintTemplate?: BlueprintTemplate | null; + blueprintTemplateEdge?: BlueprintTemplateEdge | null; } -export type CreateRateLimitsModulePayloadSelect = { +export type CreateBlueprintTemplatePayloadSelect = { clientMutationId?: boolean; - rateLimitsModule?: { - select: RateLimitsModuleSelect; + blueprintTemplate?: { + select: BlueprintTemplateSelect; }; - rateLimitsModuleEdge?: { - select: RateLimitsModuleEdgeSelect; + blueprintTemplateEdge?: { + select: BlueprintTemplateEdgeSelect; }; }; -export interface UpdateRateLimitsModulePayload { +export interface UpdateBlueprintTemplatePayload { clientMutationId?: string | null; - /** The `RateLimitsModule` that was updated by this mutation. */ - rateLimitsModule?: RateLimitsModule | null; - rateLimitsModuleEdge?: RateLimitsModuleEdge | null; + /** The `BlueprintTemplate` that was updated by this mutation. */ + blueprintTemplate?: BlueprintTemplate | null; + blueprintTemplateEdge?: BlueprintTemplateEdge | null; } -export type UpdateRateLimitsModulePayloadSelect = { +export type UpdateBlueprintTemplatePayloadSelect = { clientMutationId?: boolean; - rateLimitsModule?: { - select: RateLimitsModuleSelect; + blueprintTemplate?: { + select: BlueprintTemplateSelect; }; - rateLimitsModuleEdge?: { - select: RateLimitsModuleEdgeSelect; + blueprintTemplateEdge?: { + select: BlueprintTemplateEdgeSelect; }; }; -export interface DeleteRateLimitsModulePayload { +export interface DeleteBlueprintTemplatePayload { clientMutationId?: string | null; - /** The `RateLimitsModule` that was deleted by this mutation. */ - rateLimitsModule?: RateLimitsModule | null; - rateLimitsModuleEdge?: RateLimitsModuleEdge | null; + /** The `BlueprintTemplate` that was deleted by this mutation. */ + blueprintTemplate?: BlueprintTemplate | null; + blueprintTemplateEdge?: BlueprintTemplateEdge | null; } -export type DeleteRateLimitsModulePayloadSelect = { +export type DeleteBlueprintTemplatePayloadSelect = { clientMutationId?: boolean; - rateLimitsModule?: { - select: RateLimitsModuleSelect; + blueprintTemplate?: { + select: BlueprintTemplateSelect; }; - rateLimitsModuleEdge?: { - select: RateLimitsModuleEdgeSelect; + blueprintTemplateEdge?: { + select: BlueprintTemplateEdgeSelect; }; }; -export interface CreateUsersModulePayload { +export interface CreateBlueprintConstructionPayload { clientMutationId?: string | null; - /** The `UsersModule` that was created by this mutation. */ - usersModule?: UsersModule | null; - usersModuleEdge?: UsersModuleEdge | null; + /** The `BlueprintConstruction` that was created by this mutation. */ + blueprintConstruction?: BlueprintConstruction | null; + blueprintConstructionEdge?: BlueprintConstructionEdge | null; } -export type CreateUsersModulePayloadSelect = { +export type CreateBlueprintConstructionPayloadSelect = { clientMutationId?: boolean; - usersModule?: { - select: UsersModuleSelect; + blueprintConstruction?: { + select: BlueprintConstructionSelect; }; - usersModuleEdge?: { - select: UsersModuleEdgeSelect; + blueprintConstructionEdge?: { + select: BlueprintConstructionEdgeSelect; }; }; -export interface UpdateUsersModulePayload { +export interface UpdateBlueprintConstructionPayload { clientMutationId?: string | null; - /** The `UsersModule` that was updated by this mutation. */ - usersModule?: UsersModule | null; - usersModuleEdge?: UsersModuleEdge | null; + /** The `BlueprintConstruction` that was updated by this mutation. */ + blueprintConstruction?: BlueprintConstruction | null; + blueprintConstructionEdge?: BlueprintConstructionEdge | null; } -export type UpdateUsersModulePayloadSelect = { +export type UpdateBlueprintConstructionPayloadSelect = { clientMutationId?: boolean; - usersModule?: { - select: UsersModuleSelect; + blueprintConstruction?: { + select: BlueprintConstructionSelect; }; - usersModuleEdge?: { - select: UsersModuleEdgeSelect; + blueprintConstructionEdge?: { + select: BlueprintConstructionEdgeSelect; }; }; -export interface DeleteUsersModulePayload { +export interface DeleteBlueprintConstructionPayload { clientMutationId?: string | null; - /** The `UsersModule` that was deleted by this mutation. */ - usersModule?: UsersModule | null; - usersModuleEdge?: UsersModuleEdge | null; + /** The `BlueprintConstruction` that was deleted by this mutation. */ + blueprintConstruction?: BlueprintConstruction | null; + blueprintConstructionEdge?: BlueprintConstructionEdge | null; } -export type DeleteUsersModulePayloadSelect = { +export type DeleteBlueprintConstructionPayloadSelect = { clientMutationId?: boolean; - usersModule?: { - select: UsersModuleSelect; + blueprintConstruction?: { + select: BlueprintConstructionSelect; }; - usersModuleEdge?: { - select: UsersModuleEdgeSelect; + blueprintConstructionEdge?: { + select: BlueprintConstructionEdgeSelect; }; }; -export interface CreateWebauthnCredentialsModulePayload { +export interface CreateCryptoAuthModulePayload { clientMutationId?: string | null; - /** The `WebauthnCredentialsModule` that was created by this mutation. */ - webauthnCredentialsModule?: WebauthnCredentialsModule | null; - webauthnCredentialsModuleEdge?: WebauthnCredentialsModuleEdge | null; + /** The `CryptoAuthModule` that was created by this mutation. */ + cryptoAuthModule?: CryptoAuthModule | null; + cryptoAuthModuleEdge?: CryptoAuthModuleEdge | null; } -export type CreateWebauthnCredentialsModulePayloadSelect = { +export type CreateCryptoAuthModulePayloadSelect = { clientMutationId?: boolean; - webauthnCredentialsModule?: { - select: WebauthnCredentialsModuleSelect; + cryptoAuthModule?: { + select: CryptoAuthModuleSelect; }; - webauthnCredentialsModuleEdge?: { - select: WebauthnCredentialsModuleEdgeSelect; + cryptoAuthModuleEdge?: { + select: CryptoAuthModuleEdgeSelect; }; }; -export interface UpdateWebauthnCredentialsModulePayload { +export interface UpdateCryptoAuthModulePayload { clientMutationId?: string | null; - /** The `WebauthnCredentialsModule` that was updated by this mutation. */ - webauthnCredentialsModule?: WebauthnCredentialsModule | null; - webauthnCredentialsModuleEdge?: WebauthnCredentialsModuleEdge | null; + /** The `CryptoAuthModule` that was updated by this mutation. */ + cryptoAuthModule?: CryptoAuthModule | null; + cryptoAuthModuleEdge?: CryptoAuthModuleEdge | null; } -export type UpdateWebauthnCredentialsModulePayloadSelect = { +export type UpdateCryptoAuthModulePayloadSelect = { clientMutationId?: boolean; - webauthnCredentialsModule?: { - select: WebauthnCredentialsModuleSelect; + cryptoAuthModule?: { + select: CryptoAuthModuleSelect; }; - webauthnCredentialsModuleEdge?: { - select: WebauthnCredentialsModuleEdgeSelect; + cryptoAuthModuleEdge?: { + select: CryptoAuthModuleEdgeSelect; }; }; -export interface DeleteWebauthnCredentialsModulePayload { +export interface DeleteCryptoAuthModulePayload { clientMutationId?: string | null; - /** The `WebauthnCredentialsModule` that was deleted by this mutation. */ - webauthnCredentialsModule?: WebauthnCredentialsModule | null; - webauthnCredentialsModuleEdge?: WebauthnCredentialsModuleEdge | null; + /** The `CryptoAuthModule` that was deleted by this mutation. */ + cryptoAuthModule?: CryptoAuthModule | null; + cryptoAuthModuleEdge?: CryptoAuthModuleEdge | null; } -export type DeleteWebauthnCredentialsModulePayloadSelect = { +export type DeleteCryptoAuthModulePayloadSelect = { clientMutationId?: boolean; - webauthnCredentialsModule?: { - select: WebauthnCredentialsModuleSelect; + cryptoAuthModule?: { + select: CryptoAuthModuleSelect; }; - webauthnCredentialsModuleEdge?: { - select: WebauthnCredentialsModuleEdgeSelect; + cryptoAuthModuleEdge?: { + select: CryptoAuthModuleEdgeSelect; }; }; -export interface CreateCryptoAddressesModulePayload { +export interface CreateSessionsModulePayload { clientMutationId?: string | null; - /** The `CryptoAddressesModule` that was created by this mutation. */ - cryptoAddressesModule?: CryptoAddressesModule | null; - cryptoAddressesModuleEdge?: CryptoAddressesModuleEdge | null; + /** The `SessionsModule` that was created by this mutation. */ + sessionsModule?: SessionsModule | null; + sessionsModuleEdge?: SessionsModuleEdge | null; } -export type CreateCryptoAddressesModulePayloadSelect = { +export type CreateSessionsModulePayloadSelect = { clientMutationId?: boolean; - cryptoAddressesModule?: { - select: CryptoAddressesModuleSelect; + sessionsModule?: { + select: SessionsModuleSelect; }; - cryptoAddressesModuleEdge?: { - select: CryptoAddressesModuleEdgeSelect; + sessionsModuleEdge?: { + select: SessionsModuleEdgeSelect; }; }; -export interface UpdateCryptoAddressesModulePayload { +export interface UpdateSessionsModulePayload { clientMutationId?: string | null; - /** The `CryptoAddressesModule` that was updated by this mutation. */ - cryptoAddressesModule?: CryptoAddressesModule | null; - cryptoAddressesModuleEdge?: CryptoAddressesModuleEdge | null; + /** The `SessionsModule` that was updated by this mutation. */ + sessionsModule?: SessionsModule | null; + sessionsModuleEdge?: SessionsModuleEdge | null; } -export type UpdateCryptoAddressesModulePayloadSelect = { +export type UpdateSessionsModulePayloadSelect = { clientMutationId?: boolean; - cryptoAddressesModule?: { - select: CryptoAddressesModuleSelect; + sessionsModule?: { + select: SessionsModuleSelect; }; - cryptoAddressesModuleEdge?: { - select: CryptoAddressesModuleEdgeSelect; + sessionsModuleEdge?: { + select: SessionsModuleEdgeSelect; }; }; -export interface DeleteCryptoAddressesModulePayload { +export interface DeleteSessionsModulePayload { clientMutationId?: string | null; - /** The `CryptoAddressesModule` that was deleted by this mutation. */ - cryptoAddressesModule?: CryptoAddressesModule | null; - cryptoAddressesModuleEdge?: CryptoAddressesModuleEdge | null; + /** The `SessionsModule` that was deleted by this mutation. */ + sessionsModule?: SessionsModule | null; + sessionsModuleEdge?: SessionsModuleEdge | null; } -export type DeleteCryptoAddressesModulePayloadSelect = { +export type DeleteSessionsModulePayloadSelect = { clientMutationId?: boolean; - cryptoAddressesModule?: { - select: CryptoAddressesModuleSelect; + sessionsModule?: { + select: SessionsModuleSelect; }; - cryptoAddressesModuleEdge?: { - select: CryptoAddressesModuleEdgeSelect; + sessionsModuleEdge?: { + select: SessionsModuleEdgeSelect; }; }; -export interface CreateDenormalizedTableFieldPayload { +export interface CreateSecureTableProvisionPayload { clientMutationId?: string | null; - /** The `DenormalizedTableField` that was created by this mutation. */ - denormalizedTableField?: DenormalizedTableField | null; - denormalizedTableFieldEdge?: DenormalizedTableFieldEdge | null; + /** The `SecureTableProvision` that was created by this mutation. */ + secureTableProvision?: SecureTableProvision | null; + secureTableProvisionEdge?: SecureTableProvisionEdge | null; } -export type CreateDenormalizedTableFieldPayloadSelect = { +export type CreateSecureTableProvisionPayloadSelect = { clientMutationId?: boolean; - denormalizedTableField?: { - select: DenormalizedTableFieldSelect; + secureTableProvision?: { + select: SecureTableProvisionSelect; }; - denormalizedTableFieldEdge?: { - select: DenormalizedTableFieldEdgeSelect; + secureTableProvisionEdge?: { + select: SecureTableProvisionEdgeSelect; }; }; -export interface UpdateDenormalizedTableFieldPayload { +export interface UpdateSecureTableProvisionPayload { clientMutationId?: string | null; - /** The `DenormalizedTableField` that was updated by this mutation. */ - denormalizedTableField?: DenormalizedTableField | null; - denormalizedTableFieldEdge?: DenormalizedTableFieldEdge | null; + /** The `SecureTableProvision` that was updated by this mutation. */ + secureTableProvision?: SecureTableProvision | null; + secureTableProvisionEdge?: SecureTableProvisionEdge | null; } -export type UpdateDenormalizedTableFieldPayloadSelect = { +export type UpdateSecureTableProvisionPayloadSelect = { clientMutationId?: boolean; - denormalizedTableField?: { - select: DenormalizedTableFieldSelect; + secureTableProvision?: { + select: SecureTableProvisionSelect; }; - denormalizedTableFieldEdge?: { - select: DenormalizedTableFieldEdgeSelect; + secureTableProvisionEdge?: { + select: SecureTableProvisionEdgeSelect; }; }; -export interface DeleteDenormalizedTableFieldPayload { +export interface DeleteSecureTableProvisionPayload { clientMutationId?: string | null; - /** The `DenormalizedTableField` that was deleted by this mutation. */ - denormalizedTableField?: DenormalizedTableField | null; - denormalizedTableFieldEdge?: DenormalizedTableFieldEdge | null; + /** The `SecureTableProvision` that was deleted by this mutation. */ + secureTableProvision?: SecureTableProvision | null; + secureTableProvisionEdge?: SecureTableProvisionEdge | null; } -export type DeleteDenormalizedTableFieldPayloadSelect = { +export type DeleteSecureTableProvisionPayloadSelect = { clientMutationId?: boolean; - denormalizedTableField?: { - select: DenormalizedTableFieldSelect; + secureTableProvision?: { + select: SecureTableProvisionSelect; }; - denormalizedTableFieldEdge?: { - select: DenormalizedTableFieldEdgeSelect; + secureTableProvisionEdge?: { + select: SecureTableProvisionEdgeSelect; }; }; export interface CreateIdentityProvidersModulePayload { @@ -14357,454 +15939,589 @@ export type DeleteIdentityProvidersModulePayloadSelect = { select: IdentityProvidersModuleEdgeSelect; }; }; -export interface CreateRlsModulePayload { +export interface CreateIntegrationProvidersModulePayload { clientMutationId?: string | null; - /** The `RlsModule` that was created by this mutation. */ - rlsModule?: RlsModule | null; - rlsModuleEdge?: RlsModuleEdge | null; + /** The `IntegrationProvidersModule` that was created by this mutation. */ + integrationProvidersModule?: IntegrationProvidersModule | null; + integrationProvidersModuleEdge?: IntegrationProvidersModuleEdge | null; } -export type CreateRlsModulePayloadSelect = { +export type CreateIntegrationProvidersModulePayloadSelect = { clientMutationId?: boolean; - rlsModule?: { - select: RlsModuleSelect; + integrationProvidersModule?: { + select: IntegrationProvidersModuleSelect; }; - rlsModuleEdge?: { - select: RlsModuleEdgeSelect; + integrationProvidersModuleEdge?: { + select: IntegrationProvidersModuleEdgeSelect; }; }; -export interface UpdateRlsModulePayload { +export interface UpdateIntegrationProvidersModulePayload { clientMutationId?: string | null; - /** The `RlsModule` that was updated by this mutation. */ - rlsModule?: RlsModule | null; - rlsModuleEdge?: RlsModuleEdge | null; + /** The `IntegrationProvidersModule` that was updated by this mutation. */ + integrationProvidersModule?: IntegrationProvidersModule | null; + integrationProvidersModuleEdge?: IntegrationProvidersModuleEdge | null; } -export type UpdateRlsModulePayloadSelect = { +export type UpdateIntegrationProvidersModulePayloadSelect = { clientMutationId?: boolean; - rlsModule?: { - select: RlsModuleSelect; + integrationProvidersModule?: { + select: IntegrationProvidersModuleSelect; }; - rlsModuleEdge?: { - select: RlsModuleEdgeSelect; + integrationProvidersModuleEdge?: { + select: IntegrationProvidersModuleEdgeSelect; }; }; -export interface DeleteRlsModulePayload { +export interface DeleteIntegrationProvidersModulePayload { clientMutationId?: string | null; - /** The `RlsModule` that was deleted by this mutation. */ - rlsModule?: RlsModule | null; - rlsModuleEdge?: RlsModuleEdge | null; + /** The `IntegrationProvidersModule` that was deleted by this mutation. */ + integrationProvidersModule?: IntegrationProvidersModule | null; + integrationProvidersModuleEdge?: IntegrationProvidersModuleEdge | null; } -export type DeleteRlsModulePayloadSelect = { +export type DeleteIntegrationProvidersModulePayloadSelect = { clientMutationId?: boolean; - rlsModule?: { - select: RlsModuleSelect; + integrationProvidersModule?: { + select: IntegrationProvidersModuleSelect; }; - rlsModuleEdge?: { - select: RlsModuleEdgeSelect; + integrationProvidersModuleEdge?: { + select: IntegrationProvidersModuleEdgeSelect; }; }; -export interface CreateBlueprintPayload { +export interface CreateDbPoolConfigPayload { clientMutationId?: string | null; - /** The `Blueprint` that was created by this mutation. */ - blueprint?: Blueprint | null; - blueprintEdge?: BlueprintEdge | null; + /** The `DbPoolConfig` that was created by this mutation. */ + dbPoolConfig?: DbPoolConfig | null; + dbPoolConfigEdge?: DbPoolConfigEdge | null; } -export type CreateBlueprintPayloadSelect = { +export type CreateDbPoolConfigPayloadSelect = { clientMutationId?: boolean; - blueprint?: { - select: BlueprintSelect; + dbPoolConfig?: { + select: DbPoolConfigSelect; }; - blueprintEdge?: { - select: BlueprintEdgeSelect; + dbPoolConfigEdge?: { + select: DbPoolConfigEdgeSelect; }; }; -export interface UpdateBlueprintPayload { +export interface UpdateDbPoolConfigPayload { clientMutationId?: string | null; - /** The `Blueprint` that was updated by this mutation. */ - blueprint?: Blueprint | null; - blueprintEdge?: BlueprintEdge | null; + /** The `DbPoolConfig` that was updated by this mutation. */ + dbPoolConfig?: DbPoolConfig | null; + dbPoolConfigEdge?: DbPoolConfigEdge | null; } -export type UpdateBlueprintPayloadSelect = { +export type UpdateDbPoolConfigPayloadSelect = { clientMutationId?: boolean; - blueprint?: { - select: BlueprintSelect; + dbPoolConfig?: { + select: DbPoolConfigSelect; }; - blueprintEdge?: { - select: BlueprintEdgeSelect; + dbPoolConfigEdge?: { + select: DbPoolConfigEdgeSelect; }; }; -export interface DeleteBlueprintPayload { +export interface DeleteDbPoolConfigPayload { clientMutationId?: string | null; - /** The `Blueprint` that was deleted by this mutation. */ - blueprint?: Blueprint | null; - blueprintEdge?: BlueprintEdge | null; + /** The `DbPoolConfig` that was deleted by this mutation. */ + dbPoolConfig?: DbPoolConfig | null; + dbPoolConfigEdge?: DbPoolConfigEdge | null; } -export type DeleteBlueprintPayloadSelect = { +export type DeleteDbPoolConfigPayloadSelect = { clientMutationId?: boolean; - blueprint?: { - select: BlueprintSelect; + dbPoolConfig?: { + select: DbPoolConfigSelect; }; - blueprintEdge?: { - select: BlueprintEdgeSelect; + dbPoolConfigEdge?: { + select: DbPoolConfigEdgeSelect; }; }; -export interface CreateBlueprintTemplatePayload { +export interface CreateRealtimeModulePayload { clientMutationId?: string | null; - /** The `BlueprintTemplate` that was created by this mutation. */ - blueprintTemplate?: BlueprintTemplate | null; - blueprintTemplateEdge?: BlueprintTemplateEdge | null; + /** The `RealtimeModule` that was created by this mutation. */ + realtimeModule?: RealtimeModule | null; + realtimeModuleEdge?: RealtimeModuleEdge | null; } -export type CreateBlueprintTemplatePayloadSelect = { +export type CreateRealtimeModulePayloadSelect = { clientMutationId?: boolean; - blueprintTemplate?: { - select: BlueprintTemplateSelect; + realtimeModule?: { + select: RealtimeModuleSelect; }; - blueprintTemplateEdge?: { - select: BlueprintTemplateEdgeSelect; + realtimeModuleEdge?: { + select: RealtimeModuleEdgeSelect; }; }; -export interface UpdateBlueprintTemplatePayload { +export interface UpdateRealtimeModulePayload { clientMutationId?: string | null; - /** The `BlueprintTemplate` that was updated by this mutation. */ - blueprintTemplate?: BlueprintTemplate | null; - blueprintTemplateEdge?: BlueprintTemplateEdge | null; + /** The `RealtimeModule` that was updated by this mutation. */ + realtimeModule?: RealtimeModule | null; + realtimeModuleEdge?: RealtimeModuleEdge | null; } -export type UpdateBlueprintTemplatePayloadSelect = { +export type UpdateRealtimeModulePayloadSelect = { clientMutationId?: boolean; - blueprintTemplate?: { - select: BlueprintTemplateSelect; + realtimeModule?: { + select: RealtimeModuleSelect; }; - blueprintTemplateEdge?: { - select: BlueprintTemplateEdgeSelect; + realtimeModuleEdge?: { + select: RealtimeModuleEdgeSelect; }; }; -export interface DeleteBlueprintTemplatePayload { +export interface DeleteRealtimeModulePayload { clientMutationId?: string | null; - /** The `BlueprintTemplate` that was deleted by this mutation. */ - blueprintTemplate?: BlueprintTemplate | null; - blueprintTemplateEdge?: BlueprintTemplateEdge | null; + /** The `RealtimeModule` that was deleted by this mutation. */ + realtimeModule?: RealtimeModule | null; + realtimeModuleEdge?: RealtimeModuleEdge | null; } -export type DeleteBlueprintTemplatePayloadSelect = { +export type DeleteRealtimeModulePayloadSelect = { clientMutationId?: boolean; - blueprintTemplate?: { - select: BlueprintTemplateSelect; + realtimeModule?: { + select: RealtimeModuleSelect; }; - blueprintTemplateEdge?: { - select: BlueprintTemplateEdgeSelect; + realtimeModuleEdge?: { + select: RealtimeModuleEdgeSelect; }; }; -export interface CreateBlueprintConstructionPayload { +export interface CreateInfraSecretsModulePayload { clientMutationId?: string | null; - /** The `BlueprintConstruction` that was created by this mutation. */ - blueprintConstruction?: BlueprintConstruction | null; - blueprintConstructionEdge?: BlueprintConstructionEdge | null; + /** The `InfraSecretsModule` that was created by this mutation. */ + infraSecretsModule?: InfraSecretsModule | null; + infraSecretsModuleEdge?: InfraSecretsModuleEdge | null; } -export type CreateBlueprintConstructionPayloadSelect = { +export type CreateInfraSecretsModulePayloadSelect = { clientMutationId?: boolean; - blueprintConstruction?: { - select: BlueprintConstructionSelect; + infraSecretsModule?: { + select: InfraSecretsModuleSelect; }; - blueprintConstructionEdge?: { - select: BlueprintConstructionEdgeSelect; + infraSecretsModuleEdge?: { + select: InfraSecretsModuleEdgeSelect; }; }; -export interface UpdateBlueprintConstructionPayload { +export interface UpdateInfraSecretsModulePayload { clientMutationId?: string | null; - /** The `BlueprintConstruction` that was updated by this mutation. */ - blueprintConstruction?: BlueprintConstruction | null; - blueprintConstructionEdge?: BlueprintConstructionEdge | null; + /** The `InfraSecretsModule` that was updated by this mutation. */ + infraSecretsModule?: InfraSecretsModule | null; + infraSecretsModuleEdge?: InfraSecretsModuleEdge | null; } -export type UpdateBlueprintConstructionPayloadSelect = { +export type UpdateInfraSecretsModulePayloadSelect = { clientMutationId?: boolean; - blueprintConstruction?: { - select: BlueprintConstructionSelect; + infraSecretsModule?: { + select: InfraSecretsModuleSelect; }; - blueprintConstructionEdge?: { - select: BlueprintConstructionEdgeSelect; + infraSecretsModuleEdge?: { + select: InfraSecretsModuleEdgeSelect; }; }; -export interface DeleteBlueprintConstructionPayload { +export interface DeleteInfraSecretsModulePayload { clientMutationId?: string | null; - /** The `BlueprintConstruction` that was deleted by this mutation. */ - blueprintConstruction?: BlueprintConstruction | null; - blueprintConstructionEdge?: BlueprintConstructionEdge | null; + /** The `InfraSecretsModule` that was deleted by this mutation. */ + infraSecretsModule?: InfraSecretsModule | null; + infraSecretsModuleEdge?: InfraSecretsModuleEdge | null; +} +export type DeleteInfraSecretsModulePayloadSelect = { + clientMutationId?: boolean; + infraSecretsModule?: { + select: InfraSecretsModuleSelect; + }; + infraSecretsModuleEdge?: { + select: InfraSecretsModuleEdgeSelect; + }; +}; +export interface CreateInternalSecretsModulePayload { + clientMutationId?: string | null; + /** The `InternalSecretsModule` that was created by this mutation. */ + internalSecretsModule?: InternalSecretsModule | null; + internalSecretsModuleEdge?: InternalSecretsModuleEdge | null; +} +export type CreateInternalSecretsModulePayloadSelect = { + clientMutationId?: boolean; + internalSecretsModule?: { + select: InternalSecretsModuleSelect; + }; + internalSecretsModuleEdge?: { + select: InternalSecretsModuleEdgeSelect; + }; +}; +export interface UpdateInternalSecretsModulePayload { + clientMutationId?: string | null; + /** The `InternalSecretsModule` that was updated by this mutation. */ + internalSecretsModule?: InternalSecretsModule | null; + internalSecretsModuleEdge?: InternalSecretsModuleEdge | null; +} +export type UpdateInternalSecretsModulePayloadSelect = { + clientMutationId?: boolean; + internalSecretsModule?: { + select: InternalSecretsModuleSelect; + }; + internalSecretsModuleEdge?: { + select: InternalSecretsModuleEdgeSelect; + }; +}; +export interface DeleteInternalSecretsModulePayload { + clientMutationId?: string | null; + /** The `InternalSecretsModule` that was deleted by this mutation. */ + internalSecretsModule?: InternalSecretsModule | null; + internalSecretsModuleEdge?: InternalSecretsModuleEdge | null; +} +export type DeleteInternalSecretsModulePayloadSelect = { + clientMutationId?: boolean; + internalSecretsModule?: { + select: InternalSecretsModuleSelect; + }; + internalSecretsModuleEdge?: { + select: InternalSecretsModuleEdgeSelect; + }; +}; +export interface CreateDbPresetModulePayload { + clientMutationId?: string | null; + /** The `DbPresetModule` that was created by this mutation. */ + dbPresetModule?: DbPresetModule | null; + dbPresetModuleEdge?: DbPresetModuleEdge | null; +} +export type CreateDbPresetModulePayloadSelect = { + clientMutationId?: boolean; + dbPresetModule?: { + select: DbPresetModuleSelect; + }; + dbPresetModuleEdge?: { + select: DbPresetModuleEdgeSelect; + }; +}; +export interface UpdateDbPresetModulePayload { + clientMutationId?: string | null; + /** The `DbPresetModule` that was updated by this mutation. */ + dbPresetModule?: DbPresetModule | null; + dbPresetModuleEdge?: DbPresetModuleEdge | null; +} +export type UpdateDbPresetModulePayloadSelect = { + clientMutationId?: boolean; + dbPresetModule?: { + select: DbPresetModuleSelect; + }; + dbPresetModuleEdge?: { + select: DbPresetModuleEdgeSelect; + }; +}; +export interface DeleteDbPresetModulePayload { + clientMutationId?: string | null; + /** The `DbPresetModule` that was deleted by this mutation. */ + dbPresetModule?: DbPresetModule | null; + dbPresetModuleEdge?: DbPresetModuleEdge | null; +} +export type DeleteDbPresetModulePayloadSelect = { + clientMutationId?: boolean; + dbPresetModule?: { + select: DbPresetModuleSelect; + }; + dbPresetModuleEdge?: { + select: DbPresetModuleEdgeSelect; + }; +}; +export interface CreateGraphModulePayload { + clientMutationId?: string | null; + /** The `GraphModule` that was created by this mutation. */ + graphModule?: GraphModule | null; + graphModuleEdge?: GraphModuleEdge | null; +} +export type CreateGraphModulePayloadSelect = { + clientMutationId?: boolean; + graphModule?: { + select: GraphModuleSelect; + }; + graphModuleEdge?: { + select: GraphModuleEdgeSelect; + }; +}; +export interface UpdateGraphModulePayload { + clientMutationId?: string | null; + /** The `GraphModule` that was updated by this mutation. */ + graphModule?: GraphModule | null; + graphModuleEdge?: GraphModuleEdge | null; +} +export type UpdateGraphModulePayloadSelect = { + clientMutationId?: boolean; + graphModule?: { + select: GraphModuleSelect; + }; + graphModuleEdge?: { + select: GraphModuleEdgeSelect; + }; +}; +export interface DeleteGraphModulePayload { + clientMutationId?: string | null; + /** The `GraphModule` that was deleted by this mutation. */ + graphModule?: GraphModule | null; + graphModuleEdge?: GraphModuleEdge | null; } -export type DeleteBlueprintConstructionPayloadSelect = { +export type DeleteGraphModulePayloadSelect = { clientMutationId?: boolean; - blueprintConstruction?: { - select: BlueprintConstructionSelect; + graphModule?: { + select: GraphModuleSelect; }; - blueprintConstructionEdge?: { - select: BlueprintConstructionEdgeSelect; + graphModuleEdge?: { + select: GraphModuleEdgeSelect; }; }; -export interface CreateCryptoAuthModulePayload { +export interface CreateRateLimitMetersModulePayload { clientMutationId?: string | null; - /** The `CryptoAuthModule` that was created by this mutation. */ - cryptoAuthModule?: CryptoAuthModule | null; - cryptoAuthModuleEdge?: CryptoAuthModuleEdge | null; + /** The `RateLimitMetersModule` that was created by this mutation. */ + rateLimitMetersModule?: RateLimitMetersModule | null; + rateLimitMetersModuleEdge?: RateLimitMetersModuleEdge | null; } -export type CreateCryptoAuthModulePayloadSelect = { +export type CreateRateLimitMetersModulePayloadSelect = { clientMutationId?: boolean; - cryptoAuthModule?: { - select: CryptoAuthModuleSelect; + rateLimitMetersModule?: { + select: RateLimitMetersModuleSelect; }; - cryptoAuthModuleEdge?: { - select: CryptoAuthModuleEdgeSelect; + rateLimitMetersModuleEdge?: { + select: RateLimitMetersModuleEdgeSelect; }; }; -export interface UpdateCryptoAuthModulePayload { +export interface UpdateRateLimitMetersModulePayload { clientMutationId?: string | null; - /** The `CryptoAuthModule` that was updated by this mutation. */ - cryptoAuthModule?: CryptoAuthModule | null; - cryptoAuthModuleEdge?: CryptoAuthModuleEdge | null; + /** The `RateLimitMetersModule` that was updated by this mutation. */ + rateLimitMetersModule?: RateLimitMetersModule | null; + rateLimitMetersModuleEdge?: RateLimitMetersModuleEdge | null; } -export type UpdateCryptoAuthModulePayloadSelect = { +export type UpdateRateLimitMetersModulePayloadSelect = { clientMutationId?: boolean; - cryptoAuthModule?: { - select: CryptoAuthModuleSelect; + rateLimitMetersModule?: { + select: RateLimitMetersModuleSelect; }; - cryptoAuthModuleEdge?: { - select: CryptoAuthModuleEdgeSelect; + rateLimitMetersModuleEdge?: { + select: RateLimitMetersModuleEdgeSelect; }; }; -export interface DeleteCryptoAuthModulePayload { +export interface DeleteRateLimitMetersModulePayload { clientMutationId?: string | null; - /** The `CryptoAuthModule` that was deleted by this mutation. */ - cryptoAuthModule?: CryptoAuthModule | null; - cryptoAuthModuleEdge?: CryptoAuthModuleEdge | null; + /** The `RateLimitMetersModule` that was deleted by this mutation. */ + rateLimitMetersModule?: RateLimitMetersModule | null; + rateLimitMetersModuleEdge?: RateLimitMetersModuleEdge | null; } -export type DeleteCryptoAuthModulePayloadSelect = { +export type DeleteRateLimitMetersModulePayloadSelect = { clientMutationId?: boolean; - cryptoAuthModule?: { - select: CryptoAuthModuleSelect; + rateLimitMetersModule?: { + select: RateLimitMetersModuleSelect; }; - cryptoAuthModuleEdge?: { - select: CryptoAuthModuleEdgeSelect; + rateLimitMetersModuleEdge?: { + select: RateLimitMetersModuleEdgeSelect; }; }; -export interface CreateSessionsModulePayload { +export interface CreateInfraConfigModulePayload { clientMutationId?: string | null; - /** The `SessionsModule` that was created by this mutation. */ - sessionsModule?: SessionsModule | null; - sessionsModuleEdge?: SessionsModuleEdge | null; + /** The `InfraConfigModule` that was created by this mutation. */ + infraConfigModule?: InfraConfigModule | null; + infraConfigModuleEdge?: InfraConfigModuleEdge | null; } -export type CreateSessionsModulePayloadSelect = { +export type CreateInfraConfigModulePayloadSelect = { clientMutationId?: boolean; - sessionsModule?: { - select: SessionsModuleSelect; + infraConfigModule?: { + select: InfraConfigModuleSelect; }; - sessionsModuleEdge?: { - select: SessionsModuleEdgeSelect; + infraConfigModuleEdge?: { + select: InfraConfigModuleEdgeSelect; }; }; -export interface UpdateSessionsModulePayload { +export interface UpdateInfraConfigModulePayload { clientMutationId?: string | null; - /** The `SessionsModule` that was updated by this mutation. */ - sessionsModule?: SessionsModule | null; - sessionsModuleEdge?: SessionsModuleEdge | null; + /** The `InfraConfigModule` that was updated by this mutation. */ + infraConfigModule?: InfraConfigModule | null; + infraConfigModuleEdge?: InfraConfigModuleEdge | null; } -export type UpdateSessionsModulePayloadSelect = { +export type UpdateInfraConfigModulePayloadSelect = { clientMutationId?: boolean; - sessionsModule?: { - select: SessionsModuleSelect; + infraConfigModule?: { + select: InfraConfigModuleSelect; }; - sessionsModuleEdge?: { - select: SessionsModuleEdgeSelect; + infraConfigModuleEdge?: { + select: InfraConfigModuleEdgeSelect; }; }; -export interface DeleteSessionsModulePayload { +export interface DeleteInfraConfigModulePayload { clientMutationId?: string | null; - /** The `SessionsModule` that was deleted by this mutation. */ - sessionsModule?: SessionsModule | null; - sessionsModuleEdge?: SessionsModuleEdge | null; + /** The `InfraConfigModule` that was deleted by this mutation. */ + infraConfigModule?: InfraConfigModule | null; + infraConfigModuleEdge?: InfraConfigModuleEdge | null; } -export type DeleteSessionsModulePayloadSelect = { +export type DeleteInfraConfigModulePayloadSelect = { clientMutationId?: boolean; - sessionsModule?: { - select: SessionsModuleSelect; + infraConfigModule?: { + select: InfraConfigModuleSelect; }; - sessionsModuleEdge?: { - select: SessionsModuleEdgeSelect; + infraConfigModuleEdge?: { + select: InfraConfigModuleEdgeSelect; }; }; -export interface CreateSecureTableProvisionPayload { +export interface CreateWebauthnAuthModulePayload { clientMutationId?: string | null; - /** The `SecureTableProvision` that was created by this mutation. */ - secureTableProvision?: SecureTableProvision | null; - secureTableProvisionEdge?: SecureTableProvisionEdge | null; + /** The `WebauthnAuthModule` that was created by this mutation. */ + webauthnAuthModule?: WebauthnAuthModule | null; + webauthnAuthModuleEdge?: WebauthnAuthModuleEdge | null; } -export type CreateSecureTableProvisionPayloadSelect = { +export type CreateWebauthnAuthModulePayloadSelect = { clientMutationId?: boolean; - secureTableProvision?: { - select: SecureTableProvisionSelect; + webauthnAuthModule?: { + select: WebauthnAuthModuleSelect; }; - secureTableProvisionEdge?: { - select: SecureTableProvisionEdgeSelect; + webauthnAuthModuleEdge?: { + select: WebauthnAuthModuleEdgeSelect; }; }; -export interface UpdateSecureTableProvisionPayload { +export interface UpdateWebauthnAuthModulePayload { clientMutationId?: string | null; - /** The `SecureTableProvision` that was updated by this mutation. */ - secureTableProvision?: SecureTableProvision | null; - secureTableProvisionEdge?: SecureTableProvisionEdge | null; + /** The `WebauthnAuthModule` that was updated by this mutation. */ + webauthnAuthModule?: WebauthnAuthModule | null; + webauthnAuthModuleEdge?: WebauthnAuthModuleEdge | null; } -export type UpdateSecureTableProvisionPayloadSelect = { +export type UpdateWebauthnAuthModulePayloadSelect = { clientMutationId?: boolean; - secureTableProvision?: { - select: SecureTableProvisionSelect; + webauthnAuthModule?: { + select: WebauthnAuthModuleSelect; }; - secureTableProvisionEdge?: { - select: SecureTableProvisionEdgeSelect; + webauthnAuthModuleEdge?: { + select: WebauthnAuthModuleEdgeSelect; }; }; -export interface DeleteSecureTableProvisionPayload { +export interface DeleteWebauthnAuthModulePayload { clientMutationId?: string | null; - /** The `SecureTableProvision` that was deleted by this mutation. */ - secureTableProvision?: SecureTableProvision | null; - secureTableProvisionEdge?: SecureTableProvisionEdge | null; + /** The `WebauthnAuthModule` that was deleted by this mutation. */ + webauthnAuthModule?: WebauthnAuthModule | null; + webauthnAuthModuleEdge?: WebauthnAuthModuleEdge | null; } -export type DeleteSecureTableProvisionPayloadSelect = { +export type DeleteWebauthnAuthModulePayloadSelect = { clientMutationId?: boolean; - secureTableProvision?: { - select: SecureTableProvisionSelect; + webauthnAuthModule?: { + select: WebauthnAuthModuleSelect; }; - secureTableProvisionEdge?: { - select: SecureTableProvisionEdgeSelect; + webauthnAuthModuleEdge?: { + select: WebauthnAuthModuleEdgeSelect; }; }; -export interface CreateDatabaseProvisionModulePayload { +export interface CreatePrincipalAuthModulePayload { clientMutationId?: string | null; - /** The `DatabaseProvisionModule` that was created by this mutation. */ - databaseProvisionModule?: DatabaseProvisionModule | null; - databaseProvisionModuleEdge?: DatabaseProvisionModuleEdge | null; + /** The `PrincipalAuthModule` that was created by this mutation. */ + principalAuthModule?: PrincipalAuthModule | null; + principalAuthModuleEdge?: PrincipalAuthModuleEdge | null; } -export type CreateDatabaseProvisionModulePayloadSelect = { +export type CreatePrincipalAuthModulePayloadSelect = { clientMutationId?: boolean; - databaseProvisionModule?: { - select: DatabaseProvisionModuleSelect; + principalAuthModule?: { + select: PrincipalAuthModuleSelect; }; - databaseProvisionModuleEdge?: { - select: DatabaseProvisionModuleEdgeSelect; + principalAuthModuleEdge?: { + select: PrincipalAuthModuleEdgeSelect; }; }; -export interface UpdateDatabaseProvisionModulePayload { +export interface UpdatePrincipalAuthModulePayload { clientMutationId?: string | null; - /** The `DatabaseProvisionModule` that was updated by this mutation. */ - databaseProvisionModule?: DatabaseProvisionModule | null; - databaseProvisionModuleEdge?: DatabaseProvisionModuleEdge | null; + /** The `PrincipalAuthModule` that was updated by this mutation. */ + principalAuthModule?: PrincipalAuthModule | null; + principalAuthModuleEdge?: PrincipalAuthModuleEdge | null; } -export type UpdateDatabaseProvisionModulePayloadSelect = { +export type UpdatePrincipalAuthModulePayloadSelect = { clientMutationId?: boolean; - databaseProvisionModule?: { - select: DatabaseProvisionModuleSelect; + principalAuthModule?: { + select: PrincipalAuthModuleSelect; }; - databaseProvisionModuleEdge?: { - select: DatabaseProvisionModuleEdgeSelect; + principalAuthModuleEdge?: { + select: PrincipalAuthModuleEdgeSelect; }; }; -export interface DeleteDatabaseProvisionModulePayload { +export interface DeletePrincipalAuthModulePayload { clientMutationId?: string | null; - /** The `DatabaseProvisionModule` that was deleted by this mutation. */ - databaseProvisionModule?: DatabaseProvisionModule | null; - databaseProvisionModuleEdge?: DatabaseProvisionModuleEdge | null; + /** The `PrincipalAuthModule` that was deleted by this mutation. */ + principalAuthModule?: PrincipalAuthModule | null; + principalAuthModuleEdge?: PrincipalAuthModuleEdge | null; } -export type DeleteDatabaseProvisionModulePayloadSelect = { +export type DeletePrincipalAuthModulePayloadSelect = { clientMutationId?: boolean; - databaseProvisionModule?: { - select: DatabaseProvisionModuleSelect; + principalAuthModule?: { + select: PrincipalAuthModuleSelect; }; - databaseProvisionModuleEdge?: { - select: DatabaseProvisionModuleEdgeSelect; + principalAuthModuleEdge?: { + select: PrincipalAuthModuleEdgeSelect; }; }; -export interface CreateConfigSecretsModulePayload { +export interface CreateDbPoolPayload { clientMutationId?: string | null; - /** The `ConfigSecretsModule` that was created by this mutation. */ - configSecretsModule?: ConfigSecretsModule | null; - configSecretsModuleEdge?: ConfigSecretsModuleEdge | null; + /** The `DbPool` that was created by this mutation. */ + dbPool?: DbPool | null; + dbPoolEdge?: DbPoolEdge | null; } -export type CreateConfigSecretsModulePayloadSelect = { +export type CreateDbPoolPayloadSelect = { clientMutationId?: boolean; - configSecretsModule?: { - select: ConfigSecretsModuleSelect; + dbPool?: { + select: DbPoolSelect; }; - configSecretsModuleEdge?: { - select: ConfigSecretsModuleEdgeSelect; + dbPoolEdge?: { + select: DbPoolEdgeSelect; }; }; -export interface UpdateConfigSecretsModulePayload { +export interface UpdateDbPoolPayload { clientMutationId?: string | null; - /** The `ConfigSecretsModule` that was updated by this mutation. */ - configSecretsModule?: ConfigSecretsModule | null; - configSecretsModuleEdge?: ConfigSecretsModuleEdge | null; + /** The `DbPool` that was updated by this mutation. */ + dbPool?: DbPool | null; + dbPoolEdge?: DbPoolEdge | null; } -export type UpdateConfigSecretsModulePayloadSelect = { +export type UpdateDbPoolPayloadSelect = { clientMutationId?: boolean; - configSecretsModule?: { - select: ConfigSecretsModuleSelect; + dbPool?: { + select: DbPoolSelect; }; - configSecretsModuleEdge?: { - select: ConfigSecretsModuleEdgeSelect; + dbPoolEdge?: { + select: DbPoolEdgeSelect; }; }; -export interface DeleteConfigSecretsModulePayload { +export interface DeleteDbPoolPayload { clientMutationId?: string | null; - /** The `ConfigSecretsModule` that was deleted by this mutation. */ - configSecretsModule?: ConfigSecretsModule | null; - configSecretsModuleEdge?: ConfigSecretsModuleEdge | null; + /** The `DbPool` that was deleted by this mutation. */ + dbPool?: DbPool | null; + dbPoolEdge?: DbPoolEdge | null; } -export type DeleteConfigSecretsModulePayloadSelect = { +export type DeleteDbPoolPayloadSelect = { clientMutationId?: boolean; - configSecretsModule?: { - select: ConfigSecretsModuleSelect; + dbPool?: { + select: DbPoolSelect; }; - configSecretsModuleEdge?: { - select: ConfigSecretsModuleEdgeSelect; + dbPoolEdge?: { + select: DbPoolEdgeSelect; }; }; -export interface CreateGraphModulePayload { +export interface CreateFunctionModulePayload { clientMutationId?: string | null; - /** The `GraphModule` that was created by this mutation. */ - graphModule?: GraphModule | null; - graphModuleEdge?: GraphModuleEdge | null; + /** The `FunctionModule` that was created by this mutation. */ + functionModule?: FunctionModule | null; + functionModuleEdge?: FunctionModuleEdge | null; } -export type CreateGraphModulePayloadSelect = { +export type CreateFunctionModulePayloadSelect = { clientMutationId?: boolean; - graphModule?: { - select: GraphModuleSelect; + functionModule?: { + select: FunctionModuleSelect; }; - graphModuleEdge?: { - select: GraphModuleEdgeSelect; + functionModuleEdge?: { + select: FunctionModuleEdgeSelect; }; }; -export interface UpdateGraphModulePayload { +export interface UpdateFunctionModulePayload { clientMutationId?: string | null; - /** The `GraphModule` that was updated by this mutation. */ - graphModule?: GraphModule | null; - graphModuleEdge?: GraphModuleEdge | null; + /** The `FunctionModule` that was updated by this mutation. */ + functionModule?: FunctionModule | null; + functionModuleEdge?: FunctionModuleEdge | null; } -export type UpdateGraphModulePayloadSelect = { +export type UpdateFunctionModulePayloadSelect = { clientMutationId?: boolean; - graphModule?: { - select: GraphModuleSelect; + functionModule?: { + select: FunctionModuleSelect; }; - graphModuleEdge?: { - select: GraphModuleEdgeSelect; + functionModuleEdge?: { + select: FunctionModuleEdgeSelect; }; }; -export interface DeleteGraphModulePayload { +export interface DeleteFunctionModulePayload { clientMutationId?: string | null; - /** The `GraphModule` that was deleted by this mutation. */ - graphModule?: GraphModule | null; - graphModuleEdge?: GraphModuleEdge | null; + /** The `FunctionModule` that was deleted by this mutation. */ + functionModule?: FunctionModule | null; + functionModuleEdge?: FunctionModuleEdge | null; } -export type DeleteGraphModulePayloadSelect = { +export type DeleteFunctionModulePayloadSelect = { clientMutationId?: boolean; - graphModule?: { - select: GraphModuleSelect; + functionModule?: { + select: FunctionModuleSelect; }; - graphModuleEdge?: { - select: GraphModuleEdgeSelect; + functionModuleEdge?: { + select: FunctionModuleEdgeSelect; }; }; export interface CreateMerkleStoreModulePayload { @@ -14852,139 +16569,49 @@ export type DeleteMerkleStoreModulePayloadSelect = { select: MerkleStoreModuleEdgeSelect; }; }; -export interface CreateRateLimitMetersModulePayload { - clientMutationId?: string | null; - /** The `RateLimitMetersModule` that was created by this mutation. */ - rateLimitMetersModule?: RateLimitMetersModule | null; - rateLimitMetersModuleEdge?: RateLimitMetersModuleEdge | null; -} -export type CreateRateLimitMetersModulePayloadSelect = { - clientMutationId?: boolean; - rateLimitMetersModule?: { - select: RateLimitMetersModuleSelect; - }; - rateLimitMetersModuleEdge?: { - select: RateLimitMetersModuleEdgeSelect; - }; -}; -export interface UpdateRateLimitMetersModulePayload { - clientMutationId?: string | null; - /** The `RateLimitMetersModule` that was updated by this mutation. */ - rateLimitMetersModule?: RateLimitMetersModule | null; - rateLimitMetersModuleEdge?: RateLimitMetersModuleEdge | null; -} -export type UpdateRateLimitMetersModulePayloadSelect = { - clientMutationId?: boolean; - rateLimitMetersModule?: { - select: RateLimitMetersModuleSelect; - }; - rateLimitMetersModuleEdge?: { - select: RateLimitMetersModuleEdgeSelect; - }; -}; -export interface DeleteRateLimitMetersModulePayload { - clientMutationId?: string | null; - /** The `RateLimitMetersModule` that was deleted by this mutation. */ - rateLimitMetersModule?: RateLimitMetersModule | null; - rateLimitMetersModuleEdge?: RateLimitMetersModuleEdge | null; -} -export type DeleteRateLimitMetersModulePayloadSelect = { - clientMutationId?: boolean; - rateLimitMetersModule?: { - select: RateLimitMetersModuleSelect; - }; - rateLimitMetersModuleEdge?: { - select: RateLimitMetersModuleEdgeSelect; - }; -}; -export interface CreateRealtimeModulePayload { - clientMutationId?: string | null; - /** The `RealtimeModule` that was created by this mutation. */ - realtimeModule?: RealtimeModule | null; - realtimeModuleEdge?: RealtimeModuleEdge | null; -} -export type CreateRealtimeModulePayloadSelect = { - clientMutationId?: boolean; - realtimeModule?: { - select: RealtimeModuleSelect; - }; - realtimeModuleEdge?: { - select: RealtimeModuleEdgeSelect; - }; -}; -export interface UpdateRealtimeModulePayload { - clientMutationId?: string | null; - /** The `RealtimeModule` that was updated by this mutation. */ - realtimeModule?: RealtimeModule | null; - realtimeModuleEdge?: RealtimeModuleEdge | null; -} -export type UpdateRealtimeModulePayloadSelect = { - clientMutationId?: boolean; - realtimeModule?: { - select: RealtimeModuleSelect; - }; - realtimeModuleEdge?: { - select: RealtimeModuleEdgeSelect; - }; -}; -export interface DeleteRealtimeModulePayload { - clientMutationId?: string | null; - /** The `RealtimeModule` that was deleted by this mutation. */ - realtimeModule?: RealtimeModule | null; - realtimeModuleEdge?: RealtimeModuleEdge | null; -} -export type DeleteRealtimeModulePayloadSelect = { - clientMutationId?: boolean; - realtimeModule?: { - select: RealtimeModuleSelect; - }; - realtimeModuleEdge?: { - select: RealtimeModuleEdgeSelect; - }; -}; -export interface CreateWebauthnAuthModulePayload { +export interface CreateDatabaseProvisionModulePayload { clientMutationId?: string | null; - /** The `WebauthnAuthModule` that was created by this mutation. */ - webauthnAuthModule?: WebauthnAuthModule | null; - webauthnAuthModuleEdge?: WebauthnAuthModuleEdge | null; + /** The `DatabaseProvisionModule` that was created by this mutation. */ + databaseProvisionModule?: DatabaseProvisionModule | null; + databaseProvisionModuleEdge?: DatabaseProvisionModuleEdge | null; } -export type CreateWebauthnAuthModulePayloadSelect = { +export type CreateDatabaseProvisionModulePayloadSelect = { clientMutationId?: boolean; - webauthnAuthModule?: { - select: WebauthnAuthModuleSelect; + databaseProvisionModule?: { + select: DatabaseProvisionModuleSelect; }; - webauthnAuthModuleEdge?: { - select: WebauthnAuthModuleEdgeSelect; + databaseProvisionModuleEdge?: { + select: DatabaseProvisionModuleEdgeSelect; }; }; -export interface UpdateWebauthnAuthModulePayload { +export interface UpdateDatabaseProvisionModulePayload { clientMutationId?: string | null; - /** The `WebauthnAuthModule` that was updated by this mutation. */ - webauthnAuthModule?: WebauthnAuthModule | null; - webauthnAuthModuleEdge?: WebauthnAuthModuleEdge | null; + /** The `DatabaseProvisionModule` that was updated by this mutation. */ + databaseProvisionModule?: DatabaseProvisionModule | null; + databaseProvisionModuleEdge?: DatabaseProvisionModuleEdge | null; } -export type UpdateWebauthnAuthModulePayloadSelect = { +export type UpdateDatabaseProvisionModulePayloadSelect = { clientMutationId?: boolean; - webauthnAuthModule?: { - select: WebauthnAuthModuleSelect; + databaseProvisionModule?: { + select: DatabaseProvisionModuleSelect; }; - webauthnAuthModuleEdge?: { - select: WebauthnAuthModuleEdgeSelect; + databaseProvisionModuleEdge?: { + select: DatabaseProvisionModuleEdgeSelect; }; }; -export interface DeleteWebauthnAuthModulePayload { +export interface DeleteDatabaseProvisionModulePayload { clientMutationId?: string | null; - /** The `WebauthnAuthModule` that was deleted by this mutation. */ - webauthnAuthModule?: WebauthnAuthModule | null; - webauthnAuthModuleEdge?: WebauthnAuthModuleEdge | null; + /** The `DatabaseProvisionModule` that was deleted by this mutation. */ + databaseProvisionModule?: DatabaseProvisionModule | null; + databaseProvisionModuleEdge?: DatabaseProvisionModuleEdge | null; } -export type DeleteWebauthnAuthModulePayloadSelect = { +export type DeleteDatabaseProvisionModulePayloadSelect = { clientMutationId?: boolean; - webauthnAuthModule?: { - select: WebauthnAuthModuleSelect; + databaseProvisionModule?: { + select: DatabaseProvisionModuleSelect; }; - webauthnAuthModuleEdge?: { - select: WebauthnAuthModuleEdgeSelect; + databaseProvisionModuleEdge?: { + select: DatabaseProvisionModuleEdgeSelect; }; }; export interface CreateFunctionInvocationModulePayload { @@ -15032,51 +16659,6 @@ export type DeleteFunctionInvocationModulePayloadSelect = { select: FunctionInvocationModuleEdgeSelect; }; }; -export interface CreateFunctionModulePayload { - clientMutationId?: string | null; - /** The `FunctionModule` that was created by this mutation. */ - functionModule?: FunctionModule | null; - functionModuleEdge?: FunctionModuleEdge | null; -} -export type CreateFunctionModulePayloadSelect = { - clientMutationId?: boolean; - functionModule?: { - select: FunctionModuleSelect; - }; - functionModuleEdge?: { - select: FunctionModuleEdgeSelect; - }; -}; -export interface UpdateFunctionModulePayload { - clientMutationId?: string | null; - /** The `FunctionModule` that was updated by this mutation. */ - functionModule?: FunctionModule | null; - functionModuleEdge?: FunctionModuleEdge | null; -} -export type UpdateFunctionModulePayloadSelect = { - clientMutationId?: boolean; - functionModule?: { - select: FunctionModuleSelect; - }; - functionModuleEdge?: { - select: FunctionModuleEdgeSelect; - }; -}; -export interface DeleteFunctionModulePayload { - clientMutationId?: string | null; - /** The `FunctionModule` that was deleted by this mutation. */ - functionModule?: FunctionModule | null; - functionModuleEdge?: FunctionModuleEdge | null; -} -export type DeleteFunctionModulePayloadSelect = { - clientMutationId?: boolean; - functionModule?: { - select: FunctionModuleSelect; - }; - functionModuleEdge?: { - select: FunctionModuleEdgeSelect; - }; -}; export interface CreateInvitesModulePayload { clientMutationId?: string | null; /** The `InvitesModule` that was created by this mutation. */ @@ -15122,49 +16704,94 @@ export type DeleteInvitesModulePayloadSelect = { select: InvitesModuleEdgeSelect; }; }; -export interface CreatePrincipalAuthModulePayload { +export interface CreateNamespaceModulePayload { clientMutationId?: string | null; - /** The `PrincipalAuthModule` that was created by this mutation. */ - principalAuthModule?: PrincipalAuthModule | null; - principalAuthModuleEdge?: PrincipalAuthModuleEdge | null; + /** The `NamespaceModule` that was created by this mutation. */ + namespaceModule?: NamespaceModule | null; + namespaceModuleEdge?: NamespaceModuleEdge | null; } -export type CreatePrincipalAuthModulePayloadSelect = { +export type CreateNamespaceModulePayloadSelect = { clientMutationId?: boolean; - principalAuthModule?: { - select: PrincipalAuthModuleSelect; + namespaceModule?: { + select: NamespaceModuleSelect; }; - principalAuthModuleEdge?: { - select: PrincipalAuthModuleEdgeSelect; + namespaceModuleEdge?: { + select: NamespaceModuleEdgeSelect; }; }; -export interface UpdatePrincipalAuthModulePayload { +export interface UpdateNamespaceModulePayload { + clientMutationId?: string | null; + /** The `NamespaceModule` that was updated by this mutation. */ + namespaceModule?: NamespaceModule | null; + namespaceModuleEdge?: NamespaceModuleEdge | null; +} +export type UpdateNamespaceModulePayloadSelect = { + clientMutationId?: boolean; + namespaceModule?: { + select: NamespaceModuleSelect; + }; + namespaceModuleEdge?: { + select: NamespaceModuleEdgeSelect; + }; +}; +export interface DeleteNamespaceModulePayload { + clientMutationId?: string | null; + /** The `NamespaceModule` that was deleted by this mutation. */ + namespaceModule?: NamespaceModule | null; + namespaceModuleEdge?: NamespaceModuleEdge | null; +} +export type DeleteNamespaceModulePayloadSelect = { + clientMutationId?: boolean; + namespaceModule?: { + select: NamespaceModuleSelect; + }; + namespaceModuleEdge?: { + select: NamespaceModuleEdgeSelect; + }; +}; +export interface CreatePlansModulePayload { + clientMutationId?: string | null; + /** The `PlansModule` that was created by this mutation. */ + plansModule?: PlansModule | null; + plansModuleEdge?: PlansModuleEdge | null; +} +export type CreatePlansModulePayloadSelect = { + clientMutationId?: boolean; + plansModule?: { + select: PlansModuleSelect; + }; + plansModuleEdge?: { + select: PlansModuleEdgeSelect; + }; +}; +export interface UpdatePlansModulePayload { clientMutationId?: string | null; - /** The `PrincipalAuthModule` that was updated by this mutation. */ - principalAuthModule?: PrincipalAuthModule | null; - principalAuthModuleEdge?: PrincipalAuthModuleEdge | null; + /** The `PlansModule` that was updated by this mutation. */ + plansModule?: PlansModule | null; + plansModuleEdge?: PlansModuleEdge | null; } -export type UpdatePrincipalAuthModulePayloadSelect = { +export type UpdatePlansModulePayloadSelect = { clientMutationId?: boolean; - principalAuthModule?: { - select: PrincipalAuthModuleSelect; + plansModule?: { + select: PlansModuleSelect; }; - principalAuthModuleEdge?: { - select: PrincipalAuthModuleEdgeSelect; + plansModuleEdge?: { + select: PlansModuleEdgeSelect; }; }; -export interface DeletePrincipalAuthModulePayload { +export interface DeletePlansModulePayload { clientMutationId?: string | null; - /** The `PrincipalAuthModule` that was deleted by this mutation. */ - principalAuthModule?: PrincipalAuthModule | null; - principalAuthModuleEdge?: PrincipalAuthModuleEdge | null; + /** The `PlansModule` that was deleted by this mutation. */ + plansModule?: PlansModule | null; + plansModuleEdge?: PlansModuleEdge | null; } -export type DeletePrincipalAuthModulePayloadSelect = { +export type DeletePlansModulePayloadSelect = { clientMutationId?: boolean; - principalAuthModule?: { - select: PrincipalAuthModuleSelect; + plansModule?: { + select: PlansModuleSelect; }; - principalAuthModuleEdge?: { - select: PrincipalAuthModuleEdgeSelect; + plansModuleEdge?: { + select: PlansModuleEdgeSelect; }; }; export interface CreateComputeLogModulePayload { @@ -15257,96 +16884,6 @@ export type DeleteInferenceLogModulePayloadSelect = { select: InferenceLogModuleEdgeSelect; }; }; -export interface CreateNamespaceModulePayload { - clientMutationId?: string | null; - /** The `NamespaceModule` that was created by this mutation. */ - namespaceModule?: NamespaceModule | null; - namespaceModuleEdge?: NamespaceModuleEdge | null; -} -export type CreateNamespaceModulePayloadSelect = { - clientMutationId?: boolean; - namespaceModule?: { - select: NamespaceModuleSelect; - }; - namespaceModuleEdge?: { - select: NamespaceModuleEdgeSelect; - }; -}; -export interface UpdateNamespaceModulePayload { - clientMutationId?: string | null; - /** The `NamespaceModule` that was updated by this mutation. */ - namespaceModule?: NamespaceModule | null; - namespaceModuleEdge?: NamespaceModuleEdge | null; -} -export type UpdateNamespaceModulePayloadSelect = { - clientMutationId?: boolean; - namespaceModule?: { - select: NamespaceModuleSelect; - }; - namespaceModuleEdge?: { - select: NamespaceModuleEdgeSelect; - }; -}; -export interface DeleteNamespaceModulePayload { - clientMutationId?: string | null; - /** The `NamespaceModule` that was deleted by this mutation. */ - namespaceModule?: NamespaceModule | null; - namespaceModuleEdge?: NamespaceModuleEdge | null; -} -export type DeleteNamespaceModulePayloadSelect = { - clientMutationId?: boolean; - namespaceModule?: { - select: NamespaceModuleSelect; - }; - namespaceModuleEdge?: { - select: NamespaceModuleEdgeSelect; - }; -}; -export interface CreateResourceModulePayload { - clientMutationId?: string | null; - /** The `ResourceModule` that was created by this mutation. */ - resourceModule?: ResourceModule | null; - resourceModuleEdge?: ResourceModuleEdge | null; -} -export type CreateResourceModulePayloadSelect = { - clientMutationId?: boolean; - resourceModule?: { - select: ResourceModuleSelect; - }; - resourceModuleEdge?: { - select: ResourceModuleEdgeSelect; - }; -}; -export interface UpdateResourceModulePayload { - clientMutationId?: string | null; - /** The `ResourceModule` that was updated by this mutation. */ - resourceModule?: ResourceModule | null; - resourceModuleEdge?: ResourceModuleEdge | null; -} -export type UpdateResourceModulePayloadSelect = { - clientMutationId?: boolean; - resourceModule?: { - select: ResourceModuleSelect; - }; - resourceModuleEdge?: { - select: ResourceModuleEdgeSelect; - }; -}; -export interface DeleteResourceModulePayload { - clientMutationId?: string | null; - /** The `ResourceModule` that was deleted by this mutation. */ - resourceModule?: ResourceModule | null; - resourceModuleEdge?: ResourceModuleEdge | null; -} -export type DeleteResourceModulePayloadSelect = { - clientMutationId?: boolean; - resourceModule?: { - select: ResourceModuleSelect; - }; - resourceModuleEdge?: { - select: ResourceModuleEdgeSelect; - }; -}; export interface CreateStorageLogModulePayload { clientMutationId?: string | null; /** The `StorageLogModule` that was created by this mutation. */ @@ -15437,96 +16974,6 @@ export type DeleteTransferLogModulePayloadSelect = { select: TransferLogModuleEdgeSelect; }; }; -export interface CreateFunctionDeploymentModulePayload { - clientMutationId?: string | null; - /** The `FunctionDeploymentModule` that was created by this mutation. */ - functionDeploymentModule?: FunctionDeploymentModule | null; - functionDeploymentModuleEdge?: FunctionDeploymentModuleEdge | null; -} -export type CreateFunctionDeploymentModulePayloadSelect = { - clientMutationId?: boolean; - functionDeploymentModule?: { - select: FunctionDeploymentModuleSelect; - }; - functionDeploymentModuleEdge?: { - select: FunctionDeploymentModuleEdgeSelect; - }; -}; -export interface UpdateFunctionDeploymentModulePayload { - clientMutationId?: string | null; - /** The `FunctionDeploymentModule` that was updated by this mutation. */ - functionDeploymentModule?: FunctionDeploymentModule | null; - functionDeploymentModuleEdge?: FunctionDeploymentModuleEdge | null; -} -export type UpdateFunctionDeploymentModulePayloadSelect = { - clientMutationId?: boolean; - functionDeploymentModule?: { - select: FunctionDeploymentModuleSelect; - }; - functionDeploymentModuleEdge?: { - select: FunctionDeploymentModuleEdgeSelect; - }; -}; -export interface DeleteFunctionDeploymentModulePayload { - clientMutationId?: string | null; - /** The `FunctionDeploymentModule` that was deleted by this mutation. */ - functionDeploymentModule?: FunctionDeploymentModule | null; - functionDeploymentModuleEdge?: FunctionDeploymentModuleEdge | null; -} -export type DeleteFunctionDeploymentModulePayloadSelect = { - clientMutationId?: boolean; - functionDeploymentModule?: { - select: FunctionDeploymentModuleSelect; - }; - functionDeploymentModuleEdge?: { - select: FunctionDeploymentModuleEdgeSelect; - }; -}; -export interface CreatePlansModulePayload { - clientMutationId?: string | null; - /** The `PlansModule` that was created by this mutation. */ - plansModule?: PlansModule | null; - plansModuleEdge?: PlansModuleEdge | null; -} -export type CreatePlansModulePayloadSelect = { - clientMutationId?: boolean; - plansModule?: { - select: PlansModuleSelect; - }; - plansModuleEdge?: { - select: PlansModuleEdgeSelect; - }; -}; -export interface UpdatePlansModulePayload { - clientMutationId?: string | null; - /** The `PlansModule` that was updated by this mutation. */ - plansModule?: PlansModule | null; - plansModuleEdge?: PlansModuleEdge | null; -} -export type UpdatePlansModulePayloadSelect = { - clientMutationId?: boolean; - plansModule?: { - select: PlansModuleSelect; - }; - plansModuleEdge?: { - select: PlansModuleEdgeSelect; - }; -}; -export interface DeletePlansModulePayload { - clientMutationId?: string | null; - /** The `PlansModule` that was deleted by this mutation. */ - plansModule?: PlansModule | null; - plansModuleEdge?: PlansModuleEdge | null; -} -export type DeletePlansModulePayloadSelect = { - clientMutationId?: boolean; - plansModule?: { - select: PlansModuleSelect; - }; - plansModuleEdge?: { - select: PlansModuleEdgeSelect; - }; -}; export interface CreateBillingProviderModulePayload { clientMutationId?: string | null; /** The `BillingProviderModule` that was created by this mutation. */ @@ -15563,58 +17010,103 @@ export interface DeleteBillingProviderModulePayload { billingProviderModule?: BillingProviderModule | null; billingProviderModuleEdge?: BillingProviderModuleEdge | null; } -export type DeleteBillingProviderModulePayloadSelect = { +export type DeleteBillingProviderModulePayloadSelect = { + clientMutationId?: boolean; + billingProviderModule?: { + select: BillingProviderModuleSelect; + }; + billingProviderModuleEdge?: { + select: BillingProviderModuleEdgeSelect; + }; +}; +export interface CreateFunctionDeploymentModulePayload { + clientMutationId?: string | null; + /** The `FunctionDeploymentModule` that was created by this mutation. */ + functionDeploymentModule?: FunctionDeploymentModule | null; + functionDeploymentModuleEdge?: FunctionDeploymentModuleEdge | null; +} +export type CreateFunctionDeploymentModulePayloadSelect = { + clientMutationId?: boolean; + functionDeploymentModule?: { + select: FunctionDeploymentModuleSelect; + }; + functionDeploymentModuleEdge?: { + select: FunctionDeploymentModuleEdgeSelect; + }; +}; +export interface UpdateFunctionDeploymentModulePayload { + clientMutationId?: string | null; + /** The `FunctionDeploymentModule` that was updated by this mutation. */ + functionDeploymentModule?: FunctionDeploymentModule | null; + functionDeploymentModuleEdge?: FunctionDeploymentModuleEdge | null; +} +export type UpdateFunctionDeploymentModulePayloadSelect = { + clientMutationId?: boolean; + functionDeploymentModule?: { + select: FunctionDeploymentModuleSelect; + }; + functionDeploymentModuleEdge?: { + select: FunctionDeploymentModuleEdgeSelect; + }; +}; +export interface DeleteFunctionDeploymentModulePayload { + clientMutationId?: string | null; + /** The `FunctionDeploymentModule` that was deleted by this mutation. */ + functionDeploymentModule?: FunctionDeploymentModule | null; + functionDeploymentModuleEdge?: FunctionDeploymentModuleEdge | null; +} +export type DeleteFunctionDeploymentModulePayloadSelect = { clientMutationId?: boolean; - billingProviderModule?: { - select: BillingProviderModuleSelect; + functionDeploymentModule?: { + select: FunctionDeploymentModuleSelect; }; - billingProviderModuleEdge?: { - select: BillingProviderModuleEdgeSelect; + functionDeploymentModuleEdge?: { + select: FunctionDeploymentModuleEdgeSelect; }; }; -export interface CreateDbUsageModulePayload { +export interface CreatePermissionsModulePayload { clientMutationId?: string | null; - /** The `DbUsageModule` that was created by this mutation. */ - dbUsageModule?: DbUsageModule | null; - dbUsageModuleEdge?: DbUsageModuleEdge | null; + /** The `PermissionsModule` that was created by this mutation. */ + permissionsModule?: PermissionsModule | null; + permissionsModuleEdge?: PermissionsModuleEdge | null; } -export type CreateDbUsageModulePayloadSelect = { +export type CreatePermissionsModulePayloadSelect = { clientMutationId?: boolean; - dbUsageModule?: { - select: DbUsageModuleSelect; + permissionsModule?: { + select: PermissionsModuleSelect; }; - dbUsageModuleEdge?: { - select: DbUsageModuleEdgeSelect; + permissionsModuleEdge?: { + select: PermissionsModuleEdgeSelect; }; }; -export interface UpdateDbUsageModulePayload { +export interface UpdatePermissionsModulePayload { clientMutationId?: string | null; - /** The `DbUsageModule` that was updated by this mutation. */ - dbUsageModule?: DbUsageModule | null; - dbUsageModuleEdge?: DbUsageModuleEdge | null; + /** The `PermissionsModule` that was updated by this mutation. */ + permissionsModule?: PermissionsModule | null; + permissionsModuleEdge?: PermissionsModuleEdge | null; } -export type UpdateDbUsageModulePayloadSelect = { +export type UpdatePermissionsModulePayloadSelect = { clientMutationId?: boolean; - dbUsageModule?: { - select: DbUsageModuleSelect; + permissionsModule?: { + select: PermissionsModuleSelect; }; - dbUsageModuleEdge?: { - select: DbUsageModuleEdgeSelect; + permissionsModuleEdge?: { + select: PermissionsModuleEdgeSelect; }; }; -export interface DeleteDbUsageModulePayload { +export interface DeletePermissionsModulePayload { clientMutationId?: string | null; - /** The `DbUsageModule` that was deleted by this mutation. */ - dbUsageModule?: DbUsageModule | null; - dbUsageModuleEdge?: DbUsageModuleEdge | null; + /** The `PermissionsModule` that was deleted by this mutation. */ + permissionsModule?: PermissionsModule | null; + permissionsModuleEdge?: PermissionsModuleEdge | null; } -export type DeleteDbUsageModulePayloadSelect = { +export type DeletePermissionsModulePayloadSelect = { clientMutationId?: boolean; - dbUsageModule?: { - select: DbUsageModuleSelect; + permissionsModule?: { + select: PermissionsModuleSelect; }; - dbUsageModuleEdge?: { - select: DbUsageModuleEdgeSelect; + permissionsModuleEdge?: { + select: PermissionsModuleEdgeSelect; }; }; export interface CreateGraphExecutionModulePayload { @@ -15707,51 +17199,6 @@ export type DeleteHierarchyModulePayloadSelect = { select: HierarchyModuleEdgeSelect; }; }; -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 CreateNotificationsModulePayload { clientMutationId?: string | null; /** The `NotificationsModule` that was created by this mutation. */ @@ -15797,6 +17244,51 @@ export type DeleteNotificationsModulePayloadSelect = { select: NotificationsModuleEdgeSelect; }; }; +export interface CreateRelationProvisionPayload { + clientMutationId?: string | null; + /** The `RelationProvision` that was created by this mutation. */ + relationProvision?: RelationProvision | null; + relationProvisionEdge?: RelationProvisionEdge | null; +} +export type CreateRelationProvisionPayloadSelect = { + clientMutationId?: boolean; + relationProvision?: { + select: RelationProvisionSelect; + }; + relationProvisionEdge?: { + select: RelationProvisionEdgeSelect; + }; +}; +export interface UpdateRelationProvisionPayload { + clientMutationId?: string | null; + /** The `RelationProvision` that was updated by this mutation. */ + relationProvision?: RelationProvision | null; + relationProvisionEdge?: RelationProvisionEdge | null; +} +export type UpdateRelationProvisionPayloadSelect = { + clientMutationId?: boolean; + relationProvision?: { + select: RelationProvisionSelect; + }; + relationProvisionEdge?: { + select: RelationProvisionEdgeSelect; + }; +}; +export interface DeleteRelationProvisionPayload { + clientMutationId?: string | null; + /** The `RelationProvision` that was deleted by this mutation. */ + relationProvision?: RelationProvision | null; + relationProvisionEdge?: RelationProvisionEdge | null; +} +export type DeleteRelationProvisionPayloadSelect = { + clientMutationId?: boolean; + relationProvision?: { + select: RelationProvisionSelect; + }; + relationProvisionEdge?: { + select: RelationProvisionEdgeSelect; + }; +}; export interface CreateProfilesModulePayload { clientMutationId?: string | null; /** The `ProfilesModule` that was created by this mutation. */ @@ -15887,49 +17379,49 @@ export type DeleteBillingModulePayloadSelect = { select: BillingModuleEdgeSelect; }; }; -export interface CreateRelationProvisionPayload { +export interface CreateResourceModulePayload { clientMutationId?: string | null; - /** The `RelationProvision` that was created by this mutation. */ - relationProvision?: RelationProvision | null; - relationProvisionEdge?: RelationProvisionEdge | null; + /** The `ResourceModule` that was created by this mutation. */ + resourceModule?: ResourceModule | null; + resourceModuleEdge?: ResourceModuleEdge | null; } -export type CreateRelationProvisionPayloadSelect = { +export type CreateResourceModulePayloadSelect = { clientMutationId?: boolean; - relationProvision?: { - select: RelationProvisionSelect; + resourceModule?: { + select: ResourceModuleSelect; }; - relationProvisionEdge?: { - select: RelationProvisionEdgeSelect; + resourceModuleEdge?: { + select: ResourceModuleEdgeSelect; }; }; -export interface UpdateRelationProvisionPayload { +export interface UpdateResourceModulePayload { clientMutationId?: string | null; - /** The `RelationProvision` that was updated by this mutation. */ - relationProvision?: RelationProvision | null; - relationProvisionEdge?: RelationProvisionEdge | null; + /** The `ResourceModule` that was updated by this mutation. */ + resourceModule?: ResourceModule | null; + resourceModuleEdge?: ResourceModuleEdge | null; } -export type UpdateRelationProvisionPayloadSelect = { +export type UpdateResourceModulePayloadSelect = { clientMutationId?: boolean; - relationProvision?: { - select: RelationProvisionSelect; + resourceModule?: { + select: ResourceModuleSelect; }; - relationProvisionEdge?: { - select: RelationProvisionEdgeSelect; + resourceModuleEdge?: { + select: ResourceModuleEdgeSelect; }; }; -export interface DeleteRelationProvisionPayload { +export interface DeleteResourceModulePayload { clientMutationId?: string | null; - /** The `RelationProvision` that was deleted by this mutation. */ - relationProvision?: RelationProvision | null; - relationProvisionEdge?: RelationProvisionEdge | null; + /** The `ResourceModule` that was deleted by this mutation. */ + resourceModule?: ResourceModule | null; + resourceModuleEdge?: ResourceModuleEdge | null; } -export type DeleteRelationProvisionPayloadSelect = { +export type DeleteResourceModulePayloadSelect = { clientMutationId?: boolean; - relationProvision?: { - select: RelationProvisionSelect; + resourceModule?: { + select: ResourceModuleSelect; }; - relationProvisionEdge?: { - select: RelationProvisionEdgeSelect; + resourceModuleEdge?: { + select: ResourceModuleEdgeSelect; }; }; export interface CreateUserAuthModulePayload { @@ -15943,38 +17435,83 @@ export type CreateUserAuthModulePayloadSelect = { userAuthModule?: { select: UserAuthModuleSelect; }; - userAuthModuleEdge?: { - select: UserAuthModuleEdgeSelect; + userAuthModuleEdge?: { + select: UserAuthModuleEdgeSelect; + }; +}; +export interface UpdateUserAuthModulePayload { + clientMutationId?: string | null; + /** The `UserAuthModule` that was updated by this mutation. */ + userAuthModule?: UserAuthModule | null; + userAuthModuleEdge?: UserAuthModuleEdge | null; +} +export type UpdateUserAuthModulePayloadSelect = { + clientMutationId?: boolean; + userAuthModule?: { + select: UserAuthModuleSelect; + }; + userAuthModuleEdge?: { + select: UserAuthModuleEdgeSelect; + }; +}; +export interface DeleteUserAuthModulePayload { + clientMutationId?: string | null; + /** The `UserAuthModule` that was deleted by this mutation. */ + userAuthModule?: UserAuthModule | null; + userAuthModuleEdge?: UserAuthModuleEdge | null; +} +export type DeleteUserAuthModulePayloadSelect = { + clientMutationId?: boolean; + userAuthModule?: { + select: UserAuthModuleSelect; + }; + userAuthModuleEdge?: { + select: UserAuthModuleEdgeSelect; + }; +}; +export interface CreateDbUsageModulePayload { + clientMutationId?: string | null; + /** The `DbUsageModule` that was created by this mutation. */ + dbUsageModule?: DbUsageModule | null; + dbUsageModuleEdge?: DbUsageModuleEdge | null; +} +export type CreateDbUsageModulePayloadSelect = { + clientMutationId?: boolean; + dbUsageModule?: { + select: DbUsageModuleSelect; + }; + dbUsageModuleEdge?: { + select: DbUsageModuleEdgeSelect; }; }; -export interface UpdateUserAuthModulePayload { +export interface UpdateDbUsageModulePayload { clientMutationId?: string | null; - /** The `UserAuthModule` that was updated by this mutation. */ - userAuthModule?: UserAuthModule | null; - userAuthModuleEdge?: UserAuthModuleEdge | null; + /** The `DbUsageModule` that was updated by this mutation. */ + dbUsageModule?: DbUsageModule | null; + dbUsageModuleEdge?: DbUsageModuleEdge | null; } -export type UpdateUserAuthModulePayloadSelect = { +export type UpdateDbUsageModulePayloadSelect = { clientMutationId?: boolean; - userAuthModule?: { - select: UserAuthModuleSelect; + dbUsageModule?: { + select: DbUsageModuleSelect; }; - userAuthModuleEdge?: { - select: UserAuthModuleEdgeSelect; + dbUsageModuleEdge?: { + select: DbUsageModuleEdgeSelect; }; }; -export interface DeleteUserAuthModulePayload { +export interface DeleteDbUsageModulePayload { clientMutationId?: string | null; - /** The `UserAuthModule` that was deleted by this mutation. */ - userAuthModule?: UserAuthModule | null; - userAuthModuleEdge?: UserAuthModuleEdge | null; + /** The `DbUsageModule` that was deleted by this mutation. */ + dbUsageModule?: DbUsageModule | null; + dbUsageModuleEdge?: DbUsageModuleEdge | null; } -export type DeleteUserAuthModulePayloadSelect = { +export type DeleteDbUsageModulePayloadSelect = { clientMutationId?: boolean; - userAuthModule?: { - select: UserAuthModuleSelect; + dbUsageModule?: { + select: DbUsageModuleSelect; }; - userAuthModuleEdge?: { - select: UserAuthModuleEdgeSelect; + dbUsageModuleEdge?: { + select: DbUsageModuleEdgeSelect; }; }; export interface CreateAgentModulePayload { @@ -16067,51 +17604,6 @@ export type DeleteLimitsModulePayloadSelect = { select: LimitsModuleEdgeSelect; }; }; -export interface CreateMembershipsModulePayload { - clientMutationId?: string | null; - /** The `MembershipsModule` that was created by this mutation. */ - membershipsModule?: MembershipsModule | null; - membershipsModuleEdge?: MembershipsModuleEdge | null; -} -export type CreateMembershipsModulePayloadSelect = { - clientMutationId?: boolean; - membershipsModule?: { - select: MembershipsModuleSelect; - }; - membershipsModuleEdge?: { - select: MembershipsModuleEdgeSelect; - }; -}; -export interface UpdateMembershipsModulePayload { - clientMutationId?: string | null; - /** The `MembershipsModule` that was updated by this mutation. */ - membershipsModule?: MembershipsModule | null; - membershipsModuleEdge?: MembershipsModuleEdge | null; -} -export type UpdateMembershipsModulePayloadSelect = { - clientMutationId?: boolean; - membershipsModule?: { - select: MembershipsModuleSelect; - }; - membershipsModuleEdge?: { - select: MembershipsModuleEdgeSelect; - }; -}; -export interface DeleteMembershipsModulePayload { - clientMutationId?: string | null; - /** The `MembershipsModule` that was deleted by this mutation. */ - membershipsModule?: MembershipsModule | null; - membershipsModuleEdge?: MembershipsModuleEdge | null; -} -export type DeleteMembershipsModulePayloadSelect = { - clientMutationId?: boolean; - membershipsModule?: { - select: MembershipsModuleSelect; - }; - membershipsModuleEdge?: { - select: MembershipsModuleEdgeSelect; - }; -}; export interface CreateEntityTypeProvisionPayload { clientMutationId?: string | null; /** The `EntityTypeProvision` that was created by this mutation. */ @@ -16202,6 +17694,51 @@ export type DeleteStorageModulePayloadSelect = { select: StorageModuleEdgeSelect; }; }; +export interface CreateMembershipsModulePayload { + clientMutationId?: string | null; + /** The `MembershipsModule` that was created by this mutation. */ + membershipsModule?: MembershipsModule | null; + membershipsModuleEdge?: MembershipsModuleEdge | null; +} +export type CreateMembershipsModulePayloadSelect = { + clientMutationId?: boolean; + membershipsModule?: { + select: MembershipsModuleSelect; + }; + membershipsModuleEdge?: { + select: MembershipsModuleEdgeSelect; + }; +}; +export interface UpdateMembershipsModulePayload { + clientMutationId?: string | null; + /** The `MembershipsModule` that was updated by this mutation. */ + membershipsModule?: MembershipsModule | null; + membershipsModuleEdge?: MembershipsModuleEdge | null; +} +export type UpdateMembershipsModulePayloadSelect = { + clientMutationId?: boolean; + membershipsModule?: { + select: MembershipsModuleSelect; + }; + membershipsModuleEdge?: { + select: MembershipsModuleEdgeSelect; + }; +}; +export interface DeleteMembershipsModulePayload { + clientMutationId?: string | null; + /** The `MembershipsModule` that was deleted by this mutation. */ + membershipsModule?: MembershipsModule | null; + membershipsModuleEdge?: MembershipsModuleEdge | null; +} +export type DeleteMembershipsModulePayloadSelect = { + clientMutationId?: boolean; + membershipsModule?: { + select: MembershipsModuleSelect; + }; + membershipsModuleEdge?: { + select: MembershipsModuleEdgeSelect; + }; +}; export interface CreateEventsModulePayload { clientMutationId?: string | null; /** The `EventsModule` that was created by this mutation. */ @@ -16291,18 +17828,6 @@ export type MembershipTypesModuleEdgeSelect = { select: MembershipTypesModuleSelect; }; }; -/** A `UserStateModule` edge in the connection. */ -export interface UserStateModuleEdge { - cursor?: string | null; - /** The `UserStateModule` at the end of the edge. */ - node?: UserStateModule | null; -} -export type UserStateModuleEdgeSelect = { - cursor?: boolean; - node?: { - select: UserStateModuleSelect; - }; -}; /** A `SessionSecretsModule` edge in the connection. */ export interface SessionSecretsModuleEdge { cursor?: string | null; @@ -16315,18 +17840,6 @@ export type SessionSecretsModuleEdgeSelect = { select: SessionSecretsModuleSelect; }; }; -/** A `ConfigSecretsOrgModule` edge in the connection. */ -export interface ConfigSecretsOrgModuleEdge { - cursor?: string | null; - /** The `ConfigSecretsOrgModule` at the end of the edge. */ - node?: ConfigSecretsOrgModule | null; -} -export type ConfigSecretsOrgModuleEdgeSelect = { - cursor?: boolean; - node?: { - select: ConfigSecretsOrgModuleSelect; - }; -}; /** A `DevicesModule` edge in the connection. */ export interface DevicesModuleEdge { cursor?: string | null; @@ -16351,18 +17864,6 @@ export type I18NModuleEdgeSelect = { select: I18NModuleSelect; }; }; -/** A `UserCredentialsModule` edge in the connection. */ -export interface UserCredentialsModuleEdge { - cursor?: string | null; - /** The `UserCredentialsModule` at the end of the edge. */ - node?: UserCredentialsModule | null; -} -export type UserCredentialsModuleEdgeSelect = { - cursor?: boolean; - node?: { - select: UserCredentialsModuleSelect; - }; -}; /** A `UserSettingsModule` edge in the connection. */ export interface UserSettingsModuleEdge { cursor?: string | null; @@ -16375,16 +17876,28 @@ export type UserSettingsModuleEdgeSelect = { select: UserSettingsModuleSelect; }; }; -/** A `ConfigSecretsUserModule` edge in the connection. */ -export interface ConfigSecretsUserModuleEdge { +/** A `UserStateModule` edge in the connection. */ +export interface UserStateModuleEdge { cursor?: string | null; - /** The `ConfigSecretsUserModule` at the end of the edge. */ - node?: ConfigSecretsUserModule | null; + /** The `UserStateModule` at the end of the edge. */ + node?: UserStateModule | null; } -export type ConfigSecretsUserModuleEdgeSelect = { +export type UserStateModuleEdgeSelect = { cursor?: boolean; node?: { - select: ConfigSecretsUserModuleSelect; + select: UserStateModuleSelect; + }; +}; +/** A `UserCredentialsModule` edge in the connection. */ +export interface UserCredentialsModuleEdge { + cursor?: string | null; + /** The `UserCredentialsModule` at the end of the edge. */ + node?: UserCredentialsModule | null; +} +export type UserCredentialsModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: UserCredentialsModuleSelect; }; }; /** A `ConnectedAccountsModule` edge in the connection. */ @@ -16459,6 +17972,18 @@ export type WebauthnCredentialsModuleEdgeSelect = { select: WebauthnCredentialsModuleSelect; }; }; +/** A `ConfigSecretsUserModule` edge in the connection. */ +export interface ConfigSecretsUserModuleEdge { + cursor?: string | null; + /** The `ConfigSecretsUserModule` at the end of the edge. */ + node?: ConfigSecretsUserModule | null; +} +export type ConfigSecretsUserModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: ConfigSecretsUserModuleSelect; + }; +}; /** A `CryptoAddressesModule` edge in the connection. */ export interface CryptoAddressesModuleEdge { cursor?: string | null; @@ -16483,18 +18008,6 @@ export type DenormalizedTableFieldEdgeSelect = { select: DenormalizedTableFieldSelect; }; }; -/** A `IdentityProvidersModule` edge in the connection. */ -export interface IdentityProvidersModuleEdge { - cursor?: string | null; - /** The `IdentityProvidersModule` at the end of the edge. */ - node?: IdentityProvidersModule | null; -} -export type IdentityProvidersModuleEdgeSelect = { - cursor?: boolean; - node?: { - select: IdentityProvidersModuleSelect; - }; -}; /** A `RlsModule` edge in the connection. */ export interface RlsModuleEdge { cursor?: string | null; @@ -16561,46 +18074,106 @@ export interface SessionsModuleEdge { /** The `SessionsModule` at the end of the edge. */ node?: SessionsModule | null; } -export type SessionsModuleEdgeSelect = { +export type SessionsModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: SessionsModuleSelect; + }; +}; +/** A `SecureTableProvision` edge in the connection. */ +export interface SecureTableProvisionEdge { + cursor?: string | null; + /** The `SecureTableProvision` at the end of the edge. */ + node?: SecureTableProvision | null; +} +export type SecureTableProvisionEdgeSelect = { + cursor?: boolean; + node?: { + select: SecureTableProvisionSelect; + }; +}; +/** A `IdentityProvidersModule` edge in the connection. */ +export interface IdentityProvidersModuleEdge { + cursor?: string | null; + /** The `IdentityProvidersModule` at the end of the edge. */ + node?: IdentityProvidersModule | null; +} +export type IdentityProvidersModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: IdentityProvidersModuleSelect; + }; +}; +/** A `IntegrationProvidersModule` edge in the connection. */ +export interface IntegrationProvidersModuleEdge { + cursor?: string | null; + /** The `IntegrationProvidersModule` at the end of the edge. */ + node?: IntegrationProvidersModule | null; +} +export type IntegrationProvidersModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: IntegrationProvidersModuleSelect; + }; +}; +/** A `DbPoolConfig` edge in the connection. */ +export interface DbPoolConfigEdge { + cursor?: string | null; + /** The `DbPoolConfig` at the end of the edge. */ + node?: DbPoolConfig | null; +} +export type DbPoolConfigEdgeSelect = { + cursor?: boolean; + node?: { + select: DbPoolConfigSelect; + }; +}; +/** A `RealtimeModule` edge in the connection. */ +export interface RealtimeModuleEdge { + cursor?: string | null; + /** The `RealtimeModule` at the end of the edge. */ + node?: RealtimeModule | null; +} +export type RealtimeModuleEdgeSelect = { cursor?: boolean; node?: { - select: SessionsModuleSelect; + select: RealtimeModuleSelect; }; }; -/** A `SecureTableProvision` edge in the connection. */ -export interface SecureTableProvisionEdge { +/** A `InfraSecretsModule` edge in the connection. */ +export interface InfraSecretsModuleEdge { cursor?: string | null; - /** The `SecureTableProvision` at the end of the edge. */ - node?: SecureTableProvision | null; + /** The `InfraSecretsModule` at the end of the edge. */ + node?: InfraSecretsModule | null; } -export type SecureTableProvisionEdgeSelect = { +export type InfraSecretsModuleEdgeSelect = { cursor?: boolean; node?: { - select: SecureTableProvisionSelect; + select: InfraSecretsModuleSelect; }; }; -/** A `DatabaseProvisionModule` edge in the connection. */ -export interface DatabaseProvisionModuleEdge { +/** A `InternalSecretsModule` edge in the connection. */ +export interface InternalSecretsModuleEdge { cursor?: string | null; - /** The `DatabaseProvisionModule` at the end of the edge. */ - node?: DatabaseProvisionModule | null; + /** The `InternalSecretsModule` at the end of the edge. */ + node?: InternalSecretsModule | null; } -export type DatabaseProvisionModuleEdgeSelect = { +export type InternalSecretsModuleEdgeSelect = { cursor?: boolean; node?: { - select: DatabaseProvisionModuleSelect; + select: InternalSecretsModuleSelect; }; }; -/** A `ConfigSecretsModule` edge in the connection. */ -export interface ConfigSecretsModuleEdge { +/** A `DbPresetModule` edge in the connection. */ +export interface DbPresetModuleEdge { cursor?: string | null; - /** The `ConfigSecretsModule` at the end of the edge. */ - node?: ConfigSecretsModule | null; + /** The `DbPresetModule` at the end of the edge. */ + node?: DbPresetModule | null; } -export type ConfigSecretsModuleEdgeSelect = { +export type DbPresetModuleEdgeSelect = { cursor?: boolean; node?: { - select: ConfigSecretsModuleSelect; + select: DbPresetModuleSelect; }; }; /** A `GraphModule` edge in the connection. */ @@ -16615,18 +18188,6 @@ export type GraphModuleEdgeSelect = { select: GraphModuleSelect; }; }; -/** A `MerkleStoreModule` edge in the connection. */ -export interface MerkleStoreModuleEdge { - cursor?: string | null; - /** The `MerkleStoreModule` at the end of the edge. */ - node?: MerkleStoreModule | null; -} -export type MerkleStoreModuleEdgeSelect = { - cursor?: boolean; - node?: { - select: MerkleStoreModuleSelect; - }; -}; /** A `RateLimitMetersModule` edge in the connection. */ export interface RateLimitMetersModuleEdge { cursor?: string | null; @@ -16639,16 +18200,16 @@ export type RateLimitMetersModuleEdgeSelect = { select: RateLimitMetersModuleSelect; }; }; -/** A `RealtimeModule` edge in the connection. */ -export interface RealtimeModuleEdge { +/** A `InfraConfigModule` edge in the connection. */ +export interface InfraConfigModuleEdge { cursor?: string | null; - /** The `RealtimeModule` at the end of the edge. */ - node?: RealtimeModule | null; + /** The `InfraConfigModule` at the end of the edge. */ + node?: InfraConfigModule | null; } -export type RealtimeModuleEdgeSelect = { +export type InfraConfigModuleEdgeSelect = { cursor?: boolean; node?: { - select: RealtimeModuleSelect; + select: InfraConfigModuleSelect; }; }; /** A `WebauthnAuthModule` edge in the connection. */ @@ -16663,16 +18224,28 @@ export type WebauthnAuthModuleEdgeSelect = { select: WebauthnAuthModuleSelect; }; }; -/** A `FunctionInvocationModule` edge in the connection. */ -export interface FunctionInvocationModuleEdge { +/** A `PrincipalAuthModule` edge in the connection. */ +export interface PrincipalAuthModuleEdge { cursor?: string | null; - /** The `FunctionInvocationModule` at the end of the edge. */ - node?: FunctionInvocationModule | null; + /** The `PrincipalAuthModule` at the end of the edge. */ + node?: PrincipalAuthModule | null; } -export type FunctionInvocationModuleEdgeSelect = { +export type PrincipalAuthModuleEdgeSelect = { cursor?: boolean; node?: { - select: FunctionInvocationModuleSelect; + select: PrincipalAuthModuleSelect; + }; +}; +/** A `DbPool` edge in the connection. */ +export interface DbPoolEdge { + cursor?: string | null; + /** The `DbPool` at the end of the edge. */ + node?: DbPool | null; +} +export type DbPoolEdgeSelect = { + cursor?: boolean; + node?: { + select: DbPoolSelect; }; }; /** A `FunctionModule` edge in the connection. */ @@ -16687,52 +18260,52 @@ export type FunctionModuleEdgeSelect = { select: FunctionModuleSelect; }; }; -/** A `InvitesModule` edge in the connection. */ -export interface InvitesModuleEdge { +/** A `MerkleStoreModule` edge in the connection. */ +export interface MerkleStoreModuleEdge { cursor?: string | null; - /** The `InvitesModule` at the end of the edge. */ - node?: InvitesModule | null; + /** The `MerkleStoreModule` at the end of the edge. */ + node?: MerkleStoreModule | null; } -export type InvitesModuleEdgeSelect = { +export type MerkleStoreModuleEdgeSelect = { cursor?: boolean; node?: { - select: InvitesModuleSelect; + select: MerkleStoreModuleSelect; }; }; -/** A `PrincipalAuthModule` edge in the connection. */ -export interface PrincipalAuthModuleEdge { +/** A `DatabaseProvisionModule` edge in the connection. */ +export interface DatabaseProvisionModuleEdge { cursor?: string | null; - /** The `PrincipalAuthModule` at the end of the edge. */ - node?: PrincipalAuthModule | null; + /** The `DatabaseProvisionModule` at the end of the edge. */ + node?: DatabaseProvisionModule | null; } -export type PrincipalAuthModuleEdgeSelect = { +export type DatabaseProvisionModuleEdgeSelect = { cursor?: boolean; node?: { - select: PrincipalAuthModuleSelect; + select: DatabaseProvisionModuleSelect; }; }; -/** A `ComputeLogModule` edge in the connection. */ -export interface ComputeLogModuleEdge { +/** A `FunctionInvocationModule` edge in the connection. */ +export interface FunctionInvocationModuleEdge { cursor?: string | null; - /** The `ComputeLogModule` at the end of the edge. */ - node?: ComputeLogModule | null; + /** The `FunctionInvocationModule` at the end of the edge. */ + node?: FunctionInvocationModule | null; } -export type ComputeLogModuleEdgeSelect = { +export type FunctionInvocationModuleEdgeSelect = { cursor?: boolean; node?: { - select: ComputeLogModuleSelect; + select: FunctionInvocationModuleSelect; }; }; -/** A `InferenceLogModule` edge in the connection. */ -export interface InferenceLogModuleEdge { +/** A `InvitesModule` edge in the connection. */ +export interface InvitesModuleEdge { cursor?: string | null; - /** The `InferenceLogModule` at the end of the edge. */ - node?: InferenceLogModule | null; + /** The `InvitesModule` at the end of the edge. */ + node?: InvitesModule | null; } -export type InferenceLogModuleEdgeSelect = { +export type InvitesModuleEdgeSelect = { cursor?: boolean; node?: { - select: InferenceLogModuleSelect; + select: InvitesModuleSelect; }; }; /** A `NamespaceModule` edge in the connection. */ @@ -16747,64 +18320,64 @@ export type NamespaceModuleEdgeSelect = { select: NamespaceModuleSelect; }; }; -/** A `ResourceModule` edge in the connection. */ -export interface ResourceModuleEdge { +/** A `PlansModule` edge in the connection. */ +export interface PlansModuleEdge { cursor?: string | null; - /** The `ResourceModule` at the end of the edge. */ - node?: ResourceModule | null; + /** The `PlansModule` at the end of the edge. */ + node?: PlansModule | null; } -export type ResourceModuleEdgeSelect = { +export type PlansModuleEdgeSelect = { cursor?: boolean; node?: { - select: ResourceModuleSelect; + select: PlansModuleSelect; }; }; -/** A `StorageLogModule` edge in the connection. */ -export interface StorageLogModuleEdge { +/** A `ComputeLogModule` edge in the connection. */ +export interface ComputeLogModuleEdge { cursor?: string | null; - /** The `StorageLogModule` at the end of the edge. */ - node?: StorageLogModule | null; + /** The `ComputeLogModule` at the end of the edge. */ + node?: ComputeLogModule | null; } -export type StorageLogModuleEdgeSelect = { +export type ComputeLogModuleEdgeSelect = { cursor?: boolean; node?: { - select: StorageLogModuleSelect; + select: ComputeLogModuleSelect; }; }; -/** A `TransferLogModule` edge in the connection. */ -export interface TransferLogModuleEdge { +/** A `InferenceLogModule` edge in the connection. */ +export interface InferenceLogModuleEdge { cursor?: string | null; - /** The `TransferLogModule` at the end of the edge. */ - node?: TransferLogModule | null; + /** The `InferenceLogModule` at the end of the edge. */ + node?: InferenceLogModule | null; } -export type TransferLogModuleEdgeSelect = { +export type InferenceLogModuleEdgeSelect = { cursor?: boolean; node?: { - select: TransferLogModuleSelect; + select: InferenceLogModuleSelect; }; }; -/** A `FunctionDeploymentModule` edge in the connection. */ -export interface FunctionDeploymentModuleEdge { +/** A `StorageLogModule` edge in the connection. */ +export interface StorageLogModuleEdge { cursor?: string | null; - /** The `FunctionDeploymentModule` at the end of the edge. */ - node?: FunctionDeploymentModule | null; + /** The `StorageLogModule` at the end of the edge. */ + node?: StorageLogModule | null; } -export type FunctionDeploymentModuleEdgeSelect = { +export type StorageLogModuleEdgeSelect = { cursor?: boolean; node?: { - select: FunctionDeploymentModuleSelect; + select: StorageLogModuleSelect; }; }; -/** A `PlansModule` edge in the connection. */ -export interface PlansModuleEdge { +/** A `TransferLogModule` edge in the connection. */ +export interface TransferLogModuleEdge { cursor?: string | null; - /** The `PlansModule` at the end of the edge. */ - node?: PlansModule | null; + /** The `TransferLogModule` at the end of the edge. */ + node?: TransferLogModule | null; } -export type PlansModuleEdgeSelect = { +export type TransferLogModuleEdgeSelect = { cursor?: boolean; node?: { - select: PlansModuleSelect; + select: TransferLogModuleSelect; }; }; /** A `BillingProviderModule` edge in the connection. */ @@ -16819,16 +18392,28 @@ export type BillingProviderModuleEdgeSelect = { select: BillingProviderModuleSelect; }; }; -/** A `DbUsageModule` edge in the connection. */ -export interface DbUsageModuleEdge { +/** A `FunctionDeploymentModule` edge in the connection. */ +export interface FunctionDeploymentModuleEdge { cursor?: string | null; - /** The `DbUsageModule` at the end of the edge. */ - node?: DbUsageModule | null; + /** The `FunctionDeploymentModule` at the end of the edge. */ + node?: FunctionDeploymentModule | null; } -export type DbUsageModuleEdgeSelect = { +export type FunctionDeploymentModuleEdgeSelect = { cursor?: boolean; node?: { - select: DbUsageModuleSelect; + select: FunctionDeploymentModuleSelect; + }; +}; +/** A `PermissionsModule` edge in the connection. */ +export interface PermissionsModuleEdge { + cursor?: string | null; + /** The `PermissionsModule` at the end of the edge. */ + node?: PermissionsModule | null; +} +export type PermissionsModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: PermissionsModuleSelect; }; }; /** A `GraphExecutionModule` edge in the connection. */ @@ -16855,18 +18440,6 @@ export type HierarchyModuleEdgeSelect = { select: HierarchyModuleSelect; }; }; -/** A `PermissionsModule` edge in the connection. */ -export interface PermissionsModuleEdge { - cursor?: string | null; - /** The `PermissionsModule` at the end of the edge. */ - node?: PermissionsModule | null; -} -export type PermissionsModuleEdgeSelect = { - cursor?: boolean; - node?: { - select: PermissionsModuleSelect; - }; -}; /** A `NotificationsModule` edge in the connection. */ export interface NotificationsModuleEdge { cursor?: string | null; @@ -16879,6 +18452,18 @@ export type NotificationsModuleEdgeSelect = { select: NotificationsModuleSelect; }; }; +/** A `RelationProvision` edge in the connection. */ +export interface RelationProvisionEdge { + cursor?: string | null; + /** The `RelationProvision` at the end of the edge. */ + node?: RelationProvision | null; +} +export type RelationProvisionEdgeSelect = { + cursor?: boolean; + node?: { + select: RelationProvisionSelect; + }; +}; /** A `ProfilesModule` edge in the connection. */ export interface ProfilesModuleEdge { cursor?: string | null; @@ -16903,16 +18488,16 @@ export type BillingModuleEdgeSelect = { select: BillingModuleSelect; }; }; -/** A `RelationProvision` edge in the connection. */ -export interface RelationProvisionEdge { +/** A `ResourceModule` edge in the connection. */ +export interface ResourceModuleEdge { cursor?: string | null; - /** The `RelationProvision` at the end of the edge. */ - node?: RelationProvision | null; + /** The `ResourceModule` at the end of the edge. */ + node?: ResourceModule | null; } -export type RelationProvisionEdgeSelect = { +export type ResourceModuleEdgeSelect = { cursor?: boolean; node?: { - select: RelationProvisionSelect; + select: ResourceModuleSelect; }; }; /** A `UserAuthModule` edge in the connection. */ @@ -16927,6 +18512,18 @@ export type UserAuthModuleEdgeSelect = { select: UserAuthModuleSelect; }; }; +/** A `DbUsageModule` edge in the connection. */ +export interface DbUsageModuleEdge { + cursor?: string | null; + /** The `DbUsageModule` at the end of the edge. */ + node?: DbUsageModule | null; +} +export type DbUsageModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: DbUsageModuleSelect; + }; +}; /** A `AgentModule` edge in the connection. */ export interface AgentModuleEdge { cursor?: string | null; @@ -16951,18 +18548,6 @@ export type LimitsModuleEdgeSelect = { select: LimitsModuleSelect; }; }; -/** A `MembershipsModule` edge in the connection. */ -export interface MembershipsModuleEdge { - cursor?: string | null; - /** The `MembershipsModule` at the end of the edge. */ - node?: MembershipsModule | null; -} -export type MembershipsModuleEdgeSelect = { - cursor?: boolean; - node?: { - select: MembershipsModuleSelect; - }; -}; /** A `EntityTypeProvision` edge in the connection. */ export interface EntityTypeProvisionEdge { cursor?: string | null; @@ -16987,6 +18572,18 @@ export type StorageModuleEdgeSelect = { select: StorageModuleSelect; }; }; +/** A `MembershipsModule` edge in the connection. */ +export interface MembershipsModuleEdge { + cursor?: string | null; + /** The `MembershipsModule` at the end of the edge. */ + node?: MembershipsModule | null; +} +export type MembershipsModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: MembershipsModuleSelect; + }; +}; /** A `EventsModule` edge in the connection. */ export interface EventsModuleEdge { cursor?: string | null; diff --git a/sdk/constructive-cli/src/modules/orm/models/configSecretsOrgModule.ts b/sdk/constructive-cli/src/modules/orm/models/configSecretsOrgModule.ts deleted file mode 100644 index 08969c552d..0000000000 --- a/sdk/constructive-cli/src/modules/orm/models/configSecretsOrgModule.ts +++ /dev/null @@ -1,247 +0,0 @@ -/** - * ConfigSecretsOrgModule model for ORM client - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { OrmClient } from '../client'; -import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, - buildCreateDocument, - buildUpdateByPkDocument, - buildDeleteByPkDocument, -} from '../query-builder'; -import type { - ConnectionResult, - FindManyArgs, - FindFirstArgs, - CreateArgs, - UpdateArgs, - DeleteArgs, - InferSelectResult, - StrictSelect, -} from '../select-types'; -import type { - ConfigSecretsOrgModule, - ConfigSecretsOrgModuleWithRelations, - ConfigSecretsOrgModuleSelect, - ConfigSecretsOrgModuleFilter, - ConfigSecretsOrgModuleOrderBy, - CreateConfigSecretsOrgModuleInput, - UpdateConfigSecretsOrgModuleInput, - ConfigSecretsOrgModulePatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class ConfigSecretsOrgModuleModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - configSecretsOrgModules: ConnectionResult< - InferSelectResult - >; - }> { - const { document, variables } = buildFindManyDocument( - 'ConfigSecretsOrgModule', - 'configSecretsOrgModules', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - first: args?.first, - last: args?.last, - after: args?.after, - before: args?.before, - offset: args?.offset, - }, - 'ConfigSecretsOrgModuleFilter', - 'ConfigSecretsOrgModuleOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'ConfigSecretsOrgModule', - fieldName: 'configSecretsOrgModules', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - configSecretsOrgModule: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'ConfigSecretsOrgModule', - 'configSecretsOrgModules', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'ConfigSecretsOrgModuleFilter', - 'ConfigSecretsOrgModuleOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'ConfigSecretsOrgModule', - fieldName: 'configSecretsOrgModule', - document, - variables, - transform: (data: { - configSecretsOrgModules?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - configSecretsOrgModule: data.configSecretsOrgModules?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - configSecretsOrgModule: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'ConfigSecretsOrgModule', - 'configSecretsOrgModules', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'ConfigSecretsOrgModuleFilter', - 'ConfigSecretsOrgModuleOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'ConfigSecretsOrgModule', - fieldName: 'configSecretsOrgModule', - document, - variables, - transform: (data: { - configSecretsOrgModules?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - configSecretsOrgModule: data.configSecretsOrgModules?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createConfigSecretsOrgModule: { - configSecretsOrgModule: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'ConfigSecretsOrgModule', - 'createConfigSecretsOrgModule', - 'configSecretsOrgModule', - args.select, - args.data, - 'CreateConfigSecretsOrgModuleInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'ConfigSecretsOrgModule', - fieldName: 'createConfigSecretsOrgModule', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - ConfigSecretsOrgModulePatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateConfigSecretsOrgModule: { - configSecretsOrgModule: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'ConfigSecretsOrgModule', - 'updateConfigSecretsOrgModule', - 'configSecretsOrgModule', - args.select, - args.where.id, - args.data, - 'UpdateConfigSecretsOrgModuleInput', - 'id', - 'configSecretsOrgModulePatch', - connectionFieldsMap, - undefined - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'ConfigSecretsOrgModule', - fieldName: 'updateConfigSecretsOrgModule', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteConfigSecretsOrgModule: { - configSecretsOrgModule: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'ConfigSecretsOrgModule', - 'deleteConfigSecretsOrgModule', - 'configSecretsOrgModule', - { - id: args.where.id, - }, - 'DeleteConfigSecretsOrgModuleInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'ConfigSecretsOrgModule', - fieldName: 'deleteConfigSecretsOrgModule', - document, - variables, - }); - } -} diff --git a/sdk/constructive-cli/src/modules/orm/models/dbPool.ts b/sdk/constructive-cli/src/modules/orm/models/dbPool.ts new file mode 100644 index 0000000000..32e26fe980 --- /dev/null +++ b/sdk/constructive-cli/src/modules/orm/models/dbPool.ts @@ -0,0 +1,245 @@ +/** + * DbPool model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + DbPool, + DbPoolWithRelations, + DbPoolSelect, + DbPoolFilter, + DbPoolOrderBy, + CreateDbPoolInput, + UpdateDbPoolInput, + DbPoolPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class DbPoolModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + dbPools: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'DbPool', + 'dbPools', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'DbPoolFilter', + 'DbPoolOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'DbPool', + fieldName: 'dbPools', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + dbPool: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'DbPool', + 'dbPools', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'DbPoolFilter', + 'DbPoolOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'DbPool', + fieldName: 'dbPool', + document, + variables, + transform: (data: { + dbPools?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + dbPool: data.dbPools?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + dbPool: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'DbPool', + 'dbPools', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'DbPoolFilter', + 'DbPoolOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'DbPool', + fieldName: 'dbPool', + document, + variables, + transform: (data: { + dbPools?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + dbPool: data.dbPools?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createDbPool: { + dbPool: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'DbPool', + 'createDbPool', + 'dbPool', + args.select, + args.data, + 'CreateDbPoolInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'DbPool', + fieldName: 'createDbPool', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + DbPoolPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateDbPool: { + dbPool: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'DbPool', + 'updateDbPool', + 'dbPool', + args.select, + args.where.id, + args.data, + 'UpdateDbPoolInput', + 'id', + 'dbPoolPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'DbPool', + fieldName: 'updateDbPool', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteDbPool: { + dbPool: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'DbPool', + 'deleteDbPool', + 'dbPool', + { + id: args.where.id, + }, + 'DeleteDbPoolInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'DbPool', + fieldName: 'deleteDbPool', + document, + variables, + }); + } +} diff --git a/sdk/constructive-cli/src/modules/orm/models/dbPoolConfig.ts b/sdk/constructive-cli/src/modules/orm/models/dbPoolConfig.ts new file mode 100644 index 0000000000..df67dbab50 --- /dev/null +++ b/sdk/constructive-cli/src/modules/orm/models/dbPoolConfig.ts @@ -0,0 +1,245 @@ +/** + * DbPoolConfig model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + DbPoolConfig, + DbPoolConfigWithRelations, + DbPoolConfigSelect, + DbPoolConfigFilter, + DbPoolConfigOrderBy, + CreateDbPoolConfigInput, + UpdateDbPoolConfigInput, + DbPoolConfigPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class DbPoolConfigModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + dbPoolConfigs: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'DbPoolConfig', + 'dbPoolConfigs', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'DbPoolConfigFilter', + 'DbPoolConfigOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'DbPoolConfig', + fieldName: 'dbPoolConfigs', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + dbPoolConfig: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'DbPoolConfig', + 'dbPoolConfigs', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'DbPoolConfigFilter', + 'DbPoolConfigOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'DbPoolConfig', + fieldName: 'dbPoolConfig', + document, + variables, + transform: (data: { + dbPoolConfigs?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + dbPoolConfig: data.dbPoolConfigs?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + dbPoolConfig: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'DbPoolConfig', + 'dbPoolConfigs', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'DbPoolConfigFilter', + 'DbPoolConfigOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'DbPoolConfig', + fieldName: 'dbPoolConfig', + document, + variables, + transform: (data: { + dbPoolConfigs?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + dbPoolConfig: data.dbPoolConfigs?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createDbPoolConfig: { + dbPoolConfig: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'DbPoolConfig', + 'createDbPoolConfig', + 'dbPoolConfig', + args.select, + args.data, + 'CreateDbPoolConfigInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'DbPoolConfig', + fieldName: 'createDbPoolConfig', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + DbPoolConfigPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateDbPoolConfig: { + dbPoolConfig: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'DbPoolConfig', + 'updateDbPoolConfig', + 'dbPoolConfig', + args.select, + args.where.id, + args.data, + 'UpdateDbPoolConfigInput', + 'id', + 'dbPoolConfigPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'DbPoolConfig', + fieldName: 'updateDbPoolConfig', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteDbPoolConfig: { + dbPoolConfig: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'DbPoolConfig', + 'deleteDbPoolConfig', + 'dbPoolConfig', + { + id: args.where.id, + }, + 'DeleteDbPoolConfigInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'DbPoolConfig', + fieldName: 'deleteDbPoolConfig', + document, + variables, + }); + } +} diff --git a/sdk/constructive-cli/src/modules/orm/models/dbPresetModule.ts b/sdk/constructive-cli/src/modules/orm/models/dbPresetModule.ts new file mode 100644 index 0000000000..e787354cf8 --- /dev/null +++ b/sdk/constructive-cli/src/modules/orm/models/dbPresetModule.ts @@ -0,0 +1,245 @@ +/** + * DbPresetModule model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + DbPresetModule, + DbPresetModuleWithRelations, + DbPresetModuleSelect, + DbPresetModuleFilter, + DbPresetModuleOrderBy, + CreateDbPresetModuleInput, + UpdateDbPresetModuleInput, + DbPresetModulePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class DbPresetModuleModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + dbPresetModules: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'DbPresetModule', + 'dbPresetModules', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'DbPresetModuleFilter', + 'DbPresetModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'DbPresetModule', + fieldName: 'dbPresetModules', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + dbPresetModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'DbPresetModule', + 'dbPresetModules', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'DbPresetModuleFilter', + 'DbPresetModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'DbPresetModule', + fieldName: 'dbPresetModule', + document, + variables, + transform: (data: { + dbPresetModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + dbPresetModule: data.dbPresetModules?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + dbPresetModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'DbPresetModule', + 'dbPresetModules', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'DbPresetModuleFilter', + 'DbPresetModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'DbPresetModule', + fieldName: 'dbPresetModule', + document, + variables, + transform: (data: { + dbPresetModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + dbPresetModule: data.dbPresetModules?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createDbPresetModule: { + dbPresetModule: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'DbPresetModule', + 'createDbPresetModule', + 'dbPresetModule', + args.select, + args.data, + 'CreateDbPresetModuleInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'DbPresetModule', + fieldName: 'createDbPresetModule', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + DbPresetModulePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateDbPresetModule: { + dbPresetModule: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'DbPresetModule', + 'updateDbPresetModule', + 'dbPresetModule', + args.select, + args.where.id, + args.data, + 'UpdateDbPresetModuleInput', + 'id', + 'dbPresetModulePatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'DbPresetModule', + fieldName: 'updateDbPresetModule', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteDbPresetModule: { + dbPresetModule: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'DbPresetModule', + 'deleteDbPresetModule', + 'dbPresetModule', + { + id: args.where.id, + }, + 'DeleteDbPresetModuleInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'DbPresetModule', + fieldName: 'deleteDbPresetModule', + 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 15e5dd1552..9cf869b5e3 100644 --- a/sdk/constructive-cli/src/modules/orm/models/index.ts +++ b/sdk/constructive-cli/src/modules/orm/models/index.ts @@ -5,23 +5,21 @@ */ export { DefaultIdsModuleModel } from './defaultIdsModule'; export { MembershipTypesModuleModel } from './membershipTypesModule'; -export { UserStateModuleModel } from './userStateModule'; export { SessionSecretsModuleModel } from './sessionSecretsModule'; -export { ConfigSecretsOrgModuleModel } from './configSecretsOrgModule'; export { DevicesModuleModel } from './devicesModule'; export { I18NModuleModel } from './i18NModule'; -export { UserCredentialsModuleModel } from './userCredentialsModule'; export { UserSettingsModuleModel } from './userSettingsModule'; -export { ConfigSecretsUserModuleModel } from './configSecretsUserModule'; +export { UserStateModuleModel } from './userStateModule'; +export { UserCredentialsModuleModel } from './userCredentialsModule'; export { ConnectedAccountsModuleModel } from './connectedAccountsModule'; export { EmailsModuleModel } from './emailsModule'; export { PhoneNumbersModuleModel } from './phoneNumbersModule'; export { RateLimitsModuleModel } from './rateLimitsModule'; export { UsersModuleModel } from './usersModule'; export { WebauthnCredentialsModuleModel } from './webauthnCredentialsModule'; +export { ConfigSecretsUserModuleModel } from './configSecretsUserModule'; export { CryptoAddressesModuleModel } from './cryptoAddressesModule'; export { DenormalizedTableFieldModel } from './denormalizedTableField'; -export { IdentityProvidersModuleModel } from './identityProvidersModule'; export { RlsModuleModel } from './rlsModule'; export { BlueprintModel } from './blueprint'; export { BlueprintTemplateModel } from './blueprintTemplate'; @@ -29,38 +27,45 @@ export { BlueprintConstructionModel } from './blueprintConstruction'; export { CryptoAuthModuleModel } from './cryptoAuthModule'; export { SessionsModuleModel } from './sessionsModule'; export { SecureTableProvisionModel } from './secureTableProvision'; -export { DatabaseProvisionModuleModel } from './databaseProvisionModule'; -export { ConfigSecretsModuleModel } from './configSecretsModule'; +export { IdentityProvidersModuleModel } from './identityProvidersModule'; +export { IntegrationProvidersModuleModel } from './integrationProvidersModule'; +export { DbPoolConfigModel } from './dbPoolConfig'; +export { RealtimeModuleModel } from './realtimeModule'; +export { InfraSecretsModuleModel } from './infraSecretsModule'; +export { InternalSecretsModuleModel } from './internalSecretsModule'; +export { DbPresetModuleModel } from './dbPresetModule'; export { GraphModuleModel } from './graphModule'; -export { MerkleStoreModuleModel } from './merkleStoreModule'; export { RateLimitMetersModuleModel } from './rateLimitMetersModule'; -export { RealtimeModuleModel } from './realtimeModule'; +export { InfraConfigModuleModel } from './infraConfigModule'; export { WebauthnAuthModuleModel } from './webauthnAuthModule'; -export { FunctionInvocationModuleModel } from './functionInvocationModule'; +export { PrincipalAuthModuleModel } from './principalAuthModule'; +export { DbPoolModel } from './dbPool'; export { FunctionModuleModel } from './functionModule'; +export { MerkleStoreModuleModel } from './merkleStoreModule'; +export { DatabaseProvisionModuleModel } from './databaseProvisionModule'; +export { FunctionInvocationModuleModel } from './functionInvocationModule'; export { InvitesModuleModel } from './invitesModule'; -export { PrincipalAuthModuleModel } from './principalAuthModule'; +export { NamespaceModuleModel } from './namespaceModule'; +export { PlansModuleModel } from './plansModule'; export { ComputeLogModuleModel } from './computeLogModule'; export { InferenceLogModuleModel } from './inferenceLogModule'; -export { NamespaceModuleModel } from './namespaceModule'; -export { ResourceModuleModel } from './resourceModule'; export { StorageLogModuleModel } from './storageLogModule'; export { TransferLogModuleModel } from './transferLogModule'; -export { FunctionDeploymentModuleModel } from './functionDeploymentModule'; -export { PlansModuleModel } from './plansModule'; export { BillingProviderModuleModel } from './billingProviderModule'; -export { DbUsageModuleModel } from './dbUsageModule'; +export { FunctionDeploymentModuleModel } from './functionDeploymentModule'; +export { PermissionsModuleModel } from './permissionsModule'; export { GraphExecutionModuleModel } from './graphExecutionModule'; export { HierarchyModuleModel } from './hierarchyModule'; -export { PermissionsModuleModel } from './permissionsModule'; export { NotificationsModuleModel } from './notificationsModule'; +export { RelationProvisionModel } from './relationProvision'; export { ProfilesModuleModel } from './profilesModule'; export { BillingModuleModel } from './billingModule'; -export { RelationProvisionModel } from './relationProvision'; +export { ResourceModuleModel } from './resourceModule'; export { UserAuthModuleModel } from './userAuthModule'; +export { DbUsageModuleModel } from './dbUsageModule'; export { AgentModuleModel } from './agentModule'; export { LimitsModuleModel } from './limitsModule'; -export { MembershipsModuleModel } from './membershipsModule'; export { EntityTypeProvisionModel } from './entityTypeProvision'; export { StorageModuleModel } from './storageModule'; +export { MembershipsModuleModel } from './membershipsModule'; export { EventsModuleModel } from './eventsModule'; diff --git a/sdk/constructive-cli/src/modules/orm/models/infraConfigModule.ts b/sdk/constructive-cli/src/modules/orm/models/infraConfigModule.ts new file mode 100644 index 0000000000..12a793b04f --- /dev/null +++ b/sdk/constructive-cli/src/modules/orm/models/infraConfigModule.ts @@ -0,0 +1,245 @@ +/** + * InfraConfigModule model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + InfraConfigModule, + InfraConfigModuleWithRelations, + InfraConfigModuleSelect, + InfraConfigModuleFilter, + InfraConfigModuleOrderBy, + CreateInfraConfigModuleInput, + UpdateInfraConfigModuleInput, + InfraConfigModulePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class InfraConfigModuleModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + infraConfigModules: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'InfraConfigModule', + 'infraConfigModules', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'InfraConfigModuleFilter', + 'InfraConfigModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'InfraConfigModule', + fieldName: 'infraConfigModules', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + infraConfigModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'InfraConfigModule', + 'infraConfigModules', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'InfraConfigModuleFilter', + 'InfraConfigModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'InfraConfigModule', + fieldName: 'infraConfigModule', + document, + variables, + transform: (data: { + infraConfigModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + infraConfigModule: data.infraConfigModules?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + infraConfigModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'InfraConfigModule', + 'infraConfigModules', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'InfraConfigModuleFilter', + 'InfraConfigModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'InfraConfigModule', + fieldName: 'infraConfigModule', + document, + variables, + transform: (data: { + infraConfigModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + infraConfigModule: data.infraConfigModules?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createInfraConfigModule: { + infraConfigModule: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'InfraConfigModule', + 'createInfraConfigModule', + 'infraConfigModule', + args.select, + args.data, + 'CreateInfraConfigModuleInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'InfraConfigModule', + fieldName: 'createInfraConfigModule', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + InfraConfigModulePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateInfraConfigModule: { + infraConfigModule: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'InfraConfigModule', + 'updateInfraConfigModule', + 'infraConfigModule', + args.select, + args.where.id, + args.data, + 'UpdateInfraConfigModuleInput', + 'id', + 'infraConfigModulePatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'InfraConfigModule', + fieldName: 'updateInfraConfigModule', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteInfraConfigModule: { + infraConfigModule: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'InfraConfigModule', + 'deleteInfraConfigModule', + 'infraConfigModule', + { + id: args.where.id, + }, + 'DeleteInfraConfigModuleInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'InfraConfigModule', + fieldName: 'deleteInfraConfigModule', + document, + variables, + }); + } +} diff --git a/sdk/constructive-cli/src/modules/orm/models/infraSecretsModule.ts b/sdk/constructive-cli/src/modules/orm/models/infraSecretsModule.ts new file mode 100644 index 0000000000..165b4f2d59 --- /dev/null +++ b/sdk/constructive-cli/src/modules/orm/models/infraSecretsModule.ts @@ -0,0 +1,245 @@ +/** + * InfraSecretsModule model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + InfraSecretsModule, + InfraSecretsModuleWithRelations, + InfraSecretsModuleSelect, + InfraSecretsModuleFilter, + InfraSecretsModuleOrderBy, + CreateInfraSecretsModuleInput, + UpdateInfraSecretsModuleInput, + InfraSecretsModulePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class InfraSecretsModuleModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + infraSecretsModules: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'InfraSecretsModule', + 'infraSecretsModules', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'InfraSecretsModuleFilter', + 'InfraSecretsModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'InfraSecretsModule', + fieldName: 'infraSecretsModules', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + infraSecretsModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'InfraSecretsModule', + 'infraSecretsModules', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'InfraSecretsModuleFilter', + 'InfraSecretsModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'InfraSecretsModule', + fieldName: 'infraSecretsModule', + document, + variables, + transform: (data: { + infraSecretsModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + infraSecretsModule: data.infraSecretsModules?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + infraSecretsModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'InfraSecretsModule', + 'infraSecretsModules', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'InfraSecretsModuleFilter', + 'InfraSecretsModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'InfraSecretsModule', + fieldName: 'infraSecretsModule', + document, + variables, + transform: (data: { + infraSecretsModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + infraSecretsModule: data.infraSecretsModules?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createInfraSecretsModule: { + infraSecretsModule: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'InfraSecretsModule', + 'createInfraSecretsModule', + 'infraSecretsModule', + args.select, + args.data, + 'CreateInfraSecretsModuleInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'InfraSecretsModule', + fieldName: 'createInfraSecretsModule', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + InfraSecretsModulePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateInfraSecretsModule: { + infraSecretsModule: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'InfraSecretsModule', + 'updateInfraSecretsModule', + 'infraSecretsModule', + args.select, + args.where.id, + args.data, + 'UpdateInfraSecretsModuleInput', + 'id', + 'infraSecretsModulePatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'InfraSecretsModule', + fieldName: 'updateInfraSecretsModule', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteInfraSecretsModule: { + infraSecretsModule: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'InfraSecretsModule', + 'deleteInfraSecretsModule', + 'infraSecretsModule', + { + id: args.where.id, + }, + 'DeleteInfraSecretsModuleInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'InfraSecretsModule', + fieldName: 'deleteInfraSecretsModule', + document, + variables, + }); + } +} diff --git a/sdk/constructive-cli/src/modules/orm/models/integrationProvidersModule.ts b/sdk/constructive-cli/src/modules/orm/models/integrationProvidersModule.ts new file mode 100644 index 0000000000..63c765faee --- /dev/null +++ b/sdk/constructive-cli/src/modules/orm/models/integrationProvidersModule.ts @@ -0,0 +1,253 @@ +/** + * IntegrationProvidersModule model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + IntegrationProvidersModule, + IntegrationProvidersModuleWithRelations, + IntegrationProvidersModuleSelect, + IntegrationProvidersModuleFilter, + IntegrationProvidersModuleOrderBy, + CreateIntegrationProvidersModuleInput, + UpdateIntegrationProvidersModuleInput, + IntegrationProvidersModulePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class IntegrationProvidersModuleModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + integrationProvidersModules: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'IntegrationProvidersModule', + 'integrationProvidersModules', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'IntegrationProvidersModuleFilter', + 'IntegrationProvidersModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'IntegrationProvidersModule', + fieldName: 'integrationProvidersModules', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + integrationProvidersModule: InferSelectResult< + IntegrationProvidersModuleWithRelations, + S + > | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'IntegrationProvidersModule', + 'integrationProvidersModules', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'IntegrationProvidersModuleFilter', + 'IntegrationProvidersModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'IntegrationProvidersModule', + fieldName: 'integrationProvidersModule', + document, + variables, + transform: (data: { + integrationProvidersModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + integrationProvidersModule: data.integrationProvidersModules?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + integrationProvidersModule: InferSelectResult< + IntegrationProvidersModuleWithRelations, + S + > | null; + }> { + const { document, variables } = buildFindManyDocument( + 'IntegrationProvidersModule', + 'integrationProvidersModules', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'IntegrationProvidersModuleFilter', + 'IntegrationProvidersModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'IntegrationProvidersModule', + fieldName: 'integrationProvidersModule', + document, + variables, + transform: (data: { + integrationProvidersModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + integrationProvidersModule: data.integrationProvidersModules?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createIntegrationProvidersModule: { + integrationProvidersModule: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'IntegrationProvidersModule', + 'createIntegrationProvidersModule', + 'integrationProvidersModule', + args.select, + args.data, + 'CreateIntegrationProvidersModuleInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'IntegrationProvidersModule', + fieldName: 'createIntegrationProvidersModule', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + IntegrationProvidersModulePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateIntegrationProvidersModule: { + integrationProvidersModule: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'IntegrationProvidersModule', + 'updateIntegrationProvidersModule', + 'integrationProvidersModule', + args.select, + args.where.id, + args.data, + 'UpdateIntegrationProvidersModuleInput', + 'id', + 'integrationProvidersModulePatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'IntegrationProvidersModule', + fieldName: 'updateIntegrationProvidersModule', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteIntegrationProvidersModule: { + integrationProvidersModule: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'IntegrationProvidersModule', + 'deleteIntegrationProvidersModule', + 'integrationProvidersModule', + { + id: args.where.id, + }, + 'DeleteIntegrationProvidersModuleInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'IntegrationProvidersModule', + fieldName: 'deleteIntegrationProvidersModule', + document, + variables, + }); + } +} diff --git a/sdk/constructive-cli/src/modules/orm/models/internalSecretsModule.ts b/sdk/constructive-cli/src/modules/orm/models/internalSecretsModule.ts new file mode 100644 index 0000000000..cfffbed8d5 --- /dev/null +++ b/sdk/constructive-cli/src/modules/orm/models/internalSecretsModule.ts @@ -0,0 +1,247 @@ +/** + * InternalSecretsModule model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + InternalSecretsModule, + InternalSecretsModuleWithRelations, + InternalSecretsModuleSelect, + InternalSecretsModuleFilter, + InternalSecretsModuleOrderBy, + CreateInternalSecretsModuleInput, + UpdateInternalSecretsModuleInput, + InternalSecretsModulePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class InternalSecretsModuleModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + internalSecretsModules: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'InternalSecretsModule', + 'internalSecretsModules', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'InternalSecretsModuleFilter', + 'InternalSecretsModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'InternalSecretsModule', + fieldName: 'internalSecretsModules', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + internalSecretsModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'InternalSecretsModule', + 'internalSecretsModules', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'InternalSecretsModuleFilter', + 'InternalSecretsModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'InternalSecretsModule', + fieldName: 'internalSecretsModule', + document, + variables, + transform: (data: { + internalSecretsModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + internalSecretsModule: data.internalSecretsModules?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + internalSecretsModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'InternalSecretsModule', + 'internalSecretsModules', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'InternalSecretsModuleFilter', + 'InternalSecretsModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'InternalSecretsModule', + fieldName: 'internalSecretsModule', + document, + variables, + transform: (data: { + internalSecretsModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + internalSecretsModule: data.internalSecretsModules?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createInternalSecretsModule: { + internalSecretsModule: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'InternalSecretsModule', + 'createInternalSecretsModule', + 'internalSecretsModule', + args.select, + args.data, + 'CreateInternalSecretsModuleInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'InternalSecretsModule', + fieldName: 'createInternalSecretsModule', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + InternalSecretsModulePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateInternalSecretsModule: { + internalSecretsModule: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'InternalSecretsModule', + 'updateInternalSecretsModule', + 'internalSecretsModule', + args.select, + args.where.id, + args.data, + 'UpdateInternalSecretsModuleInput', + 'id', + 'internalSecretsModulePatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'InternalSecretsModule', + fieldName: 'updateInternalSecretsModule', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteInternalSecretsModule: { + internalSecretsModule: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'InternalSecretsModule', + 'deleteInternalSecretsModule', + 'internalSecretsModule', + { + id: args.where.id, + }, + 'DeleteInternalSecretsModuleInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'InternalSecretsModule', + fieldName: 'deleteInternalSecretsModule', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/README.md b/sdk/constructive-react/README.md index 5d3bb03321..3d1f7dbe7a 100644 --- a/sdk/constructive-react/README.md +++ b/sdk/constructive-react/README.md @@ -16,6 +16,7 @@ | auth | - | React Query, ORM | [./src/auth/README.md](./src/auth/README.md) | | compute | - | React Query, ORM | [./src/compute/README.md](./src/compute/README.md) | | config | - | React Query, ORM | [./src/config/README.md](./src/config/README.md) | +| 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) | | 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 42542d6c87..cf3103f66e 100644 --- a/sdk/constructive-react/src/.targets +++ b/sdk/constructive-react/src/.targets @@ -1 +1 @@ -["admin","agent","api","auth","compute","config","modules","objects","usage"] +["admin","agent","api","auth","compute","config","infra","modules","objects","usage"] diff --git a/sdk/constructive-react/src/agent/hooks/README.md b/sdk/constructive-react/src/agent/hooks/README.md index d60fb27926..1d6e842562 100644 --- a/sdk/constructive-react/src/agent/hooks/README.md +++ b/sdk/constructive-react/src/agent/hooks/README.md @@ -89,20 +89,20 @@ and lifecycle settings. | ```typescript // List all agentPlans const { data, isLoading } = useAgentPlansQuery({ - selection: { fields: { id: true, createdAt: true, updatedAt: true, ownerId: true, threadId: true, title: true, description: true, status: true } }, + selection: { fields: { id: true, createdAt: true, updatedAt: true, ownerId: true, threadId: true, databaseId: true, title: true, description: true, status: true } }, }); // Get one agentPlan const { data: item } = useAgentPlanQuery({ id: '', - selection: { fields: { id: true, createdAt: true, updatedAt: true, ownerId: true, threadId: true, title: true, description: true, status: true } }, + selection: { fields: { id: true, createdAt: true, updatedAt: true, ownerId: true, threadId: true, databaseId: true, title: true, description: true, status: true } }, }); // Create a agentPlan const { mutate: create } = useCreateAgentPlanMutation({ selection: { fields: { id: true } }, }); -create({ ownerId: '', threadId: '', title: '', description: '', status: '' }); +create({ ownerId: '', threadId: '', databaseId: '', title: '', description: '', status: '' }); ``` ### Agent @@ -110,20 +110,20 @@ create({ ownerId: '', threadId: '', title: '', description: ```typescript // List all agents const { data, isLoading } = useAgentsQuery({ - selection: { fields: { id: true, createdAt: true, updatedAt: true, ownerId: true, personaId: true, parentId: true, name: true, systemPrompt: true, config: true, status: true, isEphemeral: true } }, + selection: { fields: { id: true, createdAt: true, updatedAt: true, ownerId: true, databaseId: true, personaId: true, parentId: true, name: true, systemPrompt: true, config: true, status: true, isEphemeral: true } }, }); // Get one agent const { data: item } = useAgentQuery({ id: '', - selection: { fields: { id: true, createdAt: true, updatedAt: true, ownerId: true, personaId: true, parentId: true, name: true, systemPrompt: true, config: true, status: true, isEphemeral: true } }, + selection: { fields: { id: true, createdAt: true, updatedAt: true, ownerId: true, databaseId: true, personaId: true, parentId: true, name: true, systemPrompt: true, config: true, status: true, isEphemeral: true } }, }); // Create a agent const { mutate: create } = useCreateAgentMutation({ selection: { fields: { id: true } }, }); -create({ ownerId: '', personaId: '', parentId: '', name: '', systemPrompt: '', config: '', status: '', isEphemeral: '' }); +create({ ownerId: '', databaseId: '', personaId: '', parentId: '', name: '', systemPrompt: '', config: '', status: '', isEphemeral: '' }); ``` ### AgentThread @@ -131,20 +131,20 @@ create({ ownerId: '', personaId: '', parentId: '', name: '', - selection: { fields: { id: true, createdAt: true, updatedAt: true, ownerId: true, status: true, isArchived: true, archivedAt: true, title: true, mode: true, model: true, systemPrompt: true, tags: true, promptTemplateId: true, agentId: true, parentThreadId: true } }, + selection: { fields: { id: true, createdAt: true, updatedAt: true, ownerId: true, databaseId: true, status: true, isArchived: true, archivedAt: true, title: true, mode: true, model: true, systemPrompt: true, tags: true, promptTemplateId: true, agentId: true, parentThreadId: true } }, }); // Create a agentThread const { mutate: create } = useCreateAgentThreadMutation({ selection: { fields: { id: true } }, }); -create({ ownerId: '', status: '', isArchived: '', archivedAt: '', title: '', mode: '', model: '', systemPrompt: '', tags: '', promptTemplateId: '', agentId: '', parentThreadId: '' }); +create({ ownerId: '', databaseId: '', status: '', isArchived: '', archivedAt: '', title: '', mode: '', model: '', systemPrompt: '', tags: '', promptTemplateId: '', agentId: '', parentThreadId: '' }); ``` ### AgentMessage @@ -152,20 +152,20 @@ create({ ownerId: '', status: '', isArchived: '', archive ```typescript // List all agentMessages const { data, isLoading } = useAgentMessagesQuery({ - selection: { fields: { id: true, createdAt: true, updatedAt: true, actorId: true, parts: true, threadId: true, authorRole: true, model: true, agentId: true } }, + selection: { fields: { id: true, createdAt: true, updatedAt: true, actorId: true, parts: true, threadId: true, databaseId: true, authorRole: true, model: true, agentId: true } }, }); // Get one agentMessage const { data: item } = useAgentMessageQuery({ id: '', - selection: { fields: { id: true, createdAt: true, updatedAt: true, actorId: true, parts: true, threadId: true, authorRole: true, model: true, agentId: true } }, + selection: { fields: { id: true, createdAt: true, updatedAt: true, actorId: true, parts: true, threadId: true, databaseId: true, authorRole: true, model: true, agentId: true } }, }); // Create a agentMessage const { mutate: create } = useCreateAgentMessageMutation({ selection: { fields: { id: true } }, }); -create({ actorId: '', parts: '', threadId: '', authorRole: '', model: '', agentId: '' }); +create({ actorId: '', parts: '', threadId: '', databaseId: '', authorRole: '', model: '', agentId: '' }); ``` ### AgentTask @@ -173,20 +173,20 @@ create({ actorId: '', parts: '', threadId: '', authorRole: '', - selection: { fields: { id: true, createdAt: true, updatedAt: true, actorId: true, status: true, planId: true, description: true, source: true, error: true, orderIndex: true, requiresApproval: true, approvalStatus: true, approvedBy: true, approvedAt: true, approvalFeedback: true } }, + selection: { fields: { id: true, createdAt: true, updatedAt: true, actorId: true, status: true, planId: true, databaseId: true, description: true, source: true, error: true, orderIndex: true, requiresApproval: true, approvalStatus: true, approvedBy: true, approvedAt: true, approvalFeedback: true } }, }); // Create a agentTask const { mutate: create } = useCreateAgentTaskMutation({ selection: { fields: { id: true } }, }); -create({ actorId: '', status: '', planId: '', description: '', source: '', error: '', orderIndex: '', requiresApproval: '', approvalStatus: '', approvedBy: '', approvedAt: '', approvalFeedback: '' }); +create({ actorId: '', status: '', planId: '', databaseId: '', description: '', source: '', error: '', orderIndex: '', requiresApproval: '', approvalStatus: '', approvedBy: '', approvedAt: '', approvalFeedback: '' }); ``` ### AgentPrompt @@ -194,20 +194,20 @@ create({ actorId: '', status: '', planId: '', description: ' ```typescript // List all agentPrompts const { data, isLoading } = useAgentPromptsQuery({ - selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, name: true, content: true, description: true, isDefault: true, metadata: true } }, + selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, databaseId: true, name: true, content: true, description: true, isDefault: true, metadata: true } }, }); // Get one agentPrompt const { data: item } = useAgentPromptQuery({ id: '', - selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, name: true, content: true, description: true, isDefault: true, metadata: true } }, + selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, databaseId: true, name: true, content: true, description: true, isDefault: true, metadata: true } }, }); // Create a agentPrompt const { mutate: create } = useCreateAgentPromptMutation({ selection: { fields: { id: true } }, }); -create({ createdBy: '', updatedBy: '', name: '', content: '', description: '', isDefault: '', metadata: '' }); +create({ createdBy: '', updatedBy: '', databaseId: '', name: '', content: '', description: '', isDefault: '', metadata: '' }); ``` ### AgentResourceChunk @@ -236,20 +236,20 @@ create({ agentResourceId: '', body: '', chunkIndex: '', embed ```typescript // List all agentPersonas const { data, isLoading } = useAgentPersonasQuery({ - selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, slug: true, name: true, description: true, systemPrompt: true, resources: true, config: true, isActive: true } }, + selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, databaseId: true, slug: true, name: true, description: true, systemPrompt: true, resources: true, config: true, isActive: true } }, }); // Get one agentPersona const { data: item } = useAgentPersonaQuery({ id: '', - selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, slug: true, name: true, description: true, systemPrompt: true, resources: true, config: true, isActive: true } }, + selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, databaseId: true, slug: true, name: true, description: true, systemPrompt: true, resources: true, config: true, isActive: true } }, }); // Create a agentPersona const { mutate: create } = useCreateAgentPersonaMutation({ selection: { fields: { id: true } }, }); -create({ createdBy: '', updatedBy: '', slug: '', name: '', description: '', systemPrompt: '', resources: '', config: '', isActive: '' }); +create({ createdBy: '', updatedBy: '', databaseId: '', slug: '', name: '', description: '', systemPrompt: '', resources: '', config: '', isActive: '' }); ``` ### AgentResource @@ -257,20 +257,20 @@ create({ createdBy: '', updatedBy: '', slug: '', name: '', - selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, slug: true, kind: true, title: true, description: true, body: true, keywords: true, isActive: true, metadata: true, isArchived: true, archivedAt: true, search: true, embedding: true, embeddingUpdatedAt: true, searchTsvRank: true, embeddingVectorDistance: true, kindTrgmSimilarity: true, titleTrgmSimilarity: true, descriptionTrgmSimilarity: true, bodyTrgmSimilarity: true, searchScore: true } }, + selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, databaseId: true, slug: true, kind: true, title: true, description: true, body: true, keywords: true, isActive: true, metadata: true, isArchived: true, archivedAt: true, search: true, embedding: true, embeddingUpdatedAt: true, searchTsvRank: true, embeddingVectorDistance: true, kindTrgmSimilarity: true, titleTrgmSimilarity: true, descriptionTrgmSimilarity: true, bodyTrgmSimilarity: true, searchScore: true } }, }); // Create a agentResource const { mutate: create } = useCreateAgentResourceMutation({ selection: { fields: { id: true } }, }); -create({ createdBy: '', updatedBy: '', slug: '', kind: '', title: '', description: '', body: '', keywords: '', isActive: '', metadata: '', isArchived: '', archivedAt: '', search: '', embedding: '', embeddingUpdatedAt: '', searchTsvRank: '', embeddingVectorDistance: '', kindTrgmSimilarity: '', titleTrgmSimilarity: '', descriptionTrgmSimilarity: '', bodyTrgmSimilarity: '', searchScore: '' }); +create({ createdBy: '', updatedBy: '', databaseId: '', slug: '', kind: '', title: '', description: '', body: '', keywords: '', isActive: '', metadata: '', isArchived: '', archivedAt: '', search: '', embedding: '', embeddingUpdatedAt: '', searchTsvRank: '', embeddingVectorDistance: '', kindTrgmSimilarity: '', titleTrgmSimilarity: '', descriptionTrgmSimilarity: '', bodyTrgmSimilarity: '', searchScore: '' }); ``` ## Custom Operation Hooks diff --git a/sdk/constructive-react/src/agent/orm/README.md b/sdk/constructive-react/src/agent/orm/README.md index b8063a2d31..d45e434aab 100644 --- a/sdk/constructive-react/src/agent/orm/README.md +++ b/sdk/constructive-react/src/agent/orm/README.md @@ -46,6 +46,7 @@ CRUD operations for AgentPlan records. | `updatedAt` | Datetime | No | | `ownerId` | UUID | Yes | | `threadId` | UUID | Yes | +| `databaseId` | UUID | Yes | | `title` | String | Yes | | `description` | String | Yes | | `status` | String | Yes | @@ -54,13 +55,13 @@ CRUD operations for AgentPlan records. ```typescript // List all agentPlan records -const items = await db.agentPlan.findMany({ select: { id: true, createdAt: true, updatedAt: true, ownerId: true, threadId: true, title: true, description: true, status: true } }).execute(); +const items = await db.agentPlan.findMany({ select: { id: true, createdAt: true, updatedAt: true, ownerId: true, threadId: true, databaseId: true, title: true, description: true, status: true } }).execute(); // Get one by id -const item = await db.agentPlan.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, ownerId: true, threadId: true, title: true, description: true, status: true } }).execute(); +const item = await db.agentPlan.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, ownerId: true, threadId: true, databaseId: true, title: true, description: true, status: true } }).execute(); // Create -const created = await db.agentPlan.create({ data: { ownerId: '', threadId: '', title: '', description: '', status: '' }, select: { id: true } }).execute(); +const created = await db.agentPlan.create({ data: { ownerId: '', threadId: '', databaseId: '', title: '', description: '', status: '' }, select: { id: true } }).execute(); // Update const updated = await db.agentPlan.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute(); @@ -81,6 +82,7 @@ CRUD operations for Agent records. | `createdAt` | Datetime | No | | `updatedAt` | Datetime | No | | `ownerId` | UUID | Yes | +| `databaseId` | UUID | Yes | | `personaId` | UUID | Yes | | `parentId` | UUID | Yes | | `name` | String | Yes | @@ -93,13 +95,13 @@ CRUD operations for Agent records. ```typescript // List all agent records -const items = await db.agent.findMany({ select: { id: true, createdAt: true, updatedAt: true, ownerId: true, personaId: true, parentId: true, name: true, systemPrompt: true, config: true, status: true, isEphemeral: true } }).execute(); +const items = await db.agent.findMany({ select: { id: true, createdAt: true, updatedAt: true, ownerId: true, databaseId: true, personaId: true, parentId: true, name: true, systemPrompt: true, config: true, status: true, isEphemeral: true } }).execute(); // Get one by id -const item = await db.agent.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, ownerId: true, personaId: true, parentId: true, name: true, systemPrompt: true, config: true, status: true, isEphemeral: true } }).execute(); +const item = await db.agent.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, ownerId: true, databaseId: true, personaId: true, parentId: true, name: true, systemPrompt: true, config: true, status: true, isEphemeral: true } }).execute(); // Create -const created = await db.agent.create({ data: { ownerId: '', personaId: '', parentId: '', name: '', systemPrompt: '', config: '', status: '', isEphemeral: '' }, select: { id: true } }).execute(); +const created = await db.agent.create({ data: { ownerId: '', databaseId: '', personaId: '', parentId: '', name: '', systemPrompt: '', config: '', status: '', isEphemeral: '' }, select: { id: true } }).execute(); // Update const updated = await db.agent.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute(); @@ -120,6 +122,7 @@ CRUD operations for AgentThread records. | `createdAt` | Datetime | No | | `updatedAt` | Datetime | No | | `ownerId` | UUID | Yes | +| `databaseId` | UUID | Yes | | `status` | String | Yes | | `isArchived` | Boolean | Yes | | `archivedAt` | Datetime | Yes | @@ -136,13 +139,13 @@ CRUD operations for AgentThread records. ```typescript // List all agentThread records -const items = await db.agentThread.findMany({ select: { id: true, createdAt: true, updatedAt: true, ownerId: true, status: true, isArchived: true, archivedAt: true, title: true, mode: true, model: true, systemPrompt: true, tags: true, promptTemplateId: true, agentId: true, parentThreadId: true } }).execute(); +const items = await db.agentThread.findMany({ select: { id: true, createdAt: true, updatedAt: true, ownerId: true, databaseId: true, status: true, isArchived: true, archivedAt: true, title: true, mode: true, model: true, systemPrompt: true, tags: true, promptTemplateId: true, agentId: true, parentThreadId: true } }).execute(); // Get one by id -const item = await db.agentThread.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, ownerId: true, status: true, isArchived: true, archivedAt: true, title: true, mode: true, model: true, systemPrompt: true, tags: true, promptTemplateId: true, agentId: true, parentThreadId: true } }).execute(); +const item = await db.agentThread.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, ownerId: true, databaseId: true, status: true, isArchived: true, archivedAt: true, title: true, mode: true, model: true, systemPrompt: true, tags: true, promptTemplateId: true, agentId: true, parentThreadId: true } }).execute(); // Create -const created = await db.agentThread.create({ data: { ownerId: '', status: '', isArchived: '', archivedAt: '', title: '', mode: '', model: '', systemPrompt: '', tags: '', promptTemplateId: '', agentId: '', parentThreadId: '' }, select: { id: true } }).execute(); +const created = await db.agentThread.create({ data: { ownerId: '', databaseId: '', status: '', isArchived: '', archivedAt: '', title: '', mode: '', model: '', systemPrompt: '', tags: '', promptTemplateId: '', agentId: '', parentThreadId: '' }, select: { id: true } }).execute(); // Update const updated = await db.agentThread.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute(); @@ -165,6 +168,7 @@ CRUD operations for AgentMessage records. | `actorId` | UUID | Yes | | `parts` | JSON | Yes | | `threadId` | UUID | Yes | +| `databaseId` | UUID | Yes | | `authorRole` | String | Yes | | `model` | String | Yes | | `agentId` | UUID | Yes | @@ -173,13 +177,13 @@ CRUD operations for AgentMessage records. ```typescript // List all agentMessage records -const items = await db.agentMessage.findMany({ select: { id: true, createdAt: true, updatedAt: true, actorId: true, parts: true, threadId: true, authorRole: true, model: true, agentId: true } }).execute(); +const items = await db.agentMessage.findMany({ select: { id: true, createdAt: true, updatedAt: true, actorId: true, parts: true, threadId: true, databaseId: true, authorRole: true, model: true, agentId: true } }).execute(); // Get one by id -const item = await db.agentMessage.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, actorId: true, parts: true, threadId: true, authorRole: true, model: true, agentId: true } }).execute(); +const item = await db.agentMessage.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, actorId: true, parts: true, threadId: true, databaseId: true, authorRole: true, model: true, agentId: true } }).execute(); // Create -const created = await db.agentMessage.create({ data: { actorId: '', parts: '', threadId: '', authorRole: '', model: '', agentId: '' }, select: { id: true } }).execute(); +const created = await db.agentMessage.create({ data: { actorId: '', parts: '', threadId: '', databaseId: '', authorRole: '', model: '', agentId: '' }, select: { id: true } }).execute(); // Update const updated = await db.agentMessage.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); @@ -202,6 +206,7 @@ CRUD operations for AgentTask records. | `actorId` | UUID | Yes | | `status` | String | Yes | | `planId` | UUID | Yes | +| `databaseId` | UUID | Yes | | `description` | String | Yes | | `source` | String | Yes | | `error` | String | Yes | @@ -216,13 +221,13 @@ CRUD operations for AgentTask records. ```typescript // List all agentTask records -const items = await db.agentTask.findMany({ select: { id: true, createdAt: true, updatedAt: true, actorId: true, status: true, planId: true, description: true, source: true, error: true, orderIndex: true, requiresApproval: true, approvalStatus: true, approvedBy: true, approvedAt: true, approvalFeedback: true } }).execute(); +const items = await db.agentTask.findMany({ select: { id: true, createdAt: true, updatedAt: true, actorId: true, status: true, planId: true, databaseId: true, description: true, source: true, error: true, orderIndex: true, requiresApproval: true, approvalStatus: true, approvedBy: true, approvedAt: true, approvalFeedback: true } }).execute(); // Get one by id -const item = await db.agentTask.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, actorId: true, status: true, planId: true, description: true, source: true, error: true, orderIndex: true, requiresApproval: true, approvalStatus: true, approvedBy: true, approvedAt: true, approvalFeedback: true } }).execute(); +const item = await db.agentTask.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, actorId: true, status: true, planId: true, databaseId: true, description: true, source: true, error: true, orderIndex: true, requiresApproval: true, approvalStatus: true, approvedBy: true, approvedAt: true, approvalFeedback: true } }).execute(); // Create -const created = await db.agentTask.create({ data: { actorId: '', status: '', planId: '', description: '', source: '', error: '', orderIndex: '', requiresApproval: '', approvalStatus: '', approvedBy: '', approvedAt: '', approvalFeedback: '' }, select: { id: true } }).execute(); +const created = await db.agentTask.create({ data: { actorId: '', status: '', planId: '', databaseId: '', description: '', source: '', error: '', orderIndex: '', requiresApproval: '', approvalStatus: '', approvedBy: '', approvedAt: '', approvalFeedback: '' }, select: { id: true } }).execute(); // Update const updated = await db.agentTask.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); @@ -244,6 +249,7 @@ CRUD operations for AgentPrompt records. | `updatedAt` | Datetime | No | | `createdBy` | UUID | Yes | | `updatedBy` | UUID | Yes | +| `databaseId` | UUID | Yes | | `name` | String | Yes | | `content` | String | Yes | | `description` | String | Yes | @@ -254,13 +260,13 @@ CRUD operations for AgentPrompt records. ```typescript // List all agentPrompt records -const items = await db.agentPrompt.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, name: true, content: true, description: true, isDefault: true, metadata: true } }).execute(); +const items = await db.agentPrompt.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, databaseId: true, name: true, content: true, description: true, isDefault: true, metadata: true } }).execute(); // Get one by id -const item = await db.agentPrompt.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, name: true, content: true, description: true, isDefault: true, metadata: true } }).execute(); +const item = await db.agentPrompt.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, databaseId: true, name: true, content: true, description: true, isDefault: true, metadata: true } }).execute(); // Create -const created = await db.agentPrompt.create({ data: { createdBy: '', updatedBy: '', name: '', content: '', description: '', isDefault: '', metadata: '' }, select: { id: true } }).execute(); +const created = await db.agentPrompt.create({ data: { createdBy: '', updatedBy: '', databaseId: '', name: '', content: '', description: '', isDefault: '', metadata: '' }, select: { id: true } }).execute(); // Update const updated = await db.agentPrompt.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); @@ -323,6 +329,7 @@ CRUD operations for AgentPersona records. | `updatedAt` | Datetime | No | | `createdBy` | UUID | Yes | | `updatedBy` | UUID | Yes | +| `databaseId` | UUID | Yes | | `slug` | String | Yes | | `name` | String | Yes | | `description` | String | Yes | @@ -335,13 +342,13 @@ CRUD operations for AgentPersona records. ```typescript // List all agentPersona records -const items = await db.agentPersona.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, slug: true, name: true, description: true, systemPrompt: true, resources: true, config: true, isActive: true } }).execute(); +const items = await db.agentPersona.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, databaseId: true, slug: true, name: true, description: true, systemPrompt: true, resources: true, config: true, isActive: true } }).execute(); // Get one by id -const item = await db.agentPersona.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, slug: true, name: true, description: true, systemPrompt: true, resources: true, config: true, isActive: true } }).execute(); +const item = await db.agentPersona.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, databaseId: true, slug: true, name: true, description: true, systemPrompt: true, resources: true, config: true, isActive: true } }).execute(); // Create -const created = await db.agentPersona.create({ data: { createdBy: '', updatedBy: '', slug: '', name: '', description: '', systemPrompt: '', resources: '', config: '', isActive: '' }, select: { id: true } }).execute(); +const created = await db.agentPersona.create({ data: { createdBy: '', updatedBy: '', databaseId: '', slug: '', name: '', description: '', systemPrompt: '', resources: '', config: '', isActive: '' }, select: { id: true } }).execute(); // Update const updated = await db.agentPersona.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); @@ -363,6 +370,7 @@ CRUD operations for AgentResource records. | `updatedAt` | Datetime | No | | `createdBy` | UUID | Yes | | `updatedBy` | UUID | Yes | +| `databaseId` | UUID | Yes | | `slug` | String | Yes | | `kind` | String | Yes | | `title` | String | Yes | @@ -388,13 +396,13 @@ CRUD operations for AgentResource records. ```typescript // List all agentResource records -const items = await db.agentResource.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, slug: true, kind: true, title: true, description: true, body: true, keywords: true, isActive: true, metadata: true, isArchived: true, archivedAt: true, search: true, embedding: true, embeddingUpdatedAt: true, searchTsvRank: true, embeddingVectorDistance: true, kindTrgmSimilarity: true, titleTrgmSimilarity: true, descriptionTrgmSimilarity: true, bodyTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.agentResource.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, databaseId: true, slug: true, kind: true, title: true, description: true, body: true, keywords: true, isActive: true, metadata: true, isArchived: true, archivedAt: true, search: true, embedding: true, embeddingUpdatedAt: true, searchTsvRank: true, embeddingVectorDistance: true, kindTrgmSimilarity: true, titleTrgmSimilarity: true, descriptionTrgmSimilarity: true, bodyTrgmSimilarity: true, searchScore: true } }).execute(); // Get one by id -const item = await db.agentResource.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, slug: true, kind: true, title: true, description: true, body: true, keywords: true, isActive: true, metadata: true, isArchived: true, archivedAt: true, search: true, embedding: true, embeddingUpdatedAt: true, searchTsvRank: true, embeddingVectorDistance: true, kindTrgmSimilarity: true, titleTrgmSimilarity: true, descriptionTrgmSimilarity: true, bodyTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.agentResource.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, databaseId: true, slug: true, kind: true, title: true, description: true, body: true, keywords: true, isActive: true, metadata: true, isArchived: true, archivedAt: true, search: true, embedding: true, embeddingUpdatedAt: true, searchTsvRank: true, embeddingVectorDistance: true, kindTrgmSimilarity: true, titleTrgmSimilarity: true, descriptionTrgmSimilarity: true, bodyTrgmSimilarity: true, searchScore: true } }).execute(); // Create -const created = await db.agentResource.create({ data: { createdBy: '', updatedBy: '', slug: '', kind: '', title: '', description: '', body: '', keywords: '', isActive: '', metadata: '', isArchived: '', archivedAt: '', search: '', embedding: '', embeddingUpdatedAt: '', searchTsvRank: '', embeddingVectorDistance: '', kindTrgmSimilarity: '', titleTrgmSimilarity: '', descriptionTrgmSimilarity: '', bodyTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.agentResource.create({ data: { createdBy: '', updatedBy: '', databaseId: '', slug: '', kind: '', title: '', description: '', body: '', keywords: '', isActive: '', metadata: '', isArchived: '', archivedAt: '', search: '', embedding: '', embeddingUpdatedAt: '', searchTsvRank: '', embeddingVectorDistance: '', kindTrgmSimilarity: '', titleTrgmSimilarity: '', descriptionTrgmSimilarity: '', bodyTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); // Update const updated = await db.agentResource.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); diff --git a/sdk/constructive-react/src/agent/orm/input-types.ts b/sdk/constructive-react/src/agent/orm/input-types.ts index 8198498912..045bfeb438 100644 --- a/sdk/constructive-react/src/agent/orm/input-types.ts +++ b/sdk/constructive-react/src/agent/orm/input-types.ts @@ -240,6 +240,8 @@ export interface AgentPlan { ownerId?: string | null; /** Foreign key to agent_thread */ threadId?: string | null; + /** Database that owns this resource (database-scoped isolation) */ + databaseId?: string | null; /** Human-readable plan name */ title?: string | null; /** Overall goal or context for this plan */ @@ -254,6 +256,8 @@ export interface Agent { updatedAt?: string | null; /** Human who owns/manages this agent */ ownerId?: string | null; + /** Database that owns this resource (database-scoped isolation) */ + databaseId?: string | null; /** Persona template this agent was created from */ personaId?: string | null; /** Parent agent (for sub-agent delegation hierarchy) */ @@ -276,6 +280,8 @@ export interface AgentThread { updatedAt?: string | null; /** User who owns this thread */ ownerId?: string | null; + /** Database that owns this resource (database-scoped isolation) */ + databaseId?: string | null; /** Current status of this thread */ status?: string | null; /** Whether this record has been archived by the user */ @@ -310,6 +316,8 @@ export interface AgentMessage { parts?: Record | null; /** Foreign key to agent_thread */ threadId?: string | null; + /** Database that owns this resource (database-scoped isolation) */ + databaseId?: string | null; /** Who authored this message: user or assistant */ authorRole?: string | null; /** LLM model that generated this response */ @@ -328,6 +336,8 @@ export interface AgentTask { status?: string | null; /** Foreign key to agent_plan */ planId?: string | null; + /** Database that owns this resource (database-scoped isolation) */ + databaseId?: string | null; /** Natural-language description of the work to do */ description?: string | null; /** Who created the task: agent or user */ @@ -354,6 +364,8 @@ export interface AgentPrompt { updatedAt?: string | null; createdBy?: string | null; updatedBy?: string | null; + /** Database that owns this resource (database-scoped isolation) */ + databaseId?: string | null; /** Unique name for lookup (e.g. default, code-review, sales-assistant) */ name?: string | null; /** The system prompt template content */ @@ -386,6 +398,8 @@ export interface AgentPersona { updatedAt?: string | null; createdBy?: string | null; updatedBy?: string | null; + /** Database that owns this resource (database-scoped isolation) */ + databaseId?: string | null; /** Unique human-readable identifier for this persona */ slug?: string | null; /** Display name for this persona */ @@ -408,6 +422,8 @@ export interface AgentResource { updatedAt?: string | null; createdBy?: string | null; updatedBy?: string | null; + /** Database that owns this resource (database-scoped isolation) */ + databaseId?: string | null; /** Unique human-readable identifier for portable references */ slug?: string | null; /** Resource type: skill, knowledge, or convention */ @@ -512,6 +528,7 @@ export type AgentPlanSelect = { updatedAt?: boolean; ownerId?: boolean; threadId?: boolean; + databaseId?: boolean; title?: boolean; description?: boolean; status?: boolean; @@ -530,6 +547,7 @@ export type AgentSelect = { createdAt?: boolean; updatedAt?: boolean; ownerId?: boolean; + databaseId?: boolean; personaId?: boolean; parentId?: boolean; name?: boolean; @@ -567,6 +585,7 @@ export type AgentThreadSelect = { createdAt?: boolean; updatedAt?: boolean; ownerId?: boolean; + databaseId?: boolean; status?: boolean; isArchived?: boolean; archivedAt?: boolean; @@ -613,6 +632,7 @@ export type AgentMessageSelect = { actorId?: boolean; parts?: boolean; threadId?: boolean; + databaseId?: boolean; authorRole?: boolean; model?: boolean; agentId?: boolean; @@ -630,6 +650,7 @@ export type AgentTaskSelect = { actorId?: boolean; status?: boolean; planId?: boolean; + databaseId?: boolean; description?: boolean; source?: boolean; error?: boolean; @@ -649,6 +670,7 @@ export type AgentPromptSelect = { updatedAt?: boolean; createdBy?: boolean; updatedBy?: boolean; + databaseId?: boolean; name?: boolean; content?: boolean; description?: boolean; @@ -676,6 +698,7 @@ export type AgentPersonaSelect = { updatedAt?: boolean; createdBy?: boolean; updatedBy?: boolean; + databaseId?: boolean; slug?: boolean; name?: boolean; description?: boolean; @@ -696,6 +719,7 @@ export type AgentResourceSelect = { updatedAt?: boolean; createdBy?: boolean; updatedBy?: boolean; + databaseId?: boolean; slug?: boolean; kind?: boolean; title?: boolean; @@ -735,6 +759,8 @@ export interface AgentPlanFilter { ownerId?: UUIDFilter; /** Filter by the object’s `threadId` field. */ threadId?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; /** Filter by the object’s `title` field. */ title?: StringFilter; /** Filter by the object’s `description` field. */ @@ -763,6 +789,8 @@ export interface AgentFilter { updatedAt?: DatetimeFilter; /** Filter by the object’s `ownerId` field. */ ownerId?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; /** Filter by the object’s `personaId` field. */ personaId?: UUIDFilter; /** Filter by the object’s `parentId` field. */ @@ -813,6 +841,8 @@ export interface AgentThreadFilter { updatedAt?: DatetimeFilter; /** Filter by the object’s `ownerId` field. */ ownerId?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; /** Filter by the object’s `status` field. */ status?: StringFilter; /** Filter by the object’s `isArchived` field. */ @@ -879,6 +909,8 @@ export interface AgentMessageFilter { parts?: JSONFilter; /** Filter by the object’s `threadId` field. */ threadId?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; /** Filter by the object’s `authorRole` field. */ authorRole?: StringFilter; /** Filter by the object’s `model` field. */ @@ -911,6 +943,8 @@ export interface AgentTaskFilter { status?: StringFilter; /** Filter by the object’s `planId` field. */ planId?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; /** Filter by the object’s `description` field. */ description?: StringFilter; /** Filter by the object’s `source` field. */ @@ -949,6 +983,8 @@ export interface AgentPromptFilter { createdBy?: UUIDFilter; /** Filter by the object’s `updatedBy` field. */ updatedBy?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; /** Filter by the object’s `content` field. */ @@ -1005,6 +1041,8 @@ export interface AgentPersonaFilter { createdBy?: UUIDFilter; /** Filter by the object’s `updatedBy` field. */ updatedBy?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; /** Filter by the object’s `slug` field. */ slug?: StringFilter; /** Filter by the object’s `name` field. */ @@ -1041,6 +1079,8 @@ export interface AgentResourceFilter { createdBy?: UUIDFilter; /** Filter by the object’s `updatedBy` field. */ updatedBy?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; /** Filter by the object’s `slug` field. */ slug?: StringTrgmFilter; /** Filter by the object’s `kind` field. */ @@ -1113,6 +1153,8 @@ export type AgentPlanOrderBy = | 'OWNER_ID_DESC' | 'THREAD_ID_ASC' | 'THREAD_ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' | 'TITLE_ASC' | 'TITLE_DESC' | 'DESCRIPTION_ASC' @@ -1131,6 +1173,8 @@ export type AgentOrderBy = | 'UPDATED_AT_DESC' | 'OWNER_ID_ASC' | 'OWNER_ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' | 'PERSONA_ID_ASC' | 'PERSONA_ID_DESC' | 'PARENT_ID_ASC' @@ -1157,6 +1201,8 @@ export type AgentThreadOrderBy = | 'UPDATED_AT_DESC' | 'OWNER_ID_ASC' | 'OWNER_ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' | 'STATUS_ASC' | 'STATUS_DESC' | 'IS_ARCHIVED_ASC' @@ -1195,6 +1241,8 @@ export type AgentMessageOrderBy = | 'PARTS_DESC' | 'THREAD_ID_ASC' | 'THREAD_ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' | 'AUTHOR_ROLE_ASC' | 'AUTHOR_ROLE_DESC' | 'MODEL_ASC' @@ -1217,6 +1265,8 @@ export type AgentTaskOrderBy = | 'STATUS_DESC' | 'PLAN_ID_ASC' | 'PLAN_ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' | 'DESCRIPTION_ASC' | 'DESCRIPTION_DESC' | 'SOURCE_ASC' @@ -1249,6 +1299,8 @@ export type AgentPromptOrderBy = | 'CREATED_BY_DESC' | 'UPDATED_BY_ASC' | 'UPDATED_BY_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' | 'NAME_ASC' | 'NAME_DESC' | 'CONTENT_ASC' @@ -1297,6 +1349,8 @@ export type AgentPersonaOrderBy = | 'CREATED_BY_DESC' | 'UPDATED_BY_ASC' | 'UPDATED_BY_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' | 'SLUG_ASC' | 'SLUG_DESC' | 'NAME_ASC' @@ -1325,6 +1379,8 @@ export type AgentResourceOrderBy = | 'CREATED_BY_DESC' | 'UPDATED_BY_ASC' | 'UPDATED_BY_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' | 'SLUG_ASC' | 'SLUG_DESC' | 'KIND_ASC' @@ -1371,6 +1427,7 @@ export interface CreateAgentPlanInput { agentPlan: { ownerId?: string; threadId: string; + databaseId: string; title: string; description?: string; status?: string; @@ -1379,6 +1436,7 @@ export interface CreateAgentPlanInput { export interface AgentPlanPatch { ownerId?: string | null; threadId?: string | null; + databaseId?: string | null; title?: string | null; description?: string | null; status?: string | null; @@ -1396,6 +1454,7 @@ export interface CreateAgentInput { clientMutationId?: string; agent: { ownerId?: string; + databaseId: string; personaId?: string; parentId?: string; name: string; @@ -1407,6 +1466,7 @@ export interface CreateAgentInput { } export interface AgentPatch { ownerId?: string | null; + databaseId?: string | null; personaId?: string | null; parentId?: string | null; name?: string | null; @@ -1428,6 +1488,7 @@ export interface CreateAgentThreadInput { clientMutationId?: string; agentThread: { ownerId?: string; + databaseId: string; status?: string; isArchived?: boolean; archivedAt?: string; @@ -1443,6 +1504,7 @@ export interface CreateAgentThreadInput { } export interface AgentThreadPatch { ownerId?: string | null; + databaseId?: string | null; status?: string | null; isArchived?: boolean | null; archivedAt?: string | null; @@ -1470,6 +1532,7 @@ export interface CreateAgentMessageInput { actorId?: string; parts?: Record; threadId: string; + databaseId: string; authorRole: string; model?: string; agentId?: string; @@ -1479,6 +1542,7 @@ export interface AgentMessagePatch { actorId?: string | null; parts?: Record | null; threadId?: string | null; + databaseId?: string | null; authorRole?: string | null; model?: string | null; agentId?: string | null; @@ -1498,6 +1562,7 @@ export interface CreateAgentTaskInput { actorId?: string; status?: string; planId: string; + databaseId: string; description: string; source?: string; error?: string; @@ -1513,6 +1578,7 @@ export interface AgentTaskPatch { actorId?: string | null; status?: string | null; planId?: string | null; + databaseId?: string | null; description?: string | null; source?: string | null; error?: string | null; @@ -1537,6 +1603,7 @@ export interface CreateAgentPromptInput { agentPrompt: { createdBy?: string; updatedBy?: string; + databaseId: string; name: string; content: string; description?: string; @@ -1547,6 +1614,7 @@ export interface CreateAgentPromptInput { export interface AgentPromptPatch { createdBy?: string | null; updatedBy?: string | null; + databaseId?: string | null; name?: string | null; content?: string | null; description?: string | null; @@ -1595,6 +1663,7 @@ export interface CreateAgentPersonaInput { agentPersona: { createdBy?: string; updatedBy?: string; + databaseId: string; slug: string; name: string; description?: string; @@ -1607,6 +1676,7 @@ export interface CreateAgentPersonaInput { export interface AgentPersonaPatch { createdBy?: string | null; updatedBy?: string | null; + databaseId?: string | null; slug?: string | null; name?: string | null; description?: string | null; @@ -1629,6 +1699,7 @@ export interface CreateAgentResourceInput { agentResource: { createdBy?: string; updatedBy?: string; + databaseId: string; slug: string; kind?: string; title: string; @@ -1647,6 +1718,7 @@ export interface CreateAgentResourceInput { export interface AgentResourcePatch { createdBy?: string | null; updatedBy?: string | null; + databaseId?: string | null; slug?: string | null; kind?: string | null; title?: string | null; @@ -1893,6 +1965,8 @@ export interface AgentPlanInput { ownerId?: string; /** Foreign key to agent_thread */ threadId: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; /** Human-readable plan name */ title: string; /** Overall goal or context for this plan */ @@ -1907,6 +1981,8 @@ export interface AgentInput { updatedAt?: string; /** Human who owns/manages this agent */ ownerId?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; /** Persona template this agent was created from */ personaId?: string; /** Parent agent (for sub-agent delegation hierarchy) */ @@ -1929,6 +2005,8 @@ export interface AgentThreadInput { updatedAt?: string; /** User who owns this thread */ ownerId?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; /** Current status of this thread */ status?: string; /** Whether this record has been archived by the user */ @@ -1963,6 +2041,8 @@ export interface AgentMessageInput { parts?: Record; /** Foreign key to agent_thread */ threadId: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; /** Who authored this message: user or assistant */ authorRole: string; /** LLM model that generated this response */ @@ -1981,6 +2061,8 @@ export interface AgentTaskInput { status?: string; /** Foreign key to agent_plan */ planId: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; /** Natural-language description of the work to do */ description: string; /** Who created the task: agent or user */ @@ -2007,6 +2089,8 @@ export interface AgentPromptInput { updatedAt?: string; createdBy?: string; updatedBy?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; /** Unique name for lookup (e.g. default, code-review, sales-assistant) */ name: string; /** The system prompt template content */ @@ -2038,6 +2122,8 @@ export interface AgentPersonaInput { updatedAt?: string; createdBy?: string; updatedBy?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; /** Unique human-readable identifier for this persona */ slug: string; /** Display name for this persona */ @@ -2060,6 +2146,8 @@ export interface AgentResourceInput { updatedAt?: string; createdBy?: string; updatedBy?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; /** Unique human-readable identifier for portable references */ slug: string; /** Resource type: skill, knowledge, or convention */ @@ -2099,6 +2187,8 @@ export interface AgentTaskFilter { status?: StringFilter; /** Filter by the object’s `planId` field. */ planId?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; /** Filter by the object’s `description` field. */ description?: StringFilter; /** Filter by the object’s `source` field. */ @@ -2136,6 +2226,8 @@ export interface AgentThreadFilter { updatedAt?: DatetimeFilter; /** Filter by the object’s `ownerId` field. */ ownerId?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; /** Filter by the object’s `status` field. */ status?: StringFilter; /** Filter by the object’s `isArchived` field. */ @@ -2203,6 +2295,8 @@ export interface AgentMessageFilter { parts?: JSONFilter; /** Filter by the object’s `threadId` field. */ threadId?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; /** Filter by the object’s `authorRole` field. */ authorRole?: StringFilter; /** Filter by the object’s `model` field. */ @@ -2232,6 +2326,8 @@ export interface AgentFilter { updatedAt?: DatetimeFilter; /** Filter by the object’s `ownerId` field. */ ownerId?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; /** Filter by the object’s `personaId` field. */ personaId?: UUIDFilter; /** Filter by the object’s `parentId` field. */ @@ -2285,6 +2381,8 @@ export interface AgentPlanFilter { ownerId?: UUIDFilter; /** Filter by the object’s `threadId` field. */ threadId?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; /** Filter by the object’s `title` field. */ title?: StringFilter; /** Filter by the object’s `description` field. */ @@ -2563,6 +2661,8 @@ export interface AgentPromptFilter { createdBy?: UUIDFilter; /** Filter by the object’s `updatedBy` field. */ updatedBy?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; /** Filter by the object’s `content` field. */ @@ -2627,6 +2727,8 @@ export interface AgentPersonaFilter { createdBy?: UUIDFilter; /** Filter by the object’s `updatedBy` field. */ updatedBy?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; /** Filter by the object’s `slug` field. */ slug?: StringFilter; /** Filter by the object’s `name` field. */ @@ -2681,6 +2783,8 @@ export interface AgentResourceFilter { createdBy?: UUIDFilter; /** Filter by the object’s `updatedBy` field. */ updatedBy?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; /** Filter by the object’s `slug` field. */ slug?: StringTrgmFilter; /** Filter by the object’s `kind` field. */ diff --git a/sdk/constructive-react/src/agent/schema-types.ts b/sdk/constructive-react/src/agent/schema-types.ts index eaf306c24b..9ebac8cefc 100644 --- a/sdk/constructive-react/src/agent/schema-types.ts +++ b/sdk/constructive-react/src/agent/schema-types.ts @@ -45,6 +45,8 @@ export type AgentOrderBy = | 'UPDATED_AT_DESC' | 'OWNER_ID_ASC' | 'OWNER_ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' | 'PERSONA_ID_ASC' | 'PERSONA_ID_DESC' | 'PARENT_ID_ASC' @@ -72,6 +74,8 @@ export type AgentThreadOrderBy = | 'UPDATED_AT_DESC' | 'OWNER_ID_ASC' | 'OWNER_ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' | 'STATUS_ASC' | 'STATUS_DESC' | 'IS_ARCHIVED_ASC' @@ -111,6 +115,8 @@ export type AgentMessageOrderBy = | 'PARTS_DESC' | 'THREAD_ID_ASC' | 'THREAD_ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' | 'AUTHOR_ROLE_ASC' | 'AUTHOR_ROLE_DESC' | 'MODEL_ASC' @@ -132,6 +138,8 @@ export type AgentPlanOrderBy = | 'OWNER_ID_DESC' | 'THREAD_ID_ASC' | 'THREAD_ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' | 'TITLE_ASC' | 'TITLE_DESC' | 'DESCRIPTION_ASC' @@ -155,6 +163,8 @@ export type AgentTaskOrderBy = | 'STATUS_DESC' | 'PLAN_ID_ASC' | 'PLAN_ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' | 'DESCRIPTION_ASC' | 'DESCRIPTION_DESC' | 'SOURCE_ASC' @@ -188,6 +198,8 @@ export type AgentPromptOrderBy = | 'CREATED_BY_DESC' | 'UPDATED_BY_ASC' | 'UPDATED_BY_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' | 'NAME_ASC' | 'NAME_DESC' | 'CONTENT_ASC' @@ -240,6 +252,8 @@ export type AgentPersonaOrderBy = | 'CREATED_BY_DESC' | 'UPDATED_BY_ASC' | 'UPDATED_BY_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' | 'SLUG_ASC' | 'SLUG_DESC' | 'NAME_ASC' @@ -269,6 +283,8 @@ export type AgentResourceOrderBy = | 'CREATED_BY_DESC' | 'UPDATED_BY_ASC' | 'UPDATED_BY_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' | 'SLUG_ASC' | 'SLUG_DESC' | 'KIND_ASC' @@ -319,6 +335,8 @@ export interface AgentFilter { updatedAt?: DatetimeFilter; /** Filter by the object’s `ownerId` field. */ ownerId?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; /** Filter by the object’s `personaId` field. */ personaId?: UUIDFilter; /** Filter by the object’s `parentId` field. */ @@ -372,6 +390,8 @@ export interface AgentPersonaFilter { createdBy?: UUIDFilter; /** Filter by the object’s `updatedBy` field. */ updatedBy?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; /** Filter by the object’s `slug` field. */ slug?: StringFilter; /** Filter by the object’s `name` field. */ @@ -425,6 +445,8 @@ export interface AgentThreadFilter { updatedAt?: DatetimeFilter; /** Filter by the object’s `ownerId` field. */ ownerId?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; /** Filter by the object’s `status` field. */ status?: StringFilter; /** Filter by the object’s `isArchived` field. */ @@ -490,6 +512,8 @@ export interface AgentPromptFilter { createdBy?: UUIDFilter; /** Filter by the object’s `updatedBy` field. */ updatedBy?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; /** Filter by the object’s `content` field. */ @@ -539,6 +563,8 @@ export interface AgentMessageFilter { parts?: JSONFilter; /** Filter by the object’s `threadId` field. */ threadId?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; /** Filter by the object’s `authorRole` field. */ authorRole?: StringFilter; /** Filter by the object’s `model` field. */ @@ -579,6 +605,8 @@ export interface AgentPlanFilter { ownerId?: UUIDFilter; /** Filter by the object’s `threadId` field. */ threadId?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; /** Filter by the object’s `title` field. */ title?: StringFilter; /** Filter by the object’s `description` field. */ @@ -621,6 +649,8 @@ export interface AgentTaskFilter { status?: StringFilter; /** Filter by the object’s `planId` field. */ planId?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; /** Filter by the object’s `description` field. */ description?: StringFilter; /** Filter by the object’s `source` field. */ @@ -707,6 +737,8 @@ export interface AgentResourceFilter { createdBy?: UUIDFilter; /** Filter by the object’s `updatedBy` field. */ updatedBy?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; /** Filter by the object’s `slug` field. */ slug?: StringTrgmFilter; /** Filter by the object’s `kind` field. */ @@ -888,6 +920,8 @@ export interface AgentPlanInput { ownerId?: string; /** Foreign key to agent_thread */ threadId: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; /** Human-readable plan name */ title: string; /** Overall goal or context for this plan */ @@ -907,6 +941,8 @@ export interface AgentPromptInput { updatedAt?: string; createdBy?: string; updatedBy?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; /** Unique name for lookup (e.g. default, code-review, sales-assistant) */ name: string; /** The system prompt template content */ @@ -930,6 +966,8 @@ export interface AgentInput { updatedAt?: string; /** Human who owns/manages this agent */ ownerId?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; /** Persona template this agent was created from */ personaId?: string; /** Parent agent (for sub-agent delegation hierarchy) */ @@ -961,6 +999,8 @@ export interface AgentMessageInput { parts?: unknown; /** Foreign key to agent_thread */ threadId: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; /** Who authored this message: user or assistant */ authorRole: string; /** LLM model that generated this response */ @@ -968,6 +1008,24 @@ export interface AgentMessageInput { /** Agent that authored this message (NULL for human messages) */ agentId?: string; } +export interface CreateAgentResourceChunkInput { + clientMutationId?: string; + /** The `AgentResourceChunk` to be created by this mutation. */ + agentResourceChunk: AgentResourceChunkInput; +} +/** An input for mutations affecting `AgentResourceChunk` */ +export interface AgentResourceChunkInput { + id?: string; + agentResourceId: string; + body: string; + chunkIndex?: number; + embedding?: number[]; + metadata?: unknown; + createdAt?: string; + updatedAt?: string; + /** 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; +} export interface CreateAgentTaskInput { clientMutationId?: string; /** The `AgentTask` to be created by this mutation. */ @@ -984,6 +1042,8 @@ export interface AgentTaskInput { status?: string; /** Foreign key to agent_plan */ planId: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; /** Natural-language description of the work to do */ description: string; /** Who created the task: agent or user */ @@ -1003,24 +1063,6 @@ export interface AgentTaskInput { /** Reviewer feedback or reason for the decision */ approvalFeedback?: string; } -export interface CreateAgentResourceChunkInput { - clientMutationId?: string; - /** The `AgentResourceChunk` to be created by this mutation. */ - agentResourceChunk: AgentResourceChunkInput; -} -/** An input for mutations affecting `AgentResourceChunk` */ -export interface AgentResourceChunkInput { - id?: string; - agentResourceId: string; - body: string; - chunkIndex?: number; - embedding?: number[]; - metadata?: unknown; - createdAt?: string; - updatedAt?: string; - /** 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; -} export interface CreateAgentPersonaInput { clientMutationId?: string; /** The `AgentPersona` to be created by this mutation. */ @@ -1033,6 +1075,8 @@ export interface AgentPersonaInput { updatedAt?: string; createdBy?: string; updatedBy?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; /** Unique human-readable identifier for this persona */ slug: string; /** Display name for this persona */ @@ -1060,6 +1104,8 @@ export interface AgentThreadInput { updatedAt?: string; /** User who owns this thread */ ownerId?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; /** Current status of this thread */ status?: string; /** Whether this record has been archived by the user */ @@ -1095,6 +1141,8 @@ export interface AgentResourceInput { updatedAt?: string; createdBy?: string; updatedBy?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; /** Unique human-readable identifier for portable references */ slug: string; /** Resource type: skill, knowledge, or convention */ @@ -1135,6 +1183,8 @@ export interface AgentPlanPatch { ownerId?: string; /** Foreign key to agent_thread */ threadId?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId?: string; /** Human-readable plan name */ title?: string; /** Overall goal or context for this plan */ @@ -1155,6 +1205,8 @@ export interface AgentPromptPatch { updatedAt?: string; createdBy?: string; updatedBy?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId?: string; /** Unique name for lookup (e.g. default, code-review, sales-assistant) */ name?: string; /** The system prompt template content */ @@ -1179,6 +1231,8 @@ export interface AgentPatch { updatedAt?: string; /** Human who owns/manages this agent */ ownerId?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId?: string; /** Persona template this agent was created from */ personaId?: string; /** Parent agent (for sub-agent delegation hierarchy) */ @@ -1211,6 +1265,8 @@ export interface AgentMessagePatch { parts?: unknown; /** Foreign key to agent_thread */ threadId?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId?: string; /** Who authored this message: user or assistant */ authorRole?: string; /** LLM model that generated this response */ @@ -1218,6 +1274,25 @@ export interface AgentMessagePatch { /** Agent that authored this message (NULL for human messages) */ agentId?: string; } +export interface UpdateAgentResourceChunkInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `AgentResourceChunk` being updated. */ + agentResourceChunkPatch: AgentResourceChunkPatch; +} +/** Represents an update to a `AgentResourceChunk`. Fields that are set will be updated. */ +export interface AgentResourceChunkPatch { + id?: string; + agentResourceId?: string; + body?: string; + chunkIndex?: number; + embedding?: number[]; + metadata?: unknown; + createdAt?: string; + updatedAt?: string; + /** 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; +} export interface UpdateAgentTaskInput { clientMutationId?: string; id: string; @@ -1235,6 +1310,8 @@ export interface AgentTaskPatch { status?: string; /** Foreign key to agent_plan */ planId?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId?: string; /** Natural-language description of the work to do */ description?: string; /** Who created the task: agent or user */ @@ -1254,25 +1331,6 @@ export interface AgentTaskPatch { /** Reviewer feedback or reason for the decision */ approvalFeedback?: string; } -export interface UpdateAgentResourceChunkInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `AgentResourceChunk` being updated. */ - agentResourceChunkPatch: AgentResourceChunkPatch; -} -/** Represents an update to a `AgentResourceChunk`. Fields that are set will be updated. */ -export interface AgentResourceChunkPatch { - id?: string; - agentResourceId?: string; - body?: string; - chunkIndex?: number; - embedding?: number[]; - metadata?: unknown; - createdAt?: string; - updatedAt?: string; - /** 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; -} export interface UpdateAgentPersonaInput { clientMutationId?: string; id: string; @@ -1286,6 +1344,8 @@ export interface AgentPersonaPatch { updatedAt?: string; createdBy?: string; updatedBy?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId?: string; /** Unique human-readable identifier for this persona */ slug?: string; /** Display name for this persona */ @@ -1314,6 +1374,8 @@ export interface AgentThreadPatch { updatedAt?: string; /** User who owns this thread */ ownerId?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId?: string; /** Current status of this thread */ status?: string; /** Whether this record has been archived by the user */ @@ -1350,6 +1412,8 @@ export interface AgentResourcePatch { updatedAt?: string; createdBy?: string; updatedBy?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId?: string; /** Unique human-readable identifier for portable references */ slug?: string; /** Resource type: skill, knowledge, or convention */ @@ -1391,11 +1455,11 @@ export interface DeleteAgentMessageInput { clientMutationId?: string; id: string; } -export interface DeleteAgentTaskInput { +export interface DeleteAgentResourceChunkInput { clientMutationId?: string; id: string; } -export interface DeleteAgentResourceChunkInput { +export interface DeleteAgentTaskInput { clientMutationId?: string; id: string; } @@ -1448,13 +1512,6 @@ export interface AgentMessageConnection { pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `AgentTask` values. */ -export interface AgentTaskConnection { - nodes: AgentTask[]; - edges: AgentTaskEdge[]; - pageInfo: PageInfo; - totalCount: number; -} /** A connection to a list of `AgentResourceChunk` values. */ export interface AgentResourceChunkConnection { nodes: AgentResourceChunk[]; @@ -1462,6 +1519,13 @@ export interface AgentResourceChunkConnection { pageInfo: PageInfo; totalCount: number; } +/** A connection to a list of `AgentTask` values. */ +export interface AgentTaskConnection { + nodes: AgentTask[]; + edges: AgentTaskEdge[]; + pageInfo: PageInfo; + totalCount: number; +} /** A connection to a list of `AgentPersona` values. */ export interface AgentPersonaConnection { nodes: AgentPersona[]; @@ -1511,18 +1575,18 @@ export interface CreateAgentMessagePayload { agentMessage?: AgentMessage | null; agentMessageEdge?: AgentMessageEdge | null; } -export interface CreateAgentTaskPayload { - clientMutationId?: string | null; - /** The `AgentTask` that was created by this mutation. */ - agentTask?: AgentTask | null; - agentTaskEdge?: AgentTaskEdge | null; -} export interface CreateAgentResourceChunkPayload { clientMutationId?: string | null; /** The `AgentResourceChunk` that was created by this mutation. */ agentResourceChunk?: AgentResourceChunk | null; agentResourceChunkEdge?: AgentResourceChunkEdge | null; } +export interface CreateAgentTaskPayload { + clientMutationId?: string | null; + /** The `AgentTask` that was created by this mutation. */ + agentTask?: AgentTask | null; + agentTaskEdge?: AgentTaskEdge | null; +} export interface CreateAgentPersonaPayload { clientMutationId?: string | null; /** The `AgentPersona` that was created by this mutation. */ @@ -1565,18 +1629,18 @@ export interface UpdateAgentMessagePayload { agentMessage?: AgentMessage | null; agentMessageEdge?: AgentMessageEdge | null; } -export interface UpdateAgentTaskPayload { - clientMutationId?: string | null; - /** The `AgentTask` that was updated by this mutation. */ - agentTask?: AgentTask | null; - agentTaskEdge?: AgentTaskEdge | null; -} export interface UpdateAgentResourceChunkPayload { clientMutationId?: string | null; /** The `AgentResourceChunk` that was updated by this mutation. */ agentResourceChunk?: AgentResourceChunk | null; agentResourceChunkEdge?: AgentResourceChunkEdge | null; } +export interface UpdateAgentTaskPayload { + clientMutationId?: string | null; + /** The `AgentTask` that was updated by this mutation. */ + agentTask?: AgentTask | null; + agentTaskEdge?: AgentTaskEdge | null; +} export interface UpdateAgentPersonaPayload { clientMutationId?: string | null; /** The `AgentPersona` that was updated by this mutation. */ @@ -1619,18 +1683,18 @@ export interface DeleteAgentMessagePayload { agentMessage?: AgentMessage | null; agentMessageEdge?: AgentMessageEdge | null; } -export interface DeleteAgentTaskPayload { - clientMutationId?: string | null; - /** The `AgentTask` that was deleted by this mutation. */ - agentTask?: AgentTask | null; - agentTaskEdge?: AgentTaskEdge | null; -} export interface DeleteAgentResourceChunkPayload { clientMutationId?: string | null; /** The `AgentResourceChunk` that was deleted by this mutation. */ agentResourceChunk?: AgentResourceChunk | null; agentResourceChunkEdge?: AgentResourceChunkEdge | null; } +export interface DeleteAgentTaskPayload { + clientMutationId?: string | null; + /** The `AgentTask` that was deleted by this mutation. */ + agentTask?: AgentTask | null; + agentTaskEdge?: AgentTaskEdge | null; +} export interface DeleteAgentPersonaPayload { clientMutationId?: string | null; /** The `AgentPersona` that was deleted by this mutation. */ @@ -1698,18 +1762,18 @@ export interface AgentMessageEdge { /** The `AgentMessage` at the end of the edge. */ node?: AgentMessage | null; } -/** A `AgentTask` edge in the connection. */ -export interface AgentTaskEdge { - cursor?: string | null; - /** The `AgentTask` at the end of the edge. */ - node?: AgentTask | null; -} /** A `AgentResourceChunk` edge in the connection. */ export interface AgentResourceChunkEdge { cursor?: string | null; /** The `AgentResourceChunk` at the end of the edge. */ node?: AgentResourceChunk | null; } +/** A `AgentTask` edge in the connection. */ +export interface AgentTaskEdge { + cursor?: string | null; + /** The `AgentTask` at the end of the edge. */ + node?: AgentTask | null; +} /** A `AgentPersona` edge in the connection. */ export interface AgentPersonaEdge { cursor?: string | null; diff --git a/sdk/constructive-react/src/agent/types.ts b/sdk/constructive-react/src/agent/types.ts index f1dbeb4ae6..dafc0a1a17 100644 --- a/sdk/constructive-react/src/agent/types.ts +++ b/sdk/constructive-react/src/agent/types.ts @@ -9,6 +9,7 @@ export interface AgentPlan { updatedAt: string | null; ownerId: string | null; threadId: string | null; + databaseId: string | null; title: string | null; description: string | null; status: string | null; @@ -18,6 +19,7 @@ export interface Agent { createdAt: string | null; updatedAt: string | null; ownerId: string | null; + databaseId: string | null; personaId: string | null; parentId: string | null; name: string | null; @@ -31,6 +33,7 @@ export interface AgentThread { createdAt: string | null; updatedAt: string | null; ownerId: string | null; + databaseId: string | null; status: string | null; isArchived: boolean | null; archivedAt: string | null; @@ -50,6 +53,7 @@ export interface AgentMessage { actorId: string | null; parts: unknown | null; threadId: string | null; + databaseId: string | null; authorRole: string | null; model: string | null; agentId: string | null; @@ -61,6 +65,7 @@ export interface AgentTask { actorId: string | null; status: string | null; planId: string | null; + databaseId: string | null; description: string | null; source: string | null; error: string | null; @@ -77,6 +82,7 @@ export interface AgentPrompt { updatedAt: string | null; createdBy: string | null; updatedBy: string | null; + databaseId: string | null; name: string | null; content: string | null; description: string | null; @@ -101,6 +107,7 @@ export interface AgentPersona { updatedAt: string | null; createdBy: string | null; updatedBy: string | null; + databaseId: string | null; slug: string | null; name: string | null; description: string | null; @@ -115,6 +122,7 @@ export interface AgentResource { updatedAt: string | null; createdBy: string | null; updatedBy: string | null; + databaseId: string | null; slug: string | null; kind: string | null; title: string | null; diff --git a/sdk/constructive-react/src/api/README.md b/sdk/constructive-react/src/api/README.md index f05a02117d..95cdf4a7ef 100644 --- a/sdk/constructive-react/src/api/README.md +++ b/sdk/constructive-react/src/api/README.md @@ -10,7 +10,7 @@ - **Tables:** 46 - **Custom queries:** 1 -- **Custom mutations:** 9 +- **Custom mutations:** 7 **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 d97e31ec4b..b0777ff4ac 100644 --- a/sdk/constructive-react/src/api/hooks/README.md +++ b/sdk/constructive-react/src/api/hooks/README.md @@ -252,41 +252,29 @@ function App() { | `useCreateDatabaseSettingMutation` | Mutation | Database-wide feature flags and settings; controls which platform features are available to all APIs in this database | | `useUpdateDatabaseSettingMutation` | Mutation | Database-wide feature flags and settings; controls which platform features are available to all APIs in this database | | `useDeleteDatabaseSettingMutation` | Mutation | Database-wide feature flags and settings; controls which platform features are available to all APIs in this database | -| `useWebauthnSettingsQuery` | Query | Per-database WebAuthn/passkey runtime configuration; typed replacement for api_modules webauthn_challenge JSONB entries | -| `useWebauthnSettingQuery` | Query | Per-database WebAuthn/passkey runtime configuration; typed replacement for api_modules webauthn_challenge JSONB entries | -| `useCreateWebauthnSettingMutation` | Mutation | Per-database WebAuthn/passkey runtime configuration; typed replacement for api_modules webauthn_challenge JSONB entries | -| `useUpdateWebauthnSettingMutation` | Mutation | Per-database WebAuthn/passkey runtime configuration; typed replacement for api_modules webauthn_challenge JSONB entries | -| `useDeleteWebauthnSettingMutation` | Mutation | Per-database WebAuthn/passkey runtime configuration; typed replacement for api_modules webauthn_challenge JSONB entries | | `useAstMigrationsQuery` | Query | List all astMigrations | | `useAstMigrationQuery` | Query | Get one astMigration | | `useCreateAstMigrationMutation` | Mutation | Create a astMigration | | `useUpdateAstMigrationMutation` | Mutation | Update a astMigration | | `useDeleteAstMigrationMutation` | Mutation | Delete a astMigration | +| `useWebauthnSettingsQuery` | Query | Per-database WebAuthn/passkey runtime configuration; typed replacement for api_modules webauthn_challenge JSONB entries | +| `useWebauthnSettingQuery` | Query | Per-database WebAuthn/passkey runtime configuration; typed replacement for api_modules webauthn_challenge JSONB entries | +| `useCreateWebauthnSettingMutation` | Mutation | Per-database WebAuthn/passkey runtime configuration; typed replacement for api_modules webauthn_challenge JSONB entries | +| `useUpdateWebauthnSettingMutation` | Mutation | Per-database WebAuthn/passkey runtime configuration; typed replacement for api_modules webauthn_challenge JSONB entries | +| `useDeleteWebauthnSettingMutation` | Mutation | Per-database WebAuthn/passkey runtime configuration; typed replacement for api_modules webauthn_challenge JSONB entries | | `useApplyRegistryDefaultsQuery` | Query | applyRegistryDefaults | | `useAcceptDatabaseTransferMutation` | Mutation | acceptDatabaseTransfer | | `useCancelDatabaseTransferMutation` | Mutation | cancelDatabaseTransfer | | `useRejectDatabaseTransferMutation` | Mutation | rejectDatabaseTransfer | -| `useProvisionDatabaseWithUserMutation` | Mutation | provisionDatabaseWithUser | -| `useBootstrapUserMutation` | Mutation | bootstrapUser | | `useSetFieldOrderMutation` | Mutation | setFieldOrder | | `useApplyRlsMutation` | Mutation | applyRls | -| `useCreateUserDatabaseMutation` | Mutation | Creates a new user database with all required modules, permissions, and RLS policies. - -Parameters: - - database_name: Name for the new database (required) - - owner_id: UUID of the owner user (required) - - include_invites: Include invite system (default: true) - - include_groups: Include group-level memberships (default: false) - - include_levels: Include events/analytics (default: false) - - bitlen: Bit length for permission masks (default: 64) - - tokens_expiration: Token expiration interval (default: 30 days) +| `useRequestDatabaseMutation` | Mutation | Requests a database and returns a ticket (database_provision_module row) to poll. -Returns the database_id UUID of the newly created database. +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 with exactly the requested modules. Poll the ticket until status = 'completed'; it then carries database_id and fulfilled_at. Example usage: - SELECT metaschema_public.create_user_database('my_app', 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'::uuid); - SELECT metaschema_public.create_user_database('my_app', 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'::uuid, true, true); -- with invites and groups - | + SELECT * FROM metaschema_public.request_database('my_app', 'example.com', preset_slug := 'full'); + SELECT * FROM metaschema_public.request_database('my_app', 'example.com', modules := '["users_module", "emails_module"]'::jsonb); | | `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, @@ -341,20 +329,20 @@ create({ databaseId: '', name: '', schemaName: '', label: ```typescript // List all tables const { data, isLoading } = useTablesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, name: true, label: true, description: true, smartTags: true, category: true, useRls: true, timestamps: true, peoplestamps: true, pluralName: true, singularName: true, tags: true, partitioned: true, partitionStrategy: true, partitionKeyNames: true, partitionKeyTypes: true, createdAt: true, updatedAt: true, inheritsId: true } }, + selection: { fields: { id: true, databaseId: true, schemaId: true, name: true, label: true, description: true, smartTags: true, category: true, useRls: true, timestamps: true, peoplestamps: true, pluralName: true, singularName: true, tags: true, stepUp: true, partitioned: true, partitionStrategy: true, partitionKeyNames: true, partitionKeyTypes: true, createdAt: true, updatedAt: true, inheritsId: true } }, }); // Get one table const { data: item } = useTableQuery({ id: '', - selection: { fields: { id: true, databaseId: true, schemaId: true, name: true, label: true, description: true, smartTags: true, category: true, useRls: true, timestamps: true, peoplestamps: true, pluralName: true, singularName: true, tags: true, partitioned: true, partitionStrategy: true, partitionKeyNames: true, partitionKeyTypes: true, createdAt: true, updatedAt: true, inheritsId: true } }, + selection: { fields: { id: true, databaseId: true, schemaId: true, name: true, label: true, description: true, smartTags: true, category: true, useRls: true, timestamps: true, peoplestamps: true, pluralName: true, singularName: true, tags: true, stepUp: true, partitioned: true, partitionStrategy: true, partitionKeyNames: true, partitionKeyTypes: true, createdAt: true, updatedAt: true, inheritsId: true } }, }); // Create a table const { mutate: create } = useCreateTableMutation({ selection: { fields: { id: true } }, }); -create({ databaseId: '', schemaId: '', name: '', label: '', description: '', smartTags: '', category: '', useRls: '', timestamps: '', peoplestamps: '', pluralName: '', singularName: '', tags: '', partitioned: '', partitionStrategy: '', partitionKeyNames: '', partitionKeyTypes: '', inheritsId: '' }); +create({ databaseId: '', schemaId: '', name: '', label: '', description: '', smartTags: '', category: '', useRls: '', timestamps: '', peoplestamps: '', pluralName: '', singularName: '', tags: '', stepUp: '', partitioned: '', partitionStrategy: '', partitionKeyNames: '', partitionKeyTypes: '', inheritsId: '' }); ``` ### CheckConstraint @@ -383,20 +371,20 @@ create({ databaseId: '', tableId: '', name: '', type: '', - selection: { fields: { id: true, databaseId: true, tableId: true, name: true, label: true, description: true, smartTags: true, isRequired: true, apiRequired: true, defaultValue: true, type: true, fieldOrder: true, regexp: true, chk: true, chkExpr: true, min: true, max: true, tags: true, category: true, createdAt: true, updatedAt: true } }, + selection: { fields: { id: true, databaseId: true, tableId: true, name: true, label: true, description: true, smartTags: true, isRequired: true, apiRequired: true, defaultValue: true, generationExpression: true, generationType: true, type: true, fieldOrder: true, regexp: true, chk: true, chkExpr: true, min: true, max: true, tags: true, category: true, createdAt: true, updatedAt: true } }, }); // Create a field const { mutate: create } = useCreateFieldMutation({ selection: { fields: { id: true } }, }); -create({ databaseId: '', tableId: '', name: '', label: '', description: '', smartTags: '', isRequired: '', apiRequired: '', defaultValue: '', type: '', fieldOrder: '', regexp: '', chk: '', chkExpr: '', min: '', max: '', tags: '', category: '' }); +create({ databaseId: '', tableId: '', name: '', label: '', description: '', smartTags: '', isRequired: '', apiRequired: '', defaultValue: '', generationExpression: '', generationType: '', type: '', fieldOrder: '', regexp: '', chk: '', chkExpr: '', min: '', max: '', tags: '', category: '' }); ``` ### SpatialRelation @@ -488,20 +476,20 @@ create({ databaseId: '', tableId: '', name: '', fieldIds: '< ```typescript // List all policies const { data, isLoading } = usePoliciesQuery({ - selection: { fields: { id: true, databaseId: true, tableId: true, name: true, granteeName: true, privilege: true, permissive: true, disabled: true, policyType: true, data: true, smartTags: true, category: true, tags: true, createdAt: true, updatedAt: true } }, + selection: { fields: { id: true, databaseId: true, tableId: true, name: true, granteeName: true, privilege: true, permissive: true, disabled: true, policyType: true, data: true, withCheck: true, smartTags: true, category: true, tags: true, createdAt: true, updatedAt: true } }, }); // Get one policy const { data: item } = usePolicyQuery({ id: '', - selection: { fields: { id: true, databaseId: true, tableId: true, name: true, granteeName: true, privilege: true, permissive: true, disabled: true, policyType: true, data: true, smartTags: true, category: true, tags: true, createdAt: true, updatedAt: true } }, + selection: { fields: { id: true, databaseId: true, tableId: true, name: true, granteeName: true, privilege: true, permissive: true, disabled: true, policyType: true, data: true, withCheck: true, smartTags: true, category: true, tags: true, createdAt: true, updatedAt: true } }, }); // Create a policy const { mutate: create } = useCreatePolicyMutation({ selection: { fields: { id: true } }, }); -create({ databaseId: '', tableId: '', name: '', granteeName: '', privilege: '', permissive: '', disabled: '', policyType: '', data: '', smartTags: '', category: '', tags: '' }); +create({ databaseId: '', tableId: '', name: '', granteeName: '', privilege: '', permissive: '', disabled: '', policyType: '', data: '', withCheck: '', smartTags: '', category: '', tags: '' }); ``` ### PrimaryKeyConstraint @@ -1139,20 +1127,20 @@ create({ databaseId: '', schemaId: '', cryptoNetwork: '', us ```typescript // List all databases const { data, isLoading } = useDatabasesQuery({ - selection: { fields: { id: true, ownerId: true, schemaHash: true, name: true, label: true, hash: true, createdAt: true, updatedAt: true } }, + selection: { fields: { id: true, ownerId: true, schemaHash: true, name: true, label: true, hash: true, platform: true, createdAt: true, updatedAt: true } }, }); // Get one database const { data: item } = useDatabaseQuery({ id: '', - selection: { fields: { id: true, ownerId: true, schemaHash: true, name: true, label: true, hash: true, createdAt: true, updatedAt: true } }, + selection: { fields: { id: true, ownerId: true, schemaHash: true, name: true, label: true, hash: true, platform: true, createdAt: true, updatedAt: true } }, }); // Create a database const { mutate: create } = useCreateDatabaseMutation({ selection: { fields: { id: true } }, }); -create({ ownerId: '', schemaHash: '', name: '', label: '', hash: '' }); +create({ ownerId: '', schemaHash: '', name: '', label: '', hash: '', platform: '' }); ``` ### RlsSetting @@ -1218,27 +1206,6 @@ const { mutate: create } = useCreateDatabaseSettingMutation({ create({ databaseId: '', enableAggregates: '', enablePostgis: '', enableSearch: '', enableDirectUploads: '', enablePresignedUploads: '', enableManyToMany: '', enableConnectionFilter: '', enableLtree: '', enableLlm: '', enableRealtime: '', enableBulk: '', enableI18N: '', options: '', labels: '', annotations: '' }); ``` -### WebauthnSetting - -```typescript -// List all webauthnSettings -const { data, isLoading } = useWebauthnSettingsQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, credentialsSchemaId: true, sessionsSchemaId: true, sessionSecretsSchemaId: true, credentialsTableId: true, sessionsTableId: true, sessionCredentialsTableId: true, sessionSecretsTableId: true, userFieldId: true, rpId: true, rpName: true, originAllowlist: true, attestationType: true, requireUserVerification: true, residentKey: true, challengeExpirySeconds: true } }, -}); - -// Get one webauthnSetting -const { data: item } = useWebauthnSettingQuery({ - id: '', - selection: { fields: { id: true, databaseId: true, schemaId: true, credentialsSchemaId: true, sessionsSchemaId: true, sessionSecretsSchemaId: true, credentialsTableId: true, sessionsTableId: true, sessionCredentialsTableId: true, sessionSecretsTableId: true, userFieldId: true, rpId: true, rpName: true, originAllowlist: true, attestationType: true, requireUserVerification: true, residentKey: true, challengeExpirySeconds: true } }, -}); - -// Create a webauthnSetting -const { mutate: create } = useCreateWebauthnSettingMutation({ - selection: { fields: { id: true } }, -}); -create({ databaseId: '', schemaId: '', credentialsSchemaId: '', sessionsSchemaId: '', sessionSecretsSchemaId: '', credentialsTableId: '', sessionsTableId: '', sessionCredentialsTableId: '', sessionSecretsTableId: '', userFieldId: '', rpId: '', rpName: '', originAllowlist: '', attestationType: '', requireUserVerification: '', residentKey: '', challengeExpirySeconds: '' }); -``` - ### AstMigration ```typescript @@ -1260,6 +1227,27 @@ const { mutate: create } = useCreateAstMigrationMutation({ create({ databaseId: '', name: '', requires: '', payload: '', deploys: '', deploy: '', revert: '', verify: '', action: '', actionId: '', actorId: '' }); ``` +### WebauthnSetting + +```typescript +// List all webauthnSettings +const { data, isLoading } = useWebauthnSettingsQuery({ + selection: { fields: { id: true, databaseId: true, schemaId: true, credentialsSchemaId: true, sessionsSchemaId: true, sessionSecretsSchemaId: true, credentialsTableId: true, sessionsTableId: true, sessionCredentialsTableId: true, sessionSecretsTableId: true, userFieldId: true, rpId: true, rpName: true, originAllowlist: true, attestationType: true, requireUserVerification: true, residentKey: true, challengeExpirySeconds: true } }, +}); + +// Get one webauthnSetting +const { data: item } = useWebauthnSettingQuery({ + id: '', + selection: { fields: { id: true, databaseId: true, schemaId: true, credentialsSchemaId: true, sessionsSchemaId: true, sessionSecretsSchemaId: true, credentialsTableId: true, sessionsTableId: true, sessionCredentialsTableId: true, sessionSecretsTableId: true, userFieldId: true, rpId: true, rpName: true, originAllowlist: true, attestationType: true, requireUserVerification: true, residentKey: true, challengeExpirySeconds: true } }, +}); + +// Create a webauthnSetting +const { mutate: create } = useCreateWebauthnSettingMutation({ + selection: { fields: { id: true } }, +}); +create({ databaseId: '', schemaId: '', credentialsSchemaId: '', sessionsSchemaId: '', sessionSecretsSchemaId: '', credentialsTableId: '', sessionsTableId: '', sessionCredentialsTableId: '', sessionSecretsTableId: '', userFieldId: '', rpId: '', rpName: '', originAllowlist: '', attestationType: '', requireUserVerification: '', residentKey: '', challengeExpirySeconds: '' }); +``` + ## Custom Operation Hooks ### `useApplyRegistryDefaultsQuery` @@ -1307,28 +1295,6 @@ rejectDatabaseTransfer |----------|------| | `input` | RejectDatabaseTransferInput (required) | -### `useProvisionDatabaseWithUserMutation` - -provisionDatabaseWithUser - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | ProvisionDatabaseWithUserInput (required) | - -### `useBootstrapUserMutation` - -bootstrapUser - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | BootstrapUserInput (required) | - ### `useSetFieldOrderMutation` setFieldOrder @@ -1351,32 +1317,22 @@ applyRls |----------|------| | `input` | ApplyRlsInput (required) | -### `useCreateUserDatabaseMutation` +### `useRequestDatabaseMutation` -Creates a new user database with all required modules, permissions, and RLS policies. +Requests a database and returns a ticket (database_provision_module row) to poll. -Parameters: - - database_name: Name for the new database (required) - - owner_id: UUID of the owner user (required) - - include_invites: Include invite system (default: true) - - include_groups: Include group-level memberships (default: false) - - include_levels: Include events/analytics (default: false) - - bitlen: Bit length for permission masks (default: 64) - - tokens_expiration: Token expiration interval (default: 30 days) - -Returns the database_id UUID of the newly created database. +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 with exactly the requested modules. Poll the ticket until status = 'completed'; it then carries database_id and fulfilled_at. Example usage: - SELECT metaschema_public.create_user_database('my_app', 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'::uuid); - SELECT metaschema_public.create_user_database('my_app', 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'::uuid, true, true); -- with invites and groups - + SELECT * FROM metaschema_public.request_database('my_app', 'example.com', preset_slug := 'full'); + SELECT * FROM metaschema_public.request_database('my_app', 'example.com', modules := '["users_module", "emails_module"]'::jsonb); - **Type:** mutation - **Arguments:** | Argument | Type | |----------|------| - | `input` | CreateUserDatabaseInput (required) | + | `input` | RequestDatabaseInput (required) | ### `useProvisionBucketMutation` diff --git a/sdk/constructive-react/src/api/hooks/index.ts b/sdk/constructive-react/src/api/hooks/index.ts index ab71c82879..877431ad39 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: Function, Schema, Table, CheckConstraint, Field, SpatialRelation, ForeignKeyConstraint, FullTextSearch, Index, Policy, PrimaryKeyConstraint, TableGrant, Trigger, UniqueConstraint, View, ViewTable, ViewGrant, ViewRule, EmbeddingChunk, SchemaGrant, DefaultPrivilege, Enum, CompositeType, ApiSchema, ApiModule, Domain, SiteMetadatum, SiteModule, SiteTheme, CorsSetting, TriggerFunction, Partition, DatabaseTransfer, Api, Site, App, ApiSetting, MigrateFile, NodeTypeRegistry, PubkeySetting, Database, RlsSetting, SqlAction, DatabaseSetting, WebauthnSetting, AstMigration + * Tables: Function, Schema, Table, CheckConstraint, Field, SpatialRelation, ForeignKeyConstraint, FullTextSearch, Index, Policy, PrimaryKeyConstraint, TableGrant, Trigger, UniqueConstraint, View, ViewTable, ViewGrant, ViewRule, EmbeddingChunk, SchemaGrant, DefaultPrivilege, Enum, CompositeType, ApiSchema, ApiModule, Domain, SiteMetadatum, SiteModule, SiteTheme, CorsSetting, TriggerFunction, Partition, DatabaseTransfer, Api, Site, App, ApiSetting, MigrateFile, NodeTypeRegistry, PubkeySetting, Database, RlsSetting, SqlAction, DatabaseSetting, AstMigration, WebauthnSetting * * Usage: * diff --git a/sdk/constructive-react/src/api/hooks/invalidation.ts b/sdk/constructive-react/src/api/hooks/invalidation.ts index a4d7fde7f7..9d3d17895e 100644 --- a/sdk/constructive-react/src/api/hooks/invalidation.ts +++ b/sdk/constructive-react/src/api/hooks/invalidation.ts @@ -59,8 +59,8 @@ import { rlsSettingKeys, sqlActionKeys, databaseSettingKeys, - webauthnSettingKeys, astMigrationKeys, + webauthnSettingKeys, } from './query-keys'; /** // ============================================================================ @@ -785,38 +785,38 @@ export const invalidate = { queryKey: databaseSettingKeys.detail(id), }), }, - /** Invalidate webauthnSetting queries */ webauthnSetting: { - /** Invalidate all webauthnSetting queries */ all: (queryClient: QueryClient) => + /** Invalidate astMigration queries */ astMigration: { + /** Invalidate all astMigration queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: webauthnSettingKeys.all, + queryKey: astMigrationKeys.all, }), - /** Invalidate webauthnSetting list queries */ lists: (queryClient: QueryClient) => + /** Invalidate astMigration list queries */ lists: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: webauthnSettingKeys.lists(), + queryKey: astMigrationKeys.lists(), }), - /** Invalidate a specific webauthnSetting */ detail: ( + /** Invalidate a specific astMigration */ detail: ( queryClient: QueryClient, id: string | number ) => queryClient.invalidateQueries({ - queryKey: webauthnSettingKeys.detail(id), + queryKey: astMigrationKeys.detail(id), }), }, - /** Invalidate astMigration queries */ astMigration: { - /** Invalidate all astMigration queries */ all: (queryClient: QueryClient) => + /** Invalidate webauthnSetting queries */ webauthnSetting: { + /** Invalidate all webauthnSetting queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: astMigrationKeys.all, + queryKey: webauthnSettingKeys.all, }), - /** Invalidate astMigration list queries */ lists: (queryClient: QueryClient) => + /** Invalidate webauthnSetting list queries */ lists: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: astMigrationKeys.lists(), + queryKey: webauthnSettingKeys.lists(), }), - /** Invalidate a specific astMigration */ detail: ( + /** Invalidate a specific webauthnSetting */ detail: ( queryClient: QueryClient, id: string | number ) => queryClient.invalidateQueries({ - queryKey: astMigrationKeys.detail(id), + queryKey: webauthnSettingKeys.detail(id), }), }, } as const; @@ -1118,20 +1118,20 @@ export const remove = { queryKey: databaseSettingKeys.detail(id), }); }, - /** Remove webauthnSetting from cache */ webauthnSetting: ( + /** Remove astMigration from cache */ astMigration: ( queryClient: QueryClient, id: string | number ) => { queryClient.removeQueries({ - queryKey: webauthnSettingKeys.detail(id), + queryKey: astMigrationKeys.detail(id), }); }, - /** Remove astMigration from cache */ astMigration: ( + /** Remove webauthnSetting from cache */ webauthnSetting: ( queryClient: QueryClient, id: string | number ) => { queryClient.removeQueries({ - queryKey: astMigrationKeys.detail(id), + queryKey: webauthnSettingKeys.detail(id), }); }, } as const; diff --git a/sdk/constructive-react/src/api/hooks/mutation-keys.ts b/sdk/constructive-react/src/api/hooks/mutation-keys.ts index c8b6437bac..617803af33 100644 --- a/sdk/constructive-react/src/api/hooks/mutation-keys.ts +++ b/sdk/constructive-react/src/api/hooks/mutation-keys.ts @@ -388,15 +388,6 @@ export const databaseSettingMutationKeys = { /** Delete databaseSetting mutation key */ delete: (id: string | number) => ['mutation', 'databasesetting', 'delete', id] as const, } as const; -export const webauthnSettingMutationKeys = { - /** All webauthnSetting mutation keys */ all: ['mutation', 'webauthnsetting'] as const, - /** Create webauthnSetting mutation key */ create: () => - ['mutation', 'webauthnsetting', 'create'] as const, - /** Update webauthnSetting mutation key */ update: (id: string | number) => - ['mutation', 'webauthnsetting', 'update', id] as const, - /** Delete webauthnSetting mutation key */ delete: (id: string | number) => - ['mutation', 'webauthnsetting', 'delete', id] as const, -} as const; export const astMigrationMutationKeys = { /** All astMigration mutation keys */ all: ['mutation', 'astmigration'] as const, /** Create astMigration mutation key */ create: () => @@ -406,6 +397,15 @@ export const astMigrationMutationKeys = { /** Delete astMigration mutation key */ delete: (id: string | number) => ['mutation', 'astmigration', 'delete', id] as const, } as const; +export const webauthnSettingMutationKeys = { + /** All webauthnSetting mutation keys */ all: ['mutation', 'webauthnsetting'] as const, + /** Create webauthnSetting mutation key */ create: () => + ['mutation', 'webauthnsetting', 'create'] as const, + /** Update webauthnSetting mutation key */ update: (id: string | number) => + ['mutation', 'webauthnsetting', 'update', id] as const, + /** Delete webauthnSetting mutation key */ delete: (id: string | number) => + ['mutation', 'webauthnsetting', 'delete', id] as const, +} as const; // ============================================================================ // Custom Mutation Keys @@ -424,16 +424,6 @@ export const customMutationKeys = { identifier ? (['mutation', 'rejectDatabaseTransfer', identifier] as const) : (['mutation', 'rejectDatabaseTransfer'] as const), - /** Mutation key for provisionDatabaseWithUser */ provisionDatabaseWithUser: ( - identifier?: string - ) => - identifier - ? (['mutation', 'provisionDatabaseWithUser', identifier] as const) - : (['mutation', 'provisionDatabaseWithUser'] as const), - /** Mutation key for bootstrapUser */ bootstrapUser: (identifier?: string) => - identifier - ? (['mutation', 'bootstrapUser', identifier] as const) - : (['mutation', 'bootstrapUser'] as const), /** Mutation key for setFieldOrder */ setFieldOrder: (identifier?: string) => identifier ? (['mutation', 'setFieldOrder', identifier] as const) @@ -442,10 +432,10 @@ export const customMutationKeys = { identifier ? (['mutation', 'applyRls', identifier] as const) : (['mutation', 'applyRls'] as const), - /** Mutation key for createUserDatabase */ createUserDatabase: (identifier?: string) => + /** Mutation key for requestDatabase */ requestDatabase: (identifier?: string) => identifier - ? (['mutation', 'createUserDatabase', identifier] as const) - : (['mutation', 'createUserDatabase'] as const), + ? (['mutation', 'requestDatabase', identifier] as const) + : (['mutation', 'requestDatabase'] as const), /** Mutation key for provisionBucket */ provisionBucket: (identifier?: string) => identifier ? (['mutation', 'provisionBucket', identifier] as const) @@ -518,7 +508,7 @@ export const mutationKeys = { rlsSetting: rlsSettingMutationKeys, sqlAction: sqlActionMutationKeys, databaseSetting: databaseSettingMutationKeys, - webauthnSetting: webauthnSettingMutationKeys, astMigration: astMigrationMutationKeys, + webauthnSetting: webauthnSettingMutationKeys, custom: customMutationKeys, } as const; diff --git a/sdk/constructive-react/src/api/hooks/mutations/index.ts b/sdk/constructive-react/src/api/hooks/mutations/index.ts index 7c4b5b2e5a..0c7d01e6a3 100644 --- a/sdk/constructive-react/src/api/hooks/mutations/index.ts +++ b/sdk/constructive-react/src/api/hooks/mutations/index.ts @@ -131,16 +131,14 @@ export * from './useCreateSqlActionMutation'; export * from './useCreateDatabaseSettingMutation'; export * from './useUpdateDatabaseSettingMutation'; export * from './useDeleteDatabaseSettingMutation'; +export * from './useCreateAstMigrationMutation'; export * from './useCreateWebauthnSettingMutation'; export * from './useUpdateWebauthnSettingMutation'; export * from './useDeleteWebauthnSettingMutation'; -export * from './useCreateAstMigrationMutation'; export * from './useAcceptDatabaseTransferMutation'; export * from './useCancelDatabaseTransferMutation'; export * from './useRejectDatabaseTransferMutation'; -export * from './useProvisionDatabaseWithUserMutation'; -export * from './useBootstrapUserMutation'; export * from './useSetFieldOrderMutation'; export * from './useApplyRlsMutation'; -export * from './useCreateUserDatabaseMutation'; +export * from './useRequestDatabaseMutation'; export * from './useProvisionBucketMutation'; diff --git a/sdk/constructive-react/src/api/hooks/mutations/useProvisionDatabaseWithUserMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useProvisionDatabaseWithUserMutation.ts deleted file mode 100644 index 10e5793db6..0000000000 --- a/sdk/constructive-react/src/api/hooks/mutations/useProvisionDatabaseWithUserMutation.ts +++ /dev/null @@ -1,60 +0,0 @@ -/** - * Custom mutation hook for provisionDatabaseWithUser - * @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 { ProvisionDatabaseWithUserVariables } from '../../orm/mutation'; -import type { - ProvisionDatabaseWithUserPayloadSelect, - ProvisionDatabaseWithUserPayload, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; -export type { ProvisionDatabaseWithUserVariables } from '../../orm/mutation'; -export type { ProvisionDatabaseWithUserPayloadSelect } from '../../orm/input-types'; -export function useProvisionDatabaseWithUserMutation< - S extends ProvisionDatabaseWithUserPayloadSelect, ->( - params: { - selection: { - fields: S & ProvisionDatabaseWithUserPayloadSelect; - } & HookStrictSelect, ProvisionDatabaseWithUserPayloadSelect>; - } & Omit< - UseMutationOptions< - { - provisionDatabaseWithUser: InferSelectResult | null; - }, - Error, - ProvisionDatabaseWithUserVariables - >, - 'mutationFn' - > -): UseMutationResult< - { - provisionDatabaseWithUser: InferSelectResult | null; - }, - Error, - ProvisionDatabaseWithUserVariables -> { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - return useMutation({ - mutationKey: customMutationKeys.provisionDatabaseWithUser(), - mutationFn: (variables: ProvisionDatabaseWithUserVariables) => - getClient() - .mutation.provisionDatabaseWithUser(variables, { - select: args.select, - } as { - select: S; - } & StrictSelect) - .unwrap(), - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/config/hooks/mutations/useOrgSecretsRotateMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useRequestDatabaseMutation.ts similarity index 50% rename from sdk/constructive-react/src/config/hooks/mutations/useOrgSecretsRotateMutation.ts rename to sdk/constructive-react/src/api/hooks/mutations/useRequestDatabaseMutation.ts index 4523b29c1d..dc62ae693a 100644 --- a/sdk/constructive-react/src/config/hooks/mutations/useOrgSecretsRotateMutation.ts +++ b/sdk/constructive-react/src/api/hooks/mutations/useRequestDatabaseMutation.ts @@ -1,5 +1,5 @@ /** - * Custom mutation hook for orgSecretsRotate + * Custom mutation hook for requestDatabase * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -10,45 +10,45 @@ import { getClient } from '../client'; import { buildSelectionArgs } from '../selection'; import type { SelectionConfig } from '../selection'; import { customMutationKeys } from '../mutation-keys'; -import type { OrgSecretsRotateVariables } from '../../orm/mutation'; -import type { OrgSecretsRotatePayloadSelect, OrgSecretsRotatePayload } from '../../orm/input-types'; +import type { RequestDatabaseVariables } from '../../orm/mutation'; +import type { RequestDatabasePayloadSelect, RequestDatabasePayload } from '../../orm/input-types'; import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; -export type { OrgSecretsRotateVariables } from '../../orm/mutation'; -export type { OrgSecretsRotatePayloadSelect } from '../../orm/input-types'; -export function useOrgSecretsRotateMutation( +export type { RequestDatabaseVariables } from '../../orm/mutation'; +export type { RequestDatabasePayloadSelect } from '../../orm/input-types'; +export function useRequestDatabaseMutation( params: { selection: { - fields: S & OrgSecretsRotatePayloadSelect; - } & HookStrictSelect, OrgSecretsRotatePayloadSelect>; + fields: S & RequestDatabasePayloadSelect; + } & HookStrictSelect, RequestDatabasePayloadSelect>; } & Omit< UseMutationOptions< { - orgSecretsRotate: InferSelectResult | null; + requestDatabase: InferSelectResult | null; }, Error, - OrgSecretsRotateVariables + RequestDatabaseVariables >, 'mutationFn' > ): UseMutationResult< { - orgSecretsRotate: InferSelectResult | null; + requestDatabase: InferSelectResult | null; }, Error, - OrgSecretsRotateVariables + RequestDatabaseVariables > { const args = buildSelectionArgs(params.selection); const { selection: _selection, ...mutationOptions } = params ?? {}; void _selection; return useMutation({ - mutationKey: customMutationKeys.orgSecretsRotate(), - mutationFn: (variables: OrgSecretsRotateVariables) => + mutationKey: customMutationKeys.requestDatabase(), + mutationFn: (variables: RequestDatabaseVariables) => getClient() - .mutation.orgSecretsRotate(variables, { + .mutation.requestDatabase(variables, { select: args.select, } as { select: S; - } & StrictSelect) + } & StrictSelect) .unwrap(), ...mutationOptions, }); diff --git a/sdk/constructive-react/src/api/hooks/queries/index.ts b/sdk/constructive-react/src/api/hooks/queries/index.ts index 811c6a1829..65c66dca87 100644 --- a/sdk/constructive-react/src/api/hooks/queries/index.ts +++ b/sdk/constructive-react/src/api/hooks/queries/index.ts @@ -91,8 +91,8 @@ export * from './useSqlActionsQuery'; export * from './useSqlActionQuery'; export * from './useDatabaseSettingsQuery'; export * from './useDatabaseSettingQuery'; -export * from './useWebauthnSettingsQuery'; -export * from './useWebauthnSettingQuery'; export * from './useAstMigrationsQuery'; export * from './useAstMigrationQuery'; +export * from './useWebauthnSettingsQuery'; +export * from './useWebauthnSettingQuery'; export * from './useApplyRegistryDefaultsQuery'; diff --git a/sdk/constructive-react/src/api/hooks/query-keys.ts b/sdk/constructive-react/src/api/hooks/query-keys.ts index d198cb7b1e..bc1dc2fa40 100644 --- a/sdk/constructive-react/src/api/hooks/query-keys.ts +++ b/sdk/constructive-react/src/api/hooks/query-keys.ts @@ -415,15 +415,6 @@ export const databaseSettingKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...databaseSettingKeys.details(), id] as const, } as const; -export const webauthnSettingKeys = { - /** All webauthnSetting queries */ all: ['webauthnsetting'] as const, - /** List query keys */ lists: () => [...webauthnSettingKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...webauthnSettingKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...webauthnSettingKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...webauthnSettingKeys.details(), id] as const, -} as const; export const astMigrationKeys = { /** All astMigration queries */ all: ['astmigration'] as const, /** List query keys */ lists: () => [...astMigrationKeys.all, 'list'] as const, @@ -433,6 +424,15 @@ export const astMigrationKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...astMigrationKeys.details(), id] as const, } as const; +export const webauthnSettingKeys = { + /** All webauthnSetting queries */ all: ['webauthnsetting'] as const, + /** List query keys */ lists: () => [...webauthnSettingKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...webauthnSettingKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...webauthnSettingKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...webauthnSettingKeys.details(), id] as const, +} as const; // ============================================================================ // Custom Query Keys @@ -509,8 +509,8 @@ export const queryKeys = { rlsSetting: rlsSettingKeys, sqlAction: sqlActionKeys, databaseSetting: databaseSettingKeys, - webauthnSetting: webauthnSettingKeys, astMigration: astMigrationKeys, + webauthnSetting: webauthnSettingKeys, custom: customQueryKeys, } as const; /** Type representing all available query key scopes */ diff --git a/sdk/constructive-react/src/api/orm/README.md b/sdk/constructive-react/src/api/orm/README.md index 1c2ec1c782..5412c911ce 100644 --- a/sdk/constructive-react/src/api/orm/README.md +++ b/sdk/constructive-react/src/api/orm/README.md @@ -65,8 +65,8 @@ const db = createClient({ | `rlsSetting` | findMany, findOne, create, update, delete | | `sqlAction` | findMany, findOne, create, update, delete | | `databaseSetting` | findMany, findOne, create, update, delete | -| `webauthnSetting` | findMany, findOne, create, update, delete | | `astMigration` | findMany, findOne, create, update, delete | +| `webauthnSetting` | findMany, findOne, create, update, delete | ## Table Operations @@ -165,6 +165,7 @@ CRUD operations for Table records. | `pluralName` | String | Yes | | `singularName` | String | Yes | | `tags` | String | Yes | +| `stepUp` | JSON | Yes | | `partitioned` | Boolean | Yes | | `partitionStrategy` | String | Yes | | `partitionKeyNames` | String | Yes | @@ -177,13 +178,13 @@ CRUD operations for Table records. ```typescript // List all table records -const items = await db.table.findMany({ select: { id: true, databaseId: true, schemaId: true, name: true, label: true, description: true, smartTags: true, category: true, useRls: true, timestamps: true, peoplestamps: true, pluralName: true, singularName: true, tags: true, partitioned: true, partitionStrategy: true, partitionKeyNames: true, partitionKeyTypes: true, createdAt: true, updatedAt: true, inheritsId: true } }).execute(); +const items = await db.table.findMany({ select: { id: true, databaseId: true, schemaId: true, name: true, label: true, description: true, smartTags: true, category: true, useRls: true, timestamps: true, peoplestamps: true, pluralName: true, singularName: true, tags: true, stepUp: true, partitioned: true, partitionStrategy: true, partitionKeyNames: true, partitionKeyTypes: true, createdAt: true, updatedAt: true, inheritsId: true } }).execute(); // Get one by id -const item = await db.table.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, name: true, label: true, description: true, smartTags: true, category: true, useRls: true, timestamps: true, peoplestamps: true, pluralName: true, singularName: true, tags: true, partitioned: true, partitionStrategy: true, partitionKeyNames: true, partitionKeyTypes: true, createdAt: true, updatedAt: true, inheritsId: true } }).execute(); +const item = await db.table.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, name: true, label: true, description: true, smartTags: true, category: true, useRls: true, timestamps: true, peoplestamps: true, pluralName: true, singularName: true, tags: true, stepUp: true, partitioned: true, partitionStrategy: true, partitionKeyNames: true, partitionKeyTypes: true, createdAt: true, updatedAt: true, inheritsId: true } }).execute(); // Create -const created = await db.table.create({ data: { databaseId: '', schemaId: '', name: '', label: '', description: '', smartTags: '', category: '', useRls: '', timestamps: '', peoplestamps: '', pluralName: '', singularName: '', tags: '', partitioned: '', partitionStrategy: '', partitionKeyNames: '', partitionKeyTypes: '', inheritsId: '' }, select: { id: true } }).execute(); +const created = await db.table.create({ data: { databaseId: '', schemaId: '', name: '', label: '', description: '', smartTags: '', category: '', useRls: '', timestamps: '', peoplestamps: '', pluralName: '', singularName: '', tags: '', stepUp: '', partitioned: '', partitionStrategy: '', partitionKeyNames: '', partitionKeyTypes: '', inheritsId: '' }, select: { id: true } }).execute(); // Update const updated = await db.table.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); @@ -250,6 +251,8 @@ CRUD operations for Field records. | `isRequired` | Boolean | Yes | | `apiRequired` | Boolean | Yes | | `defaultValue` | JSON | Yes | +| `generationExpression` | JSON | Yes | +| `generationType` | String | Yes | | `type` | JSON | Yes | | `fieldOrder` | Int | Yes | | `regexp` | String | Yes | @@ -266,13 +269,13 @@ CRUD operations for Field records. ```typescript // List all field records -const items = await db.field.findMany({ select: { id: true, databaseId: true, tableId: true, name: true, label: true, description: true, smartTags: true, isRequired: true, apiRequired: true, defaultValue: true, type: true, fieldOrder: true, regexp: true, chk: true, chkExpr: true, min: true, max: true, tags: true, category: true, createdAt: true, updatedAt: true } }).execute(); +const items = await db.field.findMany({ select: { id: true, databaseId: true, tableId: true, name: true, label: true, description: true, smartTags: true, isRequired: true, apiRequired: true, defaultValue: true, generationExpression: true, generationType: true, type: true, fieldOrder: true, regexp: true, chk: true, chkExpr: true, min: true, max: true, tags: true, category: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.field.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, name: true, label: true, description: true, smartTags: true, isRequired: true, apiRequired: true, defaultValue: true, type: true, fieldOrder: true, regexp: true, chk: true, chkExpr: true, min: true, max: true, tags: true, category: true, createdAt: true, updatedAt: true } }).execute(); +const item = await db.field.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, name: true, label: true, description: true, smartTags: true, isRequired: true, apiRequired: true, defaultValue: true, generationExpression: true, generationType: true, type: true, fieldOrder: true, regexp: true, chk: true, chkExpr: true, min: true, max: true, tags: true, category: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.field.create({ data: { databaseId: '', tableId: '', name: '', label: '', description: '', smartTags: '', isRequired: '', apiRequired: '', defaultValue: '', type: '', fieldOrder: '', regexp: '', chk: '', chkExpr: '', min: '', max: '', tags: '', category: '' }, select: { id: true } }).execute(); +const created = await db.field.create({ data: { databaseId: '', tableId: '', name: '', label: '', description: '', smartTags: '', isRequired: '', apiRequired: '', defaultValue: '', generationExpression: '', generationType: '', type: '', fieldOrder: '', regexp: '', chk: '', chkExpr: '', min: '', max: '', tags: '', category: '' }, select: { id: true } }).execute(); // Update const updated = await db.field.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); @@ -467,6 +470,7 @@ CRUD operations for Policy records. | `disabled` | Boolean | Yes | | `policyType` | String | Yes | | `data` | JSON | Yes | +| `withCheck` | JSON | Yes | | `smartTags` | JSON | Yes | | `category` | ObjectCategory | Yes | | `tags` | String | Yes | @@ -477,13 +481,13 @@ CRUD operations for Policy records. ```typescript // List all policy records -const items = await db.policy.findMany({ select: { id: true, databaseId: true, tableId: true, name: true, granteeName: true, privilege: true, permissive: true, disabled: true, policyType: true, data: true, smartTags: true, category: true, tags: true, createdAt: true, updatedAt: true } }).execute(); +const items = await db.policy.findMany({ select: { id: true, databaseId: true, tableId: true, name: true, granteeName: true, privilege: true, permissive: true, disabled: true, policyType: true, data: true, withCheck: true, smartTags: true, category: true, tags: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.policy.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, name: true, granteeName: true, privilege: true, permissive: true, disabled: true, policyType: true, data: true, smartTags: true, category: true, tags: true, createdAt: true, updatedAt: true } }).execute(); +const item = await db.policy.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, name: true, granteeName: true, privilege: true, permissive: true, disabled: true, policyType: true, data: true, withCheck: true, smartTags: true, category: true, tags: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.policy.create({ data: { databaseId: '', tableId: '', name: '', granteeName: '', privilege: '', permissive: '', disabled: '', policyType: '', data: '', smartTags: '', category: '', tags: '' }, select: { id: true } }).execute(); +const created = await db.policy.create({ data: { databaseId: '', tableId: '', name: '', granteeName: '', privilege: '', permissive: '', disabled: '', policyType: '', data: '', withCheck: '', smartTags: '', category: '', tags: '' }, select: { id: true } }).execute(); // Update const updated = await db.policy.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); @@ -1609,6 +1613,7 @@ CRUD operations for Database records. | `name` | String | Yes | | `label` | String | Yes | | `hash` | UUID | Yes | +| `platform` | Boolean | Yes | | `createdAt` | Datetime | No | | `updatedAt` | Datetime | No | @@ -1616,13 +1621,13 @@ CRUD operations for Database records. ```typescript // List all database records -const items = await db.database.findMany({ select: { id: true, ownerId: true, schemaHash: true, name: true, label: true, hash: true, createdAt: true, updatedAt: true } }).execute(); +const items = await db.database.findMany({ select: { id: true, ownerId: true, schemaHash: true, name: true, label: true, hash: true, platform: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.database.findOne({ id: '', select: { id: true, ownerId: true, schemaHash: true, name: true, label: true, hash: true, createdAt: true, updatedAt: true } }).execute(); +const item = await db.database.findOne({ id: '', select: { id: true, ownerId: true, schemaHash: true, name: true, label: true, hash: true, platform: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.database.create({ data: { ownerId: '', schemaHash: '', name: '', label: '', hash: '' }, select: { id: true } }).execute(); +const created = await db.database.create({ data: { ownerId: '', schemaHash: '', name: '', label: '', hash: '', platform: '' }, select: { id: true } }).execute(); // Update const updated = await db.database.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute(); @@ -1755,6 +1760,47 @@ const updated = await db.databaseSetting.update({ where: { id: '' }, data: const deleted = await db.databaseSetting.delete({ where: { id: '' } }).execute(); ``` +### `db.astMigration` + +CRUD operations for AstMigration records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | Int | No | +| `databaseId` | UUID | Yes | +| `name` | String | Yes | +| `requires` | String | Yes | +| `payload` | JSON | Yes | +| `deploys` | String | Yes | +| `deploy` | JSON | Yes | +| `revert` | JSON | Yes | +| `verify` | JSON | Yes | +| `createdAt` | Datetime | No | +| `action` | String | Yes | +| `actionId` | UUID | Yes | +| `actorId` | UUID | Yes | + +**Operations:** + +```typescript +// List all astMigration records +const items = await db.astMigration.findMany({ select: { id: true, databaseId: true, name: true, requires: true, payload: true, deploys: true, deploy: true, revert: true, verify: true, createdAt: true, action: true, actionId: true, actorId: true } }).execute(); + +// Get one by id +const item = await db.astMigration.findOne({ id: '', select: { id: true, databaseId: true, name: true, requires: true, payload: true, deploys: true, deploy: true, revert: true, verify: true, createdAt: true, action: true, actionId: true, actorId: true } }).execute(); + +// Create +const created = await db.astMigration.create({ data: { databaseId: '', name: '', requires: '', payload: '', deploys: '', deploy: '', revert: '', verify: '', action: '', actionId: '', actorId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.astMigration.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.astMigration.delete({ where: { id: '' } }).execute(); +``` + ### `db.webauthnSetting` CRUD operations for WebauthnSetting records. @@ -1801,47 +1847,6 @@ const updated = await db.webauthnSetting.update({ where: { id: '' }, data: const deleted = await db.webauthnSetting.delete({ where: { id: '' } }).execute(); ``` -### `db.astMigration` - -CRUD operations for AstMigration records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | Int | No | -| `databaseId` | UUID | Yes | -| `name` | String | Yes | -| `requires` | String | Yes | -| `payload` | JSON | Yes | -| `deploys` | String | Yes | -| `deploy` | JSON | Yes | -| `revert` | JSON | Yes | -| `verify` | JSON | Yes | -| `createdAt` | Datetime | No | -| `action` | String | Yes | -| `actionId` | UUID | Yes | -| `actorId` | UUID | Yes | - -**Operations:** - -```typescript -// List all astMigration records -const items = await db.astMigration.findMany({ select: { id: true, databaseId: true, name: true, requires: true, payload: true, deploys: true, deploy: true, revert: true, verify: true, createdAt: true, action: true, actionId: true, actorId: true } }).execute(); - -// Get one by id -const item = await db.astMigration.findOne({ id: '', select: { id: true, databaseId: true, name: true, requires: true, payload: true, deploys: true, deploy: true, revert: true, verify: true, createdAt: true, action: true, actionId: true, actorId: true } }).execute(); - -// Create -const created = await db.astMigration.create({ data: { databaseId: '', name: '', requires: '', payload: '', deploys: '', deploy: '', revert: '', verify: '', action: '', actionId: '', actorId: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.astMigration.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.astMigration.delete({ where: { id: '' } }).execute(); -``` - ## Custom Operations ### `db.query.applyRegistryDefaults` @@ -1905,36 +1910,6 @@ rejectDatabaseTransfer const result = await db.mutation.rejectDatabaseTransfer({ input: { transferId: '' } }).execute(); ``` -### `db.mutation.provisionDatabaseWithUser` - -provisionDatabaseWithUser - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | ProvisionDatabaseWithUserInput (required) | - -```typescript -const result = await db.mutation.provisionDatabaseWithUser({ input: { pDatabaseName: '', pDomain: '', pSubdomain: '', pModules: '', pOptions: '' } }).execute(); -``` - -### `db.mutation.bootstrapUser` - -bootstrapUser - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | BootstrapUserInput (required) | - -```typescript -const result = await db.mutation.bootstrapUser({ input: '' }).execute(); -``` - ### `db.mutation.setFieldOrder` setFieldOrder @@ -1965,35 +1940,25 @@ applyRls const result = await db.mutation.applyRls({ input: '' }).execute(); ``` -### `db.mutation.createUserDatabase` - -Creates a new user database with all required modules, permissions, and RLS policies. +### `db.mutation.requestDatabase` -Parameters: - - database_name: Name for the new database (required) - - owner_id: UUID of the owner user (required) - - include_invites: Include invite system (default: true) - - include_groups: Include group-level memberships (default: false) - - include_levels: Include events/analytics (default: false) - - bitlen: Bit length for permission masks (default: 64) - - tokens_expiration: Token expiration interval (default: 30 days) +Requests a database and returns a ticket (database_provision_module row) to poll. -Returns the database_id UUID of the newly created database. +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 with exactly the requested modules. Poll the ticket until status = 'completed'; it then carries database_id and fulfilled_at. Example usage: - SELECT metaschema_public.create_user_database('my_app', 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'::uuid); - SELECT metaschema_public.create_user_database('my_app', 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'::uuid, true, true); -- with invites and groups - + SELECT * FROM metaschema_public.request_database('my_app', 'example.com', preset_slug := 'full'); + SELECT * FROM metaschema_public.request_database('my_app', 'example.com', modules := '["users_module", "emails_module"]'::jsonb); - **Type:** mutation - **Arguments:** | Argument | Type | |----------|------| - | `input` | CreateUserDatabaseInput (required) | + | `input` | RequestDatabaseInput (required) | ```typescript -const result = await db.mutation.createUserDatabase({ input: '' }).execute(); +const result = await db.mutation.requestDatabase({ input: '' }).execute(); ``` ### `db.mutation.provisionBucket` diff --git a/sdk/constructive-react/src/api/orm/index.ts b/sdk/constructive-react/src/api/orm/index.ts index bde4dcc042..ead83692e0 100644 --- a/sdk/constructive-react/src/api/orm/index.ts +++ b/sdk/constructive-react/src/api/orm/index.ts @@ -49,8 +49,8 @@ import { DatabaseModel } from './models/database'; import { RlsSettingModel } from './models/rlsSetting'; import { SqlActionModel } from './models/sqlAction'; import { DatabaseSettingModel } from './models/databaseSetting'; -import { WebauthnSettingModel } from './models/webauthnSetting'; import { AstMigrationModel } from './models/astMigration'; +import { WebauthnSettingModel } from './models/webauthnSetting'; import { createQueryOperations } from './query'; import { createMutationOperations } from './mutation'; export type { OrmClientConfig, QueryResult, GraphQLError, GraphQLAdapter } from './client'; @@ -130,8 +130,8 @@ export function createClient(config: OrmClientConfig) { rlsSetting: new RlsSettingModel(client), sqlAction: new SqlActionModel(client), databaseSetting: new DatabaseSettingModel(client), - webauthnSetting: new WebauthnSettingModel(client), astMigration: new AstMigrationModel(client), + webauthnSetting: new WebauthnSettingModel(client), query: createQueryOperations(client), mutation: createMutationOperations(client), }; diff --git a/sdk/constructive-react/src/api/orm/input-types.ts b/sdk/constructive-react/src/api/orm/input-types.ts index 60f796a207..ecca204945 100644 --- a/sdk/constructive-react/src/api/orm/input-types.ts +++ b/sdk/constructive-react/src/api/orm/input-types.ts @@ -276,6 +276,8 @@ export interface Table { pluralName?: string | null; singularName?: string | null; tags?: string[] | null; + /** Declarative step-up auth guard: jsonb object mapping DML verbs (INSERT, UPDATE, DELETE) to a step-up spec. Values: true (default password_or_mfa), a type string (password / mfa / password_or_mfa), or an object {type, min_age, min_age_lookup, conditions} where min_age is an interval string (e.g. 6 hours) gating the guard to rows older than that age (UPDATE/DELETE only), min_age_lookup resolves per-row windows from a lookup table, and conditions is a declarative WHEN-clause tree compiled by build_condition_expr. */ + stepUp?: Record | null; partitioned?: boolean | null; partitionStrategy?: string | null; partitionKeyNames?: string[] | null; @@ -309,6 +311,8 @@ export interface Field { isRequired?: boolean | null; apiRequired?: boolean | null; defaultValue?: Record | null; + generationExpression?: Record | null; + generationType?: string | null; type?: Record | null; fieldOrder?: number | null; regexp?: string | null; @@ -396,6 +400,8 @@ export interface Policy { disabled?: boolean | null; policyType?: string | null; data?: Record | null; + /** Optional WITH CHECK override node {"$type": "Authz...", "data": {...}}. Only valid for UPDATE policies; NULL inherits the USING expression. */ + withCheck?: Record | null; smartTags?: Record | null; category?: ObjectCategory | null; tags?: string[] | null; @@ -839,6 +845,7 @@ export interface Database { name?: string | null; label?: string | null; hash?: string | null; + platform?: boolean | null; createdAt?: string | null; updatedAt?: string | null; } @@ -917,6 +924,21 @@ export interface DatabaseSetting { /** Freeform metadata for tooling and operational notes */ annotations?: Record | null; } +export interface AstMigration { + id: number; + databaseId?: string | null; + name?: string | null; + requires?: string[] | null; + payload?: Record | null; + deploys?: string | null; + deploy?: Record | null; + revert?: Record | null; + verify?: Record | null; + createdAt?: string | null; + action?: string | null; + actionId?: string | null; + actorId?: string | null; +} /** Per-database WebAuthn/passkey runtime configuration; typed replacement for api_modules webauthn_challenge JSONB entries */ export interface WebauthnSetting { /** Unique identifier for this WebAuthn settings record */ @@ -956,21 +978,6 @@ export interface WebauthnSetting { /** Challenge TTL in seconds (default 300 = 5 minutes) */ challengeExpirySeconds?: string | null; } -export interface AstMigration { - id: number; - databaseId?: string | null; - name?: string | null; - requires?: string[] | null; - payload?: Record | null; - deploys?: string | null; - deploy?: Record | null; - revert?: Record | null; - verify?: Record | null; - createdAt?: string | null; - action?: string | null; - actionId?: string | null; - actorId?: string | null; -} // ============ Relation Helper Types ============ export interface ConnectionResult { nodes: T[]; @@ -1248,6 +1255,7 @@ export interface SqlActionRelations {} export interface DatabaseSettingRelations { database?: Database | null; } +export interface AstMigrationRelations {} export interface WebauthnSettingRelations { credentialsSchema?: Schema | null; credentialsTable?: Table | null; @@ -1260,7 +1268,6 @@ export interface WebauthnSettingRelations { sessionsTable?: Table | null; userField?: Field | null; } -export interface AstMigrationRelations {} // ============ Entity Types With Relations ============ export type FunctionWithRelations = Function & FunctionRelations; export type SchemaWithRelations = Schema & SchemaRelations; @@ -1308,8 +1315,8 @@ export type DatabaseWithRelations = Database & DatabaseRelations; export type RlsSettingWithRelations = RlsSetting & RlsSettingRelations; export type SqlActionWithRelations = SqlAction & SqlActionRelations; export type DatabaseSettingWithRelations = DatabaseSetting & DatabaseSettingRelations; -export type WebauthnSettingWithRelations = WebauthnSetting & WebauthnSettingRelations; export type AstMigrationWithRelations = AstMigration & AstMigrationRelations; +export type WebauthnSettingWithRelations = WebauthnSetting & WebauthnSettingRelations; // ============ Entity Select Types ============ export type FunctionSelect = { id?: boolean; @@ -1404,6 +1411,7 @@ export type TableSelect = { pluralName?: boolean; singularName?: boolean; tags?: boolean; + stepUp?: boolean; partitioned?: boolean; partitionStrategy?: boolean; partitionKeyNames?: boolean; @@ -1551,6 +1559,8 @@ export type FieldSelect = { isRequired?: boolean; apiRequired?: boolean; defaultValue?: boolean; + generationExpression?: boolean; + generationType?: boolean; type?: boolean; fieldOrder?: boolean; regexp?: boolean; @@ -1692,6 +1702,7 @@ export type PolicySelect = { disabled?: boolean; policyType?: boolean; data?: boolean; + withCheck?: boolean; smartTags?: boolean; category?: boolean; tags?: boolean; @@ -2298,6 +2309,7 @@ export type DatabaseSelect = { name?: boolean; label?: boolean; hash?: boolean; + platform?: boolean; createdAt?: boolean; updatedAt?: boolean; databaseSetting?: { @@ -2611,6 +2623,21 @@ export type DatabaseSettingSelect = { select: DatabaseSelect; }; }; +export type AstMigrationSelect = { + id?: boolean; + databaseId?: boolean; + name?: boolean; + requires?: boolean; + payload?: boolean; + deploys?: boolean; + deploy?: boolean; + revert?: boolean; + verify?: boolean; + createdAt?: boolean; + action?: boolean; + actionId?: boolean; + actorId?: boolean; +}; export type WebauthnSettingSelect = { id?: boolean; databaseId?: boolean; @@ -2661,21 +2688,6 @@ export type WebauthnSettingSelect = { select: FieldSelect; }; }; -export type AstMigrationSelect = { - id?: boolean; - databaseId?: boolean; - name?: boolean; - requires?: boolean; - payload?: boolean; - deploys?: boolean; - deploy?: boolean; - revert?: boolean; - verify?: boolean; - createdAt?: boolean; - action?: boolean; - actionId?: boolean; - actorId?: boolean; -}; // ============ Table Filter Types ============ export interface FunctionFilter { /** Filter by the object’s `id` field. */ @@ -2794,6 +2806,8 @@ export interface TableFilter { singularName?: StringFilter; /** Filter by the object’s `tags` field. */ tags?: StringListFilter; + /** Filter by the object’s `stepUp` field. */ + stepUp?: JSONFilter; /** Filter by the object’s `partitioned` field. */ partitioned?: BooleanFilter; /** Filter by the object’s `partitionStrategy` field. */ @@ -2948,6 +2962,10 @@ export interface FieldFilter { apiRequired?: BooleanFilter; /** Filter by the object’s `defaultValue` field. */ defaultValue?: JSONFilter; + /** Filter by the object’s `generationExpression` field. */ + generationExpression?: JSONFilter; + /** Filter by the object’s `generationType` field. */ + generationType?: StringFilter; /** Filter by the object’s `type` field. */ type?: JSONFilter; /** Filter by the object’s `fieldOrder` field. */ @@ -3178,6 +3196,8 @@ export interface PolicyFilter { policyType?: StringFilter; /** Filter by the object’s `data` field. */ data?: JSONFilter; + /** Filter by the object’s `withCheck` field. */ + withCheck?: JSONFilter; /** Filter by the object’s `smartTags` field. */ smartTags?: JSONFilter; /** Filter by the object’s `category` field. */ @@ -4178,6 +4198,8 @@ export interface DatabaseFilter { label?: StringFilter; /** Filter by the object’s `hash` field. */ hash?: UUIDFilter; + /** Filter by the object’s `platform` field. */ + platform?: BooleanFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; /** Filter by the object’s `updatedAt` field. */ @@ -4491,6 +4513,40 @@ export interface DatabaseSettingFilter { /** Filter by the object’s `database` relation. */ database?: DatabaseFilter; } +export interface AstMigrationFilter { + /** Filter by the object’s `id` field. */ + id?: IntFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `requires` field. */ + requires?: StringListFilter; + /** Filter by the object’s `payload` field. */ + payload?: JSONFilter; + /** Filter by the object’s `deploys` field. */ + deploys?: StringFilter; + /** Filter by the object’s `deploy` field. */ + deploy?: JSONFilter; + /** Filter by the object’s `revert` field. */ + revert?: JSONFilter; + /** Filter by the object’s `verify` field. */ + verify?: JSONFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `action` field. */ + action?: StringFilter; + /** Filter by the object’s `actionId` field. */ + actionId?: UUIDFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: AstMigrationFilter[]; + /** Checks for any expressions in this list. */ + or?: AstMigrationFilter[]; + /** Negates the expression. */ + not?: AstMigrationFilter; +} export interface WebauthnSettingFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; @@ -4573,40 +4629,6 @@ export interface WebauthnSettingFilter { /** A related `userField` exists. */ userFieldExists?: boolean; } -export interface AstMigrationFilter { - /** Filter by the object’s `id` field. */ - id?: IntFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `requires` field. */ - requires?: StringListFilter; - /** Filter by the object’s `payload` field. */ - payload?: JSONFilter; - /** Filter by the object’s `deploys` field. */ - deploys?: StringFilter; - /** Filter by the object’s `deploy` field. */ - deploy?: JSONFilter; - /** Filter by the object’s `revert` field. */ - revert?: JSONFilter; - /** Filter by the object’s `verify` field. */ - verify?: JSONFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `action` field. */ - action?: StringFilter; - /** Filter by the object’s `actionId` field. */ - actionId?: UUIDFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: AstMigrationFilter[]; - /** Checks for any expressions in this list. */ - or?: AstMigrationFilter[]; - /** Negates the expression. */ - not?: AstMigrationFilter; -} // ============ OrderBy Types ============ export type FunctionOrderBy = | 'NATURAL' @@ -4682,6 +4704,8 @@ export type TableOrderBy = | 'SINGULAR_NAME_DESC' | 'TAGS_ASC' | 'TAGS_DESC' + | 'STEP_UP_ASC' + | 'STEP_UP_DESC' | 'PARTITIONED_ASC' | 'PARTITIONED_DESC' | 'PARTITION_STRATEGY_ASC' @@ -4748,6 +4772,10 @@ export type FieldOrderBy = | 'API_REQUIRED_DESC' | 'DEFAULT_VALUE_ASC' | 'DEFAULT_VALUE_DESC' + | 'GENERATION_EXPRESSION_ASC' + | 'GENERATION_EXPRESSION_DESC' + | 'GENERATION_TYPE_ASC' + | 'GENERATION_TYPE_DESC' | 'TYPE_ASC' | 'TYPE_DESC' | 'FIELD_ORDER_ASC' @@ -4922,6 +4950,8 @@ export type PolicyOrderBy = | 'POLICY_TYPE_DESC' | 'DATA_ASC' | 'DATA_DESC' + | 'WITH_CHECK_ASC' + | 'WITH_CHECK_DESC' | 'SMART_TAGS_ASC' | 'SMART_TAGS_DESC' | 'CATEGORY_ASC' @@ -5592,6 +5622,8 @@ export type DatabaseOrderBy = | 'LABEL_DESC' | 'HASH_ASC' | 'HASH_DESC' + | 'PLATFORM_ASC' + | 'PLATFORM_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' @@ -5686,6 +5718,34 @@ export type DatabaseSettingOrderBy = | 'LABELS_DESC' | 'ANNOTATIONS_ASC' | 'ANNOTATIONS_DESC'; +export type AstMigrationOrderBy = + | 'NATURAL' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'REQUIRES_ASC' + | 'REQUIRES_DESC' + | 'PAYLOAD_ASC' + | 'PAYLOAD_DESC' + | 'DEPLOYS_ASC' + | 'DEPLOYS_DESC' + | 'DEPLOY_ASC' + | 'DEPLOY_DESC' + | 'REVERT_ASC' + | 'REVERT_DESC' + | 'VERIFY_ASC' + | 'VERIFY_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'ACTION_ASC' + | 'ACTION_DESC' + | 'ACTION_ID_ASC' + | 'ACTION_ID_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC'; export type WebauthnSettingOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -5726,34 +5786,6 @@ export type WebauthnSettingOrderBy = | 'RESIDENT_KEY_DESC' | 'CHALLENGE_EXPIRY_SECONDS_ASC' | 'CHALLENGE_EXPIRY_SECONDS_DESC'; -export type AstMigrationOrderBy = - | 'NATURAL' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'REQUIRES_ASC' - | 'REQUIRES_DESC' - | 'PAYLOAD_ASC' - | 'PAYLOAD_DESC' - | 'DEPLOYS_ASC' - | 'DEPLOYS_DESC' - | 'DEPLOY_ASC' - | 'DEPLOY_DESC' - | 'REVERT_ASC' - | 'REVERT_DESC' - | 'VERIFY_ASC' - | 'VERIFY_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'ACTION_ASC' - | 'ACTION_DESC' - | 'ACTION_ID_ASC' - | 'ACTION_ID_DESC' - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC'; // ============ CRUD Input Types ============ export interface CreateFunctionInput { clientMutationId?: string; @@ -5829,6 +5861,7 @@ export interface CreateTableInput { pluralName?: string; singularName?: string; tags?: string[]; + stepUp?: Record; partitioned?: boolean; partitionStrategy?: string; partitionKeyNames?: string[]; @@ -5850,6 +5883,7 @@ export interface TablePatch { pluralName?: string | null; singularName?: string | null; tags?: string[] | null; + stepUp?: Record | null; partitioned?: boolean | null; partitionStrategy?: string | null; partitionKeyNames?: string[] | null; @@ -5911,6 +5945,8 @@ export interface CreateFieldInput { isRequired?: boolean; apiRequired?: boolean; defaultValue?: Record; + generationExpression?: Record; + generationType?: string; type: Record; fieldOrder?: number; regexp?: string; @@ -5932,6 +5968,8 @@ export interface FieldPatch { isRequired?: boolean | null; apiRequired?: boolean | null; defaultValue?: Record | null; + generationExpression?: Record | null; + generationType?: string | null; type?: Record | null; fieldOrder?: number | null; regexp?: string | null; @@ -6115,6 +6153,7 @@ export interface CreatePolicyInput { disabled?: boolean; policyType?: string; data?: Record; + withCheck?: Record; smartTags?: Record; category?: ObjectCategory; tags?: string[]; @@ -6130,6 +6169,7 @@ export interface PolicyPatch { disabled?: boolean | null; policyType?: string | null; data?: Record | null; + withCheck?: Record | null; smartTags?: Record | null; category?: ObjectCategory | null; tags?: string[] | null; @@ -7069,6 +7109,7 @@ export interface CreateDatabaseInput { name?: string; label?: string; hash?: string; + platform?: boolean; }; } export interface DatabasePatch { @@ -7077,6 +7118,7 @@ export interface DatabasePatch { name?: string | null; label?: string | null; hash?: string | null; + platform?: boolean | null; } export interface UpdateDatabaseInput { clientMutationId?: string; @@ -7207,6 +7249,44 @@ export interface DeleteDatabaseSettingInput { clientMutationId?: string; id: string; } +export interface CreateAstMigrationInput { + clientMutationId?: string; + astMigration: { + databaseId?: string; + name?: string; + requires?: string[]; + payload?: Record; + deploys?: string; + deploy?: Record; + revert?: Record; + verify?: Record; + action?: string; + actionId?: string; + actorId?: string; + }; +} +export interface AstMigrationPatch { + databaseId?: string | null; + name?: string | null; + requires?: string[] | null; + payload?: Record | null; + deploys?: string | null; + deploy?: Record | null; + revert?: Record | null; + verify?: Record | null; + action?: string | null; + actionId?: string | null; + actorId?: string | null; +} +export interface UpdateAstMigrationInput { + clientMutationId?: string; + id: number; + astMigrationPatch: AstMigrationPatch; +} +export interface DeleteAstMigrationInput { + clientMutationId?: string; + id: number; +} export interface CreateWebauthnSettingInput { clientMutationId?: string; webauthnSetting: { @@ -7257,44 +7337,6 @@ export interface DeleteWebauthnSettingInput { clientMutationId?: string; id: string; } -export interface CreateAstMigrationInput { - clientMutationId?: string; - astMigration: { - databaseId?: string; - name?: string; - requires?: string[]; - payload?: Record; - deploys?: string; - deploy?: Record; - revert?: Record; - verify?: Record; - action?: string; - actionId?: string; - actorId?: string; - }; -} -export interface AstMigrationPatch { - databaseId?: string | null; - name?: string | null; - requires?: string[] | null; - payload?: Record | null; - deploys?: string | null; - deploy?: Record | null; - revert?: Record | null; - verify?: Record | null; - action?: string | null; - actionId?: string | null; - actorId?: string | null; -} -export interface UpdateAstMigrationInput { - clientMutationId?: string; - id: number; - astMigrationPatch: AstMigrationPatch; -} -export interface DeleteAstMigrationInput { - clientMutationId?: string; - id: number; -} // ============ Connection Fields Map ============ export const connectionFieldsMap = { Schema: { @@ -7399,24 +7441,6 @@ export interface RejectDatabaseTransferInput { clientMutationId?: string; transferId?: string; } -export interface ProvisionDatabaseWithUserInput { - clientMutationId?: string; - pDatabaseName?: string; - pDomain?: string; - pSubdomain?: string; - pModules?: Record; - pOptions?: Record; -} -export interface BootstrapUserInput { - clientMutationId?: string; - targetDatabaseId?: string; - password?: string; - isAdmin?: boolean; - isOwner?: boolean; - username?: string; - displayName?: string; - returnApiKey?: boolean; -} export interface SetFieldOrderInput { clientMutationId?: string; fieldIds?: string[]; @@ -7431,15 +7455,14 @@ export interface ApplyRlsInput { permissive?: boolean; name?: string; } -export interface CreateUserDatabaseInput { +export interface RequestDatabaseInput { clientMutationId?: string; databaseName?: string; - ownerId?: string; - includeInvites?: boolean; - includeGroups?: boolean; - includeLevels?: boolean; - bitlen?: number; - tokensExpiration?: IntervalInput; + domain?: string; + presetSlug?: string; + modules?: Record; + options?: Record; + subdomain?: string; } export interface ProvisionBucketInput { /** The logical bucket key (e.g., "public", "private") */ @@ -8479,6 +8502,8 @@ export interface TableInput { pluralName?: string; singularName?: string; tags?: string[]; + /** Declarative step-up auth guard: jsonb object mapping DML verbs (INSERT, UPDATE, DELETE) to a step-up spec. Values: true (default password_or_mfa), a type string (password / mfa / password_or_mfa), or an object {type, min_age, min_age_lookup, conditions} where min_age is an interval string (e.g. 6 hours) gating the guard to rows older than that age (UPDATE/DELETE only), min_age_lookup resolves per-row windows from a lookup table, and conditions is a declarative WHEN-clause tree compiled by build_condition_expr. */ + stepUp?: Record; partitioned?: boolean; partitionStrategy?: string; partitionKeyNames?: string[]; @@ -8514,6 +8539,8 @@ export interface FieldInput { isRequired?: boolean; apiRequired?: boolean; defaultValue?: Record; + generationExpression?: Record; + generationType?: string; type: Record; fieldOrder?: number; regexp?: string; @@ -8606,6 +8633,8 @@ export interface PolicyInput { disabled?: boolean; policyType?: string; data?: Record; + /** Optional WITH CHECK override node {"$type": "Authz...", "data": {...}}. Only valid for UPDATE policies; NULL inherits the USING expression. */ + withCheck?: Record; smartTags?: Record; category?: ObjectCategory; tags?: string[]; @@ -9066,6 +9095,7 @@ export interface DatabaseInput { name?: string; label?: string; hash?: string; + platform?: boolean; createdAt?: string; updatedAt?: string; } @@ -9145,6 +9175,22 @@ export interface DatabaseSettingInput { /** Freeform metadata for tooling and operational notes */ annotations?: Record; } +/** An input for mutations affecting `AstMigration` */ +export interface AstMigrationInput { + id?: number; + databaseId?: string; + name?: string; + requires?: string[]; + payload?: Record; + deploys?: string; + deploy?: Record; + revert?: Record; + verify?: Record; + createdAt?: string; + action?: string; + actionId?: string; + actorId?: string; +} /** An input for mutations affecting `WebauthnSetting` */ export interface WebauthnSettingInput { /** Unique identifier for this WebAuthn settings record */ @@ -9184,41 +9230,6 @@ export interface WebauthnSettingInput { /** Challenge TTL in seconds (default 300 = 5 minutes) */ challengeExpirySeconds?: string; } -/** An input for mutations affecting `AstMigration` */ -export interface AstMigrationInput { - id?: number; - databaseId?: string; - name?: string; - requires?: string[]; - payload?: Record; - deploys?: string; - deploy?: Record; - revert?: Record; - verify?: Record; - createdAt?: string; - action?: string; - actionId?: string; - actorId?: string; -} -/** An interval of time that has passed where the smallest distinct unit is a second. */ -export interface IntervalInput { - /** - * A quantity of seconds. This is the only non-integer field, as all the other - * fields will dump their overflow into a smaller unit of time. Intervals don’t - * have a smaller unit than seconds. - */ - seconds?: number; - /** A quantity of minutes. */ - minutes?: number; - /** A quantity of hours. */ - hours?: number; - /** A quantity of days. */ - days?: number; - /** A quantity of months. */ - months?: number; - /** A quantity of years. */ - years?: number; -} /** A filter to be used against `Table` object types. All fields are combined with a logical ‘and.’ */ export interface TableFilter { /** Filter by the object’s `id` field. */ @@ -9249,6 +9260,8 @@ export interface TableFilter { singularName?: StringFilter; /** Filter by the object’s `tags` field. */ tags?: StringListFilter; + /** Filter by the object’s `stepUp` field. */ + stepUp?: JSONFilter; /** Filter by the object’s `partitioned` field. */ partitioned?: BooleanFilter; /** Filter by the object’s `partitionStrategy` field. */ @@ -9624,6 +9637,10 @@ export interface FieldFilter { apiRequired?: BooleanFilter; /** Filter by the object’s `defaultValue` field. */ defaultValue?: JSONFilter; + /** Filter by the object’s `generationExpression` field. */ + generationExpression?: JSONFilter; + /** Filter by the object’s `generationType` field. */ + generationType?: StringFilter; /** Filter by the object’s `type` field. */ type?: JSONFilter; /** Filter by the object’s `fieldOrder` field. */ @@ -9814,6 +9831,8 @@ export interface PolicyFilter { policyType?: StringFilter; /** Filter by the object’s `data` field. */ data?: JSONFilter; + /** Filter by the object’s `withCheck` field. */ + withCheck?: JSONFilter; /** Filter by the object’s `smartTags` field. */ smartTags?: JSONFilter; /** Filter by the object’s `category` field. */ @@ -10900,6 +10919,8 @@ export interface DatabaseFilter { label?: StringFilter; /** Filter by the object’s `hash` field. */ hash?: UUIDFilter; + /** Filter by the object’s `platform` field. */ + platform?: BooleanFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; /** Filter by the object’s `updatedAt` field. */ @@ -11454,26 +11475,6 @@ export type RejectDatabaseTransferPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; -export interface ProvisionDatabaseWithUserPayload { - clientMutationId?: string | null; - result?: ProvisionDatabaseWithUserRecord[] | null; -} -export type ProvisionDatabaseWithUserPayloadSelect = { - clientMutationId?: boolean; - result?: { - select: ProvisionDatabaseWithUserRecordSelect; - }; -}; -export interface BootstrapUserPayload { - clientMutationId?: string | null; - result?: BootstrapUserRecord[] | null; -} -export type BootstrapUserPayloadSelect = { - clientMutationId?: boolean; - result?: { - select: BootstrapUserRecordSelect; - }; -}; export interface SetFieldOrderPayload { clientMutationId?: string | null; } @@ -11486,13 +11487,15 @@ export interface ApplyRlsPayload { export type ApplyRlsPayloadSelect = { clientMutationId?: boolean; }; -export interface CreateUserDatabasePayload { +export interface RequestDatabasePayload { clientMutationId?: string | null; - result?: string | null; + result?: DatabaseProvisionModule | null; } -export type CreateUserDatabasePayloadSelect = { +export type RequestDatabasePayloadSelect = { clientMutationId?: boolean; - result?: boolean; + result?: { + select: DatabaseProvisionModuleSelect; + }; }; export interface ProvisionBucketPayload { /** Whether provisioning succeeded */ @@ -13428,6 +13431,17 @@ export type DeleteDatabaseSettingPayloadSelect = { select: DatabaseSettingEdgeSelect; }; }; +export interface CreateAstMigrationPayload { + clientMutationId?: string | null; + /** The `AstMigration` that was created by this mutation. */ + astMigration?: AstMigration | null; +} +export type CreateAstMigrationPayloadSelect = { + clientMutationId?: boolean; + astMigration?: { + select: AstMigrationSelect; + }; +}; export interface CreateWebauthnSettingPayload { clientMutationId?: string | null; /** The `WebauthnSetting` that was created by this mutation. */ @@ -13473,44 +13487,59 @@ export type DeleteWebauthnSettingPayloadSelect = { select: WebauthnSettingEdgeSelect; }; }; -export interface CreateAstMigrationPayload { - clientMutationId?: string | null; - /** The `AstMigration` that was created by this mutation. */ - astMigration?: AstMigration | null; +/** Tracks database provisioning requests and their status. The BEFORE INSERT trigger creates the database and sets database_id before RLS policies are evaluated. */ +export interface DatabaseProvisionModule { + id: string; + /** The name for the new database */ + databaseName: string; + /** UUID of the user who owns this database */ + ownerId: string; + /** Subdomain prefix for the database. If null, auto-generated using unique_names + random chars */ + subdomain?: string | null; + /** Base domain for the database (e.g., example.com) */ + domain: string; + /** JSONB array of modules to install. Each element is either a string ("users_module") or a [name, options] tuple (["permissions_module", {"scope": "app"}]) */ + modules: Record; + /** Additional configuration options for provisioning */ + options: Record; + /** When true, copies the owner user and password hash from source database to the newly provisioned database */ + bootstrapUser: boolean; + /** Current status: pending, in_progress, completed, or failed */ + status: string; + errorMessage?: string | null; + /** The database the owner user is copied from during bootstrap (captured from JWT context at provision time) */ + sourceDatabaseId?: string | null; + /** Status of the deferred owner bootstrap job: not_requested, pending, completed, or failed */ + bootstrapStatus: string; + /** Error message from the most recent failed bootstrap attempt */ + bootstrapError?: string | null; + /** The ID of the provisioned database (set by trigger before RLS check) */ + databaseId?: string | null; + createdAt: string; + updatedAt: string; + completedAt?: string | null; + /** 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; } -export type CreateAstMigrationPayloadSelect = { - clientMutationId?: boolean; - astMigration?: { - select: AstMigrationSelect; - }; -}; -export interface ProvisionDatabaseWithUserRecord { - outDatabaseId?: string | null; - outApiKey?: string | null; -} -export type ProvisionDatabaseWithUserRecordSelect = { - outDatabaseId?: boolean; - outApiKey?: boolean; -}; -export interface BootstrapUserRecord { - outUserId?: string | null; - outEmail?: string | null; - outUsername?: string | null; - outDisplayName?: string | null; - outIsAdmin?: boolean | null; - outIsOwner?: boolean | null; - outIsSudo?: boolean | null; - outApiKey?: string | null; -} -export type BootstrapUserRecordSelect = { - outUserId?: boolean; - outEmail?: boolean; - outUsername?: boolean; - outDisplayName?: boolean; - outIsAdmin?: boolean; - outIsOwner?: boolean; - outIsSudo?: boolean; - outApiKey?: boolean; +export type DatabaseProvisionModuleSelect = { + id?: boolean; + databaseName?: boolean; + ownerId?: boolean; + subdomain?: boolean; + domain?: boolean; + modules?: boolean; + options?: boolean; + bootstrapUser?: boolean; + status?: boolean; + errorMessage?: boolean; + sourceDatabaseId?: boolean; + bootstrapStatus?: boolean; + bootstrapError?: boolean; + databaseId?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + completedAt?: boolean; + fulfilledAt?: boolean; }; /** A `Function` edge in the connection. */ export interface FunctionEdge { diff --git a/sdk/constructive-react/src/api/orm/models/index.ts b/sdk/constructive-react/src/api/orm/models/index.ts index ddc91f27a9..09182060f7 100644 --- a/sdk/constructive-react/src/api/orm/models/index.ts +++ b/sdk/constructive-react/src/api/orm/models/index.ts @@ -47,5 +47,5 @@ export { DatabaseModel } from './database'; export { RlsSettingModel } from './rlsSetting'; export { SqlActionModel } from './sqlAction'; export { DatabaseSettingModel } from './databaseSetting'; -export { WebauthnSettingModel } from './webauthnSetting'; export { AstMigrationModel } from './astMigration'; +export { WebauthnSettingModel } from './webauthnSetting'; diff --git a/sdk/constructive-react/src/api/orm/mutation/index.ts b/sdk/constructive-react/src/api/orm/mutation/index.ts index ef3c67f877..72af77babd 100644 --- a/sdk/constructive-react/src/api/orm/mutation/index.ts +++ b/sdk/constructive-react/src/api/orm/mutation/index.ts @@ -10,29 +10,23 @@ import type { AcceptDatabaseTransferInput, CancelDatabaseTransferInput, RejectDatabaseTransferInput, - ProvisionDatabaseWithUserInput, - BootstrapUserInput, SetFieldOrderInput, ApplyRlsInput, - CreateUserDatabaseInput, + RequestDatabaseInput, ProvisionBucketInput, AcceptDatabaseTransferPayload, CancelDatabaseTransferPayload, RejectDatabaseTransferPayload, - ProvisionDatabaseWithUserPayload, - BootstrapUserPayload, SetFieldOrderPayload, ApplyRlsPayload, - CreateUserDatabasePayload, + RequestDatabasePayload, ProvisionBucketPayload, AcceptDatabaseTransferPayloadSelect, CancelDatabaseTransferPayloadSelect, RejectDatabaseTransferPayloadSelect, - ProvisionDatabaseWithUserPayloadSelect, - BootstrapUserPayloadSelect, SetFieldOrderPayloadSelect, ApplyRlsPayloadSelect, - CreateUserDatabasePayloadSelect, + RequestDatabasePayloadSelect, ProvisionBucketPayloadSelect, } from '../input-types'; import { connectionFieldsMap } from '../input-types'; @@ -45,12 +39,6 @@ export interface CancelDatabaseTransferVariables { export interface RejectDatabaseTransferVariables { input: RejectDatabaseTransferInput; } -export interface ProvisionDatabaseWithUserVariables { - input: ProvisionDatabaseWithUserInput; -} -export interface BootstrapUserVariables { - input: BootstrapUserInput; -} export interface SetFieldOrderVariables { input: SetFieldOrderInput; } @@ -58,26 +46,17 @@ export interface ApplyRlsVariables { input: ApplyRlsInput; } /** - * Variables for createUserDatabase - * Creates a new user database with all required modules, permissions, and RLS policies. - -Parameters: - - database_name: Name for the new database (required) - - owner_id: UUID of the owner user (required) - - include_invites: Include invite system (default: true) - - include_groups: Include group-level memberships (default: false) - - include_levels: Include events/analytics (default: false) - - bitlen: Bit length for permission masks (default: 64) - - tokens_expiration: Token expiration interval (default: 30 days) + * Variables for requestDatabase + * Requests a database and returns a ticket (database_provision_module row) to poll. -Returns the database_id UUID of the newly created database. +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 with exactly the requested modules. Poll the ticket until status = 'completed'; it then carries database_id and fulfilled_at. Example usage: - SELECT metaschema_public.create_user_database('my_app', 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'::uuid); - SELECT metaschema_public.create_user_database('my_app', 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'::uuid, true, true); -- with invites and groups + SELECT * FROM metaschema_public.request_database('my_app', 'example.com', preset_slug := 'full'); + SELECT * FROM metaschema_public.request_database('my_app', 'example.com', modules := '["users_module", "emails_module"]'::jsonb); */ -export interface CreateUserDatabaseVariables { - input: CreateUserDatabaseInput; +export interface RequestDatabaseVariables { + input: RequestDatabaseInput; } /** * Variables for provisionBucket @@ -178,64 +157,6 @@ export function createMutationOperations(client: OrmClient) { 'RejectDatabaseTransferPayload' ), }), - provisionDatabaseWithUser: ( - args: ProvisionDatabaseWithUserVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - provisionDatabaseWithUser: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'ProvisionDatabaseWithUser', - fieldName: 'provisionDatabaseWithUser', - ...buildCustomDocument( - 'mutation', - 'ProvisionDatabaseWithUser', - 'provisionDatabaseWithUser', - options.select, - args, - [ - { - name: 'input', - type: 'ProvisionDatabaseWithUserInput!', - }, - ], - connectionFieldsMap, - 'ProvisionDatabaseWithUserPayload' - ), - }), - bootstrapUser: ( - args: BootstrapUserVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - bootstrapUser: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'BootstrapUser', - fieldName: 'bootstrapUser', - ...buildCustomDocument( - 'mutation', - 'BootstrapUser', - 'bootstrapUser', - options.select, - args, - [ - { - name: 'input', - type: 'BootstrapUserInput!', - }, - ], - connectionFieldsMap, - 'BootstrapUserPayload' - ), - }), setFieldOrder: ( args: SetFieldOrderVariables, options: { @@ -294,33 +215,33 @@ export function createMutationOperations(client: OrmClient) { 'ApplyRlsPayload' ), }), - createUserDatabase: ( - args: CreateUserDatabaseVariables, + requestDatabase: ( + args: RequestDatabaseVariables, options: { select: S; - } & StrictSelect + } & StrictSelect ) => new QueryBuilder<{ - createUserDatabase: InferSelectResult | null; + requestDatabase: InferSelectResult | null; }>({ client, operation: 'mutation', - operationName: 'CreateUserDatabase', - fieldName: 'createUserDatabase', + operationName: 'RequestDatabase', + fieldName: 'requestDatabase', ...buildCustomDocument( 'mutation', - 'CreateUserDatabase', - 'createUserDatabase', + 'RequestDatabase', + 'requestDatabase', options.select, args, [ { name: 'input', - type: 'CreateUserDatabaseInput!', + type: 'RequestDatabaseInput!', }, ], connectionFieldsMap, - 'CreateUserDatabasePayload' + 'RequestDatabasePayload' ), }), provisionBucket: ( diff --git a/sdk/constructive-react/src/api/schema-types.ts b/sdk/constructive-react/src/api/schema-types.ts index e9022eca81..63a166ef86 100644 --- a/sdk/constructive-react/src/api/schema-types.ts +++ b/sdk/constructive-react/src/api/schema-types.ts @@ -161,6 +161,10 @@ export type FieldOrderBy = | 'API_REQUIRED_DESC' | 'DEFAULT_VALUE_ASC' | 'DEFAULT_VALUE_DESC' + | 'GENERATION_EXPRESSION_ASC' + | 'GENERATION_EXPRESSION_DESC' + | 'GENERATION_TYPE_ASC' + | 'GENERATION_TYPE_DESC' | 'TYPE_ASC' | 'TYPE_DESC' | 'FIELD_ORDER_ASC' @@ -309,6 +313,8 @@ export type PolicyOrderBy = | 'POLICY_TYPE_DESC' | 'DATA_ASC' | 'DATA_DESC' + | 'WITH_CHECK_ASC' + | 'WITH_CHECK_DESC' | 'SMART_TAGS_ASC' | 'SMART_TAGS_DESC' | 'CATEGORY_ASC' @@ -589,6 +595,8 @@ export type TableOrderBy = | 'SINGULAR_NAME_DESC' | 'TAGS_ASC' | 'TAGS_DESC' + | 'STEP_UP_ASC' + | 'STEP_UP_DESC' | 'PARTITIONED_ASC' | 'PARTITIONED_DESC' | 'PARTITION_STRATEGY_ASC' @@ -1101,6 +1109,8 @@ export type DatabaseOrderBy = | 'LABEL_DESC' | 'HASH_ASC' | 'HASH_DESC' + | 'PLATFORM_ASC' + | 'PLATFORM_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' @@ -1198,6 +1208,35 @@ export type DatabaseSettingOrderBy = | 'LABELS_DESC' | 'ANNOTATIONS_ASC' | 'ANNOTATIONS_DESC'; +/** Methods to use when ordering `AstMigration`. */ +export type AstMigrationOrderBy = + | 'NATURAL' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'REQUIRES_ASC' + | 'REQUIRES_DESC' + | 'PAYLOAD_ASC' + | 'PAYLOAD_DESC' + | 'DEPLOYS_ASC' + | 'DEPLOYS_DESC' + | 'DEPLOY_ASC' + | 'DEPLOY_DESC' + | 'REVERT_ASC' + | 'REVERT_DESC' + | 'VERIFY_ASC' + | 'VERIFY_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'ACTION_ASC' + | 'ACTION_DESC' + | 'ACTION_ID_ASC' + | 'ACTION_ID_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC'; /** Methods to use when ordering `WebauthnSetting`. */ export type WebauthnSettingOrderBy = | 'NATURAL' @@ -1239,35 +1278,6 @@ export type WebauthnSettingOrderBy = | 'RESIDENT_KEY_DESC' | 'CHALLENGE_EXPIRY_SECONDS_ASC' | 'CHALLENGE_EXPIRY_SECONDS_DESC'; -/** Methods to use when ordering `AstMigration`. */ -export type AstMigrationOrderBy = - | 'NATURAL' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'REQUIRES_ASC' - | 'REQUIRES_DESC' - | 'PAYLOAD_ASC' - | 'PAYLOAD_DESC' - | 'DEPLOYS_ASC' - | 'DEPLOYS_DESC' - | 'DEPLOY_ASC' - | 'DEPLOY_DESC' - | 'REVERT_ASC' - | 'REVERT_DESC' - | 'VERIFY_ASC' - | 'VERIFY_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'ACTION_ASC' - | 'ACTION_DESC' - | 'ACTION_ID_ASC' - | 'ACTION_ID_DESC' - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC'; /** A filter to be used against `CheckConstraint` object types. All fields are combined with a logical ‘and.’ */ export interface CheckConstraintFilter { /** Filter by the object’s `id` field. */ @@ -1344,6 +1354,8 @@ export interface DatabaseFilter { label?: StringFilter; /** Filter by the object’s `hash` field. */ hash?: UUIDFilter; + /** Filter by the object’s `platform` field. */ + platform?: BooleanFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; /** Filter by the object’s `updatedAt` field. */ @@ -1661,6 +1673,8 @@ export interface TableFilter { singularName?: StringFilter; /** Filter by the object’s `tags` field. */ tags?: StringListFilter; + /** Filter by the object’s `stepUp` field. */ + stepUp?: JSONFilter; /** Filter by the object’s `partitioned` field. */ partitioned?: BooleanFilter; /** Filter by the object’s `partitionStrategy` field. */ @@ -1798,6 +1812,10 @@ export interface FieldFilter { apiRequired?: BooleanFilter; /** Filter by the object’s `defaultValue` field. */ defaultValue?: JSONFilter; + /** Filter by the object’s `generationExpression` field. */ + generationExpression?: JSONFilter; + /** Filter by the object’s `generationType` field. */ + generationType?: StringFilter; /** Filter by the object’s `type` field. */ type?: JSONFilter; /** Filter by the object’s `fieldOrder` field. */ @@ -2078,6 +2096,8 @@ export interface PolicyFilter { policyType?: StringFilter; /** Filter by the object’s `data` field. */ data?: JSONFilter; + /** Filter by the object’s `withCheck` field. */ + withCheck?: JSONFilter; /** Filter by the object’s `smartTags` field. */ smartTags?: JSONFilter; /** Filter by the object’s `category` field. */ @@ -4246,24 +4266,6 @@ export interface RejectDatabaseTransferInput { clientMutationId?: string; transferId?: string; } -export interface ProvisionDatabaseWithUserInput { - clientMutationId?: string; - pDatabaseName?: string; - pDomain?: string; - pSubdomain?: string; - pModules?: unknown; - pOptions?: unknown; -} -export interface BootstrapUserInput { - clientMutationId?: string; - targetDatabaseId?: string; - password?: string; - isAdmin?: boolean; - isOwner?: boolean; - username?: string; - displayName?: string; - returnApiKey?: boolean; -} export interface SetFieldOrderInput { clientMutationId?: string; fieldIds?: string[]; @@ -4278,34 +4280,14 @@ export interface ApplyRlsInput { permissive?: boolean; name?: string; } -export interface CreateUserDatabaseInput { +export interface RequestDatabaseInput { clientMutationId?: string; databaseName?: string; - ownerId?: string; - includeInvites?: boolean; - includeGroups?: boolean; - includeLevels?: boolean; - bitlen?: number; - tokensExpiration?: IntervalInput; -} -/** An interval of time that has passed where the smallest distinct unit is a second. */ -export interface IntervalInput { - /** - * A quantity of seconds. This is the only non-integer field, as all the other - * fields will dump their overflow into a smaller unit of time. Intervals don’t - * have a smaller unit than seconds. - */ - seconds?: number; - /** A quantity of minutes. */ - minutes?: number; - /** A quantity of hours. */ - hours?: number; - /** A quantity of days. */ - days?: number; - /** A quantity of months. */ - months?: number; - /** A quantity of years. */ - years?: number; + domain?: string; + presetSlug?: string; + modules?: unknown; + options?: unknown; + subdomain?: string; } export interface CreateFunctionInput { clientMutationId?: string; @@ -4601,6 +4583,7 @@ export interface DatabaseInput { name?: string; label?: string; hash?: string; + platform?: boolean; createdAt?: string; updatedAt?: string; } @@ -4909,6 +4892,8 @@ export interface PolicyInput { disabled?: boolean; policyType?: string; data?: unknown; + /** Optional WITH CHECK override node {"$type": "Authz...", "data": {...}}. Only valid for UPDATE policies; NULL inherits the USING expression. */ + withCheck?: unknown; smartTags?: unknown; category?: ObjectCategory; tags?: string[]; @@ -5124,6 +5109,27 @@ export interface ForeignKeyConstraintInput { createdAt?: string; updatedAt?: string; } +export interface CreateAstMigrationInput { + clientMutationId?: string; + /** The `AstMigration` to be created by this mutation. */ + astMigration: AstMigrationInput; +} +/** An input for mutations affecting `AstMigration` */ +export interface AstMigrationInput { + id?: number; + databaseId?: string; + name?: string; + requires?: string[]; + payload?: unknown; + deploys?: string; + deploy?: unknown; + revert?: unknown; + verify?: unknown; + createdAt?: string; + action?: string; + actionId?: string; + actorId?: string; +} export interface CreateEmbeddingChunkInput { clientMutationId?: string; /** The `EmbeddingChunk` to be created by this mutation. */ @@ -5197,27 +5203,6 @@ export interface WebauthnSettingInput { /** Challenge TTL in seconds (default 300 = 5 minutes) */ challengeExpirySeconds?: string; } -export interface CreateAstMigrationInput { - clientMutationId?: string; - /** The `AstMigration` to be created by this mutation. */ - astMigration: AstMigrationInput; -} -/** An input for mutations affecting `AstMigration` */ -export interface AstMigrationInput { - id?: number; - databaseId?: string; - name?: string; - requires?: string[]; - payload?: unknown; - deploys?: string; - deploy?: unknown; - revert?: unknown; - verify?: unknown; - createdAt?: string; - action?: string; - actionId?: string; - actorId?: string; -} export interface CreateSchemaInput { clientMutationId?: string; /** The `Schema` to be created by this mutation. */ @@ -5256,6 +5241,8 @@ export interface FieldInput { isRequired?: boolean; apiRequired?: boolean; defaultValue?: unknown; + generationExpression?: unknown; + generationType?: string; type: unknown; fieldOrder?: number; regexp?: string; @@ -5289,6 +5276,8 @@ export interface TableInput { pluralName?: string; singularName?: string; tags?: string[]; + /** Declarative step-up auth guard: jsonb object mapping DML verbs (INSERT, UPDATE, DELETE) to a step-up spec. Values: true (default password_or_mfa), a type string (password / mfa / password_or_mfa), or an object {type, min_age, min_age_lookup, conditions} where min_age is an interval string (e.g. 6 hours) gating the guard to rows older than that age (UPDATE/DELETE only), min_age_lookup resolves per-row windows from a lookup table, and conditions is a declarative WHEN-clause tree compiled by build_condition_expr. */ + stepUp?: unknown; partitioned?: boolean; partitionStrategy?: string; partitionKeyNames?: string[]; @@ -5607,6 +5596,7 @@ export interface DatabasePatch { name?: string; label?: string; hash?: string; + platform?: boolean; createdAt?: string; updatedAt?: string; } @@ -5910,6 +5900,8 @@ export interface PolicyPatch { disabled?: boolean; policyType?: string; data?: unknown; + /** Optional WITH CHECK override node {"$type": "Authz...", "data": {...}}. Only valid for UPDATE policies; NULL inherits the USING expression. */ + withCheck?: unknown; smartTags?: unknown; category?: ObjectCategory; tags?: string[]; @@ -6262,6 +6254,8 @@ export interface FieldPatch { isRequired?: boolean; apiRequired?: boolean; defaultValue?: unknown; + generationExpression?: unknown; + generationType?: string; type?: unknown; fieldOrder?: number; regexp?: string; @@ -6296,6 +6290,8 @@ export interface TablePatch { pluralName?: string; singularName?: string; tags?: string[]; + /** Declarative step-up auth guard: jsonb object mapping DML verbs (INSERT, UPDATE, DELETE) to a step-up spec. Values: true (default password_or_mfa), a type string (password / mfa / password_or_mfa), or an object {type, min_age, min_age_lookup, conditions} where min_age is an interval string (e.g. 6 hours) gating the guard to rows older than that age (UPDATE/DELETE only), min_age_lookup resolves per-row windows from a lookup table, and conditions is a declarative WHEN-clause tree compiled by build_condition_expr. */ + stepUp?: unknown; partitioned?: boolean; partitionStrategy?: string; partitionKeyNames?: string[]; @@ -6780,6 +6776,13 @@ export interface ForeignKeyConstraintConnection { pageInfo: PageInfo; totalCount: number; } +/** A connection to a list of `AstMigration` values. */ +export interface AstMigrationConnection { + nodes: AstMigration[]; + edges: AstMigrationEdge[]; + pageInfo: PageInfo; + totalCount: number; +} /** A connection to a list of `EmbeddingChunk` values. */ export interface EmbeddingChunkConnection { nodes: EmbeddingChunk[]; @@ -6794,13 +6797,6 @@ export interface WebauthnSettingConnection { pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `AstMigration` values. */ -export interface AstMigrationConnection { - nodes: AstMigration[]; - edges: AstMigrationEdge[]; - pageInfo: PageInfo; - totalCount: number; -} /** A connection to a list of `Schema` values. */ export interface SchemaConnection { nodes: Schema[]; @@ -6838,23 +6834,15 @@ export interface RejectDatabaseTransferPayload { clientMutationId?: string | null; result?: boolean | null; } -export interface ProvisionDatabaseWithUserPayload { - clientMutationId?: string | null; - result?: ProvisionDatabaseWithUserRecord[] | null; -} -export interface BootstrapUserPayload { - clientMutationId?: string | null; - result?: BootstrapUserRecord[] | null; -} export interface SetFieldOrderPayload { clientMutationId?: string | null; } export interface ApplyRlsPayload { clientMutationId?: string | null; } -export interface CreateUserDatabasePayload { +export interface RequestDatabasePayload { clientMutationId?: string | null; - result?: string | null; + result?: DatabaseProvisionModule | null; } export interface CreateFunctionPayload { clientMutationId?: string | null; @@ -7094,6 +7082,11 @@ export interface CreateForeignKeyConstraintPayload { foreignKeyConstraint?: ForeignKeyConstraint | null; foreignKeyConstraintEdge?: ForeignKeyConstraintEdge | null; } +export interface CreateAstMigrationPayload { + clientMutationId?: string | null; + /** The `AstMigration` that was created by this mutation. */ + astMigration?: AstMigration | null; +} export interface CreateEmbeddingChunkPayload { clientMutationId?: string | null; /** The `EmbeddingChunk` that was created by this mutation. */ @@ -7106,11 +7099,6 @@ export interface CreateWebauthnSettingPayload { webauthnSetting?: WebauthnSetting | null; webauthnSettingEdge?: WebauthnSettingEdge | null; } -export interface CreateAstMigrationPayload { - clientMutationId?: string | null; - /** The `AstMigration` that was created by this mutation. */ - astMigration?: AstMigration | null; -} export interface CreateSchemaPayload { clientMutationId?: string | null; /** The `Schema` that was created by this mutation. */ @@ -7910,6 +7898,12 @@ export interface ForeignKeyConstraintEdge { /** The `ForeignKeyConstraint` at the end of the edge. */ node?: ForeignKeyConstraint | null; } +/** A `AstMigration` edge in the connection. */ +export interface AstMigrationEdge { + cursor?: string | null; + /** The `AstMigration` at the end of the edge. */ + node?: AstMigration | null; +} /** A `EmbeddingChunk` edge in the connection. */ export interface EmbeddingChunkEdge { cursor?: string | null; @@ -7922,12 +7916,6 @@ export interface WebauthnSettingEdge { /** The `WebauthnSetting` at the end of the edge. */ node?: WebauthnSetting | null; } -/** A `AstMigration` edge in the connection. */ -export interface AstMigrationEdge { - cursor?: string | null; - /** The `AstMigration` at the end of the edge. */ - node?: AstMigration | null; -} /** A `Schema` edge in the connection. */ export interface SchemaEdge { cursor?: string | null; @@ -7968,19 +7956,39 @@ export interface MetaTable { /** Realtime metadata (null if no @realtime tag) */ realtime?: MetaRealtime | null; } -export interface ProvisionDatabaseWithUserRecord { - outDatabaseId?: string | null; - outApiKey?: string | null; -} -export interface BootstrapUserRecord { - outUserId?: string | null; - outEmail?: string | null; - outUsername?: string | null; - outDisplayName?: string | null; - outIsAdmin?: boolean | null; - outIsOwner?: boolean | null; - outIsSudo?: boolean | null; - outApiKey?: string | null; +/** Tracks database provisioning requests and their status. The BEFORE INSERT trigger creates the database and sets database_id before RLS policies are evaluated. */ +export interface DatabaseProvisionModule { + id: string; + /** The name for the new database */ + databaseName: string; + /** UUID of the user who owns this database */ + ownerId: string; + /** Subdomain prefix for the database. If null, auto-generated using unique_names + random chars */ + subdomain?: string | null; + /** Base domain for the database (e.g., example.com) */ + domain: string; + /** JSONB array of modules to install. Each element is either a string ("users_module") or a [name, options] tuple (["permissions_module", {"scope": "app"}]) */ + modules: unknown; + /** Additional configuration options for provisioning */ + options: unknown; + /** When true, copies the owner user and password hash from source database to the newly provisioned database */ + bootstrapUser: boolean; + /** Current status: pending, in_progress, completed, or failed */ + status: string; + errorMessage?: string | null; + /** The database the owner user is copied from during bootstrap (captured from JWT context at provision time) */ + sourceDatabaseId?: string | null; + /** Status of the deferred owner bootstrap job: not_requested, pending, completed, or failed */ + bootstrapStatus: string; + /** Error message from the most recent failed bootstrap attempt */ + bootstrapError?: string | null; + /** The ID of the provisioned database (set by trigger before RLS check) */ + databaseId?: string | null; + createdAt: string; + updatedAt: string; + completedAt?: string | null; + /** 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; } /** Information about a table field/column */ export interface MetaField { diff --git a/sdk/constructive-react/src/api/types.ts b/sdk/constructive-react/src/api/types.ts index 71e58656e5..d8713e80a3 100644 --- a/sdk/constructive-react/src/api/types.ts +++ b/sdk/constructive-react/src/api/types.ts @@ -45,6 +45,7 @@ export interface Table { pluralName: string | null; singularName: string | null; tags: string[] | null; + stepUp: unknown | null; partitioned: boolean | null; partitionStrategy: string | null; partitionKeyNames: string[] | null; @@ -78,6 +79,8 @@ export interface Field { isRequired: boolean | null; apiRequired: boolean | null; defaultValue: unknown | null; + generationExpression: unknown | null; + generationType: string | null; type: unknown | null; fieldOrder: number | null; regexp: string | null; @@ -165,6 +168,7 @@ export interface Policy { disabled: boolean | null; policyType: string | null; data: unknown | null; + withCheck: unknown | null; smartTags: unknown | null; category: ObjectCategory | null; tags: string[] | null; @@ -501,6 +505,7 @@ export interface Database { name: string | null; label: string | null; hash: string | null; + platform: boolean | null; createdAt: string | null; updatedAt: string | null; } @@ -550,6 +555,21 @@ export interface DatabaseSetting { labels: unknown | null; annotations: unknown | null; } +export interface AstMigration { + id: number | null; + databaseId: string | null; + name: string | null; + requires: string[] | null; + payload: unknown | null; + deploys: string | null; + deploy: unknown | null; + revert: unknown | null; + verify: unknown | null; + createdAt: string | null; + action: string | null; + actionId: string | null; + actorId: string | null; +} export interface WebauthnSetting { id: string | null; databaseId: string | null; @@ -570,21 +590,6 @@ export interface WebauthnSetting { residentKey: string | null; challengeExpirySeconds: string | null; } -export interface AstMigration { - id: number | null; - databaseId: string | null; - name: string | null; - requires: string[] | null; - payload: unknown | null; - deploys: string | null; - deploy: unknown | null; - revert: unknown | null; - verify: unknown | null; - createdAt: string | null; - action: string | null; - actionId: string | null; - actorId: string | null; -} export interface StringFilter { isNull?: boolean; equalTo?: string; diff --git a/sdk/constructive-react/src/auth/README.md b/sdk/constructive-react/src/auth/README.md index a8c147a4a4..a422c4e1fc 100644 --- a/sdk/constructive-react/src/auth/README.md +++ b/sdk/constructive-react/src/auth/README.md @@ -10,7 +10,7 @@ - **Tables:** 13 - **Custom queries:** 5 -- **Custom mutations:** 29 +- **Custom mutations:** 30 **Generators:** ORM, React Query diff --git a/sdk/constructive-react/src/auth/hooks/README.md b/sdk/constructive-react/src/auth/hooks/README.md index 7251540918..475cf0a290 100644 --- a/sdk/constructive-react/src/auth/hooks/README.md +++ b/sdk/constructive-react/src/auth/hooks/README.md @@ -103,6 +103,7 @@ function App() { | `useSendAccountDeletionEmailMutation` | Mutation | sendAccountDeletionEmail | | `useCheckPasswordMutation` | Mutation | checkPassword | | `useDeleteOrgPrincipalMutation` | Mutation | deleteOrgPrincipal | +| `useDeletePrincipalMutation` | Mutation | deletePrincipal | | `useDisconnectAccountMutation` | Mutation | disconnectAccount | | `useRevokeApiKeyMutation` | Mutation | revokeApiKey | | `useRevokeSessionMutation` | Mutation | revokeSession | @@ -114,13 +115,13 @@ function App() { | `useVerifyEmailMutation` | Mutation | verifyEmail | | `useProvisionNewUserMutation` | Mutation | provisionNewUser | | `useResetPasswordMutation` | Mutation | resetPassword | +| `useCreateOrgPrincipalMutation` | Mutation | createOrgPrincipal | | `useSignInCrossOriginMutation` | Mutation | signInCrossOrigin | | `useSignInSmsOtpMutation` | Mutation | signInSmsOtp | | `useSignUpSmsMutation` | Mutation | signUpSms | | `useSignUpMutation` | Mutation | signUp | | `useSignInMutation` | Mutation | signIn | | `useLinkIdentityMutation` | Mutation | linkIdentity | -| `useCreateOrgPrincipalMutation` | Mutation | createOrgPrincipal | | `useExtendTokenExpiresMutation` | Mutation | extendTokenExpires | | `useCreateOrgApiKeyMutation` | Mutation | createOrgApiKey | | `useCreateApiKeyMutation` | Mutation | createApiKey | @@ -139,20 +140,20 @@ and lifecycle settings. | ```typescript // List all principals const { data, isLoading } = usePrincipalsQuery({ - selection: { fields: { id: true, createdAt: true, updatedAt: true, ownerId: true, userId: true, name: true, allowedMask: true, isReadOnly: true, bypassStepUp: true } }, + selection: { fields: { id: true, createdAt: true, updatedAt: true, ownerId: true, userId: true, name: true, useAdminOwner: true, isReadOnly: true, bypassStepUp: true } }, }); // Get one principal const { data: item } = usePrincipalQuery({ principalId: '', - selection: { fields: { id: true, createdAt: true, updatedAt: true, ownerId: true, userId: true, name: true, allowedMask: true, isReadOnly: true, bypassStepUp: true } }, + selection: { fields: { id: true, createdAt: true, updatedAt: true, ownerId: true, userId: true, name: true, useAdminOwner: true, isReadOnly: true, bypassStepUp: true } }, }); // Create a principal const { mutate: create } = useCreatePrincipalMutation({ selection: { fields: { principalId: true } }, }); -create({ id: '', ownerId: '', userId: '', name: '', allowedMask: '', isReadOnly: '', bypassStepUp: '' }); +create({ id: '', ownerId: '', userId: '', name: '', useAdminOwner: '', isReadOnly: '', bypassStepUp: '' }); ``` ### PrincipalEntity @@ -181,20 +182,20 @@ create({ principalId: '', entityId: '', ownerId: '' }); ```typescript // List all principalScopeOverrides const { data, isLoading } = usePrincipalScopeOverridesQuery({ - selection: { fields: { id: true, createdAt: true, updatedAt: true, principalId: true, membershipType: true, allowedMask: true, isAdmin: true, isReadOnly: true } }, + selection: { fields: { id: true, createdAt: true, updatedAt: true, principalId: true, membershipType: true, allowedMask: true, useAdminOwner: true, isActive: true, isReadOnly: true } }, }); // Get one principalScopeOverride const { data: item } = usePrincipalScopeOverrideQuery({ id: '', - selection: { fields: { id: true, createdAt: true, updatedAt: true, principalId: true, membershipType: true, allowedMask: true, isAdmin: true, isReadOnly: true } }, + selection: { fields: { id: true, createdAt: true, updatedAt: true, principalId: true, membershipType: true, allowedMask: true, useAdminOwner: true, isActive: true, isReadOnly: true } }, }); // Create a principalScopeOverride const { mutate: create } = useCreatePrincipalScopeOverrideMutation({ selection: { fields: { id: true } }, }); -create({ principalId: '', membershipType: '', allowedMask: '', isAdmin: '', isReadOnly: '' }); +create({ principalId: '', membershipType: '', allowedMask: '', useAdminOwner: '', isActive: '', isReadOnly: '' }); ``` ### Email @@ -486,6 +487,17 @@ deleteOrgPrincipal |----------|------| | `input` | DeleteOrgPrincipalInput (required) | +### `useDeletePrincipalMutation` + +deletePrincipal + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | DeletePrincipalInput (required) | + ### `useDisconnectAccountMutation` disconnectAccount @@ -607,6 +619,17 @@ resetPassword |----------|------| | `input` | ResetPasswordInput (required) | +### `useCreateOrgPrincipalMutation` + +createOrgPrincipal + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | CreateOrgPrincipalInput (required) | + ### `useSignInCrossOriginMutation` signInCrossOrigin @@ -673,17 +696,6 @@ linkIdentity |----------|------| | `input` | LinkIdentityInput (required) | -### `useCreateOrgPrincipalMutation` - -createOrgPrincipal - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | CreateOrgPrincipalInput (required) | - ### `useExtendTokenExpiresMutation` extendTokenExpires diff --git a/sdk/constructive-react/src/auth/hooks/mutation-keys.ts b/sdk/constructive-react/src/auth/hooks/mutation-keys.ts index badc510206..64f5052b51 100644 --- a/sdk/constructive-react/src/auth/hooks/mutation-keys.ts +++ b/sdk/constructive-react/src/auth/hooks/mutation-keys.ts @@ -158,6 +158,10 @@ export const customMutationKeys = { identifier ? (['mutation', 'deleteOrgPrincipal', identifier] as const) : (['mutation', 'deleteOrgPrincipal'] as const), + /** Mutation key for deletePrincipal */ deletePrincipal: (identifier?: string) => + identifier + ? (['mutation', 'deletePrincipal', identifier] as const) + : (['mutation', 'deletePrincipal'] as const), /** Mutation key for disconnectAccount */ disconnectAccount: (identifier?: string) => identifier ? (['mutation', 'disconnectAccount', identifier] as const) @@ -202,6 +206,10 @@ export const customMutationKeys = { identifier ? (['mutation', 'resetPassword', identifier] as const) : (['mutation', 'resetPassword'] as const), + /** Mutation key for createOrgPrincipal */ createOrgPrincipal: (identifier?: string) => + identifier + ? (['mutation', 'createOrgPrincipal', identifier] as const) + : (['mutation', 'createOrgPrincipal'] as const), /** Mutation key for signInCrossOrigin */ signInCrossOrigin: (identifier?: string) => identifier ? (['mutation', 'signInCrossOrigin', identifier] as const) @@ -222,10 +230,6 @@ export const customMutationKeys = { identifier ? (['mutation', 'linkIdentity', identifier] as const) : (['mutation', 'linkIdentity'] as const), - /** Mutation key for createOrgPrincipal */ createOrgPrincipal: (identifier?: string) => - identifier - ? (['mutation', 'createOrgPrincipal', identifier] as const) - : (['mutation', 'createOrgPrincipal'] as const), /** Mutation key for extendTokenExpires */ extendTokenExpires: (identifier?: string) => identifier ? (['mutation', 'extendTokenExpires', identifier] as const) diff --git a/sdk/constructive-react/src/auth/hooks/mutations/index.ts b/sdk/constructive-react/src/auth/hooks/mutations/index.ts index c068e69ef7..dc9c764a47 100644 --- a/sdk/constructive-react/src/auth/hooks/mutations/index.ts +++ b/sdk/constructive-react/src/auth/hooks/mutations/index.ts @@ -4,7 +4,6 @@ * DO NOT EDIT - changes will be overwritten */ export * from './useCreatePrincipalMutation'; -export * from './useDeletePrincipalMutation'; export * from './useCreatePrincipalEntityMutation'; export * from './useUpdatePrincipalEntityMutation'; export * from './useDeletePrincipalEntityMutation'; @@ -37,6 +36,7 @@ export * from './useSignOutMutation'; export * from './useSendAccountDeletionEmailMutation'; export * from './useCheckPasswordMutation'; export * from './useDeleteOrgPrincipalMutation'; +export * from './useDeletePrincipalMutation'; export * from './useDisconnectAccountMutation'; export * from './useRevokeApiKeyMutation'; export * from './useRevokeSessionMutation'; @@ -48,13 +48,13 @@ export * from './useSetPasswordMutation'; export * from './useVerifyEmailMutation'; export * from './useProvisionNewUserMutation'; export * from './useResetPasswordMutation'; +export * from './useCreateOrgPrincipalMutation'; export * from './useSignInCrossOriginMutation'; export * from './useSignInSmsOtpMutation'; export * from './useSignUpSmsMutation'; export * from './useSignUpMutation'; export * from './useSignInMutation'; export * from './useLinkIdentityMutation'; -export * from './useCreateOrgPrincipalMutation'; export * from './useExtendTokenExpiresMutation'; export * from './useCreateOrgApiKeyMutation'; export * from './useCreateApiKeyMutation'; diff --git a/sdk/constructive-react/src/auth/hooks/mutations/useDeletePrincipalMutation.ts b/sdk/constructive-react/src/auth/hooks/mutations/useDeletePrincipalMutation.ts index 80296db9fb..7009505cc9 100644 --- a/sdk/constructive-react/src/auth/hooks/mutations/useDeletePrincipalMutation.ts +++ b/sdk/constructive-react/src/auth/hooks/mutations/useDeletePrincipalMutation.ts @@ -1,98 +1,55 @@ /** - * Scoped sub-identities (API keys and agents) with precomputed SPRT + * Custom mutation hook for deletePrincipal * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ -import { useMutation, useQueryClient } from '@tanstack/react-query'; +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 { principalKeys } from '../query-keys'; -import { principalMutationKeys } from '../mutation-keys'; -import type { PrincipalSelect, PrincipalWithRelations } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { PrincipalSelect, PrincipalWithRelations } from '../../orm/input-types'; -/** - * Scoped sub-identities (API keys and agents) with precomputed SPRT - * - * @example - * ```tsx - * const { mutate, isPending } = useDeletePrincipalMutation({ - * selection: { fields: { id: true } }, - * }); - * - * mutate({ principalId: 'value-to-delete' }); - * ``` - */ -export function useDeletePrincipalMutation( +import { customMutationKeys } from '../mutation-keys'; +import type { DeletePrincipalVariables } from '../../orm/mutation'; +import type { DeletePrincipalPayloadSelect, DeletePrincipalPayload } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; +export type { DeletePrincipalVariables } from '../../orm/mutation'; +export type { DeletePrincipalPayloadSelect } from '../../orm/input-types'; +export function useDeletePrincipalMutation( params: { selection: { - fields: S & PrincipalSelect; - } & HookStrictSelect, PrincipalSelect>; + fields: S & DeletePrincipalPayloadSelect; + } & HookStrictSelect, DeletePrincipalPayloadSelect>; } & Omit< UseMutationOptions< { - deletePrincipal: { - principal: InferSelectResult; - }; + deletePrincipal: InferSelectResult | null; }, Error, - { - principalId: string; - } + DeletePrincipalVariables >, 'mutationFn' > ): UseMutationResult< { - deletePrincipal: { - principal: InferSelectResult; - }; + deletePrincipal: InferSelectResult | null; }, Error, - { - principalId: string; - } ->; -export function useDeletePrincipalMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - { - principalId: string; - } - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); + DeletePrincipalVariables +> { + const args = buildSelectionArgs(params.selection); const { selection: _selection, ...mutationOptions } = params ?? {}; void _selection; - const queryClient = useQueryClient(); return useMutation({ - mutationKey: principalMutationKeys.all, - mutationFn: ({ principalId }: { principalId: string }) => + mutationKey: customMutationKeys.deletePrincipal(), + mutationFn: (variables: DeletePrincipalVariables) => getClient() - .principal.delete({ - where: { - principalId, - }, + .mutation.deletePrincipal(variables, { select: args.select, - }) + } as { + select: S; + } & StrictSelect) .unwrap(), - onSuccess: (_, variables) => { - queryClient.removeQueries({ - queryKey: principalKeys.detail(variables.principalId), - }); - queryClient.invalidateQueries({ - queryKey: principalKeys.lists(), - }); - }, ...mutationOptions, }); } diff --git a/sdk/constructive-react/src/auth/orm/README.md b/sdk/constructive-react/src/auth/orm/README.md index 343ccbb2bd..e92266058a 100644 --- a/sdk/constructive-react/src/auth/orm/README.md +++ b/sdk/constructive-react/src/auth/orm/README.md @@ -51,7 +51,7 @@ CRUD operations for Principal records. | `ownerId` | UUID | Yes | | `userId` | UUID | Yes | | `name` | String | Yes | -| `allowedMask` | BitString | Yes | +| `useAdminOwner` | Boolean | Yes | | `isReadOnly` | Boolean | Yes | | `bypassStepUp` | Boolean | Yes | @@ -59,13 +59,13 @@ CRUD operations for Principal records. ```typescript // List all principal records -const items = await db.principal.findMany({ select: { id: true, createdAt: true, updatedAt: true, ownerId: true, userId: true, name: true, allowedMask: true, isReadOnly: true, bypassStepUp: true } }).execute(); +const items = await db.principal.findMany({ select: { id: true, createdAt: true, updatedAt: true, ownerId: true, userId: true, name: true, useAdminOwner: true, isReadOnly: true, bypassStepUp: true } }).execute(); // Get one by principalId -const item = await db.principal.findOne({ principalId: '', select: { id: true, createdAt: true, updatedAt: true, ownerId: true, userId: true, name: true, allowedMask: true, isReadOnly: true, bypassStepUp: true } }).execute(); +const item = await db.principal.findOne({ principalId: '', select: { id: true, createdAt: true, updatedAt: true, ownerId: true, userId: true, name: true, useAdminOwner: true, isReadOnly: true, bypassStepUp: true } }).execute(); // Create -const created = await db.principal.create({ data: { id: '', ownerId: '', userId: '', name: '', allowedMask: '', isReadOnly: '', bypassStepUp: '' }, select: { principalId: true } }).execute(); +const created = await db.principal.create({ data: { id: '', ownerId: '', userId: '', name: '', useAdminOwner: '', isReadOnly: '', bypassStepUp: '' }, select: { principalId: true } }).execute(); // Update const updated = await db.principal.update({ where: { principalId: '' }, data: { id: '' }, select: { principalId: true } }).execute(); @@ -122,20 +122,21 @@ CRUD operations for PrincipalScopeOverride records. | `principalId` | UUID | Yes | | `membershipType` | Int | Yes | | `allowedMask` | BitString | Yes | -| `isAdmin` | Boolean | Yes | +| `useAdminOwner` | Boolean | Yes | +| `isActive` | Boolean | Yes | | `isReadOnly` | Boolean | Yes | **Operations:** ```typescript // List all principalScopeOverride records -const items = await db.principalScopeOverride.findMany({ select: { id: true, createdAt: true, updatedAt: true, principalId: true, membershipType: true, allowedMask: true, isAdmin: true, isReadOnly: true } }).execute(); +const items = await db.principalScopeOverride.findMany({ select: { id: true, createdAt: true, updatedAt: true, principalId: true, membershipType: true, allowedMask: true, useAdminOwner: true, isActive: true, isReadOnly: true } }).execute(); // Get one by id -const item = await db.principalScopeOverride.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, principalId: true, membershipType: true, allowedMask: true, isAdmin: true, isReadOnly: true } }).execute(); +const item = await db.principalScopeOverride.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, principalId: true, membershipType: true, allowedMask: true, useAdminOwner: true, isActive: true, isReadOnly: true } }).execute(); // Create -const created = await db.principalScopeOverride.create({ data: { principalId: '', membershipType: '', allowedMask: '', isAdmin: '', isReadOnly: '' }, select: { id: true } }).execute(); +const created = await db.principalScopeOverride.create({ data: { principalId: '', membershipType: '', allowedMask: '', useAdminOwner: '', isActive: '', isReadOnly: '' }, select: { id: true } }).execute(); // Update const updated = await db.principalScopeOverride.update({ where: { id: '' }, data: { principalId: '' }, select: { id: true } }).execute(); @@ -633,6 +634,21 @@ deleteOrgPrincipal const result = await db.mutation.deleteOrgPrincipal({ input: { principalId: '' } }).execute(); ``` +### `db.mutation.deletePrincipal` + +deletePrincipal + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | DeletePrincipalInput (required) | + +```typescript +const result = await db.mutation.deletePrincipal({ input: { principalId: '' } }).execute(); +``` + ### `db.mutation.disconnectAccount` disconnectAccount @@ -798,6 +814,21 @@ resetPassword const result = await db.mutation.resetPassword({ input: { roleId: '', resetToken: '', newPassword: '' } }).execute(); ``` +### `db.mutation.createOrgPrincipal` + +createOrgPrincipal + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | CreateOrgPrincipalInput (required) | + +```typescript +const result = await db.mutation.createOrgPrincipal({ input: { name: '', orgId: '', useAdminOwner: '', isReadOnly: '', bypassStepUp: '' } }).execute(); +``` + ### `db.mutation.signInCrossOrigin` signInCrossOrigin @@ -888,21 +919,6 @@ linkIdentity const result = await db.mutation.linkIdentity({ input: { service: '', identifier: '', details: '' } }).execute(); ``` -### `db.mutation.createOrgPrincipal` - -createOrgPrincipal - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | CreateOrgPrincipalInput (required) | - -```typescript -const result = await db.mutation.createOrgPrincipal({ input: { name: '', orgId: '', allowedMask: '', isReadOnly: '', bypassStepUp: '' } }).execute(); -``` - ### `db.mutation.extendTokenExpires` extendTokenExpires diff --git a/sdk/constructive-react/src/auth/orm/input-types.ts b/sdk/constructive-react/src/auth/orm/input-types.ts index f47ec67005..3f7f1df024 100644 --- a/sdk/constructive-react/src/auth/orm/input-types.ts +++ b/sdk/constructive-react/src/auth/orm/input-types.ts @@ -247,8 +247,8 @@ export interface Principal { userId?: string | null; /** Human-readable label for this principal (e.g., billing-bot, ci-deploy-key) */ name?: string | null; - /** Permission bitmask subset; all-1s means inherit all parent permissions */ - allowedMask?: string | null; + /** Whether this principal inherits admin/owner privileges from the owner */ + useAdminOwner?: boolean | null; /** Whether this principal is restricted to read-only operations */ isReadOnly?: boolean | null; /** Whether this principal bypasses MFA step-up requirements */ @@ -275,10 +275,12 @@ export interface PrincipalScopeOverride { principalId?: string | null; /** The scope level (membership_type) this override restricts */ membershipType?: number | null; - /** Permission bitmask for this scope; AND-masked with parent permissions during cascade */ + /** Optional permission mask; AND-masked with parent permissions during cascade. NULL means no extra mask. */ allowedMask?: string | null; - /** Whether this principal has admin access at this scope (default true = inherit from parent) */ - isAdmin?: boolean | null; + /** Whether this principal inherits admin/owner at this scope (default true = inherit from parent) */ + useAdminOwner?: boolean | null; + /** Whether this scope is active for this principal; false disables all access at this scope */ + isActive?: boolean | null; /** Whether this principal is restricted to read-only at this scope */ isReadOnly?: boolean | null; } @@ -506,7 +508,7 @@ export type PrincipalSelect = { ownerId?: boolean; userId?: boolean; name?: boolean; - allowedMask?: boolean; + useAdminOwner?: boolean; isReadOnly?: boolean; bypassStepUp?: boolean; owner?: { @@ -552,7 +554,8 @@ export type PrincipalScopeOverrideSelect = { principalId?: boolean; membershipType?: boolean; allowedMask?: boolean; - isAdmin?: boolean; + useAdminOwner?: boolean; + isActive?: boolean; isReadOnly?: boolean; principal?: { select: PrincipalSelect; @@ -743,8 +746,8 @@ export interface PrincipalFilter { userId?: UUIDFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; - /** Filter by the object’s `allowedMask` field. */ - allowedMask?: BitStringFilter; + /** Filter by the object’s `useAdminOwner` field. */ + useAdminOwner?: BooleanFilter; /** Filter by the object’s `isReadOnly` field. */ isReadOnly?: BooleanFilter; /** Filter by the object’s `bypassStepUp` field. */ @@ -807,8 +810,10 @@ export interface PrincipalScopeOverrideFilter { membershipType?: IntFilter; /** Filter by the object’s `allowedMask` field. */ allowedMask?: BitStringFilter; - /** Filter by the object’s `isAdmin` field. */ - isAdmin?: BooleanFilter; + /** Filter by the object’s `useAdminOwner` field. */ + useAdminOwner?: BooleanFilter; + /** Filter by the object’s `isActive` field. */ + isActive?: BooleanFilter; /** Filter by the object’s `isReadOnly` field. */ isReadOnly?: BooleanFilter; /** Checks for all expressions in this list. */ @@ -1139,8 +1144,8 @@ export type PrincipalOrderBy = | 'USER_ID_DESC' | 'NAME_ASC' | 'NAME_DESC' - | 'ALLOWED_MASK_ASC' - | 'ALLOWED_MASK_DESC' + | 'USE_ADMIN_OWNER_ASC' + | 'USE_ADMIN_OWNER_DESC' | 'IS_READ_ONLY_ASC' | 'IS_READ_ONLY_DESC' | 'BYPASS_STEP_UP_ASC' @@ -1177,8 +1182,10 @@ export type PrincipalScopeOverrideOrderBy = | 'MEMBERSHIP_TYPE_DESC' | 'ALLOWED_MASK_ASC' | 'ALLOWED_MASK_DESC' - | 'IS_ADMIN_ASC' - | 'IS_ADMIN_DESC' + | 'USE_ADMIN_OWNER_ASC' + | 'USE_ADMIN_OWNER_DESC' + | 'IS_ACTIVE_ASC' + | 'IS_ACTIVE_DESC' | 'IS_READ_ONLY_ASC' | 'IS_READ_ONLY_DESC'; export type EmailOrderBy = @@ -1392,7 +1399,7 @@ export interface CreatePrincipalInput { ownerId: string; userId: string; name?: string; - allowedMask?: string; + useAdminOwner?: boolean; isReadOnly?: boolean; bypassStepUp?: boolean; }; @@ -1401,7 +1408,7 @@ export interface PrincipalPatch { ownerId?: string | null; userId?: string | null; name?: string | null; - allowedMask?: string | null; + useAdminOwner?: boolean | null; isReadOnly?: boolean | null; bypassStepUp?: boolean | null; } @@ -1442,7 +1449,8 @@ export interface CreatePrincipalScopeOverrideInput { principalId: string; membershipType?: number; allowedMask?: string; - isAdmin?: boolean; + useAdminOwner?: boolean; + isActive?: boolean; isReadOnly?: boolean; }; } @@ -1450,7 +1458,8 @@ export interface PrincipalScopeOverridePatch { principalId?: string | null; membershipType?: number | null; allowedMask?: string | null; - isAdmin?: boolean | null; + useAdminOwner?: boolean | null; + isActive?: boolean | null; isReadOnly?: boolean | null; } export interface UpdatePrincipalScopeOverrideInput { @@ -1820,6 +1829,14 @@ export interface ResetPasswordInput { resetToken?: string; newPassword?: string; } +export interface CreateOrgPrincipalInput { + clientMutationId?: string; + name?: string; + orgId?: string; + useAdminOwner?: boolean; + isReadOnly?: boolean; + bypassStepUp?: boolean; +} export interface SignInCrossOriginInput { clientMutationId?: string; token?: string; @@ -1865,14 +1882,6 @@ export interface LinkIdentityInput { identifier: string; details?: Record; } -export interface CreateOrgPrincipalInput { - clientMutationId?: string; - name?: string; - orgId?: string; - allowedMask?: string; - isReadOnly?: boolean; - bypassStepUp?: boolean; -} export interface ExtendTokenExpiresInput { clientMutationId?: string; amount?: IntervalInput; @@ -2506,8 +2515,10 @@ export interface PrincipalScopeOverrideFilter { membershipType?: IntFilter; /** Filter by the object’s `allowedMask` field. */ allowedMask?: BitStringFilter; - /** Filter by the object’s `isAdmin` field. */ - isAdmin?: BooleanFilter; + /** Filter by the object’s `useAdminOwner` field. */ + useAdminOwner?: BooleanFilter; + /** Filter by the object’s `isActive` field. */ + isActive?: BooleanFilter; /** Filter by the object’s `isReadOnly` field. */ isReadOnly?: BooleanFilter; /** Checks for all expressions in this list. */ @@ -2533,8 +2544,8 @@ export interface PrincipalFilter { userId?: UUIDFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; - /** Filter by the object’s `allowedMask` field. */ - allowedMask?: BitStringFilter; + /** Filter by the object’s `useAdminOwner` field. */ + useAdminOwner?: BooleanFilter; /** Filter by the object’s `isReadOnly` field. */ isReadOnly?: BooleanFilter; /** Filter by the object’s `bypassStepUp` field. */ @@ -3142,6 +3153,14 @@ export type DeleteOrgPrincipalPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; +export interface DeletePrincipalPayload { + clientMutationId?: string | null; + result?: boolean | null; +} +export type DeletePrincipalPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; export interface DisconnectAccountPayload { clientMutationId?: string | null; result?: boolean | null; @@ -3230,6 +3249,14 @@ export type ResetPasswordPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; +export interface CreateOrgPrincipalPayload { + clientMutationId?: string | null; + result?: string | null; +} +export type CreateOrgPrincipalPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; export interface SignInCrossOriginPayload { clientMutationId?: string | null; result?: SignInCrossOriginRecord | null; @@ -3288,14 +3315,6 @@ export type LinkIdentityPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; -export interface CreateOrgPrincipalPayload { - clientMutationId?: string | null; - result?: string | null; -} -export type CreateOrgPrincipalPayloadSelect = { - clientMutationId?: boolean; - result?: boolean; -}; export interface ExtendTokenExpiresPayload { clientMutationId?: string | null; result?: ExtendTokenExpiresRecord[] | null; @@ -3378,14 +3397,6 @@ export type CreatePrincipalPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; -export interface DeletePrincipalPayload { - clientMutationId?: string | null; - result?: boolean | null; -} -export type DeletePrincipalPayloadSelect = { - clientMutationId?: boolean; - result?: boolean; -}; export interface CreatePrincipalEntityPayload { clientMutationId?: string | null; /** The `PrincipalEntity` that was created by this mutation. */ diff --git a/sdk/constructive-react/src/auth/orm/models/principal.ts b/sdk/constructive-react/src/auth/orm/models/principal.ts index 66c9d2ff40..05e5aa400c 100644 --- a/sdk/constructive-react/src/auth/orm/models/principal.ts +++ b/sdk/constructive-react/src/auth/orm/models/principal.ts @@ -171,38 +171,4 @@ export class PrincipalModel { variables, }); } - delete( - args: DeleteArgs< - { - principalId: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deletePrincipal: { - principal: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'Principal', - 'deletePrincipal', - 'principal', - { - principalId: args.where.principalId, - }, - 'DeletePrincipalInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'Principal', - fieldName: 'deletePrincipal', - document, - variables, - }); - } } diff --git a/sdk/constructive-react/src/auth/orm/mutation/index.ts b/sdk/constructive-react/src/auth/orm/mutation/index.ts index de98ebe402..b7b4ae0b0c 100644 --- a/sdk/constructive-react/src/auth/orm/mutation/index.ts +++ b/sdk/constructive-react/src/auth/orm/mutation/index.ts @@ -11,6 +11,7 @@ import type { SendAccountDeletionEmailInput, CheckPasswordInput, DeleteOrgPrincipalInput, + DeletePrincipalInput, DisconnectAccountInput, RevokeApiKeyInput, RevokeSessionInput, @@ -22,13 +23,13 @@ import type { VerifyEmailInput, ProvisionNewUserInput, ResetPasswordInput, + CreateOrgPrincipalInput, SignInCrossOriginInput, SignInSmsOtpInput, SignUpSmsInput, SignUpInput, SignInInput, LinkIdentityInput, - CreateOrgPrincipalInput, ExtendTokenExpiresInput, CreateOrgApiKeyInput, CreateApiKeyInput, @@ -40,6 +41,7 @@ import type { SendAccountDeletionEmailPayload, CheckPasswordPayload, DeleteOrgPrincipalPayload, + DeletePrincipalPayload, DisconnectAccountPayload, RevokeApiKeyPayload, RevokeSessionPayload, @@ -51,13 +53,13 @@ import type { VerifyEmailPayload, ProvisionNewUserPayload, ResetPasswordPayload, + CreateOrgPrincipalPayload, SignInCrossOriginPayload, SignInSmsOtpPayload, SignUpSmsPayload, SignUpPayload, SignInPayload, LinkIdentityPayload, - CreateOrgPrincipalPayload, ExtendTokenExpiresPayload, CreateOrgApiKeyPayload, CreateApiKeyPayload, @@ -69,6 +71,7 @@ import type { SendAccountDeletionEmailPayloadSelect, CheckPasswordPayloadSelect, DeleteOrgPrincipalPayloadSelect, + DeletePrincipalPayloadSelect, DisconnectAccountPayloadSelect, RevokeApiKeyPayloadSelect, RevokeSessionPayloadSelect, @@ -80,13 +83,13 @@ import type { VerifyEmailPayloadSelect, ProvisionNewUserPayloadSelect, ResetPasswordPayloadSelect, + CreateOrgPrincipalPayloadSelect, SignInCrossOriginPayloadSelect, SignInSmsOtpPayloadSelect, SignUpSmsPayloadSelect, SignUpPayloadSelect, SignInPayloadSelect, LinkIdentityPayloadSelect, - CreateOrgPrincipalPayloadSelect, ExtendTokenExpiresPayloadSelect, CreateOrgApiKeyPayloadSelect, CreateApiKeyPayloadSelect, @@ -108,6 +111,9 @@ export interface CheckPasswordVariables { export interface DeleteOrgPrincipalVariables { input: DeleteOrgPrincipalInput; } +export interface DeletePrincipalVariables { + input: DeletePrincipalInput; +} export interface DisconnectAccountVariables { input: DisconnectAccountInput; } @@ -141,6 +147,9 @@ export interface ProvisionNewUserVariables { export interface ResetPasswordVariables { input: ResetPasswordInput; } +export interface CreateOrgPrincipalVariables { + input: CreateOrgPrincipalInput; +} export interface SignInCrossOriginVariables { input: SignInCrossOriginInput; } @@ -159,9 +168,6 @@ export interface SignInVariables { export interface LinkIdentityVariables { input: LinkIdentityInput; } -export interface CreateOrgPrincipalVariables { - input: CreateOrgPrincipalInput; -} export interface ExtendTokenExpiresVariables { input: ExtendTokenExpiresInput; } @@ -308,6 +314,35 @@ export function createMutationOperations(client: OrmClient) { 'DeleteOrgPrincipalPayload' ), }), + deletePrincipal: ( + args: DeletePrincipalVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + deletePrincipal: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'DeletePrincipal', + fieldName: 'deletePrincipal', + ...buildCustomDocument( + 'mutation', + 'DeletePrincipal', + 'deletePrincipal', + options.select, + args, + [ + { + name: 'input', + type: 'DeletePrincipalInput!', + }, + ], + connectionFieldsMap, + 'DeletePrincipalPayload' + ), + }), disconnectAccount: ( args: DisconnectAccountVariables, options: { @@ -627,6 +662,35 @@ export function createMutationOperations(client: OrmClient) { 'ResetPasswordPayload' ), }), + createOrgPrincipal: ( + args: CreateOrgPrincipalVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + createOrgPrincipal: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'CreateOrgPrincipal', + fieldName: 'createOrgPrincipal', + ...buildCustomDocument( + 'mutation', + 'CreateOrgPrincipal', + 'createOrgPrincipal', + options.select, + args, + [ + { + name: 'input', + type: 'CreateOrgPrincipalInput!', + }, + ], + connectionFieldsMap, + 'CreateOrgPrincipalPayload' + ), + }), signInCrossOrigin: ( args: SignInCrossOriginVariables, options: { @@ -801,35 +865,6 @@ export function createMutationOperations(client: OrmClient) { 'LinkIdentityPayload' ), }), - createOrgPrincipal: ( - args: CreateOrgPrincipalVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - createOrgPrincipal: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'CreateOrgPrincipal', - fieldName: 'createOrgPrincipal', - ...buildCustomDocument( - 'mutation', - 'CreateOrgPrincipal', - 'createOrgPrincipal', - options.select, - args, - [ - { - name: 'input', - type: 'CreateOrgPrincipalInput!', - }, - ], - connectionFieldsMap, - 'CreateOrgPrincipalPayload' - ), - }), extendTokenExpires: ( args: ExtendTokenExpiresVariables, options: { diff --git a/sdk/constructive-react/src/auth/schema-types.ts b/sdk/constructive-react/src/auth/schema-types.ts index a32ffeb46e..4db25568cb 100644 --- a/sdk/constructive-react/src/auth/schema-types.ts +++ b/sdk/constructive-react/src/auth/schema-types.ts @@ -74,8 +74,10 @@ export type PrincipalScopeOverrideOrderBy = | 'MEMBERSHIP_TYPE_DESC' | 'ALLOWED_MASK_ASC' | 'ALLOWED_MASK_DESC' - | 'IS_ADMIN_ASC' - | 'IS_ADMIN_DESC' + | 'USE_ADMIN_OWNER_ASC' + | 'USE_ADMIN_OWNER_DESC' + | 'IS_ACTIVE_ASC' + | 'IS_ACTIVE_DESC' | 'IS_READ_ONLY_ASC' | 'IS_READ_ONLY_DESC'; /** Methods to use when ordering `Principal`. */ @@ -95,8 +97,8 @@ export type PrincipalOrderBy = | 'USER_ID_DESC' | 'NAME_ASC' | 'NAME_DESC' - | 'ALLOWED_MASK_ASC' - | 'ALLOWED_MASK_DESC' + | 'USE_ADMIN_OWNER_ASC' + | 'USE_ADMIN_OWNER_DESC' | 'IS_READ_ONLY_ASC' | 'IS_READ_ONLY_DESC' | 'BYPASS_STEP_UP_ASC' @@ -572,8 +574,8 @@ export interface PrincipalFilter { userId?: UUIDFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; - /** Filter by the object’s `allowedMask` field. */ - allowedMask?: BitStringFilter; + /** Filter by the object’s `useAdminOwner` field. */ + useAdminOwner?: BooleanFilter; /** Filter by the object’s `isReadOnly` field. */ isReadOnly?: BooleanFilter; /** Filter by the object’s `bypassStepUp` field. */ @@ -629,8 +631,10 @@ export interface PrincipalScopeOverrideFilter { membershipType?: IntFilter; /** Filter by the object’s `allowedMask` field. */ allowedMask?: BitStringFilter; - /** Filter by the object’s `isAdmin` field. */ - isAdmin?: BooleanFilter; + /** Filter by the object’s `useAdminOwner` field. */ + useAdminOwner?: BooleanFilter; + /** Filter by the object’s `isActive` field. */ + isActive?: BooleanFilter; /** Filter by the object’s `isReadOnly` field. */ isReadOnly?: BooleanFilter; /** Checks for all expressions in this list. */ @@ -1164,6 +1168,14 @@ export interface ResetPasswordInput { resetToken?: string; newPassword?: string; } +export interface CreateOrgPrincipalInput { + clientMutationId?: string; + name?: string; + orgId?: string; + useAdminOwner?: boolean; + isReadOnly?: boolean; + bypassStepUp?: boolean; +} export interface SignInCrossOriginInput { clientMutationId?: string; token?: string; @@ -1209,11 +1221,11 @@ export interface LinkIdentityInput { identifier: string; details?: unknown; } -export interface CreateOrgPrincipalInput { +export interface CreatePrincipalInput { clientMutationId?: string; name?: string; - orgId?: string; - allowedMask?: string; + useAdminOwner?: boolean; + entityIds?: string[]; isReadOnly?: boolean; bypassStepUp?: boolean; } @@ -1264,14 +1276,6 @@ export interface RequestCrossOriginTokenInput { origin?: ConstructiveInternalTypeOrigin; rememberMe?: boolean; } -export interface CreatePrincipalInput { - clientMutationId?: string; - name?: string; - allowedMask?: string; - entityIds?: string[]; - isReadOnly?: boolean; - bypassStepUp?: boolean; -} export interface ForgotPasswordInput { clientMutationId?: string; email?: ConstructiveInternalTypeEmail; @@ -1758,13 +1762,6 @@ export interface AuditLogAuthConnection { pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `PrincipalScopeOverride` values. */ -export interface PrincipalScopeOverrideConnection { - nodes: PrincipalScopeOverride[]; - edges: PrincipalScopeOverrideEdge[]; - pageInfo: PageInfo; - totalCount: number; -} /** A connection to a list of `OrgApiKeyList` values. */ export interface OrgApiKeyListConnection { nodes: OrgApiKeyList[]; @@ -1772,6 +1769,13 @@ export interface OrgApiKeyListConnection { pageInfo: PageInfo; totalCount: number; } +/** A connection to a list of `PrincipalScopeOverride` values. */ +export interface PrincipalScopeOverrideConnection { + nodes: PrincipalScopeOverride[]; + edges: PrincipalScopeOverrideEdge[]; + pageInfo: PageInfo; + totalCount: number; +} /** A connection to a list of `Email` values. */ export interface EmailConnection { nodes: Email[]; @@ -1859,6 +1863,10 @@ export interface ResetPasswordPayload { clientMutationId?: string | null; result?: boolean | null; } +export interface CreateOrgPrincipalPayload { + clientMutationId?: string | null; + result?: string | null; +} export interface SignInCrossOriginPayload { clientMutationId?: string | null; result?: SignInCrossOriginRecord | null; @@ -1883,7 +1891,7 @@ export interface LinkIdentityPayload { clientMutationId?: string | null; result?: boolean | null; } -export interface CreateOrgPrincipalPayload { +export interface CreatePrincipalPayload { clientMutationId?: string | null; result?: string | null; } @@ -1903,10 +1911,6 @@ export interface RequestCrossOriginTokenPayload { clientMutationId?: string | null; result?: string | null; } -export interface CreatePrincipalPayload { - clientMutationId?: string | null; - result?: string | null; -} export interface ForgotPasswordPayload { clientMutationId?: string | null; } @@ -2146,18 +2150,18 @@ export interface AuditLogAuthEdge { /** The `AuditLogAuth` at the end of the edge. */ node?: AuditLogAuth | null; } -/** A `PrincipalScopeOverride` edge in the connection. */ -export interface PrincipalScopeOverrideEdge { - cursor?: string | null; - /** The `PrincipalScopeOverride` at the end of the edge. */ - node?: PrincipalScopeOverride | null; -} /** A `OrgApiKeyList` edge in the connection. */ export interface OrgApiKeyListEdge { cursor?: string | null; /** The `OrgApiKeyList` at the end of the edge. */ node?: OrgApiKeyList | null; } +/** A `PrincipalScopeOverride` edge in the connection. */ +export interface PrincipalScopeOverrideEdge { + cursor?: string | null; + /** The `PrincipalScopeOverride` at the end of the edge. */ + node?: PrincipalScopeOverride | null; +} /** A `Email` edge in the connection. */ export interface EmailEdge { cursor?: string | null; diff --git a/sdk/constructive-react/src/auth/types.ts b/sdk/constructive-react/src/auth/types.ts index cadd1889c5..ac6115e09c 100644 --- a/sdk/constructive-react/src/auth/types.ts +++ b/sdk/constructive-react/src/auth/types.ts @@ -14,7 +14,7 @@ export interface Principal { ownerId: string | null; userId: string | null; name: string | null; - allowedMask: string | null; + useAdminOwner: boolean | null; isReadOnly: boolean | null; bypassStepUp: boolean | null; } @@ -33,7 +33,8 @@ export interface PrincipalScopeOverride { principalId: string | null; membershipType: number | null; allowedMask: string | null; - isAdmin: boolean | null; + useAdminOwner: boolean | null; + isActive: boolean | null; isReadOnly: boolean | null; } export interface Email { diff --git a/sdk/constructive-react/src/compute/README.md b/sdk/constructive-react/src/compute/README.md index dec5445626..1be0fcd6dd 100644 --- a/sdk/constructive-react/src/compute/README.md +++ b/sdk/constructive-react/src/compute/README.md @@ -8,9 +8,9 @@ ## Overview -- **Tables:** 22 +- **Tables:** 44 - **Custom queries:** 1 -- **Custom mutations:** 14 +- **Custom mutations:** 17 **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 9030296612..3cb33a46ba 100644 --- a/sdk/constructive-react/src/compute/hooks/README.md +++ b/sdk/constructive-react/src/compute/hooks/README.md @@ -32,23 +32,25 @@ function App() { | Hook | Type | Description | |------|------|-------------| +| `useInfraGetAllQuery` | Query | List all infraGetAll | +| `useCreateInfraGetAllRecordMutation` | Mutation | Create a infraGetAllRecord | | `useGetAllQuery` | Query | List all getAll | | `useCreateGetAllRecordMutation` | Mutation | Create a getAllRecord | +| `useInfraRefsQuery` | Query | Branch heads — mutable pointers into the commit chain | +| `useInfraRefQuery` | Query | Branch heads — mutable pointers into the commit chain | +| `useCreateInfraRefMutation` | Mutation | Branch heads — mutable pointers into the commit chain | +| `useUpdateInfraRefMutation` | Mutation | Branch heads — mutable pointers into the commit chain | +| `useDeleteInfraRefMutation` | Mutation | Branch heads — mutable pointers into the commit chain | +| `useInfraStoresQuery` | Query | Named stores — one per version-controlled tree (e.g. one graph, one definition set) | +| `useInfraStoreQuery` | Query | Named stores — one per version-controlled tree (e.g. one graph, one definition set) | +| `useCreateInfraStoreMutation` | Mutation | Named stores — one per version-controlled tree (e.g. one graph, one definition set) | +| `useUpdateInfraStoreMutation` | Mutation | Named stores — one per version-controlled tree (e.g. one graph, one definition set) | +| `useDeleteInfraStoreMutation` | Mutation | Named stores — one per version-controlled tree (e.g. one graph, one definition set) | | `useFunctionApiBindingsQuery` | Query | Join table binding function definitions to API endpoints with per-binding alias and config | | `useFunctionApiBindingQuery` | Query | Join table binding function definitions to API endpoints with per-binding alias and config | | `useCreateFunctionApiBindingMutation` | Mutation | Join table binding function definitions to API endpoints with per-binding alias and config | | `useUpdateFunctionApiBindingMutation` | Mutation | Join table binding function definitions to API endpoints with per-binding alias and config | | `useDeleteFunctionApiBindingMutation` | Mutation | Join table binding function definitions to API endpoints with per-binding alias and config | -| `useFunctionDeploymentsQuery` | Query | Function deployment bindings — ties a function definition to a namespace for Knative provisioning and routing | -| `useFunctionDeploymentQuery` | Query | Function deployment bindings — ties a function definition to a namespace for Knative provisioning and routing | -| `useCreateFunctionDeploymentMutation` | Mutation | Function deployment bindings — ties a function definition to a namespace for Knative provisioning and routing | -| `useUpdateFunctionDeploymentMutation` | Mutation | Function deployment bindings — ties a function definition to a namespace for Knative provisioning and routing | -| `useDeleteFunctionDeploymentMutation` | Mutation | Function deployment bindings — ties a function definition to a namespace for Knative provisioning and routing | -| `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 | -| `useUpdateResourceMutation` | Mutation | Unified K8s resource declarations — stores desired state (spec) and observed state (status) for all resource kinds within a namespace | -| `useDeleteResourceMutation` | Mutation | Unified K8s resource declarations — stores desired state (spec) and observed state (status) for all resource kinds within a namespace | | `useFunctionGraphRefsQuery` | Query | Branch heads — mutable pointers into the commit chain | | `useFunctionGraphRefQuery` | Query | Branch heads — mutable pointers into the commit chain | | `useCreateFunctionGraphRefMutation` | Mutation | Branch heads — mutable pointers into the commit chain | @@ -59,21 +61,85 @@ function App() { | `useCreateFunctionGraphStoreMutation` | Mutation | Named stores — one per version-controlled tree (e.g. one graph, one definition set) | | `useUpdateFunctionGraphStoreMutation` | Mutation | Named stores — one per version-controlled tree (e.g. one graph, one definition set) | | `useDeleteFunctionGraphStoreMutation` | Mutation | Named stores — one per version-controlled tree (e.g. one graph, one definition set) | +| `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 | +| `useUpdatePlatformFunctionApiBindingMutation` | Mutation | Join table binding function definitions to API endpoints with per-binding alias and config | +| `useDeletePlatformFunctionApiBindingMutation` | Mutation | Join table binding function definitions to API endpoints with per-binding alias and config | +| `usePlatformResourcesRequirementsStatesQuery` | Query | List all platformResourcesRequirementsStates | +| `useCreatePlatformResourcesRequirementsStateMutation` | Mutation | Create a platformResourcesRequirementsState | +| `useResourcesRequirementsStatesQuery` | Query | List all resourcesRequirementsStates | +| `useCreateResourcesRequirementsStateMutation` | Mutation | Create a resourcesRequirementsState | +| `usePlatformResourceStatusChecksQuery` | Query | On-demand resource status checks — diagnostic snapshots from the runtime (K8s status, conditions, log tails) | +| `usePlatformResourceStatusCheckQuery` | Query | On-demand resource status checks — diagnostic snapshots from the runtime (K8s status, conditions, log tails) | +| `useCreatePlatformResourceStatusCheckMutation` | Mutation | On-demand resource status checks — diagnostic snapshots from the runtime (K8s status, conditions, log tails) | +| `useUpdatePlatformResourceStatusCheckMutation` | Mutation | On-demand resource status checks — diagnostic snapshots from the runtime (K8s status, conditions, log tails) | +| `useDeletePlatformResourceStatusCheckMutation` | Mutation | On-demand resource status checks — diagnostic snapshots from the runtime (K8s status, conditions, log tails) | +| `usePlatformFunctionDeploymentsQuery` | Query | Function deployment bindings — ties a handler image to a namespace for Knative provisioning and routing (one row per handler image per namespace) | +| `usePlatformFunctionDeploymentQuery` | Query | Function deployment bindings — ties a handler image to a namespace for Knative provisioning and routing (one row per handler image per namespace) | +| `useCreatePlatformFunctionDeploymentMutation` | Mutation | Function deployment bindings — ties a handler image to a namespace for Knative provisioning and routing (one row per handler image per namespace) | +| `useUpdatePlatformFunctionDeploymentMutation` | Mutation | Function deployment bindings — ties a handler image to a namespace for Knative provisioning and routing (one row per handler image per namespace) | +| `useDeletePlatformFunctionDeploymentMutation` | Mutation | Function deployment bindings — ties a handler image to a namespace for Knative provisioning and routing (one row per handler image per namespace) | +| `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 | +| `useUpdatePlatformResourceMutation` | Mutation | Unified K8s resource declarations — stores desired state (spec) and observed state (status) for all resource kinds within a namespace | +| `useDeletePlatformResourceMutation` | Mutation | Unified K8s resource declarations — stores desired state (spec) and observed state (status) for all resource kinds within a namespace | +| `usePlatformResourceDefinitionsQuery` | Query | Resource definitions — templates for resource kinds declaring default spec and secret/config requirements | +| `usePlatformResourceDefinitionQuery` | Query | Resource definitions — templates for resource kinds declaring default spec and secret/config requirements | +| `useCreatePlatformResourceDefinitionMutation` | Mutation | Resource definitions — templates for resource kinds declaring default spec and secret/config requirements | +| `useUpdatePlatformResourceDefinitionMutation` | Mutation | Resource definitions — templates for resource kinds declaring default spec and secret/config requirements | +| `useDeletePlatformResourceDefinitionMutation` | Mutation | Resource definitions — templates for resource kinds declaring default spec and secret/config requirements | +| `useInfraObjectsQuery` | Query | Content-addressed Merkle tree objects keyed by UUID v5 hash of data + children | +| `useInfraObjectQuery` | Query | Content-addressed Merkle tree objects keyed by UUID v5 hash of data + children | +| `useCreateInfraObjectMutation` | Mutation | Content-addressed Merkle tree objects keyed by UUID v5 hash of data + children | +| `useUpdateInfraObjectMutation` | Mutation | Content-addressed Merkle tree objects keyed by UUID v5 hash of data + children | +| `useDeleteInfraObjectMutation` | Mutation | Content-addressed Merkle tree objects keyed by UUID v5 hash of data + children | | `useFunctionGraphObjectsQuery` | Query | Content-addressed Merkle tree objects keyed by UUID v5 hash of data + children | | `useFunctionGraphObjectQuery` | Query | Content-addressed Merkle tree objects keyed by UUID v5 hash of data + children | | `useCreateFunctionGraphObjectMutation` | Mutation | Content-addressed Merkle tree objects keyed by UUID v5 hash of data + children | | `useUpdateFunctionGraphObjectMutation` | Mutation | Content-addressed Merkle tree objects keyed by UUID v5 hash of data + children | | `useDeleteFunctionGraphObjectMutation` | Mutation | Content-addressed Merkle tree objects keyed by UUID v5 hash of data + children | +| `usePlatformFunctionDeploymentEventsQuery` | Query | Deployment lifecycle events — audit log of provisioning, scaling, and failure events | +| `usePlatformFunctionDeploymentEventQuery` | Query | Deployment lifecycle events — audit log of provisioning, scaling, and failure events | +| `useCreatePlatformFunctionDeploymentEventMutation` | Mutation | Deployment lifecycle events — audit log of provisioning, scaling, and failure events | +| `useUpdatePlatformFunctionDeploymentEventMutation` | Mutation | Deployment lifecycle events — audit log of provisioning, scaling, and failure events | +| `useDeletePlatformFunctionDeploymentEventMutation` | Mutation | Deployment lifecycle events — audit log of provisioning, scaling, and failure events | +| `usePlatformResourceEventsQuery` | Query | Resource lifecycle events — audit log of provisioning, updates, and failure events | +| `usePlatformResourceEventQuery` | Query | Resource lifecycle events — audit log of provisioning, updates, and failure events | +| `useCreatePlatformResourceEventMutation` | Mutation | Resource lifecycle events — audit log of provisioning, updates, and failure events | +| `useUpdatePlatformResourceEventMutation` | Mutation | Resource lifecycle events — audit log of provisioning, updates, and failure events | +| `useDeletePlatformResourceEventMutation` | Mutation | Resource lifecycle events — audit log of provisioning, updates, and failure events | +| `useResourceStatusChecksQuery` | Query | On-demand resource status checks — diagnostic snapshots from the runtime (K8s status, conditions, log tails) | +| `useResourceStatusCheckQuery` | Query | On-demand resource status checks — diagnostic snapshots from the runtime (K8s status, conditions, log tails) | +| `useCreateResourceStatusCheckMutation` | Mutation | On-demand resource status checks — diagnostic snapshots from the runtime (K8s status, conditions, log tails) | +| `useUpdateResourceStatusCheckMutation` | Mutation | On-demand resource status checks — diagnostic snapshots from the runtime (K8s status, conditions, log tails) | +| `useDeleteResourceStatusCheckMutation` | Mutation | On-demand resource status checks — diagnostic snapshots from the runtime (K8s status, conditions, log tails) | +| `useFunctionDeploymentsQuery` | Query | Function deployment bindings — ties a handler image to a namespace for Knative provisioning and routing (one row per handler image per namespace) | +| `useFunctionDeploymentQuery` | Query | Function deployment bindings — ties a handler image to a namespace for Knative provisioning and routing (one row per handler image per namespace) | +| `useCreateFunctionDeploymentMutation` | Mutation | Function deployment bindings — ties a handler image to a namespace for Knative provisioning and routing (one row per handler image per namespace) | +| `useUpdateFunctionDeploymentMutation` | Mutation | Function deployment bindings — ties a handler image to a namespace for Knative provisioning and routing (one row per handler image per namespace) | +| `useDeleteFunctionDeploymentMutation` | Mutation | Function deployment bindings — ties a handler image to a namespace for Knative provisioning and routing (one row per handler image per namespace) | +| `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 | +| `useUpdateResourceMutation` | Mutation | Unified K8s resource declarations — stores desired state (spec) and observed state (status) for all resource kinds within a namespace | +| `useDeleteResourceMutation` | Mutation | Unified K8s resource declarations — stores desired state (spec) and observed state (status) for all resource kinds within a namespace | +| `useResourceDefinitionsQuery` | Query | Resource definitions — templates for resource kinds declaring default spec and secret/config requirements | +| `useResourceDefinitionQuery` | Query | Resource definitions — templates for resource kinds declaring default spec and secret/config requirements | +| `useCreateResourceDefinitionMutation` | Mutation | Resource definitions — templates for resource kinds declaring default spec and secret/config requirements | +| `useUpdateResourceDefinitionMutation` | Mutation | Resource definitions — templates for resource kinds declaring default spec and secret/config requirements | +| `useDeleteResourceDefinitionMutation` | Mutation | Resource definitions — templates for resource kinds declaring default spec and secret/config requirements | | `useFunctionDeploymentEventsQuery` | Query | Deployment lifecycle events — audit log of provisioning, scaling, and failure events | | `useFunctionDeploymentEventQuery` | Query | Deployment lifecycle events — audit log of provisioning, scaling, and failure events | | `useCreateFunctionDeploymentEventMutation` | Mutation | Deployment lifecycle events — audit log of provisioning, scaling, and failure events | | `useUpdateFunctionDeploymentEventMutation` | Mutation | Deployment lifecycle events — audit log of provisioning, scaling, and failure events | | `useDeleteFunctionDeploymentEventMutation` | Mutation | Deployment lifecycle events — audit log of provisioning, scaling, and failure events | -| `useOrgFunctionExecutionLogsQuery` | Query | Function execution logs — structured console output per invocation | -| `useOrgFunctionExecutionLogQuery` | Query | Function execution logs — structured console output per invocation | -| `useCreateOrgFunctionExecutionLogMutation` | Mutation | Function execution logs — structured console output per invocation | -| `useUpdateOrgFunctionExecutionLogMutation` | Mutation | Function execution logs — structured console output per invocation | -| `useDeleteOrgFunctionExecutionLogMutation` | Mutation | Function execution logs — structured console output per invocation | +| `usePlatformFunctionExecutionLogsQuery` | Query | Function execution logs — structured console output per invocation | +| `usePlatformFunctionExecutionLogQuery` | Query | Function execution logs — structured console output per invocation | +| `useCreatePlatformFunctionExecutionLogMutation` | Mutation | Function execution logs — structured console output per invocation | +| `useUpdatePlatformFunctionExecutionLogMutation` | Mutation | Function execution logs — structured console output per invocation | +| `useDeletePlatformFunctionExecutionLogMutation` | Mutation | Function execution logs — structured console output per invocation | | `useResourceEventsQuery` | Query | Resource lifecycle events — audit log of provisioning, updates, and failure events | | `useResourceEventQuery` | Query | Resource lifecycle events — audit log of provisioning, updates, and failure events | | `useCreateResourceEventMutation` | Mutation | Resource lifecycle events — audit log of provisioning, updates, and failure events | @@ -84,21 +150,35 @@ function App() { | `useCreateFunctionGraphExecutionOutputMutation` | Mutation | Content-addressed store for execution outputs — hash-referenced from node_outputs | | `useUpdateFunctionGraphExecutionOutputMutation` | Mutation | Content-addressed store for execution outputs — hash-referenced from node_outputs | | `useDeleteFunctionGraphExecutionOutputMutation` | Mutation | Content-addressed store for execution outputs — hash-referenced from node_outputs | +| `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 | +| `useUpdateInfraCommitMutation` | Mutation | Commit history — each commit snapshots a tree root for a store | +| `useDeleteInfraCommitMutation` | Mutation | Commit history — each commit snapshots a tree root for a store | | `useFunctionGraphCommitsQuery` | Query | Commit history — each commit snapshots a tree root for a store | | `useFunctionGraphCommitQuery` | Query | Commit history — each commit snapshots a tree root for a store | | `useCreateFunctionGraphCommitMutation` | Mutation | Commit history — each commit snapshots a tree root for a store | | `useUpdateFunctionGraphCommitMutation` | Mutation | Commit history — each commit snapshots a tree root for a store | | `useDeleteFunctionGraphCommitMutation` | Mutation | Commit history — each commit snapshots a tree root for a store | -| `useSecretDefinitionsQuery` | Query | Global secret name registry — declares which secrets the platform recognizes. Actual values live in app_secrets. | -| `useSecretDefinitionQuery` | Query | Global secret name registry — declares which secrets the platform recognizes. Actual values live in app_secrets. | -| `useCreateSecretDefinitionMutation` | Mutation | Global secret name registry — declares which secrets the platform recognizes. Actual values live in app_secrets. | -| `useUpdateSecretDefinitionMutation` | Mutation | Global secret name registry — declares which secrets the platform recognizes. Actual values live in app_secrets. | -| `useDeleteSecretDefinitionMutation` | Mutation | Global secret name registry — declares which secrets the platform recognizes. Actual values live in app_secrets. | | `useFunctionExecutionLogsQuery` | Query | Function execution logs — structured console output per invocation | | `useFunctionExecutionLogQuery` | Query | Function execution logs — structured console output per invocation | | `useCreateFunctionExecutionLogMutation` | Mutation | Function execution logs — structured console output per invocation | | `useUpdateFunctionExecutionLogMutation` | Mutation | Function execution logs — structured console output per invocation | | `useDeleteFunctionExecutionLogMutation` | Mutation | Function execution logs — structured console output per invocation | +| `usePlatformResourcesResolvedRequirementsQuery` | Query | List all platformResourcesResolvedRequirements | +| `useCreatePlatformResourcesResolvedRequirementMutation` | Mutation | Create a platformResourcesResolvedRequirement | +| `useResourcesResolvedRequirementsQuery` | Query | List all resourcesResolvedRequirements | +| `useCreateResourcesResolvedRequirementMutation` | Mutation | Create a resourcesResolvedRequirement | +| `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 | +| `useUpdateDbPresetMutation` | Mutation | Database provisioning preset catalog — merkle-versioned head over the infra store | +| `useDeleteDbPresetMutation` | Mutation | Database provisioning preset catalog — merkle-versioned head over the infra store | +| `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 | +| `useUpdatePlatformNamespaceMutation` | Mutation | Logical namespace containers for grouping secrets, config, functions, and other resources | +| `useDeletePlatformNamespaceMutation` | Mutation | Logical namespace containers for grouping secrets, config, functions, and other resources | | `useFunctionGraphsQuery` | Query | Flow graph definitions — FBP graphs stored in the dedicated graph Merkle store | | `useFunctionGraphQuery` | Query | Flow graph definitions — FBP graphs stored in the dedicated graph Merkle store | | `useCreateFunctionGraphMutation` | Mutation | Flow graph definitions — FBP graphs stored in the dedicated graph Merkle store | @@ -109,16 +189,16 @@ function App() { | `useCreateFunctionGraphExecutionNodeStateMutation` | Mutation | Per-node execution state — tracks individual node lifecycle for debugging | | `useUpdateFunctionGraphExecutionNodeStateMutation` | Mutation | Per-node execution state — tracks individual node lifecycle for debugging | | `useDeleteFunctionGraphExecutionNodeStateMutation` | Mutation | Per-node execution state — tracks individual node lifecycle for debugging | -| `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 | -| `useUpdatePlatformNamespaceMutation` | Mutation | Logical namespace containers for grouping secrets, config, functions, and other resources | -| `useDeletePlatformNamespaceMutation` | Mutation | Logical namespace containers for grouping secrets, config, functions, and other resources | -| `useOrgFunctionInvocationsQuery` | Query | Function invocation log — INSERT to call a function (business-layer, metered). Linked to definitions by task_identifier string. | -| `useOrgFunctionInvocationQuery` | Query | Function invocation log — INSERT to call a function (business-layer, metered). Linked to definitions by task_identifier string. | -| `useCreateOrgFunctionInvocationMutation` | Mutation | Function invocation log — INSERT to call a function (business-layer, metered). Linked to definitions by task_identifier string. | -| `useUpdateOrgFunctionInvocationMutation` | Mutation | Function invocation log — INSERT to call a function (business-layer, metered). Linked to definitions by task_identifier string. | -| `useDeleteOrgFunctionInvocationMutation` | Mutation | Function invocation log — INSERT to call a function (business-layer, metered). Linked to definitions by task_identifier string. | +| `useNamespacesQuery` | Query | Logical namespace containers for grouping secrets, config, functions, and other resources | +| `useNamespaceQuery` | Query | Logical namespace containers for grouping secrets, config, functions, and other resources | +| `useCreateNamespaceMutation` | Mutation | Logical namespace containers for grouping secrets, config, functions, and other resources | +| `useUpdateNamespaceMutation` | Mutation | Logical namespace containers for grouping secrets, config, functions, and other resources | +| `useDeleteNamespaceMutation` | Mutation | Logical namespace containers for grouping secrets, config, functions, and other resources | +| `usePlatformFunctionInvocationsQuery` | Query | Function invocation log — INSERT to call a function (business-layer, metered). Linked to definitions by task_identifier string. | +| `usePlatformFunctionInvocationQuery` | Query | Function invocation log — INSERT to call a function (business-layer, metered). Linked to definitions by task_identifier string. | +| `useCreatePlatformFunctionInvocationMutation` | Mutation | Function invocation log — INSERT to call a function (business-layer, metered). Linked to definitions by task_identifier string. | +| `useUpdatePlatformFunctionInvocationMutation` | Mutation | Function invocation log — INSERT to call a function (business-layer, metered). Linked to definitions by task_identifier string. | +| `useDeletePlatformFunctionInvocationMutation` | Mutation | Function invocation log — INSERT to call a function (business-layer, metered). Linked to definitions by task_identifier string. | | `useFunctionInvocationsQuery` | Query | Function invocation log — INSERT to call a function (business-layer, metered). Linked to definitions by task_identifier string. | | `useFunctionInvocationQuery` | Query | Function invocation log — INSERT to call a function (business-layer, metered). Linked to definitions by task_identifier string. | | `useCreateFunctionInvocationMutation` | Mutation | Function invocation log — INSERT to call a function (business-layer, metered). Linked to definitions by task_identifier string. | @@ -129,11 +209,26 @@ 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 | +| `useIntegrationProvidersQuery` | Query | Branded catalog of external service integrations and their canonical secret/config requirements. Each row defines a provider (e.g. Mailgun, Postgres) that function and resource definitions can reference by slug. The required_secrets/required_configs arrays are guidance that the UI can copy into a definition; the definition arrays remain the source of truth. | +| `useIntegrationProviderQuery` | Query | Branded catalog of external service integrations and their canonical secret/config requirements. Each row defines a provider (e.g. Mailgun, Postgres) that function and resource definitions can reference by slug. The required_secrets/required_configs arrays are guidance that the UI can copy into a definition; the definition arrays remain the source of truth. | +| `useCreateIntegrationProviderMutation` | Mutation | 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. | +| `useUpdateIntegrationProviderMutation` | Mutation | 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. | +| `useDeleteIntegrationProviderMutation` | Mutation | 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. | +| `useNamespaceEventsQuery` | Query | Namespace lifecycle events — audit log of creation, activation, deactivation, label changes | +| `useNamespaceEventQuery` | Query | Namespace lifecycle events — audit log of creation, activation, deactivation, label changes | +| `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 | | `useFunctionGraphExecutionsQuery` | Query | Ephemeral execution state for flow graph evaluation | | `useFunctionGraphExecutionQuery` | Query | Ephemeral execution state for flow graph evaluation | | `useCreateFunctionGraphExecutionMutation` | Mutation | Ephemeral execution state for flow graph evaluation | | `useUpdateFunctionGraphExecutionMutation` | Mutation | Ephemeral execution state for flow graph evaluation | | `useDeleteFunctionGraphExecutionMutation` | Mutation | Ephemeral execution state for flow graph evaluation | +| `usePlatformFunctionDefinitionsQuery` | Query | Function definitions — registered cloud functions with routing, queue, and retry configuration | +| `usePlatformFunctionDefinitionQuery` | Query | Function definitions — registered cloud functions with routing, queue, and retry configuration | +| `useCreatePlatformFunctionDefinitionMutation` | Mutation | Function definitions — registered cloud functions with routing, queue, and retry configuration | +| `useUpdatePlatformFunctionDefinitionMutation` | Mutation | Function definitions — registered cloud functions with routing, queue, and retry configuration | +| `useDeletePlatformFunctionDefinitionMutation` | Mutation | Function definitions — registered cloud functions with routing, queue, and retry configuration | | `useFunctionDefinitionsQuery` | Query | Function definitions — registered cloud functions with routing, queue, and retry configuration | | `useFunctionDefinitionQuery` | Query | Function definitions — registered cloud functions with routing, queue, and retry configuration | | `useCreateFunctionDefinitionMutation` | Mutation | Function definitions — registered cloud functions with routing, queue, and retry configuration | @@ -141,9 +236,11 @@ function App() { | `useDeleteFunctionDefinitionMutation` | Mutation | Function definitions — registered cloud functions with routing, queue, and retry configuration | | `useReadFunctionGraphQuery` | Query | readFunctionGraph | | `useValidateFunctionGraphMutation` | Mutation | validateFunctionGraph | +| `useInfraInitEmptyRepoMutation` | Mutation | infraInitEmptyRepo | | `useInitEmptyRepoMutation` | Mutation | initEmptyRepo | -| `useSetDataAtPathMutation` | Mutation | setDataAtPath | | `useImportDefinitionsMutation` | Mutation | importDefinitions | +| `useInfraSetDataAtPathMutation` | Mutation | infraSetDataAtPath | +| `useSetDataAtPathMutation` | Mutation | setDataAtPath | | `useCopyGraphMutation` | Mutation | copyGraph | | `useSaveGraphMutation` | Mutation | saveGraph | | `useAddEdgeAndSaveMutation` | Mutation | addEdgeAndSave | @@ -151,6 +248,7 @@ function App() { | `useImportGraphJsonMutation` | Mutation | importGraphJson | | `useAddEdgeMutation` | Mutation | addEdge | | `useAddNodeMutation` | Mutation | addNode | +| `useInfraInsertNodeAtPathMutation` | Mutation | infraInsertNodeAtPath | | `useInsertNodeAtPathMutation` | Mutation | insertNodeAtPath | | `useStartExecutionMutation` | Mutation | startExecution | | `useProvisionBucketMutation` | Mutation | Provision an S3 bucket for a logical bucket in the database. @@ -160,6 +258,21 @@ and lifecycle settings. | ## Table Hooks +### InfraGetAllRecord + +```typescript +// List all infraGetAll +const { data, isLoading } = useInfraGetAllQuery({ + selection: { fields: { path: true, data: true } }, +}); + +// Create a infraGetAllRecord +const { mutate: create } = useCreateInfraGetAllRecordMutation({ + selection: { fields: { id: true } }, +}); +create({ path: '', data: '' }); +``` + ### GetAllRecord ```typescript @@ -175,67 +288,67 @@ const { mutate: create } = useCreateGetAllRecordMutation({ create({ path: '', data: '' }); ``` -### FunctionApiBinding +### InfraRef ```typescript -// List all functionApiBindings -const { data, isLoading } = useFunctionApiBindingsQuery({ - selection: { fields: { id: true, functionDefinitionId: true, apiId: true, alias: true, config: true } }, +// List all infraRefs +const { data, isLoading } = useInfraRefsQuery({ + selection: { fields: { id: true, name: true, scopeId: true, storeId: true, commitId: true } }, }); -// Get one functionApiBinding -const { data: item } = useFunctionApiBindingQuery({ +// Get one infraRef +const { data: item } = useInfraRefQuery({ id: '', - selection: { fields: { id: true, functionDefinitionId: true, apiId: true, alias: true, config: true } }, + selection: { fields: { id: true, name: true, scopeId: true, storeId: true, commitId: true } }, }); -// Create a functionApiBinding -const { mutate: create } = useCreateFunctionApiBindingMutation({ +// Create a infraRef +const { mutate: create } = useCreateInfraRefMutation({ selection: { fields: { id: true } }, }); -create({ functionDefinitionId: '', apiId: '', alias: '', config: '' }); +create({ name: '', scopeId: '', storeId: '', commitId: '' }); ``` -### FunctionDeployment +### InfraStore ```typescript -// List all functionDeployments -const { data, isLoading } = useFunctionDeploymentsQuery({ - selection: { fields: { id: true, createdAt: true, updatedAt: true, functionDefinitionId: true, namespaceId: true, status: true, serviceUrl: true, serviceName: true, revision: true, image: true, concurrency: true, scaleMin: true, scaleMax: true, timeoutSeconds: true, resources: true, lastError: true, lastErrorAt: true, errorCount: true, labels: true, annotations: true, databaseId: true } }, +// List all infraStores +const { data, isLoading } = useInfraStoresQuery({ + selection: { fields: { id: true, name: true, scopeId: true, hash: true, createdAt: true } }, }); -// Get one functionDeployment -const { data: item } = useFunctionDeploymentQuery({ +// Get one infraStore +const { data: item } = useInfraStoreQuery({ id: '', - selection: { fields: { id: true, createdAt: true, updatedAt: true, functionDefinitionId: true, namespaceId: true, status: true, serviceUrl: true, serviceName: true, revision: true, image: true, concurrency: true, scaleMin: true, scaleMax: true, timeoutSeconds: true, resources: true, lastError: true, lastErrorAt: true, errorCount: true, labels: true, annotations: true, databaseId: true } }, + selection: { fields: { id: true, name: true, scopeId: true, hash: true, createdAt: true } }, }); -// Create a functionDeployment -const { mutate: create } = useCreateFunctionDeploymentMutation({ +// Create a infraStore +const { mutate: create } = useCreateInfraStoreMutation({ selection: { fields: { id: true } }, }); -create({ functionDefinitionId: '', namespaceId: '', status: '', serviceUrl: '', serviceName: '', revision: '', image: '', concurrency: '', scaleMin: '', scaleMax: '', timeoutSeconds: '', resources: '', lastError: '', lastErrorAt: '', errorCount: '', labels: '', annotations: '', databaseId: '' }); +create({ name: '', scopeId: '', hash: '' }); ``` -### Resource +### FunctionApiBinding ```typescript -// List all resources -const { data, isLoading } = useResourcesQuery({ - selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, namespaceId: true, kind: true, name: true, slug: true, spec: true, status: true, statusObserved: true, lastError: true, errorCount: true, labels: true, annotations: true, databaseId: true } }, +// List all functionApiBindings +const { data, isLoading } = useFunctionApiBindingsQuery({ + selection: { fields: { id: true, functionDefinitionId: true, apiId: true, alias: true, config: true } }, }); -// Get one resource -const { data: item } = useResourceQuery({ +// Get one functionApiBinding +const { data: item } = useFunctionApiBindingQuery({ id: '', - selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, namespaceId: true, kind: true, name: true, slug: true, spec: true, status: true, statusObserved: true, lastError: true, errorCount: true, labels: true, annotations: true, databaseId: true } }, + selection: { fields: { id: true, functionDefinitionId: true, apiId: true, alias: true, config: true } }, }); -// Create a resource -const { mutate: create } = useCreateResourceMutation({ +// Create a functionApiBinding +const { mutate: create } = useCreateFunctionApiBindingMutation({ selection: { fields: { id: true } }, }); -create({ createdBy: '', updatedBy: '', namespaceId: '', kind: '', name: '', slug: '', spec: '', status: '', statusObserved: '', lastError: '', errorCount: '', labels: '', annotations: '', databaseId: '' }); +create({ functionDefinitionId: '', apiId: '', alias: '', config: '' }); ``` ### FunctionGraphRef @@ -243,20 +356,20 @@ create({ createdBy: '', updatedBy: '', namespaceId: '', kind: ```typescript // List all functionGraphRefs const { data, isLoading } = useFunctionGraphRefsQuery({ - selection: { fields: { id: true, name: true, databaseId: true, storeId: true, commitId: true } }, + selection: { fields: { id: true, name: true, scopeId: true, storeId: true, commitId: true } }, }); // Get one functionGraphRef const { data: item } = useFunctionGraphRefQuery({ id: '', - selection: { fields: { id: true, name: true, databaseId: true, storeId: true, commitId: true } }, + selection: { fields: { id: true, name: true, scopeId: true, storeId: true, commitId: true } }, }); // Create a functionGraphRef const { mutate: create } = useCreateFunctionGraphRefMutation({ selection: { fields: { id: true } }, }); -create({ name: '', databaseId: '', storeId: '', commitId: '' }); +create({ name: '', scopeId: '', storeId: '', commitId: '' }); ``` ### FunctionGraphStore @@ -264,20 +377,176 @@ create({ name: '', databaseId: '', storeId: '', commitId: '< ```typescript // List all functionGraphStores const { data, isLoading } = useFunctionGraphStoresQuery({ - selection: { fields: { id: true, name: true, databaseId: true, hash: true, createdAt: true } }, + selection: { fields: { id: true, name: true, scopeId: true, hash: true, createdAt: true } }, }); // Get one functionGraphStore const { data: item } = useFunctionGraphStoreQuery({ id: '', - selection: { fields: { id: true, name: true, databaseId: true, hash: true, createdAt: true } }, + selection: { fields: { id: true, name: true, scopeId: true, hash: true, createdAt: true } }, }); // Create a functionGraphStore const { mutate: create } = useCreateFunctionGraphStoreMutation({ selection: { fields: { id: true } }, }); -create({ name: '', databaseId: '', hash: '' }); +create({ name: '', scopeId: '', hash: '' }); +``` + +### PlatformFunctionApiBinding + +```typescript +// List all platformFunctionApiBindings +const { data, isLoading } = usePlatformFunctionApiBindingsQuery({ + selection: { fields: { id: true, functionDefinitionId: true, apiId: true, alias: true, config: true } }, +}); + +// Get one platformFunctionApiBinding +const { data: item } = usePlatformFunctionApiBindingQuery({ + id: '', + selection: { fields: { id: true, functionDefinitionId: true, apiId: true, alias: true, config: true } }, +}); + +// Create a platformFunctionApiBinding +const { mutate: create } = useCreatePlatformFunctionApiBindingMutation({ + selection: { fields: { id: true } }, +}); +create({ functionDefinitionId: '', apiId: '', alias: '', config: '' }); +``` + +### PlatformResourcesRequirementsState + +```typescript +// List all platformResourcesRequirementsStates +const { data, isLoading } = usePlatformResourcesRequirementsStatesQuery({ + selection: { fields: { resourceId: true, slug: true, secretsHash: true, configHash: true, requirementsHash: true, secretsObjectName: true, configObjectName: true } }, +}); + +// Create a platformResourcesRequirementsState +const { mutate: create } = useCreatePlatformResourcesRequirementsStateMutation({ + selection: { fields: { id: true } }, +}); +create({ resourceId: '', slug: '', secretsHash: '', configHash: '', requirementsHash: '', secretsObjectName: '', configObjectName: '' }); +``` + +### ResourcesRequirementsState + +```typescript +// List all resourcesRequirementsStates +const { data, isLoading } = useResourcesRequirementsStatesQuery({ + selection: { fields: { resourceId: true, slug: true, secretsHash: true, configHash: true, requirementsHash: true, secretsObjectName: true, configObjectName: true } }, +}); + +// Create a resourcesRequirementsState +const { mutate: create } = useCreateResourcesRequirementsStateMutation({ + selection: { fields: { id: true } }, +}); +create({ resourceId: '', slug: '', secretsHash: '', configHash: '', requirementsHash: '', secretsObjectName: '', configObjectName: '' }); +``` + +### PlatformResourceStatusCheck + +```typescript +// List all platformResourceStatusChecks +const { data, isLoading } = usePlatformResourceStatusChecksQuery({ + selection: { fields: { id: true, resourceId: true, requestedBy: true, requestedAt: true, completedAt: true, status: true, result: true } }, +}); + +// Get one platformResourceStatusCheck +const { data: item } = usePlatformResourceStatusCheckQuery({ + id: '', + selection: { fields: { id: true, resourceId: true, requestedBy: true, requestedAt: true, completedAt: true, status: true, result: true } }, +}); + +// Create a platformResourceStatusCheck +const { mutate: create } = useCreatePlatformResourceStatusCheckMutation({ + selection: { fields: { id: true } }, +}); +create({ resourceId: '', requestedBy: '', requestedAt: '', completedAt: '', status: '', result: '' }); +``` + +### PlatformFunctionDeployment + +```typescript +// List all platformFunctionDeployments +const { data, isLoading } = usePlatformFunctionDeploymentsQuery({ + selection: { fields: { id: true, createdAt: true, updatedAt: true, namespaceId: true, status: true, serviceUrl: true, serviceName: true, revision: true, image: true, imageVersion: true, handlerName: true, concurrency: true, scaleMin: true, scaleMax: true, timeoutSeconds: true, resources: true, lastError: true, lastErrorAt: true, errorCount: true, labels: true, annotations: true } }, +}); + +// Get one platformFunctionDeployment +const { data: item } = usePlatformFunctionDeploymentQuery({ + id: '', + selection: { fields: { id: true, createdAt: true, updatedAt: true, namespaceId: true, status: true, serviceUrl: true, serviceName: true, revision: true, image: true, imageVersion: true, handlerName: true, concurrency: true, scaleMin: true, scaleMax: true, timeoutSeconds: true, resources: true, lastError: true, lastErrorAt: true, errorCount: true, labels: true, annotations: true } }, +}); + +// Create a platformFunctionDeployment +const { mutate: create } = useCreatePlatformFunctionDeploymentMutation({ + selection: { fields: { id: true } }, +}); +create({ namespaceId: '', status: '', serviceUrl: '', serviceName: '', revision: '', image: '', imageVersion: '', handlerName: '', concurrency: '', scaleMin: '', scaleMax: '', timeoutSeconds: '', resources: '', lastError: '', lastErrorAt: '', errorCount: '', labels: '', annotations: '' }); +``` + +### PlatformResource + +```typescript +// List all platformResources +const { data, isLoading } = usePlatformResourcesQuery({ + selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, namespaceId: true, kind: true, name: true, slug: true, spec: true, status: true, statusObserved: true, lastError: true, errorCount: true, labels: true, annotations: true, requiredSecrets: true, requiredConfigs: true, integrations: true, resourceDefinitionId: true } }, +}); + +// Get one platformResource +const { data: item } = usePlatformResourceQuery({ + id: '', + selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, namespaceId: true, kind: true, name: true, slug: true, spec: true, status: true, statusObserved: true, lastError: true, errorCount: true, labels: true, annotations: true, requiredSecrets: true, requiredConfigs: true, integrations: true, resourceDefinitionId: true } }, +}); + +// Create a platformResource +const { mutate: create } = useCreatePlatformResourceMutation({ + selection: { fields: { id: true } }, +}); +create({ createdBy: '', updatedBy: '', namespaceId: '', kind: '', name: '', slug: '', spec: '', status: '', statusObserved: '', lastError: '', errorCount: '', labels: '', annotations: '', requiredSecrets: '', requiredConfigs: '', integrations: '', resourceDefinitionId: '' }); +``` + +### PlatformResourceDefinition + +```typescript +// List all platformResourceDefinitions +const { data, isLoading } = usePlatformResourceDefinitionsQuery({ + selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, namespaceId: true, kind: true, name: true, slug: true, description: true, defaultSpec: true, requiredSecrets: true, requiredConfigs: true, integrations: true, labels: true, annotations: true, stepUpMinAge: true } }, +}); + +// Get one platformResourceDefinition +const { data: item } = usePlatformResourceDefinitionQuery({ + id: '', + selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, namespaceId: true, kind: true, name: true, slug: true, description: true, defaultSpec: true, requiredSecrets: true, requiredConfigs: true, integrations: true, labels: true, annotations: true, stepUpMinAge: true } }, +}); + +// Create a platformResourceDefinition +const { mutate: create } = useCreatePlatformResourceDefinitionMutation({ + selection: { fields: { id: true } }, +}); +create({ createdBy: '', updatedBy: '', namespaceId: '', kind: '', name: '', slug: '', description: '', defaultSpec: '', requiredSecrets: '', requiredConfigs: '', integrations: '', labels: '', annotations: '', stepUpMinAge: '' }); +``` + +### InfraObject + +```typescript +// List all infraObjects +const { data, isLoading } = useInfraObjectsQuery({ + selection: { fields: { id: true, scopeId: true, kids: true, ktree: true, data: true, createdAt: true } }, +}); + +// Get one infraObject +const { data: item } = useInfraObjectQuery({ + id: '', + selection: { fields: { id: true, scopeId: true, kids: true, ktree: true, data: true, createdAt: true } }, +}); + +// Create a infraObject +const { mutate: create } = useCreateInfraObjectMutation({ + selection: { fields: { id: true } }, +}); +create({ scopeId: '', kids: '', ktree: '', data: '' }); ``` ### FunctionGraphObject @@ -285,20 +554,146 @@ create({ name: '', databaseId: '', hash: '' }); ```typescript // List all functionGraphObjects const { data, isLoading } = useFunctionGraphObjectsQuery({ - selection: { fields: { id: true, databaseId: true, kids: true, ktree: true, data: true, createdAt: true } }, + selection: { fields: { id: true, scopeId: true, kids: true, ktree: true, data: true, createdAt: true } }, }); // Get one functionGraphObject const { data: item } = useFunctionGraphObjectQuery({ id: '', - selection: { fields: { id: true, databaseId: true, kids: true, ktree: true, data: true, createdAt: true } }, + selection: { fields: { id: true, scopeId: true, kids: true, ktree: true, data: true, createdAt: true } }, }); // Create a functionGraphObject const { mutate: create } = useCreateFunctionGraphObjectMutation({ selection: { fields: { id: true } }, }); -create({ databaseId: '', kids: '', ktree: '', data: '' }); +create({ scopeId: '', kids: '', ktree: '', data: '' }); +``` + +### PlatformFunctionDeploymentEvent + +```typescript +// List all platformFunctionDeploymentEvents +const { data, isLoading } = usePlatformFunctionDeploymentEventsQuery({ + selection: { fields: { createdAt: true, id: true, deploymentId: true, eventType: true, actorId: true, message: true, metadata: true } }, +}); + +// Get one platformFunctionDeploymentEvent +const { data: item } = usePlatformFunctionDeploymentEventQuery({ + id: '', + selection: { fields: { createdAt: true, id: true, deploymentId: true, eventType: true, actorId: true, message: true, metadata: true } }, +}); + +// Create a platformFunctionDeploymentEvent +const { mutate: create } = useCreatePlatformFunctionDeploymentEventMutation({ + selection: { fields: { id: true } }, +}); +create({ deploymentId: '', eventType: '', actorId: '', message: '', metadata: '' }); +``` + +### PlatformResourceEvent + +```typescript +// List all platformResourceEvents +const { data, isLoading } = usePlatformResourceEventsQuery({ + selection: { fields: { createdAt: true, id: true, resourceId: true, eventType: true, actorId: true, message: true, metadata: true } }, +}); + +// Get one platformResourceEvent +const { data: item } = usePlatformResourceEventQuery({ + id: '', + selection: { fields: { createdAt: true, id: true, resourceId: true, eventType: true, actorId: true, message: true, metadata: true } }, +}); + +// Create a platformResourceEvent +const { mutate: create } = useCreatePlatformResourceEventMutation({ + selection: { fields: { id: true } }, +}); +create({ resourceId: '', eventType: '', actorId: '', message: '', metadata: '' }); +``` + +### ResourceStatusCheck + +```typescript +// List all resourceStatusChecks +const { data, isLoading } = useResourceStatusChecksQuery({ + selection: { fields: { id: true, resourceId: true, databaseId: true, requestedBy: true, requestedAt: true, completedAt: true, status: true, result: true } }, +}); + +// Get one resourceStatusCheck +const { data: item } = useResourceStatusCheckQuery({ + id: '', + selection: { fields: { id: true, resourceId: true, databaseId: true, requestedBy: true, requestedAt: true, completedAt: true, status: true, result: true } }, +}); + +// Create a resourceStatusCheck +const { mutate: create } = useCreateResourceStatusCheckMutation({ + selection: { fields: { id: true } }, +}); +create({ resourceId: '', databaseId: '', requestedBy: '', requestedAt: '', completedAt: '', status: '', result: '' }); +``` + +### FunctionDeployment + +```typescript +// List all functionDeployments +const { data, isLoading } = useFunctionDeploymentsQuery({ + selection: { fields: { id: true, createdAt: true, updatedAt: true, namespaceId: true, status: true, serviceUrl: true, serviceName: true, revision: true, image: true, imageVersion: true, handlerName: true, concurrency: true, scaleMin: true, scaleMax: true, timeoutSeconds: true, resources: true, lastError: true, lastErrorAt: true, errorCount: true, labels: true, annotations: true, databaseId: true } }, +}); + +// Get one functionDeployment +const { data: item } = useFunctionDeploymentQuery({ + id: '', + selection: { fields: { id: true, createdAt: true, updatedAt: true, namespaceId: true, status: true, serviceUrl: true, serviceName: true, revision: true, image: true, imageVersion: true, handlerName: true, concurrency: true, scaleMin: true, scaleMax: true, timeoutSeconds: true, resources: true, lastError: true, lastErrorAt: true, errorCount: true, labels: true, annotations: true, databaseId: true } }, +}); + +// Create a functionDeployment +const { mutate: create } = useCreateFunctionDeploymentMutation({ + selection: { fields: { id: true } }, +}); +create({ namespaceId: '', status: '', serviceUrl: '', serviceName: '', revision: '', image: '', imageVersion: '', handlerName: '', concurrency: '', scaleMin: '', scaleMax: '', timeoutSeconds: '', resources: '', lastError: '', lastErrorAt: '', errorCount: '', labels: '', annotations: '', databaseId: '' }); +``` + +### Resource + +```typescript +// List all resources +const { data, isLoading } = useResourcesQuery({ + selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, namespaceId: true, kind: true, name: true, slug: true, spec: true, status: true, statusObserved: true, lastError: true, errorCount: true, labels: true, annotations: true, databaseId: true, requiredSecrets: true, requiredConfigs: true, integrations: true, resourceDefinitionId: true } }, +}); + +// Get one resource +const { data: item } = useResourceQuery({ + id: '', + selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, namespaceId: true, kind: true, name: true, slug: true, spec: true, status: true, statusObserved: true, lastError: true, errorCount: true, labels: true, annotations: true, databaseId: true, requiredSecrets: true, requiredConfigs: true, integrations: true, resourceDefinitionId: true } }, +}); + +// Create a resource +const { mutate: create } = useCreateResourceMutation({ + selection: { fields: { id: true } }, +}); +create({ createdBy: '', updatedBy: '', namespaceId: '', kind: '', name: '', slug: '', spec: '', status: '', statusObserved: '', lastError: '', errorCount: '', labels: '', annotations: '', databaseId: '', requiredSecrets: '', requiredConfigs: '', integrations: '', resourceDefinitionId: '' }); +``` + +### ResourceDefinition + +```typescript +// List all resourceDefinitions +const { data, isLoading } = useResourceDefinitionsQuery({ + selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, namespaceId: true, kind: true, name: true, slug: true, description: true, defaultSpec: true, requiredSecrets: true, requiredConfigs: true, integrations: true, labels: true, annotations: true, stepUpMinAge: true, databaseId: true } }, +}); + +// Get one resourceDefinition +const { data: item } = useResourceDefinitionQuery({ + id: '', + selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, namespaceId: true, kind: true, name: true, slug: true, description: true, defaultSpec: true, requiredSecrets: true, requiredConfigs: true, integrations: true, labels: true, annotations: true, stepUpMinAge: true, databaseId: true } }, +}); + +// Create a resourceDefinition +const { mutate: create } = useCreateResourceDefinitionMutation({ + selection: { fields: { id: true } }, +}); +create({ createdBy: '', updatedBy: '', namespaceId: '', kind: '', name: '', slug: '', description: '', defaultSpec: '', requiredSecrets: '', requiredConfigs: '', integrations: '', labels: '', annotations: '', stepUpMinAge: '', databaseId: '' }); ``` ### FunctionDeploymentEvent @@ -322,22 +717,22 @@ const { mutate: create } = useCreateFunctionDeploymentEventMutation({ create({ deploymentId: '', eventType: '', actorId: '', message: '', metadata: '', databaseId: '' }); ``` -### OrgFunctionExecutionLog +### PlatformFunctionExecutionLog ```typescript -// List all orgFunctionExecutionLogs -const { data, isLoading } = useOrgFunctionExecutionLogsQuery({ +// List all platformFunctionExecutionLogs +const { data, isLoading } = usePlatformFunctionExecutionLogsQuery({ selection: { fields: { createdAt: true, id: true, invocationId: true, taskIdentifier: true, logLevel: true, message: true, metadata: true, actorId: true } }, }); -// Get one orgFunctionExecutionLog -const { data: item } = useOrgFunctionExecutionLogQuery({ +// Get one platformFunctionExecutionLog +const { data: item } = usePlatformFunctionExecutionLogQuery({ id: '', selection: { fields: { createdAt: true, id: true, invocationId: true, taskIdentifier: true, logLevel: true, message: true, metadata: true, actorId: true } }, }); -// Create a orgFunctionExecutionLog -const { mutate: create } = useCreateOrgFunctionExecutionLogMutation({ +// Create a platformFunctionExecutionLog +const { mutate: create } = useCreatePlatformFunctionExecutionLogMutation({ selection: { fields: { id: true } }, }); create({ invocationId: '', taskIdentifier: '', logLevel: '', message: '', metadata: '', actorId: '' }); @@ -369,62 +764,62 @@ create({ resourceId: '', eventType: '', actorId: '', message ```typescript // List all functionGraphExecutionOutputs const { data, isLoading } = useFunctionGraphExecutionOutputsQuery({ - selection: { fields: { createdAt: true, id: true, databaseId: true, hash: true, data: true } }, + selection: { fields: { createdAt: true, id: true, scopeId: true, hash: true, data: true } }, }); // Get one functionGraphExecutionOutput const { data: item } = useFunctionGraphExecutionOutputQuery({ id: '', - selection: { fields: { createdAt: true, id: true, databaseId: true, hash: true, data: true } }, + selection: { fields: { createdAt: true, id: true, scopeId: true, hash: true, data: true } }, }); // Create a functionGraphExecutionOutput const { mutate: create } = useCreateFunctionGraphExecutionOutputMutation({ selection: { fields: { id: true } }, }); -create({ databaseId: '', hash: '', data: '' }); +create({ scopeId: '', hash: '', data: '' }); ``` -### FunctionGraphCommit +### InfraCommit ```typescript -// List all functionGraphCommits -const { data, isLoading } = useFunctionGraphCommitsQuery({ - selection: { fields: { id: true, message: true, databaseId: true, storeId: true, parentIds: true, authorId: true, committerId: true, treeId: true, date: true } }, +// List all infraCommits +const { data, isLoading } = useInfraCommitsQuery({ + selection: { fields: { id: true, message: true, scopeId: true, storeId: true, parentIds: true, authorId: true, committerId: true, treeId: true, date: true } }, }); -// Get one functionGraphCommit -const { data: item } = useFunctionGraphCommitQuery({ +// Get one infraCommit +const { data: item } = useInfraCommitQuery({ id: '', - selection: { fields: { id: true, message: true, databaseId: true, storeId: true, parentIds: true, authorId: true, committerId: true, treeId: true, date: true } }, + selection: { fields: { id: true, message: true, scopeId: true, storeId: true, parentIds: true, authorId: true, committerId: true, treeId: true, date: true } }, }); -// Create a functionGraphCommit -const { mutate: create } = useCreateFunctionGraphCommitMutation({ +// Create a infraCommit +const { mutate: create } = useCreateInfraCommitMutation({ selection: { fields: { id: true } }, }); -create({ message: '', databaseId: '', storeId: '', parentIds: '', authorId: '', committerId: '', treeId: '', date: '' }); +create({ message: '', scopeId: '', storeId: '', parentIds: '', authorId: '', committerId: '', treeId: '', date: '' }); ``` -### SecretDefinition +### FunctionGraphCommit ```typescript -// List all secretDefinitions -const { data, isLoading } = useSecretDefinitionsQuery({ - selection: { fields: { id: true, createdAt: true, updatedAt: true, name: true, description: true, isBuiltIn: true, labels: true, annotations: true, databaseId: true } }, +// List all functionGraphCommits +const { data, isLoading } = useFunctionGraphCommitsQuery({ + selection: { fields: { id: true, message: true, scopeId: true, storeId: true, parentIds: true, authorId: true, committerId: true, treeId: true, date: true } }, }); -// Get one secretDefinition -const { data: item } = useSecretDefinitionQuery({ +// Get one functionGraphCommit +const { data: item } = useFunctionGraphCommitQuery({ id: '', - selection: { fields: { id: true, createdAt: true, updatedAt: true, name: true, description: true, isBuiltIn: true, labels: true, annotations: true, databaseId: true } }, + selection: { fields: { id: true, message: true, scopeId: true, storeId: true, parentIds: true, authorId: true, committerId: true, treeId: true, date: true } }, }); -// Create a secretDefinition -const { mutate: create } = useCreateSecretDefinitionMutation({ +// Create a functionGraphCommit +const { mutate: create } = useCreateFunctionGraphCommitMutation({ selection: { fields: { id: true } }, }); -create({ name: '', description: '', isBuiltIn: '', labels: '', annotations: '', databaseId: '' }); +create({ message: '', scopeId: '', storeId: '', parentIds: '', authorId: '', committerId: '', treeId: '', date: '' }); ``` ### FunctionExecutionLog @@ -448,25 +843,97 @@ const { mutate: create } = useCreateFunctionExecutionLogMutation({ create({ invocationId: '', taskIdentifier: '', logLevel: '', message: '', metadata: '', actorId: '', databaseId: '' }); ``` +### PlatformResourcesResolvedRequirement + +```typescript +// List all platformResourcesResolvedRequirements +const { data, isLoading } = usePlatformResourcesResolvedRequirementsQuery({ + selection: { fields: { resourceId: true, slug: true, namespaceId: true, requirementKind: true, name: true, required: true, atomId: true, present: true, secretsObjectName: true, configObjectName: true } }, +}); + +// Create a platformResourcesResolvedRequirement +const { mutate: create } = useCreatePlatformResourcesResolvedRequirementMutation({ + selection: { fields: { id: true } }, +}); +create({ resourceId: '', slug: '', namespaceId: '', requirementKind: '', name: '', required: '', atomId: '', present: '', secretsObjectName: '', configObjectName: '' }); +``` + +### ResourcesResolvedRequirement + +```typescript +// List all resourcesResolvedRequirements +const { data, isLoading } = useResourcesResolvedRequirementsQuery({ + selection: { fields: { resourceId: true, slug: true, namespaceId: true, requirementKind: true, name: true, required: true, atomId: true, present: true, secretsObjectName: true, configObjectName: true } }, +}); + +// Create a resourcesResolvedRequirement +const { mutate: create } = useCreateResourcesResolvedRequirementMutation({ + selection: { fields: { id: true } }, +}); +create({ resourceId: '', slug: '', namespaceId: '', requirementKind: '', name: '', required: '', atomId: '', present: '', secretsObjectName: '', configObjectName: '' }); +``` + +### DbPreset + +```typescript +// List all dbPresets +const { data, isLoading } = useDbPresetsQuery({ + selection: { fields: { id: true, storeId: true, slug: true, definition: true, commitId: true, modulesHash: true, label: true, description: true, active: true, createdAt: true, updatedAt: true } }, +}); + +// Get one dbPreset +const { data: item } = useDbPresetQuery({ + id: '', + selection: { fields: { id: true, storeId: true, slug: true, definition: true, commitId: true, modulesHash: true, label: true, description: true, active: true, createdAt: true, updatedAt: true } }, +}); + +// Create a dbPreset +const { mutate: create } = useCreateDbPresetMutation({ + selection: { fields: { id: true } }, +}); +create({ storeId: '', slug: '', definition: '', commitId: '', modulesHash: '', label: '', description: '', active: '' }); +``` + +### PlatformNamespace + +```typescript +// List all platformNamespaces +const { data, isLoading } = usePlatformNamespacesQuery({ + selection: { fields: { id: true, createdAt: true, updatedAt: true, name: true, namespaceName: true, description: true, isActive: true, status: true, lastError: true, labels: true, annotations: true, isManaged: true } }, +}); + +// Get one platformNamespace +const { data: item } = usePlatformNamespaceQuery({ + id: '', + selection: { fields: { id: true, createdAt: true, updatedAt: true, name: true, namespaceName: true, description: true, isActive: true, status: true, lastError: true, labels: true, annotations: true, isManaged: true } }, +}); + +// Create a platformNamespace +const { mutate: create } = useCreatePlatformNamespaceMutation({ + selection: { fields: { id: true } }, +}); +create({ name: '', namespaceName: '', description: '', isActive: '', status: '', lastError: '', labels: '', annotations: '', isManaged: '' }); +``` + ### FunctionGraph ```typescript // List all functionGraphs const { data, isLoading } = useFunctionGraphsQuery({ - selection: { fields: { id: true, databaseId: true, storeId: true, context: true, name: true, description: true, definitionsCommitId: true, isValid: true, validationErrors: true, createdBy: true, createdAt: true, updatedAt: true } }, + selection: { fields: { id: true, scopeId: true, storeId: true, context: true, name: true, description: true, definitionsCommitId: true, isValid: true, validationErrors: true, createdBy: true, createdAt: true, updatedAt: true } }, }); // Get one functionGraph const { data: item } = useFunctionGraphQuery({ id: '', - selection: { fields: { id: true, databaseId: true, storeId: true, context: true, name: true, description: true, definitionsCommitId: true, isValid: true, validationErrors: true, createdBy: true, createdAt: true, updatedAt: true } }, + selection: { fields: { id: true, scopeId: true, storeId: true, context: true, name: true, description: true, definitionsCommitId: true, isValid: true, validationErrors: true, createdBy: true, createdAt: true, updatedAt: true } }, }); // Create a functionGraph const { mutate: create } = useCreateFunctionGraphMutation({ selection: { fields: { id: true } }, }); -create({ databaseId: '', storeId: '', context: '', name: '', description: '', definitionsCommitId: '', isValid: '', validationErrors: '', createdBy: '' }); +create({ scopeId: '', storeId: '', context: '', name: '', description: '', definitionsCommitId: '', isValid: '', validationErrors: '', createdBy: '' }); ``` ### FunctionGraphExecutionNodeState @@ -474,59 +941,59 @@ create({ databaseId: '', storeId: '', context: '', name: '', - selection: { fields: { createdAt: true, id: true, executionId: true, databaseId: true, nodeName: true, nodePath: true, status: true, startedAt: true, completedAt: true, errorCode: true, errorMessage: true, outputId: true } }, + selection: { fields: { createdAt: true, id: true, executionId: true, scopeId: true, nodeName: true, nodePath: true, status: true, startedAt: true, completedAt: true, errorCode: true, errorMessage: true, outputId: true } }, }); // Create a functionGraphExecutionNodeState const { mutate: create } = useCreateFunctionGraphExecutionNodeStateMutation({ selection: { fields: { id: true } }, }); -create({ executionId: '', databaseId: '', nodeName: '', nodePath: '', status: '', startedAt: '', completedAt: '', errorCode: '', errorMessage: '', outputId: '' }); +create({ executionId: '', scopeId: '', nodeName: '', nodePath: '', status: '', startedAt: '', completedAt: '', errorCode: '', errorMessage: '', outputId: '' }); ``` -### PlatformNamespace +### Namespace ```typescript -// List all platformNamespaces -const { data, isLoading } = usePlatformNamespacesQuery({ - selection: { fields: { id: true, createdAt: true, updatedAt: true, name: true, namespaceName: true, description: true, isActive: true, labels: true, annotations: true, databaseId: true, sourceDatabaseId: true, sourceScope: true, isManaged: true } }, +// List all namespaces +const { data, isLoading } = useNamespacesQuery({ + selection: { fields: { id: true, createdAt: true, updatedAt: true, name: true, namespaceName: true, description: true, isActive: true, status: true, lastError: true, labels: true, annotations: true, databaseId: true, isManaged: true } }, }); -// Get one platformNamespace -const { data: item } = usePlatformNamespaceQuery({ +// Get one namespace +const { data: item } = useNamespaceQuery({ id: '', - selection: { fields: { id: true, createdAt: true, updatedAt: true, name: true, namespaceName: true, description: true, isActive: true, labels: true, annotations: true, databaseId: true, sourceDatabaseId: true, sourceScope: true, isManaged: true } }, + selection: { fields: { id: true, createdAt: true, updatedAt: true, name: true, namespaceName: true, description: true, isActive: true, status: true, lastError: true, labels: true, annotations: true, databaseId: true, isManaged: true } }, }); -// Create a platformNamespace -const { mutate: create } = useCreatePlatformNamespaceMutation({ +// Create a namespace +const { mutate: create } = useCreateNamespaceMutation({ selection: { fields: { id: true } }, }); -create({ name: '', namespaceName: '', description: '', isActive: '', labels: '', annotations: '', databaseId: '', sourceDatabaseId: '', sourceScope: '', isManaged: '' }); +create({ name: '', namespaceName: '', description: '', isActive: '', status: '', lastError: '', labels: '', annotations: '', databaseId: '', isManaged: '' }); ``` -### OrgFunctionInvocation +### PlatformFunctionInvocation ```typescript -// List all orgFunctionInvocations -const { data, isLoading } = useOrgFunctionInvocationsQuery({ +// List all platformFunctionInvocations +const { data, isLoading } = usePlatformFunctionInvocationsQuery({ selection: { fields: { createdAt: true, id: true, actorId: true, taskIdentifier: true, payload: true, status: true, result: true, error: true, durationMs: true, jobId: true, startedAt: true, completedAt: true, parentInvocationId: true, graphExecutionId: true } }, }); -// Get one orgFunctionInvocation -const { data: item } = useOrgFunctionInvocationQuery({ +// Get one platformFunctionInvocation +const { data: item } = usePlatformFunctionInvocationQuery({ id: '', selection: { fields: { createdAt: true, id: true, actorId: true, taskIdentifier: true, payload: true, status: true, result: true, error: true, durationMs: true, jobId: true, startedAt: true, completedAt: true, parentInvocationId: true, graphExecutionId: true } }, }); -// Create a orgFunctionInvocation -const { mutate: create } = useCreateOrgFunctionInvocationMutation({ +// Create a platformFunctionInvocation +const { mutate: create } = useCreatePlatformFunctionInvocationMutation({ selection: { fields: { id: true } }, }); create({ actorId: '', taskIdentifier: '', payload: '', status: '', result: '', error: '', durationMs: '', jobId: '', startedAt: '', completedAt: '', parentInvocationId: '', graphExecutionId: '' }); @@ -558,19 +1025,61 @@ create({ actorId: '', databaseId: '', taskIdentifier: '', pa ```typescript // List all platformNamespaceEvents const { data, isLoading } = usePlatformNamespaceEventsQuery({ - selection: { fields: { createdAt: true, id: true, namespaceId: true, eventType: true, actorId: true, message: true, metadata: true, cpuMillicores: true, memoryBytes: true, storageBytes: true, networkIngressBytes: true, networkEgressBytes: true, podCount: true, metrics: true, databaseId: true } }, + selection: { fields: { createdAt: true, id: true, namespaceId: true, eventType: true, actorId: true, message: true, metadata: true, cpuMillicores: true, memoryBytes: true, storageBytes: true, networkIngressBytes: true, networkEgressBytes: true, podCount: true, metrics: true } }, }); // Get one platformNamespaceEvent const { data: item } = usePlatformNamespaceEventQuery({ id: '', - selection: { fields: { createdAt: true, id: true, namespaceId: true, eventType: true, actorId: true, message: true, metadata: true, cpuMillicores: true, memoryBytes: true, storageBytes: true, networkIngressBytes: true, networkEgressBytes: true, podCount: true, metrics: true, databaseId: true } }, + selection: { fields: { createdAt: true, id: true, namespaceId: true, eventType: true, actorId: true, message: true, metadata: true, cpuMillicores: true, memoryBytes: true, storageBytes: true, networkIngressBytes: true, networkEgressBytes: true, podCount: true, metrics: true } }, }); // Create a platformNamespaceEvent const { mutate: create } = useCreatePlatformNamespaceEventMutation({ selection: { fields: { id: true } }, }); +create({ namespaceId: '', eventType: '', actorId: '', message: '', metadata: '', cpuMillicores: '', memoryBytes: '', storageBytes: '', networkIngressBytes: '', networkEgressBytes: '', podCount: '', metrics: '' }); +``` + +### IntegrationProvider + +```typescript +// List all integrationProviders +const { data, isLoading } = useIntegrationProvidersQuery({ + selection: { fields: { id: true, createdAt: true, updatedAt: true, slug: true, name: true, description: true, category: true, icon: true, logo: true, brand: true, requiredSecrets: true, requiredConfigs: true } }, +}); + +// Get one integrationProvider +const { data: item } = useIntegrationProviderQuery({ + id: '', + selection: { fields: { id: true, createdAt: true, updatedAt: true, slug: true, name: true, description: true, category: true, icon: true, logo: true, brand: true, requiredSecrets: true, requiredConfigs: true } }, +}); + +// Create a integrationProvider +const { mutate: create } = useCreateIntegrationProviderMutation({ + selection: { fields: { id: true } }, +}); +create({ slug: '', name: '', description: '', category: '', icon: '', logo: '', brand: '', requiredSecrets: '', requiredConfigs: '' }); +``` + +### NamespaceEvent + +```typescript +// List all namespaceEvents +const { data, isLoading } = useNamespaceEventsQuery({ + selection: { fields: { createdAt: true, id: true, namespaceId: true, eventType: true, actorId: true, message: true, metadata: true, cpuMillicores: true, memoryBytes: true, storageBytes: true, networkIngressBytes: true, networkEgressBytes: true, podCount: true, metrics: true, databaseId: true } }, +}); + +// Get one namespaceEvent +const { data: item } = useNamespaceEventQuery({ + id: '', + selection: { fields: { createdAt: true, id: true, namespaceId: true, eventType: true, actorId: true, message: true, metadata: true, cpuMillicores: true, memoryBytes: true, storageBytes: true, networkIngressBytes: true, networkEgressBytes: true, podCount: true, metrics: true, databaseId: true } }, +}); + +// Create a namespaceEvent +const { mutate: create } = useCreateNamespaceEventMutation({ + selection: { fields: { id: true } }, +}); create({ namespaceId: '', eventType: '', actorId: '', message: '', metadata: '', cpuMillicores: '', memoryBytes: '', storageBytes: '', networkIngressBytes: '', networkEgressBytes: '', podCount: '', metrics: '', databaseId: '' }); ``` @@ -579,20 +1088,41 @@ create({ namespaceId: '', eventType: '', actorId: '', messag ```typescript // List all functionGraphExecutions const { data, isLoading } = useFunctionGraphExecutionsQuery({ - selection: { fields: { startedAt: true, id: true, graphId: true, invocationId: true, databaseId: true, outputNode: true, outputPort: true, status: true, inputPayload: true, outputPayload: true, nodeOutputs: true, executionPlan: true, currentWave: true, parentExecutionId: true, parentNodeName: true, definitionsCommitId: true, tickCount: true, completedAt: true, maxTicks: true, maxPendingJobs: true, timeoutAt: true, errorCode: true, errorMessage: true } }, + selection: { fields: { startedAt: true, id: true, graphId: true, invocationId: true, scopeId: true, outputNode: true, outputPort: true, status: true, inputPayload: true, outputPayload: true, nodeOutputs: true, executionPlan: true, currentWave: true, parentExecutionId: true, parentNodeName: true, definitionsCommitId: true, tickCount: true, completedAt: true, maxTicks: true, maxPendingJobs: true, timeoutAt: true, lastProgressAt: true, errorCode: true, errorMessage: true } }, }); // Get one functionGraphExecution const { data: item } = useFunctionGraphExecutionQuery({ id: '', - selection: { fields: { startedAt: true, id: true, graphId: true, invocationId: true, databaseId: true, outputNode: true, outputPort: true, status: true, inputPayload: true, outputPayload: true, nodeOutputs: true, executionPlan: true, currentWave: true, parentExecutionId: true, parentNodeName: true, definitionsCommitId: true, tickCount: true, completedAt: true, maxTicks: true, maxPendingJobs: true, timeoutAt: true, errorCode: true, errorMessage: true } }, + selection: { fields: { startedAt: true, id: true, graphId: true, invocationId: true, scopeId: true, outputNode: true, outputPort: true, status: true, inputPayload: true, outputPayload: true, nodeOutputs: true, executionPlan: true, currentWave: true, parentExecutionId: true, parentNodeName: true, definitionsCommitId: true, tickCount: true, completedAt: true, maxTicks: true, maxPendingJobs: true, timeoutAt: true, lastProgressAt: true, errorCode: true, errorMessage: true } }, }); // Create a functionGraphExecution const { mutate: create } = useCreateFunctionGraphExecutionMutation({ selection: { fields: { id: true } }, }); -create({ startedAt: '', graphId: '', invocationId: '', databaseId: '', outputNode: '', outputPort: '', status: '', inputPayload: '', outputPayload: '', nodeOutputs: '', executionPlan: '', currentWave: '', parentExecutionId: '', parentNodeName: '', definitionsCommitId: '', tickCount: '', completedAt: '', maxTicks: '', maxPendingJobs: '', timeoutAt: '', errorCode: '', errorMessage: '' }); +create({ startedAt: '', graphId: '', invocationId: '', scopeId: '', outputNode: '', outputPort: '', status: '', inputPayload: '', outputPayload: '', nodeOutputs: '', executionPlan: '', currentWave: '', parentExecutionId: '', parentNodeName: '', definitionsCommitId: '', tickCount: '', completedAt: '', maxTicks: '', maxPendingJobs: '', timeoutAt: '', lastProgressAt: '', errorCode: '', errorMessage: '' }); +``` + +### PlatformFunctionDefinition + +```typescript +// List all platformFunctionDefinitions +const { data, isLoading } = usePlatformFunctionDefinitionsQuery({ + selection: { fields: { id: true, createdAt: true, updatedAt: true, scope: true, name: true, taskIdentifier: true, description: true, isPublished: true, accessChannels: true, publishedAt: true, maxAttempts: true, priority: true, queueName: true, runtime: true, targetSchema: true, targetFunction: true, moduleTable: true, functionColumns: true, payloadArgs: true, image: true, concurrency: true, scaleMin: true, scaleMax: true, timeoutSeconds: true, resources: true, isBuiltIn: true, requiredSecrets: true, requiredConfigs: true, integrations: true, requiredBuckets: true, requiredModels: true, inputs: true, outputs: true, props: true, volatile: true, icon: true, category: true } }, +}); + +// Get one platformFunctionDefinition +const { data: item } = usePlatformFunctionDefinitionQuery({ + id: '', + selection: { fields: { id: true, createdAt: true, updatedAt: true, scope: true, name: true, taskIdentifier: true, description: true, isPublished: true, accessChannels: true, publishedAt: true, maxAttempts: true, priority: true, queueName: true, runtime: true, targetSchema: true, targetFunction: true, moduleTable: true, functionColumns: true, payloadArgs: true, image: true, concurrency: true, scaleMin: true, scaleMax: true, timeoutSeconds: true, resources: true, isBuiltIn: true, requiredSecrets: true, requiredConfigs: true, integrations: true, requiredBuckets: true, requiredModels: true, inputs: true, outputs: true, props: true, volatile: true, icon: true, category: true } }, +}); + +// Create a platformFunctionDefinition +const { mutate: create } = useCreatePlatformFunctionDefinitionMutation({ + selection: { fields: { id: true } }, +}); +create({ scope: '', name: '', taskIdentifier: '', description: '', isPublished: '', accessChannels: '', publishedAt: '', maxAttempts: '', priority: '', queueName: '', runtime: '', targetSchema: '', targetFunction: '', moduleTable: '', functionColumns: '', payloadArgs: '', image: '', concurrency: '', scaleMin: '', scaleMax: '', timeoutSeconds: '', resources: '', isBuiltIn: '', requiredSecrets: '', requiredConfigs: '', integrations: '', requiredBuckets: '', requiredModels: '', inputs: '', outputs: '', props: '', volatile: '', icon: '', category: '' }); ``` ### FunctionDefinition @@ -600,20 +1130,20 @@ create({ startedAt: '', graphId: '', invocationId: '', dat ```typescript // List all functionDefinitions const { data, isLoading } = useFunctionDefinitionsQuery({ - selection: { fields: { id: true, createdAt: true, updatedAt: true, scope: true, name: true, taskIdentifier: true, description: true, isInvocable: true, maxAttempts: true, priority: true, queueName: true, runtime: true, image: true, concurrency: true, scaleMin: true, scaleMax: true, timeoutSeconds: true, resources: true, isBuiltIn: true, requiredSecrets: true, requiredConfigs: true, requiredBuckets: true, requiredModels: true, inputs: true, outputs: true, props: true, volatile: true, icon: true, category: true } }, + selection: { fields: { id: true, createdAt: true, updatedAt: true, scope: true, name: true, taskIdentifier: true, description: true, isPublished: true, accessChannels: true, publishedAt: true, maxAttempts: true, priority: true, queueName: true, runtime: true, targetSchema: true, targetFunction: true, moduleTable: true, functionColumns: true, payloadArgs: true, image: true, concurrency: true, scaleMin: true, scaleMax: true, timeoutSeconds: true, resources: true, isBuiltIn: true, requiredSecrets: true, requiredConfigs: true, integrations: true, requiredBuckets: true, requiredModels: true, inputs: true, outputs: true, props: true, volatile: true, icon: true, category: true, databaseId: true } }, }); // Get one functionDefinition const { data: item } = useFunctionDefinitionQuery({ id: '', - selection: { fields: { id: true, createdAt: true, updatedAt: true, scope: true, name: true, taskIdentifier: true, description: true, isInvocable: true, maxAttempts: true, priority: true, queueName: true, runtime: true, image: true, concurrency: true, scaleMin: true, scaleMax: true, timeoutSeconds: true, resources: true, isBuiltIn: true, requiredSecrets: true, requiredConfigs: true, requiredBuckets: true, requiredModels: true, inputs: true, outputs: true, props: true, volatile: true, icon: true, category: true } }, + selection: { fields: { id: true, createdAt: true, updatedAt: true, scope: true, name: true, taskIdentifier: true, description: true, isPublished: true, accessChannels: true, publishedAt: true, maxAttempts: true, priority: true, queueName: true, runtime: true, targetSchema: true, targetFunction: true, moduleTable: true, functionColumns: true, payloadArgs: true, image: true, concurrency: true, scaleMin: true, scaleMax: true, timeoutSeconds: true, resources: true, isBuiltIn: true, requiredSecrets: true, requiredConfigs: true, integrations: true, requiredBuckets: true, requiredModels: true, inputs: true, outputs: true, props: true, volatile: true, icon: true, category: true, databaseId: true } }, }); // Create a functionDefinition const { mutate: create } = useCreateFunctionDefinitionMutation({ selection: { fields: { id: true } }, }); -create({ scope: '', name: '', taskIdentifier: '', description: '', isInvocable: '', maxAttempts: '', priority: '', queueName: '', runtime: '', image: '', concurrency: '', scaleMin: '', scaleMax: '', timeoutSeconds: '', resources: '', isBuiltIn: '', requiredSecrets: '', requiredConfigs: '', requiredBuckets: '', requiredModels: '', inputs: '', outputs: '', props: '', volatile: '', icon: '', category: '' }); +create({ scope: '', name: '', taskIdentifier: '', description: '', isPublished: '', accessChannels: '', publishedAt: '', maxAttempts: '', priority: '', queueName: '', runtime: '', targetSchema: '', targetFunction: '', moduleTable: '', functionColumns: '', payloadArgs: '', image: '', concurrency: '', scaleMin: '', scaleMax: '', timeoutSeconds: '', resources: '', isBuiltIn: '', requiredSecrets: '', requiredConfigs: '', integrations: '', requiredBuckets: '', requiredModels: '', inputs: '', outputs: '', props: '', volatile: '', icon: '', category: '', databaseId: '' }); ``` ## Custom Operation Hooks @@ -640,27 +1170,27 @@ validateFunctionGraph |----------|------| | `input` | ValidateFunctionGraphInput (required) | -### `useInitEmptyRepoMutation` +### `useInfraInitEmptyRepoMutation` -initEmptyRepo +infraInitEmptyRepo - **Type:** mutation - **Arguments:** | Argument | Type | |----------|------| - | `input` | InitEmptyRepoInput (required) | + | `input` | InfraInitEmptyRepoInput (required) | -### `useSetDataAtPathMutation` +### `useInitEmptyRepoMutation` -setDataAtPath +initEmptyRepo - **Type:** mutation - **Arguments:** | Argument | Type | |----------|------| - | `input` | SetDataAtPathInput (required) | + | `input` | InitEmptyRepoInput (required) | ### `useImportDefinitionsMutation` @@ -673,6 +1203,28 @@ importDefinitions |----------|------| | `input` | ImportDefinitionsInput (required) | +### `useInfraSetDataAtPathMutation` + +infraSetDataAtPath + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | InfraSetDataAtPathInput (required) | + +### `useSetDataAtPathMutation` + +setDataAtPath + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | SetDataAtPathInput (required) | + ### `useCopyGraphMutation` copyGraph @@ -750,6 +1302,17 @@ addNode |----------|------| | `input` | AddNodeInput (required) | +### `useInfraInsertNodeAtPathMutation` + +infraInsertNodeAtPath + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | InfraInsertNodeAtPathInput (required) | + ### `useInsertNodeAtPathMutation` insertNodeAtPath diff --git a/sdk/constructive-react/src/compute/hooks/index.ts b/sdk/constructive-react/src/compute/hooks/index.ts index 7f2d74ccb0..181d7ad6bc 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: GetAllRecord, FunctionApiBinding, FunctionDeployment, Resource, FunctionGraphRef, FunctionGraphStore, FunctionGraphObject, FunctionDeploymentEvent, OrgFunctionExecutionLog, ResourceEvent, FunctionGraphExecutionOutput, FunctionGraphCommit, SecretDefinition, FunctionExecutionLog, FunctionGraph, FunctionGraphExecutionNodeState, PlatformNamespace, OrgFunctionInvocation, FunctionInvocation, PlatformNamespaceEvent, FunctionGraphExecution, FunctionDefinition + * Tables: InfraGetAllRecord, GetAllRecord, InfraRef, InfraStore, FunctionApiBinding, FunctionGraphRef, FunctionGraphStore, PlatformFunctionApiBinding, PlatformResourcesRequirementsState, ResourcesRequirementsState, PlatformResourceStatusCheck, PlatformFunctionDeployment, PlatformResource, PlatformResourceDefinition, InfraObject, FunctionGraphObject, PlatformFunctionDeploymentEvent, PlatformResourceEvent, ResourceStatusCheck, FunctionDeployment, Resource, ResourceDefinition, FunctionDeploymentEvent, PlatformFunctionExecutionLog, ResourceEvent, FunctionGraphExecutionOutput, InfraCommit, FunctionGraphCommit, FunctionExecutionLog, PlatformResourcesResolvedRequirement, ResourcesResolvedRequirement, DbPreset, PlatformNamespace, FunctionGraph, FunctionGraphExecutionNodeState, Namespace, PlatformFunctionInvocation, FunctionInvocation, PlatformNamespaceEvent, IntegrationProvider, NamespaceEvent, FunctionGraphExecution, PlatformFunctionDefinition, FunctionDefinition * * Usage: * diff --git a/sdk/constructive-react/src/compute/hooks/invalidation.ts b/sdk/constructive-react/src/compute/hooks/invalidation.ts index 209ee8162a..c9849af351 100644 --- a/sdk/constructive-react/src/compute/hooks/invalidation.ts +++ b/sdk/constructive-react/src/compute/hooks/invalidation.ts @@ -15,27 +15,49 @@ import type { QueryClient } from '@tanstack/react-query'; import { + infraGetAllRecordKeys, getAllRecordKeys, + infraRefKeys, + infraStoreKeys, functionApiBindingKeys, - functionDeploymentKeys, - resourceKeys, functionGraphRefKeys, functionGraphStoreKeys, + platformFunctionApiBindingKeys, + platformResourcesRequirementsStateKeys, + resourcesRequirementsStateKeys, + platformResourceStatusCheckKeys, + platformFunctionDeploymentKeys, + platformResourceKeys, + platformResourceDefinitionKeys, + infraObjectKeys, functionGraphObjectKeys, + platformFunctionDeploymentEventKeys, + platformResourceEventKeys, + resourceStatusCheckKeys, + functionDeploymentKeys, + resourceKeys, + resourceDefinitionKeys, functionDeploymentEventKeys, - orgFunctionExecutionLogKeys, + platformFunctionExecutionLogKeys, resourceEventKeys, functionGraphExecutionOutputKeys, + infraCommitKeys, functionGraphCommitKeys, - secretDefinitionKeys, functionExecutionLogKeys, + platformResourcesResolvedRequirementKeys, + resourcesResolvedRequirementKeys, + dbPresetKeys, + platformNamespaceKeys, functionGraphKeys, functionGraphExecutionNodeStateKeys, - platformNamespaceKeys, - orgFunctionInvocationKeys, + namespaceKeys, + platformFunctionInvocationKeys, functionInvocationKeys, platformNamespaceEventKeys, + integrationProviderKeys, + namespaceEventKeys, functionGraphExecutionKeys, + platformFunctionDefinitionKeys, functionDefinitionKeys, } from './query-keys'; /** @@ -58,6 +80,23 @@ import { * ``` */ export const invalidate = { + /** Invalidate infraGetAllRecord queries */ infraGetAllRecord: { + /** Invalidate all infraGetAllRecord queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: infraGetAllRecordKeys.all, + }), + /** Invalidate infraGetAllRecord list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: infraGetAllRecordKeys.lists(), + }), + /** Invalidate a specific infraGetAllRecord */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: infraGetAllRecordKeys.detail(id), + }), + }, /** Invalidate getAllRecord queries */ getAllRecord: { /** Invalidate all getAllRecord queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ @@ -75,52 +114,52 @@ export const invalidate = { queryKey: getAllRecordKeys.detail(id), }), }, - /** Invalidate functionApiBinding queries */ functionApiBinding: { - /** Invalidate all functionApiBinding queries */ all: (queryClient: QueryClient) => + /** Invalidate infraRef queries */ infraRef: { + /** Invalidate all infraRef queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: functionApiBindingKeys.all, + queryKey: infraRefKeys.all, }), - /** Invalidate functionApiBinding list queries */ lists: (queryClient: QueryClient) => + /** Invalidate infraRef list queries */ lists: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: functionApiBindingKeys.lists(), + queryKey: infraRefKeys.lists(), }), - /** Invalidate a specific functionApiBinding */ detail: ( - queryClient: QueryClient, - id: string | number - ) => + /** Invalidate a specific infraRef */ detail: (queryClient: QueryClient, id: string | number) => queryClient.invalidateQueries({ - queryKey: functionApiBindingKeys.detail(id), + queryKey: infraRefKeys.detail(id), }), }, - /** Invalidate functionDeployment queries */ functionDeployment: { - /** Invalidate all functionDeployment queries */ all: (queryClient: QueryClient) => + /** Invalidate infraStore queries */ infraStore: { + /** Invalidate all infraStore queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: functionDeploymentKeys.all, + queryKey: infraStoreKeys.all, }), - /** Invalidate functionDeployment list queries */ lists: (queryClient: QueryClient) => + /** Invalidate infraStore list queries */ lists: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: functionDeploymentKeys.lists(), + queryKey: infraStoreKeys.lists(), }), - /** Invalidate a specific functionDeployment */ detail: ( + /** Invalidate a specific infraStore */ detail: ( queryClient: QueryClient, id: string | number ) => queryClient.invalidateQueries({ - queryKey: functionDeploymentKeys.detail(id), + queryKey: infraStoreKeys.detail(id), }), }, - /** Invalidate resource queries */ resource: { - /** Invalidate all resource queries */ all: (queryClient: QueryClient) => + /** Invalidate functionApiBinding queries */ functionApiBinding: { + /** Invalidate all functionApiBinding queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: resourceKeys.all, + queryKey: functionApiBindingKeys.all, }), - /** Invalidate resource list queries */ lists: (queryClient: QueryClient) => + /** Invalidate functionApiBinding list queries */ lists: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: resourceKeys.lists(), + queryKey: functionApiBindingKeys.lists(), }), - /** Invalidate a specific resource */ detail: (queryClient: QueryClient, id: string | number) => + /** Invalidate a specific functionApiBinding */ detail: ( + queryClient: QueryClient, + id: string | number + ) => queryClient.invalidateQueries({ - queryKey: resourceKeys.detail(id), + queryKey: functionApiBindingKeys.detail(id), }), }, /** Invalidate functionGraphRef queries */ functionGraphRef: { @@ -157,6 +196,146 @@ export const invalidate = { queryKey: functionGraphStoreKeys.detail(id), }), }, + /** Invalidate platformFunctionApiBinding queries */ platformFunctionApiBinding: { + /** Invalidate all platformFunctionApiBinding queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: platformFunctionApiBindingKeys.all, + }), + /** Invalidate platformFunctionApiBinding list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: platformFunctionApiBindingKeys.lists(), + }), + /** Invalidate a specific platformFunctionApiBinding */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: platformFunctionApiBindingKeys.detail(id), + }), + }, + /** Invalidate platformResourcesRequirementsState queries */ platformResourcesRequirementsState: { + /** Invalidate all platformResourcesRequirementsState queries */ all: ( + queryClient: QueryClient + ) => + queryClient.invalidateQueries({ + queryKey: platformResourcesRequirementsStateKeys.all, + }), + /** Invalidate platformResourcesRequirementsState list queries */ lists: ( + queryClient: QueryClient + ) => + queryClient.invalidateQueries({ + queryKey: platformResourcesRequirementsStateKeys.lists(), + }), + /** Invalidate a specific platformResourcesRequirementsState */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: platformResourcesRequirementsStateKeys.detail(id), + }), + }, + /** Invalidate resourcesRequirementsState queries */ resourcesRequirementsState: { + /** Invalidate all resourcesRequirementsState queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: resourcesRequirementsStateKeys.all, + }), + /** Invalidate resourcesRequirementsState list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: resourcesRequirementsStateKeys.lists(), + }), + /** Invalidate a specific resourcesRequirementsState */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: resourcesRequirementsStateKeys.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 platformFunctionDeployment queries */ platformFunctionDeployment: { + /** Invalidate all platformFunctionDeployment queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: platformFunctionDeploymentKeys.all, + }), + /** Invalidate platformFunctionDeployment list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: platformFunctionDeploymentKeys.lists(), + }), + /** Invalidate a specific platformFunctionDeployment */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: platformFunctionDeploymentKeys.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 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 infraObject queries */ infraObject: { + /** Invalidate all infraObject queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: infraObjectKeys.all, + }), + /** Invalidate infraObject list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: infraObjectKeys.lists(), + }), + /** Invalidate a specific infraObject */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: infraObjectKeys.detail(id), + }), + }, /** Invalidate functionGraphObject queries */ functionGraphObject: { /** Invalidate all functionGraphObject queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ @@ -174,6 +353,107 @@ export const invalidate = { queryKey: functionGraphObjectKeys.detail(id), }), }, + /** Invalidate platformFunctionDeploymentEvent queries */ platformFunctionDeploymentEvent: { + /** Invalidate all platformFunctionDeploymentEvent queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: platformFunctionDeploymentEventKeys.all, + }), + /** Invalidate platformFunctionDeploymentEvent list queries */ lists: ( + queryClient: QueryClient + ) => + queryClient.invalidateQueries({ + queryKey: platformFunctionDeploymentEventKeys.lists(), + }), + /** Invalidate a specific platformFunctionDeploymentEvent */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: platformFunctionDeploymentEventKeys.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 resourceStatusCheck queries */ resourceStatusCheck: { + /** Invalidate all resourceStatusCheck queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: resourceStatusCheckKeys.all, + }), + /** Invalidate resourceStatusCheck list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: resourceStatusCheckKeys.lists(), + }), + /** Invalidate a specific resourceStatusCheck */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: resourceStatusCheckKeys.detail(id), + }), + }, + /** Invalidate functionDeployment queries */ functionDeployment: { + /** Invalidate all functionDeployment queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: functionDeploymentKeys.all, + }), + /** Invalidate functionDeployment list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: functionDeploymentKeys.lists(), + }), + /** Invalidate a specific functionDeployment */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: functionDeploymentKeys.detail(id), + }), + }, + /** Invalidate resource queries */ resource: { + /** Invalidate all resource queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: resourceKeys.all, + }), + /** Invalidate resource list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: resourceKeys.lists(), + }), + /** Invalidate a specific resource */ detail: (queryClient: QueryClient, id: string | number) => + queryClient.invalidateQueries({ + queryKey: resourceKeys.detail(id), + }), + }, + /** Invalidate resourceDefinition queries */ resourceDefinition: { + /** Invalidate all resourceDefinition queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: resourceDefinitionKeys.all, + }), + /** Invalidate resourceDefinition list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: resourceDefinitionKeys.lists(), + }), + /** Invalidate a specific resourceDefinition */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: resourceDefinitionKeys.detail(id), + }), + }, /** Invalidate functionDeploymentEvent queries */ functionDeploymentEvent: { /** Invalidate all functionDeploymentEvent queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ @@ -191,21 +471,21 @@ export const invalidate = { queryKey: functionDeploymentEventKeys.detail(id), }), }, - /** Invalidate orgFunctionExecutionLog queries */ orgFunctionExecutionLog: { - /** Invalidate all orgFunctionExecutionLog queries */ all: (queryClient: QueryClient) => + /** Invalidate platformFunctionExecutionLog queries */ platformFunctionExecutionLog: { + /** Invalidate all platformFunctionExecutionLog queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: orgFunctionExecutionLogKeys.all, + queryKey: platformFunctionExecutionLogKeys.all, }), - /** Invalidate orgFunctionExecutionLog list queries */ lists: (queryClient: QueryClient) => + /** Invalidate platformFunctionExecutionLog list queries */ lists: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: orgFunctionExecutionLogKeys.lists(), + queryKey: platformFunctionExecutionLogKeys.lists(), }), - /** Invalidate a specific orgFunctionExecutionLog */ detail: ( + /** Invalidate a specific platformFunctionExecutionLog */ detail: ( queryClient: QueryClient, id: string | number ) => queryClient.invalidateQueries({ - queryKey: orgFunctionExecutionLogKeys.detail(id), + queryKey: platformFunctionExecutionLogKeys.detail(id), }), }, /** Invalidate resourceEvent queries */ resourceEvent: { @@ -242,38 +522,38 @@ export const invalidate = { queryKey: functionGraphExecutionOutputKeys.detail(id), }), }, - /** Invalidate functionGraphCommit queries */ functionGraphCommit: { - /** Invalidate all functionGraphCommit queries */ all: (queryClient: QueryClient) => + /** Invalidate infraCommit queries */ infraCommit: { + /** Invalidate all infraCommit queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: functionGraphCommitKeys.all, + queryKey: infraCommitKeys.all, }), - /** Invalidate functionGraphCommit list queries */ lists: (queryClient: QueryClient) => + /** Invalidate infraCommit list queries */ lists: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: functionGraphCommitKeys.lists(), + queryKey: infraCommitKeys.lists(), }), - /** Invalidate a specific functionGraphCommit */ detail: ( + /** Invalidate a specific infraCommit */ detail: ( queryClient: QueryClient, id: string | number ) => queryClient.invalidateQueries({ - queryKey: functionGraphCommitKeys.detail(id), + queryKey: infraCommitKeys.detail(id), }), }, - /** Invalidate secretDefinition queries */ secretDefinition: { - /** Invalidate all secretDefinition queries */ all: (queryClient: QueryClient) => + /** Invalidate functionGraphCommit queries */ functionGraphCommit: { + /** Invalidate all functionGraphCommit queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: secretDefinitionKeys.all, + queryKey: functionGraphCommitKeys.all, }), - /** Invalidate secretDefinition list queries */ lists: (queryClient: QueryClient) => + /** Invalidate functionGraphCommit list queries */ lists: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: secretDefinitionKeys.lists(), + queryKey: functionGraphCommitKeys.lists(), }), - /** Invalidate a specific secretDefinition */ detail: ( + /** Invalidate a specific functionGraphCommit */ detail: ( queryClient: QueryClient, id: string | number ) => queryClient.invalidateQueries({ - queryKey: secretDefinitionKeys.detail(id), + queryKey: functionGraphCommitKeys.detail(id), }), }, /** Invalidate functionExecutionLog queries */ functionExecutionLog: { @@ -293,6 +573,76 @@ export const invalidate = { queryKey: functionExecutionLogKeys.detail(id), }), }, + /** Invalidate platformResourcesResolvedRequirement queries */ platformResourcesResolvedRequirement: + { + /** Invalidate all platformResourcesResolvedRequirement queries */ all: ( + queryClient: QueryClient + ) => + queryClient.invalidateQueries({ + queryKey: platformResourcesResolvedRequirementKeys.all, + }), + /** Invalidate platformResourcesResolvedRequirement list queries */ lists: ( + queryClient: QueryClient + ) => + queryClient.invalidateQueries({ + queryKey: platformResourcesResolvedRequirementKeys.lists(), + }), + /** Invalidate a specific platformResourcesResolvedRequirement */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: platformResourcesResolvedRequirementKeys.detail(id), + }), + }, + /** Invalidate resourcesResolvedRequirement queries */ resourcesResolvedRequirement: { + /** Invalidate all resourcesResolvedRequirement queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: resourcesResolvedRequirementKeys.all, + }), + /** Invalidate resourcesResolvedRequirement list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: resourcesResolvedRequirementKeys.lists(), + }), + /** Invalidate a specific resourcesResolvedRequirement */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: resourcesResolvedRequirementKeys.detail(id), + }), + }, + /** Invalidate dbPreset queries */ dbPreset: { + /** Invalidate all dbPreset queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: dbPresetKeys.all, + }), + /** Invalidate dbPreset list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: dbPresetKeys.lists(), + }), + /** Invalidate a specific dbPreset */ detail: (queryClient: QueryClient, id: string | number) => + queryClient.invalidateQueries({ + queryKey: dbPresetKeys.detail(id), + }), + }, + /** Invalidate platformNamespace queries */ platformNamespace: { + /** Invalidate all platformNamespace queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: platformNamespaceKeys.all, + }), + /** Invalidate platformNamespace list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: platformNamespaceKeys.lists(), + }), + /** Invalidate a specific platformNamespace */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: platformNamespaceKeys.detail(id), + }), + }, /** Invalidate functionGraph queries */ functionGraph: { /** Invalidate all functionGraph queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ @@ -329,38 +679,38 @@ export const invalidate = { queryKey: functionGraphExecutionNodeStateKeys.detail(id), }), }, - /** Invalidate platformNamespace queries */ platformNamespace: { - /** Invalidate all platformNamespace queries */ all: (queryClient: QueryClient) => + /** Invalidate namespace queries */ namespace: { + /** Invalidate all namespace queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: platformNamespaceKeys.all, + queryKey: namespaceKeys.all, }), - /** Invalidate platformNamespace list queries */ lists: (queryClient: QueryClient) => + /** Invalidate namespace list queries */ lists: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: platformNamespaceKeys.lists(), + queryKey: namespaceKeys.lists(), }), - /** Invalidate a specific platformNamespace */ detail: ( + /** Invalidate a specific namespace */ detail: ( queryClient: QueryClient, id: string | number ) => queryClient.invalidateQueries({ - queryKey: platformNamespaceKeys.detail(id), + queryKey: namespaceKeys.detail(id), }), }, - /** Invalidate orgFunctionInvocation queries */ orgFunctionInvocation: { - /** Invalidate all orgFunctionInvocation queries */ all: (queryClient: QueryClient) => + /** Invalidate platformFunctionInvocation queries */ platformFunctionInvocation: { + /** Invalidate all platformFunctionInvocation queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: orgFunctionInvocationKeys.all, + queryKey: platformFunctionInvocationKeys.all, }), - /** Invalidate orgFunctionInvocation list queries */ lists: (queryClient: QueryClient) => + /** Invalidate platformFunctionInvocation list queries */ lists: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: orgFunctionInvocationKeys.lists(), + queryKey: platformFunctionInvocationKeys.lists(), }), - /** Invalidate a specific orgFunctionInvocation */ detail: ( + /** Invalidate a specific platformFunctionInvocation */ detail: ( queryClient: QueryClient, id: string | number ) => queryClient.invalidateQueries({ - queryKey: orgFunctionInvocationKeys.detail(id), + queryKey: platformFunctionInvocationKeys.detail(id), }), }, /** Invalidate functionInvocation queries */ functionInvocation: { @@ -397,6 +747,40 @@ export const invalidate = { queryKey: platformNamespaceEventKeys.detail(id), }), }, + /** Invalidate integrationProvider queries */ integrationProvider: { + /** Invalidate all integrationProvider queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: integrationProviderKeys.all, + }), + /** Invalidate integrationProvider list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: integrationProviderKeys.lists(), + }), + /** Invalidate a specific integrationProvider */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: integrationProviderKeys.detail(id), + }), + }, + /** Invalidate namespaceEvent queries */ namespaceEvent: { + /** Invalidate all namespaceEvent queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: namespaceEventKeys.all, + }), + /** Invalidate namespaceEvent list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: namespaceEventKeys.lists(), + }), + /** Invalidate a specific namespaceEvent */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: namespaceEventKeys.detail(id), + }), + }, /** Invalidate functionGraphExecution queries */ functionGraphExecution: { /** Invalidate all functionGraphExecution queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ @@ -414,6 +798,23 @@ export const invalidate = { queryKey: functionGraphExecutionKeys.detail(id), }), }, + /** Invalidate platformFunctionDefinition queries */ platformFunctionDefinition: { + /** Invalidate all platformFunctionDefinition queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: platformFunctionDefinitionKeys.all, + }), + /** Invalidate platformFunctionDefinition list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: platformFunctionDefinitionKeys.lists(), + }), + /** Invalidate a specific platformFunctionDefinition */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: platformFunctionDefinitionKeys.detail(id), + }), + }, /** Invalidate functionDefinition queries */ functionDefinition: { /** Invalidate all functionDefinition queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ @@ -444,33 +845,41 @@ export const invalidate = { * instead of just invalidating (which would trigger a refetch). */ export const remove = { - /** Remove getAllRecord from cache */ getAllRecord: ( + /** Remove infraGetAllRecord from cache */ infraGetAllRecord: ( queryClient: QueryClient, id: string | number ) => { queryClient.removeQueries({ - queryKey: getAllRecordKeys.detail(id), + queryKey: infraGetAllRecordKeys.detail(id), }); }, - /** Remove functionApiBinding from cache */ functionApiBinding: ( + /** Remove getAllRecord from cache */ getAllRecord: ( queryClient: QueryClient, id: string | number ) => { queryClient.removeQueries({ - queryKey: functionApiBindingKeys.detail(id), + queryKey: getAllRecordKeys.detail(id), }); }, - /** Remove functionDeployment from cache */ functionDeployment: ( + /** Remove infraRef from cache */ infraRef: (queryClient: QueryClient, id: string | number) => { + queryClient.removeQueries({ + queryKey: infraRefKeys.detail(id), + }); + }, + /** Remove infraStore from cache */ infraStore: ( queryClient: QueryClient, id: string | number ) => { queryClient.removeQueries({ - queryKey: functionDeploymentKeys.detail(id), + queryKey: infraStoreKeys.detail(id), }); }, - /** Remove resource from cache */ resource: (queryClient: QueryClient, id: string | number) => { + /** Remove functionApiBinding from cache */ functionApiBinding: ( + queryClient: QueryClient, + id: string | number + ) => { queryClient.removeQueries({ - queryKey: resourceKeys.detail(id), + queryKey: functionApiBindingKeys.detail(id), }); }, /** Remove functionGraphRef from cache */ functionGraphRef: ( @@ -489,6 +898,70 @@ export const remove = { queryKey: functionGraphStoreKeys.detail(id), }); }, + /** Remove platformFunctionApiBinding from cache */ platformFunctionApiBinding: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: platformFunctionApiBindingKeys.detail(id), + }); + }, + /** Remove platformResourcesRequirementsState from cache */ platformResourcesRequirementsState: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: platformResourcesRequirementsStateKeys.detail(id), + }); + }, + /** Remove resourcesRequirementsState from cache */ resourcesRequirementsState: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: resourcesRequirementsStateKeys.detail(id), + }); + }, + /** Remove platformResourceStatusCheck from cache */ platformResourceStatusCheck: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: platformResourceStatusCheckKeys.detail(id), + }); + }, + /** Remove platformFunctionDeployment from cache */ platformFunctionDeployment: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: platformFunctionDeploymentKeys.detail(id), + }); + }, + /** Remove platformResource from cache */ platformResource: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: platformResourceKeys.detail(id), + }); + }, + /** Remove platformResourceDefinition from cache */ platformResourceDefinition: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: platformResourceDefinitionKeys.detail(id), + }); + }, + /** Remove infraObject from cache */ infraObject: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: infraObjectKeys.detail(id), + }); + }, /** Remove functionGraphObject from cache */ functionGraphObject: ( queryClient: QueryClient, id: string | number @@ -497,6 +970,51 @@ export const remove = { queryKey: functionGraphObjectKeys.detail(id), }); }, + /** Remove platformFunctionDeploymentEvent from cache */ platformFunctionDeploymentEvent: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: platformFunctionDeploymentEventKeys.detail(id), + }); + }, + /** Remove platformResourceEvent from cache */ platformResourceEvent: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: platformResourceEventKeys.detail(id), + }); + }, + /** Remove resourceStatusCheck from cache */ resourceStatusCheck: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: resourceStatusCheckKeys.detail(id), + }); + }, + /** Remove functionDeployment from cache */ functionDeployment: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: functionDeploymentKeys.detail(id), + }); + }, + /** Remove resource from cache */ resource: (queryClient: QueryClient, id: string | number) => { + queryClient.removeQueries({ + queryKey: resourceKeys.detail(id), + }); + }, + /** Remove resourceDefinition from cache */ resourceDefinition: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: resourceDefinitionKeys.detail(id), + }); + }, /** Remove functionDeploymentEvent from cache */ functionDeploymentEvent: ( queryClient: QueryClient, id: string | number @@ -505,12 +1023,12 @@ export const remove = { queryKey: functionDeploymentEventKeys.detail(id), }); }, - /** Remove orgFunctionExecutionLog from cache */ orgFunctionExecutionLog: ( + /** Remove platformFunctionExecutionLog from cache */ platformFunctionExecutionLog: ( queryClient: QueryClient, id: string | number ) => { queryClient.removeQueries({ - queryKey: orgFunctionExecutionLogKeys.detail(id), + queryKey: platformFunctionExecutionLogKeys.detail(id), }); }, /** Remove resourceEvent from cache */ resourceEvent: ( @@ -529,20 +1047,20 @@ export const remove = { queryKey: functionGraphExecutionOutputKeys.detail(id), }); }, - /** Remove functionGraphCommit from cache */ functionGraphCommit: ( + /** Remove infraCommit from cache */ infraCommit: ( queryClient: QueryClient, id: string | number ) => { queryClient.removeQueries({ - queryKey: functionGraphCommitKeys.detail(id), + queryKey: infraCommitKeys.detail(id), }); }, - /** Remove secretDefinition from cache */ secretDefinition: ( + /** Remove functionGraphCommit from cache */ functionGraphCommit: ( queryClient: QueryClient, id: string | number ) => { queryClient.removeQueries({ - queryKey: secretDefinitionKeys.detail(id), + queryKey: functionGraphCommitKeys.detail(id), }); }, /** Remove functionExecutionLog from cache */ functionExecutionLog: ( @@ -553,6 +1071,33 @@ export const remove = { queryKey: functionExecutionLogKeys.detail(id), }); }, + /** Remove platformResourcesResolvedRequirement from cache */ platformResourcesResolvedRequirement: + (queryClient: QueryClient, id: string | number) => { + queryClient.removeQueries({ + queryKey: platformResourcesResolvedRequirementKeys.detail(id), + }); + }, + /** Remove resourcesResolvedRequirement from cache */ resourcesResolvedRequirement: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: resourcesResolvedRequirementKeys.detail(id), + }); + }, + /** Remove dbPreset from cache */ dbPreset: (queryClient: QueryClient, id: string | number) => { + queryClient.removeQueries({ + queryKey: dbPresetKeys.detail(id), + }); + }, + /** Remove platformNamespace from cache */ platformNamespace: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: platformNamespaceKeys.detail(id), + }); + }, /** Remove functionGraph from cache */ functionGraph: ( queryClient: QueryClient, id: string | number @@ -569,20 +1114,17 @@ export const remove = { queryKey: functionGraphExecutionNodeStateKeys.detail(id), }); }, - /** Remove platformNamespace from cache */ platformNamespace: ( - queryClient: QueryClient, - id: string | number - ) => { + /** Remove namespace from cache */ namespace: (queryClient: QueryClient, id: string | number) => { queryClient.removeQueries({ - queryKey: platformNamespaceKeys.detail(id), + queryKey: namespaceKeys.detail(id), }); }, - /** Remove orgFunctionInvocation from cache */ orgFunctionInvocation: ( + /** Remove platformFunctionInvocation from cache */ platformFunctionInvocation: ( queryClient: QueryClient, id: string | number ) => { queryClient.removeQueries({ - queryKey: orgFunctionInvocationKeys.detail(id), + queryKey: platformFunctionInvocationKeys.detail(id), }); }, /** Remove functionInvocation from cache */ functionInvocation: ( @@ -601,6 +1143,22 @@ export const remove = { queryKey: platformNamespaceEventKeys.detail(id), }); }, + /** Remove integrationProvider from cache */ integrationProvider: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: integrationProviderKeys.detail(id), + }); + }, + /** Remove namespaceEvent from cache */ namespaceEvent: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: namespaceEventKeys.detail(id), + }); + }, /** Remove functionGraphExecution from cache */ functionGraphExecution: ( queryClient: QueryClient, id: string | number @@ -609,6 +1167,14 @@ export const remove = { queryKey: functionGraphExecutionKeys.detail(id), }); }, + /** Remove platformFunctionDefinition from cache */ platformFunctionDefinition: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: platformFunctionDefinitionKeys.detail(id), + }); + }, /** Remove functionDefinition from cache */ functionDefinition: ( queryClient: QueryClient, id: string | number diff --git a/sdk/constructive-react/src/compute/hooks/mutation-keys.ts b/sdk/constructive-react/src/compute/hooks/mutation-keys.ts index bc71617871..3296ff0dfd 100644 --- a/sdk/constructive-react/src/compute/hooks/mutation-keys.ts +++ b/sdk/constructive-react/src/compute/hooks/mutation-keys.ts @@ -18,6 +18,15 @@ // Entity Mutation Keys // ============================================================================ +export const infraGetAllRecordMutationKeys = { + /** All infraGetAllRecord mutation keys */ all: ['mutation', 'infragetallrecord'] as const, + /** Create infraGetAllRecord mutation key */ create: () => + ['mutation', 'infragetallrecord', 'create'] as const, + /** Update infraGetAllRecord mutation key */ update: (id: string | number) => + ['mutation', 'infragetallrecord', 'update', id] as const, + /** Delete infraGetAllRecord mutation key */ delete: (id: string | number) => + ['mutation', 'infragetallrecord', 'delete', id] as const, +} as const; export const getAllRecordMutationKeys = { /** All getAllRecord mutation keys */ all: ['mutation', 'getallrecord'] as const, /** Create getAllRecord mutation key */ create: () => @@ -27,6 +36,22 @@ export const getAllRecordMutationKeys = { /** Delete getAllRecord mutation key */ delete: (id: string | number) => ['mutation', 'getallrecord', 'delete', id] as const, } as const; +export const infraRefMutationKeys = { + /** All infraRef mutation keys */ all: ['mutation', 'infraref'] as const, + /** Create infraRef mutation key */ create: () => ['mutation', 'infraref', 'create'] as const, + /** Update infraRef mutation key */ update: (id: string | number) => + ['mutation', 'infraref', 'update', id] as const, + /** Delete infraRef mutation key */ delete: (id: string | number) => + ['mutation', 'infraref', 'delete', id] as const, +} as const; +export const infraStoreMutationKeys = { + /** All infraStore mutation keys */ all: ['mutation', 'infrastore'] as const, + /** Create infraStore mutation key */ create: () => ['mutation', 'infrastore', 'create'] as const, + /** Update infraStore mutation key */ update: (id: string | number) => + ['mutation', 'infrastore', 'update', id] as const, + /** Delete infraStore mutation key */ delete: (id: string | number) => + ['mutation', 'infrastore', 'delete', id] as const, +} as const; export const functionApiBindingMutationKeys = { /** All functionApiBinding mutation keys */ all: ['mutation', 'functionapibinding'] as const, /** Create functionApiBinding mutation key */ create: () => @@ -36,23 +61,6 @@ export const functionApiBindingMutationKeys = { /** Delete functionApiBinding mutation key */ delete: (id: string | number) => ['mutation', 'functionapibinding', 'delete', id] as const, } as const; -export const functionDeploymentMutationKeys = { - /** All functionDeployment mutation keys */ all: ['mutation', 'functiondeployment'] as const, - /** Create functionDeployment mutation key */ create: () => - ['mutation', 'functiondeployment', 'create'] as const, - /** Update functionDeployment mutation key */ update: (id: string | number) => - ['mutation', 'functiondeployment', 'update', id] as const, - /** Delete functionDeployment mutation key */ delete: (id: string | number) => - ['mutation', 'functiondeployment', '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, - /** Update resource mutation key */ update: (id: string | number) => - ['mutation', 'resource', 'update', id] as const, - /** Delete resource mutation key */ delete: (id: string | number) => - ['mutation', 'resource', 'delete', id] as const, -} as const; export const functionGraphRefMutationKeys = { /** All functionGraphRef mutation keys */ all: ['mutation', 'functiongraphref'] as const, /** Create functionGraphRef mutation key */ create: () => @@ -71,6 +79,96 @@ export const functionGraphStoreMutationKeys = { /** Delete functionGraphStore mutation key */ delete: (id: string | number) => ['mutation', 'functiongraphstore', 'delete', id] as const, } as const; +export const platformFunctionApiBindingMutationKeys = { + /** All platformFunctionApiBinding mutation keys */ all: [ + 'mutation', + 'platformfunctionapibinding', + ] as const, + /** Create platformFunctionApiBinding mutation key */ create: () => + ['mutation', 'platformfunctionapibinding', 'create'] as const, + /** Update platformFunctionApiBinding mutation key */ update: (id: string | number) => + ['mutation', 'platformfunctionapibinding', 'update', id] as const, + /** Delete platformFunctionApiBinding mutation key */ delete: (id: string | number) => + ['mutation', 'platformfunctionapibinding', 'delete', id] as const, +} as const; +export const platformResourcesRequirementsStateMutationKeys = { + /** All platformResourcesRequirementsState mutation keys */ all: [ + 'mutation', + 'platformresourcesrequirementsstate', + ] as const, + /** Create platformResourcesRequirementsState mutation key */ create: () => + ['mutation', 'platformresourcesrequirementsstate', 'create'] as const, + /** Update platformResourcesRequirementsState mutation key */ update: (id: string | number) => + ['mutation', 'platformresourcesrequirementsstate', 'update', id] as const, + /** Delete platformResourcesRequirementsState mutation key */ delete: (id: string | number) => + ['mutation', 'platformresourcesrequirementsstate', 'delete', id] as const, +} as const; +export const resourcesRequirementsStateMutationKeys = { + /** All resourcesRequirementsState mutation keys */ all: [ + 'mutation', + 'resourcesrequirementsstate', + ] as const, + /** Create resourcesRequirementsState mutation key */ create: () => + ['mutation', 'resourcesrequirementsstate', 'create'] as const, + /** Update resourcesRequirementsState mutation key */ update: (id: string | number) => + ['mutation', 'resourcesrequirementsstate', 'update', id] as const, + /** Delete resourcesRequirementsState mutation key */ delete: (id: string | number) => + ['mutation', 'resourcesrequirementsstate', 'delete', id] as const, +} as const; +export const platformResourceStatusCheckMutationKeys = { + /** All platformResourceStatusCheck mutation keys */ all: [ + 'mutation', + 'platformresourcestatuscheck', + ] as const, + /** Create platformResourceStatusCheck mutation key */ create: () => + ['mutation', 'platformresourcestatuscheck', 'create'] as const, + /** Update platformResourceStatusCheck mutation key */ update: (id: string | number) => + ['mutation', 'platformresourcestatuscheck', 'update', id] as const, + /** Delete platformResourceStatusCheck mutation key */ delete: (id: string | number) => + ['mutation', 'platformresourcestatuscheck', 'delete', id] as const, +} as const; +export const platformFunctionDeploymentMutationKeys = { + /** All platformFunctionDeployment mutation keys */ all: [ + 'mutation', + 'platformfunctiondeployment', + ] as const, + /** Create platformFunctionDeployment mutation key */ create: () => + ['mutation', 'platformfunctiondeployment', 'create'] as const, + /** Update platformFunctionDeployment mutation key */ update: (id: string | number) => + ['mutation', 'platformfunctiondeployment', 'update', id] as const, + /** Delete platformFunctionDeployment mutation key */ delete: (id: string | number) => + ['mutation', 'platformfunctiondeployment', 'delete', id] as const, +} as const; +export const platformResourceMutationKeys = { + /** All platformResource mutation keys */ all: ['mutation', 'platformresource'] as const, + /** Create platformResource mutation key */ create: () => + ['mutation', 'platformresource', 'create'] as const, + /** Update platformResource mutation key */ update: (id: string | number) => + ['mutation', 'platformresource', 'update', id] as const, + /** Delete platformResource mutation key */ delete: (id: string | number) => + ['mutation', 'platformresource', 'delete', id] as const, +} as const; +export const platformResourceDefinitionMutationKeys = { + /** All platformResourceDefinition mutation keys */ all: [ + 'mutation', + 'platformresourcedefinition', + ] as const, + /** Create platformResourceDefinition mutation key */ create: () => + ['mutation', 'platformresourcedefinition', 'create'] as const, + /** Update platformResourceDefinition mutation key */ update: (id: string | number) => + ['mutation', 'platformresourcedefinition', 'update', id] as const, + /** Delete platformResourceDefinition mutation key */ delete: (id: string | number) => + ['mutation', 'platformresourcedefinition', 'delete', id] as const, +} as const; +export const infraObjectMutationKeys = { + /** All infraObject mutation keys */ all: ['mutation', 'infraobject'] as const, + /** Create infraObject mutation key */ create: () => + ['mutation', 'infraobject', 'create'] as const, + /** Update infraObject mutation key */ update: (id: string | number) => + ['mutation', 'infraobject', 'update', id] as const, + /** Delete infraObject mutation key */ delete: (id: string | number) => + ['mutation', 'infraobject', 'delete', id] as const, +} as const; export const functionGraphObjectMutationKeys = { /** All functionGraphObject mutation keys */ all: ['mutation', 'functiongraphobject'] as const, /** Create functionGraphObject mutation key */ create: () => @@ -80,6 +178,65 @@ export const functionGraphObjectMutationKeys = { /** Delete functionGraphObject mutation key */ delete: (id: string | number) => ['mutation', 'functiongraphobject', 'delete', id] as const, } as const; +export const platformFunctionDeploymentEventMutationKeys = { + /** All platformFunctionDeploymentEvent mutation keys */ all: [ + 'mutation', + 'platformfunctiondeploymentevent', + ] as const, + /** Create platformFunctionDeploymentEvent mutation key */ create: () => + ['mutation', 'platformfunctiondeploymentevent', 'create'] as const, + /** Update platformFunctionDeploymentEvent mutation key */ update: (id: string | number) => + ['mutation', 'platformfunctiondeploymentevent', 'update', id] as const, + /** Delete platformFunctionDeploymentEvent mutation key */ delete: (id: string | number) => + ['mutation', 'platformfunctiondeploymentevent', 'delete', id] as const, +} as const; +export const platformResourceEventMutationKeys = { + /** All platformResourceEvent mutation keys */ all: [ + 'mutation', + 'platformresourceevent', + ] as const, + /** Create platformResourceEvent mutation key */ create: () => + ['mutation', 'platformresourceevent', 'create'] as const, + /** Update platformResourceEvent mutation key */ update: (id: string | number) => + ['mutation', 'platformresourceevent', 'update', id] as const, + /** Delete platformResourceEvent mutation key */ delete: (id: string | number) => + ['mutation', 'platformresourceevent', 'delete', id] as const, +} as const; +export const resourceStatusCheckMutationKeys = { + /** All resourceStatusCheck mutation keys */ all: ['mutation', 'resourcestatuscheck'] as const, + /** Create resourceStatusCheck mutation key */ create: () => + ['mutation', 'resourcestatuscheck', 'create'] as const, + /** Update resourceStatusCheck mutation key */ update: (id: string | number) => + ['mutation', 'resourcestatuscheck', 'update', id] as const, + /** Delete resourceStatusCheck mutation key */ delete: (id: string | number) => + ['mutation', 'resourcestatuscheck', 'delete', id] as const, +} as const; +export const functionDeploymentMutationKeys = { + /** All functionDeployment mutation keys */ all: ['mutation', 'functiondeployment'] as const, + /** Create functionDeployment mutation key */ create: () => + ['mutation', 'functiondeployment', 'create'] as const, + /** Update functionDeployment mutation key */ update: (id: string | number) => + ['mutation', 'functiondeployment', 'update', id] as const, + /** Delete functionDeployment mutation key */ delete: (id: string | number) => + ['mutation', 'functiondeployment', '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, + /** Update resource mutation key */ update: (id: string | number) => + ['mutation', 'resource', 'update', id] as const, + /** Delete resource mutation key */ delete: (id: string | number) => + ['mutation', 'resource', 'delete', id] as const, +} as const; +export const resourceDefinitionMutationKeys = { + /** All resourceDefinition mutation keys */ all: ['mutation', 'resourcedefinition'] as const, + /** Create resourceDefinition mutation key */ create: () => + ['mutation', 'resourcedefinition', 'create'] as const, + /** Update resourceDefinition mutation key */ update: (id: string | number) => + ['mutation', 'resourcedefinition', 'update', id] as const, + /** Delete resourceDefinition mutation key */ delete: (id: string | number) => + ['mutation', 'resourcedefinition', 'delete', id] as const, +} as const; export const functionDeploymentEventMutationKeys = { /** All functionDeploymentEvent mutation keys */ all: [ 'mutation', @@ -92,17 +249,17 @@ export const functionDeploymentEventMutationKeys = { /** Delete functionDeploymentEvent mutation key */ delete: (id: string | number) => ['mutation', 'functiondeploymentevent', 'delete', id] as const, } as const; -export const orgFunctionExecutionLogMutationKeys = { - /** All orgFunctionExecutionLog mutation keys */ all: [ +export const platformFunctionExecutionLogMutationKeys = { + /** All platformFunctionExecutionLog mutation keys */ all: [ 'mutation', - 'orgfunctionexecutionlog', + 'platformfunctionexecutionlog', ] as const, - /** Create orgFunctionExecutionLog mutation key */ create: () => - ['mutation', 'orgfunctionexecutionlog', 'create'] as const, - /** Update orgFunctionExecutionLog mutation key */ update: (id: string | number) => - ['mutation', 'orgfunctionexecutionlog', 'update', id] as const, - /** Delete orgFunctionExecutionLog mutation key */ delete: (id: string | number) => - ['mutation', 'orgfunctionexecutionlog', 'delete', id] as const, + /** Create platformFunctionExecutionLog mutation key */ create: () => + ['mutation', 'platformfunctionexecutionlog', 'create'] as const, + /** Update platformFunctionExecutionLog mutation key */ update: (id: string | number) => + ['mutation', 'platformfunctionexecutionlog', 'update', id] as const, + /** Delete platformFunctionExecutionLog mutation key */ delete: (id: string | number) => + ['mutation', 'platformfunctionexecutionlog', 'delete', id] as const, } as const; export const resourceEventMutationKeys = { /** All resourceEvent mutation keys */ all: ['mutation', 'resourceevent'] as const, @@ -125,6 +282,15 @@ export const functionGraphExecutionOutputMutationKeys = { /** Delete functionGraphExecutionOutput mutation key */ delete: (id: string | number) => ['mutation', 'functiongraphexecutionoutput', 'delete', id] as const, } as const; +export const infraCommitMutationKeys = { + /** All infraCommit mutation keys */ all: ['mutation', 'infracommit'] as const, + /** Create infraCommit mutation key */ create: () => + ['mutation', 'infracommit', 'create'] as const, + /** Update infraCommit mutation key */ update: (id: string | number) => + ['mutation', 'infracommit', 'update', id] as const, + /** Delete infraCommit mutation key */ delete: (id: string | number) => + ['mutation', 'infracommit', 'delete', id] as const, +} as const; export const functionGraphCommitMutationKeys = { /** All functionGraphCommit mutation keys */ all: ['mutation', 'functiongraphcommit'] as const, /** Create functionGraphCommit mutation key */ create: () => @@ -134,15 +300,6 @@ export const functionGraphCommitMutationKeys = { /** Delete functionGraphCommit mutation key */ delete: (id: string | number) => ['mutation', 'functiongraphcommit', 'delete', id] as const, } as const; -export const secretDefinitionMutationKeys = { - /** All secretDefinition mutation keys */ all: ['mutation', 'secretdefinition'] as const, - /** Create secretDefinition mutation key */ create: () => - ['mutation', 'secretdefinition', 'create'] as const, - /** Update secretDefinition mutation key */ update: (id: string | number) => - ['mutation', 'secretdefinition', 'update', id] as const, - /** Delete secretDefinition mutation key */ delete: (id: string | number) => - ['mutation', 'secretdefinition', 'delete', id] as const, -} as const; export const functionExecutionLogMutationKeys = { /** All functionExecutionLog mutation keys */ all: ['mutation', 'functionexecutionlog'] as const, /** Create functionExecutionLog mutation key */ create: () => @@ -152,6 +309,47 @@ export const functionExecutionLogMutationKeys = { /** Delete functionExecutionLog mutation key */ delete: (id: string | number) => ['mutation', 'functionexecutionlog', 'delete', id] as const, } as const; +export const platformResourcesResolvedRequirementMutationKeys = { + /** All platformResourcesResolvedRequirement mutation keys */ all: [ + 'mutation', + 'platformresourcesresolvedrequirement', + ] as const, + /** Create platformResourcesResolvedRequirement mutation key */ create: () => + ['mutation', 'platformresourcesresolvedrequirement', 'create'] as const, + /** Update platformResourcesResolvedRequirement mutation key */ update: (id: string | number) => + ['mutation', 'platformresourcesresolvedrequirement', 'update', id] as const, + /** Delete platformResourcesResolvedRequirement mutation key */ delete: (id: string | number) => + ['mutation', 'platformresourcesresolvedrequirement', 'delete', id] as const, +} as const; +export const resourcesResolvedRequirementMutationKeys = { + /** All resourcesResolvedRequirement mutation keys */ all: [ + 'mutation', + 'resourcesresolvedrequirement', + ] as const, + /** Create resourcesResolvedRequirement mutation key */ create: () => + ['mutation', 'resourcesresolvedrequirement', 'create'] as const, + /** Update resourcesResolvedRequirement mutation key */ update: (id: string | number) => + ['mutation', 'resourcesresolvedrequirement', 'update', id] as const, + /** Delete resourcesResolvedRequirement mutation key */ delete: (id: string | number) => + ['mutation', 'resourcesresolvedrequirement', '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, + /** Update dbPreset mutation key */ update: (id: string | number) => + ['mutation', 'dbpreset', 'update', id] as const, + /** Delete dbPreset mutation key */ delete: (id: string | number) => + ['mutation', 'dbpreset', 'delete', id] as const, +} as const; +export const platformNamespaceMutationKeys = { + /** All platformNamespace mutation keys */ all: ['mutation', 'platformnamespace'] as const, + /** Create platformNamespace mutation key */ create: () => + ['mutation', 'platformnamespace', 'create'] as const, + /** Update platformNamespace mutation key */ update: (id: string | number) => + ['mutation', 'platformnamespace', 'update', id] as const, + /** Delete platformNamespace mutation key */ delete: (id: string | number) => + ['mutation', 'platformnamespace', 'delete', id] as const, +} as const; export const functionGraphMutationKeys = { /** All functionGraph mutation keys */ all: ['mutation', 'functiongraph'] as const, /** Create functionGraph mutation key */ create: () => @@ -173,26 +371,25 @@ export const functionGraphExecutionNodeStateMutationKeys = { /** Delete functionGraphExecutionNodeState mutation key */ delete: (id: string | number) => ['mutation', 'functiongraphexecutionnodestate', 'delete', id] as const, } as const; -export const platformNamespaceMutationKeys = { - /** All platformNamespace mutation keys */ all: ['mutation', 'platformnamespace'] as const, - /** Create platformNamespace mutation key */ create: () => - ['mutation', 'platformnamespace', 'create'] as const, - /** Update platformNamespace mutation key */ update: (id: string | number) => - ['mutation', 'platformnamespace', 'update', id] as const, - /** Delete platformNamespace mutation key */ delete: (id: string | number) => - ['mutation', 'platformnamespace', 'delete', id] as const, +export const namespaceMutationKeys = { + /** All namespace mutation keys */ all: ['mutation', 'namespace'] as const, + /** Create namespace mutation key */ create: () => ['mutation', 'namespace', 'create'] as const, + /** Update namespace mutation key */ update: (id: string | number) => + ['mutation', 'namespace', 'update', id] as const, + /** Delete namespace mutation key */ delete: (id: string | number) => + ['mutation', 'namespace', 'delete', id] as const, } as const; -export const orgFunctionInvocationMutationKeys = { - /** All orgFunctionInvocation mutation keys */ all: [ +export const platformFunctionInvocationMutationKeys = { + /** All platformFunctionInvocation mutation keys */ all: [ 'mutation', - 'orgfunctioninvocation', + 'platformfunctioninvocation', ] as const, - /** Create orgFunctionInvocation mutation key */ create: () => - ['mutation', 'orgfunctioninvocation', 'create'] as const, - /** Update orgFunctionInvocation mutation key */ update: (id: string | number) => - ['mutation', 'orgfunctioninvocation', 'update', id] as const, - /** Delete orgFunctionInvocation mutation key */ delete: (id: string | number) => - ['mutation', 'orgfunctioninvocation', 'delete', id] as const, + /** Create platformFunctionInvocation mutation key */ create: () => + ['mutation', 'platformfunctioninvocation', 'create'] as const, + /** Update platformFunctionInvocation mutation key */ update: (id: string | number) => + ['mutation', 'platformfunctioninvocation', 'update', id] as const, + /** Delete platformFunctionInvocation mutation key */ delete: (id: string | number) => + ['mutation', 'platformfunctioninvocation', 'delete', id] as const, } as const; export const functionInvocationMutationKeys = { /** All functionInvocation mutation keys */ all: ['mutation', 'functioninvocation'] as const, @@ -215,6 +412,24 @@ export const platformNamespaceEventMutationKeys = { /** Delete platformNamespaceEvent mutation key */ delete: (id: string | number) => ['mutation', 'platformnamespaceevent', 'delete', id] as const, } as const; +export const integrationProviderMutationKeys = { + /** All integrationProvider mutation keys */ all: ['mutation', 'integrationprovider'] as const, + /** Create integrationProvider mutation key */ create: () => + ['mutation', 'integrationprovider', 'create'] as const, + /** Update integrationProvider mutation key */ update: (id: string | number) => + ['mutation', 'integrationprovider', 'update', id] as const, + /** Delete integrationProvider mutation key */ delete: (id: string | number) => + ['mutation', 'integrationprovider', 'delete', id] as const, +} as const; +export const namespaceEventMutationKeys = { + /** All namespaceEvent mutation keys */ all: ['mutation', 'namespaceevent'] as const, + /** Create namespaceEvent mutation key */ create: () => + ['mutation', 'namespaceevent', 'create'] as const, + /** Update namespaceEvent mutation key */ update: (id: string | number) => + ['mutation', 'namespaceevent', 'update', id] as const, + /** Delete namespaceEvent mutation key */ delete: (id: string | number) => + ['mutation', 'namespaceevent', 'delete', id] as const, +} as const; export const functionGraphExecutionMutationKeys = { /** All functionGraphExecution mutation keys */ all: [ 'mutation', @@ -227,6 +442,18 @@ export const functionGraphExecutionMutationKeys = { /** Delete functionGraphExecution mutation key */ delete: (id: string | number) => ['mutation', 'functiongraphexecution', 'delete', id] as const, } as const; +export const platformFunctionDefinitionMutationKeys = { + /** All platformFunctionDefinition mutation keys */ all: [ + 'mutation', + 'platformfunctiondefinition', + ] as const, + /** Create platformFunctionDefinition mutation key */ create: () => + ['mutation', 'platformfunctiondefinition', 'create'] as const, + /** Update platformFunctionDefinition mutation key */ update: (id: string | number) => + ['mutation', 'platformfunctiondefinition', 'update', id] as const, + /** Delete platformFunctionDefinition mutation key */ delete: (id: string | number) => + ['mutation', 'platformfunctiondefinition', 'delete', id] as const, +} as const; export const functionDefinitionMutationKeys = { /** All functionDefinition mutation keys */ all: ['mutation', 'functiondefinition'] as const, /** Create functionDefinition mutation key */ create: () => @@ -246,18 +473,26 @@ export const customMutationKeys = { identifier ? (['mutation', 'validateFunctionGraph', identifier] as const) : (['mutation', 'validateFunctionGraph'] as const), + /** Mutation key for infraInitEmptyRepo */ infraInitEmptyRepo: (identifier?: string) => + identifier + ? (['mutation', 'infraInitEmptyRepo', identifier] as const) + : (['mutation', 'infraInitEmptyRepo'] as const), /** Mutation key for initEmptyRepo */ initEmptyRepo: (identifier?: string) => identifier ? (['mutation', 'initEmptyRepo', identifier] as const) : (['mutation', 'initEmptyRepo'] as const), - /** Mutation key for setDataAtPath */ setDataAtPath: (identifier?: string) => - identifier - ? (['mutation', 'setDataAtPath', identifier] as const) - : (['mutation', 'setDataAtPath'] as const), /** Mutation key for importDefinitions */ importDefinitions: (identifier?: string) => identifier ? (['mutation', 'importDefinitions', identifier] as const) : (['mutation', 'importDefinitions'] as const), + /** Mutation key for infraSetDataAtPath */ infraSetDataAtPath: (identifier?: string) => + identifier + ? (['mutation', 'infraSetDataAtPath', identifier] as const) + : (['mutation', 'infraSetDataAtPath'] as const), + /** Mutation key for setDataAtPath */ setDataAtPath: (identifier?: string) => + identifier + ? (['mutation', 'setDataAtPath', identifier] as const) + : (['mutation', 'setDataAtPath'] as const), /** Mutation key for copyGraph */ copyGraph: (identifier?: string) => identifier ? (['mutation', 'copyGraph', identifier] as const) @@ -286,6 +521,10 @@ export const customMutationKeys = { identifier ? (['mutation', 'addNode', identifier] as const) : (['mutation', 'addNode'] as const), + /** Mutation key for infraInsertNodeAtPath */ infraInsertNodeAtPath: (identifier?: string) => + identifier + ? (['mutation', 'infraInsertNodeAtPath', identifier] as const) + : (['mutation', 'infraInsertNodeAtPath'] as const), /** Mutation key for insertNodeAtPath */ insertNodeAtPath: (identifier?: string) => identifier ? (['mutation', 'insertNodeAtPath', identifier] as const) @@ -322,27 +561,49 @@ export const customMutationKeys = { * ``` */ export const mutationKeys = { + infraGetAllRecord: infraGetAllRecordMutationKeys, getAllRecord: getAllRecordMutationKeys, + infraRef: infraRefMutationKeys, + infraStore: infraStoreMutationKeys, functionApiBinding: functionApiBindingMutationKeys, - functionDeployment: functionDeploymentMutationKeys, - resource: resourceMutationKeys, functionGraphRef: functionGraphRefMutationKeys, functionGraphStore: functionGraphStoreMutationKeys, + platformFunctionApiBinding: platformFunctionApiBindingMutationKeys, + platformResourcesRequirementsState: platformResourcesRequirementsStateMutationKeys, + resourcesRequirementsState: resourcesRequirementsStateMutationKeys, + platformResourceStatusCheck: platformResourceStatusCheckMutationKeys, + platformFunctionDeployment: platformFunctionDeploymentMutationKeys, + platformResource: platformResourceMutationKeys, + platformResourceDefinition: platformResourceDefinitionMutationKeys, + infraObject: infraObjectMutationKeys, functionGraphObject: functionGraphObjectMutationKeys, + platformFunctionDeploymentEvent: platformFunctionDeploymentEventMutationKeys, + platformResourceEvent: platformResourceEventMutationKeys, + resourceStatusCheck: resourceStatusCheckMutationKeys, + functionDeployment: functionDeploymentMutationKeys, + resource: resourceMutationKeys, + resourceDefinition: resourceDefinitionMutationKeys, functionDeploymentEvent: functionDeploymentEventMutationKeys, - orgFunctionExecutionLog: orgFunctionExecutionLogMutationKeys, + platformFunctionExecutionLog: platformFunctionExecutionLogMutationKeys, resourceEvent: resourceEventMutationKeys, functionGraphExecutionOutput: functionGraphExecutionOutputMutationKeys, + infraCommit: infraCommitMutationKeys, functionGraphCommit: functionGraphCommitMutationKeys, - secretDefinition: secretDefinitionMutationKeys, functionExecutionLog: functionExecutionLogMutationKeys, + platformResourcesResolvedRequirement: platformResourcesResolvedRequirementMutationKeys, + resourcesResolvedRequirement: resourcesResolvedRequirementMutationKeys, + dbPreset: dbPresetMutationKeys, + platformNamespace: platformNamespaceMutationKeys, functionGraph: functionGraphMutationKeys, functionGraphExecutionNodeState: functionGraphExecutionNodeStateMutationKeys, - platformNamespace: platformNamespaceMutationKeys, - orgFunctionInvocation: orgFunctionInvocationMutationKeys, + namespace: namespaceMutationKeys, + platformFunctionInvocation: platformFunctionInvocationMutationKeys, functionInvocation: functionInvocationMutationKeys, platformNamespaceEvent: platformNamespaceEventMutationKeys, + integrationProvider: integrationProviderMutationKeys, + namespaceEvent: namespaceEventMutationKeys, functionGraphExecution: functionGraphExecutionMutationKeys, + platformFunctionDefinition: platformFunctionDefinitionMutationKeys, functionDefinition: functionDefinitionMutationKeys, custom: customMutationKeys, } as const; diff --git a/sdk/constructive-react/src/compute/hooks/mutations/index.ts b/sdk/constructive-react/src/compute/hooks/mutations/index.ts index 828e6c581a..86a5f61cf5 100644 --- a/sdk/constructive-react/src/compute/hooks/mutations/index.ts +++ b/sdk/constructive-react/src/compute/hooks/mutations/index.ts @@ -3,74 +3,132 @@ * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ +export * from './useCreateInfraGetAllRecordMutation'; export * from './useCreateGetAllRecordMutation'; +export * from './useCreateInfraRefMutation'; +export * from './useUpdateInfraRefMutation'; +export * from './useDeleteInfraRefMutation'; +export * from './useCreateInfraStoreMutation'; +export * from './useUpdateInfraStoreMutation'; +export * from './useDeleteInfraStoreMutation'; export * from './useCreateFunctionApiBindingMutation'; export * from './useUpdateFunctionApiBindingMutation'; export * from './useDeleteFunctionApiBindingMutation'; -export * from './useCreateFunctionDeploymentMutation'; -export * from './useUpdateFunctionDeploymentMutation'; -export * from './useDeleteFunctionDeploymentMutation'; -export * from './useCreateResourceMutation'; -export * from './useUpdateResourceMutation'; -export * from './useDeleteResourceMutation'; export * from './useCreateFunctionGraphRefMutation'; export * from './useUpdateFunctionGraphRefMutation'; export * from './useDeleteFunctionGraphRefMutation'; export * from './useCreateFunctionGraphStoreMutation'; export * from './useUpdateFunctionGraphStoreMutation'; export * from './useDeleteFunctionGraphStoreMutation'; +export * from './useCreatePlatformFunctionApiBindingMutation'; +export * from './useUpdatePlatformFunctionApiBindingMutation'; +export * from './useDeletePlatformFunctionApiBindingMutation'; +export * from './useCreatePlatformResourcesRequirementsStateMutation'; +export * from './useCreateResourcesRequirementsStateMutation'; +export * from './useCreatePlatformResourceStatusCheckMutation'; +export * from './useUpdatePlatformResourceStatusCheckMutation'; +export * from './useDeletePlatformResourceStatusCheckMutation'; +export * from './useCreatePlatformFunctionDeploymentMutation'; +export * from './useUpdatePlatformFunctionDeploymentMutation'; +export * from './useDeletePlatformFunctionDeploymentMutation'; +export * from './useCreatePlatformResourceMutation'; +export * from './useUpdatePlatformResourceMutation'; +export * from './useDeletePlatformResourceMutation'; +export * from './useCreatePlatformResourceDefinitionMutation'; +export * from './useUpdatePlatformResourceDefinitionMutation'; +export * from './useDeletePlatformResourceDefinitionMutation'; +export * from './useCreateInfraObjectMutation'; +export * from './useUpdateInfraObjectMutation'; +export * from './useDeleteInfraObjectMutation'; export * from './useCreateFunctionGraphObjectMutation'; export * from './useUpdateFunctionGraphObjectMutation'; export * from './useDeleteFunctionGraphObjectMutation'; +export * from './useCreatePlatformFunctionDeploymentEventMutation'; +export * from './useUpdatePlatformFunctionDeploymentEventMutation'; +export * from './useDeletePlatformFunctionDeploymentEventMutation'; +export * from './useCreatePlatformResourceEventMutation'; +export * from './useUpdatePlatformResourceEventMutation'; +export * from './useDeletePlatformResourceEventMutation'; +export * from './useCreateResourceStatusCheckMutation'; +export * from './useUpdateResourceStatusCheckMutation'; +export * from './useDeleteResourceStatusCheckMutation'; +export * from './useCreateFunctionDeploymentMutation'; +export * from './useUpdateFunctionDeploymentMutation'; +export * from './useDeleteFunctionDeploymentMutation'; +export * from './useCreateResourceMutation'; +export * from './useUpdateResourceMutation'; +export * from './useDeleteResourceMutation'; +export * from './useCreateResourceDefinitionMutation'; +export * from './useUpdateResourceDefinitionMutation'; +export * from './useDeleteResourceDefinitionMutation'; export * from './useCreateFunctionDeploymentEventMutation'; export * from './useUpdateFunctionDeploymentEventMutation'; export * from './useDeleteFunctionDeploymentEventMutation'; -export * from './useCreateOrgFunctionExecutionLogMutation'; -export * from './useUpdateOrgFunctionExecutionLogMutation'; -export * from './useDeleteOrgFunctionExecutionLogMutation'; +export * from './useCreatePlatformFunctionExecutionLogMutation'; +export * from './useUpdatePlatformFunctionExecutionLogMutation'; +export * from './useDeletePlatformFunctionExecutionLogMutation'; export * from './useCreateResourceEventMutation'; export * from './useUpdateResourceEventMutation'; export * from './useDeleteResourceEventMutation'; export * from './useCreateFunctionGraphExecutionOutputMutation'; export * from './useUpdateFunctionGraphExecutionOutputMutation'; export * from './useDeleteFunctionGraphExecutionOutputMutation'; +export * from './useCreateInfraCommitMutation'; +export * from './useUpdateInfraCommitMutation'; +export * from './useDeleteInfraCommitMutation'; export * from './useCreateFunctionGraphCommitMutation'; export * from './useUpdateFunctionGraphCommitMutation'; export * from './useDeleteFunctionGraphCommitMutation'; -export * from './useCreateSecretDefinitionMutation'; -export * from './useUpdateSecretDefinitionMutation'; -export * from './useDeleteSecretDefinitionMutation'; export * from './useCreateFunctionExecutionLogMutation'; export * from './useUpdateFunctionExecutionLogMutation'; export * from './useDeleteFunctionExecutionLogMutation'; +export * from './useCreatePlatformResourcesResolvedRequirementMutation'; +export * from './useCreateResourcesResolvedRequirementMutation'; +export * from './useCreateDbPresetMutation'; +export * from './useUpdateDbPresetMutation'; +export * from './useDeleteDbPresetMutation'; +export * from './useCreatePlatformNamespaceMutation'; +export * from './useUpdatePlatformNamespaceMutation'; +export * from './useDeletePlatformNamespaceMutation'; export * from './useCreateFunctionGraphMutation'; export * from './useUpdateFunctionGraphMutation'; export * from './useDeleteFunctionGraphMutation'; export * from './useCreateFunctionGraphExecutionNodeStateMutation'; export * from './useUpdateFunctionGraphExecutionNodeStateMutation'; export * from './useDeleteFunctionGraphExecutionNodeStateMutation'; -export * from './useCreatePlatformNamespaceMutation'; -export * from './useUpdatePlatformNamespaceMutation'; -export * from './useDeletePlatformNamespaceMutation'; -export * from './useCreateOrgFunctionInvocationMutation'; -export * from './useUpdateOrgFunctionInvocationMutation'; -export * from './useDeleteOrgFunctionInvocationMutation'; +export * from './useCreateNamespaceMutation'; +export * from './useUpdateNamespaceMutation'; +export * from './useDeleteNamespaceMutation'; +export * from './useCreatePlatformFunctionInvocationMutation'; +export * from './useUpdatePlatformFunctionInvocationMutation'; +export * from './useDeletePlatformFunctionInvocationMutation'; export * from './useCreateFunctionInvocationMutation'; export * from './useUpdateFunctionInvocationMutation'; export * from './useDeleteFunctionInvocationMutation'; export * from './useCreatePlatformNamespaceEventMutation'; export * from './useUpdatePlatformNamespaceEventMutation'; export * from './useDeletePlatformNamespaceEventMutation'; +export * from './useCreateIntegrationProviderMutation'; +export * from './useUpdateIntegrationProviderMutation'; +export * from './useDeleteIntegrationProviderMutation'; +export * from './useCreateNamespaceEventMutation'; +export * from './useUpdateNamespaceEventMutation'; +export * from './useDeleteNamespaceEventMutation'; export * from './useCreateFunctionGraphExecutionMutation'; export * from './useUpdateFunctionGraphExecutionMutation'; export * from './useDeleteFunctionGraphExecutionMutation'; +export * from './useCreatePlatformFunctionDefinitionMutation'; +export * from './useUpdatePlatformFunctionDefinitionMutation'; +export * from './useDeletePlatformFunctionDefinitionMutation'; export * from './useCreateFunctionDefinitionMutation'; export * from './useUpdateFunctionDefinitionMutation'; export * from './useDeleteFunctionDefinitionMutation'; export * from './useValidateFunctionGraphMutation'; +export * from './useInfraInitEmptyRepoMutation'; export * from './useInitEmptyRepoMutation'; -export * from './useSetDataAtPathMutation'; export * from './useImportDefinitionsMutation'; +export * from './useInfraSetDataAtPathMutation'; +export * from './useSetDataAtPathMutation'; export * from './useCopyGraphMutation'; export * from './useSaveGraphMutation'; export * from './useAddEdgeAndSaveMutation'; @@ -78,6 +136,7 @@ export * from './useAddNodeAndSaveMutation'; export * from './useImportGraphJsonMutation'; export * from './useAddEdgeMutation'; export * from './useAddNodeMutation'; +export * from './useInfraInsertNodeAtPathMutation'; export * from './useInsertNodeAtPathMutation'; export * from './useStartExecutionMutation'; export * from './useProvisionBucketMutation'; diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useCreateDbPresetMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useCreateDbPresetMutation.ts new file mode 100644 index 0000000000..a415acccb6 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useCreateDbPresetMutation.ts @@ -0,0 +1,88 @@ +/** + * Database provisioning preset catalog — 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 { dbPresetKeys } from '../query-keys'; +import { dbPresetMutationKeys } from '../mutation-keys'; +import type { + DbPresetSelect, + DbPresetWithRelations, + CreateDbPresetInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + DbPresetSelect, + DbPresetWithRelations, + CreateDbPresetInput, +} from '../../orm/input-types'; +/** + * Database provisioning preset catalog — merkle-versioned head over the infra store + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateDbPresetMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateDbPresetMutation( + params: { + selection: { + fields: S & DbPresetSelect; + } & HookStrictSelect, DbPresetSelect>; + } & Omit< + UseMutationOptions< + { + createDbPreset: { + dbPreset: InferSelectResult; + }; + }, + Error, + CreateDbPresetInput['dbPreset'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createDbPreset: { + dbPreset: InferSelectResult; + }; + }, + Error, + CreateDbPresetInput['dbPreset'] +>; +export function useCreateDbPresetMutation( + params: { + selection: SelectionConfig; + } & Omit, 'mutationFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: dbPresetMutationKeys.create(), + mutationFn: (data: CreateDbPresetInput['dbPreset']) => + getClient() + .dbPreset.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: dbPresetKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useCreateFunctionDeploymentMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useCreateFunctionDeploymentMutation.ts index d9b3d48e6c..114ae46afc 100644 --- a/sdk/constructive-react/src/compute/hooks/mutations/useCreateFunctionDeploymentMutation.ts +++ b/sdk/constructive-react/src/compute/hooks/mutations/useCreateFunctionDeploymentMutation.ts @@ -1,5 +1,5 @@ /** - * Function deployment bindings — ties a function definition to a namespace for Knative provisioning and routing + * Function deployment bindings — ties a handler image to a namespace for Knative provisioning and routing (one row per handler image per namespace) * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { CreateFunctionDeploymentInput, } from '../../orm/input-types'; /** - * Function deployment bindings — ties a function definition to a namespace for Knative provisioning and routing + * Function deployment bindings — ties a handler image to a namespace for Knative provisioning and routing (one row per handler image per namespace) * * @example * ```tsx diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useCreateInfraCommitMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useCreateInfraCommitMutation.ts new file mode 100644 index 0000000000..273e1ab40a --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useCreateInfraCommitMutation.ts @@ -0,0 +1,88 @@ +/** + * 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 { infraCommitKeys } from '../query-keys'; +import { infraCommitMutationKeys } from '../mutation-keys'; +import type { + InfraCommitSelect, + InfraCommitWithRelations, + CreateInfraCommitInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + InfraCommitSelect, + InfraCommitWithRelations, + CreateInfraCommitInput, +} from '../../orm/input-types'; +/** + * Commit history — each commit snapshots a tree root for a store + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateInfraCommitMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateInfraCommitMutation( + params: { + selection: { + fields: S & InfraCommitSelect; + } & HookStrictSelect, InfraCommitSelect>; + } & Omit< + UseMutationOptions< + { + createInfraCommit: { + infraCommit: InferSelectResult; + }; + }, + Error, + CreateInfraCommitInput['infraCommit'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createInfraCommit: { + infraCommit: InferSelectResult; + }; + }, + Error, + CreateInfraCommitInput['infraCommit'] +>; +export function useCreateInfraCommitMutation( + params: { + selection: SelectionConfig; + } & Omit, 'mutationFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: infraCommitMutationKeys.create(), + mutationFn: (data: CreateInfraCommitInput['infraCommit']) => + getClient() + .infraCommit.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: infraCommitKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useCreateInfraGetAllRecordMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useCreateInfraGetAllRecordMutation.ts new file mode 100644 index 0000000000..7496c537c5 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useCreateInfraGetAllRecordMutation.ts @@ -0,0 +1,91 @@ +/** + * Create mutation hook for InfraGetAllRecord + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { infraGetAllRecordKeys } from '../query-keys'; +import { infraGetAllRecordMutationKeys } from '../mutation-keys'; +import type { + InfraGetAllRecordSelect, + InfraGetAllRecordWithRelations, + CreateInfraGetAllRecordInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + InfraGetAllRecordSelect, + InfraGetAllRecordWithRelations, + CreateInfraGetAllRecordInput, +} from '../../orm/input-types'; +/** + * Mutation hook for creating a InfraGetAllRecord + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateInfraGetAllRecordMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateInfraGetAllRecordMutation( + params: { + selection: { + fields: S & InfraGetAllRecordSelect; + } & HookStrictSelect, InfraGetAllRecordSelect>; + } & Omit< + UseMutationOptions< + { + createInfraGetAllRecord: { + infraGetAllRecord: InferSelectResult; + }; + }, + Error, + CreateInfraGetAllRecordInput['infraGetAllRecord'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createInfraGetAllRecord: { + infraGetAllRecord: InferSelectResult; + }; + }, + Error, + CreateInfraGetAllRecordInput['infraGetAllRecord'] +>; +export function useCreateInfraGetAllRecordMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: infraGetAllRecordMutationKeys.create(), + mutationFn: (data: CreateInfraGetAllRecordInput['infraGetAllRecord']) => + getClient() + .infraGetAllRecord.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: infraGetAllRecordKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useCreateInfraObjectMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useCreateInfraObjectMutation.ts new file mode 100644 index 0000000000..770c486e1b --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useCreateInfraObjectMutation.ts @@ -0,0 +1,88 @@ +/** + * 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 { infraObjectKeys } from '../query-keys'; +import { infraObjectMutationKeys } from '../mutation-keys'; +import type { + InfraObjectSelect, + InfraObjectWithRelations, + CreateInfraObjectInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + InfraObjectSelect, + InfraObjectWithRelations, + CreateInfraObjectInput, +} from '../../orm/input-types'; +/** + * Content-addressed Merkle tree objects keyed by UUID v5 hash of data + children + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateInfraObjectMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateInfraObjectMutation( + params: { + selection: { + fields: S & InfraObjectSelect; + } & HookStrictSelect, InfraObjectSelect>; + } & Omit< + UseMutationOptions< + { + createInfraObject: { + infraObject: InferSelectResult; + }; + }, + Error, + CreateInfraObjectInput['infraObject'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createInfraObject: { + infraObject: InferSelectResult; + }; + }, + Error, + CreateInfraObjectInput['infraObject'] +>; +export function useCreateInfraObjectMutation( + params: { + selection: SelectionConfig; + } & Omit, 'mutationFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: infraObjectMutationKeys.create(), + mutationFn: (data: CreateInfraObjectInput['infraObject']) => + getClient() + .infraObject.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: infraObjectKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useCreateInfraRefMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useCreateInfraRefMutation.ts new file mode 100644 index 0000000000..d0894ecb75 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useCreateInfraRefMutation.ts @@ -0,0 +1,88 @@ +/** + * 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 { infraRefKeys } from '../query-keys'; +import { infraRefMutationKeys } from '../mutation-keys'; +import type { + InfraRefSelect, + InfraRefWithRelations, + CreateInfraRefInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + InfraRefSelect, + InfraRefWithRelations, + CreateInfraRefInput, +} from '../../orm/input-types'; +/** + * Branch heads — mutable pointers into the commit chain + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateInfraRefMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateInfraRefMutation( + params: { + selection: { + fields: S & InfraRefSelect; + } & HookStrictSelect, InfraRefSelect>; + } & Omit< + UseMutationOptions< + { + createInfraRef: { + infraRef: InferSelectResult; + }; + }, + Error, + CreateInfraRefInput['infraRef'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createInfraRef: { + infraRef: InferSelectResult; + }; + }, + Error, + CreateInfraRefInput['infraRef'] +>; +export function useCreateInfraRefMutation( + params: { + selection: SelectionConfig; + } & Omit, 'mutationFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: infraRefMutationKeys.create(), + mutationFn: (data: CreateInfraRefInput['infraRef']) => + getClient() + .infraRef.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: infraRefKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useCreateInfraStoreMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useCreateInfraStoreMutation.ts new file mode 100644 index 0000000000..f8f78f97d9 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useCreateInfraStoreMutation.ts @@ -0,0 +1,88 @@ +/** + * 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 { infraStoreKeys } from '../query-keys'; +import { infraStoreMutationKeys } from '../mutation-keys'; +import type { + InfraStoreSelect, + InfraStoreWithRelations, + CreateInfraStoreInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + InfraStoreSelect, + InfraStoreWithRelations, + CreateInfraStoreInput, +} from '../../orm/input-types'; +/** + * Named stores — one per version-controlled tree (e.g. one graph, one definition set) + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateInfraStoreMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateInfraStoreMutation( + params: { + selection: { + fields: S & InfraStoreSelect; + } & HookStrictSelect, InfraStoreSelect>; + } & Omit< + UseMutationOptions< + { + createInfraStore: { + infraStore: InferSelectResult; + }; + }, + Error, + CreateInfraStoreInput['infraStore'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createInfraStore: { + infraStore: InferSelectResult; + }; + }, + Error, + CreateInfraStoreInput['infraStore'] +>; +export function useCreateInfraStoreMutation( + params: { + selection: SelectionConfig; + } & Omit, 'mutationFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: infraStoreMutationKeys.create(), + mutationFn: (data: CreateInfraStoreInput['infraStore']) => + getClient() + .infraStore.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: infraStoreKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useCreateIntegrationProviderMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useCreateIntegrationProviderMutation.ts new file mode 100644 index 0000000000..df67c292b1 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useCreateIntegrationProviderMutation.ts @@ -0,0 +1,91 @@ +/** + * 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. + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { integrationProviderKeys } from '../query-keys'; +import { integrationProviderMutationKeys } from '../mutation-keys'; +import type { + IntegrationProviderSelect, + IntegrationProviderWithRelations, + CreateIntegrationProviderInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + IntegrationProviderSelect, + IntegrationProviderWithRelations, + CreateIntegrationProviderInput, +} from '../../orm/input-types'; +/** + * 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. + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateIntegrationProviderMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateIntegrationProviderMutation( + params: { + selection: { + fields: S & IntegrationProviderSelect; + } & HookStrictSelect, IntegrationProviderSelect>; + } & Omit< + UseMutationOptions< + { + createIntegrationProvider: { + integrationProvider: InferSelectResult; + }; + }, + Error, + CreateIntegrationProviderInput['integrationProvider'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createIntegrationProvider: { + integrationProvider: InferSelectResult; + }; + }, + Error, + CreateIntegrationProviderInput['integrationProvider'] +>; +export function useCreateIntegrationProviderMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: integrationProviderMutationKeys.create(), + mutationFn: (data: CreateIntegrationProviderInput['integrationProvider']) => + getClient() + .integrationProvider.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: integrationProviderKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useCreateNamespaceEventMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useCreateNamespaceEventMutation.ts new file mode 100644 index 0000000000..18fc4fff8b --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useCreateNamespaceEventMutation.ts @@ -0,0 +1,91 @@ +/** + * Namespace lifecycle events — audit log of creation, activation, deactivation, label changes + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { namespaceEventKeys } from '../query-keys'; +import { namespaceEventMutationKeys } from '../mutation-keys'; +import type { + NamespaceEventSelect, + NamespaceEventWithRelations, + CreateNamespaceEventInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + NamespaceEventSelect, + NamespaceEventWithRelations, + CreateNamespaceEventInput, +} from '../../orm/input-types'; +/** + * Namespace lifecycle events — audit log of creation, activation, deactivation, label changes + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateNamespaceEventMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateNamespaceEventMutation( + params: { + selection: { + fields: S & NamespaceEventSelect; + } & HookStrictSelect, NamespaceEventSelect>; + } & Omit< + UseMutationOptions< + { + createNamespaceEvent: { + namespaceEvent: InferSelectResult; + }; + }, + Error, + CreateNamespaceEventInput['namespaceEvent'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createNamespaceEvent: { + namespaceEvent: InferSelectResult; + }; + }, + Error, + CreateNamespaceEventInput['namespaceEvent'] +>; +export function useCreateNamespaceEventMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: namespaceEventMutationKeys.create(), + mutationFn: (data: CreateNamespaceEventInput['namespaceEvent']) => + getClient() + .namespaceEvent.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: namespaceEventKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useCreateNamespaceMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useCreateNamespaceMutation.ts new file mode 100644 index 0000000000..1bad42cc00 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useCreateNamespaceMutation.ts @@ -0,0 +1,88 @@ +/** + * Logical namespace containers for grouping secrets, config, functions, and other resources + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { namespaceKeys } from '../query-keys'; +import { namespaceMutationKeys } from '../mutation-keys'; +import type { + NamespaceSelect, + NamespaceWithRelations, + CreateNamespaceInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + NamespaceSelect, + NamespaceWithRelations, + CreateNamespaceInput, +} from '../../orm/input-types'; +/** + * Logical namespace containers for grouping secrets, config, functions, and other resources + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateNamespaceMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateNamespaceMutation( + params: { + selection: { + fields: S & NamespaceSelect; + } & HookStrictSelect, NamespaceSelect>; + } & Omit< + UseMutationOptions< + { + createNamespace: { + namespace: InferSelectResult; + }; + }, + Error, + CreateNamespaceInput['namespace'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createNamespace: { + namespace: InferSelectResult; + }; + }, + Error, + CreateNamespaceInput['namespace'] +>; +export function useCreateNamespaceMutation( + params: { + selection: SelectionConfig; + } & Omit, 'mutationFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: namespaceMutationKeys.create(), + mutationFn: (data: CreateNamespaceInput['namespace']) => + getClient() + .namespace.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: namespaceKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useCreateOrgFunctionExecutionLogMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useCreateOrgFunctionExecutionLogMutation.ts deleted file mode 100644 index f93b6596de..0000000000 --- a/sdk/constructive-react/src/compute/hooks/mutations/useCreateOrgFunctionExecutionLogMutation.ts +++ /dev/null @@ -1,91 +0,0 @@ -/** - * Function execution logs — structured console output per invocation - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { orgFunctionExecutionLogKeys } from '../query-keys'; -import { orgFunctionExecutionLogMutationKeys } from '../mutation-keys'; -import type { - OrgFunctionExecutionLogSelect, - OrgFunctionExecutionLogWithRelations, - CreateOrgFunctionExecutionLogInput, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - OrgFunctionExecutionLogSelect, - OrgFunctionExecutionLogWithRelations, - CreateOrgFunctionExecutionLogInput, -} from '../../orm/input-types'; -/** - * Function execution logs — structured console output per invocation - * - * @example - * ```tsx - * const { mutate, isPending } = useCreateOrgFunctionExecutionLogMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreateOrgFunctionExecutionLogMutation( - params: { - selection: { - fields: S & OrgFunctionExecutionLogSelect; - } & HookStrictSelect, OrgFunctionExecutionLogSelect>; - } & Omit< - UseMutationOptions< - { - createOrgFunctionExecutionLog: { - orgFunctionExecutionLog: InferSelectResult; - }; - }, - Error, - CreateOrgFunctionExecutionLogInput['orgFunctionExecutionLog'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createOrgFunctionExecutionLog: { - orgFunctionExecutionLog: InferSelectResult; - }; - }, - Error, - CreateOrgFunctionExecutionLogInput['orgFunctionExecutionLog'] ->; -export function useCreateOrgFunctionExecutionLogMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: orgFunctionExecutionLogMutationKeys.create(), - mutationFn: (data: CreateOrgFunctionExecutionLogInput['orgFunctionExecutionLog']) => - getClient() - .orgFunctionExecutionLog.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: orgFunctionExecutionLogKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useCreateOrgFunctionInvocationMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useCreateOrgFunctionInvocationMutation.ts deleted file mode 100644 index 0ddaa50890..0000000000 --- a/sdk/constructive-react/src/compute/hooks/mutations/useCreateOrgFunctionInvocationMutation.ts +++ /dev/null @@ -1,91 +0,0 @@ -/** - * Function invocation log — INSERT to call a function (business-layer, metered). Linked to definitions by task_identifier string. - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { orgFunctionInvocationKeys } from '../query-keys'; -import { orgFunctionInvocationMutationKeys } from '../mutation-keys'; -import type { - OrgFunctionInvocationSelect, - OrgFunctionInvocationWithRelations, - CreateOrgFunctionInvocationInput, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - OrgFunctionInvocationSelect, - OrgFunctionInvocationWithRelations, - CreateOrgFunctionInvocationInput, -} from '../../orm/input-types'; -/** - * Function invocation log — INSERT to call a function (business-layer, metered). Linked to definitions by task_identifier string. - * - * @example - * ```tsx - * const { mutate, isPending } = useCreateOrgFunctionInvocationMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreateOrgFunctionInvocationMutation( - params: { - selection: { - fields: S & OrgFunctionInvocationSelect; - } & HookStrictSelect, OrgFunctionInvocationSelect>; - } & Omit< - UseMutationOptions< - { - createOrgFunctionInvocation: { - orgFunctionInvocation: InferSelectResult; - }; - }, - Error, - CreateOrgFunctionInvocationInput['orgFunctionInvocation'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createOrgFunctionInvocation: { - orgFunctionInvocation: InferSelectResult; - }; - }, - Error, - CreateOrgFunctionInvocationInput['orgFunctionInvocation'] ->; -export function useCreateOrgFunctionInvocationMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: orgFunctionInvocationMutationKeys.create(), - mutationFn: (data: CreateOrgFunctionInvocationInput['orgFunctionInvocation']) => - getClient() - .orgFunctionInvocation.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: orgFunctionInvocationKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useCreatePlatformFunctionApiBindingMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useCreatePlatformFunctionApiBindingMutation.ts new file mode 100644 index 0000000000..ab6b636c50 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useCreatePlatformFunctionApiBindingMutation.ts @@ -0,0 +1,97 @@ +/** + * Join table binding function definitions to API endpoints with per-binding alias and config + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { platformFunctionApiBindingKeys } from '../query-keys'; +import { platformFunctionApiBindingMutationKeys } from '../mutation-keys'; +import type { + PlatformFunctionApiBindingSelect, + PlatformFunctionApiBindingWithRelations, + CreatePlatformFunctionApiBindingInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlatformFunctionApiBindingSelect, + PlatformFunctionApiBindingWithRelations, + CreatePlatformFunctionApiBindingInput, +} from '../../orm/input-types'; +/** + * Join table binding function definitions to API endpoints with per-binding alias and config + * + * @example + * ```tsx + * const { mutate, isPending } = useCreatePlatformFunctionApiBindingMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreatePlatformFunctionApiBindingMutation< + S extends PlatformFunctionApiBindingSelect, +>( + params: { + selection: { + fields: S & PlatformFunctionApiBindingSelect; + } & HookStrictSelect, PlatformFunctionApiBindingSelect>; + } & Omit< + UseMutationOptions< + { + createPlatformFunctionApiBinding: { + platformFunctionApiBinding: InferSelectResult; + }; + }, + Error, + CreatePlatformFunctionApiBindingInput['platformFunctionApiBinding'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createPlatformFunctionApiBinding: { + platformFunctionApiBinding: InferSelectResult; + }; + }, + Error, + CreatePlatformFunctionApiBindingInput['platformFunctionApiBinding'] +>; +export function useCreatePlatformFunctionApiBindingMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + CreatePlatformFunctionApiBindingInput['platformFunctionApiBinding'] + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: platformFunctionApiBindingMutationKeys.create(), + mutationFn: (data: CreatePlatformFunctionApiBindingInput['platformFunctionApiBinding']) => + getClient() + .platformFunctionApiBinding.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: platformFunctionApiBindingKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useCreatePlatformFunctionDefinitionMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useCreatePlatformFunctionDefinitionMutation.ts new file mode 100644 index 0000000000..0baf283c1f --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useCreatePlatformFunctionDefinitionMutation.ts @@ -0,0 +1,97 @@ +/** + * Function definitions — registered cloud functions with routing, queue, and retry configuration + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { platformFunctionDefinitionKeys } from '../query-keys'; +import { platformFunctionDefinitionMutationKeys } from '../mutation-keys'; +import type { + PlatformFunctionDefinitionSelect, + PlatformFunctionDefinitionWithRelations, + CreatePlatformFunctionDefinitionInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlatformFunctionDefinitionSelect, + PlatformFunctionDefinitionWithRelations, + CreatePlatformFunctionDefinitionInput, +} from '../../orm/input-types'; +/** + * Function definitions — registered cloud functions with routing, queue, and retry configuration + * + * @example + * ```tsx + * const { mutate, isPending } = useCreatePlatformFunctionDefinitionMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreatePlatformFunctionDefinitionMutation< + S extends PlatformFunctionDefinitionSelect, +>( + params: { + selection: { + fields: S & PlatformFunctionDefinitionSelect; + } & HookStrictSelect, PlatformFunctionDefinitionSelect>; + } & Omit< + UseMutationOptions< + { + createPlatformFunctionDefinition: { + platformFunctionDefinition: InferSelectResult; + }; + }, + Error, + CreatePlatformFunctionDefinitionInput['platformFunctionDefinition'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createPlatformFunctionDefinition: { + platformFunctionDefinition: InferSelectResult; + }; + }, + Error, + CreatePlatformFunctionDefinitionInput['platformFunctionDefinition'] +>; +export function useCreatePlatformFunctionDefinitionMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + CreatePlatformFunctionDefinitionInput['platformFunctionDefinition'] + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: platformFunctionDefinitionMutationKeys.create(), + mutationFn: (data: CreatePlatformFunctionDefinitionInput['platformFunctionDefinition']) => + getClient() + .platformFunctionDefinition.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: platformFunctionDefinitionKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useCreatePlatformFunctionDeploymentEventMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useCreatePlatformFunctionDeploymentEventMutation.ts new file mode 100644 index 0000000000..af9f152070 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useCreatePlatformFunctionDeploymentEventMutation.ts @@ -0,0 +1,105 @@ +/** + * Deployment lifecycle events — audit log of provisioning, scaling, and failure events + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { platformFunctionDeploymentEventKeys } from '../query-keys'; +import { platformFunctionDeploymentEventMutationKeys } from '../mutation-keys'; +import type { + PlatformFunctionDeploymentEventSelect, + PlatformFunctionDeploymentEventWithRelations, + CreatePlatformFunctionDeploymentEventInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlatformFunctionDeploymentEventSelect, + PlatformFunctionDeploymentEventWithRelations, + CreatePlatformFunctionDeploymentEventInput, +} from '../../orm/input-types'; +/** + * Deployment lifecycle events — audit log of provisioning, scaling, and failure events + * + * @example + * ```tsx + * const { mutate, isPending } = useCreatePlatformFunctionDeploymentEventMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreatePlatformFunctionDeploymentEventMutation< + S extends PlatformFunctionDeploymentEventSelect, +>( + params: { + selection: { + fields: S & PlatformFunctionDeploymentEventSelect; + } & HookStrictSelect, PlatformFunctionDeploymentEventSelect>; + } & Omit< + UseMutationOptions< + { + createPlatformFunctionDeploymentEvent: { + platformFunctionDeploymentEvent: InferSelectResult< + PlatformFunctionDeploymentEventWithRelations, + S + >; + }; + }, + Error, + CreatePlatformFunctionDeploymentEventInput['platformFunctionDeploymentEvent'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createPlatformFunctionDeploymentEvent: { + platformFunctionDeploymentEvent: InferSelectResult< + PlatformFunctionDeploymentEventWithRelations, + S + >; + }; + }, + Error, + CreatePlatformFunctionDeploymentEventInput['platformFunctionDeploymentEvent'] +>; +export function useCreatePlatformFunctionDeploymentEventMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + CreatePlatformFunctionDeploymentEventInput['platformFunctionDeploymentEvent'] + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: platformFunctionDeploymentEventMutationKeys.create(), + mutationFn: ( + data: CreatePlatformFunctionDeploymentEventInput['platformFunctionDeploymentEvent'] + ) => + getClient() + .platformFunctionDeploymentEvent.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: platformFunctionDeploymentEventKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useCreatePlatformFunctionDeploymentMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useCreatePlatformFunctionDeploymentMutation.ts new file mode 100644 index 0000000000..5cc2c1311c --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useCreatePlatformFunctionDeploymentMutation.ts @@ -0,0 +1,97 @@ +/** + * Function deployment bindings — ties a handler image to a namespace for Knative provisioning and routing (one row per handler image per namespace) + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { platformFunctionDeploymentKeys } from '../query-keys'; +import { platformFunctionDeploymentMutationKeys } from '../mutation-keys'; +import type { + PlatformFunctionDeploymentSelect, + PlatformFunctionDeploymentWithRelations, + CreatePlatformFunctionDeploymentInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlatformFunctionDeploymentSelect, + PlatformFunctionDeploymentWithRelations, + CreatePlatformFunctionDeploymentInput, +} from '../../orm/input-types'; +/** + * Function deployment bindings — ties a handler image to a namespace for Knative provisioning and routing (one row per handler image per namespace) + * + * @example + * ```tsx + * const { mutate, isPending } = useCreatePlatformFunctionDeploymentMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreatePlatformFunctionDeploymentMutation< + S extends PlatformFunctionDeploymentSelect, +>( + params: { + selection: { + fields: S & PlatformFunctionDeploymentSelect; + } & HookStrictSelect, PlatformFunctionDeploymentSelect>; + } & Omit< + UseMutationOptions< + { + createPlatformFunctionDeployment: { + platformFunctionDeployment: InferSelectResult; + }; + }, + Error, + CreatePlatformFunctionDeploymentInput['platformFunctionDeployment'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createPlatformFunctionDeployment: { + platformFunctionDeployment: InferSelectResult; + }; + }, + Error, + CreatePlatformFunctionDeploymentInput['platformFunctionDeployment'] +>; +export function useCreatePlatformFunctionDeploymentMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + CreatePlatformFunctionDeploymentInput['platformFunctionDeployment'] + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: platformFunctionDeploymentMutationKeys.create(), + mutationFn: (data: CreatePlatformFunctionDeploymentInput['platformFunctionDeployment']) => + getClient() + .platformFunctionDeployment.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: platformFunctionDeploymentKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useCreatePlatformFunctionExecutionLogMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useCreatePlatformFunctionExecutionLogMutation.ts new file mode 100644 index 0000000000..e2aae4e319 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useCreatePlatformFunctionExecutionLogMutation.ts @@ -0,0 +1,100 @@ +/** + * Function execution logs — structured console output per invocation + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { platformFunctionExecutionLogKeys } from '../query-keys'; +import { platformFunctionExecutionLogMutationKeys } from '../mutation-keys'; +import type { + PlatformFunctionExecutionLogSelect, + PlatformFunctionExecutionLogWithRelations, + CreatePlatformFunctionExecutionLogInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlatformFunctionExecutionLogSelect, + PlatformFunctionExecutionLogWithRelations, + CreatePlatformFunctionExecutionLogInput, +} from '../../orm/input-types'; +/** + * Function execution logs — structured console output per invocation + * + * @example + * ```tsx + * const { mutate, isPending } = useCreatePlatformFunctionExecutionLogMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreatePlatformFunctionExecutionLogMutation< + S extends PlatformFunctionExecutionLogSelect, +>( + params: { + selection: { + fields: S & PlatformFunctionExecutionLogSelect; + } & HookStrictSelect, PlatformFunctionExecutionLogSelect>; + } & Omit< + UseMutationOptions< + { + createPlatformFunctionExecutionLog: { + platformFunctionExecutionLog: InferSelectResult< + PlatformFunctionExecutionLogWithRelations, + S + >; + }; + }, + Error, + CreatePlatformFunctionExecutionLogInput['platformFunctionExecutionLog'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createPlatformFunctionExecutionLog: { + platformFunctionExecutionLog: InferSelectResult; + }; + }, + Error, + CreatePlatformFunctionExecutionLogInput['platformFunctionExecutionLog'] +>; +export function useCreatePlatformFunctionExecutionLogMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + CreatePlatformFunctionExecutionLogInput['platformFunctionExecutionLog'] + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: platformFunctionExecutionLogMutationKeys.create(), + mutationFn: (data: CreatePlatformFunctionExecutionLogInput['platformFunctionExecutionLog']) => + getClient() + .platformFunctionExecutionLog.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: platformFunctionExecutionLogKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useCreatePlatformFunctionInvocationMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useCreatePlatformFunctionInvocationMutation.ts new file mode 100644 index 0000000000..25ba42c2b1 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useCreatePlatformFunctionInvocationMutation.ts @@ -0,0 +1,97 @@ +/** + * Function invocation log — INSERT to call a function (business-layer, metered). Linked to definitions by task_identifier string. + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { platformFunctionInvocationKeys } from '../query-keys'; +import { platformFunctionInvocationMutationKeys } from '../mutation-keys'; +import type { + PlatformFunctionInvocationSelect, + PlatformFunctionInvocationWithRelations, + CreatePlatformFunctionInvocationInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlatformFunctionInvocationSelect, + PlatformFunctionInvocationWithRelations, + CreatePlatformFunctionInvocationInput, +} from '../../orm/input-types'; +/** + * Function invocation log — INSERT to call a function (business-layer, metered). Linked to definitions by task_identifier string. + * + * @example + * ```tsx + * const { mutate, isPending } = useCreatePlatformFunctionInvocationMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreatePlatformFunctionInvocationMutation< + S extends PlatformFunctionInvocationSelect, +>( + params: { + selection: { + fields: S & PlatformFunctionInvocationSelect; + } & HookStrictSelect, PlatformFunctionInvocationSelect>; + } & Omit< + UseMutationOptions< + { + createPlatformFunctionInvocation: { + platformFunctionInvocation: InferSelectResult; + }; + }, + Error, + CreatePlatformFunctionInvocationInput['platformFunctionInvocation'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createPlatformFunctionInvocation: { + platformFunctionInvocation: InferSelectResult; + }; + }, + Error, + CreatePlatformFunctionInvocationInput['platformFunctionInvocation'] +>; +export function useCreatePlatformFunctionInvocationMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + CreatePlatformFunctionInvocationInput['platformFunctionInvocation'] + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: platformFunctionInvocationMutationKeys.create(), + mutationFn: (data: CreatePlatformFunctionInvocationInput['platformFunctionInvocation']) => + getClient() + .platformFunctionInvocation.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: platformFunctionInvocationKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useCreatePlatformResourceDefinitionMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useCreatePlatformResourceDefinitionMutation.ts new file mode 100644 index 0000000000..c87268a8f5 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useCreatePlatformResourceDefinitionMutation.ts @@ -0,0 +1,97 @@ +/** + * Resource definitions — templates for resource kinds declaring default spec and secret/config 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 { platformResourceDefinitionKeys } from '../query-keys'; +import { platformResourceDefinitionMutationKeys } from '../mutation-keys'; +import type { + PlatformResourceDefinitionSelect, + PlatformResourceDefinitionWithRelations, + CreatePlatformResourceDefinitionInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlatformResourceDefinitionSelect, + PlatformResourceDefinitionWithRelations, + CreatePlatformResourceDefinitionInput, +} from '../../orm/input-types'; +/** + * Resource definitions — templates for resource kinds declaring default spec and secret/config requirements + * + * @example + * ```tsx + * const { mutate, isPending } = useCreatePlatformResourceDefinitionMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreatePlatformResourceDefinitionMutation< + S extends PlatformResourceDefinitionSelect, +>( + params: { + selection: { + fields: S & PlatformResourceDefinitionSelect; + } & HookStrictSelect, PlatformResourceDefinitionSelect>; + } & Omit< + UseMutationOptions< + { + createPlatformResourceDefinition: { + platformResourceDefinition: InferSelectResult; + }; + }, + Error, + CreatePlatformResourceDefinitionInput['platformResourceDefinition'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createPlatformResourceDefinition: { + platformResourceDefinition: InferSelectResult; + }; + }, + Error, + CreatePlatformResourceDefinitionInput['platformResourceDefinition'] +>; +export function useCreatePlatformResourceDefinitionMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + CreatePlatformResourceDefinitionInput['platformResourceDefinition'] + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: platformResourceDefinitionMutationKeys.create(), + mutationFn: (data: CreatePlatformResourceDefinitionInput['platformResourceDefinition']) => + getClient() + .platformResourceDefinition.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: platformResourceDefinitionKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useCreatePlatformResourceEventMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useCreatePlatformResourceEventMutation.ts new file mode 100644 index 0000000000..a459e2a53f --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useCreatePlatformResourceEventMutation.ts @@ -0,0 +1,91 @@ +/** + * Resource lifecycle events — audit log of provisioning, updates, and failure events + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { platformResourceEventKeys } from '../query-keys'; +import { platformResourceEventMutationKeys } from '../mutation-keys'; +import type { + PlatformResourceEventSelect, + PlatformResourceEventWithRelations, + CreatePlatformResourceEventInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlatformResourceEventSelect, + PlatformResourceEventWithRelations, + CreatePlatformResourceEventInput, +} from '../../orm/input-types'; +/** + * Resource lifecycle events — audit log of provisioning, updates, and failure events + * + * @example + * ```tsx + * const { mutate, isPending } = useCreatePlatformResourceEventMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreatePlatformResourceEventMutation( + params: { + selection: { + fields: S & PlatformResourceEventSelect; + } & HookStrictSelect, PlatformResourceEventSelect>; + } & Omit< + UseMutationOptions< + { + createPlatformResourceEvent: { + platformResourceEvent: InferSelectResult; + }; + }, + Error, + CreatePlatformResourceEventInput['platformResourceEvent'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createPlatformResourceEvent: { + platformResourceEvent: InferSelectResult; + }; + }, + Error, + CreatePlatformResourceEventInput['platformResourceEvent'] +>; +export function useCreatePlatformResourceEventMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: platformResourceEventMutationKeys.create(), + mutationFn: (data: CreatePlatformResourceEventInput['platformResourceEvent']) => + getClient() + .platformResourceEvent.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: platformResourceEventKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useCreatePlatformResourceMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useCreatePlatformResourceMutation.ts new file mode 100644 index 0000000000..a9554e2496 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useCreatePlatformResourceMutation.ts @@ -0,0 +1,91 @@ +/** + * Unified K8s resource declarations — stores desired state (spec) and observed state (status) for all resource kinds within a namespace + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { platformResourceKeys } from '../query-keys'; +import { platformResourceMutationKeys } from '../mutation-keys'; +import type { + PlatformResourceSelect, + PlatformResourceWithRelations, + CreatePlatformResourceInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlatformResourceSelect, + PlatformResourceWithRelations, + CreatePlatformResourceInput, +} from '../../orm/input-types'; +/** + * Unified K8s resource declarations — stores desired state (spec) and observed state (status) for all resource kinds within a namespace + * + * @example + * ```tsx + * const { mutate, isPending } = useCreatePlatformResourceMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreatePlatformResourceMutation( + params: { + selection: { + fields: S & PlatformResourceSelect; + } & HookStrictSelect, PlatformResourceSelect>; + } & Omit< + UseMutationOptions< + { + createPlatformResource: { + platformResource: InferSelectResult; + }; + }, + Error, + CreatePlatformResourceInput['platformResource'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createPlatformResource: { + platformResource: InferSelectResult; + }; + }, + Error, + CreatePlatformResourceInput['platformResource'] +>; +export function useCreatePlatformResourceMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: platformResourceMutationKeys.create(), + mutationFn: (data: CreatePlatformResourceInput['platformResource']) => + getClient() + .platformResource.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: platformResourceKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useCreatePlatformResourceStatusCheckMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useCreatePlatformResourceStatusCheckMutation.ts new file mode 100644 index 0000000000..dd6f667bae --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useCreatePlatformResourceStatusCheckMutation.ts @@ -0,0 +1,100 @@ +/** + * On-demand resource status checks — diagnostic snapshots from the runtime (K8s status, conditions, log tails) + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { platformResourceStatusCheckKeys } from '../query-keys'; +import { platformResourceStatusCheckMutationKeys } from '../mutation-keys'; +import type { + PlatformResourceStatusCheckSelect, + PlatformResourceStatusCheckWithRelations, + CreatePlatformResourceStatusCheckInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlatformResourceStatusCheckSelect, + PlatformResourceStatusCheckWithRelations, + CreatePlatformResourceStatusCheckInput, +} from '../../orm/input-types'; +/** + * On-demand resource status checks — diagnostic snapshots from the runtime (K8s status, conditions, log tails) + * + * @example + * ```tsx + * const { mutate, isPending } = useCreatePlatformResourceStatusCheckMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreatePlatformResourceStatusCheckMutation< + S extends PlatformResourceStatusCheckSelect, +>( + params: { + selection: { + fields: S & PlatformResourceStatusCheckSelect; + } & HookStrictSelect, PlatformResourceStatusCheckSelect>; + } & Omit< + UseMutationOptions< + { + createPlatformResourceStatusCheck: { + platformResourceStatusCheck: InferSelectResult< + PlatformResourceStatusCheckWithRelations, + S + >; + }; + }, + Error, + CreatePlatformResourceStatusCheckInput['platformResourceStatusCheck'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createPlatformResourceStatusCheck: { + platformResourceStatusCheck: InferSelectResult; + }; + }, + Error, + CreatePlatformResourceStatusCheckInput['platformResourceStatusCheck'] +>; +export function useCreatePlatformResourceStatusCheckMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + CreatePlatformResourceStatusCheckInput['platformResourceStatusCheck'] + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: platformResourceStatusCheckMutationKeys.create(), + mutationFn: (data: CreatePlatformResourceStatusCheckInput['platformResourceStatusCheck']) => + getClient() + .platformResourceStatusCheck.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: platformResourceStatusCheckKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useCreatePlatformResourcesRequirementsStateMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useCreatePlatformResourcesRequirementsStateMutation.ts new file mode 100644 index 0000000000..57e2f93f58 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useCreatePlatformResourcesRequirementsStateMutation.ts @@ -0,0 +1,105 @@ +/** + * Create mutation hook for PlatformResourcesRequirementsState + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { platformResourcesRequirementsStateKeys } from '../query-keys'; +import { platformResourcesRequirementsStateMutationKeys } from '../mutation-keys'; +import type { + PlatformResourcesRequirementsStateSelect, + PlatformResourcesRequirementsStateWithRelations, + CreatePlatformResourcesRequirementsStateInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlatformResourcesRequirementsStateSelect, + PlatformResourcesRequirementsStateWithRelations, + CreatePlatformResourcesRequirementsStateInput, +} from '../../orm/input-types'; +/** + * Mutation hook for creating a PlatformResourcesRequirementsState + * + * @example + * ```tsx + * const { mutate, isPending } = useCreatePlatformResourcesRequirementsStateMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreatePlatformResourcesRequirementsStateMutation< + S extends PlatformResourcesRequirementsStateSelect, +>( + params: { + selection: { + fields: S & PlatformResourcesRequirementsStateSelect; + } & HookStrictSelect, PlatformResourcesRequirementsStateSelect>; + } & Omit< + UseMutationOptions< + { + createPlatformResourcesRequirementsState: { + platformResourcesRequirementsState: InferSelectResult< + PlatformResourcesRequirementsStateWithRelations, + S + >; + }; + }, + Error, + CreatePlatformResourcesRequirementsStateInput['platformResourcesRequirementsState'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createPlatformResourcesRequirementsState: { + platformResourcesRequirementsState: InferSelectResult< + PlatformResourcesRequirementsStateWithRelations, + S + >; + }; + }, + Error, + CreatePlatformResourcesRequirementsStateInput['platformResourcesRequirementsState'] +>; +export function useCreatePlatformResourcesRequirementsStateMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + CreatePlatformResourcesRequirementsStateInput['platformResourcesRequirementsState'] + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: platformResourcesRequirementsStateMutationKeys.create(), + mutationFn: ( + data: CreatePlatformResourcesRequirementsStateInput['platformResourcesRequirementsState'] + ) => + getClient() + .platformResourcesRequirementsState.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: platformResourcesRequirementsStateKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useCreatePlatformResourcesResolvedRequirementMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useCreatePlatformResourcesResolvedRequirementMutation.ts new file mode 100644 index 0000000000..6a037c2326 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useCreatePlatformResourcesResolvedRequirementMutation.ts @@ -0,0 +1,105 @@ +/** + * Create mutation hook for PlatformResourcesResolvedRequirement + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { platformResourcesResolvedRequirementKeys } from '../query-keys'; +import { platformResourcesResolvedRequirementMutationKeys } from '../mutation-keys'; +import type { + PlatformResourcesResolvedRequirementSelect, + PlatformResourcesResolvedRequirementWithRelations, + CreatePlatformResourcesResolvedRequirementInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlatformResourcesResolvedRequirementSelect, + PlatformResourcesResolvedRequirementWithRelations, + CreatePlatformResourcesResolvedRequirementInput, +} from '../../orm/input-types'; +/** + * Mutation hook for creating a PlatformResourcesResolvedRequirement + * + * @example + * ```tsx + * const { mutate, isPending } = useCreatePlatformResourcesResolvedRequirementMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreatePlatformResourcesResolvedRequirementMutation< + S extends PlatformResourcesResolvedRequirementSelect, +>( + params: { + selection: { + fields: S & PlatformResourcesResolvedRequirementSelect; + } & HookStrictSelect, PlatformResourcesResolvedRequirementSelect>; + } & Omit< + UseMutationOptions< + { + createPlatformResourcesResolvedRequirement: { + platformResourcesResolvedRequirement: InferSelectResult< + PlatformResourcesResolvedRequirementWithRelations, + S + >; + }; + }, + Error, + CreatePlatformResourcesResolvedRequirementInput['platformResourcesResolvedRequirement'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createPlatformResourcesResolvedRequirement: { + platformResourcesResolvedRequirement: InferSelectResult< + PlatformResourcesResolvedRequirementWithRelations, + S + >; + }; + }, + Error, + CreatePlatformResourcesResolvedRequirementInput['platformResourcesResolvedRequirement'] +>; +export function useCreatePlatformResourcesResolvedRequirementMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + CreatePlatformResourcesResolvedRequirementInput['platformResourcesResolvedRequirement'] + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: platformResourcesResolvedRequirementMutationKeys.create(), + mutationFn: ( + data: CreatePlatformResourcesResolvedRequirementInput['platformResourcesResolvedRequirement'] + ) => + getClient() + .platformResourcesResolvedRequirement.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: platformResourcesResolvedRequirementKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useCreateResourceDefinitionMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useCreateResourceDefinitionMutation.ts new file mode 100644 index 0000000000..807b41772c --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useCreateResourceDefinitionMutation.ts @@ -0,0 +1,91 @@ +/** + * Resource definitions — templates for resource kinds declaring default spec and secret/config 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 { resourceDefinitionKeys } from '../query-keys'; +import { resourceDefinitionMutationKeys } from '../mutation-keys'; +import type { + ResourceDefinitionSelect, + ResourceDefinitionWithRelations, + CreateResourceDefinitionInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + ResourceDefinitionSelect, + ResourceDefinitionWithRelations, + CreateResourceDefinitionInput, +} from '../../orm/input-types'; +/** + * Resource definitions — templates for resource kinds declaring default spec and secret/config requirements + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateResourceDefinitionMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateResourceDefinitionMutation( + params: { + selection: { + fields: S & ResourceDefinitionSelect; + } & HookStrictSelect, ResourceDefinitionSelect>; + } & Omit< + UseMutationOptions< + { + createResourceDefinition: { + resourceDefinition: InferSelectResult; + }; + }, + Error, + CreateResourceDefinitionInput['resourceDefinition'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createResourceDefinition: { + resourceDefinition: InferSelectResult; + }; + }, + Error, + CreateResourceDefinitionInput['resourceDefinition'] +>; +export function useCreateResourceDefinitionMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: resourceDefinitionMutationKeys.create(), + mutationFn: (data: CreateResourceDefinitionInput['resourceDefinition']) => + getClient() + .resourceDefinition.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: resourceDefinitionKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useCreateResourceStatusCheckMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useCreateResourceStatusCheckMutation.ts new file mode 100644 index 0000000000..909f0e4300 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useCreateResourceStatusCheckMutation.ts @@ -0,0 +1,91 @@ +/** + * On-demand resource status checks — diagnostic snapshots from the runtime (K8s status, conditions, log tails) + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { resourceStatusCheckKeys } from '../query-keys'; +import { resourceStatusCheckMutationKeys } from '../mutation-keys'; +import type { + ResourceStatusCheckSelect, + ResourceStatusCheckWithRelations, + CreateResourceStatusCheckInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + ResourceStatusCheckSelect, + ResourceStatusCheckWithRelations, + CreateResourceStatusCheckInput, +} from '../../orm/input-types'; +/** + * On-demand resource status checks — diagnostic snapshots from the runtime (K8s status, conditions, log tails) + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateResourceStatusCheckMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateResourceStatusCheckMutation( + params: { + selection: { + fields: S & ResourceStatusCheckSelect; + } & HookStrictSelect, ResourceStatusCheckSelect>; + } & Omit< + UseMutationOptions< + { + createResourceStatusCheck: { + resourceStatusCheck: InferSelectResult; + }; + }, + Error, + CreateResourceStatusCheckInput['resourceStatusCheck'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createResourceStatusCheck: { + resourceStatusCheck: InferSelectResult; + }; + }, + Error, + CreateResourceStatusCheckInput['resourceStatusCheck'] +>; +export function useCreateResourceStatusCheckMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: resourceStatusCheckMutationKeys.create(), + mutationFn: (data: CreateResourceStatusCheckInput['resourceStatusCheck']) => + getClient() + .resourceStatusCheck.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: resourceStatusCheckKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useCreateResourcesRequirementsStateMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useCreateResourcesRequirementsStateMutation.ts new file mode 100644 index 0000000000..0f2461e6a4 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useCreateResourcesRequirementsStateMutation.ts @@ -0,0 +1,97 @@ +/** + * Create mutation hook for ResourcesRequirementsState + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { resourcesRequirementsStateKeys } from '../query-keys'; +import { resourcesRequirementsStateMutationKeys } from '../mutation-keys'; +import type { + ResourcesRequirementsStateSelect, + ResourcesRequirementsStateWithRelations, + CreateResourcesRequirementsStateInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + ResourcesRequirementsStateSelect, + ResourcesRequirementsStateWithRelations, + CreateResourcesRequirementsStateInput, +} from '../../orm/input-types'; +/** + * Mutation hook for creating a ResourcesRequirementsState + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateResourcesRequirementsStateMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateResourcesRequirementsStateMutation< + S extends ResourcesRequirementsStateSelect, +>( + params: { + selection: { + fields: S & ResourcesRequirementsStateSelect; + } & HookStrictSelect, ResourcesRequirementsStateSelect>; + } & Omit< + UseMutationOptions< + { + createResourcesRequirementsState: { + resourcesRequirementsState: InferSelectResult; + }; + }, + Error, + CreateResourcesRequirementsStateInput['resourcesRequirementsState'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createResourcesRequirementsState: { + resourcesRequirementsState: InferSelectResult; + }; + }, + Error, + CreateResourcesRequirementsStateInput['resourcesRequirementsState'] +>; +export function useCreateResourcesRequirementsStateMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + CreateResourcesRequirementsStateInput['resourcesRequirementsState'] + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: resourcesRequirementsStateMutationKeys.create(), + mutationFn: (data: CreateResourcesRequirementsStateInput['resourcesRequirementsState']) => + getClient() + .resourcesRequirementsState.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: resourcesRequirementsStateKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useCreateResourcesResolvedRequirementMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useCreateResourcesResolvedRequirementMutation.ts new file mode 100644 index 0000000000..0e6d9c55a7 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useCreateResourcesResolvedRequirementMutation.ts @@ -0,0 +1,100 @@ +/** + * Create mutation hook for ResourcesResolvedRequirement + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { resourcesResolvedRequirementKeys } from '../query-keys'; +import { resourcesResolvedRequirementMutationKeys } from '../mutation-keys'; +import type { + ResourcesResolvedRequirementSelect, + ResourcesResolvedRequirementWithRelations, + CreateResourcesResolvedRequirementInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + ResourcesResolvedRequirementSelect, + ResourcesResolvedRequirementWithRelations, + CreateResourcesResolvedRequirementInput, +} from '../../orm/input-types'; +/** + * Mutation hook for creating a ResourcesResolvedRequirement + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateResourcesResolvedRequirementMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateResourcesResolvedRequirementMutation< + S extends ResourcesResolvedRequirementSelect, +>( + params: { + selection: { + fields: S & ResourcesResolvedRequirementSelect; + } & HookStrictSelect, ResourcesResolvedRequirementSelect>; + } & Omit< + UseMutationOptions< + { + createResourcesResolvedRequirement: { + resourcesResolvedRequirement: InferSelectResult< + ResourcesResolvedRequirementWithRelations, + S + >; + }; + }, + Error, + CreateResourcesResolvedRequirementInput['resourcesResolvedRequirement'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createResourcesResolvedRequirement: { + resourcesResolvedRequirement: InferSelectResult; + }; + }, + Error, + CreateResourcesResolvedRequirementInput['resourcesResolvedRequirement'] +>; +export function useCreateResourcesResolvedRequirementMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + CreateResourcesResolvedRequirementInput['resourcesResolvedRequirement'] + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: resourcesResolvedRequirementMutationKeys.create(), + mutationFn: (data: CreateResourcesResolvedRequirementInput['resourcesResolvedRequirement']) => + getClient() + .resourcesResolvedRequirement.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: resourcesResolvedRequirementKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useCreateSecretDefinitionMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useCreateSecretDefinitionMutation.ts deleted file mode 100644 index 3b9b9185e4..0000000000 --- a/sdk/constructive-react/src/compute/hooks/mutations/useCreateSecretDefinitionMutation.ts +++ /dev/null @@ -1,91 +0,0 @@ -/** - * Global secret name registry — declares which secrets the platform recognizes. Actual values live in app_secrets. - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { secretDefinitionKeys } from '../query-keys'; -import { secretDefinitionMutationKeys } from '../mutation-keys'; -import type { - SecretDefinitionSelect, - SecretDefinitionWithRelations, - CreateSecretDefinitionInput, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - SecretDefinitionSelect, - SecretDefinitionWithRelations, - CreateSecretDefinitionInput, -} from '../../orm/input-types'; -/** - * Global secret name registry — declares which secrets the platform recognizes. Actual values live in app_secrets. - * - * @example - * ```tsx - * const { mutate, isPending } = useCreateSecretDefinitionMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreateSecretDefinitionMutation( - params: { - selection: { - fields: S & SecretDefinitionSelect; - } & HookStrictSelect, SecretDefinitionSelect>; - } & Omit< - UseMutationOptions< - { - createSecretDefinition: { - secretDefinition: InferSelectResult; - }; - }, - Error, - CreateSecretDefinitionInput['secretDefinition'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createSecretDefinition: { - secretDefinition: InferSelectResult; - }; - }, - Error, - CreateSecretDefinitionInput['secretDefinition'] ->; -export function useCreateSecretDefinitionMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: secretDefinitionMutationKeys.create(), - mutationFn: (data: CreateSecretDefinitionInput['secretDefinition']) => - getClient() - .secretDefinition.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: secretDefinitionKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useDeleteDbPresetMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useDeleteDbPresetMutation.ts new file mode 100644 index 0000000000..4408dd0b6f --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useDeleteDbPresetMutation.ts @@ -0,0 +1,98 @@ +/** + * Database provisioning preset catalog — 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 { dbPresetKeys } from '../query-keys'; +import { dbPresetMutationKeys } from '../mutation-keys'; +import type { DbPresetSelect, DbPresetWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { DbPresetSelect, DbPresetWithRelations } from '../../orm/input-types'; +/** + * Database provisioning preset catalog — merkle-versioned head over the infra store + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteDbPresetMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteDbPresetMutation( + params: { + selection: { + fields: S & DbPresetSelect; + } & HookStrictSelect, DbPresetSelect>; + } & Omit< + UseMutationOptions< + { + deleteDbPreset: { + dbPreset: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteDbPreset: { + dbPreset: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteDbPresetMutation( + 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: dbPresetMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .dbPreset.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: dbPresetKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: dbPresetKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useDeleteFunctionDeploymentMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useDeleteFunctionDeploymentMutation.ts index d32d592b1c..24faf97f4b 100644 --- a/sdk/constructive-react/src/compute/hooks/mutations/useDeleteFunctionDeploymentMutation.ts +++ b/sdk/constructive-react/src/compute/hooks/mutations/useDeleteFunctionDeploymentMutation.ts @@ -1,5 +1,5 @@ /** - * Function deployment bindings — ties a function definition to a namespace for Knative provisioning and routing + * Function deployment bindings — ties a handler image to a namespace for Knative provisioning and routing (one row per handler image per namespace) * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -21,7 +21,7 @@ export type { FunctionDeploymentWithRelations, } from '../../orm/input-types'; /** - * Function deployment bindings — ties a function definition to a namespace for Knative provisioning and routing + * Function deployment bindings — ties a handler image to a namespace for Knative provisioning and routing (one row per handler image per namespace) * * @example * ```tsx diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useDeleteFunctionGraphCommitMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useDeleteFunctionGraphCommitMutation.ts index 650752e957..ffe6e976ba 100644 --- a/sdk/constructive-react/src/compute/hooks/mutations/useDeleteFunctionGraphCommitMutation.ts +++ b/sdk/constructive-react/src/compute/hooks/mutations/useDeleteFunctionGraphCommitMutation.ts @@ -47,7 +47,7 @@ export function useDeleteFunctionGraphCommitMutation, 'mutationFn' @@ -61,7 +61,7 @@ export function useDeleteFunctionGraphCommitMutation; export function useDeleteFunctionGraphCommitMutation( @@ -73,7 +73,7 @@ export function useDeleteFunctionGraphCommitMutation( Error, { id: string; - databaseId: string; + scopeId: string; } >, 'mutationFn' @@ -85,12 +85,12 @@ export function useDeleteFunctionGraphCommitMutation( const queryClient = useQueryClient(); return useMutation({ mutationKey: functionGraphCommitMutationKeys.all, - mutationFn: ({ id, databaseId }: { id: string; databaseId: string }) => + mutationFn: ({ id, scopeId }: { id: string; scopeId: string }) => getClient() .functionGraphCommit.delete({ where: { id, - databaseId, + scopeId, }, select: args.select, }) diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useDeleteFunctionGraphObjectMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useDeleteFunctionGraphObjectMutation.ts index 16288eb20b..7814d06dcc 100644 --- a/sdk/constructive-react/src/compute/hooks/mutations/useDeleteFunctionGraphObjectMutation.ts +++ b/sdk/constructive-react/src/compute/hooks/mutations/useDeleteFunctionGraphObjectMutation.ts @@ -47,7 +47,7 @@ export function useDeleteFunctionGraphObjectMutation, 'mutationFn' @@ -61,7 +61,7 @@ export function useDeleteFunctionGraphObjectMutation; export function useDeleteFunctionGraphObjectMutation( @@ -73,7 +73,7 @@ export function useDeleteFunctionGraphObjectMutation( Error, { id: string; - databaseId: string; + scopeId: string; } >, 'mutationFn' @@ -85,12 +85,12 @@ export function useDeleteFunctionGraphObjectMutation( const queryClient = useQueryClient(); return useMutation({ mutationKey: functionGraphObjectMutationKeys.all, - mutationFn: ({ id, databaseId }: { id: string; databaseId: string }) => + mutationFn: ({ id, scopeId }: { id: string; scopeId: string }) => getClient() .functionGraphObject.delete({ where: { id, - databaseId, + scopeId, }, select: args.select, }) diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useDeleteFunctionGraphRefMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useDeleteFunctionGraphRefMutation.ts index 7b4cdaa50c..16aaadeb47 100644 --- a/sdk/constructive-react/src/compute/hooks/mutations/useDeleteFunctionGraphRefMutation.ts +++ b/sdk/constructive-react/src/compute/hooks/mutations/useDeleteFunctionGraphRefMutation.ts @@ -41,7 +41,7 @@ export function useDeleteFunctionGraphRefMutation, 'mutationFn' @@ -55,7 +55,7 @@ export function useDeleteFunctionGraphRefMutation; export function useDeleteFunctionGraphRefMutation( @@ -67,7 +67,7 @@ export function useDeleteFunctionGraphRefMutation( Error, { id: string; - databaseId: string; + scopeId: string; } >, 'mutationFn' @@ -79,12 +79,12 @@ export function useDeleteFunctionGraphRefMutation( const queryClient = useQueryClient(); return useMutation({ mutationKey: functionGraphRefMutationKeys.all, - mutationFn: ({ id, databaseId }: { id: string; databaseId: string }) => + mutationFn: ({ id, scopeId }: { id: string; scopeId: string }) => getClient() .functionGraphRef.delete({ where: { id, - databaseId, + scopeId, }, select: args.select, }) diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useDeleteInfraCommitMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useDeleteInfraCommitMutation.ts new file mode 100644 index 0000000000..47bbd08de3 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useDeleteInfraCommitMutation.ts @@ -0,0 +1,102 @@ +/** + * 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 { infraCommitKeys } from '../query-keys'; +import { infraCommitMutationKeys } from '../mutation-keys'; +import type { InfraCommitSelect, InfraCommitWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { InfraCommitSelect, InfraCommitWithRelations } from '../../orm/input-types'; +/** + * Commit history — each commit snapshots a tree root for a store + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteInfraCommitMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteInfraCommitMutation( + params: { + selection: { + fields: S & InfraCommitSelect; + } & HookStrictSelect, InfraCommitSelect>; + } & Omit< + UseMutationOptions< + { + deleteInfraCommit: { + infraCommit: InferSelectResult; + }; + }, + Error, + { + id: string; + scopeId: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteInfraCommit: { + infraCommit: InferSelectResult; + }; + }, + Error, + { + id: string; + scopeId: string; + } +>; +export function useDeleteInfraCommitMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + scopeId: string; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: infraCommitMutationKeys.all, + mutationFn: ({ id, scopeId }: { id: string; scopeId: string }) => + getClient() + .infraCommit.delete({ + where: { + id, + scopeId, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: infraCommitKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: infraCommitKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useDeleteInfraObjectMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useDeleteInfraObjectMutation.ts new file mode 100644 index 0000000000..cc3bf32b19 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useDeleteInfraObjectMutation.ts @@ -0,0 +1,102 @@ +/** + * 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 { infraObjectKeys } from '../query-keys'; +import { infraObjectMutationKeys } from '../mutation-keys'; +import type { InfraObjectSelect, InfraObjectWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { InfraObjectSelect, InfraObjectWithRelations } from '../../orm/input-types'; +/** + * Content-addressed Merkle tree objects keyed by UUID v5 hash of data + children + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteInfraObjectMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteInfraObjectMutation( + params: { + selection: { + fields: S & InfraObjectSelect; + } & HookStrictSelect, InfraObjectSelect>; + } & Omit< + UseMutationOptions< + { + deleteInfraObject: { + infraObject: InferSelectResult; + }; + }, + Error, + { + id: string; + scopeId: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteInfraObject: { + infraObject: InferSelectResult; + }; + }, + Error, + { + id: string; + scopeId: string; + } +>; +export function useDeleteInfraObjectMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + scopeId: string; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: infraObjectMutationKeys.all, + mutationFn: ({ id, scopeId }: { id: string; scopeId: string }) => + getClient() + .infraObject.delete({ + where: { + id, + scopeId, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: infraObjectKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: infraObjectKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useDeleteInfraRefMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useDeleteInfraRefMutation.ts new file mode 100644 index 0000000000..e23c6c88e0 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useDeleteInfraRefMutation.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 { infraRefKeys } from '../query-keys'; +import { infraRefMutationKeys } from '../mutation-keys'; +import type { InfraRefSelect, InfraRefWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { InfraRefSelect, InfraRefWithRelations } from '../../orm/input-types'; +/** + * Branch heads — mutable pointers into the commit chain + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteInfraRefMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteInfraRefMutation( + params: { + selection: { + fields: S & InfraRefSelect; + } & HookStrictSelect, InfraRefSelect>; + } & Omit< + UseMutationOptions< + { + deleteInfraRef: { + infraRef: InferSelectResult; + }; + }, + Error, + { + id: string; + scopeId: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteInfraRef: { + infraRef: InferSelectResult; + }; + }, + Error, + { + id: string; + scopeId: string; + } +>; +export function useDeleteInfraRefMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + scopeId: string; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: infraRefMutationKeys.all, + mutationFn: ({ id, scopeId }: { id: string; scopeId: string }) => + getClient() + .infraRef.delete({ + where: { + id, + scopeId, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: infraRefKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: infraRefKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useDeleteInfraStoreMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useDeleteInfraStoreMutation.ts new file mode 100644 index 0000000000..e1c82fe7d6 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useDeleteInfraStoreMutation.ts @@ -0,0 +1,98 @@ +/** + * 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 { infraStoreKeys } from '../query-keys'; +import { infraStoreMutationKeys } from '../mutation-keys'; +import type { InfraStoreSelect, InfraStoreWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { InfraStoreSelect, InfraStoreWithRelations } from '../../orm/input-types'; +/** + * Named stores — one per version-controlled tree (e.g. one graph, one definition set) + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteInfraStoreMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteInfraStoreMutation( + params: { + selection: { + fields: S & InfraStoreSelect; + } & HookStrictSelect, InfraStoreSelect>; + } & Omit< + UseMutationOptions< + { + deleteInfraStore: { + infraStore: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteInfraStore: { + infraStore: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteInfraStoreMutation( + 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: infraStoreMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .infraStore.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: infraStoreKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: infraStoreKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useDeleteIntegrationProviderMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useDeleteIntegrationProviderMutation.ts new file mode 100644 index 0000000000..a668dec0a5 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useDeleteIntegrationProviderMutation.ts @@ -0,0 +1,104 @@ +/** + * 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. + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { integrationProviderKeys } from '../query-keys'; +import { integrationProviderMutationKeys } from '../mutation-keys'; +import type { + IntegrationProviderSelect, + IntegrationProviderWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + IntegrationProviderSelect, + IntegrationProviderWithRelations, +} from '../../orm/input-types'; +/** + * 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. + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteIntegrationProviderMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteIntegrationProviderMutation( + params: { + selection: { + fields: S & IntegrationProviderSelect; + } & HookStrictSelect, IntegrationProviderSelect>; + } & Omit< + UseMutationOptions< + { + deleteIntegrationProvider: { + integrationProvider: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteIntegrationProvider: { + integrationProvider: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteIntegrationProviderMutation( + 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: integrationProviderMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .integrationProvider.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: integrationProviderKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: integrationProviderKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useDeleteNamespaceEventMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useDeleteNamespaceEventMutation.ts new file mode 100644 index 0000000000..e48ce652c4 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useDeleteNamespaceEventMutation.ts @@ -0,0 +1,102 @@ +/** + * Namespace lifecycle events — audit log of creation, activation, deactivation, label changes + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { namespaceEventKeys } from '../query-keys'; +import { namespaceEventMutationKeys } from '../mutation-keys'; +import type { NamespaceEventSelect, NamespaceEventWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { NamespaceEventSelect, NamespaceEventWithRelations } from '../../orm/input-types'; +/** + * Namespace lifecycle events — audit log of creation, activation, deactivation, label changes + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteNamespaceEventMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteNamespaceEventMutation( + params: { + selection: { + fields: S & NamespaceEventSelect; + } & HookStrictSelect, NamespaceEventSelect>; + } & Omit< + UseMutationOptions< + { + deleteNamespaceEvent: { + namespaceEvent: InferSelectResult; + }; + }, + Error, + { + id: string; + createdAt: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteNamespaceEvent: { + namespaceEvent: InferSelectResult; + }; + }, + Error, + { + id: string; + createdAt: string; + } +>; +export function useDeleteNamespaceEventMutation( + 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: namespaceEventMutationKeys.all, + mutationFn: ({ id, createdAt }: { id: string; createdAt: string }) => + getClient() + .namespaceEvent.delete({ + where: { + id, + createdAt, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: namespaceEventKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: namespaceEventKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useDeleteNamespaceMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useDeleteNamespaceMutation.ts new file mode 100644 index 0000000000..1c6e408df6 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useDeleteNamespaceMutation.ts @@ -0,0 +1,98 @@ +/** + * Logical namespace containers for grouping secrets, config, functions, and other resources + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { namespaceKeys } from '../query-keys'; +import { namespaceMutationKeys } from '../mutation-keys'; +import type { NamespaceSelect, NamespaceWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { NamespaceSelect, NamespaceWithRelations } from '../../orm/input-types'; +/** + * Logical namespace containers for grouping secrets, config, functions, and other resources + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteNamespaceMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteNamespaceMutation( + params: { + selection: { + fields: S & NamespaceSelect; + } & HookStrictSelect, NamespaceSelect>; + } & Omit< + UseMutationOptions< + { + deleteNamespace: { + namespace: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteNamespace: { + namespace: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteNamespaceMutation( + 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: namespaceMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .namespace.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: namespaceKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: namespaceKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useDeletePlatformFunctionApiBindingMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useDeletePlatformFunctionApiBindingMutation.ts new file mode 100644 index 0000000000..9d916cf9e3 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useDeletePlatformFunctionApiBindingMutation.ts @@ -0,0 +1,106 @@ +/** + * Join table binding function definitions to API endpoints with per-binding alias and config + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { platformFunctionApiBindingKeys } from '../query-keys'; +import { platformFunctionApiBindingMutationKeys } from '../mutation-keys'; +import type { + PlatformFunctionApiBindingSelect, + PlatformFunctionApiBindingWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlatformFunctionApiBindingSelect, + PlatformFunctionApiBindingWithRelations, +} from '../../orm/input-types'; +/** + * Join table binding function definitions to API endpoints with per-binding alias and config + * + * @example + * ```tsx + * const { mutate, isPending } = useDeletePlatformFunctionApiBindingMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeletePlatformFunctionApiBindingMutation< + S extends PlatformFunctionApiBindingSelect, +>( + params: { + selection: { + fields: S & PlatformFunctionApiBindingSelect; + } & HookStrictSelect, PlatformFunctionApiBindingSelect>; + } & Omit< + UseMutationOptions< + { + deletePlatformFunctionApiBinding: { + platformFunctionApiBinding: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deletePlatformFunctionApiBinding: { + platformFunctionApiBinding: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeletePlatformFunctionApiBindingMutation( + 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: platformFunctionApiBindingMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .platformFunctionApiBinding.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: platformFunctionApiBindingKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: platformFunctionApiBindingKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useDeletePlatformFunctionDefinitionMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useDeletePlatformFunctionDefinitionMutation.ts new file mode 100644 index 0000000000..7dc79a9a34 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useDeletePlatformFunctionDefinitionMutation.ts @@ -0,0 +1,106 @@ +/** + * Function definitions — registered cloud functions with routing, queue, and retry configuration + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { platformFunctionDefinitionKeys } from '../query-keys'; +import { platformFunctionDefinitionMutationKeys } from '../mutation-keys'; +import type { + PlatformFunctionDefinitionSelect, + PlatformFunctionDefinitionWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlatformFunctionDefinitionSelect, + PlatformFunctionDefinitionWithRelations, +} from '../../orm/input-types'; +/** + * Function definitions — registered cloud functions with routing, queue, and retry configuration + * + * @example + * ```tsx + * const { mutate, isPending } = useDeletePlatformFunctionDefinitionMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeletePlatformFunctionDefinitionMutation< + S extends PlatformFunctionDefinitionSelect, +>( + params: { + selection: { + fields: S & PlatformFunctionDefinitionSelect; + } & HookStrictSelect, PlatformFunctionDefinitionSelect>; + } & Omit< + UseMutationOptions< + { + deletePlatformFunctionDefinition: { + platformFunctionDefinition: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deletePlatformFunctionDefinition: { + platformFunctionDefinition: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeletePlatformFunctionDefinitionMutation( + 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: platformFunctionDefinitionMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .platformFunctionDefinition.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: platformFunctionDefinitionKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: platformFunctionDefinitionKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useDeletePlatformFunctionDeploymentEventMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useDeletePlatformFunctionDeploymentEventMutation.ts new file mode 100644 index 0000000000..807139e8b0 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useDeletePlatformFunctionDeploymentEventMutation.ts @@ -0,0 +1,116 @@ +/** + * Deployment lifecycle events — audit log of provisioning, scaling, and failure events + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { platformFunctionDeploymentEventKeys } from '../query-keys'; +import { platformFunctionDeploymentEventMutationKeys } from '../mutation-keys'; +import type { + PlatformFunctionDeploymentEventSelect, + PlatformFunctionDeploymentEventWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlatformFunctionDeploymentEventSelect, + PlatformFunctionDeploymentEventWithRelations, +} from '../../orm/input-types'; +/** + * Deployment lifecycle events — audit log of provisioning, scaling, and failure events + * + * @example + * ```tsx + * const { mutate, isPending } = useDeletePlatformFunctionDeploymentEventMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeletePlatformFunctionDeploymentEventMutation< + S extends PlatformFunctionDeploymentEventSelect, +>( + params: { + selection: { + fields: S & PlatformFunctionDeploymentEventSelect; + } & HookStrictSelect, PlatformFunctionDeploymentEventSelect>; + } & Omit< + UseMutationOptions< + { + deletePlatformFunctionDeploymentEvent: { + platformFunctionDeploymentEvent: InferSelectResult< + PlatformFunctionDeploymentEventWithRelations, + S + >; + }; + }, + Error, + { + id: string; + createdAt: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deletePlatformFunctionDeploymentEvent: { + platformFunctionDeploymentEvent: InferSelectResult< + PlatformFunctionDeploymentEventWithRelations, + S + >; + }; + }, + Error, + { + id: string; + createdAt: string; + } +>; +export function useDeletePlatformFunctionDeploymentEventMutation( + 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: platformFunctionDeploymentEventMutationKeys.all, + mutationFn: ({ id, createdAt }: { id: string; createdAt: string }) => + getClient() + .platformFunctionDeploymentEvent.delete({ + where: { + id, + createdAt, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: platformFunctionDeploymentEventKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: platformFunctionDeploymentEventKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useDeletePlatformFunctionDeploymentMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useDeletePlatformFunctionDeploymentMutation.ts new file mode 100644 index 0000000000..fd8e2fc170 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useDeletePlatformFunctionDeploymentMutation.ts @@ -0,0 +1,106 @@ +/** + * Function deployment bindings — ties a handler image to a namespace for Knative provisioning and routing (one row per handler image per namespace) + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { platformFunctionDeploymentKeys } from '../query-keys'; +import { platformFunctionDeploymentMutationKeys } from '../mutation-keys'; +import type { + PlatformFunctionDeploymentSelect, + PlatformFunctionDeploymentWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlatformFunctionDeploymentSelect, + PlatformFunctionDeploymentWithRelations, +} from '../../orm/input-types'; +/** + * Function deployment bindings — ties a handler image to a namespace for Knative provisioning and routing (one row per handler image per namespace) + * + * @example + * ```tsx + * const { mutate, isPending } = useDeletePlatformFunctionDeploymentMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeletePlatformFunctionDeploymentMutation< + S extends PlatformFunctionDeploymentSelect, +>( + params: { + selection: { + fields: S & PlatformFunctionDeploymentSelect; + } & HookStrictSelect, PlatformFunctionDeploymentSelect>; + } & Omit< + UseMutationOptions< + { + deletePlatformFunctionDeployment: { + platformFunctionDeployment: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deletePlatformFunctionDeployment: { + platformFunctionDeployment: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeletePlatformFunctionDeploymentMutation( + 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: platformFunctionDeploymentMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .platformFunctionDeployment.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: platformFunctionDeploymentKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: platformFunctionDeploymentKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useDeleteOrgFunctionExecutionLogMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useDeletePlatformFunctionExecutionLogMutation.ts similarity index 56% rename from sdk/constructive-react/src/compute/hooks/mutations/useDeleteOrgFunctionExecutionLogMutation.ts rename to sdk/constructive-react/src/compute/hooks/mutations/useDeletePlatformFunctionExecutionLogMutation.ts index 4189cba72b..c39000ca02 100644 --- a/sdk/constructive-react/src/compute/hooks/mutations/useDeleteOrgFunctionExecutionLogMutation.ts +++ b/sdk/constructive-react/src/compute/hooks/mutations/useDeletePlatformFunctionExecutionLogMutation.ts @@ -9,39 +9,44 @@ import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-quer import { getClient } from '../client'; import { buildSelectionArgs } from '../selection'; import type { SelectionConfig } from '../selection'; -import { orgFunctionExecutionLogKeys } from '../query-keys'; -import { orgFunctionExecutionLogMutationKeys } from '../mutation-keys'; +import { platformFunctionExecutionLogKeys } from '../query-keys'; +import { platformFunctionExecutionLogMutationKeys } from '../mutation-keys'; import type { - OrgFunctionExecutionLogSelect, - OrgFunctionExecutionLogWithRelations, + PlatformFunctionExecutionLogSelect, + PlatformFunctionExecutionLogWithRelations, } from '../../orm/input-types'; import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { - OrgFunctionExecutionLogSelect, - OrgFunctionExecutionLogWithRelations, + PlatformFunctionExecutionLogSelect, + PlatformFunctionExecutionLogWithRelations, } from '../../orm/input-types'; /** * Function execution logs — structured console output per invocation * * @example * ```tsx - * const { mutate, isPending } = useDeleteOrgFunctionExecutionLogMutation({ + * const { mutate, isPending } = useDeletePlatformFunctionExecutionLogMutation({ * selection: { fields: { id: true } }, * }); * * mutate({ id: 'value-to-delete' }); * ``` */ -export function useDeleteOrgFunctionExecutionLogMutation( +export function useDeletePlatformFunctionExecutionLogMutation< + S extends PlatformFunctionExecutionLogSelect, +>( params: { selection: { - fields: S & OrgFunctionExecutionLogSelect; - } & HookStrictSelect, OrgFunctionExecutionLogSelect>; + fields: S & PlatformFunctionExecutionLogSelect; + } & HookStrictSelect, PlatformFunctionExecutionLogSelect>; } & Omit< UseMutationOptions< { - deleteOrgFunctionExecutionLog: { - orgFunctionExecutionLog: InferSelectResult; + deletePlatformFunctionExecutionLog: { + platformFunctionExecutionLog: InferSelectResult< + PlatformFunctionExecutionLogWithRelations, + S + >; }; }, Error, @@ -54,8 +59,8 @@ export function useDeleteOrgFunctionExecutionLogMutation ): UseMutationResult< { - deleteOrgFunctionExecutionLog: { - orgFunctionExecutionLog: InferSelectResult; + deletePlatformFunctionExecutionLog: { + platformFunctionExecutionLog: InferSelectResult; }; }, Error, @@ -64,9 +69,9 @@ export function useDeleteOrgFunctionExecutionLogMutation; -export function useDeleteOrgFunctionExecutionLogMutation( +export function useDeletePlatformFunctionExecutionLogMutation( params: { - selection: SelectionConfig; + selection: SelectionConfig; } & Omit< UseMutationOptions< any, @@ -79,15 +84,15 @@ export function useDeleteOrgFunctionExecutionLogMutation( 'mutationFn' > ) { - const args = buildSelectionArgs(params.selection); + const args = buildSelectionArgs(params.selection); const { selection: _selection, ...mutationOptions } = params ?? {}; void _selection; const queryClient = useQueryClient(); return useMutation({ - mutationKey: orgFunctionExecutionLogMutationKeys.all, + mutationKey: platformFunctionExecutionLogMutationKeys.all, mutationFn: ({ id, createdAt }: { id: string; createdAt: string }) => getClient() - .orgFunctionExecutionLog.delete({ + .platformFunctionExecutionLog.delete({ where: { id, createdAt, @@ -97,10 +102,10 @@ export function useDeleteOrgFunctionExecutionLogMutation( .unwrap(), onSuccess: (_, variables) => { queryClient.removeQueries({ - queryKey: orgFunctionExecutionLogKeys.detail(variables.id), + queryKey: platformFunctionExecutionLogKeys.detail(variables.id), }); queryClient.invalidateQueries({ - queryKey: orgFunctionExecutionLogKeys.lists(), + queryKey: platformFunctionExecutionLogKeys.lists(), }); }, ...mutationOptions, diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useDeleteOrgFunctionInvocationMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useDeletePlatformFunctionInvocationMutation.ts similarity index 59% rename from sdk/constructive-react/src/compute/hooks/mutations/useDeleteOrgFunctionInvocationMutation.ts rename to sdk/constructive-react/src/compute/hooks/mutations/useDeletePlatformFunctionInvocationMutation.ts index be33dd7429..58735fa72f 100644 --- a/sdk/constructive-react/src/compute/hooks/mutations/useDeleteOrgFunctionInvocationMutation.ts +++ b/sdk/constructive-react/src/compute/hooks/mutations/useDeletePlatformFunctionInvocationMutation.ts @@ -9,39 +9,41 @@ import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-quer import { getClient } from '../client'; import { buildSelectionArgs } from '../selection'; import type { SelectionConfig } from '../selection'; -import { orgFunctionInvocationKeys } from '../query-keys'; -import { orgFunctionInvocationMutationKeys } from '../mutation-keys'; +import { platformFunctionInvocationKeys } from '../query-keys'; +import { platformFunctionInvocationMutationKeys } from '../mutation-keys'; import type { - OrgFunctionInvocationSelect, - OrgFunctionInvocationWithRelations, + PlatformFunctionInvocationSelect, + PlatformFunctionInvocationWithRelations, } from '../../orm/input-types'; import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { - OrgFunctionInvocationSelect, - OrgFunctionInvocationWithRelations, + PlatformFunctionInvocationSelect, + PlatformFunctionInvocationWithRelations, } from '../../orm/input-types'; /** * Function invocation log — INSERT to call a function (business-layer, metered). Linked to definitions by task_identifier string. * * @example * ```tsx - * const { mutate, isPending } = useDeleteOrgFunctionInvocationMutation({ + * const { mutate, isPending } = useDeletePlatformFunctionInvocationMutation({ * selection: { fields: { id: true } }, * }); * * mutate({ id: 'value-to-delete' }); * ``` */ -export function useDeleteOrgFunctionInvocationMutation( +export function useDeletePlatformFunctionInvocationMutation< + S extends PlatformFunctionInvocationSelect, +>( params: { selection: { - fields: S & OrgFunctionInvocationSelect; - } & HookStrictSelect, OrgFunctionInvocationSelect>; + fields: S & PlatformFunctionInvocationSelect; + } & HookStrictSelect, PlatformFunctionInvocationSelect>; } & Omit< UseMutationOptions< { - deleteOrgFunctionInvocation: { - orgFunctionInvocation: InferSelectResult; + deletePlatformFunctionInvocation: { + platformFunctionInvocation: InferSelectResult; }; }, Error, @@ -54,8 +56,8 @@ export function useDeleteOrgFunctionInvocationMutation ): UseMutationResult< { - deleteOrgFunctionInvocation: { - orgFunctionInvocation: InferSelectResult; + deletePlatformFunctionInvocation: { + platformFunctionInvocation: InferSelectResult; }; }, Error, @@ -64,9 +66,9 @@ export function useDeleteOrgFunctionInvocationMutation; -export function useDeleteOrgFunctionInvocationMutation( +export function useDeletePlatformFunctionInvocationMutation( params: { - selection: SelectionConfig; + selection: SelectionConfig; } & Omit< UseMutationOptions< any, @@ -79,15 +81,15 @@ export function useDeleteOrgFunctionInvocationMutation( 'mutationFn' > ) { - const args = buildSelectionArgs(params.selection); + const args = buildSelectionArgs(params.selection); const { selection: _selection, ...mutationOptions } = params ?? {}; void _selection; const queryClient = useQueryClient(); return useMutation({ - mutationKey: orgFunctionInvocationMutationKeys.all, + mutationKey: platformFunctionInvocationMutationKeys.all, mutationFn: ({ id, createdAt }: { id: string; createdAt: string }) => getClient() - .orgFunctionInvocation.delete({ + .platformFunctionInvocation.delete({ where: { id, createdAt, @@ -97,10 +99,10 @@ export function useDeleteOrgFunctionInvocationMutation( .unwrap(), onSuccess: (_, variables) => { queryClient.removeQueries({ - queryKey: orgFunctionInvocationKeys.detail(variables.id), + queryKey: platformFunctionInvocationKeys.detail(variables.id), }); queryClient.invalidateQueries({ - queryKey: orgFunctionInvocationKeys.lists(), + queryKey: platformFunctionInvocationKeys.lists(), }); }, ...mutationOptions, diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useDeletePlatformResourceDefinitionMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useDeletePlatformResourceDefinitionMutation.ts new file mode 100644 index 0000000000..05d703c7bc --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useDeletePlatformResourceDefinitionMutation.ts @@ -0,0 +1,106 @@ +/** + * Resource definitions — templates for resource kinds declaring default spec and secret/config 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 { platformResourceDefinitionKeys } from '../query-keys'; +import { platformResourceDefinitionMutationKeys } from '../mutation-keys'; +import type { + PlatformResourceDefinitionSelect, + PlatformResourceDefinitionWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlatformResourceDefinitionSelect, + PlatformResourceDefinitionWithRelations, +} from '../../orm/input-types'; +/** + * Resource definitions — templates for resource kinds declaring default spec and secret/config requirements + * + * @example + * ```tsx + * const { mutate, isPending } = useDeletePlatformResourceDefinitionMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeletePlatformResourceDefinitionMutation< + S extends PlatformResourceDefinitionSelect, +>( + params: { + selection: { + fields: S & PlatformResourceDefinitionSelect; + } & HookStrictSelect, PlatformResourceDefinitionSelect>; + } & Omit< + UseMutationOptions< + { + deletePlatformResourceDefinition: { + platformResourceDefinition: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deletePlatformResourceDefinition: { + platformResourceDefinition: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeletePlatformResourceDefinitionMutation( + 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: platformResourceDefinitionMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .platformResourceDefinition.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: platformResourceDefinitionKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: platformResourceDefinitionKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useDeletePlatformResourceEventMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useDeletePlatformResourceEventMutation.ts new file mode 100644 index 0000000000..c3b45c7e97 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useDeletePlatformResourceEventMutation.ts @@ -0,0 +1,108 @@ +/** + * Resource lifecycle events — audit log of provisioning, updates, and failure events + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { platformResourceEventKeys } from '../query-keys'; +import { platformResourceEventMutationKeys } from '../mutation-keys'; +import type { + PlatformResourceEventSelect, + PlatformResourceEventWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlatformResourceEventSelect, + PlatformResourceEventWithRelations, +} from '../../orm/input-types'; +/** + * Resource lifecycle events — audit log of provisioning, updates, and failure events + * + * @example + * ```tsx + * const { mutate, isPending } = useDeletePlatformResourceEventMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeletePlatformResourceEventMutation( + params: { + selection: { + fields: S & PlatformResourceEventSelect; + } & HookStrictSelect, PlatformResourceEventSelect>; + } & Omit< + UseMutationOptions< + { + deletePlatformResourceEvent: { + platformResourceEvent: InferSelectResult; + }; + }, + Error, + { + id: string; + createdAt: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deletePlatformResourceEvent: { + platformResourceEvent: InferSelectResult; + }; + }, + Error, + { + id: string; + createdAt: string; + } +>; +export function useDeletePlatformResourceEventMutation( + 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: platformResourceEventMutationKeys.all, + mutationFn: ({ id, createdAt }: { id: string; createdAt: string }) => + getClient() + .platformResourceEvent.delete({ + where: { + id, + createdAt, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: platformResourceEventKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: platformResourceEventKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useDeleteSecretDefinitionMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useDeletePlatformResourceMutation.ts similarity index 54% rename from sdk/constructive-react/src/compute/hooks/mutations/useDeleteSecretDefinitionMutation.ts rename to sdk/constructive-react/src/compute/hooks/mutations/useDeletePlatformResourceMutation.ts index 8e5ffe43f3..16b01dc247 100644 --- a/sdk/constructive-react/src/compute/hooks/mutations/useDeleteSecretDefinitionMutation.ts +++ b/sdk/constructive-react/src/compute/hooks/mutations/useDeletePlatformResourceMutation.ts @@ -1,5 +1,5 @@ /** - * Global secret name registry — declares which secrets the platform recognizes. Actual values live in app_secrets. + * Unified K8s resource declarations — stores desired state (spec) and observed state (status) for all resource kinds within a namespace * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -9,33 +9,33 @@ import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-quer import { getClient } from '../client'; import { buildSelectionArgs } from '../selection'; import type { SelectionConfig } from '../selection'; -import { secretDefinitionKeys } from '../query-keys'; -import { secretDefinitionMutationKeys } from '../mutation-keys'; -import type { SecretDefinitionSelect, SecretDefinitionWithRelations } from '../../orm/input-types'; +import { platformResourceKeys } from '../query-keys'; +import { platformResourceMutationKeys } from '../mutation-keys'; +import type { PlatformResourceSelect, PlatformResourceWithRelations } from '../../orm/input-types'; import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { SecretDefinitionSelect, SecretDefinitionWithRelations } from '../../orm/input-types'; +export type { PlatformResourceSelect, PlatformResourceWithRelations } from '../../orm/input-types'; /** - * Global secret name registry — declares which secrets the platform recognizes. Actual values live in app_secrets. + * Unified K8s resource declarations — stores desired state (spec) and observed state (status) for all resource kinds within a namespace * * @example * ```tsx - * const { mutate, isPending } = useDeleteSecretDefinitionMutation({ + * const { mutate, isPending } = useDeletePlatformResourceMutation({ * selection: { fields: { id: true } }, * }); * * mutate({ id: 'value-to-delete' }); * ``` */ -export function useDeleteSecretDefinitionMutation( +export function useDeletePlatformResourceMutation( params: { selection: { - fields: S & SecretDefinitionSelect; - } & HookStrictSelect, SecretDefinitionSelect>; + fields: S & PlatformResourceSelect; + } & HookStrictSelect, PlatformResourceSelect>; } & Omit< UseMutationOptions< { - deleteSecretDefinition: { - secretDefinition: InferSelectResult; + deletePlatformResource: { + platformResource: InferSelectResult; }; }, Error, @@ -47,8 +47,8 @@ export function useDeleteSecretDefinitionMutation ): UseMutationResult< { - deleteSecretDefinition: { - secretDefinition: InferSelectResult; + deletePlatformResource: { + platformResource: InferSelectResult; }; }, Error, @@ -56,9 +56,9 @@ export function useDeleteSecretDefinitionMutation; -export function useDeleteSecretDefinitionMutation( +export function useDeletePlatformResourceMutation( params: { - selection: SelectionConfig; + selection: SelectionConfig; } & Omit< UseMutationOptions< any, @@ -70,15 +70,15 @@ export function useDeleteSecretDefinitionMutation( 'mutationFn' > ) { - const args = buildSelectionArgs(params.selection); + const args = buildSelectionArgs(params.selection); const { selection: _selection, ...mutationOptions } = params ?? {}; void _selection; const queryClient = useQueryClient(); return useMutation({ - mutationKey: secretDefinitionMutationKeys.all, + mutationKey: platformResourceMutationKeys.all, mutationFn: ({ id }: { id: string }) => getClient() - .secretDefinition.delete({ + .platformResource.delete({ where: { id, }, @@ -87,10 +87,10 @@ export function useDeleteSecretDefinitionMutation( .unwrap(), onSuccess: (_, variables) => { queryClient.removeQueries({ - queryKey: secretDefinitionKeys.detail(variables.id), + queryKey: platformResourceKeys.detail(variables.id), }); queryClient.invalidateQueries({ - queryKey: secretDefinitionKeys.lists(), + queryKey: platformResourceKeys.lists(), }); }, ...mutationOptions, diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useDeletePlatformResourceStatusCheckMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useDeletePlatformResourceStatusCheckMutation.ts new file mode 100644 index 0000000000..9574c95da3 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useDeletePlatformResourceStatusCheckMutation.ts @@ -0,0 +1,109 @@ +/** + * On-demand resource status checks — diagnostic snapshots from the runtime (K8s status, conditions, log tails) + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { platformResourceStatusCheckKeys } from '../query-keys'; +import { platformResourceStatusCheckMutationKeys } from '../mutation-keys'; +import type { + PlatformResourceStatusCheckSelect, + PlatformResourceStatusCheckWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlatformResourceStatusCheckSelect, + PlatformResourceStatusCheckWithRelations, +} from '../../orm/input-types'; +/** + * On-demand resource status checks — diagnostic snapshots from the runtime (K8s status, conditions, log tails) + * + * @example + * ```tsx + * const { mutate, isPending } = useDeletePlatformResourceStatusCheckMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeletePlatformResourceStatusCheckMutation< + S extends PlatformResourceStatusCheckSelect, +>( + params: { + selection: { + fields: S & PlatformResourceStatusCheckSelect; + } & HookStrictSelect, PlatformResourceStatusCheckSelect>; + } & Omit< + UseMutationOptions< + { + deletePlatformResourceStatusCheck: { + platformResourceStatusCheck: InferSelectResult< + PlatformResourceStatusCheckWithRelations, + S + >; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deletePlatformResourceStatusCheck: { + platformResourceStatusCheck: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeletePlatformResourceStatusCheckMutation( + 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: platformResourceStatusCheckMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .platformResourceStatusCheck.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: platformResourceStatusCheckKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: platformResourceStatusCheckKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/config/hooks/mutations/useDeletePlatformConfigDefinitionMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useDeleteResourceDefinitionMutation.ts similarity index 51% rename from sdk/constructive-react/src/config/hooks/mutations/useDeletePlatformConfigDefinitionMutation.ts rename to sdk/constructive-react/src/compute/hooks/mutations/useDeleteResourceDefinitionMutation.ts index 4cd5b7b9a1..45fb0c71aa 100644 --- a/sdk/constructive-react/src/config/hooks/mutations/useDeletePlatformConfigDefinitionMutation.ts +++ b/sdk/constructive-react/src/compute/hooks/mutations/useDeleteResourceDefinitionMutation.ts @@ -1,5 +1,5 @@ /** - * Registry of valid config keys — declares which config entries the platform recognizes + * Resource definitions — templates for resource kinds declaring default spec and secret/config requirements * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -9,39 +9,39 @@ import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-quer import { getClient } from '../client'; import { buildSelectionArgs } from '../selection'; import type { SelectionConfig } from '../selection'; -import { platformConfigDefinitionKeys } from '../query-keys'; -import { platformConfigDefinitionMutationKeys } from '../mutation-keys'; +import { resourceDefinitionKeys } from '../query-keys'; +import { resourceDefinitionMutationKeys } from '../mutation-keys'; import type { - PlatformConfigDefinitionSelect, - PlatformConfigDefinitionWithRelations, + ResourceDefinitionSelect, + ResourceDefinitionWithRelations, } from '../../orm/input-types'; import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { - PlatformConfigDefinitionSelect, - PlatformConfigDefinitionWithRelations, + ResourceDefinitionSelect, + ResourceDefinitionWithRelations, } from '../../orm/input-types'; /** - * Registry of valid config keys — declares which config entries the platform recognizes + * Resource definitions — templates for resource kinds declaring default spec and secret/config requirements * * @example * ```tsx - * const { mutate, isPending } = useDeletePlatformConfigDefinitionMutation({ + * const { mutate, isPending } = useDeleteResourceDefinitionMutation({ * selection: { fields: { id: true } }, * }); * * mutate({ id: 'value-to-delete' }); * ``` */ -export function useDeletePlatformConfigDefinitionMutation( +export function useDeleteResourceDefinitionMutation( params: { selection: { - fields: S & PlatformConfigDefinitionSelect; - } & HookStrictSelect, PlatformConfigDefinitionSelect>; + fields: S & ResourceDefinitionSelect; + } & HookStrictSelect, ResourceDefinitionSelect>; } & Omit< UseMutationOptions< { - deletePlatformConfigDefinition: { - platformConfigDefinition: InferSelectResult; + deleteResourceDefinition: { + resourceDefinition: InferSelectResult; }; }, Error, @@ -53,8 +53,8 @@ export function useDeletePlatformConfigDefinitionMutation ): UseMutationResult< { - deletePlatformConfigDefinition: { - platformConfigDefinition: InferSelectResult; + deleteResourceDefinition: { + resourceDefinition: InferSelectResult; }; }, Error, @@ -62,9 +62,9 @@ export function useDeletePlatformConfigDefinitionMutation; -export function useDeletePlatformConfigDefinitionMutation( +export function useDeleteResourceDefinitionMutation( params: { - selection: SelectionConfig; + selection: SelectionConfig; } & Omit< UseMutationOptions< any, @@ -76,15 +76,15 @@ export function useDeletePlatformConfigDefinitionMutation( 'mutationFn' > ) { - const args = buildSelectionArgs(params.selection); + const args = buildSelectionArgs(params.selection); const { selection: _selection, ...mutationOptions } = params ?? {}; void _selection; const queryClient = useQueryClient(); return useMutation({ - mutationKey: platformConfigDefinitionMutationKeys.all, + mutationKey: resourceDefinitionMutationKeys.all, mutationFn: ({ id }: { id: string }) => getClient() - .platformConfigDefinition.delete({ + .resourceDefinition.delete({ where: { id, }, @@ -93,10 +93,10 @@ export function useDeletePlatformConfigDefinitionMutation( .unwrap(), onSuccess: (_, variables) => { queryClient.removeQueries({ - queryKey: platformConfigDefinitionKeys.detail(variables.id), + queryKey: resourceDefinitionKeys.detail(variables.id), }); queryClient.invalidateQueries({ - queryKey: platformConfigDefinitionKeys.lists(), + queryKey: resourceDefinitionKeys.lists(), }); }, ...mutationOptions, diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useDeleteResourceStatusCheckMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useDeleteResourceStatusCheckMutation.ts new file mode 100644 index 0000000000..3b7cef4ce5 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useDeleteResourceStatusCheckMutation.ts @@ -0,0 +1,104 @@ +/** + * On-demand resource status checks — diagnostic snapshots from the runtime (K8s status, conditions, log tails) + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { resourceStatusCheckKeys } from '../query-keys'; +import { resourceStatusCheckMutationKeys } from '../mutation-keys'; +import type { + ResourceStatusCheckSelect, + ResourceStatusCheckWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + ResourceStatusCheckSelect, + ResourceStatusCheckWithRelations, +} from '../../orm/input-types'; +/** + * On-demand resource status checks — diagnostic snapshots from the runtime (K8s status, conditions, log tails) + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteResourceStatusCheckMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteResourceStatusCheckMutation( + params: { + selection: { + fields: S & ResourceStatusCheckSelect; + } & HookStrictSelect, ResourceStatusCheckSelect>; + } & Omit< + UseMutationOptions< + { + deleteResourceStatusCheck: { + resourceStatusCheck: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteResourceStatusCheck: { + resourceStatusCheck: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteResourceStatusCheckMutation( + 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: resourceStatusCheckMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .resourceStatusCheck.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: resourceStatusCheckKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: resourceStatusCheckKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/api/hooks/mutations/useCreateUserDatabaseMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useInfraInitEmptyRepoMutation.ts similarity index 54% rename from sdk/constructive-react/src/api/hooks/mutations/useCreateUserDatabaseMutation.ts rename to sdk/constructive-react/src/compute/hooks/mutations/useInfraInitEmptyRepoMutation.ts index 3ac6d18c0c..93e94ad35e 100644 --- a/sdk/constructive-react/src/api/hooks/mutations/useCreateUserDatabaseMutation.ts +++ b/sdk/constructive-react/src/compute/hooks/mutations/useInfraInitEmptyRepoMutation.ts @@ -1,5 +1,5 @@ /** - * Custom mutation hook for createUserDatabase + * Custom mutation hook for infraInitEmptyRepo * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -10,48 +10,48 @@ import { getClient } from '../client'; import { buildSelectionArgs } from '../selection'; import type { SelectionConfig } from '../selection'; import { customMutationKeys } from '../mutation-keys'; -import type { CreateUserDatabaseVariables } from '../../orm/mutation'; +import type { InfraInitEmptyRepoVariables } from '../../orm/mutation'; import type { - CreateUserDatabasePayloadSelect, - CreateUserDatabasePayload, + InfraInitEmptyRepoPayloadSelect, + InfraInitEmptyRepoPayload, } from '../../orm/input-types'; import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; -export type { CreateUserDatabaseVariables } from '../../orm/mutation'; -export type { CreateUserDatabasePayloadSelect } from '../../orm/input-types'; -export function useCreateUserDatabaseMutation( +export type { InfraInitEmptyRepoVariables } from '../../orm/mutation'; +export type { InfraInitEmptyRepoPayloadSelect } from '../../orm/input-types'; +export function useInfraInitEmptyRepoMutation( params: { selection: { - fields: S & CreateUserDatabasePayloadSelect; - } & HookStrictSelect, CreateUserDatabasePayloadSelect>; + fields: S & InfraInitEmptyRepoPayloadSelect; + } & HookStrictSelect, InfraInitEmptyRepoPayloadSelect>; } & Omit< UseMutationOptions< { - createUserDatabase: InferSelectResult | null; + infraInitEmptyRepo: InferSelectResult | null; }, Error, - CreateUserDatabaseVariables + InfraInitEmptyRepoVariables >, 'mutationFn' > ): UseMutationResult< { - createUserDatabase: InferSelectResult | null; + infraInitEmptyRepo: InferSelectResult | null; }, Error, - CreateUserDatabaseVariables + InfraInitEmptyRepoVariables > { const args = buildSelectionArgs(params.selection); const { selection: _selection, ...mutationOptions } = params ?? {}; void _selection; return useMutation({ - mutationKey: customMutationKeys.createUserDatabase(), - mutationFn: (variables: CreateUserDatabaseVariables) => + mutationKey: customMutationKeys.infraInitEmptyRepo(), + mutationFn: (variables: InfraInitEmptyRepoVariables) => getClient() - .mutation.createUserDatabase(variables, { + .mutation.infraInitEmptyRepo(variables, { select: args.select, } as { select: S; - } & StrictSelect) + } & StrictSelect) .unwrap(), ...mutationOptions, }); diff --git a/sdk/constructive-react/src/config/hooks/mutations/useOrgSecretsRemoveArrayMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useInfraInsertNodeAtPathMutation.ts similarity index 52% rename from sdk/constructive-react/src/config/hooks/mutations/useOrgSecretsRemoveArrayMutation.ts rename to sdk/constructive-react/src/compute/hooks/mutations/useInfraInsertNodeAtPathMutation.ts index 1e0d83620c..17eac12e32 100644 --- a/sdk/constructive-react/src/config/hooks/mutations/useOrgSecretsRemoveArrayMutation.ts +++ b/sdk/constructive-react/src/compute/hooks/mutations/useInfraInsertNodeAtPathMutation.ts @@ -1,5 +1,5 @@ /** - * Custom mutation hook for orgSecretsRemoveArray + * Custom mutation hook for infraInsertNodeAtPath * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -10,48 +10,48 @@ import { getClient } from '../client'; import { buildSelectionArgs } from '../selection'; import type { SelectionConfig } from '../selection'; import { customMutationKeys } from '../mutation-keys'; -import type { OrgSecretsRemoveArrayVariables } from '../../orm/mutation'; +import type { InfraInsertNodeAtPathVariables } from '../../orm/mutation'; import type { - OrgSecretsRemoveArrayPayloadSelect, - OrgSecretsRemoveArrayPayload, + InfraInsertNodeAtPathPayloadSelect, + InfraInsertNodeAtPathPayload, } from '../../orm/input-types'; import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; -export type { OrgSecretsRemoveArrayVariables } from '../../orm/mutation'; -export type { OrgSecretsRemoveArrayPayloadSelect } from '../../orm/input-types'; -export function useOrgSecretsRemoveArrayMutation( +export type { InfraInsertNodeAtPathVariables } from '../../orm/mutation'; +export type { InfraInsertNodeAtPathPayloadSelect } from '../../orm/input-types'; +export function useInfraInsertNodeAtPathMutation( params: { selection: { - fields: S & OrgSecretsRemoveArrayPayloadSelect; - } & HookStrictSelect, OrgSecretsRemoveArrayPayloadSelect>; + fields: S & InfraInsertNodeAtPathPayloadSelect; + } & HookStrictSelect, InfraInsertNodeAtPathPayloadSelect>; } & Omit< UseMutationOptions< { - orgSecretsRemoveArray: InferSelectResult | null; + infraInsertNodeAtPath: InferSelectResult | null; }, Error, - OrgSecretsRemoveArrayVariables + InfraInsertNodeAtPathVariables >, 'mutationFn' > ): UseMutationResult< { - orgSecretsRemoveArray: InferSelectResult | null; + infraInsertNodeAtPath: InferSelectResult | null; }, Error, - OrgSecretsRemoveArrayVariables + InfraInsertNodeAtPathVariables > { const args = buildSelectionArgs(params.selection); const { selection: _selection, ...mutationOptions } = params ?? {}; void _selection; return useMutation({ - mutationKey: customMutationKeys.orgSecretsRemoveArray(), - mutationFn: (variables: OrgSecretsRemoveArrayVariables) => + mutationKey: customMutationKeys.infraInsertNodeAtPath(), + mutationFn: (variables: InfraInsertNodeAtPathVariables) => getClient() - .mutation.orgSecretsRemoveArray(variables, { + .mutation.infraInsertNodeAtPath(variables, { select: args.select, } as { select: S; - } & StrictSelect) + } & StrictSelect) .unwrap(), ...mutationOptions, }); diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useInfraSetDataAtPathMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useInfraSetDataAtPathMutation.ts new file mode 100644 index 0000000000..50a6867d2d --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useInfraSetDataAtPathMutation.ts @@ -0,0 +1,58 @@ +/** + * Custom mutation hook for infraSetDataAtPath + * @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 { InfraSetDataAtPathVariables } from '../../orm/mutation'; +import type { + InfraSetDataAtPathPayloadSelect, + InfraSetDataAtPathPayload, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; +export type { InfraSetDataAtPathVariables } from '../../orm/mutation'; +export type { InfraSetDataAtPathPayloadSelect } from '../../orm/input-types'; +export function useInfraSetDataAtPathMutation( + params: { + selection: { + fields: S & InfraSetDataAtPathPayloadSelect; + } & HookStrictSelect, InfraSetDataAtPathPayloadSelect>; + } & Omit< + UseMutationOptions< + { + infraSetDataAtPath: InferSelectResult | null; + }, + Error, + InfraSetDataAtPathVariables + >, + 'mutationFn' + > +): UseMutationResult< + { + infraSetDataAtPath: InferSelectResult | null; + }, + Error, + InfraSetDataAtPathVariables +> { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + return useMutation({ + mutationKey: customMutationKeys.infraSetDataAtPath(), + mutationFn: (variables: InfraSetDataAtPathVariables) => + getClient() + .mutation.infraSetDataAtPath(variables, { + select: args.select, + } as { + select: S; + } & StrictSelect) + .unwrap(), + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useUpdateDbPresetMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useUpdateDbPresetMutation.ts new file mode 100644 index 0000000000..3b7a6edec2 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useUpdateDbPresetMutation.ts @@ -0,0 +1,102 @@ +/** + * Database provisioning preset catalog — 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 { dbPresetKeys } from '../query-keys'; +import { dbPresetMutationKeys } from '../mutation-keys'; +import type { DbPresetSelect, DbPresetWithRelations, DbPresetPatch } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { DbPresetSelect, DbPresetWithRelations, DbPresetPatch } from '../../orm/input-types'; +/** + * Database provisioning preset catalog — merkle-versioned head over the infra store + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateDbPresetMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', dbPresetPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateDbPresetMutation( + params: { + selection: { + fields: S & DbPresetSelect; + } & HookStrictSelect, DbPresetSelect>; + } & Omit< + UseMutationOptions< + { + updateDbPreset: { + dbPreset: InferSelectResult; + }; + }, + Error, + { + id: string; + dbPresetPatch: DbPresetPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateDbPreset: { + dbPreset: InferSelectResult; + }; + }, + Error, + { + id: string; + dbPresetPatch: DbPresetPatch; + } +>; +export function useUpdateDbPresetMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + dbPresetPatch: DbPresetPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: dbPresetMutationKeys.all, + mutationFn: ({ id, dbPresetPatch }: { id: string; dbPresetPatch: DbPresetPatch }) => + getClient() + .dbPreset.update({ + where: { + id, + }, + data: dbPresetPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: dbPresetKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: dbPresetKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useUpdateFunctionDeploymentMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useUpdateFunctionDeploymentMutation.ts index fcf6de4820..a3ca7c8bca 100644 --- a/sdk/constructive-react/src/compute/hooks/mutations/useUpdateFunctionDeploymentMutation.ts +++ b/sdk/constructive-react/src/compute/hooks/mutations/useUpdateFunctionDeploymentMutation.ts @@ -1,5 +1,5 @@ /** - * Function deployment bindings — ties a function definition to a namespace for Knative provisioning and routing + * Function deployment bindings — ties a handler image to a namespace for Knative provisioning and routing (one row per handler image per namespace) * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { FunctionDeploymentPatch, } from '../../orm/input-types'; /** - * Function deployment bindings — ties a function definition to a namespace for Knative provisioning and routing + * Function deployment bindings — ties a handler image to a namespace for Knative provisioning and routing (one row per handler image per namespace) * * @example * ```tsx diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useUpdateFunctionGraphCommitMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useUpdateFunctionGraphCommitMutation.ts index 92153e5fdd..6b71ec04ea 100644 --- a/sdk/constructive-react/src/compute/hooks/mutations/useUpdateFunctionGraphCommitMutation.ts +++ b/sdk/constructive-react/src/compute/hooks/mutations/useUpdateFunctionGraphCommitMutation.ts @@ -49,7 +49,7 @@ export function useUpdateFunctionGraphCommitMutation, @@ -64,7 +64,7 @@ export function useUpdateFunctionGraphCommitMutation; @@ -77,7 +77,7 @@ export function useUpdateFunctionGraphCommitMutation( Error, { id: string; - databaseId: string; + scopeId: string; functionGraphCommitPatch: FunctionGraphCommitPatch; } >, @@ -92,18 +92,18 @@ export function useUpdateFunctionGraphCommitMutation( mutationKey: functionGraphCommitMutationKeys.all, mutationFn: ({ id, - databaseId, + scopeId, functionGraphCommitPatch, }: { id: string; - databaseId: string; + scopeId: string; functionGraphCommitPatch: FunctionGraphCommitPatch; }) => getClient() .functionGraphCommit.update({ where: { id, - databaseId, + scopeId, }, data: functionGraphCommitPatch, select: args.select, diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useUpdateFunctionGraphObjectMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useUpdateFunctionGraphObjectMutation.ts index fcdd9aedc8..b81861d8e1 100644 --- a/sdk/constructive-react/src/compute/hooks/mutations/useUpdateFunctionGraphObjectMutation.ts +++ b/sdk/constructive-react/src/compute/hooks/mutations/useUpdateFunctionGraphObjectMutation.ts @@ -49,7 +49,7 @@ export function useUpdateFunctionGraphObjectMutation, @@ -64,7 +64,7 @@ export function useUpdateFunctionGraphObjectMutation; @@ -77,7 +77,7 @@ export function useUpdateFunctionGraphObjectMutation( Error, { id: string; - databaseId: string; + scopeId: string; functionGraphObjectPatch: FunctionGraphObjectPatch; } >, @@ -92,18 +92,18 @@ export function useUpdateFunctionGraphObjectMutation( mutationKey: functionGraphObjectMutationKeys.all, mutationFn: ({ id, - databaseId, + scopeId, functionGraphObjectPatch, }: { id: string; - databaseId: string; + scopeId: string; functionGraphObjectPatch: FunctionGraphObjectPatch; }) => getClient() .functionGraphObject.update({ where: { id, - databaseId, + scopeId, }, data: functionGraphObjectPatch, select: args.select, diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useUpdateFunctionGraphRefMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useUpdateFunctionGraphRefMutation.ts index 2cdd0eb346..2baf1e74c0 100644 --- a/sdk/constructive-react/src/compute/hooks/mutations/useUpdateFunctionGraphRefMutation.ts +++ b/sdk/constructive-react/src/compute/hooks/mutations/useUpdateFunctionGraphRefMutation.ts @@ -49,7 +49,7 @@ export function useUpdateFunctionGraphRefMutation, @@ -64,7 +64,7 @@ export function useUpdateFunctionGraphRefMutation; @@ -77,7 +77,7 @@ export function useUpdateFunctionGraphRefMutation( Error, { id: string; - databaseId: string; + scopeId: string; functionGraphRefPatch: FunctionGraphRefPatch; } >, @@ -92,18 +92,18 @@ export function useUpdateFunctionGraphRefMutation( mutationKey: functionGraphRefMutationKeys.all, mutationFn: ({ id, - databaseId, + scopeId, functionGraphRefPatch, }: { id: string; - databaseId: string; + scopeId: string; functionGraphRefPatch: FunctionGraphRefPatch; }) => getClient() .functionGraphRef.update({ where: { id, - databaseId, + scopeId, }, data: functionGraphRefPatch, select: args.select, diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useUpdateInfraCommitMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useUpdateInfraCommitMutation.ts new file mode 100644 index 0000000000..be47b01262 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useUpdateInfraCommitMutation.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 { infraCommitKeys } from '../query-keys'; +import { infraCommitMutationKeys } from '../mutation-keys'; +import type { + InfraCommitSelect, + InfraCommitWithRelations, + InfraCommitPatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + InfraCommitSelect, + InfraCommitWithRelations, + InfraCommitPatch, +} from '../../orm/input-types'; +/** + * Commit history — each commit snapshots a tree root for a store + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateInfraCommitMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', infraCommitPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateInfraCommitMutation( + params: { + selection: { + fields: S & InfraCommitSelect; + } & HookStrictSelect, InfraCommitSelect>; + } & Omit< + UseMutationOptions< + { + updateInfraCommit: { + infraCommit: InferSelectResult; + }; + }, + Error, + { + id: string; + scopeId: string; + infraCommitPatch: InfraCommitPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateInfraCommit: { + infraCommit: InferSelectResult; + }; + }, + Error, + { + id: string; + scopeId: string; + infraCommitPatch: InfraCommitPatch; + } +>; +export function useUpdateInfraCommitMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + scopeId: string; + infraCommitPatch: InfraCommitPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: infraCommitMutationKeys.all, + mutationFn: ({ + id, + scopeId, + infraCommitPatch, + }: { + id: string; + scopeId: string; + infraCommitPatch: InfraCommitPatch; + }) => + getClient() + .infraCommit.update({ + where: { + id, + scopeId, + }, + data: infraCommitPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: infraCommitKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: infraCommitKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useUpdateInfraObjectMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useUpdateInfraObjectMutation.ts new file mode 100644 index 0000000000..d6e9b0e680 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useUpdateInfraObjectMutation.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 { infraObjectKeys } from '../query-keys'; +import { infraObjectMutationKeys } from '../mutation-keys'; +import type { + InfraObjectSelect, + InfraObjectWithRelations, + InfraObjectPatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + InfraObjectSelect, + InfraObjectWithRelations, + InfraObjectPatch, +} from '../../orm/input-types'; +/** + * Content-addressed Merkle tree objects keyed by UUID v5 hash of data + children + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateInfraObjectMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', infraObjectPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateInfraObjectMutation( + params: { + selection: { + fields: S & InfraObjectSelect; + } & HookStrictSelect, InfraObjectSelect>; + } & Omit< + UseMutationOptions< + { + updateInfraObject: { + infraObject: InferSelectResult; + }; + }, + Error, + { + id: string; + scopeId: string; + infraObjectPatch: InfraObjectPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateInfraObject: { + infraObject: InferSelectResult; + }; + }, + Error, + { + id: string; + scopeId: string; + infraObjectPatch: InfraObjectPatch; + } +>; +export function useUpdateInfraObjectMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + scopeId: string; + infraObjectPatch: InfraObjectPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: infraObjectMutationKeys.all, + mutationFn: ({ + id, + scopeId, + infraObjectPatch, + }: { + id: string; + scopeId: string; + infraObjectPatch: InfraObjectPatch; + }) => + getClient() + .infraObject.update({ + where: { + id, + scopeId, + }, + data: infraObjectPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: infraObjectKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: infraObjectKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useUpdateInfraRefMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useUpdateInfraRefMutation.ts new file mode 100644 index 0000000000..abcf3cdea6 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useUpdateInfraRefMutation.ts @@ -0,0 +1,114 @@ +/** + * 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 { infraRefKeys } from '../query-keys'; +import { infraRefMutationKeys } from '../mutation-keys'; +import type { InfraRefSelect, InfraRefWithRelations, InfraRefPatch } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { InfraRefSelect, InfraRefWithRelations, InfraRefPatch } from '../../orm/input-types'; +/** + * Branch heads — mutable pointers into the commit chain + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateInfraRefMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', infraRefPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateInfraRefMutation( + params: { + selection: { + fields: S & InfraRefSelect; + } & HookStrictSelect, InfraRefSelect>; + } & Omit< + UseMutationOptions< + { + updateInfraRef: { + infraRef: InferSelectResult; + }; + }, + Error, + { + id: string; + scopeId: string; + infraRefPatch: InfraRefPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateInfraRef: { + infraRef: InferSelectResult; + }; + }, + Error, + { + id: string; + scopeId: string; + infraRefPatch: InfraRefPatch; + } +>; +export function useUpdateInfraRefMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + scopeId: string; + infraRefPatch: InfraRefPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: infraRefMutationKeys.all, + mutationFn: ({ + id, + scopeId, + infraRefPatch, + }: { + id: string; + scopeId: string; + infraRefPatch: InfraRefPatch; + }) => + getClient() + .infraRef.update({ + where: { + id, + scopeId, + }, + data: infraRefPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: infraRefKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: infraRefKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useUpdateInfraStoreMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useUpdateInfraStoreMutation.ts new file mode 100644 index 0000000000..997f8014cb --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useUpdateInfraStoreMutation.ts @@ -0,0 +1,110 @@ +/** + * 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 { infraStoreKeys } from '../query-keys'; +import { infraStoreMutationKeys } from '../mutation-keys'; +import type { + InfraStoreSelect, + InfraStoreWithRelations, + InfraStorePatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + InfraStoreSelect, + InfraStoreWithRelations, + InfraStorePatch, +} from '../../orm/input-types'; +/** + * Named stores — one per version-controlled tree (e.g. one graph, one definition set) + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateInfraStoreMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', infraStorePatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateInfraStoreMutation( + params: { + selection: { + fields: S & InfraStoreSelect; + } & HookStrictSelect, InfraStoreSelect>; + } & Omit< + UseMutationOptions< + { + updateInfraStore: { + infraStore: InferSelectResult; + }; + }, + Error, + { + id: string; + infraStorePatch: InfraStorePatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateInfraStore: { + infraStore: InferSelectResult; + }; + }, + Error, + { + id: string; + infraStorePatch: InfraStorePatch; + } +>; +export function useUpdateInfraStoreMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + infraStorePatch: InfraStorePatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: infraStoreMutationKeys.all, + mutationFn: ({ id, infraStorePatch }: { id: string; infraStorePatch: InfraStorePatch }) => + getClient() + .infraStore.update({ + where: { + id, + }, + data: infraStorePatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: infraStoreKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: infraStoreKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useUpdateIntegrationProviderMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useUpdateIntegrationProviderMutation.ts new file mode 100644 index 0000000000..ba8a8dbcc2 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useUpdateIntegrationProviderMutation.ts @@ -0,0 +1,116 @@ +/** + * 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. + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { integrationProviderKeys } from '../query-keys'; +import { integrationProviderMutationKeys } from '../mutation-keys'; +import type { + IntegrationProviderSelect, + IntegrationProviderWithRelations, + IntegrationProviderPatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + IntegrationProviderSelect, + IntegrationProviderWithRelations, + IntegrationProviderPatch, +} from '../../orm/input-types'; +/** + * 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. + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateIntegrationProviderMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', integrationProviderPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateIntegrationProviderMutation( + params: { + selection: { + fields: S & IntegrationProviderSelect; + } & HookStrictSelect, IntegrationProviderSelect>; + } & Omit< + UseMutationOptions< + { + updateIntegrationProvider: { + integrationProvider: InferSelectResult; + }; + }, + Error, + { + id: string; + integrationProviderPatch: IntegrationProviderPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateIntegrationProvider: { + integrationProvider: InferSelectResult; + }; + }, + Error, + { + id: string; + integrationProviderPatch: IntegrationProviderPatch; + } +>; +export function useUpdateIntegrationProviderMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + integrationProviderPatch: IntegrationProviderPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: integrationProviderMutationKeys.all, + mutationFn: ({ + id, + integrationProviderPatch, + }: { + id: string; + integrationProviderPatch: IntegrationProviderPatch; + }) => + getClient() + .integrationProvider.update({ + where: { + id, + }, + data: integrationProviderPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: integrationProviderKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: integrationProviderKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useUpdateNamespaceEventMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useUpdateNamespaceEventMutation.ts new file mode 100644 index 0000000000..c37dff3a26 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useUpdateNamespaceEventMutation.ts @@ -0,0 +1,122 @@ +/** + * Namespace lifecycle events — audit log of creation, activation, deactivation, label changes + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { namespaceEventKeys } from '../query-keys'; +import { namespaceEventMutationKeys } from '../mutation-keys'; +import type { + NamespaceEventSelect, + NamespaceEventWithRelations, + NamespaceEventPatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + NamespaceEventSelect, + NamespaceEventWithRelations, + NamespaceEventPatch, +} from '../../orm/input-types'; +/** + * Namespace lifecycle events — audit log of creation, activation, deactivation, label changes + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateNamespaceEventMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', namespaceEventPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateNamespaceEventMutation( + params: { + selection: { + fields: S & NamespaceEventSelect; + } & HookStrictSelect, NamespaceEventSelect>; + } & Omit< + UseMutationOptions< + { + updateNamespaceEvent: { + namespaceEvent: InferSelectResult; + }; + }, + Error, + { + id: string; + createdAt: string; + namespaceEventPatch: NamespaceEventPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateNamespaceEvent: { + namespaceEvent: InferSelectResult; + }; + }, + Error, + { + id: string; + createdAt: string; + namespaceEventPatch: NamespaceEventPatch; + } +>; +export function useUpdateNamespaceEventMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + createdAt: string; + namespaceEventPatch: NamespaceEventPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: namespaceEventMutationKeys.all, + mutationFn: ({ + id, + createdAt, + namespaceEventPatch, + }: { + id: string; + createdAt: string; + namespaceEventPatch: NamespaceEventPatch; + }) => + getClient() + .namespaceEvent.update({ + where: { + id, + createdAt, + }, + data: namespaceEventPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: namespaceEventKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: namespaceEventKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useUpdateNamespaceMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useUpdateNamespaceMutation.ts new file mode 100644 index 0000000000..564be0dc4d --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useUpdateNamespaceMutation.ts @@ -0,0 +1,110 @@ +/** + * Logical namespace containers for grouping secrets, config, functions, and other resources + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { namespaceKeys } from '../query-keys'; +import { namespaceMutationKeys } from '../mutation-keys'; +import type { + NamespaceSelect, + NamespaceWithRelations, + NamespacePatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + NamespaceSelect, + NamespaceWithRelations, + NamespacePatch, +} from '../../orm/input-types'; +/** + * Logical namespace containers for grouping secrets, config, functions, and other resources + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateNamespaceMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', namespacePatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateNamespaceMutation( + params: { + selection: { + fields: S & NamespaceSelect; + } & HookStrictSelect, NamespaceSelect>; + } & Omit< + UseMutationOptions< + { + updateNamespace: { + namespace: InferSelectResult; + }; + }, + Error, + { + id: string; + namespacePatch: NamespacePatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateNamespace: { + namespace: InferSelectResult; + }; + }, + Error, + { + id: string; + namespacePatch: NamespacePatch; + } +>; +export function useUpdateNamespaceMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + namespacePatch: NamespacePatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: namespaceMutationKeys.all, + mutationFn: ({ id, namespacePatch }: { id: string; namespacePatch: NamespacePatch }) => + getClient() + .namespace.update({ + where: { + id, + }, + data: namespacePatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: namespaceKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: namespaceKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useUpdateOrgFunctionExecutionLogMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useUpdateOrgFunctionExecutionLogMutation.ts deleted file mode 100644 index a4efcd6adb..0000000000 --- a/sdk/constructive-react/src/compute/hooks/mutations/useUpdateOrgFunctionExecutionLogMutation.ts +++ /dev/null @@ -1,122 +0,0 @@ -/** - * Function execution logs — structured console output per invocation - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { orgFunctionExecutionLogKeys } from '../query-keys'; -import { orgFunctionExecutionLogMutationKeys } from '../mutation-keys'; -import type { - OrgFunctionExecutionLogSelect, - OrgFunctionExecutionLogWithRelations, - OrgFunctionExecutionLogPatch, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - OrgFunctionExecutionLogSelect, - OrgFunctionExecutionLogWithRelations, - OrgFunctionExecutionLogPatch, -} from '../../orm/input-types'; -/** - * Function execution logs — structured console output per invocation - * - * @example - * ```tsx - * const { mutate, isPending } = useUpdateOrgFunctionExecutionLogMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ id: 'value-here', orgFunctionExecutionLogPatch: { name: 'Updated' } }); - * ``` - */ -export function useUpdateOrgFunctionExecutionLogMutation( - params: { - selection: { - fields: S & OrgFunctionExecutionLogSelect; - } & HookStrictSelect, OrgFunctionExecutionLogSelect>; - } & Omit< - UseMutationOptions< - { - updateOrgFunctionExecutionLog: { - orgFunctionExecutionLog: InferSelectResult; - }; - }, - Error, - { - id: string; - createdAt: string; - orgFunctionExecutionLogPatch: OrgFunctionExecutionLogPatch; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - updateOrgFunctionExecutionLog: { - orgFunctionExecutionLog: InferSelectResult; - }; - }, - Error, - { - id: string; - createdAt: string; - orgFunctionExecutionLogPatch: OrgFunctionExecutionLogPatch; - } ->; -export function useUpdateOrgFunctionExecutionLogMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - { - id: string; - createdAt: string; - orgFunctionExecutionLogPatch: OrgFunctionExecutionLogPatch; - } - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: orgFunctionExecutionLogMutationKeys.all, - mutationFn: ({ - id, - createdAt, - orgFunctionExecutionLogPatch, - }: { - id: string; - createdAt: string; - orgFunctionExecutionLogPatch: OrgFunctionExecutionLogPatch; - }) => - getClient() - .orgFunctionExecutionLog.update({ - where: { - id, - createdAt, - }, - data: orgFunctionExecutionLogPatch, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.invalidateQueries({ - queryKey: orgFunctionExecutionLogKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: orgFunctionExecutionLogKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useUpdatePlatformFunctionApiBindingMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useUpdatePlatformFunctionApiBindingMutation.ts new file mode 100644 index 0000000000..b80aa91321 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useUpdatePlatformFunctionApiBindingMutation.ts @@ -0,0 +1,118 @@ +/** + * Join table binding function definitions to API endpoints with per-binding alias and config + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { platformFunctionApiBindingKeys } from '../query-keys'; +import { platformFunctionApiBindingMutationKeys } from '../mutation-keys'; +import type { + PlatformFunctionApiBindingSelect, + PlatformFunctionApiBindingWithRelations, + PlatformFunctionApiBindingPatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlatformFunctionApiBindingSelect, + PlatformFunctionApiBindingWithRelations, + PlatformFunctionApiBindingPatch, +} from '../../orm/input-types'; +/** + * Join table binding function definitions to API endpoints with per-binding alias and config + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdatePlatformFunctionApiBindingMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', platformFunctionApiBindingPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdatePlatformFunctionApiBindingMutation< + S extends PlatformFunctionApiBindingSelect, +>( + params: { + selection: { + fields: S & PlatformFunctionApiBindingSelect; + } & HookStrictSelect, PlatformFunctionApiBindingSelect>; + } & Omit< + UseMutationOptions< + { + updatePlatformFunctionApiBinding: { + platformFunctionApiBinding: InferSelectResult; + }; + }, + Error, + { + id: string; + platformFunctionApiBindingPatch: PlatformFunctionApiBindingPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updatePlatformFunctionApiBinding: { + platformFunctionApiBinding: InferSelectResult; + }; + }, + Error, + { + id: string; + platformFunctionApiBindingPatch: PlatformFunctionApiBindingPatch; + } +>; +export function useUpdatePlatformFunctionApiBindingMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + platformFunctionApiBindingPatch: PlatformFunctionApiBindingPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: platformFunctionApiBindingMutationKeys.all, + mutationFn: ({ + id, + platformFunctionApiBindingPatch, + }: { + id: string; + platformFunctionApiBindingPatch: PlatformFunctionApiBindingPatch; + }) => + getClient() + .platformFunctionApiBinding.update({ + where: { + id, + }, + data: platformFunctionApiBindingPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: platformFunctionApiBindingKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: platformFunctionApiBindingKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useUpdatePlatformFunctionDefinitionMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useUpdatePlatformFunctionDefinitionMutation.ts new file mode 100644 index 0000000000..6d56a3b1bb --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useUpdatePlatformFunctionDefinitionMutation.ts @@ -0,0 +1,118 @@ +/** + * Function definitions — registered cloud functions with routing, queue, and retry configuration + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { platformFunctionDefinitionKeys } from '../query-keys'; +import { platformFunctionDefinitionMutationKeys } from '../mutation-keys'; +import type { + PlatformFunctionDefinitionSelect, + PlatformFunctionDefinitionWithRelations, + PlatformFunctionDefinitionPatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlatformFunctionDefinitionSelect, + PlatformFunctionDefinitionWithRelations, + PlatformFunctionDefinitionPatch, +} from '../../orm/input-types'; +/** + * Function definitions — registered cloud functions with routing, queue, and retry configuration + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdatePlatformFunctionDefinitionMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', platformFunctionDefinitionPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdatePlatformFunctionDefinitionMutation< + S extends PlatformFunctionDefinitionSelect, +>( + params: { + selection: { + fields: S & PlatformFunctionDefinitionSelect; + } & HookStrictSelect, PlatformFunctionDefinitionSelect>; + } & Omit< + UseMutationOptions< + { + updatePlatformFunctionDefinition: { + platformFunctionDefinition: InferSelectResult; + }; + }, + Error, + { + id: string; + platformFunctionDefinitionPatch: PlatformFunctionDefinitionPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updatePlatformFunctionDefinition: { + platformFunctionDefinition: InferSelectResult; + }; + }, + Error, + { + id: string; + platformFunctionDefinitionPatch: PlatformFunctionDefinitionPatch; + } +>; +export function useUpdatePlatformFunctionDefinitionMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + platformFunctionDefinitionPatch: PlatformFunctionDefinitionPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: platformFunctionDefinitionMutationKeys.all, + mutationFn: ({ + id, + platformFunctionDefinitionPatch, + }: { + id: string; + platformFunctionDefinitionPatch: PlatformFunctionDefinitionPatch; + }) => + getClient() + .platformFunctionDefinition.update({ + where: { + id, + }, + data: platformFunctionDefinitionPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: platformFunctionDefinitionKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: platformFunctionDefinitionKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useUpdatePlatformFunctionDeploymentEventMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useUpdatePlatformFunctionDeploymentEventMutation.ts new file mode 100644 index 0000000000..69182d4cf3 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useUpdatePlatformFunctionDeploymentEventMutation.ts @@ -0,0 +1,130 @@ +/** + * Deployment lifecycle events — audit log of provisioning, scaling, and failure events + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { platformFunctionDeploymentEventKeys } from '../query-keys'; +import { platformFunctionDeploymentEventMutationKeys } from '../mutation-keys'; +import type { + PlatformFunctionDeploymentEventSelect, + PlatformFunctionDeploymentEventWithRelations, + PlatformFunctionDeploymentEventPatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlatformFunctionDeploymentEventSelect, + PlatformFunctionDeploymentEventWithRelations, + PlatformFunctionDeploymentEventPatch, +} from '../../orm/input-types'; +/** + * Deployment lifecycle events — audit log of provisioning, scaling, and failure events + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdatePlatformFunctionDeploymentEventMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', platformFunctionDeploymentEventPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdatePlatformFunctionDeploymentEventMutation< + S extends PlatformFunctionDeploymentEventSelect, +>( + params: { + selection: { + fields: S & PlatformFunctionDeploymentEventSelect; + } & HookStrictSelect, PlatformFunctionDeploymentEventSelect>; + } & Omit< + UseMutationOptions< + { + updatePlatformFunctionDeploymentEvent: { + platformFunctionDeploymentEvent: InferSelectResult< + PlatformFunctionDeploymentEventWithRelations, + S + >; + }; + }, + Error, + { + id: string; + createdAt: string; + platformFunctionDeploymentEventPatch: PlatformFunctionDeploymentEventPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updatePlatformFunctionDeploymentEvent: { + platformFunctionDeploymentEvent: InferSelectResult< + PlatformFunctionDeploymentEventWithRelations, + S + >; + }; + }, + Error, + { + id: string; + createdAt: string; + platformFunctionDeploymentEventPatch: PlatformFunctionDeploymentEventPatch; + } +>; +export function useUpdatePlatformFunctionDeploymentEventMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + createdAt: string; + platformFunctionDeploymentEventPatch: PlatformFunctionDeploymentEventPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: platformFunctionDeploymentEventMutationKeys.all, + mutationFn: ({ + id, + createdAt, + platformFunctionDeploymentEventPatch, + }: { + id: string; + createdAt: string; + platformFunctionDeploymentEventPatch: PlatformFunctionDeploymentEventPatch; + }) => + getClient() + .platformFunctionDeploymentEvent.update({ + where: { + id, + createdAt, + }, + data: platformFunctionDeploymentEventPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: platformFunctionDeploymentEventKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: platformFunctionDeploymentEventKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useUpdatePlatformFunctionDeploymentMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useUpdatePlatformFunctionDeploymentMutation.ts new file mode 100644 index 0000000000..bae68d87b4 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useUpdatePlatformFunctionDeploymentMutation.ts @@ -0,0 +1,118 @@ +/** + * Function deployment bindings — ties a handler image to a namespace for Knative provisioning and routing (one row per handler image per namespace) + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { platformFunctionDeploymentKeys } from '../query-keys'; +import { platformFunctionDeploymentMutationKeys } from '../mutation-keys'; +import type { + PlatformFunctionDeploymentSelect, + PlatformFunctionDeploymentWithRelations, + PlatformFunctionDeploymentPatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlatformFunctionDeploymentSelect, + PlatformFunctionDeploymentWithRelations, + PlatformFunctionDeploymentPatch, +} from '../../orm/input-types'; +/** + * Function deployment bindings — ties a handler image to a namespace for Knative provisioning and routing (one row per handler image per namespace) + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdatePlatformFunctionDeploymentMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', platformFunctionDeploymentPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdatePlatformFunctionDeploymentMutation< + S extends PlatformFunctionDeploymentSelect, +>( + params: { + selection: { + fields: S & PlatformFunctionDeploymentSelect; + } & HookStrictSelect, PlatformFunctionDeploymentSelect>; + } & Omit< + UseMutationOptions< + { + updatePlatformFunctionDeployment: { + platformFunctionDeployment: InferSelectResult; + }; + }, + Error, + { + id: string; + platformFunctionDeploymentPatch: PlatformFunctionDeploymentPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updatePlatformFunctionDeployment: { + platformFunctionDeployment: InferSelectResult; + }; + }, + Error, + { + id: string; + platformFunctionDeploymentPatch: PlatformFunctionDeploymentPatch; + } +>; +export function useUpdatePlatformFunctionDeploymentMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + platformFunctionDeploymentPatch: PlatformFunctionDeploymentPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: platformFunctionDeploymentMutationKeys.all, + mutationFn: ({ + id, + platformFunctionDeploymentPatch, + }: { + id: string; + platformFunctionDeploymentPatch: PlatformFunctionDeploymentPatch; + }) => + getClient() + .platformFunctionDeployment.update({ + where: { + id, + }, + data: platformFunctionDeploymentPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: platformFunctionDeploymentKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: platformFunctionDeploymentKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useUpdatePlatformFunctionExecutionLogMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useUpdatePlatformFunctionExecutionLogMutation.ts new file mode 100644 index 0000000000..0e89a8804d --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useUpdatePlatformFunctionExecutionLogMutation.ts @@ -0,0 +1,127 @@ +/** + * Function execution logs — structured console output per invocation + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { platformFunctionExecutionLogKeys } from '../query-keys'; +import { platformFunctionExecutionLogMutationKeys } from '../mutation-keys'; +import type { + PlatformFunctionExecutionLogSelect, + PlatformFunctionExecutionLogWithRelations, + PlatformFunctionExecutionLogPatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlatformFunctionExecutionLogSelect, + PlatformFunctionExecutionLogWithRelations, + PlatformFunctionExecutionLogPatch, +} from '../../orm/input-types'; +/** + * Function execution logs — structured console output per invocation + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdatePlatformFunctionExecutionLogMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', platformFunctionExecutionLogPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdatePlatformFunctionExecutionLogMutation< + S extends PlatformFunctionExecutionLogSelect, +>( + params: { + selection: { + fields: S & PlatformFunctionExecutionLogSelect; + } & HookStrictSelect, PlatformFunctionExecutionLogSelect>; + } & Omit< + UseMutationOptions< + { + updatePlatformFunctionExecutionLog: { + platformFunctionExecutionLog: InferSelectResult< + PlatformFunctionExecutionLogWithRelations, + S + >; + }; + }, + Error, + { + id: string; + createdAt: string; + platformFunctionExecutionLogPatch: PlatformFunctionExecutionLogPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updatePlatformFunctionExecutionLog: { + platformFunctionExecutionLog: InferSelectResult; + }; + }, + Error, + { + id: string; + createdAt: string; + platformFunctionExecutionLogPatch: PlatformFunctionExecutionLogPatch; + } +>; +export function useUpdatePlatformFunctionExecutionLogMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + createdAt: string; + platformFunctionExecutionLogPatch: PlatformFunctionExecutionLogPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: platformFunctionExecutionLogMutationKeys.all, + mutationFn: ({ + id, + createdAt, + platformFunctionExecutionLogPatch, + }: { + id: string; + createdAt: string; + platformFunctionExecutionLogPatch: PlatformFunctionExecutionLogPatch; + }) => + getClient() + .platformFunctionExecutionLog.update({ + where: { + id, + createdAt, + }, + data: platformFunctionExecutionLogPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: platformFunctionExecutionLogKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: platformFunctionExecutionLogKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useUpdateOrgFunctionInvocationMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useUpdatePlatformFunctionInvocationMutation.ts similarity index 51% rename from sdk/constructive-react/src/compute/hooks/mutations/useUpdateOrgFunctionInvocationMutation.ts rename to sdk/constructive-react/src/compute/hooks/mutations/useUpdatePlatformFunctionInvocationMutation.ts index 2a1bd3ff22..690afb10e1 100644 --- a/sdk/constructive-react/src/compute/hooks/mutations/useUpdateOrgFunctionInvocationMutation.ts +++ b/sdk/constructive-react/src/compute/hooks/mutations/useUpdatePlatformFunctionInvocationMutation.ts @@ -9,68 +9,70 @@ import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-quer import { getClient } from '../client'; import { buildSelectionArgs } from '../selection'; import type { SelectionConfig } from '../selection'; -import { orgFunctionInvocationKeys } from '../query-keys'; -import { orgFunctionInvocationMutationKeys } from '../mutation-keys'; +import { platformFunctionInvocationKeys } from '../query-keys'; +import { platformFunctionInvocationMutationKeys } from '../mutation-keys'; import type { - OrgFunctionInvocationSelect, - OrgFunctionInvocationWithRelations, - OrgFunctionInvocationPatch, + PlatformFunctionInvocationSelect, + PlatformFunctionInvocationWithRelations, + PlatformFunctionInvocationPatch, } from '../../orm/input-types'; import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { - OrgFunctionInvocationSelect, - OrgFunctionInvocationWithRelations, - OrgFunctionInvocationPatch, + PlatformFunctionInvocationSelect, + PlatformFunctionInvocationWithRelations, + PlatformFunctionInvocationPatch, } from '../../orm/input-types'; /** * Function invocation log — INSERT to call a function (business-layer, metered). Linked to definitions by task_identifier string. * * @example * ```tsx - * const { mutate, isPending } = useUpdateOrgFunctionInvocationMutation({ + * const { mutate, isPending } = useUpdatePlatformFunctionInvocationMutation({ * selection: { fields: { id: true, name: true } }, * }); * - * mutate({ id: 'value-here', orgFunctionInvocationPatch: { name: 'Updated' } }); + * mutate({ id: 'value-here', platformFunctionInvocationPatch: { name: 'Updated' } }); * ``` */ -export function useUpdateOrgFunctionInvocationMutation( +export function useUpdatePlatformFunctionInvocationMutation< + S extends PlatformFunctionInvocationSelect, +>( params: { selection: { - fields: S & OrgFunctionInvocationSelect; - } & HookStrictSelect, OrgFunctionInvocationSelect>; + fields: S & PlatformFunctionInvocationSelect; + } & HookStrictSelect, PlatformFunctionInvocationSelect>; } & Omit< UseMutationOptions< { - updateOrgFunctionInvocation: { - orgFunctionInvocation: InferSelectResult; + updatePlatformFunctionInvocation: { + platformFunctionInvocation: InferSelectResult; }; }, Error, { id: string; createdAt: string; - orgFunctionInvocationPatch: OrgFunctionInvocationPatch; + platformFunctionInvocationPatch: PlatformFunctionInvocationPatch; } >, 'mutationFn' > ): UseMutationResult< { - updateOrgFunctionInvocation: { - orgFunctionInvocation: InferSelectResult; + updatePlatformFunctionInvocation: { + platformFunctionInvocation: InferSelectResult; }; }, Error, { id: string; createdAt: string; - orgFunctionInvocationPatch: OrgFunctionInvocationPatch; + platformFunctionInvocationPatch: PlatformFunctionInvocationPatch; } >; -export function useUpdateOrgFunctionInvocationMutation( +export function useUpdatePlatformFunctionInvocationMutation( params: { - selection: SelectionConfig; + selection: SelectionConfig; } & Omit< UseMutationOptions< any, @@ -78,43 +80,43 @@ export function useUpdateOrgFunctionInvocationMutation( { id: string; createdAt: string; - orgFunctionInvocationPatch: OrgFunctionInvocationPatch; + platformFunctionInvocationPatch: PlatformFunctionInvocationPatch; } >, 'mutationFn' > ) { - const args = buildSelectionArgs(params.selection); + const args = buildSelectionArgs(params.selection); const { selection: _selection, ...mutationOptions } = params ?? {}; void _selection; const queryClient = useQueryClient(); return useMutation({ - mutationKey: orgFunctionInvocationMutationKeys.all, + mutationKey: platformFunctionInvocationMutationKeys.all, mutationFn: ({ id, createdAt, - orgFunctionInvocationPatch, + platformFunctionInvocationPatch, }: { id: string; createdAt: string; - orgFunctionInvocationPatch: OrgFunctionInvocationPatch; + platformFunctionInvocationPatch: PlatformFunctionInvocationPatch; }) => getClient() - .orgFunctionInvocation.update({ + .platformFunctionInvocation.update({ where: { id, createdAt, }, - data: orgFunctionInvocationPatch, + data: platformFunctionInvocationPatch, select: args.select, }) .unwrap(), onSuccess: (_, variables) => { queryClient.invalidateQueries({ - queryKey: orgFunctionInvocationKeys.detail(variables.id), + queryKey: platformFunctionInvocationKeys.detail(variables.id), }); queryClient.invalidateQueries({ - queryKey: orgFunctionInvocationKeys.lists(), + queryKey: platformFunctionInvocationKeys.lists(), }); }, ...mutationOptions, diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useUpdatePlatformResourceDefinitionMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useUpdatePlatformResourceDefinitionMutation.ts new file mode 100644 index 0000000000..dfb5fe83ea --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useUpdatePlatformResourceDefinitionMutation.ts @@ -0,0 +1,118 @@ +/** + * Resource definitions — templates for resource kinds declaring default spec and secret/config 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 { platformResourceDefinitionKeys } from '../query-keys'; +import { platformResourceDefinitionMutationKeys } from '../mutation-keys'; +import type { + PlatformResourceDefinitionSelect, + PlatformResourceDefinitionWithRelations, + PlatformResourceDefinitionPatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlatformResourceDefinitionSelect, + PlatformResourceDefinitionWithRelations, + PlatformResourceDefinitionPatch, +} from '../../orm/input-types'; +/** + * Resource definitions — templates for resource kinds declaring default spec and secret/config requirements + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdatePlatformResourceDefinitionMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', platformResourceDefinitionPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdatePlatformResourceDefinitionMutation< + S extends PlatformResourceDefinitionSelect, +>( + params: { + selection: { + fields: S & PlatformResourceDefinitionSelect; + } & HookStrictSelect, PlatformResourceDefinitionSelect>; + } & Omit< + UseMutationOptions< + { + updatePlatformResourceDefinition: { + platformResourceDefinition: InferSelectResult; + }; + }, + Error, + { + id: string; + platformResourceDefinitionPatch: PlatformResourceDefinitionPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updatePlatformResourceDefinition: { + platformResourceDefinition: InferSelectResult; + }; + }, + Error, + { + id: string; + platformResourceDefinitionPatch: PlatformResourceDefinitionPatch; + } +>; +export function useUpdatePlatformResourceDefinitionMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + platformResourceDefinitionPatch: PlatformResourceDefinitionPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: platformResourceDefinitionMutationKeys.all, + mutationFn: ({ + id, + platformResourceDefinitionPatch, + }: { + id: string; + platformResourceDefinitionPatch: PlatformResourceDefinitionPatch; + }) => + getClient() + .platformResourceDefinition.update({ + where: { + id, + }, + data: platformResourceDefinitionPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: platformResourceDefinitionKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: platformResourceDefinitionKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useUpdatePlatformResourceEventMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useUpdatePlatformResourceEventMutation.ts new file mode 100644 index 0000000000..ea3918a68b --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useUpdatePlatformResourceEventMutation.ts @@ -0,0 +1,122 @@ +/** + * Resource lifecycle events — audit log of provisioning, updates, and failure events + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { platformResourceEventKeys } from '../query-keys'; +import { platformResourceEventMutationKeys } from '../mutation-keys'; +import type { + PlatformResourceEventSelect, + PlatformResourceEventWithRelations, + PlatformResourceEventPatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlatformResourceEventSelect, + PlatformResourceEventWithRelations, + PlatformResourceEventPatch, +} from '../../orm/input-types'; +/** + * Resource lifecycle events — audit log of provisioning, updates, and failure events + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdatePlatformResourceEventMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', platformResourceEventPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdatePlatformResourceEventMutation( + params: { + selection: { + fields: S & PlatformResourceEventSelect; + } & HookStrictSelect, PlatformResourceEventSelect>; + } & Omit< + UseMutationOptions< + { + updatePlatformResourceEvent: { + platformResourceEvent: InferSelectResult; + }; + }, + Error, + { + id: string; + createdAt: string; + platformResourceEventPatch: PlatformResourceEventPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updatePlatformResourceEvent: { + platformResourceEvent: InferSelectResult; + }; + }, + Error, + { + id: string; + createdAt: string; + platformResourceEventPatch: PlatformResourceEventPatch; + } +>; +export function useUpdatePlatformResourceEventMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + createdAt: string; + platformResourceEventPatch: PlatformResourceEventPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: platformResourceEventMutationKeys.all, + mutationFn: ({ + id, + createdAt, + platformResourceEventPatch, + }: { + id: string; + createdAt: string; + platformResourceEventPatch: PlatformResourceEventPatch; + }) => + getClient() + .platformResourceEvent.update({ + where: { + id, + createdAt, + }, + data: platformResourceEventPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: platformResourceEventKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: platformResourceEventKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useUpdatePlatformResourceMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useUpdatePlatformResourceMutation.ts new file mode 100644 index 0000000000..79bdd47108 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useUpdatePlatformResourceMutation.ts @@ -0,0 +1,116 @@ +/** + * Unified K8s resource declarations — stores desired state (spec) and observed state (status) for all resource kinds within a namespace + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { platformResourceKeys } from '../query-keys'; +import { platformResourceMutationKeys } from '../mutation-keys'; +import type { + PlatformResourceSelect, + PlatformResourceWithRelations, + PlatformResourcePatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlatformResourceSelect, + PlatformResourceWithRelations, + PlatformResourcePatch, +} from '../../orm/input-types'; +/** + * Unified K8s resource declarations — stores desired state (spec) and observed state (status) for all resource kinds within a namespace + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdatePlatformResourceMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', platformResourcePatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdatePlatformResourceMutation( + params: { + selection: { + fields: S & PlatformResourceSelect; + } & HookStrictSelect, PlatformResourceSelect>; + } & Omit< + UseMutationOptions< + { + updatePlatformResource: { + platformResource: InferSelectResult; + }; + }, + Error, + { + id: string; + platformResourcePatch: PlatformResourcePatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updatePlatformResource: { + platformResource: InferSelectResult; + }; + }, + Error, + { + id: string; + platformResourcePatch: PlatformResourcePatch; + } +>; +export function useUpdatePlatformResourceMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + platformResourcePatch: PlatformResourcePatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: platformResourceMutationKeys.all, + mutationFn: ({ + id, + platformResourcePatch, + }: { + id: string; + platformResourcePatch: PlatformResourcePatch; + }) => + getClient() + .platformResource.update({ + where: { + id, + }, + data: platformResourcePatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: platformResourceKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: platformResourceKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useUpdatePlatformResourceStatusCheckMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useUpdatePlatformResourceStatusCheckMutation.ts new file mode 100644 index 0000000000..6d6565445b --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useUpdatePlatformResourceStatusCheckMutation.ts @@ -0,0 +1,121 @@ +/** + * On-demand resource status checks — diagnostic snapshots from the runtime (K8s status, conditions, log tails) + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { platformResourceStatusCheckKeys } from '../query-keys'; +import { platformResourceStatusCheckMutationKeys } from '../mutation-keys'; +import type { + PlatformResourceStatusCheckSelect, + PlatformResourceStatusCheckWithRelations, + PlatformResourceStatusCheckPatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlatformResourceStatusCheckSelect, + PlatformResourceStatusCheckWithRelations, + PlatformResourceStatusCheckPatch, +} from '../../orm/input-types'; +/** + * On-demand resource status checks — diagnostic snapshots from the runtime (K8s status, conditions, log tails) + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdatePlatformResourceStatusCheckMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', platformResourceStatusCheckPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdatePlatformResourceStatusCheckMutation< + S extends PlatformResourceStatusCheckSelect, +>( + params: { + selection: { + fields: S & PlatformResourceStatusCheckSelect; + } & HookStrictSelect, PlatformResourceStatusCheckSelect>; + } & Omit< + UseMutationOptions< + { + updatePlatformResourceStatusCheck: { + platformResourceStatusCheck: InferSelectResult< + PlatformResourceStatusCheckWithRelations, + S + >; + }; + }, + Error, + { + id: string; + platformResourceStatusCheckPatch: PlatformResourceStatusCheckPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updatePlatformResourceStatusCheck: { + platformResourceStatusCheck: InferSelectResult; + }; + }, + Error, + { + id: string; + platformResourceStatusCheckPatch: PlatformResourceStatusCheckPatch; + } +>; +export function useUpdatePlatformResourceStatusCheckMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + platformResourceStatusCheckPatch: PlatformResourceStatusCheckPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: platformResourceStatusCheckMutationKeys.all, + mutationFn: ({ + id, + platformResourceStatusCheckPatch, + }: { + id: string; + platformResourceStatusCheckPatch: PlatformResourceStatusCheckPatch; + }) => + getClient() + .platformResourceStatusCheck.update({ + where: { + id, + }, + data: platformResourceStatusCheckPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: platformResourceStatusCheckKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: platformResourceStatusCheckKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useUpdateResourceDefinitionMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useUpdateResourceDefinitionMutation.ts new file mode 100644 index 0000000000..9e44235168 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useUpdateResourceDefinitionMutation.ts @@ -0,0 +1,116 @@ +/** + * Resource definitions — templates for resource kinds declaring default spec and secret/config 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 { resourceDefinitionKeys } from '../query-keys'; +import { resourceDefinitionMutationKeys } from '../mutation-keys'; +import type { + ResourceDefinitionSelect, + ResourceDefinitionWithRelations, + ResourceDefinitionPatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + ResourceDefinitionSelect, + ResourceDefinitionWithRelations, + ResourceDefinitionPatch, +} from '../../orm/input-types'; +/** + * Resource definitions — templates for resource kinds declaring default spec and secret/config requirements + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateResourceDefinitionMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', resourceDefinitionPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateResourceDefinitionMutation( + params: { + selection: { + fields: S & ResourceDefinitionSelect; + } & HookStrictSelect, ResourceDefinitionSelect>; + } & Omit< + UseMutationOptions< + { + updateResourceDefinition: { + resourceDefinition: InferSelectResult; + }; + }, + Error, + { + id: string; + resourceDefinitionPatch: ResourceDefinitionPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateResourceDefinition: { + resourceDefinition: InferSelectResult; + }; + }, + Error, + { + id: string; + resourceDefinitionPatch: ResourceDefinitionPatch; + } +>; +export function useUpdateResourceDefinitionMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + resourceDefinitionPatch: ResourceDefinitionPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: resourceDefinitionMutationKeys.all, + mutationFn: ({ + id, + resourceDefinitionPatch, + }: { + id: string; + resourceDefinitionPatch: ResourceDefinitionPatch; + }) => + getClient() + .resourceDefinition.update({ + where: { + id, + }, + data: resourceDefinitionPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: resourceDefinitionKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: resourceDefinitionKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useUpdateResourceStatusCheckMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useUpdateResourceStatusCheckMutation.ts new file mode 100644 index 0000000000..fcc5f471c8 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useUpdateResourceStatusCheckMutation.ts @@ -0,0 +1,116 @@ +/** + * On-demand resource status checks — diagnostic snapshots from the runtime (K8s status, conditions, log tails) + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { resourceStatusCheckKeys } from '../query-keys'; +import { resourceStatusCheckMutationKeys } from '../mutation-keys'; +import type { + ResourceStatusCheckSelect, + ResourceStatusCheckWithRelations, + ResourceStatusCheckPatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + ResourceStatusCheckSelect, + ResourceStatusCheckWithRelations, + ResourceStatusCheckPatch, +} from '../../orm/input-types'; +/** + * On-demand resource status checks — diagnostic snapshots from the runtime (K8s status, conditions, log tails) + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateResourceStatusCheckMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', resourceStatusCheckPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateResourceStatusCheckMutation( + params: { + selection: { + fields: S & ResourceStatusCheckSelect; + } & HookStrictSelect, ResourceStatusCheckSelect>; + } & Omit< + UseMutationOptions< + { + updateResourceStatusCheck: { + resourceStatusCheck: InferSelectResult; + }; + }, + Error, + { + id: string; + resourceStatusCheckPatch: ResourceStatusCheckPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateResourceStatusCheck: { + resourceStatusCheck: InferSelectResult; + }; + }, + Error, + { + id: string; + resourceStatusCheckPatch: ResourceStatusCheckPatch; + } +>; +export function useUpdateResourceStatusCheckMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + resourceStatusCheckPatch: ResourceStatusCheckPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: resourceStatusCheckMutationKeys.all, + mutationFn: ({ + id, + resourceStatusCheckPatch, + }: { + id: string; + resourceStatusCheckPatch: ResourceStatusCheckPatch; + }) => + getClient() + .resourceStatusCheck.update({ + where: { + id, + }, + data: resourceStatusCheckPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: resourceStatusCheckKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: resourceStatusCheckKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useUpdateSecretDefinitionMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useUpdateSecretDefinitionMutation.ts deleted file mode 100644 index 129a8c9506..0000000000 --- a/sdk/constructive-react/src/compute/hooks/mutations/useUpdateSecretDefinitionMutation.ts +++ /dev/null @@ -1,116 +0,0 @@ -/** - * Global secret name registry — declares which secrets the platform recognizes. Actual values live in app_secrets. - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { secretDefinitionKeys } from '../query-keys'; -import { secretDefinitionMutationKeys } from '../mutation-keys'; -import type { - SecretDefinitionSelect, - SecretDefinitionWithRelations, - SecretDefinitionPatch, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - SecretDefinitionSelect, - SecretDefinitionWithRelations, - SecretDefinitionPatch, -} from '../../orm/input-types'; -/** - * Global secret name registry — declares which secrets the platform recognizes. Actual values live in app_secrets. - * - * @example - * ```tsx - * const { mutate, isPending } = useUpdateSecretDefinitionMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ id: 'value-here', secretDefinitionPatch: { name: 'Updated' } }); - * ``` - */ -export function useUpdateSecretDefinitionMutation( - params: { - selection: { - fields: S & SecretDefinitionSelect; - } & HookStrictSelect, SecretDefinitionSelect>; - } & Omit< - UseMutationOptions< - { - updateSecretDefinition: { - secretDefinition: InferSelectResult; - }; - }, - Error, - { - id: string; - secretDefinitionPatch: SecretDefinitionPatch; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - updateSecretDefinition: { - secretDefinition: InferSelectResult; - }; - }, - Error, - { - id: string; - secretDefinitionPatch: SecretDefinitionPatch; - } ->; -export function useUpdateSecretDefinitionMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - { - id: string; - secretDefinitionPatch: SecretDefinitionPatch; - } - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: secretDefinitionMutationKeys.all, - mutationFn: ({ - id, - secretDefinitionPatch, - }: { - id: string; - secretDefinitionPatch: SecretDefinitionPatch; - }) => - getClient() - .secretDefinition.update({ - where: { - id, - }, - data: secretDefinitionPatch, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.invalidateQueries({ - queryKey: secretDefinitionKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: secretDefinitionKeys.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 82cd256241..87691b3ee3 100644 --- a/sdk/constructive-react/src/compute/hooks/queries/index.ts +++ b/sdk/constructive-react/src/compute/hooks/queries/index.ts @@ -3,47 +3,86 @@ * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ +export * from './useInfraGetAllQuery'; export * from './useGetAllQuery'; +export * from './useInfraRefsQuery'; +export * from './useInfraRefQuery'; +export * from './useInfraStoresQuery'; +export * from './useInfraStoreQuery'; export * from './useFunctionApiBindingsQuery'; export * from './useFunctionApiBindingQuery'; -export * from './useFunctionDeploymentsQuery'; -export * from './useFunctionDeploymentQuery'; -export * from './useResourcesQuery'; -export * from './useResourceQuery'; export * from './useFunctionGraphRefsQuery'; export * from './useFunctionGraphRefQuery'; export * from './useFunctionGraphStoresQuery'; export * from './useFunctionGraphStoreQuery'; +export * from './usePlatformFunctionApiBindingsQuery'; +export * from './usePlatformFunctionApiBindingQuery'; +export * from './usePlatformResourcesRequirementsStatesQuery'; +export * from './useResourcesRequirementsStatesQuery'; +export * from './usePlatformResourceStatusChecksQuery'; +export * from './usePlatformResourceStatusCheckQuery'; +export * from './usePlatformFunctionDeploymentsQuery'; +export * from './usePlatformFunctionDeploymentQuery'; +export * from './usePlatformResourcesQuery'; +export * from './usePlatformResourceQuery'; +export * from './usePlatformResourceDefinitionsQuery'; +export * from './usePlatformResourceDefinitionQuery'; +export * from './useInfraObjectsQuery'; +export * from './useInfraObjectQuery'; export * from './useFunctionGraphObjectsQuery'; export * from './useFunctionGraphObjectQuery'; +export * from './usePlatformFunctionDeploymentEventsQuery'; +export * from './usePlatformFunctionDeploymentEventQuery'; +export * from './usePlatformResourceEventsQuery'; +export * from './usePlatformResourceEventQuery'; +export * from './useResourceStatusChecksQuery'; +export * from './useResourceStatusCheckQuery'; +export * from './useFunctionDeploymentsQuery'; +export * from './useFunctionDeploymentQuery'; +export * from './useResourcesQuery'; +export * from './useResourceQuery'; +export * from './useResourceDefinitionsQuery'; +export * from './useResourceDefinitionQuery'; export * from './useFunctionDeploymentEventsQuery'; export * from './useFunctionDeploymentEventQuery'; -export * from './useOrgFunctionExecutionLogsQuery'; -export * from './useOrgFunctionExecutionLogQuery'; +export * from './usePlatformFunctionExecutionLogsQuery'; +export * from './usePlatformFunctionExecutionLogQuery'; export * from './useResourceEventsQuery'; export * from './useResourceEventQuery'; export * from './useFunctionGraphExecutionOutputsQuery'; export * from './useFunctionGraphExecutionOutputQuery'; +export * from './useInfraCommitsQuery'; +export * from './useInfraCommitQuery'; export * from './useFunctionGraphCommitsQuery'; export * from './useFunctionGraphCommitQuery'; -export * from './useSecretDefinitionsQuery'; -export * from './useSecretDefinitionQuery'; export * from './useFunctionExecutionLogsQuery'; export * from './useFunctionExecutionLogQuery'; +export * from './usePlatformResourcesResolvedRequirementsQuery'; +export * from './useResourcesResolvedRequirementsQuery'; +export * from './useDbPresetsQuery'; +export * from './useDbPresetQuery'; +export * from './usePlatformNamespacesQuery'; +export * from './usePlatformNamespaceQuery'; export * from './useFunctionGraphsQuery'; export * from './useFunctionGraphQuery'; export * from './useFunctionGraphExecutionNodeStatesQuery'; export * from './useFunctionGraphExecutionNodeStateQuery'; -export * from './usePlatformNamespacesQuery'; -export * from './usePlatformNamespaceQuery'; -export * from './useOrgFunctionInvocationsQuery'; -export * from './useOrgFunctionInvocationQuery'; +export * from './useNamespacesQuery'; +export * from './useNamespaceQuery'; +export * from './usePlatformFunctionInvocationsQuery'; +export * from './usePlatformFunctionInvocationQuery'; export * from './useFunctionInvocationsQuery'; export * from './useFunctionInvocationQuery'; export * from './usePlatformNamespaceEventsQuery'; export * from './usePlatformNamespaceEventQuery'; +export * from './useIntegrationProvidersQuery'; +export * from './useIntegrationProviderQuery'; +export * from './useNamespaceEventsQuery'; +export * from './useNamespaceEventQuery'; export * from './useFunctionGraphExecutionsQuery'; export * from './useFunctionGraphExecutionQuery'; +export * from './usePlatformFunctionDefinitionsQuery'; +export * from './usePlatformFunctionDefinitionQuery'; export * from './useFunctionDefinitionsQuery'; export * from './useFunctionDefinitionQuery'; export * from './useReadFunctionGraphQuery'; diff --git a/sdk/constructive-react/src/compute/hooks/queries/useDbPresetQuery.ts b/sdk/constructive-react/src/compute/hooks/queries/useDbPresetQuery.ts new file mode 100644 index 0000000000..73c6743a01 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/queries/useDbPresetQuery.ts @@ -0,0 +1,138 @@ +/** + * Database provisioning preset catalog — 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 { dbPresetKeys } from '../query-keys'; +import type { DbPresetSelect, DbPresetWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { DbPresetSelect, DbPresetWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const dbPresetQueryKey = dbPresetKeys.detail; +/** + * Database provisioning preset catalog — merkle-versioned head over the infra store + * + * @example + * ```tsx + * const { data, isLoading } = useDbPresetQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useDbPresetQuery< + S extends DbPresetSelect, + TData = { + dbPreset: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, DbPresetSelect>; + } & Omit< + UseQueryOptions< + { + dbPreset: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useDbPresetQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: dbPresetKeys.detail(params.id), + queryFn: () => + getClient() + .dbPreset.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Database provisioning preset catalog — merkle-versioned head over the infra store + * + * @example + * ```ts + * const data = await fetchDbPresetQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchDbPresetQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, DbPresetSelect>; +}): Promise<{ + dbPreset: InferSelectResult | null; +}>; +export async function fetchDbPresetQuery(params: { + id: string; + selection: SelectionConfig; +}): Promise { + const args = buildSelectionArgs(params.selection); + return getClient() + .dbPreset.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Database provisioning preset catalog — merkle-versioned head over the infra store + * + * @example + * ```ts + * await prefetchDbPresetQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchDbPresetQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, DbPresetSelect>; + } +): Promise; +export async function prefetchDbPresetQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: dbPresetKeys.detail(params.id), + queryFn: () => + getClient() + .dbPreset.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/queries/useDbPresetsQuery.ts b/sdk/constructive-react/src/compute/hooks/queries/useDbPresetsQuery.ts new file mode 100644 index 0000000000..1aa1bdb140 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/queries/useDbPresetsQuery.ts @@ -0,0 +1,145 @@ +/** + * Database provisioning preset catalog — 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 { dbPresetKeys } from '../query-keys'; +import type { + DbPresetSelect, + DbPresetWithRelations, + DbPresetFilter, + DbPresetOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + DbPresetSelect, + DbPresetWithRelations, + DbPresetFilter, + DbPresetOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const dbPresetsQueryKey = dbPresetKeys.list; +/** + * Database provisioning preset catalog — merkle-versioned head over the infra store + * + * @example + * ```tsx + * const { data, isLoading } = useDbPresetsQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useDbPresetsQuery< + S extends DbPresetSelect, + TData = { + dbPresets: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, DbPresetSelect>; + } & Omit< + UseQueryOptions< + { + dbPresets: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useDbPresetsQuery( + params: { + selection: ListSelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs( + params.selection + ); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: dbPresetKeys.list(args), + queryFn: () => getClient().dbPreset.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Database provisioning preset catalog — merkle-versioned head over the infra store + * + * @example + * ```ts + * const data = await fetchDbPresetsQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchDbPresetsQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, DbPresetSelect>; +}): Promise<{ + dbPresets: ConnectionResult>; +}>; +export async function fetchDbPresetsQuery(params: { + selection: ListSelectionConfig; +}) { + const args = buildListSelectionArgs( + params.selection + ); + return getClient().dbPreset.findMany(args).unwrap(); +} +/** + * Database provisioning preset catalog — merkle-versioned head over the infra store + * + * @example + * ```ts + * await prefetchDbPresetsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchDbPresetsQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, DbPresetSelect>; + } +): Promise; +export async function prefetchDbPresetsQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig; + } +): Promise { + const args = buildListSelectionArgs( + params.selection + ); + await queryClient.prefetchQuery({ + queryKey: dbPresetKeys.list(args), + queryFn: () => getClient().dbPreset.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/queries/useFunctionDeploymentQuery.ts b/sdk/constructive-react/src/compute/hooks/queries/useFunctionDeploymentQuery.ts index 4aeed8eb0f..b772650df6 100644 --- a/sdk/constructive-react/src/compute/hooks/queries/useFunctionDeploymentQuery.ts +++ b/sdk/constructive-react/src/compute/hooks/queries/useFunctionDeploymentQuery.ts @@ -1,5 +1,5 @@ /** - * Function deployment bindings — ties a function definition to a namespace for Knative provisioning and routing + * Function deployment bindings — ties a handler image to a namespace for Knative provisioning and routing (one row per handler image per namespace) * @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 functionDeploymentQueryKey = functionDeploymentKeys.detail; /** - * Function deployment bindings — ties a function definition to a namespace for Knative provisioning and routing + * Function deployment bindings — ties a handler image to a namespace for Knative provisioning and routing (one row per handler image per namespace) * * @example * ```tsx @@ -76,7 +76,7 @@ export function useFunctionDeploymentQuery( }); } /** - * Function deployment bindings — ties a function definition to a namespace for Knative provisioning and routing + * Function deployment bindings — ties a handler image to a namespace for Knative provisioning and routing (one row per handler image per namespace) * * @example * ```ts @@ -107,7 +107,7 @@ export async function fetchFunctionDeploymentQuery(params: { .unwrap(); } /** - * Function deployment bindings — ties a function definition to a namespace for Knative provisioning and routing + * Function deployment bindings — ties a handler image to a namespace for Knative provisioning and routing (one row per handler image per namespace) * * @example * ```ts diff --git a/sdk/constructive-react/src/compute/hooks/queries/useFunctionDeploymentsQuery.ts b/sdk/constructive-react/src/compute/hooks/queries/useFunctionDeploymentsQuery.ts index 7715eb263f..420e1aed5a 100644 --- a/sdk/constructive-react/src/compute/hooks/queries/useFunctionDeploymentsQuery.ts +++ b/sdk/constructive-react/src/compute/hooks/queries/useFunctionDeploymentsQuery.ts @@ -1,5 +1,5 @@ /** - * Function deployment bindings — ties a function definition to a namespace for Knative provisioning and routing + * Function deployment bindings — ties a handler image to a namespace for Knative provisioning and routing (one row per handler image per namespace) * @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 functionDeploymentsQueryKey = functionDeploymentKeys.list; /** - * Function deployment bindings — ties a function definition to a namespace for Knative provisioning and routing + * Function deployment bindings — ties a handler image to a namespace for Knative provisioning and routing (one row per handler image per namespace) * * @example * ```tsx @@ -95,7 +95,7 @@ export function useFunctionDeploymentsQuery( }); } /** - * Function deployment bindings — ties a function definition to a namespace for Knative provisioning and routing + * Function deployment bindings — ties a handler image to a namespace for Knative provisioning and routing (one row per handler image per namespace) * * @example * ```ts @@ -130,7 +130,7 @@ export async function fetchFunctionDeploymentsQuery(params: { return getClient().functionDeployment.findMany(args).unwrap(); } /** - * Function deployment bindings — ties a function definition to a namespace for Knative provisioning and routing + * Function deployment bindings — ties a handler image to a namespace for Knative provisioning and routing (one row per handler image per namespace) * * @example * ```ts diff --git a/sdk/constructive-react/src/compute/hooks/queries/useInfraCommitQuery.ts b/sdk/constructive-react/src/compute/hooks/queries/useInfraCommitQuery.ts new file mode 100644 index 0000000000..3118bbd86f --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/queries/useInfraCommitQuery.ts @@ -0,0 +1,138 @@ +/** + * 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 { infraCommitKeys } from '../query-keys'; +import type { InfraCommitSelect, InfraCommitWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { InfraCommitSelect, InfraCommitWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const infraCommitQueryKey = infraCommitKeys.detail; +/** + * Commit history — each commit snapshots a tree root for a store + * + * @example + * ```tsx + * const { data, isLoading } = useInfraCommitQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useInfraCommitQuery< + S extends InfraCommitSelect, + TData = { + infraCommit: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, InfraCommitSelect>; + } & Omit< + UseQueryOptions< + { + infraCommit: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useInfraCommitQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: infraCommitKeys.detail(params.id), + queryFn: () => + getClient() + .infraCommit.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 fetchInfraCommitQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchInfraCommitQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, InfraCommitSelect>; +}): Promise<{ + infraCommit: InferSelectResult | null; +}>; +export async function fetchInfraCommitQuery(params: { + id: string; + selection: SelectionConfig; +}): Promise { + const args = buildSelectionArgs(params.selection); + return getClient() + .infraCommit.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Commit history — each commit snapshots a tree root for a store + * + * @example + * ```ts + * await prefetchInfraCommitQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchInfraCommitQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, InfraCommitSelect>; + } +): Promise; +export async function prefetchInfraCommitQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: infraCommitKeys.detail(params.id), + queryFn: () => + getClient() + .infraCommit.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/queries/useInfraCommitsQuery.ts b/sdk/constructive-react/src/compute/hooks/queries/useInfraCommitsQuery.ts new file mode 100644 index 0000000000..22994751ea --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/queries/useInfraCommitsQuery.ts @@ -0,0 +1,145 @@ +/** + * 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 { infraCommitKeys } from '../query-keys'; +import type { + InfraCommitSelect, + InfraCommitWithRelations, + InfraCommitFilter, + InfraCommitOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + InfraCommitSelect, + InfraCommitWithRelations, + InfraCommitFilter, + InfraCommitOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const infraCommitsQueryKey = infraCommitKeys.list; +/** + * Commit history — each commit snapshots a tree root for a store + * + * @example + * ```tsx + * const { data, isLoading } = useInfraCommitsQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useInfraCommitsQuery< + S extends InfraCommitSelect, + TData = { + infraCommits: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, InfraCommitSelect>; + } & Omit< + UseQueryOptions< + { + infraCommits: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useInfraCommitsQuery( + params: { + selection: ListSelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs( + params.selection + ); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: infraCommitKeys.list(args), + queryFn: () => getClient().infraCommit.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Commit history — each commit snapshots a tree root for a store + * + * @example + * ```ts + * const data = await fetchInfraCommitsQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchInfraCommitsQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, InfraCommitSelect>; +}): Promise<{ + infraCommits: ConnectionResult>; +}>; +export async function fetchInfraCommitsQuery(params: { + selection: ListSelectionConfig; +}) { + const args = buildListSelectionArgs( + params.selection + ); + return getClient().infraCommit.findMany(args).unwrap(); +} +/** + * Commit history — each commit snapshots a tree root for a store + * + * @example + * ```ts + * await prefetchInfraCommitsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchInfraCommitsQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, InfraCommitSelect>; + } +): Promise; +export async function prefetchInfraCommitsQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig; + } +): Promise { + const args = buildListSelectionArgs( + params.selection + ); + await queryClient.prefetchQuery({ + queryKey: infraCommitKeys.list(args), + queryFn: () => getClient().infraCommit.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/queries/useInfraGetAllQuery.ts b/sdk/constructive-react/src/compute/hooks/queries/useInfraGetAllQuery.ts new file mode 100644 index 0000000000..86d631a8db --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/queries/useInfraGetAllQuery.ts @@ -0,0 +1,163 @@ +/** + * List query hook for InfraGetAllRecord + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useQuery } from '@tanstack/react-query'; +import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildListSelectionArgs } from '../selection'; +import type { ListSelectionConfig } from '../selection'; +import { infraGetAllRecordKeys } from '../query-keys'; +import type { + InfraGetAllRecordSelect, + InfraGetAllRecordWithRelations, + InfraGetAllRecordFilter, + InfraGetAllRecordsOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + InfraGetAllRecordSelect, + InfraGetAllRecordWithRelations, + InfraGetAllRecordFilter, + InfraGetAllRecordsOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const infraGetAllQueryKey = infraGetAllRecordKeys.list; +/** + * Query hook for fetching InfraGetAllRecord list + * + * @example + * ```tsx + * const { data, isLoading } = useInfraGetAllQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useInfraGetAllQuery< + S extends InfraGetAllRecordSelect, + TData = { + infraGetAll: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, InfraGetAllRecordSelect>; + } & Omit< + UseQueryOptions< + { + infraGetAll: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useInfraGetAllQuery( + params: { + selection: ListSelectionConfig< + InfraGetAllRecordSelect, + InfraGetAllRecordFilter, + InfraGetAllRecordsOrderBy + >; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + InfraGetAllRecordSelect, + InfraGetAllRecordFilter, + InfraGetAllRecordsOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: infraGetAllRecordKeys.list(args), + queryFn: () => getClient().infraGetAllRecord.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch InfraGetAllRecord list without React hooks + * + * @example + * ```ts + * const data = await fetchInfraGetAllQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchInfraGetAllQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, InfraGetAllRecordSelect>; +}): Promise<{ + infraGetAll: ConnectionResult>; +}>; +export async function fetchInfraGetAllQuery(params: { + selection: ListSelectionConfig< + InfraGetAllRecordSelect, + InfraGetAllRecordFilter, + InfraGetAllRecordsOrderBy + >; +}) { + const args = buildListSelectionArgs< + InfraGetAllRecordSelect, + InfraGetAllRecordFilter, + InfraGetAllRecordsOrderBy + >(params.selection); + return getClient().infraGetAllRecord.findMany(args).unwrap(); +} +/** + * Prefetch InfraGetAllRecord list for SSR or cache warming + * + * @example + * ```ts + * await prefetchInfraGetAllQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchInfraGetAllQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, InfraGetAllRecordSelect>; + } +): Promise; +export async function prefetchInfraGetAllQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig< + InfraGetAllRecordSelect, + InfraGetAllRecordFilter, + InfraGetAllRecordsOrderBy + >; + } +): Promise { + const args = buildListSelectionArgs< + InfraGetAllRecordSelect, + InfraGetAllRecordFilter, + InfraGetAllRecordsOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: infraGetAllRecordKeys.list(args), + queryFn: () => getClient().infraGetAllRecord.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/queries/useInfraObjectQuery.ts b/sdk/constructive-react/src/compute/hooks/queries/useInfraObjectQuery.ts new file mode 100644 index 0000000000..c8c12d925b --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/queries/useInfraObjectQuery.ts @@ -0,0 +1,138 @@ +/** + * 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 { infraObjectKeys } from '../query-keys'; +import type { InfraObjectSelect, InfraObjectWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { InfraObjectSelect, InfraObjectWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const infraGetNodeAtPathQueryKey = infraObjectKeys.detail; +/** + * Content-addressed Merkle tree objects keyed by UUID v5 hash of data + children + * + * @example + * ```tsx + * const { data, isLoading } = useInfraObjectQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useInfraObjectQuery< + S extends InfraObjectSelect, + TData = { + infraGetNodeAtPath: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, InfraObjectSelect>; + } & Omit< + UseQueryOptions< + { + infraGetNodeAtPath: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useInfraObjectQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: infraObjectKeys.detail(params.id), + queryFn: () => + getClient() + .infraObject.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 fetchInfraObjectQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchInfraObjectQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, InfraObjectSelect>; +}): Promise<{ + infraGetNodeAtPath: InferSelectResult | null; +}>; +export async function fetchInfraObjectQuery(params: { + id: string; + selection: SelectionConfig; +}): Promise { + const args = buildSelectionArgs(params.selection); + return getClient() + .infraObject.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Content-addressed Merkle tree objects keyed by UUID v5 hash of data + children + * + * @example + * ```ts + * await prefetchInfraObjectQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchInfraObjectQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, InfraObjectSelect>; + } +): Promise; +export async function prefetchInfraObjectQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: infraObjectKeys.detail(params.id), + queryFn: () => + getClient() + .infraObject.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/queries/useInfraObjectsQuery.ts b/sdk/constructive-react/src/compute/hooks/queries/useInfraObjectsQuery.ts new file mode 100644 index 0000000000..4489e6fb40 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/queries/useInfraObjectsQuery.ts @@ -0,0 +1,145 @@ +/** + * 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 { infraObjectKeys } from '../query-keys'; +import type { + InfraObjectSelect, + InfraObjectWithRelations, + InfraObjectFilter, + InfraObjectOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + InfraObjectSelect, + InfraObjectWithRelations, + InfraObjectFilter, + InfraObjectOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const infraObjectsQueryKey = infraObjectKeys.list; +/** + * Content-addressed Merkle tree objects keyed by UUID v5 hash of data + children + * + * @example + * ```tsx + * const { data, isLoading } = useInfraObjectsQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useInfraObjectsQuery< + S extends InfraObjectSelect, + TData = { + infraObjects: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, InfraObjectSelect>; + } & Omit< + UseQueryOptions< + { + infraObjects: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useInfraObjectsQuery( + params: { + selection: ListSelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs( + params.selection + ); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: infraObjectKeys.list(args), + queryFn: () => getClient().infraObject.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Content-addressed Merkle tree objects keyed by UUID v5 hash of data + children + * + * @example + * ```ts + * const data = await fetchInfraObjectsQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchInfraObjectsQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, InfraObjectSelect>; +}): Promise<{ + infraObjects: ConnectionResult>; +}>; +export async function fetchInfraObjectsQuery(params: { + selection: ListSelectionConfig; +}) { + const args = buildListSelectionArgs( + params.selection + ); + return getClient().infraObject.findMany(args).unwrap(); +} +/** + * Content-addressed Merkle tree objects keyed by UUID v5 hash of data + children + * + * @example + * ```ts + * await prefetchInfraObjectsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchInfraObjectsQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, InfraObjectSelect>; + } +): Promise; +export async function prefetchInfraObjectsQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig; + } +): Promise { + const args = buildListSelectionArgs( + params.selection + ); + await queryClient.prefetchQuery({ + queryKey: infraObjectKeys.list(args), + queryFn: () => getClient().infraObject.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/queries/useInfraRefQuery.ts b/sdk/constructive-react/src/compute/hooks/queries/useInfraRefQuery.ts new file mode 100644 index 0000000000..ffbeab1418 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/queries/useInfraRefQuery.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 { infraRefKeys } from '../query-keys'; +import type { InfraRefSelect, InfraRefWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { InfraRefSelect, InfraRefWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const infraRefQueryKey = infraRefKeys.detail; +/** + * Branch heads — mutable pointers into the commit chain + * + * @example + * ```tsx + * const { data, isLoading } = useInfraRefQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useInfraRefQuery< + S extends InfraRefSelect, + TData = { + infraRef: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, InfraRefSelect>; + } & Omit< + UseQueryOptions< + { + infraRef: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useInfraRefQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: infraRefKeys.detail(params.id), + queryFn: () => + getClient() + .infraRef.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Branch heads — mutable pointers into the commit chain + * + * @example + * ```ts + * const data = await fetchInfraRefQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchInfraRefQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, InfraRefSelect>; +}): Promise<{ + infraRef: InferSelectResult | null; +}>; +export async function fetchInfraRefQuery(params: { + id: string; + selection: SelectionConfig; +}): Promise { + const args = buildSelectionArgs(params.selection); + return getClient() + .infraRef.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Branch heads — mutable pointers into the commit chain + * + * @example + * ```ts + * await prefetchInfraRefQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchInfraRefQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, InfraRefSelect>; + } +): Promise; +export async function prefetchInfraRefQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: infraRefKeys.detail(params.id), + queryFn: () => + getClient() + .infraRef.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/queries/useInfraRefsQuery.ts b/sdk/constructive-react/src/compute/hooks/queries/useInfraRefsQuery.ts new file mode 100644 index 0000000000..c3879b8d09 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/queries/useInfraRefsQuery.ts @@ -0,0 +1,145 @@ +/** + * 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 { infraRefKeys } from '../query-keys'; +import type { + InfraRefSelect, + InfraRefWithRelations, + InfraRefFilter, + InfraRefOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + InfraRefSelect, + InfraRefWithRelations, + InfraRefFilter, + InfraRefOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const infraRefsQueryKey = infraRefKeys.list; +/** + * Branch heads — mutable pointers into the commit chain + * + * @example + * ```tsx + * const { data, isLoading } = useInfraRefsQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useInfraRefsQuery< + S extends InfraRefSelect, + TData = { + infraRefs: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, InfraRefSelect>; + } & Omit< + UseQueryOptions< + { + infraRefs: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useInfraRefsQuery( + params: { + selection: ListSelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs( + params.selection + ); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: infraRefKeys.list(args), + queryFn: () => getClient().infraRef.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Branch heads — mutable pointers into the commit chain + * + * @example + * ```ts + * const data = await fetchInfraRefsQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchInfraRefsQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, InfraRefSelect>; +}): Promise<{ + infraRefs: ConnectionResult>; +}>; +export async function fetchInfraRefsQuery(params: { + selection: ListSelectionConfig; +}) { + const args = buildListSelectionArgs( + params.selection + ); + return getClient().infraRef.findMany(args).unwrap(); +} +/** + * Branch heads — mutable pointers into the commit chain + * + * @example + * ```ts + * await prefetchInfraRefsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchInfraRefsQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, InfraRefSelect>; + } +): Promise; +export async function prefetchInfraRefsQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig; + } +): Promise { + const args = buildListSelectionArgs( + params.selection + ); + await queryClient.prefetchQuery({ + queryKey: infraRefKeys.list(args), + queryFn: () => getClient().infraRef.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/queries/useInfraStoreQuery.ts b/sdk/constructive-react/src/compute/hooks/queries/useInfraStoreQuery.ts new file mode 100644 index 0000000000..405081c104 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/queries/useInfraStoreQuery.ts @@ -0,0 +1,138 @@ +/** + * 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 { infraStoreKeys } from '../query-keys'; +import type { InfraStoreSelect, InfraStoreWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { InfraStoreSelect, InfraStoreWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const infraStoreQueryKey = infraStoreKeys.detail; +/** + * Named stores — one per version-controlled tree (e.g. one graph, one definition set) + * + * @example + * ```tsx + * const { data, isLoading } = useInfraStoreQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useInfraStoreQuery< + S extends InfraStoreSelect, + TData = { + infraStore: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, InfraStoreSelect>; + } & Omit< + UseQueryOptions< + { + infraStore: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useInfraStoreQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: infraStoreKeys.detail(params.id), + queryFn: () => + getClient() + .infraStore.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 fetchInfraStoreQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchInfraStoreQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, InfraStoreSelect>; +}): Promise<{ + infraStore: InferSelectResult | null; +}>; +export async function fetchInfraStoreQuery(params: { + id: string; + selection: SelectionConfig; +}): Promise { + const args = buildSelectionArgs(params.selection); + return getClient() + .infraStore.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 prefetchInfraStoreQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchInfraStoreQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, InfraStoreSelect>; + } +): Promise; +export async function prefetchInfraStoreQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: infraStoreKeys.detail(params.id), + queryFn: () => + getClient() + .infraStore.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/queries/useInfraStoresQuery.ts b/sdk/constructive-react/src/compute/hooks/queries/useInfraStoresQuery.ts new file mode 100644 index 0000000000..7477224d50 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/queries/useInfraStoresQuery.ts @@ -0,0 +1,145 @@ +/** + * 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 { infraStoreKeys } from '../query-keys'; +import type { + InfraStoreSelect, + InfraStoreWithRelations, + InfraStoreFilter, + InfraStoreOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + InfraStoreSelect, + InfraStoreWithRelations, + InfraStoreFilter, + InfraStoreOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const infraStoresQueryKey = infraStoreKeys.list; +/** + * Named stores — one per version-controlled tree (e.g. one graph, one definition set) + * + * @example + * ```tsx + * const { data, isLoading } = useInfraStoresQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useInfraStoresQuery< + S extends InfraStoreSelect, + TData = { + infraStores: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, InfraStoreSelect>; + } & Omit< + UseQueryOptions< + { + infraStores: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useInfraStoresQuery( + params: { + selection: ListSelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs( + params.selection + ); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: infraStoreKeys.list(args), + queryFn: () => getClient().infraStore.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Named stores — one per version-controlled tree (e.g. one graph, one definition set) + * + * @example + * ```ts + * const data = await fetchInfraStoresQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchInfraStoresQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, InfraStoreSelect>; +}): Promise<{ + infraStores: ConnectionResult>; +}>; +export async function fetchInfraStoresQuery(params: { + selection: ListSelectionConfig; +}) { + const args = buildListSelectionArgs( + params.selection + ); + return getClient().infraStore.findMany(args).unwrap(); +} +/** + * Named stores — one per version-controlled tree (e.g. one graph, one definition set) + * + * @example + * ```ts + * await prefetchInfraStoresQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchInfraStoresQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, InfraStoreSelect>; + } +): Promise; +export async function prefetchInfraStoresQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig; + } +): Promise { + const args = buildListSelectionArgs( + params.selection + ); + await queryClient.prefetchQuery({ + queryKey: infraStoreKeys.list(args), + queryFn: () => getClient().infraStore.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/queries/useIntegrationProviderQuery.ts b/sdk/constructive-react/src/compute/hooks/queries/useIntegrationProviderQuery.ts new file mode 100644 index 0000000000..db6de7e417 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/queries/useIntegrationProviderQuery.ts @@ -0,0 +1,144 @@ +/** + * 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. + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useQuery } from '@tanstack/react-query'; +import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { integrationProviderKeys } from '../query-keys'; +import type { + IntegrationProviderSelect, + IntegrationProviderWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + IntegrationProviderSelect, + IntegrationProviderWithRelations, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const integrationProviderQueryKey = integrationProviderKeys.detail; +/** + * 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. + * + * @example + * ```tsx + * const { data, isLoading } = useIntegrationProviderQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useIntegrationProviderQuery< + S extends IntegrationProviderSelect, + TData = { + integrationProvider: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, IntegrationProviderSelect>; + } & Omit< + UseQueryOptions< + { + integrationProvider: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useIntegrationProviderQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: integrationProviderKeys.detail(params.id), + queryFn: () => + getClient() + .integrationProvider.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * 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. + * + * @example + * ```ts + * const data = await fetchIntegrationProviderQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchIntegrationProviderQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, IntegrationProviderSelect>; +}): Promise<{ + integrationProvider: InferSelectResult | null; +}>; +export async function fetchIntegrationProviderQuery(params: { + id: string; + selection: SelectionConfig; +}): Promise { + const args = buildSelectionArgs(params.selection); + return getClient() + .integrationProvider.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * 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. + * + * @example + * ```ts + * await prefetchIntegrationProviderQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchIntegrationProviderQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, IntegrationProviderSelect>; + } +): Promise; +export async function prefetchIntegrationProviderQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: integrationProviderKeys.detail(params.id), + queryFn: () => + getClient() + .integrationProvider.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/queries/useIntegrationProvidersQuery.ts b/sdk/constructive-react/src/compute/hooks/queries/useIntegrationProvidersQuery.ts new file mode 100644 index 0000000000..3b5839ae4a --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/queries/useIntegrationProvidersQuery.ts @@ -0,0 +1,174 @@ +/** + * 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. + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useQuery } from '@tanstack/react-query'; +import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildListSelectionArgs } from '../selection'; +import type { ListSelectionConfig } from '../selection'; +import { integrationProviderKeys } from '../query-keys'; +import type { + IntegrationProviderSelect, + IntegrationProviderWithRelations, + IntegrationProviderFilter, + IntegrationProviderOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + IntegrationProviderSelect, + IntegrationProviderWithRelations, + IntegrationProviderFilter, + IntegrationProviderOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const integrationProvidersQueryKey = integrationProviderKeys.list; +/** + * 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. + * + * @example + * ```tsx + * const { data, isLoading } = useIntegrationProvidersQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useIntegrationProvidersQuery< + S extends IntegrationProviderSelect, + TData = { + integrationProviders: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, IntegrationProviderSelect>; + } & Omit< + UseQueryOptions< + { + integrationProviders: ConnectionResult< + InferSelectResult + >; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useIntegrationProvidersQuery( + params: { + selection: ListSelectionConfig< + IntegrationProviderSelect, + IntegrationProviderFilter, + IntegrationProviderOrderBy + >; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + IntegrationProviderSelect, + IntegrationProviderFilter, + IntegrationProviderOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: integrationProviderKeys.list(args), + queryFn: () => getClient().integrationProvider.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * 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. + * + * @example + * ```ts + * const data = await fetchIntegrationProvidersQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchIntegrationProvidersQuery(params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, IntegrationProviderSelect>; +}): Promise<{ + integrationProviders: ConnectionResult>; +}>; +export async function fetchIntegrationProvidersQuery(params: { + selection: ListSelectionConfig< + IntegrationProviderSelect, + IntegrationProviderFilter, + IntegrationProviderOrderBy + >; +}) { + const args = buildListSelectionArgs< + IntegrationProviderSelect, + IntegrationProviderFilter, + IntegrationProviderOrderBy + >(params.selection); + return getClient().integrationProvider.findMany(args).unwrap(); +} +/** + * 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. + * + * @example + * ```ts + * await prefetchIntegrationProvidersQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchIntegrationProvidersQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, IntegrationProviderSelect>; + } +): Promise; +export async function prefetchIntegrationProvidersQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig< + IntegrationProviderSelect, + IntegrationProviderFilter, + IntegrationProviderOrderBy + >; + } +): Promise { + const args = buildListSelectionArgs< + IntegrationProviderSelect, + IntegrationProviderFilter, + IntegrationProviderOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: integrationProviderKeys.list(args), + queryFn: () => getClient().integrationProvider.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/queries/useNamespaceEventQuery.ts b/sdk/constructive-react/src/compute/hooks/queries/useNamespaceEventQuery.ts new file mode 100644 index 0000000000..9206e4efee --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/queries/useNamespaceEventQuery.ts @@ -0,0 +1,138 @@ +/** + * Namespace lifecycle events — audit log of creation, activation, deactivation, label changes + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useQuery } from '@tanstack/react-query'; +import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { namespaceEventKeys } from '../query-keys'; +import type { NamespaceEventSelect, NamespaceEventWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { NamespaceEventSelect, NamespaceEventWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const namespaceEventQueryKey = namespaceEventKeys.detail; +/** + * Namespace lifecycle events — audit log of creation, activation, deactivation, label changes + * + * @example + * ```tsx + * const { data, isLoading } = useNamespaceEventQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useNamespaceEventQuery< + S extends NamespaceEventSelect, + TData = { + namespaceEvent: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, NamespaceEventSelect>; + } & Omit< + UseQueryOptions< + { + namespaceEvent: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useNamespaceEventQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: namespaceEventKeys.detail(params.id), + queryFn: () => + getClient() + .namespaceEvent.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Namespace lifecycle events — audit log of creation, activation, deactivation, label changes + * + * @example + * ```ts + * const data = await fetchNamespaceEventQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchNamespaceEventQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, NamespaceEventSelect>; +}): Promise<{ + namespaceEvent: InferSelectResult | null; +}>; +export async function fetchNamespaceEventQuery(params: { + id: string; + selection: SelectionConfig; +}): Promise { + const args = buildSelectionArgs(params.selection); + return getClient() + .namespaceEvent.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Namespace lifecycle events — audit log of creation, activation, deactivation, label changes + * + * @example + * ```ts + * await prefetchNamespaceEventQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchNamespaceEventQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, NamespaceEventSelect>; + } +): Promise; +export async function prefetchNamespaceEventQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: namespaceEventKeys.detail(params.id), + queryFn: () => + getClient() + .namespaceEvent.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/queries/useNamespaceEventsQuery.ts b/sdk/constructive-react/src/compute/hooks/queries/useNamespaceEventsQuery.ts new file mode 100644 index 0000000000..ba942976cf --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/queries/useNamespaceEventsQuery.ts @@ -0,0 +1,159 @@ +/** + * Namespace lifecycle events — audit log of creation, activation, deactivation, label changes + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useQuery } from '@tanstack/react-query'; +import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildListSelectionArgs } from '../selection'; +import type { ListSelectionConfig } from '../selection'; +import { namespaceEventKeys } from '../query-keys'; +import type { + NamespaceEventSelect, + NamespaceEventWithRelations, + NamespaceEventFilter, + NamespaceEventOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + NamespaceEventSelect, + NamespaceEventWithRelations, + NamespaceEventFilter, + NamespaceEventOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const namespaceEventsQueryKey = namespaceEventKeys.list; +/** + * Namespace lifecycle events — audit log of creation, activation, deactivation, label changes + * + * @example + * ```tsx + * const { data, isLoading } = useNamespaceEventsQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useNamespaceEventsQuery< + S extends NamespaceEventSelect, + TData = { + namespaceEvents: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, NamespaceEventSelect>; + } & Omit< + UseQueryOptions< + { + namespaceEvents: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useNamespaceEventsQuery( + params: { + selection: ListSelectionConfig< + NamespaceEventSelect, + NamespaceEventFilter, + NamespaceEventOrderBy + >; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + NamespaceEventSelect, + NamespaceEventFilter, + NamespaceEventOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: namespaceEventKeys.list(args), + queryFn: () => getClient().namespaceEvent.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Namespace lifecycle events — audit log of creation, activation, deactivation, label changes + * + * @example + * ```ts + * const data = await fetchNamespaceEventsQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchNamespaceEventsQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, NamespaceEventSelect>; +}): Promise<{ + namespaceEvents: ConnectionResult>; +}>; +export async function fetchNamespaceEventsQuery(params: { + selection: ListSelectionConfig; +}) { + const args = buildListSelectionArgs< + NamespaceEventSelect, + NamespaceEventFilter, + NamespaceEventOrderBy + >(params.selection); + return getClient().namespaceEvent.findMany(args).unwrap(); +} +/** + * Namespace lifecycle events — audit log of creation, activation, deactivation, label changes + * + * @example + * ```ts + * await prefetchNamespaceEventsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchNamespaceEventsQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, NamespaceEventSelect>; + } +): Promise; +export async function prefetchNamespaceEventsQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig< + NamespaceEventSelect, + NamespaceEventFilter, + NamespaceEventOrderBy + >; + } +): Promise { + const args = buildListSelectionArgs< + NamespaceEventSelect, + NamespaceEventFilter, + NamespaceEventOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: namespaceEventKeys.list(args), + queryFn: () => getClient().namespaceEvent.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/queries/useNamespaceQuery.ts b/sdk/constructive-react/src/compute/hooks/queries/useNamespaceQuery.ts new file mode 100644 index 0000000000..ffd1130133 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/queries/useNamespaceQuery.ts @@ -0,0 +1,138 @@ +/** + * Logical namespace containers for grouping secrets, config, functions, and other resources + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useQuery } from '@tanstack/react-query'; +import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { namespaceKeys } from '../query-keys'; +import type { NamespaceSelect, NamespaceWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { NamespaceSelect, NamespaceWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const namespaceQueryKey = namespaceKeys.detail; +/** + * Logical namespace containers for grouping secrets, config, functions, and other resources + * + * @example + * ```tsx + * const { data, isLoading } = useNamespaceQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useNamespaceQuery< + S extends NamespaceSelect, + TData = { + namespace: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, NamespaceSelect>; + } & Omit< + UseQueryOptions< + { + namespace: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useNamespaceQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: namespaceKeys.detail(params.id), + queryFn: () => + getClient() + .namespace.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Logical namespace containers for grouping secrets, config, functions, and other resources + * + * @example + * ```ts + * const data = await fetchNamespaceQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchNamespaceQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, NamespaceSelect>; +}): Promise<{ + namespace: InferSelectResult | null; +}>; +export async function fetchNamespaceQuery(params: { + id: string; + selection: SelectionConfig; +}): Promise { + const args = buildSelectionArgs(params.selection); + return getClient() + .namespace.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Logical namespace containers for grouping secrets, config, functions, and other resources + * + * @example + * ```ts + * await prefetchNamespaceQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchNamespaceQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, NamespaceSelect>; + } +): Promise; +export async function prefetchNamespaceQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: namespaceKeys.detail(params.id), + queryFn: () => + getClient() + .namespace.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/queries/useNamespacesQuery.ts b/sdk/constructive-react/src/compute/hooks/queries/useNamespacesQuery.ts new file mode 100644 index 0000000000..291ce7dbd6 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/queries/useNamespacesQuery.ts @@ -0,0 +1,145 @@ +/** + * Logical namespace containers for grouping secrets, config, functions, and other resources + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useQuery } from '@tanstack/react-query'; +import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildListSelectionArgs } from '../selection'; +import type { ListSelectionConfig } from '../selection'; +import { namespaceKeys } from '../query-keys'; +import type { + NamespaceSelect, + NamespaceWithRelations, + NamespaceFilter, + NamespaceOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + NamespaceSelect, + NamespaceWithRelations, + NamespaceFilter, + NamespaceOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const namespacesQueryKey = namespaceKeys.list; +/** + * Logical namespace containers for grouping secrets, config, functions, and other resources + * + * @example + * ```tsx + * const { data, isLoading } = useNamespacesQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useNamespacesQuery< + S extends NamespaceSelect, + TData = { + namespaces: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, NamespaceSelect>; + } & Omit< + UseQueryOptions< + { + namespaces: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useNamespacesQuery( + params: { + selection: ListSelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs( + params.selection + ); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: namespaceKeys.list(args), + queryFn: () => getClient().namespace.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Logical namespace containers for grouping secrets, config, functions, and other resources + * + * @example + * ```ts + * const data = await fetchNamespacesQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchNamespacesQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, NamespaceSelect>; +}): Promise<{ + namespaces: ConnectionResult>; +}>; +export async function fetchNamespacesQuery(params: { + selection: ListSelectionConfig; +}) { + const args = buildListSelectionArgs( + params.selection + ); + return getClient().namespace.findMany(args).unwrap(); +} +/** + * Logical namespace containers for grouping secrets, config, functions, and other resources + * + * @example + * ```ts + * await prefetchNamespacesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchNamespacesQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, NamespaceSelect>; + } +): Promise; +export async function prefetchNamespacesQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig; + } +): Promise { + const args = buildListSelectionArgs( + params.selection + ); + await queryClient.prefetchQuery({ + queryKey: namespaceKeys.list(args), + queryFn: () => getClient().namespace.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/queries/useOrgFunctionExecutionLogQuery.ts b/sdk/constructive-react/src/compute/hooks/queries/useOrgFunctionExecutionLogQuery.ts deleted file mode 100644 index 9cd794f92d..0000000000 --- a/sdk/constructive-react/src/compute/hooks/queries/useOrgFunctionExecutionLogQuery.ts +++ /dev/null @@ -1,146 +0,0 @@ -/** - * Function execution logs — structured console output per invocation - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { orgFunctionExecutionLogKeys } from '../query-keys'; -import type { - OrgFunctionExecutionLogSelect, - OrgFunctionExecutionLogWithRelations, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - OrgFunctionExecutionLogSelect, - OrgFunctionExecutionLogWithRelations, -} from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const orgFunctionExecutionLogQueryKey = orgFunctionExecutionLogKeys.detail; -/** - * Function execution logs — structured console output per invocation - * - * @example - * ```tsx - * const { data, isLoading } = useOrgFunctionExecutionLogQuery({ - * id: 'some-id', - * selection: { fields: { id: true, name: true } }, - * }); - * ``` - */ -export function useOrgFunctionExecutionLogQuery< - S extends OrgFunctionExecutionLogSelect, - TData = { - orgFunctionExecutionLog: InferSelectResult | null; - }, ->( - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, OrgFunctionExecutionLogSelect>; - } & Omit< - UseQueryOptions< - { - orgFunctionExecutionLog: InferSelectResult | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useOrgFunctionExecutionLogQuery( - params: { - id: string; - selection: SelectionConfig; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: orgFunctionExecutionLogKeys.detail(params.id), - queryFn: () => - getClient() - .orgFunctionExecutionLog.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - ...queryOptions, - }); -} -/** - * Function execution logs — structured console output per invocation - * - * @example - * ```ts - * const data = await fetchOrgFunctionExecutionLogQuery({ - * id: 'some-id', - * selection: { fields: { id: true } }, - * }); - * ``` - */ -export async function fetchOrgFunctionExecutionLogQuery< - S extends OrgFunctionExecutionLogSelect, ->(params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, OrgFunctionExecutionLogSelect>; -}): Promise<{ - orgFunctionExecutionLog: InferSelectResult | null; -}>; -export async function fetchOrgFunctionExecutionLogQuery(params: { - id: string; - selection: SelectionConfig; -}): Promise { - const args = buildSelectionArgs(params.selection); - return getClient() - .orgFunctionExecutionLog.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(); -} -/** - * Function execution logs — structured console output per invocation - * - * @example - * ```ts - * await prefetchOrgFunctionExecutionLogQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); - * ``` - */ -export async function prefetchOrgFunctionExecutionLogQuery( - queryClient: QueryClient, - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, OrgFunctionExecutionLogSelect>; - } -): Promise; -export async function prefetchOrgFunctionExecutionLogQuery( - queryClient: QueryClient, - params: { - id: string; - selection: SelectionConfig; - } -): Promise { - const args = buildSelectionArgs(params.selection); - await queryClient.prefetchQuery({ - queryKey: orgFunctionExecutionLogKeys.detail(params.id), - queryFn: () => - getClient() - .orgFunctionExecutionLog.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - }); -} diff --git a/sdk/constructive-react/src/compute/hooks/queries/useOrgFunctionExecutionLogsQuery.ts b/sdk/constructive-react/src/compute/hooks/queries/useOrgFunctionExecutionLogsQuery.ts deleted file mode 100644 index d2fafbc29a..0000000000 --- a/sdk/constructive-react/src/compute/hooks/queries/useOrgFunctionExecutionLogsQuery.ts +++ /dev/null @@ -1,182 +0,0 @@ -/** - * Function execution logs — structured console output per invocation - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildListSelectionArgs } from '../selection'; -import type { ListSelectionConfig } from '../selection'; -import { orgFunctionExecutionLogKeys } from '../query-keys'; -import type { - OrgFunctionExecutionLogSelect, - OrgFunctionExecutionLogWithRelations, - OrgFunctionExecutionLogFilter, - OrgFunctionExecutionLogOrderBy, -} from '../../orm/input-types'; -import type { - FindManyArgs, - InferSelectResult, - ConnectionResult, - HookStrictSelect, -} from '../../orm/select-types'; -export type { - OrgFunctionExecutionLogSelect, - OrgFunctionExecutionLogWithRelations, - OrgFunctionExecutionLogFilter, - OrgFunctionExecutionLogOrderBy, -} from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const orgFunctionExecutionLogsQueryKey = orgFunctionExecutionLogKeys.list; -/** - * Function execution logs — structured console output per invocation - * - * @example - * ```tsx - * const { data, isLoading } = useOrgFunctionExecutionLogsQuery({ - * selection: { - * fields: { id: true, name: true }, - * where: { name: { equalTo: "example" } }, - * orderBy: ['CREATED_AT_DESC'], - * first: 10, - * }, - * }); - * ``` - */ -export function useOrgFunctionExecutionLogsQuery< - S extends OrgFunctionExecutionLogSelect, - TData = { - orgFunctionExecutionLogs: ConnectionResult< - InferSelectResult - >; - }, ->( - params: { - selection: { - fields: S; - } & Omit< - ListSelectionConfig, - 'fields' - > & - HookStrictSelect, OrgFunctionExecutionLogSelect>; - } & Omit< - UseQueryOptions< - { - orgFunctionExecutionLogs: ConnectionResult< - InferSelectResult - >; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useOrgFunctionExecutionLogsQuery( - params: { - selection: ListSelectionConfig< - OrgFunctionExecutionLogSelect, - OrgFunctionExecutionLogFilter, - OrgFunctionExecutionLogOrderBy - >; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildListSelectionArgs< - OrgFunctionExecutionLogSelect, - OrgFunctionExecutionLogFilter, - OrgFunctionExecutionLogOrderBy - >(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: orgFunctionExecutionLogKeys.list(args), - queryFn: () => getClient().orgFunctionExecutionLog.findMany(args).unwrap(), - ...queryOptions, - }); -} -/** - * Function execution logs — structured console output per invocation - * - * @example - * ```ts - * const data = await fetchOrgFunctionExecutionLogsQuery({ - * selection: { - * fields: { id: true }, - * first: 10, - * }, - * }); - * ``` - */ -export async function fetchOrgFunctionExecutionLogsQuery< - S extends OrgFunctionExecutionLogSelect, ->(params: { - selection: { - fields: S; - } & Omit< - ListSelectionConfig, - 'fields' - > & - HookStrictSelect, OrgFunctionExecutionLogSelect>; -}): Promise<{ - orgFunctionExecutionLogs: ConnectionResult< - InferSelectResult - >; -}>; -export async function fetchOrgFunctionExecutionLogsQuery(params: { - selection: ListSelectionConfig< - OrgFunctionExecutionLogSelect, - OrgFunctionExecutionLogFilter, - OrgFunctionExecutionLogOrderBy - >; -}) { - const args = buildListSelectionArgs< - OrgFunctionExecutionLogSelect, - OrgFunctionExecutionLogFilter, - OrgFunctionExecutionLogOrderBy - >(params.selection); - return getClient().orgFunctionExecutionLog.findMany(args).unwrap(); -} -/** - * Function execution logs — structured console output per invocation - * - * @example - * ```ts - * await prefetchOrgFunctionExecutionLogsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); - * ``` - */ -export async function prefetchOrgFunctionExecutionLogsQuery< - S extends OrgFunctionExecutionLogSelect, ->( - queryClient: QueryClient, - params: { - selection: { - fields: S; - } & Omit< - ListSelectionConfig, - 'fields' - > & - HookStrictSelect, OrgFunctionExecutionLogSelect>; - } -): Promise; -export async function prefetchOrgFunctionExecutionLogsQuery( - queryClient: QueryClient, - params: { - selection: ListSelectionConfig< - OrgFunctionExecutionLogSelect, - OrgFunctionExecutionLogFilter, - OrgFunctionExecutionLogOrderBy - >; - } -): Promise { - const args = buildListSelectionArgs< - OrgFunctionExecutionLogSelect, - OrgFunctionExecutionLogFilter, - OrgFunctionExecutionLogOrderBy - >(params.selection); - await queryClient.prefetchQuery({ - queryKey: orgFunctionExecutionLogKeys.list(args), - queryFn: () => getClient().orgFunctionExecutionLog.findMany(args).unwrap(), - }); -} diff --git a/sdk/constructive-react/src/compute/hooks/queries/useOrgFunctionInvocationsQuery.ts b/sdk/constructive-react/src/compute/hooks/queries/useOrgFunctionInvocationsQuery.ts deleted file mode 100644 index 66c2a93144..0000000000 --- a/sdk/constructive-react/src/compute/hooks/queries/useOrgFunctionInvocationsQuery.ts +++ /dev/null @@ -1,180 +0,0 @@ -/** - * Function invocation log — INSERT to call a function (business-layer, metered). Linked to definitions by task_identifier string. - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildListSelectionArgs } from '../selection'; -import type { ListSelectionConfig } from '../selection'; -import { orgFunctionInvocationKeys } from '../query-keys'; -import type { - OrgFunctionInvocationSelect, - OrgFunctionInvocationWithRelations, - OrgFunctionInvocationFilter, - OrgFunctionInvocationOrderBy, -} from '../../orm/input-types'; -import type { - FindManyArgs, - InferSelectResult, - ConnectionResult, - HookStrictSelect, -} from '../../orm/select-types'; -export type { - OrgFunctionInvocationSelect, - OrgFunctionInvocationWithRelations, - OrgFunctionInvocationFilter, - OrgFunctionInvocationOrderBy, -} from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const orgFunctionInvocationsQueryKey = orgFunctionInvocationKeys.list; -/** - * Function invocation log — INSERT to call a function (business-layer, metered). Linked to definitions by task_identifier string. - * - * @example - * ```tsx - * const { data, isLoading } = useOrgFunctionInvocationsQuery({ - * selection: { - * fields: { id: true, name: true }, - * where: { name: { equalTo: "example" } }, - * orderBy: ['CREATED_AT_DESC'], - * first: 10, - * }, - * }); - * ``` - */ -export function useOrgFunctionInvocationsQuery< - S extends OrgFunctionInvocationSelect, - TData = { - orgFunctionInvocations: ConnectionResult< - InferSelectResult - >; - }, ->( - params: { - selection: { - fields: S; - } & Omit< - ListSelectionConfig, - 'fields' - > & - HookStrictSelect, OrgFunctionInvocationSelect>; - } & Omit< - UseQueryOptions< - { - orgFunctionInvocations: ConnectionResult< - InferSelectResult - >; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useOrgFunctionInvocationsQuery( - params: { - selection: ListSelectionConfig< - OrgFunctionInvocationSelect, - OrgFunctionInvocationFilter, - OrgFunctionInvocationOrderBy - >; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildListSelectionArgs< - OrgFunctionInvocationSelect, - OrgFunctionInvocationFilter, - OrgFunctionInvocationOrderBy - >(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: orgFunctionInvocationKeys.list(args), - queryFn: () => getClient().orgFunctionInvocation.findMany(args).unwrap(), - ...queryOptions, - }); -} -/** - * Function invocation log — INSERT to call a function (business-layer, metered). Linked to definitions by task_identifier string. - * - * @example - * ```ts - * const data = await fetchOrgFunctionInvocationsQuery({ - * selection: { - * fields: { id: true }, - * first: 10, - * }, - * }); - * ``` - */ -export async function fetchOrgFunctionInvocationsQuery< - S extends OrgFunctionInvocationSelect, ->(params: { - selection: { - fields: S; - } & Omit< - ListSelectionConfig, - 'fields' - > & - HookStrictSelect, OrgFunctionInvocationSelect>; -}): Promise<{ - orgFunctionInvocations: ConnectionResult< - InferSelectResult - >; -}>; -export async function fetchOrgFunctionInvocationsQuery(params: { - selection: ListSelectionConfig< - OrgFunctionInvocationSelect, - OrgFunctionInvocationFilter, - OrgFunctionInvocationOrderBy - >; -}) { - const args = buildListSelectionArgs< - OrgFunctionInvocationSelect, - OrgFunctionInvocationFilter, - OrgFunctionInvocationOrderBy - >(params.selection); - return getClient().orgFunctionInvocation.findMany(args).unwrap(); -} -/** - * Function invocation log — INSERT to call a function (business-layer, metered). Linked to definitions by task_identifier string. - * - * @example - * ```ts - * await prefetchOrgFunctionInvocationsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); - * ``` - */ -export async function prefetchOrgFunctionInvocationsQuery( - queryClient: QueryClient, - params: { - selection: { - fields: S; - } & Omit< - ListSelectionConfig, - 'fields' - > & - HookStrictSelect, OrgFunctionInvocationSelect>; - } -): Promise; -export async function prefetchOrgFunctionInvocationsQuery( - queryClient: QueryClient, - params: { - selection: ListSelectionConfig< - OrgFunctionInvocationSelect, - OrgFunctionInvocationFilter, - OrgFunctionInvocationOrderBy - >; - } -): Promise { - const args = buildListSelectionArgs< - OrgFunctionInvocationSelect, - OrgFunctionInvocationFilter, - OrgFunctionInvocationOrderBy - >(params.selection); - await queryClient.prefetchQuery({ - queryKey: orgFunctionInvocationKeys.list(args), - queryFn: () => getClient().orgFunctionInvocation.findMany(args).unwrap(), - }); -} diff --git a/sdk/constructive-react/src/compute/hooks/queries/usePlatformFunctionApiBindingQuery.ts b/sdk/constructive-react/src/compute/hooks/queries/usePlatformFunctionApiBindingQuery.ts new file mode 100644 index 0000000000..4b32c0592a --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/queries/usePlatformFunctionApiBindingQuery.ts @@ -0,0 +1,154 @@ +/** + * Join table binding function definitions to API endpoints with per-binding alias and config + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useQuery } from '@tanstack/react-query'; +import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { platformFunctionApiBindingKeys } from '../query-keys'; +import type { + PlatformFunctionApiBindingSelect, + PlatformFunctionApiBindingWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlatformFunctionApiBindingSelect, + PlatformFunctionApiBindingWithRelations, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const platformFunctionApiBindingQueryKey = platformFunctionApiBindingKeys.detail; +/** + * Join table binding function definitions to API endpoints with per-binding alias and config + * + * @example + * ```tsx + * const { data, isLoading } = usePlatformFunctionApiBindingQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function usePlatformFunctionApiBindingQuery< + S extends PlatformFunctionApiBindingSelect, + TData = { + platformFunctionApiBinding: InferSelectResult< + PlatformFunctionApiBindingWithRelations, + S + > | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, PlatformFunctionApiBindingSelect>; + } & Omit< + UseQueryOptions< + { + platformFunctionApiBinding: InferSelectResult< + PlatformFunctionApiBindingWithRelations, + S + > | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function usePlatformFunctionApiBindingQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: platformFunctionApiBindingKeys.detail(params.id), + queryFn: () => + getClient() + .platformFunctionApiBinding.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Join table binding function definitions to API endpoints with per-binding alias and config + * + * @example + * ```ts + * const data = await fetchPlatformFunctionApiBindingQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchPlatformFunctionApiBindingQuery< + S extends PlatformFunctionApiBindingSelect, +>(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, PlatformFunctionApiBindingSelect>; +}): Promise<{ + platformFunctionApiBinding: InferSelectResult | null; +}>; +export async function fetchPlatformFunctionApiBindingQuery(params: { + id: string; + selection: SelectionConfig; +}): Promise { + const args = buildSelectionArgs(params.selection); + return getClient() + .platformFunctionApiBinding.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Join table binding function definitions to API endpoints with per-binding alias and config + * + * @example + * ```ts + * await prefetchPlatformFunctionApiBindingQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchPlatformFunctionApiBindingQuery< + S extends PlatformFunctionApiBindingSelect, +>( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, PlatformFunctionApiBindingSelect>; + } +): Promise; +export async function prefetchPlatformFunctionApiBindingQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: platformFunctionApiBindingKeys.detail(params.id), + queryFn: () => + getClient() + .platformFunctionApiBinding.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/queries/usePlatformFunctionApiBindingsQuery.ts b/sdk/constructive-react/src/compute/hooks/queries/usePlatformFunctionApiBindingsQuery.ts new file mode 100644 index 0000000000..cd2c01b437 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/queries/usePlatformFunctionApiBindingsQuery.ts @@ -0,0 +1,182 @@ +/** + * Join table binding function definitions to API endpoints with per-binding alias and config + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useQuery } from '@tanstack/react-query'; +import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildListSelectionArgs } from '../selection'; +import type { ListSelectionConfig } from '../selection'; +import { platformFunctionApiBindingKeys } from '../query-keys'; +import type { + PlatformFunctionApiBindingSelect, + PlatformFunctionApiBindingWithRelations, + PlatformFunctionApiBindingFilter, + PlatformFunctionApiBindingOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + PlatformFunctionApiBindingSelect, + PlatformFunctionApiBindingWithRelations, + PlatformFunctionApiBindingFilter, + PlatformFunctionApiBindingOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const platformFunctionApiBindingsQueryKey = platformFunctionApiBindingKeys.list; +/** + * Join table binding function definitions to API endpoints with per-binding alias and config + * + * @example + * ```tsx + * const { data, isLoading } = usePlatformFunctionApiBindingsQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function usePlatformFunctionApiBindingsQuery< + S extends PlatformFunctionApiBindingSelect, + TData = { + platformFunctionApiBindings: ConnectionResult< + InferSelectResult + >; + }, +>( + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, PlatformFunctionApiBindingSelect>; + } & Omit< + UseQueryOptions< + { + platformFunctionApiBindings: ConnectionResult< + InferSelectResult + >; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function usePlatformFunctionApiBindingsQuery( + params: { + selection: ListSelectionConfig< + PlatformFunctionApiBindingSelect, + PlatformFunctionApiBindingFilter, + PlatformFunctionApiBindingOrderBy + >; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + PlatformFunctionApiBindingSelect, + PlatformFunctionApiBindingFilter, + PlatformFunctionApiBindingOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: platformFunctionApiBindingKeys.list(args), + queryFn: () => getClient().platformFunctionApiBinding.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Join table binding function definitions to API endpoints with per-binding alias and config + * + * @example + * ```ts + * const data = await fetchPlatformFunctionApiBindingsQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchPlatformFunctionApiBindingsQuery< + S extends PlatformFunctionApiBindingSelect, +>(params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, PlatformFunctionApiBindingSelect>; +}): Promise<{ + platformFunctionApiBindings: ConnectionResult< + InferSelectResult + >; +}>; +export async function fetchPlatformFunctionApiBindingsQuery(params: { + selection: ListSelectionConfig< + PlatformFunctionApiBindingSelect, + PlatformFunctionApiBindingFilter, + PlatformFunctionApiBindingOrderBy + >; +}) { + const args = buildListSelectionArgs< + PlatformFunctionApiBindingSelect, + PlatformFunctionApiBindingFilter, + PlatformFunctionApiBindingOrderBy + >(params.selection); + return getClient().platformFunctionApiBinding.findMany(args).unwrap(); +} +/** + * Join table binding function definitions to API endpoints with per-binding alias and config + * + * @example + * ```ts + * await prefetchPlatformFunctionApiBindingsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchPlatformFunctionApiBindingsQuery< + S extends PlatformFunctionApiBindingSelect, +>( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, PlatformFunctionApiBindingSelect>; + } +): Promise; +export async function prefetchPlatformFunctionApiBindingsQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig< + PlatformFunctionApiBindingSelect, + PlatformFunctionApiBindingFilter, + PlatformFunctionApiBindingOrderBy + >; + } +): Promise { + const args = buildListSelectionArgs< + PlatformFunctionApiBindingSelect, + PlatformFunctionApiBindingFilter, + PlatformFunctionApiBindingOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: platformFunctionApiBindingKeys.list(args), + queryFn: () => getClient().platformFunctionApiBinding.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/queries/usePlatformFunctionDefinitionQuery.ts b/sdk/constructive-react/src/compute/hooks/queries/usePlatformFunctionDefinitionQuery.ts new file mode 100644 index 0000000000..0837645bb4 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/queries/usePlatformFunctionDefinitionQuery.ts @@ -0,0 +1,154 @@ +/** + * Function definitions — registered cloud functions with routing, queue, and retry configuration + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useQuery } from '@tanstack/react-query'; +import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { platformFunctionDefinitionKeys } from '../query-keys'; +import type { + PlatformFunctionDefinitionSelect, + PlatformFunctionDefinitionWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlatformFunctionDefinitionSelect, + PlatformFunctionDefinitionWithRelations, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const platformFunctionDefinitionQueryKey = platformFunctionDefinitionKeys.detail; +/** + * Function definitions — registered cloud functions with routing, queue, and retry configuration + * + * @example + * ```tsx + * const { data, isLoading } = usePlatformFunctionDefinitionQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function usePlatformFunctionDefinitionQuery< + S extends PlatformFunctionDefinitionSelect, + TData = { + platformFunctionDefinition: InferSelectResult< + PlatformFunctionDefinitionWithRelations, + S + > | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, PlatformFunctionDefinitionSelect>; + } & Omit< + UseQueryOptions< + { + platformFunctionDefinition: InferSelectResult< + PlatformFunctionDefinitionWithRelations, + S + > | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function usePlatformFunctionDefinitionQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: platformFunctionDefinitionKeys.detail(params.id), + queryFn: () => + getClient() + .platformFunctionDefinition.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Function definitions — registered cloud functions with routing, queue, and retry configuration + * + * @example + * ```ts + * const data = await fetchPlatformFunctionDefinitionQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchPlatformFunctionDefinitionQuery< + S extends PlatformFunctionDefinitionSelect, +>(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, PlatformFunctionDefinitionSelect>; +}): Promise<{ + platformFunctionDefinition: InferSelectResult | null; +}>; +export async function fetchPlatformFunctionDefinitionQuery(params: { + id: string; + selection: SelectionConfig; +}): Promise { + const args = buildSelectionArgs(params.selection); + return getClient() + .platformFunctionDefinition.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Function definitions — registered cloud functions with routing, queue, and retry configuration + * + * @example + * ```ts + * await prefetchPlatformFunctionDefinitionQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchPlatformFunctionDefinitionQuery< + S extends PlatformFunctionDefinitionSelect, +>( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, PlatformFunctionDefinitionSelect>; + } +): Promise; +export async function prefetchPlatformFunctionDefinitionQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: platformFunctionDefinitionKeys.detail(params.id), + queryFn: () => + getClient() + .platformFunctionDefinition.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/queries/usePlatformFunctionDefinitionsQuery.ts b/sdk/constructive-react/src/compute/hooks/queries/usePlatformFunctionDefinitionsQuery.ts new file mode 100644 index 0000000000..0861333a01 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/queries/usePlatformFunctionDefinitionsQuery.ts @@ -0,0 +1,182 @@ +/** + * Function definitions — registered cloud functions with routing, queue, and retry configuration + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useQuery } from '@tanstack/react-query'; +import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildListSelectionArgs } from '../selection'; +import type { ListSelectionConfig } from '../selection'; +import { platformFunctionDefinitionKeys } from '../query-keys'; +import type { + PlatformFunctionDefinitionSelect, + PlatformFunctionDefinitionWithRelations, + PlatformFunctionDefinitionFilter, + PlatformFunctionDefinitionOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + PlatformFunctionDefinitionSelect, + PlatformFunctionDefinitionWithRelations, + PlatformFunctionDefinitionFilter, + PlatformFunctionDefinitionOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const platformFunctionDefinitionsQueryKey = platformFunctionDefinitionKeys.list; +/** + * Function definitions — registered cloud functions with routing, queue, and retry configuration + * + * @example + * ```tsx + * const { data, isLoading } = usePlatformFunctionDefinitionsQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function usePlatformFunctionDefinitionsQuery< + S extends PlatformFunctionDefinitionSelect, + TData = { + platformFunctionDefinitions: ConnectionResult< + InferSelectResult + >; + }, +>( + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, PlatformFunctionDefinitionSelect>; + } & Omit< + UseQueryOptions< + { + platformFunctionDefinitions: ConnectionResult< + InferSelectResult + >; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function usePlatformFunctionDefinitionsQuery( + params: { + selection: ListSelectionConfig< + PlatformFunctionDefinitionSelect, + PlatformFunctionDefinitionFilter, + PlatformFunctionDefinitionOrderBy + >; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + PlatformFunctionDefinitionSelect, + PlatformFunctionDefinitionFilter, + PlatformFunctionDefinitionOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: platformFunctionDefinitionKeys.list(args), + queryFn: () => getClient().platformFunctionDefinition.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Function definitions — registered cloud functions with routing, queue, and retry configuration + * + * @example + * ```ts + * const data = await fetchPlatformFunctionDefinitionsQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchPlatformFunctionDefinitionsQuery< + S extends PlatformFunctionDefinitionSelect, +>(params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, PlatformFunctionDefinitionSelect>; +}): Promise<{ + platformFunctionDefinitions: ConnectionResult< + InferSelectResult + >; +}>; +export async function fetchPlatformFunctionDefinitionsQuery(params: { + selection: ListSelectionConfig< + PlatformFunctionDefinitionSelect, + PlatformFunctionDefinitionFilter, + PlatformFunctionDefinitionOrderBy + >; +}) { + const args = buildListSelectionArgs< + PlatformFunctionDefinitionSelect, + PlatformFunctionDefinitionFilter, + PlatformFunctionDefinitionOrderBy + >(params.selection); + return getClient().platformFunctionDefinition.findMany(args).unwrap(); +} +/** + * Function definitions — registered cloud functions with routing, queue, and retry configuration + * + * @example + * ```ts + * await prefetchPlatformFunctionDefinitionsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchPlatformFunctionDefinitionsQuery< + S extends PlatformFunctionDefinitionSelect, +>( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, PlatformFunctionDefinitionSelect>; + } +): Promise; +export async function prefetchPlatformFunctionDefinitionsQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig< + PlatformFunctionDefinitionSelect, + PlatformFunctionDefinitionFilter, + PlatformFunctionDefinitionOrderBy + >; + } +): Promise { + const args = buildListSelectionArgs< + PlatformFunctionDefinitionSelect, + PlatformFunctionDefinitionFilter, + PlatformFunctionDefinitionOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: platformFunctionDefinitionKeys.list(args), + queryFn: () => getClient().platformFunctionDefinition.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/queries/usePlatformFunctionDeploymentEventQuery.ts b/sdk/constructive-react/src/compute/hooks/queries/usePlatformFunctionDeploymentEventQuery.ts new file mode 100644 index 0000000000..27af3849ce --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/queries/usePlatformFunctionDeploymentEventQuery.ts @@ -0,0 +1,157 @@ +/** + * Deployment lifecycle events — audit log of provisioning, scaling, and failure events + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useQuery } from '@tanstack/react-query'; +import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { platformFunctionDeploymentEventKeys } from '../query-keys'; +import type { + PlatformFunctionDeploymentEventSelect, + PlatformFunctionDeploymentEventWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlatformFunctionDeploymentEventSelect, + PlatformFunctionDeploymentEventWithRelations, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const platformFunctionDeploymentEventQueryKey = platformFunctionDeploymentEventKeys.detail; +/** + * Deployment lifecycle events — audit log of provisioning, scaling, and failure events + * + * @example + * ```tsx + * const { data, isLoading } = usePlatformFunctionDeploymentEventQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function usePlatformFunctionDeploymentEventQuery< + S extends PlatformFunctionDeploymentEventSelect, + TData = { + platformFunctionDeploymentEvent: InferSelectResult< + PlatformFunctionDeploymentEventWithRelations, + S + > | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, PlatformFunctionDeploymentEventSelect>; + } & Omit< + UseQueryOptions< + { + platformFunctionDeploymentEvent: InferSelectResult< + PlatformFunctionDeploymentEventWithRelations, + S + > | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function usePlatformFunctionDeploymentEventQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: platformFunctionDeploymentEventKeys.detail(params.id), + queryFn: () => + getClient() + .platformFunctionDeploymentEvent.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Deployment lifecycle events — audit log of provisioning, scaling, and failure events + * + * @example + * ```ts + * const data = await fetchPlatformFunctionDeploymentEventQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchPlatformFunctionDeploymentEventQuery< + S extends PlatformFunctionDeploymentEventSelect, +>(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, PlatformFunctionDeploymentEventSelect>; +}): Promise<{ + platformFunctionDeploymentEvent: InferSelectResult< + PlatformFunctionDeploymentEventWithRelations, + S + > | null; +}>; +export async function fetchPlatformFunctionDeploymentEventQuery(params: { + id: string; + selection: SelectionConfig; +}): Promise { + const args = buildSelectionArgs(params.selection); + return getClient() + .platformFunctionDeploymentEvent.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Deployment lifecycle events — audit log of provisioning, scaling, and failure events + * + * @example + * ```ts + * await prefetchPlatformFunctionDeploymentEventQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchPlatformFunctionDeploymentEventQuery< + S extends PlatformFunctionDeploymentEventSelect, +>( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, PlatformFunctionDeploymentEventSelect>; + } +): Promise; +export async function prefetchPlatformFunctionDeploymentEventQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: platformFunctionDeploymentEventKeys.detail(params.id), + queryFn: () => + getClient() + .platformFunctionDeploymentEvent.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/queries/usePlatformFunctionDeploymentEventsQuery.ts b/sdk/constructive-react/src/compute/hooks/queries/usePlatformFunctionDeploymentEventsQuery.ts new file mode 100644 index 0000000000..07de6da60f --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/queries/usePlatformFunctionDeploymentEventsQuery.ts @@ -0,0 +1,194 @@ +/** + * Deployment lifecycle events — audit log of provisioning, scaling, and failure events + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useQuery } from '@tanstack/react-query'; +import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildListSelectionArgs } from '../selection'; +import type { ListSelectionConfig } from '../selection'; +import { platformFunctionDeploymentEventKeys } from '../query-keys'; +import type { + PlatformFunctionDeploymentEventSelect, + PlatformFunctionDeploymentEventWithRelations, + PlatformFunctionDeploymentEventFilter, + PlatformFunctionDeploymentEventOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + PlatformFunctionDeploymentEventSelect, + PlatformFunctionDeploymentEventWithRelations, + PlatformFunctionDeploymentEventFilter, + PlatformFunctionDeploymentEventOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const platformFunctionDeploymentEventsQueryKey = platformFunctionDeploymentEventKeys.list; +/** + * Deployment lifecycle events — audit log of provisioning, scaling, and failure events + * + * @example + * ```tsx + * const { data, isLoading } = usePlatformFunctionDeploymentEventsQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function usePlatformFunctionDeploymentEventsQuery< + S extends PlatformFunctionDeploymentEventSelect, + TData = { + platformFunctionDeploymentEvents: ConnectionResult< + InferSelectResult + >; + }, +>( + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig< + S, + PlatformFunctionDeploymentEventFilter, + PlatformFunctionDeploymentEventOrderBy + >, + 'fields' + > & + HookStrictSelect, PlatformFunctionDeploymentEventSelect>; + } & Omit< + UseQueryOptions< + { + platformFunctionDeploymentEvents: ConnectionResult< + InferSelectResult + >; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function usePlatformFunctionDeploymentEventsQuery( + params: { + selection: ListSelectionConfig< + PlatformFunctionDeploymentEventSelect, + PlatformFunctionDeploymentEventFilter, + PlatformFunctionDeploymentEventOrderBy + >; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + PlatformFunctionDeploymentEventSelect, + PlatformFunctionDeploymentEventFilter, + PlatformFunctionDeploymentEventOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: platformFunctionDeploymentEventKeys.list(args), + queryFn: () => getClient().platformFunctionDeploymentEvent.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Deployment lifecycle events — audit log of provisioning, scaling, and failure events + * + * @example + * ```ts + * const data = await fetchPlatformFunctionDeploymentEventsQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchPlatformFunctionDeploymentEventsQuery< + S extends PlatformFunctionDeploymentEventSelect, +>(params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig< + S, + PlatformFunctionDeploymentEventFilter, + PlatformFunctionDeploymentEventOrderBy + >, + 'fields' + > & + HookStrictSelect, PlatformFunctionDeploymentEventSelect>; +}): Promise<{ + platformFunctionDeploymentEvents: ConnectionResult< + InferSelectResult + >; +}>; +export async function fetchPlatformFunctionDeploymentEventsQuery(params: { + selection: ListSelectionConfig< + PlatformFunctionDeploymentEventSelect, + PlatformFunctionDeploymentEventFilter, + PlatformFunctionDeploymentEventOrderBy + >; +}) { + const args = buildListSelectionArgs< + PlatformFunctionDeploymentEventSelect, + PlatformFunctionDeploymentEventFilter, + PlatformFunctionDeploymentEventOrderBy + >(params.selection); + return getClient().platformFunctionDeploymentEvent.findMany(args).unwrap(); +} +/** + * Deployment lifecycle events — audit log of provisioning, scaling, and failure events + * + * @example + * ```ts + * await prefetchPlatformFunctionDeploymentEventsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchPlatformFunctionDeploymentEventsQuery< + S extends PlatformFunctionDeploymentEventSelect, +>( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig< + S, + PlatformFunctionDeploymentEventFilter, + PlatformFunctionDeploymentEventOrderBy + >, + 'fields' + > & + HookStrictSelect, PlatformFunctionDeploymentEventSelect>; + } +): Promise; +export async function prefetchPlatformFunctionDeploymentEventsQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig< + PlatformFunctionDeploymentEventSelect, + PlatformFunctionDeploymentEventFilter, + PlatformFunctionDeploymentEventOrderBy + >; + } +): Promise { + const args = buildListSelectionArgs< + PlatformFunctionDeploymentEventSelect, + PlatformFunctionDeploymentEventFilter, + PlatformFunctionDeploymentEventOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: platformFunctionDeploymentEventKeys.list(args), + queryFn: () => getClient().platformFunctionDeploymentEvent.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/queries/usePlatformFunctionDeploymentQuery.ts b/sdk/constructive-react/src/compute/hooks/queries/usePlatformFunctionDeploymentQuery.ts new file mode 100644 index 0000000000..5f33024b85 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/queries/usePlatformFunctionDeploymentQuery.ts @@ -0,0 +1,154 @@ +/** + * Function deployment bindings — ties a handler image to a namespace for Knative provisioning and routing (one row per handler image per namespace) + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useQuery } from '@tanstack/react-query'; +import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { platformFunctionDeploymentKeys } from '../query-keys'; +import type { + PlatformFunctionDeploymentSelect, + PlatformFunctionDeploymentWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlatformFunctionDeploymentSelect, + PlatformFunctionDeploymentWithRelations, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const platformFunctionDeploymentQueryKey = platformFunctionDeploymentKeys.detail; +/** + * Function deployment bindings — ties a handler image to a namespace for Knative provisioning and routing (one row per handler image per namespace) + * + * @example + * ```tsx + * const { data, isLoading } = usePlatformFunctionDeploymentQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function usePlatformFunctionDeploymentQuery< + S extends PlatformFunctionDeploymentSelect, + TData = { + platformFunctionDeployment: InferSelectResult< + PlatformFunctionDeploymentWithRelations, + S + > | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, PlatformFunctionDeploymentSelect>; + } & Omit< + UseQueryOptions< + { + platformFunctionDeployment: InferSelectResult< + PlatformFunctionDeploymentWithRelations, + S + > | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function usePlatformFunctionDeploymentQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: platformFunctionDeploymentKeys.detail(params.id), + queryFn: () => + getClient() + .platformFunctionDeployment.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Function deployment bindings — ties a handler image to a namespace for Knative provisioning and routing (one row per handler image per namespace) + * + * @example + * ```ts + * const data = await fetchPlatformFunctionDeploymentQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchPlatformFunctionDeploymentQuery< + S extends PlatformFunctionDeploymentSelect, +>(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, PlatformFunctionDeploymentSelect>; +}): Promise<{ + platformFunctionDeployment: InferSelectResult | null; +}>; +export async function fetchPlatformFunctionDeploymentQuery(params: { + id: string; + selection: SelectionConfig; +}): Promise { + const args = buildSelectionArgs(params.selection); + return getClient() + .platformFunctionDeployment.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Function deployment bindings — ties a handler image to a namespace for Knative provisioning and routing (one row per handler image per namespace) + * + * @example + * ```ts + * await prefetchPlatformFunctionDeploymentQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchPlatformFunctionDeploymentQuery< + S extends PlatformFunctionDeploymentSelect, +>( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, PlatformFunctionDeploymentSelect>; + } +): Promise; +export async function prefetchPlatformFunctionDeploymentQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: platformFunctionDeploymentKeys.detail(params.id), + queryFn: () => + getClient() + .platformFunctionDeployment.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/queries/usePlatformFunctionDeploymentsQuery.ts b/sdk/constructive-react/src/compute/hooks/queries/usePlatformFunctionDeploymentsQuery.ts new file mode 100644 index 0000000000..e63e227ff3 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/queries/usePlatformFunctionDeploymentsQuery.ts @@ -0,0 +1,182 @@ +/** + * Function deployment bindings — ties a handler image to a namespace for Knative provisioning and routing (one row per handler image per namespace) + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useQuery } from '@tanstack/react-query'; +import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildListSelectionArgs } from '../selection'; +import type { ListSelectionConfig } from '../selection'; +import { platformFunctionDeploymentKeys } from '../query-keys'; +import type { + PlatformFunctionDeploymentSelect, + PlatformFunctionDeploymentWithRelations, + PlatformFunctionDeploymentFilter, + PlatformFunctionDeploymentOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + PlatformFunctionDeploymentSelect, + PlatformFunctionDeploymentWithRelations, + PlatformFunctionDeploymentFilter, + PlatformFunctionDeploymentOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const platformFunctionDeploymentsQueryKey = platformFunctionDeploymentKeys.list; +/** + * Function deployment bindings — ties a handler image to a namespace for Knative provisioning and routing (one row per handler image per namespace) + * + * @example + * ```tsx + * const { data, isLoading } = usePlatformFunctionDeploymentsQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function usePlatformFunctionDeploymentsQuery< + S extends PlatformFunctionDeploymentSelect, + TData = { + platformFunctionDeployments: ConnectionResult< + InferSelectResult + >; + }, +>( + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, PlatformFunctionDeploymentSelect>; + } & Omit< + UseQueryOptions< + { + platformFunctionDeployments: ConnectionResult< + InferSelectResult + >; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function usePlatformFunctionDeploymentsQuery( + params: { + selection: ListSelectionConfig< + PlatformFunctionDeploymentSelect, + PlatformFunctionDeploymentFilter, + PlatformFunctionDeploymentOrderBy + >; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + PlatformFunctionDeploymentSelect, + PlatformFunctionDeploymentFilter, + PlatformFunctionDeploymentOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: platformFunctionDeploymentKeys.list(args), + queryFn: () => getClient().platformFunctionDeployment.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Function deployment bindings — ties a handler image to a namespace for Knative provisioning and routing (one row per handler image per namespace) + * + * @example + * ```ts + * const data = await fetchPlatformFunctionDeploymentsQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchPlatformFunctionDeploymentsQuery< + S extends PlatformFunctionDeploymentSelect, +>(params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, PlatformFunctionDeploymentSelect>; +}): Promise<{ + platformFunctionDeployments: ConnectionResult< + InferSelectResult + >; +}>; +export async function fetchPlatformFunctionDeploymentsQuery(params: { + selection: ListSelectionConfig< + PlatformFunctionDeploymentSelect, + PlatformFunctionDeploymentFilter, + PlatformFunctionDeploymentOrderBy + >; +}) { + const args = buildListSelectionArgs< + PlatformFunctionDeploymentSelect, + PlatformFunctionDeploymentFilter, + PlatformFunctionDeploymentOrderBy + >(params.selection); + return getClient().platformFunctionDeployment.findMany(args).unwrap(); +} +/** + * Function deployment bindings — ties a handler image to a namespace for Knative provisioning and routing (one row per handler image per namespace) + * + * @example + * ```ts + * await prefetchPlatformFunctionDeploymentsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchPlatformFunctionDeploymentsQuery< + S extends PlatformFunctionDeploymentSelect, +>( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, PlatformFunctionDeploymentSelect>; + } +): Promise; +export async function prefetchPlatformFunctionDeploymentsQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig< + PlatformFunctionDeploymentSelect, + PlatformFunctionDeploymentFilter, + PlatformFunctionDeploymentOrderBy + >; + } +): Promise { + const args = buildListSelectionArgs< + PlatformFunctionDeploymentSelect, + PlatformFunctionDeploymentFilter, + PlatformFunctionDeploymentOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: platformFunctionDeploymentKeys.list(args), + queryFn: () => getClient().platformFunctionDeployment.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/queries/usePlatformFunctionExecutionLogQuery.ts b/sdk/constructive-react/src/compute/hooks/queries/usePlatformFunctionExecutionLogQuery.ts new file mode 100644 index 0000000000..728063f3eb --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/queries/usePlatformFunctionExecutionLogQuery.ts @@ -0,0 +1,157 @@ +/** + * Function execution logs — structured console output per invocation + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useQuery } from '@tanstack/react-query'; +import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { platformFunctionExecutionLogKeys } from '../query-keys'; +import type { + PlatformFunctionExecutionLogSelect, + PlatformFunctionExecutionLogWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlatformFunctionExecutionLogSelect, + PlatformFunctionExecutionLogWithRelations, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const platformFunctionExecutionLogQueryKey = platformFunctionExecutionLogKeys.detail; +/** + * Function execution logs — structured console output per invocation + * + * @example + * ```tsx + * const { data, isLoading } = usePlatformFunctionExecutionLogQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function usePlatformFunctionExecutionLogQuery< + S extends PlatformFunctionExecutionLogSelect, + TData = { + platformFunctionExecutionLog: InferSelectResult< + PlatformFunctionExecutionLogWithRelations, + S + > | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, PlatformFunctionExecutionLogSelect>; + } & Omit< + UseQueryOptions< + { + platformFunctionExecutionLog: InferSelectResult< + PlatformFunctionExecutionLogWithRelations, + S + > | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function usePlatformFunctionExecutionLogQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: platformFunctionExecutionLogKeys.detail(params.id), + queryFn: () => + getClient() + .platformFunctionExecutionLog.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Function execution logs — structured console output per invocation + * + * @example + * ```ts + * const data = await fetchPlatformFunctionExecutionLogQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchPlatformFunctionExecutionLogQuery< + S extends PlatformFunctionExecutionLogSelect, +>(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, PlatformFunctionExecutionLogSelect>; +}): Promise<{ + platformFunctionExecutionLog: InferSelectResult< + PlatformFunctionExecutionLogWithRelations, + S + > | null; +}>; +export async function fetchPlatformFunctionExecutionLogQuery(params: { + id: string; + selection: SelectionConfig; +}): Promise { + const args = buildSelectionArgs(params.selection); + return getClient() + .platformFunctionExecutionLog.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Function execution logs — structured console output per invocation + * + * @example + * ```ts + * await prefetchPlatformFunctionExecutionLogQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchPlatformFunctionExecutionLogQuery< + S extends PlatformFunctionExecutionLogSelect, +>( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, PlatformFunctionExecutionLogSelect>; + } +): Promise; +export async function prefetchPlatformFunctionExecutionLogQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: platformFunctionExecutionLogKeys.detail(params.id), + queryFn: () => + getClient() + .platformFunctionExecutionLog.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/queries/usePlatformFunctionExecutionLogsQuery.ts b/sdk/constructive-react/src/compute/hooks/queries/usePlatformFunctionExecutionLogsQuery.ts new file mode 100644 index 0000000000..4f8fa917ee --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/queries/usePlatformFunctionExecutionLogsQuery.ts @@ -0,0 +1,190 @@ +/** + * Function execution logs — structured console output per invocation + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useQuery } from '@tanstack/react-query'; +import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildListSelectionArgs } from '../selection'; +import type { ListSelectionConfig } from '../selection'; +import { platformFunctionExecutionLogKeys } from '../query-keys'; +import type { + PlatformFunctionExecutionLogSelect, + PlatformFunctionExecutionLogWithRelations, + PlatformFunctionExecutionLogFilter, + PlatformFunctionExecutionLogOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + PlatformFunctionExecutionLogSelect, + PlatformFunctionExecutionLogWithRelations, + PlatformFunctionExecutionLogFilter, + PlatformFunctionExecutionLogOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const platformFunctionExecutionLogsQueryKey = platformFunctionExecutionLogKeys.list; +/** + * Function execution logs — structured console output per invocation + * + * @example + * ```tsx + * const { data, isLoading } = usePlatformFunctionExecutionLogsQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function usePlatformFunctionExecutionLogsQuery< + S extends PlatformFunctionExecutionLogSelect, + TData = { + platformFunctionExecutionLogs: ConnectionResult< + InferSelectResult + >; + }, +>( + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig< + S, + PlatformFunctionExecutionLogFilter, + PlatformFunctionExecutionLogOrderBy + >, + 'fields' + > & + HookStrictSelect, PlatformFunctionExecutionLogSelect>; + } & Omit< + UseQueryOptions< + { + platformFunctionExecutionLogs: ConnectionResult< + InferSelectResult + >; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function usePlatformFunctionExecutionLogsQuery( + params: { + selection: ListSelectionConfig< + PlatformFunctionExecutionLogSelect, + PlatformFunctionExecutionLogFilter, + PlatformFunctionExecutionLogOrderBy + >; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + PlatformFunctionExecutionLogSelect, + PlatformFunctionExecutionLogFilter, + PlatformFunctionExecutionLogOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: platformFunctionExecutionLogKeys.list(args), + queryFn: () => getClient().platformFunctionExecutionLog.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Function execution logs — structured console output per invocation + * + * @example + * ```ts + * const data = await fetchPlatformFunctionExecutionLogsQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchPlatformFunctionExecutionLogsQuery< + S extends PlatformFunctionExecutionLogSelect, +>(params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, PlatformFunctionExecutionLogSelect>; +}): Promise<{ + platformFunctionExecutionLogs: ConnectionResult< + InferSelectResult + >; +}>; +export async function fetchPlatformFunctionExecutionLogsQuery(params: { + selection: ListSelectionConfig< + PlatformFunctionExecutionLogSelect, + PlatformFunctionExecutionLogFilter, + PlatformFunctionExecutionLogOrderBy + >; +}) { + const args = buildListSelectionArgs< + PlatformFunctionExecutionLogSelect, + PlatformFunctionExecutionLogFilter, + PlatformFunctionExecutionLogOrderBy + >(params.selection); + return getClient().platformFunctionExecutionLog.findMany(args).unwrap(); +} +/** + * Function execution logs — structured console output per invocation + * + * @example + * ```ts + * await prefetchPlatformFunctionExecutionLogsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchPlatformFunctionExecutionLogsQuery< + S extends PlatformFunctionExecutionLogSelect, +>( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig< + S, + PlatformFunctionExecutionLogFilter, + PlatformFunctionExecutionLogOrderBy + >, + 'fields' + > & + HookStrictSelect, PlatformFunctionExecutionLogSelect>; + } +): Promise; +export async function prefetchPlatformFunctionExecutionLogsQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig< + PlatformFunctionExecutionLogSelect, + PlatformFunctionExecutionLogFilter, + PlatformFunctionExecutionLogOrderBy + >; + } +): Promise { + const args = buildListSelectionArgs< + PlatformFunctionExecutionLogSelect, + PlatformFunctionExecutionLogFilter, + PlatformFunctionExecutionLogOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: platformFunctionExecutionLogKeys.list(args), + queryFn: () => getClient().platformFunctionExecutionLog.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/queries/useOrgFunctionInvocationQuery.ts b/sdk/constructive-react/src/compute/hooks/queries/usePlatformFunctionInvocationQuery.ts similarity index 52% rename from sdk/constructive-react/src/compute/hooks/queries/useOrgFunctionInvocationQuery.ts rename to sdk/constructive-react/src/compute/hooks/queries/usePlatformFunctionInvocationQuery.ts index 1268c6f367..985e4e6f90 100644 --- a/sdk/constructive-react/src/compute/hooks/queries/useOrgFunctionInvocationQuery.ts +++ b/sdk/constructive-react/src/compute/hooks/queries/usePlatformFunctionInvocationQuery.ts @@ -9,44 +9,50 @@ import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/rea import { getClient } from '../client'; import { buildSelectionArgs } from '../selection'; import type { SelectionConfig } from '../selection'; -import { orgFunctionInvocationKeys } from '../query-keys'; +import { platformFunctionInvocationKeys } from '../query-keys'; import type { - OrgFunctionInvocationSelect, - OrgFunctionInvocationWithRelations, + PlatformFunctionInvocationSelect, + PlatformFunctionInvocationWithRelations, } from '../../orm/input-types'; import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { - OrgFunctionInvocationSelect, - OrgFunctionInvocationWithRelations, + PlatformFunctionInvocationSelect, + PlatformFunctionInvocationWithRelations, } from '../../orm/input-types'; /** Query key factory - re-exported from query-keys.ts */ -export const orgFunctionInvocationQueryKey = orgFunctionInvocationKeys.detail; +export const platformFunctionInvocationQueryKey = platformFunctionInvocationKeys.detail; /** * Function invocation log — INSERT to call a function (business-layer, metered). Linked to definitions by task_identifier string. * * @example * ```tsx - * const { data, isLoading } = useOrgFunctionInvocationQuery({ + * const { data, isLoading } = usePlatformFunctionInvocationQuery({ * id: 'some-id', * selection: { fields: { id: true, name: true } }, * }); * ``` */ -export function useOrgFunctionInvocationQuery< - S extends OrgFunctionInvocationSelect, +export function usePlatformFunctionInvocationQuery< + S extends PlatformFunctionInvocationSelect, TData = { - orgFunctionInvocation: InferSelectResult | null; + platformFunctionInvocation: InferSelectResult< + PlatformFunctionInvocationWithRelations, + S + > | null; }, >( params: { id: string; selection: { fields: S; - } & HookStrictSelect, OrgFunctionInvocationSelect>; + } & HookStrictSelect, PlatformFunctionInvocationSelect>; } & Omit< UseQueryOptions< { - orgFunctionInvocation: InferSelectResult | null; + platformFunctionInvocation: InferSelectResult< + PlatformFunctionInvocationWithRelations, + S + > | null; }, Error, TData @@ -54,20 +60,20 @@ export function useOrgFunctionInvocationQuery< 'queryKey' | 'queryFn' > ): UseQueryResult; -export function useOrgFunctionInvocationQuery( +export function usePlatformFunctionInvocationQuery( params: { id: string; - selection: SelectionConfig; + selection: SelectionConfig; } & Omit, 'queryKey' | 'queryFn'> ) { - const args = buildSelectionArgs(params.selection); + const args = buildSelectionArgs(params.selection); const { selection: _selection, ...queryOptions } = params ?? {}; void _selection; return useQuery({ - queryKey: orgFunctionInvocationKeys.detail(params.id), + queryKey: platformFunctionInvocationKeys.detail(params.id), queryFn: () => getClient() - .orgFunctionInvocation.findOne({ + .platformFunctionInvocation.findOne({ id: params.id, select: args.select, }) @@ -80,29 +86,29 @@ export function useOrgFunctionInvocationQuery( * * @example * ```ts - * const data = await fetchOrgFunctionInvocationQuery({ + * const data = await fetchPlatformFunctionInvocationQuery({ * id: 'some-id', * selection: { fields: { id: true } }, * }); * ``` */ -export async function fetchOrgFunctionInvocationQuery< - S extends OrgFunctionInvocationSelect, +export async function fetchPlatformFunctionInvocationQuery< + S extends PlatformFunctionInvocationSelect, >(params: { id: string; selection: { fields: S; - } & HookStrictSelect, OrgFunctionInvocationSelect>; + } & HookStrictSelect, PlatformFunctionInvocationSelect>; }): Promise<{ - orgFunctionInvocation: InferSelectResult | null; + platformFunctionInvocation: InferSelectResult | null; }>; -export async function fetchOrgFunctionInvocationQuery(params: { +export async function fetchPlatformFunctionInvocationQuery(params: { id: string; - selection: SelectionConfig; + selection: SelectionConfig; }): Promise { - const args = buildSelectionArgs(params.selection); + const args = buildSelectionArgs(params.selection); return getClient() - .orgFunctionInvocation.findOne({ + .platformFunctionInvocation.findOne({ id: params.id, select: args.select, }) @@ -113,31 +119,33 @@ export async function fetchOrgFunctionInvocationQuery(params: { * * @example * ```ts - * await prefetchOrgFunctionInvocationQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * await prefetchPlatformFunctionInvocationQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); * ``` */ -export async function prefetchOrgFunctionInvocationQuery( +export async function prefetchPlatformFunctionInvocationQuery< + S extends PlatformFunctionInvocationSelect, +>( queryClient: QueryClient, params: { id: string; selection: { fields: S; - } & HookStrictSelect, OrgFunctionInvocationSelect>; + } & HookStrictSelect, PlatformFunctionInvocationSelect>; } ): Promise; -export async function prefetchOrgFunctionInvocationQuery( +export async function prefetchPlatformFunctionInvocationQuery( queryClient: QueryClient, params: { id: string; - selection: SelectionConfig; + selection: SelectionConfig; } ): Promise { - const args = buildSelectionArgs(params.selection); + const args = buildSelectionArgs(params.selection); await queryClient.prefetchQuery({ - queryKey: orgFunctionInvocationKeys.detail(params.id), + queryKey: platformFunctionInvocationKeys.detail(params.id), queryFn: () => getClient() - .orgFunctionInvocation.findOne({ + .platformFunctionInvocation.findOne({ id: params.id, select: args.select, }) diff --git a/sdk/constructive-react/src/compute/hooks/queries/usePlatformFunctionInvocationsQuery.ts b/sdk/constructive-react/src/compute/hooks/queries/usePlatformFunctionInvocationsQuery.ts new file mode 100644 index 0000000000..1dee167ac2 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/queries/usePlatformFunctionInvocationsQuery.ts @@ -0,0 +1,182 @@ +/** + * Function invocation log — INSERT to call a function (business-layer, metered). Linked to definitions by task_identifier string. + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useQuery } from '@tanstack/react-query'; +import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildListSelectionArgs } from '../selection'; +import type { ListSelectionConfig } from '../selection'; +import { platformFunctionInvocationKeys } from '../query-keys'; +import type { + PlatformFunctionInvocationSelect, + PlatformFunctionInvocationWithRelations, + PlatformFunctionInvocationFilter, + PlatformFunctionInvocationOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + PlatformFunctionInvocationSelect, + PlatformFunctionInvocationWithRelations, + PlatformFunctionInvocationFilter, + PlatformFunctionInvocationOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const platformFunctionInvocationsQueryKey = platformFunctionInvocationKeys.list; +/** + * Function invocation log — INSERT to call a function (business-layer, metered). Linked to definitions by task_identifier string. + * + * @example + * ```tsx + * const { data, isLoading } = usePlatformFunctionInvocationsQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function usePlatformFunctionInvocationsQuery< + S extends PlatformFunctionInvocationSelect, + TData = { + platformFunctionInvocations: ConnectionResult< + InferSelectResult + >; + }, +>( + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, PlatformFunctionInvocationSelect>; + } & Omit< + UseQueryOptions< + { + platformFunctionInvocations: ConnectionResult< + InferSelectResult + >; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function usePlatformFunctionInvocationsQuery( + params: { + selection: ListSelectionConfig< + PlatformFunctionInvocationSelect, + PlatformFunctionInvocationFilter, + PlatformFunctionInvocationOrderBy + >; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + PlatformFunctionInvocationSelect, + PlatformFunctionInvocationFilter, + PlatformFunctionInvocationOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: platformFunctionInvocationKeys.list(args), + queryFn: () => getClient().platformFunctionInvocation.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Function invocation log — INSERT to call a function (business-layer, metered). Linked to definitions by task_identifier string. + * + * @example + * ```ts + * const data = await fetchPlatformFunctionInvocationsQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchPlatformFunctionInvocationsQuery< + S extends PlatformFunctionInvocationSelect, +>(params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, PlatformFunctionInvocationSelect>; +}): Promise<{ + platformFunctionInvocations: ConnectionResult< + InferSelectResult + >; +}>; +export async function fetchPlatformFunctionInvocationsQuery(params: { + selection: ListSelectionConfig< + PlatformFunctionInvocationSelect, + PlatformFunctionInvocationFilter, + PlatformFunctionInvocationOrderBy + >; +}) { + const args = buildListSelectionArgs< + PlatformFunctionInvocationSelect, + PlatformFunctionInvocationFilter, + PlatformFunctionInvocationOrderBy + >(params.selection); + return getClient().platformFunctionInvocation.findMany(args).unwrap(); +} +/** + * Function invocation log — INSERT to call a function (business-layer, metered). Linked to definitions by task_identifier string. + * + * @example + * ```ts + * await prefetchPlatformFunctionInvocationsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchPlatformFunctionInvocationsQuery< + S extends PlatformFunctionInvocationSelect, +>( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, PlatformFunctionInvocationSelect>; + } +): Promise; +export async function prefetchPlatformFunctionInvocationsQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig< + PlatformFunctionInvocationSelect, + PlatformFunctionInvocationFilter, + PlatformFunctionInvocationOrderBy + >; + } +): Promise { + const args = buildListSelectionArgs< + PlatformFunctionInvocationSelect, + PlatformFunctionInvocationFilter, + PlatformFunctionInvocationOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: platformFunctionInvocationKeys.list(args), + queryFn: () => getClient().platformFunctionInvocation.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/queries/usePlatformResourceDefinitionQuery.ts b/sdk/constructive-react/src/compute/hooks/queries/usePlatformResourceDefinitionQuery.ts new file mode 100644 index 0000000000..4d4cbe9591 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/queries/usePlatformResourceDefinitionQuery.ts @@ -0,0 +1,154 @@ +/** + * Resource definitions — templates for resource kinds declaring default spec and secret/config 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 { platformResourceDefinitionKeys } from '../query-keys'; +import type { + PlatformResourceDefinitionSelect, + PlatformResourceDefinitionWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlatformResourceDefinitionSelect, + PlatformResourceDefinitionWithRelations, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const platformResourceDefinitionQueryKey = platformResourceDefinitionKeys.detail; +/** + * Resource definitions — templates for resource kinds declaring default spec and secret/config requirements + * + * @example + * ```tsx + * const { data, isLoading } = usePlatformResourceDefinitionQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function usePlatformResourceDefinitionQuery< + S extends PlatformResourceDefinitionSelect, + TData = { + platformResourceDefinition: InferSelectResult< + PlatformResourceDefinitionWithRelations, + S + > | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, PlatformResourceDefinitionSelect>; + } & Omit< + UseQueryOptions< + { + platformResourceDefinition: InferSelectResult< + PlatformResourceDefinitionWithRelations, + S + > | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function usePlatformResourceDefinitionQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: platformResourceDefinitionKeys.detail(params.id), + queryFn: () => + getClient() + .platformResourceDefinition.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Resource definitions — templates for resource kinds declaring default spec and secret/config requirements + * + * @example + * ```ts + * const data = await fetchPlatformResourceDefinitionQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchPlatformResourceDefinitionQuery< + S extends PlatformResourceDefinitionSelect, +>(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, PlatformResourceDefinitionSelect>; +}): Promise<{ + platformResourceDefinition: InferSelectResult | null; +}>; +export async function fetchPlatformResourceDefinitionQuery(params: { + id: string; + selection: SelectionConfig; +}): Promise { + const args = buildSelectionArgs(params.selection); + return getClient() + .platformResourceDefinition.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Resource definitions — templates for resource kinds declaring default spec and secret/config requirements + * + * @example + * ```ts + * await prefetchPlatformResourceDefinitionQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchPlatformResourceDefinitionQuery< + S extends PlatformResourceDefinitionSelect, +>( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, PlatformResourceDefinitionSelect>; + } +): Promise; +export async function prefetchPlatformResourceDefinitionQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: platformResourceDefinitionKeys.detail(params.id), + queryFn: () => + getClient() + .platformResourceDefinition.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/queries/usePlatformResourceDefinitionsQuery.ts b/sdk/constructive-react/src/compute/hooks/queries/usePlatformResourceDefinitionsQuery.ts new file mode 100644 index 0000000000..89da0841ba --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/queries/usePlatformResourceDefinitionsQuery.ts @@ -0,0 +1,182 @@ +/** + * Resource definitions — templates for resource kinds declaring default spec and secret/config 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 { platformResourceDefinitionKeys } from '../query-keys'; +import type { + PlatformResourceDefinitionSelect, + PlatformResourceDefinitionWithRelations, + PlatformResourceDefinitionFilter, + PlatformResourceDefinitionOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + PlatformResourceDefinitionSelect, + PlatformResourceDefinitionWithRelations, + PlatformResourceDefinitionFilter, + PlatformResourceDefinitionOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const platformResourceDefinitionsQueryKey = platformResourceDefinitionKeys.list; +/** + * Resource definitions — templates for resource kinds declaring default spec and secret/config requirements + * + * @example + * ```tsx + * const { data, isLoading } = usePlatformResourceDefinitionsQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function usePlatformResourceDefinitionsQuery< + S extends PlatformResourceDefinitionSelect, + TData = { + platformResourceDefinitions: ConnectionResult< + InferSelectResult + >; + }, +>( + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, PlatformResourceDefinitionSelect>; + } & Omit< + UseQueryOptions< + { + platformResourceDefinitions: ConnectionResult< + InferSelectResult + >; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function usePlatformResourceDefinitionsQuery( + params: { + selection: ListSelectionConfig< + PlatformResourceDefinitionSelect, + PlatformResourceDefinitionFilter, + PlatformResourceDefinitionOrderBy + >; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + PlatformResourceDefinitionSelect, + PlatformResourceDefinitionFilter, + PlatformResourceDefinitionOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: platformResourceDefinitionKeys.list(args), + queryFn: () => getClient().platformResourceDefinition.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Resource definitions — templates for resource kinds declaring default spec and secret/config requirements + * + * @example + * ```ts + * const data = await fetchPlatformResourceDefinitionsQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchPlatformResourceDefinitionsQuery< + S extends PlatformResourceDefinitionSelect, +>(params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, PlatformResourceDefinitionSelect>; +}): Promise<{ + platformResourceDefinitions: ConnectionResult< + InferSelectResult + >; +}>; +export async function fetchPlatformResourceDefinitionsQuery(params: { + selection: ListSelectionConfig< + PlatformResourceDefinitionSelect, + PlatformResourceDefinitionFilter, + PlatformResourceDefinitionOrderBy + >; +}) { + const args = buildListSelectionArgs< + PlatformResourceDefinitionSelect, + PlatformResourceDefinitionFilter, + PlatformResourceDefinitionOrderBy + >(params.selection); + return getClient().platformResourceDefinition.findMany(args).unwrap(); +} +/** + * Resource definitions — templates for resource kinds declaring default spec and secret/config requirements + * + * @example + * ```ts + * await prefetchPlatformResourceDefinitionsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchPlatformResourceDefinitionsQuery< + S extends PlatformResourceDefinitionSelect, +>( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, PlatformResourceDefinitionSelect>; + } +): Promise; +export async function prefetchPlatformResourceDefinitionsQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig< + PlatformResourceDefinitionSelect, + PlatformResourceDefinitionFilter, + PlatformResourceDefinitionOrderBy + >; + } +): Promise { + const args = buildListSelectionArgs< + PlatformResourceDefinitionSelect, + PlatformResourceDefinitionFilter, + PlatformResourceDefinitionOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: platformResourceDefinitionKeys.list(args), + queryFn: () => getClient().platformResourceDefinition.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/queries/usePlatformResourceEventQuery.ts b/sdk/constructive-react/src/compute/hooks/queries/usePlatformResourceEventQuery.ts new file mode 100644 index 0000000000..b867d9effa --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/queries/usePlatformResourceEventQuery.ts @@ -0,0 +1,146 @@ +/** + * Resource lifecycle events — audit log of provisioning, updates, and failure events + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useQuery } from '@tanstack/react-query'; +import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { platformResourceEventKeys } from '../query-keys'; +import type { + PlatformResourceEventSelect, + PlatformResourceEventWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlatformResourceEventSelect, + PlatformResourceEventWithRelations, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const platformResourceEventQueryKey = platformResourceEventKeys.detail; +/** + * Resource lifecycle events — audit log of provisioning, updates, and failure events + * + * @example + * ```tsx + * const { data, isLoading } = usePlatformResourceEventQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function usePlatformResourceEventQuery< + S extends PlatformResourceEventSelect, + TData = { + platformResourceEvent: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, PlatformResourceEventSelect>; + } & Omit< + UseQueryOptions< + { + platformResourceEvent: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function usePlatformResourceEventQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: platformResourceEventKeys.detail(params.id), + queryFn: () => + getClient() + .platformResourceEvent.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Resource lifecycle events — audit log of provisioning, updates, and failure events + * + * @example + * ```ts + * const data = await fetchPlatformResourceEventQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchPlatformResourceEventQuery< + S extends PlatformResourceEventSelect, +>(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, PlatformResourceEventSelect>; +}): Promise<{ + platformResourceEvent: InferSelectResult | null; +}>; +export async function fetchPlatformResourceEventQuery(params: { + id: string; + selection: SelectionConfig; +}): Promise { + const args = buildSelectionArgs(params.selection); + return getClient() + .platformResourceEvent.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Resource lifecycle events — audit log of provisioning, updates, and failure events + * + * @example + * ```ts + * await prefetchPlatformResourceEventQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchPlatformResourceEventQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, PlatformResourceEventSelect>; + } +): Promise; +export async function prefetchPlatformResourceEventQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: platformResourceEventKeys.detail(params.id), + queryFn: () => + getClient() + .platformResourceEvent.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/queries/usePlatformResourceEventsQuery.ts b/sdk/constructive-react/src/compute/hooks/queries/usePlatformResourceEventsQuery.ts new file mode 100644 index 0000000000..33c9cf6caf --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/queries/usePlatformResourceEventsQuery.ts @@ -0,0 +1,180 @@ +/** + * Resource lifecycle events — audit log of provisioning, updates, and failure events + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useQuery } from '@tanstack/react-query'; +import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildListSelectionArgs } from '../selection'; +import type { ListSelectionConfig } from '../selection'; +import { platformResourceEventKeys } from '../query-keys'; +import type { + PlatformResourceEventSelect, + PlatformResourceEventWithRelations, + PlatformResourceEventFilter, + PlatformResourceEventOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + PlatformResourceEventSelect, + PlatformResourceEventWithRelations, + PlatformResourceEventFilter, + PlatformResourceEventOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const platformResourceEventsQueryKey = platformResourceEventKeys.list; +/** + * Resource lifecycle events — audit log of provisioning, updates, and failure events + * + * @example + * ```tsx + * const { data, isLoading } = usePlatformResourceEventsQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function usePlatformResourceEventsQuery< + S extends PlatformResourceEventSelect, + TData = { + platformResourceEvents: ConnectionResult< + InferSelectResult + >; + }, +>( + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, PlatformResourceEventSelect>; + } & Omit< + UseQueryOptions< + { + platformResourceEvents: ConnectionResult< + InferSelectResult + >; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function usePlatformResourceEventsQuery( + params: { + selection: ListSelectionConfig< + PlatformResourceEventSelect, + PlatformResourceEventFilter, + PlatformResourceEventOrderBy + >; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + PlatformResourceEventSelect, + PlatformResourceEventFilter, + PlatformResourceEventOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: platformResourceEventKeys.list(args), + queryFn: () => getClient().platformResourceEvent.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Resource lifecycle events — audit log of provisioning, updates, and failure events + * + * @example + * ```ts + * const data = await fetchPlatformResourceEventsQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchPlatformResourceEventsQuery< + S extends PlatformResourceEventSelect, +>(params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, PlatformResourceEventSelect>; +}): Promise<{ + platformResourceEvents: ConnectionResult< + InferSelectResult + >; +}>; +export async function fetchPlatformResourceEventsQuery(params: { + selection: ListSelectionConfig< + PlatformResourceEventSelect, + PlatformResourceEventFilter, + PlatformResourceEventOrderBy + >; +}) { + const args = buildListSelectionArgs< + PlatformResourceEventSelect, + PlatformResourceEventFilter, + PlatformResourceEventOrderBy + >(params.selection); + return getClient().platformResourceEvent.findMany(args).unwrap(); +} +/** + * Resource lifecycle events — audit log of provisioning, updates, and failure events + * + * @example + * ```ts + * await prefetchPlatformResourceEventsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchPlatformResourceEventsQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, PlatformResourceEventSelect>; + } +): Promise; +export async function prefetchPlatformResourceEventsQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig< + PlatformResourceEventSelect, + PlatformResourceEventFilter, + PlatformResourceEventOrderBy + >; + } +): Promise { + const args = buildListSelectionArgs< + PlatformResourceEventSelect, + PlatformResourceEventFilter, + PlatformResourceEventOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: platformResourceEventKeys.list(args), + queryFn: () => getClient().platformResourceEvent.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/queries/usePlatformResourceQuery.ts b/sdk/constructive-react/src/compute/hooks/queries/usePlatformResourceQuery.ts new file mode 100644 index 0000000000..c3607f712d --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/queries/usePlatformResourceQuery.ts @@ -0,0 +1,138 @@ +/** + * Unified K8s resource declarations — stores desired state (spec) and observed state (status) for all resource kinds within a namespace + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useQuery } from '@tanstack/react-query'; +import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { platformResourceKeys } from '../query-keys'; +import type { PlatformResourceSelect, PlatformResourceWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { PlatformResourceSelect, PlatformResourceWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const platformResourceQueryKey = platformResourceKeys.detail; +/** + * Unified K8s resource declarations — stores desired state (spec) and observed state (status) for all resource kinds within a namespace + * + * @example + * ```tsx + * const { data, isLoading } = usePlatformResourceQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function usePlatformResourceQuery< + S extends PlatformResourceSelect, + TData = { + platformResource: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, PlatformResourceSelect>; + } & Omit< + UseQueryOptions< + { + platformResource: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function usePlatformResourceQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: platformResourceKeys.detail(params.id), + queryFn: () => + getClient() + .platformResource.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Unified K8s resource declarations — stores desired state (spec) and observed state (status) for all resource kinds within a namespace + * + * @example + * ```ts + * const data = await fetchPlatformResourceQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchPlatformResourceQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, PlatformResourceSelect>; +}): Promise<{ + platformResource: InferSelectResult | null; +}>; +export async function fetchPlatformResourceQuery(params: { + id: string; + selection: SelectionConfig; +}): Promise { + const args = buildSelectionArgs(params.selection); + return getClient() + .platformResource.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Unified K8s resource declarations — stores desired state (spec) and observed state (status) for all resource kinds within a namespace + * + * @example + * ```ts + * await prefetchPlatformResourceQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchPlatformResourceQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, PlatformResourceSelect>; + } +): Promise; +export async function prefetchPlatformResourceQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: platformResourceKeys.detail(params.id), + queryFn: () => + getClient() + .platformResource.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/queries/usePlatformResourceStatusCheckQuery.ts b/sdk/constructive-react/src/compute/hooks/queries/usePlatformResourceStatusCheckQuery.ts new file mode 100644 index 0000000000..74b9b5eb2f --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/queries/usePlatformResourceStatusCheckQuery.ts @@ -0,0 +1,157 @@ +/** + * On-demand resource status checks — diagnostic snapshots from the runtime (K8s status, conditions, log tails) + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useQuery } from '@tanstack/react-query'; +import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { platformResourceStatusCheckKeys } from '../query-keys'; +import type { + PlatformResourceStatusCheckSelect, + PlatformResourceStatusCheckWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlatformResourceStatusCheckSelect, + PlatformResourceStatusCheckWithRelations, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const platformResourceStatusCheckQueryKey = platformResourceStatusCheckKeys.detail; +/** + * On-demand resource status checks — diagnostic snapshots from the runtime (K8s status, conditions, log tails) + * + * @example + * ```tsx + * const { data, isLoading } = usePlatformResourceStatusCheckQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function usePlatformResourceStatusCheckQuery< + S extends PlatformResourceStatusCheckSelect, + TData = { + platformResourceStatusCheck: InferSelectResult< + PlatformResourceStatusCheckWithRelations, + S + > | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, PlatformResourceStatusCheckSelect>; + } & Omit< + UseQueryOptions< + { + platformResourceStatusCheck: InferSelectResult< + PlatformResourceStatusCheckWithRelations, + S + > | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function usePlatformResourceStatusCheckQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: platformResourceStatusCheckKeys.detail(params.id), + queryFn: () => + getClient() + .platformResourceStatusCheck.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * On-demand resource status checks — diagnostic snapshots from the runtime (K8s status, conditions, log tails) + * + * @example + * ```ts + * const data = await fetchPlatformResourceStatusCheckQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchPlatformResourceStatusCheckQuery< + S extends PlatformResourceStatusCheckSelect, +>(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, PlatformResourceStatusCheckSelect>; +}): Promise<{ + platformResourceStatusCheck: InferSelectResult< + PlatformResourceStatusCheckWithRelations, + S + > | null; +}>; +export async function fetchPlatformResourceStatusCheckQuery(params: { + id: string; + selection: SelectionConfig; +}): Promise { + const args = buildSelectionArgs(params.selection); + return getClient() + .platformResourceStatusCheck.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * On-demand resource status checks — diagnostic snapshots from the runtime (K8s status, conditions, log tails) + * + * @example + * ```ts + * await prefetchPlatformResourceStatusCheckQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchPlatformResourceStatusCheckQuery< + S extends PlatformResourceStatusCheckSelect, +>( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, PlatformResourceStatusCheckSelect>; + } +): Promise; +export async function prefetchPlatformResourceStatusCheckQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: platformResourceStatusCheckKeys.detail(params.id), + queryFn: () => + getClient() + .platformResourceStatusCheck.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/queries/usePlatformResourceStatusChecksQuery.ts b/sdk/constructive-react/src/compute/hooks/queries/usePlatformResourceStatusChecksQuery.ts new file mode 100644 index 0000000000..b644563c0d --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/queries/usePlatformResourceStatusChecksQuery.ts @@ -0,0 +1,182 @@ +/** + * On-demand resource status checks — diagnostic snapshots from the runtime (K8s status, conditions, log tails) + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useQuery } from '@tanstack/react-query'; +import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildListSelectionArgs } from '../selection'; +import type { ListSelectionConfig } from '../selection'; +import { platformResourceStatusCheckKeys } from '../query-keys'; +import type { + PlatformResourceStatusCheckSelect, + PlatformResourceStatusCheckWithRelations, + PlatformResourceStatusCheckFilter, + PlatformResourceStatusCheckOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + PlatformResourceStatusCheckSelect, + PlatformResourceStatusCheckWithRelations, + PlatformResourceStatusCheckFilter, + PlatformResourceStatusCheckOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const platformResourceStatusChecksQueryKey = platformResourceStatusCheckKeys.list; +/** + * On-demand resource status checks — diagnostic snapshots from the runtime (K8s status, conditions, log tails) + * + * @example + * ```tsx + * const { data, isLoading } = usePlatformResourceStatusChecksQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function usePlatformResourceStatusChecksQuery< + S extends PlatformResourceStatusCheckSelect, + TData = { + platformResourceStatusChecks: ConnectionResult< + InferSelectResult + >; + }, +>( + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, PlatformResourceStatusCheckSelect>; + } & Omit< + UseQueryOptions< + { + platformResourceStatusChecks: ConnectionResult< + InferSelectResult + >; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function usePlatformResourceStatusChecksQuery( + params: { + selection: ListSelectionConfig< + PlatformResourceStatusCheckSelect, + PlatformResourceStatusCheckFilter, + PlatformResourceStatusCheckOrderBy + >; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + PlatformResourceStatusCheckSelect, + PlatformResourceStatusCheckFilter, + PlatformResourceStatusCheckOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: platformResourceStatusCheckKeys.list(args), + queryFn: () => getClient().platformResourceStatusCheck.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * On-demand resource status checks — diagnostic snapshots from the runtime (K8s status, conditions, log tails) + * + * @example + * ```ts + * const data = await fetchPlatformResourceStatusChecksQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchPlatformResourceStatusChecksQuery< + S extends PlatformResourceStatusCheckSelect, +>(params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, PlatformResourceStatusCheckSelect>; +}): Promise<{ + platformResourceStatusChecks: ConnectionResult< + InferSelectResult + >; +}>; +export async function fetchPlatformResourceStatusChecksQuery(params: { + selection: ListSelectionConfig< + PlatformResourceStatusCheckSelect, + PlatformResourceStatusCheckFilter, + PlatformResourceStatusCheckOrderBy + >; +}) { + const args = buildListSelectionArgs< + PlatformResourceStatusCheckSelect, + PlatformResourceStatusCheckFilter, + PlatformResourceStatusCheckOrderBy + >(params.selection); + return getClient().platformResourceStatusCheck.findMany(args).unwrap(); +} +/** + * On-demand resource status checks — diagnostic snapshots from the runtime (K8s status, conditions, log tails) + * + * @example + * ```ts + * await prefetchPlatformResourceStatusChecksQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchPlatformResourceStatusChecksQuery< + S extends PlatformResourceStatusCheckSelect, +>( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, PlatformResourceStatusCheckSelect>; + } +): Promise; +export async function prefetchPlatformResourceStatusChecksQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig< + PlatformResourceStatusCheckSelect, + PlatformResourceStatusCheckFilter, + PlatformResourceStatusCheckOrderBy + >; + } +): Promise { + const args = buildListSelectionArgs< + PlatformResourceStatusCheckSelect, + PlatformResourceStatusCheckFilter, + PlatformResourceStatusCheckOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: platformResourceStatusCheckKeys.list(args), + queryFn: () => getClient().platformResourceStatusCheck.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/queries/usePlatformResourcesQuery.ts b/sdk/constructive-react/src/compute/hooks/queries/usePlatformResourcesQuery.ts new file mode 100644 index 0000000000..9349284dd9 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/queries/usePlatformResourcesQuery.ts @@ -0,0 +1,163 @@ +/** + * Unified K8s resource declarations — stores desired state (spec) and observed state (status) for all resource kinds within a namespace + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useQuery } from '@tanstack/react-query'; +import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildListSelectionArgs } from '../selection'; +import type { ListSelectionConfig } from '../selection'; +import { platformResourceKeys } from '../query-keys'; +import type { + PlatformResourceSelect, + PlatformResourceWithRelations, + PlatformResourceFilter, + PlatformResourceOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + PlatformResourceSelect, + PlatformResourceWithRelations, + PlatformResourceFilter, + PlatformResourceOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const platformResourcesQueryKey = platformResourceKeys.list; +/** + * Unified K8s resource declarations — stores desired state (spec) and observed state (status) for all resource kinds within a namespace + * + * @example + * ```tsx + * const { data, isLoading } = usePlatformResourcesQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function usePlatformResourcesQuery< + S extends PlatformResourceSelect, + TData = { + platformResources: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, PlatformResourceSelect>; + } & Omit< + UseQueryOptions< + { + platformResources: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function usePlatformResourcesQuery( + params: { + selection: ListSelectionConfig< + PlatformResourceSelect, + PlatformResourceFilter, + PlatformResourceOrderBy + >; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + PlatformResourceSelect, + PlatformResourceFilter, + PlatformResourceOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: platformResourceKeys.list(args), + queryFn: () => getClient().platformResource.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Unified K8s resource declarations — stores desired state (spec) and observed state (status) for all resource kinds within a namespace + * + * @example + * ```ts + * const data = await fetchPlatformResourcesQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchPlatformResourcesQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, PlatformResourceSelect>; +}): Promise<{ + platformResources: ConnectionResult>; +}>; +export async function fetchPlatformResourcesQuery(params: { + selection: ListSelectionConfig< + PlatformResourceSelect, + PlatformResourceFilter, + PlatformResourceOrderBy + >; +}) { + const args = buildListSelectionArgs< + PlatformResourceSelect, + PlatformResourceFilter, + PlatformResourceOrderBy + >(params.selection); + return getClient().platformResource.findMany(args).unwrap(); +} +/** + * Unified K8s resource declarations — stores desired state (spec) and observed state (status) for all resource kinds within a namespace + * + * @example + * ```ts + * await prefetchPlatformResourcesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchPlatformResourcesQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, PlatformResourceSelect>; + } +): Promise; +export async function prefetchPlatformResourcesQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig< + PlatformResourceSelect, + PlatformResourceFilter, + PlatformResourceOrderBy + >; + } +): Promise { + const args = buildListSelectionArgs< + PlatformResourceSelect, + PlatformResourceFilter, + PlatformResourceOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: platformResourceKeys.list(args), + queryFn: () => getClient().platformResource.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/queries/usePlatformResourcesRequirementsStatesQuery.ts b/sdk/constructive-react/src/compute/hooks/queries/usePlatformResourcesRequirementsStatesQuery.ts new file mode 100644 index 0000000000..9aa8b9f34b --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/queries/usePlatformResourcesRequirementsStatesQuery.ts @@ -0,0 +1,195 @@ +/** + * List query hook for PlatformResourcesRequirementsState + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useQuery } from '@tanstack/react-query'; +import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildListSelectionArgs } from '../selection'; +import type { ListSelectionConfig } from '../selection'; +import { platformResourcesRequirementsStateKeys } from '../query-keys'; +import type { + PlatformResourcesRequirementsStateSelect, + PlatformResourcesRequirementsStateWithRelations, + PlatformResourcesRequirementsStateFilter, + PlatformResourcesRequirementsStateOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + PlatformResourcesRequirementsStateSelect, + PlatformResourcesRequirementsStateWithRelations, + PlatformResourcesRequirementsStateFilter, + PlatformResourcesRequirementsStateOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const platformResourcesRequirementsStatesQueryKey = + platformResourcesRequirementsStateKeys.list; +/** + * Query hook for fetching PlatformResourcesRequirementsState list + * + * @example + * ```tsx + * const { data, isLoading } = usePlatformResourcesRequirementsStatesQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function usePlatformResourcesRequirementsStatesQuery< + S extends PlatformResourcesRequirementsStateSelect, + TData = { + platformResourcesRequirementsStates: ConnectionResult< + InferSelectResult + >; + }, +>( + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig< + S, + PlatformResourcesRequirementsStateFilter, + PlatformResourcesRequirementsStateOrderBy + >, + 'fields' + > & + HookStrictSelect, PlatformResourcesRequirementsStateSelect>; + } & Omit< + UseQueryOptions< + { + platformResourcesRequirementsStates: ConnectionResult< + InferSelectResult + >; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function usePlatformResourcesRequirementsStatesQuery( + params: { + selection: ListSelectionConfig< + PlatformResourcesRequirementsStateSelect, + PlatformResourcesRequirementsStateFilter, + PlatformResourcesRequirementsStateOrderBy + >; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + PlatformResourcesRequirementsStateSelect, + PlatformResourcesRequirementsStateFilter, + PlatformResourcesRequirementsStateOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: platformResourcesRequirementsStateKeys.list(args), + queryFn: () => getClient().platformResourcesRequirementsState.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch PlatformResourcesRequirementsState list without React hooks + * + * @example + * ```ts + * const data = await fetchPlatformResourcesRequirementsStatesQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchPlatformResourcesRequirementsStatesQuery< + S extends PlatformResourcesRequirementsStateSelect, +>(params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig< + S, + PlatformResourcesRequirementsStateFilter, + PlatformResourcesRequirementsStateOrderBy + >, + 'fields' + > & + HookStrictSelect, PlatformResourcesRequirementsStateSelect>; +}): Promise<{ + platformResourcesRequirementsStates: ConnectionResult< + InferSelectResult + >; +}>; +export async function fetchPlatformResourcesRequirementsStatesQuery(params: { + selection: ListSelectionConfig< + PlatformResourcesRequirementsStateSelect, + PlatformResourcesRequirementsStateFilter, + PlatformResourcesRequirementsStateOrderBy + >; +}) { + const args = buildListSelectionArgs< + PlatformResourcesRequirementsStateSelect, + PlatformResourcesRequirementsStateFilter, + PlatformResourcesRequirementsStateOrderBy + >(params.selection); + return getClient().platformResourcesRequirementsState.findMany(args).unwrap(); +} +/** + * Prefetch PlatformResourcesRequirementsState list for SSR or cache warming + * + * @example + * ```ts + * await prefetchPlatformResourcesRequirementsStatesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchPlatformResourcesRequirementsStatesQuery< + S extends PlatformResourcesRequirementsStateSelect, +>( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig< + S, + PlatformResourcesRequirementsStateFilter, + PlatformResourcesRequirementsStateOrderBy + >, + 'fields' + > & + HookStrictSelect, PlatformResourcesRequirementsStateSelect>; + } +): Promise; +export async function prefetchPlatformResourcesRequirementsStatesQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig< + PlatformResourcesRequirementsStateSelect, + PlatformResourcesRequirementsStateFilter, + PlatformResourcesRequirementsStateOrderBy + >; + } +): Promise { + const args = buildListSelectionArgs< + PlatformResourcesRequirementsStateSelect, + PlatformResourcesRequirementsStateFilter, + PlatformResourcesRequirementsStateOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: platformResourcesRequirementsStateKeys.list(args), + queryFn: () => getClient().platformResourcesRequirementsState.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/queries/usePlatformResourcesResolvedRequirementsQuery.ts b/sdk/constructive-react/src/compute/hooks/queries/usePlatformResourcesResolvedRequirementsQuery.ts new file mode 100644 index 0000000000..e3194473e8 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/queries/usePlatformResourcesResolvedRequirementsQuery.ts @@ -0,0 +1,195 @@ +/** + * List query hook for PlatformResourcesResolvedRequirement + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useQuery } from '@tanstack/react-query'; +import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildListSelectionArgs } from '../selection'; +import type { ListSelectionConfig } from '../selection'; +import { platformResourcesResolvedRequirementKeys } from '../query-keys'; +import type { + PlatformResourcesResolvedRequirementSelect, + PlatformResourcesResolvedRequirementWithRelations, + PlatformResourcesResolvedRequirementFilter, + PlatformResourcesResolvedRequirementOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + PlatformResourcesResolvedRequirementSelect, + PlatformResourcesResolvedRequirementWithRelations, + PlatformResourcesResolvedRequirementFilter, + PlatformResourcesResolvedRequirementOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const platformResourcesResolvedRequirementsQueryKey = + platformResourcesResolvedRequirementKeys.list; +/** + * Query hook for fetching PlatformResourcesResolvedRequirement list + * + * @example + * ```tsx + * const { data, isLoading } = usePlatformResourcesResolvedRequirementsQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function usePlatformResourcesResolvedRequirementsQuery< + S extends PlatformResourcesResolvedRequirementSelect, + TData = { + platformResourcesResolvedRequirements: ConnectionResult< + InferSelectResult + >; + }, +>( + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig< + S, + PlatformResourcesResolvedRequirementFilter, + PlatformResourcesResolvedRequirementOrderBy + >, + 'fields' + > & + HookStrictSelect, PlatformResourcesResolvedRequirementSelect>; + } & Omit< + UseQueryOptions< + { + platformResourcesResolvedRequirements: ConnectionResult< + InferSelectResult + >; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function usePlatformResourcesResolvedRequirementsQuery( + params: { + selection: ListSelectionConfig< + PlatformResourcesResolvedRequirementSelect, + PlatformResourcesResolvedRequirementFilter, + PlatformResourcesResolvedRequirementOrderBy + >; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + PlatformResourcesResolvedRequirementSelect, + PlatformResourcesResolvedRequirementFilter, + PlatformResourcesResolvedRequirementOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: platformResourcesResolvedRequirementKeys.list(args), + queryFn: () => getClient().platformResourcesResolvedRequirement.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch PlatformResourcesResolvedRequirement list without React hooks + * + * @example + * ```ts + * const data = await fetchPlatformResourcesResolvedRequirementsQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchPlatformResourcesResolvedRequirementsQuery< + S extends PlatformResourcesResolvedRequirementSelect, +>(params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig< + S, + PlatformResourcesResolvedRequirementFilter, + PlatformResourcesResolvedRequirementOrderBy + >, + 'fields' + > & + HookStrictSelect, PlatformResourcesResolvedRequirementSelect>; +}): Promise<{ + platformResourcesResolvedRequirements: ConnectionResult< + InferSelectResult + >; +}>; +export async function fetchPlatformResourcesResolvedRequirementsQuery(params: { + selection: ListSelectionConfig< + PlatformResourcesResolvedRequirementSelect, + PlatformResourcesResolvedRequirementFilter, + PlatformResourcesResolvedRequirementOrderBy + >; +}) { + const args = buildListSelectionArgs< + PlatformResourcesResolvedRequirementSelect, + PlatformResourcesResolvedRequirementFilter, + PlatformResourcesResolvedRequirementOrderBy + >(params.selection); + return getClient().platformResourcesResolvedRequirement.findMany(args).unwrap(); +} +/** + * Prefetch PlatformResourcesResolvedRequirement list for SSR or cache warming + * + * @example + * ```ts + * await prefetchPlatformResourcesResolvedRequirementsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchPlatformResourcesResolvedRequirementsQuery< + S extends PlatformResourcesResolvedRequirementSelect, +>( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig< + S, + PlatformResourcesResolvedRequirementFilter, + PlatformResourcesResolvedRequirementOrderBy + >, + 'fields' + > & + HookStrictSelect, PlatformResourcesResolvedRequirementSelect>; + } +): Promise; +export async function prefetchPlatformResourcesResolvedRequirementsQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig< + PlatformResourcesResolvedRequirementSelect, + PlatformResourcesResolvedRequirementFilter, + PlatformResourcesResolvedRequirementOrderBy + >; + } +): Promise { + const args = buildListSelectionArgs< + PlatformResourcesResolvedRequirementSelect, + PlatformResourcesResolvedRequirementFilter, + PlatformResourcesResolvedRequirementOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: platformResourcesResolvedRequirementKeys.list(args), + queryFn: () => getClient().platformResourcesResolvedRequirement.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/queries/useResourceDefinitionQuery.ts b/sdk/constructive-react/src/compute/hooks/queries/useResourceDefinitionQuery.ts new file mode 100644 index 0000000000..44dc9ab795 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/queries/useResourceDefinitionQuery.ts @@ -0,0 +1,144 @@ +/** + * Resource definitions — templates for resource kinds declaring default spec and secret/config 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 { resourceDefinitionKeys } from '../query-keys'; +import type { + ResourceDefinitionSelect, + ResourceDefinitionWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + ResourceDefinitionSelect, + ResourceDefinitionWithRelations, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const resourceDefinitionQueryKey = resourceDefinitionKeys.detail; +/** + * Resource definitions — templates for resource kinds declaring default spec and secret/config requirements + * + * @example + * ```tsx + * const { data, isLoading } = useResourceDefinitionQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useResourceDefinitionQuery< + S extends ResourceDefinitionSelect, + TData = { + resourceDefinition: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, ResourceDefinitionSelect>; + } & Omit< + UseQueryOptions< + { + resourceDefinition: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useResourceDefinitionQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: resourceDefinitionKeys.detail(params.id), + queryFn: () => + getClient() + .resourceDefinition.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Resource definitions — templates for resource kinds declaring default spec and secret/config requirements + * + * @example + * ```ts + * const data = await fetchResourceDefinitionQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchResourceDefinitionQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, ResourceDefinitionSelect>; +}): Promise<{ + resourceDefinition: InferSelectResult | null; +}>; +export async function fetchResourceDefinitionQuery(params: { + id: string; + selection: SelectionConfig; +}): Promise { + const args = buildSelectionArgs(params.selection); + return getClient() + .resourceDefinition.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Resource definitions — templates for resource kinds declaring default spec and secret/config requirements + * + * @example + * ```ts + * await prefetchResourceDefinitionQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchResourceDefinitionQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, ResourceDefinitionSelect>; + } +): Promise; +export async function prefetchResourceDefinitionQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: resourceDefinitionKeys.detail(params.id), + queryFn: () => + getClient() + .resourceDefinition.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/queries/useResourceDefinitionsQuery.ts b/sdk/constructive-react/src/compute/hooks/queries/useResourceDefinitionsQuery.ts new file mode 100644 index 0000000000..f0c242b38e --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/queries/useResourceDefinitionsQuery.ts @@ -0,0 +1,171 @@ +/** + * Resource definitions — templates for resource kinds declaring default spec and secret/config 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 { resourceDefinitionKeys } from '../query-keys'; +import type { + ResourceDefinitionSelect, + ResourceDefinitionWithRelations, + ResourceDefinitionFilter, + ResourceDefinitionOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + ResourceDefinitionSelect, + ResourceDefinitionWithRelations, + ResourceDefinitionFilter, + ResourceDefinitionOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const resourceDefinitionsQueryKey = resourceDefinitionKeys.list; +/** + * Resource definitions — templates for resource kinds declaring default spec and secret/config requirements + * + * @example + * ```tsx + * const { data, isLoading } = useResourceDefinitionsQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useResourceDefinitionsQuery< + S extends ResourceDefinitionSelect, + TData = { + resourceDefinitions: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, ResourceDefinitionSelect>; + } & Omit< + UseQueryOptions< + { + resourceDefinitions: ConnectionResult< + InferSelectResult + >; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useResourceDefinitionsQuery( + params: { + selection: ListSelectionConfig< + ResourceDefinitionSelect, + ResourceDefinitionFilter, + ResourceDefinitionOrderBy + >; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + ResourceDefinitionSelect, + ResourceDefinitionFilter, + ResourceDefinitionOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: resourceDefinitionKeys.list(args), + queryFn: () => getClient().resourceDefinition.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Resource definitions — templates for resource kinds declaring default spec and secret/config requirements + * + * @example + * ```ts + * const data = await fetchResourceDefinitionsQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchResourceDefinitionsQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, ResourceDefinitionSelect>; +}): Promise<{ + resourceDefinitions: ConnectionResult>; +}>; +export async function fetchResourceDefinitionsQuery(params: { + selection: ListSelectionConfig< + ResourceDefinitionSelect, + ResourceDefinitionFilter, + ResourceDefinitionOrderBy + >; +}) { + const args = buildListSelectionArgs< + ResourceDefinitionSelect, + ResourceDefinitionFilter, + ResourceDefinitionOrderBy + >(params.selection); + return getClient().resourceDefinition.findMany(args).unwrap(); +} +/** + * Resource definitions — templates for resource kinds declaring default spec and secret/config requirements + * + * @example + * ```ts + * await prefetchResourceDefinitionsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchResourceDefinitionsQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, ResourceDefinitionSelect>; + } +): Promise; +export async function prefetchResourceDefinitionsQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig< + ResourceDefinitionSelect, + ResourceDefinitionFilter, + ResourceDefinitionOrderBy + >; + } +): Promise { + const args = buildListSelectionArgs< + ResourceDefinitionSelect, + ResourceDefinitionFilter, + ResourceDefinitionOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: resourceDefinitionKeys.list(args), + queryFn: () => getClient().resourceDefinition.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/queries/useResourceStatusCheckQuery.ts b/sdk/constructive-react/src/compute/hooks/queries/useResourceStatusCheckQuery.ts new file mode 100644 index 0000000000..afae44e7d7 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/queries/useResourceStatusCheckQuery.ts @@ -0,0 +1,144 @@ +/** + * On-demand resource status checks — diagnostic snapshots from the runtime (K8s status, conditions, log tails) + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useQuery } from '@tanstack/react-query'; +import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { resourceStatusCheckKeys } from '../query-keys'; +import type { + ResourceStatusCheckSelect, + ResourceStatusCheckWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + ResourceStatusCheckSelect, + ResourceStatusCheckWithRelations, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const resourceStatusCheckQueryKey = resourceStatusCheckKeys.detail; +/** + * On-demand resource status checks — diagnostic snapshots from the runtime (K8s status, conditions, log tails) + * + * @example + * ```tsx + * const { data, isLoading } = useResourceStatusCheckQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useResourceStatusCheckQuery< + S extends ResourceStatusCheckSelect, + TData = { + resourceStatusCheck: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, ResourceStatusCheckSelect>; + } & Omit< + UseQueryOptions< + { + resourceStatusCheck: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useResourceStatusCheckQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: resourceStatusCheckKeys.detail(params.id), + queryFn: () => + getClient() + .resourceStatusCheck.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * On-demand resource status checks — diagnostic snapshots from the runtime (K8s status, conditions, log tails) + * + * @example + * ```ts + * const data = await fetchResourceStatusCheckQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchResourceStatusCheckQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, ResourceStatusCheckSelect>; +}): Promise<{ + resourceStatusCheck: InferSelectResult | null; +}>; +export async function fetchResourceStatusCheckQuery(params: { + id: string; + selection: SelectionConfig; +}): Promise { + const args = buildSelectionArgs(params.selection); + return getClient() + .resourceStatusCheck.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * On-demand resource status checks — diagnostic snapshots from the runtime (K8s status, conditions, log tails) + * + * @example + * ```ts + * await prefetchResourceStatusCheckQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchResourceStatusCheckQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, ResourceStatusCheckSelect>; + } +): Promise; +export async function prefetchResourceStatusCheckQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: resourceStatusCheckKeys.detail(params.id), + queryFn: () => + getClient() + .resourceStatusCheck.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/queries/useResourceStatusChecksQuery.ts b/sdk/constructive-react/src/compute/hooks/queries/useResourceStatusChecksQuery.ts new file mode 100644 index 0000000000..50d72d914d --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/queries/useResourceStatusChecksQuery.ts @@ -0,0 +1,174 @@ +/** + * On-demand resource status checks — diagnostic snapshots from the runtime (K8s status, conditions, log tails) + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useQuery } from '@tanstack/react-query'; +import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildListSelectionArgs } from '../selection'; +import type { ListSelectionConfig } from '../selection'; +import { resourceStatusCheckKeys } from '../query-keys'; +import type { + ResourceStatusCheckSelect, + ResourceStatusCheckWithRelations, + ResourceStatusCheckFilter, + ResourceStatusCheckOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + ResourceStatusCheckSelect, + ResourceStatusCheckWithRelations, + ResourceStatusCheckFilter, + ResourceStatusCheckOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const resourceStatusChecksQueryKey = resourceStatusCheckKeys.list; +/** + * On-demand resource status checks — diagnostic snapshots from the runtime (K8s status, conditions, log tails) + * + * @example + * ```tsx + * const { data, isLoading } = useResourceStatusChecksQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useResourceStatusChecksQuery< + S extends ResourceStatusCheckSelect, + TData = { + resourceStatusChecks: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, ResourceStatusCheckSelect>; + } & Omit< + UseQueryOptions< + { + resourceStatusChecks: ConnectionResult< + InferSelectResult + >; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useResourceStatusChecksQuery( + params: { + selection: ListSelectionConfig< + ResourceStatusCheckSelect, + ResourceStatusCheckFilter, + ResourceStatusCheckOrderBy + >; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + ResourceStatusCheckSelect, + ResourceStatusCheckFilter, + ResourceStatusCheckOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: resourceStatusCheckKeys.list(args), + queryFn: () => getClient().resourceStatusCheck.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * On-demand resource status checks — diagnostic snapshots from the runtime (K8s status, conditions, log tails) + * + * @example + * ```ts + * const data = await fetchResourceStatusChecksQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchResourceStatusChecksQuery(params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, ResourceStatusCheckSelect>; +}): Promise<{ + resourceStatusChecks: ConnectionResult>; +}>; +export async function fetchResourceStatusChecksQuery(params: { + selection: ListSelectionConfig< + ResourceStatusCheckSelect, + ResourceStatusCheckFilter, + ResourceStatusCheckOrderBy + >; +}) { + const args = buildListSelectionArgs< + ResourceStatusCheckSelect, + ResourceStatusCheckFilter, + ResourceStatusCheckOrderBy + >(params.selection); + return getClient().resourceStatusCheck.findMany(args).unwrap(); +} +/** + * On-demand resource status checks — diagnostic snapshots from the runtime (K8s status, conditions, log tails) + * + * @example + * ```ts + * await prefetchResourceStatusChecksQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchResourceStatusChecksQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, ResourceStatusCheckSelect>; + } +): Promise; +export async function prefetchResourceStatusChecksQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig< + ResourceStatusCheckSelect, + ResourceStatusCheckFilter, + ResourceStatusCheckOrderBy + >; + } +): Promise { + const args = buildListSelectionArgs< + ResourceStatusCheckSelect, + ResourceStatusCheckFilter, + ResourceStatusCheckOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: resourceStatusCheckKeys.list(args), + queryFn: () => getClient().resourceStatusCheck.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/queries/useResourcesRequirementsStatesQuery.ts b/sdk/constructive-react/src/compute/hooks/queries/useResourcesRequirementsStatesQuery.ts new file mode 100644 index 0000000000..90d81ca973 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/queries/useResourcesRequirementsStatesQuery.ts @@ -0,0 +1,182 @@ +/** + * List query hook for ResourcesRequirementsState + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useQuery } from '@tanstack/react-query'; +import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildListSelectionArgs } from '../selection'; +import type { ListSelectionConfig } from '../selection'; +import { resourcesRequirementsStateKeys } from '../query-keys'; +import type { + ResourcesRequirementsStateSelect, + ResourcesRequirementsStateWithRelations, + ResourcesRequirementsStateFilter, + ResourcesRequirementsStateOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + ResourcesRequirementsStateSelect, + ResourcesRequirementsStateWithRelations, + ResourcesRequirementsStateFilter, + ResourcesRequirementsStateOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const resourcesRequirementsStatesQueryKey = resourcesRequirementsStateKeys.list; +/** + * Query hook for fetching ResourcesRequirementsState list + * + * @example + * ```tsx + * const { data, isLoading } = useResourcesRequirementsStatesQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useResourcesRequirementsStatesQuery< + S extends ResourcesRequirementsStateSelect, + TData = { + resourcesRequirementsStates: ConnectionResult< + InferSelectResult + >; + }, +>( + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, ResourcesRequirementsStateSelect>; + } & Omit< + UseQueryOptions< + { + resourcesRequirementsStates: ConnectionResult< + InferSelectResult + >; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useResourcesRequirementsStatesQuery( + params: { + selection: ListSelectionConfig< + ResourcesRequirementsStateSelect, + ResourcesRequirementsStateFilter, + ResourcesRequirementsStateOrderBy + >; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + ResourcesRequirementsStateSelect, + ResourcesRequirementsStateFilter, + ResourcesRequirementsStateOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: resourcesRequirementsStateKeys.list(args), + queryFn: () => getClient().resourcesRequirementsState.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch ResourcesRequirementsState list without React hooks + * + * @example + * ```ts + * const data = await fetchResourcesRequirementsStatesQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchResourcesRequirementsStatesQuery< + S extends ResourcesRequirementsStateSelect, +>(params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, ResourcesRequirementsStateSelect>; +}): Promise<{ + resourcesRequirementsStates: ConnectionResult< + InferSelectResult + >; +}>; +export async function fetchResourcesRequirementsStatesQuery(params: { + selection: ListSelectionConfig< + ResourcesRequirementsStateSelect, + ResourcesRequirementsStateFilter, + ResourcesRequirementsStateOrderBy + >; +}) { + const args = buildListSelectionArgs< + ResourcesRequirementsStateSelect, + ResourcesRequirementsStateFilter, + ResourcesRequirementsStateOrderBy + >(params.selection); + return getClient().resourcesRequirementsState.findMany(args).unwrap(); +} +/** + * Prefetch ResourcesRequirementsState list for SSR or cache warming + * + * @example + * ```ts + * await prefetchResourcesRequirementsStatesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchResourcesRequirementsStatesQuery< + S extends ResourcesRequirementsStateSelect, +>( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, ResourcesRequirementsStateSelect>; + } +): Promise; +export async function prefetchResourcesRequirementsStatesQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig< + ResourcesRequirementsStateSelect, + ResourcesRequirementsStateFilter, + ResourcesRequirementsStateOrderBy + >; + } +): Promise { + const args = buildListSelectionArgs< + ResourcesRequirementsStateSelect, + ResourcesRequirementsStateFilter, + ResourcesRequirementsStateOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: resourcesRequirementsStateKeys.list(args), + queryFn: () => getClient().resourcesRequirementsState.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/queries/useResourcesResolvedRequirementsQuery.ts b/sdk/constructive-react/src/compute/hooks/queries/useResourcesResolvedRequirementsQuery.ts new file mode 100644 index 0000000000..207d7427e7 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/queries/useResourcesResolvedRequirementsQuery.ts @@ -0,0 +1,190 @@ +/** + * List query hook for ResourcesResolvedRequirement + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useQuery } from '@tanstack/react-query'; +import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildListSelectionArgs } from '../selection'; +import type { ListSelectionConfig } from '../selection'; +import { resourcesResolvedRequirementKeys } from '../query-keys'; +import type { + ResourcesResolvedRequirementSelect, + ResourcesResolvedRequirementWithRelations, + ResourcesResolvedRequirementFilter, + ResourcesResolvedRequirementOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + ResourcesResolvedRequirementSelect, + ResourcesResolvedRequirementWithRelations, + ResourcesResolvedRequirementFilter, + ResourcesResolvedRequirementOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const resourcesResolvedRequirementsQueryKey = resourcesResolvedRequirementKeys.list; +/** + * Query hook for fetching ResourcesResolvedRequirement list + * + * @example + * ```tsx + * const { data, isLoading } = useResourcesResolvedRequirementsQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useResourcesResolvedRequirementsQuery< + S extends ResourcesResolvedRequirementSelect, + TData = { + resourcesResolvedRequirements: ConnectionResult< + InferSelectResult + >; + }, +>( + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig< + S, + ResourcesResolvedRequirementFilter, + ResourcesResolvedRequirementOrderBy + >, + 'fields' + > & + HookStrictSelect, ResourcesResolvedRequirementSelect>; + } & Omit< + UseQueryOptions< + { + resourcesResolvedRequirements: ConnectionResult< + InferSelectResult + >; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useResourcesResolvedRequirementsQuery( + params: { + selection: ListSelectionConfig< + ResourcesResolvedRequirementSelect, + ResourcesResolvedRequirementFilter, + ResourcesResolvedRequirementOrderBy + >; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + ResourcesResolvedRequirementSelect, + ResourcesResolvedRequirementFilter, + ResourcesResolvedRequirementOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: resourcesResolvedRequirementKeys.list(args), + queryFn: () => getClient().resourcesResolvedRequirement.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch ResourcesResolvedRequirement list without React hooks + * + * @example + * ```ts + * const data = await fetchResourcesResolvedRequirementsQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchResourcesResolvedRequirementsQuery< + S extends ResourcesResolvedRequirementSelect, +>(params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, ResourcesResolvedRequirementSelect>; +}): Promise<{ + resourcesResolvedRequirements: ConnectionResult< + InferSelectResult + >; +}>; +export async function fetchResourcesResolvedRequirementsQuery(params: { + selection: ListSelectionConfig< + ResourcesResolvedRequirementSelect, + ResourcesResolvedRequirementFilter, + ResourcesResolvedRequirementOrderBy + >; +}) { + const args = buildListSelectionArgs< + ResourcesResolvedRequirementSelect, + ResourcesResolvedRequirementFilter, + ResourcesResolvedRequirementOrderBy + >(params.selection); + return getClient().resourcesResolvedRequirement.findMany(args).unwrap(); +} +/** + * Prefetch ResourcesResolvedRequirement list for SSR or cache warming + * + * @example + * ```ts + * await prefetchResourcesResolvedRequirementsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchResourcesResolvedRequirementsQuery< + S extends ResourcesResolvedRequirementSelect, +>( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig< + S, + ResourcesResolvedRequirementFilter, + ResourcesResolvedRequirementOrderBy + >, + 'fields' + > & + HookStrictSelect, ResourcesResolvedRequirementSelect>; + } +): Promise; +export async function prefetchResourcesResolvedRequirementsQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig< + ResourcesResolvedRequirementSelect, + ResourcesResolvedRequirementFilter, + ResourcesResolvedRequirementOrderBy + >; + } +): Promise { + const args = buildListSelectionArgs< + ResourcesResolvedRequirementSelect, + ResourcesResolvedRequirementFilter, + ResourcesResolvedRequirementOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: resourcesResolvedRequirementKeys.list(args), + queryFn: () => getClient().resourcesResolvedRequirement.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/queries/useSecretDefinitionQuery.ts b/sdk/constructive-react/src/compute/hooks/queries/useSecretDefinitionQuery.ts deleted file mode 100644 index b33a5734aa..0000000000 --- a/sdk/constructive-react/src/compute/hooks/queries/useSecretDefinitionQuery.ts +++ /dev/null @@ -1,138 +0,0 @@ -/** - * Global secret name registry — declares which secrets the platform recognizes. Actual values live in app_secrets. - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { secretDefinitionKeys } from '../query-keys'; -import type { SecretDefinitionSelect, SecretDefinitionWithRelations } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { SecretDefinitionSelect, SecretDefinitionWithRelations } from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const secretDefinitionQueryKey = secretDefinitionKeys.detail; -/** - * Global secret name registry — declares which secrets the platform recognizes. Actual values live in app_secrets. - * - * @example - * ```tsx - * const { data, isLoading } = useSecretDefinitionQuery({ - * id: 'some-id', - * selection: { fields: { id: true, name: true } }, - * }); - * ``` - */ -export function useSecretDefinitionQuery< - S extends SecretDefinitionSelect, - TData = { - secretDefinition: InferSelectResult | null; - }, ->( - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, SecretDefinitionSelect>; - } & Omit< - UseQueryOptions< - { - secretDefinition: InferSelectResult | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useSecretDefinitionQuery( - params: { - id: string; - selection: SelectionConfig; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: secretDefinitionKeys.detail(params.id), - queryFn: () => - getClient() - .secretDefinition.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - ...queryOptions, - }); -} -/** - * Global secret name registry — declares which secrets the platform recognizes. Actual values live in app_secrets. - * - * @example - * ```ts - * const data = await fetchSecretDefinitionQuery({ - * id: 'some-id', - * selection: { fields: { id: true } }, - * }); - * ``` - */ -export async function fetchSecretDefinitionQuery(params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, SecretDefinitionSelect>; -}): Promise<{ - secretDefinition: InferSelectResult | null; -}>; -export async function fetchSecretDefinitionQuery(params: { - id: string; - selection: SelectionConfig; -}): Promise { - const args = buildSelectionArgs(params.selection); - return getClient() - .secretDefinition.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(); -} -/** - * Global secret name registry — declares which secrets the platform recognizes. Actual values live in app_secrets. - * - * @example - * ```ts - * await prefetchSecretDefinitionQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); - * ``` - */ -export async function prefetchSecretDefinitionQuery( - queryClient: QueryClient, - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, SecretDefinitionSelect>; - } -): Promise; -export async function prefetchSecretDefinitionQuery( - queryClient: QueryClient, - params: { - id: string; - selection: SelectionConfig; - } -): Promise { - const args = buildSelectionArgs(params.selection); - await queryClient.prefetchQuery({ - queryKey: secretDefinitionKeys.detail(params.id), - queryFn: () => - getClient() - .secretDefinition.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - }); -} diff --git a/sdk/constructive-react/src/compute/hooks/queries/useSecretDefinitionsQuery.ts b/sdk/constructive-react/src/compute/hooks/queries/useSecretDefinitionsQuery.ts deleted file mode 100644 index f5935e8efc..0000000000 --- a/sdk/constructive-react/src/compute/hooks/queries/useSecretDefinitionsQuery.ts +++ /dev/null @@ -1,163 +0,0 @@ -/** - * Global secret name registry — declares which secrets the platform recognizes. Actual values live in app_secrets. - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildListSelectionArgs } from '../selection'; -import type { ListSelectionConfig } from '../selection'; -import { secretDefinitionKeys } from '../query-keys'; -import type { - SecretDefinitionSelect, - SecretDefinitionWithRelations, - SecretDefinitionFilter, - SecretDefinitionOrderBy, -} from '../../orm/input-types'; -import type { - FindManyArgs, - InferSelectResult, - ConnectionResult, - HookStrictSelect, -} from '../../orm/select-types'; -export type { - SecretDefinitionSelect, - SecretDefinitionWithRelations, - SecretDefinitionFilter, - SecretDefinitionOrderBy, -} from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const secretDefinitionsQueryKey = secretDefinitionKeys.list; -/** - * Global secret name registry — declares which secrets the platform recognizes. Actual values live in app_secrets. - * - * @example - * ```tsx - * const { data, isLoading } = useSecretDefinitionsQuery({ - * selection: { - * fields: { id: true, name: true }, - * where: { name: { equalTo: "example" } }, - * orderBy: ['CREATED_AT_DESC'], - * first: 10, - * }, - * }); - * ``` - */ -export function useSecretDefinitionsQuery< - S extends SecretDefinitionSelect, - TData = { - secretDefinitions: ConnectionResult>; - }, ->( - params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, SecretDefinitionSelect>; - } & Omit< - UseQueryOptions< - { - secretDefinitions: ConnectionResult>; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useSecretDefinitionsQuery( - params: { - selection: ListSelectionConfig< - SecretDefinitionSelect, - SecretDefinitionFilter, - SecretDefinitionOrderBy - >; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildListSelectionArgs< - SecretDefinitionSelect, - SecretDefinitionFilter, - SecretDefinitionOrderBy - >(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: secretDefinitionKeys.list(args), - queryFn: () => getClient().secretDefinition.findMany(args).unwrap(), - ...queryOptions, - }); -} -/** - * Global secret name registry — declares which secrets the platform recognizes. Actual values live in app_secrets. - * - * @example - * ```ts - * const data = await fetchSecretDefinitionsQuery({ - * selection: { - * fields: { id: true }, - * first: 10, - * }, - * }); - * ``` - */ -export async function fetchSecretDefinitionsQuery(params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, SecretDefinitionSelect>; -}): Promise<{ - secretDefinitions: ConnectionResult>; -}>; -export async function fetchSecretDefinitionsQuery(params: { - selection: ListSelectionConfig< - SecretDefinitionSelect, - SecretDefinitionFilter, - SecretDefinitionOrderBy - >; -}) { - const args = buildListSelectionArgs< - SecretDefinitionSelect, - SecretDefinitionFilter, - SecretDefinitionOrderBy - >(params.selection); - return getClient().secretDefinition.findMany(args).unwrap(); -} -/** - * Global secret name registry — declares which secrets the platform recognizes. Actual values live in app_secrets. - * - * @example - * ```ts - * await prefetchSecretDefinitionsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); - * ``` - */ -export async function prefetchSecretDefinitionsQuery( - queryClient: QueryClient, - params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, SecretDefinitionSelect>; - } -): Promise; -export async function prefetchSecretDefinitionsQuery( - queryClient: QueryClient, - params: { - selection: ListSelectionConfig< - SecretDefinitionSelect, - SecretDefinitionFilter, - SecretDefinitionOrderBy - >; - } -): Promise { - const args = buildListSelectionArgs< - SecretDefinitionSelect, - SecretDefinitionFilter, - SecretDefinitionOrderBy - >(params.selection); - await queryClient.prefetchQuery({ - queryKey: secretDefinitionKeys.list(args), - queryFn: () => getClient().secretDefinition.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 8631c75eb2..a025016930 100644 --- a/sdk/constructive-react/src/compute/hooks/query-keys.ts +++ b/sdk/constructive-react/src/compute/hooks/query-keys.ts @@ -19,6 +19,15 @@ // Entity Query Keys // ============================================================================ +export const infraGetAllRecordKeys = { + /** All infraGetAllRecord queries */ all: ['infragetallrecord'] as const, + /** List query keys */ lists: () => [...infraGetAllRecordKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...infraGetAllRecordKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...infraGetAllRecordKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...infraGetAllRecordKeys.details(), id] as const, +} as const; export const getAllRecordKeys = { /** All getAllRecord queries */ all: ['getallrecord'] as const, /** List query keys */ lists: () => [...getAllRecordKeys.all, 'list'] as const, @@ -28,32 +37,32 @@ export const getAllRecordKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...getAllRecordKeys.details(), id] as const, } as const; -export const functionApiBindingKeys = { - /** All functionApiBinding queries */ all: ['functionapibinding'] as const, - /** List query keys */ lists: () => [...functionApiBindingKeys.all, 'list'] as const, +export const infraRefKeys = { + /** All infraRef queries */ all: ['infraref'] as const, + /** List query keys */ lists: () => [...infraRefKeys.all, 'list'] as const, /** List query key with variables */ list: (variables?: object) => - [...functionApiBindingKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...functionApiBindingKeys.all, 'detail'] as const, + [...infraRefKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...infraRefKeys.all, 'detail'] as const, /** Detail query key for specific item */ detail: (id: string | number) => - [...functionApiBindingKeys.details(), id] as const, + [...infraRefKeys.details(), id] as const, } as const; -export const functionDeploymentKeys = { - /** All functionDeployment queries */ all: ['functiondeployment'] as const, - /** List query keys */ lists: () => [...functionDeploymentKeys.all, 'list'] as const, +export const infraStoreKeys = { + /** All infraStore queries */ all: ['infrastore'] as const, + /** List query keys */ lists: () => [...infraStoreKeys.all, 'list'] as const, /** List query key with variables */ list: (variables?: object) => - [...functionDeploymentKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...functionDeploymentKeys.all, 'detail'] as const, + [...infraStoreKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...infraStoreKeys.all, 'detail'] as const, /** Detail query key for specific item */ detail: (id: string | number) => - [...functionDeploymentKeys.details(), id] as const, + [...infraStoreKeys.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, +export const functionApiBindingKeys = { + /** All functionApiBinding queries */ all: ['functionapibinding'] as const, + /** List query keys */ lists: () => [...functionApiBindingKeys.all, 'list'] as const, /** List query key with variables */ list: (variables?: object) => - [...resourceKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...resourceKeys.all, 'detail'] as const, + [...functionApiBindingKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...functionApiBindingKeys.all, 'detail'] as const, /** Detail query key for specific item */ detail: (id: string | number) => - [...resourceKeys.details(), id] as const, + [...functionApiBindingKeys.details(), id] as const, } as const; export const functionGraphRefKeys = { /** All functionGraphRef queries */ all: ['functiongraphref'] as const, @@ -73,6 +82,87 @@ export const functionGraphStoreKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...functionGraphStoreKeys.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, + /** List query key with variables */ list: (variables?: object) => + [...platformFunctionApiBindingKeys.lists(), variables] as const, + /** Detail query keys */ details: () => + [...platformFunctionApiBindingKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...platformFunctionApiBindingKeys.details(), id] as const, +} as const; +export const platformResourcesRequirementsStateKeys = { + /** All platformResourcesRequirementsState queries */ all: [ + 'platformresourcesrequirementsstate', + ] as const, + /** List query keys */ lists: () => + [...platformResourcesRequirementsStateKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...platformResourcesRequirementsStateKeys.lists(), variables] as const, + /** Detail query keys */ details: () => + [...platformResourcesRequirementsStateKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...platformResourcesRequirementsStateKeys.details(), id] as const, +} as const; +export const resourcesRequirementsStateKeys = { + /** All resourcesRequirementsState queries */ all: ['resourcesrequirementsstate'] as const, + /** List query keys */ lists: () => [...resourcesRequirementsStateKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...resourcesRequirementsStateKeys.lists(), variables] as const, + /** Detail query keys */ details: () => + [...resourcesRequirementsStateKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...resourcesRequirementsStateKeys.details(), id] as const, +} as const; +export const platformResourceStatusCheckKeys = { + /** All platformResourceStatusCheck queries */ all: ['platformresourcestatuscheck'] as const, + /** List query keys */ lists: () => [...platformResourceStatusCheckKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...platformResourceStatusCheckKeys.lists(), variables] as const, + /** Detail query keys */ details: () => + [...platformResourceStatusCheckKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...platformResourceStatusCheckKeys.details(), id] as const, +} as const; +export const platformFunctionDeploymentKeys = { + /** All platformFunctionDeployment queries */ all: ['platformfunctiondeployment'] as const, + /** List query keys */ lists: () => [...platformFunctionDeploymentKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...platformFunctionDeploymentKeys.lists(), variables] as const, + /** Detail query keys */ details: () => + [...platformFunctionDeploymentKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...platformFunctionDeploymentKeys.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, + /** List query key with variables */ list: (variables?: object) => + [...platformResourceKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...platformResourceKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...platformResourceKeys.details(), id] as const, +} as const; +export const platformResourceDefinitionKeys = { + /** All platformResourceDefinition queries */ all: ['platformresourcedefinition'] as const, + /** List query keys */ lists: () => [...platformResourceDefinitionKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...platformResourceDefinitionKeys.lists(), variables] as const, + /** Detail query keys */ details: () => + [...platformResourceDefinitionKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...platformResourceDefinitionKeys.details(), id] as const, +} as const; +export const infraObjectKeys = { + /** All infraObject queries */ all: ['infraobject'] as const, + /** List query keys */ lists: () => [...infraObjectKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...infraObjectKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...infraObjectKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...infraObjectKeys.details(), id] as const, +} as const; export const functionGraphObjectKeys = { /** All functionGraphObject queries */ all: ['functiongraphobject'] as const, /** List query keys */ lists: () => [...functionGraphObjectKeys.all, 'list'] as const, @@ -82,6 +172,63 @@ export const functionGraphObjectKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...functionGraphObjectKeys.details(), id] as const, } as const; +export const platformFunctionDeploymentEventKeys = { + /** All platformFunctionDeploymentEvent queries */ all: [ + 'platformfunctiondeploymentevent', + ] as const, + /** List query keys */ lists: () => [...platformFunctionDeploymentEventKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...platformFunctionDeploymentEventKeys.lists(), variables] as const, + /** Detail query keys */ details: () => + [...platformFunctionDeploymentEventKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...platformFunctionDeploymentEventKeys.details(), id] as const, +} as const; +export const platformResourceEventKeys = { + /** All platformResourceEvent queries */ all: ['platformresourceevent'] as const, + /** List query keys */ lists: () => [...platformResourceEventKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...platformResourceEventKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...platformResourceEventKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...platformResourceEventKeys.details(), id] as const, +} as const; +export const resourceStatusCheckKeys = { + /** All resourceStatusCheck queries */ all: ['resourcestatuscheck'] as const, + /** List query keys */ lists: () => [...resourceStatusCheckKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...resourceStatusCheckKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...resourceStatusCheckKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...resourceStatusCheckKeys.details(), id] as const, +} as const; +export const functionDeploymentKeys = { + /** All functionDeployment queries */ all: ['functiondeployment'] as const, + /** List query keys */ lists: () => [...functionDeploymentKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...functionDeploymentKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...functionDeploymentKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...functionDeploymentKeys.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, + /** List query key with variables */ list: (variables?: object) => + [...resourceKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...resourceKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...resourceKeys.details(), id] as const, +} as const; +export const resourceDefinitionKeys = { + /** All resourceDefinition queries */ all: ['resourcedefinition'] as const, + /** List query keys */ lists: () => [...resourceDefinitionKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...resourceDefinitionKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...resourceDefinitionKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...resourceDefinitionKeys.details(), id] as const, +} as const; export const functionDeploymentEventKeys = { /** All functionDeploymentEvent queries */ all: ['functiondeploymentevent'] as const, /** List query keys */ lists: () => [...functionDeploymentEventKeys.all, 'list'] as const, @@ -91,14 +238,15 @@ export const functionDeploymentEventKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...functionDeploymentEventKeys.details(), id] as const, } as const; -export const orgFunctionExecutionLogKeys = { - /** All orgFunctionExecutionLog queries */ all: ['orgfunctionexecutionlog'] as const, - /** List query keys */ lists: () => [...orgFunctionExecutionLogKeys.all, 'list'] as const, +export const platformFunctionExecutionLogKeys = { + /** All platformFunctionExecutionLog queries */ all: ['platformfunctionexecutionlog'] as const, + /** List query keys */ lists: () => [...platformFunctionExecutionLogKeys.all, 'list'] as const, /** List query key with variables */ list: (variables?: object) => - [...orgFunctionExecutionLogKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...orgFunctionExecutionLogKeys.all, 'detail'] as const, + [...platformFunctionExecutionLogKeys.lists(), variables] as const, + /** Detail query keys */ details: () => + [...platformFunctionExecutionLogKeys.all, 'detail'] as const, /** Detail query key for specific item */ detail: (id: string | number) => - [...orgFunctionExecutionLogKeys.details(), id] as const, + [...platformFunctionExecutionLogKeys.details(), id] as const, } as const; export const resourceEventKeys = { /** All resourceEvent queries */ all: ['resourceevent'] as const, @@ -119,6 +267,15 @@ export const functionGraphExecutionOutputKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...functionGraphExecutionOutputKeys.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, + /** List query key with variables */ list: (variables?: object) => + [...infraCommitKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...infraCommitKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...infraCommitKeys.details(), id] as const, +} as const; export const functionGraphCommitKeys = { /** All functionGraphCommit queries */ all: ['functiongraphcommit'] as const, /** List query keys */ lists: () => [...functionGraphCommitKeys.all, 'list'] as const, @@ -128,15 +285,6 @@ export const functionGraphCommitKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...functionGraphCommitKeys.details(), id] as const, } as const; -export const secretDefinitionKeys = { - /** All secretDefinition queries */ all: ['secretdefinition'] as const, - /** List query keys */ lists: () => [...secretDefinitionKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...secretDefinitionKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...secretDefinitionKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...secretDefinitionKeys.details(), id] as const, -} as const; export const functionExecutionLogKeys = { /** All functionExecutionLog queries */ all: ['functionexecutionlog'] as const, /** List query keys */ lists: () => [...functionExecutionLogKeys.all, 'list'] as const, @@ -146,6 +294,47 @@ export const functionExecutionLogKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...functionExecutionLogKeys.details(), id] as const, } as const; +export const platformResourcesResolvedRequirementKeys = { + /** All platformResourcesResolvedRequirement queries */ all: [ + 'platformresourcesresolvedrequirement', + ] as const, + /** List query keys */ lists: () => + [...platformResourcesResolvedRequirementKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...platformResourcesResolvedRequirementKeys.lists(), variables] as const, + /** Detail query keys */ details: () => + [...platformResourcesResolvedRequirementKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...platformResourcesResolvedRequirementKeys.details(), id] as const, +} as const; +export const resourcesResolvedRequirementKeys = { + /** All resourcesResolvedRequirement queries */ all: ['resourcesresolvedrequirement'] as const, + /** List query keys */ lists: () => [...resourcesResolvedRequirementKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...resourcesResolvedRequirementKeys.lists(), variables] as const, + /** Detail query keys */ details: () => + [...resourcesResolvedRequirementKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...resourcesResolvedRequirementKeys.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, + /** List query key with variables */ list: (variables?: object) => + [...dbPresetKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...dbPresetKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...dbPresetKeys.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, + /** List query key with variables */ list: (variables?: object) => + [...platformNamespaceKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...platformNamespaceKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...platformNamespaceKeys.details(), id] as const, +} as const; export const functionGraphKeys = { /** All functionGraph queries */ all: ['functiongraph'] as const, /** List query keys */ lists: () => [...functionGraphKeys.all, 'list'] as const, @@ -167,23 +356,24 @@ export const functionGraphExecutionNodeStateKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...functionGraphExecutionNodeStateKeys.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, +export const namespaceKeys = { + /** All namespace queries */ all: ['namespace'] as const, + /** List query keys */ lists: () => [...namespaceKeys.all, 'list'] as const, /** List query key with variables */ list: (variables?: object) => - [...platformNamespaceKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...platformNamespaceKeys.all, 'detail'] as const, + [...namespaceKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...namespaceKeys.all, 'detail'] as const, /** Detail query key for specific item */ detail: (id: string | number) => - [...platformNamespaceKeys.details(), id] as const, + [...namespaceKeys.details(), id] as const, } as const; -export const orgFunctionInvocationKeys = { - /** All orgFunctionInvocation queries */ all: ['orgfunctioninvocation'] as const, - /** List query keys */ lists: () => [...orgFunctionInvocationKeys.all, 'list'] as const, +export const platformFunctionInvocationKeys = { + /** All platformFunctionInvocation queries */ all: ['platformfunctioninvocation'] as const, + /** List query keys */ lists: () => [...platformFunctionInvocationKeys.all, 'list'] as const, /** List query key with variables */ list: (variables?: object) => - [...orgFunctionInvocationKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...orgFunctionInvocationKeys.all, 'detail'] as const, + [...platformFunctionInvocationKeys.lists(), variables] as const, + /** Detail query keys */ details: () => + [...platformFunctionInvocationKeys.all, 'detail'] as const, /** Detail query key for specific item */ detail: (id: string | number) => - [...orgFunctionInvocationKeys.details(), id] as const, + [...platformFunctionInvocationKeys.details(), id] as const, } as const; export const functionInvocationKeys = { /** All functionInvocation queries */ all: ['functioninvocation'] as const, @@ -203,6 +393,24 @@ export const platformNamespaceEventKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...platformNamespaceEventKeys.details(), id] as const, } as const; +export const integrationProviderKeys = { + /** All integrationProvider queries */ all: ['integrationprovider'] as const, + /** List query keys */ lists: () => [...integrationProviderKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...integrationProviderKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...integrationProviderKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...integrationProviderKeys.details(), id] as const, +} as const; +export const namespaceEventKeys = { + /** All namespaceEvent queries */ all: ['namespaceevent'] as const, + /** List query keys */ lists: () => [...namespaceEventKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...namespaceEventKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...namespaceEventKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...namespaceEventKeys.details(), id] as const, +} as const; export const functionGraphExecutionKeys = { /** All functionGraphExecution queries */ all: ['functiongraphexecution'] as const, /** List query keys */ lists: () => [...functionGraphExecutionKeys.all, 'list'] as const, @@ -212,6 +420,16 @@ export const functionGraphExecutionKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...functionGraphExecutionKeys.details(), id] as const, } as const; +export const platformFunctionDefinitionKeys = { + /** All platformFunctionDefinition queries */ all: ['platformfunctiondefinition'] as const, + /** List query keys */ lists: () => [...platformFunctionDefinitionKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...platformFunctionDefinitionKeys.lists(), variables] as const, + /** Detail query keys */ details: () => + [...platformFunctionDefinitionKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...platformFunctionDefinitionKeys.details(), id] as const, +} as const; export const functionDefinitionKeys = { /** All functionDefinition queries */ all: ['functiondefinition'] as const, /** List query keys */ lists: () => [...functionDefinitionKeys.all, 'list'] as const, @@ -253,27 +471,49 @@ export const customQueryKeys = { * ``` */ export const queryKeys = { + infraGetAllRecord: infraGetAllRecordKeys, getAllRecord: getAllRecordKeys, + infraRef: infraRefKeys, + infraStore: infraStoreKeys, functionApiBinding: functionApiBindingKeys, - functionDeployment: functionDeploymentKeys, - resource: resourceKeys, functionGraphRef: functionGraphRefKeys, functionGraphStore: functionGraphStoreKeys, + platformFunctionApiBinding: platformFunctionApiBindingKeys, + platformResourcesRequirementsState: platformResourcesRequirementsStateKeys, + resourcesRequirementsState: resourcesRequirementsStateKeys, + platformResourceStatusCheck: platformResourceStatusCheckKeys, + platformFunctionDeployment: platformFunctionDeploymentKeys, + platformResource: platformResourceKeys, + platformResourceDefinition: platformResourceDefinitionKeys, + infraObject: infraObjectKeys, functionGraphObject: functionGraphObjectKeys, + platformFunctionDeploymentEvent: platformFunctionDeploymentEventKeys, + platformResourceEvent: platformResourceEventKeys, + resourceStatusCheck: resourceStatusCheckKeys, + functionDeployment: functionDeploymentKeys, + resource: resourceKeys, + resourceDefinition: resourceDefinitionKeys, functionDeploymentEvent: functionDeploymentEventKeys, - orgFunctionExecutionLog: orgFunctionExecutionLogKeys, + platformFunctionExecutionLog: platformFunctionExecutionLogKeys, resourceEvent: resourceEventKeys, functionGraphExecutionOutput: functionGraphExecutionOutputKeys, + infraCommit: infraCommitKeys, functionGraphCommit: functionGraphCommitKeys, - secretDefinition: secretDefinitionKeys, functionExecutionLog: functionExecutionLogKeys, + platformResourcesResolvedRequirement: platformResourcesResolvedRequirementKeys, + resourcesResolvedRequirement: resourcesResolvedRequirementKeys, + dbPreset: dbPresetKeys, + platformNamespace: platformNamespaceKeys, functionGraph: functionGraphKeys, functionGraphExecutionNodeState: functionGraphExecutionNodeStateKeys, - platformNamespace: platformNamespaceKeys, - orgFunctionInvocation: orgFunctionInvocationKeys, + namespace: namespaceKeys, + platformFunctionInvocation: platformFunctionInvocationKeys, functionInvocation: functionInvocationKeys, platformNamespaceEvent: platformNamespaceEventKeys, + integrationProvider: integrationProviderKeys, + namespaceEvent: namespaceEventKeys, functionGraphExecution: functionGraphExecutionKeys, + platformFunctionDefinition: platformFunctionDefinitionKeys, functionDefinition: functionDefinitionKeys, custom: customQueryKeys, } as const; diff --git a/sdk/constructive-react/src/compute/orm/README.md b/sdk/constructive-react/src/compute/orm/README.md index 2ea41b7b40..3aec082514 100644 --- a/sdk/constructive-react/src/compute/orm/README.md +++ b/sdk/constructive-react/src/compute/orm/README.md @@ -21,92 +21,730 @@ const db = createClient({ | Model | Operations | |-------|------------| +| `infraGetAllRecord` | findMany, findOne, create, update, delete | | `getAllRecord` | findMany, findOne, create, update, delete | +| `infraRef` | findMany, findOne, create, update, delete | +| `infraStore` | findMany, findOne, create, update, delete | | `functionApiBinding` | findMany, findOne, create, update, delete | -| `functionDeployment` | findMany, findOne, create, update, delete | -| `resource` | findMany, findOne, create, update, delete | | `functionGraphRef` | findMany, findOne, create, update, delete | | `functionGraphStore` | findMany, findOne, create, update, delete | +| `platformFunctionApiBinding` | findMany, findOne, create, update, delete | +| `platformResourcesRequirementsState` | findMany, findOne, create, update, delete | +| `resourcesRequirementsState` | findMany, findOne, create, update, delete | +| `platformResourceStatusCheck` | findMany, findOne, create, update, delete | +| `platformFunctionDeployment` | findMany, findOne, create, update, delete | +| `platformResource` | findMany, findOne, create, update, delete | +| `platformResourceDefinition` | findMany, findOne, create, update, delete | +| `infraObject` | findMany, findOne, create, update, delete | | `functionGraphObject` | findMany, findOne, create, update, delete | +| `platformFunctionDeploymentEvent` | findMany, findOne, create, update, delete | +| `platformResourceEvent` | findMany, findOne, create, update, delete | +| `resourceStatusCheck` | findMany, findOne, create, update, delete | +| `functionDeployment` | findMany, findOne, create, update, delete | +| `resource` | findMany, findOne, create, update, delete | +| `resourceDefinition` | findMany, findOne, create, update, delete | | `functionDeploymentEvent` | findMany, findOne, create, update, delete | -| `orgFunctionExecutionLog` | findMany, findOne, create, update, delete | +| `platformFunctionExecutionLog` | findMany, findOne, create, update, delete | | `resourceEvent` | findMany, findOne, create, update, delete | | `functionGraphExecutionOutput` | findMany, findOne, create, update, delete | +| `infraCommit` | findMany, findOne, create, update, delete | | `functionGraphCommit` | findMany, findOne, create, update, delete | -| `secretDefinition` | findMany, findOne, create, update, delete | | `functionExecutionLog` | findMany, findOne, create, update, delete | +| `platformResourcesResolvedRequirement` | findMany, findOne, create, update, delete | +| `resourcesResolvedRequirement` | findMany, findOne, create, update, delete | +| `dbPreset` | findMany, findOne, create, update, delete | +| `platformNamespace` | findMany, findOne, create, update, delete | | `functionGraph` | findMany, findOne, create, update, delete | | `functionGraphExecutionNodeState` | findMany, findOne, create, update, delete | -| `platformNamespace` | findMany, findOne, create, update, delete | -| `orgFunctionInvocation` | findMany, findOne, create, update, delete | +| `namespace` | findMany, findOne, create, update, delete | +| `platformFunctionInvocation` | findMany, findOne, create, update, delete | | `functionInvocation` | findMany, findOne, create, update, delete | | `platformNamespaceEvent` | findMany, findOne, create, update, delete | +| `integrationProvider` | findMany, findOne, create, update, delete | +| `namespaceEvent` | findMany, findOne, create, update, delete | | `functionGraphExecution` | findMany, findOne, create, update, delete | +| `platformFunctionDefinition` | findMany, findOne, create, update, delete | | `functionDefinition` | findMany, findOne, create, update, delete | -## Table Operations +## Table Operations + +### `db.infraGetAllRecord` + +CRUD operations for InfraGetAllRecord records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `path` | String | Yes | +| `data` | JSON | Yes | + +**Operations:** + +```typescript +// List all infraGetAllRecord records +const items = await db.infraGetAllRecord.findMany({ select: { path: true, data: true } }).execute(); + +// Get one by id +const item = await db.infraGetAllRecord.findOne({ id: '', select: { path: true, data: true } }).execute(); + +// Create +const created = await db.infraGetAllRecord.create({ data: { path: '', data: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.infraGetAllRecord.update({ where: { id: '' }, data: { path: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.infraGetAllRecord.delete({ where: { id: '' } }).execute(); +``` + +### `db.getAllRecord` + +CRUD operations for GetAllRecord records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `path` | String | Yes | +| `data` | JSON | Yes | + +**Operations:** + +```typescript +// List all getAllRecord records +const items = await db.getAllRecord.findMany({ select: { path: true, data: true } }).execute(); + +// Get one by id +const item = await db.getAllRecord.findOne({ id: '', select: { path: true, data: true } }).execute(); + +// Create +const created = await db.getAllRecord.create({ data: { path: '', data: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.getAllRecord.update({ where: { id: '' }, data: { path: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.getAllRecord.delete({ where: { id: '' } }).execute(); +``` + +### `db.infraRef` + +CRUD operations for InfraRef records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `name` | String | Yes | +| `scopeId` | UUID | Yes | +| `storeId` | UUID | Yes | +| `commitId` | UUID | Yes | + +**Operations:** + +```typescript +// List all infraRef records +const items = await db.infraRef.findMany({ select: { id: true, name: true, scopeId: true, storeId: true, commitId: true } }).execute(); + +// Get one by id +const item = await db.infraRef.findOne({ id: '', select: { id: true, name: true, scopeId: true, storeId: true, commitId: true } }).execute(); + +// Create +const created = await db.infraRef.create({ data: { name: '', scopeId: '', storeId: '', commitId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.infraRef.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.infraRef.delete({ where: { id: '' } }).execute(); +``` + +### `db.infraStore` + +CRUD operations for InfraStore records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `name` | String | Yes | +| `scopeId` | UUID | Yes | +| `hash` | UUID | Yes | +| `createdAt` | Datetime | No | + +**Operations:** + +```typescript +// List all infraStore records +const items = await db.infraStore.findMany({ select: { id: true, name: true, scopeId: true, hash: true, createdAt: true } }).execute(); + +// Get one by id +const item = await db.infraStore.findOne({ id: '', select: { id: true, name: true, scopeId: true, hash: true, createdAt: true } }).execute(); + +// Create +const created = await db.infraStore.create({ data: { name: '', scopeId: '', hash: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.infraStore.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.infraStore.delete({ where: { id: '' } }).execute(); +``` + +### `db.functionApiBinding` + +CRUD operations for FunctionApiBinding records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `functionDefinitionId` | UUID | Yes | +| `apiId` | UUID | Yes | +| `alias` | String | Yes | +| `config` | JSON | Yes | + +**Operations:** + +```typescript +// List all functionApiBinding records +const items = await db.functionApiBinding.findMany({ select: { id: true, functionDefinitionId: true, apiId: true, alias: true, config: true } }).execute(); + +// Get one by id +const item = await db.functionApiBinding.findOne({ id: '', select: { id: true, functionDefinitionId: true, apiId: true, alias: true, config: true } }).execute(); + +// Create +const created = await db.functionApiBinding.create({ data: { functionDefinitionId: '', apiId: '', alias: '', config: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.functionApiBinding.update({ where: { id: '' }, data: { functionDefinitionId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.functionApiBinding.delete({ where: { id: '' } }).execute(); +``` + +### `db.functionGraphRef` + +CRUD operations for FunctionGraphRef records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `name` | String | Yes | +| `scopeId` | UUID | Yes | +| `storeId` | UUID | Yes | +| `commitId` | UUID | Yes | + +**Operations:** + +```typescript +// List all functionGraphRef records +const items = await db.functionGraphRef.findMany({ select: { id: true, name: true, scopeId: true, storeId: true, commitId: true } }).execute(); + +// Get one by id +const item = await db.functionGraphRef.findOne({ id: '', select: { id: true, name: true, scopeId: true, storeId: true, commitId: true } }).execute(); + +// Create +const created = await db.functionGraphRef.create({ data: { name: '', scopeId: '', storeId: '', commitId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.functionGraphRef.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.functionGraphRef.delete({ where: { id: '' } }).execute(); +``` + +### `db.functionGraphStore` + +CRUD operations for FunctionGraphStore records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `name` | String | Yes | +| `scopeId` | UUID | Yes | +| `hash` | UUID | Yes | +| `createdAt` | Datetime | No | + +**Operations:** + +```typescript +// List all functionGraphStore records +const items = await db.functionGraphStore.findMany({ select: { id: true, name: true, scopeId: true, hash: true, createdAt: true } }).execute(); + +// Get one by id +const item = await db.functionGraphStore.findOne({ id: '', select: { id: true, name: true, scopeId: true, hash: true, createdAt: true } }).execute(); + +// Create +const created = await db.functionGraphStore.create({ data: { name: '', scopeId: '', hash: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.functionGraphStore.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.functionGraphStore.delete({ where: { id: '' } }).execute(); +``` + +### `db.platformFunctionApiBinding` + +CRUD operations for PlatformFunctionApiBinding records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `functionDefinitionId` | UUID | Yes | +| `apiId` | UUID | Yes | +| `alias` | String | Yes | +| `config` | JSON | Yes | + +**Operations:** + +```typescript +// List all platformFunctionApiBinding records +const items = await db.platformFunctionApiBinding.findMany({ select: { id: true, functionDefinitionId: true, apiId: true, alias: true, config: true } }).execute(); + +// Get one by id +const item = await db.platformFunctionApiBinding.findOne({ id: '', select: { id: true, functionDefinitionId: true, apiId: true, alias: true, config: true } }).execute(); + +// Create +const created = await db.platformFunctionApiBinding.create({ data: { functionDefinitionId: '', apiId: '', alias: '', config: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformFunctionApiBinding.update({ where: { id: '' }, data: { functionDefinitionId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformFunctionApiBinding.delete({ where: { id: '' } }).execute(); +``` + +### `db.platformResourcesRequirementsState` + +CRUD operations for PlatformResourcesRequirementsState records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `resourceId` | UUID | Yes | +| `slug` | String | Yes | +| `secretsHash` | String | Yes | +| `configHash` | String | Yes | +| `requirementsHash` | String | Yes | +| `secretsObjectName` | String | Yes | +| `configObjectName` | String | Yes | + +**Operations:** + +```typescript +// List all platformResourcesRequirementsState records +const items = await db.platformResourcesRequirementsState.findMany({ select: { resourceId: true, slug: true, secretsHash: true, configHash: true, requirementsHash: true, secretsObjectName: true, configObjectName: true } }).execute(); + +// Get one by id +const item = await db.platformResourcesRequirementsState.findOne({ id: '', select: { resourceId: true, slug: true, secretsHash: true, configHash: true, requirementsHash: true, secretsObjectName: true, configObjectName: true } }).execute(); + +// Create +const created = await db.platformResourcesRequirementsState.create({ data: { resourceId: '', slug: '', secretsHash: '', configHash: '', requirementsHash: '', secretsObjectName: '', configObjectName: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformResourcesRequirementsState.update({ where: { id: '' }, data: { resourceId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformResourcesRequirementsState.delete({ where: { id: '' } }).execute(); +``` + +### `db.resourcesRequirementsState` + +CRUD operations for ResourcesRequirementsState records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `resourceId` | UUID | Yes | +| `slug` | String | Yes | +| `secretsHash` | String | Yes | +| `configHash` | String | Yes | +| `requirementsHash` | String | Yes | +| `secretsObjectName` | String | Yes | +| `configObjectName` | String | Yes | + +**Operations:** + +```typescript +// List all resourcesRequirementsState records +const items = await db.resourcesRequirementsState.findMany({ select: { resourceId: true, slug: true, secretsHash: true, configHash: true, requirementsHash: true, secretsObjectName: true, configObjectName: true } }).execute(); + +// Get one by id +const item = await db.resourcesRequirementsState.findOne({ id: '', select: { resourceId: true, slug: true, secretsHash: true, configHash: true, requirementsHash: true, secretsObjectName: true, configObjectName: true } }).execute(); + +// Create +const created = await db.resourcesRequirementsState.create({ data: { resourceId: '', slug: '', secretsHash: '', configHash: '', requirementsHash: '', secretsObjectName: '', configObjectName: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.resourcesRequirementsState.update({ where: { id: '' }, data: { resourceId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.resourcesRequirementsState.delete({ where: { id: '' } }).execute(); +``` + +### `db.platformResourceStatusCheck` + +CRUD operations for PlatformResourceStatusCheck records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `resourceId` | UUID | Yes | +| `requestedBy` | UUID | Yes | +| `requestedAt` | Datetime | Yes | +| `completedAt` | Datetime | Yes | +| `status` | String | Yes | +| `result` | JSON | Yes | + +**Operations:** + +```typescript +// List all platformResourceStatusCheck records +const items = await db.platformResourceStatusCheck.findMany({ select: { id: true, resourceId: true, requestedBy: true, requestedAt: true, completedAt: true, status: true, result: true } }).execute(); + +// Get one by id +const item = await db.platformResourceStatusCheck.findOne({ id: '', select: { id: true, resourceId: true, requestedBy: true, requestedAt: true, completedAt: true, status: true, result: true } }).execute(); + +// Create +const created = await db.platformResourceStatusCheck.create({ data: { resourceId: '', requestedBy: '', requestedAt: '', completedAt: '', status: '', result: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformResourceStatusCheck.update({ where: { id: '' }, data: { resourceId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformResourceStatusCheck.delete({ where: { id: '' } }).execute(); +``` + +### `db.platformFunctionDeployment` + +CRUD operations for PlatformFunctionDeployment records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | +| `namespaceId` | UUID | Yes | +| `status` | String | Yes | +| `serviceUrl` | String | Yes | +| `serviceName` | String | Yes | +| `revision` | Int | Yes | +| `image` | String | Yes | +| `imageVersion` | String | Yes | +| `handlerName` | String | Yes | +| `concurrency` | Int | Yes | +| `scaleMin` | Int | Yes | +| `scaleMax` | Int | Yes | +| `timeoutSeconds` | Int | Yes | +| `resources` | JSON | Yes | +| `lastError` | String | Yes | +| `lastErrorAt` | Datetime | Yes | +| `errorCount` | Int | Yes | +| `labels` | JSON | Yes | +| `annotations` | JSON | Yes | + +**Operations:** + +```typescript +// List all platformFunctionDeployment records +const items = await db.platformFunctionDeployment.findMany({ select: { id: true, createdAt: true, updatedAt: true, namespaceId: true, status: true, serviceUrl: true, serviceName: true, revision: true, image: true, imageVersion: true, handlerName: true, concurrency: true, scaleMin: true, scaleMax: true, timeoutSeconds: true, resources: true, lastError: true, lastErrorAt: true, errorCount: true, labels: true, annotations: true } }).execute(); + +// Get one by id +const item = await db.platformFunctionDeployment.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, namespaceId: true, status: true, serviceUrl: true, serviceName: true, revision: true, image: true, imageVersion: true, handlerName: true, concurrency: true, scaleMin: true, scaleMax: true, timeoutSeconds: true, resources: true, lastError: true, lastErrorAt: true, errorCount: true, labels: true, annotations: true } }).execute(); + +// Create +const created = await db.platformFunctionDeployment.create({ data: { namespaceId: '', status: '', serviceUrl: '', serviceName: '', revision: '', image: '', imageVersion: '', handlerName: '', concurrency: '', scaleMin: '', scaleMax: '', timeoutSeconds: '', resources: '', lastError: '', lastErrorAt: '', errorCount: '', labels: '', annotations: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformFunctionDeployment.update({ where: { id: '' }, data: { namespaceId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformFunctionDeployment.delete({ where: { id: '' } }).execute(); +``` + +### `db.platformResource` + +CRUD operations for PlatformResource records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | +| `createdBy` | UUID | Yes | +| `updatedBy` | UUID | Yes | +| `namespaceId` | UUID | Yes | +| `kind` | String | Yes | +| `name` | String | Yes | +| `slug` | String | Yes | +| `spec` | JSON | Yes | +| `status` | String | Yes | +| `statusObserved` | JSON | Yes | +| `lastError` | String | Yes | +| `errorCount` | Int | Yes | +| `labels` | JSON | Yes | +| `annotations` | JSON | Yes | +| `requiredSecrets` | ResourceRequirement | Yes | +| `requiredConfigs` | ResourceRequirement | Yes | +| `integrations` | String | Yes | +| `resourceDefinitionId` | UUID | Yes | + +**Operations:** + +```typescript +// List all platformResource records +const items = await db.platformResource.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, namespaceId: true, kind: true, name: true, slug: true, spec: true, status: true, statusObserved: true, lastError: true, errorCount: true, labels: true, annotations: true, requiredSecrets: true, requiredConfigs: true, integrations: true, resourceDefinitionId: true } }).execute(); + +// Get one by id +const item = await db.platformResource.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, namespaceId: true, kind: true, name: true, slug: true, spec: true, status: true, statusObserved: true, lastError: true, errorCount: true, labels: true, annotations: true, requiredSecrets: true, requiredConfigs: true, integrations: true, resourceDefinitionId: true } }).execute(); + +// Create +const created = await db.platformResource.create({ data: { createdBy: '', updatedBy: '', namespaceId: '', kind: '', name: '', slug: '', spec: '', status: '', statusObserved: '', lastError: '', errorCount: '', labels: '', annotations: '', requiredSecrets: '', requiredConfigs: '', integrations: '', resourceDefinitionId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformResource.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformResource.delete({ where: { id: '' } }).execute(); +``` + +### `db.platformResourceDefinition` + +CRUD operations for PlatformResourceDefinition records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | +| `createdBy` | UUID | Yes | +| `updatedBy` | UUID | Yes | +| `namespaceId` | UUID | Yes | +| `kind` | String | Yes | +| `name` | String | Yes | +| `slug` | String | Yes | +| `description` | String | Yes | +| `defaultSpec` | JSON | Yes | +| `requiredSecrets` | ResourceRequirement | Yes | +| `requiredConfigs` | ResourceRequirement | Yes | +| `integrations` | String | Yes | +| `labels` | JSON | Yes | +| `annotations` | JSON | Yes | +| `stepUpMinAge` | Interval | Yes | + +**Operations:** + +```typescript +// List all platformResourceDefinition records +const items = await db.platformResourceDefinition.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, namespaceId: true, kind: true, name: true, slug: true, description: true, defaultSpec: true, requiredSecrets: true, requiredConfigs: true, integrations: true, labels: true, annotations: true, stepUpMinAge: true } }).execute(); + +// Get one by id +const item = await db.platformResourceDefinition.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, namespaceId: true, kind: true, name: true, slug: true, description: true, defaultSpec: true, requiredSecrets: true, requiredConfigs: true, integrations: true, labels: true, annotations: true, stepUpMinAge: true } }).execute(); + +// Create +const created = await db.platformResourceDefinition.create({ data: { createdBy: '', updatedBy: '', namespaceId: '', kind: '', name: '', slug: '', description: '', defaultSpec: '', requiredSecrets: '', requiredConfigs: '', integrations: '', labels: '', annotations: '', stepUpMinAge: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformResourceDefinition.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformResourceDefinition.delete({ where: { id: '' } }).execute(); +``` + +### `db.infraObject` + +CRUD operations for InfraObject records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `scopeId` | UUID | Yes | +| `kids` | UUID | Yes | +| `ktree` | String | Yes | +| `data` | JSON | Yes | +| `createdAt` | Datetime | No | + +**Operations:** -### `db.getAllRecord` +```typescript +// List all infraObject records +const items = await db.infraObject.findMany({ select: { id: true, scopeId: true, kids: true, ktree: true, data: true, createdAt: true } }).execute(); -CRUD operations for GetAllRecord records. +// Get one by id +const item = await db.infraObject.findOne({ id: '', select: { id: true, scopeId: true, kids: true, ktree: true, data: true, createdAt: true } }).execute(); + +// Create +const created = await db.infraObject.create({ data: { scopeId: '', kids: '', ktree: '', data: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.infraObject.update({ where: { id: '' }, data: { scopeId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.infraObject.delete({ where: { id: '' } }).execute(); +``` + +### `db.functionGraphObject` + +CRUD operations for FunctionGraphObject records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `path` | String | Yes | +| `id` | UUID | No | +| `scopeId` | UUID | Yes | +| `kids` | UUID | Yes | +| `ktree` | String | Yes | | `data` | JSON | Yes | +| `createdAt` | Datetime | No | **Operations:** ```typescript -// List all getAllRecord records -const items = await db.getAllRecord.findMany({ select: { path: true, data: true } }).execute(); +// List all functionGraphObject records +const items = await db.functionGraphObject.findMany({ select: { id: true, scopeId: true, kids: true, ktree: true, data: true, createdAt: true } }).execute(); // Get one by id -const item = await db.getAllRecord.findOne({ id: '', select: { path: true, data: true } }).execute(); +const item = await db.functionGraphObject.findOne({ id: '', select: { id: true, scopeId: true, kids: true, ktree: true, data: true, createdAt: true } }).execute(); // Create -const created = await db.getAllRecord.create({ data: { path: '', data: '' }, select: { id: true } }).execute(); +const created = await db.functionGraphObject.create({ data: { scopeId: '', kids: '', ktree: '', data: '' }, select: { id: true } }).execute(); // Update -const updated = await db.getAllRecord.update({ where: { id: '' }, data: { path: '' }, select: { id: true } }).execute(); +const updated = await db.functionGraphObject.update({ where: { id: '' }, data: { scopeId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.getAllRecord.delete({ where: { id: '' } }).execute(); +const deleted = await db.functionGraphObject.delete({ where: { id: '' } }).execute(); ``` -### `db.functionApiBinding` +### `db.platformFunctionDeploymentEvent` -CRUD operations for FunctionApiBinding records. +CRUD operations for PlatformFunctionDeploymentEvent records. **Fields:** | Field | Type | Editable | |-------|------|----------| +| `createdAt` | Datetime | No | | `id` | UUID | No | -| `functionDefinitionId` | UUID | Yes | -| `apiId` | UUID | Yes | -| `alias` | String | Yes | -| `config` | JSON | Yes | +| `deploymentId` | UUID | Yes | +| `eventType` | String | Yes | +| `actorId` | UUID | Yes | +| `message` | String | Yes | +| `metadata` | JSON | Yes | **Operations:** ```typescript -// List all functionApiBinding records -const items = await db.functionApiBinding.findMany({ select: { id: true, functionDefinitionId: true, apiId: true, alias: true, config: true } }).execute(); +// List all platformFunctionDeploymentEvent records +const items = await db.platformFunctionDeploymentEvent.findMany({ select: { createdAt: true, id: true, deploymentId: true, eventType: true, actorId: true, message: true, metadata: true } }).execute(); // Get one by id -const item = await db.functionApiBinding.findOne({ id: '', select: { id: true, functionDefinitionId: true, apiId: true, alias: true, config: true } }).execute(); +const item = await db.platformFunctionDeploymentEvent.findOne({ id: '', select: { createdAt: true, id: true, deploymentId: true, eventType: true, actorId: true, message: true, metadata: true } }).execute(); // Create -const created = await db.functionApiBinding.create({ data: { functionDefinitionId: '', apiId: '', alias: '', config: '' }, select: { id: true } }).execute(); +const created = await db.platformFunctionDeploymentEvent.create({ data: { deploymentId: '', eventType: '', actorId: '', message: '', metadata: '' }, select: { id: true } }).execute(); // Update -const updated = await db.functionApiBinding.update({ where: { id: '' }, data: { functionDefinitionId: '' }, select: { id: true } }).execute(); +const updated = await db.platformFunctionDeploymentEvent.update({ where: { id: '' }, data: { deploymentId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.functionApiBinding.delete({ where: { id: '' } }).execute(); +const deleted = await db.platformFunctionDeploymentEvent.delete({ where: { id: '' } }).execute(); +``` + +### `db.platformResourceEvent` + +CRUD operations for PlatformResourceEvent records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `createdAt` | Datetime | No | +| `id` | UUID | No | +| `resourceId` | UUID | Yes | +| `eventType` | String | Yes | +| `actorId` | UUID | Yes | +| `message` | String | Yes | +| `metadata` | JSON | Yes | + +**Operations:** + +```typescript +// List all platformResourceEvent records +const items = await db.platformResourceEvent.findMany({ select: { createdAt: true, id: true, resourceId: true, eventType: true, actorId: true, message: true, metadata: true } }).execute(); + +// Get one by id +const item = await db.platformResourceEvent.findOne({ id: '', select: { createdAt: true, id: true, resourceId: true, eventType: true, actorId: true, message: true, metadata: true } }).execute(); + +// Create +const created = await db.platformResourceEvent.create({ data: { resourceId: '', eventType: '', actorId: '', message: '', metadata: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformResourceEvent.update({ where: { id: '' }, data: { resourceId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformResourceEvent.delete({ where: { id: '' } }).execute(); +``` + +### `db.resourceStatusCheck` + +CRUD operations for ResourceStatusCheck records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `resourceId` | UUID | Yes | +| `databaseId` | UUID | Yes | +| `requestedBy` | UUID | Yes | +| `requestedAt` | Datetime | Yes | +| `completedAt` | Datetime | Yes | +| `status` | String | Yes | +| `result` | JSON | Yes | + +**Operations:** + +```typescript +// List all resourceStatusCheck records +const items = await db.resourceStatusCheck.findMany({ select: { id: true, resourceId: true, databaseId: true, requestedBy: true, requestedAt: true, completedAt: true, status: true, result: true } }).execute(); + +// Get one by id +const item = await db.resourceStatusCheck.findOne({ id: '', select: { id: true, resourceId: true, databaseId: true, requestedBy: true, requestedAt: true, completedAt: true, status: true, result: true } }).execute(); + +// Create +const created = await db.resourceStatusCheck.create({ data: { resourceId: '', databaseId: '', requestedBy: '', requestedAt: '', completedAt: '', status: '', result: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.resourceStatusCheck.update({ where: { id: '' }, data: { resourceId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.resourceStatusCheck.delete({ where: { id: '' } }).execute(); ``` ### `db.functionDeployment` @@ -120,13 +758,14 @@ CRUD operations for FunctionDeployment records. | `id` | UUID | No | | `createdAt` | Datetime | No | | `updatedAt` | Datetime | No | -| `functionDefinitionId` | UUID | Yes | | `namespaceId` | UUID | Yes | | `status` | String | Yes | | `serviceUrl` | String | Yes | | `serviceName` | String | Yes | | `revision` | Int | Yes | | `image` | String | Yes | +| `imageVersion` | String | Yes | +| `handlerName` | String | Yes | | `concurrency` | Int | Yes | | `scaleMin` | Int | Yes | | `scaleMax` | Int | Yes | @@ -143,16 +782,16 @@ CRUD operations for FunctionDeployment records. ```typescript // List all functionDeployment records -const items = await db.functionDeployment.findMany({ select: { id: true, createdAt: true, updatedAt: true, functionDefinitionId: true, namespaceId: true, status: true, serviceUrl: true, serviceName: true, revision: true, image: true, concurrency: true, scaleMin: true, scaleMax: true, timeoutSeconds: true, resources: true, lastError: true, lastErrorAt: true, errorCount: true, labels: true, annotations: true, databaseId: true } }).execute(); +const items = await db.functionDeployment.findMany({ select: { id: true, createdAt: true, updatedAt: true, namespaceId: true, status: true, serviceUrl: true, serviceName: true, revision: true, image: true, imageVersion: true, handlerName: true, concurrency: true, scaleMin: true, scaleMax: true, timeoutSeconds: true, resources: true, lastError: true, lastErrorAt: true, errorCount: true, labels: true, annotations: true, databaseId: true } }).execute(); // Get one by id -const item = await db.functionDeployment.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, functionDefinitionId: true, namespaceId: true, status: true, serviceUrl: true, serviceName: true, revision: true, image: true, concurrency: true, scaleMin: true, scaleMax: true, timeoutSeconds: true, resources: true, lastError: true, lastErrorAt: true, errorCount: true, labels: true, annotations: true, databaseId: true } }).execute(); +const item = await db.functionDeployment.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, namespaceId: true, status: true, serviceUrl: true, serviceName: true, revision: true, image: true, imageVersion: true, handlerName: true, concurrency: true, scaleMin: true, scaleMax: true, timeoutSeconds: true, resources: true, lastError: true, lastErrorAt: true, errorCount: true, labels: true, annotations: true, databaseId: true } }).execute(); // Create -const created = await db.functionDeployment.create({ data: { functionDefinitionId: '', namespaceId: '', status: '', serviceUrl: '', serviceName: '', revision: '', image: '', concurrency: '', scaleMin: '', scaleMax: '', timeoutSeconds: '', resources: '', lastError: '', lastErrorAt: '', errorCount: '', labels: '', annotations: '', databaseId: '' }, select: { id: true } }).execute(); +const created = await db.functionDeployment.create({ data: { namespaceId: '', status: '', serviceUrl: '', serviceName: '', revision: '', image: '', imageVersion: '', handlerName: '', concurrency: '', scaleMin: '', scaleMax: '', timeoutSeconds: '', resources: '', lastError: '', lastErrorAt: '', errorCount: '', labels: '', annotations: '', databaseId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.functionDeployment.update({ where: { id: '' }, data: { functionDefinitionId: '' }, select: { id: true } }).execute(); +const updated = await db.functionDeployment.update({ where: { id: '' }, data: { namespaceId: '' }, select: { id: true } }).execute(); // Delete const deleted = await db.functionDeployment.delete({ where: { id: '' } }).execute(); @@ -183,18 +822,22 @@ CRUD operations for Resource records. | `labels` | JSON | Yes | | `annotations` | JSON | Yes | | `databaseId` | UUID | Yes | +| `requiredSecrets` | ResourceRequirement | Yes | +| `requiredConfigs` | ResourceRequirement | Yes | +| `integrations` | String | Yes | +| `resourceDefinitionId` | UUID | Yes | **Operations:** ```typescript // List all resource records -const items = await db.resource.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, namespaceId: true, kind: true, name: true, slug: true, spec: true, status: true, statusObserved: true, lastError: true, errorCount: true, labels: true, annotations: true, databaseId: true } }).execute(); +const items = await db.resource.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, namespaceId: true, kind: true, name: true, slug: true, spec: true, status: true, statusObserved: true, lastError: true, errorCount: true, labels: true, annotations: true, databaseId: true, requiredSecrets: true, requiredConfigs: true, integrations: true, resourceDefinitionId: true } }).execute(); // Get one by id -const item = await db.resource.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, namespaceId: true, kind: true, name: true, slug: true, spec: true, status: true, statusObserved: true, lastError: true, errorCount: true, labels: true, annotations: true, databaseId: true } }).execute(); +const item = await db.resource.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, namespaceId: true, kind: true, name: true, slug: true, spec: true, status: true, statusObserved: true, lastError: true, errorCount: true, labels: true, annotations: true, databaseId: true, requiredSecrets: true, requiredConfigs: true, integrations: true, resourceDefinitionId: true } }).execute(); // Create -const created = await db.resource.create({ data: { createdBy: '', updatedBy: '', namespaceId: '', kind: '', name: '', slug: '', spec: '', status: '', statusObserved: '', lastError: '', errorCount: '', labels: '', annotations: '', databaseId: '' }, select: { id: true } }).execute(); +const created = await db.resource.create({ data: { createdBy: '', updatedBy: '', namespaceId: '', kind: '', name: '', slug: '', spec: '', status: '', statusObserved: '', lastError: '', errorCount: '', labels: '', annotations: '', databaseId: '', requiredSecrets: '', requiredConfigs: '', integrations: '', resourceDefinitionId: '' }, select: { id: true } }).execute(); // Update const updated = await db.resource.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); @@ -203,109 +846,127 @@ const updated = await db.resource.update({ where: { id: '' }, data: { crea const deleted = await db.resource.delete({ where: { id: '' } }).execute(); ``` -### `db.functionGraphRef` +### `db.resourceDefinition` -CRUD operations for FunctionGraphRef records. +CRUD operations for ResourceDefinition records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | +| `createdBy` | UUID | Yes | +| `updatedBy` | UUID | Yes | +| `namespaceId` | UUID | Yes | +| `kind` | String | Yes | | `name` | String | Yes | +| `slug` | String | Yes | +| `description` | String | Yes | +| `defaultSpec` | JSON | Yes | +| `requiredSecrets` | ResourceRequirement | Yes | +| `requiredConfigs` | ResourceRequirement | Yes | +| `integrations` | String | Yes | +| `labels` | JSON | Yes | +| `annotations` | JSON | Yes | +| `stepUpMinAge` | Interval | Yes | | `databaseId` | UUID | Yes | -| `storeId` | UUID | Yes | -| `commitId` | UUID | Yes | **Operations:** ```typescript -// List all functionGraphRef records -const items = await db.functionGraphRef.findMany({ select: { id: true, name: true, databaseId: true, storeId: true, commitId: true } }).execute(); +// List all resourceDefinition records +const items = await db.resourceDefinition.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, namespaceId: true, kind: true, name: true, slug: true, description: true, defaultSpec: true, requiredSecrets: true, requiredConfigs: true, integrations: true, labels: true, annotations: true, stepUpMinAge: true, databaseId: true } }).execute(); // Get one by id -const item = await db.functionGraphRef.findOne({ id: '', select: { id: true, name: true, databaseId: true, storeId: true, commitId: true } }).execute(); +const item = await db.resourceDefinition.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, namespaceId: true, kind: true, name: true, slug: true, description: true, defaultSpec: true, requiredSecrets: true, requiredConfigs: true, integrations: true, labels: true, annotations: true, stepUpMinAge: true, databaseId: true } }).execute(); // Create -const created = await db.functionGraphRef.create({ data: { name: '', databaseId: '', storeId: '', commitId: '' }, select: { id: true } }).execute(); +const created = await db.resourceDefinition.create({ data: { createdBy: '', updatedBy: '', namespaceId: '', kind: '', name: '', slug: '', description: '', defaultSpec: '', requiredSecrets: '', requiredConfigs: '', integrations: '', labels: '', annotations: '', stepUpMinAge: '', databaseId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.functionGraphRef.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.resourceDefinition.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.functionGraphRef.delete({ where: { id: '' } }).execute(); +const deleted = await db.resourceDefinition.delete({ where: { id: '' } }).execute(); ``` -### `db.functionGraphStore` +### `db.functionDeploymentEvent` -CRUD operations for FunctionGraphStore records. +CRUD operations for FunctionDeploymentEvent records. **Fields:** | Field | Type | Editable | |-------|------|----------| +| `createdAt` | Datetime | No | | `id` | UUID | No | -| `name` | String | Yes | +| `deploymentId` | UUID | Yes | +| `eventType` | String | Yes | +| `actorId` | UUID | Yes | +| `message` | String | Yes | +| `metadata` | JSON | Yes | | `databaseId` | UUID | Yes | -| `hash` | UUID | Yes | -| `createdAt` | Datetime | No | **Operations:** ```typescript -// List all functionGraphStore records -const items = await db.functionGraphStore.findMany({ select: { id: true, name: true, databaseId: true, hash: true, createdAt: true } }).execute(); +// List all functionDeploymentEvent records +const items = await db.functionDeploymentEvent.findMany({ select: { createdAt: true, id: true, deploymentId: true, eventType: true, actorId: true, message: true, metadata: true, databaseId: true } }).execute(); // Get one by id -const item = await db.functionGraphStore.findOne({ id: '', select: { id: true, name: true, databaseId: true, hash: true, createdAt: true } }).execute(); +const item = await db.functionDeploymentEvent.findOne({ id: '', select: { createdAt: true, id: true, deploymentId: true, eventType: true, actorId: true, message: true, metadata: true, databaseId: true } }).execute(); // Create -const created = await db.functionGraphStore.create({ data: { name: '', databaseId: '', hash: '' }, select: { id: true } }).execute(); +const created = await db.functionDeploymentEvent.create({ data: { deploymentId: '', eventType: '', actorId: '', message: '', metadata: '', databaseId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.functionGraphStore.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.functionDeploymentEvent.update({ where: { id: '' }, data: { deploymentId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.functionGraphStore.delete({ where: { id: '' } }).execute(); +const deleted = await db.functionDeploymentEvent.delete({ where: { id: '' } }).execute(); ``` -### `db.functionGraphObject` +### `db.platformFunctionExecutionLog` -CRUD operations for FunctionGraphObject records. +CRUD operations for PlatformFunctionExecutionLog records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `kids` | UUID | Yes | -| `ktree` | String | Yes | -| `data` | JSON | Yes | | `createdAt` | Datetime | No | +| `id` | UUID | No | +| `invocationId` | UUID | Yes | +| `taskIdentifier` | String | Yes | +| `logLevel` | String | Yes | +| `message` | String | Yes | +| `metadata` | JSON | Yes | +| `actorId` | UUID | Yes | **Operations:** ```typescript -// List all functionGraphObject records -const items = await db.functionGraphObject.findMany({ select: { id: true, databaseId: true, kids: true, ktree: true, data: true, createdAt: true } }).execute(); +// List all platformFunctionExecutionLog records +const items = await db.platformFunctionExecutionLog.findMany({ select: { createdAt: true, id: true, invocationId: true, taskIdentifier: true, logLevel: true, message: true, metadata: true, actorId: true } }).execute(); // Get one by id -const item = await db.functionGraphObject.findOne({ id: '', select: { id: true, databaseId: true, kids: true, ktree: true, data: true, createdAt: true } }).execute(); +const item = await db.platformFunctionExecutionLog.findOne({ id: '', select: { createdAt: true, id: true, invocationId: true, taskIdentifier: true, logLevel: true, message: true, metadata: true, actorId: true } }).execute(); // Create -const created = await db.functionGraphObject.create({ data: { databaseId: '', kids: '', ktree: '', data: '' }, select: { id: true } }).execute(); +const created = await db.platformFunctionExecutionLog.create({ data: { invocationId: '', taskIdentifier: '', logLevel: '', message: '', metadata: '', actorId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.functionGraphObject.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.platformFunctionExecutionLog.update({ where: { id: '' }, data: { invocationId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.functionGraphObject.delete({ where: { id: '' } }).execute(); +const deleted = await db.platformFunctionExecutionLog.delete({ where: { id: '' } }).execute(); ``` -### `db.functionDeploymentEvent` +### `db.resourceEvent` -CRUD operations for FunctionDeploymentEvent records. +CRUD operations for ResourceEvent records. **Fields:** @@ -313,7 +974,7 @@ CRUD operations for FunctionDeploymentEvent records. |-------|------|----------| | `createdAt` | Datetime | No | | `id` | UUID | No | -| `deploymentId` | UUID | Yes | +| `resourceId` | UUID | Yes | | `eventType` | String | Yes | | `actorId` | UUID | Yes | | `message` | String | Yes | @@ -323,25 +984,25 @@ CRUD operations for FunctionDeploymentEvent records. **Operations:** ```typescript -// List all functionDeploymentEvent records -const items = await db.functionDeploymentEvent.findMany({ select: { createdAt: true, id: true, deploymentId: true, eventType: true, actorId: true, message: true, metadata: true, databaseId: true } }).execute(); +// List all resourceEvent records +const items = await db.resourceEvent.findMany({ select: { createdAt: true, id: true, resourceId: true, eventType: true, actorId: true, message: true, metadata: true, databaseId: true } }).execute(); // Get one by id -const item = await db.functionDeploymentEvent.findOne({ id: '', select: { createdAt: true, id: true, deploymentId: true, eventType: true, actorId: true, message: true, metadata: true, databaseId: true } }).execute(); +const item = await db.resourceEvent.findOne({ id: '', select: { createdAt: true, id: true, resourceId: true, eventType: true, actorId: true, message: true, metadata: true, databaseId: true } }).execute(); // Create -const created = await db.functionDeploymentEvent.create({ data: { deploymentId: '', eventType: '', actorId: '', message: '', metadata: '', databaseId: '' }, select: { id: true } }).execute(); +const created = await db.resourceEvent.create({ data: { resourceId: '', eventType: '', actorId: '', message: '', metadata: '', databaseId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.functionDeploymentEvent.update({ where: { id: '' }, data: { deploymentId: '' }, select: { id: true } }).execute(); +const updated = await db.resourceEvent.update({ where: { id: '' }, data: { resourceId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.functionDeploymentEvent.delete({ where: { id: '' } }).execute(); +const deleted = await db.resourceEvent.delete({ where: { id: '' } }).execute(); ``` -### `db.orgFunctionExecutionLog` +### `db.functionGraphExecutionOutput` -CRUD operations for OrgFunctionExecutionLog records. +CRUD operations for FunctionGraphExecutionOutput records. **Fields:** @@ -349,35 +1010,106 @@ CRUD operations for OrgFunctionExecutionLog records. |-------|------|----------| | `createdAt` | Datetime | No | | `id` | UUID | No | -| `invocationId` | UUID | Yes | -| `taskIdentifier` | String | Yes | -| `logLevel` | String | Yes | +| `scopeId` | UUID | Yes | +| `hash` | Base64EncodedBinary | Yes | +| `data` | JSON | Yes | + +**Operations:** + +```typescript +// List all functionGraphExecutionOutput records +const items = await db.functionGraphExecutionOutput.findMany({ select: { createdAt: true, id: true, scopeId: true, hash: true, data: true } }).execute(); + +// Get one by id +const item = await db.functionGraphExecutionOutput.findOne({ id: '', select: { createdAt: true, id: true, scopeId: true, hash: true, data: true } }).execute(); + +// Create +const created = await db.functionGraphExecutionOutput.create({ data: { scopeId: '', hash: '', data: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.functionGraphExecutionOutput.update({ where: { id: '' }, data: { scopeId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.functionGraphExecutionOutput.delete({ where: { id: '' } }).execute(); +``` + +### `db.infraCommit` + +CRUD operations for InfraCommit records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | | `message` | String | Yes | -| `metadata` | JSON | Yes | -| `actorId` | UUID | Yes | +| `scopeId` | UUID | Yes | +| `storeId` | UUID | Yes | +| `parentIds` | UUID | Yes | +| `authorId` | UUID | Yes | +| `committerId` | UUID | Yes | +| `treeId` | UUID | Yes | +| `date` | Datetime | Yes | **Operations:** ```typescript -// List all orgFunctionExecutionLog records -const items = await db.orgFunctionExecutionLog.findMany({ select: { createdAt: true, id: true, invocationId: true, taskIdentifier: true, logLevel: true, message: true, metadata: true, actorId: true } }).execute(); +// List all infraCommit records +const items = await db.infraCommit.findMany({ select: { id: true, message: true, scopeId: true, storeId: true, parentIds: true, authorId: true, committerId: true, treeId: true, date: true } }).execute(); // Get one by id -const item = await db.orgFunctionExecutionLog.findOne({ id: '', select: { createdAt: true, id: true, invocationId: true, taskIdentifier: true, logLevel: true, message: true, metadata: true, actorId: true } }).execute(); +const item = await db.infraCommit.findOne({ id: '', select: { id: true, message: true, scopeId: true, storeId: true, parentIds: true, authorId: true, committerId: true, treeId: true, date: true } }).execute(); // Create -const created = await db.orgFunctionExecutionLog.create({ data: { invocationId: '', taskIdentifier: '', logLevel: '', message: '', metadata: '', actorId: '' }, select: { id: true } }).execute(); +const created = await db.infraCommit.create({ data: { message: '', scopeId: '', storeId: '', parentIds: '', authorId: '', committerId: '', treeId: '', date: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgFunctionExecutionLog.update({ where: { id: '' }, data: { invocationId: '' }, select: { id: true } }).execute(); +const updated = await db.infraCommit.update({ where: { id: '' }, data: { message: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgFunctionExecutionLog.delete({ where: { id: '' } }).execute(); +const deleted = await db.infraCommit.delete({ where: { id: '' } }).execute(); ``` -### `db.resourceEvent` +### `db.functionGraphCommit` -CRUD operations for ResourceEvent records. +CRUD operations for FunctionGraphCommit records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `message` | String | Yes | +| `scopeId` | UUID | Yes | +| `storeId` | UUID | Yes | +| `parentIds` | UUID | Yes | +| `authorId` | UUID | Yes | +| `committerId` | UUID | Yes | +| `treeId` | UUID | Yes | +| `date` | Datetime | Yes | + +**Operations:** + +```typescript +// List all functionGraphCommit records +const items = await db.functionGraphCommit.findMany({ select: { id: true, message: true, scopeId: true, storeId: true, parentIds: true, authorId: true, committerId: true, treeId: true, date: true } }).execute(); + +// Get one by id +const item = await db.functionGraphCommit.findOne({ id: '', select: { id: true, message: true, scopeId: true, storeId: true, parentIds: true, authorId: true, committerId: true, treeId: true, date: true } }).execute(); + +// Create +const created = await db.functionGraphCommit.create({ data: { message: '', scopeId: '', storeId: '', parentIds: '', authorId: '', committerId: '', treeId: '', date: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.functionGraphCommit.update({ where: { id: '' }, data: { message: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.functionGraphCommit.delete({ where: { id: '' } }).execute(); +``` + +### `db.functionExecutionLog` + +CRUD operations for FunctionExecutionLog records. **Fields:** @@ -385,174 +1117,186 @@ CRUD operations for ResourceEvent records. |-------|------|----------| | `createdAt` | Datetime | No | | `id` | UUID | No | -| `resourceId` | UUID | Yes | -| `eventType` | String | Yes | -| `actorId` | UUID | Yes | +| `invocationId` | UUID | Yes | +| `taskIdentifier` | String | Yes | +| `logLevel` | String | Yes | | `message` | String | Yes | | `metadata` | JSON | Yes | +| `actorId` | UUID | Yes | | `databaseId` | UUID | Yes | **Operations:** ```typescript -// List all resourceEvent records -const items = await db.resourceEvent.findMany({ select: { createdAt: true, id: true, resourceId: true, eventType: true, actorId: true, message: true, metadata: true, databaseId: true } }).execute(); +// List all functionExecutionLog records +const items = await db.functionExecutionLog.findMany({ select: { createdAt: true, id: true, invocationId: true, taskIdentifier: true, logLevel: true, message: true, metadata: true, actorId: true, databaseId: true } }).execute(); // Get one by id -const item = await db.resourceEvent.findOne({ id: '', select: { createdAt: true, id: true, resourceId: true, eventType: true, actorId: true, message: true, metadata: true, databaseId: true } }).execute(); +const item = await db.functionExecutionLog.findOne({ id: '', select: { createdAt: true, id: true, invocationId: true, taskIdentifier: true, logLevel: true, message: true, metadata: true, actorId: true, databaseId: true } }).execute(); // Create -const created = await db.resourceEvent.create({ data: { resourceId: '', eventType: '', actorId: '', message: '', metadata: '', databaseId: '' }, select: { id: true } }).execute(); +const created = await db.functionExecutionLog.create({ data: { invocationId: '', taskIdentifier: '', logLevel: '', message: '', metadata: '', actorId: '', databaseId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.resourceEvent.update({ where: { id: '' }, data: { resourceId: '' }, select: { id: true } }).execute(); +const updated = await db.functionExecutionLog.update({ where: { id: '' }, data: { invocationId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.resourceEvent.delete({ where: { id: '' } }).execute(); +const deleted = await db.functionExecutionLog.delete({ where: { id: '' } }).execute(); ``` -### `db.functionGraphExecutionOutput` +### `db.platformResourcesResolvedRequirement` -CRUD operations for FunctionGraphExecutionOutput records. +CRUD operations for PlatformResourcesResolvedRequirement records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `createdAt` | Datetime | No | -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `hash` | Base64EncodedBinary | Yes | -| `data` | JSON | Yes | +| `resourceId` | UUID | Yes | +| `slug` | String | Yes | +| `namespaceId` | UUID | Yes | +| `requirementKind` | String | Yes | +| `name` | String | Yes | +| `required` | Boolean | Yes | +| `atomId` | UUID | Yes | +| `present` | Boolean | Yes | +| `secretsObjectName` | String | Yes | +| `configObjectName` | String | Yes | **Operations:** ```typescript -// List all functionGraphExecutionOutput records -const items = await db.functionGraphExecutionOutput.findMany({ select: { createdAt: true, id: true, databaseId: true, hash: true, data: true } }).execute(); +// List all platformResourcesResolvedRequirement records +const items = await db.platformResourcesResolvedRequirement.findMany({ select: { resourceId: true, slug: true, namespaceId: true, requirementKind: true, name: true, required: true, atomId: true, present: true, secretsObjectName: true, configObjectName: true } }).execute(); // Get one by id -const item = await db.functionGraphExecutionOutput.findOne({ id: '', select: { createdAt: true, id: true, databaseId: true, hash: true, data: true } }).execute(); +const item = await db.platformResourcesResolvedRequirement.findOne({ id: '', select: { resourceId: true, slug: true, namespaceId: true, requirementKind: true, name: true, required: true, atomId: true, present: true, secretsObjectName: true, configObjectName: true } }).execute(); // Create -const created = await db.functionGraphExecutionOutput.create({ data: { databaseId: '', hash: '', data: '' }, select: { id: true } }).execute(); +const created = await db.platformResourcesResolvedRequirement.create({ data: { resourceId: '', slug: '', namespaceId: '', requirementKind: '', name: '', required: '', atomId: '', present: '', secretsObjectName: '', configObjectName: '' }, select: { id: true } }).execute(); // Update -const updated = await db.functionGraphExecutionOutput.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.platformResourcesResolvedRequirement.update({ where: { id: '' }, data: { resourceId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.functionGraphExecutionOutput.delete({ where: { id: '' } }).execute(); +const deleted = await db.platformResourcesResolvedRequirement.delete({ where: { id: '' } }).execute(); ``` -### `db.functionGraphCommit` +### `db.resourcesResolvedRequirement` -CRUD operations for FunctionGraphCommit records. +CRUD operations for ResourcesResolvedRequirement records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `id` | UUID | No | -| `message` | String | Yes | -| `databaseId` | UUID | Yes | -| `storeId` | UUID | Yes | -| `parentIds` | UUID | Yes | -| `authorId` | UUID | Yes | -| `committerId` | UUID | Yes | -| `treeId` | UUID | Yes | -| `date` | Datetime | Yes | +| `resourceId` | UUID | Yes | +| `slug` | String | Yes | +| `namespaceId` | UUID | Yes | +| `requirementKind` | String | Yes | +| `name` | String | Yes | +| `required` | Boolean | Yes | +| `atomId` | UUID | Yes | +| `present` | Boolean | Yes | +| `secretsObjectName` | String | Yes | +| `configObjectName` | String | Yes | **Operations:** ```typescript -// List all functionGraphCommit records -const items = await db.functionGraphCommit.findMany({ select: { id: true, message: true, databaseId: true, storeId: true, parentIds: true, authorId: true, committerId: true, treeId: true, date: true } }).execute(); +// List all resourcesResolvedRequirement records +const items = await db.resourcesResolvedRequirement.findMany({ select: { resourceId: true, slug: true, namespaceId: true, requirementKind: true, name: true, required: true, atomId: true, present: true, secretsObjectName: true, configObjectName: true } }).execute(); // Get one by id -const item = await db.functionGraphCommit.findOne({ id: '', select: { id: true, message: true, databaseId: true, storeId: true, parentIds: true, authorId: true, committerId: true, treeId: true, date: true } }).execute(); +const item = await db.resourcesResolvedRequirement.findOne({ id: '', select: { resourceId: true, slug: true, namespaceId: true, requirementKind: true, name: true, required: true, atomId: true, present: true, secretsObjectName: true, configObjectName: true } }).execute(); // Create -const created = await db.functionGraphCommit.create({ data: { message: '', databaseId: '', storeId: '', parentIds: '', authorId: '', committerId: '', treeId: '', date: '' }, select: { id: true } }).execute(); +const created = await db.resourcesResolvedRequirement.create({ data: { resourceId: '', slug: '', namespaceId: '', requirementKind: '', name: '', required: '', atomId: '', present: '', secretsObjectName: '', configObjectName: '' }, select: { id: true } }).execute(); // Update -const updated = await db.functionGraphCommit.update({ where: { id: '' }, data: { message: '' }, select: { id: true } }).execute(); +const updated = await db.resourcesResolvedRequirement.update({ where: { id: '' }, data: { resourceId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.functionGraphCommit.delete({ where: { id: '' } }).execute(); +const deleted = await db.resourcesResolvedRequirement.delete({ where: { id: '' } }).execute(); ``` -### `db.secretDefinition` +### `db.dbPreset` -CRUD operations for SecretDefinition records. +CRUD operations for DbPreset records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | +| `storeId` | UUID | Yes | +| `slug` | String | Yes | +| `definition` | JSON | Yes | +| `commitId` | UUID | Yes | +| `modulesHash` | UUID | Yes | +| `label` | String | Yes | +| `description` | String | Yes | +| `active` | Boolean | Yes | | `createdAt` | Datetime | No | | `updatedAt` | Datetime | No | -| `name` | String | Yes | -| `description` | String | Yes | -| `isBuiltIn` | Boolean | Yes | -| `labels` | JSON | Yes | -| `annotations` | JSON | Yes | -| `databaseId` | UUID | Yes | **Operations:** ```typescript -// List all secretDefinition records -const items = await db.secretDefinition.findMany({ select: { id: true, createdAt: true, updatedAt: true, name: true, description: true, isBuiltIn: true, labels: true, annotations: true, databaseId: true } }).execute(); +// List all dbPreset records +const items = await db.dbPreset.findMany({ select: { id: true, storeId: true, slug: true, definition: true, commitId: true, modulesHash: true, label: true, description: true, active: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.secretDefinition.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, name: true, description: true, isBuiltIn: true, labels: true, annotations: true, databaseId: true } }).execute(); +const item = await db.dbPreset.findOne({ id: '', select: { id: true, storeId: true, slug: true, definition: true, commitId: true, modulesHash: true, label: true, description: true, active: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.secretDefinition.create({ data: { name: '', description: '', isBuiltIn: '', labels: '', annotations: '', databaseId: '' }, select: { id: true } }).execute(); +const created = await db.dbPreset.create({ data: { storeId: '', slug: '', definition: '', commitId: '', modulesHash: '', label: '', description: '', active: '' }, select: { id: true } }).execute(); // Update -const updated = await db.secretDefinition.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.dbPreset.update({ where: { id: '' }, data: { storeId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.secretDefinition.delete({ where: { id: '' } }).execute(); +const deleted = await db.dbPreset.delete({ where: { id: '' } }).execute(); ``` -### `db.functionExecutionLog` +### `db.platformNamespace` -CRUD operations for FunctionExecutionLog records. +CRUD operations for PlatformNamespace records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `createdAt` | Datetime | No | | `id` | UUID | No | -| `invocationId` | UUID | Yes | -| `taskIdentifier` | String | Yes | -| `logLevel` | String | Yes | -| `message` | String | Yes | -| `metadata` | JSON | Yes | -| `actorId` | UUID | Yes | -| `databaseId` | UUID | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | +| `name` | String | Yes | +| `namespaceName` | String | Yes | +| `description` | String | Yes | +| `isActive` | Boolean | Yes | +| `status` | String | Yes | +| `lastError` | String | Yes | +| `labels` | JSON | Yes | +| `annotations` | JSON | Yes | +| `isManaged` | Boolean | Yes | **Operations:** ```typescript -// List all functionExecutionLog records -const items = await db.functionExecutionLog.findMany({ select: { createdAt: true, id: true, invocationId: true, taskIdentifier: true, logLevel: true, message: true, metadata: true, actorId: true, databaseId: true } }).execute(); +// List all platformNamespace records +const items = await db.platformNamespace.findMany({ select: { id: true, createdAt: true, updatedAt: true, name: true, namespaceName: true, description: true, isActive: true, status: true, lastError: true, labels: true, annotations: true, isManaged: true } }).execute(); // Get one by id -const item = await db.functionExecutionLog.findOne({ id: '', select: { createdAt: true, id: true, invocationId: true, taskIdentifier: true, logLevel: true, message: true, metadata: true, actorId: true, databaseId: true } }).execute(); +const item = await db.platformNamespace.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, name: true, namespaceName: true, description: true, isActive: true, status: true, lastError: true, labels: true, annotations: true, isManaged: true } }).execute(); // Create -const created = await db.functionExecutionLog.create({ data: { invocationId: '', taskIdentifier: '', logLevel: '', message: '', metadata: '', actorId: '', databaseId: '' }, select: { id: true } }).execute(); +const created = await db.platformNamespace.create({ data: { name: '', namespaceName: '', description: '', isActive: '', status: '', lastError: '', labels: '', annotations: '', isManaged: '' }, select: { id: true } }).execute(); // Update -const updated = await db.functionExecutionLog.update({ where: { id: '' }, data: { invocationId: '' }, select: { id: true } }).execute(); +const updated = await db.platformNamespace.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.functionExecutionLog.delete({ where: { id: '' } }).execute(); +const deleted = await db.platformNamespace.delete({ where: { id: '' } }).execute(); ``` ### `db.functionGraph` @@ -564,7 +1308,7 @@ CRUD operations for FunctionGraph records. | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `databaseId` | UUID | Yes | +| `scopeId` | UUID | Yes | | `storeId` | UUID | Yes | | `context` | String | Yes | | `name` | String | Yes | @@ -580,16 +1324,16 @@ CRUD operations for FunctionGraph records. ```typescript // List all functionGraph records -const items = await db.functionGraph.findMany({ select: { id: true, databaseId: true, storeId: true, context: true, name: true, description: true, definitionsCommitId: true, isValid: true, validationErrors: true, createdBy: true, createdAt: true, updatedAt: true } }).execute(); +const items = await db.functionGraph.findMany({ select: { id: true, scopeId: true, storeId: true, context: true, name: true, description: true, definitionsCommitId: true, isValid: true, validationErrors: true, createdBy: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.functionGraph.findOne({ id: '', select: { id: true, databaseId: true, storeId: true, context: true, name: true, description: true, definitionsCommitId: true, isValid: true, validationErrors: true, createdBy: true, createdAt: true, updatedAt: true } }).execute(); +const item = await db.functionGraph.findOne({ id: '', select: { id: true, scopeId: true, storeId: true, context: true, name: true, description: true, definitionsCommitId: true, isValid: true, validationErrors: true, createdBy: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.functionGraph.create({ data: { databaseId: '', storeId: '', context: '', name: '', description: '', definitionsCommitId: '', isValid: '', validationErrors: '', createdBy: '' }, select: { id: true } }).execute(); +const created = await db.functionGraph.create({ data: { scopeId: '', storeId: '', context: '', name: '', description: '', definitionsCommitId: '', isValid: '', validationErrors: '', createdBy: '' }, select: { id: true } }).execute(); // Update -const updated = await db.functionGraph.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.functionGraph.update({ where: { id: '' }, data: { scopeId: '' }, select: { id: true } }).execute(); // Delete const deleted = await db.functionGraph.delete({ where: { id: '' } }).execute(); @@ -606,7 +1350,7 @@ CRUD operations for FunctionGraphExecutionNodeState records. | `createdAt` | Datetime | No | | `id` | UUID | No | | `executionId` | UUID | Yes | -| `databaseId` | UUID | Yes | +| `scopeId` | UUID | Yes | | `nodeName` | String | Yes | | `nodePath` | String | Yes | | `status` | String | Yes | @@ -620,13 +1364,13 @@ CRUD operations for FunctionGraphExecutionNodeState records. ```typescript // List all functionGraphExecutionNodeState records -const items = await db.functionGraphExecutionNodeState.findMany({ select: { createdAt: true, id: true, executionId: true, databaseId: true, nodeName: true, nodePath: true, status: true, startedAt: true, completedAt: true, errorCode: true, errorMessage: true, outputId: true } }).execute(); +const items = await db.functionGraphExecutionNodeState.findMany({ select: { createdAt: true, id: true, executionId: true, scopeId: true, nodeName: true, nodePath: true, status: true, startedAt: true, completedAt: true, errorCode: true, errorMessage: true, outputId: true } }).execute(); // Get one by id -const item = await db.functionGraphExecutionNodeState.findOne({ id: '', select: { createdAt: true, id: true, executionId: true, databaseId: true, nodeName: true, nodePath: true, status: true, startedAt: true, completedAt: true, errorCode: true, errorMessage: true, outputId: true } }).execute(); +const item = await db.functionGraphExecutionNodeState.findOne({ id: '', select: { createdAt: true, id: true, executionId: true, scopeId: true, nodeName: true, nodePath: true, status: true, startedAt: true, completedAt: true, errorCode: true, errorMessage: true, outputId: true } }).execute(); // Create -const created = await db.functionGraphExecutionNodeState.create({ data: { executionId: '', databaseId: '', nodeName: '', nodePath: '', status: '', startedAt: '', completedAt: '', errorCode: '', errorMessage: '', outputId: '' }, select: { id: true } }).execute(); +const created = await db.functionGraphExecutionNodeState.create({ data: { executionId: '', scopeId: '', nodeName: '', nodePath: '', status: '', startedAt: '', completedAt: '', errorCode: '', errorMessage: '', outputId: '' }, select: { id: true } }).execute(); // Update const updated = await db.functionGraphExecutionNodeState.update({ where: { id: '' }, data: { executionId: '' }, select: { id: true } }).execute(); @@ -635,9 +1379,9 @@ const updated = await db.functionGraphExecutionNodeState.update({ where: { id: ' const deleted = await db.functionGraphExecutionNodeState.delete({ where: { id: '' } }).execute(); ``` -### `db.platformNamespace` +### `db.namespace` -CRUD operations for PlatformNamespace records. +CRUD operations for Namespace records. **Fields:** @@ -650,35 +1394,35 @@ CRUD operations for PlatformNamespace records. | `namespaceName` | String | Yes | | `description` | String | Yes | | `isActive` | Boolean | Yes | +| `status` | String | Yes | +| `lastError` | String | Yes | | `labels` | JSON | Yes | | `annotations` | JSON | Yes | | `databaseId` | UUID | Yes | -| `sourceDatabaseId` | UUID | Yes | -| `sourceScope` | String | Yes | | `isManaged` | Boolean | Yes | **Operations:** ```typescript -// List all platformNamespace records -const items = await db.platformNamespace.findMany({ select: { id: true, createdAt: true, updatedAt: true, name: true, namespaceName: true, description: true, isActive: true, labels: true, annotations: true, databaseId: true, sourceDatabaseId: true, sourceScope: true, isManaged: true } }).execute(); +// List all namespace records +const items = await db.namespace.findMany({ select: { id: true, createdAt: true, updatedAt: true, name: true, namespaceName: true, description: true, isActive: true, status: true, lastError: true, labels: true, annotations: true, databaseId: true, isManaged: true } }).execute(); // Get one by id -const item = await db.platformNamespace.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, name: true, namespaceName: true, description: true, isActive: true, labels: true, annotations: true, databaseId: true, sourceDatabaseId: true, sourceScope: true, isManaged: true } }).execute(); +const item = await db.namespace.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, name: true, namespaceName: true, description: true, isActive: true, status: true, lastError: true, labels: true, annotations: true, databaseId: true, isManaged: true } }).execute(); // Create -const created = await db.platformNamespace.create({ data: { name: '', namespaceName: '', description: '', isActive: '', labels: '', annotations: '', databaseId: '', sourceDatabaseId: '', sourceScope: '', isManaged: '' }, select: { id: true } }).execute(); +const created = await db.namespace.create({ data: { name: '', namespaceName: '', description: '', isActive: '', status: '', lastError: '', labels: '', annotations: '', databaseId: '', isManaged: '' }, select: { id: true } }).execute(); // Update -const updated = await db.platformNamespace.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.namespace.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.platformNamespace.delete({ where: { id: '' } }).execute(); +const deleted = await db.namespace.delete({ where: { id: '' } }).execute(); ``` -### `db.orgFunctionInvocation` +### `db.platformFunctionInvocation` -CRUD operations for OrgFunctionInvocation records. +CRUD operations for PlatformFunctionInvocation records. **Fields:** @@ -702,20 +1446,20 @@ CRUD operations for OrgFunctionInvocation records. **Operations:** ```typescript -// List all orgFunctionInvocation records -const items = await db.orgFunctionInvocation.findMany({ select: { createdAt: true, id: true, actorId: true, taskIdentifier: true, payload: true, status: true, result: true, error: true, durationMs: true, jobId: true, startedAt: true, completedAt: true, parentInvocationId: true, graphExecutionId: true } }).execute(); +// List all platformFunctionInvocation records +const items = await db.platformFunctionInvocation.findMany({ select: { createdAt: true, id: true, actorId: true, taskIdentifier: true, payload: true, status: true, result: true, error: true, durationMs: true, jobId: true, startedAt: true, completedAt: true, parentInvocationId: true, graphExecutionId: true } }).execute(); // Get one by id -const item = await db.orgFunctionInvocation.findOne({ id: '', select: { createdAt: true, id: true, actorId: true, taskIdentifier: true, payload: true, status: true, result: true, error: true, durationMs: true, jobId: true, startedAt: true, completedAt: true, parentInvocationId: true, graphExecutionId: true } }).execute(); +const item = await db.platformFunctionInvocation.findOne({ id: '', select: { createdAt: true, id: true, actorId: true, taskIdentifier: true, payload: true, status: true, result: true, error: true, durationMs: true, jobId: true, startedAt: true, completedAt: true, parentInvocationId: true, graphExecutionId: true } }).execute(); // Create -const created = await db.orgFunctionInvocation.create({ data: { actorId: '', taskIdentifier: '', payload: '', status: '', result: '', error: '', durationMs: '', jobId: '', startedAt: '', completedAt: '', parentInvocationId: '', graphExecutionId: '' }, select: { id: true } }).execute(); +const created = await db.platformFunctionInvocation.create({ data: { actorId: '', taskIdentifier: '', payload: '', status: '', result: '', error: '', durationMs: '', jobId: '', startedAt: '', completedAt: '', parentInvocationId: '', graphExecutionId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgFunctionInvocation.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); +const updated = await db.platformFunctionInvocation.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgFunctionInvocation.delete({ where: { id: '' } }).execute(); +const deleted = await db.platformFunctionInvocation.delete({ where: { id: '' } }).execute(); ``` ### `db.functionInvocation` @@ -783,19 +1527,18 @@ CRUD operations for PlatformNamespaceEvent records. | `networkEgressBytes` | BigInt | Yes | | `podCount` | Int | Yes | | `metrics` | JSON | Yes | -| `databaseId` | UUID | Yes | **Operations:** ```typescript // List all platformNamespaceEvent records -const items = await db.platformNamespaceEvent.findMany({ select: { createdAt: true, id: true, namespaceId: true, eventType: true, actorId: true, message: true, metadata: true, cpuMillicores: true, memoryBytes: true, storageBytes: true, networkIngressBytes: true, networkEgressBytes: true, podCount: true, metrics: true, databaseId: true } }).execute(); +const items = await db.platformNamespaceEvent.findMany({ select: { createdAt: true, id: true, namespaceId: true, eventType: true, actorId: true, message: true, metadata: true, cpuMillicores: true, memoryBytes: true, storageBytes: true, networkIngressBytes: true, networkEgressBytes: true, podCount: true, metrics: true } }).execute(); // Get one by id -const item = await db.platformNamespaceEvent.findOne({ id: '', select: { createdAt: true, id: true, namespaceId: true, eventType: true, actorId: true, message: true, metadata: true, cpuMillicores: true, memoryBytes: true, storageBytes: true, networkIngressBytes: true, networkEgressBytes: true, podCount: true, metrics: true, databaseId: true } }).execute(); +const item = await db.platformNamespaceEvent.findOne({ id: '', select: { createdAt: true, id: true, namespaceId: true, eventType: true, actorId: true, message: true, metadata: true, cpuMillicores: true, memoryBytes: true, storageBytes: true, networkIngressBytes: true, networkEgressBytes: true, podCount: true, metrics: true } }).execute(); // Create -const created = await db.platformNamespaceEvent.create({ data: { namespaceId: '', eventType: '', actorId: '', message: '', metadata: '', cpuMillicores: '', memoryBytes: '', storageBytes: '', networkIngressBytes: '', networkEgressBytes: '', podCount: '', metrics: '', databaseId: '' }, select: { id: true } }).execute(); +const created = await db.platformNamespaceEvent.create({ data: { namespaceId: '', eventType: '', actorId: '', message: '', metadata: '', cpuMillicores: '', memoryBytes: '', storageBytes: '', networkIngressBytes: '', networkEgressBytes: '', podCount: '', metrics: '' }, select: { id: true } }).execute(); // Update const updated = await db.platformNamespaceEvent.update({ where: { id: '' }, data: { namespaceId: '' }, select: { id: true } }).execute(); @@ -804,6 +1547,89 @@ const updated = await db.platformNamespaceEvent.update({ where: { id: '' } const deleted = await db.platformNamespaceEvent.delete({ where: { id: '' } }).execute(); ``` +### `db.integrationProvider` + +CRUD operations for IntegrationProvider records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | +| `slug` | String | Yes | +| `name` | String | Yes | +| `description` | String | Yes | +| `category` | String | Yes | +| `icon` | String | Yes | +| `logo` | ConstructiveInternalTypeImage | Yes | +| `brand` | JSON | Yes | +| `requiredSecrets` | ResourceRequirement | Yes | +| `requiredConfigs` | ResourceRequirement | Yes | + +**Operations:** + +```typescript +// List all integrationProvider records +const items = await db.integrationProvider.findMany({ select: { id: true, createdAt: true, updatedAt: true, slug: true, name: true, description: true, category: true, icon: true, logo: true, brand: true, requiredSecrets: true, requiredConfigs: true } }).execute(); + +// Get one by id +const item = await db.integrationProvider.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, slug: true, name: true, description: true, category: true, icon: true, logo: true, brand: true, requiredSecrets: true, requiredConfigs: true } }).execute(); + +// Create +const created = await db.integrationProvider.create({ data: { slug: '', name: '', description: '', category: '', icon: '', logo: '', brand: '', requiredSecrets: '', requiredConfigs: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.integrationProvider.update({ where: { id: '' }, data: { slug: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.integrationProvider.delete({ where: { id: '' } }).execute(); +``` + +### `db.namespaceEvent` + +CRUD operations for NamespaceEvent records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `createdAt` | Datetime | No | +| `id` | UUID | No | +| `namespaceId` | UUID | Yes | +| `eventType` | String | Yes | +| `actorId` | UUID | Yes | +| `message` | String | Yes | +| `metadata` | JSON | Yes | +| `cpuMillicores` | Int | Yes | +| `memoryBytes` | BigInt | Yes | +| `storageBytes` | BigInt | Yes | +| `networkIngressBytes` | BigInt | Yes | +| `networkEgressBytes` | BigInt | Yes | +| `podCount` | Int | Yes | +| `metrics` | JSON | Yes | +| `databaseId` | UUID | Yes | + +**Operations:** + +```typescript +// List all namespaceEvent records +const items = await db.namespaceEvent.findMany({ select: { createdAt: true, id: true, namespaceId: true, eventType: true, actorId: true, message: true, metadata: true, cpuMillicores: true, memoryBytes: true, storageBytes: true, networkIngressBytes: true, networkEgressBytes: true, podCount: true, metrics: true, databaseId: true } }).execute(); + +// Get one by id +const item = await db.namespaceEvent.findOne({ id: '', select: { createdAt: true, id: true, namespaceId: true, eventType: true, actorId: true, message: true, metadata: true, cpuMillicores: true, memoryBytes: true, storageBytes: true, networkIngressBytes: true, networkEgressBytes: true, podCount: true, metrics: true, databaseId: true } }).execute(); + +// Create +const created = await db.namespaceEvent.create({ data: { namespaceId: '', eventType: '', actorId: '', message: '', metadata: '', cpuMillicores: '', memoryBytes: '', storageBytes: '', networkIngressBytes: '', networkEgressBytes: '', podCount: '', metrics: '', databaseId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.namespaceEvent.update({ where: { id: '' }, data: { namespaceId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.namespaceEvent.delete({ where: { id: '' } }).execute(); +``` + ### `db.functionGraphExecution` CRUD operations for FunctionGraphExecution records. @@ -816,7 +1642,7 @@ CRUD operations for FunctionGraphExecution records. | `id` | UUID | No | | `graphId` | UUID | Yes | | `invocationId` | UUID | Yes | -| `databaseId` | UUID | Yes | +| `scopeId` | UUID | Yes | | `outputNode` | String | Yes | | `outputPort` | String | Yes | | `status` | String | Yes | @@ -833,6 +1659,7 @@ CRUD operations for FunctionGraphExecution records. | `maxTicks` | Int | Yes | | `maxPendingJobs` | Int | Yes | | `timeoutAt` | Datetime | Yes | +| `lastProgressAt` | Datetime | Yes | | `errorCode` | String | Yes | | `errorMessage` | String | Yes | @@ -840,13 +1667,13 @@ CRUD operations for FunctionGraphExecution records. ```typescript // List all functionGraphExecution records -const items = await db.functionGraphExecution.findMany({ select: { startedAt: true, id: true, graphId: true, invocationId: true, databaseId: true, outputNode: true, outputPort: true, status: true, inputPayload: true, outputPayload: true, nodeOutputs: true, executionPlan: true, currentWave: true, parentExecutionId: true, parentNodeName: true, definitionsCommitId: true, tickCount: true, completedAt: true, maxTicks: true, maxPendingJobs: true, timeoutAt: true, errorCode: true, errorMessage: true } }).execute(); +const items = await db.functionGraphExecution.findMany({ select: { startedAt: true, id: true, graphId: true, invocationId: true, scopeId: true, outputNode: true, outputPort: true, status: true, inputPayload: true, outputPayload: true, nodeOutputs: true, executionPlan: true, currentWave: true, parentExecutionId: true, parentNodeName: true, definitionsCommitId: true, tickCount: true, completedAt: true, maxTicks: true, maxPendingJobs: true, timeoutAt: true, lastProgressAt: true, errorCode: true, errorMessage: true } }).execute(); // Get one by id -const item = await db.functionGraphExecution.findOne({ id: '', select: { startedAt: true, id: true, graphId: true, invocationId: true, databaseId: true, outputNode: true, outputPort: true, status: true, inputPayload: true, outputPayload: true, nodeOutputs: true, executionPlan: true, currentWave: true, parentExecutionId: true, parentNodeName: true, definitionsCommitId: true, tickCount: true, completedAt: true, maxTicks: true, maxPendingJobs: true, timeoutAt: true, errorCode: true, errorMessage: true } }).execute(); +const item = await db.functionGraphExecution.findOne({ id: '', select: { startedAt: true, id: true, graphId: true, invocationId: true, scopeId: true, outputNode: true, outputPort: true, status: true, inputPayload: true, outputPayload: true, nodeOutputs: true, executionPlan: true, currentWave: true, parentExecutionId: true, parentNodeName: true, definitionsCommitId: true, tickCount: true, completedAt: true, maxTicks: true, maxPendingJobs: true, timeoutAt: true, lastProgressAt: true, errorCode: true, errorMessage: true } }).execute(); // Create -const created = await db.functionGraphExecution.create({ data: { startedAt: '', graphId: '', invocationId: '', databaseId: '', outputNode: '', outputPort: '', status: '', inputPayload: '', outputPayload: '', nodeOutputs: '', executionPlan: '', currentWave: '', parentExecutionId: '', parentNodeName: '', definitionsCommitId: '', tickCount: '', completedAt: '', maxTicks: '', maxPendingJobs: '', timeoutAt: '', errorCode: '', errorMessage: '' }, select: { id: true } }).execute(); +const created = await db.functionGraphExecution.create({ data: { startedAt: '', graphId: '', invocationId: '', scopeId: '', outputNode: '', outputPort: '', status: '', inputPayload: '', outputPayload: '', nodeOutputs: '', executionPlan: '', currentWave: '', parentExecutionId: '', parentNodeName: '', definitionsCommitId: '', tickCount: '', completedAt: '', maxTicks: '', maxPendingJobs: '', timeoutAt: '', lastProgressAt: '', errorCode: '', errorMessage: '' }, select: { id: true } }).execute(); // Update const updated = await db.functionGraphExecution.update({ where: { id: '' }, data: { startedAt: '' }, select: { id: true } }).execute(); @@ -855,6 +1682,71 @@ const updated = await db.functionGraphExecution.update({ where: { id: '' } const deleted = await db.functionGraphExecution.delete({ where: { id: '' } }).execute(); ``` +### `db.platformFunctionDefinition` + +CRUD operations for PlatformFunctionDefinition records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | +| `scope` | String | Yes | +| `name` | String | Yes | +| `taskIdentifier` | String | Yes | +| `description` | String | Yes | +| `isPublished` | Boolean | Yes | +| `accessChannels` | String | Yes | +| `publishedAt` | Datetime | Yes | +| `maxAttempts` | Int | Yes | +| `priority` | Int | Yes | +| `queueName` | String | Yes | +| `runtime` | String | Yes | +| `targetSchema` | String | Yes | +| `targetFunction` | String | Yes | +| `moduleTable` | String | Yes | +| `functionColumns` | JSON | Yes | +| `payloadArgs` | JSON | Yes | +| `image` | String | Yes | +| `concurrency` | Int | Yes | +| `scaleMin` | Int | Yes | +| `scaleMax` | Int | Yes | +| `timeoutSeconds` | Int | Yes | +| `resources` | JSON | Yes | +| `isBuiltIn` | Boolean | Yes | +| `requiredSecrets` | ResourceRequirement | Yes | +| `requiredConfigs` | ResourceRequirement | Yes | +| `integrations` | String | Yes | +| `requiredBuckets` | String | Yes | +| `requiredModels` | String | Yes | +| `inputs` | JSON | Yes | +| `outputs` | JSON | Yes | +| `props` | JSON | Yes | +| `volatile` | Boolean | Yes | +| `icon` | String | Yes | +| `category` | String | Yes | + +**Operations:** + +```typescript +// List all platformFunctionDefinition records +const items = await db.platformFunctionDefinition.findMany({ select: { id: true, createdAt: true, updatedAt: true, scope: true, name: true, taskIdentifier: true, description: true, isPublished: true, accessChannels: true, publishedAt: true, maxAttempts: true, priority: true, queueName: true, runtime: true, targetSchema: true, targetFunction: true, moduleTable: true, functionColumns: true, payloadArgs: true, image: true, concurrency: true, scaleMin: true, scaleMax: true, timeoutSeconds: true, resources: true, isBuiltIn: true, requiredSecrets: true, requiredConfigs: true, integrations: true, requiredBuckets: true, requiredModels: true, inputs: true, outputs: true, props: true, volatile: true, icon: true, category: true } }).execute(); + +// Get one by id +const item = await db.platformFunctionDefinition.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, scope: true, name: true, taskIdentifier: true, description: true, isPublished: true, accessChannels: true, publishedAt: true, maxAttempts: true, priority: true, queueName: true, runtime: true, targetSchema: true, targetFunction: true, moduleTable: true, functionColumns: true, payloadArgs: true, image: true, concurrency: true, scaleMin: true, scaleMax: true, timeoutSeconds: true, resources: true, isBuiltIn: true, requiredSecrets: true, requiredConfigs: true, integrations: true, requiredBuckets: true, requiredModels: true, inputs: true, outputs: true, props: true, volatile: true, icon: true, category: true } }).execute(); + +// Create +const created = await db.platformFunctionDefinition.create({ data: { scope: '', name: '', taskIdentifier: '', description: '', isPublished: '', accessChannels: '', publishedAt: '', maxAttempts: '', priority: '', queueName: '', runtime: '', targetSchema: '', targetFunction: '', moduleTable: '', functionColumns: '', payloadArgs: '', image: '', concurrency: '', scaleMin: '', scaleMax: '', timeoutSeconds: '', resources: '', isBuiltIn: '', requiredSecrets: '', requiredConfigs: '', integrations: '', requiredBuckets: '', requiredModels: '', inputs: '', outputs: '', props: '', volatile: '', icon: '', category: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformFunctionDefinition.update({ where: { id: '' }, data: { scope: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformFunctionDefinition.delete({ where: { id: '' } }).execute(); +``` + ### `db.functionDefinition` CRUD operations for FunctionDefinition records. @@ -870,11 +1762,18 @@ CRUD operations for FunctionDefinition records. | `name` | String | Yes | | `taskIdentifier` | String | Yes | | `description` | String | Yes | -| `isInvocable` | Boolean | Yes | +| `isPublished` | Boolean | Yes | +| `accessChannels` | String | Yes | +| `publishedAt` | Datetime | Yes | | `maxAttempts` | Int | Yes | | `priority` | Int | Yes | | `queueName` | String | Yes | | `runtime` | String | Yes | +| `targetSchema` | String | Yes | +| `targetFunction` | String | Yes | +| `moduleTable` | String | Yes | +| `functionColumns` | JSON | Yes | +| `payloadArgs` | JSON | Yes | | `image` | String | Yes | | `concurrency` | Int | Yes | | `scaleMin` | Int | Yes | @@ -882,8 +1781,9 @@ CRUD operations for FunctionDefinition records. | `timeoutSeconds` | Int | Yes | | `resources` | JSON | Yes | | `isBuiltIn` | Boolean | Yes | -| `requiredSecrets` | FunctionRequirement | Yes | -| `requiredConfigs` | FunctionRequirement | Yes | +| `requiredSecrets` | ResourceRequirement | Yes | +| `requiredConfigs` | ResourceRequirement | Yes | +| `integrations` | String | Yes | | `requiredBuckets` | String | Yes | | `requiredModels` | String | Yes | | `inputs` | JSON | Yes | @@ -892,18 +1792,19 @@ CRUD operations for FunctionDefinition records. | `volatile` | Boolean | Yes | | `icon` | String | Yes | | `category` | String | Yes | +| `databaseId` | UUID | Yes | **Operations:** ```typescript // List all functionDefinition records -const items = await db.functionDefinition.findMany({ select: { id: true, createdAt: true, updatedAt: true, scope: true, name: true, taskIdentifier: true, description: true, isInvocable: true, maxAttempts: true, priority: true, queueName: true, runtime: true, image: true, concurrency: true, scaleMin: true, scaleMax: true, timeoutSeconds: true, resources: true, isBuiltIn: true, requiredSecrets: true, requiredConfigs: true, requiredBuckets: true, requiredModels: true, inputs: true, outputs: true, props: true, volatile: true, icon: true, category: true } }).execute(); +const items = await db.functionDefinition.findMany({ select: { id: true, createdAt: true, updatedAt: true, scope: true, name: true, taskIdentifier: true, description: true, isPublished: true, accessChannels: true, publishedAt: true, maxAttempts: true, priority: true, queueName: true, runtime: true, targetSchema: true, targetFunction: true, moduleTable: true, functionColumns: true, payloadArgs: true, image: true, concurrency: true, scaleMin: true, scaleMax: true, timeoutSeconds: true, resources: true, isBuiltIn: true, requiredSecrets: true, requiredConfigs: true, integrations: true, requiredBuckets: true, requiredModels: true, inputs: true, outputs: true, props: true, volatile: true, icon: true, category: true, databaseId: true } }).execute(); // Get one by id -const item = await db.functionDefinition.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, scope: true, name: true, taskIdentifier: true, description: true, isInvocable: true, maxAttempts: true, priority: true, queueName: true, runtime: true, image: true, concurrency: true, scaleMin: true, scaleMax: true, timeoutSeconds: true, resources: true, isBuiltIn: true, requiredSecrets: true, requiredConfigs: true, requiredBuckets: true, requiredModels: true, inputs: true, outputs: true, props: true, volatile: true, icon: true, category: true } }).execute(); +const item = await db.functionDefinition.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, scope: true, name: true, taskIdentifier: true, description: true, isPublished: true, accessChannels: true, publishedAt: true, maxAttempts: true, priority: true, queueName: true, runtime: true, targetSchema: true, targetFunction: true, moduleTable: true, functionColumns: true, payloadArgs: true, image: true, concurrency: true, scaleMin: true, scaleMax: true, timeoutSeconds: true, resources: true, isBuiltIn: true, requiredSecrets: true, requiredConfigs: true, integrations: true, requiredBuckets: true, requiredModels: true, inputs: true, outputs: true, props: true, volatile: true, icon: true, category: true, databaseId: true } }).execute(); // Create -const created = await db.functionDefinition.create({ data: { scope: '', name: '', taskIdentifier: '', description: '', isInvocable: '', maxAttempts: '', priority: '', queueName: '', runtime: '', image: '', concurrency: '', scaleMin: '', scaleMax: '', timeoutSeconds: '', resources: '', isBuiltIn: '', requiredSecrets: '', requiredConfigs: '', requiredBuckets: '', requiredModels: '', inputs: '', outputs: '', props: '', volatile: '', icon: '', category: '' }, select: { id: true } }).execute(); +const created = await db.functionDefinition.create({ data: { scope: '', name: '', taskIdentifier: '', description: '', isPublished: '', accessChannels: '', publishedAt: '', maxAttempts: '', priority: '', queueName: '', runtime: '', targetSchema: '', targetFunction: '', moduleTable: '', functionColumns: '', payloadArgs: '', image: '', concurrency: '', scaleMin: '', scaleMax: '', timeoutSeconds: '', resources: '', isBuiltIn: '', requiredSecrets: '', requiredConfigs: '', integrations: '', requiredBuckets: '', requiredModels: '', inputs: '', outputs: '', props: '', volatile: '', icon: '', category: '', databaseId: '' }, select: { id: true } }).execute(); // Update const updated = await db.functionDefinition.update({ where: { id: '' }, data: { scope: '' }, select: { id: true } }).execute(); @@ -944,34 +1845,34 @@ validateFunctionGraph const result = await db.mutation.validateFunctionGraph({ input: { graphId: '' } }).execute(); ``` -### `db.mutation.initEmptyRepo` +### `db.mutation.infraInitEmptyRepo` -initEmptyRepo +infraInitEmptyRepo - **Type:** mutation - **Arguments:** | Argument | Type | |----------|------| - | `input` | InitEmptyRepoInput (required) | + | `input` | InfraInitEmptyRepoInput (required) | ```typescript -const result = await db.mutation.initEmptyRepo({ input: { sId: '', storeId: '' } }).execute(); +const result = await db.mutation.infraInitEmptyRepo({ input: { sId: '', storeId: '' } }).execute(); ``` -### `db.mutation.setDataAtPath` +### `db.mutation.initEmptyRepo` -setDataAtPath +initEmptyRepo - **Type:** mutation - **Arguments:** | Argument | Type | |----------|------| - | `input` | SetDataAtPathInput (required) | + | `input` | InitEmptyRepoInput (required) | ```typescript -const result = await db.mutation.setDataAtPath({ input: { sId: '', root: '', path: '', data: '' } }).execute(); +const result = await db.mutation.initEmptyRepo({ input: { sId: '', storeId: '' } }).execute(); ``` ### `db.mutation.importDefinitions` @@ -989,6 +1890,36 @@ importDefinitions const result = await db.mutation.importDefinitions({ input: { graphId: '', sourceScopeId: '', sourceCommitId: '', contexts: '' } }).execute(); ``` +### `db.mutation.infraSetDataAtPath` + +infraSetDataAtPath + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | InfraSetDataAtPathInput (required) | + +```typescript +const result = await db.mutation.infraSetDataAtPath({ input: { sId: '', root: '', path: '', data: '' } }).execute(); +``` + +### `db.mutation.setDataAtPath` + +setDataAtPath + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | SetDataAtPathInput (required) | + +```typescript +const result = await db.mutation.setDataAtPath({ input: { sId: '', root: '', path: '', data: '' } }).execute(); +``` + ### `db.mutation.copyGraph` copyGraph @@ -1001,7 +1932,7 @@ copyGraph | `input` | CopyGraphInput (required) | ```typescript -const result = await db.mutation.copyGraph({ input: { databaseId: '', graphId: '', name: '' } }).execute(); +const result = await db.mutation.copyGraph({ input: { scopeId: '', graphId: '', name: '' } }).execute(); ``` ### `db.mutation.saveGraph` @@ -1094,6 +2025,21 @@ addNode const result = await db.mutation.addNode({ input: '' }).execute(); ``` +### `db.mutation.infraInsertNodeAtPath` + +infraInsertNodeAtPath + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | InfraInsertNodeAtPathInput (required) | + +```typescript +const result = await db.mutation.infraInsertNodeAtPath({ input: '' }).execute(); +``` + ### `db.mutation.insertNodeAtPath` insertNodeAtPath diff --git a/sdk/constructive-react/src/compute/orm/index.ts b/sdk/constructive-react/src/compute/orm/index.ts index ba7ce4651f..4cc4ca7a60 100644 --- a/sdk/constructive-react/src/compute/orm/index.ts +++ b/sdk/constructive-react/src/compute/orm/index.ts @@ -5,27 +5,49 @@ */ import { OrmClient } from './client'; import type { OrmClientConfig } from './client'; +import { InfraGetAllRecordModel } from './models/infraGetAllRecord'; import { GetAllRecordModel } from './models/getAllRecord'; +import { InfraRefModel } from './models/infraRef'; +import { InfraStoreModel } from './models/infraStore'; import { FunctionApiBindingModel } from './models/functionApiBinding'; -import { FunctionDeploymentModel } from './models/functionDeployment'; -import { ResourceModel } from './models/resource'; import { FunctionGraphRefModel } from './models/functionGraphRef'; import { FunctionGraphStoreModel } from './models/functionGraphStore'; +import { PlatformFunctionApiBindingModel } from './models/platformFunctionApiBinding'; +import { PlatformResourcesRequirementsStateModel } from './models/platformResourcesRequirementsState'; +import { ResourcesRequirementsStateModel } from './models/resourcesRequirementsState'; +import { PlatformResourceStatusCheckModel } from './models/platformResourceStatusCheck'; +import { PlatformFunctionDeploymentModel } from './models/platformFunctionDeployment'; +import { PlatformResourceModel } from './models/platformResource'; +import { PlatformResourceDefinitionModel } from './models/platformResourceDefinition'; +import { InfraObjectModel } from './models/infraObject'; import { FunctionGraphObjectModel } from './models/functionGraphObject'; +import { PlatformFunctionDeploymentEventModel } from './models/platformFunctionDeploymentEvent'; +import { PlatformResourceEventModel } from './models/platformResourceEvent'; +import { ResourceStatusCheckModel } from './models/resourceStatusCheck'; +import { FunctionDeploymentModel } from './models/functionDeployment'; +import { ResourceModel } from './models/resource'; +import { ResourceDefinitionModel } from './models/resourceDefinition'; import { FunctionDeploymentEventModel } from './models/functionDeploymentEvent'; -import { OrgFunctionExecutionLogModel } from './models/orgFunctionExecutionLog'; +import { PlatformFunctionExecutionLogModel } from './models/platformFunctionExecutionLog'; import { ResourceEventModel } from './models/resourceEvent'; import { FunctionGraphExecutionOutputModel } from './models/functionGraphExecutionOutput'; +import { InfraCommitModel } from './models/infraCommit'; import { FunctionGraphCommitModel } from './models/functionGraphCommit'; -import { SecretDefinitionModel } from './models/secretDefinition'; import { FunctionExecutionLogModel } from './models/functionExecutionLog'; +import { PlatformResourcesResolvedRequirementModel } from './models/platformResourcesResolvedRequirement'; +import { ResourcesResolvedRequirementModel } from './models/resourcesResolvedRequirement'; +import { DbPresetModel } from './models/dbPreset'; +import { PlatformNamespaceModel } from './models/platformNamespace'; import { FunctionGraphModel } from './models/functionGraph'; import { FunctionGraphExecutionNodeStateModel } from './models/functionGraphExecutionNodeState'; -import { PlatformNamespaceModel } from './models/platformNamespace'; -import { OrgFunctionInvocationModel } from './models/orgFunctionInvocation'; +import { NamespaceModel } from './models/namespace'; +import { PlatformFunctionInvocationModel } from './models/platformFunctionInvocation'; import { FunctionInvocationModel } from './models/functionInvocation'; import { PlatformNamespaceEventModel } from './models/platformNamespaceEvent'; +import { IntegrationProviderModel } from './models/integrationProvider'; +import { NamespaceEventModel } from './models/namespaceEvent'; import { FunctionGraphExecutionModel } from './models/functionGraphExecution'; +import { PlatformFunctionDefinitionModel } from './models/platformFunctionDefinition'; import { FunctionDefinitionModel } from './models/functionDefinition'; import { createQueryOperations } from './query'; import { createMutationOperations } from './mutation'; @@ -62,27 +84,49 @@ export { createMutationOperations } from './mutation'; export function createClient(config: OrmClientConfig) { const client = new OrmClient(config); return { + infraGetAllRecord: new InfraGetAllRecordModel(client), getAllRecord: new GetAllRecordModel(client), + infraRef: new InfraRefModel(client), + infraStore: new InfraStoreModel(client), functionApiBinding: new FunctionApiBindingModel(client), - functionDeployment: new FunctionDeploymentModel(client), - resource: new ResourceModel(client), functionGraphRef: new FunctionGraphRefModel(client), functionGraphStore: new FunctionGraphStoreModel(client), + platformFunctionApiBinding: new PlatformFunctionApiBindingModel(client), + platformResourcesRequirementsState: new PlatformResourcesRequirementsStateModel(client), + resourcesRequirementsState: new ResourcesRequirementsStateModel(client), + platformResourceStatusCheck: new PlatformResourceStatusCheckModel(client), + platformFunctionDeployment: new PlatformFunctionDeploymentModel(client), + platformResource: new PlatformResourceModel(client), + platformResourceDefinition: new PlatformResourceDefinitionModel(client), + infraObject: new InfraObjectModel(client), functionGraphObject: new FunctionGraphObjectModel(client), + platformFunctionDeploymentEvent: new PlatformFunctionDeploymentEventModel(client), + platformResourceEvent: new PlatformResourceEventModel(client), + resourceStatusCheck: new ResourceStatusCheckModel(client), + functionDeployment: new FunctionDeploymentModel(client), + resource: new ResourceModel(client), + resourceDefinition: new ResourceDefinitionModel(client), functionDeploymentEvent: new FunctionDeploymentEventModel(client), - orgFunctionExecutionLog: new OrgFunctionExecutionLogModel(client), + platformFunctionExecutionLog: new PlatformFunctionExecutionLogModel(client), resourceEvent: new ResourceEventModel(client), functionGraphExecutionOutput: new FunctionGraphExecutionOutputModel(client), + infraCommit: new InfraCommitModel(client), functionGraphCommit: new FunctionGraphCommitModel(client), - secretDefinition: new SecretDefinitionModel(client), functionExecutionLog: new FunctionExecutionLogModel(client), + platformResourcesResolvedRequirement: new PlatformResourcesResolvedRequirementModel(client), + resourcesResolvedRequirement: new ResourcesResolvedRequirementModel(client), + dbPreset: new DbPresetModel(client), + platformNamespace: new PlatformNamespaceModel(client), functionGraph: new FunctionGraphModel(client), functionGraphExecutionNodeState: new FunctionGraphExecutionNodeStateModel(client), - platformNamespace: new PlatformNamespaceModel(client), - orgFunctionInvocation: new OrgFunctionInvocationModel(client), + namespace: new NamespaceModel(client), + platformFunctionInvocation: new PlatformFunctionInvocationModel(client), functionInvocation: new FunctionInvocationModel(client), platformNamespaceEvent: new PlatformNamespaceEventModel(client), + integrationProvider: new IntegrationProviderModel(client), + namespaceEvent: new NamespaceEventModel(client), functionGraphExecution: new FunctionGraphExecutionModel(client), + platformFunctionDefinition: new PlatformFunctionDefinitionModel(client), functionDefinition: new FunctionDefinitionModel(client), query: createQueryOperations(client), mutation: createMutationOperations(client), diff --git a/sdk/constructive-react/src/compute/orm/input-types.ts b/sdk/constructive-react/src/compute/orm/input-types.ts index 6b89295abc..7a8db48e00 100644 --- a/sdk/constructive-react/src/compute/orm/input-types.ts +++ b/sdk/constructive-react/src/compute/orm/input-types.ts @@ -232,12 +232,43 @@ export interface UUIDListFilter { } // ============ Custom Scalar Types ============ export type Base64EncodedBinary = unknown; -export type FunctionRequirement = unknown; +export type ConstructiveInternalTypeImage = unknown; +export type ResourceRequirement = unknown; // ============ Entity Types ============ +export interface InfraGetAllRecord { + path?: string[] | null; + data?: Record | null; +} export interface GetAllRecord { path?: string[] | null; data?: Record | null; } +/** Branch heads — mutable pointers into the commit chain */ +export interface InfraRef { + /** Unique ref identifier */ + id: string; + /** Ref name (e.g. HEAD, main) */ + name?: string | null; + /** Opaque store partition key for the global tier */ + scopeId?: string | null; + /** Store this ref belongs to */ + storeId?: string | null; + /** Commit this ref points to */ + commitId?: string | null; +} +/** Named stores — one per version-controlled tree (e.g. one graph, one definition set) */ +export interface InfraStore { + /** Unique store identifier */ + id: string; + /** Human-readable store name */ + name?: string | null; + /** Opaque store partition key for the global tier */ + scopeId?: string | null; + /** Current root object hash of this store */ + hash?: string | null; + /** Timestamp of store creation */ + createdAt?: string | null; +} /** Join table binding function definitions to API endpoints with per-binding alias and config */ export interface FunctionApiBinding { id: string; @@ -250,25 +281,100 @@ export interface FunctionApiBinding { /** Per-binding configuration (overrides, routing rules, etc.) */ config?: Record | null; } -/** Function deployment bindings — ties a function definition to a namespace for Knative provisioning and routing */ -export interface FunctionDeployment { +/** Branch heads — mutable pointers into the commit chain */ +export interface FunctionGraphRef { + /** Unique ref identifier */ + id: string; + /** Ref name (e.g. HEAD, main) */ + name?: string | null; + /** Opaque store partition key for the global tier */ + scopeId?: string | null; + /** Store this ref belongs to */ + storeId?: string | null; + /** Commit this ref points to */ + commitId?: string | null; +} +/** Named stores — one per version-controlled tree (e.g. one graph, one definition set) */ +export interface FunctionGraphStore { + /** Unique store identifier */ id: string; + /** Human-readable store name */ + name?: string | null; + /** Opaque store partition key for the global tier */ + scopeId?: string | null; + /** Current root object hash of this store */ + hash?: string | null; + /** Timestamp of store creation */ createdAt?: string | null; - updatedAt?: string | null; - /** Function definition being deployed to this namespace */ +} +/** Join table binding function definitions to API endpoints with per-binding alias and config */ +export interface PlatformFunctionApiBinding { + id: string; + /** Function definition this binding belongs to */ functionDefinitionId?: string | null; + /** API endpoint this function is bound to */ + apiId?: string | null; + /** Binding alias (e.g. default, staging, production) */ + alias?: string | null; + /** Per-binding configuration (overrides, routing rules, etc.) */ + config?: Record | null; +} +export interface PlatformResourcesRequirementsState { + resourceId?: string | null; + slug?: string | null; + secretsHash?: string | null; + configHash?: string | null; + requirementsHash?: string | null; + secretsObjectName?: string | null; + configObjectName?: string | null; +} +export interface ResourcesRequirementsState { + resourceId?: string | null; + slug?: string | null; + secretsHash?: string | null; + configHash?: string | null; + requirementsHash?: string | null; + secretsObjectName?: string | null; + configObjectName?: string | null; +} +/** On-demand resource status checks — diagnostic snapshots from the runtime (K8s status, conditions, log tails) */ +export interface PlatformResourceStatusCheck { + /** Unique status check identifier */ + id: string; + /** Resource to check */ + resourceId?: string | null; + /** User who requested the check (NULL for system/scheduled) */ + requestedBy?: string | null; + /** When the check was requested */ + requestedAt?: string | null; + /** When the check completed (NULL while pending/running) */ + completedAt?: string | null; + /** Check lifecycle: pending, running, completed, failed */ + status?: string | null; + /** Diagnostic snapshot: k8s_status, conditions, pod_logs_tail, events */ + result?: Record | null; +} +/** Function deployment bindings — ties a handler image to a namespace for Knative provisioning and routing (one row per handler image per namespace) */ +export interface PlatformFunctionDeployment { + id: string; + createdAt?: string | null; + updatedAt?: string | null; /** Target namespace for this deployment (maps to a K8s namespace) */ namespaceId?: string | null; /** Deployment lifecycle status: pending, provisioning, active, failed, scaled_to_zero, deactivated */ status?: string | null; /** Knative service URL (http://{service-name}.{namespace}.svc.cluster.local) — populated after provisioning */ serviceUrl?: string | null; - /** Knative service name — derived from task_identifier at provision time */ + /** 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 | null; /** Deployment revision number (incremented on each redeployment) */ revision?: number | null; - /** Container image override (NULL = inherit from function definition) */ + /** 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 | null; + /** Image tag/version for the handler container (e.g. latest, 2.6.4) */ + imageVersion?: string | null; + /** Handler directory name (e.g. email, document) — used as FN_HANDLER_NAME in combined-image mode to select the entry point */ + handlerName?: string | null; /** Max concurrent requests per pod (NULL = inherit from definition) */ concurrency?: number | null; /** Minimum replica count (NULL = inherit from definition or Knative default) */ @@ -289,11 +395,9 @@ export interface FunctionDeployment { labels?: Record | null; /** Freeform metadata for tooling and operational notes */ annotations?: Record | null; - /** Database that owns this resource (database-scoped isolation) */ - databaseId?: string | null; } /** Unified K8s resource declarations — stores desired state (spec) and observed state (status) for all resource kinds within a namespace */ -export interface Resource { +export interface PlatformResource { id: string; createdAt?: string | null; updatedAt?: string | null; @@ -321,41 +425,68 @@ export interface Resource { labels?: Record | null; /** Freeform metadata for tooling and operational notes */ annotations?: Record | null; - /** Database that owns this resource (database-scoped isolation) */ - databaseId?: string | null; -} -/** Branch heads — mutable pointers into the commit chain */ -export interface FunctionGraphRef { - /** Unique ref identifier */ + /** 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; + /** 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; + /** 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; + /** Definition template this resource was created from (NULL for standalone resources) */ + resourceDefinitionId?: string | null; +} +/** Resource definitions — templates for resource kinds declaring default spec and secret/config requirements */ +export interface PlatformResourceDefinition { id: string; - /** Ref name (e.g. HEAD, main) */ + createdAt?: string | null; + updatedAt?: string | null; + createdBy?: string | null; + updatedBy?: string | null; + /** Namespace this definition belongs to (security boundary, maps to K8s namespace) */ + namespaceId?: string | null; + /** Resource kind: Deployment, StatefulSet, Service, Ingress, Certificate, or custom kinds */ + kind?: string | null; + /** Human-readable definition name */ name?: string | null; - /** Database scope for multi-tenant isolation */ - databaseId?: string | null; - /** Store this ref belongs to */ - storeId?: string | null; - /** Commit this ref points to */ - commitId?: string | null; + /** URL-safe identifier, unique within (namespace_id, kind) */ + slug?: string | null; + /** What this resource definition provides */ + description?: string | null; + /** Template spec for creating resource instances of this kind */ + defaultSpec?: Record | null; + /** Embedded secret requirements: array of (name, required, provider) tuples. provider is the integration slug this requirement belongs to, if any. */ + requiredSecrets?: ResourceRequirement[] | null; + /** Embedded config requirements: array of (name, required, provider) tuples. provider is the integration slug this requirement belongs to, if any. */ + requiredConfigs?: ResourceRequirement[] | null; + /** 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; + /** Key/value pairs for selecting and filtering definitions */ + labels?: Record | null; + /** Freeform metadata for tooling and operational notes */ + annotations?: Record | null; + /** Min age before DELETE of a resource of this kind requires step-up; NULL inherits the 6h default */ + stepUpMinAge?: string | null; } -/** Named stores — one per version-controlled tree (e.g. one graph, one definition set) */ -export interface FunctionGraphStore { - /** Unique store identifier */ +/** Content-addressed Merkle tree objects keyed by UUID v5 hash of data + children */ +export interface InfraObject { + /** Content-addressed UUID v5 — deterministic hash of (data, kids, ktree) */ id: string; - /** Human-readable store name */ - name?: string | null; - /** Database scope for multi-tenant isolation */ - databaseId?: string | null; - /** Current root object hash of this store */ - hash?: string | null; - /** Timestamp of store creation */ + /** Opaque store partition key for the global tier */ + scopeId?: string | null; + /** Ordered array of child object IDs */ + kids?: string[] | null; + /** Ordered array of child path names (parallel to kids) */ + ktree?: string[] | null; + /** Payload data for this object node */ + data?: Record | null; + /** Timestamp of object creation */ createdAt?: string | null; } /** Content-addressed Merkle tree objects keyed by UUID v5 hash of data + children */ export interface FunctionGraphObject { /** Content-addressed UUID v5 — deterministic hash of (data, kids, ktree) */ id: string; - /** Database scope for multi-tenant isolation */ - databaseId?: string | null; + /** Opaque store partition key for the global tier */ + scopeId?: string | null; /** Ordered array of child object IDs */ kids?: string[] | null; /** Ordered array of child path names (parallel to kids) */ @@ -366,6 +497,177 @@ export interface FunctionGraphObject { createdAt?: string | null; } /** Deployment lifecycle events — audit log of provisioning, scaling, and failure events */ +export interface PlatformFunctionDeploymentEvent { + /** Event timestamp (partition key) */ + createdAt?: string | null; + /** Unique event identifier */ + id: string; + /** Deployment this event belongs to */ + deploymentId?: string | null; + /** Event type: provisioned, scaled, failed, deactivated, redeployed, health_check */ + eventType?: string | null; + /** User who triggered this event (NULL for system/automated) */ + actorId?: string | null; + /** Human-readable description of the event */ + message?: string | null; + /** Structured context (old/new values, error details, etc.) */ + metadata?: Record | null; +} +/** Resource lifecycle events — audit log of provisioning, updates, and failure events */ +export interface PlatformResourceEvent { + /** Event timestamp (partition key) */ + createdAt?: string | null; + /** Unique event identifier */ + id: string; + /** Resource this event belongs to */ + resourceId?: string | null; + /** Event type: provisioned, provisioning, updated, failed, deprovisioned, health_check */ + eventType?: string | null; + /** User who triggered this event (NULL for system/automated) */ + actorId?: string | null; + /** Human-readable description of the event */ + message?: string | null; + /** Structured context (old/new values, error details, etc.) */ + metadata?: Record | null; +} +/** On-demand resource status checks — diagnostic snapshots from the runtime (K8s status, conditions, log tails) */ +export interface ResourceStatusCheck { + /** Unique status check identifier */ + id: string; + /** Resource to check */ + resourceId?: string | null; + /** Database that owns this resource (database-scoped isolation) */ + databaseId?: string | null; + /** User who requested the check (NULL for system/scheduled) */ + requestedBy?: string | null; + /** When the check was requested */ + requestedAt?: string | null; + /** When the check completed (NULL while pending/running) */ + completedAt?: string | null; + /** Check lifecycle: pending, running, completed, failed */ + status?: string | null; + /** Diagnostic snapshot: k8s_status, conditions, pod_logs_tail, events */ + result?: Record | null; +} +/** Function deployment bindings — ties a handler image to a namespace for Knative provisioning and routing (one row per handler image per namespace) */ +export interface FunctionDeployment { + id: string; + createdAt?: string | null; + updatedAt?: string | null; + /** Target namespace for this deployment (maps to a K8s namespace) */ + namespaceId?: string | null; + /** Deployment lifecycle status: pending, provisioning, active, failed, scaled_to_zero, deactivated */ + status?: string | null; + /** Knative service URL (http://{service-name}.{namespace}.svc.cluster.local) — populated after provisioning */ + serviceUrl?: string | null; + /** 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 | null; + /** Deployment revision number (incremented on each redeployment) */ + revision?: number | null; + /** 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 | null; + /** Image tag/version for the handler container (e.g. latest, 2.6.4) */ + imageVersion?: string | null; + /** Handler directory name (e.g. email, document) — used as FN_HANDLER_NAME in combined-image mode to select the entry point */ + handlerName?: string | null; + /** Max concurrent requests per pod (NULL = inherit from definition) */ + concurrency?: number | null; + /** Minimum replica count (NULL = inherit from definition or Knative default) */ + scaleMin?: number | null; + /** Maximum replica count (NULL = inherit from definition or Knative default) */ + scaleMax?: number | null; + /** Request timeout override in seconds (NULL = inherit from definition) */ + timeoutSeconds?: number | null; + /** K8s resource spec override: {"requests":{"cpu":"100m","memory":"128Mi"},"limits":{...}} */ + resources?: Record | null; + /** Most recent provisioning or runtime error message */ + lastError?: string | null; + /** Timestamp of the most recent error */ + lastErrorAt?: string | null; + /** Cumulative error count for this deployment */ + errorCount?: number | null; + /** Key/value pairs for selecting and filtering deployments */ + labels?: Record | null; + /** Freeform metadata for tooling and operational notes */ + annotations?: Record | null; + /** Database that owns this resource (database-scoped isolation) */ + databaseId?: string | null; +} +/** Unified K8s resource declarations — stores desired state (spec) and observed state (status) for all resource kinds within a namespace */ +export interface Resource { + id: string; + createdAt?: string | null; + updatedAt?: string | null; + createdBy?: string | null; + updatedBy?: string | null; + /** Namespace this resource belongs to (security boundary, maps to K8s namespace) */ + namespaceId?: string | null; + /** Resource kind: Deployment, StatefulSet, Service, Ingress, Certificate */ + kind?: string | null; + /** Human-readable resource name */ + name?: 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, failed, draining, deleting */ + status?: string | null; + /** Observed state from K8s — populated by handlers after reconciliation (service_url, clone_url, replicas, etc.) */ + statusObserved?: Record | null; + /** Most recent provisioning or runtime error message */ + lastError?: string | null; + /** Cumulative error count for this resource */ + errorCount?: number | null; + /** Key/value pairs for selecting and filtering resources */ + labels?: Record | null; + /** Freeform metadata for tooling and operational notes */ + annotations?: Record | null; + /** Database that owns this resource (database-scoped isolation) */ + databaseId?: string | 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; + /** 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; + /** 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; + /** Definition template this resource was created from (NULL for standalone resources) */ + resourceDefinitionId?: string | null; +} +/** Resource definitions — templates for resource kinds declaring default spec and secret/config requirements */ +export interface ResourceDefinition { + id: string; + createdAt?: string | null; + updatedAt?: string | null; + createdBy?: string | null; + updatedBy?: string | null; + /** Namespace this definition belongs to (security boundary, maps to K8s namespace) */ + namespaceId?: string | null; + /** Resource kind: Deployment, StatefulSet, Service, Ingress, Certificate, or custom kinds */ + kind?: string | null; + /** Human-readable definition name */ + name?: string | null; + /** URL-safe identifier, unique within (namespace_id, kind) */ + slug?: string | null; + /** What this resource definition provides */ + description?: string | null; + /** Template spec for creating resource instances of this kind */ + defaultSpec?: Record | null; + /** Embedded secret requirements: array of (name, required, provider) tuples. provider is the integration slug this requirement belongs to, if any. */ + requiredSecrets?: ResourceRequirement[] | null; + /** Embedded config requirements: array of (name, required, provider) tuples. provider is the integration slug this requirement belongs to, if any. */ + requiredConfigs?: ResourceRequirement[] | null; + /** 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; + /** Key/value pairs for selecting and filtering definitions */ + labels?: Record | null; + /** Freeform metadata for tooling and operational notes */ + annotations?: Record | null; + /** Min age before DELETE of a resource of this kind requires step-up; NULL inherits the 6h default */ + stepUpMinAge?: string | null; + /** Database that owns this resource (database-scoped isolation) */ + databaseId?: string | null; +} +/** Deployment lifecycle events — audit log of provisioning, scaling, and failure events */ export interface FunctionDeploymentEvent { /** Event timestamp (partition key) */ createdAt?: string | null; @@ -385,7 +687,7 @@ export interface FunctionDeploymentEvent { databaseId?: string | null; } /** Function execution logs — structured console output per invocation */ -export interface OrgFunctionExecutionLog { +export interface PlatformFunctionExecutionLog { /** Log entry timestamp (partition key) */ createdAt?: string | null; /** Unique log entry identifier */ @@ -428,21 +730,21 @@ export interface FunctionGraphExecutionOutput { createdAt?: string | null; /** Unique execution output identifier */ id: string; - /** Scope for multi-tenant isolation */ - databaseId?: string | null; + /** Opaque store partition key for the global tier */ + scopeId?: string | null; /** SHA-256 hash of the data JSONB — content-addressed deduplication */ hash?: Base64EncodedBinary | null; /** The actual output payload from a completed node */ data?: Record | null; } /** Commit history — each commit snapshots a tree root for a store */ -export interface FunctionGraphCommit { +export interface InfraCommit { /** Unique commit identifier */ id: string; /** Optional commit message */ message?: string | null; - /** Database scope for multi-tenant isolation */ - databaseId?: string | null; + /** Opaque store partition key for the global tier */ + scopeId?: string | null; /** Store this commit belongs to */ storeId?: string | null; /** Parent commit IDs (supports merge commits) */ @@ -456,24 +758,27 @@ export interface FunctionGraphCommit { /** Commit timestamp */ date?: string | null; } -/** Global secret name registry — declares which secrets the platform recognizes. Actual values live in app_secrets. */ -export interface SecretDefinition { +/** Commit history — each commit snapshots a tree root for a store */ +export interface FunctionGraphCommit { + /** Unique commit identifier */ id: string; - createdAt?: string | null; - updatedAt?: string | null; - /** Secret name (must match app_secrets.name for resolution) */ - name?: string | null; - /** Human-readable description of what this secret is used for */ - description?: string | null; - /** Whether this row was seeded as a built-in secret definition. Built-in rows are immutable. */ - isBuiltIn?: boolean | null; - /** Key-value metadata for filtering and grouping secret definitions */ - labels?: Record | null; - /** Freeform metadata annotations for secret definitions */ - annotations?: Record | null; - /** Database that owns this resource (database-scoped isolation) */ - databaseId?: string | null; -} + /** Optional commit message */ + message?: string | null; + /** Opaque store partition key for the global tier */ + scopeId?: string | null; + /** Store this commit belongs to */ + storeId?: string | null; + /** Parent commit IDs (supports merge commits) */ + parentIds?: string[] | null; + /** User who authored the changes */ + authorId?: string | null; + /** User who committed (may differ from author) */ + committerId?: string | null; + /** Root object ID of the tree snapshot at this commit */ + treeId?: string | null; + /** Commit timestamp */ + date?: string | null; +} /** Function execution logs — structured console output per invocation */ export interface FunctionExecutionLog { /** Log entry timestamp (partition key) */ @@ -495,12 +800,85 @@ export interface FunctionExecutionLog { /** Database that owns this resource (database-scoped isolation) */ databaseId?: string | null; } +export interface PlatformResourcesResolvedRequirement { + resourceId?: string | null; + slug?: string | null; + namespaceId?: string | null; + requirementKind?: string | null; + name?: string | null; + required?: boolean | null; + atomId?: string | null; + present?: boolean | null; + secretsObjectName?: string | null; + configObjectName?: string | null; +} +export interface ResourcesResolvedRequirement { + resourceId?: string | null; + slug?: string | null; + namespaceId?: string | null; + requirementKind?: string | null; + name?: string | null; + required?: boolean | null; + atomId?: string | null; + present?: boolean | null; + secretsObjectName?: string | null; + configObjectName?: string | null; +} +/** Database provisioning preset catalog — merkle-versioned head over the infra store */ +export interface DbPreset { + /** Unique preset identifier */ + id: string; + /** Infra Merkle store holding this preset's history (stamped by the versioned trigger) */ + storeId?: string | null; + /** Preset slug (unique per scope); the preset's path in the infra tree is [db_preset, slug] */ + slug?: string | null; + /** Preset definition (modules + options) — the readily-cached head; history lives in the infra store */ + definition?: Record | null; + /** Infra store commit for the current definition (stamped by the versioned trigger on every write) */ + commitId?: string | null; + /** 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 | null; + /** Human-readable preset name */ + label?: string | null; + /** Human-readable description of the preset */ + description?: string | null; + /** Whether this preset is selectable for new databases */ + active?: boolean | null; + /** Timestamp of preset creation */ + createdAt?: string | null; + /** Timestamp of last modification */ + updatedAt?: string | null; +} +/** Logical namespace containers for grouping secrets, config, functions, and other resources */ +export interface PlatformNamespace { + id: string; + createdAt?: string | null; + updatedAt?: string | null; + /** Human-readable namespace name (e.g. default, production, oauth) */ + name?: string | null; + /** Globally unique computed namespace identifier via inflection.underscore */ + namespaceName?: string | null; + /** Optional human-readable description of this namespace */ + description?: string | null; + /** Whether this namespace is active (soft-disable for filtering) */ + isActive?: boolean | null; + /** Namespace provisioning lifecycle status: pending, provisioning, active, failed */ + status?: string | null; + /** Most recent provisioning or reconcile error message */ + lastError?: string | null; + /** Key/value pairs for selecting and filtering namespaces */ + labels?: Record | null; + /** Freeform metadata for tooling and operational notes */ + annotations?: Record | null; + /** true = provisioned by the platform via jobs, false = unmanaged/platform-native (bootstrapped externally) */ + isManaged?: boolean | null; +} /** Flow graph definitions — FBP graphs stored in the dedicated graph Merkle store */ export interface FunctionGraph { /** Unique graph identifier */ id: string; - /** Database scope for multi-tenant isolation */ - databaseId?: string | null; + /** Opaque store partition key for the global tier */ + scopeId?: string | null; /** Graph store (Merkle store) holding the graph definition */ storeId?: string | null; /** Evaluator/runtime context (function, js, sql, system) */ @@ -530,8 +908,8 @@ export interface FunctionGraphExecutionNodeState { id: string; /** FK to the parent graph execution */ executionId?: string | null; - /** Scope for multi-tenant isolation */ - databaseId?: string | null; + /** Opaque store partition key for the global tier */ + scopeId?: string | null; /** 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 */ @@ -550,7 +928,7 @@ export interface FunctionGraphExecutionNodeState { outputId?: string | null; } /** Logical namespace containers for grouping secrets, config, functions, and other resources */ -export interface PlatformNamespace { +export interface Namespace { id: string; createdAt?: string | null; updatedAt?: string | null; @@ -562,21 +940,21 @@ export interface PlatformNamespace { description?: string | null; /** Whether this namespace is active (soft-disable for filtering) */ isActive?: boolean | null; + /** Namespace provisioning lifecycle status: pending, provisioning, active, failed */ + status?: string | null; + /** Most recent provisioning or reconcile error message */ + lastError?: string | null; /** Key/value pairs for selecting and filtering namespaces */ labels?: Record | null; /** Freeform metadata for tooling and operational notes */ annotations?: Record | null; /** Database that owns this resource (database-scoped isolation) */ databaseId?: string | null; - /** Database that created this namespace (NULL for platform-native namespaces) */ - sourceDatabaseId?: string | null; - /** Origin scope: platform, org, app — indicates where this namespace was created */ - sourceScope?: string | null; - /** true = created by a child scope mirror trigger, false = platform-native */ + /** true = provisioned by the platform via jobs, false = unmanaged/platform-native (bootstrapped externally) */ isManaged?: boolean | null; } /** Function invocation log — INSERT to call a function (business-layer, metered). Linked to definitions by task_identifier string. */ -export interface OrgFunctionInvocation { +export interface PlatformFunctionInvocation { /** Invocation creation timestamp (partition key) */ createdAt?: string | null; /** Unique invocation identifier */ @@ -669,6 +1047,61 @@ export interface PlatformNamespaceEvent { podCount?: number | null; /** Additional resource metrics (gpu, replicas, quotas, etc.) */ metrics?: Record | null; +} +/** 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. */ +export interface IntegrationProvider { + id: string; + createdAt?: string | null; + updatedAt?: string | null; + /** Stable URL-safe identifier for the provider. Other tables match by this string, not by FK. */ + slug?: string | null; + /** Human-readable brand name (e.g. 'Mailgun', 'PostgreSQL') */ + name?: string | null; + /** Short description of what this integration provides and when to use it */ + description?: string | null; + /** Browser category (e.g. email, database, storage, ai, analytics) */ + category?: string | null; + /** Icon identifier for the UI (e.g. mail, database, cloud) */ + icon?: string | null; + /** Provider logo as an image domain value (url, id, key, bucket, provider) */ + logo?: ConstructiveInternalTypeImage | null; + /** Brand metadata: colors, fonts, and other provider-specific styling. Not a foreign key. */ + brand?: Record | null; + /** 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[] | null; + /** 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[] | null; +} +/** Namespace lifecycle events — audit log of creation, activation, deactivation, label changes */ +export interface NamespaceEvent { + /** Event timestamp (partition key) */ + createdAt?: string | null; + /** Unique event identifier */ + id: string; + /** Namespace this event belongs to */ + namespaceId?: string | null; + /** Event type: created, activated, deactivated, labels_updated, annotations_updated, renamed */ + eventType?: string | null; + /** User who triggered this event (NULL for system/automated) */ + actorId?: string | null; + /** Human-readable description of the event */ + message?: string | null; + /** Structured context (old/new values, labels diff, etc.) */ + metadata?: Record | null; + /** CPU usage in millicores at time of event */ + cpuMillicores?: number | null; + /** Memory usage in bytes at time of event */ + memoryBytes?: string | null; + /** Storage usage in bytes at time of event */ + storageBytes?: string | null; + /** Network ingress in bytes during event window */ + networkIngressBytes?: string | null; + /** Network egress in bytes during event window */ + networkEgressBytes?: string | null; + /** Number of active pods in the namespace at time of event */ + podCount?: number | null; + /** Additional resource metrics (gpu, replicas, quotas, etc.) */ + metrics?: Record | null; /** Database that owns this resource (database-scoped isolation) */ databaseId?: string | null; } @@ -682,9 +1115,9 @@ export interface FunctionGraphExecution { graphId?: string | null; /** Parent function_invocations row (for metering) */ invocationId?: string | null; - /** Scope for multi-tenant isolation */ - databaseId?: string | null; - /** Target output boundary node name to resolve */ + /** Opaque store partition key for the global tier */ + scopeId?: string | null; + /** Target output boundary node name to resolve; NULL derives completion from the graph's graphOutput nodes */ outputNode?: string | null; /** Target output port name (default: value) */ outputPort?: string | null; @@ -716,12 +1149,88 @@ export interface FunctionGraphExecution { maxPendingJobs?: number | null; /** Absolute deadline — execution fails if still running after this time */ timeoutAt?: string | null; + /** Timestamp of the last real progress (node enqueue, node output, completion) — drives the activity-debounced watchdog */ + lastProgressAt?: string | null; /** Machine-readable error code when status = failed */ errorCode?: string | null; /** Human-readable error description when status = failed */ errorMessage?: string | null; } /** Function definitions — registered cloud functions with routing, queue, and retry configuration */ +export interface PlatformFunctionDefinition { + id: string; + createdAt?: string | null; + updatedAt?: string | null; + /** Function grouping scope (e.g. email, embed, chunk, custom) */ + scope?: string | null; + /** Function name within scope (e.g. send_verification_link, process_file_embedding) */ + name?: string | null; + /** Computed routing slug: scope:name (used by Knative job worker for dispatch) */ + taskIdentifier?: string | null; + /** Human-readable description of what this function does */ + description?: string | null; + /** Whether this function definition is published to the public catalog for direct authenticated invocation. Default false = internal-only via add_job() */ + isPublished?: boolean | null; + /** Non-public invocation channels this function may be exposed through (api, graph). Internal job dispatch is implicit and never listed. Default [] = job worker only. */ + accessChannels?: string[] | null; + /** Timestamp when this function was published. NULL means immediately published when is_published is true; future timestamps delay public visibility */ + publishedAt?: string | null; + /** Maximum retry attempts for the underlying job */ + maxAttempts?: number | null; + /** Job priority (lower = higher priority) */ + priority?: number | null; + /** Job queue name for serialization (e.g. email, ai, default) */ + queueName?: string | null; + /** Execution mode: http (Knative Service dispatch), inline (in-process in compute worker), handler (registered infrastructure handler), or sql (generic SQL dispatch via a trusted direct target or module-resolved function names) */ + runtime?: string | null; + /** Schema of the SQL function to invoke when runtime=sql (direct mode). NULL for module mode and other runtimes. */ + targetSchema?: string | null; + /** Name of the SQL function to invoke when runtime=sql (direct mode). NULL for module mode and other runtimes. */ + targetFunction?: string | null; + /** 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 | null; + /** 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 | null; + /** Ordered bind-parameter mapping for runtime=sql: [{name, type}]. payload[name] is bound as $n::type. */ + payloadArgs?: Record | null; + /** Docker image reference (e.g. ghcr.io/constructive-io/email-send-fn:latest). Required when runtime=http. NULL for inline functions. */ + image?: string | null; + /** Knative containerConcurrency — max concurrent requests per pod instance */ + concurrency?: number | null; + /** Minimum pod count for Knative autoscaling (minScale) */ + scaleMin?: number | null; + /** Maximum pod count for Knative autoscaling (maxScale) */ + scaleMax?: number | null; + /** Knative request timeout in seconds */ + timeoutSeconds?: number | null; + /** Container resource requests and limits: {requests: {memory, cpu}, limits: {memory, cpu}} */ + resources?: Record | null; + /** Whether this function is a built-in platform function (synced from platform) vs user-created */ + isBuiltIn?: boolean | null; + /** Embedded secret requirements: array of (name, required, provider) tuples. provider is the integration slug this requirement belongs to, if any. */ + requiredSecrets?: ResourceRequirement[] | null; + /** Embedded config requirements: array of (name, required, provider) tuples. provider is the integration slug this requirement belongs to, if any. */ + requiredConfigs?: ResourceRequirement[] | null; + /** 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[] | null; + /** Bucket keys this function needs (e.g. uploads, exports). Empty = no bucket requirements. */ + requiredBuckets?: string[] | null; + /** Inference model whitelist (e.g. gpt-4o, claude-3). Empty = no model requirements. */ + requiredModels?: string[] | null; + /** Data input ports: [{name, type, description?, optional?, multi?, schema?}] */ + inputs?: Record | null; + /** Data output ports: [{name, type, description?, optional?, multi?, schema?}] */ + outputs?: Record | null; + /** Configuration properties: [{name, type, default?, description?, required?, schema?}] */ + props?: Record | null; + /** Whether this function has side effects and cannot be cached or memoized */ + volatile?: boolean | null; + /** Icon identifier for UI palette rendering (e.g. mail, database, code) */ + icon?: string | null; + /** Palette grouping category (e.g. email, data, ai, custom) */ + category?: string | null; +} +/** Function definitions — registered cloud functions with routing, queue, and retry configuration */ export interface FunctionDefinition { id: string; createdAt?: string | null; @@ -734,16 +1243,30 @@ export interface FunctionDefinition { taskIdentifier?: string | null; /** Human-readable description of what this function does */ description?: string | null; - /** Whether this function can be called via function_invocations (public API). Default false = internal-only via add_job() */ - isInvocable?: boolean | null; + /** Whether this function definition is published to the public catalog for direct authenticated invocation. Default false = internal-only via add_job() */ + isPublished?: boolean | null; + /** Non-public invocation channels this function may be exposed through (api, graph). Internal job dispatch is implicit and never listed. Default [] = job worker only. */ + accessChannels?: string[] | null; + /** Timestamp when this function was published. NULL means immediately published when is_published is true; future timestamps delay public visibility */ + publishedAt?: string | null; /** Maximum retry attempts for the underlying job */ maxAttempts?: number | null; /** Job priority (lower = higher priority) */ priority?: number | null; /** Job queue name for serialization (e.g. email, ai, default) */ queueName?: string | null; - /** Execution mode: http (Knative Service dispatch) or inline (in-process in compute worker) */ + /** Execution mode: http (Knative Service dispatch), inline (in-process in compute worker), handler (registered infrastructure handler), or sql (generic SQL dispatch via a trusted direct target or module-resolved function names) */ runtime?: string | null; + /** Schema of the SQL function to invoke when runtime=sql (direct mode). NULL for module mode and other runtimes. */ + targetSchema?: string | null; + /** Name of the SQL function to invoke when runtime=sql (direct mode). NULL for module mode and other runtimes. */ + targetFunction?: string | null; + /** 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 | null; + /** 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 | null; + /** Ordered bind-parameter mapping for runtime=sql: [{name, type}]. payload[name] is bound as $n::type. */ + payloadArgs?: Record | null; /** Docker image reference (e.g. ghcr.io/constructive-io/email-send-fn:latest). Required when runtime=http. NULL for inline functions. */ image?: string | null; /** Knative containerConcurrency — max concurrent requests per pod instance */ @@ -758,10 +1281,12 @@ export interface FunctionDefinition { resources?: Record | null; /** Whether this function is a built-in platform function (synced from platform) vs user-created */ isBuiltIn?: boolean | null; - /** Embedded secret requirements: array of (name, required) tuples */ - requiredSecrets?: FunctionRequirement[] | null; - /** Embedded config requirements: array of (name, required) tuples */ - requiredConfigs?: FunctionRequirement[] | null; + /** Embedded secret requirements: array of (name, required, provider) tuples. provider is the integration slug this requirement belongs to, if any. */ + requiredSecrets?: ResourceRequirement[] | null; + /** Embedded config requirements: array of (name, required, provider) tuples. provider is the integration slug this requirement belongs to, if any. */ + requiredConfigs?: ResourceRequirement[] | null; + /** 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[] | null; /** Bucket keys this function needs (e.g. uploads, exports). Empty = no bucket requirements. */ requiredBuckets?: string[] | null; /** Inference model whitelist (e.g. gpt-4o, claude-3). Empty = no model requirements. */ @@ -778,6 +1303,8 @@ export interface FunctionDefinition { icon?: string | null; /** Palette grouping category (e.g. email, data, ai, custom) */ category?: string | null; + /** Database that owns this resource (database-scoped isolation) */ + databaseId?: string | null; } // ============ Relation Helper Types ============ export interface ConnectionResult { @@ -792,79 +1319,175 @@ export interface PageInfo { endCursor?: string | null; } // ============ Entity Relation Types ============ +export interface InfraGetAllRecordRelations {} export interface GetAllRecordRelations {} +export interface InfraRefRelations {} +export interface InfraStoreRelations {} export interface FunctionApiBindingRelations { functionDefinition?: FunctionDefinition | null; } -export interface FunctionDeploymentRelations { - functionDefinition?: FunctionDefinition | null; +export interface FunctionGraphRefRelations {} +export interface FunctionGraphStoreRelations {} +export interface PlatformFunctionApiBindingRelations { + functionDefinition?: PlatformFunctionDefinition | null; +} +export interface PlatformResourcesRequirementsStateRelations {} +export interface ResourcesRequirementsStateRelations {} +export interface PlatformResourceStatusCheckRelations { + resource?: PlatformResource | null; +} +export interface PlatformFunctionDeploymentRelations { namespace?: PlatformNamespace | null; } -export interface ResourceRelations { +export interface PlatformResourceRelations { namespace?: PlatformNamespace | null; + resourceDefinition?: PlatformResourceDefinition | null; + platformResourceStatusChecksByResourceId?: ConnectionResult; } -export interface FunctionGraphRefRelations {} -export interface FunctionGraphStoreRelations {} +export interface PlatformResourceDefinitionRelations { + namespace?: PlatformNamespace | null; +} +export interface InfraObjectRelations {} export interface FunctionGraphObjectRelations {} +export interface PlatformFunctionDeploymentEventRelations {} +export interface PlatformResourceEventRelations {} +export interface ResourceStatusCheckRelations { + resource?: Resource | null; +} +export interface FunctionDeploymentRelations { + namespace?: Namespace | null; +} +export interface ResourceRelations { + namespace?: Namespace | null; + resourceDefinition?: ResourceDefinition | null; + resourceStatusChecks?: ConnectionResult; +} +export interface ResourceDefinitionRelations { + namespace?: Namespace | null; +} export interface FunctionDeploymentEventRelations {} -export interface OrgFunctionExecutionLogRelations {} +export interface PlatformFunctionExecutionLogRelations {} export interface ResourceEventRelations {} export interface FunctionGraphExecutionOutputRelations {} +export interface InfraCommitRelations {} export interface FunctionGraphCommitRelations {} -export interface SecretDefinitionRelations {} export interface FunctionExecutionLogRelations {} +export interface PlatformResourcesResolvedRequirementRelations {} +export interface ResourcesResolvedRequirementRelations {} +export interface DbPresetRelations {} +export interface PlatformNamespaceRelations { + platformFunctionDeploymentsByNamespaceId?: ConnectionResult; + platformResourcesByNamespaceId?: ConnectionResult; + platformResourceDefinitionsByNamespaceId?: ConnectionResult; +} export interface FunctionGraphRelations {} export interface FunctionGraphExecutionNodeStateRelations {} -export interface PlatformNamespaceRelations { - functionDeploymentsByNamespaceId?: ConnectionResult; - resourcesByNamespaceId?: ConnectionResult; +export interface NamespaceRelations { + functionDeployments?: ConnectionResult; + resources?: ConnectionResult; + resourceDefinitions?: ConnectionResult; } -export interface OrgFunctionInvocationRelations {} +export interface PlatformFunctionInvocationRelations {} export interface FunctionInvocationRelations {} export interface PlatformNamespaceEventRelations {} +export interface IntegrationProviderRelations {} +export interface NamespaceEventRelations {} export interface FunctionGraphExecutionRelations { graph?: FunctionGraph | null; } +export interface PlatformFunctionDefinitionRelations { + platformFunctionApiBindingsByFunctionDefinitionId?: ConnectionResult; +} export interface FunctionDefinitionRelations { functionApiBindings?: ConnectionResult; - functionDeployments?: ConnectionResult; } // ============ Entity Types With Relations ============ +export type InfraGetAllRecordWithRelations = InfraGetAllRecord & InfraGetAllRecordRelations; export type GetAllRecordWithRelations = GetAllRecord & GetAllRecordRelations; +export type InfraRefWithRelations = InfraRef & InfraRefRelations; +export type InfraStoreWithRelations = InfraStore & InfraStoreRelations; export type FunctionApiBindingWithRelations = FunctionApiBinding & FunctionApiBindingRelations; -export type FunctionDeploymentWithRelations = FunctionDeployment & FunctionDeploymentRelations; -export type ResourceWithRelations = Resource & ResourceRelations; export type FunctionGraphRefWithRelations = FunctionGraphRef & FunctionGraphRefRelations; export type FunctionGraphStoreWithRelations = FunctionGraphStore & FunctionGraphStoreRelations; +export type PlatformFunctionApiBindingWithRelations = PlatformFunctionApiBinding & + PlatformFunctionApiBindingRelations; +export type PlatformResourcesRequirementsStateWithRelations = PlatformResourcesRequirementsState & + PlatformResourcesRequirementsStateRelations; +export type ResourcesRequirementsStateWithRelations = ResourcesRequirementsState & + ResourcesRequirementsStateRelations; +export type PlatformResourceStatusCheckWithRelations = PlatformResourceStatusCheck & + PlatformResourceStatusCheckRelations; +export type PlatformFunctionDeploymentWithRelations = PlatformFunctionDeployment & + PlatformFunctionDeploymentRelations; +export type PlatformResourceWithRelations = PlatformResource & PlatformResourceRelations; +export type PlatformResourceDefinitionWithRelations = PlatformResourceDefinition & + PlatformResourceDefinitionRelations; +export type InfraObjectWithRelations = InfraObject & InfraObjectRelations; export type FunctionGraphObjectWithRelations = FunctionGraphObject & FunctionGraphObjectRelations; +export type PlatformFunctionDeploymentEventWithRelations = PlatformFunctionDeploymentEvent & + PlatformFunctionDeploymentEventRelations; +export type PlatformResourceEventWithRelations = PlatformResourceEvent & + PlatformResourceEventRelations; +export type ResourceStatusCheckWithRelations = ResourceStatusCheck & ResourceStatusCheckRelations; +export type FunctionDeploymentWithRelations = FunctionDeployment & FunctionDeploymentRelations; +export type ResourceWithRelations = Resource & ResourceRelations; +export type ResourceDefinitionWithRelations = ResourceDefinition & ResourceDefinitionRelations; export type FunctionDeploymentEventWithRelations = FunctionDeploymentEvent & FunctionDeploymentEventRelations; -export type OrgFunctionExecutionLogWithRelations = OrgFunctionExecutionLog & - OrgFunctionExecutionLogRelations; +export type PlatformFunctionExecutionLogWithRelations = PlatformFunctionExecutionLog & + PlatformFunctionExecutionLogRelations; export type ResourceEventWithRelations = ResourceEvent & ResourceEventRelations; export type FunctionGraphExecutionOutputWithRelations = FunctionGraphExecutionOutput & FunctionGraphExecutionOutputRelations; +export type InfraCommitWithRelations = InfraCommit & InfraCommitRelations; export type FunctionGraphCommitWithRelations = FunctionGraphCommit & FunctionGraphCommitRelations; -export type SecretDefinitionWithRelations = SecretDefinition & SecretDefinitionRelations; export type FunctionExecutionLogWithRelations = FunctionExecutionLog & FunctionExecutionLogRelations; +export type PlatformResourcesResolvedRequirementWithRelations = + PlatformResourcesResolvedRequirement & PlatformResourcesResolvedRequirementRelations; +export type ResourcesResolvedRequirementWithRelations = ResourcesResolvedRequirement & + ResourcesResolvedRequirementRelations; +export type DbPresetWithRelations = DbPreset & DbPresetRelations; +export type PlatformNamespaceWithRelations = PlatformNamespace & PlatformNamespaceRelations; export type FunctionGraphWithRelations = FunctionGraph & FunctionGraphRelations; export type FunctionGraphExecutionNodeStateWithRelations = FunctionGraphExecutionNodeState & FunctionGraphExecutionNodeStateRelations; -export type PlatformNamespaceWithRelations = PlatformNamespace & PlatformNamespaceRelations; -export type OrgFunctionInvocationWithRelations = OrgFunctionInvocation & - OrgFunctionInvocationRelations; +export type NamespaceWithRelations = Namespace & NamespaceRelations; +export type PlatformFunctionInvocationWithRelations = PlatformFunctionInvocation & + PlatformFunctionInvocationRelations; export type FunctionInvocationWithRelations = FunctionInvocation & FunctionInvocationRelations; export type PlatformNamespaceEventWithRelations = PlatformNamespaceEvent & PlatformNamespaceEventRelations; +export type IntegrationProviderWithRelations = IntegrationProvider & IntegrationProviderRelations; +export type NamespaceEventWithRelations = NamespaceEvent & NamespaceEventRelations; export type FunctionGraphExecutionWithRelations = FunctionGraphExecution & FunctionGraphExecutionRelations; +export type PlatformFunctionDefinitionWithRelations = PlatformFunctionDefinition & + PlatformFunctionDefinitionRelations; export type FunctionDefinitionWithRelations = FunctionDefinition & FunctionDefinitionRelations; // ============ Entity Select Types ============ +export type InfraGetAllRecordSelect = { + path?: boolean; + data?: boolean; +}; export type GetAllRecordSelect = { path?: boolean; data?: boolean; }; +export type InfraRefSelect = { + id?: boolean; + name?: boolean; + scopeId?: boolean; + storeId?: boolean; + commitId?: boolean; +}; +export type InfraStoreSelect = { + id?: boolean; + name?: boolean; + scopeId?: boolean; + hash?: boolean; + createdAt?: boolean; +}; export type FunctionApiBindingSelect = { id?: boolean; functionDefinitionId?: boolean; @@ -875,17 +1498,72 @@ export type FunctionApiBindingSelect = { select: FunctionDefinitionSelect; }; }; -export type FunctionDeploymentSelect = { +export type FunctionGraphRefSelect = { + id?: boolean; + name?: boolean; + scopeId?: boolean; + storeId?: boolean; + commitId?: boolean; +}; +export type FunctionGraphStoreSelect = { id?: boolean; + name?: boolean; + scopeId?: boolean; + hash?: boolean; createdAt?: boolean; - updatedAt?: boolean; +}; +export type PlatformFunctionApiBindingSelect = { + id?: boolean; functionDefinitionId?: boolean; + apiId?: boolean; + alias?: boolean; + config?: boolean; + functionDefinition?: { + select: PlatformFunctionDefinitionSelect; + }; +}; +export type PlatformResourcesRequirementsStateSelect = { + resourceId?: boolean; + slug?: boolean; + secretsHash?: boolean; + configHash?: boolean; + requirementsHash?: boolean; + secretsObjectName?: boolean; + configObjectName?: boolean; +}; +export type ResourcesRequirementsStateSelect = { + resourceId?: boolean; + slug?: boolean; + secretsHash?: boolean; + configHash?: boolean; + requirementsHash?: boolean; + secretsObjectName?: boolean; + configObjectName?: boolean; +}; +export type PlatformResourceStatusCheckSelect = { + id?: boolean; + resourceId?: boolean; + requestedBy?: boolean; + requestedAt?: boolean; + completedAt?: boolean; + status?: boolean; + result?: boolean; + resource?: { + select: PlatformResourceSelect; + }; +}; +export type PlatformFunctionDeploymentSelect = { + id?: boolean; + createdAt?: boolean; + updatedAt?: boolean; namespaceId?: boolean; status?: boolean; serviceUrl?: boolean; serviceName?: boolean; revision?: boolean; image?: boolean; + imageVersion?: boolean; + handlerName?: boolean; concurrency?: boolean; scaleMin?: boolean; scaleMax?: boolean; @@ -896,15 +1574,11 @@ export type FunctionDeploymentSelect = { errorCount?: boolean; labels?: boolean; annotations?: boolean; - databaseId?: boolean; - functionDefinition?: { - select: FunctionDefinitionSelect; - }; namespace?: { select: PlatformNamespaceSelect; }; }; -export type ResourceSelect = { +export type PlatformResourceSelect = { id?: boolean; createdAt?: boolean; updatedAt?: boolean; @@ -921,33 +1595,177 @@ export type ResourceSelect = { errorCount?: boolean; labels?: boolean; annotations?: boolean; - databaseId?: boolean; + requiredSecrets?: boolean; + requiredConfigs?: boolean; + integrations?: boolean; + resourceDefinitionId?: boolean; namespace?: { select: PlatformNamespaceSelect; }; + resourceDefinition?: { + select: PlatformResourceDefinitionSelect; + }; + platformResourceStatusChecksByResourceId?: { + select: PlatformResourceStatusCheckSelect; + first?: number; + filter?: PlatformResourceStatusCheckFilter; + orderBy?: PlatformResourceStatusCheckOrderBy[]; + }; }; -export type FunctionGraphRefSelect = { - id?: boolean; - name?: boolean; - databaseId?: boolean; - storeId?: boolean; - commitId?: boolean; -}; -export type FunctionGraphStoreSelect = { +export type PlatformResourceDefinitionSelect = { id?: boolean; - name?: boolean; - databaseId?: boolean; - hash?: boolean; createdAt?: boolean; -}; -export type FunctionGraphObjectSelect = { - id?: boolean; - databaseId?: boolean; + updatedAt?: boolean; + createdBy?: boolean; + updatedBy?: boolean; + namespaceId?: boolean; + kind?: boolean; + name?: boolean; + slug?: boolean; + description?: boolean; + defaultSpec?: boolean; + requiredSecrets?: boolean; + requiredConfigs?: boolean; + integrations?: boolean; + labels?: boolean; + annotations?: boolean; + stepUpMinAge?: boolean; + namespace?: { + select: PlatformNamespaceSelect; + }; +}; +export type InfraObjectSelect = { + id?: boolean; + scopeId?: boolean; + kids?: boolean; + ktree?: boolean; + data?: boolean; + createdAt?: boolean; +}; +export type FunctionGraphObjectSelect = { + id?: boolean; + scopeId?: boolean; kids?: boolean; ktree?: boolean; data?: boolean; createdAt?: boolean; }; +export type PlatformFunctionDeploymentEventSelect = { + createdAt?: boolean; + id?: boolean; + deploymentId?: boolean; + eventType?: boolean; + actorId?: boolean; + message?: boolean; + metadata?: boolean; +}; +export type PlatformResourceEventSelect = { + createdAt?: boolean; + id?: boolean; + resourceId?: boolean; + eventType?: boolean; + actorId?: boolean; + message?: boolean; + metadata?: boolean; +}; +export type ResourceStatusCheckSelect = { + id?: boolean; + resourceId?: boolean; + databaseId?: boolean; + requestedBy?: boolean; + requestedAt?: boolean; + completedAt?: boolean; + status?: boolean; + result?: boolean; + resource?: { + select: ResourceSelect; + }; +}; +export type FunctionDeploymentSelect = { + id?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + namespaceId?: boolean; + status?: boolean; + serviceUrl?: boolean; + serviceName?: boolean; + revision?: boolean; + image?: boolean; + imageVersion?: boolean; + handlerName?: boolean; + concurrency?: boolean; + scaleMin?: boolean; + scaleMax?: boolean; + timeoutSeconds?: boolean; + resources?: boolean; + lastError?: boolean; + lastErrorAt?: boolean; + errorCount?: boolean; + labels?: boolean; + annotations?: boolean; + databaseId?: boolean; + namespace?: { + select: NamespaceSelect; + }; +}; +export type ResourceSelect = { + id?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + createdBy?: boolean; + updatedBy?: boolean; + namespaceId?: boolean; + kind?: boolean; + name?: boolean; + slug?: boolean; + spec?: boolean; + status?: boolean; + statusObserved?: boolean; + lastError?: boolean; + errorCount?: boolean; + labels?: boolean; + annotations?: boolean; + databaseId?: boolean; + requiredSecrets?: boolean; + requiredConfigs?: boolean; + integrations?: boolean; + resourceDefinitionId?: boolean; + namespace?: { + select: NamespaceSelect; + }; + resourceDefinition?: { + select: ResourceDefinitionSelect; + }; + resourceStatusChecks?: { + select: ResourceStatusCheckSelect; + first?: number; + filter?: ResourceStatusCheckFilter; + orderBy?: ResourceStatusCheckOrderBy[]; + }; +}; +export type ResourceDefinitionSelect = { + id?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + createdBy?: boolean; + updatedBy?: boolean; + namespaceId?: boolean; + kind?: boolean; + name?: boolean; + slug?: boolean; + description?: boolean; + defaultSpec?: boolean; + requiredSecrets?: boolean; + requiredConfigs?: boolean; + integrations?: boolean; + labels?: boolean; + annotations?: boolean; + stepUpMinAge?: boolean; + databaseId?: boolean; + namespace?: { + select: NamespaceSelect; + }; +}; export type FunctionDeploymentEventSelect = { createdAt?: boolean; id?: boolean; @@ -958,7 +1776,7 @@ export type FunctionDeploymentEventSelect = { metadata?: boolean; databaseId?: boolean; }; -export type OrgFunctionExecutionLogSelect = { +export type PlatformFunctionExecutionLogSelect = { createdAt?: boolean; id?: boolean; invocationId?: boolean; @@ -981,14 +1799,14 @@ export type ResourceEventSelect = { export type FunctionGraphExecutionOutputSelect = { createdAt?: boolean; id?: boolean; - databaseId?: boolean; + scopeId?: boolean; hash?: boolean; data?: boolean; }; -export type FunctionGraphCommitSelect = { +export type InfraCommitSelect = { id?: boolean; message?: boolean; - databaseId?: boolean; + scopeId?: boolean; storeId?: boolean; parentIds?: boolean; authorId?: boolean; @@ -996,16 +1814,16 @@ export type FunctionGraphCommitSelect = { treeId?: boolean; date?: boolean; }; -export type SecretDefinitionSelect = { +export type FunctionGraphCommitSelect = { id?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - name?: boolean; - description?: boolean; - isBuiltIn?: boolean; - labels?: boolean; - annotations?: boolean; - databaseId?: boolean; + message?: boolean; + scopeId?: boolean; + storeId?: boolean; + parentIds?: boolean; + authorId?: boolean; + committerId?: boolean; + treeId?: boolean; + date?: boolean; }; export type FunctionExecutionLogSelect = { createdAt?: boolean; @@ -1018,9 +1836,78 @@ export type FunctionExecutionLogSelect = { actorId?: boolean; databaseId?: boolean; }; +export type PlatformResourcesResolvedRequirementSelect = { + resourceId?: boolean; + slug?: boolean; + namespaceId?: boolean; + requirementKind?: boolean; + name?: boolean; + required?: boolean; + atomId?: boolean; + present?: boolean; + secretsObjectName?: boolean; + configObjectName?: boolean; +}; +export type ResourcesResolvedRequirementSelect = { + resourceId?: boolean; + slug?: boolean; + namespaceId?: boolean; + requirementKind?: boolean; + name?: boolean; + required?: boolean; + atomId?: boolean; + present?: boolean; + secretsObjectName?: boolean; + configObjectName?: boolean; +}; +export type DbPresetSelect = { + id?: boolean; + storeId?: boolean; + slug?: boolean; + definition?: boolean; + commitId?: boolean; + modulesHash?: boolean; + label?: boolean; + description?: boolean; + active?: boolean; + createdAt?: boolean; + updatedAt?: boolean; +}; +export type PlatformNamespaceSelect = { + id?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + name?: boolean; + namespaceName?: boolean; + description?: boolean; + isActive?: boolean; + status?: boolean; + lastError?: boolean; + labels?: boolean; + annotations?: boolean; + isManaged?: boolean; + platformFunctionDeploymentsByNamespaceId?: { + select: PlatformFunctionDeploymentSelect; + first?: number; + filter?: PlatformFunctionDeploymentFilter; + orderBy?: PlatformFunctionDeploymentOrderBy[]; + }; + platformResourcesByNamespaceId?: { + select: PlatformResourceSelect; + first?: number; + filter?: PlatformResourceFilter; + orderBy?: PlatformResourceOrderBy[]; + }; + platformResourceDefinitionsByNamespaceId?: { + select: PlatformResourceDefinitionSelect; + first?: number; + filter?: PlatformResourceDefinitionFilter; + orderBy?: PlatformResourceDefinitionOrderBy[]; + }; +}; export type FunctionGraphSelect = { id?: boolean; - databaseId?: boolean; + scopeId?: boolean; storeId?: boolean; context?: boolean; name?: boolean; @@ -1036,7 +1923,7 @@ export type FunctionGraphExecutionNodeStateSelect = { createdAt?: boolean; id?: boolean; executionId?: boolean; - databaseId?: boolean; + scopeId?: boolean; nodeName?: boolean; nodePath?: boolean; status?: boolean; @@ -1046,7 +1933,7 @@ export type FunctionGraphExecutionNodeStateSelect = { errorMessage?: boolean; outputId?: boolean; }; -export type PlatformNamespaceSelect = { +export type NamespaceSelect = { id?: boolean; createdAt?: boolean; updatedAt?: boolean; @@ -1054,26 +1941,32 @@ export type PlatformNamespaceSelect = { namespaceName?: boolean; description?: boolean; isActive?: boolean; + status?: boolean; + lastError?: boolean; labels?: boolean; annotations?: boolean; databaseId?: boolean; - sourceDatabaseId?: boolean; - sourceScope?: boolean; isManaged?: boolean; - functionDeploymentsByNamespaceId?: { + functionDeployments?: { select: FunctionDeploymentSelect; first?: number; filter?: FunctionDeploymentFilter; orderBy?: FunctionDeploymentOrderBy[]; }; - resourcesByNamespaceId?: { + resources?: { select: ResourceSelect; first?: number; filter?: ResourceFilter; orderBy?: ResourceOrderBy[]; }; + resourceDefinitions?: { + select: ResourceDefinitionSelect; + first?: number; + filter?: ResourceDefinitionFilter; + orderBy?: ResourceDefinitionOrderBy[]; + }; }; -export type OrgFunctionInvocationSelect = { +export type PlatformFunctionInvocationSelect = { createdAt?: boolean; id?: boolean; actorId?: boolean; @@ -1121,6 +2014,36 @@ export type PlatformNamespaceEventSelect = { networkEgressBytes?: boolean; podCount?: boolean; metrics?: boolean; +}; +export type IntegrationProviderSelect = { + id?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + slug?: boolean; + name?: boolean; + description?: boolean; + category?: boolean; + icon?: boolean; + logo?: boolean; + brand?: boolean; + requiredSecrets?: boolean; + requiredConfigs?: boolean; +}; +export type NamespaceEventSelect = { + createdAt?: boolean; + id?: boolean; + namespaceId?: boolean; + eventType?: boolean; + actorId?: boolean; + message?: boolean; + metadata?: boolean; + cpuMillicores?: boolean; + memoryBytes?: boolean; + storageBytes?: boolean; + networkIngressBytes?: boolean; + networkEgressBytes?: boolean; + podCount?: boolean; + metrics?: boolean; databaseId?: boolean; }; export type FunctionGraphExecutionSelect = { @@ -1128,7 +2051,7 @@ export type FunctionGraphExecutionSelect = { id?: boolean; graphId?: boolean; invocationId?: boolean; - databaseId?: boolean; + scopeId?: boolean; outputNode?: boolean; outputPort?: boolean; status?: boolean; @@ -1145,12 +2068,58 @@ export type FunctionGraphExecutionSelect = { maxTicks?: boolean; maxPendingJobs?: boolean; timeoutAt?: boolean; + lastProgressAt?: boolean; errorCode?: boolean; errorMessage?: boolean; graph?: { select: FunctionGraphSelect; }; }; +export type PlatformFunctionDefinitionSelect = { + id?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + scope?: boolean; + name?: boolean; + taskIdentifier?: boolean; + description?: boolean; + isPublished?: boolean; + accessChannels?: boolean; + publishedAt?: boolean; + maxAttempts?: boolean; + priority?: boolean; + queueName?: boolean; + runtime?: boolean; + targetSchema?: boolean; + targetFunction?: boolean; + moduleTable?: boolean; + functionColumns?: boolean; + payloadArgs?: boolean; + image?: boolean; + concurrency?: boolean; + scaleMin?: boolean; + scaleMax?: boolean; + timeoutSeconds?: boolean; + resources?: boolean; + isBuiltIn?: boolean; + requiredSecrets?: boolean; + requiredConfigs?: boolean; + integrations?: boolean; + requiredBuckets?: boolean; + requiredModels?: boolean; + inputs?: boolean; + outputs?: boolean; + props?: boolean; + volatile?: boolean; + icon?: boolean; + category?: boolean; + platformFunctionApiBindingsByFunctionDefinitionId?: { + select: PlatformFunctionApiBindingSelect; + first?: number; + filter?: PlatformFunctionApiBindingFilter; + orderBy?: PlatformFunctionApiBindingOrderBy[]; + }; +}; export type FunctionDefinitionSelect = { id?: boolean; createdAt?: boolean; @@ -1159,11 +2128,18 @@ export type FunctionDefinitionSelect = { name?: boolean; taskIdentifier?: boolean; description?: boolean; - isInvocable?: boolean; + isPublished?: boolean; + accessChannels?: boolean; + publishedAt?: boolean; maxAttempts?: boolean; priority?: boolean; queueName?: boolean; runtime?: boolean; + targetSchema?: boolean; + targetFunction?: boolean; + moduleTable?: boolean; + functionColumns?: boolean; + payloadArgs?: boolean; image?: boolean; concurrency?: boolean; scaleMin?: boolean; @@ -1173,6 +2149,7 @@ export type FunctionDefinitionSelect = { isBuiltIn?: boolean; requiredSecrets?: boolean; requiredConfigs?: boolean; + integrations?: boolean; requiredBuckets?: boolean; requiredModels?: boolean; inputs?: boolean; @@ -1181,20 +2158,22 @@ export type FunctionDefinitionSelect = { volatile?: boolean; icon?: boolean; category?: boolean; + databaseId?: boolean; functionApiBindings?: { select: FunctionApiBindingSelect; first?: number; filter?: FunctionApiBindingFilter; orderBy?: FunctionApiBindingOrderBy[]; }; - functionDeployments?: { - select: FunctionDeploymentSelect; - first?: number; - filter?: FunctionDeploymentFilter; - orderBy?: FunctionDeploymentOrderBy[]; - }; }; // ============ Table Filter Types ============ +export interface InfraGetAllRecordFilter { + path?: StringListFilter; + data?: JSONFilter; + and?: InfraGetAllRecordFilter[]; + or?: InfraGetAllRecordFilter[]; + not?: InfraGetAllRecordFilter; +} export interface GetAllRecordFilter { path?: StringListFilter; data?: JSONFilter; @@ -1202,11 +2181,47 @@ export interface GetAllRecordFilter { or?: GetAllRecordFilter[]; not?: GetAllRecordFilter; } -export interface FunctionApiBindingFilter { +export interface InfraRefFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `functionDefinitionId` field. */ - functionDefinitionId?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `scopeId` field. */ + scopeId?: UUIDFilter; + /** Filter by the object’s `storeId` field. */ + storeId?: UUIDFilter; + /** Filter by the object’s `commitId` field. */ + commitId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: InfraRefFilter[]; + /** Checks for any expressions in this list. */ + or?: InfraRefFilter[]; + /** Negates the expression. */ + not?: InfraRefFilter; +} +export interface InfraStoreFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `scopeId` field. */ + scopeId?: UUIDFilter; + /** Filter by the object’s `hash` field. */ + hash?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Checks for all expressions in this list. */ + and?: InfraStoreFilter[]; + /** Checks for any expressions in this list. */ + or?: InfraStoreFilter[]; + /** Negates the expression. */ + not?: InfraStoreFilter; +} +export interface FunctionApiBindingFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `functionDefinitionId` field. */ + functionDefinitionId?: UUIDFilter; /** Filter by the object’s `apiId` field. */ apiId?: UUIDFilter; /** Filter by the object’s `alias` field. */ @@ -1222,15 +2237,137 @@ export interface FunctionApiBindingFilter { /** Filter by the object’s `functionDefinition` relation. */ functionDefinition?: FunctionDefinitionFilter; } -export interface FunctionDeploymentFilter { +export interface FunctionGraphRefFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `scopeId` field. */ + scopeId?: UUIDFilter; + /** Filter by the object’s `storeId` field. */ + storeId?: UUIDFilter; + /** Filter by the object’s `commitId` field. */ + commitId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: FunctionGraphRefFilter[]; + /** Checks for any expressions in this list. */ + or?: FunctionGraphRefFilter[]; + /** Negates the expression. */ + not?: FunctionGraphRefFilter; +} +export interface FunctionGraphStoreFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `scopeId` field. */ + scopeId?: UUIDFilter; + /** Filter by the object’s `hash` field. */ + hash?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; + /** Checks for all expressions in this list. */ + and?: FunctionGraphStoreFilter[]; + /** Checks for any expressions in this list. */ + or?: FunctionGraphStoreFilter[]; + /** Negates the expression. */ + not?: FunctionGraphStoreFilter; +} +export interface PlatformFunctionApiBindingFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; /** Filter by the object’s `functionDefinitionId` field. */ functionDefinitionId?: UUIDFilter; + /** Filter by the object’s `apiId` field. */ + apiId?: UUIDFilter; + /** Filter by the object’s `alias` field. */ + alias?: StringFilter; + /** Filter by the object’s `config` field. */ + config?: JSONFilter; + /** Checks for all expressions in this list. */ + and?: PlatformFunctionApiBindingFilter[]; + /** Checks for any expressions in this list. */ + or?: PlatformFunctionApiBindingFilter[]; + /** Negates the expression. */ + not?: PlatformFunctionApiBindingFilter; + /** Filter by the object’s `functionDefinition` relation. */ + functionDefinition?: PlatformFunctionDefinitionFilter; +} +export interface PlatformResourcesRequirementsStateFilter { + /** Filter by the object’s `resourceId` field. */ + resourceId?: UUIDFilter; + /** Filter by the object’s `slug` field. */ + slug?: StringFilter; + /** Filter by the object’s `secretsHash` field. */ + secretsHash?: StringFilter; + /** Filter by the object’s `configHash` field. */ + configHash?: StringFilter; + /** Filter by the object’s `requirementsHash` field. */ + requirementsHash?: StringFilter; + /** Filter by the object’s `secretsObjectName` field. */ + secretsObjectName?: StringFilter; + /** Filter by the object’s `configObjectName` field. */ + configObjectName?: StringFilter; + /** Checks for all expressions in this list. */ + and?: PlatformResourcesRequirementsStateFilter[]; + /** Checks for any expressions in this list. */ + or?: PlatformResourcesRequirementsStateFilter[]; + /** Negates the expression. */ + not?: PlatformResourcesRequirementsStateFilter; +} +export interface ResourcesRequirementsStateFilter { + /** Filter by the object’s `resourceId` field. */ + resourceId?: UUIDFilter; + /** Filter by the object’s `slug` field. */ + slug?: StringFilter; + /** Filter by the object’s `secretsHash` field. */ + secretsHash?: StringFilter; + /** Filter by the object’s `configHash` field. */ + configHash?: StringFilter; + /** Filter by the object’s `requirementsHash` field. */ + requirementsHash?: StringFilter; + /** Filter by the object’s `secretsObjectName` field. */ + secretsObjectName?: StringFilter; + /** Filter by the object’s `configObjectName` field. */ + configObjectName?: StringFilter; + /** Checks for all expressions in this list. */ + and?: ResourcesRequirementsStateFilter[]; + /** Checks for any expressions in this list. */ + or?: ResourcesRequirementsStateFilter[]; + /** Negates the expression. */ + not?: ResourcesRequirementsStateFilter; +} +export interface PlatformResourceStatusCheckFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `resourceId` field. */ + resourceId?: UUIDFilter; + /** Filter by the object’s `requestedBy` field. */ + requestedBy?: UUIDFilter; + /** Filter by the object’s `requestedAt` field. */ + requestedAt?: DatetimeFilter; + /** Filter by the object’s `completedAt` field. */ + completedAt?: DatetimeFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `result` field. */ + result?: JSONFilter; + /** Checks for all expressions in this list. */ + and?: PlatformResourceStatusCheckFilter[]; + /** Checks for any expressions in this list. */ + or?: PlatformResourceStatusCheckFilter[]; + /** Negates the expression. */ + not?: PlatformResourceStatusCheckFilter; + /** Filter by the object’s `resource` relation. */ + resource?: PlatformResourceFilter; +} +export interface PlatformFunctionDeploymentFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; /** Filter by the object’s `namespaceId` field. */ namespaceId?: UUIDFilter; /** Filter by the object’s `status` field. */ @@ -1243,6 +2380,10 @@ export interface FunctionDeploymentFilter { revision?: IntFilter; /** Filter by the object’s `image` field. */ image?: StringFilter; + /** Filter by the object’s `imageVersion` field. */ + imageVersion?: StringFilter; + /** Filter by the object’s `handlerName` field. */ + handlerName?: StringFilter; /** Filter by the object’s `concurrency` field. */ concurrency?: IntFilter; /** Filter by the object’s `scaleMin` field. */ @@ -1263,20 +2404,16 @@ export interface FunctionDeploymentFilter { labels?: JSONFilter; /** Filter by the object’s `annotations` field. */ annotations?: JSONFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; /** Checks for all expressions in this list. */ - and?: FunctionDeploymentFilter[]; + and?: PlatformFunctionDeploymentFilter[]; /** Checks for any expressions in this list. */ - or?: FunctionDeploymentFilter[]; + or?: PlatformFunctionDeploymentFilter[]; /** Negates the expression. */ - not?: FunctionDeploymentFilter; - /** Filter by the object’s `functionDefinition` relation. */ - functionDefinition?: FunctionDefinitionFilter; + not?: PlatformFunctionDeploymentFilter; /** Filter by the object’s `namespace` relation. */ namespace?: PlatformNamespaceFilter; } -export interface ResourceFilter { +export interface PlatformResourceFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ @@ -1309,58 +2446,92 @@ export interface ResourceFilter { labels?: JSONFilter; /** Filter by the object’s `annotations` field. */ annotations?: JSONFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; + /** Filter by the object’s `integrations` field. */ + integrations?: StringListFilter; + /** Filter by the object’s `resourceDefinitionId` field. */ + resourceDefinitionId?: UUIDFilter; /** Checks for all expressions in this list. */ - and?: ResourceFilter[]; + and?: PlatformResourceFilter[]; /** Checks for any expressions in this list. */ - or?: ResourceFilter[]; + or?: PlatformResourceFilter[]; /** Negates the expression. */ - not?: ResourceFilter; + not?: PlatformResourceFilter; /** Filter by the object’s `namespace` relation. */ namespace?: PlatformNamespaceFilter; -} -export interface FunctionGraphRefFilter { + /** Filter by the object’s `resourceDefinition` relation. */ + resourceDefinition?: PlatformResourceDefinitionFilter; + /** A related `resourceDefinition` exists. */ + resourceDefinitionExists?: boolean; + /** Filter by the object’s `platformResourceStatusChecksByResourceId` relation. */ + platformResourceStatusChecksByResourceId?: PlatformResourceToManyPlatformResourceStatusCheckFilter; + /** `platformResourceStatusChecksByResourceId` exist. */ + platformResourceStatusChecksByResourceIdExist?: boolean; +} +export interface PlatformResourceDefinitionFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; + /** Filter by the object’s `kind` field. */ + kind?: StringFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `storeId` field. */ - storeId?: UUIDFilter; - /** Filter by the object’s `commitId` field. */ - commitId?: UUIDFilter; + /** Filter by the object’s `slug` field. */ + slug?: StringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `defaultSpec` field. */ + defaultSpec?: JSONFilter; + /** Filter by the object’s `integrations` field. */ + integrations?: StringListFilter; + /** Filter by the object’s `labels` field. */ + labels?: JSONFilter; + /** Filter by the object’s `annotations` field. */ + annotations?: JSONFilter; + /** Filter by the object’s `stepUpMinAge` field. */ + stepUpMinAge?: IntervalFilter; /** Checks for all expressions in this list. */ - and?: FunctionGraphRefFilter[]; + and?: PlatformResourceDefinitionFilter[]; /** Checks for any expressions in this list. */ - or?: FunctionGraphRefFilter[]; + or?: PlatformResourceDefinitionFilter[]; /** Negates the expression. */ - not?: FunctionGraphRefFilter; + not?: PlatformResourceDefinitionFilter; + /** Filter by the object’s `namespace` relation. */ + namespace?: PlatformNamespaceFilter; } -export interface FunctionGraphStoreFilter { +export interface InfraObjectFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `hash` field. */ - hash?: UUIDFilter; + /** Filter by the object’s `scopeId` field. */ + scopeId?: UUIDFilter; + /** Filter by the object’s `kids` field. */ + kids?: UUIDListFilter; + /** Filter by the object’s `ktree` field. */ + ktree?: StringListFilter; + /** Filter by the object’s `data` field. */ + data?: JSONFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; /** Checks for all expressions in this list. */ - and?: FunctionGraphStoreFilter[]; + and?: InfraObjectFilter[]; /** Checks for any expressions in this list. */ - or?: FunctionGraphStoreFilter[]; + or?: InfraObjectFilter[]; /** Negates the expression. */ - not?: FunctionGraphStoreFilter; + not?: InfraObjectFilter; } export interface FunctionGraphObjectFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; + /** Filter by the object’s `scopeId` field. */ + scopeId?: UUIDFilter; /** Filter by the object’s `kids` field. */ kids?: UUIDListFilter; /** Filter by the object’s `ktree` field. */ @@ -1376,7 +2547,7 @@ export interface FunctionGraphObjectFilter { /** Negates the expression. */ not?: FunctionGraphObjectFilter; } -export interface FunctionDeploymentEventFilter { +export interface PlatformFunctionDeploymentEventFilter { /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; /** Filter by the object’s `id` field. */ @@ -1391,40 +2562,14 @@ export interface FunctionDeploymentEventFilter { message?: StringFilter; /** Filter by the object’s `metadata` field. */ metadata?: JSONFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: FunctionDeploymentEventFilter[]; - /** Checks for any expressions in this list. */ - or?: FunctionDeploymentEventFilter[]; - /** Negates the expression. */ - not?: FunctionDeploymentEventFilter; -} -export interface OrgFunctionExecutionLogFilter { - /** 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 `taskIdentifier` field. */ - taskIdentifier?: 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; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; /** Checks for all expressions in this list. */ - and?: OrgFunctionExecutionLogFilter[]; + and?: PlatformFunctionDeploymentEventFilter[]; /** Checks for any expressions in this list. */ - or?: OrgFunctionExecutionLogFilter[]; + or?: PlatformFunctionDeploymentEventFilter[]; /** Negates the expression. */ - not?: OrgFunctionExecutionLogFilter; + not?: PlatformFunctionDeploymentEventFilter; } -export interface ResourceEventFilter { +export interface PlatformResourceEventFilter { /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; /** Filter by the object’s `id` field. */ @@ -1439,298 +2584,246 @@ export interface ResourceEventFilter { message?: StringFilter; /** Filter by the object’s `metadata` field. */ metadata?: JSONFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: ResourceEventFilter[]; - /** Checks for any expressions in this list. */ - or?: ResourceEventFilter[]; - /** Negates the expression. */ - not?: ResourceEventFilter; -} -export interface FunctionGraphExecutionOutputFilter { - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `hash` field. */ - hash?: Base64EncodedBinaryFilter; - /** Filter by the object’s `data` field. */ - data?: JSONFilter; /** Checks for all expressions in this list. */ - and?: FunctionGraphExecutionOutputFilter[]; + and?: PlatformResourceEventFilter[]; /** Checks for any expressions in this list. */ - or?: FunctionGraphExecutionOutputFilter[]; + or?: PlatformResourceEventFilter[]; /** Negates the expression. */ - not?: FunctionGraphExecutionOutputFilter; + not?: PlatformResourceEventFilter; } -export interface FunctionGraphCommitFilter { +export interface ResourceStatusCheckFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `message` field. */ - message?: StringFilter; + /** Filter by the object’s `resourceId` field. */ + resourceId?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `storeId` field. */ - storeId?: UUIDFilter; - /** Filter by the object’s `parentIds` field. */ - parentIds?: UUIDListFilter; - /** Filter by the object’s `authorId` field. */ - authorId?: UUIDFilter; - /** Filter by the object’s `committerId` field. */ - committerId?: UUIDFilter; - /** Filter by the object’s `treeId` field. */ - treeId?: UUIDFilter; - /** Filter by the object’s `date` field. */ - date?: DatetimeFilter; + /** Filter by the object’s `requestedBy` field. */ + requestedBy?: UUIDFilter; + /** Filter by the object’s `requestedAt` field. */ + requestedAt?: DatetimeFilter; + /** Filter by the object’s `completedAt` field. */ + completedAt?: DatetimeFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `result` field. */ + result?: JSONFilter; /** Checks for all expressions in this list. */ - and?: FunctionGraphCommitFilter[]; + and?: ResourceStatusCheckFilter[]; /** Checks for any expressions in this list. */ - or?: FunctionGraphCommitFilter[]; + or?: ResourceStatusCheckFilter[]; /** Negates the expression. */ - not?: FunctionGraphCommitFilter; + not?: ResourceStatusCheckFilter; + /** Filter by the object’s `resource` relation. */ + resource?: ResourceFilter; } -export interface SecretDefinitionFilter { +export interface FunctionDeploymentFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Filter by the object’s `isBuiltIn` field. */ - isBuiltIn?: BooleanFilter; - /** Filter by the object’s `labels` field. */ - labels?: JSONFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `serviceUrl` field. */ + serviceUrl?: StringFilter; + /** Filter by the object’s `serviceName` field. */ + serviceName?: StringFilter; + /** Filter by the object’s `revision` field. */ + revision?: IntFilter; + /** Filter by the object’s `image` field. */ + image?: StringFilter; + /** Filter by the object’s `imageVersion` field. */ + imageVersion?: StringFilter; + /** Filter by the object’s `handlerName` field. */ + handlerName?: StringFilter; + /** Filter by the object’s `concurrency` field. */ + concurrency?: IntFilter; + /** Filter by the object’s `scaleMin` field. */ + scaleMin?: IntFilter; + /** Filter by the object’s `scaleMax` field. */ + scaleMax?: IntFilter; + /** Filter by the object’s `timeoutSeconds` field. */ + timeoutSeconds?: IntFilter; + /** Filter by the object’s `resources` field. */ + resources?: JSONFilter; + /** Filter by the object’s `lastError` field. */ + lastError?: StringFilter; + /** Filter by the object’s `lastErrorAt` field. */ + lastErrorAt?: DatetimeFilter; + /** Filter by the object’s `errorCount` field. */ + errorCount?: IntFilter; + /** Filter by the object’s `labels` field. */ + labels?: JSONFilter; /** Filter by the object’s `annotations` field. */ annotations?: JSONFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; /** Checks for all expressions in this list. */ - and?: SecretDefinitionFilter[]; - /** Checks for any expressions in this list. */ - or?: SecretDefinitionFilter[]; - /** Negates the expression. */ - not?: SecretDefinitionFilter; -} -export interface FunctionExecutionLogFilter { - /** 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 `taskIdentifier` field. */ - taskIdentifier?: 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; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: FunctionExecutionLogFilter[]; + and?: FunctionDeploymentFilter[]; /** Checks for any expressions in this list. */ - or?: FunctionExecutionLogFilter[]; + or?: FunctionDeploymentFilter[]; /** Negates the expression. */ - not?: FunctionExecutionLogFilter; + not?: FunctionDeploymentFilter; + /** Filter by the object’s `namespace` relation. */ + namespace?: NamespaceFilter; } -export interface FunctionGraphFilter { +export interface ResourceFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `storeId` field. */ - storeId?: UUIDFilter; - /** Filter by the object’s `context` field. */ - context?: StringFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Filter by the object’s `definitionsCommitId` field. */ - definitionsCommitId?: UUIDFilter; - /** Filter by the object’s `isValid` field. */ - isValid?: BooleanFilter; - /** Filter by the object’s `validationErrors` field. */ - validationErrors?: JSONFilter; - /** Filter by the object’s `createdBy` field. */ - createdBy?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; - /** Checks for all expressions in this list. */ - and?: FunctionGraphFilter[]; - /** Checks for any expressions in this list. */ - or?: FunctionGraphFilter[]; - /** Negates the expression. */ - not?: FunctionGraphFilter; -} -export interface FunctionGraphExecutionNodeStateFilter { - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `executionId` field. */ - executionId?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `nodeName` field. */ - nodeName?: StringFilter; - /** Filter by the object’s `nodePath` field. */ - nodePath?: StringListFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; + /** Filter by the object’s `kind` field. */ + kind?: StringFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** 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 `startedAt` field. */ - startedAt?: DatetimeFilter; - /** Filter by the object’s `completedAt` field. */ - completedAt?: DatetimeFilter; - /** Filter by the object’s `errorCode` field. */ - errorCode?: StringFilter; - /** Filter by the object’s `errorMessage` field. */ - errorMessage?: StringFilter; - /** Filter by the object’s `outputId` field. */ - outputId?: UUIDFilter; + /** Filter by the object’s `statusObserved` field. */ + statusObserved?: JSONFilter; + /** Filter by the object’s `lastError` field. */ + lastError?: StringFilter; + /** Filter by the object’s `errorCount` field. */ + errorCount?: IntFilter; + /** Filter by the object’s `labels` field. */ + labels?: JSONFilter; + /** Filter by the object’s `annotations` field. */ + annotations?: JSONFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `integrations` field. */ + integrations?: StringListFilter; + /** Filter by the object’s `resourceDefinitionId` field. */ + resourceDefinitionId?: UUIDFilter; /** Checks for all expressions in this list. */ - and?: FunctionGraphExecutionNodeStateFilter[]; + and?: ResourceFilter[]; /** Checks for any expressions in this list. */ - or?: FunctionGraphExecutionNodeStateFilter[]; + or?: ResourceFilter[]; /** Negates the expression. */ - not?: FunctionGraphExecutionNodeStateFilter; -} -export interface PlatformNamespaceFilter { + not?: ResourceFilter; + /** Filter by the object’s `namespace` relation. */ + namespace?: NamespaceFilter; + /** Filter by the object’s `resourceDefinition` relation. */ + resourceDefinition?: ResourceDefinitionFilter; + /** A related `resourceDefinition` exists. */ + resourceDefinitionExists?: boolean; + /** Filter by the object’s `resourceStatusChecks` relation. */ + resourceStatusChecks?: ResourceToManyResourceStatusCheckFilter; + /** `resourceStatusChecks` exist. */ + resourceStatusChecksExist?: boolean; +} +export interface ResourceDefinitionFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; + /** Filter by the object’s `kind` field. */ + kind?: StringFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; - /** Filter by the object’s `namespaceName` field. */ - namespaceName?: StringFilter; + /** Filter by the object’s `slug` field. */ + slug?: StringFilter; /** Filter by the object’s `description` field. */ description?: StringFilter; - /** Filter by the object’s `isActive` field. */ - isActive?: BooleanFilter; + /** Filter by the object’s `defaultSpec` field. */ + defaultSpec?: JSONFilter; + /** Filter by the object’s `integrations` field. */ + integrations?: StringListFilter; /** Filter by the object’s `labels` field. */ labels?: JSONFilter; /** Filter by the object’s `annotations` field. */ annotations?: JSONFilter; + /** Filter by the object’s `stepUpMinAge` field. */ + stepUpMinAge?: IntervalFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `sourceDatabaseId` field. */ - sourceDatabaseId?: UUIDFilter; - /** Filter by the object’s `sourceScope` field. */ - sourceScope?: StringFilter; - /** Filter by the object’s `isManaged` field. */ - isManaged?: BooleanFilter; /** Checks for all expressions in this list. */ - and?: PlatformNamespaceFilter[]; + and?: ResourceDefinitionFilter[]; /** Checks for any expressions in this list. */ - or?: PlatformNamespaceFilter[]; + or?: ResourceDefinitionFilter[]; /** Negates the expression. */ - not?: PlatformNamespaceFilter; - /** Filter by the object’s `functionDeploymentsByNamespaceId` relation. */ - functionDeploymentsByNamespaceId?: PlatformNamespaceToManyFunctionDeploymentFilter; - /** `functionDeploymentsByNamespaceId` exist. */ - functionDeploymentsByNamespaceIdExist?: boolean; - /** Filter by the object’s `resourcesByNamespaceId` relation. */ - resourcesByNamespaceId?: PlatformNamespaceToManyResourceFilter; - /** `resourcesByNamespaceId` exist. */ - resourcesByNamespaceIdExist?: boolean; -} -export interface OrgFunctionInvocationFilter { + not?: ResourceDefinitionFilter; + /** Filter by the object’s `namespace` relation. */ + namespace?: NamespaceFilter; +} +export interface FunctionDeploymentEventFilter { /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; + /** Filter by the object’s `deploymentId` field. */ + deploymentId?: UUIDFilter; + /** Filter by the object’s `eventType` field. */ + eventType?: StringFilter; /** Filter by the object’s `actorId` field. */ actorId?: UUIDFilter; - /** Filter by the object’s `taskIdentifier` field. */ - taskIdentifier?: StringFilter; - /** Filter by the object’s `payload` field. */ - payload?: JSONFilter; - /** Filter by the object’s `status` field. */ - status?: StringFilter; - /** Filter by the object’s `result` field. */ - result?: JSONFilter; - /** Filter by the object’s `error` field. */ - error?: StringFilter; - /** Filter by the object’s `durationMs` field. */ - durationMs?: IntFilter; - /** Filter by the object’s `jobId` field. */ - jobId?: BigIntFilter; - /** Filter by the object’s `startedAt` field. */ - startedAt?: DatetimeFilter; - /** Filter by the object’s `completedAt` field. */ - completedAt?: DatetimeFilter; - /** Filter by the object’s `parentInvocationId` field. */ - parentInvocationId?: UUIDFilter; - /** Filter by the object’s `graphExecutionId` field. */ - graphExecutionId?: UUIDFilter; + /** Filter by the object’s `message` field. */ + message?: StringFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; /** Checks for all expressions in this list. */ - and?: OrgFunctionInvocationFilter[]; + and?: FunctionDeploymentEventFilter[]; /** Checks for any expressions in this list. */ - or?: OrgFunctionInvocationFilter[]; + or?: FunctionDeploymentEventFilter[]; /** Negates the expression. */ - not?: OrgFunctionInvocationFilter; + not?: FunctionDeploymentEventFilter; } -export interface FunctionInvocationFilter { +export interface PlatformFunctionExecutionLogFilter { /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; + /** Filter by the object’s `invocationId` field. */ + invocationId?: UUIDFilter; /** Filter by the object’s `taskIdentifier` field. */ taskIdentifier?: StringFilter; - /** Filter by the object’s `payload` field. */ - payload?: JSONFilter; - /** Filter by the object’s `status` field. */ - status?: StringFilter; - /** Filter by the object’s `result` field. */ - result?: JSONFilter; - /** Filter by the object’s `error` field. */ - error?: StringFilter; - /** Filter by the object’s `durationMs` field. */ - durationMs?: IntFilter; - /** Filter by the object’s `jobId` field. */ - jobId?: BigIntFilter; - /** Filter by the object’s `startedAt` field. */ - startedAt?: DatetimeFilter; - /** Filter by the object’s `completedAt` field. */ - completedAt?: DatetimeFilter; - /** Filter by the object’s `parentInvocationId` field. */ - parentInvocationId?: UUIDFilter; - /** Filter by the object’s `graphExecutionId` field. */ - graphExecutionId?: 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 `actorId` field. */ + actorId?: UUIDFilter; /** Checks for all expressions in this list. */ - and?: FunctionInvocationFilter[]; + and?: PlatformFunctionExecutionLogFilter[]; /** Checks for any expressions in this list. */ - or?: FunctionInvocationFilter[]; + or?: PlatformFunctionExecutionLogFilter[]; /** Negates the expression. */ - not?: FunctionInvocationFilter; + not?: PlatformFunctionExecutionLogFilter; } -export interface PlatformNamespaceEventFilter { +export interface ResourceEventFilter { /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `namespaceId` field. */ - namespaceId?: UUIDFilter; + /** Filter by the object’s `resourceId` field. */ + resourceId?: UUIDFilter; /** Filter by the object’s `eventType` field. */ eventType?: StringFilter; /** Filter by the object’s `actorId` field. */ @@ -1739,110 +2832,624 @@ export interface PlatformNamespaceEventFilter { message?: StringFilter; /** Filter by the object’s `metadata` field. */ metadata?: JSONFilter; - /** Filter by the object’s `cpuMillicores` field. */ - cpuMillicores?: IntFilter; - /** Filter by the object’s `memoryBytes` field. */ - memoryBytes?: BigIntFilter; - /** Filter by the object’s `storageBytes` field. */ - storageBytes?: BigIntFilter; - /** Filter by the object’s `networkIngressBytes` field. */ - networkIngressBytes?: BigIntFilter; - /** Filter by the object’s `networkEgressBytes` field. */ - networkEgressBytes?: BigIntFilter; - /** Filter by the object’s `podCount` field. */ - podCount?: IntFilter; - /** Filter by the object’s `metrics` field. */ - metrics?: JSONFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; /** Checks for all expressions in this list. */ - and?: PlatformNamespaceEventFilter[]; + and?: ResourceEventFilter[]; /** Checks for any expressions in this list. */ - or?: PlatformNamespaceEventFilter[]; + or?: ResourceEventFilter[]; /** Negates the expression. */ - not?: PlatformNamespaceEventFilter; + not?: ResourceEventFilter; } -export interface FunctionGraphExecutionFilter { - /** Filter by the object’s `startedAt` field. */ - startedAt?: DatetimeFilter; +export interface FunctionGraphExecutionOutputFilter { + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `scopeId` field. */ + scopeId?: UUIDFilter; + /** Filter by the object’s `hash` field. */ + hash?: Base64EncodedBinaryFilter; + /** Filter by the object’s `data` field. */ + data?: JSONFilter; + /** Checks for all expressions in this list. */ + and?: FunctionGraphExecutionOutputFilter[]; + /** Checks for any expressions in this list. */ + or?: FunctionGraphExecutionOutputFilter[]; + /** Negates the expression. */ + not?: FunctionGraphExecutionOutputFilter; +} +export interface InfraCommitFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `message` field. */ + message?: StringFilter; + /** Filter by the object’s `scopeId` field. */ + scopeId?: UUIDFilter; + /** Filter by the object’s `storeId` field. */ + storeId?: UUIDFilter; + /** Filter by the object’s `parentIds` field. */ + parentIds?: UUIDListFilter; + /** Filter by the object’s `authorId` field. */ + authorId?: UUIDFilter; + /** Filter by the object’s `committerId` field. */ + committerId?: UUIDFilter; + /** Filter by the object’s `treeId` field. */ + treeId?: UUIDFilter; + /** Filter by the object’s `date` field. */ + date?: DatetimeFilter; + /** Checks for all expressions in this list. */ + and?: InfraCommitFilter[]; + /** Checks for any expressions in this list. */ + or?: InfraCommitFilter[]; + /** Negates the expression. */ + not?: InfraCommitFilter; +} +export interface FunctionGraphCommitFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `message` field. */ + message?: StringFilter; + /** Filter by the object’s `scopeId` field. */ + scopeId?: UUIDFilter; + /** Filter by the object’s `storeId` field. */ + storeId?: UUIDFilter; + /** Filter by the object’s `parentIds` field. */ + parentIds?: UUIDListFilter; + /** Filter by the object’s `authorId` field. */ + authorId?: UUIDFilter; + /** Filter by the object’s `committerId` field. */ + committerId?: UUIDFilter; + /** Filter by the object’s `treeId` field. */ + treeId?: UUIDFilter; + /** Filter by the object’s `date` field. */ + date?: DatetimeFilter; + /** Checks for all expressions in this list. */ + and?: FunctionGraphCommitFilter[]; + /** Checks for any expressions in this list. */ + or?: FunctionGraphCommitFilter[]; + /** Negates the expression. */ + not?: FunctionGraphCommitFilter; +} +export interface FunctionExecutionLogFilter { + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `graphId` field. */ - graphId?: UUIDFilter; /** Filter by the object’s `invocationId` field. */ invocationId?: UUIDFilter; + /** Filter by the object’s `taskIdentifier` field. */ + taskIdentifier?: 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; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `outputNode` field. */ - outputNode?: StringFilter; - /** Filter by the object’s `outputPort` field. */ - outputPort?: StringFilter; + /** Checks for all expressions in this list. */ + and?: FunctionExecutionLogFilter[]; + /** Checks for any expressions in this list. */ + or?: FunctionExecutionLogFilter[]; + /** Negates the expression. */ + not?: FunctionExecutionLogFilter; +} +export interface PlatformResourcesResolvedRequirementFilter { + /** Filter by the object’s `resourceId` field. */ + resourceId?: UUIDFilter; + /** Filter by the object’s `slug` field. */ + slug?: StringFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; + /** Filter by the object’s `requirementKind` field. */ + requirementKind?: StringFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `required` field. */ + required?: BooleanFilter; + /** Filter by the object’s `atomId` field. */ + atomId?: UUIDFilter; + /** Filter by the object’s `present` field. */ + present?: BooleanFilter; + /** Filter by the object’s `secretsObjectName` field. */ + secretsObjectName?: StringFilter; + /** Filter by the object’s `configObjectName` field. */ + configObjectName?: StringFilter; + /** Checks for all expressions in this list. */ + and?: PlatformResourcesResolvedRequirementFilter[]; + /** Checks for any expressions in this list. */ + or?: PlatformResourcesResolvedRequirementFilter[]; + /** Negates the expression. */ + not?: PlatformResourcesResolvedRequirementFilter; +} +export interface ResourcesResolvedRequirementFilter { + /** Filter by the object’s `resourceId` field. */ + resourceId?: UUIDFilter; + /** Filter by the object’s `slug` field. */ + slug?: StringFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; + /** Filter by the object’s `requirementKind` field. */ + requirementKind?: StringFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `required` field. */ + required?: BooleanFilter; + /** Filter by the object’s `atomId` field. */ + atomId?: UUIDFilter; + /** Filter by the object’s `present` field. */ + present?: BooleanFilter; + /** Filter by the object’s `secretsObjectName` field. */ + secretsObjectName?: StringFilter; + /** Filter by the object’s `configObjectName` field. */ + configObjectName?: StringFilter; + /** Checks for all expressions in this list. */ + and?: ResourcesResolvedRequirementFilter[]; + /** Checks for any expressions in this list. */ + or?: ResourcesResolvedRequirementFilter[]; + /** Negates the expression. */ + not?: ResourcesResolvedRequirementFilter; +} +export interface DbPresetFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `storeId` field. */ + storeId?: UUIDFilter; + /** Filter by the object’s `slug` field. */ + slug?: StringFilter; + /** Filter by the object’s `definition` field. */ + definition?: JSONFilter; + /** Filter by the object’s `commitId` field. */ + commitId?: UUIDFilter; + /** Filter by the object’s `modulesHash` field. */ + modulesHash?: UUIDFilter; + /** Filter by the object’s `label` field. */ + label?: StringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `active` field. */ + active?: BooleanFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Checks for all expressions in this list. */ + and?: DbPresetFilter[]; + /** Checks for any expressions in this list. */ + or?: DbPresetFilter[]; + /** Negates the expression. */ + not?: DbPresetFilter; +} +export interface PlatformNamespaceFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `namespaceName` field. */ + namespaceName?: StringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `isActive` field. */ + isActive?: BooleanFilter; /** Filter by the object’s `status` field. */ status?: StringFilter; - /** Filter by the object’s `inputPayload` field. */ - inputPayload?: JSONFilter; - /** Filter by the object’s `outputPayload` field. */ - outputPayload?: JSONFilter; - /** Filter by the object’s `nodeOutputs` field. */ - nodeOutputs?: JSONFilter; - /** Filter by the object’s `executionPlan` field. */ - executionPlan?: JSONFilter; - /** Filter by the object’s `currentWave` field. */ - currentWave?: IntFilter; - /** Filter by the object’s `parentExecutionId` field. */ - parentExecutionId?: UUIDFilter; - /** Filter by the object’s `parentNodeName` field. */ - parentNodeName?: StringFilter; + /** Filter by the object’s `lastError` field. */ + lastError?: StringFilter; + /** Filter by the object’s `labels` field. */ + labels?: JSONFilter; + /** Filter by the object’s `annotations` field. */ + annotations?: JSONFilter; + /** Filter by the object’s `isManaged` field. */ + isManaged?: BooleanFilter; + /** Checks for all expressions in this list. */ + and?: PlatformNamespaceFilter[]; + /** Checks for any expressions in this list. */ + or?: PlatformNamespaceFilter[]; + /** Negates the expression. */ + not?: PlatformNamespaceFilter; + /** Filter by the object’s `platformFunctionDeploymentsByNamespaceId` relation. */ + platformFunctionDeploymentsByNamespaceId?: PlatformNamespaceToManyPlatformFunctionDeploymentFilter; + /** `platformFunctionDeploymentsByNamespaceId` exist. */ + platformFunctionDeploymentsByNamespaceIdExist?: boolean; + /** Filter by the object’s `platformResourcesByNamespaceId` relation. */ + platformResourcesByNamespaceId?: PlatformNamespaceToManyPlatformResourceFilter; + /** `platformResourcesByNamespaceId` exist. */ + platformResourcesByNamespaceIdExist?: boolean; + /** Filter by the object’s `platformResourceDefinitionsByNamespaceId` relation. */ + platformResourceDefinitionsByNamespaceId?: PlatformNamespaceToManyPlatformResourceDefinitionFilter; + /** `platformResourceDefinitionsByNamespaceId` exist. */ + platformResourceDefinitionsByNamespaceIdExist?: boolean; +} +export interface FunctionGraphFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `scopeId` field. */ + scopeId?: UUIDFilter; + /** Filter by the object’s `storeId` field. */ + storeId?: UUIDFilter; + /** Filter by the object’s `context` field. */ + context?: StringFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; /** Filter by the object’s `definitionsCommitId` field. */ definitionsCommitId?: UUIDFilter; - /** Filter by the object’s `tickCount` field. */ - tickCount?: IntFilter; + /** Filter by the object’s `isValid` field. */ + isValid?: BooleanFilter; + /** Filter by the object’s `validationErrors` field. */ + validationErrors?: JSONFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Checks for all expressions in this list. */ + and?: FunctionGraphFilter[]; + /** Checks for any expressions in this list. */ + or?: FunctionGraphFilter[]; + /** Negates the expression. */ + not?: FunctionGraphFilter; +} +export interface FunctionGraphExecutionNodeStateFilter { + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `executionId` field. */ + executionId?: UUIDFilter; + /** Filter by the object’s `scopeId` field. */ + scopeId?: UUIDFilter; + /** Filter by the object’s `nodeName` field. */ + nodeName?: StringFilter; + /** Filter by the object’s `nodePath` field. */ + nodePath?: StringListFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `startedAt` field. */ + startedAt?: DatetimeFilter; /** Filter by the object’s `completedAt` field. */ completedAt?: DatetimeFilter; - /** Filter by the object’s `maxTicks` field. */ - maxTicks?: IntFilter; - /** Filter by the object’s `maxPendingJobs` field. */ - maxPendingJobs?: IntFilter; - /** Filter by the object’s `timeoutAt` field. */ - timeoutAt?: DatetimeFilter; /** Filter by the object’s `errorCode` field. */ errorCode?: StringFilter; /** Filter by the object’s `errorMessage` field. */ errorMessage?: StringFilter; + /** Filter by the object’s `outputId` field. */ + outputId?: UUIDFilter; /** Checks for all expressions in this list. */ - and?: FunctionGraphExecutionFilter[]; + and?: FunctionGraphExecutionNodeStateFilter[]; /** Checks for any expressions in this list. */ - or?: FunctionGraphExecutionFilter[]; + or?: FunctionGraphExecutionNodeStateFilter[]; /** Negates the expression. */ - not?: FunctionGraphExecutionFilter; - /** Filter by the object’s `graph` relation. */ - graph?: FunctionGraphFilter; + not?: FunctionGraphExecutionNodeStateFilter; } -export interface FunctionDefinitionFilter { +export interface NamespaceFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; - /** Filter by the object’s `scope` field. */ - scope?: StringFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; - /** Filter by the object’s `taskIdentifier` field. */ - taskIdentifier?: StringFilter; + /** Filter by the object’s `namespaceName` field. */ + namespaceName?: StringFilter; /** Filter by the object’s `description` field. */ description?: StringFilter; - /** Filter by the object’s `isInvocable` field. */ - isInvocable?: BooleanFilter; - /** Filter by the object’s `maxAttempts` field. */ - maxAttempts?: IntFilter; - /** Filter by the object’s `priority` field. */ + /** Filter by the object’s `isActive` field. */ + isActive?: BooleanFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `lastError` field. */ + lastError?: StringFilter; + /** Filter by the object’s `labels` field. */ + labels?: JSONFilter; + /** Filter by the object’s `annotations` field. */ + annotations?: JSONFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `isManaged` field. */ + isManaged?: BooleanFilter; + /** Checks for all expressions in this list. */ + and?: NamespaceFilter[]; + /** Checks for any expressions in this list. */ + or?: NamespaceFilter[]; + /** Negates the expression. */ + not?: NamespaceFilter; + /** Filter by the object’s `functionDeployments` relation. */ + functionDeployments?: NamespaceToManyFunctionDeploymentFilter; + /** `functionDeployments` exist. */ + functionDeploymentsExist?: boolean; + /** Filter by the object’s `resources` relation. */ + resources?: NamespaceToManyResourceFilter; + /** `resources` exist. */ + resourcesExist?: boolean; + /** Filter by the object’s `resourceDefinitions` relation. */ + resourceDefinitions?: NamespaceToManyResourceDefinitionFilter; + /** `resourceDefinitions` exist. */ + resourceDefinitionsExist?: boolean; +} +export interface PlatformFunctionInvocationFilter { + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Filter by the object’s `taskIdentifier` field. */ + taskIdentifier?: StringFilter; + /** Filter by the object’s `payload` field. */ + payload?: JSONFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `result` field. */ + result?: JSONFilter; + /** Filter by the object’s `error` field. */ + error?: StringFilter; + /** Filter by the object’s `durationMs` field. */ + durationMs?: IntFilter; + /** Filter by the object’s `jobId` field. */ + jobId?: BigIntFilter; + /** Filter by the object’s `startedAt` field. */ + startedAt?: DatetimeFilter; + /** Filter by the object’s `completedAt` field. */ + completedAt?: DatetimeFilter; + /** Filter by the object’s `parentInvocationId` field. */ + parentInvocationId?: UUIDFilter; + /** Filter by the object’s `graphExecutionId` field. */ + graphExecutionId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: PlatformFunctionInvocationFilter[]; + /** Checks for any expressions in this list. */ + or?: PlatformFunctionInvocationFilter[]; + /** Negates the expression. */ + not?: PlatformFunctionInvocationFilter; +} +export interface FunctionInvocationFilter { + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `taskIdentifier` field. */ + taskIdentifier?: StringFilter; + /** Filter by the object’s `payload` field. */ + payload?: JSONFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `result` field. */ + result?: JSONFilter; + /** Filter by the object’s `error` field. */ + error?: StringFilter; + /** Filter by the object’s `durationMs` field. */ + durationMs?: IntFilter; + /** Filter by the object’s `jobId` field. */ + jobId?: BigIntFilter; + /** Filter by the object’s `startedAt` field. */ + startedAt?: DatetimeFilter; + /** Filter by the object’s `completedAt` field. */ + completedAt?: DatetimeFilter; + /** Filter by the object’s `parentInvocationId` field. */ + parentInvocationId?: UUIDFilter; + /** Filter by the object’s `graphExecutionId` field. */ + graphExecutionId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: FunctionInvocationFilter[]; + /** Checks for any expressions in this list. */ + or?: FunctionInvocationFilter[]; + /** Negates the expression. */ + not?: FunctionInvocationFilter; +} +export interface PlatformNamespaceEventFilter { + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; + /** Filter by the object’s `eventType` field. */ + eventType?: StringFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Filter by the object’s `message` field. */ + message?: StringFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Filter by the object’s `cpuMillicores` field. */ + cpuMillicores?: IntFilter; + /** Filter by the object’s `memoryBytes` field. */ + memoryBytes?: BigIntFilter; + /** Filter by the object’s `storageBytes` field. */ + storageBytes?: BigIntFilter; + /** Filter by the object’s `networkIngressBytes` field. */ + networkIngressBytes?: BigIntFilter; + /** Filter by the object’s `networkEgressBytes` field. */ + networkEgressBytes?: BigIntFilter; + /** Filter by the object’s `podCount` field. */ + podCount?: IntFilter; + /** Filter by the object’s `metrics` field. */ + metrics?: JSONFilter; + /** Checks for all expressions in this list. */ + and?: PlatformNamespaceEventFilter[]; + /** Checks for any expressions in this list. */ + or?: PlatformNamespaceEventFilter[]; + /** Negates the expression. */ + not?: PlatformNamespaceEventFilter; +} +export interface IntegrationProviderFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `slug` field. */ + slug?: StringFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `category` field. */ + category?: StringFilter; + /** Filter by the object’s `icon` field. */ + icon?: StringFilter; + /** Filter by the object’s `logo` field. */ + logo?: ConstructiveInternalTypeImageFilter; + /** Filter by the object’s `brand` field. */ + brand?: JSONFilter; + /** Checks for all expressions in this list. */ + and?: IntegrationProviderFilter[]; + /** Checks for any expressions in this list. */ + or?: IntegrationProviderFilter[]; + /** Negates the expression. */ + not?: IntegrationProviderFilter; +} +export interface NamespaceEventFilter { + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; + /** Filter by the object’s `eventType` field. */ + eventType?: StringFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Filter by the object’s `message` field. */ + message?: StringFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Filter by the object’s `cpuMillicores` field. */ + cpuMillicores?: IntFilter; + /** Filter by the object’s `memoryBytes` field. */ + memoryBytes?: BigIntFilter; + /** Filter by the object’s `storageBytes` field. */ + storageBytes?: BigIntFilter; + /** Filter by the object’s `networkIngressBytes` field. */ + networkIngressBytes?: BigIntFilter; + /** Filter by the object’s `networkEgressBytes` field. */ + networkEgressBytes?: BigIntFilter; + /** Filter by the object’s `podCount` field. */ + podCount?: IntFilter; + /** Filter by the object’s `metrics` field. */ + metrics?: JSONFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: NamespaceEventFilter[]; + /** Checks for any expressions in this list. */ + or?: NamespaceEventFilter[]; + /** Negates the expression. */ + not?: NamespaceEventFilter; +} +export interface FunctionGraphExecutionFilter { + /** Filter by the object’s `startedAt` field. */ + startedAt?: DatetimeFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `graphId` field. */ + graphId?: UUIDFilter; + /** Filter by the object’s `invocationId` field. */ + invocationId?: UUIDFilter; + /** Filter by the object’s `scopeId` field. */ + scopeId?: UUIDFilter; + /** Filter by the object’s `outputNode` field. */ + outputNode?: StringFilter; + /** Filter by the object’s `outputPort` field. */ + outputPort?: StringFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `inputPayload` field. */ + inputPayload?: JSONFilter; + /** Filter by the object’s `outputPayload` field. */ + outputPayload?: JSONFilter; + /** Filter by the object’s `nodeOutputs` field. */ + nodeOutputs?: JSONFilter; + /** Filter by the object’s `executionPlan` field. */ + executionPlan?: JSONFilter; + /** Filter by the object’s `currentWave` field. */ + currentWave?: IntFilter; + /** Filter by the object’s `parentExecutionId` field. */ + parentExecutionId?: UUIDFilter; + /** Filter by the object’s `parentNodeName` field. */ + parentNodeName?: StringFilter; + /** Filter by the object’s `definitionsCommitId` field. */ + definitionsCommitId?: UUIDFilter; + /** Filter by the object’s `tickCount` field. */ + tickCount?: IntFilter; + /** Filter by the object’s `completedAt` field. */ + completedAt?: DatetimeFilter; + /** Filter by the object’s `maxTicks` field. */ + maxTicks?: IntFilter; + /** Filter by the object’s `maxPendingJobs` field. */ + maxPendingJobs?: IntFilter; + /** Filter by the object’s `timeoutAt` field. */ + timeoutAt?: DatetimeFilter; + /** Filter by the object’s `lastProgressAt` field. */ + lastProgressAt?: DatetimeFilter; + /** Filter by the object’s `errorCode` field. */ + errorCode?: StringFilter; + /** Filter by the object’s `errorMessage` field. */ + errorMessage?: StringFilter; + /** Checks for all expressions in this list. */ + and?: FunctionGraphExecutionFilter[]; + /** Checks for any expressions in this list. */ + or?: FunctionGraphExecutionFilter[]; + /** Negates the expression. */ + not?: FunctionGraphExecutionFilter; + /** Filter by the object’s `graph` relation. */ + graph?: FunctionGraphFilter; +} +export interface PlatformFunctionDefinitionFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `taskIdentifier` field. */ + taskIdentifier?: StringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `isPublished` field. */ + isPublished?: BooleanFilter; + /** Filter by the object’s `accessChannels` field. */ + accessChannels?: StringListFilter; + /** Filter by the object’s `publishedAt` field. */ + publishedAt?: DatetimeFilter; + /** Filter by the object’s `maxAttempts` field. */ + maxAttempts?: IntFilter; + /** Filter by the object’s `priority` field. */ priority?: IntFilter; /** Filter by the object’s `queueName` field. */ queueName?: StringFilter; /** Filter by the object’s `runtime` field. */ runtime?: StringFilter; + /** Filter by the object’s `targetSchema` field. */ + targetSchema?: StringFilter; + /** Filter by the object’s `targetFunction` field. */ + targetFunction?: StringFilter; + /** Filter by the object’s `moduleTable` field. */ + moduleTable?: StringFilter; + /** Filter by the object’s `functionColumns` field. */ + functionColumns?: JSONFilter; + /** Filter by the object’s `payloadArgs` field. */ + payloadArgs?: JSONFilter; /** Filter by the object’s `image` field. */ image?: StringFilter; /** Filter by the object’s `concurrency` field. */ @@ -1857,6 +3464,8 @@ export interface FunctionDefinitionFilter { resources?: JSONFilter; /** Filter by the object’s `isBuiltIn` field. */ isBuiltIn?: BooleanFilter; + /** Filter by the object’s `integrations` field. */ + integrations?: StringListFilter; /** Filter by the object’s `requiredBuckets` field. */ requiredBuckets?: StringListFilter; /** Filter by the object’s `requiredModels` field. */ @@ -1874,21 +3483,109 @@ export interface FunctionDefinitionFilter { /** Filter by the object’s `category` field. */ category?: StringFilter; /** Checks for all expressions in this list. */ - and?: FunctionDefinitionFilter[]; + and?: PlatformFunctionDefinitionFilter[]; /** Checks for any expressions in this list. */ - or?: FunctionDefinitionFilter[]; + or?: PlatformFunctionDefinitionFilter[]; /** Negates the expression. */ - not?: FunctionDefinitionFilter; - /** Filter by the object’s `functionApiBindings` relation. */ - functionApiBindings?: FunctionDefinitionToManyFunctionApiBindingFilter; + not?: PlatformFunctionDefinitionFilter; + /** Filter by the object’s `platformFunctionApiBindingsByFunctionDefinitionId` relation. */ + platformFunctionApiBindingsByFunctionDefinitionId?: PlatformFunctionDefinitionToManyPlatformFunctionApiBindingFilter; + /** `platformFunctionApiBindingsByFunctionDefinitionId` exist. */ + platformFunctionApiBindingsByFunctionDefinitionIdExist?: boolean; +} +export interface FunctionDefinitionFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `taskIdentifier` field. */ + taskIdentifier?: StringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `isPublished` field. */ + isPublished?: BooleanFilter; + /** Filter by the object’s `accessChannels` field. */ + accessChannels?: StringListFilter; + /** Filter by the object’s `publishedAt` field. */ + publishedAt?: DatetimeFilter; + /** Filter by the object’s `maxAttempts` field. */ + maxAttempts?: IntFilter; + /** Filter by the object’s `priority` field. */ + priority?: IntFilter; + /** Filter by the object’s `queueName` field. */ + queueName?: StringFilter; + /** Filter by the object’s `runtime` field. */ + runtime?: StringFilter; + /** Filter by the object’s `targetSchema` field. */ + targetSchema?: StringFilter; + /** Filter by the object’s `targetFunction` field. */ + targetFunction?: StringFilter; + /** Filter by the object’s `moduleTable` field. */ + moduleTable?: StringFilter; + /** Filter by the object’s `functionColumns` field. */ + functionColumns?: JSONFilter; + /** Filter by the object’s `payloadArgs` field. */ + payloadArgs?: JSONFilter; + /** Filter by the object’s `image` field. */ + image?: StringFilter; + /** Filter by the object’s `concurrency` field. */ + concurrency?: IntFilter; + /** Filter by the object’s `scaleMin` field. */ + scaleMin?: IntFilter; + /** Filter by the object’s `scaleMax` field. */ + scaleMax?: IntFilter; + /** Filter by the object’s `timeoutSeconds` field. */ + timeoutSeconds?: IntFilter; + /** Filter by the object’s `resources` field. */ + resources?: JSONFilter; + /** Filter by the object’s `isBuiltIn` field. */ + isBuiltIn?: BooleanFilter; + /** Filter by the object’s `integrations` field. */ + integrations?: StringListFilter; + /** Filter by the object’s `requiredBuckets` field. */ + requiredBuckets?: StringListFilter; + /** Filter by the object’s `requiredModels` field. */ + requiredModels?: StringListFilter; + /** Filter by the object’s `inputs` field. */ + inputs?: JSONFilter; + /** Filter by the object’s `outputs` field. */ + outputs?: JSONFilter; + /** Filter by the object’s `props` field. */ + props?: JSONFilter; + /** Filter by the object’s `volatile` field. */ + volatile?: BooleanFilter; + /** Filter by the object’s `icon` field. */ + icon?: StringFilter; + /** Filter by the object’s `category` field. */ + category?: StringFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: FunctionDefinitionFilter[]; + /** Checks for any expressions in this list. */ + or?: FunctionDefinitionFilter[]; + /** Negates the expression. */ + not?: FunctionDefinitionFilter; + /** Filter by the object’s `functionApiBindings` relation. */ + functionApiBindings?: FunctionDefinitionToManyFunctionApiBindingFilter; /** `functionApiBindings` exist. */ functionApiBindingsExist?: boolean; - /** Filter by the object’s `functionDeployments` relation. */ - functionDeployments?: FunctionDefinitionToManyFunctionDeploymentFilter; - /** `functionDeployments` exist. */ - functionDeploymentsExist?: boolean; } // ============ OrderBy Types ============ +export type InfraGetAllRecordsOrderBy = + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NATURAL' + | 'PATH_ASC' + | 'PATH_DESC' + | 'DATA_ASC' + | 'DATA_DESC'; export type GetAllRecordsOrderBy = | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -1897,6 +3594,34 @@ export type GetAllRecordsOrderBy = | 'PATH_DESC' | 'DATA_ASC' | 'DATA_DESC'; +export type InfraRefOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'SCOPE_ID_ASC' + | 'SCOPE_ID_DESC' + | 'STORE_ID_ASC' + | 'STORE_ID_DESC' + | 'COMMIT_ID_ASC' + | 'COMMIT_ID_DESC'; +export type InfraStoreOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'SCOPE_ID_ASC' + | 'SCOPE_ID_DESC' + | 'HASH_ASC' + | 'HASH_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC'; export type FunctionApiBindingOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -1911,7 +3636,99 @@ export type FunctionApiBindingOrderBy = | 'ALIAS_DESC' | 'CONFIG_ASC' | 'CONFIG_DESC'; -export type FunctionDeploymentOrderBy = +export type FunctionGraphRefOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'SCOPE_ID_ASC' + | 'SCOPE_ID_DESC' + | 'STORE_ID_ASC' + | 'STORE_ID_DESC' + | 'COMMIT_ID_ASC' + | 'COMMIT_ID_DESC'; +export type FunctionGraphStoreOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'SCOPE_ID_ASC' + | 'SCOPE_ID_DESC' + | 'HASH_ASC' + | 'HASH_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC'; +export type PlatformFunctionApiBindingOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'FUNCTION_DEFINITION_ID_ASC' + | 'FUNCTION_DEFINITION_ID_DESC' + | 'API_ID_ASC' + | 'API_ID_DESC' + | 'ALIAS_ASC' + | 'ALIAS_DESC' + | 'CONFIG_ASC' + | 'CONFIG_DESC'; +export type PlatformResourcesRequirementsStateOrderBy = + | 'NATURAL' + | 'RESOURCE_ID_ASC' + | 'RESOURCE_ID_DESC' + | 'SLUG_ASC' + | 'SLUG_DESC' + | 'SECRETS_HASH_ASC' + | 'SECRETS_HASH_DESC' + | 'CONFIG_HASH_ASC' + | 'CONFIG_HASH_DESC' + | 'REQUIREMENTS_HASH_ASC' + | 'REQUIREMENTS_HASH_DESC' + | 'SECRETS_OBJECT_NAME_ASC' + | 'SECRETS_OBJECT_NAME_DESC' + | 'CONFIG_OBJECT_NAME_ASC' + | 'CONFIG_OBJECT_NAME_DESC'; +export type ResourcesRequirementsStateOrderBy = + | 'NATURAL' + | 'RESOURCE_ID_ASC' + | 'RESOURCE_ID_DESC' + | 'SLUG_ASC' + | 'SLUG_DESC' + | 'SECRETS_HASH_ASC' + | 'SECRETS_HASH_DESC' + | 'CONFIG_HASH_ASC' + | 'CONFIG_HASH_DESC' + | 'REQUIREMENTS_HASH_ASC' + | 'REQUIREMENTS_HASH_DESC' + | 'SECRETS_OBJECT_NAME_ASC' + | 'SECRETS_OBJECT_NAME_DESC' + | 'CONFIG_OBJECT_NAME_ASC' + | 'CONFIG_OBJECT_NAME_DESC'; +export type PlatformResourceStatusCheckOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'RESOURCE_ID_ASC' + | 'RESOURCE_ID_DESC' + | 'REQUESTED_BY_ASC' + | 'REQUESTED_BY_DESC' + | 'REQUESTED_AT_ASC' + | 'REQUESTED_AT_DESC' + | 'COMPLETED_AT_ASC' + | 'COMPLETED_AT_DESC' + | 'STATUS_ASC' + | 'STATUS_DESC' + | 'RESULT_ASC' + | 'RESULT_DESC'; +export type PlatformFunctionDeploymentOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -1921,8 +3738,6 @@ export type FunctionDeploymentOrderBy = | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' - | 'FUNCTION_DEFINITION_ID_ASC' - | 'FUNCTION_DEFINITION_ID_DESC' | 'NAMESPACE_ID_ASC' | 'NAMESPACE_ID_DESC' | 'STATUS_ASC' @@ -1935,6 +3750,10 @@ export type FunctionDeploymentOrderBy = | 'REVISION_DESC' | 'IMAGE_ASC' | 'IMAGE_DESC' + | 'IMAGE_VERSION_ASC' + | 'IMAGE_VERSION_DESC' + | 'HANDLER_NAME_ASC' + | 'HANDLER_NAME_DESC' | 'CONCURRENCY_ASC' | 'CONCURRENCY_DESC' | 'SCALE_MIN_ASC' @@ -1954,10 +3773,8 @@ export type FunctionDeploymentOrderBy = | 'LABELS_ASC' | 'LABELS_DESC' | 'ANNOTATIONS_ASC' - | 'ANNOTATIONS_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC'; -export type ResourceOrderBy = + | 'ANNOTATIONS_DESC'; +export type PlatformResourceOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -1993,34 +3810,66 @@ export type ResourceOrderBy = | 'LABELS_DESC' | 'ANNOTATIONS_ASC' | 'ANNOTATIONS_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC'; -export type FunctionGraphRefOrderBy = + | 'REQUIRED_SECRETS_ASC' + | 'REQUIRED_SECRETS_DESC' + | 'REQUIRED_CONFIGS_ASC' + | 'REQUIRED_CONFIGS_DESC' + | 'INTEGRATIONS_ASC' + | 'INTEGRATIONS_DESC' + | 'RESOURCE_DEFINITION_ID_ASC' + | 'RESOURCE_DEFINITION_ID_DESC'; +export type PlatformResourceDefinitionOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'CREATED_BY_ASC' + | 'CREATED_BY_DESC' + | 'UPDATED_BY_ASC' + | 'UPDATED_BY_DESC' + | 'NAMESPACE_ID_ASC' + | 'NAMESPACE_ID_DESC' + | 'KIND_ASC' + | 'KIND_DESC' | 'NAME_ASC' | 'NAME_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'STORE_ID_ASC' - | 'STORE_ID_DESC' - | 'COMMIT_ID_ASC' - | 'COMMIT_ID_DESC'; -export type FunctionGraphStoreOrderBy = + | 'SLUG_ASC' + | 'SLUG_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'DEFAULT_SPEC_ASC' + | 'DEFAULT_SPEC_DESC' + | 'REQUIRED_SECRETS_ASC' + | 'REQUIRED_SECRETS_DESC' + | 'REQUIRED_CONFIGS_ASC' + | 'REQUIRED_CONFIGS_DESC' + | 'INTEGRATIONS_ASC' + | 'INTEGRATIONS_DESC' + | 'LABELS_ASC' + | 'LABELS_DESC' + | 'ANNOTATIONS_ASC' + | 'ANNOTATIONS_DESC' + | 'STEP_UP_MIN_AGE_ASC' + | 'STEP_UP_MIN_AGE_DESC'; +export type InfraObjectOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'HASH_ASC' - | 'HASH_DESC' + | 'SCOPE_ID_ASC' + | 'SCOPE_ID_DESC' + | 'KIDS_ASC' + | 'KIDS_DESC' + | 'KTREE_ASC' + | 'KTREE_DESC' + | 'DATA_ASC' + | 'DATA_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC'; export type FunctionGraphObjectOrderBy = @@ -2029,8 +3878,8 @@ export type FunctionGraphObjectOrderBy = | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' + | 'SCOPE_ID_ASC' + | 'SCOPE_ID_DESC' | 'KIDS_ASC' | 'KIDS_DESC' | 'KTREE_ASC' @@ -2039,7 +3888,7 @@ export type FunctionGraphObjectOrderBy = | 'DATA_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC'; -export type FunctionDeploymentEventOrderBy = +export type PlatformFunctionDeploymentEventOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -2056,30 +3905,8 @@ export type FunctionDeploymentEventOrderBy = | 'MESSAGE_ASC' | 'MESSAGE_DESC' | 'METADATA_ASC' - | 'METADATA_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC'; -export type OrgFunctionExecutionLogOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'INVOCATION_ID_ASC' - | 'INVOCATION_ID_DESC' - | 'TASK_IDENTIFIER_ASC' - | 'TASK_IDENTIFIER_DESC' - | 'LOG_LEVEL_ASC' - | 'LOG_LEVEL_DESC' - | 'MESSAGE_ASC' - | 'MESSAGE_DESC' - | 'METADATA_ASC' - | 'METADATA_DESC' - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC'; -export type ResourceEventOrderBy = + | 'METADATA_DESC'; +export type PlatformResourceEventOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -2096,46 +3923,28 @@ export type ResourceEventOrderBy = | 'MESSAGE_ASC' | 'MESSAGE_DESC' | 'METADATA_ASC' - | 'METADATA_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC'; -export type FunctionGraphExecutionOutputOrderBy = + | 'METADATA_DESC'; +export type ResourceStatusCheckOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' | 'ID_ASC' | 'ID_DESC' + | 'RESOURCE_ID_ASC' + | 'RESOURCE_ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' - | 'HASH_ASC' - | 'HASH_DESC' - | 'DATA_ASC' - | 'DATA_DESC'; -export type FunctionGraphCommitOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'MESSAGE_ASC' - | 'MESSAGE_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'STORE_ID_ASC' - | 'STORE_ID_DESC' - | 'PARENT_IDS_ASC' - | 'PARENT_IDS_DESC' - | 'AUTHOR_ID_ASC' - | 'AUTHOR_ID_DESC' - | 'COMMITTER_ID_ASC' - | 'COMMITTER_ID_DESC' - | 'TREE_ID_ASC' - | 'TREE_ID_DESC' - | 'DATE_ASC' - | 'DATE_DESC'; -export type SecretDefinitionOrderBy = + | 'REQUESTED_BY_ASC' + | 'REQUESTED_BY_DESC' + | 'REQUESTED_AT_ASC' + | 'REQUESTED_AT_DESC' + | 'COMPLETED_AT_ASC' + | 'COMPLETED_AT_DESC' + | 'STATUS_ASC' + | 'STATUS_DESC' + | 'RESULT_ASC' + | 'RESULT_DESC'; +export type FunctionDeploymentOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -2145,97 +3954,91 @@ export type SecretDefinitionOrderBy = | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC' - | 'IS_BUILT_IN_ASC' - | 'IS_BUILT_IN_DESC' + | 'NAMESPACE_ID_ASC' + | 'NAMESPACE_ID_DESC' + | 'STATUS_ASC' + | 'STATUS_DESC' + | 'SERVICE_URL_ASC' + | 'SERVICE_URL_DESC' + | 'SERVICE_NAME_ASC' + | 'SERVICE_NAME_DESC' + | 'REVISION_ASC' + | 'REVISION_DESC' + | 'IMAGE_ASC' + | 'IMAGE_DESC' + | 'IMAGE_VERSION_ASC' + | 'IMAGE_VERSION_DESC' + | 'HANDLER_NAME_ASC' + | 'HANDLER_NAME_DESC' + | 'CONCURRENCY_ASC' + | 'CONCURRENCY_DESC' + | 'SCALE_MIN_ASC' + | 'SCALE_MIN_DESC' + | 'SCALE_MAX_ASC' + | 'SCALE_MAX_DESC' + | 'TIMEOUT_SECONDS_ASC' + | 'TIMEOUT_SECONDS_DESC' + | 'RESOURCES_ASC' + | 'RESOURCES_DESC' + | 'LAST_ERROR_ASC' + | 'LAST_ERROR_DESC' + | 'LAST_ERROR_AT_ASC' + | 'LAST_ERROR_AT_DESC' + | 'ERROR_COUNT_ASC' + | 'ERROR_COUNT_DESC' | 'LABELS_ASC' | 'LABELS_DESC' | 'ANNOTATIONS_ASC' | 'ANNOTATIONS_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC'; -export type FunctionExecutionLogOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'INVOCATION_ID_ASC' - | 'INVOCATION_ID_DESC' - | 'TASK_IDENTIFIER_ASC' - | 'TASK_IDENTIFIER_DESC' - | 'LOG_LEVEL_ASC' - | 'LOG_LEVEL_DESC' - | 'MESSAGE_ASC' - | 'MESSAGE_DESC' - | 'METADATA_ASC' - | 'METADATA_DESC' - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC'; -export type FunctionGraphOrderBy = +export type ResourceOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'STORE_ID_ASC' - | 'STORE_ID_DESC' - | 'CONTEXT_ASC' - | 'CONTEXT_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC' - | 'DEFINITIONS_COMMIT_ID_ASC' - | 'DEFINITIONS_COMMIT_ID_DESC' - | 'IS_VALID_ASC' - | 'IS_VALID_DESC' - | 'VALIDATION_ERRORS_ASC' - | 'VALIDATION_ERRORS_DESC' - | 'CREATED_BY_ASC' - | 'CREATED_BY_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -export type FunctionGraphExecutionNodeStateOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'EXECUTION_ID_ASC' - | 'EXECUTION_ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'NODE_NAME_ASC' - | 'NODE_NAME_DESC' - | 'NODE_PATH_ASC' - | 'NODE_PATH_DESC' + | 'UPDATED_AT_DESC' + | 'CREATED_BY_ASC' + | 'CREATED_BY_DESC' + | 'UPDATED_BY_ASC' + | 'UPDATED_BY_DESC' + | 'NAMESPACE_ID_ASC' + | 'NAMESPACE_ID_DESC' + | 'KIND_ASC' + | 'KIND_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'SLUG_ASC' + | 'SLUG_DESC' + | 'SPEC_ASC' + | 'SPEC_DESC' | 'STATUS_ASC' | 'STATUS_DESC' - | 'STARTED_AT_ASC' - | 'STARTED_AT_DESC' - | 'COMPLETED_AT_ASC' - | 'COMPLETED_AT_DESC' - | 'ERROR_CODE_ASC' - | 'ERROR_CODE_DESC' - | 'ERROR_MESSAGE_ASC' - | 'ERROR_MESSAGE_DESC' - | 'OUTPUT_ID_ASC' - | 'OUTPUT_ID_DESC'; -export type PlatformNamespaceOrderBy = + | 'STATUS_OBSERVED_ASC' + | 'STATUS_OBSERVED_DESC' + | 'LAST_ERROR_ASC' + | 'LAST_ERROR_DESC' + | 'ERROR_COUNT_ASC' + | 'ERROR_COUNT_DESC' + | 'LABELS_ASC' + | 'LABELS_DESC' + | 'ANNOTATIONS_ASC' + | 'ANNOTATIONS_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'REQUIRED_SECRETS_ASC' + | 'REQUIRED_SECRETS_DESC' + | 'REQUIRED_CONFIGS_ASC' + | 'REQUIRED_CONFIGS_DESC' + | 'INTEGRATIONS_ASC' + | 'INTEGRATIONS_DESC' + | 'RESOURCE_DEFINITION_ID_ASC' + | 'RESOURCE_DEFINITION_ID_DESC'; +export type ResourceDefinitionOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -2245,27 +4048,37 @@ export type PlatformNamespaceOrderBy = | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' + | 'CREATED_BY_ASC' + | 'CREATED_BY_DESC' + | 'UPDATED_BY_ASC' + | 'UPDATED_BY_DESC' + | 'NAMESPACE_ID_ASC' + | 'NAMESPACE_ID_DESC' + | 'KIND_ASC' + | 'KIND_DESC' | 'NAME_ASC' | 'NAME_DESC' - | 'NAMESPACE_NAME_ASC' - | 'NAMESPACE_NAME_DESC' + | 'SLUG_ASC' + | 'SLUG_DESC' | 'DESCRIPTION_ASC' | 'DESCRIPTION_DESC' - | 'IS_ACTIVE_ASC' - | 'IS_ACTIVE_DESC' + | 'DEFAULT_SPEC_ASC' + | 'DEFAULT_SPEC_DESC' + | 'REQUIRED_SECRETS_ASC' + | 'REQUIRED_SECRETS_DESC' + | 'REQUIRED_CONFIGS_ASC' + | 'REQUIRED_CONFIGS_DESC' + | 'INTEGRATIONS_ASC' + | 'INTEGRATIONS_DESC' | 'LABELS_ASC' | 'LABELS_DESC' | 'ANNOTATIONS_ASC' | 'ANNOTATIONS_DESC' + | 'STEP_UP_MIN_AGE_ASC' + | 'STEP_UP_MIN_AGE_DESC' | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'SOURCE_DATABASE_ID_ASC' - | 'SOURCE_DATABASE_ID_DESC' - | 'SOURCE_SCOPE_ASC' - | 'SOURCE_SCOPE_DESC' - | 'IS_MANAGED_ASC' - | 'IS_MANAGED_DESC'; -export type OrgFunctionInvocationOrderBy = + | 'DATABASE_ID_DESC'; +export type FunctionDeploymentEventOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -2273,31 +4086,19 @@ export type OrgFunctionInvocationOrderBy = | 'CREATED_AT_DESC' | 'ID_ASC' | 'ID_DESC' + | 'DEPLOYMENT_ID_ASC' + | 'DEPLOYMENT_ID_DESC' + | 'EVENT_TYPE_ASC' + | 'EVENT_TYPE_DESC' | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' - | 'TASK_IDENTIFIER_ASC' - | 'TASK_IDENTIFIER_DESC' - | 'PAYLOAD_ASC' - | 'PAYLOAD_DESC' - | 'STATUS_ASC' - | 'STATUS_DESC' - | 'RESULT_ASC' - | 'RESULT_DESC' - | 'ERROR_ASC' - | 'ERROR_DESC' - | 'DURATION_MS_ASC' - | 'DURATION_MS_DESC' - | 'JOB_ID_ASC' - | 'JOB_ID_DESC' - | 'STARTED_AT_ASC' - | 'STARTED_AT_DESC' - | 'COMPLETED_AT_ASC' - | 'COMPLETED_AT_DESC' - | 'PARENT_INVOCATION_ID_ASC' - | 'PARENT_INVOCATION_ID_DESC' - | 'GRAPH_EXECUTION_ID_ASC' - | 'GRAPH_EXECUTION_ID_DESC'; -export type FunctionInvocationOrderBy = + | 'MESSAGE_ASC' + | 'MESSAGE_DESC' + | 'METADATA_ASC' + | 'METADATA_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC'; +export type PlatformFunctionExecutionLogOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -2305,33 +4106,19 @@ export type FunctionInvocationOrderBy = | 'CREATED_AT_DESC' | 'ID_ASC' | 'ID_DESC' - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' + | 'INVOCATION_ID_ASC' + | 'INVOCATION_ID_DESC' | 'TASK_IDENTIFIER_ASC' | 'TASK_IDENTIFIER_DESC' - | 'PAYLOAD_ASC' - | 'PAYLOAD_DESC' - | 'STATUS_ASC' - | 'STATUS_DESC' - | 'RESULT_ASC' - | 'RESULT_DESC' - | 'ERROR_ASC' - | 'ERROR_DESC' - | 'DURATION_MS_ASC' - | 'DURATION_MS_DESC' - | 'JOB_ID_ASC' - | 'JOB_ID_DESC' - | 'STARTED_AT_ASC' - | 'STARTED_AT_DESC' - | 'COMPLETED_AT_ASC' - | 'COMPLETED_AT_DESC' - | 'PARENT_INVOCATION_ID_ASC' - | 'PARENT_INVOCATION_ID_DESC' - | 'GRAPH_EXECUTION_ID_ASC' - | 'GRAPH_EXECUTION_ID_DESC'; -export type PlatformNamespaceEventOrderBy = + | 'LOG_LEVEL_ASC' + | 'LOG_LEVEL_DESC' + | 'MESSAGE_ASC' + | 'MESSAGE_DESC' + | 'METADATA_ASC' + | 'METADATA_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC'; +export type ResourceEventOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -2339,8 +4126,8 @@ export type PlatformNamespaceEventOrderBy = | 'CREATED_AT_DESC' | 'ID_ASC' | 'ID_DESC' - | 'NAMESPACE_ID_ASC' - | 'NAMESPACE_ID_DESC' + | 'RESOURCE_ID_ASC' + | 'RESOURCE_ID_DESC' | 'EVENT_TYPE_ASC' | 'EVENT_TYPE_DESC' | 'ACTOR_ID_ASC' @@ -2349,73 +4136,243 @@ export type PlatformNamespaceEventOrderBy = | 'MESSAGE_DESC' | 'METADATA_ASC' | 'METADATA_DESC' - | 'CPU_MILLICORES_ASC' - | 'CPU_MILLICORES_DESC' - | 'MEMORY_BYTES_ASC' - | 'MEMORY_BYTES_DESC' - | 'STORAGE_BYTES_ASC' - | 'STORAGE_BYTES_DESC' - | 'NETWORK_INGRESS_BYTES_ASC' - | 'NETWORK_INGRESS_BYTES_DESC' - | 'NETWORK_EGRESS_BYTES_ASC' - | 'NETWORK_EGRESS_BYTES_DESC' - | 'POD_COUNT_ASC' - | 'POD_COUNT_DESC' - | 'METRICS_ASC' - | 'METRICS_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC'; -export type FunctionGraphExecutionOrderBy = +export type FunctionGraphExecutionOutputOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'STARTED_AT_ASC' - | 'STARTED_AT_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'SCOPE_ID_ASC' + | 'SCOPE_ID_DESC' + | 'HASH_ASC' + | 'HASH_DESC' + | 'DATA_ASC' + | 'DATA_DESC'; +export type InfraCommitOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'MESSAGE_ASC' + | 'MESSAGE_DESC' + | 'SCOPE_ID_ASC' + | 'SCOPE_ID_DESC' + | 'STORE_ID_ASC' + | 'STORE_ID_DESC' + | 'PARENT_IDS_ASC' + | 'PARENT_IDS_DESC' + | 'AUTHOR_ID_ASC' + | 'AUTHOR_ID_DESC' + | 'COMMITTER_ID_ASC' + | 'COMMITTER_ID_DESC' + | 'TREE_ID_ASC' + | 'TREE_ID_DESC' + | 'DATE_ASC' + | 'DATE_DESC'; +export type FunctionGraphCommitOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'MESSAGE_ASC' + | 'MESSAGE_DESC' + | 'SCOPE_ID_ASC' + | 'SCOPE_ID_DESC' + | 'STORE_ID_ASC' + | 'STORE_ID_DESC' + | 'PARENT_IDS_ASC' + | 'PARENT_IDS_DESC' + | 'AUTHOR_ID_ASC' + | 'AUTHOR_ID_DESC' + | 'COMMITTER_ID_ASC' + | 'COMMITTER_ID_DESC' + | 'TREE_ID_ASC' + | 'TREE_ID_DESC' + | 'DATE_ASC' + | 'DATE_DESC'; +export type FunctionExecutionLogOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' | 'ID_ASC' | 'ID_DESC' - | 'GRAPH_ID_ASC' - | 'GRAPH_ID_DESC' | 'INVOCATION_ID_ASC' | 'INVOCATION_ID_DESC' + | 'TASK_IDENTIFIER_ASC' + | 'TASK_IDENTIFIER_DESC' + | 'LOG_LEVEL_ASC' + | 'LOG_LEVEL_DESC' + | 'MESSAGE_ASC' + | 'MESSAGE_DESC' + | 'METADATA_ASC' + | 'METADATA_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'OUTPUT_NODE_ASC' - | 'OUTPUT_NODE_DESC' - | 'OUTPUT_PORT_ASC' - | 'OUTPUT_PORT_DESC' + | 'DATABASE_ID_DESC'; +export type PlatformResourcesResolvedRequirementOrderBy = + | 'NATURAL' + | 'RESOURCE_ID_ASC' + | 'RESOURCE_ID_DESC' + | 'SLUG_ASC' + | 'SLUG_DESC' + | 'NAMESPACE_ID_ASC' + | 'NAMESPACE_ID_DESC' + | 'REQUIREMENT_KIND_ASC' + | 'REQUIREMENT_KIND_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'REQUIRED_ASC' + | 'REQUIRED_DESC' + | 'ATOM_ID_ASC' + | 'ATOM_ID_DESC' + | 'PRESENT_ASC' + | 'PRESENT_DESC' + | 'SECRETS_OBJECT_NAME_ASC' + | 'SECRETS_OBJECT_NAME_DESC' + | 'CONFIG_OBJECT_NAME_ASC' + | 'CONFIG_OBJECT_NAME_DESC'; +export type ResourcesResolvedRequirementOrderBy = + | 'NATURAL' + | 'RESOURCE_ID_ASC' + | 'RESOURCE_ID_DESC' + | 'SLUG_ASC' + | 'SLUG_DESC' + | 'NAMESPACE_ID_ASC' + | 'NAMESPACE_ID_DESC' + | 'REQUIREMENT_KIND_ASC' + | 'REQUIREMENT_KIND_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'REQUIRED_ASC' + | 'REQUIRED_DESC' + | 'ATOM_ID_ASC' + | 'ATOM_ID_DESC' + | 'PRESENT_ASC' + | 'PRESENT_DESC' + | 'SECRETS_OBJECT_NAME_ASC' + | 'SECRETS_OBJECT_NAME_DESC' + | 'CONFIG_OBJECT_NAME_ASC' + | 'CONFIG_OBJECT_NAME_DESC'; +export type DbPresetOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'STORE_ID_ASC' + | 'STORE_ID_DESC' + | 'SLUG_ASC' + | 'SLUG_DESC' + | 'DEFINITION_ASC' + | 'DEFINITION_DESC' + | 'COMMIT_ID_ASC' + | 'COMMIT_ID_DESC' + | 'MODULES_HASH_ASC' + | 'MODULES_HASH_DESC' + | 'LABEL_ASC' + | 'LABEL_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'ACTIVE_ASC' + | 'ACTIVE_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +export type PlatformNamespaceOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'NAMESPACE_NAME_ASC' + | 'NAMESPACE_NAME_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'IS_ACTIVE_ASC' + | 'IS_ACTIVE_DESC' | 'STATUS_ASC' | 'STATUS_DESC' - | 'INPUT_PAYLOAD_ASC' - | 'INPUT_PAYLOAD_DESC' - | 'OUTPUT_PAYLOAD_ASC' - | 'OUTPUT_PAYLOAD_DESC' - | 'NODE_OUTPUTS_ASC' - | 'NODE_OUTPUTS_DESC' - | 'EXECUTION_PLAN_ASC' - | 'EXECUTION_PLAN_DESC' - | 'CURRENT_WAVE_ASC' - | 'CURRENT_WAVE_DESC' - | 'PARENT_EXECUTION_ID_ASC' - | 'PARENT_EXECUTION_ID_DESC' - | 'PARENT_NODE_NAME_ASC' - | 'PARENT_NODE_NAME_DESC' + | 'LAST_ERROR_ASC' + | 'LAST_ERROR_DESC' + | 'LABELS_ASC' + | 'LABELS_DESC' + | 'ANNOTATIONS_ASC' + | 'ANNOTATIONS_DESC' + | 'IS_MANAGED_ASC' + | 'IS_MANAGED_DESC'; +export type FunctionGraphOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'SCOPE_ID_ASC' + | 'SCOPE_ID_DESC' + | 'STORE_ID_ASC' + | 'STORE_ID_DESC' + | 'CONTEXT_ASC' + | 'CONTEXT_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' | 'DEFINITIONS_COMMIT_ID_ASC' | 'DEFINITIONS_COMMIT_ID_DESC' - | 'TICK_COUNT_ASC' - | 'TICK_COUNT_DESC' + | 'IS_VALID_ASC' + | 'IS_VALID_DESC' + | 'VALIDATION_ERRORS_ASC' + | 'VALIDATION_ERRORS_DESC' + | 'CREATED_BY_ASC' + | 'CREATED_BY_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +export type FunctionGraphExecutionNodeStateOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'EXECUTION_ID_ASC' + | 'EXECUTION_ID_DESC' + | 'SCOPE_ID_ASC' + | 'SCOPE_ID_DESC' + | 'NODE_NAME_ASC' + | 'NODE_NAME_DESC' + | 'NODE_PATH_ASC' + | 'NODE_PATH_DESC' + | 'STATUS_ASC' + | 'STATUS_DESC' + | 'STARTED_AT_ASC' + | 'STARTED_AT_DESC' | 'COMPLETED_AT_ASC' | 'COMPLETED_AT_DESC' - | 'MAX_TICKS_ASC' - | 'MAX_TICKS_DESC' - | 'MAX_PENDING_JOBS_ASC' - | 'MAX_PENDING_JOBS_DESC' - | 'TIMEOUT_AT_ASC' - | 'TIMEOUT_AT_DESC' | 'ERROR_CODE_ASC' | 'ERROR_CODE_DESC' | 'ERROR_MESSAGE_ASC' - | 'ERROR_MESSAGE_DESC'; -export type FunctionDefinitionOrderBy = + | 'ERROR_MESSAGE_DESC' + | 'OUTPUT_ID_ASC' + | 'OUTPUT_ID_DESC'; +export type NamespaceOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -2425,2193 +4382,5043 @@ export type FunctionDefinitionOrderBy = | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' - | 'SCOPE_ASC' - | 'SCOPE_DESC' | 'NAME_ASC' | 'NAME_DESC' - | 'TASK_IDENTIFIER_ASC' - | 'TASK_IDENTIFIER_DESC' + | 'NAMESPACE_NAME_ASC' + | 'NAMESPACE_NAME_DESC' | 'DESCRIPTION_ASC' | 'DESCRIPTION_DESC' - | 'IS_INVOCABLE_ASC' - | 'IS_INVOCABLE_DESC' - | 'MAX_ATTEMPTS_ASC' - | 'MAX_ATTEMPTS_DESC' - | 'PRIORITY_ASC' - | 'PRIORITY_DESC' - | 'QUEUE_NAME_ASC' - | 'QUEUE_NAME_DESC' - | 'RUNTIME_ASC' - | 'RUNTIME_DESC' - | 'IMAGE_ASC' - | 'IMAGE_DESC' - | 'CONCURRENCY_ASC' - | 'CONCURRENCY_DESC' - | 'SCALE_MIN_ASC' - | 'SCALE_MIN_DESC' - | 'SCALE_MAX_ASC' - | 'SCALE_MAX_DESC' - | 'TIMEOUT_SECONDS_ASC' - | 'TIMEOUT_SECONDS_DESC' - | 'RESOURCES_ASC' - | 'RESOURCES_DESC' - | 'IS_BUILT_IN_ASC' - | 'IS_BUILT_IN_DESC' - | 'REQUIRED_SECRETS_ASC' - | 'REQUIRED_SECRETS_DESC' - | 'REQUIRED_CONFIGS_ASC' - | 'REQUIRED_CONFIGS_DESC' - | 'REQUIRED_BUCKETS_ASC' - | 'REQUIRED_BUCKETS_DESC' - | 'REQUIRED_MODELS_ASC' - | 'REQUIRED_MODELS_DESC' - | 'INPUTS_ASC' - | 'INPUTS_DESC' - | 'OUTPUTS_ASC' - | 'OUTPUTS_DESC' - | 'PROPS_ASC' - | 'PROPS_DESC' - | 'VOLATILE_ASC' - | 'VOLATILE_DESC' + | 'IS_ACTIVE_ASC' + | 'IS_ACTIVE_DESC' + | 'STATUS_ASC' + | 'STATUS_DESC' + | 'LAST_ERROR_ASC' + | 'LAST_ERROR_DESC' + | 'LABELS_ASC' + | 'LABELS_DESC' + | 'ANNOTATIONS_ASC' + | 'ANNOTATIONS_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'IS_MANAGED_ASC' + | 'IS_MANAGED_DESC'; +export type PlatformFunctionInvocationOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'TASK_IDENTIFIER_ASC' + | 'TASK_IDENTIFIER_DESC' + | 'PAYLOAD_ASC' + | 'PAYLOAD_DESC' + | 'STATUS_ASC' + | 'STATUS_DESC' + | 'RESULT_ASC' + | 'RESULT_DESC' + | 'ERROR_ASC' + | 'ERROR_DESC' + | 'DURATION_MS_ASC' + | 'DURATION_MS_DESC' + | 'JOB_ID_ASC' + | 'JOB_ID_DESC' + | 'STARTED_AT_ASC' + | 'STARTED_AT_DESC' + | 'COMPLETED_AT_ASC' + | 'COMPLETED_AT_DESC' + | 'PARENT_INVOCATION_ID_ASC' + | 'PARENT_INVOCATION_ID_DESC' + | 'GRAPH_EXECUTION_ID_ASC' + | 'GRAPH_EXECUTION_ID_DESC'; +export type FunctionInvocationOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'TASK_IDENTIFIER_ASC' + | 'TASK_IDENTIFIER_DESC' + | 'PAYLOAD_ASC' + | 'PAYLOAD_DESC' + | 'STATUS_ASC' + | 'STATUS_DESC' + | 'RESULT_ASC' + | 'RESULT_DESC' + | 'ERROR_ASC' + | 'ERROR_DESC' + | 'DURATION_MS_ASC' + | 'DURATION_MS_DESC' + | 'JOB_ID_ASC' + | 'JOB_ID_DESC' + | 'STARTED_AT_ASC' + | 'STARTED_AT_DESC' + | 'COMPLETED_AT_ASC' + | 'COMPLETED_AT_DESC' + | 'PARENT_INVOCATION_ID_ASC' + | 'PARENT_INVOCATION_ID_DESC' + | 'GRAPH_EXECUTION_ID_ASC' + | 'GRAPH_EXECUTION_ID_DESC'; +export type PlatformNamespaceEventOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAMESPACE_ID_ASC' + | 'NAMESPACE_ID_DESC' + | 'EVENT_TYPE_ASC' + | 'EVENT_TYPE_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'MESSAGE_ASC' + | 'MESSAGE_DESC' + | 'METADATA_ASC' + | 'METADATA_DESC' + | 'CPU_MILLICORES_ASC' + | 'CPU_MILLICORES_DESC' + | 'MEMORY_BYTES_ASC' + | 'MEMORY_BYTES_DESC' + | 'STORAGE_BYTES_ASC' + | 'STORAGE_BYTES_DESC' + | 'NETWORK_INGRESS_BYTES_ASC' + | 'NETWORK_INGRESS_BYTES_DESC' + | 'NETWORK_EGRESS_BYTES_ASC' + | 'NETWORK_EGRESS_BYTES_DESC' + | 'POD_COUNT_ASC' + | 'POD_COUNT_DESC' + | 'METRICS_ASC' + | 'METRICS_DESC'; +export type IntegrationProviderOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'SLUG_ASC' + | 'SLUG_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'CATEGORY_ASC' + | 'CATEGORY_DESC' | 'ICON_ASC' | 'ICON_DESC' - | 'CATEGORY_ASC' - | 'CATEGORY_DESC'; -// ============ CRUD Input Types ============ -export interface CreateGetAllRecordInput { + | 'LOGO_ASC' + | 'LOGO_DESC' + | 'BRAND_ASC' + | 'BRAND_DESC' + | 'REQUIRED_SECRETS_ASC' + | 'REQUIRED_SECRETS_DESC' + | 'REQUIRED_CONFIGS_ASC' + | 'REQUIRED_CONFIGS_DESC'; +export type NamespaceEventOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAMESPACE_ID_ASC' + | 'NAMESPACE_ID_DESC' + | 'EVENT_TYPE_ASC' + | 'EVENT_TYPE_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'MESSAGE_ASC' + | 'MESSAGE_DESC' + | 'METADATA_ASC' + | 'METADATA_DESC' + | 'CPU_MILLICORES_ASC' + | 'CPU_MILLICORES_DESC' + | 'MEMORY_BYTES_ASC' + | 'MEMORY_BYTES_DESC' + | 'STORAGE_BYTES_ASC' + | 'STORAGE_BYTES_DESC' + | 'NETWORK_INGRESS_BYTES_ASC' + | 'NETWORK_INGRESS_BYTES_DESC' + | 'NETWORK_EGRESS_BYTES_ASC' + | 'NETWORK_EGRESS_BYTES_DESC' + | 'POD_COUNT_ASC' + | 'POD_COUNT_DESC' + | 'METRICS_ASC' + | 'METRICS_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC'; +export type FunctionGraphExecutionOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'STARTED_AT_ASC' + | 'STARTED_AT_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'GRAPH_ID_ASC' + | 'GRAPH_ID_DESC' + | 'INVOCATION_ID_ASC' + | 'INVOCATION_ID_DESC' + | 'SCOPE_ID_ASC' + | 'SCOPE_ID_DESC' + | 'OUTPUT_NODE_ASC' + | 'OUTPUT_NODE_DESC' + | 'OUTPUT_PORT_ASC' + | 'OUTPUT_PORT_DESC' + | 'STATUS_ASC' + | 'STATUS_DESC' + | 'INPUT_PAYLOAD_ASC' + | 'INPUT_PAYLOAD_DESC' + | 'OUTPUT_PAYLOAD_ASC' + | 'OUTPUT_PAYLOAD_DESC' + | 'NODE_OUTPUTS_ASC' + | 'NODE_OUTPUTS_DESC' + | 'EXECUTION_PLAN_ASC' + | 'EXECUTION_PLAN_DESC' + | 'CURRENT_WAVE_ASC' + | 'CURRENT_WAVE_DESC' + | 'PARENT_EXECUTION_ID_ASC' + | 'PARENT_EXECUTION_ID_DESC' + | 'PARENT_NODE_NAME_ASC' + | 'PARENT_NODE_NAME_DESC' + | 'DEFINITIONS_COMMIT_ID_ASC' + | 'DEFINITIONS_COMMIT_ID_DESC' + | 'TICK_COUNT_ASC' + | 'TICK_COUNT_DESC' + | 'COMPLETED_AT_ASC' + | 'COMPLETED_AT_DESC' + | 'MAX_TICKS_ASC' + | 'MAX_TICKS_DESC' + | 'MAX_PENDING_JOBS_ASC' + | 'MAX_PENDING_JOBS_DESC' + | 'TIMEOUT_AT_ASC' + | 'TIMEOUT_AT_DESC' + | 'LAST_PROGRESS_AT_ASC' + | 'LAST_PROGRESS_AT_DESC' + | 'ERROR_CODE_ASC' + | 'ERROR_CODE_DESC' + | 'ERROR_MESSAGE_ASC' + | 'ERROR_MESSAGE_DESC'; +export type PlatformFunctionDefinitionOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'TASK_IDENTIFIER_ASC' + | 'TASK_IDENTIFIER_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'IS_PUBLISHED_ASC' + | 'IS_PUBLISHED_DESC' + | 'ACCESS_CHANNELS_ASC' + | 'ACCESS_CHANNELS_DESC' + | 'PUBLISHED_AT_ASC' + | 'PUBLISHED_AT_DESC' + | 'MAX_ATTEMPTS_ASC' + | 'MAX_ATTEMPTS_DESC' + | 'PRIORITY_ASC' + | 'PRIORITY_DESC' + | 'QUEUE_NAME_ASC' + | 'QUEUE_NAME_DESC' + | 'RUNTIME_ASC' + | 'RUNTIME_DESC' + | 'TARGET_SCHEMA_ASC' + | 'TARGET_SCHEMA_DESC' + | 'TARGET_FUNCTION_ASC' + | 'TARGET_FUNCTION_DESC' + | 'MODULE_TABLE_ASC' + | 'MODULE_TABLE_DESC' + | 'FUNCTION_COLUMNS_ASC' + | 'FUNCTION_COLUMNS_DESC' + | 'PAYLOAD_ARGS_ASC' + | 'PAYLOAD_ARGS_DESC' + | 'IMAGE_ASC' + | 'IMAGE_DESC' + | 'CONCURRENCY_ASC' + | 'CONCURRENCY_DESC' + | 'SCALE_MIN_ASC' + | 'SCALE_MIN_DESC' + | 'SCALE_MAX_ASC' + | 'SCALE_MAX_DESC' + | 'TIMEOUT_SECONDS_ASC' + | 'TIMEOUT_SECONDS_DESC' + | 'RESOURCES_ASC' + | 'RESOURCES_DESC' + | 'IS_BUILT_IN_ASC' + | 'IS_BUILT_IN_DESC' + | 'REQUIRED_SECRETS_ASC' + | 'REQUIRED_SECRETS_DESC' + | 'REQUIRED_CONFIGS_ASC' + | 'REQUIRED_CONFIGS_DESC' + | 'INTEGRATIONS_ASC' + | 'INTEGRATIONS_DESC' + | 'REQUIRED_BUCKETS_ASC' + | 'REQUIRED_BUCKETS_DESC' + | 'REQUIRED_MODELS_ASC' + | 'REQUIRED_MODELS_DESC' + | 'INPUTS_ASC' + | 'INPUTS_DESC' + | 'OUTPUTS_ASC' + | 'OUTPUTS_DESC' + | 'PROPS_ASC' + | 'PROPS_DESC' + | 'VOLATILE_ASC' + | 'VOLATILE_DESC' + | 'ICON_ASC' + | 'ICON_DESC' + | 'CATEGORY_ASC' + | 'CATEGORY_DESC'; +export type FunctionDefinitionOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'TASK_IDENTIFIER_ASC' + | 'TASK_IDENTIFIER_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'IS_PUBLISHED_ASC' + | 'IS_PUBLISHED_DESC' + | 'ACCESS_CHANNELS_ASC' + | 'ACCESS_CHANNELS_DESC' + | 'PUBLISHED_AT_ASC' + | 'PUBLISHED_AT_DESC' + | 'MAX_ATTEMPTS_ASC' + | 'MAX_ATTEMPTS_DESC' + | 'PRIORITY_ASC' + | 'PRIORITY_DESC' + | 'QUEUE_NAME_ASC' + | 'QUEUE_NAME_DESC' + | 'RUNTIME_ASC' + | 'RUNTIME_DESC' + | 'TARGET_SCHEMA_ASC' + | 'TARGET_SCHEMA_DESC' + | 'TARGET_FUNCTION_ASC' + | 'TARGET_FUNCTION_DESC' + | 'MODULE_TABLE_ASC' + | 'MODULE_TABLE_DESC' + | 'FUNCTION_COLUMNS_ASC' + | 'FUNCTION_COLUMNS_DESC' + | 'PAYLOAD_ARGS_ASC' + | 'PAYLOAD_ARGS_DESC' + | 'IMAGE_ASC' + | 'IMAGE_DESC' + | 'CONCURRENCY_ASC' + | 'CONCURRENCY_DESC' + | 'SCALE_MIN_ASC' + | 'SCALE_MIN_DESC' + | 'SCALE_MAX_ASC' + | 'SCALE_MAX_DESC' + | 'TIMEOUT_SECONDS_ASC' + | 'TIMEOUT_SECONDS_DESC' + | 'RESOURCES_ASC' + | 'RESOURCES_DESC' + | 'IS_BUILT_IN_ASC' + | 'IS_BUILT_IN_DESC' + | 'REQUIRED_SECRETS_ASC' + | 'REQUIRED_SECRETS_DESC' + | 'REQUIRED_CONFIGS_ASC' + | 'REQUIRED_CONFIGS_DESC' + | 'INTEGRATIONS_ASC' + | 'INTEGRATIONS_DESC' + | 'REQUIRED_BUCKETS_ASC' + | 'REQUIRED_BUCKETS_DESC' + | 'REQUIRED_MODELS_ASC' + | 'REQUIRED_MODELS_DESC' + | 'INPUTS_ASC' + | 'INPUTS_DESC' + | 'OUTPUTS_ASC' + | 'OUTPUTS_DESC' + | 'PROPS_ASC' + | 'PROPS_DESC' + | 'VOLATILE_ASC' + | 'VOLATILE_DESC' + | 'ICON_ASC' + | 'ICON_DESC' + | 'CATEGORY_ASC' + | 'CATEGORY_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC'; +// ============ CRUD Input Types ============ +export interface CreateInfraGetAllRecordInput { + clientMutationId?: string; + infraGetAllRecord: { + path?: string[]; + data?: Record; + }; +} +export interface InfraGetAllRecordPatch { + path?: string[] | null; + data?: Record | null; +} +export interface UpdateInfraGetAllRecordInput { + clientMutationId?: string; + id: string; + infraGetAllRecordPatch: InfraGetAllRecordPatch; +} +export interface DeleteInfraGetAllRecordInput { + clientMutationId?: string; + id: string; +} +export interface CreateGetAllRecordInput { + clientMutationId?: string; + getAllRecord: { + path?: string[]; + data?: Record; + }; +} +export interface GetAllRecordPatch { + path?: string[] | null; + data?: Record | null; +} +export interface UpdateGetAllRecordInput { + clientMutationId?: string; + id: string; + getAllRecordPatch: GetAllRecordPatch; +} +export interface DeleteGetAllRecordInput { + clientMutationId?: string; + id: string; +} +export interface CreateInfraRefInput { + clientMutationId?: string; + infraRef: { + name: string; + scopeId: string; + storeId: string; + commitId?: string; + }; +} +export interface InfraRefPatch { + name?: string | null; + scopeId?: string | null; + storeId?: string | null; + commitId?: string | null; +} +export interface UpdateInfraRefInput { + clientMutationId?: string; + id: string; + infraRefPatch: InfraRefPatch; +} +export interface DeleteInfraRefInput { + clientMutationId?: string; + id: string; +} +export interface CreateInfraStoreInput { + clientMutationId?: string; + infraStore: { + name: string; + scopeId: string; + hash?: string; + }; +} +export interface InfraStorePatch { + name?: string | null; + scopeId?: string | null; + hash?: string | null; +} +export interface UpdateInfraStoreInput { + clientMutationId?: string; + id: string; + infraStorePatch: InfraStorePatch; +} +export interface DeleteInfraStoreInput { + clientMutationId?: string; + id: string; +} +export interface CreateFunctionApiBindingInput { + clientMutationId?: string; + functionApiBinding: { + functionDefinitionId: string; + apiId: string; + alias?: string; + config?: Record; + }; +} +export interface FunctionApiBindingPatch { + functionDefinitionId?: string | null; + apiId?: string | null; + alias?: string | null; + config?: Record | null; +} +export interface UpdateFunctionApiBindingInput { + clientMutationId?: string; + id: string; + functionApiBindingPatch: FunctionApiBindingPatch; +} +export interface DeleteFunctionApiBindingInput { + clientMutationId?: string; + id: string; +} +export interface CreateFunctionGraphRefInput { + clientMutationId?: string; + functionGraphRef: { + name: string; + scopeId: string; + storeId: string; + commitId?: string; + }; +} +export interface FunctionGraphRefPatch { + name?: string | null; + scopeId?: string | null; + storeId?: string | null; + commitId?: string | null; +} +export interface UpdateFunctionGraphRefInput { + clientMutationId?: string; + id: string; + functionGraphRefPatch: FunctionGraphRefPatch; +} +export interface DeleteFunctionGraphRefInput { + clientMutationId?: string; + id: string; +} +export interface CreateFunctionGraphStoreInput { + clientMutationId?: string; + functionGraphStore: { + name: string; + scopeId: string; + hash?: string; + }; +} +export interface FunctionGraphStorePatch { + name?: string | null; + scopeId?: string | null; + hash?: string | null; +} +export interface UpdateFunctionGraphStoreInput { + clientMutationId?: string; + id: string; + functionGraphStorePatch: FunctionGraphStorePatch; +} +export interface DeleteFunctionGraphStoreInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformFunctionApiBindingInput { + clientMutationId?: string; + platformFunctionApiBinding: { + functionDefinitionId: string; + apiId: string; + alias?: string; + config?: Record; + }; +} +export interface PlatformFunctionApiBindingPatch { + functionDefinitionId?: string | null; + apiId?: string | null; + alias?: string | null; + config?: Record | null; +} +export interface UpdatePlatformFunctionApiBindingInput { + clientMutationId?: string; + id: string; + platformFunctionApiBindingPatch: PlatformFunctionApiBindingPatch; +} +export interface DeletePlatformFunctionApiBindingInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformResourcesRequirementsStateInput { + clientMutationId?: string; + platformResourcesRequirementsState: { + resourceId: string; + slug?: string; + secretsHash?: string; + configHash?: string; + requirementsHash?: string; + secretsObjectName?: string; + configObjectName?: string; + }; +} +export interface PlatformResourcesRequirementsStatePatch { + resourceId?: string | null; + slug?: string | null; + secretsHash?: string | null; + configHash?: string | null; + requirementsHash?: string | null; + secretsObjectName?: string | null; + configObjectName?: string | null; +} +export interface UpdatePlatformResourcesRequirementsStateInput { + clientMutationId?: string; + id: string; + platformResourcesRequirementsStatePatch: PlatformResourcesRequirementsStatePatch; +} +export interface DeletePlatformResourcesRequirementsStateInput { + clientMutationId?: string; + id: string; +} +export interface CreateResourcesRequirementsStateInput { + clientMutationId?: string; + resourcesRequirementsState: { + resourceId: string; + slug?: string; + secretsHash?: string; + configHash?: string; + requirementsHash?: string; + secretsObjectName?: string; + configObjectName?: string; + }; +} +export interface ResourcesRequirementsStatePatch { + resourceId?: string | null; + slug?: string | null; + secretsHash?: string | null; + configHash?: string | null; + requirementsHash?: string | null; + secretsObjectName?: string | null; + configObjectName?: string | null; +} +export interface UpdateResourcesRequirementsStateInput { + clientMutationId?: string; + id: string; + resourcesRequirementsStatePatch: ResourcesRequirementsStatePatch; +} +export interface DeleteResourcesRequirementsStateInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformResourceStatusCheckInput { + clientMutationId?: string; + platformResourceStatusCheck: { + resourceId: string; + requestedBy?: string; + requestedAt?: string; + completedAt?: string; + status?: string; + result?: Record; + }; +} +export interface PlatformResourceStatusCheckPatch { + resourceId?: string | null; + requestedBy?: string | null; + requestedAt?: string | null; + completedAt?: string | null; + status?: string | null; + result?: Record | null; +} +export interface UpdatePlatformResourceStatusCheckInput { + clientMutationId?: string; + id: string; + platformResourceStatusCheckPatch: PlatformResourceStatusCheckPatch; +} +export interface DeletePlatformResourceStatusCheckInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformFunctionDeploymentInput { + clientMutationId?: string; + platformFunctionDeployment: { + namespaceId: string; + status?: string; + serviceUrl?: string; + serviceName?: string; + revision?: number; + image: string; + imageVersion?: string; + handlerName?: string; + concurrency?: number; + scaleMin?: number; + scaleMax?: number; + timeoutSeconds?: number; + resources?: Record; + lastError?: string; + lastErrorAt?: string; + errorCount?: number; + labels?: Record; + annotations?: Record; + }; +} +export interface PlatformFunctionDeploymentPatch { + namespaceId?: string | null; + status?: string | null; + serviceUrl?: string | null; + serviceName?: string | null; + revision?: number | null; + image?: string | null; + imageVersion?: string | null; + handlerName?: string | null; + concurrency?: number | null; + scaleMin?: number | null; + scaleMax?: number | null; + timeoutSeconds?: number | null; + resources?: Record | null; + lastError?: string | null; + lastErrorAt?: string | null; + errorCount?: number | null; + labels?: Record | null; + annotations?: Record | null; +} +export interface UpdatePlatformFunctionDeploymentInput { + clientMutationId?: string; + id: string; + platformFunctionDeploymentPatch: PlatformFunctionDeploymentPatch; +} +export interface DeletePlatformFunctionDeploymentInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformResourceInput { + clientMutationId?: string; + platformResource: { + createdBy?: string; + updatedBy?: string; + namespaceId: string; + kind: string; + name: string; + slug: string; + spec?: Record; + status?: string; + statusObserved?: Record; + lastError?: string; + errorCount?: number; + labels?: Record; + annotations?: Record; + requiredSecrets?: ResourceRequirementInput[]; + requiredConfigs?: ResourceRequirementInput[]; + integrations?: string[]; + resourceDefinitionId?: string; + }; +} +export interface PlatformResourcePatch { + createdBy?: string | null; + updatedBy?: string | null; + namespaceId?: string | null; + kind?: string | null; + name?: string | null; + slug?: string | null; + spec?: Record | null; + status?: string | null; + statusObserved?: Record | null; + lastError?: string | null; + errorCount?: number | null; + labels?: Record | null; + annotations?: Record | null; + requiredSecrets?: ResourceRequirementInput[] | null; + requiredConfigs?: ResourceRequirementInput[] | null; + integrations?: string[] | null; + resourceDefinitionId?: string | null; +} +export interface UpdatePlatformResourceInput { + clientMutationId?: string; + id: string; + platformResourcePatch: PlatformResourcePatch; +} +export interface DeletePlatformResourceInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformResourceDefinitionInput { + clientMutationId?: string; + platformResourceDefinition: { + createdBy?: string; + updatedBy?: string; + namespaceId: string; + kind: string; + name: string; + slug: string; + description?: string; + defaultSpec?: Record; + requiredSecrets?: ResourceRequirementInput[]; + requiredConfigs?: ResourceRequirementInput[]; + integrations?: string[]; + labels?: Record; + annotations?: Record; + stepUpMinAge?: IntervalInput; + }; +} +export interface PlatformResourceDefinitionPatch { + createdBy?: string | null; + updatedBy?: string | null; + namespaceId?: string | null; + kind?: string | null; + name?: string | null; + slug?: string | null; + description?: string | null; + defaultSpec?: Record | null; + requiredSecrets?: ResourceRequirementInput[] | null; + requiredConfigs?: ResourceRequirementInput[] | null; + integrations?: string[] | null; + labels?: Record | null; + annotations?: Record | null; + stepUpMinAge?: IntervalInput | null; +} +export interface UpdatePlatformResourceDefinitionInput { + clientMutationId?: string; + id: string; + platformResourceDefinitionPatch: PlatformResourceDefinitionPatch; +} +export interface DeletePlatformResourceDefinitionInput { + clientMutationId?: string; + id: string; +} +export interface CreateInfraObjectInput { + clientMutationId?: string; + infraObject: { + scopeId: string; + kids?: string[]; + ktree?: string[]; + data?: Record; + }; +} +export interface InfraObjectPatch { + scopeId?: string | null; + kids?: string[] | null; + ktree?: string[] | null; + data?: Record | null; +} +export interface UpdateInfraObjectInput { + clientMutationId?: string; + id: string; + infraObjectPatch: InfraObjectPatch; +} +export interface DeleteInfraObjectInput { + clientMutationId?: string; + id: string; +} +export interface CreateFunctionGraphObjectInput { + clientMutationId?: string; + functionGraphObject: { + scopeId: string; + kids?: string[]; + ktree?: string[]; + data?: Record; + }; +} +export interface FunctionGraphObjectPatch { + scopeId?: string | null; + kids?: string[] | null; + ktree?: string[] | null; + data?: Record | null; +} +export interface UpdateFunctionGraphObjectInput { + clientMutationId?: string; + id: string; + functionGraphObjectPatch: FunctionGraphObjectPatch; +} +export interface DeleteFunctionGraphObjectInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformFunctionDeploymentEventInput { + clientMutationId?: string; + platformFunctionDeploymentEvent: { + deploymentId: string; + eventType: string; + actorId?: string; + message?: string; + metadata?: Record; + }; +} +export interface PlatformFunctionDeploymentEventPatch { + deploymentId?: string | null; + eventType?: string | null; + actorId?: 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 CreatePlatformResourceEventInput { + clientMutationId?: string; + platformResourceEvent: { + resourceId: string; + eventType: string; + actorId?: string; + message?: string; + metadata?: Record; + }; +} +export interface PlatformResourceEventPatch { + resourceId?: string | null; + eventType?: string | null; + actorId?: string | null; + message?: string | null; + metadata?: Record | null; +} +export interface UpdatePlatformResourceEventInput { + clientMutationId?: string; + id: string; + platformResourceEventPatch: PlatformResourceEventPatch; +} +export interface DeletePlatformResourceEventInput { + clientMutationId?: string; + id: string; +} +export interface CreateResourceStatusCheckInput { + clientMutationId?: string; + resourceStatusCheck: { + resourceId: string; + databaseId: string; + requestedBy?: string; + requestedAt?: string; + completedAt?: string; + status?: string; + result?: Record; + }; +} +export interface ResourceStatusCheckPatch { + resourceId?: string | null; + databaseId?: string | null; + requestedBy?: string | null; + requestedAt?: string | null; + completedAt?: string | null; + status?: string | null; + result?: Record | null; +} +export interface UpdateResourceStatusCheckInput { + clientMutationId?: string; + id: string; + resourceStatusCheckPatch: ResourceStatusCheckPatch; +} +export interface DeleteResourceStatusCheckInput { + clientMutationId?: string; + id: string; +} +export interface CreateFunctionDeploymentInput { + clientMutationId?: string; + functionDeployment: { + namespaceId: string; + status?: string; + serviceUrl?: string; + serviceName?: string; + revision?: number; + image: string; + imageVersion?: string; + handlerName?: string; + concurrency?: number; + scaleMin?: number; + scaleMax?: number; + timeoutSeconds?: number; + resources?: Record; + lastError?: string; + lastErrorAt?: string; + errorCount?: number; + labels?: Record; + annotations?: Record; + databaseId: string; + }; +} +export interface FunctionDeploymentPatch { + namespaceId?: string | null; + status?: string | null; + serviceUrl?: string | null; + serviceName?: string | null; + revision?: number | null; + image?: string | null; + imageVersion?: string | null; + handlerName?: string | null; + concurrency?: number | null; + scaleMin?: number | null; + scaleMax?: number | null; + timeoutSeconds?: number | null; + resources?: Record | null; + lastError?: string | null; + lastErrorAt?: string | null; + errorCount?: number | null; + labels?: Record | null; + annotations?: Record | null; + databaseId?: string | null; +} +export interface UpdateFunctionDeploymentInput { + clientMutationId?: string; + id: string; + functionDeploymentPatch: FunctionDeploymentPatch; +} +export interface DeleteFunctionDeploymentInput { + clientMutationId?: string; + id: string; +} +export interface CreateResourceInput { + clientMutationId?: string; + resource: { + createdBy?: string; + updatedBy?: string; + namespaceId: string; + kind: string; + name: string; + slug: string; + spec?: Record; + status?: string; + statusObserved?: Record; + lastError?: string; + errorCount?: number; + labels?: Record; + annotations?: Record; + databaseId: string; + requiredSecrets?: ResourceRequirementInput[]; + requiredConfigs?: ResourceRequirementInput[]; + integrations?: string[]; + resourceDefinitionId?: string; + }; +} +export interface ResourcePatch { + createdBy?: string | null; + updatedBy?: string | null; + namespaceId?: string | null; + kind?: string | null; + name?: string | null; + slug?: string | null; + spec?: Record | null; + status?: string | null; + statusObserved?: Record | null; + lastError?: string | null; + errorCount?: number | null; + labels?: Record | null; + annotations?: Record | null; + databaseId?: string | null; + requiredSecrets?: ResourceRequirementInput[] | null; + requiredConfigs?: ResourceRequirementInput[] | null; + integrations?: string[] | null; + resourceDefinitionId?: string | null; +} +export interface UpdateResourceInput { + clientMutationId?: string; + id: string; + resourcePatch: ResourcePatch; +} +export interface DeleteResourceInput { + clientMutationId?: string; + id: string; +} +export interface CreateResourceDefinitionInput { + clientMutationId?: string; + resourceDefinition: { + createdBy?: string; + updatedBy?: string; + namespaceId: string; + kind: string; + name: string; + slug: string; + description?: string; + defaultSpec?: Record; + requiredSecrets?: ResourceRequirementInput[]; + requiredConfigs?: ResourceRequirementInput[]; + integrations?: string[]; + labels?: Record; + annotations?: Record; + stepUpMinAge?: IntervalInput; + databaseId: string; + }; +} +export interface ResourceDefinitionPatch { + createdBy?: string | null; + updatedBy?: string | null; + namespaceId?: string | null; + kind?: string | null; + name?: string | null; + slug?: string | null; + description?: string | null; + defaultSpec?: Record | null; + requiredSecrets?: ResourceRequirementInput[] | null; + requiredConfigs?: ResourceRequirementInput[] | null; + integrations?: string[] | null; + labels?: Record | null; + annotations?: Record | null; + stepUpMinAge?: IntervalInput | null; + databaseId?: string | null; +} +export interface UpdateResourceDefinitionInput { + clientMutationId?: string; + id: string; + resourceDefinitionPatch: ResourceDefinitionPatch; +} +export interface DeleteResourceDefinitionInput { + clientMutationId?: string; + id: string; +} +export interface CreateFunctionDeploymentEventInput { + clientMutationId?: string; + functionDeploymentEvent: { + deploymentId: string; + eventType: string; + actorId?: string; + message?: string; + metadata?: Record; + databaseId: string; + }; +} +export interface FunctionDeploymentEventPatch { + deploymentId?: string | null; + eventType?: string | null; + actorId?: string | null; + message?: string | null; + metadata?: Record | null; + databaseId?: string | null; +} +export interface UpdateFunctionDeploymentEventInput { + clientMutationId?: string; + id: string; + functionDeploymentEventPatch: FunctionDeploymentEventPatch; +} +export interface DeleteFunctionDeploymentEventInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformFunctionExecutionLogInput { + clientMutationId?: string; + platformFunctionExecutionLog: { + invocationId?: string; + taskIdentifier?: string; + logLevel?: string; + message: string; + metadata?: Record; + actorId?: string; + }; +} +export interface PlatformFunctionExecutionLogPatch { + invocationId?: string | null; + taskIdentifier?: string | null; + logLevel?: string | null; + message?: string | null; + metadata?: Record | null; + actorId?: string | null; +} +export interface UpdatePlatformFunctionExecutionLogInput { + clientMutationId?: string; + id: string; + platformFunctionExecutionLogPatch: PlatformFunctionExecutionLogPatch; +} +export interface DeletePlatformFunctionExecutionLogInput { + clientMutationId?: string; + id: string; +} +export interface CreateResourceEventInput { + clientMutationId?: string; + resourceEvent: { + resourceId: string; + eventType: string; + actorId?: string; + message?: string; + metadata?: Record; + databaseId: string; + }; +} +export interface ResourceEventPatch { + resourceId?: string | null; + eventType?: string | null; + actorId?: string | null; + message?: string | null; + metadata?: Record | null; + databaseId?: string | null; +} +export interface UpdateResourceEventInput { + clientMutationId?: string; + id: string; + resourceEventPatch: ResourceEventPatch; +} +export interface DeleteResourceEventInput { + clientMutationId?: string; + id: string; +} +export interface CreateFunctionGraphExecutionOutputInput { + clientMutationId?: string; + functionGraphExecutionOutput: { + scopeId: string; + hash: Base64EncodedBinary; + data: Record; + }; +} +export interface FunctionGraphExecutionOutputPatch { + scopeId?: string | null; + hash?: Base64EncodedBinary | null; + data?: Record | null; +} +export interface UpdateFunctionGraphExecutionOutputInput { + clientMutationId?: string; + id: string; + functionGraphExecutionOutputPatch: FunctionGraphExecutionOutputPatch; +} +export interface DeleteFunctionGraphExecutionOutputInput { + clientMutationId?: string; + id: string; +} +export interface CreateInfraCommitInput { + clientMutationId?: string; + infraCommit: { + message?: string; + scopeId: string; + storeId: string; + parentIds?: string[]; + authorId?: string; + committerId?: string; + treeId?: string; + date?: string; + }; +} +export interface InfraCommitPatch { + message?: string | null; + scopeId?: string | null; + storeId?: string | null; + parentIds?: string[] | null; + authorId?: string | null; + committerId?: string | null; + treeId?: string | null; + date?: string | null; +} +export interface UpdateInfraCommitInput { + clientMutationId?: string; + id: string; + infraCommitPatch: InfraCommitPatch; +} +export interface DeleteInfraCommitInput { + clientMutationId?: string; + id: string; +} +export interface CreateFunctionGraphCommitInput { + clientMutationId?: string; + functionGraphCommit: { + message?: string; + scopeId: string; + storeId: string; + parentIds?: string[]; + authorId?: string; + committerId?: string; + treeId?: string; + date?: string; + }; +} +export interface FunctionGraphCommitPatch { + message?: string | null; + scopeId?: string | null; + storeId?: string | null; + parentIds?: string[] | null; + authorId?: string | null; + committerId?: string | null; + treeId?: string | null; + date?: string | null; +} +export interface UpdateFunctionGraphCommitInput { + clientMutationId?: string; + id: string; + functionGraphCommitPatch: FunctionGraphCommitPatch; +} +export interface DeleteFunctionGraphCommitInput { + clientMutationId?: string; + id: string; +} +export interface CreateFunctionExecutionLogInput { + clientMutationId?: string; + functionExecutionLog: { + invocationId?: string; + taskIdentifier?: string; + logLevel?: string; + message: string; + metadata?: Record; + actorId?: string; + databaseId: string; + }; +} +export interface FunctionExecutionLogPatch { + invocationId?: string | null; + taskIdentifier?: string | null; + logLevel?: string | null; + message?: string | null; + metadata?: Record | null; + actorId?: string | null; + databaseId?: string | null; +} +export interface UpdateFunctionExecutionLogInput { + clientMutationId?: string; + id: string; + functionExecutionLogPatch: FunctionExecutionLogPatch; +} +export interface DeleteFunctionExecutionLogInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformResourcesResolvedRequirementInput { + clientMutationId?: string; + platformResourcesResolvedRequirement: { + resourceId: string; + slug?: string; + namespaceId: string; + requirementKind?: string; + name?: string; + required?: boolean; + atomId: string; + present?: boolean; + secretsObjectName?: string; + configObjectName?: string; + }; +} +export interface PlatformResourcesResolvedRequirementPatch { + resourceId?: string | null; + slug?: string | null; + namespaceId?: string | null; + requirementKind?: string | null; + name?: string | null; + required?: boolean | null; + atomId?: string | null; + present?: boolean | null; + secretsObjectName?: string | null; + configObjectName?: string | null; +} +export interface UpdatePlatformResourcesResolvedRequirementInput { + clientMutationId?: string; + id: string; + platformResourcesResolvedRequirementPatch: PlatformResourcesResolvedRequirementPatch; +} +export interface DeletePlatformResourcesResolvedRequirementInput { + clientMutationId?: string; + id: string; +} +export interface CreateResourcesResolvedRequirementInput { + clientMutationId?: string; + resourcesResolvedRequirement: { + resourceId: string; + slug?: string; + namespaceId: string; + requirementKind?: string; + name?: string; + required?: boolean; + atomId: string; + present?: boolean; + secretsObjectName?: string; + configObjectName?: string; + }; +} +export interface ResourcesResolvedRequirementPatch { + resourceId?: string | null; + slug?: string | null; + namespaceId?: string | null; + requirementKind?: string | null; + name?: string | null; + required?: boolean | null; + atomId?: string | null; + present?: boolean | null; + secretsObjectName?: string | null; + configObjectName?: string | null; +} +export interface UpdateResourcesResolvedRequirementInput { + clientMutationId?: string; + id: string; + resourcesResolvedRequirementPatch: ResourcesResolvedRequirementPatch; +} +export interface DeleteResourcesResolvedRequirementInput { + clientMutationId?: string; + id: string; +} +export interface CreateDbPresetInput { + clientMutationId?: string; + dbPreset: { + storeId?: string; + slug: string; + definition: Record; + commitId?: string; + modulesHash?: string; + label?: string; + description?: string; + active?: boolean; + }; +} +export interface DbPresetPatch { + storeId?: string | null; + slug?: string | null; + definition?: Record | null; + commitId?: string | null; + modulesHash?: string | null; + label?: string | null; + description?: string | null; + active?: boolean | null; +} +export interface UpdateDbPresetInput { + clientMutationId?: string; + id: string; + dbPresetPatch: DbPresetPatch; +} +export interface DeleteDbPresetInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformNamespaceInput { + clientMutationId?: string; + platformNamespace: { + name: string; + namespaceName: string; + description?: string; + isActive?: boolean; + status?: string; + lastError?: string; + labels?: Record; + annotations?: Record; + isManaged?: boolean; + }; +} +export interface PlatformNamespacePatch { + name?: string | null; + namespaceName?: string | null; + description?: string | null; + isActive?: boolean | null; + status?: string | null; + lastError?: string | null; + labels?: Record | null; + annotations?: Record | null; + isManaged?: boolean | null; +} +export interface UpdatePlatformNamespaceInput { + clientMutationId?: string; + id: string; + platformNamespacePatch: PlatformNamespacePatch; +} +export interface DeletePlatformNamespaceInput { + clientMutationId?: string; + id: string; +} +export interface CreateFunctionGraphInput { + clientMutationId?: string; + functionGraph: { + scopeId: string; + storeId: string; + context?: string; + name?: string; + description?: string; + definitionsCommitId: string; + isValid?: boolean; + validationErrors?: Record; + createdBy?: string; + }; +} +export interface FunctionGraphPatch { + scopeId?: string | null; + storeId?: string | null; + context?: string | null; + name?: string | null; + description?: string | null; + definitionsCommitId?: string | null; + isValid?: boolean | null; + validationErrors?: Record | null; + createdBy?: string | null; +} +export interface UpdateFunctionGraphInput { + clientMutationId?: string; + id: string; + functionGraphPatch: FunctionGraphPatch; +} +export interface DeleteFunctionGraphInput { + clientMutationId?: string; + id: string; +} +export interface CreateFunctionGraphExecutionNodeStateInput { + clientMutationId?: string; + functionGraphExecutionNodeState: { + executionId: string; + scopeId: string; + nodeName: string; + nodePath?: string[]; + status?: string; + startedAt?: string; + completedAt?: string; + errorCode?: string; + errorMessage?: string; + outputId?: string; + }; +} +export interface FunctionGraphExecutionNodeStatePatch { + executionId?: string | null; + scopeId?: string | null; + nodeName?: string | null; + nodePath?: string[] | null; + status?: string | null; + startedAt?: string | null; + completedAt?: string | null; + errorCode?: string | null; + errorMessage?: string | null; + outputId?: string | null; +} +export interface UpdateFunctionGraphExecutionNodeStateInput { + clientMutationId?: string; + id: string; + functionGraphExecutionNodeStatePatch: FunctionGraphExecutionNodeStatePatch; +} +export interface DeleteFunctionGraphExecutionNodeStateInput { + clientMutationId?: string; + id: string; +} +export interface CreateNamespaceInput { + clientMutationId?: string; + namespace: { + name: string; + namespaceName: string; + description?: string; + isActive?: boolean; + status?: string; + lastError?: string; + labels?: Record; + annotations?: Record; + databaseId: string; + isManaged?: boolean; + }; +} +export interface NamespacePatch { + name?: string | null; + namespaceName?: string | null; + description?: string | null; + isActive?: boolean | null; + status?: string | null; + lastError?: string | null; + labels?: Record | null; + annotations?: Record | null; + databaseId?: string | null; + isManaged?: boolean | null; +} +export interface UpdateNamespaceInput { clientMutationId?: string; - getAllRecord: { - path?: string[]; - data?: Record; + id: string; + namespacePatch: NamespacePatch; +} +export interface DeleteNamespaceInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformFunctionInvocationInput { + clientMutationId?: string; + platformFunctionInvocation: { + actorId?: string; + taskIdentifier: string; + payload?: Record; + status?: string; + result?: Record; + error?: string; + durationMs?: number; + jobId?: string; + startedAt?: string; + completedAt?: string; + parentInvocationId?: string; + graphExecutionId?: string; }; } -export interface GetAllRecordPatch { - path?: string[] | null; - data?: Record | null; +export interface PlatformFunctionInvocationPatch { + actorId?: string | null; + taskIdentifier?: string | null; + payload?: Record | null; + status?: string | null; + result?: Record | null; + error?: string | null; + durationMs?: number | null; + jobId?: string | null; + startedAt?: string | null; + completedAt?: string | null; + parentInvocationId?: string | null; + graphExecutionId?: string | null; } -export interface UpdateGetAllRecordInput { +export interface UpdatePlatformFunctionInvocationInput { clientMutationId?: string; id: string; - getAllRecordPatch: GetAllRecordPatch; + platformFunctionInvocationPatch: PlatformFunctionInvocationPatch; } -export interface DeleteGetAllRecordInput { +export interface DeletePlatformFunctionInvocationInput { clientMutationId?: string; id: string; } -export interface CreateFunctionApiBindingInput { +export interface CreateFunctionInvocationInput { clientMutationId?: string; - functionApiBinding: { - functionDefinitionId: string; - apiId: string; - alias?: string; - config?: Record; + functionInvocation: { + actorId?: string; + databaseId: string; + taskIdentifier: string; + payload?: Record; + status?: string; + result?: Record; + error?: string; + durationMs?: number; + jobId?: string; + startedAt?: string; + completedAt?: string; + parentInvocationId?: string; + graphExecutionId?: string; }; } -export interface FunctionApiBindingPatch { - functionDefinitionId?: string | null; - apiId?: string | null; - alias?: string | null; - config?: Record | null; +export interface FunctionInvocationPatch { + actorId?: string | null; + databaseId?: string | null; + taskIdentifier?: string | null; + payload?: Record | null; + status?: string | null; + result?: Record | null; + error?: string | null; + durationMs?: number | null; + jobId?: string | null; + startedAt?: string | null; + completedAt?: string | null; + parentInvocationId?: string | null; + graphExecutionId?: string | null; } -export interface UpdateFunctionApiBindingInput { +export interface UpdateFunctionInvocationInput { clientMutationId?: string; id: string; - functionApiBindingPatch: FunctionApiBindingPatch; + functionInvocationPatch: FunctionInvocationPatch; } -export interface DeleteFunctionApiBindingInput { +export interface DeleteFunctionInvocationInput { clientMutationId?: string; id: string; } -export interface CreateFunctionDeploymentInput { +export interface CreatePlatformNamespaceEventInput { clientMutationId?: string; - functionDeployment: { - functionDefinitionId: string; + platformNamespaceEvent: { namespaceId: string; - status?: string; - serviceUrl?: string; - serviceName?: string; - revision?: number; - image?: string; - concurrency?: number; - scaleMin?: number; - scaleMax?: number; - timeoutSeconds?: number; - resources?: Record; - lastError?: string; - lastErrorAt?: string; - errorCount?: number; - labels?: Record; - annotations?: Record; - databaseId: string; + eventType: string; + actorId?: string; + message?: string; + metadata?: Record; + cpuMillicores?: number; + memoryBytes?: string; + storageBytes?: string; + networkIngressBytes?: string; + networkEgressBytes?: string; + podCount?: number; + metrics?: Record; }; } -export interface FunctionDeploymentPatch { - functionDefinitionId?: string | null; +export interface PlatformNamespaceEventPatch { namespaceId?: string | null; - status?: string | null; - serviceUrl?: string | null; - serviceName?: string | null; - revision?: number | null; - image?: string | null; - concurrency?: number | null; - scaleMin?: number | null; - scaleMax?: number | null; - timeoutSeconds?: number | null; - resources?: Record | null; - lastError?: string | null; - lastErrorAt?: string | null; - errorCount?: number | null; - labels?: Record | null; - annotations?: Record | null; - databaseId?: string | null; + eventType?: string | null; + actorId?: string | null; + message?: string | null; + metadata?: Record | null; + cpuMillicores?: number | null; + memoryBytes?: string | null; + storageBytes?: string | null; + networkIngressBytes?: string | null; + networkEgressBytes?: string | null; + podCount?: number | null; + metrics?: Record | null; } -export interface UpdateFunctionDeploymentInput { +export interface UpdatePlatformNamespaceEventInput { clientMutationId?: string; id: string; - functionDeploymentPatch: FunctionDeploymentPatch; + platformNamespaceEventPatch: PlatformNamespaceEventPatch; } -export interface DeleteFunctionDeploymentInput { +export interface DeletePlatformNamespaceEventInput { clientMutationId?: string; id: string; } -export interface CreateResourceInput { +export interface CreateIntegrationProviderInput { clientMutationId?: string; - resource: { - createdBy?: string; - updatedBy?: string; - namespaceId: string; - kind: string; - name: string; + integrationProvider: { slug: string; - spec?: Record; - status?: string; - statusObserved?: Record; - lastError?: string; - errorCount?: number; - labels?: Record; - annotations?: Record; + name: string; + description?: string; + category?: string; + icon?: string; + logo?: ConstructiveInternalTypeImage; + brand?: Record; + requiredSecrets?: ResourceRequirementInput[]; + requiredConfigs?: ResourceRequirementInput[]; + }; +} +export interface IntegrationProviderPatch { + slug?: string | null; + name?: string | null; + description?: string | null; + category?: string | null; + icon?: string | null; + logo?: ConstructiveInternalTypeImage | null; + brand?: Record | null; + requiredSecrets?: ResourceRequirementInput[] | null; + requiredConfigs?: ResourceRequirementInput[] | null; + logoUpload?: File | null; +} +export interface UpdateIntegrationProviderInput { + clientMutationId?: string; + id: string; + integrationProviderPatch: IntegrationProviderPatch; +} +export interface DeleteIntegrationProviderInput { + clientMutationId?: string; + id: string; +} +export interface CreateNamespaceEventInput { + clientMutationId?: string; + namespaceEvent: { + namespaceId: string; + eventType: string; + actorId?: string; + message?: string; + metadata?: Record; + cpuMillicores?: number; + memoryBytes?: string; + storageBytes?: string; + networkIngressBytes?: string; + networkEgressBytes?: string; + podCount?: number; + metrics?: Record; databaseId: string; }; } -export interface ResourcePatch { - createdBy?: string | null; - updatedBy?: string | null; +export interface NamespaceEventPatch { namespaceId?: string | null; - kind?: string | null; - name?: string | null; - slug?: string | null; - spec?: Record | null; + eventType?: string | null; + actorId?: string | null; + message?: string | null; + metadata?: Record | null; + cpuMillicores?: number | null; + memoryBytes?: string | null; + storageBytes?: string | null; + networkIngressBytes?: string | null; + networkEgressBytes?: string | null; + podCount?: number | null; + metrics?: Record | null; + databaseId?: string | null; +} +export interface UpdateNamespaceEventInput { + clientMutationId?: string; + id: string; + namespaceEventPatch: NamespaceEventPatch; +} +export interface DeleteNamespaceEventInput { + clientMutationId?: string; + id: string; +} +export interface CreateFunctionGraphExecutionInput { + clientMutationId?: string; + functionGraphExecution: { + startedAt?: string; + graphId: string; + invocationId?: string; + scopeId: string; + outputNode?: string; + outputPort?: string; + status?: string; + inputPayload?: Record; + outputPayload?: Record; + nodeOutputs?: Record; + executionPlan?: Record; + currentWave?: number; + parentExecutionId?: string; + parentNodeName?: string; + definitionsCommitId?: string; + tickCount?: number; + completedAt?: string; + maxTicks?: number; + maxPendingJobs?: number; + timeoutAt?: string; + lastProgressAt?: string; + errorCode?: string; + errorMessage?: string; + }; +} +export interface FunctionGraphExecutionPatch { + startedAt?: string | null; + graphId?: string | null; + invocationId?: string | null; + scopeId?: string | null; + outputNode?: string | null; + outputPort?: string | null; status?: string | null; - statusObserved?: Record | null; - lastError?: string | null; - errorCount?: number | null; - labels?: Record | null; - annotations?: Record | null; - databaseId?: string | null; + inputPayload?: Record | null; + outputPayload?: Record | null; + nodeOutputs?: Record | null; + executionPlan?: Record | null; + currentWave?: number | null; + parentExecutionId?: string | null; + parentNodeName?: string | null; + definitionsCommitId?: string | null; + tickCount?: number | null; + completedAt?: string | null; + maxTicks?: number | null; + maxPendingJobs?: number | null; + timeoutAt?: string | null; + lastProgressAt?: string | null; + errorCode?: string | null; + errorMessage?: string | null; } -export interface UpdateResourceInput { +export interface UpdateFunctionGraphExecutionInput { clientMutationId?: string; id: string; - resourcePatch: ResourcePatch; + functionGraphExecutionPatch: FunctionGraphExecutionPatch; } -export interface DeleteResourceInput { +export interface DeleteFunctionGraphExecutionInput { clientMutationId?: string; id: string; } -export interface CreateFunctionGraphRefInput { +export interface CreatePlatformFunctionDefinitionInput { clientMutationId?: string; - functionGraphRef: { + platformFunctionDefinition: { + scope: string; name: string; - databaseId: string; - storeId: string; - commitId?: string; + taskIdentifier: string; + description?: string; + isPublished?: boolean; + accessChannels?: string[]; + publishedAt?: string; + maxAttempts?: number; + priority?: number; + queueName?: string; + runtime?: string; + targetSchema?: string; + targetFunction?: string; + moduleTable?: string; + functionColumns?: Record; + payloadArgs?: Record; + image?: string; + concurrency?: number; + scaleMin?: number; + scaleMax?: number; + timeoutSeconds?: number; + resources?: Record; + isBuiltIn?: boolean; + requiredSecrets?: ResourceRequirementInput[]; + requiredConfigs?: ResourceRequirementInput[]; + integrations?: string[]; + requiredBuckets?: string[]; + requiredModels?: string[]; + inputs?: Record; + outputs?: Record; + props?: Record; + volatile?: boolean; + icon?: string; + category?: string; }; } -export interface FunctionGraphRefPatch { +export interface PlatformFunctionDefinitionPatch { + scope?: string | null; name?: string | null; - databaseId?: string | null; - storeId?: string | null; - commitId?: string | null; + taskIdentifier?: string | null; + description?: string | null; + isPublished?: boolean | null; + accessChannels?: string[] | null; + publishedAt?: string | null; + maxAttempts?: number | null; + priority?: number | null; + queueName?: string | null; + runtime?: string | null; + targetSchema?: string | null; + targetFunction?: string | null; + moduleTable?: string | null; + functionColumns?: Record | null; + payloadArgs?: Record | null; + image?: string | null; + concurrency?: number | null; + scaleMin?: number | null; + scaleMax?: number | null; + timeoutSeconds?: number | null; + resources?: Record | null; + isBuiltIn?: boolean | null; + requiredSecrets?: ResourceRequirementInput[] | null; + requiredConfigs?: ResourceRequirementInput[] | null; + integrations?: string[] | null; + requiredBuckets?: string[] | null; + requiredModels?: string[] | null; + inputs?: Record | null; + outputs?: Record | null; + props?: Record | null; + volatile?: boolean | null; + icon?: string | null; + category?: string | null; } -export interface UpdateFunctionGraphRefInput { +export interface UpdatePlatformFunctionDefinitionInput { clientMutationId?: string; id: string; - functionGraphRefPatch: FunctionGraphRefPatch; + platformFunctionDefinitionPatch: PlatformFunctionDefinitionPatch; } -export interface DeleteFunctionGraphRefInput { +export interface DeletePlatformFunctionDefinitionInput { clientMutationId?: string; id: string; } -export interface CreateFunctionGraphStoreInput { +export interface CreateFunctionDefinitionInput { clientMutationId?: string; - functionGraphStore: { + functionDefinition: { + scope: string; name: string; + taskIdentifier: string; + description?: string; + isPublished?: boolean; + accessChannels?: string[]; + publishedAt?: string; + maxAttempts?: number; + priority?: number; + queueName?: string; + runtime?: string; + targetSchema?: string; + targetFunction?: string; + moduleTable?: string; + functionColumns?: Record; + payloadArgs?: Record; + image?: string; + concurrency?: number; + scaleMin?: number; + scaleMax?: number; + timeoutSeconds?: number; + resources?: Record; + isBuiltIn?: boolean; + requiredSecrets?: ResourceRequirementInput[]; + requiredConfigs?: ResourceRequirementInput[]; + integrations?: string[]; + requiredBuckets?: string[]; + requiredModels?: string[]; + inputs?: Record; + outputs?: Record; + props?: Record; + volatile?: boolean; + icon?: string; + category?: string; databaseId: string; - hash?: string; }; } -export interface FunctionGraphStorePatch { +export interface FunctionDefinitionPatch { + scope?: string | null; name?: string | null; + taskIdentifier?: string | null; + description?: string | null; + isPublished?: boolean | null; + accessChannels?: string[] | null; + publishedAt?: string | null; + maxAttempts?: number | null; + priority?: number | null; + queueName?: string | null; + runtime?: string | null; + targetSchema?: string | null; + targetFunction?: string | null; + moduleTable?: string | null; + functionColumns?: Record | null; + payloadArgs?: Record | null; + image?: string | null; + concurrency?: number | null; + scaleMin?: number | null; + scaleMax?: number | null; + timeoutSeconds?: number | null; + resources?: Record | null; + isBuiltIn?: boolean | null; + requiredSecrets?: ResourceRequirementInput[] | null; + requiredConfigs?: ResourceRequirementInput[] | null; + integrations?: string[] | null; + requiredBuckets?: string[] | null; + requiredModels?: string[] | null; + inputs?: Record | null; + outputs?: Record | null; + props?: Record | null; + volatile?: boolean | null; + icon?: string | null; + category?: string | null; databaseId?: string | null; - hash?: string | null; } -export interface UpdateFunctionGraphStoreInput { +export interface UpdateFunctionDefinitionInput { clientMutationId?: string; id: string; - functionGraphStorePatch: FunctionGraphStorePatch; + functionDefinitionPatch: FunctionDefinitionPatch; } -export interface DeleteFunctionGraphStoreInput { +export interface DeleteFunctionDefinitionInput { clientMutationId?: string; id: string; } -export interface CreateFunctionGraphObjectInput { +// ============ Connection Fields Map ============ +export const connectionFieldsMap = { + PlatformResource: { + platformResourceStatusChecksByResourceId: 'PlatformResourceStatusCheck', + }, + Resource: { + resourceStatusChecks: 'ResourceStatusCheck', + }, + PlatformNamespace: { + platformFunctionDeploymentsByNamespaceId: 'PlatformFunctionDeployment', + platformResourcesByNamespaceId: 'PlatformResource', + platformResourceDefinitionsByNamespaceId: 'PlatformResourceDefinition', + }, + Namespace: { + functionDeployments: 'FunctionDeployment', + resources: 'Resource', + resourceDefinitions: 'ResourceDefinition', + }, + PlatformFunctionDefinition: { + platformFunctionApiBindingsByFunctionDefinitionId: 'PlatformFunctionApiBinding', + }, + FunctionDefinition: { + functionApiBindings: 'FunctionApiBinding', + }, +} as Record>; +// ============ Custom Input Types (from schema) ============ +export interface ValidateFunctionGraphInput { clientMutationId?: string; - functionGraphObject: { - databaseId: string; - kids?: string[]; - ktree?: string[]; - data?: Record; - }; + graphId?: string; } -export interface FunctionGraphObjectPatch { - databaseId?: string | null; - kids?: string[] | null; - ktree?: string[] | null; - data?: Record | null; +export interface InfraInitEmptyRepoInput { + clientMutationId?: string; + sId?: string; + storeId?: string; } -export interface UpdateFunctionGraphObjectInput { +export interface InitEmptyRepoInput { clientMutationId?: string; - id: string; - functionGraphObjectPatch: FunctionGraphObjectPatch; + sId?: string; + storeId?: string; } -export interface DeleteFunctionGraphObjectInput { +export interface ImportDefinitionsInput { clientMutationId?: string; - id: string; + graphId?: string; + sourceScopeId?: string; + sourceCommitId?: string; + contexts?: string[]; } -export interface CreateFunctionDeploymentEventInput { +export interface InfraSetDataAtPathInput { clientMutationId?: string; - functionDeploymentEvent: { - deploymentId: string; - eventType: string; - actorId?: string; - message?: string; - metadata?: Record; - databaseId: string; - }; + sId?: string; + root?: string; + path?: string[]; + data?: Record; } -export interface FunctionDeploymentEventPatch { - deploymentId?: string | null; - eventType?: string | null; - actorId?: string | null; - message?: string | null; - metadata?: Record | null; - databaseId?: string | null; +export interface SetDataAtPathInput { + clientMutationId?: string; + sId?: string; + root?: string; + path?: string[]; + data?: Record; } -export interface UpdateFunctionDeploymentEventInput { +export interface CopyGraphInput { clientMutationId?: string; - id: string; - functionDeploymentEventPatch: FunctionDeploymentEventPatch; + scopeId?: string; + graphId?: string; + name?: string; } -export interface DeleteFunctionDeploymentEventInput { +export interface SaveGraphInput { clientMutationId?: string; - id: string; + graphId?: string; + rootHash?: string; + message?: string; } -export interface CreateOrgFunctionExecutionLogInput { +export interface AddEdgeAndSaveInput { clientMutationId?: string; - orgFunctionExecutionLog: { - invocationId?: string; - taskIdentifier?: string; - logLevel?: string; - message: string; - metadata?: Record; - actorId?: string; - }; + graphId?: string; + srcNode?: string; + srcPort?: string; + dstNode?: string; + dstPort?: string; + message?: string; } -export interface OrgFunctionExecutionLogPatch { - invocationId?: string | null; - taskIdentifier?: string | null; - logLevel?: string | null; - message?: string | null; - metadata?: Record | null; - actorId?: string | null; +export interface AddNodeAndSaveInput { + clientMutationId?: string; + graphId?: string; + nodeName?: string; + nodeType?: string; + props?: Record; + meta?: Record; + message?: string; } -export interface UpdateOrgFunctionExecutionLogInput { +export interface ImportGraphJsonInput { clientMutationId?: string; - id: string; - orgFunctionExecutionLogPatch: OrgFunctionExecutionLogPatch; + scopeId?: string; + name?: string; + graphJson?: Record; + context?: string; + description?: string; + createdBy?: string; + definitionsCommitId?: string; } -export interface DeleteOrgFunctionExecutionLogInput { +export interface AddEdgeInput { clientMutationId?: string; - id: string; + scopeId?: string; + rootHash?: string; + srcNode?: string; + srcPort?: string; + dstNode?: string; + dstPort?: string; + context?: string; + graphName?: string; } -export interface CreateResourceEventInput { +export interface AddNodeInput { clientMutationId?: string; - resourceEvent: { - resourceId: string; - eventType: string; - actorId?: string; - message?: string; - metadata?: Record; - databaseId: string; - }; -} -export interface ResourceEventPatch { - resourceId?: string | null; - eventType?: string | null; - actorId?: string | null; - message?: string | null; - metadata?: Record | null; - databaseId?: string | null; + scopeId?: string; + rootHash?: string; + nodeName?: string; + nodeType?: string; + context?: string; + graphName?: string; + props?: Record; + meta?: Record; } -export interface UpdateResourceEventInput { +export interface InfraInsertNodeAtPathInput { clientMutationId?: string; - id: string; - resourceEventPatch: ResourceEventPatch; + sId?: string; + root?: string; + path?: string[]; + data?: Record; + kids?: string[]; + ktree?: string[]; } -export interface DeleteResourceEventInput { +export interface InsertNodeAtPathInput { clientMutationId?: string; - id: string; + sId?: string; + root?: string; + path?: string[]; + data?: Record; + kids?: string[]; + ktree?: string[]; } -export interface CreateFunctionGraphExecutionOutputInput { +export interface StartExecutionInput { clientMutationId?: string; - functionGraphExecutionOutput: { - databaseId: string; - hash: Base64EncodedBinary; - data: Record; - }; + graphId?: string; + inputPayload?: Record; + outputNode?: string; + outputPort?: string; + maxTicks?: number; + maxPendingJobs?: number; + timeoutInterval?: IntervalInput; + parentExecutionId?: string; + parentNodeName?: string; } -export interface FunctionGraphExecutionOutputPatch { - databaseId?: string | null; - hash?: Base64EncodedBinary | null; - data?: Record | 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 UpdateFunctionGraphExecutionOutputInput { - clientMutationId?: string; - id: string; - functionGraphExecutionOutputPatch: FunctionGraphExecutionOutputPatch; +/** 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 at least one related entity matches. */ + some?: PlatformResourceStatusCheckFilter; + /** Filters to entities where every related entity matches. */ + every?: PlatformResourceStatusCheckFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformResourceStatusCheckFilter; } -export interface DeleteFunctionGraphExecutionOutputInput { - clientMutationId?: string; - id: string; +/** A filter to be used against Interval fields. All fields are combined with a logical ‘and.’ */ +export interface IntervalFilter { + /** Is null (if `true` is specified) or is not null (if `false` is specified). */ + isNull?: boolean; + /** Equal to the specified value. */ + equalTo?: IntervalInput; + /** Not equal to the specified value. */ + notEqualTo?: IntervalInput; + /** Not equal to the specified value, treating null like an ordinary value. */ + distinctFrom?: IntervalInput; + /** Equal to the specified value, treating null like an ordinary value. */ + notDistinctFrom?: IntervalInput; + /** Included in the specified list. */ + in?: IntervalInput[]; + /** Not included in the specified list. */ + notIn?: IntervalInput[]; + /** Less than the specified value. */ + lessThan?: IntervalInput; + /** Less than or equal to the specified value. */ + lessThanOrEqualTo?: IntervalInput; + /** Greater than the specified value. */ + greaterThan?: IntervalInput; + /** Greater than or equal to the specified value. */ + greaterThanOrEqualTo?: IntervalInput; } -export interface CreateFunctionGraphCommitInput { - clientMutationId?: string; - functionGraphCommit: { - message?: string; - databaseId: string; - storeId: string; - parentIds?: string[]; - authorId?: string; - committerId?: string; - treeId?: string; - date?: 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 at least one related entity matches. */ + some?: ResourceStatusCheckFilter; + /** Filters to entities where every related entity matches. */ + every?: ResourceStatusCheckFilter; + /** Filters to entities where no related entity matches. */ + none?: ResourceStatusCheckFilter; } -export interface FunctionGraphCommitPatch { - message?: string | null; - databaseId?: string | null; - storeId?: string | null; - parentIds?: string[] | null; - authorId?: string | null; - committerId?: string | null; - treeId?: string | null; - date?: string | null; +/** A filter to be used against Base64EncodedBinary fields. All fields are combined with a logical ‘and.’ */ +export interface Base64EncodedBinaryFilter { + /** Is null (if `true` is specified) or is not null (if `false` is specified). */ + isNull?: boolean; + /** Equal to the specified value. */ + equalTo?: Base64EncodedBinary; + /** Not equal to the specified value. */ + notEqualTo?: Base64EncodedBinary; + /** Not equal to the specified value, treating null like an ordinary value. */ + distinctFrom?: Base64EncodedBinary; + /** Equal to the specified value, treating null like an ordinary value. */ + notDistinctFrom?: Base64EncodedBinary; + /** Included in the specified list. */ + in?: Base64EncodedBinary[]; + /** Not included in the specified list. */ + notIn?: Base64EncodedBinary[]; } -export interface UpdateFunctionGraphCommitInput { - clientMutationId?: string; - id: string; - functionGraphCommitPatch: FunctionGraphCommitPatch; +/** 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 at least one related entity matches. */ + some?: PlatformFunctionDeploymentFilter; + /** Filters to entities where every related entity matches. */ + every?: PlatformFunctionDeploymentFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformFunctionDeploymentFilter; } -export interface DeleteFunctionGraphCommitInput { - clientMutationId?: string; - id: string; +/** 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 at least one related entity matches. */ + some?: PlatformResourceFilter; + /** Filters to entities where every related entity matches. */ + every?: PlatformResourceFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformResourceFilter; } -export interface CreateSecretDefinitionInput { - clientMutationId?: string; - secretDefinition: { - name: string; - description?: string; - isBuiltIn?: boolean; - labels?: Record; - annotations?: Record; - databaseId: 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 at least one related entity matches. */ + some?: PlatformResourceDefinitionFilter; + /** Filters to entities where every related entity matches. */ + every?: PlatformResourceDefinitionFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformResourceDefinitionFilter; } -export interface SecretDefinitionPatch { - name?: string | null; - description?: string | null; - isBuiltIn?: boolean | null; - labels?: Record | null; - annotations?: Record | null; - databaseId?: 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 at least one related entity matches. */ + some?: FunctionDeploymentFilter; + /** Filters to entities where every related entity matches. */ + every?: FunctionDeploymentFilter; + /** Filters to entities where no related entity matches. */ + none?: FunctionDeploymentFilter; } -export interface UpdateSecretDefinitionInput { - clientMutationId?: string; - id: string; - secretDefinitionPatch: SecretDefinitionPatch; +/** 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 at least one related entity matches. */ + some?: ResourceFilter; + /** Filters to entities where every related entity matches. */ + every?: ResourceFilter; + /** Filters to entities where no related entity matches. */ + none?: ResourceFilter; } -export interface DeleteSecretDefinitionInput { - 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 at least one related entity matches. */ + some?: ResourceDefinitionFilter; + /** Filters to entities where every related entity matches. */ + every?: ResourceDefinitionFilter; + /** Filters to entities where no related entity matches. */ + none?: ResourceDefinitionFilter; } -export interface CreateFunctionExecutionLogInput { - clientMutationId?: string; - functionExecutionLog: { - invocationId?: string; - taskIdentifier?: string; - logLevel?: string; - message: string; - metadata?: Record; - actorId?: string; - databaseId: string; - }; +/** A filter to be used against ConstructiveInternalTypeImage fields. All fields are combined with a logical ‘and.’ */ +export interface ConstructiveInternalTypeImageFilter { + /** Is null (if `true` is specified) or is not null (if `false` is specified). */ + isNull?: boolean; + /** Equal to the specified value. */ + equalTo?: ConstructiveInternalTypeImage; + /** Not equal to the specified value. */ + notEqualTo?: ConstructiveInternalTypeImage; + /** Not equal to the specified value, treating null like an ordinary value. */ + distinctFrom?: ConstructiveInternalTypeImage; + /** Equal to the specified value, treating null like an ordinary value. */ + notDistinctFrom?: ConstructiveInternalTypeImage; + /** Included in the specified list. */ + in?: ConstructiveInternalTypeImage[]; + /** Not included in the specified list. */ + notIn?: ConstructiveInternalTypeImage[]; + /** Less than the specified value. */ + lessThan?: ConstructiveInternalTypeImage; + /** Less than or equal to the specified value. */ + lessThanOrEqualTo?: ConstructiveInternalTypeImage; + /** Greater than the specified value. */ + greaterThan?: ConstructiveInternalTypeImage; + /** Greater than or equal to the specified value. */ + greaterThanOrEqualTo?: ConstructiveInternalTypeImage; + /** Contains the specified JSON. */ + contains?: ConstructiveInternalTypeImage; + /** Contains the specified key. */ + containsKey?: string; + /** Contains all of the specified keys. */ + containsAllKeys?: string[]; + /** Contains any of the specified keys. */ + containsAnyKeys?: string[]; + /** Contained by the specified JSON. */ + containedBy?: ConstructiveInternalTypeImage; +} +/** A filter to be used against many `PlatformFunctionApiBinding` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformFunctionDefinitionToManyPlatformFunctionApiBindingFilter { + /** Filters to entities where at least one related entity matches. */ + some?: PlatformFunctionApiBindingFilter; + /** Filters to entities where every related entity matches. */ + every?: PlatformFunctionApiBindingFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformFunctionApiBindingFilter; +} +/** 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 at least one related entity matches. */ + some?: FunctionApiBindingFilter; + /** Filters to entities where every related entity matches. */ + every?: FunctionApiBindingFilter; + /** Filters to entities where no related entity matches. */ + none?: FunctionApiBindingFilter; +} +/** An input for mutations affecting `InfraRef` */ +export interface InfraRefInput { + /** 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; + /** Commit this ref points to */ + commitId?: string; +} +/** An input for mutations affecting `InfraStore` */ +export interface InfraStoreInput { + /** Unique store identifier */ + id?: string; + /** Human-readable store name */ + name: string; + /** Opaque store partition key for the global tier */ + scopeId: string; + /** Current root object hash of this store */ + hash?: string; + /** Timestamp of store creation */ + createdAt?: string; } -export interface FunctionExecutionLogPatch { - invocationId?: string | null; - taskIdentifier?: string | null; - logLevel?: string | null; - message?: string | null; - metadata?: Record | null; - actorId?: string | null; - databaseId?: string | null; +/** An input for mutations affecting `FunctionApiBinding` */ +export interface FunctionApiBindingInput { + id?: string; + /** Function definition this binding belongs to */ + functionDefinitionId: string; + /** API endpoint this function is bound to */ + apiId: string; + /** Binding alias (e.g. default, staging, production) */ + alias?: string; + /** Per-binding configuration (overrides, routing rules, etc.) */ + config?: Record; } -export interface UpdateFunctionExecutionLogInput { - clientMutationId?: string; - id: string; - functionExecutionLogPatch: FunctionExecutionLogPatch; +/** An input for mutations affecting `FunctionGraphRef` */ +export interface FunctionGraphRefInput { + /** 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; + /** Commit this ref points to */ + commitId?: string; } -export interface DeleteFunctionExecutionLogInput { - clientMutationId?: string; - id: string; +/** An input for mutations affecting `FunctionGraphStore` */ +export interface FunctionGraphStoreInput { + /** Unique store identifier */ + id?: string; + /** Human-readable store name */ + name: string; + /** Opaque store partition key for the global tier */ + scopeId: string; + /** Current root object hash of this store */ + hash?: string; + /** Timestamp of store creation */ + createdAt?: string; } -export interface CreateFunctionGraphInput { - clientMutationId?: string; - functionGraph: { - databaseId: string; - storeId: string; - context?: string; - name?: string; - description?: string; - definitionsCommitId: string; - isValid?: boolean; - validationErrors?: Record; - createdBy?: string; - }; +/** An input for mutations affecting `PlatformFunctionApiBinding` */ +export interface PlatformFunctionApiBindingInput { + id?: string; + /** Function definition this binding belongs to */ + functionDefinitionId: string; + /** API endpoint this function is bound to */ + apiId: string; + /** Binding alias (e.g. default, staging, production) */ + alias?: string; + /** Per-binding configuration (overrides, routing rules, etc.) */ + config?: Record; } -export interface FunctionGraphPatch { - databaseId?: string | null; - storeId?: string | null; - context?: string | null; - name?: string | null; - description?: string | null; - definitionsCommitId?: string | null; - isValid?: boolean | null; - validationErrors?: Record | null; - createdBy?: string | null; +/** An input for mutations affecting `PlatformResourceStatusCheck` */ +export interface PlatformResourceStatusCheckInput { + /** Unique status check identifier */ + id?: string; + /** Resource to check */ + resourceId: string; + /** User who requested the check (NULL for system/scheduled) */ + requestedBy?: string; + /** When the check was requested */ + requestedAt?: string; + /** When the check completed (NULL while pending/running) */ + completedAt?: string; + /** Check lifecycle: pending, running, completed, failed */ + status?: string; + /** Diagnostic snapshot: k8s_status, conditions, pod_logs_tail, events */ + result?: Record; } -export interface UpdateFunctionGraphInput { - clientMutationId?: string; - id: string; - functionGraphPatch: FunctionGraphPatch; +/** An input for mutations affecting `PlatformFunctionDeployment` */ +export interface PlatformFunctionDeploymentInput { + id?: string; + createdAt?: string; + updatedAt?: string; + /** Target namespace for this deployment (maps to a K8s namespace) */ + namespaceId: string; + /** Deployment lifecycle status: pending, provisioning, active, failed, scaled_to_zero, deactivated */ + status?: string; + /** Knative service URL (http://{service-name}.{namespace}.svc.cluster.local) — populated after provisioning */ + serviceUrl?: string; + /** 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; + /** Deployment revision number (incremented on each redeployment) */ + revision?: number; + /** 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; + /** Handler directory name (e.g. email, document) — used as FN_HANDLER_NAME in combined-image mode to select the entry point */ + handlerName?: string; + /** Max concurrent requests per pod (NULL = inherit from definition) */ + concurrency?: number; + /** Minimum replica count (NULL = inherit from definition or Knative default) */ + scaleMin?: number; + /** Maximum replica count (NULL = inherit from definition or Knative default) */ + scaleMax?: number; + /** Request timeout override in seconds (NULL = inherit from definition) */ + timeoutSeconds?: number; + /** K8s resource spec override: {"requests":{"cpu":"100m","memory":"128Mi"},"limits":{...}} */ + resources?: Record; + /** Most recent provisioning or runtime error message */ + lastError?: string; + /** Timestamp of the most recent error */ + lastErrorAt?: string; + /** Cumulative error count for this deployment */ + errorCount?: number; + /** Key/value pairs for selecting and filtering deployments */ + labels?: Record; + /** Freeform metadata for tooling and operational notes */ + annotations?: Record; } -export interface DeleteFunctionGraphInput { - clientMutationId?: string; - id: string; +/** An input for mutations affecting `PlatformResource` */ +export interface PlatformResourceInput { + id?: string; + createdAt?: string; + updatedAt?: string; + createdBy?: string; + updatedBy?: string; + /** Namespace this resource belongs to (security boundary, maps to K8s namespace) */ + namespaceId: string; + /** Resource kind: Deployment, StatefulSet, Service, Ingress, Certificate */ + kind: string; + /** Human-readable resource name */ + name: 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, failed, draining, deleting */ + status?: string; + /** Observed state from K8s — populated by handlers after reconciliation (service_url, clone_url, replicas, etc.) */ + statusObserved?: Record; + /** Most recent provisioning or runtime error message */ + lastError?: string; + /** Cumulative error count for this resource */ + errorCount?: number; + /** Key/value pairs for selecting and filtering resources */ + labels?: Record; + /** Freeform metadata for tooling and operational notes */ + annotations?: Record; + /** 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[]; + /** 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[]; + /** 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[]; + /** Definition template this resource was created from (NULL for standalone resources) */ + resourceDefinitionId?: string; +} +/** An input for mutations affecting `ResourceRequirement` */ +export interface ResourceRequirementInput { + name?: string; + required?: boolean; + provider?: string; } -export interface CreateFunctionGraphExecutionNodeStateInput { - clientMutationId?: string; - functionGraphExecutionNodeState: { - executionId: string; - databaseId: string; - nodeName: string; - nodePath?: string[]; - status?: string; - startedAt?: string; - completedAt?: string; - errorCode?: string; - errorMessage?: string; - outputId?: string; - }; +/** An input for mutations affecting `PlatformResourceDefinition` */ +export interface PlatformResourceDefinitionInput { + id?: string; + createdAt?: string; + updatedAt?: string; + createdBy?: string; + updatedBy?: string; + /** Namespace this definition belongs to (security boundary, maps to K8s namespace) */ + namespaceId: string; + /** Resource kind: Deployment, StatefulSet, Service, Ingress, Certificate, or custom kinds */ + kind: string; + /** Human-readable definition name */ + name: string; + /** URL-safe identifier, unique within (namespace_id, kind) */ + slug: string; + /** What this resource definition provides */ + description?: string; + /** Template spec for creating resource instances of this kind */ + defaultSpec?: Record; + /** Embedded secret requirements: array of (name, required, provider) tuples. provider is the integration slug this requirement belongs to, if any. */ + requiredSecrets?: ResourceRequirementInput[]; + /** Embedded config requirements: array of (name, required, provider) tuples. provider is the integration slug this requirement belongs to, if any. */ + requiredConfigs?: ResourceRequirementInput[]; + /** 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[]; + /** Key/value pairs for selecting and filtering definitions */ + labels?: Record; + /** Freeform metadata for tooling and operational notes */ + annotations?: Record; + /** Min age before DELETE of a resource of this kind requires step-up; NULL inherits the 6h default */ + stepUpMinAge?: IntervalInput; } -export interface FunctionGraphExecutionNodeStatePatch { - executionId?: string | null; - databaseId?: string | null; - nodeName?: string | null; - nodePath?: string[] | null; - status?: string | null; - startedAt?: string | null; - completedAt?: string | null; - errorCode?: string | null; - errorMessage?: string | null; - outputId?: string | null; +/** An interval of time that has passed where the smallest distinct unit is a second. */ +export interface IntervalInput { + /** + * A quantity of seconds. This is the only non-integer field, as all the other + * fields will dump their overflow into a smaller unit of time. Intervals don’t + * have a smaller unit than seconds. + */ + seconds?: number; + /** A quantity of minutes. */ + minutes?: number; + /** A quantity of hours. */ + hours?: number; + /** A quantity of days. */ + days?: number; + /** A quantity of months. */ + months?: number; + /** A quantity of years. */ + years?: number; } -export interface UpdateFunctionGraphExecutionNodeStateInput { - clientMutationId?: string; +/** An input for mutations affecting `InfraObject` */ +export interface InfraObjectInput { + /** Content-addressed UUID v5 — deterministic hash of (data, kids, ktree) */ id: string; - functionGraphExecutionNodeStatePatch: FunctionGraphExecutionNodeStatePatch; + /** Opaque store partition key for the global tier */ + scopeId: string; + /** Ordered array of child object IDs */ + kids?: string[]; + /** Ordered array of child path names (parallel to kids) */ + ktree?: string[]; + /** Payload data for this object node */ + data?: Record; + /** Timestamp of object creation */ + createdAt?: string; } -export interface DeleteFunctionGraphExecutionNodeStateInput { - clientMutationId?: string; +/** An input for mutations affecting `FunctionGraphObject` */ +export interface FunctionGraphObjectInput { + /** Content-addressed UUID v5 — deterministic hash of (data, kids, ktree) */ id: string; + /** Opaque store partition key for the global tier */ + scopeId: string; + /** Ordered array of child object IDs */ + kids?: string[]; + /** Ordered array of child path names (parallel to kids) */ + ktree?: string[]; + /** Payload data for this object node */ + data?: Record; + /** Timestamp of object creation */ + createdAt?: string; +} +/** An input for mutations affecting `PlatformFunctionDeploymentEvent` */ +export interface PlatformFunctionDeploymentEventInput { + /** Event timestamp (partition key) */ + createdAt?: string; + /** Unique event identifier */ + id?: string; + /** Deployment this event belongs to */ + deploymentId: string; + /** Event type: provisioned, scaled, failed, deactivated, redeployed, health_check */ + eventType: string; + /** User who triggered this event (NULL for system/automated) */ + actorId?: string; + /** Human-readable description of the event */ + message?: string; + /** Structured context (old/new values, error details, etc.) */ + metadata?: Record; } -export interface CreatePlatformNamespaceInput { - clientMutationId?: string; - platformNamespace: { - name: string; - namespaceName: string; - description?: string; - isActive?: boolean; - labels?: Record; - annotations?: Record; - databaseId: string; - sourceDatabaseId?: string; - sourceScope?: string; - isManaged?: boolean; - }; +/** An input for mutations affecting `PlatformResourceEvent` */ +export interface PlatformResourceEventInput { + /** Event timestamp (partition key) */ + createdAt?: string; + /** Unique event identifier */ + id?: string; + /** Resource this event belongs to */ + resourceId: string; + /** Event type: provisioned, provisioning, updated, failed, deprovisioned, health_check */ + eventType: string; + /** User who triggered this event (NULL for system/automated) */ + actorId?: string; + /** Human-readable description of the event */ + message?: string; + /** Structured context (old/new values, error details, etc.) */ + metadata?: Record; } -export interface PlatformNamespacePatch { - name?: string | null; - namespaceName?: string | null; - description?: string | null; - isActive?: boolean | null; - labels?: Record | null; - annotations?: Record | null; - databaseId?: string | null; - sourceDatabaseId?: string | null; - sourceScope?: string | null; - isManaged?: boolean | null; +/** An input for mutations affecting `ResourceStatusCheck` */ +export interface ResourceStatusCheckInput { + /** Unique status check identifier */ + id?: string; + /** Resource to check */ + resourceId: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + /** User who requested the check (NULL for system/scheduled) */ + requestedBy?: string; + /** When the check was requested */ + requestedAt?: string; + /** When the check completed (NULL while pending/running) */ + completedAt?: string; + /** Check lifecycle: pending, running, completed, failed */ + status?: string; + /** Diagnostic snapshot: k8s_status, conditions, pod_logs_tail, events */ + result?: Record; } -export interface UpdatePlatformNamespaceInput { - clientMutationId?: string; - id: string; - platformNamespacePatch: PlatformNamespacePatch; +/** An input for mutations affecting `FunctionDeployment` */ +export interface FunctionDeploymentInput { + id?: string; + createdAt?: string; + updatedAt?: string; + /** Target namespace for this deployment (maps to a K8s namespace) */ + namespaceId: string; + /** Deployment lifecycle status: pending, provisioning, active, failed, scaled_to_zero, deactivated */ + status?: string; + /** Knative service URL (http://{service-name}.{namespace}.svc.cluster.local) — populated after provisioning */ + serviceUrl?: string; + /** 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; + /** Deployment revision number (incremented on each redeployment) */ + revision?: number; + /** 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; + /** Handler directory name (e.g. email, document) — used as FN_HANDLER_NAME in combined-image mode to select the entry point */ + handlerName?: string; + /** Max concurrent requests per pod (NULL = inherit from definition) */ + concurrency?: number; + /** Minimum replica count (NULL = inherit from definition or Knative default) */ + scaleMin?: number; + /** Maximum replica count (NULL = inherit from definition or Knative default) */ + scaleMax?: number; + /** Request timeout override in seconds (NULL = inherit from definition) */ + timeoutSeconds?: number; + /** K8s resource spec override: {"requests":{"cpu":"100m","memory":"128Mi"},"limits":{...}} */ + resources?: Record; + /** Most recent provisioning or runtime error message */ + lastError?: string; + /** Timestamp of the most recent error */ + lastErrorAt?: string; + /** Cumulative error count for this deployment */ + errorCount?: number; + /** Key/value pairs for selecting and filtering deployments */ + labels?: Record; + /** Freeform metadata for tooling and operational notes */ + annotations?: Record; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; } -export interface DeletePlatformNamespaceInput { - clientMutationId?: string; - id: string; +/** An input for mutations affecting `Resource` */ +export interface ResourceInput { + id?: string; + createdAt?: string; + updatedAt?: string; + createdBy?: string; + updatedBy?: string; + /** Namespace this resource belongs to (security boundary, maps to K8s namespace) */ + namespaceId: string; + /** Resource kind: Deployment, StatefulSet, Service, Ingress, Certificate */ + kind: string; + /** Human-readable resource name */ + name: 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, failed, draining, deleting */ + status?: string; + /** Observed state from K8s — populated by handlers after reconciliation (service_url, clone_url, replicas, etc.) */ + statusObserved?: Record; + /** Most recent provisioning or runtime error message */ + lastError?: string; + /** Cumulative error count for this resource */ + errorCount?: number; + /** Key/value pairs for selecting and filtering resources */ + labels?: Record; + /** Freeform metadata for tooling and operational notes */ + annotations?: Record; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + /** 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[]; + /** 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[]; + /** 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[]; + /** Definition template this resource was created from (NULL for standalone resources) */ + resourceDefinitionId?: string; +} +/** An input for mutations affecting `ResourceDefinition` */ +export interface ResourceDefinitionInput { + id?: string; + createdAt?: string; + updatedAt?: string; + createdBy?: string; + updatedBy?: string; + /** Namespace this definition belongs to (security boundary, maps to K8s namespace) */ + namespaceId: string; + /** Resource kind: Deployment, StatefulSet, Service, Ingress, Certificate, or custom kinds */ + kind: string; + /** Human-readable definition name */ + name: string; + /** URL-safe identifier, unique within (namespace_id, kind) */ + slug: string; + /** What this resource definition provides */ + description?: string; + /** Template spec for creating resource instances of this kind */ + defaultSpec?: Record; + /** Embedded secret requirements: array of (name, required, provider) tuples. provider is the integration slug this requirement belongs to, if any. */ + requiredSecrets?: ResourceRequirementInput[]; + /** Embedded config requirements: array of (name, required, provider) tuples. provider is the integration slug this requirement belongs to, if any. */ + requiredConfigs?: ResourceRequirementInput[]; + /** 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[]; + /** Key/value pairs for selecting and filtering definitions */ + labels?: Record; + /** Freeform metadata for tooling and operational notes */ + annotations?: Record; + /** Min age before DELETE of a resource of this kind requires step-up; NULL inherits the 6h default */ + stepUpMinAge?: IntervalInput; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; } -export interface CreateOrgFunctionInvocationInput { - clientMutationId?: string; - orgFunctionInvocation: { - actorId?: string; - taskIdentifier: string; - payload?: Record; - status?: string; - result?: Record; - error?: string; - durationMs?: number; - jobId?: string; - startedAt?: string; - completedAt?: string; - parentInvocationId?: string; - graphExecutionId?: string; - }; +/** An input for mutations affecting `FunctionDeploymentEvent` */ +export interface FunctionDeploymentEventInput { + /** Event timestamp (partition key) */ + createdAt?: string; + /** Unique event identifier */ + id?: string; + /** Deployment this event belongs to */ + deploymentId: string; + /** Event type: provisioned, scaled, failed, deactivated, redeployed, health_check */ + eventType: string; + /** User who triggered this event (NULL for system/automated) */ + actorId?: string; + /** Human-readable description of the event */ + message?: string; + /** Structured context (old/new values, error details, etc.) */ + metadata?: Record; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; } -export interface OrgFunctionInvocationPatch { - actorId?: string | null; - taskIdentifier?: string | null; - payload?: Record | null; - status?: string | null; - result?: Record | null; - error?: string | null; - durationMs?: number | null; - jobId?: string | null; - startedAt?: string | null; - completedAt?: string | null; - parentInvocationId?: string | null; - graphExecutionId?: string | null; +/** An input for mutations affecting `PlatformFunctionExecutionLog` */ +export interface PlatformFunctionExecutionLogInput { + /** 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; + /** Function routing key (NULL for generic job logs) */ + taskIdentifier?: string; + /** Log severity: debug, info, warn, error */ + logLevel?: string; + /** Log message text */ + message: string; + /** Structured context (labels, trace data, extra fields) */ + metadata?: Record; + /** User who triggered the execution (NULL for system/cron) */ + actorId?: string; } -export interface UpdateOrgFunctionInvocationInput { - clientMutationId?: string; - id: string; - orgFunctionInvocationPatch: OrgFunctionInvocationPatch; +/** An input for mutations affecting `ResourceEvent` */ +export interface ResourceEventInput { + /** Event timestamp (partition key) */ + createdAt?: string; + /** Unique event identifier */ + id?: string; + /** Resource this event belongs to */ + resourceId: string; + /** Event type: provisioned, provisioning, updated, failed, deprovisioned, health_check */ + eventType: string; + /** User who triggered this event (NULL for system/automated) */ + actorId?: string; + /** Human-readable description of the event */ + message?: string; + /** Structured context (old/new values, error details, etc.) */ + metadata?: Record; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; } -export interface DeleteOrgFunctionInvocationInput { - clientMutationId?: string; - id: string; +/** An input for mutations affecting `FunctionGraphExecutionOutput` */ +export interface FunctionGraphExecutionOutputInput { + /** Timestamp of output creation */ + createdAt?: string; + /** Unique execution output identifier */ + id?: string; + /** Opaque store partition key for the global tier */ + scopeId: string; + /** SHA-256 hash of the data JSONB — content-addressed deduplication */ + hash: Base64EncodedBinary; + /** The actual output payload from a completed node */ + data: Record; } -export interface CreateFunctionInvocationInput { - clientMutationId?: string; - functionInvocation: { - actorId?: string; - databaseId: string; - taskIdentifier: string; - payload?: Record; - status?: string; - result?: Record; - error?: string; - durationMs?: number; - jobId?: string; - startedAt?: string; - completedAt?: string; - parentInvocationId?: string; - graphExecutionId?: string; - }; +/** An input for mutations affecting `InfraCommit` */ +export interface InfraCommitInput { + /** Unique commit identifier */ + id?: string; + /** Optional commit message */ + message?: string; + /** Opaque store partition key for the global tier */ + scopeId: string; + /** Store this commit belongs to */ + storeId: string; + /** Parent commit IDs (supports merge commits) */ + parentIds?: string[]; + /** User who authored the changes */ + authorId?: string; + /** User who committed (may differ from author) */ + committerId?: string; + /** Root object ID of the tree snapshot at this commit */ + treeId?: string; + /** Commit timestamp */ + date?: string; } -export interface FunctionInvocationPatch { - actorId?: string | null; - databaseId?: string | null; - taskIdentifier?: string | null; - payload?: Record | null; - status?: string | null; - result?: Record | null; - error?: string | null; - durationMs?: number | null; - jobId?: string | null; - startedAt?: string | null; - completedAt?: string | null; - parentInvocationId?: string | null; - graphExecutionId?: string | null; +/** An input for mutations affecting `FunctionGraphCommit` */ +export interface FunctionGraphCommitInput { + /** Unique commit identifier */ + id?: string; + /** Optional commit message */ + message?: string; + /** Opaque store partition key for the global tier */ + scopeId: string; + /** Store this commit belongs to */ + storeId: string; + /** Parent commit IDs (supports merge commits) */ + parentIds?: string[]; + /** User who authored the changes */ + authorId?: string; + /** User who committed (may differ from author) */ + committerId?: string; + /** Root object ID of the tree snapshot at this commit */ + treeId?: string; + /** Commit timestamp */ + date?: string; } -export interface UpdateFunctionInvocationInput { - clientMutationId?: string; - id: string; - functionInvocationPatch: FunctionInvocationPatch; +/** An input for mutations affecting `FunctionExecutionLog` */ +export interface FunctionExecutionLogInput { + /** 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; + /** Function routing key (NULL for generic job logs) */ + taskIdentifier?: string; + /** Log severity: debug, info, warn, error */ + logLevel?: string; + /** Log message text */ + message: string; + /** Structured context (labels, trace data, extra fields) */ + metadata?: Record; + /** User who triggered the execution (NULL for system/cron) */ + actorId?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; } -export interface DeleteFunctionInvocationInput { - clientMutationId?: string; - id: string; +/** An input for mutations affecting `DbPreset` */ +export interface DbPresetInput { + /** Unique preset identifier */ + id?: string; + /** Infra Merkle store holding this preset's history (stamped by the versioned trigger) */ + storeId?: string; + /** Preset slug (unique per scope); the preset's path in the infra tree is [db_preset, slug] */ + slug: string; + /** Preset definition (modules + options) — the readily-cached head; history lives in the infra store */ + definition: Record; + /** Infra store commit for the current definition (stamped by the versioned trigger on every write) */ + commitId?: 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; + /** Human-readable preset name */ + label?: string; + /** Human-readable description of the preset */ + description?: string; + /** Whether this preset is selectable for new databases */ + active?: boolean; + /** Timestamp of preset creation */ + createdAt?: string; + /** Timestamp of last modification */ + updatedAt?: string; } -export interface CreatePlatformNamespaceEventInput { - clientMutationId?: string; - platformNamespaceEvent: { - namespaceId: string; - eventType: string; - actorId?: string; - message?: string; - metadata?: Record; - cpuMillicores?: number; - memoryBytes?: string; - storageBytes?: string; - networkIngressBytes?: string; - networkEgressBytes?: string; - podCount?: number; - metrics?: Record; - databaseId: string; - }; +/** An input for mutations affecting `PlatformNamespace` */ +export interface PlatformNamespaceInput { + id?: string; + createdAt?: string; + updatedAt?: string; + /** Human-readable namespace name (e.g. default, production, oauth) */ + name: string; + /** Globally unique computed namespace identifier via inflection.underscore */ + namespaceName: string; + /** Optional human-readable description of this namespace */ + description?: string; + /** Whether this namespace is active (soft-disable for filtering) */ + isActive?: boolean; + /** Namespace provisioning lifecycle status: pending, provisioning, active, failed */ + status?: string; + /** Most recent provisioning or reconcile error message */ + lastError?: string; + /** Key/value pairs for selecting and filtering namespaces */ + labels?: Record; + /** Freeform metadata for tooling and operational notes */ + annotations?: Record; + /** true = provisioned by the platform via jobs, false = unmanaged/platform-native (bootstrapped externally) */ + isManaged?: boolean; } -export interface PlatformNamespaceEventPatch { - namespaceId?: string | null; - eventType?: string | null; - actorId?: string | null; - message?: string | null; - metadata?: Record | null; - cpuMillicores?: number | null; - memoryBytes?: string | null; - storageBytes?: string | null; - networkIngressBytes?: string | null; - networkEgressBytes?: string | null; - podCount?: number | null; - metrics?: Record | null; - databaseId?: string | null; +/** An input for mutations affecting `FunctionGraphExecutionNodeState` */ +export interface FunctionGraphExecutionNodeStateInput { + /** Timestamp of node state creation (partition key) */ + createdAt?: string; + /** Unique node state identifier */ + id?: string; + /** FK to the parent graph execution */ + executionId: string; + /** Opaque store partition key for the global tier */ + scopeId: 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[]; + /** Node lifecycle: pending → queued → running → completed/failed */ + status?: string; + /** Timestamp when the node began executing */ + startedAt?: string; + /** Timestamp when the node finished (success or failure) */ + completedAt?: string; + /** Machine-readable error code when status = failed */ + errorCode?: string; + /** Human-readable error description when status = failed */ + errorMessage?: string; + /** FK to execution_outputs — content-addressed output blob for this node */ + outputId?: string; } -export interface UpdatePlatformNamespaceEventInput { - clientMutationId?: string; - id: string; - platformNamespaceEventPatch: PlatformNamespaceEventPatch; +/** An input for mutations affecting `Namespace` */ +export interface NamespaceInput { + id?: string; + createdAt?: string; + updatedAt?: string; + /** Human-readable namespace name (e.g. default, production, oauth) */ + name: string; + /** Globally unique computed namespace identifier via inflection.underscore */ + namespaceName: string; + /** Optional human-readable description of this namespace */ + description?: string; + /** Whether this namespace is active (soft-disable for filtering) */ + isActive?: boolean; + /** Namespace provisioning lifecycle status: pending, provisioning, active, failed */ + status?: string; + /** Most recent provisioning or reconcile error message */ + lastError?: string; + /** Key/value pairs for selecting and filtering namespaces */ + labels?: Record; + /** Freeform metadata for tooling and operational notes */ + annotations?: Record; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + /** true = provisioned by the platform via jobs, false = unmanaged/platform-native (bootstrapped externally) */ + isManaged?: boolean; } -export interface DeletePlatformNamespaceEventInput { - clientMutationId?: string; - id: string; +/** An input for mutations affecting `PlatformFunctionInvocation` */ +export interface PlatformFunctionInvocationInput { + /** Invocation creation timestamp (partition key) */ + createdAt?: string; + /** Unique invocation identifier */ + id?: string; + /** Who triggered the invocation (NULL for system/cron) */ + actorId?: string; + /** Function routing slug (scope:name). Links to function_definitions.task_identifier by convention — no FK. */ + taskIdentifier: string; + /** Function input payload */ + payload?: Record; + /** Lifecycle: pending → running → completed/failed/cancelled */ + status?: string; + /** Function return value (success) or structured error (failure) */ + result?: Record; + /** Error message when status is failed */ + error?: string; + /** Wall-clock execution time in milliseconds */ + durationMs?: number; + /** FK to app_jobs.jobs — the underlying transport */ + jobId?: string; + /** When execution started */ + startedAt?: string; + /** When execution completed */ + completedAt?: string; + /** Parent invocation when this is a child node of a flow graph execution */ + parentInvocationId?: string; + /** Groups all node invocations from a single flow graph execution */ + graphExecutionId?: string; } -export interface CreateFunctionGraphExecutionInput { - clientMutationId?: string; - functionGraphExecution: { - startedAt?: string; - graphId: string; - invocationId?: string; - databaseId: string; - outputNode: string; - outputPort?: string; - status?: string; - inputPayload?: Record; - outputPayload?: Record; - nodeOutputs?: Record; - executionPlan?: Record; - currentWave?: number; - parentExecutionId?: string; - parentNodeName?: string; - definitionsCommitId?: string; - tickCount?: number; - completedAt?: string; - maxTicks?: number; - maxPendingJobs?: number; - timeoutAt?: string; - errorCode?: string; - errorMessage?: string; - }; +/** An input for mutations affecting `FunctionInvocation` */ +export interface FunctionInvocationInput { + /** Invocation creation timestamp (partition key) */ + createdAt?: string; + /** Unique invocation identifier */ + id?: string; + /** Who triggered the invocation (NULL for system/cron) */ + actorId?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + /** Function routing slug (scope:name). Links to function_definitions.task_identifier by convention — no FK. */ + taskIdentifier: string; + /** Function input payload */ + payload?: Record; + /** Lifecycle: pending → running → completed/failed/cancelled */ + status?: string; + /** Function return value (success) or structured error (failure) */ + result?: Record; + /** Error message when status is failed */ + error?: string; + /** Wall-clock execution time in milliseconds */ + durationMs?: number; + /** FK to app_jobs.jobs — the underlying transport */ + jobId?: string; + /** When execution started */ + startedAt?: string; + /** When execution completed */ + completedAt?: string; + /** Parent invocation when this is a child node of a flow graph execution */ + parentInvocationId?: string; + /** Groups all node invocations from a single flow graph execution */ + graphExecutionId?: string; +} +/** An input for mutations affecting `PlatformNamespaceEvent` */ +export interface PlatformNamespaceEventInput { + /** Event timestamp (partition key) */ + createdAt?: string; + /** Unique event identifier */ + id?: string; + /** Namespace this event belongs to */ + namespaceId: string; + /** Event type: created, activated, deactivated, labels_updated, annotations_updated, renamed */ + eventType: string; + /** User who triggered this event (NULL for system/automated) */ + actorId?: string; + /** Human-readable description of the event */ + message?: string; + /** Structured context (old/new values, labels diff, etc.) */ + metadata?: Record; + /** CPU usage in millicores at time of event */ + cpuMillicores?: number; + /** Memory usage in bytes at time of event */ + memoryBytes?: string; + /** Storage usage in bytes at time of event */ + storageBytes?: string; + /** Network ingress in bytes during event window */ + networkIngressBytes?: string; + /** Network egress in bytes during event window */ + networkEgressBytes?: string; + /** Number of active pods in the namespace at time of event */ + podCount?: number; + /** Additional resource metrics (gpu, replicas, quotas, etc.) */ + metrics?: Record; } -export interface FunctionGraphExecutionPatch { - startedAt?: string | null; - graphId?: string | null; - invocationId?: string | null; - databaseId?: string | null; - outputNode?: string | null; - outputPort?: string | null; - status?: string | null; - inputPayload?: Record | null; - outputPayload?: Record | null; - nodeOutputs?: Record | null; - executionPlan?: Record | null; - currentWave?: number | null; - parentExecutionId?: string | null; - parentNodeName?: string | null; - definitionsCommitId?: string | null; - tickCount?: number | null; - completedAt?: string | null; - maxTicks?: number | null; - maxPendingJobs?: number | null; - timeoutAt?: string | null; - errorCode?: string | null; - errorMessage?: string | null; +/** An input for mutations affecting `IntegrationProvider` */ +export interface IntegrationProviderInput { + id?: string; + createdAt?: string; + updatedAt?: string; + /** Stable URL-safe identifier for the provider. Other tables match by this string, not by FK. */ + slug: string; + /** Human-readable brand name (e.g. 'Mailgun', 'PostgreSQL') */ + name: string; + /** Short description of what this integration provides and when to use it */ + description?: string; + /** Browser category (e.g. email, database, storage, ai, analytics) */ + category?: string; + /** Icon identifier for the UI (e.g. mail, database, cloud) */ + icon?: string; + /** Provider logo as an image domain value (url, id, key, bucket, provider) */ + logo?: ConstructiveInternalTypeImage; + /** Brand metadata: colors, fonts, and other provider-specific styling. Not a foreign key. */ + brand?: Record; + /** 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[]; + /** 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[]; +} +/** An input for mutations affecting `NamespaceEvent` */ +export interface NamespaceEventInput { + /** Event timestamp (partition key) */ + createdAt?: string; + /** Unique event identifier */ + id?: string; + /** Namespace this event belongs to */ + namespaceId: string; + /** Event type: created, activated, deactivated, labels_updated, annotations_updated, renamed */ + eventType: string; + /** User who triggered this event (NULL for system/automated) */ + actorId?: string; + /** Human-readable description of the event */ + message?: string; + /** Structured context (old/new values, labels diff, etc.) */ + metadata?: Record; + /** CPU usage in millicores at time of event */ + cpuMillicores?: number; + /** Memory usage in bytes at time of event */ + memoryBytes?: string; + /** Storage usage in bytes at time of event */ + storageBytes?: string; + /** Network ingress in bytes during event window */ + networkIngressBytes?: string; + /** Network egress in bytes during event window */ + networkEgressBytes?: string; + /** Number of active pods in the namespace at time of event */ + podCount?: number; + /** Additional resource metrics (gpu, replicas, quotas, etc.) */ + metrics?: Record; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; } -export interface UpdateFunctionGraphExecutionInput { - clientMutationId?: string; - id: string; - functionGraphExecutionPatch: FunctionGraphExecutionPatch; +/** An input for mutations affecting `FunctionGraphExecution` */ +export interface FunctionGraphExecutionInput { + /** Execution start timestamp */ + startedAt?: string; + /** Unique execution identifier */ + id?: string; + /** FK to the graph definition being executed */ + graphId: string; + /** Parent function_invocations row (for metering) */ + invocationId?: string; + /** Opaque store partition key for the global tier */ + scopeId: string; + /** Target output boundary node name to resolve; NULL derives completion from the graph's graphOutput nodes */ + outputNode?: string; + /** Target output port name (default: value) */ + outputPort?: string; + /** Lifecycle: pending → running → completed/failed/cancelled */ + status?: string; + /** Initial inputs provided at invocation time */ + inputPayload?: Record; + /** Final result extracted from terminal output node */ + outputPayload?: Record; + /** Map of node_name → execution output id (content-addressed hash reference) */ + nodeOutputs?: Record; + /** Pre-computed topological sort as array of wave objects */ + executionPlan?: Record; + /** Index into execution_plan — tick only processes this wave */ + currentWave?: number; + /** Parent execution when this is a sub-execution */ + parentExecutionId?: string; + /** Node name in parent execution that spawned this sub-execution */ + parentNodeName?: string; + /** Pinned definitions store commit for deterministic evaluation */ + definitionsCommitId?: string; + /** Number of evaluate_step ticks executed */ + tickCount?: number; + /** Execution completion timestamp */ + completedAt?: string; + /** Maximum ticks before execution is failed (default 100) */ + maxTicks?: number; + /** Maximum pending jobs before execution is failed (default 50) */ + maxPendingJobs?: number; + /** Absolute deadline — execution fails if still running after this time */ + timeoutAt?: string; + /** Timestamp of the last real progress (node enqueue, node output, completion) — drives the activity-debounced watchdog */ + lastProgressAt?: string; + /** Machine-readable error code when status = failed */ + errorCode?: string; + /** Human-readable error description when status = failed */ + errorMessage?: string; } -export interface DeleteFunctionGraphExecutionInput { - clientMutationId?: string; - id: string; +/** An input for mutations affecting `PlatformFunctionDefinition` */ +export interface PlatformFunctionDefinitionInput { + id?: string; + createdAt?: string; + updatedAt?: string; + /** Function grouping scope (e.g. email, embed, chunk, custom) */ + scope: string; + /** Function name within scope (e.g. send_verification_link, process_file_embedding) */ + name: string; + /** Computed routing slug: scope:name (used by Knative job worker for dispatch) */ + taskIdentifier: string; + /** Human-readable description of what this function does */ + description?: string; + /** Whether this function definition is published to the public catalog for direct authenticated invocation. Default false = internal-only via add_job() */ + isPublished?: boolean; + /** Non-public invocation channels this function may be exposed through (api, graph). Internal job dispatch is implicit and never listed. Default [] = job worker only. */ + accessChannels?: string[]; + /** Timestamp when this function was published. NULL means immediately published when is_published is true; future timestamps delay public visibility */ + publishedAt?: string; + /** Maximum retry attempts for the underlying job */ + maxAttempts?: number; + /** Job priority (lower = higher priority) */ + priority?: number; + /** Job queue name for serialization (e.g. email, ai, default) */ + queueName?: string; + /** Execution mode: http (Knative Service dispatch), inline (in-process in compute worker), handler (registered infrastructure handler), or sql (generic SQL dispatch via a trusted direct target or module-resolved function names) */ + runtime?: string; + /** Schema of the SQL function to invoke when runtime=sql (direct mode). NULL for module mode and other runtimes. */ + targetSchema?: string; + /** Name of the SQL function to invoke when runtime=sql (direct mode). NULL for module mode and other runtimes. */ + targetFunction?: string; + /** metaschema_modules_public table whose per-database row carries the generated function names when runtime=sql (module mode). NULL for direct mode and other runtimes. */ + moduleTable?: string; + /** 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; + /** Ordered bind-parameter mapping for runtime=sql: [{name, type}]. payload[name] is bound as $n::type. */ + payloadArgs?: Record; + /** Docker image reference (e.g. ghcr.io/constructive-io/email-send-fn:latest). Required when runtime=http. NULL for inline functions. */ + image?: string; + /** Knative containerConcurrency — max concurrent requests per pod instance */ + concurrency?: number; + /** Minimum pod count for Knative autoscaling (minScale) */ + scaleMin?: number; + /** Maximum pod count for Knative autoscaling (maxScale) */ + scaleMax?: number; + /** Knative request timeout in seconds */ + timeoutSeconds?: number; + /** Container resource requests and limits: {requests: {memory, cpu}, limits: {memory, cpu}} */ + resources?: Record; + /** Whether this function is a built-in platform function (synced from platform) vs user-created */ + isBuiltIn?: boolean; + /** Embedded secret requirements: array of (name, required, provider) tuples. provider is the integration slug this requirement belongs to, if any. */ + requiredSecrets?: ResourceRequirementInput[]; + /** Embedded config requirements: array of (name, required, provider) tuples. provider is the integration slug this requirement belongs to, if any. */ + 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. */ + integrations?: string[]; + /** Bucket keys this function needs (e.g. uploads, exports). Empty = no bucket requirements. */ + requiredBuckets?: string[]; + /** Inference model whitelist (e.g. gpt-4o, claude-3). Empty = no model requirements. */ + requiredModels?: string[]; + /** Data input ports: [{name, type, description?, optional?, multi?, schema?}] */ + inputs?: Record; + /** Data output ports: [{name, type, description?, optional?, multi?, schema?}] */ + outputs?: Record; + /** Configuration properties: [{name, type, default?, description?, required?, schema?}] */ + props?: Record; + /** Whether this function has side effects and cannot be cached or memoized */ + volatile?: boolean; + /** Icon identifier for UI palette rendering (e.g. mail, database, code) */ + icon?: string; + /** Palette grouping category (e.g. email, data, ai, custom) */ + category?: string; } -export interface CreateFunctionDefinitionInput { - clientMutationId?: string; - functionDefinition: { - scope: string; - name: string; - taskIdentifier: string; - description?: string; - isInvocable?: boolean; - maxAttempts?: number; - priority?: number; - queueName?: string; - runtime?: string; - image?: string; - concurrency?: number; - scaleMin?: number; - scaleMax?: number; - timeoutSeconds?: number; - resources?: Record; - isBuiltIn?: boolean; - requiredSecrets?: FunctionRequirementInput[]; - requiredConfigs?: FunctionRequirementInput[]; - requiredBuckets?: string[]; - requiredModels?: string[]; - inputs?: Record; - outputs?: Record; - props?: Record; - volatile?: boolean; - icon?: string; - category?: string; - }; +/** An input for mutations affecting `FunctionDefinition` */ +export interface FunctionDefinitionInput { + id?: string; + createdAt?: string; + updatedAt?: string; + /** Function grouping scope (e.g. email, embed, chunk, custom) */ + scope: string; + /** Function name within scope (e.g. send_verification_link, process_file_embedding) */ + name: string; + /** Computed routing slug: scope:name (used by Knative job worker for dispatch) */ + taskIdentifier: string; + /** Human-readable description of what this function does */ + description?: string; + /** Whether this function definition is published to the public catalog for direct authenticated invocation. Default false = internal-only via add_job() */ + isPublished?: boolean; + /** Non-public invocation channels this function may be exposed through (api, graph). Internal job dispatch is implicit and never listed. Default [] = job worker only. */ + accessChannels?: string[]; + /** Timestamp when this function was published. NULL means immediately published when is_published is true; future timestamps delay public visibility */ + publishedAt?: string; + /** Maximum retry attempts for the underlying job */ + maxAttempts?: number; + /** Job priority (lower = higher priority) */ + priority?: number; + /** Job queue name for serialization (e.g. email, ai, default) */ + queueName?: string; + /** Execution mode: http (Knative Service dispatch), inline (in-process in compute worker), handler (registered infrastructure handler), or sql (generic SQL dispatch via a trusted direct target or module-resolved function names) */ + runtime?: string; + /** Schema of the SQL function to invoke when runtime=sql (direct mode). NULL for module mode and other runtimes. */ + targetSchema?: string; + /** Name of the SQL function to invoke when runtime=sql (direct mode). NULL for module mode and other runtimes. */ + targetFunction?: string; + /** metaschema_modules_public table whose per-database row carries the generated function names when runtime=sql (module mode). NULL for direct mode and other runtimes. */ + moduleTable?: string; + /** 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; + /** Ordered bind-parameter mapping for runtime=sql: [{name, type}]. payload[name] is bound as $n::type. */ + payloadArgs?: Record; + /** Docker image reference (e.g. ghcr.io/constructive-io/email-send-fn:latest). Required when runtime=http. NULL for inline functions. */ + image?: string; + /** Knative containerConcurrency — max concurrent requests per pod instance */ + concurrency?: number; + /** Minimum pod count for Knative autoscaling (minScale) */ + scaleMin?: number; + /** Maximum pod count for Knative autoscaling (maxScale) */ + scaleMax?: number; + /** Knative request timeout in seconds */ + timeoutSeconds?: number; + /** Container resource requests and limits: {requests: {memory, cpu}, limits: {memory, cpu}} */ + resources?: Record; + /** Whether this function is a built-in platform function (synced from platform) vs user-created */ + isBuiltIn?: boolean; + /** Embedded secret requirements: array of (name, required, provider) tuples. provider is the integration slug this requirement belongs to, if any. */ + requiredSecrets?: ResourceRequirementInput[]; + /** Embedded config requirements: array of (name, required, provider) tuples. provider is the integration slug this requirement belongs to, if any. */ + 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. */ + integrations?: string[]; + /** Bucket keys this function needs (e.g. uploads, exports). Empty = no bucket requirements. */ + requiredBuckets?: string[]; + /** Inference model whitelist (e.g. gpt-4o, claude-3). Empty = no model requirements. */ + requiredModels?: string[]; + /** Data input ports: [{name, type, description?, optional?, multi?, schema?}] */ + inputs?: Record; + /** Data output ports: [{name, type, description?, optional?, multi?, schema?}] */ + outputs?: Record; + /** Configuration properties: [{name, type, default?, description?, required?, schema?}] */ + props?: Record; + /** Whether this function has side effects and cannot be cached or memoized */ + volatile?: boolean; + /** Icon identifier for UI palette rendering (e.g. mail, database, code) */ + icon?: string; + /** Palette grouping category (e.g. email, data, ai, custom) */ + category?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; } -export interface FunctionDefinitionPatch { - scope?: string | null; - name?: string | null; - taskIdentifier?: string | null; - description?: string | null; - isInvocable?: boolean | null; - maxAttempts?: number | null; - priority?: number | null; - queueName?: string | null; - runtime?: string | null; - image?: string | null; - concurrency?: number | null; - scaleMin?: number | null; - scaleMax?: number | null; - timeoutSeconds?: number | null; - resources?: Record | null; - isBuiltIn?: boolean | null; - requiredSecrets?: FunctionRequirementInput[] | null; - requiredConfigs?: FunctionRequirementInput[] | null; - requiredBuckets?: string[] | null; - requiredModels?: string[] | null; - inputs?: Record | null; - outputs?: Record | null; - props?: Record | null; - volatile?: boolean | null; - icon?: string | null; - category?: string | null; +/** A filter to be used against `PlatformResourceStatusCheck` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformResourceStatusCheckFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `resourceId` field. */ + resourceId?: UUIDFilter; + /** Filter by the object’s `requestedBy` field. */ + requestedBy?: UUIDFilter; + /** Filter by the object’s `requestedAt` field. */ + requestedAt?: DatetimeFilter; + /** Filter by the object’s `completedAt` field. */ + completedAt?: DatetimeFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `result` field. */ + result?: JSONFilter; + /** Checks for all expressions in this list. */ + and?: PlatformResourceStatusCheckFilter[]; + /** Checks for any expressions in this list. */ + or?: PlatformResourceStatusCheckFilter[]; + /** Negates the expression. */ + not?: PlatformResourceStatusCheckFilter; + /** Filter by the object’s `resource` relation. */ + resource?: PlatformResourceFilter; } -export interface UpdateFunctionDefinitionInput { - clientMutationId?: string; - id: string; - functionDefinitionPatch: FunctionDefinitionPatch; +/** A filter to be used against `ResourceStatusCheck` object types. All fields are combined with a logical ‘and.’ */ +export interface ResourceStatusCheckFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `resourceId` field. */ + resourceId?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `requestedBy` field. */ + requestedBy?: UUIDFilter; + /** Filter by the object’s `requestedAt` field. */ + requestedAt?: DatetimeFilter; + /** Filter by the object’s `completedAt` field. */ + completedAt?: DatetimeFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `result` field. */ + result?: JSONFilter; + /** Checks for all expressions in this list. */ + and?: ResourceStatusCheckFilter[]; + /** Checks for any expressions in this list. */ + or?: ResourceStatusCheckFilter[]; + /** Negates the expression. */ + not?: ResourceStatusCheckFilter; + /** Filter by the object’s `resource` relation. */ + resource?: ResourceFilter; } -export interface DeleteFunctionDefinitionInput { - clientMutationId?: string; - id: string; +/** A filter to be used against `PlatformFunctionDeployment` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformFunctionDeploymentFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `serviceUrl` field. */ + serviceUrl?: StringFilter; + /** Filter by the object’s `serviceName` field. */ + serviceName?: StringFilter; + /** Filter by the object’s `revision` field. */ + revision?: IntFilter; + /** Filter by the object’s `image` field. */ + image?: StringFilter; + /** Filter by the object’s `imageVersion` field. */ + imageVersion?: StringFilter; + /** Filter by the object’s `handlerName` field. */ + handlerName?: StringFilter; + /** Filter by the object’s `concurrency` field. */ + concurrency?: IntFilter; + /** Filter by the object’s `scaleMin` field. */ + scaleMin?: IntFilter; + /** Filter by the object’s `scaleMax` field. */ + scaleMax?: IntFilter; + /** Filter by the object’s `timeoutSeconds` field. */ + timeoutSeconds?: IntFilter; + /** Filter by the object’s `resources` field. */ + resources?: JSONFilter; + /** Filter by the object’s `lastError` field. */ + lastError?: StringFilter; + /** Filter by the object’s `lastErrorAt` field. */ + lastErrorAt?: DatetimeFilter; + /** Filter by the object’s `errorCount` field. */ + errorCount?: IntFilter; + /** Filter by the object’s `labels` field. */ + labels?: JSONFilter; + /** Filter by the object’s `annotations` field. */ + annotations?: JSONFilter; + /** Checks for all expressions in this list. */ + and?: PlatformFunctionDeploymentFilter[]; + /** Checks for any expressions in this list. */ + or?: PlatformFunctionDeploymentFilter[]; + /** Negates the expression. */ + not?: PlatformFunctionDeploymentFilter; + /** Filter by the object’s `namespace` relation. */ + namespace?: PlatformNamespaceFilter; } -// ============ Connection Fields Map ============ -export const connectionFieldsMap = { - PlatformNamespace: { - functionDeploymentsByNamespaceId: 'FunctionDeployment', - resourcesByNamespaceId: 'Resource', - }, - FunctionDefinition: { - functionApiBindings: 'FunctionApiBinding', - functionDeployments: 'FunctionDeployment', - }, -} as Record>; -// ============ Custom Input Types (from schema) ============ -export interface ValidateFunctionGraphInput { - clientMutationId?: string; - graphId?: string; +/** A filter to be used against `PlatformResource` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformResourceFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; + /** Filter by the object’s `kind` field. */ + kind?: StringFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** 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 `lastError` field. */ + lastError?: StringFilter; + /** Filter by the object’s `errorCount` field. */ + errorCount?: IntFilter; + /** Filter by the object’s `labels` field. */ + labels?: JSONFilter; + /** Filter by the object’s `annotations` field. */ + annotations?: JSONFilter; + /** Filter by the object’s `integrations` field. */ + integrations?: StringListFilter; + /** Filter by the object’s `resourceDefinitionId` field. */ + resourceDefinitionId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: PlatformResourceFilter[]; + /** Checks for any expressions in this list. */ + or?: PlatformResourceFilter[]; + /** Negates the expression. */ + not?: PlatformResourceFilter; + /** Filter by the object’s `namespace` relation. */ + namespace?: PlatformNamespaceFilter; + /** Filter by the object’s `resourceDefinition` relation. */ + resourceDefinition?: PlatformResourceDefinitionFilter; + /** A related `resourceDefinition` exists. */ + resourceDefinitionExists?: boolean; + /** Filter by the object’s `platformResourceStatusChecksByResourceId` relation. */ + platformResourceStatusChecksByResourceId?: PlatformResourceToManyPlatformResourceStatusCheckFilter; + /** `platformResourceStatusChecksByResourceId` exist. */ + platformResourceStatusChecksByResourceIdExist?: boolean; +} +/** A filter to be used against `PlatformResourceDefinition` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformResourceDefinitionFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; + /** Filter by the object’s `kind` field. */ + kind?: StringFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `slug` field. */ + slug?: StringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `defaultSpec` field. */ + defaultSpec?: JSONFilter; + /** Filter by the object’s `integrations` field. */ + integrations?: StringListFilter; + /** Filter by the object’s `labels` field. */ + labels?: JSONFilter; + /** Filter by the object’s `annotations` field. */ + annotations?: JSONFilter; + /** Filter by the object’s `stepUpMinAge` field. */ + stepUpMinAge?: IntervalFilter; + /** Checks for all expressions in this list. */ + and?: PlatformResourceDefinitionFilter[]; + /** Checks for any expressions in this list. */ + or?: PlatformResourceDefinitionFilter[]; + /** Negates the expression. */ + not?: PlatformResourceDefinitionFilter; + /** Filter by the object’s `namespace` relation. */ + namespace?: PlatformNamespaceFilter; } -export interface InitEmptyRepoInput { - clientMutationId?: string; - sId?: string; - storeId?: string; +/** A filter to be used against `FunctionDeployment` object types. All fields are combined with a logical ‘and.’ */ +export interface FunctionDeploymentFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `serviceUrl` field. */ + serviceUrl?: StringFilter; + /** Filter by the object’s `serviceName` field. */ + serviceName?: StringFilter; + /** Filter by the object’s `revision` field. */ + revision?: IntFilter; + /** Filter by the object’s `image` field. */ + image?: StringFilter; + /** Filter by the object’s `imageVersion` field. */ + imageVersion?: StringFilter; + /** Filter by the object’s `handlerName` field. */ + handlerName?: StringFilter; + /** Filter by the object’s `concurrency` field. */ + concurrency?: IntFilter; + /** Filter by the object’s `scaleMin` field. */ + scaleMin?: IntFilter; + /** Filter by the object’s `scaleMax` field. */ + scaleMax?: IntFilter; + /** Filter by the object’s `timeoutSeconds` field. */ + timeoutSeconds?: IntFilter; + /** Filter by the object’s `resources` field. */ + resources?: JSONFilter; + /** Filter by the object’s `lastError` field. */ + lastError?: StringFilter; + /** Filter by the object’s `lastErrorAt` field. */ + lastErrorAt?: DatetimeFilter; + /** Filter by the object’s `errorCount` field. */ + errorCount?: IntFilter; + /** Filter by the object’s `labels` field. */ + labels?: JSONFilter; + /** Filter by the object’s `annotations` field. */ + annotations?: JSONFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: FunctionDeploymentFilter[]; + /** Checks for any expressions in this list. */ + or?: FunctionDeploymentFilter[]; + /** Negates the expression. */ + not?: FunctionDeploymentFilter; + /** Filter by the object’s `namespace` relation. */ + namespace?: NamespaceFilter; } -export interface SetDataAtPathInput { - clientMutationId?: string; - sId?: string; - root?: string; - path?: string[]; - data?: Record; +/** A filter to be used against `Resource` object types. All fields are combined with a logical ‘and.’ */ +export interface ResourceFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; + /** Filter by the object’s `kind` field. */ + kind?: StringFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** 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 `lastError` field. */ + lastError?: StringFilter; + /** Filter by the object’s `errorCount` field. */ + errorCount?: IntFilter; + /** Filter by the object’s `labels` field. */ + labels?: JSONFilter; + /** Filter by the object’s `annotations` field. */ + annotations?: JSONFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `integrations` field. */ + integrations?: StringListFilter; + /** Filter by the object’s `resourceDefinitionId` field. */ + resourceDefinitionId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: ResourceFilter[]; + /** Checks for any expressions in this list. */ + or?: ResourceFilter[]; + /** Negates the expression. */ + not?: ResourceFilter; + /** Filter by the object’s `namespace` relation. */ + namespace?: NamespaceFilter; + /** Filter by the object’s `resourceDefinition` relation. */ + resourceDefinition?: ResourceDefinitionFilter; + /** A related `resourceDefinition` exists. */ + resourceDefinitionExists?: boolean; + /** Filter by the object’s `resourceStatusChecks` relation. */ + resourceStatusChecks?: ResourceToManyResourceStatusCheckFilter; + /** `resourceStatusChecks` exist. */ + resourceStatusChecksExist?: boolean; +} +/** A filter to be used against `ResourceDefinition` object types. All fields are combined with a logical ‘and.’ */ +export interface ResourceDefinitionFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; + /** Filter by the object’s `kind` field. */ + kind?: StringFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `slug` field. */ + slug?: StringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `defaultSpec` field. */ + defaultSpec?: JSONFilter; + /** Filter by the object’s `integrations` field. */ + integrations?: StringListFilter; + /** Filter by the object’s `labels` field. */ + labels?: JSONFilter; + /** Filter by the object’s `annotations` field. */ + annotations?: JSONFilter; + /** Filter by the object’s `stepUpMinAge` field. */ + stepUpMinAge?: IntervalFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: ResourceDefinitionFilter[]; + /** Checks for any expressions in this list. */ + or?: ResourceDefinitionFilter[]; + /** Negates the expression. */ + not?: ResourceDefinitionFilter; + /** Filter by the object’s `namespace` relation. */ + namespace?: NamespaceFilter; } -export interface ImportDefinitionsInput { - clientMutationId?: string; - graphId?: string; - sourceScopeId?: string; - sourceCommitId?: string; - contexts?: 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 `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `functionDefinitionId` field. */ + functionDefinitionId?: UUIDFilter; + /** Filter by the object’s `apiId` field. */ + apiId?: UUIDFilter; + /** Filter by the object’s `alias` field. */ + alias?: StringFilter; + /** Filter by the object’s `config` field. */ + config?: JSONFilter; + /** Checks for all expressions in this list. */ + and?: PlatformFunctionApiBindingFilter[]; + /** Checks for any expressions in this list. */ + or?: PlatformFunctionApiBindingFilter[]; + /** Negates the expression. */ + not?: PlatformFunctionApiBindingFilter; + /** Filter by the object’s `functionDefinition` relation. */ + functionDefinition?: PlatformFunctionDefinitionFilter; } -export interface CopyGraphInput { - clientMutationId?: string; - databaseId?: string; - graphId?: string; - name?: 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 `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `functionDefinitionId` field. */ + functionDefinitionId?: UUIDFilter; + /** Filter by the object’s `apiId` field. */ + apiId?: UUIDFilter; + /** Filter by the object’s `alias` field. */ + alias?: StringFilter; + /** Filter by the object’s `config` field. */ + config?: JSONFilter; + /** Checks for all expressions in this list. */ + and?: FunctionApiBindingFilter[]; + /** Checks for any expressions in this list. */ + or?: FunctionApiBindingFilter[]; + /** Negates the expression. */ + not?: FunctionApiBindingFilter; + /** Filter by the object’s `functionDefinition` relation. */ + functionDefinition?: FunctionDefinitionFilter; } -export interface SaveGraphInput { - clientMutationId?: string; - graphId?: string; - rootHash?: string; - message?: string; +/** A filter to be used against UUID fields. All fields are combined with a logical ‘and.’ */ +export interface UUIDFilter { + /** Is null (if `true` is specified) or is not null (if `false` is specified). */ + isNull?: boolean; + /** Equal to the specified value. */ + equalTo?: string; + /** Not equal to the specified value. */ + notEqualTo?: string; + /** Not equal to the specified value, treating null like an ordinary value. */ + distinctFrom?: string; + /** Equal to the specified value, treating null like an ordinary value. */ + notDistinctFrom?: string; + /** Included in the specified list. */ + in?: string[]; + /** Not included in the specified list. */ + notIn?: string[]; + /** Less than the specified value. */ + lessThan?: string; + /** Less than or equal to the specified value. */ + lessThanOrEqualTo?: string; + /** Greater than the specified value. */ + greaterThan?: string; + /** Greater than or equal to the specified value. */ + greaterThanOrEqualTo?: string; } -export interface AddEdgeAndSaveInput { - clientMutationId?: string; - graphId?: string; - srcNode?: string; - srcPort?: string; - dstNode?: string; - dstPort?: string; - message?: string; +/** A filter to be used against Datetime fields. All fields are combined with a logical ‘and.’ */ +export interface DatetimeFilter { + /** Is null (if `true` is specified) or is not null (if `false` is specified). */ + isNull?: boolean; + /** Equal to the specified value. */ + equalTo?: string; + /** Not equal to the specified value. */ + notEqualTo?: string; + /** Not equal to the specified value, treating null like an ordinary value. */ + distinctFrom?: string; + /** Equal to the specified value, treating null like an ordinary value. */ + notDistinctFrom?: string; + /** Included in the specified list. */ + in?: string[]; + /** Not included in the specified list. */ + notIn?: string[]; + /** Less than the specified value. */ + lessThan?: string; + /** Less than or equal to the specified value. */ + lessThanOrEqualTo?: string; + /** Greater than the specified value. */ + greaterThan?: string; + /** Greater than or equal to the specified value. */ + greaterThanOrEqualTo?: string; } -export interface AddNodeAndSaveInput { - clientMutationId?: string; - graphId?: string; - nodeName?: string; - nodeType?: string; - props?: Record; - meta?: Record; - message?: string; +/** A filter to be used against String fields. All fields are combined with a logical ‘and.’ */ +export interface StringFilter { + /** Is null (if `true` is specified) or is not null (if `false` is specified). */ + isNull?: boolean; + /** Equal to the specified value. */ + equalTo?: string; + /** Not equal to the specified value. */ + notEqualTo?: string; + /** Not equal to the specified value, treating null like an ordinary value. */ + distinctFrom?: string; + /** Equal to the specified value, treating null like an ordinary value. */ + notDistinctFrom?: string; + /** Included in the specified list. */ + in?: string[]; + /** Not included in the specified list. */ + notIn?: string[]; + /** Less than the specified value. */ + lessThan?: string; + /** Less than or equal to the specified value. */ + lessThanOrEqualTo?: string; + /** Greater than the specified value. */ + greaterThan?: string; + /** Greater than or equal to the specified value. */ + greaterThanOrEqualTo?: string; + /** Contains the specified string (case-sensitive). */ + includes?: string; + /** Does not contain the specified string (case-sensitive). */ + notIncludes?: string; + /** Contains the specified string (case-insensitive). */ + includesInsensitive?: string; + /** Does not contain the specified string (case-insensitive). */ + notIncludesInsensitive?: string; + /** Starts with the specified string (case-sensitive). */ + startsWith?: string; + /** Does not start with the specified string (case-sensitive). */ + notStartsWith?: string; + /** Starts with the specified string (case-insensitive). */ + startsWithInsensitive?: string; + /** Does not start with the specified string (case-insensitive). */ + notStartsWithInsensitive?: string; + /** Ends with the specified string (case-sensitive). */ + endsWith?: string; + /** Does not end with the specified string (case-sensitive). */ + notEndsWith?: string; + /** Ends with the specified string (case-insensitive). */ + endsWithInsensitive?: string; + /** Does not end with the specified string (case-insensitive). */ + notEndsWithInsensitive?: string; + /** Matches the specified pattern (case-sensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. */ + like?: string; + /** Does not match the specified pattern (case-sensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. */ + notLike?: string; + /** Matches the specified pattern (case-insensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. */ + likeInsensitive?: string; + /** Does not match the specified pattern (case-insensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. */ + notLikeInsensitive?: string; + /** Equal to the specified value (case-insensitive). */ + equalToInsensitive?: string; + /** Not equal to the specified value (case-insensitive). */ + notEqualToInsensitive?: string; + /** Not equal to the specified value, treating null like an ordinary value (case-insensitive). */ + distinctFromInsensitive?: string; + /** Equal to the specified value, treating null like an ordinary value (case-insensitive). */ + notDistinctFromInsensitive?: string; + /** Included in the specified list (case-insensitive). */ + inInsensitive?: string[]; + /** Not included in the specified list (case-insensitive). */ + notInInsensitive?: string[]; + /** Less than the specified value (case-insensitive). */ + lessThanInsensitive?: string; + /** Less than or equal to the specified value (case-insensitive). */ + lessThanOrEqualToInsensitive?: string; + /** Greater than the specified value (case-insensitive). */ + greaterThanInsensitive?: string; + /** Greater than or equal to the specified value (case-insensitive). */ + greaterThanOrEqualToInsensitive?: string; } -export interface ImportGraphJsonInput { - clientMutationId?: string; - databaseId?: string; - name?: string; - graphJson?: Record; - context?: string; - description?: string; - createdBy?: string; - definitionsCommitId?: string; +/** A filter to be used against JSON fields. All fields are combined with a logical ‘and.’ */ +export interface JSONFilter { + /** Is null (if `true` is specified) or is not null (if `false` is specified). */ + isNull?: boolean; + /** Equal to the specified value. */ + equalTo?: Record; + /** Not equal to the specified value. */ + notEqualTo?: Record; + /** Not equal to the specified value, treating null like an ordinary value. */ + distinctFrom?: Record; + /** Equal to the specified value, treating null like an ordinary value. */ + notDistinctFrom?: Record; + /** Included in the specified list. */ + in?: Record[]; + /** Not included in the specified list. */ + notIn?: Record[]; + /** Less than the specified value. */ + lessThan?: Record; + /** Less than or equal to the specified value. */ + lessThanOrEqualTo?: Record; + /** Greater than the specified value. */ + greaterThan?: Record; + /** Greater than or equal to the specified value. */ + greaterThanOrEqualTo?: Record; + /** Contains the specified JSON. */ + contains?: Record; + /** Contains the specified key. */ + containsKey?: string; + /** Contains all of the specified keys. */ + containsAllKeys?: string[]; + /** Contains any of the specified keys. */ + containsAnyKeys?: string[]; + /** Contained by the specified JSON. */ + containedBy?: Record; } -export interface AddEdgeInput { - clientMutationId?: string; - databaseId?: string; - rootHash?: string; - srcNode?: string; - srcPort?: string; - dstNode?: string; - dstPort?: string; - context?: string; - graphName?: string; +/** A filter to be used against Int fields. All fields are combined with a logical ‘and.’ */ +export interface IntFilter { + /** Is null (if `true` is specified) or is not null (if `false` is specified). */ + isNull?: boolean; + /** Equal to the specified value. */ + equalTo?: number; + /** Not equal to the specified value. */ + notEqualTo?: number; + /** Not equal to the specified value, treating null like an ordinary value. */ + distinctFrom?: number; + /** Equal to the specified value, treating null like an ordinary value. */ + notDistinctFrom?: number; + /** Included in the specified list. */ + in?: number[]; + /** Not included in the specified list. */ + notIn?: number[]; + /** Less than the specified value. */ + lessThan?: number; + /** Less than or equal to the specified value. */ + lessThanOrEqualTo?: number; + /** Greater than the specified value. */ + greaterThan?: number; + /** Greater than or equal to the specified value. */ + greaterThanOrEqualTo?: number; } -export interface AddNodeInput { - clientMutationId?: string; - databaseId?: string; - rootHash?: string; - nodeName?: string; - nodeType?: string; - context?: string; - graphName?: string; - props?: Record; - meta?: Record; +/** A filter to be used against `PlatformNamespace` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformNamespaceFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `namespaceName` field. */ + namespaceName?: StringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `isActive` field. */ + isActive?: BooleanFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `lastError` field. */ + lastError?: StringFilter; + /** Filter by the object’s `labels` field. */ + labels?: JSONFilter; + /** Filter by the object’s `annotations` field. */ + annotations?: JSONFilter; + /** Filter by the object’s `isManaged` field. */ + isManaged?: BooleanFilter; + /** Checks for all expressions in this list. */ + and?: PlatformNamespaceFilter[]; + /** Checks for any expressions in this list. */ + or?: PlatformNamespaceFilter[]; + /** Negates the expression. */ + not?: PlatformNamespaceFilter; + /** Filter by the object’s `platformFunctionDeploymentsByNamespaceId` relation. */ + platformFunctionDeploymentsByNamespaceId?: PlatformNamespaceToManyPlatformFunctionDeploymentFilter; + /** `platformFunctionDeploymentsByNamespaceId` exist. */ + platformFunctionDeploymentsByNamespaceIdExist?: boolean; + /** Filter by the object’s `platformResourcesByNamespaceId` relation. */ + platformResourcesByNamespaceId?: PlatformNamespaceToManyPlatformResourceFilter; + /** `platformResourcesByNamespaceId` exist. */ + platformResourcesByNamespaceIdExist?: boolean; + /** Filter by the object’s `platformResourceDefinitionsByNamespaceId` relation. */ + platformResourceDefinitionsByNamespaceId?: PlatformNamespaceToManyPlatformResourceDefinitionFilter; + /** `platformResourceDefinitionsByNamespaceId` exist. */ + platformResourceDefinitionsByNamespaceIdExist?: boolean; } -export interface InsertNodeAtPathInput { - clientMutationId?: string; - sId?: string; - root?: string; - path?: string[]; - data?: Record; - kids?: string[]; - ktree?: string[]; +/** A filter to be used against String List fields. All fields are combined with a logical ‘and.’ */ +export interface StringListFilter { + /** Is null (if `true` is specified) or is not null (if `false` is specified). */ + isNull?: boolean; + /** Equal to the specified value. */ + equalTo?: string[]; + /** Not equal to the specified value. */ + notEqualTo?: string[]; + /** Not equal to the specified value, treating null like an ordinary value. */ + distinctFrom?: string[]; + /** Equal to the specified value, treating null like an ordinary value. */ + notDistinctFrom?: string[]; + /** Less than the specified value. */ + lessThan?: string[]; + /** Less than or equal to the specified value. */ + lessThanOrEqualTo?: string[]; + /** Greater than the specified value. */ + greaterThan?: string[]; + /** Greater than or equal to the specified value. */ + greaterThanOrEqualTo?: string[]; + /** Contains the specified list of values. */ + contains?: string[]; + /** Contained by the specified list of values. */ + containedBy?: string[]; + /** Overlaps the specified list of values. */ + overlaps?: string[]; + /** Any array item is equal to the specified value. */ + anyEqualTo?: string; + /** Any array item is not equal to the specified value. */ + anyNotEqualTo?: 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 greater than the specified value. */ + anyGreaterThan?: string; + /** Any array item is greater than or equal to the specified value. */ + anyGreaterThanOrEqualTo?: string; } -export interface StartExecutionInput { - clientMutationId?: string; - graphId?: string; - inputPayload?: Record; - outputNode?: string; - outputPort?: string; - maxTicks?: number; - maxPendingJobs?: number; - timeoutInterval?: IntervalInput; - parentExecutionId?: string; - parentNodeName?: string; +/** A filter to be used against `Namespace` object types. All fields are combined with a logical ‘and.’ */ +export interface NamespaceFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `namespaceName` field. */ + namespaceName?: StringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `isActive` field. */ + isActive?: BooleanFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `lastError` field. */ + lastError?: StringFilter; + /** Filter by the object’s `labels` field. */ + labels?: JSONFilter; + /** Filter by the object’s `annotations` field. */ + annotations?: JSONFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `isManaged` field. */ + isManaged?: BooleanFilter; + /** Checks for all expressions in this list. */ + and?: NamespaceFilter[]; + /** Checks for any expressions in this list. */ + or?: NamespaceFilter[]; + /** Negates the expression. */ + not?: NamespaceFilter; + /** Filter by the object’s `functionDeployments` relation. */ + functionDeployments?: NamespaceToManyFunctionDeploymentFilter; + /** `functionDeployments` exist. */ + functionDeploymentsExist?: boolean; + /** Filter by the object’s `resources` relation. */ + resources?: NamespaceToManyResourceFilter; + /** `resources` exist. */ + resourcesExist?: boolean; + /** Filter by the object’s `resourceDefinitions` relation. */ + resourceDefinitions?: NamespaceToManyResourceDefinitionFilter; + /** `resourceDefinitions` exist. */ + resourceDefinitionsExist?: boolean; +} +/** 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 `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `taskIdentifier` field. */ + taskIdentifier?: StringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `isPublished` field. */ + isPublished?: BooleanFilter; + /** Filter by the object’s `accessChannels` field. */ + accessChannels?: StringListFilter; + /** Filter by the object’s `publishedAt` field. */ + publishedAt?: DatetimeFilter; + /** Filter by the object’s `maxAttempts` field. */ + maxAttempts?: IntFilter; + /** Filter by the object’s `priority` field. */ + priority?: IntFilter; + /** Filter by the object’s `queueName` field. */ + queueName?: StringFilter; + /** Filter by the object’s `runtime` field. */ + runtime?: StringFilter; + /** Filter by the object’s `targetSchema` field. */ + targetSchema?: StringFilter; + /** Filter by the object’s `targetFunction` field. */ + targetFunction?: StringFilter; + /** Filter by the object’s `moduleTable` field. */ + moduleTable?: StringFilter; + /** Filter by the object’s `functionColumns` field. */ + functionColumns?: JSONFilter; + /** Filter by the object’s `payloadArgs` field. */ + payloadArgs?: JSONFilter; + /** Filter by the object’s `image` field. */ + image?: StringFilter; + /** Filter by the object’s `concurrency` field. */ + concurrency?: IntFilter; + /** Filter by the object’s `scaleMin` field. */ + scaleMin?: IntFilter; + /** Filter by the object’s `scaleMax` field. */ + scaleMax?: IntFilter; + /** Filter by the object’s `timeoutSeconds` field. */ + timeoutSeconds?: IntFilter; + /** Filter by the object’s `resources` field. */ + resources?: JSONFilter; + /** Filter by the object’s `isBuiltIn` field. */ + isBuiltIn?: BooleanFilter; + /** Filter by the object’s `integrations` field. */ + integrations?: StringListFilter; + /** Filter by the object’s `requiredBuckets` field. */ + requiredBuckets?: StringListFilter; + /** Filter by the object’s `requiredModels` field. */ + requiredModels?: StringListFilter; + /** Filter by the object’s `inputs` field. */ + inputs?: JSONFilter; + /** Filter by the object’s `outputs` field. */ + outputs?: JSONFilter; + /** Filter by the object’s `props` field. */ + props?: JSONFilter; + /** Filter by the object’s `volatile` field. */ + volatile?: BooleanFilter; + /** Filter by the object’s `icon` field. */ + icon?: StringFilter; + /** Filter by the object’s `category` field. */ + category?: StringFilter; + /** Checks for all expressions in this list. */ + and?: PlatformFunctionDefinitionFilter[]; + /** Checks for any expressions in this list. */ + or?: PlatformFunctionDefinitionFilter[]; + /** Negates the expression. */ + not?: PlatformFunctionDefinitionFilter; + /** Filter by the object’s `platformFunctionApiBindingsByFunctionDefinitionId` relation. */ + platformFunctionApiBindingsByFunctionDefinitionId?: PlatformFunctionDefinitionToManyPlatformFunctionApiBindingFilter; + /** `platformFunctionApiBindingsByFunctionDefinitionId` exist. */ + platformFunctionApiBindingsByFunctionDefinitionIdExist?: 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 `FunctionDefinition` object types. All fields are combined with a logical ‘and.’ */ +export interface FunctionDefinitionFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `taskIdentifier` field. */ + taskIdentifier?: StringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `isPublished` field. */ + isPublished?: BooleanFilter; + /** Filter by the object’s `accessChannels` field. */ + accessChannels?: StringListFilter; + /** Filter by the object’s `publishedAt` field. */ + publishedAt?: DatetimeFilter; + /** Filter by the object’s `maxAttempts` field. */ + maxAttempts?: IntFilter; + /** Filter by the object’s `priority` field. */ + priority?: IntFilter; + /** Filter by the object’s `queueName` field. */ + queueName?: StringFilter; + /** Filter by the object’s `runtime` field. */ + runtime?: StringFilter; + /** Filter by the object’s `targetSchema` field. */ + targetSchema?: StringFilter; + /** Filter by the object’s `targetFunction` field. */ + targetFunction?: StringFilter; + /** Filter by the object’s `moduleTable` field. */ + moduleTable?: StringFilter; + /** Filter by the object’s `functionColumns` field. */ + functionColumns?: JSONFilter; + /** Filter by the object’s `payloadArgs` field. */ + payloadArgs?: JSONFilter; + /** Filter by the object’s `image` field. */ + image?: StringFilter; + /** Filter by the object’s `concurrency` field. */ + concurrency?: IntFilter; + /** Filter by the object’s `scaleMin` field. */ + scaleMin?: IntFilter; + /** Filter by the object’s `scaleMax` field. */ + scaleMax?: IntFilter; + /** Filter by the object’s `timeoutSeconds` field. */ + timeoutSeconds?: IntFilter; + /** Filter by the object’s `resources` field. */ + resources?: JSONFilter; + /** Filter by the object’s `isBuiltIn` field. */ + isBuiltIn?: BooleanFilter; + /** Filter by the object’s `integrations` field. */ + integrations?: StringListFilter; + /** Filter by the object’s `requiredBuckets` field. */ + requiredBuckets?: StringListFilter; + /** Filter by the object’s `requiredModels` field. */ + requiredModels?: StringListFilter; + /** Filter by the object’s `inputs` field. */ + inputs?: JSONFilter; + /** Filter by the object’s `outputs` field. */ + outputs?: JSONFilter; + /** Filter by the object’s `props` field. */ + props?: JSONFilter; + /** Filter by the object’s `volatile` field. */ + volatile?: BooleanFilter; + /** Filter by the object’s `icon` field. */ + icon?: StringFilter; + /** Filter by the object’s `category` field. */ + category?: StringFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: FunctionDefinitionFilter[]; + /** Checks for any expressions in this list. */ + or?: FunctionDefinitionFilter[]; + /** Negates the expression. */ + not?: FunctionDefinitionFilter; + /** Filter by the object’s `functionApiBindings` relation. */ + functionApiBindings?: FunctionDefinitionToManyFunctionApiBindingFilter; + /** `functionApiBindings` exist. */ + functionApiBindingsExist?: boolean; } -/** 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 Boolean fields. All fields are combined with a logical ‘and.’ */ +export interface BooleanFilter { /** Is null (if `true` is specified) or is not null (if `false` is specified). */ isNull?: boolean; /** Equal to the specified value. */ - equalTo?: Base64EncodedBinary; + equalTo?: boolean; /** Not equal to the specified value. */ - notEqualTo?: Base64EncodedBinary; + notEqualTo?: boolean; /** Not equal to the specified value, treating null like an ordinary value. */ - distinctFrom?: Base64EncodedBinary; + distinctFrom?: boolean; /** Equal to the specified value, treating null like an ordinary value. */ - notDistinctFrom?: Base64EncodedBinary; + notDistinctFrom?: boolean; /** Included in the specified list. */ - in?: Base64EncodedBinary[]; + in?: boolean[]; /** Not included in the specified list. */ - notIn?: Base64EncodedBinary[]; + notIn?: boolean[]; + /** Less than the specified value. */ + lessThan?: boolean; + /** Less than or equal to the specified value. */ + lessThanOrEqualTo?: boolean; + /** Greater than the specified value. */ + greaterThan?: boolean; + /** Greater than or equal to the specified value. */ + greaterThanOrEqualTo?: boolean; } -/** A filter to be used against many `FunctionDeployment` object types. All fields are combined with a logical ‘and.’ */ -export interface PlatformNamespaceToManyFunctionDeploymentFilter { - /** Filters to entities where at least one related entity matches. */ - some?: FunctionDeploymentFilter; - /** Filters to entities where every related entity matches. */ - every?: FunctionDeploymentFilter; - /** Filters to entities where no related entity matches. */ - none?: FunctionDeploymentFilter; +// ============ Payload/Return Types (for custom operations) ============ +export interface ValidateFunctionGraphPayload { + clientMutationId?: string | null; + result?: boolean | null; } -/** A filter to be used against many `Resource` object types. All fields are combined with a logical ‘and.’ */ -export interface PlatformNamespaceToManyResourceFilter { - /** Filters to entities where at least one related entity matches. */ - some?: ResourceFilter; - /** Filters to entities where every related entity matches. */ - every?: ResourceFilter; - /** Filters to entities where no related entity matches. */ - none?: ResourceFilter; +export type ValidateFunctionGraphPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface InfraInitEmptyRepoPayload { + clientMutationId?: string | null; } -/** A filter to be used against many `FunctionApiBinding` object types. All fields are combined with a logical ‘and.’ */ -export interface FunctionDefinitionToManyFunctionApiBindingFilter { - /** Filters to entities where at least one related entity matches. */ - some?: FunctionApiBindingFilter; - /** Filters to entities where every related entity matches. */ - every?: FunctionApiBindingFilter; - /** Filters to entities where no related entity matches. */ - none?: FunctionApiBindingFilter; +export type InfraInitEmptyRepoPayloadSelect = { + clientMutationId?: boolean; +}; +export interface InitEmptyRepoPayload { + clientMutationId?: string | null; } -/** A filter to be used against many `FunctionDeployment` object types. All fields are combined with a logical ‘and.’ */ -export interface FunctionDefinitionToManyFunctionDeploymentFilter { - /** Filters to entities where at least one related entity matches. */ - some?: FunctionDeploymentFilter; - /** Filters to entities where every related entity matches. */ - every?: FunctionDeploymentFilter; - /** Filters to entities where no related entity matches. */ - none?: FunctionDeploymentFilter; +export type InitEmptyRepoPayloadSelect = { + clientMutationId?: boolean; +}; +export interface ImportDefinitionsPayload { + clientMutationId?: string | null; } -/** An input for mutations affecting `FunctionApiBinding` */ -export interface FunctionApiBindingInput { - id?: string; - /** Function definition this binding belongs to */ - functionDefinitionId: string; - /** API endpoint this function is bound to */ - apiId: string; - /** Binding alias (e.g. default, staging, production) */ - alias?: string; - /** Per-binding configuration (overrides, routing rules, etc.) */ - config?: Record; +export type ImportDefinitionsPayloadSelect = { + clientMutationId?: boolean; +}; +export interface InfraSetDataAtPathPayload { + clientMutationId?: string | null; + result?: string | null; } -/** An input for mutations affecting `FunctionDeployment` */ -export interface FunctionDeploymentInput { - id?: string; - createdAt?: string; - updatedAt?: string; - /** Function definition being deployed to this namespace */ - functionDefinitionId: string; - /** Target namespace for this deployment (maps to a K8s namespace) */ - namespaceId: string; - /** Deployment lifecycle status: pending, provisioning, active, failed, scaled_to_zero, deactivated */ - status?: string; - /** Knative service URL (http://{service-name}.{namespace}.svc.cluster.local) — populated after provisioning */ - serviceUrl?: string; - /** Knative service name — derived from task_identifier at provision time */ - serviceName?: string; - /** Deployment revision number (incremented on each redeployment) */ - revision?: number; - /** Container image override (NULL = inherit from function definition) */ - image?: string; - /** Max concurrent requests per pod (NULL = inherit from definition) */ - concurrency?: number; - /** Minimum replica count (NULL = inherit from definition or Knative default) */ - scaleMin?: number; - /** Maximum replica count (NULL = inherit from definition or Knative default) */ - scaleMax?: number; - /** Request timeout override in seconds (NULL = inherit from definition) */ - timeoutSeconds?: number; - /** K8s resource spec override: {"requests":{"cpu":"100m","memory":"128Mi"},"limits":{...}} */ - resources?: Record; - /** Most recent provisioning or runtime error message */ - lastError?: string; - /** Timestamp of the most recent error */ - lastErrorAt?: string; - /** Cumulative error count for this deployment */ - errorCount?: number; - /** Key/value pairs for selecting and filtering deployments */ - labels?: Record; - /** Freeform metadata for tooling and operational notes */ - annotations?: Record; - /** Database that owns this resource (database-scoped isolation) */ - databaseId: string; +export type InfraSetDataAtPathPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface SetDataAtPathPayload { + clientMutationId?: string | null; + result?: string | null; } -/** An input for mutations affecting `Resource` */ -export interface ResourceInput { - id?: string; - createdAt?: string; - updatedAt?: string; - createdBy?: string; - updatedBy?: string; - /** Namespace this resource belongs to (security boundary, maps to K8s namespace) */ - namespaceId: string; - /** Resource kind: Deployment, StatefulSet, Service, Ingress, Certificate */ - kind: string; - /** Human-readable resource name */ - name: 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, failed, draining, deleting */ - status?: string; - /** Observed state from K8s — populated by handlers after reconciliation (service_url, clone_url, replicas, etc.) */ - statusObserved?: Record; - /** Most recent provisioning or runtime error message */ - lastError?: string; - /** Cumulative error count for this resource */ - errorCount?: number; - /** Key/value pairs for selecting and filtering resources */ - labels?: Record; - /** Freeform metadata for tooling and operational notes */ - annotations?: Record; - /** Database that owns this resource (database-scoped isolation) */ - databaseId: string; +export type SetDataAtPathPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface CopyGraphPayload { + clientMutationId?: string | null; + result?: string | null; +} +export type CopyGraphPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface SaveGraphPayload { + clientMutationId?: string | null; + result?: string | null; } -/** An input for mutations affecting `FunctionGraphRef` */ -export interface FunctionGraphRefInput { - /** Unique ref identifier */ - id?: string; - /** Ref name (e.g. HEAD, main) */ - name: string; - /** Database scope for multi-tenant isolation */ - databaseId: string; - /** Store this ref belongs to */ - storeId: string; - /** Commit this ref points to */ - commitId?: string; +export type SaveGraphPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface AddEdgeAndSavePayload { + clientMutationId?: string | null; + result?: string | null; } -/** An input for mutations affecting `FunctionGraphStore` */ -export interface FunctionGraphStoreInput { - /** Unique store identifier */ - id?: string; - /** Human-readable store name */ - name: string; - /** Database scope for multi-tenant isolation */ - databaseId: string; - /** Current root object hash of this store */ - hash?: string; - /** Timestamp of store creation */ - createdAt?: string; +export type AddEdgeAndSavePayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface AddNodeAndSavePayload { + clientMutationId?: string | null; + result?: string | null; } -/** An input for mutations affecting `FunctionGraphObject` */ -export interface FunctionGraphObjectInput { - /** Content-addressed UUID v5 — deterministic hash of (data, kids, ktree) */ - id: string; - /** Database scope for multi-tenant isolation */ - databaseId: string; - /** Ordered array of child object IDs */ - kids?: string[]; - /** Ordered array of child path names (parallel to kids) */ - ktree?: string[]; - /** Payload data for this object node */ - data?: Record; - /** Timestamp of object creation */ - createdAt?: string; +export type AddNodeAndSavePayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface ImportGraphJsonPayload { + clientMutationId?: string | null; + result?: string | null; } -/** An input for mutations affecting `FunctionDeploymentEvent` */ -export interface FunctionDeploymentEventInput { - /** Event timestamp (partition key) */ - createdAt?: string; - /** Unique event identifier */ - id?: string; - /** Deployment this event belongs to */ - deploymentId: string; - /** Event type: provisioned, scaled, failed, deactivated, redeployed, health_check */ - eventType: string; - /** User who triggered this event (NULL for system/automated) */ - actorId?: string; - /** Human-readable description of the event */ - message?: string; - /** Structured context (old/new values, error details, etc.) */ - metadata?: Record; - /** Database that owns this resource (database-scoped isolation) */ - databaseId: string; +export type ImportGraphJsonPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface AddEdgePayload { + clientMutationId?: string | null; + result?: string | null; } -/** An input for mutations affecting `OrgFunctionExecutionLog` */ -export interface OrgFunctionExecutionLogInput { - /** 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; - /** Function routing key (NULL for generic job logs) */ - taskIdentifier?: string; - /** Log severity: debug, info, warn, error */ - logLevel?: string; - /** Log message text */ - message: string; - /** Structured context (labels, trace data, extra fields) */ - metadata?: Record; - /** User who triggered the execution (NULL for system/cron) */ - actorId?: string; +export type AddEdgePayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface AddNodePayload { + clientMutationId?: string | null; + result?: string | null; } -/** An input for mutations affecting `ResourceEvent` */ -export interface ResourceEventInput { - /** Event timestamp (partition key) */ - createdAt?: string; - /** Unique event identifier */ - id?: string; - /** Resource this event belongs to */ - resourceId: string; - /** Event type: provisioned, provisioning, updated, failed, deprovisioned, health_check */ - eventType: string; - /** User who triggered this event (NULL for system/automated) */ - actorId?: string; - /** Human-readable description of the event */ - message?: string; - /** Structured context (old/new values, error details, etc.) */ - metadata?: Record; - /** Database that owns this resource (database-scoped isolation) */ - databaseId: string; +export type AddNodePayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface InfraInsertNodeAtPathPayload { + clientMutationId?: string | null; + result?: string | null; } -/** An input for mutations affecting `FunctionGraphExecutionOutput` */ -export interface FunctionGraphExecutionOutputInput { - /** Timestamp of output creation */ - createdAt?: string; - /** Unique execution output identifier */ - id?: string; - /** Scope for multi-tenant isolation */ - databaseId: string; - /** SHA-256 hash of the data JSONB — content-addressed deduplication */ - hash: Base64EncodedBinary; - /** The actual output payload from a completed node */ - data: Record; +export type InfraInsertNodeAtPathPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface InsertNodeAtPathPayload { + clientMutationId?: string | null; + result?: string | null; } -/** An input for mutations affecting `FunctionGraphCommit` */ -export interface FunctionGraphCommitInput { - /** Unique commit identifier */ - id?: string; - /** Optional commit message */ - message?: string; - /** Database scope for multi-tenant isolation */ - databaseId: string; - /** Store this commit belongs to */ - storeId: string; - /** Parent commit IDs (supports merge commits) */ - parentIds?: string[]; - /** User who authored the changes */ - authorId?: string; - /** User who committed (may differ from author) */ - committerId?: string; - /** Root object ID of the tree snapshot at this commit */ - treeId?: string; - /** Commit timestamp */ - date?: string; +export type InsertNodeAtPathPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface StartExecutionPayload { + clientMutationId?: string | null; + result?: string | null; } -/** An input for mutations affecting `SecretDefinition` */ -export interface SecretDefinitionInput { - id?: string; - createdAt?: string; - updatedAt?: string; - /** Secret name (must match app_secrets.name for resolution) */ - name: string; - /** Human-readable description of what this secret is used for */ - description?: string; - /** Whether this row was seeded as a built-in secret definition. Built-in rows are immutable. */ - isBuiltIn?: boolean; - /** Key-value metadata for filtering and grouping secret definitions */ - labels?: Record; - /** Freeform metadata annotations for secret definitions */ - annotations?: Record; - /** Database that owns this resource (database-scoped isolation) */ - databaseId: string; +export type StartExecutionPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface ProvisionBucketPayload { + /** Whether provisioning succeeded */ + success: boolean; + /** The S3 bucket name that was provisioned */ + bucketName: string; + /** The access type applied */ + accessType: string; + /** The storage provider used */ + provider: string; + /** The S3 endpoint (null for AWS S3 default) */ + endpoint?: string | null; + /** Error message if provisioning failed */ + error?: string | null; } -/** An input for mutations affecting `FunctionExecutionLog` */ -export interface FunctionExecutionLogInput { - /** 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; - /** Function routing key (NULL for generic job logs) */ - taskIdentifier?: string; - /** Log severity: debug, info, warn, error */ - logLevel?: string; - /** Log message text */ - message: string; - /** Structured context (labels, trace data, extra fields) */ - metadata?: Record; - /** User who triggered the execution (NULL for system/cron) */ - actorId?: string; - /** Database that owns this resource (database-scoped isolation) */ - databaseId: string; +export type ProvisionBucketPayloadSelect = { + success?: boolean; + bucketName?: boolean; + accessType?: boolean; + provider?: boolean; + endpoint?: boolean; + error?: boolean; +}; +export interface CreateInfraRefPayload { + clientMutationId?: string | null; + /** The `InfraRef` that was created by this mutation. */ + infraRef?: InfraRef | null; + infraRefEdge?: InfraRefEdge | null; } -/** An input for mutations affecting `FunctionGraphExecutionNodeState` */ -export interface FunctionGraphExecutionNodeStateInput { - /** Timestamp of node state creation (partition key) */ - createdAt?: string; - /** Unique node state identifier */ - id?: string; - /** FK to the parent graph execution */ - executionId: string; - /** Scope for multi-tenant isolation */ - databaseId: 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[]; - /** Node lifecycle: pending → queued → running → completed/failed */ - status?: string; - /** Timestamp when the node began executing */ - startedAt?: string; - /** Timestamp when the node finished (success or failure) */ - completedAt?: string; - /** Machine-readable error code when status = failed */ - errorCode?: string; - /** Human-readable error description when status = failed */ - errorMessage?: string; - /** FK to execution_outputs — content-addressed output blob for this node */ - outputId?: string; +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; } -/** An input for mutations affecting `PlatformNamespace` */ -export interface PlatformNamespaceInput { - id?: string; - createdAt?: string; - updatedAt?: string; - /** Human-readable namespace name (e.g. default, production, oauth) */ - name: string; - /** Globally unique computed namespace identifier via inflection.underscore */ - namespaceName: string; - /** Optional human-readable description of this namespace */ - description?: string; - /** Whether this namespace is active (soft-disable for filtering) */ - isActive?: boolean; - /** Key/value pairs for selecting and filtering namespaces */ - labels?: Record; - /** Freeform metadata for tooling and operational notes */ - annotations?: Record; - /** Database that owns this resource (database-scoped isolation) */ - databaseId: string; - /** Database that created this namespace (NULL for platform-native namespaces) */ - sourceDatabaseId?: string; - /** Origin scope: platform, org, app — indicates where this namespace was created */ - sourceScope?: string; - /** true = created by a child scope mirror trigger, false = platform-native */ - isManaged?: boolean; +export type UpdateInfraRefPayloadSelect = { + clientMutationId?: boolean; + infraRef?: { + select: InfraRefSelect; + }; + infraRefEdge?: { + select: InfraRefEdgeSelect; + }; +}; +export interface DeleteInfraRefPayload { + clientMutationId?: string | null; + /** The `InfraRef` that was deleted by this mutation. */ + infraRef?: InfraRef | null; + infraRefEdge?: InfraRefEdge | null; } -/** An input for mutations affecting `OrgFunctionInvocation` */ -export interface OrgFunctionInvocationInput { - /** Invocation creation timestamp (partition key) */ - createdAt?: string; - /** Unique invocation identifier */ - id?: string; - /** Who triggered the invocation (NULL for system/cron) */ - actorId?: string; - /** Function routing slug (scope:name). Links to function_definitions.task_identifier by convention — no FK. */ - taskIdentifier: string; - /** Function input payload */ - payload?: Record; - /** Lifecycle: pending → running → completed/failed/cancelled */ - status?: string; - /** Function return value (success) or structured error (failure) */ - result?: Record; - /** Error message when status is failed */ - error?: string; - /** Wall-clock execution time in milliseconds */ - durationMs?: number; - /** FK to app_jobs.jobs — the underlying transport */ - jobId?: string; - /** When execution started */ - startedAt?: string; - /** When execution completed */ - completedAt?: string; - /** Parent invocation when this is a child node of a flow graph execution */ - parentInvocationId?: string; - /** Groups all node invocations from a single flow graph execution */ - graphExecutionId?: string; +export type DeleteInfraRefPayloadSelect = { + clientMutationId?: boolean; + infraRef?: { + select: InfraRefSelect; + }; + infraRefEdge?: { + select: InfraRefEdgeSelect; + }; +}; +export interface CreateInfraStorePayload { + clientMutationId?: string | null; + /** The `InfraStore` that was created by this mutation. */ + infraStore?: InfraStore | null; + infraStoreEdge?: InfraStoreEdge | null; } -/** An input for mutations affecting `FunctionInvocation` */ -export interface FunctionInvocationInput { - /** Invocation creation timestamp (partition key) */ - createdAt?: string; - /** Unique invocation identifier */ - id?: string; - /** Who triggered the invocation (NULL for system/cron) */ - actorId?: string; - /** Database that owns this resource (database-scoped isolation) */ - databaseId: string; - /** Function routing slug (scope:name). Links to function_definitions.task_identifier by convention — no FK. */ - taskIdentifier: string; - /** Function input payload */ - payload?: Record; - /** Lifecycle: pending → running → completed/failed/cancelled */ - status?: string; - /** Function return value (success) or structured error (failure) */ - result?: Record; - /** Error message when status is failed */ - error?: string; - /** Wall-clock execution time in milliseconds */ - durationMs?: number; - /** FK to app_jobs.jobs — the underlying transport */ - jobId?: string; - /** When execution started */ - startedAt?: string; - /** When execution completed */ - completedAt?: string; - /** Parent invocation when this is a child node of a flow graph execution */ - parentInvocationId?: string; - /** Groups all node invocations from a single flow graph execution */ - graphExecutionId?: string; +export type CreateInfraStorePayloadSelect = { + clientMutationId?: boolean; + infraStore?: { + select: InfraStoreSelect; + }; + infraStoreEdge?: { + select: InfraStoreEdgeSelect; + }; +}; +export interface UpdateInfraStorePayload { + clientMutationId?: string | null; + /** The `InfraStore` that was updated by this mutation. */ + infraStore?: InfraStore | null; + infraStoreEdge?: InfraStoreEdge | null; } -/** An input for mutations affecting `PlatformNamespaceEvent` */ -export interface PlatformNamespaceEventInput { - /** Event timestamp (partition key) */ - createdAt?: string; - /** Unique event identifier */ - id?: string; - /** Namespace this event belongs to */ - namespaceId: string; - /** Event type: created, activated, deactivated, labels_updated, annotations_updated, renamed */ - eventType: string; - /** User who triggered this event (NULL for system/automated) */ - actorId?: string; - /** Human-readable description of the event */ - message?: string; - /** Structured context (old/new values, labels diff, etc.) */ - metadata?: Record; - /** CPU usage in millicores at time of event */ - cpuMillicores?: number; - /** Memory usage in bytes at time of event */ - memoryBytes?: string; - /** Storage usage in bytes at time of event */ - storageBytes?: string; - /** Network ingress in bytes during event window */ - networkIngressBytes?: string; - /** Network egress in bytes during event window */ - networkEgressBytes?: string; - /** Number of active pods in the namespace at time of event */ - podCount?: number; - /** Additional resource metrics (gpu, replicas, quotas, etc.) */ - metrics?: Record; - /** Database that owns this resource (database-scoped isolation) */ - databaseId: string; +export type UpdateInfraStorePayloadSelect = { + clientMutationId?: boolean; + infraStore?: { + select: InfraStoreSelect; + }; + infraStoreEdge?: { + select: InfraStoreEdgeSelect; + }; +}; +export interface DeleteInfraStorePayload { + clientMutationId?: string | null; + /** The `InfraStore` that was deleted by this mutation. */ + infraStore?: InfraStore | null; + infraStoreEdge?: InfraStoreEdge | null; } -/** An input for mutations affecting `FunctionGraphExecution` */ -export interface FunctionGraphExecutionInput { - /** Execution start timestamp */ - startedAt?: string; - /** Unique execution identifier */ - id?: string; - /** FK to the graph definition being executed */ - graphId: string; - /** Parent function_invocations row (for metering) */ - invocationId?: string; - /** Scope for multi-tenant isolation */ - databaseId: string; - /** Target output boundary node name to resolve */ - outputNode: string; - /** Target output port name (default: value) */ - outputPort?: string; - /** Lifecycle: pending → running → completed/failed/cancelled */ - status?: string; - /** Initial inputs provided at invocation time */ - inputPayload?: Record; - /** Final result extracted from terminal output node */ - outputPayload?: Record; - /** Map of node_name → execution output id (content-addressed hash reference) */ - nodeOutputs?: Record; - /** Pre-computed topological sort as array of wave objects */ - executionPlan?: Record; - /** Index into execution_plan — tick only processes this wave */ - currentWave?: number; - /** Parent execution when this is a sub-execution */ - parentExecutionId?: string; - /** Node name in parent execution that spawned this sub-execution */ - parentNodeName?: string; - /** Pinned definitions store commit for deterministic evaluation */ - definitionsCommitId?: string; - /** Number of evaluate_step ticks executed */ - tickCount?: number; - /** Execution completion timestamp */ - completedAt?: string; - /** Maximum ticks before execution is failed (default 100) */ - maxTicks?: number; - /** Maximum pending jobs before execution is failed (default 50) */ - maxPendingJobs?: number; - /** Absolute deadline — execution fails if still running after this time */ - timeoutAt?: string; - /** Machine-readable error code when status = failed */ - errorCode?: string; - /** Human-readable error description when status = failed */ - errorMessage?: string; +export type DeleteInfraStorePayloadSelect = { + clientMutationId?: boolean; + infraStore?: { + select: InfraStoreSelect; + }; + infraStoreEdge?: { + select: InfraStoreEdgeSelect; + }; +}; +export interface CreateFunctionApiBindingPayload { + clientMutationId?: string | null; + /** The `FunctionApiBinding` that was created by this mutation. */ + functionApiBinding?: FunctionApiBinding | null; + functionApiBindingEdge?: FunctionApiBindingEdge | null; } -/** An input for mutations affecting `FunctionDefinition` */ -export interface FunctionDefinitionInput { - id?: string; - createdAt?: string; - updatedAt?: string; - /** Function grouping scope (e.g. email, embed, chunk, custom) */ - scope: string; - /** Function name within scope (e.g. send_verification_link, process_file_embedding) */ - name: string; - /** Computed routing slug: scope:name (used by Knative job worker for dispatch) */ - taskIdentifier: string; - /** Human-readable description of what this function does */ - description?: string; - /** Whether this function can be called via function_invocations (public API). Default false = internal-only via add_job() */ - isInvocable?: boolean; - /** Maximum retry attempts for the underlying job */ - maxAttempts?: number; - /** Job priority (lower = higher priority) */ - priority?: number; - /** Job queue name for serialization (e.g. email, ai, default) */ - queueName?: string; - /** Execution mode: http (Knative Service dispatch) or inline (in-process in compute worker) */ - runtime?: string; - /** Docker image reference (e.g. ghcr.io/constructive-io/email-send-fn:latest). Required when runtime=http. NULL for inline functions. */ - image?: string; - /** Knative containerConcurrency — max concurrent requests per pod instance */ - concurrency?: number; - /** Minimum pod count for Knative autoscaling (minScale) */ - scaleMin?: number; - /** Maximum pod count for Knative autoscaling (maxScale) */ - scaleMax?: number; - /** Knative request timeout in seconds */ - timeoutSeconds?: number; - /** Container resource requests and limits: {requests: {memory, cpu}, limits: {memory, cpu}} */ - resources?: Record; - /** Whether this function is a built-in platform function (synced from platform) vs user-created */ - isBuiltIn?: boolean; - /** Embedded secret requirements: array of (name, required) tuples */ - requiredSecrets?: FunctionRequirementInput[]; - /** Embedded config requirements: array of (name, required) tuples */ - requiredConfigs?: FunctionRequirementInput[]; - /** Bucket keys this function needs (e.g. uploads, exports). Empty = no bucket requirements. */ - requiredBuckets?: string[]; - /** Inference model whitelist (e.g. gpt-4o, claude-3). Empty = no model requirements. */ - requiredModels?: string[]; - /** Data input ports: [{name, type, description?, optional?, multi?, schema?}] */ - inputs?: Record; - /** Data output ports: [{name, type, description?, optional?, multi?, schema?}] */ - outputs?: Record; - /** Configuration properties: [{name, type, default?, description?, required?, schema?}] */ - props?: Record; - /** Whether this function has side effects and cannot be cached or memoized */ - volatile?: boolean; - /** Icon identifier for UI palette rendering (e.g. mail, database, code) */ - icon?: string; - /** Palette grouping category (e.g. email, data, ai, custom) */ - category?: string; +export type CreateFunctionApiBindingPayloadSelect = { + clientMutationId?: boolean; + functionApiBinding?: { + select: FunctionApiBindingSelect; + }; + functionApiBindingEdge?: { + select: FunctionApiBindingEdgeSelect; + }; +}; +export interface UpdateFunctionApiBindingPayload { + clientMutationId?: string | null; + /** The `FunctionApiBinding` that was updated by this mutation. */ + functionApiBinding?: FunctionApiBinding | null; + functionApiBindingEdge?: FunctionApiBindingEdge | null; +} +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 `FunctionRequirement` */ -export interface FunctionRequirementInput { - name?: string; - required?: boolean; +export type DeleteFunctionApiBindingPayloadSelect = { + clientMutationId?: boolean; + functionApiBinding?: { + select: FunctionApiBindingSelect; + }; + functionApiBindingEdge?: { + select: FunctionApiBindingEdgeSelect; + }; +}; +export interface CreateFunctionGraphRefPayload { + clientMutationId?: string | null; + /** The `FunctionGraphRef` that was created by this mutation. */ + functionGraphRef?: FunctionGraphRef | null; + functionGraphRefEdge?: FunctionGraphRefEdge | null; } -/** An interval of time that has passed where the smallest distinct unit is a second. */ -export interface IntervalInput { - /** - * A quantity of seconds. This is the only non-integer field, as all the other - * fields will dump their overflow into a smaller unit of time. Intervals don’t - * have a smaller unit than seconds. - */ - seconds?: number; - /** A quantity of minutes. */ - minutes?: number; - /** A quantity of hours. */ - hours?: number; - /** A quantity of days. */ - days?: number; - /** A quantity of months. */ - months?: number; - /** A quantity of years. */ - years?: number; +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 `FunctionDeployment` object types. All fields are combined with a logical ‘and.’ */ -export interface FunctionDeploymentFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `functionDefinitionId` field. */ - functionDefinitionId?: UUIDFilter; - /** Filter by the object’s `namespaceId` field. */ - namespaceId?: UUIDFilter; - /** Filter by the object’s `status` field. */ - status?: StringFilter; - /** Filter by the object’s `serviceUrl` field. */ - serviceUrl?: StringFilter; - /** Filter by the object’s `serviceName` field. */ - serviceName?: StringFilter; - /** Filter by the object’s `revision` field. */ - revision?: IntFilter; - /** Filter by the object’s `image` field. */ - image?: StringFilter; - /** Filter by the object’s `concurrency` field. */ - concurrency?: IntFilter; - /** Filter by the object’s `scaleMin` field. */ - scaleMin?: IntFilter; - /** Filter by the object’s `scaleMax` field. */ - scaleMax?: IntFilter; - /** Filter by the object’s `timeoutSeconds` field. */ - timeoutSeconds?: IntFilter; - /** Filter by the object’s `resources` field. */ - resources?: JSONFilter; - /** Filter by the object’s `lastError` field. */ - lastError?: StringFilter; - /** Filter by the object’s `lastErrorAt` field. */ - lastErrorAt?: DatetimeFilter; - /** Filter by the object’s `errorCount` field. */ - errorCount?: IntFilter; - /** Filter by the object’s `labels` field. */ - labels?: JSONFilter; - /** Filter by the object’s `annotations` field. */ - annotations?: JSONFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: FunctionDeploymentFilter[]; - /** Checks for any expressions in this list. */ - or?: FunctionDeploymentFilter[]; - /** Negates the expression. */ - not?: FunctionDeploymentFilter; - /** Filter by the object’s `functionDefinition` relation. */ - functionDefinition?: FunctionDefinitionFilter; - /** Filter by the object’s `namespace` relation. */ - namespace?: PlatformNamespaceFilter; +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 `Resource` object types. All fields are combined with a logical ‘and.’ */ -export interface ResourceFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `createdBy` field. */ - createdBy?: UUIDFilter; - /** Filter by the object’s `updatedBy` field. */ - updatedBy?: UUIDFilter; - /** Filter by the object’s `namespaceId` field. */ - namespaceId?: UUIDFilter; - /** Filter by the object’s `kind` field. */ - kind?: StringFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** 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 `lastError` field. */ - lastError?: StringFilter; - /** Filter by the object’s `errorCount` field. */ - errorCount?: IntFilter; - /** Filter by the object’s `labels` field. */ - labels?: JSONFilter; - /** Filter by the object’s `annotations` field. */ - annotations?: JSONFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: ResourceFilter[]; - /** Checks for any expressions in this list. */ - or?: ResourceFilter[]; - /** Negates the expression. */ - not?: ResourceFilter; - /** Filter by the object’s `namespace` relation. */ - namespace?: PlatformNamespaceFilter; +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 `FunctionApiBinding` object types. All fields are combined with a logical ‘and.’ */ -export interface FunctionApiBindingFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `functionDefinitionId` field. */ - functionDefinitionId?: UUIDFilter; - /** Filter by the object’s `apiId` field. */ - apiId?: UUIDFilter; - /** Filter by the object’s `alias` field. */ - alias?: StringFilter; - /** Filter by the object’s `config` field. */ - config?: JSONFilter; - /** Checks for all expressions in this list. */ - and?: FunctionApiBindingFilter[]; - /** Checks for any expressions in this list. */ - or?: FunctionApiBindingFilter[]; - /** Negates the expression. */ - not?: FunctionApiBindingFilter; - /** Filter by the object’s `functionDefinition` relation. */ - functionDefinition?: FunctionDefinitionFilter; +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 UUID fields. All fields are combined with a logical ‘and.’ */ -export interface UUIDFilter { - /** Is null (if `true` is specified) or is not null (if `false` is specified). */ - isNull?: boolean; - /** Equal to the specified value. */ - equalTo?: string; - /** Not equal to the specified value. */ - notEqualTo?: string; - /** Not equal to the specified value, treating null like an ordinary value. */ - distinctFrom?: string; - /** Equal to the specified value, treating null like an ordinary value. */ - notDistinctFrom?: string; - /** Included in the specified list. */ - in?: string[]; - /** Not included in the specified list. */ - notIn?: string[]; - /** Less than the specified value. */ - lessThan?: string; - /** Less than or equal to the specified value. */ - lessThanOrEqualTo?: string; - /** Greater than the specified value. */ - greaterThan?: string; - /** Greater than or equal to the specified value. */ - greaterThanOrEqualTo?: string; +export type UpdateFunctionGraphStorePayloadSelect = { + clientMutationId?: boolean; + functionGraphStore?: { + select: FunctionGraphStoreSelect; + }; + functionGraphStoreEdge?: { + select: FunctionGraphStoreEdgeSelect; + }; +}; +export interface DeleteFunctionGraphStorePayload { + clientMutationId?: string | null; + /** The `FunctionGraphStore` that was deleted by this mutation. */ + functionGraphStore?: FunctionGraphStore | null; + functionGraphStoreEdge?: FunctionGraphStoreEdge | null; } -/** A filter to be used against Datetime fields. All fields are combined with a logical ‘and.’ */ -export interface DatetimeFilter { - /** Is null (if `true` is specified) or is not null (if `false` is specified). */ - isNull?: boolean; - /** Equal to the specified value. */ - equalTo?: string; - /** Not equal to the specified value. */ - notEqualTo?: string; - /** Not equal to the specified value, treating null like an ordinary value. */ - distinctFrom?: string; - /** Equal to the specified value, treating null like an ordinary value. */ - notDistinctFrom?: string; - /** Included in the specified list. */ - in?: string[]; - /** Not included in the specified list. */ - notIn?: string[]; - /** Less than the specified value. */ - lessThan?: string; - /** Less than or equal to the specified value. */ - lessThanOrEqualTo?: string; - /** Greater than the specified value. */ - greaterThan?: string; - /** Greater than or equal to the specified value. */ - greaterThanOrEqualTo?: string; +export type DeleteFunctionGraphStorePayloadSelect = { + clientMutationId?: boolean; + functionGraphStore?: { + select: FunctionGraphStoreSelect; + }; + functionGraphStoreEdge?: { + select: FunctionGraphStoreEdgeSelect; + }; +}; +export interface CreatePlatformFunctionApiBindingPayload { + clientMutationId?: string | null; + /** The `PlatformFunctionApiBinding` that was created by this mutation. */ + platformFunctionApiBinding?: PlatformFunctionApiBinding | null; + platformFunctionApiBindingEdge?: PlatformFunctionApiBindingEdge | null; } -/** A filter to be used against String fields. All fields are combined with a logical ‘and.’ */ -export interface StringFilter { - /** Is null (if `true` is specified) or is not null (if `false` is specified). */ - isNull?: boolean; - /** Equal to the specified value. */ - equalTo?: string; - /** Not equal to the specified value. */ - notEqualTo?: string; - /** Not equal to the specified value, treating null like an ordinary value. */ - distinctFrom?: string; - /** Equal to the specified value, treating null like an ordinary value. */ - notDistinctFrom?: string; - /** Included in the specified list. */ - in?: string[]; - /** Not included in the specified list. */ - notIn?: string[]; - /** Less than the specified value. */ - lessThan?: string; - /** Less than or equal to the specified value. */ - lessThanOrEqualTo?: string; - /** Greater than the specified value. */ - greaterThan?: string; - /** Greater than or equal to the specified value. */ - greaterThanOrEqualTo?: string; - /** Contains the specified string (case-sensitive). */ - includes?: string; - /** Does not contain the specified string (case-sensitive). */ - notIncludes?: string; - /** Contains the specified string (case-insensitive). */ - includesInsensitive?: string; - /** Does not contain the specified string (case-insensitive). */ - notIncludesInsensitive?: string; - /** Starts with the specified string (case-sensitive). */ - startsWith?: string; - /** Does not start with the specified string (case-sensitive). */ - notStartsWith?: string; - /** Starts with the specified string (case-insensitive). */ - startsWithInsensitive?: string; - /** Does not start with the specified string (case-insensitive). */ - notStartsWithInsensitive?: string; - /** Ends with the specified string (case-sensitive). */ - endsWith?: string; - /** Does not end with the specified string (case-sensitive). */ - notEndsWith?: string; - /** Ends with the specified string (case-insensitive). */ - endsWithInsensitive?: string; - /** Does not end with the specified string (case-insensitive). */ - notEndsWithInsensitive?: string; - /** Matches the specified pattern (case-sensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. */ - like?: string; - /** Does not match the specified pattern (case-sensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. */ - notLike?: string; - /** Matches the specified pattern (case-insensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. */ - likeInsensitive?: string; - /** Does not match the specified pattern (case-insensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. */ - notLikeInsensitive?: string; - /** Equal to the specified value (case-insensitive). */ - equalToInsensitive?: string; - /** Not equal to the specified value (case-insensitive). */ - notEqualToInsensitive?: string; - /** Not equal to the specified value, treating null like an ordinary value (case-insensitive). */ - distinctFromInsensitive?: string; - /** Equal to the specified value, treating null like an ordinary value (case-insensitive). */ - notDistinctFromInsensitive?: string; - /** Included in the specified list (case-insensitive). */ - inInsensitive?: string[]; - /** Not included in the specified list (case-insensitive). */ - notInInsensitive?: string[]; - /** Less than the specified value (case-insensitive). */ - lessThanInsensitive?: string; - /** Less than or equal to the specified value (case-insensitive). */ - lessThanOrEqualToInsensitive?: string; - /** Greater than the specified value (case-insensitive). */ - greaterThanInsensitive?: string; - /** Greater than or equal to the specified value (case-insensitive). */ - greaterThanOrEqualToInsensitive?: string; +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; } -/** A filter to be used against Int fields. All fields are combined with a logical ‘and.’ */ -export interface IntFilter { - /** Is null (if `true` is specified) or is not null (if `false` is specified). */ - isNull?: boolean; - /** Equal to the specified value. */ - equalTo?: number; - /** Not equal to the specified value. */ - notEqualTo?: number; - /** Not equal to the specified value, treating null like an ordinary value. */ - distinctFrom?: number; - /** Equal to the specified value, treating null like an ordinary value. */ - notDistinctFrom?: number; - /** Included in the specified list. */ - in?: number[]; - /** Not included in the specified list. */ - notIn?: number[]; - /** Less than the specified value. */ - lessThan?: number; - /** Less than or equal to the specified value. */ - lessThanOrEqualTo?: number; - /** Greater than the specified value. */ - greaterThan?: number; - /** Greater than or equal to the specified value. */ - greaterThanOrEqualTo?: number; +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; } -/** A filter to be used against JSON fields. All fields are combined with a logical ‘and.’ */ -export interface JSONFilter { - /** Is null (if `true` is specified) or is not null (if `false` is specified). */ - isNull?: boolean; - /** Equal to the specified value. */ - equalTo?: Record; - /** Not equal to the specified value. */ - notEqualTo?: Record; - /** Not equal to the specified value, treating null like an ordinary value. */ - distinctFrom?: Record; - /** Equal to the specified value, treating null like an ordinary value. */ - notDistinctFrom?: Record; - /** Included in the specified list. */ - in?: Record[]; - /** Not included in the specified list. */ - notIn?: Record[]; - /** Less than the specified value. */ - lessThan?: Record; - /** Less than or equal to the specified value. */ - lessThanOrEqualTo?: Record; - /** Greater than the specified value. */ - greaterThan?: Record; - /** Greater than or equal to the specified value. */ - greaterThanOrEqualTo?: Record; - /** Contains the specified JSON. */ - contains?: Record; - /** Contains the specified key. */ - containsKey?: string; - /** Contains all of the specified keys. */ - containsAllKeys?: string[]; - /** Contains any of the specified keys. */ - containsAnyKeys?: string[]; - /** Contained by the specified JSON. */ - containedBy?: Record; +export type DeletePlatformFunctionApiBindingPayloadSelect = { + clientMutationId?: boolean; + platformFunctionApiBinding?: { + select: PlatformFunctionApiBindingSelect; + }; + platformFunctionApiBindingEdge?: { + select: PlatformFunctionApiBindingEdgeSelect; + }; +}; +export interface CreatePlatformResourceStatusCheckPayload { + clientMutationId?: string | null; + /** The `PlatformResourceStatusCheck` that was created by this mutation. */ + platformResourceStatusCheck?: PlatformResourceStatusCheck | null; + platformResourceStatusCheckEdge?: PlatformResourceStatusCheckEdge | 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 `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `scope` field. */ - scope?: StringFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `taskIdentifier` field. */ - taskIdentifier?: StringFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Filter by the object’s `isInvocable` field. */ - isInvocable?: BooleanFilter; - /** Filter by the object’s `maxAttempts` field. */ - maxAttempts?: IntFilter; - /** Filter by the object’s `priority` field. */ - priority?: IntFilter; - /** Filter by the object’s `queueName` field. */ - queueName?: StringFilter; - /** Filter by the object’s `runtime` field. */ - runtime?: StringFilter; - /** Filter by the object’s `image` field. */ - image?: StringFilter; - /** Filter by the object’s `concurrency` field. */ - concurrency?: IntFilter; - /** Filter by the object’s `scaleMin` field. */ - scaleMin?: IntFilter; - /** Filter by the object’s `scaleMax` field. */ - scaleMax?: IntFilter; - /** Filter by the object’s `timeoutSeconds` field. */ - timeoutSeconds?: IntFilter; - /** Filter by the object’s `resources` field. */ - resources?: JSONFilter; - /** Filter by the object’s `isBuiltIn` field. */ - isBuiltIn?: BooleanFilter; - /** Filter by the object’s `requiredBuckets` field. */ - requiredBuckets?: StringListFilter; - /** Filter by the object’s `requiredModels` field. */ - requiredModels?: StringListFilter; - /** Filter by the object’s `inputs` field. */ - inputs?: JSONFilter; - /** Filter by the object’s `outputs` field. */ - outputs?: JSONFilter; - /** Filter by the object’s `props` field. */ - props?: JSONFilter; - /** Filter by the object’s `volatile` field. */ - volatile?: BooleanFilter; - /** Filter by the object’s `icon` field. */ - icon?: StringFilter; - /** Filter by the object’s `category` field. */ - category?: StringFilter; - /** Checks for all expressions in this list. */ - and?: FunctionDefinitionFilter[]; - /** Checks for any expressions in this list. */ - or?: FunctionDefinitionFilter[]; - /** Negates the expression. */ - not?: FunctionDefinitionFilter; - /** Filter by the object’s `functionApiBindings` relation. */ - functionApiBindings?: FunctionDefinitionToManyFunctionApiBindingFilter; - /** `functionApiBindings` exist. */ - functionApiBindingsExist?: boolean; - /** Filter by the object’s `functionDeployments` relation. */ - functionDeployments?: FunctionDefinitionToManyFunctionDeploymentFilter; - /** `functionDeployments` exist. */ - functionDeploymentsExist?: boolean; +export type CreatePlatformResourceStatusCheckPayloadSelect = { + clientMutationId?: boolean; + platformResourceStatusCheck?: { + select: PlatformResourceStatusCheckSelect; + }; + platformResourceStatusCheckEdge?: { + select: PlatformResourceStatusCheckEdgeSelect; + }; +}; +export interface UpdatePlatformResourceStatusCheckPayload { + clientMutationId?: string | null; + /** The `PlatformResourceStatusCheck` that was updated by this mutation. */ + platformResourceStatusCheck?: PlatformResourceStatusCheck | null; + platformResourceStatusCheckEdge?: PlatformResourceStatusCheckEdge | null; } -/** A filter to be used against `PlatformNamespace` object types. All fields are combined with a logical ‘and.’ */ -export interface PlatformNamespaceFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `namespaceName` field. */ - namespaceName?: StringFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Filter by the object’s `isActive` field. */ - isActive?: BooleanFilter; - /** Filter by the object’s `labels` field. */ - labels?: JSONFilter; - /** Filter by the object’s `annotations` field. */ - annotations?: JSONFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `sourceDatabaseId` field. */ - sourceDatabaseId?: UUIDFilter; - /** Filter by the object’s `sourceScope` field. */ - sourceScope?: StringFilter; - /** Filter by the object’s `isManaged` field. */ - isManaged?: BooleanFilter; - /** Checks for all expressions in this list. */ - and?: PlatformNamespaceFilter[]; - /** Checks for any expressions in this list. */ - or?: PlatformNamespaceFilter[]; - /** Negates the expression. */ - not?: PlatformNamespaceFilter; - /** Filter by the object’s `functionDeploymentsByNamespaceId` relation. */ - functionDeploymentsByNamespaceId?: PlatformNamespaceToManyFunctionDeploymentFilter; - /** `functionDeploymentsByNamespaceId` exist. */ - functionDeploymentsByNamespaceIdExist?: boolean; - /** Filter by the object’s `resourcesByNamespaceId` relation. */ - resourcesByNamespaceId?: PlatformNamespaceToManyResourceFilter; - /** `resourcesByNamespaceId` exist. */ - resourcesByNamespaceIdExist?: boolean; +export type UpdatePlatformResourceStatusCheckPayloadSelect = { + clientMutationId?: boolean; + platformResourceStatusCheck?: { + select: PlatformResourceStatusCheckSelect; + }; + platformResourceStatusCheckEdge?: { + select: PlatformResourceStatusCheckEdgeSelect; + }; +}; +export interface DeletePlatformResourceStatusCheckPayload { + clientMutationId?: string | null; + /** The `PlatformResourceStatusCheck` that was deleted by this mutation. */ + platformResourceStatusCheck?: PlatformResourceStatusCheck | null; + platformResourceStatusCheckEdge?: PlatformResourceStatusCheckEdge | null; } -/** A filter to be used against Boolean fields. All fields are combined with a logical ‘and.’ */ -export interface BooleanFilter { - /** Is null (if `true` is specified) or is not null (if `false` is specified). */ - isNull?: boolean; - /** Equal to the specified value. */ - equalTo?: boolean; - /** Not equal to the specified value. */ - notEqualTo?: boolean; - /** Not equal to the specified value, treating null like an ordinary value. */ - distinctFrom?: boolean; - /** Equal to the specified value, treating null like an ordinary value. */ - notDistinctFrom?: boolean; - /** Included in the specified list. */ - in?: boolean[]; - /** Not included in the specified list. */ - notIn?: boolean[]; - /** Less than the specified value. */ - lessThan?: boolean; - /** Less than or equal to the specified value. */ - lessThanOrEqualTo?: boolean; - /** Greater than the specified value. */ - greaterThan?: boolean; - /** Greater than or equal to the specified value. */ - greaterThanOrEqualTo?: boolean; +export type DeletePlatformResourceStatusCheckPayloadSelect = { + clientMutationId?: boolean; + platformResourceStatusCheck?: { + select: PlatformResourceStatusCheckSelect; + }; + platformResourceStatusCheckEdge?: { + select: PlatformResourceStatusCheckEdgeSelect; + }; +}; +export interface CreatePlatformFunctionDeploymentPayload { + clientMutationId?: string | null; + /** The `PlatformFunctionDeployment` that was created by this mutation. */ + platformFunctionDeployment?: PlatformFunctionDeployment | null; + platformFunctionDeploymentEdge?: PlatformFunctionDeploymentEdge | null; } -/** A filter to be used against String List fields. All fields are combined with a logical ‘and.’ */ -export interface StringListFilter { - /** Is null (if `true` is specified) or is not null (if `false` is specified). */ - isNull?: boolean; - /** Equal to the specified value. */ - equalTo?: string[]; - /** Not equal to the specified value. */ - notEqualTo?: string[]; - /** Not equal to the specified value, treating null like an ordinary value. */ - distinctFrom?: string[]; - /** Equal to the specified value, treating null like an ordinary value. */ - notDistinctFrom?: string[]; - /** Less than the specified value. */ - lessThan?: string[]; - /** Less than or equal to the specified value. */ - lessThanOrEqualTo?: string[]; - /** Greater than the specified value. */ - greaterThan?: string[]; - /** Greater than or equal to the specified value. */ - greaterThanOrEqualTo?: string[]; - /** Contains the specified list of values. */ - contains?: string[]; - /** Contained by the specified list of values. */ - containedBy?: string[]; - /** Overlaps the specified list of values. */ - overlaps?: string[]; - /** Any array item is equal to the specified value. */ - anyEqualTo?: string; - /** Any array item is not equal to the specified value. */ - anyNotEqualTo?: 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 greater than the specified value. */ - anyGreaterThan?: string; - /** Any array item is greater than or equal to the specified value. */ - anyGreaterThanOrEqualTo?: string; +export type CreatePlatformFunctionDeploymentPayloadSelect = { + clientMutationId?: boolean; + platformFunctionDeployment?: { + select: PlatformFunctionDeploymentSelect; + }; + platformFunctionDeploymentEdge?: { + select: PlatformFunctionDeploymentEdgeSelect; + }; +}; +export interface UpdatePlatformFunctionDeploymentPayload { + clientMutationId?: string | null; + /** The `PlatformFunctionDeployment` that was updated by this mutation. */ + platformFunctionDeployment?: PlatformFunctionDeployment | null; + platformFunctionDeploymentEdge?: PlatformFunctionDeploymentEdge | null; } -// ============ Payload/Return Types (for custom operations) ============ -export interface ValidateFunctionGraphPayload { +export type UpdatePlatformFunctionDeploymentPayloadSelect = { + clientMutationId?: boolean; + platformFunctionDeployment?: { + select: PlatformFunctionDeploymentSelect; + }; + platformFunctionDeploymentEdge?: { + select: PlatformFunctionDeploymentEdgeSelect; + }; +}; +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 InitEmptyRepoPayload { +export interface CreatePlatformResourcePayload { clientMutationId?: string | null; + /** The `PlatformResource` that was created by this mutation. */ + platformResource?: PlatformResource | null; + platformResourceEdge?: PlatformResourceEdge | null; } -export type InitEmptyRepoPayloadSelect = { +export type CreatePlatformResourcePayloadSelect = { clientMutationId?: boolean; + platformResource?: { + select: PlatformResourceSelect; + }; + platformResourceEdge?: { + select: PlatformResourceEdgeSelect; + }; }; -export interface SetDataAtPathPayload { +export interface UpdatePlatformResourcePayload { clientMutationId?: string | null; - result?: string | null; + /** The `PlatformResource` that was updated by this mutation. */ + platformResource?: PlatformResource | null; + platformResourceEdge?: PlatformResourceEdge | null; } -export type SetDataAtPathPayloadSelect = { +export type UpdatePlatformResourcePayloadSelect = { clientMutationId?: boolean; - result?: boolean; + platformResource?: { + select: PlatformResourceSelect; + }; + platformResourceEdge?: { + select: PlatformResourceEdgeSelect; + }; }; -export interface ImportDefinitionsPayload { +export interface DeletePlatformResourcePayload { clientMutationId?: string | null; + /** The `PlatformResource` that was deleted by this mutation. */ + platformResource?: PlatformResource | null; + platformResourceEdge?: PlatformResourceEdge | null; } -export type ImportDefinitionsPayloadSelect = { +export type DeletePlatformResourcePayloadSelect = { clientMutationId?: boolean; + platformResource?: { + select: PlatformResourceSelect; + }; + platformResourceEdge?: { + select: PlatformResourceEdgeSelect; + }; }; -export interface CopyGraphPayload { +export interface CreatePlatformResourceDefinitionPayload { clientMutationId?: string | null; - result?: string | null; + /** The `PlatformResourceDefinition` that was created by this mutation. */ + platformResourceDefinition?: PlatformResourceDefinition | null; + platformResourceDefinitionEdge?: PlatformResourceDefinitionEdge | null; } -export type CopyGraphPayloadSelect = { +export type CreatePlatformResourceDefinitionPayloadSelect = { clientMutationId?: boolean; - result?: boolean; + platformResourceDefinition?: { + select: PlatformResourceDefinitionSelect; + }; + platformResourceDefinitionEdge?: { + select: PlatformResourceDefinitionEdgeSelect; + }; }; -export interface SaveGraphPayload { +export interface UpdatePlatformResourceDefinitionPayload { clientMutationId?: string | null; - result?: string | null; + /** The `PlatformResourceDefinition` that was updated by this mutation. */ + platformResourceDefinition?: PlatformResourceDefinition | null; + platformResourceDefinitionEdge?: PlatformResourceDefinitionEdge | null; } -export type SaveGraphPayloadSelect = { +export type UpdatePlatformResourceDefinitionPayloadSelect = { clientMutationId?: boolean; - result?: boolean; + platformResourceDefinition?: { + select: PlatformResourceDefinitionSelect; + }; + platformResourceDefinitionEdge?: { + select: PlatformResourceDefinitionEdgeSelect; + }; }; -export interface AddEdgeAndSavePayload { +export interface DeletePlatformResourceDefinitionPayload { clientMutationId?: string | null; - result?: string | null; + /** The `PlatformResourceDefinition` that was deleted by this mutation. */ + platformResourceDefinition?: PlatformResourceDefinition | null; + platformResourceDefinitionEdge?: PlatformResourceDefinitionEdge | null; } -export type AddEdgeAndSavePayloadSelect = { +export type DeletePlatformResourceDefinitionPayloadSelect = { clientMutationId?: boolean; - result?: boolean; + platformResourceDefinition?: { + select: PlatformResourceDefinitionSelect; + }; + platformResourceDefinitionEdge?: { + select: PlatformResourceDefinitionEdgeSelect; + }; }; -export interface AddNodeAndSavePayload { +export interface CreateInfraObjectPayload { clientMutationId?: string | null; - result?: string | null; + /** The `InfraObject` that was created by this mutation. */ + infraObject?: InfraObject | null; + infraObjectEdge?: InfraObjectEdge | null; } -export type AddNodeAndSavePayloadSelect = { +export type CreateInfraObjectPayloadSelect = { clientMutationId?: boolean; - result?: boolean; + infraObject?: { + select: InfraObjectSelect; + }; + infraObjectEdge?: { + select: InfraObjectEdgeSelect; + }; }; -export interface ImportGraphJsonPayload { +export interface UpdateInfraObjectPayload { clientMutationId?: string | null; - result?: string | null; + /** The `InfraObject` that was updated by this mutation. */ + infraObject?: InfraObject | null; + infraObjectEdge?: InfraObjectEdge | null; } -export type ImportGraphJsonPayloadSelect = { +export type UpdateInfraObjectPayloadSelect = { clientMutationId?: boolean; - result?: boolean; + infraObject?: { + select: InfraObjectSelect; + }; + infraObjectEdge?: { + select: InfraObjectEdgeSelect; + }; }; -export interface AddEdgePayload { +export interface DeleteInfraObjectPayload { clientMutationId?: string | null; - result?: string | null; + /** The `InfraObject` that was deleted by this mutation. */ + infraObject?: InfraObject | null; + infraObjectEdge?: InfraObjectEdge | null; } -export type AddEdgePayloadSelect = { +export type DeleteInfraObjectPayloadSelect = { clientMutationId?: boolean; - result?: boolean; + infraObject?: { + select: InfraObjectSelect; + }; + infraObjectEdge?: { + select: InfraObjectEdgeSelect; + }; }; -export interface AddNodePayload { +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 AddNodePayloadSelect = { +export type CreateFunctionGraphObjectPayloadSelect = { clientMutationId?: boolean; - result?: boolean; + functionGraphObject?: { + select: FunctionGraphObjectSelect; + }; + functionGraphObjectEdge?: { + select: FunctionGraphObjectEdgeSelect; + }; }; -export interface InsertNodeAtPathPayload { +export interface UpdateFunctionGraphObjectPayload { clientMutationId?: string | null; - result?: string | null; + /** The `FunctionGraphObject` that was updated by this mutation. */ + functionGraphObject?: FunctionGraphObject | null; + functionGraphObjectEdge?: FunctionGraphObjectEdge | null; } -export type InsertNodeAtPathPayloadSelect = { +export type UpdateFunctionGraphObjectPayloadSelect = { clientMutationId?: boolean; - result?: boolean; + functionGraphObject?: { + select: FunctionGraphObjectSelect; + }; + functionGraphObjectEdge?: { + select: FunctionGraphObjectEdgeSelect; + }; }; -export interface StartExecutionPayload { +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 StartExecutionPayloadSelect = { +export type DeleteFunctionGraphObjectPayloadSelect = { clientMutationId?: boolean; - result?: boolean; + functionGraphObject?: { + select: FunctionGraphObjectSelect; + }; + functionGraphObjectEdge?: { + select: FunctionGraphObjectEdgeSelect; + }; }; -export interface ProvisionBucketPayload { - /** Whether provisioning succeeded */ - success: boolean; - /** The S3 bucket name that was provisioned */ - bucketName: string; - /** The access type applied */ - accessType: string; - /** The storage provider used */ - provider: string; - /** The S3 endpoint (null for AWS S3 default) */ - endpoint?: string | null; - /** Error message if provisioning failed */ - error?: string | null; +export interface CreatePlatformFunctionDeploymentEventPayload { + clientMutationId?: string | null; + /** The `PlatformFunctionDeploymentEvent` that was created by this mutation. */ + platformFunctionDeploymentEvent?: PlatformFunctionDeploymentEvent | null; + platformFunctionDeploymentEventEdge?: PlatformFunctionDeploymentEventEdge | null; +} +export type CreatePlatformFunctionDeploymentEventPayloadSelect = { + clientMutationId?: boolean; + platformFunctionDeploymentEvent?: { + select: PlatformFunctionDeploymentEventSelect; + }; + platformFunctionDeploymentEventEdge?: { + select: PlatformFunctionDeploymentEventEdgeSelect; + }; +}; +export interface UpdatePlatformFunctionDeploymentEventPayload { + clientMutationId?: string | null; + /** The `PlatformFunctionDeploymentEvent` that was updated by this mutation. */ + platformFunctionDeploymentEvent?: PlatformFunctionDeploymentEvent | null; + platformFunctionDeploymentEventEdge?: PlatformFunctionDeploymentEventEdge | null; +} +export type UpdatePlatformFunctionDeploymentEventPayloadSelect = { + clientMutationId?: boolean; + platformFunctionDeploymentEvent?: { + select: PlatformFunctionDeploymentEventSelect; + }; + platformFunctionDeploymentEventEdge?: { + select: PlatformFunctionDeploymentEventEdgeSelect; + }; +}; +export interface DeletePlatformFunctionDeploymentEventPayload { + clientMutationId?: string | null; + /** The `PlatformFunctionDeploymentEvent` that was deleted by this mutation. */ + platformFunctionDeploymentEvent?: PlatformFunctionDeploymentEvent | null; + platformFunctionDeploymentEventEdge?: PlatformFunctionDeploymentEventEdge | null; +} +export type DeletePlatformFunctionDeploymentEventPayloadSelect = { + clientMutationId?: boolean; + platformFunctionDeploymentEvent?: { + select: PlatformFunctionDeploymentEventSelect; + }; + platformFunctionDeploymentEventEdge?: { + select: PlatformFunctionDeploymentEventEdgeSelect; + }; +}; +export interface CreatePlatformResourceEventPayload { + clientMutationId?: string | null; + /** The `PlatformResourceEvent` that was created by this mutation. */ + platformResourceEvent?: PlatformResourceEvent | null; + platformResourceEventEdge?: PlatformResourceEventEdge | null; +} +export type CreatePlatformResourceEventPayloadSelect = { + clientMutationId?: boolean; + platformResourceEvent?: { + select: PlatformResourceEventSelect; + }; + platformResourceEventEdge?: { + select: PlatformResourceEventEdgeSelect; + }; +}; +export interface UpdatePlatformResourceEventPayload { + clientMutationId?: string | null; + /** The `PlatformResourceEvent` that was updated by this mutation. */ + platformResourceEvent?: PlatformResourceEvent | null; + platformResourceEventEdge?: PlatformResourceEventEdge | null; +} +export type UpdatePlatformResourceEventPayloadSelect = { + clientMutationId?: boolean; + platformResourceEvent?: { + select: PlatformResourceEventSelect; + }; + platformResourceEventEdge?: { + select: PlatformResourceEventEdgeSelect; + }; +}; +export interface DeletePlatformResourceEventPayload { + clientMutationId?: string | null; + /** The `PlatformResourceEvent` that was deleted by this mutation. */ + platformResourceEvent?: PlatformResourceEvent | null; + platformResourceEventEdge?: PlatformResourceEventEdge | null; } -export type ProvisionBucketPayloadSelect = { - success?: boolean; - bucketName?: boolean; - accessType?: boolean; - provider?: boolean; - endpoint?: boolean; - error?: boolean; +export type DeletePlatformResourceEventPayloadSelect = { + clientMutationId?: boolean; + platformResourceEvent?: { + select: PlatformResourceEventSelect; + }; + platformResourceEventEdge?: { + select: PlatformResourceEventEdgeSelect; + }; }; -export interface CreateFunctionApiBindingPayload { +export interface CreateResourceStatusCheckPayload { clientMutationId?: string | null; - /** The `FunctionApiBinding` that was created by this mutation. */ - functionApiBinding?: FunctionApiBinding | null; - functionApiBindingEdge?: FunctionApiBindingEdge | null; + /** The `ResourceStatusCheck` that was created by this mutation. */ + resourceStatusCheck?: ResourceStatusCheck | null; + resourceStatusCheckEdge?: ResourceStatusCheckEdge | null; } -export type CreateFunctionApiBindingPayloadSelect = { +export type CreateResourceStatusCheckPayloadSelect = { clientMutationId?: boolean; - functionApiBinding?: { - select: FunctionApiBindingSelect; + resourceStatusCheck?: { + select: ResourceStatusCheckSelect; }; - functionApiBindingEdge?: { - select: FunctionApiBindingEdgeSelect; + resourceStatusCheckEdge?: { + select: ResourceStatusCheckEdgeSelect; }; }; -export interface UpdateFunctionApiBindingPayload { +export interface UpdateResourceStatusCheckPayload { clientMutationId?: string | null; - /** The `FunctionApiBinding` that was updated by this mutation. */ - functionApiBinding?: FunctionApiBinding | null; - functionApiBindingEdge?: FunctionApiBindingEdge | null; + /** The `ResourceStatusCheck` that was updated by this mutation. */ + resourceStatusCheck?: ResourceStatusCheck | null; + resourceStatusCheckEdge?: ResourceStatusCheckEdge | null; } -export type UpdateFunctionApiBindingPayloadSelect = { +export type UpdateResourceStatusCheckPayloadSelect = { clientMutationId?: boolean; - functionApiBinding?: { - select: FunctionApiBindingSelect; + resourceStatusCheck?: { + select: ResourceStatusCheckSelect; }; - functionApiBindingEdge?: { - select: FunctionApiBindingEdgeSelect; + resourceStatusCheckEdge?: { + select: ResourceStatusCheckEdgeSelect; }; }; -export interface DeleteFunctionApiBindingPayload { +export interface DeleteResourceStatusCheckPayload { clientMutationId?: string | null; - /** The `FunctionApiBinding` that was deleted by this mutation. */ - functionApiBinding?: FunctionApiBinding | null; - functionApiBindingEdge?: FunctionApiBindingEdge | null; + /** The `ResourceStatusCheck` that was deleted by this mutation. */ + resourceStatusCheck?: ResourceStatusCheck | null; + resourceStatusCheckEdge?: ResourceStatusCheckEdge | null; } -export type DeleteFunctionApiBindingPayloadSelect = { +export type DeleteResourceStatusCheckPayloadSelect = { clientMutationId?: boolean; - functionApiBinding?: { - select: FunctionApiBindingSelect; + resourceStatusCheck?: { + select: ResourceStatusCheckSelect; }; - functionApiBindingEdge?: { - select: FunctionApiBindingEdgeSelect; + resourceStatusCheckEdge?: { + select: ResourceStatusCheckEdgeSelect; }; }; export interface CreateFunctionDeploymentPayload { @@ -4704,139 +9511,49 @@ export type DeleteResourcePayloadSelect = { select: ResourceEdgeSelect; }; }; -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; -} -export type UpdateFunctionGraphRefPayloadSelect = { - clientMutationId?: boolean; - functionGraphRef?: { - select: FunctionGraphRefSelect; - }; - functionGraphRefEdge?: { - select: FunctionGraphRefEdgeSelect; - }; -}; -export interface DeleteFunctionGraphRefPayload { - clientMutationId?: string | null; - /** The `FunctionGraphRef` that was deleted by this mutation. */ - functionGraphRef?: FunctionGraphRef | null; - functionGraphRefEdge?: FunctionGraphRefEdge | null; -} -export type DeleteFunctionGraphRefPayloadSelect = { - clientMutationId?: boolean; - functionGraphRef?: { - select: FunctionGraphRefSelect; - }; - functionGraphRefEdge?: { - select: FunctionGraphRefEdgeSelect; - }; -}; -export interface CreateFunctionGraphStorePayload { - clientMutationId?: string | null; - /** The `FunctionGraphStore` that was created by this mutation. */ - functionGraphStore?: FunctionGraphStore | null; - functionGraphStoreEdge?: FunctionGraphStoreEdge | null; -} -export type CreateFunctionGraphStorePayloadSelect = { - clientMutationId?: boolean; - functionGraphStore?: { - select: FunctionGraphStoreSelect; - }; - functionGraphStoreEdge?: { - select: FunctionGraphStoreEdgeSelect; - }; -}; -export interface UpdateFunctionGraphStorePayload { - clientMutationId?: string | null; - /** The `FunctionGraphStore` that was updated by this mutation. */ - functionGraphStore?: FunctionGraphStore | null; - functionGraphStoreEdge?: FunctionGraphStoreEdge | null; -} -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 CreateFunctionGraphObjectPayload { +export interface CreateResourceDefinitionPayload { clientMutationId?: string | null; - /** The `FunctionGraphObject` that was created by this mutation. */ - functionGraphObject?: FunctionGraphObject | null; - functionGraphObjectEdge?: FunctionGraphObjectEdge | null; + /** The `ResourceDefinition` that was created by this mutation. */ + resourceDefinition?: ResourceDefinition | null; + resourceDefinitionEdge?: ResourceDefinitionEdge | null; } -export type CreateFunctionGraphObjectPayloadSelect = { +export type CreateResourceDefinitionPayloadSelect = { clientMutationId?: boolean; - functionGraphObject?: { - select: FunctionGraphObjectSelect; + resourceDefinition?: { + select: ResourceDefinitionSelect; }; - functionGraphObjectEdge?: { - select: FunctionGraphObjectEdgeSelect; + resourceDefinitionEdge?: { + select: ResourceDefinitionEdgeSelect; }; }; -export interface UpdateFunctionGraphObjectPayload { +export interface UpdateResourceDefinitionPayload { clientMutationId?: string | null; - /** The `FunctionGraphObject` that was updated by this mutation. */ - functionGraphObject?: FunctionGraphObject | null; - functionGraphObjectEdge?: FunctionGraphObjectEdge | null; + /** The `ResourceDefinition` that was updated by this mutation. */ + resourceDefinition?: ResourceDefinition | null; + resourceDefinitionEdge?: ResourceDefinitionEdge | null; } -export type UpdateFunctionGraphObjectPayloadSelect = { +export type UpdateResourceDefinitionPayloadSelect = { clientMutationId?: boolean; - functionGraphObject?: { - select: FunctionGraphObjectSelect; + resourceDefinition?: { + select: ResourceDefinitionSelect; }; - functionGraphObjectEdge?: { - select: FunctionGraphObjectEdgeSelect; + resourceDefinitionEdge?: { + select: ResourceDefinitionEdgeSelect; }; }; -export interface DeleteFunctionGraphObjectPayload { +export interface DeleteResourceDefinitionPayload { clientMutationId?: string | null; - /** The `FunctionGraphObject` that was deleted by this mutation. */ - functionGraphObject?: FunctionGraphObject | null; - functionGraphObjectEdge?: FunctionGraphObjectEdge | null; + /** The `ResourceDefinition` that was deleted by this mutation. */ + resourceDefinition?: ResourceDefinition | null; + resourceDefinitionEdge?: ResourceDefinitionEdge | null; } -export type DeleteFunctionGraphObjectPayloadSelect = { +export type DeleteResourceDefinitionPayloadSelect = { clientMutationId?: boolean; - functionGraphObject?: { - select: FunctionGraphObjectSelect; + resourceDefinition?: { + select: ResourceDefinitionSelect; }; - functionGraphObjectEdge?: { - select: FunctionGraphObjectEdgeSelect; + resourceDefinitionEdge?: { + select: ResourceDefinitionEdgeSelect; }; }; export interface CreateFunctionDeploymentEventPayload { @@ -4884,49 +9601,49 @@ export type DeleteFunctionDeploymentEventPayloadSelect = { select: FunctionDeploymentEventEdgeSelect; }; }; -export interface CreateOrgFunctionExecutionLogPayload { +export interface CreatePlatformFunctionExecutionLogPayload { clientMutationId?: string | null; - /** The `OrgFunctionExecutionLog` that was created by this mutation. */ - orgFunctionExecutionLog?: OrgFunctionExecutionLog | null; - orgFunctionExecutionLogEdge?: OrgFunctionExecutionLogEdge | null; + /** The `PlatformFunctionExecutionLog` that was created by this mutation. */ + platformFunctionExecutionLog?: PlatformFunctionExecutionLog | null; + platformFunctionExecutionLogEdge?: PlatformFunctionExecutionLogEdge | null; } -export type CreateOrgFunctionExecutionLogPayloadSelect = { +export type CreatePlatformFunctionExecutionLogPayloadSelect = { clientMutationId?: boolean; - orgFunctionExecutionLog?: { - select: OrgFunctionExecutionLogSelect; + platformFunctionExecutionLog?: { + select: PlatformFunctionExecutionLogSelect; }; - orgFunctionExecutionLogEdge?: { - select: OrgFunctionExecutionLogEdgeSelect; + platformFunctionExecutionLogEdge?: { + select: PlatformFunctionExecutionLogEdgeSelect; }; }; -export interface UpdateOrgFunctionExecutionLogPayload { +export interface UpdatePlatformFunctionExecutionLogPayload { clientMutationId?: string | null; - /** The `OrgFunctionExecutionLog` that was updated by this mutation. */ - orgFunctionExecutionLog?: OrgFunctionExecutionLog | null; - orgFunctionExecutionLogEdge?: OrgFunctionExecutionLogEdge | null; + /** The `PlatformFunctionExecutionLog` that was updated by this mutation. */ + platformFunctionExecutionLog?: PlatformFunctionExecutionLog | null; + platformFunctionExecutionLogEdge?: PlatformFunctionExecutionLogEdge | null; } -export type UpdateOrgFunctionExecutionLogPayloadSelect = { +export type UpdatePlatformFunctionExecutionLogPayloadSelect = { clientMutationId?: boolean; - orgFunctionExecutionLog?: { - select: OrgFunctionExecutionLogSelect; + platformFunctionExecutionLog?: { + select: PlatformFunctionExecutionLogSelect; }; - orgFunctionExecutionLogEdge?: { - select: OrgFunctionExecutionLogEdgeSelect; + platformFunctionExecutionLogEdge?: { + select: PlatformFunctionExecutionLogEdgeSelect; }; }; -export interface DeleteOrgFunctionExecutionLogPayload { +export interface DeletePlatformFunctionExecutionLogPayload { clientMutationId?: string | null; - /** The `OrgFunctionExecutionLog` that was deleted by this mutation. */ - orgFunctionExecutionLog?: OrgFunctionExecutionLog | null; - orgFunctionExecutionLogEdge?: OrgFunctionExecutionLogEdge | null; + /** The `PlatformFunctionExecutionLog` that was deleted by this mutation. */ + platformFunctionExecutionLog?: PlatformFunctionExecutionLog | null; + platformFunctionExecutionLogEdge?: PlatformFunctionExecutionLogEdge | null; } -export type DeleteOrgFunctionExecutionLogPayloadSelect = { +export type DeletePlatformFunctionExecutionLogPayloadSelect = { clientMutationId?: boolean; - orgFunctionExecutionLog?: { - select: OrgFunctionExecutionLogSelect; + platformFunctionExecutionLog?: { + select: PlatformFunctionExecutionLogSelect; }; - orgFunctionExecutionLogEdge?: { - select: OrgFunctionExecutionLogEdgeSelect; + platformFunctionExecutionLogEdge?: { + select: PlatformFunctionExecutionLogEdgeSelect; }; }; export interface CreateResourceEventPayload { @@ -5019,6 +9736,51 @@ export type DeleteFunctionGraphExecutionOutputPayloadSelect = { select: FunctionGraphExecutionOutputEdgeSelect; }; }; +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 CreateFunctionGraphCommitPayload { clientMutationId?: string | null; /** The `FunctionGraphCommit` that was created by this mutation. */ @@ -5064,51 +9826,6 @@ export type DeleteFunctionGraphCommitPayloadSelect = { select: FunctionGraphCommitEdgeSelect; }; }; -export interface CreateSecretDefinitionPayload { - clientMutationId?: string | null; - /** The `SecretDefinition` that was created by this mutation. */ - secretDefinition?: SecretDefinition | null; - secretDefinitionEdge?: SecretDefinitionEdge | null; -} -export type CreateSecretDefinitionPayloadSelect = { - clientMutationId?: boolean; - secretDefinition?: { - select: SecretDefinitionSelect; - }; - secretDefinitionEdge?: { - select: SecretDefinitionEdgeSelect; - }; -}; -export interface UpdateSecretDefinitionPayload { - clientMutationId?: string | null; - /** The `SecretDefinition` that was updated by this mutation. */ - secretDefinition?: SecretDefinition | null; - secretDefinitionEdge?: SecretDefinitionEdge | null; -} -export type UpdateSecretDefinitionPayloadSelect = { - clientMutationId?: boolean; - secretDefinition?: { - select: SecretDefinitionSelect; - }; - secretDefinitionEdge?: { - select: SecretDefinitionEdgeSelect; - }; -}; -export interface DeleteSecretDefinitionPayload { - clientMutationId?: string | null; - /** The `SecretDefinition` that was deleted by this mutation. */ - secretDefinition?: SecretDefinition | null; - secretDefinitionEdge?: SecretDefinitionEdge | null; -} -export type DeleteSecretDefinitionPayloadSelect = { - clientMutationId?: boolean; - secretDefinition?: { - select: SecretDefinitionSelect; - }; - secretDefinitionEdge?: { - select: SecretDefinitionEdgeSelect; - }; -}; export interface CreateFunctionExecutionLogPayload { clientMutationId?: string | null; /** The `FunctionExecutionLog` that was created by this mutation. */ @@ -5145,13 +9862,103 @@ export interface DeleteFunctionExecutionLogPayload { functionExecutionLog?: FunctionExecutionLog | null; functionExecutionLogEdge?: FunctionExecutionLogEdge | null; } -export type DeleteFunctionExecutionLogPayloadSelect = { +export type DeleteFunctionExecutionLogPayloadSelect = { + clientMutationId?: boolean; + functionExecutionLog?: { + select: FunctionExecutionLogSelect; + }; + functionExecutionLogEdge?: { + select: FunctionExecutionLogEdgeSelect; + }; +}; +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 CreatePlatformNamespacePayload { + clientMutationId?: string | null; + /** The `PlatformNamespace` that was created by this mutation. */ + platformNamespace?: PlatformNamespace | null; + platformNamespaceEdge?: PlatformNamespaceEdge | null; +} +export type CreatePlatformNamespacePayloadSelect = { + clientMutationId?: boolean; + platformNamespace?: { + select: PlatformNamespaceSelect; + }; + platformNamespaceEdge?: { + select: PlatformNamespaceEdgeSelect; + }; +}; +export interface UpdatePlatformNamespacePayload { + clientMutationId?: string | null; + /** The `PlatformNamespace` that was updated by this mutation. */ + platformNamespace?: PlatformNamespace | null; + platformNamespaceEdge?: PlatformNamespaceEdge | null; +} +export type UpdatePlatformNamespacePayloadSelect = { + clientMutationId?: boolean; + platformNamespace?: { + select: PlatformNamespaceSelect; + }; + platformNamespaceEdge?: { + select: PlatformNamespaceEdgeSelect; + }; +}; +export interface DeletePlatformNamespacePayload { + clientMutationId?: string | null; + /** The `PlatformNamespace` that was deleted by this mutation. */ + platformNamespace?: PlatformNamespace | null; + platformNamespaceEdge?: PlatformNamespaceEdge | null; +} +export type DeletePlatformNamespacePayloadSelect = { clientMutationId?: boolean; - functionExecutionLog?: { - select: FunctionExecutionLogSelect; + platformNamespace?: { + select: PlatformNamespaceSelect; }; - functionExecutionLogEdge?: { - select: FunctionExecutionLogEdgeSelect; + platformNamespaceEdge?: { + select: PlatformNamespaceEdgeSelect; }; }; export interface CreateFunctionGraphPayload { @@ -5237,94 +10044,94 @@ export type DeleteFunctionGraphExecutionNodeStatePayloadSelect = { select: FunctionGraphExecutionNodeStateEdgeSelect; }; }; -export interface CreatePlatformNamespacePayload { +export interface CreateNamespacePayload { clientMutationId?: string | null; - /** The `PlatformNamespace` that was created by this mutation. */ - platformNamespace?: PlatformNamespace | null; - platformNamespaceEdge?: PlatformNamespaceEdge | null; + /** The `Namespace` that was created by this mutation. */ + namespace?: Namespace | null; + namespaceEdge?: NamespaceEdge | null; } -export type CreatePlatformNamespacePayloadSelect = { +export type CreateNamespacePayloadSelect = { clientMutationId?: boolean; - platformNamespace?: { - select: PlatformNamespaceSelect; + namespace?: { + select: NamespaceSelect; }; - platformNamespaceEdge?: { - select: PlatformNamespaceEdgeSelect; + namespaceEdge?: { + select: NamespaceEdgeSelect; }; }; -export interface UpdatePlatformNamespacePayload { +export interface UpdateNamespacePayload { clientMutationId?: string | null; - /** The `PlatformNamespace` that was updated by this mutation. */ - platformNamespace?: PlatformNamespace | null; - platformNamespaceEdge?: PlatformNamespaceEdge | null; + /** The `Namespace` that was updated by this mutation. */ + namespace?: Namespace | null; + namespaceEdge?: NamespaceEdge | null; } -export type UpdatePlatformNamespacePayloadSelect = { +export type UpdateNamespacePayloadSelect = { clientMutationId?: boolean; - platformNamespace?: { - select: PlatformNamespaceSelect; + namespace?: { + select: NamespaceSelect; }; - platformNamespaceEdge?: { - select: PlatformNamespaceEdgeSelect; + namespaceEdge?: { + select: NamespaceEdgeSelect; }; }; -export interface DeletePlatformNamespacePayload { +export interface DeleteNamespacePayload { clientMutationId?: string | null; - /** The `PlatformNamespace` that was deleted by this mutation. */ - platformNamespace?: PlatformNamespace | null; - platformNamespaceEdge?: PlatformNamespaceEdge | null; + /** The `Namespace` that was deleted by this mutation. */ + namespace?: Namespace | null; + namespaceEdge?: NamespaceEdge | null; } -export type DeletePlatformNamespacePayloadSelect = { +export type DeleteNamespacePayloadSelect = { clientMutationId?: boolean; - platformNamespace?: { - select: PlatformNamespaceSelect; + namespace?: { + select: NamespaceSelect; }; - platformNamespaceEdge?: { - select: PlatformNamespaceEdgeSelect; + namespaceEdge?: { + select: NamespaceEdgeSelect; }; }; -export interface CreateOrgFunctionInvocationPayload { +export interface CreatePlatformFunctionInvocationPayload { clientMutationId?: string | null; - /** The `OrgFunctionInvocation` that was created by this mutation. */ - orgFunctionInvocation?: OrgFunctionInvocation | null; - orgFunctionInvocationEdge?: OrgFunctionInvocationEdge | null; + /** The `PlatformFunctionInvocation` that was created by this mutation. */ + platformFunctionInvocation?: PlatformFunctionInvocation | null; + platformFunctionInvocationEdge?: PlatformFunctionInvocationEdge | null; } -export type CreateOrgFunctionInvocationPayloadSelect = { +export type CreatePlatformFunctionInvocationPayloadSelect = { clientMutationId?: boolean; - orgFunctionInvocation?: { - select: OrgFunctionInvocationSelect; + platformFunctionInvocation?: { + select: PlatformFunctionInvocationSelect; }; - orgFunctionInvocationEdge?: { - select: OrgFunctionInvocationEdgeSelect; + platformFunctionInvocationEdge?: { + select: PlatformFunctionInvocationEdgeSelect; }; }; -export interface UpdateOrgFunctionInvocationPayload { +export interface UpdatePlatformFunctionInvocationPayload { clientMutationId?: string | null; - /** The `OrgFunctionInvocation` that was updated by this mutation. */ - orgFunctionInvocation?: OrgFunctionInvocation | null; - orgFunctionInvocationEdge?: OrgFunctionInvocationEdge | null; + /** The `PlatformFunctionInvocation` that was updated by this mutation. */ + platformFunctionInvocation?: PlatformFunctionInvocation | null; + platformFunctionInvocationEdge?: PlatformFunctionInvocationEdge | null; } -export type UpdateOrgFunctionInvocationPayloadSelect = { +export type UpdatePlatformFunctionInvocationPayloadSelect = { clientMutationId?: boolean; - orgFunctionInvocation?: { - select: OrgFunctionInvocationSelect; + platformFunctionInvocation?: { + select: PlatformFunctionInvocationSelect; }; - orgFunctionInvocationEdge?: { - select: OrgFunctionInvocationEdgeSelect; + platformFunctionInvocationEdge?: { + select: PlatformFunctionInvocationEdgeSelect; }; }; -export interface DeleteOrgFunctionInvocationPayload { +export interface DeletePlatformFunctionInvocationPayload { clientMutationId?: string | null; - /** The `OrgFunctionInvocation` that was deleted by this mutation. */ - orgFunctionInvocation?: OrgFunctionInvocation | null; - orgFunctionInvocationEdge?: OrgFunctionInvocationEdge | null; + /** The `PlatformFunctionInvocation` that was deleted by this mutation. */ + platformFunctionInvocation?: PlatformFunctionInvocation | null; + platformFunctionInvocationEdge?: PlatformFunctionInvocationEdge | null; } -export type DeleteOrgFunctionInvocationPayloadSelect = { +export type DeletePlatformFunctionInvocationPayloadSelect = { clientMutationId?: boolean; - orgFunctionInvocation?: { - select: OrgFunctionInvocationSelect; + platformFunctionInvocation?: { + select: PlatformFunctionInvocationSelect; }; - orgFunctionInvocationEdge?: { - select: OrgFunctionInvocationEdgeSelect; + platformFunctionInvocationEdge?: { + select: PlatformFunctionInvocationEdgeSelect; }; }; export interface CreateFunctionInvocationPayload { @@ -5417,6 +10224,96 @@ export type DeletePlatformNamespaceEventPayloadSelect = { select: PlatformNamespaceEventEdgeSelect; }; }; +export interface CreateIntegrationProviderPayload { + clientMutationId?: string | null; + /** The `IntegrationProvider` that was created by this mutation. */ + integrationProvider?: IntegrationProvider | null; + integrationProviderEdge?: IntegrationProviderEdge | null; +} +export type CreateIntegrationProviderPayloadSelect = { + clientMutationId?: boolean; + integrationProvider?: { + select: IntegrationProviderSelect; + }; + integrationProviderEdge?: { + select: IntegrationProviderEdgeSelect; + }; +}; +export interface UpdateIntegrationProviderPayload { + clientMutationId?: string | null; + /** The `IntegrationProvider` that was updated by this mutation. */ + integrationProvider?: IntegrationProvider | null; + integrationProviderEdge?: IntegrationProviderEdge | null; +} +export type UpdateIntegrationProviderPayloadSelect = { + clientMutationId?: boolean; + integrationProvider?: { + select: IntegrationProviderSelect; + }; + integrationProviderEdge?: { + select: IntegrationProviderEdgeSelect; + }; +}; +export interface DeleteIntegrationProviderPayload { + clientMutationId?: string | null; + /** The `IntegrationProvider` that was deleted by this mutation. */ + integrationProvider?: IntegrationProvider | null; + integrationProviderEdge?: IntegrationProviderEdge | null; +} +export type DeleteIntegrationProviderPayloadSelect = { + clientMutationId?: boolean; + integrationProvider?: { + select: IntegrationProviderSelect; + }; + integrationProviderEdge?: { + select: IntegrationProviderEdgeSelect; + }; +}; +export interface CreateNamespaceEventPayload { + clientMutationId?: string | null; + /** The `NamespaceEvent` that was created by this mutation. */ + namespaceEvent?: NamespaceEvent | null; + namespaceEventEdge?: NamespaceEventEdge | null; +} +export type CreateNamespaceEventPayloadSelect = { + clientMutationId?: boolean; + namespaceEvent?: { + select: NamespaceEventSelect; + }; + namespaceEventEdge?: { + select: NamespaceEventEdgeSelect; + }; +}; +export interface UpdateNamespaceEventPayload { + clientMutationId?: string | null; + /** The `NamespaceEvent` that was updated by this mutation. */ + namespaceEvent?: NamespaceEvent | null; + namespaceEventEdge?: NamespaceEventEdge | null; +} +export type UpdateNamespaceEventPayloadSelect = { + clientMutationId?: boolean; + namespaceEvent?: { + select: NamespaceEventSelect; + }; + namespaceEventEdge?: { + select: NamespaceEventEdgeSelect; + }; +}; +export interface DeleteNamespaceEventPayload { + clientMutationId?: string | null; + /** The `NamespaceEvent` that was deleted by this mutation. */ + namespaceEvent?: NamespaceEvent | null; + namespaceEventEdge?: NamespaceEventEdge | null; +} +export type DeleteNamespaceEventPayloadSelect = { + clientMutationId?: boolean; + namespaceEvent?: { + select: NamespaceEventSelect; + }; + namespaceEventEdge?: { + select: NamespaceEventEdgeSelect; + }; +}; export interface CreateFunctionGraphExecutionPayload { clientMutationId?: string | null; /** The `FunctionGraphExecution` that was created by this mutation. */ @@ -5462,6 +10359,51 @@ export type DeleteFunctionGraphExecutionPayloadSelect = { select: FunctionGraphExecutionEdgeSelect; }; }; +export interface CreatePlatformFunctionDefinitionPayload { + clientMutationId?: string | null; + /** The `PlatformFunctionDefinition` that was created by this mutation. */ + platformFunctionDefinition?: PlatformFunctionDefinition | null; + platformFunctionDefinitionEdge?: PlatformFunctionDefinitionEdge | null; +} +export type CreatePlatformFunctionDefinitionPayloadSelect = { + clientMutationId?: boolean; + platformFunctionDefinition?: { + select: PlatformFunctionDefinitionSelect; + }; + platformFunctionDefinitionEdge?: { + select: PlatformFunctionDefinitionEdgeSelect; + }; +}; +export interface UpdatePlatformFunctionDefinitionPayload { + clientMutationId?: string | null; + /** The `PlatformFunctionDefinition` that was updated by this mutation. */ + platformFunctionDefinition?: PlatformFunctionDefinition | null; + platformFunctionDefinitionEdge?: PlatformFunctionDefinitionEdge | null; +} +export type UpdatePlatformFunctionDefinitionPayloadSelect = { + clientMutationId?: boolean; + platformFunctionDefinition?: { + select: PlatformFunctionDefinitionSelect; + }; + platformFunctionDefinitionEdge?: { + select: PlatformFunctionDefinitionEdgeSelect; + }; +}; +export interface DeletePlatformFunctionDefinitionPayload { + clientMutationId?: string | null; + /** The `PlatformFunctionDefinition` that was deleted by this mutation. */ + platformFunctionDefinition?: PlatformFunctionDefinition | null; + platformFunctionDefinitionEdge?: PlatformFunctionDefinitionEdge | null; +} +export type DeletePlatformFunctionDefinitionPayloadSelect = { + clientMutationId?: boolean; + platformFunctionDefinition?: { + select: PlatformFunctionDefinitionSelect; + }; + platformFunctionDefinitionEdge?: { + select: PlatformFunctionDefinitionEdgeSelect; + }; +}; export interface CreateFunctionDefinitionPayload { clientMutationId?: string | null; /** The `FunctionDefinition` that was created by this mutation. */ @@ -5507,40 +10449,40 @@ export type DeleteFunctionDefinitionPayloadSelect = { select: FunctionDefinitionEdgeSelect; }; }; -/** A `FunctionApiBinding` edge in the connection. */ -export interface FunctionApiBindingEdge { +/** A `InfraRef` edge in the connection. */ +export interface InfraRefEdge { cursor?: string | null; - /** The `FunctionApiBinding` at the end of the edge. */ - node?: FunctionApiBinding | null; + /** The `InfraRef` at the end of the edge. */ + node?: InfraRef | null; } -export type FunctionApiBindingEdgeSelect = { +export type InfraRefEdgeSelect = { cursor?: boolean; node?: { - select: FunctionApiBindingSelect; + select: InfraRefSelect; }; }; -/** A `FunctionDeployment` edge in the connection. */ -export interface FunctionDeploymentEdge { +/** A `InfraStore` edge in the connection. */ +export interface InfraStoreEdge { cursor?: string | null; - /** The `FunctionDeployment` at the end of the edge. */ - node?: FunctionDeployment | null; + /** The `InfraStore` at the end of the edge. */ + node?: InfraStore | null; } -export type FunctionDeploymentEdgeSelect = { +export type InfraStoreEdgeSelect = { cursor?: boolean; node?: { - select: FunctionDeploymentSelect; + select: InfraStoreSelect; }; }; -/** A `Resource` edge in the connection. */ -export interface ResourceEdge { +/** A `FunctionApiBinding` edge in the connection. */ +export interface FunctionApiBindingEdge { cursor?: string | null; - /** The `Resource` at the end of the edge. */ - node?: Resource | null; + /** The `FunctionApiBinding` at the end of the edge. */ + node?: FunctionApiBinding | null; } -export type ResourceEdgeSelect = { +export type FunctionApiBindingEdgeSelect = { cursor?: boolean; node?: { - select: ResourceSelect; + select: FunctionApiBindingSelect; }; }; /** A `FunctionGraphRef` edge in the connection. */ @@ -5567,6 +10509,78 @@ export type FunctionGraphStoreEdgeSelect = { select: FunctionGraphStoreSelect; }; }; +/** A `PlatformFunctionApiBinding` edge in the connection. */ +export interface PlatformFunctionApiBindingEdge { + cursor?: string | null; + /** The `PlatformFunctionApiBinding` at the end of the edge. */ + node?: PlatformFunctionApiBinding | null; +} +export type PlatformFunctionApiBindingEdgeSelect = { + cursor?: boolean; + node?: { + select: PlatformFunctionApiBindingSelect; + }; +}; +/** A `PlatformResourceStatusCheck` edge in the connection. */ +export interface PlatformResourceStatusCheckEdge { + cursor?: string | null; + /** The `PlatformResourceStatusCheck` at the end of the edge. */ + node?: PlatformResourceStatusCheck | null; +} +export type PlatformResourceStatusCheckEdgeSelect = { + cursor?: boolean; + node?: { + select: PlatformResourceStatusCheckSelect; + }; +}; +/** A `PlatformFunctionDeployment` edge in the connection. */ +export interface PlatformFunctionDeploymentEdge { + cursor?: string | null; + /** The `PlatformFunctionDeployment` at the end of the edge. */ + node?: PlatformFunctionDeployment | null; +} +export type PlatformFunctionDeploymentEdgeSelect = { + cursor?: boolean; + node?: { + select: PlatformFunctionDeploymentSelect; + }; +}; +/** A `PlatformResource` edge in the connection. */ +export interface PlatformResourceEdge { + cursor?: string | null; + /** The `PlatformResource` at the end of the edge. */ + node?: PlatformResource | null; +} +export type PlatformResourceEdgeSelect = { + cursor?: boolean; + node?: { + select: PlatformResourceSelect; + }; +}; +/** A `PlatformResourceDefinition` edge in the connection. */ +export interface PlatformResourceDefinitionEdge { + cursor?: string | null; + /** The `PlatformResourceDefinition` at the end of the edge. */ + node?: PlatformResourceDefinition | null; +} +export type PlatformResourceDefinitionEdgeSelect = { + cursor?: boolean; + node?: { + select: PlatformResourceDefinitionSelect; + }; +}; +/** A `InfraObject` edge in the connection. */ +export interface InfraObjectEdge { + cursor?: string | null; + /** The `InfraObject` at the end of the edge. */ + node?: InfraObject | null; +} +export type InfraObjectEdgeSelect = { + cursor?: boolean; + node?: { + select: InfraObjectSelect; + }; +}; /** A `FunctionGraphObject` edge in the connection. */ export interface FunctionGraphObjectEdge { cursor?: string | null; @@ -5579,6 +10593,78 @@ export type FunctionGraphObjectEdgeSelect = { select: FunctionGraphObjectSelect; }; }; +/** A `PlatformFunctionDeploymentEvent` edge in the connection. */ +export interface PlatformFunctionDeploymentEventEdge { + cursor?: string | null; + /** The `PlatformFunctionDeploymentEvent` at the end of the edge. */ + node?: PlatformFunctionDeploymentEvent | null; +} +export type PlatformFunctionDeploymentEventEdgeSelect = { + cursor?: boolean; + node?: { + select: PlatformFunctionDeploymentEventSelect; + }; +}; +/** A `PlatformResourceEvent` edge in the connection. */ +export interface PlatformResourceEventEdge { + cursor?: string | null; + /** The `PlatformResourceEvent` at the end of the edge. */ + node?: PlatformResourceEvent | null; +} +export type PlatformResourceEventEdgeSelect = { + cursor?: boolean; + node?: { + select: PlatformResourceEventSelect; + }; +}; +/** A `ResourceStatusCheck` edge in the connection. */ +export interface ResourceStatusCheckEdge { + cursor?: string | null; + /** The `ResourceStatusCheck` at the end of the edge. */ + node?: ResourceStatusCheck | null; +} +export type ResourceStatusCheckEdgeSelect = { + cursor?: boolean; + node?: { + select: ResourceStatusCheckSelect; + }; +}; +/** A `FunctionDeployment` edge in the connection. */ +export interface FunctionDeploymentEdge { + cursor?: string | null; + /** The `FunctionDeployment` at the end of the edge. */ + node?: FunctionDeployment | null; +} +export type FunctionDeploymentEdgeSelect = { + cursor?: boolean; + node?: { + select: FunctionDeploymentSelect; + }; +}; +/** A `Resource` edge in the connection. */ +export interface ResourceEdge { + cursor?: string | null; + /** The `Resource` at the end of the edge. */ + node?: Resource | null; +} +export type ResourceEdgeSelect = { + cursor?: boolean; + node?: { + select: ResourceSelect; + }; +}; +/** A `ResourceDefinition` edge in the connection. */ +export interface ResourceDefinitionEdge { + cursor?: string | null; + /** The `ResourceDefinition` at the end of the edge. */ + node?: ResourceDefinition | null; +} +export type ResourceDefinitionEdgeSelect = { + cursor?: boolean; + node?: { + select: ResourceDefinitionSelect; + }; +}; /** A `FunctionDeploymentEvent` edge in the connection. */ export interface FunctionDeploymentEventEdge { cursor?: string | null; @@ -5591,16 +10677,16 @@ export type FunctionDeploymentEventEdgeSelect = { select: FunctionDeploymentEventSelect; }; }; -/** A `OrgFunctionExecutionLog` edge in the connection. */ -export interface OrgFunctionExecutionLogEdge { +/** A `PlatformFunctionExecutionLog` edge in the connection. */ +export interface PlatformFunctionExecutionLogEdge { cursor?: string | null; - /** The `OrgFunctionExecutionLog` at the end of the edge. */ - node?: OrgFunctionExecutionLog | null; + /** The `PlatformFunctionExecutionLog` at the end of the edge. */ + node?: PlatformFunctionExecutionLog | null; } -export type OrgFunctionExecutionLogEdgeSelect = { +export type PlatformFunctionExecutionLogEdgeSelect = { cursor?: boolean; node?: { - select: OrgFunctionExecutionLogSelect; + select: PlatformFunctionExecutionLogSelect; }; }; /** A `ResourceEvent` edge in the connection. */ @@ -5627,28 +10713,28 @@ export type FunctionGraphExecutionOutputEdgeSelect = { select: FunctionGraphExecutionOutputSelect; }; }; -/** A `FunctionGraphCommit` edge in the connection. */ -export interface FunctionGraphCommitEdge { +/** A `InfraCommit` edge in the connection. */ +export interface InfraCommitEdge { cursor?: string | null; - /** The `FunctionGraphCommit` at the end of the edge. */ - node?: FunctionGraphCommit | null; + /** The `InfraCommit` at the end of the edge. */ + node?: InfraCommit | null; } -export type FunctionGraphCommitEdgeSelect = { +export type InfraCommitEdgeSelect = { cursor?: boolean; node?: { - select: FunctionGraphCommitSelect; + select: InfraCommitSelect; }; }; -/** A `SecretDefinition` edge in the connection. */ -export interface SecretDefinitionEdge { +/** A `FunctionGraphCommit` edge in the connection. */ +export interface FunctionGraphCommitEdge { cursor?: string | null; - /** The `SecretDefinition` at the end of the edge. */ - node?: SecretDefinition | null; + /** The `FunctionGraphCommit` at the end of the edge. */ + node?: FunctionGraphCommit | null; } -export type SecretDefinitionEdgeSelect = { +export type FunctionGraphCommitEdgeSelect = { cursor?: boolean; node?: { - select: SecretDefinitionSelect; + select: FunctionGraphCommitSelect; }; }; /** A `FunctionExecutionLog` edge in the connection. */ @@ -5663,6 +10749,30 @@ export type FunctionExecutionLogEdgeSelect = { select: FunctionExecutionLogSelect; }; }; +/** A `DbPreset` edge in the connection. */ +export interface DbPresetEdge { + cursor?: string | null; + /** The `DbPreset` at the end of the edge. */ + node?: DbPreset | null; +} +export type DbPresetEdgeSelect = { + cursor?: boolean; + node?: { + select: DbPresetSelect; + }; +}; +/** A `PlatformNamespace` edge in the connection. */ +export interface PlatformNamespaceEdge { + cursor?: string | null; + /** The `PlatformNamespace` at the end of the edge. */ + node?: PlatformNamespace | null; +} +export type PlatformNamespaceEdgeSelect = { + cursor?: boolean; + node?: { + select: PlatformNamespaceSelect; + }; +}; /** A `FunctionGraph` edge in the connection. */ export interface FunctionGraphEdge { cursor?: string | null; @@ -5687,28 +10797,28 @@ export type FunctionGraphExecutionNodeStateEdgeSelect = { select: FunctionGraphExecutionNodeStateSelect; }; }; -/** A `PlatformNamespace` edge in the connection. */ -export interface PlatformNamespaceEdge { +/** A `Namespace` edge in the connection. */ +export interface NamespaceEdge { cursor?: string | null; - /** The `PlatformNamespace` at the end of the edge. */ - node?: PlatformNamespace | null; + /** The `Namespace` at the end of the edge. */ + node?: Namespace | null; } -export type PlatformNamespaceEdgeSelect = { +export type NamespaceEdgeSelect = { cursor?: boolean; node?: { - select: PlatformNamespaceSelect; + select: NamespaceSelect; }; }; -/** A `OrgFunctionInvocation` edge in the connection. */ -export interface OrgFunctionInvocationEdge { +/** A `PlatformFunctionInvocation` edge in the connection. */ +export interface PlatformFunctionInvocationEdge { cursor?: string | null; - /** The `OrgFunctionInvocation` at the end of the edge. */ - node?: OrgFunctionInvocation | null; + /** The `PlatformFunctionInvocation` at the end of the edge. */ + node?: PlatformFunctionInvocation | null; } -export type OrgFunctionInvocationEdgeSelect = { +export type PlatformFunctionInvocationEdgeSelect = { cursor?: boolean; node?: { - select: OrgFunctionInvocationSelect; + select: PlatformFunctionInvocationSelect; }; }; /** A `FunctionInvocation` edge in the connection. */ @@ -5735,6 +10845,30 @@ export type PlatformNamespaceEventEdgeSelect = { select: PlatformNamespaceEventSelect; }; }; +/** A `IntegrationProvider` edge in the connection. */ +export interface IntegrationProviderEdge { + cursor?: string | null; + /** The `IntegrationProvider` at the end of the edge. */ + node?: IntegrationProvider | null; +} +export type IntegrationProviderEdgeSelect = { + cursor?: boolean; + node?: { + select: IntegrationProviderSelect; + }; +}; +/** A `NamespaceEvent` edge in the connection. */ +export interface NamespaceEventEdge { + cursor?: string | null; + /** The `NamespaceEvent` at the end of the edge. */ + node?: NamespaceEvent | null; +} +export type NamespaceEventEdgeSelect = { + cursor?: boolean; + node?: { + select: NamespaceEventSelect; + }; +}; /** A `FunctionGraphExecution` edge in the connection. */ export interface FunctionGraphExecutionEdge { cursor?: string | null; @@ -5747,6 +10881,18 @@ export type FunctionGraphExecutionEdgeSelect = { select: FunctionGraphExecutionSelect; }; }; +/** A `PlatformFunctionDefinition` edge in the connection. */ +export interface PlatformFunctionDefinitionEdge { + cursor?: string | null; + /** The `PlatformFunctionDefinition` at the end of the edge. */ + node?: PlatformFunctionDefinition | null; +} +export type PlatformFunctionDefinitionEdgeSelect = { + cursor?: boolean; + node?: { + select: PlatformFunctionDefinitionSelect; + }; +}; /** A `FunctionDefinition` edge in the connection. */ export interface FunctionDefinitionEdge { cursor?: string | null; diff --git a/sdk/constructive-react/src/compute/orm/models/dbPreset.ts b/sdk/constructive-react/src/compute/orm/models/dbPreset.ts new file mode 100644 index 0000000000..a3e824a674 --- /dev/null +++ b/sdk/constructive-react/src/compute/orm/models/dbPreset.ts @@ -0,0 +1,245 @@ +/** + * DbPreset model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + DbPreset, + DbPresetWithRelations, + DbPresetSelect, + DbPresetFilter, + DbPresetOrderBy, + CreateDbPresetInput, + UpdateDbPresetInput, + DbPresetPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class DbPresetModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + dbPresets: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'DbPreset', + 'dbPresets', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'DbPresetFilter', + 'DbPresetOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'DbPreset', + fieldName: 'dbPresets', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + dbPreset: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'DbPreset', + 'dbPresets', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'DbPresetFilter', + 'DbPresetOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'DbPreset', + fieldName: 'dbPreset', + document, + variables, + transform: (data: { + dbPresets?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + dbPreset: data.dbPresets?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + dbPreset: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'DbPreset', + 'dbPresets', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'DbPresetFilter', + 'DbPresetOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'DbPreset', + fieldName: 'dbPreset', + document, + variables, + transform: (data: { + dbPresets?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + dbPreset: data.dbPresets?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createDbPreset: { + dbPreset: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'DbPreset', + 'createDbPreset', + 'dbPreset', + args.select, + args.data, + 'CreateDbPresetInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'DbPreset', + fieldName: 'createDbPreset', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + DbPresetPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateDbPreset: { + dbPreset: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'DbPreset', + 'updateDbPreset', + 'dbPreset', + args.select, + args.where.id, + args.data, + 'UpdateDbPresetInput', + 'id', + 'dbPresetPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'DbPreset', + fieldName: 'updateDbPreset', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteDbPreset: { + dbPreset: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'DbPreset', + 'deleteDbPreset', + 'dbPreset', + { + id: args.where.id, + }, + 'DeleteDbPresetInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'DbPreset', + fieldName: 'deleteDbPreset', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/compute/orm/models/functionGraphCommit.ts b/sdk/constructive-react/src/compute/orm/models/functionGraphCommit.ts index 65426339ae..cd7d7dad08 100644 --- a/sdk/constructive-react/src/compute/orm/models/functionGraphCommit.ts +++ b/sdk/constructive-react/src/compute/orm/models/functionGraphCommit.ts @@ -176,7 +176,7 @@ export class FunctionGraphCommitModel { S, { id: string; - databaseId: string; + scopeId: string; }, FunctionGraphCommitPatch > & { @@ -199,7 +199,7 @@ export class FunctionGraphCommitModel { 'functionGraphCommitPatch', connectionFieldsMap, { - databaseId: args.where.databaseId, + scopeId: args.where.scopeId, } ); return new QueryBuilder({ @@ -215,7 +215,7 @@ export class FunctionGraphCommitModel { args: DeleteArgs< { id: string; - databaseId: string; + scopeId: string; }, S > & { @@ -232,7 +232,7 @@ export class FunctionGraphCommitModel { 'functionGraphCommit', { id: args.where.id, - databaseId: args.where.databaseId, + scopeId: args.where.scopeId, }, 'DeleteFunctionGraphCommitInput', args.select, diff --git a/sdk/constructive-react/src/compute/orm/models/functionGraphObject.ts b/sdk/constructive-react/src/compute/orm/models/functionGraphObject.ts index cf946855ac..d1f358a726 100644 --- a/sdk/constructive-react/src/compute/orm/models/functionGraphObject.ts +++ b/sdk/constructive-react/src/compute/orm/models/functionGraphObject.ts @@ -162,7 +162,7 @@ export class FunctionGraphObjectModel { S, { id: string; - databaseId: string; + scopeId: string; }, FunctionGraphObjectPatch > & { @@ -185,7 +185,7 @@ export class FunctionGraphObjectModel { 'functionGraphObjectPatch', connectionFieldsMap, { - databaseId: args.where.databaseId, + scopeId: args.where.scopeId, } ); return new QueryBuilder({ @@ -201,7 +201,7 @@ export class FunctionGraphObjectModel { args: DeleteArgs< { id: string; - databaseId: string; + scopeId: string; }, S > & { @@ -218,7 +218,7 @@ export class FunctionGraphObjectModel { 'functionGraphObject', { id: args.where.id, - databaseId: args.where.databaseId, + scopeId: args.where.scopeId, }, 'DeleteFunctionGraphObjectInput', args.select, diff --git a/sdk/constructive-react/src/compute/orm/models/functionGraphRef.ts b/sdk/constructive-react/src/compute/orm/models/functionGraphRef.ts index 22d8769625..c4ee3889eb 100644 --- a/sdk/constructive-react/src/compute/orm/models/functionGraphRef.ts +++ b/sdk/constructive-react/src/compute/orm/models/functionGraphRef.ts @@ -176,7 +176,7 @@ export class FunctionGraphRefModel { S, { id: string; - databaseId: string; + scopeId: string; }, FunctionGraphRefPatch > & { @@ -199,7 +199,7 @@ export class FunctionGraphRefModel { 'functionGraphRefPatch', connectionFieldsMap, { - databaseId: args.where.databaseId, + scopeId: args.where.scopeId, } ); return new QueryBuilder({ @@ -215,7 +215,7 @@ export class FunctionGraphRefModel { args: DeleteArgs< { id: string; - databaseId: string; + scopeId: string; }, S > & { @@ -232,7 +232,7 @@ export class FunctionGraphRefModel { 'functionGraphRef', { id: args.where.id, - databaseId: args.where.databaseId, + scopeId: args.where.scopeId, }, 'DeleteFunctionGraphRefInput', args.select, diff --git a/sdk/constructive-react/src/compute/orm/models/index.ts b/sdk/constructive-react/src/compute/orm/models/index.ts index cce3b40556..f081e66007 100644 --- a/sdk/constructive-react/src/compute/orm/models/index.ts +++ b/sdk/constructive-react/src/compute/orm/models/index.ts @@ -3,25 +3,47 @@ * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ +export { InfraGetAllRecordModel } from './infraGetAllRecord'; export { GetAllRecordModel } from './getAllRecord'; +export { InfraRefModel } from './infraRef'; +export { InfraStoreModel } from './infraStore'; export { FunctionApiBindingModel } from './functionApiBinding'; -export { FunctionDeploymentModel } from './functionDeployment'; -export { ResourceModel } from './resource'; export { FunctionGraphRefModel } from './functionGraphRef'; export { FunctionGraphStoreModel } from './functionGraphStore'; +export { PlatformFunctionApiBindingModel } from './platformFunctionApiBinding'; +export { PlatformResourcesRequirementsStateModel } from './platformResourcesRequirementsState'; +export { ResourcesRequirementsStateModel } from './resourcesRequirementsState'; +export { PlatformResourceStatusCheckModel } from './platformResourceStatusCheck'; +export { PlatformFunctionDeploymentModel } from './platformFunctionDeployment'; +export { PlatformResourceModel } from './platformResource'; +export { PlatformResourceDefinitionModel } from './platformResourceDefinition'; +export { InfraObjectModel } from './infraObject'; export { FunctionGraphObjectModel } from './functionGraphObject'; +export { PlatformFunctionDeploymentEventModel } from './platformFunctionDeploymentEvent'; +export { PlatformResourceEventModel } from './platformResourceEvent'; +export { ResourceStatusCheckModel } from './resourceStatusCheck'; +export { FunctionDeploymentModel } from './functionDeployment'; +export { ResourceModel } from './resource'; +export { ResourceDefinitionModel } from './resourceDefinition'; export { FunctionDeploymentEventModel } from './functionDeploymentEvent'; -export { OrgFunctionExecutionLogModel } from './orgFunctionExecutionLog'; +export { PlatformFunctionExecutionLogModel } from './platformFunctionExecutionLog'; export { ResourceEventModel } from './resourceEvent'; export { FunctionGraphExecutionOutputModel } from './functionGraphExecutionOutput'; +export { InfraCommitModel } from './infraCommit'; export { FunctionGraphCommitModel } from './functionGraphCommit'; -export { SecretDefinitionModel } from './secretDefinition'; export { FunctionExecutionLogModel } from './functionExecutionLog'; +export { PlatformResourcesResolvedRequirementModel } from './platformResourcesResolvedRequirement'; +export { ResourcesResolvedRequirementModel } from './resourcesResolvedRequirement'; +export { DbPresetModel } from './dbPreset'; +export { PlatformNamespaceModel } from './platformNamespace'; export { FunctionGraphModel } from './functionGraph'; export { FunctionGraphExecutionNodeStateModel } from './functionGraphExecutionNodeState'; -export { PlatformNamespaceModel } from './platformNamespace'; -export { OrgFunctionInvocationModel } from './orgFunctionInvocation'; +export { NamespaceModel } from './namespace'; +export { PlatformFunctionInvocationModel } from './platformFunctionInvocation'; export { FunctionInvocationModel } from './functionInvocation'; export { PlatformNamespaceEventModel } from './platformNamespaceEvent'; +export { IntegrationProviderModel } from './integrationProvider'; +export { NamespaceEventModel } from './namespaceEvent'; export { FunctionGraphExecutionModel } from './functionGraphExecution'; +export { PlatformFunctionDefinitionModel } from './platformFunctionDefinition'; export { FunctionDefinitionModel } from './functionDefinition'; diff --git a/sdk/constructive-react/src/compute/orm/models/infraCommit.ts b/sdk/constructive-react/src/compute/orm/models/infraCommit.ts new file mode 100644 index 0000000000..410e937a90 --- /dev/null +++ b/sdk/constructive-react/src/compute/orm/models/infraCommit.ts @@ -0,0 +1,250 @@ +/** + * InfraCommit model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + InfraCommit, + InfraCommitWithRelations, + InfraCommitSelect, + InfraCommitFilter, + InfraCommitOrderBy, + CreateInfraCommitInput, + UpdateInfraCommitInput, + InfraCommitPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class InfraCommitModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + infraCommits: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'InfraCommit', + 'infraCommits', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'InfraCommitFilter', + 'InfraCommitOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'InfraCommit', + fieldName: 'infraCommits', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + infraCommit: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'InfraCommit', + 'infraCommits', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'InfraCommitFilter', + 'InfraCommitOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'InfraCommit', + fieldName: 'infraCommit', + document, + variables, + transform: (data: { + infraCommits?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + infraCommit: data.infraCommits?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + infraCommit: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'InfraCommit', + 'infraCommits', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'InfraCommitFilter', + 'InfraCommitOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'InfraCommit', + fieldName: 'infraCommit', + document, + variables, + transform: (data: { + infraCommits?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + infraCommit: data.infraCommits?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createInfraCommit: { + infraCommit: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'InfraCommit', + 'createInfraCommit', + 'infraCommit', + args.select, + args.data, + 'CreateInfraCommitInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'InfraCommit', + fieldName: 'createInfraCommit', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + scopeId: string; + }, + InfraCommitPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateInfraCommit: { + infraCommit: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'InfraCommit', + 'updateInfraCommit', + 'infraCommit', + args.select, + args.where.id, + args.data, + 'UpdateInfraCommitInput', + 'id', + 'infraCommitPatch', + connectionFieldsMap, + { + scopeId: args.where.scopeId, + } + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'InfraCommit', + fieldName: 'updateInfraCommit', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + scopeId: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteInfraCommit: { + infraCommit: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'InfraCommit', + 'deleteInfraCommit', + 'infraCommit', + { + id: args.where.id, + scopeId: args.where.scopeId, + }, + 'DeleteInfraCommitInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'InfraCommit', + fieldName: 'deleteInfraCommit', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/compute/orm/models/infraGetAllRecord.ts b/sdk/constructive-react/src/compute/orm/models/infraGetAllRecord.ts new file mode 100644 index 0000000000..ebe2f8c1f2 --- /dev/null +++ b/sdk/constructive-react/src/compute/orm/models/infraGetAllRecord.ts @@ -0,0 +1,134 @@ +/** + * InfraGetAllRecord model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + InfraGetAllRecord, + InfraGetAllRecordWithRelations, + InfraGetAllRecordSelect, + InfraGetAllRecordFilter, + InfraGetAllRecordsOrderBy, + CreateInfraGetAllRecordInput, + UpdateInfraGetAllRecordInput, + InfraGetAllRecordPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class InfraGetAllRecordModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + infraGetAll: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'InfraGetAllRecord', + 'infraGetAll', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'InfraGetAllRecordFilter', + 'InfraGetAllRecordsOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'InfraGetAllRecord', + fieldName: 'infraGetAll', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + infraGetAllRecord: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'InfraGetAllRecord', + 'infraGetAll', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'InfraGetAllRecordFilter', + 'InfraGetAllRecordsOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'InfraGetAllRecord', + fieldName: 'infraGetAllRecord', + document, + variables, + transform: (data: { + infraGetAll?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + infraGetAllRecord: data.infraGetAll?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createInfraGetAllRecord: { + infraGetAllRecord: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'InfraGetAllRecord', + 'createInfraGetAllRecord', + 'infraGetAllRecord', + args.select, + args.data, + 'CreateInfraGetAllRecordInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'InfraGetAllRecord', + fieldName: 'createInfraGetAllRecord', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/compute/orm/models/infraObject.ts b/sdk/constructive-react/src/compute/orm/models/infraObject.ts new file mode 100644 index 0000000000..e097c8b271 --- /dev/null +++ b/sdk/constructive-react/src/compute/orm/models/infraObject.ts @@ -0,0 +1,236 @@ +/** + * InfraObject model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + InfraObject, + InfraObjectWithRelations, + InfraObjectSelect, + InfraObjectFilter, + InfraObjectOrderBy, + CreateInfraObjectInput, + UpdateInfraObjectInput, + InfraObjectPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class InfraObjectModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + infraObjects: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'InfraObject', + 'infraObjects', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'InfraObjectFilter', + 'InfraObjectOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'InfraObject', + fieldName: 'infraObjects', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + infraObject: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'InfraObject', + 'infraObjects', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'InfraObjectFilter', + 'InfraObjectOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'InfraObject', + fieldName: 'infraObject', + document, + variables, + transform: (data: { + infraObjects?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + infraObject: data.infraObjects?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + infraObject: InferSelectResult | null; + }> { + const { document, variables } = buildFindOneDocument( + 'InfraObject', + 'infraGetNodeAtPath', + args.id, + args.select, + 'id', + 'UUID!', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'InfraObject', + fieldName: 'infraObject', + document, + variables, + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createInfraObject: { + infraObject: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'InfraObject', + 'createInfraObject', + 'infraObject', + args.select, + args.data, + 'CreateInfraObjectInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'InfraObject', + fieldName: 'createInfraObject', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + scopeId: string; + }, + InfraObjectPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateInfraObject: { + infraObject: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'InfraObject', + 'updateInfraObject', + 'infraObject', + args.select, + args.where.id, + args.data, + 'UpdateInfraObjectInput', + 'id', + 'infraObjectPatch', + connectionFieldsMap, + { + scopeId: args.where.scopeId, + } + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'InfraObject', + fieldName: 'updateInfraObject', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + scopeId: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteInfraObject: { + infraObject: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'InfraObject', + 'deleteInfraObject', + 'infraObject', + { + id: args.where.id, + scopeId: args.where.scopeId, + }, + 'DeleteInfraObjectInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'InfraObject', + fieldName: 'deleteInfraObject', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/compute/orm/models/infraRef.ts b/sdk/constructive-react/src/compute/orm/models/infraRef.ts new file mode 100644 index 0000000000..3c474d3186 --- /dev/null +++ b/sdk/constructive-react/src/compute/orm/models/infraRef.ts @@ -0,0 +1,250 @@ +/** + * InfraRef model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + InfraRef, + InfraRefWithRelations, + InfraRefSelect, + InfraRefFilter, + InfraRefOrderBy, + CreateInfraRefInput, + UpdateInfraRefInput, + InfraRefPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class InfraRefModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + infraRefs: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'InfraRef', + 'infraRefs', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'InfraRefFilter', + 'InfraRefOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'InfraRef', + fieldName: 'infraRefs', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + infraRef: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'InfraRef', + 'infraRefs', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'InfraRefFilter', + 'InfraRefOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'InfraRef', + fieldName: 'infraRef', + document, + variables, + transform: (data: { + infraRefs?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + infraRef: data.infraRefs?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + infraRef: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'InfraRef', + 'infraRefs', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'InfraRefFilter', + 'InfraRefOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'InfraRef', + fieldName: 'infraRef', + document, + variables, + transform: (data: { + infraRefs?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + infraRef: data.infraRefs?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createInfraRef: { + infraRef: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'InfraRef', + 'createInfraRef', + 'infraRef', + args.select, + args.data, + 'CreateInfraRefInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'InfraRef', + fieldName: 'createInfraRef', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + scopeId: string; + }, + InfraRefPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateInfraRef: { + infraRef: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'InfraRef', + 'updateInfraRef', + 'infraRef', + args.select, + args.where.id, + args.data, + 'UpdateInfraRefInput', + 'id', + 'infraRefPatch', + connectionFieldsMap, + { + scopeId: args.where.scopeId, + } + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'InfraRef', + fieldName: 'updateInfraRef', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + scopeId: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteInfraRef: { + infraRef: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'InfraRef', + 'deleteInfraRef', + 'infraRef', + { + id: args.where.id, + scopeId: args.where.scopeId, + }, + 'DeleteInfraRefInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'InfraRef', + fieldName: 'deleteInfraRef', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/compute/orm/models/infraStore.ts b/sdk/constructive-react/src/compute/orm/models/infraStore.ts new file mode 100644 index 0000000000..a0ed0dbe7b --- /dev/null +++ b/sdk/constructive-react/src/compute/orm/models/infraStore.ts @@ -0,0 +1,245 @@ +/** + * InfraStore model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + InfraStore, + InfraStoreWithRelations, + InfraStoreSelect, + InfraStoreFilter, + InfraStoreOrderBy, + CreateInfraStoreInput, + UpdateInfraStoreInput, + InfraStorePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class InfraStoreModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + infraStores: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'InfraStore', + 'infraStores', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'InfraStoreFilter', + 'InfraStoreOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'InfraStore', + fieldName: 'infraStores', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + infraStore: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'InfraStore', + 'infraStores', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'InfraStoreFilter', + 'InfraStoreOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'InfraStore', + fieldName: 'infraStore', + document, + variables, + transform: (data: { + infraStores?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + infraStore: data.infraStores?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + infraStore: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'InfraStore', + 'infraStores', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'InfraStoreFilter', + 'InfraStoreOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'InfraStore', + fieldName: 'infraStore', + document, + variables, + transform: (data: { + infraStores?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + infraStore: data.infraStores?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createInfraStore: { + infraStore: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'InfraStore', + 'createInfraStore', + 'infraStore', + args.select, + args.data, + 'CreateInfraStoreInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'InfraStore', + fieldName: 'createInfraStore', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + InfraStorePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateInfraStore: { + infraStore: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'InfraStore', + 'updateInfraStore', + 'infraStore', + args.select, + args.where.id, + args.data, + 'UpdateInfraStoreInput', + 'id', + 'infraStorePatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'InfraStore', + fieldName: 'updateInfraStore', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteInfraStore: { + infraStore: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'InfraStore', + 'deleteInfraStore', + 'infraStore', + { + id: args.where.id, + }, + 'DeleteInfraStoreInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'InfraStore', + fieldName: 'deleteInfraStore', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/modules/orm/models/configSecretsModule.ts b/sdk/constructive-react/src/compute/orm/models/integrationProvider.ts similarity index 50% rename from sdk/constructive-sdk/src/modules/orm/models/configSecretsModule.ts rename to sdk/constructive-react/src/compute/orm/models/integrationProvider.ts index 59a6edd5cd..c79ad9375c 100644 --- a/sdk/constructive-sdk/src/modules/orm/models/configSecretsModule.ts +++ b/sdk/constructive-react/src/compute/orm/models/integrationProvider.ts @@ -1,5 +1,5 @@ /** - * ConfigSecretsModule model for ORM client + * IntegrationProvider model for ORM client * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -24,28 +24,28 @@ import type { StrictSelect, } from '../select-types'; import type { - ConfigSecretsModule, - ConfigSecretsModuleWithRelations, - ConfigSecretsModuleSelect, - ConfigSecretsModuleFilter, - ConfigSecretsModuleOrderBy, - CreateConfigSecretsModuleInput, - UpdateConfigSecretsModuleInput, - ConfigSecretsModulePatch, + IntegrationProvider, + IntegrationProviderWithRelations, + IntegrationProviderSelect, + IntegrationProviderFilter, + IntegrationProviderOrderBy, + CreateIntegrationProviderInput, + UpdateIntegrationProviderInput, + IntegrationProviderPatch, } from '../input-types'; import { connectionFieldsMap } from '../input-types'; -export class ConfigSecretsModuleModel { +export class IntegrationProviderModel { constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { + findMany( + args: FindManyArgs & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - configSecretsModules: ConnectionResult>; + integrationProviders: ConnectionResult>; }> { const { document, variables } = buildFindManyDocument( - 'ConfigSecretsModule', - 'configSecretsModules', + 'IntegrationProvider', + 'integrationProviders', args.select, { where: args?.where, @@ -56,65 +56,65 @@ export class ConfigSecretsModuleModel { before: args?.before, offset: args?.offset, }, - 'ConfigSecretsModuleFilter', - 'ConfigSecretsModuleOrderBy', + 'IntegrationProviderFilter', + 'IntegrationProviderOrderBy', connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'query', - operationName: 'ConfigSecretsModule', - fieldName: 'configSecretsModules', + operationName: 'IntegrationProvider', + fieldName: 'integrationProviders', document, variables, }); } - findFirst( - args: FindFirstArgs & { + findFirst( + args: FindFirstArgs & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - configSecretsModule: InferSelectResult | null; + integrationProvider: InferSelectResult | null; }> { const { document, variables } = buildFindFirstDocument( - 'ConfigSecretsModule', - 'configSecretsModules', + 'IntegrationProvider', + 'integrationProviders', args.select, { where: args?.where, orderBy: args?.orderBy as string[] | undefined, }, - 'ConfigSecretsModuleFilter', - 'ConfigSecretsModuleOrderBy', + 'IntegrationProviderFilter', + 'IntegrationProviderOrderBy', connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'query', - operationName: 'ConfigSecretsModule', - fieldName: 'configSecretsModule', + operationName: 'IntegrationProvider', + fieldName: 'integrationProvider', document, variables, transform: (data: { - configSecretsModules?: { - nodes?: InferSelectResult[]; + integrationProviders?: { + nodes?: InferSelectResult[]; }; }) => ({ - configSecretsModule: data.configSecretsModules?.nodes?.[0] ?? null, + integrationProvider: data.integrationProviders?.nodes?.[0] ?? null, }), }); } - findOne( + findOne( args: { id: string; select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - configSecretsModule: InferSelectResult | null; + integrationProvider: InferSelectResult | null; }> { const { document, variables } = buildFindManyDocument( - 'ConfigSecretsModule', - 'configSecretsModules', + 'IntegrationProvider', + 'integrationProviders', args.select, { where: { @@ -124,91 +124,91 @@ export class ConfigSecretsModuleModel { }, first: 1, }, - 'ConfigSecretsModuleFilter', - 'ConfigSecretsModuleOrderBy', + 'IntegrationProviderFilter', + 'IntegrationProviderOrderBy', connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'query', - operationName: 'ConfigSecretsModule', - fieldName: 'configSecretsModule', + operationName: 'IntegrationProvider', + fieldName: 'integrationProvider', document, variables, transform: (data: { - configSecretsModules?: { - nodes?: InferSelectResult[]; + integrationProviders?: { + nodes?: InferSelectResult[]; }; }) => ({ - configSecretsModule: data.configSecretsModules?.nodes?.[0] ?? null, + integrationProvider: data.integrationProviders?.nodes?.[0] ?? null, }), }); } - create( - args: CreateArgs & { + create( + args: CreateArgs & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - createConfigSecretsModule: { - configSecretsModule: InferSelectResult; + createIntegrationProvider: { + integrationProvider: InferSelectResult; }; }> { const { document, variables } = buildCreateDocument( - 'ConfigSecretsModule', - 'createConfigSecretsModule', - 'configSecretsModule', + 'IntegrationProvider', + 'createIntegrationProvider', + 'integrationProvider', args.select, args.data, - 'CreateConfigSecretsModuleInput', + 'CreateIntegrationProviderInput', connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'mutation', - operationName: 'ConfigSecretsModule', - fieldName: 'createConfigSecretsModule', + operationName: 'IntegrationProvider', + fieldName: 'createIntegrationProvider', document, variables, }); } - update( + update( args: UpdateArgs< S, { id: string; }, - ConfigSecretsModulePatch + IntegrationProviderPatch > & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - updateConfigSecretsModule: { - configSecretsModule: InferSelectResult; + updateIntegrationProvider: { + integrationProvider: InferSelectResult; }; }> { const { document, variables } = buildUpdateByPkDocument( - 'ConfigSecretsModule', - 'updateConfigSecretsModule', - 'configSecretsModule', + 'IntegrationProvider', + 'updateIntegrationProvider', + 'integrationProvider', args.select, args.where.id, args.data, - 'UpdateConfigSecretsModuleInput', + 'UpdateIntegrationProviderInput', 'id', - 'configSecretsModulePatch', + 'integrationProviderPatch', connectionFieldsMap, undefined ); return new QueryBuilder({ client: this.client, operation: 'mutation', - operationName: 'ConfigSecretsModule', - fieldName: 'updateConfigSecretsModule', + operationName: 'IntegrationProvider', + fieldName: 'updateIntegrationProvider', document, variables, }); } - delete( + delete( args: DeleteArgs< { id: string; @@ -216,28 +216,28 @@ export class ConfigSecretsModuleModel { S > & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - deleteConfigSecretsModule: { - configSecretsModule: InferSelectResult; + deleteIntegrationProvider: { + integrationProvider: InferSelectResult; }; }> { const { document, variables } = buildDeleteByPkDocument( - 'ConfigSecretsModule', - 'deleteConfigSecretsModule', - 'configSecretsModule', + 'IntegrationProvider', + 'deleteIntegrationProvider', + 'integrationProvider', { id: args.where.id, }, - 'DeleteConfigSecretsModuleInput', + 'DeleteIntegrationProviderInput', args.select, connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'mutation', - operationName: 'ConfigSecretsModule', - fieldName: 'deleteConfigSecretsModule', + operationName: 'IntegrationProvider', + fieldName: 'deleteIntegrationProvider', document, variables, }); diff --git a/sdk/constructive-react/src/compute/orm/models/namespace.ts b/sdk/constructive-react/src/compute/orm/models/namespace.ts new file mode 100644 index 0000000000..4e300068cd --- /dev/null +++ b/sdk/constructive-react/src/compute/orm/models/namespace.ts @@ -0,0 +1,245 @@ +/** + * Namespace model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + Namespace, + NamespaceWithRelations, + NamespaceSelect, + NamespaceFilter, + NamespaceOrderBy, + CreateNamespaceInput, + UpdateNamespaceInput, + NamespacePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class NamespaceModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + namespaces: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'Namespace', + 'namespaces', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'NamespaceFilter', + 'NamespaceOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'Namespace', + fieldName: 'namespaces', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + namespace: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'Namespace', + 'namespaces', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'NamespaceFilter', + 'NamespaceOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'Namespace', + fieldName: 'namespace', + document, + variables, + transform: (data: { + namespaces?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + namespace: data.namespaces?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + namespace: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'Namespace', + 'namespaces', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'NamespaceFilter', + 'NamespaceOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'Namespace', + fieldName: 'namespace', + document, + variables, + transform: (data: { + namespaces?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + namespace: data.namespaces?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createNamespace: { + namespace: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'Namespace', + 'createNamespace', + 'namespace', + args.select, + args.data, + 'CreateNamespaceInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'Namespace', + fieldName: 'createNamespace', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + NamespacePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateNamespace: { + namespace: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'Namespace', + 'updateNamespace', + 'namespace', + args.select, + args.where.id, + args.data, + 'UpdateNamespaceInput', + 'id', + 'namespacePatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'Namespace', + fieldName: 'updateNamespace', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteNamespace: { + namespace: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'Namespace', + 'deleteNamespace', + 'namespace', + { + id: args.where.id, + }, + 'DeleteNamespaceInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'Namespace', + fieldName: 'deleteNamespace', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/compute/orm/models/namespaceEvent.ts b/sdk/constructive-react/src/compute/orm/models/namespaceEvent.ts new file mode 100644 index 0000000000..494442c263 --- /dev/null +++ b/sdk/constructive-react/src/compute/orm/models/namespaceEvent.ts @@ -0,0 +1,250 @@ +/** + * NamespaceEvent model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + NamespaceEvent, + NamespaceEventWithRelations, + NamespaceEventSelect, + NamespaceEventFilter, + NamespaceEventOrderBy, + CreateNamespaceEventInput, + UpdateNamespaceEventInput, + NamespaceEventPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class NamespaceEventModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + namespaceEvents: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'NamespaceEvent', + 'namespaceEvents', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'NamespaceEventFilter', + 'NamespaceEventOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'NamespaceEvent', + fieldName: 'namespaceEvents', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + namespaceEvent: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'NamespaceEvent', + 'namespaceEvents', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'NamespaceEventFilter', + 'NamespaceEventOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'NamespaceEvent', + fieldName: 'namespaceEvent', + document, + variables, + transform: (data: { + namespaceEvents?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + namespaceEvent: data.namespaceEvents?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + namespaceEvent: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'NamespaceEvent', + 'namespaceEvents', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'NamespaceEventFilter', + 'NamespaceEventOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'NamespaceEvent', + fieldName: 'namespaceEvent', + document, + variables, + transform: (data: { + namespaceEvents?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + namespaceEvent: data.namespaceEvents?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createNamespaceEvent: { + namespaceEvent: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'NamespaceEvent', + 'createNamespaceEvent', + 'namespaceEvent', + args.select, + args.data, + 'CreateNamespaceEventInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'NamespaceEvent', + fieldName: 'createNamespaceEvent', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + createdAt: string; + }, + NamespaceEventPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateNamespaceEvent: { + namespaceEvent: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'NamespaceEvent', + 'updateNamespaceEvent', + 'namespaceEvent', + args.select, + args.where.id, + args.data, + 'UpdateNamespaceEventInput', + 'id', + 'namespaceEventPatch', + connectionFieldsMap, + { + createdAt: args.where.createdAt, + } + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'NamespaceEvent', + fieldName: 'updateNamespaceEvent', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + createdAt: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteNamespaceEvent: { + namespaceEvent: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'NamespaceEvent', + 'deleteNamespaceEvent', + 'namespaceEvent', + { + id: args.where.id, + createdAt: args.where.createdAt, + }, + 'DeleteNamespaceEventInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'NamespaceEvent', + fieldName: 'deleteNamespaceEvent', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/compute/orm/models/orgFunctionExecutionLog.ts b/sdk/constructive-react/src/compute/orm/models/orgFunctionExecutionLog.ts deleted file mode 100644 index 95b37a939d..0000000000 --- a/sdk/constructive-react/src/compute/orm/models/orgFunctionExecutionLog.ts +++ /dev/null @@ -1,252 +0,0 @@ -/** - * OrgFunctionExecutionLog model for ORM client - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { OrmClient } from '../client'; -import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, - buildCreateDocument, - buildUpdateByPkDocument, - buildDeleteByPkDocument, -} from '../query-builder'; -import type { - ConnectionResult, - FindManyArgs, - FindFirstArgs, - CreateArgs, - UpdateArgs, - DeleteArgs, - InferSelectResult, - StrictSelect, -} from '../select-types'; -import type { - OrgFunctionExecutionLog, - OrgFunctionExecutionLogWithRelations, - OrgFunctionExecutionLogSelect, - OrgFunctionExecutionLogFilter, - OrgFunctionExecutionLogOrderBy, - CreateOrgFunctionExecutionLogInput, - UpdateOrgFunctionExecutionLogInput, - OrgFunctionExecutionLogPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class OrgFunctionExecutionLogModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgFunctionExecutionLogs: ConnectionResult< - InferSelectResult - >; - }> { - const { document, variables } = buildFindManyDocument( - 'OrgFunctionExecutionLog', - 'orgFunctionExecutionLogs', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - first: args?.first, - last: args?.last, - after: args?.after, - before: args?.before, - offset: args?.offset, - }, - 'OrgFunctionExecutionLogFilter', - 'OrgFunctionExecutionLogOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgFunctionExecutionLog', - fieldName: 'orgFunctionExecutionLogs', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgFunctionExecutionLog: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'OrgFunctionExecutionLog', - 'orgFunctionExecutionLogs', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'OrgFunctionExecutionLogFilter', - 'OrgFunctionExecutionLogOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgFunctionExecutionLog', - fieldName: 'orgFunctionExecutionLog', - document, - variables, - transform: (data: { - orgFunctionExecutionLogs?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - orgFunctionExecutionLog: data.orgFunctionExecutionLogs?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgFunctionExecutionLog: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'OrgFunctionExecutionLog', - 'orgFunctionExecutionLogs', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'OrgFunctionExecutionLogFilter', - 'OrgFunctionExecutionLogOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgFunctionExecutionLog', - fieldName: 'orgFunctionExecutionLog', - document, - variables, - transform: (data: { - orgFunctionExecutionLogs?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - orgFunctionExecutionLog: data.orgFunctionExecutionLogs?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createOrgFunctionExecutionLog: { - orgFunctionExecutionLog: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'OrgFunctionExecutionLog', - 'createOrgFunctionExecutionLog', - 'orgFunctionExecutionLog', - args.select, - args.data, - 'CreateOrgFunctionExecutionLogInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgFunctionExecutionLog', - fieldName: 'createOrgFunctionExecutionLog', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - createdAt: string; - }, - OrgFunctionExecutionLogPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateOrgFunctionExecutionLog: { - orgFunctionExecutionLog: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'OrgFunctionExecutionLog', - 'updateOrgFunctionExecutionLog', - 'orgFunctionExecutionLog', - args.select, - args.where.id, - args.data, - 'UpdateOrgFunctionExecutionLogInput', - 'id', - 'orgFunctionExecutionLogPatch', - connectionFieldsMap, - { - createdAt: args.where.createdAt, - } - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgFunctionExecutionLog', - fieldName: 'updateOrgFunctionExecutionLog', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - createdAt: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteOrgFunctionExecutionLog: { - orgFunctionExecutionLog: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'OrgFunctionExecutionLog', - 'deleteOrgFunctionExecutionLog', - 'orgFunctionExecutionLog', - { - id: args.where.id, - createdAt: args.where.createdAt, - }, - 'DeleteOrgFunctionExecutionLogInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgFunctionExecutionLog', - fieldName: 'deleteOrgFunctionExecutionLog', - document, - variables, - }); - } -} diff --git a/sdk/constructive-react/src/compute/orm/models/orgFunctionInvocation.ts b/sdk/constructive-react/src/compute/orm/models/orgFunctionInvocation.ts deleted file mode 100644 index 3f3eaab557..0000000000 --- a/sdk/constructive-react/src/compute/orm/models/orgFunctionInvocation.ts +++ /dev/null @@ -1,252 +0,0 @@ -/** - * OrgFunctionInvocation model for ORM client - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { OrmClient } from '../client'; -import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, - buildCreateDocument, - buildUpdateByPkDocument, - buildDeleteByPkDocument, -} from '../query-builder'; -import type { - ConnectionResult, - FindManyArgs, - FindFirstArgs, - CreateArgs, - UpdateArgs, - DeleteArgs, - InferSelectResult, - StrictSelect, -} from '../select-types'; -import type { - OrgFunctionInvocation, - OrgFunctionInvocationWithRelations, - OrgFunctionInvocationSelect, - OrgFunctionInvocationFilter, - OrgFunctionInvocationOrderBy, - CreateOrgFunctionInvocationInput, - UpdateOrgFunctionInvocationInput, - OrgFunctionInvocationPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class OrgFunctionInvocationModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgFunctionInvocations: ConnectionResult< - InferSelectResult - >; - }> { - const { document, variables } = buildFindManyDocument( - 'OrgFunctionInvocation', - 'orgFunctionInvocations', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - first: args?.first, - last: args?.last, - after: args?.after, - before: args?.before, - offset: args?.offset, - }, - 'OrgFunctionInvocationFilter', - 'OrgFunctionInvocationOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgFunctionInvocation', - fieldName: 'orgFunctionInvocations', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgFunctionInvocation: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'OrgFunctionInvocation', - 'orgFunctionInvocations', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'OrgFunctionInvocationFilter', - 'OrgFunctionInvocationOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgFunctionInvocation', - fieldName: 'orgFunctionInvocation', - document, - variables, - transform: (data: { - orgFunctionInvocations?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - orgFunctionInvocation: data.orgFunctionInvocations?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgFunctionInvocation: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'OrgFunctionInvocation', - 'orgFunctionInvocations', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'OrgFunctionInvocationFilter', - 'OrgFunctionInvocationOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgFunctionInvocation', - fieldName: 'orgFunctionInvocation', - document, - variables, - transform: (data: { - orgFunctionInvocations?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - orgFunctionInvocation: data.orgFunctionInvocations?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createOrgFunctionInvocation: { - orgFunctionInvocation: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'OrgFunctionInvocation', - 'createOrgFunctionInvocation', - 'orgFunctionInvocation', - args.select, - args.data, - 'CreateOrgFunctionInvocationInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgFunctionInvocation', - fieldName: 'createOrgFunctionInvocation', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - createdAt: string; - }, - OrgFunctionInvocationPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateOrgFunctionInvocation: { - orgFunctionInvocation: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'OrgFunctionInvocation', - 'updateOrgFunctionInvocation', - 'orgFunctionInvocation', - args.select, - args.where.id, - args.data, - 'UpdateOrgFunctionInvocationInput', - 'id', - 'orgFunctionInvocationPatch', - connectionFieldsMap, - { - createdAt: args.where.createdAt, - } - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgFunctionInvocation', - fieldName: 'updateOrgFunctionInvocation', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - createdAt: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteOrgFunctionInvocation: { - orgFunctionInvocation: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'OrgFunctionInvocation', - 'deleteOrgFunctionInvocation', - 'orgFunctionInvocation', - { - id: args.where.id, - createdAt: args.where.createdAt, - }, - 'DeleteOrgFunctionInvocationInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgFunctionInvocation', - fieldName: 'deleteOrgFunctionInvocation', - document, - variables, - }); - } -} diff --git a/sdk/constructive-react/src/compute/orm/models/platformFunctionApiBinding.ts b/sdk/constructive-react/src/compute/orm/models/platformFunctionApiBinding.ts new file mode 100644 index 0000000000..c74d4423e8 --- /dev/null +++ b/sdk/constructive-react/src/compute/orm/models/platformFunctionApiBinding.ts @@ -0,0 +1,253 @@ +/** + * PlatformFunctionApiBinding model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + PlatformFunctionApiBinding, + PlatformFunctionApiBindingWithRelations, + PlatformFunctionApiBindingSelect, + PlatformFunctionApiBindingFilter, + PlatformFunctionApiBindingOrderBy, + CreatePlatformFunctionApiBindingInput, + UpdatePlatformFunctionApiBindingInput, + PlatformFunctionApiBindingPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class PlatformFunctionApiBindingModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformFunctionApiBindings: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformFunctionApiBinding', + 'platformFunctionApiBindings', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'PlatformFunctionApiBindingFilter', + 'PlatformFunctionApiBindingOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformFunctionApiBinding', + fieldName: 'platformFunctionApiBindings', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformFunctionApiBinding: InferSelectResult< + PlatformFunctionApiBindingWithRelations, + S + > | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'PlatformFunctionApiBinding', + 'platformFunctionApiBindings', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'PlatformFunctionApiBindingFilter', + 'PlatformFunctionApiBindingOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformFunctionApiBinding', + fieldName: 'platformFunctionApiBinding', + document, + variables, + transform: (data: { + platformFunctionApiBindings?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformFunctionApiBinding: data.platformFunctionApiBindings?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformFunctionApiBinding: InferSelectResult< + PlatformFunctionApiBindingWithRelations, + S + > | null; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformFunctionApiBinding', + 'platformFunctionApiBindings', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'PlatformFunctionApiBindingFilter', + 'PlatformFunctionApiBindingOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformFunctionApiBinding', + fieldName: 'platformFunctionApiBinding', + document, + variables, + transform: (data: { + platformFunctionApiBindings?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformFunctionApiBinding: data.platformFunctionApiBindings?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createPlatformFunctionApiBinding: { + platformFunctionApiBinding: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'PlatformFunctionApiBinding', + 'createPlatformFunctionApiBinding', + 'platformFunctionApiBinding', + args.select, + args.data, + 'CreatePlatformFunctionApiBindingInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformFunctionApiBinding', + fieldName: 'createPlatformFunctionApiBinding', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + PlatformFunctionApiBindingPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updatePlatformFunctionApiBinding: { + platformFunctionApiBinding: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'PlatformFunctionApiBinding', + 'updatePlatformFunctionApiBinding', + 'platformFunctionApiBinding', + args.select, + args.where.id, + args.data, + 'UpdatePlatformFunctionApiBindingInput', + 'id', + 'platformFunctionApiBindingPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformFunctionApiBinding', + fieldName: 'updatePlatformFunctionApiBinding', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deletePlatformFunctionApiBinding: { + platformFunctionApiBinding: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'PlatformFunctionApiBinding', + 'deletePlatformFunctionApiBinding', + 'platformFunctionApiBinding', + { + id: args.where.id, + }, + 'DeletePlatformFunctionApiBindingInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformFunctionApiBinding', + fieldName: 'deletePlatformFunctionApiBinding', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/compute/orm/models/platformFunctionDefinition.ts b/sdk/constructive-react/src/compute/orm/models/platformFunctionDefinition.ts new file mode 100644 index 0000000000..7422743780 --- /dev/null +++ b/sdk/constructive-react/src/compute/orm/models/platformFunctionDefinition.ts @@ -0,0 +1,253 @@ +/** + * PlatformFunctionDefinition model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + PlatformFunctionDefinition, + PlatformFunctionDefinitionWithRelations, + PlatformFunctionDefinitionSelect, + PlatformFunctionDefinitionFilter, + PlatformFunctionDefinitionOrderBy, + CreatePlatformFunctionDefinitionInput, + UpdatePlatformFunctionDefinitionInput, + PlatformFunctionDefinitionPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class PlatformFunctionDefinitionModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformFunctionDefinitions: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformFunctionDefinition', + 'platformFunctionDefinitions', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'PlatformFunctionDefinitionFilter', + 'PlatformFunctionDefinitionOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformFunctionDefinition', + fieldName: 'platformFunctionDefinitions', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformFunctionDefinition: InferSelectResult< + PlatformFunctionDefinitionWithRelations, + S + > | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'PlatformFunctionDefinition', + 'platformFunctionDefinitions', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'PlatformFunctionDefinitionFilter', + 'PlatformFunctionDefinitionOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformFunctionDefinition', + fieldName: 'platformFunctionDefinition', + document, + variables, + transform: (data: { + platformFunctionDefinitions?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformFunctionDefinition: data.platformFunctionDefinitions?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformFunctionDefinition: InferSelectResult< + PlatformFunctionDefinitionWithRelations, + S + > | null; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformFunctionDefinition', + 'platformFunctionDefinitions', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'PlatformFunctionDefinitionFilter', + 'PlatformFunctionDefinitionOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformFunctionDefinition', + fieldName: 'platformFunctionDefinition', + document, + variables, + transform: (data: { + platformFunctionDefinitions?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformFunctionDefinition: data.platformFunctionDefinitions?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createPlatformFunctionDefinition: { + platformFunctionDefinition: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'PlatformFunctionDefinition', + 'createPlatformFunctionDefinition', + 'platformFunctionDefinition', + args.select, + args.data, + 'CreatePlatformFunctionDefinitionInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformFunctionDefinition', + fieldName: 'createPlatformFunctionDefinition', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + PlatformFunctionDefinitionPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updatePlatformFunctionDefinition: { + platformFunctionDefinition: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'PlatformFunctionDefinition', + 'updatePlatformFunctionDefinition', + 'platformFunctionDefinition', + args.select, + args.where.id, + args.data, + 'UpdatePlatformFunctionDefinitionInput', + 'id', + 'platformFunctionDefinitionPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformFunctionDefinition', + fieldName: 'updatePlatformFunctionDefinition', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deletePlatformFunctionDefinition: { + platformFunctionDefinition: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'PlatformFunctionDefinition', + 'deletePlatformFunctionDefinition', + 'platformFunctionDefinition', + { + id: args.where.id, + }, + 'DeletePlatformFunctionDefinitionInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformFunctionDefinition', + fieldName: 'deletePlatformFunctionDefinition', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/compute/orm/models/platformFunctionDeployment.ts b/sdk/constructive-react/src/compute/orm/models/platformFunctionDeployment.ts new file mode 100644 index 0000000000..6331c14b14 --- /dev/null +++ b/sdk/constructive-react/src/compute/orm/models/platformFunctionDeployment.ts @@ -0,0 +1,253 @@ +/** + * PlatformFunctionDeployment model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + PlatformFunctionDeployment, + PlatformFunctionDeploymentWithRelations, + PlatformFunctionDeploymentSelect, + PlatformFunctionDeploymentFilter, + PlatformFunctionDeploymentOrderBy, + CreatePlatformFunctionDeploymentInput, + UpdatePlatformFunctionDeploymentInput, + PlatformFunctionDeploymentPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class PlatformFunctionDeploymentModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformFunctionDeployments: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformFunctionDeployment', + 'platformFunctionDeployments', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'PlatformFunctionDeploymentFilter', + 'PlatformFunctionDeploymentOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformFunctionDeployment', + fieldName: 'platformFunctionDeployments', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformFunctionDeployment: InferSelectResult< + PlatformFunctionDeploymentWithRelations, + S + > | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'PlatformFunctionDeployment', + 'platformFunctionDeployments', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'PlatformFunctionDeploymentFilter', + 'PlatformFunctionDeploymentOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformFunctionDeployment', + fieldName: 'platformFunctionDeployment', + document, + variables, + transform: (data: { + platformFunctionDeployments?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformFunctionDeployment: data.platformFunctionDeployments?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformFunctionDeployment: InferSelectResult< + PlatformFunctionDeploymentWithRelations, + S + > | null; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformFunctionDeployment', + 'platformFunctionDeployments', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'PlatformFunctionDeploymentFilter', + 'PlatformFunctionDeploymentOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformFunctionDeployment', + fieldName: 'platformFunctionDeployment', + document, + variables, + transform: (data: { + platformFunctionDeployments?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformFunctionDeployment: data.platformFunctionDeployments?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createPlatformFunctionDeployment: { + platformFunctionDeployment: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'PlatformFunctionDeployment', + 'createPlatformFunctionDeployment', + 'platformFunctionDeployment', + args.select, + args.data, + 'CreatePlatformFunctionDeploymentInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformFunctionDeployment', + fieldName: 'createPlatformFunctionDeployment', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + PlatformFunctionDeploymentPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updatePlatformFunctionDeployment: { + platformFunctionDeployment: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'PlatformFunctionDeployment', + 'updatePlatformFunctionDeployment', + 'platformFunctionDeployment', + args.select, + args.where.id, + args.data, + 'UpdatePlatformFunctionDeploymentInput', + 'id', + 'platformFunctionDeploymentPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformFunctionDeployment', + fieldName: 'updatePlatformFunctionDeployment', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deletePlatformFunctionDeployment: { + platformFunctionDeployment: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'PlatformFunctionDeployment', + 'deletePlatformFunctionDeployment', + 'platformFunctionDeployment', + { + id: args.where.id, + }, + 'DeletePlatformFunctionDeploymentInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformFunctionDeployment', + fieldName: 'deletePlatformFunctionDeployment', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/compute/orm/models/platformFunctionDeploymentEvent.ts b/sdk/constructive-react/src/compute/orm/models/platformFunctionDeploymentEvent.ts new file mode 100644 index 0000000000..9e28f1c2c4 --- /dev/null +++ b/sdk/constructive-react/src/compute/orm/models/platformFunctionDeploymentEvent.ts @@ -0,0 +1,278 @@ +/** + * PlatformFunctionDeploymentEvent model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + PlatformFunctionDeploymentEvent, + PlatformFunctionDeploymentEventWithRelations, + PlatformFunctionDeploymentEventSelect, + PlatformFunctionDeploymentEventFilter, + PlatformFunctionDeploymentEventOrderBy, + CreatePlatformFunctionDeploymentEventInput, + UpdatePlatformFunctionDeploymentEventInput, + PlatformFunctionDeploymentEventPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class PlatformFunctionDeploymentEventModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs< + S, + PlatformFunctionDeploymentEventFilter, + PlatformFunctionDeploymentEventOrderBy + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformFunctionDeploymentEvents: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformFunctionDeploymentEvent', + 'platformFunctionDeploymentEvents', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'PlatformFunctionDeploymentEventFilter', + 'PlatformFunctionDeploymentEventOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformFunctionDeploymentEvent', + fieldName: 'platformFunctionDeploymentEvents', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs< + S, + PlatformFunctionDeploymentEventFilter, + PlatformFunctionDeploymentEventOrderBy + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformFunctionDeploymentEvent: InferSelectResult< + PlatformFunctionDeploymentEventWithRelations, + S + > | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'PlatformFunctionDeploymentEvent', + 'platformFunctionDeploymentEvents', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'PlatformFunctionDeploymentEventFilter', + 'PlatformFunctionDeploymentEventOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformFunctionDeploymentEvent', + fieldName: 'platformFunctionDeploymentEvent', + document, + variables, + transform: (data: { + platformFunctionDeploymentEvents?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformFunctionDeploymentEvent: data.platformFunctionDeploymentEvents?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformFunctionDeploymentEvent: InferSelectResult< + PlatformFunctionDeploymentEventWithRelations, + S + > | null; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformFunctionDeploymentEvent', + 'platformFunctionDeploymentEvents', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'PlatformFunctionDeploymentEventFilter', + 'PlatformFunctionDeploymentEventOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformFunctionDeploymentEvent', + fieldName: 'platformFunctionDeploymentEvent', + document, + variables, + transform: (data: { + platformFunctionDeploymentEvents?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformFunctionDeploymentEvent: data.platformFunctionDeploymentEvents?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs< + S, + CreatePlatformFunctionDeploymentEventInput['platformFunctionDeploymentEvent'] + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createPlatformFunctionDeploymentEvent: { + platformFunctionDeploymentEvent: InferSelectResult< + PlatformFunctionDeploymentEventWithRelations, + S + >; + }; + }> { + const { document, variables } = buildCreateDocument( + 'PlatformFunctionDeploymentEvent', + 'createPlatformFunctionDeploymentEvent', + 'platformFunctionDeploymentEvent', + args.select, + args.data, + 'CreatePlatformFunctionDeploymentEventInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformFunctionDeploymentEvent', + fieldName: 'createPlatformFunctionDeploymentEvent', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + createdAt: string; + }, + PlatformFunctionDeploymentEventPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updatePlatformFunctionDeploymentEvent: { + platformFunctionDeploymentEvent: InferSelectResult< + PlatformFunctionDeploymentEventWithRelations, + S + >; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'PlatformFunctionDeploymentEvent', + 'updatePlatformFunctionDeploymentEvent', + 'platformFunctionDeploymentEvent', + args.select, + args.where.id, + args.data, + 'UpdatePlatformFunctionDeploymentEventInput', + 'id', + 'platformFunctionDeploymentEventPatch', + connectionFieldsMap, + { + createdAt: args.where.createdAt, + } + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformFunctionDeploymentEvent', + fieldName: 'updatePlatformFunctionDeploymentEvent', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + createdAt: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deletePlatformFunctionDeploymentEvent: { + platformFunctionDeploymentEvent: InferSelectResult< + PlatformFunctionDeploymentEventWithRelations, + S + >; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'PlatformFunctionDeploymentEvent', + 'deletePlatformFunctionDeploymentEvent', + 'platformFunctionDeploymentEvent', + { + id: args.where.id, + createdAt: args.where.createdAt, + }, + 'DeletePlatformFunctionDeploymentEventInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformFunctionDeploymentEvent', + fieldName: 'deletePlatformFunctionDeploymentEvent', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/compute/orm/models/platformFunctionExecutionLog.ts b/sdk/constructive-react/src/compute/orm/models/platformFunctionExecutionLog.ts new file mode 100644 index 0000000000..1fe6df0cf8 --- /dev/null +++ b/sdk/constructive-react/src/compute/orm/models/platformFunctionExecutionLog.ts @@ -0,0 +1,266 @@ +/** + * PlatformFunctionExecutionLog model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + PlatformFunctionExecutionLog, + PlatformFunctionExecutionLogWithRelations, + PlatformFunctionExecutionLogSelect, + PlatformFunctionExecutionLogFilter, + PlatformFunctionExecutionLogOrderBy, + CreatePlatformFunctionExecutionLogInput, + UpdatePlatformFunctionExecutionLogInput, + PlatformFunctionExecutionLogPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class PlatformFunctionExecutionLogModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs< + S, + PlatformFunctionExecutionLogFilter, + PlatformFunctionExecutionLogOrderBy + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformFunctionExecutionLogs: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformFunctionExecutionLog', + 'platformFunctionExecutionLogs', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'PlatformFunctionExecutionLogFilter', + 'PlatformFunctionExecutionLogOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformFunctionExecutionLog', + fieldName: 'platformFunctionExecutionLogs', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs< + S, + PlatformFunctionExecutionLogFilter, + PlatformFunctionExecutionLogOrderBy + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformFunctionExecutionLog: InferSelectResult< + PlatformFunctionExecutionLogWithRelations, + S + > | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'PlatformFunctionExecutionLog', + 'platformFunctionExecutionLogs', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'PlatformFunctionExecutionLogFilter', + 'PlatformFunctionExecutionLogOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformFunctionExecutionLog', + fieldName: 'platformFunctionExecutionLog', + document, + variables, + transform: (data: { + platformFunctionExecutionLogs?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformFunctionExecutionLog: data.platformFunctionExecutionLogs?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformFunctionExecutionLog: InferSelectResult< + PlatformFunctionExecutionLogWithRelations, + S + > | null; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformFunctionExecutionLog', + 'platformFunctionExecutionLogs', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'PlatformFunctionExecutionLogFilter', + 'PlatformFunctionExecutionLogOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformFunctionExecutionLog', + fieldName: 'platformFunctionExecutionLog', + document, + variables, + transform: (data: { + platformFunctionExecutionLogs?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformFunctionExecutionLog: data.platformFunctionExecutionLogs?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createPlatformFunctionExecutionLog: { + platformFunctionExecutionLog: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'PlatformFunctionExecutionLog', + 'createPlatformFunctionExecutionLog', + 'platformFunctionExecutionLog', + args.select, + args.data, + 'CreatePlatformFunctionExecutionLogInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformFunctionExecutionLog', + fieldName: 'createPlatformFunctionExecutionLog', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + createdAt: string; + }, + PlatformFunctionExecutionLogPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updatePlatformFunctionExecutionLog: { + platformFunctionExecutionLog: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'PlatformFunctionExecutionLog', + 'updatePlatformFunctionExecutionLog', + 'platformFunctionExecutionLog', + args.select, + args.where.id, + args.data, + 'UpdatePlatformFunctionExecutionLogInput', + 'id', + 'platformFunctionExecutionLogPatch', + connectionFieldsMap, + { + createdAt: args.where.createdAt, + } + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformFunctionExecutionLog', + fieldName: 'updatePlatformFunctionExecutionLog', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + createdAt: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deletePlatformFunctionExecutionLog: { + platformFunctionExecutionLog: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'PlatformFunctionExecutionLog', + 'deletePlatformFunctionExecutionLog', + 'platformFunctionExecutionLog', + { + id: args.where.id, + createdAt: args.where.createdAt, + }, + 'DeletePlatformFunctionExecutionLogInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformFunctionExecutionLog', + fieldName: 'deletePlatformFunctionExecutionLog', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/compute/orm/models/platformFunctionInvocation.ts b/sdk/constructive-react/src/compute/orm/models/platformFunctionInvocation.ts new file mode 100644 index 0000000000..f52ba9df33 --- /dev/null +++ b/sdk/constructive-react/src/compute/orm/models/platformFunctionInvocation.ts @@ -0,0 +1,258 @@ +/** + * PlatformFunctionInvocation model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + PlatformFunctionInvocation, + PlatformFunctionInvocationWithRelations, + PlatformFunctionInvocationSelect, + PlatformFunctionInvocationFilter, + PlatformFunctionInvocationOrderBy, + CreatePlatformFunctionInvocationInput, + UpdatePlatformFunctionInvocationInput, + PlatformFunctionInvocationPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class PlatformFunctionInvocationModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformFunctionInvocations: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformFunctionInvocation', + 'platformFunctionInvocations', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'PlatformFunctionInvocationFilter', + 'PlatformFunctionInvocationOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformFunctionInvocation', + fieldName: 'platformFunctionInvocations', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformFunctionInvocation: InferSelectResult< + PlatformFunctionInvocationWithRelations, + S + > | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'PlatformFunctionInvocation', + 'platformFunctionInvocations', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'PlatformFunctionInvocationFilter', + 'PlatformFunctionInvocationOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformFunctionInvocation', + fieldName: 'platformFunctionInvocation', + document, + variables, + transform: (data: { + platformFunctionInvocations?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformFunctionInvocation: data.platformFunctionInvocations?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformFunctionInvocation: InferSelectResult< + PlatformFunctionInvocationWithRelations, + S + > | null; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformFunctionInvocation', + 'platformFunctionInvocations', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'PlatformFunctionInvocationFilter', + 'PlatformFunctionInvocationOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformFunctionInvocation', + fieldName: 'platformFunctionInvocation', + document, + variables, + transform: (data: { + platformFunctionInvocations?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformFunctionInvocation: data.platformFunctionInvocations?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createPlatformFunctionInvocation: { + platformFunctionInvocation: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'PlatformFunctionInvocation', + 'createPlatformFunctionInvocation', + 'platformFunctionInvocation', + args.select, + args.data, + 'CreatePlatformFunctionInvocationInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformFunctionInvocation', + fieldName: 'createPlatformFunctionInvocation', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + createdAt: string; + }, + PlatformFunctionInvocationPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updatePlatformFunctionInvocation: { + platformFunctionInvocation: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'PlatformFunctionInvocation', + 'updatePlatformFunctionInvocation', + 'platformFunctionInvocation', + args.select, + args.where.id, + args.data, + 'UpdatePlatformFunctionInvocationInput', + 'id', + 'platformFunctionInvocationPatch', + connectionFieldsMap, + { + createdAt: args.where.createdAt, + } + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformFunctionInvocation', + fieldName: 'updatePlatformFunctionInvocation', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + createdAt: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deletePlatformFunctionInvocation: { + platformFunctionInvocation: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'PlatformFunctionInvocation', + 'deletePlatformFunctionInvocation', + 'platformFunctionInvocation', + { + id: args.where.id, + createdAt: args.where.createdAt, + }, + 'DeletePlatformFunctionInvocationInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformFunctionInvocation', + fieldName: 'deletePlatformFunctionInvocation', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/compute/orm/models/secretDefinition.ts b/sdk/constructive-react/src/compute/orm/models/platformResource.ts similarity index 51% rename from sdk/constructive-react/src/compute/orm/models/secretDefinition.ts rename to sdk/constructive-react/src/compute/orm/models/platformResource.ts index 09b9a0b956..00f03ea1dc 100644 --- a/sdk/constructive-react/src/compute/orm/models/secretDefinition.ts +++ b/sdk/constructive-react/src/compute/orm/models/platformResource.ts @@ -1,5 +1,5 @@ /** - * SecretDefinition model for ORM client + * PlatformResource model for ORM client * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -24,28 +24,28 @@ import type { StrictSelect, } from '../select-types'; import type { - SecretDefinition, - SecretDefinitionWithRelations, - SecretDefinitionSelect, - SecretDefinitionFilter, - SecretDefinitionOrderBy, - CreateSecretDefinitionInput, - UpdateSecretDefinitionInput, - SecretDefinitionPatch, + PlatformResource, + PlatformResourceWithRelations, + PlatformResourceSelect, + PlatformResourceFilter, + PlatformResourceOrderBy, + CreatePlatformResourceInput, + UpdatePlatformResourceInput, + PlatformResourcePatch, } from '../input-types'; import { connectionFieldsMap } from '../input-types'; -export class SecretDefinitionModel { +export class PlatformResourceModel { constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { + findMany( + args: FindManyArgs & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - secretDefinitions: ConnectionResult>; + platformResources: ConnectionResult>; }> { const { document, variables } = buildFindManyDocument( - 'SecretDefinition', - 'secretDefinitions', + 'PlatformResource', + 'platformResources', args.select, { where: args?.where, @@ -56,65 +56,65 @@ export class SecretDefinitionModel { before: args?.before, offset: args?.offset, }, - 'SecretDefinitionFilter', - 'SecretDefinitionOrderBy', + 'PlatformResourceFilter', + 'PlatformResourceOrderBy', connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'query', - operationName: 'SecretDefinition', - fieldName: 'secretDefinitions', + operationName: 'PlatformResource', + fieldName: 'platformResources', document, variables, }); } - findFirst( - args: FindFirstArgs & { + findFirst( + args: FindFirstArgs & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - secretDefinition: InferSelectResult | null; + platformResource: InferSelectResult | null; }> { const { document, variables } = buildFindFirstDocument( - 'SecretDefinition', - 'secretDefinitions', + 'PlatformResource', + 'platformResources', args.select, { where: args?.where, orderBy: args?.orderBy as string[] | undefined, }, - 'SecretDefinitionFilter', - 'SecretDefinitionOrderBy', + 'PlatformResourceFilter', + 'PlatformResourceOrderBy', connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'query', - operationName: 'SecretDefinition', - fieldName: 'secretDefinition', + operationName: 'PlatformResource', + fieldName: 'platformResource', document, variables, transform: (data: { - secretDefinitions?: { - nodes?: InferSelectResult[]; + platformResources?: { + nodes?: InferSelectResult[]; }; }) => ({ - secretDefinition: data.secretDefinitions?.nodes?.[0] ?? null, + platformResource: data.platformResources?.nodes?.[0] ?? null, }), }); } - findOne( + findOne( args: { id: string; select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - secretDefinition: InferSelectResult | null; + platformResource: InferSelectResult | null; }> { const { document, variables } = buildFindManyDocument( - 'SecretDefinition', - 'secretDefinitions', + 'PlatformResource', + 'platformResources', args.select, { where: { @@ -124,91 +124,91 @@ export class SecretDefinitionModel { }, first: 1, }, - 'SecretDefinitionFilter', - 'SecretDefinitionOrderBy', + 'PlatformResourceFilter', + 'PlatformResourceOrderBy', connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'query', - operationName: 'SecretDefinition', - fieldName: 'secretDefinition', + operationName: 'PlatformResource', + fieldName: 'platformResource', document, variables, transform: (data: { - secretDefinitions?: { - nodes?: InferSelectResult[]; + platformResources?: { + nodes?: InferSelectResult[]; }; }) => ({ - secretDefinition: data.secretDefinitions?.nodes?.[0] ?? null, + platformResource: data.platformResources?.nodes?.[0] ?? null, }), }); } - create( - args: CreateArgs & { + create( + args: CreateArgs & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - createSecretDefinition: { - secretDefinition: InferSelectResult; + createPlatformResource: { + platformResource: InferSelectResult; }; }> { const { document, variables } = buildCreateDocument( - 'SecretDefinition', - 'createSecretDefinition', - 'secretDefinition', + 'PlatformResource', + 'createPlatformResource', + 'platformResource', args.select, args.data, - 'CreateSecretDefinitionInput', + 'CreatePlatformResourceInput', connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'mutation', - operationName: 'SecretDefinition', - fieldName: 'createSecretDefinition', + operationName: 'PlatformResource', + fieldName: 'createPlatformResource', document, variables, }); } - update( + update( args: UpdateArgs< S, { id: string; }, - SecretDefinitionPatch + PlatformResourcePatch > & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - updateSecretDefinition: { - secretDefinition: InferSelectResult; + updatePlatformResource: { + platformResource: InferSelectResult; }; }> { const { document, variables } = buildUpdateByPkDocument( - 'SecretDefinition', - 'updateSecretDefinition', - 'secretDefinition', + 'PlatformResource', + 'updatePlatformResource', + 'platformResource', args.select, args.where.id, args.data, - 'UpdateSecretDefinitionInput', + 'UpdatePlatformResourceInput', 'id', - 'secretDefinitionPatch', + 'platformResourcePatch', connectionFieldsMap, undefined ); return new QueryBuilder({ client: this.client, operation: 'mutation', - operationName: 'SecretDefinition', - fieldName: 'updateSecretDefinition', + operationName: 'PlatformResource', + fieldName: 'updatePlatformResource', document, variables, }); } - delete( + delete( args: DeleteArgs< { id: string; @@ -216,28 +216,28 @@ export class SecretDefinitionModel { S > & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - deleteSecretDefinition: { - secretDefinition: InferSelectResult; + deletePlatformResource: { + platformResource: InferSelectResult; }; }> { const { document, variables } = buildDeleteByPkDocument( - 'SecretDefinition', - 'deleteSecretDefinition', - 'secretDefinition', + 'PlatformResource', + 'deletePlatformResource', + 'platformResource', { id: args.where.id, }, - 'DeleteSecretDefinitionInput', + 'DeletePlatformResourceInput', args.select, connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'mutation', - operationName: 'SecretDefinition', - fieldName: 'deleteSecretDefinition', + operationName: 'PlatformResource', + fieldName: 'deletePlatformResource', document, variables, }); diff --git a/sdk/constructive-react/src/compute/orm/models/platformResourceDefinition.ts b/sdk/constructive-react/src/compute/orm/models/platformResourceDefinition.ts new file mode 100644 index 0000000000..a23e8bf5a1 --- /dev/null +++ b/sdk/constructive-react/src/compute/orm/models/platformResourceDefinition.ts @@ -0,0 +1,253 @@ +/** + * PlatformResourceDefinition model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + PlatformResourceDefinition, + PlatformResourceDefinitionWithRelations, + PlatformResourceDefinitionSelect, + PlatformResourceDefinitionFilter, + PlatformResourceDefinitionOrderBy, + CreatePlatformResourceDefinitionInput, + UpdatePlatformResourceDefinitionInput, + PlatformResourceDefinitionPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class PlatformResourceDefinitionModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformResourceDefinitions: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformResourceDefinition', + 'platformResourceDefinitions', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'PlatformResourceDefinitionFilter', + 'PlatformResourceDefinitionOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformResourceDefinition', + fieldName: 'platformResourceDefinitions', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformResourceDefinition: InferSelectResult< + PlatformResourceDefinitionWithRelations, + S + > | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'PlatformResourceDefinition', + 'platformResourceDefinitions', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'PlatformResourceDefinitionFilter', + 'PlatformResourceDefinitionOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformResourceDefinition', + fieldName: 'platformResourceDefinition', + document, + variables, + transform: (data: { + platformResourceDefinitions?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformResourceDefinition: data.platformResourceDefinitions?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformResourceDefinition: InferSelectResult< + PlatformResourceDefinitionWithRelations, + S + > | null; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformResourceDefinition', + 'platformResourceDefinitions', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'PlatformResourceDefinitionFilter', + 'PlatformResourceDefinitionOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformResourceDefinition', + fieldName: 'platformResourceDefinition', + document, + variables, + transform: (data: { + platformResourceDefinitions?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformResourceDefinition: data.platformResourceDefinitions?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createPlatformResourceDefinition: { + platformResourceDefinition: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'PlatformResourceDefinition', + 'createPlatformResourceDefinition', + 'platformResourceDefinition', + args.select, + args.data, + 'CreatePlatformResourceDefinitionInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformResourceDefinition', + fieldName: 'createPlatformResourceDefinition', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + PlatformResourceDefinitionPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updatePlatformResourceDefinition: { + platformResourceDefinition: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'PlatformResourceDefinition', + 'updatePlatformResourceDefinition', + 'platformResourceDefinition', + args.select, + args.where.id, + args.data, + 'UpdatePlatformResourceDefinitionInput', + 'id', + 'platformResourceDefinitionPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformResourceDefinition', + fieldName: 'updatePlatformResourceDefinition', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deletePlatformResourceDefinition: { + platformResourceDefinition: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'PlatformResourceDefinition', + 'deletePlatformResourceDefinition', + 'platformResourceDefinition', + { + id: args.where.id, + }, + 'DeletePlatformResourceDefinitionInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformResourceDefinition', + fieldName: 'deletePlatformResourceDefinition', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/compute/orm/models/platformResourceEvent.ts b/sdk/constructive-react/src/compute/orm/models/platformResourceEvent.ts new file mode 100644 index 0000000000..77ae28e155 --- /dev/null +++ b/sdk/constructive-react/src/compute/orm/models/platformResourceEvent.ts @@ -0,0 +1,252 @@ +/** + * PlatformResourceEvent model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + PlatformResourceEvent, + PlatformResourceEventWithRelations, + PlatformResourceEventSelect, + PlatformResourceEventFilter, + PlatformResourceEventOrderBy, + CreatePlatformResourceEventInput, + UpdatePlatformResourceEventInput, + PlatformResourceEventPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class PlatformResourceEventModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformResourceEvents: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformResourceEvent', + 'platformResourceEvents', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'PlatformResourceEventFilter', + 'PlatformResourceEventOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformResourceEvent', + fieldName: 'platformResourceEvents', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformResourceEvent: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'PlatformResourceEvent', + 'platformResourceEvents', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'PlatformResourceEventFilter', + 'PlatformResourceEventOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformResourceEvent', + fieldName: 'platformResourceEvent', + document, + variables, + transform: (data: { + platformResourceEvents?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformResourceEvent: data.platformResourceEvents?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformResourceEvent: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformResourceEvent', + 'platformResourceEvents', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'PlatformResourceEventFilter', + 'PlatformResourceEventOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformResourceEvent', + fieldName: 'platformResourceEvent', + document, + variables, + transform: (data: { + platformResourceEvents?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformResourceEvent: data.platformResourceEvents?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createPlatformResourceEvent: { + platformResourceEvent: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'PlatformResourceEvent', + 'createPlatformResourceEvent', + 'platformResourceEvent', + args.select, + args.data, + 'CreatePlatformResourceEventInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformResourceEvent', + fieldName: 'createPlatformResourceEvent', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + createdAt: string; + }, + PlatformResourceEventPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updatePlatformResourceEvent: { + platformResourceEvent: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'PlatformResourceEvent', + 'updatePlatformResourceEvent', + 'platformResourceEvent', + args.select, + args.where.id, + args.data, + 'UpdatePlatformResourceEventInput', + 'id', + 'platformResourceEventPatch', + connectionFieldsMap, + { + createdAt: args.where.createdAt, + } + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformResourceEvent', + fieldName: 'updatePlatformResourceEvent', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + createdAt: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deletePlatformResourceEvent: { + platformResourceEvent: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'PlatformResourceEvent', + 'deletePlatformResourceEvent', + 'platformResourceEvent', + { + id: args.where.id, + createdAt: args.where.createdAt, + }, + 'DeletePlatformResourceEventInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformResourceEvent', + fieldName: 'deletePlatformResourceEvent', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/compute/orm/models/platformResourceStatusCheck.ts b/sdk/constructive-react/src/compute/orm/models/platformResourceStatusCheck.ts new file mode 100644 index 0000000000..16f33db355 --- /dev/null +++ b/sdk/constructive-react/src/compute/orm/models/platformResourceStatusCheck.ts @@ -0,0 +1,257 @@ +/** + * PlatformResourceStatusCheck model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + PlatformResourceStatusCheck, + PlatformResourceStatusCheckWithRelations, + PlatformResourceStatusCheckSelect, + PlatformResourceStatusCheckFilter, + PlatformResourceStatusCheckOrderBy, + CreatePlatformResourceStatusCheckInput, + UpdatePlatformResourceStatusCheckInput, + PlatformResourceStatusCheckPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class PlatformResourceStatusCheckModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformResourceStatusChecks: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformResourceStatusCheck', + 'platformResourceStatusChecks', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'PlatformResourceStatusCheckFilter', + 'PlatformResourceStatusCheckOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformResourceStatusCheck', + fieldName: 'platformResourceStatusChecks', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs< + S, + PlatformResourceStatusCheckFilter, + PlatformResourceStatusCheckOrderBy + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformResourceStatusCheck: InferSelectResult< + PlatformResourceStatusCheckWithRelations, + S + > | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'PlatformResourceStatusCheck', + 'platformResourceStatusChecks', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'PlatformResourceStatusCheckFilter', + 'PlatformResourceStatusCheckOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformResourceStatusCheck', + fieldName: 'platformResourceStatusCheck', + document, + variables, + transform: (data: { + platformResourceStatusChecks?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformResourceStatusCheck: data.platformResourceStatusChecks?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformResourceStatusCheck: InferSelectResult< + PlatformResourceStatusCheckWithRelations, + S + > | null; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformResourceStatusCheck', + 'platformResourceStatusChecks', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'PlatformResourceStatusCheckFilter', + 'PlatformResourceStatusCheckOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformResourceStatusCheck', + fieldName: 'platformResourceStatusCheck', + document, + variables, + transform: (data: { + platformResourceStatusChecks?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformResourceStatusCheck: data.platformResourceStatusChecks?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createPlatformResourceStatusCheck: { + platformResourceStatusCheck: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'PlatformResourceStatusCheck', + 'createPlatformResourceStatusCheck', + 'platformResourceStatusCheck', + args.select, + args.data, + 'CreatePlatformResourceStatusCheckInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformResourceStatusCheck', + fieldName: 'createPlatformResourceStatusCheck', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + PlatformResourceStatusCheckPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updatePlatformResourceStatusCheck: { + platformResourceStatusCheck: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'PlatformResourceStatusCheck', + 'updatePlatformResourceStatusCheck', + 'platformResourceStatusCheck', + args.select, + args.where.id, + args.data, + 'UpdatePlatformResourceStatusCheckInput', + 'id', + 'platformResourceStatusCheckPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformResourceStatusCheck', + fieldName: 'updatePlatformResourceStatusCheck', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deletePlatformResourceStatusCheck: { + platformResourceStatusCheck: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'PlatformResourceStatusCheck', + 'deletePlatformResourceStatusCheck', + 'platformResourceStatusCheck', + { + id: args.where.id, + }, + 'DeletePlatformResourceStatusCheckInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformResourceStatusCheck', + fieldName: 'deletePlatformResourceStatusCheck', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/compute/orm/models/platformResourcesRequirementsState.ts b/sdk/constructive-react/src/compute/orm/models/platformResourcesRequirementsState.ts new file mode 100644 index 0000000000..ab6152e426 --- /dev/null +++ b/sdk/constructive-react/src/compute/orm/models/platformResourcesRequirementsState.ts @@ -0,0 +1,154 @@ +/** + * PlatformResourcesRequirementsState model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + PlatformResourcesRequirementsState, + PlatformResourcesRequirementsStateWithRelations, + PlatformResourcesRequirementsStateSelect, + PlatformResourcesRequirementsStateFilter, + PlatformResourcesRequirementsStateOrderBy, + CreatePlatformResourcesRequirementsStateInput, + UpdatePlatformResourcesRequirementsStateInput, + PlatformResourcesRequirementsStatePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class PlatformResourcesRequirementsStateModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs< + S, + PlatformResourcesRequirementsStateFilter, + PlatformResourcesRequirementsStateOrderBy + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformResourcesRequirementsStates: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformResourcesRequirementsState', + 'platformResourcesRequirementsStates', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'PlatformResourcesRequirementsStateFilter', + 'PlatformResourcesRequirementsStateOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformResourcesRequirementsState', + fieldName: 'platformResourcesRequirementsStates', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs< + S, + PlatformResourcesRequirementsStateFilter, + PlatformResourcesRequirementsStateOrderBy + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformResourcesRequirementsState: InferSelectResult< + PlatformResourcesRequirementsStateWithRelations, + S + > | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'PlatformResourcesRequirementsState', + 'platformResourcesRequirementsStates', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'PlatformResourcesRequirementsStateFilter', + 'PlatformResourcesRequirementsStateOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformResourcesRequirementsState', + fieldName: 'platformResourcesRequirementsState', + document, + variables, + transform: (data: { + platformResourcesRequirementsStates?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformResourcesRequirementsState: + data.platformResourcesRequirementsStates?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs< + S, + CreatePlatformResourcesRequirementsStateInput['platformResourcesRequirementsState'] + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createPlatformResourcesRequirementsState: { + platformResourcesRequirementsState: InferSelectResult< + PlatformResourcesRequirementsStateWithRelations, + S + >; + }; + }> { + const { document, variables } = buildCreateDocument( + 'PlatformResourcesRequirementsState', + 'createPlatformResourcesRequirementsState', + 'platformResourcesRequirementsState', + args.select, + args.data, + 'CreatePlatformResourcesRequirementsStateInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformResourcesRequirementsState', + fieldName: 'createPlatformResourcesRequirementsState', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/compute/orm/models/platformResourcesResolvedRequirement.ts b/sdk/constructive-react/src/compute/orm/models/platformResourcesResolvedRequirement.ts new file mode 100644 index 0000000000..d7d7bf4ed0 --- /dev/null +++ b/sdk/constructive-react/src/compute/orm/models/platformResourcesResolvedRequirement.ts @@ -0,0 +1,154 @@ +/** + * PlatformResourcesResolvedRequirement model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + PlatformResourcesResolvedRequirement, + PlatformResourcesResolvedRequirementWithRelations, + PlatformResourcesResolvedRequirementSelect, + PlatformResourcesResolvedRequirementFilter, + PlatformResourcesResolvedRequirementOrderBy, + CreatePlatformResourcesResolvedRequirementInput, + UpdatePlatformResourcesResolvedRequirementInput, + PlatformResourcesResolvedRequirementPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class PlatformResourcesResolvedRequirementModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs< + S, + PlatformResourcesResolvedRequirementFilter, + PlatformResourcesResolvedRequirementOrderBy + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformResourcesResolvedRequirements: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformResourcesResolvedRequirement', + 'platformResourcesResolvedRequirements', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'PlatformResourcesResolvedRequirementFilter', + 'PlatformResourcesResolvedRequirementOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformResourcesResolvedRequirement', + fieldName: 'platformResourcesResolvedRequirements', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs< + S, + PlatformResourcesResolvedRequirementFilter, + PlatformResourcesResolvedRequirementOrderBy + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformResourcesResolvedRequirement: InferSelectResult< + PlatformResourcesResolvedRequirementWithRelations, + S + > | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'PlatformResourcesResolvedRequirement', + 'platformResourcesResolvedRequirements', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'PlatformResourcesResolvedRequirementFilter', + 'PlatformResourcesResolvedRequirementOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformResourcesResolvedRequirement', + fieldName: 'platformResourcesResolvedRequirement', + document, + variables, + transform: (data: { + platformResourcesResolvedRequirements?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformResourcesResolvedRequirement: + data.platformResourcesResolvedRequirements?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs< + S, + CreatePlatformResourcesResolvedRequirementInput['platformResourcesResolvedRequirement'] + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createPlatformResourcesResolvedRequirement: { + platformResourcesResolvedRequirement: InferSelectResult< + PlatformResourcesResolvedRequirementWithRelations, + S + >; + }; + }> { + const { document, variables } = buildCreateDocument( + 'PlatformResourcesResolvedRequirement', + 'createPlatformResourcesResolvedRequirement', + 'platformResourcesResolvedRequirement', + args.select, + args.data, + 'CreatePlatformResourcesResolvedRequirementInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformResourcesResolvedRequirement', + fieldName: 'createPlatformResourcesResolvedRequirement', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/compute/orm/models/resourceDefinition.ts b/sdk/constructive-react/src/compute/orm/models/resourceDefinition.ts new file mode 100644 index 0000000000..26be134a8b --- /dev/null +++ b/sdk/constructive-react/src/compute/orm/models/resourceDefinition.ts @@ -0,0 +1,245 @@ +/** + * ResourceDefinition model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + ResourceDefinition, + ResourceDefinitionWithRelations, + ResourceDefinitionSelect, + ResourceDefinitionFilter, + ResourceDefinitionOrderBy, + CreateResourceDefinitionInput, + UpdateResourceDefinitionInput, + ResourceDefinitionPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class ResourceDefinitionModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + resourceDefinitions: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'ResourceDefinition', + 'resourceDefinitions', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'ResourceDefinitionFilter', + 'ResourceDefinitionOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ResourceDefinition', + fieldName: 'resourceDefinitions', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + resourceDefinition: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'ResourceDefinition', + 'resourceDefinitions', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'ResourceDefinitionFilter', + 'ResourceDefinitionOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ResourceDefinition', + fieldName: 'resourceDefinition', + document, + variables, + transform: (data: { + resourceDefinitions?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + resourceDefinition: data.resourceDefinitions?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + resourceDefinition: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'ResourceDefinition', + 'resourceDefinitions', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'ResourceDefinitionFilter', + 'ResourceDefinitionOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ResourceDefinition', + fieldName: 'resourceDefinition', + document, + variables, + transform: (data: { + resourceDefinitions?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + resourceDefinition: data.resourceDefinitions?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createResourceDefinition: { + resourceDefinition: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'ResourceDefinition', + 'createResourceDefinition', + 'resourceDefinition', + args.select, + args.data, + 'CreateResourceDefinitionInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ResourceDefinition', + fieldName: 'createResourceDefinition', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + ResourceDefinitionPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateResourceDefinition: { + resourceDefinition: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'ResourceDefinition', + 'updateResourceDefinition', + 'resourceDefinition', + args.select, + args.where.id, + args.data, + 'UpdateResourceDefinitionInput', + 'id', + 'resourceDefinitionPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ResourceDefinition', + fieldName: 'updateResourceDefinition', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteResourceDefinition: { + resourceDefinition: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'ResourceDefinition', + 'deleteResourceDefinition', + 'resourceDefinition', + { + id: args.where.id, + }, + 'DeleteResourceDefinitionInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ResourceDefinition', + fieldName: 'deleteResourceDefinition', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/compute/orm/models/resourceStatusCheck.ts b/sdk/constructive-react/src/compute/orm/models/resourceStatusCheck.ts new file mode 100644 index 0000000000..e7241931ee --- /dev/null +++ b/sdk/constructive-react/src/compute/orm/models/resourceStatusCheck.ts @@ -0,0 +1,245 @@ +/** + * ResourceStatusCheck model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + ResourceStatusCheck, + ResourceStatusCheckWithRelations, + ResourceStatusCheckSelect, + ResourceStatusCheckFilter, + ResourceStatusCheckOrderBy, + CreateResourceStatusCheckInput, + UpdateResourceStatusCheckInput, + ResourceStatusCheckPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class ResourceStatusCheckModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + resourceStatusChecks: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'ResourceStatusCheck', + 'resourceStatusChecks', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'ResourceStatusCheckFilter', + 'ResourceStatusCheckOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ResourceStatusCheck', + fieldName: 'resourceStatusChecks', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + resourceStatusCheck: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'ResourceStatusCheck', + 'resourceStatusChecks', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'ResourceStatusCheckFilter', + 'ResourceStatusCheckOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ResourceStatusCheck', + fieldName: 'resourceStatusCheck', + document, + variables, + transform: (data: { + resourceStatusChecks?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + resourceStatusCheck: data.resourceStatusChecks?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + resourceStatusCheck: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'ResourceStatusCheck', + 'resourceStatusChecks', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'ResourceStatusCheckFilter', + 'ResourceStatusCheckOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ResourceStatusCheck', + fieldName: 'resourceStatusCheck', + document, + variables, + transform: (data: { + resourceStatusChecks?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + resourceStatusCheck: data.resourceStatusChecks?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createResourceStatusCheck: { + resourceStatusCheck: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'ResourceStatusCheck', + 'createResourceStatusCheck', + 'resourceStatusCheck', + args.select, + args.data, + 'CreateResourceStatusCheckInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ResourceStatusCheck', + fieldName: 'createResourceStatusCheck', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + ResourceStatusCheckPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateResourceStatusCheck: { + resourceStatusCheck: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'ResourceStatusCheck', + 'updateResourceStatusCheck', + 'resourceStatusCheck', + args.select, + args.where.id, + args.data, + 'UpdateResourceStatusCheckInput', + 'id', + 'resourceStatusCheckPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ResourceStatusCheck', + fieldName: 'updateResourceStatusCheck', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteResourceStatusCheck: { + resourceStatusCheck: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'ResourceStatusCheck', + 'deleteResourceStatusCheck', + 'resourceStatusCheck', + { + id: args.where.id, + }, + 'DeleteResourceStatusCheckInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ResourceStatusCheck', + fieldName: 'deleteResourceStatusCheck', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/compute/orm/models/resourcesRequirementsState.ts b/sdk/constructive-react/src/compute/orm/models/resourcesRequirementsState.ts new file mode 100644 index 0000000000..8ce68f6a31 --- /dev/null +++ b/sdk/constructive-react/src/compute/orm/models/resourcesRequirementsState.ts @@ -0,0 +1,139 @@ +/** + * ResourcesRequirementsState model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + ResourcesRequirementsState, + ResourcesRequirementsStateWithRelations, + ResourcesRequirementsStateSelect, + ResourcesRequirementsStateFilter, + ResourcesRequirementsStateOrderBy, + CreateResourcesRequirementsStateInput, + UpdateResourcesRequirementsStateInput, + ResourcesRequirementsStatePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class ResourcesRequirementsStateModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + resourcesRequirementsStates: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'ResourcesRequirementsState', + 'resourcesRequirementsStates', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'ResourcesRequirementsStateFilter', + 'ResourcesRequirementsStateOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ResourcesRequirementsState', + fieldName: 'resourcesRequirementsStates', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + resourcesRequirementsState: InferSelectResult< + ResourcesRequirementsStateWithRelations, + S + > | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'ResourcesRequirementsState', + 'resourcesRequirementsStates', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'ResourcesRequirementsStateFilter', + 'ResourcesRequirementsStateOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ResourcesRequirementsState', + fieldName: 'resourcesRequirementsState', + document, + variables, + transform: (data: { + resourcesRequirementsStates?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + resourcesRequirementsState: data.resourcesRequirementsStates?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createResourcesRequirementsState: { + resourcesRequirementsState: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'ResourcesRequirementsState', + 'createResourcesRequirementsState', + 'resourcesRequirementsState', + args.select, + args.data, + 'CreateResourcesRequirementsStateInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ResourcesRequirementsState', + fieldName: 'createResourcesRequirementsState', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/compute/orm/models/resourcesResolvedRequirement.ts b/sdk/constructive-react/src/compute/orm/models/resourcesResolvedRequirement.ts new file mode 100644 index 0000000000..40680dcfb3 --- /dev/null +++ b/sdk/constructive-react/src/compute/orm/models/resourcesResolvedRequirement.ts @@ -0,0 +1,147 @@ +/** + * ResourcesResolvedRequirement model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + ResourcesResolvedRequirement, + ResourcesResolvedRequirementWithRelations, + ResourcesResolvedRequirementSelect, + ResourcesResolvedRequirementFilter, + ResourcesResolvedRequirementOrderBy, + CreateResourcesResolvedRequirementInput, + UpdateResourcesResolvedRequirementInput, + ResourcesResolvedRequirementPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class ResourcesResolvedRequirementModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs< + S, + ResourcesResolvedRequirementFilter, + ResourcesResolvedRequirementOrderBy + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + resourcesResolvedRequirements: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'ResourcesResolvedRequirement', + 'resourcesResolvedRequirements', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'ResourcesResolvedRequirementFilter', + 'ResourcesResolvedRequirementOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ResourcesResolvedRequirement', + fieldName: 'resourcesResolvedRequirements', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs< + S, + ResourcesResolvedRequirementFilter, + ResourcesResolvedRequirementOrderBy + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + resourcesResolvedRequirement: InferSelectResult< + ResourcesResolvedRequirementWithRelations, + S + > | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'ResourcesResolvedRequirement', + 'resourcesResolvedRequirements', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'ResourcesResolvedRequirementFilter', + 'ResourcesResolvedRequirementOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ResourcesResolvedRequirement', + fieldName: 'resourcesResolvedRequirement', + document, + variables, + transform: (data: { + resourcesResolvedRequirements?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + resourcesResolvedRequirement: data.resourcesResolvedRequirements?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createResourcesResolvedRequirement: { + resourcesResolvedRequirement: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'ResourcesResolvedRequirement', + 'createResourcesResolvedRequirement', + 'resourcesResolvedRequirement', + args.select, + args.data, + 'CreateResourcesResolvedRequirementInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ResourcesResolvedRequirement', + fieldName: 'createResourcesResolvedRequirement', + 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 932f75c399..d7b6550f55 100644 --- a/sdk/constructive-react/src/compute/orm/mutation/index.ts +++ b/sdk/constructive-react/src/compute/orm/mutation/index.ts @@ -8,9 +8,11 @@ import { QueryBuilder, buildCustomDocument } from '../query-builder'; import type { InferSelectResult, StrictSelect } from '../select-types'; import type { ValidateFunctionGraphInput, + InfraInitEmptyRepoInput, InitEmptyRepoInput, - SetDataAtPathInput, ImportDefinitionsInput, + InfraSetDataAtPathInput, + SetDataAtPathInput, CopyGraphInput, SaveGraphInput, AddEdgeAndSaveInput, @@ -18,13 +20,16 @@ import type { ImportGraphJsonInput, AddEdgeInput, AddNodeInput, + InfraInsertNodeAtPathInput, InsertNodeAtPathInput, StartExecutionInput, ProvisionBucketInput, ValidateFunctionGraphPayload, + InfraInitEmptyRepoPayload, InitEmptyRepoPayload, - SetDataAtPathPayload, ImportDefinitionsPayload, + InfraSetDataAtPathPayload, + SetDataAtPathPayload, CopyGraphPayload, SaveGraphPayload, AddEdgeAndSavePayload, @@ -32,13 +37,16 @@ import type { ImportGraphJsonPayload, AddEdgePayload, AddNodePayload, + InfraInsertNodeAtPathPayload, InsertNodeAtPathPayload, StartExecutionPayload, ProvisionBucketPayload, ValidateFunctionGraphPayloadSelect, + InfraInitEmptyRepoPayloadSelect, InitEmptyRepoPayloadSelect, - SetDataAtPathPayloadSelect, ImportDefinitionsPayloadSelect, + InfraSetDataAtPathPayloadSelect, + SetDataAtPathPayloadSelect, CopyGraphPayloadSelect, SaveGraphPayloadSelect, AddEdgeAndSavePayloadSelect, @@ -46,6 +54,7 @@ import type { ImportGraphJsonPayloadSelect, AddEdgePayloadSelect, AddNodePayloadSelect, + InfraInsertNodeAtPathPayloadSelect, InsertNodeAtPathPayloadSelect, StartExecutionPayloadSelect, ProvisionBucketPayloadSelect, @@ -54,15 +63,21 @@ import { connectionFieldsMap } from '../input-types'; export interface ValidateFunctionGraphVariables { input: ValidateFunctionGraphInput; } +export interface InfraInitEmptyRepoVariables { + input: InfraInitEmptyRepoInput; +} export interface InitEmptyRepoVariables { input: InitEmptyRepoInput; } -export interface SetDataAtPathVariables { - input: SetDataAtPathInput; -} export interface ImportDefinitionsVariables { input: ImportDefinitionsInput; } +export interface InfraSetDataAtPathVariables { + input: InfraSetDataAtPathInput; +} +export interface SetDataAtPathVariables { + input: SetDataAtPathInput; +} export interface CopyGraphVariables { input: CopyGraphInput; } @@ -84,6 +99,9 @@ export interface AddEdgeVariables { export interface AddNodeVariables { input: AddNodeInput; } +export interface InfraInsertNodeAtPathVariables { + input: InfraInsertNodeAtPathInput; +} export interface InsertNodeAtPathVariables { input: InsertNodeAtPathInput; } @@ -131,62 +149,62 @@ export function createMutationOperations(client: OrmClient) { 'ValidateFunctionGraphPayload' ), }), - initEmptyRepo: ( - args: InitEmptyRepoVariables, + infraInitEmptyRepo: ( + args: InfraInitEmptyRepoVariables, options: { select: S; - } & StrictSelect + } & StrictSelect ) => new QueryBuilder<{ - initEmptyRepo: InferSelectResult | null; + infraInitEmptyRepo: InferSelectResult | null; }>({ client, operation: 'mutation', - operationName: 'InitEmptyRepo', - fieldName: 'initEmptyRepo', + operationName: 'InfraInitEmptyRepo', + fieldName: 'infraInitEmptyRepo', ...buildCustomDocument( 'mutation', - 'InitEmptyRepo', - 'initEmptyRepo', + 'InfraInitEmptyRepo', + 'infraInitEmptyRepo', options.select, args, [ { name: 'input', - type: 'InitEmptyRepoInput!', + type: 'InfraInitEmptyRepoInput!', }, ], connectionFieldsMap, - 'InitEmptyRepoPayload' + 'InfraInitEmptyRepoPayload' ), }), - setDataAtPath: ( - args: SetDataAtPathVariables, + initEmptyRepo: ( + args: InitEmptyRepoVariables, options: { select: S; - } & StrictSelect + } & StrictSelect ) => new QueryBuilder<{ - setDataAtPath: InferSelectResult | null; + initEmptyRepo: InferSelectResult | null; }>({ client, operation: 'mutation', - operationName: 'SetDataAtPath', - fieldName: 'setDataAtPath', + operationName: 'InitEmptyRepo', + fieldName: 'initEmptyRepo', ...buildCustomDocument( 'mutation', - 'SetDataAtPath', - 'setDataAtPath', + 'InitEmptyRepo', + 'initEmptyRepo', options.select, args, [ { name: 'input', - type: 'SetDataAtPathInput!', + type: 'InitEmptyRepoInput!', }, ], connectionFieldsMap, - 'SetDataAtPathPayload' + 'InitEmptyRepoPayload' ), }), importDefinitions: ( @@ -218,6 +236,64 @@ export function createMutationOperations(client: OrmClient) { 'ImportDefinitionsPayload' ), }), + infraSetDataAtPath: ( + args: InfraSetDataAtPathVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + infraSetDataAtPath: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'InfraSetDataAtPath', + fieldName: 'infraSetDataAtPath', + ...buildCustomDocument( + 'mutation', + 'InfraSetDataAtPath', + 'infraSetDataAtPath', + options.select, + args, + [ + { + name: 'input', + type: 'InfraSetDataAtPathInput!', + }, + ], + connectionFieldsMap, + 'InfraSetDataAtPathPayload' + ), + }), + setDataAtPath: ( + args: SetDataAtPathVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + setDataAtPath: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'SetDataAtPath', + fieldName: 'setDataAtPath', + ...buildCustomDocument( + 'mutation', + 'SetDataAtPath', + 'setDataAtPath', + options.select, + args, + [ + { + name: 'input', + type: 'SetDataAtPathInput!', + }, + ], + connectionFieldsMap, + 'SetDataAtPathPayload' + ), + }), copyGraph: ( args: CopyGraphVariables, options: { @@ -421,6 +497,35 @@ export function createMutationOperations(client: OrmClient) { 'AddNodePayload' ), }), + infraInsertNodeAtPath: ( + args: InfraInsertNodeAtPathVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + infraInsertNodeAtPath: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'InfraInsertNodeAtPath', + fieldName: 'infraInsertNodeAtPath', + ...buildCustomDocument( + 'mutation', + 'InfraInsertNodeAtPath', + 'infraInsertNodeAtPath', + options.select, + args, + [ + { + name: 'input', + type: 'InfraInsertNodeAtPathInput!', + }, + ], + connectionFieldsMap, + 'InfraInsertNodeAtPathPayload' + ), + }), insertNodeAtPath: ( args: InsertNodeAtPathVariables, options: { diff --git a/sdk/constructive-react/src/compute/schema-types.ts b/sdk/constructive-react/src/compute/schema-types.ts index 5349c9f731..29c06601eb 100644 --- a/sdk/constructive-react/src/compute/schema-types.ts +++ b/sdk/constructive-react/src/compute/schema-types.ts @@ -5,6 +5,7 @@ */ import type { + DbPreset, FunctionApiBinding, FunctionDefinition, FunctionDeployment, @@ -20,13 +21,34 @@ import type { FunctionGraphStore, FunctionInvocation, GetAllRecord, - OrgFunctionExecutionLog, - OrgFunctionInvocation, + InfraCommit, + InfraGetAllRecord, + InfraObject, + InfraRef, + InfraStore, + IntegrationProvider, + Namespace, + NamespaceEvent, + PlatformFunctionApiBinding, + PlatformFunctionDefinition, + PlatformFunctionDeployment, + PlatformFunctionDeploymentEvent, + PlatformFunctionExecutionLog, + PlatformFunctionInvocation, PlatformNamespace, PlatformNamespaceEvent, + PlatformResource, + PlatformResourceDefinition, + PlatformResourceEvent, + PlatformResourceStatusCheck, + PlatformResourcesRequirementsState, + PlatformResourcesResolvedRequirement, Resource, + ResourceDefinition, ResourceEvent, - SecretDefinition, + ResourceStatusCheck, + ResourcesRequirementsState, + ResourcesResolvedRequirement, BigFloatFilter, BigIntFilter, BitStringFilter, @@ -46,6 +68,37 @@ import type { VectorFilter, } from './types'; export type Base64EncodedBinary = unknown; +export type ConstructiveInternalTypeImage = unknown; +/** Methods to use when ordering `InfraRef`. */ +export type InfraRefOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'SCOPE_ID_ASC' + | 'SCOPE_ID_DESC' + | 'STORE_ID_ASC' + | 'STORE_ID_DESC' + | 'COMMIT_ID_ASC' + | 'COMMIT_ID_DESC'; +/** Methods to use when ordering `InfraStore`. */ +export type InfraStoreOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'SCOPE_ID_ASC' + | 'SCOPE_ID_DESC' + | 'HASH_ASC' + | 'HASH_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC'; /** Methods to use when ordering `FunctionApiBinding`. */ export type FunctionApiBindingOrderBy = | 'NATURAL' @@ -61,8 +114,87 @@ export type FunctionApiBindingOrderBy = | 'ALIAS_DESC' | 'CONFIG_ASC' | 'CONFIG_DESC'; -/** Methods to use when ordering `FunctionDeployment`. */ -export type FunctionDeploymentOrderBy = +/** Methods to use when ordering `FunctionGraphRef`. */ +export type FunctionGraphRefOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'SCOPE_ID_ASC' + | 'SCOPE_ID_DESC' + | 'STORE_ID_ASC' + | 'STORE_ID_DESC' + | 'COMMIT_ID_ASC' + | 'COMMIT_ID_DESC'; +/** Methods to use when ordering `FunctionGraphStore`. */ +export type FunctionGraphStoreOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'SCOPE_ID_ASC' + | 'SCOPE_ID_DESC' + | 'HASH_ASC' + | 'HASH_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC'; +/** Methods to use when ordering `PlatformFunctionApiBinding`. */ +export type PlatformFunctionApiBindingOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'FUNCTION_DEFINITION_ID_ASC' + | 'FUNCTION_DEFINITION_ID_DESC' + | 'API_ID_ASC' + | 'API_ID_DESC' + | 'ALIAS_ASC' + | 'ALIAS_DESC' + | 'CONFIG_ASC' + | 'CONFIG_DESC'; +/** Methods to use when ordering `PlatformResourcesRequirementsState`. */ +export type PlatformResourcesRequirementsStateOrderBy = + | 'NATURAL' + | 'RESOURCE_ID_ASC' + | 'RESOURCE_ID_DESC' + | 'SLUG_ASC' + | 'SLUG_DESC' + | 'SECRETS_HASH_ASC' + | 'SECRETS_HASH_DESC' + | 'CONFIG_HASH_ASC' + | 'CONFIG_HASH_DESC' + | 'REQUIREMENTS_HASH_ASC' + | 'REQUIREMENTS_HASH_DESC' + | 'SECRETS_OBJECT_NAME_ASC' + | 'SECRETS_OBJECT_NAME_DESC' + | 'CONFIG_OBJECT_NAME_ASC' + | 'CONFIG_OBJECT_NAME_DESC'; +/** Methods to use when ordering `ResourcesRequirementsState`. */ +export type ResourcesRequirementsStateOrderBy = + | 'NATURAL' + | 'RESOURCE_ID_ASC' + | 'RESOURCE_ID_DESC' + | 'SLUG_ASC' + | 'SLUG_DESC' + | 'SECRETS_HASH_ASC' + | 'SECRETS_HASH_DESC' + | 'CONFIG_HASH_ASC' + | 'CONFIG_HASH_DESC' + | 'REQUIREMENTS_HASH_ASC' + | 'REQUIREMENTS_HASH_DESC' + | 'SECRETS_OBJECT_NAME_ASC' + | 'SECRETS_OBJECT_NAME_DESC' + | 'CONFIG_OBJECT_NAME_ASC' + | 'CONFIG_OBJECT_NAME_DESC'; +/** Methods to use when ordering `PlatformFunctionDeployment`. */ +export type PlatformFunctionDeploymentOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -72,8 +204,6 @@ export type FunctionDeploymentOrderBy = | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' - | 'FUNCTION_DEFINITION_ID_ASC' - | 'FUNCTION_DEFINITION_ID_DESC' | 'NAMESPACE_ID_ASC' | 'NAMESPACE_ID_DESC' | 'STATUS_ASC' @@ -86,6 +216,10 @@ export type FunctionDeploymentOrderBy = | 'REVISION_DESC' | 'IMAGE_ASC' | 'IMAGE_DESC' + | 'IMAGE_VERSION_ASC' + | 'IMAGE_VERSION_DESC' + | 'HANDLER_NAME_ASC' + | 'HANDLER_NAME_DESC' | 'CONCURRENCY_ASC' | 'CONCURRENCY_DESC' | 'SCALE_MIN_ASC' @@ -105,11 +239,9 @@ export type FunctionDeploymentOrderBy = | 'LABELS_ASC' | 'LABELS_DESC' | 'ANNOTATIONS_ASC' - | 'ANNOTATIONS_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC'; -/** Methods to use when ordering `Resource`. */ -export type ResourceOrderBy = + | 'ANNOTATIONS_DESC'; +/** Methods to use when ordering `PlatformResource`. */ +export type PlatformResourceOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -145,36 +277,87 @@ export type ResourceOrderBy = | 'LABELS_DESC' | 'ANNOTATIONS_ASC' | 'ANNOTATIONS_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC'; -/** Methods to use when ordering `FunctionGraphRef`. */ -export type FunctionGraphRefOrderBy = + | 'REQUIRED_SECRETS_ASC' + | 'REQUIRED_SECRETS_DESC' + | 'REQUIRED_CONFIGS_ASC' + | 'REQUIRED_CONFIGS_DESC' + | 'INTEGRATIONS_ASC' + | 'INTEGRATIONS_DESC' + | 'RESOURCE_DEFINITION_ID_ASC' + | 'RESOURCE_DEFINITION_ID_DESC'; +/** Methods to use when ordering `PlatformResourceDefinition`. */ +export type PlatformResourceDefinitionOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'CREATED_BY_ASC' + | 'CREATED_BY_DESC' + | 'UPDATED_BY_ASC' + | 'UPDATED_BY_DESC' + | 'NAMESPACE_ID_ASC' + | 'NAMESPACE_ID_DESC' + | 'KIND_ASC' + | 'KIND_DESC' | 'NAME_ASC' | 'NAME_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'STORE_ID_ASC' - | 'STORE_ID_DESC' - | 'COMMIT_ID_ASC' - | 'COMMIT_ID_DESC'; -/** Methods to use when ordering `FunctionGraphStore`. */ -export type FunctionGraphStoreOrderBy = + | 'SLUG_ASC' + | 'SLUG_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'DEFAULT_SPEC_ASC' + | 'DEFAULT_SPEC_DESC' + | 'REQUIRED_SECRETS_ASC' + | 'REQUIRED_SECRETS_DESC' + | 'REQUIRED_CONFIGS_ASC' + | 'REQUIRED_CONFIGS_DESC' + | 'INTEGRATIONS_ASC' + | 'INTEGRATIONS_DESC' + | 'LABELS_ASC' + | 'LABELS_DESC' + | 'ANNOTATIONS_ASC' + | 'ANNOTATIONS_DESC' + | 'STEP_UP_MIN_AGE_ASC' + | 'STEP_UP_MIN_AGE_DESC'; +/** Methods to use when ordering `PlatformResourceStatusCheck`. */ +export type PlatformResourceStatusCheckOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'HASH_ASC' - | 'HASH_DESC' + | 'RESOURCE_ID_ASC' + | 'RESOURCE_ID_DESC' + | 'REQUESTED_BY_ASC' + | 'REQUESTED_BY_DESC' + | 'REQUESTED_AT_ASC' + | 'REQUESTED_AT_DESC' + | 'COMPLETED_AT_ASC' + | 'COMPLETED_AT_DESC' + | 'STATUS_ASC' + | 'STATUS_DESC' + | 'RESULT_ASC' + | 'RESULT_DESC'; +/** Methods to use when ordering `InfraObject`. */ +export type InfraObjectOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'SCOPE_ID_ASC' + | 'SCOPE_ID_DESC' + | 'KIDS_ASC' + | 'KIDS_DESC' + | 'KTREE_ASC' + | 'KTREE_DESC' + | 'DATA_ASC' + | 'DATA_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC'; /** Methods to use when ordering `FunctionGraphObject`. */ @@ -184,8 +367,8 @@ export type FunctionGraphObjectOrderBy = | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' + | 'SCOPE_ID_ASC' + | 'SCOPE_ID_DESC' | 'KIDS_ASC' | 'KIDS_DESC' | 'KTREE_ASC' @@ -194,8 +377,8 @@ export type FunctionGraphObjectOrderBy = | 'DATA_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC'; -/** Methods to use when ordering `FunctionDeploymentEvent`. */ -export type FunctionDeploymentEventOrderBy = +/** Methods to use when ordering `PlatformFunctionDeploymentEvent`. */ +export type PlatformFunctionDeploymentEventOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -212,32 +395,9 @@ export type FunctionDeploymentEventOrderBy = | 'MESSAGE_ASC' | 'MESSAGE_DESC' | 'METADATA_ASC' - | 'METADATA_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC'; -/** Methods to use when ordering `OrgFunctionExecutionLog`. */ -export type OrgFunctionExecutionLogOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'INVOCATION_ID_ASC' - | 'INVOCATION_ID_DESC' - | 'TASK_IDENTIFIER_ASC' - | 'TASK_IDENTIFIER_DESC' - | 'LOG_LEVEL_ASC' - | 'LOG_LEVEL_DESC' - | 'MESSAGE_ASC' - | 'MESSAGE_DESC' - | 'METADATA_ASC' - | 'METADATA_DESC' - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC'; -/** Methods to use when ordering `ResourceEvent`. */ -export type ResourceEventOrderBy = + | 'METADATA_DESC'; +/** Methods to use when ordering `PlatformResourceEvent`. */ +export type PlatformResourceEventOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -254,49 +414,9 @@ export type ResourceEventOrderBy = | 'MESSAGE_ASC' | 'MESSAGE_DESC' | 'METADATA_ASC' - | 'METADATA_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC'; -/** Methods to use when ordering `FunctionGraphExecutionOutput`. */ -export type FunctionGraphExecutionOutputOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'HASH_ASC' - | 'HASH_DESC' - | 'DATA_ASC' - | 'DATA_DESC'; -/** Methods to use when ordering `FunctionGraphCommit`. */ -export type FunctionGraphCommitOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'MESSAGE_ASC' - | 'MESSAGE_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'STORE_ID_ASC' - | 'STORE_ID_DESC' - | 'PARENT_IDS_ASC' - | 'PARENT_IDS_DESC' - | 'AUTHOR_ID_ASC' - | 'AUTHOR_ID_DESC' - | 'COMMITTER_ID_ASC' - | 'COMMITTER_ID_DESC' - | 'TREE_ID_ASC' - | 'TREE_ID_DESC' - | 'DATE_ASC' - | 'DATE_DESC'; -/** Methods to use when ordering `SecretDefinition`. */ -export type SecretDefinitionOrderBy = + | 'METADATA_DESC'; +/** Methods to use when ordering `FunctionDeployment`. */ +export type FunctionDeploymentOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -306,101 +426,93 @@ export type SecretDefinitionOrderBy = | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC' - | 'IS_BUILT_IN_ASC' - | 'IS_BUILT_IN_DESC' + | 'NAMESPACE_ID_ASC' + | 'NAMESPACE_ID_DESC' + | 'STATUS_ASC' + | 'STATUS_DESC' + | 'SERVICE_URL_ASC' + | 'SERVICE_URL_DESC' + | 'SERVICE_NAME_ASC' + | 'SERVICE_NAME_DESC' + | 'REVISION_ASC' + | 'REVISION_DESC' + | 'IMAGE_ASC' + | 'IMAGE_DESC' + | 'IMAGE_VERSION_ASC' + | 'IMAGE_VERSION_DESC' + | 'HANDLER_NAME_ASC' + | 'HANDLER_NAME_DESC' + | 'CONCURRENCY_ASC' + | 'CONCURRENCY_DESC' + | 'SCALE_MIN_ASC' + | 'SCALE_MIN_DESC' + | 'SCALE_MAX_ASC' + | 'SCALE_MAX_DESC' + | 'TIMEOUT_SECONDS_ASC' + | 'TIMEOUT_SECONDS_DESC' + | 'RESOURCES_ASC' + | 'RESOURCES_DESC' + | 'LAST_ERROR_ASC' + | 'LAST_ERROR_DESC' + | 'LAST_ERROR_AT_ASC' + | 'LAST_ERROR_AT_DESC' + | 'ERROR_COUNT_ASC' + | 'ERROR_COUNT_DESC' | 'LABELS_ASC' | 'LABELS_DESC' | 'ANNOTATIONS_ASC' | 'ANNOTATIONS_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC'; -/** Methods to use when ordering `FunctionExecutionLog`. */ -export type FunctionExecutionLogOrderBy = +/** Methods to use when ordering `Resource`. */ +export type ResourceOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' | 'ID_ASC' | 'ID_DESC' - | 'INVOCATION_ID_ASC' - | 'INVOCATION_ID_DESC' - | 'TASK_IDENTIFIER_ASC' - | 'TASK_IDENTIFIER_DESC' - | 'LOG_LEVEL_ASC' - | 'LOG_LEVEL_DESC' - | 'MESSAGE_ASC' - | 'MESSAGE_DESC' - | 'METADATA_ASC' - | 'METADATA_DESC' - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC'; -/** Methods to use when ordering `FunctionGraph`. */ -export type FunctionGraphOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'STORE_ID_ASC' - | 'STORE_ID_DESC' - | 'CONTEXT_ASC' - | 'CONTEXT_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC' - | 'DEFINITIONS_COMMIT_ID_ASC' - | 'DEFINITIONS_COMMIT_ID_DESC' - | 'IS_VALID_ASC' - | 'IS_VALID_DESC' - | 'VALIDATION_ERRORS_ASC' - | 'VALIDATION_ERRORS_DESC' - | 'CREATED_BY_ASC' - | 'CREATED_BY_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -/** Methods to use when ordering `FunctionGraphExecutionNodeState`. */ -export type FunctionGraphExecutionNodeStateOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'EXECUTION_ID_ASC' - | 'EXECUTION_ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'NODE_NAME_ASC' - | 'NODE_NAME_DESC' - | 'NODE_PATH_ASC' - | 'NODE_PATH_DESC' + | 'UPDATED_AT_DESC' + | 'CREATED_BY_ASC' + | 'CREATED_BY_DESC' + | 'UPDATED_BY_ASC' + | 'UPDATED_BY_DESC' + | 'NAMESPACE_ID_ASC' + | 'NAMESPACE_ID_DESC' + | 'KIND_ASC' + | 'KIND_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'SLUG_ASC' + | 'SLUG_DESC' + | 'SPEC_ASC' + | 'SPEC_DESC' | 'STATUS_ASC' | 'STATUS_DESC' - | 'STARTED_AT_ASC' - | 'STARTED_AT_DESC' - | 'COMPLETED_AT_ASC' - | 'COMPLETED_AT_DESC' - | 'ERROR_CODE_ASC' - | 'ERROR_CODE_DESC' - | 'ERROR_MESSAGE_ASC' - | 'ERROR_MESSAGE_DESC' - | 'OUTPUT_ID_ASC' - | 'OUTPUT_ID_DESC'; -/** Methods to use when ordering `PlatformNamespace`. */ -export type PlatformNamespaceOrderBy = + | 'STATUS_OBSERVED_ASC' + | 'STATUS_OBSERVED_DESC' + | 'LAST_ERROR_ASC' + | 'LAST_ERROR_DESC' + | 'ERROR_COUNT_ASC' + | 'ERROR_COUNT_DESC' + | 'LABELS_ASC' + | 'LABELS_DESC' + | 'ANNOTATIONS_ASC' + | 'ANNOTATIONS_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'REQUIRED_SECRETS_ASC' + | 'REQUIRED_SECRETS_DESC' + | 'REQUIRED_CONFIGS_ASC' + | 'REQUIRED_CONFIGS_DESC' + | 'INTEGRATIONS_ASC' + | 'INTEGRATIONS_DESC' + | 'RESOURCE_DEFINITION_ID_ASC' + | 'RESOURCE_DEFINITION_ID_DESC'; +/** Methods to use when ordering `ResourceDefinition`. */ +export type ResourceDefinitionOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -410,61 +522,59 @@ export type PlatformNamespaceOrderBy = | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' + | 'CREATED_BY_ASC' + | 'CREATED_BY_DESC' + | 'UPDATED_BY_ASC' + | 'UPDATED_BY_DESC' + | 'NAMESPACE_ID_ASC' + | 'NAMESPACE_ID_DESC' + | 'KIND_ASC' + | 'KIND_DESC' | 'NAME_ASC' | 'NAME_DESC' - | 'NAMESPACE_NAME_ASC' - | 'NAMESPACE_NAME_DESC' + | 'SLUG_ASC' + | 'SLUG_DESC' | 'DESCRIPTION_ASC' | 'DESCRIPTION_DESC' - | 'IS_ACTIVE_ASC' - | 'IS_ACTIVE_DESC' + | 'DEFAULT_SPEC_ASC' + | 'DEFAULT_SPEC_DESC' + | 'REQUIRED_SECRETS_ASC' + | 'REQUIRED_SECRETS_DESC' + | 'REQUIRED_CONFIGS_ASC' + | 'REQUIRED_CONFIGS_DESC' + | 'INTEGRATIONS_ASC' + | 'INTEGRATIONS_DESC' | 'LABELS_ASC' | 'LABELS_DESC' | 'ANNOTATIONS_ASC' | 'ANNOTATIONS_DESC' + | 'STEP_UP_MIN_AGE_ASC' + | 'STEP_UP_MIN_AGE_DESC' | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'SOURCE_DATABASE_ID_ASC' - | 'SOURCE_DATABASE_ID_DESC' - | 'SOURCE_SCOPE_ASC' - | 'SOURCE_SCOPE_DESC' - | 'IS_MANAGED_ASC' - | 'IS_MANAGED_DESC'; -/** Methods to use when ordering `OrgFunctionInvocation`. */ -export type OrgFunctionInvocationOrderBy = + | 'DATABASE_ID_DESC'; +/** Methods to use when ordering `ResourceStatusCheck`. */ +export type ResourceStatusCheckOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' | 'ID_ASC' | 'ID_DESC' - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' - | 'TASK_IDENTIFIER_ASC' - | 'TASK_IDENTIFIER_DESC' - | 'PAYLOAD_ASC' - | 'PAYLOAD_DESC' + | 'RESOURCE_ID_ASC' + | 'RESOURCE_ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'REQUESTED_BY_ASC' + | 'REQUESTED_BY_DESC' + | 'REQUESTED_AT_ASC' + | 'REQUESTED_AT_DESC' + | 'COMPLETED_AT_ASC' + | 'COMPLETED_AT_DESC' | 'STATUS_ASC' | 'STATUS_DESC' | 'RESULT_ASC' - | 'RESULT_DESC' - | 'ERROR_ASC' - | 'ERROR_DESC' - | 'DURATION_MS_ASC' - | 'DURATION_MS_DESC' - | 'JOB_ID_ASC' - | 'JOB_ID_DESC' - | 'STARTED_AT_ASC' - | 'STARTED_AT_DESC' - | 'COMPLETED_AT_ASC' - | 'COMPLETED_AT_DESC' - | 'PARENT_INVOCATION_ID_ASC' - | 'PARENT_INVOCATION_ID_DESC' - | 'GRAPH_EXECUTION_ID_ASC' - | 'GRAPH_EXECUTION_ID_DESC'; -/** Methods to use when ordering `FunctionInvocation`. */ -export type FunctionInvocationOrderBy = + | 'RESULT_DESC'; +/** Methods to use when ordering `FunctionDeploymentEvent`. */ +export type FunctionDeploymentEventOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -472,34 +582,41 @@ export type FunctionInvocationOrderBy = | 'CREATED_AT_DESC' | 'ID_ASC' | 'ID_DESC' + | 'DEPLOYMENT_ID_ASC' + | 'DEPLOYMENT_ID_DESC' + | 'EVENT_TYPE_ASC' + | 'EVENT_TYPE_DESC' | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' + | 'MESSAGE_ASC' + | 'MESSAGE_DESC' + | 'METADATA_ASC' + | 'METADATA_DESC' | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' + | 'DATABASE_ID_DESC'; +/** Methods to use when ordering `PlatformFunctionExecutionLog`. */ +export type PlatformFunctionExecutionLogOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'INVOCATION_ID_ASC' + | 'INVOCATION_ID_DESC' | 'TASK_IDENTIFIER_ASC' | 'TASK_IDENTIFIER_DESC' - | 'PAYLOAD_ASC' - | 'PAYLOAD_DESC' - | 'STATUS_ASC' - | 'STATUS_DESC' - | 'RESULT_ASC' - | 'RESULT_DESC' - | 'ERROR_ASC' - | 'ERROR_DESC' - | 'DURATION_MS_ASC' - | 'DURATION_MS_DESC' - | 'JOB_ID_ASC' - | 'JOB_ID_DESC' - | 'STARTED_AT_ASC' - | 'STARTED_AT_DESC' - | 'COMPLETED_AT_ASC' - | 'COMPLETED_AT_DESC' - | 'PARENT_INVOCATION_ID_ASC' - | 'PARENT_INVOCATION_ID_DESC' - | 'GRAPH_EXECUTION_ID_ASC' - | 'GRAPH_EXECUTION_ID_DESC'; -/** Methods to use when ordering `PlatformNamespaceEvent`. */ -export type PlatformNamespaceEventOrderBy = + | 'LOG_LEVEL_ASC' + | 'LOG_LEVEL_DESC' + | 'MESSAGE_ASC' + | 'MESSAGE_DESC' + | 'METADATA_ASC' + | 'METADATA_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC'; +/** Methods to use when ordering `ResourceEvent`. */ +export type ResourceEventOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -507,8 +624,8 @@ export type PlatformNamespaceEventOrderBy = | 'CREATED_AT_DESC' | 'ID_ASC' | 'ID_DESC' - | 'NAMESPACE_ID_ASC' - | 'NAMESPACE_ID_DESC' + | 'RESOURCE_ID_ASC' + | 'RESOURCE_ID_DESC' | 'EVENT_TYPE_ASC' | 'EVENT_TYPE_DESC' | 'ACTOR_ID_ASC' @@ -517,75 +634,254 @@ export type PlatformNamespaceEventOrderBy = | 'MESSAGE_DESC' | 'METADATA_ASC' | 'METADATA_DESC' - | 'CPU_MILLICORES_ASC' - | 'CPU_MILLICORES_DESC' - | 'MEMORY_BYTES_ASC' - | 'MEMORY_BYTES_DESC' - | 'STORAGE_BYTES_ASC' - | 'STORAGE_BYTES_DESC' - | 'NETWORK_INGRESS_BYTES_ASC' - | 'NETWORK_INGRESS_BYTES_DESC' - | 'NETWORK_EGRESS_BYTES_ASC' - | 'NETWORK_EGRESS_BYTES_DESC' - | 'POD_COUNT_ASC' - | 'POD_COUNT_DESC' - | 'METRICS_ASC' - | 'METRICS_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC'; -/** Methods to use when ordering `FunctionGraphExecution`. */ -export type FunctionGraphExecutionOrderBy = +/** Methods to use when ordering `FunctionGraphExecutionOutput`. */ +export type FunctionGraphExecutionOutputOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'STARTED_AT_ASC' - | 'STARTED_AT_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' | 'ID_ASC' | 'ID_DESC' - | 'GRAPH_ID_ASC' - | 'GRAPH_ID_DESC' - | 'INVOCATION_ID_ASC' - | 'INVOCATION_ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'OUTPUT_NODE_ASC' - | 'OUTPUT_NODE_DESC' - | 'OUTPUT_PORT_ASC' - | 'OUTPUT_PORT_DESC' - | 'STATUS_ASC' - | 'STATUS_DESC' - | 'INPUT_PAYLOAD_ASC' - | 'INPUT_PAYLOAD_DESC' - | 'OUTPUT_PAYLOAD_ASC' - | 'OUTPUT_PAYLOAD_DESC' - | 'NODE_OUTPUTS_ASC' - | 'NODE_OUTPUTS_DESC' - | 'EXECUTION_PLAN_ASC' - | 'EXECUTION_PLAN_DESC' - | 'CURRENT_WAVE_ASC' - | 'CURRENT_WAVE_DESC' - | 'PARENT_EXECUTION_ID_ASC' - | 'PARENT_EXECUTION_ID_DESC' - | 'PARENT_NODE_NAME_ASC' - | 'PARENT_NODE_NAME_DESC' + | 'SCOPE_ID_ASC' + | 'SCOPE_ID_DESC' + | 'HASH_ASC' + | 'HASH_DESC' + | 'DATA_ASC' + | 'DATA_DESC'; +/** Methods to use when ordering `InfraCommit`. */ +export type InfraCommitOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'MESSAGE_ASC' + | 'MESSAGE_DESC' + | 'SCOPE_ID_ASC' + | 'SCOPE_ID_DESC' + | 'STORE_ID_ASC' + | 'STORE_ID_DESC' + | 'PARENT_IDS_ASC' + | 'PARENT_IDS_DESC' + | 'AUTHOR_ID_ASC' + | 'AUTHOR_ID_DESC' + | 'COMMITTER_ID_ASC' + | 'COMMITTER_ID_DESC' + | 'TREE_ID_ASC' + | 'TREE_ID_DESC' + | 'DATE_ASC' + | 'DATE_DESC'; +/** Methods to use when ordering `FunctionGraphCommit`. */ +export type FunctionGraphCommitOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'MESSAGE_ASC' + | 'MESSAGE_DESC' + | 'SCOPE_ID_ASC' + | 'SCOPE_ID_DESC' + | 'STORE_ID_ASC' + | 'STORE_ID_DESC' + | 'PARENT_IDS_ASC' + | 'PARENT_IDS_DESC' + | 'AUTHOR_ID_ASC' + | 'AUTHOR_ID_DESC' + | 'COMMITTER_ID_ASC' + | 'COMMITTER_ID_DESC' + | 'TREE_ID_ASC' + | 'TREE_ID_DESC' + | 'DATE_ASC' + | 'DATE_DESC'; +/** Methods to use when ordering `FunctionExecutionLog`. */ +export type FunctionExecutionLogOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'INVOCATION_ID_ASC' + | 'INVOCATION_ID_DESC' + | 'TASK_IDENTIFIER_ASC' + | 'TASK_IDENTIFIER_DESC' + | 'LOG_LEVEL_ASC' + | 'LOG_LEVEL_DESC' + | 'MESSAGE_ASC' + | 'MESSAGE_DESC' + | 'METADATA_ASC' + | 'METADATA_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC'; +/** Methods to use when ordering `PlatformResourcesResolvedRequirement`. */ +export type PlatformResourcesResolvedRequirementOrderBy = + | 'NATURAL' + | 'RESOURCE_ID_ASC' + | 'RESOURCE_ID_DESC' + | 'SLUG_ASC' + | 'SLUG_DESC' + | 'NAMESPACE_ID_ASC' + | 'NAMESPACE_ID_DESC' + | 'REQUIREMENT_KIND_ASC' + | 'REQUIREMENT_KIND_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'REQUIRED_ASC' + | 'REQUIRED_DESC' + | 'ATOM_ID_ASC' + | 'ATOM_ID_DESC' + | 'PRESENT_ASC' + | 'PRESENT_DESC' + | 'SECRETS_OBJECT_NAME_ASC' + | 'SECRETS_OBJECT_NAME_DESC' + | 'CONFIG_OBJECT_NAME_ASC' + | 'CONFIG_OBJECT_NAME_DESC'; +/** Methods to use when ordering `ResourcesResolvedRequirement`. */ +export type ResourcesResolvedRequirementOrderBy = + | 'NATURAL' + | 'RESOURCE_ID_ASC' + | 'RESOURCE_ID_DESC' + | 'SLUG_ASC' + | 'SLUG_DESC' + | 'NAMESPACE_ID_ASC' + | 'NAMESPACE_ID_DESC' + | 'REQUIREMENT_KIND_ASC' + | 'REQUIREMENT_KIND_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'REQUIRED_ASC' + | 'REQUIRED_DESC' + | 'ATOM_ID_ASC' + | 'ATOM_ID_DESC' + | 'PRESENT_ASC' + | 'PRESENT_DESC' + | 'SECRETS_OBJECT_NAME_ASC' + | 'SECRETS_OBJECT_NAME_DESC' + | 'CONFIG_OBJECT_NAME_ASC' + | 'CONFIG_OBJECT_NAME_DESC'; +/** Methods to use when ordering `DbPreset`. */ +export type DbPresetOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'STORE_ID_ASC' + | 'STORE_ID_DESC' + | 'SLUG_ASC' + | 'SLUG_DESC' + | 'DEFINITION_ASC' + | 'DEFINITION_DESC' + | 'COMMIT_ID_ASC' + | 'COMMIT_ID_DESC' + | 'MODULES_HASH_ASC' + | 'MODULES_HASH_DESC' + | 'LABEL_ASC' + | 'LABEL_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'ACTIVE_ASC' + | 'ACTIVE_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +/** Methods to use when ordering `PlatformNamespace`. */ +export type PlatformNamespaceOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'NAMESPACE_NAME_ASC' + | 'NAMESPACE_NAME_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'IS_ACTIVE_ASC' + | 'IS_ACTIVE_DESC' + | 'STATUS_ASC' + | 'STATUS_DESC' + | 'LAST_ERROR_ASC' + | 'LAST_ERROR_DESC' + | 'LABELS_ASC' + | 'LABELS_DESC' + | 'ANNOTATIONS_ASC' + | 'ANNOTATIONS_DESC' + | 'IS_MANAGED_ASC' + | 'IS_MANAGED_DESC'; +/** Methods to use when ordering `FunctionGraph`. */ +export type FunctionGraphOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'SCOPE_ID_ASC' + | 'SCOPE_ID_DESC' + | 'STORE_ID_ASC' + | 'STORE_ID_DESC' + | 'CONTEXT_ASC' + | 'CONTEXT_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' | 'DEFINITIONS_COMMIT_ID_ASC' | 'DEFINITIONS_COMMIT_ID_DESC' - | 'TICK_COUNT_ASC' - | 'TICK_COUNT_DESC' + | 'IS_VALID_ASC' + | 'IS_VALID_DESC' + | 'VALIDATION_ERRORS_ASC' + | 'VALIDATION_ERRORS_DESC' + | 'CREATED_BY_ASC' + | 'CREATED_BY_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +/** Methods to use when ordering `FunctionGraphExecutionNodeState`. */ +export type FunctionGraphExecutionNodeStateOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'EXECUTION_ID_ASC' + | 'EXECUTION_ID_DESC' + | 'SCOPE_ID_ASC' + | 'SCOPE_ID_DESC' + | 'NODE_NAME_ASC' + | 'NODE_NAME_DESC' + | 'NODE_PATH_ASC' + | 'NODE_PATH_DESC' + | 'STATUS_ASC' + | 'STATUS_DESC' + | 'STARTED_AT_ASC' + | 'STARTED_AT_DESC' | 'COMPLETED_AT_ASC' | 'COMPLETED_AT_DESC' - | 'MAX_TICKS_ASC' - | 'MAX_TICKS_DESC' - | 'MAX_PENDING_JOBS_ASC' - | 'MAX_PENDING_JOBS_DESC' - | 'TIMEOUT_AT_ASC' - | 'TIMEOUT_AT_DESC' | 'ERROR_CODE_ASC' | 'ERROR_CODE_DESC' | 'ERROR_MESSAGE_ASC' - | 'ERROR_MESSAGE_DESC'; -/** Methods to use when ordering `FunctionDefinition`. */ -export type FunctionDefinitionOrderBy = + | 'ERROR_MESSAGE_DESC' + | 'OUTPUT_ID_ASC' + | 'OUTPUT_ID_DESC'; +/** Methods to use when ordering `Namespace`. */ +export type NamespaceOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -595,167 +891,1140 @@ export type FunctionDefinitionOrderBy = | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' - | 'SCOPE_ASC' - | 'SCOPE_DESC' | 'NAME_ASC' | 'NAME_DESC' - | 'TASK_IDENTIFIER_ASC' - | 'TASK_IDENTIFIER_DESC' + | 'NAMESPACE_NAME_ASC' + | 'NAMESPACE_NAME_DESC' | 'DESCRIPTION_ASC' | 'DESCRIPTION_DESC' - | 'IS_INVOCABLE_ASC' - | 'IS_INVOCABLE_DESC' - | 'MAX_ATTEMPTS_ASC' - | 'MAX_ATTEMPTS_DESC' - | 'PRIORITY_ASC' - | 'PRIORITY_DESC' - | 'QUEUE_NAME_ASC' - | 'QUEUE_NAME_DESC' - | 'RUNTIME_ASC' - | 'RUNTIME_DESC' - | 'IMAGE_ASC' - | 'IMAGE_DESC' - | 'CONCURRENCY_ASC' - | 'CONCURRENCY_DESC' - | 'SCALE_MIN_ASC' - | 'SCALE_MIN_DESC' - | 'SCALE_MAX_ASC' - | 'SCALE_MAX_DESC' - | 'TIMEOUT_SECONDS_ASC' - | 'TIMEOUT_SECONDS_DESC' - | 'RESOURCES_ASC' - | 'RESOURCES_DESC' - | 'IS_BUILT_IN_ASC' - | 'IS_BUILT_IN_DESC' - | 'REQUIRED_SECRETS_ASC' - | 'REQUIRED_SECRETS_DESC' - | 'REQUIRED_CONFIGS_ASC' - | 'REQUIRED_CONFIGS_DESC' - | 'REQUIRED_BUCKETS_ASC' - | 'REQUIRED_BUCKETS_DESC' - | 'REQUIRED_MODELS_ASC' - | 'REQUIRED_MODELS_DESC' - | 'INPUTS_ASC' - | 'INPUTS_DESC' - | 'OUTPUTS_ASC' - | 'OUTPUTS_DESC' - | 'PROPS_ASC' - | 'PROPS_DESC' - | 'VOLATILE_ASC' - | 'VOLATILE_DESC' - | 'ICON_ASC' - | 'ICON_DESC' - | 'CATEGORY_ASC' - | 'CATEGORY_DESC'; -/** 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 `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `functionDefinitionId` field. */ - functionDefinitionId?: UUIDFilter; - /** Filter by the object’s `apiId` field. */ - apiId?: UUIDFilter; - /** Filter by the object’s `alias` field. */ - alias?: StringFilter; - /** Filter by the object’s `config` field. */ - config?: JSONFilter; + | 'IS_ACTIVE_ASC' + | 'IS_ACTIVE_DESC' + | 'STATUS_ASC' + | 'STATUS_DESC' + | 'LAST_ERROR_ASC' + | 'LAST_ERROR_DESC' + | 'LABELS_ASC' + | 'LABELS_DESC' + | 'ANNOTATIONS_ASC' + | 'ANNOTATIONS_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'IS_MANAGED_ASC' + | 'IS_MANAGED_DESC'; +/** Methods to use when ordering `PlatformFunctionInvocation`. */ +export type PlatformFunctionInvocationOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'TASK_IDENTIFIER_ASC' + | 'TASK_IDENTIFIER_DESC' + | 'PAYLOAD_ASC' + | 'PAYLOAD_DESC' + | 'STATUS_ASC' + | 'STATUS_DESC' + | 'RESULT_ASC' + | 'RESULT_DESC' + | 'ERROR_ASC' + | 'ERROR_DESC' + | 'DURATION_MS_ASC' + | 'DURATION_MS_DESC' + | 'JOB_ID_ASC' + | 'JOB_ID_DESC' + | 'STARTED_AT_ASC' + | 'STARTED_AT_DESC' + | 'COMPLETED_AT_ASC' + | 'COMPLETED_AT_DESC' + | 'PARENT_INVOCATION_ID_ASC' + | 'PARENT_INVOCATION_ID_DESC' + | 'GRAPH_EXECUTION_ID_ASC' + | 'GRAPH_EXECUTION_ID_DESC'; +/** Methods to use when ordering `FunctionInvocation`. */ +export type FunctionInvocationOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'TASK_IDENTIFIER_ASC' + | 'TASK_IDENTIFIER_DESC' + | 'PAYLOAD_ASC' + | 'PAYLOAD_DESC' + | 'STATUS_ASC' + | 'STATUS_DESC' + | 'RESULT_ASC' + | 'RESULT_DESC' + | 'ERROR_ASC' + | 'ERROR_DESC' + | 'DURATION_MS_ASC' + | 'DURATION_MS_DESC' + | 'JOB_ID_ASC' + | 'JOB_ID_DESC' + | 'STARTED_AT_ASC' + | 'STARTED_AT_DESC' + | 'COMPLETED_AT_ASC' + | 'COMPLETED_AT_DESC' + | 'PARENT_INVOCATION_ID_ASC' + | 'PARENT_INVOCATION_ID_DESC' + | 'GRAPH_EXECUTION_ID_ASC' + | 'GRAPH_EXECUTION_ID_DESC'; +/** Methods to use when ordering `PlatformNamespaceEvent`. */ +export type PlatformNamespaceEventOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAMESPACE_ID_ASC' + | 'NAMESPACE_ID_DESC' + | 'EVENT_TYPE_ASC' + | 'EVENT_TYPE_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'MESSAGE_ASC' + | 'MESSAGE_DESC' + | 'METADATA_ASC' + | 'METADATA_DESC' + | 'CPU_MILLICORES_ASC' + | 'CPU_MILLICORES_DESC' + | 'MEMORY_BYTES_ASC' + | 'MEMORY_BYTES_DESC' + | 'STORAGE_BYTES_ASC' + | 'STORAGE_BYTES_DESC' + | 'NETWORK_INGRESS_BYTES_ASC' + | 'NETWORK_INGRESS_BYTES_DESC' + | 'NETWORK_EGRESS_BYTES_ASC' + | 'NETWORK_EGRESS_BYTES_DESC' + | 'POD_COUNT_ASC' + | 'POD_COUNT_DESC' + | 'METRICS_ASC' + | 'METRICS_DESC'; +/** Methods to use when ordering `IntegrationProvider`. */ +export type IntegrationProviderOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'SLUG_ASC' + | 'SLUG_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'CATEGORY_ASC' + | 'CATEGORY_DESC' + | 'ICON_ASC' + | 'ICON_DESC' + | 'LOGO_ASC' + | 'LOGO_DESC' + | 'BRAND_ASC' + | 'BRAND_DESC' + | 'REQUIRED_SECRETS_ASC' + | 'REQUIRED_SECRETS_DESC' + | 'REQUIRED_CONFIGS_ASC' + | 'REQUIRED_CONFIGS_DESC'; +/** Methods to use when ordering `NamespaceEvent`. */ +export type NamespaceEventOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAMESPACE_ID_ASC' + | 'NAMESPACE_ID_DESC' + | 'EVENT_TYPE_ASC' + | 'EVENT_TYPE_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'MESSAGE_ASC' + | 'MESSAGE_DESC' + | 'METADATA_ASC' + | 'METADATA_DESC' + | 'CPU_MILLICORES_ASC' + | 'CPU_MILLICORES_DESC' + | 'MEMORY_BYTES_ASC' + | 'MEMORY_BYTES_DESC' + | 'STORAGE_BYTES_ASC' + | 'STORAGE_BYTES_DESC' + | 'NETWORK_INGRESS_BYTES_ASC' + | 'NETWORK_INGRESS_BYTES_DESC' + | 'NETWORK_EGRESS_BYTES_ASC' + | 'NETWORK_EGRESS_BYTES_DESC' + | 'POD_COUNT_ASC' + | 'POD_COUNT_DESC' + | 'METRICS_ASC' + | 'METRICS_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC'; +/** Methods to use when ordering `FunctionGraphExecution`. */ +export type FunctionGraphExecutionOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'STARTED_AT_ASC' + | 'STARTED_AT_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'GRAPH_ID_ASC' + | 'GRAPH_ID_DESC' + | 'INVOCATION_ID_ASC' + | 'INVOCATION_ID_DESC' + | 'SCOPE_ID_ASC' + | 'SCOPE_ID_DESC' + | 'OUTPUT_NODE_ASC' + | 'OUTPUT_NODE_DESC' + | 'OUTPUT_PORT_ASC' + | 'OUTPUT_PORT_DESC' + | 'STATUS_ASC' + | 'STATUS_DESC' + | 'INPUT_PAYLOAD_ASC' + | 'INPUT_PAYLOAD_DESC' + | 'OUTPUT_PAYLOAD_ASC' + | 'OUTPUT_PAYLOAD_DESC' + | 'NODE_OUTPUTS_ASC' + | 'NODE_OUTPUTS_DESC' + | 'EXECUTION_PLAN_ASC' + | 'EXECUTION_PLAN_DESC' + | 'CURRENT_WAVE_ASC' + | 'CURRENT_WAVE_DESC' + | 'PARENT_EXECUTION_ID_ASC' + | 'PARENT_EXECUTION_ID_DESC' + | 'PARENT_NODE_NAME_ASC' + | 'PARENT_NODE_NAME_DESC' + | 'DEFINITIONS_COMMIT_ID_ASC' + | 'DEFINITIONS_COMMIT_ID_DESC' + | 'TICK_COUNT_ASC' + | 'TICK_COUNT_DESC' + | 'COMPLETED_AT_ASC' + | 'COMPLETED_AT_DESC' + | 'MAX_TICKS_ASC' + | 'MAX_TICKS_DESC' + | 'MAX_PENDING_JOBS_ASC' + | 'MAX_PENDING_JOBS_DESC' + | 'TIMEOUT_AT_ASC' + | 'TIMEOUT_AT_DESC' + | 'LAST_PROGRESS_AT_ASC' + | 'LAST_PROGRESS_AT_DESC' + | 'ERROR_CODE_ASC' + | 'ERROR_CODE_DESC' + | 'ERROR_MESSAGE_ASC' + | 'ERROR_MESSAGE_DESC'; +/** Methods to use when ordering `PlatformFunctionDefinition`. */ +export type PlatformFunctionDefinitionOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'TASK_IDENTIFIER_ASC' + | 'TASK_IDENTIFIER_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'IS_PUBLISHED_ASC' + | 'IS_PUBLISHED_DESC' + | 'ACCESS_CHANNELS_ASC' + | 'ACCESS_CHANNELS_DESC' + | 'PUBLISHED_AT_ASC' + | 'PUBLISHED_AT_DESC' + | 'MAX_ATTEMPTS_ASC' + | 'MAX_ATTEMPTS_DESC' + | 'PRIORITY_ASC' + | 'PRIORITY_DESC' + | 'QUEUE_NAME_ASC' + | 'QUEUE_NAME_DESC' + | 'RUNTIME_ASC' + | 'RUNTIME_DESC' + | 'TARGET_SCHEMA_ASC' + | 'TARGET_SCHEMA_DESC' + | 'TARGET_FUNCTION_ASC' + | 'TARGET_FUNCTION_DESC' + | 'MODULE_TABLE_ASC' + | 'MODULE_TABLE_DESC' + | 'FUNCTION_COLUMNS_ASC' + | 'FUNCTION_COLUMNS_DESC' + | 'PAYLOAD_ARGS_ASC' + | 'PAYLOAD_ARGS_DESC' + | 'IMAGE_ASC' + | 'IMAGE_DESC' + | 'CONCURRENCY_ASC' + | 'CONCURRENCY_DESC' + | 'SCALE_MIN_ASC' + | 'SCALE_MIN_DESC' + | 'SCALE_MAX_ASC' + | 'SCALE_MAX_DESC' + | 'TIMEOUT_SECONDS_ASC' + | 'TIMEOUT_SECONDS_DESC' + | 'RESOURCES_ASC' + | 'RESOURCES_DESC' + | 'IS_BUILT_IN_ASC' + | 'IS_BUILT_IN_DESC' + | 'REQUIRED_SECRETS_ASC' + | 'REQUIRED_SECRETS_DESC' + | 'REQUIRED_CONFIGS_ASC' + | 'REQUIRED_CONFIGS_DESC' + | 'INTEGRATIONS_ASC' + | 'INTEGRATIONS_DESC' + | 'REQUIRED_BUCKETS_ASC' + | 'REQUIRED_BUCKETS_DESC' + | 'REQUIRED_MODELS_ASC' + | 'REQUIRED_MODELS_DESC' + | 'INPUTS_ASC' + | 'INPUTS_DESC' + | 'OUTPUTS_ASC' + | 'OUTPUTS_DESC' + | 'PROPS_ASC' + | 'PROPS_DESC' + | 'VOLATILE_ASC' + | 'VOLATILE_DESC' + | 'ICON_ASC' + | 'ICON_DESC' + | 'CATEGORY_ASC' + | 'CATEGORY_DESC'; +/** Methods to use when ordering `FunctionDefinition`. */ +export type FunctionDefinitionOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'TASK_IDENTIFIER_ASC' + | 'TASK_IDENTIFIER_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'IS_PUBLISHED_ASC' + | 'IS_PUBLISHED_DESC' + | 'ACCESS_CHANNELS_ASC' + | 'ACCESS_CHANNELS_DESC' + | 'PUBLISHED_AT_ASC' + | 'PUBLISHED_AT_DESC' + | 'MAX_ATTEMPTS_ASC' + | 'MAX_ATTEMPTS_DESC' + | 'PRIORITY_ASC' + | 'PRIORITY_DESC' + | 'QUEUE_NAME_ASC' + | 'QUEUE_NAME_DESC' + | 'RUNTIME_ASC' + | 'RUNTIME_DESC' + | 'TARGET_SCHEMA_ASC' + | 'TARGET_SCHEMA_DESC' + | 'TARGET_FUNCTION_ASC' + | 'TARGET_FUNCTION_DESC' + | 'MODULE_TABLE_ASC' + | 'MODULE_TABLE_DESC' + | 'FUNCTION_COLUMNS_ASC' + | 'FUNCTION_COLUMNS_DESC' + | 'PAYLOAD_ARGS_ASC' + | 'PAYLOAD_ARGS_DESC' + | 'IMAGE_ASC' + | 'IMAGE_DESC' + | 'CONCURRENCY_ASC' + | 'CONCURRENCY_DESC' + | 'SCALE_MIN_ASC' + | 'SCALE_MIN_DESC' + | 'SCALE_MAX_ASC' + | 'SCALE_MAX_DESC' + | 'TIMEOUT_SECONDS_ASC' + | 'TIMEOUT_SECONDS_DESC' + | 'RESOURCES_ASC' + | 'RESOURCES_DESC' + | 'IS_BUILT_IN_ASC' + | 'IS_BUILT_IN_DESC' + | 'REQUIRED_SECRETS_ASC' + | 'REQUIRED_SECRETS_DESC' + | 'REQUIRED_CONFIGS_ASC' + | 'REQUIRED_CONFIGS_DESC' + | 'INTEGRATIONS_ASC' + | 'INTEGRATIONS_DESC' + | 'REQUIRED_BUCKETS_ASC' + | 'REQUIRED_BUCKETS_DESC' + | 'REQUIRED_MODELS_ASC' + | 'REQUIRED_MODELS_DESC' + | 'INPUTS_ASC' + | 'INPUTS_DESC' + | 'OUTPUTS_ASC' + | 'OUTPUTS_DESC' + | 'PROPS_ASC' + | 'PROPS_DESC' + | 'VOLATILE_ASC' + | 'VOLATILE_DESC' + | 'ICON_ASC' + | 'ICON_DESC' + | 'CATEGORY_ASC' + | 'CATEGORY_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC'; +/** A filter to be used against `InfraRef` object types. All fields are combined with a logical ‘and.’ */ +export interface InfraRefFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `scopeId` field. */ + scopeId?: UUIDFilter; + /** Filter by the object’s `storeId` field. */ + storeId?: UUIDFilter; + /** Filter by the object’s `commitId` field. */ + commitId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: InfraRefFilter[]; + /** Checks for any expressions in this list. */ + or?: InfraRefFilter[]; + /** Negates the expression. */ + not?: InfraRefFilter; +} +/** A filter to be used against `InfraStore` object types. All fields are combined with a logical ‘and.’ */ +export interface InfraStoreFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `scopeId` field. */ + scopeId?: UUIDFilter; + /** Filter by the object’s `hash` field. */ + hash?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Checks for all expressions in this list. */ + and?: InfraStoreFilter[]; + /** Checks for any expressions in this list. */ + or?: InfraStoreFilter[]; + /** Negates the expression. */ + not?: InfraStoreFilter; +} +/** 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 `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `functionDefinitionId` field. */ + functionDefinitionId?: UUIDFilter; + /** Filter by the object’s `apiId` field. */ + apiId?: UUIDFilter; + /** Filter by the object’s `alias` field. */ + alias?: StringFilter; + /** Filter by the object’s `config` field. */ + config?: JSONFilter; + /** Checks for all expressions in this list. */ + and?: FunctionApiBindingFilter[]; + /** Checks for any expressions in this list. */ + or?: FunctionApiBindingFilter[]; + /** Negates the expression. */ + not?: FunctionApiBindingFilter; + /** Filter by the object’s `functionDefinition` relation. */ + functionDefinition?: FunctionDefinitionFilter; +} +/** 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 `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `taskIdentifier` field. */ + taskIdentifier?: StringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `isPublished` field. */ + isPublished?: BooleanFilter; + /** Filter by the object’s `accessChannels` field. */ + accessChannels?: StringListFilter; + /** Filter by the object’s `publishedAt` field. */ + publishedAt?: DatetimeFilter; + /** Filter by the object’s `maxAttempts` field. */ + maxAttempts?: IntFilter; + /** Filter by the object’s `priority` field. */ + priority?: IntFilter; + /** Filter by the object’s `queueName` field. */ + queueName?: StringFilter; + /** Filter by the object’s `runtime` field. */ + runtime?: StringFilter; + /** Filter by the object’s `targetSchema` field. */ + targetSchema?: StringFilter; + /** Filter by the object’s `targetFunction` field. */ + targetFunction?: StringFilter; + /** Filter by the object’s `moduleTable` field. */ + moduleTable?: StringFilter; + /** Filter by the object’s `functionColumns` field. */ + functionColumns?: JSONFilter; + /** Filter by the object’s `payloadArgs` field. */ + payloadArgs?: JSONFilter; + /** Filter by the object’s `image` field. */ + image?: StringFilter; + /** Filter by the object’s `concurrency` field. */ + concurrency?: IntFilter; + /** Filter by the object’s `scaleMin` field. */ + scaleMin?: IntFilter; + /** Filter by the object’s `scaleMax` field. */ + scaleMax?: IntFilter; + /** Filter by the object’s `timeoutSeconds` field. */ + timeoutSeconds?: IntFilter; + /** Filter by the object’s `resources` field. */ + resources?: JSONFilter; + /** Filter by the object’s `isBuiltIn` field. */ + isBuiltIn?: BooleanFilter; + /** Filter by the object’s `integrations` field. */ + integrations?: StringListFilter; + /** Filter by the object’s `requiredBuckets` field. */ + requiredBuckets?: StringListFilter; + /** Filter by the object’s `requiredModels` field. */ + requiredModels?: StringListFilter; + /** Filter by the object’s `inputs` field. */ + inputs?: JSONFilter; + /** Filter by the object’s `outputs` field. */ + outputs?: JSONFilter; + /** Filter by the object’s `props` field. */ + props?: JSONFilter; + /** Filter by the object’s `volatile` field. */ + volatile?: BooleanFilter; + /** Filter by the object’s `icon` field. */ + icon?: StringFilter; + /** Filter by the object’s `category` field. */ + category?: StringFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: FunctionDefinitionFilter[]; + /** Checks for any expressions in this list. */ + or?: FunctionDefinitionFilter[]; + /** Negates the expression. */ + not?: FunctionDefinitionFilter; + /** Filter by the object’s `functionApiBindings` relation. */ + functionApiBindings?: FunctionDefinitionToManyFunctionApiBindingFilter; + /** `functionApiBindings` exist. */ + functionApiBindingsExist?: 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 at least one related entity matches. */ + some?: FunctionApiBindingFilter; + /** Filters to entities where every related entity matches. */ + every?: FunctionApiBindingFilter; + /** Filters to entities where no related entity matches. */ + none?: FunctionApiBindingFilter; +} +/** A filter to be used against `FunctionGraphRef` object types. All fields are combined with a logical ‘and.’ */ +export interface FunctionGraphRefFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `scopeId` field. */ + scopeId?: UUIDFilter; + /** Filter by the object’s `storeId` field. */ + storeId?: UUIDFilter; + /** Filter by the object’s `commitId` field. */ + commitId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: FunctionGraphRefFilter[]; + /** Checks for any expressions in this list. */ + or?: FunctionGraphRefFilter[]; + /** Negates the expression. */ + not?: FunctionGraphRefFilter; +} +/** A filter to be used against `FunctionGraphStore` object types. All fields are combined with a logical ‘and.’ */ +export interface FunctionGraphStoreFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `scopeId` field. */ + scopeId?: UUIDFilter; + /** Filter by the object’s `hash` field. */ + hash?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Checks for all expressions in this list. */ + and?: FunctionGraphStoreFilter[]; + /** Checks for any expressions in this list. */ + or?: FunctionGraphStoreFilter[]; + /** Negates the expression. */ + not?: FunctionGraphStoreFilter; +} +/** 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 `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `functionDefinitionId` field. */ + functionDefinitionId?: UUIDFilter; + /** Filter by the object’s `apiId` field. */ + apiId?: UUIDFilter; + /** Filter by the object’s `alias` field. */ + alias?: StringFilter; + /** Filter by the object’s `config` field. */ + config?: JSONFilter; + /** Checks for all expressions in this list. */ + and?: PlatformFunctionApiBindingFilter[]; + /** Checks for any expressions in this list. */ + or?: PlatformFunctionApiBindingFilter[]; + /** Negates the expression. */ + not?: PlatformFunctionApiBindingFilter; + /** Filter by the object’s `functionDefinition` relation. */ + functionDefinition?: PlatformFunctionDefinitionFilter; +} +/** 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 `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `taskIdentifier` field. */ + taskIdentifier?: StringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `isPublished` field. */ + isPublished?: BooleanFilter; + /** Filter by the object’s `accessChannels` field. */ + accessChannels?: StringListFilter; + /** Filter by the object’s `publishedAt` field. */ + publishedAt?: DatetimeFilter; + /** Filter by the object’s `maxAttempts` field. */ + maxAttempts?: IntFilter; + /** Filter by the object’s `priority` field. */ + priority?: IntFilter; + /** Filter by the object’s `queueName` field. */ + queueName?: StringFilter; + /** Filter by the object’s `runtime` field. */ + runtime?: StringFilter; + /** Filter by the object’s `targetSchema` field. */ + targetSchema?: StringFilter; + /** Filter by the object’s `targetFunction` field. */ + targetFunction?: StringFilter; + /** Filter by the object’s `moduleTable` field. */ + moduleTable?: StringFilter; + /** Filter by the object’s `functionColumns` field. */ + functionColumns?: JSONFilter; + /** Filter by the object’s `payloadArgs` field. */ + payloadArgs?: JSONFilter; + /** Filter by the object’s `image` field. */ + image?: StringFilter; + /** Filter by the object’s `concurrency` field. */ + concurrency?: IntFilter; + /** Filter by the object’s `scaleMin` field. */ + scaleMin?: IntFilter; + /** Filter by the object’s `scaleMax` field. */ + scaleMax?: IntFilter; + /** Filter by the object’s `timeoutSeconds` field. */ + timeoutSeconds?: IntFilter; + /** Filter by the object’s `resources` field. */ + resources?: JSONFilter; + /** Filter by the object’s `isBuiltIn` field. */ + isBuiltIn?: BooleanFilter; + /** Filter by the object’s `integrations` field. */ + integrations?: StringListFilter; + /** Filter by the object’s `requiredBuckets` field. */ + requiredBuckets?: StringListFilter; + /** Filter by the object’s `requiredModels` field. */ + requiredModels?: StringListFilter; + /** Filter by the object’s `inputs` field. */ + inputs?: JSONFilter; + /** Filter by the object’s `outputs` field. */ + outputs?: JSONFilter; + /** Filter by the object’s `props` field. */ + props?: JSONFilter; + /** Filter by the object’s `volatile` field. */ + volatile?: BooleanFilter; + /** Filter by the object’s `icon` field. */ + icon?: StringFilter; + /** Filter by the object’s `category` field. */ + category?: StringFilter; + /** Checks for all expressions in this list. */ + and?: PlatformFunctionDefinitionFilter[]; + /** Checks for any expressions in this list. */ + or?: PlatformFunctionDefinitionFilter[]; + /** Negates the expression. */ + not?: PlatformFunctionDefinitionFilter; + /** Filter by the object’s `platformFunctionApiBindingsByFunctionDefinitionId` relation. */ + platformFunctionApiBindingsByFunctionDefinitionId?: PlatformFunctionDefinitionToManyPlatformFunctionApiBindingFilter; + /** `platformFunctionApiBindingsByFunctionDefinitionId` exist. */ + platformFunctionApiBindingsByFunctionDefinitionIdExist?: boolean; +} +/** 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 at least one related entity matches. */ + some?: PlatformFunctionApiBindingFilter; + /** Filters to entities where every related entity matches. */ + every?: PlatformFunctionApiBindingFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformFunctionApiBindingFilter; +} +/** A filter to be used against `PlatformResourcesRequirementsState` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformResourcesRequirementsStateFilter { + /** Filter by the object’s `resourceId` field. */ + resourceId?: UUIDFilter; + /** Filter by the object’s `slug` field. */ + slug?: StringFilter; + /** Filter by the object’s `secretsHash` field. */ + secretsHash?: StringFilter; + /** Filter by the object’s `configHash` field. */ + configHash?: StringFilter; + /** Filter by the object’s `requirementsHash` field. */ + requirementsHash?: StringFilter; + /** Filter by the object’s `secretsObjectName` field. */ + secretsObjectName?: StringFilter; + /** Filter by the object’s `configObjectName` field. */ + configObjectName?: StringFilter; + /** Checks for all expressions in this list. */ + and?: PlatformResourcesRequirementsStateFilter[]; + /** Checks for any expressions in this list. */ + or?: PlatformResourcesRequirementsStateFilter[]; + /** Negates the expression. */ + not?: PlatformResourcesRequirementsStateFilter; +} +/** A filter to be used against `ResourcesRequirementsState` object types. All fields are combined with a logical ‘and.’ */ +export interface ResourcesRequirementsStateFilter { + /** Filter by the object’s `resourceId` field. */ + resourceId?: UUIDFilter; + /** Filter by the object’s `slug` field. */ + slug?: StringFilter; + /** Filter by the object’s `secretsHash` field. */ + secretsHash?: StringFilter; + /** Filter by the object’s `configHash` field. */ + configHash?: StringFilter; + /** Filter by the object’s `requirementsHash` field. */ + requirementsHash?: StringFilter; + /** Filter by the object’s `secretsObjectName` field. */ + secretsObjectName?: StringFilter; + /** Filter by the object’s `configObjectName` field. */ + configObjectName?: StringFilter; + /** Checks for all expressions in this list. */ + and?: ResourcesRequirementsStateFilter[]; + /** Checks for any expressions in this list. */ + or?: ResourcesRequirementsStateFilter[]; + /** Negates the expression. */ + not?: ResourcesRequirementsStateFilter; +} +/** A filter to be used against `PlatformFunctionDeployment` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformFunctionDeploymentFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `serviceUrl` field. */ + serviceUrl?: StringFilter; + /** Filter by the object’s `serviceName` field. */ + serviceName?: StringFilter; + /** Filter by the object’s `revision` field. */ + revision?: IntFilter; + /** Filter by the object’s `image` field. */ + image?: StringFilter; + /** Filter by the object’s `imageVersion` field. */ + imageVersion?: StringFilter; + /** Filter by the object’s `handlerName` field. */ + handlerName?: StringFilter; + /** Filter by the object’s `concurrency` field. */ + concurrency?: IntFilter; + /** Filter by the object’s `scaleMin` field. */ + scaleMin?: IntFilter; + /** Filter by the object’s `scaleMax` field. */ + scaleMax?: IntFilter; + /** Filter by the object’s `timeoutSeconds` field. */ + timeoutSeconds?: IntFilter; + /** Filter by the object’s `resources` field. */ + resources?: JSONFilter; + /** Filter by the object’s `lastError` field. */ + lastError?: StringFilter; + /** Filter by the object’s `lastErrorAt` field. */ + lastErrorAt?: DatetimeFilter; + /** Filter by the object’s `errorCount` field. */ + errorCount?: IntFilter; + /** Filter by the object’s `labels` field. */ + labels?: JSONFilter; + /** Filter by the object’s `annotations` field. */ + annotations?: JSONFilter; + /** Checks for all expressions in this list. */ + and?: PlatformFunctionDeploymentFilter[]; + /** Checks for any expressions in this list. */ + or?: PlatformFunctionDeploymentFilter[]; + /** Negates the expression. */ + not?: PlatformFunctionDeploymentFilter; + /** Filter by the object’s `namespace` relation. */ + namespace?: PlatformNamespaceFilter; +} +/** A filter to be used against `PlatformNamespace` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformNamespaceFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `namespaceName` field. */ + namespaceName?: StringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `isActive` field. */ + isActive?: BooleanFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `lastError` field. */ + lastError?: StringFilter; + /** Filter by the object’s `labels` field. */ + labels?: JSONFilter; + /** Filter by the object’s `annotations` field. */ + annotations?: JSONFilter; + /** Filter by the object’s `isManaged` field. */ + isManaged?: BooleanFilter; + /** Checks for all expressions in this list. */ + and?: PlatformNamespaceFilter[]; + /** Checks for any expressions in this list. */ + or?: PlatformNamespaceFilter[]; + /** Negates the expression. */ + not?: PlatformNamespaceFilter; + /** Filter by the object’s `platformFunctionDeploymentsByNamespaceId` relation. */ + platformFunctionDeploymentsByNamespaceId?: PlatformNamespaceToManyPlatformFunctionDeploymentFilter; + /** `platformFunctionDeploymentsByNamespaceId` exist. */ + platformFunctionDeploymentsByNamespaceIdExist?: boolean; + /** Filter by the object’s `platformResourcesByNamespaceId` relation. */ + platformResourcesByNamespaceId?: PlatformNamespaceToManyPlatformResourceFilter; + /** `platformResourcesByNamespaceId` exist. */ + platformResourcesByNamespaceIdExist?: boolean; + /** Filter by the object’s `platformResourceDefinitionsByNamespaceId` relation. */ + platformResourceDefinitionsByNamespaceId?: PlatformNamespaceToManyPlatformResourceDefinitionFilter; + /** `platformResourceDefinitionsByNamespaceId` exist. */ + platformResourceDefinitionsByNamespaceIdExist?: boolean; +} +/** A filter to be used against many `PlatformFunctionDeployment` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformNamespaceToManyPlatformFunctionDeploymentFilter { + /** Filters to entities where at least one related entity matches. */ + some?: PlatformFunctionDeploymentFilter; + /** Filters to entities where every related entity matches. */ + every?: PlatformFunctionDeploymentFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformFunctionDeploymentFilter; +} +/** 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 at least one related entity matches. */ + some?: PlatformResourceFilter; + /** Filters to entities where every related entity matches. */ + every?: PlatformResourceFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformResourceFilter; +} +/** A filter to be used against `PlatformResource` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformResourceFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; + /** Filter by the object’s `kind` field. */ + kind?: StringFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** 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 `lastError` field. */ + lastError?: StringFilter; + /** Filter by the object’s `errorCount` field. */ + errorCount?: IntFilter; + /** Filter by the object’s `labels` field. */ + labels?: JSONFilter; + /** Filter by the object’s `annotations` field. */ + annotations?: JSONFilter; + /** Filter by the object’s `integrations` field. */ + integrations?: StringListFilter; + /** Filter by the object’s `resourceDefinitionId` field. */ + resourceDefinitionId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: PlatformResourceFilter[]; + /** Checks for any expressions in this list. */ + or?: PlatformResourceFilter[]; + /** Negates the expression. */ + not?: PlatformResourceFilter; + /** Filter by the object’s `namespace` relation. */ + namespace?: PlatformNamespaceFilter; + /** Filter by the object’s `resourceDefinition` relation. */ + resourceDefinition?: PlatformResourceDefinitionFilter; + /** A related `resourceDefinition` exists. */ + resourceDefinitionExists?: boolean; + /** Filter by the object’s `platformResourceStatusChecksByResourceId` relation. */ + platformResourceStatusChecksByResourceId?: PlatformResourceToManyPlatformResourceStatusCheckFilter; + /** `platformResourceStatusChecksByResourceId` exist. */ + platformResourceStatusChecksByResourceIdExist?: boolean; +} +/** A filter to be used against `PlatformResourceDefinition` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformResourceDefinitionFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; + /** Filter by the object’s `kind` field. */ + kind?: StringFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `slug` field. */ + slug?: StringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `defaultSpec` field. */ + defaultSpec?: JSONFilter; + /** Filter by the object’s `integrations` field. */ + integrations?: StringListFilter; + /** Filter by the object’s `labels` field. */ + labels?: JSONFilter; + /** Filter by the object’s `annotations` field. */ + annotations?: JSONFilter; + /** Filter by the object’s `stepUpMinAge` field. */ + stepUpMinAge?: IntervalFilter; + /** Checks for all expressions in this list. */ + and?: PlatformResourceDefinitionFilter[]; + /** Checks for any expressions in this list. */ + or?: PlatformResourceDefinitionFilter[]; + /** Negates the expression. */ + not?: PlatformResourceDefinitionFilter; + /** Filter by the object’s `namespace` relation. */ + namespace?: PlatformNamespaceFilter; +} +/** A filter to be used against Interval fields. All fields are combined with a logical ‘and.’ */ +export interface IntervalFilter { + /** Is null (if `true` is specified) or is not null (if `false` is specified). */ + isNull?: boolean; + /** Equal to the specified value. */ + equalTo?: IntervalInput; + /** Not equal to the specified value. */ + notEqualTo?: IntervalInput; + /** Not equal to the specified value, treating null like an ordinary value. */ + distinctFrom?: IntervalInput; + /** Equal to the specified value, treating null like an ordinary value. */ + notDistinctFrom?: IntervalInput; + /** Included in the specified list. */ + in?: IntervalInput[]; + /** Not included in the specified list. */ + notIn?: IntervalInput[]; + /** Less than the specified value. */ + lessThan?: IntervalInput; + /** Less than or equal to the specified value. */ + lessThanOrEqualTo?: IntervalInput; + /** Greater than the specified value. */ + greaterThan?: IntervalInput; + /** Greater than or equal to the specified value. */ + greaterThanOrEqualTo?: IntervalInput; +} +/** An interval of time that has passed where the smallest distinct unit is a second. */ +export interface IntervalInput { + /** + * A quantity of seconds. This is the only non-integer field, as all the other + * fields will dump their overflow into a smaller unit of time. Intervals don’t + * have a smaller unit than seconds. + */ + seconds?: number; + /** A quantity of minutes. */ + minutes?: number; + /** A quantity of hours. */ + hours?: number; + /** A quantity of days. */ + days?: number; + /** A quantity of months. */ + months?: number; + /** A quantity of years. */ + years?: number; +} +/** 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 at least one related entity matches. */ + some?: PlatformResourceStatusCheckFilter; + /** Filters to entities where every related entity matches. */ + every?: PlatformResourceStatusCheckFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformResourceStatusCheckFilter; +} +/** A filter to be used against `PlatformResourceStatusCheck` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformResourceStatusCheckFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `resourceId` field. */ + resourceId?: UUIDFilter; + /** Filter by the object’s `requestedBy` field. */ + requestedBy?: UUIDFilter; + /** Filter by the object’s `requestedAt` field. */ + requestedAt?: DatetimeFilter; + /** Filter by the object’s `completedAt` field. */ + completedAt?: DatetimeFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `result` field. */ + result?: JSONFilter; + /** Checks for all expressions in this list. */ + and?: PlatformResourceStatusCheckFilter[]; + /** Checks for any expressions in this list. */ + or?: PlatformResourceStatusCheckFilter[]; + /** Negates the expression. */ + not?: PlatformResourceStatusCheckFilter; + /** Filter by the object’s `resource` relation. */ + resource?: PlatformResourceFilter; +} +/** 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 at least one related entity matches. */ + some?: PlatformResourceDefinitionFilter; + /** Filters to entities where every related entity matches. */ + every?: PlatformResourceDefinitionFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformResourceDefinitionFilter; +} +/** A filter to be used against `InfraObject` object types. All fields are combined with a logical ‘and.’ */ +export interface InfraObjectFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `scopeId` field. */ + scopeId?: UUIDFilter; + /** Filter by the object’s `kids` field. */ + kids?: UUIDListFilter; + /** Filter by the object’s `ktree` field. */ + ktree?: StringListFilter; + /** Filter by the object’s `data` field. */ + data?: JSONFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Checks for all expressions in this list. */ + and?: InfraObjectFilter[]; + /** Checks for any expressions in this list. */ + or?: InfraObjectFilter[]; + /** Negates the expression. */ + not?: InfraObjectFilter; +} +/** A filter to be used against `FunctionGraphObject` object types. All fields are combined with a logical ‘and.’ */ +export interface FunctionGraphObjectFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `scopeId` field. */ + scopeId?: UUIDFilter; + /** Filter by the object’s `kids` field. */ + kids?: UUIDListFilter; + /** Filter by the object’s `ktree` field. */ + ktree?: StringListFilter; + /** Filter by the object’s `data` field. */ + data?: JSONFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; /** Checks for all expressions in this list. */ - and?: FunctionApiBindingFilter[]; + and?: FunctionGraphObjectFilter[]; /** Checks for any expressions in this list. */ - or?: FunctionApiBindingFilter[]; + or?: FunctionGraphObjectFilter[]; /** Negates the expression. */ - not?: FunctionApiBindingFilter; - /** Filter by the object’s `functionDefinition` relation. */ - functionDefinition?: FunctionDefinitionFilter; + not?: FunctionGraphObjectFilter; } -/** A filter to be used against `FunctionDefinition` object types. All fields are combined with a logical ‘and.’ */ -export interface FunctionDefinitionFilter { +/** 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 `createdAt` field. */ + createdAt?: DatetimeFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; + /** Filter by the object’s `deploymentId` field. */ + deploymentId?: UUIDFilter; + /** Filter by the object’s `eventType` field. */ + eventType?: StringFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Filter by the object’s `message` field. */ + message?: StringFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Checks for all expressions in this list. */ + and?: PlatformFunctionDeploymentEventFilter[]; + /** Checks for any expressions in this list. */ + or?: PlatformFunctionDeploymentEventFilter[]; + /** Negates the expression. */ + not?: PlatformFunctionDeploymentEventFilter; +} +/** 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 `createdAt` field. */ createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `scope` field. */ - scope?: StringFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `taskIdentifier` field. */ - taskIdentifier?: StringFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Filter by the object’s `isInvocable` field. */ - isInvocable?: BooleanFilter; - /** Filter by the object’s `maxAttempts` field. */ - maxAttempts?: IntFilter; - /** Filter by the object’s `priority` field. */ - priority?: IntFilter; - /** Filter by the object’s `queueName` field. */ - queueName?: StringFilter; - /** Filter by the object’s `runtime` field. */ - runtime?: StringFilter; - /** Filter by the object’s `image` field. */ - image?: StringFilter; - /** Filter by the object’s `concurrency` field. */ - concurrency?: IntFilter; - /** Filter by the object’s `scaleMin` field. */ - scaleMin?: IntFilter; - /** Filter by the object’s `scaleMax` field. */ - scaleMax?: IntFilter; - /** Filter by the object’s `timeoutSeconds` field. */ - timeoutSeconds?: IntFilter; - /** Filter by the object’s `resources` field. */ - resources?: JSONFilter; - /** Filter by the object’s `isBuiltIn` field. */ - isBuiltIn?: BooleanFilter; - /** Filter by the object’s `requiredBuckets` field. */ - requiredBuckets?: StringListFilter; - /** Filter by the object’s `requiredModels` field. */ - requiredModels?: StringListFilter; - /** Filter by the object’s `inputs` field. */ - inputs?: JSONFilter; - /** Filter by the object’s `outputs` field. */ - outputs?: JSONFilter; - /** Filter by the object’s `props` field. */ - props?: JSONFilter; - /** Filter by the object’s `volatile` field. */ - volatile?: BooleanFilter; - /** Filter by the object’s `icon` field. */ - icon?: StringFilter; - /** Filter by the object’s `category` field. */ - category?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `resourceId` field. */ + resourceId?: UUIDFilter; + /** Filter by the object’s `eventType` field. */ + eventType?: StringFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Filter by the object’s `message` field. */ + message?: StringFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; /** Checks for all expressions in this list. */ - and?: FunctionDefinitionFilter[]; + and?: PlatformResourceEventFilter[]; /** Checks for any expressions in this list. */ - or?: FunctionDefinitionFilter[]; + or?: PlatformResourceEventFilter[]; /** Negates the expression. */ - not?: FunctionDefinitionFilter; - /** Filter by the object’s `functionApiBindings` relation. */ - functionApiBindings?: FunctionDefinitionToManyFunctionApiBindingFilter; - /** `functionApiBindings` exist. */ - functionApiBindingsExist?: boolean; - /** Filter by the object’s `functionDeployments` relation. */ - functionDeployments?: FunctionDefinitionToManyFunctionDeploymentFilter; - /** `functionDeployments` exist. */ - functionDeploymentsExist?: 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 at least one related entity matches. */ - some?: FunctionApiBindingFilter; - /** Filters to entities where every related entity matches. */ - every?: FunctionApiBindingFilter; - /** Filters to entities where no related entity matches. */ - none?: FunctionApiBindingFilter; -} -/** A filter to be used against many `FunctionDeployment` object types. All fields are combined with a logical ‘and.’ */ -export interface FunctionDefinitionToManyFunctionDeploymentFilter { - /** Filters to entities where at least one related entity matches. */ - some?: FunctionDeploymentFilter; - /** Filters to entities where every related entity matches. */ - every?: FunctionDeploymentFilter; - /** Filters to entities where no related entity matches. */ - none?: FunctionDeploymentFilter; + not?: PlatformResourceEventFilter; } /** A filter to be used against `FunctionDeployment` object types. All fields are combined with a logical ‘and.’ */ export interface FunctionDeploymentFilter { @@ -765,8 +2034,6 @@ export interface FunctionDeploymentFilter { createdAt?: DatetimeFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; - /** Filter by the object’s `functionDefinitionId` field. */ - functionDefinitionId?: UUIDFilter; /** Filter by the object’s `namespaceId` field. */ namespaceId?: UUIDFilter; /** Filter by the object’s `status` field. */ @@ -779,6 +2046,10 @@ export interface FunctionDeploymentFilter { revision?: IntFilter; /** Filter by the object’s `image` field. */ image?: StringFilter; + /** Filter by the object’s `imageVersion` field. */ + imageVersion?: StringFilter; + /** Filter by the object’s `handlerName` field. */ + handlerName?: StringFilter; /** Filter by the object’s `concurrency` field. */ concurrency?: IntFilter; /** Filter by the object’s `scaleMin` field. */ @@ -807,13 +2078,11 @@ export interface FunctionDeploymentFilter { or?: FunctionDeploymentFilter[]; /** Negates the expression. */ not?: FunctionDeploymentFilter; - /** Filter by the object’s `functionDefinition` relation. */ - functionDefinition?: FunctionDefinitionFilter; /** Filter by the object’s `namespace` relation. */ - namespace?: PlatformNamespaceFilter; + namespace?: NamespaceFilter; } -/** 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 `Namespace` object types. All fields are combined with a logical ‘and.’ */ +export interface NamespaceFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ @@ -828,35 +2097,39 @@ export interface PlatformNamespaceFilter { description?: StringFilter; /** Filter by the object’s `isActive` field. */ isActive?: BooleanFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `lastError` field. */ + lastError?: StringFilter; /** Filter by the object’s `labels` field. */ labels?: JSONFilter; /** Filter by the object’s `annotations` field. */ annotations?: JSONFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `sourceDatabaseId` field. */ - sourceDatabaseId?: UUIDFilter; - /** Filter by the object’s `sourceScope` field. */ - sourceScope?: StringFilter; /** Filter by the object’s `isManaged` field. */ isManaged?: BooleanFilter; /** Checks for all expressions in this list. */ - and?: PlatformNamespaceFilter[]; + and?: NamespaceFilter[]; /** Checks for any expressions in this list. */ - or?: PlatformNamespaceFilter[]; + or?: NamespaceFilter[]; /** Negates the expression. */ - not?: PlatformNamespaceFilter; - /** Filter by the object’s `functionDeploymentsByNamespaceId` relation. */ - functionDeploymentsByNamespaceId?: PlatformNamespaceToManyFunctionDeploymentFilter; - /** `functionDeploymentsByNamespaceId` exist. */ - functionDeploymentsByNamespaceIdExist?: boolean; - /** Filter by the object’s `resourcesByNamespaceId` relation. */ - resourcesByNamespaceId?: PlatformNamespaceToManyResourceFilter; - /** `resourcesByNamespaceId` exist. */ - resourcesByNamespaceIdExist?: boolean; + not?: NamespaceFilter; + /** Filter by the object’s `functionDeployments` relation. */ + functionDeployments?: NamespaceToManyFunctionDeploymentFilter; + /** `functionDeployments` exist. */ + functionDeploymentsExist?: boolean; + /** Filter by the object’s `resources` relation. */ + resources?: NamespaceToManyResourceFilter; + /** `resources` exist. */ + resourcesExist?: boolean; + /** Filter by the object’s `resourceDefinitions` relation. */ + resourceDefinitions?: NamespaceToManyResourceDefinitionFilter; + /** `resourceDefinitions` exist. */ + resourceDefinitionsExist?: boolean; } /** A filter to be used against many `FunctionDeployment` object types. All fields are combined with a logical ‘and.’ */ -export interface PlatformNamespaceToManyFunctionDeploymentFilter { +export interface NamespaceToManyFunctionDeploymentFilter { /** Filters to entities where at least one related entity matches. */ some?: FunctionDeploymentFilter; /** Filters to entities where every related entity matches. */ @@ -865,7 +2138,7 @@ export interface PlatformNamespaceToManyFunctionDeploymentFilter { none?: FunctionDeploymentFilter; } /** A filter to be used against many `Resource` object types. All fields are combined with a logical ‘and.’ */ -export interface PlatformNamespaceToManyResourceFilter { +export interface NamespaceToManyResourceFilter { /** Filters to entities where at least one related entity matches. */ some?: ResourceFilter; /** Filters to entities where every related entity matches. */ @@ -909,6 +2182,10 @@ export interface ResourceFilter { annotations?: JSONFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; + /** Filter by the object’s `integrations` field. */ + integrations?: StringListFilter; + /** Filter by the object’s `resourceDefinitionId` field. */ + resourceDefinitionId?: UUIDFilter; /** Checks for all expressions in this list. */ and?: ResourceFilter[]; /** Checks for any expressions in this list. */ @@ -916,66 +2193,103 @@ export interface ResourceFilter { /** Negates the expression. */ not?: ResourceFilter; /** Filter by the object’s `namespace` relation. */ - namespace?: PlatformNamespaceFilter; -} -/** A filter to be used against `FunctionGraphRef` object types. All fields are combined with a logical ‘and.’ */ -export interface FunctionGraphRefFilter { + namespace?: NamespaceFilter; + /** Filter by the object’s `resourceDefinition` relation. */ + resourceDefinition?: ResourceDefinitionFilter; + /** A related `resourceDefinition` exists. */ + resourceDefinitionExists?: boolean; + /** Filter by the object’s `resourceStatusChecks` relation. */ + resourceStatusChecks?: ResourceToManyResourceStatusCheckFilter; + /** `resourceStatusChecks` exist. */ + resourceStatusChecksExist?: boolean; +} +/** A filter to be used against `ResourceDefinition` object types. All fields are combined with a logical ‘and.’ */ +export interface ResourceDefinitionFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; + /** Filter by the object’s `kind` field. */ + kind?: StringFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; + /** Filter by the object’s `slug` field. */ + slug?: StringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `defaultSpec` field. */ + defaultSpec?: JSONFilter; + /** Filter by the object’s `integrations` field. */ + integrations?: StringListFilter; + /** Filter by the object’s `labels` field. */ + labels?: JSONFilter; + /** Filter by the object’s `annotations` field. */ + annotations?: JSONFilter; + /** Filter by the object’s `stepUpMinAge` field. */ + stepUpMinAge?: IntervalFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `storeId` field. */ - storeId?: UUIDFilter; - /** Filter by the object’s `commitId` field. */ - commitId?: UUIDFilter; /** Checks for all expressions in this list. */ - and?: FunctionGraphRefFilter[]; + and?: ResourceDefinitionFilter[]; /** Checks for any expressions in this list. */ - or?: FunctionGraphRefFilter[]; + or?: ResourceDefinitionFilter[]; /** Negates the expression. */ - not?: FunctionGraphRefFilter; + not?: ResourceDefinitionFilter; + /** Filter by the object’s `namespace` relation. */ + namespace?: NamespaceFilter; } -/** A filter to be used against `FunctionGraphStore` object types. All fields are combined with a logical ‘and.’ */ -export interface FunctionGraphStoreFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `hash` field. */ - hash?: UUIDFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Checks for all expressions in this list. */ - and?: FunctionGraphStoreFilter[]; - /** Checks for any expressions in this list. */ - or?: FunctionGraphStoreFilter[]; - /** Negates the expression. */ - not?: FunctionGraphStoreFilter; +/** 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 at least one related entity matches. */ + some?: ResourceStatusCheckFilter; + /** Filters to entities where every related entity matches. */ + every?: ResourceStatusCheckFilter; + /** Filters to entities where no related entity matches. */ + none?: ResourceStatusCheckFilter; } -/** 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 `ResourceStatusCheck` object types. All fields are combined with a logical ‘and.’ */ +export interface ResourceStatusCheckFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; + /** Filter by the object’s `resourceId` field. */ + resourceId?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `kids` field. */ - kids?: UUIDListFilter; - /** Filter by the object’s `ktree` field. */ - ktree?: StringListFilter; - /** Filter by the object’s `data` field. */ - data?: JSONFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; + /** Filter by the object’s `requestedBy` field. */ + requestedBy?: UUIDFilter; + /** Filter by the object’s `requestedAt` field. */ + requestedAt?: DatetimeFilter; + /** Filter by the object’s `completedAt` field. */ + completedAt?: DatetimeFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `result` field. */ + result?: JSONFilter; /** Checks for all expressions in this list. */ - and?: FunctionGraphObjectFilter[]; + and?: ResourceStatusCheckFilter[]; /** Checks for any expressions in this list. */ - or?: FunctionGraphObjectFilter[]; + or?: ResourceStatusCheckFilter[]; /** Negates the expression. */ - not?: FunctionGraphObjectFilter; + not?: ResourceStatusCheckFilter; + /** Filter by the object’s `resource` relation. */ + resource?: ResourceFilter; +} +/** 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 at least one related entity matches. */ + some?: ResourceDefinitionFilter; + /** Filters to entities where every related entity matches. */ + every?: ResourceDefinitionFilter; + /** Filters to entities where no related entity matches. */ + none?: ResourceDefinitionFilter; } /** A filter to be used against `FunctionDeploymentEvent` object types. All fields are combined with a logical ‘and.’ */ export interface FunctionDeploymentEventFilter { @@ -1002,8 +2316,8 @@ export interface FunctionDeploymentEventFilter { /** Negates the expression. */ not?: FunctionDeploymentEventFilter; } -/** A filter to be used against `OrgFunctionExecutionLog` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgFunctionExecutionLogFilter { +/** 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 `createdAt` field. */ createdAt?: DatetimeFilter; /** Filter by the object’s `id` field. */ @@ -1021,11 +2335,11 @@ export interface OrgFunctionExecutionLogFilter { /** Filter by the object’s `actorId` field. */ actorId?: UUIDFilter; /** Checks for all expressions in this list. */ - and?: OrgFunctionExecutionLogFilter[]; + and?: PlatformFunctionExecutionLogFilter[]; /** Checks for any expressions in this list. */ - or?: OrgFunctionExecutionLogFilter[]; + or?: PlatformFunctionExecutionLogFilter[]; /** Negates the expression. */ - not?: OrgFunctionExecutionLogFilter; + not?: PlatformFunctionExecutionLogFilter; } /** A filter to be used against `ResourceEvent` object types. All fields are combined with a logical ‘and.’ */ export interface ResourceEventFilter { @@ -1058,8 +2372,8 @@ export interface FunctionGraphExecutionOutputFilter { createdAt?: DatetimeFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; + /** Filter by the object’s `scopeId` field. */ + scopeId?: UUIDFilter; /** Filter by the object’s `hash` field. */ hash?: Base64EncodedBinaryFilter; /** Filter by the object’s `data` field. */ @@ -1088,14 +2402,14 @@ export interface Base64EncodedBinaryFilter { /** Not included in the specified list. */ notIn?: Base64EncodedBinary[]; } -/** A filter to be used against `FunctionGraphCommit` object types. All fields are combined with a logical ‘and.’ */ -export interface FunctionGraphCommitFilter { +/** A filter to be used against `InfraCommit` object types. All fields are combined with a logical ‘and.’ */ +export interface InfraCommitFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `message` field. */ message?: StringFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; + /** Filter by the object’s `scopeId` field. */ + scopeId?: UUIDFilter; /** Filter by the object’s `storeId` field. */ storeId?: UUIDFilter; /** Filter by the object’s `parentIds` field. */ @@ -1109,38 +2423,38 @@ export interface FunctionGraphCommitFilter { /** Filter by the object’s `date` field. */ date?: DatetimeFilter; /** Checks for all expressions in this list. */ - and?: FunctionGraphCommitFilter[]; + and?: InfraCommitFilter[]; /** Checks for any expressions in this list. */ - or?: FunctionGraphCommitFilter[]; + or?: InfraCommitFilter[]; /** Negates the expression. */ - not?: FunctionGraphCommitFilter; + not?: InfraCommitFilter; } -/** A filter to be used against `SecretDefinition` object types. All fields are combined with a logical ‘and.’ */ -export interface SecretDefinitionFilter { +/** A filter to be used against `FunctionGraphCommit` object types. All fields are combined with a logical ‘and.’ */ +export interface FunctionGraphCommitFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Filter by the object’s `isBuiltIn` field. */ - isBuiltIn?: BooleanFilter; - /** Filter by the object’s `labels` field. */ - labels?: JSONFilter; - /** Filter by the object’s `annotations` field. */ - annotations?: JSONFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; + /** Filter by the object’s `message` field. */ + message?: StringFilter; + /** Filter by the object’s `scopeId` field. */ + scopeId?: UUIDFilter; + /** Filter by the object’s `storeId` field. */ + storeId?: UUIDFilter; + /** Filter by the object’s `parentIds` field. */ + parentIds?: UUIDListFilter; + /** Filter by the object’s `authorId` field. */ + authorId?: UUIDFilter; + /** Filter by the object’s `committerId` field. */ + committerId?: UUIDFilter; + /** Filter by the object’s `treeId` field. */ + treeId?: UUIDFilter; + /** Filter by the object’s `date` field. */ + date?: DatetimeFilter; /** Checks for all expressions in this list. */ - and?: SecretDefinitionFilter[]; + and?: FunctionGraphCommitFilter[]; /** Checks for any expressions in this list. */ - or?: SecretDefinitionFilter[]; + or?: FunctionGraphCommitFilter[]; /** Negates the expression. */ - not?: SecretDefinitionFilter; + not?: FunctionGraphCommitFilter; } /** A filter to be used against `FunctionExecutionLog` object types. All fields are combined with a logical ‘and.’ */ export interface FunctionExecutionLogFilter { @@ -1169,12 +2483,101 @@ export interface FunctionExecutionLogFilter { /** Negates the expression. */ not?: FunctionExecutionLogFilter; } +/** A filter to be used against `PlatformResourcesResolvedRequirement` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformResourcesResolvedRequirementFilter { + /** Filter by the object’s `resourceId` field. */ + resourceId?: UUIDFilter; + /** Filter by the object’s `slug` field. */ + slug?: StringFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; + /** Filter by the object’s `requirementKind` field. */ + requirementKind?: StringFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `required` field. */ + required?: BooleanFilter; + /** Filter by the object’s `atomId` field. */ + atomId?: UUIDFilter; + /** Filter by the object’s `present` field. */ + present?: BooleanFilter; + /** Filter by the object’s `secretsObjectName` field. */ + secretsObjectName?: StringFilter; + /** Filter by the object’s `configObjectName` field. */ + configObjectName?: StringFilter; + /** Checks for all expressions in this list. */ + and?: PlatformResourcesResolvedRequirementFilter[]; + /** Checks for any expressions in this list. */ + or?: PlatformResourcesResolvedRequirementFilter[]; + /** Negates the expression. */ + not?: PlatformResourcesResolvedRequirementFilter; +} +/** A filter to be used against `ResourcesResolvedRequirement` object types. All fields are combined with a logical ‘and.’ */ +export interface ResourcesResolvedRequirementFilter { + /** Filter by the object’s `resourceId` field. */ + resourceId?: UUIDFilter; + /** Filter by the object’s `slug` field. */ + slug?: StringFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; + /** Filter by the object’s `requirementKind` field. */ + requirementKind?: StringFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `required` field. */ + required?: BooleanFilter; + /** Filter by the object’s `atomId` field. */ + atomId?: UUIDFilter; + /** Filter by the object’s `present` field. */ + present?: BooleanFilter; + /** Filter by the object’s `secretsObjectName` field. */ + secretsObjectName?: StringFilter; + /** Filter by the object’s `configObjectName` field. */ + configObjectName?: StringFilter; + /** Checks for all expressions in this list. */ + and?: ResourcesResolvedRequirementFilter[]; + /** Checks for any expressions in this list. */ + or?: ResourcesResolvedRequirementFilter[]; + /** Negates the expression. */ + not?: ResourcesResolvedRequirementFilter; +} +/** 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 `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `storeId` field. */ + storeId?: UUIDFilter; + /** Filter by the object’s `slug` field. */ + slug?: StringFilter; + /** Filter by the object’s `definition` field. */ + definition?: JSONFilter; + /** Filter by the object’s `commitId` field. */ + commitId?: UUIDFilter; + /** Filter by the object’s `modulesHash` field. */ + modulesHash?: UUIDFilter; + /** Filter by the object’s `label` field. */ + label?: StringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `active` field. */ + active?: BooleanFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Checks for all expressions in this list. */ + and?: DbPresetFilter[]; + /** Checks for any expressions in this list. */ + or?: DbPresetFilter[]; + /** Negates the expression. */ + not?: DbPresetFilter; +} /** A filter to be used against `FunctionGraph` object types. All fields are combined with a logical ‘and.’ */ export interface FunctionGraphFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; + /** Filter by the object’s `scopeId` field. */ + scopeId?: UUIDFilter; /** Filter by the object’s `storeId` field. */ storeId?: UUIDFilter; /** Filter by the object’s `context` field. */ @@ -1210,8 +2613,8 @@ export interface FunctionGraphExecutionNodeStateFilter { id?: UUIDFilter; /** Filter by the object’s `executionId` field. */ executionId?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; + /** Filter by the object’s `scopeId` field. */ + scopeId?: UUIDFilter; /** Filter by the object’s `nodeName` field. */ nodeName?: StringFilter; /** Filter by the object’s `nodePath` field. */ @@ -1235,8 +2638,8 @@ export interface FunctionGraphExecutionNodeStateFilter { /** Negates the expression. */ not?: FunctionGraphExecutionNodeStateFilter; } -/** A filter to be used against `OrgFunctionInvocation` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgFunctionInvocationFilter { +/** 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 `createdAt` field. */ createdAt?: DatetimeFilter; /** Filter by the object’s `id` field. */ @@ -1266,11 +2669,11 @@ export interface OrgFunctionInvocationFilter { /** Filter by the object’s `graphExecutionId` field. */ graphExecutionId?: UUIDFilter; /** Checks for all expressions in this list. */ - and?: OrgFunctionInvocationFilter[]; + and?: PlatformFunctionInvocationFilter[]; /** Checks for any expressions in this list. */ - or?: OrgFunctionInvocationFilter[]; + or?: PlatformFunctionInvocationFilter[]; /** Negates the expression. */ - not?: OrgFunctionInvocationFilter; + not?: PlatformFunctionInvocationFilter; } /** A filter to be used against `FunctionInvocation` object types. All fields are combined with a logical ‘and.’ */ export interface FunctionInvocationFilter { @@ -1341,8 +2744,6 @@ export interface PlatformNamespaceEventFilter { podCount?: IntFilter; /** Filter by the object’s `metrics` field. */ metrics?: JSONFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; /** Checks for all expressions in this list. */ and?: PlatformNamespaceEventFilter[]; /** Checks for any expressions in this list. */ @@ -1350,6 +2751,109 @@ export interface PlatformNamespaceEventFilter { /** Negates the expression. */ not?: PlatformNamespaceEventFilter; } +/** A filter to be used against `IntegrationProvider` object types. All fields are combined with a logical ‘and.’ */ +export interface IntegrationProviderFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `slug` field. */ + slug?: StringFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `category` field. */ + category?: StringFilter; + /** Filter by the object’s `icon` field. */ + icon?: StringFilter; + /** Filter by the object’s `logo` field. */ + logo?: ConstructiveInternalTypeImageFilter; + /** Filter by the object’s `brand` field. */ + brand?: JSONFilter; + /** Checks for all expressions in this list. */ + and?: IntegrationProviderFilter[]; + /** Checks for any expressions in this list. */ + or?: IntegrationProviderFilter[]; + /** Negates the expression. */ + not?: IntegrationProviderFilter; +} +/** A filter to be used against ConstructiveInternalTypeImage fields. All fields are combined with a logical ‘and.’ */ +export interface ConstructiveInternalTypeImageFilter { + /** Is null (if `true` is specified) or is not null (if `false` is specified). */ + isNull?: boolean; + /** Equal to the specified value. */ + equalTo?: ConstructiveInternalTypeImage; + /** Not equal to the specified value. */ + notEqualTo?: ConstructiveInternalTypeImage; + /** Not equal to the specified value, treating null like an ordinary value. */ + distinctFrom?: ConstructiveInternalTypeImage; + /** Equal to the specified value, treating null like an ordinary value. */ + notDistinctFrom?: ConstructiveInternalTypeImage; + /** Included in the specified list. */ + in?: ConstructiveInternalTypeImage[]; + /** Not included in the specified list. */ + notIn?: ConstructiveInternalTypeImage[]; + /** Less than the specified value. */ + lessThan?: ConstructiveInternalTypeImage; + /** Less than or equal to the specified value. */ + lessThanOrEqualTo?: ConstructiveInternalTypeImage; + /** Greater than the specified value. */ + greaterThan?: ConstructiveInternalTypeImage; + /** Greater than or equal to the specified value. */ + greaterThanOrEqualTo?: ConstructiveInternalTypeImage; + /** Contains the specified JSON. */ + contains?: ConstructiveInternalTypeImage; + /** Contains the specified key. */ + containsKey?: string; + /** Contains all of the specified keys. */ + containsAllKeys?: string[]; + /** Contains any of the specified keys. */ + containsAnyKeys?: string[]; + /** Contained by the specified JSON. */ + containedBy?: ConstructiveInternalTypeImage; +} +/** A filter to be used against `NamespaceEvent` object types. All fields are combined with a logical ‘and.’ */ +export interface NamespaceEventFilter { + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; + /** Filter by the object’s `eventType` field. */ + eventType?: StringFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Filter by the object’s `message` field. */ + message?: StringFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Filter by the object’s `cpuMillicores` field. */ + cpuMillicores?: IntFilter; + /** Filter by the object’s `memoryBytes` field. */ + memoryBytes?: BigIntFilter; + /** Filter by the object’s `storageBytes` field. */ + storageBytes?: BigIntFilter; + /** Filter by the object’s `networkIngressBytes` field. */ + networkIngressBytes?: BigIntFilter; + /** Filter by the object’s `networkEgressBytes` field. */ + networkEgressBytes?: BigIntFilter; + /** Filter by the object’s `podCount` field. */ + podCount?: IntFilter; + /** Filter by the object’s `metrics` field. */ + metrics?: JSONFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: NamespaceEventFilter[]; + /** Checks for any expressions in this list. */ + or?: NamespaceEventFilter[]; + /** Negates the expression. */ + not?: NamespaceEventFilter; +} /** 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 `startedAt` field. */ @@ -1360,8 +2864,8 @@ export interface FunctionGraphExecutionFilter { graphId?: UUIDFilter; /** Filter by the object’s `invocationId` field. */ invocationId?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; + /** Filter by the object’s `scopeId` field. */ + scopeId?: UUIDFilter; /** Filter by the object’s `outputNode` field. */ outputNode?: StringFilter; /** Filter by the object’s `outputPort` field. */ @@ -1394,6 +2898,8 @@ export interface FunctionGraphExecutionFilter { maxPendingJobs?: IntFilter; /** Filter by the object’s `timeoutAt` field. */ timeoutAt?: DatetimeFilter; + /** Filter by the object’s `lastProgressAt` field. */ + lastProgressAt?: DatetimeFilter; /** Filter by the object’s `errorCode` field. */ errorCode?: StringFilter; /** Filter by the object’s `errorMessage` field. */ @@ -1411,17 +2917,15 @@ export interface ValidateFunctionGraphInput { clientMutationId?: string; graphId?: string; } -export interface InitEmptyRepoInput { +export interface InfraInitEmptyRepoInput { clientMutationId?: string; sId?: string; storeId?: string; } -export interface SetDataAtPathInput { +export interface InitEmptyRepoInput { clientMutationId?: string; sId?: string; - root?: string; - path?: string[]; - data?: unknown; + storeId?: string; } export interface ImportDefinitionsInput { clientMutationId?: string; @@ -1430,9 +2934,23 @@ export interface ImportDefinitionsInput { sourceCommitId?: string; contexts?: string[]; } +export interface InfraSetDataAtPathInput { + clientMutationId?: string; + sId?: string; + root?: string; + path?: string[]; + data?: unknown; +} +export interface SetDataAtPathInput { + clientMutationId?: string; + sId?: string; + root?: string; + path?: string[]; + data?: unknown; +} export interface CopyGraphInput { clientMutationId?: string; - databaseId?: string; + scopeId?: string; graphId?: string; name?: string; } @@ -1462,7 +2980,7 @@ export interface AddNodeAndSaveInput { } export interface CreateFunctionGraphInput { clientMutationId?: string; - databaseId?: string; + scopeId?: string; name?: string; context?: string; description?: string; @@ -1471,7 +2989,7 @@ export interface CreateFunctionGraphInput { } export interface ImportGraphJsonInput { clientMutationId?: string; - databaseId?: string; + scopeId?: string; name?: string; graphJson?: unknown; context?: string; @@ -1481,7 +2999,7 @@ export interface ImportGraphJsonInput { } export interface AddEdgeInput { clientMutationId?: string; - databaseId?: string; + scopeId?: string; rootHash?: string; srcNode?: string; srcPort?: string; @@ -1492,7 +3010,7 @@ export interface AddEdgeInput { } export interface AddNodeInput { clientMutationId?: string; - databaseId?: string; + scopeId?: string; rootHash?: string; nodeName?: string; nodeType?: string; @@ -1501,6 +3019,15 @@ export interface AddNodeInput { props?: unknown; meta?: unknown; } +export interface InfraInsertNodeAtPathInput { + clientMutationId?: string; + sId?: string; + root?: string; + path?: string[]; + data?: unknown; + kids?: string[]; + ktree?: string[]; +} export interface InsertNodeAtPathInput { clientMutationId?: string; sId?: string; @@ -1522,24 +3049,41 @@ export interface StartExecutionInput { parentExecutionId?: string; parentNodeName?: string; } -/** An interval of time that has passed where the smallest distinct unit is a second. */ -export interface IntervalInput { - /** - * A quantity of seconds. This is the only non-integer field, as all the other - * fields will dump their overflow into a smaller unit of time. Intervals don’t - * have a smaller unit than seconds. - */ - seconds?: number; - /** A quantity of minutes. */ - minutes?: number; - /** A quantity of hours. */ - hours?: number; - /** A quantity of days. */ - days?: number; - /** A quantity of months. */ - months?: number; - /** A quantity of years. */ - years?: number; +export interface CreateInfraRefInput { + clientMutationId?: string; + /** The `InfraRef` to be created by this mutation. */ + infraRef: InfraRefInput; +} +/** An input for mutations affecting `InfraRef` */ +export interface InfraRefInput { + /** 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; + /** Commit this ref points to */ + commitId?: string; +} +export interface CreateInfraStoreInput { + clientMutationId?: string; + /** The `InfraStore` to be created by this mutation. */ + infraStore: InfraStoreInput; +} +/** An input for mutations affecting `InfraStore` */ +export interface InfraStoreInput { + /** Unique store identifier */ + id?: string; + /** Human-readable store name */ + name: string; + /** Opaque store partition key for the global tier */ + scopeId: string; + /** Current root object hash of this store */ + hash?: string; + /** Timestamp of store creation */ + createdAt?: string; } export interface CreateFunctionApiBindingInput { clientMutationId?: string; @@ -1569,8 +3113,8 @@ export interface FunctionGraphRefInput { id?: string; /** Ref name (e.g. HEAD, main) */ name: string; - /** Database scope for multi-tenant isolation */ - databaseId: string; + /** Opaque store partition key for the global tier */ + scopeId: string; /** Store this ref belongs to */ storeId: string; /** Commit this ref points to */ @@ -1587,32 +3131,159 @@ export interface FunctionGraphStoreInput { id?: string; /** Human-readable store name */ name: string; - /** Database scope for multi-tenant isolation */ - databaseId: string; + /** Opaque store partition key for the global tier */ + scopeId: string; /** Current root object hash of this store */ hash?: string; /** Timestamp of store creation */ createdAt?: string; } -export interface CreateFunctionGraphObjectInput { +export interface CreatePlatformFunctionApiBindingInput { + clientMutationId?: string; + /** The `PlatformFunctionApiBinding` to be created by this mutation. */ + platformFunctionApiBinding: PlatformFunctionApiBindingInput; +} +/** An input for mutations affecting `PlatformFunctionApiBinding` */ +export interface PlatformFunctionApiBindingInput { + id?: string; + /** Function definition this binding belongs to */ + functionDefinitionId: string; + /** API endpoint this function is bound to */ + apiId: string; + /** Binding alias (e.g. default, staging, production) */ + alias?: string; + /** Per-binding configuration (overrides, routing rules, etc.) */ + config?: unknown; +} +export interface CreatePlatformResourceStatusCheckInput { + clientMutationId?: string; + /** The `PlatformResourceStatusCheck` to be created by this mutation. */ + platformResourceStatusCheck: PlatformResourceStatusCheckInput; +} +/** An input for mutations affecting `PlatformResourceStatusCheck` */ +export interface PlatformResourceStatusCheckInput { + /** Unique status check identifier */ + id?: string; + /** Resource to check */ + resourceId: string; + /** User who requested the check (NULL for system/scheduled) */ + requestedBy?: string; + /** When the check was requested */ + requestedAt?: string; + /** When the check completed (NULL while pending/running) */ + completedAt?: string; + /** Check lifecycle: pending, running, completed, failed */ + status?: string; + /** Diagnostic snapshot: k8s_status, conditions, pod_logs_tail, events */ + result?: unknown; +} +export interface CreateInfraObjectInput { + clientMutationId?: string; + /** The `InfraObject` to be created by this mutation. */ + infraObject: InfraObjectInput; +} +/** An input for mutations affecting `InfraObject` */ +export interface InfraObjectInput { + /** Content-addressed UUID v5 — deterministic hash of (data, kids, ktree) */ + id: string; + /** Opaque store partition key for the global tier */ + scopeId: string; + /** Ordered array of child object IDs */ + kids?: string[]; + /** Ordered array of child path names (parallel to kids) */ + ktree?: string[]; + /** Payload data for this object node */ + data?: unknown; + /** Timestamp of object creation */ + createdAt?: string; +} +export interface CreateFunctionGraphObjectInput { + clientMutationId?: string; + /** The `FunctionGraphObject` to be created by this mutation. */ + functionGraphObject: FunctionGraphObjectInput; +} +/** An input for mutations affecting `FunctionGraphObject` */ +export interface FunctionGraphObjectInput { + /** Content-addressed UUID v5 — deterministic hash of (data, kids, ktree) */ + id: string; + /** Opaque store partition key for the global tier */ + scopeId: string; + /** Ordered array of child object IDs */ + kids?: string[]; + /** Ordered array of child path names (parallel to kids) */ + ktree?: string[]; + /** Payload data for this object node */ + data?: unknown; + /** Timestamp of object creation */ + createdAt?: string; +} +export interface CreatePlatformFunctionDeploymentEventInput { + clientMutationId?: string; + /** The `PlatformFunctionDeploymentEvent` to be created by this mutation. */ + platformFunctionDeploymentEvent: PlatformFunctionDeploymentEventInput; +} +/** An input for mutations affecting `PlatformFunctionDeploymentEvent` */ +export interface PlatformFunctionDeploymentEventInput { + /** Event timestamp (partition key) */ + createdAt?: string; + /** Unique event identifier */ + id?: string; + /** Deployment this event belongs to */ + deploymentId: string; + /** Event type: provisioned, scaled, failed, deactivated, redeployed, health_check */ + eventType: string; + /** User who triggered this event (NULL for system/automated) */ + actorId?: 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; +} +/** An input for mutations affecting `PlatformResourceEvent` */ +export interface PlatformResourceEventInput { + /** Event timestamp (partition key) */ + createdAt?: string; + /** Unique event identifier */ + id?: string; + /** Resource this event belongs to */ + resourceId: string; + /** Event type: provisioned, provisioning, updated, failed, deprovisioned, health_check */ + eventType: string; + /** User who triggered this event (NULL for system/automated) */ + actorId?: string; + /** Human-readable description of the event */ + message?: string; + /** Structured context (old/new values, error details, etc.) */ + metadata?: unknown; +} +export interface CreateResourceStatusCheckInput { clientMutationId?: string; - /** The `FunctionGraphObject` to be created by this mutation. */ - functionGraphObject: FunctionGraphObjectInput; + /** The `ResourceStatusCheck` to be created by this mutation. */ + resourceStatusCheck: ResourceStatusCheckInput; } -/** An input for mutations affecting `FunctionGraphObject` */ -export interface FunctionGraphObjectInput { - /** Content-addressed UUID v5 — deterministic hash of (data, kids, ktree) */ - id: string; - /** Database scope for multi-tenant isolation */ +/** An input for mutations affecting `ResourceStatusCheck` */ +export interface ResourceStatusCheckInput { + /** Unique status check identifier */ + id?: string; + /** Resource to check */ + resourceId: string; + /** Database that owns this resource (database-scoped isolation) */ databaseId: string; - /** Ordered array of child object IDs */ - kids?: string[]; - /** Ordered array of child path names (parallel to kids) */ - ktree?: string[]; - /** Payload data for this object node */ - data?: unknown; - /** Timestamp of object creation */ - createdAt?: string; + /** User who requested the check (NULL for system/scheduled) */ + requestedBy?: string; + /** When the check was requested */ + requestedAt?: string; + /** When the check completed (NULL while pending/running) */ + completedAt?: string; + /** Check lifecycle: pending, running, completed, failed */ + status?: string; + /** Diagnostic snapshot: k8s_status, conditions, pod_logs_tail, events */ + result?: unknown; } export interface CreateFunctionDeploymentEventInput { clientMutationId?: string; @@ -1638,13 +3309,13 @@ export interface FunctionDeploymentEventInput { /** Database that owns this resource (database-scoped isolation) */ databaseId: string; } -export interface CreateOrgFunctionExecutionLogInput { +export interface CreatePlatformFunctionExecutionLogInput { clientMutationId?: string; - /** The `OrgFunctionExecutionLog` to be created by this mutation. */ - orgFunctionExecutionLog: OrgFunctionExecutionLogInput; + /** The `PlatformFunctionExecutionLog` to be created by this mutation. */ + platformFunctionExecutionLog: PlatformFunctionExecutionLogInput; } -/** An input for mutations affecting `OrgFunctionExecutionLog` */ -export interface OrgFunctionExecutionLogInput { +/** An input for mutations affecting `PlatformFunctionExecutionLog` */ +export interface PlatformFunctionExecutionLogInput { /** Log entry timestamp (partition key) */ createdAt?: string; /** Unique log entry identifier */ @@ -1697,13 +3368,39 @@ export interface FunctionGraphExecutionOutputInput { createdAt?: string; /** Unique execution output identifier */ id?: string; - /** Scope for multi-tenant isolation */ - databaseId: string; + /** Opaque store partition key for the global tier */ + scopeId: string; /** SHA-256 hash of the data JSONB — content-addressed deduplication */ hash: Base64EncodedBinary; /** The actual output payload from a completed node */ data: unknown; } +export interface CreateInfraCommitInput { + clientMutationId?: string; + /** The `InfraCommit` to be created by this mutation. */ + infraCommit: InfraCommitInput; +} +/** An input for mutations affecting `InfraCommit` */ +export interface InfraCommitInput { + /** Unique commit identifier */ + id?: string; + /** Optional commit message */ + message?: string; + /** Opaque store partition key for the global tier */ + scopeId: string; + /** Store this commit belongs to */ + storeId: string; + /** Parent commit IDs (supports merge commits) */ + parentIds?: string[]; + /** User who authored the changes */ + authorId?: string; + /** User who committed (may differ from author) */ + committerId?: string; + /** Root object ID of the tree snapshot at this commit */ + treeId?: string; + /** Commit timestamp */ + date?: string; +} export interface CreateFunctionGraphCommitInput { clientMutationId?: string; /** The `FunctionGraphCommit` to be created by this mutation. */ @@ -1715,8 +3412,8 @@ export interface FunctionGraphCommitInput { id?: string; /** Optional commit message */ message?: string; - /** Database scope for multi-tenant isolation */ - databaseId: string; + /** Opaque store partition key for the global tier */ + scopeId: string; /** Store this commit belongs to */ storeId: string; /** Parent commit IDs (supports merge commits) */ @@ -1730,29 +3427,6 @@ export interface FunctionGraphCommitInput { /** Commit timestamp */ date?: string; } -export interface CreateSecretDefinitionInput { - clientMutationId?: string; - /** The `SecretDefinition` to be created by this mutation. */ - secretDefinition: SecretDefinitionInput; -} -/** An input for mutations affecting `SecretDefinition` */ -export interface SecretDefinitionInput { - id?: string; - createdAt?: string; - updatedAt?: string; - /** Secret name (must match app_secrets.name for resolution) */ - name: string; - /** Human-readable description of what this secret is used for */ - description?: string; - /** Whether this row was seeded as a built-in secret definition. Built-in rows are immutable. */ - isBuiltIn?: boolean; - /** Key-value metadata for filtering and grouping secret definitions */ - labels?: unknown; - /** Freeform metadata annotations for secret definitions */ - annotations?: unknown; - /** Database that owns this resource (database-scoped isolation) */ - databaseId: string; -} export interface CreateFunctionExecutionLogInput { clientMutationId?: string; /** The `FunctionExecutionLog` to be created by this mutation. */ @@ -1779,6 +3453,65 @@ export interface FunctionExecutionLogInput { /** Database that owns this resource (database-scoped isolation) */ databaseId: string; } +export interface CreateDbPresetInput { + clientMutationId?: string; + /** The `DbPreset` to be created by this mutation. */ + dbPreset: DbPresetInput; +} +/** An input for mutations affecting `DbPreset` */ +export interface DbPresetInput { + /** Unique preset identifier */ + id?: string; + /** Infra Merkle store holding this preset's history (stamped by the versioned trigger) */ + storeId?: string; + /** Preset slug (unique per scope); the preset's path in the infra tree is [db_preset, slug] */ + slug: string; + /** Preset definition (modules + options) — the readily-cached head; history lives in the infra store */ + definition: unknown; + /** Infra store commit for the current definition (stamped by the versioned trigger on every write) */ + commitId?: 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; + /** Human-readable preset name */ + label?: string; + /** Human-readable description of the preset */ + description?: string; + /** Whether this preset is selectable for new databases */ + active?: boolean; + /** Timestamp of preset creation */ + createdAt?: string; + /** Timestamp of last modification */ + updatedAt?: string; +} +export interface CreatePlatformNamespaceInput { + clientMutationId?: string; + /** The `PlatformNamespace` to be created by this mutation. */ + platformNamespace: PlatformNamespaceInput; +} +/** An input for mutations affecting `PlatformNamespace` */ +export interface PlatformNamespaceInput { + id?: string; + createdAt?: string; + updatedAt?: string; + /** Human-readable namespace name (e.g. default, production, oauth) */ + name: string; + /** Globally unique computed namespace identifier via inflection.underscore */ + namespaceName: string; + /** Optional human-readable description of this namespace */ + description?: string; + /** Whether this namespace is active (soft-disable for filtering) */ + isActive?: boolean; + /** Namespace provisioning lifecycle status: pending, provisioning, active, failed */ + status?: string; + /** Most recent provisioning or reconcile error message */ + lastError?: string; + /** Key/value pairs for selecting and filtering namespaces */ + labels?: unknown; + /** Freeform metadata for tooling and operational notes */ + annotations?: unknown; + /** true = provisioned by the platform via jobs, false = unmanaged/platform-native (bootstrapped externally) */ + isManaged?: boolean; +} export interface CreateFunctionGraphExecutionNodeStateInput { clientMutationId?: string; /** The `FunctionGraphExecutionNodeState` to be created by this mutation. */ @@ -1792,8 +3525,8 @@ export interface FunctionGraphExecutionNodeStateInput { id?: string; /** FK to the parent graph execution */ executionId: string; - /** Scope for multi-tenant isolation */ - databaseId: string; + /** Opaque store partition key for the global tier */ + scopeId: 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 */ @@ -1811,13 +3544,13 @@ export interface FunctionGraphExecutionNodeStateInput { /** FK to execution_outputs — content-addressed output blob for this node */ outputId?: string; } -export interface CreatePlatformNamespaceInput { +export interface CreateNamespaceInput { clientMutationId?: string; - /** The `PlatformNamespace` to be created by this mutation. */ - platformNamespace: PlatformNamespaceInput; + /** The `Namespace` to be created by this mutation. */ + namespace: NamespaceInput; } -/** An input for mutations affecting `PlatformNamespace` */ -export interface PlatformNamespaceInput { +/** An input for mutations affecting `Namespace` */ +export interface NamespaceInput { id?: string; createdAt?: string; updatedAt?: string; @@ -1829,26 +3562,26 @@ export interface PlatformNamespaceInput { description?: string; /** Whether this namespace is active (soft-disable for filtering) */ isActive?: boolean; + /** Namespace provisioning lifecycle status: pending, provisioning, active, failed */ + status?: string; + /** Most recent provisioning or reconcile error message */ + lastError?: string; /** Key/value pairs for selecting and filtering namespaces */ labels?: unknown; /** Freeform metadata for tooling and operational notes */ annotations?: unknown; /** Database that owns this resource (database-scoped isolation) */ databaseId: string; - /** Database that created this namespace (NULL for platform-native namespaces) */ - sourceDatabaseId?: string; - /** Origin scope: platform, org, app — indicates where this namespace was created */ - sourceScope?: string; - /** true = created by a child scope mirror trigger, false = platform-native */ + /** true = provisioned by the platform via jobs, false = unmanaged/platform-native (bootstrapped externally) */ isManaged?: boolean; } -export interface CreateOrgFunctionInvocationInput { +export interface CreatePlatformFunctionInvocationInput { clientMutationId?: string; - /** The `OrgFunctionInvocation` to be created by this mutation. */ - orgFunctionInvocation: OrgFunctionInvocationInput; + /** The `PlatformFunctionInvocation` to be created by this mutation. */ + platformFunctionInvocation: PlatformFunctionInvocationInput; } -/** An input for mutations affecting `OrgFunctionInvocation` */ -export interface OrgFunctionInvocationInput { +/** An input for mutations affecting `PlatformFunctionInvocation` */ +export interface PlatformFunctionInvocationInput { /** Invocation creation timestamp (partition key) */ createdAt?: string; /** Unique invocation identifier */ @@ -1916,6 +3649,205 @@ export interface FunctionInvocationInput { /** Groups all node invocations from a single flow graph execution */ graphExecutionId?: string; } +export interface CreatePlatformNamespaceEventInput { + clientMutationId?: string; + /** The `PlatformNamespaceEvent` to be created by this mutation. */ + platformNamespaceEvent: PlatformNamespaceEventInput; +} +/** An input for mutations affecting `PlatformNamespaceEvent` */ +export interface PlatformNamespaceEventInput { + /** Event timestamp (partition key) */ + createdAt?: string; + /** Unique event identifier */ + id?: string; + /** Namespace this event belongs to */ + namespaceId: string; + /** Event type: created, activated, deactivated, labels_updated, annotations_updated, renamed */ + eventType: string; + /** User who triggered this event (NULL for system/automated) */ + actorId?: string; + /** Human-readable description of the event */ + message?: string; + /** Structured context (old/new values, labels diff, etc.) */ + metadata?: unknown; + /** CPU usage in millicores at time of event */ + cpuMillicores?: number; + /** Memory usage in bytes at time of event */ + memoryBytes?: string; + /** Storage usage in bytes at time of event */ + storageBytes?: string; + /** Network ingress in bytes during event window */ + networkIngressBytes?: string; + /** Network egress in bytes during event window */ + networkEgressBytes?: string; + /** Number of active pods in the namespace at time of event */ + podCount?: number; + /** Additional resource metrics (gpu, replicas, quotas, etc.) */ + metrics?: unknown; +} +export interface CreateIntegrationProviderInput { + clientMutationId?: string; + /** The `IntegrationProvider` to be created by this mutation. */ + integrationProvider: IntegrationProviderInput; +} +/** An input for mutations affecting `IntegrationProvider` */ +export interface IntegrationProviderInput { + id?: string; + createdAt?: string; + updatedAt?: string; + /** Stable URL-safe identifier for the provider. Other tables match by this string, not by FK. */ + slug: string; + /** Human-readable brand name (e.g. 'Mailgun', 'PostgreSQL') */ + name: string; + /** Short description of what this integration provides and when to use it */ + description?: string; + /** Browser category (e.g. email, database, storage, ai, analytics) */ + category?: string; + /** Icon identifier for the UI (e.g. mail, database, cloud) */ + icon?: string; + /** Provider logo as an image domain value (url, id, key, bucket, provider) */ + logo?: ConstructiveInternalTypeImage; + /** Brand metadata: colors, fonts, and other provider-specific styling. Not a foreign key. */ + brand?: unknown; + /** 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[]; + /** 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[]; +} +/** An input for mutations affecting `ResourceRequirement` */ +export interface ResourceRequirementInput { + name?: string; + required?: boolean; + provider?: string; +} +export interface CreateNamespaceEventInput { + clientMutationId?: string; + /** The `NamespaceEvent` to be created by this mutation. */ + namespaceEvent: NamespaceEventInput; +} +/** An input for mutations affecting `NamespaceEvent` */ +export interface NamespaceEventInput { + /** Event timestamp (partition key) */ + createdAt?: string; + /** Unique event identifier */ + id?: string; + /** Namespace this event belongs to */ + namespaceId: string; + /** Event type: created, activated, deactivated, labels_updated, annotations_updated, renamed */ + eventType: string; + /** User who triggered this event (NULL for system/automated) */ + actorId?: string; + /** Human-readable description of the event */ + message?: string; + /** Structured context (old/new values, labels diff, etc.) */ + metadata?: unknown; + /** CPU usage in millicores at time of event */ + cpuMillicores?: number; + /** Memory usage in bytes at time of event */ + memoryBytes?: string; + /** Storage usage in bytes at time of event */ + storageBytes?: string; + /** Network ingress in bytes during event window */ + networkIngressBytes?: string; + /** Network egress in bytes during event window */ + networkEgressBytes?: string; + /** Number of active pods in the namespace at time of event */ + podCount?: number; + /** Additional resource metrics (gpu, replicas, quotas, etc.) */ + metrics?: unknown; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; +} +export interface CreatePlatformResourceInput { + clientMutationId?: string; + /** The `PlatformResource` to be created by this mutation. */ + platformResource: PlatformResourceInput; +} +/** An input for mutations affecting `PlatformResource` */ +export interface PlatformResourceInput { + id?: string; + createdAt?: string; + updatedAt?: string; + createdBy?: string; + updatedBy?: string; + /** Namespace this resource belongs to (security boundary, maps to K8s namespace) */ + namespaceId: string; + /** Resource kind: Deployment, StatefulSet, Service, Ingress, Certificate */ + kind: string; + /** Human-readable resource name */ + name: 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, failed, draining, deleting */ + status?: string; + /** Observed state from K8s — populated by handlers after reconciliation (service_url, clone_url, replicas, etc.) */ + statusObserved?: unknown; + /** Most recent provisioning or runtime error message */ + lastError?: string; + /** Cumulative error count for this resource */ + errorCount?: number; + /** Key/value pairs for selecting and filtering resources */ + labels?: unknown; + /** Freeform metadata for tooling and operational notes */ + annotations?: unknown; + /** 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[]; + /** 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[]; + /** 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[]; + /** Definition template this resource was created from (NULL for standalone resources) */ + resourceDefinitionId?: string; +} +export interface CreatePlatformFunctionDeploymentInput { + clientMutationId?: string; + /** The `PlatformFunctionDeployment` to be created by this mutation. */ + platformFunctionDeployment: PlatformFunctionDeploymentInput; +} +/** An input for mutations affecting `PlatformFunctionDeployment` */ +export interface PlatformFunctionDeploymentInput { + id?: string; + createdAt?: string; + updatedAt?: string; + /** Target namespace for this deployment (maps to a K8s namespace) */ + namespaceId: string; + /** Deployment lifecycle status: pending, provisioning, active, failed, scaled_to_zero, deactivated */ + status?: string; + /** Knative service URL (http://{service-name}.{namespace}.svc.cluster.local) — populated after provisioning */ + serviceUrl?: string; + /** 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; + /** Deployment revision number (incremented on each redeployment) */ + revision?: number; + /** 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; + /** Handler directory name (e.g. email, document) — used as FN_HANDLER_NAME in combined-image mode to select the entry point */ + handlerName?: string; + /** Max concurrent requests per pod (NULL = inherit from definition) */ + concurrency?: number; + /** Minimum replica count (NULL = inherit from definition or Knative default) */ + scaleMin?: number; + /** Maximum replica count (NULL = inherit from definition or Knative default) */ + scaleMax?: number; + /** Request timeout override in seconds (NULL = inherit from definition) */ + timeoutSeconds?: number; + /** K8s resource spec override: {"requests":{"cpu":"100m","memory":"128Mi"},"limits":{...}} */ + resources?: unknown; + /** Most recent provisioning or runtime error message */ + lastError?: string; + /** Timestamp of the most recent error */ + lastErrorAt?: string; + /** Cumulative error count for this deployment */ + errorCount?: number; + /** Key/value pairs for selecting and filtering deployments */ + labels?: unknown; + /** Freeform metadata for tooling and operational notes */ + annotations?: unknown; +} export interface CreateResourceInput { clientMutationId?: string; /** The `Resource` to be created by this mutation. */ @@ -1952,44 +3884,51 @@ export interface ResourceInput { annotations?: unknown; /** Database that owns this resource (database-scoped isolation) */ databaseId: string; -} -export interface CreatePlatformNamespaceEventInput { + /** 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[]; + /** 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[]; + /** 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[]; + /** Definition template this resource was created from (NULL for standalone resources) */ + resourceDefinitionId?: string; +} +export interface CreatePlatformResourceDefinitionInput { clientMutationId?: string; - /** The `PlatformNamespaceEvent` to be created by this mutation. */ - platformNamespaceEvent: PlatformNamespaceEventInput; + /** The `PlatformResourceDefinition` to be created by this mutation. */ + platformResourceDefinition: PlatformResourceDefinitionInput; } -/** An input for mutations affecting `PlatformNamespaceEvent` */ -export interface PlatformNamespaceEventInput { - /** Event timestamp (partition key) */ - createdAt?: string; - /** Unique event identifier */ +/** An input for mutations affecting `PlatformResourceDefinition` */ +export interface PlatformResourceDefinitionInput { id?: string; - /** Namespace this event belongs to */ + createdAt?: string; + updatedAt?: string; + createdBy?: string; + updatedBy?: string; + /** Namespace this definition belongs to (security boundary, maps to K8s namespace) */ namespaceId: string; - /** Event type: created, activated, deactivated, labels_updated, annotations_updated, renamed */ - eventType: string; - /** User who triggered this event (NULL for system/automated) */ - actorId?: string; - /** Human-readable description of the event */ - message?: string; - /** Structured context (old/new values, labels diff, etc.) */ - metadata?: unknown; - /** CPU usage in millicores at time of event */ - cpuMillicores?: number; - /** Memory usage in bytes at time of event */ - memoryBytes?: string; - /** Storage usage in bytes at time of event */ - storageBytes?: string; - /** Network ingress in bytes during event window */ - networkIngressBytes?: string; - /** Network egress in bytes during event window */ - networkEgressBytes?: string; - /** Number of active pods in the namespace at time of event */ - podCount?: number; - /** Additional resource metrics (gpu, replicas, quotas, etc.) */ - metrics?: unknown; - /** Database that owns this resource (database-scoped isolation) */ - databaseId: string; + /** Resource kind: Deployment, StatefulSet, Service, Ingress, Certificate, or custom kinds */ + kind: string; + /** Human-readable definition name */ + name: string; + /** URL-safe identifier, unique within (namespace_id, kind) */ + slug: string; + /** What this resource definition provides */ + description?: string; + /** Template spec for creating resource instances of this kind */ + defaultSpec?: unknown; + /** Embedded secret requirements: array of (name, required, provider) tuples. provider is the integration slug this requirement belongs to, if any. */ + requiredSecrets?: ResourceRequirementInput[]; + /** Embedded config requirements: array of (name, required, provider) tuples. provider is the integration slug this requirement belongs to, if any. */ + requiredConfigs?: ResourceRequirementInput[]; + /** 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[]; + /** Key/value pairs for selecting and filtering definitions */ + labels?: unknown; + /** Freeform metadata for tooling and operational notes */ + annotations?: unknown; + /** Min age before DELETE of a resource of this kind requires step-up; NULL inherits the 6h default */ + stepUpMinAge?: IntervalInput; } export interface CreateFunctionDeploymentInput { clientMutationId?: string; @@ -2001,20 +3940,22 @@ export interface FunctionDeploymentInput { id?: string; createdAt?: string; updatedAt?: string; - /** Function definition being deployed to this namespace */ - functionDefinitionId: string; /** Target namespace for this deployment (maps to a K8s namespace) */ namespaceId: string; /** Deployment lifecycle status: pending, provisioning, active, failed, scaled_to_zero, deactivated */ status?: string; /** Knative service URL (http://{service-name}.{namespace}.svc.cluster.local) — populated after provisioning */ serviceUrl?: string; - /** Knative service name — derived from task_identifier at provision time */ + /** 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; /** Deployment revision number (incremented on each redeployment) */ revision?: number; - /** Container image override (NULL = inherit from function definition) */ - image?: 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; + /** Handler directory name (e.g. email, document) — used as FN_HANDLER_NAME in combined-image mode to select the entry point */ + handlerName?: string; /** Max concurrent requests per pod (NULL = inherit from definition) */ concurrency?: number; /** Minimum replica count (NULL = inherit from definition or Knative default) */ @@ -2038,6 +3979,45 @@ export interface FunctionDeploymentInput { /** Database that owns this resource (database-scoped isolation) */ databaseId: string; } +export interface CreateResourceDefinitionInput { + clientMutationId?: string; + /** The `ResourceDefinition` to be created by this mutation. */ + resourceDefinition: ResourceDefinitionInput; +} +/** An input for mutations affecting `ResourceDefinition` */ +export interface ResourceDefinitionInput { + id?: string; + createdAt?: string; + updatedAt?: string; + createdBy?: string; + updatedBy?: string; + /** Namespace this definition belongs to (security boundary, maps to K8s namespace) */ + namespaceId: string; + /** Resource kind: Deployment, StatefulSet, Service, Ingress, Certificate, or custom kinds */ + kind: string; + /** Human-readable definition name */ + name: string; + /** URL-safe identifier, unique within (namespace_id, kind) */ + slug: string; + /** What this resource definition provides */ + description?: string; + /** Template spec for creating resource instances of this kind */ + defaultSpec?: unknown; + /** Embedded secret requirements: array of (name, required, provider) tuples. provider is the integration slug this requirement belongs to, if any. */ + requiredSecrets?: ResourceRequirementInput[]; + /** Embedded config requirements: array of (name, required, provider) tuples. provider is the integration slug this requirement belongs to, if any. */ + requiredConfigs?: ResourceRequirementInput[]; + /** 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[]; + /** Key/value pairs for selecting and filtering definitions */ + labels?: unknown; + /** Freeform metadata for tooling and operational notes */ + annotations?: unknown; + /** Min age before DELETE of a resource of this kind requires step-up; NULL inherits the 6h default */ + stepUpMinAge?: IntervalInput; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; +} export interface CreateFunctionGraphExecutionInput { clientMutationId?: string; /** The `FunctionGraphExecution` to be created by this mutation. */ @@ -2053,10 +4033,10 @@ export interface FunctionGraphExecutionInput { graphId: string; /** Parent function_invocations row (for metering) */ invocationId?: string; - /** Scope for multi-tenant isolation */ - databaseId: string; - /** Target output boundary node name to resolve */ - outputNode: string; + /** Opaque store partition key for the global tier */ + scopeId: string; + /** Target output boundary node name to resolve; NULL derives completion from the graph's graphOutput nodes */ + outputNode?: string; /** Target output port name (default: value) */ outputPort?: string; /** Lifecycle: pending → running → completed/failed/cancelled */ @@ -2087,11 +4067,92 @@ export interface FunctionGraphExecutionInput { maxPendingJobs?: number; /** Absolute deadline — execution fails if still running after this time */ timeoutAt?: string; + /** Timestamp of the last real progress (node enqueue, node output, completion) — drives the activity-debounced watchdog */ + lastProgressAt?: string; /** Machine-readable error code when status = failed */ errorCode?: string; /** Human-readable error description when status = failed */ errorMessage?: string; } +export interface CreatePlatformFunctionDefinitionInput { + clientMutationId?: string; + /** The `PlatformFunctionDefinition` to be created by this mutation. */ + platformFunctionDefinition: PlatformFunctionDefinitionInput; +} +/** An input for mutations affecting `PlatformFunctionDefinition` */ +export interface PlatformFunctionDefinitionInput { + id?: string; + createdAt?: string; + updatedAt?: string; + /** Function grouping scope (e.g. email, embed, chunk, custom) */ + scope: string; + /** Function name within scope (e.g. send_verification_link, process_file_embedding) */ + name: string; + /** Computed routing slug: scope:name (used by Knative job worker for dispatch) */ + taskIdentifier: string; + /** Human-readable description of what this function does */ + description?: string; + /** Whether this function definition is published to the public catalog for direct authenticated invocation. Default false = internal-only via add_job() */ + isPublished?: boolean; + /** Non-public invocation channels this function may be exposed through (api, graph). Internal job dispatch is implicit and never listed. Default [] = job worker only. */ + accessChannels?: string[]; + /** Timestamp when this function was published. NULL means immediately published when is_published is true; future timestamps delay public visibility */ + publishedAt?: string; + /** Maximum retry attempts for the underlying job */ + maxAttempts?: number; + /** Job priority (lower = higher priority) */ + priority?: number; + /** Job queue name for serialization (e.g. email, ai, default) */ + queueName?: string; + /** Execution mode: http (Knative Service dispatch), inline (in-process in compute worker), handler (registered infrastructure handler), or sql (generic SQL dispatch via a trusted direct target or module-resolved function names) */ + runtime?: string; + /** Schema of the SQL function to invoke when runtime=sql (direct mode). NULL for module mode and other runtimes. */ + targetSchema?: string; + /** Name of the SQL function to invoke when runtime=sql (direct mode). NULL for module mode and other runtimes. */ + targetFunction?: string; + /** metaschema_modules_public table whose per-database row carries the generated function names when runtime=sql (module mode). NULL for direct mode and other runtimes. */ + moduleTable?: string; + /** 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; + /** Ordered bind-parameter mapping for runtime=sql: [{name, type}]. payload[name] is bound as $n::type. */ + payloadArgs?: unknown; + /** Docker image reference (e.g. ghcr.io/constructive-io/email-send-fn:latest). Required when runtime=http. NULL for inline functions. */ + image?: string; + /** Knative containerConcurrency — max concurrent requests per pod instance */ + concurrency?: number; + /** Minimum pod count for Knative autoscaling (minScale) */ + scaleMin?: number; + /** Maximum pod count for Knative autoscaling (maxScale) */ + scaleMax?: number; + /** Knative request timeout in seconds */ + timeoutSeconds?: number; + /** Container resource requests and limits: {requests: {memory, cpu}, limits: {memory, cpu}} */ + resources?: unknown; + /** Whether this function is a built-in platform function (synced from platform) vs user-created */ + isBuiltIn?: boolean; + /** Embedded secret requirements: array of (name, required, provider) tuples. provider is the integration slug this requirement belongs to, if any. */ + requiredSecrets?: ResourceRequirementInput[]; + /** Embedded config requirements: array of (name, required, provider) tuples. provider is the integration slug this requirement belongs to, if any. */ + 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. */ + integrations?: string[]; + /** Bucket keys this function needs (e.g. uploads, exports). Empty = no bucket requirements. */ + requiredBuckets?: string[]; + /** Inference model whitelist (e.g. gpt-4o, claude-3). Empty = no model requirements. */ + requiredModels?: string[]; + /** Data input ports: [{name, type, description?, optional?, multi?, schema?}] */ + inputs?: unknown; + /** Data output ports: [{name, type, description?, optional?, multi?, schema?}] */ + outputs?: unknown; + /** Configuration properties: [{name, type, default?, description?, required?, schema?}] */ + props?: unknown; + /** Whether this function has side effects and cannot be cached or memoized */ + volatile?: boolean; + /** Icon identifier for UI palette rendering (e.g. mail, database, code) */ + icon?: string; + /** Palette grouping category (e.g. email, data, ai, custom) */ + category?: string; +} export interface CreateFunctionDefinitionInput { clientMutationId?: string; /** The `FunctionDefinition` to be created by this mutation. */ @@ -2110,16 +4171,30 @@ export interface FunctionDefinitionInput { taskIdentifier: string; /** Human-readable description of what this function does */ description?: string; - /** Whether this function can be called via function_invocations (public API). Default false = internal-only via add_job() */ - isInvocable?: boolean; + /** Whether this function definition is published to the public catalog for direct authenticated invocation. Default false = internal-only via add_job() */ + isPublished?: boolean; + /** Non-public invocation channels this function may be exposed through (api, graph). Internal job dispatch is implicit and never listed. Default [] = job worker only. */ + accessChannels?: string[]; + /** Timestamp when this function was published. NULL means immediately published when is_published is true; future timestamps delay public visibility */ + publishedAt?: string; /** Maximum retry attempts for the underlying job */ maxAttempts?: number; /** Job priority (lower = higher priority) */ priority?: number; /** Job queue name for serialization (e.g. email, ai, default) */ queueName?: string; - /** Execution mode: http (Knative Service dispatch) or inline (in-process in compute worker) */ + /** Execution mode: http (Knative Service dispatch), inline (in-process in compute worker), handler (registered infrastructure handler), or sql (generic SQL dispatch via a trusted direct target or module-resolved function names) */ runtime?: string; + /** Schema of the SQL function to invoke when runtime=sql (direct mode). NULL for module mode and other runtimes. */ + targetSchema?: string; + /** Name of the SQL function to invoke when runtime=sql (direct mode). NULL for module mode and other runtimes. */ + targetFunction?: string; + /** metaschema_modules_public table whose per-database row carries the generated function names when runtime=sql (module mode). NULL for direct mode and other runtimes. */ + moduleTable?: string; + /** 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; + /** Ordered bind-parameter mapping for runtime=sql: [{name, type}]. payload[name] is bound as $n::type. */ + payloadArgs?: unknown; /** Docker image reference (e.g. ghcr.io/constructive-io/email-send-fn:latest). Required when runtime=http. NULL for inline functions. */ image?: string; /** Knative containerConcurrency — max concurrent requests per pod instance */ @@ -2134,10 +4209,12 @@ export interface FunctionDefinitionInput { resources?: unknown; /** Whether this function is a built-in platform function (synced from platform) vs user-created */ isBuiltIn?: boolean; - /** Embedded secret requirements: array of (name, required) tuples */ - requiredSecrets?: FunctionRequirementInput[]; - /** Embedded config requirements: array of (name, required) tuples */ - requiredConfigs?: FunctionRequirementInput[]; + /** Embedded secret requirements: array of (name, required, provider) tuples. provider is the integration slug this requirement belongs to, if any. */ + requiredSecrets?: ResourceRequirementInput[]; + /** Embedded config requirements: array of (name, required, provider) tuples. provider is the integration slug this requirement belongs to, if any. */ + 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. */ + integrations?: string[]; /** Bucket keys this function needs (e.g. uploads, exports). Empty = no bucket requirements. */ requiredBuckets?: string[]; /** Inference model whitelist (e.g. gpt-4o, claude-3). Empty = no model requirements. */ @@ -2154,11 +4231,50 @@ export interface FunctionDefinitionInput { icon?: string; /** Palette grouping category (e.g. email, data, ai, custom) */ category?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; +} +export interface UpdateInfraRefInput { + clientMutationId?: string; + /** Unique ref identifier */ + id: string; + /** Opaque store partition key for the global tier */ + scopeId: string; + /** An object where the defined keys will be set on the `InfraRef` being updated. */ + infraRefPatch: InfraRefPatch; } -/** An input for mutations affecting `FunctionRequirement` */ -export interface FunctionRequirementInput { +/** Represents an update to a `InfraRef`. Fields that are set will be updated. */ +export interface InfraRefPatch { + /** Unique ref identifier */ + id?: string; + /** Ref name (e.g. HEAD, main) */ name?: string; - required?: boolean; + /** Opaque store partition key for the global tier */ + scopeId?: string; + /** Store this ref belongs to */ + storeId?: string; + /** Commit this ref points to */ + commitId?: string; +} +export interface UpdateInfraStoreInput { + clientMutationId?: string; + /** Unique store identifier */ + id: string; + /** An object where the defined keys will be set on the `InfraStore` being updated. */ + infraStorePatch: InfraStorePatch; +} +/** Represents an update to a `InfraStore`. Fields that are set will be updated. */ +export interface InfraStorePatch { + /** Unique store identifier */ + id?: string; + /** Human-readable store name */ + name?: string; + /** Opaque store partition key for the global tier */ + scopeId?: string; + /** Current root object hash of this store */ + hash?: string; + /** Timestamp of store creation */ + createdAt?: string; } export interface UpdateFunctionApiBindingInput { clientMutationId?: string; @@ -2182,8 +4298,8 @@ export interface UpdateFunctionGraphRefInput { clientMutationId?: string; /** Unique ref identifier */ id: string; - /** Database scope for multi-tenant isolation */ - databaseId: string; + /** Opaque store partition key for the global tier */ + scopeId: string; /** An object where the defined keys will be set on the `FunctionGraphRef` being updated. */ functionGraphRefPatch: FunctionGraphRefPatch; } @@ -2193,8 +4309,8 @@ export interface FunctionGraphRefPatch { id?: string; /** Ref name (e.g. HEAD, main) */ name?: string; - /** Database scope for multi-tenant isolation */ - databaseId?: string; + /** Opaque store partition key for the global tier */ + scopeId?: string; /** Store this ref belongs to */ storeId?: string; /** Commit this ref points to */ @@ -2213,19 +4329,85 @@ export interface FunctionGraphStorePatch { id?: string; /** Human-readable store name */ name?: string; - /** Database scope for multi-tenant isolation */ - databaseId?: string; + /** Opaque store partition key for the global tier */ + scopeId?: string; /** Current root object hash of this store */ hash?: string; /** Timestamp of store creation */ createdAt?: string; } +export interface UpdatePlatformFunctionApiBindingInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `PlatformFunctionApiBinding` being updated. */ + platformFunctionApiBindingPatch: PlatformFunctionApiBindingPatch; +} +/** Represents an update to a `PlatformFunctionApiBinding`. Fields that are set will be updated. */ +export interface PlatformFunctionApiBindingPatch { + id?: string; + /** Function definition this binding belongs to */ + functionDefinitionId?: string; + /** API endpoint this function is bound to */ + apiId?: string; + /** Binding alias (e.g. default, staging, production) */ + alias?: string; + /** Per-binding configuration (overrides, routing rules, etc.) */ + config?: unknown; +} +export interface UpdatePlatformResourceStatusCheckInput { + clientMutationId?: string; + /** Unique status check identifier */ + id: string; + /** An object where the defined keys will be set on the `PlatformResourceStatusCheck` being updated. */ + platformResourceStatusCheckPatch: PlatformResourceStatusCheckPatch; +} +/** Represents an update to a `PlatformResourceStatusCheck`. Fields that are set will be updated. */ +export interface PlatformResourceStatusCheckPatch { + /** Unique status check identifier */ + id?: string; + /** Resource to check */ + resourceId?: string; + /** User who requested the check (NULL for system/scheduled) */ + requestedBy?: string; + /** When the check was requested */ + requestedAt?: string; + /** When the check completed (NULL while pending/running) */ + completedAt?: string; + /** Check lifecycle: pending, running, completed, failed */ + status?: string; + /** Diagnostic snapshot: k8s_status, conditions, pod_logs_tail, events */ + result?: unknown; +} +export interface UpdateInfraObjectInput { + clientMutationId?: string; + /** Content-addressed UUID v5 — deterministic hash of (data, kids, ktree) */ + id: string; + /** Opaque store partition key for the global tier */ + scopeId: string; + /** An object where the defined keys will be set on the `InfraObject` being updated. */ + infraObjectPatch: InfraObjectPatch; +} +/** Represents an update to a `InfraObject`. Fields that are set will be updated. */ +export interface InfraObjectPatch { + /** Content-addressed UUID v5 — deterministic hash of (data, kids, ktree) */ + id?: string; + /** Opaque store partition key for the global tier */ + scopeId?: string; + /** Ordered array of child object IDs */ + kids?: string[]; + /** Ordered array of child path names (parallel to kids) */ + ktree?: string[]; + /** Payload data for this object node */ + data?: unknown; + /** Timestamp of object creation */ + createdAt?: string; +} export interface UpdateFunctionGraphObjectInput { clientMutationId?: string; /** Content-addressed UUID v5 — deterministic hash of (data, kids, ktree) */ id: string; - /** Database scope for multi-tenant isolation */ - databaseId: string; + /** Opaque store partition key for the global tier */ + scopeId: string; /** An object where the defined keys will be set on the `FunctionGraphObject` being updated. */ functionGraphObjectPatch: FunctionGraphObjectPatch; } @@ -2233,8 +4415,8 @@ export interface UpdateFunctionGraphObjectInput { export interface FunctionGraphObjectPatch { /** Content-addressed UUID v5 — deterministic hash of (data, kids, ktree) */ id?: string; - /** Database scope for multi-tenant isolation */ - databaseId?: string; + /** Opaque store partition key for the global tier */ + scopeId?: string; /** Ordered array of child object IDs */ kids?: string[]; /** Ordered array of child path names (parallel to kids) */ @@ -2244,6 +4426,84 @@ export interface FunctionGraphObjectPatch { /** Timestamp of object creation */ createdAt?: string; } +export interface UpdatePlatformFunctionDeploymentEventInput { + clientMutationId?: string; + /** Event timestamp (partition key) */ + createdAt: string; + /** Unique event identifier */ + id: string; + /** An object where the defined keys will be set on the `PlatformFunctionDeploymentEvent` being updated. */ + platformFunctionDeploymentEventPatch: PlatformFunctionDeploymentEventPatch; +} +/** Represents an update to a `PlatformFunctionDeploymentEvent`. Fields that are set will be updated. */ +export interface PlatformFunctionDeploymentEventPatch { + /** Event timestamp (partition key) */ + createdAt?: string; + /** Unique event identifier */ + id?: string; + /** Deployment this event belongs to */ + deploymentId?: string; + /** Event type: provisioned, scaled, failed, deactivated, redeployed, health_check */ + eventType?: string; + /** User who triggered this event (NULL for system/automated) */ + actorId?: string; + /** Human-readable description of the event */ + message?: string; + /** Structured context (old/new values, error details, etc.) */ + metadata?: unknown; +} +export interface UpdatePlatformResourceEventInput { + clientMutationId?: string; + /** Event timestamp (partition key) */ + createdAt: string; + /** Unique event identifier */ + id: string; + /** An object where the defined keys will be set on the `PlatformResourceEvent` being updated. */ + platformResourceEventPatch: PlatformResourceEventPatch; +} +/** Represents an update to a `PlatformResourceEvent`. Fields that are set will be updated. */ +export interface PlatformResourceEventPatch { + /** Event timestamp (partition key) */ + createdAt?: string; + /** Unique event identifier */ + id?: string; + /** Resource this event belongs to */ + resourceId?: string; + /** Event type: provisioned, provisioning, updated, failed, deprovisioned, health_check */ + eventType?: string; + /** User who triggered this event (NULL for system/automated) */ + actorId?: string; + /** Human-readable description of the event */ + message?: string; + /** Structured context (old/new values, error details, etc.) */ + metadata?: unknown; +} +export interface UpdateResourceStatusCheckInput { + clientMutationId?: string; + /** Unique status check identifier */ + id: string; + /** An object where the defined keys will be set on the `ResourceStatusCheck` being updated. */ + resourceStatusCheckPatch: ResourceStatusCheckPatch; +} +/** Represents an update to a `ResourceStatusCheck`. Fields that are set will be updated. */ +export interface ResourceStatusCheckPatch { + /** Unique status check identifier */ + id?: string; + /** Resource to check */ + resourceId?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId?: string; + /** User who requested the check (NULL for system/scheduled) */ + requestedBy?: string; + /** When the check was requested */ + requestedAt?: string; + /** When the check completed (NULL while pending/running) */ + completedAt?: string; + /** Check lifecycle: pending, running, completed, failed */ + status?: string; + /** Diagnostic snapshot: k8s_status, conditions, pod_logs_tail, events */ + result?: unknown; +} export interface UpdateFunctionDeploymentEventInput { clientMutationId?: string; /** Event timestamp (partition key) */ @@ -2272,17 +4532,17 @@ export interface FunctionDeploymentEventPatch { /** Database that owns this resource (database-scoped isolation) */ databaseId?: string; } -export interface UpdateOrgFunctionExecutionLogInput { +export interface UpdatePlatformFunctionExecutionLogInput { clientMutationId?: string; /** Log entry timestamp (partition key) */ createdAt: string; /** Unique log entry identifier */ id: string; - /** An object where the defined keys will be set on the `OrgFunctionExecutionLog` being updated. */ - orgFunctionExecutionLogPatch: OrgFunctionExecutionLogPatch; + /** An object where the defined keys will be set on the `PlatformFunctionExecutionLog` being updated. */ + platformFunctionExecutionLogPatch: PlatformFunctionExecutionLogPatch; } -/** Represents an update to a `OrgFunctionExecutionLog`. Fields that are set will be updated. */ -export interface OrgFunctionExecutionLogPatch { +/** Represents an update to a `PlatformFunctionExecutionLog`. Fields that are set will be updated. */ +export interface PlatformFunctionExecutionLogPatch { /** Log entry timestamp (partition key) */ createdAt?: string; /** Unique log entry identifier */ @@ -2343,19 +4603,49 @@ export interface FunctionGraphExecutionOutputPatch { createdAt?: string; /** Unique execution output identifier */ id?: string; - /** Scope for multi-tenant isolation */ - databaseId?: string; + /** Opaque store partition key for the global tier */ + scopeId?: string; /** SHA-256 hash of the data JSONB — content-addressed deduplication */ hash?: Base64EncodedBinary; /** The actual output payload from a completed node */ data?: unknown; } +export interface UpdateInfraCommitInput { + clientMutationId?: string; + /** Unique commit identifier */ + id: string; + /** Opaque store partition key for the global tier */ + scopeId: string; + /** An object where the defined keys will be set on the `InfraCommit` being updated. */ + infraCommitPatch: InfraCommitPatch; +} +/** Represents an update to a `InfraCommit`. Fields that are set will be updated. */ +export interface InfraCommitPatch { + /** Unique commit identifier */ + id?: string; + /** Optional commit message */ + message?: string; + /** Opaque store partition key for the global tier */ + scopeId?: string; + /** Store this commit belongs to */ + storeId?: string; + /** Parent commit IDs (supports merge commits) */ + parentIds?: string[]; + /** User who authored the changes */ + authorId?: string; + /** User who committed (may differ from author) */ + committerId?: string; + /** Root object ID of the tree snapshot at this commit */ + treeId?: string; + /** Commit timestamp */ + date?: string; +} export interface UpdateFunctionGraphCommitInput { clientMutationId?: string; /** Unique commit identifier */ id: string; - /** Database scope for multi-tenant isolation */ - databaseId: string; + /** Opaque store partition key for the global tier */ + scopeId: string; /** An object where the defined keys will be set on the `FunctionGraphCommit` being updated. */ functionGraphCommitPatch: FunctionGraphCommitPatch; } @@ -2365,8 +4655,8 @@ export interface FunctionGraphCommitPatch { id?: string; /** Optional commit message */ message?: string; - /** Database scope for multi-tenant isolation */ - databaseId?: string; + /** Opaque store partition key for the global tier */ + scopeId?: string; /** Store this commit belongs to */ storeId?: string; /** Parent commit IDs (supports merge commits) */ @@ -2380,30 +4670,6 @@ export interface FunctionGraphCommitPatch { /** Commit timestamp */ date?: string; } -export interface UpdateSecretDefinitionInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `SecretDefinition` being updated. */ - secretDefinitionPatch: SecretDefinitionPatch; -} -/** Represents an update to a `SecretDefinition`. Fields that are set will be updated. */ -export interface SecretDefinitionPatch { - id?: string; - createdAt?: string; - updatedAt?: string; - /** Secret name (must match app_secrets.name for resolution) */ - name?: string; - /** Human-readable description of what this secret is used for */ - description?: string; - /** Whether this row was seeded as a built-in secret definition. Built-in rows are immutable. */ - isBuiltIn?: boolean; - /** Key-value metadata for filtering and grouping secret definitions */ - labels?: unknown; - /** Freeform metadata annotations for secret definitions */ - annotations?: unknown; - /** Database that owns this resource (database-scoped isolation) */ - databaseId?: string; -} export interface UpdateFunctionExecutionLogInput { clientMutationId?: string; /** Log entry timestamp (partition key) */ @@ -2434,6 +4700,68 @@ export interface FunctionExecutionLogPatch { /** Database that owns this resource (database-scoped isolation) */ databaseId?: string; } +export interface UpdateDbPresetInput { + clientMutationId?: string; + /** Unique preset identifier */ + id: string; + /** An object where the defined keys will be set on the `DbPreset` being updated. */ + dbPresetPatch: DbPresetPatch; +} +/** Represents an update to a `DbPreset`. Fields that are set will be updated. */ +export interface DbPresetPatch { + /** Unique preset identifier */ + id?: string; + /** Infra Merkle store holding this preset's history (stamped by the versioned trigger) */ + storeId?: string; + /** Preset slug (unique per scope); the preset's path in the infra tree is [db_preset, slug] */ + slug?: string; + /** Preset definition (modules + options) — the readily-cached head; history lives in the infra store */ + definition?: unknown; + /** Infra store commit for the current definition (stamped by the versioned trigger on every write) */ + commitId?: 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; + /** Human-readable preset name */ + label?: string; + /** Human-readable description of the preset */ + description?: string; + /** Whether this preset is selectable for new databases */ + active?: boolean; + /** Timestamp of preset creation */ + createdAt?: string; + /** Timestamp of last modification */ + updatedAt?: string; +} +export interface UpdatePlatformNamespaceInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `PlatformNamespace` being updated. */ + platformNamespacePatch: PlatformNamespacePatch; +} +/** Represents an update to a `PlatformNamespace`. Fields that are set will be updated. */ +export interface PlatformNamespacePatch { + id?: string; + createdAt?: string; + updatedAt?: string; + /** Human-readable namespace name (e.g. default, production, oauth) */ + name?: string; + /** Globally unique computed namespace identifier via inflection.underscore */ + namespaceName?: string; + /** Optional human-readable description of this namespace */ + description?: string; + /** Whether this namespace is active (soft-disable for filtering) */ + isActive?: boolean; + /** Namespace provisioning lifecycle status: pending, provisioning, active, failed */ + status?: string; + /** Most recent provisioning or reconcile error message */ + lastError?: string; + /** Key/value pairs for selecting and filtering namespaces */ + labels?: unknown; + /** Freeform metadata for tooling and operational notes */ + annotations?: unknown; + /** true = provisioned by the platform via jobs, false = unmanaged/platform-native (bootstrapped externally) */ + isManaged?: boolean; +} export interface UpdateFunctionGraphInput { clientMutationId?: string; /** Unique graph identifier */ @@ -2445,8 +4773,8 @@ export interface UpdateFunctionGraphInput { export interface FunctionGraphPatch { /** Unique graph identifier */ id?: string; - /** Database scope for multi-tenant isolation */ - databaseId?: string; + /** Opaque store partition key for the global tier */ + scopeId?: string; /** Graph store (Merkle store) holding the graph definition */ storeId?: string; /** Evaluator/runtime context (function, js, sql, system) */ @@ -2485,8 +4813,8 @@ export interface FunctionGraphExecutionNodeStatePatch { id?: string; /** FK to the parent graph execution */ executionId?: string; - /** Scope for multi-tenant isolation */ - databaseId?: string; + /** Opaque store partition key for the global tier */ + scopeId?: 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 */ @@ -2504,14 +4832,14 @@ export interface FunctionGraphExecutionNodeStatePatch { /** FK to execution_outputs — content-addressed output blob for this node */ outputId?: string; } -export interface UpdatePlatformNamespaceInput { +export interface UpdateNamespaceInput { clientMutationId?: string; id: string; - /** An object where the defined keys will be set on the `PlatformNamespace` being updated. */ - platformNamespacePatch: PlatformNamespacePatch; + /** An object where the defined keys will be set on the `Namespace` being updated. */ + namespacePatch: NamespacePatch; } -/** Represents an update to a `PlatformNamespace`. Fields that are set will be updated. */ -export interface PlatformNamespacePatch { +/** Represents an update to a `Namespace`. Fields that are set will be updated. */ +export interface NamespacePatch { id?: string; createdAt?: string; updatedAt?: string; @@ -2523,30 +4851,30 @@ export interface PlatformNamespacePatch { description?: string; /** Whether this namespace is active (soft-disable for filtering) */ isActive?: boolean; + /** Namespace provisioning lifecycle status: pending, provisioning, active, failed */ + status?: string; + /** Most recent provisioning or reconcile error message */ + lastError?: string; /** Key/value pairs for selecting and filtering namespaces */ labels?: unknown; /** Freeform metadata for tooling and operational notes */ annotations?: unknown; /** Database that owns this resource (database-scoped isolation) */ databaseId?: string; - /** Database that created this namespace (NULL for platform-native namespaces) */ - sourceDatabaseId?: string; - /** Origin scope: platform, org, app — indicates where this namespace was created */ - sourceScope?: string; - /** true = created by a child scope mirror trigger, false = platform-native */ + /** true = provisioned by the platform via jobs, false = unmanaged/platform-native (bootstrapped externally) */ isManaged?: boolean; } -export interface UpdateOrgFunctionInvocationInput { +export interface UpdatePlatformFunctionInvocationInput { clientMutationId?: string; /** Invocation creation timestamp (partition key) */ createdAt: string; /** Unique invocation identifier */ id: string; - /** An object where the defined keys will be set on the `OrgFunctionInvocation` being updated. */ - orgFunctionInvocationPatch: OrgFunctionInvocationPatch; + /** An object where the defined keys will be set on the `PlatformFunctionInvocation` being updated. */ + platformFunctionInvocationPatch: PlatformFunctionInvocationPatch; } -/** Represents an update to a `OrgFunctionInvocation`. Fields that are set will be updated. */ -export interface OrgFunctionInvocationPatch { +/** Represents an update to a `PlatformFunctionInvocation`. Fields that are set will be updated. */ +export interface PlatformFunctionInvocationPatch { /** Invocation creation timestamp (partition key) */ createdAt?: string; /** Unique invocation identifier */ @@ -2618,55 +4946,89 @@ export interface FunctionInvocationPatch { /** Groups all node invocations from a single flow graph execution */ graphExecutionId?: string; } -export interface UpdateResourceInput { +export interface UpdatePlatformNamespaceEventInput { clientMutationId?: string; + /** Event timestamp (partition key) */ + createdAt: string; + /** Unique event identifier */ id: string; - /** An object where the defined keys will be set on the `Resource` being updated. */ - resourcePatch: ResourcePatch; + /** An object where the defined keys will be set on the `PlatformNamespaceEvent` being updated. */ + platformNamespaceEventPatch: PlatformNamespaceEventPatch; } -/** Represents an update to a `Resource`. Fields that are set will be updated. */ -export interface ResourcePatch { +/** Represents an update to a `PlatformNamespaceEvent`. Fields that are set will be updated. */ +export interface PlatformNamespaceEventPatch { + /** Event timestamp (partition key) */ + createdAt?: string; + /** Unique event identifier */ + id?: string; + /** Namespace this event belongs to */ + namespaceId?: string; + /** Event type: created, activated, deactivated, labels_updated, annotations_updated, renamed */ + eventType?: string; + /** User who triggered this event (NULL for system/automated) */ + actorId?: string; + /** Human-readable description of the event */ + message?: string; + /** Structured context (old/new values, labels diff, etc.) */ + metadata?: unknown; + /** CPU usage in millicores at time of event */ + cpuMillicores?: number; + /** Memory usage in bytes at time of event */ + memoryBytes?: string; + /** Storage usage in bytes at time of event */ + storageBytes?: string; + /** Network ingress in bytes during event window */ + networkIngressBytes?: string; + /** Network egress in bytes during event window */ + networkEgressBytes?: string; + /** Number of active pods in the namespace at time of event */ + podCount?: number; + /** Additional resource metrics (gpu, replicas, quotas, etc.) */ + metrics?: unknown; +} +export interface UpdateIntegrationProviderInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `IntegrationProvider` being updated. */ + integrationProviderPatch: IntegrationProviderPatch; +} +/** Represents an update to a `IntegrationProvider`. Fields that are set will be updated. */ +export interface IntegrationProviderPatch { id?: string; createdAt?: string; updatedAt?: string; - createdBy?: string; - updatedBy?: string; - /** Namespace this resource belongs to (security boundary, maps to K8s namespace) */ - namespaceId?: string; - /** Resource kind: Deployment, StatefulSet, Service, Ingress, Certificate */ - kind?: string; - /** Human-readable resource name */ - name?: string; - /** URL-safe identifier, unique within (namespace_id, kind) */ + /** Stable URL-safe identifier for the provider. Other tables match by this string, not by FK. */ 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, failed, draining, deleting */ - status?: string; - /** Observed state from K8s — populated by handlers after reconciliation (service_url, clone_url, replicas, etc.) */ - statusObserved?: unknown; - /** Most recent provisioning or runtime error message */ - lastError?: string; - /** Cumulative error count for this resource */ - errorCount?: number; - /** Key/value pairs for selecting and filtering resources */ - labels?: unknown; - /** Freeform metadata for tooling and operational notes */ - annotations?: unknown; - /** Database that owns this resource (database-scoped isolation) */ - databaseId?: string; -} -export interface UpdatePlatformNamespaceEventInput { + /** Human-readable brand name (e.g. 'Mailgun', 'PostgreSQL') */ + name?: string; + /** Short description of what this integration provides and when to use it */ + description?: string; + /** Browser category (e.g. email, database, storage, ai, analytics) */ + category?: string; + /** Icon identifier for the UI (e.g. mail, database, cloud) */ + icon?: string; + /** Provider logo as an image domain value (url, id, key, bucket, provider) */ + logo?: ConstructiveInternalTypeImage; + /** Brand metadata: colors, fonts, and other provider-specific styling. Not a foreign key. */ + brand?: unknown; + /** 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[]; + /** 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[]; + /** Upload for Provider logo as an image domain value (url, id, key, bucket, provider) */ + logoUpload?: File; +} +export interface UpdateNamespaceEventInput { clientMutationId?: string; /** Event timestamp (partition key) */ createdAt: string; /** Unique event identifier */ id: string; - /** An object where the defined keys will be set on the `PlatformNamespaceEvent` being updated. */ - platformNamespaceEventPatch: PlatformNamespaceEventPatch; + /** An object where the defined keys will be set on the `NamespaceEvent` being updated. */ + namespaceEventPatch: NamespaceEventPatch; } -/** Represents an update to a `PlatformNamespaceEvent`. Fields that are set will be updated. */ -export interface PlatformNamespaceEventPatch { +/** Represents an update to a `NamespaceEvent`. Fields that are set will be updated. */ +export interface NamespaceEventPatch { /** Event timestamp (partition key) */ createdAt?: string; /** Unique event identifier */ @@ -2698,6 +5060,182 @@ export interface PlatformNamespaceEventPatch { /** Database that owns this resource (database-scoped isolation) */ databaseId?: string; } +export interface UpdatePlatformResourceInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `PlatformResource` being updated. */ + platformResourcePatch: PlatformResourcePatch; +} +/** Represents an update to a `PlatformResource`. Fields that are set will be updated. */ +export interface PlatformResourcePatch { + id?: string; + createdAt?: string; + updatedAt?: string; + createdBy?: string; + updatedBy?: string; + /** Namespace this resource belongs to (security boundary, maps to K8s namespace) */ + namespaceId?: string; + /** Resource kind: Deployment, StatefulSet, Service, Ingress, Certificate */ + kind?: string; + /** Human-readable resource name */ + name?: 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, failed, draining, deleting */ + status?: string; + /** Observed state from K8s — populated by handlers after reconciliation (service_url, clone_url, replicas, etc.) */ + statusObserved?: unknown; + /** Most recent provisioning or runtime error message */ + lastError?: string; + /** Cumulative error count for this resource */ + errorCount?: number; + /** Key/value pairs for selecting and filtering resources */ + labels?: unknown; + /** Freeform metadata for tooling and operational notes */ + annotations?: unknown; + /** 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[]; + /** 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[]; + /** 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[]; + /** Definition template this resource was created from (NULL for standalone resources) */ + resourceDefinitionId?: string; +} +export interface UpdatePlatformFunctionDeploymentInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `PlatformFunctionDeployment` being updated. */ + platformFunctionDeploymentPatch: PlatformFunctionDeploymentPatch; +} +/** Represents an update to a `PlatformFunctionDeployment`. Fields that are set will be updated. */ +export interface PlatformFunctionDeploymentPatch { + id?: string; + createdAt?: string; + updatedAt?: string; + /** Target namespace for this deployment (maps to a K8s namespace) */ + namespaceId?: string; + /** Deployment lifecycle status: pending, provisioning, active, failed, scaled_to_zero, deactivated */ + status?: string; + /** Knative service URL (http://{service-name}.{namespace}.svc.cluster.local) — populated after provisioning */ + serviceUrl?: string; + /** 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; + /** Deployment revision number (incremented on each redeployment) */ + revision?: number; + /** 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; + /** Handler directory name (e.g. email, document) — used as FN_HANDLER_NAME in combined-image mode to select the entry point */ + handlerName?: string; + /** Max concurrent requests per pod (NULL = inherit from definition) */ + concurrency?: number; + /** Minimum replica count (NULL = inherit from definition or Knative default) */ + scaleMin?: number; + /** Maximum replica count (NULL = inherit from definition or Knative default) */ + scaleMax?: number; + /** Request timeout override in seconds (NULL = inherit from definition) */ + timeoutSeconds?: number; + /** K8s resource spec override: {"requests":{"cpu":"100m","memory":"128Mi"},"limits":{...}} */ + resources?: unknown; + /** Most recent provisioning or runtime error message */ + lastError?: string; + /** Timestamp of the most recent error */ + lastErrorAt?: string; + /** Cumulative error count for this deployment */ + errorCount?: number; + /** Key/value pairs for selecting and filtering deployments */ + labels?: unknown; + /** Freeform metadata for tooling and operational notes */ + annotations?: unknown; +} +export interface UpdateResourceInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `Resource` being updated. */ + resourcePatch: ResourcePatch; +} +/** Represents an update to a `Resource`. Fields that are set will be updated. */ +export interface ResourcePatch { + id?: string; + createdAt?: string; + updatedAt?: string; + createdBy?: string; + updatedBy?: string; + /** Namespace this resource belongs to (security boundary, maps to K8s namespace) */ + namespaceId?: string; + /** Resource kind: Deployment, StatefulSet, Service, Ingress, Certificate */ + kind?: string; + /** Human-readable resource name */ + name?: 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, failed, draining, deleting */ + status?: string; + /** Observed state from K8s — populated by handlers after reconciliation (service_url, clone_url, replicas, etc.) */ + statusObserved?: unknown; + /** Most recent provisioning or runtime error message */ + lastError?: string; + /** Cumulative error count for this resource */ + errorCount?: number; + /** Key/value pairs for selecting and filtering resources */ + labels?: unknown; + /** Freeform metadata for tooling and operational notes */ + annotations?: unknown; + /** Database that owns this resource (database-scoped isolation) */ + databaseId?: string; + /** 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[]; + /** 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[]; + /** 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[]; + /** Definition template this resource was created from (NULL for standalone resources) */ + resourceDefinitionId?: string; +} +export interface UpdatePlatformResourceDefinitionInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `PlatformResourceDefinition` being updated. */ + platformResourceDefinitionPatch: PlatformResourceDefinitionPatch; +} +/** Represents an update to a `PlatformResourceDefinition`. Fields that are set will be updated. */ +export interface PlatformResourceDefinitionPatch { + id?: string; + createdAt?: string; + updatedAt?: string; + createdBy?: string; + updatedBy?: string; + /** Namespace this definition belongs to (security boundary, maps to K8s namespace) */ + namespaceId?: string; + /** Resource kind: Deployment, StatefulSet, Service, Ingress, Certificate, or custom kinds */ + kind?: string; + /** Human-readable definition name */ + name?: string; + /** URL-safe identifier, unique within (namespace_id, kind) */ + slug?: string; + /** What this resource definition provides */ + description?: string; + /** Template spec for creating resource instances of this kind */ + defaultSpec?: unknown; + /** Embedded secret requirements: array of (name, required, provider) tuples. provider is the integration slug this requirement belongs to, if any. */ + requiredSecrets?: ResourceRequirementInput[]; + /** Embedded config requirements: array of (name, required, provider) tuples. provider is the integration slug this requirement belongs to, if any. */ + requiredConfigs?: ResourceRequirementInput[]; + /** 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[]; + /** Key/value pairs for selecting and filtering definitions */ + labels?: unknown; + /** Freeform metadata for tooling and operational notes */ + annotations?: unknown; + /** Min age before DELETE of a resource of this kind requires step-up; NULL inherits the 6h default */ + stepUpMinAge?: IntervalInput; +} export interface UpdateFunctionDeploymentInput { clientMutationId?: string; id: string; @@ -2709,20 +5247,22 @@ export interface FunctionDeploymentPatch { id?: string; createdAt?: string; updatedAt?: string; - /** Function definition being deployed to this namespace */ - functionDefinitionId?: string; /** Target namespace for this deployment (maps to a K8s namespace) */ namespaceId?: string; /** Deployment lifecycle status: pending, provisioning, active, failed, scaled_to_zero, deactivated */ status?: string; /** Knative service URL (http://{service-name}.{namespace}.svc.cluster.local) — populated after provisioning */ serviceUrl?: string; - /** Knative service name — derived from task_identifier at provision time */ + /** 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; /** Deployment revision number (incremented on each redeployment) */ revision?: number; - /** Container image override (NULL = inherit from function definition) */ + /** 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; + /** Handler directory name (e.g. email, document) — used as FN_HANDLER_NAME in combined-image mode to select the entry point */ + handlerName?: string; /** Max concurrent requests per pod (NULL = inherit from definition) */ concurrency?: number; /** Minimum replica count (NULL = inherit from definition or Knative default) */ @@ -2746,6 +5286,46 @@ export interface FunctionDeploymentPatch { /** Database that owns this resource (database-scoped isolation) */ databaseId?: string; } +export interface UpdateResourceDefinitionInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `ResourceDefinition` being updated. */ + resourceDefinitionPatch: ResourceDefinitionPatch; +} +/** Represents an update to a `ResourceDefinition`. Fields that are set will be updated. */ +export interface ResourceDefinitionPatch { + id?: string; + createdAt?: string; + updatedAt?: string; + createdBy?: string; + updatedBy?: string; + /** Namespace this definition belongs to (security boundary, maps to K8s namespace) */ + namespaceId?: string; + /** Resource kind: Deployment, StatefulSet, Service, Ingress, Certificate, or custom kinds */ + kind?: string; + /** Human-readable definition name */ + name?: string; + /** URL-safe identifier, unique within (namespace_id, kind) */ + slug?: string; + /** What this resource definition provides */ + description?: string; + /** Template spec for creating resource instances of this kind */ + defaultSpec?: unknown; + /** Embedded secret requirements: array of (name, required, provider) tuples. provider is the integration slug this requirement belongs to, if any. */ + requiredSecrets?: ResourceRequirementInput[]; + /** Embedded config requirements: array of (name, required, provider) tuples. provider is the integration slug this requirement belongs to, if any. */ + requiredConfigs?: ResourceRequirementInput[]; + /** 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[]; + /** Key/value pairs for selecting and filtering definitions */ + labels?: unknown; + /** Freeform metadata for tooling and operational notes */ + annotations?: unknown; + /** Min age before DELETE of a resource of this kind requires step-up; NULL inherits the 6h default */ + stepUpMinAge?: IntervalInput; + /** Database that owns this resource (database-scoped isolation) */ + databaseId?: string; +} export interface UpdateFunctionGraphExecutionInput { clientMutationId?: string; /** Execution start timestamp */ @@ -2765,9 +5345,9 @@ export interface FunctionGraphExecutionPatch { graphId?: string; /** Parent function_invocations row (for metering) */ invocationId?: string; - /** Scope for multi-tenant isolation */ - databaseId?: string; - /** Target output boundary node name to resolve */ + /** Opaque store partition key for the global tier */ + scopeId?: string; + /** Target output boundary node name to resolve; NULL derives completion from the graph's graphOutput nodes */ outputNode?: string; /** Target output port name (default: value) */ outputPort?: string; @@ -2799,11 +5379,93 @@ export interface FunctionGraphExecutionPatch { maxPendingJobs?: number; /** Absolute deadline — execution fails if still running after this time */ timeoutAt?: string; + /** Timestamp of the last real progress (node enqueue, node output, completion) — drives the activity-debounced watchdog */ + lastProgressAt?: string; /** Machine-readable error code when status = failed */ errorCode?: string; /** Human-readable error description when status = failed */ errorMessage?: string; } +export interface UpdatePlatformFunctionDefinitionInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `PlatformFunctionDefinition` being updated. */ + platformFunctionDefinitionPatch: PlatformFunctionDefinitionPatch; +} +/** Represents an update to a `PlatformFunctionDefinition`. Fields that are set will be updated. */ +export interface PlatformFunctionDefinitionPatch { + id?: string; + createdAt?: string; + updatedAt?: string; + /** Function grouping scope (e.g. email, embed, chunk, custom) */ + scope?: string; + /** Function name within scope (e.g. send_verification_link, process_file_embedding) */ + name?: string; + /** Computed routing slug: scope:name (used by Knative job worker for dispatch) */ + taskIdentifier?: string; + /** Human-readable description of what this function does */ + description?: string; + /** Whether this function definition is published to the public catalog for direct authenticated invocation. Default false = internal-only via add_job() */ + isPublished?: boolean; + /** Non-public invocation channels this function may be exposed through (api, graph). Internal job dispatch is implicit and never listed. Default [] = job worker only. */ + accessChannels?: string[]; + /** Timestamp when this function was published. NULL means immediately published when is_published is true; future timestamps delay public visibility */ + publishedAt?: string; + /** Maximum retry attempts for the underlying job */ + maxAttempts?: number; + /** Job priority (lower = higher priority) */ + priority?: number; + /** Job queue name for serialization (e.g. email, ai, default) */ + queueName?: string; + /** Execution mode: http (Knative Service dispatch), inline (in-process in compute worker), handler (registered infrastructure handler), or sql (generic SQL dispatch via a trusted direct target or module-resolved function names) */ + runtime?: string; + /** Schema of the SQL function to invoke when runtime=sql (direct mode). NULL for module mode and other runtimes. */ + targetSchema?: string; + /** Name of the SQL function to invoke when runtime=sql (direct mode). NULL for module mode and other runtimes. */ + targetFunction?: string; + /** metaschema_modules_public table whose per-database row carries the generated function names when runtime=sql (module mode). NULL for direct mode and other runtimes. */ + moduleTable?: string; + /** 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; + /** Ordered bind-parameter mapping for runtime=sql: [{name, type}]. payload[name] is bound as $n::type. */ + payloadArgs?: unknown; + /** Docker image reference (e.g. ghcr.io/constructive-io/email-send-fn:latest). Required when runtime=http. NULL for inline functions. */ + image?: string; + /** Knative containerConcurrency — max concurrent requests per pod instance */ + concurrency?: number; + /** Minimum pod count for Knative autoscaling (minScale) */ + scaleMin?: number; + /** Maximum pod count for Knative autoscaling (maxScale) */ + scaleMax?: number; + /** Knative request timeout in seconds */ + timeoutSeconds?: number; + /** Container resource requests and limits: {requests: {memory, cpu}, limits: {memory, cpu}} */ + resources?: unknown; + /** Whether this function is a built-in platform function (synced from platform) vs user-created */ + isBuiltIn?: boolean; + /** Embedded secret requirements: array of (name, required, provider) tuples. provider is the integration slug this requirement belongs to, if any. */ + requiredSecrets?: ResourceRequirementInput[]; + /** Embedded config requirements: array of (name, required, provider) tuples. provider is the integration slug this requirement belongs to, if any. */ + 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. */ + integrations?: string[]; + /** Bucket keys this function needs (e.g. uploads, exports). Empty = no bucket requirements. */ + requiredBuckets?: string[]; + /** Inference model whitelist (e.g. gpt-4o, claude-3). Empty = no model requirements. */ + requiredModels?: string[]; + /** Data input ports: [{name, type, description?, optional?, multi?, schema?}] */ + inputs?: unknown; + /** Data output ports: [{name, type, description?, optional?, multi?, schema?}] */ + outputs?: unknown; + /** Configuration properties: [{name, type, default?, description?, required?, schema?}] */ + props?: unknown; + /** Whether this function has side effects and cannot be cached or memoized */ + volatile?: boolean; + /** Icon identifier for UI palette rendering (e.g. mail, database, code) */ + icon?: string; + /** Palette grouping category (e.g. email, data, ai, custom) */ + category?: string; +} export interface UpdateFunctionDefinitionInput { clientMutationId?: string; id: string; @@ -2823,16 +5485,30 @@ export interface FunctionDefinitionPatch { taskIdentifier?: string; /** Human-readable description of what this function does */ description?: string; - /** Whether this function can be called via function_invocations (public API). Default false = internal-only via add_job() */ - isInvocable?: boolean; + /** Whether this function definition is published to the public catalog for direct authenticated invocation. Default false = internal-only via add_job() */ + isPublished?: boolean; + /** Non-public invocation channels this function may be exposed through (api, graph). Internal job dispatch is implicit and never listed. Default [] = job worker only. */ + accessChannels?: string[]; + /** Timestamp when this function was published. NULL means immediately published when is_published is true; future timestamps delay public visibility */ + publishedAt?: string; /** Maximum retry attempts for the underlying job */ maxAttempts?: number; /** Job priority (lower = higher priority) */ priority?: number; /** Job queue name for serialization (e.g. email, ai, default) */ queueName?: string; - /** Execution mode: http (Knative Service dispatch) or inline (in-process in compute worker) */ + /** Execution mode: http (Knative Service dispatch), inline (in-process in compute worker), handler (registered infrastructure handler), or sql (generic SQL dispatch via a trusted direct target or module-resolved function names) */ runtime?: string; + /** Schema of the SQL function to invoke when runtime=sql (direct mode). NULL for module mode and other runtimes. */ + targetSchema?: string; + /** Name of the SQL function to invoke when runtime=sql (direct mode). NULL for module mode and other runtimes. */ + targetFunction?: string; + /** metaschema_modules_public table whose per-database row carries the generated function names when runtime=sql (module mode). NULL for direct mode and other runtimes. */ + moduleTable?: string; + /** 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; + /** Ordered bind-parameter mapping for runtime=sql: [{name, type}]. payload[name] is bound as $n::type. */ + payloadArgs?: unknown; /** Docker image reference (e.g. ghcr.io/constructive-io/email-send-fn:latest). Required when runtime=http. NULL for inline functions. */ image?: string; /** Knative containerConcurrency — max concurrent requests per pod instance */ @@ -2847,10 +5523,12 @@ export interface FunctionDefinitionPatch { resources?: unknown; /** Whether this function is a built-in platform function (synced from platform) vs user-created */ isBuiltIn?: boolean; - /** Embedded secret requirements: array of (name, required) tuples */ - requiredSecrets?: FunctionRequirementInput[]; - /** Embedded config requirements: array of (name, required) tuples */ - requiredConfigs?: FunctionRequirementInput[]; + /** Embedded secret requirements: array of (name, required, provider) tuples. provider is the integration slug this requirement belongs to, if any. */ + requiredSecrets?: ResourceRequirementInput[]; + /** Embedded config requirements: array of (name, required, provider) tuples. provider is the integration slug this requirement belongs to, if any. */ + 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. */ + integrations?: string[]; /** Bucket keys this function needs (e.g. uploads, exports). Empty = no bucket requirements. */ requiredBuckets?: string[]; /** Inference model whitelist (e.g. gpt-4o, claude-3). Empty = no model requirements. */ @@ -2867,6 +5545,20 @@ export interface FunctionDefinitionPatch { icon?: string; /** Palette grouping category (e.g. email, data, ai, custom) */ category?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId?: string; +} +export interface DeleteInfraRefInput { + clientMutationId?: string; + /** Unique ref identifier */ + id: string; + /** Opaque store partition key for the global tier */ + scopeId: string; +} +export interface DeleteInfraStoreInput { + clientMutationId?: string; + /** Unique store identifier */ + id: string; } export interface DeleteFunctionApiBindingInput { clientMutationId?: string; @@ -2876,20 +5568,55 @@ export interface DeleteFunctionGraphRefInput { clientMutationId?: string; /** Unique ref identifier */ id: string; - /** Database scope for multi-tenant isolation */ - databaseId: string; + /** Opaque store partition key for the global tier */ + scopeId: string; } export interface DeleteFunctionGraphStoreInput { clientMutationId?: string; /** Unique store identifier */ id: string; } +export interface DeletePlatformFunctionApiBindingInput { + clientMutationId?: string; + id: string; +} +export interface DeletePlatformResourceStatusCheckInput { + clientMutationId?: string; + /** Unique status check identifier */ + id: string; +} +export interface DeleteInfraObjectInput { + 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 DeleteFunctionGraphObjectInput { clientMutationId?: string; /** Content-addressed UUID v5 — deterministic hash of (data, kids, ktree) */ id: string; - /** Database scope for multi-tenant isolation */ - databaseId: string; + /** Opaque store partition key for the global tier */ + scopeId: string; +} +export interface DeletePlatformFunctionDeploymentEventInput { + clientMutationId?: string; + /** Event timestamp (partition key) */ + createdAt: string; + /** Unique event identifier */ + id: string; +} +export interface DeletePlatformResourceEventInput { + clientMutationId?: string; + /** Event timestamp (partition key) */ + createdAt: string; + /** Unique event identifier */ + id: string; +} +export interface DeleteResourceStatusCheckInput { + clientMutationId?: string; + /** Unique status check identifier */ + id: string; } export interface DeleteFunctionDeploymentEventInput { clientMutationId?: string; @@ -2898,7 +5625,7 @@ export interface DeleteFunctionDeploymentEventInput { /** Unique event identifier */ id: string; } -export interface DeleteOrgFunctionExecutionLogInput { +export interface DeletePlatformFunctionExecutionLogInput { clientMutationId?: string; /** Log entry timestamp (partition key) */ createdAt: string; @@ -2919,16 +5646,19 @@ export interface DeleteFunctionGraphExecutionOutputInput { /** Unique execution output identifier */ id: string; } -export interface DeleteFunctionGraphCommitInput { +export interface DeleteInfraCommitInput { clientMutationId?: string; /** Unique commit identifier */ id: string; - /** Database scope for multi-tenant isolation */ - databaseId: string; + /** Opaque store partition key for the global tier */ + scopeId: string; } -export interface DeleteSecretDefinitionInput { +export interface DeleteFunctionGraphCommitInput { clientMutationId?: string; + /** Unique commit identifier */ id: string; + /** Opaque store partition key for the global tier */ + scopeId: string; } export interface DeleteFunctionExecutionLogInput { clientMutationId?: string; @@ -2937,6 +5667,15 @@ export interface DeleteFunctionExecutionLogInput { /** Unique log entry identifier */ id: string; } +export interface DeleteDbPresetInput { + clientMutationId?: string; + /** Unique preset identifier */ + id: string; +} +export interface DeletePlatformNamespaceInput { + clientMutationId?: string; + id: string; +} export interface DeleteFunctionGraphInput { clientMutationId?: string; /** Unique graph identifier */ @@ -2949,11 +5688,11 @@ export interface DeleteFunctionGraphExecutionNodeStateInput { /** Unique node state identifier */ id: string; } -export interface DeletePlatformNamespaceInput { +export interface DeleteNamespaceInput { clientMutationId?: string; id: string; } -export interface DeleteOrgFunctionInvocationInput { +export interface DeletePlatformFunctionInvocationInput { clientMutationId?: string; /** Invocation creation timestamp (partition key) */ createdAt: string; @@ -2967,21 +5706,48 @@ export interface DeleteFunctionInvocationInput { /** Unique invocation identifier */ id: string; } -export interface DeleteResourceInput { +export interface DeletePlatformNamespaceEventInput { clientMutationId?: string; + /** Event timestamp (partition key) */ + createdAt: string; + /** Unique event identifier */ id: string; } -export interface DeletePlatformNamespaceEventInput { +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 DeletePlatformResourceInput { + clientMutationId?: string; + id: string; +} +export interface DeletePlatformFunctionDeploymentInput { + clientMutationId?: string; + id: string; +} +export interface DeleteResourceInput { + clientMutationId?: string; + id: string; +} +export interface DeletePlatformResourceDefinitionInput { + clientMutationId?: string; + id: string; +} export interface DeleteFunctionDeploymentInput { clientMutationId?: string; id: string; } +export interface DeleteResourceDefinitionInput { + clientMutationId?: string; + id: string; +} export interface DeleteFunctionGraphExecutionInput { clientMutationId?: string; /** Execution start timestamp */ @@ -2989,6 +5755,10 @@ export interface DeleteFunctionGraphExecutionInput { /** Unique execution identifier */ id: string; } +export interface DeletePlatformFunctionDefinitionInput { + clientMutationId?: string; + id: string; +} export interface DeleteFunctionDefinitionInput { clientMutationId?: string; id: string; @@ -3002,6 +5772,13 @@ export interface ProvisionBucketInput { */ ownerId?: string; } +/** A connection to a list of `InfraGetAllRecord` values. */ +export interface InfraGetAllConnection { + nodes: InfraGetAllRecord[]; + edges: InfraGetAllEdge[]; + pageInfo: PageInfo; + totalCount: number; +} /** A connection to a list of `GetAllRecord` values. */ export interface GetAllConnection { nodes: GetAllRecord[]; @@ -3009,6 +5786,20 @@ export interface GetAllConnection { pageInfo: PageInfo; totalCount: number; } +/** A connection to a list of `InfraRef` values. */ +export interface InfraRefConnection { + nodes: InfraRef[]; + edges: InfraRefEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `InfraStore` values. */ +export interface InfraStoreConnection { + nodes: InfraStore[]; + edges: InfraStoreEdge[]; + pageInfo: PageInfo; + totalCount: number; +} /** A connection to a list of `FunctionApiBinding` values. */ export interface FunctionApiBindingConnection { nodes: FunctionApiBinding[]; @@ -3030,6 +5821,41 @@ export interface FunctionGraphStoreConnection { pageInfo: PageInfo; totalCount: number; } +/** A connection to a list of `PlatformFunctionApiBinding` values. */ +export interface PlatformFunctionApiBindingConnection { + nodes: PlatformFunctionApiBinding[]; + edges: PlatformFunctionApiBindingEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `PlatformResourcesRequirementsState` values. */ +export interface PlatformResourcesRequirementsStateConnection { + nodes: PlatformResourcesRequirementsState[]; + edges: PlatformResourcesRequirementsStateEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `ResourcesRequirementsState` values. */ +export interface ResourcesRequirementsStateConnection { + nodes: ResourcesRequirementsState[]; + edges: ResourcesRequirementsStateEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `PlatformResourceStatusCheck` values. */ +export interface PlatformResourceStatusCheckConnection { + nodes: PlatformResourceStatusCheck[]; + edges: PlatformResourceStatusCheckEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `InfraObject` values. */ +export interface InfraObjectConnection { + nodes: InfraObject[]; + edges: InfraObjectEdge[]; + pageInfo: PageInfo; + totalCount: number; +} /** A connection to a list of `FunctionGraphObject` values. */ export interface FunctionGraphObjectConnection { nodes: FunctionGraphObject[]; @@ -3037,6 +5863,27 @@ export interface FunctionGraphObjectConnection { pageInfo: PageInfo; totalCount: number; } +/** A connection to a list of `PlatformFunctionDeploymentEvent` values. */ +export interface PlatformFunctionDeploymentEventConnection { + nodes: PlatformFunctionDeploymentEvent[]; + edges: PlatformFunctionDeploymentEventEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `PlatformResourceEvent` values. */ +export interface PlatformResourceEventConnection { + nodes: PlatformResourceEvent[]; + edges: PlatformResourceEventEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `ResourceStatusCheck` values. */ +export interface ResourceStatusCheckConnection { + nodes: ResourceStatusCheck[]; + edges: ResourceStatusCheckEdge[]; + pageInfo: PageInfo; + totalCount: number; +} /** A connection to a list of `FunctionDeploymentEvent` values. */ export interface FunctionDeploymentEventConnection { nodes: FunctionDeploymentEvent[]; @@ -3044,10 +5891,10 @@ export interface FunctionDeploymentEventConnection { pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `OrgFunctionExecutionLog` values. */ -export interface OrgFunctionExecutionLogConnection { - nodes: OrgFunctionExecutionLog[]; - edges: OrgFunctionExecutionLogEdge[]; +/** A connection to a list of `PlatformFunctionExecutionLog` values. */ +export interface PlatformFunctionExecutionLogConnection { + nodes: PlatformFunctionExecutionLog[]; + edges: PlatformFunctionExecutionLogEdge[]; pageInfo: PageInfo; totalCount: number; } @@ -3065,6 +5912,13 @@ export interface FunctionGraphExecutionOutputConnection { pageInfo: PageInfo; totalCount: number; } +/** A connection to a list of `InfraCommit` values. */ +export interface InfraCommitConnection { + nodes: InfraCommit[]; + edges: InfraCommitEdge[]; + pageInfo: PageInfo; + totalCount: number; +} /** A connection to a list of `FunctionGraphCommit` values. */ export interface FunctionGraphCommitConnection { nodes: FunctionGraphCommit[]; @@ -3072,13 +5926,6 @@ export interface FunctionGraphCommitConnection { pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `SecretDefinition` values. */ -export interface SecretDefinitionConnection { - nodes: SecretDefinition[]; - edges: SecretDefinitionEdge[]; - pageInfo: PageInfo; - totalCount: number; -} /** A connection to a list of `FunctionExecutionLog` values. */ export interface FunctionExecutionLogConnection { nodes: FunctionExecutionLog[]; @@ -3086,6 +5933,34 @@ export interface FunctionExecutionLogConnection { pageInfo: PageInfo; totalCount: number; } +/** A connection to a list of `PlatformResourcesResolvedRequirement` values. */ +export interface PlatformResourcesResolvedRequirementConnection { + nodes: PlatformResourcesResolvedRequirement[]; + edges: PlatformResourcesResolvedRequirementEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `ResourcesResolvedRequirement` values. */ +export interface ResourcesResolvedRequirementConnection { + nodes: ResourcesResolvedRequirement[]; + edges: ResourcesResolvedRequirementEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `DbPreset` values. */ +export interface DbPresetConnection { + nodes: DbPreset[]; + edges: DbPresetEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `PlatformNamespace` values. */ +export interface PlatformNamespaceConnection { + nodes: PlatformNamespace[]; + edges: PlatformNamespaceEdge[]; + pageInfo: PageInfo; + totalCount: number; +} /** A connection to a list of `FunctionGraph` values. */ export interface FunctionGraphConnection { nodes: FunctionGraph[]; @@ -3100,17 +5975,17 @@ export interface FunctionGraphExecutionNodeStateConnection { pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `PlatformNamespace` values. */ -export interface PlatformNamespaceConnection { - nodes: PlatformNamespace[]; - edges: PlatformNamespaceEdge[]; +/** A connection to a list of `Namespace` values. */ +export interface NamespaceConnection { + nodes: Namespace[]; + edges: NamespaceEdge[]; pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `OrgFunctionInvocation` values. */ -export interface OrgFunctionInvocationConnection { - nodes: OrgFunctionInvocation[]; - edges: OrgFunctionInvocationEdge[]; +/** A connection to a list of `PlatformFunctionInvocation` values. */ +export interface PlatformFunctionInvocationConnection { + nodes: PlatformFunctionInvocation[]; + edges: PlatformFunctionInvocationEdge[]; pageInfo: PageInfo; totalCount: number; } @@ -3121,6 +5996,41 @@ export interface FunctionInvocationConnection { pageInfo: PageInfo; totalCount: number; } +/** A connection to a list of `PlatformNamespaceEvent` values. */ +export interface PlatformNamespaceEventConnection { + nodes: PlatformNamespaceEvent[]; + edges: PlatformNamespaceEventEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `IntegrationProvider` values. */ +export interface IntegrationProviderConnection { + nodes: IntegrationProvider[]; + edges: IntegrationProviderEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `NamespaceEvent` values. */ +export interface NamespaceEventConnection { + nodes: NamespaceEvent[]; + edges: NamespaceEventEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `PlatformResource` values. */ +export interface PlatformResourceConnection { + nodes: PlatformResource[]; + edges: PlatformResourceEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `PlatformFunctionDeployment` values. */ +export interface PlatformFunctionDeploymentConnection { + nodes: PlatformFunctionDeployment[]; + edges: PlatformFunctionDeploymentEdge[]; + pageInfo: PageInfo; + totalCount: number; +} /** A connection to a list of `Resource` values. */ export interface ResourceConnection { nodes: Resource[]; @@ -3128,10 +6038,10 @@ export interface ResourceConnection { pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `PlatformNamespaceEvent` values. */ -export interface PlatformNamespaceEventConnection { - nodes: PlatformNamespaceEvent[]; - edges: PlatformNamespaceEventEdge[]; +/** A connection to a list of `PlatformResourceDefinition` values. */ +export interface PlatformResourceDefinitionConnection { + nodes: PlatformResourceDefinition[]; + edges: PlatformResourceDefinitionEdge[]; pageInfo: PageInfo; totalCount: number; } @@ -3142,6 +6052,13 @@ export interface FunctionDeploymentConnection { pageInfo: PageInfo; totalCount: number; } +/** A connection to a list of `ResourceDefinition` values. */ +export interface ResourceDefinitionConnection { + nodes: ResourceDefinition[]; + edges: ResourceDefinitionEdge[]; + pageInfo: PageInfo; + totalCount: number; +} /** A connection to a list of `FunctionGraphExecution` values. */ export interface FunctionGraphExecutionConnection { nodes: FunctionGraphExecution[]; @@ -3149,6 +6066,13 @@ export interface FunctionGraphExecutionConnection { pageInfo: PageInfo; totalCount: number; } +/** A connection to a list of `PlatformFunctionDefinition` values. */ +export interface PlatformFunctionDefinitionConnection { + nodes: PlatformFunctionDefinition[]; + edges: PlatformFunctionDefinitionEdge[]; + pageInfo: PageInfo; + totalCount: number; +} /** A connection to a list of `FunctionDefinition` values. */ export interface FunctionDefinitionConnection { nodes: FunctionDefinition[]; @@ -3164,15 +6088,22 @@ export interface ValidateFunctionGraphPayload { clientMutationId?: string | null; result?: boolean | null; } +export interface InfraInitEmptyRepoPayload { + clientMutationId?: string | null; +} export interface InitEmptyRepoPayload { clientMutationId?: string | null; } -export interface SetDataAtPathPayload { +export interface ImportDefinitionsPayload { + clientMutationId?: string | null; +} +export interface InfraSetDataAtPathPayload { clientMutationId?: string | null; result?: string | null; } -export interface ImportDefinitionsPayload { +export interface SetDataAtPathPayload { clientMutationId?: string | null; + result?: string | null; } export interface CopyGraphPayload { clientMutationId?: string | null; @@ -3206,6 +6137,10 @@ export interface AddNodePayload { clientMutationId?: string | null; result?: string | null; } +export interface InfraInsertNodeAtPathPayload { + clientMutationId?: string | null; + result?: string | null; +} export interface InsertNodeAtPathPayload { clientMutationId?: string | null; result?: string | null; @@ -3214,6 +6149,18 @@ export interface StartExecutionPayload { clientMutationId?: string | null; result?: string | null; } +export interface CreateInfraRefPayload { + clientMutationId?: string | null; + /** The `InfraRef` that was created by this mutation. */ + infraRef?: InfraRef | null; + infraRefEdge?: InfraRefEdge | null; +} +export interface CreateInfraStorePayload { + clientMutationId?: string | null; + /** The `InfraStore` that was created by this mutation. */ + infraStore?: InfraStore | null; + infraStoreEdge?: InfraStoreEdge | null; +} export interface CreateFunctionApiBindingPayload { clientMutationId?: string | null; /** The `FunctionApiBinding` that was created by this mutation. */ @@ -3232,23 +6179,59 @@ export interface CreateFunctionGraphStorePayload { functionGraphStore?: FunctionGraphStore | null; functionGraphStoreEdge?: FunctionGraphStoreEdge | null; } +export interface CreatePlatformFunctionApiBindingPayload { + clientMutationId?: string | null; + /** The `PlatformFunctionApiBinding` that was created by this mutation. */ + platformFunctionApiBinding?: PlatformFunctionApiBinding | null; + platformFunctionApiBindingEdge?: PlatformFunctionApiBindingEdge | null; +} +export interface CreatePlatformResourceStatusCheckPayload { + clientMutationId?: string | null; + /** The `PlatformResourceStatusCheck` that was created by this mutation. */ + platformResourceStatusCheck?: PlatformResourceStatusCheck | null; + platformResourceStatusCheckEdge?: PlatformResourceStatusCheckEdge | null; +} +export interface CreateInfraObjectPayload { + clientMutationId?: string | null; + /** The `InfraObject` that was created by this mutation. */ + infraObject?: InfraObject | null; + infraObjectEdge?: InfraObjectEdge | null; +} export interface CreateFunctionGraphObjectPayload { clientMutationId?: string | null; /** The `FunctionGraphObject` that was created by this mutation. */ functionGraphObject?: FunctionGraphObject | null; functionGraphObjectEdge?: FunctionGraphObjectEdge | null; } +export interface CreatePlatformFunctionDeploymentEventPayload { + clientMutationId?: string | null; + /** The `PlatformFunctionDeploymentEvent` that was created by this mutation. */ + platformFunctionDeploymentEvent?: PlatformFunctionDeploymentEvent | null; + platformFunctionDeploymentEventEdge?: PlatformFunctionDeploymentEventEdge | null; +} +export interface CreatePlatformResourceEventPayload { + clientMutationId?: string | null; + /** The `PlatformResourceEvent` that was created by this mutation. */ + platformResourceEvent?: PlatformResourceEvent | null; + platformResourceEventEdge?: PlatformResourceEventEdge | null; +} +export interface CreateResourceStatusCheckPayload { + clientMutationId?: string | null; + /** The `ResourceStatusCheck` that was created by this mutation. */ + resourceStatusCheck?: ResourceStatusCheck | null; + resourceStatusCheckEdge?: ResourceStatusCheckEdge | null; +} export interface CreateFunctionDeploymentEventPayload { clientMutationId?: string | null; /** The `FunctionDeploymentEvent` that was created by this mutation. */ functionDeploymentEvent?: FunctionDeploymentEvent | null; functionDeploymentEventEdge?: FunctionDeploymentEventEdge | null; } -export interface CreateOrgFunctionExecutionLogPayload { +export interface CreatePlatformFunctionExecutionLogPayload { clientMutationId?: string | null; - /** The `OrgFunctionExecutionLog` that was created by this mutation. */ - orgFunctionExecutionLog?: OrgFunctionExecutionLog | null; - orgFunctionExecutionLogEdge?: OrgFunctionExecutionLogEdge | null; + /** The `PlatformFunctionExecutionLog` that was created by this mutation. */ + platformFunctionExecutionLog?: PlatformFunctionExecutionLog | null; + platformFunctionExecutionLogEdge?: PlatformFunctionExecutionLogEdge | null; } export interface CreateResourceEventPayload { clientMutationId?: string | null; @@ -3262,29 +6245,29 @@ export interface CreateFunctionGraphExecutionOutputPayload { functionGraphExecutionOutput?: FunctionGraphExecutionOutput | null; functionGraphExecutionOutputEdge?: FunctionGraphExecutionOutputEdge | null; } +export interface CreateInfraCommitPayload { + clientMutationId?: string | null; + /** The `InfraCommit` that was created by this mutation. */ + infraCommit?: InfraCommit | null; + infraCommitEdge?: InfraCommitEdge | null; +} export interface CreateFunctionGraphCommitPayload { clientMutationId?: string | null; /** The `FunctionGraphCommit` that was created by this mutation. */ functionGraphCommit?: FunctionGraphCommit | null; functionGraphCommitEdge?: FunctionGraphCommitEdge | null; } -export interface CreateSecretDefinitionPayload { - clientMutationId?: string | null; - /** The `SecretDefinition` that was created by this mutation. */ - secretDefinition?: SecretDefinition | null; - secretDefinitionEdge?: SecretDefinitionEdge | null; -} export interface CreateFunctionExecutionLogPayload { clientMutationId?: string | null; /** The `FunctionExecutionLog` that was created by this mutation. */ functionExecutionLog?: FunctionExecutionLog | null; functionExecutionLogEdge?: FunctionExecutionLogEdge | null; } -export interface CreateFunctionGraphExecutionNodeStatePayload { +export interface CreateDbPresetPayload { clientMutationId?: string | null; - /** The `FunctionGraphExecutionNodeState` that was created by this mutation. */ - functionGraphExecutionNodeState?: FunctionGraphExecutionNodeState | null; - functionGraphExecutionNodeStateEdge?: FunctionGraphExecutionNodeStateEdge | null; + /** The `DbPreset` that was created by this mutation. */ + dbPreset?: DbPreset | null; + dbPresetEdge?: DbPresetEdge | null; } export interface CreatePlatformNamespacePayload { clientMutationId?: string | null; @@ -3292,11 +6275,23 @@ export interface CreatePlatformNamespacePayload { platformNamespace?: PlatformNamespace | null; platformNamespaceEdge?: PlatformNamespaceEdge | null; } -export interface CreateOrgFunctionInvocationPayload { +export interface CreateFunctionGraphExecutionNodeStatePayload { + clientMutationId?: string | null; + /** The `FunctionGraphExecutionNodeState` that was created by this mutation. */ + functionGraphExecutionNodeState?: FunctionGraphExecutionNodeState | null; + functionGraphExecutionNodeStateEdge?: FunctionGraphExecutionNodeStateEdge | null; +} +export interface CreateNamespacePayload { clientMutationId?: string | null; - /** The `OrgFunctionInvocation` that was created by this mutation. */ - orgFunctionInvocation?: OrgFunctionInvocation | null; - orgFunctionInvocationEdge?: OrgFunctionInvocationEdge | null; + /** The `Namespace` that was created by this mutation. */ + namespace?: Namespace | null; + namespaceEdge?: NamespaceEdge | null; +} +export interface CreatePlatformFunctionInvocationPayload { + clientMutationId?: string | null; + /** The `PlatformFunctionInvocation` that was created by this mutation. */ + platformFunctionInvocation?: PlatformFunctionInvocation | null; + platformFunctionInvocationEdge?: PlatformFunctionInvocationEdge | null; } export interface CreateFunctionInvocationPayload { clientMutationId?: string | null; @@ -3304,17 +6299,47 @@ export interface CreateFunctionInvocationPayload { functionInvocation?: FunctionInvocation | null; functionInvocationEdge?: FunctionInvocationEdge | null; } +export interface CreatePlatformNamespaceEventPayload { + clientMutationId?: string | null; + /** The `PlatformNamespaceEvent` that was created by this mutation. */ + platformNamespaceEvent?: PlatformNamespaceEvent | null; + platformNamespaceEventEdge?: PlatformNamespaceEventEdge | null; +} +export interface CreateIntegrationProviderPayload { + clientMutationId?: string | null; + /** The `IntegrationProvider` that was created by this mutation. */ + integrationProvider?: IntegrationProvider | null; + integrationProviderEdge?: IntegrationProviderEdge | null; +} +export interface CreateNamespaceEventPayload { + clientMutationId?: string | null; + /** The `NamespaceEvent` that was created by this mutation. */ + namespaceEvent?: NamespaceEvent | null; + namespaceEventEdge?: NamespaceEventEdge | null; +} +export interface CreatePlatformResourcePayload { + clientMutationId?: string | null; + /** The `PlatformResource` that was created by this mutation. */ + platformResource?: PlatformResource | null; + platformResourceEdge?: PlatformResourceEdge | null; +} +export interface CreatePlatformFunctionDeploymentPayload { + clientMutationId?: string | null; + /** The `PlatformFunctionDeployment` that was created by this mutation. */ + platformFunctionDeployment?: PlatformFunctionDeployment | null; + platformFunctionDeploymentEdge?: PlatformFunctionDeploymentEdge | null; +} export interface CreateResourcePayload { clientMutationId?: string | null; /** The `Resource` that was created by this mutation. */ resource?: Resource | null; resourceEdge?: ResourceEdge | null; } -export interface CreatePlatformNamespaceEventPayload { +export interface CreatePlatformResourceDefinitionPayload { clientMutationId?: string | null; - /** The `PlatformNamespaceEvent` that was created by this mutation. */ - platformNamespaceEvent?: PlatformNamespaceEvent | null; - platformNamespaceEventEdge?: PlatformNamespaceEventEdge | null; + /** The `PlatformResourceDefinition` that was created by this mutation. */ + platformResourceDefinition?: PlatformResourceDefinition | null; + platformResourceDefinitionEdge?: PlatformResourceDefinitionEdge | null; } export interface CreateFunctionDeploymentPayload { clientMutationId?: string | null; @@ -3322,18 +6347,42 @@ export interface CreateFunctionDeploymentPayload { functionDeployment?: FunctionDeployment | null; functionDeploymentEdge?: FunctionDeploymentEdge | null; } +export interface CreateResourceDefinitionPayload { + clientMutationId?: string | null; + /** The `ResourceDefinition` that was created by this mutation. */ + resourceDefinition?: ResourceDefinition | null; + resourceDefinitionEdge?: ResourceDefinitionEdge | null; +} export interface CreateFunctionGraphExecutionPayload { clientMutationId?: string | null; /** The `FunctionGraphExecution` that was created by this mutation. */ functionGraphExecution?: FunctionGraphExecution | null; functionGraphExecutionEdge?: FunctionGraphExecutionEdge | null; } +export interface CreatePlatformFunctionDefinitionPayload { + clientMutationId?: string | null; + /** The `PlatformFunctionDefinition` that was created by this mutation. */ + platformFunctionDefinition?: PlatformFunctionDefinition | null; + platformFunctionDefinitionEdge?: PlatformFunctionDefinitionEdge | null; +} export interface CreateFunctionDefinitionPayload { clientMutationId?: string | null; /** The `FunctionDefinition` that was created by this mutation. */ functionDefinition?: FunctionDefinition | null; functionDefinitionEdge?: FunctionDefinitionEdge | null; } +export interface UpdateInfraRefPayload { + clientMutationId?: string | null; + /** The `InfraRef` that was updated by this mutation. */ + infraRef?: InfraRef | null; + infraRefEdge?: InfraRefEdge | null; +} +export interface UpdateInfraStorePayload { + clientMutationId?: string | null; + /** The `InfraStore` that was updated by this mutation. */ + infraStore?: InfraStore | null; + infraStoreEdge?: InfraStoreEdge | null; +} export interface UpdateFunctionApiBindingPayload { clientMutationId?: string | null; /** The `FunctionApiBinding` that was updated by this mutation. */ @@ -3352,23 +6401,59 @@ export interface UpdateFunctionGraphStorePayload { functionGraphStore?: FunctionGraphStore | null; functionGraphStoreEdge?: FunctionGraphStoreEdge | null; } +export interface UpdatePlatformFunctionApiBindingPayload { + clientMutationId?: string | null; + /** The `PlatformFunctionApiBinding` that was updated by this mutation. */ + platformFunctionApiBinding?: PlatformFunctionApiBinding | null; + platformFunctionApiBindingEdge?: PlatformFunctionApiBindingEdge | null; +} +export interface UpdatePlatformResourceStatusCheckPayload { + clientMutationId?: string | null; + /** The `PlatformResourceStatusCheck` that was updated by this mutation. */ + platformResourceStatusCheck?: PlatformResourceStatusCheck | null; + platformResourceStatusCheckEdge?: PlatformResourceStatusCheckEdge | null; +} +export interface UpdateInfraObjectPayload { + clientMutationId?: string | null; + /** The `InfraObject` that was updated by this mutation. */ + infraObject?: InfraObject | null; + infraObjectEdge?: InfraObjectEdge | null; +} export interface UpdateFunctionGraphObjectPayload { clientMutationId?: string | null; /** The `FunctionGraphObject` that was updated by this mutation. */ functionGraphObject?: FunctionGraphObject | null; functionGraphObjectEdge?: FunctionGraphObjectEdge | null; } +export interface UpdatePlatformFunctionDeploymentEventPayload { + clientMutationId?: string | null; + /** The `PlatformFunctionDeploymentEvent` that was updated by this mutation. */ + platformFunctionDeploymentEvent?: PlatformFunctionDeploymentEvent | null; + platformFunctionDeploymentEventEdge?: PlatformFunctionDeploymentEventEdge | null; +} +export interface UpdatePlatformResourceEventPayload { + clientMutationId?: string | null; + /** The `PlatformResourceEvent` that was updated by this mutation. */ + platformResourceEvent?: PlatformResourceEvent | null; + platformResourceEventEdge?: PlatformResourceEventEdge | null; +} +export interface UpdateResourceStatusCheckPayload { + clientMutationId?: string | null; + /** The `ResourceStatusCheck` that was updated by this mutation. */ + resourceStatusCheck?: ResourceStatusCheck | null; + resourceStatusCheckEdge?: ResourceStatusCheckEdge | null; +} export interface UpdateFunctionDeploymentEventPayload { clientMutationId?: string | null; /** The `FunctionDeploymentEvent` that was updated by this mutation. */ functionDeploymentEvent?: FunctionDeploymentEvent | null; functionDeploymentEventEdge?: FunctionDeploymentEventEdge | null; } -export interface UpdateOrgFunctionExecutionLogPayload { +export interface UpdatePlatformFunctionExecutionLogPayload { clientMutationId?: string | null; - /** The `OrgFunctionExecutionLog` that was updated by this mutation. */ - orgFunctionExecutionLog?: OrgFunctionExecutionLog | null; - orgFunctionExecutionLogEdge?: OrgFunctionExecutionLogEdge | null; + /** The `PlatformFunctionExecutionLog` that was updated by this mutation. */ + platformFunctionExecutionLog?: PlatformFunctionExecutionLog | null; + platformFunctionExecutionLogEdge?: PlatformFunctionExecutionLogEdge | null; } export interface UpdateResourceEventPayload { clientMutationId?: string | null; @@ -3382,24 +6467,36 @@ export interface UpdateFunctionGraphExecutionOutputPayload { functionGraphExecutionOutput?: FunctionGraphExecutionOutput | null; functionGraphExecutionOutputEdge?: FunctionGraphExecutionOutputEdge | null; } +export interface UpdateInfraCommitPayload { + clientMutationId?: string | null; + /** The `InfraCommit` that was updated by this mutation. */ + infraCommit?: InfraCommit | null; + infraCommitEdge?: InfraCommitEdge | null; +} export interface UpdateFunctionGraphCommitPayload { clientMutationId?: string | null; /** The `FunctionGraphCommit` that was updated by this mutation. */ functionGraphCommit?: FunctionGraphCommit | null; functionGraphCommitEdge?: FunctionGraphCommitEdge | null; } -export interface UpdateSecretDefinitionPayload { - clientMutationId?: string | null; - /** The `SecretDefinition` that was updated by this mutation. */ - secretDefinition?: SecretDefinition | null; - secretDefinitionEdge?: SecretDefinitionEdge | null; -} export interface UpdateFunctionExecutionLogPayload { clientMutationId?: string | null; /** The `FunctionExecutionLog` that was updated by this mutation. */ functionExecutionLog?: FunctionExecutionLog | null; functionExecutionLogEdge?: FunctionExecutionLogEdge | null; } +export interface UpdateDbPresetPayload { + clientMutationId?: string | null; + /** The `DbPreset` that was updated by this mutation. */ + dbPreset?: DbPreset | null; + dbPresetEdge?: DbPresetEdge | null; +} +export interface UpdatePlatformNamespacePayload { + clientMutationId?: string | null; + /** The `PlatformNamespace` that was updated by this mutation. */ + platformNamespace?: PlatformNamespace | null; + platformNamespaceEdge?: PlatformNamespaceEdge | null; +} export interface UpdateFunctionGraphPayload { clientMutationId?: string | null; /** The `FunctionGraph` that was updated by this mutation. */ @@ -3412,17 +6509,17 @@ export interface UpdateFunctionGraphExecutionNodeStatePayload { functionGraphExecutionNodeState?: FunctionGraphExecutionNodeState | null; functionGraphExecutionNodeStateEdge?: FunctionGraphExecutionNodeStateEdge | null; } -export interface UpdatePlatformNamespacePayload { +export interface UpdateNamespacePayload { clientMutationId?: string | null; - /** The `PlatformNamespace` that was updated by this mutation. */ - platformNamespace?: PlatformNamespace | null; - platformNamespaceEdge?: PlatformNamespaceEdge | null; + /** The `Namespace` that was updated by this mutation. */ + namespace?: Namespace | null; + namespaceEdge?: NamespaceEdge | null; } -export interface UpdateOrgFunctionInvocationPayload { +export interface UpdatePlatformFunctionInvocationPayload { clientMutationId?: string | null; - /** The `OrgFunctionInvocation` that was updated by this mutation. */ - orgFunctionInvocation?: OrgFunctionInvocation | null; - orgFunctionInvocationEdge?: OrgFunctionInvocationEdge | null; + /** The `PlatformFunctionInvocation` that was updated by this mutation. */ + platformFunctionInvocation?: PlatformFunctionInvocation | null; + platformFunctionInvocationEdge?: PlatformFunctionInvocationEdge | null; } export interface UpdateFunctionInvocationPayload { clientMutationId?: string | null; @@ -3430,17 +6527,47 @@ export interface UpdateFunctionInvocationPayload { functionInvocation?: FunctionInvocation | null; functionInvocationEdge?: FunctionInvocationEdge | null; } +export interface UpdatePlatformNamespaceEventPayload { + clientMutationId?: string | null; + /** The `PlatformNamespaceEvent` that was updated by this mutation. */ + platformNamespaceEvent?: PlatformNamespaceEvent | null; + platformNamespaceEventEdge?: PlatformNamespaceEventEdge | null; +} +export interface UpdateIntegrationProviderPayload { + clientMutationId?: string | null; + /** The `IntegrationProvider` that was updated by this mutation. */ + integrationProvider?: IntegrationProvider | null; + integrationProviderEdge?: IntegrationProviderEdge | null; +} +export interface UpdateNamespaceEventPayload { + clientMutationId?: string | null; + /** The `NamespaceEvent` that was updated by this mutation. */ + namespaceEvent?: NamespaceEvent | null; + namespaceEventEdge?: NamespaceEventEdge | null; +} +export interface UpdatePlatformResourcePayload { + clientMutationId?: string | null; + /** The `PlatformResource` that was updated by this mutation. */ + platformResource?: PlatformResource | null; + platformResourceEdge?: PlatformResourceEdge | null; +} +export interface UpdatePlatformFunctionDeploymentPayload { + clientMutationId?: string | null; + /** The `PlatformFunctionDeployment` that was updated by this mutation. */ + platformFunctionDeployment?: PlatformFunctionDeployment | null; + platformFunctionDeploymentEdge?: PlatformFunctionDeploymentEdge | null; +} export interface UpdateResourcePayload { clientMutationId?: string | null; /** The `Resource` that was updated by this mutation. */ resource?: Resource | null; resourceEdge?: ResourceEdge | null; } -export interface UpdatePlatformNamespaceEventPayload { +export interface UpdatePlatformResourceDefinitionPayload { clientMutationId?: string | null; - /** The `PlatformNamespaceEvent` that was updated by this mutation. */ - platformNamespaceEvent?: PlatformNamespaceEvent | null; - platformNamespaceEventEdge?: PlatformNamespaceEventEdge | null; + /** The `PlatformResourceDefinition` that was updated by this mutation. */ + platformResourceDefinition?: PlatformResourceDefinition | null; + platformResourceDefinitionEdge?: PlatformResourceDefinitionEdge | null; } export interface UpdateFunctionDeploymentPayload { clientMutationId?: string | null; @@ -3448,18 +6575,42 @@ export interface UpdateFunctionDeploymentPayload { functionDeployment?: FunctionDeployment | null; functionDeploymentEdge?: FunctionDeploymentEdge | null; } +export interface UpdateResourceDefinitionPayload { + clientMutationId?: string | null; + /** The `ResourceDefinition` that was updated by this mutation. */ + resourceDefinition?: ResourceDefinition | null; + resourceDefinitionEdge?: ResourceDefinitionEdge | null; +} export interface UpdateFunctionGraphExecutionPayload { clientMutationId?: string | null; /** The `FunctionGraphExecution` that was updated by this mutation. */ functionGraphExecution?: FunctionGraphExecution | null; functionGraphExecutionEdge?: FunctionGraphExecutionEdge | null; } +export interface UpdatePlatformFunctionDefinitionPayload { + clientMutationId?: string | null; + /** The `PlatformFunctionDefinition` that was updated by this mutation. */ + platformFunctionDefinition?: PlatformFunctionDefinition | null; + platformFunctionDefinitionEdge?: PlatformFunctionDefinitionEdge | null; +} export interface UpdateFunctionDefinitionPayload { clientMutationId?: string | null; /** The `FunctionDefinition` that was updated by this mutation. */ functionDefinition?: FunctionDefinition | null; functionDefinitionEdge?: FunctionDefinitionEdge | null; } +export interface DeleteInfraRefPayload { + clientMutationId?: string | null; + /** The `InfraRef` that was deleted by this mutation. */ + infraRef?: InfraRef | null; + infraRefEdge?: InfraRefEdge | null; +} +export interface DeleteInfraStorePayload { + clientMutationId?: string | null; + /** The `InfraStore` that was deleted by this mutation. */ + infraStore?: InfraStore | null; + infraStoreEdge?: InfraStoreEdge | null; +} export interface DeleteFunctionApiBindingPayload { clientMutationId?: string | null; /** The `FunctionApiBinding` that was deleted by this mutation. */ @@ -3478,23 +6629,59 @@ export interface DeleteFunctionGraphStorePayload { functionGraphStore?: FunctionGraphStore | null; functionGraphStoreEdge?: FunctionGraphStoreEdge | null; } +export interface DeletePlatformFunctionApiBindingPayload { + clientMutationId?: string | null; + /** The `PlatformFunctionApiBinding` that was deleted by this mutation. */ + platformFunctionApiBinding?: PlatformFunctionApiBinding | null; + platformFunctionApiBindingEdge?: PlatformFunctionApiBindingEdge | null; +} +export interface DeletePlatformResourceStatusCheckPayload { + clientMutationId?: string | null; + /** The `PlatformResourceStatusCheck` that was deleted by this mutation. */ + platformResourceStatusCheck?: PlatformResourceStatusCheck | null; + platformResourceStatusCheckEdge?: PlatformResourceStatusCheckEdge | null; +} +export interface DeleteInfraObjectPayload { + clientMutationId?: string | null; + /** The `InfraObject` that was deleted by this mutation. */ + infraObject?: InfraObject | null; + infraObjectEdge?: InfraObjectEdge | null; +} export interface DeleteFunctionGraphObjectPayload { clientMutationId?: string | null; /** The `FunctionGraphObject` that was deleted by this mutation. */ functionGraphObject?: FunctionGraphObject | null; functionGraphObjectEdge?: FunctionGraphObjectEdge | null; } +export interface DeletePlatformFunctionDeploymentEventPayload { + clientMutationId?: string | null; + /** The `PlatformFunctionDeploymentEvent` that was deleted by this mutation. */ + platformFunctionDeploymentEvent?: PlatformFunctionDeploymentEvent | null; + platformFunctionDeploymentEventEdge?: PlatformFunctionDeploymentEventEdge | null; +} +export interface DeletePlatformResourceEventPayload { + clientMutationId?: string | null; + /** The `PlatformResourceEvent` that was deleted by this mutation. */ + platformResourceEvent?: PlatformResourceEvent | null; + platformResourceEventEdge?: PlatformResourceEventEdge | null; +} +export interface DeleteResourceStatusCheckPayload { + clientMutationId?: string | null; + /** The `ResourceStatusCheck` that was deleted by this mutation. */ + resourceStatusCheck?: ResourceStatusCheck | null; + resourceStatusCheckEdge?: ResourceStatusCheckEdge | null; +} export interface DeleteFunctionDeploymentEventPayload { clientMutationId?: string | null; /** The `FunctionDeploymentEvent` that was deleted by this mutation. */ functionDeploymentEvent?: FunctionDeploymentEvent | null; functionDeploymentEventEdge?: FunctionDeploymentEventEdge | null; } -export interface DeleteOrgFunctionExecutionLogPayload { +export interface DeletePlatformFunctionExecutionLogPayload { clientMutationId?: string | null; - /** The `OrgFunctionExecutionLog` that was deleted by this mutation. */ - orgFunctionExecutionLog?: OrgFunctionExecutionLog | null; - orgFunctionExecutionLogEdge?: OrgFunctionExecutionLogEdge | null; + /** The `PlatformFunctionExecutionLog` that was deleted by this mutation. */ + platformFunctionExecutionLog?: PlatformFunctionExecutionLog | null; + platformFunctionExecutionLogEdge?: PlatformFunctionExecutionLogEdge | null; } export interface DeleteResourceEventPayload { clientMutationId?: string | null; @@ -3508,24 +6695,36 @@ export interface DeleteFunctionGraphExecutionOutputPayload { functionGraphExecutionOutput?: FunctionGraphExecutionOutput | null; functionGraphExecutionOutputEdge?: FunctionGraphExecutionOutputEdge | null; } +export interface DeleteInfraCommitPayload { + clientMutationId?: string | null; + /** The `InfraCommit` that was deleted by this mutation. */ + infraCommit?: InfraCommit | null; + infraCommitEdge?: InfraCommitEdge | null; +} export interface DeleteFunctionGraphCommitPayload { clientMutationId?: string | null; /** The `FunctionGraphCommit` that was deleted by this mutation. */ functionGraphCommit?: FunctionGraphCommit | null; functionGraphCommitEdge?: FunctionGraphCommitEdge | null; } -export interface DeleteSecretDefinitionPayload { - clientMutationId?: string | null; - /** The `SecretDefinition` that was deleted by this mutation. */ - secretDefinition?: SecretDefinition | null; - secretDefinitionEdge?: SecretDefinitionEdge | null; -} export interface DeleteFunctionExecutionLogPayload { clientMutationId?: string | null; /** The `FunctionExecutionLog` that was deleted by this mutation. */ functionExecutionLog?: FunctionExecutionLog | null; functionExecutionLogEdge?: FunctionExecutionLogEdge | null; } +export interface DeleteDbPresetPayload { + clientMutationId?: string | null; + /** The `DbPreset` that was deleted by this mutation. */ + dbPreset?: DbPreset | null; + dbPresetEdge?: DbPresetEdge | null; +} +export interface DeletePlatformNamespacePayload { + clientMutationId?: string | null; + /** The `PlatformNamespace` that was deleted by this mutation. */ + platformNamespace?: PlatformNamespace | null; + platformNamespaceEdge?: PlatformNamespaceEdge | null; +} export interface DeleteFunctionGraphPayload { clientMutationId?: string | null; /** The `FunctionGraph` that was deleted by this mutation. */ @@ -3538,17 +6737,17 @@ export interface DeleteFunctionGraphExecutionNodeStatePayload { functionGraphExecutionNodeState?: FunctionGraphExecutionNodeState | null; functionGraphExecutionNodeStateEdge?: FunctionGraphExecutionNodeStateEdge | null; } -export interface DeletePlatformNamespacePayload { +export interface DeleteNamespacePayload { clientMutationId?: string | null; - /** The `PlatformNamespace` that was deleted by this mutation. */ - platformNamespace?: PlatformNamespace | null; - platformNamespaceEdge?: PlatformNamespaceEdge | null; + /** The `Namespace` that was deleted by this mutation. */ + namespace?: Namespace | null; + namespaceEdge?: NamespaceEdge | null; } -export interface DeleteOrgFunctionInvocationPayload { +export interface DeletePlatformFunctionInvocationPayload { clientMutationId?: string | null; - /** The `OrgFunctionInvocation` that was deleted by this mutation. */ - orgFunctionInvocation?: OrgFunctionInvocation | null; - orgFunctionInvocationEdge?: OrgFunctionInvocationEdge | null; + /** The `PlatformFunctionInvocation` that was deleted by this mutation. */ + platformFunctionInvocation?: PlatformFunctionInvocation | null; + platformFunctionInvocationEdge?: PlatformFunctionInvocationEdge | null; } export interface DeleteFunctionInvocationPayload { clientMutationId?: string | null; @@ -3556,17 +6755,47 @@ export interface DeleteFunctionInvocationPayload { functionInvocation?: FunctionInvocation | null; functionInvocationEdge?: FunctionInvocationEdge | null; } +export interface DeletePlatformNamespaceEventPayload { + clientMutationId?: string | null; + /** The `PlatformNamespaceEvent` that was deleted by this mutation. */ + platformNamespaceEvent?: PlatformNamespaceEvent | null; + platformNamespaceEventEdge?: PlatformNamespaceEventEdge | null; +} +export interface DeleteIntegrationProviderPayload { + clientMutationId?: string | null; + /** The `IntegrationProvider` that was deleted by this mutation. */ + integrationProvider?: IntegrationProvider | null; + integrationProviderEdge?: IntegrationProviderEdge | null; +} +export interface DeleteNamespaceEventPayload { + clientMutationId?: string | null; + /** The `NamespaceEvent` that was deleted by this mutation. */ + namespaceEvent?: NamespaceEvent | null; + namespaceEventEdge?: NamespaceEventEdge | null; +} +export interface DeletePlatformResourcePayload { + clientMutationId?: string | null; + /** The `PlatformResource` that was deleted by this mutation. */ + platformResource?: PlatformResource | null; + platformResourceEdge?: PlatformResourceEdge | null; +} +export interface DeletePlatformFunctionDeploymentPayload { + clientMutationId?: string | null; + /** The `PlatformFunctionDeployment` that was deleted by this mutation. */ + platformFunctionDeployment?: PlatformFunctionDeployment | null; + platformFunctionDeploymentEdge?: PlatformFunctionDeploymentEdge | null; +} export interface DeleteResourcePayload { clientMutationId?: string | null; /** The `Resource` that was deleted by this mutation. */ resource?: Resource | null; resourceEdge?: ResourceEdge | null; } -export interface DeletePlatformNamespaceEventPayload { +export interface DeletePlatformResourceDefinitionPayload { clientMutationId?: string | null; - /** The `PlatformNamespaceEvent` that was deleted by this mutation. */ - platformNamespaceEvent?: PlatformNamespaceEvent | null; - platformNamespaceEventEdge?: PlatformNamespaceEventEdge | null; + /** The `PlatformResourceDefinition` that was deleted by this mutation. */ + platformResourceDefinition?: PlatformResourceDefinition | null; + platformResourceDefinitionEdge?: PlatformResourceDefinitionEdge | null; } export interface DeleteFunctionDeploymentPayload { clientMutationId?: string | null; @@ -3574,12 +6803,24 @@ export interface DeleteFunctionDeploymentPayload { functionDeployment?: FunctionDeployment | null; functionDeploymentEdge?: FunctionDeploymentEdge | null; } +export interface DeleteResourceDefinitionPayload { + clientMutationId?: string | null; + /** The `ResourceDefinition` that was deleted by this mutation. */ + resourceDefinition?: ResourceDefinition | null; + resourceDefinitionEdge?: ResourceDefinitionEdge | null; +} export interface DeleteFunctionGraphExecutionPayload { clientMutationId?: string | null; /** The `FunctionGraphExecution` that was deleted by this mutation. */ functionGraphExecution?: FunctionGraphExecution | null; functionGraphExecutionEdge?: FunctionGraphExecutionEdge | null; } +export interface DeletePlatformFunctionDefinitionPayload { + clientMutationId?: string | null; + /** The `PlatformFunctionDefinition` that was deleted by this mutation. */ + platformFunctionDefinition?: PlatformFunctionDefinition | null; + platformFunctionDefinitionEdge?: PlatformFunctionDefinitionEdge | null; +} export interface DeleteFunctionDefinitionPayload { clientMutationId?: string | null; /** The `FunctionDefinition` that was deleted by this mutation. */ @@ -3600,11 +6841,11 @@ export interface ProvisionBucketPayload { /** Error message if provisioning failed */ error?: string | null; } -/** A `GetAllRecord` edge in the connection. */ -export interface GetAllEdge { +/** A `InfraGetAllRecord` edge in the connection. */ +export interface InfraGetAllEdge { cursor?: string | null; - /** The `GetAllRecord` at the end of the edge. */ - node?: GetAllRecord | null; + /** The `InfraGetAllRecord` at the end of the edge. */ + node?: InfraGetAllRecord | null; } /** Information about pagination in a connection. */ export interface PageInfo { @@ -3617,6 +6858,24 @@ export interface PageInfo { /** When paginating forwards, the cursor to continue. */ endCursor?: string | null; } +/** A `GetAllRecord` edge in the connection. */ +export interface GetAllEdge { + cursor?: string | null; + /** The `GetAllRecord` at the end of the edge. */ + node?: GetAllRecord | null; +} +/** A `InfraRef` edge in the connection. */ +export interface InfraRefEdge { + cursor?: string | null; + /** The `InfraRef` at the end of the edge. */ + node?: InfraRef | null; +} +/** A `InfraStore` edge in the connection. */ +export interface InfraStoreEdge { + cursor?: string | null; + /** The `InfraStore` at the end of the edge. */ + node?: InfraStore | null; +} /** A `FunctionApiBinding` edge in the connection. */ export interface FunctionApiBindingEdge { cursor?: string | null; @@ -3635,23 +6894,71 @@ export interface FunctionGraphStoreEdge { /** The `FunctionGraphStore` at the end of the edge. */ node?: FunctionGraphStore | null; } +/** A `PlatformFunctionApiBinding` edge in the connection. */ +export interface PlatformFunctionApiBindingEdge { + cursor?: string | null; + /** The `PlatformFunctionApiBinding` at the end of the edge. */ + node?: PlatformFunctionApiBinding | null; +} +/** A `PlatformResourcesRequirementsState` edge in the connection. */ +export interface PlatformResourcesRequirementsStateEdge { + cursor?: string | null; + /** The `PlatformResourcesRequirementsState` at the end of the edge. */ + node?: PlatformResourcesRequirementsState | null; +} +/** A `ResourcesRequirementsState` edge in the connection. */ +export interface ResourcesRequirementsStateEdge { + cursor?: string | null; + /** The `ResourcesRequirementsState` at the end of the edge. */ + node?: ResourcesRequirementsState | null; +} +/** A `PlatformResourceStatusCheck` edge in the connection. */ +export interface PlatformResourceStatusCheckEdge { + cursor?: string | null; + /** The `PlatformResourceStatusCheck` at the end of the edge. */ + node?: PlatformResourceStatusCheck | null; +} +/** A `InfraObject` edge in the connection. */ +export interface InfraObjectEdge { + cursor?: string | null; + /** The `InfraObject` at the end of the edge. */ + node?: InfraObject | null; +} /** A `FunctionGraphObject` edge in the connection. */ export interface FunctionGraphObjectEdge { cursor?: string | null; /** The `FunctionGraphObject` at the end of the edge. */ node?: FunctionGraphObject | null; } +/** A `PlatformFunctionDeploymentEvent` edge in the connection. */ +export interface PlatformFunctionDeploymentEventEdge { + cursor?: string | null; + /** The `PlatformFunctionDeploymentEvent` at the end of the edge. */ + node?: PlatformFunctionDeploymentEvent | null; +} +/** A `PlatformResourceEvent` edge in the connection. */ +export interface PlatformResourceEventEdge { + cursor?: string | null; + /** The `PlatformResourceEvent` at the end of the edge. */ + node?: PlatformResourceEvent | null; +} +/** A `ResourceStatusCheck` edge in the connection. */ +export interface ResourceStatusCheckEdge { + cursor?: string | null; + /** The `ResourceStatusCheck` at the end of the edge. */ + node?: ResourceStatusCheck | null; +} /** A `FunctionDeploymentEvent` edge in the connection. */ export interface FunctionDeploymentEventEdge { cursor?: string | null; /** The `FunctionDeploymentEvent` at the end of the edge. */ node?: FunctionDeploymentEvent | null; } -/** A `OrgFunctionExecutionLog` edge in the connection. */ -export interface OrgFunctionExecutionLogEdge { +/** A `PlatformFunctionExecutionLog` edge in the connection. */ +export interface PlatformFunctionExecutionLogEdge { cursor?: string | null; - /** The `OrgFunctionExecutionLog` at the end of the edge. */ - node?: OrgFunctionExecutionLog | null; + /** The `PlatformFunctionExecutionLog` at the end of the edge. */ + node?: PlatformFunctionExecutionLog | null; } /** A `ResourceEvent` edge in the connection. */ export interface ResourceEventEdge { @@ -3665,24 +6972,48 @@ export interface FunctionGraphExecutionOutputEdge { /** The `FunctionGraphExecutionOutput` at the end of the edge. */ node?: FunctionGraphExecutionOutput | null; } +/** A `InfraCommit` edge in the connection. */ +export interface InfraCommitEdge { + cursor?: string | null; + /** The `InfraCommit` at the end of the edge. */ + node?: InfraCommit | null; +} /** A `FunctionGraphCommit` edge in the connection. */ export interface FunctionGraphCommitEdge { cursor?: string | null; /** The `FunctionGraphCommit` at the end of the edge. */ node?: FunctionGraphCommit | null; } -/** A `SecretDefinition` edge in the connection. */ -export interface SecretDefinitionEdge { - cursor?: string | null; - /** The `SecretDefinition` at the end of the edge. */ - node?: SecretDefinition | null; -} /** A `FunctionExecutionLog` edge in the connection. */ export interface FunctionExecutionLogEdge { cursor?: string | null; /** The `FunctionExecutionLog` at the end of the edge. */ node?: FunctionExecutionLog | null; } +/** A `PlatformResourcesResolvedRequirement` edge in the connection. */ +export interface PlatformResourcesResolvedRequirementEdge { + cursor?: string | null; + /** The `PlatformResourcesResolvedRequirement` at the end of the edge. */ + node?: PlatformResourcesResolvedRequirement | null; +} +/** A `ResourcesResolvedRequirement` edge in the connection. */ +export interface ResourcesResolvedRequirementEdge { + cursor?: string | null; + /** The `ResourcesResolvedRequirement` at the end of the edge. */ + node?: ResourcesResolvedRequirement | 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 `PlatformNamespace` edge in the connection. */ +export interface PlatformNamespaceEdge { + cursor?: string | null; + /** The `PlatformNamespace` at the end of the edge. */ + node?: PlatformNamespace | null; +} /** A `FunctionGraph` edge in the connection. */ export interface FunctionGraphEdge { cursor?: string | null; @@ -3695,17 +7026,17 @@ export interface FunctionGraphExecutionNodeStateEdge { /** The `FunctionGraphExecutionNodeState` at the end of the edge. */ node?: FunctionGraphExecutionNodeState | null; } -/** A `PlatformNamespace` edge in the connection. */ -export interface PlatformNamespaceEdge { +/** A `Namespace` edge in the connection. */ +export interface NamespaceEdge { cursor?: string | null; - /** The `PlatformNamespace` at the end of the edge. */ - node?: PlatformNamespace | null; + /** The `Namespace` at the end of the edge. */ + node?: Namespace | null; } -/** A `OrgFunctionInvocation` edge in the connection. */ -export interface OrgFunctionInvocationEdge { +/** A `PlatformFunctionInvocation` edge in the connection. */ +export interface PlatformFunctionInvocationEdge { cursor?: string | null; - /** The `OrgFunctionInvocation` at the end of the edge. */ - node?: OrgFunctionInvocation | null; + /** The `PlatformFunctionInvocation` at the end of the edge. */ + node?: PlatformFunctionInvocation | null; } /** A `FunctionInvocation` edge in the connection. */ export interface FunctionInvocationEdge { @@ -3713,17 +7044,47 @@ export interface FunctionInvocationEdge { /** The `FunctionInvocation` at the end of the edge. */ node?: FunctionInvocation | null; } +/** A `PlatformNamespaceEvent` edge in the connection. */ +export interface PlatformNamespaceEventEdge { + cursor?: string | null; + /** The `PlatformNamespaceEvent` at the end of the edge. */ + node?: PlatformNamespaceEvent | null; +} +/** A `IntegrationProvider` edge in the connection. */ +export interface IntegrationProviderEdge { + cursor?: string | null; + /** The `IntegrationProvider` at the end of the edge. */ + node?: IntegrationProvider | null; +} +/** A `NamespaceEvent` edge in the connection. */ +export interface NamespaceEventEdge { + cursor?: string | null; + /** The `NamespaceEvent` at the end of the edge. */ + node?: NamespaceEvent | null; +} +/** A `PlatformResource` edge in the connection. */ +export interface PlatformResourceEdge { + cursor?: string | null; + /** The `PlatformResource` at the end of the edge. */ + node?: PlatformResource | null; +} +/** A `PlatformFunctionDeployment` edge in the connection. */ +export interface PlatformFunctionDeploymentEdge { + cursor?: string | null; + /** The `PlatformFunctionDeployment` at the end of the edge. */ + node?: PlatformFunctionDeployment | null; +} /** A `Resource` edge in the connection. */ export interface ResourceEdge { cursor?: string | null; /** The `Resource` at the end of the edge. */ node?: Resource | null; } -/** A `PlatformNamespaceEvent` edge in the connection. */ -export interface PlatformNamespaceEventEdge { +/** A `PlatformResourceDefinition` edge in the connection. */ +export interface PlatformResourceDefinitionEdge { cursor?: string | null; - /** The `PlatformNamespaceEvent` at the end of the edge. */ - node?: PlatformNamespaceEvent | null; + /** The `PlatformResourceDefinition` at the end of the edge. */ + node?: PlatformResourceDefinition | null; } /** A `FunctionDeployment` edge in the connection. */ export interface FunctionDeploymentEdge { @@ -3731,12 +7092,24 @@ export interface FunctionDeploymentEdge { /** The `FunctionDeployment` at the end of the edge. */ node?: FunctionDeployment | null; } +/** A `ResourceDefinition` edge in the connection. */ +export interface ResourceDefinitionEdge { + cursor?: string | null; + /** The `ResourceDefinition` at the end of the edge. */ + node?: ResourceDefinition | null; +} /** A `FunctionGraphExecution` edge in the connection. */ export interface FunctionGraphExecutionEdge { cursor?: string | null; /** The `FunctionGraphExecution` at the end of the edge. */ node?: FunctionGraphExecution | null; } +/** A `PlatformFunctionDefinition` edge in the connection. */ +export interface PlatformFunctionDefinitionEdge { + cursor?: string | null; + /** The `PlatformFunctionDefinition` at the end of the edge. */ + node?: PlatformFunctionDefinition | null; +} /** A `FunctionDefinition` edge in the connection. */ export interface FunctionDefinitionEdge { cursor?: string | null; diff --git a/sdk/constructive-react/src/compute/types.ts b/sdk/constructive-react/src/compute/types.ts index 53ce86fc57..f373afef2e 100644 --- a/sdk/constructive-react/src/compute/types.ts +++ b/sdk/constructive-react/src/compute/types.ts @@ -4,11 +4,30 @@ * DO NOT EDIT - changes will be overwritten */ export type Base64EncodedBinary = unknown; -export type FunctionRequirement = unknown; +export type ConstructiveInternalTypeImage = unknown; +export type ResourceRequirement = unknown; +export interface InfraGetAllRecord { + path: string[] | null; + data: unknown | null; +} export interface GetAllRecord { path: string[] | null; data: unknown | null; } +export interface InfraRef { + id: string | null; + name: string | null; + scopeId: string | null; + storeId: string | null; + commitId: string | null; +} +export interface InfraStore { + id: string | null; + name: string | null; + scopeId: string | null; + hash: string | null; + createdAt: string | null; +} export interface FunctionApiBinding { id: string | null; functionDefinitionId: string | null; @@ -16,17 +35,66 @@ export interface FunctionApiBinding { alias: string | null; config: unknown | null; } -export interface FunctionDeployment { +export interface FunctionGraphRef { id: string | null; + name: string | null; + scopeId: string | null; + storeId: string | null; + commitId: string | null; +} +export interface FunctionGraphStore { + id: string | null; + name: string | null; + scopeId: string | null; + hash: string | null; createdAt: string | null; - updatedAt: string | null; +} +export interface PlatformFunctionApiBinding { + id: string | null; functionDefinitionId: string | null; + apiId: string | null; + alias: string | null; + config: unknown | null; +} +export interface PlatformResourcesRequirementsState { + resourceId: string | null; + slug: string | null; + secretsHash: string | null; + configHash: string | null; + requirementsHash: string | null; + secretsObjectName: string | null; + configObjectName: string | null; +} +export interface ResourcesRequirementsState { + resourceId: string | null; + slug: string | null; + secretsHash: string | null; + configHash: string | null; + requirementsHash: string | null; + secretsObjectName: string | null; + configObjectName: string | null; +} +export interface PlatformResourceStatusCheck { + id: string | null; + resourceId: string | null; + requestedBy: string | null; + requestedAt: string | null; + completedAt: string | null; + status: string | null; + result: unknown | null; +} +export interface PlatformFunctionDeployment { + id: string | null; + createdAt: string | null; + updatedAt: string | null; namespaceId: string | null; status: string | null; serviceUrl: string | null; serviceName: string | null; revision: number | null; image: string | null; + imageVersion: string | null; + handlerName: string | null; concurrency: number | null; scaleMin: number | null; scaleMax: number | null; @@ -37,9 +105,8 @@ export interface FunctionDeployment { errorCount: number | null; labels: unknown | null; annotations: unknown | null; - databaseId: string | null; } -export interface Resource { +export interface PlatformResource { id: string | null; createdAt: string | null; updatedAt: string | null; @@ -56,30 +123,141 @@ export interface Resource { errorCount: number | null; labels: unknown | null; annotations: unknown | null; - databaseId: string | null; + requiredSecrets: ResourceRequirement[] | null; + requiredConfigs: ResourceRequirement[] | null; + integrations: string[] | null; + resourceDefinitionId: string | null; } -export interface FunctionGraphRef { +export interface PlatformResourceDefinition { id: string | null; + createdAt: string | null; + updatedAt: string | null; + createdBy: string | null; + updatedBy: string | null; + namespaceId: string | null; + kind: string | null; name: string | null; - databaseId: string | null; - storeId: string | null; - commitId: string | null; + slug: string | null; + description: string | null; + defaultSpec: unknown | null; + requiredSecrets: ResourceRequirement[] | null; + requiredConfigs: ResourceRequirement[] | null; + integrations: string[] | null; + labels: unknown | null; + annotations: unknown | null; + stepUpMinAge: string | null; } -export interface FunctionGraphStore { +export interface InfraObject { id: string | null; - name: string | null; - databaseId: string | null; - hash: string | null; + scopeId: string | null; + kids: string[] | null; + ktree: string[] | null; + data: unknown | null; createdAt: string | null; } export interface FunctionGraphObject { id: string | null; - databaseId: string | null; + scopeId: string | null; kids: string[] | null; ktree: string[] | null; data: unknown | null; createdAt: string | null; } +export interface PlatformFunctionDeploymentEvent { + createdAt: string | null; + id: string | null; + deploymentId: string | null; + eventType: string | null; + actorId: string | null; + message: string | null; + metadata: unknown | null; +} +export interface PlatformResourceEvent { + createdAt: string | null; + id: string | null; + resourceId: string | null; + eventType: string | null; + actorId: string | null; + message: string | null; + metadata: unknown | null; +} +export interface ResourceStatusCheck { + id: string | null; + resourceId: string | null; + databaseId: string | null; + requestedBy: string | null; + requestedAt: string | null; + completedAt: string | null; + status: string | null; + result: unknown | null; +} +export interface FunctionDeployment { + id: string | null; + createdAt: string | null; + updatedAt: string | null; + namespaceId: string | null; + status: string | null; + serviceUrl: string | null; + serviceName: string | null; + revision: number | null; + image: string | null; + imageVersion: string | null; + handlerName: string | null; + concurrency: number | null; + scaleMin: number | null; + scaleMax: number | null; + timeoutSeconds: number | null; + resources: unknown | null; + lastError: string | null; + lastErrorAt: string | null; + errorCount: number | null; + labels: unknown | null; + annotations: unknown | null; + databaseId: string | null; +} +export interface Resource { + id: string | null; + createdAt: string | null; + updatedAt: string | null; + createdBy: string | null; + updatedBy: string | null; + namespaceId: string | null; + kind: string | null; + name: string | null; + slug: string | null; + spec: unknown | null; + status: string | null; + statusObserved: unknown | null; + lastError: string | null; + errorCount: number | null; + labels: unknown | null; + annotations: unknown | null; + databaseId: string | null; + requiredSecrets: ResourceRequirement[] | null; + requiredConfigs: ResourceRequirement[] | null; + integrations: string[] | null; + resourceDefinitionId: string | null; +} +export interface ResourceDefinition { + id: string | null; + createdAt: string | null; + updatedAt: string | null; + createdBy: string | null; + updatedBy: string | null; + namespaceId: string | null; + kind: string | null; + name: string | null; + slug: string | null; + description: string | null; + defaultSpec: unknown | null; + requiredSecrets: ResourceRequirement[] | null; + requiredConfigs: ResourceRequirement[] | null; + integrations: string[] | null; + labels: unknown | null; + annotations: unknown | null; + stepUpMinAge: string | null; + databaseId: string | null; +} export interface FunctionDeploymentEvent { createdAt: string | null; id: string | null; @@ -90,7 +268,7 @@ export interface FunctionDeploymentEvent { metadata: unknown | null; databaseId: string | null; } -export interface OrgFunctionExecutionLog { +export interface PlatformFunctionExecutionLog { createdAt: string | null; id: string | null; invocationId: string | null; @@ -113,14 +291,14 @@ export interface ResourceEvent { export interface FunctionGraphExecutionOutput { createdAt: string | null; id: string | null; - databaseId: string | null; + scopeId: string | null; hash: Base64EncodedBinary | null; data: unknown | null; } -export interface FunctionGraphCommit { +export interface InfraCommit { id: string | null; message: string | null; - databaseId: string | null; + scopeId: string | null; storeId: string | null; parentIds: string[] | null; authorId: string | null; @@ -128,16 +306,16 @@ export interface FunctionGraphCommit { treeId: string | null; date: string | null; } -export interface SecretDefinition { +export interface FunctionGraphCommit { id: string | null; - createdAt: string | null; - updatedAt: string | null; - name: string | null; - description: string | null; - isBuiltIn: boolean | null; - labels: unknown | null; - annotations: unknown | null; - databaseId: string | null; + message: string | null; + scopeId: string | null; + storeId: string | null; + parentIds: string[] | null; + authorId: string | null; + committerId: string | null; + treeId: string | null; + date: string | null; } export interface FunctionExecutionLog { createdAt: string | null; @@ -150,9 +328,60 @@ export interface FunctionExecutionLog { actorId: string | null; databaseId: string | null; } +export interface PlatformResourcesResolvedRequirement { + resourceId: string | null; + slug: string | null; + namespaceId: string | null; + requirementKind: string | null; + name: string | null; + required: boolean | null; + atomId: string | null; + present: boolean | null; + secretsObjectName: string | null; + configObjectName: string | null; +} +export interface ResourcesResolvedRequirement { + resourceId: string | null; + slug: string | null; + namespaceId: string | null; + requirementKind: string | null; + name: string | null; + required: boolean | null; + atomId: string | null; + present: boolean | null; + secretsObjectName: string | null; + configObjectName: string | null; +} +export interface DbPreset { + id: string | null; + storeId: string | null; + slug: string | null; + definition: unknown | null; + commitId: string | null; + modulesHash: string | null; + label: string | null; + description: string | null; + active: boolean | null; + createdAt: string | null; + updatedAt: string | null; +} +export interface PlatformNamespace { + id: string | null; + createdAt: string | null; + updatedAt: string | null; + name: string | null; + namespaceName: string | null; + description: string | null; + isActive: boolean | null; + status: string | null; + lastError: string | null; + labels: unknown | null; + annotations: unknown | null; + isManaged: boolean | null; +} export interface FunctionGraph { id: string | null; - databaseId: string | null; + scopeId: string | null; storeId: string | null; context: string | null; name: string | null; @@ -168,7 +397,7 @@ export interface FunctionGraphExecutionNodeState { createdAt: string | null; id: string | null; executionId: string | null; - databaseId: string | null; + scopeId: string | null; nodeName: string | null; nodePath: string[] | null; status: string | null; @@ -178,7 +407,7 @@ export interface FunctionGraphExecutionNodeState { errorMessage: string | null; outputId: string | null; } -export interface PlatformNamespace { +export interface Namespace { id: string | null; createdAt: string | null; updatedAt: string | null; @@ -186,14 +415,14 @@ export interface PlatformNamespace { namespaceName: string | null; description: string | null; isActive: boolean | null; + status: string | null; + lastError: string | null; labels: unknown | null; annotations: unknown | null; databaseId: string | null; - sourceDatabaseId: string | null; - sourceScope: string | null; isManaged: boolean | null; } -export interface OrgFunctionInvocation { +export interface PlatformFunctionInvocation { createdAt: string | null; id: string | null; actorId: string | null; @@ -241,6 +470,36 @@ export interface PlatformNamespaceEvent { networkEgressBytes: string | null; podCount: number | null; metrics: unknown | null; +} +export interface IntegrationProvider { + id: string | null; + createdAt: string | null; + updatedAt: string | null; + slug: string | null; + name: string | null; + description: string | null; + category: string | null; + icon: string | null; + logo: ConstructiveInternalTypeImage | null; + brand: unknown | null; + requiredSecrets: ResourceRequirement[] | null; + requiredConfigs: ResourceRequirement[] | null; +} +export interface NamespaceEvent { + createdAt: string | null; + id: string | null; + namespaceId: string | null; + eventType: string | null; + actorId: string | null; + message: string | null; + metadata: unknown | null; + cpuMillicores: number | null; + memoryBytes: string | null; + storageBytes: string | null; + networkIngressBytes: string | null; + networkEgressBytes: string | null; + podCount: number | null; + metrics: unknown | null; databaseId: string | null; } export interface FunctionGraphExecution { @@ -248,7 +507,7 @@ export interface FunctionGraphExecution { id: string | null; graphId: string | null; invocationId: string | null; - databaseId: string | null; + scopeId: string | null; outputNode: string | null; outputPort: string | null; status: string | null; @@ -265,9 +524,49 @@ export interface FunctionGraphExecution { maxTicks: number | null; maxPendingJobs: number | null; timeoutAt: string | null; + lastProgressAt: string | null; errorCode: string | null; errorMessage: string | null; } +export interface PlatformFunctionDefinition { + id: string | null; + createdAt: string | null; + updatedAt: string | null; + scope: string | null; + name: string | null; + taskIdentifier: string | null; + description: string | null; + isPublished: boolean | null; + accessChannels: string[] | null; + publishedAt: string | null; + maxAttempts: number | null; + priority: number | null; + queueName: string | null; + runtime: string | null; + targetSchema: string | null; + targetFunction: string | null; + moduleTable: string | null; + functionColumns: unknown | null; + payloadArgs: unknown | null; + image: string | null; + concurrency: number | null; + scaleMin: number | null; + scaleMax: number | null; + timeoutSeconds: number | null; + resources: unknown | null; + isBuiltIn: boolean | null; + requiredSecrets: ResourceRequirement[] | null; + requiredConfigs: ResourceRequirement[] | null; + integrations: string[] | null; + requiredBuckets: string[] | null; + requiredModels: string[] | null; + inputs: unknown | null; + outputs: unknown | null; + props: unknown | null; + volatile: boolean | null; + icon: string | null; + category: string | null; +} export interface FunctionDefinition { id: string | null; createdAt: string | null; @@ -276,11 +575,18 @@ export interface FunctionDefinition { name: string | null; taskIdentifier: string | null; description: string | null; - isInvocable: boolean | null; + isPublished: boolean | null; + accessChannels: string[] | null; + publishedAt: string | null; maxAttempts: number | null; priority: number | null; queueName: string | null; runtime: string | null; + targetSchema: string | null; + targetFunction: string | null; + moduleTable: string | null; + functionColumns: unknown | null; + payloadArgs: unknown | null; image: string | null; concurrency: number | null; scaleMin: number | null; @@ -288,8 +594,9 @@ export interface FunctionDefinition { timeoutSeconds: number | null; resources: unknown | null; isBuiltIn: boolean | null; - requiredSecrets: FunctionRequirement[] | null; - requiredConfigs: FunctionRequirement[] | null; + requiredSecrets: ResourceRequirement[] | null; + requiredConfigs: ResourceRequirement[] | null; + integrations: string[] | null; requiredBuckets: string[] | null; requiredModels: string[] | null; inputs: unknown | null; @@ -298,6 +605,7 @@ export interface FunctionDefinition { volatile: boolean | null; icon: string | null; category: string | null; + databaseId: string | null; } export interface StringFilter { isNull?: boolean; diff --git a/sdk/constructive-react/src/config/README.md b/sdk/constructive-react/src/config/README.md index 1048f8f6a4..a8740b4797 100644 --- a/sdk/constructive-react/src/config/README.md +++ b/sdk/constructive-react/src/config/README.md @@ -8,9 +8,9 @@ ## Overview -- **Tables:** 2 +- **Tables:** 5 - **Custom queries:** 0 -- **Custom mutations:** 9 +- **Custom mutations:** 13 **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 cf58c9f3b8..aeee20ffc1 100644 --- a/sdk/constructive-react/src/config/hooks/README.md +++ b/sdk/constructive-react/src/config/hooks/README.md @@ -32,24 +32,43 @@ function App() { | Hook | Type | Description | |------|------|-------------| -| `usePlatformConfigDefinitionsQuery` | Query | Registry of valid config keys — declares which config entries the platform recognizes | -| `usePlatformConfigDefinitionQuery` | Query | Registry of valid config keys — declares which config entries the platform recognizes | -| `useCreatePlatformConfigDefinitionMutation` | Mutation | Registry of valid config keys — declares which config entries the platform recognizes | -| `useUpdatePlatformConfigDefinitionMutation` | Mutation | Registry of valid config keys — declares which config entries the platform recognizes | -| `useDeletePlatformConfigDefinitionMutation` | Mutation | Registry of valid config keys — declares which config entries the platform recognizes | -| `usePlatformConfigsQuery` | Query | App-level plaintext key-value config store (like a k8s ConfigMap); admin-only, fully CRUD-exposed | -| `usePlatformConfigQuery` | Query | App-level plaintext key-value config store (like a k8s ConfigMap); admin-only, fully CRUD-exposed | -| `useCreatePlatformConfigMutation` | Mutation | App-level plaintext key-value config store (like a k8s ConfigMap); admin-only, fully CRUD-exposed | -| `useUpdatePlatformConfigMutation` | Mutation | App-level plaintext key-value config store (like a k8s ConfigMap); admin-only, fully CRUD-exposed | -| `useDeletePlatformConfigMutation` | Mutation | App-level plaintext key-value config store (like a k8s ConfigMap); admin-only, fully CRUD-exposed | +| `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 | +| `useConfigsQuery` | Query | Namespace-backed plaintext key-value config store (like a k8s ConfigMap); admin-only, fully CRUD-exposed | +| `useConfigQuery` | Query | Namespace-backed plaintext key-value config store (like a k8s ConfigMap); admin-only, fully CRUD-exposed | +| `useCreateConfigMutation` | Mutation | Namespace-backed plaintext key-value config store (like a k8s ConfigMap); admin-only, fully CRUD-exposed | +| `useUpdateConfigMutation` | Mutation | Namespace-backed plaintext key-value config store (like a k8s ConfigMap); admin-only, fully CRUD-exposed | +| `useDeleteConfigMutation` | Mutation | Namespace-backed plaintext key-value config store (like a k8s ConfigMap); admin-only, fully CRUD-exposed | +| `usePlatformInternalSecretsQuery` | Query | List all platformInternalSecrets | +| `usePlatformInternalSecretQuery` | Query | Get one platformInternalSecret | +| `useCreatePlatformInternalSecretMutation` | Mutation | Create a platformInternalSecret | +| `useUpdatePlatformInternalSecretMutation` | Mutation | Update a platformInternalSecret | +| `useDeletePlatformInternalSecretMutation` | Mutation | Delete a platformInternalSecret | +| `usePlatformSecretsQuery` | Query | List all platformSecrets | +| `usePlatformSecretQuery` | Query | Get one platformSecret | +| `useCreatePlatformSecretMutation` | Mutation | Create a platformSecret | +| `useUpdatePlatformSecretMutation` | Mutation | Update a platformSecret | +| `useDeletePlatformSecretMutation` | Mutation | Delete a platformSecret | +| `useSecretsQuery` | Query | List all secrets | +| `useSecretQuery` | Query | Get one secret | +| `useCreateSecretMutation` | Mutation | Create a secret | +| `useUpdateSecretMutation` | Mutation | Update a secret | +| `useDeleteSecretMutation` | Mutation | Delete a secret | +| `usePlatformInternalSecretsDelMutation` | Mutation | platformInternalSecretsDel | | `usePlatformSecretsDelMutation` | Mutation | platformSecretsDel | -| `useOrgSecretsDelMutation` | Mutation | orgSecretsDel | +| `use_secretsDelMutation` | Mutation | _secretsDel | +| `usePlatformInternalSecretsRemoveArrayMutation` | Mutation | platformInternalSecretsRemoveArray | | `usePlatformSecretsRemoveArrayMutation` | Mutation | platformSecretsRemoveArray | -| `useOrgSecretsRemoveArrayMutation` | Mutation | orgSecretsRemoveArray | +| `use_secretsRemoveArrayMutation` | Mutation | _secretsRemoveArray | +| `usePlatformInternalSecretsRotateMutation` | Mutation | platformInternalSecretsRotate | +| `usePlatformInternalSecretsSetMutation` | Mutation | platformInternalSecretsSet | | `usePlatformSecretsRotateMutation` | Mutation | platformSecretsRotate | +| `use_secretsRotateMutation` | Mutation | _secretsRotate | | `usePlatformSecretsSetMutation` | Mutation | platformSecretsSet | -| `useOrgSecretsRotateMutation` | Mutation | orgSecretsRotate | -| `useOrgSecretsSetMutation` | Mutation | orgSecretsSet | +| `use_secretsSetMutation` | Mutation | _secretsSet | | `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, @@ -57,50 +76,124 @@ and lifecycle settings. | ## Table Hooks -### PlatformConfigDefinition +### PlatformConfig ```typescript -// List all platformConfigDefinitions -const { data, isLoading } = usePlatformConfigDefinitionsQuery({ - selection: { fields: { id: true, createdAt: true, updatedAt: true, name: true, description: true, defaultValue: true, isBuiltIn: true, labels: true, annotations: true } }, +// List all platformConfigs +const { data, isLoading } = usePlatformConfigsQuery({ + selection: { fields: { id: true, namespaceId: true, name: true, provider: true, value: true, labels: true, annotations: true, description: true, createdAt: true, updatedAt: true, expiresAt: true } }, }); -// Get one platformConfigDefinition -const { data: item } = usePlatformConfigDefinitionQuery({ +// Get one platformConfig +const { data: item } = usePlatformConfigQuery({ id: '', - selection: { fields: { id: true, createdAt: true, updatedAt: true, name: true, description: true, defaultValue: true, isBuiltIn: true, labels: true, annotations: true } }, + selection: { fields: { id: true, namespaceId: true, name: true, provider: true, value: true, labels: true, annotations: true, description: true, createdAt: true, updatedAt: true, expiresAt: true } }, }); -// Create a platformConfigDefinition -const { mutate: create } = useCreatePlatformConfigDefinitionMutation({ +// Create a platformConfig +const { mutate: create } = useCreatePlatformConfigMutation({ selection: { fields: { id: true } }, }); -create({ name: '', description: '', defaultValue: '', isBuiltIn: '', labels: '', annotations: '' }); +create({ namespaceId: '', name: '', provider: '', value: '', labels: '', annotations: '', description: '', expiresAt: '' }); ``` -### PlatformConfig +### Config ```typescript -// List all platformConfigs -const { data, isLoading } = usePlatformConfigsQuery({ - selection: { fields: { id: true, namespaceId: true, name: true, value: true, labels: true, annotations: true, description: true, createdAt: true, updatedAt: true, expiresAt: true } }, +// List all configs +const { data, isLoading } = useConfigsQuery({ + selection: { fields: { id: true, namespaceId: true, databaseId: true, name: true, provider: true, value: true, labels: true, annotations: true, description: true, createdAt: true, updatedAt: true, expiresAt: true } }, }); -// Get one platformConfig -const { data: item } = usePlatformConfigQuery({ +// Get one config +const { data: item } = useConfigQuery({ id: '', - selection: { fields: { id: true, namespaceId: true, name: true, value: true, labels: true, annotations: true, description: true, createdAt: true, updatedAt: true, expiresAt: true } }, + selection: { fields: { id: true, namespaceId: true, databaseId: true, name: true, provider: true, value: true, labels: true, annotations: true, description: true, createdAt: true, updatedAt: true, expiresAt: true } }, }); -// Create a platformConfig -const { mutate: create } = useCreatePlatformConfigMutation({ +// Create a config +const { mutate: create } = useCreateConfigMutation({ selection: { fields: { id: true } }, }); -create({ namespaceId: '', name: '', value: '', labels: '', annotations: '', description: '', expiresAt: '' }); +create({ namespaceId: '', databaseId: '', name: '', provider: '', value: '', labels: '', annotations: '', description: '', expiresAt: '' }); +``` + +### PlatformInternalSecret + +```typescript +// List all platformInternalSecrets +const { data, isLoading } = usePlatformInternalSecretsQuery({ + selection: { fields: { id: true, name: true, namespaceId: true, description: true, labels: true, annotations: true, createdAt: true, updatedAt: true, rotatedAt: true, retiredAt: true } }, +}); + +// Get one platformInternalSecret +const { data: item } = usePlatformInternalSecretQuery({ + id: '', + selection: { fields: { id: true, name: true, namespaceId: true, description: true, labels: true, annotations: true, createdAt: true, updatedAt: true, rotatedAt: true, retiredAt: true } }, +}); + +// Create a platformInternalSecret +const { mutate: create } = useCreatePlatformInternalSecretMutation({ + selection: { fields: { id: true } }, +}); +create({ name: '', namespaceId: '', description: '', labels: '', annotations: '', rotatedAt: '', retiredAt: '' }); +``` + +### PlatformSecret + +```typescript +// List all platformSecrets +const { data, isLoading } = usePlatformSecretsQuery({ + selection: { fields: { id: true, name: true, provider: true, namespaceId: true, description: true, labels: true, annotations: true, createdAt: true, updatedAt: true, rotatedAt: true, retiredAt: true } }, +}); + +// Get one platformSecret +const { data: item } = usePlatformSecretQuery({ + id: '', + selection: { fields: { id: true, name: true, provider: true, namespaceId: true, description: true, labels: true, annotations: true, createdAt: true, updatedAt: true, rotatedAt: true, retiredAt: true } }, +}); + +// Create a platformSecret +const { mutate: create } = useCreatePlatformSecretMutation({ + selection: { fields: { id: true } }, +}); +create({ name: '', provider: '', namespaceId: '', description: '', labels: '', annotations: '', rotatedAt: '', retiredAt: '' }); +``` + +### Secret + +```typescript +// List all secrets +const { data, isLoading } = useSecretsQuery({ + selection: { fields: { databaseId: true, id: true, name: true, provider: true, namespaceId: true, description: true, labels: true, annotations: true, createdAt: true, updatedAt: true, rotatedAt: true, retiredAt: true } }, +}); + +// Get one secret +const { data: item } = useSecretQuery({ + id: '', + selection: { fields: { databaseId: true, id: true, name: true, provider: true, namespaceId: true, description: true, labels: true, annotations: true, createdAt: true, updatedAt: true, rotatedAt: true, retiredAt: true } }, +}); + +// Create a secret +const { mutate: create } = useCreateSecretMutation({ + selection: { fields: { id: true } }, +}); +create({ databaseId: '', name: '', provider: '', namespaceId: '', description: '', labels: '', annotations: '', rotatedAt: '', retiredAt: '' }); ``` ## Custom Operation Hooks +### `usePlatformInternalSecretsDelMutation` + +platformInternalSecretsDel + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | PlatformInternalSecretsDelInput (required) | + ### `usePlatformSecretsDelMutation` platformSecretsDel @@ -112,16 +205,27 @@ platformSecretsDel |----------|------| | `input` | PlatformSecretsDelInput (required) | -### `useOrgSecretsDelMutation` +### `use_secretsDelMutation` + +_secretsDel + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | _SecretsDelInput (required) | -orgSecretsDel +### `usePlatformInternalSecretsRemoveArrayMutation` + +platformInternalSecretsRemoveArray - **Type:** mutation - **Arguments:** | Argument | Type | |----------|------| - | `input` | OrgSecretsDelInput (required) | + | `input` | PlatformInternalSecretsRemoveArrayInput (required) | ### `usePlatformSecretsRemoveArrayMutation` @@ -134,16 +238,38 @@ platformSecretsRemoveArray |----------|------| | `input` | PlatformSecretsRemoveArrayInput (required) | -### `useOrgSecretsRemoveArrayMutation` +### `use_secretsRemoveArrayMutation` + +_secretsRemoveArray -orgSecretsRemoveArray +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | _SecretsRemoveArrayInput (required) | + +### `usePlatformInternalSecretsRotateMutation` + +platformInternalSecretsRotate - **Type:** mutation - **Arguments:** | Argument | Type | |----------|------| - | `input` | OrgSecretsRemoveArrayInput (required) | + | `input` | PlatformInternalSecretsRotateInput (required) | + +### `usePlatformInternalSecretsSetMutation` + +platformInternalSecretsSet + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | PlatformInternalSecretsSetInput (required) | ### `usePlatformSecretsRotateMutation` @@ -156,38 +282,38 @@ platformSecretsRotate |----------|------| | `input` | PlatformSecretsRotateInput (required) | -### `usePlatformSecretsSetMutation` +### `use_secretsRotateMutation` -platformSecretsSet +_secretsRotate - **Type:** mutation - **Arguments:** | Argument | Type | |----------|------| - | `input` | PlatformSecretsSetInput (required) | + | `input` | _SecretsRotateInput (required) | -### `useOrgSecretsRotateMutation` +### `usePlatformSecretsSetMutation` -orgSecretsRotate +platformSecretsSet - **Type:** mutation - **Arguments:** | Argument | Type | |----------|------| - | `input` | OrgSecretsRotateInput (required) | + | `input` | PlatformSecretsSetInput (required) | -### `useOrgSecretsSetMutation` +### `use_secretsSetMutation` -orgSecretsSet +_secretsSet - **Type:** mutation - **Arguments:** | Argument | Type | |----------|------| - | `input` | OrgSecretsSetInput (required) | + | `input` | _SecretsSetInput (required) | ### `useProvisionBucketMutation` diff --git a/sdk/constructive-react/src/config/hooks/index.ts b/sdk/constructive-react/src/config/hooks/index.ts index faacb942c8..9e368b788c 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: PlatformConfigDefinition, PlatformConfig + * Tables: PlatformConfig, Config, 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 2d85346ef1..df2dc01177 100644 --- a/sdk/constructive-react/src/config/hooks/invalidation.ts +++ b/sdk/constructive-react/src/config/hooks/invalidation.ts @@ -14,7 +14,13 @@ // ============================================================================ import type { QueryClient } from '@tanstack/react-query'; -import { platformConfigDefinitionKeys, platformConfigKeys } from './query-keys'; +import { + platformConfigKeys, + configKeys, + platformInternalSecretKeys, + platformSecretKeys, + secretKeys, +} from './query-keys'; /** // ============================================================================ // Invalidation Helpers @@ -35,38 +41,83 @@ import { platformConfigDefinitionKeys, platformConfigKeys } from './query-keys'; * ``` */ export const invalidate = { - /** Invalidate platformConfigDefinition queries */ platformConfigDefinition: { - /** Invalidate all platformConfigDefinition queries */ all: (queryClient: QueryClient) => + /** Invalidate platformConfig queries */ platformConfig: { + /** Invalidate all platformConfig queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: platformConfigDefinitionKeys.all, + queryKey: platformConfigKeys.all, }), - /** Invalidate platformConfigDefinition list queries */ lists: (queryClient: QueryClient) => + /** Invalidate platformConfig list queries */ lists: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: platformConfigDefinitionKeys.lists(), + queryKey: platformConfigKeys.lists(), }), - /** Invalidate a specific platformConfigDefinition */ detail: ( + /** Invalidate a specific platformConfig */ detail: ( queryClient: QueryClient, id: string | number ) => queryClient.invalidateQueries({ - queryKey: platformConfigDefinitionKeys.detail(id), + queryKey: platformConfigKeys.detail(id), }), }, - /** Invalidate platformConfig queries */ platformConfig: { - /** Invalidate all platformConfig queries */ all: (queryClient: QueryClient) => + /** Invalidate config queries */ config: { + /** Invalidate all config queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: platformConfigKeys.all, + queryKey: configKeys.all, }), - /** Invalidate platformConfig list queries */ lists: (queryClient: QueryClient) => + /** Invalidate config list queries */ lists: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: platformConfigKeys.lists(), + queryKey: configKeys.lists(), }), - /** Invalidate a specific platformConfig */ detail: ( + /** Invalidate a specific config */ detail: (queryClient: QueryClient, id: string | number) => + queryClient.invalidateQueries({ + queryKey: configKeys.detail(id), + }), + }, + /** Invalidate platformInternalSecret queries */ platformInternalSecret: { + /** Invalidate all platformInternalSecret queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: platformInternalSecretKeys.all, + }), + /** Invalidate platformInternalSecret list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: platformInternalSecretKeys.lists(), + }), + /** Invalidate a specific platformInternalSecret */ detail: ( queryClient: QueryClient, id: string | number ) => queryClient.invalidateQueries({ - queryKey: platformConfigKeys.detail(id), + queryKey: platformInternalSecretKeys.detail(id), + }), + }, + /** Invalidate platformSecret queries */ platformSecret: { + /** Invalidate all platformSecret queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: platformSecretKeys.all, + }), + /** Invalidate platformSecret list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: platformSecretKeys.lists(), + }), + /** Invalidate a specific platformSecret */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: platformSecretKeys.detail(id), + }), + }, + /** Invalidate secret queries */ secret: { + /** Invalidate all secret queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: secretKeys.all, + }), + /** Invalidate secret list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: secretKeys.lists(), + }), + /** Invalidate a specific secret */ detail: (queryClient: QueryClient, id: string | number) => + queryClient.invalidateQueries({ + queryKey: secretKeys.detail(id), }), }, } as const; @@ -82,20 +133,38 @@ export const invalidate = { * instead of just invalidating (which would trigger a refetch). */ export const remove = { - /** Remove platformConfigDefinition from cache */ platformConfigDefinition: ( + /** Remove platformConfig from cache */ platformConfig: ( queryClient: QueryClient, id: string | number ) => { queryClient.removeQueries({ - queryKey: platformConfigDefinitionKeys.detail(id), + queryKey: platformConfigKeys.detail(id), }); }, - /** Remove platformConfig from cache */ platformConfig: ( + /** Remove config from cache */ config: (queryClient: QueryClient, id: string | number) => { + queryClient.removeQueries({ + queryKey: configKeys.detail(id), + }); + }, + /** Remove platformInternalSecret from cache */ platformInternalSecret: ( queryClient: QueryClient, id: string | number ) => { queryClient.removeQueries({ - queryKey: platformConfigKeys.detail(id), + queryKey: platformInternalSecretKeys.detail(id), + }); + }, + /** Remove platformSecret from cache */ platformSecret: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: platformSecretKeys.detail(id), + }); + }, + /** Remove secret from cache */ secret: (queryClient: QueryClient, id: string | number) => { + queryClient.removeQueries({ + queryKey: secretKeys.detail(id), }); }, } as const; diff --git a/sdk/constructive-react/src/config/hooks/mutation-keys.ts b/sdk/constructive-react/src/config/hooks/mutation-keys.ts index 28cb9967b5..8c222d16bb 100644 --- a/sdk/constructive-react/src/config/hooks/mutation-keys.ts +++ b/sdk/constructive-react/src/config/hooks/mutation-keys.ts @@ -18,18 +18,6 @@ // Entity Mutation Keys // ============================================================================ -export const platformConfigDefinitionMutationKeys = { - /** All platformConfigDefinition mutation keys */ all: [ - 'mutation', - 'platformconfigdefinition', - ] as const, - /** Create platformConfigDefinition mutation key */ create: () => - ['mutation', 'platformconfigdefinition', 'create'] as const, - /** Update platformConfigDefinition mutation key */ update: (id: string | number) => - ['mutation', 'platformconfigdefinition', 'update', id] as const, - /** Delete platformConfigDefinition mutation key */ delete: (id: string | number) => - ['mutation', 'platformconfigdefinition', 'delete', id] as const, -} as const; export const platformConfigMutationKeys = { /** All platformConfig mutation keys */ all: ['mutation', 'platformconfig'] as const, /** Create platformConfig mutation key */ create: () => @@ -39,46 +27,107 @@ export const platformConfigMutationKeys = { /** Delete platformConfig mutation key */ delete: (id: string | number) => ['mutation', 'platformconfig', 'delete', id] as const, } as const; +export const configMutationKeys = { + /** All config mutation keys */ all: ['mutation', 'config'] as const, + /** Create config mutation key */ create: () => ['mutation', 'config', 'create'] as const, + /** Update config mutation key */ update: (id: string | number) => + ['mutation', 'config', 'update', id] as const, + /** Delete config mutation key */ delete: (id: string | number) => + ['mutation', 'config', 'delete', id] as const, +} as const; +export const platformInternalSecretMutationKeys = { + /** All platformInternalSecret mutation keys */ all: [ + 'mutation', + 'platforminternalsecret', + ] as const, + /** Create platformInternalSecret mutation key */ create: () => + ['mutation', 'platforminternalsecret', 'create'] as const, + /** Update platformInternalSecret mutation key */ update: (id: string | number) => + ['mutation', 'platforminternalsecret', 'update', id] as const, + /** Delete platformInternalSecret mutation key */ delete: (id: string | number) => + ['mutation', 'platforminternalsecret', 'delete', id] as const, +} as const; +export const platformSecretMutationKeys = { + /** All platformSecret mutation keys */ all: ['mutation', 'platformsecret'] as const, + /** Create platformSecret mutation key */ create: () => + ['mutation', 'platformsecret', 'create'] as const, + /** Update platformSecret mutation key */ update: (id: string | number) => + ['mutation', 'platformsecret', 'update', id] as const, + /** Delete platformSecret mutation key */ delete: (id: string | number) => + ['mutation', 'platformsecret', 'delete', id] as const, +} as const; +export const secretMutationKeys = { + /** All secret mutation keys */ all: ['mutation', 'secret'] as const, + /** Create secret mutation key */ create: () => ['mutation', 'secret', 'create'] as const, + /** Update secret mutation key */ update: (id: string | number) => + ['mutation', 'secret', 'update', id] as const, + /** Delete secret mutation key */ delete: (id: string | number) => + ['mutation', 'secret', 'delete', id] as const, +} as const; // ============================================================================ // Custom Mutation Keys // ============================================================================ export const customMutationKeys = { + /** Mutation key for platformInternalSecretsDel */ platformInternalSecretsDel: ( + identifier?: string + ) => + identifier + ? (['mutation', 'platformInternalSecretsDel', identifier] as const) + : (['mutation', 'platformInternalSecretsDel'] as const), /** Mutation key for platformSecretsDel */ platformSecretsDel: (identifier?: string) => identifier ? (['mutation', 'platformSecretsDel', identifier] as const) : (['mutation', 'platformSecretsDel'] as const), - /** Mutation key for orgSecretsDel */ orgSecretsDel: (identifier?: string) => + /** Mutation key for _secretsDel */ _secretsDel: (identifier?: string) => identifier - ? (['mutation', 'orgSecretsDel', identifier] as const) - : (['mutation', 'orgSecretsDel'] as const), + ? (['mutation', '_secretsDel', identifier] as const) + : (['mutation', '_secretsDel'] as const), + /** Mutation key for platformInternalSecretsRemoveArray */ platformInternalSecretsRemoveArray: ( + identifier?: string + ) => + identifier + ? (['mutation', 'platformInternalSecretsRemoveArray', identifier] as const) + : (['mutation', 'platformInternalSecretsRemoveArray'] as const), /** Mutation key for platformSecretsRemoveArray */ platformSecretsRemoveArray: ( identifier?: string ) => identifier ? (['mutation', 'platformSecretsRemoveArray', identifier] as const) : (['mutation', 'platformSecretsRemoveArray'] as const), - /** Mutation key for orgSecretsRemoveArray */ orgSecretsRemoveArray: (identifier?: string) => + /** Mutation key for _secretsRemoveArray */ _secretsRemoveArray: (identifier?: string) => + identifier + ? (['mutation', '_secretsRemoveArray', identifier] as const) + : (['mutation', '_secretsRemoveArray'] as const), + /** Mutation key for platformInternalSecretsRotate */ platformInternalSecretsRotate: ( + identifier?: string + ) => identifier - ? (['mutation', 'orgSecretsRemoveArray', identifier] as const) - : (['mutation', 'orgSecretsRemoveArray'] as const), + ? (['mutation', 'platformInternalSecretsRotate', identifier] as const) + : (['mutation', 'platformInternalSecretsRotate'] as const), + /** Mutation key for platformInternalSecretsSet */ platformInternalSecretsSet: ( + identifier?: string + ) => + identifier + ? (['mutation', 'platformInternalSecretsSet', identifier] as const) + : (['mutation', 'platformInternalSecretsSet'] as const), /** Mutation key for platformSecretsRotate */ platformSecretsRotate: (identifier?: string) => identifier ? (['mutation', 'platformSecretsRotate', identifier] as const) : (['mutation', 'platformSecretsRotate'] as const), + /** Mutation key for _secretsRotate */ _secretsRotate: (identifier?: string) => + identifier + ? (['mutation', '_secretsRotate', identifier] as const) + : (['mutation', '_secretsRotate'] as const), /** Mutation key for platformSecretsSet */ platformSecretsSet: (identifier?: string) => identifier ? (['mutation', 'platformSecretsSet', identifier] as const) : (['mutation', 'platformSecretsSet'] as const), - /** Mutation key for orgSecretsRotate */ orgSecretsRotate: (identifier?: string) => - identifier - ? (['mutation', 'orgSecretsRotate', identifier] as const) - : (['mutation', 'orgSecretsRotate'] as const), - /** Mutation key for orgSecretsSet */ orgSecretsSet: (identifier?: string) => + /** Mutation key for _secretsSet */ _secretsSet: (identifier?: string) => identifier - ? (['mutation', 'orgSecretsSet', identifier] as const) - : (['mutation', 'orgSecretsSet'] as const), + ? (['mutation', '_secretsSet', identifier] as const) + : (['mutation', '_secretsSet'] as const), /** Mutation key for provisionBucket */ provisionBucket: (identifier?: string) => identifier ? (['mutation', 'provisionBucket', identifier] as const) @@ -107,7 +156,10 @@ export const customMutationKeys = { * ``` */ export const mutationKeys = { - platformConfigDefinition: platformConfigDefinitionMutationKeys, platformConfig: platformConfigMutationKeys, + config: configMutationKeys, + platformInternalSecret: platformInternalSecretMutationKeys, + platformSecret: platformSecretMutationKeys, + secret: secretMutationKeys, custom: customMutationKeys, } as const; diff --git a/sdk/constructive-react/src/config/hooks/mutations/index.ts b/sdk/constructive-react/src/config/hooks/mutations/index.ts index 01e4a4fa31..5c658e911b 100644 --- a/sdk/constructive-react/src/config/hooks/mutations/index.ts +++ b/sdk/constructive-react/src/config/hooks/mutations/index.ts @@ -3,18 +3,25 @@ * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ -export * from './useCreatePlatformConfigDefinitionMutation'; -export * from './useUpdatePlatformConfigDefinitionMutation'; -export * from './useDeletePlatformConfigDefinitionMutation'; export * from './useCreatePlatformConfigMutation'; export * from './useUpdatePlatformConfigMutation'; export * from './useDeletePlatformConfigMutation'; +export * from './useCreateConfigMutation'; +export * from './useUpdateConfigMutation'; +export * from './useDeleteConfigMutation'; +export * from './useCreatePlatformInternalSecretMutation'; +export * from './useCreatePlatformSecretMutation'; +export * from './useCreateSecretMutation'; +export * from './usePlatformInternalSecretsDelMutation'; export * from './usePlatformSecretsDelMutation'; -export * from './useOrgSecretsDelMutation'; +export * from './use_secretsDelMutation'; +export * from './usePlatformInternalSecretsRemoveArrayMutation'; export * from './usePlatformSecretsRemoveArrayMutation'; -export * from './useOrgSecretsRemoveArrayMutation'; +export * from './use_secretsRemoveArrayMutation'; +export * from './usePlatformInternalSecretsRotateMutation'; +export * from './usePlatformInternalSecretsSetMutation'; export * from './usePlatformSecretsRotateMutation'; +export * from './use_secretsRotateMutation'; export * from './usePlatformSecretsSetMutation'; -export * from './useOrgSecretsRotateMutation'; -export * from './useOrgSecretsSetMutation'; +export * from './use_secretsSetMutation'; export * from './useProvisionBucketMutation'; diff --git a/sdk/constructive-react/src/config/hooks/mutations/useCreateConfigMutation.ts b/sdk/constructive-react/src/config/hooks/mutations/useCreateConfigMutation.ts new file mode 100644 index 0000000000..bade1d40ab --- /dev/null +++ b/sdk/constructive-react/src/config/hooks/mutations/useCreateConfigMutation.ts @@ -0,0 +1,80 @@ +/** + * Namespace-backed plaintext key-value config store (like a k8s ConfigMap); admin-only, fully CRUD-exposed + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { configKeys } from '../query-keys'; +import { configMutationKeys } from '../mutation-keys'; +import type { ConfigSelect, ConfigWithRelations, CreateConfigInput } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { ConfigSelect, ConfigWithRelations, CreateConfigInput } from '../../orm/input-types'; +/** + * Namespace-backed plaintext key-value config store (like a k8s ConfigMap); admin-only, fully CRUD-exposed + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateConfigMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateConfigMutation( + params: { + selection: { + fields: S & ConfigSelect; + } & HookStrictSelect, ConfigSelect>; + } & Omit< + UseMutationOptions< + { + createConfig: { + config: InferSelectResult; + }; + }, + Error, + CreateConfigInput['config'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createConfig: { + config: InferSelectResult; + }; + }, + Error, + CreateConfigInput['config'] +>; +export function useCreateConfigMutation( + params: { + selection: SelectionConfig; + } & Omit, 'mutationFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: configMutationKeys.create(), + mutationFn: (data: CreateConfigInput['config']) => + getClient() + .config.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: configKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/config/hooks/mutations/useCreatePlatformConfigDefinitionMutation.ts b/sdk/constructive-react/src/config/hooks/mutations/useCreatePlatformConfigDefinitionMutation.ts deleted file mode 100644 index d4d968334c..0000000000 --- a/sdk/constructive-react/src/config/hooks/mutations/useCreatePlatformConfigDefinitionMutation.ts +++ /dev/null @@ -1,91 +0,0 @@ -/** - * Registry of valid config keys — declares which config entries the platform recognizes - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { platformConfigDefinitionKeys } from '../query-keys'; -import { platformConfigDefinitionMutationKeys } from '../mutation-keys'; -import type { - PlatformConfigDefinitionSelect, - PlatformConfigDefinitionWithRelations, - CreatePlatformConfigDefinitionInput, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - PlatformConfigDefinitionSelect, - PlatformConfigDefinitionWithRelations, - CreatePlatformConfigDefinitionInput, -} from '../../orm/input-types'; -/** - * Registry of valid config keys — declares which config entries the platform recognizes - * - * @example - * ```tsx - * const { mutate, isPending } = useCreatePlatformConfigDefinitionMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreatePlatformConfigDefinitionMutation( - params: { - selection: { - fields: S & PlatformConfigDefinitionSelect; - } & HookStrictSelect, PlatformConfigDefinitionSelect>; - } & Omit< - UseMutationOptions< - { - createPlatformConfigDefinition: { - platformConfigDefinition: InferSelectResult; - }; - }, - Error, - CreatePlatformConfigDefinitionInput['platformConfigDefinition'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createPlatformConfigDefinition: { - platformConfigDefinition: InferSelectResult; - }; - }, - Error, - CreatePlatformConfigDefinitionInput['platformConfigDefinition'] ->; -export function useCreatePlatformConfigDefinitionMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: platformConfigDefinitionMutationKeys.create(), - mutationFn: (data: CreatePlatformConfigDefinitionInput['platformConfigDefinition']) => - getClient() - .platformConfigDefinition.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: platformConfigDefinitionKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/config/hooks/mutations/useCreatePlatformConfigMutation.ts b/sdk/constructive-react/src/config/hooks/mutations/useCreatePlatformConfigMutation.ts index 2a3c3f743f..73881dc6f0 100644 --- a/sdk/constructive-react/src/config/hooks/mutations/useCreatePlatformConfigMutation.ts +++ b/sdk/constructive-react/src/config/hooks/mutations/useCreatePlatformConfigMutation.ts @@ -1,5 +1,5 @@ /** - * App-level plaintext key-value config store (like a k8s ConfigMap); admin-only, fully CRUD-exposed + * Namespace-backed plaintext key-value config store (like a k8s ConfigMap); admin-only, fully CRUD-exposed * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { CreatePlatformConfigInput, } from '../../orm/input-types'; /** - * App-level plaintext key-value config store (like a k8s ConfigMap); admin-only, fully CRUD-exposed + * Namespace-backed plaintext key-value config store (like a k8s ConfigMap); admin-only, fully CRUD-exposed * * @example * ```tsx diff --git a/sdk/constructive-react/src/config/hooks/mutations/useCreatePlatformInternalSecretMutation.ts b/sdk/constructive-react/src/config/hooks/mutations/useCreatePlatformInternalSecretMutation.ts new file mode 100644 index 0000000000..d0230a9dba --- /dev/null +++ b/sdk/constructive-react/src/config/hooks/mutations/useCreatePlatformInternalSecretMutation.ts @@ -0,0 +1,91 @@ +/** + * Create mutation hook for PlatformInternalSecret + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { platformInternalSecretKeys } from '../query-keys'; +import { platformInternalSecretMutationKeys } from '../mutation-keys'; +import type { + PlatformInternalSecretSelect, + PlatformInternalSecretWithRelations, + CreatePlatformInternalSecretInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlatformInternalSecretSelect, + PlatformInternalSecretWithRelations, + CreatePlatformInternalSecretInput, +} from '../../orm/input-types'; +/** + * Mutation hook for creating a PlatformInternalSecret + * + * @example + * ```tsx + * const { mutate, isPending } = useCreatePlatformInternalSecretMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreatePlatformInternalSecretMutation( + params: { + selection: { + fields: S & PlatformInternalSecretSelect; + } & HookStrictSelect, PlatformInternalSecretSelect>; + } & Omit< + UseMutationOptions< + { + createPlatformInternalSecret: { + platformInternalSecret: InferSelectResult; + }; + }, + Error, + CreatePlatformInternalSecretInput['platformInternalSecret'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createPlatformInternalSecret: { + platformInternalSecret: InferSelectResult; + }; + }, + Error, + CreatePlatformInternalSecretInput['platformInternalSecret'] +>; +export function useCreatePlatformInternalSecretMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: platformInternalSecretMutationKeys.create(), + mutationFn: (data: CreatePlatformInternalSecretInput['platformInternalSecret']) => + getClient() + .platformInternalSecret.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: platformInternalSecretKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/config/hooks/mutations/useCreatePlatformSecretMutation.ts b/sdk/constructive-react/src/config/hooks/mutations/useCreatePlatformSecretMutation.ts new file mode 100644 index 0000000000..16940cffcc --- /dev/null +++ b/sdk/constructive-react/src/config/hooks/mutations/useCreatePlatformSecretMutation.ts @@ -0,0 +1,91 @@ +/** + * Create mutation hook for PlatformSecret + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { platformSecretKeys } from '../query-keys'; +import { platformSecretMutationKeys } from '../mutation-keys'; +import type { + PlatformSecretSelect, + PlatformSecretWithRelations, + CreatePlatformSecretInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlatformSecretSelect, + PlatformSecretWithRelations, + CreatePlatformSecretInput, +} from '../../orm/input-types'; +/** + * Mutation hook for creating a PlatformSecret + * + * @example + * ```tsx + * const { mutate, isPending } = useCreatePlatformSecretMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreatePlatformSecretMutation( + params: { + selection: { + fields: S & PlatformSecretSelect; + } & HookStrictSelect, PlatformSecretSelect>; + } & Omit< + UseMutationOptions< + { + createPlatformSecret: { + platformSecret: InferSelectResult; + }; + }, + Error, + CreatePlatformSecretInput['platformSecret'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createPlatformSecret: { + platformSecret: InferSelectResult; + }; + }, + Error, + CreatePlatformSecretInput['platformSecret'] +>; +export function useCreatePlatformSecretMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: platformSecretMutationKeys.create(), + mutationFn: (data: CreatePlatformSecretInput['platformSecret']) => + getClient() + .platformSecret.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: platformSecretKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/config/hooks/mutations/useCreateSecretMutation.ts b/sdk/constructive-react/src/config/hooks/mutations/useCreateSecretMutation.ts new file mode 100644 index 0000000000..d80c9300fe --- /dev/null +++ b/sdk/constructive-react/src/config/hooks/mutations/useCreateSecretMutation.ts @@ -0,0 +1,80 @@ +/** + * Create mutation hook for 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 { secretKeys } from '../query-keys'; +import { secretMutationKeys } from '../mutation-keys'; +import type { SecretSelect, SecretWithRelations, CreateSecretInput } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { SecretSelect, SecretWithRelations, CreateSecretInput } from '../../orm/input-types'; +/** + * Mutation hook for creating a Secret + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateSecretMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateSecretMutation( + params: { + selection: { + fields: S & SecretSelect; + } & HookStrictSelect, SecretSelect>; + } & Omit< + UseMutationOptions< + { + createSecret: { + secret: InferSelectResult; + }; + }, + Error, + CreateSecretInput['secret'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createSecret: { + secret: InferSelectResult; + }; + }, + Error, + CreateSecretInput['secret'] +>; +export function useCreateSecretMutation( + params: { + selection: SelectionConfig; + } & Omit, 'mutationFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: secretMutationKeys.create(), + mutationFn: (data: CreateSecretInput['secret']) => + getClient() + .secret.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: secretKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/config/hooks/mutations/useDeleteConfigMutation.ts b/sdk/constructive-react/src/config/hooks/mutations/useDeleteConfigMutation.ts new file mode 100644 index 0000000000..6365d2d0b4 --- /dev/null +++ b/sdk/constructive-react/src/config/hooks/mutations/useDeleteConfigMutation.ts @@ -0,0 +1,98 @@ +/** + * Namespace-backed plaintext key-value config store (like a k8s ConfigMap); admin-only, fully CRUD-exposed + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { configKeys } from '../query-keys'; +import { configMutationKeys } from '../mutation-keys'; +import type { ConfigSelect, ConfigWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { ConfigSelect, ConfigWithRelations } from '../../orm/input-types'; +/** + * Namespace-backed plaintext key-value config store (like a k8s ConfigMap); admin-only, fully CRUD-exposed + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteConfigMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteConfigMutation( + params: { + selection: { + fields: S & ConfigSelect; + } & HookStrictSelect, ConfigSelect>; + } & Omit< + UseMutationOptions< + { + deleteConfig: { + config: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteConfig: { + config: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteConfigMutation( + 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: configMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .config.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: configKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: configKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/config/hooks/mutations/useDeletePlatformConfigMutation.ts b/sdk/constructive-react/src/config/hooks/mutations/useDeletePlatformConfigMutation.ts index ec92e5af48..0fb926065f 100644 --- a/sdk/constructive-react/src/config/hooks/mutations/useDeletePlatformConfigMutation.ts +++ b/sdk/constructive-react/src/config/hooks/mutations/useDeletePlatformConfigMutation.ts @@ -1,5 +1,5 @@ /** - * App-level plaintext key-value config store (like a k8s ConfigMap); admin-only, fully CRUD-exposed + * Namespace-backed plaintext key-value config store (like a k8s ConfigMap); admin-only, fully CRUD-exposed * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { PlatformConfigSelect, PlatformConfigWithRelations } from '../../or import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { PlatformConfigSelect, PlatformConfigWithRelations } from '../../orm/input-types'; /** - * App-level plaintext key-value config store (like a k8s ConfigMap); admin-only, fully CRUD-exposed + * Namespace-backed plaintext key-value config store (like a k8s ConfigMap); admin-only, fully CRUD-exposed * * @example * ```tsx diff --git a/sdk/constructive-react/src/config/hooks/mutations/usePlatformInternalSecretsDelMutation.ts b/sdk/constructive-react/src/config/hooks/mutations/usePlatformInternalSecretsDelMutation.ts new file mode 100644 index 0000000000..21806bd5b9 --- /dev/null +++ b/sdk/constructive-react/src/config/hooks/mutations/usePlatformInternalSecretsDelMutation.ts @@ -0,0 +1,60 @@ +/** + * Custom mutation hook for platformInternalSecretsDel + * @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 { PlatformInternalSecretsDelVariables } from '../../orm/mutation'; +import type { + PlatformInternalSecretsDelPayloadSelect, + PlatformInternalSecretsDelPayload, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; +export type { PlatformInternalSecretsDelVariables } from '../../orm/mutation'; +export type { PlatformInternalSecretsDelPayloadSelect } from '../../orm/input-types'; +export function usePlatformInternalSecretsDelMutation< + S extends PlatformInternalSecretsDelPayloadSelect, +>( + params: { + selection: { + fields: S & PlatformInternalSecretsDelPayloadSelect; + } & HookStrictSelect, PlatformInternalSecretsDelPayloadSelect>; + } & Omit< + UseMutationOptions< + { + platformInternalSecretsDel: InferSelectResult | null; + }, + Error, + PlatformInternalSecretsDelVariables + >, + 'mutationFn' + > +): UseMutationResult< + { + platformInternalSecretsDel: InferSelectResult | null; + }, + Error, + PlatformInternalSecretsDelVariables +> { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + return useMutation({ + mutationKey: customMutationKeys.platformInternalSecretsDel(), + mutationFn: (variables: PlatformInternalSecretsDelVariables) => + getClient() + .mutation.platformInternalSecretsDel(variables, { + select: args.select, + } as { + select: S; + } & StrictSelect) + .unwrap(), + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/config/hooks/mutations/usePlatformInternalSecretsRemoveArrayMutation.ts b/sdk/constructive-react/src/config/hooks/mutations/usePlatformInternalSecretsRemoveArrayMutation.ts new file mode 100644 index 0000000000..d548fc5147 --- /dev/null +++ b/sdk/constructive-react/src/config/hooks/mutations/usePlatformInternalSecretsRemoveArrayMutation.ts @@ -0,0 +1,66 @@ +/** + * Custom mutation hook for platformInternalSecretsRemoveArray + * @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 { PlatformInternalSecretsRemoveArrayVariables } from '../../orm/mutation'; +import type { + PlatformInternalSecretsRemoveArrayPayloadSelect, + PlatformInternalSecretsRemoveArrayPayload, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; +export type { PlatformInternalSecretsRemoveArrayVariables } from '../../orm/mutation'; +export type { PlatformInternalSecretsRemoveArrayPayloadSelect } from '../../orm/input-types'; +export function usePlatformInternalSecretsRemoveArrayMutation< + S extends PlatformInternalSecretsRemoveArrayPayloadSelect, +>( + params: { + selection: { + fields: S & PlatformInternalSecretsRemoveArrayPayloadSelect; + } & HookStrictSelect, PlatformInternalSecretsRemoveArrayPayloadSelect>; + } & Omit< + UseMutationOptions< + { + platformInternalSecretsRemoveArray: InferSelectResult< + PlatformInternalSecretsRemoveArrayPayload, + S + > | null; + }, + Error, + PlatformInternalSecretsRemoveArrayVariables + >, + 'mutationFn' + > +): UseMutationResult< + { + platformInternalSecretsRemoveArray: InferSelectResult< + PlatformInternalSecretsRemoveArrayPayload, + S + > | null; + }, + Error, + PlatformInternalSecretsRemoveArrayVariables +> { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + return useMutation({ + mutationKey: customMutationKeys.platformInternalSecretsRemoveArray(), + mutationFn: (variables: PlatformInternalSecretsRemoveArrayVariables) => + getClient() + .mutation.platformInternalSecretsRemoveArray(variables, { + select: args.select, + } as { + select: S; + } & StrictSelect) + .unwrap(), + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/config/hooks/mutations/usePlatformInternalSecretsRotateMutation.ts b/sdk/constructive-react/src/config/hooks/mutations/usePlatformInternalSecretsRotateMutation.ts new file mode 100644 index 0000000000..ffb7abebf8 --- /dev/null +++ b/sdk/constructive-react/src/config/hooks/mutations/usePlatformInternalSecretsRotateMutation.ts @@ -0,0 +1,66 @@ +/** + * Custom mutation hook for platformInternalSecretsRotate + * @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 { PlatformInternalSecretsRotateVariables } from '../../orm/mutation'; +import type { + PlatformInternalSecretsRotatePayloadSelect, + PlatformInternalSecretsRotatePayload, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; +export type { PlatformInternalSecretsRotateVariables } from '../../orm/mutation'; +export type { PlatformInternalSecretsRotatePayloadSelect } from '../../orm/input-types'; +export function usePlatformInternalSecretsRotateMutation< + S extends PlatformInternalSecretsRotatePayloadSelect, +>( + params: { + selection: { + fields: S & PlatformInternalSecretsRotatePayloadSelect; + } & HookStrictSelect, PlatformInternalSecretsRotatePayloadSelect>; + } & Omit< + UseMutationOptions< + { + platformInternalSecretsRotate: InferSelectResult< + PlatformInternalSecretsRotatePayload, + S + > | null; + }, + Error, + PlatformInternalSecretsRotateVariables + >, + 'mutationFn' + > +): UseMutationResult< + { + platformInternalSecretsRotate: InferSelectResult< + PlatformInternalSecretsRotatePayload, + S + > | null; + }, + Error, + PlatformInternalSecretsRotateVariables +> { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + return useMutation({ + mutationKey: customMutationKeys.platformInternalSecretsRotate(), + mutationFn: (variables: PlatformInternalSecretsRotateVariables) => + getClient() + .mutation.platformInternalSecretsRotate(variables, { + select: args.select, + } as { + select: S; + } & StrictSelect) + .unwrap(), + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/config/hooks/mutations/usePlatformInternalSecretsSetMutation.ts b/sdk/constructive-react/src/config/hooks/mutations/usePlatformInternalSecretsSetMutation.ts new file mode 100644 index 0000000000..f6728c7b10 --- /dev/null +++ b/sdk/constructive-react/src/config/hooks/mutations/usePlatformInternalSecretsSetMutation.ts @@ -0,0 +1,60 @@ +/** + * Custom mutation hook for platformInternalSecretsSet + * @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 { PlatformInternalSecretsSetVariables } from '../../orm/mutation'; +import type { + PlatformInternalSecretsSetPayloadSelect, + PlatformInternalSecretsSetPayload, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; +export type { PlatformInternalSecretsSetVariables } from '../../orm/mutation'; +export type { PlatformInternalSecretsSetPayloadSelect } from '../../orm/input-types'; +export function usePlatformInternalSecretsSetMutation< + S extends PlatformInternalSecretsSetPayloadSelect, +>( + params: { + selection: { + fields: S & PlatformInternalSecretsSetPayloadSelect; + } & HookStrictSelect, PlatformInternalSecretsSetPayloadSelect>; + } & Omit< + UseMutationOptions< + { + platformInternalSecretsSet: InferSelectResult | null; + }, + Error, + PlatformInternalSecretsSetVariables + >, + 'mutationFn' + > +): UseMutationResult< + { + platformInternalSecretsSet: InferSelectResult | null; + }, + Error, + PlatformInternalSecretsSetVariables +> { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + return useMutation({ + mutationKey: customMutationKeys.platformInternalSecretsSet(), + mutationFn: (variables: PlatformInternalSecretsSetVariables) => + getClient() + .mutation.platformInternalSecretsSet(variables, { + select: args.select, + } as { + select: S; + } & StrictSelect) + .unwrap(), + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/config/hooks/mutations/useUpdateConfigMutation.ts b/sdk/constructive-react/src/config/hooks/mutations/useUpdateConfigMutation.ts new file mode 100644 index 0000000000..7d24ccfedf --- /dev/null +++ b/sdk/constructive-react/src/config/hooks/mutations/useUpdateConfigMutation.ts @@ -0,0 +1,102 @@ +/** + * Namespace-backed plaintext key-value config store (like a k8s ConfigMap); admin-only, fully CRUD-exposed + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { configKeys } from '../query-keys'; +import { configMutationKeys } from '../mutation-keys'; +import type { ConfigSelect, ConfigWithRelations, ConfigPatch } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { ConfigSelect, ConfigWithRelations, ConfigPatch } from '../../orm/input-types'; +/** + * Namespace-backed plaintext key-value config store (like a k8s ConfigMap); admin-only, fully CRUD-exposed + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateConfigMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', configPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateConfigMutation( + params: { + selection: { + fields: S & ConfigSelect; + } & HookStrictSelect, ConfigSelect>; + } & Omit< + UseMutationOptions< + { + updateConfig: { + config: InferSelectResult; + }; + }, + Error, + { + id: string; + configPatch: ConfigPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateConfig: { + config: InferSelectResult; + }; + }, + Error, + { + id: string; + configPatch: ConfigPatch; + } +>; +export function useUpdateConfigMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + configPatch: ConfigPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: configMutationKeys.all, + mutationFn: ({ id, configPatch }: { id: string; configPatch: ConfigPatch }) => + getClient() + .config.update({ + where: { + id, + }, + data: configPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: configKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: configKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/config/hooks/mutations/useUpdatePlatformConfigDefinitionMutation.ts b/sdk/constructive-react/src/config/hooks/mutations/useUpdatePlatformConfigDefinitionMutation.ts deleted file mode 100644 index c8dcb167e2..0000000000 --- a/sdk/constructive-react/src/config/hooks/mutations/useUpdatePlatformConfigDefinitionMutation.ts +++ /dev/null @@ -1,116 +0,0 @@ -/** - * Registry of valid config keys — declares which config entries the platform recognizes - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { platformConfigDefinitionKeys } from '../query-keys'; -import { platformConfigDefinitionMutationKeys } from '../mutation-keys'; -import type { - PlatformConfigDefinitionSelect, - PlatformConfigDefinitionWithRelations, - PlatformConfigDefinitionPatch, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - PlatformConfigDefinitionSelect, - PlatformConfigDefinitionWithRelations, - PlatformConfigDefinitionPatch, -} from '../../orm/input-types'; -/** - * Registry of valid config keys — declares which config entries the platform recognizes - * - * @example - * ```tsx - * const { mutate, isPending } = useUpdatePlatformConfigDefinitionMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ id: 'value-here', platformConfigDefinitionPatch: { name: 'Updated' } }); - * ``` - */ -export function useUpdatePlatformConfigDefinitionMutation( - params: { - selection: { - fields: S & PlatformConfigDefinitionSelect; - } & HookStrictSelect, PlatformConfigDefinitionSelect>; - } & Omit< - UseMutationOptions< - { - updatePlatformConfigDefinition: { - platformConfigDefinition: InferSelectResult; - }; - }, - Error, - { - id: string; - platformConfigDefinitionPatch: PlatformConfigDefinitionPatch; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - updatePlatformConfigDefinition: { - platformConfigDefinition: InferSelectResult; - }; - }, - Error, - { - id: string; - platformConfigDefinitionPatch: PlatformConfigDefinitionPatch; - } ->; -export function useUpdatePlatformConfigDefinitionMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - { - id: string; - platformConfigDefinitionPatch: PlatformConfigDefinitionPatch; - } - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: platformConfigDefinitionMutationKeys.all, - mutationFn: ({ - id, - platformConfigDefinitionPatch, - }: { - id: string; - platformConfigDefinitionPatch: PlatformConfigDefinitionPatch; - }) => - getClient() - .platformConfigDefinition.update({ - where: { - id, - }, - data: platformConfigDefinitionPatch, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.invalidateQueries({ - queryKey: platformConfigDefinitionKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: platformConfigDefinitionKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/config/hooks/mutations/useUpdatePlatformConfigMutation.ts b/sdk/constructive-react/src/config/hooks/mutations/useUpdatePlatformConfigMutation.ts index a21a509ce2..c806bc40f3 100644 --- a/sdk/constructive-react/src/config/hooks/mutations/useUpdatePlatformConfigMutation.ts +++ b/sdk/constructive-react/src/config/hooks/mutations/useUpdatePlatformConfigMutation.ts @@ -1,5 +1,5 @@ /** - * App-level plaintext key-value config store (like a k8s ConfigMap); admin-only, fully CRUD-exposed + * Namespace-backed plaintext key-value config store (like a k8s ConfigMap); admin-only, fully CRUD-exposed * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { PlatformConfigPatch, } from '../../orm/input-types'; /** - * App-level plaintext key-value config store (like a k8s ConfigMap); admin-only, fully CRUD-exposed + * Namespace-backed plaintext key-value config store (like a k8s ConfigMap); admin-only, fully CRUD-exposed * * @example * ```tsx diff --git a/sdk/constructive-react/src/config/hooks/mutations/useOrgSecretsSetMutation.ts b/sdk/constructive-react/src/config/hooks/mutations/use_secretsDelMutation.ts similarity index 52% rename from sdk/constructive-react/src/config/hooks/mutations/useOrgSecretsSetMutation.ts rename to sdk/constructive-react/src/config/hooks/mutations/use_secretsDelMutation.ts index 730c4171a2..d80b8120bb 100644 --- a/sdk/constructive-react/src/config/hooks/mutations/useOrgSecretsSetMutation.ts +++ b/sdk/constructive-react/src/config/hooks/mutations/use_secretsDelMutation.ts @@ -1,5 +1,5 @@ /** - * Custom mutation hook for orgSecretsSet + * Custom mutation hook for _secretsDel * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -10,45 +10,45 @@ import { getClient } from '../client'; import { buildSelectionArgs } from '../selection'; import type { SelectionConfig } from '../selection'; import { customMutationKeys } from '../mutation-keys'; -import type { OrgSecretsSetVariables } from '../../orm/mutation'; -import type { OrgSecretsSetPayloadSelect, OrgSecretsSetPayload } from '../../orm/input-types'; +import type { _secretsDelVariables } from '../../orm/mutation'; +import type { _SecretsDelPayloadSelect, _SecretsDelPayload } from '../../orm/input-types'; import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; -export type { OrgSecretsSetVariables } from '../../orm/mutation'; -export type { OrgSecretsSetPayloadSelect } from '../../orm/input-types'; -export function useOrgSecretsSetMutation( +export type { _secretsDelVariables } from '../../orm/mutation'; +export type { _SecretsDelPayloadSelect } from '../../orm/input-types'; +export function use_secretsDelMutation( params: { selection: { - fields: S & OrgSecretsSetPayloadSelect; - } & HookStrictSelect, OrgSecretsSetPayloadSelect>; + fields: S & _SecretsDelPayloadSelect; + } & HookStrictSelect, _SecretsDelPayloadSelect>; } & Omit< UseMutationOptions< { - orgSecretsSet: InferSelectResult | null; + _secretsDel: InferSelectResult<_SecretsDelPayload, S> | null; }, Error, - OrgSecretsSetVariables + _secretsDelVariables >, 'mutationFn' > ): UseMutationResult< { - orgSecretsSet: InferSelectResult | null; + _secretsDel: InferSelectResult<_SecretsDelPayload, S> | null; }, Error, - OrgSecretsSetVariables + _secretsDelVariables > { const args = buildSelectionArgs(params.selection); const { selection: _selection, ...mutationOptions } = params ?? {}; void _selection; return useMutation({ - mutationKey: customMutationKeys.orgSecretsSet(), - mutationFn: (variables: OrgSecretsSetVariables) => + mutationKey: customMutationKeys._secretsDel(), + mutationFn: (variables: _secretsDelVariables) => getClient() - .mutation.orgSecretsSet(variables, { + .mutation._secretsDel(variables, { select: args.select, } as { select: S; - } & StrictSelect) + } & StrictSelect) .unwrap(), ...mutationOptions, }); diff --git a/sdk/constructive-react/src/config/hooks/mutations/use_secretsRemoveArrayMutation.ts b/sdk/constructive-react/src/config/hooks/mutations/use_secretsRemoveArrayMutation.ts new file mode 100644 index 0000000000..7de1a07f39 --- /dev/null +++ b/sdk/constructive-react/src/config/hooks/mutations/use_secretsRemoveArrayMutation.ts @@ -0,0 +1,58 @@ +/** + * Custom mutation hook for _secretsRemoveArray + * @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 { _secretsRemoveArrayVariables } from '../../orm/mutation'; +import type { + _SecretsRemoveArrayPayloadSelect, + _SecretsRemoveArrayPayload, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; +export type { _secretsRemoveArrayVariables } from '../../orm/mutation'; +export type { _SecretsRemoveArrayPayloadSelect } from '../../orm/input-types'; +export function use_secretsRemoveArrayMutation( + params: { + selection: { + fields: S & _SecretsRemoveArrayPayloadSelect; + } & HookStrictSelect, _SecretsRemoveArrayPayloadSelect>; + } & Omit< + UseMutationOptions< + { + _secretsRemoveArray: InferSelectResult<_SecretsRemoveArrayPayload, S> | null; + }, + Error, + _secretsRemoveArrayVariables + >, + 'mutationFn' + > +): UseMutationResult< + { + _secretsRemoveArray: InferSelectResult<_SecretsRemoveArrayPayload, S> | null; + }, + Error, + _secretsRemoveArrayVariables +> { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + return useMutation({ + mutationKey: customMutationKeys._secretsRemoveArray(), + mutationFn: (variables: _secretsRemoveArrayVariables) => + getClient() + .mutation._secretsRemoveArray(variables, { + select: args.select, + } as { + select: S; + } & StrictSelect) + .unwrap(), + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/config/hooks/mutations/useOrgSecretsDelMutation.ts b/sdk/constructive-react/src/config/hooks/mutations/use_secretsRotateMutation.ts similarity index 51% rename from sdk/constructive-react/src/config/hooks/mutations/useOrgSecretsDelMutation.ts rename to sdk/constructive-react/src/config/hooks/mutations/use_secretsRotateMutation.ts index 5fb0778500..67fb59df0f 100644 --- a/sdk/constructive-react/src/config/hooks/mutations/useOrgSecretsDelMutation.ts +++ b/sdk/constructive-react/src/config/hooks/mutations/use_secretsRotateMutation.ts @@ -1,5 +1,5 @@ /** - * Custom mutation hook for orgSecretsDel + * Custom mutation hook for _secretsRotate * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -10,45 +10,45 @@ import { getClient } from '../client'; import { buildSelectionArgs } from '../selection'; import type { SelectionConfig } from '../selection'; import { customMutationKeys } from '../mutation-keys'; -import type { OrgSecretsDelVariables } from '../../orm/mutation'; -import type { OrgSecretsDelPayloadSelect, OrgSecretsDelPayload } from '../../orm/input-types'; +import type { _secretsRotateVariables } from '../../orm/mutation'; +import type { _SecretsRotatePayloadSelect, _SecretsRotatePayload } from '../../orm/input-types'; import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; -export type { OrgSecretsDelVariables } from '../../orm/mutation'; -export type { OrgSecretsDelPayloadSelect } from '../../orm/input-types'; -export function useOrgSecretsDelMutation( +export type { _secretsRotateVariables } from '../../orm/mutation'; +export type { _SecretsRotatePayloadSelect } from '../../orm/input-types'; +export function use_secretsRotateMutation( params: { selection: { - fields: S & OrgSecretsDelPayloadSelect; - } & HookStrictSelect, OrgSecretsDelPayloadSelect>; + fields: S & _SecretsRotatePayloadSelect; + } & HookStrictSelect, _SecretsRotatePayloadSelect>; } & Omit< UseMutationOptions< { - orgSecretsDel: InferSelectResult | null; + _secretsRotate: InferSelectResult<_SecretsRotatePayload, S> | null; }, Error, - OrgSecretsDelVariables + _secretsRotateVariables >, 'mutationFn' > ): UseMutationResult< { - orgSecretsDel: InferSelectResult | null; + _secretsRotate: InferSelectResult<_SecretsRotatePayload, S> | null; }, Error, - OrgSecretsDelVariables + _secretsRotateVariables > { const args = buildSelectionArgs(params.selection); const { selection: _selection, ...mutationOptions } = params ?? {}; void _selection; return useMutation({ - mutationKey: customMutationKeys.orgSecretsDel(), - mutationFn: (variables: OrgSecretsDelVariables) => + mutationKey: customMutationKeys._secretsRotate(), + mutationFn: (variables: _secretsRotateVariables) => getClient() - .mutation.orgSecretsDel(variables, { + .mutation._secretsRotate(variables, { select: args.select, } as { select: S; - } & StrictSelect) + } & StrictSelect) .unwrap(), ...mutationOptions, }); diff --git a/sdk/constructive-react/src/api/hooks/mutations/useBootstrapUserMutation.ts b/sdk/constructive-react/src/config/hooks/mutations/use_secretsSetMutation.ts similarity index 52% rename from sdk/constructive-react/src/api/hooks/mutations/useBootstrapUserMutation.ts rename to sdk/constructive-react/src/config/hooks/mutations/use_secretsSetMutation.ts index cf749c6d47..3264c1c49e 100644 --- a/sdk/constructive-react/src/api/hooks/mutations/useBootstrapUserMutation.ts +++ b/sdk/constructive-react/src/config/hooks/mutations/use_secretsSetMutation.ts @@ -1,5 +1,5 @@ /** - * Custom mutation hook for bootstrapUser + * Custom mutation hook for _secretsSet * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -10,45 +10,45 @@ import { getClient } from '../client'; import { buildSelectionArgs } from '../selection'; import type { SelectionConfig } from '../selection'; import { customMutationKeys } from '../mutation-keys'; -import type { BootstrapUserVariables } from '../../orm/mutation'; -import type { BootstrapUserPayloadSelect, BootstrapUserPayload } from '../../orm/input-types'; +import type { _secretsSetVariables } from '../../orm/mutation'; +import type { _SecretsSetPayloadSelect, _SecretsSetPayload } from '../../orm/input-types'; import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; -export type { BootstrapUserVariables } from '../../orm/mutation'; -export type { BootstrapUserPayloadSelect } from '../../orm/input-types'; -export function useBootstrapUserMutation( +export type { _secretsSetVariables } from '../../orm/mutation'; +export type { _SecretsSetPayloadSelect } from '../../orm/input-types'; +export function use_secretsSetMutation( params: { selection: { - fields: S & BootstrapUserPayloadSelect; - } & HookStrictSelect, BootstrapUserPayloadSelect>; + fields: S & _SecretsSetPayloadSelect; + } & HookStrictSelect, _SecretsSetPayloadSelect>; } & Omit< UseMutationOptions< { - bootstrapUser: InferSelectResult | null; + _secretsSet: InferSelectResult<_SecretsSetPayload, S> | null; }, Error, - BootstrapUserVariables + _secretsSetVariables >, 'mutationFn' > ): UseMutationResult< { - bootstrapUser: InferSelectResult | null; + _secretsSet: InferSelectResult<_SecretsSetPayload, S> | null; }, Error, - BootstrapUserVariables + _secretsSetVariables > { const args = buildSelectionArgs(params.selection); const { selection: _selection, ...mutationOptions } = params ?? {}; void _selection; return useMutation({ - mutationKey: customMutationKeys.bootstrapUser(), - mutationFn: (variables: BootstrapUserVariables) => + mutationKey: customMutationKeys._secretsSet(), + mutationFn: (variables: _secretsSetVariables) => getClient() - .mutation.bootstrapUser(variables, { + .mutation._secretsSet(variables, { select: args.select, } as { select: S; - } & StrictSelect) + } & 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 688d688ac3..7168436402 100644 --- a/sdk/constructive-react/src/config/hooks/queries/index.ts +++ b/sdk/constructive-react/src/config/hooks/queries/index.ts @@ -3,7 +3,13 @@ * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ -export * from './usePlatformConfigDefinitionsQuery'; -export * from './usePlatformConfigDefinitionQuery'; export * from './usePlatformConfigsQuery'; export * from './usePlatformConfigQuery'; +export * from './useConfigsQuery'; +export * from './useConfigQuery'; +export * from './usePlatformInternalSecretsQuery'; +export * from './usePlatformInternalSecretQuery'; +export * from './usePlatformSecretsQuery'; +export * from './usePlatformSecretQuery'; +export * from './useSecretsQuery'; +export * from './useSecretQuery'; diff --git a/sdk/constructive-react/src/config/hooks/queries/useConfigQuery.ts b/sdk/constructive-react/src/config/hooks/queries/useConfigQuery.ts new file mode 100644 index 0000000000..36e86f4ea6 --- /dev/null +++ b/sdk/constructive-react/src/config/hooks/queries/useConfigQuery.ts @@ -0,0 +1,138 @@ +/** + * Namespace-backed plaintext key-value config store (like a k8s ConfigMap); admin-only, fully CRUD-exposed + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useQuery } from '@tanstack/react-query'; +import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { configKeys } from '../query-keys'; +import type { ConfigSelect, ConfigWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { ConfigSelect, ConfigWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const configQueryKey = configKeys.detail; +/** + * Namespace-backed plaintext key-value config store (like a k8s ConfigMap); admin-only, fully CRUD-exposed + * + * @example + * ```tsx + * const { data, isLoading } = useConfigQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useConfigQuery< + S extends ConfigSelect, + TData = { + config: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, ConfigSelect>; + } & Omit< + UseQueryOptions< + { + config: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useConfigQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: configKeys.detail(params.id), + queryFn: () => + getClient() + .config.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Namespace-backed plaintext key-value config store (like a k8s ConfigMap); admin-only, fully CRUD-exposed + * + * @example + * ```ts + * const data = await fetchConfigQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchConfigQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, ConfigSelect>; +}): Promise<{ + config: InferSelectResult | null; +}>; +export async function fetchConfigQuery(params: { + id: string; + selection: SelectionConfig; +}): Promise { + const args = buildSelectionArgs(params.selection); + return getClient() + .config.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Namespace-backed plaintext key-value config store (like a k8s ConfigMap); admin-only, fully CRUD-exposed + * + * @example + * ```ts + * await prefetchConfigQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchConfigQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, ConfigSelect>; + } +): Promise; +export async function prefetchConfigQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: configKeys.detail(params.id), + queryFn: () => + getClient() + .config.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/config/hooks/queries/useConfigsQuery.ts b/sdk/constructive-react/src/config/hooks/queries/useConfigsQuery.ts new file mode 100644 index 0000000000..aea66a5b0f --- /dev/null +++ b/sdk/constructive-react/src/config/hooks/queries/useConfigsQuery.ts @@ -0,0 +1,139 @@ +/** + * Namespace-backed plaintext key-value config store (like a k8s ConfigMap); admin-only, fully CRUD-exposed + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useQuery } from '@tanstack/react-query'; +import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildListSelectionArgs } from '../selection'; +import type { ListSelectionConfig } from '../selection'; +import { configKeys } from '../query-keys'; +import type { + ConfigSelect, + ConfigWithRelations, + ConfigFilter, + ConfigOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + ConfigSelect, + ConfigWithRelations, + ConfigFilter, + ConfigOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const configsQueryKey = configKeys.list; +/** + * Namespace-backed plaintext key-value config store (like a k8s ConfigMap); admin-only, fully CRUD-exposed + * + * @example + * ```tsx + * const { data, isLoading } = useConfigsQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useConfigsQuery< + S extends ConfigSelect, + TData = { + configs: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, ConfigSelect>; + } & Omit< + UseQueryOptions< + { + configs: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useConfigsQuery( + params: { + selection: ListSelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: configKeys.list(args), + queryFn: () => getClient().config.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Namespace-backed plaintext key-value config store (like a k8s ConfigMap); admin-only, fully CRUD-exposed + * + * @example + * ```ts + * const data = await fetchConfigsQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchConfigsQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, ConfigSelect>; +}): Promise<{ + configs: ConnectionResult>; +}>; +export async function fetchConfigsQuery(params: { + selection: ListSelectionConfig; +}) { + const args = buildListSelectionArgs(params.selection); + return getClient().config.findMany(args).unwrap(); +} +/** + * Namespace-backed plaintext key-value config store (like a k8s ConfigMap); admin-only, fully CRUD-exposed + * + * @example + * ```ts + * await prefetchConfigsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchConfigsQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, ConfigSelect>; + } +): Promise; +export async function prefetchConfigsQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig; + } +): Promise { + const args = buildListSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: configKeys.list(args), + queryFn: () => getClient().config.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/config/hooks/queries/usePlatformConfigDefinitionQuery.ts b/sdk/constructive-react/src/config/hooks/queries/usePlatformConfigDefinitionQuery.ts deleted file mode 100644 index 0a1560fb35..0000000000 --- a/sdk/constructive-react/src/config/hooks/queries/usePlatformConfigDefinitionQuery.ts +++ /dev/null @@ -1,151 +0,0 @@ -/** - * Registry of valid config keys — declares which config entries the platform recognizes - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { platformConfigDefinitionKeys } from '../query-keys'; -import type { - PlatformConfigDefinitionSelect, - PlatformConfigDefinitionWithRelations, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - PlatformConfigDefinitionSelect, - PlatformConfigDefinitionWithRelations, -} from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const platformConfigDefinitionQueryKey = platformConfigDefinitionKeys.detail; -/** - * Registry of valid config keys — declares which config entries the platform recognizes - * - * @example - * ```tsx - * const { data, isLoading } = usePlatformConfigDefinitionQuery({ - * id: 'some-id', - * selection: { fields: { id: true, name: true } }, - * }); - * ``` - */ -export function usePlatformConfigDefinitionQuery< - S extends PlatformConfigDefinitionSelect, - TData = { - platformConfigDefinition: InferSelectResult | null; - }, ->( - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, PlatformConfigDefinitionSelect>; - } & Omit< - UseQueryOptions< - { - platformConfigDefinition: InferSelectResult< - PlatformConfigDefinitionWithRelations, - S - > | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function usePlatformConfigDefinitionQuery( - params: { - id: string; - selection: SelectionConfig; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: platformConfigDefinitionKeys.detail(params.id), - queryFn: () => - getClient() - .platformConfigDefinition.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - ...queryOptions, - }); -} -/** - * Registry of valid config keys — declares which config entries the platform recognizes - * - * @example - * ```ts - * const data = await fetchPlatformConfigDefinitionQuery({ - * id: 'some-id', - * selection: { fields: { id: true } }, - * }); - * ``` - */ -export async function fetchPlatformConfigDefinitionQuery< - S extends PlatformConfigDefinitionSelect, ->(params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, PlatformConfigDefinitionSelect>; -}): Promise<{ - platformConfigDefinition: InferSelectResult | null; -}>; -export async function fetchPlatformConfigDefinitionQuery(params: { - id: string; - selection: SelectionConfig; -}): Promise { - const args = buildSelectionArgs(params.selection); - return getClient() - .platformConfigDefinition.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(); -} -/** - * Registry of valid config keys — declares which config entries the platform recognizes - * - * @example - * ```ts - * await prefetchPlatformConfigDefinitionQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); - * ``` - */ -export async function prefetchPlatformConfigDefinitionQuery< - S extends PlatformConfigDefinitionSelect, ->( - queryClient: QueryClient, - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, PlatformConfigDefinitionSelect>; - } -): Promise; -export async function prefetchPlatformConfigDefinitionQuery( - queryClient: QueryClient, - params: { - id: string; - selection: SelectionConfig; - } -): Promise { - const args = buildSelectionArgs(params.selection); - await queryClient.prefetchQuery({ - queryKey: platformConfigDefinitionKeys.detail(params.id), - queryFn: () => - getClient() - .platformConfigDefinition.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - }); -} diff --git a/sdk/constructive-react/src/config/hooks/queries/usePlatformConfigDefinitionsQuery.ts b/sdk/constructive-react/src/config/hooks/queries/usePlatformConfigDefinitionsQuery.ts deleted file mode 100644 index 0e07fa0f1c..0000000000 --- a/sdk/constructive-react/src/config/hooks/queries/usePlatformConfigDefinitionsQuery.ts +++ /dev/null @@ -1,182 +0,0 @@ -/** - * Registry of valid config keys — declares which config entries the platform recognizes - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildListSelectionArgs } from '../selection'; -import type { ListSelectionConfig } from '../selection'; -import { platformConfigDefinitionKeys } from '../query-keys'; -import type { - PlatformConfigDefinitionSelect, - PlatformConfigDefinitionWithRelations, - PlatformConfigDefinitionFilter, - PlatformConfigDefinitionOrderBy, -} from '../../orm/input-types'; -import type { - FindManyArgs, - InferSelectResult, - ConnectionResult, - HookStrictSelect, -} from '../../orm/select-types'; -export type { - PlatformConfigDefinitionSelect, - PlatformConfigDefinitionWithRelations, - PlatformConfigDefinitionFilter, - PlatformConfigDefinitionOrderBy, -} from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const platformConfigDefinitionsQueryKey = platformConfigDefinitionKeys.list; -/** - * Registry of valid config keys — declares which config entries the platform recognizes - * - * @example - * ```tsx - * const { data, isLoading } = usePlatformConfigDefinitionsQuery({ - * selection: { - * fields: { id: true, name: true }, - * where: { name: { equalTo: "example" } }, - * orderBy: ['CREATED_AT_DESC'], - * first: 10, - * }, - * }); - * ``` - */ -export function usePlatformConfigDefinitionsQuery< - S extends PlatformConfigDefinitionSelect, - TData = { - platformConfigDefinitions: ConnectionResult< - InferSelectResult - >; - }, ->( - params: { - selection: { - fields: S; - } & Omit< - ListSelectionConfig, - 'fields' - > & - HookStrictSelect, PlatformConfigDefinitionSelect>; - } & Omit< - UseQueryOptions< - { - platformConfigDefinitions: ConnectionResult< - InferSelectResult - >; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function usePlatformConfigDefinitionsQuery( - params: { - selection: ListSelectionConfig< - PlatformConfigDefinitionSelect, - PlatformConfigDefinitionFilter, - PlatformConfigDefinitionOrderBy - >; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildListSelectionArgs< - PlatformConfigDefinitionSelect, - PlatformConfigDefinitionFilter, - PlatformConfigDefinitionOrderBy - >(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: platformConfigDefinitionKeys.list(args), - queryFn: () => getClient().platformConfigDefinition.findMany(args).unwrap(), - ...queryOptions, - }); -} -/** - * Registry of valid config keys — declares which config entries the platform recognizes - * - * @example - * ```ts - * const data = await fetchPlatformConfigDefinitionsQuery({ - * selection: { - * fields: { id: true }, - * first: 10, - * }, - * }); - * ``` - */ -export async function fetchPlatformConfigDefinitionsQuery< - S extends PlatformConfigDefinitionSelect, ->(params: { - selection: { - fields: S; - } & Omit< - ListSelectionConfig, - 'fields' - > & - HookStrictSelect, PlatformConfigDefinitionSelect>; -}): Promise<{ - platformConfigDefinitions: ConnectionResult< - InferSelectResult - >; -}>; -export async function fetchPlatformConfigDefinitionsQuery(params: { - selection: ListSelectionConfig< - PlatformConfigDefinitionSelect, - PlatformConfigDefinitionFilter, - PlatformConfigDefinitionOrderBy - >; -}) { - const args = buildListSelectionArgs< - PlatformConfigDefinitionSelect, - PlatformConfigDefinitionFilter, - PlatformConfigDefinitionOrderBy - >(params.selection); - return getClient().platformConfigDefinition.findMany(args).unwrap(); -} -/** - * Registry of valid config keys — declares which config entries the platform recognizes - * - * @example - * ```ts - * await prefetchPlatformConfigDefinitionsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); - * ``` - */ -export async function prefetchPlatformConfigDefinitionsQuery< - S extends PlatformConfigDefinitionSelect, ->( - queryClient: QueryClient, - params: { - selection: { - fields: S; - } & Omit< - ListSelectionConfig, - 'fields' - > & - HookStrictSelect, PlatformConfigDefinitionSelect>; - } -): Promise; -export async function prefetchPlatformConfigDefinitionsQuery( - queryClient: QueryClient, - params: { - selection: ListSelectionConfig< - PlatformConfigDefinitionSelect, - PlatformConfigDefinitionFilter, - PlatformConfigDefinitionOrderBy - >; - } -): Promise { - const args = buildListSelectionArgs< - PlatformConfigDefinitionSelect, - PlatformConfigDefinitionFilter, - PlatformConfigDefinitionOrderBy - >(params.selection); - await queryClient.prefetchQuery({ - queryKey: platformConfigDefinitionKeys.list(args), - queryFn: () => getClient().platformConfigDefinition.findMany(args).unwrap(), - }); -} diff --git a/sdk/constructive-react/src/config/hooks/queries/usePlatformConfigQuery.ts b/sdk/constructive-react/src/config/hooks/queries/usePlatformConfigQuery.ts index a995879ed8..15aaffbf7a 100644 --- a/sdk/constructive-react/src/config/hooks/queries/usePlatformConfigQuery.ts +++ b/sdk/constructive-react/src/config/hooks/queries/usePlatformConfigQuery.ts @@ -1,5 +1,5 @@ /** - * App-level plaintext key-value config store (like a k8s ConfigMap); admin-only, fully CRUD-exposed + * Namespace-backed plaintext key-value config store (like a k8s ConfigMap); admin-only, fully CRUD-exposed * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -16,7 +16,7 @@ export type { PlatformConfigSelect, PlatformConfigWithRelations } from '../../or /** Query key factory - re-exported from query-keys.ts */ export const platformConfigQueryKey = platformConfigKeys.detail; /** - * App-level plaintext key-value config store (like a k8s ConfigMap); admin-only, fully CRUD-exposed + * Namespace-backed plaintext key-value config store (like a k8s ConfigMap); admin-only, fully CRUD-exposed * * @example * ```tsx @@ -70,7 +70,7 @@ export function usePlatformConfigQuery( }); } /** - * App-level plaintext key-value config store (like a k8s ConfigMap); admin-only, fully CRUD-exposed + * Namespace-backed plaintext key-value config store (like a k8s ConfigMap); admin-only, fully CRUD-exposed * * @example * ```ts @@ -101,7 +101,7 @@ export async function fetchPlatformConfigQuery(params: { .unwrap(); } /** - * App-level plaintext key-value config store (like a k8s ConfigMap); admin-only, fully CRUD-exposed + * Namespace-backed plaintext key-value config store (like a k8s ConfigMap); admin-only, fully CRUD-exposed * * @example * ```ts diff --git a/sdk/constructive-react/src/config/hooks/queries/usePlatformConfigsQuery.ts b/sdk/constructive-react/src/config/hooks/queries/usePlatformConfigsQuery.ts index 369aa1f176..ab1110fe4e 100644 --- a/sdk/constructive-react/src/config/hooks/queries/usePlatformConfigsQuery.ts +++ b/sdk/constructive-react/src/config/hooks/queries/usePlatformConfigsQuery.ts @@ -1,5 +1,5 @@ /** - * App-level plaintext key-value config store (like a k8s ConfigMap); admin-only, fully CRUD-exposed + * Namespace-backed plaintext key-value config store (like a k8s ConfigMap); admin-only, fully CRUD-exposed * @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 platformConfigsQueryKey = platformConfigKeys.list; /** - * App-level plaintext key-value config store (like a k8s ConfigMap); admin-only, fully CRUD-exposed + * Namespace-backed plaintext key-value config store (like a k8s ConfigMap); admin-only, fully CRUD-exposed * * @example * ```tsx @@ -90,7 +90,7 @@ export function usePlatformConfigsQuery( }); } /** - * App-level plaintext key-value config store (like a k8s ConfigMap); admin-only, fully CRUD-exposed + * Namespace-backed plaintext key-value config store (like a k8s ConfigMap); admin-only, fully CRUD-exposed * * @example * ```ts @@ -121,7 +121,7 @@ export async function fetchPlatformConfigsQuery(params: { return getClient().platformConfig.findMany(args).unwrap(); } /** - * App-level plaintext key-value config store (like a k8s ConfigMap); admin-only, fully CRUD-exposed + * Namespace-backed plaintext key-value config store (like a k8s ConfigMap); admin-only, fully CRUD-exposed * * @example * ```ts diff --git a/sdk/constructive-react/src/config/hooks/queries/usePlatformInternalSecretQuery.ts b/sdk/constructive-react/src/config/hooks/queries/usePlatformInternalSecretQuery.ts new file mode 100644 index 0000000000..baa6ca8639 --- /dev/null +++ b/sdk/constructive-react/src/config/hooks/queries/usePlatformInternalSecretQuery.ts @@ -0,0 +1,146 @@ +/** + * Single item query hook for PlatformInternalSecret + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useQuery } from '@tanstack/react-query'; +import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { platformInternalSecretKeys } from '../query-keys'; +import type { + PlatformInternalSecretSelect, + PlatformInternalSecretWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlatformInternalSecretSelect, + PlatformInternalSecretWithRelations, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const platformInternalSecretQueryKey = platformInternalSecretKeys.detail; +/** + * Query hook for fetching a single PlatformInternalSecret + * + * @example + * ```tsx + * const { data, isLoading } = usePlatformInternalSecretQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function usePlatformInternalSecretQuery< + S extends PlatformInternalSecretSelect, + TData = { + platformInternalSecret: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, PlatformInternalSecretSelect>; + } & Omit< + UseQueryOptions< + { + platformInternalSecret: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function usePlatformInternalSecretQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: platformInternalSecretKeys.detail(params.id), + queryFn: () => + getClient() + .platformInternalSecret.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Fetch a single PlatformInternalSecret without React hooks + * + * @example + * ```ts + * const data = await fetchPlatformInternalSecretQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchPlatformInternalSecretQuery< + S extends PlatformInternalSecretSelect, +>(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, PlatformInternalSecretSelect>; +}): Promise<{ + platformInternalSecret: InferSelectResult | null; +}>; +export async function fetchPlatformInternalSecretQuery(params: { + id: string; + selection: SelectionConfig; +}): Promise { + const args = buildSelectionArgs(params.selection); + return getClient() + .platformInternalSecret.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Prefetch a single PlatformInternalSecret for SSR or cache warming + * + * @example + * ```ts + * await prefetchPlatformInternalSecretQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchPlatformInternalSecretQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, PlatformInternalSecretSelect>; + } +): Promise; +export async function prefetchPlatformInternalSecretQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: platformInternalSecretKeys.detail(params.id), + queryFn: () => + getClient() + .platformInternalSecret.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/config/hooks/queries/usePlatformInternalSecretsQuery.ts b/sdk/constructive-react/src/config/hooks/queries/usePlatformInternalSecretsQuery.ts new file mode 100644 index 0000000000..aadb0a8e7f --- /dev/null +++ b/sdk/constructive-react/src/config/hooks/queries/usePlatformInternalSecretsQuery.ts @@ -0,0 +1,180 @@ +/** + * List query hook for PlatformInternalSecret + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useQuery } from '@tanstack/react-query'; +import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildListSelectionArgs } from '../selection'; +import type { ListSelectionConfig } from '../selection'; +import { platformInternalSecretKeys } from '../query-keys'; +import type { + PlatformInternalSecretSelect, + PlatformInternalSecretWithRelations, + PlatformInternalSecretFilter, + PlatformInternalSecretOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + PlatformInternalSecretSelect, + PlatformInternalSecretWithRelations, + PlatformInternalSecretFilter, + PlatformInternalSecretOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const platformInternalSecretsQueryKey = platformInternalSecretKeys.list; +/** + * Query hook for fetching PlatformInternalSecret list + * + * @example + * ```tsx + * const { data, isLoading } = usePlatformInternalSecretsQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function usePlatformInternalSecretsQuery< + S extends PlatformInternalSecretSelect, + TData = { + platformInternalSecrets: ConnectionResult< + InferSelectResult + >; + }, +>( + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, PlatformInternalSecretSelect>; + } & Omit< + UseQueryOptions< + { + platformInternalSecrets: ConnectionResult< + InferSelectResult + >; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function usePlatformInternalSecretsQuery( + params: { + selection: ListSelectionConfig< + PlatformInternalSecretSelect, + PlatformInternalSecretFilter, + PlatformInternalSecretOrderBy + >; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + PlatformInternalSecretSelect, + PlatformInternalSecretFilter, + PlatformInternalSecretOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: platformInternalSecretKeys.list(args), + queryFn: () => getClient().platformInternalSecret.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch PlatformInternalSecret list without React hooks + * + * @example + * ```ts + * const data = await fetchPlatformInternalSecretsQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchPlatformInternalSecretsQuery< + S extends PlatformInternalSecretSelect, +>(params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, PlatformInternalSecretSelect>; +}): Promise<{ + platformInternalSecrets: ConnectionResult< + InferSelectResult + >; +}>; +export async function fetchPlatformInternalSecretsQuery(params: { + selection: ListSelectionConfig< + PlatformInternalSecretSelect, + PlatformInternalSecretFilter, + PlatformInternalSecretOrderBy + >; +}) { + const args = buildListSelectionArgs< + PlatformInternalSecretSelect, + PlatformInternalSecretFilter, + PlatformInternalSecretOrderBy + >(params.selection); + return getClient().platformInternalSecret.findMany(args).unwrap(); +} +/** + * Prefetch PlatformInternalSecret list for SSR or cache warming + * + * @example + * ```ts + * await prefetchPlatformInternalSecretsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchPlatformInternalSecretsQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, PlatformInternalSecretSelect>; + } +): Promise; +export async function prefetchPlatformInternalSecretsQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig< + PlatformInternalSecretSelect, + PlatformInternalSecretFilter, + PlatformInternalSecretOrderBy + >; + } +): Promise { + const args = buildListSelectionArgs< + PlatformInternalSecretSelect, + PlatformInternalSecretFilter, + PlatformInternalSecretOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: platformInternalSecretKeys.list(args), + queryFn: () => getClient().platformInternalSecret.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/config/hooks/queries/usePlatformSecretQuery.ts b/sdk/constructive-react/src/config/hooks/queries/usePlatformSecretQuery.ts new file mode 100644 index 0000000000..fc155b2d11 --- /dev/null +++ b/sdk/constructive-react/src/config/hooks/queries/usePlatformSecretQuery.ts @@ -0,0 +1,138 @@ +/** + * Single item query hook for PlatformSecret + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useQuery } from '@tanstack/react-query'; +import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { platformSecretKeys } from '../query-keys'; +import type { PlatformSecretSelect, PlatformSecretWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { PlatformSecretSelect, PlatformSecretWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const platformSecretQueryKey = platformSecretKeys.detail; +/** + * Query hook for fetching a single PlatformSecret + * + * @example + * ```tsx + * const { data, isLoading } = usePlatformSecretQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function usePlatformSecretQuery< + S extends PlatformSecretSelect, + TData = { + platformSecret: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, PlatformSecretSelect>; + } & Omit< + UseQueryOptions< + { + platformSecret: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function usePlatformSecretQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: platformSecretKeys.detail(params.id), + queryFn: () => + getClient() + .platformSecret.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Fetch a single PlatformSecret without React hooks + * + * @example + * ```ts + * const data = await fetchPlatformSecretQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchPlatformSecretQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, PlatformSecretSelect>; +}): Promise<{ + platformSecret: InferSelectResult | null; +}>; +export async function fetchPlatformSecretQuery(params: { + id: string; + selection: SelectionConfig; +}): Promise { + const args = buildSelectionArgs(params.selection); + return getClient() + .platformSecret.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Prefetch a single PlatformSecret for SSR or cache warming + * + * @example + * ```ts + * await prefetchPlatformSecretQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchPlatformSecretQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, PlatformSecretSelect>; + } +): Promise; +export async function prefetchPlatformSecretQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: platformSecretKeys.detail(params.id), + queryFn: () => + getClient() + .platformSecret.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/config/hooks/queries/usePlatformSecretsQuery.ts b/sdk/constructive-react/src/config/hooks/queries/usePlatformSecretsQuery.ts new file mode 100644 index 0000000000..5067651884 --- /dev/null +++ b/sdk/constructive-react/src/config/hooks/queries/usePlatformSecretsQuery.ts @@ -0,0 +1,159 @@ +/** + * List query hook for PlatformSecret + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useQuery } from '@tanstack/react-query'; +import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildListSelectionArgs } from '../selection'; +import type { ListSelectionConfig } from '../selection'; +import { platformSecretKeys } from '../query-keys'; +import type { + PlatformSecretSelect, + PlatformSecretWithRelations, + PlatformSecretFilter, + PlatformSecretOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + PlatformSecretSelect, + PlatformSecretWithRelations, + PlatformSecretFilter, + PlatformSecretOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const platformSecretsQueryKey = platformSecretKeys.list; +/** + * Query hook for fetching PlatformSecret list + * + * @example + * ```tsx + * const { data, isLoading } = usePlatformSecretsQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function usePlatformSecretsQuery< + S extends PlatformSecretSelect, + TData = { + platformSecrets: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, PlatformSecretSelect>; + } & Omit< + UseQueryOptions< + { + platformSecrets: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function usePlatformSecretsQuery( + params: { + selection: ListSelectionConfig< + PlatformSecretSelect, + PlatformSecretFilter, + PlatformSecretOrderBy + >; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + PlatformSecretSelect, + PlatformSecretFilter, + PlatformSecretOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: platformSecretKeys.list(args), + queryFn: () => getClient().platformSecret.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch PlatformSecret list without React hooks + * + * @example + * ```ts + * const data = await fetchPlatformSecretsQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchPlatformSecretsQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, PlatformSecretSelect>; +}): Promise<{ + platformSecrets: ConnectionResult>; +}>; +export async function fetchPlatformSecretsQuery(params: { + selection: ListSelectionConfig; +}) { + const args = buildListSelectionArgs< + PlatformSecretSelect, + PlatformSecretFilter, + PlatformSecretOrderBy + >(params.selection); + return getClient().platformSecret.findMany(args).unwrap(); +} +/** + * Prefetch PlatformSecret list for SSR or cache warming + * + * @example + * ```ts + * await prefetchPlatformSecretsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchPlatformSecretsQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, PlatformSecretSelect>; + } +): Promise; +export async function prefetchPlatformSecretsQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig< + PlatformSecretSelect, + PlatformSecretFilter, + PlatformSecretOrderBy + >; + } +): Promise { + const args = buildListSelectionArgs< + PlatformSecretSelect, + PlatformSecretFilter, + PlatformSecretOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: platformSecretKeys.list(args), + queryFn: () => getClient().platformSecret.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/config/hooks/queries/useSecretQuery.ts b/sdk/constructive-react/src/config/hooks/queries/useSecretQuery.ts new file mode 100644 index 0000000000..a0908d3dbd --- /dev/null +++ b/sdk/constructive-react/src/config/hooks/queries/useSecretQuery.ts @@ -0,0 +1,138 @@ +/** + * Single item query hook for 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 { secretKeys } from '../query-keys'; +import type { SecretSelect, SecretWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { SecretSelect, SecretWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const secretQueryKey = secretKeys.detail; +/** + * Query hook for fetching a single Secret + * + * @example + * ```tsx + * const { data, isLoading } = useSecretQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useSecretQuery< + S extends SecretSelect, + TData = { + secret: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, SecretSelect>; + } & Omit< + UseQueryOptions< + { + secret: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useSecretQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: secretKeys.detail(params.id), + queryFn: () => + getClient() + .secret.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Fetch a single Secret without React hooks + * + * @example + * ```ts + * const data = await fetchSecretQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchSecretQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, SecretSelect>; +}): Promise<{ + secret: InferSelectResult | null; +}>; +export async function fetchSecretQuery(params: { + id: string; + selection: SelectionConfig; +}): Promise { + const args = buildSelectionArgs(params.selection); + return getClient() + .secret.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Prefetch a single Secret for SSR or cache warming + * + * @example + * ```ts + * await prefetchSecretQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchSecretQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, SecretSelect>; + } +): Promise; +export async function prefetchSecretQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: secretKeys.detail(params.id), + queryFn: () => + getClient() + .secret.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/config/hooks/queries/useSecretsQuery.ts b/sdk/constructive-react/src/config/hooks/queries/useSecretsQuery.ts new file mode 100644 index 0000000000..07dc64027b --- /dev/null +++ b/sdk/constructive-react/src/config/hooks/queries/useSecretsQuery.ts @@ -0,0 +1,139 @@ +/** + * List query hook for 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 { secretKeys } from '../query-keys'; +import type { + SecretSelect, + SecretWithRelations, + SecretFilter, + SecretOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + SecretSelect, + SecretWithRelations, + SecretFilter, + SecretOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const secretsQueryKey = secretKeys.list; +/** + * Query hook for fetching Secret list + * + * @example + * ```tsx + * const { data, isLoading } = useSecretsQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useSecretsQuery< + S extends SecretSelect, + TData = { + secrets: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, SecretSelect>; + } & Omit< + UseQueryOptions< + { + secrets: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useSecretsQuery( + params: { + selection: ListSelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: secretKeys.list(args), + queryFn: () => getClient().secret.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch Secret list without React hooks + * + * @example + * ```ts + * const data = await fetchSecretsQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchSecretsQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, SecretSelect>; +}): Promise<{ + secrets: ConnectionResult>; +}>; +export async function fetchSecretsQuery(params: { + selection: ListSelectionConfig; +}) { + const args = buildListSelectionArgs(params.selection); + return getClient().secret.findMany(args).unwrap(); +} +/** + * Prefetch Secret list for SSR or cache warming + * + * @example + * ```ts + * await prefetchSecretsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchSecretsQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, SecretSelect>; + } +): Promise; +export async function prefetchSecretsQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig; + } +): Promise { + const args = buildListSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: secretKeys.list(args), + queryFn: () => getClient().secret.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 320580e957..32bc628f65 100644 --- a/sdk/constructive-react/src/config/hooks/query-keys.ts +++ b/sdk/constructive-react/src/config/hooks/query-keys.ts @@ -19,15 +19,6 @@ // Entity Query Keys // ============================================================================ -export const platformConfigDefinitionKeys = { - /** All platformConfigDefinition queries */ all: ['platformconfigdefinition'] as const, - /** List query keys */ lists: () => [...platformConfigDefinitionKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...platformConfigDefinitionKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...platformConfigDefinitionKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...platformConfigDefinitionKeys.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 +28,42 @@ export const platformConfigKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...platformConfigKeys.details(), id] as const, } as const; +export const configKeys = { + /** All config queries */ all: ['config'] as const, + /** List query keys */ lists: () => [...configKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...configKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...configKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...configKeys.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, + /** List query key with variables */ list: (variables?: object) => + [...platformInternalSecretKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...platformInternalSecretKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...platformInternalSecretKeys.details(), id] as const, +} as const; +export const platformSecretKeys = { + /** All platformSecret queries */ all: ['platformsecret'] as const, + /** List query keys */ lists: () => [...platformSecretKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...platformSecretKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...platformSecretKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...platformSecretKeys.details(), id] as const, +} as const; +export const secretKeys = { + /** All secret queries */ all: ['secret'] as const, + /** List query keys */ lists: () => [...secretKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...secretKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...secretKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...secretKeys.details(), id] as const, +} as const; /** // ============================================================================ @@ -60,8 +87,11 @@ export const platformConfigKeys = { * ``` */ export const queryKeys = { - platformConfigDefinition: platformConfigDefinitionKeys, platformConfig: platformConfigKeys, + config: configKeys, + platformInternalSecret: platformInternalSecretKeys, + platformSecret: platformSecretKeys, + secret: secretKeys, } as const; /** Type representing all available query key scopes */ export type QueryKeyScope = keyof typeof queryKeys; diff --git a/sdk/constructive-react/src/config/orm/README.md b/sdk/constructive-react/src/config/orm/README.md index 803661dc8e..767f523c89 100644 --- a/sdk/constructive-react/src/config/orm/README.md +++ b/sdk/constructive-react/src/config/orm/README.md @@ -21,51 +21,56 @@ const db = createClient({ | Model | Operations | |-------|------------| -| `platformConfigDefinition` | findMany, findOne, create, update, delete | | `platformConfig` | findMany, findOne, create, update, delete | +| `config` | findMany, findOne, create, update, delete | +| `platformInternalSecret` | findMany, findOne, create, update, delete | +| `platformSecret` | findMany, findOne, create, update, delete | +| `secret` | findMany, findOne, create, update, delete | ## Table Operations -### `db.platformConfigDefinition` +### `db.platformConfig` -CRUD operations for PlatformConfigDefinition records. +CRUD operations for PlatformConfig records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | +| `namespaceId` | UUID | Yes | | `name` | String | Yes | -| `description` | String | Yes | -| `defaultValue` | String | Yes | -| `isBuiltIn` | Boolean | Yes | +| `provider` | String | Yes | +| `value` | String | Yes | | `labels` | JSON | Yes | | `annotations` | JSON | Yes | +| `description` | String | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | +| `expiresAt` | Datetime | Yes | **Operations:** ```typescript -// List all platformConfigDefinition records -const items = await db.platformConfigDefinition.findMany({ select: { id: true, createdAt: true, updatedAt: true, name: true, description: true, defaultValue: true, isBuiltIn: true, labels: true, annotations: true } }).execute(); +// List all platformConfig records +const items = await db.platformConfig.findMany({ select: { id: true, namespaceId: true, name: true, provider: true, value: true, labels: true, annotations: true, description: true, createdAt: true, updatedAt: true, expiresAt: true } }).execute(); // Get one by id -const item = await db.platformConfigDefinition.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, name: true, description: true, defaultValue: true, isBuiltIn: true, labels: true, annotations: true } }).execute(); +const item = await db.platformConfig.findOne({ id: '', select: { id: true, namespaceId: true, name: true, provider: true, value: true, labels: true, annotations: true, description: true, createdAt: true, updatedAt: true, expiresAt: true } }).execute(); // Create -const created = await db.platformConfigDefinition.create({ data: { name: '', description: '', defaultValue: '', isBuiltIn: '', labels: '', annotations: '' }, select: { id: true } }).execute(); +const created = await db.platformConfig.create({ data: { namespaceId: '', name: '', provider: '', value: '', labels: '', annotations: '', description: '', expiresAt: '' }, select: { id: true } }).execute(); // Update -const updated = await db.platformConfigDefinition.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.platformConfig.update({ where: { id: '' }, data: { namespaceId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.platformConfigDefinition.delete({ where: { id: '' } }).execute(); +const deleted = await db.platformConfig.delete({ where: { id: '' } }).execute(); ``` -### `db.platformConfig` +### `db.config` -CRUD operations for PlatformConfig records. +CRUD operations for Config records. **Fields:** @@ -73,7 +78,9 @@ CRUD operations for PlatformConfig records. |-------|------|----------| | `id` | UUID | No | | `namespaceId` | UUID | Yes | +| `databaseId` | UUID | Yes | | `name` | String | Yes | +| `provider` | String | Yes | | `value` | String | Yes | | `labels` | JSON | Yes | | `annotations` | JSON | Yes | @@ -85,24 +92,156 @@ CRUD operations for PlatformConfig records. **Operations:** ```typescript -// List all platformConfig records -const items = await db.platformConfig.findMany({ select: { id: true, namespaceId: true, name: true, value: true, labels: true, annotations: true, description: true, createdAt: true, updatedAt: true, expiresAt: true } }).execute(); +// List all config records +const items = await db.config.findMany({ select: { id: true, namespaceId: true, databaseId: true, name: true, provider: true, value: true, labels: true, annotations: true, description: true, createdAt: true, updatedAt: true, expiresAt: true } }).execute(); // Get one by id -const item = await db.platformConfig.findOne({ id: '', select: { id: true, namespaceId: true, name: true, value: true, labels: true, annotations: true, description: true, createdAt: true, updatedAt: true, expiresAt: true } }).execute(); +const item = await db.config.findOne({ id: '', select: { id: true, namespaceId: true, databaseId: true, name: true, provider: true, value: true, labels: true, annotations: true, description: true, createdAt: true, updatedAt: true, expiresAt: true } }).execute(); // Create -const created = await db.platformConfig.create({ data: { namespaceId: '', name: '', value: '', labels: '', annotations: '', description: '', expiresAt: '' }, select: { id: true } }).execute(); +const created = await db.config.create({ data: { namespaceId: '', databaseId: '', name: '', provider: '', value: '', labels: '', annotations: '', description: '', expiresAt: '' }, select: { id: true } }).execute(); // Update -const updated = await db.platformConfig.update({ where: { id: '' }, data: { namespaceId: '' }, select: { id: true } }).execute(); +const updated = await db.config.update({ where: { id: '' }, data: { namespaceId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.platformConfig.delete({ where: { id: '' } }).execute(); +const deleted = await db.config.delete({ where: { id: '' } }).execute(); +``` + +### `db.platformInternalSecret` + +CRUD operations for PlatformInternalSecret records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `name` | String | Yes | +| `namespaceId` | UUID | Yes | +| `description` | String | Yes | +| `labels` | JSON | Yes | +| `annotations` | JSON | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | +| `rotatedAt` | Datetime | Yes | +| `retiredAt` | Datetime | Yes | + +**Operations:** + +```typescript +// List all platformInternalSecret records +const items = await db.platformInternalSecret.findMany({ select: { id: true, name: true, namespaceId: true, description: true, labels: true, annotations: true, createdAt: true, updatedAt: true, rotatedAt: true, retiredAt: true } }).execute(); + +// Get one by id +const item = await db.platformInternalSecret.findOne({ id: '', select: { id: true, name: true, namespaceId: true, description: true, labels: true, annotations: true, createdAt: true, updatedAt: true, rotatedAt: true, retiredAt: true } }).execute(); + +// Create +const created = await db.platformInternalSecret.create({ data: { name: '', namespaceId: '', description: '', labels: '', annotations: '', rotatedAt: '', retiredAt: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformInternalSecret.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformInternalSecret.delete({ where: { id: '' } }).execute(); +``` + +### `db.platformSecret` + +CRUD operations for PlatformSecret records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `name` | String | Yes | +| `provider` | String | Yes | +| `namespaceId` | UUID | Yes | +| `description` | String | Yes | +| `labels` | JSON | Yes | +| `annotations` | JSON | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | +| `rotatedAt` | Datetime | Yes | +| `retiredAt` | Datetime | Yes | + +**Operations:** + +```typescript +// List all platformSecret records +const items = await db.platformSecret.findMany({ select: { id: true, name: true, provider: true, namespaceId: true, description: true, labels: true, annotations: true, createdAt: true, updatedAt: true, rotatedAt: true, retiredAt: true } }).execute(); + +// Get one by id +const item = await db.platformSecret.findOne({ id: '', select: { id: true, name: true, provider: true, namespaceId: true, description: true, labels: true, annotations: true, createdAt: true, updatedAt: true, rotatedAt: true, retiredAt: true } }).execute(); + +// Create +const created = await db.platformSecret.create({ data: { name: '', provider: '', namespaceId: '', description: '', labels: '', annotations: '', rotatedAt: '', retiredAt: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformSecret.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformSecret.delete({ where: { id: '' } }).execute(); +``` + +### `db.secret` + +CRUD operations for Secret records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `databaseId` | UUID | Yes | +| `id` | UUID | No | +| `name` | String | Yes | +| `provider` | String | Yes | +| `namespaceId` | UUID | Yes | +| `description` | String | Yes | +| `labels` | JSON | Yes | +| `annotations` | JSON | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | +| `rotatedAt` | Datetime | Yes | +| `retiredAt` | Datetime | Yes | + +**Operations:** + +```typescript +// List all secret records +const items = await db.secret.findMany({ select: { databaseId: true, id: true, name: true, provider: true, namespaceId: true, description: true, labels: true, annotations: true, createdAt: true, updatedAt: true, rotatedAt: true, retiredAt: true } }).execute(); + +// Get one by id +const item = await db.secret.findOne({ id: '', select: { databaseId: true, id: true, name: true, provider: true, namespaceId: true, description: true, labels: true, annotations: true, createdAt: true, updatedAt: true, rotatedAt: true, retiredAt: true } }).execute(); + +// Create +const created = await db.secret.create({ data: { databaseId: '', name: '', provider: '', namespaceId: '', description: '', labels: '', annotations: '', rotatedAt: '', retiredAt: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.secret.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.secret.delete({ where: { id: '' } }).execute(); ``` ## Custom Operations +### `db.mutation.platformInternalSecretsDel` + +platformInternalSecretsDel + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | PlatformInternalSecretsDelInput (required) | + +```typescript +const result = await db.mutation.platformInternalSecretsDel({ input: { secretName: '', namespaceId: '' } }).execute(); +``` + ### `db.mutation.platformSecretsDel` platformSecretsDel @@ -118,19 +257,34 @@ platformSecretsDel const result = await db.mutation.platformSecretsDel({ input: { secretName: '', namespaceId: '' } }).execute(); ``` -### `db.mutation.orgSecretsDel` +### `db.mutation._secretsDel` + +_secretsDel + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | _SecretsDelInput (required) | + +```typescript +const result = await db.mutation._secretsDel({ input: { databaseId: '', secretName: '', namespaceId: '' } }).execute(); +``` + +### `db.mutation.platformInternalSecretsRemoveArray` -orgSecretsDel +platformInternalSecretsRemoveArray - **Type:** mutation - **Arguments:** | Argument | Type | |----------|------| - | `input` | OrgSecretsDelInput (required) | + | `input` | PlatformInternalSecretsRemoveArrayInput (required) | ```typescript -const result = await db.mutation.orgSecretsDel({ input: { ownerId: '', secretName: '', namespaceId: '' } }).execute(); +const result = await db.mutation.platformInternalSecretsRemoveArray({ input: { secretNames: '', namespaceId: '' } }).execute(); ``` ### `db.mutation.platformSecretsRemoveArray` @@ -148,19 +302,49 @@ platformSecretsRemoveArray const result = await db.mutation.platformSecretsRemoveArray({ input: { secretNames: '', namespaceId: '' } }).execute(); ``` -### `db.mutation.orgSecretsRemoveArray` +### `db.mutation._secretsRemoveArray` + +_secretsRemoveArray + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | _SecretsRemoveArrayInput (required) | + +```typescript +const result = await db.mutation._secretsRemoveArray({ input: { databaseId: '', secretNames: '', namespaceId: '' } }).execute(); +``` + +### `db.mutation.platformInternalSecretsRotate` -orgSecretsRemoveArray +platformInternalSecretsRotate - **Type:** mutation - **Arguments:** | Argument | Type | |----------|------| - | `input` | OrgSecretsRemoveArrayInput (required) | + | `input` | PlatformInternalSecretsRotateInput (required) | ```typescript -const result = await db.mutation.orgSecretsRemoveArray({ input: { ownerId: '', secretNames: '', namespaceId: '' } }).execute(); +const result = await db.mutation.platformInternalSecretsRotate({ input: { secretName: '', secretValue: '', namespaceId: '', algo: '' } }).execute(); +``` + +### `db.mutation.platformInternalSecretsSet` + +platformInternalSecretsSet + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | PlatformInternalSecretsSetInput (required) | + +```typescript +const result = await db.mutation.platformInternalSecretsSet({ input: { secretName: '', secretValue: '', secretNamespaceId: '', algo: '' } }).execute(); ``` ### `db.mutation.platformSecretsRotate` @@ -178,49 +362,49 @@ platformSecretsRotate const result = await db.mutation.platformSecretsRotate({ input: { secretName: '', secretValue: '', namespaceId: '', algo: '' } }).execute(); ``` -### `db.mutation.platformSecretsSet` +### `db.mutation._secretsRotate` -platformSecretsSet +_secretsRotate - **Type:** mutation - **Arguments:** | Argument | Type | |----------|------| - | `input` | PlatformSecretsSetInput (required) | + | `input` | _SecretsRotateInput (required) | ```typescript -const result = await db.mutation.platformSecretsSet({ input: { secretName: '', secretValue: '', secretNamespaceId: '', algo: '' } }).execute(); +const result = await db.mutation._secretsRotate({ input: { databaseId: '', secretName: '', secretValue: '', namespaceId: '', algo: '' } }).execute(); ``` -### `db.mutation.orgSecretsRotate` +### `db.mutation.platformSecretsSet` -orgSecretsRotate +platformSecretsSet - **Type:** mutation - **Arguments:** | Argument | Type | |----------|------| - | `input` | OrgSecretsRotateInput (required) | + | `input` | PlatformSecretsSetInput (required) | ```typescript -const result = await db.mutation.orgSecretsRotate({ input: { ownerId: '', secretName: '', secretValue: '', namespaceId: '', algo: '' } }).execute(); +const result = await db.mutation.platformSecretsSet({ input: { secretName: '', secretValue: '', secretNamespaceId: '', algo: '', provider: '' } }).execute(); ``` -### `db.mutation.orgSecretsSet` +### `db.mutation._secretsSet` -orgSecretsSet +_secretsSet - **Type:** mutation - **Arguments:** | Argument | Type | |----------|------| - | `input` | OrgSecretsSetInput (required) | + | `input` | _SecretsSetInput (required) | ```typescript -const result = await db.mutation.orgSecretsSet({ input: { scopeOwnerId: '', secretName: '', secretValue: '', secretNamespaceId: '', algo: '' } }).execute(); +const result = await db.mutation._secretsSet({ input: '<_SecretsSetInput>' }).execute(); ``` ### `db.mutation.provisionBucket` diff --git a/sdk/constructive-react/src/config/orm/index.ts b/sdk/constructive-react/src/config/orm/index.ts index 9ea4028079..eef38276fc 100644 --- a/sdk/constructive-react/src/config/orm/index.ts +++ b/sdk/constructive-react/src/config/orm/index.ts @@ -5,8 +5,11 @@ */ import { OrmClient } from './client'; import type { OrmClientConfig } from './client'; -import { PlatformConfigDefinitionModel } from './models/platformConfigDefinition'; import { PlatformConfigModel } from './models/platformConfig'; +import { ConfigModel } from './models/config'; +import { PlatformInternalSecretModel } from './models/platformInternalSecret'; +import { PlatformSecretModel } from './models/platformSecret'; +import { SecretModel } from './models/secret'; import { createMutationOperations } from './mutation'; export type { OrmClientConfig, QueryResult, GraphQLError, GraphQLAdapter } from './client'; export { GraphQLRequestError, FetchAdapter } from './client'; @@ -40,8 +43,11 @@ export { createMutationOperations } from './mutation'; export function createClient(config: OrmClientConfig) { const client = new OrmClient(config); return { - platformConfigDefinition: new PlatformConfigDefinitionModel(client), platformConfig: new PlatformConfigModel(client), + config: new ConfigModel(client), + platformInternalSecret: new PlatformInternalSecretModel(client), + platformSecret: new PlatformSecretModel(client), + secret: new SecretModel(client), mutation: createMutationOperations(client), }; } diff --git a/sdk/constructive-react/src/config/orm/input-types.ts b/sdk/constructive-react/src/config/orm/input-types.ts index 693309a1fb..0da12a05d0 100644 --- a/sdk/constructive-react/src/config/orm/input-types.ts +++ b/sdk/constructive-react/src/config/orm/input-types.ts @@ -230,34 +230,42 @@ export interface UUIDListFilter { anyGreaterThan?: string; anyGreaterThanOrEqualTo?: string; } -/** Registry of valid config keys — declares which config entries the platform recognizes */ +/** Namespace-backed plaintext key-value config store (like a k8s ConfigMap); admin-only, fully CRUD-exposed */ // ============ Entity Types ============ -export interface PlatformConfigDefinition { - /** Unique identifier for this config definition */ +export interface PlatformConfig { + /** Unique identifier for this config entry */ id: string; - createdAt?: string | null; - updatedAt?: string | null; - /** Config key name (must match config table name for resolution) */ + /** FK to namespaces — logical grouping for config entries */ + namespaceId?: string | null; + /** Key name identifying the config entry */ name?: string | null; - /** Human-readable description of what this config key controls */ - description?: string | null; - /** Default value used when no config entry exists for a namespace */ - defaultValue?: string | null; - /** Whether this row was seeded as a built-in config definition */ - isBuiltIn?: boolean | null; - /** Key-value metadata for filtering and grouping config definitions */ + /** Integration provider slug (e.g. mailgun, postgres). Used by the UI to group config entries by integration. No FK. */ + provider?: string | null; + /** Plaintext config value */ + value?: string | null; + /** Key/value pairs for selecting/filtering config entries */ labels?: Record | null; - /** Freeform metadata annotations for config definitions */ + /** Freeform metadata for tooling and operational notes */ annotations?: Record | null; + /** Human-readable note about this config entry */ + description?: string | null; + createdAt?: string | null; + updatedAt?: string | null; + /** Optional expiration timestamp for time-limited config entries */ + expiresAt?: string | null; } -/** App-level plaintext key-value config store (like a k8s ConfigMap); admin-only, fully CRUD-exposed */ -export interface PlatformConfig { +/** Namespace-backed plaintext key-value config store (like a k8s ConfigMap); admin-only, fully CRUD-exposed */ +export interface Config { /** Unique identifier for this config entry */ id: string; /** FK to namespaces — logical grouping for config entries */ namespaceId?: string | null; + /** Database that owns this resource (database-scoped isolation) */ + databaseId?: string | 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; /** Plaintext config value */ value?: string | null; /** Key/value pairs for selecting/filtering config entries */ @@ -271,6 +279,45 @@ export interface PlatformConfig { /** Optional expiration timestamp for time-limited config entries */ expiresAt?: string | null; } +export interface PlatformInternalSecret { + id: string; + name?: string | null; + namespaceId?: string | null; + description?: string | null; + labels?: Record | null; + annotations?: Record | null; + createdAt?: string | null; + updatedAt?: string | null; + rotatedAt?: string | null; + retiredAt?: string | null; +} +export interface PlatformSecret { + id: string; + name?: string | null; + provider?: string | null; + namespaceId?: string | null; + description?: string | null; + labels?: Record | null; + annotations?: Record | null; + createdAt?: string | null; + updatedAt?: string | null; + rotatedAt?: string | null; + retiredAt?: string | null; +} +export interface Secret { + databaseId?: string | null; + id: string; + name?: string | null; + provider?: string | null; + namespaceId?: string | null; + description?: string | null; + labels?: Record | null; + annotations?: Record | null; + createdAt?: string | null; + updatedAt?: string | null; + rotatedAt?: string | null; + retiredAt?: string | null; +} // ============ Relation Helper Types ============ export interface ConnectionResult { nodes: T[]; @@ -284,28 +331,38 @@ export interface PageInfo { endCursor?: string | null; } // ============ Entity Relation Types ============ -export interface PlatformConfigDefinitionRelations {} export interface PlatformConfigRelations {} +export interface ConfigRelations {} +export interface PlatformInternalSecretRelations {} +export interface PlatformSecretRelations {} +export interface SecretRelations {} // ============ Entity Types With Relations ============ -export type PlatformConfigDefinitionWithRelations = PlatformConfigDefinition & - PlatformConfigDefinitionRelations; export type PlatformConfigWithRelations = PlatformConfig & PlatformConfigRelations; +export type ConfigWithRelations = Config & ConfigRelations; +export type PlatformInternalSecretWithRelations = PlatformInternalSecret & + PlatformInternalSecretRelations; +export type PlatformSecretWithRelations = PlatformSecret & PlatformSecretRelations; +export type SecretWithRelations = Secret & SecretRelations; // ============ Entity Select Types ============ -export type PlatformConfigDefinitionSelect = { +export type PlatformConfigSelect = { id?: boolean; - createdAt?: boolean; - updatedAt?: boolean; + namespaceId?: boolean; name?: boolean; - description?: boolean; - defaultValue?: boolean; - isBuiltIn?: boolean; + provider?: boolean; + value?: boolean; labels?: boolean; annotations?: boolean; + description?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + expiresAt?: boolean; }; -export type PlatformConfigSelect = { +export type ConfigSelect = { id?: boolean; namespaceId?: boolean; + databaseId?: boolean; name?: boolean; + provider?: boolean; value?: boolean; labels?: boolean; annotations?: boolean; @@ -314,40 +371,87 @@ export type PlatformConfigSelect = { updatedAt?: boolean; expiresAt?: boolean; }; +export type PlatformInternalSecretSelect = { + id?: boolean; + name?: boolean; + namespaceId?: boolean; + description?: boolean; + labels?: boolean; + annotations?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + rotatedAt?: boolean; + retiredAt?: boolean; +}; +export type PlatformSecretSelect = { + id?: boolean; + name?: boolean; + provider?: boolean; + namespaceId?: boolean; + description?: boolean; + labels?: boolean; + annotations?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + rotatedAt?: boolean; + retiredAt?: boolean; +}; +export type SecretSelect = { + databaseId?: boolean; + id?: boolean; + name?: boolean; + provider?: boolean; + namespaceId?: boolean; + description?: boolean; + labels?: boolean; + annotations?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + rotatedAt?: boolean; + retiredAt?: boolean; +}; // ============ Table Filter Types ============ -export interface PlatformConfigDefinitionFilter { +export interface PlatformConfigFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Filter by the object’s `defaultValue` field. */ - defaultValue?: StringFilter; - /** Filter by the object’s `isBuiltIn` field. */ - isBuiltIn?: BooleanFilter; + /** Filter by the object’s `provider` field. */ + provider?: StringFilter; + /** Filter by the object’s `value` field. */ + value?: StringFilter; /** Filter by the object’s `labels` field. */ labels?: JSONFilter; /** Filter by the object’s `annotations` field. */ annotations?: JSONFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `expiresAt` field. */ + expiresAt?: DatetimeFilter; /** Checks for all expressions in this list. */ - and?: PlatformConfigDefinitionFilter[]; + and?: PlatformConfigFilter[]; /** Checks for any expressions in this list. */ - or?: PlatformConfigDefinitionFilter[]; + or?: PlatformConfigFilter[]; /** Negates the expression. */ - not?: PlatformConfigDefinitionFilter; + not?: PlatformConfigFilter; } -export interface PlatformConfigFilter { +export interface ConfigFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `namespaceId` field. */ namespaceId?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; + /** Filter by the object’s `provider` field. */ + provider?: StringFilter; /** Filter by the object’s `value` field. */ value?: StringFilter; /** Filter by the object’s `labels` field. */ @@ -363,36 +467,130 @@ export interface PlatformConfigFilter { /** Filter by the object’s `expiresAt` field. */ expiresAt?: DatetimeFilter; /** Checks for all expressions in this list. */ - and?: PlatformConfigFilter[]; + and?: ConfigFilter[]; /** Checks for any expressions in this list. */ - or?: PlatformConfigFilter[]; + or?: ConfigFilter[]; /** Negates the expression. */ - not?: PlatformConfigFilter; + not?: ConfigFilter; +} +export interface PlatformInternalSecretFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `labels` field. */ + labels?: JSONFilter; + /** Filter by the object’s `annotations` field. */ + annotations?: JSONFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `rotatedAt` field. */ + rotatedAt?: DatetimeFilter; + /** Filter by the object’s `retiredAt` field. */ + retiredAt?: DatetimeFilter; + /** Checks for all expressions in this list. */ + and?: PlatformInternalSecretFilter[]; + /** Checks for any expressions in this list. */ + or?: PlatformInternalSecretFilter[]; + /** Negates the expression. */ + not?: PlatformInternalSecretFilter; +} +export interface PlatformSecretFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `provider` field. */ + provider?: StringFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `labels` field. */ + labels?: JSONFilter; + /** Filter by the object’s `annotations` field. */ + annotations?: JSONFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `rotatedAt` field. */ + rotatedAt?: DatetimeFilter; + /** Filter by the object’s `retiredAt` field. */ + retiredAt?: DatetimeFilter; + /** Checks for all expressions in this list. */ + and?: PlatformSecretFilter[]; + /** Checks for any expressions in this list. */ + or?: PlatformSecretFilter[]; + /** Negates the expression. */ + not?: PlatformSecretFilter; +} +export interface SecretFilter { + /** 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 `provider` field. */ + provider?: StringFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `labels` field. */ + labels?: JSONFilter; + /** Filter by the object’s `annotations` field. */ + annotations?: JSONFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `rotatedAt` field. */ + rotatedAt?: DatetimeFilter; + /** Filter by the object’s `retiredAt` field. */ + retiredAt?: DatetimeFilter; + /** Checks for all expressions in this list. */ + and?: SecretFilter[]; + /** Checks for any expressions in this list. */ + or?: SecretFilter[]; + /** Negates the expression. */ + not?: SecretFilter; } // ============ OrderBy Types ============ -export type PlatformConfigDefinitionOrderBy = +export type PlatformConfigOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' + | 'NAMESPACE_ID_ASC' + | 'NAMESPACE_ID_DESC' | 'NAME_ASC' | 'NAME_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC' - | 'DEFAULT_VALUE_ASC' - | 'DEFAULT_VALUE_DESC' - | 'IS_BUILT_IN_ASC' - | 'IS_BUILT_IN_DESC' + | 'PROVIDER_ASC' + | 'PROVIDER_DESC' + | 'VALUE_ASC' + | 'VALUE_DESC' | 'LABELS_ASC' | 'LABELS_DESC' | 'ANNOTATIONS_ASC' - | 'ANNOTATIONS_DESC'; -export type PlatformConfigOrderBy = + | 'ANNOTATIONS_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'EXPIRES_AT_ASC' + | 'EXPIRES_AT_DESC'; +export type ConfigOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -400,8 +598,12 @@ export type PlatformConfigOrderBy = | 'ID_DESC' | 'NAMESPACE_ID_ASC' | 'NAMESPACE_ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' | 'NAME_ASC' | 'NAME_DESC' + | 'PROVIDER_ASC' + | 'PROVIDER_DESC' | 'VALUE_ASC' | 'VALUE_DESC' | 'LABELS_ASC' @@ -416,40 +618,118 @@ export type PlatformConfigOrderBy = | 'UPDATED_AT_DESC' | 'EXPIRES_AT_ASC' | 'EXPIRES_AT_DESC'; +export type PlatformInternalSecretOrderBy = + | 'NATURAL' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'NAMESPACE_ID_ASC' + | 'NAMESPACE_ID_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'LABELS_ASC' + | 'LABELS_DESC' + | 'ANNOTATIONS_ASC' + | 'ANNOTATIONS_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'ROTATED_AT_ASC' + | 'ROTATED_AT_DESC' + | 'RETIRED_AT_ASC' + | 'RETIRED_AT_DESC'; +export type PlatformSecretOrderBy = + | 'NATURAL' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'PROVIDER_ASC' + | 'PROVIDER_DESC' + | 'NAMESPACE_ID_ASC' + | 'NAMESPACE_ID_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'LABELS_ASC' + | 'LABELS_DESC' + | 'ANNOTATIONS_ASC' + | 'ANNOTATIONS_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'ROTATED_AT_ASC' + | 'ROTATED_AT_DESC' + | 'RETIRED_AT_ASC' + | 'RETIRED_AT_DESC'; +export type SecretOrderBy = + | 'NATURAL' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'PROVIDER_ASC' + | 'PROVIDER_DESC' + | 'NAMESPACE_ID_ASC' + | 'NAMESPACE_ID_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'LABELS_ASC' + | 'LABELS_DESC' + | 'ANNOTATIONS_ASC' + | 'ANNOTATIONS_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'ROTATED_AT_ASC' + | 'ROTATED_AT_DESC' + | 'RETIRED_AT_ASC' + | 'RETIRED_AT_DESC'; // ============ CRUD Input Types ============ -export interface CreatePlatformConfigDefinitionInput { +export interface CreatePlatformConfigInput { clientMutationId?: string; - platformConfigDefinition: { + platformConfig: { + namespaceId: string; name: string; - description?: string; - defaultValue?: string; - isBuiltIn?: boolean; + provider?: string; + value?: string; labels?: Record; annotations?: Record; + description?: string; + expiresAt?: string; }; } -export interface PlatformConfigDefinitionPatch { +export interface PlatformConfigPatch { + namespaceId?: string | null; name?: string | null; - description?: string | null; - defaultValue?: string | null; - isBuiltIn?: boolean | null; + provider?: string | null; + value?: string | null; labels?: Record | null; annotations?: Record | null; + description?: string | null; + expiresAt?: string | null; } -export interface UpdatePlatformConfigDefinitionInput { +export interface UpdatePlatformConfigInput { clientMutationId?: string; id: string; - platformConfigDefinitionPatch: PlatformConfigDefinitionPatch; + platformConfigPatch: PlatformConfigPatch; } -export interface DeletePlatformConfigDefinitionInput { +export interface DeletePlatformConfigInput { clientMutationId?: string; id: string; } -export interface CreatePlatformConfigInput { +export interface CreateConfigInput { clientMutationId?: string; - platformConfig: { + config: { namespaceId: string; + databaseId: string; name: string; + provider?: string; value?: string; labels?: Record; annotations?: Record; @@ -457,78 +737,202 @@ export interface CreatePlatformConfigInput { expiresAt?: string; }; } -export interface PlatformConfigPatch { +export interface ConfigPatch { namespaceId?: string | null; + databaseId?: string | null; name?: string | null; + provider?: string | null; value?: string | null; labels?: Record | null; annotations?: Record | null; description?: string | null; expiresAt?: string | null; } -export interface UpdatePlatformConfigInput { +export interface UpdateConfigInput { clientMutationId?: string; id: string; - platformConfigPatch: PlatformConfigPatch; + configPatch: ConfigPatch; } -export interface DeletePlatformConfigInput { +export interface DeleteConfigInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformInternalSecretInput { + clientMutationId?: string; + platformInternalSecret: { + name?: string; + namespaceId?: string; + description?: string; + labels?: Record; + annotations?: Record; + rotatedAt?: string; + retiredAt?: string; + }; +} +export interface PlatformInternalSecretPatch { + name?: string | null; + namespaceId?: string | null; + description?: string | null; + labels?: Record | null; + annotations?: Record | null; + rotatedAt?: string | null; + retiredAt?: string | null; +} +export interface UpdatePlatformInternalSecretInput { + clientMutationId?: string; + id: string; + platformInternalSecretPatch: PlatformInternalSecretPatch; +} +export interface DeletePlatformInternalSecretInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformSecretInput { + clientMutationId?: string; + platformSecret: { + name?: string; + provider?: string; + namespaceId?: string; + description?: string; + labels?: Record; + annotations?: Record; + rotatedAt?: string; + retiredAt?: string; + }; +} +export interface PlatformSecretPatch { + name?: string | null; + provider?: string | null; + namespaceId?: string | null; + description?: string | null; + labels?: Record | null; + annotations?: Record | null; + rotatedAt?: string | null; + retiredAt?: string | null; +} +export interface UpdatePlatformSecretInput { + clientMutationId?: string; + id: string; + platformSecretPatch: PlatformSecretPatch; +} +export interface DeletePlatformSecretInput { + clientMutationId?: string; + id: string; +} +export interface CreateSecretInput { + clientMutationId?: string; + secret: { + databaseId?: string; + name?: string; + provider?: string; + namespaceId?: string; + description?: string; + labels?: Record; + annotations?: Record; + rotatedAt?: string; + retiredAt?: string; + }; +} +export interface SecretPatch { + databaseId?: string | null; + name?: string | null; + provider?: string | null; + namespaceId?: string | null; + description?: string | null; + labels?: Record | null; + annotations?: Record | null; + rotatedAt?: string | null; + retiredAt?: string | null; +} +export interface UpdateSecretInput { + clientMutationId?: string; + id: string; + secretPatch: SecretPatch; +} +export interface DeleteSecretInput { clientMutationId?: string; id: string; } // ============ Connection Fields Map ============ export const connectionFieldsMap = {} as Record>; // ============ Custom Input Types (from schema) ============ +export interface PlatformInternalSecretsDelInput { + clientMutationId?: string; + secretName?: string; + namespaceId?: string; +} export interface PlatformSecretsDelInput { clientMutationId?: string; secretName?: string; namespaceId?: string; } -export interface OrgSecretsDelInput { +export interface _SecretsDelInput { clientMutationId?: string; - ownerId?: string; + databaseId?: string; secretName?: string; namespaceId?: string; } +export interface PlatformInternalSecretsRemoveArrayInput { + clientMutationId?: string; + secretNames?: string[]; + namespaceId?: string; +} export interface PlatformSecretsRemoveArrayInput { clientMutationId?: string; secretNames?: string[]; namespaceId?: string; } -export interface OrgSecretsRemoveArrayInput { +export interface _SecretsRemoveArrayInput { clientMutationId?: string; - ownerId?: string; + databaseId?: string; secretNames?: string[]; namespaceId?: string; } -export interface PlatformSecretsRotateInput { +export interface PlatformInternalSecretsRotateInput { clientMutationId?: string; secretName?: string; secretValue?: string; namespaceId?: string; algo?: string; } -export interface PlatformSecretsSetInput { +export interface PlatformInternalSecretsSetInput { clientMutationId?: string; secretName?: string; secretValue?: string; secretNamespaceId?: string; algo?: string; } -export interface OrgSecretsRotateInput { +export interface PlatformSecretsRotateInput { clientMutationId?: string; - ownerId?: string; secretName?: string; secretValue?: string; namespaceId?: string; algo?: string; } -export interface OrgSecretsSetInput { +export interface _SecretsRotateInput { + clientMutationId?: string; + databaseId?: string; + secretName?: string; + secretValue?: string; + namespaceId?: string; + algo?: string; +} +export interface PlatformSecretsSetInput { clientMutationId?: string; - scopeOwnerId?: string; secretName?: string; secretValue?: string; secretNamespaceId?: string; algo?: string; + provider?: string; +} +export interface _SecretsSetInput { + clientMutationId?: string; + scopeDatabaseId?: string; + secretName?: string; + secretValue?: string; + secretNamespaceId?: string; + algo?: string; + provider?: string; } export interface ProvisionBucketInput { /** The logical bucket key (e.g., "public", "private") */ @@ -539,33 +943,41 @@ export interface ProvisionBucketInput { */ ownerId?: string; } -/** An input for mutations affecting `PlatformConfigDefinition` */ -export interface PlatformConfigDefinitionInput { - /** Unique identifier for this config definition */ +/** An input for mutations affecting `PlatformConfig` */ +export interface PlatformConfigInput { + /** Unique identifier for this config entry */ id?: string; - createdAt?: string; - updatedAt?: string; - /** Config key name (must match config table name for resolution) */ + /** FK to namespaces — logical grouping for config entries */ + namespaceId: string; + /** Key name identifying the config entry */ name: string; - /** Human-readable description of what this config key controls */ - description?: string; - /** Default value used when no config entry exists for a namespace */ - defaultValue?: string; - /** Whether this row was seeded as a built-in config definition */ - isBuiltIn?: boolean; - /** Key-value metadata for filtering and grouping config definitions */ + /** Integration provider slug (e.g. mailgun, postgres). Used by the UI to group config entries by integration. No FK. */ + provider?: string; + /** Plaintext config value */ + value?: string; + /** Key/value pairs for selecting/filtering config entries */ labels?: Record; - /** Freeform metadata annotations for config definitions */ + /** Freeform metadata for tooling and operational notes */ annotations?: Record; + /** Human-readable note about this config entry */ + description?: string; + createdAt?: string; + updatedAt?: string; + /** Optional expiration timestamp for time-limited config entries */ + expiresAt?: string; } -/** An input for mutations affecting `PlatformConfig` */ -export interface PlatformConfigInput { +/** An input for mutations affecting `Config` */ +export interface ConfigInput { /** Unique identifier for this config entry */ id?: string; /** FK to namespaces — logical grouping for config entries */ namespaceId: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; /** 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; /** Plaintext config value */ value?: string; /** Key/value pairs for selecting/filtering config entries */ @@ -579,17 +991,71 @@ export interface PlatformConfigInput { /** Optional expiration timestamp for time-limited config entries */ expiresAt?: string; } +/** An input for mutations affecting `PlatformInternalSecret` */ +export interface PlatformInternalSecretInput { + id?: string; + name?: string; + namespaceId?: string; + description?: string; + labels?: Record; + annotations?: Record; + createdAt?: string; + updatedAt?: string; + rotatedAt?: string; + retiredAt?: string; +} +/** An input for mutations affecting `PlatformSecret` */ +export interface PlatformSecretInput { + id?: string; + name?: string; + provider?: string; + namespaceId?: string; + description?: string; + labels?: Record; + annotations?: Record; + createdAt?: string; + updatedAt?: string; + rotatedAt?: string; + retiredAt?: string; +} +/** An input for mutations affecting `Secret` */ +export interface SecretInput { + databaseId?: string; + id?: string; + name?: string; + provider?: string; + namespaceId?: string; + description?: string; + labels?: Record; + annotations?: Record; + createdAt?: string; + updatedAt?: string; + rotatedAt?: string; + retiredAt?: string; +} // ============ Payload/Return Types (for custom operations) ============ +export interface PlatformInternalSecretsDelPayload { + clientMutationId?: string | null; +} +export type PlatformInternalSecretsDelPayloadSelect = { + clientMutationId?: boolean; +}; export interface PlatformSecretsDelPayload { clientMutationId?: string | null; } export type PlatformSecretsDelPayloadSelect = { clientMutationId?: boolean; }; -export interface OrgSecretsDelPayload { +export interface _SecretsDelPayload { + clientMutationId?: string | null; +} +export type _SecretsDelPayloadSelect = { + clientMutationId?: boolean; +}; +export interface PlatformInternalSecretsRemoveArrayPayload { clientMutationId?: string | null; } -export type OrgSecretsDelPayloadSelect = { +export type PlatformInternalSecretsRemoveArrayPayloadSelect = { clientMutationId?: boolean; }; export interface PlatformSecretsRemoveArrayPayload { @@ -598,12 +1064,28 @@ export interface PlatformSecretsRemoveArrayPayload { export type PlatformSecretsRemoveArrayPayloadSelect = { clientMutationId?: boolean; }; -export interface OrgSecretsRemoveArrayPayload { +export interface _SecretsRemoveArrayPayload { clientMutationId?: string | null; } -export type OrgSecretsRemoveArrayPayloadSelect = { +export type _SecretsRemoveArrayPayloadSelect = { clientMutationId?: boolean; }; +export interface PlatformInternalSecretsRotatePayload { + clientMutationId?: string | null; + result?: boolean | null; +} +export type PlatformInternalSecretsRotatePayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface PlatformInternalSecretsSetPayload { + clientMutationId?: string | null; + result?: boolean | null; +} +export type PlatformInternalSecretsSetPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; export interface PlatformSecretsRotatePayload { clientMutationId?: string | null; result?: boolean | null; @@ -612,27 +1094,27 @@ export type PlatformSecretsRotatePayloadSelect = { clientMutationId?: boolean; result?: boolean; }; -export interface PlatformSecretsSetPayload { +export interface _SecretsRotatePayload { clientMutationId?: string | null; result?: boolean | null; } -export type PlatformSecretsSetPayloadSelect = { +export type _SecretsRotatePayloadSelect = { clientMutationId?: boolean; result?: boolean; }; -export interface OrgSecretsRotatePayload { +export interface PlatformSecretsSetPayload { clientMutationId?: string | null; result?: boolean | null; } -export type OrgSecretsRotatePayloadSelect = { +export type PlatformSecretsSetPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; -export interface OrgSecretsSetPayload { +export interface _SecretsSetPayload { clientMutationId?: string | null; result?: boolean | null; } -export type OrgSecretsSetPayloadSelect = { +export type _SecretsSetPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; @@ -658,51 +1140,6 @@ export type ProvisionBucketPayloadSelect = { endpoint?: boolean; error?: boolean; }; -export interface CreatePlatformConfigDefinitionPayload { - clientMutationId?: string | null; - /** The `PlatformConfigDefinition` that was created by this mutation. */ - platformConfigDefinition?: PlatformConfigDefinition | null; - platformConfigDefinitionEdge?: PlatformConfigDefinitionEdge | null; -} -export type CreatePlatformConfigDefinitionPayloadSelect = { - clientMutationId?: boolean; - platformConfigDefinition?: { - select: PlatformConfigDefinitionSelect; - }; - platformConfigDefinitionEdge?: { - select: PlatformConfigDefinitionEdgeSelect; - }; -}; -export interface UpdatePlatformConfigDefinitionPayload { - clientMutationId?: string | null; - /** The `PlatformConfigDefinition` that was updated by this mutation. */ - platformConfigDefinition?: PlatformConfigDefinition | null; - platformConfigDefinitionEdge?: PlatformConfigDefinitionEdge | null; -} -export type UpdatePlatformConfigDefinitionPayloadSelect = { - clientMutationId?: boolean; - platformConfigDefinition?: { - select: PlatformConfigDefinitionSelect; - }; - platformConfigDefinitionEdge?: { - select: PlatformConfigDefinitionEdgeSelect; - }; -}; -export interface DeletePlatformConfigDefinitionPayload { - clientMutationId?: string | null; - /** The `PlatformConfigDefinition` that was deleted by this mutation. */ - platformConfigDefinition?: PlatformConfigDefinition | null; - platformConfigDefinitionEdge?: PlatformConfigDefinitionEdge | null; -} -export type DeletePlatformConfigDefinitionPayloadSelect = { - clientMutationId?: boolean; - platformConfigDefinition?: { - select: PlatformConfigDefinitionSelect; - }; - platformConfigDefinitionEdge?: { - select: PlatformConfigDefinitionEdgeSelect; - }; -}; export interface CreatePlatformConfigPayload { clientMutationId?: string | null; /** The `PlatformConfig` that was created by this mutation. */ @@ -748,16 +1185,82 @@ export type DeletePlatformConfigPayloadSelect = { select: PlatformConfigEdgeSelect; }; }; -/** A `PlatformConfigDefinition` edge in the connection. */ -export interface PlatformConfigDefinitionEdge { - cursor?: string | null; - /** The `PlatformConfigDefinition` at the end of the edge. */ - node?: PlatformConfigDefinition | null; +export interface CreateConfigPayload { + clientMutationId?: string | null; + /** The `Config` that was created by this mutation. */ + config?: Config | null; + configEdge?: ConfigEdge | null; } -export type PlatformConfigDefinitionEdgeSelect = { - cursor?: boolean; - node?: { - select: PlatformConfigDefinitionSelect; +export type CreateConfigPayloadSelect = { + clientMutationId?: boolean; + config?: { + select: ConfigSelect; + }; + configEdge?: { + select: ConfigEdgeSelect; + }; +}; +export interface UpdateConfigPayload { + clientMutationId?: string | null; + /** The `Config` that was updated by this mutation. */ + config?: Config | null; + configEdge?: ConfigEdge | null; +} +export type UpdateConfigPayloadSelect = { + clientMutationId?: boolean; + config?: { + select: ConfigSelect; + }; + configEdge?: { + select: ConfigEdgeSelect; + }; +}; +export interface DeleteConfigPayload { + clientMutationId?: string | null; + /** The `Config` that was deleted by this mutation. */ + config?: Config | null; + configEdge?: ConfigEdge | null; +} +export type DeleteConfigPayloadSelect = { + clientMutationId?: boolean; + config?: { + select: ConfigSelect; + }; + configEdge?: { + select: ConfigEdgeSelect; + }; +}; +export interface CreatePlatformInternalSecretPayload { + clientMutationId?: string | null; + /** The `PlatformInternalSecret` that was created by this mutation. */ + platformInternalSecret?: PlatformInternalSecret | null; +} +export type CreatePlatformInternalSecretPayloadSelect = { + clientMutationId?: boolean; + platformInternalSecret?: { + select: PlatformInternalSecretSelect; + }; +}; +export interface CreatePlatformSecretPayload { + clientMutationId?: string | null; + /** The `PlatformSecret` that was created by this mutation. */ + platformSecret?: PlatformSecret | null; +} +export type CreatePlatformSecretPayloadSelect = { + clientMutationId?: boolean; + platformSecret?: { + select: PlatformSecretSelect; + }; +}; +export interface CreateSecretPayload { + clientMutationId?: string | null; + /** The `Secret` that was created by this mutation. */ + secret?: Secret | null; +} +export type CreateSecretPayloadSelect = { + clientMutationId?: boolean; + secret?: { + select: SecretSelect; }; }; /** A `PlatformConfig` edge in the connection. */ @@ -772,3 +1275,15 @@ export type PlatformConfigEdgeSelect = { select: PlatformConfigSelect; }; }; +/** A `Config` edge in the connection. */ +export interface ConfigEdge { + cursor?: string | null; + /** The `Config` at the end of the edge. */ + node?: Config | null; +} +export type ConfigEdgeSelect = { + cursor?: boolean; + node?: { + select: ConfigSelect; + }; +}; diff --git a/sdk/constructive-react/src/config/orm/models/config.ts b/sdk/constructive-react/src/config/orm/models/config.ts new file mode 100644 index 0000000000..cef2950915 --- /dev/null +++ b/sdk/constructive-react/src/config/orm/models/config.ts @@ -0,0 +1,245 @@ +/** + * Config model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + Config, + ConfigWithRelations, + ConfigSelect, + ConfigFilter, + ConfigOrderBy, + CreateConfigInput, + UpdateConfigInput, + ConfigPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class ConfigModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + configs: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'Config', + 'configs', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'ConfigFilter', + 'ConfigOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'Config', + fieldName: 'configs', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + config: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'Config', + 'configs', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'ConfigFilter', + 'ConfigOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'Config', + fieldName: 'config', + document, + variables, + transform: (data: { + configs?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + config: data.configs?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + config: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'Config', + 'configs', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'ConfigFilter', + 'ConfigOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'Config', + fieldName: 'config', + document, + variables, + transform: (data: { + configs?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + config: data.configs?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createConfig: { + config: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'Config', + 'createConfig', + 'config', + args.select, + args.data, + 'CreateConfigInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'Config', + fieldName: 'createConfig', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + ConfigPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateConfig: { + config: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'Config', + 'updateConfig', + 'config', + args.select, + args.where.id, + args.data, + 'UpdateConfigInput', + 'id', + 'configPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'Config', + fieldName: 'updateConfig', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteConfig: { + config: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'Config', + 'deleteConfig', + 'config', + { + id: args.where.id, + }, + 'DeleteConfigInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'Config', + fieldName: 'deleteConfig', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/config/orm/models/index.ts b/sdk/constructive-react/src/config/orm/models/index.ts index c641a1f3e5..34d689b28d 100644 --- a/sdk/constructive-react/src/config/orm/models/index.ts +++ b/sdk/constructive-react/src/config/orm/models/index.ts @@ -3,5 +3,8 @@ * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ -export { PlatformConfigDefinitionModel } from './platformConfigDefinition'; export { PlatformConfigModel } from './platformConfig'; +export { ConfigModel } from './config'; +export { PlatformInternalSecretModel } from './platformInternalSecret'; +export { PlatformSecretModel } from './platformSecret'; +export { SecretModel } from './secret'; diff --git a/sdk/constructive-react/src/config/orm/models/platformConfigDefinition.ts b/sdk/constructive-react/src/config/orm/models/platformConfigDefinition.ts deleted file mode 100644 index c28ff1566e..0000000000 --- a/sdk/constructive-react/src/config/orm/models/platformConfigDefinition.ts +++ /dev/null @@ -1,247 +0,0 @@ -/** - * PlatformConfigDefinition model for ORM client - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { OrmClient } from '../client'; -import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, - buildCreateDocument, - buildUpdateByPkDocument, - buildDeleteByPkDocument, -} from '../query-builder'; -import type { - ConnectionResult, - FindManyArgs, - FindFirstArgs, - CreateArgs, - UpdateArgs, - DeleteArgs, - InferSelectResult, - StrictSelect, -} from '../select-types'; -import type { - PlatformConfigDefinition, - PlatformConfigDefinitionWithRelations, - PlatformConfigDefinitionSelect, - PlatformConfigDefinitionFilter, - PlatformConfigDefinitionOrderBy, - CreatePlatformConfigDefinitionInput, - UpdatePlatformConfigDefinitionInput, - PlatformConfigDefinitionPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class PlatformConfigDefinitionModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - platformConfigDefinitions: ConnectionResult< - InferSelectResult - >; - }> { - const { document, variables } = buildFindManyDocument( - 'PlatformConfigDefinition', - 'platformConfigDefinitions', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - first: args?.first, - last: args?.last, - after: args?.after, - before: args?.before, - offset: args?.offset, - }, - 'PlatformConfigDefinitionFilter', - 'PlatformConfigDefinitionOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'PlatformConfigDefinition', - fieldName: 'platformConfigDefinitions', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - platformConfigDefinition: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'PlatformConfigDefinition', - 'platformConfigDefinitions', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'PlatformConfigDefinitionFilter', - 'PlatformConfigDefinitionOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'PlatformConfigDefinition', - fieldName: 'platformConfigDefinition', - document, - variables, - transform: (data: { - platformConfigDefinitions?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - platformConfigDefinition: data.platformConfigDefinitions?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - platformConfigDefinition: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'PlatformConfigDefinition', - 'platformConfigDefinitions', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'PlatformConfigDefinitionFilter', - 'PlatformConfigDefinitionOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'PlatformConfigDefinition', - fieldName: 'platformConfigDefinition', - document, - variables, - transform: (data: { - platformConfigDefinitions?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - platformConfigDefinition: data.platformConfigDefinitions?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createPlatformConfigDefinition: { - platformConfigDefinition: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'PlatformConfigDefinition', - 'createPlatformConfigDefinition', - 'platformConfigDefinition', - args.select, - args.data, - 'CreatePlatformConfigDefinitionInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'PlatformConfigDefinition', - fieldName: 'createPlatformConfigDefinition', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - PlatformConfigDefinitionPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updatePlatformConfigDefinition: { - platformConfigDefinition: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'PlatformConfigDefinition', - 'updatePlatformConfigDefinition', - 'platformConfigDefinition', - args.select, - args.where.id, - args.data, - 'UpdatePlatformConfigDefinitionInput', - 'id', - 'platformConfigDefinitionPatch', - connectionFieldsMap, - undefined - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'PlatformConfigDefinition', - fieldName: 'updatePlatformConfigDefinition', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deletePlatformConfigDefinition: { - platformConfigDefinition: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'PlatformConfigDefinition', - 'deletePlatformConfigDefinition', - 'platformConfigDefinition', - { - id: args.where.id, - }, - 'DeletePlatformConfigDefinitionInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'PlatformConfigDefinition', - fieldName: 'deletePlatformConfigDefinition', - document, - variables, - }); - } -} diff --git a/sdk/constructive-react/src/config/orm/models/platformInternalSecret.ts b/sdk/constructive-react/src/config/orm/models/platformInternalSecret.ts new file mode 100644 index 0000000000..35e0c7b538 --- /dev/null +++ b/sdk/constructive-react/src/config/orm/models/platformInternalSecret.ts @@ -0,0 +1,176 @@ +/** + * PlatformInternalSecret model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + PlatformInternalSecret, + PlatformInternalSecretWithRelations, + PlatformInternalSecretSelect, + PlatformInternalSecretFilter, + PlatformInternalSecretOrderBy, + CreatePlatformInternalSecretInput, + UpdatePlatformInternalSecretInput, + PlatformInternalSecretPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class PlatformInternalSecretModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformInternalSecrets: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformInternalSecret', + 'platformInternalSecrets', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'PlatformInternalSecretFilter', + 'PlatformInternalSecretOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformInternalSecret', + fieldName: 'platformInternalSecrets', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformInternalSecret: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'PlatformInternalSecret', + 'platformInternalSecrets', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'PlatformInternalSecretFilter', + 'PlatformInternalSecretOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformInternalSecret', + fieldName: 'platformInternalSecret', + document, + variables, + transform: (data: { + platformInternalSecrets?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformInternalSecret: data.platformInternalSecrets?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformInternalSecret: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformInternalSecret', + 'platformInternalSecrets', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'PlatformInternalSecretFilter', + 'PlatformInternalSecretOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformInternalSecret', + fieldName: 'platformInternalSecret', + document, + variables, + transform: (data: { + platformInternalSecrets?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformInternalSecret: data.platformInternalSecrets?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createPlatformInternalSecret: { + platformInternalSecret: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'PlatformInternalSecret', + 'createPlatformInternalSecret', + 'platformInternalSecret', + args.select, + args.data, + 'CreatePlatformInternalSecretInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformInternalSecret', + fieldName: 'createPlatformInternalSecret', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/config/orm/models/platformSecret.ts b/sdk/constructive-react/src/config/orm/models/platformSecret.ts new file mode 100644 index 0000000000..03c0e23540 --- /dev/null +++ b/sdk/constructive-react/src/config/orm/models/platformSecret.ts @@ -0,0 +1,174 @@ +/** + * PlatformSecret model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + PlatformSecret, + PlatformSecretWithRelations, + PlatformSecretSelect, + PlatformSecretFilter, + PlatformSecretOrderBy, + CreatePlatformSecretInput, + UpdatePlatformSecretInput, + PlatformSecretPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class PlatformSecretModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformSecrets: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformSecret', + 'platformSecrets', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'PlatformSecretFilter', + 'PlatformSecretOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformSecret', + fieldName: 'platformSecrets', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformSecret: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'PlatformSecret', + 'platformSecrets', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'PlatformSecretFilter', + 'PlatformSecretOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformSecret', + fieldName: 'platformSecret', + document, + variables, + transform: (data: { + platformSecrets?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformSecret: data.platformSecrets?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformSecret: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformSecret', + 'platformSecrets', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'PlatformSecretFilter', + 'PlatformSecretOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformSecret', + fieldName: 'platformSecret', + document, + variables, + transform: (data: { + platformSecrets?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformSecret: data.platformSecrets?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createPlatformSecret: { + platformSecret: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'PlatformSecret', + 'createPlatformSecret', + 'platformSecret', + args.select, + args.data, + 'CreatePlatformSecretInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformSecret', + fieldName: 'createPlatformSecret', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/config/orm/models/secret.ts b/sdk/constructive-react/src/config/orm/models/secret.ts new file mode 100644 index 0000000000..37571240d8 --- /dev/null +++ b/sdk/constructive-react/src/config/orm/models/secret.ts @@ -0,0 +1,174 @@ +/** + * Secret model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + Secret, + SecretWithRelations, + SecretSelect, + SecretFilter, + SecretOrderBy, + CreateSecretInput, + UpdateSecretInput, + SecretPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class SecretModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + secrets: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'Secret', + 'secrets', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'SecretFilter', + 'SecretOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'Secret', + fieldName: 'secrets', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + secret: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'Secret', + 'secrets', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'SecretFilter', + 'SecretOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'Secret', + fieldName: 'secret', + document, + variables, + transform: (data: { + secrets?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + secret: data.secrets?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + secret: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'Secret', + 'secrets', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'SecretFilter', + 'SecretOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'Secret', + fieldName: 'secret', + document, + variables, + transform: (data: { + secrets?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + secret: data.secrets?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createSecret: { + secret: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'Secret', + 'createSecret', + 'secret', + args.select, + args.data, + 'CreateSecretInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'Secret', + fieldName: 'createSecret', + 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 b9ef205a98..9eff7cd543 100644 --- a/sdk/constructive-react/src/config/orm/mutation/index.ts +++ b/sdk/constructive-react/src/config/orm/mutation/index.ts @@ -7,58 +7,82 @@ import { OrmClient } from '../client'; import { QueryBuilder, buildCustomDocument } from '../query-builder'; import type { InferSelectResult, StrictSelect } from '../select-types'; import type { + PlatformInternalSecretsDelInput, PlatformSecretsDelInput, - OrgSecretsDelInput, + _SecretsDelInput, + PlatformInternalSecretsRemoveArrayInput, PlatformSecretsRemoveArrayInput, - OrgSecretsRemoveArrayInput, + _SecretsRemoveArrayInput, + PlatformInternalSecretsRotateInput, + PlatformInternalSecretsSetInput, PlatformSecretsRotateInput, + _SecretsRotateInput, PlatformSecretsSetInput, - OrgSecretsRotateInput, - OrgSecretsSetInput, + _SecretsSetInput, ProvisionBucketInput, + PlatformInternalSecretsDelPayload, PlatformSecretsDelPayload, - OrgSecretsDelPayload, + _SecretsDelPayload, + PlatformInternalSecretsRemoveArrayPayload, PlatformSecretsRemoveArrayPayload, - OrgSecretsRemoveArrayPayload, + _SecretsRemoveArrayPayload, + PlatformInternalSecretsRotatePayload, + PlatformInternalSecretsSetPayload, PlatformSecretsRotatePayload, + _SecretsRotatePayload, PlatformSecretsSetPayload, - OrgSecretsRotatePayload, - OrgSecretsSetPayload, + _SecretsSetPayload, ProvisionBucketPayload, + PlatformInternalSecretsDelPayloadSelect, PlatformSecretsDelPayloadSelect, - OrgSecretsDelPayloadSelect, + _SecretsDelPayloadSelect, + PlatformInternalSecretsRemoveArrayPayloadSelect, PlatformSecretsRemoveArrayPayloadSelect, - OrgSecretsRemoveArrayPayloadSelect, + _SecretsRemoveArrayPayloadSelect, + PlatformInternalSecretsRotatePayloadSelect, + PlatformInternalSecretsSetPayloadSelect, PlatformSecretsRotatePayloadSelect, + _SecretsRotatePayloadSelect, PlatformSecretsSetPayloadSelect, - OrgSecretsRotatePayloadSelect, - OrgSecretsSetPayloadSelect, + _SecretsSetPayloadSelect, ProvisionBucketPayloadSelect, } from '../input-types'; import { connectionFieldsMap } from '../input-types'; +export interface PlatformInternalSecretsDelVariables { + input: PlatformInternalSecretsDelInput; +} export interface PlatformSecretsDelVariables { input: PlatformSecretsDelInput; } -export interface OrgSecretsDelVariables { - input: OrgSecretsDelInput; +export interface _secretsDelVariables { + input: _SecretsDelInput; +} +export interface PlatformInternalSecretsRemoveArrayVariables { + input: PlatformInternalSecretsRemoveArrayInput; } export interface PlatformSecretsRemoveArrayVariables { input: PlatformSecretsRemoveArrayInput; } -export interface OrgSecretsRemoveArrayVariables { - input: OrgSecretsRemoveArrayInput; +export interface _secretsRemoveArrayVariables { + input: _SecretsRemoveArrayInput; +} +export interface PlatformInternalSecretsRotateVariables { + input: PlatformInternalSecretsRotateInput; +} +export interface PlatformInternalSecretsSetVariables { + input: PlatformInternalSecretsSetInput; } export interface PlatformSecretsRotateVariables { input: PlatformSecretsRotateInput; } +export interface _secretsRotateVariables { + input: _SecretsRotateInput; +} export interface PlatformSecretsSetVariables { input: PlatformSecretsSetInput; } -export interface OrgSecretsRotateVariables { - input: OrgSecretsRotateInput; -} -export interface OrgSecretsSetVariables { - input: OrgSecretsSetInput; +export interface _secretsSetVariables { + input: _SecretsSetInput; } /** * Variables for provisionBucket @@ -72,6 +96,35 @@ export interface ProvisionBucketVariables { } export function createMutationOperations(client: OrmClient) { return { + platformInternalSecretsDel: ( + args: PlatformInternalSecretsDelVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + platformInternalSecretsDel: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'PlatformInternalSecretsDel', + fieldName: 'platformInternalSecretsDel', + ...buildCustomDocument( + 'mutation', + 'PlatformInternalSecretsDel', + 'platformInternalSecretsDel', + options.select, + args, + [ + { + name: 'input', + type: 'PlatformInternalSecretsDelInput!', + }, + ], + connectionFieldsMap, + 'PlatformInternalSecretsDelPayload' + ), + }), platformSecretsDel: ( args: PlatformSecretsDelVariables, options: { @@ -101,33 +154,65 @@ export function createMutationOperations(client: OrmClient) { 'PlatformSecretsDelPayload' ), }), - orgSecretsDel: ( - args: OrgSecretsDelVariables, + _secretsDel: ( + args: _secretsDelVariables, options: { select: S; - } & StrictSelect + } & StrictSelect ) => new QueryBuilder<{ - orgSecretsDel: InferSelectResult | null; + _secretsDel: InferSelectResult<_SecretsDelPayload, S> | null; }>({ client, operation: 'mutation', - operationName: 'OrgSecretsDel', - fieldName: 'orgSecretsDel', + operationName: '_secretsDel', + fieldName: '_secretsDel', ...buildCustomDocument( 'mutation', - 'OrgSecretsDel', - 'orgSecretsDel', + '_secretsDel', + '_secretsDel', options.select, args, [ { name: 'input', - type: 'OrgSecretsDelInput!', + type: '_SecretsDelInput!', }, ], connectionFieldsMap, - 'OrgSecretsDelPayload' + '_SecretsDelPayload' + ), + }), + platformInternalSecretsRemoveArray: ( + args: PlatformInternalSecretsRemoveArrayVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + platformInternalSecretsRemoveArray: InferSelectResult< + PlatformInternalSecretsRemoveArrayPayload, + S + > | null; + }>({ + client, + operation: 'mutation', + operationName: 'PlatformInternalSecretsRemoveArray', + fieldName: 'platformInternalSecretsRemoveArray', + ...buildCustomDocument( + 'mutation', + 'PlatformInternalSecretsRemoveArray', + 'platformInternalSecretsRemoveArray', + options.select, + args, + [ + { + name: 'input', + type: 'PlatformInternalSecretsRemoveArrayInput!', + }, + ], + connectionFieldsMap, + 'PlatformInternalSecretsRemoveArrayPayload' ), }), platformSecretsRemoveArray: ( @@ -159,33 +244,94 @@ export function createMutationOperations(client: OrmClient) { 'PlatformSecretsRemoveArrayPayload' ), }), - orgSecretsRemoveArray: ( - args: OrgSecretsRemoveArrayVariables, + _secretsRemoveArray: ( + args: _secretsRemoveArrayVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + _secretsRemoveArray: InferSelectResult<_SecretsRemoveArrayPayload, S> | null; + }>({ + client, + operation: 'mutation', + operationName: '_secretsRemoveArray', + fieldName: '_secretsRemoveArray', + ...buildCustomDocument( + 'mutation', + '_secretsRemoveArray', + '_secretsRemoveArray', + options.select, + args, + [ + { + name: 'input', + type: '_SecretsRemoveArrayInput!', + }, + ], + connectionFieldsMap, + '_SecretsRemoveArrayPayload' + ), + }), + platformInternalSecretsRotate: ( + args: PlatformInternalSecretsRotateVariables, options: { select: S; - } & StrictSelect + } & StrictSelect ) => new QueryBuilder<{ - orgSecretsRemoveArray: InferSelectResult | null; + platformInternalSecretsRotate: InferSelectResult< + PlatformInternalSecretsRotatePayload, + S + > | null; }>({ client, operation: 'mutation', - operationName: 'OrgSecretsRemoveArray', - fieldName: 'orgSecretsRemoveArray', + operationName: 'PlatformInternalSecretsRotate', + fieldName: 'platformInternalSecretsRotate', ...buildCustomDocument( 'mutation', - 'OrgSecretsRemoveArray', - 'orgSecretsRemoveArray', + 'PlatformInternalSecretsRotate', + 'platformInternalSecretsRotate', options.select, args, [ { name: 'input', - type: 'OrgSecretsRemoveArrayInput!', + type: 'PlatformInternalSecretsRotateInput!', }, ], connectionFieldsMap, - 'OrgSecretsRemoveArrayPayload' + 'PlatformInternalSecretsRotatePayload' + ), + }), + platformInternalSecretsSet: ( + args: PlatformInternalSecretsSetVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + platformInternalSecretsSet: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'PlatformInternalSecretsSet', + fieldName: 'platformInternalSecretsSet', + ...buildCustomDocument( + 'mutation', + 'PlatformInternalSecretsSet', + 'platformInternalSecretsSet', + options.select, + args, + [ + { + name: 'input', + type: 'PlatformInternalSecretsSetInput!', + }, + ], + connectionFieldsMap, + 'PlatformInternalSecretsSetPayload' ), }), platformSecretsRotate: ( @@ -217,91 +363,91 @@ export function createMutationOperations(client: OrmClient) { 'PlatformSecretsRotatePayload' ), }), - platformSecretsSet: ( - args: PlatformSecretsSetVariables, + _secretsRotate: ( + args: _secretsRotateVariables, options: { select: S; - } & StrictSelect + } & StrictSelect ) => new QueryBuilder<{ - platformSecretsSet: InferSelectResult | null; + _secretsRotate: InferSelectResult<_SecretsRotatePayload, S> | null; }>({ client, operation: 'mutation', - operationName: 'PlatformSecretsSet', - fieldName: 'platformSecretsSet', + operationName: '_secretsRotate', + fieldName: '_secretsRotate', ...buildCustomDocument( 'mutation', - 'PlatformSecretsSet', - 'platformSecretsSet', + '_secretsRotate', + '_secretsRotate', options.select, args, [ { name: 'input', - type: 'PlatformSecretsSetInput!', + type: '_SecretsRotateInput!', }, ], connectionFieldsMap, - 'PlatformSecretsSetPayload' + '_SecretsRotatePayload' ), }), - orgSecretsRotate: ( - args: OrgSecretsRotateVariables, + platformSecretsSet: ( + args: PlatformSecretsSetVariables, options: { select: S; - } & StrictSelect + } & StrictSelect ) => new QueryBuilder<{ - orgSecretsRotate: InferSelectResult | null; + platformSecretsSet: InferSelectResult | null; }>({ client, operation: 'mutation', - operationName: 'OrgSecretsRotate', - fieldName: 'orgSecretsRotate', + operationName: 'PlatformSecretsSet', + fieldName: 'platformSecretsSet', ...buildCustomDocument( 'mutation', - 'OrgSecretsRotate', - 'orgSecretsRotate', + 'PlatformSecretsSet', + 'platformSecretsSet', options.select, args, [ { name: 'input', - type: 'OrgSecretsRotateInput!', + type: 'PlatformSecretsSetInput!', }, ], connectionFieldsMap, - 'OrgSecretsRotatePayload' + 'PlatformSecretsSetPayload' ), }), - orgSecretsSet: ( - args: OrgSecretsSetVariables, + _secretsSet: ( + args: _secretsSetVariables, options: { select: S; - } & StrictSelect + } & StrictSelect ) => new QueryBuilder<{ - orgSecretsSet: InferSelectResult | null; + _secretsSet: InferSelectResult<_SecretsSetPayload, S> | null; }>({ client, operation: 'mutation', - operationName: 'OrgSecretsSet', - fieldName: 'orgSecretsSet', + operationName: '_secretsSet', + fieldName: '_secretsSet', ...buildCustomDocument( 'mutation', - 'OrgSecretsSet', - 'orgSecretsSet', + '_secretsSet', + '_secretsSet', options.select, args, [ { name: 'input', - type: 'OrgSecretsSetInput!', + type: '_SecretsSetInput!', }, ], connectionFieldsMap, - 'OrgSecretsSetPayload' + '_SecretsSetPayload' ), }), provisionBucket: ( diff --git a/sdk/constructive-react/src/config/schema-types.ts b/sdk/constructive-react/src/config/schema-types.ts index 8bff1314df..435f9c41e7 100644 --- a/sdk/constructive-react/src/config/schema-types.ts +++ b/sdk/constructive-react/src/config/schema-types.ts @@ -5,8 +5,11 @@ */ import type { + Config, PlatformConfig, - PlatformConfigDefinition, + PlatformInternalSecret, + PlatformSecret, + Secret, BigFloatFilter, BigIntFilter, BitStringFilter, @@ -25,31 +28,35 @@ import type { UUIDListFilter, VectorFilter, } from './types'; -/** Methods to use when ordering `PlatformConfigDefinition`. */ -export type PlatformConfigDefinitionOrderBy = +/** Methods to use when ordering `PlatformConfig`. */ +export type PlatformConfigOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' + | 'NAMESPACE_ID_ASC' + | 'NAMESPACE_ID_DESC' | 'NAME_ASC' | 'NAME_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC' - | 'DEFAULT_VALUE_ASC' - | 'DEFAULT_VALUE_DESC' - | 'IS_BUILT_IN_ASC' - | 'IS_BUILT_IN_DESC' + | 'PROVIDER_ASC' + | 'PROVIDER_DESC' + | 'VALUE_ASC' + | 'VALUE_DESC' | 'LABELS_ASC' | 'LABELS_DESC' | 'ANNOTATIONS_ASC' - | 'ANNOTATIONS_DESC'; -/** Methods to use when ordering `PlatformConfig`. */ -export type PlatformConfigOrderBy = + | 'ANNOTATIONS_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'EXPIRES_AT_ASC' + | 'EXPIRES_AT_DESC'; +/** Methods to use when ordering `Config`. */ +export type ConfigOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -57,8 +64,12 @@ export type PlatformConfigOrderBy = | 'ID_DESC' | 'NAMESPACE_ID_ASC' | 'NAMESPACE_ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' | 'NAME_ASC' | 'NAME_DESC' + | 'PROVIDER_ASC' + | 'PROVIDER_DESC' | 'VALUE_ASC' | 'VALUE_DESC' | 'LABELS_ASC' @@ -73,41 +84,124 @@ export type PlatformConfigOrderBy = | 'UPDATED_AT_DESC' | 'EXPIRES_AT_ASC' | 'EXPIRES_AT_DESC'; -/** A filter to be used against `PlatformConfigDefinition` object types. All fields are combined with a logical ‘and.’ */ -export interface PlatformConfigDefinitionFilter { +/** Methods to use when ordering `PlatformInternalSecret`. */ +export type PlatformInternalSecretOrderBy = + | 'NATURAL' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'NAMESPACE_ID_ASC' + | 'NAMESPACE_ID_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'LABELS_ASC' + | 'LABELS_DESC' + | 'ANNOTATIONS_ASC' + | 'ANNOTATIONS_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'ROTATED_AT_ASC' + | 'ROTATED_AT_DESC' + | 'RETIRED_AT_ASC' + | 'RETIRED_AT_DESC'; +/** Methods to use when ordering `PlatformSecret`. */ +export type PlatformSecretOrderBy = + | 'NATURAL' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'PROVIDER_ASC' + | 'PROVIDER_DESC' + | 'NAMESPACE_ID_ASC' + | 'NAMESPACE_ID_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'LABELS_ASC' + | 'LABELS_DESC' + | 'ANNOTATIONS_ASC' + | 'ANNOTATIONS_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'ROTATED_AT_ASC' + | 'ROTATED_AT_DESC' + | 'RETIRED_AT_ASC' + | 'RETIRED_AT_DESC'; +/** Methods to use when ordering `Secret`. */ +export type SecretOrderBy = + | 'NATURAL' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'PROVIDER_ASC' + | 'PROVIDER_DESC' + | 'NAMESPACE_ID_ASC' + | 'NAMESPACE_ID_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'LABELS_ASC' + | 'LABELS_DESC' + | 'ANNOTATIONS_ASC' + | 'ANNOTATIONS_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'ROTATED_AT_ASC' + | 'ROTATED_AT_DESC' + | 'RETIRED_AT_ASC' + | 'RETIRED_AT_DESC'; +/** A filter to be used against `PlatformConfig` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformConfigFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Filter by the object’s `defaultValue` field. */ - defaultValue?: StringFilter; - /** Filter by the object’s `isBuiltIn` field. */ - isBuiltIn?: BooleanFilter; + /** Filter by the object’s `provider` field. */ + provider?: StringFilter; + /** Filter by the object’s `value` field. */ + value?: StringFilter; /** Filter by the object’s `labels` field. */ labels?: JSONFilter; /** Filter by the object’s `annotations` field. */ annotations?: JSONFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `expiresAt` field. */ + expiresAt?: DatetimeFilter; /** Checks for all expressions in this list. */ - and?: PlatformConfigDefinitionFilter[]; + and?: PlatformConfigFilter[]; /** Checks for any expressions in this list. */ - or?: PlatformConfigDefinitionFilter[]; + or?: PlatformConfigFilter[]; /** Negates the expression. */ - not?: PlatformConfigDefinitionFilter; + not?: PlatformConfigFilter; } -/** A filter to be used against `PlatformConfig` object types. All fields are combined with a logical ‘and.’ */ -export interface PlatformConfigFilter { +/** A filter to be used against `Config` object types. All fields are combined with a logical ‘and.’ */ +export interface ConfigFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `namespaceId` field. */ namespaceId?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; + /** Filter by the object’s `provider` field. */ + provider?: StringFilter; /** Filter by the object’s `value` field. */ value?: StringFilter; /** Filter by the object’s `labels` field. */ @@ -123,87 +217,182 @@ export interface PlatformConfigFilter { /** Filter by the object’s `expiresAt` field. */ expiresAt?: DatetimeFilter; /** Checks for all expressions in this list. */ - and?: PlatformConfigFilter[]; + and?: ConfigFilter[]; /** Checks for any expressions in this list. */ - or?: PlatformConfigFilter[]; + or?: ConfigFilter[]; /** Negates the expression. */ - not?: PlatformConfigFilter; + not?: ConfigFilter; +} +/** A filter to be used against `PlatformInternalSecret` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformInternalSecretFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `labels` field. */ + labels?: JSONFilter; + /** Filter by the object’s `annotations` field. */ + annotations?: JSONFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `rotatedAt` field. */ + rotatedAt?: DatetimeFilter; + /** Filter by the object’s `retiredAt` field. */ + retiredAt?: DatetimeFilter; + /** Checks for all expressions in this list. */ + and?: PlatformInternalSecretFilter[]; + /** Checks for any expressions in this list. */ + or?: PlatformInternalSecretFilter[]; + /** Negates the expression. */ + not?: PlatformInternalSecretFilter; +} +/** A filter to be used against `PlatformSecret` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformSecretFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `provider` field. */ + provider?: StringFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `labels` field. */ + labels?: JSONFilter; + /** Filter by the object’s `annotations` field. */ + annotations?: JSONFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `rotatedAt` field. */ + rotatedAt?: DatetimeFilter; + /** Filter by the object’s `retiredAt` field. */ + retiredAt?: DatetimeFilter; + /** Checks for all expressions in this list. */ + and?: PlatformSecretFilter[]; + /** Checks for any expressions in this list. */ + or?: PlatformSecretFilter[]; + /** Negates the expression. */ + not?: PlatformSecretFilter; +} +/** A filter to be used against `Secret` object types. All fields are combined with a logical ‘and.’ */ +export interface SecretFilter { + /** 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 `provider` field. */ + provider?: StringFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `labels` field. */ + labels?: JSONFilter; + /** Filter by the object’s `annotations` field. */ + annotations?: JSONFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `rotatedAt` field. */ + rotatedAt?: DatetimeFilter; + /** Filter by the object’s `retiredAt` field. */ + retiredAt?: DatetimeFilter; + /** Checks for all expressions in this list. */ + and?: SecretFilter[]; + /** Checks for any expressions in this list. */ + or?: SecretFilter[]; + /** Negates the expression. */ + not?: SecretFilter; +} +export interface PlatformInternalSecretsDelInput { + clientMutationId?: string; + secretName?: string; + namespaceId?: string; } export interface PlatformSecretsDelInput { clientMutationId?: string; secretName?: string; namespaceId?: string; } -export interface OrgSecretsDelInput { +export interface _SecretsDelInput { clientMutationId?: string; - ownerId?: string; + databaseId?: string; secretName?: string; namespaceId?: string; } +export interface PlatformInternalSecretsRemoveArrayInput { + clientMutationId?: string; + secretNames?: string[]; + namespaceId?: string; +} export interface PlatformSecretsRemoveArrayInput { clientMutationId?: string; secretNames?: string[]; namespaceId?: string; } -export interface OrgSecretsRemoveArrayInput { +export interface _SecretsRemoveArrayInput { clientMutationId?: string; - ownerId?: string; + databaseId?: string; secretNames?: string[]; namespaceId?: string; } -export interface PlatformSecretsRotateInput { +export interface PlatformInternalSecretsRotateInput { clientMutationId?: string; secretName?: string; secretValue?: string; namespaceId?: string; algo?: string; } -export interface PlatformSecretsSetInput { +export interface PlatformInternalSecretsSetInput { clientMutationId?: string; secretName?: string; secretValue?: string; secretNamespaceId?: string; algo?: string; } -export interface OrgSecretsRotateInput { +export interface PlatformSecretsRotateInput { clientMutationId?: string; - ownerId?: string; secretName?: string; secretValue?: string; namespaceId?: string; algo?: string; } -export interface OrgSecretsSetInput { +export interface _SecretsRotateInput { clientMutationId?: string; - scopeOwnerId?: string; + databaseId?: string; secretName?: string; secretValue?: string; - secretNamespaceId?: string; + namespaceId?: string; algo?: string; } -export interface CreatePlatformConfigDefinitionInput { +export interface PlatformSecretsSetInput { clientMutationId?: string; - /** The `PlatformConfigDefinition` to be created by this mutation. */ - platformConfigDefinition: PlatformConfigDefinitionInput; + secretName?: string; + secretValue?: string; + secretNamespaceId?: string; + algo?: string; + provider?: string; } -/** An input for mutations affecting `PlatformConfigDefinition` */ -export interface PlatformConfigDefinitionInput { - /** Unique identifier for this config definition */ - id?: string; - createdAt?: string; - updatedAt?: string; - /** Config key name (must match config table name for resolution) */ - name: string; - /** Human-readable description of what this config key controls */ - description?: string; - /** Default value used when no config entry exists for a namespace */ - defaultValue?: string; - /** Whether this row was seeded as a built-in config definition */ - isBuiltIn?: boolean; - /** Key-value metadata for filtering and grouping config definitions */ - labels?: unknown; - /** Freeform metadata annotations for config definitions */ - annotations?: unknown; +export interface _SecretsSetInput { + clientMutationId?: string; + scopeDatabaseId?: string; + secretName?: string; + secretValue?: string; + secretNamespaceId?: string; + algo?: string; + provider?: string; } export interface CreatePlatformConfigInput { clientMutationId?: string; @@ -218,6 +407,8 @@ export interface PlatformConfigInput { namespaceId: string; /** 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; /** Plaintext config value */ value?: string; /** Key/value pairs for selecting/filtering config entries */ @@ -231,31 +422,92 @@ export interface PlatformConfigInput { /** Optional expiration timestamp for time-limited config entries */ expiresAt?: string; } -export interface UpdatePlatformConfigDefinitionInput { +export interface CreateConfigInput { clientMutationId?: string; - /** Unique identifier for this config definition */ - id: string; - /** An object where the defined keys will be set on the `PlatformConfigDefinition` being updated. */ - platformConfigDefinitionPatch: PlatformConfigDefinitionPatch; + /** The `Config` to be created by this mutation. */ + config: ConfigInput; } -/** Represents an update to a `PlatformConfigDefinition`. Fields that are set will be updated. */ -export interface PlatformConfigDefinitionPatch { - /** Unique identifier for this config definition */ +/** An input for mutations affecting `Config` */ +export interface ConfigInput { + /** Unique identifier for this config entry */ id?: string; + /** FK to namespaces — logical grouping for config entries */ + namespaceId: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + /** 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; + /** Plaintext config value */ + value?: string; + /** Key/value pairs for selecting/filtering config entries */ + labels?: unknown; + /** Freeform metadata for tooling and operational notes */ + annotations?: unknown; + /** Human-readable note about this config entry */ + description?: string; createdAt?: string; updatedAt?: string; - /** Config key name (must match config table name for resolution) */ + /** Optional expiration timestamp for time-limited config entries */ + expiresAt?: string; +} +export interface CreatePlatformInternalSecretInput { + clientMutationId?: string; + /** The `PlatformInternalSecret` to be created by this mutation. */ + platformInternalSecret: PlatformInternalSecretInput; +} +/** An input for mutations affecting `PlatformInternalSecret` */ +export interface PlatformInternalSecretInput { + id?: string; + name?: string; + namespaceId?: string; + description?: string; + labels?: unknown; + annotations?: unknown; + createdAt?: string; + updatedAt?: string; + rotatedAt?: string; + retiredAt?: string; +} +export interface CreatePlatformSecretInput { + clientMutationId?: string; + /** The `PlatformSecret` to be created by this mutation. */ + platformSecret: PlatformSecretInput; +} +/** An input for mutations affecting `PlatformSecret` */ +export interface PlatformSecretInput { + id?: string; + name?: string; + provider?: string; + namespaceId?: string; + description?: string; + labels?: unknown; + annotations?: unknown; + createdAt?: string; + updatedAt?: string; + rotatedAt?: string; + retiredAt?: string; +} +export interface CreateSecretInput { + clientMutationId?: string; + /** The `Secret` to be created by this mutation. */ + secret: SecretInput; +} +/** An input for mutations affecting `Secret` */ +export interface SecretInput { + databaseId?: string; + id?: string; name?: string; - /** Human-readable description of what this config key controls */ + provider?: string; + namespaceId?: string; description?: string; - /** Default value used when no config entry exists for a namespace */ - defaultValue?: string; - /** Whether this row was seeded as a built-in config definition */ - isBuiltIn?: boolean; - /** Key-value metadata for filtering and grouping config definitions */ labels?: unknown; - /** Freeform metadata annotations for config definitions */ annotations?: unknown; + createdAt?: string; + updatedAt?: string; + rotatedAt?: string; + retiredAt?: string; } export interface UpdatePlatformConfigInput { clientMutationId?: string; @@ -272,6 +524,8 @@ export interface PlatformConfigPatch { namespaceId?: string; /** 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; /** Plaintext config value */ value?: string; /** Key/value pairs for selecting/filtering config entries */ @@ -285,16 +539,48 @@ export interface PlatformConfigPatch { /** Optional expiration timestamp for time-limited config entries */ expiresAt?: string; } -export interface DeletePlatformConfigDefinitionInput { +export interface UpdateConfigInput { clientMutationId?: string; - /** Unique identifier for this config definition */ + /** Unique identifier for this config entry */ id: string; + /** An object where the defined keys will be set on the `Config` being updated. */ + configPatch: ConfigPatch; +} +/** Represents an update to a `Config`. Fields that are set will be updated. */ +export interface ConfigPatch { + /** Unique identifier for this config entry */ + id?: string; + /** FK to namespaces — logical grouping for config entries */ + namespaceId?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId?: string; + /** 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; + /** Plaintext config value */ + value?: string; + /** Key/value pairs for selecting/filtering config entries */ + labels?: unknown; + /** Freeform metadata for tooling and operational notes */ + annotations?: unknown; + /** Human-readable note about this config entry */ + description?: string; + createdAt?: string; + updatedAt?: string; + /** Optional expiration timestamp for time-limited config entries */ + expiresAt?: string; } export interface DeletePlatformConfigInput { clientMutationId?: string; /** Unique identifier for this config entry */ id: string; } +export interface DeleteConfigInput { + clientMutationId?: string; + /** Unique identifier for this config entry */ + id: string; +} export interface ProvisionBucketInput { /** The logical bucket key (e.g., "public", "private") */ bucketKey: string; @@ -304,13 +590,6 @@ export interface ProvisionBucketInput { */ ownerId?: string; } -/** A connection to a list of `PlatformConfigDefinition` values. */ -export interface PlatformConfigDefinitionConnection { - nodes: PlatformConfigDefinition[]; - edges: PlatformConfigDefinitionEdge[]; - pageInfo: PageInfo; - totalCount: number; -} /** A connection to a list of `PlatformConfig` values. */ export interface PlatformConfigConnection { nodes: PlatformConfig[]; @@ -318,43 +597,79 @@ export interface PlatformConfigConnection { pageInfo: PageInfo; totalCount: number; } +/** A connection to a list of `Config` values. */ +export interface ConfigConnection { + nodes: Config[]; + edges: ConfigEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `PlatformInternalSecret` values. */ +export interface PlatformInternalSecretConnection { + nodes: PlatformInternalSecret[]; + edges: PlatformInternalSecretEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `PlatformSecret` values. */ +export interface PlatformSecretConnection { + nodes: PlatformSecret[]; + edges: PlatformSecretEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `Secret` values. */ +export interface SecretConnection { + nodes: Secret[]; + edges: SecretEdge[]; + pageInfo: PageInfo; + totalCount: number; +} /** Root meta schema type */ export interface MetaSchema { tables: MetaTable[]; } +export interface PlatformInternalSecretsDelPayload { + clientMutationId?: string | null; +} export interface PlatformSecretsDelPayload { clientMutationId?: string | null; } -export interface OrgSecretsDelPayload { +export interface _SecretsDelPayload { + clientMutationId?: string | null; +} +export interface PlatformInternalSecretsRemoveArrayPayload { clientMutationId?: string | null; } export interface PlatformSecretsRemoveArrayPayload { clientMutationId?: string | null; } -export interface OrgSecretsRemoveArrayPayload { +export interface _SecretsRemoveArrayPayload { clientMutationId?: string | null; } -export interface PlatformSecretsRotatePayload { +export interface PlatformInternalSecretsRotatePayload { clientMutationId?: string | null; result?: boolean | null; } -export interface PlatformSecretsSetPayload { +export interface PlatformInternalSecretsSetPayload { + clientMutationId?: string | null; + result?: boolean | null; +} +export interface PlatformSecretsRotatePayload { clientMutationId?: string | null; result?: boolean | null; } -export interface OrgSecretsRotatePayload { +export interface _SecretsRotatePayload { clientMutationId?: string | null; result?: boolean | null; } -export interface OrgSecretsSetPayload { +export interface PlatformSecretsSetPayload { clientMutationId?: string | null; result?: boolean | null; } -export interface CreatePlatformConfigDefinitionPayload { +export interface _SecretsSetPayload { clientMutationId?: string | null; - /** The `PlatformConfigDefinition` that was created by this mutation. */ - platformConfigDefinition?: PlatformConfigDefinition | null; - platformConfigDefinitionEdge?: PlatformConfigDefinitionEdge | null; + result?: boolean | null; } export interface CreatePlatformConfigPayload { clientMutationId?: string | null; @@ -362,11 +677,26 @@ export interface CreatePlatformConfigPayload { platformConfig?: PlatformConfig | null; platformConfigEdge?: PlatformConfigEdge | null; } -export interface UpdatePlatformConfigDefinitionPayload { +export interface CreateConfigPayload { clientMutationId?: string | null; - /** The `PlatformConfigDefinition` that was updated by this mutation. */ - platformConfigDefinition?: PlatformConfigDefinition | null; - platformConfigDefinitionEdge?: PlatformConfigDefinitionEdge | null; + /** The `Config` that was created by this mutation. */ + config?: Config | null; + configEdge?: ConfigEdge | null; +} +export interface CreatePlatformInternalSecretPayload { + clientMutationId?: string | null; + /** The `PlatformInternalSecret` that was created by this mutation. */ + platformInternalSecret?: PlatformInternalSecret | null; +} +export interface CreatePlatformSecretPayload { + clientMutationId?: string | null; + /** The `PlatformSecret` that was created by this mutation. */ + platformSecret?: PlatformSecret | null; +} +export interface CreateSecretPayload { + clientMutationId?: string | null; + /** The `Secret` that was created by this mutation. */ + secret?: Secret | null; } export interface UpdatePlatformConfigPayload { clientMutationId?: string | null; @@ -374,11 +704,11 @@ export interface UpdatePlatformConfigPayload { platformConfig?: PlatformConfig | null; platformConfigEdge?: PlatformConfigEdge | null; } -export interface DeletePlatformConfigDefinitionPayload { +export interface UpdateConfigPayload { clientMutationId?: string | null; - /** The `PlatformConfigDefinition` that was deleted by this mutation. */ - platformConfigDefinition?: PlatformConfigDefinition | null; - platformConfigDefinitionEdge?: PlatformConfigDefinitionEdge | null; + /** The `Config` that was updated by this mutation. */ + config?: Config | null; + configEdge?: ConfigEdge | null; } export interface DeletePlatformConfigPayload { clientMutationId?: string | null; @@ -386,6 +716,12 @@ export interface DeletePlatformConfigPayload { platformConfig?: PlatformConfig | null; platformConfigEdge?: PlatformConfigEdge | null; } +export interface DeleteConfigPayload { + clientMutationId?: string | null; + /** The `Config` that was deleted by this mutation. */ + config?: Config | null; + configEdge?: ConfigEdge | null; +} export interface ProvisionBucketPayload { /** Whether provisioning succeeded */ success: boolean; @@ -400,11 +736,11 @@ export interface ProvisionBucketPayload { /** Error message if provisioning failed */ error?: string | null; } -/** A `PlatformConfigDefinition` edge in the connection. */ -export interface PlatformConfigDefinitionEdge { +/** A `PlatformConfig` edge in the connection. */ +export interface PlatformConfigEdge { cursor?: string | null; - /** The `PlatformConfigDefinition` at the end of the edge. */ - node?: PlatformConfigDefinition | null; + /** The `PlatformConfig` at the end of the edge. */ + node?: PlatformConfig | null; } /** Information about pagination in a connection. */ export interface PageInfo { @@ -417,11 +753,29 @@ export interface PageInfo { /** When paginating forwards, the cursor to continue. */ endCursor?: string | null; } -/** A `PlatformConfig` edge in the connection. */ -export interface PlatformConfigEdge { +/** A `Config` edge in the connection. */ +export interface ConfigEdge { cursor?: string | null; - /** The `PlatformConfig` at the end of the edge. */ - node?: PlatformConfig | null; + /** The `Config` at the end of the edge. */ + node?: Config | null; +} +/** A `PlatformInternalSecret` edge in the connection. */ +export interface PlatformInternalSecretEdge { + cursor?: string | null; + /** The `PlatformInternalSecret` at the end of the edge. */ + node?: PlatformInternalSecret | null; +} +/** A `PlatformSecret` edge in the connection. */ +export interface PlatformSecretEdge { + cursor?: string | null; + /** The `PlatformSecret` at the end of the edge. */ + node?: PlatformSecret | null; +} +/** A `Secret` edge in the connection. */ +export interface SecretEdge { + cursor?: string | null; + /** The `Secret` at the end of the edge. */ + node?: Secret | null; } /** Information about a database table */ export interface MetaTable { diff --git a/sdk/constructive-react/src/config/types.ts b/sdk/constructive-react/src/config/types.ts index 9d44cc028c..8ae5941ef4 100644 --- a/sdk/constructive-react/src/config/types.ts +++ b/sdk/constructive-react/src/config/types.ts @@ -3,21 +3,25 @@ * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ -export interface PlatformConfigDefinition { +export interface PlatformConfig { id: string | null; - createdAt: string | null; - updatedAt: string | null; + namespaceId: string | null; name: string | null; - description: string | null; - defaultValue: string | null; - isBuiltIn: boolean | null; + provider: string | null; + value: string | null; labels: unknown | null; annotations: unknown | null; + description: string | null; + createdAt: string | null; + updatedAt: string | null; + expiresAt: string | null; } -export interface PlatformConfig { +export interface Config { id: string | null; namespaceId: string | null; + databaseId: string | null; name: string | null; + provider: string | null; value: string | null; labels: unknown | null; annotations: unknown | null; @@ -26,6 +30,45 @@ export interface PlatformConfig { updatedAt: string | null; expiresAt: string | null; } +export interface PlatformInternalSecret { + id: string | null; + name: string | null; + namespaceId: string | null; + description: string | null; + labels: unknown | null; + annotations: unknown | null; + createdAt: string | null; + updatedAt: string | null; + rotatedAt: string | null; + retiredAt: string | null; +} +export interface PlatformSecret { + id: string | null; + name: string | null; + provider: string | null; + namespaceId: string | null; + description: string | null; + labels: unknown | null; + annotations: unknown | null; + createdAt: string | null; + updatedAt: string | null; + rotatedAt: string | null; + retiredAt: string | null; +} +export interface Secret { + databaseId: string | null; + id: string | null; + name: string | null; + provider: string | null; + namespaceId: string | null; + description: string | null; + labels: unknown | null; + annotations: unknown | null; + createdAt: string | null; + updatedAt: string | null; + rotatedAt: string | null; + retiredAt: string | null; +} export interface StringFilter { isNull?: boolean; equalTo?: string; diff --git a/sdk/constructive-react/src/index.ts b/sdk/constructive-react/src/index.ts index eb54985786..f64a72cd39 100644 --- a/sdk/constructive-react/src/index.ts +++ b/sdk/constructive-react/src/index.ts @@ -12,6 +12,7 @@ export * as api from './api'; export * as auth from './auth'; export * as compute from './compute'; export * as config from './config'; +export * as infra from './infra'; export * as modules from './modules'; export * as objects from './objects'; export * as usage from './usage'; diff --git a/sdk/constructive-react/src/infra/README.md b/sdk/constructive-react/src/infra/README.md new file mode 100644 index 0000000000..efd2003c0c --- /dev/null +++ b/sdk/constructive-react/src/infra/README.md @@ -0,0 +1,54 @@ +# Generated GraphQL SDK + +

+ +

+ + + +## Overview + +- **Tables:** 10 +- **Custom queries:** 0 +- **Custom mutations:** 4 + +**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. + +--- + +Built by the [Constructive](https://constructive.io) team. + +## Disclaimer + +AS DESCRIBED IN THE LICENSES, THE SOFTWARE IS PROVIDED "AS IS", AT YOUR OWN RISK, AND WITHOUT WARRANTIES OF ANY KIND. + +No developer or entity involved in creating this software will be liable for any claims or damages whatsoever associated with your use, inability to use, or your interaction with other users of the code, including any direct, indirect, incidental, special, exemplary, punitive or consequential damages, or loss of profits, cryptocurrencies, tokens, or anything else of value. diff --git a/sdk/constructive-react/src/infra/hooks/README.md b/sdk/constructive-react/src/infra/hooks/README.md new file mode 100644 index 0000000000..b693ab8def --- /dev/null +++ b/sdk/constructive-react/src/infra/hooks/README.md @@ -0,0 +1,353 @@ +# 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 | +|------|------|-------------| +| `useInfraGetAllQuery` | Query | List all infraGetAll | +| `useCreateInfraGetAllRecordMutation` | Mutation | Create a infraGetAllRecord | +| `useInfraRefsQuery` | Query | Branch heads — mutable pointers into the commit chain | +| `useInfraRefQuery` | Query | Branch heads — mutable pointers into the commit chain | +| `useCreateInfraRefMutation` | Mutation | Branch heads — mutable pointers into the commit chain | +| `useUpdateInfraRefMutation` | Mutation | Branch heads — mutable pointers into the commit chain | +| `useDeleteInfraRefMutation` | Mutation | Branch heads — mutable pointers into the commit chain | +| `useInfraStoresQuery` | Query | Named stores — one per version-controlled tree (e.g. one graph, one definition set) | +| `useInfraStoreQuery` | Query | Named stores — one per version-controlled tree (e.g. one graph, one definition set) | +| `useCreateInfraStoreMutation` | Mutation | Named stores — one per version-controlled tree (e.g. one graph, one definition set) | +| `useUpdateInfraStoreMutation` | Mutation | Named stores — one per version-controlled tree (e.g. one graph, one definition set) | +| `useDeleteInfraStoreMutation` | Mutation | Named stores — one per version-controlled tree (e.g. one graph, one definition set) | +| `useInfraObjectsQuery` | Query | Content-addressed Merkle tree objects keyed by UUID v5 hash of data + children | +| `useInfraObjectQuery` | Query | Content-addressed Merkle tree objects keyed by UUID v5 hash of data + children | +| `useCreateInfraObjectMutation` | Mutation | Content-addressed Merkle tree objects keyed by UUID v5 hash of data + children | +| `useUpdateInfraObjectMutation` | Mutation | Content-addressed Merkle tree objects keyed by UUID v5 hash of data + children | +| `useDeleteInfraObjectMutation` | Mutation | Content-addressed Merkle tree objects keyed by UUID v5 hash of data + children | +| `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 | +| `useUpdateInfraCommitMutation` | Mutation | Commit history — each commit snapshots a tree root for a store | +| `useDeleteInfraCommitMutation` | Mutation | Commit history — each commit snapshots a tree root for a 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 | +| `useUpdateDbPresetMutation` | Mutation | Database provisioning preset catalog — merkle-versioned head over the infra store | +| `useDeleteDbPresetMutation` | Mutation | Database provisioning preset catalog — merkle-versioned head over the infra store | +| `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 | +| `useUpdatePlatformNamespaceMutation` | Mutation | Logical namespace containers for grouping secrets, config, functions, and other resources | +| `useDeletePlatformNamespaceMutation` | Mutation | Logical namespace containers for grouping secrets, config, functions, and other resources | +| `useNamespacesQuery` | Query | Logical namespace containers for grouping secrets, config, functions, and other resources | +| `useNamespaceQuery` | Query | Logical namespace containers for grouping secrets, config, functions, and other resources | +| `useCreateNamespaceMutation` | Mutation | Logical namespace containers for grouping secrets, config, functions, and other resources | +| `useUpdateNamespaceMutation` | Mutation | Logical namespace containers for grouping secrets, config, functions, and other resources | +| `useDeleteNamespaceMutation` | Mutation | Logical namespace containers for grouping secrets, config, functions, and other resources | +| `usePlatformNamespaceEventsQuery` | Query | Namespace lifecycle events — audit log of creation, activation, deactivation, label changes | +| `usePlatformNamespaceEventQuery` | Query | Namespace lifecycle events — audit log of creation, activation, deactivation, label changes | +| `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 | +| `useNamespaceEventsQuery` | Query | Namespace lifecycle events — audit log of creation, activation, deactivation, label changes | +| `useNamespaceEventQuery` | Query | Namespace lifecycle events — audit log of creation, activation, deactivation, label changes | +| `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 | +| `useInfraInitEmptyRepoMutation` | Mutation | infraInitEmptyRepo | +| `useInfraSetDataAtPathMutation` | Mutation | infraSetDataAtPath | +| `useInfraInsertNodeAtPathMutation` | Mutation | infraInsertNodeAtPath | +| `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 + +### InfraGetAllRecord + +```typescript +// List all infraGetAll +const { data, isLoading } = useInfraGetAllQuery({ + selection: { fields: { path: true, data: true } }, +}); + +// Create a infraGetAllRecord +const { mutate: create } = useCreateInfraGetAllRecordMutation({ + selection: { fields: { id: true } }, +}); +create({ path: '', data: '' }); +``` + +### InfraRef + +```typescript +// List all infraRefs +const { data, isLoading } = useInfraRefsQuery({ + selection: { fields: { id: true, name: true, scopeId: true, storeId: true, commitId: true } }, +}); + +// Get one infraRef +const { data: item } = useInfraRefQuery({ + id: '', + selection: { fields: { id: true, name: true, scopeId: true, storeId: true, commitId: true } }, +}); + +// Create a infraRef +const { mutate: create } = useCreateInfraRefMutation({ + selection: { fields: { id: true } }, +}); +create({ name: '', scopeId: '', storeId: '', commitId: '' }); +``` + +### InfraStore + +```typescript +// List all infraStores +const { data, isLoading } = useInfraStoresQuery({ + selection: { fields: { id: true, name: true, scopeId: true, hash: true, createdAt: true } }, +}); + +// Get one infraStore +const { data: item } = useInfraStoreQuery({ + id: '', + selection: { fields: { id: true, name: true, scopeId: true, hash: true, createdAt: true } }, +}); + +// Create a infraStore +const { mutate: create } = useCreateInfraStoreMutation({ + selection: { fields: { id: true } }, +}); +create({ name: '', scopeId: '', hash: '' }); +``` + +### InfraObject + +```typescript +// List all infraObjects +const { data, isLoading } = useInfraObjectsQuery({ + selection: { fields: { id: true, scopeId: true, kids: true, ktree: true, data: true, createdAt: true } }, +}); + +// Get one infraObject +const { data: item } = useInfraObjectQuery({ + id: '', + selection: { fields: { id: true, scopeId: true, kids: true, ktree: true, data: true, createdAt: true } }, +}); + +// Create a infraObject +const { mutate: create } = useCreateInfraObjectMutation({ + selection: { fields: { id: true } }, +}); +create({ scopeId: '', kids: '', ktree: '', data: '' }); +``` + +### InfraCommit + +```typescript +// List all infraCommits +const { data, isLoading } = useInfraCommitsQuery({ + selection: { fields: { id: true, message: true, scopeId: true, storeId: true, parentIds: true, authorId: true, committerId: true, treeId: true, date: true } }, +}); + +// Get one infraCommit +const { data: item } = useInfraCommitQuery({ + id: '', + selection: { fields: { id: true, message: true, scopeId: true, storeId: true, parentIds: true, authorId: true, committerId: true, treeId: true, date: true } }, +}); + +// Create a infraCommit +const { mutate: create } = useCreateInfraCommitMutation({ + selection: { fields: { id: true } }, +}); +create({ message: '', scopeId: '', storeId: '', parentIds: '', authorId: '', committerId: '', treeId: '', date: '' }); +``` + +### DbPreset + +```typescript +// List all dbPresets +const { data, isLoading } = useDbPresetsQuery({ + selection: { fields: { id: true, storeId: true, slug: true, definition: true, commitId: true, modulesHash: true, label: true, description: true, active: true, createdAt: true, updatedAt: true } }, +}); + +// Get one dbPreset +const { data: item } = useDbPresetQuery({ + id: '', + selection: { fields: { id: true, storeId: true, slug: true, definition: true, commitId: true, modulesHash: true, label: true, description: true, active: true, createdAt: true, updatedAt: true } }, +}); + +// Create a dbPreset +const { mutate: create } = useCreateDbPresetMutation({ + selection: { fields: { id: true } }, +}); +create({ storeId: '', slug: '', definition: '', commitId: '', modulesHash: '', label: '', description: '', active: '' }); +``` + +### PlatformNamespace + +```typescript +// List all platformNamespaces +const { data, isLoading } = usePlatformNamespacesQuery({ + selection: { fields: { id: true, createdAt: true, updatedAt: true, name: true, namespaceName: true, description: true, isActive: true, status: true, lastError: true, labels: true, annotations: true, isManaged: true } }, +}); + +// Get one platformNamespace +const { data: item } = usePlatformNamespaceQuery({ + id: '', + selection: { fields: { id: true, createdAt: true, updatedAt: true, name: true, namespaceName: true, description: true, isActive: true, status: true, lastError: true, labels: true, annotations: true, isManaged: true } }, +}); + +// Create a platformNamespace +const { mutate: create } = useCreatePlatformNamespaceMutation({ + selection: { fields: { id: true } }, +}); +create({ name: '', namespaceName: '', description: '', isActive: '', status: '', lastError: '', labels: '', annotations: '', isManaged: '' }); +``` + +### Namespace + +```typescript +// List all namespaces +const { data, isLoading } = useNamespacesQuery({ + selection: { fields: { id: true, createdAt: true, updatedAt: true, name: true, namespaceName: true, description: true, isActive: true, status: true, lastError: true, labels: true, annotations: true, databaseId: true, isManaged: true } }, +}); + +// Get one namespace +const { data: item } = useNamespaceQuery({ + id: '', + selection: { fields: { id: true, createdAt: true, updatedAt: true, name: true, namespaceName: true, description: true, isActive: true, status: true, lastError: true, labels: true, annotations: true, databaseId: true, isManaged: true } }, +}); + +// Create a namespace +const { mutate: create } = useCreateNamespaceMutation({ + selection: { fields: { id: true } }, +}); +create({ name: '', namespaceName: '', description: '', isActive: '', status: '', lastError: '', labels: '', annotations: '', databaseId: '', isManaged: '' }); +``` + +### PlatformNamespaceEvent + +```typescript +// List all platformNamespaceEvents +const { data, isLoading } = usePlatformNamespaceEventsQuery({ + selection: { fields: { createdAt: true, id: true, namespaceId: true, eventType: true, actorId: true, message: true, metadata: true, cpuMillicores: true, memoryBytes: true, storageBytes: true, networkIngressBytes: true, networkEgressBytes: true, podCount: true, metrics: true } }, +}); + +// Get one platformNamespaceEvent +const { data: item } = usePlatformNamespaceEventQuery({ + id: '', + selection: { fields: { createdAt: true, id: true, namespaceId: true, eventType: true, actorId: true, message: true, metadata: true, cpuMillicores: true, memoryBytes: true, storageBytes: true, networkIngressBytes: true, networkEgressBytes: true, podCount: true, metrics: true } }, +}); + +// Create a platformNamespaceEvent +const { mutate: create } = useCreatePlatformNamespaceEventMutation({ + selection: { fields: { id: true } }, +}); +create({ namespaceId: '', eventType: '', actorId: '', message: '', metadata: '', cpuMillicores: '', memoryBytes: '', storageBytes: '', networkIngressBytes: '', networkEgressBytes: '', podCount: '', metrics: '' }); +``` + +### NamespaceEvent + +```typescript +// List all namespaceEvents +const { data, isLoading } = useNamespaceEventsQuery({ + selection: { fields: { createdAt: true, id: true, namespaceId: true, eventType: true, actorId: true, message: true, metadata: true, cpuMillicores: true, memoryBytes: true, storageBytes: true, networkIngressBytes: true, networkEgressBytes: true, podCount: true, metrics: true, databaseId: true } }, +}); + +// Get one namespaceEvent +const { data: item } = useNamespaceEventQuery({ + id: '', + selection: { fields: { createdAt: true, id: true, namespaceId: true, eventType: true, actorId: true, message: true, metadata: true, cpuMillicores: true, memoryBytes: true, storageBytes: true, networkIngressBytes: true, networkEgressBytes: true, podCount: true, metrics: true, databaseId: true } }, +}); + +// Create a namespaceEvent +const { mutate: create } = useCreateNamespaceEventMutation({ + selection: { fields: { id: true } }, +}); +create({ namespaceId: '', eventType: '', actorId: '', message: '', metadata: '', cpuMillicores: '', memoryBytes: '', storageBytes: '', networkIngressBytes: '', networkEgressBytes: '', podCount: '', metrics: '', databaseId: '' }); +``` + +## Custom Operation Hooks + +### `useInfraInitEmptyRepoMutation` + +infraInitEmptyRepo + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | InfraInitEmptyRepoInput (required) | + +### `useInfraSetDataAtPathMutation` + +infraSetDataAtPath + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | InfraSetDataAtPathInput (required) | + +### `useInfraInsertNodeAtPathMutation` + +infraInsertNodeAtPath + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | InfraInsertNodeAtPathInput (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) | + +--- + +Built by the [Constructive](https://constructive.io) team. + +## Disclaimer + +AS DESCRIBED IN THE LICENSES, THE SOFTWARE IS PROVIDED "AS IS", AT YOUR OWN RISK, AND WITHOUT WARRANTIES OF ANY KIND. + +No developer or entity involved in creating this software will be liable for any claims or damages whatsoever associated with your use, inability to use, or your interaction with other users of the code, including any direct, indirect, incidental, special, exemplary, punitive or consequential damages, or loss of profits, cryptocurrencies, tokens, or anything else of value. diff --git a/sdk/constructive-react/src/infra/hooks/client.ts b/sdk/constructive-react/src/infra/hooks/client.ts new file mode 100644 index 0000000000..47b9aa63f4 --- /dev/null +++ b/sdk/constructive-react/src/infra/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/infra/hooks/index.ts b/sdk/constructive-react/src/infra/hooks/index.ts new file mode 100644 index 0000000000..7a1d5160a5 --- /dev/null +++ b/sdk/constructive-react/src/infra/hooks/index.ts @@ -0,0 +1,39 @@ +/** + * GraphQL SDK + * @generated by @constructive-io/graphql-codegen + * + * Tables: InfraGetAllRecord, InfraRef, InfraStore, InfraObject, InfraCommit, DbPreset, PlatformNamespace, Namespace, PlatformNamespaceEvent, NamespaceEvent + * + * 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/infra/hooks/invalidation.ts b/sdk/constructive-react/src/infra/hooks/invalidation.ts new file mode 100644 index 0000000000..fa8108fdf5 --- /dev/null +++ b/sdk/constructive-react/src/infra/hooks/invalidation.ts @@ -0,0 +1,297 @@ +/** + * 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 { + infraGetAllRecordKeys, + infraRefKeys, + infraStoreKeys, + infraObjectKeys, + infraCommitKeys, + dbPresetKeys, + platformNamespaceKeys, + namespaceKeys, + platformNamespaceEventKeys, + namespaceEventKeys, +} 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 infraGetAllRecord queries */ infraGetAllRecord: { + /** Invalidate all infraGetAllRecord queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: infraGetAllRecordKeys.all, + }), + /** Invalidate infraGetAllRecord list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: infraGetAllRecordKeys.lists(), + }), + /** Invalidate a specific infraGetAllRecord */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: infraGetAllRecordKeys.detail(id), + }), + }, + /** Invalidate infraRef queries */ infraRef: { + /** Invalidate all infraRef queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: infraRefKeys.all, + }), + /** Invalidate infraRef list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: infraRefKeys.lists(), + }), + /** Invalidate a specific infraRef */ detail: (queryClient: QueryClient, id: string | number) => + queryClient.invalidateQueries({ + queryKey: infraRefKeys.detail(id), + }), + }, + /** Invalidate infraStore queries */ infraStore: { + /** Invalidate all infraStore queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: infraStoreKeys.all, + }), + /** Invalidate infraStore list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: infraStoreKeys.lists(), + }), + /** Invalidate a specific infraStore */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: infraStoreKeys.detail(id), + }), + }, + /** Invalidate infraObject queries */ infraObject: { + /** Invalidate all infraObject queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: infraObjectKeys.all, + }), + /** Invalidate infraObject list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: infraObjectKeys.lists(), + }), + /** Invalidate a specific infraObject */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: infraObjectKeys.detail(id), + }), + }, + /** Invalidate infraCommit queries */ infraCommit: { + /** Invalidate all infraCommit queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: infraCommitKeys.all, + }), + /** Invalidate infraCommit list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: infraCommitKeys.lists(), + }), + /** Invalidate a specific infraCommit */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: infraCommitKeys.detail(id), + }), + }, + /** Invalidate dbPreset queries */ dbPreset: { + /** Invalidate all dbPreset queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: dbPresetKeys.all, + }), + /** Invalidate dbPreset list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: dbPresetKeys.lists(), + }), + /** Invalidate a specific dbPreset */ detail: (queryClient: QueryClient, id: string | number) => + queryClient.invalidateQueries({ + queryKey: dbPresetKeys.detail(id), + }), + }, + /** Invalidate platformNamespace queries */ platformNamespace: { + /** Invalidate all platformNamespace queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: platformNamespaceKeys.all, + }), + /** Invalidate platformNamespace list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: platformNamespaceKeys.lists(), + }), + /** Invalidate a specific platformNamespace */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: platformNamespaceKeys.detail(id), + }), + }, + /** Invalidate namespace queries */ namespace: { + /** Invalidate all namespace queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: namespaceKeys.all, + }), + /** Invalidate namespace list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: namespaceKeys.lists(), + }), + /** Invalidate a specific namespace */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: namespaceKeys.detail(id), + }), + }, + /** Invalidate platformNamespaceEvent queries */ platformNamespaceEvent: { + /** Invalidate all platformNamespaceEvent queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: platformNamespaceEventKeys.all, + }), + /** Invalidate platformNamespaceEvent list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: platformNamespaceEventKeys.lists(), + }), + /** Invalidate a specific platformNamespaceEvent */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: platformNamespaceEventKeys.detail(id), + }), + }, + /** Invalidate namespaceEvent queries */ namespaceEvent: { + /** Invalidate all namespaceEvent queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: namespaceEventKeys.all, + }), + /** Invalidate namespaceEvent list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: namespaceEventKeys.lists(), + }), + /** Invalidate a specific namespaceEvent */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: namespaceEventKeys.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 infraGetAllRecord from cache */ infraGetAllRecord: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: infraGetAllRecordKeys.detail(id), + }); + }, + /** Remove infraRef from cache */ infraRef: (queryClient: QueryClient, id: string | number) => { + queryClient.removeQueries({ + queryKey: infraRefKeys.detail(id), + }); + }, + /** Remove infraStore from cache */ infraStore: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: infraStoreKeys.detail(id), + }); + }, + /** Remove infraObject from cache */ infraObject: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: infraObjectKeys.detail(id), + }); + }, + /** Remove infraCommit from cache */ infraCommit: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: infraCommitKeys.detail(id), + }); + }, + /** Remove dbPreset from cache */ dbPreset: (queryClient: QueryClient, id: string | number) => { + queryClient.removeQueries({ + queryKey: dbPresetKeys.detail(id), + }); + }, + /** Remove platformNamespace from cache */ platformNamespace: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: platformNamespaceKeys.detail(id), + }); + }, + /** Remove namespace from cache */ namespace: (queryClient: QueryClient, id: string | number) => { + queryClient.removeQueries({ + queryKey: namespaceKeys.detail(id), + }); + }, + /** Remove platformNamespaceEvent from cache */ platformNamespaceEvent: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: platformNamespaceEventKeys.detail(id), + }); + }, + /** Remove namespaceEvent from cache */ namespaceEvent: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: namespaceEventKeys.detail(id), + }); + }, +} as const; diff --git a/sdk/constructive-react/src/infra/hooks/mutation-keys.ts b/sdk/constructive-react/src/infra/hooks/mutation-keys.ts new file mode 100644 index 0000000000..50e362b3c8 --- /dev/null +++ b/sdk/constructive-react/src/infra/hooks/mutation-keys.ts @@ -0,0 +1,167 @@ +/** + * 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 infraGetAllRecordMutationKeys = { + /** All infraGetAllRecord mutation keys */ all: ['mutation', 'infragetallrecord'] as const, + /** Create infraGetAllRecord mutation key */ create: () => + ['mutation', 'infragetallrecord', 'create'] as const, + /** Update infraGetAllRecord mutation key */ update: (id: string | number) => + ['mutation', 'infragetallrecord', 'update', id] as const, + /** Delete infraGetAllRecord mutation key */ delete: (id: string | number) => + ['mutation', 'infragetallrecord', 'delete', id] as const, +} as const; +export const infraRefMutationKeys = { + /** All infraRef mutation keys */ all: ['mutation', 'infraref'] as const, + /** Create infraRef mutation key */ create: () => ['mutation', 'infraref', 'create'] as const, + /** Update infraRef mutation key */ update: (id: string | number) => + ['mutation', 'infraref', 'update', id] as const, + /** Delete infraRef mutation key */ delete: (id: string | number) => + ['mutation', 'infraref', 'delete', id] as const, +} as const; +export const infraStoreMutationKeys = { + /** All infraStore mutation keys */ all: ['mutation', 'infrastore'] as const, + /** Create infraStore mutation key */ create: () => ['mutation', 'infrastore', 'create'] as const, + /** Update infraStore mutation key */ update: (id: string | number) => + ['mutation', 'infrastore', 'update', id] as const, + /** Delete infraStore mutation key */ delete: (id: string | number) => + ['mutation', 'infrastore', 'delete', id] as const, +} as const; +export const infraObjectMutationKeys = { + /** All infraObject mutation keys */ all: ['mutation', 'infraobject'] as const, + /** Create infraObject mutation key */ create: () => + ['mutation', 'infraobject', 'create'] as const, + /** Update infraObject mutation key */ update: (id: string | number) => + ['mutation', 'infraobject', 'update', id] as const, + /** Delete infraObject mutation key */ delete: (id: string | number) => + ['mutation', 'infraobject', 'delete', id] as const, +} as const; +export const infraCommitMutationKeys = { + /** All infraCommit mutation keys */ all: ['mutation', 'infracommit'] as const, + /** Create infraCommit mutation key */ create: () => + ['mutation', 'infracommit', 'create'] as const, + /** Update infraCommit mutation key */ update: (id: string | number) => + ['mutation', 'infracommit', 'update', id] as const, + /** Delete infraCommit mutation key */ delete: (id: string | number) => + ['mutation', 'infracommit', '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, + /** Update dbPreset mutation key */ update: (id: string | number) => + ['mutation', 'dbpreset', 'update', id] as const, + /** Delete dbPreset mutation key */ delete: (id: string | number) => + ['mutation', 'dbpreset', 'delete', id] as const, +} as const; +export const platformNamespaceMutationKeys = { + /** All platformNamespace mutation keys */ all: ['mutation', 'platformnamespace'] as const, + /** Create platformNamespace mutation key */ create: () => + ['mutation', 'platformnamespace', 'create'] as const, + /** Update platformNamespace mutation key */ update: (id: string | number) => + ['mutation', 'platformnamespace', 'update', id] as const, + /** Delete platformNamespace mutation key */ delete: (id: string | number) => + ['mutation', 'platformnamespace', 'delete', id] as const, +} as const; +export const namespaceMutationKeys = { + /** All namespace mutation keys */ all: ['mutation', 'namespace'] as const, + /** Create namespace mutation key */ create: () => ['mutation', 'namespace', 'create'] as const, + /** Update namespace mutation key */ update: (id: string | number) => + ['mutation', 'namespace', 'update', id] as const, + /** Delete namespace mutation key */ delete: (id: string | number) => + ['mutation', 'namespace', 'delete', id] as const, +} as const; +export const platformNamespaceEventMutationKeys = { + /** All platformNamespaceEvent mutation keys */ all: [ + 'mutation', + 'platformnamespaceevent', + ] as const, + /** Create platformNamespaceEvent mutation key */ create: () => + ['mutation', 'platformnamespaceevent', 'create'] as const, + /** Update platformNamespaceEvent mutation key */ update: (id: string | number) => + ['mutation', 'platformnamespaceevent', 'update', id] as const, + /** Delete platformNamespaceEvent mutation key */ delete: (id: string | number) => + ['mutation', 'platformnamespaceevent', 'delete', id] as const, +} as const; +export const namespaceEventMutationKeys = { + /** All namespaceEvent mutation keys */ all: ['mutation', 'namespaceevent'] as const, + /** Create namespaceEvent mutation key */ create: () => + ['mutation', 'namespaceevent', 'create'] as const, + /** Update namespaceEvent mutation key */ update: (id: string | number) => + ['mutation', 'namespaceevent', 'update', id] as const, + /** Delete namespaceEvent mutation key */ delete: (id: string | number) => + ['mutation', 'namespaceevent', 'delete', id] as const, +} as const; + +// ============================================================================ +// Custom Mutation Keys +// ============================================================================ + +export const customMutationKeys = { + /** Mutation key for infraInitEmptyRepo */ infraInitEmptyRepo: (identifier?: string) => + identifier + ? (['mutation', 'infraInitEmptyRepo', identifier] as const) + : (['mutation', 'infraInitEmptyRepo'] as const), + /** Mutation key for infraSetDataAtPath */ infraSetDataAtPath: (identifier?: string) => + identifier + ? (['mutation', 'infraSetDataAtPath', identifier] as const) + : (['mutation', 'infraSetDataAtPath'] as const), + /** Mutation key for infraInsertNodeAtPath */ infraInsertNodeAtPath: (identifier?: string) => + identifier + ? (['mutation', 'infraInsertNodeAtPath', identifier] as const) + : (['mutation', 'infraInsertNodeAtPath'] as const), + /** Mutation key for provisionBucket */ provisionBucket: (identifier?: string) => + identifier + ? (['mutation', 'provisionBucket', identifier] as const) + : (['mutation', 'provisionBucket'] as const), +} as const; +/** + +// ============================================================================ +// Unified Mutation Key Store +// ============================================================================ + + * Unified mutation key store + * + * Use this for tracking in-flight mutations with useIsMutating. + * + * @example + * ```ts + * import { useIsMutating } from '@tanstack/react-query'; + * import { mutationKeys } from './generated'; + * + * // Check if any user mutations are in progress + * const isMutatingUser = useIsMutating({ mutationKey: mutationKeys.user.all }); + * + * // Check if a specific user is being updated + * const isUpdating = useIsMutating({ mutationKey: mutationKeys.user.update(userId) }); + * ``` + */ +export const mutationKeys = { + infraGetAllRecord: infraGetAllRecordMutationKeys, + infraRef: infraRefMutationKeys, + infraStore: infraStoreMutationKeys, + infraObject: infraObjectMutationKeys, + infraCommit: infraCommitMutationKeys, + dbPreset: dbPresetMutationKeys, + platformNamespace: platformNamespaceMutationKeys, + namespace: namespaceMutationKeys, + platformNamespaceEvent: platformNamespaceEventMutationKeys, + namespaceEvent: namespaceEventMutationKeys, + custom: customMutationKeys, +} as const; diff --git a/sdk/constructive-react/src/infra/hooks/mutations/index.ts b/sdk/constructive-react/src/infra/hooks/mutations/index.ts new file mode 100644 index 0000000000..72e3a7f226 --- /dev/null +++ b/sdk/constructive-react/src/infra/hooks/mutations/index.ts @@ -0,0 +1,37 @@ +/** + * Mutation hooks barrel export + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +export * from './useCreateInfraGetAllRecordMutation'; +export * from './useCreateInfraRefMutation'; +export * from './useUpdateInfraRefMutation'; +export * from './useDeleteInfraRefMutation'; +export * from './useCreateInfraStoreMutation'; +export * from './useUpdateInfraStoreMutation'; +export * from './useDeleteInfraStoreMutation'; +export * from './useCreateInfraObjectMutation'; +export * from './useUpdateInfraObjectMutation'; +export * from './useDeleteInfraObjectMutation'; +export * from './useCreateInfraCommitMutation'; +export * from './useUpdateInfraCommitMutation'; +export * from './useDeleteInfraCommitMutation'; +export * from './useCreateDbPresetMutation'; +export * from './useUpdateDbPresetMutation'; +export * from './useDeleteDbPresetMutation'; +export * from './useCreatePlatformNamespaceMutation'; +export * from './useUpdatePlatformNamespaceMutation'; +export * from './useDeletePlatformNamespaceMutation'; +export * from './useCreateNamespaceMutation'; +export * from './useUpdateNamespaceMutation'; +export * from './useDeleteNamespaceMutation'; +export * from './useCreatePlatformNamespaceEventMutation'; +export * from './useUpdatePlatformNamespaceEventMutation'; +export * from './useDeletePlatformNamespaceEventMutation'; +export * from './useCreateNamespaceEventMutation'; +export * from './useUpdateNamespaceEventMutation'; +export * from './useDeleteNamespaceEventMutation'; +export * from './useInfraInitEmptyRepoMutation'; +export * from './useInfraSetDataAtPathMutation'; +export * from './useInfraInsertNodeAtPathMutation'; +export * from './useProvisionBucketMutation'; diff --git a/sdk/constructive-react/src/infra/hooks/mutations/useCreateDbPresetMutation.ts b/sdk/constructive-react/src/infra/hooks/mutations/useCreateDbPresetMutation.ts new file mode 100644 index 0000000000..a415acccb6 --- /dev/null +++ b/sdk/constructive-react/src/infra/hooks/mutations/useCreateDbPresetMutation.ts @@ -0,0 +1,88 @@ +/** + * Database provisioning preset catalog — 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 { dbPresetKeys } from '../query-keys'; +import { dbPresetMutationKeys } from '../mutation-keys'; +import type { + DbPresetSelect, + DbPresetWithRelations, + CreateDbPresetInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + DbPresetSelect, + DbPresetWithRelations, + CreateDbPresetInput, +} from '../../orm/input-types'; +/** + * Database provisioning preset catalog — merkle-versioned head over the infra store + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateDbPresetMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateDbPresetMutation( + params: { + selection: { + fields: S & DbPresetSelect; + } & HookStrictSelect, DbPresetSelect>; + } & Omit< + UseMutationOptions< + { + createDbPreset: { + dbPreset: InferSelectResult; + }; + }, + Error, + CreateDbPresetInput['dbPreset'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createDbPreset: { + dbPreset: InferSelectResult; + }; + }, + Error, + CreateDbPresetInput['dbPreset'] +>; +export function useCreateDbPresetMutation( + params: { + selection: SelectionConfig; + } & Omit, 'mutationFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: dbPresetMutationKeys.create(), + mutationFn: (data: CreateDbPresetInput['dbPreset']) => + getClient() + .dbPreset.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: dbPresetKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/infra/hooks/mutations/useCreateInfraCommitMutation.ts b/sdk/constructive-react/src/infra/hooks/mutations/useCreateInfraCommitMutation.ts new file mode 100644 index 0000000000..273e1ab40a --- /dev/null +++ b/sdk/constructive-react/src/infra/hooks/mutations/useCreateInfraCommitMutation.ts @@ -0,0 +1,88 @@ +/** + * 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 { infraCommitKeys } from '../query-keys'; +import { infraCommitMutationKeys } from '../mutation-keys'; +import type { + InfraCommitSelect, + InfraCommitWithRelations, + CreateInfraCommitInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + InfraCommitSelect, + InfraCommitWithRelations, + CreateInfraCommitInput, +} from '../../orm/input-types'; +/** + * Commit history — each commit snapshots a tree root for a store + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateInfraCommitMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateInfraCommitMutation( + params: { + selection: { + fields: S & InfraCommitSelect; + } & HookStrictSelect, InfraCommitSelect>; + } & Omit< + UseMutationOptions< + { + createInfraCommit: { + infraCommit: InferSelectResult; + }; + }, + Error, + CreateInfraCommitInput['infraCommit'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createInfraCommit: { + infraCommit: InferSelectResult; + }; + }, + Error, + CreateInfraCommitInput['infraCommit'] +>; +export function useCreateInfraCommitMutation( + params: { + selection: SelectionConfig; + } & Omit, 'mutationFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: infraCommitMutationKeys.create(), + mutationFn: (data: CreateInfraCommitInput['infraCommit']) => + getClient() + .infraCommit.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: infraCommitKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/infra/hooks/mutations/useCreateInfraGetAllRecordMutation.ts b/sdk/constructive-react/src/infra/hooks/mutations/useCreateInfraGetAllRecordMutation.ts new file mode 100644 index 0000000000..7496c537c5 --- /dev/null +++ b/sdk/constructive-react/src/infra/hooks/mutations/useCreateInfraGetAllRecordMutation.ts @@ -0,0 +1,91 @@ +/** + * Create mutation hook for InfraGetAllRecord + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { infraGetAllRecordKeys } from '../query-keys'; +import { infraGetAllRecordMutationKeys } from '../mutation-keys'; +import type { + InfraGetAllRecordSelect, + InfraGetAllRecordWithRelations, + CreateInfraGetAllRecordInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + InfraGetAllRecordSelect, + InfraGetAllRecordWithRelations, + CreateInfraGetAllRecordInput, +} from '../../orm/input-types'; +/** + * Mutation hook for creating a InfraGetAllRecord + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateInfraGetAllRecordMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateInfraGetAllRecordMutation( + params: { + selection: { + fields: S & InfraGetAllRecordSelect; + } & HookStrictSelect, InfraGetAllRecordSelect>; + } & Omit< + UseMutationOptions< + { + createInfraGetAllRecord: { + infraGetAllRecord: InferSelectResult; + }; + }, + Error, + CreateInfraGetAllRecordInput['infraGetAllRecord'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createInfraGetAllRecord: { + infraGetAllRecord: InferSelectResult; + }; + }, + Error, + CreateInfraGetAllRecordInput['infraGetAllRecord'] +>; +export function useCreateInfraGetAllRecordMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: infraGetAllRecordMutationKeys.create(), + mutationFn: (data: CreateInfraGetAllRecordInput['infraGetAllRecord']) => + getClient() + .infraGetAllRecord.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: infraGetAllRecordKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/infra/hooks/mutations/useCreateInfraObjectMutation.ts b/sdk/constructive-react/src/infra/hooks/mutations/useCreateInfraObjectMutation.ts new file mode 100644 index 0000000000..770c486e1b --- /dev/null +++ b/sdk/constructive-react/src/infra/hooks/mutations/useCreateInfraObjectMutation.ts @@ -0,0 +1,88 @@ +/** + * 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 { infraObjectKeys } from '../query-keys'; +import { infraObjectMutationKeys } from '../mutation-keys'; +import type { + InfraObjectSelect, + InfraObjectWithRelations, + CreateInfraObjectInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + InfraObjectSelect, + InfraObjectWithRelations, + CreateInfraObjectInput, +} from '../../orm/input-types'; +/** + * Content-addressed Merkle tree objects keyed by UUID v5 hash of data + children + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateInfraObjectMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateInfraObjectMutation( + params: { + selection: { + fields: S & InfraObjectSelect; + } & HookStrictSelect, InfraObjectSelect>; + } & Omit< + UseMutationOptions< + { + createInfraObject: { + infraObject: InferSelectResult; + }; + }, + Error, + CreateInfraObjectInput['infraObject'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createInfraObject: { + infraObject: InferSelectResult; + }; + }, + Error, + CreateInfraObjectInput['infraObject'] +>; +export function useCreateInfraObjectMutation( + params: { + selection: SelectionConfig; + } & Omit, 'mutationFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: infraObjectMutationKeys.create(), + mutationFn: (data: CreateInfraObjectInput['infraObject']) => + getClient() + .infraObject.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: infraObjectKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/infra/hooks/mutations/useCreateInfraRefMutation.ts b/sdk/constructive-react/src/infra/hooks/mutations/useCreateInfraRefMutation.ts new file mode 100644 index 0000000000..d0894ecb75 --- /dev/null +++ b/sdk/constructive-react/src/infra/hooks/mutations/useCreateInfraRefMutation.ts @@ -0,0 +1,88 @@ +/** + * 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 { infraRefKeys } from '../query-keys'; +import { infraRefMutationKeys } from '../mutation-keys'; +import type { + InfraRefSelect, + InfraRefWithRelations, + CreateInfraRefInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + InfraRefSelect, + InfraRefWithRelations, + CreateInfraRefInput, +} from '../../orm/input-types'; +/** + * Branch heads — mutable pointers into the commit chain + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateInfraRefMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateInfraRefMutation( + params: { + selection: { + fields: S & InfraRefSelect; + } & HookStrictSelect, InfraRefSelect>; + } & Omit< + UseMutationOptions< + { + createInfraRef: { + infraRef: InferSelectResult; + }; + }, + Error, + CreateInfraRefInput['infraRef'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createInfraRef: { + infraRef: InferSelectResult; + }; + }, + Error, + CreateInfraRefInput['infraRef'] +>; +export function useCreateInfraRefMutation( + params: { + selection: SelectionConfig; + } & Omit, 'mutationFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: infraRefMutationKeys.create(), + mutationFn: (data: CreateInfraRefInput['infraRef']) => + getClient() + .infraRef.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: infraRefKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/infra/hooks/mutations/useCreateInfraStoreMutation.ts b/sdk/constructive-react/src/infra/hooks/mutations/useCreateInfraStoreMutation.ts new file mode 100644 index 0000000000..f8f78f97d9 --- /dev/null +++ b/sdk/constructive-react/src/infra/hooks/mutations/useCreateInfraStoreMutation.ts @@ -0,0 +1,88 @@ +/** + * 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 { infraStoreKeys } from '../query-keys'; +import { infraStoreMutationKeys } from '../mutation-keys'; +import type { + InfraStoreSelect, + InfraStoreWithRelations, + CreateInfraStoreInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + InfraStoreSelect, + InfraStoreWithRelations, + CreateInfraStoreInput, +} from '../../orm/input-types'; +/** + * Named stores — one per version-controlled tree (e.g. one graph, one definition set) + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateInfraStoreMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateInfraStoreMutation( + params: { + selection: { + fields: S & InfraStoreSelect; + } & HookStrictSelect, InfraStoreSelect>; + } & Omit< + UseMutationOptions< + { + createInfraStore: { + infraStore: InferSelectResult; + }; + }, + Error, + CreateInfraStoreInput['infraStore'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createInfraStore: { + infraStore: InferSelectResult; + }; + }, + Error, + CreateInfraStoreInput['infraStore'] +>; +export function useCreateInfraStoreMutation( + params: { + selection: SelectionConfig; + } & Omit, 'mutationFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: infraStoreMutationKeys.create(), + mutationFn: (data: CreateInfraStoreInput['infraStore']) => + getClient() + .infraStore.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: infraStoreKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/infra/hooks/mutations/useCreateNamespaceEventMutation.ts b/sdk/constructive-react/src/infra/hooks/mutations/useCreateNamespaceEventMutation.ts new file mode 100644 index 0000000000..18fc4fff8b --- /dev/null +++ b/sdk/constructive-react/src/infra/hooks/mutations/useCreateNamespaceEventMutation.ts @@ -0,0 +1,91 @@ +/** + * Namespace lifecycle events — audit log of creation, activation, deactivation, label changes + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { namespaceEventKeys } from '../query-keys'; +import { namespaceEventMutationKeys } from '../mutation-keys'; +import type { + NamespaceEventSelect, + NamespaceEventWithRelations, + CreateNamespaceEventInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + NamespaceEventSelect, + NamespaceEventWithRelations, + CreateNamespaceEventInput, +} from '../../orm/input-types'; +/** + * Namespace lifecycle events — audit log of creation, activation, deactivation, label changes + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateNamespaceEventMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateNamespaceEventMutation( + params: { + selection: { + fields: S & NamespaceEventSelect; + } & HookStrictSelect, NamespaceEventSelect>; + } & Omit< + UseMutationOptions< + { + createNamespaceEvent: { + namespaceEvent: InferSelectResult; + }; + }, + Error, + CreateNamespaceEventInput['namespaceEvent'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createNamespaceEvent: { + namespaceEvent: InferSelectResult; + }; + }, + Error, + CreateNamespaceEventInput['namespaceEvent'] +>; +export function useCreateNamespaceEventMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: namespaceEventMutationKeys.create(), + mutationFn: (data: CreateNamespaceEventInput['namespaceEvent']) => + getClient() + .namespaceEvent.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: namespaceEventKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/infra/hooks/mutations/useCreateNamespaceMutation.ts b/sdk/constructive-react/src/infra/hooks/mutations/useCreateNamespaceMutation.ts new file mode 100644 index 0000000000..1bad42cc00 --- /dev/null +++ b/sdk/constructive-react/src/infra/hooks/mutations/useCreateNamespaceMutation.ts @@ -0,0 +1,88 @@ +/** + * Logical namespace containers for grouping secrets, config, functions, and other resources + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { namespaceKeys } from '../query-keys'; +import { namespaceMutationKeys } from '../mutation-keys'; +import type { + NamespaceSelect, + NamespaceWithRelations, + CreateNamespaceInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + NamespaceSelect, + NamespaceWithRelations, + CreateNamespaceInput, +} from '../../orm/input-types'; +/** + * Logical namespace containers for grouping secrets, config, functions, and other resources + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateNamespaceMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateNamespaceMutation( + params: { + selection: { + fields: S & NamespaceSelect; + } & HookStrictSelect, NamespaceSelect>; + } & Omit< + UseMutationOptions< + { + createNamespace: { + namespace: InferSelectResult; + }; + }, + Error, + CreateNamespaceInput['namespace'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createNamespace: { + namespace: InferSelectResult; + }; + }, + Error, + CreateNamespaceInput['namespace'] +>; +export function useCreateNamespaceMutation( + params: { + selection: SelectionConfig; + } & Omit, 'mutationFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: namespaceMutationKeys.create(), + mutationFn: (data: CreateNamespaceInput['namespace']) => + getClient() + .namespace.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: namespaceKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/infra/hooks/mutations/useCreatePlatformNamespaceEventMutation.ts b/sdk/constructive-react/src/infra/hooks/mutations/useCreatePlatformNamespaceEventMutation.ts new file mode 100644 index 0000000000..28d55d5bfc --- /dev/null +++ b/sdk/constructive-react/src/infra/hooks/mutations/useCreatePlatformNamespaceEventMutation.ts @@ -0,0 +1,91 @@ +/** + * Namespace lifecycle events — audit log of creation, activation, deactivation, label changes + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { platformNamespaceEventKeys } from '../query-keys'; +import { platformNamespaceEventMutationKeys } from '../mutation-keys'; +import type { + PlatformNamespaceEventSelect, + PlatformNamespaceEventWithRelations, + CreatePlatformNamespaceEventInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlatformNamespaceEventSelect, + PlatformNamespaceEventWithRelations, + CreatePlatformNamespaceEventInput, +} from '../../orm/input-types'; +/** + * Namespace lifecycle events — audit log of creation, activation, deactivation, label changes + * + * @example + * ```tsx + * const { mutate, isPending } = useCreatePlatformNamespaceEventMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreatePlatformNamespaceEventMutation( + params: { + selection: { + fields: S & PlatformNamespaceEventSelect; + } & HookStrictSelect, PlatformNamespaceEventSelect>; + } & Omit< + UseMutationOptions< + { + createPlatformNamespaceEvent: { + platformNamespaceEvent: InferSelectResult; + }; + }, + Error, + CreatePlatformNamespaceEventInput['platformNamespaceEvent'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createPlatformNamespaceEvent: { + platformNamespaceEvent: InferSelectResult; + }; + }, + Error, + CreatePlatformNamespaceEventInput['platformNamespaceEvent'] +>; +export function useCreatePlatformNamespaceEventMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: platformNamespaceEventMutationKeys.create(), + mutationFn: (data: CreatePlatformNamespaceEventInput['platformNamespaceEvent']) => + getClient() + .platformNamespaceEvent.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: platformNamespaceEventKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/infra/hooks/mutations/useCreatePlatformNamespaceMutation.ts b/sdk/constructive-react/src/infra/hooks/mutations/useCreatePlatformNamespaceMutation.ts new file mode 100644 index 0000000000..ffd9d34339 --- /dev/null +++ b/sdk/constructive-react/src/infra/hooks/mutations/useCreatePlatformNamespaceMutation.ts @@ -0,0 +1,91 @@ +/** + * Logical namespace containers for grouping secrets, config, functions, and other resources + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { platformNamespaceKeys } from '../query-keys'; +import { platformNamespaceMutationKeys } from '../mutation-keys'; +import type { + PlatformNamespaceSelect, + PlatformNamespaceWithRelations, + CreatePlatformNamespaceInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlatformNamespaceSelect, + PlatformNamespaceWithRelations, + CreatePlatformNamespaceInput, +} from '../../orm/input-types'; +/** + * Logical namespace containers for grouping secrets, config, functions, and other resources + * + * @example + * ```tsx + * const { mutate, isPending } = useCreatePlatformNamespaceMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreatePlatformNamespaceMutation( + params: { + selection: { + fields: S & PlatformNamespaceSelect; + } & HookStrictSelect, PlatformNamespaceSelect>; + } & Omit< + UseMutationOptions< + { + createPlatformNamespace: { + platformNamespace: InferSelectResult; + }; + }, + Error, + CreatePlatformNamespaceInput['platformNamespace'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createPlatformNamespace: { + platformNamespace: InferSelectResult; + }; + }, + Error, + CreatePlatformNamespaceInput['platformNamespace'] +>; +export function useCreatePlatformNamespaceMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: platformNamespaceMutationKeys.create(), + mutationFn: (data: CreatePlatformNamespaceInput['platformNamespace']) => + getClient() + .platformNamespace.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: platformNamespaceKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/infra/hooks/mutations/useDeleteDbPresetMutation.ts b/sdk/constructive-react/src/infra/hooks/mutations/useDeleteDbPresetMutation.ts new file mode 100644 index 0000000000..4408dd0b6f --- /dev/null +++ b/sdk/constructive-react/src/infra/hooks/mutations/useDeleteDbPresetMutation.ts @@ -0,0 +1,98 @@ +/** + * Database provisioning preset catalog — 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 { dbPresetKeys } from '../query-keys'; +import { dbPresetMutationKeys } from '../mutation-keys'; +import type { DbPresetSelect, DbPresetWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { DbPresetSelect, DbPresetWithRelations } from '../../orm/input-types'; +/** + * Database provisioning preset catalog — merkle-versioned head over the infra store + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteDbPresetMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteDbPresetMutation( + params: { + selection: { + fields: S & DbPresetSelect; + } & HookStrictSelect, DbPresetSelect>; + } & Omit< + UseMutationOptions< + { + deleteDbPreset: { + dbPreset: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteDbPreset: { + dbPreset: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteDbPresetMutation( + 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: dbPresetMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .dbPreset.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: dbPresetKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: dbPresetKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/infra/hooks/mutations/useDeleteInfraCommitMutation.ts b/sdk/constructive-react/src/infra/hooks/mutations/useDeleteInfraCommitMutation.ts new file mode 100644 index 0000000000..47bbd08de3 --- /dev/null +++ b/sdk/constructive-react/src/infra/hooks/mutations/useDeleteInfraCommitMutation.ts @@ -0,0 +1,102 @@ +/** + * 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 { infraCommitKeys } from '../query-keys'; +import { infraCommitMutationKeys } from '../mutation-keys'; +import type { InfraCommitSelect, InfraCommitWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { InfraCommitSelect, InfraCommitWithRelations } from '../../orm/input-types'; +/** + * Commit history — each commit snapshots a tree root for a store + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteInfraCommitMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteInfraCommitMutation( + params: { + selection: { + fields: S & InfraCommitSelect; + } & HookStrictSelect, InfraCommitSelect>; + } & Omit< + UseMutationOptions< + { + deleteInfraCommit: { + infraCommit: InferSelectResult; + }; + }, + Error, + { + id: string; + scopeId: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteInfraCommit: { + infraCommit: InferSelectResult; + }; + }, + Error, + { + id: string; + scopeId: string; + } +>; +export function useDeleteInfraCommitMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + scopeId: string; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: infraCommitMutationKeys.all, + mutationFn: ({ id, scopeId }: { id: string; scopeId: string }) => + getClient() + .infraCommit.delete({ + where: { + id, + scopeId, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: infraCommitKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: infraCommitKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/infra/hooks/mutations/useDeleteInfraObjectMutation.ts b/sdk/constructive-react/src/infra/hooks/mutations/useDeleteInfraObjectMutation.ts new file mode 100644 index 0000000000..cc3bf32b19 --- /dev/null +++ b/sdk/constructive-react/src/infra/hooks/mutations/useDeleteInfraObjectMutation.ts @@ -0,0 +1,102 @@ +/** + * 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 { infraObjectKeys } from '../query-keys'; +import { infraObjectMutationKeys } from '../mutation-keys'; +import type { InfraObjectSelect, InfraObjectWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { InfraObjectSelect, InfraObjectWithRelations } from '../../orm/input-types'; +/** + * Content-addressed Merkle tree objects keyed by UUID v5 hash of data + children + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteInfraObjectMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteInfraObjectMutation( + params: { + selection: { + fields: S & InfraObjectSelect; + } & HookStrictSelect, InfraObjectSelect>; + } & Omit< + UseMutationOptions< + { + deleteInfraObject: { + infraObject: InferSelectResult; + }; + }, + Error, + { + id: string; + scopeId: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteInfraObject: { + infraObject: InferSelectResult; + }; + }, + Error, + { + id: string; + scopeId: string; + } +>; +export function useDeleteInfraObjectMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + scopeId: string; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: infraObjectMutationKeys.all, + mutationFn: ({ id, scopeId }: { id: string; scopeId: string }) => + getClient() + .infraObject.delete({ + where: { + id, + scopeId, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: infraObjectKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: infraObjectKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/infra/hooks/mutations/useDeleteInfraRefMutation.ts b/sdk/constructive-react/src/infra/hooks/mutations/useDeleteInfraRefMutation.ts new file mode 100644 index 0000000000..e23c6c88e0 --- /dev/null +++ b/sdk/constructive-react/src/infra/hooks/mutations/useDeleteInfraRefMutation.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 { infraRefKeys } from '../query-keys'; +import { infraRefMutationKeys } from '../mutation-keys'; +import type { InfraRefSelect, InfraRefWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { InfraRefSelect, InfraRefWithRelations } from '../../orm/input-types'; +/** + * Branch heads — mutable pointers into the commit chain + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteInfraRefMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteInfraRefMutation( + params: { + selection: { + fields: S & InfraRefSelect; + } & HookStrictSelect, InfraRefSelect>; + } & Omit< + UseMutationOptions< + { + deleteInfraRef: { + infraRef: InferSelectResult; + }; + }, + Error, + { + id: string; + scopeId: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteInfraRef: { + infraRef: InferSelectResult; + }; + }, + Error, + { + id: string; + scopeId: string; + } +>; +export function useDeleteInfraRefMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + scopeId: string; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: infraRefMutationKeys.all, + mutationFn: ({ id, scopeId }: { id: string; scopeId: string }) => + getClient() + .infraRef.delete({ + where: { + id, + scopeId, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: infraRefKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: infraRefKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/infra/hooks/mutations/useDeleteInfraStoreMutation.ts b/sdk/constructive-react/src/infra/hooks/mutations/useDeleteInfraStoreMutation.ts new file mode 100644 index 0000000000..e1c82fe7d6 --- /dev/null +++ b/sdk/constructive-react/src/infra/hooks/mutations/useDeleteInfraStoreMutation.ts @@ -0,0 +1,98 @@ +/** + * 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 { infraStoreKeys } from '../query-keys'; +import { infraStoreMutationKeys } from '../mutation-keys'; +import type { InfraStoreSelect, InfraStoreWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { InfraStoreSelect, InfraStoreWithRelations } from '../../orm/input-types'; +/** + * Named stores — one per version-controlled tree (e.g. one graph, one definition set) + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteInfraStoreMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteInfraStoreMutation( + params: { + selection: { + fields: S & InfraStoreSelect; + } & HookStrictSelect, InfraStoreSelect>; + } & Omit< + UseMutationOptions< + { + deleteInfraStore: { + infraStore: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteInfraStore: { + infraStore: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteInfraStoreMutation( + 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: infraStoreMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .infraStore.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: infraStoreKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: infraStoreKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/infra/hooks/mutations/useDeleteNamespaceEventMutation.ts b/sdk/constructive-react/src/infra/hooks/mutations/useDeleteNamespaceEventMutation.ts new file mode 100644 index 0000000000..e48ce652c4 --- /dev/null +++ b/sdk/constructive-react/src/infra/hooks/mutations/useDeleteNamespaceEventMutation.ts @@ -0,0 +1,102 @@ +/** + * Namespace lifecycle events — audit log of creation, activation, deactivation, label changes + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { namespaceEventKeys } from '../query-keys'; +import { namespaceEventMutationKeys } from '../mutation-keys'; +import type { NamespaceEventSelect, NamespaceEventWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { NamespaceEventSelect, NamespaceEventWithRelations } from '../../orm/input-types'; +/** + * Namespace lifecycle events — audit log of creation, activation, deactivation, label changes + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteNamespaceEventMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteNamespaceEventMutation( + params: { + selection: { + fields: S & NamespaceEventSelect; + } & HookStrictSelect, NamespaceEventSelect>; + } & Omit< + UseMutationOptions< + { + deleteNamespaceEvent: { + namespaceEvent: InferSelectResult; + }; + }, + Error, + { + id: string; + createdAt: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteNamespaceEvent: { + namespaceEvent: InferSelectResult; + }; + }, + Error, + { + id: string; + createdAt: string; + } +>; +export function useDeleteNamespaceEventMutation( + 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: namespaceEventMutationKeys.all, + mutationFn: ({ id, createdAt }: { id: string; createdAt: string }) => + getClient() + .namespaceEvent.delete({ + where: { + id, + createdAt, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: namespaceEventKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: namespaceEventKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/infra/hooks/mutations/useDeleteNamespaceMutation.ts b/sdk/constructive-react/src/infra/hooks/mutations/useDeleteNamespaceMutation.ts new file mode 100644 index 0000000000..1c6e408df6 --- /dev/null +++ b/sdk/constructive-react/src/infra/hooks/mutations/useDeleteNamespaceMutation.ts @@ -0,0 +1,98 @@ +/** + * Logical namespace containers for grouping secrets, config, functions, and other resources + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { namespaceKeys } from '../query-keys'; +import { namespaceMutationKeys } from '../mutation-keys'; +import type { NamespaceSelect, NamespaceWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { NamespaceSelect, NamespaceWithRelations } from '../../orm/input-types'; +/** + * Logical namespace containers for grouping secrets, config, functions, and other resources + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteNamespaceMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteNamespaceMutation( + params: { + selection: { + fields: S & NamespaceSelect; + } & HookStrictSelect, NamespaceSelect>; + } & Omit< + UseMutationOptions< + { + deleteNamespace: { + namespace: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteNamespace: { + namespace: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteNamespaceMutation( + 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: namespaceMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .namespace.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: namespaceKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: namespaceKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/infra/hooks/mutations/useDeletePlatformNamespaceEventMutation.ts b/sdk/constructive-react/src/infra/hooks/mutations/useDeletePlatformNamespaceEventMutation.ts new file mode 100644 index 0000000000..c248e1eaa5 --- /dev/null +++ b/sdk/constructive-react/src/infra/hooks/mutations/useDeletePlatformNamespaceEventMutation.ts @@ -0,0 +1,108 @@ +/** + * Namespace lifecycle events — audit log of creation, activation, deactivation, label changes + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { platformNamespaceEventKeys } from '../query-keys'; +import { platformNamespaceEventMutationKeys } from '../mutation-keys'; +import type { + PlatformNamespaceEventSelect, + PlatformNamespaceEventWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlatformNamespaceEventSelect, + PlatformNamespaceEventWithRelations, +} from '../../orm/input-types'; +/** + * Namespace lifecycle events — audit log of creation, activation, deactivation, label changes + * + * @example + * ```tsx + * const { mutate, isPending } = useDeletePlatformNamespaceEventMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeletePlatformNamespaceEventMutation( + params: { + selection: { + fields: S & PlatformNamespaceEventSelect; + } & HookStrictSelect, PlatformNamespaceEventSelect>; + } & Omit< + UseMutationOptions< + { + deletePlatformNamespaceEvent: { + platformNamespaceEvent: InferSelectResult; + }; + }, + Error, + { + id: string; + createdAt: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deletePlatformNamespaceEvent: { + platformNamespaceEvent: InferSelectResult; + }; + }, + Error, + { + id: string; + createdAt: string; + } +>; +export function useDeletePlatformNamespaceEventMutation( + 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: platformNamespaceEventMutationKeys.all, + mutationFn: ({ id, createdAt }: { id: string; createdAt: string }) => + getClient() + .platformNamespaceEvent.delete({ + where: { + id, + createdAt, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: platformNamespaceEventKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: platformNamespaceEventKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/infra/hooks/mutations/useDeletePlatformNamespaceMutation.ts b/sdk/constructive-react/src/infra/hooks/mutations/useDeletePlatformNamespaceMutation.ts new file mode 100644 index 0000000000..86ca139c3b --- /dev/null +++ b/sdk/constructive-react/src/infra/hooks/mutations/useDeletePlatformNamespaceMutation.ts @@ -0,0 +1,104 @@ +/** + * Logical namespace containers for grouping secrets, config, functions, and other resources + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { platformNamespaceKeys } from '../query-keys'; +import { platformNamespaceMutationKeys } from '../mutation-keys'; +import type { + PlatformNamespaceSelect, + PlatformNamespaceWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlatformNamespaceSelect, + PlatformNamespaceWithRelations, +} from '../../orm/input-types'; +/** + * Logical namespace containers for grouping secrets, config, functions, and other resources + * + * @example + * ```tsx + * const { mutate, isPending } = useDeletePlatformNamespaceMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeletePlatformNamespaceMutation( + params: { + selection: { + fields: S & PlatformNamespaceSelect; + } & HookStrictSelect, PlatformNamespaceSelect>; + } & Omit< + UseMutationOptions< + { + deletePlatformNamespace: { + platformNamespace: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deletePlatformNamespace: { + platformNamespace: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeletePlatformNamespaceMutation( + 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: platformNamespaceMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .platformNamespace.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: platformNamespaceKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: platformNamespaceKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/infra/hooks/mutations/useInfraInitEmptyRepoMutation.ts b/sdk/constructive-react/src/infra/hooks/mutations/useInfraInitEmptyRepoMutation.ts new file mode 100644 index 0000000000..93e94ad35e --- /dev/null +++ b/sdk/constructive-react/src/infra/hooks/mutations/useInfraInitEmptyRepoMutation.ts @@ -0,0 +1,58 @@ +/** + * Custom mutation hook for infraInitEmptyRepo + * @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 { InfraInitEmptyRepoVariables } from '../../orm/mutation'; +import type { + InfraInitEmptyRepoPayloadSelect, + InfraInitEmptyRepoPayload, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; +export type { InfraInitEmptyRepoVariables } from '../../orm/mutation'; +export type { InfraInitEmptyRepoPayloadSelect } from '../../orm/input-types'; +export function useInfraInitEmptyRepoMutation( + params: { + selection: { + fields: S & InfraInitEmptyRepoPayloadSelect; + } & HookStrictSelect, InfraInitEmptyRepoPayloadSelect>; + } & Omit< + UseMutationOptions< + { + infraInitEmptyRepo: InferSelectResult | null; + }, + Error, + InfraInitEmptyRepoVariables + >, + 'mutationFn' + > +): UseMutationResult< + { + infraInitEmptyRepo: InferSelectResult | null; + }, + Error, + InfraInitEmptyRepoVariables +> { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + return useMutation({ + mutationKey: customMutationKeys.infraInitEmptyRepo(), + mutationFn: (variables: InfraInitEmptyRepoVariables) => + getClient() + .mutation.infraInitEmptyRepo(variables, { + select: args.select, + } as { + select: S; + } & StrictSelect) + .unwrap(), + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/infra/hooks/mutations/useInfraInsertNodeAtPathMutation.ts b/sdk/constructive-react/src/infra/hooks/mutations/useInfraInsertNodeAtPathMutation.ts new file mode 100644 index 0000000000..17eac12e32 --- /dev/null +++ b/sdk/constructive-react/src/infra/hooks/mutations/useInfraInsertNodeAtPathMutation.ts @@ -0,0 +1,58 @@ +/** + * Custom mutation hook for infraInsertNodeAtPath + * @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 { InfraInsertNodeAtPathVariables } from '../../orm/mutation'; +import type { + InfraInsertNodeAtPathPayloadSelect, + InfraInsertNodeAtPathPayload, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; +export type { InfraInsertNodeAtPathVariables } from '../../orm/mutation'; +export type { InfraInsertNodeAtPathPayloadSelect } from '../../orm/input-types'; +export function useInfraInsertNodeAtPathMutation( + params: { + selection: { + fields: S & InfraInsertNodeAtPathPayloadSelect; + } & HookStrictSelect, InfraInsertNodeAtPathPayloadSelect>; + } & Omit< + UseMutationOptions< + { + infraInsertNodeAtPath: InferSelectResult | null; + }, + Error, + InfraInsertNodeAtPathVariables + >, + 'mutationFn' + > +): UseMutationResult< + { + infraInsertNodeAtPath: InferSelectResult | null; + }, + Error, + InfraInsertNodeAtPathVariables +> { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + return useMutation({ + mutationKey: customMutationKeys.infraInsertNodeAtPath(), + mutationFn: (variables: InfraInsertNodeAtPathVariables) => + getClient() + .mutation.infraInsertNodeAtPath(variables, { + select: args.select, + } as { + select: S; + } & StrictSelect) + .unwrap(), + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/infra/hooks/mutations/useInfraSetDataAtPathMutation.ts b/sdk/constructive-react/src/infra/hooks/mutations/useInfraSetDataAtPathMutation.ts new file mode 100644 index 0000000000..50a6867d2d --- /dev/null +++ b/sdk/constructive-react/src/infra/hooks/mutations/useInfraSetDataAtPathMutation.ts @@ -0,0 +1,58 @@ +/** + * Custom mutation hook for infraSetDataAtPath + * @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 { InfraSetDataAtPathVariables } from '../../orm/mutation'; +import type { + InfraSetDataAtPathPayloadSelect, + InfraSetDataAtPathPayload, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; +export type { InfraSetDataAtPathVariables } from '../../orm/mutation'; +export type { InfraSetDataAtPathPayloadSelect } from '../../orm/input-types'; +export function useInfraSetDataAtPathMutation( + params: { + selection: { + fields: S & InfraSetDataAtPathPayloadSelect; + } & HookStrictSelect, InfraSetDataAtPathPayloadSelect>; + } & Omit< + UseMutationOptions< + { + infraSetDataAtPath: InferSelectResult | null; + }, + Error, + InfraSetDataAtPathVariables + >, + 'mutationFn' + > +): UseMutationResult< + { + infraSetDataAtPath: InferSelectResult | null; + }, + Error, + InfraSetDataAtPathVariables +> { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + return useMutation({ + mutationKey: customMutationKeys.infraSetDataAtPath(), + mutationFn: (variables: InfraSetDataAtPathVariables) => + getClient() + .mutation.infraSetDataAtPath(variables, { + select: args.select, + } as { + select: S; + } & StrictSelect) + .unwrap(), + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/infra/hooks/mutations/useProvisionBucketMutation.ts b/sdk/constructive-react/src/infra/hooks/mutations/useProvisionBucketMutation.ts new file mode 100644 index 0000000000..2613680e69 --- /dev/null +++ b/sdk/constructive-react/src/infra/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/infra/hooks/mutations/useUpdateDbPresetMutation.ts b/sdk/constructive-react/src/infra/hooks/mutations/useUpdateDbPresetMutation.ts new file mode 100644 index 0000000000..3b7a6edec2 --- /dev/null +++ b/sdk/constructive-react/src/infra/hooks/mutations/useUpdateDbPresetMutation.ts @@ -0,0 +1,102 @@ +/** + * Database provisioning preset catalog — 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 { dbPresetKeys } from '../query-keys'; +import { dbPresetMutationKeys } from '../mutation-keys'; +import type { DbPresetSelect, DbPresetWithRelations, DbPresetPatch } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { DbPresetSelect, DbPresetWithRelations, DbPresetPatch } from '../../orm/input-types'; +/** + * Database provisioning preset catalog — merkle-versioned head over the infra store + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateDbPresetMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', dbPresetPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateDbPresetMutation( + params: { + selection: { + fields: S & DbPresetSelect; + } & HookStrictSelect, DbPresetSelect>; + } & Omit< + UseMutationOptions< + { + updateDbPreset: { + dbPreset: InferSelectResult; + }; + }, + Error, + { + id: string; + dbPresetPatch: DbPresetPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateDbPreset: { + dbPreset: InferSelectResult; + }; + }, + Error, + { + id: string; + dbPresetPatch: DbPresetPatch; + } +>; +export function useUpdateDbPresetMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + dbPresetPatch: DbPresetPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: dbPresetMutationKeys.all, + mutationFn: ({ id, dbPresetPatch }: { id: string; dbPresetPatch: DbPresetPatch }) => + getClient() + .dbPreset.update({ + where: { + id, + }, + data: dbPresetPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: dbPresetKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: dbPresetKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/infra/hooks/mutations/useUpdateInfraCommitMutation.ts b/sdk/constructive-react/src/infra/hooks/mutations/useUpdateInfraCommitMutation.ts new file mode 100644 index 0000000000..be47b01262 --- /dev/null +++ b/sdk/constructive-react/src/infra/hooks/mutations/useUpdateInfraCommitMutation.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 { infraCommitKeys } from '../query-keys'; +import { infraCommitMutationKeys } from '../mutation-keys'; +import type { + InfraCommitSelect, + InfraCommitWithRelations, + InfraCommitPatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + InfraCommitSelect, + InfraCommitWithRelations, + InfraCommitPatch, +} from '../../orm/input-types'; +/** + * Commit history — each commit snapshots a tree root for a store + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateInfraCommitMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', infraCommitPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateInfraCommitMutation( + params: { + selection: { + fields: S & InfraCommitSelect; + } & HookStrictSelect, InfraCommitSelect>; + } & Omit< + UseMutationOptions< + { + updateInfraCommit: { + infraCommit: InferSelectResult; + }; + }, + Error, + { + id: string; + scopeId: string; + infraCommitPatch: InfraCommitPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateInfraCommit: { + infraCommit: InferSelectResult; + }; + }, + Error, + { + id: string; + scopeId: string; + infraCommitPatch: InfraCommitPatch; + } +>; +export function useUpdateInfraCommitMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + scopeId: string; + infraCommitPatch: InfraCommitPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: infraCommitMutationKeys.all, + mutationFn: ({ + id, + scopeId, + infraCommitPatch, + }: { + id: string; + scopeId: string; + infraCommitPatch: InfraCommitPatch; + }) => + getClient() + .infraCommit.update({ + where: { + id, + scopeId, + }, + data: infraCommitPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: infraCommitKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: infraCommitKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/infra/hooks/mutations/useUpdateInfraObjectMutation.ts b/sdk/constructive-react/src/infra/hooks/mutations/useUpdateInfraObjectMutation.ts new file mode 100644 index 0000000000..d6e9b0e680 --- /dev/null +++ b/sdk/constructive-react/src/infra/hooks/mutations/useUpdateInfraObjectMutation.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 { infraObjectKeys } from '../query-keys'; +import { infraObjectMutationKeys } from '../mutation-keys'; +import type { + InfraObjectSelect, + InfraObjectWithRelations, + InfraObjectPatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + InfraObjectSelect, + InfraObjectWithRelations, + InfraObjectPatch, +} from '../../orm/input-types'; +/** + * Content-addressed Merkle tree objects keyed by UUID v5 hash of data + children + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateInfraObjectMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', infraObjectPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateInfraObjectMutation( + params: { + selection: { + fields: S & InfraObjectSelect; + } & HookStrictSelect, InfraObjectSelect>; + } & Omit< + UseMutationOptions< + { + updateInfraObject: { + infraObject: InferSelectResult; + }; + }, + Error, + { + id: string; + scopeId: string; + infraObjectPatch: InfraObjectPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateInfraObject: { + infraObject: InferSelectResult; + }; + }, + Error, + { + id: string; + scopeId: string; + infraObjectPatch: InfraObjectPatch; + } +>; +export function useUpdateInfraObjectMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + scopeId: string; + infraObjectPatch: InfraObjectPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: infraObjectMutationKeys.all, + mutationFn: ({ + id, + scopeId, + infraObjectPatch, + }: { + id: string; + scopeId: string; + infraObjectPatch: InfraObjectPatch; + }) => + getClient() + .infraObject.update({ + where: { + id, + scopeId, + }, + data: infraObjectPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: infraObjectKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: infraObjectKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/infra/hooks/mutations/useUpdateInfraRefMutation.ts b/sdk/constructive-react/src/infra/hooks/mutations/useUpdateInfraRefMutation.ts new file mode 100644 index 0000000000..abcf3cdea6 --- /dev/null +++ b/sdk/constructive-react/src/infra/hooks/mutations/useUpdateInfraRefMutation.ts @@ -0,0 +1,114 @@ +/** + * 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 { infraRefKeys } from '../query-keys'; +import { infraRefMutationKeys } from '../mutation-keys'; +import type { InfraRefSelect, InfraRefWithRelations, InfraRefPatch } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { InfraRefSelect, InfraRefWithRelations, InfraRefPatch } from '../../orm/input-types'; +/** + * Branch heads — mutable pointers into the commit chain + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateInfraRefMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', infraRefPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateInfraRefMutation( + params: { + selection: { + fields: S & InfraRefSelect; + } & HookStrictSelect, InfraRefSelect>; + } & Omit< + UseMutationOptions< + { + updateInfraRef: { + infraRef: InferSelectResult; + }; + }, + Error, + { + id: string; + scopeId: string; + infraRefPatch: InfraRefPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateInfraRef: { + infraRef: InferSelectResult; + }; + }, + Error, + { + id: string; + scopeId: string; + infraRefPatch: InfraRefPatch; + } +>; +export function useUpdateInfraRefMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + scopeId: string; + infraRefPatch: InfraRefPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: infraRefMutationKeys.all, + mutationFn: ({ + id, + scopeId, + infraRefPatch, + }: { + id: string; + scopeId: string; + infraRefPatch: InfraRefPatch; + }) => + getClient() + .infraRef.update({ + where: { + id, + scopeId, + }, + data: infraRefPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: infraRefKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: infraRefKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/infra/hooks/mutations/useUpdateInfraStoreMutation.ts b/sdk/constructive-react/src/infra/hooks/mutations/useUpdateInfraStoreMutation.ts new file mode 100644 index 0000000000..997f8014cb --- /dev/null +++ b/sdk/constructive-react/src/infra/hooks/mutations/useUpdateInfraStoreMutation.ts @@ -0,0 +1,110 @@ +/** + * 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 { infraStoreKeys } from '../query-keys'; +import { infraStoreMutationKeys } from '../mutation-keys'; +import type { + InfraStoreSelect, + InfraStoreWithRelations, + InfraStorePatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + InfraStoreSelect, + InfraStoreWithRelations, + InfraStorePatch, +} from '../../orm/input-types'; +/** + * Named stores — one per version-controlled tree (e.g. one graph, one definition set) + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateInfraStoreMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', infraStorePatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateInfraStoreMutation( + params: { + selection: { + fields: S & InfraStoreSelect; + } & HookStrictSelect, InfraStoreSelect>; + } & Omit< + UseMutationOptions< + { + updateInfraStore: { + infraStore: InferSelectResult; + }; + }, + Error, + { + id: string; + infraStorePatch: InfraStorePatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateInfraStore: { + infraStore: InferSelectResult; + }; + }, + Error, + { + id: string; + infraStorePatch: InfraStorePatch; + } +>; +export function useUpdateInfraStoreMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + infraStorePatch: InfraStorePatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: infraStoreMutationKeys.all, + mutationFn: ({ id, infraStorePatch }: { id: string; infraStorePatch: InfraStorePatch }) => + getClient() + .infraStore.update({ + where: { + id, + }, + data: infraStorePatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: infraStoreKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: infraStoreKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/infra/hooks/mutations/useUpdateNamespaceEventMutation.ts b/sdk/constructive-react/src/infra/hooks/mutations/useUpdateNamespaceEventMutation.ts new file mode 100644 index 0000000000..c37dff3a26 --- /dev/null +++ b/sdk/constructive-react/src/infra/hooks/mutations/useUpdateNamespaceEventMutation.ts @@ -0,0 +1,122 @@ +/** + * Namespace lifecycle events — audit log of creation, activation, deactivation, label changes + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { namespaceEventKeys } from '../query-keys'; +import { namespaceEventMutationKeys } from '../mutation-keys'; +import type { + NamespaceEventSelect, + NamespaceEventWithRelations, + NamespaceEventPatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + NamespaceEventSelect, + NamespaceEventWithRelations, + NamespaceEventPatch, +} from '../../orm/input-types'; +/** + * Namespace lifecycle events — audit log of creation, activation, deactivation, label changes + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateNamespaceEventMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', namespaceEventPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateNamespaceEventMutation( + params: { + selection: { + fields: S & NamespaceEventSelect; + } & HookStrictSelect, NamespaceEventSelect>; + } & Omit< + UseMutationOptions< + { + updateNamespaceEvent: { + namespaceEvent: InferSelectResult; + }; + }, + Error, + { + id: string; + createdAt: string; + namespaceEventPatch: NamespaceEventPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateNamespaceEvent: { + namespaceEvent: InferSelectResult; + }; + }, + Error, + { + id: string; + createdAt: string; + namespaceEventPatch: NamespaceEventPatch; + } +>; +export function useUpdateNamespaceEventMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + createdAt: string; + namespaceEventPatch: NamespaceEventPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: namespaceEventMutationKeys.all, + mutationFn: ({ + id, + createdAt, + namespaceEventPatch, + }: { + id: string; + createdAt: string; + namespaceEventPatch: NamespaceEventPatch; + }) => + getClient() + .namespaceEvent.update({ + where: { + id, + createdAt, + }, + data: namespaceEventPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: namespaceEventKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: namespaceEventKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/infra/hooks/mutations/useUpdateNamespaceMutation.ts b/sdk/constructive-react/src/infra/hooks/mutations/useUpdateNamespaceMutation.ts new file mode 100644 index 0000000000..564be0dc4d --- /dev/null +++ b/sdk/constructive-react/src/infra/hooks/mutations/useUpdateNamespaceMutation.ts @@ -0,0 +1,110 @@ +/** + * Logical namespace containers for grouping secrets, config, functions, and other resources + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { namespaceKeys } from '../query-keys'; +import { namespaceMutationKeys } from '../mutation-keys'; +import type { + NamespaceSelect, + NamespaceWithRelations, + NamespacePatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + NamespaceSelect, + NamespaceWithRelations, + NamespacePatch, +} from '../../orm/input-types'; +/** + * Logical namespace containers for grouping secrets, config, functions, and other resources + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateNamespaceMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', namespacePatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateNamespaceMutation( + params: { + selection: { + fields: S & NamespaceSelect; + } & HookStrictSelect, NamespaceSelect>; + } & Omit< + UseMutationOptions< + { + updateNamespace: { + namespace: InferSelectResult; + }; + }, + Error, + { + id: string; + namespacePatch: NamespacePatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateNamespace: { + namespace: InferSelectResult; + }; + }, + Error, + { + id: string; + namespacePatch: NamespacePatch; + } +>; +export function useUpdateNamespaceMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + namespacePatch: NamespacePatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: namespaceMutationKeys.all, + mutationFn: ({ id, namespacePatch }: { id: string; namespacePatch: NamespacePatch }) => + getClient() + .namespace.update({ + where: { + id, + }, + data: namespacePatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: namespaceKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: namespaceKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/infra/hooks/mutations/useUpdatePlatformNamespaceEventMutation.ts b/sdk/constructive-react/src/infra/hooks/mutations/useUpdatePlatformNamespaceEventMutation.ts new file mode 100644 index 0000000000..9ca416fd9c --- /dev/null +++ b/sdk/constructive-react/src/infra/hooks/mutations/useUpdatePlatformNamespaceEventMutation.ts @@ -0,0 +1,122 @@ +/** + * Namespace lifecycle events — audit log of creation, activation, deactivation, label changes + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { platformNamespaceEventKeys } from '../query-keys'; +import { platformNamespaceEventMutationKeys } from '../mutation-keys'; +import type { + PlatformNamespaceEventSelect, + PlatformNamespaceEventWithRelations, + PlatformNamespaceEventPatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlatformNamespaceEventSelect, + PlatformNamespaceEventWithRelations, + PlatformNamespaceEventPatch, +} from '../../orm/input-types'; +/** + * Namespace lifecycle events — audit log of creation, activation, deactivation, label changes + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdatePlatformNamespaceEventMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', platformNamespaceEventPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdatePlatformNamespaceEventMutation( + params: { + selection: { + fields: S & PlatformNamespaceEventSelect; + } & HookStrictSelect, PlatformNamespaceEventSelect>; + } & Omit< + UseMutationOptions< + { + updatePlatformNamespaceEvent: { + platformNamespaceEvent: InferSelectResult; + }; + }, + Error, + { + id: string; + createdAt: string; + platformNamespaceEventPatch: PlatformNamespaceEventPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updatePlatformNamespaceEvent: { + platformNamespaceEvent: InferSelectResult; + }; + }, + Error, + { + id: string; + createdAt: string; + platformNamespaceEventPatch: PlatformNamespaceEventPatch; + } +>; +export function useUpdatePlatformNamespaceEventMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + createdAt: string; + platformNamespaceEventPatch: PlatformNamespaceEventPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: platformNamespaceEventMutationKeys.all, + mutationFn: ({ + id, + createdAt, + platformNamespaceEventPatch, + }: { + id: string; + createdAt: string; + platformNamespaceEventPatch: PlatformNamespaceEventPatch; + }) => + getClient() + .platformNamespaceEvent.update({ + where: { + id, + createdAt, + }, + data: platformNamespaceEventPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: platformNamespaceEventKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: platformNamespaceEventKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/infra/hooks/mutations/useUpdatePlatformNamespaceMutation.ts b/sdk/constructive-react/src/infra/hooks/mutations/useUpdatePlatformNamespaceMutation.ts new file mode 100644 index 0000000000..de626ae084 --- /dev/null +++ b/sdk/constructive-react/src/infra/hooks/mutations/useUpdatePlatformNamespaceMutation.ts @@ -0,0 +1,116 @@ +/** + * Logical namespace containers for grouping secrets, config, functions, and other resources + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { platformNamespaceKeys } from '../query-keys'; +import { platformNamespaceMutationKeys } from '../mutation-keys'; +import type { + PlatformNamespaceSelect, + PlatformNamespaceWithRelations, + PlatformNamespacePatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlatformNamespaceSelect, + PlatformNamespaceWithRelations, + PlatformNamespacePatch, +} from '../../orm/input-types'; +/** + * Logical namespace containers for grouping secrets, config, functions, and other resources + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdatePlatformNamespaceMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', platformNamespacePatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdatePlatformNamespaceMutation( + params: { + selection: { + fields: S & PlatformNamespaceSelect; + } & HookStrictSelect, PlatformNamespaceSelect>; + } & Omit< + UseMutationOptions< + { + updatePlatformNamespace: { + platformNamespace: InferSelectResult; + }; + }, + Error, + { + id: string; + platformNamespacePatch: PlatformNamespacePatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updatePlatformNamespace: { + platformNamespace: InferSelectResult; + }; + }, + Error, + { + id: string; + platformNamespacePatch: PlatformNamespacePatch; + } +>; +export function useUpdatePlatformNamespaceMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + platformNamespacePatch: PlatformNamespacePatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: platformNamespaceMutationKeys.all, + mutationFn: ({ + id, + platformNamespacePatch, + }: { + id: string; + platformNamespacePatch: PlatformNamespacePatch; + }) => + getClient() + .platformNamespace.update({ + where: { + id, + }, + data: platformNamespacePatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: platformNamespaceKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: platformNamespaceKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/infra/hooks/queries/index.ts b/sdk/constructive-react/src/infra/hooks/queries/index.ts new file mode 100644 index 0000000000..ababc07df7 --- /dev/null +++ b/sdk/constructive-react/src/infra/hooks/queries/index.ts @@ -0,0 +1,24 @@ +/** + * Query hooks barrel export + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +export * from './useInfraGetAllQuery'; +export * from './useInfraRefsQuery'; +export * from './useInfraRefQuery'; +export * from './useInfraStoresQuery'; +export * from './useInfraStoreQuery'; +export * from './useInfraObjectsQuery'; +export * from './useInfraObjectQuery'; +export * from './useInfraCommitsQuery'; +export * from './useInfraCommitQuery'; +export * from './useDbPresetsQuery'; +export * from './useDbPresetQuery'; +export * from './usePlatformNamespacesQuery'; +export * from './usePlatformNamespaceQuery'; +export * from './useNamespacesQuery'; +export * from './useNamespaceQuery'; +export * from './usePlatformNamespaceEventsQuery'; +export * from './usePlatformNamespaceEventQuery'; +export * from './useNamespaceEventsQuery'; +export * from './useNamespaceEventQuery'; diff --git a/sdk/constructive-react/src/infra/hooks/queries/useDbPresetQuery.ts b/sdk/constructive-react/src/infra/hooks/queries/useDbPresetQuery.ts new file mode 100644 index 0000000000..73c6743a01 --- /dev/null +++ b/sdk/constructive-react/src/infra/hooks/queries/useDbPresetQuery.ts @@ -0,0 +1,138 @@ +/** + * Database provisioning preset catalog — 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 { dbPresetKeys } from '../query-keys'; +import type { DbPresetSelect, DbPresetWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { DbPresetSelect, DbPresetWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const dbPresetQueryKey = dbPresetKeys.detail; +/** + * Database provisioning preset catalog — merkle-versioned head over the infra store + * + * @example + * ```tsx + * const { data, isLoading } = useDbPresetQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useDbPresetQuery< + S extends DbPresetSelect, + TData = { + dbPreset: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, DbPresetSelect>; + } & Omit< + UseQueryOptions< + { + dbPreset: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useDbPresetQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: dbPresetKeys.detail(params.id), + queryFn: () => + getClient() + .dbPreset.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Database provisioning preset catalog — merkle-versioned head over the infra store + * + * @example + * ```ts + * const data = await fetchDbPresetQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchDbPresetQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, DbPresetSelect>; +}): Promise<{ + dbPreset: InferSelectResult | null; +}>; +export async function fetchDbPresetQuery(params: { + id: string; + selection: SelectionConfig; +}): Promise { + const args = buildSelectionArgs(params.selection); + return getClient() + .dbPreset.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Database provisioning preset catalog — merkle-versioned head over the infra store + * + * @example + * ```ts + * await prefetchDbPresetQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchDbPresetQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, DbPresetSelect>; + } +): Promise; +export async function prefetchDbPresetQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: dbPresetKeys.detail(params.id), + queryFn: () => + getClient() + .dbPreset.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/infra/hooks/queries/useDbPresetsQuery.ts b/sdk/constructive-react/src/infra/hooks/queries/useDbPresetsQuery.ts new file mode 100644 index 0000000000..1aa1bdb140 --- /dev/null +++ b/sdk/constructive-react/src/infra/hooks/queries/useDbPresetsQuery.ts @@ -0,0 +1,145 @@ +/** + * Database provisioning preset catalog — 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 { dbPresetKeys } from '../query-keys'; +import type { + DbPresetSelect, + DbPresetWithRelations, + DbPresetFilter, + DbPresetOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + DbPresetSelect, + DbPresetWithRelations, + DbPresetFilter, + DbPresetOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const dbPresetsQueryKey = dbPresetKeys.list; +/** + * Database provisioning preset catalog — merkle-versioned head over the infra store + * + * @example + * ```tsx + * const { data, isLoading } = useDbPresetsQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useDbPresetsQuery< + S extends DbPresetSelect, + TData = { + dbPresets: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, DbPresetSelect>; + } & Omit< + UseQueryOptions< + { + dbPresets: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useDbPresetsQuery( + params: { + selection: ListSelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs( + params.selection + ); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: dbPresetKeys.list(args), + queryFn: () => getClient().dbPreset.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Database provisioning preset catalog — merkle-versioned head over the infra store + * + * @example + * ```ts + * const data = await fetchDbPresetsQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchDbPresetsQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, DbPresetSelect>; +}): Promise<{ + dbPresets: ConnectionResult>; +}>; +export async function fetchDbPresetsQuery(params: { + selection: ListSelectionConfig; +}) { + const args = buildListSelectionArgs( + params.selection + ); + return getClient().dbPreset.findMany(args).unwrap(); +} +/** + * Database provisioning preset catalog — merkle-versioned head over the infra store + * + * @example + * ```ts + * await prefetchDbPresetsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchDbPresetsQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, DbPresetSelect>; + } +): Promise; +export async function prefetchDbPresetsQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig; + } +): Promise { + const args = buildListSelectionArgs( + params.selection + ); + await queryClient.prefetchQuery({ + queryKey: dbPresetKeys.list(args), + queryFn: () => getClient().dbPreset.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/infra/hooks/queries/useInfraCommitQuery.ts b/sdk/constructive-react/src/infra/hooks/queries/useInfraCommitQuery.ts new file mode 100644 index 0000000000..3118bbd86f --- /dev/null +++ b/sdk/constructive-react/src/infra/hooks/queries/useInfraCommitQuery.ts @@ -0,0 +1,138 @@ +/** + * 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 { infraCommitKeys } from '../query-keys'; +import type { InfraCommitSelect, InfraCommitWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { InfraCommitSelect, InfraCommitWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const infraCommitQueryKey = infraCommitKeys.detail; +/** + * Commit history — each commit snapshots a tree root for a store + * + * @example + * ```tsx + * const { data, isLoading } = useInfraCommitQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useInfraCommitQuery< + S extends InfraCommitSelect, + TData = { + infraCommit: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, InfraCommitSelect>; + } & Omit< + UseQueryOptions< + { + infraCommit: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useInfraCommitQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: infraCommitKeys.detail(params.id), + queryFn: () => + getClient() + .infraCommit.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 fetchInfraCommitQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchInfraCommitQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, InfraCommitSelect>; +}): Promise<{ + infraCommit: InferSelectResult | null; +}>; +export async function fetchInfraCommitQuery(params: { + id: string; + selection: SelectionConfig; +}): Promise { + const args = buildSelectionArgs(params.selection); + return getClient() + .infraCommit.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Commit history — each commit snapshots a tree root for a store + * + * @example + * ```ts + * await prefetchInfraCommitQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchInfraCommitQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, InfraCommitSelect>; + } +): Promise; +export async function prefetchInfraCommitQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: infraCommitKeys.detail(params.id), + queryFn: () => + getClient() + .infraCommit.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/infra/hooks/queries/useInfraCommitsQuery.ts b/sdk/constructive-react/src/infra/hooks/queries/useInfraCommitsQuery.ts new file mode 100644 index 0000000000..22994751ea --- /dev/null +++ b/sdk/constructive-react/src/infra/hooks/queries/useInfraCommitsQuery.ts @@ -0,0 +1,145 @@ +/** + * 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 { infraCommitKeys } from '../query-keys'; +import type { + InfraCommitSelect, + InfraCommitWithRelations, + InfraCommitFilter, + InfraCommitOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + InfraCommitSelect, + InfraCommitWithRelations, + InfraCommitFilter, + InfraCommitOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const infraCommitsQueryKey = infraCommitKeys.list; +/** + * Commit history — each commit snapshots a tree root for a store + * + * @example + * ```tsx + * const { data, isLoading } = useInfraCommitsQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useInfraCommitsQuery< + S extends InfraCommitSelect, + TData = { + infraCommits: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, InfraCommitSelect>; + } & Omit< + UseQueryOptions< + { + infraCommits: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useInfraCommitsQuery( + params: { + selection: ListSelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs( + params.selection + ); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: infraCommitKeys.list(args), + queryFn: () => getClient().infraCommit.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Commit history — each commit snapshots a tree root for a store + * + * @example + * ```ts + * const data = await fetchInfraCommitsQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchInfraCommitsQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, InfraCommitSelect>; +}): Promise<{ + infraCommits: ConnectionResult>; +}>; +export async function fetchInfraCommitsQuery(params: { + selection: ListSelectionConfig; +}) { + const args = buildListSelectionArgs( + params.selection + ); + return getClient().infraCommit.findMany(args).unwrap(); +} +/** + * Commit history — each commit snapshots a tree root for a store + * + * @example + * ```ts + * await prefetchInfraCommitsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchInfraCommitsQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, InfraCommitSelect>; + } +): Promise; +export async function prefetchInfraCommitsQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig; + } +): Promise { + const args = buildListSelectionArgs( + params.selection + ); + await queryClient.prefetchQuery({ + queryKey: infraCommitKeys.list(args), + queryFn: () => getClient().infraCommit.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/infra/hooks/queries/useInfraGetAllQuery.ts b/sdk/constructive-react/src/infra/hooks/queries/useInfraGetAllQuery.ts new file mode 100644 index 0000000000..86d631a8db --- /dev/null +++ b/sdk/constructive-react/src/infra/hooks/queries/useInfraGetAllQuery.ts @@ -0,0 +1,163 @@ +/** + * List query hook for InfraGetAllRecord + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useQuery } from '@tanstack/react-query'; +import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildListSelectionArgs } from '../selection'; +import type { ListSelectionConfig } from '../selection'; +import { infraGetAllRecordKeys } from '../query-keys'; +import type { + InfraGetAllRecordSelect, + InfraGetAllRecordWithRelations, + InfraGetAllRecordFilter, + InfraGetAllRecordsOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + InfraGetAllRecordSelect, + InfraGetAllRecordWithRelations, + InfraGetAllRecordFilter, + InfraGetAllRecordsOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const infraGetAllQueryKey = infraGetAllRecordKeys.list; +/** + * Query hook for fetching InfraGetAllRecord list + * + * @example + * ```tsx + * const { data, isLoading } = useInfraGetAllQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useInfraGetAllQuery< + S extends InfraGetAllRecordSelect, + TData = { + infraGetAll: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, InfraGetAllRecordSelect>; + } & Omit< + UseQueryOptions< + { + infraGetAll: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useInfraGetAllQuery( + params: { + selection: ListSelectionConfig< + InfraGetAllRecordSelect, + InfraGetAllRecordFilter, + InfraGetAllRecordsOrderBy + >; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + InfraGetAllRecordSelect, + InfraGetAllRecordFilter, + InfraGetAllRecordsOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: infraGetAllRecordKeys.list(args), + queryFn: () => getClient().infraGetAllRecord.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch InfraGetAllRecord list without React hooks + * + * @example + * ```ts + * const data = await fetchInfraGetAllQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchInfraGetAllQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, InfraGetAllRecordSelect>; +}): Promise<{ + infraGetAll: ConnectionResult>; +}>; +export async function fetchInfraGetAllQuery(params: { + selection: ListSelectionConfig< + InfraGetAllRecordSelect, + InfraGetAllRecordFilter, + InfraGetAllRecordsOrderBy + >; +}) { + const args = buildListSelectionArgs< + InfraGetAllRecordSelect, + InfraGetAllRecordFilter, + InfraGetAllRecordsOrderBy + >(params.selection); + return getClient().infraGetAllRecord.findMany(args).unwrap(); +} +/** + * Prefetch InfraGetAllRecord list for SSR or cache warming + * + * @example + * ```ts + * await prefetchInfraGetAllQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchInfraGetAllQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, InfraGetAllRecordSelect>; + } +): Promise; +export async function prefetchInfraGetAllQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig< + InfraGetAllRecordSelect, + InfraGetAllRecordFilter, + InfraGetAllRecordsOrderBy + >; + } +): Promise { + const args = buildListSelectionArgs< + InfraGetAllRecordSelect, + InfraGetAllRecordFilter, + InfraGetAllRecordsOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: infraGetAllRecordKeys.list(args), + queryFn: () => getClient().infraGetAllRecord.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/infra/hooks/queries/useInfraObjectQuery.ts b/sdk/constructive-react/src/infra/hooks/queries/useInfraObjectQuery.ts new file mode 100644 index 0000000000..c8c12d925b --- /dev/null +++ b/sdk/constructive-react/src/infra/hooks/queries/useInfraObjectQuery.ts @@ -0,0 +1,138 @@ +/** + * 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 { infraObjectKeys } from '../query-keys'; +import type { InfraObjectSelect, InfraObjectWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { InfraObjectSelect, InfraObjectWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const infraGetNodeAtPathQueryKey = infraObjectKeys.detail; +/** + * Content-addressed Merkle tree objects keyed by UUID v5 hash of data + children + * + * @example + * ```tsx + * const { data, isLoading } = useInfraObjectQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useInfraObjectQuery< + S extends InfraObjectSelect, + TData = { + infraGetNodeAtPath: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, InfraObjectSelect>; + } & Omit< + UseQueryOptions< + { + infraGetNodeAtPath: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useInfraObjectQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: infraObjectKeys.detail(params.id), + queryFn: () => + getClient() + .infraObject.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 fetchInfraObjectQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchInfraObjectQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, InfraObjectSelect>; +}): Promise<{ + infraGetNodeAtPath: InferSelectResult | null; +}>; +export async function fetchInfraObjectQuery(params: { + id: string; + selection: SelectionConfig; +}): Promise { + const args = buildSelectionArgs(params.selection); + return getClient() + .infraObject.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Content-addressed Merkle tree objects keyed by UUID v5 hash of data + children + * + * @example + * ```ts + * await prefetchInfraObjectQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchInfraObjectQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, InfraObjectSelect>; + } +): Promise; +export async function prefetchInfraObjectQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: infraObjectKeys.detail(params.id), + queryFn: () => + getClient() + .infraObject.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/infra/hooks/queries/useInfraObjectsQuery.ts b/sdk/constructive-react/src/infra/hooks/queries/useInfraObjectsQuery.ts new file mode 100644 index 0000000000..4489e6fb40 --- /dev/null +++ b/sdk/constructive-react/src/infra/hooks/queries/useInfraObjectsQuery.ts @@ -0,0 +1,145 @@ +/** + * 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 { infraObjectKeys } from '../query-keys'; +import type { + InfraObjectSelect, + InfraObjectWithRelations, + InfraObjectFilter, + InfraObjectOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + InfraObjectSelect, + InfraObjectWithRelations, + InfraObjectFilter, + InfraObjectOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const infraObjectsQueryKey = infraObjectKeys.list; +/** + * Content-addressed Merkle tree objects keyed by UUID v5 hash of data + children + * + * @example + * ```tsx + * const { data, isLoading } = useInfraObjectsQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useInfraObjectsQuery< + S extends InfraObjectSelect, + TData = { + infraObjects: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, InfraObjectSelect>; + } & Omit< + UseQueryOptions< + { + infraObjects: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useInfraObjectsQuery( + params: { + selection: ListSelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs( + params.selection + ); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: infraObjectKeys.list(args), + queryFn: () => getClient().infraObject.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Content-addressed Merkle tree objects keyed by UUID v5 hash of data + children + * + * @example + * ```ts + * const data = await fetchInfraObjectsQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchInfraObjectsQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, InfraObjectSelect>; +}): Promise<{ + infraObjects: ConnectionResult>; +}>; +export async function fetchInfraObjectsQuery(params: { + selection: ListSelectionConfig; +}) { + const args = buildListSelectionArgs( + params.selection + ); + return getClient().infraObject.findMany(args).unwrap(); +} +/** + * Content-addressed Merkle tree objects keyed by UUID v5 hash of data + children + * + * @example + * ```ts + * await prefetchInfraObjectsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchInfraObjectsQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, InfraObjectSelect>; + } +): Promise; +export async function prefetchInfraObjectsQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig; + } +): Promise { + const args = buildListSelectionArgs( + params.selection + ); + await queryClient.prefetchQuery({ + queryKey: infraObjectKeys.list(args), + queryFn: () => getClient().infraObject.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/infra/hooks/queries/useInfraRefQuery.ts b/sdk/constructive-react/src/infra/hooks/queries/useInfraRefQuery.ts new file mode 100644 index 0000000000..ffbeab1418 --- /dev/null +++ b/sdk/constructive-react/src/infra/hooks/queries/useInfraRefQuery.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 { infraRefKeys } from '../query-keys'; +import type { InfraRefSelect, InfraRefWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { InfraRefSelect, InfraRefWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const infraRefQueryKey = infraRefKeys.detail; +/** + * Branch heads — mutable pointers into the commit chain + * + * @example + * ```tsx + * const { data, isLoading } = useInfraRefQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useInfraRefQuery< + S extends InfraRefSelect, + TData = { + infraRef: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, InfraRefSelect>; + } & Omit< + UseQueryOptions< + { + infraRef: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useInfraRefQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: infraRefKeys.detail(params.id), + queryFn: () => + getClient() + .infraRef.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Branch heads — mutable pointers into the commit chain + * + * @example + * ```ts + * const data = await fetchInfraRefQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchInfraRefQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, InfraRefSelect>; +}): Promise<{ + infraRef: InferSelectResult | null; +}>; +export async function fetchInfraRefQuery(params: { + id: string; + selection: SelectionConfig; +}): Promise { + const args = buildSelectionArgs(params.selection); + return getClient() + .infraRef.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Branch heads — mutable pointers into the commit chain + * + * @example + * ```ts + * await prefetchInfraRefQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchInfraRefQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, InfraRefSelect>; + } +): Promise; +export async function prefetchInfraRefQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: infraRefKeys.detail(params.id), + queryFn: () => + getClient() + .infraRef.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/infra/hooks/queries/useInfraRefsQuery.ts b/sdk/constructive-react/src/infra/hooks/queries/useInfraRefsQuery.ts new file mode 100644 index 0000000000..c3879b8d09 --- /dev/null +++ b/sdk/constructive-react/src/infra/hooks/queries/useInfraRefsQuery.ts @@ -0,0 +1,145 @@ +/** + * 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 { infraRefKeys } from '../query-keys'; +import type { + InfraRefSelect, + InfraRefWithRelations, + InfraRefFilter, + InfraRefOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + InfraRefSelect, + InfraRefWithRelations, + InfraRefFilter, + InfraRefOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const infraRefsQueryKey = infraRefKeys.list; +/** + * Branch heads — mutable pointers into the commit chain + * + * @example + * ```tsx + * const { data, isLoading } = useInfraRefsQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useInfraRefsQuery< + S extends InfraRefSelect, + TData = { + infraRefs: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, InfraRefSelect>; + } & Omit< + UseQueryOptions< + { + infraRefs: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useInfraRefsQuery( + params: { + selection: ListSelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs( + params.selection + ); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: infraRefKeys.list(args), + queryFn: () => getClient().infraRef.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Branch heads — mutable pointers into the commit chain + * + * @example + * ```ts + * const data = await fetchInfraRefsQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchInfraRefsQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, InfraRefSelect>; +}): Promise<{ + infraRefs: ConnectionResult>; +}>; +export async function fetchInfraRefsQuery(params: { + selection: ListSelectionConfig; +}) { + const args = buildListSelectionArgs( + params.selection + ); + return getClient().infraRef.findMany(args).unwrap(); +} +/** + * Branch heads — mutable pointers into the commit chain + * + * @example + * ```ts + * await prefetchInfraRefsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchInfraRefsQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, InfraRefSelect>; + } +): Promise; +export async function prefetchInfraRefsQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig; + } +): Promise { + const args = buildListSelectionArgs( + params.selection + ); + await queryClient.prefetchQuery({ + queryKey: infraRefKeys.list(args), + queryFn: () => getClient().infraRef.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/infra/hooks/queries/useInfraStoreQuery.ts b/sdk/constructive-react/src/infra/hooks/queries/useInfraStoreQuery.ts new file mode 100644 index 0000000000..405081c104 --- /dev/null +++ b/sdk/constructive-react/src/infra/hooks/queries/useInfraStoreQuery.ts @@ -0,0 +1,138 @@ +/** + * 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 { infraStoreKeys } from '../query-keys'; +import type { InfraStoreSelect, InfraStoreWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { InfraStoreSelect, InfraStoreWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const infraStoreQueryKey = infraStoreKeys.detail; +/** + * Named stores — one per version-controlled tree (e.g. one graph, one definition set) + * + * @example + * ```tsx + * const { data, isLoading } = useInfraStoreQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useInfraStoreQuery< + S extends InfraStoreSelect, + TData = { + infraStore: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, InfraStoreSelect>; + } & Omit< + UseQueryOptions< + { + infraStore: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useInfraStoreQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: infraStoreKeys.detail(params.id), + queryFn: () => + getClient() + .infraStore.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 fetchInfraStoreQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchInfraStoreQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, InfraStoreSelect>; +}): Promise<{ + infraStore: InferSelectResult | null; +}>; +export async function fetchInfraStoreQuery(params: { + id: string; + selection: SelectionConfig; +}): Promise { + const args = buildSelectionArgs(params.selection); + return getClient() + .infraStore.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 prefetchInfraStoreQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchInfraStoreQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, InfraStoreSelect>; + } +): Promise; +export async function prefetchInfraStoreQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: infraStoreKeys.detail(params.id), + queryFn: () => + getClient() + .infraStore.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/infra/hooks/queries/useInfraStoresQuery.ts b/sdk/constructive-react/src/infra/hooks/queries/useInfraStoresQuery.ts new file mode 100644 index 0000000000..7477224d50 --- /dev/null +++ b/sdk/constructive-react/src/infra/hooks/queries/useInfraStoresQuery.ts @@ -0,0 +1,145 @@ +/** + * 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 { infraStoreKeys } from '../query-keys'; +import type { + InfraStoreSelect, + InfraStoreWithRelations, + InfraStoreFilter, + InfraStoreOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + InfraStoreSelect, + InfraStoreWithRelations, + InfraStoreFilter, + InfraStoreOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const infraStoresQueryKey = infraStoreKeys.list; +/** + * Named stores — one per version-controlled tree (e.g. one graph, one definition set) + * + * @example + * ```tsx + * const { data, isLoading } = useInfraStoresQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useInfraStoresQuery< + S extends InfraStoreSelect, + TData = { + infraStores: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, InfraStoreSelect>; + } & Omit< + UseQueryOptions< + { + infraStores: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useInfraStoresQuery( + params: { + selection: ListSelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs( + params.selection + ); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: infraStoreKeys.list(args), + queryFn: () => getClient().infraStore.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Named stores — one per version-controlled tree (e.g. one graph, one definition set) + * + * @example + * ```ts + * const data = await fetchInfraStoresQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchInfraStoresQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, InfraStoreSelect>; +}): Promise<{ + infraStores: ConnectionResult>; +}>; +export async function fetchInfraStoresQuery(params: { + selection: ListSelectionConfig; +}) { + const args = buildListSelectionArgs( + params.selection + ); + return getClient().infraStore.findMany(args).unwrap(); +} +/** + * Named stores — one per version-controlled tree (e.g. one graph, one definition set) + * + * @example + * ```ts + * await prefetchInfraStoresQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchInfraStoresQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, InfraStoreSelect>; + } +): Promise; +export async function prefetchInfraStoresQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig; + } +): Promise { + const args = buildListSelectionArgs( + params.selection + ); + await queryClient.prefetchQuery({ + queryKey: infraStoreKeys.list(args), + queryFn: () => getClient().infraStore.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/infra/hooks/queries/useNamespaceEventQuery.ts b/sdk/constructive-react/src/infra/hooks/queries/useNamespaceEventQuery.ts new file mode 100644 index 0000000000..9206e4efee --- /dev/null +++ b/sdk/constructive-react/src/infra/hooks/queries/useNamespaceEventQuery.ts @@ -0,0 +1,138 @@ +/** + * Namespace lifecycle events — audit log of creation, activation, deactivation, label changes + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useQuery } from '@tanstack/react-query'; +import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { namespaceEventKeys } from '../query-keys'; +import type { NamespaceEventSelect, NamespaceEventWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { NamespaceEventSelect, NamespaceEventWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const namespaceEventQueryKey = namespaceEventKeys.detail; +/** + * Namespace lifecycle events — audit log of creation, activation, deactivation, label changes + * + * @example + * ```tsx + * const { data, isLoading } = useNamespaceEventQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useNamespaceEventQuery< + S extends NamespaceEventSelect, + TData = { + namespaceEvent: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, NamespaceEventSelect>; + } & Omit< + UseQueryOptions< + { + namespaceEvent: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useNamespaceEventQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: namespaceEventKeys.detail(params.id), + queryFn: () => + getClient() + .namespaceEvent.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Namespace lifecycle events — audit log of creation, activation, deactivation, label changes + * + * @example + * ```ts + * const data = await fetchNamespaceEventQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchNamespaceEventQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, NamespaceEventSelect>; +}): Promise<{ + namespaceEvent: InferSelectResult | null; +}>; +export async function fetchNamespaceEventQuery(params: { + id: string; + selection: SelectionConfig; +}): Promise { + const args = buildSelectionArgs(params.selection); + return getClient() + .namespaceEvent.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Namespace lifecycle events — audit log of creation, activation, deactivation, label changes + * + * @example + * ```ts + * await prefetchNamespaceEventQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchNamespaceEventQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, NamespaceEventSelect>; + } +): Promise; +export async function prefetchNamespaceEventQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: namespaceEventKeys.detail(params.id), + queryFn: () => + getClient() + .namespaceEvent.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/infra/hooks/queries/useNamespaceEventsQuery.ts b/sdk/constructive-react/src/infra/hooks/queries/useNamespaceEventsQuery.ts new file mode 100644 index 0000000000..ba942976cf --- /dev/null +++ b/sdk/constructive-react/src/infra/hooks/queries/useNamespaceEventsQuery.ts @@ -0,0 +1,159 @@ +/** + * Namespace lifecycle events — audit log of creation, activation, deactivation, label changes + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useQuery } from '@tanstack/react-query'; +import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildListSelectionArgs } from '../selection'; +import type { ListSelectionConfig } from '../selection'; +import { namespaceEventKeys } from '../query-keys'; +import type { + NamespaceEventSelect, + NamespaceEventWithRelations, + NamespaceEventFilter, + NamespaceEventOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + NamespaceEventSelect, + NamespaceEventWithRelations, + NamespaceEventFilter, + NamespaceEventOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const namespaceEventsQueryKey = namespaceEventKeys.list; +/** + * Namespace lifecycle events — audit log of creation, activation, deactivation, label changes + * + * @example + * ```tsx + * const { data, isLoading } = useNamespaceEventsQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useNamespaceEventsQuery< + S extends NamespaceEventSelect, + TData = { + namespaceEvents: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, NamespaceEventSelect>; + } & Omit< + UseQueryOptions< + { + namespaceEvents: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useNamespaceEventsQuery( + params: { + selection: ListSelectionConfig< + NamespaceEventSelect, + NamespaceEventFilter, + NamespaceEventOrderBy + >; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + NamespaceEventSelect, + NamespaceEventFilter, + NamespaceEventOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: namespaceEventKeys.list(args), + queryFn: () => getClient().namespaceEvent.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Namespace lifecycle events — audit log of creation, activation, deactivation, label changes + * + * @example + * ```ts + * const data = await fetchNamespaceEventsQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchNamespaceEventsQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, NamespaceEventSelect>; +}): Promise<{ + namespaceEvents: ConnectionResult>; +}>; +export async function fetchNamespaceEventsQuery(params: { + selection: ListSelectionConfig; +}) { + const args = buildListSelectionArgs< + NamespaceEventSelect, + NamespaceEventFilter, + NamespaceEventOrderBy + >(params.selection); + return getClient().namespaceEvent.findMany(args).unwrap(); +} +/** + * Namespace lifecycle events — audit log of creation, activation, deactivation, label changes + * + * @example + * ```ts + * await prefetchNamespaceEventsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchNamespaceEventsQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, NamespaceEventSelect>; + } +): Promise; +export async function prefetchNamespaceEventsQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig< + NamespaceEventSelect, + NamespaceEventFilter, + NamespaceEventOrderBy + >; + } +): Promise { + const args = buildListSelectionArgs< + NamespaceEventSelect, + NamespaceEventFilter, + NamespaceEventOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: namespaceEventKeys.list(args), + queryFn: () => getClient().namespaceEvent.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/infra/hooks/queries/useNamespaceQuery.ts b/sdk/constructive-react/src/infra/hooks/queries/useNamespaceQuery.ts new file mode 100644 index 0000000000..ffd1130133 --- /dev/null +++ b/sdk/constructive-react/src/infra/hooks/queries/useNamespaceQuery.ts @@ -0,0 +1,138 @@ +/** + * Logical namespace containers for grouping secrets, config, functions, and other resources + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useQuery } from '@tanstack/react-query'; +import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { namespaceKeys } from '../query-keys'; +import type { NamespaceSelect, NamespaceWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { NamespaceSelect, NamespaceWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const namespaceQueryKey = namespaceKeys.detail; +/** + * Logical namespace containers for grouping secrets, config, functions, and other resources + * + * @example + * ```tsx + * const { data, isLoading } = useNamespaceQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useNamespaceQuery< + S extends NamespaceSelect, + TData = { + namespace: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, NamespaceSelect>; + } & Omit< + UseQueryOptions< + { + namespace: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useNamespaceQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: namespaceKeys.detail(params.id), + queryFn: () => + getClient() + .namespace.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Logical namespace containers for grouping secrets, config, functions, and other resources + * + * @example + * ```ts + * const data = await fetchNamespaceQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchNamespaceQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, NamespaceSelect>; +}): Promise<{ + namespace: InferSelectResult | null; +}>; +export async function fetchNamespaceQuery(params: { + id: string; + selection: SelectionConfig; +}): Promise { + const args = buildSelectionArgs(params.selection); + return getClient() + .namespace.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Logical namespace containers for grouping secrets, config, functions, and other resources + * + * @example + * ```ts + * await prefetchNamespaceQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchNamespaceQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, NamespaceSelect>; + } +): Promise; +export async function prefetchNamespaceQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: namespaceKeys.detail(params.id), + queryFn: () => + getClient() + .namespace.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/infra/hooks/queries/useNamespacesQuery.ts b/sdk/constructive-react/src/infra/hooks/queries/useNamespacesQuery.ts new file mode 100644 index 0000000000..291ce7dbd6 --- /dev/null +++ b/sdk/constructive-react/src/infra/hooks/queries/useNamespacesQuery.ts @@ -0,0 +1,145 @@ +/** + * Logical namespace containers for grouping secrets, config, functions, and other resources + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useQuery } from '@tanstack/react-query'; +import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildListSelectionArgs } from '../selection'; +import type { ListSelectionConfig } from '../selection'; +import { namespaceKeys } from '../query-keys'; +import type { + NamespaceSelect, + NamespaceWithRelations, + NamespaceFilter, + NamespaceOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + NamespaceSelect, + NamespaceWithRelations, + NamespaceFilter, + NamespaceOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const namespacesQueryKey = namespaceKeys.list; +/** + * Logical namespace containers for grouping secrets, config, functions, and other resources + * + * @example + * ```tsx + * const { data, isLoading } = useNamespacesQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useNamespacesQuery< + S extends NamespaceSelect, + TData = { + namespaces: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, NamespaceSelect>; + } & Omit< + UseQueryOptions< + { + namespaces: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useNamespacesQuery( + params: { + selection: ListSelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs( + params.selection + ); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: namespaceKeys.list(args), + queryFn: () => getClient().namespace.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Logical namespace containers for grouping secrets, config, functions, and other resources + * + * @example + * ```ts + * const data = await fetchNamespacesQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchNamespacesQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, NamespaceSelect>; +}): Promise<{ + namespaces: ConnectionResult>; +}>; +export async function fetchNamespacesQuery(params: { + selection: ListSelectionConfig; +}) { + const args = buildListSelectionArgs( + params.selection + ); + return getClient().namespace.findMany(args).unwrap(); +} +/** + * Logical namespace containers for grouping secrets, config, functions, and other resources + * + * @example + * ```ts + * await prefetchNamespacesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchNamespacesQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, NamespaceSelect>; + } +): Promise; +export async function prefetchNamespacesQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig; + } +): Promise { + const args = buildListSelectionArgs( + params.selection + ); + await queryClient.prefetchQuery({ + queryKey: namespaceKeys.list(args), + queryFn: () => getClient().namespace.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/infra/hooks/queries/usePlatformNamespaceEventQuery.ts b/sdk/constructive-react/src/infra/hooks/queries/usePlatformNamespaceEventQuery.ts new file mode 100644 index 0000000000..7801c80b9e --- /dev/null +++ b/sdk/constructive-react/src/infra/hooks/queries/usePlatformNamespaceEventQuery.ts @@ -0,0 +1,146 @@ +/** + * Namespace lifecycle events — audit log of creation, activation, deactivation, label changes + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useQuery } from '@tanstack/react-query'; +import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { platformNamespaceEventKeys } from '../query-keys'; +import type { + PlatformNamespaceEventSelect, + PlatformNamespaceEventWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlatformNamespaceEventSelect, + PlatformNamespaceEventWithRelations, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const platformNamespaceEventQueryKey = platformNamespaceEventKeys.detail; +/** + * Namespace lifecycle events — audit log of creation, activation, deactivation, label changes + * + * @example + * ```tsx + * const { data, isLoading } = usePlatformNamespaceEventQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function usePlatformNamespaceEventQuery< + S extends PlatformNamespaceEventSelect, + TData = { + platformNamespaceEvent: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, PlatformNamespaceEventSelect>; + } & Omit< + UseQueryOptions< + { + platformNamespaceEvent: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function usePlatformNamespaceEventQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: platformNamespaceEventKeys.detail(params.id), + queryFn: () => + getClient() + .platformNamespaceEvent.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Namespace lifecycle events — audit log of creation, activation, deactivation, label changes + * + * @example + * ```ts + * const data = await fetchPlatformNamespaceEventQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchPlatformNamespaceEventQuery< + S extends PlatformNamespaceEventSelect, +>(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, PlatformNamespaceEventSelect>; +}): Promise<{ + platformNamespaceEvent: InferSelectResult | null; +}>; +export async function fetchPlatformNamespaceEventQuery(params: { + id: string; + selection: SelectionConfig; +}): Promise { + const args = buildSelectionArgs(params.selection); + return getClient() + .platformNamespaceEvent.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Namespace lifecycle events — audit log of creation, activation, deactivation, label changes + * + * @example + * ```ts + * await prefetchPlatformNamespaceEventQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchPlatformNamespaceEventQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, PlatformNamespaceEventSelect>; + } +): Promise; +export async function prefetchPlatformNamespaceEventQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: platformNamespaceEventKeys.detail(params.id), + queryFn: () => + getClient() + .platformNamespaceEvent.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/infra/hooks/queries/usePlatformNamespaceEventsQuery.ts b/sdk/constructive-react/src/infra/hooks/queries/usePlatformNamespaceEventsQuery.ts new file mode 100644 index 0000000000..1d906fbe67 --- /dev/null +++ b/sdk/constructive-react/src/infra/hooks/queries/usePlatformNamespaceEventsQuery.ts @@ -0,0 +1,180 @@ +/** + * Namespace lifecycle events — audit log of creation, activation, deactivation, label changes + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useQuery } from '@tanstack/react-query'; +import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildListSelectionArgs } from '../selection'; +import type { ListSelectionConfig } from '../selection'; +import { platformNamespaceEventKeys } from '../query-keys'; +import type { + PlatformNamespaceEventSelect, + PlatformNamespaceEventWithRelations, + PlatformNamespaceEventFilter, + PlatformNamespaceEventOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + PlatformNamespaceEventSelect, + PlatformNamespaceEventWithRelations, + PlatformNamespaceEventFilter, + PlatformNamespaceEventOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const platformNamespaceEventsQueryKey = platformNamespaceEventKeys.list; +/** + * Namespace lifecycle events — audit log of creation, activation, deactivation, label changes + * + * @example + * ```tsx + * const { data, isLoading } = usePlatformNamespaceEventsQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function usePlatformNamespaceEventsQuery< + S extends PlatformNamespaceEventSelect, + TData = { + platformNamespaceEvents: ConnectionResult< + InferSelectResult + >; + }, +>( + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, PlatformNamespaceEventSelect>; + } & Omit< + UseQueryOptions< + { + platformNamespaceEvents: ConnectionResult< + InferSelectResult + >; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function usePlatformNamespaceEventsQuery( + params: { + selection: ListSelectionConfig< + PlatformNamespaceEventSelect, + PlatformNamespaceEventFilter, + PlatformNamespaceEventOrderBy + >; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + PlatformNamespaceEventSelect, + PlatformNamespaceEventFilter, + PlatformNamespaceEventOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: platformNamespaceEventKeys.list(args), + queryFn: () => getClient().platformNamespaceEvent.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Namespace lifecycle events — audit log of creation, activation, deactivation, label changes + * + * @example + * ```ts + * const data = await fetchPlatformNamespaceEventsQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchPlatformNamespaceEventsQuery< + S extends PlatformNamespaceEventSelect, +>(params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, PlatformNamespaceEventSelect>; +}): Promise<{ + platformNamespaceEvents: ConnectionResult< + InferSelectResult + >; +}>; +export async function fetchPlatformNamespaceEventsQuery(params: { + selection: ListSelectionConfig< + PlatformNamespaceEventSelect, + PlatformNamespaceEventFilter, + PlatformNamespaceEventOrderBy + >; +}) { + const args = buildListSelectionArgs< + PlatformNamespaceEventSelect, + PlatformNamespaceEventFilter, + PlatformNamespaceEventOrderBy + >(params.selection); + return getClient().platformNamespaceEvent.findMany(args).unwrap(); +} +/** + * Namespace lifecycle events — audit log of creation, activation, deactivation, label changes + * + * @example + * ```ts + * await prefetchPlatformNamespaceEventsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchPlatformNamespaceEventsQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, PlatformNamespaceEventSelect>; + } +): Promise; +export async function prefetchPlatformNamespaceEventsQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig< + PlatformNamespaceEventSelect, + PlatformNamespaceEventFilter, + PlatformNamespaceEventOrderBy + >; + } +): Promise { + const args = buildListSelectionArgs< + PlatformNamespaceEventSelect, + PlatformNamespaceEventFilter, + PlatformNamespaceEventOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: platformNamespaceEventKeys.list(args), + queryFn: () => getClient().platformNamespaceEvent.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/infra/hooks/queries/usePlatformNamespaceQuery.ts b/sdk/constructive-react/src/infra/hooks/queries/usePlatformNamespaceQuery.ts new file mode 100644 index 0000000000..962f42695f --- /dev/null +++ b/sdk/constructive-react/src/infra/hooks/queries/usePlatformNamespaceQuery.ts @@ -0,0 +1,144 @@ +/** + * Logical namespace containers for grouping secrets, config, functions, and other resources + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useQuery } from '@tanstack/react-query'; +import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { platformNamespaceKeys } from '../query-keys'; +import type { + PlatformNamespaceSelect, + PlatformNamespaceWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlatformNamespaceSelect, + PlatformNamespaceWithRelations, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const platformNamespaceQueryKey = platformNamespaceKeys.detail; +/** + * Logical namespace containers for grouping secrets, config, functions, and other resources + * + * @example + * ```tsx + * const { data, isLoading } = usePlatformNamespaceQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function usePlatformNamespaceQuery< + S extends PlatformNamespaceSelect, + TData = { + platformNamespace: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, PlatformNamespaceSelect>; + } & Omit< + UseQueryOptions< + { + platformNamespace: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function usePlatformNamespaceQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: platformNamespaceKeys.detail(params.id), + queryFn: () => + getClient() + .platformNamespace.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Logical namespace containers for grouping secrets, config, functions, and other resources + * + * @example + * ```ts + * const data = await fetchPlatformNamespaceQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchPlatformNamespaceQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, PlatformNamespaceSelect>; +}): Promise<{ + platformNamespace: InferSelectResult | null; +}>; +export async function fetchPlatformNamespaceQuery(params: { + id: string; + selection: SelectionConfig; +}): Promise { + const args = buildSelectionArgs(params.selection); + return getClient() + .platformNamespace.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Logical namespace containers for grouping secrets, config, functions, and other resources + * + * @example + * ```ts + * await prefetchPlatformNamespaceQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchPlatformNamespaceQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, PlatformNamespaceSelect>; + } +): Promise; +export async function prefetchPlatformNamespaceQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: platformNamespaceKeys.detail(params.id), + queryFn: () => + getClient() + .platformNamespace.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/infra/hooks/queries/usePlatformNamespacesQuery.ts b/sdk/constructive-react/src/infra/hooks/queries/usePlatformNamespacesQuery.ts new file mode 100644 index 0000000000..08c0cd485b --- /dev/null +++ b/sdk/constructive-react/src/infra/hooks/queries/usePlatformNamespacesQuery.ts @@ -0,0 +1,163 @@ +/** + * Logical namespace containers for grouping secrets, config, functions, and other resources + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useQuery } from '@tanstack/react-query'; +import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildListSelectionArgs } from '../selection'; +import type { ListSelectionConfig } from '../selection'; +import { platformNamespaceKeys } from '../query-keys'; +import type { + PlatformNamespaceSelect, + PlatformNamespaceWithRelations, + PlatformNamespaceFilter, + PlatformNamespaceOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + PlatformNamespaceSelect, + PlatformNamespaceWithRelations, + PlatformNamespaceFilter, + PlatformNamespaceOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const platformNamespacesQueryKey = platformNamespaceKeys.list; +/** + * Logical namespace containers for grouping secrets, config, functions, and other resources + * + * @example + * ```tsx + * const { data, isLoading } = usePlatformNamespacesQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function usePlatformNamespacesQuery< + S extends PlatformNamespaceSelect, + TData = { + platformNamespaces: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, PlatformNamespaceSelect>; + } & Omit< + UseQueryOptions< + { + platformNamespaces: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function usePlatformNamespacesQuery( + params: { + selection: ListSelectionConfig< + PlatformNamespaceSelect, + PlatformNamespaceFilter, + PlatformNamespaceOrderBy + >; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + PlatformNamespaceSelect, + PlatformNamespaceFilter, + PlatformNamespaceOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: platformNamespaceKeys.list(args), + queryFn: () => getClient().platformNamespace.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Logical namespace containers for grouping secrets, config, functions, and other resources + * + * @example + * ```ts + * const data = await fetchPlatformNamespacesQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchPlatformNamespacesQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, PlatformNamespaceSelect>; +}): Promise<{ + platformNamespaces: ConnectionResult>; +}>; +export async function fetchPlatformNamespacesQuery(params: { + selection: ListSelectionConfig< + PlatformNamespaceSelect, + PlatformNamespaceFilter, + PlatformNamespaceOrderBy + >; +}) { + const args = buildListSelectionArgs< + PlatformNamespaceSelect, + PlatformNamespaceFilter, + PlatformNamespaceOrderBy + >(params.selection); + return getClient().platformNamespace.findMany(args).unwrap(); +} +/** + * Logical namespace containers for grouping secrets, config, functions, and other resources + * + * @example + * ```ts + * await prefetchPlatformNamespacesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchPlatformNamespacesQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, PlatformNamespaceSelect>; + } +): Promise; +export async function prefetchPlatformNamespacesQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig< + PlatformNamespaceSelect, + PlatformNamespaceFilter, + PlatformNamespaceOrderBy + >; + } +): Promise { + const args = buildListSelectionArgs< + PlatformNamespaceSelect, + PlatformNamespaceFilter, + PlatformNamespaceOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: platformNamespaceKeys.list(args), + queryFn: () => getClient().platformNamespace.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 new file mode 100644 index 0000000000..f763b804fb --- /dev/null +++ b/sdk/constructive-react/src/infra/hooks/query-keys.ts @@ -0,0 +1,147 @@ +/** + * 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 infraGetAllRecordKeys = { + /** All infraGetAllRecord queries */ all: ['infragetallrecord'] as const, + /** List query keys */ lists: () => [...infraGetAllRecordKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...infraGetAllRecordKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...infraGetAllRecordKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...infraGetAllRecordKeys.details(), id] as const, +} as const; +export const infraRefKeys = { + /** All infraRef queries */ all: ['infraref'] as const, + /** List query keys */ lists: () => [...infraRefKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...infraRefKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...infraRefKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...infraRefKeys.details(), id] as const, +} as const; +export const infraStoreKeys = { + /** All infraStore queries */ all: ['infrastore'] as const, + /** List query keys */ lists: () => [...infraStoreKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...infraStoreKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...infraStoreKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...infraStoreKeys.details(), id] as const, +} as const; +export const infraObjectKeys = { + /** All infraObject queries */ all: ['infraobject'] as const, + /** List query keys */ lists: () => [...infraObjectKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...infraObjectKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...infraObjectKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...infraObjectKeys.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, + /** List query key with variables */ list: (variables?: object) => + [...infraCommitKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...infraCommitKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...infraCommitKeys.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, + /** List query key with variables */ list: (variables?: object) => + [...dbPresetKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...dbPresetKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...dbPresetKeys.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, + /** List query key with variables */ list: (variables?: object) => + [...platformNamespaceKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...platformNamespaceKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...platformNamespaceKeys.details(), id] as const, +} as const; +export const namespaceKeys = { + /** All namespace queries */ all: ['namespace'] as const, + /** List query keys */ lists: () => [...namespaceKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...namespaceKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...namespaceKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...namespaceKeys.details(), id] as const, +} as const; +export const platformNamespaceEventKeys = { + /** All platformNamespaceEvent queries */ all: ['platformnamespaceevent'] as const, + /** List query keys */ lists: () => [...platformNamespaceEventKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...platformNamespaceEventKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...platformNamespaceEventKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...platformNamespaceEventKeys.details(), id] as const, +} as const; +export const namespaceEventKeys = { + /** All namespaceEvent queries */ all: ['namespaceevent'] as const, + /** List query keys */ lists: () => [...namespaceEventKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...namespaceEventKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...namespaceEventKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...namespaceEventKeys.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 = { + infraGetAllRecord: infraGetAllRecordKeys, + infraRef: infraRefKeys, + infraStore: infraStoreKeys, + infraObject: infraObjectKeys, + infraCommit: infraCommitKeys, + dbPreset: dbPresetKeys, + platformNamespace: platformNamespaceKeys, + namespace: namespaceKeys, + platformNamespaceEvent: platformNamespaceEventKeys, + namespaceEvent: namespaceEventKeys, +} as const; +/** Type representing all available query key scopes */ +export type QueryKeyScope = keyof typeof queryKeys; diff --git a/sdk/constructive-react/src/infra/hooks/selection.ts b/sdk/constructive-react/src/infra/hooks/selection.ts new file mode 100644 index 0000000000..2952aab647 --- /dev/null +++ b/sdk/constructive-react/src/infra/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/infra/index.ts b/sdk/constructive-react/src/infra/index.ts new file mode 100644 index 0000000000..2b8402539a --- /dev/null +++ b/sdk/constructive-react/src/infra/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/infra/orm/README.md b/sdk/constructive-react/src/infra/orm/README.md new file mode 100644 index 0000000000..e8ecab6424 --- /dev/null +++ b/sdk/constructive-react/src/infra/orm/README.md @@ -0,0 +1,482 @@ +# ORM Client + +

+ +

+ + + +## Setup + +```typescript +import { createClient } from './orm'; + +const db = createClient({ + endpoint: 'https://api.example.com/graphql', + headers: { Authorization: 'Bearer ' }, +}); +``` + +## Models + +| Model | Operations | +|-------|------------| +| `infraGetAllRecord` | findMany, findOne, create, update, delete | +| `infraRef` | findMany, findOne, create, update, delete | +| `infraStore` | findMany, findOne, create, update, delete | +| `infraObject` | findMany, findOne, create, update, delete | +| `infraCommit` | findMany, findOne, create, update, delete | +| `dbPreset` | findMany, findOne, create, update, delete | +| `platformNamespace` | findMany, findOne, create, update, delete | +| `namespace` | findMany, findOne, create, update, delete | +| `platformNamespaceEvent` | findMany, findOne, create, update, delete | +| `namespaceEvent` | findMany, findOne, create, update, delete | + +## Table Operations + +### `db.infraGetAllRecord` + +CRUD operations for InfraGetAllRecord records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `path` | String | Yes | +| `data` | JSON | Yes | + +**Operations:** + +```typescript +// List all infraGetAllRecord records +const items = await db.infraGetAllRecord.findMany({ select: { path: true, data: true } }).execute(); + +// Get one by id +const item = await db.infraGetAllRecord.findOne({ id: '', select: { path: true, data: true } }).execute(); + +// Create +const created = await db.infraGetAllRecord.create({ data: { path: '', data: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.infraGetAllRecord.update({ where: { id: '' }, data: { path: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.infraGetAllRecord.delete({ where: { id: '' } }).execute(); +``` + +### `db.infraRef` + +CRUD operations for InfraRef records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `name` | String | Yes | +| `scopeId` | UUID | Yes | +| `storeId` | UUID | Yes | +| `commitId` | UUID | Yes | + +**Operations:** + +```typescript +// List all infraRef records +const items = await db.infraRef.findMany({ select: { id: true, name: true, scopeId: true, storeId: true, commitId: true } }).execute(); + +// Get one by id +const item = await db.infraRef.findOne({ id: '', select: { id: true, name: true, scopeId: true, storeId: true, commitId: true } }).execute(); + +// Create +const created = await db.infraRef.create({ data: { name: '', scopeId: '', storeId: '', commitId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.infraRef.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.infraRef.delete({ where: { id: '' } }).execute(); +``` + +### `db.infraStore` + +CRUD operations for InfraStore records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `name` | String | Yes | +| `scopeId` | UUID | Yes | +| `hash` | UUID | Yes | +| `createdAt` | Datetime | No | + +**Operations:** + +```typescript +// List all infraStore records +const items = await db.infraStore.findMany({ select: { id: true, name: true, scopeId: true, hash: true, createdAt: true } }).execute(); + +// Get one by id +const item = await db.infraStore.findOne({ id: '', select: { id: true, name: true, scopeId: true, hash: true, createdAt: true } }).execute(); + +// Create +const created = await db.infraStore.create({ data: { name: '', scopeId: '', hash: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.infraStore.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.infraStore.delete({ where: { id: '' } }).execute(); +``` + +### `db.infraObject` + +CRUD operations for InfraObject records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `scopeId` | UUID | Yes | +| `kids` | UUID | Yes | +| `ktree` | String | Yes | +| `data` | JSON | Yes | +| `createdAt` | Datetime | No | + +**Operations:** + +```typescript +// List all infraObject records +const items = await db.infraObject.findMany({ select: { id: true, scopeId: true, kids: true, ktree: true, data: true, createdAt: true } }).execute(); + +// Get one by id +const item = await db.infraObject.findOne({ id: '', select: { id: true, scopeId: true, kids: true, ktree: true, data: true, createdAt: true } }).execute(); + +// Create +const created = await db.infraObject.create({ data: { scopeId: '', kids: '', ktree: '', data: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.infraObject.update({ where: { id: '' }, data: { scopeId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.infraObject.delete({ where: { id: '' } }).execute(); +``` + +### `db.infraCommit` + +CRUD operations for InfraCommit records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `message` | String | Yes | +| `scopeId` | UUID | Yes | +| `storeId` | UUID | Yes | +| `parentIds` | UUID | Yes | +| `authorId` | UUID | Yes | +| `committerId` | UUID | Yes | +| `treeId` | UUID | Yes | +| `date` | Datetime | Yes | + +**Operations:** + +```typescript +// List all infraCommit records +const items = await db.infraCommit.findMany({ select: { id: true, message: true, scopeId: true, storeId: true, parentIds: true, authorId: true, committerId: true, treeId: true, date: true } }).execute(); + +// Get one by id +const item = await db.infraCommit.findOne({ id: '', select: { id: true, message: true, scopeId: true, storeId: true, parentIds: true, authorId: true, committerId: true, treeId: true, date: true } }).execute(); + +// Create +const created = await db.infraCommit.create({ data: { message: '', scopeId: '', storeId: '', parentIds: '', authorId: '', committerId: '', treeId: '', date: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.infraCommit.update({ where: { id: '' }, data: { message: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.infraCommit.delete({ where: { id: '' } }).execute(); +``` + +### `db.dbPreset` + +CRUD operations for DbPreset records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `storeId` | UUID | Yes | +| `slug` | String | Yes | +| `definition` | JSON | Yes | +| `commitId` | UUID | Yes | +| `modulesHash` | UUID | Yes | +| `label` | String | Yes | +| `description` | String | Yes | +| `active` | Boolean | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all dbPreset records +const items = await db.dbPreset.findMany({ select: { id: true, storeId: true, slug: true, definition: true, commitId: true, modulesHash: true, label: true, description: true, active: true, createdAt: true, updatedAt: true } }).execute(); + +// Get one by id +const item = await db.dbPreset.findOne({ id: '', select: { id: true, storeId: true, slug: true, definition: true, commitId: true, modulesHash: true, label: true, description: true, active: true, createdAt: true, updatedAt: true } }).execute(); + +// Create +const created = await db.dbPreset.create({ data: { storeId: '', slug: '', definition: '', commitId: '', modulesHash: '', label: '', description: '', active: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.dbPreset.update({ where: { id: '' }, data: { storeId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.dbPreset.delete({ where: { id: '' } }).execute(); +``` + +### `db.platformNamespace` + +CRUD operations for PlatformNamespace records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | +| `name` | String | Yes | +| `namespaceName` | String | Yes | +| `description` | String | Yes | +| `isActive` | Boolean | Yes | +| `status` | String | Yes | +| `lastError` | String | Yes | +| `labels` | JSON | Yes | +| `annotations` | JSON | Yes | +| `isManaged` | Boolean | Yes | + +**Operations:** + +```typescript +// List all platformNamespace records +const items = await db.platformNamespace.findMany({ select: { id: true, createdAt: true, updatedAt: true, name: true, namespaceName: true, description: true, isActive: true, status: true, lastError: true, labels: true, annotations: true, isManaged: true } }).execute(); + +// Get one by id +const item = await db.platformNamespace.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, name: true, namespaceName: true, description: true, isActive: true, status: true, lastError: true, labels: true, annotations: true, isManaged: true } }).execute(); + +// Create +const created = await db.platformNamespace.create({ data: { name: '', namespaceName: '', description: '', isActive: '', status: '', lastError: '', labels: '', annotations: '', isManaged: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformNamespace.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformNamespace.delete({ where: { id: '' } }).execute(); +``` + +### `db.namespace` + +CRUD operations for Namespace records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | +| `name` | String | Yes | +| `namespaceName` | String | Yes | +| `description` | String | Yes | +| `isActive` | Boolean | Yes | +| `status` | String | Yes | +| `lastError` | String | Yes | +| `labels` | JSON | Yes | +| `annotations` | JSON | Yes | +| `databaseId` | UUID | Yes | +| `isManaged` | Boolean | Yes | + +**Operations:** + +```typescript +// List all namespace records +const items = await db.namespace.findMany({ select: { id: true, createdAt: true, updatedAt: true, name: true, namespaceName: true, description: true, isActive: true, status: true, lastError: true, labels: true, annotations: true, databaseId: true, isManaged: true } }).execute(); + +// Get one by id +const item = await db.namespace.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, name: true, namespaceName: true, description: true, isActive: true, status: true, lastError: true, labels: true, annotations: true, databaseId: true, isManaged: true } }).execute(); + +// Create +const created = await db.namespace.create({ data: { name: '', namespaceName: '', description: '', isActive: '', status: '', lastError: '', labels: '', annotations: '', databaseId: '', isManaged: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.namespace.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.namespace.delete({ where: { id: '' } }).execute(); +``` + +### `db.platformNamespaceEvent` + +CRUD operations for PlatformNamespaceEvent records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `createdAt` | Datetime | No | +| `id` | UUID | No | +| `namespaceId` | UUID | Yes | +| `eventType` | String | Yes | +| `actorId` | UUID | Yes | +| `message` | String | Yes | +| `metadata` | JSON | Yes | +| `cpuMillicores` | Int | Yes | +| `memoryBytes` | BigInt | Yes | +| `storageBytes` | BigInt | Yes | +| `networkIngressBytes` | BigInt | Yes | +| `networkEgressBytes` | BigInt | Yes | +| `podCount` | Int | Yes | +| `metrics` | JSON | Yes | + +**Operations:** + +```typescript +// List all platformNamespaceEvent records +const items = await db.platformNamespaceEvent.findMany({ select: { createdAt: true, id: true, namespaceId: true, eventType: true, actorId: true, message: true, metadata: true, cpuMillicores: true, memoryBytes: true, storageBytes: true, networkIngressBytes: true, networkEgressBytes: true, podCount: true, metrics: true } }).execute(); + +// Get one by id +const item = await db.platformNamespaceEvent.findOne({ id: '', select: { createdAt: true, id: true, namespaceId: true, eventType: true, actorId: true, message: true, metadata: true, cpuMillicores: true, memoryBytes: true, storageBytes: true, networkIngressBytes: true, networkEgressBytes: true, podCount: true, metrics: true } }).execute(); + +// Create +const created = await db.platformNamespaceEvent.create({ data: { namespaceId: '', eventType: '', actorId: '', message: '', metadata: '', cpuMillicores: '', memoryBytes: '', storageBytes: '', networkIngressBytes: '', networkEgressBytes: '', podCount: '', metrics: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformNamespaceEvent.update({ where: { id: '' }, data: { namespaceId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformNamespaceEvent.delete({ where: { id: '' } }).execute(); +``` + +### `db.namespaceEvent` + +CRUD operations for NamespaceEvent records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `createdAt` | Datetime | No | +| `id` | UUID | No | +| `namespaceId` | UUID | Yes | +| `eventType` | String | Yes | +| `actorId` | UUID | Yes | +| `message` | String | Yes | +| `metadata` | JSON | Yes | +| `cpuMillicores` | Int | Yes | +| `memoryBytes` | BigInt | Yes | +| `storageBytes` | BigInt | Yes | +| `networkIngressBytes` | BigInt | Yes | +| `networkEgressBytes` | BigInt | Yes | +| `podCount` | Int | Yes | +| `metrics` | JSON | Yes | +| `databaseId` | UUID | Yes | + +**Operations:** + +```typescript +// List all namespaceEvent records +const items = await db.namespaceEvent.findMany({ select: { createdAt: true, id: true, namespaceId: true, eventType: true, actorId: true, message: true, metadata: true, cpuMillicores: true, memoryBytes: true, storageBytes: true, networkIngressBytes: true, networkEgressBytes: true, podCount: true, metrics: true, databaseId: true } }).execute(); + +// Get one by id +const item = await db.namespaceEvent.findOne({ id: '', select: { createdAt: true, id: true, namespaceId: true, eventType: true, actorId: true, message: true, metadata: true, cpuMillicores: true, memoryBytes: true, storageBytes: true, networkIngressBytes: true, networkEgressBytes: true, podCount: true, metrics: true, databaseId: true } }).execute(); + +// Create +const created = await db.namespaceEvent.create({ data: { namespaceId: '', eventType: '', actorId: '', message: '', metadata: '', cpuMillicores: '', memoryBytes: '', storageBytes: '', networkIngressBytes: '', networkEgressBytes: '', podCount: '', metrics: '', databaseId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.namespaceEvent.update({ where: { id: '' }, data: { namespaceId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.namespaceEvent.delete({ where: { id: '' } }).execute(); +``` + +## Custom Operations + +### `db.mutation.infraInitEmptyRepo` + +infraInitEmptyRepo + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | InfraInitEmptyRepoInput (required) | + +```typescript +const result = await db.mutation.infraInitEmptyRepo({ input: { sId: '', storeId: '' } }).execute(); +``` + +### `db.mutation.infraSetDataAtPath` + +infraSetDataAtPath + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | InfraSetDataAtPathInput (required) | + +```typescript +const result = await db.mutation.infraSetDataAtPath({ input: { sId: '', root: '', path: '', data: '' } }).execute(); +``` + +### `db.mutation.infraInsertNodeAtPath` + +infraInsertNodeAtPath + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | InfraInsertNodeAtPathInput (required) | + +```typescript +const result = await db.mutation.infraInsertNodeAtPath({ input: '' }).execute(); +``` + +### `db.mutation.provisionBucket` + +Provision an S3 bucket for a logical bucket in the database. +Reads the bucket config via RLS, then creates and configures +the S3 bucket with the appropriate privacy policies, CORS rules, +and lifecycle settings. + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | ProvisionBucketInput (required) | + +```typescript +const result = await db.mutation.provisionBucket({ input: { bucketKey: '', ownerId: '' } }).execute(); +``` + +--- + +Built by the [Constructive](https://constructive.io) team. + +## Disclaimer + +AS DESCRIBED IN THE LICENSES, THE SOFTWARE IS PROVIDED "AS IS", AT YOUR OWN RISK, AND WITHOUT WARRANTIES OF ANY KIND. + +No developer or entity involved in creating this software will be liable for any claims or damages whatsoever associated with your use, inability to use, or your interaction with other users of the code, including any direct, indirect, incidental, special, exemplary, punitive or consequential damages, or loss of profits, cryptocurrencies, tokens, or anything else of value. diff --git a/sdk/constructive-react/src/infra/orm/client.ts b/sdk/constructive-react/src/infra/orm/client.ts new file mode 100644 index 0000000000..16e683c712 --- /dev/null +++ b/sdk/constructive-react/src/infra/orm/client.ts @@ -0,0 +1,244 @@ +/** + * 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; +} + +/** + * 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((e) => e.message).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/infra/orm/index.ts b/sdk/constructive-react/src/infra/orm/index.ts new file mode 100644 index 0000000000..95de2771fa --- /dev/null +++ b/sdk/constructive-react/src/infra/orm/index.ts @@ -0,0 +1,63 @@ +/** + * 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 { InfraGetAllRecordModel } from './models/infraGetAllRecord'; +import { InfraRefModel } from './models/infraRef'; +import { InfraStoreModel } from './models/infraStore'; +import { InfraObjectModel } from './models/infraObject'; +import { InfraCommitModel } from './models/infraCommit'; +import { DbPresetModel } from './models/dbPreset'; +import { PlatformNamespaceModel } from './models/platformNamespace'; +import { NamespaceModel } from './models/namespace'; +import { PlatformNamespaceEventModel } from './models/platformNamespaceEvent'; +import { NamespaceEventModel } from './models/namespaceEvent'; +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 { + infraGetAllRecord: new InfraGetAllRecordModel(client), + infraRef: new InfraRefModel(client), + infraStore: new InfraStoreModel(client), + infraObject: new InfraObjectModel(client), + infraCommit: new InfraCommitModel(client), + dbPreset: new DbPresetModel(client), + platformNamespace: new PlatformNamespaceModel(client), + namespace: new NamespaceModel(client), + platformNamespaceEvent: new PlatformNamespaceEventModel(client), + namespaceEvent: new NamespaceEventModel(client), + mutation: createMutationOperations(client), + }; +} diff --git a/sdk/constructive-react/src/infra/orm/input-types.ts b/sdk/constructive-react/src/infra/orm/input-types.ts new file mode 100644 index 0000000000..1cad40c72a --- /dev/null +++ b/sdk/constructive-react/src/infra/orm/input-types.ts @@ -0,0 +1,2170 @@ +/** + * 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; +} +// ============ Entity Types ============ +export interface InfraGetAllRecord { + path?: string[] | null; + data?: Record | null; +} +/** Branch heads — mutable pointers into the commit chain */ +export interface InfraRef { + /** Unique ref identifier */ + id: string; + /** Ref name (e.g. HEAD, main) */ + name?: string | null; + /** Opaque store partition key for the global tier */ + scopeId?: string | null; + /** Store this ref belongs to */ + storeId?: string | null; + /** Commit this ref points to */ + commitId?: string | null; +} +/** Named stores — one per version-controlled tree (e.g. one graph, one definition set) */ +export interface InfraStore { + /** Unique store identifier */ + id: string; + /** Human-readable store name */ + name?: string | null; + /** Opaque store partition key for the global tier */ + scopeId?: string | null; + /** Current root object hash of this store */ + hash?: string | null; + /** Timestamp of store creation */ + createdAt?: string | null; +} +/** Content-addressed Merkle tree objects keyed by UUID v5 hash of data + children */ +export interface InfraObject { + /** Content-addressed UUID v5 — deterministic hash of (data, kids, ktree) */ + id: string; + /** Opaque store partition key for the global tier */ + scopeId?: string | null; + /** Ordered array of child object IDs */ + kids?: string[] | null; + /** Ordered array of child path names (parallel to kids) */ + ktree?: string[] | null; + /** Payload data for this object node */ + data?: Record | null; + /** Timestamp of object creation */ + createdAt?: string | null; +} +/** Commit history — each commit snapshots a tree root for a store */ +export interface InfraCommit { + /** Unique commit identifier */ + id: string; + /** Optional commit message */ + message?: string | null; + /** Opaque store partition key for the global tier */ + scopeId?: string | null; + /** Store this commit belongs to */ + storeId?: string | null; + /** Parent commit IDs (supports merge commits) */ + parentIds?: string[] | null; + /** User who authored the changes */ + authorId?: string | null; + /** User who committed (may differ from author) */ + committerId?: string | null; + /** Root object ID of the tree snapshot at this commit */ + treeId?: string | null; + /** Commit timestamp */ + date?: string | null; +} +/** Database provisioning preset catalog — merkle-versioned head over the infra store */ +export interface DbPreset { + /** Unique preset identifier */ + id: string; + /** Infra Merkle store holding this preset's history (stamped by the versioned trigger) */ + storeId?: string | null; + /** Preset slug (unique per scope); the preset's path in the infra tree is [db_preset, slug] */ + slug?: string | null; + /** Preset definition (modules + options) — the readily-cached head; history lives in the infra store */ + definition?: Record | null; + /** Infra store commit for the current definition (stamped by the versioned trigger on every write) */ + commitId?: string | null; + /** 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 | null; + /** Human-readable preset name */ + label?: string | null; + /** Human-readable description of the preset */ + description?: string | null; + /** Whether this preset is selectable for new databases */ + active?: boolean | null; + /** Timestamp of preset creation */ + createdAt?: string | null; + /** Timestamp of last modification */ + updatedAt?: string | null; +} +/** Logical namespace containers for grouping secrets, config, functions, and other resources */ +export interface PlatformNamespace { + id: string; + createdAt?: string | null; + updatedAt?: string | null; + /** Human-readable namespace name (e.g. default, production, oauth) */ + name?: string | null; + /** Globally unique computed namespace identifier via inflection.underscore */ + namespaceName?: string | null; + /** Optional human-readable description of this namespace */ + description?: string | null; + /** Whether this namespace is active (soft-disable for filtering) */ + isActive?: boolean | null; + /** Namespace provisioning lifecycle status: pending, provisioning, active, failed */ + status?: string | null; + /** Most recent provisioning or reconcile error message */ + lastError?: string | null; + /** Key/value pairs for selecting and filtering namespaces */ + labels?: Record | null; + /** Freeform metadata for tooling and operational notes */ + annotations?: Record | null; + /** true = provisioned by the platform via jobs, false = unmanaged/platform-native (bootstrapped externally) */ + isManaged?: boolean | null; +} +/** Logical namespace containers for grouping secrets, config, functions, and other resources */ +export interface Namespace { + id: string; + createdAt?: string | null; + updatedAt?: string | null; + /** Human-readable namespace name (e.g. default, production, oauth) */ + name?: string | null; + /** Globally unique computed namespace identifier via inflection.underscore */ + namespaceName?: string | null; + /** Optional human-readable description of this namespace */ + description?: string | null; + /** Whether this namespace is active (soft-disable for filtering) */ + isActive?: boolean | null; + /** Namespace provisioning lifecycle status: pending, provisioning, active, failed */ + status?: string | null; + /** Most recent provisioning or reconcile error message */ + lastError?: string | null; + /** Key/value pairs for selecting and filtering namespaces */ + labels?: Record | null; + /** Freeform metadata for tooling and operational notes */ + annotations?: Record | null; + /** Database that owns this resource (database-scoped isolation) */ + databaseId?: string | null; + /** true = provisioned by the platform via jobs, false = unmanaged/platform-native (bootstrapped externally) */ + isManaged?: boolean | null; +} +/** Namespace lifecycle events — audit log of creation, activation, deactivation, label changes */ +export interface PlatformNamespaceEvent { + /** Event timestamp (partition key) */ + createdAt?: string | null; + /** Unique event identifier */ + id: string; + /** Namespace this event belongs to */ + namespaceId?: string | null; + /** Event type: created, activated, deactivated, labels_updated, annotations_updated, renamed */ + eventType?: string | null; + /** User who triggered this event (NULL for system/automated) */ + actorId?: string | null; + /** Human-readable description of the event */ + message?: string | null; + /** Structured context (old/new values, labels diff, etc.) */ + metadata?: Record | null; + /** CPU usage in millicores at time of event */ + cpuMillicores?: number | null; + /** Memory usage in bytes at time of event */ + memoryBytes?: string | null; + /** Storage usage in bytes at time of event */ + storageBytes?: string | null; + /** Network ingress in bytes during event window */ + networkIngressBytes?: string | null; + /** Network egress in bytes during event window */ + networkEgressBytes?: string | null; + /** Number of active pods in the namespace at time of event */ + podCount?: number | null; + /** Additional resource metrics (gpu, replicas, quotas, etc.) */ + metrics?: Record | null; +} +/** Namespace lifecycle events — audit log of creation, activation, deactivation, label changes */ +export interface NamespaceEvent { + /** Event timestamp (partition key) */ + createdAt?: string | null; + /** Unique event identifier */ + id: string; + /** Namespace this event belongs to */ + namespaceId?: string | null; + /** Event type: created, activated, deactivated, labels_updated, annotations_updated, renamed */ + eventType?: string | null; + /** User who triggered this event (NULL for system/automated) */ + actorId?: string | null; + /** Human-readable description of the event */ + message?: string | null; + /** Structured context (old/new values, labels diff, etc.) */ + metadata?: Record | null; + /** CPU usage in millicores at time of event */ + cpuMillicores?: number | null; + /** Memory usage in bytes at time of event */ + memoryBytes?: string | null; + /** Storage usage in bytes at time of event */ + storageBytes?: string | null; + /** Network ingress in bytes during event window */ + networkIngressBytes?: string | null; + /** Network egress in bytes during event window */ + networkEgressBytes?: string | null; + /** Number of active pods in the namespace at time of event */ + podCount?: number | null; + /** Additional resource metrics (gpu, replicas, quotas, etc.) */ + metrics?: Record | null; + /** Database that owns this resource (database-scoped isolation) */ + databaseId?: 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 InfraGetAllRecordRelations {} +export interface InfraRefRelations {} +export interface InfraStoreRelations {} +export interface InfraObjectRelations {} +export interface InfraCommitRelations {} +export interface DbPresetRelations {} +export interface PlatformNamespaceRelations {} +export interface NamespaceRelations {} +export interface PlatformNamespaceEventRelations {} +export interface NamespaceEventRelations {} +// ============ Entity Types With Relations ============ +export type InfraGetAllRecordWithRelations = InfraGetAllRecord & InfraGetAllRecordRelations; +export type InfraRefWithRelations = InfraRef & InfraRefRelations; +export type InfraStoreWithRelations = InfraStore & InfraStoreRelations; +export type InfraObjectWithRelations = InfraObject & InfraObjectRelations; +export type InfraCommitWithRelations = InfraCommit & InfraCommitRelations; +export type DbPresetWithRelations = DbPreset & DbPresetRelations; +export type PlatformNamespaceWithRelations = PlatformNamespace & PlatformNamespaceRelations; +export type NamespaceWithRelations = Namespace & NamespaceRelations; +export type PlatformNamespaceEventWithRelations = PlatformNamespaceEvent & + PlatformNamespaceEventRelations; +export type NamespaceEventWithRelations = NamespaceEvent & NamespaceEventRelations; +// ============ Entity Select Types ============ +export type InfraGetAllRecordSelect = { + path?: boolean; + data?: boolean; +}; +export type InfraRefSelect = { + id?: boolean; + name?: boolean; + scopeId?: boolean; + storeId?: boolean; + commitId?: boolean; +}; +export type InfraStoreSelect = { + id?: boolean; + name?: boolean; + scopeId?: boolean; + hash?: boolean; + createdAt?: boolean; +}; +export type InfraObjectSelect = { + id?: boolean; + scopeId?: boolean; + kids?: boolean; + ktree?: boolean; + data?: boolean; + createdAt?: boolean; +}; +export type InfraCommitSelect = { + id?: boolean; + message?: boolean; + scopeId?: boolean; + storeId?: boolean; + parentIds?: boolean; + authorId?: boolean; + committerId?: boolean; + treeId?: boolean; + date?: boolean; +}; +export type DbPresetSelect = { + id?: boolean; + storeId?: boolean; + slug?: boolean; + definition?: boolean; + commitId?: boolean; + modulesHash?: boolean; + label?: boolean; + description?: boolean; + active?: boolean; + createdAt?: boolean; + updatedAt?: boolean; +}; +export type PlatformNamespaceSelect = { + id?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + name?: boolean; + namespaceName?: boolean; + description?: boolean; + isActive?: boolean; + status?: boolean; + lastError?: boolean; + labels?: boolean; + annotations?: boolean; + isManaged?: boolean; +}; +export type NamespaceSelect = { + id?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + name?: boolean; + namespaceName?: boolean; + description?: boolean; + isActive?: boolean; + status?: boolean; + lastError?: boolean; + labels?: boolean; + annotations?: boolean; + databaseId?: boolean; + isManaged?: boolean; +}; +export type PlatformNamespaceEventSelect = { + createdAt?: boolean; + id?: boolean; + namespaceId?: boolean; + eventType?: boolean; + actorId?: boolean; + message?: boolean; + metadata?: boolean; + cpuMillicores?: boolean; + memoryBytes?: boolean; + storageBytes?: boolean; + networkIngressBytes?: boolean; + networkEgressBytes?: boolean; + podCount?: boolean; + metrics?: boolean; +}; +export type NamespaceEventSelect = { + createdAt?: boolean; + id?: boolean; + namespaceId?: boolean; + eventType?: boolean; + actorId?: boolean; + message?: boolean; + metadata?: boolean; + cpuMillicores?: boolean; + memoryBytes?: boolean; + storageBytes?: boolean; + networkIngressBytes?: boolean; + networkEgressBytes?: boolean; + podCount?: boolean; + metrics?: boolean; + databaseId?: boolean; +}; +// ============ Table Filter Types ============ +export interface InfraGetAllRecordFilter { + path?: StringListFilter; + data?: JSONFilter; + and?: InfraGetAllRecordFilter[]; + or?: InfraGetAllRecordFilter[]; + not?: InfraGetAllRecordFilter; +} +export interface InfraRefFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `scopeId` field. */ + scopeId?: UUIDFilter; + /** Filter by the object’s `storeId` field. */ + storeId?: UUIDFilter; + /** Filter by the object’s `commitId` field. */ + commitId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: InfraRefFilter[]; + /** Checks for any expressions in this list. */ + or?: InfraRefFilter[]; + /** Negates the expression. */ + not?: InfraRefFilter; +} +export interface InfraStoreFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `scopeId` field. */ + scopeId?: UUIDFilter; + /** Filter by the object’s `hash` field. */ + hash?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Checks for all expressions in this list. */ + and?: InfraStoreFilter[]; + /** Checks for any expressions in this list. */ + or?: InfraStoreFilter[]; + /** Negates the expression. */ + not?: InfraStoreFilter; +} +export interface InfraObjectFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `scopeId` field. */ + scopeId?: UUIDFilter; + /** Filter by the object’s `kids` field. */ + kids?: UUIDListFilter; + /** Filter by the object’s `ktree` field. */ + ktree?: StringListFilter; + /** Filter by the object’s `data` field. */ + data?: JSONFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Checks for all expressions in this list. */ + and?: InfraObjectFilter[]; + /** Checks for any expressions in this list. */ + or?: InfraObjectFilter[]; + /** Negates the expression. */ + not?: InfraObjectFilter; +} +export interface InfraCommitFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `message` field. */ + message?: StringFilter; + /** Filter by the object’s `scopeId` field. */ + scopeId?: UUIDFilter; + /** Filter by the object’s `storeId` field. */ + storeId?: UUIDFilter; + /** Filter by the object’s `parentIds` field. */ + parentIds?: UUIDListFilter; + /** Filter by the object’s `authorId` field. */ + authorId?: UUIDFilter; + /** Filter by the object’s `committerId` field. */ + committerId?: UUIDFilter; + /** Filter by the object’s `treeId` field. */ + treeId?: UUIDFilter; + /** Filter by the object’s `date` field. */ + date?: DatetimeFilter; + /** Checks for all expressions in this list. */ + and?: InfraCommitFilter[]; + /** Checks for any expressions in this list. */ + or?: InfraCommitFilter[]; + /** Negates the expression. */ + not?: InfraCommitFilter; +} +export interface DbPresetFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `storeId` field. */ + storeId?: UUIDFilter; + /** Filter by the object’s `slug` field. */ + slug?: StringFilter; + /** Filter by the object’s `definition` field. */ + definition?: JSONFilter; + /** Filter by the object’s `commitId` field. */ + commitId?: UUIDFilter; + /** Filter by the object’s `modulesHash` field. */ + modulesHash?: UUIDFilter; + /** Filter by the object’s `label` field. */ + label?: StringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `active` field. */ + active?: BooleanFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Checks for all expressions in this list. */ + and?: DbPresetFilter[]; + /** Checks for any expressions in this list. */ + or?: DbPresetFilter[]; + /** Negates the expression. */ + not?: DbPresetFilter; +} +export interface PlatformNamespaceFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `namespaceName` field. */ + namespaceName?: StringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `isActive` field. */ + isActive?: BooleanFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `lastError` field. */ + lastError?: StringFilter; + /** Filter by the object’s `labels` field. */ + labels?: JSONFilter; + /** Filter by the object’s `annotations` field. */ + annotations?: JSONFilter; + /** Filter by the object’s `isManaged` field. */ + isManaged?: BooleanFilter; + /** Checks for all expressions in this list. */ + and?: PlatformNamespaceFilter[]; + /** Checks for any expressions in this list. */ + or?: PlatformNamespaceFilter[]; + /** Negates the expression. */ + not?: PlatformNamespaceFilter; +} +export interface NamespaceFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `namespaceName` field. */ + namespaceName?: StringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `isActive` field. */ + isActive?: BooleanFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `lastError` field. */ + lastError?: StringFilter; + /** Filter by the object’s `labels` field. */ + labels?: JSONFilter; + /** Filter by the object’s `annotations` field. */ + annotations?: JSONFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `isManaged` field. */ + isManaged?: BooleanFilter; + /** Checks for all expressions in this list. */ + and?: NamespaceFilter[]; + /** Checks for any expressions in this list. */ + or?: NamespaceFilter[]; + /** Negates the expression. */ + not?: NamespaceFilter; +} +export interface PlatformNamespaceEventFilter { + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; + /** Filter by the object’s `eventType` field. */ + eventType?: StringFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Filter by the object’s `message` field. */ + message?: StringFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Filter by the object’s `cpuMillicores` field. */ + cpuMillicores?: IntFilter; + /** Filter by the object’s `memoryBytes` field. */ + memoryBytes?: BigIntFilter; + /** Filter by the object’s `storageBytes` field. */ + storageBytes?: BigIntFilter; + /** Filter by the object’s `networkIngressBytes` field. */ + networkIngressBytes?: BigIntFilter; + /** Filter by the object’s `networkEgressBytes` field. */ + networkEgressBytes?: BigIntFilter; + /** Filter by the object’s `podCount` field. */ + podCount?: IntFilter; + /** Filter by the object’s `metrics` field. */ + metrics?: JSONFilter; + /** Checks for all expressions in this list. */ + and?: PlatformNamespaceEventFilter[]; + /** Checks for any expressions in this list. */ + or?: PlatformNamespaceEventFilter[]; + /** Negates the expression. */ + not?: PlatformNamespaceEventFilter; +} +export interface NamespaceEventFilter { + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; + /** Filter by the object’s `eventType` field. */ + eventType?: StringFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Filter by the object’s `message` field. */ + message?: StringFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Filter by the object’s `cpuMillicores` field. */ + cpuMillicores?: IntFilter; + /** Filter by the object’s `memoryBytes` field. */ + memoryBytes?: BigIntFilter; + /** Filter by the object’s `storageBytes` field. */ + storageBytes?: BigIntFilter; + /** Filter by the object’s `networkIngressBytes` field. */ + networkIngressBytes?: BigIntFilter; + /** Filter by the object’s `networkEgressBytes` field. */ + networkEgressBytes?: BigIntFilter; + /** Filter by the object’s `podCount` field. */ + podCount?: IntFilter; + /** Filter by the object’s `metrics` field. */ + metrics?: JSONFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: NamespaceEventFilter[]; + /** Checks for any expressions in this list. */ + or?: NamespaceEventFilter[]; + /** Negates the expression. */ + not?: NamespaceEventFilter; +} +// ============ OrderBy Types ============ +export type InfraGetAllRecordsOrderBy = + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NATURAL' + | 'PATH_ASC' + | 'PATH_DESC' + | 'DATA_ASC' + | 'DATA_DESC'; +export type InfraRefOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'SCOPE_ID_ASC' + | 'SCOPE_ID_DESC' + | 'STORE_ID_ASC' + | 'STORE_ID_DESC' + | 'COMMIT_ID_ASC' + | 'COMMIT_ID_DESC'; +export type InfraStoreOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'SCOPE_ID_ASC' + | 'SCOPE_ID_DESC' + | 'HASH_ASC' + | 'HASH_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC'; +export type InfraObjectOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'SCOPE_ID_ASC' + | 'SCOPE_ID_DESC' + | 'KIDS_ASC' + | 'KIDS_DESC' + | 'KTREE_ASC' + | 'KTREE_DESC' + | 'DATA_ASC' + | 'DATA_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC'; +export type InfraCommitOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'MESSAGE_ASC' + | 'MESSAGE_DESC' + | 'SCOPE_ID_ASC' + | 'SCOPE_ID_DESC' + | 'STORE_ID_ASC' + | 'STORE_ID_DESC' + | 'PARENT_IDS_ASC' + | 'PARENT_IDS_DESC' + | 'AUTHOR_ID_ASC' + | 'AUTHOR_ID_DESC' + | 'COMMITTER_ID_ASC' + | 'COMMITTER_ID_DESC' + | 'TREE_ID_ASC' + | 'TREE_ID_DESC' + | 'DATE_ASC' + | 'DATE_DESC'; +export type DbPresetOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'STORE_ID_ASC' + | 'STORE_ID_DESC' + | 'SLUG_ASC' + | 'SLUG_DESC' + | 'DEFINITION_ASC' + | 'DEFINITION_DESC' + | 'COMMIT_ID_ASC' + | 'COMMIT_ID_DESC' + | 'MODULES_HASH_ASC' + | 'MODULES_HASH_DESC' + | 'LABEL_ASC' + | 'LABEL_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'ACTIVE_ASC' + | 'ACTIVE_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +export type PlatformNamespaceOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'NAMESPACE_NAME_ASC' + | 'NAMESPACE_NAME_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'IS_ACTIVE_ASC' + | 'IS_ACTIVE_DESC' + | 'STATUS_ASC' + | 'STATUS_DESC' + | 'LAST_ERROR_ASC' + | 'LAST_ERROR_DESC' + | 'LABELS_ASC' + | 'LABELS_DESC' + | 'ANNOTATIONS_ASC' + | 'ANNOTATIONS_DESC' + | 'IS_MANAGED_ASC' + | 'IS_MANAGED_DESC'; +export type NamespaceOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'NAMESPACE_NAME_ASC' + | 'NAMESPACE_NAME_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'IS_ACTIVE_ASC' + | 'IS_ACTIVE_DESC' + | 'STATUS_ASC' + | 'STATUS_DESC' + | 'LAST_ERROR_ASC' + | 'LAST_ERROR_DESC' + | 'LABELS_ASC' + | 'LABELS_DESC' + | 'ANNOTATIONS_ASC' + | 'ANNOTATIONS_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'IS_MANAGED_ASC' + | 'IS_MANAGED_DESC'; +export type PlatformNamespaceEventOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAMESPACE_ID_ASC' + | 'NAMESPACE_ID_DESC' + | 'EVENT_TYPE_ASC' + | 'EVENT_TYPE_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'MESSAGE_ASC' + | 'MESSAGE_DESC' + | 'METADATA_ASC' + | 'METADATA_DESC' + | 'CPU_MILLICORES_ASC' + | 'CPU_MILLICORES_DESC' + | 'MEMORY_BYTES_ASC' + | 'MEMORY_BYTES_DESC' + | 'STORAGE_BYTES_ASC' + | 'STORAGE_BYTES_DESC' + | 'NETWORK_INGRESS_BYTES_ASC' + | 'NETWORK_INGRESS_BYTES_DESC' + | 'NETWORK_EGRESS_BYTES_ASC' + | 'NETWORK_EGRESS_BYTES_DESC' + | 'POD_COUNT_ASC' + | 'POD_COUNT_DESC' + | 'METRICS_ASC' + | 'METRICS_DESC'; +export type NamespaceEventOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAMESPACE_ID_ASC' + | 'NAMESPACE_ID_DESC' + | 'EVENT_TYPE_ASC' + | 'EVENT_TYPE_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'MESSAGE_ASC' + | 'MESSAGE_DESC' + | 'METADATA_ASC' + | 'METADATA_DESC' + | 'CPU_MILLICORES_ASC' + | 'CPU_MILLICORES_DESC' + | 'MEMORY_BYTES_ASC' + | 'MEMORY_BYTES_DESC' + | 'STORAGE_BYTES_ASC' + | 'STORAGE_BYTES_DESC' + | 'NETWORK_INGRESS_BYTES_ASC' + | 'NETWORK_INGRESS_BYTES_DESC' + | 'NETWORK_EGRESS_BYTES_ASC' + | 'NETWORK_EGRESS_BYTES_DESC' + | 'POD_COUNT_ASC' + | 'POD_COUNT_DESC' + | 'METRICS_ASC' + | 'METRICS_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC'; +// ============ CRUD Input Types ============ +export interface CreateInfraGetAllRecordInput { + clientMutationId?: string; + infraGetAllRecord: { + path?: string[]; + data?: Record; + }; +} +export interface InfraGetAllRecordPatch { + path?: string[] | null; + data?: Record | null; +} +export interface UpdateInfraGetAllRecordInput { + clientMutationId?: string; + id: string; + infraGetAllRecordPatch: InfraGetAllRecordPatch; +} +export interface DeleteInfraGetAllRecordInput { + clientMutationId?: string; + id: string; +} +export interface CreateInfraRefInput { + clientMutationId?: string; + infraRef: { + name: string; + scopeId: string; + storeId: string; + commitId?: string; + }; +} +export interface InfraRefPatch { + name?: string | null; + scopeId?: string | null; + storeId?: string | null; + commitId?: string | null; +} +export interface UpdateInfraRefInput { + clientMutationId?: string; + id: string; + infraRefPatch: InfraRefPatch; +} +export interface DeleteInfraRefInput { + clientMutationId?: string; + id: string; +} +export interface CreateInfraStoreInput { + clientMutationId?: string; + infraStore: { + name: string; + scopeId: string; + hash?: string; + }; +} +export interface InfraStorePatch { + name?: string | null; + scopeId?: string | null; + hash?: string | null; +} +export interface UpdateInfraStoreInput { + clientMutationId?: string; + id: string; + infraStorePatch: InfraStorePatch; +} +export interface DeleteInfraStoreInput { + clientMutationId?: string; + id: string; +} +export interface CreateInfraObjectInput { + clientMutationId?: string; + infraObject: { + scopeId: string; + kids?: string[]; + ktree?: string[]; + data?: Record; + }; +} +export interface InfraObjectPatch { + scopeId?: string | null; + kids?: string[] | null; + ktree?: string[] | null; + data?: Record | null; +} +export interface UpdateInfraObjectInput { + clientMutationId?: string; + id: string; + infraObjectPatch: InfraObjectPatch; +} +export interface DeleteInfraObjectInput { + clientMutationId?: string; + id: string; +} +export interface CreateInfraCommitInput { + clientMutationId?: string; + infraCommit: { + message?: string; + scopeId: string; + storeId: string; + parentIds?: string[]; + authorId?: string; + committerId?: string; + treeId?: string; + date?: string; + }; +} +export interface InfraCommitPatch { + message?: string | null; + scopeId?: string | null; + storeId?: string | null; + parentIds?: string[] | null; + authorId?: string | null; + committerId?: string | null; + treeId?: string | null; + date?: string | null; +} +export interface UpdateInfraCommitInput { + clientMutationId?: string; + id: string; + infraCommitPatch: InfraCommitPatch; +} +export interface DeleteInfraCommitInput { + clientMutationId?: string; + id: string; +} +export interface CreateDbPresetInput { + clientMutationId?: string; + dbPreset: { + storeId?: string; + slug: string; + definition: Record; + commitId?: string; + modulesHash?: string; + label?: string; + description?: string; + active?: boolean; + }; +} +export interface DbPresetPatch { + storeId?: string | null; + slug?: string | null; + definition?: Record | null; + commitId?: string | null; + modulesHash?: string | null; + label?: string | null; + description?: string | null; + active?: boolean | null; +} +export interface UpdateDbPresetInput { + clientMutationId?: string; + id: string; + dbPresetPatch: DbPresetPatch; +} +export interface DeleteDbPresetInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformNamespaceInput { + clientMutationId?: string; + platformNamespace: { + name: string; + namespaceName: string; + description?: string; + isActive?: boolean; + status?: string; + lastError?: string; + labels?: Record; + annotations?: Record; + isManaged?: boolean; + }; +} +export interface PlatformNamespacePatch { + name?: string | null; + namespaceName?: string | null; + description?: string | null; + isActive?: boolean | null; + status?: string | null; + lastError?: string | null; + labels?: Record | null; + annotations?: Record | null; + isManaged?: boolean | null; +} +export interface UpdatePlatformNamespaceInput { + clientMutationId?: string; + id: string; + platformNamespacePatch: PlatformNamespacePatch; +} +export interface DeletePlatformNamespaceInput { + clientMutationId?: string; + id: string; +} +export interface CreateNamespaceInput { + clientMutationId?: string; + namespace: { + name: string; + namespaceName: string; + description?: string; + isActive?: boolean; + status?: string; + lastError?: string; + labels?: Record; + annotations?: Record; + databaseId: string; + isManaged?: boolean; + }; +} +export interface NamespacePatch { + name?: string | null; + namespaceName?: string | null; + description?: string | null; + isActive?: boolean | null; + status?: string | null; + lastError?: string | null; + labels?: Record | null; + annotations?: Record | null; + databaseId?: string | null; + isManaged?: boolean | null; +} +export interface UpdateNamespaceInput { + clientMutationId?: string; + id: string; + namespacePatch: NamespacePatch; +} +export interface DeleteNamespaceInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformNamespaceEventInput { + clientMutationId?: string; + platformNamespaceEvent: { + namespaceId: string; + eventType: string; + actorId?: string; + message?: string; + metadata?: Record; + cpuMillicores?: number; + memoryBytes?: string; + storageBytes?: string; + networkIngressBytes?: string; + networkEgressBytes?: string; + podCount?: number; + metrics?: Record; + }; +} +export interface PlatformNamespaceEventPatch { + namespaceId?: string | null; + eventType?: string | null; + actorId?: string | null; + message?: string | null; + metadata?: Record | null; + cpuMillicores?: number | null; + memoryBytes?: string | null; + storageBytes?: string | null; + networkIngressBytes?: string | null; + networkEgressBytes?: string | null; + podCount?: number | null; + metrics?: Record | null; +} +export interface UpdatePlatformNamespaceEventInput { + clientMutationId?: string; + id: string; + platformNamespaceEventPatch: PlatformNamespaceEventPatch; +} +export interface DeletePlatformNamespaceEventInput { + clientMutationId?: string; + id: string; +} +export interface CreateNamespaceEventInput { + clientMutationId?: string; + namespaceEvent: { + namespaceId: string; + eventType: string; + actorId?: string; + message?: string; + metadata?: Record; + cpuMillicores?: number; + memoryBytes?: string; + storageBytes?: string; + networkIngressBytes?: string; + networkEgressBytes?: string; + podCount?: number; + metrics?: Record; + databaseId: string; + }; +} +export interface NamespaceEventPatch { + namespaceId?: string | null; + eventType?: string | null; + actorId?: string | null; + message?: string | null; + metadata?: Record | null; + cpuMillicores?: number | null; + memoryBytes?: string | null; + storageBytes?: string | null; + networkIngressBytes?: string | null; + networkEgressBytes?: string | null; + podCount?: number | null; + metrics?: Record | null; + databaseId?: string | null; +} +export interface UpdateNamespaceEventInput { + clientMutationId?: string; + id: string; + namespaceEventPatch: NamespaceEventPatch; +} +export interface DeleteNamespaceEventInput { + clientMutationId?: string; + id: string; +} +// ============ Connection Fields Map ============ +export const connectionFieldsMap = {} as Record>; +// ============ Custom Input Types (from schema) ============ +export interface InfraInitEmptyRepoInput { + clientMutationId?: string; + sId?: string; + storeId?: string; +} +export interface InfraSetDataAtPathInput { + clientMutationId?: string; + sId?: string; + root?: string; + path?: string[]; + data?: Record; +} +export interface InfraInsertNodeAtPathInput { + clientMutationId?: string; + sId?: string; + root?: string; + path?: string[]; + data?: Record; + kids?: string[]; + ktree?: 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; +} +/** An input for mutations affecting `InfraRef` */ +export interface InfraRefInput { + /** 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; + /** Commit this ref points to */ + commitId?: string; +} +/** An input for mutations affecting `InfraStore` */ +export interface InfraStoreInput { + /** Unique store identifier */ + id?: string; + /** Human-readable store name */ + name: string; + /** Opaque store partition key for the global tier */ + scopeId: string; + /** Current root object hash of this store */ + hash?: string; + /** Timestamp of store creation */ + createdAt?: string; +} +/** An input for mutations affecting `InfraObject` */ +export interface InfraObjectInput { + /** Content-addressed UUID v5 — deterministic hash of (data, kids, ktree) */ + id: string; + /** Opaque store partition key for the global tier */ + scopeId: string; + /** Ordered array of child object IDs */ + kids?: string[]; + /** Ordered array of child path names (parallel to kids) */ + ktree?: string[]; + /** Payload data for this object node */ + data?: Record; + /** Timestamp of object creation */ + createdAt?: string; +} +/** An input for mutations affecting `InfraCommit` */ +export interface InfraCommitInput { + /** Unique commit identifier */ + id?: string; + /** Optional commit message */ + message?: string; + /** Opaque store partition key for the global tier */ + scopeId: string; + /** Store this commit belongs to */ + storeId: string; + /** Parent commit IDs (supports merge commits) */ + parentIds?: string[]; + /** User who authored the changes */ + authorId?: string; + /** User who committed (may differ from author) */ + committerId?: string; + /** Root object ID of the tree snapshot at this commit */ + treeId?: string; + /** Commit timestamp */ + date?: string; +} +/** An input for mutations affecting `DbPreset` */ +export interface DbPresetInput { + /** Unique preset identifier */ + id?: string; + /** Infra Merkle store holding this preset's history (stamped by the versioned trigger) */ + storeId?: string; + /** Preset slug (unique per scope); the preset's path in the infra tree is [db_preset, slug] */ + slug: string; + /** Preset definition (modules + options) — the readily-cached head; history lives in the infra store */ + definition: Record; + /** Infra store commit for the current definition (stamped by the versioned trigger on every write) */ + commitId?: 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; + /** Human-readable preset name */ + label?: string; + /** Human-readable description of the preset */ + description?: string; + /** Whether this preset is selectable for new databases */ + active?: boolean; + /** Timestamp of preset creation */ + createdAt?: string; + /** Timestamp of last modification */ + updatedAt?: string; +} +/** An input for mutations affecting `PlatformNamespace` */ +export interface PlatformNamespaceInput { + id?: string; + createdAt?: string; + updatedAt?: string; + /** Human-readable namespace name (e.g. default, production, oauth) */ + name: string; + /** Globally unique computed namespace identifier via inflection.underscore */ + namespaceName: string; + /** Optional human-readable description of this namespace */ + description?: string; + /** Whether this namespace is active (soft-disable for filtering) */ + isActive?: boolean; + /** Namespace provisioning lifecycle status: pending, provisioning, active, failed */ + status?: string; + /** Most recent provisioning or reconcile error message */ + lastError?: string; + /** Key/value pairs for selecting and filtering namespaces */ + labels?: Record; + /** Freeform metadata for tooling and operational notes */ + annotations?: Record; + /** true = provisioned by the platform via jobs, false = unmanaged/platform-native (bootstrapped externally) */ + isManaged?: boolean; +} +/** An input for mutations affecting `Namespace` */ +export interface NamespaceInput { + id?: string; + createdAt?: string; + updatedAt?: string; + /** Human-readable namespace name (e.g. default, production, oauth) */ + name: string; + /** Globally unique computed namespace identifier via inflection.underscore */ + namespaceName: string; + /** Optional human-readable description of this namespace */ + description?: string; + /** Whether this namespace is active (soft-disable for filtering) */ + isActive?: boolean; + /** Namespace provisioning lifecycle status: pending, provisioning, active, failed */ + status?: string; + /** Most recent provisioning or reconcile error message */ + lastError?: string; + /** Key/value pairs for selecting and filtering namespaces */ + labels?: Record; + /** Freeform metadata for tooling and operational notes */ + annotations?: Record; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + /** true = provisioned by the platform via jobs, false = unmanaged/platform-native (bootstrapped externally) */ + isManaged?: boolean; +} +/** An input for mutations affecting `PlatformNamespaceEvent` */ +export interface PlatformNamespaceEventInput { + /** Event timestamp (partition key) */ + createdAt?: string; + /** Unique event identifier */ + id?: string; + /** Namespace this event belongs to */ + namespaceId: string; + /** Event type: created, activated, deactivated, labels_updated, annotations_updated, renamed */ + eventType: string; + /** User who triggered this event (NULL for system/automated) */ + actorId?: string; + /** Human-readable description of the event */ + message?: string; + /** Structured context (old/new values, labels diff, etc.) */ + metadata?: Record; + /** CPU usage in millicores at time of event */ + cpuMillicores?: number; + /** Memory usage in bytes at time of event */ + memoryBytes?: string; + /** Storage usage in bytes at time of event */ + storageBytes?: string; + /** Network ingress in bytes during event window */ + networkIngressBytes?: string; + /** Network egress in bytes during event window */ + networkEgressBytes?: string; + /** Number of active pods in the namespace at time of event */ + podCount?: number; + /** Additional resource metrics (gpu, replicas, quotas, etc.) */ + metrics?: Record; +} +/** An input for mutations affecting `NamespaceEvent` */ +export interface NamespaceEventInput { + /** Event timestamp (partition key) */ + createdAt?: string; + /** Unique event identifier */ + id?: string; + /** Namespace this event belongs to */ + namespaceId: string; + /** Event type: created, activated, deactivated, labels_updated, annotations_updated, renamed */ + eventType: string; + /** User who triggered this event (NULL for system/automated) */ + actorId?: string; + /** Human-readable description of the event */ + message?: string; + /** Structured context (old/new values, labels diff, etc.) */ + metadata?: Record; + /** CPU usage in millicores at time of event */ + cpuMillicores?: number; + /** Memory usage in bytes at time of event */ + memoryBytes?: string; + /** Storage usage in bytes at time of event */ + storageBytes?: string; + /** Network ingress in bytes during event window */ + networkIngressBytes?: string; + /** Network egress in bytes during event window */ + networkEgressBytes?: string; + /** Number of active pods in the namespace at time of event */ + podCount?: number; + /** Additional resource metrics (gpu, replicas, quotas, etc.) */ + metrics?: Record; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; +} +// ============ Payload/Return Types (for custom operations) ============ +export interface InfraInitEmptyRepoPayload { + clientMutationId?: string | null; +} +export type InfraInitEmptyRepoPayloadSelect = { + clientMutationId?: boolean; +}; +export interface InfraSetDataAtPathPayload { + clientMutationId?: string | null; + result?: string | null; +} +export type InfraSetDataAtPathPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface InfraInsertNodeAtPathPayload { + clientMutationId?: string | null; + result?: string | null; +} +export type InfraInsertNodeAtPathPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface ProvisionBucketPayload { + /** Whether provisioning succeeded */ + success: boolean; + /** The S3 bucket name that was provisioned */ + bucketName: string; + /** The access type applied */ + accessType: string; + /** The storage provider used */ + provider: string; + /** The S3 endpoint (null for AWS S3 default) */ + endpoint?: string | null; + /** Error message if provisioning failed */ + error?: string | null; +} +export type ProvisionBucketPayloadSelect = { + success?: boolean; + bucketName?: boolean; + accessType?: boolean; + provider?: boolean; + endpoint?: boolean; + error?: boolean; +}; +export interface CreateInfraRefPayload { + clientMutationId?: string | null; + /** The `InfraRef` that was created by this mutation. */ + infraRef?: InfraRef | null; + infraRefEdge?: InfraRefEdge | null; +} +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; +} +export type DeleteInfraRefPayloadSelect = { + clientMutationId?: boolean; + infraRef?: { + select: InfraRefSelect; + }; + infraRefEdge?: { + select: InfraRefEdgeSelect; + }; +}; +export interface CreateInfraStorePayload { + clientMutationId?: string | null; + /** The `InfraStore` that was created by this mutation. */ + infraStore?: InfraStore | null; + infraStoreEdge?: InfraStoreEdge | null; +} +export type CreateInfraStorePayloadSelect = { + clientMutationId?: boolean; + infraStore?: { + select: InfraStoreSelect; + }; + infraStoreEdge?: { + select: InfraStoreEdgeSelect; + }; +}; +export interface UpdateInfraStorePayload { + clientMutationId?: string | null; + /** The `InfraStore` that was updated by this mutation. */ + infraStore?: InfraStore | null; + infraStoreEdge?: InfraStoreEdge | null; +} +export type UpdateInfraStorePayloadSelect = { + clientMutationId?: boolean; + infraStore?: { + select: InfraStoreSelect; + }; + infraStoreEdge?: { + select: InfraStoreEdgeSelect; + }; +}; +export interface DeleteInfraStorePayload { + clientMutationId?: string | null; + /** The `InfraStore` that was deleted by this mutation. */ + infraStore?: InfraStore | null; + infraStoreEdge?: InfraStoreEdge | null; +} +export type DeleteInfraStorePayloadSelect = { + clientMutationId?: boolean; + infraStore?: { + select: InfraStoreSelect; + }; + infraStoreEdge?: { + select: InfraStoreEdgeSelect; + }; +}; +export interface CreateInfraObjectPayload { + clientMutationId?: string | null; + /** The `InfraObject` that was created by this mutation. */ + infraObject?: InfraObject | null; + infraObjectEdge?: InfraObjectEdge | null; +} +export type CreateInfraObjectPayloadSelect = { + clientMutationId?: boolean; + infraObject?: { + select: InfraObjectSelect; + }; + infraObjectEdge?: { + select: InfraObjectEdgeSelect; + }; +}; +export interface UpdateInfraObjectPayload { + clientMutationId?: string | null; + /** The `InfraObject` that was updated by this mutation. */ + infraObject?: InfraObject | null; + infraObjectEdge?: InfraObjectEdge | null; +} +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; +} +export type DeleteInfraObjectPayloadSelect = { + clientMutationId?: boolean; + infraObject?: { + select: InfraObjectSelect; + }; + infraObjectEdge?: { + select: InfraObjectEdgeSelect; + }; +}; +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 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 CreatePlatformNamespacePayload { + clientMutationId?: string | null; + /** The `PlatformNamespace` that was created by this mutation. */ + platformNamespace?: PlatformNamespace | null; + platformNamespaceEdge?: PlatformNamespaceEdge | null; +} +export type CreatePlatformNamespacePayloadSelect = { + clientMutationId?: boolean; + platformNamespace?: { + select: PlatformNamespaceSelect; + }; + platformNamespaceEdge?: { + select: PlatformNamespaceEdgeSelect; + }; +}; +export interface UpdatePlatformNamespacePayload { + clientMutationId?: string | null; + /** The `PlatformNamespace` that was updated by this mutation. */ + platformNamespace?: PlatformNamespace | null; + platformNamespaceEdge?: PlatformNamespaceEdge | null; +} +export type UpdatePlatformNamespacePayloadSelect = { + clientMutationId?: boolean; + platformNamespace?: { + select: PlatformNamespaceSelect; + }; + platformNamespaceEdge?: { + select: PlatformNamespaceEdgeSelect; + }; +}; +export interface DeletePlatformNamespacePayload { + clientMutationId?: string | null; + /** The `PlatformNamespace` that was deleted by this mutation. */ + platformNamespace?: PlatformNamespace | null; + platformNamespaceEdge?: PlatformNamespaceEdge | null; +} +export type DeletePlatformNamespacePayloadSelect = { + clientMutationId?: boolean; + platformNamespace?: { + select: PlatformNamespaceSelect; + }; + platformNamespaceEdge?: { + select: PlatformNamespaceEdgeSelect; + }; +}; +export interface CreateNamespacePayload { + clientMutationId?: string | null; + /** The `Namespace` that was created by this mutation. */ + namespace?: Namespace | null; + namespaceEdge?: NamespaceEdge | null; +} +export type CreateNamespacePayloadSelect = { + clientMutationId?: boolean; + namespace?: { + select: NamespaceSelect; + }; + namespaceEdge?: { + select: NamespaceEdgeSelect; + }; +}; +export interface UpdateNamespacePayload { + clientMutationId?: string | null; + /** The `Namespace` that was updated by this mutation. */ + namespace?: Namespace | null; + namespaceEdge?: NamespaceEdge | null; +} +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 CreatePlatformNamespaceEventPayload { + clientMutationId?: string | null; + /** The `PlatformNamespaceEvent` that was created by this mutation. */ + platformNamespaceEvent?: PlatformNamespaceEvent | null; + platformNamespaceEventEdge?: PlatformNamespaceEventEdge | null; +} +export type CreatePlatformNamespaceEventPayloadSelect = { + clientMutationId?: boolean; + platformNamespaceEvent?: { + select: PlatformNamespaceEventSelect; + }; + platformNamespaceEventEdge?: { + select: PlatformNamespaceEventEdgeSelect; + }; +}; +export interface UpdatePlatformNamespaceEventPayload { + clientMutationId?: string | null; + /** The `PlatformNamespaceEvent` that was updated by this mutation. */ + platformNamespaceEvent?: PlatformNamespaceEvent | null; + platformNamespaceEventEdge?: PlatformNamespaceEventEdge | null; +} +export type UpdatePlatformNamespaceEventPayloadSelect = { + clientMutationId?: boolean; + platformNamespaceEvent?: { + select: PlatformNamespaceEventSelect; + }; + platformNamespaceEventEdge?: { + select: PlatformNamespaceEventEdgeSelect; + }; +}; +export interface DeletePlatformNamespaceEventPayload { + clientMutationId?: string | null; + /** The `PlatformNamespaceEvent` that was deleted by this mutation. */ + platformNamespaceEvent?: PlatformNamespaceEvent | null; + platformNamespaceEventEdge?: PlatformNamespaceEventEdge | null; +} +export type DeletePlatformNamespaceEventPayloadSelect = { + clientMutationId?: boolean; + platformNamespaceEvent?: { + select: PlatformNamespaceEventSelect; + }; + platformNamespaceEventEdge?: { + select: PlatformNamespaceEventEdgeSelect; + }; +}; +export interface CreateNamespaceEventPayload { + clientMutationId?: string | null; + /** The `NamespaceEvent` that was created by this mutation. */ + namespaceEvent?: NamespaceEvent | null; + namespaceEventEdge?: NamespaceEventEdge | null; +} +export type CreateNamespaceEventPayloadSelect = { + clientMutationId?: boolean; + namespaceEvent?: { + select: NamespaceEventSelect; + }; + namespaceEventEdge?: { + select: NamespaceEventEdgeSelect; + }; +}; +export interface UpdateNamespaceEventPayload { + clientMutationId?: string | null; + /** The `NamespaceEvent` that was updated by this mutation. */ + namespaceEvent?: NamespaceEvent | null; + namespaceEventEdge?: NamespaceEventEdge | null; +} +export type UpdateNamespaceEventPayloadSelect = { + clientMutationId?: boolean; + namespaceEvent?: { + select: NamespaceEventSelect; + }; + namespaceEventEdge?: { + select: NamespaceEventEdgeSelect; + }; +}; +export interface DeleteNamespaceEventPayload { + clientMutationId?: string | null; + /** The `NamespaceEvent` that was deleted by this mutation. */ + namespaceEvent?: NamespaceEvent | null; + namespaceEventEdge?: NamespaceEventEdge | null; +} +export type DeleteNamespaceEventPayloadSelect = { + clientMutationId?: boolean; + namespaceEvent?: { + select: NamespaceEventSelect; + }; + namespaceEventEdge?: { + select: NamespaceEventEdgeSelect; + }; +}; +/** A `InfraRef` edge in the connection. */ +export interface InfraRefEdge { + cursor?: string | null; + /** The `InfraRef` at the end of the edge. */ + node?: InfraRef | null; +} +export type InfraRefEdgeSelect = { + cursor?: boolean; + node?: { + select: InfraRefSelect; + }; +}; +/** A `InfraStore` edge in the connection. */ +export interface InfraStoreEdge { + cursor?: string | null; + /** The `InfraStore` at the end of the edge. */ + node?: InfraStore | null; +} +export type InfraStoreEdgeSelect = { + cursor?: boolean; + node?: { + select: InfraStoreSelect; + }; +}; +/** A `InfraObject` edge in the connection. */ +export interface InfraObjectEdge { + cursor?: string | null; + /** The `InfraObject` at the end of the edge. */ + node?: InfraObject | null; +} +export type InfraObjectEdgeSelect = { + cursor?: boolean; + node?: { + select: InfraObjectSelect; + }; +}; +/** 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 `DbPreset` edge in the connection. */ +export interface DbPresetEdge { + cursor?: string | null; + /** The `DbPreset` at the end of the edge. */ + node?: DbPreset | null; +} +export type DbPresetEdgeSelect = { + cursor?: boolean; + node?: { + select: DbPresetSelect; + }; +}; +/** A `PlatformNamespace` edge in the connection. */ +export interface PlatformNamespaceEdge { + cursor?: string | null; + /** The `PlatformNamespace` at the end of the edge. */ + node?: PlatformNamespace | null; +} +export type PlatformNamespaceEdgeSelect = { + cursor?: boolean; + node?: { + select: PlatformNamespaceSelect; + }; +}; +/** A `Namespace` edge in the connection. */ +export interface NamespaceEdge { + cursor?: string | null; + /** The `Namespace` at the end of the edge. */ + node?: Namespace | null; +} +export type NamespaceEdgeSelect = { + cursor?: boolean; + node?: { + select: NamespaceSelect; + }; +}; +/** A `PlatformNamespaceEvent` edge in the connection. */ +export interface PlatformNamespaceEventEdge { + cursor?: string | null; + /** The `PlatformNamespaceEvent` at the end of the edge. */ + node?: PlatformNamespaceEvent | null; +} +export type PlatformNamespaceEventEdgeSelect = { + cursor?: boolean; + node?: { + select: PlatformNamespaceEventSelect; + }; +}; +/** A `NamespaceEvent` edge in the connection. */ +export interface NamespaceEventEdge { + cursor?: string | null; + /** The `NamespaceEvent` at the end of the edge. */ + node?: NamespaceEvent | null; +} +export type NamespaceEventEdgeSelect = { + cursor?: boolean; + node?: { + select: NamespaceEventSelect; + }; +}; diff --git a/sdk/constructive-react/src/infra/orm/models/dbPreset.ts b/sdk/constructive-react/src/infra/orm/models/dbPreset.ts new file mode 100644 index 0000000000..a3e824a674 --- /dev/null +++ b/sdk/constructive-react/src/infra/orm/models/dbPreset.ts @@ -0,0 +1,245 @@ +/** + * DbPreset model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + DbPreset, + DbPresetWithRelations, + DbPresetSelect, + DbPresetFilter, + DbPresetOrderBy, + CreateDbPresetInput, + UpdateDbPresetInput, + DbPresetPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class DbPresetModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + dbPresets: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'DbPreset', + 'dbPresets', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'DbPresetFilter', + 'DbPresetOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'DbPreset', + fieldName: 'dbPresets', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + dbPreset: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'DbPreset', + 'dbPresets', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'DbPresetFilter', + 'DbPresetOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'DbPreset', + fieldName: 'dbPreset', + document, + variables, + transform: (data: { + dbPresets?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + dbPreset: data.dbPresets?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + dbPreset: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'DbPreset', + 'dbPresets', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'DbPresetFilter', + 'DbPresetOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'DbPreset', + fieldName: 'dbPreset', + document, + variables, + transform: (data: { + dbPresets?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + dbPreset: data.dbPresets?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createDbPreset: { + dbPreset: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'DbPreset', + 'createDbPreset', + 'dbPreset', + args.select, + args.data, + 'CreateDbPresetInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'DbPreset', + fieldName: 'createDbPreset', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + DbPresetPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateDbPreset: { + dbPreset: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'DbPreset', + 'updateDbPreset', + 'dbPreset', + args.select, + args.where.id, + args.data, + 'UpdateDbPresetInput', + 'id', + 'dbPresetPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'DbPreset', + fieldName: 'updateDbPreset', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteDbPreset: { + dbPreset: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'DbPreset', + 'deleteDbPreset', + 'dbPreset', + { + id: args.where.id, + }, + 'DeleteDbPresetInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'DbPreset', + fieldName: 'deleteDbPreset', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/infra/orm/models/index.ts b/sdk/constructive-react/src/infra/orm/models/index.ts new file mode 100644 index 0000000000..e3c440f5ad --- /dev/null +++ b/sdk/constructive-react/src/infra/orm/models/index.ts @@ -0,0 +1,15 @@ +/** + * Models barrel export + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +export { InfraGetAllRecordModel } from './infraGetAllRecord'; +export { InfraRefModel } from './infraRef'; +export { InfraStoreModel } from './infraStore'; +export { InfraObjectModel } from './infraObject'; +export { InfraCommitModel } from './infraCommit'; +export { DbPresetModel } from './dbPreset'; +export { PlatformNamespaceModel } from './platformNamespace'; +export { NamespaceModel } from './namespace'; +export { PlatformNamespaceEventModel } from './platformNamespaceEvent'; +export { NamespaceEventModel } from './namespaceEvent'; diff --git a/sdk/constructive-react/src/infra/orm/models/infraCommit.ts b/sdk/constructive-react/src/infra/orm/models/infraCommit.ts new file mode 100644 index 0000000000..410e937a90 --- /dev/null +++ b/sdk/constructive-react/src/infra/orm/models/infraCommit.ts @@ -0,0 +1,250 @@ +/** + * InfraCommit model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + InfraCommit, + InfraCommitWithRelations, + InfraCommitSelect, + InfraCommitFilter, + InfraCommitOrderBy, + CreateInfraCommitInput, + UpdateInfraCommitInput, + InfraCommitPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class InfraCommitModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + infraCommits: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'InfraCommit', + 'infraCommits', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'InfraCommitFilter', + 'InfraCommitOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'InfraCommit', + fieldName: 'infraCommits', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + infraCommit: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'InfraCommit', + 'infraCommits', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'InfraCommitFilter', + 'InfraCommitOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'InfraCommit', + fieldName: 'infraCommit', + document, + variables, + transform: (data: { + infraCommits?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + infraCommit: data.infraCommits?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + infraCommit: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'InfraCommit', + 'infraCommits', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'InfraCommitFilter', + 'InfraCommitOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'InfraCommit', + fieldName: 'infraCommit', + document, + variables, + transform: (data: { + infraCommits?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + infraCommit: data.infraCommits?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createInfraCommit: { + infraCommit: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'InfraCommit', + 'createInfraCommit', + 'infraCommit', + args.select, + args.data, + 'CreateInfraCommitInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'InfraCommit', + fieldName: 'createInfraCommit', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + scopeId: string; + }, + InfraCommitPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateInfraCommit: { + infraCommit: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'InfraCommit', + 'updateInfraCommit', + 'infraCommit', + args.select, + args.where.id, + args.data, + 'UpdateInfraCommitInput', + 'id', + 'infraCommitPatch', + connectionFieldsMap, + { + scopeId: args.where.scopeId, + } + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'InfraCommit', + fieldName: 'updateInfraCommit', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + scopeId: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteInfraCommit: { + infraCommit: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'InfraCommit', + 'deleteInfraCommit', + 'infraCommit', + { + id: args.where.id, + scopeId: args.where.scopeId, + }, + 'DeleteInfraCommitInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'InfraCommit', + fieldName: 'deleteInfraCommit', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/infra/orm/models/infraGetAllRecord.ts b/sdk/constructive-react/src/infra/orm/models/infraGetAllRecord.ts new file mode 100644 index 0000000000..ebe2f8c1f2 --- /dev/null +++ b/sdk/constructive-react/src/infra/orm/models/infraGetAllRecord.ts @@ -0,0 +1,134 @@ +/** + * InfraGetAllRecord model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + InfraGetAllRecord, + InfraGetAllRecordWithRelations, + InfraGetAllRecordSelect, + InfraGetAllRecordFilter, + InfraGetAllRecordsOrderBy, + CreateInfraGetAllRecordInput, + UpdateInfraGetAllRecordInput, + InfraGetAllRecordPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class InfraGetAllRecordModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + infraGetAll: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'InfraGetAllRecord', + 'infraGetAll', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'InfraGetAllRecordFilter', + 'InfraGetAllRecordsOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'InfraGetAllRecord', + fieldName: 'infraGetAll', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + infraGetAllRecord: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'InfraGetAllRecord', + 'infraGetAll', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'InfraGetAllRecordFilter', + 'InfraGetAllRecordsOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'InfraGetAllRecord', + fieldName: 'infraGetAllRecord', + document, + variables, + transform: (data: { + infraGetAll?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + infraGetAllRecord: data.infraGetAll?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createInfraGetAllRecord: { + infraGetAllRecord: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'InfraGetAllRecord', + 'createInfraGetAllRecord', + 'infraGetAllRecord', + args.select, + args.data, + 'CreateInfraGetAllRecordInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'InfraGetAllRecord', + fieldName: 'createInfraGetAllRecord', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/infra/orm/models/infraObject.ts b/sdk/constructive-react/src/infra/orm/models/infraObject.ts new file mode 100644 index 0000000000..e097c8b271 --- /dev/null +++ b/sdk/constructive-react/src/infra/orm/models/infraObject.ts @@ -0,0 +1,236 @@ +/** + * InfraObject model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + InfraObject, + InfraObjectWithRelations, + InfraObjectSelect, + InfraObjectFilter, + InfraObjectOrderBy, + CreateInfraObjectInput, + UpdateInfraObjectInput, + InfraObjectPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class InfraObjectModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + infraObjects: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'InfraObject', + 'infraObjects', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'InfraObjectFilter', + 'InfraObjectOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'InfraObject', + fieldName: 'infraObjects', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + infraObject: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'InfraObject', + 'infraObjects', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'InfraObjectFilter', + 'InfraObjectOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'InfraObject', + fieldName: 'infraObject', + document, + variables, + transform: (data: { + infraObjects?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + infraObject: data.infraObjects?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + infraObject: InferSelectResult | null; + }> { + const { document, variables } = buildFindOneDocument( + 'InfraObject', + 'infraGetNodeAtPath', + args.id, + args.select, + 'id', + 'UUID!', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'InfraObject', + fieldName: 'infraObject', + document, + variables, + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createInfraObject: { + infraObject: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'InfraObject', + 'createInfraObject', + 'infraObject', + args.select, + args.data, + 'CreateInfraObjectInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'InfraObject', + fieldName: 'createInfraObject', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + scopeId: string; + }, + InfraObjectPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateInfraObject: { + infraObject: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'InfraObject', + 'updateInfraObject', + 'infraObject', + args.select, + args.where.id, + args.data, + 'UpdateInfraObjectInput', + 'id', + 'infraObjectPatch', + connectionFieldsMap, + { + scopeId: args.where.scopeId, + } + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'InfraObject', + fieldName: 'updateInfraObject', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + scopeId: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteInfraObject: { + infraObject: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'InfraObject', + 'deleteInfraObject', + 'infraObject', + { + id: args.where.id, + scopeId: args.where.scopeId, + }, + 'DeleteInfraObjectInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'InfraObject', + fieldName: 'deleteInfraObject', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/infra/orm/models/infraRef.ts b/sdk/constructive-react/src/infra/orm/models/infraRef.ts new file mode 100644 index 0000000000..3c474d3186 --- /dev/null +++ b/sdk/constructive-react/src/infra/orm/models/infraRef.ts @@ -0,0 +1,250 @@ +/** + * InfraRef model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + InfraRef, + InfraRefWithRelations, + InfraRefSelect, + InfraRefFilter, + InfraRefOrderBy, + CreateInfraRefInput, + UpdateInfraRefInput, + InfraRefPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class InfraRefModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + infraRefs: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'InfraRef', + 'infraRefs', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'InfraRefFilter', + 'InfraRefOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'InfraRef', + fieldName: 'infraRefs', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + infraRef: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'InfraRef', + 'infraRefs', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'InfraRefFilter', + 'InfraRefOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'InfraRef', + fieldName: 'infraRef', + document, + variables, + transform: (data: { + infraRefs?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + infraRef: data.infraRefs?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + infraRef: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'InfraRef', + 'infraRefs', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'InfraRefFilter', + 'InfraRefOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'InfraRef', + fieldName: 'infraRef', + document, + variables, + transform: (data: { + infraRefs?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + infraRef: data.infraRefs?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createInfraRef: { + infraRef: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'InfraRef', + 'createInfraRef', + 'infraRef', + args.select, + args.data, + 'CreateInfraRefInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'InfraRef', + fieldName: 'createInfraRef', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + scopeId: string; + }, + InfraRefPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateInfraRef: { + infraRef: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'InfraRef', + 'updateInfraRef', + 'infraRef', + args.select, + args.where.id, + args.data, + 'UpdateInfraRefInput', + 'id', + 'infraRefPatch', + connectionFieldsMap, + { + scopeId: args.where.scopeId, + } + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'InfraRef', + fieldName: 'updateInfraRef', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + scopeId: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteInfraRef: { + infraRef: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'InfraRef', + 'deleteInfraRef', + 'infraRef', + { + id: args.where.id, + scopeId: args.where.scopeId, + }, + 'DeleteInfraRefInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'InfraRef', + fieldName: 'deleteInfraRef', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/infra/orm/models/infraStore.ts b/sdk/constructive-react/src/infra/orm/models/infraStore.ts new file mode 100644 index 0000000000..a0ed0dbe7b --- /dev/null +++ b/sdk/constructive-react/src/infra/orm/models/infraStore.ts @@ -0,0 +1,245 @@ +/** + * InfraStore model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + InfraStore, + InfraStoreWithRelations, + InfraStoreSelect, + InfraStoreFilter, + InfraStoreOrderBy, + CreateInfraStoreInput, + UpdateInfraStoreInput, + InfraStorePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class InfraStoreModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + infraStores: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'InfraStore', + 'infraStores', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'InfraStoreFilter', + 'InfraStoreOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'InfraStore', + fieldName: 'infraStores', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + infraStore: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'InfraStore', + 'infraStores', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'InfraStoreFilter', + 'InfraStoreOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'InfraStore', + fieldName: 'infraStore', + document, + variables, + transform: (data: { + infraStores?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + infraStore: data.infraStores?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + infraStore: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'InfraStore', + 'infraStores', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'InfraStoreFilter', + 'InfraStoreOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'InfraStore', + fieldName: 'infraStore', + document, + variables, + transform: (data: { + infraStores?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + infraStore: data.infraStores?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createInfraStore: { + infraStore: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'InfraStore', + 'createInfraStore', + 'infraStore', + args.select, + args.data, + 'CreateInfraStoreInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'InfraStore', + fieldName: 'createInfraStore', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + InfraStorePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateInfraStore: { + infraStore: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'InfraStore', + 'updateInfraStore', + 'infraStore', + args.select, + args.where.id, + args.data, + 'UpdateInfraStoreInput', + 'id', + 'infraStorePatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'InfraStore', + fieldName: 'updateInfraStore', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteInfraStore: { + infraStore: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'InfraStore', + 'deleteInfraStore', + 'infraStore', + { + id: args.where.id, + }, + 'DeleteInfraStoreInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'InfraStore', + fieldName: 'deleteInfraStore', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/infra/orm/models/namespace.ts b/sdk/constructive-react/src/infra/orm/models/namespace.ts new file mode 100644 index 0000000000..4e300068cd --- /dev/null +++ b/sdk/constructive-react/src/infra/orm/models/namespace.ts @@ -0,0 +1,245 @@ +/** + * Namespace model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + Namespace, + NamespaceWithRelations, + NamespaceSelect, + NamespaceFilter, + NamespaceOrderBy, + CreateNamespaceInput, + UpdateNamespaceInput, + NamespacePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class NamespaceModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + namespaces: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'Namespace', + 'namespaces', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'NamespaceFilter', + 'NamespaceOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'Namespace', + fieldName: 'namespaces', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + namespace: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'Namespace', + 'namespaces', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'NamespaceFilter', + 'NamespaceOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'Namespace', + fieldName: 'namespace', + document, + variables, + transform: (data: { + namespaces?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + namespace: data.namespaces?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + namespace: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'Namespace', + 'namespaces', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'NamespaceFilter', + 'NamespaceOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'Namespace', + fieldName: 'namespace', + document, + variables, + transform: (data: { + namespaces?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + namespace: data.namespaces?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createNamespace: { + namespace: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'Namespace', + 'createNamespace', + 'namespace', + args.select, + args.data, + 'CreateNamespaceInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'Namespace', + fieldName: 'createNamespace', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + NamespacePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateNamespace: { + namespace: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'Namespace', + 'updateNamespace', + 'namespace', + args.select, + args.where.id, + args.data, + 'UpdateNamespaceInput', + 'id', + 'namespacePatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'Namespace', + fieldName: 'updateNamespace', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteNamespace: { + namespace: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'Namespace', + 'deleteNamespace', + 'namespace', + { + id: args.where.id, + }, + 'DeleteNamespaceInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'Namespace', + fieldName: 'deleteNamespace', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/infra/orm/models/namespaceEvent.ts b/sdk/constructive-react/src/infra/orm/models/namespaceEvent.ts new file mode 100644 index 0000000000..494442c263 --- /dev/null +++ b/sdk/constructive-react/src/infra/orm/models/namespaceEvent.ts @@ -0,0 +1,250 @@ +/** + * NamespaceEvent model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + NamespaceEvent, + NamespaceEventWithRelations, + NamespaceEventSelect, + NamespaceEventFilter, + NamespaceEventOrderBy, + CreateNamespaceEventInput, + UpdateNamespaceEventInput, + NamespaceEventPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class NamespaceEventModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + namespaceEvents: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'NamespaceEvent', + 'namespaceEvents', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'NamespaceEventFilter', + 'NamespaceEventOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'NamespaceEvent', + fieldName: 'namespaceEvents', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + namespaceEvent: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'NamespaceEvent', + 'namespaceEvents', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'NamespaceEventFilter', + 'NamespaceEventOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'NamespaceEvent', + fieldName: 'namespaceEvent', + document, + variables, + transform: (data: { + namespaceEvents?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + namespaceEvent: data.namespaceEvents?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + namespaceEvent: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'NamespaceEvent', + 'namespaceEvents', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'NamespaceEventFilter', + 'NamespaceEventOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'NamespaceEvent', + fieldName: 'namespaceEvent', + document, + variables, + transform: (data: { + namespaceEvents?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + namespaceEvent: data.namespaceEvents?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createNamespaceEvent: { + namespaceEvent: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'NamespaceEvent', + 'createNamespaceEvent', + 'namespaceEvent', + args.select, + args.data, + 'CreateNamespaceEventInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'NamespaceEvent', + fieldName: 'createNamespaceEvent', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + createdAt: string; + }, + NamespaceEventPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateNamespaceEvent: { + namespaceEvent: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'NamespaceEvent', + 'updateNamespaceEvent', + 'namespaceEvent', + args.select, + args.where.id, + args.data, + 'UpdateNamespaceEventInput', + 'id', + 'namespaceEventPatch', + connectionFieldsMap, + { + createdAt: args.where.createdAt, + } + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'NamespaceEvent', + fieldName: 'updateNamespaceEvent', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + createdAt: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteNamespaceEvent: { + namespaceEvent: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'NamespaceEvent', + 'deleteNamespaceEvent', + 'namespaceEvent', + { + id: args.where.id, + createdAt: args.where.createdAt, + }, + 'DeleteNamespaceEventInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'NamespaceEvent', + fieldName: 'deleteNamespaceEvent', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/infra/orm/models/platformNamespace.ts b/sdk/constructive-react/src/infra/orm/models/platformNamespace.ts new file mode 100644 index 0000000000..c4dff94953 --- /dev/null +++ b/sdk/constructive-react/src/infra/orm/models/platformNamespace.ts @@ -0,0 +1,245 @@ +/** + * PlatformNamespace model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + PlatformNamespace, + PlatformNamespaceWithRelations, + PlatformNamespaceSelect, + PlatformNamespaceFilter, + PlatformNamespaceOrderBy, + CreatePlatformNamespaceInput, + UpdatePlatformNamespaceInput, + PlatformNamespacePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class PlatformNamespaceModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformNamespaces: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformNamespace', + 'platformNamespaces', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'PlatformNamespaceFilter', + 'PlatformNamespaceOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformNamespace', + fieldName: 'platformNamespaces', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformNamespace: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'PlatformNamespace', + 'platformNamespaces', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'PlatformNamespaceFilter', + 'PlatformNamespaceOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformNamespace', + fieldName: 'platformNamespace', + document, + variables, + transform: (data: { + platformNamespaces?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformNamespace: data.platformNamespaces?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformNamespace: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformNamespace', + 'platformNamespaces', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'PlatformNamespaceFilter', + 'PlatformNamespaceOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformNamespace', + fieldName: 'platformNamespace', + document, + variables, + transform: (data: { + platformNamespaces?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformNamespace: data.platformNamespaces?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createPlatformNamespace: { + platformNamespace: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'PlatformNamespace', + 'createPlatformNamespace', + 'platformNamespace', + args.select, + args.data, + 'CreatePlatformNamespaceInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformNamespace', + fieldName: 'createPlatformNamespace', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + PlatformNamespacePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updatePlatformNamespace: { + platformNamespace: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'PlatformNamespace', + 'updatePlatformNamespace', + 'platformNamespace', + args.select, + args.where.id, + args.data, + 'UpdatePlatformNamespaceInput', + 'id', + 'platformNamespacePatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformNamespace', + fieldName: 'updatePlatformNamespace', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deletePlatformNamespace: { + platformNamespace: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'PlatformNamespace', + 'deletePlatformNamespace', + 'platformNamespace', + { + id: args.where.id, + }, + 'DeletePlatformNamespaceInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformNamespace', + fieldName: 'deletePlatformNamespace', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/infra/orm/models/platformNamespaceEvent.ts b/sdk/constructive-react/src/infra/orm/models/platformNamespaceEvent.ts new file mode 100644 index 0000000000..198afe79ae --- /dev/null +++ b/sdk/constructive-react/src/infra/orm/models/platformNamespaceEvent.ts @@ -0,0 +1,252 @@ +/** + * PlatformNamespaceEvent model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + PlatformNamespaceEvent, + PlatformNamespaceEventWithRelations, + PlatformNamespaceEventSelect, + PlatformNamespaceEventFilter, + PlatformNamespaceEventOrderBy, + CreatePlatformNamespaceEventInput, + UpdatePlatformNamespaceEventInput, + PlatformNamespaceEventPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class PlatformNamespaceEventModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformNamespaceEvents: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformNamespaceEvent', + 'platformNamespaceEvents', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'PlatformNamespaceEventFilter', + 'PlatformNamespaceEventOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformNamespaceEvent', + fieldName: 'platformNamespaceEvents', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformNamespaceEvent: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'PlatformNamespaceEvent', + 'platformNamespaceEvents', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'PlatformNamespaceEventFilter', + 'PlatformNamespaceEventOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformNamespaceEvent', + fieldName: 'platformNamespaceEvent', + document, + variables, + transform: (data: { + platformNamespaceEvents?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformNamespaceEvent: data.platformNamespaceEvents?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformNamespaceEvent: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformNamespaceEvent', + 'platformNamespaceEvents', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'PlatformNamespaceEventFilter', + 'PlatformNamespaceEventOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformNamespaceEvent', + fieldName: 'platformNamespaceEvent', + document, + variables, + transform: (data: { + platformNamespaceEvents?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformNamespaceEvent: data.platformNamespaceEvents?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createPlatformNamespaceEvent: { + platformNamespaceEvent: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'PlatformNamespaceEvent', + 'createPlatformNamespaceEvent', + 'platformNamespaceEvent', + args.select, + args.data, + 'CreatePlatformNamespaceEventInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformNamespaceEvent', + fieldName: 'createPlatformNamespaceEvent', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + createdAt: string; + }, + PlatformNamespaceEventPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updatePlatformNamespaceEvent: { + platformNamespaceEvent: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'PlatformNamespaceEvent', + 'updatePlatformNamespaceEvent', + 'platformNamespaceEvent', + args.select, + args.where.id, + args.data, + 'UpdatePlatformNamespaceEventInput', + 'id', + 'platformNamespaceEventPatch', + connectionFieldsMap, + { + createdAt: args.where.createdAt, + } + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformNamespaceEvent', + fieldName: 'updatePlatformNamespaceEvent', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + createdAt: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deletePlatformNamespaceEvent: { + platformNamespaceEvent: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'PlatformNamespaceEvent', + 'deletePlatformNamespaceEvent', + 'platformNamespaceEvent', + { + id: args.where.id, + createdAt: args.where.createdAt, + }, + 'DeletePlatformNamespaceEventInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformNamespaceEvent', + fieldName: 'deletePlatformNamespaceEvent', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/infra/orm/mutation/index.ts b/sdk/constructive-react/src/infra/orm/mutation/index.ts new file mode 100644 index 0000000000..25e22830fc --- /dev/null +++ b/sdk/constructive-react/src/infra/orm/mutation/index.ts @@ -0,0 +1,162 @@ +/** + * 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 { + InfraInitEmptyRepoInput, + InfraSetDataAtPathInput, + InfraInsertNodeAtPathInput, + ProvisionBucketInput, + InfraInitEmptyRepoPayload, + InfraSetDataAtPathPayload, + InfraInsertNodeAtPathPayload, + ProvisionBucketPayload, + InfraInitEmptyRepoPayloadSelect, + InfraSetDataAtPathPayloadSelect, + InfraInsertNodeAtPathPayloadSelect, + ProvisionBucketPayloadSelect, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export interface InfraInitEmptyRepoVariables { + input: InfraInitEmptyRepoInput; +} +export interface InfraSetDataAtPathVariables { + input: InfraSetDataAtPathInput; +} +export interface InfraInsertNodeAtPathVariables { + input: InfraInsertNodeAtPathInput; +} +/** + * 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 { + infraInitEmptyRepo: ( + args: InfraInitEmptyRepoVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + infraInitEmptyRepo: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'InfraInitEmptyRepo', + fieldName: 'infraInitEmptyRepo', + ...buildCustomDocument( + 'mutation', + 'InfraInitEmptyRepo', + 'infraInitEmptyRepo', + options.select, + args, + [ + { + name: 'input', + type: 'InfraInitEmptyRepoInput!', + }, + ], + connectionFieldsMap, + 'InfraInitEmptyRepoPayload' + ), + }), + infraSetDataAtPath: ( + args: InfraSetDataAtPathVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + infraSetDataAtPath: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'InfraSetDataAtPath', + fieldName: 'infraSetDataAtPath', + ...buildCustomDocument( + 'mutation', + 'InfraSetDataAtPath', + 'infraSetDataAtPath', + options.select, + args, + [ + { + name: 'input', + type: 'InfraSetDataAtPathInput!', + }, + ], + connectionFieldsMap, + 'InfraSetDataAtPathPayload' + ), + }), + infraInsertNodeAtPath: ( + args: InfraInsertNodeAtPathVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + infraInsertNodeAtPath: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'InfraInsertNodeAtPath', + fieldName: 'infraInsertNodeAtPath', + ...buildCustomDocument( + 'mutation', + 'InfraInsertNodeAtPath', + 'infraInsertNodeAtPath', + options.select, + args, + [ + { + name: 'input', + type: 'InfraInsertNodeAtPathInput!', + }, + ], + connectionFieldsMap, + 'InfraInsertNodeAtPathPayload' + ), + }), + 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/infra/orm/query-builder.ts b/sdk/constructive-react/src/infra/orm/query-builder.ts new file mode 100644 index 0000000000..fd785bbae6 --- /dev/null +++ b/sdk/constructive-react/src/infra/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/infra/orm/realtime.ts b/sdk/constructive-react/src/infra/orm/realtime.ts new file mode 100644 index 0000000000..214eb56203 --- /dev/null +++ b/sdk/constructive-react/src/infra/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/infra/orm/select-types.ts b/sdk/constructive-react/src/infra/orm/select-types.ts new file mode 100644 index 0000000000..4b39d7e820 --- /dev/null +++ b/sdk/constructive-react/src/infra/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/infra/orm/types.ts b/sdk/constructive-react/src/infra/orm/types.ts new file mode 100644 index 0000000000..7c1120bcdf --- /dev/null +++ b/sdk/constructive-react/src/infra/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/infra/schema-types.ts b/sdk/constructive-react/src/infra/schema-types.ts new file mode 100644 index 0000000000..6b9a866f42 --- /dev/null +++ b/sdk/constructive-react/src/infra/schema-types.ts @@ -0,0 +1,1656 @@ +/** + * GraphQL schema types for custom operations + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import type { + DbPreset, + InfraCommit, + InfraGetAllRecord, + InfraObject, + InfraRef, + InfraStore, + Namespace, + NamespaceEvent, + PlatformNamespace, + PlatformNamespaceEvent, + BigFloatFilter, + BigIntFilter, + BitStringFilter, + BooleanFilter, + DateFilter, + DatetimeFilter, + FloatFilter, + FullTextFilter, + IntFilter, + IntListFilter, + InternetAddressFilter, + JSONFilter, + StringFilter, + StringListFilter, + UUIDFilter, + UUIDListFilter, + VectorFilter, +} from './types'; +/** Methods to use when ordering `InfraRef`. */ +export type InfraRefOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'SCOPE_ID_ASC' + | 'SCOPE_ID_DESC' + | 'STORE_ID_ASC' + | 'STORE_ID_DESC' + | 'COMMIT_ID_ASC' + | 'COMMIT_ID_DESC'; +/** Methods to use when ordering `InfraStore`. */ +export type InfraStoreOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'SCOPE_ID_ASC' + | 'SCOPE_ID_DESC' + | 'HASH_ASC' + | 'HASH_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC'; +/** Methods to use when ordering `InfraObject`. */ +export type InfraObjectOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'SCOPE_ID_ASC' + | 'SCOPE_ID_DESC' + | 'KIDS_ASC' + | 'KIDS_DESC' + | 'KTREE_ASC' + | 'KTREE_DESC' + | 'DATA_ASC' + | 'DATA_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC'; +/** Methods to use when ordering `InfraCommit`. */ +export type InfraCommitOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'MESSAGE_ASC' + | 'MESSAGE_DESC' + | 'SCOPE_ID_ASC' + | 'SCOPE_ID_DESC' + | 'STORE_ID_ASC' + | 'STORE_ID_DESC' + | 'PARENT_IDS_ASC' + | 'PARENT_IDS_DESC' + | 'AUTHOR_ID_ASC' + | 'AUTHOR_ID_DESC' + | 'COMMITTER_ID_ASC' + | 'COMMITTER_ID_DESC' + | 'TREE_ID_ASC' + | 'TREE_ID_DESC' + | 'DATE_ASC' + | 'DATE_DESC'; +/** Methods to use when ordering `DbPreset`. */ +export type DbPresetOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'STORE_ID_ASC' + | 'STORE_ID_DESC' + | 'SLUG_ASC' + | 'SLUG_DESC' + | 'DEFINITION_ASC' + | 'DEFINITION_DESC' + | 'COMMIT_ID_ASC' + | 'COMMIT_ID_DESC' + | 'MODULES_HASH_ASC' + | 'MODULES_HASH_DESC' + | 'LABEL_ASC' + | 'LABEL_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'ACTIVE_ASC' + | 'ACTIVE_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +/** Methods to use when ordering `PlatformNamespace`. */ +export type PlatformNamespaceOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'NAMESPACE_NAME_ASC' + | 'NAMESPACE_NAME_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'IS_ACTIVE_ASC' + | 'IS_ACTIVE_DESC' + | 'STATUS_ASC' + | 'STATUS_DESC' + | 'LAST_ERROR_ASC' + | 'LAST_ERROR_DESC' + | 'LABELS_ASC' + | 'LABELS_DESC' + | 'ANNOTATIONS_ASC' + | 'ANNOTATIONS_DESC' + | 'IS_MANAGED_ASC' + | 'IS_MANAGED_DESC'; +/** Methods to use when ordering `Namespace`. */ +export type NamespaceOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'NAMESPACE_NAME_ASC' + | 'NAMESPACE_NAME_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'IS_ACTIVE_ASC' + | 'IS_ACTIVE_DESC' + | 'STATUS_ASC' + | 'STATUS_DESC' + | 'LAST_ERROR_ASC' + | 'LAST_ERROR_DESC' + | 'LABELS_ASC' + | 'LABELS_DESC' + | 'ANNOTATIONS_ASC' + | 'ANNOTATIONS_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'IS_MANAGED_ASC' + | 'IS_MANAGED_DESC'; +/** Methods to use when ordering `PlatformNamespaceEvent`. */ +export type PlatformNamespaceEventOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAMESPACE_ID_ASC' + | 'NAMESPACE_ID_DESC' + | 'EVENT_TYPE_ASC' + | 'EVENT_TYPE_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'MESSAGE_ASC' + | 'MESSAGE_DESC' + | 'METADATA_ASC' + | 'METADATA_DESC' + | 'CPU_MILLICORES_ASC' + | 'CPU_MILLICORES_DESC' + | 'MEMORY_BYTES_ASC' + | 'MEMORY_BYTES_DESC' + | 'STORAGE_BYTES_ASC' + | 'STORAGE_BYTES_DESC' + | 'NETWORK_INGRESS_BYTES_ASC' + | 'NETWORK_INGRESS_BYTES_DESC' + | 'NETWORK_EGRESS_BYTES_ASC' + | 'NETWORK_EGRESS_BYTES_DESC' + | 'POD_COUNT_ASC' + | 'POD_COUNT_DESC' + | 'METRICS_ASC' + | 'METRICS_DESC'; +/** Methods to use when ordering `NamespaceEvent`. */ +export type NamespaceEventOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAMESPACE_ID_ASC' + | 'NAMESPACE_ID_DESC' + | 'EVENT_TYPE_ASC' + | 'EVENT_TYPE_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'MESSAGE_ASC' + | 'MESSAGE_DESC' + | 'METADATA_ASC' + | 'METADATA_DESC' + | 'CPU_MILLICORES_ASC' + | 'CPU_MILLICORES_DESC' + | 'MEMORY_BYTES_ASC' + | 'MEMORY_BYTES_DESC' + | 'STORAGE_BYTES_ASC' + | 'STORAGE_BYTES_DESC' + | 'NETWORK_INGRESS_BYTES_ASC' + | 'NETWORK_INGRESS_BYTES_DESC' + | 'NETWORK_EGRESS_BYTES_ASC' + | 'NETWORK_EGRESS_BYTES_DESC' + | 'POD_COUNT_ASC' + | 'POD_COUNT_DESC' + | 'METRICS_ASC' + | 'METRICS_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC'; +/** A filter to be used against `InfraRef` object types. All fields are combined with a logical ‘and.’ */ +export interface InfraRefFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `scopeId` field. */ + scopeId?: UUIDFilter; + /** Filter by the object’s `storeId` field. */ + storeId?: UUIDFilter; + /** Filter by the object’s `commitId` field. */ + commitId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: InfraRefFilter[]; + /** Checks for any expressions in this list. */ + or?: InfraRefFilter[]; + /** Negates the expression. */ + not?: InfraRefFilter; +} +/** A filter to be used against `InfraStore` object types. All fields are combined with a logical ‘and.’ */ +export interface InfraStoreFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `scopeId` field. */ + scopeId?: UUIDFilter; + /** Filter by the object’s `hash` field. */ + hash?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Checks for all expressions in this list. */ + and?: InfraStoreFilter[]; + /** Checks for any expressions in this list. */ + or?: InfraStoreFilter[]; + /** Negates the expression. */ + not?: InfraStoreFilter; +} +/** A filter to be used against `InfraObject` object types. All fields are combined with a logical ‘and.’ */ +export interface InfraObjectFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `scopeId` field. */ + scopeId?: UUIDFilter; + /** Filter by the object’s `kids` field. */ + kids?: UUIDListFilter; + /** Filter by the object’s `ktree` field. */ + ktree?: StringListFilter; + /** Filter by the object’s `data` field. */ + data?: JSONFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Checks for all expressions in this list. */ + and?: InfraObjectFilter[]; + /** Checks for any expressions in this list. */ + or?: InfraObjectFilter[]; + /** Negates the expression. */ + not?: InfraObjectFilter; +} +/** A filter to be used against `InfraCommit` object types. All fields are combined with a logical ‘and.’ */ +export interface InfraCommitFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `message` field. */ + message?: StringFilter; + /** Filter by the object’s `scopeId` field. */ + scopeId?: UUIDFilter; + /** Filter by the object’s `storeId` field. */ + storeId?: UUIDFilter; + /** Filter by the object’s `parentIds` field. */ + parentIds?: UUIDListFilter; + /** Filter by the object’s `authorId` field. */ + authorId?: UUIDFilter; + /** Filter by the object’s `committerId` field. */ + committerId?: UUIDFilter; + /** Filter by the object’s `treeId` field. */ + treeId?: UUIDFilter; + /** Filter by the object’s `date` field. */ + date?: DatetimeFilter; + /** Checks for all expressions in this list. */ + and?: InfraCommitFilter[]; + /** Checks for any expressions in this list. */ + or?: InfraCommitFilter[]; + /** Negates the expression. */ + not?: InfraCommitFilter; +} +/** 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 `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `storeId` field. */ + storeId?: UUIDFilter; + /** Filter by the object’s `slug` field. */ + slug?: StringFilter; + /** Filter by the object’s `definition` field. */ + definition?: JSONFilter; + /** Filter by the object’s `commitId` field. */ + commitId?: UUIDFilter; + /** Filter by the object’s `modulesHash` field. */ + modulesHash?: UUIDFilter; + /** Filter by the object’s `label` field. */ + label?: StringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `active` field. */ + active?: BooleanFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Checks for all expressions in this list. */ + and?: DbPresetFilter[]; + /** Checks for any expressions in this list. */ + or?: DbPresetFilter[]; + /** Negates the expression. */ + not?: DbPresetFilter; +} +/** A filter to be used against `PlatformNamespace` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformNamespaceFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `namespaceName` field. */ + namespaceName?: StringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `isActive` field. */ + isActive?: BooleanFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `lastError` field. */ + lastError?: StringFilter; + /** Filter by the object’s `labels` field. */ + labels?: JSONFilter; + /** Filter by the object’s `annotations` field. */ + annotations?: JSONFilter; + /** Filter by the object’s `isManaged` field. */ + isManaged?: BooleanFilter; + /** Checks for all expressions in this list. */ + and?: PlatformNamespaceFilter[]; + /** Checks for any expressions in this list. */ + or?: PlatformNamespaceFilter[]; + /** Negates the expression. */ + not?: PlatformNamespaceFilter; +} +/** A filter to be used against `Namespace` object types. All fields are combined with a logical ‘and.’ */ +export interface NamespaceFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `namespaceName` field. */ + namespaceName?: StringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `isActive` field. */ + isActive?: BooleanFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `lastError` field. */ + lastError?: StringFilter; + /** Filter by the object’s `labels` field. */ + labels?: JSONFilter; + /** Filter by the object’s `annotations` field. */ + annotations?: JSONFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `isManaged` field. */ + isManaged?: BooleanFilter; + /** Checks for all expressions in this list. */ + and?: NamespaceFilter[]; + /** Checks for any expressions in this list. */ + or?: NamespaceFilter[]; + /** Negates the expression. */ + not?: NamespaceFilter; +} +/** 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 `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; + /** Filter by the object’s `eventType` field. */ + eventType?: StringFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Filter by the object’s `message` field. */ + message?: StringFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Filter by the object’s `cpuMillicores` field. */ + cpuMillicores?: IntFilter; + /** Filter by the object’s `memoryBytes` field. */ + memoryBytes?: BigIntFilter; + /** Filter by the object’s `storageBytes` field. */ + storageBytes?: BigIntFilter; + /** Filter by the object’s `networkIngressBytes` field. */ + networkIngressBytes?: BigIntFilter; + /** Filter by the object’s `networkEgressBytes` field. */ + networkEgressBytes?: BigIntFilter; + /** Filter by the object’s `podCount` field. */ + podCount?: IntFilter; + /** Filter by the object’s `metrics` field. */ + metrics?: JSONFilter; + /** Checks for all expressions in this list. */ + and?: PlatformNamespaceEventFilter[]; + /** Checks for any expressions in this list. */ + or?: PlatformNamespaceEventFilter[]; + /** Negates the expression. */ + not?: PlatformNamespaceEventFilter; +} +/** 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 `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; + /** Filter by the object’s `eventType` field. */ + eventType?: StringFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Filter by the object’s `message` field. */ + message?: StringFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Filter by the object’s `cpuMillicores` field. */ + cpuMillicores?: IntFilter; + /** Filter by the object’s `memoryBytes` field. */ + memoryBytes?: BigIntFilter; + /** Filter by the object’s `storageBytes` field. */ + storageBytes?: BigIntFilter; + /** Filter by the object’s `networkIngressBytes` field. */ + networkIngressBytes?: BigIntFilter; + /** Filter by the object’s `networkEgressBytes` field. */ + networkEgressBytes?: BigIntFilter; + /** Filter by the object’s `podCount` field. */ + podCount?: IntFilter; + /** Filter by the object’s `metrics` field. */ + metrics?: JSONFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: NamespaceEventFilter[]; + /** Checks for any expressions in this list. */ + or?: NamespaceEventFilter[]; + /** Negates the expression. */ + not?: NamespaceEventFilter; +} +export interface InfraInitEmptyRepoInput { + clientMutationId?: string; + sId?: string; + storeId?: string; +} +export interface InfraSetDataAtPathInput { + clientMutationId?: string; + sId?: string; + root?: string; + path?: string[]; + data?: unknown; +} +export interface InfraInsertNodeAtPathInput { + clientMutationId?: string; + sId?: string; + root?: string; + path?: string[]; + data?: unknown; + kids?: string[]; + ktree?: string[]; +} +export interface CreateInfraRefInput { + clientMutationId?: string; + /** The `InfraRef` to be created by this mutation. */ + infraRef: InfraRefInput; +} +/** An input for mutations affecting `InfraRef` */ +export interface InfraRefInput { + /** 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; + /** Commit this ref points to */ + commitId?: string; +} +export interface CreateInfraStoreInput { + clientMutationId?: string; + /** The `InfraStore` to be created by this mutation. */ + infraStore: InfraStoreInput; +} +/** An input for mutations affecting `InfraStore` */ +export interface InfraStoreInput { + /** Unique store identifier */ + id?: string; + /** Human-readable store name */ + name: string; + /** Opaque store partition key for the global tier */ + scopeId: string; + /** Current root object hash of this store */ + hash?: string; + /** Timestamp of store creation */ + createdAt?: string; +} +export interface CreateInfraObjectInput { + clientMutationId?: string; + /** The `InfraObject` to be created by this mutation. */ + infraObject: InfraObjectInput; +} +/** An input for mutations affecting `InfraObject` */ +export interface InfraObjectInput { + /** Content-addressed UUID v5 — deterministic hash of (data, kids, ktree) */ + id: string; + /** Opaque store partition key for the global tier */ + scopeId: string; + /** Ordered array of child object IDs */ + kids?: string[]; + /** Ordered array of child path names (parallel to kids) */ + ktree?: string[]; + /** Payload data for this object node */ + data?: unknown; + /** Timestamp of object creation */ + createdAt?: string; +} +export interface CreateInfraCommitInput { + clientMutationId?: string; + /** The `InfraCommit` to be created by this mutation. */ + infraCommit: InfraCommitInput; +} +/** An input for mutations affecting `InfraCommit` */ +export interface InfraCommitInput { + /** Unique commit identifier */ + id?: string; + /** Optional commit message */ + message?: string; + /** Opaque store partition key for the global tier */ + scopeId: string; + /** Store this commit belongs to */ + storeId: string; + /** Parent commit IDs (supports merge commits) */ + parentIds?: string[]; + /** User who authored the changes */ + authorId?: string; + /** User who committed (may differ from author) */ + committerId?: string; + /** Root object ID of the tree snapshot at this commit */ + treeId?: string; + /** Commit timestamp */ + date?: string; +} +export interface CreateDbPresetInput { + clientMutationId?: string; + /** The `DbPreset` to be created by this mutation. */ + dbPreset: DbPresetInput; +} +/** An input for mutations affecting `DbPreset` */ +export interface DbPresetInput { + /** Unique preset identifier */ + id?: string; + /** Infra Merkle store holding this preset's history (stamped by the versioned trigger) */ + storeId?: string; + /** Preset slug (unique per scope); the preset's path in the infra tree is [db_preset, slug] */ + slug: string; + /** Preset definition (modules + options) — the readily-cached head; history lives in the infra store */ + definition: unknown; + /** Infra store commit for the current definition (stamped by the versioned trigger on every write) */ + commitId?: 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; + /** Human-readable preset name */ + label?: string; + /** Human-readable description of the preset */ + description?: string; + /** Whether this preset is selectable for new databases */ + active?: boolean; + /** Timestamp of preset creation */ + createdAt?: string; + /** Timestamp of last modification */ + updatedAt?: string; +} +export interface CreatePlatformNamespaceInput { + clientMutationId?: string; + /** The `PlatformNamespace` to be created by this mutation. */ + platformNamespace: PlatformNamespaceInput; +} +/** An input for mutations affecting `PlatformNamespace` */ +export interface PlatformNamespaceInput { + id?: string; + createdAt?: string; + updatedAt?: string; + /** Human-readable namespace name (e.g. default, production, oauth) */ + name: string; + /** Globally unique computed namespace identifier via inflection.underscore */ + namespaceName: string; + /** Optional human-readable description of this namespace */ + description?: string; + /** Whether this namespace is active (soft-disable for filtering) */ + isActive?: boolean; + /** Namespace provisioning lifecycle status: pending, provisioning, active, failed */ + status?: string; + /** Most recent provisioning or reconcile error message */ + lastError?: string; + /** Key/value pairs for selecting and filtering namespaces */ + labels?: unknown; + /** Freeform metadata for tooling and operational notes */ + annotations?: unknown; + /** true = provisioned by the platform via jobs, false = unmanaged/platform-native (bootstrapped externally) */ + isManaged?: boolean; +} +export interface CreateNamespaceInput { + clientMutationId?: string; + /** The `Namespace` to be created by this mutation. */ + namespace: NamespaceInput; +} +/** An input for mutations affecting `Namespace` */ +export interface NamespaceInput { + id?: string; + createdAt?: string; + updatedAt?: string; + /** Human-readable namespace name (e.g. default, production, oauth) */ + name: string; + /** Globally unique computed namespace identifier via inflection.underscore */ + namespaceName: string; + /** Optional human-readable description of this namespace */ + description?: string; + /** Whether this namespace is active (soft-disable for filtering) */ + isActive?: boolean; + /** Namespace provisioning lifecycle status: pending, provisioning, active, failed */ + status?: string; + /** Most recent provisioning or reconcile error message */ + lastError?: string; + /** Key/value pairs for selecting and filtering namespaces */ + labels?: unknown; + /** Freeform metadata for tooling and operational notes */ + annotations?: unknown; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + /** true = provisioned by the platform via jobs, false = unmanaged/platform-native (bootstrapped externally) */ + isManaged?: boolean; +} +export interface CreatePlatformNamespaceEventInput { + clientMutationId?: string; + /** The `PlatformNamespaceEvent` to be created by this mutation. */ + platformNamespaceEvent: PlatformNamespaceEventInput; +} +/** An input for mutations affecting `PlatformNamespaceEvent` */ +export interface PlatformNamespaceEventInput { + /** Event timestamp (partition key) */ + createdAt?: string; + /** Unique event identifier */ + id?: string; + /** Namespace this event belongs to */ + namespaceId: string; + /** Event type: created, activated, deactivated, labels_updated, annotations_updated, renamed */ + eventType: string; + /** User who triggered this event (NULL for system/automated) */ + actorId?: string; + /** Human-readable description of the event */ + message?: string; + /** Structured context (old/new values, labels diff, etc.) */ + metadata?: unknown; + /** CPU usage in millicores at time of event */ + cpuMillicores?: number; + /** Memory usage in bytes at time of event */ + memoryBytes?: string; + /** Storage usage in bytes at time of event */ + storageBytes?: string; + /** Network ingress in bytes during event window */ + networkIngressBytes?: string; + /** Network egress in bytes during event window */ + networkEgressBytes?: string; + /** Number of active pods in the namespace at time of event */ + podCount?: number; + /** Additional resource metrics (gpu, replicas, quotas, etc.) */ + metrics?: unknown; +} +export interface CreateNamespaceEventInput { + clientMutationId?: string; + /** The `NamespaceEvent` to be created by this mutation. */ + namespaceEvent: NamespaceEventInput; +} +/** An input for mutations affecting `NamespaceEvent` */ +export interface NamespaceEventInput { + /** Event timestamp (partition key) */ + createdAt?: string; + /** Unique event identifier */ + id?: string; + /** Namespace this event belongs to */ + namespaceId: string; + /** Event type: created, activated, deactivated, labels_updated, annotations_updated, renamed */ + eventType: string; + /** User who triggered this event (NULL for system/automated) */ + actorId?: string; + /** Human-readable description of the event */ + message?: string; + /** Structured context (old/new values, labels diff, etc.) */ + metadata?: unknown; + /** CPU usage in millicores at time of event */ + cpuMillicores?: number; + /** Memory usage in bytes at time of event */ + memoryBytes?: string; + /** Storage usage in bytes at time of event */ + storageBytes?: string; + /** Network ingress in bytes during event window */ + networkIngressBytes?: string; + /** Network egress in bytes during event window */ + networkEgressBytes?: string; + /** Number of active pods in the namespace at time of event */ + podCount?: number; + /** Additional resource metrics (gpu, replicas, quotas, etc.) */ + metrics?: unknown; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; +} +export interface UpdateInfraRefInput { + clientMutationId?: string; + /** Unique ref identifier */ + id: string; + /** Opaque store partition key for the global tier */ + scopeId: string; + /** An object where the defined keys will be set on the `InfraRef` being updated. */ + infraRefPatch: InfraRefPatch; +} +/** Represents an update to a `InfraRef`. Fields that are set will be updated. */ +export interface InfraRefPatch { + /** 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; + /** Commit this ref points to */ + commitId?: string; +} +export interface UpdateInfraStoreInput { + clientMutationId?: string; + /** Unique store identifier */ + id: string; + /** An object where the defined keys will be set on the `InfraStore` being updated. */ + infraStorePatch: InfraStorePatch; +} +/** Represents an update to a `InfraStore`. Fields that are set will be updated. */ +export interface InfraStorePatch { + /** Unique store identifier */ + id?: string; + /** Human-readable store name */ + name?: string; + /** Opaque store partition key for the global tier */ + scopeId?: string; + /** Current root object hash of this store */ + hash?: string; + /** Timestamp of store creation */ + createdAt?: string; +} +export interface UpdateInfraObjectInput { + clientMutationId?: string; + /** Content-addressed UUID v5 — deterministic hash of (data, kids, ktree) */ + id: string; + /** Opaque store partition key for the global tier */ + scopeId: string; + /** An object where the defined keys will be set on the `InfraObject` being updated. */ + infraObjectPatch: InfraObjectPatch; +} +/** Represents an update to a `InfraObject`. Fields that are set will be updated. */ +export interface InfraObjectPatch { + /** Content-addressed UUID v5 — deterministic hash of (data, kids, ktree) */ + id?: string; + /** Opaque store partition key for the global tier */ + scopeId?: string; + /** Ordered array of child object IDs */ + kids?: string[]; + /** Ordered array of child path names (parallel to kids) */ + ktree?: string[]; + /** Payload data for this object node */ + data?: unknown; + /** Timestamp of object creation */ + createdAt?: string; +} +export interface UpdateInfraCommitInput { + clientMutationId?: string; + /** Unique commit identifier */ + id: string; + /** Opaque store partition key for the global tier */ + scopeId: string; + /** An object where the defined keys will be set on the `InfraCommit` being updated. */ + infraCommitPatch: InfraCommitPatch; +} +/** Represents an update to a `InfraCommit`. Fields that are set will be updated. */ +export interface InfraCommitPatch { + /** Unique commit identifier */ + id?: string; + /** Optional commit message */ + message?: string; + /** Opaque store partition key for the global tier */ + scopeId?: string; + /** Store this commit belongs to */ + storeId?: string; + /** Parent commit IDs (supports merge commits) */ + parentIds?: string[]; + /** User who authored the changes */ + authorId?: string; + /** User who committed (may differ from author) */ + committerId?: string; + /** Root object ID of the tree snapshot at this commit */ + treeId?: string; + /** Commit timestamp */ + date?: string; +} +export interface UpdateDbPresetInput { + clientMutationId?: string; + /** Unique preset identifier */ + id: string; + /** An object where the defined keys will be set on the `DbPreset` being updated. */ + dbPresetPatch: DbPresetPatch; +} +/** Represents an update to a `DbPreset`. Fields that are set will be updated. */ +export interface DbPresetPatch { + /** Unique preset identifier */ + id?: string; + /** Infra Merkle store holding this preset's history (stamped by the versioned trigger) */ + storeId?: string; + /** Preset slug (unique per scope); the preset's path in the infra tree is [db_preset, slug] */ + slug?: string; + /** Preset definition (modules + options) — the readily-cached head; history lives in the infra store */ + definition?: unknown; + /** Infra store commit for the current definition (stamped by the versioned trigger on every write) */ + commitId?: 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; + /** Human-readable preset name */ + label?: string; + /** Human-readable description of the preset */ + description?: string; + /** Whether this preset is selectable for new databases */ + active?: boolean; + /** Timestamp of preset creation */ + createdAt?: string; + /** Timestamp of last modification */ + updatedAt?: string; +} +export interface UpdatePlatformNamespaceInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `PlatformNamespace` being updated. */ + platformNamespacePatch: PlatformNamespacePatch; +} +/** Represents an update to a `PlatformNamespace`. Fields that are set will be updated. */ +export interface PlatformNamespacePatch { + id?: string; + createdAt?: string; + updatedAt?: string; + /** Human-readable namespace name (e.g. default, production, oauth) */ + name?: string; + /** Globally unique computed namespace identifier via inflection.underscore */ + namespaceName?: string; + /** Optional human-readable description of this namespace */ + description?: string; + /** Whether this namespace is active (soft-disable for filtering) */ + isActive?: boolean; + /** Namespace provisioning lifecycle status: pending, provisioning, active, failed */ + status?: string; + /** Most recent provisioning or reconcile error message */ + lastError?: string; + /** Key/value pairs for selecting and filtering namespaces */ + labels?: unknown; + /** Freeform metadata for tooling and operational notes */ + annotations?: unknown; + /** true = provisioned by the platform via jobs, false = unmanaged/platform-native (bootstrapped externally) */ + isManaged?: boolean; +} +export interface UpdateNamespaceInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `Namespace` being updated. */ + namespacePatch: NamespacePatch; +} +/** Represents an update to a `Namespace`. Fields that are set will be updated. */ +export interface NamespacePatch { + id?: string; + createdAt?: string; + updatedAt?: string; + /** Human-readable namespace name (e.g. default, production, oauth) */ + name?: string; + /** Globally unique computed namespace identifier via inflection.underscore */ + namespaceName?: string; + /** Optional human-readable description of this namespace */ + description?: string; + /** Whether this namespace is active (soft-disable for filtering) */ + isActive?: boolean; + /** Namespace provisioning lifecycle status: pending, provisioning, active, failed */ + status?: string; + /** Most recent provisioning or reconcile error message */ + lastError?: string; + /** Key/value pairs for selecting and filtering namespaces */ + labels?: unknown; + /** Freeform metadata for tooling and operational notes */ + annotations?: unknown; + /** Database that owns this resource (database-scoped isolation) */ + databaseId?: string; + /** true = provisioned by the platform via jobs, false = unmanaged/platform-native (bootstrapped externally) */ + isManaged?: boolean; +} +export interface UpdatePlatformNamespaceEventInput { + clientMutationId?: string; + /** Event timestamp (partition key) */ + createdAt: string; + /** Unique event identifier */ + id: string; + /** An object where the defined keys will be set on the `PlatformNamespaceEvent` being updated. */ + platformNamespaceEventPatch: PlatformNamespaceEventPatch; +} +/** Represents an update to a `PlatformNamespaceEvent`. Fields that are set will be updated. */ +export interface PlatformNamespaceEventPatch { + /** Event timestamp (partition key) */ + createdAt?: string; + /** Unique event identifier */ + id?: string; + /** Namespace this event belongs to */ + namespaceId?: string; + /** Event type: created, activated, deactivated, labels_updated, annotations_updated, renamed */ + eventType?: string; + /** User who triggered this event (NULL for system/automated) */ + actorId?: string; + /** Human-readable description of the event */ + message?: string; + /** Structured context (old/new values, labels diff, etc.) */ + metadata?: unknown; + /** CPU usage in millicores at time of event */ + cpuMillicores?: number; + /** Memory usage in bytes at time of event */ + memoryBytes?: string; + /** Storage usage in bytes at time of event */ + storageBytes?: string; + /** Network ingress in bytes during event window */ + networkIngressBytes?: string; + /** Network egress in bytes during event window */ + networkEgressBytes?: string; + /** Number of active pods in the namespace at time of event */ + podCount?: number; + /** Additional resource metrics (gpu, replicas, quotas, etc.) */ + metrics?: unknown; +} +export interface UpdateNamespaceEventInput { + clientMutationId?: string; + /** Event timestamp (partition key) */ + createdAt: string; + /** Unique event identifier */ + id: string; + /** An object where the defined keys will be set on the `NamespaceEvent` being updated. */ + namespaceEventPatch: NamespaceEventPatch; +} +/** Represents an update to a `NamespaceEvent`. Fields that are set will be updated. */ +export interface NamespaceEventPatch { + /** Event timestamp (partition key) */ + createdAt?: string; + /** Unique event identifier */ + id?: string; + /** Namespace this event belongs to */ + namespaceId?: string; + /** Event type: created, activated, deactivated, labels_updated, annotations_updated, renamed */ + eventType?: string; + /** User who triggered this event (NULL for system/automated) */ + actorId?: string; + /** Human-readable description of the event */ + message?: string; + /** Structured context (old/new values, labels diff, etc.) */ + metadata?: unknown; + /** CPU usage in millicores at time of event */ + cpuMillicores?: number; + /** Memory usage in bytes at time of event */ + memoryBytes?: string; + /** Storage usage in bytes at time of event */ + storageBytes?: string; + /** Network ingress in bytes during event window */ + networkIngressBytes?: string; + /** Network egress in bytes during event window */ + networkEgressBytes?: string; + /** Number of active pods in the namespace at time of event */ + podCount?: number; + /** Additional resource metrics (gpu, replicas, quotas, etc.) */ + metrics?: unknown; + /** Database that owns this resource (database-scoped isolation) */ + databaseId?: string; +} +export interface DeleteInfraRefInput { + clientMutationId?: string; + /** Unique ref identifier */ + id: string; + /** Opaque store partition key for the global tier */ + scopeId: string; +} +export interface DeleteInfraStoreInput { + clientMutationId?: string; + /** Unique store identifier */ + id: string; +} +export interface DeleteInfraObjectInput { + 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 DeleteInfraCommitInput { + clientMutationId?: string; + /** Unique commit identifier */ + id: string; + /** Opaque store partition key for the global tier */ + scopeId: string; +} +export interface DeleteDbPresetInput { + clientMutationId?: string; + /** Unique preset identifier */ + id: string; +} +export interface DeletePlatformNamespaceInput { + clientMutationId?: string; + id: string; +} +export interface DeleteNamespaceInput { + clientMutationId?: string; + id: string; +} +export interface DeletePlatformNamespaceEventInput { + clientMutationId?: string; + /** Event timestamp (partition key) */ + createdAt: string; + /** Unique event identifier */ + id: string; +} +export interface DeleteNamespaceEventInput { + clientMutationId?: string; + /** Event timestamp (partition key) */ + createdAt: string; + /** Unique event identifier */ + id: 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 connection to a list of `InfraGetAllRecord` values. */ +export interface InfraGetAllConnection { + nodes: InfraGetAllRecord[]; + edges: InfraGetAllEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `InfraRef` values. */ +export interface InfraRefConnection { + nodes: InfraRef[]; + edges: InfraRefEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `InfraStore` values. */ +export interface InfraStoreConnection { + nodes: InfraStore[]; + edges: InfraStoreEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `InfraObject` values. */ +export interface InfraObjectConnection { + nodes: InfraObject[]; + edges: InfraObjectEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `InfraCommit` values. */ +export interface InfraCommitConnection { + nodes: InfraCommit[]; + edges: InfraCommitEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `DbPreset` values. */ +export interface DbPresetConnection { + nodes: DbPreset[]; + edges: DbPresetEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `PlatformNamespace` values. */ +export interface PlatformNamespaceConnection { + nodes: PlatformNamespace[]; + edges: PlatformNamespaceEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `Namespace` values. */ +export interface NamespaceConnection { + nodes: Namespace[]; + edges: NamespaceEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `PlatformNamespaceEvent` values. */ +export interface PlatformNamespaceEventConnection { + nodes: PlatformNamespaceEvent[]; + edges: PlatformNamespaceEventEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `NamespaceEvent` values. */ +export interface NamespaceEventConnection { + nodes: NamespaceEvent[]; + edges: NamespaceEventEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** Root meta schema type */ +export interface MetaSchema { + tables: MetaTable[]; +} +export interface InfraInitEmptyRepoPayload { + clientMutationId?: string | null; +} +export interface InfraSetDataAtPathPayload { + clientMutationId?: string | null; + result?: string | null; +} +export interface InfraInsertNodeAtPathPayload { + clientMutationId?: string | null; + result?: string | null; +} +export interface CreateInfraRefPayload { + clientMutationId?: string | null; + /** The `InfraRef` that was created by this mutation. */ + infraRef?: InfraRef | null; + infraRefEdge?: InfraRefEdge | null; +} +export interface CreateInfraStorePayload { + clientMutationId?: string | null; + /** The `InfraStore` that was created by this mutation. */ + infraStore?: InfraStore | null; + infraStoreEdge?: InfraStoreEdge | null; +} +export interface CreateInfraObjectPayload { + clientMutationId?: string | null; + /** The `InfraObject` that was created by this mutation. */ + infraObject?: InfraObject | null; + infraObjectEdge?: InfraObjectEdge | null; +} +export interface CreateInfraCommitPayload { + clientMutationId?: string | null; + /** The `InfraCommit` that was created by this mutation. */ + infraCommit?: InfraCommit | null; + infraCommitEdge?: InfraCommitEdge | null; +} +export interface CreateDbPresetPayload { + clientMutationId?: string | null; + /** The `DbPreset` that was created by this mutation. */ + dbPreset?: DbPreset | null; + dbPresetEdge?: DbPresetEdge | null; +} +export interface CreatePlatformNamespacePayload { + clientMutationId?: string | null; + /** The `PlatformNamespace` that was created by this mutation. */ + platformNamespace?: PlatformNamespace | null; + platformNamespaceEdge?: PlatformNamespaceEdge | null; +} +export interface CreateNamespacePayload { + clientMutationId?: string | null; + /** The `Namespace` that was created by this mutation. */ + namespace?: Namespace | null; + namespaceEdge?: NamespaceEdge | null; +} +export interface CreatePlatformNamespaceEventPayload { + clientMutationId?: string | null; + /** The `PlatformNamespaceEvent` that was created by this mutation. */ + platformNamespaceEvent?: PlatformNamespaceEvent | null; + platformNamespaceEventEdge?: PlatformNamespaceEventEdge | null; +} +export interface CreateNamespaceEventPayload { + clientMutationId?: string | null; + /** The `NamespaceEvent` that was created by this mutation. */ + namespaceEvent?: NamespaceEvent | null; + namespaceEventEdge?: NamespaceEventEdge | null; +} +export interface UpdateInfraRefPayload { + clientMutationId?: string | null; + /** The `InfraRef` that was updated by this mutation. */ + infraRef?: InfraRef | null; + infraRefEdge?: InfraRefEdge | null; +} +export interface UpdateInfraStorePayload { + clientMutationId?: string | null; + /** The `InfraStore` that was updated by this mutation. */ + infraStore?: InfraStore | null; + infraStoreEdge?: InfraStoreEdge | null; +} +export interface UpdateInfraObjectPayload { + clientMutationId?: string | null; + /** The `InfraObject` that was updated by this mutation. */ + infraObject?: InfraObject | null; + infraObjectEdge?: InfraObjectEdge | null; +} +export interface UpdateInfraCommitPayload { + clientMutationId?: string | null; + /** The `InfraCommit` that was updated by this mutation. */ + infraCommit?: InfraCommit | null; + infraCommitEdge?: InfraCommitEdge | null; +} +export interface UpdateDbPresetPayload { + clientMutationId?: string | null; + /** The `DbPreset` that was updated by this mutation. */ + dbPreset?: DbPreset | null; + dbPresetEdge?: DbPresetEdge | null; +} +export interface UpdatePlatformNamespacePayload { + clientMutationId?: string | null; + /** The `PlatformNamespace` that was updated by this mutation. */ + platformNamespace?: PlatformNamespace | null; + platformNamespaceEdge?: PlatformNamespaceEdge | null; +} +export interface UpdateNamespacePayload { + clientMutationId?: string | null; + /** The `Namespace` that was updated by this mutation. */ + namespace?: Namespace | null; + namespaceEdge?: NamespaceEdge | null; +} +export interface UpdatePlatformNamespaceEventPayload { + clientMutationId?: string | null; + /** The `PlatformNamespaceEvent` that was updated by this mutation. */ + platformNamespaceEvent?: PlatformNamespaceEvent | null; + platformNamespaceEventEdge?: PlatformNamespaceEventEdge | null; +} +export interface UpdateNamespaceEventPayload { + clientMutationId?: string | null; + /** The `NamespaceEvent` that was updated by this mutation. */ + namespaceEvent?: NamespaceEvent | null; + namespaceEventEdge?: NamespaceEventEdge | null; +} +export interface DeleteInfraRefPayload { + clientMutationId?: string | null; + /** The `InfraRef` that was deleted by this mutation. */ + infraRef?: InfraRef | null; + infraRefEdge?: InfraRefEdge | null; +} +export interface DeleteInfraStorePayload { + clientMutationId?: string | null; + /** The `InfraStore` that was deleted by this mutation. */ + infraStore?: InfraStore | null; + infraStoreEdge?: InfraStoreEdge | null; +} +export interface DeleteInfraObjectPayload { + clientMutationId?: string | null; + /** The `InfraObject` that was deleted by this mutation. */ + infraObject?: InfraObject | null; + infraObjectEdge?: InfraObjectEdge | null; +} +export interface DeleteInfraCommitPayload { + clientMutationId?: string | null; + /** The `InfraCommit` that was deleted by this mutation. */ + infraCommit?: InfraCommit | null; + infraCommitEdge?: InfraCommitEdge | null; +} +export interface DeleteDbPresetPayload { + clientMutationId?: string | null; + /** The `DbPreset` that was deleted by this mutation. */ + dbPreset?: DbPreset | null; + dbPresetEdge?: DbPresetEdge | null; +} +export interface DeletePlatformNamespacePayload { + clientMutationId?: string | null; + /** The `PlatformNamespace` that was deleted by this mutation. */ + platformNamespace?: PlatformNamespace | null; + platformNamespaceEdge?: PlatformNamespaceEdge | null; +} +export interface DeleteNamespacePayload { + clientMutationId?: string | null; + /** The `Namespace` that was deleted by this mutation. */ + namespace?: Namespace | null; + namespaceEdge?: NamespaceEdge | null; +} +export interface DeletePlatformNamespaceEventPayload { + clientMutationId?: string | null; + /** The `PlatformNamespaceEvent` that was deleted by this mutation. */ + platformNamespaceEvent?: PlatformNamespaceEvent | null; + platformNamespaceEventEdge?: PlatformNamespaceEventEdge | null; +} +export interface DeleteNamespaceEventPayload { + clientMutationId?: string | null; + /** The `NamespaceEvent` that was deleted by this mutation. */ + namespaceEvent?: NamespaceEvent | null; + namespaceEventEdge?: NamespaceEventEdge | null; +} +export interface ProvisionBucketPayload { + /** Whether provisioning succeeded */ + success: boolean; + /** The S3 bucket name that was provisioned */ + bucketName: string; + /** The access type applied */ + accessType: string; + /** The storage provider used */ + provider: string; + /** The S3 endpoint (null for AWS S3 default) */ + endpoint?: string | null; + /** Error message if provisioning failed */ + error?: string | null; +} +/** A `InfraGetAllRecord` edge in the connection. */ +export interface InfraGetAllEdge { + cursor?: string | null; + /** The `InfraGetAllRecord` at the end of the edge. */ + node?: InfraGetAllRecord | null; +} +/** Information about pagination in a connection. */ +export interface PageInfo { + /** 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; + /** When paginating forwards, the cursor to continue. */ + endCursor?: string | null; +} +/** A `InfraRef` edge in the connection. */ +export interface InfraRefEdge { + cursor?: string | null; + /** The `InfraRef` at the end of the edge. */ + node?: InfraRef | null; +} +/** A `InfraStore` edge in the connection. */ +export interface InfraStoreEdge { + cursor?: string | null; + /** The `InfraStore` at the end of the edge. */ + node?: InfraStore | null; +} +/** A `InfraObject` edge in the connection. */ +export interface InfraObjectEdge { + cursor?: string | null; + /** The `InfraObject` at the end of the edge. */ + node?: InfraObject | null; +} +/** A `InfraCommit` edge in the connection. */ +export interface InfraCommitEdge { + cursor?: string | null; + /** The `InfraCommit` at the end of the edge. */ + node?: InfraCommit | 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 `PlatformNamespace` edge in the connection. */ +export interface PlatformNamespaceEdge { + cursor?: string | null; + /** The `PlatformNamespace` at the end of the edge. */ + node?: PlatformNamespace | null; +} +/** A `Namespace` edge in the connection. */ +export interface NamespaceEdge { + cursor?: string | null; + /** The `Namespace` at the end of the edge. */ + node?: Namespace | null; +} +/** A `PlatformNamespaceEvent` edge in the connection. */ +export interface PlatformNamespaceEventEdge { + cursor?: string | null; + /** The `PlatformNamespaceEvent` at the end of the edge. */ + node?: PlatformNamespaceEvent | null; +} +/** A `NamespaceEvent` edge in the connection. */ +export interface NamespaceEventEdge { + cursor?: string | null; + /** The `NamespaceEvent` at the end of the edge. */ + node?: NamespaceEvent | null; +} +/** Information about a database table */ +export interface MetaTable { + name: string; + schemaName: string; + fields: MetaField[]; + indexes: MetaIndex[]; + constraints: MetaConstraints; + foreignKeyConstraints: MetaForeignKeyConstraint[]; + primaryKeyConstraints: MetaPrimaryKeyConstraint[]; + uniqueConstraints: MetaUniqueConstraint[]; + relations: MetaRelations; + inflection: MetaInflection; + query: MetaQuery; + /** Storage metadata (null if not a storage table) */ + storage?: MetaStorage | null; + /** Search metadata (null if no search configured) */ + search?: MetaSearch | null; + /** i18n metadata (null if no @i18n tag) */ + i18n?: MetaI18n | null; + /** Realtime metadata (null if no @realtime tag) */ + realtime?: MetaRealtime | null; +} +/** Information about a table field/column */ +export interface MetaField { + name: string; + type: MetaType; + isNotNull: boolean; + hasDefault: boolean; + isPrimaryKey: boolean; + isForeignKey: boolean; + description?: string | null; + /** Enum metadata if this field has an enum type */ + enumValues?: MetaEnum | null; +} +/** Information about a database index */ +export interface MetaIndex { + name: string; + isUnique: boolean; + isPrimary: boolean; + columns: string[]; + fields?: MetaField[] | null; +} +/** Table constraints */ +export interface MetaConstraints { + primaryKey?: MetaPrimaryKeyConstraint | null; + unique: MetaUniqueConstraint[]; + foreignKey: MetaForeignKeyConstraint[]; +} +/** Information about a foreign key constraint */ +export interface MetaForeignKeyConstraint { + name: string; + fields: MetaField[]; + referencedTable: string; + referencedFields: string[]; + refFields?: MetaField[] | null; + refTable?: MetaRefTable | null; +} +/** Information about a primary key constraint */ +export interface MetaPrimaryKeyConstraint { + name: string; + fields: MetaField[]; +} +/** Information about a unique constraint */ +export interface MetaUniqueConstraint { + name: string; + fields: MetaField[]; +} +/** Table relations */ +export interface MetaRelations { + belongsTo: MetaBelongsToRelation[]; + has: MetaHasRelation[]; + hasOne: MetaHasRelation[]; + hasMany: MetaHasRelation[]; + manyToMany: MetaManyToManyRelation[]; +} +/** Table inflection names */ +export interface MetaInflection { + tableType: string; + allRows: string; + connection: string; + edge: string; + filterType?: string | null; + orderByType: string; + conditionType: string; + patchType?: string | null; + createInputType: string; + createPayloadType: string; + updatePayloadType?: string | null; + deletePayloadType: string; +} +/** Table query/mutation names */ +export interface MetaQuery { + all: string; + one?: string | null; + create?: string | null; + update?: string | null; + delete?: string | null; +} +/** Storage metadata for a table */ +export interface MetaStorage { + /** Whether this table is a storage files table */ + isFilesTable: boolean; + /** Whether this table is a storage buckets table */ + isBucketsTable: boolean; +} +/** Search metadata for a table */ +export interface MetaSearch { + /** Active search algorithms on this table */ + algorithms: string[]; + /** Searchable columns with their algorithm */ + columns: MetaSearchColumn[]; + /** Whether unifiedSearch composite filter is available */ + hasUnifiedSearch: boolean; + /** Per-table search configuration */ + config?: MetaSearchConfig | null; +} +/** i18n metadata for a table with @i18n tag */ +export interface MetaI18n { + /** Name of the translation table */ + translationTable: string; + /** Fields that are translatable */ + translatableFields: MetaI18nField[]; +} +/** Realtime metadata for a table with @realtime tag */ +export interface MetaRealtime { + /** The generated subscription field name (e.g. onPostChanged) */ + subscriptionFieldName: string; +} +/** Information about a PostgreSQL type */ +export interface MetaType { + pgType: string; + gqlType: string; + isArray: boolean; + isNotNull?: boolean | null; + hasDefault?: boolean | null; + subtype?: string | null; +} +/** Information about a PostgreSQL enum type */ +export interface MetaEnum { + /** The PostgreSQL enum type name */ + name: string; + /** Allowed values for this enum */ + values: string[]; +} +/** Reference to a related table */ +export interface MetaRefTable { + name: string; +} +/** A belongs-to (forward FK) relation */ +export interface MetaBelongsToRelation { + fieldName?: string | null; + isUnique: boolean; + type?: string | null; + keys: MetaField[]; + references: MetaRefTable; +} +/** A has-one or has-many (reverse FK) relation */ +export interface MetaHasRelation { + fieldName?: string | null; + isUnique: boolean; + type?: string | null; + keys: MetaField[]; + referencedBy: MetaRefTable; +} +/** A many-to-many relation via junction table */ +export interface MetaManyToManyRelation { + fieldName?: string | null; + type?: string | null; + junctionTable: MetaRefTable; + junctionLeftConstraint: MetaForeignKeyConstraint; + junctionLeftKeyAttributes: MetaField[]; + junctionRightConstraint: MetaForeignKeyConstraint; + junctionRightKeyAttributes: MetaField[]; + leftKeyAttributes: MetaField[]; + rightKeyAttributes: MetaField[]; + rightTable: MetaRefTable; +} +/** A searchable column with its algorithm */ +export interface MetaSearchColumn { + /** Column name (camelCase) */ + name: string; + /** Search algorithm: tsvector, bm25, trgm, or vector */ + algorithm: string; +} +/** Per-table search configuration from @searchConfig smart tag */ +export interface MetaSearchConfig { + /** JSON-encoded per-adapter score weights */ + weights?: string | null; + /** Whether recency boosting is enabled */ + boostRecent: boolean; + /** Field used for recency decay */ + boostRecencyField?: string | null; + /** Exponential decay factor per day */ + boostRecencyDecay?: number | null; +} +/** A translatable field */ +export interface MetaI18nField { + /** GraphQL field name */ + name: string; + /** PostgreSQL column type (text, citext) */ + type: string; +} diff --git a/sdk/constructive-react/src/infra/types.ts b/sdk/constructive-react/src/infra/types.ts new file mode 100644 index 0000000000..a3cd6a8744 --- /dev/null +++ b/sdk/constructive-react/src/infra/types.ts @@ -0,0 +1,341 @@ +/** + * Entity types and filter types + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +export interface InfraGetAllRecord { + path: string[] | null; + data: unknown | null; +} +export interface InfraRef { + id: string | null; + name: string | null; + scopeId: string | null; + storeId: string | null; + commitId: string | null; +} +export interface InfraStore { + id: string | null; + name: string | null; + scopeId: string | null; + hash: string | null; + createdAt: string | null; +} +export interface InfraObject { + id: string | null; + scopeId: string | null; + kids: string[] | null; + ktree: string[] | null; + data: unknown | null; + createdAt: string | null; +} +export interface InfraCommit { + id: string | null; + message: string | null; + scopeId: string | null; + storeId: string | null; + parentIds: string[] | null; + authorId: string | null; + committerId: string | null; + treeId: string | null; + date: string | null; +} +export interface DbPreset { + id: string | null; + storeId: string | null; + slug: string | null; + definition: unknown | null; + commitId: string | null; + modulesHash: string | null; + label: string | null; + description: string | null; + active: boolean | null; + createdAt: string | null; + updatedAt: string | null; +} +export interface PlatformNamespace { + id: string | null; + createdAt: string | null; + updatedAt: string | null; + name: string | null; + namespaceName: string | null; + description: string | null; + isActive: boolean | null; + status: string | null; + lastError: string | null; + labels: unknown | null; + annotations: unknown | null; + isManaged: boolean | null; +} +export interface Namespace { + id: string | null; + createdAt: string | null; + updatedAt: string | null; + name: string | null; + namespaceName: string | null; + description: string | null; + isActive: boolean | null; + status: string | null; + lastError: string | null; + labels: unknown | null; + annotations: unknown | null; + databaseId: string | null; + isManaged: boolean | null; +} +export interface PlatformNamespaceEvent { + createdAt: string | null; + id: string | null; + namespaceId: string | null; + eventType: string | null; + actorId: string | null; + message: string | null; + metadata: unknown | null; + cpuMillicores: number | null; + memoryBytes: string | null; + storageBytes: string | null; + networkIngressBytes: string | null; + networkEgressBytes: string | null; + podCount: number | null; + metrics: unknown | null; +} +export interface NamespaceEvent { + createdAt: string | null; + id: string | null; + namespaceId: string | null; + eventType: string | null; + actorId: string | null; + message: string | null; + metadata: unknown | null; + cpuMillicores: number | null; + memoryBytes: string | null; + storageBytes: string | null; + networkIngressBytes: string | null; + networkEgressBytes: string | null; + podCount: number | null; + metrics: unknown | null; + databaseId: 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/modules/README.md b/sdk/constructive-react/src/modules/README.md index 8d9548e2d5..19b03af691 100644 --- a/sdk/constructive-react/src/modules/README.md +++ b/sdk/constructive-react/src/modules/README.md @@ -8,7 +8,7 @@ ## Overview -- **Tables:** 61 +- **Tables:** 66 - **Custom queries:** 2 - **Custom mutations:** 10 diff --git a/sdk/constructive-react/src/modules/hooks/README.md b/sdk/constructive-react/src/modules/hooks/README.md index caebd24175..0a5ea05a7d 100644 --- a/sdk/constructive-react/src/modules/hooks/README.md +++ b/sdk/constructive-react/src/modules/hooks/README.md @@ -42,21 +42,11 @@ function App() { | `useCreateMembershipTypesModuleMutation` | Mutation | Create a membershipTypesModule | | `useUpdateMembershipTypesModuleMutation` | Mutation | Update a membershipTypesModule | | `useDeleteMembershipTypesModuleMutation` | Mutation | Delete a membershipTypesModule | -| `useUserStateModulesQuery` | Query | List all userStateModules | -| `useUserStateModuleQuery` | Query | Get one userStateModule | -| `useCreateUserStateModuleMutation` | Mutation | Create a userStateModule | -| `useUpdateUserStateModuleMutation` | Mutation | Update a userStateModule | -| `useDeleteUserStateModuleMutation` | Mutation | Delete a userStateModule | | `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. | | `useUpdateSessionSecretsModuleMutation` | 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. | | `useDeleteSessionSecretsModuleMutation` | 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. | -| `useConfigSecretsOrgModulesQuery` | Query | Config row for the config_secrets_org_module, which provisions an organization-scoped encrypted key-value secrets store with manage_secrets permission and entity-membership RLS. | -| `useConfigSecretsOrgModuleQuery` | Query | Config row for the config_secrets_org_module, which provisions an organization-scoped encrypted key-value secrets store with manage_secrets permission and entity-membership RLS. | -| `useCreateConfigSecretsOrgModuleMutation` | Mutation | Config row for the config_secrets_org_module, which provisions an organization-scoped encrypted key-value secrets store with manage_secrets permission and entity-membership RLS. | -| `useUpdateConfigSecretsOrgModuleMutation` | Mutation | Config row for the config_secrets_org_module, which provisions an organization-scoped encrypted key-value secrets store with manage_secrets permission and entity-membership RLS. | -| `useDeleteConfigSecretsOrgModuleMutation` | Mutation | Config row for the config_secrets_org_module, which provisions an organization-scoped encrypted key-value secrets store with manage_secrets permission and entity-membership RLS. | | `useDevicesModulesQuery` | Query | List all devicesModules | | `useDevicesModuleQuery` | Query | Get one devicesModule | | `useCreateDevicesModuleMutation` | Mutation | Create a devicesModule | @@ -67,6 +57,16 @@ function App() { | `useCreateI18NModuleMutation` | Mutation | Create a i18NModule | | `useUpdateI18NModuleMutation` | Mutation | Update a i18NModule | | `useDeleteI18NModuleMutation` | Mutation | Delete a i18NModule | +| `useUserSettingsModulesQuery` | Query | List all userSettingsModules | +| `useUserSettingsModuleQuery` | Query | Get one userSettingsModule | +| `useCreateUserSettingsModuleMutation` | Mutation | Create a userSettingsModule | +| `useUpdateUserSettingsModuleMutation` | Mutation | Update a userSettingsModule | +| `useDeleteUserSettingsModuleMutation` | Mutation | Delete a userSettingsModule | +| `useUserStateModulesQuery` | Query | List all userStateModules | +| `useUserStateModuleQuery` | Query | Get one userStateModule | +| `useCreateUserStateModuleMutation` | Mutation | Create a userStateModule | +| `useUpdateUserStateModuleMutation` | Mutation | Update a userStateModule | +| `useDeleteUserStateModuleMutation` | Mutation | Delete a userStateModule | | `useUserCredentialsModulesQuery` | Query | Per-user bcrypt credential store (password hashes, API key hashes). Always user-scoped with AuthzDirectOwner RLS. Consumed by user_auth_module, identity_providers_module, and bootstrap procedures. | @@ -82,16 +82,6 @@ function App() { | `useDeleteUserCredentialsModuleMutation` | Mutation | Per-user bcrypt credential store (password hashes, API key hashes). Always user-scoped with AuthzDirectOwner RLS. Consumed by user_auth_module, identity_providers_module, and bootstrap procedures. | -| `useUserSettingsModulesQuery` | Query | List all userSettingsModules | -| `useUserSettingsModuleQuery` | Query | Get one userSettingsModule | -| `useCreateUserSettingsModuleMutation` | Mutation | Create a userSettingsModule | -| `useUpdateUserSettingsModuleMutation` | Mutation | Update a userSettingsModule | -| `useDeleteUserSettingsModuleMutation` | Mutation | Delete a userSettingsModule | -| `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 | @@ -122,6 +112,11 @@ function App() { | `useCreateWebauthnCredentialsModuleMutation` | Mutation | Config row for the webauthn_credentials_module, which provisions the per-user WebAuthn/passkey credentials table (public key, counter, transports, device type, backup state) mirroring crypto_addresses_module. The sibling webauthn_auth_module holds RP config and the registration/sign-in challenge state. | | `useUpdateWebauthnCredentialsModuleMutation` | Mutation | Config row for the webauthn_credentials_module, which provisions the per-user WebAuthn/passkey credentials table (public key, counter, transports, device type, backup state) mirroring crypto_addresses_module. The sibling webauthn_auth_module holds RP config and the registration/sign-in challenge state. | | `useDeleteWebauthnCredentialsModuleMutation` | Mutation | Config row for the webauthn_credentials_module, which provisions the per-user WebAuthn/passkey credentials table (public key, counter, transports, device type, backup state) mirroring crypto_addresses_module. The sibling webauthn_auth_module holds RP config and the registration/sign-in challenge state. | +| `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 | | `useCryptoAddressesModulesQuery` | Query | List all cryptoAddressesModules | | `useCryptoAddressesModuleQuery` | Query | Get one cryptoAddressesModule | | `useCreateCryptoAddressesModuleMutation` | Mutation | Create a cryptoAddressesModule | @@ -132,56 +127,6 @@ function App() { | `useCreateDenormalizedTableFieldMutation` | Mutation | Create a denormalizedTableField | | `useUpdateDenormalizedTableFieldMutation` | Mutation | Update a denormalizedTableField | | `useDeleteDenormalizedTableFieldMutation` | Mutation | Delete a denormalizedTableField | -| `useIdentityProvidersModulesQuery` | Query | Entity-aware config row for the identity_providers_module, which provisions a per-database - identity_providers table holding OAuth2 / OIDC (and future SAML) provider definitions. - The scope column determines which config_secrets_module table the rotate proc targets - (app_secrets for app scope, org_secrets for org scope). When scope = platform, - the secrets table gets a database_id column and platform-level RLS via - AuthzRelatedEntityMembership through database.owner_id. - Scoping matrix: - scope=app → per-database flat, in-app admin manages - scope=platform → per-database, platform admin manages (generate:constructive) - scope=org → per-org tenant, org admin manages | -| `useIdentityProvidersModuleQuery` | Query | Entity-aware config row for the identity_providers_module, which provisions a per-database - identity_providers table holding OAuth2 / OIDC (and future SAML) provider definitions. - The scope column determines which config_secrets_module table the rotate proc targets - (app_secrets for app scope, org_secrets for org scope). When scope = platform, - the secrets table gets a database_id column and platform-level RLS via - AuthzRelatedEntityMembership through database.owner_id. - Scoping matrix: - scope=app → per-database flat, in-app admin manages - scope=platform → per-database, platform admin manages (generate:constructive) - scope=org → per-org tenant, org admin manages | -| `useCreateIdentityProvidersModuleMutation` | Mutation | Entity-aware config row for the identity_providers_module, which provisions a per-database - identity_providers table holding OAuth2 / OIDC (and future SAML) provider definitions. - The scope column determines which config_secrets_module table the rotate proc targets - (app_secrets for app scope, org_secrets for org scope). When scope = platform, - the secrets table gets a database_id column and platform-level RLS via - AuthzRelatedEntityMembership through database.owner_id. - Scoping matrix: - scope=app → per-database flat, in-app admin manages - scope=platform → per-database, platform admin manages (generate:constructive) - scope=org → per-org tenant, org admin manages | -| `useUpdateIdentityProvidersModuleMutation` | Mutation | Entity-aware config row for the identity_providers_module, which provisions a per-database - identity_providers table holding OAuth2 / OIDC (and future SAML) provider definitions. - The scope column determines which config_secrets_module table the rotate proc targets - (app_secrets for app scope, org_secrets for org scope). When scope = platform, - the secrets table gets a database_id column and platform-level RLS via - AuthzRelatedEntityMembership through database.owner_id. - Scoping matrix: - scope=app → per-database flat, in-app admin manages - scope=platform → per-database, platform admin manages (generate:constructive) - scope=org → per-org tenant, org admin manages | -| `useDeleteIdentityProvidersModuleMutation` | Mutation | Entity-aware config row for the identity_providers_module, which provisions a per-database - identity_providers table holding OAuth2 / OIDC (and future SAML) provider definitions. - The scope column determines which config_secrets_module table the rotate proc targets - (app_secrets for app scope, org_secrets for org scope). When scope = platform, - the secrets table gets a database_id column and platform-level RLS via - AuthzRelatedEntityMembership through database.owner_id. - Scoping matrix: - scope=app → per-database flat, in-app admin manages - scope=platform → per-database, platform admin manages (generate:constructive) - scope=org → per-org tenant, org admin manages | | `useRlsModulesQuery` | Query | List all rlsModules | | `useRlsModuleQuery` | Query | Get one rlsModule | | `useCreateRlsModuleMutation` | Mutation | Create a rlsModule | @@ -217,71 +162,166 @@ function App() { | `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. | -| `useDatabaseProvisionModulesQuery` | Query | Tracks database provisioning requests and their status. The BEFORE INSERT trigger creates the database and sets database_id before RLS policies are evaluated. | -| `useDatabaseProvisionModuleQuery` | Query | Tracks database provisioning requests and their status. The BEFORE INSERT trigger creates the database and sets database_id before RLS policies are evaluated. | -| `useCreateDatabaseProvisionModuleMutation` | Mutation | Tracks database provisioning requests and their status. The BEFORE INSERT trigger creates the database and sets database_id before RLS policies are evaluated. | -| `useUpdateDatabaseProvisionModuleMutation` | Mutation | Tracks database provisioning requests and their status. The BEFORE INSERT trigger creates the database and sets database_id before RLS policies are evaluated. | -| `useDeleteDatabaseProvisionModuleMutation` | Mutation | Tracks database provisioning requests and their status. The BEFORE INSERT trigger creates the database and sets database_id before RLS policies are evaluated. | -| `useConfigSecretsModulesQuery` | Query | Entity-aware PGP-encrypted key-value config/secrets module. Supports app-level (admin-only) - and org-scoped (per-org secrets with manage_secrets permission) via the scope column. - User-scoped bcrypt credentials are handled by user_credentials_module. | -| `useConfigSecretsModuleQuery` | Query | Entity-aware PGP-encrypted key-value config/secrets module. Supports app-level (admin-only) - and org-scoped (per-org secrets with manage_secrets permission) via the scope column. - User-scoped bcrypt credentials are handled by user_credentials_module. | -| `useCreateConfigSecretsModuleMutation` | Mutation | Entity-aware PGP-encrypted key-value config/secrets module. Supports app-level (admin-only) - and org-scoped (per-org secrets with manage_secrets permission) via the scope column. - User-scoped bcrypt credentials are handled by user_credentials_module. | -| `useUpdateConfigSecretsModuleMutation` | Mutation | Entity-aware PGP-encrypted key-value config/secrets module. Supports app-level (admin-only) - and org-scoped (per-org secrets with manage_secrets permission) via the scope column. - User-scoped bcrypt credentials are handled by user_credentials_module. | -| `useDeleteConfigSecretsModuleMutation` | Mutation | Entity-aware PGP-encrypted key-value config/secrets module. Supports app-level (admin-only) - and org-scoped (per-org secrets with manage_secrets permission) via the scope column. - User-scoped bcrypt credentials are handled by user_credentials_module. | +| `useIdentityProvidersModulesQuery` | Query | Entity-aware config row for the identity_providers_module, which provisions a per-database + identity_providers table holding OAuth2 / OIDC (and future SAML) provider definitions. + The scope column determines which internal_secrets_module table the rotate proc targets + (app_secrets for app scope, platform_secrets for platform scope). When scope = database, + the secrets table gets a database_id column. + Scoping matrix: + 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 | +| `useIdentityProvidersModuleQuery` | Query | Entity-aware config row for the identity_providers_module, which provisions a per-database + identity_providers table holding OAuth2 / OIDC (and future SAML) provider definitions. + The scope column determines which internal_secrets_module table the rotate proc targets + (app_secrets for app scope, platform_secrets for platform scope). When scope = database, + the secrets table gets a database_id column. + Scoping matrix: + 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 | +| `useCreateIdentityProvidersModuleMutation` | Mutation | Entity-aware config row for the identity_providers_module, which provisions a per-database + identity_providers table holding OAuth2 / OIDC (and future SAML) provider definitions. + The scope column determines which internal_secrets_module table the rotate proc targets + (app_secrets for app scope, platform_secrets for platform scope). When scope = database, + the secrets table gets a database_id column. + Scoping matrix: + 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 | +| `useUpdateIdentityProvidersModuleMutation` | Mutation | Entity-aware config row for the identity_providers_module, which provisions a per-database + identity_providers table holding OAuth2 / OIDC (and future SAML) provider definitions. + The scope column determines which internal_secrets_module table the rotate proc targets + (app_secrets for app scope, platform_secrets for platform scope). When scope = database, + the secrets table gets a database_id column. + Scoping matrix: + 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 | +| `useDeleteIdentityProvidersModuleMutation` | Mutation | Entity-aware config row for the identity_providers_module, which provisions a per-database + identity_providers table holding OAuth2 / OIDC (and future SAML) provider definitions. + The scope column determines which internal_secrets_module table the rotate proc targets + (app_secrets for app scope, platform_secrets for platform scope). When scope = database, + the secrets table gets a database_id column. + Scoping matrix: + 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 | +| `useIntegrationProvidersModulesQuery` | Query | Config row for the integration_providers_module, which provisions a per-database + integration_providers table holding branded, reusable service definitions. + 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. | +| `useIntegrationProvidersModuleQuery` | Query | Config row for the integration_providers_module, which provisions a per-database + integration_providers table holding branded, reusable service definitions. + 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. | +| `useCreateIntegrationProvidersModuleMutation` | Mutation | Config row for the integration_providers_module, which provisions a per-database + integration_providers table holding branded, reusable service definitions. + 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. | +| `useUpdateIntegrationProvidersModuleMutation` | Mutation | Config row for the integration_providers_module, which provisions a per-database + integration_providers table holding branded, reusable service definitions. + 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. | +| `useDeleteIntegrationProvidersModuleMutation` | Mutation | Config row for the integration_providers_module, which provisions a per-database + integration_providers table holding branded, reusable service definitions. + 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. | +| `useDbPoolConfigsQuery` | Query | Per-preset configuration for the warm database pool: sizing, TTL, and the platform service org that owns unclaimed warm databases. | +| `useDbPoolConfigQuery` | Query | Per-preset configuration for the warm database pool: sizing, TTL, and the platform service org that owns unclaimed warm databases. | +| `useCreateDbPoolConfigMutation` | Mutation | Per-preset configuration for the warm database pool: sizing, TTL, and the platform service org that owns unclaimed warm databases. | +| `useUpdateDbPoolConfigMutation` | Mutation | Per-preset configuration for the warm database pool: sizing, TTL, and the platform service org that owns unclaimed warm databases. | +| `useDeleteDbPoolConfigMutation` | Mutation | Per-preset configuration for the warm database pool: sizing, TTL, and the platform service org that owns unclaimed warm databases. | +| `useRealtimeModulesQuery` | Query | List all realtimeModules | +| `useRealtimeModuleQuery` | Query | Get one realtimeModule | +| `useCreateRealtimeModuleMutation` | Mutation | Create a realtimeModule | +| `useUpdateRealtimeModuleMutation` | Mutation | Update a realtimeModule | +| `useDeleteRealtimeModuleMutation` | Mutation | Delete a realtimeModule | +| `useInfraSecretsModulesQuery` | Query | Namespace-backed PGP-encrypted key-value secrets module. Requires namespace_module and emits namespace:sync_secrets job triggers for K8s Secret synchronization. | +| `useInfraSecretsModuleQuery` | Query | Namespace-backed PGP-encrypted key-value secrets module. Requires namespace_module and emits namespace:sync_secrets job triggers for K8s Secret synchronization. | +| `useCreateInfraSecretsModuleMutation` | Mutation | Namespace-backed PGP-encrypted key-value secrets module. Requires namespace_module and emits namespace:sync_secrets job triggers for K8s Secret synchronization. | +| `useUpdateInfraSecretsModuleMutation` | Mutation | Namespace-backed PGP-encrypted key-value secrets module. Requires namespace_module and emits namespace:sync_secrets job triggers for K8s Secret synchronization. | +| `useDeleteInfraSecretsModuleMutation` | Mutation | Namespace-backed PGP-encrypted key-value secrets module. Requires namespace_module and emits namespace:sync_secrets job triggers for K8s Secret synchronization. | +| `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. | +| `useUpdateInternalSecretsModuleMutation` | 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. | +| `useDeleteInternalSecretsModuleMutation` | 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. | +| `useDbPresetModulesQuery` | Query | List all dbPresetModules | +| `useDbPresetModuleQuery` | Query | Get one dbPresetModule | +| `useCreateDbPresetModuleMutation` | Mutation | Create a dbPresetModule | +| `useUpdateDbPresetModuleMutation` | Mutation | Update a dbPresetModule | +| `useDeleteDbPresetModuleMutation` | Mutation | Delete a dbPresetModule | | `useGraphModulesQuery` | Query | List all graphModules | | `useGraphModuleQuery` | Query | Get one graphModule | | `useCreateGraphModuleMutation` | Mutation | Create a graphModule | | `useUpdateGraphModuleMutation` | Mutation | Update a graphModule | | `useDeleteGraphModuleMutation` | Mutation | Delete a graphModule | -| `useMerkleStoreModulesQuery` | Query | List all merkleStoreModules | -| `useMerkleStoreModuleQuery` | Query | Get one merkleStoreModule | -| `useCreateMerkleStoreModuleMutation` | Mutation | Create a merkleStoreModule | -| `useUpdateMerkleStoreModuleMutation` | Mutation | Update a merkleStoreModule | -| `useDeleteMerkleStoreModuleMutation` | Mutation | Delete a merkleStoreModule | | `useRateLimitMetersModulesQuery` | Query | List all rateLimitMetersModules | | `useRateLimitMetersModuleQuery` | Query | Get one rateLimitMetersModule | | `useCreateRateLimitMetersModuleMutation` | Mutation | Create a rateLimitMetersModule | | `useUpdateRateLimitMetersModuleMutation` | Mutation | Update a rateLimitMetersModule | | `useDeleteRateLimitMetersModuleMutation` | Mutation | Delete a rateLimitMetersModule | -| `useRealtimeModulesQuery` | Query | List all realtimeModules | -| `useRealtimeModuleQuery` | Query | Get one realtimeModule | -| `useCreateRealtimeModuleMutation` | Mutation | Create a realtimeModule | -| `useUpdateRealtimeModuleMutation` | Mutation | Update a realtimeModule | -| `useDeleteRealtimeModuleMutation` | Mutation | Delete a realtimeModule | +| `useInfraConfigModulesQuery` | Query | Namespace-backed plaintext key-value config module. Requires namespace_module and emits namespace:sync_config job triggers for K8s ConfigMap synchronization. | +| `useInfraConfigModuleQuery` | Query | Namespace-backed plaintext key-value config module. Requires namespace_module and emits namespace:sync_config job triggers for K8s ConfigMap synchronization. | +| `useCreateInfraConfigModuleMutation` | Mutation | Namespace-backed plaintext key-value config module. Requires namespace_module and emits namespace:sync_config job triggers for K8s ConfigMap synchronization. | +| `useUpdateInfraConfigModuleMutation` | Mutation | Namespace-backed plaintext key-value config module. Requires namespace_module and emits namespace:sync_config job triggers for K8s ConfigMap synchronization. | +| `useDeleteInfraConfigModuleMutation` | Mutation | Namespace-backed plaintext key-value config module. Requires namespace_module and emits namespace:sync_config job triggers for K8s ConfigMap synchronization. | | `useWebauthnAuthModulesQuery` | Query | List all webauthnAuthModules | | `useWebauthnAuthModuleQuery` | Query | Get one webauthnAuthModule | | `useCreateWebauthnAuthModuleMutation` | Mutation | Create a webauthnAuthModule | | `useUpdateWebauthnAuthModuleMutation` | Mutation | Update a webauthnAuthModule | | `useDeleteWebauthnAuthModuleMutation` | Mutation | Delete a webauthnAuthModule | -| `useFunctionInvocationModulesQuery` | Query | List all functionInvocationModules | -| `useFunctionInvocationModuleQuery` | Query | Get one functionInvocationModule | -| `useCreateFunctionInvocationModuleMutation` | Mutation | Create a functionInvocationModule | -| `useUpdateFunctionInvocationModuleMutation` | Mutation | Update a functionInvocationModule | -| `useDeleteFunctionInvocationModuleMutation` | Mutation | Delete a functionInvocationModule | +| `usePrincipalAuthModulesQuery` | Query | Provisions the principals subsystem: a principals table, a principal_entities junction table, create/delete mutations, and org API key management. Supports both human-owned principals (AuthzDirectOwner, AuthzHumanOnly) and org-owned principals (AuthzEntityMembership with is_admin). Org principal and org API key functions are only generated when an org-scoped memberships_module exists for the database. | +| `usePrincipalAuthModuleQuery` | Query | Provisions the principals subsystem: a principals table, a principal_entities junction table, create/delete mutations, and org API key management. Supports both human-owned principals (AuthzDirectOwner, AuthzHumanOnly) and org-owned principals (AuthzEntityMembership with is_admin). Org principal and org API key functions are only generated when an org-scoped memberships_module exists for the database. | +| `useCreatePrincipalAuthModuleMutation` | Mutation | Provisions the principals subsystem: a principals table, a principal_entities junction table, create/delete mutations, and org API key management. Supports both human-owned principals (AuthzDirectOwner, AuthzHumanOnly) and org-owned principals (AuthzEntityMembership with is_admin). Org principal and org API key functions are only generated when an org-scoped memberships_module exists for the database. | +| `useUpdatePrincipalAuthModuleMutation` | Mutation | Provisions the principals subsystem: a principals table, a principal_entities junction table, create/delete mutations, and org API key management. Supports both human-owned principals (AuthzDirectOwner, AuthzHumanOnly) and org-owned principals (AuthzEntityMembership with is_admin). Org principal and org API key functions are only generated when an org-scoped memberships_module exists for the database. | +| `useDeletePrincipalAuthModuleMutation` | Mutation | Provisions the principals subsystem: a principals table, a principal_entities junction table, create/delete mutations, and org API key management. Supports both human-owned principals (AuthzDirectOwner, AuthzHumanOnly) and org-owned principals (AuthzEntityMembership with is_admin). Org principal and org API key functions are only generated when an org-scoped memberships_module exists for the database. | +| `useDbPoolsQuery` | Query | Warm database pool entries. Rows are inserted as warming (which enqueues a db_pool:warm_database job), become ready once provisioned, and are handed to users via metaschema_private.db_pool_claim (invoked by metaschema_public.request_database). | +| `useDbPoolQuery` | Query | Warm database pool entries. Rows are inserted as warming (which enqueues a db_pool:warm_database job), become ready once provisioned, and are handed to users via metaschema_private.db_pool_claim (invoked by metaschema_public.request_database). | +| `useCreateDbPoolMutation` | Mutation | Warm database pool entries. Rows are inserted as warming (which enqueues a db_pool:warm_database job), become ready once provisioned, and are handed to users via metaschema_private.db_pool_claim (invoked by metaschema_public.request_database). | +| `useUpdateDbPoolMutation` | Mutation | Warm database pool entries. Rows are inserted as warming (which enqueues a db_pool:warm_database job), become ready once provisioned, and are handed to users via metaschema_private.db_pool_claim (invoked by metaschema_public.request_database). | +| `useDeleteDbPoolMutation` | Mutation | Warm database pool entries. Rows are inserted as warming (which enqueues a db_pool:warm_database job), become ready once provisioned, and are handed to users via metaschema_private.db_pool_claim (invoked by metaschema_public.request_database). | | `useFunctionModulesQuery` | Query | List all functionModules | | `useFunctionModuleQuery` | Query | Get one functionModule | | `useCreateFunctionModuleMutation` | Mutation | Create a functionModule | | `useUpdateFunctionModuleMutation` | Mutation | Update a functionModule | | `useDeleteFunctionModuleMutation` | Mutation | Delete a functionModule | +| `useMerkleStoreModulesQuery` | Query | List all merkleStoreModules | +| `useMerkleStoreModuleQuery` | Query | Get one merkleStoreModule | +| `useCreateMerkleStoreModuleMutation` | Mutation | Create a merkleStoreModule | +| `useUpdateMerkleStoreModuleMutation` | Mutation | Update a merkleStoreModule | +| `useDeleteMerkleStoreModuleMutation` | Mutation | Delete a merkleStoreModule | +| `useDatabaseProvisionModulesQuery` | Query | Tracks database provisioning requests and their status. The BEFORE INSERT trigger creates the database and sets database_id before RLS policies are evaluated. | +| `useDatabaseProvisionModuleQuery` | Query | Tracks database provisioning requests and their status. The BEFORE INSERT trigger creates the database and sets database_id before RLS policies are evaluated. | +| `useCreateDatabaseProvisionModuleMutation` | Mutation | Tracks database provisioning requests and their status. The BEFORE INSERT trigger creates the database and sets database_id before RLS policies are evaluated. | +| `useUpdateDatabaseProvisionModuleMutation` | Mutation | Tracks database provisioning requests and their status. The BEFORE INSERT trigger creates the database and sets database_id before RLS policies are evaluated. | +| `useDeleteDatabaseProvisionModuleMutation` | Mutation | Tracks database provisioning requests and their status. The BEFORE INSERT trigger creates the database and sets database_id before RLS policies are evaluated. | +| `useFunctionInvocationModulesQuery` | Query | List all functionInvocationModules | +| `useFunctionInvocationModuleQuery` | Query | Get one functionInvocationModule | +| `useCreateFunctionInvocationModuleMutation` | Mutation | Create a functionInvocationModule | +| `useUpdateFunctionInvocationModuleMutation` | Mutation | Update a functionInvocationModule | +| `useDeleteFunctionInvocationModuleMutation` | Mutation | Delete a functionInvocationModule | | `useInvitesModulesQuery` | Query | List all invitesModules | | `useInvitesModuleQuery` | Query | Get one invitesModule | | `useCreateInvitesModuleMutation` | Mutation | Create a invitesModule | | `useUpdateInvitesModuleMutation` | Mutation | Update a invitesModule | | `useDeleteInvitesModuleMutation` | Mutation | Delete a invitesModule | -| `usePrincipalAuthModulesQuery` | Query | Provisions the principals subsystem: a principals table, a principal_entities junction table, create/delete mutations, and org API key management. Supports both human-owned principals (AuthzDirectOwner, AuthzHumanOnly) and org-owned principals (AuthzEntityMembership with is_admin). Org principal and org API key functions are only generated when an org-scoped memberships_module exists for the database. | -| `usePrincipalAuthModuleQuery` | Query | Provisions the principals subsystem: a principals table, a principal_entities junction table, create/delete mutations, and org API key management. Supports both human-owned principals (AuthzDirectOwner, AuthzHumanOnly) and org-owned principals (AuthzEntityMembership with is_admin). Org principal and org API key functions are only generated when an org-scoped memberships_module exists for the database. | -| `useCreatePrincipalAuthModuleMutation` | Mutation | Provisions the principals subsystem: a principals table, a principal_entities junction table, create/delete mutations, and org API key management. Supports both human-owned principals (AuthzDirectOwner, AuthzHumanOnly) and org-owned principals (AuthzEntityMembership with is_admin). Org principal and org API key functions are only generated when an org-scoped memberships_module exists for the database. | -| `useUpdatePrincipalAuthModuleMutation` | Mutation | Provisions the principals subsystem: a principals table, a principal_entities junction table, create/delete mutations, and org API key management. Supports both human-owned principals (AuthzDirectOwner, AuthzHumanOnly) and org-owned principals (AuthzEntityMembership with is_admin). Org principal and org API key functions are only generated when an org-scoped memberships_module exists for the database. | -| `useDeletePrincipalAuthModuleMutation` | Mutation | Provisions the principals subsystem: a principals table, a principal_entities junction table, create/delete mutations, and org API key management. Supports both human-owned principals (AuthzDirectOwner, AuthzHumanOnly) and org-owned principals (AuthzEntityMembership with is_admin). Org principal and org API key functions are only generated when an org-scoped memberships_module exists for the database. | +| `useNamespaceModulesQuery` | Query | List all namespaceModules | +| `useNamespaceModuleQuery` | Query | Get one namespaceModule | +| `useCreateNamespaceModuleMutation` | Mutation | Create a namespaceModule | +| `useUpdateNamespaceModuleMutation` | Mutation | Update a namespaceModule | +| `useDeleteNamespaceModuleMutation` | Mutation | Delete a namespaceModule | +| `usePlansModulesQuery` | Query | List all plansModules | +| `usePlansModuleQuery` | Query | Get one plansModule | +| `useCreatePlansModuleMutation` | Mutation | Create a plansModule | +| `useUpdatePlansModuleMutation` | Mutation | Update a plansModule | +| `useDeletePlansModuleMutation` | Mutation | Delete a plansModule | | `useComputeLogModulesQuery` | Query | List all computeLogModules | | `useComputeLogModuleQuery` | Query | Get one computeLogModule | | `useCreateComputeLogModuleMutation` | Mutation | Create a computeLogModule | @@ -292,16 +332,6 @@ function App() { | `useCreateInferenceLogModuleMutation` | Mutation | Create a inferenceLogModule | | `useUpdateInferenceLogModuleMutation` | Mutation | Update a inferenceLogModule | | `useDeleteInferenceLogModuleMutation` | Mutation | Delete a inferenceLogModule | -| `useNamespaceModulesQuery` | Query | List all namespaceModules | -| `useNamespaceModuleQuery` | Query | Get one namespaceModule | -| `useCreateNamespaceModuleMutation` | Mutation | Create a namespaceModule | -| `useUpdateNamespaceModuleMutation` | Mutation | Update a namespaceModule | -| `useDeleteNamespaceModuleMutation` | Mutation | Delete a namespaceModule | -| `useResourceModulesQuery` | Query | List all resourceModules | -| `useResourceModuleQuery` | Query | Get one resourceModule | -| `useCreateResourceModuleMutation` | Mutation | Create a resourceModule | -| `useUpdateResourceModuleMutation` | Mutation | Update a resourceModule | -| `useDeleteResourceModuleMutation` | Mutation | Delete a resourceModule | | `useStorageLogModulesQuery` | Query | List all storageLogModules | | `useStorageLogModuleQuery` | Query | Get one storageLogModule | | `useCreateStorageLogModuleMutation` | Mutation | Create a storageLogModule | @@ -312,26 +342,21 @@ function App() { | `useCreateTransferLogModuleMutation` | Mutation | Create a transferLogModule | | `useUpdateTransferLogModuleMutation` | Mutation | Update a transferLogModule | | `useDeleteTransferLogModuleMutation` | Mutation | Delete a transferLogModule | -| `useFunctionDeploymentModulesQuery` | Query | List all functionDeploymentModules | -| `useFunctionDeploymentModuleQuery` | Query | Get one functionDeploymentModule | -| `useCreateFunctionDeploymentModuleMutation` | Mutation | Create a functionDeploymentModule | -| `useUpdateFunctionDeploymentModuleMutation` | Mutation | Update a functionDeploymentModule | -| `useDeleteFunctionDeploymentModuleMutation` | Mutation | Delete a functionDeploymentModule | -| `usePlansModulesQuery` | Query | List all plansModules | -| `usePlansModuleQuery` | Query | Get one plansModule | -| `useCreatePlansModuleMutation` | Mutation | Create a plansModule | -| `useUpdatePlansModuleMutation` | Mutation | Update a plansModule | -| `useDeletePlansModuleMutation` | Mutation | Delete a plansModule | | `useBillingProviderModulesQuery` | Query | List all billingProviderModules | | `useBillingProviderModuleQuery` | Query | Get one billingProviderModule | | `useCreateBillingProviderModuleMutation` | Mutation | Create a billingProviderModule | | `useUpdateBillingProviderModuleMutation` | Mutation | Update a billingProviderModule | | `useDeleteBillingProviderModuleMutation` | Mutation | Delete a billingProviderModule | -| `useDbUsageModulesQuery` | Query | List all dbUsageModules | -| `useDbUsageModuleQuery` | Query | Get one dbUsageModule | -| `useCreateDbUsageModuleMutation` | Mutation | Create a dbUsageModule | -| `useUpdateDbUsageModuleMutation` | Mutation | Update a dbUsageModule | -| `useDeleteDbUsageModuleMutation` | Mutation | Delete a dbUsageModule | +| `useFunctionDeploymentModulesQuery` | Query | List all functionDeploymentModules | +| `useFunctionDeploymentModuleQuery` | Query | Get one functionDeploymentModule | +| `useCreateFunctionDeploymentModuleMutation` | Mutation | Create a functionDeploymentModule | +| `useUpdateFunctionDeploymentModuleMutation` | Mutation | Update a functionDeploymentModule | +| `useDeleteFunctionDeploymentModuleMutation` | Mutation | Delete a functionDeploymentModule | +| `usePermissionsModulesQuery` | Query | List all permissionsModules | +| `usePermissionsModuleQuery` | Query | Get one permissionsModule | +| `useCreatePermissionsModuleMutation` | Mutation | Create a permissionsModule | +| `useUpdatePermissionsModuleMutation` | Mutation | Update a permissionsModule | +| `useDeletePermissionsModuleMutation` | Mutation | Delete a permissionsModule | | `useGraphExecutionModulesQuery` | Query | List all graphExecutionModules | | `useGraphExecutionModuleQuery` | Query | Get one graphExecutionModule | | `useCreateGraphExecutionModuleMutation` | Mutation | Create a graphExecutionModule | @@ -342,26 +367,11 @@ function App() { | `useCreateHierarchyModuleMutation` | Mutation | Create a hierarchyModule | | `useUpdateHierarchyModuleMutation` | Mutation | Update a hierarchyModule | | `useDeleteHierarchyModuleMutation` | Mutation | Delete a hierarchyModule | -| `usePermissionsModulesQuery` | Query | List all permissionsModules | -| `usePermissionsModuleQuery` | Query | Get one permissionsModule | -| `useCreatePermissionsModuleMutation` | Mutation | Create a permissionsModule | -| `useUpdatePermissionsModuleMutation` | Mutation | Update a permissionsModule | -| `useDeletePermissionsModuleMutation` | Mutation | Delete a permissionsModule | | `useNotificationsModulesQuery` | Query | List all notificationsModules | | `useNotificationsModuleQuery` | Query | Get one notificationsModule | | `useCreateNotificationsModuleMutation` | Mutation | Create a notificationsModule | | `useUpdateNotificationsModuleMutation` | Mutation | Update a notificationsModule | | `useDeleteNotificationsModuleMutation` | Mutation | Delete a notificationsModule | -| `useProfilesModulesQuery` | Query | List all profilesModules | -| `useProfilesModuleQuery` | Query | Get one profilesModule | -| `useCreateProfilesModuleMutation` | Mutation | Create a profilesModule | -| `useUpdateProfilesModuleMutation` | Mutation | Update a profilesModule | -| `useDeleteProfilesModuleMutation` | Mutation | Delete a profilesModule | -| `useBillingModulesQuery` | Query | List all billingModules | -| `useBillingModuleQuery` | Query | Get one billingModule | -| `useCreateBillingModuleMutation` | Mutation | Create a billingModule | -| `useUpdateBillingModuleMutation` | Mutation | Update a billingModule | -| `useDeleteBillingModuleMutation` | Mutation | Delete a billingModule | | `useRelationProvisionsQuery` | Query | Provisions relational structure between tables. Supports four relation types: - RelationBelongsTo: adds a FK field on the source table referencing the target table (child perspective: "tasks belongs to projects" -> tasks.project_id). - RelationHasMany: adds a FK field on the target table referencing the source table (parent perspective: "projects has many tasks" -> tasks.project_id). Inverse of BelongsTo. @@ -402,11 +412,31 @@ 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. | +| `useProfilesModulesQuery` | Query | List all profilesModules | +| `useProfilesModuleQuery` | Query | Get one profilesModule | +| `useCreateProfilesModuleMutation` | Mutation | Create a profilesModule | +| `useUpdateProfilesModuleMutation` | Mutation | Update a profilesModule | +| `useDeleteProfilesModuleMutation` | Mutation | Delete a profilesModule | +| `useBillingModulesQuery` | Query | List all billingModules | +| `useBillingModuleQuery` | Query | Get one billingModule | +| `useCreateBillingModuleMutation` | Mutation | Create a billingModule | +| `useUpdateBillingModuleMutation` | Mutation | Update a billingModule | +| `useDeleteBillingModuleMutation` | Mutation | Delete a billingModule | +| `useResourceModulesQuery` | Query | List all resourceModules | +| `useResourceModuleQuery` | Query | Get one resourceModule | +| `useCreateResourceModuleMutation` | Mutation | Create a resourceModule | +| `useUpdateResourceModuleMutation` | Mutation | Update a resourceModule | +| `useDeleteResourceModuleMutation` | Mutation | Delete a resourceModule | | `useUserAuthModulesQuery` | Query | List all userAuthModules | | `useUserAuthModuleQuery` | Query | Get one userAuthModule | | `useCreateUserAuthModuleMutation` | Mutation | Create a userAuthModule | | `useUpdateUserAuthModuleMutation` | Mutation | Update a userAuthModule | | `useDeleteUserAuthModuleMutation` | Mutation | Delete a userAuthModule | +| `useDbUsageModulesQuery` | Query | List all dbUsageModules | +| `useDbUsageModuleQuery` | Query | Get one dbUsageModule | +| `useCreateDbUsageModuleMutation` | Mutation | Create a dbUsageModule | +| `useUpdateDbUsageModuleMutation` | Mutation | Update a dbUsageModule | +| `useDeleteDbUsageModuleMutation` | Mutation | Delete a dbUsageModule | | `useAgentModulesQuery` | Query | List all agentModules | | `useAgentModuleQuery` | Query | Get one agentModule | | `useCreateAgentModuleMutation` | Mutation | Create a agentModule | @@ -417,11 +447,6 @@ function App() { | `useCreateLimitsModuleMutation` | Mutation | Create a limitsModule | | `useUpdateLimitsModuleMutation` | Mutation | Update a limitsModule | | `useDeleteLimitsModuleMutation` | Mutation | Delete a limitsModule | -| `useMembershipsModulesQuery` | Query | List all membershipsModules | -| `useMembershipsModuleQuery` | Query | Get one membershipsModule | -| `useCreateMembershipsModuleMutation` | Mutation | Create a membershipsModule | -| `useUpdateMembershipsModuleMutation` | Mutation | Update a membershipsModule | -| `useDeleteMembershipsModuleMutation` | Mutation | Delete a membershipsModule | | `useEntityTypeProvisionsQuery` | Query | Provisions a new membership entity type. Each INSERT creates an entity table, registers a membership type, and installs the required modules (permissions, memberships, limits) plus optional modules (profiles, levels, invites). Uses provision_membership_table() internally. Graceful: duplicate (database_id, prefix) pairs are silently skipped @@ -467,6 +492,11 @@ function App() { | `useCreateStorageModuleMutation` | Mutation | Create a storageModule | | `useUpdateStorageModuleMutation` | Mutation | Update a storageModule | | `useDeleteStorageModuleMutation` | Mutation | Delete a storageModule | +| `useMembershipsModulesQuery` | Query | List all membershipsModules | +| `useMembershipsModuleQuery` | Query | Get one membershipsModule | +| `useCreateMembershipsModuleMutation` | Mutation | Create a membershipsModule | +| `useUpdateMembershipsModuleMutation` | Mutation | Update a membershipsModule | +| `useDeleteMembershipsModuleMutation` | Mutation | Delete a membershipsModule | | `useEventsModulesQuery` | Query | List all eventsModules | | `useEventsModuleQuery` | Query | Get one eventsModule | | `useCreateEventsModuleMutation` | Mutation | Create a eventsModule | @@ -532,27 +562,6 @@ const { mutate: create } = useCreateMembershipTypesModuleMutation({ create({ databaseId: '', schemaId: '', tableId: '', tableName: '' }); ``` -### UserStateModule - -```typescript -// List all userStateModules -const { data, isLoading } = useUserStateModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true } }, -}); - -// Get one userStateModule -const { data: item } = useUserStateModuleQuery({ - id: '', - selection: { fields: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true } }, -}); - -// Create a userStateModule -const { mutate: create } = useCreateUserStateModuleMutation({ - selection: { fields: { id: true } }, -}); -create({ databaseId: '', schemaId: '', tableId: '', tableName: '' }); -``` - ### SessionSecretsModule ```typescript @@ -574,27 +583,6 @@ const { mutate: create } = useCreateSessionSecretsModuleMutation({ create({ databaseId: '', schemaId: '', tableId: '', tableName: '', sessionsTableId: '' }); ``` -### ConfigSecretsOrgModule - -```typescript -// List all configSecretsOrgModules -const { data, isLoading } = useConfigSecretsOrgModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, apiName: true, privateApiName: true } }, -}); - -// Get one configSecretsOrgModule -const { data: item } = useConfigSecretsOrgModuleQuery({ - id: '', - selection: { fields: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, apiName: true, privateApiName: true } }, -}); - -// Create a configSecretsOrgModule -const { mutate: create } = useCreateConfigSecretsOrgModuleMutation({ - selection: { fields: { id: true } }, -}); -create({ databaseId: '', schemaId: '', tableId: '', tableName: '', apiName: '', privateApiName: '' }); -``` - ### DevicesModule ```typescript @@ -637,67 +625,67 @@ const { mutate: create } = useCreateI18NModuleMutation({ create({ databaseId: '', schemaId: '', privateSchemaId: '', settingsTableId: '', apiName: '', privateApiName: '' }); ``` -### UserCredentialsModule +### UserSettingsModule ```typescript -// List all userCredentialsModules -const { data, isLoading } = useUserCredentialsModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, apiName: true, privateApiName: true } }, +// List all userSettingsModules +const { data, isLoading } = useUserSettingsModulesQuery({ + selection: { fields: { id: true, databaseId: true, schemaId: true, tableId: true, ownerTableId: true, tableName: true, apiName: true } }, }); -// Get one userCredentialsModule -const { data: item } = useUserCredentialsModuleQuery({ +// Get one userSettingsModule +const { data: item } = useUserSettingsModuleQuery({ id: '', - selection: { fields: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, apiName: true, privateApiName: true } }, + selection: { fields: { id: true, databaseId: true, schemaId: true, tableId: true, ownerTableId: true, tableName: true, apiName: true } }, }); -// Create a userCredentialsModule -const { mutate: create } = useCreateUserCredentialsModuleMutation({ +// Create a userSettingsModule +const { mutate: create } = useCreateUserSettingsModuleMutation({ selection: { fields: { id: true } }, }); -create({ databaseId: '', schemaId: '', tableId: '', tableName: '', apiName: '', privateApiName: '' }); +create({ databaseId: '', schemaId: '', tableId: '', ownerTableId: '', tableName: '', apiName: '' }); ``` -### UserSettingsModule +### UserStateModule ```typescript -// List all userSettingsModules -const { data, isLoading } = useUserSettingsModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, tableId: true, ownerTableId: true, tableName: true, apiName: true } }, +// List all userStateModules +const { data, isLoading } = useUserStateModulesQuery({ + selection: { fields: { id: true, databaseId: true, entityField: true, schemaId: true, tableId: true, tableName: true } }, }); -// Get one userSettingsModule -const { data: item } = useUserSettingsModuleQuery({ +// Get one userStateModule +const { data: item } = useUserStateModuleQuery({ id: '', - selection: { fields: { id: true, databaseId: true, schemaId: true, tableId: true, ownerTableId: true, tableName: true, apiName: true } }, + selection: { fields: { id: true, databaseId: true, entityField: true, schemaId: true, tableId: true, tableName: true } }, }); -// Create a userSettingsModule -const { mutate: create } = useCreateUserSettingsModuleMutation({ +// Create a userStateModule +const { mutate: create } = useCreateUserStateModuleMutation({ selection: { fields: { id: true } }, }); -create({ databaseId: '', schemaId: '', tableId: '', ownerTableId: '', tableName: '', apiName: '' }); +create({ databaseId: '', entityField: '', schemaId: '', tableId: '', tableName: '' }); ``` -### ConfigSecretsUserModule +### UserCredentialsModule ```typescript -// List all configSecretsUserModules -const { data, isLoading } = useConfigSecretsUserModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, configDefinitionsTableId: true, apiName: true, privateApiName: true } }, +// List all userCredentialsModules +const { data, isLoading } = useUserCredentialsModulesQuery({ + selection: { fields: { id: true, databaseId: true, entityField: true, schemaId: true, tableId: true, tableName: true, privateApiName: true } }, }); -// Get one configSecretsUserModule -const { data: item } = useConfigSecretsUserModuleQuery({ +// Get one userCredentialsModule +const { data: item } = useUserCredentialsModuleQuery({ id: '', - selection: { fields: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, configDefinitionsTableId: true, apiName: true, privateApiName: true } }, + selection: { fields: { id: true, databaseId: true, entityField: true, schemaId: true, tableId: true, tableName: true, privateApiName: true } }, }); -// Create a configSecretsUserModule -const { mutate: create } = useCreateConfigSecretsUserModuleMutation({ +// Create a userCredentialsModule +const { mutate: create } = useCreateUserCredentialsModuleMutation({ selection: { fields: { id: true } }, }); -create({ databaseId: '', schemaId: '', tableId: '', tableName: '', configDefinitionsTableId: '', apiName: '', privateApiName: '' }); +create({ databaseId: '', entityField: '', schemaId: '', tableId: '', tableName: '', privateApiName: '' }); ``` ### ConnectedAccountsModule @@ -826,6 +814,27 @@ const { mutate: create } = useCreateWebauthnCredentialsModuleMutation({ create({ databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', ownerTableId: '', tableName: '', apiName: '', privateApiName: '' }); ``` +### ConfigSecretsUserModule + +```typescript +// List all configSecretsUserModules +const { data, isLoading } = useConfigSecretsUserModulesQuery({ + selection: { fields: { id: true, databaseId: true, entityField: true, schemaId: true, tableId: true, tableName: true, apiName: true, privateApiName: true } }, +}); + +// Get one configSecretsUserModule +const { data: item } = useConfigSecretsUserModuleQuery({ + id: '', + selection: { fields: { id: true, databaseId: true, entityField: true, schemaId: true, tableId: true, tableName: true, apiName: true, privateApiName: true } }, +}); + +// Create a configSecretsUserModule +const { mutate: create } = useCreateConfigSecretsUserModuleMutation({ + selection: { fields: { id: true } }, +}); +create({ databaseId: '', entityField: '', schemaId: '', tableId: '', tableName: '', apiName: '', privateApiName: '' }); +``` + ### CryptoAddressesModule ```typescript @@ -868,27 +877,6 @@ const { mutate: create } = useCreateDenormalizedTableFieldMutation({ create({ databaseId: '', tableId: '', fieldId: '', setIds: '', refTableId: '', refFieldId: '', refIds: '', useUpdates: '', updateDefaults: '', funcName: '', funcOrder: '' }); ``` -### IdentityProvidersModule - -```typescript -// List all identityProvidersModules -const { data, isLoading } = useIdentityProvidersModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, tableId: true, tableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true } }, -}); - -// Get one identityProvidersModule -const { data: item } = useIdentityProvidersModuleQuery({ - id: '', - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, tableId: true, tableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true } }, -}); - -// Create a identityProvidersModule -const { mutate: create } = useCreateIdentityProvidersModuleMutation({ - selection: { fields: { id: true } }, -}); -create({ databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', tableId: '', tableName: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '' }); -``` - ### RlsModule ```typescript @@ -1036,88 +1024,172 @@ const { mutate: create } = useCreateSecureTableProvisionMutation({ create({ databaseId: '', schemaId: '', tableId: '', tableName: '', nodes: '', useRls: '', fields: '', grants: '', policies: '', outFields: '' }); ``` -### DatabaseProvisionModule +### IdentityProvidersModule ```typescript -// List all databaseProvisionModules -const { data, isLoading } = useDatabaseProvisionModulesQuery({ - selection: { fields: { id: true, databaseName: true, ownerId: true, subdomain: true, domain: true, modules: true, options: true, bootstrapUser: true, status: true, errorMessage: true, databaseId: true, createdAt: true, updatedAt: true, completedAt: true } }, +// List all identityProvidersModules +const { data, isLoading } = useIdentityProvidersModulesQuery({ + selection: { fields: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, tableId: true, tableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true } }, }); -// Get one databaseProvisionModule -const { data: item } = useDatabaseProvisionModuleQuery({ +// Get one identityProvidersModule +const { data: item } = useIdentityProvidersModuleQuery({ id: '', - selection: { fields: { id: true, databaseName: true, ownerId: true, subdomain: true, domain: true, modules: true, options: true, bootstrapUser: true, status: true, errorMessage: true, databaseId: true, createdAt: true, updatedAt: true, completedAt: true } }, + selection: { fields: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, tableId: true, tableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true } }, }); -// Create a databaseProvisionModule -const { mutate: create } = useCreateDatabaseProvisionModuleMutation({ +// Create a identityProvidersModule +const { mutate: create } = useCreateIdentityProvidersModuleMutation({ selection: { fields: { id: true } }, }); -create({ databaseName: '', ownerId: '', subdomain: '', domain: '', modules: '', options: '', bootstrapUser: '', status: '', errorMessage: '', databaseId: '', completedAt: '' }); +create({ databaseId: '', entityField: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', tableId: '', tableName: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '' }); ``` -### ConfigSecretsModule +### IntegrationProvidersModule ```typescript -// List all configSecretsModules -const { data, isLoading } = useConfigSecretsModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, tableId: true, configDefinitionsTableId: true, tableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, policies: true, provisions: true, hasConfig: true } }, +// List all integrationProvidersModules +const { data, isLoading } = useIntegrationProvidersModulesQuery({ + selection: { fields: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, tableId: true, tableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true } }, }); -// Get one configSecretsModule -const { data: item } = useConfigSecretsModuleQuery({ +// Get one integrationProvidersModule +const { data: item } = useIntegrationProvidersModuleQuery({ id: '', - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, tableId: true, configDefinitionsTableId: true, tableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, policies: true, provisions: true, hasConfig: true } }, + selection: { fields: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, tableId: true, tableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true } }, }); -// Create a configSecretsModule -const { mutate: create } = useCreateConfigSecretsModuleMutation({ +// Create a integrationProvidersModule +const { mutate: create } = useCreateIntegrationProvidersModuleMutation({ selection: { fields: { id: true } }, }); -create({ databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', tableId: '', configDefinitionsTableId: '', tableName: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '', policies: '', provisions: '', hasConfig: '' }); +create({ databaseId: '', entityField: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', tableId: '', tableName: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '' }); ``` -### GraphModule +### DbPoolConfig ```typescript -// List all graphModules -const { data, isLoading } = useGraphModulesQuery({ - selection: { fields: { id: true, databaseId: true, publicSchemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, scope: true, prefix: true, merkleStoreModuleId: true, graphsTableId: true, apiName: true, privateApiName: true, entityTableId: true, policies: true, provisions: true, defaultPermissions: true, createdAt: true } }, +// List all dbPoolConfigs +const { data, isLoading } = useDbPoolConfigsQuery({ + selection: { fields: { id: true, presetSlug: true, domain: true, poolOwnerId: true, min: true, max: true, warmTtl: true, enabled: true, createdAt: true, updatedAt: true } }, }); -// Get one graphModule -const { data: item } = useGraphModuleQuery({ +// Get one dbPoolConfig +const { data: item } = useDbPoolConfigQuery({ id: '', - selection: { fields: { id: true, databaseId: true, publicSchemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, scope: true, prefix: true, merkleStoreModuleId: true, graphsTableId: true, apiName: true, privateApiName: true, entityTableId: true, policies: true, provisions: true, defaultPermissions: true, createdAt: true } }, + selection: { fields: { id: true, presetSlug: true, domain: true, poolOwnerId: true, min: true, max: true, warmTtl: true, enabled: true, createdAt: true, updatedAt: true } }, }); -// Create a graphModule -const { mutate: create } = useCreateGraphModuleMutation({ +// Create a dbPoolConfig +const { mutate: create } = useCreateDbPoolConfigMutation({ selection: { fields: { id: true } }, }); -create({ databaseId: '', publicSchemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', scope: '', prefix: '', merkleStoreModuleId: '', graphsTableId: '', apiName: '', privateApiName: '', entityTableId: '', policies: '', provisions: '', defaultPermissions: '' }); +create({ presetSlug: '', domain: '', poolOwnerId: '', min: '', max: '', warmTtl: '', enabled: '' }); ``` -### MerkleStoreModule +### RealtimeModule ```typescript -// List all merkleStoreModules -const { data, isLoading } = useMerkleStoreModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, objectTableId: true, storeTableId: true, commitTableId: true, refTableId: true, prefix: true, apiName: true, privateApiName: true, scope: true, functionPrefix: true, permissionKey: true, createdAt: true } }, +// List all realtimeModules +const { data, isLoading } = useRealtimeModulesQuery({ + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, subscriptionsSchemaId: true, changeLogTableId: true, listenerNodeTableId: true, sourceRegistryTableId: true, retentionHours: true, premake: true, interval: true, notifyChannel: true, apiName: true, privateApiName: true } }, }); -// Get one merkleStoreModule -const { data: item } = useMerkleStoreModuleQuery({ +// Get one realtimeModule +const { data: item } = useRealtimeModuleQuery({ id: '', - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, objectTableId: true, storeTableId: true, commitTableId: true, refTableId: true, prefix: true, apiName: true, privateApiName: true, scope: true, functionPrefix: true, permissionKey: true, createdAt: true } }, + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, subscriptionsSchemaId: true, changeLogTableId: true, listenerNodeTableId: true, sourceRegistryTableId: true, retentionHours: true, premake: true, interval: true, notifyChannel: true, apiName: true, privateApiName: true } }, }); -// Create a merkleStoreModule -const { mutate: create } = useCreateMerkleStoreModuleMutation({ +// Create a realtimeModule +const { mutate: create } = useCreateRealtimeModuleMutation({ selection: { fields: { id: true } }, }); -create({ databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', objectTableId: '', storeTableId: '', commitTableId: '', refTableId: '', prefix: '', apiName: '', privateApiName: '', scope: '', functionPrefix: '', permissionKey: '' }); +create({ databaseId: '', schemaId: '', privateSchemaId: '', subscriptionsSchemaId: '', changeLogTableId: '', listenerNodeTableId: '', sourceRegistryTableId: '', retentionHours: '', premake: '', interval: '', notifyChannel: '', apiName: '', privateApiName: '' }); +``` + +### InfraSecretsModule + +```typescript +// List all infraSecretsModules +const { data, isLoading } = useInfraSecretsModulesQuery({ + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, secretsTableId: true, secretsTableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, entityField: true, policies: true, provisions: true } }, +}); + +// Get one infraSecretsModule +const { data: item } = useInfraSecretsModuleQuery({ + id: '', + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, secretsTableId: true, secretsTableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, entityField: true, policies: true, provisions: true } }, +}); + +// Create a infraSecretsModule +const { mutate: create } = useCreateInfraSecretsModuleMutation({ + selection: { fields: { id: true } }, +}); +create({ databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', secretsTableId: '', secretsTableName: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '', entityField: '', policies: '', provisions: '' }); +``` + +### InternalSecretsModule + +```typescript +// List all internalSecretsModules +const { data, isLoading } = useInternalSecretsModulesQuery({ + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, internalSecretsTableId: true, internalSecretsTableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, entityField: true, policies: true, provisions: true } }, +}); + +// Get one internalSecretsModule +const { data: item } = useInternalSecretsModuleQuery({ + id: '', + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, internalSecretsTableId: true, internalSecretsTableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, entityField: true, policies: true, provisions: true } }, +}); + +// Create a internalSecretsModule +const { mutate: create } = useCreateInternalSecretsModuleMutation({ + selection: { fields: { id: true } }, +}); +create({ databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', internalSecretsTableId: '', internalSecretsTableName: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '', entityField: '', policies: '', provisions: '' }); +``` + +### DbPresetModule + +```typescript +// List all dbPresetModules +const { data, isLoading } = useDbPresetModulesQuery({ + selection: { fields: { id: true, databaseId: true, publicSchemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, scope: true, prefix: true, merkleStoreModuleId: true, dbPresetsTableId: true, storeName: true, apiName: true, privateApiName: true, entityTableId: true, policies: true, provisions: true, createdAt: true } }, +}); + +// Get one dbPresetModule +const { data: item } = useDbPresetModuleQuery({ + id: '', + selection: { fields: { id: true, databaseId: true, publicSchemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, scope: true, prefix: true, merkleStoreModuleId: true, dbPresetsTableId: true, storeName: true, apiName: true, privateApiName: true, entityTableId: true, policies: true, provisions: true, createdAt: true } }, +}); + +// Create a dbPresetModule +const { mutate: create } = useCreateDbPresetModuleMutation({ + selection: { fields: { id: true } }, +}); +create({ databaseId: '', publicSchemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', scope: '', prefix: '', merkleStoreModuleId: '', dbPresetsTableId: '', storeName: '', apiName: '', privateApiName: '', entityTableId: '', policies: '', provisions: '' }); +``` + +### GraphModule + +```typescript +// List all graphModules +const { data, isLoading } = useGraphModulesQuery({ + selection: { fields: { id: true, databaseId: true, entityField: true, publicSchemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, scope: true, prefix: true, merkleStoreModuleId: true, graphsTableId: true, apiName: true, privateApiName: true, entityTableId: true, policies: true, provisions: true, defaultPermissions: true, createdAt: true } }, +}); + +// Get one graphModule +const { data: item } = useGraphModuleQuery({ + id: '', + selection: { fields: { id: true, databaseId: true, entityField: true, publicSchemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, scope: true, prefix: true, merkleStoreModuleId: true, graphsTableId: true, apiName: true, privateApiName: true, entityTableId: true, policies: true, provisions: true, defaultPermissions: true, createdAt: true } }, +}); + +// Create a graphModule +const { mutate: create } = useCreateGraphModuleMutation({ + selection: { fields: { id: true } }, +}); +create({ databaseId: '', entityField: '', publicSchemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', scope: '', prefix: '', merkleStoreModuleId: '', graphsTableId: '', apiName: '', privateApiName: '', entityTableId: '', policies: '', provisions: '', defaultPermissions: '' }); ``` ### RateLimitMetersModule @@ -1141,25 +1213,25 @@ const { mutate: create } = useCreateRateLimitMetersModuleMutation({ create({ databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', rateLimitStateTableId: '', rateLimitStateTableName: '', rateLimitOverridesTableId: '', rateLimitOverridesTableName: '', rateWindowLimitsTableId: '', rateWindowLimitsTableName: '', checkRateLimitFunction: '', prefix: '', defaultPermissions: '', apiName: '', privateApiName: '' }); ``` -### RealtimeModule +### InfraConfigModule ```typescript -// List all realtimeModules -const { data, isLoading } = useRealtimeModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, subscriptionsSchemaId: true, changeLogTableId: true, listenerNodeTableId: true, sourceRegistryTableId: true, retentionHours: true, premake: true, interval: true, notifyChannel: true, apiName: true, privateApiName: true } }, +// List all infraConfigModules +const { data, isLoading } = useInfraConfigModulesQuery({ + selection: { fields: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, configTableId: true, configTableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, policies: true, provisions: true } }, }); -// Get one realtimeModule -const { data: item } = useRealtimeModuleQuery({ +// Get one infraConfigModule +const { data: item } = useInfraConfigModuleQuery({ id: '', - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, subscriptionsSchemaId: true, changeLogTableId: true, listenerNodeTableId: true, sourceRegistryTableId: true, retentionHours: true, premake: true, interval: true, notifyChannel: true, apiName: true, privateApiName: true } }, + selection: { fields: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, configTableId: true, configTableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, policies: true, provisions: true } }, }); -// Create a realtimeModule -const { mutate: create } = useCreateRealtimeModuleMutation({ +// Create a infraConfigModule +const { mutate: create } = useCreateInfraConfigModuleMutation({ selection: { fields: { id: true } }, }); -create({ databaseId: '', schemaId: '', privateSchemaId: '', subscriptionsSchemaId: '', changeLogTableId: '', listenerNodeTableId: '', sourceRegistryTableId: '', retentionHours: '', premake: '', interval: '', notifyChannel: '', apiName: '', privateApiName: '' }); +create({ databaseId: '', entityField: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', configTableId: '', configTableName: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '', policies: '', provisions: '' }); ``` ### WebauthnAuthModule @@ -1183,25 +1255,46 @@ const { mutate: create } = useCreateWebauthnAuthModuleMutation({ create({ databaseId: '', schemaId: '', usersTableId: '', credentialsTableId: '', sessionsTableId: '', sessionCredentialsTableId: '', sessionSecretsTableId: '', authSettingsTableId: '', rpId: '', rpName: '', originAllowlist: '', attestationType: '', requireUserVerification: '', residentKey: '', challengeExpiry: '' }); ``` -### FunctionInvocationModule +### PrincipalAuthModule ```typescript -// List all functionInvocationModules -const { data, isLoading } = useFunctionInvocationModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, invocationsTableId: true, executionLogsTableId: true, invocationsTableName: true, executionLogsTableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, policies: true, provisions: true, defaultPermissions: true } }, +// List all principalAuthModules +const { data, isLoading } = usePrincipalAuthModulesQuery({ + selection: { fields: { id: true, databaseId: true, schemaId: true, principalsTableId: true, principalEntitiesTableId: true, principalScopeOverridesTableId: true, usersTableId: true, sessionsTableId: true, sessionCredentialsTableId: true, auditsTableId: true, principalsTableName: true, createPrincipalFunction: true, deletePrincipalFunction: true, createOrgPrincipalFunction: true, deleteOrgPrincipalFunction: true, createOrgApiKeyFunction: true, revokeOrgApiKeyFunction: true, apiName: true } }, }); -// Get one functionInvocationModule -const { data: item } = useFunctionInvocationModuleQuery({ +// Get one principalAuthModule +const { data: item } = usePrincipalAuthModuleQuery({ id: '', - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, invocationsTableId: true, executionLogsTableId: true, invocationsTableName: true, executionLogsTableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, policies: true, provisions: true, defaultPermissions: true } }, + selection: { fields: { id: true, databaseId: true, schemaId: true, principalsTableId: true, principalEntitiesTableId: true, principalScopeOverridesTableId: true, usersTableId: true, sessionsTableId: true, sessionCredentialsTableId: true, auditsTableId: true, principalsTableName: true, createPrincipalFunction: true, deletePrincipalFunction: true, createOrgPrincipalFunction: true, deleteOrgPrincipalFunction: true, createOrgApiKeyFunction: true, revokeOrgApiKeyFunction: true, apiName: true } }, }); -// Create a functionInvocationModule -const { mutate: create } = useCreateFunctionInvocationModuleMutation({ +// Create a principalAuthModule +const { mutate: create } = useCreatePrincipalAuthModuleMutation({ selection: { fields: { id: true } }, }); -create({ databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', invocationsTableId: '', executionLogsTableId: '', invocationsTableName: '', executionLogsTableName: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '', policies: '', provisions: '', defaultPermissions: '' }); +create({ databaseId: '', schemaId: '', principalsTableId: '', principalEntitiesTableId: '', principalScopeOverridesTableId: '', usersTableId: '', sessionsTableId: '', sessionCredentialsTableId: '', auditsTableId: '', principalsTableName: '', createPrincipalFunction: '', deletePrincipalFunction: '', createOrgPrincipalFunction: '', deleteOrgPrincipalFunction: '', createOrgApiKeyFunction: '', revokeOrgApiKeyFunction: '', apiName: '' }); +``` + +### DbPool + +```typescript +// List all dbPools +const { data, isLoading } = useDbPoolsQuery({ + selection: { fields: { id: true, presetSlug: true, presetCommitId: true, databaseId: true, status: true, errorMessage: true, expiresAt: true, claimedBy: true, claimedAt: true, bootstrapStatus: true, bootstrapError: true, createdAt: true, updatedAt: true } }, +}); + +// Get one dbPool +const { data: item } = useDbPoolQuery({ + id: '', + selection: { fields: { id: true, presetSlug: true, presetCommitId: true, databaseId: true, status: true, errorMessage: true, expiresAt: true, claimedBy: true, claimedAt: true, bootstrapStatus: true, bootstrapError: true, createdAt: true, updatedAt: true } }, +}); + +// Create a dbPool +const { mutate: create } = useCreateDbPoolMutation({ + selection: { fields: { id: true } }, +}); +create({ presetSlug: '', presetCommitId: '', databaseId: '', status: '', errorMessage: '', expiresAt: '', claimedBy: '', claimedAt: '', bootstrapStatus: '', bootstrapError: '' }); ``` ### FunctionModule @@ -1209,104 +1302,104 @@ create({ databaseId: '', schemaId: '', privateSchemaId: '', pu ```typescript // List all functionModules const { data, isLoading } = useFunctionModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, definitionsTableId: true, secretDefinitionsTableId: true, definitionsTableName: true, secretDefinitionsTableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, policies: true, provisions: true, defaultPermissions: true } }, + selection: { fields: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, definitionsTableId: true, definitionsTableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, policies: true, provisions: true, defaultPermissions: true } }, }); // Get one functionModule const { data: item } = useFunctionModuleQuery({ id: '', - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, definitionsTableId: true, secretDefinitionsTableId: true, definitionsTableName: true, secretDefinitionsTableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, policies: true, provisions: true, defaultPermissions: true } }, + selection: { fields: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, definitionsTableId: true, definitionsTableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, policies: true, provisions: true, defaultPermissions: true } }, }); // Create a functionModule const { mutate: create } = useCreateFunctionModuleMutation({ selection: { fields: { id: true } }, }); -create({ databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', definitionsTableId: '', secretDefinitionsTableId: '', definitionsTableName: '', secretDefinitionsTableName: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '', policies: '', provisions: '', defaultPermissions: '' }); +create({ databaseId: '', entityField: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', definitionsTableId: '', definitionsTableName: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '', policies: '', provisions: '', defaultPermissions: '' }); ``` -### InvitesModule +### MerkleStoreModule ```typescript -// List all invitesModules -const { data, isLoading } = useInvitesModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, emailsTableId: true, usersTableId: true, invitesTableId: true, claimedInvitesTableId: true, invitesTableName: true, claimedInvitesTableName: true, submitInviteCodeFunction: true, scope: true, prefix: true, entityTableId: true, apiName: true, privateApiName: true } }, +// List all merkleStoreModules +const { data, isLoading } = useMerkleStoreModulesQuery({ + selection: { fields: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, objectTableId: true, storeTableId: true, commitTableId: true, refTableId: true, prefix: true, apiName: true, privateApiName: true, scope: true, functionPrefix: true, permissionKey: true, createdAt: true } }, }); -// Get one invitesModule -const { data: item } = useInvitesModuleQuery({ +// Get one merkleStoreModule +const { data: item } = useMerkleStoreModuleQuery({ id: '', - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, emailsTableId: true, usersTableId: true, invitesTableId: true, claimedInvitesTableId: true, invitesTableName: true, claimedInvitesTableName: true, submitInviteCodeFunction: true, scope: true, prefix: true, entityTableId: true, apiName: true, privateApiName: true } }, + selection: { fields: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, objectTableId: true, storeTableId: true, commitTableId: true, refTableId: true, prefix: true, apiName: true, privateApiName: true, scope: true, functionPrefix: true, permissionKey: true, createdAt: true } }, }); -// Create a invitesModule -const { mutate: create } = useCreateInvitesModuleMutation({ +// Create a merkleStoreModule +const { mutate: create } = useCreateMerkleStoreModuleMutation({ selection: { fields: { id: true } }, }); -create({ databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', emailsTableId: '', usersTableId: '', invitesTableId: '', claimedInvitesTableId: '', invitesTableName: '', claimedInvitesTableName: '', submitInviteCodeFunction: '', scope: '', prefix: '', entityTableId: '', apiName: '', privateApiName: '' }); +create({ databaseId: '', entityField: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', objectTableId: '', storeTableId: '', commitTableId: '', refTableId: '', prefix: '', apiName: '', privateApiName: '', scope: '', functionPrefix: '', permissionKey: '' }); ``` -### PrincipalAuthModule +### DatabaseProvisionModule ```typescript -// List all principalAuthModules -const { data, isLoading } = usePrincipalAuthModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, principalsTableId: true, principalEntitiesTableId: true, principalScopeOverridesTableId: true, usersTableId: true, sessionsTableId: true, sessionCredentialsTableId: true, auditsTableId: true, principalsTableName: true, createPrincipalFunction: true, deletePrincipalFunction: true, createOrgPrincipalFunction: true, deleteOrgPrincipalFunction: true, createOrgApiKeyFunction: true, revokeOrgApiKeyFunction: true, apiName: true } }, +// List all databaseProvisionModules +const { data, isLoading } = useDatabaseProvisionModulesQuery({ + selection: { fields: { id: true, databaseName: true, ownerId: true, subdomain: true, domain: true, modules: true, options: true, bootstrapUser: true, status: true, errorMessage: true, sourceDatabaseId: true, bootstrapStatus: true, bootstrapError: true, databaseId: true, createdAt: true, updatedAt: true, completedAt: true, fulfilledAt: true } }, }); -// Get one principalAuthModule -const { data: item } = usePrincipalAuthModuleQuery({ +// Get one databaseProvisionModule +const { data: item } = useDatabaseProvisionModuleQuery({ id: '', - selection: { fields: { id: true, databaseId: true, schemaId: true, principalsTableId: true, principalEntitiesTableId: true, principalScopeOverridesTableId: true, usersTableId: true, sessionsTableId: true, sessionCredentialsTableId: true, auditsTableId: true, principalsTableName: true, createPrincipalFunction: true, deletePrincipalFunction: true, createOrgPrincipalFunction: true, deleteOrgPrincipalFunction: true, createOrgApiKeyFunction: true, revokeOrgApiKeyFunction: true, apiName: true } }, + selection: { fields: { id: true, databaseName: true, ownerId: true, subdomain: true, domain: true, modules: true, options: true, bootstrapUser: true, status: true, errorMessage: true, sourceDatabaseId: true, bootstrapStatus: true, bootstrapError: true, databaseId: true, createdAt: true, updatedAt: true, completedAt: true, fulfilledAt: true } }, }); -// Create a principalAuthModule -const { mutate: create } = useCreatePrincipalAuthModuleMutation({ +// Create a databaseProvisionModule +const { mutate: create } = useCreateDatabaseProvisionModuleMutation({ selection: { fields: { id: true } }, }); -create({ databaseId: '', schemaId: '', principalsTableId: '', principalEntitiesTableId: '', principalScopeOverridesTableId: '', usersTableId: '', sessionsTableId: '', sessionCredentialsTableId: '', auditsTableId: '', principalsTableName: '', createPrincipalFunction: '', deletePrincipalFunction: '', createOrgPrincipalFunction: '', deleteOrgPrincipalFunction: '', createOrgApiKeyFunction: '', revokeOrgApiKeyFunction: '', apiName: '' }); +create({ databaseName: '', ownerId: '', subdomain: '', domain: '', modules: '', options: '', bootstrapUser: '', status: '', errorMessage: '', sourceDatabaseId: '', bootstrapStatus: '', bootstrapError: '', databaseId: '', completedAt: '', fulfilledAt: '' }); ``` -### ComputeLogModule +### FunctionInvocationModule ```typescript -// List all computeLogModules -const { data, isLoading } = useComputeLogModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, computeLogTableId: true, computeLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } }, +// List all functionInvocationModules +const { data, isLoading } = useFunctionInvocationModulesQuery({ + selection: { fields: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, invocationsTableId: true, executionLogsTableId: true, invocationsTableName: true, executionLogsTableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, policies: true, provisions: true, defaultPermissions: true } }, }); -// Get one computeLogModule -const { data: item } = useComputeLogModuleQuery({ +// Get one functionInvocationModule +const { data: item } = useFunctionInvocationModuleQuery({ id: '', - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, computeLogTableId: true, computeLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } }, + selection: { fields: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, invocationsTableId: true, executionLogsTableId: true, invocationsTableName: true, executionLogsTableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, policies: true, provisions: true, defaultPermissions: true } }, }); -// Create a computeLogModule -const { mutate: create } = useCreateComputeLogModuleMutation({ +// Create a functionInvocationModule +const { mutate: create } = useCreateFunctionInvocationModuleMutation({ selection: { fields: { id: true } }, }); -create({ databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', computeLogTableId: '', computeLogTableName: '', usageDailyTableId: '', usageDailyTableName: '', interval: '', retention: '', premake: '', scope: '', actorFkTableId: '', entityFkTableId: '', prefix: '', apiName: '', privateApiName: '' }); +create({ databaseId: '', entityField: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', invocationsTableId: '', executionLogsTableId: '', invocationsTableName: '', executionLogsTableName: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '', policies: '', provisions: '', defaultPermissions: '' }); ``` -### InferenceLogModule +### InvitesModule ```typescript -// List all inferenceLogModules -const { data, isLoading } = useInferenceLogModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, inferenceLogTableId: true, inferenceLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } }, +// List all invitesModules +const { data, isLoading } = useInvitesModulesQuery({ + selection: { fields: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, emailsTableId: true, usersTableId: true, invitesTableId: true, claimedInvitesTableId: true, invitesTableName: true, claimedInvitesTableName: true, submitInviteCodeFunction: true, scope: true, prefix: true, entityTableId: true, apiName: true, privateApiName: true } }, }); -// Get one inferenceLogModule -const { data: item } = useInferenceLogModuleQuery({ +// Get one invitesModule +const { data: item } = useInvitesModuleQuery({ id: '', - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, inferenceLogTableId: true, inferenceLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } }, + selection: { fields: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, emailsTableId: true, usersTableId: true, invitesTableId: true, claimedInvitesTableId: true, invitesTableName: true, claimedInvitesTableName: true, submitInviteCodeFunction: true, scope: true, prefix: true, entityTableId: true, apiName: true, privateApiName: true } }, }); -// Create a inferenceLogModule -const { mutate: create } = useCreateInferenceLogModuleMutation({ +// Create a invitesModule +const { mutate: create } = useCreateInvitesModuleMutation({ selection: { fields: { id: true } }, }); -create({ databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', inferenceLogTableId: '', inferenceLogTableName: '', usageDailyTableId: '', usageDailyTableName: '', interval: '', retention: '', premake: '', scope: '', actorFkTableId: '', entityFkTableId: '', prefix: '', apiName: '', privateApiName: '' }); +create({ databaseId: '', entityField: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', emailsTableId: '', usersTableId: '', invitesTableId: '', claimedInvitesTableId: '', invitesTableName: '', claimedInvitesTableName: '', submitInviteCodeFunction: '', scope: '', prefix: '', entityTableId: '', apiName: '', privateApiName: '' }); ``` ### NamespaceModule @@ -1314,125 +1407,125 @@ create({ databaseId: '', schemaId: '', privateSchemaId: '', pu ```typescript // List all namespaceModules const { data, isLoading } = useNamespaceModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, namespacesTableId: true, namespaceEventsTableId: true, namespacesTableName: true, namespaceEventsTableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, platformNamespacesTableId: true, policies: true, provisions: true, defaultPermissions: true } }, + selection: { fields: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, namespacesTableId: true, namespaceEventsTableId: true, namespacesTableName: true, namespaceEventsTableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, policies: true, provisions: true, defaultPermissions: true } }, }); // Get one namespaceModule const { data: item } = useNamespaceModuleQuery({ id: '', - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, namespacesTableId: true, namespaceEventsTableId: true, namespacesTableName: true, namespaceEventsTableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, platformNamespacesTableId: true, policies: true, provisions: true, defaultPermissions: true } }, + selection: { fields: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, namespacesTableId: true, namespaceEventsTableId: true, namespacesTableName: true, namespaceEventsTableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, policies: true, provisions: true, defaultPermissions: true } }, }); // Create a namespaceModule const { mutate: create } = useCreateNamespaceModuleMutation({ selection: { fields: { id: true } }, }); -create({ databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', namespacesTableId: '', namespaceEventsTableId: '', namespacesTableName: '', namespaceEventsTableName: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '', platformNamespacesTableId: '', policies: '', provisions: '', defaultPermissions: '' }); +create({ databaseId: '', entityField: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', namespacesTableId: '', namespaceEventsTableId: '', namespacesTableName: '', namespaceEventsTableName: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '', policies: '', provisions: '', defaultPermissions: '' }); ``` -### ResourceModule +### PlansModule ```typescript -// List all resourceModules -const { data, isLoading } = useResourceModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, resourcesTableId: true, resourceEventsTableId: true, resourcesTableName: true, resourceEventsTableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, namespaceModuleId: true, policies: true, provisions: true, defaultPermissions: true } }, +// List all plansModules +const { data, isLoading } = usePlansModulesQuery({ + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, plansTableId: true, plansTableName: true, planLimitsTableId: true, planLimitsTableName: true, planPricingTableId: true, planOverridesTableId: true, planMeterLimitsTableId: true, planCapsTableId: true, applyPlanFunction: true, applyPlanAggregateFunction: true, applyBillingPlanFunction: true, applyPlanCapsFunction: true, prefix: true, apiName: true, privateApiName: true } }, }); -// Get one resourceModule -const { data: item } = useResourceModuleQuery({ +// Get one plansModule +const { data: item } = usePlansModuleQuery({ id: '', - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, resourcesTableId: true, resourceEventsTableId: true, resourcesTableName: true, resourceEventsTableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, namespaceModuleId: true, policies: true, provisions: true, defaultPermissions: true } }, + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, plansTableId: true, plansTableName: true, planLimitsTableId: true, planLimitsTableName: true, planPricingTableId: true, planOverridesTableId: true, planMeterLimitsTableId: true, planCapsTableId: true, applyPlanFunction: true, applyPlanAggregateFunction: true, applyBillingPlanFunction: true, applyPlanCapsFunction: true, prefix: true, apiName: true, privateApiName: true } }, }); -// Create a resourceModule -const { mutate: create } = useCreateResourceModuleMutation({ +// Create a plansModule +const { mutate: create } = useCreatePlansModuleMutation({ selection: { fields: { id: true } }, }); -create({ databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', resourcesTableId: '', resourceEventsTableId: '', resourcesTableName: '', resourceEventsTableName: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '', namespaceModuleId: '', policies: '', provisions: '', defaultPermissions: '' }); +create({ databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', plansTableId: '', plansTableName: '', planLimitsTableId: '', planLimitsTableName: '', planPricingTableId: '', planOverridesTableId: '', planMeterLimitsTableId: '', planCapsTableId: '', applyPlanFunction: '', applyPlanAggregateFunction: '', applyBillingPlanFunction: '', applyPlanCapsFunction: '', prefix: '', apiName: '', privateApiName: '' }); ``` -### StorageLogModule +### ComputeLogModule ```typescript -// List all storageLogModules -const { data, isLoading } = useStorageLogModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, storageLogTableId: true, storageLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } }, +// List all computeLogModules +const { data, isLoading } = useComputeLogModulesQuery({ + selection: { fields: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, computeLogTableId: true, computeLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } }, }); -// Get one storageLogModule -const { data: item } = useStorageLogModuleQuery({ +// Get one computeLogModule +const { data: item } = useComputeLogModuleQuery({ id: '', - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, storageLogTableId: true, storageLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } }, + selection: { fields: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, computeLogTableId: true, computeLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } }, }); -// Create a storageLogModule -const { mutate: create } = useCreateStorageLogModuleMutation({ +// Create a computeLogModule +const { mutate: create } = useCreateComputeLogModuleMutation({ selection: { fields: { id: true } }, }); -create({ databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', storageLogTableId: '', storageLogTableName: '', usageDailyTableId: '', usageDailyTableName: '', interval: '', retention: '', premake: '', scope: '', actorFkTableId: '', entityFkTableId: '', prefix: '', apiName: '', privateApiName: '' }); +create({ databaseId: '', entityField: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', computeLogTableId: '', computeLogTableName: '', usageDailyTableId: '', usageDailyTableName: '', interval: '', retention: '', premake: '', scope: '', actorFkTableId: '', entityFkTableId: '', prefix: '', apiName: '', privateApiName: '' }); ``` -### TransferLogModule +### InferenceLogModule ```typescript -// List all transferLogModules -const { data, isLoading } = useTransferLogModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, transferLogTableId: true, transferLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } }, +// List all inferenceLogModules +const { data, isLoading } = useInferenceLogModulesQuery({ + selection: { fields: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, inferenceLogTableId: true, inferenceLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } }, }); -// Get one transferLogModule -const { data: item } = useTransferLogModuleQuery({ +// Get one inferenceLogModule +const { data: item } = useInferenceLogModuleQuery({ id: '', - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, transferLogTableId: true, transferLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } }, + selection: { fields: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, inferenceLogTableId: true, inferenceLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } }, }); -// Create a transferLogModule -const { mutate: create } = useCreateTransferLogModuleMutation({ +// Create a inferenceLogModule +const { mutate: create } = useCreateInferenceLogModuleMutation({ selection: { fields: { id: true } }, }); -create({ databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', transferLogTableId: '', transferLogTableName: '', usageDailyTableId: '', usageDailyTableName: '', interval: '', retention: '', premake: '', scope: '', actorFkTableId: '', entityFkTableId: '', prefix: '', apiName: '', privateApiName: '' }); +create({ databaseId: '', entityField: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', inferenceLogTableId: '', inferenceLogTableName: '', usageDailyTableId: '', usageDailyTableName: '', interval: '', retention: '', premake: '', scope: '', actorFkTableId: '', entityFkTableId: '', prefix: '', apiName: '', privateApiName: '' }); ``` -### FunctionDeploymentModule +### StorageLogModule ```typescript -// List all functionDeploymentModules -const { data, isLoading } = useFunctionDeploymentModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, deploymentsTableId: true, deploymentEventsTableId: true, deploymentsTableName: true, deploymentEventsTableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, functionModuleId: true, namespaceModuleId: true, policies: true, provisions: true, defaultPermissions: true } }, +// List all storageLogModules +const { data, isLoading } = useStorageLogModulesQuery({ + selection: { fields: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, storageLogTableId: true, storageLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } }, }); -// Get one functionDeploymentModule -const { data: item } = useFunctionDeploymentModuleQuery({ +// Get one storageLogModule +const { data: item } = useStorageLogModuleQuery({ id: '', - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, deploymentsTableId: true, deploymentEventsTableId: true, deploymentsTableName: true, deploymentEventsTableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, functionModuleId: true, namespaceModuleId: true, policies: true, provisions: true, defaultPermissions: true } }, + selection: { fields: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, storageLogTableId: true, storageLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } }, }); -// Create a functionDeploymentModule -const { mutate: create } = useCreateFunctionDeploymentModuleMutation({ +// Create a storageLogModule +const { mutate: create } = useCreateStorageLogModuleMutation({ selection: { fields: { id: true } }, }); -create({ databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', deploymentsTableId: '', deploymentEventsTableId: '', deploymentsTableName: '', deploymentEventsTableName: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '', functionModuleId: '', namespaceModuleId: '', policies: '', provisions: '', defaultPermissions: '' }); +create({ databaseId: '', entityField: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', storageLogTableId: '', storageLogTableName: '', usageDailyTableId: '', usageDailyTableName: '', interval: '', retention: '', premake: '', scope: '', actorFkTableId: '', entityFkTableId: '', prefix: '', apiName: '', privateApiName: '' }); ``` -### PlansModule +### TransferLogModule ```typescript -// List all plansModules -const { data, isLoading } = usePlansModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, plansTableId: true, plansTableName: true, planLimitsTableId: true, planLimitsTableName: true, planPricingTableId: true, planOverridesTableId: true, planMeterLimitsTableId: true, planCapsTableId: true, applyPlanFunction: true, applyPlanAggregateFunction: true, applyBillingPlanFunction: true, applyPlanCapsFunction: true, prefix: true, apiName: true, privateApiName: true } }, +// List all transferLogModules +const { data, isLoading } = useTransferLogModulesQuery({ + selection: { fields: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, transferLogTableId: true, transferLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } }, }); -// Get one plansModule -const { data: item } = usePlansModuleQuery({ +// Get one transferLogModule +const { data: item } = useTransferLogModuleQuery({ id: '', - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, plansTableId: true, plansTableName: true, planLimitsTableId: true, planLimitsTableName: true, planPricingTableId: true, planOverridesTableId: true, planMeterLimitsTableId: true, planCapsTableId: true, applyPlanFunction: true, applyPlanAggregateFunction: true, applyBillingPlanFunction: true, applyPlanCapsFunction: true, prefix: true, apiName: true, privateApiName: true } }, + selection: { fields: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, transferLogTableId: true, transferLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } }, }); -// Create a plansModule -const { mutate: create } = useCreatePlansModuleMutation({ +// Create a transferLogModule +const { mutate: create } = useCreateTransferLogModuleMutation({ selection: { fields: { id: true } }, }); -create({ databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', plansTableId: '', plansTableName: '', planLimitsTableId: '', planLimitsTableName: '', planPricingTableId: '', planOverridesTableId: '', planMeterLimitsTableId: '', planCapsTableId: '', applyPlanFunction: '', applyPlanAggregateFunction: '', applyBillingPlanFunction: '', applyPlanCapsFunction: '', prefix: '', apiName: '', privateApiName: '' }); +create({ databaseId: '', entityField: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', transferLogTableId: '', transferLogTableName: '', usageDailyTableId: '', usageDailyTableName: '', interval: '', retention: '', premake: '', scope: '', actorFkTableId: '', entityFkTableId: '', prefix: '', apiName: '', privateApiName: '' }); ``` ### BillingProviderModule @@ -1456,25 +1549,46 @@ const { mutate: create } = useCreateBillingProviderModuleMutation({ create({ databaseId: '', schemaId: '', privateSchemaId: '', provider: '', productsTableId: '', pricesTableId: '', subscriptionsTableId: '', billingCustomersTableId: '', billingCustomersTableName: '', billingProductsTableId: '', billingProductsTableName: '', billingPricesTableId: '', billingPricesTableName: '', billingSubscriptionsTableId: '', billingSubscriptionsTableName: '', billingWebhookEventsTableId: '', billingWebhookEventsTableName: '', processBillingEventFunction: '', prefix: '', apiName: '', privateApiName: '' }); ``` -### DbUsageModule +### FunctionDeploymentModule ```typescript -// List all dbUsageModules -const { data, isLoading } = useDbUsageModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, tableStatsLogTableId: true, tableStatsLogTableName: true, tableStatsDailyTableId: true, tableStatsDailyTableName: true, queryStatsLogTableId: true, queryStatsLogTableName: true, queryStatsDailyTableId: true, queryStatsDailyTableName: true, interval: true, retention: true, premake: true, scope: true, prefix: true, defaultPermissions: true, apiName: true, privateApiName: true } }, +// List all functionDeploymentModules +const { data, isLoading } = useFunctionDeploymentModulesQuery({ + selection: { fields: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, deploymentsTableId: true, deploymentEventsTableId: true, deploymentsTableName: true, deploymentEventsTableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, functionModuleId: true, namespaceModuleId: true, policies: true, provisions: true, defaultPermissions: true } }, }); -// Get one dbUsageModule -const { data: item } = useDbUsageModuleQuery({ +// Get one functionDeploymentModule +const { data: item } = useFunctionDeploymentModuleQuery({ id: '', - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, tableStatsLogTableId: true, tableStatsLogTableName: true, tableStatsDailyTableId: true, tableStatsDailyTableName: true, queryStatsLogTableId: true, queryStatsLogTableName: true, queryStatsDailyTableId: true, queryStatsDailyTableName: true, interval: true, retention: true, premake: true, scope: true, prefix: true, defaultPermissions: true, apiName: true, privateApiName: true } }, + selection: { fields: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, deploymentsTableId: true, deploymentEventsTableId: true, deploymentsTableName: true, deploymentEventsTableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, functionModuleId: true, namespaceModuleId: true, policies: true, provisions: true, defaultPermissions: true } }, }); -// Create a dbUsageModule -const { mutate: create } = useCreateDbUsageModuleMutation({ +// Create a functionDeploymentModule +const { mutate: create } = useCreateFunctionDeploymentModuleMutation({ selection: { fields: { id: true } }, }); -create({ databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', tableStatsLogTableId: '', tableStatsLogTableName: '', tableStatsDailyTableId: '', tableStatsDailyTableName: '', queryStatsLogTableId: '', queryStatsLogTableName: '', queryStatsDailyTableId: '', queryStatsDailyTableName: '', interval: '', retention: '', premake: '', scope: '', prefix: '', defaultPermissions: '', apiName: '', privateApiName: '' }); +create({ databaseId: '', entityField: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', deploymentsTableId: '', deploymentEventsTableId: '', deploymentsTableName: '', deploymentEventsTableName: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '', functionModuleId: '', namespaceModuleId: '', policies: '', provisions: '', defaultPermissions: '' }); +``` + +### PermissionsModule + +```typescript +// List all permissionsModules +const { data, isLoading } = usePermissionsModulesQuery({ + selection: { fields: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, tableId: true, tableName: true, defaultTableId: true, defaultTableName: true, bitlen: true, scope: true, prefix: true, entityTableId: true, actorTableId: true, getPaddedMask: true, getMask: true, getByMask: true, getMaskByName: true, apiName: true, privateApiName: true } }, +}); + +// Get one permissionsModule +const { data: item } = usePermissionsModuleQuery({ + id: '', + selection: { fields: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, tableId: true, tableName: true, defaultTableId: true, defaultTableName: true, bitlen: true, scope: true, prefix: true, entityTableId: true, actorTableId: true, getPaddedMask: true, getMask: true, getByMask: true, getMaskByName: true, apiName: true, privateApiName: true } }, +}); + +// Create a permissionsModule +const { mutate: create } = useCreatePermissionsModuleMutation({ + selection: { fields: { id: true } }, +}); +create({ databaseId: '', entityField: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', tableId: '', tableName: '', defaultTableId: '', defaultTableName: '', bitlen: '', scope: '', prefix: '', entityTableId: '', actorTableId: '', getPaddedMask: '', getMask: '', getByMask: '', getMaskByName: '', apiName: '', privateApiName: '' }); ``` ### GraphExecutionModule @@ -1482,20 +1596,20 @@ create({ databaseId: '', schemaId: '', privateSchemaId: '', pu ```typescript // List all graphExecutionModules const { data, isLoading } = useGraphExecutionModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, graphModuleId: true, scope: true, prefix: true, executionsTableId: true, outputsTableId: true, nodeStatesTableId: true, executionsTableName: true, outputsTableName: true, nodeStatesTableName: true, apiName: true, privateApiName: true, entityTableId: true, policies: true, provisions: true, defaultPermissions: true, createdAt: true } }, + selection: { fields: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, graphModuleId: true, scope: true, prefix: true, executionsTableId: true, outputsTableId: true, nodeStatesTableId: true, executionsTableName: true, outputsTableName: true, nodeStatesTableName: true, apiName: true, privateApiName: true, entityTableId: true, policies: true, provisions: true, defaultPermissions: true, createdAt: true } }, }); // Get one graphExecutionModule const { data: item } = useGraphExecutionModuleQuery({ id: '', - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, graphModuleId: true, scope: true, prefix: true, executionsTableId: true, outputsTableId: true, nodeStatesTableId: true, executionsTableName: true, outputsTableName: true, nodeStatesTableName: true, apiName: true, privateApiName: true, entityTableId: true, policies: true, provisions: true, defaultPermissions: true, createdAt: true } }, + selection: { fields: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, graphModuleId: true, scope: true, prefix: true, executionsTableId: true, outputsTableId: true, nodeStatesTableId: true, executionsTableName: true, outputsTableName: true, nodeStatesTableName: true, apiName: true, privateApiName: true, entityTableId: true, policies: true, provisions: true, defaultPermissions: true, createdAt: true } }, }); // Create a graphExecutionModule const { mutate: create } = useCreateGraphExecutionModuleMutation({ selection: { fields: { id: true } }, }); -create({ databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', graphModuleId: '', scope: '', prefix: '', executionsTableId: '', outputsTableId: '', nodeStatesTableId: '', executionsTableName: '', outputsTableName: '', nodeStatesTableName: '', apiName: '', privateApiName: '', entityTableId: '', policies: '', provisions: '', defaultPermissions: '' }); +create({ databaseId: '', entityField: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', graphModuleId: '', scope: '', prefix: '', executionsTableId: '', outputsTableId: '', nodeStatesTableId: '', executionsTableName: '', outputsTableName: '', nodeStatesTableName: '', apiName: '', privateApiName: '', entityTableId: '', policies: '', provisions: '', defaultPermissions: '' }); ``` ### HierarchyModule @@ -1503,62 +1617,62 @@ create({ databaseId: '', schemaId: '', privateSchemaId: '', pu ```typescript // List all hierarchyModules const { data, isLoading } = useHierarchyModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, chartEdgesTableId: true, chartEdgesTableName: true, hierarchySprtTableId: true, hierarchySprtTableName: true, chartEdgeGrantsTableId: true, chartEdgeGrantsTableName: true, entityTableId: true, usersTableId: true, scope: true, prefix: true, privateSchemaName: true, sprtTableName: true, rebuildHierarchyFunction: true, getSubordinatesFunction: true, getManagersFunction: true, isManagerOfFunction: true, defaultPermissions: true, createdAt: true } }, + selection: { fields: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, chartEdgesTableId: true, chartEdgesTableName: true, hierarchySprtTableId: true, hierarchySprtTableName: true, chartEdgeGrantsTableId: true, chartEdgeGrantsTableName: true, entityTableId: true, usersTableId: true, scope: true, prefix: true, privateSchemaName: true, sprtTableName: true, rebuildHierarchyFunction: true, getSubordinatesFunction: true, getManagersFunction: true, isManagerOfFunction: true, defaultPermissions: true, createdAt: true } }, }); // Get one hierarchyModule const { data: item } = useHierarchyModuleQuery({ id: '', - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, chartEdgesTableId: true, chartEdgesTableName: true, hierarchySprtTableId: true, hierarchySprtTableName: true, chartEdgeGrantsTableId: true, chartEdgeGrantsTableName: true, entityTableId: true, usersTableId: true, scope: true, prefix: true, privateSchemaName: true, sprtTableName: true, rebuildHierarchyFunction: true, getSubordinatesFunction: true, getManagersFunction: true, isManagerOfFunction: true, defaultPermissions: true, createdAt: true } }, + selection: { fields: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, chartEdgesTableId: true, chartEdgesTableName: true, hierarchySprtTableId: true, hierarchySprtTableName: true, chartEdgeGrantsTableId: true, chartEdgeGrantsTableName: true, entityTableId: true, usersTableId: true, scope: true, prefix: true, privateSchemaName: true, sprtTableName: true, rebuildHierarchyFunction: true, getSubordinatesFunction: true, getManagersFunction: true, isManagerOfFunction: true, defaultPermissions: true, createdAt: true } }, }); // Create a hierarchyModule const { mutate: create } = useCreateHierarchyModuleMutation({ selection: { fields: { id: true } }, }); -create({ databaseId: '', schemaId: '', privateSchemaId: '', chartEdgesTableId: '', chartEdgesTableName: '', hierarchySprtTableId: '', hierarchySprtTableName: '', chartEdgeGrantsTableId: '', chartEdgeGrantsTableName: '', entityTableId: '', usersTableId: '', scope: '', prefix: '', privateSchemaName: '', sprtTableName: '', rebuildHierarchyFunction: '', getSubordinatesFunction: '', getManagersFunction: '', isManagerOfFunction: '', defaultPermissions: '' }); +create({ databaseId: '', entityField: '', schemaId: '', privateSchemaId: '', chartEdgesTableId: '', chartEdgesTableName: '', hierarchySprtTableId: '', hierarchySprtTableName: '', chartEdgeGrantsTableId: '', chartEdgeGrantsTableName: '', entityTableId: '', usersTableId: '', scope: '', prefix: '', privateSchemaName: '', sprtTableName: '', rebuildHierarchyFunction: '', getSubordinatesFunction: '', getManagersFunction: '', isManagerOfFunction: '', defaultPermissions: '' }); ``` -### PermissionsModule +### NotificationsModule ```typescript -// List all permissionsModules -const { data, isLoading } = usePermissionsModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, tableId: true, tableName: true, defaultTableId: true, defaultTableName: true, bitlen: true, scope: true, prefix: true, entityTableId: true, actorTableId: true, getPaddedMask: true, getMask: true, getByMask: true, getMaskByName: true, apiName: true, privateApiName: true } }, +// List all notificationsModules +const { data, isLoading } = useNotificationsModulesQuery({ + selection: { fields: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, notificationsTableId: true, readStateTableId: true, preferencesTableId: true, channelsTableId: true, deliveryLogTableId: true, suppressionsTableId: true, ownerTableId: true, userSettingsTableId: true, organizationSettingsTableId: true, hasChannels: true, hasPreferences: true, hasSettingsExtension: true, hasDigestMetadata: true, hasSubscriptions: true, defaultPermissions: true, apiName: true, privateApiName: true } }, }); -// Get one permissionsModule -const { data: item } = usePermissionsModuleQuery({ +// Get one notificationsModule +const { data: item } = useNotificationsModuleQuery({ id: '', - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, tableId: true, tableName: true, defaultTableId: true, defaultTableName: true, bitlen: true, scope: true, prefix: true, entityTableId: true, actorTableId: true, getPaddedMask: true, getMask: true, getByMask: true, getMaskByName: true, apiName: true, privateApiName: true } }, + selection: { fields: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, notificationsTableId: true, readStateTableId: true, preferencesTableId: true, channelsTableId: true, deliveryLogTableId: true, suppressionsTableId: true, ownerTableId: true, userSettingsTableId: true, organizationSettingsTableId: true, hasChannels: true, hasPreferences: true, hasSettingsExtension: true, hasDigestMetadata: true, hasSubscriptions: true, defaultPermissions: true, apiName: true, privateApiName: true } }, }); -// Create a permissionsModule -const { mutate: create } = useCreatePermissionsModuleMutation({ +// Create a notificationsModule +const { mutate: create } = useCreateNotificationsModuleMutation({ selection: { fields: { id: true } }, }); -create({ databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', tableId: '', tableName: '', defaultTableId: '', defaultTableName: '', bitlen: '', scope: '', prefix: '', entityTableId: '', actorTableId: '', getPaddedMask: '', getMask: '', getByMask: '', getMaskByName: '', apiName: '', privateApiName: '' }); +create({ databaseId: '', entityField: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', notificationsTableId: '', readStateTableId: '', preferencesTableId: '', channelsTableId: '', deliveryLogTableId: '', suppressionsTableId: '', ownerTableId: '', userSettingsTableId: '', organizationSettingsTableId: '', hasChannels: '', hasPreferences: '', hasSettingsExtension: '', hasDigestMetadata: '', hasSubscriptions: '', defaultPermissions: '', apiName: '', privateApiName: '' }); ``` -### NotificationsModule +### RelationProvision ```typescript -// List all notificationsModules -const { data, isLoading } = useNotificationsModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, notificationsTableId: true, readStateTableId: true, preferencesTableId: true, channelsTableId: true, deliveryLogTableId: true, suppressionsTableId: true, ownerTableId: true, userSettingsTableId: true, organizationSettingsTableId: true, hasChannels: true, hasPreferences: true, hasSettingsExtension: true, hasDigestMetadata: true, hasSubscriptions: true, defaultPermissions: true, apiName: true, privateApiName: true } }, +// List all relationProvisions +const { data, isLoading } = useRelationProvisionsQuery({ + selection: { fields: { id: true, databaseId: true, relationType: true, sourceTableId: true, targetTableId: true, fieldName: true, deleteAction: true, isRequired: true, apiRequired: true, junctionTableId: true, junctionTableName: true, junctionSchemaId: true, sourceFieldName: true, targetFieldName: true, useCompositeKey: true, createIndex: true, exposeInApi: true, nodes: true, grants: true, policies: true, outFieldId: true, outJunctionTableId: true, outSourceFieldId: true, outTargetFieldId: true } }, }); -// Get one notificationsModule -const { data: item } = useNotificationsModuleQuery({ +// Get one relationProvision +const { data: item } = useRelationProvisionQuery({ id: '', - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, notificationsTableId: true, readStateTableId: true, preferencesTableId: true, channelsTableId: true, deliveryLogTableId: true, suppressionsTableId: true, ownerTableId: true, userSettingsTableId: true, organizationSettingsTableId: true, hasChannels: true, hasPreferences: true, hasSettingsExtension: true, hasDigestMetadata: true, hasSubscriptions: true, defaultPermissions: true, apiName: true, privateApiName: true } }, + selection: { fields: { id: true, databaseId: true, relationType: true, sourceTableId: true, targetTableId: true, fieldName: true, deleteAction: true, isRequired: true, apiRequired: true, junctionTableId: true, junctionTableName: true, junctionSchemaId: true, sourceFieldName: true, targetFieldName: true, useCompositeKey: true, createIndex: true, exposeInApi: true, nodes: true, grants: true, policies: true, outFieldId: true, outJunctionTableId: true, outSourceFieldId: true, outTargetFieldId: true } }, }); -// Create a notificationsModule -const { mutate: create } = useCreateNotificationsModuleMutation({ +// Create a relationProvision +const { mutate: create } = useCreateRelationProvisionMutation({ selection: { fields: { id: true } }, }); -create({ databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', notificationsTableId: '', readStateTableId: '', preferencesTableId: '', channelsTableId: '', deliveryLogTableId: '', suppressionsTableId: '', ownerTableId: '', userSettingsTableId: '', organizationSettingsTableId: '', hasChannels: '', hasPreferences: '', hasSettingsExtension: '', hasDigestMetadata: '', hasSubscriptions: '', defaultPermissions: '', apiName: '', privateApiName: '' }); +create({ databaseId: '', relationType: '', sourceTableId: '', targetTableId: '', fieldName: '', deleteAction: '', isRequired: '', apiRequired: '', junctionTableId: '', junctionTableName: '', junctionSchemaId: '', sourceFieldName: '', targetFieldName: '', useCompositeKey: '', createIndex: '', exposeInApi: '', nodes: '', grants: '', policies: '', outFieldId: '', outJunctionTableId: '', outSourceFieldId: '', outTargetFieldId: '' }); ``` ### ProfilesModule @@ -1566,20 +1680,20 @@ create({ databaseId: '', schemaId: '', privateSchemaId: '', pu ```typescript // List all profilesModules const { data, isLoading } = useProfilesModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, tableId: true, tableName: true, profilePermissionsTableId: true, profilePermissionsTableName: true, profileGrantsTableId: true, profileGrantsTableName: true, profileDefinitionGrantsTableId: true, profileDefinitionGrantsTableName: true, profileTemplatesTableId: true, profileTemplatesTableName: true, scope: true, prefix: true, entityTableId: true, actorTableId: true, permissionsTableId: true, membershipsTableId: true, apiName: true, privateApiName: true } }, + selection: { fields: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, tableId: true, tableName: true, profilePermissionsTableId: true, profilePermissionsTableName: true, profileGrantsTableId: true, profileGrantsTableName: true, profileDefinitionGrantsTableId: true, profileDefinitionGrantsTableName: true, profileTemplatesTableId: true, profileTemplatesTableName: true, scope: true, prefix: true, entityTableId: true, actorTableId: true, permissionsTableId: true, membershipsTableId: true, apiName: true, privateApiName: true } }, }); // Get one profilesModule const { data: item } = useProfilesModuleQuery({ id: '', - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, tableId: true, tableName: true, profilePermissionsTableId: true, profilePermissionsTableName: true, profileGrantsTableId: true, profileGrantsTableName: true, profileDefinitionGrantsTableId: true, profileDefinitionGrantsTableName: true, profileTemplatesTableId: true, profileTemplatesTableName: true, scope: true, prefix: true, entityTableId: true, actorTableId: true, permissionsTableId: true, membershipsTableId: true, apiName: true, privateApiName: true } }, + selection: { fields: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, tableId: true, tableName: true, profilePermissionsTableId: true, profilePermissionsTableName: true, profileGrantsTableId: true, profileGrantsTableName: true, profileDefinitionGrantsTableId: true, profileDefinitionGrantsTableName: true, profileTemplatesTableId: true, profileTemplatesTableName: true, scope: true, prefix: true, entityTableId: true, actorTableId: true, permissionsTableId: true, membershipsTableId: true, apiName: true, privateApiName: true } }, }); // Create a profilesModule const { mutate: create } = useCreateProfilesModuleMutation({ selection: { fields: { id: true } }, }); -create({ databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', tableId: '', tableName: '', profilePermissionsTableId: '', profilePermissionsTableName: '', profileGrantsTableId: '', profileGrantsTableName: '', profileDefinitionGrantsTableId: '', profileDefinitionGrantsTableName: '', profileTemplatesTableId: '', profileTemplatesTableName: '', scope: '', prefix: '', entityTableId: '', actorTableId: '', permissionsTableId: '', membershipsTableId: '', apiName: '', privateApiName: '' }); +create({ databaseId: '', entityField: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', tableId: '', tableName: '', profilePermissionsTableId: '', profilePermissionsTableName: '', profileGrantsTableId: '', profileGrantsTableName: '', profileDefinitionGrantsTableId: '', profileDefinitionGrantsTableName: '', profileTemplatesTableId: '', profileTemplatesTableName: '', scope: '', prefix: '', entityTableId: '', actorTableId: '', permissionsTableId: '', membershipsTableId: '', apiName: '', privateApiName: '' }); ``` ### BillingModule @@ -1587,41 +1701,41 @@ create({ databaseId: '', schemaId: '', privateSchemaId: '', pu ```typescript // List all billingModules const { data, isLoading } = useBillingModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, metersTableId: true, metersTableName: true, planSubscriptionsTableId: true, planSubscriptionsTableName: true, ledgerTableId: true, ledgerTableName: true, balancesTableId: true, balancesTableName: true, meterCreditsTableId: true, meterCreditsTableName: true, meterSourcesTableId: true, meterSourcesTableName: true, meterDefaultsTableId: true, meterDefaultsTableName: true, recordUsageFunction: true, prefix: true, defaultPermissions: true, apiName: true, privateApiName: true } }, + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, metersTableId: true, metersTableName: true, planSubscriptionsTableId: true, planSubscriptionsTableName: true, ledgerTableId: true, ledgerTableName: true, balancesTableId: true, balancesTableName: true, meterCreditsTableId: true, meterCreditsTableName: true, meterSourcesTableId: true, meterSourcesTableName: true, meterDefaultsTableId: true, meterDefaultsTableName: true, recordUsageFunction: true, sweepExpiredSubscriptionsFunction: true, rollupUsageSummaryFunction: true, prefix: true, defaultPermissions: true, apiName: true, privateApiName: true } }, }); // Get one billingModule const { data: item } = useBillingModuleQuery({ id: '', - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, metersTableId: true, metersTableName: true, planSubscriptionsTableId: true, planSubscriptionsTableName: true, ledgerTableId: true, ledgerTableName: true, balancesTableId: true, balancesTableName: true, meterCreditsTableId: true, meterCreditsTableName: true, meterSourcesTableId: true, meterSourcesTableName: true, meterDefaultsTableId: true, meterDefaultsTableName: true, recordUsageFunction: true, prefix: true, defaultPermissions: true, apiName: true, privateApiName: true } }, + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, metersTableId: true, metersTableName: true, planSubscriptionsTableId: true, planSubscriptionsTableName: true, ledgerTableId: true, ledgerTableName: true, balancesTableId: true, balancesTableName: true, meterCreditsTableId: true, meterCreditsTableName: true, meterSourcesTableId: true, meterSourcesTableName: true, meterDefaultsTableId: true, meterDefaultsTableName: true, recordUsageFunction: true, sweepExpiredSubscriptionsFunction: true, rollupUsageSummaryFunction: true, prefix: true, defaultPermissions: true, apiName: true, privateApiName: true } }, }); // Create a billingModule const { mutate: create } = useCreateBillingModuleMutation({ selection: { fields: { id: true } }, }); -create({ databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', metersTableId: '', metersTableName: '', planSubscriptionsTableId: '', planSubscriptionsTableName: '', ledgerTableId: '', ledgerTableName: '', balancesTableId: '', balancesTableName: '', meterCreditsTableId: '', meterCreditsTableName: '', meterSourcesTableId: '', meterSourcesTableName: '', meterDefaultsTableId: '', meterDefaultsTableName: '', recordUsageFunction: '', prefix: '', defaultPermissions: '', apiName: '', privateApiName: '' }); +create({ databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', metersTableId: '', metersTableName: '', planSubscriptionsTableId: '', planSubscriptionsTableName: '', ledgerTableId: '', ledgerTableName: '', balancesTableId: '', balancesTableName: '', meterCreditsTableId: '', meterCreditsTableName: '', meterSourcesTableId: '', meterSourcesTableName: '', meterDefaultsTableId: '', meterDefaultsTableName: '', recordUsageFunction: '', sweepExpiredSubscriptionsFunction: '', rollupUsageSummaryFunction: '', prefix: '', defaultPermissions: '', apiName: '', privateApiName: '' }); ``` -### RelationProvision +### ResourceModule ```typescript -// List all relationProvisions -const { data, isLoading } = useRelationProvisionsQuery({ - selection: { fields: { id: true, databaseId: true, relationType: true, sourceTableId: true, targetTableId: true, fieldName: true, deleteAction: true, isRequired: true, apiRequired: true, junctionTableId: true, junctionTableName: true, junctionSchemaId: true, sourceFieldName: true, targetFieldName: true, useCompositeKey: true, createIndex: true, exposeInApi: true, nodes: true, grants: true, policies: true, outFieldId: true, outJunctionTableId: true, outSourceFieldId: true, outTargetFieldId: true } }, +// List all resourceModules +const { data, isLoading } = useResourceModulesQuery({ + selection: { fields: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, resourcesTableId: true, resourceEventsTableId: true, resourceStatusChecksTableId: true, resourceDefinitionsTableId: true, resourcesTableName: true, resourceEventsTableName: true, resourceStatusChecksTableName: true, resourceDefinitionsTableName: true, resolvedRequirementsViewName: true, requirementsStateViewName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, namespaceModuleId: true, policies: true, provisions: true, defaultPermissions: true } }, }); -// Get one relationProvision -const { data: item } = useRelationProvisionQuery({ +// Get one resourceModule +const { data: item } = useResourceModuleQuery({ id: '', - selection: { fields: { id: true, databaseId: true, relationType: true, sourceTableId: true, targetTableId: true, fieldName: true, deleteAction: true, isRequired: true, apiRequired: true, junctionTableId: true, junctionTableName: true, junctionSchemaId: true, sourceFieldName: true, targetFieldName: true, useCompositeKey: true, createIndex: true, exposeInApi: true, nodes: true, grants: true, policies: true, outFieldId: true, outJunctionTableId: true, outSourceFieldId: true, outTargetFieldId: true } }, + selection: { fields: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, resourcesTableId: true, resourceEventsTableId: true, resourceStatusChecksTableId: true, resourceDefinitionsTableId: true, resourcesTableName: true, resourceEventsTableName: true, resourceStatusChecksTableName: true, resourceDefinitionsTableName: true, resolvedRequirementsViewName: true, requirementsStateViewName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, namespaceModuleId: true, policies: true, provisions: true, defaultPermissions: true } }, }); -// Create a relationProvision -const { mutate: create } = useCreateRelationProvisionMutation({ +// Create a resourceModule +const { mutate: create } = useCreateResourceModuleMutation({ selection: { fields: { id: true } }, }); -create({ databaseId: '', relationType: '', sourceTableId: '', targetTableId: '', fieldName: '', deleteAction: '', isRequired: '', apiRequired: '', junctionTableId: '', junctionTableName: '', junctionSchemaId: '', sourceFieldName: '', targetFieldName: '', useCompositeKey: '', createIndex: '', exposeInApi: '', nodes: '', grants: '', policies: '', outFieldId: '', outJunctionTableId: '', outSourceFieldId: '', outTargetFieldId: '' }); +create({ databaseId: '', entityField: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', resourcesTableId: '', resourceEventsTableId: '', resourceStatusChecksTableId: '', resourceDefinitionsTableId: '', resourcesTableName: '', resourceEventsTableName: '', resourceStatusChecksTableName: '', resourceDefinitionsTableName: '', resolvedRequirementsViewName: '', requirementsStateViewName: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '', namespaceModuleId: '', policies: '', provisions: '', defaultPermissions: '' }); ``` ### UserAuthModule @@ -1645,25 +1759,46 @@ const { mutate: create } = useCreateUserAuthModuleMutation({ create({ databaseId: '', schemaId: '', emailsTableId: '', usersTableId: '', secretsTableId: '', encryptedTableId: '', sessionsTableId: '', sessionCredentialsTableId: '', auditsTableId: '', auditsTableName: '', signInFunction: '', signUpFunction: '', signOutFunction: '', setPasswordFunction: '', resetPasswordFunction: '', forgotPasswordFunction: '', sendVerificationEmailFunction: '', verifyEmailFunction: '', verifyPasswordFunction: '', checkPasswordFunction: '', sendAccountDeletionEmailFunction: '', deleteAccountFunction: '', signInCrossOriginFunction: '', requestCrossOriginTokenFunction: '', extendTokenExpires: '', apiName: '', privateApiName: '' }); ``` +### DbUsageModule + +```typescript +// List all dbUsageModules +const { data, isLoading } = useDbUsageModulesQuery({ + selection: { fields: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, tableStatsLogTableId: true, tableStatsLogTableName: true, tableStatsDailyTableId: true, tableStatsDailyTableName: true, queryStatsLogTableId: true, queryStatsLogTableName: true, queryStatsDailyTableId: true, queryStatsDailyTableName: true, collectDbTableStatsFunction: true, collectDbQueryStatsFunction: true, rollupDbTableStatsDailyFunction: true, rollupDbQueryStatsDailyFunction: true, interval: true, retention: true, premake: true, scope: true, prefix: true, defaultPermissions: true, apiName: true, privateApiName: true } }, +}); + +// Get one dbUsageModule +const { data: item } = useDbUsageModuleQuery({ + id: '', + selection: { fields: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, tableStatsLogTableId: true, tableStatsLogTableName: true, tableStatsDailyTableId: true, tableStatsDailyTableName: true, queryStatsLogTableId: true, queryStatsLogTableName: true, queryStatsDailyTableId: true, queryStatsDailyTableName: true, collectDbTableStatsFunction: true, collectDbQueryStatsFunction: true, rollupDbTableStatsDailyFunction: true, rollupDbQueryStatsDailyFunction: true, interval: true, retention: true, premake: true, scope: true, prefix: true, defaultPermissions: true, apiName: true, privateApiName: true } }, +}); + +// Create a dbUsageModule +const { mutate: create } = useCreateDbUsageModuleMutation({ + selection: { fields: { id: true } }, +}); +create({ databaseId: '', entityField: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', tableStatsLogTableId: '', tableStatsLogTableName: '', tableStatsDailyTableId: '', tableStatsDailyTableName: '', queryStatsLogTableId: '', queryStatsLogTableName: '', queryStatsDailyTableId: '', queryStatsDailyTableName: '', collectDbTableStatsFunction: '', collectDbQueryStatsFunction: '', rollupDbTableStatsDailyFunction: '', rollupDbQueryStatsDailyFunction: '', interval: '', retention: '', premake: '', scope: '', prefix: '', defaultPermissions: '', apiName: '', privateApiName: '' }); +``` + ### AgentModule ```typescript // List all agentModules const { data, isLoading } = useAgentModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, threadTableId: true, messageTableId: true, taskTableId: true, promptsTableId: true, planTableId: true, agentTableId: true, personaTableId: true, resourceTableId: true, threadTableName: true, messageTableName: true, taskTableName: true, promptsTableName: true, planTableName: true, agentTableName: true, personaTableName: true, resourceTableName: true, hasPlans: true, hasResources: true, hasAgents: true, shared: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, policies: true, resources: true, provisions: true, defaultPermissions: true } }, + selection: { fields: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, threadTableId: true, messageTableId: true, taskTableId: true, promptsTableId: true, planTableId: true, agentTableId: true, personaTableId: true, resourceTableId: true, threadTableName: true, messageTableName: true, taskTableName: true, promptsTableName: true, planTableName: true, agentTableName: true, personaTableName: true, resourceTableName: true, hasPlans: true, hasResources: true, hasAgents: true, shared: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, policies: true, resources: true, provisions: true, defaultPermissions: true } }, }); // Get one agentModule const { data: item } = useAgentModuleQuery({ id: '', - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, threadTableId: true, messageTableId: true, taskTableId: true, promptsTableId: true, planTableId: true, agentTableId: true, personaTableId: true, resourceTableId: true, threadTableName: true, messageTableName: true, taskTableName: true, promptsTableName: true, planTableName: true, agentTableName: true, personaTableName: true, resourceTableName: true, hasPlans: true, hasResources: true, hasAgents: true, shared: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, policies: true, resources: true, provisions: true, defaultPermissions: true } }, + selection: { fields: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, threadTableId: true, messageTableId: true, taskTableId: true, promptsTableId: true, planTableId: true, agentTableId: true, personaTableId: true, resourceTableId: true, threadTableName: true, messageTableName: true, taskTableName: true, promptsTableName: true, planTableName: true, agentTableName: true, personaTableName: true, resourceTableName: true, hasPlans: true, hasResources: true, hasAgents: true, shared: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, policies: true, resources: true, provisions: true, defaultPermissions: true } }, }); // Create a agentModule const { mutate: create } = useCreateAgentModuleMutation({ selection: { fields: { id: true } }, }); -create({ databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', threadTableId: '', messageTableId: '', taskTableId: '', promptsTableId: '', planTableId: '', agentTableId: '', personaTableId: '', resourceTableId: '', threadTableName: '', messageTableName: '', taskTableName: '', promptsTableName: '', planTableName: '', agentTableName: '', personaTableName: '', resourceTableName: '', hasPlans: '', hasResources: '', hasAgents: '', shared: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '', policies: '', resources: '', provisions: '', defaultPermissions: '' }); +create({ databaseId: '', entityField: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', threadTableId: '', messageTableId: '', taskTableId: '', promptsTableId: '', planTableId: '', agentTableId: '', personaTableId: '', resourceTableId: '', threadTableName: '', messageTableName: '', taskTableName: '', promptsTableName: '', planTableName: '', agentTableName: '', personaTableName: '', resourceTableName: '', hasPlans: '', hasResources: '', hasAgents: '', shared: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '', policies: '', resources: '', provisions: '', defaultPermissions: '' }); ``` ### LimitsModule @@ -1671,41 +1806,20 @@ create({ databaseId: '', schemaId: '', privateSchemaId: '', pu ```typescript // List all limitsModules const { data, isLoading } = useLimitsModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, tableId: true, tableName: true, defaultTableId: true, defaultTableName: true, limitIncrementFunction: true, limitDecrementFunction: true, limitIncrementTrigger: true, limitDecrementTrigger: true, limitUpdateTrigger: true, limitCheckFunction: true, limitCreditsTableId: true, eventsTableId: true, creditCodesTableId: true, creditCodeItemsTableId: true, creditRedemptionsTableId: true, aggregateTableId: true, limitCapsTableId: true, limitCapsDefaultsTableId: true, capCheckTrigger: true, resolveCapFunction: true, limitWarningsTableId: true, limitWarningStateTableId: true, limitCheckSoftFunction: true, limitAggregateCheckSoftFunction: true, scope: true, prefix: true, entityTableId: true, actorTableId: true, apiName: true, privateApiName: true } }, + selection: { fields: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, tableId: true, tableName: true, defaultTableId: true, defaultTableName: true, limitIncrementFunction: true, limitDecrementFunction: true, limitIncrementTrigger: true, limitDecrementTrigger: true, limitUpdateTrigger: true, limitCheckFunction: true, limitCreditsTableId: true, eventsTableId: true, creditCodesTableId: true, creditCodeItemsTableId: true, creditRedemptionsTableId: true, aggregateTableId: true, limitCapsTableId: true, limitCapsDefaultsTableId: true, capCheckTrigger: true, resolveCapFunction: true, limitWarningsTableId: true, limitWarningStateTableId: true, limitCheckSoftFunction: true, limitAggregateCheckSoftFunction: true, scope: true, prefix: true, entityTableId: true, actorTableId: true, apiName: true, privateApiName: true } }, }); // Get one limitsModule const { data: item } = useLimitsModuleQuery({ id: '', - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, tableId: true, tableName: true, defaultTableId: true, defaultTableName: true, limitIncrementFunction: true, limitDecrementFunction: true, limitIncrementTrigger: true, limitDecrementTrigger: true, limitUpdateTrigger: true, limitCheckFunction: true, limitCreditsTableId: true, eventsTableId: true, creditCodesTableId: true, creditCodeItemsTableId: true, creditRedemptionsTableId: true, aggregateTableId: true, limitCapsTableId: true, limitCapsDefaultsTableId: true, capCheckTrigger: true, resolveCapFunction: true, limitWarningsTableId: true, limitWarningStateTableId: true, limitCheckSoftFunction: true, limitAggregateCheckSoftFunction: true, scope: true, prefix: true, entityTableId: true, actorTableId: true, apiName: true, privateApiName: true } }, + selection: { fields: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, tableId: true, tableName: true, defaultTableId: true, defaultTableName: true, limitIncrementFunction: true, limitDecrementFunction: true, limitIncrementTrigger: true, limitDecrementTrigger: true, limitUpdateTrigger: true, limitCheckFunction: true, limitCreditsTableId: true, eventsTableId: true, creditCodesTableId: true, creditCodeItemsTableId: true, creditRedemptionsTableId: true, aggregateTableId: true, limitCapsTableId: true, limitCapsDefaultsTableId: true, capCheckTrigger: true, resolveCapFunction: true, limitWarningsTableId: true, limitWarningStateTableId: true, limitCheckSoftFunction: true, limitAggregateCheckSoftFunction: true, scope: true, prefix: true, entityTableId: true, actorTableId: true, apiName: true, privateApiName: true } }, }); // Create a limitsModule const { mutate: create } = useCreateLimitsModuleMutation({ selection: { fields: { id: true } }, }); -create({ databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', tableId: '', tableName: '', defaultTableId: '', defaultTableName: '', limitIncrementFunction: '', limitDecrementFunction: '', limitIncrementTrigger: '', limitDecrementTrigger: '', limitUpdateTrigger: '', limitCheckFunction: '', limitCreditsTableId: '', eventsTableId: '', creditCodesTableId: '', creditCodeItemsTableId: '', creditRedemptionsTableId: '', aggregateTableId: '', limitCapsTableId: '', limitCapsDefaultsTableId: '', capCheckTrigger: '', resolveCapFunction: '', limitWarningsTableId: '', limitWarningStateTableId: '', limitCheckSoftFunction: '', limitAggregateCheckSoftFunction: '', scope: '', prefix: '', entityTableId: '', actorTableId: '', apiName: '', privateApiName: '' }); -``` - -### MembershipsModule - -```typescript -// List all membershipsModules -const { data, isLoading } = useMembershipsModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, membershipsTableId: true, membershipsTableName: true, membersTableId: true, membersTableName: true, membershipDefaultsTableId: true, membershipDefaultsTableName: true, membershipSettingsTableId: true, membershipSettingsTableName: true, grantsTableId: true, grantsTableName: true, actorTableId: true, limitsTableId: true, defaultLimitsTableId: true, permissionsTableId: true, defaultPermissionsTableId: true, sprtTableId: true, adminGrantsTableId: true, adminGrantsTableName: true, ownerGrantsTableId: true, ownerGrantsTableName: true, scope: true, prefix: true, entityTableId: true, entityTableOwnerId: true, getOrgFn: true, actorMaskCheck: true, actorPermCheck: true, entityIdsByMask: true, entityIdsByPerm: true, entityIdsFunction: true, memberProfilesTableId: true, permissionDefaultPermissionsTableId: true, permissionDefaultGrantsTableId: true, apiName: true, privateApiName: true } }, -}); - -// Get one membershipsModule -const { data: item } = useMembershipsModuleQuery({ - id: '', - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, membershipsTableId: true, membershipsTableName: true, membersTableId: true, membersTableName: true, membershipDefaultsTableId: true, membershipDefaultsTableName: true, membershipSettingsTableId: true, membershipSettingsTableName: true, grantsTableId: true, grantsTableName: true, actorTableId: true, limitsTableId: true, defaultLimitsTableId: true, permissionsTableId: true, defaultPermissionsTableId: true, sprtTableId: true, adminGrantsTableId: true, adminGrantsTableName: true, ownerGrantsTableId: true, ownerGrantsTableName: true, scope: true, prefix: true, entityTableId: true, entityTableOwnerId: true, getOrgFn: true, actorMaskCheck: true, actorPermCheck: true, entityIdsByMask: true, entityIdsByPerm: true, entityIdsFunction: true, memberProfilesTableId: true, permissionDefaultPermissionsTableId: true, permissionDefaultGrantsTableId: true, apiName: true, privateApiName: true } }, -}); - -// Create a membershipsModule -const { mutate: create } = useCreateMembershipsModuleMutation({ - selection: { fields: { id: true } }, -}); -create({ databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', membershipsTableId: '', membershipsTableName: '', membersTableId: '', membersTableName: '', membershipDefaultsTableId: '', membershipDefaultsTableName: '', membershipSettingsTableId: '', membershipSettingsTableName: '', grantsTableId: '', grantsTableName: '', actorTableId: '', limitsTableId: '', defaultLimitsTableId: '', permissionsTableId: '', defaultPermissionsTableId: '', sprtTableId: '', adminGrantsTableId: '', adminGrantsTableName: '', ownerGrantsTableId: '', ownerGrantsTableName: '', scope: '', prefix: '', entityTableId: '', entityTableOwnerId: '', getOrgFn: '', actorMaskCheck: '', actorPermCheck: '', entityIdsByMask: '', entityIdsByPerm: '', entityIdsFunction: '', memberProfilesTableId: '', permissionDefaultPermissionsTableId: '', permissionDefaultGrantsTableId: '', apiName: '', privateApiName: '' }); +create({ databaseId: '', entityField: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', tableId: '', tableName: '', defaultTableId: '', defaultTableName: '', limitIncrementFunction: '', limitDecrementFunction: '', limitIncrementTrigger: '', limitDecrementTrigger: '', limitUpdateTrigger: '', limitCheckFunction: '', limitCreditsTableId: '', eventsTableId: '', creditCodesTableId: '', creditCodeItemsTableId: '', creditRedemptionsTableId: '', aggregateTableId: '', limitCapsTableId: '', limitCapsDefaultsTableId: '', capCheckTrigger: '', resolveCapFunction: '', limitWarningsTableId: '', limitWarningStateTableId: '', limitCheckSoftFunction: '', limitAggregateCheckSoftFunction: '', scope: '', prefix: '', entityTableId: '', actorTableId: '', apiName: '', privateApiName: '' }); ``` ### EntityTypeProvision @@ -1713,20 +1827,20 @@ create({ databaseId: '', schemaId: '', privateSchemaId: '', pu ```typescript // List all entityTypeProvisions const { data, isLoading } = useEntityTypeProvisionsQuery({ - selection: { fields: { id: true, databaseId: true, name: true, prefix: true, description: true, parentEntity: true, tableName: true, isVisible: true, hasLimits: true, hasProfiles: true, hasLevels: true, hasInvites: true, hasInviteAchievements: true, storage: true, namespaces: true, functions: true, graphs: true, agents: true, skipEntityPolicies: true, tableProvision: true, outMembershipType: true, outEntityTableId: true, outEntityTableName: true, outInstalledModules: true, outStorageModuleId: true, outBucketsTableId: true, outFilesTableId: true, outPathSharesTableId: true, outInvitesModuleId: true, outNamespaceModuleId: true, outNamespacesTableId: true, outNamespaceEventsTableId: true, outFunctionModuleId: true, outDefinitionsTableId: true, outInvocationsTableId: true, outExecutionLogsTableId: true, outSecretDefinitionsTableId: true, outGraphModuleId: true, outGraphsTableId: true, outAgentModuleId: true } }, + selection: { fields: { id: true, databaseId: true, name: true, prefix: true, description: true, parentEntity: true, tableName: true, isVisible: true, hasLimits: true, hasProfiles: true, hasLevels: true, hasInvites: true, hasInviteAchievements: true, storage: true, namespaces: true, functions: true, graphs: true, agents: true, skipEntityPolicies: true, tableProvision: true, outMembershipType: true, outEntityTableId: true, outEntityTableName: true, outInstalledModules: true, outStorageModuleId: true, outBucketsTableId: true, outFilesTableId: true, outPathSharesTableId: true, outInvitesModuleId: true, outNamespaceModuleId: true, outNamespacesTableId: true, outNamespaceEventsTableId: true, outFunctionModuleId: true, outDefinitionsTableId: true, outInvocationsTableId: true, outExecutionLogsTableId: true, outGraphModuleId: true, outGraphsTableId: true, outAgentModuleId: true } }, }); // Get one entityTypeProvision const { data: item } = useEntityTypeProvisionQuery({ id: '', - selection: { fields: { id: true, databaseId: true, name: true, prefix: true, description: true, parentEntity: true, tableName: true, isVisible: true, hasLimits: true, hasProfiles: true, hasLevels: true, hasInvites: true, hasInviteAchievements: true, storage: true, namespaces: true, functions: true, graphs: true, agents: true, skipEntityPolicies: true, tableProvision: true, outMembershipType: true, outEntityTableId: true, outEntityTableName: true, outInstalledModules: true, outStorageModuleId: true, outBucketsTableId: true, outFilesTableId: true, outPathSharesTableId: true, outInvitesModuleId: true, outNamespaceModuleId: true, outNamespacesTableId: true, outNamespaceEventsTableId: true, outFunctionModuleId: true, outDefinitionsTableId: true, outInvocationsTableId: true, outExecutionLogsTableId: true, outSecretDefinitionsTableId: true, outGraphModuleId: true, outGraphsTableId: true, outAgentModuleId: true } }, + selection: { fields: { id: true, databaseId: true, name: true, prefix: true, description: true, parentEntity: true, tableName: true, isVisible: true, hasLimits: true, hasProfiles: true, hasLevels: true, hasInvites: true, hasInviteAchievements: true, storage: true, namespaces: true, functions: true, graphs: true, agents: true, skipEntityPolicies: true, tableProvision: true, outMembershipType: true, outEntityTableId: true, outEntityTableName: true, outInstalledModules: true, outStorageModuleId: true, outBucketsTableId: true, outFilesTableId: true, outPathSharesTableId: true, outInvitesModuleId: true, outNamespaceModuleId: true, outNamespacesTableId: true, outNamespaceEventsTableId: true, outFunctionModuleId: true, outDefinitionsTableId: true, outInvocationsTableId: true, outExecutionLogsTableId: true, outGraphModuleId: true, outGraphsTableId: true, outAgentModuleId: true } }, }); // Create a entityTypeProvision const { mutate: create } = useCreateEntityTypeProvisionMutation({ selection: { fields: { id: true } }, }); -create({ databaseId: '', name: '', prefix: '', description: '', parentEntity: '', tableName: '', isVisible: '', hasLimits: '', hasProfiles: '', hasLevels: '', hasInvites: '', hasInviteAchievements: '', storage: '', namespaces: '', functions: '', graphs: '', agents: '', skipEntityPolicies: '', tableProvision: '', outMembershipType: '', outEntityTableId: '', outEntityTableName: '', outInstalledModules: '', outStorageModuleId: '', outBucketsTableId: '', outFilesTableId: '', outPathSharesTableId: '', outInvitesModuleId: '', outNamespaceModuleId: '', outNamespacesTableId: '', outNamespaceEventsTableId: '', outFunctionModuleId: '', outDefinitionsTableId: '', outInvocationsTableId: '', outExecutionLogsTableId: '', outSecretDefinitionsTableId: '', outGraphModuleId: '', outGraphsTableId: '', outAgentModuleId: '' }); +create({ databaseId: '', name: '', prefix: '', description: '', parentEntity: '', tableName: '', isVisible: '', hasLimits: '', hasProfiles: '', hasLevels: '', hasInvites: '', hasInviteAchievements: '', storage: '', namespaces: '', functions: '', graphs: '', agents: '', skipEntityPolicies: '', tableProvision: '', outMembershipType: '', outEntityTableId: '', outEntityTableName: '', outInstalledModules: '', outStorageModuleId: '', outBucketsTableId: '', outFilesTableId: '', outPathSharesTableId: '', outInvitesModuleId: '', outNamespaceModuleId: '', outNamespacesTableId: '', outNamespaceEventsTableId: '', outFunctionModuleId: '', outDefinitionsTableId: '', outInvocationsTableId: '', outExecutionLogsTableId: '', outGraphModuleId: '', outGraphsTableId: '', outAgentModuleId: '' }); ``` ### StorageModule @@ -1734,20 +1848,41 @@ create({ databaseId: '', name: '', prefix: '', description ```typescript // List all storageModules const { data, isLoading } = useStorageModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, bucketsTableId: true, filesTableId: true, bucketsTableName: true, filesTableName: true, scope: true, prefix: true, policies: true, provisions: true, entityTableId: true, endpoint: true, publicUrlPrefix: true, provider: true, allowedOrigins: true, restrictReads: true, hasPathShares: true, pathSharesTableId: true, uploadUrlExpirySeconds: true, downloadUrlExpirySeconds: true, defaultMaxFileSize: true, maxFilenameLength: true, cacheTtlSeconds: true, maxBulkFiles: true, maxBulkTotalSize: true, hasVersioning: true, hasContentHash: true, hasCustomKeys: true, hasAuditLog: true, hasConfirmUpload: true, confirmUploadDelay: true, fileEventsTableId: true, defaultPermissions: true, apiName: true, privateApiName: true } }, + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, bucketsTableId: true, filesTableId: true, bucketsTableName: true, filesTableName: true, scope: true, prefix: true, policies: true, provisions: true, entityTableId: true, entityField: true, endpoint: true, publicUrlPrefix: true, provider: true, allowedOrigins: true, restrictReads: true, hasPathShares: true, pathSharesTableId: true, uploadUrlExpirySeconds: true, downloadUrlExpirySeconds: true, defaultMaxFileSize: true, maxFilenameLength: true, cacheTtlSeconds: true, maxBulkFiles: true, maxBulkTotalSize: true, hasVersioning: true, hasContentHash: true, hasCustomKeys: true, hasAuditLog: true, hasConfirmUpload: true, confirmUploadDelay: true, fileEventsTableId: true, defaultPermissions: true, apiName: true, privateApiName: true } }, }); // Get one storageModule const { data: item } = useStorageModuleQuery({ id: '', - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, bucketsTableId: true, filesTableId: true, bucketsTableName: true, filesTableName: true, scope: true, prefix: true, policies: true, provisions: true, entityTableId: true, endpoint: true, publicUrlPrefix: true, provider: true, allowedOrigins: true, restrictReads: true, hasPathShares: true, pathSharesTableId: true, uploadUrlExpirySeconds: true, downloadUrlExpirySeconds: true, defaultMaxFileSize: true, maxFilenameLength: true, cacheTtlSeconds: true, maxBulkFiles: true, maxBulkTotalSize: true, hasVersioning: true, hasContentHash: true, hasCustomKeys: true, hasAuditLog: true, hasConfirmUpload: true, confirmUploadDelay: true, fileEventsTableId: true, defaultPermissions: true, apiName: true, privateApiName: true } }, + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, bucketsTableId: true, filesTableId: true, bucketsTableName: true, filesTableName: true, scope: true, prefix: true, policies: true, provisions: true, entityTableId: true, entityField: true, endpoint: true, publicUrlPrefix: true, provider: true, allowedOrigins: true, restrictReads: true, hasPathShares: true, pathSharesTableId: true, uploadUrlExpirySeconds: true, downloadUrlExpirySeconds: true, defaultMaxFileSize: true, maxFilenameLength: true, cacheTtlSeconds: true, maxBulkFiles: true, maxBulkTotalSize: true, hasVersioning: true, hasContentHash: true, hasCustomKeys: true, hasAuditLog: true, hasConfirmUpload: true, confirmUploadDelay: true, fileEventsTableId: true, defaultPermissions: true, apiName: true, privateApiName: true } }, }); // Create a storageModule const { mutate: create } = useCreateStorageModuleMutation({ selection: { fields: { id: true } }, }); -create({ databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', bucketsTableId: '', filesTableId: '', bucketsTableName: '', filesTableName: '', scope: '', prefix: '', policies: '', provisions: '', entityTableId: '', endpoint: '', publicUrlPrefix: '', provider: '', allowedOrigins: '', restrictReads: '', hasPathShares: '', pathSharesTableId: '', uploadUrlExpirySeconds: '', downloadUrlExpirySeconds: '', defaultMaxFileSize: '', maxFilenameLength: '', cacheTtlSeconds: '', maxBulkFiles: '', maxBulkTotalSize: '', hasVersioning: '', hasContentHash: '', hasCustomKeys: '', hasAuditLog: '', hasConfirmUpload: '', confirmUploadDelay: '', fileEventsTableId: '', defaultPermissions: '', apiName: '', privateApiName: '' }); +create({ databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', bucketsTableId: '', filesTableId: '', bucketsTableName: '', filesTableName: '', scope: '', prefix: '', policies: '', provisions: '', entityTableId: '', entityField: '', endpoint: '', publicUrlPrefix: '', provider: '', allowedOrigins: '', restrictReads: '', hasPathShares: '', pathSharesTableId: '', uploadUrlExpirySeconds: '', downloadUrlExpirySeconds: '', defaultMaxFileSize: '', maxFilenameLength: '', cacheTtlSeconds: '', maxBulkFiles: '', maxBulkTotalSize: '', hasVersioning: '', hasContentHash: '', hasCustomKeys: '', hasAuditLog: '', hasConfirmUpload: '', confirmUploadDelay: '', fileEventsTableId: '', defaultPermissions: '', apiName: '', privateApiName: '' }); +``` + +### MembershipsModule + +```typescript +// List all membershipsModules +const { data, isLoading } = useMembershipsModulesQuery({ + selection: { fields: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, membershipsTableId: true, membershipsTableName: true, membersTableId: true, membersTableName: true, membershipDefaultsTableId: true, membershipDefaultsTableName: true, membershipSettingsTableId: true, membershipSettingsTableName: true, grantsTableId: true, grantsTableName: true, actorTableId: true, limitsTableId: true, defaultLimitsTableId: true, permissionsTableId: true, defaultPermissionsTableId: true, sprtTableId: true, adminGrantsTableId: true, adminGrantsTableName: true, ownerGrantsTableId: true, ownerGrantsTableName: true, scope: true, prefix: true, entityTableId: true, entityTableOwnerId: true, getOrgFn: true, actorMaskCheck: true, actorPermCheck: true, entityIdsByMask: true, entityIdsByPerm: true, entityIdsFunction: true, memberProfilesTableId: true, permissionDefaultPermissionsTableId: true, permissionDefaultGrantsTableId: true, apiName: true, privateApiName: true } }, +}); + +// Get one membershipsModule +const { data: item } = useMembershipsModuleQuery({ + id: '', + selection: { fields: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, membershipsTableId: true, membershipsTableName: true, membersTableId: true, membersTableName: true, membershipDefaultsTableId: true, membershipDefaultsTableName: true, membershipSettingsTableId: true, membershipSettingsTableName: true, grantsTableId: true, grantsTableName: true, actorTableId: true, limitsTableId: true, defaultLimitsTableId: true, permissionsTableId: true, defaultPermissionsTableId: true, sprtTableId: true, adminGrantsTableId: true, adminGrantsTableName: true, ownerGrantsTableId: true, ownerGrantsTableName: true, scope: true, prefix: true, entityTableId: true, entityTableOwnerId: true, getOrgFn: true, actorMaskCheck: true, actorPermCheck: true, entityIdsByMask: true, entityIdsByPerm: true, entityIdsFunction: true, memberProfilesTableId: true, permissionDefaultPermissionsTableId: true, permissionDefaultGrantsTableId: true, apiName: true, privateApiName: true } }, +}); + +// Create a membershipsModule +const { mutate: create } = useCreateMembershipsModuleMutation({ + selection: { fields: { id: true } }, +}); +create({ databaseId: '', entityField: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', membershipsTableId: '', membershipsTableName: '', membersTableId: '', membersTableName: '', membershipDefaultsTableId: '', membershipDefaultsTableName: '', membershipSettingsTableId: '', membershipSettingsTableName: '', grantsTableId: '', grantsTableName: '', actorTableId: '', limitsTableId: '', defaultLimitsTableId: '', permissionsTableId: '', defaultPermissionsTableId: '', sprtTableId: '', adminGrantsTableId: '', adminGrantsTableName: '', ownerGrantsTableId: '', ownerGrantsTableName: '', scope: '', prefix: '', entityTableId: '', entityTableOwnerId: '', getOrgFn: '', actorMaskCheck: '', actorPermCheck: '', entityIdsByMask: '', entityIdsByPerm: '', entityIdsFunction: '', memberProfilesTableId: '', permissionDefaultPermissionsTableId: '', permissionDefaultGrantsTableId: '', apiName: '', privateApiName: '' }); ``` ### EventsModule @@ -1755,20 +1890,20 @@ create({ databaseId: '', schemaId: '', privateSchemaId: '', pu ```typescript // List all eventsModules const { data, isLoading } = useEventsModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, eventsTableId: true, eventsTableName: true, eventAggregatesTableId: true, eventAggregatesTableName: true, eventTypesTableId: true, eventTypesTableName: true, levelsTableId: true, levelsTableName: true, levelRequirementsTableId: true, levelRequirementsTableName: true, levelGrantsTableId: true, levelGrantsTableName: true, achievementRewardsTableId: true, achievementRewardsTableName: true, recordEvent: true, removeEvent: true, tgEvent: true, tgEventToggle: true, tgEventToggleBool: true, tgEventBool: true, upsertAggregate: true, tgUpdateAggregates: true, pruneEvents: true, stepsRequired: true, levelAchieved: true, tgCheckAchievements: true, grantAchievement: true, tgAchievementReward: true, interval: true, retention: true, premake: true, scope: true, prefix: true, entityTableId: true, actorTableId: true, defaultPermissions: true, apiName: true, privateApiName: true } }, + selection: { fields: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, eventsTableId: true, eventsTableName: true, eventAggregatesTableId: true, eventAggregatesTableName: true, eventTypesTableId: true, eventTypesTableName: true, levelsTableId: true, levelsTableName: true, levelRequirementsTableId: true, levelRequirementsTableName: true, levelGrantsTableId: true, levelGrantsTableName: true, achievementRewardsTableId: true, achievementRewardsTableName: true, recordEvent: true, removeEvent: true, tgEvent: true, tgEventToggle: true, tgEventToggleBool: true, tgEventBool: true, upsertAggregate: true, tgUpdateAggregates: true, stepsRequired: true, levelAchieved: true, tgCheckAchievements: true, grantAchievement: true, tgAchievementReward: true, interval: true, retention: true, premake: true, scope: true, prefix: true, entityTableId: true, actorTableId: true, defaultPermissions: true, apiName: true, privateApiName: true } }, }); // Get one eventsModule const { data: item } = useEventsModuleQuery({ id: '', - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, eventsTableId: true, eventsTableName: true, eventAggregatesTableId: true, eventAggregatesTableName: true, eventTypesTableId: true, eventTypesTableName: true, levelsTableId: true, levelsTableName: true, levelRequirementsTableId: true, levelRequirementsTableName: true, levelGrantsTableId: true, levelGrantsTableName: true, achievementRewardsTableId: true, achievementRewardsTableName: true, recordEvent: true, removeEvent: true, tgEvent: true, tgEventToggle: true, tgEventToggleBool: true, tgEventBool: true, upsertAggregate: true, tgUpdateAggregates: true, pruneEvents: true, stepsRequired: true, levelAchieved: true, tgCheckAchievements: true, grantAchievement: true, tgAchievementReward: true, interval: true, retention: true, premake: true, scope: true, prefix: true, entityTableId: true, actorTableId: true, defaultPermissions: true, apiName: true, privateApiName: true } }, + selection: { fields: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, eventsTableId: true, eventsTableName: true, eventAggregatesTableId: true, eventAggregatesTableName: true, eventTypesTableId: true, eventTypesTableName: true, levelsTableId: true, levelsTableName: true, levelRequirementsTableId: true, levelRequirementsTableName: true, levelGrantsTableId: true, levelGrantsTableName: true, achievementRewardsTableId: true, achievementRewardsTableName: true, recordEvent: true, removeEvent: true, tgEvent: true, tgEventToggle: true, tgEventToggleBool: true, tgEventBool: true, upsertAggregate: true, tgUpdateAggregates: true, stepsRequired: true, levelAchieved: true, tgCheckAchievements: true, grantAchievement: true, tgAchievementReward: true, interval: true, retention: true, premake: true, scope: true, prefix: true, entityTableId: true, actorTableId: true, defaultPermissions: true, apiName: true, privateApiName: true } }, }); // Create a eventsModule const { mutate: create } = useCreateEventsModuleMutation({ selection: { fields: { id: true } }, }); -create({ databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', eventsTableId: '', eventsTableName: '', eventAggregatesTableId: '', eventAggregatesTableName: '', eventTypesTableId: '', eventTypesTableName: '', levelsTableId: '', levelsTableName: '', levelRequirementsTableId: '', levelRequirementsTableName: '', levelGrantsTableId: '', levelGrantsTableName: '', achievementRewardsTableId: '', achievementRewardsTableName: '', recordEvent: '', removeEvent: '', tgEvent: '', tgEventToggle: '', tgEventToggleBool: '', tgEventBool: '', upsertAggregate: '', tgUpdateAggregates: '', pruneEvents: '', stepsRequired: '', levelAchieved: '', tgCheckAchievements: '', grantAchievement: '', tgAchievementReward: '', interval: '', retention: '', premake: '', scope: '', prefix: '', entityTableId: '', actorTableId: '', defaultPermissions: '', apiName: '', privateApiName: '' }); +create({ databaseId: '', entityField: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', eventsTableId: '', eventsTableName: '', eventAggregatesTableId: '', eventAggregatesTableName: '', eventTypesTableId: '', eventTypesTableName: '', levelsTableId: '', levelsTableName: '', levelRequirementsTableId: '', levelRequirementsTableName: '', levelGrantsTableId: '', levelGrantsTableName: '', achievementRewardsTableId: '', achievementRewardsTableName: '', recordEvent: '', removeEvent: '', tgEvent: '', tgEventToggle: '', tgEventToggleBool: '', tgEventBool: '', upsertAggregate: '', tgUpdateAggregates: '', stepsRequired: '', levelAchieved: '', tgCheckAchievements: '', grantAchievement: '', tgAchievementReward: '', interval: '', retention: '', premake: '', scope: '', prefix: '', entityTableId: '', actorTableId: '', defaultPermissions: '', apiName: '', privateApiName: '' }); ``` ## Custom Operation Hooks diff --git a/sdk/constructive-react/src/modules/hooks/index.ts b/sdk/constructive-react/src/modules/hooks/index.ts index 7221d87c69..c511a03501 100644 --- a/sdk/constructive-react/src/modules/hooks/index.ts +++ b/sdk/constructive-react/src/modules/hooks/index.ts @@ -2,7 +2,7 @@ * GraphQL SDK * @generated by @constructive-io/graphql-codegen * - * Tables: DefaultIdsModule, MembershipTypesModule, UserStateModule, SessionSecretsModule, ConfigSecretsOrgModule, DevicesModule, I18NModule, UserCredentialsModule, UserSettingsModule, ConfigSecretsUserModule, ConnectedAccountsModule, EmailsModule, PhoneNumbersModule, RateLimitsModule, UsersModule, WebauthnCredentialsModule, CryptoAddressesModule, DenormalizedTableField, IdentityProvidersModule, RlsModule, Blueprint, BlueprintTemplate, BlueprintConstruction, CryptoAuthModule, SessionsModule, SecureTableProvision, DatabaseProvisionModule, ConfigSecretsModule, GraphModule, MerkleStoreModule, RateLimitMetersModule, RealtimeModule, WebauthnAuthModule, FunctionInvocationModule, FunctionModule, InvitesModule, PrincipalAuthModule, ComputeLogModule, InferenceLogModule, NamespaceModule, ResourceModule, StorageLogModule, TransferLogModule, FunctionDeploymentModule, PlansModule, BillingProviderModule, DbUsageModule, GraphExecutionModule, HierarchyModule, PermissionsModule, NotificationsModule, ProfilesModule, BillingModule, RelationProvision, UserAuthModule, AgentModule, LimitsModule, MembershipsModule, EntityTypeProvision, StorageModule, EventsModule + * Tables: DefaultIdsModule, MembershipTypesModule, SessionSecretsModule, DevicesModule, I18NModule, UserSettingsModule, UserStateModule, UserCredentialsModule, ConnectedAccountsModule, EmailsModule, PhoneNumbersModule, RateLimitsModule, UsersModule, WebauthnCredentialsModule, ConfigSecretsUserModule, CryptoAddressesModule, DenormalizedTableField, RlsModule, Blueprint, BlueprintTemplate, BlueprintConstruction, CryptoAuthModule, SessionsModule, SecureTableProvision, IdentityProvidersModule, IntegrationProvidersModule, DbPoolConfig, RealtimeModule, InfraSecretsModule, InternalSecretsModule, DbPresetModule, GraphModule, RateLimitMetersModule, InfraConfigModule, WebauthnAuthModule, PrincipalAuthModule, DbPool, FunctionModule, MerkleStoreModule, DatabaseProvisionModule, FunctionInvocationModule, InvitesModule, NamespaceModule, PlansModule, ComputeLogModule, InferenceLogModule, StorageLogModule, TransferLogModule, BillingProviderModule, FunctionDeploymentModule, PermissionsModule, GraphExecutionModule, HierarchyModule, NotificationsModule, RelationProvision, ProfilesModule, BillingModule, ResourceModule, UserAuthModule, DbUsageModule, AgentModule, LimitsModule, EntityTypeProvision, StorageModule, MembershipsModule, EventsModule * * Usage: * diff --git a/sdk/constructive-react/src/modules/hooks/invalidation.ts b/sdk/constructive-react/src/modules/hooks/invalidation.ts index c8849d90cd..ebfbca6854 100644 --- a/sdk/constructive-react/src/modules/hooks/invalidation.ts +++ b/sdk/constructive-react/src/modules/hooks/invalidation.ts @@ -17,23 +17,21 @@ import type { QueryClient } from '@tanstack/react-query'; import { defaultIdsModuleKeys, membershipTypesModuleKeys, - userStateModuleKeys, sessionSecretsModuleKeys, - configSecretsOrgModuleKeys, devicesModuleKeys, i18NModuleKeys, - userCredentialsModuleKeys, userSettingsModuleKeys, - configSecretsUserModuleKeys, + userStateModuleKeys, + userCredentialsModuleKeys, connectedAccountsModuleKeys, emailsModuleKeys, phoneNumbersModuleKeys, rateLimitsModuleKeys, usersModuleKeys, webauthnCredentialsModuleKeys, + configSecretsUserModuleKeys, cryptoAddressesModuleKeys, denormalizedTableFieldKeys, - identityProvidersModuleKeys, rlsModuleKeys, blueprintKeys, blueprintTemplateKeys, @@ -41,40 +39,47 @@ import { cryptoAuthModuleKeys, sessionsModuleKeys, secureTableProvisionKeys, - databaseProvisionModuleKeys, - configSecretsModuleKeys, + identityProvidersModuleKeys, + integrationProvidersModuleKeys, + dbPoolConfigKeys, + realtimeModuleKeys, + infraSecretsModuleKeys, + internalSecretsModuleKeys, + dbPresetModuleKeys, graphModuleKeys, - merkleStoreModuleKeys, rateLimitMetersModuleKeys, - realtimeModuleKeys, + infraConfigModuleKeys, webauthnAuthModuleKeys, - functionInvocationModuleKeys, + principalAuthModuleKeys, + dbPoolKeys, functionModuleKeys, + merkleStoreModuleKeys, + databaseProvisionModuleKeys, + functionInvocationModuleKeys, invitesModuleKeys, - principalAuthModuleKeys, + namespaceModuleKeys, + plansModuleKeys, computeLogModuleKeys, inferenceLogModuleKeys, - namespaceModuleKeys, - resourceModuleKeys, storageLogModuleKeys, transferLogModuleKeys, - functionDeploymentModuleKeys, - plansModuleKeys, billingProviderModuleKeys, - dbUsageModuleKeys, + functionDeploymentModuleKeys, + permissionsModuleKeys, graphExecutionModuleKeys, hierarchyModuleKeys, - permissionsModuleKeys, notificationsModuleKeys, + relationProvisionKeys, profilesModuleKeys, billingModuleKeys, - relationProvisionKeys, + resourceModuleKeys, userAuthModuleKeys, + dbUsageModuleKeys, agentModuleKeys, limitsModuleKeys, - membershipsModuleKeys, entityTypeProvisionKeys, storageModuleKeys, + membershipsModuleKeys, eventsModuleKeys, } from './query-keys'; /** @@ -131,23 +136,6 @@ export const invalidate = { queryKey: membershipTypesModuleKeys.detail(id), }), }, - /** Invalidate userStateModule queries */ userStateModule: { - /** Invalidate all userStateModule queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: userStateModuleKeys.all, - }), - /** Invalidate userStateModule list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: userStateModuleKeys.lists(), - }), - /** Invalidate a specific userStateModule */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: userStateModuleKeys.detail(id), - }), - }, /** Invalidate sessionSecretsModule queries */ sessionSecretsModule: { /** Invalidate all sessionSecretsModule queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ @@ -165,23 +153,6 @@ export const invalidate = { queryKey: sessionSecretsModuleKeys.detail(id), }), }, - /** Invalidate configSecretsOrgModule queries */ configSecretsOrgModule: { - /** Invalidate all configSecretsOrgModule queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: configSecretsOrgModuleKeys.all, - }), - /** Invalidate configSecretsOrgModule list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: configSecretsOrgModuleKeys.lists(), - }), - /** Invalidate a specific configSecretsOrgModule */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: configSecretsOrgModuleKeys.detail(id), - }), - }, /** Invalidate devicesModule queries */ devicesModule: { /** Invalidate all devicesModule queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ @@ -216,55 +187,55 @@ export const invalidate = { queryKey: i18NModuleKeys.detail(id), }), }, - /** Invalidate userCredentialsModule queries */ userCredentialsModule: { - /** Invalidate all userCredentialsModule queries */ all: (queryClient: QueryClient) => + /** Invalidate userSettingsModule queries */ userSettingsModule: { + /** Invalidate all userSettingsModule queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: userCredentialsModuleKeys.all, + queryKey: userSettingsModuleKeys.all, }), - /** Invalidate userCredentialsModule list queries */ lists: (queryClient: QueryClient) => + /** Invalidate userSettingsModule list queries */ lists: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: userCredentialsModuleKeys.lists(), + queryKey: userSettingsModuleKeys.lists(), }), - /** Invalidate a specific userCredentialsModule */ detail: ( + /** Invalidate a specific userSettingsModule */ detail: ( queryClient: QueryClient, id: string | number ) => queryClient.invalidateQueries({ - queryKey: userCredentialsModuleKeys.detail(id), + queryKey: userSettingsModuleKeys.detail(id), }), }, - /** Invalidate userSettingsModule queries */ userSettingsModule: { - /** Invalidate all userSettingsModule queries */ all: (queryClient: QueryClient) => + /** Invalidate userStateModule queries */ userStateModule: { + /** Invalidate all userStateModule queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: userSettingsModuleKeys.all, + queryKey: userStateModuleKeys.all, }), - /** Invalidate userSettingsModule list queries */ lists: (queryClient: QueryClient) => + /** Invalidate userStateModule list queries */ lists: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: userSettingsModuleKeys.lists(), + queryKey: userStateModuleKeys.lists(), }), - /** Invalidate a specific userSettingsModule */ detail: ( + /** Invalidate a specific userStateModule */ detail: ( queryClient: QueryClient, id: string | number ) => queryClient.invalidateQueries({ - queryKey: userSettingsModuleKeys.detail(id), + queryKey: userStateModuleKeys.detail(id), }), }, - /** Invalidate configSecretsUserModule queries */ configSecretsUserModule: { - /** Invalidate all configSecretsUserModule queries */ all: (queryClient: QueryClient) => + /** Invalidate userCredentialsModule queries */ userCredentialsModule: { + /** Invalidate all userCredentialsModule queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: configSecretsUserModuleKeys.all, + queryKey: userCredentialsModuleKeys.all, }), - /** Invalidate configSecretsUserModule list queries */ lists: (queryClient: QueryClient) => + /** Invalidate userCredentialsModule list queries */ lists: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: configSecretsUserModuleKeys.lists(), + queryKey: userCredentialsModuleKeys.lists(), }), - /** Invalidate a specific configSecretsUserModule */ detail: ( + /** Invalidate a specific userCredentialsModule */ detail: ( queryClient: QueryClient, id: string | number ) => queryClient.invalidateQueries({ - queryKey: configSecretsUserModuleKeys.detail(id), + queryKey: userCredentialsModuleKeys.detail(id), }), }, /** Invalidate connectedAccountsModule queries */ connectedAccountsModule: { @@ -369,6 +340,23 @@ export const invalidate = { queryKey: webauthnCredentialsModuleKeys.detail(id), }), }, + /** Invalidate configSecretsUserModule queries */ configSecretsUserModule: { + /** Invalidate all configSecretsUserModule queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: configSecretsUserModuleKeys.all, + }), + /** Invalidate configSecretsUserModule list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: configSecretsUserModuleKeys.lists(), + }), + /** Invalidate a specific configSecretsUserModule */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: configSecretsUserModuleKeys.detail(id), + }), + }, /** Invalidate cryptoAddressesModule queries */ cryptoAddressesModule: { /** Invalidate all cryptoAddressesModule queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ @@ -403,23 +391,6 @@ export const invalidate = { queryKey: denormalizedTableFieldKeys.detail(id), }), }, - /** Invalidate identityProvidersModule queries */ identityProvidersModule: { - /** Invalidate all identityProvidersModule queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: identityProvidersModuleKeys.all, - }), - /** Invalidate identityProvidersModule list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: identityProvidersModuleKeys.lists(), - }), - /** Invalidate a specific identityProvidersModule */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: identityProvidersModuleKeys.detail(id), - }), - }, /** Invalidate rlsModule queries */ rlsModule: { /** Invalidate all rlsModule queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ @@ -539,72 +510,140 @@ export const invalidate = { queryKey: secureTableProvisionKeys.detail(id), }), }, - /** Invalidate databaseProvisionModule queries */ databaseProvisionModule: { - /** Invalidate all databaseProvisionModule queries */ all: (queryClient: QueryClient) => + /** Invalidate identityProvidersModule queries */ identityProvidersModule: { + /** Invalidate all identityProvidersModule queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: databaseProvisionModuleKeys.all, + queryKey: identityProvidersModuleKeys.all, }), - /** Invalidate databaseProvisionModule list queries */ lists: (queryClient: QueryClient) => + /** Invalidate identityProvidersModule list queries */ lists: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: databaseProvisionModuleKeys.lists(), + queryKey: identityProvidersModuleKeys.lists(), }), - /** Invalidate a specific databaseProvisionModule */ detail: ( + /** Invalidate a specific identityProvidersModule */ detail: ( queryClient: QueryClient, id: string | number ) => queryClient.invalidateQueries({ - queryKey: databaseProvisionModuleKeys.detail(id), + queryKey: identityProvidersModuleKeys.detail(id), }), }, - /** Invalidate configSecretsModule queries */ configSecretsModule: { - /** Invalidate all configSecretsModule queries */ all: (queryClient: QueryClient) => + /** Invalidate integrationProvidersModule queries */ integrationProvidersModule: { + /** Invalidate all integrationProvidersModule queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: configSecretsModuleKeys.all, + queryKey: integrationProvidersModuleKeys.all, }), - /** Invalidate configSecretsModule list queries */ lists: (queryClient: QueryClient) => + /** Invalidate integrationProvidersModule list queries */ lists: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: configSecretsModuleKeys.lists(), + queryKey: integrationProvidersModuleKeys.lists(), }), - /** Invalidate a specific configSecretsModule */ detail: ( + /** Invalidate a specific integrationProvidersModule */ detail: ( queryClient: QueryClient, id: string | number ) => queryClient.invalidateQueries({ - queryKey: configSecretsModuleKeys.detail(id), + queryKey: integrationProvidersModuleKeys.detail(id), }), }, - /** Invalidate graphModule queries */ graphModule: { - /** Invalidate all graphModule queries */ all: (queryClient: QueryClient) => + /** Invalidate dbPoolConfig queries */ dbPoolConfig: { + /** Invalidate all dbPoolConfig queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: graphModuleKeys.all, + queryKey: dbPoolConfigKeys.all, }), - /** Invalidate graphModule list queries */ lists: (queryClient: QueryClient) => + /** Invalidate dbPoolConfig list queries */ lists: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: graphModuleKeys.lists(), + queryKey: dbPoolConfigKeys.lists(), }), - /** Invalidate a specific graphModule */ detail: ( + /** Invalidate a specific dbPoolConfig */ detail: ( queryClient: QueryClient, id: string | number ) => queryClient.invalidateQueries({ - queryKey: graphModuleKeys.detail(id), + queryKey: dbPoolConfigKeys.detail(id), }), }, - /** Invalidate merkleStoreModule queries */ merkleStoreModule: { - /** Invalidate all merkleStoreModule queries */ all: (queryClient: QueryClient) => + /** Invalidate realtimeModule queries */ realtimeModule: { + /** Invalidate all realtimeModule queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: merkleStoreModuleKeys.all, + queryKey: realtimeModuleKeys.all, }), - /** Invalidate merkleStoreModule list queries */ lists: (queryClient: QueryClient) => + /** Invalidate realtimeModule list queries */ lists: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: merkleStoreModuleKeys.lists(), + queryKey: realtimeModuleKeys.lists(), }), - /** Invalidate a specific merkleStoreModule */ detail: ( + /** Invalidate a specific realtimeModule */ detail: ( queryClient: QueryClient, id: string | number ) => queryClient.invalidateQueries({ - queryKey: merkleStoreModuleKeys.detail(id), + queryKey: realtimeModuleKeys.detail(id), + }), + }, + /** Invalidate infraSecretsModule queries */ infraSecretsModule: { + /** Invalidate all infraSecretsModule queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: infraSecretsModuleKeys.all, + }), + /** Invalidate infraSecretsModule list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: infraSecretsModuleKeys.lists(), + }), + /** Invalidate a specific infraSecretsModule */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: infraSecretsModuleKeys.detail(id), + }), + }, + /** Invalidate internalSecretsModule queries */ internalSecretsModule: { + /** Invalidate all internalSecretsModule queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: internalSecretsModuleKeys.all, + }), + /** Invalidate internalSecretsModule list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: internalSecretsModuleKeys.lists(), + }), + /** Invalidate a specific internalSecretsModule */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: internalSecretsModuleKeys.detail(id), + }), + }, + /** Invalidate dbPresetModule queries */ dbPresetModule: { + /** Invalidate all dbPresetModule queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: dbPresetModuleKeys.all, + }), + /** Invalidate dbPresetModule list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: dbPresetModuleKeys.lists(), + }), + /** Invalidate a specific dbPresetModule */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: dbPresetModuleKeys.detail(id), + }), + }, + /** Invalidate graphModule queries */ graphModule: { + /** Invalidate all graphModule queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: graphModuleKeys.all, + }), + /** Invalidate graphModule list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: graphModuleKeys.lists(), + }), + /** Invalidate a specific graphModule */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: graphModuleKeys.detail(id), }), }, /** Invalidate rateLimitMetersModule queries */ rateLimitMetersModule: { @@ -624,21 +663,21 @@ export const invalidate = { queryKey: rateLimitMetersModuleKeys.detail(id), }), }, - /** Invalidate realtimeModule queries */ realtimeModule: { - /** Invalidate all realtimeModule queries */ all: (queryClient: QueryClient) => + /** Invalidate infraConfigModule queries */ infraConfigModule: { + /** Invalidate all infraConfigModule queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: realtimeModuleKeys.all, + queryKey: infraConfigModuleKeys.all, }), - /** Invalidate realtimeModule list queries */ lists: (queryClient: QueryClient) => + /** Invalidate infraConfigModule list queries */ lists: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: realtimeModuleKeys.lists(), + queryKey: infraConfigModuleKeys.lists(), }), - /** Invalidate a specific realtimeModule */ detail: ( + /** Invalidate a specific infraConfigModule */ detail: ( queryClient: QueryClient, id: string | number ) => queryClient.invalidateQueries({ - queryKey: realtimeModuleKeys.detail(id), + queryKey: infraConfigModuleKeys.detail(id), }), }, /** Invalidate webauthnAuthModule queries */ webauthnAuthModule: { @@ -658,21 +697,35 @@ export const invalidate = { queryKey: webauthnAuthModuleKeys.detail(id), }), }, - /** Invalidate functionInvocationModule queries */ functionInvocationModule: { - /** Invalidate all functionInvocationModule queries */ all: (queryClient: QueryClient) => + /** Invalidate principalAuthModule queries */ principalAuthModule: { + /** Invalidate all principalAuthModule queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: functionInvocationModuleKeys.all, + queryKey: principalAuthModuleKeys.all, }), - /** Invalidate functionInvocationModule list queries */ lists: (queryClient: QueryClient) => + /** Invalidate principalAuthModule list queries */ lists: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: functionInvocationModuleKeys.lists(), + queryKey: principalAuthModuleKeys.lists(), }), - /** Invalidate a specific functionInvocationModule */ detail: ( + /** Invalidate a specific principalAuthModule */ detail: ( queryClient: QueryClient, id: string | number ) => queryClient.invalidateQueries({ - queryKey: functionInvocationModuleKeys.detail(id), + queryKey: principalAuthModuleKeys.detail(id), + }), + }, + /** Invalidate dbPool queries */ dbPool: { + /** Invalidate all dbPool queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: dbPoolKeys.all, + }), + /** Invalidate dbPool list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: dbPoolKeys.lists(), + }), + /** Invalidate a specific dbPool */ detail: (queryClient: QueryClient, id: string | number) => + queryClient.invalidateQueries({ + queryKey: dbPoolKeys.detail(id), }), }, /** Invalidate functionModule queries */ functionModule: { @@ -692,72 +745,72 @@ export const invalidate = { queryKey: functionModuleKeys.detail(id), }), }, - /** Invalidate invitesModule queries */ invitesModule: { - /** Invalidate all invitesModule queries */ all: (queryClient: QueryClient) => + /** Invalidate merkleStoreModule queries */ merkleStoreModule: { + /** Invalidate all merkleStoreModule queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: invitesModuleKeys.all, + queryKey: merkleStoreModuleKeys.all, }), - /** Invalidate invitesModule list queries */ lists: (queryClient: QueryClient) => + /** Invalidate merkleStoreModule list queries */ lists: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: invitesModuleKeys.lists(), + queryKey: merkleStoreModuleKeys.lists(), }), - /** Invalidate a specific invitesModule */ detail: ( + /** Invalidate a specific merkleStoreModule */ detail: ( queryClient: QueryClient, id: string | number ) => queryClient.invalidateQueries({ - queryKey: invitesModuleKeys.detail(id), + queryKey: merkleStoreModuleKeys.detail(id), }), }, - /** Invalidate principalAuthModule queries */ principalAuthModule: { - /** Invalidate all principalAuthModule queries */ all: (queryClient: QueryClient) => + /** Invalidate databaseProvisionModule queries */ databaseProvisionModule: { + /** Invalidate all databaseProvisionModule queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: principalAuthModuleKeys.all, + queryKey: databaseProvisionModuleKeys.all, }), - /** Invalidate principalAuthModule list queries */ lists: (queryClient: QueryClient) => + /** Invalidate databaseProvisionModule list queries */ lists: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: principalAuthModuleKeys.lists(), + queryKey: databaseProvisionModuleKeys.lists(), }), - /** Invalidate a specific principalAuthModule */ detail: ( + /** Invalidate a specific databaseProvisionModule */ detail: ( queryClient: QueryClient, id: string | number ) => queryClient.invalidateQueries({ - queryKey: principalAuthModuleKeys.detail(id), + queryKey: databaseProvisionModuleKeys.detail(id), }), }, - /** Invalidate computeLogModule queries */ computeLogModule: { - /** Invalidate all computeLogModule queries */ all: (queryClient: QueryClient) => + /** Invalidate functionInvocationModule queries */ functionInvocationModule: { + /** Invalidate all functionInvocationModule queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: computeLogModuleKeys.all, + queryKey: functionInvocationModuleKeys.all, }), - /** Invalidate computeLogModule list queries */ lists: (queryClient: QueryClient) => + /** Invalidate functionInvocationModule list queries */ lists: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: computeLogModuleKeys.lists(), + queryKey: functionInvocationModuleKeys.lists(), }), - /** Invalidate a specific computeLogModule */ detail: ( + /** Invalidate a specific functionInvocationModule */ detail: ( queryClient: QueryClient, id: string | number ) => queryClient.invalidateQueries({ - queryKey: computeLogModuleKeys.detail(id), + queryKey: functionInvocationModuleKeys.detail(id), }), }, - /** Invalidate inferenceLogModule queries */ inferenceLogModule: { - /** Invalidate all inferenceLogModule queries */ all: (queryClient: QueryClient) => + /** Invalidate invitesModule queries */ invitesModule: { + /** Invalidate all invitesModule queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: inferenceLogModuleKeys.all, + queryKey: invitesModuleKeys.all, }), - /** Invalidate inferenceLogModule list queries */ lists: (queryClient: QueryClient) => + /** Invalidate invitesModule list queries */ lists: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: inferenceLogModuleKeys.lists(), + queryKey: invitesModuleKeys.lists(), }), - /** Invalidate a specific inferenceLogModule */ detail: ( + /** Invalidate a specific invitesModule */ detail: ( queryClient: QueryClient, id: string | number ) => queryClient.invalidateQueries({ - queryKey: inferenceLogModuleKeys.detail(id), + queryKey: invitesModuleKeys.detail(id), }), }, /** Invalidate namespaceModule queries */ namespaceModule: { @@ -777,89 +830,89 @@ export const invalidate = { queryKey: namespaceModuleKeys.detail(id), }), }, - /** Invalidate resourceModule queries */ resourceModule: { - /** Invalidate all resourceModule queries */ all: (queryClient: QueryClient) => + /** Invalidate plansModule queries */ plansModule: { + /** Invalidate all plansModule queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: resourceModuleKeys.all, + queryKey: plansModuleKeys.all, }), - /** Invalidate resourceModule list queries */ lists: (queryClient: QueryClient) => + /** Invalidate plansModule list queries */ lists: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: resourceModuleKeys.lists(), + queryKey: plansModuleKeys.lists(), }), - /** Invalidate a specific resourceModule */ detail: ( + /** Invalidate a specific plansModule */ detail: ( queryClient: QueryClient, id: string | number ) => queryClient.invalidateQueries({ - queryKey: resourceModuleKeys.detail(id), + queryKey: plansModuleKeys.detail(id), }), }, - /** Invalidate storageLogModule queries */ storageLogModule: { - /** Invalidate all storageLogModule queries */ all: (queryClient: QueryClient) => + /** Invalidate computeLogModule queries */ computeLogModule: { + /** Invalidate all computeLogModule queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: storageLogModuleKeys.all, + queryKey: computeLogModuleKeys.all, }), - /** Invalidate storageLogModule list queries */ lists: (queryClient: QueryClient) => + /** Invalidate computeLogModule list queries */ lists: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: storageLogModuleKeys.lists(), + queryKey: computeLogModuleKeys.lists(), }), - /** Invalidate a specific storageLogModule */ detail: ( + /** Invalidate a specific computeLogModule */ detail: ( queryClient: QueryClient, id: string | number ) => queryClient.invalidateQueries({ - queryKey: storageLogModuleKeys.detail(id), + queryKey: computeLogModuleKeys.detail(id), }), }, - /** Invalidate transferLogModule queries */ transferLogModule: { - /** Invalidate all transferLogModule queries */ all: (queryClient: QueryClient) => + /** Invalidate inferenceLogModule queries */ inferenceLogModule: { + /** Invalidate all inferenceLogModule queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: transferLogModuleKeys.all, + queryKey: inferenceLogModuleKeys.all, }), - /** Invalidate transferLogModule list queries */ lists: (queryClient: QueryClient) => + /** Invalidate inferenceLogModule list queries */ lists: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: transferLogModuleKeys.lists(), + queryKey: inferenceLogModuleKeys.lists(), }), - /** Invalidate a specific transferLogModule */ detail: ( + /** Invalidate a specific inferenceLogModule */ detail: ( queryClient: QueryClient, id: string | number ) => queryClient.invalidateQueries({ - queryKey: transferLogModuleKeys.detail(id), + queryKey: inferenceLogModuleKeys.detail(id), }), }, - /** Invalidate functionDeploymentModule queries */ functionDeploymentModule: { - /** Invalidate all functionDeploymentModule queries */ all: (queryClient: QueryClient) => + /** Invalidate storageLogModule queries */ storageLogModule: { + /** Invalidate all storageLogModule queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: functionDeploymentModuleKeys.all, + queryKey: storageLogModuleKeys.all, }), - /** Invalidate functionDeploymentModule list queries */ lists: (queryClient: QueryClient) => + /** Invalidate storageLogModule list queries */ lists: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: functionDeploymentModuleKeys.lists(), + queryKey: storageLogModuleKeys.lists(), }), - /** Invalidate a specific functionDeploymentModule */ detail: ( + /** Invalidate a specific storageLogModule */ detail: ( queryClient: QueryClient, id: string | number ) => queryClient.invalidateQueries({ - queryKey: functionDeploymentModuleKeys.detail(id), + queryKey: storageLogModuleKeys.detail(id), }), }, - /** Invalidate plansModule queries */ plansModule: { - /** Invalidate all plansModule queries */ all: (queryClient: QueryClient) => + /** Invalidate transferLogModule queries */ transferLogModule: { + /** Invalidate all transferLogModule queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: plansModuleKeys.all, + queryKey: transferLogModuleKeys.all, }), - /** Invalidate plansModule list queries */ lists: (queryClient: QueryClient) => + /** Invalidate transferLogModule list queries */ lists: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: plansModuleKeys.lists(), + queryKey: transferLogModuleKeys.lists(), }), - /** Invalidate a specific plansModule */ detail: ( + /** Invalidate a specific transferLogModule */ detail: ( queryClient: QueryClient, id: string | number ) => queryClient.invalidateQueries({ - queryKey: plansModuleKeys.detail(id), + queryKey: transferLogModuleKeys.detail(id), }), }, /** Invalidate billingProviderModule queries */ billingProviderModule: { @@ -879,21 +932,38 @@ export const invalidate = { queryKey: billingProviderModuleKeys.detail(id), }), }, - /** Invalidate dbUsageModule queries */ dbUsageModule: { - /** Invalidate all dbUsageModule queries */ all: (queryClient: QueryClient) => + /** Invalidate functionDeploymentModule queries */ functionDeploymentModule: { + /** Invalidate all functionDeploymentModule queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: dbUsageModuleKeys.all, + queryKey: functionDeploymentModuleKeys.all, }), - /** Invalidate dbUsageModule list queries */ lists: (queryClient: QueryClient) => + /** Invalidate functionDeploymentModule list queries */ lists: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: dbUsageModuleKeys.lists(), + queryKey: functionDeploymentModuleKeys.lists(), }), - /** Invalidate a specific dbUsageModule */ detail: ( + /** Invalidate a specific functionDeploymentModule */ detail: ( queryClient: QueryClient, id: string | number ) => queryClient.invalidateQueries({ - queryKey: dbUsageModuleKeys.detail(id), + queryKey: functionDeploymentModuleKeys.detail(id), + }), + }, + /** Invalidate permissionsModule queries */ permissionsModule: { + /** Invalidate all permissionsModule queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: permissionsModuleKeys.all, + }), + /** Invalidate permissionsModule list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: permissionsModuleKeys.lists(), + }), + /** Invalidate a specific permissionsModule */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: permissionsModuleKeys.detail(id), }), }, /** Invalidate graphExecutionModule queries */ graphExecutionModule: { @@ -930,38 +1000,38 @@ export const invalidate = { queryKey: hierarchyModuleKeys.detail(id), }), }, - /** Invalidate permissionsModule queries */ permissionsModule: { - /** Invalidate all permissionsModule queries */ all: (queryClient: QueryClient) => + /** Invalidate notificationsModule queries */ notificationsModule: { + /** Invalidate all notificationsModule queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: permissionsModuleKeys.all, + queryKey: notificationsModuleKeys.all, }), - /** Invalidate permissionsModule list queries */ lists: (queryClient: QueryClient) => + /** Invalidate notificationsModule list queries */ lists: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: permissionsModuleKeys.lists(), + queryKey: notificationsModuleKeys.lists(), }), - /** Invalidate a specific permissionsModule */ detail: ( + /** Invalidate a specific notificationsModule */ detail: ( queryClient: QueryClient, id: string | number ) => queryClient.invalidateQueries({ - queryKey: permissionsModuleKeys.detail(id), + queryKey: notificationsModuleKeys.detail(id), }), }, - /** Invalidate notificationsModule queries */ notificationsModule: { - /** Invalidate all notificationsModule queries */ all: (queryClient: QueryClient) => + /** Invalidate relationProvision queries */ relationProvision: { + /** Invalidate all relationProvision queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: notificationsModuleKeys.all, + queryKey: relationProvisionKeys.all, }), - /** Invalidate notificationsModule list queries */ lists: (queryClient: QueryClient) => + /** Invalidate relationProvision list queries */ lists: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: notificationsModuleKeys.lists(), + queryKey: relationProvisionKeys.lists(), }), - /** Invalidate a specific notificationsModule */ detail: ( + /** Invalidate a specific relationProvision */ detail: ( queryClient: QueryClient, id: string | number ) => queryClient.invalidateQueries({ - queryKey: notificationsModuleKeys.detail(id), + queryKey: relationProvisionKeys.detail(id), }), }, /** Invalidate profilesModule queries */ profilesModule: { @@ -998,21 +1068,21 @@ export const invalidate = { queryKey: billingModuleKeys.detail(id), }), }, - /** Invalidate relationProvision queries */ relationProvision: { - /** Invalidate all relationProvision queries */ all: (queryClient: QueryClient) => + /** Invalidate resourceModule queries */ resourceModule: { + /** Invalidate all resourceModule queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: relationProvisionKeys.all, + queryKey: resourceModuleKeys.all, }), - /** Invalidate relationProvision list queries */ lists: (queryClient: QueryClient) => + /** Invalidate resourceModule list queries */ lists: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: relationProvisionKeys.lists(), + queryKey: resourceModuleKeys.lists(), }), - /** Invalidate a specific relationProvision */ detail: ( + /** Invalidate a specific resourceModule */ detail: ( queryClient: QueryClient, id: string | number ) => queryClient.invalidateQueries({ - queryKey: relationProvisionKeys.detail(id), + queryKey: resourceModuleKeys.detail(id), }), }, /** Invalidate userAuthModule queries */ userAuthModule: { @@ -1032,6 +1102,23 @@ export const invalidate = { queryKey: userAuthModuleKeys.detail(id), }), }, + /** Invalidate dbUsageModule queries */ dbUsageModule: { + /** Invalidate all dbUsageModule queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: dbUsageModuleKeys.all, + }), + /** Invalidate dbUsageModule list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: dbUsageModuleKeys.lists(), + }), + /** Invalidate a specific dbUsageModule */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: dbUsageModuleKeys.detail(id), + }), + }, /** Invalidate agentModule queries */ agentModule: { /** Invalidate all agentModule queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ @@ -1066,23 +1153,6 @@ export const invalidate = { queryKey: limitsModuleKeys.detail(id), }), }, - /** Invalidate membershipsModule queries */ membershipsModule: { - /** Invalidate all membershipsModule queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: membershipsModuleKeys.all, - }), - /** Invalidate membershipsModule list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: membershipsModuleKeys.lists(), - }), - /** Invalidate a specific membershipsModule */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: membershipsModuleKeys.detail(id), - }), - }, /** Invalidate entityTypeProvision queries */ entityTypeProvision: { /** Invalidate all entityTypeProvision queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ @@ -1117,6 +1187,23 @@ export const invalidate = { queryKey: storageModuleKeys.detail(id), }), }, + /** Invalidate membershipsModule queries */ membershipsModule: { + /** Invalidate all membershipsModule queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: membershipsModuleKeys.all, + }), + /** Invalidate membershipsModule list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: membershipsModuleKeys.lists(), + }), + /** Invalidate a specific membershipsModule */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: membershipsModuleKeys.detail(id), + }), + }, /** Invalidate eventsModule queries */ eventsModule: { /** Invalidate all eventsModule queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ @@ -1163,14 +1250,6 @@ export const remove = { queryKey: membershipTypesModuleKeys.detail(id), }); }, - /** Remove userStateModule from cache */ userStateModule: ( - queryClient: QueryClient, - id: string | number - ) => { - queryClient.removeQueries({ - queryKey: userStateModuleKeys.detail(id), - }); - }, /** Remove sessionSecretsModule from cache */ sessionSecretsModule: ( queryClient: QueryClient, id: string | number @@ -1179,14 +1258,6 @@ export const remove = { queryKey: sessionSecretsModuleKeys.detail(id), }); }, - /** Remove configSecretsOrgModule from cache */ configSecretsOrgModule: ( - queryClient: QueryClient, - id: string | number - ) => { - queryClient.removeQueries({ - queryKey: configSecretsOrgModuleKeys.detail(id), - }); - }, /** Remove devicesModule from cache */ devicesModule: ( queryClient: QueryClient, id: string | number @@ -1203,28 +1274,28 @@ export const remove = { queryKey: i18NModuleKeys.detail(id), }); }, - /** Remove userCredentialsModule from cache */ userCredentialsModule: ( + /** Remove userSettingsModule from cache */ userSettingsModule: ( queryClient: QueryClient, id: string | number ) => { queryClient.removeQueries({ - queryKey: userCredentialsModuleKeys.detail(id), + queryKey: userSettingsModuleKeys.detail(id), }); }, - /** Remove userSettingsModule from cache */ userSettingsModule: ( + /** Remove userStateModule from cache */ userStateModule: ( queryClient: QueryClient, id: string | number ) => { queryClient.removeQueries({ - queryKey: userSettingsModuleKeys.detail(id), + queryKey: userStateModuleKeys.detail(id), }); }, - /** Remove configSecretsUserModule from cache */ configSecretsUserModule: ( + /** Remove userCredentialsModule from cache */ userCredentialsModule: ( queryClient: QueryClient, id: string | number ) => { queryClient.removeQueries({ - queryKey: configSecretsUserModuleKeys.detail(id), + queryKey: userCredentialsModuleKeys.detail(id), }); }, /** Remove connectedAccountsModule from cache */ connectedAccountsModule: ( @@ -1275,28 +1346,28 @@ export const remove = { queryKey: webauthnCredentialsModuleKeys.detail(id), }); }, - /** Remove cryptoAddressesModule from cache */ cryptoAddressesModule: ( + /** Remove configSecretsUserModule from cache */ configSecretsUserModule: ( queryClient: QueryClient, id: string | number ) => { queryClient.removeQueries({ - queryKey: cryptoAddressesModuleKeys.detail(id), + queryKey: configSecretsUserModuleKeys.detail(id), }); }, - /** Remove denormalizedTableField from cache */ denormalizedTableField: ( + /** Remove cryptoAddressesModule from cache */ cryptoAddressesModule: ( queryClient: QueryClient, id: string | number ) => { queryClient.removeQueries({ - queryKey: denormalizedTableFieldKeys.detail(id), + queryKey: cryptoAddressesModuleKeys.detail(id), }); }, - /** Remove identityProvidersModule from cache */ identityProvidersModule: ( + /** Remove denormalizedTableField from cache */ denormalizedTableField: ( queryClient: QueryClient, id: string | number ) => { queryClient.removeQueries({ - queryKey: identityProvidersModuleKeys.detail(id), + queryKey: denormalizedTableFieldKeys.detail(id), }); }, /** Remove rlsModule from cache */ rlsModule: (queryClient: QueryClient, id: string | number) => { @@ -1349,36 +1420,68 @@ export const remove = { queryKey: secureTableProvisionKeys.detail(id), }); }, - /** Remove databaseProvisionModule from cache */ databaseProvisionModule: ( + /** Remove identityProvidersModule from cache */ identityProvidersModule: ( queryClient: QueryClient, id: string | number ) => { queryClient.removeQueries({ - queryKey: databaseProvisionModuleKeys.detail(id), + queryKey: identityProvidersModuleKeys.detail(id), }); }, - /** Remove configSecretsModule from cache */ configSecretsModule: ( + /** Remove integrationProvidersModule from cache */ integrationProvidersModule: ( queryClient: QueryClient, id: string | number ) => { queryClient.removeQueries({ - queryKey: configSecretsModuleKeys.detail(id), + queryKey: integrationProvidersModuleKeys.detail(id), }); }, - /** Remove graphModule from cache */ graphModule: ( + /** Remove dbPoolConfig from cache */ dbPoolConfig: ( queryClient: QueryClient, id: string | number ) => { queryClient.removeQueries({ - queryKey: graphModuleKeys.detail(id), + queryKey: dbPoolConfigKeys.detail(id), }); }, - /** Remove merkleStoreModule from cache */ merkleStoreModule: ( + /** Remove realtimeModule from cache */ realtimeModule: ( queryClient: QueryClient, id: string | number ) => { queryClient.removeQueries({ - queryKey: merkleStoreModuleKeys.detail(id), + queryKey: realtimeModuleKeys.detail(id), + }); + }, + /** Remove infraSecretsModule from cache */ infraSecretsModule: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: infraSecretsModuleKeys.detail(id), + }); + }, + /** Remove internalSecretsModule from cache */ internalSecretsModule: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: internalSecretsModuleKeys.detail(id), + }); + }, + /** Remove dbPresetModule from cache */ dbPresetModule: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: dbPresetModuleKeys.detail(id), + }); + }, + /** Remove graphModule from cache */ graphModule: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: graphModuleKeys.detail(id), }); }, /** Remove rateLimitMetersModule from cache */ rateLimitMetersModule: ( @@ -1389,12 +1492,12 @@ export const remove = { queryKey: rateLimitMetersModuleKeys.detail(id), }); }, - /** Remove realtimeModule from cache */ realtimeModule: ( + /** Remove infraConfigModule from cache */ infraConfigModule: ( queryClient: QueryClient, id: string | number ) => { queryClient.removeQueries({ - queryKey: realtimeModuleKeys.detail(id), + queryKey: infraConfigModuleKeys.detail(id), }); }, /** Remove webauthnAuthModule from cache */ webauthnAuthModule: ( @@ -1405,12 +1508,17 @@ export const remove = { queryKey: webauthnAuthModuleKeys.detail(id), }); }, - /** Remove functionInvocationModule from cache */ functionInvocationModule: ( + /** Remove principalAuthModule from cache */ principalAuthModule: ( queryClient: QueryClient, id: string | number ) => { queryClient.removeQueries({ - queryKey: functionInvocationModuleKeys.detail(id), + queryKey: principalAuthModuleKeys.detail(id), + }); + }, + /** Remove dbPool from cache */ dbPool: (queryClient: QueryClient, id: string | number) => { + queryClient.removeQueries({ + queryKey: dbPoolKeys.detail(id), }); }, /** Remove functionModule from cache */ functionModule: ( @@ -1421,36 +1529,36 @@ export const remove = { queryKey: functionModuleKeys.detail(id), }); }, - /** Remove invitesModule from cache */ invitesModule: ( + /** Remove merkleStoreModule from cache */ merkleStoreModule: ( queryClient: QueryClient, id: string | number ) => { queryClient.removeQueries({ - queryKey: invitesModuleKeys.detail(id), + queryKey: merkleStoreModuleKeys.detail(id), }); }, - /** Remove principalAuthModule from cache */ principalAuthModule: ( + /** Remove databaseProvisionModule from cache */ databaseProvisionModule: ( queryClient: QueryClient, id: string | number ) => { queryClient.removeQueries({ - queryKey: principalAuthModuleKeys.detail(id), + queryKey: databaseProvisionModuleKeys.detail(id), }); }, - /** Remove computeLogModule from cache */ computeLogModule: ( + /** Remove functionInvocationModule from cache */ functionInvocationModule: ( queryClient: QueryClient, id: string | number ) => { queryClient.removeQueries({ - queryKey: computeLogModuleKeys.detail(id), + queryKey: functionInvocationModuleKeys.detail(id), }); }, - /** Remove inferenceLogModule from cache */ inferenceLogModule: ( + /** Remove invitesModule from cache */ invitesModule: ( queryClient: QueryClient, id: string | number ) => { queryClient.removeQueries({ - queryKey: inferenceLogModuleKeys.detail(id), + queryKey: invitesModuleKeys.detail(id), }); }, /** Remove namespaceModule from cache */ namespaceModule: ( @@ -1461,44 +1569,44 @@ export const remove = { queryKey: namespaceModuleKeys.detail(id), }); }, - /** Remove resourceModule from cache */ resourceModule: ( + /** Remove plansModule from cache */ plansModule: ( queryClient: QueryClient, id: string | number ) => { queryClient.removeQueries({ - queryKey: resourceModuleKeys.detail(id), + queryKey: plansModuleKeys.detail(id), }); }, - /** Remove storageLogModule from cache */ storageLogModule: ( + /** Remove computeLogModule from cache */ computeLogModule: ( queryClient: QueryClient, id: string | number ) => { queryClient.removeQueries({ - queryKey: storageLogModuleKeys.detail(id), + queryKey: computeLogModuleKeys.detail(id), }); }, - /** Remove transferLogModule from cache */ transferLogModule: ( + /** Remove inferenceLogModule from cache */ inferenceLogModule: ( queryClient: QueryClient, id: string | number ) => { queryClient.removeQueries({ - queryKey: transferLogModuleKeys.detail(id), + queryKey: inferenceLogModuleKeys.detail(id), }); }, - /** Remove functionDeploymentModule from cache */ functionDeploymentModule: ( + /** Remove storageLogModule from cache */ storageLogModule: ( queryClient: QueryClient, id: string | number ) => { queryClient.removeQueries({ - queryKey: functionDeploymentModuleKeys.detail(id), + queryKey: storageLogModuleKeys.detail(id), }); }, - /** Remove plansModule from cache */ plansModule: ( + /** Remove transferLogModule from cache */ transferLogModule: ( queryClient: QueryClient, id: string | number ) => { queryClient.removeQueries({ - queryKey: plansModuleKeys.detail(id), + queryKey: transferLogModuleKeys.detail(id), }); }, /** Remove billingProviderModule from cache */ billingProviderModule: ( @@ -1509,12 +1617,20 @@ export const remove = { queryKey: billingProviderModuleKeys.detail(id), }); }, - /** Remove dbUsageModule from cache */ dbUsageModule: ( + /** Remove functionDeploymentModule from cache */ functionDeploymentModule: ( queryClient: QueryClient, id: string | number ) => { queryClient.removeQueries({ - queryKey: dbUsageModuleKeys.detail(id), + queryKey: functionDeploymentModuleKeys.detail(id), + }); + }, + /** Remove permissionsModule from cache */ permissionsModule: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: permissionsModuleKeys.detail(id), }); }, /** Remove graphExecutionModule from cache */ graphExecutionModule: ( @@ -1533,20 +1649,20 @@ export const remove = { queryKey: hierarchyModuleKeys.detail(id), }); }, - /** Remove permissionsModule from cache */ permissionsModule: ( + /** Remove notificationsModule from cache */ notificationsModule: ( queryClient: QueryClient, id: string | number ) => { queryClient.removeQueries({ - queryKey: permissionsModuleKeys.detail(id), + queryKey: notificationsModuleKeys.detail(id), }); }, - /** Remove notificationsModule from cache */ notificationsModule: ( + /** Remove relationProvision from cache */ relationProvision: ( queryClient: QueryClient, id: string | number ) => { queryClient.removeQueries({ - queryKey: notificationsModuleKeys.detail(id), + queryKey: relationProvisionKeys.detail(id), }); }, /** Remove profilesModule from cache */ profilesModule: ( @@ -1565,12 +1681,12 @@ export const remove = { queryKey: billingModuleKeys.detail(id), }); }, - /** Remove relationProvision from cache */ relationProvision: ( + /** Remove resourceModule from cache */ resourceModule: ( queryClient: QueryClient, id: string | number ) => { queryClient.removeQueries({ - queryKey: relationProvisionKeys.detail(id), + queryKey: resourceModuleKeys.detail(id), }); }, /** Remove userAuthModule from cache */ userAuthModule: ( @@ -1581,28 +1697,28 @@ export const remove = { queryKey: userAuthModuleKeys.detail(id), }); }, - /** Remove agentModule from cache */ agentModule: ( + /** Remove dbUsageModule from cache */ dbUsageModule: ( queryClient: QueryClient, id: string | number ) => { queryClient.removeQueries({ - queryKey: agentModuleKeys.detail(id), + queryKey: dbUsageModuleKeys.detail(id), }); }, - /** Remove limitsModule from cache */ limitsModule: ( + /** Remove agentModule from cache */ agentModule: ( queryClient: QueryClient, id: string | number ) => { queryClient.removeQueries({ - queryKey: limitsModuleKeys.detail(id), + queryKey: agentModuleKeys.detail(id), }); }, - /** Remove membershipsModule from cache */ membershipsModule: ( + /** Remove limitsModule from cache */ limitsModule: ( queryClient: QueryClient, id: string | number ) => { queryClient.removeQueries({ - queryKey: membershipsModuleKeys.detail(id), + queryKey: limitsModuleKeys.detail(id), }); }, /** Remove entityTypeProvision from cache */ entityTypeProvision: ( @@ -1621,6 +1737,14 @@ export const remove = { queryKey: storageModuleKeys.detail(id), }); }, + /** Remove membershipsModule from cache */ membershipsModule: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: membershipsModuleKeys.detail(id), + }); + }, /** Remove eventsModule from cache */ eventsModule: ( 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 0734dee341..8440b952e0 100644 --- a/sdk/constructive-react/src/modules/hooks/mutation-keys.ts +++ b/sdk/constructive-react/src/modules/hooks/mutation-keys.ts @@ -39,15 +39,6 @@ export const membershipTypesModuleMutationKeys = { /** Delete membershipTypesModule mutation key */ delete: (id: string | number) => ['mutation', 'membershiptypesmodule', 'delete', id] as const, } as const; -export const userStateModuleMutationKeys = { - /** All userStateModule mutation keys */ all: ['mutation', 'userstatemodule'] as const, - /** Create userStateModule mutation key */ create: () => - ['mutation', 'userstatemodule', 'create'] as const, - /** Update userStateModule mutation key */ update: (id: string | number) => - ['mutation', 'userstatemodule', 'update', id] as const, - /** Delete userStateModule mutation key */ delete: (id: string | number) => - ['mutation', 'userstatemodule', 'delete', id] as const, -} as const; export const sessionSecretsModuleMutationKeys = { /** All sessionSecretsModule mutation keys */ all: ['mutation', 'sessionsecretsmodule'] as const, /** Create sessionSecretsModule mutation key */ create: () => @@ -57,18 +48,6 @@ export const sessionSecretsModuleMutationKeys = { /** Delete sessionSecretsModule mutation key */ delete: (id: string | number) => ['mutation', 'sessionsecretsmodule', 'delete', id] as const, } as const; -export const configSecretsOrgModuleMutationKeys = { - /** All configSecretsOrgModule mutation keys */ all: [ - 'mutation', - 'configsecretsorgmodule', - ] as const, - /** Create configSecretsOrgModule mutation key */ create: () => - ['mutation', 'configsecretsorgmodule', 'create'] as const, - /** Update configSecretsOrgModule mutation key */ update: (id: string | number) => - ['mutation', 'configsecretsorgmodule', 'update', id] as const, - /** Delete configSecretsOrgModule mutation key */ delete: (id: string | number) => - ['mutation', 'configsecretsorgmodule', 'delete', id] as const, -} as const; export const devicesModuleMutationKeys = { /** All devicesModule mutation keys */ all: ['mutation', 'devicesmodule'] as const, /** Create devicesModule mutation key */ create: () => @@ -86,18 +65,6 @@ export const i18NModuleMutationKeys = { /** Delete i18NModule mutation key */ delete: (id: string | number) => ['mutation', 'i18nmodule', 'delete', id] as const, } as const; -export const userCredentialsModuleMutationKeys = { - /** All userCredentialsModule mutation keys */ all: [ - 'mutation', - 'usercredentialsmodule', - ] as const, - /** Create userCredentialsModule mutation key */ create: () => - ['mutation', 'usercredentialsmodule', 'create'] as const, - /** Update userCredentialsModule mutation key */ update: (id: string | number) => - ['mutation', 'usercredentialsmodule', 'update', id] as const, - /** Delete userCredentialsModule mutation key */ delete: (id: string | number) => - ['mutation', 'usercredentialsmodule', 'delete', id] as const, -} as const; export const userSettingsModuleMutationKeys = { /** All userSettingsModule mutation keys */ all: ['mutation', 'usersettingsmodule'] as const, /** Create userSettingsModule mutation key */ create: () => @@ -107,17 +74,26 @@ export const userSettingsModuleMutationKeys = { /** Delete userSettingsModule mutation key */ delete: (id: string | number) => ['mutation', 'usersettingsmodule', 'delete', id] as const, } as const; -export const configSecretsUserModuleMutationKeys = { - /** All configSecretsUserModule mutation keys */ all: [ +export const userStateModuleMutationKeys = { + /** All userStateModule mutation keys */ all: ['mutation', 'userstatemodule'] as const, + /** Create userStateModule mutation key */ create: () => + ['mutation', 'userstatemodule', 'create'] as const, + /** Update userStateModule mutation key */ update: (id: string | number) => + ['mutation', 'userstatemodule', 'update', id] as const, + /** Delete userStateModule mutation key */ delete: (id: string | number) => + ['mutation', 'userstatemodule', 'delete', id] as const, +} as const; +export const userCredentialsModuleMutationKeys = { + /** All userCredentialsModule mutation keys */ all: [ 'mutation', - 'configsecretsusermodule', + 'usercredentialsmodule', ] 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, + /** Create userCredentialsModule mutation key */ create: () => + ['mutation', 'usercredentialsmodule', 'create'] as const, + /** Update userCredentialsModule mutation key */ update: (id: string | number) => + ['mutation', 'usercredentialsmodule', 'update', id] as const, + /** Delete userCredentialsModule mutation key */ delete: (id: string | number) => + ['mutation', 'usercredentialsmodule', 'delete', id] as const, } as const; export const connectedAccountsModuleMutationKeys = { /** All connectedAccountsModule mutation keys */ all: [ @@ -179,6 +155,18 @@ export const webauthnCredentialsModuleMutationKeys = { /** Delete webauthnCredentialsModule mutation key */ delete: (id: string | number) => ['mutation', 'webauthncredentialsmodule', '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 cryptoAddressesModuleMutationKeys = { /** All cryptoAddressesModule mutation keys */ all: [ 'mutation', @@ -203,18 +191,6 @@ export const denormalizedTableFieldMutationKeys = { /** Delete denormalizedTableField mutation key */ delete: (id: string | number) => ['mutation', 'denormalizedtablefield', 'delete', id] as const, } as const; -export const identityProvidersModuleMutationKeys = { - /** All identityProvidersModule mutation keys */ all: [ - 'mutation', - 'identityprovidersmodule', - ] as const, - /** Create identityProvidersModule mutation key */ create: () => - ['mutation', 'identityprovidersmodule', 'create'] as const, - /** Update identityProvidersModule mutation key */ update: (id: string | number) => - ['mutation', 'identityprovidersmodule', 'update', id] as const, - /** Delete identityProvidersModule mutation key */ delete: (id: string | number) => - ['mutation', 'identityprovidersmodule', 'delete', id] as const, -} as const; export const rlsModuleMutationKeys = { /** All rlsModule mutation keys */ all: ['mutation', 'rlsmodule'] as const, /** Create rlsModule mutation key */ create: () => ['mutation', 'rlsmodule', 'create'] as const, @@ -279,26 +255,77 @@ export const secureTableProvisionMutationKeys = { /** Delete secureTableProvision mutation key */ delete: (id: string | number) => ['mutation', 'securetableprovision', 'delete', id] as const, } as const; -export const databaseProvisionModuleMutationKeys = { - /** All databaseProvisionModule mutation keys */ all: [ +export const identityProvidersModuleMutationKeys = { + /** All identityProvidersModule mutation keys */ all: [ 'mutation', - 'databaseprovisionmodule', + 'identityprovidersmodule', ] as const, - /** Create databaseProvisionModule mutation key */ create: () => - ['mutation', 'databaseprovisionmodule', 'create'] as const, - /** Update databaseProvisionModule mutation key */ update: (id: string | number) => - ['mutation', 'databaseprovisionmodule', 'update', id] as const, - /** Delete databaseProvisionModule mutation key */ delete: (id: string | number) => - ['mutation', 'databaseprovisionmodule', 'delete', id] as const, + /** Create identityProvidersModule mutation key */ create: () => + ['mutation', 'identityprovidersmodule', 'create'] as const, + /** Update identityProvidersModule mutation key */ update: (id: string | number) => + ['mutation', 'identityprovidersmodule', 'update', id] as const, + /** Delete identityProvidersModule mutation key */ delete: (id: string | number) => + ['mutation', 'identityprovidersmodule', 'delete', id] as const, } as const; -export const configSecretsModuleMutationKeys = { - /** All configSecretsModule mutation keys */ all: ['mutation', 'configsecretsmodule'] as const, - /** Create configSecretsModule mutation key */ create: () => - ['mutation', 'configsecretsmodule', 'create'] as const, - /** Update configSecretsModule mutation key */ update: (id: string | number) => - ['mutation', 'configsecretsmodule', 'update', id] as const, - /** Delete configSecretsModule mutation key */ delete: (id: string | number) => - ['mutation', 'configsecretsmodule', 'delete', id] as const, +export const integrationProvidersModuleMutationKeys = { + /** All integrationProvidersModule mutation keys */ all: [ + 'mutation', + 'integrationprovidersmodule', + ] as const, + /** Create integrationProvidersModule mutation key */ create: () => + ['mutation', 'integrationprovidersmodule', 'create'] as const, + /** Update integrationProvidersModule mutation key */ update: (id: string | number) => + ['mutation', 'integrationprovidersmodule', 'update', id] as const, + /** Delete integrationProvidersModule mutation key */ delete: (id: string | number) => + ['mutation', 'integrationprovidersmodule', 'delete', id] as const, +} as const; +export const dbPoolConfigMutationKeys = { + /** All dbPoolConfig mutation keys */ all: ['mutation', 'dbpoolconfig'] as const, + /** Create dbPoolConfig mutation key */ create: () => + ['mutation', 'dbpoolconfig', 'create'] as const, + /** Update dbPoolConfig mutation key */ update: (id: string | number) => + ['mutation', 'dbpoolconfig', 'update', id] as const, + /** Delete dbPoolConfig mutation key */ delete: (id: string | number) => + ['mutation', 'dbpoolconfig', 'delete', id] as const, +} as const; +export const realtimeModuleMutationKeys = { + /** All realtimeModule mutation keys */ all: ['mutation', 'realtimemodule'] as const, + /** Create realtimeModule mutation key */ create: () => + ['mutation', 'realtimemodule', 'create'] as const, + /** Update realtimeModule mutation key */ update: (id: string | number) => + ['mutation', 'realtimemodule', 'update', id] as const, + /** Delete realtimeModule mutation key */ delete: (id: string | number) => + ['mutation', 'realtimemodule', 'delete', id] as const, +} as const; +export const infraSecretsModuleMutationKeys = { + /** All infraSecretsModule mutation keys */ all: ['mutation', 'infrasecretsmodule'] as const, + /** Create infraSecretsModule mutation key */ create: () => + ['mutation', 'infrasecretsmodule', 'create'] as const, + /** Update infraSecretsModule mutation key */ update: (id: string | number) => + ['mutation', 'infrasecretsmodule', 'update', id] as const, + /** Delete infraSecretsModule mutation key */ delete: (id: string | number) => + ['mutation', 'infrasecretsmodule', 'delete', id] as const, +} as const; +export const internalSecretsModuleMutationKeys = { + /** All internalSecretsModule mutation keys */ all: [ + 'mutation', + 'internalsecretsmodule', + ] as const, + /** Create internalSecretsModule mutation key */ create: () => + ['mutation', 'internalsecretsmodule', 'create'] as const, + /** Update internalSecretsModule mutation key */ update: (id: string | number) => + ['mutation', 'internalsecretsmodule', 'update', id] as const, + /** Delete internalSecretsModule mutation key */ delete: (id: string | number) => + ['mutation', 'internalsecretsmodule', 'delete', id] as const, +} as const; +export const dbPresetModuleMutationKeys = { + /** All dbPresetModule mutation keys */ all: ['mutation', 'dbpresetmodule'] as const, + /** Create dbPresetModule mutation key */ create: () => + ['mutation', 'dbpresetmodule', 'create'] as const, + /** Update dbPresetModule mutation key */ update: (id: string | number) => + ['mutation', 'dbpresetmodule', 'update', id] as const, + /** Delete dbPresetModule mutation key */ delete: (id: string | number) => + ['mutation', 'dbpresetmodule', 'delete', id] as const, } as const; export const graphModuleMutationKeys = { /** All graphModule mutation keys */ all: ['mutation', 'graphmodule'] as const, @@ -309,15 +336,6 @@ export const graphModuleMutationKeys = { /** Delete graphModule mutation key */ delete: (id: string | number) => ['mutation', 'graphmodule', 'delete', id] as const, } as const; -export const merkleStoreModuleMutationKeys = { - /** All merkleStoreModule mutation keys */ all: ['mutation', 'merklestoremodule'] as const, - /** Create merkleStoreModule mutation key */ create: () => - ['mutation', 'merklestoremodule', 'create'] as const, - /** Update merkleStoreModule mutation key */ update: (id: string | number) => - ['mutation', 'merklestoremodule', 'update', id] as const, - /** Delete merkleStoreModule mutation key */ delete: (id: string | number) => - ['mutation', 'merklestoremodule', 'delete', id] as const, -} as const; export const rateLimitMetersModuleMutationKeys = { /** All rateLimitMetersModule mutation keys */ all: [ 'mutation', @@ -330,14 +348,14 @@ export const rateLimitMetersModuleMutationKeys = { /** Delete rateLimitMetersModule mutation key */ delete: (id: string | number) => ['mutation', 'ratelimitmetersmodule', 'delete', id] as const, } as const; -export const realtimeModuleMutationKeys = { - /** All realtimeModule mutation keys */ all: ['mutation', 'realtimemodule'] as const, - /** Create realtimeModule mutation key */ create: () => - ['mutation', 'realtimemodule', 'create'] as const, - /** Update realtimeModule mutation key */ update: (id: string | number) => - ['mutation', 'realtimemodule', 'update', id] as const, - /** Delete realtimeModule mutation key */ delete: (id: string | number) => - ['mutation', 'realtimemodule', 'delete', id] as const, +export const infraConfigModuleMutationKeys = { + /** All infraConfigModule mutation keys */ all: ['mutation', 'infraconfigmodule'] as const, + /** Create infraConfigModule mutation key */ create: () => + ['mutation', 'infraconfigmodule', 'create'] as const, + /** Update infraConfigModule mutation key */ update: (id: string | number) => + ['mutation', 'infraconfigmodule', 'update', id] as const, + /** Delete infraConfigModule mutation key */ delete: (id: string | number) => + ['mutation', 'infraconfigmodule', 'delete', id] as const, } as const; export const webauthnAuthModuleMutationKeys = { /** All webauthnAuthModule mutation keys */ all: ['mutation', 'webauthnauthmodule'] as const, @@ -348,6 +366,53 @@ export const webauthnAuthModuleMutationKeys = { /** Delete webauthnAuthModule mutation key */ delete: (id: string | number) => ['mutation', 'webauthnauthmodule', 'delete', id] as const, } as const; +export const principalAuthModuleMutationKeys = { + /** All principalAuthModule mutation keys */ all: ['mutation', 'principalauthmodule'] as const, + /** Create principalAuthModule mutation key */ create: () => + ['mutation', 'principalauthmodule', 'create'] as const, + /** Update principalAuthModule mutation key */ update: (id: string | number) => + ['mutation', 'principalauthmodule', 'update', id] as const, + /** Delete principalAuthModule mutation key */ delete: (id: string | number) => + ['mutation', 'principalauthmodule', 'delete', id] as const, +} as const; +export const dbPoolMutationKeys = { + /** All dbPool mutation keys */ all: ['mutation', 'dbpool'] as const, + /** Create dbPool mutation key */ create: () => ['mutation', 'dbpool', 'create'] as const, + /** Update dbPool mutation key */ update: (id: string | number) => + ['mutation', 'dbpool', 'update', id] as const, + /** Delete dbPool mutation key */ delete: (id: string | number) => + ['mutation', 'dbpool', 'delete', id] as const, +} as const; +export const functionModuleMutationKeys = { + /** All functionModule mutation keys */ all: ['mutation', 'functionmodule'] as const, + /** Create functionModule mutation key */ create: () => + ['mutation', 'functionmodule', 'create'] as const, + /** Update functionModule mutation key */ update: (id: string | number) => + ['mutation', 'functionmodule', 'update', id] as const, + /** Delete functionModule mutation key */ delete: (id: string | number) => + ['mutation', 'functionmodule', 'delete', id] as const, +} as const; +export const merkleStoreModuleMutationKeys = { + /** All merkleStoreModule mutation keys */ all: ['mutation', 'merklestoremodule'] as const, + /** Create merkleStoreModule mutation key */ create: () => + ['mutation', 'merklestoremodule', 'create'] as const, + /** Update merkleStoreModule mutation key */ update: (id: string | number) => + ['mutation', 'merklestoremodule', 'update', id] as const, + /** Delete merkleStoreModule mutation key */ delete: (id: string | number) => + ['mutation', 'merklestoremodule', 'delete', id] as const, +} as const; +export const databaseProvisionModuleMutationKeys = { + /** All databaseProvisionModule mutation keys */ all: [ + 'mutation', + 'databaseprovisionmodule', + ] as const, + /** Create databaseProvisionModule mutation key */ create: () => + ['mutation', 'databaseprovisionmodule', 'create'] as const, + /** Update databaseProvisionModule mutation key */ update: (id: string | number) => + ['mutation', 'databaseprovisionmodule', 'update', id] as const, + /** Delete databaseProvisionModule mutation key */ delete: (id: string | number) => + ['mutation', 'databaseprovisionmodule', 'delete', id] as const, +} as const; export const functionInvocationModuleMutationKeys = { /** All functionInvocationModule mutation keys */ all: [ 'mutation', @@ -360,15 +425,6 @@ export const functionInvocationModuleMutationKeys = { /** Delete functionInvocationModule mutation key */ delete: (id: string | number) => ['mutation', 'functioninvocationmodule', 'delete', id] as const, } as const; -export const functionModuleMutationKeys = { - /** All functionModule mutation keys */ all: ['mutation', 'functionmodule'] as const, - /** Create functionModule mutation key */ create: () => - ['mutation', 'functionmodule', 'create'] as const, - /** Update functionModule mutation key */ update: (id: string | number) => - ['mutation', 'functionmodule', 'update', id] as const, - /** Delete functionModule mutation key */ delete: (id: string | number) => - ['mutation', 'functionmodule', 'delete', id] as const, -} as const; export const invitesModuleMutationKeys = { /** All invitesModule mutation keys */ all: ['mutation', 'invitesmodule'] as const, /** Create invitesModule mutation key */ create: () => @@ -378,14 +434,23 @@ export const invitesModuleMutationKeys = { /** Delete invitesModule mutation key */ delete: (id: string | number) => ['mutation', 'invitesmodule', 'delete', id] as const, } as const; -export const principalAuthModuleMutationKeys = { - /** All principalAuthModule mutation keys */ all: ['mutation', 'principalauthmodule'] as const, - /** Create principalAuthModule mutation key */ create: () => - ['mutation', 'principalauthmodule', 'create'] as const, - /** Update principalAuthModule mutation key */ update: (id: string | number) => - ['mutation', 'principalauthmodule', 'update', id] as const, - /** Delete principalAuthModule mutation key */ delete: (id: string | number) => - ['mutation', 'principalauthmodule', 'delete', id] as const, +export const namespaceModuleMutationKeys = { + /** All namespaceModule mutation keys */ all: ['mutation', 'namespacemodule'] as const, + /** Create namespaceModule mutation key */ create: () => + ['mutation', 'namespacemodule', 'create'] as const, + /** Update namespaceModule mutation key */ update: (id: string | number) => + ['mutation', 'namespacemodule', 'update', id] as const, + /** Delete namespaceModule mutation key */ delete: (id: string | number) => + ['mutation', 'namespacemodule', 'delete', id] as const, +} as const; +export const plansModuleMutationKeys = { + /** All plansModule mutation keys */ all: ['mutation', 'plansmodule'] as const, + /** Create plansModule mutation key */ create: () => + ['mutation', 'plansmodule', 'create'] as const, + /** Update plansModule mutation key */ update: (id: string | number) => + ['mutation', 'plansmodule', 'update', id] as const, + /** Delete plansModule mutation key */ delete: (id: string | number) => + ['mutation', 'plansmodule', 'delete', id] as const, } as const; export const computeLogModuleMutationKeys = { /** All computeLogModule mutation keys */ all: ['mutation', 'computelogmodule'] as const, @@ -405,24 +470,6 @@ export const inferenceLogModuleMutationKeys = { /** Delete inferenceLogModule mutation key */ delete: (id: string | number) => ['mutation', 'inferencelogmodule', 'delete', id] as const, } as const; -export const namespaceModuleMutationKeys = { - /** All namespaceModule mutation keys */ all: ['mutation', 'namespacemodule'] as const, - /** Create namespaceModule mutation key */ create: () => - ['mutation', 'namespacemodule', 'create'] as const, - /** Update namespaceModule mutation key */ update: (id: string | number) => - ['mutation', 'namespacemodule', 'update', id] as const, - /** Delete namespaceModule mutation key */ delete: (id: string | number) => - ['mutation', 'namespacemodule', 'delete', id] as const, -} as const; -export const resourceModuleMutationKeys = { - /** All resourceModule mutation keys */ all: ['mutation', 'resourcemodule'] as const, - /** Create resourceModule mutation key */ create: () => - ['mutation', 'resourcemodule', 'create'] as const, - /** Update resourceModule mutation key */ update: (id: string | number) => - ['mutation', 'resourcemodule', 'update', id] as const, - /** Delete resourceModule mutation key */ delete: (id: string | number) => - ['mutation', 'resourcemodule', 'delete', id] as const, -} as const; export const storageLogModuleMutationKeys = { /** All storageLogModule mutation keys */ all: ['mutation', 'storagelogmodule'] as const, /** Create storageLogModule mutation key */ create: () => @@ -441,27 +488,6 @@ export const transferLogModuleMutationKeys = { /** Delete transferLogModule mutation key */ delete: (id: string | number) => ['mutation', 'transferlogmodule', 'delete', id] as const, } as const; -export const functionDeploymentModuleMutationKeys = { - /** All functionDeploymentModule mutation keys */ all: [ - 'mutation', - 'functiondeploymentmodule', - ] as const, - /** Create functionDeploymentModule mutation key */ create: () => - ['mutation', 'functiondeploymentmodule', 'create'] as const, - /** Update functionDeploymentModule mutation key */ update: (id: string | number) => - ['mutation', 'functiondeploymentmodule', 'update', id] as const, - /** Delete functionDeploymentModule mutation key */ delete: (id: string | number) => - ['mutation', 'functiondeploymentmodule', 'delete', id] as const, -} as const; -export const plansModuleMutationKeys = { - /** All plansModule mutation keys */ all: ['mutation', 'plansmodule'] as const, - /** Create plansModule mutation key */ create: () => - ['mutation', 'plansmodule', 'create'] as const, - /** Update plansModule mutation key */ update: (id: string | number) => - ['mutation', 'plansmodule', 'update', id] as const, - /** Delete plansModule mutation key */ delete: (id: string | number) => - ['mutation', 'plansmodule', 'delete', id] as const, -} as const; export const billingProviderModuleMutationKeys = { /** All billingProviderModule mutation keys */ all: [ 'mutation', @@ -474,14 +500,26 @@ export const billingProviderModuleMutationKeys = { /** Delete billingProviderModule mutation key */ delete: (id: string | number) => ['mutation', 'billingprovidermodule', 'delete', id] as const, } as const; -export const dbUsageModuleMutationKeys = { - /** All dbUsageModule mutation keys */ all: ['mutation', 'dbusagemodule'] as const, - /** Create dbUsageModule mutation key */ create: () => - ['mutation', 'dbusagemodule', 'create'] as const, - /** Update dbUsageModule mutation key */ update: (id: string | number) => - ['mutation', 'dbusagemodule', 'update', id] as const, - /** Delete dbUsageModule mutation key */ delete: (id: string | number) => - ['mutation', 'dbusagemodule', 'delete', id] as const, +export const functionDeploymentModuleMutationKeys = { + /** All functionDeploymentModule mutation keys */ all: [ + 'mutation', + 'functiondeploymentmodule', + ] as const, + /** Create functionDeploymentModule mutation key */ create: () => + ['mutation', 'functiondeploymentmodule', 'create'] as const, + /** Update functionDeploymentModule mutation key */ update: (id: string | number) => + ['mutation', 'functiondeploymentmodule', 'update', id] as const, + /** Delete functionDeploymentModule mutation key */ delete: (id: string | number) => + ['mutation', 'functiondeploymentmodule', 'delete', id] as const, +} as const; +export const permissionsModuleMutationKeys = { + /** All permissionsModule mutation keys */ all: ['mutation', 'permissionsmodule'] as const, + /** Create permissionsModule mutation key */ create: () => + ['mutation', 'permissionsmodule', 'create'] as const, + /** Update permissionsModule mutation key */ update: (id: string | number) => + ['mutation', 'permissionsmodule', 'update', id] as const, + /** Delete permissionsModule mutation key */ delete: (id: string | number) => + ['mutation', 'permissionsmodule', 'delete', id] as const, } as const; export const graphExecutionModuleMutationKeys = { /** All graphExecutionModule mutation keys */ all: ['mutation', 'graphexecutionmodule'] as const, @@ -501,15 +539,6 @@ export const hierarchyModuleMutationKeys = { /** Delete hierarchyModule mutation key */ delete: (id: string | number) => ['mutation', 'hierarchymodule', 'delete', id] as const, } as const; -export const permissionsModuleMutationKeys = { - /** All permissionsModule mutation keys */ all: ['mutation', 'permissionsmodule'] as const, - /** Create permissionsModule mutation key */ create: () => - ['mutation', 'permissionsmodule', 'create'] as const, - /** Update permissionsModule mutation key */ update: (id: string | number) => - ['mutation', 'permissionsmodule', 'update', id] as const, - /** Delete permissionsModule mutation key */ delete: (id: string | number) => - ['mutation', 'permissionsmodule', 'delete', id] as const, -} as const; export const notificationsModuleMutationKeys = { /** All notificationsModule mutation keys */ all: ['mutation', 'notificationsmodule'] as const, /** Create notificationsModule mutation key */ create: () => @@ -519,6 +548,15 @@ export const notificationsModuleMutationKeys = { /** Delete notificationsModule mutation key */ delete: (id: string | number) => ['mutation', 'notificationsmodule', 'delete', id] as const, } as const; +export const relationProvisionMutationKeys = { + /** All relationProvision mutation keys */ all: ['mutation', 'relationprovision'] as const, + /** Create relationProvision mutation key */ create: () => + ['mutation', 'relationprovision', 'create'] as const, + /** Update relationProvision mutation key */ update: (id: string | number) => + ['mutation', 'relationprovision', 'update', id] as const, + /** Delete relationProvision mutation key */ delete: (id: string | number) => + ['mutation', 'relationprovision', 'delete', id] as const, +} as const; export const profilesModuleMutationKeys = { /** All profilesModule mutation keys */ all: ['mutation', 'profilesmodule'] as const, /** Create profilesModule mutation key */ create: () => @@ -537,14 +575,14 @@ export const billingModuleMutationKeys = { /** Delete billingModule mutation key */ delete: (id: string | number) => ['mutation', 'billingmodule', 'delete', id] as const, } as const; -export const relationProvisionMutationKeys = { - /** All relationProvision mutation keys */ all: ['mutation', 'relationprovision'] as const, - /** Create relationProvision mutation key */ create: () => - ['mutation', 'relationprovision', 'create'] as const, - /** Update relationProvision mutation key */ update: (id: string | number) => - ['mutation', 'relationprovision', 'update', id] as const, - /** Delete relationProvision mutation key */ delete: (id: string | number) => - ['mutation', 'relationprovision', 'delete', id] as const, +export const resourceModuleMutationKeys = { + /** All resourceModule mutation keys */ all: ['mutation', 'resourcemodule'] as const, + /** Create resourceModule mutation key */ create: () => + ['mutation', 'resourcemodule', 'create'] as const, + /** Update resourceModule mutation key */ update: (id: string | number) => + ['mutation', 'resourcemodule', 'update', id] as const, + /** Delete resourceModule mutation key */ delete: (id: string | number) => + ['mutation', 'resourcemodule', 'delete', id] as const, } as const; export const userAuthModuleMutationKeys = { /** All userAuthModule mutation keys */ all: ['mutation', 'userauthmodule'] as const, @@ -555,6 +593,15 @@ export const userAuthModuleMutationKeys = { /** Delete userAuthModule mutation key */ delete: (id: string | number) => ['mutation', 'userauthmodule', 'delete', id] as const, } as const; +export const dbUsageModuleMutationKeys = { + /** All dbUsageModule mutation keys */ all: ['mutation', 'dbusagemodule'] as const, + /** Create dbUsageModule mutation key */ create: () => + ['mutation', 'dbusagemodule', 'create'] as const, + /** Update dbUsageModule mutation key */ update: (id: string | number) => + ['mutation', 'dbusagemodule', 'update', id] as const, + /** Delete dbUsageModule mutation key */ delete: (id: string | number) => + ['mutation', 'dbusagemodule', 'delete', id] as const, +} as const; export const agentModuleMutationKeys = { /** All agentModule mutation keys */ all: ['mutation', 'agentmodule'] as const, /** Create agentModule mutation key */ create: () => @@ -573,15 +620,6 @@ export const limitsModuleMutationKeys = { /** Delete limitsModule mutation key */ delete: (id: string | number) => ['mutation', 'limitsmodule', 'delete', id] as const, } as const; -export const membershipsModuleMutationKeys = { - /** All membershipsModule mutation keys */ all: ['mutation', 'membershipsmodule'] as const, - /** Create membershipsModule mutation key */ create: () => - ['mutation', 'membershipsmodule', 'create'] as const, - /** Update membershipsModule mutation key */ update: (id: string | number) => - ['mutation', 'membershipsmodule', 'update', id] as const, - /** Delete membershipsModule mutation key */ delete: (id: string | number) => - ['mutation', 'membershipsmodule', 'delete', id] as const, -} as const; export const entityTypeProvisionMutationKeys = { /** All entityTypeProvision mutation keys */ all: ['mutation', 'entitytypeprovision'] as const, /** Create entityTypeProvision mutation key */ create: () => @@ -600,6 +638,15 @@ export const storageModuleMutationKeys = { /** Delete storageModule mutation key */ delete: (id: string | number) => ['mutation', 'storagemodule', 'delete', id] as const, } as const; +export const membershipsModuleMutationKeys = { + /** All membershipsModule mutation keys */ all: ['mutation', 'membershipsmodule'] as const, + /** Create membershipsModule mutation key */ create: () => + ['mutation', 'membershipsmodule', 'create'] as const, + /** Update membershipsModule mutation key */ update: (id: string | number) => + ['mutation', 'membershipsmodule', 'update', id] as const, + /** Delete membershipsModule mutation key */ delete: (id: string | number) => + ['mutation', 'membershipsmodule', 'delete', id] as const, +} as const; export const eventsModuleMutationKeys = { /** All eventsModule mutation keys */ all: ['mutation', 'eventsmodule'] as const, /** Create eventsModule mutation key */ create: () => @@ -687,23 +734,21 @@ export const customMutationKeys = { export const mutationKeys = { defaultIdsModule: defaultIdsModuleMutationKeys, membershipTypesModule: membershipTypesModuleMutationKeys, - userStateModule: userStateModuleMutationKeys, sessionSecretsModule: sessionSecretsModuleMutationKeys, - configSecretsOrgModule: configSecretsOrgModuleMutationKeys, devicesModule: devicesModuleMutationKeys, i18NModule: i18NModuleMutationKeys, - userCredentialsModule: userCredentialsModuleMutationKeys, userSettingsModule: userSettingsModuleMutationKeys, - configSecretsUserModule: configSecretsUserModuleMutationKeys, + userStateModule: userStateModuleMutationKeys, + userCredentialsModule: userCredentialsModuleMutationKeys, connectedAccountsModule: connectedAccountsModuleMutationKeys, emailsModule: emailsModuleMutationKeys, phoneNumbersModule: phoneNumbersModuleMutationKeys, rateLimitsModule: rateLimitsModuleMutationKeys, usersModule: usersModuleMutationKeys, webauthnCredentialsModule: webauthnCredentialsModuleMutationKeys, + configSecretsUserModule: configSecretsUserModuleMutationKeys, cryptoAddressesModule: cryptoAddressesModuleMutationKeys, denormalizedTableField: denormalizedTableFieldMutationKeys, - identityProvidersModule: identityProvidersModuleMutationKeys, rlsModule: rlsModuleMutationKeys, blueprint: blueprintMutationKeys, blueprintTemplate: blueprintTemplateMutationKeys, @@ -711,40 +756,47 @@ export const mutationKeys = { cryptoAuthModule: cryptoAuthModuleMutationKeys, sessionsModule: sessionsModuleMutationKeys, secureTableProvision: secureTableProvisionMutationKeys, - databaseProvisionModule: databaseProvisionModuleMutationKeys, - configSecretsModule: configSecretsModuleMutationKeys, + identityProvidersModule: identityProvidersModuleMutationKeys, + integrationProvidersModule: integrationProvidersModuleMutationKeys, + dbPoolConfig: dbPoolConfigMutationKeys, + realtimeModule: realtimeModuleMutationKeys, + infraSecretsModule: infraSecretsModuleMutationKeys, + internalSecretsModule: internalSecretsModuleMutationKeys, + dbPresetModule: dbPresetModuleMutationKeys, graphModule: graphModuleMutationKeys, - merkleStoreModule: merkleStoreModuleMutationKeys, rateLimitMetersModule: rateLimitMetersModuleMutationKeys, - realtimeModule: realtimeModuleMutationKeys, + infraConfigModule: infraConfigModuleMutationKeys, webauthnAuthModule: webauthnAuthModuleMutationKeys, - functionInvocationModule: functionInvocationModuleMutationKeys, + principalAuthModule: principalAuthModuleMutationKeys, + dbPool: dbPoolMutationKeys, functionModule: functionModuleMutationKeys, + merkleStoreModule: merkleStoreModuleMutationKeys, + databaseProvisionModule: databaseProvisionModuleMutationKeys, + functionInvocationModule: functionInvocationModuleMutationKeys, invitesModule: invitesModuleMutationKeys, - principalAuthModule: principalAuthModuleMutationKeys, + namespaceModule: namespaceModuleMutationKeys, + plansModule: plansModuleMutationKeys, computeLogModule: computeLogModuleMutationKeys, inferenceLogModule: inferenceLogModuleMutationKeys, - namespaceModule: namespaceModuleMutationKeys, - resourceModule: resourceModuleMutationKeys, storageLogModule: storageLogModuleMutationKeys, transferLogModule: transferLogModuleMutationKeys, - functionDeploymentModule: functionDeploymentModuleMutationKeys, - plansModule: plansModuleMutationKeys, billingProviderModule: billingProviderModuleMutationKeys, - dbUsageModule: dbUsageModuleMutationKeys, + functionDeploymentModule: functionDeploymentModuleMutationKeys, + permissionsModule: permissionsModuleMutationKeys, graphExecutionModule: graphExecutionModuleMutationKeys, hierarchyModule: hierarchyModuleMutationKeys, - permissionsModule: permissionsModuleMutationKeys, notificationsModule: notificationsModuleMutationKeys, + relationProvision: relationProvisionMutationKeys, profilesModule: profilesModuleMutationKeys, billingModule: billingModuleMutationKeys, - relationProvision: relationProvisionMutationKeys, + resourceModule: resourceModuleMutationKeys, userAuthModule: userAuthModuleMutationKeys, + dbUsageModule: dbUsageModuleMutationKeys, agentModule: agentModuleMutationKeys, limitsModule: limitsModuleMutationKeys, - membershipsModule: membershipsModuleMutationKeys, entityTypeProvision: entityTypeProvisionMutationKeys, storageModule: storageModuleMutationKeys, + membershipsModule: membershipsModuleMutationKeys, eventsModule: eventsModuleMutationKeys, custom: customMutationKeys, } as const; diff --git a/sdk/constructive-react/src/modules/hooks/mutations/index.ts b/sdk/constructive-react/src/modules/hooks/mutations/index.ts index f0f849fb5a..2614d02acc 100644 --- a/sdk/constructive-react/src/modules/hooks/mutations/index.ts +++ b/sdk/constructive-react/src/modules/hooks/mutations/index.ts @@ -9,30 +9,24 @@ export * from './useDeleteDefaultIdsModuleMutation'; export * from './useCreateMembershipTypesModuleMutation'; export * from './useUpdateMembershipTypesModuleMutation'; export * from './useDeleteMembershipTypesModuleMutation'; -export * from './useCreateUserStateModuleMutation'; -export * from './useUpdateUserStateModuleMutation'; -export * from './useDeleteUserStateModuleMutation'; export * from './useCreateSessionSecretsModuleMutation'; export * from './useUpdateSessionSecretsModuleMutation'; export * from './useDeleteSessionSecretsModuleMutation'; -export * from './useCreateConfigSecretsOrgModuleMutation'; -export * from './useUpdateConfigSecretsOrgModuleMutation'; -export * from './useDeleteConfigSecretsOrgModuleMutation'; export * from './useCreateDevicesModuleMutation'; export * from './useUpdateDevicesModuleMutation'; export * from './useDeleteDevicesModuleMutation'; export * from './useCreateI18NModuleMutation'; export * from './useUpdateI18NModuleMutation'; export * from './useDeleteI18NModuleMutation'; -export * from './useCreateUserCredentialsModuleMutation'; -export * from './useUpdateUserCredentialsModuleMutation'; -export * from './useDeleteUserCredentialsModuleMutation'; export * from './useCreateUserSettingsModuleMutation'; export * from './useUpdateUserSettingsModuleMutation'; export * from './useDeleteUserSettingsModuleMutation'; -export * from './useCreateConfigSecretsUserModuleMutation'; -export * from './useUpdateConfigSecretsUserModuleMutation'; -export * from './useDeleteConfigSecretsUserModuleMutation'; +export * from './useCreateUserStateModuleMutation'; +export * from './useUpdateUserStateModuleMutation'; +export * from './useDeleteUserStateModuleMutation'; +export * from './useCreateUserCredentialsModuleMutation'; +export * from './useUpdateUserCredentialsModuleMutation'; +export * from './useDeleteUserCredentialsModuleMutation'; export * from './useCreateConnectedAccountsModuleMutation'; export * from './useUpdateConnectedAccountsModuleMutation'; export * from './useDeleteConnectedAccountsModuleMutation'; @@ -51,15 +45,15 @@ export * from './useDeleteUsersModuleMutation'; export * from './useCreateWebauthnCredentialsModuleMutation'; export * from './useUpdateWebauthnCredentialsModuleMutation'; export * from './useDeleteWebauthnCredentialsModuleMutation'; +export * from './useCreateConfigSecretsUserModuleMutation'; +export * from './useUpdateConfigSecretsUserModuleMutation'; +export * from './useDeleteConfigSecretsUserModuleMutation'; export * from './useCreateCryptoAddressesModuleMutation'; export * from './useUpdateCryptoAddressesModuleMutation'; export * from './useDeleteCryptoAddressesModuleMutation'; export * from './useCreateDenormalizedTableFieldMutation'; export * from './useUpdateDenormalizedTableFieldMutation'; export * from './useDeleteDenormalizedTableFieldMutation'; -export * from './useCreateIdentityProvidersModuleMutation'; -export * from './useUpdateIdentityProvidersModuleMutation'; -export * from './useDeleteIdentityProvidersModuleMutation'; export * from './useCreateRlsModuleMutation'; export * from './useUpdateRlsModuleMutation'; export * from './useDeleteRlsModuleMutation'; @@ -81,108 +75,129 @@ export * from './useDeleteSessionsModuleMutation'; export * from './useCreateSecureTableProvisionMutation'; export * from './useUpdateSecureTableProvisionMutation'; export * from './useDeleteSecureTableProvisionMutation'; -export * from './useCreateDatabaseProvisionModuleMutation'; -export * from './useUpdateDatabaseProvisionModuleMutation'; -export * from './useDeleteDatabaseProvisionModuleMutation'; -export * from './useCreateConfigSecretsModuleMutation'; -export * from './useUpdateConfigSecretsModuleMutation'; -export * from './useDeleteConfigSecretsModuleMutation'; +export * from './useCreateIdentityProvidersModuleMutation'; +export * from './useUpdateIdentityProvidersModuleMutation'; +export * from './useDeleteIdentityProvidersModuleMutation'; +export * from './useCreateIntegrationProvidersModuleMutation'; +export * from './useUpdateIntegrationProvidersModuleMutation'; +export * from './useDeleteIntegrationProvidersModuleMutation'; +export * from './useCreateDbPoolConfigMutation'; +export * from './useUpdateDbPoolConfigMutation'; +export * from './useDeleteDbPoolConfigMutation'; +export * from './useCreateRealtimeModuleMutation'; +export * from './useUpdateRealtimeModuleMutation'; +export * from './useDeleteRealtimeModuleMutation'; +export * from './useCreateInfraSecretsModuleMutation'; +export * from './useUpdateInfraSecretsModuleMutation'; +export * from './useDeleteInfraSecretsModuleMutation'; +export * from './useCreateInternalSecretsModuleMutation'; +export * from './useUpdateInternalSecretsModuleMutation'; +export * from './useDeleteInternalSecretsModuleMutation'; +export * from './useCreateDbPresetModuleMutation'; +export * from './useUpdateDbPresetModuleMutation'; +export * from './useDeleteDbPresetModuleMutation'; export * from './useCreateGraphModuleMutation'; export * from './useUpdateGraphModuleMutation'; export * from './useDeleteGraphModuleMutation'; -export * from './useCreateMerkleStoreModuleMutation'; -export * from './useUpdateMerkleStoreModuleMutation'; -export * from './useDeleteMerkleStoreModuleMutation'; export * from './useCreateRateLimitMetersModuleMutation'; export * from './useUpdateRateLimitMetersModuleMutation'; export * from './useDeleteRateLimitMetersModuleMutation'; -export * from './useCreateRealtimeModuleMutation'; -export * from './useUpdateRealtimeModuleMutation'; -export * from './useDeleteRealtimeModuleMutation'; +export * from './useCreateInfraConfigModuleMutation'; +export * from './useUpdateInfraConfigModuleMutation'; +export * from './useDeleteInfraConfigModuleMutation'; export * from './useCreateWebauthnAuthModuleMutation'; export * from './useUpdateWebauthnAuthModuleMutation'; export * from './useDeleteWebauthnAuthModuleMutation'; -export * from './useCreateFunctionInvocationModuleMutation'; -export * from './useUpdateFunctionInvocationModuleMutation'; -export * from './useDeleteFunctionInvocationModuleMutation'; +export * from './useCreatePrincipalAuthModuleMutation'; +export * from './useUpdatePrincipalAuthModuleMutation'; +export * from './useDeletePrincipalAuthModuleMutation'; +export * from './useCreateDbPoolMutation'; +export * from './useUpdateDbPoolMutation'; +export * from './useDeleteDbPoolMutation'; export * from './useCreateFunctionModuleMutation'; export * from './useUpdateFunctionModuleMutation'; export * from './useDeleteFunctionModuleMutation'; +export * from './useCreateMerkleStoreModuleMutation'; +export * from './useUpdateMerkleStoreModuleMutation'; +export * from './useDeleteMerkleStoreModuleMutation'; +export * from './useCreateDatabaseProvisionModuleMutation'; +export * from './useUpdateDatabaseProvisionModuleMutation'; +export * from './useDeleteDatabaseProvisionModuleMutation'; +export * from './useCreateFunctionInvocationModuleMutation'; +export * from './useUpdateFunctionInvocationModuleMutation'; +export * from './useDeleteFunctionInvocationModuleMutation'; export * from './useCreateInvitesModuleMutation'; export * from './useUpdateInvitesModuleMutation'; export * from './useDeleteInvitesModuleMutation'; -export * from './useCreatePrincipalAuthModuleMutation'; -export * from './useUpdatePrincipalAuthModuleMutation'; -export * from './useDeletePrincipalAuthModuleMutation'; +export * from './useCreateNamespaceModuleMutation'; +export * from './useUpdateNamespaceModuleMutation'; +export * from './useDeleteNamespaceModuleMutation'; +export * from './useCreatePlansModuleMutation'; +export * from './useUpdatePlansModuleMutation'; +export * from './useDeletePlansModuleMutation'; export * from './useCreateComputeLogModuleMutation'; export * from './useUpdateComputeLogModuleMutation'; export * from './useDeleteComputeLogModuleMutation'; export * from './useCreateInferenceLogModuleMutation'; export * from './useUpdateInferenceLogModuleMutation'; export * from './useDeleteInferenceLogModuleMutation'; -export * from './useCreateNamespaceModuleMutation'; -export * from './useUpdateNamespaceModuleMutation'; -export * from './useDeleteNamespaceModuleMutation'; -export * from './useCreateResourceModuleMutation'; -export * from './useUpdateResourceModuleMutation'; -export * from './useDeleteResourceModuleMutation'; export * from './useCreateStorageLogModuleMutation'; export * from './useUpdateStorageLogModuleMutation'; export * from './useDeleteStorageLogModuleMutation'; export * from './useCreateTransferLogModuleMutation'; export * from './useUpdateTransferLogModuleMutation'; export * from './useDeleteTransferLogModuleMutation'; -export * from './useCreateFunctionDeploymentModuleMutation'; -export * from './useUpdateFunctionDeploymentModuleMutation'; -export * from './useDeleteFunctionDeploymentModuleMutation'; -export * from './useCreatePlansModuleMutation'; -export * from './useUpdatePlansModuleMutation'; -export * from './useDeletePlansModuleMutation'; export * from './useCreateBillingProviderModuleMutation'; export * from './useUpdateBillingProviderModuleMutation'; export * from './useDeleteBillingProviderModuleMutation'; -export * from './useCreateDbUsageModuleMutation'; -export * from './useUpdateDbUsageModuleMutation'; -export * from './useDeleteDbUsageModuleMutation'; +export * from './useCreateFunctionDeploymentModuleMutation'; +export * from './useUpdateFunctionDeploymentModuleMutation'; +export * from './useDeleteFunctionDeploymentModuleMutation'; +export * from './useCreatePermissionsModuleMutation'; +export * from './useUpdatePermissionsModuleMutation'; +export * from './useDeletePermissionsModuleMutation'; export * from './useCreateGraphExecutionModuleMutation'; export * from './useUpdateGraphExecutionModuleMutation'; export * from './useDeleteGraphExecutionModuleMutation'; export * from './useCreateHierarchyModuleMutation'; export * from './useUpdateHierarchyModuleMutation'; export * from './useDeleteHierarchyModuleMutation'; -export * from './useCreatePermissionsModuleMutation'; -export * from './useUpdatePermissionsModuleMutation'; -export * from './useDeletePermissionsModuleMutation'; export * from './useCreateNotificationsModuleMutation'; export * from './useUpdateNotificationsModuleMutation'; export * from './useDeleteNotificationsModuleMutation'; +export * from './useCreateRelationProvisionMutation'; +export * from './useUpdateRelationProvisionMutation'; +export * from './useDeleteRelationProvisionMutation'; export * from './useCreateProfilesModuleMutation'; export * from './useUpdateProfilesModuleMutation'; export * from './useDeleteProfilesModuleMutation'; export * from './useCreateBillingModuleMutation'; export * from './useUpdateBillingModuleMutation'; export * from './useDeleteBillingModuleMutation'; -export * from './useCreateRelationProvisionMutation'; -export * from './useUpdateRelationProvisionMutation'; -export * from './useDeleteRelationProvisionMutation'; +export * from './useCreateResourceModuleMutation'; +export * from './useUpdateResourceModuleMutation'; +export * from './useDeleteResourceModuleMutation'; export * from './useCreateUserAuthModuleMutation'; export * from './useUpdateUserAuthModuleMutation'; export * from './useDeleteUserAuthModuleMutation'; +export * from './useCreateDbUsageModuleMutation'; +export * from './useUpdateDbUsageModuleMutation'; +export * from './useDeleteDbUsageModuleMutation'; export * from './useCreateAgentModuleMutation'; export * from './useUpdateAgentModuleMutation'; export * from './useDeleteAgentModuleMutation'; export * from './useCreateLimitsModuleMutation'; export * from './useUpdateLimitsModuleMutation'; export * from './useDeleteLimitsModuleMutation'; -export * from './useCreateMembershipsModuleMutation'; -export * from './useUpdateMembershipsModuleMutation'; -export * from './useDeleteMembershipsModuleMutation'; export * from './useCreateEntityTypeProvisionMutation'; export * from './useUpdateEntityTypeProvisionMutation'; export * from './useDeleteEntityTypeProvisionMutation'; export * from './useCreateStorageModuleMutation'; export * from './useUpdateStorageModuleMutation'; export * from './useDeleteStorageModuleMutation'; +export * from './useCreateMembershipsModuleMutation'; +export * from './useUpdateMembershipsModuleMutation'; +export * from './useDeleteMembershipsModuleMutation'; export * from './useCreateEventsModuleMutation'; export * from './useUpdateEventsModuleMutation'; export * from './useDeleteEventsModuleMutation'; diff --git a/sdk/constructive-react/src/modules/hooks/mutations/useCreateConfigSecretsModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useCreateConfigSecretsModuleMutation.ts deleted file mode 100644 index 8aee21b224..0000000000 --- a/sdk/constructive-react/src/modules/hooks/mutations/useCreateConfigSecretsModuleMutation.ts +++ /dev/null @@ -1,95 +0,0 @@ -/** - * Entity-aware PGP-encrypted key-value config/secrets module. Supports app-level (admin-only) - and org-scoped (per-org secrets with manage_secrets permission) via the scope column. - User-scoped bcrypt credentials are handled by user_credentials_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 { configSecretsModuleKeys } from '../query-keys'; -import { configSecretsModuleMutationKeys } from '../mutation-keys'; -import type { - ConfigSecretsModuleSelect, - ConfigSecretsModuleWithRelations, - CreateConfigSecretsModuleInput, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - ConfigSecretsModuleSelect, - ConfigSecretsModuleWithRelations, - CreateConfigSecretsModuleInput, -} from '../../orm/input-types'; -/** - * Entity-aware PGP-encrypted key-value config/secrets module. Supports app-level (admin-only) - and org-scoped (per-org secrets with manage_secrets permission) via the scope column. - User-scoped bcrypt credentials are handled by user_credentials_module. - * - * @example - * ```tsx - * const { mutate, isPending } = useCreateConfigSecretsModuleMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreateConfigSecretsModuleMutation( - params: { - selection: { - fields: S & ConfigSecretsModuleSelect; - } & HookStrictSelect, ConfigSecretsModuleSelect>; - } & Omit< - UseMutationOptions< - { - createConfigSecretsModule: { - configSecretsModule: InferSelectResult; - }; - }, - Error, - CreateConfigSecretsModuleInput['configSecretsModule'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createConfigSecretsModule: { - configSecretsModule: InferSelectResult; - }; - }, - Error, - CreateConfigSecretsModuleInput['configSecretsModule'] ->; -export function useCreateConfigSecretsModuleMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: configSecretsModuleMutationKeys.create(), - mutationFn: (data: CreateConfigSecretsModuleInput['configSecretsModule']) => - getClient() - .configSecretsModule.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: configSecretsModuleKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/modules/hooks/mutations/useCreateConfigSecretsOrgModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useCreateConfigSecretsOrgModuleMutation.ts deleted file mode 100644 index b80727d543..0000000000 --- a/sdk/constructive-react/src/modules/hooks/mutations/useCreateConfigSecretsOrgModuleMutation.ts +++ /dev/null @@ -1,91 +0,0 @@ -/** - * Config row for the config_secrets_org_module, which provisions an organization-scoped encrypted key-value secrets store with manage_secrets permission and entity-membership RLS. - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { configSecretsOrgModuleKeys } from '../query-keys'; -import { configSecretsOrgModuleMutationKeys } from '../mutation-keys'; -import type { - ConfigSecretsOrgModuleSelect, - ConfigSecretsOrgModuleWithRelations, - CreateConfigSecretsOrgModuleInput, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - ConfigSecretsOrgModuleSelect, - ConfigSecretsOrgModuleWithRelations, - CreateConfigSecretsOrgModuleInput, -} from '../../orm/input-types'; -/** - * Config row for the config_secrets_org_module, which provisions an organization-scoped encrypted key-value secrets store with manage_secrets permission and entity-membership RLS. - * - * @example - * ```tsx - * const { mutate, isPending } = useCreateConfigSecretsOrgModuleMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreateConfigSecretsOrgModuleMutation( - params: { - selection: { - fields: S & ConfigSecretsOrgModuleSelect; - } & HookStrictSelect, ConfigSecretsOrgModuleSelect>; - } & Omit< - UseMutationOptions< - { - createConfigSecretsOrgModule: { - configSecretsOrgModule: InferSelectResult; - }; - }, - Error, - CreateConfigSecretsOrgModuleInput['configSecretsOrgModule'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createConfigSecretsOrgModule: { - configSecretsOrgModule: InferSelectResult; - }; - }, - Error, - CreateConfigSecretsOrgModuleInput['configSecretsOrgModule'] ->; -export function useCreateConfigSecretsOrgModuleMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: configSecretsOrgModuleMutationKeys.create(), - mutationFn: (data: CreateConfigSecretsOrgModuleInput['configSecretsOrgModule']) => - getClient() - .configSecretsOrgModule.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: configSecretsOrgModuleKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/modules/hooks/mutations/useCreateDbPoolConfigMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useCreateDbPoolConfigMutation.ts new file mode 100644 index 0000000000..3d60f4fab7 --- /dev/null +++ b/sdk/constructive-react/src/modules/hooks/mutations/useCreateDbPoolConfigMutation.ts @@ -0,0 +1,88 @@ +/** + * Per-preset configuration for the warm database pool: sizing, TTL, and the platform service org that owns unclaimed warm databases. + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { dbPoolConfigKeys } from '../query-keys'; +import { dbPoolConfigMutationKeys } from '../mutation-keys'; +import type { + DbPoolConfigSelect, + DbPoolConfigWithRelations, + CreateDbPoolConfigInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + DbPoolConfigSelect, + DbPoolConfigWithRelations, + CreateDbPoolConfigInput, +} from '../../orm/input-types'; +/** + * Per-preset configuration for the warm database pool: sizing, TTL, and the platform service org that owns unclaimed warm databases. + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateDbPoolConfigMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateDbPoolConfigMutation( + params: { + selection: { + fields: S & DbPoolConfigSelect; + } & HookStrictSelect, DbPoolConfigSelect>; + } & Omit< + UseMutationOptions< + { + createDbPoolConfig: { + dbPoolConfig: InferSelectResult; + }; + }, + Error, + CreateDbPoolConfigInput['dbPoolConfig'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createDbPoolConfig: { + dbPoolConfig: InferSelectResult; + }; + }, + Error, + CreateDbPoolConfigInput['dbPoolConfig'] +>; +export function useCreateDbPoolConfigMutation( + params: { + selection: SelectionConfig; + } & Omit, 'mutationFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: dbPoolConfigMutationKeys.create(), + mutationFn: (data: CreateDbPoolConfigInput['dbPoolConfig']) => + getClient() + .dbPoolConfig.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: dbPoolConfigKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/modules/hooks/mutations/useCreateDbPoolMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useCreateDbPoolMutation.ts new file mode 100644 index 0000000000..553e66f914 --- /dev/null +++ b/sdk/constructive-react/src/modules/hooks/mutations/useCreateDbPoolMutation.ts @@ -0,0 +1,80 @@ +/** + * Warm database pool entries. Rows are inserted as warming (which enqueues a db_pool:warm_database job), become ready once provisioned, and are handed to users via metaschema_private.db_pool_claim (invoked by metaschema_public.request_database). + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { dbPoolKeys } from '../query-keys'; +import { dbPoolMutationKeys } from '../mutation-keys'; +import type { DbPoolSelect, DbPoolWithRelations, CreateDbPoolInput } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { DbPoolSelect, DbPoolWithRelations, CreateDbPoolInput } from '../../orm/input-types'; +/** + * Warm database pool entries. Rows are inserted as warming (which enqueues a db_pool:warm_database job), become ready once provisioned, and are handed to users via metaschema_private.db_pool_claim (invoked by metaschema_public.request_database). + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateDbPoolMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateDbPoolMutation( + params: { + selection: { + fields: S & DbPoolSelect; + } & HookStrictSelect, DbPoolSelect>; + } & Omit< + UseMutationOptions< + { + createDbPool: { + dbPool: InferSelectResult; + }; + }, + Error, + CreateDbPoolInput['dbPool'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createDbPool: { + dbPool: InferSelectResult; + }; + }, + Error, + CreateDbPoolInput['dbPool'] +>; +export function useCreateDbPoolMutation( + params: { + selection: SelectionConfig; + } & Omit, 'mutationFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: dbPoolMutationKeys.create(), + mutationFn: (data: CreateDbPoolInput['dbPool']) => + getClient() + .dbPool.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: dbPoolKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/modules/hooks/mutations/useCreateDbPresetModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useCreateDbPresetModuleMutation.ts new file mode 100644 index 0000000000..e3022719b5 --- /dev/null +++ b/sdk/constructive-react/src/modules/hooks/mutations/useCreateDbPresetModuleMutation.ts @@ -0,0 +1,91 @@ +/** + * Create mutation hook for DbPresetModule + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { dbPresetModuleKeys } from '../query-keys'; +import { dbPresetModuleMutationKeys } from '../mutation-keys'; +import type { + DbPresetModuleSelect, + DbPresetModuleWithRelations, + CreateDbPresetModuleInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + DbPresetModuleSelect, + DbPresetModuleWithRelations, + CreateDbPresetModuleInput, +} from '../../orm/input-types'; +/** + * Mutation hook for creating a DbPresetModule + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateDbPresetModuleMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateDbPresetModuleMutation( + params: { + selection: { + fields: S & DbPresetModuleSelect; + } & HookStrictSelect, DbPresetModuleSelect>; + } & Omit< + UseMutationOptions< + { + createDbPresetModule: { + dbPresetModule: InferSelectResult; + }; + }, + Error, + CreateDbPresetModuleInput['dbPresetModule'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createDbPresetModule: { + dbPresetModule: InferSelectResult; + }; + }, + Error, + CreateDbPresetModuleInput['dbPresetModule'] +>; +export function useCreateDbPresetModuleMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: dbPresetModuleMutationKeys.create(), + mutationFn: (data: CreateDbPresetModuleInput['dbPresetModule']) => + getClient() + .dbPresetModule.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: dbPresetModuleKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/modules/hooks/mutations/useCreateIdentityProvidersModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useCreateIdentityProvidersModuleMutation.ts index 09697a52b8..365561f37d 100644 --- a/sdk/constructive-react/src/modules/hooks/mutations/useCreateIdentityProvidersModuleMutation.ts +++ b/sdk/constructive-react/src/modules/hooks/mutations/useCreateIdentityProvidersModuleMutation.ts @@ -1,14 +1,13 @@ /** * Entity-aware config row for the identity_providers_module, which provisions a per-database identity_providers table holding OAuth2 / OIDC (and future SAML) provider definitions. - The scope column determines which config_secrets_module table the rotate proc targets - (app_secrets for app scope, org_secrets for org scope). When scope = platform, - the secrets table gets a database_id column and platform-level RLS via - AuthzRelatedEntityMembership through database.owner_id. + The scope column determines which internal_secrets_module table the rotate proc targets + (app_secrets for app scope, platform_secrets for platform scope). When scope = database, + the secrets table gets a database_id column. Scoping matrix: scope=app → per-database flat, in-app admin manages - scope=platform → per-database, platform admin manages (generate:constructive) - scope=org → per-org tenant, org admin manages + scope=platform → platform-wide, platform admin manages (generate:constructive) + scope=database → per-database infra, carries database_id * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -34,14 +33,13 @@ export type { /** * Entity-aware config row for the identity_providers_module, which provisions a per-database identity_providers table holding OAuth2 / OIDC (and future SAML) provider definitions. - The scope column determines which config_secrets_module table the rotate proc targets - (app_secrets for app scope, org_secrets for org scope). When scope = platform, - the secrets table gets a database_id column and platform-level RLS via - AuthzRelatedEntityMembership through database.owner_id. + The scope column determines which internal_secrets_module table the rotate proc targets + (app_secrets for app scope, platform_secrets for platform scope). When scope = database, + the secrets table gets a database_id column. Scoping matrix: scope=app → per-database flat, in-app admin manages - scope=platform → per-database, platform admin manages (generate:constructive) - scope=org → per-org tenant, org admin manages + scope=platform → platform-wide, platform admin manages (generate:constructive) + scope=database → per-database infra, carries database_id * * @example * ```tsx diff --git a/sdk/constructive-react/src/modules/hooks/mutations/useCreateInfraConfigModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useCreateInfraConfigModuleMutation.ts new file mode 100644 index 0000000000..599e49fa5a --- /dev/null +++ b/sdk/constructive-react/src/modules/hooks/mutations/useCreateInfraConfigModuleMutation.ts @@ -0,0 +1,91 @@ +/** + * Namespace-backed plaintext key-value config module. Requires namespace_module and emits namespace:sync_config job triggers for K8s ConfigMap synchronization. + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { infraConfigModuleKeys } from '../query-keys'; +import { infraConfigModuleMutationKeys } from '../mutation-keys'; +import type { + InfraConfigModuleSelect, + InfraConfigModuleWithRelations, + CreateInfraConfigModuleInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + InfraConfigModuleSelect, + InfraConfigModuleWithRelations, + CreateInfraConfigModuleInput, +} from '../../orm/input-types'; +/** + * Namespace-backed plaintext key-value config module. Requires namespace_module and emits namespace:sync_config job triggers for K8s ConfigMap synchronization. + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateInfraConfigModuleMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateInfraConfigModuleMutation( + params: { + selection: { + fields: S & InfraConfigModuleSelect; + } & HookStrictSelect, InfraConfigModuleSelect>; + } & Omit< + UseMutationOptions< + { + createInfraConfigModule: { + infraConfigModule: InferSelectResult; + }; + }, + Error, + CreateInfraConfigModuleInput['infraConfigModule'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createInfraConfigModule: { + infraConfigModule: InferSelectResult; + }; + }, + Error, + CreateInfraConfigModuleInput['infraConfigModule'] +>; +export function useCreateInfraConfigModuleMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: infraConfigModuleMutationKeys.create(), + mutationFn: (data: CreateInfraConfigModuleInput['infraConfigModule']) => + getClient() + .infraConfigModule.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: infraConfigModuleKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/modules/hooks/mutations/useCreateInfraSecretsModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useCreateInfraSecretsModuleMutation.ts new file mode 100644 index 0000000000..78094865d2 --- /dev/null +++ b/sdk/constructive-react/src/modules/hooks/mutations/useCreateInfraSecretsModuleMutation.ts @@ -0,0 +1,91 @@ +/** + * Namespace-backed PGP-encrypted key-value secrets module. Requires namespace_module and emits namespace:sync_secrets job triggers for K8s Secret synchronization. + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { infraSecretsModuleKeys } from '../query-keys'; +import { infraSecretsModuleMutationKeys } from '../mutation-keys'; +import type { + InfraSecretsModuleSelect, + InfraSecretsModuleWithRelations, + CreateInfraSecretsModuleInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + InfraSecretsModuleSelect, + InfraSecretsModuleWithRelations, + CreateInfraSecretsModuleInput, +} from '../../orm/input-types'; +/** + * Namespace-backed PGP-encrypted key-value secrets module. Requires namespace_module and emits namespace:sync_secrets job triggers for K8s Secret synchronization. + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateInfraSecretsModuleMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateInfraSecretsModuleMutation( + params: { + selection: { + fields: S & InfraSecretsModuleSelect; + } & HookStrictSelect, InfraSecretsModuleSelect>; + } & Omit< + UseMutationOptions< + { + createInfraSecretsModule: { + infraSecretsModule: InferSelectResult; + }; + }, + Error, + CreateInfraSecretsModuleInput['infraSecretsModule'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createInfraSecretsModule: { + infraSecretsModule: InferSelectResult; + }; + }, + Error, + CreateInfraSecretsModuleInput['infraSecretsModule'] +>; +export function useCreateInfraSecretsModuleMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: infraSecretsModuleMutationKeys.create(), + mutationFn: (data: CreateInfraSecretsModuleInput['infraSecretsModule']) => + getClient() + .infraSecretsModule.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: infraSecretsModuleKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/modules/hooks/mutations/useCreateIntegrationProvidersModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useCreateIntegrationProvidersModuleMutation.ts new file mode 100644 index 0000000000..0e52290899 --- /dev/null +++ b/sdk/constructive-react/src/modules/hooks/mutations/useCreateIntegrationProvidersModuleMutation.ts @@ -0,0 +1,105 @@ +/** + * Config row for the integration_providers_module, which provisions a per-database + integration_providers table holding branded, reusable service definitions. + 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. + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { integrationProvidersModuleKeys } from '../query-keys'; +import { integrationProvidersModuleMutationKeys } from '../mutation-keys'; +import type { + IntegrationProvidersModuleSelect, + IntegrationProvidersModuleWithRelations, + CreateIntegrationProvidersModuleInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + IntegrationProvidersModuleSelect, + IntegrationProvidersModuleWithRelations, + CreateIntegrationProvidersModuleInput, +} from '../../orm/input-types'; +/** + * Config row for the integration_providers_module, which provisions a per-database + integration_providers table holding branded, reusable service definitions. + 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. + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateIntegrationProvidersModuleMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateIntegrationProvidersModuleMutation< + S extends IntegrationProvidersModuleSelect, +>( + params: { + selection: { + fields: S & IntegrationProvidersModuleSelect; + } & HookStrictSelect, IntegrationProvidersModuleSelect>; + } & Omit< + UseMutationOptions< + { + createIntegrationProvidersModule: { + integrationProvidersModule: InferSelectResult; + }; + }, + Error, + CreateIntegrationProvidersModuleInput['integrationProvidersModule'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createIntegrationProvidersModule: { + integrationProvidersModule: InferSelectResult; + }; + }, + Error, + CreateIntegrationProvidersModuleInput['integrationProvidersModule'] +>; +export function useCreateIntegrationProvidersModuleMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + CreateIntegrationProvidersModuleInput['integrationProvidersModule'] + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: integrationProvidersModuleMutationKeys.create(), + mutationFn: (data: CreateIntegrationProvidersModuleInput['integrationProvidersModule']) => + getClient() + .integrationProvidersModule.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: integrationProvidersModuleKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/modules/hooks/mutations/useCreateInternalSecretsModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useCreateInternalSecretsModuleMutation.ts new file mode 100644 index 0000000000..26b1d00ef6 --- /dev/null +++ b/sdk/constructive-react/src/modules/hooks/mutations/useCreateInternalSecretsModuleMutation.ts @@ -0,0 +1,91 @@ +/** + * 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. + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { internalSecretsModuleKeys } from '../query-keys'; +import { internalSecretsModuleMutationKeys } from '../mutation-keys'; +import type { + InternalSecretsModuleSelect, + InternalSecretsModuleWithRelations, + CreateInternalSecretsModuleInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + InternalSecretsModuleSelect, + InternalSecretsModuleWithRelations, + CreateInternalSecretsModuleInput, +} from '../../orm/input-types'; +/** + * 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. + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateInternalSecretsModuleMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateInternalSecretsModuleMutation( + params: { + selection: { + fields: S & InternalSecretsModuleSelect; + } & HookStrictSelect, InternalSecretsModuleSelect>; + } & Omit< + UseMutationOptions< + { + createInternalSecretsModule: { + internalSecretsModule: InferSelectResult; + }; + }, + Error, + CreateInternalSecretsModuleInput['internalSecretsModule'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createInternalSecretsModule: { + internalSecretsModule: InferSelectResult; + }; + }, + Error, + CreateInternalSecretsModuleInput['internalSecretsModule'] +>; +export function useCreateInternalSecretsModuleMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: internalSecretsModuleMutationKeys.create(), + mutationFn: (data: CreateInternalSecretsModuleInput['internalSecretsModule']) => + getClient() + .internalSecretsModule.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: internalSecretsModuleKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/modules/hooks/mutations/useDeleteConfigSecretsModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useDeleteConfigSecretsModuleMutation.ts deleted file mode 100644 index f79581ba13..0000000000 --- a/sdk/constructive-react/src/modules/hooks/mutations/useDeleteConfigSecretsModuleMutation.ts +++ /dev/null @@ -1,108 +0,0 @@ -/** - * Entity-aware PGP-encrypted key-value config/secrets module. Supports app-level (admin-only) - and org-scoped (per-org secrets with manage_secrets permission) via the scope column. - User-scoped bcrypt credentials are handled by user_credentials_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 { configSecretsModuleKeys } from '../query-keys'; -import { configSecretsModuleMutationKeys } from '../mutation-keys'; -import type { - ConfigSecretsModuleSelect, - ConfigSecretsModuleWithRelations, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - ConfigSecretsModuleSelect, - ConfigSecretsModuleWithRelations, -} from '../../orm/input-types'; -/** - * Entity-aware PGP-encrypted key-value config/secrets module. Supports app-level (admin-only) - and org-scoped (per-org secrets with manage_secrets permission) via the scope column. - User-scoped bcrypt credentials are handled by user_credentials_module. - * - * @example - * ```tsx - * const { mutate, isPending } = useDeleteConfigSecretsModuleMutation({ - * selection: { fields: { id: true } }, - * }); - * - * mutate({ id: 'value-to-delete' }); - * ``` - */ -export function useDeleteConfigSecretsModuleMutation( - params: { - selection: { - fields: S & ConfigSecretsModuleSelect; - } & HookStrictSelect, ConfigSecretsModuleSelect>; - } & Omit< - UseMutationOptions< - { - deleteConfigSecretsModule: { - configSecretsModule: InferSelectResult; - }; - }, - Error, - { - id: string; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - deleteConfigSecretsModule: { - configSecretsModule: InferSelectResult; - }; - }, - Error, - { - id: string; - } ->; -export function useDeleteConfigSecretsModuleMutation( - 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: configSecretsModuleMutationKeys.all, - mutationFn: ({ id }: { id: string }) => - getClient() - .configSecretsModule.delete({ - where: { - id, - }, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.removeQueries({ - queryKey: configSecretsModuleKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: configSecretsModuleKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/modules/hooks/mutations/useDeleteConfigSecretsOrgModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useDeleteConfigSecretsOrgModuleMutation.ts deleted file mode 100644 index a1cb4c3f0f..0000000000 --- a/sdk/constructive-react/src/modules/hooks/mutations/useDeleteConfigSecretsOrgModuleMutation.ts +++ /dev/null @@ -1,104 +0,0 @@ -/** - * Config row for the config_secrets_org_module, which provisions an organization-scoped encrypted key-value secrets store with manage_secrets permission and entity-membership RLS. - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { configSecretsOrgModuleKeys } from '../query-keys'; -import { configSecretsOrgModuleMutationKeys } from '../mutation-keys'; -import type { - ConfigSecretsOrgModuleSelect, - ConfigSecretsOrgModuleWithRelations, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - ConfigSecretsOrgModuleSelect, - ConfigSecretsOrgModuleWithRelations, -} from '../../orm/input-types'; -/** - * Config row for the config_secrets_org_module, which provisions an organization-scoped encrypted key-value secrets store with manage_secrets permission and entity-membership RLS. - * - * @example - * ```tsx - * const { mutate, isPending } = useDeleteConfigSecretsOrgModuleMutation({ - * selection: { fields: { id: true } }, - * }); - * - * mutate({ id: 'value-to-delete' }); - * ``` - */ -export function useDeleteConfigSecretsOrgModuleMutation( - params: { - selection: { - fields: S & ConfigSecretsOrgModuleSelect; - } & HookStrictSelect, ConfigSecretsOrgModuleSelect>; - } & Omit< - UseMutationOptions< - { - deleteConfigSecretsOrgModule: { - configSecretsOrgModule: InferSelectResult; - }; - }, - Error, - { - id: string; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - deleteConfigSecretsOrgModule: { - configSecretsOrgModule: InferSelectResult; - }; - }, - Error, - { - id: string; - } ->; -export function useDeleteConfigSecretsOrgModuleMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - { - id: string; - } - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: configSecretsOrgModuleMutationKeys.all, - mutationFn: ({ id }: { id: string }) => - getClient() - .configSecretsOrgModule.delete({ - where: { - id, - }, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.removeQueries({ - queryKey: configSecretsOrgModuleKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: configSecretsOrgModuleKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/modules/hooks/mutations/useDeleteDbPoolConfigMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useDeleteDbPoolConfigMutation.ts new file mode 100644 index 0000000000..c203f5c093 --- /dev/null +++ b/sdk/constructive-react/src/modules/hooks/mutations/useDeleteDbPoolConfigMutation.ts @@ -0,0 +1,98 @@ +/** + * Per-preset configuration for the warm database pool: sizing, TTL, and the platform service org that owns unclaimed warm databases. + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { dbPoolConfigKeys } from '../query-keys'; +import { dbPoolConfigMutationKeys } from '../mutation-keys'; +import type { DbPoolConfigSelect, DbPoolConfigWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { DbPoolConfigSelect, DbPoolConfigWithRelations } from '../../orm/input-types'; +/** + * Per-preset configuration for the warm database pool: sizing, TTL, and the platform service org that owns unclaimed warm databases. + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteDbPoolConfigMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteDbPoolConfigMutation( + params: { + selection: { + fields: S & DbPoolConfigSelect; + } & HookStrictSelect, DbPoolConfigSelect>; + } & Omit< + UseMutationOptions< + { + deleteDbPoolConfig: { + dbPoolConfig: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteDbPoolConfig: { + dbPoolConfig: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteDbPoolConfigMutation( + 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: dbPoolConfigMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .dbPoolConfig.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: dbPoolConfigKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: dbPoolConfigKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/modules/hooks/mutations/useDeleteDbPoolMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useDeleteDbPoolMutation.ts new file mode 100644 index 0000000000..249970e2fe --- /dev/null +++ b/sdk/constructive-react/src/modules/hooks/mutations/useDeleteDbPoolMutation.ts @@ -0,0 +1,98 @@ +/** + * Warm database pool entries. Rows are inserted as warming (which enqueues a db_pool:warm_database job), become ready once provisioned, and are handed to users via metaschema_private.db_pool_claim (invoked by metaschema_public.request_database). + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { dbPoolKeys } from '../query-keys'; +import { dbPoolMutationKeys } from '../mutation-keys'; +import type { DbPoolSelect, DbPoolWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { DbPoolSelect, DbPoolWithRelations } from '../../orm/input-types'; +/** + * Warm database pool entries. Rows are inserted as warming (which enqueues a db_pool:warm_database job), become ready once provisioned, and are handed to users via metaschema_private.db_pool_claim (invoked by metaschema_public.request_database). + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteDbPoolMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteDbPoolMutation( + params: { + selection: { + fields: S & DbPoolSelect; + } & HookStrictSelect, DbPoolSelect>; + } & Omit< + UseMutationOptions< + { + deleteDbPool: { + dbPool: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteDbPool: { + dbPool: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteDbPoolMutation( + 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: dbPoolMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .dbPool.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: dbPoolKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: dbPoolKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/modules/hooks/mutations/useDeleteDbPresetModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useDeleteDbPresetModuleMutation.ts new file mode 100644 index 0000000000..2e892a77a1 --- /dev/null +++ b/sdk/constructive-react/src/modules/hooks/mutations/useDeleteDbPresetModuleMutation.ts @@ -0,0 +1,98 @@ +/** + * Delete mutation hook for DbPresetModule + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { dbPresetModuleKeys } from '../query-keys'; +import { dbPresetModuleMutationKeys } from '../mutation-keys'; +import type { DbPresetModuleSelect, DbPresetModuleWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { DbPresetModuleSelect, DbPresetModuleWithRelations } from '../../orm/input-types'; +/** + * Mutation hook for deleting a DbPresetModule with typed selection + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteDbPresetModuleMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteDbPresetModuleMutation( + params: { + selection: { + fields: S & DbPresetModuleSelect; + } & HookStrictSelect, DbPresetModuleSelect>; + } & Omit< + UseMutationOptions< + { + deleteDbPresetModule: { + dbPresetModule: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteDbPresetModule: { + dbPresetModule: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteDbPresetModuleMutation( + 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: dbPresetModuleMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .dbPresetModule.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: dbPresetModuleKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: dbPresetModuleKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/modules/hooks/mutations/useDeleteIdentityProvidersModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useDeleteIdentityProvidersModuleMutation.ts index c7e3d1e33b..9cef005fa0 100644 --- a/sdk/constructive-react/src/modules/hooks/mutations/useDeleteIdentityProvidersModuleMutation.ts +++ b/sdk/constructive-react/src/modules/hooks/mutations/useDeleteIdentityProvidersModuleMutation.ts @@ -1,14 +1,13 @@ /** * Entity-aware config row for the identity_providers_module, which provisions a per-database identity_providers table holding OAuth2 / OIDC (and future SAML) provider definitions. - The scope column determines which config_secrets_module table the rotate proc targets - (app_secrets for app scope, org_secrets for org scope). When scope = platform, - the secrets table gets a database_id column and platform-level RLS via - AuthzRelatedEntityMembership through database.owner_id. + The scope column determines which internal_secrets_module table the rotate proc targets + (app_secrets for app scope, platform_secrets for platform scope). When scope = database, + the secrets table gets a database_id column. Scoping matrix: scope=app → per-database flat, in-app admin manages - scope=platform → per-database, platform admin manages (generate:constructive) - scope=org → per-org tenant, org admin manages + scope=platform → platform-wide, platform admin manages (generate:constructive) + scope=database → per-database infra, carries database_id * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -32,14 +31,13 @@ export type { /** * Entity-aware config row for the identity_providers_module, which provisions a per-database identity_providers table holding OAuth2 / OIDC (and future SAML) provider definitions. - The scope column determines which config_secrets_module table the rotate proc targets - (app_secrets for app scope, org_secrets for org scope). When scope = platform, - the secrets table gets a database_id column and platform-level RLS via - AuthzRelatedEntityMembership through database.owner_id. + The scope column determines which internal_secrets_module table the rotate proc targets + (app_secrets for app scope, platform_secrets for platform scope). When scope = database, + the secrets table gets a database_id column. Scoping matrix: scope=app → per-database flat, in-app admin manages - scope=platform → per-database, platform admin manages (generate:constructive) - scope=org → per-org tenant, org admin manages + scope=platform → platform-wide, platform admin manages (generate:constructive) + scope=database → per-database infra, carries database_id * * @example * ```tsx diff --git a/sdk/constructive-react/src/modules/hooks/mutations/useDeleteInfraConfigModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useDeleteInfraConfigModuleMutation.ts new file mode 100644 index 0000000000..84b10b0c1a --- /dev/null +++ b/sdk/constructive-react/src/modules/hooks/mutations/useDeleteInfraConfigModuleMutation.ts @@ -0,0 +1,104 @@ +/** + * Namespace-backed plaintext key-value config module. Requires namespace_module and emits namespace:sync_config job triggers for K8s ConfigMap synchronization. + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { infraConfigModuleKeys } from '../query-keys'; +import { infraConfigModuleMutationKeys } from '../mutation-keys'; +import type { + InfraConfigModuleSelect, + InfraConfigModuleWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + InfraConfigModuleSelect, + InfraConfigModuleWithRelations, +} from '../../orm/input-types'; +/** + * Namespace-backed plaintext key-value config module. Requires namespace_module and emits namespace:sync_config job triggers for K8s ConfigMap synchronization. + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteInfraConfigModuleMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteInfraConfigModuleMutation( + params: { + selection: { + fields: S & InfraConfigModuleSelect; + } & HookStrictSelect, InfraConfigModuleSelect>; + } & Omit< + UseMutationOptions< + { + deleteInfraConfigModule: { + infraConfigModule: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteInfraConfigModule: { + infraConfigModule: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteInfraConfigModuleMutation( + 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: infraConfigModuleMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .infraConfigModule.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: infraConfigModuleKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: infraConfigModuleKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/modules/hooks/mutations/useDeleteInfraSecretsModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useDeleteInfraSecretsModuleMutation.ts new file mode 100644 index 0000000000..29a131b45d --- /dev/null +++ b/sdk/constructive-react/src/modules/hooks/mutations/useDeleteInfraSecretsModuleMutation.ts @@ -0,0 +1,104 @@ +/** + * Namespace-backed PGP-encrypted key-value secrets module. Requires namespace_module and emits namespace:sync_secrets job triggers for K8s Secret synchronization. + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { infraSecretsModuleKeys } from '../query-keys'; +import { infraSecretsModuleMutationKeys } from '../mutation-keys'; +import type { + InfraSecretsModuleSelect, + InfraSecretsModuleWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + InfraSecretsModuleSelect, + InfraSecretsModuleWithRelations, +} from '../../orm/input-types'; +/** + * Namespace-backed PGP-encrypted key-value secrets module. Requires namespace_module and emits namespace:sync_secrets job triggers for K8s Secret synchronization. + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteInfraSecretsModuleMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteInfraSecretsModuleMutation( + params: { + selection: { + fields: S & InfraSecretsModuleSelect; + } & HookStrictSelect, InfraSecretsModuleSelect>; + } & Omit< + UseMutationOptions< + { + deleteInfraSecretsModule: { + infraSecretsModule: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteInfraSecretsModule: { + infraSecretsModule: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteInfraSecretsModuleMutation( + 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: infraSecretsModuleMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .infraSecretsModule.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: infraSecretsModuleKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: infraSecretsModuleKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/modules/hooks/mutations/useDeleteIntegrationProvidersModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useDeleteIntegrationProvidersModuleMutation.ts new file mode 100644 index 0000000000..eeb6077d89 --- /dev/null +++ b/sdk/constructive-react/src/modules/hooks/mutations/useDeleteIntegrationProvidersModuleMutation.ts @@ -0,0 +1,114 @@ +/** + * Config row for the integration_providers_module, which provisions a per-database + integration_providers table holding branded, reusable service definitions. + 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. + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { integrationProvidersModuleKeys } from '../query-keys'; +import { integrationProvidersModuleMutationKeys } from '../mutation-keys'; +import type { + IntegrationProvidersModuleSelect, + IntegrationProvidersModuleWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + IntegrationProvidersModuleSelect, + IntegrationProvidersModuleWithRelations, +} from '../../orm/input-types'; +/** + * Config row for the integration_providers_module, which provisions a per-database + integration_providers table holding branded, reusable service definitions. + 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. + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteIntegrationProvidersModuleMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteIntegrationProvidersModuleMutation< + S extends IntegrationProvidersModuleSelect, +>( + params: { + selection: { + fields: S & IntegrationProvidersModuleSelect; + } & HookStrictSelect, IntegrationProvidersModuleSelect>; + } & Omit< + UseMutationOptions< + { + deleteIntegrationProvidersModule: { + integrationProvidersModule: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteIntegrationProvidersModule: { + integrationProvidersModule: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteIntegrationProvidersModuleMutation( + 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: integrationProvidersModuleMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .integrationProvidersModule.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: integrationProvidersModuleKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: integrationProvidersModuleKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/modules/hooks/mutations/useDeleteInternalSecretsModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useDeleteInternalSecretsModuleMutation.ts new file mode 100644 index 0000000000..e462c09c77 --- /dev/null +++ b/sdk/constructive-react/src/modules/hooks/mutations/useDeleteInternalSecretsModuleMutation.ts @@ -0,0 +1,104 @@ +/** + * 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. + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { internalSecretsModuleKeys } from '../query-keys'; +import { internalSecretsModuleMutationKeys } from '../mutation-keys'; +import type { + InternalSecretsModuleSelect, + InternalSecretsModuleWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + InternalSecretsModuleSelect, + InternalSecretsModuleWithRelations, +} from '../../orm/input-types'; +/** + * 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. + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteInternalSecretsModuleMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteInternalSecretsModuleMutation( + params: { + selection: { + fields: S & InternalSecretsModuleSelect; + } & HookStrictSelect, InternalSecretsModuleSelect>; + } & Omit< + UseMutationOptions< + { + deleteInternalSecretsModule: { + internalSecretsModule: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteInternalSecretsModule: { + internalSecretsModule: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteInternalSecretsModuleMutation( + 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: internalSecretsModuleMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .internalSecretsModule.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: internalSecretsModuleKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: internalSecretsModuleKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/modules/hooks/mutations/useUpdateConfigSecretsModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useUpdateConfigSecretsModuleMutation.ts deleted file mode 100644 index 5d3a1d3916..0000000000 --- a/sdk/constructive-react/src/modules/hooks/mutations/useUpdateConfigSecretsModuleMutation.ts +++ /dev/null @@ -1,120 +0,0 @@ -/** - * Entity-aware PGP-encrypted key-value config/secrets module. Supports app-level (admin-only) - and org-scoped (per-org secrets with manage_secrets permission) via the scope column. - User-scoped bcrypt credentials are handled by user_credentials_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 { configSecretsModuleKeys } from '../query-keys'; -import { configSecretsModuleMutationKeys } from '../mutation-keys'; -import type { - ConfigSecretsModuleSelect, - ConfigSecretsModuleWithRelations, - ConfigSecretsModulePatch, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - ConfigSecretsModuleSelect, - ConfigSecretsModuleWithRelations, - ConfigSecretsModulePatch, -} from '../../orm/input-types'; -/** - * Entity-aware PGP-encrypted key-value config/secrets module. Supports app-level (admin-only) - and org-scoped (per-org secrets with manage_secrets permission) via the scope column. - User-scoped bcrypt credentials are handled by user_credentials_module. - * - * @example - * ```tsx - * const { mutate, isPending } = useUpdateConfigSecretsModuleMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ id: 'value-here', configSecretsModulePatch: { name: 'Updated' } }); - * ``` - */ -export function useUpdateConfigSecretsModuleMutation( - params: { - selection: { - fields: S & ConfigSecretsModuleSelect; - } & HookStrictSelect, ConfigSecretsModuleSelect>; - } & Omit< - UseMutationOptions< - { - updateConfigSecretsModule: { - configSecretsModule: InferSelectResult; - }; - }, - Error, - { - id: string; - configSecretsModulePatch: ConfigSecretsModulePatch; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - updateConfigSecretsModule: { - configSecretsModule: InferSelectResult; - }; - }, - Error, - { - id: string; - configSecretsModulePatch: ConfigSecretsModulePatch; - } ->; -export function useUpdateConfigSecretsModuleMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - { - id: string; - configSecretsModulePatch: ConfigSecretsModulePatch; - } - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: configSecretsModuleMutationKeys.all, - mutationFn: ({ - id, - configSecretsModulePatch, - }: { - id: string; - configSecretsModulePatch: ConfigSecretsModulePatch; - }) => - getClient() - .configSecretsModule.update({ - where: { - id, - }, - data: configSecretsModulePatch, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.invalidateQueries({ - queryKey: configSecretsModuleKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: configSecretsModuleKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/modules/hooks/mutations/useUpdateConfigSecretsOrgModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useUpdateConfigSecretsOrgModuleMutation.ts deleted file mode 100644 index 6d86de1feb..0000000000 --- a/sdk/constructive-react/src/modules/hooks/mutations/useUpdateConfigSecretsOrgModuleMutation.ts +++ /dev/null @@ -1,116 +0,0 @@ -/** - * Config row for the config_secrets_org_module, which provisions an organization-scoped encrypted key-value secrets store with manage_secrets permission and entity-membership RLS. - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { configSecretsOrgModuleKeys } from '../query-keys'; -import { configSecretsOrgModuleMutationKeys } from '../mutation-keys'; -import type { - ConfigSecretsOrgModuleSelect, - ConfigSecretsOrgModuleWithRelations, - ConfigSecretsOrgModulePatch, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - ConfigSecretsOrgModuleSelect, - ConfigSecretsOrgModuleWithRelations, - ConfigSecretsOrgModulePatch, -} from '../../orm/input-types'; -/** - * Config row for the config_secrets_org_module, which provisions an organization-scoped encrypted key-value secrets store with manage_secrets permission and entity-membership RLS. - * - * @example - * ```tsx - * const { mutate, isPending } = useUpdateConfigSecretsOrgModuleMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ id: 'value-here', configSecretsOrgModulePatch: { name: 'Updated' } }); - * ``` - */ -export function useUpdateConfigSecretsOrgModuleMutation( - params: { - selection: { - fields: S & ConfigSecretsOrgModuleSelect; - } & HookStrictSelect, ConfigSecretsOrgModuleSelect>; - } & Omit< - UseMutationOptions< - { - updateConfigSecretsOrgModule: { - configSecretsOrgModule: InferSelectResult; - }; - }, - Error, - { - id: string; - configSecretsOrgModulePatch: ConfigSecretsOrgModulePatch; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - updateConfigSecretsOrgModule: { - configSecretsOrgModule: InferSelectResult; - }; - }, - Error, - { - id: string; - configSecretsOrgModulePatch: ConfigSecretsOrgModulePatch; - } ->; -export function useUpdateConfigSecretsOrgModuleMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - { - id: string; - configSecretsOrgModulePatch: ConfigSecretsOrgModulePatch; - } - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: configSecretsOrgModuleMutationKeys.all, - mutationFn: ({ - id, - configSecretsOrgModulePatch, - }: { - id: string; - configSecretsOrgModulePatch: ConfigSecretsOrgModulePatch; - }) => - getClient() - .configSecretsOrgModule.update({ - where: { - id, - }, - data: configSecretsOrgModulePatch, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.invalidateQueries({ - queryKey: configSecretsOrgModuleKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: configSecretsOrgModuleKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/modules/hooks/mutations/useUpdateDbPoolConfigMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useUpdateDbPoolConfigMutation.ts new file mode 100644 index 0000000000..6b010b3b82 --- /dev/null +++ b/sdk/constructive-react/src/modules/hooks/mutations/useUpdateDbPoolConfigMutation.ts @@ -0,0 +1,110 @@ +/** + * Per-preset configuration for the warm database pool: sizing, TTL, and the platform service org that owns unclaimed warm databases. + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { dbPoolConfigKeys } from '../query-keys'; +import { dbPoolConfigMutationKeys } from '../mutation-keys'; +import type { + DbPoolConfigSelect, + DbPoolConfigWithRelations, + DbPoolConfigPatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + DbPoolConfigSelect, + DbPoolConfigWithRelations, + DbPoolConfigPatch, +} from '../../orm/input-types'; +/** + * Per-preset configuration for the warm database pool: sizing, TTL, and the platform service org that owns unclaimed warm databases. + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateDbPoolConfigMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', dbPoolConfigPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateDbPoolConfigMutation( + params: { + selection: { + fields: S & DbPoolConfigSelect; + } & HookStrictSelect, DbPoolConfigSelect>; + } & Omit< + UseMutationOptions< + { + updateDbPoolConfig: { + dbPoolConfig: InferSelectResult; + }; + }, + Error, + { + id: string; + dbPoolConfigPatch: DbPoolConfigPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateDbPoolConfig: { + dbPoolConfig: InferSelectResult; + }; + }, + Error, + { + id: string; + dbPoolConfigPatch: DbPoolConfigPatch; + } +>; +export function useUpdateDbPoolConfigMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + dbPoolConfigPatch: DbPoolConfigPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: dbPoolConfigMutationKeys.all, + mutationFn: ({ id, dbPoolConfigPatch }: { id: string; dbPoolConfigPatch: DbPoolConfigPatch }) => + getClient() + .dbPoolConfig.update({ + where: { + id, + }, + data: dbPoolConfigPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: dbPoolConfigKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: dbPoolConfigKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/modules/hooks/mutations/useUpdateDbPoolMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useUpdateDbPoolMutation.ts new file mode 100644 index 0000000000..353b7b8ec2 --- /dev/null +++ b/sdk/constructive-react/src/modules/hooks/mutations/useUpdateDbPoolMutation.ts @@ -0,0 +1,102 @@ +/** + * Warm database pool entries. Rows are inserted as warming (which enqueues a db_pool:warm_database job), become ready once provisioned, and are handed to users via metaschema_private.db_pool_claim (invoked by metaschema_public.request_database). + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { dbPoolKeys } from '../query-keys'; +import { dbPoolMutationKeys } from '../mutation-keys'; +import type { DbPoolSelect, DbPoolWithRelations, DbPoolPatch } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { DbPoolSelect, DbPoolWithRelations, DbPoolPatch } from '../../orm/input-types'; +/** + * Warm database pool entries. Rows are inserted as warming (which enqueues a db_pool:warm_database job), become ready once provisioned, and are handed to users via metaschema_private.db_pool_claim (invoked by metaschema_public.request_database). + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateDbPoolMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', dbPoolPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateDbPoolMutation( + params: { + selection: { + fields: S & DbPoolSelect; + } & HookStrictSelect, DbPoolSelect>; + } & Omit< + UseMutationOptions< + { + updateDbPool: { + dbPool: InferSelectResult; + }; + }, + Error, + { + id: string; + dbPoolPatch: DbPoolPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateDbPool: { + dbPool: InferSelectResult; + }; + }, + Error, + { + id: string; + dbPoolPatch: DbPoolPatch; + } +>; +export function useUpdateDbPoolMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + dbPoolPatch: DbPoolPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: dbPoolMutationKeys.all, + mutationFn: ({ id, dbPoolPatch }: { id: string; dbPoolPatch: DbPoolPatch }) => + getClient() + .dbPool.update({ + where: { + id, + }, + data: dbPoolPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: dbPoolKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: dbPoolKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/modules/hooks/mutations/useUpdateDbPresetModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useUpdateDbPresetModuleMutation.ts new file mode 100644 index 0000000000..9c3c246a47 --- /dev/null +++ b/sdk/constructive-react/src/modules/hooks/mutations/useUpdateDbPresetModuleMutation.ts @@ -0,0 +1,116 @@ +/** + * Update mutation hook for DbPresetModule + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { dbPresetModuleKeys } from '../query-keys'; +import { dbPresetModuleMutationKeys } from '../mutation-keys'; +import type { + DbPresetModuleSelect, + DbPresetModuleWithRelations, + DbPresetModulePatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + DbPresetModuleSelect, + DbPresetModuleWithRelations, + DbPresetModulePatch, +} from '../../orm/input-types'; +/** + * Mutation hook for updating a DbPresetModule + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateDbPresetModuleMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', dbPresetModulePatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateDbPresetModuleMutation( + params: { + selection: { + fields: S & DbPresetModuleSelect; + } & HookStrictSelect, DbPresetModuleSelect>; + } & Omit< + UseMutationOptions< + { + updateDbPresetModule: { + dbPresetModule: InferSelectResult; + }; + }, + Error, + { + id: string; + dbPresetModulePatch: DbPresetModulePatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateDbPresetModule: { + dbPresetModule: InferSelectResult; + }; + }, + Error, + { + id: string; + dbPresetModulePatch: DbPresetModulePatch; + } +>; +export function useUpdateDbPresetModuleMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + dbPresetModulePatch: DbPresetModulePatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: dbPresetModuleMutationKeys.all, + mutationFn: ({ + id, + dbPresetModulePatch, + }: { + id: string; + dbPresetModulePatch: DbPresetModulePatch; + }) => + getClient() + .dbPresetModule.update({ + where: { + id, + }, + data: dbPresetModulePatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: dbPresetModuleKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: dbPresetModuleKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/modules/hooks/mutations/useUpdateIdentityProvidersModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useUpdateIdentityProvidersModuleMutation.ts index 9ce310c974..c54e63db69 100644 --- a/sdk/constructive-react/src/modules/hooks/mutations/useUpdateIdentityProvidersModuleMutation.ts +++ b/sdk/constructive-react/src/modules/hooks/mutations/useUpdateIdentityProvidersModuleMutation.ts @@ -1,14 +1,13 @@ /** * Entity-aware config row for the identity_providers_module, which provisions a per-database identity_providers table holding OAuth2 / OIDC (and future SAML) provider definitions. - The scope column determines which config_secrets_module table the rotate proc targets - (app_secrets for app scope, org_secrets for org scope). When scope = platform, - the secrets table gets a database_id column and platform-level RLS via - AuthzRelatedEntityMembership through database.owner_id. + The scope column determines which internal_secrets_module table the rotate proc targets + (app_secrets for app scope, platform_secrets for platform scope). When scope = database, + the secrets table gets a database_id column. Scoping matrix: scope=app → per-database flat, in-app admin manages - scope=platform → per-database, platform admin manages (generate:constructive) - scope=org → per-org tenant, org admin manages + scope=platform → platform-wide, platform admin manages (generate:constructive) + scope=database → per-database infra, carries database_id * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -34,14 +33,13 @@ export type { /** * Entity-aware config row for the identity_providers_module, which provisions a per-database identity_providers table holding OAuth2 / OIDC (and future SAML) provider definitions. - The scope column determines which config_secrets_module table the rotate proc targets - (app_secrets for app scope, org_secrets for org scope). When scope = platform, - the secrets table gets a database_id column and platform-level RLS via - AuthzRelatedEntityMembership through database.owner_id. + The scope column determines which internal_secrets_module table the rotate proc targets + (app_secrets for app scope, platform_secrets for platform scope). When scope = database, + the secrets table gets a database_id column. Scoping matrix: scope=app → per-database flat, in-app admin manages - scope=platform → per-database, platform admin manages (generate:constructive) - scope=org → per-org tenant, org admin manages + scope=platform → platform-wide, platform admin manages (generate:constructive) + scope=database → per-database infra, carries database_id * * @example * ```tsx diff --git a/sdk/constructive-react/src/modules/hooks/mutations/useUpdateInfraConfigModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useUpdateInfraConfigModuleMutation.ts new file mode 100644 index 0000000000..833944cbbc --- /dev/null +++ b/sdk/constructive-react/src/modules/hooks/mutations/useUpdateInfraConfigModuleMutation.ts @@ -0,0 +1,116 @@ +/** + * Namespace-backed plaintext key-value config module. Requires namespace_module and emits namespace:sync_config job triggers for K8s ConfigMap synchronization. + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { infraConfigModuleKeys } from '../query-keys'; +import { infraConfigModuleMutationKeys } from '../mutation-keys'; +import type { + InfraConfigModuleSelect, + InfraConfigModuleWithRelations, + InfraConfigModulePatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + InfraConfigModuleSelect, + InfraConfigModuleWithRelations, + InfraConfigModulePatch, +} from '../../orm/input-types'; +/** + * Namespace-backed plaintext key-value config module. Requires namespace_module and emits namespace:sync_config job triggers for K8s ConfigMap synchronization. + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateInfraConfigModuleMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', infraConfigModulePatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateInfraConfigModuleMutation( + params: { + selection: { + fields: S & InfraConfigModuleSelect; + } & HookStrictSelect, InfraConfigModuleSelect>; + } & Omit< + UseMutationOptions< + { + updateInfraConfigModule: { + infraConfigModule: InferSelectResult; + }; + }, + Error, + { + id: string; + infraConfigModulePatch: InfraConfigModulePatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateInfraConfigModule: { + infraConfigModule: InferSelectResult; + }; + }, + Error, + { + id: string; + infraConfigModulePatch: InfraConfigModulePatch; + } +>; +export function useUpdateInfraConfigModuleMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + infraConfigModulePatch: InfraConfigModulePatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: infraConfigModuleMutationKeys.all, + mutationFn: ({ + id, + infraConfigModulePatch, + }: { + id: string; + infraConfigModulePatch: InfraConfigModulePatch; + }) => + getClient() + .infraConfigModule.update({ + where: { + id, + }, + data: infraConfigModulePatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: infraConfigModuleKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: infraConfigModuleKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/modules/hooks/mutations/useUpdateInfraSecretsModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useUpdateInfraSecretsModuleMutation.ts new file mode 100644 index 0000000000..2c627f8d9e --- /dev/null +++ b/sdk/constructive-react/src/modules/hooks/mutations/useUpdateInfraSecretsModuleMutation.ts @@ -0,0 +1,116 @@ +/** + * Namespace-backed PGP-encrypted key-value secrets module. Requires namespace_module and emits namespace:sync_secrets job triggers for K8s Secret synchronization. + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { infraSecretsModuleKeys } from '../query-keys'; +import { infraSecretsModuleMutationKeys } from '../mutation-keys'; +import type { + InfraSecretsModuleSelect, + InfraSecretsModuleWithRelations, + InfraSecretsModulePatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + InfraSecretsModuleSelect, + InfraSecretsModuleWithRelations, + InfraSecretsModulePatch, +} from '../../orm/input-types'; +/** + * Namespace-backed PGP-encrypted key-value secrets module. Requires namespace_module and emits namespace:sync_secrets job triggers for K8s Secret synchronization. + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateInfraSecretsModuleMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', infraSecretsModulePatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateInfraSecretsModuleMutation( + params: { + selection: { + fields: S & InfraSecretsModuleSelect; + } & HookStrictSelect, InfraSecretsModuleSelect>; + } & Omit< + UseMutationOptions< + { + updateInfraSecretsModule: { + infraSecretsModule: InferSelectResult; + }; + }, + Error, + { + id: string; + infraSecretsModulePatch: InfraSecretsModulePatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateInfraSecretsModule: { + infraSecretsModule: InferSelectResult; + }; + }, + Error, + { + id: string; + infraSecretsModulePatch: InfraSecretsModulePatch; + } +>; +export function useUpdateInfraSecretsModuleMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + infraSecretsModulePatch: InfraSecretsModulePatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: infraSecretsModuleMutationKeys.all, + mutationFn: ({ + id, + infraSecretsModulePatch, + }: { + id: string; + infraSecretsModulePatch: InfraSecretsModulePatch; + }) => + getClient() + .infraSecretsModule.update({ + where: { + id, + }, + data: infraSecretsModulePatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: infraSecretsModuleKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: infraSecretsModuleKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/modules/hooks/mutations/useUpdateIntegrationProvidersModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useUpdateIntegrationProvidersModuleMutation.ts new file mode 100644 index 0000000000..85da47663f --- /dev/null +++ b/sdk/constructive-react/src/modules/hooks/mutations/useUpdateIntegrationProvidersModuleMutation.ts @@ -0,0 +1,126 @@ +/** + * Config row for the integration_providers_module, which provisions a per-database + integration_providers table holding branded, reusable service definitions. + 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. + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { integrationProvidersModuleKeys } from '../query-keys'; +import { integrationProvidersModuleMutationKeys } from '../mutation-keys'; +import type { + IntegrationProvidersModuleSelect, + IntegrationProvidersModuleWithRelations, + IntegrationProvidersModulePatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + IntegrationProvidersModuleSelect, + IntegrationProvidersModuleWithRelations, + IntegrationProvidersModulePatch, +} from '../../orm/input-types'; +/** + * Config row for the integration_providers_module, which provisions a per-database + integration_providers table holding branded, reusable service definitions. + 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. + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateIntegrationProvidersModuleMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', integrationProvidersModulePatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateIntegrationProvidersModuleMutation< + S extends IntegrationProvidersModuleSelect, +>( + params: { + selection: { + fields: S & IntegrationProvidersModuleSelect; + } & HookStrictSelect, IntegrationProvidersModuleSelect>; + } & Omit< + UseMutationOptions< + { + updateIntegrationProvidersModule: { + integrationProvidersModule: InferSelectResult; + }; + }, + Error, + { + id: string; + integrationProvidersModulePatch: IntegrationProvidersModulePatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateIntegrationProvidersModule: { + integrationProvidersModule: InferSelectResult; + }; + }, + Error, + { + id: string; + integrationProvidersModulePatch: IntegrationProvidersModulePatch; + } +>; +export function useUpdateIntegrationProvidersModuleMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + integrationProvidersModulePatch: IntegrationProvidersModulePatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: integrationProvidersModuleMutationKeys.all, + mutationFn: ({ + id, + integrationProvidersModulePatch, + }: { + id: string; + integrationProvidersModulePatch: IntegrationProvidersModulePatch; + }) => + getClient() + .integrationProvidersModule.update({ + where: { + id, + }, + data: integrationProvidersModulePatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: integrationProvidersModuleKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: integrationProvidersModuleKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/modules/hooks/mutations/useUpdateInternalSecretsModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useUpdateInternalSecretsModuleMutation.ts new file mode 100644 index 0000000000..eac708d682 --- /dev/null +++ b/sdk/constructive-react/src/modules/hooks/mutations/useUpdateInternalSecretsModuleMutation.ts @@ -0,0 +1,116 @@ +/** + * 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. + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { internalSecretsModuleKeys } from '../query-keys'; +import { internalSecretsModuleMutationKeys } from '../mutation-keys'; +import type { + InternalSecretsModuleSelect, + InternalSecretsModuleWithRelations, + InternalSecretsModulePatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + InternalSecretsModuleSelect, + InternalSecretsModuleWithRelations, + InternalSecretsModulePatch, +} from '../../orm/input-types'; +/** + * 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. + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateInternalSecretsModuleMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', internalSecretsModulePatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateInternalSecretsModuleMutation( + params: { + selection: { + fields: S & InternalSecretsModuleSelect; + } & HookStrictSelect, InternalSecretsModuleSelect>; + } & Omit< + UseMutationOptions< + { + updateInternalSecretsModule: { + internalSecretsModule: InferSelectResult; + }; + }, + Error, + { + id: string; + internalSecretsModulePatch: InternalSecretsModulePatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateInternalSecretsModule: { + internalSecretsModule: InferSelectResult; + }; + }, + Error, + { + id: string; + internalSecretsModulePatch: InternalSecretsModulePatch; + } +>; +export function useUpdateInternalSecretsModuleMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + internalSecretsModulePatch: InternalSecretsModulePatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: internalSecretsModuleMutationKeys.all, + mutationFn: ({ + id, + internalSecretsModulePatch, + }: { + id: string; + internalSecretsModulePatch: InternalSecretsModulePatch; + }) => + getClient() + .internalSecretsModule.update({ + where: { + id, + }, + data: internalSecretsModulePatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: internalSecretsModuleKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: internalSecretsModuleKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/modules/hooks/queries/index.ts b/sdk/constructive-react/src/modules/hooks/queries/index.ts index 415dd7613b..8477b85906 100644 --- a/sdk/constructive-react/src/modules/hooks/queries/index.ts +++ b/sdk/constructive-react/src/modules/hooks/queries/index.ts @@ -7,22 +7,18 @@ export * from './useDefaultIdsModulesQuery'; export * from './useDefaultIdsModuleQuery'; export * from './useMembershipTypesModulesQuery'; export * from './useMembershipTypesModuleQuery'; -export * from './useUserStateModulesQuery'; -export * from './useUserStateModuleQuery'; export * from './useSessionSecretsModulesQuery'; export * from './useSessionSecretsModuleQuery'; -export * from './useConfigSecretsOrgModulesQuery'; -export * from './useConfigSecretsOrgModuleQuery'; export * from './useDevicesModulesQuery'; export * from './useDevicesModuleQuery'; export * from './useI18nModulesQuery'; export * from './useI18NModuleQuery'; -export * from './useUserCredentialsModulesQuery'; -export * from './useUserCredentialsModuleQuery'; export * from './useUserSettingsModulesQuery'; export * from './useUserSettingsModuleQuery'; -export * from './useConfigSecretsUserModulesQuery'; -export * from './useConfigSecretsUserModuleQuery'; +export * from './useUserStateModulesQuery'; +export * from './useUserStateModuleQuery'; +export * from './useUserCredentialsModulesQuery'; +export * from './useUserCredentialsModuleQuery'; export * from './useConnectedAccountsModulesQuery'; export * from './useConnectedAccountsModuleQuery'; export * from './useEmailsModulesQuery'; @@ -35,12 +31,12 @@ export * from './useUsersModulesQuery'; export * from './useUsersModuleQuery'; export * from './useWebauthnCredentialsModulesQuery'; export * from './useWebauthnCredentialsModuleQuery'; +export * from './useConfigSecretsUserModulesQuery'; +export * from './useConfigSecretsUserModuleQuery'; export * from './useCryptoAddressesModulesQuery'; export * from './useCryptoAddressesModuleQuery'; export * from './useDenormalizedTableFieldsQuery'; export * from './useDenormalizedTableFieldQuery'; -export * from './useIdentityProvidersModulesQuery'; -export * from './useIdentityProvidersModuleQuery'; export * from './useRlsModulesQuery'; export * from './useRlsModuleQuery'; export * from './useBlueprintsQuery'; @@ -55,74 +51,88 @@ export * from './useSessionsModulesQuery'; export * from './useSessionsModuleQuery'; export * from './useSecureTableProvisionsQuery'; export * from './useSecureTableProvisionQuery'; -export * from './useDatabaseProvisionModulesQuery'; -export * from './useDatabaseProvisionModuleQuery'; -export * from './useConfigSecretsModulesQuery'; -export * from './useConfigSecretsModuleQuery'; +export * from './useIdentityProvidersModulesQuery'; +export * from './useIdentityProvidersModuleQuery'; +export * from './useIntegrationProvidersModulesQuery'; +export * from './useIntegrationProvidersModuleQuery'; +export * from './useDbPoolConfigsQuery'; +export * from './useDbPoolConfigQuery'; +export * from './useRealtimeModulesQuery'; +export * from './useRealtimeModuleQuery'; +export * from './useInfraSecretsModulesQuery'; +export * from './useInfraSecretsModuleQuery'; +export * from './useInternalSecretsModulesQuery'; +export * from './useInternalSecretsModuleQuery'; +export * from './useDbPresetModulesQuery'; +export * from './useDbPresetModuleQuery'; export * from './useGraphModulesQuery'; export * from './useGraphModuleQuery'; -export * from './useMerkleStoreModulesQuery'; -export * from './useMerkleStoreModuleQuery'; export * from './useRateLimitMetersModulesQuery'; export * from './useRateLimitMetersModuleQuery'; -export * from './useRealtimeModulesQuery'; -export * from './useRealtimeModuleQuery'; +export * from './useInfraConfigModulesQuery'; +export * from './useInfraConfigModuleQuery'; export * from './useWebauthnAuthModulesQuery'; export * from './useWebauthnAuthModuleQuery'; -export * from './useFunctionInvocationModulesQuery'; -export * from './useFunctionInvocationModuleQuery'; +export * from './usePrincipalAuthModulesQuery'; +export * from './usePrincipalAuthModuleQuery'; +export * from './useDbPoolsQuery'; +export * from './useDbPoolQuery'; export * from './useFunctionModulesQuery'; export * from './useFunctionModuleQuery'; +export * from './useMerkleStoreModulesQuery'; +export * from './useMerkleStoreModuleQuery'; +export * from './useDatabaseProvisionModulesQuery'; +export * from './useDatabaseProvisionModuleQuery'; +export * from './useFunctionInvocationModulesQuery'; +export * from './useFunctionInvocationModuleQuery'; export * from './useInvitesModulesQuery'; export * from './useInvitesModuleQuery'; -export * from './usePrincipalAuthModulesQuery'; -export * from './usePrincipalAuthModuleQuery'; +export * from './useNamespaceModulesQuery'; +export * from './useNamespaceModuleQuery'; +export * from './usePlansModulesQuery'; +export * from './usePlansModuleQuery'; export * from './useComputeLogModulesQuery'; export * from './useComputeLogModuleQuery'; export * from './useInferenceLogModulesQuery'; export * from './useInferenceLogModuleQuery'; -export * from './useNamespaceModulesQuery'; -export * from './useNamespaceModuleQuery'; -export * from './useResourceModulesQuery'; -export * from './useResourceModuleQuery'; export * from './useStorageLogModulesQuery'; export * from './useStorageLogModuleQuery'; export * from './useTransferLogModulesQuery'; export * from './useTransferLogModuleQuery'; -export * from './useFunctionDeploymentModulesQuery'; -export * from './useFunctionDeploymentModuleQuery'; -export * from './usePlansModulesQuery'; -export * from './usePlansModuleQuery'; export * from './useBillingProviderModulesQuery'; export * from './useBillingProviderModuleQuery'; -export * from './useDbUsageModulesQuery'; -export * from './useDbUsageModuleQuery'; +export * from './useFunctionDeploymentModulesQuery'; +export * from './useFunctionDeploymentModuleQuery'; +export * from './usePermissionsModulesQuery'; +export * from './usePermissionsModuleQuery'; export * from './useGraphExecutionModulesQuery'; export * from './useGraphExecutionModuleQuery'; export * from './useHierarchyModulesQuery'; export * from './useHierarchyModuleQuery'; -export * from './usePermissionsModulesQuery'; -export * from './usePermissionsModuleQuery'; export * from './useNotificationsModulesQuery'; export * from './useNotificationsModuleQuery'; +export * from './useRelationProvisionsQuery'; +export * from './useRelationProvisionQuery'; export * from './useProfilesModulesQuery'; export * from './useProfilesModuleQuery'; export * from './useBillingModulesQuery'; export * from './useBillingModuleQuery'; -export * from './useRelationProvisionsQuery'; -export * from './useRelationProvisionQuery'; +export * from './useResourceModulesQuery'; +export * from './useResourceModuleQuery'; export * from './useUserAuthModulesQuery'; export * from './useUserAuthModuleQuery'; +export * from './useDbUsageModulesQuery'; +export * from './useDbUsageModuleQuery'; export * from './useAgentModulesQuery'; export * from './useAgentModuleQuery'; export * from './useLimitsModulesQuery'; export * from './useLimitsModuleQuery'; -export * from './useMembershipsModulesQuery'; -export * from './useMembershipsModuleQuery'; export * from './useEntityTypeProvisionsQuery'; export * from './useEntityTypeProvisionQuery'; export * from './useStorageModulesQuery'; export * from './useStorageModuleQuery'; +export * from './useMembershipsModulesQuery'; +export * from './useMembershipsModuleQuery'; export * from './useEventsModulesQuery'; export * from './useEventsModuleQuery'; export * from './useResolveBlueprintFieldQuery'; diff --git a/sdk/constructive-react/src/modules/hooks/queries/useConfigSecretsModuleQuery.ts b/sdk/constructive-react/src/modules/hooks/queries/useConfigSecretsModuleQuery.ts deleted file mode 100644 index 09c4dd9ee0..0000000000 --- a/sdk/constructive-react/src/modules/hooks/queries/useConfigSecretsModuleQuery.ts +++ /dev/null @@ -1,152 +0,0 @@ -/** - * Entity-aware PGP-encrypted key-value config/secrets module. Supports app-level (admin-only) - and org-scoped (per-org secrets with manage_secrets permission) via the scope column. - User-scoped bcrypt credentials are handled by user_credentials_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 { configSecretsModuleKeys } from '../query-keys'; -import type { - ConfigSecretsModuleSelect, - ConfigSecretsModuleWithRelations, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - ConfigSecretsModuleSelect, - ConfigSecretsModuleWithRelations, -} from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const configSecretsModuleQueryKey = configSecretsModuleKeys.detail; -/** - * Entity-aware PGP-encrypted key-value config/secrets module. Supports app-level (admin-only) - and org-scoped (per-org secrets with manage_secrets permission) via the scope column. - User-scoped bcrypt credentials are handled by user_credentials_module. - * - * @example - * ```tsx - * const { data, isLoading } = useConfigSecretsModuleQuery({ - * id: 'some-id', - * selection: { fields: { id: true, name: true } }, - * }); - * ``` - */ -export function useConfigSecretsModuleQuery< - S extends ConfigSecretsModuleSelect, - TData = { - configSecretsModule: InferSelectResult | null; - }, ->( - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, ConfigSecretsModuleSelect>; - } & Omit< - UseQueryOptions< - { - configSecretsModule: InferSelectResult | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useConfigSecretsModuleQuery( - params: { - id: string; - selection: SelectionConfig; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: configSecretsModuleKeys.detail(params.id), - queryFn: () => - getClient() - .configSecretsModule.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - ...queryOptions, - }); -} -/** - * Entity-aware PGP-encrypted key-value config/secrets module. Supports app-level (admin-only) - and org-scoped (per-org secrets with manage_secrets permission) via the scope column. - User-scoped bcrypt credentials are handled by user_credentials_module. - * - * @example - * ```ts - * const data = await fetchConfigSecretsModuleQuery({ - * id: 'some-id', - * selection: { fields: { id: true } }, - * }); - * ``` - */ -export async function fetchConfigSecretsModuleQuery(params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, ConfigSecretsModuleSelect>; -}): Promise<{ - configSecretsModule: InferSelectResult | null; -}>; -export async function fetchConfigSecretsModuleQuery(params: { - id: string; - selection: SelectionConfig; -}): Promise { - const args = buildSelectionArgs(params.selection); - return getClient() - .configSecretsModule.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(); -} -/** - * Entity-aware PGP-encrypted key-value config/secrets module. Supports app-level (admin-only) - and org-scoped (per-org secrets with manage_secrets permission) via the scope column. - User-scoped bcrypt credentials are handled by user_credentials_module. - * - * @example - * ```ts - * await prefetchConfigSecretsModuleQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); - * ``` - */ -export async function prefetchConfigSecretsModuleQuery( - queryClient: QueryClient, - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, ConfigSecretsModuleSelect>; - } -): Promise; -export async function prefetchConfigSecretsModuleQuery( - queryClient: QueryClient, - params: { - id: string; - selection: SelectionConfig; - } -): Promise { - const args = buildSelectionArgs(params.selection); - await queryClient.prefetchQuery({ - queryKey: configSecretsModuleKeys.detail(params.id), - queryFn: () => - getClient() - .configSecretsModule.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - }); -} diff --git a/sdk/constructive-react/src/modules/hooks/queries/useConfigSecretsModulesQuery.ts b/sdk/constructive-react/src/modules/hooks/queries/useConfigSecretsModulesQuery.ts deleted file mode 100644 index 2bdf158e46..0000000000 --- a/sdk/constructive-react/src/modules/hooks/queries/useConfigSecretsModulesQuery.ts +++ /dev/null @@ -1,182 +0,0 @@ -/** - * Entity-aware PGP-encrypted key-value config/secrets module. Supports app-level (admin-only) - and org-scoped (per-org secrets with manage_secrets permission) via the scope column. - User-scoped bcrypt credentials are handled by user_credentials_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 { configSecretsModuleKeys } from '../query-keys'; -import type { - ConfigSecretsModuleSelect, - ConfigSecretsModuleWithRelations, - ConfigSecretsModuleFilter, - ConfigSecretsModuleOrderBy, -} from '../../orm/input-types'; -import type { - FindManyArgs, - InferSelectResult, - ConnectionResult, - HookStrictSelect, -} from '../../orm/select-types'; -export type { - ConfigSecretsModuleSelect, - ConfigSecretsModuleWithRelations, - ConfigSecretsModuleFilter, - ConfigSecretsModuleOrderBy, -} from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const configSecretsModulesQueryKey = configSecretsModuleKeys.list; -/** - * Entity-aware PGP-encrypted key-value config/secrets module. Supports app-level (admin-only) - and org-scoped (per-org secrets with manage_secrets permission) via the scope column. - User-scoped bcrypt credentials are handled by user_credentials_module. - * - * @example - * ```tsx - * const { data, isLoading } = useConfigSecretsModulesQuery({ - * selection: { - * fields: { id: true, name: true }, - * where: { name: { equalTo: "example" } }, - * orderBy: ['CREATED_AT_DESC'], - * first: 10, - * }, - * }); - * ``` - */ -export function useConfigSecretsModulesQuery< - S extends ConfigSecretsModuleSelect, - TData = { - configSecretsModules: ConnectionResult>; - }, ->( - params: { - selection: { - fields: S; - } & Omit< - ListSelectionConfig, - 'fields' - > & - HookStrictSelect, ConfigSecretsModuleSelect>; - } & Omit< - UseQueryOptions< - { - configSecretsModules: ConnectionResult< - InferSelectResult - >; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useConfigSecretsModulesQuery( - params: { - selection: ListSelectionConfig< - ConfigSecretsModuleSelect, - ConfigSecretsModuleFilter, - ConfigSecretsModuleOrderBy - >; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildListSelectionArgs< - ConfigSecretsModuleSelect, - ConfigSecretsModuleFilter, - ConfigSecretsModuleOrderBy - >(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: configSecretsModuleKeys.list(args), - queryFn: () => getClient().configSecretsModule.findMany(args).unwrap(), - ...queryOptions, - }); -} -/** - * Entity-aware PGP-encrypted key-value config/secrets module. Supports app-level (admin-only) - and org-scoped (per-org secrets with manage_secrets permission) via the scope column. - User-scoped bcrypt credentials are handled by user_credentials_module. - * - * @example - * ```ts - * const data = await fetchConfigSecretsModulesQuery({ - * selection: { - * fields: { id: true }, - * first: 10, - * }, - * }); - * ``` - */ -export async function fetchConfigSecretsModulesQuery(params: { - selection: { - fields: S; - } & Omit< - ListSelectionConfig, - 'fields' - > & - HookStrictSelect, ConfigSecretsModuleSelect>; -}): Promise<{ - configSecretsModules: ConnectionResult>; -}>; -export async function fetchConfigSecretsModulesQuery(params: { - selection: ListSelectionConfig< - ConfigSecretsModuleSelect, - ConfigSecretsModuleFilter, - ConfigSecretsModuleOrderBy - >; -}) { - const args = buildListSelectionArgs< - ConfigSecretsModuleSelect, - ConfigSecretsModuleFilter, - ConfigSecretsModuleOrderBy - >(params.selection); - return getClient().configSecretsModule.findMany(args).unwrap(); -} -/** - * Entity-aware PGP-encrypted key-value config/secrets module. Supports app-level (admin-only) - and org-scoped (per-org secrets with manage_secrets permission) via the scope column. - User-scoped bcrypt credentials are handled by user_credentials_module. - * - * @example - * ```ts - * await prefetchConfigSecretsModulesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); - * ``` - */ -export async function prefetchConfigSecretsModulesQuery( - queryClient: QueryClient, - params: { - selection: { - fields: S; - } & Omit< - ListSelectionConfig, - 'fields' - > & - HookStrictSelect, ConfigSecretsModuleSelect>; - } -): Promise; -export async function prefetchConfigSecretsModulesQuery( - queryClient: QueryClient, - params: { - selection: ListSelectionConfig< - ConfigSecretsModuleSelect, - ConfigSecretsModuleFilter, - ConfigSecretsModuleOrderBy - >; - } -): Promise { - const args = buildListSelectionArgs< - ConfigSecretsModuleSelect, - ConfigSecretsModuleFilter, - ConfigSecretsModuleOrderBy - >(params.selection); - await queryClient.prefetchQuery({ - queryKey: configSecretsModuleKeys.list(args), - queryFn: () => getClient().configSecretsModule.findMany(args).unwrap(), - }); -} diff --git a/sdk/constructive-react/src/modules/hooks/queries/useConfigSecretsOrgModuleQuery.ts b/sdk/constructive-react/src/modules/hooks/queries/useConfigSecretsOrgModuleQuery.ts deleted file mode 100644 index cc21bfb5a5..0000000000 --- a/sdk/constructive-react/src/modules/hooks/queries/useConfigSecretsOrgModuleQuery.ts +++ /dev/null @@ -1,146 +0,0 @@ -/** - * Config row for the config_secrets_org_module, which provisions an organization-scoped encrypted key-value secrets store with manage_secrets permission and entity-membership RLS. - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { configSecretsOrgModuleKeys } from '../query-keys'; -import type { - ConfigSecretsOrgModuleSelect, - ConfigSecretsOrgModuleWithRelations, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - ConfigSecretsOrgModuleSelect, - ConfigSecretsOrgModuleWithRelations, -} from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const configSecretsOrgModuleQueryKey = configSecretsOrgModuleKeys.detail; -/** - * Config row for the config_secrets_org_module, which provisions an organization-scoped encrypted key-value secrets store with manage_secrets permission and entity-membership RLS. - * - * @example - * ```tsx - * const { data, isLoading } = useConfigSecretsOrgModuleQuery({ - * id: 'some-id', - * selection: { fields: { id: true, name: true } }, - * }); - * ``` - */ -export function useConfigSecretsOrgModuleQuery< - S extends ConfigSecretsOrgModuleSelect, - TData = { - configSecretsOrgModule: InferSelectResult | null; - }, ->( - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, ConfigSecretsOrgModuleSelect>; - } & Omit< - UseQueryOptions< - { - configSecretsOrgModule: InferSelectResult | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useConfigSecretsOrgModuleQuery( - params: { - id: string; - selection: SelectionConfig; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: configSecretsOrgModuleKeys.detail(params.id), - queryFn: () => - getClient() - .configSecretsOrgModule.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - ...queryOptions, - }); -} -/** - * Config row for the config_secrets_org_module, which provisions an organization-scoped encrypted key-value secrets store with manage_secrets permission and entity-membership RLS. - * - * @example - * ```ts - * const data = await fetchConfigSecretsOrgModuleQuery({ - * id: 'some-id', - * selection: { fields: { id: true } }, - * }); - * ``` - */ -export async function fetchConfigSecretsOrgModuleQuery< - S extends ConfigSecretsOrgModuleSelect, ->(params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, ConfigSecretsOrgModuleSelect>; -}): Promise<{ - configSecretsOrgModule: InferSelectResult | null; -}>; -export async function fetchConfigSecretsOrgModuleQuery(params: { - id: string; - selection: SelectionConfig; -}): Promise { - const args = buildSelectionArgs(params.selection); - return getClient() - .configSecretsOrgModule.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(); -} -/** - * Config row for the config_secrets_org_module, which provisions an organization-scoped encrypted key-value secrets store with manage_secrets permission and entity-membership RLS. - * - * @example - * ```ts - * await prefetchConfigSecretsOrgModuleQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); - * ``` - */ -export async function prefetchConfigSecretsOrgModuleQuery( - queryClient: QueryClient, - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, ConfigSecretsOrgModuleSelect>; - } -): Promise; -export async function prefetchConfigSecretsOrgModuleQuery( - queryClient: QueryClient, - params: { - id: string; - selection: SelectionConfig; - } -): Promise { - const args = buildSelectionArgs(params.selection); - await queryClient.prefetchQuery({ - queryKey: configSecretsOrgModuleKeys.detail(params.id), - queryFn: () => - getClient() - .configSecretsOrgModule.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - }); -} diff --git a/sdk/constructive-react/src/modules/hooks/queries/useConfigSecretsOrgModulesQuery.ts b/sdk/constructive-react/src/modules/hooks/queries/useConfigSecretsOrgModulesQuery.ts deleted file mode 100644 index bd472158fd..0000000000 --- a/sdk/constructive-react/src/modules/hooks/queries/useConfigSecretsOrgModulesQuery.ts +++ /dev/null @@ -1,180 +0,0 @@ -/** - * Config row for the config_secrets_org_module, which provisions an organization-scoped encrypted key-value secrets store with manage_secrets permission and entity-membership RLS. - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildListSelectionArgs } from '../selection'; -import type { ListSelectionConfig } from '../selection'; -import { configSecretsOrgModuleKeys } from '../query-keys'; -import type { - ConfigSecretsOrgModuleSelect, - ConfigSecretsOrgModuleWithRelations, - ConfigSecretsOrgModuleFilter, - ConfigSecretsOrgModuleOrderBy, -} from '../../orm/input-types'; -import type { - FindManyArgs, - InferSelectResult, - ConnectionResult, - HookStrictSelect, -} from '../../orm/select-types'; -export type { - ConfigSecretsOrgModuleSelect, - ConfigSecretsOrgModuleWithRelations, - ConfigSecretsOrgModuleFilter, - ConfigSecretsOrgModuleOrderBy, -} from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const configSecretsOrgModulesQueryKey = configSecretsOrgModuleKeys.list; -/** - * Config row for the config_secrets_org_module, which provisions an organization-scoped encrypted key-value secrets store with manage_secrets permission and entity-membership RLS. - * - * @example - * ```tsx - * const { data, isLoading } = useConfigSecretsOrgModulesQuery({ - * selection: { - * fields: { id: true, name: true }, - * where: { name: { equalTo: "example" } }, - * orderBy: ['CREATED_AT_DESC'], - * first: 10, - * }, - * }); - * ``` - */ -export function useConfigSecretsOrgModulesQuery< - S extends ConfigSecretsOrgModuleSelect, - TData = { - configSecretsOrgModules: ConnectionResult< - InferSelectResult - >; - }, ->( - params: { - selection: { - fields: S; - } & Omit< - ListSelectionConfig, - 'fields' - > & - HookStrictSelect, ConfigSecretsOrgModuleSelect>; - } & Omit< - UseQueryOptions< - { - configSecretsOrgModules: ConnectionResult< - InferSelectResult - >; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useConfigSecretsOrgModulesQuery( - params: { - selection: ListSelectionConfig< - ConfigSecretsOrgModuleSelect, - ConfigSecretsOrgModuleFilter, - ConfigSecretsOrgModuleOrderBy - >; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildListSelectionArgs< - ConfigSecretsOrgModuleSelect, - ConfigSecretsOrgModuleFilter, - ConfigSecretsOrgModuleOrderBy - >(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: configSecretsOrgModuleKeys.list(args), - queryFn: () => getClient().configSecretsOrgModule.findMany(args).unwrap(), - ...queryOptions, - }); -} -/** - * Config row for the config_secrets_org_module, which provisions an organization-scoped encrypted key-value secrets store with manage_secrets permission and entity-membership RLS. - * - * @example - * ```ts - * const data = await fetchConfigSecretsOrgModulesQuery({ - * selection: { - * fields: { id: true }, - * first: 10, - * }, - * }); - * ``` - */ -export async function fetchConfigSecretsOrgModulesQuery< - S extends ConfigSecretsOrgModuleSelect, ->(params: { - selection: { - fields: S; - } & Omit< - ListSelectionConfig, - 'fields' - > & - HookStrictSelect, ConfigSecretsOrgModuleSelect>; -}): Promise<{ - configSecretsOrgModules: ConnectionResult< - InferSelectResult - >; -}>; -export async function fetchConfigSecretsOrgModulesQuery(params: { - selection: ListSelectionConfig< - ConfigSecretsOrgModuleSelect, - ConfigSecretsOrgModuleFilter, - ConfigSecretsOrgModuleOrderBy - >; -}) { - const args = buildListSelectionArgs< - ConfigSecretsOrgModuleSelect, - ConfigSecretsOrgModuleFilter, - ConfigSecretsOrgModuleOrderBy - >(params.selection); - return getClient().configSecretsOrgModule.findMany(args).unwrap(); -} -/** - * Config row for the config_secrets_org_module, which provisions an organization-scoped encrypted key-value secrets store with manage_secrets permission and entity-membership RLS. - * - * @example - * ```ts - * await prefetchConfigSecretsOrgModulesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); - * ``` - */ -export async function prefetchConfigSecretsOrgModulesQuery( - queryClient: QueryClient, - params: { - selection: { - fields: S; - } & Omit< - ListSelectionConfig, - 'fields' - > & - HookStrictSelect, ConfigSecretsOrgModuleSelect>; - } -): Promise; -export async function prefetchConfigSecretsOrgModulesQuery( - queryClient: QueryClient, - params: { - selection: ListSelectionConfig< - ConfigSecretsOrgModuleSelect, - ConfigSecretsOrgModuleFilter, - ConfigSecretsOrgModuleOrderBy - >; - } -): Promise { - const args = buildListSelectionArgs< - ConfigSecretsOrgModuleSelect, - ConfigSecretsOrgModuleFilter, - ConfigSecretsOrgModuleOrderBy - >(params.selection); - await queryClient.prefetchQuery({ - queryKey: configSecretsOrgModuleKeys.list(args), - queryFn: () => getClient().configSecretsOrgModule.findMany(args).unwrap(), - }); -} diff --git a/sdk/constructive-react/src/modules/hooks/queries/useDbPoolConfigQuery.ts b/sdk/constructive-react/src/modules/hooks/queries/useDbPoolConfigQuery.ts new file mode 100644 index 0000000000..e99864fbe9 --- /dev/null +++ b/sdk/constructive-react/src/modules/hooks/queries/useDbPoolConfigQuery.ts @@ -0,0 +1,138 @@ +/** + * Per-preset configuration for the warm database pool: sizing, TTL, and the platform service org that owns unclaimed warm databases. + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useQuery } from '@tanstack/react-query'; +import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { dbPoolConfigKeys } from '../query-keys'; +import type { DbPoolConfigSelect, DbPoolConfigWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { DbPoolConfigSelect, DbPoolConfigWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const dbPoolConfigQueryKey = dbPoolConfigKeys.detail; +/** + * Per-preset configuration for the warm database pool: sizing, TTL, and the platform service org that owns unclaimed warm databases. + * + * @example + * ```tsx + * const { data, isLoading } = useDbPoolConfigQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useDbPoolConfigQuery< + S extends DbPoolConfigSelect, + TData = { + dbPoolConfig: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, DbPoolConfigSelect>; + } & Omit< + UseQueryOptions< + { + dbPoolConfig: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useDbPoolConfigQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: dbPoolConfigKeys.detail(params.id), + queryFn: () => + getClient() + .dbPoolConfig.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Per-preset configuration for the warm database pool: sizing, TTL, and the platform service org that owns unclaimed warm databases. + * + * @example + * ```ts + * const data = await fetchDbPoolConfigQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchDbPoolConfigQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, DbPoolConfigSelect>; +}): Promise<{ + dbPoolConfig: InferSelectResult | null; +}>; +export async function fetchDbPoolConfigQuery(params: { + id: string; + selection: SelectionConfig; +}): Promise { + const args = buildSelectionArgs(params.selection); + return getClient() + .dbPoolConfig.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Per-preset configuration for the warm database pool: sizing, TTL, and the platform service org that owns unclaimed warm databases. + * + * @example + * ```ts + * await prefetchDbPoolConfigQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchDbPoolConfigQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, DbPoolConfigSelect>; + } +): Promise; +export async function prefetchDbPoolConfigQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: dbPoolConfigKeys.detail(params.id), + queryFn: () => + getClient() + .dbPoolConfig.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/modules/hooks/queries/useDbPoolConfigsQuery.ts b/sdk/constructive-react/src/modules/hooks/queries/useDbPoolConfigsQuery.ts new file mode 100644 index 0000000000..1c41ee72cb --- /dev/null +++ b/sdk/constructive-react/src/modules/hooks/queries/useDbPoolConfigsQuery.ts @@ -0,0 +1,145 @@ +/** + * Per-preset configuration for the warm database pool: sizing, TTL, and the platform service org that owns unclaimed warm databases. + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useQuery } from '@tanstack/react-query'; +import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildListSelectionArgs } from '../selection'; +import type { ListSelectionConfig } from '../selection'; +import { dbPoolConfigKeys } from '../query-keys'; +import type { + DbPoolConfigSelect, + DbPoolConfigWithRelations, + DbPoolConfigFilter, + DbPoolConfigOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + DbPoolConfigSelect, + DbPoolConfigWithRelations, + DbPoolConfigFilter, + DbPoolConfigOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const dbPoolConfigsQueryKey = dbPoolConfigKeys.list; +/** + * Per-preset configuration for the warm database pool: sizing, TTL, and the platform service org that owns unclaimed warm databases. + * + * @example + * ```tsx + * const { data, isLoading } = useDbPoolConfigsQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useDbPoolConfigsQuery< + S extends DbPoolConfigSelect, + TData = { + dbPoolConfigs: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, DbPoolConfigSelect>; + } & Omit< + UseQueryOptions< + { + dbPoolConfigs: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useDbPoolConfigsQuery( + params: { + selection: ListSelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs( + params.selection + ); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: dbPoolConfigKeys.list(args), + queryFn: () => getClient().dbPoolConfig.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Per-preset configuration for the warm database pool: sizing, TTL, and the platform service org that owns unclaimed warm databases. + * + * @example + * ```ts + * const data = await fetchDbPoolConfigsQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchDbPoolConfigsQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, DbPoolConfigSelect>; +}): Promise<{ + dbPoolConfigs: ConnectionResult>; +}>; +export async function fetchDbPoolConfigsQuery(params: { + selection: ListSelectionConfig; +}) { + const args = buildListSelectionArgs( + params.selection + ); + return getClient().dbPoolConfig.findMany(args).unwrap(); +} +/** + * Per-preset configuration for the warm database pool: sizing, TTL, and the platform service org that owns unclaimed warm databases. + * + * @example + * ```ts + * await prefetchDbPoolConfigsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchDbPoolConfigsQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, DbPoolConfigSelect>; + } +): Promise; +export async function prefetchDbPoolConfigsQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig; + } +): Promise { + const args = buildListSelectionArgs( + params.selection + ); + await queryClient.prefetchQuery({ + queryKey: dbPoolConfigKeys.list(args), + queryFn: () => getClient().dbPoolConfig.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/modules/hooks/queries/useDbPoolQuery.ts b/sdk/constructive-react/src/modules/hooks/queries/useDbPoolQuery.ts new file mode 100644 index 0000000000..d3b1e563fb --- /dev/null +++ b/sdk/constructive-react/src/modules/hooks/queries/useDbPoolQuery.ts @@ -0,0 +1,138 @@ +/** + * Warm database pool entries. Rows are inserted as warming (which enqueues a db_pool:warm_database job), become ready once provisioned, and are handed to users via metaschema_private.db_pool_claim (invoked by metaschema_public.request_database). + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useQuery } from '@tanstack/react-query'; +import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { dbPoolKeys } from '../query-keys'; +import type { DbPoolSelect, DbPoolWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { DbPoolSelect, DbPoolWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const dbPoolQueryKey = dbPoolKeys.detail; +/** + * Warm database pool entries. Rows are inserted as warming (which enqueues a db_pool:warm_database job), become ready once provisioned, and are handed to users via metaschema_private.db_pool_claim (invoked by metaschema_public.request_database). + * + * @example + * ```tsx + * const { data, isLoading } = useDbPoolQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useDbPoolQuery< + S extends DbPoolSelect, + TData = { + dbPool: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, DbPoolSelect>; + } & Omit< + UseQueryOptions< + { + dbPool: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useDbPoolQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: dbPoolKeys.detail(params.id), + queryFn: () => + getClient() + .dbPool.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Warm database pool entries. Rows are inserted as warming (which enqueues a db_pool:warm_database job), become ready once provisioned, and are handed to users via metaschema_private.db_pool_claim (invoked by metaschema_public.request_database). + * + * @example + * ```ts + * const data = await fetchDbPoolQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchDbPoolQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, DbPoolSelect>; +}): Promise<{ + dbPool: InferSelectResult | null; +}>; +export async function fetchDbPoolQuery(params: { + id: string; + selection: SelectionConfig; +}): Promise { + const args = buildSelectionArgs(params.selection); + return getClient() + .dbPool.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Warm database pool entries. Rows are inserted as warming (which enqueues a db_pool:warm_database job), become ready once provisioned, and are handed to users via metaschema_private.db_pool_claim (invoked by metaschema_public.request_database). + * + * @example + * ```ts + * await prefetchDbPoolQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchDbPoolQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, DbPoolSelect>; + } +): Promise; +export async function prefetchDbPoolQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: dbPoolKeys.detail(params.id), + queryFn: () => + getClient() + .dbPool.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/modules/hooks/queries/useDbPoolsQuery.ts b/sdk/constructive-react/src/modules/hooks/queries/useDbPoolsQuery.ts new file mode 100644 index 0000000000..2a7cffcb05 --- /dev/null +++ b/sdk/constructive-react/src/modules/hooks/queries/useDbPoolsQuery.ts @@ -0,0 +1,139 @@ +/** + * Warm database pool entries. Rows are inserted as warming (which enqueues a db_pool:warm_database job), become ready once provisioned, and are handed to users via metaschema_private.db_pool_claim (invoked by metaschema_public.request_database). + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useQuery } from '@tanstack/react-query'; +import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildListSelectionArgs } from '../selection'; +import type { ListSelectionConfig } from '../selection'; +import { dbPoolKeys } from '../query-keys'; +import type { + DbPoolSelect, + DbPoolWithRelations, + DbPoolFilter, + DbPoolOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + DbPoolSelect, + DbPoolWithRelations, + DbPoolFilter, + DbPoolOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const dbPoolsQueryKey = dbPoolKeys.list; +/** + * Warm database pool entries. Rows are inserted as warming (which enqueues a db_pool:warm_database job), become ready once provisioned, and are handed to users via metaschema_private.db_pool_claim (invoked by metaschema_public.request_database). + * + * @example + * ```tsx + * const { data, isLoading } = useDbPoolsQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useDbPoolsQuery< + S extends DbPoolSelect, + TData = { + dbPools: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, DbPoolSelect>; + } & Omit< + UseQueryOptions< + { + dbPools: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useDbPoolsQuery( + params: { + selection: ListSelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: dbPoolKeys.list(args), + queryFn: () => getClient().dbPool.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Warm database pool entries. Rows are inserted as warming (which enqueues a db_pool:warm_database job), become ready once provisioned, and are handed to users via metaschema_private.db_pool_claim (invoked by metaschema_public.request_database). + * + * @example + * ```ts + * const data = await fetchDbPoolsQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchDbPoolsQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, DbPoolSelect>; +}): Promise<{ + dbPools: ConnectionResult>; +}>; +export async function fetchDbPoolsQuery(params: { + selection: ListSelectionConfig; +}) { + const args = buildListSelectionArgs(params.selection); + return getClient().dbPool.findMany(args).unwrap(); +} +/** + * Warm database pool entries. Rows are inserted as warming (which enqueues a db_pool:warm_database job), become ready once provisioned, and are handed to users via metaschema_private.db_pool_claim (invoked by metaschema_public.request_database). + * + * @example + * ```ts + * await prefetchDbPoolsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchDbPoolsQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, DbPoolSelect>; + } +): Promise; +export async function prefetchDbPoolsQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig; + } +): Promise { + const args = buildListSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: dbPoolKeys.list(args), + queryFn: () => getClient().dbPool.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/modules/hooks/queries/useDbPresetModuleQuery.ts b/sdk/constructive-react/src/modules/hooks/queries/useDbPresetModuleQuery.ts new file mode 100644 index 0000000000..59540ebc0a --- /dev/null +++ b/sdk/constructive-react/src/modules/hooks/queries/useDbPresetModuleQuery.ts @@ -0,0 +1,138 @@ +/** + * Single item query hook for DbPresetModule + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useQuery } from '@tanstack/react-query'; +import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { dbPresetModuleKeys } from '../query-keys'; +import type { DbPresetModuleSelect, DbPresetModuleWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { DbPresetModuleSelect, DbPresetModuleWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const dbPresetModuleQueryKey = dbPresetModuleKeys.detail; +/** + * Query hook for fetching a single DbPresetModule + * + * @example + * ```tsx + * const { data, isLoading } = useDbPresetModuleQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useDbPresetModuleQuery< + S extends DbPresetModuleSelect, + TData = { + dbPresetModule: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, DbPresetModuleSelect>; + } & Omit< + UseQueryOptions< + { + dbPresetModule: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useDbPresetModuleQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: dbPresetModuleKeys.detail(params.id), + queryFn: () => + getClient() + .dbPresetModule.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Fetch a single DbPresetModule without React hooks + * + * @example + * ```ts + * const data = await fetchDbPresetModuleQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchDbPresetModuleQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, DbPresetModuleSelect>; +}): Promise<{ + dbPresetModule: InferSelectResult | null; +}>; +export async function fetchDbPresetModuleQuery(params: { + id: string; + selection: SelectionConfig; +}): Promise { + const args = buildSelectionArgs(params.selection); + return getClient() + .dbPresetModule.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Prefetch a single DbPresetModule for SSR or cache warming + * + * @example + * ```ts + * await prefetchDbPresetModuleQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchDbPresetModuleQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, DbPresetModuleSelect>; + } +): Promise; +export async function prefetchDbPresetModuleQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: dbPresetModuleKeys.detail(params.id), + queryFn: () => + getClient() + .dbPresetModule.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/modules/hooks/queries/useDbPresetModulesQuery.ts b/sdk/constructive-react/src/modules/hooks/queries/useDbPresetModulesQuery.ts new file mode 100644 index 0000000000..c1d0f89c95 --- /dev/null +++ b/sdk/constructive-react/src/modules/hooks/queries/useDbPresetModulesQuery.ts @@ -0,0 +1,159 @@ +/** + * List query hook for DbPresetModule + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useQuery } from '@tanstack/react-query'; +import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildListSelectionArgs } from '../selection'; +import type { ListSelectionConfig } from '../selection'; +import { dbPresetModuleKeys } from '../query-keys'; +import type { + DbPresetModuleSelect, + DbPresetModuleWithRelations, + DbPresetModuleFilter, + DbPresetModuleOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + DbPresetModuleSelect, + DbPresetModuleWithRelations, + DbPresetModuleFilter, + DbPresetModuleOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const dbPresetModulesQueryKey = dbPresetModuleKeys.list; +/** + * Query hook for fetching DbPresetModule list + * + * @example + * ```tsx + * const { data, isLoading } = useDbPresetModulesQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useDbPresetModulesQuery< + S extends DbPresetModuleSelect, + TData = { + dbPresetModules: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, DbPresetModuleSelect>; + } & Omit< + UseQueryOptions< + { + dbPresetModules: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useDbPresetModulesQuery( + params: { + selection: ListSelectionConfig< + DbPresetModuleSelect, + DbPresetModuleFilter, + DbPresetModuleOrderBy + >; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + DbPresetModuleSelect, + DbPresetModuleFilter, + DbPresetModuleOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: dbPresetModuleKeys.list(args), + queryFn: () => getClient().dbPresetModule.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch DbPresetModule list without React hooks + * + * @example + * ```ts + * const data = await fetchDbPresetModulesQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchDbPresetModulesQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, DbPresetModuleSelect>; +}): Promise<{ + dbPresetModules: ConnectionResult>; +}>; +export async function fetchDbPresetModulesQuery(params: { + selection: ListSelectionConfig; +}) { + const args = buildListSelectionArgs< + DbPresetModuleSelect, + DbPresetModuleFilter, + DbPresetModuleOrderBy + >(params.selection); + return getClient().dbPresetModule.findMany(args).unwrap(); +} +/** + * Prefetch DbPresetModule list for SSR or cache warming + * + * @example + * ```ts + * await prefetchDbPresetModulesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchDbPresetModulesQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, DbPresetModuleSelect>; + } +): Promise; +export async function prefetchDbPresetModulesQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig< + DbPresetModuleSelect, + DbPresetModuleFilter, + DbPresetModuleOrderBy + >; + } +): Promise { + const args = buildListSelectionArgs< + DbPresetModuleSelect, + DbPresetModuleFilter, + DbPresetModuleOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: dbPresetModuleKeys.list(args), + queryFn: () => getClient().dbPresetModule.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/modules/hooks/queries/useIdentityProvidersModuleQuery.ts b/sdk/constructive-react/src/modules/hooks/queries/useIdentityProvidersModuleQuery.ts index 22673f0f81..637315cbe4 100644 --- a/sdk/constructive-react/src/modules/hooks/queries/useIdentityProvidersModuleQuery.ts +++ b/sdk/constructive-react/src/modules/hooks/queries/useIdentityProvidersModuleQuery.ts @@ -1,14 +1,13 @@ /** * Entity-aware config row for the identity_providers_module, which provisions a per-database identity_providers table holding OAuth2 / OIDC (and future SAML) provider definitions. - The scope column determines which config_secrets_module table the rotate proc targets - (app_secrets for app scope, org_secrets for org scope). When scope = platform, - the secrets table gets a database_id column and platform-level RLS via - AuthzRelatedEntityMembership through database.owner_id. + The scope column determines which internal_secrets_module table the rotate proc targets + (app_secrets for app scope, platform_secrets for platform scope). When scope = database, + the secrets table gets a database_id column. Scoping matrix: scope=app → per-database flat, in-app admin manages - scope=platform → per-database, platform admin manages (generate:constructive) - scope=org → per-org tenant, org admin manages + scope=platform → platform-wide, platform admin manages (generate:constructive) + scope=database → per-database infra, carries database_id * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -33,14 +32,13 @@ export const identityProvidersModuleQueryKey = identityProvidersModuleKeys.detai /** * Entity-aware config row for the identity_providers_module, which provisions a per-database identity_providers table holding OAuth2 / OIDC (and future SAML) provider definitions. - The scope column determines which config_secrets_module table the rotate proc targets - (app_secrets for app scope, org_secrets for org scope). When scope = platform, - the secrets table gets a database_id column and platform-level RLS via - AuthzRelatedEntityMembership through database.owner_id. + The scope column determines which internal_secrets_module table the rotate proc targets + (app_secrets for app scope, platform_secrets for platform scope). When scope = database, + the secrets table gets a database_id column. Scoping matrix: scope=app → per-database flat, in-app admin manages - scope=platform → per-database, platform admin manages (generate:constructive) - scope=org → per-org tenant, org admin manages + scope=platform → platform-wide, platform admin manages (generate:constructive) + scope=database → per-database infra, carries database_id * * @example * ```tsx @@ -96,14 +94,13 @@ export function useIdentityProvidersModuleQuery( /** * Entity-aware config row for the identity_providers_module, which provisions a per-database identity_providers table holding OAuth2 / OIDC (and future SAML) provider definitions. - The scope column determines which config_secrets_module table the rotate proc targets - (app_secrets for app scope, org_secrets for org scope). When scope = platform, - the secrets table gets a database_id column and platform-level RLS via - AuthzRelatedEntityMembership through database.owner_id. + The scope column determines which internal_secrets_module table the rotate proc targets + (app_secrets for app scope, platform_secrets for platform scope). When scope = database, + the secrets table gets a database_id column. Scoping matrix: scope=app → per-database flat, in-app admin manages - scope=platform → per-database, platform admin manages (generate:constructive) - scope=org → per-org tenant, org admin manages + scope=platform → platform-wide, platform admin manages (generate:constructive) + scope=database → per-database infra, carries database_id * * @example * ```ts @@ -138,14 +135,13 @@ export async function fetchIdentityProvidersModuleQuery(params: { /** * Entity-aware config row for the identity_providers_module, which provisions a per-database identity_providers table holding OAuth2 / OIDC (and future SAML) provider definitions. - The scope column determines which config_secrets_module table the rotate proc targets - (app_secrets for app scope, org_secrets for org scope). When scope = platform, - the secrets table gets a database_id column and platform-level RLS via - AuthzRelatedEntityMembership through database.owner_id. + The scope column determines which internal_secrets_module table the rotate proc targets + (app_secrets for app scope, platform_secrets for platform scope). When scope = database, + the secrets table gets a database_id column. Scoping matrix: scope=app → per-database flat, in-app admin manages - scope=platform → per-database, platform admin manages (generate:constructive) - scope=org → per-org tenant, org admin manages + scope=platform → platform-wide, platform admin manages (generate:constructive) + scope=database → per-database infra, carries database_id * * @example * ```ts diff --git a/sdk/constructive-react/src/modules/hooks/queries/useIdentityProvidersModulesQuery.ts b/sdk/constructive-react/src/modules/hooks/queries/useIdentityProvidersModulesQuery.ts index e979c29633..f29b82921f 100644 --- a/sdk/constructive-react/src/modules/hooks/queries/useIdentityProvidersModulesQuery.ts +++ b/sdk/constructive-react/src/modules/hooks/queries/useIdentityProvidersModulesQuery.ts @@ -1,14 +1,13 @@ /** * Entity-aware config row for the identity_providers_module, which provisions a per-database identity_providers table holding OAuth2 / OIDC (and future SAML) provider definitions. - The scope column determines which config_secrets_module table the rotate proc targets - (app_secrets for app scope, org_secrets for org scope). When scope = platform, - the secrets table gets a database_id column and platform-level RLS via - AuthzRelatedEntityMembership through database.owner_id. + The scope column determines which internal_secrets_module table the rotate proc targets + (app_secrets for app scope, platform_secrets for platform scope). When scope = database, + the secrets table gets a database_id column. Scoping matrix: scope=app → per-database flat, in-app admin manages - scope=platform → per-database, platform admin manages (generate:constructive) - scope=org → per-org tenant, org admin manages + scope=platform → platform-wide, platform admin manages (generate:constructive) + scope=database → per-database infra, carries database_id * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -42,14 +41,13 @@ export const identityProvidersModulesQueryKey = identityProvidersModuleKeys.list /** * Entity-aware config row for the identity_providers_module, which provisions a per-database identity_providers table holding OAuth2 / OIDC (and future SAML) provider definitions. - The scope column determines which config_secrets_module table the rotate proc targets - (app_secrets for app scope, org_secrets for org scope). When scope = platform, - the secrets table gets a database_id column and platform-level RLS via - AuthzRelatedEntityMembership through database.owner_id. + The scope column determines which internal_secrets_module table the rotate proc targets + (app_secrets for app scope, platform_secrets for platform scope). When scope = database, + the secrets table gets a database_id column. Scoping matrix: scope=app → per-database flat, in-app admin manages - scope=platform → per-database, platform admin manages (generate:constructive) - scope=org → per-org tenant, org admin manages + scope=platform → platform-wide, platform admin manages (generate:constructive) + scope=database → per-database infra, carries database_id * * @example * ```tsx @@ -117,14 +115,13 @@ export function useIdentityProvidersModulesQuery( /** * Entity-aware config row for the identity_providers_module, which provisions a per-database identity_providers table holding OAuth2 / OIDC (and future SAML) provider definitions. - The scope column determines which config_secrets_module table the rotate proc targets - (app_secrets for app scope, org_secrets for org scope). When scope = platform, - the secrets table gets a database_id column and platform-level RLS via - AuthzRelatedEntityMembership through database.owner_id. + The scope column determines which internal_secrets_module table the rotate proc targets + (app_secrets for app scope, platform_secrets for platform scope). When scope = database, + the secrets table gets a database_id column. Scoping matrix: scope=app → per-database flat, in-app admin manages - scope=platform → per-database, platform admin manages (generate:constructive) - scope=org → per-org tenant, org admin manages + scope=platform → platform-wide, platform admin manages (generate:constructive) + scope=database → per-database infra, carries database_id * * @example * ```ts @@ -168,14 +165,13 @@ export async function fetchIdentityProvidersModulesQuery(params: { /** * Entity-aware config row for the identity_providers_module, which provisions a per-database identity_providers table holding OAuth2 / OIDC (and future SAML) provider definitions. - The scope column determines which config_secrets_module table the rotate proc targets - (app_secrets for app scope, org_secrets for org scope). When scope = platform, - the secrets table gets a database_id column and platform-level RLS via - AuthzRelatedEntityMembership through database.owner_id. + The scope column determines which internal_secrets_module table the rotate proc targets + (app_secrets for app scope, platform_secrets for platform scope). When scope = database, + the secrets table gets a database_id column. Scoping matrix: scope=app → per-database flat, in-app admin manages - scope=platform → per-database, platform admin manages (generate:constructive) - scope=org → per-org tenant, org admin manages + scope=platform → platform-wide, platform admin manages (generate:constructive) + scope=database → per-database infra, carries database_id * * @example * ```ts diff --git a/sdk/constructive-react/src/modules/hooks/queries/useInfraConfigModuleQuery.ts b/sdk/constructive-react/src/modules/hooks/queries/useInfraConfigModuleQuery.ts new file mode 100644 index 0000000000..08363c23db --- /dev/null +++ b/sdk/constructive-react/src/modules/hooks/queries/useInfraConfigModuleQuery.ts @@ -0,0 +1,144 @@ +/** + * Namespace-backed plaintext key-value config module. Requires namespace_module and emits namespace:sync_config job triggers for K8s ConfigMap synchronization. + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useQuery } from '@tanstack/react-query'; +import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { infraConfigModuleKeys } from '../query-keys'; +import type { + InfraConfigModuleSelect, + InfraConfigModuleWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + InfraConfigModuleSelect, + InfraConfigModuleWithRelations, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const infraConfigModuleQueryKey = infraConfigModuleKeys.detail; +/** + * Namespace-backed plaintext key-value config module. Requires namespace_module and emits namespace:sync_config job triggers for K8s ConfigMap synchronization. + * + * @example + * ```tsx + * const { data, isLoading } = useInfraConfigModuleQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useInfraConfigModuleQuery< + S extends InfraConfigModuleSelect, + TData = { + infraConfigModule: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, InfraConfigModuleSelect>; + } & Omit< + UseQueryOptions< + { + infraConfigModule: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useInfraConfigModuleQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: infraConfigModuleKeys.detail(params.id), + queryFn: () => + getClient() + .infraConfigModule.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Namespace-backed plaintext key-value config module. Requires namespace_module and emits namespace:sync_config job triggers for K8s ConfigMap synchronization. + * + * @example + * ```ts + * const data = await fetchInfraConfigModuleQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchInfraConfigModuleQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, InfraConfigModuleSelect>; +}): Promise<{ + infraConfigModule: InferSelectResult | null; +}>; +export async function fetchInfraConfigModuleQuery(params: { + id: string; + selection: SelectionConfig; +}): Promise { + const args = buildSelectionArgs(params.selection); + return getClient() + .infraConfigModule.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Namespace-backed plaintext key-value config module. Requires namespace_module and emits namespace:sync_config job triggers for K8s ConfigMap synchronization. + * + * @example + * ```ts + * await prefetchInfraConfigModuleQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchInfraConfigModuleQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, InfraConfigModuleSelect>; + } +): Promise; +export async function prefetchInfraConfigModuleQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: infraConfigModuleKeys.detail(params.id), + queryFn: () => + getClient() + .infraConfigModule.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/modules/hooks/queries/useInfraConfigModulesQuery.ts b/sdk/constructive-react/src/modules/hooks/queries/useInfraConfigModulesQuery.ts new file mode 100644 index 0000000000..57d03ea10b --- /dev/null +++ b/sdk/constructive-react/src/modules/hooks/queries/useInfraConfigModulesQuery.ts @@ -0,0 +1,163 @@ +/** + * Namespace-backed plaintext key-value config module. Requires namespace_module and emits namespace:sync_config job triggers for K8s ConfigMap synchronization. + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useQuery } from '@tanstack/react-query'; +import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildListSelectionArgs } from '../selection'; +import type { ListSelectionConfig } from '../selection'; +import { infraConfigModuleKeys } from '../query-keys'; +import type { + InfraConfigModuleSelect, + InfraConfigModuleWithRelations, + InfraConfigModuleFilter, + InfraConfigModuleOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + InfraConfigModuleSelect, + InfraConfigModuleWithRelations, + InfraConfigModuleFilter, + InfraConfigModuleOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const infraConfigModulesQueryKey = infraConfigModuleKeys.list; +/** + * Namespace-backed plaintext key-value config module. Requires namespace_module and emits namespace:sync_config job triggers for K8s ConfigMap synchronization. + * + * @example + * ```tsx + * const { data, isLoading } = useInfraConfigModulesQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useInfraConfigModulesQuery< + S extends InfraConfigModuleSelect, + TData = { + infraConfigModules: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, InfraConfigModuleSelect>; + } & Omit< + UseQueryOptions< + { + infraConfigModules: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useInfraConfigModulesQuery( + params: { + selection: ListSelectionConfig< + InfraConfigModuleSelect, + InfraConfigModuleFilter, + InfraConfigModuleOrderBy + >; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + InfraConfigModuleSelect, + InfraConfigModuleFilter, + InfraConfigModuleOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: infraConfigModuleKeys.list(args), + queryFn: () => getClient().infraConfigModule.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Namespace-backed plaintext key-value config module. Requires namespace_module and emits namespace:sync_config job triggers for K8s ConfigMap synchronization. + * + * @example + * ```ts + * const data = await fetchInfraConfigModulesQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchInfraConfigModulesQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, InfraConfigModuleSelect>; +}): Promise<{ + infraConfigModules: ConnectionResult>; +}>; +export async function fetchInfraConfigModulesQuery(params: { + selection: ListSelectionConfig< + InfraConfigModuleSelect, + InfraConfigModuleFilter, + InfraConfigModuleOrderBy + >; +}) { + const args = buildListSelectionArgs< + InfraConfigModuleSelect, + InfraConfigModuleFilter, + InfraConfigModuleOrderBy + >(params.selection); + return getClient().infraConfigModule.findMany(args).unwrap(); +} +/** + * Namespace-backed plaintext key-value config module. Requires namespace_module and emits namespace:sync_config job triggers for K8s ConfigMap synchronization. + * + * @example + * ```ts + * await prefetchInfraConfigModulesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchInfraConfigModulesQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, InfraConfigModuleSelect>; + } +): Promise; +export async function prefetchInfraConfigModulesQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig< + InfraConfigModuleSelect, + InfraConfigModuleFilter, + InfraConfigModuleOrderBy + >; + } +): Promise { + const args = buildListSelectionArgs< + InfraConfigModuleSelect, + InfraConfigModuleFilter, + InfraConfigModuleOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: infraConfigModuleKeys.list(args), + queryFn: () => getClient().infraConfigModule.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/modules/hooks/queries/useInfraSecretsModuleQuery.ts b/sdk/constructive-react/src/modules/hooks/queries/useInfraSecretsModuleQuery.ts new file mode 100644 index 0000000000..e14b3e8e4c --- /dev/null +++ b/sdk/constructive-react/src/modules/hooks/queries/useInfraSecretsModuleQuery.ts @@ -0,0 +1,144 @@ +/** + * Namespace-backed PGP-encrypted key-value secrets module. Requires namespace_module and emits namespace:sync_secrets job triggers for K8s Secret synchronization. + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useQuery } from '@tanstack/react-query'; +import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { infraSecretsModuleKeys } from '../query-keys'; +import type { + InfraSecretsModuleSelect, + InfraSecretsModuleWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + InfraSecretsModuleSelect, + InfraSecretsModuleWithRelations, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const infraSecretsModuleQueryKey = infraSecretsModuleKeys.detail; +/** + * Namespace-backed PGP-encrypted key-value secrets module. Requires namespace_module and emits namespace:sync_secrets job triggers for K8s Secret synchronization. + * + * @example + * ```tsx + * const { data, isLoading } = useInfraSecretsModuleQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useInfraSecretsModuleQuery< + S extends InfraSecretsModuleSelect, + TData = { + infraSecretsModule: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, InfraSecretsModuleSelect>; + } & Omit< + UseQueryOptions< + { + infraSecretsModule: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useInfraSecretsModuleQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: infraSecretsModuleKeys.detail(params.id), + queryFn: () => + getClient() + .infraSecretsModule.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Namespace-backed PGP-encrypted key-value secrets module. Requires namespace_module and emits namespace:sync_secrets job triggers for K8s Secret synchronization. + * + * @example + * ```ts + * const data = await fetchInfraSecretsModuleQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchInfraSecretsModuleQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, InfraSecretsModuleSelect>; +}): Promise<{ + infraSecretsModule: InferSelectResult | null; +}>; +export async function fetchInfraSecretsModuleQuery(params: { + id: string; + selection: SelectionConfig; +}): Promise { + const args = buildSelectionArgs(params.selection); + return getClient() + .infraSecretsModule.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Namespace-backed PGP-encrypted key-value secrets module. Requires namespace_module and emits namespace:sync_secrets job triggers for K8s Secret synchronization. + * + * @example + * ```ts + * await prefetchInfraSecretsModuleQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchInfraSecretsModuleQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, InfraSecretsModuleSelect>; + } +): Promise; +export async function prefetchInfraSecretsModuleQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: infraSecretsModuleKeys.detail(params.id), + queryFn: () => + getClient() + .infraSecretsModule.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/modules/hooks/queries/useInfraSecretsModulesQuery.ts b/sdk/constructive-react/src/modules/hooks/queries/useInfraSecretsModulesQuery.ts new file mode 100644 index 0000000000..988892085a --- /dev/null +++ b/sdk/constructive-react/src/modules/hooks/queries/useInfraSecretsModulesQuery.ts @@ -0,0 +1,171 @@ +/** + * Namespace-backed PGP-encrypted key-value secrets module. Requires namespace_module and emits namespace:sync_secrets job triggers for K8s Secret synchronization. + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useQuery } from '@tanstack/react-query'; +import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildListSelectionArgs } from '../selection'; +import type { ListSelectionConfig } from '../selection'; +import { infraSecretsModuleKeys } from '../query-keys'; +import type { + InfraSecretsModuleSelect, + InfraSecretsModuleWithRelations, + InfraSecretsModuleFilter, + InfraSecretsModuleOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + InfraSecretsModuleSelect, + InfraSecretsModuleWithRelations, + InfraSecretsModuleFilter, + InfraSecretsModuleOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const infraSecretsModulesQueryKey = infraSecretsModuleKeys.list; +/** + * Namespace-backed PGP-encrypted key-value secrets module. Requires namespace_module and emits namespace:sync_secrets job triggers for K8s Secret synchronization. + * + * @example + * ```tsx + * const { data, isLoading } = useInfraSecretsModulesQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useInfraSecretsModulesQuery< + S extends InfraSecretsModuleSelect, + TData = { + infraSecretsModules: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, InfraSecretsModuleSelect>; + } & Omit< + UseQueryOptions< + { + infraSecretsModules: ConnectionResult< + InferSelectResult + >; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useInfraSecretsModulesQuery( + params: { + selection: ListSelectionConfig< + InfraSecretsModuleSelect, + InfraSecretsModuleFilter, + InfraSecretsModuleOrderBy + >; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + InfraSecretsModuleSelect, + InfraSecretsModuleFilter, + InfraSecretsModuleOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: infraSecretsModuleKeys.list(args), + queryFn: () => getClient().infraSecretsModule.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Namespace-backed PGP-encrypted key-value secrets module. Requires namespace_module and emits namespace:sync_secrets job triggers for K8s Secret synchronization. + * + * @example + * ```ts + * const data = await fetchInfraSecretsModulesQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchInfraSecretsModulesQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, InfraSecretsModuleSelect>; +}): Promise<{ + infraSecretsModules: ConnectionResult>; +}>; +export async function fetchInfraSecretsModulesQuery(params: { + selection: ListSelectionConfig< + InfraSecretsModuleSelect, + InfraSecretsModuleFilter, + InfraSecretsModuleOrderBy + >; +}) { + const args = buildListSelectionArgs< + InfraSecretsModuleSelect, + InfraSecretsModuleFilter, + InfraSecretsModuleOrderBy + >(params.selection); + return getClient().infraSecretsModule.findMany(args).unwrap(); +} +/** + * Namespace-backed PGP-encrypted key-value secrets module. Requires namespace_module and emits namespace:sync_secrets job triggers for K8s Secret synchronization. + * + * @example + * ```ts + * await prefetchInfraSecretsModulesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchInfraSecretsModulesQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, InfraSecretsModuleSelect>; + } +): Promise; +export async function prefetchInfraSecretsModulesQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig< + InfraSecretsModuleSelect, + InfraSecretsModuleFilter, + InfraSecretsModuleOrderBy + >; + } +): Promise { + const args = buildListSelectionArgs< + InfraSecretsModuleSelect, + InfraSecretsModuleFilter, + InfraSecretsModuleOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: infraSecretsModuleKeys.list(args), + queryFn: () => getClient().infraSecretsModule.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/modules/hooks/queries/useIntegrationProvidersModuleQuery.ts b/sdk/constructive-react/src/modules/hooks/queries/useIntegrationProvidersModuleQuery.ts new file mode 100644 index 0000000000..efd014db31 --- /dev/null +++ b/sdk/constructive-react/src/modules/hooks/queries/useIntegrationProvidersModuleQuery.ts @@ -0,0 +1,170 @@ +/** + * Config row for the integration_providers_module, which provisions a per-database + integration_providers table holding branded, reusable service definitions. + 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. + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useQuery } from '@tanstack/react-query'; +import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { integrationProvidersModuleKeys } from '../query-keys'; +import type { + IntegrationProvidersModuleSelect, + IntegrationProvidersModuleWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + IntegrationProvidersModuleSelect, + IntegrationProvidersModuleWithRelations, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const integrationProvidersModuleQueryKey = integrationProvidersModuleKeys.detail; +/** + * Config row for the integration_providers_module, which provisions a per-database + integration_providers table holding branded, reusable service definitions. + 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. + * + * @example + * ```tsx + * const { data, isLoading } = useIntegrationProvidersModuleQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useIntegrationProvidersModuleQuery< + S extends IntegrationProvidersModuleSelect, + TData = { + integrationProvidersModule: InferSelectResult< + IntegrationProvidersModuleWithRelations, + S + > | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, IntegrationProvidersModuleSelect>; + } & Omit< + UseQueryOptions< + { + integrationProvidersModule: InferSelectResult< + IntegrationProvidersModuleWithRelations, + S + > | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useIntegrationProvidersModuleQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: integrationProvidersModuleKeys.detail(params.id), + queryFn: () => + getClient() + .integrationProvidersModule.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Config row for the integration_providers_module, which provisions a per-database + integration_providers table holding branded, reusable service definitions. + 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. + * + * @example + * ```ts + * const data = await fetchIntegrationProvidersModuleQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchIntegrationProvidersModuleQuery< + S extends IntegrationProvidersModuleSelect, +>(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, IntegrationProvidersModuleSelect>; +}): Promise<{ + integrationProvidersModule: InferSelectResult | null; +}>; +export async function fetchIntegrationProvidersModuleQuery(params: { + id: string; + selection: SelectionConfig; +}): Promise { + const args = buildSelectionArgs(params.selection); + return getClient() + .integrationProvidersModule.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Config row for the integration_providers_module, which provisions a per-database + integration_providers table holding branded, reusable service definitions. + 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. + * + * @example + * ```ts + * await prefetchIntegrationProvidersModuleQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchIntegrationProvidersModuleQuery< + S extends IntegrationProvidersModuleSelect, +>( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, IntegrationProvidersModuleSelect>; + } +): Promise; +export async function prefetchIntegrationProvidersModuleQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: integrationProvidersModuleKeys.detail(params.id), + queryFn: () => + getClient() + .integrationProvidersModule.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/modules/hooks/queries/useIntegrationProvidersModulesQuery.ts b/sdk/constructive-react/src/modules/hooks/queries/useIntegrationProvidersModulesQuery.ts new file mode 100644 index 0000000000..a9fc1e1186 --- /dev/null +++ b/sdk/constructive-react/src/modules/hooks/queries/useIntegrationProvidersModulesQuery.ts @@ -0,0 +1,198 @@ +/** + * Config row for the integration_providers_module, which provisions a per-database + integration_providers table holding branded, reusable service definitions. + 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. + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useQuery } from '@tanstack/react-query'; +import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildListSelectionArgs } from '../selection'; +import type { ListSelectionConfig } from '../selection'; +import { integrationProvidersModuleKeys } from '../query-keys'; +import type { + IntegrationProvidersModuleSelect, + IntegrationProvidersModuleWithRelations, + IntegrationProvidersModuleFilter, + IntegrationProvidersModuleOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + IntegrationProvidersModuleSelect, + IntegrationProvidersModuleWithRelations, + IntegrationProvidersModuleFilter, + IntegrationProvidersModuleOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const integrationProvidersModulesQueryKey = integrationProvidersModuleKeys.list; +/** + * Config row for the integration_providers_module, which provisions a per-database + integration_providers table holding branded, reusable service definitions. + 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. + * + * @example + * ```tsx + * const { data, isLoading } = useIntegrationProvidersModulesQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useIntegrationProvidersModulesQuery< + S extends IntegrationProvidersModuleSelect, + TData = { + integrationProvidersModules: ConnectionResult< + InferSelectResult + >; + }, +>( + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, IntegrationProvidersModuleSelect>; + } & Omit< + UseQueryOptions< + { + integrationProvidersModules: ConnectionResult< + InferSelectResult + >; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useIntegrationProvidersModulesQuery( + params: { + selection: ListSelectionConfig< + IntegrationProvidersModuleSelect, + IntegrationProvidersModuleFilter, + IntegrationProvidersModuleOrderBy + >; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + IntegrationProvidersModuleSelect, + IntegrationProvidersModuleFilter, + IntegrationProvidersModuleOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: integrationProvidersModuleKeys.list(args), + queryFn: () => getClient().integrationProvidersModule.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Config row for the integration_providers_module, which provisions a per-database + integration_providers table holding branded, reusable service definitions. + 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. + * + * @example + * ```ts + * const data = await fetchIntegrationProvidersModulesQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchIntegrationProvidersModulesQuery< + S extends IntegrationProvidersModuleSelect, +>(params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, IntegrationProvidersModuleSelect>; +}): Promise<{ + integrationProvidersModules: ConnectionResult< + InferSelectResult + >; +}>; +export async function fetchIntegrationProvidersModulesQuery(params: { + selection: ListSelectionConfig< + IntegrationProvidersModuleSelect, + IntegrationProvidersModuleFilter, + IntegrationProvidersModuleOrderBy + >; +}) { + const args = buildListSelectionArgs< + IntegrationProvidersModuleSelect, + IntegrationProvidersModuleFilter, + IntegrationProvidersModuleOrderBy + >(params.selection); + return getClient().integrationProvidersModule.findMany(args).unwrap(); +} +/** + * Config row for the integration_providers_module, which provisions a per-database + integration_providers table holding branded, reusable service definitions. + 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. + * + * @example + * ```ts + * await prefetchIntegrationProvidersModulesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchIntegrationProvidersModulesQuery< + S extends IntegrationProvidersModuleSelect, +>( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, IntegrationProvidersModuleSelect>; + } +): Promise; +export async function prefetchIntegrationProvidersModulesQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig< + IntegrationProvidersModuleSelect, + IntegrationProvidersModuleFilter, + IntegrationProvidersModuleOrderBy + >; + } +): Promise { + const args = buildListSelectionArgs< + IntegrationProvidersModuleSelect, + IntegrationProvidersModuleFilter, + IntegrationProvidersModuleOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: integrationProvidersModuleKeys.list(args), + queryFn: () => getClient().integrationProvidersModule.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/modules/hooks/queries/useInternalSecretsModuleQuery.ts b/sdk/constructive-react/src/modules/hooks/queries/useInternalSecretsModuleQuery.ts new file mode 100644 index 0000000000..2d0500a5fd --- /dev/null +++ b/sdk/constructive-react/src/modules/hooks/queries/useInternalSecretsModuleQuery.ts @@ -0,0 +1,146 @@ +/** + * 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. + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useQuery } from '@tanstack/react-query'; +import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { internalSecretsModuleKeys } from '../query-keys'; +import type { + InternalSecretsModuleSelect, + InternalSecretsModuleWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + InternalSecretsModuleSelect, + InternalSecretsModuleWithRelations, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const internalSecretsModuleQueryKey = internalSecretsModuleKeys.detail; +/** + * 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. + * + * @example + * ```tsx + * const { data, isLoading } = useInternalSecretsModuleQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useInternalSecretsModuleQuery< + S extends InternalSecretsModuleSelect, + TData = { + internalSecretsModule: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, InternalSecretsModuleSelect>; + } & Omit< + UseQueryOptions< + { + internalSecretsModule: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useInternalSecretsModuleQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: internalSecretsModuleKeys.detail(params.id), + queryFn: () => + getClient() + .internalSecretsModule.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * 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. + * + * @example + * ```ts + * const data = await fetchInternalSecretsModuleQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchInternalSecretsModuleQuery< + S extends InternalSecretsModuleSelect, +>(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, InternalSecretsModuleSelect>; +}): Promise<{ + internalSecretsModule: InferSelectResult | null; +}>; +export async function fetchInternalSecretsModuleQuery(params: { + id: string; + selection: SelectionConfig; +}): Promise { + const args = buildSelectionArgs(params.selection); + return getClient() + .internalSecretsModule.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * 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. + * + * @example + * ```ts + * await prefetchInternalSecretsModuleQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchInternalSecretsModuleQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, InternalSecretsModuleSelect>; + } +): Promise; +export async function prefetchInternalSecretsModuleQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: internalSecretsModuleKeys.detail(params.id), + queryFn: () => + getClient() + .internalSecretsModule.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/modules/hooks/queries/useInternalSecretsModulesQuery.ts b/sdk/constructive-react/src/modules/hooks/queries/useInternalSecretsModulesQuery.ts new file mode 100644 index 0000000000..d1d6ec46c3 --- /dev/null +++ b/sdk/constructive-react/src/modules/hooks/queries/useInternalSecretsModulesQuery.ts @@ -0,0 +1,180 @@ +/** + * 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. + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useQuery } from '@tanstack/react-query'; +import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildListSelectionArgs } from '../selection'; +import type { ListSelectionConfig } from '../selection'; +import { internalSecretsModuleKeys } from '../query-keys'; +import type { + InternalSecretsModuleSelect, + InternalSecretsModuleWithRelations, + InternalSecretsModuleFilter, + InternalSecretsModuleOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + InternalSecretsModuleSelect, + InternalSecretsModuleWithRelations, + InternalSecretsModuleFilter, + InternalSecretsModuleOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const internalSecretsModulesQueryKey = internalSecretsModuleKeys.list; +/** + * 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. + * + * @example + * ```tsx + * const { data, isLoading } = useInternalSecretsModulesQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useInternalSecretsModulesQuery< + S extends InternalSecretsModuleSelect, + TData = { + internalSecretsModules: ConnectionResult< + InferSelectResult + >; + }, +>( + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, InternalSecretsModuleSelect>; + } & Omit< + UseQueryOptions< + { + internalSecretsModules: ConnectionResult< + InferSelectResult + >; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useInternalSecretsModulesQuery( + params: { + selection: ListSelectionConfig< + InternalSecretsModuleSelect, + InternalSecretsModuleFilter, + InternalSecretsModuleOrderBy + >; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + InternalSecretsModuleSelect, + InternalSecretsModuleFilter, + InternalSecretsModuleOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: internalSecretsModuleKeys.list(args), + queryFn: () => getClient().internalSecretsModule.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * 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. + * + * @example + * ```ts + * const data = await fetchInternalSecretsModulesQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchInternalSecretsModulesQuery< + S extends InternalSecretsModuleSelect, +>(params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, InternalSecretsModuleSelect>; +}): Promise<{ + internalSecretsModules: ConnectionResult< + InferSelectResult + >; +}>; +export async function fetchInternalSecretsModulesQuery(params: { + selection: ListSelectionConfig< + InternalSecretsModuleSelect, + InternalSecretsModuleFilter, + InternalSecretsModuleOrderBy + >; +}) { + const args = buildListSelectionArgs< + InternalSecretsModuleSelect, + InternalSecretsModuleFilter, + InternalSecretsModuleOrderBy + >(params.selection); + return getClient().internalSecretsModule.findMany(args).unwrap(); +} +/** + * 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. + * + * @example + * ```ts + * await prefetchInternalSecretsModulesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchInternalSecretsModulesQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, InternalSecretsModuleSelect>; + } +): Promise; +export async function prefetchInternalSecretsModulesQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig< + InternalSecretsModuleSelect, + InternalSecretsModuleFilter, + InternalSecretsModuleOrderBy + >; + } +): Promise { + const args = buildListSelectionArgs< + InternalSecretsModuleSelect, + InternalSecretsModuleFilter, + InternalSecretsModuleOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: internalSecretsModuleKeys.list(args), + queryFn: () => getClient().internalSecretsModule.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/modules/hooks/query-keys.ts b/sdk/constructive-react/src/modules/hooks/query-keys.ts index 56e8c63a8a..675c780a5a 100644 --- a/sdk/constructive-react/src/modules/hooks/query-keys.ts +++ b/sdk/constructive-react/src/modules/hooks/query-keys.ts @@ -37,15 +37,6 @@ export const membershipTypesModuleKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...membershipTypesModuleKeys.details(), id] as const, } as const; -export const userStateModuleKeys = { - /** All userStateModule queries */ all: ['userstatemodule'] as const, - /** List query keys */ lists: () => [...userStateModuleKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...userStateModuleKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...userStateModuleKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...userStateModuleKeys.details(), id] as const, -} as const; export const sessionSecretsModuleKeys = { /** All sessionSecretsModule queries */ all: ['sessionsecretsmodule'] as const, /** List query keys */ lists: () => [...sessionSecretsModuleKeys.all, 'list'] as const, @@ -55,15 +46,6 @@ export const sessionSecretsModuleKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...sessionSecretsModuleKeys.details(), id] as const, } as const; -export const configSecretsOrgModuleKeys = { - /** All configSecretsOrgModule queries */ all: ['configsecretsorgmodule'] as const, - /** List query keys */ lists: () => [...configSecretsOrgModuleKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...configSecretsOrgModuleKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...configSecretsOrgModuleKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...configSecretsOrgModuleKeys.details(), id] as const, -} as const; export const devicesModuleKeys = { /** All devicesModule queries */ all: ['devicesmodule'] as const, /** List query keys */ lists: () => [...devicesModuleKeys.all, 'list'] as const, @@ -82,15 +64,6 @@ export const i18NModuleKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...i18NModuleKeys.details(), id] as const, } as const; -export const userCredentialsModuleKeys = { - /** All userCredentialsModule queries */ all: ['usercredentialsmodule'] as const, - /** List query keys */ lists: () => [...userCredentialsModuleKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...userCredentialsModuleKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...userCredentialsModuleKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...userCredentialsModuleKeys.details(), id] as const, -} as const; export const userSettingsModuleKeys = { /** All userSettingsModule queries */ all: ['usersettingsmodule'] as const, /** List query keys */ lists: () => [...userSettingsModuleKeys.all, 'list'] as const, @@ -100,14 +73,23 @@ export const userSettingsModuleKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...userSettingsModuleKeys.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, +export const userStateModuleKeys = { + /** All userStateModule queries */ all: ['userstatemodule'] as const, + /** List query keys */ lists: () => [...userStateModuleKeys.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, + [...userStateModuleKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...userStateModuleKeys.all, 'detail'] as const, /** Detail query key for specific item */ detail: (id: string | number) => - [...configSecretsUserModuleKeys.details(), id] as const, + [...userStateModuleKeys.details(), id] as const, +} as const; +export const userCredentialsModuleKeys = { + /** All userCredentialsModule queries */ all: ['usercredentialsmodule'] as const, + /** List query keys */ lists: () => [...userCredentialsModuleKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...userCredentialsModuleKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...userCredentialsModuleKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...userCredentialsModuleKeys.details(), id] as const, } as const; export const connectedAccountsModuleKeys = { /** All connectedAccountsModule queries */ all: ['connectedaccountsmodule'] as const, @@ -163,6 +145,15 @@ export const webauthnCredentialsModuleKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...webauthnCredentialsModuleKeys.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 cryptoAddressesModuleKeys = { /** All cryptoAddressesModule queries */ all: ['cryptoaddressesmodule'] as const, /** List query keys */ lists: () => [...cryptoAddressesModuleKeys.all, 'list'] as const, @@ -181,15 +172,6 @@ export const denormalizedTableFieldKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...denormalizedTableFieldKeys.details(), id] as const, } as const; -export const identityProvidersModuleKeys = { - /** All identityProvidersModule queries */ all: ['identityprovidersmodule'] as const, - /** List query keys */ lists: () => [...identityProvidersModuleKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...identityProvidersModuleKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...identityProvidersModuleKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...identityProvidersModuleKeys.details(), id] as const, -} as const; export const rlsModuleKeys = { /** All rlsModule queries */ all: ['rlsmodule'] as const, /** List query keys */ lists: () => [...rlsModuleKeys.all, 'list'] as const, @@ -253,23 +235,69 @@ export const secureTableProvisionKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...secureTableProvisionKeys.details(), id] as const, } as const; -export const databaseProvisionModuleKeys = { - /** All databaseProvisionModule queries */ all: ['databaseprovisionmodule'] as const, - /** List query keys */ lists: () => [...databaseProvisionModuleKeys.all, 'list'] as const, +export const identityProvidersModuleKeys = { + /** All identityProvidersModule queries */ all: ['identityprovidersmodule'] as const, + /** List query keys */ lists: () => [...identityProvidersModuleKeys.all, 'list'] as const, /** List query key with variables */ list: (variables?: object) => - [...databaseProvisionModuleKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...databaseProvisionModuleKeys.all, 'detail'] as const, + [...identityProvidersModuleKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...identityProvidersModuleKeys.all, 'detail'] as const, /** Detail query key for specific item */ detail: (id: string | number) => - [...databaseProvisionModuleKeys.details(), id] as const, + [...identityProvidersModuleKeys.details(), id] as const, +} as const; +export const integrationProvidersModuleKeys = { + /** All integrationProvidersModule queries */ all: ['integrationprovidersmodule'] as const, + /** List query keys */ lists: () => [...integrationProvidersModuleKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...integrationProvidersModuleKeys.lists(), variables] as const, + /** Detail query keys */ details: () => + [...integrationProvidersModuleKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...integrationProvidersModuleKeys.details(), id] as const, +} as const; +export const dbPoolConfigKeys = { + /** All dbPoolConfig queries */ all: ['dbpoolconfig'] as const, + /** List query keys */ lists: () => [...dbPoolConfigKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...dbPoolConfigKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...dbPoolConfigKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...dbPoolConfigKeys.details(), id] as const, +} as const; +export const realtimeModuleKeys = { + /** All realtimeModule queries */ all: ['realtimemodule'] as const, + /** List query keys */ lists: () => [...realtimeModuleKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...realtimeModuleKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...realtimeModuleKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...realtimeModuleKeys.details(), id] as const, +} as const; +export const infraSecretsModuleKeys = { + /** All infraSecretsModule queries */ all: ['infrasecretsmodule'] as const, + /** List query keys */ lists: () => [...infraSecretsModuleKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...infraSecretsModuleKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...infraSecretsModuleKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...infraSecretsModuleKeys.details(), id] as const, } as const; -export const configSecretsModuleKeys = { - /** All configSecretsModule queries */ all: ['configsecretsmodule'] as const, - /** List query keys */ lists: () => [...configSecretsModuleKeys.all, 'list'] as const, +export const internalSecretsModuleKeys = { + /** All internalSecretsModule queries */ all: ['internalsecretsmodule'] as const, + /** List query keys */ lists: () => [...internalSecretsModuleKeys.all, 'list'] as const, /** List query key with variables */ list: (variables?: object) => - [...configSecretsModuleKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...configSecretsModuleKeys.all, 'detail'] as const, + [...internalSecretsModuleKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...internalSecretsModuleKeys.all, 'detail'] as const, /** Detail query key for specific item */ detail: (id: string | number) => - [...configSecretsModuleKeys.details(), id] as const, + [...internalSecretsModuleKeys.details(), id] as const, +} as const; +export const dbPresetModuleKeys = { + /** All dbPresetModule queries */ all: ['dbpresetmodule'] as const, + /** List query keys */ lists: () => [...dbPresetModuleKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...dbPresetModuleKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...dbPresetModuleKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...dbPresetModuleKeys.details(), id] as const, } as const; export const graphModuleKeys = { /** All graphModule queries */ all: ['graphmodule'] as const, @@ -280,15 +308,6 @@ export const graphModuleKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...graphModuleKeys.details(), id] as const, } as const; -export const merkleStoreModuleKeys = { - /** All merkleStoreModule queries */ all: ['merklestoremodule'] as const, - /** List query keys */ lists: () => [...merkleStoreModuleKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...merkleStoreModuleKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...merkleStoreModuleKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...merkleStoreModuleKeys.details(), id] as const, -} as const; export const rateLimitMetersModuleKeys = { /** All rateLimitMetersModule queries */ all: ['ratelimitmetersmodule'] as const, /** List query keys */ lists: () => [...rateLimitMetersModuleKeys.all, 'list'] as const, @@ -298,14 +317,14 @@ export const rateLimitMetersModuleKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...rateLimitMetersModuleKeys.details(), id] as const, } as const; -export const realtimeModuleKeys = { - /** All realtimeModule queries */ all: ['realtimemodule'] as const, - /** List query keys */ lists: () => [...realtimeModuleKeys.all, 'list'] as const, +export const infraConfigModuleKeys = { + /** All infraConfigModule queries */ all: ['infraconfigmodule'] as const, + /** List query keys */ lists: () => [...infraConfigModuleKeys.all, 'list'] as const, /** List query key with variables */ list: (variables?: object) => - [...realtimeModuleKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...realtimeModuleKeys.all, 'detail'] as const, + [...infraConfigModuleKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...infraConfigModuleKeys.all, 'detail'] as const, /** Detail query key for specific item */ detail: (id: string | number) => - [...realtimeModuleKeys.details(), id] as const, + [...infraConfigModuleKeys.details(), id] as const, } as const; export const webauthnAuthModuleKeys = { /** All webauthnAuthModule queries */ all: ['webauthnauthmodule'] as const, @@ -316,14 +335,23 @@ export const webauthnAuthModuleKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...webauthnAuthModuleKeys.details(), id] as const, } as const; -export const functionInvocationModuleKeys = { - /** All functionInvocationModule queries */ all: ['functioninvocationmodule'] as const, - /** List query keys */ lists: () => [...functionInvocationModuleKeys.all, 'list'] as const, +export const principalAuthModuleKeys = { + /** All principalAuthModule queries */ all: ['principalauthmodule'] as const, + /** List query keys */ lists: () => [...principalAuthModuleKeys.all, 'list'] as const, /** List query key with variables */ list: (variables?: object) => - [...functionInvocationModuleKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...functionInvocationModuleKeys.all, 'detail'] as const, + [...principalAuthModuleKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...principalAuthModuleKeys.all, 'detail'] as const, /** Detail query key for specific item */ detail: (id: string | number) => - [...functionInvocationModuleKeys.details(), id] as const, + [...principalAuthModuleKeys.details(), id] as const, +} as const; +export const dbPoolKeys = { + /** All dbPool queries */ all: ['dbpool'] as const, + /** List query keys */ lists: () => [...dbPoolKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...dbPoolKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...dbPoolKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...dbPoolKeys.details(), id] as const, } as const; export const functionModuleKeys = { /** All functionModule queries */ all: ['functionmodule'] as const, @@ -334,6 +362,33 @@ export const functionModuleKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...functionModuleKeys.details(), id] as const, } as const; +export const merkleStoreModuleKeys = { + /** All merkleStoreModule queries */ all: ['merklestoremodule'] as const, + /** List query keys */ lists: () => [...merkleStoreModuleKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...merkleStoreModuleKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...merkleStoreModuleKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...merkleStoreModuleKeys.details(), id] as const, +} as const; +export const databaseProvisionModuleKeys = { + /** All databaseProvisionModule queries */ all: ['databaseprovisionmodule'] as const, + /** List query keys */ lists: () => [...databaseProvisionModuleKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...databaseProvisionModuleKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...databaseProvisionModuleKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...databaseProvisionModuleKeys.details(), id] as const, +} as const; +export const functionInvocationModuleKeys = { + /** All functionInvocationModule queries */ all: ['functioninvocationmodule'] as const, + /** List query keys */ lists: () => [...functionInvocationModuleKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...functionInvocationModuleKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...functionInvocationModuleKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...functionInvocationModuleKeys.details(), id] as const, +} as const; export const invitesModuleKeys = { /** All invitesModule queries */ all: ['invitesmodule'] as const, /** List query keys */ lists: () => [...invitesModuleKeys.all, 'list'] as const, @@ -343,14 +398,23 @@ export const invitesModuleKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...invitesModuleKeys.details(), id] as const, } as const; -export const principalAuthModuleKeys = { - /** All principalAuthModule queries */ all: ['principalauthmodule'] as const, - /** List query keys */ lists: () => [...principalAuthModuleKeys.all, 'list'] as const, +export const namespaceModuleKeys = { + /** All namespaceModule queries */ all: ['namespacemodule'] as const, + /** List query keys */ lists: () => [...namespaceModuleKeys.all, 'list'] as const, /** List query key with variables */ list: (variables?: object) => - [...principalAuthModuleKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...principalAuthModuleKeys.all, 'detail'] as const, + [...namespaceModuleKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...namespaceModuleKeys.all, 'detail'] as const, /** Detail query key for specific item */ detail: (id: string | number) => - [...principalAuthModuleKeys.details(), id] as const, + [...namespaceModuleKeys.details(), id] as const, +} as const; +export const plansModuleKeys = { + /** All plansModule queries */ all: ['plansmodule'] as const, + /** List query keys */ lists: () => [...plansModuleKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...plansModuleKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...plansModuleKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...plansModuleKeys.details(), id] as const, } as const; export const computeLogModuleKeys = { /** All computeLogModule queries */ all: ['computelogmodule'] as const, @@ -370,24 +434,6 @@ export const inferenceLogModuleKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...inferenceLogModuleKeys.details(), id] as const, } as const; -export const namespaceModuleKeys = { - /** All namespaceModule queries */ all: ['namespacemodule'] as const, - /** List query keys */ lists: () => [...namespaceModuleKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...namespaceModuleKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...namespaceModuleKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...namespaceModuleKeys.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, - /** List query key with variables */ list: (variables?: object) => - [...resourceModuleKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...resourceModuleKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...resourceModuleKeys.details(), id] as const, -} as const; export const storageLogModuleKeys = { /** All storageLogModule queries */ all: ['storagelogmodule'] as const, /** List query keys */ lists: () => [...storageLogModuleKeys.all, 'list'] as const, @@ -406,24 +452,6 @@ export const transferLogModuleKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...transferLogModuleKeys.details(), id] as const, } as const; -export const functionDeploymentModuleKeys = { - /** All functionDeploymentModule queries */ all: ['functiondeploymentmodule'] as const, - /** List query keys */ lists: () => [...functionDeploymentModuleKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...functionDeploymentModuleKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...functionDeploymentModuleKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...functionDeploymentModuleKeys.details(), id] as const, -} as const; -export const plansModuleKeys = { - /** All plansModule queries */ all: ['plansmodule'] as const, - /** List query keys */ lists: () => [...plansModuleKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...plansModuleKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...plansModuleKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...plansModuleKeys.details(), id] as const, -} as const; export const billingProviderModuleKeys = { /** All billingProviderModule queries */ all: ['billingprovidermodule'] as const, /** List query keys */ lists: () => [...billingProviderModuleKeys.all, 'list'] as const, @@ -433,14 +461,23 @@ export const billingProviderModuleKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...billingProviderModuleKeys.details(), id] as const, } as const; -export const dbUsageModuleKeys = { - /** All dbUsageModule queries */ all: ['dbusagemodule'] as const, - /** List query keys */ lists: () => [...dbUsageModuleKeys.all, 'list'] as const, +export const functionDeploymentModuleKeys = { + /** All functionDeploymentModule queries */ all: ['functiondeploymentmodule'] as const, + /** List query keys */ lists: () => [...functionDeploymentModuleKeys.all, 'list'] as const, /** List query key with variables */ list: (variables?: object) => - [...dbUsageModuleKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...dbUsageModuleKeys.all, 'detail'] as const, + [...functionDeploymentModuleKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...functionDeploymentModuleKeys.all, 'detail'] as const, /** Detail query key for specific item */ detail: (id: string | number) => - [...dbUsageModuleKeys.details(), id] as const, + [...functionDeploymentModuleKeys.details(), id] as const, +} as const; +export const permissionsModuleKeys = { + /** All permissionsModule queries */ all: ['permissionsmodule'] as const, + /** List query keys */ lists: () => [...permissionsModuleKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...permissionsModuleKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...permissionsModuleKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...permissionsModuleKeys.details(), id] as const, } as const; export const graphExecutionModuleKeys = { /** All graphExecutionModule queries */ all: ['graphexecutionmodule'] as const, @@ -460,15 +497,6 @@ export const hierarchyModuleKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...hierarchyModuleKeys.details(), id] as const, } as const; -export const permissionsModuleKeys = { - /** All permissionsModule queries */ all: ['permissionsmodule'] as const, - /** List query keys */ lists: () => [...permissionsModuleKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...permissionsModuleKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...permissionsModuleKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...permissionsModuleKeys.details(), id] as const, -} as const; export const notificationsModuleKeys = { /** All notificationsModule queries */ all: ['notificationsmodule'] as const, /** List query keys */ lists: () => [...notificationsModuleKeys.all, 'list'] as const, @@ -478,6 +506,15 @@ export const notificationsModuleKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...notificationsModuleKeys.details(), id] as const, } as const; +export const relationProvisionKeys = { + /** All relationProvision queries */ all: ['relationprovision'] as const, + /** List query keys */ lists: () => [...relationProvisionKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...relationProvisionKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...relationProvisionKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...relationProvisionKeys.details(), id] as const, +} as const; export const profilesModuleKeys = { /** All profilesModule queries */ all: ['profilesmodule'] as const, /** List query keys */ lists: () => [...profilesModuleKeys.all, 'list'] as const, @@ -496,14 +533,14 @@ export const billingModuleKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...billingModuleKeys.details(), id] as const, } as const; -export const relationProvisionKeys = { - /** All relationProvision queries */ all: ['relationprovision'] as const, - /** List query keys */ lists: () => [...relationProvisionKeys.all, 'list'] as const, +export const resourceModuleKeys = { + /** All resourceModule queries */ all: ['resourcemodule'] as const, + /** List query keys */ lists: () => [...resourceModuleKeys.all, 'list'] as const, /** List query key with variables */ list: (variables?: object) => - [...relationProvisionKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...relationProvisionKeys.all, 'detail'] as const, + [...resourceModuleKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...resourceModuleKeys.all, 'detail'] as const, /** Detail query key for specific item */ detail: (id: string | number) => - [...relationProvisionKeys.details(), id] as const, + [...resourceModuleKeys.details(), id] as const, } as const; export const userAuthModuleKeys = { /** All userAuthModule queries */ all: ['userauthmodule'] as const, @@ -514,6 +551,15 @@ export const userAuthModuleKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...userAuthModuleKeys.details(), id] as const, } as const; +export const dbUsageModuleKeys = { + /** All dbUsageModule queries */ all: ['dbusagemodule'] as const, + /** List query keys */ lists: () => [...dbUsageModuleKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...dbUsageModuleKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...dbUsageModuleKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...dbUsageModuleKeys.details(), id] as const, +} as const; export const agentModuleKeys = { /** All agentModule queries */ all: ['agentmodule'] as const, /** List query keys */ lists: () => [...agentModuleKeys.all, 'list'] as const, @@ -532,15 +578,6 @@ export const limitsModuleKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...limitsModuleKeys.details(), id] as const, } as const; -export const membershipsModuleKeys = { - /** All membershipsModule queries */ all: ['membershipsmodule'] as const, - /** List query keys */ lists: () => [...membershipsModuleKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...membershipsModuleKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...membershipsModuleKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...membershipsModuleKeys.details(), id] as const, -} as const; export const entityTypeProvisionKeys = { /** All entityTypeProvision queries */ all: ['entitytypeprovision'] as const, /** List query keys */ lists: () => [...entityTypeProvisionKeys.all, 'list'] as const, @@ -559,6 +596,15 @@ export const storageModuleKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...storageModuleKeys.details(), id] as const, } as const; +export const membershipsModuleKeys = { + /** All membershipsModule queries */ all: ['membershipsmodule'] as const, + /** List query keys */ lists: () => [...membershipsModuleKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...membershipsModuleKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...membershipsModuleKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...membershipsModuleKeys.details(), id] as const, +} as const; export const eventsModuleKeys = { /** All eventsModule queries */ all: ['eventsmodule'] as const, /** List query keys */ lists: () => [...eventsModuleKeys.all, 'list'] as const, @@ -604,23 +650,21 @@ export const customQueryKeys = { export const queryKeys = { defaultIdsModule: defaultIdsModuleKeys, membershipTypesModule: membershipTypesModuleKeys, - userStateModule: userStateModuleKeys, sessionSecretsModule: sessionSecretsModuleKeys, - configSecretsOrgModule: configSecretsOrgModuleKeys, devicesModule: devicesModuleKeys, i18NModule: i18NModuleKeys, - userCredentialsModule: userCredentialsModuleKeys, userSettingsModule: userSettingsModuleKeys, - configSecretsUserModule: configSecretsUserModuleKeys, + userStateModule: userStateModuleKeys, + userCredentialsModule: userCredentialsModuleKeys, connectedAccountsModule: connectedAccountsModuleKeys, emailsModule: emailsModuleKeys, phoneNumbersModule: phoneNumbersModuleKeys, rateLimitsModule: rateLimitsModuleKeys, usersModule: usersModuleKeys, webauthnCredentialsModule: webauthnCredentialsModuleKeys, + configSecretsUserModule: configSecretsUserModuleKeys, cryptoAddressesModule: cryptoAddressesModuleKeys, denormalizedTableField: denormalizedTableFieldKeys, - identityProvidersModule: identityProvidersModuleKeys, rlsModule: rlsModuleKeys, blueprint: blueprintKeys, blueprintTemplate: blueprintTemplateKeys, @@ -628,40 +672,47 @@ export const queryKeys = { cryptoAuthModule: cryptoAuthModuleKeys, sessionsModule: sessionsModuleKeys, secureTableProvision: secureTableProvisionKeys, - databaseProvisionModule: databaseProvisionModuleKeys, - configSecretsModule: configSecretsModuleKeys, + identityProvidersModule: identityProvidersModuleKeys, + integrationProvidersModule: integrationProvidersModuleKeys, + dbPoolConfig: dbPoolConfigKeys, + realtimeModule: realtimeModuleKeys, + infraSecretsModule: infraSecretsModuleKeys, + internalSecretsModule: internalSecretsModuleKeys, + dbPresetModule: dbPresetModuleKeys, graphModule: graphModuleKeys, - merkleStoreModule: merkleStoreModuleKeys, rateLimitMetersModule: rateLimitMetersModuleKeys, - realtimeModule: realtimeModuleKeys, + infraConfigModule: infraConfigModuleKeys, webauthnAuthModule: webauthnAuthModuleKeys, - functionInvocationModule: functionInvocationModuleKeys, + principalAuthModule: principalAuthModuleKeys, + dbPool: dbPoolKeys, functionModule: functionModuleKeys, + merkleStoreModule: merkleStoreModuleKeys, + databaseProvisionModule: databaseProvisionModuleKeys, + functionInvocationModule: functionInvocationModuleKeys, invitesModule: invitesModuleKeys, - principalAuthModule: principalAuthModuleKeys, + namespaceModule: namespaceModuleKeys, + plansModule: plansModuleKeys, computeLogModule: computeLogModuleKeys, inferenceLogModule: inferenceLogModuleKeys, - namespaceModule: namespaceModuleKeys, - resourceModule: resourceModuleKeys, storageLogModule: storageLogModuleKeys, transferLogModule: transferLogModuleKeys, - functionDeploymentModule: functionDeploymentModuleKeys, - plansModule: plansModuleKeys, billingProviderModule: billingProviderModuleKeys, - dbUsageModule: dbUsageModuleKeys, + functionDeploymentModule: functionDeploymentModuleKeys, + permissionsModule: permissionsModuleKeys, graphExecutionModule: graphExecutionModuleKeys, hierarchyModule: hierarchyModuleKeys, - permissionsModule: permissionsModuleKeys, notificationsModule: notificationsModuleKeys, + relationProvision: relationProvisionKeys, profilesModule: profilesModuleKeys, billingModule: billingModuleKeys, - relationProvision: relationProvisionKeys, + resourceModule: resourceModuleKeys, userAuthModule: userAuthModuleKeys, + dbUsageModule: dbUsageModuleKeys, agentModule: agentModuleKeys, limitsModule: limitsModuleKeys, - membershipsModule: membershipsModuleKeys, entityTypeProvision: entityTypeProvisionKeys, storageModule: storageModuleKeys, + membershipsModule: membershipsModuleKeys, eventsModule: eventsModuleKeys, custom: customQueryKeys, } as const; diff --git a/sdk/constructive-react/src/modules/orm/README.md b/sdk/constructive-react/src/modules/orm/README.md index 90e60f2bd9..f1c1b5fb18 100644 --- a/sdk/constructive-react/src/modules/orm/README.md +++ b/sdk/constructive-react/src/modules/orm/README.md @@ -23,23 +23,21 @@ const db = createClient({ |-------|------------| | `defaultIdsModule` | findMany, findOne, create, update, delete | | `membershipTypesModule` | findMany, findOne, create, update, delete | -| `userStateModule` | findMany, findOne, create, update, delete | | `sessionSecretsModule` | findMany, findOne, create, update, delete | -| `configSecretsOrgModule` | findMany, findOne, create, update, delete | | `devicesModule` | findMany, findOne, create, update, delete | | `i18NModule` | findMany, findOne, create, update, delete | -| `userCredentialsModule` | findMany, findOne, create, update, delete | | `userSettingsModule` | findMany, findOne, create, update, delete | -| `configSecretsUserModule` | findMany, findOne, create, update, delete | +| `userStateModule` | findMany, findOne, create, update, delete | +| `userCredentialsModule` | findMany, findOne, create, update, delete | | `connectedAccountsModule` | findMany, findOne, create, update, delete | | `emailsModule` | findMany, findOne, create, update, delete | | `phoneNumbersModule` | findMany, findOne, create, update, delete | | `rateLimitsModule` | findMany, findOne, create, update, delete | | `usersModule` | findMany, findOne, create, update, delete | | `webauthnCredentialsModule` | findMany, findOne, create, update, delete | +| `configSecretsUserModule` | findMany, findOne, create, update, delete | | `cryptoAddressesModule` | findMany, findOne, create, update, delete | | `denormalizedTableField` | findMany, findOne, create, update, delete | -| `identityProvidersModule` | findMany, findOne, create, update, delete | | `rlsModule` | findMany, findOne, create, update, delete | | `blueprint` | findMany, findOne, create, update, delete | | `blueprintTemplate` | findMany, findOne, create, update, delete | @@ -47,40 +45,47 @@ const db = createClient({ | `cryptoAuthModule` | findMany, findOne, create, update, delete | | `sessionsModule` | findMany, findOne, create, update, delete | | `secureTableProvision` | findMany, findOne, create, update, delete | -| `databaseProvisionModule` | findMany, findOne, create, update, delete | -| `configSecretsModule` | findMany, findOne, create, update, delete | +| `identityProvidersModule` | findMany, findOne, create, update, delete | +| `integrationProvidersModule` | findMany, findOne, create, update, delete | +| `dbPoolConfig` | findMany, findOne, create, update, delete | +| `realtimeModule` | findMany, findOne, create, update, delete | +| `infraSecretsModule` | findMany, findOne, create, update, delete | +| `internalSecretsModule` | findMany, findOne, create, update, delete | +| `dbPresetModule` | findMany, findOne, create, update, delete | | `graphModule` | findMany, findOne, create, update, delete | -| `merkleStoreModule` | findMany, findOne, create, update, delete | | `rateLimitMetersModule` | findMany, findOne, create, update, delete | -| `realtimeModule` | findMany, findOne, create, update, delete | +| `infraConfigModule` | findMany, findOne, create, update, delete | | `webauthnAuthModule` | findMany, findOne, create, update, delete | -| `functionInvocationModule` | findMany, findOne, create, update, delete | +| `principalAuthModule` | findMany, findOne, create, update, delete | +| `dbPool` | findMany, findOne, create, update, delete | | `functionModule` | findMany, findOne, create, update, delete | +| `merkleStoreModule` | findMany, findOne, create, update, delete | +| `databaseProvisionModule` | findMany, findOne, create, update, delete | +| `functionInvocationModule` | findMany, findOne, create, update, delete | | `invitesModule` | findMany, findOne, create, update, delete | -| `principalAuthModule` | findMany, findOne, create, update, delete | +| `namespaceModule` | findMany, findOne, create, update, delete | +| `plansModule` | findMany, findOne, create, update, delete | | `computeLogModule` | findMany, findOne, create, update, delete | | `inferenceLogModule` | findMany, findOne, create, update, delete | -| `namespaceModule` | findMany, findOne, create, update, delete | -| `resourceModule` | findMany, findOne, create, update, delete | | `storageLogModule` | findMany, findOne, create, update, delete | | `transferLogModule` | findMany, findOne, create, update, delete | -| `functionDeploymentModule` | findMany, findOne, create, update, delete | -| `plansModule` | findMany, findOne, create, update, delete | | `billingProviderModule` | findMany, findOne, create, update, delete | -| `dbUsageModule` | findMany, findOne, create, update, delete | +| `functionDeploymentModule` | findMany, findOne, create, update, delete | +| `permissionsModule` | findMany, findOne, create, update, delete | | `graphExecutionModule` | findMany, findOne, create, update, delete | | `hierarchyModule` | findMany, findOne, create, update, delete | -| `permissionsModule` | findMany, findOne, create, update, delete | | `notificationsModule` | findMany, findOne, create, update, delete | +| `relationProvision` | findMany, findOne, create, update, delete | | `profilesModule` | findMany, findOne, create, update, delete | | `billingModule` | findMany, findOne, create, update, delete | -| `relationProvision` | findMany, findOne, create, update, delete | +| `resourceModule` | findMany, findOne, create, update, delete | | `userAuthModule` | findMany, findOne, create, update, delete | +| `dbUsageModule` | findMany, findOne, create, update, delete | | `agentModule` | findMany, findOne, create, update, delete | | `limitsModule` | findMany, findOne, create, update, delete | -| `membershipsModule` | findMany, findOne, create, update, delete | | `entityTypeProvision` | findMany, findOne, create, update, delete | | `storageModule` | findMany, findOne, create, update, delete | +| `membershipsModule` | findMany, findOne, create, update, delete | | `eventsModule` | findMany, findOne, create, update, delete | ## Table Operations @@ -148,39 +153,6 @@ const updated = await db.membershipTypesModule.update({ where: { id: '' }, const deleted = await db.membershipTypesModule.delete({ where: { id: '' } }).execute(); ``` -### `db.userStateModule` - -CRUD operations for UserStateModule records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `schemaId` | UUID | Yes | -| `tableId` | UUID | Yes | -| `tableName` | String | Yes | - -**Operations:** - -```typescript -// List all userStateModule records -const items = await db.userStateModule.findMany({ select: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true } }).execute(); - -// Get one by id -const item = await db.userStateModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true } }).execute(); - -// Create -const created = await db.userStateModule.create({ data: { databaseId: '', schemaId: '', tableId: '', tableName: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.userStateModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.userStateModule.delete({ where: { id: '' } }).execute(); -``` - ### `db.sessionSecretsModule` CRUD operations for SessionSecretsModule records. @@ -215,41 +187,6 @@ const updated = await db.sessionSecretsModule.update({ where: { id: '' }, const deleted = await db.sessionSecretsModule.delete({ where: { id: '' } }).execute(); ``` -### `db.configSecretsOrgModule` - -CRUD operations for ConfigSecretsOrgModule records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `schemaId` | UUID | Yes | -| `tableId` | UUID | Yes | -| `tableName` | String | Yes | -| `apiName` | String | Yes | -| `privateApiName` | String | Yes | - -**Operations:** - -```typescript -// List all configSecretsOrgModule records -const items = await db.configSecretsOrgModule.findMany({ select: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, apiName: true, privateApiName: true } }).execute(); - -// Get one by id -const item = await db.configSecretsOrgModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, apiName: true, privateApiName: true } }).execute(); - -// Create -const created = await db.configSecretsOrgModule.create({ data: { databaseId: '', schemaId: '', tableId: '', tableName: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.configSecretsOrgModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.configSecretsOrgModule.delete({ where: { id: '' } }).execute(); -``` - ### `db.devicesModule` CRUD operations for DevicesModule records. @@ -320,9 +257,9 @@ const updated = await db.i18NModule.update({ where: { id: '' }, data: { da const deleted = await db.i18NModule.delete({ where: { id: '' } }).execute(); ``` -### `db.userCredentialsModule` +### `db.userSettingsModule` -CRUD operations for UserCredentialsModule records. +CRUD operations for UserSettingsModule records. **Fields:** @@ -332,32 +269,32 @@ CRUD operations for UserCredentialsModule records. | `databaseId` | UUID | Yes | | `schemaId` | UUID | Yes | | `tableId` | UUID | Yes | +| `ownerTableId` | UUID | Yes | | `tableName` | String | Yes | | `apiName` | String | Yes | -| `privateApiName` | String | Yes | **Operations:** ```typescript -// List all userCredentialsModule records -const items = await db.userCredentialsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, apiName: true, privateApiName: true } }).execute(); +// List all userSettingsModule records +const items = await db.userSettingsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, tableId: true, ownerTableId: true, tableName: true, apiName: true } }).execute(); // Get one by id -const item = await db.userCredentialsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, apiName: true, privateApiName: true } }).execute(); +const item = await db.userSettingsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, tableId: true, ownerTableId: true, tableName: true, apiName: true } }).execute(); // Create -const created = await db.userCredentialsModule.create({ data: { databaseId: '', schemaId: '', tableId: '', tableName: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); +const created = await db.userSettingsModule.create({ data: { databaseId: '', schemaId: '', tableId: '', ownerTableId: '', tableName: '', apiName: '' }, select: { id: true } }).execute(); // Update -const updated = await db.userCredentialsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.userSettingsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.userCredentialsModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.userSettingsModule.delete({ where: { id: '' } }).execute(); ``` -### `db.userSettingsModule` +### `db.userStateModule` -CRUD operations for UserSettingsModule records. +CRUD operations for UserStateModule records. **Fields:** @@ -365,34 +302,33 @@ CRUD operations for UserSettingsModule records. |-------|------|----------| | `id` | UUID | No | | `databaseId` | UUID | Yes | +| `entityField` | String | Yes | | `schemaId` | UUID | Yes | | `tableId` | UUID | Yes | -| `ownerTableId` | UUID | Yes | | `tableName` | String | Yes | -| `apiName` | String | Yes | **Operations:** ```typescript -// List all userSettingsModule records -const items = await db.userSettingsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, tableId: true, ownerTableId: true, tableName: true, apiName: true } }).execute(); +// List all userStateModule records +const items = await db.userStateModule.findMany({ select: { id: true, databaseId: true, entityField: true, schemaId: true, tableId: true, tableName: true } }).execute(); // Get one by id -const item = await db.userSettingsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, tableId: true, ownerTableId: true, tableName: true, apiName: true } }).execute(); +const item = await db.userStateModule.findOne({ id: '', select: { id: true, databaseId: true, entityField: true, schemaId: true, tableId: true, tableName: true } }).execute(); // Create -const created = await db.userSettingsModule.create({ data: { databaseId: '', schemaId: '', tableId: '', ownerTableId: '', tableName: '', apiName: '' }, select: { id: true } }).execute(); +const created = await db.userStateModule.create({ data: { databaseId: '', entityField: '', schemaId: '', tableId: '', tableName: '' }, select: { id: true } }).execute(); // Update -const updated = await db.userSettingsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.userStateModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.userSettingsModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.userStateModule.delete({ where: { id: '' } }).execute(); ``` -### `db.configSecretsUserModule` +### `db.userCredentialsModule` -CRUD operations for ConfigSecretsUserModule records. +CRUD operations for UserCredentialsModule records. **Fields:** @@ -400,30 +336,29 @@ CRUD operations for ConfigSecretsUserModule records. |-------|------|----------| | `id` | UUID | No | | `databaseId` | UUID | Yes | +| `entityField` | String | Yes | | `schemaId` | UUID | Yes | | `tableId` | UUID | Yes | | `tableName` | String | Yes | -| `configDefinitionsTableId` | UUID | Yes | -| `apiName` | String | Yes | | `privateApiName` | String | Yes | **Operations:** ```typescript -// List all configSecretsUserModule records -const items = await db.configSecretsUserModule.findMany({ select: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, configDefinitionsTableId: true, apiName: true, privateApiName: true } }).execute(); +// List all userCredentialsModule records +const items = await db.userCredentialsModule.findMany({ select: { id: true, databaseId: true, entityField: true, schemaId: true, tableId: true, tableName: true, privateApiName: true } }).execute(); // Get one by id -const item = await db.configSecretsUserModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, configDefinitionsTableId: true, apiName: true, privateApiName: true } }).execute(); +const item = await db.userCredentialsModule.findOne({ id: '', select: { id: true, databaseId: true, entityField: true, schemaId: true, tableId: true, tableName: true, privateApiName: true } }).execute(); // Create -const created = await db.configSecretsUserModule.create({ data: { databaseId: '', schemaId: '', tableId: '', tableName: '', configDefinitionsTableId: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); +const created = await db.userCredentialsModule.create({ data: { databaseId: '', entityField: '', schemaId: '', tableId: '', tableName: '', privateApiName: '' }, select: { id: true } }).execute(); // Update -const updated = await db.configSecretsUserModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.userCredentialsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.configSecretsUserModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.userCredentialsModule.delete({ where: { id: '' } }).execute(); ``` ### `db.connectedAccountsModule` @@ -648,6 +583,42 @@ const updated = await db.webauthnCredentialsModule.update({ where: { id: ' const deleted = await db.webauthnCredentialsModule.delete({ where: { id: '' } }).execute(); ``` +### `db.configSecretsUserModule` + +CRUD operations for ConfigSecretsUserModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `entityField` | String | Yes | +| `schemaId` | UUID | Yes | +| `tableId` | UUID | Yes | +| `tableName` | String | Yes | +| `apiName` | String | Yes | +| `privateApiName` | String | Yes | + +**Operations:** + +```typescript +// List all configSecretsUserModule records +const items = await db.configSecretsUserModule.findMany({ select: { id: true, databaseId: true, entityField: true, schemaId: true, tableId: true, tableName: true, apiName: true, privateApiName: true } }).execute(); + +// Get one by id +const item = await db.configSecretsUserModule.findOne({ id: '', select: { id: true, databaseId: true, entityField: true, schemaId: true, tableId: true, tableName: true, apiName: true, privateApiName: true } }).execute(); + +// Create +const created = await db.configSecretsUserModule.create({ data: { databaseId: '', entityField: '', schemaId: '', tableId: '', tableName: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.configSecretsUserModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.configSecretsUserModule.delete({ where: { id: '' } }).execute(); +``` + ### `db.cryptoAddressesModule` CRUD operations for CryptoAddressesModule records. @@ -726,47 +697,6 @@ const updated = await db.denormalizedTableField.update({ where: { id: '' } const deleted = await db.denormalizedTableField.delete({ where: { id: '' } }).execute(); ``` -### `db.identityProvidersModule` - -CRUD operations for IdentityProvidersModule records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `schemaId` | UUID | Yes | -| `privateSchemaId` | UUID | Yes | -| `publicSchemaName` | String | Yes | -| `privateSchemaName` | String | Yes | -| `tableId` | UUID | Yes | -| `tableName` | String | Yes | -| `apiName` | String | Yes | -| `privateApiName` | String | Yes | -| `scope` | String | Yes | -| `prefix` | String | Yes | -| `entityTableId` | UUID | Yes | - -**Operations:** - -```typescript -// List all identityProvidersModule records -const items = await db.identityProvidersModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, tableId: true, tableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true } }).execute(); - -// Get one by id -const item = await db.identityProvidersModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, tableId: true, tableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true } }).execute(); - -// Create -const created = await db.identityProvidersModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', tableId: '', tableName: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.identityProvidersModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.identityProvidersModule.delete({ where: { id: '' } }).execute(); -``` - ### `db.rlsModule` CRUD operations for RlsModule records. @@ -1055,51 +985,51 @@ const updated = await db.secureTableProvision.update({ where: { id: '' }, const deleted = await db.secureTableProvision.delete({ where: { id: '' } }).execute(); ``` -### `db.databaseProvisionModule` +### `db.identityProvidersModule` -CRUD operations for DatabaseProvisionModule records. +CRUD operations for IdentityProvidersModule records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `databaseName` | String | Yes | -| `ownerId` | UUID | Yes | -| `subdomain` | String | Yes | -| `domain` | String | Yes | -| `modules` | JSON | Yes | -| `options` | JSON | Yes | -| `bootstrapUser` | Boolean | Yes | -| `status` | String | Yes | -| `errorMessage` | String | Yes | | `databaseId` | UUID | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | -| `completedAt` | Datetime | Yes | +| `entityField` | String | Yes | +| `schemaId` | UUID | Yes | +| `privateSchemaId` | UUID | Yes | +| `publicSchemaName` | String | Yes | +| `privateSchemaName` | String | Yes | +| `tableId` | UUID | Yes | +| `tableName` | String | Yes | +| `apiName` | String | Yes | +| `privateApiName` | String | Yes | +| `scope` | String | Yes | +| `prefix` | String | Yes | +| `entityTableId` | UUID | Yes | **Operations:** ```typescript -// List all databaseProvisionModule records -const items = await db.databaseProvisionModule.findMany({ select: { id: true, databaseName: true, ownerId: true, subdomain: true, domain: true, modules: true, options: true, bootstrapUser: true, status: true, errorMessage: true, databaseId: true, createdAt: true, updatedAt: true, completedAt: true } }).execute(); +// List all identityProvidersModule records +const items = await db.identityProvidersModule.findMany({ select: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, tableId: true, tableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true } }).execute(); // Get one by id -const item = await db.databaseProvisionModule.findOne({ id: '', select: { id: true, databaseName: true, ownerId: true, subdomain: true, domain: true, modules: true, options: true, bootstrapUser: true, status: true, errorMessage: true, databaseId: true, createdAt: true, updatedAt: true, completedAt: true } }).execute(); +const item = await db.identityProvidersModule.findOne({ id: '', select: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, tableId: true, tableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true } }).execute(); // Create -const created = await db.databaseProvisionModule.create({ data: { databaseName: '', ownerId: '', subdomain: '', domain: '', modules: '', options: '', bootstrapUser: '', status: '', errorMessage: '', databaseId: '', completedAt: '' }, select: { id: true } }).execute(); +const created = await db.identityProvidersModule.create({ data: { databaseId: '', entityField: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', tableId: '', tableName: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.databaseProvisionModule.update({ where: { id: '' }, data: { databaseName: '' }, select: { id: true } }).execute(); +const updated = await db.identityProvidersModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.databaseProvisionModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.identityProvidersModule.delete({ where: { id: '' } }).execute(); ``` -### `db.configSecretsModule` +### `db.integrationProvidersModule` -CRUD operations for ConfigSecretsModule records. +CRUD operations for IntegrationProvidersModule records. **Fields:** @@ -1107,89 +1037,121 @@ CRUD operations for ConfigSecretsModule records. |-------|------|----------| | `id` | UUID | No | | `databaseId` | UUID | Yes | +| `entityField` | String | Yes | | `schemaId` | UUID | Yes | | `privateSchemaId` | UUID | Yes | | `publicSchemaName` | String | Yes | | `privateSchemaName` | String | Yes | | `tableId` | UUID | Yes | -| `configDefinitionsTableId` | UUID | Yes | | `tableName` | String | Yes | | `apiName` | String | Yes | | `privateApiName` | String | Yes | | `scope` | String | Yes | | `prefix` | String | Yes | | `entityTableId` | UUID | Yes | -| `policies` | JSON | Yes | -| `provisions` | JSON | Yes | -| `hasConfig` | Boolean | Yes | **Operations:** ```typescript -// List all configSecretsModule records -const items = await db.configSecretsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, tableId: true, configDefinitionsTableId: true, tableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, policies: true, provisions: true, hasConfig: true } }).execute(); +// List all integrationProvidersModule records +const items = await db.integrationProvidersModule.findMany({ select: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, tableId: true, tableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true } }).execute(); // Get one by id -const item = await db.configSecretsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, tableId: true, configDefinitionsTableId: true, tableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, policies: true, provisions: true, hasConfig: true } }).execute(); +const item = await db.integrationProvidersModule.findOne({ id: '', select: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, tableId: true, tableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true } }).execute(); // Create -const created = await db.configSecretsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', tableId: '', configDefinitionsTableId: '', tableName: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '', policies: '', provisions: '', hasConfig: '' }, select: { id: true } }).execute(); +const created = await db.integrationProvidersModule.create({ data: { databaseId: '', entityField: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', tableId: '', tableName: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.configSecretsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.integrationProvidersModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.configSecretsModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.integrationProvidersModule.delete({ where: { id: '' } }).execute(); ``` -### `db.graphModule` +### `db.dbPoolConfig` -CRUD operations for GraphModule records. +CRUD operations for DbPoolConfig records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `publicSchemaId` | UUID | Yes | -| `privateSchemaId` | UUID | Yes | -| `publicSchemaName` | String | Yes | -| `privateSchemaName` | String | Yes | -| `scope` | String | Yes | -| `prefix` | String | Yes | -| `merkleStoreModuleId` | UUID | Yes | -| `graphsTableId` | UUID | Yes | -| `apiName` | String | Yes | -| `privateApiName` | String | Yes | -| `entityTableId` | UUID | Yes | -| `policies` | JSON | Yes | -| `provisions` | JSON | Yes | -| `defaultPermissions` | String | Yes | +| `presetSlug` | String | Yes | +| `domain` | String | Yes | +| `poolOwnerId` | UUID | Yes | +| `min` | Int | Yes | +| `max` | Int | Yes | +| `warmTtl` | Interval | Yes | +| `enabled` | Boolean | Yes | | `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | **Operations:** ```typescript -// List all graphModule records -const items = await db.graphModule.findMany({ select: { id: true, databaseId: true, publicSchemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, scope: true, prefix: true, merkleStoreModuleId: true, graphsTableId: true, apiName: true, privateApiName: true, entityTableId: true, policies: true, provisions: true, defaultPermissions: true, createdAt: true } }).execute(); +// List all dbPoolConfig records +const items = await db.dbPoolConfig.findMany({ select: { id: true, presetSlug: true, domain: true, poolOwnerId: true, min: true, max: true, warmTtl: true, enabled: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.graphModule.findOne({ id: '', select: { id: true, databaseId: true, publicSchemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, scope: true, prefix: true, merkleStoreModuleId: true, graphsTableId: true, apiName: true, privateApiName: true, entityTableId: true, policies: true, provisions: true, defaultPermissions: true, createdAt: true } }).execute(); +const item = await db.dbPoolConfig.findOne({ id: '', select: { id: true, presetSlug: true, domain: true, poolOwnerId: true, min: true, max: true, warmTtl: true, enabled: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.graphModule.create({ data: { databaseId: '', publicSchemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', scope: '', prefix: '', merkleStoreModuleId: '', graphsTableId: '', apiName: '', privateApiName: '', entityTableId: '', policies: '', provisions: '', defaultPermissions: '' }, select: { id: true } }).execute(); +const created = await db.dbPoolConfig.create({ data: { presetSlug: '', domain: '', poolOwnerId: '', min: '', max: '', warmTtl: '', enabled: '' }, select: { id: true } }).execute(); // Update -const updated = await db.graphModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.dbPoolConfig.update({ where: { id: '' }, data: { presetSlug: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.graphModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.dbPoolConfig.delete({ where: { id: '' } }).execute(); ``` -### `db.merkleStoreModule` +### `db.realtimeModule` -CRUD operations for MerkleStoreModule records. +CRUD operations for RealtimeModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `privateSchemaId` | UUID | Yes | +| `subscriptionsSchemaId` | UUID | Yes | +| `changeLogTableId` | UUID | Yes | +| `listenerNodeTableId` | UUID | Yes | +| `sourceRegistryTableId` | UUID | Yes | +| `retentionHours` | Int | Yes | +| `premake` | Int | Yes | +| `interval` | String | Yes | +| `notifyChannel` | String | Yes | +| `apiName` | String | Yes | +| `privateApiName` | String | Yes | + +**Operations:** + +```typescript +// List all realtimeModule records +const items = await db.realtimeModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, subscriptionsSchemaId: true, changeLogTableId: true, listenerNodeTableId: true, sourceRegistryTableId: true, retentionHours: true, premake: true, interval: true, notifyChannel: true, apiName: true, privateApiName: true } }).execute(); + +// Get one by id +const item = await db.realtimeModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, subscriptionsSchemaId: true, changeLogTableId: true, listenerNodeTableId: true, sourceRegistryTableId: true, retentionHours: true, premake: true, interval: true, notifyChannel: true, apiName: true, privateApiName: true } }).execute(); + +// Create +const created = await db.realtimeModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', subscriptionsSchemaId: '', changeLogTableId: '', listenerNodeTableId: '', sourceRegistryTableId: '', retentionHours: '', premake: '', interval: '', notifyChannel: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.realtimeModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.realtimeModule.delete({ where: { id: '' } }).execute(); +``` + +### `db.infraSecretsModule` + +CRUD operations for InfraSecretsModule records. **Fields:** @@ -1201,35 +1163,169 @@ CRUD operations for MerkleStoreModule records. | `privateSchemaId` | UUID | Yes | | `publicSchemaName` | String | Yes | | `privateSchemaName` | String | Yes | -| `objectTableId` | UUID | Yes | -| `storeTableId` | UUID | Yes | -| `commitTableId` | UUID | Yes | -| `refTableId` | UUID | Yes | +| `secretsTableId` | UUID | Yes | +| `secretsTableName` | String | Yes | +| `apiName` | String | Yes | +| `privateApiName` | String | Yes | +| `scope` | String | Yes | | `prefix` | String | Yes | +| `entityTableId` | UUID | Yes | +| `entityField` | String | Yes | +| `policies` | JSON | Yes | +| `provisions` | JSON | Yes | + +**Operations:** + +```typescript +// List all infraSecretsModule records +const items = await db.infraSecretsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, secretsTableId: true, secretsTableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, entityField: true, policies: true, provisions: true } }).execute(); + +// Get one by id +const item = await db.infraSecretsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, secretsTableId: true, secretsTableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, entityField: true, policies: true, provisions: true } }).execute(); + +// Create +const created = await db.infraSecretsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', secretsTableId: '', secretsTableName: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '', entityField: '', policies: '', provisions: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.infraSecretsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.infraSecretsModule.delete({ where: { id: '' } }).execute(); +``` + +### `db.internalSecretsModule` + +CRUD operations for InternalSecretsModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `privateSchemaId` | UUID | Yes | +| `publicSchemaName` | String | Yes | +| `privateSchemaName` | String | Yes | +| `internalSecretsTableId` | UUID | Yes | +| `internalSecretsTableName` | String | Yes | | `apiName` | String | Yes | | `privateApiName` | String | Yes | | `scope` | String | Yes | -| `functionPrefix` | String | Yes | -| `permissionKey` | String | Yes | +| `prefix` | String | Yes | +| `entityTableId` | UUID | Yes | +| `entityField` | String | Yes | +| `policies` | JSON | Yes | +| `provisions` | JSON | Yes | + +**Operations:** + +```typescript +// List all internalSecretsModule records +const items = await db.internalSecretsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, internalSecretsTableId: true, internalSecretsTableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, entityField: true, policies: true, provisions: true } }).execute(); + +// Get one by id +const item = await db.internalSecretsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, internalSecretsTableId: true, internalSecretsTableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, entityField: true, policies: true, provisions: true } }).execute(); + +// Create +const created = await db.internalSecretsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', internalSecretsTableId: '', internalSecretsTableName: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '', entityField: '', policies: '', provisions: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.internalSecretsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.internalSecretsModule.delete({ where: { id: '' } }).execute(); +``` + +### `db.dbPresetModule` + +CRUD operations for DbPresetModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `publicSchemaId` | UUID | Yes | +| `privateSchemaId` | UUID | Yes | +| `publicSchemaName` | String | Yes | +| `privateSchemaName` | String | Yes | +| `scope` | String | Yes | +| `prefix` | String | Yes | +| `merkleStoreModuleId` | UUID | Yes | +| `dbPresetsTableId` | UUID | Yes | +| `storeName` | String | Yes | +| `apiName` | String | Yes | +| `privateApiName` | String | Yes | +| `entityTableId` | UUID | Yes | +| `policies` | JSON | Yes | +| `provisions` | JSON | Yes | | `createdAt` | Datetime | No | **Operations:** ```typescript -// List all merkleStoreModule records -const items = await db.merkleStoreModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, objectTableId: true, storeTableId: true, commitTableId: true, refTableId: true, prefix: true, apiName: true, privateApiName: true, scope: true, functionPrefix: true, permissionKey: true, createdAt: true } }).execute(); +// List all dbPresetModule records +const items = await db.dbPresetModule.findMany({ select: { id: true, databaseId: true, publicSchemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, scope: true, prefix: true, merkleStoreModuleId: true, dbPresetsTableId: true, storeName: true, apiName: true, privateApiName: true, entityTableId: true, policies: true, provisions: true, createdAt: true } }).execute(); // Get one by id -const item = await db.merkleStoreModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, objectTableId: true, storeTableId: true, commitTableId: true, refTableId: true, prefix: true, apiName: true, privateApiName: true, scope: true, functionPrefix: true, permissionKey: true, createdAt: true } }).execute(); +const item = await db.dbPresetModule.findOne({ id: '', select: { id: true, databaseId: true, publicSchemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, scope: true, prefix: true, merkleStoreModuleId: true, dbPresetsTableId: true, storeName: true, apiName: true, privateApiName: true, entityTableId: true, policies: true, provisions: true, createdAt: true } }).execute(); // Create -const created = await db.merkleStoreModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', objectTableId: '', storeTableId: '', commitTableId: '', refTableId: '', prefix: '', apiName: '', privateApiName: '', scope: '', functionPrefix: '', permissionKey: '' }, select: { id: true } }).execute(); +const created = await db.dbPresetModule.create({ data: { databaseId: '', publicSchemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', scope: '', prefix: '', merkleStoreModuleId: '', dbPresetsTableId: '', storeName: '', apiName: '', privateApiName: '', entityTableId: '', policies: '', provisions: '' }, select: { id: true } }).execute(); // Update -const updated = await db.merkleStoreModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.dbPresetModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.merkleStoreModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.dbPresetModule.delete({ where: { id: '' } }).execute(); +``` + +### `db.graphModule` + +CRUD operations for GraphModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `entityField` | String | Yes | +| `publicSchemaId` | UUID | Yes | +| `privateSchemaId` | UUID | Yes | +| `publicSchemaName` | String | Yes | +| `privateSchemaName` | String | Yes | +| `scope` | String | Yes | +| `prefix` | String | Yes | +| `merkleStoreModuleId` | UUID | Yes | +| `graphsTableId` | UUID | Yes | +| `apiName` | String | Yes | +| `privateApiName` | String | Yes | +| `entityTableId` | UUID | Yes | +| `policies` | JSON | Yes | +| `provisions` | JSON | Yes | +| `defaultPermissions` | String | Yes | +| `createdAt` | Datetime | No | + +**Operations:** + +```typescript +// List all graphModule records +const items = await db.graphModule.findMany({ select: { id: true, databaseId: true, entityField: true, publicSchemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, scope: true, prefix: true, merkleStoreModuleId: true, graphsTableId: true, apiName: true, privateApiName: true, entityTableId: true, policies: true, provisions: true, defaultPermissions: true, createdAt: true } }).execute(); + +// Get one by id +const item = await db.graphModule.findOne({ id: '', select: { id: true, databaseId: true, entityField: true, publicSchemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, scope: true, prefix: true, merkleStoreModuleId: true, graphsTableId: true, apiName: true, privateApiName: true, entityTableId: true, policies: true, provisions: true, defaultPermissions: true, createdAt: true } }).execute(); + +// Create +const created = await db.graphModule.create({ data: { databaseId: '', entityField: '', publicSchemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', scope: '', prefix: '', merkleStoreModuleId: '', graphsTableId: '', apiName: '', privateApiName: '', entityTableId: '', policies: '', provisions: '', defaultPermissions: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.graphModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.graphModule.delete({ where: { id: '' } }).execute(); ``` ### `db.rateLimitMetersModule` @@ -1277,9 +1373,9 @@ const updated = await db.rateLimitMetersModule.update({ where: { id: '' }, const deleted = await db.rateLimitMetersModule.delete({ where: { id: '' } }).execute(); ``` -### `db.realtimeModule` +### `db.infraConfigModule` -CRUD operations for RealtimeModule records. +CRUD operations for InfraConfigModule records. **Fields:** @@ -1287,36 +1383,38 @@ CRUD operations for RealtimeModule records. |-------|------|----------| | `id` | UUID | No | | `databaseId` | UUID | Yes | +| `entityField` | String | Yes | | `schemaId` | UUID | Yes | | `privateSchemaId` | UUID | Yes | -| `subscriptionsSchemaId` | UUID | Yes | -| `changeLogTableId` | UUID | Yes | -| `listenerNodeTableId` | UUID | Yes | -| `sourceRegistryTableId` | UUID | Yes | -| `retentionHours` | Int | Yes | -| `premake` | Int | Yes | -| `interval` | String | Yes | -| `notifyChannel` | String | Yes | +| `publicSchemaName` | String | Yes | +| `privateSchemaName` | String | Yes | +| `configTableId` | UUID | Yes | +| `configTableName` | String | Yes | | `apiName` | String | Yes | | `privateApiName` | String | Yes | +| `scope` | String | Yes | +| `prefix` | String | Yes | +| `entityTableId` | UUID | Yes | +| `policies` | JSON | Yes | +| `provisions` | JSON | Yes | **Operations:** ```typescript -// List all realtimeModule records -const items = await db.realtimeModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, subscriptionsSchemaId: true, changeLogTableId: true, listenerNodeTableId: true, sourceRegistryTableId: true, retentionHours: true, premake: true, interval: true, notifyChannel: true, apiName: true, privateApiName: true } }).execute(); +// List all infraConfigModule records +const items = await db.infraConfigModule.findMany({ select: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, configTableId: true, configTableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, policies: true, provisions: true } }).execute(); // Get one by id -const item = await db.realtimeModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, subscriptionsSchemaId: true, changeLogTableId: true, listenerNodeTableId: true, sourceRegistryTableId: true, retentionHours: true, premake: true, interval: true, notifyChannel: true, apiName: true, privateApiName: true } }).execute(); +const item = await db.infraConfigModule.findOne({ id: '', select: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, configTableId: true, configTableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, policies: true, provisions: true } }).execute(); // Create -const created = await db.realtimeModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', subscriptionsSchemaId: '', changeLogTableId: '', listenerNodeTableId: '', sourceRegistryTableId: '', retentionHours: '', premake: '', interval: '', notifyChannel: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); +const created = await db.infraConfigModule.create({ data: { databaseId: '', entityField: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', configTableId: '', configTableName: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '', policies: '', provisions: '' }, select: { id: true } }).execute(); // Update -const updated = await db.realtimeModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.infraConfigModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.realtimeModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.infraConfigModule.delete({ where: { id: '' } }).execute(); ``` ### `db.webauthnAuthModule` @@ -1363,9 +1461,9 @@ const updated = await db.webauthnAuthModule.update({ where: { id: '' }, da const deleted = await db.webauthnAuthModule.delete({ where: { id: '' } }).execute(); ``` -### `db.functionInvocationModule` +### `db.principalAuthModule` -CRUD operations for FunctionInvocationModule records. +CRUD operations for PrincipalAuthModule records. **Fields:** @@ -1374,39 +1472,80 @@ CRUD operations for FunctionInvocationModule records. | `id` | UUID | No | | `databaseId` | UUID | Yes | | `schemaId` | UUID | Yes | -| `privateSchemaId` | UUID | Yes | -| `publicSchemaName` | String | Yes | -| `privateSchemaName` | String | Yes | -| `invocationsTableId` | UUID | Yes | -| `executionLogsTableId` | UUID | Yes | -| `invocationsTableName` | String | Yes | -| `executionLogsTableName` | String | Yes | +| `principalsTableId` | UUID | Yes | +| `principalEntitiesTableId` | UUID | Yes | +| `principalScopeOverridesTableId` | UUID | Yes | +| `usersTableId` | UUID | Yes | +| `sessionsTableId` | UUID | Yes | +| `sessionCredentialsTableId` | UUID | Yes | +| `auditsTableId` | UUID | Yes | +| `principalsTableName` | String | Yes | +| `createPrincipalFunction` | String | Yes | +| `deletePrincipalFunction` | String | Yes | +| `createOrgPrincipalFunction` | String | Yes | +| `deleteOrgPrincipalFunction` | String | Yes | +| `createOrgApiKeyFunction` | String | Yes | +| `revokeOrgApiKeyFunction` | String | Yes | | `apiName` | String | Yes | -| `privateApiName` | String | Yes | -| `scope` | String | Yes | -| `prefix` | String | Yes | -| `entityTableId` | UUID | Yes | -| `policies` | JSON | Yes | -| `provisions` | JSON | Yes | -| `defaultPermissions` | String | Yes | **Operations:** ```typescript -// List all functionInvocationModule records -const items = await db.functionInvocationModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, invocationsTableId: true, executionLogsTableId: true, invocationsTableName: true, executionLogsTableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, policies: true, provisions: true, defaultPermissions: true } }).execute(); +// List all principalAuthModule records +const items = await db.principalAuthModule.findMany({ select: { id: true, databaseId: true, schemaId: true, principalsTableId: true, principalEntitiesTableId: true, principalScopeOverridesTableId: true, usersTableId: true, sessionsTableId: true, sessionCredentialsTableId: true, auditsTableId: true, principalsTableName: true, createPrincipalFunction: true, deletePrincipalFunction: true, createOrgPrincipalFunction: true, deleteOrgPrincipalFunction: true, createOrgApiKeyFunction: true, revokeOrgApiKeyFunction: true, apiName: true } }).execute(); // Get one by id -const item = await db.functionInvocationModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, invocationsTableId: true, executionLogsTableId: true, invocationsTableName: true, executionLogsTableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, policies: true, provisions: true, defaultPermissions: true } }).execute(); +const item = await db.principalAuthModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, principalsTableId: true, principalEntitiesTableId: true, principalScopeOverridesTableId: true, usersTableId: true, sessionsTableId: true, sessionCredentialsTableId: true, auditsTableId: true, principalsTableName: true, createPrincipalFunction: true, deletePrincipalFunction: true, createOrgPrincipalFunction: true, deleteOrgPrincipalFunction: true, createOrgApiKeyFunction: true, revokeOrgApiKeyFunction: true, apiName: true } }).execute(); // Create -const created = await db.functionInvocationModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', invocationsTableId: '', executionLogsTableId: '', invocationsTableName: '', executionLogsTableName: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '', policies: '', provisions: '', defaultPermissions: '' }, select: { id: true } }).execute(); +const created = await db.principalAuthModule.create({ data: { databaseId: '', schemaId: '', principalsTableId: '', principalEntitiesTableId: '', principalScopeOverridesTableId: '', usersTableId: '', sessionsTableId: '', sessionCredentialsTableId: '', auditsTableId: '', principalsTableName: '', createPrincipalFunction: '', deletePrincipalFunction: '', createOrgPrincipalFunction: '', deleteOrgPrincipalFunction: '', createOrgApiKeyFunction: '', revokeOrgApiKeyFunction: '', apiName: '' }, select: { id: true } }).execute(); // Update -const updated = await db.functionInvocationModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.principalAuthModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.functionInvocationModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.principalAuthModule.delete({ where: { id: '' } }).execute(); +``` + +### `db.dbPool` + +CRUD operations for DbPool records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `presetSlug` | String | Yes | +| `presetCommitId` | UUID | Yes | +| `databaseId` | UUID | Yes | +| `status` | String | Yes | +| `errorMessage` | String | Yes | +| `expiresAt` | Datetime | Yes | +| `claimedBy` | UUID | Yes | +| `claimedAt` | Datetime | Yes | +| `bootstrapStatus` | String | Yes | +| `bootstrapError` | String | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all dbPool records +const items = await db.dbPool.findMany({ select: { id: true, presetSlug: true, presetCommitId: true, databaseId: true, status: true, errorMessage: true, expiresAt: true, claimedBy: true, claimedAt: true, bootstrapStatus: true, bootstrapError: true, createdAt: true, updatedAt: true } }).execute(); + +// Get one by id +const item = await db.dbPool.findOne({ id: '', select: { id: true, presetSlug: true, presetCommitId: true, databaseId: true, status: true, errorMessage: true, expiresAt: true, claimedBy: true, claimedAt: true, bootstrapStatus: true, bootstrapError: true, createdAt: true, updatedAt: true } }).execute(); + +// Create +const created = await db.dbPool.create({ data: { presetSlug: '', presetCommitId: '', databaseId: '', status: '', errorMessage: '', expiresAt: '', claimedBy: '', claimedAt: '', bootstrapStatus: '', bootstrapError: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.dbPool.update({ where: { id: '' }, data: { presetSlug: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.dbPool.delete({ where: { id: '' } }).execute(); ``` ### `db.functionModule` @@ -1419,14 +1558,13 @@ CRUD operations for FunctionModule records. |-------|------|----------| | `id` | UUID | No | | `databaseId` | UUID | Yes | +| `entityField` | String | Yes | | `schemaId` | UUID | Yes | | `privateSchemaId` | UUID | Yes | | `publicSchemaName` | String | Yes | | `privateSchemaName` | String | Yes | | `definitionsTableId` | UUID | Yes | -| `secretDefinitionsTableId` | UUID | Yes | | `definitionsTableName` | String | Yes | -| `secretDefinitionsTableName` | String | Yes | | `apiName` | String | Yes | | `privateApiName` | String | Yes | | `scope` | String | Yes | @@ -1440,13 +1578,13 @@ CRUD operations for FunctionModule records. ```typescript // List all functionModule records -const items = await db.functionModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, definitionsTableId: true, secretDefinitionsTableId: true, definitionsTableName: true, secretDefinitionsTableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, policies: true, provisions: true, defaultPermissions: true } }).execute(); +const items = await db.functionModule.findMany({ select: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, definitionsTableId: true, definitionsTableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, policies: true, provisions: true, defaultPermissions: true } }).execute(); // Get one by id -const item = await db.functionModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, definitionsTableId: true, secretDefinitionsTableId: true, definitionsTableName: true, secretDefinitionsTableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, policies: true, provisions: true, defaultPermissions: true } }).execute(); +const item = await db.functionModule.findOne({ id: '', select: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, definitionsTableId: true, definitionsTableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, policies: true, provisions: true, defaultPermissions: true } }).execute(); // Create -const created = await db.functionModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', definitionsTableId: '', secretDefinitionsTableId: '', definitionsTableName: '', secretDefinitionsTableName: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '', policies: '', provisions: '', defaultPermissions: '' }, select: { id: true } }).execute(); +const created = await db.functionModule.create({ data: { databaseId: '', entityField: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', definitionsTableId: '', definitionsTableName: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '', policies: '', provisions: '', defaultPermissions: '' }, select: { id: true } }).execute(); // Update const updated = await db.functionModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); @@ -1455,9 +1593,9 @@ const updated = await db.functionModule.update({ where: { id: '' }, data: const deleted = await db.functionModule.delete({ where: { id: '' } }).execute(); ``` -### `db.invitesModule` +### `db.merkleStoreModule` -CRUD operations for InvitesModule records. +CRUD operations for MerkleStoreModule records. **Fields:** @@ -1465,91 +1603,91 @@ CRUD operations for InvitesModule records. |-------|------|----------| | `id` | UUID | No | | `databaseId` | UUID | Yes | +| `entityField` | String | Yes | | `schemaId` | UUID | Yes | | `privateSchemaId` | UUID | Yes | | `publicSchemaName` | String | Yes | | `privateSchemaName` | String | Yes | -| `emailsTableId` | UUID | Yes | -| `usersTableId` | UUID | Yes | -| `invitesTableId` | UUID | Yes | -| `claimedInvitesTableId` | UUID | Yes | -| `invitesTableName` | String | Yes | -| `claimedInvitesTableName` | String | Yes | -| `submitInviteCodeFunction` | String | Yes | -| `scope` | String | Yes | +| `objectTableId` | UUID | Yes | +| `storeTableId` | UUID | Yes | +| `commitTableId` | UUID | Yes | +| `refTableId` | UUID | Yes | | `prefix` | String | Yes | -| `entityTableId` | UUID | Yes | | `apiName` | String | Yes | | `privateApiName` | String | Yes | +| `scope` | String | Yes | +| `functionPrefix` | String | Yes | +| `permissionKey` | String | Yes | +| `createdAt` | Datetime | No | **Operations:** ```typescript -// List all invitesModule records -const items = await db.invitesModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, emailsTableId: true, usersTableId: true, invitesTableId: true, claimedInvitesTableId: true, invitesTableName: true, claimedInvitesTableName: true, submitInviteCodeFunction: true, scope: true, prefix: true, entityTableId: true, apiName: true, privateApiName: true } }).execute(); +// List all merkleStoreModule records +const items = await db.merkleStoreModule.findMany({ select: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, objectTableId: true, storeTableId: true, commitTableId: true, refTableId: true, prefix: true, apiName: true, privateApiName: true, scope: true, functionPrefix: true, permissionKey: true, createdAt: true } }).execute(); // Get one by id -const item = await db.invitesModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, emailsTableId: true, usersTableId: true, invitesTableId: true, claimedInvitesTableId: true, invitesTableName: true, claimedInvitesTableName: true, submitInviteCodeFunction: true, scope: true, prefix: true, entityTableId: true, apiName: true, privateApiName: true } }).execute(); +const item = await db.merkleStoreModule.findOne({ id: '', select: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, objectTableId: true, storeTableId: true, commitTableId: true, refTableId: true, prefix: true, apiName: true, privateApiName: true, scope: true, functionPrefix: true, permissionKey: true, createdAt: true } }).execute(); // Create -const created = await db.invitesModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', emailsTableId: '', usersTableId: '', invitesTableId: '', claimedInvitesTableId: '', invitesTableName: '', claimedInvitesTableName: '', submitInviteCodeFunction: '', scope: '', prefix: '', entityTableId: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); +const created = await db.merkleStoreModule.create({ data: { databaseId: '', entityField: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', objectTableId: '', storeTableId: '', commitTableId: '', refTableId: '', prefix: '', apiName: '', privateApiName: '', scope: '', functionPrefix: '', permissionKey: '' }, select: { id: true } }).execute(); // Update -const updated = await db.invitesModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.merkleStoreModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.invitesModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.merkleStoreModule.delete({ where: { id: '' } }).execute(); ``` -### `db.principalAuthModule` +### `db.databaseProvisionModule` -CRUD operations for PrincipalAuthModule records. +CRUD operations for DatabaseProvisionModule records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | +| `databaseName` | String | Yes | +| `ownerId` | UUID | Yes | +| `subdomain` | String | Yes | +| `domain` | String | Yes | +| `modules` | JSON | Yes | +| `options` | JSON | Yes | +| `bootstrapUser` | Boolean | Yes | +| `status` | String | Yes | +| `errorMessage` | String | Yes | +| `sourceDatabaseId` | UUID | Yes | +| `bootstrapStatus` | String | Yes | +| `bootstrapError` | String | Yes | | `databaseId` | UUID | Yes | -| `schemaId` | UUID | Yes | -| `principalsTableId` | UUID | Yes | -| `principalEntitiesTableId` | UUID | Yes | -| `principalScopeOverridesTableId` | UUID | Yes | -| `usersTableId` | UUID | Yes | -| `sessionsTableId` | UUID | Yes | -| `sessionCredentialsTableId` | UUID | Yes | -| `auditsTableId` | UUID | Yes | -| `principalsTableName` | String | Yes | -| `createPrincipalFunction` | String | Yes | -| `deletePrincipalFunction` | String | Yes | -| `createOrgPrincipalFunction` | String | Yes | -| `deleteOrgPrincipalFunction` | String | Yes | -| `createOrgApiKeyFunction` | String | Yes | -| `revokeOrgApiKeyFunction` | String | Yes | -| `apiName` | String | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | +| `completedAt` | Datetime | Yes | +| `fulfilledAt` | Datetime | Yes | **Operations:** ```typescript -// List all principalAuthModule records -const items = await db.principalAuthModule.findMany({ select: { id: true, databaseId: true, schemaId: true, principalsTableId: true, principalEntitiesTableId: true, principalScopeOverridesTableId: true, usersTableId: true, sessionsTableId: true, sessionCredentialsTableId: true, auditsTableId: true, principalsTableName: true, createPrincipalFunction: true, deletePrincipalFunction: true, createOrgPrincipalFunction: true, deleteOrgPrincipalFunction: true, createOrgApiKeyFunction: true, revokeOrgApiKeyFunction: true, apiName: true } }).execute(); +// List all databaseProvisionModule records +const items = await db.databaseProvisionModule.findMany({ select: { id: true, databaseName: true, ownerId: true, subdomain: true, domain: true, modules: true, options: true, bootstrapUser: true, status: true, errorMessage: true, sourceDatabaseId: true, bootstrapStatus: true, bootstrapError: true, databaseId: true, createdAt: true, updatedAt: true, completedAt: true, fulfilledAt: true } }).execute(); // Get one by id -const item = await db.principalAuthModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, principalsTableId: true, principalEntitiesTableId: true, principalScopeOverridesTableId: true, usersTableId: true, sessionsTableId: true, sessionCredentialsTableId: true, auditsTableId: true, principalsTableName: true, createPrincipalFunction: true, deletePrincipalFunction: true, createOrgPrincipalFunction: true, deleteOrgPrincipalFunction: true, createOrgApiKeyFunction: true, revokeOrgApiKeyFunction: true, apiName: true } }).execute(); +const item = await db.databaseProvisionModule.findOne({ id: '', select: { id: true, databaseName: true, ownerId: true, subdomain: true, domain: true, modules: true, options: true, bootstrapUser: true, status: true, errorMessage: true, sourceDatabaseId: true, bootstrapStatus: true, bootstrapError: true, databaseId: true, createdAt: true, updatedAt: true, completedAt: true, fulfilledAt: true } }).execute(); // Create -const created = await db.principalAuthModule.create({ data: { databaseId: '', schemaId: '', principalsTableId: '', principalEntitiesTableId: '', principalScopeOverridesTableId: '', usersTableId: '', sessionsTableId: '', sessionCredentialsTableId: '', auditsTableId: '', principalsTableName: '', createPrincipalFunction: '', deletePrincipalFunction: '', createOrgPrincipalFunction: '', deleteOrgPrincipalFunction: '', createOrgApiKeyFunction: '', revokeOrgApiKeyFunction: '', apiName: '' }, select: { id: true } }).execute(); +const created = await db.databaseProvisionModule.create({ data: { databaseName: '', ownerId: '', subdomain: '', domain: '', modules: '', options: '', bootstrapUser: '', status: '', errorMessage: '', sourceDatabaseId: '', bootstrapStatus: '', bootstrapError: '', databaseId: '', completedAt: '', fulfilledAt: '' }, select: { id: true } }).execute(); // Update -const updated = await db.principalAuthModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.databaseProvisionModule.update({ where: { id: '' }, data: { databaseName: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.principalAuthModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.databaseProvisionModule.delete({ where: { id: '' } }).execute(); ``` -### `db.computeLogModule` +### `db.functionInvocationModule` -CRUD operations for ComputeLogModule records. +CRUD operations for FunctionInvocationModule records. **Fields:** @@ -1557,46 +1695,46 @@ CRUD operations for ComputeLogModule records. |-------|------|----------| | `id` | UUID | No | | `databaseId` | UUID | Yes | +| `entityField` | String | Yes | | `schemaId` | UUID | Yes | | `privateSchemaId` | UUID | Yes | | `publicSchemaName` | String | Yes | | `privateSchemaName` | String | Yes | -| `computeLogTableId` | UUID | Yes | -| `computeLogTableName` | String | Yes | -| `usageDailyTableId` | UUID | Yes | -| `usageDailyTableName` | String | Yes | -| `interval` | String | Yes | -| `retention` | String | Yes | -| `premake` | Int | Yes | -| `scope` | String | Yes | -| `actorFkTableId` | UUID | Yes | -| `entityFkTableId` | UUID | Yes | -| `prefix` | String | Yes | +| `invocationsTableId` | UUID | Yes | +| `executionLogsTableId` | UUID | Yes | +| `invocationsTableName` | String | Yes | +| `executionLogsTableName` | String | Yes | | `apiName` | String | Yes | | `privateApiName` | String | Yes | +| `scope` | String | Yes | +| `prefix` | String | Yes | +| `entityTableId` | UUID | Yes | +| `policies` | JSON | Yes | +| `provisions` | JSON | Yes | +| `defaultPermissions` | String | Yes | **Operations:** ```typescript -// List all computeLogModule records -const items = await db.computeLogModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, computeLogTableId: true, computeLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } }).execute(); +// List all functionInvocationModule records +const items = await db.functionInvocationModule.findMany({ select: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, invocationsTableId: true, executionLogsTableId: true, invocationsTableName: true, executionLogsTableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, policies: true, provisions: true, defaultPermissions: true } }).execute(); // Get one by id -const item = await db.computeLogModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, computeLogTableId: true, computeLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } }).execute(); +const item = await db.functionInvocationModule.findOne({ id: '', select: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, invocationsTableId: true, executionLogsTableId: true, invocationsTableName: true, executionLogsTableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, policies: true, provisions: true, defaultPermissions: true } }).execute(); // Create -const created = await db.computeLogModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', computeLogTableId: '', computeLogTableName: '', usageDailyTableId: '', usageDailyTableName: '', interval: '', retention: '', premake: '', scope: '', actorFkTableId: '', entityFkTableId: '', prefix: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); +const created = await db.functionInvocationModule.create({ data: { databaseId: '', entityField: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', invocationsTableId: '', executionLogsTableId: '', invocationsTableName: '', executionLogsTableName: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '', policies: '', provisions: '', defaultPermissions: '' }, select: { id: true } }).execute(); // Update -const updated = await db.computeLogModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.functionInvocationModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.computeLogModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.functionInvocationModule.delete({ where: { id: '' } }).execute(); ``` -### `db.inferenceLogModule` +### `db.invitesModule` -CRUD operations for InferenceLogModule records. +CRUD operations for InvitesModule records. **Fields:** @@ -1604,41 +1742,41 @@ CRUD operations for InferenceLogModule records. |-------|------|----------| | `id` | UUID | No | | `databaseId` | UUID | Yes | +| `entityField` | String | Yes | | `schemaId` | UUID | Yes | | `privateSchemaId` | UUID | Yes | | `publicSchemaName` | String | Yes | | `privateSchemaName` | String | Yes | -| `inferenceLogTableId` | UUID | Yes | -| `inferenceLogTableName` | String | Yes | -| `usageDailyTableId` | UUID | Yes | -| `usageDailyTableName` | String | Yes | -| `interval` | String | Yes | -| `retention` | String | Yes | -| `premake` | Int | Yes | +| `emailsTableId` | UUID | Yes | +| `usersTableId` | UUID | Yes | +| `invitesTableId` | UUID | Yes | +| `claimedInvitesTableId` | UUID | Yes | +| `invitesTableName` | String | Yes | +| `claimedInvitesTableName` | String | Yes | +| `submitInviteCodeFunction` | String | Yes | | `scope` | String | Yes | -| `actorFkTableId` | UUID | Yes | -| `entityFkTableId` | UUID | Yes | | `prefix` | String | Yes | +| `entityTableId` | UUID | Yes | | `apiName` | String | Yes | | `privateApiName` | String | Yes | **Operations:** ```typescript -// List all inferenceLogModule records -const items = await db.inferenceLogModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, inferenceLogTableId: true, inferenceLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } }).execute(); +// List all invitesModule records +const items = await db.invitesModule.findMany({ select: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, emailsTableId: true, usersTableId: true, invitesTableId: true, claimedInvitesTableId: true, invitesTableName: true, claimedInvitesTableName: true, submitInviteCodeFunction: true, scope: true, prefix: true, entityTableId: true, apiName: true, privateApiName: true } }).execute(); // Get one by id -const item = await db.inferenceLogModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, inferenceLogTableId: true, inferenceLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } }).execute(); +const item = await db.invitesModule.findOne({ id: '', select: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, emailsTableId: true, usersTableId: true, invitesTableId: true, claimedInvitesTableId: true, invitesTableName: true, claimedInvitesTableName: true, submitInviteCodeFunction: true, scope: true, prefix: true, entityTableId: true, apiName: true, privateApiName: true } }).execute(); // Create -const created = await db.inferenceLogModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', inferenceLogTableId: '', inferenceLogTableName: '', usageDailyTableId: '', usageDailyTableName: '', interval: '', retention: '', premake: '', scope: '', actorFkTableId: '', entityFkTableId: '', prefix: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); +const created = await db.invitesModule.create({ data: { databaseId: '', entityField: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', emailsTableId: '', usersTableId: '', invitesTableId: '', claimedInvitesTableId: '', invitesTableName: '', claimedInvitesTableName: '', submitInviteCodeFunction: '', scope: '', prefix: '', entityTableId: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); // Update -const updated = await db.inferenceLogModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.invitesModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.inferenceLogModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.invitesModule.delete({ where: { id: '' } }).execute(); ``` ### `db.namespaceModule` @@ -1651,6 +1789,7 @@ CRUD operations for NamespaceModule records. |-------|------|----------| | `id` | UUID | No | | `databaseId` | UUID | Yes | +| `entityField` | String | Yes | | `schemaId` | UUID | Yes | | `privateSchemaId` | UUID | Yes | | `publicSchemaName` | String | Yes | @@ -1664,7 +1803,6 @@ CRUD operations for NamespaceModule records. | `scope` | String | Yes | | `prefix` | String | Yes | | `entityTableId` | UUID | Yes | -| `platformNamespacesTableId` | UUID | Yes | | `policies` | JSON | Yes | | `provisions` | JSON | Yes | | `defaultPermissions` | String | Yes | @@ -1673,13 +1811,13 @@ CRUD operations for NamespaceModule records. ```typescript // List all namespaceModule records -const items = await db.namespaceModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, namespacesTableId: true, namespaceEventsTableId: true, namespacesTableName: true, namespaceEventsTableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, platformNamespacesTableId: true, policies: true, provisions: true, defaultPermissions: true } }).execute(); +const items = await db.namespaceModule.findMany({ select: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, namespacesTableId: true, namespaceEventsTableId: true, namespacesTableName: true, namespaceEventsTableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, policies: true, provisions: true, defaultPermissions: true } }).execute(); // Get one by id -const item = await db.namespaceModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, namespacesTableId: true, namespaceEventsTableId: true, namespacesTableName: true, namespaceEventsTableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, platformNamespacesTableId: true, policies: true, provisions: true, defaultPermissions: true } }).execute(); +const item = await db.namespaceModule.findOne({ id: '', select: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, namespacesTableId: true, namespaceEventsTableId: true, namespacesTableName: true, namespaceEventsTableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, policies: true, provisions: true, defaultPermissions: true } }).execute(); // Create -const created = await db.namespaceModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', namespacesTableId: '', namespaceEventsTableId: '', namespacesTableName: '', namespaceEventsTableName: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '', platformNamespacesTableId: '', policies: '', provisions: '', defaultPermissions: '' }, select: { id: true } }).execute(); +const created = await db.namespaceModule.create({ data: { databaseId: '', entityField: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', namespacesTableId: '', namespaceEventsTableId: '', namespacesTableName: '', namespaceEventsTableName: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '', policies: '', provisions: '', defaultPermissions: '' }, select: { id: true } }).execute(); // Update const updated = await db.namespaceModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); @@ -1688,9 +1826,9 @@ const updated = await db.namespaceModule.update({ where: { id: '' }, data: const deleted = await db.namespaceModule.delete({ where: { id: '' } }).execute(); ``` -### `db.resourceModule` +### `db.plansModule` -CRUD operations for ResourceModule records. +CRUD operations for PlansModule records. **Fields:** @@ -1702,42 +1840,44 @@ CRUD operations for ResourceModule records. | `privateSchemaId` | UUID | Yes | | `publicSchemaName` | String | Yes | | `privateSchemaName` | String | Yes | -| `resourcesTableId` | UUID | Yes | -| `resourceEventsTableId` | UUID | Yes | -| `resourcesTableName` | String | Yes | -| `resourceEventsTableName` | String | Yes | +| `plansTableId` | UUID | Yes | +| `plansTableName` | String | Yes | +| `planLimitsTableId` | UUID | Yes | +| `planLimitsTableName` | String | Yes | +| `planPricingTableId` | UUID | Yes | +| `planOverridesTableId` | UUID | Yes | +| `planMeterLimitsTableId` | UUID | Yes | +| `planCapsTableId` | UUID | Yes | +| `applyPlanFunction` | String | Yes | +| `applyPlanAggregateFunction` | String | Yes | +| `applyBillingPlanFunction` | String | Yes | +| `applyPlanCapsFunction` | String | Yes | +| `prefix` | String | Yes | | `apiName` | String | Yes | | `privateApiName` | String | Yes | -| `scope` | String | Yes | -| `prefix` | String | Yes | -| `entityTableId` | UUID | Yes | -| `namespaceModuleId` | UUID | Yes | -| `policies` | JSON | Yes | -| `provisions` | JSON | Yes | -| `defaultPermissions` | String | Yes | **Operations:** ```typescript -// List all resourceModule records -const items = await db.resourceModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, resourcesTableId: true, resourceEventsTableId: true, resourcesTableName: true, resourceEventsTableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, namespaceModuleId: true, policies: true, provisions: true, defaultPermissions: true } }).execute(); +// List all plansModule records +const items = await db.plansModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, plansTableId: true, plansTableName: true, planLimitsTableId: true, planLimitsTableName: true, planPricingTableId: true, planOverridesTableId: true, planMeterLimitsTableId: true, planCapsTableId: true, applyPlanFunction: true, applyPlanAggregateFunction: true, applyBillingPlanFunction: true, applyPlanCapsFunction: true, prefix: true, apiName: true, privateApiName: true } }).execute(); // Get one by id -const item = await db.resourceModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, resourcesTableId: true, resourceEventsTableId: true, resourcesTableName: true, resourceEventsTableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, namespaceModuleId: true, policies: true, provisions: true, defaultPermissions: true } }).execute(); +const item = await db.plansModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, plansTableId: true, plansTableName: true, planLimitsTableId: true, planLimitsTableName: true, planPricingTableId: true, planOverridesTableId: true, planMeterLimitsTableId: true, planCapsTableId: true, applyPlanFunction: true, applyPlanAggregateFunction: true, applyBillingPlanFunction: true, applyPlanCapsFunction: true, prefix: true, apiName: true, privateApiName: true } }).execute(); // Create -const created = await db.resourceModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', resourcesTableId: '', resourceEventsTableId: '', resourcesTableName: '', resourceEventsTableName: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '', namespaceModuleId: '', policies: '', provisions: '', defaultPermissions: '' }, select: { id: true } }).execute(); +const created = await db.plansModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', plansTableId: '', plansTableName: '', planLimitsTableId: '', planLimitsTableName: '', planPricingTableId: '', planOverridesTableId: '', planMeterLimitsTableId: '', planCapsTableId: '', applyPlanFunction: '', applyPlanAggregateFunction: '', applyBillingPlanFunction: '', applyPlanCapsFunction: '', prefix: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); // Update -const updated = await db.resourceModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.plansModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.resourceModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.plansModule.delete({ where: { id: '' } }).execute(); ``` -### `db.storageLogModule` +### `db.computeLogModule` -CRUD operations for StorageLogModule records. +CRUD operations for ComputeLogModule records. **Fields:** @@ -1745,12 +1885,13 @@ CRUD operations for StorageLogModule records. |-------|------|----------| | `id` | UUID | No | | `databaseId` | UUID | Yes | +| `entityField` | String | Yes | | `schemaId` | UUID | Yes | | `privateSchemaId` | UUID | Yes | | `publicSchemaName` | String | Yes | | `privateSchemaName` | String | Yes | -| `storageLogTableId` | UUID | Yes | -| `storageLogTableName` | String | Yes | +| `computeLogTableId` | UUID | Yes | +| `computeLogTableName` | String | Yes | | `usageDailyTableId` | UUID | Yes | | `usageDailyTableName` | String | Yes | | `interval` | String | Yes | @@ -1766,25 +1907,25 @@ CRUD operations for StorageLogModule records. **Operations:** ```typescript -// List all storageLogModule records -const items = await db.storageLogModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, storageLogTableId: true, storageLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } }).execute(); +// List all computeLogModule records +const items = await db.computeLogModule.findMany({ select: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, computeLogTableId: true, computeLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } }).execute(); // Get one by id -const item = await db.storageLogModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, storageLogTableId: true, storageLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } }).execute(); +const item = await db.computeLogModule.findOne({ id: '', select: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, computeLogTableId: true, computeLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } }).execute(); // Create -const created = await db.storageLogModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', storageLogTableId: '', storageLogTableName: '', usageDailyTableId: '', usageDailyTableName: '', interval: '', retention: '', premake: '', scope: '', actorFkTableId: '', entityFkTableId: '', prefix: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); +const created = await db.computeLogModule.create({ data: { databaseId: '', entityField: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', computeLogTableId: '', computeLogTableName: '', usageDailyTableId: '', usageDailyTableName: '', interval: '', retention: '', premake: '', scope: '', actorFkTableId: '', entityFkTableId: '', prefix: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); // Update -const updated = await db.storageLogModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.computeLogModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.storageLogModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.computeLogModule.delete({ where: { id: '' } }).execute(); ``` -### `db.transferLogModule` +### `db.inferenceLogModule` -CRUD operations for TransferLogModule records. +CRUD operations for InferenceLogModule records. **Fields:** @@ -1792,12 +1933,13 @@ CRUD operations for TransferLogModule records. |-------|------|----------| | `id` | UUID | No | | `databaseId` | UUID | Yes | +| `entityField` | String | Yes | | `schemaId` | UUID | Yes | | `privateSchemaId` | UUID | Yes | | `publicSchemaName` | String | Yes | | `privateSchemaName` | String | Yes | -| `transferLogTableId` | UUID | Yes | -| `transferLogTableName` | String | Yes | +| `inferenceLogTableId` | UUID | Yes | +| `inferenceLogTableName` | String | Yes | | `usageDailyTableId` | UUID | Yes | | `usageDailyTableName` | String | Yes | | `interval` | String | Yes | @@ -1813,25 +1955,25 @@ CRUD operations for TransferLogModule records. **Operations:** ```typescript -// List all transferLogModule records -const items = await db.transferLogModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, transferLogTableId: true, transferLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } }).execute(); +// List all inferenceLogModule records +const items = await db.inferenceLogModule.findMany({ select: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, inferenceLogTableId: true, inferenceLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } }).execute(); // Get one by id -const item = await db.transferLogModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, transferLogTableId: true, transferLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } }).execute(); +const item = await db.inferenceLogModule.findOne({ id: '', select: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, inferenceLogTableId: true, inferenceLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } }).execute(); // Create -const created = await db.transferLogModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', transferLogTableId: '', transferLogTableName: '', usageDailyTableId: '', usageDailyTableName: '', interval: '', retention: '', premake: '', scope: '', actorFkTableId: '', entityFkTableId: '', prefix: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); +const created = await db.inferenceLogModule.create({ data: { databaseId: '', entityField: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', inferenceLogTableId: '', inferenceLogTableName: '', usageDailyTableId: '', usageDailyTableName: '', interval: '', retention: '', premake: '', scope: '', actorFkTableId: '', entityFkTableId: '', prefix: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); // Update -const updated = await db.transferLogModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.inferenceLogModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.transferLogModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.inferenceLogModule.delete({ where: { id: '' } }).execute(); ``` -### `db.functionDeploymentModule` +### `db.storageLogModule` -CRUD operations for FunctionDeploymentModule records. +CRUD operations for StorageLogModule records. **Fields:** @@ -1839,47 +1981,47 @@ CRUD operations for FunctionDeploymentModule records. |-------|------|----------| | `id` | UUID | No | | `databaseId` | UUID | Yes | +| `entityField` | String | Yes | | `schemaId` | UUID | Yes | | `privateSchemaId` | UUID | Yes | | `publicSchemaName` | String | Yes | | `privateSchemaName` | String | Yes | -| `deploymentsTableId` | UUID | Yes | -| `deploymentEventsTableId` | UUID | Yes | -| `deploymentsTableName` | String | Yes | -| `deploymentEventsTableName` | String | Yes | -| `apiName` | String | Yes | -| `privateApiName` | String | Yes | +| `storageLogTableId` | UUID | Yes | +| `storageLogTableName` | String | Yes | +| `usageDailyTableId` | UUID | Yes | +| `usageDailyTableName` | String | Yes | +| `interval` | String | Yes | +| `retention` | String | Yes | +| `premake` | Int | Yes | | `scope` | String | Yes | +| `actorFkTableId` | UUID | Yes | +| `entityFkTableId` | UUID | Yes | | `prefix` | String | Yes | -| `entityTableId` | UUID | Yes | -| `functionModuleId` | UUID | Yes | -| `namespaceModuleId` | UUID | Yes | -| `policies` | JSON | Yes | -| `provisions` | JSON | Yes | -| `defaultPermissions` | String | Yes | +| `apiName` | String | Yes | +| `privateApiName` | String | Yes | **Operations:** ```typescript -// List all functionDeploymentModule records -const items = await db.functionDeploymentModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, deploymentsTableId: true, deploymentEventsTableId: true, deploymentsTableName: true, deploymentEventsTableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, functionModuleId: true, namespaceModuleId: true, policies: true, provisions: true, defaultPermissions: true } }).execute(); +// List all storageLogModule records +const items = await db.storageLogModule.findMany({ select: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, storageLogTableId: true, storageLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } }).execute(); // Get one by id -const item = await db.functionDeploymentModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, deploymentsTableId: true, deploymentEventsTableId: true, deploymentsTableName: true, deploymentEventsTableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, functionModuleId: true, namespaceModuleId: true, policies: true, provisions: true, defaultPermissions: true } }).execute(); +const item = await db.storageLogModule.findOne({ id: '', select: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, storageLogTableId: true, storageLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } }).execute(); // Create -const created = await db.functionDeploymentModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', deploymentsTableId: '', deploymentEventsTableId: '', deploymentsTableName: '', deploymentEventsTableName: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '', functionModuleId: '', namespaceModuleId: '', policies: '', provisions: '', defaultPermissions: '' }, select: { id: true } }).execute(); +const created = await db.storageLogModule.create({ data: { databaseId: '', entityField: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', storageLogTableId: '', storageLogTableName: '', usageDailyTableId: '', usageDailyTableName: '', interval: '', retention: '', premake: '', scope: '', actorFkTableId: '', entityFkTableId: '', prefix: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); // Update -const updated = await db.functionDeploymentModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.storageLogModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.functionDeploymentModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.storageLogModule.delete({ where: { id: '' } }).execute(); ``` -### `db.plansModule` +### `db.transferLogModule` -CRUD operations for PlansModule records. +CRUD operations for TransferLogModule records. **Fields:** @@ -1887,22 +2029,21 @@ CRUD operations for PlansModule records. |-------|------|----------| | `id` | UUID | No | | `databaseId` | UUID | Yes | +| `entityField` | String | Yes | | `schemaId` | UUID | Yes | | `privateSchemaId` | UUID | Yes | | `publicSchemaName` | String | Yes | | `privateSchemaName` | String | Yes | -| `plansTableId` | UUID | Yes | -| `plansTableName` | String | Yes | -| `planLimitsTableId` | UUID | Yes | -| `planLimitsTableName` | String | Yes | -| `planPricingTableId` | UUID | Yes | -| `planOverridesTableId` | UUID | Yes | -| `planMeterLimitsTableId` | UUID | Yes | -| `planCapsTableId` | UUID | Yes | -| `applyPlanFunction` | String | Yes | -| `applyPlanAggregateFunction` | String | Yes | -| `applyBillingPlanFunction` | String | Yes | -| `applyPlanCapsFunction` | String | Yes | +| `transferLogTableId` | UUID | Yes | +| `transferLogTableName` | String | Yes | +| `usageDailyTableId` | UUID | Yes | +| `usageDailyTableName` | String | Yes | +| `interval` | String | Yes | +| `retention` | String | Yes | +| `premake` | Int | Yes | +| `scope` | String | Yes | +| `actorFkTableId` | UUID | Yes | +| `entityFkTableId` | UUID | Yes | | `prefix` | String | Yes | | `apiName` | String | Yes | | `privateApiName` | String | Yes | @@ -1910,20 +2051,20 @@ CRUD operations for PlansModule records. **Operations:** ```typescript -// List all plansModule records -const items = await db.plansModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, plansTableId: true, plansTableName: true, planLimitsTableId: true, planLimitsTableName: true, planPricingTableId: true, planOverridesTableId: true, planMeterLimitsTableId: true, planCapsTableId: true, applyPlanFunction: true, applyPlanAggregateFunction: true, applyBillingPlanFunction: true, applyPlanCapsFunction: true, prefix: true, apiName: true, privateApiName: true } }).execute(); +// List all transferLogModule records +const items = await db.transferLogModule.findMany({ select: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, transferLogTableId: true, transferLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } }).execute(); // Get one by id -const item = await db.plansModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, plansTableId: true, plansTableName: true, planLimitsTableId: true, planLimitsTableName: true, planPricingTableId: true, planOverridesTableId: true, planMeterLimitsTableId: true, planCapsTableId: true, applyPlanFunction: true, applyPlanAggregateFunction: true, applyBillingPlanFunction: true, applyPlanCapsFunction: true, prefix: true, apiName: true, privateApiName: true } }).execute(); +const item = await db.transferLogModule.findOne({ id: '', select: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, transferLogTableId: true, transferLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } }).execute(); // Create -const created = await db.plansModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', plansTableId: '', plansTableName: '', planLimitsTableId: '', planLimitsTableName: '', planPricingTableId: '', planOverridesTableId: '', planMeterLimitsTableId: '', planCapsTableId: '', applyPlanFunction: '', applyPlanAggregateFunction: '', applyBillingPlanFunction: '', applyPlanCapsFunction: '', prefix: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); +const created = await db.transferLogModule.create({ data: { databaseId: '', entityField: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', transferLogTableId: '', transferLogTableName: '', usageDailyTableId: '', usageDailyTableName: '', interval: '', retention: '', premake: '', scope: '', actorFkTableId: '', entityFkTableId: '', prefix: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); // Update -const updated = await db.plansModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.transferLogModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.plansModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.transferLogModule.delete({ where: { id: '' } }).execute(); ``` ### `db.billingProviderModule` @@ -1976,9 +2117,9 @@ const updated = await db.billingProviderModule.update({ where: { id: '' }, const deleted = await db.billingProviderModule.delete({ where: { id: '' } }).execute(); ``` -### `db.dbUsageModule` +### `db.functionDeploymentModule` -CRUD operations for DbUsageModule records. +CRUD operations for FunctionDeploymentModule records. **Fields:** @@ -1986,44 +2127,93 @@ CRUD operations for DbUsageModule records. |-------|------|----------| | `id` | UUID | No | | `databaseId` | UUID | Yes | +| `entityField` | String | Yes | | `schemaId` | UUID | Yes | | `privateSchemaId` | UUID | Yes | | `publicSchemaName` | String | Yes | | `privateSchemaName` | String | Yes | -| `tableStatsLogTableId` | UUID | Yes | -| `tableStatsLogTableName` | String | Yes | -| `tableStatsDailyTableId` | UUID | Yes | -| `tableStatsDailyTableName` | String | Yes | -| `queryStatsLogTableId` | UUID | Yes | -| `queryStatsLogTableName` | String | Yes | -| `queryStatsDailyTableId` | UUID | Yes | -| `queryStatsDailyTableName` | String | Yes | -| `interval` | String | Yes | -| `retention` | String | Yes | -| `premake` | Int | Yes | +| `deploymentsTableId` | UUID | Yes | +| `deploymentEventsTableId` | UUID | Yes | +| `deploymentsTableName` | String | Yes | +| `deploymentEventsTableName` | String | Yes | +| `apiName` | String | Yes | +| `privateApiName` | String | Yes | | `scope` | String | Yes | | `prefix` | String | Yes | +| `entityTableId` | UUID | Yes | +| `functionModuleId` | UUID | Yes | +| `namespaceModuleId` | UUID | Yes | +| `policies` | JSON | Yes | +| `provisions` | JSON | Yes | | `defaultPermissions` | String | Yes | + +**Operations:** + +```typescript +// List all functionDeploymentModule records +const items = await db.functionDeploymentModule.findMany({ select: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, deploymentsTableId: true, deploymentEventsTableId: true, deploymentsTableName: true, deploymentEventsTableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, functionModuleId: true, namespaceModuleId: true, policies: true, provisions: true, defaultPermissions: true } }).execute(); + +// Get one by id +const item = await db.functionDeploymentModule.findOne({ id: '', select: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, deploymentsTableId: true, deploymentEventsTableId: true, deploymentsTableName: true, deploymentEventsTableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, functionModuleId: true, namespaceModuleId: true, policies: true, provisions: true, defaultPermissions: true } }).execute(); + +// Create +const created = await db.functionDeploymentModule.create({ data: { databaseId: '', entityField: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', deploymentsTableId: '', deploymentEventsTableId: '', deploymentsTableName: '', deploymentEventsTableName: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '', functionModuleId: '', namespaceModuleId: '', policies: '', provisions: '', defaultPermissions: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.functionDeploymentModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.functionDeploymentModule.delete({ where: { id: '' } }).execute(); +``` + +### `db.permissionsModule` + +CRUD operations for PermissionsModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `entityField` | String | Yes | +| `schemaId` | UUID | Yes | +| `privateSchemaId` | UUID | Yes | +| `publicSchemaName` | String | Yes | +| `privateSchemaName` | String | Yes | +| `tableId` | UUID | Yes | +| `tableName` | String | Yes | +| `defaultTableId` | UUID | Yes | +| `defaultTableName` | String | Yes | +| `bitlen` | Int | Yes | +| `scope` | String | Yes | +| `prefix` | String | Yes | +| `entityTableId` | UUID | Yes | +| `actorTableId` | UUID | Yes | +| `getPaddedMask` | String | Yes | +| `getMask` | String | Yes | +| `getByMask` | String | Yes | +| `getMaskByName` | String | Yes | | `apiName` | String | Yes | | `privateApiName` | String | Yes | **Operations:** ```typescript -// List all dbUsageModule records -const items = await db.dbUsageModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, tableStatsLogTableId: true, tableStatsLogTableName: true, tableStatsDailyTableId: true, tableStatsDailyTableName: true, queryStatsLogTableId: true, queryStatsLogTableName: true, queryStatsDailyTableId: true, queryStatsDailyTableName: true, interval: true, retention: true, premake: true, scope: true, prefix: true, defaultPermissions: true, apiName: true, privateApiName: true } }).execute(); +// List all permissionsModule records +const items = await db.permissionsModule.findMany({ select: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, tableId: true, tableName: true, defaultTableId: true, defaultTableName: true, bitlen: true, scope: true, prefix: true, entityTableId: true, actorTableId: true, getPaddedMask: true, getMask: true, getByMask: true, getMaskByName: true, apiName: true, privateApiName: true } }).execute(); // Get one by id -const item = await db.dbUsageModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, tableStatsLogTableId: true, tableStatsLogTableName: true, tableStatsDailyTableId: true, tableStatsDailyTableName: true, queryStatsLogTableId: true, queryStatsLogTableName: true, queryStatsDailyTableId: true, queryStatsDailyTableName: true, interval: true, retention: true, premake: true, scope: true, prefix: true, defaultPermissions: true, apiName: true, privateApiName: true } }).execute(); +const item = await db.permissionsModule.findOne({ id: '', select: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, tableId: true, tableName: true, defaultTableId: true, defaultTableName: true, bitlen: true, scope: true, prefix: true, entityTableId: true, actorTableId: true, getPaddedMask: true, getMask: true, getByMask: true, getMaskByName: true, apiName: true, privateApiName: true } }).execute(); // Create -const created = await db.dbUsageModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', tableStatsLogTableId: '', tableStatsLogTableName: '', tableStatsDailyTableId: '', tableStatsDailyTableName: '', queryStatsLogTableId: '', queryStatsLogTableName: '', queryStatsDailyTableId: '', queryStatsDailyTableName: '', interval: '', retention: '', premake: '', scope: '', prefix: '', defaultPermissions: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); +const created = await db.permissionsModule.create({ data: { databaseId: '', entityField: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', tableId: '', tableName: '', defaultTableId: '', defaultTableName: '', bitlen: '', scope: '', prefix: '', entityTableId: '', actorTableId: '', getPaddedMask: '', getMask: '', getByMask: '', getMaskByName: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); // Update -const updated = await db.dbUsageModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.permissionsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.dbUsageModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.permissionsModule.delete({ where: { id: '' } }).execute(); ``` ### `db.graphExecutionModule` @@ -2036,6 +2226,7 @@ CRUD operations for GraphExecutionModule records. |-------|------|----------| | `id` | UUID | No | | `databaseId` | UUID | Yes | +| `entityField` | String | Yes | | `schemaId` | UUID | Yes | | `privateSchemaId` | UUID | Yes | | `publicSchemaName` | String | Yes | @@ -2061,13 +2252,13 @@ CRUD operations for GraphExecutionModule records. ```typescript // List all graphExecutionModule records -const items = await db.graphExecutionModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, graphModuleId: true, scope: true, prefix: true, executionsTableId: true, outputsTableId: true, nodeStatesTableId: true, executionsTableName: true, outputsTableName: true, nodeStatesTableName: true, apiName: true, privateApiName: true, entityTableId: true, policies: true, provisions: true, defaultPermissions: true, createdAt: true } }).execute(); +const items = await db.graphExecutionModule.findMany({ select: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, graphModuleId: true, scope: true, prefix: true, executionsTableId: true, outputsTableId: true, nodeStatesTableId: true, executionsTableName: true, outputsTableName: true, nodeStatesTableName: true, apiName: true, privateApiName: true, entityTableId: true, policies: true, provisions: true, defaultPermissions: true, createdAt: true } }).execute(); // Get one by id -const item = await db.graphExecutionModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, graphModuleId: true, scope: true, prefix: true, executionsTableId: true, outputsTableId: true, nodeStatesTableId: true, executionsTableName: true, outputsTableName: true, nodeStatesTableName: true, apiName: true, privateApiName: true, entityTableId: true, policies: true, provisions: true, defaultPermissions: true, createdAt: true } }).execute(); +const item = await db.graphExecutionModule.findOne({ id: '', select: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, graphModuleId: true, scope: true, prefix: true, executionsTableId: true, outputsTableId: true, nodeStatesTableId: true, executionsTableName: true, outputsTableName: true, nodeStatesTableName: true, apiName: true, privateApiName: true, entityTableId: true, policies: true, provisions: true, defaultPermissions: true, createdAt: true } }).execute(); // Create -const created = await db.graphExecutionModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', graphModuleId: '', scope: '', prefix: '', executionsTableId: '', outputsTableId: '', nodeStatesTableId: '', executionsTableName: '', outputsTableName: '', nodeStatesTableName: '', apiName: '', privateApiName: '', entityTableId: '', policies: '', provisions: '', defaultPermissions: '' }, select: { id: true } }).execute(); +const created = await db.graphExecutionModule.create({ data: { databaseId: '', entityField: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', graphModuleId: '', scope: '', prefix: '', executionsTableId: '', outputsTableId: '', nodeStatesTableId: '', executionsTableName: '', outputsTableName: '', nodeStatesTableName: '', apiName: '', privateApiName: '', entityTableId: '', policies: '', provisions: '', defaultPermissions: '' }, select: { id: true } }).execute(); // Update const updated = await db.graphExecutionModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); @@ -2086,6 +2277,7 @@ CRUD operations for HierarchyModule records. |-------|------|----------| | `id` | UUID | No | | `databaseId` | UUID | Yes | +| `entityField` | String | Yes | | `schemaId` | UUID | Yes | | `privateSchemaId` | UUID | Yes | | `chartEdgesTableId` | UUID | Yes | @@ -2111,13 +2303,13 @@ CRUD operations for HierarchyModule records. ```typescript // List all hierarchyModule records -const items = await db.hierarchyModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, chartEdgesTableId: true, chartEdgesTableName: true, hierarchySprtTableId: true, hierarchySprtTableName: true, chartEdgeGrantsTableId: true, chartEdgeGrantsTableName: true, entityTableId: true, usersTableId: true, scope: true, prefix: true, privateSchemaName: true, sprtTableName: true, rebuildHierarchyFunction: true, getSubordinatesFunction: true, getManagersFunction: true, isManagerOfFunction: true, defaultPermissions: true, createdAt: true } }).execute(); +const items = await db.hierarchyModule.findMany({ select: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, chartEdgesTableId: true, chartEdgesTableName: true, hierarchySprtTableId: true, hierarchySprtTableName: true, chartEdgeGrantsTableId: true, chartEdgeGrantsTableName: true, entityTableId: true, usersTableId: true, scope: true, prefix: true, privateSchemaName: true, sprtTableName: true, rebuildHierarchyFunction: true, getSubordinatesFunction: true, getManagersFunction: true, isManagerOfFunction: true, defaultPermissions: true, createdAt: true } }).execute(); // Get one by id -const item = await db.hierarchyModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, chartEdgesTableId: true, chartEdgesTableName: true, hierarchySprtTableId: true, hierarchySprtTableName: true, chartEdgeGrantsTableId: true, chartEdgeGrantsTableName: true, entityTableId: true, usersTableId: true, scope: true, prefix: true, privateSchemaName: true, sprtTableName: true, rebuildHierarchyFunction: true, getSubordinatesFunction: true, getManagersFunction: true, isManagerOfFunction: true, defaultPermissions: true, createdAt: true } }).execute(); +const item = await db.hierarchyModule.findOne({ id: '', select: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, chartEdgesTableId: true, chartEdgesTableName: true, hierarchySprtTableId: true, hierarchySprtTableName: true, chartEdgeGrantsTableId: true, chartEdgeGrantsTableName: true, entityTableId: true, usersTableId: true, scope: true, prefix: true, privateSchemaName: true, sprtTableName: true, rebuildHierarchyFunction: true, getSubordinatesFunction: true, getManagersFunction: true, isManagerOfFunction: true, defaultPermissions: true, createdAt: true } }).execute(); // Create -const created = await db.hierarchyModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', chartEdgesTableId: '', chartEdgesTableName: '', hierarchySprtTableId: '', hierarchySprtTableName: '', chartEdgeGrantsTableId: '', chartEdgeGrantsTableName: '', entityTableId: '', usersTableId: '', scope: '', prefix: '', privateSchemaName: '', sprtTableName: '', rebuildHierarchyFunction: '', getSubordinatesFunction: '', getManagersFunction: '', isManagerOfFunction: '', defaultPermissions: '' }, select: { id: true } }).execute(); +const created = await db.hierarchyModule.create({ data: { databaseId: '', entityField: '', schemaId: '', privateSchemaId: '', chartEdgesTableId: '', chartEdgesTableName: '', hierarchySprtTableId: '', hierarchySprtTableName: '', chartEdgeGrantsTableId: '', chartEdgeGrantsTableName: '', entityTableId: '', usersTableId: '', scope: '', prefix: '', privateSchemaName: '', sprtTableName: '', rebuildHierarchyFunction: '', getSubordinatesFunction: '', getManagersFunction: '', isManagerOfFunction: '', defaultPermissions: '' }, select: { id: true } }).execute(); // Update const updated = await db.hierarchyModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); @@ -2126,9 +2318,9 @@ const updated = await db.hierarchyModule.update({ where: { id: '' }, data: const deleted = await db.hierarchyModule.delete({ where: { id: '' } }).execute(); ``` -### `db.permissionsModule` +### `db.notificationsModule` -CRUD operations for PermissionsModule records. +CRUD operations for NotificationsModule records. **Fields:** @@ -2136,48 +2328,51 @@ CRUD operations for PermissionsModule records. |-------|------|----------| | `id` | UUID | No | | `databaseId` | UUID | Yes | +| `entityField` | String | Yes | | `schemaId` | UUID | Yes | | `privateSchemaId` | UUID | Yes | | `publicSchemaName` | String | Yes | | `privateSchemaName` | String | Yes | -| `tableId` | UUID | Yes | -| `tableName` | String | Yes | -| `defaultTableId` | UUID | Yes | -| `defaultTableName` | String | Yes | -| `bitlen` | Int | Yes | -| `scope` | String | Yes | -| `prefix` | String | Yes | -| `entityTableId` | UUID | Yes | -| `actorTableId` | UUID | Yes | -| `getPaddedMask` | String | Yes | -| `getMask` | String | Yes | -| `getByMask` | String | Yes | -| `getMaskByName` | String | Yes | +| `notificationsTableId` | UUID | Yes | +| `readStateTableId` | UUID | Yes | +| `preferencesTableId` | UUID | Yes | +| `channelsTableId` | UUID | Yes | +| `deliveryLogTableId` | UUID | Yes | +| `suppressionsTableId` | UUID | Yes | +| `ownerTableId` | UUID | Yes | +| `userSettingsTableId` | UUID | Yes | +| `organizationSettingsTableId` | UUID | Yes | +| `hasChannels` | Boolean | Yes | +| `hasPreferences` | Boolean | Yes | +| `hasSettingsExtension` | Boolean | Yes | +| `hasDigestMetadata` | Boolean | Yes | +| `hasSubscriptions` | Boolean | Yes | +| `defaultPermissions` | String | Yes | | `apiName` | String | Yes | | `privateApiName` | String | Yes | **Operations:** ```typescript -// List all permissionsModule records -const items = await db.permissionsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, tableId: true, tableName: true, defaultTableId: true, defaultTableName: true, bitlen: true, scope: true, prefix: true, entityTableId: true, actorTableId: true, getPaddedMask: true, getMask: true, getByMask: true, getMaskByName: true, apiName: true, privateApiName: true } }).execute(); +// List all notificationsModule records +const items = await db.notificationsModule.findMany({ select: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, notificationsTableId: true, readStateTableId: true, preferencesTableId: true, channelsTableId: true, deliveryLogTableId: true, suppressionsTableId: true, ownerTableId: true, userSettingsTableId: true, organizationSettingsTableId: true, hasChannels: true, hasPreferences: true, hasSettingsExtension: true, hasDigestMetadata: true, hasSubscriptions: true, defaultPermissions: true, apiName: true, privateApiName: true } }).execute(); // Get one by id -const item = await db.permissionsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, tableId: true, tableName: true, defaultTableId: true, defaultTableName: true, bitlen: true, scope: true, prefix: true, entityTableId: true, actorTableId: true, getPaddedMask: true, getMask: true, getByMask: true, getMaskByName: true, apiName: true, privateApiName: true } }).execute(); +const item = await db.notificationsModule.findOne({ id: '', select: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, notificationsTableId: true, readStateTableId: true, preferencesTableId: true, channelsTableId: true, deliveryLogTableId: true, suppressionsTableId: true, ownerTableId: true, userSettingsTableId: true, organizationSettingsTableId: true, hasChannels: true, hasPreferences: true, hasSettingsExtension: true, hasDigestMetadata: true, hasSubscriptions: true, defaultPermissions: true, apiName: true, privateApiName: true } }).execute(); // Create -const created = await db.permissionsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', tableId: '', tableName: '', defaultTableId: '', defaultTableName: '', bitlen: '', scope: '', prefix: '', entityTableId: '', actorTableId: '', getPaddedMask: '', getMask: '', getByMask: '', getMaskByName: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); +const created = await db.notificationsModule.create({ data: { databaseId: '', entityField: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', notificationsTableId: '', readStateTableId: '', preferencesTableId: '', channelsTableId: '', deliveryLogTableId: '', suppressionsTableId: '', ownerTableId: '', userSettingsTableId: '', organizationSettingsTableId: '', hasChannels: '', hasPreferences: '', hasSettingsExtension: '', hasDigestMetadata: '', hasSubscriptions: '', defaultPermissions: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); // Update -const updated = await db.permissionsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.notificationsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.permissionsModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.notificationsModule.delete({ where: { id: '' } }).execute(); ``` -### `db.notificationsModule` +### `db.relationProvision` -CRUD operations for NotificationsModule records. +CRUD operations for RelationProvision records. **Fields:** @@ -2185,45 +2380,46 @@ CRUD operations for NotificationsModule records. |-------|------|----------| | `id` | UUID | No | | `databaseId` | UUID | Yes | -| `schemaId` | UUID | Yes | -| `privateSchemaId` | UUID | Yes | -| `publicSchemaName` | String | Yes | -| `privateSchemaName` | String | Yes | -| `notificationsTableId` | UUID | Yes | -| `readStateTableId` | UUID | Yes | -| `preferencesTableId` | UUID | Yes | -| `channelsTableId` | UUID | Yes | -| `deliveryLogTableId` | UUID | Yes | -| `suppressionsTableId` | UUID | Yes | -| `ownerTableId` | UUID | Yes | -| `userSettingsTableId` | UUID | Yes | -| `organizationSettingsTableId` | UUID | Yes | -| `hasChannels` | Boolean | Yes | -| `hasPreferences` | Boolean | Yes | -| `hasSettingsExtension` | Boolean | Yes | -| `hasDigestMetadata` | Boolean | Yes | -| `hasSubscriptions` | Boolean | Yes | -| `defaultPermissions` | String | Yes | -| `apiName` | String | Yes | -| `privateApiName` | String | Yes | +| `relationType` | String | Yes | +| `sourceTableId` | UUID | Yes | +| `targetTableId` | UUID | Yes | +| `fieldName` | String | Yes | +| `deleteAction` | String | Yes | +| `isRequired` | Boolean | Yes | +| `apiRequired` | Boolean | Yes | +| `junctionTableId` | UUID | Yes | +| `junctionTableName` | String | Yes | +| `junctionSchemaId` | UUID | Yes | +| `sourceFieldName` | String | Yes | +| `targetFieldName` | String | Yes | +| `useCompositeKey` | Boolean | Yes | +| `createIndex` | Boolean | Yes | +| `exposeInApi` | Boolean | Yes | +| `nodes` | JSON | Yes | +| `grants` | JSON | Yes | +| `policies` | JSON | Yes | +| `outFieldId` | UUID | Yes | +| `outJunctionTableId` | UUID | Yes | +| `outSourceFieldId` | UUID | Yes | +| `outTargetFieldId` | UUID | Yes | **Operations:** ```typescript -// List all notificationsModule records -const items = await db.notificationsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, notificationsTableId: true, readStateTableId: true, preferencesTableId: true, channelsTableId: true, deliveryLogTableId: true, suppressionsTableId: true, ownerTableId: true, userSettingsTableId: true, organizationSettingsTableId: true, hasChannels: true, hasPreferences: true, hasSettingsExtension: true, hasDigestMetadata: true, hasSubscriptions: true, defaultPermissions: true, apiName: true, privateApiName: true } }).execute(); +// List all relationProvision records +const items = await db.relationProvision.findMany({ select: { id: true, databaseId: true, relationType: true, sourceTableId: true, targetTableId: true, fieldName: true, deleteAction: true, isRequired: true, apiRequired: true, junctionTableId: true, junctionTableName: true, junctionSchemaId: true, sourceFieldName: true, targetFieldName: true, useCompositeKey: true, createIndex: true, exposeInApi: true, nodes: true, grants: true, policies: true, outFieldId: true, outJunctionTableId: true, outSourceFieldId: true, outTargetFieldId: true } }).execute(); // Get one by id -const item = await db.notificationsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, notificationsTableId: true, readStateTableId: true, preferencesTableId: true, channelsTableId: true, deliveryLogTableId: true, suppressionsTableId: true, ownerTableId: true, userSettingsTableId: true, organizationSettingsTableId: true, hasChannels: true, hasPreferences: true, hasSettingsExtension: true, hasDigestMetadata: true, hasSubscriptions: true, defaultPermissions: true, apiName: true, privateApiName: true } }).execute(); +const item = await db.relationProvision.findOne({ id: '', select: { id: true, databaseId: true, relationType: true, sourceTableId: true, targetTableId: true, fieldName: true, deleteAction: true, isRequired: true, apiRequired: true, junctionTableId: true, junctionTableName: true, junctionSchemaId: true, sourceFieldName: true, targetFieldName: true, useCompositeKey: true, createIndex: true, exposeInApi: true, nodes: true, grants: true, policies: true, outFieldId: true, outJunctionTableId: true, outSourceFieldId: true, outTargetFieldId: true } }).execute(); // Create -const created = await db.notificationsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', notificationsTableId: '', readStateTableId: '', preferencesTableId: '', channelsTableId: '', deliveryLogTableId: '', suppressionsTableId: '', ownerTableId: '', userSettingsTableId: '', organizationSettingsTableId: '', hasChannels: '', hasPreferences: '', hasSettingsExtension: '', hasDigestMetadata: '', hasSubscriptions: '', defaultPermissions: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); +const created = await db.relationProvision.create({ data: { databaseId: '', relationType: '', sourceTableId: '', targetTableId: '', fieldName: '', deleteAction: '', isRequired: '', apiRequired: '', junctionTableId: '', junctionTableName: '', junctionSchemaId: '', sourceFieldName: '', targetFieldName: '', useCompositeKey: '', createIndex: '', exposeInApi: '', nodes: '', grants: '', policies: '', outFieldId: '', outJunctionTableId: '', outSourceFieldId: '', outTargetFieldId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.notificationsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.relationProvision.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.notificationsModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.relationProvision.delete({ where: { id: '' } }).execute(); ``` ### `db.profilesModule` @@ -2236,6 +2432,7 @@ CRUD operations for ProfilesModule records. |-------|------|----------| | `id` | UUID | No | | `databaseId` | UUID | Yes | +| `entityField` | String | Yes | | `schemaId` | UUID | Yes | | `privateSchemaId` | UUID | Yes | | `publicSchemaName` | String | Yes | @@ -2263,13 +2460,13 @@ CRUD operations for ProfilesModule records. ```typescript // List all profilesModule records -const items = await db.profilesModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, tableId: true, tableName: true, profilePermissionsTableId: true, profilePermissionsTableName: true, profileGrantsTableId: true, profileGrantsTableName: true, profileDefinitionGrantsTableId: true, profileDefinitionGrantsTableName: true, profileTemplatesTableId: true, profileTemplatesTableName: true, scope: true, prefix: true, entityTableId: true, actorTableId: true, permissionsTableId: true, membershipsTableId: true, apiName: true, privateApiName: true } }).execute(); +const items = await db.profilesModule.findMany({ select: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, tableId: true, tableName: true, profilePermissionsTableId: true, profilePermissionsTableName: true, profileGrantsTableId: true, profileGrantsTableName: true, profileDefinitionGrantsTableId: true, profileDefinitionGrantsTableName: true, profileTemplatesTableId: true, profileTemplatesTableName: true, scope: true, prefix: true, entityTableId: true, actorTableId: true, permissionsTableId: true, membershipsTableId: true, apiName: true, privateApiName: true } }).execute(); // Get one by id -const item = await db.profilesModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, tableId: true, tableName: true, profilePermissionsTableId: true, profilePermissionsTableName: true, profileGrantsTableId: true, profileGrantsTableName: true, profileDefinitionGrantsTableId: true, profileDefinitionGrantsTableName: true, profileTemplatesTableId: true, profileTemplatesTableName: true, scope: true, prefix: true, entityTableId: true, actorTableId: true, permissionsTableId: true, membershipsTableId: true, apiName: true, privateApiName: true } }).execute(); +const item = await db.profilesModule.findOne({ id: '', select: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, tableId: true, tableName: true, profilePermissionsTableId: true, profilePermissionsTableName: true, profileGrantsTableId: true, profileGrantsTableName: true, profileDefinitionGrantsTableId: true, profileDefinitionGrantsTableName: true, profileTemplatesTableId: true, profileTemplatesTableName: true, scope: true, prefix: true, entityTableId: true, actorTableId: true, permissionsTableId: true, membershipsTableId: true, apiName: true, privateApiName: true } }).execute(); // Create -const created = await db.profilesModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', tableId: '', tableName: '', profilePermissionsTableId: '', profilePermissionsTableName: '', profileGrantsTableId: '', profileGrantsTableName: '', profileDefinitionGrantsTableId: '', profileDefinitionGrantsTableName: '', profileTemplatesTableId: '', profileTemplatesTableName: '', scope: '', prefix: '', entityTableId: '', actorTableId: '', permissionsTableId: '', membershipsTableId: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); +const created = await db.profilesModule.create({ data: { databaseId: '', entityField: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', tableId: '', tableName: '', profilePermissionsTableId: '', profilePermissionsTableName: '', profileGrantsTableId: '', profileGrantsTableName: '', profileDefinitionGrantsTableId: '', profileDefinitionGrantsTableName: '', profileTemplatesTableId: '', profileTemplatesTableName: '', scope: '', prefix: '', entityTableId: '', actorTableId: '', permissionsTableId: '', membershipsTableId: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); // Update const updated = await db.profilesModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); @@ -2307,6 +2504,8 @@ CRUD operations for BillingModule records. | `meterDefaultsTableId` | UUID | Yes | | `meterDefaultsTableName` | String | Yes | | `recordUsageFunction` | String | Yes | +| `sweepExpiredSubscriptionsFunction` | String | Yes | +| `rollupUsageSummaryFunction` | String | Yes | | `prefix` | String | Yes | | `defaultPermissions` | String | Yes | | `apiName` | String | Yes | @@ -2316,13 +2515,13 @@ CRUD operations for BillingModule records. ```typescript // List all billingModule records -const items = await db.billingModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, metersTableId: true, metersTableName: true, planSubscriptionsTableId: true, planSubscriptionsTableName: true, ledgerTableId: true, ledgerTableName: true, balancesTableId: true, balancesTableName: true, meterCreditsTableId: true, meterCreditsTableName: true, meterSourcesTableId: true, meterSourcesTableName: true, meterDefaultsTableId: true, meterDefaultsTableName: true, recordUsageFunction: true, prefix: true, defaultPermissions: true, apiName: true, privateApiName: true } }).execute(); +const items = await db.billingModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, metersTableId: true, metersTableName: true, planSubscriptionsTableId: true, planSubscriptionsTableName: true, ledgerTableId: true, ledgerTableName: true, balancesTableId: true, balancesTableName: true, meterCreditsTableId: true, meterCreditsTableName: true, meterSourcesTableId: true, meterSourcesTableName: true, meterDefaultsTableId: true, meterDefaultsTableName: true, recordUsageFunction: true, sweepExpiredSubscriptionsFunction: true, rollupUsageSummaryFunction: true, prefix: true, defaultPermissions: true, apiName: true, privateApiName: true } }).execute(); // Get one by id -const item = await db.billingModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, metersTableId: true, metersTableName: true, planSubscriptionsTableId: true, planSubscriptionsTableName: true, ledgerTableId: true, ledgerTableName: true, balancesTableId: true, balancesTableName: true, meterCreditsTableId: true, meterCreditsTableName: true, meterSourcesTableId: true, meterSourcesTableName: true, meterDefaultsTableId: true, meterDefaultsTableName: true, recordUsageFunction: true, prefix: true, defaultPermissions: true, apiName: true, privateApiName: true } }).execute(); +const item = await db.billingModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, metersTableId: true, metersTableName: true, planSubscriptionsTableId: true, planSubscriptionsTableName: true, ledgerTableId: true, ledgerTableName: true, balancesTableId: true, balancesTableName: true, meterCreditsTableId: true, meterCreditsTableName: true, meterSourcesTableId: true, meterSourcesTableName: true, meterDefaultsTableId: true, meterDefaultsTableName: true, recordUsageFunction: true, sweepExpiredSubscriptionsFunction: true, rollupUsageSummaryFunction: true, prefix: true, defaultPermissions: true, apiName: true, privateApiName: true } }).execute(); // Create -const created = await db.billingModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', metersTableId: '', metersTableName: '', planSubscriptionsTableId: '', planSubscriptionsTableName: '', ledgerTableId: '', ledgerTableName: '', balancesTableId: '', balancesTableName: '', meterCreditsTableId: '', meterCreditsTableName: '', meterSourcesTableId: '', meterSourcesTableName: '', meterDefaultsTableId: '', meterDefaultsTableName: '', recordUsageFunction: '', prefix: '', defaultPermissions: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); +const created = await db.billingModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', metersTableId: '', metersTableName: '', planSubscriptionsTableId: '', planSubscriptionsTableName: '', ledgerTableId: '', ledgerTableName: '', balancesTableId: '', balancesTableName: '', meterCreditsTableId: '', meterCreditsTableName: '', meterSourcesTableId: '', meterSourcesTableName: '', meterDefaultsTableId: '', meterDefaultsTableName: '', recordUsageFunction: '', sweepExpiredSubscriptionsFunction: '', rollupUsageSummaryFunction: '', prefix: '', defaultPermissions: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); // Update const updated = await db.billingModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); @@ -2331,9 +2530,9 @@ const updated = await db.billingModule.update({ where: { id: '' }, data: { const deleted = await db.billingModule.delete({ where: { id: '' } }).execute(); ``` -### `db.relationProvision` +### `db.resourceModule` -CRUD operations for RelationProvision records. +CRUD operations for ResourceModule records. **Fields:** @@ -2341,46 +2540,48 @@ CRUD operations for RelationProvision records. |-------|------|----------| | `id` | UUID | No | | `databaseId` | UUID | Yes | -| `relationType` | String | Yes | -| `sourceTableId` | UUID | Yes | -| `targetTableId` | UUID | Yes | -| `fieldName` | String | Yes | -| `deleteAction` | String | Yes | -| `isRequired` | Boolean | Yes | -| `apiRequired` | Boolean | Yes | -| `junctionTableId` | UUID | Yes | -| `junctionTableName` | String | Yes | -| `junctionSchemaId` | UUID | Yes | -| `sourceFieldName` | String | Yes | -| `targetFieldName` | String | Yes | -| `useCompositeKey` | Boolean | Yes | -| `createIndex` | Boolean | Yes | -| `exposeInApi` | Boolean | Yes | -| `nodes` | JSON | Yes | -| `grants` | JSON | Yes | +| `entityField` | String | Yes | +| `schemaId` | UUID | Yes | +| `privateSchemaId` | UUID | Yes | +| `publicSchemaName` | String | Yes | +| `privateSchemaName` | String | Yes | +| `resourcesTableId` | UUID | Yes | +| `resourceEventsTableId` | UUID | Yes | +| `resourceStatusChecksTableId` | UUID | Yes | +| `resourceDefinitionsTableId` | UUID | Yes | +| `resourcesTableName` | String | Yes | +| `resourceEventsTableName` | String | Yes | +| `resourceStatusChecksTableName` | String | Yes | +| `resourceDefinitionsTableName` | String | Yes | +| `resolvedRequirementsViewName` | String | Yes | +| `requirementsStateViewName` | String | Yes | +| `apiName` | String | Yes | +| `privateApiName` | String | Yes | +| `scope` | String | Yes | +| `prefix` | String | Yes | +| `entityTableId` | UUID | Yes | +| `namespaceModuleId` | UUID | Yes | | `policies` | JSON | Yes | -| `outFieldId` | UUID | Yes | -| `outJunctionTableId` | UUID | Yes | -| `outSourceFieldId` | UUID | Yes | -| `outTargetFieldId` | UUID | Yes | +| `provisions` | JSON | Yes | +| `defaultPermissions` | String | Yes | **Operations:** ```typescript -// List all relationProvision records -const items = await db.relationProvision.findMany({ select: { id: true, databaseId: true, relationType: true, sourceTableId: true, targetTableId: true, fieldName: true, deleteAction: true, isRequired: true, apiRequired: true, junctionTableId: true, junctionTableName: true, junctionSchemaId: true, sourceFieldName: true, targetFieldName: true, useCompositeKey: true, createIndex: true, exposeInApi: true, nodes: true, grants: true, policies: true, outFieldId: true, outJunctionTableId: true, outSourceFieldId: true, outTargetFieldId: true } }).execute(); +// List all resourceModule records +const items = await db.resourceModule.findMany({ select: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, resourcesTableId: true, resourceEventsTableId: true, resourceStatusChecksTableId: true, resourceDefinitionsTableId: true, resourcesTableName: true, resourceEventsTableName: true, resourceStatusChecksTableName: true, resourceDefinitionsTableName: true, resolvedRequirementsViewName: true, requirementsStateViewName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, namespaceModuleId: true, policies: true, provisions: true, defaultPermissions: true } }).execute(); // Get one by id -const item = await db.relationProvision.findOne({ id: '', select: { id: true, databaseId: true, relationType: true, sourceTableId: true, targetTableId: true, fieldName: true, deleteAction: true, isRequired: true, apiRequired: true, junctionTableId: true, junctionTableName: true, junctionSchemaId: true, sourceFieldName: true, targetFieldName: true, useCompositeKey: true, createIndex: true, exposeInApi: true, nodes: true, grants: true, policies: true, outFieldId: true, outJunctionTableId: true, outSourceFieldId: true, outTargetFieldId: true } }).execute(); +const item = await db.resourceModule.findOne({ id: '', select: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, resourcesTableId: true, resourceEventsTableId: true, resourceStatusChecksTableId: true, resourceDefinitionsTableId: true, resourcesTableName: true, resourceEventsTableName: true, resourceStatusChecksTableName: true, resourceDefinitionsTableName: true, resolvedRequirementsViewName: true, requirementsStateViewName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, namespaceModuleId: true, policies: true, provisions: true, defaultPermissions: true } }).execute(); // Create -const created = await db.relationProvision.create({ data: { databaseId: '', relationType: '', sourceTableId: '', targetTableId: '', fieldName: '', deleteAction: '', isRequired: '', apiRequired: '', junctionTableId: '', junctionTableName: '', junctionSchemaId: '', sourceFieldName: '', targetFieldName: '', useCompositeKey: '', createIndex: '', exposeInApi: '', nodes: '', grants: '', policies: '', outFieldId: '', outJunctionTableId: '', outSourceFieldId: '', outTargetFieldId: '' }, select: { id: true } }).execute(); +const created = await db.resourceModule.create({ data: { databaseId: '', entityField: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', resourcesTableId: '', resourceEventsTableId: '', resourceStatusChecksTableId: '', resourceDefinitionsTableId: '', resourcesTableName: '', resourceEventsTableName: '', resourceStatusChecksTableName: '', resourceDefinitionsTableName: '', resolvedRequirementsViewName: '', requirementsStateViewName: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '', namespaceModuleId: '', policies: '', provisions: '', defaultPermissions: '' }, select: { id: true } }).execute(); // Update -const updated = await db.relationProvision.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.resourceModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.relationProvision.delete({ where: { id: '' } }).execute(); +const deleted = await db.resourceModule.delete({ where: { id: '' } }).execute(); ``` ### `db.userAuthModule` @@ -2439,6 +2640,61 @@ const updated = await db.userAuthModule.update({ where: { id: '' }, data: const deleted = await db.userAuthModule.delete({ where: { id: '' } }).execute(); ``` +### `db.dbUsageModule` + +CRUD operations for DbUsageModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `entityField` | String | Yes | +| `schemaId` | UUID | Yes | +| `privateSchemaId` | UUID | Yes | +| `publicSchemaName` | String | Yes | +| `privateSchemaName` | String | Yes | +| `tableStatsLogTableId` | UUID | Yes | +| `tableStatsLogTableName` | String | Yes | +| `tableStatsDailyTableId` | UUID | Yes | +| `tableStatsDailyTableName` | String | Yes | +| `queryStatsLogTableId` | UUID | Yes | +| `queryStatsLogTableName` | String | Yes | +| `queryStatsDailyTableId` | UUID | Yes | +| `queryStatsDailyTableName` | String | Yes | +| `collectDbTableStatsFunction` | String | Yes | +| `collectDbQueryStatsFunction` | String | Yes | +| `rollupDbTableStatsDailyFunction` | String | Yes | +| `rollupDbQueryStatsDailyFunction` | String | Yes | +| `interval` | String | Yes | +| `retention` | String | Yes | +| `premake` | Int | Yes | +| `scope` | String | Yes | +| `prefix` | String | Yes | +| `defaultPermissions` | String | Yes | +| `apiName` | String | Yes | +| `privateApiName` | String | Yes | + +**Operations:** + +```typescript +// List all dbUsageModule records +const items = await db.dbUsageModule.findMany({ select: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, tableStatsLogTableId: true, tableStatsLogTableName: true, tableStatsDailyTableId: true, tableStatsDailyTableName: true, queryStatsLogTableId: true, queryStatsLogTableName: true, queryStatsDailyTableId: true, queryStatsDailyTableName: true, collectDbTableStatsFunction: true, collectDbQueryStatsFunction: true, rollupDbTableStatsDailyFunction: true, rollupDbQueryStatsDailyFunction: true, interval: true, retention: true, premake: true, scope: true, prefix: true, defaultPermissions: true, apiName: true, privateApiName: true } }).execute(); + +// Get one by id +const item = await db.dbUsageModule.findOne({ id: '', select: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, tableStatsLogTableId: true, tableStatsLogTableName: true, tableStatsDailyTableId: true, tableStatsDailyTableName: true, queryStatsLogTableId: true, queryStatsLogTableName: true, queryStatsDailyTableId: true, queryStatsDailyTableName: true, collectDbTableStatsFunction: true, collectDbQueryStatsFunction: true, rollupDbTableStatsDailyFunction: true, rollupDbQueryStatsDailyFunction: true, interval: true, retention: true, premake: true, scope: true, prefix: true, defaultPermissions: true, apiName: true, privateApiName: true } }).execute(); + +// Create +const created = await db.dbUsageModule.create({ data: { databaseId: '', entityField: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', tableStatsLogTableId: '', tableStatsLogTableName: '', tableStatsDailyTableId: '', tableStatsDailyTableName: '', queryStatsLogTableId: '', queryStatsLogTableName: '', queryStatsDailyTableId: '', queryStatsDailyTableName: '', collectDbTableStatsFunction: '', collectDbQueryStatsFunction: '', rollupDbTableStatsDailyFunction: '', rollupDbQueryStatsDailyFunction: '', interval: '', retention: '', premake: '', scope: '', prefix: '', defaultPermissions: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.dbUsageModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.dbUsageModule.delete({ where: { id: '' } }).execute(); +``` + ### `db.agentModule` CRUD operations for AgentModule records. @@ -2449,6 +2705,7 @@ CRUD operations for AgentModule records. |-------|------|----------| | `id` | UUID | No | | `databaseId` | UUID | Yes | +| `entityField` | String | Yes | | `schemaId` | UUID | Yes | | `privateSchemaId` | UUID | Yes | | `publicSchemaName` | String | Yes | @@ -2487,13 +2744,13 @@ CRUD operations for AgentModule records. ```typescript // List all agentModule records -const items = await db.agentModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, threadTableId: true, messageTableId: true, taskTableId: true, promptsTableId: true, planTableId: true, agentTableId: true, personaTableId: true, resourceTableId: true, threadTableName: true, messageTableName: true, taskTableName: true, promptsTableName: true, planTableName: true, agentTableName: true, personaTableName: true, resourceTableName: true, hasPlans: true, hasResources: true, hasAgents: true, shared: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, policies: true, resources: true, provisions: true, defaultPermissions: true } }).execute(); +const items = await db.agentModule.findMany({ select: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, threadTableId: true, messageTableId: true, taskTableId: true, promptsTableId: true, planTableId: true, agentTableId: true, personaTableId: true, resourceTableId: true, threadTableName: true, messageTableName: true, taskTableName: true, promptsTableName: true, planTableName: true, agentTableName: true, personaTableName: true, resourceTableName: true, hasPlans: true, hasResources: true, hasAgents: true, shared: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, policies: true, resources: true, provisions: true, defaultPermissions: true } }).execute(); // Get one by id -const item = await db.agentModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, threadTableId: true, messageTableId: true, taskTableId: true, promptsTableId: true, planTableId: true, agentTableId: true, personaTableId: true, resourceTableId: true, threadTableName: true, messageTableName: true, taskTableName: true, promptsTableName: true, planTableName: true, agentTableName: true, personaTableName: true, resourceTableName: true, hasPlans: true, hasResources: true, hasAgents: true, shared: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, policies: true, resources: true, provisions: true, defaultPermissions: true } }).execute(); +const item = await db.agentModule.findOne({ id: '', select: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, threadTableId: true, messageTableId: true, taskTableId: true, promptsTableId: true, planTableId: true, agentTableId: true, personaTableId: true, resourceTableId: true, threadTableName: true, messageTableName: true, taskTableName: true, promptsTableName: true, planTableName: true, agentTableName: true, personaTableName: true, resourceTableName: true, hasPlans: true, hasResources: true, hasAgents: true, shared: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, policies: true, resources: true, provisions: true, defaultPermissions: true } }).execute(); // Create -const created = await db.agentModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', threadTableId: '', messageTableId: '', taskTableId: '', promptsTableId: '', planTableId: '', agentTableId: '', personaTableId: '', resourceTableId: '', threadTableName: '', messageTableName: '', taskTableName: '', promptsTableName: '', planTableName: '', agentTableName: '', personaTableName: '', resourceTableName: '', hasPlans: '', hasResources: '', hasAgents: '', shared: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '', policies: '', resources: '', provisions: '', defaultPermissions: '' }, select: { id: true } }).execute(); +const created = await db.agentModule.create({ data: { databaseId: '', entityField: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', threadTableId: '', messageTableId: '', taskTableId: '', promptsTableId: '', planTableId: '', agentTableId: '', personaTableId: '', resourceTableId: '', threadTableName: '', messageTableName: '', taskTableName: '', promptsTableName: '', planTableName: '', agentTableName: '', personaTableName: '', resourceTableName: '', hasPlans: '', hasResources: '', hasAgents: '', shared: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '', policies: '', resources: '', provisions: '', defaultPermissions: '' }, select: { id: true } }).execute(); // Update const updated = await db.agentModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); @@ -2512,6 +2769,7 @@ CRUD operations for LimitsModule records. |-------|------|----------| | `id` | UUID | No | | `databaseId` | UUID | Yes | +| `entityField` | String | Yes | | `schemaId` | UUID | Yes | | `privateSchemaId` | UUID | Yes | | `publicSchemaName` | String | Yes | @@ -2551,13 +2809,13 @@ CRUD operations for LimitsModule records. ```typescript // List all limitsModule records -const items = await db.limitsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, tableId: true, tableName: true, defaultTableId: true, defaultTableName: true, limitIncrementFunction: true, limitDecrementFunction: true, limitIncrementTrigger: true, limitDecrementTrigger: true, limitUpdateTrigger: true, limitCheckFunction: true, limitCreditsTableId: true, eventsTableId: true, creditCodesTableId: true, creditCodeItemsTableId: true, creditRedemptionsTableId: true, aggregateTableId: true, limitCapsTableId: true, limitCapsDefaultsTableId: true, capCheckTrigger: true, resolveCapFunction: true, limitWarningsTableId: true, limitWarningStateTableId: true, limitCheckSoftFunction: true, limitAggregateCheckSoftFunction: true, scope: true, prefix: true, entityTableId: true, actorTableId: true, apiName: true, privateApiName: true } }).execute(); +const items = await db.limitsModule.findMany({ select: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, tableId: true, tableName: true, defaultTableId: true, defaultTableName: true, limitIncrementFunction: true, limitDecrementFunction: true, limitIncrementTrigger: true, limitDecrementTrigger: true, limitUpdateTrigger: true, limitCheckFunction: true, limitCreditsTableId: true, eventsTableId: true, creditCodesTableId: true, creditCodeItemsTableId: true, creditRedemptionsTableId: true, aggregateTableId: true, limitCapsTableId: true, limitCapsDefaultsTableId: true, capCheckTrigger: true, resolveCapFunction: true, limitWarningsTableId: true, limitWarningStateTableId: true, limitCheckSoftFunction: true, limitAggregateCheckSoftFunction: true, scope: true, prefix: true, entityTableId: true, actorTableId: true, apiName: true, privateApiName: true } }).execute(); // Get one by id -const item = await db.limitsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, tableId: true, tableName: true, defaultTableId: true, defaultTableName: true, limitIncrementFunction: true, limitDecrementFunction: true, limitIncrementTrigger: true, limitDecrementTrigger: true, limitUpdateTrigger: true, limitCheckFunction: true, limitCreditsTableId: true, eventsTableId: true, creditCodesTableId: true, creditCodeItemsTableId: true, creditRedemptionsTableId: true, aggregateTableId: true, limitCapsTableId: true, limitCapsDefaultsTableId: true, capCheckTrigger: true, resolveCapFunction: true, limitWarningsTableId: true, limitWarningStateTableId: true, limitCheckSoftFunction: true, limitAggregateCheckSoftFunction: true, scope: true, prefix: true, entityTableId: true, actorTableId: true, apiName: true, privateApiName: true } }).execute(); +const item = await db.limitsModule.findOne({ id: '', select: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, tableId: true, tableName: true, defaultTableId: true, defaultTableName: true, limitIncrementFunction: true, limitDecrementFunction: true, limitIncrementTrigger: true, limitDecrementTrigger: true, limitUpdateTrigger: true, limitCheckFunction: true, limitCreditsTableId: true, eventsTableId: true, creditCodesTableId: true, creditCodeItemsTableId: true, creditRedemptionsTableId: true, aggregateTableId: true, limitCapsTableId: true, limitCapsDefaultsTableId: true, capCheckTrigger: true, resolveCapFunction: true, limitWarningsTableId: true, limitWarningStateTableId: true, limitCheckSoftFunction: true, limitAggregateCheckSoftFunction: true, scope: true, prefix: true, entityTableId: true, actorTableId: true, apiName: true, privateApiName: true } }).execute(); // Create -const created = await db.limitsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', tableId: '', tableName: '', defaultTableId: '', defaultTableName: '', limitIncrementFunction: '', limitDecrementFunction: '', limitIncrementTrigger: '', limitDecrementTrigger: '', limitUpdateTrigger: '', limitCheckFunction: '', limitCreditsTableId: '', eventsTableId: '', creditCodesTableId: '', creditCodeItemsTableId: '', creditRedemptionsTableId: '', aggregateTableId: '', limitCapsTableId: '', limitCapsDefaultsTableId: '', capCheckTrigger: '', resolveCapFunction: '', limitWarningsTableId: '', limitWarningStateTableId: '', limitCheckSoftFunction: '', limitAggregateCheckSoftFunction: '', scope: '', prefix: '', entityTableId: '', actorTableId: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); +const created = await db.limitsModule.create({ data: { databaseId: '', entityField: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', tableId: '', tableName: '', defaultTableId: '', defaultTableName: '', limitIncrementFunction: '', limitDecrementFunction: '', limitIncrementTrigger: '', limitDecrementTrigger: '', limitUpdateTrigger: '', limitCheckFunction: '', limitCreditsTableId: '', eventsTableId: '', creditCodesTableId: '', creditCodeItemsTableId: '', creditRedemptionsTableId: '', aggregateTableId: '', limitCapsTableId: '', limitCapsDefaultsTableId: '', capCheckTrigger: '', resolveCapFunction: '', limitWarningsTableId: '', limitWarningStateTableId: '', limitCheckSoftFunction: '', limitAggregateCheckSoftFunction: '', scope: '', prefix: '', entityTableId: '', actorTableId: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); // Update const updated = await db.limitsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); @@ -2566,75 +2824,6 @@ const updated = await db.limitsModule.update({ where: { id: '' }, data: { const deleted = await db.limitsModule.delete({ where: { id: '' } }).execute(); ``` -### `db.membershipsModule` - -CRUD operations for MembershipsModule records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `schemaId` | UUID | Yes | -| `privateSchemaId` | UUID | Yes | -| `publicSchemaName` | String | Yes | -| `privateSchemaName` | String | Yes | -| `membershipsTableId` | UUID | Yes | -| `membershipsTableName` | String | Yes | -| `membersTableId` | UUID | Yes | -| `membersTableName` | String | Yes | -| `membershipDefaultsTableId` | UUID | Yes | -| `membershipDefaultsTableName` | String | Yes | -| `membershipSettingsTableId` | UUID | Yes | -| `membershipSettingsTableName` | String | Yes | -| `grantsTableId` | UUID | Yes | -| `grantsTableName` | String | Yes | -| `actorTableId` | UUID | Yes | -| `limitsTableId` | UUID | Yes | -| `defaultLimitsTableId` | UUID | Yes | -| `permissionsTableId` | UUID | Yes | -| `defaultPermissionsTableId` | UUID | Yes | -| `sprtTableId` | UUID | Yes | -| `adminGrantsTableId` | UUID | Yes | -| `adminGrantsTableName` | String | Yes | -| `ownerGrantsTableId` | UUID | Yes | -| `ownerGrantsTableName` | String | Yes | -| `scope` | String | Yes | -| `prefix` | String | Yes | -| `entityTableId` | UUID | Yes | -| `entityTableOwnerId` | UUID | Yes | -| `getOrgFn` | String | Yes | -| `actorMaskCheck` | String | Yes | -| `actorPermCheck` | String | Yes | -| `entityIdsByMask` | String | Yes | -| `entityIdsByPerm` | String | Yes | -| `entityIdsFunction` | String | Yes | -| `memberProfilesTableId` | UUID | Yes | -| `permissionDefaultPermissionsTableId` | UUID | Yes | -| `permissionDefaultGrantsTableId` | UUID | Yes | -| `apiName` | String | Yes | -| `privateApiName` | String | Yes | - -**Operations:** - -```typescript -// List all membershipsModule records -const items = await db.membershipsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, membershipsTableId: true, membershipsTableName: true, membersTableId: true, membersTableName: true, membershipDefaultsTableId: true, membershipDefaultsTableName: true, membershipSettingsTableId: true, membershipSettingsTableName: true, grantsTableId: true, grantsTableName: true, actorTableId: true, limitsTableId: true, defaultLimitsTableId: true, permissionsTableId: true, defaultPermissionsTableId: true, sprtTableId: true, adminGrantsTableId: true, adminGrantsTableName: true, ownerGrantsTableId: true, ownerGrantsTableName: true, scope: true, prefix: true, entityTableId: true, entityTableOwnerId: true, getOrgFn: true, actorMaskCheck: true, actorPermCheck: true, entityIdsByMask: true, entityIdsByPerm: true, entityIdsFunction: true, memberProfilesTableId: true, permissionDefaultPermissionsTableId: true, permissionDefaultGrantsTableId: true, apiName: true, privateApiName: true } }).execute(); - -// Get one by id -const item = await db.membershipsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, membershipsTableId: true, membershipsTableName: true, membersTableId: true, membersTableName: true, membershipDefaultsTableId: true, membershipDefaultsTableName: true, membershipSettingsTableId: true, membershipSettingsTableName: true, grantsTableId: true, grantsTableName: true, actorTableId: true, limitsTableId: true, defaultLimitsTableId: true, permissionsTableId: true, defaultPermissionsTableId: true, sprtTableId: true, adminGrantsTableId: true, adminGrantsTableName: true, ownerGrantsTableId: true, ownerGrantsTableName: true, scope: true, prefix: true, entityTableId: true, entityTableOwnerId: true, getOrgFn: true, actorMaskCheck: true, actorPermCheck: true, entityIdsByMask: true, entityIdsByPerm: true, entityIdsFunction: true, memberProfilesTableId: true, permissionDefaultPermissionsTableId: true, permissionDefaultGrantsTableId: true, apiName: true, privateApiName: true } }).execute(); - -// Create -const created = await db.membershipsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', membershipsTableId: '', membershipsTableName: '', membersTableId: '', membersTableName: '', membershipDefaultsTableId: '', membershipDefaultsTableName: '', membershipSettingsTableId: '', membershipSettingsTableName: '', grantsTableId: '', grantsTableName: '', actorTableId: '', limitsTableId: '', defaultLimitsTableId: '', permissionsTableId: '', defaultPermissionsTableId: '', sprtTableId: '', adminGrantsTableId: '', adminGrantsTableName: '', ownerGrantsTableId: '', ownerGrantsTableName: '', scope: '', prefix: '', entityTableId: '', entityTableOwnerId: '', getOrgFn: '', actorMaskCheck: '', actorPermCheck: '', entityIdsByMask: '', entityIdsByPerm: '', entityIdsFunction: '', memberProfilesTableId: '', permissionDefaultPermissionsTableId: '', permissionDefaultGrantsTableId: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.membershipsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.membershipsModule.delete({ where: { id: '' } }).execute(); -``` - ### `db.entityTypeProvision` CRUD operations for EntityTypeProvision records. @@ -2679,7 +2868,6 @@ CRUD operations for EntityTypeProvision records. | `outDefinitionsTableId` | UUID | Yes | | `outInvocationsTableId` | UUID | Yes | | `outExecutionLogsTableId` | UUID | Yes | -| `outSecretDefinitionsTableId` | UUID | Yes | | `outGraphModuleId` | UUID | Yes | | `outGraphsTableId` | UUID | Yes | | `outAgentModuleId` | UUID | Yes | @@ -2688,13 +2876,13 @@ CRUD operations for EntityTypeProvision records. ```typescript // List all entityTypeProvision records -const items = await db.entityTypeProvision.findMany({ select: { id: true, databaseId: true, name: true, prefix: true, description: true, parentEntity: true, tableName: true, isVisible: true, hasLimits: true, hasProfiles: true, hasLevels: true, hasInvites: true, hasInviteAchievements: true, storage: true, namespaces: true, functions: true, graphs: true, agents: true, skipEntityPolicies: true, tableProvision: true, outMembershipType: true, outEntityTableId: true, outEntityTableName: true, outInstalledModules: true, outStorageModuleId: true, outBucketsTableId: true, outFilesTableId: true, outPathSharesTableId: true, outInvitesModuleId: true, outNamespaceModuleId: true, outNamespacesTableId: true, outNamespaceEventsTableId: true, outFunctionModuleId: true, outDefinitionsTableId: true, outInvocationsTableId: true, outExecutionLogsTableId: true, outSecretDefinitionsTableId: true, outGraphModuleId: true, outGraphsTableId: true, outAgentModuleId: true } }).execute(); +const items = await db.entityTypeProvision.findMany({ select: { id: true, databaseId: true, name: true, prefix: true, description: true, parentEntity: true, tableName: true, isVisible: true, hasLimits: true, hasProfiles: true, hasLevels: true, hasInvites: true, hasInviteAchievements: true, storage: true, namespaces: true, functions: true, graphs: true, agents: true, skipEntityPolicies: true, tableProvision: true, outMembershipType: true, outEntityTableId: true, outEntityTableName: true, outInstalledModules: true, outStorageModuleId: true, outBucketsTableId: true, outFilesTableId: true, outPathSharesTableId: true, outInvitesModuleId: true, outNamespaceModuleId: true, outNamespacesTableId: true, outNamespaceEventsTableId: true, outFunctionModuleId: true, outDefinitionsTableId: true, outInvocationsTableId: true, outExecutionLogsTableId: true, outGraphModuleId: true, outGraphsTableId: true, outAgentModuleId: true } }).execute(); // Get one by id -const item = await db.entityTypeProvision.findOne({ id: '', select: { id: true, databaseId: true, name: true, prefix: true, description: true, parentEntity: true, tableName: true, isVisible: true, hasLimits: true, hasProfiles: true, hasLevels: true, hasInvites: true, hasInviteAchievements: true, storage: true, namespaces: true, functions: true, graphs: true, agents: true, skipEntityPolicies: true, tableProvision: true, outMembershipType: true, outEntityTableId: true, outEntityTableName: true, outInstalledModules: true, outStorageModuleId: true, outBucketsTableId: true, outFilesTableId: true, outPathSharesTableId: true, outInvitesModuleId: true, outNamespaceModuleId: true, outNamespacesTableId: true, outNamespaceEventsTableId: true, outFunctionModuleId: true, outDefinitionsTableId: true, outInvocationsTableId: true, outExecutionLogsTableId: true, outSecretDefinitionsTableId: true, outGraphModuleId: true, outGraphsTableId: true, outAgentModuleId: true } }).execute(); +const item = await db.entityTypeProvision.findOne({ id: '', select: { id: true, databaseId: true, name: true, prefix: true, description: true, parentEntity: true, tableName: true, isVisible: true, hasLimits: true, hasProfiles: true, hasLevels: true, hasInvites: true, hasInviteAchievements: true, storage: true, namespaces: true, functions: true, graphs: true, agents: true, skipEntityPolicies: true, tableProvision: true, outMembershipType: true, outEntityTableId: true, outEntityTableName: true, outInstalledModules: true, outStorageModuleId: true, outBucketsTableId: true, outFilesTableId: true, outPathSharesTableId: true, outInvitesModuleId: true, outNamespaceModuleId: true, outNamespacesTableId: true, outNamespaceEventsTableId: true, outFunctionModuleId: true, outDefinitionsTableId: true, outInvocationsTableId: true, outExecutionLogsTableId: true, outGraphModuleId: true, outGraphsTableId: true, outAgentModuleId: true } }).execute(); // Create -const created = await db.entityTypeProvision.create({ data: { databaseId: '', name: '', prefix: '', description: '', parentEntity: '', tableName: '', isVisible: '', hasLimits: '', hasProfiles: '', hasLevels: '', hasInvites: '', hasInviteAchievements: '', storage: '', namespaces: '', functions: '', graphs: '', agents: '', skipEntityPolicies: '', tableProvision: '', outMembershipType: '', outEntityTableId: '', outEntityTableName: '', outInstalledModules: '', outStorageModuleId: '', outBucketsTableId: '', outFilesTableId: '', outPathSharesTableId: '', outInvitesModuleId: '', outNamespaceModuleId: '', outNamespacesTableId: '', outNamespaceEventsTableId: '', outFunctionModuleId: '', outDefinitionsTableId: '', outInvocationsTableId: '', outExecutionLogsTableId: '', outSecretDefinitionsTableId: '', outGraphModuleId: '', outGraphsTableId: '', outAgentModuleId: '' }, select: { id: true } }).execute(); +const created = await db.entityTypeProvision.create({ data: { databaseId: '', name: '', prefix: '', description: '', parentEntity: '', tableName: '', isVisible: '', hasLimits: '', hasProfiles: '', hasLevels: '', hasInvites: '', hasInviteAchievements: '', storage: '', namespaces: '', functions: '', graphs: '', agents: '', skipEntityPolicies: '', tableProvision: '', outMembershipType: '', outEntityTableId: '', outEntityTableName: '', outInstalledModules: '', outStorageModuleId: '', outBucketsTableId: '', outFilesTableId: '', outPathSharesTableId: '', outInvitesModuleId: '', outNamespaceModuleId: '', outNamespacesTableId: '', outNamespaceEventsTableId: '', outFunctionModuleId: '', outDefinitionsTableId: '', outInvocationsTableId: '', outExecutionLogsTableId: '', outGraphModuleId: '', outGraphsTableId: '', outAgentModuleId: '' }, select: { id: true } }).execute(); // Update const updated = await db.entityTypeProvision.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); @@ -2726,6 +2914,7 @@ CRUD operations for StorageModule records. | `policies` | JSON | Yes | | `provisions` | JSON | Yes | | `entityTableId` | UUID | Yes | +| `entityField` | String | Yes | | `endpoint` | String | Yes | | `publicUrlPrefix` | String | Yes | | `provider` | String | Yes | @@ -2755,13 +2944,13 @@ CRUD operations for StorageModule records. ```typescript // List all storageModule records -const items = await db.storageModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, bucketsTableId: true, filesTableId: true, bucketsTableName: true, filesTableName: true, scope: true, prefix: true, policies: true, provisions: true, entityTableId: true, endpoint: true, publicUrlPrefix: true, provider: true, allowedOrigins: true, restrictReads: true, hasPathShares: true, pathSharesTableId: true, uploadUrlExpirySeconds: true, downloadUrlExpirySeconds: true, defaultMaxFileSize: true, maxFilenameLength: true, cacheTtlSeconds: true, maxBulkFiles: true, maxBulkTotalSize: true, hasVersioning: true, hasContentHash: true, hasCustomKeys: true, hasAuditLog: true, hasConfirmUpload: true, confirmUploadDelay: true, fileEventsTableId: true, defaultPermissions: true, apiName: true, privateApiName: true } }).execute(); +const items = await db.storageModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, bucketsTableId: true, filesTableId: true, bucketsTableName: true, filesTableName: true, scope: true, prefix: true, policies: true, provisions: true, entityTableId: true, entityField: true, endpoint: true, publicUrlPrefix: true, provider: true, allowedOrigins: true, restrictReads: true, hasPathShares: true, pathSharesTableId: true, uploadUrlExpirySeconds: true, downloadUrlExpirySeconds: true, defaultMaxFileSize: true, maxFilenameLength: true, cacheTtlSeconds: true, maxBulkFiles: true, maxBulkTotalSize: true, hasVersioning: true, hasContentHash: true, hasCustomKeys: true, hasAuditLog: true, hasConfirmUpload: true, confirmUploadDelay: true, fileEventsTableId: true, defaultPermissions: true, apiName: true, privateApiName: true } }).execute(); // Get one by id -const item = await db.storageModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, bucketsTableId: true, filesTableId: true, bucketsTableName: true, filesTableName: true, scope: true, prefix: true, policies: true, provisions: true, entityTableId: true, endpoint: true, publicUrlPrefix: true, provider: true, allowedOrigins: true, restrictReads: true, hasPathShares: true, pathSharesTableId: true, uploadUrlExpirySeconds: true, downloadUrlExpirySeconds: true, defaultMaxFileSize: true, maxFilenameLength: true, cacheTtlSeconds: true, maxBulkFiles: true, maxBulkTotalSize: true, hasVersioning: true, hasContentHash: true, hasCustomKeys: true, hasAuditLog: true, hasConfirmUpload: true, confirmUploadDelay: true, fileEventsTableId: true, defaultPermissions: true, apiName: true, privateApiName: true } }).execute(); +const item = await db.storageModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, bucketsTableId: true, filesTableId: true, bucketsTableName: true, filesTableName: true, scope: true, prefix: true, policies: true, provisions: true, entityTableId: true, entityField: true, endpoint: true, publicUrlPrefix: true, provider: true, allowedOrigins: true, restrictReads: true, hasPathShares: true, pathSharesTableId: true, uploadUrlExpirySeconds: true, downloadUrlExpirySeconds: true, defaultMaxFileSize: true, maxFilenameLength: true, cacheTtlSeconds: true, maxBulkFiles: true, maxBulkTotalSize: true, hasVersioning: true, hasContentHash: true, hasCustomKeys: true, hasAuditLog: true, hasConfirmUpload: true, confirmUploadDelay: true, fileEventsTableId: true, defaultPermissions: true, apiName: true, privateApiName: true } }).execute(); // Create -const created = await db.storageModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', bucketsTableId: '', filesTableId: '', bucketsTableName: '', filesTableName: '', scope: '', prefix: '', policies: '', provisions: '', entityTableId: '', endpoint: '', publicUrlPrefix: '', provider: '', allowedOrigins: '', restrictReads: '', hasPathShares: '', pathSharesTableId: '', uploadUrlExpirySeconds: '', downloadUrlExpirySeconds: '', defaultMaxFileSize: '', maxFilenameLength: '', cacheTtlSeconds: '', maxBulkFiles: '', maxBulkTotalSize: '', hasVersioning: '', hasContentHash: '', hasCustomKeys: '', hasAuditLog: '', hasConfirmUpload: '', confirmUploadDelay: '', fileEventsTableId: '', defaultPermissions: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); +const created = await db.storageModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', bucketsTableId: '', filesTableId: '', bucketsTableName: '', filesTableName: '', scope: '', prefix: '', policies: '', provisions: '', entityTableId: '', entityField: '', endpoint: '', publicUrlPrefix: '', provider: '', allowedOrigins: '', restrictReads: '', hasPathShares: '', pathSharesTableId: '', uploadUrlExpirySeconds: '', downloadUrlExpirySeconds: '', defaultMaxFileSize: '', maxFilenameLength: '', cacheTtlSeconds: '', maxBulkFiles: '', maxBulkTotalSize: '', hasVersioning: '', hasContentHash: '', hasCustomKeys: '', hasAuditLog: '', hasConfirmUpload: '', confirmUploadDelay: '', fileEventsTableId: '', defaultPermissions: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); // Update const updated = await db.storageModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); @@ -2770,6 +2959,76 @@ const updated = await db.storageModule.update({ where: { id: '' }, data: { const deleted = await db.storageModule.delete({ where: { id: '' } }).execute(); ``` +### `db.membershipsModule` + +CRUD operations for MembershipsModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `entityField` | String | Yes | +| `schemaId` | UUID | Yes | +| `privateSchemaId` | UUID | Yes | +| `publicSchemaName` | String | Yes | +| `privateSchemaName` | String | Yes | +| `membershipsTableId` | UUID | Yes | +| `membershipsTableName` | String | Yes | +| `membersTableId` | UUID | Yes | +| `membersTableName` | String | Yes | +| `membershipDefaultsTableId` | UUID | Yes | +| `membershipDefaultsTableName` | String | Yes | +| `membershipSettingsTableId` | UUID | Yes | +| `membershipSettingsTableName` | String | Yes | +| `grantsTableId` | UUID | Yes | +| `grantsTableName` | String | Yes | +| `actorTableId` | UUID | Yes | +| `limitsTableId` | UUID | Yes | +| `defaultLimitsTableId` | UUID | Yes | +| `permissionsTableId` | UUID | Yes | +| `defaultPermissionsTableId` | UUID | Yes | +| `sprtTableId` | UUID | Yes | +| `adminGrantsTableId` | UUID | Yes | +| `adminGrantsTableName` | String | Yes | +| `ownerGrantsTableId` | UUID | Yes | +| `ownerGrantsTableName` | String | Yes | +| `scope` | String | Yes | +| `prefix` | String | Yes | +| `entityTableId` | UUID | Yes | +| `entityTableOwnerId` | UUID | Yes | +| `getOrgFn` | String | Yes | +| `actorMaskCheck` | String | Yes | +| `actorPermCheck` | String | Yes | +| `entityIdsByMask` | String | Yes | +| `entityIdsByPerm` | String | Yes | +| `entityIdsFunction` | String | Yes | +| `memberProfilesTableId` | UUID | Yes | +| `permissionDefaultPermissionsTableId` | UUID | Yes | +| `permissionDefaultGrantsTableId` | UUID | Yes | +| `apiName` | String | Yes | +| `privateApiName` | String | Yes | + +**Operations:** + +```typescript +// List all membershipsModule records +const items = await db.membershipsModule.findMany({ select: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, membershipsTableId: true, membershipsTableName: true, membersTableId: true, membersTableName: true, membershipDefaultsTableId: true, membershipDefaultsTableName: true, membershipSettingsTableId: true, membershipSettingsTableName: true, grantsTableId: true, grantsTableName: true, actorTableId: true, limitsTableId: true, defaultLimitsTableId: true, permissionsTableId: true, defaultPermissionsTableId: true, sprtTableId: true, adminGrantsTableId: true, adminGrantsTableName: true, ownerGrantsTableId: true, ownerGrantsTableName: true, scope: true, prefix: true, entityTableId: true, entityTableOwnerId: true, getOrgFn: true, actorMaskCheck: true, actorPermCheck: true, entityIdsByMask: true, entityIdsByPerm: true, entityIdsFunction: true, memberProfilesTableId: true, permissionDefaultPermissionsTableId: true, permissionDefaultGrantsTableId: true, apiName: true, privateApiName: true } }).execute(); + +// Get one by id +const item = await db.membershipsModule.findOne({ id: '', select: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, membershipsTableId: true, membershipsTableName: true, membersTableId: true, membersTableName: true, membershipDefaultsTableId: true, membershipDefaultsTableName: true, membershipSettingsTableId: true, membershipSettingsTableName: true, grantsTableId: true, grantsTableName: true, actorTableId: true, limitsTableId: true, defaultLimitsTableId: true, permissionsTableId: true, defaultPermissionsTableId: true, sprtTableId: true, adminGrantsTableId: true, adminGrantsTableName: true, ownerGrantsTableId: true, ownerGrantsTableName: true, scope: true, prefix: true, entityTableId: true, entityTableOwnerId: true, getOrgFn: true, actorMaskCheck: true, actorPermCheck: true, entityIdsByMask: true, entityIdsByPerm: true, entityIdsFunction: true, memberProfilesTableId: true, permissionDefaultPermissionsTableId: true, permissionDefaultGrantsTableId: true, apiName: true, privateApiName: true } }).execute(); + +// Create +const created = await db.membershipsModule.create({ data: { databaseId: '', entityField: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', membershipsTableId: '', membershipsTableName: '', membersTableId: '', membersTableName: '', membershipDefaultsTableId: '', membershipDefaultsTableName: '', membershipSettingsTableId: '', membershipSettingsTableName: '', grantsTableId: '', grantsTableName: '', actorTableId: '', limitsTableId: '', defaultLimitsTableId: '', permissionsTableId: '', defaultPermissionsTableId: '', sprtTableId: '', adminGrantsTableId: '', adminGrantsTableName: '', ownerGrantsTableId: '', ownerGrantsTableName: '', scope: '', prefix: '', entityTableId: '', entityTableOwnerId: '', getOrgFn: '', actorMaskCheck: '', actorPermCheck: '', entityIdsByMask: '', entityIdsByPerm: '', entityIdsFunction: '', memberProfilesTableId: '', permissionDefaultPermissionsTableId: '', permissionDefaultGrantsTableId: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.membershipsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.membershipsModule.delete({ where: { id: '' } }).execute(); +``` + ### `db.eventsModule` CRUD operations for EventsModule records. @@ -2780,6 +3039,7 @@ CRUD operations for EventsModule records. |-------|------|----------| | `id` | UUID | No | | `databaseId` | UUID | Yes | +| `entityField` | String | Yes | | `schemaId` | UUID | Yes | | `privateSchemaId` | UUID | Yes | | `publicSchemaName` | String | Yes | @@ -2806,7 +3066,6 @@ CRUD operations for EventsModule records. | `tgEventBool` | String | Yes | | `upsertAggregate` | String | Yes | | `tgUpdateAggregates` | String | Yes | -| `pruneEvents` | String | Yes | | `stepsRequired` | String | Yes | | `levelAchieved` | String | Yes | | `tgCheckAchievements` | String | Yes | @@ -2827,13 +3086,13 @@ CRUD operations for EventsModule records. ```typescript // List all eventsModule records -const items = await db.eventsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, eventsTableId: true, eventsTableName: true, eventAggregatesTableId: true, eventAggregatesTableName: true, eventTypesTableId: true, eventTypesTableName: true, levelsTableId: true, levelsTableName: true, levelRequirementsTableId: true, levelRequirementsTableName: true, levelGrantsTableId: true, levelGrantsTableName: true, achievementRewardsTableId: true, achievementRewardsTableName: true, recordEvent: true, removeEvent: true, tgEvent: true, tgEventToggle: true, tgEventToggleBool: true, tgEventBool: true, upsertAggregate: true, tgUpdateAggregates: true, pruneEvents: true, stepsRequired: true, levelAchieved: true, tgCheckAchievements: true, grantAchievement: true, tgAchievementReward: true, interval: true, retention: true, premake: true, scope: true, prefix: true, entityTableId: true, actorTableId: true, defaultPermissions: true, apiName: true, privateApiName: true } }).execute(); +const items = await db.eventsModule.findMany({ select: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, eventsTableId: true, eventsTableName: true, eventAggregatesTableId: true, eventAggregatesTableName: true, eventTypesTableId: true, eventTypesTableName: true, levelsTableId: true, levelsTableName: true, levelRequirementsTableId: true, levelRequirementsTableName: true, levelGrantsTableId: true, levelGrantsTableName: true, achievementRewardsTableId: true, achievementRewardsTableName: true, recordEvent: true, removeEvent: true, tgEvent: true, tgEventToggle: true, tgEventToggleBool: true, tgEventBool: true, upsertAggregate: true, tgUpdateAggregates: true, stepsRequired: true, levelAchieved: true, tgCheckAchievements: true, grantAchievement: true, tgAchievementReward: true, interval: true, retention: true, premake: true, scope: true, prefix: true, entityTableId: true, actorTableId: true, defaultPermissions: true, apiName: true, privateApiName: true } }).execute(); // Get one by id -const item = await db.eventsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, eventsTableId: true, eventsTableName: true, eventAggregatesTableId: true, eventAggregatesTableName: true, eventTypesTableId: true, eventTypesTableName: true, levelsTableId: true, levelsTableName: true, levelRequirementsTableId: true, levelRequirementsTableName: true, levelGrantsTableId: true, levelGrantsTableName: true, achievementRewardsTableId: true, achievementRewardsTableName: true, recordEvent: true, removeEvent: true, tgEvent: true, tgEventToggle: true, tgEventToggleBool: true, tgEventBool: true, upsertAggregate: true, tgUpdateAggregates: true, pruneEvents: true, stepsRequired: true, levelAchieved: true, tgCheckAchievements: true, grantAchievement: true, tgAchievementReward: true, interval: true, retention: true, premake: true, scope: true, prefix: true, entityTableId: true, actorTableId: true, defaultPermissions: true, apiName: true, privateApiName: true } }).execute(); +const item = await db.eventsModule.findOne({ id: '', select: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, eventsTableId: true, eventsTableName: true, eventAggregatesTableId: true, eventAggregatesTableName: true, eventTypesTableId: true, eventTypesTableName: true, levelsTableId: true, levelsTableName: true, levelRequirementsTableId: true, levelRequirementsTableName: true, levelGrantsTableId: true, levelGrantsTableName: true, achievementRewardsTableId: true, achievementRewardsTableName: true, recordEvent: true, removeEvent: true, tgEvent: true, tgEventToggle: true, tgEventToggleBool: true, tgEventBool: true, upsertAggregate: true, tgUpdateAggregates: true, stepsRequired: true, levelAchieved: true, tgCheckAchievements: true, grantAchievement: true, tgAchievementReward: true, interval: true, retention: true, premake: true, scope: true, prefix: true, entityTableId: true, actorTableId: true, defaultPermissions: true, apiName: true, privateApiName: true } }).execute(); // Create -const created = await db.eventsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', eventsTableId: '', eventsTableName: '', eventAggregatesTableId: '', eventAggregatesTableName: '', eventTypesTableId: '', eventTypesTableName: '', levelsTableId: '', levelsTableName: '', levelRequirementsTableId: '', levelRequirementsTableName: '', levelGrantsTableId: '', levelGrantsTableName: '', achievementRewardsTableId: '', achievementRewardsTableName: '', recordEvent: '', removeEvent: '', tgEvent: '', tgEventToggle: '', tgEventToggleBool: '', tgEventBool: '', upsertAggregate: '', tgUpdateAggregates: '', pruneEvents: '', stepsRequired: '', levelAchieved: '', tgCheckAchievements: '', grantAchievement: '', tgAchievementReward: '', interval: '', retention: '', premake: '', scope: '', prefix: '', entityTableId: '', actorTableId: '', defaultPermissions: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); +const created = await db.eventsModule.create({ data: { databaseId: '', entityField: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', eventsTableId: '', eventsTableName: '', eventAggregatesTableId: '', eventAggregatesTableName: '', eventTypesTableId: '', eventTypesTableName: '', levelsTableId: '', levelsTableName: '', levelRequirementsTableId: '', levelRequirementsTableName: '', levelGrantsTableId: '', levelGrantsTableName: '', achievementRewardsTableId: '', achievementRewardsTableName: '', recordEvent: '', removeEvent: '', tgEvent: '', tgEventToggle: '', tgEventToggleBool: '', tgEventBool: '', upsertAggregate: '', tgUpdateAggregates: '', stepsRequired: '', levelAchieved: '', tgCheckAchievements: '', grantAchievement: '', tgAchievementReward: '', interval: '', retention: '', premake: '', scope: '', prefix: '', entityTableId: '', actorTableId: '', defaultPermissions: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); // Update const updated = await db.eventsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); diff --git a/sdk/constructive-react/src/modules/orm/index.ts b/sdk/constructive-react/src/modules/orm/index.ts index c425b183cd..6ef3c70258 100644 --- a/sdk/constructive-react/src/modules/orm/index.ts +++ b/sdk/constructive-react/src/modules/orm/index.ts @@ -7,23 +7,21 @@ import { OrmClient } from './client'; import type { OrmClientConfig } from './client'; import { DefaultIdsModuleModel } from './models/defaultIdsModule'; import { MembershipTypesModuleModel } from './models/membershipTypesModule'; -import { UserStateModuleModel } from './models/userStateModule'; import { SessionSecretsModuleModel } from './models/sessionSecretsModule'; -import { ConfigSecretsOrgModuleModel } from './models/configSecretsOrgModule'; import { DevicesModuleModel } from './models/devicesModule'; import { I18NModuleModel } from './models/i18NModule'; -import { UserCredentialsModuleModel } from './models/userCredentialsModule'; import { UserSettingsModuleModel } from './models/userSettingsModule'; -import { ConfigSecretsUserModuleModel } from './models/configSecretsUserModule'; +import { UserStateModuleModel } from './models/userStateModule'; +import { UserCredentialsModuleModel } from './models/userCredentialsModule'; import { ConnectedAccountsModuleModel } from './models/connectedAccountsModule'; import { EmailsModuleModel } from './models/emailsModule'; import { PhoneNumbersModuleModel } from './models/phoneNumbersModule'; import { RateLimitsModuleModel } from './models/rateLimitsModule'; import { UsersModuleModel } from './models/usersModule'; import { WebauthnCredentialsModuleModel } from './models/webauthnCredentialsModule'; +import { ConfigSecretsUserModuleModel } from './models/configSecretsUserModule'; import { CryptoAddressesModuleModel } from './models/cryptoAddressesModule'; import { DenormalizedTableFieldModel } from './models/denormalizedTableField'; -import { IdentityProvidersModuleModel } from './models/identityProvidersModule'; import { RlsModuleModel } from './models/rlsModule'; import { BlueprintModel } from './models/blueprint'; import { BlueprintTemplateModel } from './models/blueprintTemplate'; @@ -31,40 +29,47 @@ import { BlueprintConstructionModel } from './models/blueprintConstruction'; import { CryptoAuthModuleModel } from './models/cryptoAuthModule'; import { SessionsModuleModel } from './models/sessionsModule'; import { SecureTableProvisionModel } from './models/secureTableProvision'; -import { DatabaseProvisionModuleModel } from './models/databaseProvisionModule'; -import { ConfigSecretsModuleModel } from './models/configSecretsModule'; +import { IdentityProvidersModuleModel } from './models/identityProvidersModule'; +import { IntegrationProvidersModuleModel } from './models/integrationProvidersModule'; +import { DbPoolConfigModel } from './models/dbPoolConfig'; +import { RealtimeModuleModel } from './models/realtimeModule'; +import { InfraSecretsModuleModel } from './models/infraSecretsModule'; +import { InternalSecretsModuleModel } from './models/internalSecretsModule'; +import { DbPresetModuleModel } from './models/dbPresetModule'; import { GraphModuleModel } from './models/graphModule'; -import { MerkleStoreModuleModel } from './models/merkleStoreModule'; import { RateLimitMetersModuleModel } from './models/rateLimitMetersModule'; -import { RealtimeModuleModel } from './models/realtimeModule'; +import { InfraConfigModuleModel } from './models/infraConfigModule'; import { WebauthnAuthModuleModel } from './models/webauthnAuthModule'; -import { FunctionInvocationModuleModel } from './models/functionInvocationModule'; +import { PrincipalAuthModuleModel } from './models/principalAuthModule'; +import { DbPoolModel } from './models/dbPool'; import { FunctionModuleModel } from './models/functionModule'; +import { MerkleStoreModuleModel } from './models/merkleStoreModule'; +import { DatabaseProvisionModuleModel } from './models/databaseProvisionModule'; +import { FunctionInvocationModuleModel } from './models/functionInvocationModule'; import { InvitesModuleModel } from './models/invitesModule'; -import { PrincipalAuthModuleModel } from './models/principalAuthModule'; +import { NamespaceModuleModel } from './models/namespaceModule'; +import { PlansModuleModel } from './models/plansModule'; import { ComputeLogModuleModel } from './models/computeLogModule'; import { InferenceLogModuleModel } from './models/inferenceLogModule'; -import { NamespaceModuleModel } from './models/namespaceModule'; -import { ResourceModuleModel } from './models/resourceModule'; import { StorageLogModuleModel } from './models/storageLogModule'; import { TransferLogModuleModel } from './models/transferLogModule'; -import { FunctionDeploymentModuleModel } from './models/functionDeploymentModule'; -import { PlansModuleModel } from './models/plansModule'; import { BillingProviderModuleModel } from './models/billingProviderModule'; -import { DbUsageModuleModel } from './models/dbUsageModule'; +import { FunctionDeploymentModuleModel } from './models/functionDeploymentModule'; +import { PermissionsModuleModel } from './models/permissionsModule'; import { GraphExecutionModuleModel } from './models/graphExecutionModule'; import { HierarchyModuleModel } from './models/hierarchyModule'; -import { PermissionsModuleModel } from './models/permissionsModule'; import { NotificationsModuleModel } from './models/notificationsModule'; +import { RelationProvisionModel } from './models/relationProvision'; import { ProfilesModuleModel } from './models/profilesModule'; import { BillingModuleModel } from './models/billingModule'; -import { RelationProvisionModel } from './models/relationProvision'; +import { ResourceModuleModel } from './models/resourceModule'; import { UserAuthModuleModel } from './models/userAuthModule'; +import { DbUsageModuleModel } from './models/dbUsageModule'; import { AgentModuleModel } from './models/agentModule'; import { LimitsModuleModel } from './models/limitsModule'; -import { MembershipsModuleModel } from './models/membershipsModule'; import { EntityTypeProvisionModel } from './models/entityTypeProvision'; import { StorageModuleModel } from './models/storageModule'; +import { MembershipsModuleModel } from './models/membershipsModule'; import { EventsModuleModel } from './models/eventsModule'; import { createQueryOperations } from './query'; import { createMutationOperations } from './mutation'; @@ -103,23 +108,21 @@ export function createClient(config: OrmClientConfig) { return { defaultIdsModule: new DefaultIdsModuleModel(client), membershipTypesModule: new MembershipTypesModuleModel(client), - userStateModule: new UserStateModuleModel(client), sessionSecretsModule: new SessionSecretsModuleModel(client), - configSecretsOrgModule: new ConfigSecretsOrgModuleModel(client), devicesModule: new DevicesModuleModel(client), i18NModule: new I18NModuleModel(client), - userCredentialsModule: new UserCredentialsModuleModel(client), userSettingsModule: new UserSettingsModuleModel(client), - configSecretsUserModule: new ConfigSecretsUserModuleModel(client), + userStateModule: new UserStateModuleModel(client), + userCredentialsModule: new UserCredentialsModuleModel(client), connectedAccountsModule: new ConnectedAccountsModuleModel(client), emailsModule: new EmailsModuleModel(client), phoneNumbersModule: new PhoneNumbersModuleModel(client), rateLimitsModule: new RateLimitsModuleModel(client), usersModule: new UsersModuleModel(client), webauthnCredentialsModule: new WebauthnCredentialsModuleModel(client), + configSecretsUserModule: new ConfigSecretsUserModuleModel(client), cryptoAddressesModule: new CryptoAddressesModuleModel(client), denormalizedTableField: new DenormalizedTableFieldModel(client), - identityProvidersModule: new IdentityProvidersModuleModel(client), rlsModule: new RlsModuleModel(client), blueprint: new BlueprintModel(client), blueprintTemplate: new BlueprintTemplateModel(client), @@ -127,40 +130,47 @@ export function createClient(config: OrmClientConfig) { cryptoAuthModule: new CryptoAuthModuleModel(client), sessionsModule: new SessionsModuleModel(client), secureTableProvision: new SecureTableProvisionModel(client), - databaseProvisionModule: new DatabaseProvisionModuleModel(client), - configSecretsModule: new ConfigSecretsModuleModel(client), + identityProvidersModule: new IdentityProvidersModuleModel(client), + integrationProvidersModule: new IntegrationProvidersModuleModel(client), + dbPoolConfig: new DbPoolConfigModel(client), + realtimeModule: new RealtimeModuleModel(client), + infraSecretsModule: new InfraSecretsModuleModel(client), + internalSecretsModule: new InternalSecretsModuleModel(client), + dbPresetModule: new DbPresetModuleModel(client), graphModule: new GraphModuleModel(client), - merkleStoreModule: new MerkleStoreModuleModel(client), rateLimitMetersModule: new RateLimitMetersModuleModel(client), - realtimeModule: new RealtimeModuleModel(client), + infraConfigModule: new InfraConfigModuleModel(client), webauthnAuthModule: new WebauthnAuthModuleModel(client), - functionInvocationModule: new FunctionInvocationModuleModel(client), + principalAuthModule: new PrincipalAuthModuleModel(client), + dbPool: new DbPoolModel(client), functionModule: new FunctionModuleModel(client), + merkleStoreModule: new MerkleStoreModuleModel(client), + databaseProvisionModule: new DatabaseProvisionModuleModel(client), + functionInvocationModule: new FunctionInvocationModuleModel(client), invitesModule: new InvitesModuleModel(client), - principalAuthModule: new PrincipalAuthModuleModel(client), + namespaceModule: new NamespaceModuleModel(client), + plansModule: new PlansModuleModel(client), computeLogModule: new ComputeLogModuleModel(client), inferenceLogModule: new InferenceLogModuleModel(client), - namespaceModule: new NamespaceModuleModel(client), - resourceModule: new ResourceModuleModel(client), storageLogModule: new StorageLogModuleModel(client), transferLogModule: new TransferLogModuleModel(client), - functionDeploymentModule: new FunctionDeploymentModuleModel(client), - plansModule: new PlansModuleModel(client), billingProviderModule: new BillingProviderModuleModel(client), - dbUsageModule: new DbUsageModuleModel(client), + functionDeploymentModule: new FunctionDeploymentModuleModel(client), + permissionsModule: new PermissionsModuleModel(client), graphExecutionModule: new GraphExecutionModuleModel(client), hierarchyModule: new HierarchyModuleModel(client), - permissionsModule: new PermissionsModuleModel(client), notificationsModule: new NotificationsModuleModel(client), + relationProvision: new RelationProvisionModel(client), profilesModule: new ProfilesModuleModel(client), billingModule: new BillingModuleModel(client), - relationProvision: new RelationProvisionModel(client), + resourceModule: new ResourceModuleModel(client), userAuthModule: new UserAuthModuleModel(client), + dbUsageModule: new DbUsageModuleModel(client), agentModule: new AgentModuleModel(client), limitsModule: new LimitsModuleModel(client), - membershipsModule: new MembershipsModuleModel(client), entityTypeProvision: new EntityTypeProvisionModel(client), storageModule: new StorageModuleModel(client), + membershipsModule: new MembershipsModuleModel(client), eventsModule: new EventsModuleModel(client), query: createQueryOperations(client), mutation: createMutationOperations(client), diff --git a/sdk/constructive-react/src/modules/orm/input-types.ts b/sdk/constructive-react/src/modules/orm/input-types.ts index 2a57e98f03..88639dce8f 100644 --- a/sdk/constructive-react/src/modules/orm/input-types.ts +++ b/sdk/constructive-react/src/modules/orm/input-types.ts @@ -242,13 +242,6 @@ export interface MembershipTypesModule { tableId?: string | null; tableName?: string | null; } -export interface UserStateModule { - id: string; - databaseId?: string | null; - schemaId?: string | null; - tableId?: string | null; - tableName?: string | null; -} /** 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. */ export interface SessionSecretsModule { id: string; @@ -259,16 +252,6 @@ export interface SessionSecretsModule { /** Resolved reference to sessions_module.sessions_table, used to FK session_secrets.session_id with ON DELETE CASCADE. */ sessionsTableId?: string | null; } -/** Config row for the config_secrets_org_module, which provisions an organization-scoped encrypted key-value secrets store with manage_secrets permission and entity-membership RLS. */ -export interface ConfigSecretsOrgModule { - id: string; - databaseId?: string | null; - schemaId?: string | null; - tableId?: string | null; - tableName?: string | null; - apiName?: string | null; - privateApiName?: string | null; -} export interface DevicesModule { id: string; databaseId?: string | null; @@ -287,37 +270,35 @@ export interface I18NModule { apiName?: string | null; privateApiName?: string | null; } -/** - * Per-user bcrypt credential store (password hashes, API key hashes). - * Always user-scoped with AuthzDirectOwner RLS. Consumed by user_auth_module, - * identity_providers_module, and bootstrap procedures. - */ -export interface UserCredentialsModule { +export interface UserSettingsModule { id: string; databaseId?: string | null; schemaId?: string | null; tableId?: string | null; + ownerTableId?: string | null; tableName?: string | null; apiName?: string | null; - privateApiName?: string | null; } -export interface UserSettingsModule { +export interface UserStateModule { id: string; databaseId?: string | null; + entityField?: string | null; schemaId?: string | null; tableId?: string | null; - ownerTableId?: string | null; tableName?: string | null; - apiName?: string | null; } -export interface ConfigSecretsUserModule { +/** + * Per-user bcrypt credential store (password hashes, API key hashes). + * Always user-scoped with AuthzDirectOwner RLS. Consumed by user_auth_module, + * identity_providers_module, and bootstrap procedures. + */ +export interface UserCredentialsModule { id: string; databaseId?: string | null; + entityField?: string | null; schemaId?: string | null; tableId?: string | null; tableName?: string | null; - configDefinitionsTableId?: string | null; - apiName?: string | null; privateApiName?: string | null; } export interface ConnectedAccountsModule { @@ -388,6 +369,16 @@ export interface WebauthnCredentialsModule { apiName?: string | null; privateApiName?: string | null; } +export interface ConfigSecretsUserModule { + id: string; + databaseId?: string | null; + entityField?: string | null; + schemaId?: string | null; + tableId?: string | null; + tableName?: string | null; + apiName?: string | null; + privateApiName?: string | null; +} export interface CryptoAddressesModule { id: string; databaseId?: string | null; @@ -414,34 +405,6 @@ export interface DenormalizedTableField { funcName?: string | null; funcOrder?: number | null; } -/** - * Entity-aware config row for the identity_providers_module, which provisions a per-database - * identity_providers table holding OAuth2 / OIDC (and future SAML) provider definitions. - * The scope column determines which config_secrets_module table the rotate proc targets - * (app_secrets for app scope, org_secrets for org scope). When scope = platform, - * the secrets table gets a database_id column and platform-level RLS via - * AuthzRelatedEntityMembership through database.owner_id. - * Scoping matrix: - * scope=app → per-database flat, in-app admin manages - * scope=platform → per-database, platform admin manages (generate:constructive) - * scope=org → per-org tenant, org admin manages - */ -export interface IdentityProvidersModule { - id: string; - databaseId?: string | null; - schemaId?: string | null; - /** Private schema that hosts SECURITY DEFINER admin helpers which write to identity_providers (create / update / enable / disable / rotate-secret / delete) and the per-app quota check. */ - privateSchemaId?: string | null; - publicSchemaName?: string | null; - privateSchemaName?: string | null; - tableId?: string | null; - tableName?: string | null; - apiName?: string | null; - privateApiName?: string | null; - scope?: string | null; - prefix?: string | null; - entityTableId?: string | null; -} export interface RlsModule { id: string; databaseId?: string | null; @@ -606,57 +569,132 @@ export interface SecureTableProvision { /** 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; } -/** 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 { +/** + * Entity-aware config row for the identity_providers_module, which provisions a per-database + * identity_providers table holding OAuth2 / OIDC (and future SAML) provider definitions. + * The scope column determines which internal_secrets_module table the rotate proc targets + * (app_secrets for app scope, platform_secrets for platform scope). When scope = database, + * the secrets table gets a database_id column. + * Scoping matrix: + * 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 + */ +export interface IdentityProvidersModule { id: string; - /** The name for the new database */ - databaseName?: string | null; - /** UUID of the user who owns this database */ - ownerId?: string | null; - /** Subdomain prefix for the database. If null, auto-generated using unique_names + random chars */ - subdomain?: string | null; - /** Base domain for the database (e.g., example.com) */ - domain?: string | null; - /** JSONB array of modules to install. Each element is either a string ("users_module") or a [name, options] tuple (["permissions_module", {"scope": "app"}]) */ - modules?: Record | null; - /** Additional configuration options for provisioning */ - options?: Record | null; - /** When true, copies the owner user and password hash from source database to the newly provisioned database */ - bootstrapUser?: boolean | null; - /** Current status: pending, in_progress, completed, or failed */ - status?: string | null; - errorMessage?: string | null; - /** The ID of the provisioned database (set by trigger before RLS check) */ databaseId?: string | null; - createdAt?: string | null; - updatedAt?: string | null; - completedAt?: string | null; + entityField?: string | null; + schemaId?: string | null; + /** Private schema that hosts SECURITY DEFINER admin helpers which write to identity_providers (create / update / enable / disable / rotate-secret / delete) and the per-app quota check. */ + privateSchemaId?: string | null; + publicSchemaName?: string | null; + privateSchemaName?: string | null; + tableId?: string | null; + tableName?: string | null; + apiName?: string | null; + privateApiName?: string | null; + scope?: string | null; + prefix?: string | null; + entityTableId?: string | null; } /** - * Entity-aware PGP-encrypted key-value config/secrets module. Supports app-level (admin-only) - * and org-scoped (per-org secrets with manage_secrets permission) via the scope column. - * User-scoped bcrypt credentials are handled by user_credentials_module. + * Config row for the integration_providers_module, which provisions a per-database + * integration_providers table holding branded, reusable service definitions. + * 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. */ -export interface ConfigSecretsModule { +export interface IntegrationProvidersModule { id: string; databaseId?: string | null; + entityField?: string | null; schemaId?: string | null; privateSchemaId?: string | null; publicSchemaName?: string | null; privateSchemaName?: string | null; tableId?: string | null; - configDefinitionsTableId?: string | null; tableName?: string | null; apiName?: string | null; privateApiName?: string | null; scope?: string | null; prefix?: string | null; entityTableId?: string | null; +} +/** Per-preset configuration for the warm database pool: sizing, TTL, and the platform service org that owns unclaimed warm databases. */ +export interface DbPoolConfig { + id: string; + /** Slug of the db_presets catalog row this pool serves */ + presetSlug?: string | null; + /** Base domain used when provisioning warm databases */ + domain?: string | null; + /** Platform pool service org that owns warm databases until they are claimed */ + poolOwnerId?: string | null; + /** Minimum number of ready warm databases the reconciler maintains */ + min?: number | null; + /** Maximum number of warming + ready databases the reconciler will keep */ + max?: number | null; + /** How long a ready warm database stays claimable before it expires */ + warmTtl?: string | null; + /** When false the reconciler stops warming and the claim path falls through to cold provisioning */ + enabled?: boolean | null; + createdAt?: string | null; + updatedAt?: string | null; +} +export interface RealtimeModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + subscriptionsSchemaId?: string | null; + changeLogTableId?: string | null; + listenerNodeTableId?: string | null; + sourceRegistryTableId?: string | null; + retentionHours?: number | null; + premake?: number | null; + interval?: string | null; + notifyChannel?: string | null; + apiName?: string | null; + privateApiName?: string | null; +} +/** Namespace-backed PGP-encrypted key-value secrets module. Requires namespace_module and emits namespace:sync_secrets job triggers for K8s Secret synchronization. */ +export interface InfraSecretsModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + publicSchemaName?: string | null; + privateSchemaName?: string | null; + secretsTableId?: string | null; + secretsTableName?: string | null; + apiName?: string | null; + privateApiName?: string | null; + scope?: string | null; + prefix?: string | null; + entityTableId?: string | null; + entityField?: string | null; policies?: Record | null; provisions?: Record | null; - hasConfig?: boolean | null; } -export interface GraphModule { +/** 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 { + id: string; + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + publicSchemaName?: string | null; + privateSchemaName?: string | null; + internalSecretsTableId?: string | null; + internalSecretsTableName?: string | null; + apiName?: string | null; + privateApiName?: string | null; + scope?: string | null; + prefix?: string | null; + entityTableId?: string | null; + entityField?: string | null; + policies?: Record | null; + provisions?: Record | null; +} +export interface DbPresetModule { id: string; databaseId?: string | null; publicSchemaId?: string | null; @@ -666,32 +704,33 @@ export interface GraphModule { scope?: string | null; prefix?: string | null; merkleStoreModuleId?: string | null; - graphsTableId?: string | null; + dbPresetsTableId?: string | null; + storeName?: string | null; apiName?: string | null; privateApiName?: string | null; entityTableId?: string | null; policies?: Record | null; provisions?: Record | null; - defaultPermissions?: string[] | null; createdAt?: string | null; } -export interface MerkleStoreModule { +export interface GraphModule { id: string; databaseId?: string | null; - schemaId?: string | null; + entityField?: string | null; + publicSchemaId?: string | null; privateSchemaId?: string | null; publicSchemaName?: string | null; privateSchemaName?: string | null; - objectTableId?: string | null; - storeTableId?: string | null; - commitTableId?: string | null; - refTableId?: string | null; + scope?: string | null; prefix?: string | null; + merkleStoreModuleId?: string | null; + graphsTableId?: string | null; apiName?: string | null; privateApiName?: string | null; - scope?: string | null; - functionPrefix?: string | null; - permissionKey?: string | null; + entityTableId?: string | null; + policies?: Record | null; + provisions?: Record | null; + defaultPermissions?: string[] | null; createdAt?: string | null; } export interface RateLimitMetersModule { @@ -713,21 +752,24 @@ export interface RateLimitMetersModule { apiName?: string | null; privateApiName?: string | null; } -export interface RealtimeModule { +/** Namespace-backed plaintext key-value config module. Requires namespace_module and emits namespace:sync_config job triggers for K8s ConfigMap synchronization. */ +export interface InfraConfigModule { id: string; databaseId?: string | null; + entityField?: string | null; schemaId?: string | null; privateSchemaId?: string | null; - subscriptionsSchemaId?: string | null; - changeLogTableId?: string | null; - listenerNodeTableId?: string | null; - sourceRegistryTableId?: string | null; - retentionHours?: number | null; - premake?: number | null; - interval?: string | null; - notifyChannel?: string | null; + publicSchemaName?: string | null; + privateSchemaName?: string | null; + configTableId?: string | null; + configTableName?: string | null; apiName?: string | null; privateApiName?: string | null; + scope?: string | null; + prefix?: string | null; + entityTableId?: string | null; + policies?: Record | null; + provisions?: Record | null; } export interface WebauthnAuthModule { id: string; @@ -747,37 +789,59 @@ export interface WebauthnAuthModule { residentKey?: string | null; challengeExpiry?: string | null; } -export interface FunctionInvocationModule { +/** Provisions the principals subsystem: a principals table, a principal_entities junction table, create/delete mutations, and org API key management. Supports both human-owned principals (AuthzDirectOwner, AuthzHumanOnly) and org-owned principals (AuthzEntityMembership with is_admin). Org principal and org API key functions are only generated when an org-scoped memberships_module exists for the database. */ +export interface PrincipalAuthModule { id: string; databaseId?: string | null; schemaId?: string | null; - privateSchemaId?: string | null; - publicSchemaName?: string | null; - privateSchemaName?: string | null; - invocationsTableId?: string | null; - executionLogsTableId?: string | null; - invocationsTableName?: string | null; - executionLogsTableName?: string | null; + principalsTableId?: string | null; + principalEntitiesTableId?: string | null; + principalScopeOverridesTableId?: string | null; + usersTableId?: string | null; + sessionsTableId?: string | null; + sessionCredentialsTableId?: string | null; + auditsTableId?: string | null; + principalsTableName?: string | null; + createPrincipalFunction?: string | null; + deletePrincipalFunction?: string | null; + createOrgPrincipalFunction?: string | null; + deleteOrgPrincipalFunction?: string | null; + createOrgApiKeyFunction?: string | null; + revokeOrgApiKeyFunction?: string | null; apiName?: string | null; - privateApiName?: string | null; - scope?: string | null; - prefix?: string | null; - entityTableId?: string | null; - policies?: Record | null; - provisions?: Record | null; - defaultPermissions?: string[] | null; +} +/** Warm database pool entries. Rows are inserted as warming (which enqueues a db_pool:warm_database job), become ready once provisioned, and are handed to users via metaschema_private.db_pool_claim (invoked by metaschema_public.request_database). */ +export interface DbPool { + id: string; + /** Slug of the db_presets catalog row this entry was baked from */ + presetSlug?: string | null; + /** The db_presets merkle commit_id the warm database was baked from; a mismatch with the current head marks the entry stale */ + presetCommitId?: string | null; + databaseId?: string | null; + /** Lifecycle: warming, ready, claimed, stale, expired, or failed */ + status?: string | null; + errorMessage?: string | null; + /** When a ready entry expires (set from db_pool_config.warm_ttl at warm time) */ + expiresAt?: string | null; + /** User the database was transferred to at claim time */ + claimedBy?: string | null; + claimedAt?: string | null; + /** Status of the deferred owner bootstrap job after claim: not_requested, pending, completed, or failed */ + bootstrapStatus?: string | null; + bootstrapError?: string | null; + createdAt?: string | null; + updatedAt?: string | null; } export interface FunctionModule { id: string; databaseId?: string | null; + entityField?: string | null; schemaId?: string | null; privateSchemaId?: string | null; publicSchemaName?: string | null; privateSchemaName?: string | null; definitionsTableId?: string | null; - secretDefinitionsTableId?: string | null; definitionsTableName?: string | null; - secretDefinitionsTableName?: string | null; apiName?: string | null; privateApiName?: string | null; scope?: string | null; @@ -787,92 +851,106 @@ export interface FunctionModule { provisions?: Record | null; defaultPermissions?: string[] | null; } -export interface InvitesModule { +export interface MerkleStoreModule { id: string; databaseId?: string | null; + entityField?: string | null; schemaId?: string | null; privateSchemaId?: string | null; publicSchemaName?: string | null; privateSchemaName?: string | null; - emailsTableId?: string | null; - usersTableId?: string | null; - invitesTableId?: string | null; - claimedInvitesTableId?: string | null; - invitesTableName?: string | null; - claimedInvitesTableName?: string | null; - submitInviteCodeFunction?: string | null; - scope?: string | null; + objectTableId?: string | null; + storeTableId?: string | null; + commitTableId?: string | null; + refTableId?: string | null; prefix?: string | null; - entityTableId?: string | null; apiName?: string | null; privateApiName?: string | null; + scope?: string | null; + functionPrefix?: string | null; + permissionKey?: string | null; + createdAt?: string | null; } -/** Provisions the principals subsystem: a principals table, a principal_entities junction table, create/delete mutations, and org API key management. Supports both human-owned principals (AuthzDirectOwner, AuthzHumanOnly) and org-owned principals (AuthzEntityMembership with is_admin). Org principal and org API key functions are only generated when an org-scoped memberships_module exists for the database. */ -export interface PrincipalAuthModule { +/** Tracks database provisioning requests and their status. The BEFORE INSERT trigger creates the database and sets database_id before RLS policies are evaluated. */ +export interface DatabaseProvisionModule { id: string; - databaseId?: string | null; - schemaId?: string | null; - principalsTableId?: string | null; - principalEntitiesTableId?: string | null; - principalScopeOverridesTableId?: string | null; - usersTableId?: string | null; - sessionsTableId?: string | null; - sessionCredentialsTableId?: string | null; - auditsTableId?: string | null; - principalsTableName?: string | null; - createPrincipalFunction?: string | null; - deletePrincipalFunction?: string | null; - createOrgPrincipalFunction?: string | null; - deleteOrgPrincipalFunction?: string | null; - createOrgApiKeyFunction?: string | null; - revokeOrgApiKeyFunction?: string | null; - apiName?: string | null; + /** The name for the new database */ + databaseName?: string | null; + /** UUID of the user who owns this database */ + ownerId?: string | null; + /** Subdomain prefix for the database. If null, auto-generated using unique_names + random chars */ + subdomain?: string | null; + /** Base domain for the database (e.g., example.com) */ + domain?: string | null; + /** JSONB array of modules to install. Each element is either a string ("users_module") or a [name, options] tuple (["permissions_module", {"scope": "app"}]) */ + modules?: Record | null; + /** Additional configuration options for provisioning */ + options?: Record | null; + /** When true, copies the owner user and password hash from source database to the newly provisioned database */ + bootstrapUser?: boolean | null; + /** Current status: pending, in_progress, completed, or failed */ + status?: string | null; + errorMessage?: string | null; + /** The database the owner user is copied from during bootstrap (captured from JWT context at provision time) */ + sourceDatabaseId?: string | null; + /** Status of the deferred owner bootstrap job: not_requested, pending, completed, or failed */ + bootstrapStatus?: string | null; + /** Error message from the most recent failed bootstrap attempt */ + bootstrapError?: string | null; + /** The ID of the provisioned database (set by trigger before RLS check) */ + databaseId?: string | null; + createdAt?: string | null; + updatedAt?: string | null; + completedAt?: string | null; + /** 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; } -export interface ComputeLogModule { +export interface FunctionInvocationModule { id: string; databaseId?: string | null; + entityField?: string | null; schemaId?: string | null; privateSchemaId?: string | null; publicSchemaName?: string | null; privateSchemaName?: string | null; - computeLogTableId?: string | null; - computeLogTableName?: string | null; - usageDailyTableId?: string | null; - usageDailyTableName?: string | null; - interval?: string | null; - retention?: string | null; - premake?: number | null; - scope?: string | null; - actorFkTableId?: string | null; - entityFkTableId?: string | null; - prefix?: string | null; + invocationsTableId?: string | null; + executionLogsTableId?: string | null; + invocationsTableName?: string | null; + executionLogsTableName?: string | null; apiName?: string | null; privateApiName?: string | null; + scope?: string | null; + prefix?: string | null; + entityTableId?: string | null; + policies?: Record | null; + provisions?: Record | null; + defaultPermissions?: string[] | null; } -export interface InferenceLogModule { +export interface InvitesModule { id: string; databaseId?: string | null; + entityField?: string | null; schemaId?: string | null; privateSchemaId?: string | null; publicSchemaName?: string | null; privateSchemaName?: string | null; - inferenceLogTableId?: string | null; - inferenceLogTableName?: string | null; - usageDailyTableId?: string | null; - usageDailyTableName?: string | null; - interval?: string | null; - retention?: string | null; - premake?: number | null; + emailsTableId?: string | null; + usersTableId?: string | null; + invitesTableId?: string | null; + claimedInvitesTableId?: string | null; + invitesTableName?: string | null; + claimedInvitesTableName?: string | null; + submitInviteCodeFunction?: string | null; scope?: string | null; - actorFkTableId?: string | null; - entityFkTableId?: string | null; prefix?: string | null; + entityTableId?: string | null; apiName?: string | null; privateApiName?: string | null; } export interface NamespaceModule { id: string; databaseId?: string | null; + entityField?: string | null; schemaId?: string | null; privateSchemaId?: string | null; publicSchemaName?: string | null; @@ -886,41 +964,43 @@ export interface NamespaceModule { scope?: string | null; prefix?: string | null; entityTableId?: string | null; - platformNamespacesTableId?: string | null; policies?: Record | null; provisions?: Record | null; defaultPermissions?: string[] | null; } -export interface ResourceModule { +export interface PlansModule { id: string; databaseId?: string | null; schemaId?: string | null; privateSchemaId?: string | null; publicSchemaName?: string | null; privateSchemaName?: string | null; - resourcesTableId?: string | null; - resourceEventsTableId?: string | null; - resourcesTableName?: string | null; - resourceEventsTableName?: string | null; + plansTableId?: string | null; + plansTableName?: string | null; + planLimitsTableId?: string | null; + planLimitsTableName?: string | null; + planPricingTableId?: string | null; + planOverridesTableId?: string | null; + planMeterLimitsTableId?: string | null; + planCapsTableId?: string | null; + applyPlanFunction?: string | null; + applyPlanAggregateFunction?: string | null; + applyBillingPlanFunction?: string | null; + applyPlanCapsFunction?: string | null; + prefix?: string | null; apiName?: string | null; privateApiName?: string | null; - scope?: string | null; - prefix?: string | null; - entityTableId?: string | null; - namespaceModuleId?: string | null; - policies?: Record | null; - provisions?: Record | null; - defaultPermissions?: string[] | null; } -export interface StorageLogModule { +export interface ComputeLogModule { id: string; databaseId?: string | null; + entityField?: string | null; schemaId?: string | null; privateSchemaId?: string | null; publicSchemaName?: string | null; privateSchemaName?: string | null; - storageLogTableId?: string | null; - storageLogTableName?: string | null; + computeLogTableId?: string | null; + computeLogTableName?: string | null; usageDailyTableId?: string | null; usageDailyTableName?: string | null; interval?: string | null; @@ -933,15 +1013,16 @@ export interface StorageLogModule { apiName?: string | null; privateApiName?: string | null; } -export interface TransferLogModule { +export interface InferenceLogModule { id: string; databaseId?: string | null; + entityField?: string | null; schemaId?: string | null; privateSchemaId?: string | null; publicSchemaName?: string | null; privateSchemaName?: string | null; - transferLogTableId?: string | null; - transferLogTableName?: string | null; + inferenceLogTableId?: string | null; + inferenceLogTableName?: string | null; usageDailyTableId?: string | null; usageDailyTableName?: string | null; interval?: string | null; @@ -954,47 +1035,46 @@ export interface TransferLogModule { apiName?: string | null; privateApiName?: string | null; } -export interface FunctionDeploymentModule { +export interface StorageLogModule { id: string; databaseId?: string | null; + entityField?: string | null; schemaId?: string | null; privateSchemaId?: string | null; publicSchemaName?: string | null; privateSchemaName?: string | null; - deploymentsTableId?: string | null; - deploymentEventsTableId?: string | null; - deploymentsTableName?: string | null; - deploymentEventsTableName?: string | null; - apiName?: string | null; - privateApiName?: string | null; + storageLogTableId?: string | null; + storageLogTableName?: string | null; + usageDailyTableId?: string | null; + usageDailyTableName?: string | null; + interval?: string | null; + retention?: string | null; + premake?: number | null; scope?: string | null; + actorFkTableId?: string | null; + entityFkTableId?: string | null; prefix?: string | null; - entityTableId?: string | null; - functionModuleId?: string | null; - namespaceModuleId?: string | null; - policies?: Record | null; - provisions?: Record | null; - defaultPermissions?: string[] | null; + apiName?: string | null; + privateApiName?: string | null; } -export interface PlansModule { +export interface TransferLogModule { id: string; databaseId?: string | null; + entityField?: string | null; schemaId?: string | null; privateSchemaId?: string | null; publicSchemaName?: string | null; privateSchemaName?: string | null; - plansTableId?: string | null; - plansTableName?: string | null; - planLimitsTableId?: string | null; - planLimitsTableName?: string | null; - planPricingTableId?: string | null; - planOverridesTableId?: string | null; - planMeterLimitsTableId?: string | null; - planCapsTableId?: string | null; - applyPlanFunction?: string | null; - applyPlanAggregateFunction?: string | null; - applyBillingPlanFunction?: string | null; - applyPlanCapsFunction?: string | null; + transferLogTableId?: string | null; + transferLogTableName?: string | null; + usageDailyTableId?: string | null; + usageDailyTableName?: string | null; + interval?: string | null; + retention?: string | null; + premake?: number | null; + scope?: string | null; + actorFkTableId?: string | null; + entityFkTableId?: string | null; prefix?: string | null; apiName?: string | null; privateApiName?: string | null; @@ -1023,33 +1103,57 @@ export interface BillingProviderModule { apiName?: string | null; privateApiName?: string | null; } -export interface DbUsageModule { +export interface FunctionDeploymentModule { id: string; databaseId?: string | null; + entityField?: string | null; schemaId?: string | null; privateSchemaId?: string | null; publicSchemaName?: string | null; privateSchemaName?: string | null; - tableStatsLogTableId?: string | null; - tableStatsLogTableName?: string | null; - tableStatsDailyTableId?: string | null; - tableStatsDailyTableName?: string | null; - queryStatsLogTableId?: string | null; - queryStatsLogTableName?: string | null; - queryStatsDailyTableId?: string | null; - queryStatsDailyTableName?: string | null; - interval?: string | null; - retention?: string | null; - premake?: number | null; + deploymentsTableId?: string | null; + deploymentEventsTableId?: string | null; + deploymentsTableName?: string | null; + deploymentEventsTableName?: string | null; + apiName?: string | null; + privateApiName?: string | null; scope?: string | null; prefix?: string | null; + entityTableId?: string | null; + functionModuleId?: string | null; + namespaceModuleId?: string | null; + policies?: Record | null; + provisions?: Record | null; defaultPermissions?: string[] | null; +} +export interface PermissionsModule { + id: string; + databaseId?: string | null; + entityField?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + publicSchemaName?: string | null; + privateSchemaName?: string | null; + tableId?: string | null; + tableName?: string | null; + defaultTableId?: string | null; + defaultTableName?: string | null; + bitlen?: number | null; + scope?: string | null; + prefix?: string | null; + entityTableId?: string | null; + actorTableId?: string | null; + getPaddedMask?: string | null; + getMask?: string | null; + getByMask?: string | null; + getMaskByName?: string | null; apiName?: string | null; privateApiName?: string | null; } export interface GraphExecutionModule { id: string; databaseId?: string | null; + entityField?: string | null; schemaId?: string | null; privateSchemaId?: string | null; publicSchemaName?: string | null; @@ -1074,6 +1178,7 @@ export interface GraphExecutionModule { export interface HierarchyModule { id: string; databaseId?: string | null; + entityField?: string | null; schemaId?: string | null; privateSchemaId?: string | null; chartEdgesTableId?: string | null; @@ -1095,32 +1200,10 @@ export interface HierarchyModule { defaultPermissions?: string[] | null; createdAt?: string | null; } -export interface PermissionsModule { - id: string; - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - publicSchemaName?: string | null; - privateSchemaName?: string | null; - tableId?: string | null; - tableName?: string | null; - defaultTableId?: string | null; - defaultTableName?: string | null; - bitlen?: number | null; - scope?: string | null; - prefix?: string | null; - entityTableId?: string | null; - actorTableId?: string | null; - getPaddedMask?: string | null; - getMask?: string | null; - getByMask?: string | null; - getMaskByName?: string | null; - apiName?: string | null; - privateApiName?: string | null; -} export interface NotificationsModule { id: string; databaseId?: string | null; + entityField?: string | null; schemaId?: string | null; privateSchemaId?: string | null; publicSchemaName?: string | null; @@ -1143,73 +1226,20 @@ export interface NotificationsModule { apiName?: string | null; privateApiName?: string | null; } -export interface ProfilesModule { +/** + * Provisions relational structure between tables. Supports four relation types: + * - RelationBelongsTo: adds a FK field on the source table referencing the target table (child perspective: "tasks belongs to projects" -> tasks.project_id). + * - RelationHasMany: adds a FK field on the target table referencing the source table (parent perspective: "projects has many tasks" -> tasks.project_id). Inverse of BelongsTo. + * - RelationHasOne: adds a FK field with a unique constraint on the source table referencing the target table. Also supports shared-primary-key patterns where the FK field IS the primary key (set field_name to the existing PK field name). + * - RelationManyToMany: creates a junction table with FK fields to both source and target tables, delegating table creation and security to secure_table_provision. + * 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. + */ +export interface RelationProvision { + /** Unique identifier for this relation provision row. */ id: string; - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - publicSchemaName?: string | null; - privateSchemaName?: string | null; - tableId?: string | null; - tableName?: string | null; - profilePermissionsTableId?: string | null; - profilePermissionsTableName?: string | null; - profileGrantsTableId?: string | null; - profileGrantsTableName?: string | null; - profileDefinitionGrantsTableId?: string | null; - profileDefinitionGrantsTableName?: string | null; - profileTemplatesTableId?: string | null; - profileTemplatesTableName?: string | null; - scope?: string | null; - prefix?: string | null; - entityTableId?: string | null; - actorTableId?: string | null; - permissionsTableId?: string | null; - membershipsTableId?: string | null; - apiName?: string | null; - privateApiName?: string | null; -} -export interface BillingModule { - id: string; - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - publicSchemaName?: string | null; - privateSchemaName?: string | null; - metersTableId?: string | null; - metersTableName?: string | null; - planSubscriptionsTableId?: string | null; - planSubscriptionsTableName?: string | null; - ledgerTableId?: string | null; - ledgerTableName?: string | null; - balancesTableId?: string | null; - balancesTableName?: string | null; - meterCreditsTableId?: string | null; - meterCreditsTableName?: string | null; - meterSourcesTableId?: string | null; - meterSourcesTableName?: string | null; - meterDefaultsTableId?: string | null; - meterDefaultsTableName?: string | null; - recordUsageFunction?: string | null; - prefix?: string | null; - defaultPermissions?: string[] | null; - apiName?: string | null; - privateApiName?: string | null; -} -/** - * Provisions relational structure between tables. Supports four relation types: - * - RelationBelongsTo: adds a FK field on the source table referencing the target table (child perspective: "tasks belongs to projects" -> tasks.project_id). - * - RelationHasMany: adds a FK field on the target table referencing the source table (parent perspective: "projects has many tasks" -> tasks.project_id). Inverse of BelongsTo. - * - RelationHasOne: adds a FK field with a unique constraint on the source table referencing the target table. Also supports shared-primary-key patterns where the FK field IS the primary key (set field_name to the existing PK field name). - * - RelationManyToMany: creates a junction table with FK fields to both source and target tables, delegating table creation and security to secure_table_provision. - * 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. - */ -export interface RelationProvision { - /** Unique identifier for this relation provision row. */ - id: string; - /** The database this relation belongs to. Required. Must match the database of both source_table_id and target_table_id. */ + /** The database this relation belongs to. Required. Must match the database of both source_table_id and target_table_id. */ databaseId?: string | null; /** * The type of relation to create. Uses SuperCase naming: @@ -1329,6 +1359,90 @@ export interface RelationProvision { /** Output column for RelationManyToMany: the UUID of the FK field on the junction table referencing the target table. Populated by the trigger. NULL for RelationBelongsTo/RelationHasOne. Callers should not set this directly. */ outTargetFieldId?: string | null; } +export interface ProfilesModule { + id: string; + databaseId?: string | null; + entityField?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + publicSchemaName?: string | null; + privateSchemaName?: string | null; + tableId?: string | null; + tableName?: string | null; + profilePermissionsTableId?: string | null; + profilePermissionsTableName?: string | null; + profileGrantsTableId?: string | null; + profileGrantsTableName?: string | null; + profileDefinitionGrantsTableId?: string | null; + profileDefinitionGrantsTableName?: string | null; + profileTemplatesTableId?: string | null; + profileTemplatesTableName?: string | null; + scope?: string | null; + prefix?: string | null; + entityTableId?: string | null; + actorTableId?: string | null; + permissionsTableId?: string | null; + membershipsTableId?: string | null; + apiName?: string | null; + privateApiName?: string | null; +} +export interface BillingModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + publicSchemaName?: string | null; + privateSchemaName?: string | null; + metersTableId?: string | null; + metersTableName?: string | null; + planSubscriptionsTableId?: string | null; + planSubscriptionsTableName?: string | null; + ledgerTableId?: string | null; + ledgerTableName?: string | null; + balancesTableId?: string | null; + balancesTableName?: string | null; + meterCreditsTableId?: string | null; + meterCreditsTableName?: string | null; + meterSourcesTableId?: string | null; + meterSourcesTableName?: string | null; + meterDefaultsTableId?: string | null; + meterDefaultsTableName?: string | null; + recordUsageFunction?: string | null; + sweepExpiredSubscriptionsFunction?: string | null; + rollupUsageSummaryFunction?: string | null; + prefix?: string | null; + defaultPermissions?: string[] | null; + apiName?: string | null; + privateApiName?: string | null; +} +export interface ResourceModule { + id: string; + databaseId?: string | null; + entityField?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + publicSchemaName?: string | null; + privateSchemaName?: string | null; + resourcesTableId?: string | null; + resourceEventsTableId?: string | null; + resourceStatusChecksTableId?: string | null; + resourceDefinitionsTableId?: string | null; + resourcesTableName?: string | null; + resourceEventsTableName?: string | null; + resourceStatusChecksTableName?: string | null; + resourceDefinitionsTableName?: string | null; + resolvedRequirementsViewName?: string | null; + requirementsStateViewName?: string | null; + apiName?: string | null; + privateApiName?: string | null; + scope?: string | null; + prefix?: string | null; + entityTableId?: string | null; + namespaceModuleId?: string | null; + policies?: Record | null; + provisions?: Record | null; + defaultPermissions?: string[] | null; +} export interface UserAuthModule { id: string; databaseId?: string | null; @@ -1359,9 +1473,39 @@ export interface UserAuthModule { apiName?: string | null; privateApiName?: string | null; } +export interface DbUsageModule { + id: string; + databaseId?: string | null; + entityField?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + publicSchemaName?: string | null; + privateSchemaName?: string | null; + tableStatsLogTableId?: string | null; + tableStatsLogTableName?: string | null; + tableStatsDailyTableId?: string | null; + tableStatsDailyTableName?: string | null; + queryStatsLogTableId?: string | null; + queryStatsLogTableName?: string | null; + queryStatsDailyTableId?: string | null; + queryStatsDailyTableName?: string | null; + collectDbTableStatsFunction?: string | null; + collectDbQueryStatsFunction?: string | null; + rollupDbTableStatsDailyFunction?: string | null; + rollupDbQueryStatsDailyFunction?: string | null; + interval?: string | null; + retention?: string | null; + premake?: number | null; + scope?: string | null; + prefix?: string | null; + defaultPermissions?: string[] | null; + apiName?: string | null; + privateApiName?: string | null; +} export interface AgentModule { id: string; databaseId?: string | null; + entityField?: string | null; schemaId?: string | null; privateSchemaId?: string | null; publicSchemaName?: string | null; @@ -1399,6 +1543,7 @@ export interface AgentModule { export interface LimitsModule { id: string; databaseId?: string | null; + entityField?: string | null; schemaId?: string | null; privateSchemaId?: string | null; publicSchemaName?: string | null; @@ -1434,49 +1579,6 @@ export interface LimitsModule { apiName?: string | null; privateApiName?: string | null; } -export interface MembershipsModule { - id: string; - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - publicSchemaName?: string | null; - privateSchemaName?: string | null; - membershipsTableId?: string | null; - membershipsTableName?: string | null; - membersTableId?: string | null; - membersTableName?: string | null; - membershipDefaultsTableId?: string | null; - membershipDefaultsTableName?: string | null; - membershipSettingsTableId?: string | null; - membershipSettingsTableName?: string | null; - grantsTableId?: string | null; - grantsTableName?: string | null; - actorTableId?: string | null; - limitsTableId?: string | null; - defaultLimitsTableId?: string | null; - permissionsTableId?: string | null; - defaultPermissionsTableId?: string | null; - sprtTableId?: string | null; - adminGrantsTableId?: string | null; - adminGrantsTableName?: string | null; - ownerGrantsTableId?: string | null; - ownerGrantsTableName?: string | null; - scope?: string | null; - prefix?: string | null; - entityTableId?: string | null; - entityTableOwnerId?: string | null; - getOrgFn?: string | null; - actorMaskCheck?: string | null; - actorPermCheck?: string | null; - entityIdsByMask?: string | null; - entityIdsByPerm?: string | null; - entityIdsFunction?: string | null; - memberProfilesTableId?: string | null; - permissionDefaultPermissionsTableId?: string | null; - permissionDefaultGrantsTableId?: string | null; - apiName?: string | null; - privateApiName?: string | null; -} /** * 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). @@ -1734,7 +1836,6 @@ export interface EntityTypeProvision { outDefinitionsTableId?: string | null; outInvocationsTableId?: string | null; outExecutionLogsTableId?: string | null; - outSecretDefinitionsTableId?: string | null; outGraphModuleId?: string | null; outGraphsTableId?: string | null; outAgentModuleId?: string | null; @@ -1755,6 +1856,7 @@ export interface StorageModule { policies?: Record | null; provisions?: Record | null; entityTableId?: string | null; + entityField?: string | null; endpoint?: string | null; publicUrlPrefix?: string | null; provider?: string | null; @@ -1780,9 +1882,54 @@ export interface StorageModule { apiName?: string | null; privateApiName?: string | null; } +export interface MembershipsModule { + id: string; + databaseId?: string | null; + entityField?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + publicSchemaName?: string | null; + privateSchemaName?: string | null; + membershipsTableId?: string | null; + membershipsTableName?: string | null; + membersTableId?: string | null; + membersTableName?: string | null; + membershipDefaultsTableId?: string | null; + membershipDefaultsTableName?: string | null; + membershipSettingsTableId?: string | null; + membershipSettingsTableName?: string | null; + grantsTableId?: string | null; + grantsTableName?: string | null; + actorTableId?: string | null; + limitsTableId?: string | null; + defaultLimitsTableId?: string | null; + permissionsTableId?: string | null; + defaultPermissionsTableId?: string | null; + sprtTableId?: string | null; + adminGrantsTableId?: string | null; + adminGrantsTableName?: string | null; + ownerGrantsTableId?: string | null; + ownerGrantsTableName?: string | null; + scope?: string | null; + prefix?: string | null; + entityTableId?: string | null; + entityTableOwnerId?: string | null; + getOrgFn?: string | null; + actorMaskCheck?: string | null; + actorPermCheck?: string | null; + entityIdsByMask?: string | null; + entityIdsByPerm?: string | null; + entityIdsFunction?: string | null; + memberProfilesTableId?: string | null; + permissionDefaultPermissionsTableId?: string | null; + permissionDefaultGrantsTableId?: string | null; + apiName?: string | null; + privateApiName?: string | null; +} export interface EventsModule { id: string; databaseId?: string | null; + entityField?: string | null; schemaId?: string | null; privateSchemaId?: string | null; publicSchemaName?: string | null; @@ -1809,7 +1956,6 @@ export interface EventsModule { tgEventBool?: string | null; upsertAggregate?: string | null; tgUpdateAggregates?: string | null; - pruneEvents?: string | null; stepsRequired?: string | null; levelAchieved?: string | null; tgCheckAchievements?: string | null; @@ -1841,23 +1987,21 @@ export interface PageInfo { // ============ Entity Relation Types ============ export interface DefaultIdsModuleRelations {} export interface MembershipTypesModuleRelations {} -export interface UserStateModuleRelations {} export interface SessionSecretsModuleRelations {} -export interface ConfigSecretsOrgModuleRelations {} export interface DevicesModuleRelations {} export interface I18NModuleRelations {} -export interface UserCredentialsModuleRelations {} export interface UserSettingsModuleRelations {} -export interface ConfigSecretsUserModuleRelations {} +export interface UserStateModuleRelations {} +export interface UserCredentialsModuleRelations {} export interface ConnectedAccountsModuleRelations {} export interface EmailsModuleRelations {} export interface PhoneNumbersModuleRelations {} export interface RateLimitsModuleRelations {} export interface UsersModuleRelations {} export interface WebauthnCredentialsModuleRelations {} +export interface ConfigSecretsUserModuleRelations {} export interface CryptoAddressesModuleRelations {} export interface DenormalizedTableFieldRelations {} -export interface IdentityProvidersModuleRelations {} export interface RlsModuleRelations {} export interface BlueprintRelations { template?: BlueprintTemplate | null; @@ -1874,68 +2018,74 @@ export interface BlueprintConstructionRelations { export interface CryptoAuthModuleRelations {} export interface SessionsModuleRelations {} export interface SecureTableProvisionRelations {} -export interface DatabaseProvisionModuleRelations {} -export interface ConfigSecretsModuleRelations {} +export interface IdentityProvidersModuleRelations {} +export interface IntegrationProvidersModuleRelations {} +export interface DbPoolConfigRelations {} +export interface RealtimeModuleRelations {} +export interface InfraSecretsModuleRelations {} +export interface InternalSecretsModuleRelations {} +export interface DbPresetModuleRelations { + merkleStoreModule?: MerkleStoreModule | null; +} export interface GraphModuleRelations { merkleStoreModule?: MerkleStoreModule | null; } -export interface MerkleStoreModuleRelations { - graphModules?: ConnectionResult; -} export interface RateLimitMetersModuleRelations {} -export interface RealtimeModuleRelations {} +export interface InfraConfigModuleRelations {} export interface WebauthnAuthModuleRelations {} -export interface FunctionInvocationModuleRelations {} +export interface PrincipalAuthModuleRelations {} +export interface DbPoolRelations {} export interface FunctionModuleRelations {} +export interface MerkleStoreModuleRelations { + graphModules?: ConnectionResult; + dbPresetModules?: ConnectionResult; +} +export interface DatabaseProvisionModuleRelations {} +export interface FunctionInvocationModuleRelations {} export interface InvitesModuleRelations {} -export interface PrincipalAuthModuleRelations {} +export interface NamespaceModuleRelations {} +export interface PlansModuleRelations {} export interface ComputeLogModuleRelations {} export interface InferenceLogModuleRelations {} -export interface NamespaceModuleRelations {} -export interface ResourceModuleRelations { - namespaceModule?: NamespaceModule | null; -} export interface StorageLogModuleRelations {} export interface TransferLogModuleRelations {} +export interface BillingProviderModuleRelations {} export interface FunctionDeploymentModuleRelations { functionModule?: FunctionModule | null; namespaceModule?: NamespaceModule | null; } -export interface PlansModuleRelations {} -export interface BillingProviderModuleRelations {} -export interface DbUsageModuleRelations {} +export interface PermissionsModuleRelations {} export interface GraphExecutionModuleRelations { graphModule?: GraphModule | null; } export interface HierarchyModuleRelations {} -export interface PermissionsModuleRelations {} export interface NotificationsModuleRelations {} +export interface RelationProvisionRelations {} export interface ProfilesModuleRelations {} export interface BillingModuleRelations {} -export interface RelationProvisionRelations {} +export interface ResourceModuleRelations { + namespaceModule?: NamespaceModule | null; +} export interface UserAuthModuleRelations {} +export interface DbUsageModuleRelations {} export interface AgentModuleRelations {} export interface LimitsModuleRelations {} -export interface MembershipsModuleRelations {} export interface EntityTypeProvisionRelations {} export interface StorageModuleRelations {} +export interface MembershipsModuleRelations {} export interface EventsModuleRelations {} // ============ Entity Types With Relations ============ export type DefaultIdsModuleWithRelations = DefaultIdsModule & DefaultIdsModuleRelations; export type MembershipTypesModuleWithRelations = MembershipTypesModule & MembershipTypesModuleRelations; -export type UserStateModuleWithRelations = UserStateModule & UserStateModuleRelations; export type SessionSecretsModuleWithRelations = SessionSecretsModule & SessionSecretsModuleRelations; -export type ConfigSecretsOrgModuleWithRelations = ConfigSecretsOrgModule & - ConfigSecretsOrgModuleRelations; export type DevicesModuleWithRelations = DevicesModule & DevicesModuleRelations; export type I18NModuleWithRelations = I18NModule & I18NModuleRelations; +export type UserSettingsModuleWithRelations = UserSettingsModule & UserSettingsModuleRelations; +export type UserStateModuleWithRelations = UserStateModule & UserStateModuleRelations; export type UserCredentialsModuleWithRelations = UserCredentialsModule & UserCredentialsModuleRelations; -export type UserSettingsModuleWithRelations = UserSettingsModule & UserSettingsModuleRelations; -export type ConfigSecretsUserModuleWithRelations = ConfigSecretsUserModule & - ConfigSecretsUserModuleRelations; export type ConnectedAccountsModuleWithRelations = ConnectedAccountsModule & ConnectedAccountsModuleRelations; export type EmailsModuleWithRelations = EmailsModule & EmailsModuleRelations; @@ -1944,12 +2094,12 @@ export type RateLimitsModuleWithRelations = RateLimitsModule & RateLimitsModuleR export type UsersModuleWithRelations = UsersModule & UsersModuleRelations; export type WebauthnCredentialsModuleWithRelations = WebauthnCredentialsModule & WebauthnCredentialsModuleRelations; +export type ConfigSecretsUserModuleWithRelations = ConfigSecretsUserModule & + ConfigSecretsUserModuleRelations; export type CryptoAddressesModuleWithRelations = CryptoAddressesModule & CryptoAddressesModuleRelations; export type DenormalizedTableFieldWithRelations = DenormalizedTableField & DenormalizedTableFieldRelations; -export type IdentityProvidersModuleWithRelations = IdentityProvidersModule & - IdentityProvidersModuleRelations; export type RlsModuleWithRelations = RlsModule & RlsModuleRelations; export type BlueprintWithRelations = Blueprint & BlueprintRelations; export type BlueprintTemplateWithRelations = BlueprintTemplate & BlueprintTemplateRelations; @@ -1959,46 +2109,56 @@ export type CryptoAuthModuleWithRelations = CryptoAuthModule & CryptoAuthModuleR export type SessionsModuleWithRelations = SessionsModule & SessionsModuleRelations; export type SecureTableProvisionWithRelations = SecureTableProvision & SecureTableProvisionRelations; -export type DatabaseProvisionModuleWithRelations = DatabaseProvisionModule & - DatabaseProvisionModuleRelations; -export type ConfigSecretsModuleWithRelations = ConfigSecretsModule & ConfigSecretsModuleRelations; +export type IdentityProvidersModuleWithRelations = IdentityProvidersModule & + IdentityProvidersModuleRelations; +export type IntegrationProvidersModuleWithRelations = IntegrationProvidersModule & + IntegrationProvidersModuleRelations; +export type DbPoolConfigWithRelations = DbPoolConfig & DbPoolConfigRelations; +export type RealtimeModuleWithRelations = RealtimeModule & RealtimeModuleRelations; +export type InfraSecretsModuleWithRelations = InfraSecretsModule & InfraSecretsModuleRelations; +export type InternalSecretsModuleWithRelations = InternalSecretsModule & + InternalSecretsModuleRelations; +export type DbPresetModuleWithRelations = DbPresetModule & DbPresetModuleRelations; export type GraphModuleWithRelations = GraphModule & GraphModuleRelations; -export type MerkleStoreModuleWithRelations = MerkleStoreModule & MerkleStoreModuleRelations; export type RateLimitMetersModuleWithRelations = RateLimitMetersModule & RateLimitMetersModuleRelations; -export type RealtimeModuleWithRelations = RealtimeModule & RealtimeModuleRelations; +export type InfraConfigModuleWithRelations = InfraConfigModule & InfraConfigModuleRelations; export type WebauthnAuthModuleWithRelations = WebauthnAuthModule & WebauthnAuthModuleRelations; +export type PrincipalAuthModuleWithRelations = PrincipalAuthModule & PrincipalAuthModuleRelations; +export type DbPoolWithRelations = DbPool & DbPoolRelations; +export type FunctionModuleWithRelations = FunctionModule & FunctionModuleRelations; +export type MerkleStoreModuleWithRelations = MerkleStoreModule & MerkleStoreModuleRelations; +export type DatabaseProvisionModuleWithRelations = DatabaseProvisionModule & + DatabaseProvisionModuleRelations; export type FunctionInvocationModuleWithRelations = FunctionInvocationModule & FunctionInvocationModuleRelations; -export type FunctionModuleWithRelations = FunctionModule & FunctionModuleRelations; export type InvitesModuleWithRelations = InvitesModule & InvitesModuleRelations; -export type PrincipalAuthModuleWithRelations = PrincipalAuthModule & PrincipalAuthModuleRelations; +export type NamespaceModuleWithRelations = NamespaceModule & NamespaceModuleRelations; +export type PlansModuleWithRelations = PlansModule & PlansModuleRelations; export type ComputeLogModuleWithRelations = ComputeLogModule & ComputeLogModuleRelations; export type InferenceLogModuleWithRelations = InferenceLogModule & InferenceLogModuleRelations; -export type NamespaceModuleWithRelations = NamespaceModule & NamespaceModuleRelations; -export type ResourceModuleWithRelations = ResourceModule & ResourceModuleRelations; export type StorageLogModuleWithRelations = StorageLogModule & StorageLogModuleRelations; export type TransferLogModuleWithRelations = TransferLogModule & TransferLogModuleRelations; -export type FunctionDeploymentModuleWithRelations = FunctionDeploymentModule & - FunctionDeploymentModuleRelations; -export type PlansModuleWithRelations = PlansModule & PlansModuleRelations; export type BillingProviderModuleWithRelations = BillingProviderModule & BillingProviderModuleRelations; -export type DbUsageModuleWithRelations = DbUsageModule & DbUsageModuleRelations; +export type FunctionDeploymentModuleWithRelations = FunctionDeploymentModule & + FunctionDeploymentModuleRelations; +export type PermissionsModuleWithRelations = PermissionsModule & PermissionsModuleRelations; export type GraphExecutionModuleWithRelations = GraphExecutionModule & GraphExecutionModuleRelations; export type HierarchyModuleWithRelations = HierarchyModule & HierarchyModuleRelations; -export type PermissionsModuleWithRelations = PermissionsModule & PermissionsModuleRelations; export type NotificationsModuleWithRelations = NotificationsModule & NotificationsModuleRelations; +export type RelationProvisionWithRelations = RelationProvision & RelationProvisionRelations; export type ProfilesModuleWithRelations = ProfilesModule & ProfilesModuleRelations; export type BillingModuleWithRelations = BillingModule & BillingModuleRelations; -export type RelationProvisionWithRelations = RelationProvision & RelationProvisionRelations; +export type ResourceModuleWithRelations = ResourceModule & ResourceModuleRelations; export type UserAuthModuleWithRelations = UserAuthModule & UserAuthModuleRelations; +export type DbUsageModuleWithRelations = DbUsageModule & DbUsageModuleRelations; export type AgentModuleWithRelations = AgentModule & AgentModuleRelations; export type LimitsModuleWithRelations = LimitsModule & LimitsModuleRelations; -export type MembershipsModuleWithRelations = MembershipsModule & MembershipsModuleRelations; export type EntityTypeProvisionWithRelations = EntityTypeProvision & EntityTypeProvisionRelations; export type StorageModuleWithRelations = StorageModule & StorageModuleRelations; +export type MembershipsModuleWithRelations = MembershipsModule & MembershipsModuleRelations; export type EventsModuleWithRelations = EventsModule & EventsModuleRelations; // ============ Entity Select Types ============ export type DefaultIdsModuleSelect = { @@ -2012,13 +2172,6 @@ export type MembershipTypesModuleSelect = { tableId?: boolean; tableName?: boolean; }; -export type UserStateModuleSelect = { - id?: boolean; - databaseId?: boolean; - schemaId?: boolean; - tableId?: boolean; - tableName?: boolean; -}; export type SessionSecretsModuleSelect = { id?: boolean; databaseId?: boolean; @@ -2027,15 +2180,6 @@ export type SessionSecretsModuleSelect = { tableName?: boolean; sessionsTableId?: boolean; }; -export type ConfigSecretsOrgModuleSelect = { - id?: boolean; - databaseId?: boolean; - schemaId?: boolean; - tableId?: boolean; - tableName?: boolean; - apiName?: boolean; - privateApiName?: boolean; -}; export type DevicesModuleSelect = { id?: boolean; databaseId?: boolean; @@ -2054,32 +2198,30 @@ export type I18NModuleSelect = { apiName?: boolean; privateApiName?: boolean; }; -export type UserCredentialsModuleSelect = { +export type UserSettingsModuleSelect = { id?: boolean; databaseId?: boolean; schemaId?: boolean; tableId?: boolean; + ownerTableId?: boolean; tableName?: boolean; apiName?: boolean; - privateApiName?: boolean; }; -export type UserSettingsModuleSelect = { +export type UserStateModuleSelect = { id?: boolean; databaseId?: boolean; + entityField?: boolean; schemaId?: boolean; tableId?: boolean; - ownerTableId?: boolean; tableName?: boolean; - apiName?: boolean; }; -export type ConfigSecretsUserModuleSelect = { +export type UserCredentialsModuleSelect = { id?: boolean; databaseId?: boolean; + entityField?: boolean; schemaId?: boolean; tableId?: boolean; tableName?: boolean; - configDefinitionsTableId?: boolean; - apiName?: boolean; privateApiName?: boolean; }; export type ConnectedAccountsModuleSelect = { @@ -2148,6 +2290,16 @@ export type WebauthnCredentialsModuleSelect = { apiName?: boolean; privateApiName?: boolean; }; +export type ConfigSecretsUserModuleSelect = { + id?: boolean; + databaseId?: boolean; + entityField?: boolean; + schemaId?: boolean; + tableId?: boolean; + tableName?: boolean; + apiName?: boolean; + privateApiName?: boolean; +}; export type CryptoAddressesModuleSelect = { id?: boolean; databaseId?: boolean; @@ -2174,21 +2326,6 @@ export type DenormalizedTableFieldSelect = { funcName?: boolean; funcOrder?: boolean; }; -export type IdentityProvidersModuleSelect = { - id?: boolean; - databaseId?: boolean; - schemaId?: boolean; - privateSchemaId?: boolean; - publicSchemaName?: boolean; - privateSchemaName?: boolean; - tableId?: boolean; - tableName?: boolean; - apiName?: boolean; - privateApiName?: boolean; - scope?: boolean; - prefix?: boolean; - entityTableId?: boolean; -}; export type RlsModuleSelect = { id?: boolean; databaseId?: boolean; @@ -2322,42 +2459,103 @@ export type SecureTableProvisionSelect = { policies?: boolean; outFields?: boolean; }; -export type DatabaseProvisionModuleSelect = { +export type IdentityProvidersModuleSelect = { id?: boolean; - databaseName?: boolean; - ownerId?: boolean; - subdomain?: boolean; - domain?: boolean; - modules?: boolean; - options?: boolean; - bootstrapUser?: boolean; - status?: boolean; - errorMessage?: boolean; databaseId?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - completedAt?: boolean; + entityField?: boolean; + schemaId?: boolean; + privateSchemaId?: boolean; + publicSchemaName?: boolean; + privateSchemaName?: boolean; + tableId?: boolean; + tableName?: boolean; + apiName?: boolean; + privateApiName?: boolean; + scope?: boolean; + prefix?: boolean; + entityTableId?: boolean; }; -export type ConfigSecretsModuleSelect = { +export type IntegrationProvidersModuleSelect = { id?: boolean; databaseId?: boolean; + entityField?: boolean; schemaId?: boolean; privateSchemaId?: boolean; publicSchemaName?: boolean; privateSchemaName?: boolean; tableId?: boolean; - configDefinitionsTableId?: boolean; tableName?: boolean; apiName?: boolean; privateApiName?: boolean; scope?: boolean; prefix?: boolean; entityTableId?: boolean; +}; +export type DbPoolConfigSelect = { + id?: boolean; + presetSlug?: boolean; + domain?: boolean; + poolOwnerId?: boolean; + min?: boolean; + max?: boolean; + warmTtl?: boolean; + enabled?: boolean; + createdAt?: boolean; + updatedAt?: boolean; +}; +export type RealtimeModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + privateSchemaId?: boolean; + subscriptionsSchemaId?: boolean; + changeLogTableId?: boolean; + listenerNodeTableId?: boolean; + sourceRegistryTableId?: boolean; + retentionHours?: boolean; + premake?: boolean; + interval?: boolean; + notifyChannel?: boolean; + apiName?: boolean; + privateApiName?: boolean; +}; +export type InfraSecretsModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + privateSchemaId?: boolean; + publicSchemaName?: boolean; + privateSchemaName?: boolean; + secretsTableId?: boolean; + secretsTableName?: boolean; + apiName?: boolean; + privateApiName?: boolean; + scope?: boolean; + prefix?: boolean; + entityTableId?: boolean; + entityField?: boolean; policies?: boolean; provisions?: boolean; - hasConfig?: boolean; }; -export type GraphModuleSelect = { +export type InternalSecretsModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + privateSchemaId?: boolean; + publicSchemaName?: boolean; + privateSchemaName?: boolean; + internalSecretsTableId?: boolean; + internalSecretsTableName?: boolean; + apiName?: boolean; + privateApiName?: boolean; + scope?: boolean; + prefix?: boolean; + entityTableId?: boolean; + entityField?: boolean; + policies?: boolean; + provisions?: boolean; +}; +export type DbPresetModuleSelect = { id?: boolean; databaseId?: boolean; publicSchemaId?: boolean; @@ -2367,41 +2565,39 @@ export type GraphModuleSelect = { scope?: boolean; prefix?: boolean; merkleStoreModuleId?: boolean; - graphsTableId?: boolean; + dbPresetsTableId?: boolean; + storeName?: boolean; apiName?: boolean; privateApiName?: boolean; entityTableId?: boolean; policies?: boolean; provisions?: boolean; - defaultPermissions?: boolean; createdAt?: boolean; merkleStoreModule?: { select: MerkleStoreModuleSelect; }; }; -export type MerkleStoreModuleSelect = { +export type GraphModuleSelect = { id?: boolean; databaseId?: boolean; - schemaId?: boolean; + entityField?: boolean; + publicSchemaId?: boolean; privateSchemaId?: boolean; publicSchemaName?: boolean; privateSchemaName?: boolean; - objectTableId?: boolean; - storeTableId?: boolean; - commitTableId?: boolean; - refTableId?: boolean; + scope?: boolean; prefix?: boolean; + merkleStoreModuleId?: boolean; + graphsTableId?: boolean; apiName?: boolean; privateApiName?: boolean; - scope?: boolean; - functionPrefix?: boolean; - permissionKey?: boolean; + entityTableId?: boolean; + policies?: boolean; + provisions?: boolean; + defaultPermissions?: boolean; createdAt?: boolean; - graphModules?: { - select: GraphModuleSelect; - first?: number; - filter?: GraphModuleFilter; - orderBy?: GraphModuleOrderBy[]; + merkleStoreModule?: { + select: MerkleStoreModuleSelect; }; }; export type RateLimitMetersModuleSelect = { @@ -2423,21 +2619,23 @@ export type RateLimitMetersModuleSelect = { apiName?: boolean; privateApiName?: boolean; }; -export type RealtimeModuleSelect = { +export type InfraConfigModuleSelect = { id?: boolean; databaseId?: boolean; + entityField?: boolean; schemaId?: boolean; privateSchemaId?: boolean; - subscriptionsSchemaId?: boolean; - changeLogTableId?: boolean; - listenerNodeTableId?: boolean; - sourceRegistryTableId?: boolean; - retentionHours?: boolean; - premake?: boolean; - interval?: boolean; - notifyChannel?: boolean; + publicSchemaName?: boolean; + privateSchemaName?: boolean; + configTableId?: boolean; + configTableName?: boolean; apiName?: boolean; privateApiName?: boolean; + scope?: boolean; + prefix?: boolean; + entityTableId?: boolean; + policies?: boolean; + provisions?: boolean; }; export type WebauthnAuthModuleSelect = { id?: boolean; @@ -2457,37 +2655,51 @@ export type WebauthnAuthModuleSelect = { residentKey?: boolean; challengeExpiry?: boolean; }; -export type FunctionInvocationModuleSelect = { +export type PrincipalAuthModuleSelect = { id?: boolean; databaseId?: boolean; schemaId?: boolean; - privateSchemaId?: boolean; - publicSchemaName?: boolean; - privateSchemaName?: boolean; - invocationsTableId?: boolean; - executionLogsTableId?: boolean; - invocationsTableName?: boolean; - executionLogsTableName?: boolean; - apiName?: boolean; - privateApiName?: boolean; - scope?: boolean; - prefix?: boolean; - entityTableId?: boolean; - policies?: boolean; - provisions?: boolean; - defaultPermissions?: boolean; + principalsTableId?: boolean; + principalEntitiesTableId?: boolean; + principalScopeOverridesTableId?: boolean; + usersTableId?: boolean; + sessionsTableId?: boolean; + sessionCredentialsTableId?: boolean; + auditsTableId?: boolean; + principalsTableName?: boolean; + createPrincipalFunction?: boolean; + deletePrincipalFunction?: boolean; + createOrgPrincipalFunction?: boolean; + deleteOrgPrincipalFunction?: boolean; + createOrgApiKeyFunction?: boolean; + revokeOrgApiKeyFunction?: boolean; + apiName?: boolean; +}; +export type DbPoolSelect = { + id?: boolean; + presetSlug?: boolean; + presetCommitId?: boolean; + databaseId?: boolean; + status?: boolean; + errorMessage?: boolean; + expiresAt?: boolean; + claimedBy?: boolean; + claimedAt?: boolean; + bootstrapStatus?: boolean; + bootstrapError?: boolean; + createdAt?: boolean; + updatedAt?: boolean; }; export type FunctionModuleSelect = { id?: boolean; databaseId?: boolean; + entityField?: boolean; schemaId?: boolean; privateSchemaId?: boolean; publicSchemaName?: boolean; privateSchemaName?: boolean; definitionsTableId?: boolean; - secretDefinitionsTableId?: boolean; definitionsTableName?: boolean; - secretDefinitionsTableName?: boolean; apiName?: boolean; privateApiName?: boolean; scope?: boolean; @@ -2497,91 +2709,104 @@ export type FunctionModuleSelect = { provisions?: boolean; defaultPermissions?: boolean; }; -export type InvitesModuleSelect = { +export type MerkleStoreModuleSelect = { id?: boolean; databaseId?: boolean; + entityField?: boolean; schemaId?: boolean; privateSchemaId?: boolean; publicSchemaName?: boolean; privateSchemaName?: boolean; - emailsTableId?: boolean; - usersTableId?: boolean; - invitesTableId?: boolean; - claimedInvitesTableId?: boolean; - invitesTableName?: boolean; - claimedInvitesTableName?: boolean; - submitInviteCodeFunction?: boolean; - scope?: boolean; + objectTableId?: boolean; + storeTableId?: boolean; + commitTableId?: boolean; + refTableId?: boolean; prefix?: boolean; - entityTableId?: boolean; apiName?: boolean; privateApiName?: boolean; + scope?: boolean; + functionPrefix?: boolean; + permissionKey?: boolean; + createdAt?: boolean; + graphModules?: { + select: GraphModuleSelect; + first?: number; + filter?: GraphModuleFilter; + orderBy?: GraphModuleOrderBy[]; + }; + dbPresetModules?: { + select: DbPresetModuleSelect; + first?: number; + filter?: DbPresetModuleFilter; + orderBy?: DbPresetModuleOrderBy[]; + }; }; -export type PrincipalAuthModuleSelect = { +export type DatabaseProvisionModuleSelect = { id?: boolean; + databaseName?: boolean; + ownerId?: boolean; + subdomain?: boolean; + domain?: boolean; + modules?: boolean; + options?: boolean; + bootstrapUser?: boolean; + status?: boolean; + errorMessage?: boolean; + sourceDatabaseId?: boolean; + bootstrapStatus?: boolean; + bootstrapError?: boolean; databaseId?: boolean; - schemaId?: boolean; - principalsTableId?: boolean; - principalEntitiesTableId?: boolean; - principalScopeOverridesTableId?: boolean; - usersTableId?: boolean; - sessionsTableId?: boolean; - sessionCredentialsTableId?: boolean; - auditsTableId?: boolean; - principalsTableName?: boolean; - createPrincipalFunction?: boolean; - deletePrincipalFunction?: boolean; - createOrgPrincipalFunction?: boolean; - deleteOrgPrincipalFunction?: boolean; - createOrgApiKeyFunction?: boolean; - revokeOrgApiKeyFunction?: boolean; - apiName?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + completedAt?: boolean; + fulfilledAt?: boolean; }; -export type ComputeLogModuleSelect = { +export type FunctionInvocationModuleSelect = { id?: boolean; databaseId?: boolean; + entityField?: boolean; schemaId?: boolean; privateSchemaId?: boolean; publicSchemaName?: boolean; privateSchemaName?: boolean; - computeLogTableId?: boolean; - computeLogTableName?: boolean; - usageDailyTableId?: boolean; - usageDailyTableName?: boolean; - interval?: boolean; - retention?: boolean; - premake?: boolean; - scope?: boolean; - actorFkTableId?: boolean; - entityFkTableId?: boolean; - prefix?: boolean; + invocationsTableId?: boolean; + executionLogsTableId?: boolean; + invocationsTableName?: boolean; + executionLogsTableName?: boolean; apiName?: boolean; privateApiName?: boolean; + scope?: boolean; + prefix?: boolean; + entityTableId?: boolean; + policies?: boolean; + provisions?: boolean; + defaultPermissions?: boolean; }; -export type InferenceLogModuleSelect = { +export type InvitesModuleSelect = { id?: boolean; databaseId?: boolean; + entityField?: boolean; schemaId?: boolean; privateSchemaId?: boolean; publicSchemaName?: boolean; privateSchemaName?: boolean; - inferenceLogTableId?: boolean; - inferenceLogTableName?: boolean; - usageDailyTableId?: boolean; - usageDailyTableName?: boolean; - interval?: boolean; - retention?: boolean; - premake?: boolean; + emailsTableId?: boolean; + usersTableId?: boolean; + invitesTableId?: boolean; + claimedInvitesTableId?: boolean; + invitesTableName?: boolean; + claimedInvitesTableName?: boolean; + submitInviteCodeFunction?: boolean; scope?: boolean; - actorFkTableId?: boolean; - entityFkTableId?: boolean; prefix?: boolean; + entityTableId?: boolean; apiName?: boolean; privateApiName?: boolean; }; export type NamespaceModuleSelect = { id?: boolean; databaseId?: boolean; + entityField?: boolean; schemaId?: boolean; privateSchemaId?: boolean; publicSchemaName?: boolean; @@ -2595,44 +2820,43 @@ export type NamespaceModuleSelect = { scope?: boolean; prefix?: boolean; entityTableId?: boolean; - platformNamespacesTableId?: boolean; policies?: boolean; provisions?: boolean; defaultPermissions?: boolean; }; -export type ResourceModuleSelect = { +export type PlansModuleSelect = { id?: boolean; databaseId?: boolean; schemaId?: boolean; privateSchemaId?: boolean; publicSchemaName?: boolean; privateSchemaName?: boolean; - resourcesTableId?: boolean; - resourceEventsTableId?: boolean; - resourcesTableName?: boolean; - resourceEventsTableName?: boolean; + plansTableId?: boolean; + plansTableName?: boolean; + planLimitsTableId?: boolean; + planLimitsTableName?: boolean; + planPricingTableId?: boolean; + planOverridesTableId?: boolean; + planMeterLimitsTableId?: boolean; + planCapsTableId?: boolean; + applyPlanFunction?: boolean; + applyPlanAggregateFunction?: boolean; + applyBillingPlanFunction?: boolean; + applyPlanCapsFunction?: boolean; + prefix?: boolean; apiName?: boolean; privateApiName?: boolean; - scope?: boolean; - prefix?: boolean; - entityTableId?: boolean; - namespaceModuleId?: boolean; - policies?: boolean; - provisions?: boolean; - defaultPermissions?: boolean; - namespaceModule?: { - select: NamespaceModuleSelect; - }; }; -export type StorageLogModuleSelect = { +export type ComputeLogModuleSelect = { id?: boolean; databaseId?: boolean; + entityField?: boolean; schemaId?: boolean; privateSchemaId?: boolean; publicSchemaName?: boolean; privateSchemaName?: boolean; - storageLogTableId?: boolean; - storageLogTableName?: boolean; + computeLogTableId?: boolean; + computeLogTableName?: boolean; usageDailyTableId?: boolean; usageDailyTableName?: boolean; interval?: boolean; @@ -2645,15 +2869,16 @@ export type StorageLogModuleSelect = { apiName?: boolean; privateApiName?: boolean; }; -export type TransferLogModuleSelect = { +export type InferenceLogModuleSelect = { id?: boolean; databaseId?: boolean; + entityField?: boolean; schemaId?: boolean; privateSchemaId?: boolean; publicSchemaName?: boolean; privateSchemaName?: boolean; - transferLogTableId?: boolean; - transferLogTableName?: boolean; + inferenceLogTableId?: boolean; + inferenceLogTableName?: boolean; usageDailyTableId?: boolean; usageDailyTableName?: boolean; interval?: boolean; @@ -2666,53 +2891,46 @@ export type TransferLogModuleSelect = { apiName?: boolean; privateApiName?: boolean; }; -export type FunctionDeploymentModuleSelect = { +export type StorageLogModuleSelect = { id?: boolean; databaseId?: boolean; + entityField?: boolean; schemaId?: boolean; privateSchemaId?: boolean; publicSchemaName?: boolean; privateSchemaName?: boolean; - deploymentsTableId?: boolean; - deploymentEventsTableId?: boolean; - deploymentsTableName?: boolean; - deploymentEventsTableName?: boolean; - apiName?: boolean; - privateApiName?: boolean; + storageLogTableId?: boolean; + storageLogTableName?: boolean; + usageDailyTableId?: boolean; + usageDailyTableName?: boolean; + interval?: boolean; + retention?: boolean; + premake?: boolean; scope?: boolean; + actorFkTableId?: boolean; + entityFkTableId?: boolean; prefix?: boolean; - entityTableId?: boolean; - functionModuleId?: boolean; - namespaceModuleId?: boolean; - policies?: boolean; - provisions?: boolean; - defaultPermissions?: boolean; - functionModule?: { - select: FunctionModuleSelect; - }; - namespaceModule?: { - select: NamespaceModuleSelect; - }; + apiName?: boolean; + privateApiName?: boolean; }; -export type PlansModuleSelect = { +export type TransferLogModuleSelect = { id?: boolean; databaseId?: boolean; + entityField?: boolean; schemaId?: boolean; privateSchemaId?: boolean; publicSchemaName?: boolean; privateSchemaName?: boolean; - plansTableId?: boolean; - plansTableName?: boolean; - planLimitsTableId?: boolean; - planLimitsTableName?: boolean; - planPricingTableId?: boolean; - planOverridesTableId?: boolean; - planMeterLimitsTableId?: boolean; - planCapsTableId?: boolean; - applyPlanFunction?: boolean; - applyPlanAggregateFunction?: boolean; - applyBillingPlanFunction?: boolean; - applyPlanCapsFunction?: boolean; + transferLogTableId?: boolean; + transferLogTableName?: boolean; + usageDailyTableId?: boolean; + usageDailyTableName?: boolean; + interval?: boolean; + retention?: boolean; + premake?: boolean; + scope?: boolean; + actorFkTableId?: boolean; + entityFkTableId?: boolean; prefix?: boolean; apiName?: boolean; privateApiName?: boolean; @@ -2741,42 +2959,72 @@ export type BillingProviderModuleSelect = { apiName?: boolean; privateApiName?: boolean; }; -export type DbUsageModuleSelect = { +export type FunctionDeploymentModuleSelect = { id?: boolean; databaseId?: boolean; + entityField?: boolean; schemaId?: boolean; privateSchemaId?: boolean; publicSchemaName?: boolean; privateSchemaName?: boolean; - tableStatsLogTableId?: boolean; - tableStatsLogTableName?: boolean; - tableStatsDailyTableId?: boolean; - tableStatsDailyTableName?: boolean; - queryStatsLogTableId?: boolean; - queryStatsLogTableName?: boolean; - queryStatsDailyTableId?: boolean; - queryStatsDailyTableName?: boolean; - interval?: boolean; - retention?: boolean; - premake?: boolean; + deploymentsTableId?: boolean; + deploymentEventsTableId?: boolean; + deploymentsTableName?: boolean; + deploymentEventsTableName?: boolean; + apiName?: boolean; + privateApiName?: boolean; scope?: boolean; prefix?: boolean; + entityTableId?: boolean; + functionModuleId?: boolean; + namespaceModuleId?: boolean; + policies?: boolean; + provisions?: boolean; defaultPermissions?: boolean; - apiName?: boolean; - privateApiName?: boolean; + functionModule?: { + select: FunctionModuleSelect; + }; + namespaceModule?: { + select: NamespaceModuleSelect; + }; }; -export type GraphExecutionModuleSelect = { +export type PermissionsModuleSelect = { id?: boolean; databaseId?: boolean; + entityField?: boolean; schemaId?: boolean; privateSchemaId?: boolean; publicSchemaName?: boolean; privateSchemaName?: boolean; - graphModuleId?: boolean; - scope?: boolean; - prefix?: boolean; - executionsTableId?: boolean; - outputsTableId?: boolean; + tableId?: boolean; + tableName?: boolean; + defaultTableId?: boolean; + defaultTableName?: boolean; + bitlen?: boolean; + scope?: boolean; + prefix?: boolean; + entityTableId?: boolean; + actorTableId?: boolean; + getPaddedMask?: boolean; + getMask?: boolean; + getByMask?: boolean; + getMaskByName?: boolean; + apiName?: boolean; + privateApiName?: boolean; +}; +export type GraphExecutionModuleSelect = { + id?: boolean; + databaseId?: boolean; + entityField?: boolean; + schemaId?: boolean; + privateSchemaId?: boolean; + publicSchemaName?: boolean; + privateSchemaName?: boolean; + graphModuleId?: boolean; + scope?: boolean; + prefix?: boolean; + executionsTableId?: boolean; + outputsTableId?: boolean; nodeStatesTableId?: boolean; executionsTableName?: boolean; outputsTableName?: boolean; @@ -2795,6 +3043,7 @@ export type GraphExecutionModuleSelect = { export type HierarchyModuleSelect = { id?: boolean; databaseId?: boolean; + entityField?: boolean; schemaId?: boolean; privateSchemaId?: boolean; chartEdgesTableId?: boolean; @@ -2816,32 +3065,10 @@ export type HierarchyModuleSelect = { defaultPermissions?: boolean; createdAt?: boolean; }; -export type PermissionsModuleSelect = { - id?: boolean; - databaseId?: boolean; - schemaId?: boolean; - privateSchemaId?: boolean; - publicSchemaName?: boolean; - privateSchemaName?: boolean; - tableId?: boolean; - tableName?: boolean; - defaultTableId?: boolean; - defaultTableName?: boolean; - bitlen?: boolean; - scope?: boolean; - prefix?: boolean; - entityTableId?: boolean; - actorTableId?: boolean; - getPaddedMask?: boolean; - getMask?: boolean; - getByMask?: boolean; - getMaskByName?: boolean; - apiName?: boolean; - privateApiName?: boolean; -}; export type NotificationsModuleSelect = { id?: boolean; databaseId?: boolean; + entityField?: boolean; schemaId?: boolean; privateSchemaId?: boolean; publicSchemaName?: boolean; @@ -2864,9 +3091,36 @@ export type NotificationsModuleSelect = { apiName?: boolean; privateApiName?: boolean; }; +export type RelationProvisionSelect = { + id?: boolean; + databaseId?: boolean; + relationType?: boolean; + sourceTableId?: boolean; + targetTableId?: boolean; + fieldName?: boolean; + deleteAction?: boolean; + isRequired?: boolean; + apiRequired?: boolean; + junctionTableId?: boolean; + junctionTableName?: boolean; + junctionSchemaId?: boolean; + sourceFieldName?: boolean; + targetFieldName?: boolean; + useCompositeKey?: boolean; + createIndex?: boolean; + exposeInApi?: boolean; + nodes?: boolean; + grants?: boolean; + policies?: boolean; + outFieldId?: boolean; + outJunctionTableId?: boolean; + outSourceFieldId?: boolean; + outTargetFieldId?: boolean; +}; export type ProfilesModuleSelect = { id?: boolean; databaseId?: boolean; + entityField?: boolean; schemaId?: boolean; privateSchemaId?: boolean; publicSchemaName?: boolean; @@ -2912,36 +3166,43 @@ export type BillingModuleSelect = { meterDefaultsTableId?: boolean; meterDefaultsTableName?: boolean; recordUsageFunction?: boolean; + sweepExpiredSubscriptionsFunction?: boolean; + rollupUsageSummaryFunction?: boolean; prefix?: boolean; defaultPermissions?: boolean; apiName?: boolean; privateApiName?: boolean; }; -export type RelationProvisionSelect = { +export type ResourceModuleSelect = { id?: boolean; databaseId?: boolean; - relationType?: boolean; - sourceTableId?: boolean; - targetTableId?: boolean; - fieldName?: boolean; - deleteAction?: boolean; - isRequired?: boolean; - apiRequired?: boolean; - junctionTableId?: boolean; - junctionTableName?: boolean; - junctionSchemaId?: boolean; - sourceFieldName?: boolean; - targetFieldName?: boolean; - useCompositeKey?: boolean; - createIndex?: boolean; - exposeInApi?: boolean; - nodes?: boolean; - grants?: boolean; + entityField?: boolean; + schemaId?: boolean; + privateSchemaId?: boolean; + publicSchemaName?: boolean; + privateSchemaName?: boolean; + resourcesTableId?: boolean; + resourceEventsTableId?: boolean; + resourceStatusChecksTableId?: boolean; + resourceDefinitionsTableId?: boolean; + resourcesTableName?: boolean; + resourceEventsTableName?: boolean; + resourceStatusChecksTableName?: boolean; + resourceDefinitionsTableName?: boolean; + resolvedRequirementsViewName?: boolean; + requirementsStateViewName?: boolean; + apiName?: boolean; + privateApiName?: boolean; + scope?: boolean; + prefix?: boolean; + entityTableId?: boolean; + namespaceModuleId?: boolean; policies?: boolean; - outFieldId?: boolean; - outJunctionTableId?: boolean; - outSourceFieldId?: boolean; - outTargetFieldId?: boolean; + provisions?: boolean; + defaultPermissions?: boolean; + namespaceModule?: { + select: NamespaceModuleSelect; + }; }; export type UserAuthModuleSelect = { id?: boolean; @@ -2973,9 +3234,39 @@ export type UserAuthModuleSelect = { apiName?: boolean; privateApiName?: boolean; }; +export type DbUsageModuleSelect = { + id?: boolean; + databaseId?: boolean; + entityField?: boolean; + schemaId?: boolean; + privateSchemaId?: boolean; + publicSchemaName?: boolean; + privateSchemaName?: boolean; + tableStatsLogTableId?: boolean; + tableStatsLogTableName?: boolean; + tableStatsDailyTableId?: boolean; + tableStatsDailyTableName?: boolean; + queryStatsLogTableId?: boolean; + queryStatsLogTableName?: boolean; + queryStatsDailyTableId?: boolean; + queryStatsDailyTableName?: boolean; + collectDbTableStatsFunction?: boolean; + collectDbQueryStatsFunction?: boolean; + rollupDbTableStatsDailyFunction?: boolean; + rollupDbQueryStatsDailyFunction?: boolean; + interval?: boolean; + retention?: boolean; + premake?: boolean; + scope?: boolean; + prefix?: boolean; + defaultPermissions?: boolean; + apiName?: boolean; + privateApiName?: boolean; +}; export type AgentModuleSelect = { id?: boolean; databaseId?: boolean; + entityField?: boolean; schemaId?: boolean; privateSchemaId?: boolean; publicSchemaName?: boolean; @@ -3013,6 +3304,7 @@ export type AgentModuleSelect = { export type LimitsModuleSelect = { id?: boolean; databaseId?: boolean; + entityField?: boolean; schemaId?: boolean; privateSchemaId?: boolean; publicSchemaName?: boolean; @@ -3048,49 +3340,6 @@ export type LimitsModuleSelect = { apiName?: boolean; privateApiName?: boolean; }; -export type MembershipsModuleSelect = { - id?: boolean; - databaseId?: boolean; - schemaId?: boolean; - privateSchemaId?: boolean; - publicSchemaName?: boolean; - privateSchemaName?: boolean; - membershipsTableId?: boolean; - membershipsTableName?: boolean; - membersTableId?: boolean; - membersTableName?: boolean; - membershipDefaultsTableId?: boolean; - membershipDefaultsTableName?: boolean; - membershipSettingsTableId?: boolean; - membershipSettingsTableName?: boolean; - grantsTableId?: boolean; - grantsTableName?: boolean; - actorTableId?: boolean; - limitsTableId?: boolean; - defaultLimitsTableId?: boolean; - permissionsTableId?: boolean; - defaultPermissionsTableId?: boolean; - sprtTableId?: boolean; - adminGrantsTableId?: boolean; - adminGrantsTableName?: boolean; - ownerGrantsTableId?: boolean; - ownerGrantsTableName?: boolean; - scope?: boolean; - prefix?: boolean; - entityTableId?: boolean; - entityTableOwnerId?: boolean; - getOrgFn?: boolean; - actorMaskCheck?: boolean; - actorPermCheck?: boolean; - entityIdsByMask?: boolean; - entityIdsByPerm?: boolean; - entityIdsFunction?: boolean; - memberProfilesTableId?: boolean; - permissionDefaultPermissionsTableId?: boolean; - permissionDefaultGrantsTableId?: boolean; - apiName?: boolean; - privateApiName?: boolean; -}; export type EntityTypeProvisionSelect = { id?: boolean; databaseId?: boolean; @@ -3128,7 +3377,6 @@ export type EntityTypeProvisionSelect = { outDefinitionsTableId?: boolean; outInvocationsTableId?: boolean; outExecutionLogsTableId?: boolean; - outSecretDefinitionsTableId?: boolean; outGraphModuleId?: boolean; outGraphsTableId?: boolean; outAgentModuleId?: boolean; @@ -3149,6 +3397,7 @@ export type StorageModuleSelect = { policies?: boolean; provisions?: boolean; entityTableId?: boolean; + entityField?: boolean; endpoint?: boolean; publicUrlPrefix?: boolean; provider?: boolean; @@ -3174,9 +3423,54 @@ export type StorageModuleSelect = { apiName?: boolean; privateApiName?: boolean; }; +export type MembershipsModuleSelect = { + id?: boolean; + databaseId?: boolean; + entityField?: boolean; + schemaId?: boolean; + privateSchemaId?: boolean; + publicSchemaName?: boolean; + privateSchemaName?: boolean; + membershipsTableId?: boolean; + membershipsTableName?: boolean; + membersTableId?: boolean; + membersTableName?: boolean; + membershipDefaultsTableId?: boolean; + membershipDefaultsTableName?: boolean; + membershipSettingsTableId?: boolean; + membershipSettingsTableName?: boolean; + grantsTableId?: boolean; + grantsTableName?: boolean; + actorTableId?: boolean; + limitsTableId?: boolean; + defaultLimitsTableId?: boolean; + permissionsTableId?: boolean; + defaultPermissionsTableId?: boolean; + sprtTableId?: boolean; + adminGrantsTableId?: boolean; + adminGrantsTableName?: boolean; + ownerGrantsTableId?: boolean; + ownerGrantsTableName?: boolean; + scope?: boolean; + prefix?: boolean; + entityTableId?: boolean; + entityTableOwnerId?: boolean; + getOrgFn?: boolean; + actorMaskCheck?: boolean; + actorPermCheck?: boolean; + entityIdsByMask?: boolean; + entityIdsByPerm?: boolean; + entityIdsFunction?: boolean; + memberProfilesTableId?: boolean; + permissionDefaultPermissionsTableId?: boolean; + permissionDefaultGrantsTableId?: boolean; + apiName?: boolean; + privateApiName?: boolean; +}; export type EventsModuleSelect = { id?: boolean; databaseId?: boolean; + entityField?: boolean; schemaId?: boolean; privateSchemaId?: boolean; publicSchemaName?: boolean; @@ -3203,7 +3497,6 @@ export type EventsModuleSelect = { tgEventBool?: boolean; upsertAggregate?: boolean; tgUpdateAggregates?: boolean; - pruneEvents?: boolean; stepsRequired?: boolean; levelAchieved?: boolean; tgCheckAchievements?: boolean; @@ -3251,24 +3544,6 @@ export interface MembershipTypesModuleFilter { /** Negates the expression. */ not?: MembershipTypesModuleFilter; } -export interface UserStateModuleFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `schemaId` field. */ - schemaId?: UUIDFilter; - /** Filter by the object’s `tableId` field. */ - tableId?: UUIDFilter; - /** Filter by the object’s `tableName` field. */ - tableName?: StringFilter; - /** Checks for all expressions in this list. */ - and?: UserStateModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: UserStateModuleFilter[]; - /** Negates the expression. */ - not?: UserStateModuleFilter; -} export interface SessionSecretsModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; @@ -3289,29 +3564,7 @@ export interface SessionSecretsModuleFilter { /** Negates the expression. */ not?: SessionSecretsModuleFilter; } -export interface ConfigSecretsOrgModuleFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `schemaId` field. */ - schemaId?: UUIDFilter; - /** Filter by the object’s `tableId` field. */ - tableId?: UUIDFilter; - /** Filter by the object’s `tableName` field. */ - tableName?: StringFilter; - /** Filter by the object’s `apiName` field. */ - apiName?: StringFilter; - /** Filter by the object’s `privateApiName` field. */ - privateApiName?: StringFilter; - /** Checks for all expressions in this list. */ - and?: ConfigSecretsOrgModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: ConfigSecretsOrgModuleFilter[]; - /** Negates the expression. */ - not?: ConfigSecretsOrgModuleFilter; -} -export interface DevicesModuleFilter { +export interface DevicesModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ @@ -3355,7 +3608,7 @@ export interface I18NModuleFilter { /** Negates the expression. */ not?: I18NModuleFilter; } -export interface UserCredentialsModuleFilter { +export interface UserSettingsModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ @@ -3364,64 +3617,60 @@ export interface UserCredentialsModuleFilter { schemaId?: UUIDFilter; /** Filter by the object’s `tableId` field. */ tableId?: UUIDFilter; + /** Filter by the object’s `ownerTableId` field. */ + ownerTableId?: UUIDFilter; /** Filter by the object’s `tableName` field. */ tableName?: StringFilter; /** Filter by the object’s `apiName` field. */ apiName?: StringFilter; - /** Filter by the object’s `privateApiName` field. */ - privateApiName?: StringFilter; /** Checks for all expressions in this list. */ - and?: UserCredentialsModuleFilter[]; + and?: UserSettingsModuleFilter[]; /** Checks for any expressions in this list. */ - or?: UserCredentialsModuleFilter[]; + or?: UserSettingsModuleFilter[]; /** Negates the expression. */ - not?: UserCredentialsModuleFilter; + not?: UserSettingsModuleFilter; } -export interface UserSettingsModuleFilter { +export interface UserStateModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; + /** Filter by the object’s `entityField` field. */ + entityField?: StringFilter; /** Filter by the object’s `schemaId` field. */ schemaId?: UUIDFilter; /** Filter by the object’s `tableId` field. */ tableId?: UUIDFilter; - /** Filter by the object’s `ownerTableId` field. */ - ownerTableId?: UUIDFilter; /** Filter by the object’s `tableName` field. */ tableName?: StringFilter; - /** Filter by the object’s `apiName` field. */ - apiName?: StringFilter; /** Checks for all expressions in this list. */ - and?: UserSettingsModuleFilter[]; + and?: UserStateModuleFilter[]; /** Checks for any expressions in this list. */ - or?: UserSettingsModuleFilter[]; + or?: UserStateModuleFilter[]; /** Negates the expression. */ - not?: UserSettingsModuleFilter; + not?: UserStateModuleFilter; } -export interface ConfigSecretsUserModuleFilter { +export interface UserCredentialsModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; + /** Filter by the object’s `entityField` field. */ + entityField?: 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 `configDefinitionsTableId` field. */ - configDefinitionsTableId?: UUIDFilter; - /** Filter by the object’s `apiName` field. */ - apiName?: StringFilter; /** Filter by the object’s `privateApiName` field. */ privateApiName?: StringFilter; /** Checks for all expressions in this list. */ - and?: ConfigSecretsUserModuleFilter[]; + and?: UserCredentialsModuleFilter[]; /** Checks for any expressions in this list. */ - or?: ConfigSecretsUserModuleFilter[]; + or?: UserCredentialsModuleFilter[]; /** Negates the expression. */ - not?: ConfigSecretsUserModuleFilter; + not?: UserCredentialsModuleFilter; } export interface ConnectedAccountsModuleFilter { /** Filter by the object’s `id` field. */ @@ -3579,6 +3828,30 @@ export interface WebauthnCredentialsModuleFilter { /** Negates the expression. */ not?: WebauthnCredentialsModuleFilter; } +export interface ConfigSecretsUserModuleFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `entityField` field. */ + entityField?: 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 `apiName` field. */ + apiName?: StringFilter; + /** Filter by the object’s `privateApiName` field. */ + privateApiName?: StringFilter; + /** Checks for all expressions in this list. */ + and?: ConfigSecretsUserModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: ConfigSecretsUserModuleFilter[]; + /** Negates the expression. */ + not?: ConfigSecretsUserModuleFilter; +} export interface CryptoAddressesModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; @@ -3639,40 +3912,6 @@ export interface DenormalizedTableFieldFilter { /** Negates the expression. */ not?: DenormalizedTableFieldFilter; } -export interface IdentityProvidersModuleFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `schemaId` field. */ - schemaId?: UUIDFilter; - /** Filter by the object’s `privateSchemaId` field. */ - privateSchemaId?: UUIDFilter; - /** Filter by the object’s `publicSchemaName` field. */ - publicSchemaName?: StringFilter; - /** Filter by the object’s `privateSchemaName` field. */ - privateSchemaName?: StringFilter; - /** Filter by the object’s `tableId` field. */ - tableId?: UUIDFilter; - /** Filter by the object’s `tableName` field. */ - tableName?: StringFilter; - /** Filter by the object’s `apiName` field. */ - apiName?: StringFilter; - /** Filter by the object’s `privateApiName` field. */ - privateApiName?: StringFilter; - /** Filter by the object’s `scope` field. */ - scope?: StringFilter; - /** Filter by the object’s `prefix` field. */ - prefix?: StringFilter; - /** Filter by the object’s `entityTableId` field. */ - entityTableId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: IdentityProvidersModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: IdentityProvidersModuleFilter[]; - /** Negates the expression. */ - not?: IdentityProvidersModuleFilter; -} export interface RlsModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; @@ -3935,47 +4174,13 @@ export interface SecureTableProvisionFilter { /** Negates the expression. */ not?: SecureTableProvisionFilter; } -export interface DatabaseProvisionModuleFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseName` field. */ - databaseName?: StringFilter; - /** Filter by the object’s `ownerId` field. */ - ownerId?: UUIDFilter; - /** Filter by the object’s `subdomain` field. */ - subdomain?: StringFilter; - /** Filter by the object’s `domain` field. */ - domain?: StringFilter; - /** Filter by the object’s `modules` field. */ - modules?: JSONFilter; - /** Filter by the object’s `options` field. */ - options?: JSONFilter; - /** Filter by the object’s `bootstrapUser` field. */ - bootstrapUser?: BooleanFilter; - /** Filter by the object’s `status` field. */ - status?: StringFilter; - /** Filter by the object’s `errorMessage` field. */ - errorMessage?: StringFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `completedAt` field. */ - completedAt?: DatetimeFilter; - /** Checks for all expressions in this list. */ - and?: DatabaseProvisionModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: DatabaseProvisionModuleFilter[]; - /** Negates the expression. */ - not?: DatabaseProvisionModuleFilter; -} -export interface ConfigSecretsModuleFilter { +export interface IdentityProvidersModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; + /** Filter by the object’s `entityField` field. */ + entityField?: StringFilter; /** Filter by the object’s `schemaId` field. */ schemaId?: UUIDFilter; /** Filter by the object’s `privateSchemaId` field. */ @@ -3986,8 +4191,6 @@ export interface ConfigSecretsModuleFilter { privateSchemaName?: StringFilter; /** Filter by the object’s `tableId` field. */ tableId?: UUIDFilter; - /** Filter by the object’s `configDefinitionsTableId` field. */ - configDefinitionsTableId?: UUIDFilter; /** Filter by the object’s `tableName` field. */ tableName?: StringFilter; /** Filter by the object’s `apiName` field. */ @@ -4000,64 +4203,78 @@ export interface ConfigSecretsModuleFilter { prefix?: StringFilter; /** Filter by the object’s `entityTableId` field. */ entityTableId?: UUIDFilter; - /** Filter by the object’s `policies` field. */ - policies?: JSONFilter; - /** Filter by the object’s `provisions` field. */ - provisions?: JSONFilter; - /** Filter by the object’s `hasConfig` field. */ - hasConfig?: BooleanFilter; /** Checks for all expressions in this list. */ - and?: ConfigSecretsModuleFilter[]; + and?: IdentityProvidersModuleFilter[]; /** Checks for any expressions in this list. */ - or?: ConfigSecretsModuleFilter[]; + or?: IdentityProvidersModuleFilter[]; /** Negates the expression. */ - not?: ConfigSecretsModuleFilter; + not?: IdentityProvidersModuleFilter; } -export interface GraphModuleFilter { +export interface IntegrationProvidersModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `publicSchemaId` field. */ - publicSchemaId?: UUIDFilter; + /** Filter by the object’s `entityField` field. */ + entityField?: StringFilter; + /** Filter by the object’s `schemaId` field. */ + schemaId?: UUIDFilter; /** Filter by the object’s `privateSchemaId` field. */ privateSchemaId?: UUIDFilter; /** Filter by the object’s `publicSchemaName` field. */ publicSchemaName?: StringFilter; /** Filter by the object’s `privateSchemaName` field. */ privateSchemaName?: StringFilter; - /** Filter by the object’s `scope` field. */ - scope?: StringFilter; - /** Filter by the object’s `prefix` field. */ - prefix?: StringFilter; - /** Filter by the object’s `merkleStoreModuleId` field. */ - merkleStoreModuleId?: UUIDFilter; - /** Filter by the object’s `graphsTableId` field. */ - graphsTableId?: UUIDFilter; + /** Filter by the object’s `tableId` field. */ + tableId?: UUIDFilter; + /** Filter by the object’s `tableName` field. */ + tableName?: StringFilter; /** Filter by the object’s `apiName` field. */ apiName?: StringFilter; /** Filter by the object’s `privateApiName` field. */ privateApiName?: StringFilter; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; /** Filter by the object’s `entityTableId` field. */ entityTableId?: UUIDFilter; - /** Filter by the object’s `policies` field. */ - policies?: JSONFilter; - /** Filter by the object’s `provisions` field. */ - provisions?: JSONFilter; - /** Filter by the object’s `defaultPermissions` field. */ - defaultPermissions?: StringListFilter; + /** Checks for all expressions in this list. */ + and?: IntegrationProvidersModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: IntegrationProvidersModuleFilter[]; + /** Negates the expression. */ + not?: IntegrationProvidersModuleFilter; +} +export interface DbPoolConfigFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `presetSlug` field. */ + presetSlug?: StringFilter; + /** Filter by the object’s `domain` field. */ + domain?: StringFilter; + /** Filter by the object’s `poolOwnerId` field. */ + poolOwnerId?: UUIDFilter; + /** Filter by the object’s `min` field. */ + min?: IntFilter; + /** Filter by the object’s `max` field. */ + max?: IntFilter; + /** Filter by the object’s `warmTtl` field. */ + warmTtl?: IntervalFilter; + /** Filter by the object’s `enabled` field. */ + enabled?: BooleanFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; /** Checks for all expressions in this list. */ - and?: GraphModuleFilter[]; + and?: DbPoolConfigFilter[]; /** Checks for any expressions in this list. */ - or?: GraphModuleFilter[]; + or?: DbPoolConfigFilter[]; /** Negates the expression. */ - not?: GraphModuleFilter; - /** Filter by the object’s `merkleStoreModule` relation. */ - merkleStoreModule?: MerkleStoreModuleFilter; + not?: DbPoolConfigFilter; } -export interface MerkleStoreModuleFilter { +export interface RealtimeModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ @@ -4066,44 +4283,34 @@ export interface MerkleStoreModuleFilter { schemaId?: UUIDFilter; /** Filter by the object’s `privateSchemaId` field. */ privateSchemaId?: UUIDFilter; - /** Filter by the object’s `publicSchemaName` field. */ - publicSchemaName?: StringFilter; - /** Filter by the object’s `privateSchemaName` field. */ - privateSchemaName?: StringFilter; - /** Filter by the object’s `objectTableId` field. */ - objectTableId?: UUIDFilter; - /** Filter by the object’s `storeTableId` field. */ - storeTableId?: UUIDFilter; - /** Filter by the object’s `commitTableId` field. */ - commitTableId?: UUIDFilter; - /** Filter by the object’s `refTableId` field. */ - refTableId?: UUIDFilter; - /** Filter by the object’s `prefix` field. */ - prefix?: StringFilter; + /** Filter by the object’s `subscriptionsSchemaId` field. */ + subscriptionsSchemaId?: UUIDFilter; + /** Filter by the object’s `changeLogTableId` field. */ + changeLogTableId?: UUIDFilter; + /** Filter by the object’s `listenerNodeTableId` field. */ + listenerNodeTableId?: UUIDFilter; + /** Filter by the object’s `sourceRegistryTableId` field. */ + sourceRegistryTableId?: UUIDFilter; + /** Filter by the object’s `retentionHours` field. */ + retentionHours?: IntFilter; + /** Filter by the object’s `premake` field. */ + premake?: IntFilter; + /** Filter by the object’s `interval` field. */ + interval?: StringFilter; + /** Filter by the object’s `notifyChannel` field. */ + notifyChannel?: StringFilter; /** Filter by the object’s `apiName` field. */ apiName?: StringFilter; /** Filter by the object’s `privateApiName` field. */ privateApiName?: StringFilter; - /** Filter by the object’s `scope` field. */ - scope?: StringFilter; - /** Filter by the object’s `functionPrefix` field. */ - functionPrefix?: StringFilter; - /** Filter by the object’s `permissionKey` field. */ - permissionKey?: StringFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; /** Checks for all expressions in this list. */ - and?: MerkleStoreModuleFilter[]; + and?: RealtimeModuleFilter[]; /** Checks for any expressions in this list. */ - or?: MerkleStoreModuleFilter[]; + or?: RealtimeModuleFilter[]; /** Negates the expression. */ - not?: MerkleStoreModuleFilter; - /** Filter by the object’s `graphModules` relation. */ - graphModules?: MerkleStoreModuleToManyGraphModuleFilter; - /** `graphModules` exist. */ - graphModulesExist?: boolean; + not?: RealtimeModuleFilter; } -export interface RateLimitMetersModuleFilter { +export interface InfraSecretsModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ @@ -4116,36 +4323,34 @@ export interface RateLimitMetersModuleFilter { publicSchemaName?: StringFilter; /** Filter by the object’s `privateSchemaName` field. */ privateSchemaName?: StringFilter; - /** Filter by the object’s `rateLimitStateTableId` field. */ - rateLimitStateTableId?: UUIDFilter; - /** Filter by the object’s `rateLimitStateTableName` field. */ - rateLimitStateTableName?: StringFilter; - /** Filter by the object’s `rateLimitOverridesTableId` field. */ - rateLimitOverridesTableId?: UUIDFilter; - /** Filter by the object’s `rateLimitOverridesTableName` field. */ - rateLimitOverridesTableName?: StringFilter; - /** Filter by the object’s `rateWindowLimitsTableId` field. */ - rateWindowLimitsTableId?: UUIDFilter; - /** Filter by the object’s `rateWindowLimitsTableName` field. */ - rateWindowLimitsTableName?: StringFilter; - /** Filter by the object’s `checkRateLimitFunction` field. */ - checkRateLimitFunction?: StringFilter; - /** Filter by the object’s `prefix` field. */ - prefix?: StringFilter; - /** Filter by the object’s `defaultPermissions` field. */ - defaultPermissions?: StringListFilter; + /** Filter by the object’s `secretsTableId` field. */ + secretsTableId?: UUIDFilter; + /** Filter by the object’s `secretsTableName` field. */ + secretsTableName?: StringFilter; /** Filter by the object’s `apiName` field. */ apiName?: StringFilter; /** Filter by the object’s `privateApiName` field. */ privateApiName?: StringFilter; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Filter by the object’s `entityTableId` field. */ + entityTableId?: UUIDFilter; + /** Filter by the object’s `entityField` field. */ + entityField?: StringFilter; + /** Filter by the object’s `policies` field. */ + policies?: JSONFilter; + /** Filter by the object’s `provisions` field. */ + provisions?: JSONFilter; /** Checks for all expressions in this list. */ - and?: RateLimitMetersModuleFilter[]; + and?: InfraSecretsModuleFilter[]; /** Checks for any expressions in this list. */ - or?: RateLimitMetersModuleFilter[]; + or?: InfraSecretsModuleFilter[]; /** Negates the expression. */ - not?: RateLimitMetersModuleFilter; + not?: InfraSecretsModuleFilter; } -export interface RealtimeModuleFilter { +export interface InternalSecretsModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ @@ -4154,146 +4359,108 @@ export interface RealtimeModuleFilter { schemaId?: UUIDFilter; /** Filter by the object’s `privateSchemaId` field. */ privateSchemaId?: UUIDFilter; - /** Filter by the object’s `subscriptionsSchemaId` field. */ - subscriptionsSchemaId?: UUIDFilter; - /** Filter by the object’s `changeLogTableId` field. */ - changeLogTableId?: UUIDFilter; - /** Filter by the object’s `listenerNodeTableId` field. */ - listenerNodeTableId?: UUIDFilter; - /** Filter by the object’s `sourceRegistryTableId` field. */ - sourceRegistryTableId?: UUIDFilter; - /** Filter by the object’s `retentionHours` field. */ - retentionHours?: IntFilter; - /** Filter by the object’s `premake` field. */ - premake?: IntFilter; - /** Filter by the object’s `interval` field. */ - interval?: StringFilter; - /** Filter by the object’s `notifyChannel` field. */ - notifyChannel?: StringFilter; + /** Filter by the object’s `publicSchemaName` field. */ + publicSchemaName?: StringFilter; + /** Filter by the object’s `privateSchemaName` field. */ + privateSchemaName?: StringFilter; + /** Filter by the object’s `internalSecretsTableId` field. */ + internalSecretsTableId?: UUIDFilter; + /** Filter by the object’s `internalSecretsTableName` field. */ + internalSecretsTableName?: StringFilter; /** Filter by the object’s `apiName` field. */ apiName?: StringFilter; /** Filter by the object’s `privateApiName` field. */ privateApiName?: StringFilter; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Filter by the object’s `entityTableId` field. */ + entityTableId?: UUIDFilter; + /** Filter by the object’s `entityField` field. */ + entityField?: StringFilter; + /** Filter by the object’s `policies` field. */ + policies?: JSONFilter; + /** Filter by the object’s `provisions` field. */ + provisions?: JSONFilter; /** Checks for all expressions in this list. */ - and?: RealtimeModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: RealtimeModuleFilter[]; - /** Negates the expression. */ - not?: RealtimeModuleFilter; -} -export interface WebauthnAuthModuleFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `schemaId` field. */ - schemaId?: UUIDFilter; - /** Filter by the object’s `usersTableId` field. */ - usersTableId?: UUIDFilter; - /** Filter by the object’s `credentialsTableId` field. */ - credentialsTableId?: UUIDFilter; - /** Filter by the object’s `sessionsTableId` field. */ - sessionsTableId?: UUIDFilter; - /** Filter by the object’s `sessionCredentialsTableId` field. */ - sessionCredentialsTableId?: UUIDFilter; - /** Filter by the object’s `sessionSecretsTableId` field. */ - sessionSecretsTableId?: UUIDFilter; - /** Filter by the object’s `authSettingsTableId` field. */ - authSettingsTableId?: UUIDFilter; - /** Filter by the object’s `rpId` field. */ - rpId?: StringFilter; - /** Filter by the object’s `rpName` field. */ - rpName?: StringFilter; - /** Filter by the object’s `originAllowlist` field. */ - originAllowlist?: StringListFilter; - /** Filter by the object’s `attestationType` field. */ - attestationType?: StringFilter; - /** Filter by the object’s `requireUserVerification` field. */ - requireUserVerification?: BooleanFilter; - /** Filter by the object’s `residentKey` field. */ - residentKey?: StringFilter; - /** Filter by the object’s `challengeExpiry` field. */ - challengeExpiry?: IntervalFilter; - /** Checks for all expressions in this list. */ - and?: WebauthnAuthModuleFilter[]; + and?: InternalSecretsModuleFilter[]; /** Checks for any expressions in this list. */ - or?: WebauthnAuthModuleFilter[]; + or?: InternalSecretsModuleFilter[]; /** Negates the expression. */ - not?: WebauthnAuthModuleFilter; + not?: InternalSecretsModuleFilter; } -export interface FunctionInvocationModuleFilter { +export interface DbPresetModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `schemaId` field. */ - schemaId?: UUIDFilter; + /** Filter by the object’s `publicSchemaId` field. */ + publicSchemaId?: UUIDFilter; /** Filter by the object’s `privateSchemaId` field. */ privateSchemaId?: UUIDFilter; /** Filter by the object’s `publicSchemaName` field. */ publicSchemaName?: StringFilter; /** Filter by the object’s `privateSchemaName` field. */ privateSchemaName?: StringFilter; - /** Filter by the object’s `invocationsTableId` field. */ - invocationsTableId?: UUIDFilter; - /** Filter by the object’s `executionLogsTableId` field. */ - executionLogsTableId?: UUIDFilter; - /** Filter by the object’s `invocationsTableName` field. */ - invocationsTableName?: StringFilter; - /** Filter by the object’s `executionLogsTableName` field. */ - executionLogsTableName?: StringFilter; - /** Filter by the object’s `apiName` field. */ - apiName?: StringFilter; - /** Filter by the object’s `privateApiName` field. */ - privateApiName?: StringFilter; /** Filter by the object’s `scope` field. */ scope?: StringFilter; /** Filter by the object’s `prefix` field. */ prefix?: StringFilter; + /** Filter by the object’s `merkleStoreModuleId` field. */ + merkleStoreModuleId?: UUIDFilter; + /** Filter by the object’s `dbPresetsTableId` field. */ + dbPresetsTableId?: UUIDFilter; + /** Filter by the object’s `storeName` field. */ + storeName?: StringFilter; + /** Filter by the object’s `apiName` field. */ + apiName?: StringFilter; + /** Filter by the object’s `privateApiName` field. */ + privateApiName?: StringFilter; /** Filter by the object’s `entityTableId` field. */ entityTableId?: UUIDFilter; /** Filter by the object’s `policies` field. */ policies?: JSONFilter; /** Filter by the object’s `provisions` field. */ provisions?: JSONFilter; - /** Filter by the object’s `defaultPermissions` field. */ - defaultPermissions?: StringListFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; /** Checks for all expressions in this list. */ - and?: FunctionInvocationModuleFilter[]; + and?: DbPresetModuleFilter[]; /** Checks for any expressions in this list. */ - or?: FunctionInvocationModuleFilter[]; + or?: DbPresetModuleFilter[]; /** Negates the expression. */ - not?: FunctionInvocationModuleFilter; + not?: DbPresetModuleFilter; + /** Filter by the object’s `merkleStoreModule` relation. */ + merkleStoreModule?: MerkleStoreModuleFilter; } -export interface FunctionModuleFilter { +export interface GraphModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `schemaId` field. */ - schemaId?: UUIDFilter; + /** Filter by the object’s `entityField` field. */ + entityField?: StringFilter; + /** Filter by the object’s `publicSchemaId` field. */ + publicSchemaId?: UUIDFilter; /** Filter by the object’s `privateSchemaId` field. */ privateSchemaId?: UUIDFilter; /** Filter by the object’s `publicSchemaName` field. */ publicSchemaName?: StringFilter; /** Filter by the object’s `privateSchemaName` field. */ privateSchemaName?: StringFilter; - /** Filter by the object’s `definitionsTableId` field. */ - definitionsTableId?: UUIDFilter; - /** Filter by the object’s `secretDefinitionsTableId` field. */ - secretDefinitionsTableId?: UUIDFilter; - /** Filter by the object’s `definitionsTableName` field. */ - definitionsTableName?: StringFilter; - /** Filter by the object’s `secretDefinitionsTableName` field. */ - secretDefinitionsTableName?: StringFilter; - /** Filter by the object’s `apiName` field. */ - apiName?: StringFilter; - /** Filter by the object’s `privateApiName` field. */ - privateApiName?: StringFilter; /** Filter by the object’s `scope` field. */ scope?: StringFilter; /** Filter by the object’s `prefix` field. */ prefix?: StringFilter; + /** Filter by the object’s `merkleStoreModuleId` field. */ + merkleStoreModuleId?: UUIDFilter; + /** Filter by the object’s `graphsTableId` field. */ + graphsTableId?: UUIDFilter; + /** Filter by the object’s `apiName` field. */ + apiName?: StringFilter; + /** Filter by the object’s `privateApiName` field. */ + privateApiName?: StringFilter; /** Filter by the object’s `entityTableId` field. */ entityTableId?: UUIDFilter; /** Filter by the object’s `policies` field. */ @@ -4302,14 +4469,18 @@ export interface FunctionModuleFilter { provisions?: JSONFilter; /** Filter by the object’s `defaultPermissions` field. */ defaultPermissions?: StringListFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; /** Checks for all expressions in this list. */ - and?: FunctionModuleFilter[]; + and?: GraphModuleFilter[]; /** Checks for any expressions in this list. */ - or?: FunctionModuleFilter[]; + or?: GraphModuleFilter[]; /** Negates the expression. */ - not?: FunctionModuleFilter; + not?: GraphModuleFilter; + /** Filter by the object’s `merkleStoreModule` relation. */ + merkleStoreModule?: MerkleStoreModuleFilter; } -export interface InvitesModuleFilter { +export interface RateLimitMetersModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ @@ -4322,132 +4493,338 @@ export interface InvitesModuleFilter { publicSchemaName?: StringFilter; /** Filter by the object’s `privateSchemaName` field. */ privateSchemaName?: StringFilter; - /** Filter by the object’s `emailsTableId` field. */ - emailsTableId?: UUIDFilter; - /** Filter by the object’s `usersTableId` field. */ - usersTableId?: UUIDFilter; - /** Filter by the object’s `invitesTableId` field. */ - invitesTableId?: UUIDFilter; - /** Filter by the object’s `claimedInvitesTableId` field. */ - claimedInvitesTableId?: UUIDFilter; - /** Filter by the object’s `invitesTableName` field. */ - invitesTableName?: StringFilter; - /** Filter by the object’s `claimedInvitesTableName` field. */ - claimedInvitesTableName?: StringFilter; - /** Filter by the object’s `submitInviteCodeFunction` field. */ - submitInviteCodeFunction?: StringFilter; - /** Filter by the object’s `scope` field. */ - scope?: StringFilter; + /** Filter by the object’s `rateLimitStateTableId` field. */ + rateLimitStateTableId?: UUIDFilter; + /** Filter by the object’s `rateLimitStateTableName` field. */ + rateLimitStateTableName?: StringFilter; + /** Filter by the object’s `rateLimitOverridesTableId` field. */ + rateLimitOverridesTableId?: UUIDFilter; + /** Filter by the object’s `rateLimitOverridesTableName` field. */ + rateLimitOverridesTableName?: StringFilter; + /** Filter by the object’s `rateWindowLimitsTableId` field. */ + rateWindowLimitsTableId?: UUIDFilter; + /** Filter by the object’s `rateWindowLimitsTableName` field. */ + rateWindowLimitsTableName?: StringFilter; + /** Filter by the object’s `checkRateLimitFunction` field. */ + checkRateLimitFunction?: StringFilter; /** Filter by the object’s `prefix` field. */ prefix?: StringFilter; - /** Filter by the object’s `entityTableId` field. */ - entityTableId?: UUIDFilter; + /** Filter by the object’s `defaultPermissions` field. */ + defaultPermissions?: StringListFilter; /** Filter by the object’s `apiName` field. */ apiName?: StringFilter; /** Filter by the object’s `privateApiName` field. */ privateApiName?: StringFilter; /** Checks for all expressions in this list. */ - and?: InvitesModuleFilter[]; + and?: RateLimitMetersModuleFilter[]; /** Checks for any expressions in this list. */ - or?: InvitesModuleFilter[]; + or?: RateLimitMetersModuleFilter[]; /** Negates the expression. */ - not?: InvitesModuleFilter; + not?: RateLimitMetersModuleFilter; } -export interface PrincipalAuthModuleFilter { +export interface InfraConfigModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; + /** Filter by the object’s `entityField` field. */ + entityField?: StringFilter; /** Filter by the object’s `schemaId` field. */ schemaId?: UUIDFilter; - /** Filter by the object’s `principalsTableId` field. */ - principalsTableId?: UUIDFilter; - /** Filter by the object’s `principalEntitiesTableId` field. */ - principalEntitiesTableId?: UUIDFilter; - /** Filter by the object’s `principalScopeOverridesTableId` field. */ - principalScopeOverridesTableId?: UUIDFilter; - /** Filter by the object’s `usersTableId` field. */ - usersTableId?: UUIDFilter; - /** Filter by the object’s `sessionsTableId` field. */ - sessionsTableId?: UUIDFilter; - /** Filter by the object’s `sessionCredentialsTableId` field. */ - sessionCredentialsTableId?: UUIDFilter; - /** Filter by the object’s `auditsTableId` field. */ - auditsTableId?: UUIDFilter; - /** Filter by the object’s `principalsTableName` field. */ - principalsTableName?: StringFilter; - /** Filter by the object’s `createPrincipalFunction` field. */ - createPrincipalFunction?: StringFilter; - /** Filter by the object’s `deletePrincipalFunction` field. */ - deletePrincipalFunction?: StringFilter; - /** Filter by the object’s `createOrgPrincipalFunction` field. */ - createOrgPrincipalFunction?: StringFilter; - /** Filter by the object’s `deleteOrgPrincipalFunction` field. */ - deleteOrgPrincipalFunction?: StringFilter; - /** Filter by the object’s `createOrgApiKeyFunction` field. */ - createOrgApiKeyFunction?: StringFilter; - /** Filter by the object’s `revokeOrgApiKeyFunction` field. */ - revokeOrgApiKeyFunction?: StringFilter; + /** Filter by the object’s `privateSchemaId` field. */ + privateSchemaId?: UUIDFilter; + /** Filter by the object’s `publicSchemaName` field. */ + publicSchemaName?: StringFilter; + /** Filter by the object’s `privateSchemaName` field. */ + privateSchemaName?: StringFilter; + /** Filter by the object’s `configTableId` field. */ + configTableId?: UUIDFilter; + /** Filter by the object’s `configTableName` field. */ + configTableName?: StringFilter; /** Filter by the object’s `apiName` field. */ apiName?: StringFilter; + /** Filter by the object’s `privateApiName` field. */ + privateApiName?: StringFilter; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Filter by the object’s `entityTableId` field. */ + entityTableId?: UUIDFilter; + /** Filter by the object’s `policies` field. */ + policies?: JSONFilter; + /** Filter by the object’s `provisions` field. */ + provisions?: JSONFilter; /** Checks for all expressions in this list. */ - and?: PrincipalAuthModuleFilter[]; + and?: InfraConfigModuleFilter[]; /** Checks for any expressions in this list. */ - or?: PrincipalAuthModuleFilter[]; + or?: InfraConfigModuleFilter[]; /** Negates the expression. */ - not?: PrincipalAuthModuleFilter; + not?: InfraConfigModuleFilter; } -export interface ComputeLogModuleFilter { +export interface WebauthnAuthModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; /** Filter by the object’s `schemaId` field. */ schemaId?: UUIDFilter; - /** Filter by the object’s `privateSchemaId` field. */ - privateSchemaId?: UUIDFilter; - /** Filter by the object’s `publicSchemaName` field. */ - publicSchemaName?: StringFilter; - /** Filter by the object’s `privateSchemaName` field. */ - privateSchemaName?: StringFilter; - /** Filter by the object’s `computeLogTableId` field. */ - computeLogTableId?: UUIDFilter; - /** Filter by the object’s `computeLogTableName` field. */ - computeLogTableName?: StringFilter; - /** Filter by the object’s `usageDailyTableId` field. */ - usageDailyTableId?: UUIDFilter; - /** Filter by the object’s `usageDailyTableName` field. */ - usageDailyTableName?: StringFilter; - /** Filter by the object’s `interval` field. */ - interval?: StringFilter; - /** Filter by the object’s `retention` field. */ - retention?: StringFilter; - /** Filter by the object’s `premake` field. */ - premake?: IntFilter; + /** Filter by the object’s `usersTableId` field. */ + usersTableId?: UUIDFilter; + /** Filter by the object’s `credentialsTableId` field. */ + credentialsTableId?: UUIDFilter; + /** Filter by the object’s `sessionsTableId` field. */ + sessionsTableId?: UUIDFilter; + /** Filter by the object’s `sessionCredentialsTableId` field. */ + sessionCredentialsTableId?: UUIDFilter; + /** Filter by the object’s `sessionSecretsTableId` field. */ + sessionSecretsTableId?: UUIDFilter; + /** Filter by the object’s `authSettingsTableId` field. */ + authSettingsTableId?: UUIDFilter; + /** Filter by the object’s `rpId` field. */ + rpId?: StringFilter; + /** Filter by the object’s `rpName` field. */ + rpName?: StringFilter; + /** Filter by the object’s `originAllowlist` field. */ + originAllowlist?: StringListFilter; + /** Filter by the object’s `attestationType` field. */ + attestationType?: StringFilter; + /** Filter by the object’s `requireUserVerification` field. */ + requireUserVerification?: BooleanFilter; + /** Filter by the object’s `residentKey` field. */ + residentKey?: StringFilter; + /** Filter by the object’s `challengeExpiry` field. */ + challengeExpiry?: IntervalFilter; + /** Checks for all expressions in this list. */ + and?: WebauthnAuthModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: WebauthnAuthModuleFilter[]; + /** Negates the expression. */ + not?: WebauthnAuthModuleFilter; +} +export interface PrincipalAuthModuleFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `schemaId` field. */ + schemaId?: UUIDFilter; + /** Filter by the object’s `principalsTableId` field. */ + principalsTableId?: UUIDFilter; + /** Filter by the object’s `principalEntitiesTableId` field. */ + principalEntitiesTableId?: UUIDFilter; + /** Filter by the object’s `principalScopeOverridesTableId` field. */ + principalScopeOverridesTableId?: UUIDFilter; + /** Filter by the object’s `usersTableId` field. */ + usersTableId?: UUIDFilter; + /** Filter by the object’s `sessionsTableId` field. */ + sessionsTableId?: UUIDFilter; + /** Filter by the object’s `sessionCredentialsTableId` field. */ + sessionCredentialsTableId?: UUIDFilter; + /** Filter by the object’s `auditsTableId` field. */ + auditsTableId?: UUIDFilter; + /** Filter by the object’s `principalsTableName` field. */ + principalsTableName?: StringFilter; + /** Filter by the object’s `createPrincipalFunction` field. */ + createPrincipalFunction?: StringFilter; + /** Filter by the object’s `deletePrincipalFunction` field. */ + deletePrincipalFunction?: StringFilter; + /** Filter by the object’s `createOrgPrincipalFunction` field. */ + createOrgPrincipalFunction?: StringFilter; + /** Filter by the object’s `deleteOrgPrincipalFunction` field. */ + deleteOrgPrincipalFunction?: StringFilter; + /** Filter by the object’s `createOrgApiKeyFunction` field. */ + createOrgApiKeyFunction?: StringFilter; + /** Filter by the object’s `revokeOrgApiKeyFunction` field. */ + revokeOrgApiKeyFunction?: StringFilter; + /** Filter by the object’s `apiName` field. */ + apiName?: StringFilter; + /** Checks for all expressions in this list. */ + and?: PrincipalAuthModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: PrincipalAuthModuleFilter[]; + /** Negates the expression. */ + not?: PrincipalAuthModuleFilter; +} +export interface DbPoolFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `presetSlug` field. */ + presetSlug?: StringFilter; + /** Filter by the object’s `presetCommitId` field. */ + presetCommitId?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `errorMessage` field. */ + errorMessage?: StringFilter; + /** Filter by the object’s `expiresAt` field. */ + expiresAt?: DatetimeFilter; + /** Filter by the object’s `claimedBy` field. */ + claimedBy?: UUIDFilter; + /** Filter by the object’s `claimedAt` field. */ + claimedAt?: DatetimeFilter; + /** Filter by the object’s `bootstrapStatus` field. */ + bootstrapStatus?: StringFilter; + /** Filter by the object’s `bootstrapError` field. */ + bootstrapError?: StringFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Checks for all expressions in this list. */ + and?: DbPoolFilter[]; + /** Checks for any expressions in this list. */ + or?: DbPoolFilter[]; + /** Negates the expression. */ + not?: DbPoolFilter; +} +export interface FunctionModuleFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `entityField` field. */ + entityField?: StringFilter; + /** Filter by the object’s `schemaId` field. */ + schemaId?: UUIDFilter; + /** Filter by the object’s `privateSchemaId` field. */ + privateSchemaId?: UUIDFilter; + /** Filter by the object’s `publicSchemaName` field. */ + publicSchemaName?: StringFilter; + /** Filter by the object’s `privateSchemaName` field. */ + privateSchemaName?: StringFilter; + /** Filter by the object’s `definitionsTableId` field. */ + definitionsTableId?: UUIDFilter; + /** Filter by the object’s `definitionsTableName` field. */ + definitionsTableName?: StringFilter; + /** Filter by the object’s `apiName` field. */ + apiName?: StringFilter; + /** Filter by the object’s `privateApiName` field. */ + privateApiName?: StringFilter; /** Filter by the object’s `scope` field. */ scope?: StringFilter; - /** Filter by the object’s `actorFkTableId` field. */ - actorFkTableId?: UUIDFilter; - /** Filter by the object’s `entityFkTableId` field. */ - entityFkTableId?: UUIDFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Filter by the object’s `entityTableId` field. */ + entityTableId?: UUIDFilter; + /** Filter by the object’s `policies` field. */ + policies?: JSONFilter; + /** Filter by the object’s `provisions` field. */ + provisions?: JSONFilter; + /** Filter by the object’s `defaultPermissions` field. */ + defaultPermissions?: StringListFilter; + /** Checks for all expressions in this list. */ + and?: FunctionModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: FunctionModuleFilter[]; + /** Negates the expression. */ + not?: FunctionModuleFilter; +} +export interface MerkleStoreModuleFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `entityField` field. */ + entityField?: StringFilter; + /** Filter by the object’s `schemaId` field. */ + schemaId?: UUIDFilter; + /** Filter by the object’s `privateSchemaId` field. */ + privateSchemaId?: UUIDFilter; + /** Filter by the object’s `publicSchemaName` field. */ + publicSchemaName?: StringFilter; + /** Filter by the object’s `privateSchemaName` field. */ + privateSchemaName?: StringFilter; + /** Filter by the object’s `objectTableId` field. */ + objectTableId?: UUIDFilter; + /** Filter by the object’s `storeTableId` field. */ + storeTableId?: UUIDFilter; + /** Filter by the object’s `commitTableId` field. */ + commitTableId?: UUIDFilter; + /** Filter by the object’s `refTableId` field. */ + refTableId?: UUIDFilter; /** Filter by the object’s `prefix` field. */ prefix?: StringFilter; /** Filter by the object’s `apiName` field. */ apiName?: StringFilter; /** Filter by the object’s `privateApiName` field. */ privateApiName?: StringFilter; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; + /** Filter by the object’s `functionPrefix` field. */ + functionPrefix?: StringFilter; + /** Filter by the object’s `permissionKey` field. */ + permissionKey?: StringFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; /** Checks for all expressions in this list. */ - and?: ComputeLogModuleFilter[]; + and?: MerkleStoreModuleFilter[]; /** Checks for any expressions in this list. */ - or?: ComputeLogModuleFilter[]; + or?: MerkleStoreModuleFilter[]; /** Negates the expression. */ - not?: ComputeLogModuleFilter; + not?: MerkleStoreModuleFilter; + /** Filter by the object’s `graphModules` relation. */ + graphModules?: MerkleStoreModuleToManyGraphModuleFilter; + /** `graphModules` exist. */ + graphModulesExist?: boolean; + /** Filter by the object’s `dbPresetModules` relation. */ + dbPresetModules?: MerkleStoreModuleToManyDbPresetModuleFilter; + /** `dbPresetModules` exist. */ + dbPresetModulesExist?: boolean; } -export interface InferenceLogModuleFilter { +export interface DatabaseProvisionModuleFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseName` field. */ + databaseName?: StringFilter; + /** Filter by the object’s `ownerId` field. */ + ownerId?: UUIDFilter; + /** Filter by the object’s `subdomain` field. */ + subdomain?: StringFilter; + /** Filter by the object’s `domain` field. */ + domain?: StringFilter; + /** Filter by the object’s `modules` field. */ + modules?: JSONFilter; + /** Filter by the object’s `options` field. */ + options?: JSONFilter; + /** Filter by the object’s `bootstrapUser` field. */ + bootstrapUser?: BooleanFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `errorMessage` field. */ + errorMessage?: StringFilter; + /** Filter by the object’s `sourceDatabaseId` field. */ + sourceDatabaseId?: UUIDFilter; + /** Filter by the object’s `bootstrapStatus` field. */ + bootstrapStatus?: StringFilter; + /** Filter by the object’s `bootstrapError` field. */ + bootstrapError?: StringFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `completedAt` field. */ + completedAt?: DatetimeFilter; + /** Filter by the object’s `fulfilledAt` field. */ + fulfilledAt?: DatetimeFilter; + /** Checks for all expressions in this list. */ + and?: DatabaseProvisionModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: DatabaseProvisionModuleFilter[]; + /** Negates the expression. */ + not?: DatabaseProvisionModuleFilter; +} +export interface FunctionInvocationModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; + /** Filter by the object’s `entityField` field. */ + entityField?: StringFilter; /** Filter by the object’s `schemaId` field. */ schemaId?: UUIDFilter; /** Filter by the object’s `privateSchemaId` field. */ @@ -4456,44 +4833,90 @@ export interface InferenceLogModuleFilter { publicSchemaName?: StringFilter; /** Filter by the object’s `privateSchemaName` field. */ privateSchemaName?: StringFilter; - /** Filter by the object’s `inferenceLogTableId` field. */ - inferenceLogTableId?: UUIDFilter; - /** Filter by the object’s `inferenceLogTableName` field. */ - inferenceLogTableName?: StringFilter; - /** Filter by the object’s `usageDailyTableId` field. */ - usageDailyTableId?: UUIDFilter; - /** Filter by the object’s `usageDailyTableName` field. */ - usageDailyTableName?: StringFilter; - /** Filter by the object’s `interval` field. */ - interval?: StringFilter; - /** Filter by the object’s `retention` field. */ - retention?: StringFilter; - /** Filter by the object’s `premake` field. */ - premake?: IntFilter; + /** Filter by the object’s `invocationsTableId` field. */ + invocationsTableId?: UUIDFilter; + /** Filter by the object’s `executionLogsTableId` field. */ + executionLogsTableId?: UUIDFilter; + /** Filter by the object’s `invocationsTableName` field. */ + invocationsTableName?: StringFilter; + /** Filter by the object’s `executionLogsTableName` field. */ + executionLogsTableName?: StringFilter; + /** Filter by the object’s `apiName` field. */ + apiName?: StringFilter; + /** Filter by the object’s `privateApiName` field. */ + privateApiName?: StringFilter; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Filter by the object’s `entityTableId` field. */ + entityTableId?: UUIDFilter; + /** Filter by the object’s `policies` field. */ + policies?: JSONFilter; + /** Filter by the object’s `provisions` field. */ + provisions?: JSONFilter; + /** Filter by the object’s `defaultPermissions` field. */ + defaultPermissions?: StringListFilter; + /** Checks for all expressions in this list. */ + and?: FunctionInvocationModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: FunctionInvocationModuleFilter[]; + /** Negates the expression. */ + not?: FunctionInvocationModuleFilter; +} +export interface InvitesModuleFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `entityField` field. */ + entityField?: StringFilter; + /** Filter by the object’s `schemaId` field. */ + schemaId?: UUIDFilter; + /** Filter by the object’s `privateSchemaId` field. */ + privateSchemaId?: UUIDFilter; + /** Filter by the object’s `publicSchemaName` field. */ + publicSchemaName?: StringFilter; + /** Filter by the object’s `privateSchemaName` field. */ + privateSchemaName?: StringFilter; + /** Filter by the object’s `emailsTableId` field. */ + emailsTableId?: UUIDFilter; + /** Filter by the object’s `usersTableId` field. */ + usersTableId?: UUIDFilter; + /** Filter by the object’s `invitesTableId` field. */ + invitesTableId?: UUIDFilter; + /** Filter by the object’s `claimedInvitesTableId` field. */ + claimedInvitesTableId?: UUIDFilter; + /** Filter by the object’s `invitesTableName` field. */ + invitesTableName?: StringFilter; + /** Filter by the object’s `claimedInvitesTableName` field. */ + claimedInvitesTableName?: StringFilter; + /** Filter by the object’s `submitInviteCodeFunction` field. */ + submitInviteCodeFunction?: StringFilter; /** Filter by the object’s `scope` field. */ scope?: StringFilter; - /** Filter by the object’s `actorFkTableId` field. */ - actorFkTableId?: UUIDFilter; - /** Filter by the object’s `entityFkTableId` field. */ - entityFkTableId?: UUIDFilter; /** Filter by the object’s `prefix` field. */ prefix?: StringFilter; + /** Filter by the object’s `entityTableId` field. */ + entityTableId?: UUIDFilter; /** Filter by the object’s `apiName` field. */ apiName?: StringFilter; /** Filter by the object’s `privateApiName` field. */ privateApiName?: StringFilter; /** Checks for all expressions in this list. */ - and?: InferenceLogModuleFilter[]; + and?: InvitesModuleFilter[]; /** Checks for any expressions in this list. */ - or?: InferenceLogModuleFilter[]; + or?: InvitesModuleFilter[]; /** Negates the expression. */ - not?: InferenceLogModuleFilter; + not?: InvitesModuleFilter; } export interface NamespaceModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; + /** Filter by the object’s `entityField` field. */ + entityField?: StringFilter; /** Filter by the object’s `schemaId` field. */ schemaId?: UUIDFilter; /** Filter by the object’s `privateSchemaId` field. */ @@ -4520,8 +4943,6 @@ export interface NamespaceModuleFilter { prefix?: StringFilter; /** Filter by the object’s `entityTableId` field. */ entityTableId?: UUIDFilter; - /** Filter by the object’s `platformNamespacesTableId` field. */ - platformNamespacesTableId?: UUIDFilter; /** Filter by the object’s `policies` field. */ policies?: JSONFilter; /** Filter by the object’s `provisions` field. */ @@ -4535,7 +4956,7 @@ export interface NamespaceModuleFilter { /** Negates the expression. */ not?: NamespaceModuleFilter; } -export interface ResourceModuleFilter { +export interface PlansModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ @@ -4548,48 +4969,50 @@ export interface ResourceModuleFilter { publicSchemaName?: StringFilter; /** Filter by the object’s `privateSchemaName` field. */ privateSchemaName?: StringFilter; - /** Filter by the object’s `resourcesTableId` field. */ - resourcesTableId?: UUIDFilter; - /** Filter by the object’s `resourceEventsTableId` field. */ - resourceEventsTableId?: UUIDFilter; - /** Filter by the object’s `resourcesTableName` field. */ - resourcesTableName?: StringFilter; - /** Filter by the object’s `resourceEventsTableName` field. */ - resourceEventsTableName?: StringFilter; + /** Filter by the object’s `plansTableId` field. */ + plansTableId?: UUIDFilter; + /** Filter by the object’s `plansTableName` field. */ + plansTableName?: StringFilter; + /** Filter by the object’s `planLimitsTableId` field. */ + planLimitsTableId?: UUIDFilter; + /** Filter by the object’s `planLimitsTableName` field. */ + planLimitsTableName?: StringFilter; + /** Filter by the object’s `planPricingTableId` field. */ + planPricingTableId?: UUIDFilter; + /** Filter by the object’s `planOverridesTableId` field. */ + planOverridesTableId?: UUIDFilter; + /** Filter by the object’s `planMeterLimitsTableId` field. */ + planMeterLimitsTableId?: UUIDFilter; + /** Filter by the object’s `planCapsTableId` field. */ + planCapsTableId?: UUIDFilter; + /** Filter by the object’s `applyPlanFunction` field. */ + applyPlanFunction?: StringFilter; + /** Filter by the object’s `applyPlanAggregateFunction` field. */ + applyPlanAggregateFunction?: StringFilter; + /** Filter by the object’s `applyBillingPlanFunction` field. */ + applyBillingPlanFunction?: StringFilter; + /** Filter by the object’s `applyPlanCapsFunction` field. */ + applyPlanCapsFunction?: StringFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; /** Filter by the object’s `apiName` field. */ apiName?: StringFilter; /** Filter by the object’s `privateApiName` field. */ privateApiName?: StringFilter; - /** Filter by the object’s `scope` field. */ - scope?: StringFilter; - /** Filter by the object’s `prefix` field. */ - prefix?: StringFilter; - /** Filter by the object’s `entityTableId` field. */ - entityTableId?: UUIDFilter; - /** Filter by the object’s `namespaceModuleId` field. */ - namespaceModuleId?: UUIDFilter; - /** Filter by the object’s `policies` field. */ - policies?: JSONFilter; - /** Filter by the object’s `provisions` field. */ - provisions?: JSONFilter; - /** Filter by the object’s `defaultPermissions` field. */ - defaultPermissions?: StringListFilter; /** Checks for all expressions in this list. */ - and?: ResourceModuleFilter[]; + and?: PlansModuleFilter[]; /** Checks for any expressions in this list. */ - or?: ResourceModuleFilter[]; + or?: PlansModuleFilter[]; /** Negates the expression. */ - not?: ResourceModuleFilter; - /** Filter by the object’s `namespaceModule` relation. */ - namespaceModule?: NamespaceModuleFilter; - /** A related `namespaceModule` exists. */ - namespaceModuleExists?: boolean; + not?: PlansModuleFilter; } -export interface StorageLogModuleFilter { +export interface ComputeLogModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; + /** Filter by the object’s `entityField` field. */ + entityField?: StringFilter; /** Filter by the object’s `schemaId` field. */ schemaId?: UUIDFilter; /** Filter by the object’s `privateSchemaId` field. */ @@ -4598,10 +5021,10 @@ export interface StorageLogModuleFilter { publicSchemaName?: StringFilter; /** Filter by the object’s `privateSchemaName` field. */ privateSchemaName?: StringFilter; - /** Filter by the object’s `storageLogTableId` field. */ - storageLogTableId?: UUIDFilter; - /** Filter by the object’s `storageLogTableName` field. */ - storageLogTableName?: StringFilter; + /** Filter by the object’s `computeLogTableId` field. */ + computeLogTableId?: UUIDFilter; + /** Filter by the object’s `computeLogTableName` field. */ + computeLogTableName?: StringFilter; /** Filter by the object’s `usageDailyTableId` field. */ usageDailyTableId?: UUIDFilter; /** Filter by the object’s `usageDailyTableName` field. */ @@ -4625,17 +5048,19 @@ export interface StorageLogModuleFilter { /** Filter by the object’s `privateApiName` field. */ privateApiName?: StringFilter; /** Checks for all expressions in this list. */ - and?: StorageLogModuleFilter[]; + and?: ComputeLogModuleFilter[]; /** Checks for any expressions in this list. */ - or?: StorageLogModuleFilter[]; + or?: ComputeLogModuleFilter[]; /** Negates the expression. */ - not?: StorageLogModuleFilter; + not?: ComputeLogModuleFilter; } -export interface TransferLogModuleFilter { +export interface InferenceLogModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; + /** Filter by the object’s `entityField` field. */ + entityField?: StringFilter; /** Filter by the object’s `schemaId` field. */ schemaId?: UUIDFilter; /** Filter by the object’s `privateSchemaId` field. */ @@ -4644,10 +5069,10 @@ export interface TransferLogModuleFilter { publicSchemaName?: StringFilter; /** Filter by the object’s `privateSchemaName` field. */ privateSchemaName?: StringFilter; - /** Filter by the object’s `transferLogTableId` field. */ - transferLogTableId?: UUIDFilter; - /** Filter by the object’s `transferLogTableName` field. */ - transferLogTableName?: StringFilter; + /** Filter by the object’s `inferenceLogTableId` field. */ + inferenceLogTableId?: UUIDFilter; + /** Filter by the object’s `inferenceLogTableName` field. */ + inferenceLogTableName?: StringFilter; /** Filter by the object’s `usageDailyTableId` field. */ usageDailyTableId?: UUIDFilter; /** Filter by the object’s `usageDailyTableName` field. */ @@ -4671,17 +5096,19 @@ export interface TransferLogModuleFilter { /** Filter by the object’s `privateApiName` field. */ privateApiName?: StringFilter; /** Checks for all expressions in this list. */ - and?: TransferLogModuleFilter[]; + and?: InferenceLogModuleFilter[]; /** Checks for any expressions in this list. */ - or?: TransferLogModuleFilter[]; + or?: InferenceLogModuleFilter[]; /** Negates the expression. */ - not?: TransferLogModuleFilter; + not?: InferenceLogModuleFilter; } -export interface FunctionDeploymentModuleFilter { +export interface StorageLogModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; + /** Filter by the object’s `entityField` field. */ + entityField?: StringFilter; /** Filter by the object’s `schemaId` field. */ schemaId?: UUIDFilter; /** Filter by the object’s `privateSchemaId` field. */ @@ -4690,54 +5117,46 @@ export interface FunctionDeploymentModuleFilter { publicSchemaName?: StringFilter; /** Filter by the object’s `privateSchemaName` field. */ privateSchemaName?: StringFilter; - /** Filter by the object’s `deploymentsTableId` field. */ - deploymentsTableId?: UUIDFilter; - /** Filter by the object’s `deploymentEventsTableId` field. */ - deploymentEventsTableId?: UUIDFilter; - /** Filter by the object’s `deploymentsTableName` field. */ - deploymentsTableName?: StringFilter; - /** Filter by the object’s `deploymentEventsTableName` field. */ - deploymentEventsTableName?: StringFilter; - /** Filter by the object’s `apiName` field. */ - apiName?: StringFilter; - /** Filter by the object’s `privateApiName` field. */ - privateApiName?: StringFilter; + /** Filter by the object’s `storageLogTableId` field. */ + storageLogTableId?: UUIDFilter; + /** Filter by the object’s `storageLogTableName` field. */ + storageLogTableName?: StringFilter; + /** Filter by the object’s `usageDailyTableId` field. */ + usageDailyTableId?: UUIDFilter; + /** Filter by the object’s `usageDailyTableName` field. */ + usageDailyTableName?: StringFilter; + /** Filter by the object’s `interval` field. */ + interval?: StringFilter; + /** Filter by the object’s `retention` field. */ + retention?: StringFilter; + /** Filter by the object’s `premake` field. */ + premake?: IntFilter; /** Filter by the object’s `scope` field. */ scope?: StringFilter; + /** Filter by the object’s `actorFkTableId` field. */ + actorFkTableId?: UUIDFilter; + /** Filter by the object’s `entityFkTableId` field. */ + entityFkTableId?: UUIDFilter; /** Filter by the object’s `prefix` field. */ prefix?: StringFilter; - /** Filter by the object’s `entityTableId` field. */ - entityTableId?: UUIDFilter; - /** Filter by the object’s `functionModuleId` field. */ - functionModuleId?: UUIDFilter; - /** Filter by the object’s `namespaceModuleId` field. */ - namespaceModuleId?: UUIDFilter; - /** Filter by the object’s `policies` field. */ - policies?: JSONFilter; - /** Filter by the object’s `provisions` field. */ - provisions?: JSONFilter; - /** Filter by the object’s `defaultPermissions` field. */ - defaultPermissions?: StringListFilter; + /** Filter by the object’s `apiName` field. */ + apiName?: StringFilter; + /** Filter by the object’s `privateApiName` field. */ + privateApiName?: StringFilter; /** Checks for all expressions in this list. */ - and?: FunctionDeploymentModuleFilter[]; + and?: StorageLogModuleFilter[]; /** Checks for any expressions in this list. */ - or?: FunctionDeploymentModuleFilter[]; + or?: StorageLogModuleFilter[]; /** Negates the expression. */ - not?: FunctionDeploymentModuleFilter; - /** Filter by the object’s `functionModule` relation. */ - functionModule?: FunctionModuleFilter; - /** A related `functionModule` exists. */ - functionModuleExists?: boolean; - /** Filter by the object’s `namespaceModule` relation. */ - namespaceModule?: NamespaceModuleFilter; - /** A related `namespaceModule` exists. */ - namespaceModuleExists?: boolean; + not?: StorageLogModuleFilter; } -export interface PlansModuleFilter { +export interface TransferLogModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; + /** Filter by the object’s `entityField` field. */ + entityField?: StringFilter; /** Filter by the object’s `schemaId` field. */ schemaId?: UUIDFilter; /** Filter by the object’s `privateSchemaId` field. */ @@ -4746,30 +5165,26 @@ export interface PlansModuleFilter { publicSchemaName?: StringFilter; /** Filter by the object’s `privateSchemaName` field. */ privateSchemaName?: StringFilter; - /** Filter by the object’s `plansTableId` field. */ - plansTableId?: UUIDFilter; - /** Filter by the object’s `plansTableName` field. */ - plansTableName?: StringFilter; - /** Filter by the object’s `planLimitsTableId` field. */ - planLimitsTableId?: UUIDFilter; - /** Filter by the object’s `planLimitsTableName` field. */ - planLimitsTableName?: StringFilter; - /** Filter by the object’s `planPricingTableId` field. */ - planPricingTableId?: UUIDFilter; - /** Filter by the object’s `planOverridesTableId` field. */ - planOverridesTableId?: UUIDFilter; - /** Filter by the object’s `planMeterLimitsTableId` field. */ - planMeterLimitsTableId?: UUIDFilter; - /** Filter by the object’s `planCapsTableId` field. */ - planCapsTableId?: UUIDFilter; - /** Filter by the object’s `applyPlanFunction` field. */ - applyPlanFunction?: StringFilter; - /** Filter by the object’s `applyPlanAggregateFunction` field. */ - applyPlanAggregateFunction?: StringFilter; - /** Filter by the object’s `applyBillingPlanFunction` field. */ - applyBillingPlanFunction?: StringFilter; - /** Filter by the object’s `applyPlanCapsFunction` field. */ - applyPlanCapsFunction?: StringFilter; + /** Filter by the object’s `transferLogTableId` field. */ + transferLogTableId?: UUIDFilter; + /** Filter by the object’s `transferLogTableName` field. */ + transferLogTableName?: StringFilter; + /** Filter by the object’s `usageDailyTableId` field. */ + usageDailyTableId?: UUIDFilter; + /** Filter by the object’s `usageDailyTableName` field. */ + usageDailyTableName?: StringFilter; + /** Filter by the object’s `interval` field. */ + interval?: StringFilter; + /** Filter by the object’s `retention` field. */ + retention?: StringFilter; + /** Filter by the object’s `premake` field. */ + premake?: IntFilter; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; + /** Filter by the object’s `actorFkTableId` field. */ + actorFkTableId?: UUIDFilter; + /** Filter by the object’s `entityFkTableId` field. */ + entityFkTableId?: UUIDFilter; /** Filter by the object’s `prefix` field. */ prefix?: StringFilter; /** Filter by the object’s `apiName` field. */ @@ -4777,11 +5192,11 @@ export interface PlansModuleFilter { /** Filter by the object’s `privateApiName` field. */ privateApiName?: StringFilter; /** Checks for all expressions in this list. */ - and?: PlansModuleFilter[]; + and?: TransferLogModuleFilter[]; /** Checks for any expressions in this list. */ - or?: PlansModuleFilter[]; + or?: TransferLogModuleFilter[]; /** Negates the expression. */ - not?: PlansModuleFilter; + not?: TransferLogModuleFilter; } export interface BillingProviderModuleFilter { /** Filter by the object’s `id` field. */ @@ -4829,17 +5244,77 @@ export interface BillingProviderModuleFilter { /** Filter by the object’s `privateApiName` field. */ privateApiName?: StringFilter; /** Checks for all expressions in this list. */ - and?: BillingProviderModuleFilter[]; + and?: BillingProviderModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: BillingProviderModuleFilter[]; + /** Negates the expression. */ + not?: BillingProviderModuleFilter; +} +export interface FunctionDeploymentModuleFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `entityField` field. */ + entityField?: StringFilter; + /** Filter by the object’s `schemaId` field. */ + schemaId?: UUIDFilter; + /** Filter by the object’s `privateSchemaId` field. */ + privateSchemaId?: UUIDFilter; + /** Filter by the object’s `publicSchemaName` field. */ + publicSchemaName?: StringFilter; + /** Filter by the object’s `privateSchemaName` field. */ + privateSchemaName?: StringFilter; + /** Filter by the object’s `deploymentsTableId` field. */ + deploymentsTableId?: UUIDFilter; + /** Filter by the object’s `deploymentEventsTableId` field. */ + deploymentEventsTableId?: UUIDFilter; + /** Filter by the object’s `deploymentsTableName` field. */ + deploymentsTableName?: StringFilter; + /** Filter by the object’s `deploymentEventsTableName` field. */ + deploymentEventsTableName?: StringFilter; + /** Filter by the object’s `apiName` field. */ + apiName?: StringFilter; + /** Filter by the object’s `privateApiName` field. */ + privateApiName?: StringFilter; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Filter by the object’s `entityTableId` field. */ + entityTableId?: UUIDFilter; + /** Filter by the object’s `functionModuleId` field. */ + functionModuleId?: UUIDFilter; + /** Filter by the object’s `namespaceModuleId` field. */ + namespaceModuleId?: UUIDFilter; + /** Filter by the object’s `policies` field. */ + policies?: JSONFilter; + /** Filter by the object’s `provisions` field. */ + provisions?: JSONFilter; + /** Filter by the object’s `defaultPermissions` field. */ + defaultPermissions?: StringListFilter; + /** Checks for all expressions in this list. */ + and?: FunctionDeploymentModuleFilter[]; /** Checks for any expressions in this list. */ - or?: BillingProviderModuleFilter[]; + or?: FunctionDeploymentModuleFilter[]; /** Negates the expression. */ - not?: BillingProviderModuleFilter; + not?: FunctionDeploymentModuleFilter; + /** Filter by the object’s `functionModule` relation. */ + functionModule?: FunctionModuleFilter; + /** A related `functionModule` exists. */ + functionModuleExists?: boolean; + /** Filter by the object’s `namespaceModule` relation. */ + namespaceModule?: NamespaceModuleFilter; + /** A related `namespaceModule` exists. */ + namespaceModuleExists?: boolean; } -export interface DbUsageModuleFilter { +export interface PermissionsModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; + /** Filter by the object’s `entityField` field. */ + entityField?: StringFilter; /** Filter by the object’s `schemaId` field. */ schemaId?: UUIDFilter; /** Filter by the object’s `privateSchemaId` field. */ @@ -4848,50 +5323,50 @@ export interface DbUsageModuleFilter { publicSchemaName?: StringFilter; /** Filter by the object’s `privateSchemaName` field. */ privateSchemaName?: StringFilter; - /** Filter by the object’s `tableStatsLogTableId` field. */ - tableStatsLogTableId?: UUIDFilter; - /** Filter by the object’s `tableStatsLogTableName` field. */ - tableStatsLogTableName?: StringFilter; - /** Filter by the object’s `tableStatsDailyTableId` field. */ - tableStatsDailyTableId?: UUIDFilter; - /** Filter by the object’s `tableStatsDailyTableName` field. */ - tableStatsDailyTableName?: StringFilter; - /** Filter by the object’s `queryStatsLogTableId` field. */ - queryStatsLogTableId?: UUIDFilter; - /** Filter by the object’s `queryStatsLogTableName` field. */ - queryStatsLogTableName?: StringFilter; - /** Filter by the object’s `queryStatsDailyTableId` field. */ - queryStatsDailyTableId?: UUIDFilter; - /** Filter by the object’s `queryStatsDailyTableName` field. */ - queryStatsDailyTableName?: StringFilter; - /** Filter by the object’s `interval` field. */ - interval?: StringFilter; - /** Filter by the object’s `retention` field. */ - retention?: StringFilter; - /** Filter by the object’s `premake` field. */ - premake?: IntFilter; + /** Filter by the object’s `tableId` field. */ + tableId?: UUIDFilter; + /** Filter by the object’s `tableName` field. */ + tableName?: StringFilter; + /** Filter by the object’s `defaultTableId` field. */ + defaultTableId?: UUIDFilter; + /** Filter by the object’s `defaultTableName` field. */ + defaultTableName?: StringFilter; + /** Filter by the object’s `bitlen` field. */ + bitlen?: IntFilter; /** Filter by the object’s `scope` field. */ scope?: StringFilter; /** Filter by the object’s `prefix` field. */ prefix?: StringFilter; - /** Filter by the object’s `defaultPermissions` field. */ - defaultPermissions?: StringListFilter; + /** Filter by the object’s `entityTableId` field. */ + entityTableId?: UUIDFilter; + /** Filter by the object’s `actorTableId` field. */ + actorTableId?: UUIDFilter; + /** Filter by the object’s `getPaddedMask` field. */ + getPaddedMask?: StringFilter; + /** Filter by the object’s `getMask` field. */ + getMask?: StringFilter; + /** Filter by the object’s `getByMask` field. */ + getByMask?: StringFilter; + /** Filter by the object’s `getMaskByName` field. */ + getMaskByName?: StringFilter; /** Filter by the object’s `apiName` field. */ apiName?: StringFilter; /** Filter by the object’s `privateApiName` field. */ privateApiName?: StringFilter; /** Checks for all expressions in this list. */ - and?: DbUsageModuleFilter[]; + and?: PermissionsModuleFilter[]; /** Checks for any expressions in this list. */ - or?: DbUsageModuleFilter[]; + or?: PermissionsModuleFilter[]; /** Negates the expression. */ - not?: DbUsageModuleFilter; + not?: PermissionsModuleFilter; } export interface GraphExecutionModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; + /** Filter by the object’s `entityField` field. */ + entityField?: StringFilter; /** Filter by the object’s `schemaId` field. */ schemaId?: UUIDFilter; /** Filter by the object’s `privateSchemaId` field. */ @@ -4946,6 +5421,8 @@ export interface HierarchyModuleFilter { id?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; + /** Filter by the object’s `entityField` field. */ + entityField?: StringFilter; /** Filter by the object’s `schemaId` field. */ schemaId?: UUIDFilter; /** Filter by the object’s `privateSchemaId` field. */ @@ -4993,61 +5470,13 @@ export interface HierarchyModuleFilter { /** Negates the expression. */ not?: HierarchyModuleFilter; } -export interface PermissionsModuleFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `schemaId` field. */ - schemaId?: UUIDFilter; - /** Filter by the object’s `privateSchemaId` field. */ - privateSchemaId?: UUIDFilter; - /** Filter by the object’s `publicSchemaName` field. */ - publicSchemaName?: StringFilter; - /** Filter by the object’s `privateSchemaName` field. */ - privateSchemaName?: StringFilter; - /** Filter by the object’s `tableId` field. */ - tableId?: UUIDFilter; - /** Filter by the object’s `tableName` field. */ - tableName?: StringFilter; - /** Filter by the object’s `defaultTableId` field. */ - defaultTableId?: UUIDFilter; - /** Filter by the object’s `defaultTableName` field. */ - defaultTableName?: StringFilter; - /** Filter by the object’s `bitlen` field. */ - bitlen?: IntFilter; - /** Filter by the object’s `scope` field. */ - scope?: StringFilter; - /** Filter by the object’s `prefix` field. */ - prefix?: StringFilter; - /** Filter by the object’s `entityTableId` field. */ - entityTableId?: UUIDFilter; - /** Filter by the object’s `actorTableId` field. */ - actorTableId?: UUIDFilter; - /** Filter by the object’s `getPaddedMask` field. */ - getPaddedMask?: StringFilter; - /** Filter by the object’s `getMask` field. */ - getMask?: StringFilter; - /** Filter by the object’s `getByMask` field. */ - getByMask?: StringFilter; - /** Filter by the object’s `getMaskByName` field. */ - getMaskByName?: StringFilter; - /** Filter by the object’s `apiName` field. */ - apiName?: StringFilter; - /** Filter by the object’s `privateApiName` field. */ - privateApiName?: StringFilter; - /** Checks for all expressions in this list. */ - and?: PermissionsModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: PermissionsModuleFilter[]; - /** Negates the expression. */ - not?: PermissionsModuleFilter; -} export interface NotificationsModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; + /** Filter by the object’s `entityField` field. */ + entityField?: StringFilter; /** Filter by the object’s `schemaId` field. */ schemaId?: UUIDFilter; /** Filter by the object’s `privateSchemaId` field. */ @@ -5097,11 +5526,69 @@ export interface NotificationsModuleFilter { /** Negates the expression. */ not?: NotificationsModuleFilter; } +export interface RelationProvisionFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `relationType` field. */ + relationType?: StringFilter; + /** Filter by the object’s `sourceTableId` field. */ + sourceTableId?: UUIDFilter; + /** Filter by the object’s `targetTableId` field. */ + targetTableId?: UUIDFilter; + /** Filter by the object’s `fieldName` field. */ + fieldName?: StringFilter; + /** Filter by the object’s `deleteAction` field. */ + deleteAction?: StringFilter; + /** Filter by the object’s `isRequired` field. */ + isRequired?: BooleanFilter; + /** Filter by the object’s `apiRequired` field. */ + apiRequired?: BooleanFilter; + /** Filter by the object’s `junctionTableId` field. */ + junctionTableId?: UUIDFilter; + /** Filter by the object’s `junctionTableName` field. */ + junctionTableName?: StringFilter; + /** Filter by the object’s `junctionSchemaId` field. */ + junctionSchemaId?: UUIDFilter; + /** Filter by the object’s `sourceFieldName` field. */ + sourceFieldName?: StringFilter; + /** Filter by the object’s `targetFieldName` field. */ + targetFieldName?: StringFilter; + /** Filter by the object’s `useCompositeKey` field. */ + useCompositeKey?: BooleanFilter; + /** Filter by the object’s `createIndex` field. */ + createIndex?: BooleanFilter; + /** Filter by the object’s `exposeInApi` field. */ + exposeInApi?: BooleanFilter; + /** Filter by the object’s `nodes` field. */ + nodes?: JSONFilter; + /** Filter by the object’s `grants` field. */ + grants?: JSONFilter; + /** Filter by the object’s `policies` field. */ + policies?: JSONFilter; + /** Filter by the object’s `outFieldId` field. */ + outFieldId?: UUIDFilter; + /** Filter by the object’s `outJunctionTableId` field. */ + outJunctionTableId?: UUIDFilter; + /** Filter by the object’s `outSourceFieldId` field. */ + outSourceFieldId?: UUIDFilter; + /** Filter by the object’s `outTargetFieldId` field. */ + outTargetFieldId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: RelationProvisionFilter[]; + /** Checks for any expressions in this list. */ + or?: RelationProvisionFilter[]; + /** Negates the expression. */ + not?: RelationProvisionFilter; +} export interface ProfilesModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; + /** Filter by the object’s `entityField` field. */ + entityField?: StringFilter; /** Filter by the object’s `schemaId` field. */ schemaId?: UUIDFilter; /** Filter by the object’s `privateSchemaId` field. */ @@ -5196,6 +5683,10 @@ export interface BillingModuleFilter { meterDefaultsTableName?: StringFilter; /** Filter by the object’s `recordUsageFunction` field. */ recordUsageFunction?: StringFilter; + /** Filter by the object’s `sweepExpiredSubscriptionsFunction` field. */ + sweepExpiredSubscriptionsFunction?: StringFilter; + /** Filter by the object’s `rollupUsageSummaryFunction` field. */ + rollupUsageSummaryFunction?: StringFilter; /** Filter by the object’s `prefix` field. */ prefix?: StringFilter; /** Filter by the object’s `defaultPermissions` field. */ @@ -5211,61 +5702,69 @@ export interface BillingModuleFilter { /** Negates the expression. */ not?: BillingModuleFilter; } -export interface RelationProvisionFilter { +export interface ResourceModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `relationType` field. */ - relationType?: StringFilter; - /** Filter by the object’s `sourceTableId` field. */ - sourceTableId?: UUIDFilter; - /** Filter by the object’s `targetTableId` field. */ - targetTableId?: UUIDFilter; - /** Filter by the object’s `fieldName` field. */ - fieldName?: StringFilter; - /** Filter by the object’s `deleteAction` field. */ - deleteAction?: StringFilter; - /** Filter by the object’s `isRequired` field. */ - isRequired?: BooleanFilter; - /** Filter by the object’s `apiRequired` field. */ - apiRequired?: BooleanFilter; - /** Filter by the object’s `junctionTableId` field. */ - junctionTableId?: UUIDFilter; - /** Filter by the object’s `junctionTableName` field. */ - junctionTableName?: StringFilter; - /** Filter by the object’s `junctionSchemaId` field. */ - junctionSchemaId?: UUIDFilter; - /** Filter by the object’s `sourceFieldName` field. */ - sourceFieldName?: StringFilter; - /** Filter by the object’s `targetFieldName` field. */ - targetFieldName?: StringFilter; - /** Filter by the object’s `useCompositeKey` field. */ - useCompositeKey?: BooleanFilter; - /** Filter by the object’s `createIndex` field. */ - createIndex?: BooleanFilter; - /** Filter by the object’s `exposeInApi` field. */ - exposeInApi?: BooleanFilter; - /** Filter by the object’s `nodes` field. */ - nodes?: JSONFilter; - /** Filter by the object’s `grants` field. */ - grants?: JSONFilter; + /** Filter by the object’s `entityField` field. */ + entityField?: StringFilter; + /** Filter by the object’s `schemaId` field. */ + schemaId?: UUIDFilter; + /** Filter by the object’s `privateSchemaId` field. */ + privateSchemaId?: UUIDFilter; + /** Filter by the object’s `publicSchemaName` field. */ + publicSchemaName?: StringFilter; + /** Filter by the object’s `privateSchemaName` field. */ + privateSchemaName?: StringFilter; + /** Filter by the object’s `resourcesTableId` field. */ + resourcesTableId?: UUIDFilter; + /** Filter by the object’s `resourceEventsTableId` field. */ + resourceEventsTableId?: UUIDFilter; + /** Filter by the object’s `resourceStatusChecksTableId` field. */ + resourceStatusChecksTableId?: UUIDFilter; + /** Filter by the object’s `resourceDefinitionsTableId` field. */ + resourceDefinitionsTableId?: UUIDFilter; + /** Filter by the object’s `resourcesTableName` field. */ + resourcesTableName?: StringFilter; + /** Filter by the object’s `resourceEventsTableName` field. */ + resourceEventsTableName?: StringFilter; + /** Filter by the object’s `resourceStatusChecksTableName` field. */ + resourceStatusChecksTableName?: StringFilter; + /** Filter by the object’s `resourceDefinitionsTableName` field. */ + resourceDefinitionsTableName?: StringFilter; + /** Filter by the object’s `resolvedRequirementsViewName` field. */ + resolvedRequirementsViewName?: StringFilter; + /** Filter by the object’s `requirementsStateViewName` field. */ + requirementsStateViewName?: StringFilter; + /** Filter by the object’s `apiName` field. */ + apiName?: StringFilter; + /** Filter by the object’s `privateApiName` field. */ + privateApiName?: StringFilter; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Filter by the object’s `entityTableId` field. */ + entityTableId?: UUIDFilter; + /** Filter by the object’s `namespaceModuleId` field. */ + namespaceModuleId?: UUIDFilter; /** Filter by the object’s `policies` field. */ policies?: JSONFilter; - /** Filter by the object’s `outFieldId` field. */ - outFieldId?: UUIDFilter; - /** Filter by the object’s `outJunctionTableId` field. */ - outJunctionTableId?: UUIDFilter; - /** Filter by the object’s `outSourceFieldId` field. */ - outSourceFieldId?: UUIDFilter; - /** Filter by the object’s `outTargetFieldId` field. */ - outTargetFieldId?: UUIDFilter; + /** Filter by the object’s `provisions` field. */ + provisions?: JSONFilter; + /** Filter by the object’s `defaultPermissions` field. */ + defaultPermissions?: StringListFilter; /** Checks for all expressions in this list. */ - and?: RelationProvisionFilter[]; + and?: ResourceModuleFilter[]; /** Checks for any expressions in this list. */ - or?: RelationProvisionFilter[]; + or?: ResourceModuleFilter[]; /** Negates the expression. */ - not?: RelationProvisionFilter; + not?: ResourceModuleFilter; + /** Filter by the object’s `namespaceModule` relation. */ + namespaceModule?: NamespaceModuleFilter; + /** A related `namespaceModule` exists. */ + namespaceModuleExists?: boolean; } export interface UserAuthModuleFilter { /** Filter by the object’s `id` field. */ @@ -5331,11 +5830,75 @@ export interface UserAuthModuleFilter { /** Negates the expression. */ not?: UserAuthModuleFilter; } +export interface DbUsageModuleFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `entityField` field. */ + entityField?: StringFilter; + /** Filter by the object’s `schemaId` field. */ + schemaId?: UUIDFilter; + /** Filter by the object’s `privateSchemaId` field. */ + privateSchemaId?: UUIDFilter; + /** Filter by the object’s `publicSchemaName` field. */ + publicSchemaName?: StringFilter; + /** Filter by the object’s `privateSchemaName` field. */ + privateSchemaName?: StringFilter; + /** Filter by the object’s `tableStatsLogTableId` field. */ + tableStatsLogTableId?: UUIDFilter; + /** Filter by the object’s `tableStatsLogTableName` field. */ + tableStatsLogTableName?: StringFilter; + /** Filter by the object’s `tableStatsDailyTableId` field. */ + tableStatsDailyTableId?: UUIDFilter; + /** Filter by the object’s `tableStatsDailyTableName` field. */ + tableStatsDailyTableName?: StringFilter; + /** Filter by the object’s `queryStatsLogTableId` field. */ + queryStatsLogTableId?: UUIDFilter; + /** Filter by the object’s `queryStatsLogTableName` field. */ + queryStatsLogTableName?: StringFilter; + /** Filter by the object’s `queryStatsDailyTableId` field. */ + queryStatsDailyTableId?: UUIDFilter; + /** Filter by the object’s `queryStatsDailyTableName` field. */ + queryStatsDailyTableName?: StringFilter; + /** Filter by the object’s `collectDbTableStatsFunction` field. */ + collectDbTableStatsFunction?: StringFilter; + /** Filter by the object’s `collectDbQueryStatsFunction` field. */ + collectDbQueryStatsFunction?: StringFilter; + /** Filter by the object’s `rollupDbTableStatsDailyFunction` field. */ + rollupDbTableStatsDailyFunction?: StringFilter; + /** Filter by the object’s `rollupDbQueryStatsDailyFunction` field. */ + rollupDbQueryStatsDailyFunction?: StringFilter; + /** Filter by the object’s `interval` field. */ + interval?: StringFilter; + /** Filter by the object’s `retention` field. */ + retention?: StringFilter; + /** Filter by the object’s `premake` field. */ + premake?: IntFilter; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Filter by the object’s `defaultPermissions` field. */ + defaultPermissions?: StringListFilter; + /** Filter by the object’s `apiName` field. */ + apiName?: StringFilter; + /** Filter by the object’s `privateApiName` field. */ + privateApiName?: StringFilter; + /** Checks for all expressions in this list. */ + and?: DbUsageModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: DbUsageModuleFilter[]; + /** Negates the expression. */ + not?: DbUsageModuleFilter; +} export interface AgentModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; + /** Filter by the object’s `entityField` field. */ + entityField?: StringFilter; /** Filter by the object’s `schemaId` field. */ schemaId?: UUIDFilter; /** Filter by the object’s `privateSchemaId` field. */ @@ -5414,6 +5977,8 @@ export interface LimitsModuleFilter { id?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; + /** Filter by the object’s `entityField` field. */ + entityField?: StringFilter; /** Filter by the object’s `schemaId` field. */ schemaId?: UUIDFilter; /** Filter by the object’s `privateSchemaId` field. */ @@ -5489,96 +6054,6 @@ export interface LimitsModuleFilter { /** Negates the expression. */ not?: LimitsModuleFilter; } -export interface MembershipsModuleFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `schemaId` field. */ - schemaId?: UUIDFilter; - /** Filter by the object’s `privateSchemaId` field. */ - privateSchemaId?: UUIDFilter; - /** Filter by the object’s `publicSchemaName` field. */ - publicSchemaName?: StringFilter; - /** Filter by the object’s `privateSchemaName` field. */ - privateSchemaName?: StringFilter; - /** Filter by the object’s `membershipsTableId` field. */ - membershipsTableId?: UUIDFilter; - /** Filter by the object’s `membershipsTableName` field. */ - membershipsTableName?: StringFilter; - /** Filter by the object’s `membersTableId` field. */ - membersTableId?: UUIDFilter; - /** Filter by the object’s `membersTableName` field. */ - membersTableName?: StringFilter; - /** Filter by the object’s `membershipDefaultsTableId` field. */ - membershipDefaultsTableId?: UUIDFilter; - /** Filter by the object’s `membershipDefaultsTableName` field. */ - membershipDefaultsTableName?: StringFilter; - /** Filter by the object’s `membershipSettingsTableId` field. */ - membershipSettingsTableId?: UUIDFilter; - /** Filter by the object’s `membershipSettingsTableName` field. */ - membershipSettingsTableName?: StringFilter; - /** Filter by the object’s `grantsTableId` field. */ - grantsTableId?: UUIDFilter; - /** Filter by the object’s `grantsTableName` field. */ - grantsTableName?: StringFilter; - /** Filter by the object’s `actorTableId` field. */ - actorTableId?: UUIDFilter; - /** Filter by the object’s `limitsTableId` field. */ - limitsTableId?: UUIDFilter; - /** Filter by the object’s `defaultLimitsTableId` field. */ - defaultLimitsTableId?: UUIDFilter; - /** Filter by the object’s `permissionsTableId` field. */ - permissionsTableId?: UUIDFilter; - /** Filter by the object’s `defaultPermissionsTableId` field. */ - defaultPermissionsTableId?: UUIDFilter; - /** Filter by the object’s `sprtTableId` field. */ - sprtTableId?: UUIDFilter; - /** Filter by the object’s `adminGrantsTableId` field. */ - adminGrantsTableId?: UUIDFilter; - /** Filter by the object’s `adminGrantsTableName` field. */ - adminGrantsTableName?: StringFilter; - /** Filter by the object’s `ownerGrantsTableId` field. */ - ownerGrantsTableId?: UUIDFilter; - /** Filter by the object’s `ownerGrantsTableName` field. */ - ownerGrantsTableName?: StringFilter; - /** Filter by the object’s `scope` field. */ - scope?: StringFilter; - /** Filter by the object’s `prefix` field. */ - prefix?: StringFilter; - /** Filter by the object’s `entityTableId` field. */ - entityTableId?: UUIDFilter; - /** Filter by the object’s `entityTableOwnerId` field. */ - entityTableOwnerId?: UUIDFilter; - /** Filter by the object’s `getOrgFn` field. */ - getOrgFn?: StringFilter; - /** Filter by the object’s `actorMaskCheck` field. */ - actorMaskCheck?: StringFilter; - /** Filter by the object’s `actorPermCheck` field. */ - actorPermCheck?: StringFilter; - /** Filter by the object’s `entityIdsByMask` field. */ - entityIdsByMask?: StringFilter; - /** Filter by the object’s `entityIdsByPerm` field. */ - entityIdsByPerm?: StringFilter; - /** Filter by the object’s `entityIdsFunction` field. */ - entityIdsFunction?: StringFilter; - /** Filter by the object’s `memberProfilesTableId` field. */ - memberProfilesTableId?: UUIDFilter; - /** Filter by the object’s `permissionDefaultPermissionsTableId` field. */ - permissionDefaultPermissionsTableId?: UUIDFilter; - /** Filter by the object’s `permissionDefaultGrantsTableId` field. */ - permissionDefaultGrantsTableId?: UUIDFilter; - /** Filter by the object’s `apiName` field. */ - apiName?: StringFilter; - /** Filter by the object’s `privateApiName` field. */ - privateApiName?: StringFilter; - /** Checks for all expressions in this list. */ - and?: MembershipsModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: MembershipsModuleFilter[]; - /** Negates the expression. */ - not?: MembershipsModuleFilter; -} export interface EntityTypeProvisionFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; @@ -5652,8 +6127,6 @@ export interface EntityTypeProvisionFilter { outInvocationsTableId?: UUIDFilter; /** Filter by the object’s `outExecutionLogsTableId` field. */ outExecutionLogsTableId?: UUIDFilter; - /** Filter by the object’s `outSecretDefinitionsTableId` field. */ - outSecretDefinitionsTableId?: UUIDFilter; /** Filter by the object’s `outGraphModuleId` field. */ outGraphModuleId?: UUIDFilter; /** Filter by the object’s `outGraphsTableId` field. */ @@ -5698,6 +6171,8 @@ export interface StorageModuleFilter { provisions?: JSONFilter; /** Filter by the object’s `entityTableId` field. */ entityTableId?: UUIDFilter; + /** Filter by the object’s `entityField` field. */ + entityField?: StringFilter; /** Filter by the object’s `endpoint` field. */ endpoint?: StringFilter; /** Filter by the object’s `publicUrlPrefix` field. */ @@ -5747,17 +6222,111 @@ export interface StorageModuleFilter { /** Filter by the object’s `privateApiName` field. */ privateApiName?: StringFilter; /** Checks for all expressions in this list. */ - and?: StorageModuleFilter[]; + and?: StorageModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: StorageModuleFilter[]; + /** Negates the expression. */ + not?: StorageModuleFilter; +} +export interface MembershipsModuleFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `entityField` field. */ + entityField?: StringFilter; + /** Filter by the object’s `schemaId` field. */ + schemaId?: UUIDFilter; + /** Filter by the object’s `privateSchemaId` field. */ + privateSchemaId?: UUIDFilter; + /** Filter by the object’s `publicSchemaName` field. */ + publicSchemaName?: StringFilter; + /** Filter by the object’s `privateSchemaName` field. */ + privateSchemaName?: StringFilter; + /** Filter by the object’s `membershipsTableId` field. */ + membershipsTableId?: UUIDFilter; + /** Filter by the object’s `membershipsTableName` field. */ + membershipsTableName?: StringFilter; + /** Filter by the object’s `membersTableId` field. */ + membersTableId?: UUIDFilter; + /** Filter by the object’s `membersTableName` field. */ + membersTableName?: StringFilter; + /** Filter by the object’s `membershipDefaultsTableId` field. */ + membershipDefaultsTableId?: UUIDFilter; + /** Filter by the object’s `membershipDefaultsTableName` field. */ + membershipDefaultsTableName?: StringFilter; + /** Filter by the object’s `membershipSettingsTableId` field. */ + membershipSettingsTableId?: UUIDFilter; + /** Filter by the object’s `membershipSettingsTableName` field. */ + membershipSettingsTableName?: StringFilter; + /** Filter by the object’s `grantsTableId` field. */ + grantsTableId?: UUIDFilter; + /** Filter by the object’s `grantsTableName` field. */ + grantsTableName?: StringFilter; + /** Filter by the object’s `actorTableId` field. */ + actorTableId?: UUIDFilter; + /** Filter by the object’s `limitsTableId` field. */ + limitsTableId?: UUIDFilter; + /** Filter by the object’s `defaultLimitsTableId` field. */ + defaultLimitsTableId?: UUIDFilter; + /** Filter by the object’s `permissionsTableId` field. */ + permissionsTableId?: UUIDFilter; + /** Filter by the object’s `defaultPermissionsTableId` field. */ + defaultPermissionsTableId?: UUIDFilter; + /** Filter by the object’s `sprtTableId` field. */ + sprtTableId?: UUIDFilter; + /** Filter by the object’s `adminGrantsTableId` field. */ + adminGrantsTableId?: UUIDFilter; + /** Filter by the object’s `adminGrantsTableName` field. */ + adminGrantsTableName?: StringFilter; + /** Filter by the object’s `ownerGrantsTableId` field. */ + ownerGrantsTableId?: UUIDFilter; + /** Filter by the object’s `ownerGrantsTableName` field. */ + ownerGrantsTableName?: StringFilter; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Filter by the object’s `entityTableId` field. */ + entityTableId?: UUIDFilter; + /** Filter by the object’s `entityTableOwnerId` field. */ + entityTableOwnerId?: UUIDFilter; + /** Filter by the object’s `getOrgFn` field. */ + getOrgFn?: StringFilter; + /** Filter by the object’s `actorMaskCheck` field. */ + actorMaskCheck?: StringFilter; + /** Filter by the object’s `actorPermCheck` field. */ + actorPermCheck?: StringFilter; + /** Filter by the object’s `entityIdsByMask` field. */ + entityIdsByMask?: StringFilter; + /** Filter by the object’s `entityIdsByPerm` field. */ + entityIdsByPerm?: StringFilter; + /** Filter by the object’s `entityIdsFunction` field. */ + entityIdsFunction?: StringFilter; + /** Filter by the object’s `memberProfilesTableId` field. */ + memberProfilesTableId?: UUIDFilter; + /** Filter by the object’s `permissionDefaultPermissionsTableId` field. */ + permissionDefaultPermissionsTableId?: UUIDFilter; + /** Filter by the object’s `permissionDefaultGrantsTableId` field. */ + permissionDefaultGrantsTableId?: UUIDFilter; + /** Filter by the object’s `apiName` field. */ + apiName?: StringFilter; + /** Filter by the object’s `privateApiName` field. */ + privateApiName?: StringFilter; + /** Checks for all expressions in this list. */ + and?: MembershipsModuleFilter[]; /** Checks for any expressions in this list. */ - or?: StorageModuleFilter[]; + or?: MembershipsModuleFilter[]; /** Negates the expression. */ - not?: StorageModuleFilter; + not?: MembershipsModuleFilter; } export interface EventsModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; + /** Filter by the object’s `entityField` field. */ + entityField?: StringFilter; /** Filter by the object’s `schemaId` field. */ schemaId?: UUIDFilter; /** Filter by the object’s `privateSchemaId` field. */ @@ -5810,8 +6379,6 @@ export interface EventsModuleFilter { upsertAggregate?: StringFilter; /** Filter by the object’s `tgUpdateAggregates` field. */ tgUpdateAggregates?: StringFilter; - /** Filter by the object’s `pruneEvents` field. */ - pruneEvents?: StringFilter; /** Filter by the object’s `stepsRequired` field. */ stepsRequired?: StringFilter; /** Filter by the object’s `levelAchieved` field. */ @@ -5872,20 +6439,6 @@ export type MembershipTypesModuleOrderBy = | 'TABLE_ID_DESC' | 'TABLE_NAME_ASC' | 'TABLE_NAME_DESC'; -export type UserStateModuleOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC' - | 'TABLE_ID_ASC' - | 'TABLE_ID_DESC' - | 'TABLE_NAME_ASC' - | 'TABLE_NAME_DESC'; export type SessionSecretsModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -5902,24 +6455,6 @@ export type SessionSecretsModuleOrderBy = | 'TABLE_NAME_DESC' | 'SESSIONS_TABLE_ID_ASC' | 'SESSIONS_TABLE_ID_DESC'; -export type ConfigSecretsOrgModuleOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC' - | 'TABLE_ID_ASC' - | 'TABLE_ID_DESC' - | 'TABLE_NAME_ASC' - | 'TABLE_NAME_DESC' - | 'API_NAME_ASC' - | 'API_NAME_DESC' - | 'PRIVATE_API_NAME_ASC' - | 'PRIVATE_API_NAME_DESC'; export type DevicesModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -5956,7 +6491,7 @@ export type I18NModuleOrderBy = | 'API_NAME_DESC' | 'PRIVATE_API_NAME_ASC' | 'PRIVATE_API_NAME_DESC'; -export type UserCredentialsModuleOrderBy = +export type UserSettingsModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -5968,13 +6503,13 @@ export type UserCredentialsModuleOrderBy = | 'SCHEMA_ID_DESC' | 'TABLE_ID_ASC' | 'TABLE_ID_DESC' + | 'OWNER_TABLE_ID_ASC' + | 'OWNER_TABLE_ID_DESC' | 'TABLE_NAME_ASC' | 'TABLE_NAME_DESC' | 'API_NAME_ASC' - | 'API_NAME_DESC' - | 'PRIVATE_API_NAME_ASC' - | 'PRIVATE_API_NAME_DESC'; -export type UserSettingsModuleOrderBy = + | 'API_NAME_DESC'; +export type UserStateModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -5982,17 +6517,15 @@ export type UserSettingsModuleOrderBy = | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' + | 'ENTITY_FIELD_ASC' + | 'ENTITY_FIELD_DESC' | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' | 'TABLE_ID_ASC' | 'TABLE_ID_DESC' - | 'OWNER_TABLE_ID_ASC' - | 'OWNER_TABLE_ID_DESC' | 'TABLE_NAME_ASC' - | 'TABLE_NAME_DESC' - | 'API_NAME_ASC' - | 'API_NAME_DESC'; -export type ConfigSecretsUserModuleOrderBy = + | 'TABLE_NAME_DESC'; +export type UserCredentialsModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -6000,16 +6533,14 @@ export type ConfigSecretsUserModuleOrderBy = | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' + | 'ENTITY_FIELD_ASC' + | 'ENTITY_FIELD_DESC' | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' | 'TABLE_ID_ASC' | 'TABLE_ID_DESC' | 'TABLE_NAME_ASC' | 'TABLE_NAME_DESC' - | 'CONFIG_DEFINITIONS_TABLE_ID_ASC' - | 'CONFIG_DEFINITIONS_TABLE_ID_DESC' - | 'API_NAME_ASC' - | 'API_NAME_DESC' | 'PRIVATE_API_NAME_ASC' | 'PRIVATE_API_NAME_DESC'; export type ConnectedAccountsModuleOrderBy = @@ -6144,6 +6675,26 @@ export type WebauthnCredentialsModuleOrderBy = | 'API_NAME_DESC' | 'PRIVATE_API_NAME_ASC' | 'PRIVATE_API_NAME_DESC'; +export type ConfigSecretsUserModuleOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'ENTITY_FIELD_ASC' + | 'ENTITY_FIELD_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'TABLE_ID_ASC' + | 'TABLE_ID_DESC' + | 'TABLE_NAME_ASC' + | 'TABLE_NAME_DESC' + | 'API_NAME_ASC' + | 'API_NAME_DESC' + | 'PRIVATE_API_NAME_ASC' + | 'PRIVATE_API_NAME_DESC'; export type CryptoAddressesModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -6196,36 +6747,6 @@ export type DenormalizedTableFieldOrderBy = | 'FUNC_NAME_DESC' | 'FUNC_ORDER_ASC' | 'FUNC_ORDER_DESC'; -export type IdentityProvidersModuleOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC' - | 'PRIVATE_SCHEMA_ID_ASC' - | 'PRIVATE_SCHEMA_ID_DESC' - | 'PUBLIC_SCHEMA_NAME_ASC' - | 'PUBLIC_SCHEMA_NAME_DESC' - | 'PRIVATE_SCHEMA_NAME_ASC' - | 'PRIVATE_SCHEMA_NAME_DESC' - | 'TABLE_ID_ASC' - | 'TABLE_ID_DESC' - | 'TABLE_NAME_ASC' - | 'TABLE_NAME_DESC' - | 'API_NAME_ASC' - | 'API_NAME_DESC' - | 'PRIVATE_API_NAME_ASC' - | 'PRIVATE_API_NAME_DESC' - | 'SCOPE_ASC' - | 'SCOPE_DESC' - | 'PREFIX_ASC' - | 'PREFIX_DESC' - | 'ENTITY_TABLE_ID_ASC' - | 'ENTITY_TABLE_ID_DESC'; export type RlsModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -6438,39 +6959,39 @@ export type SecureTableProvisionOrderBy = | 'POLICIES_DESC' | 'OUT_FIELDS_ASC' | 'OUT_FIELDS_DESC'; -export type DatabaseProvisionModuleOrderBy = +export type IdentityProvidersModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' - | 'DATABASE_NAME_ASC' - | 'DATABASE_NAME_DESC' - | 'OWNER_ID_ASC' - | 'OWNER_ID_DESC' - | 'SUBDOMAIN_ASC' - | 'SUBDOMAIN_DESC' - | 'DOMAIN_ASC' - | 'DOMAIN_DESC' - | 'MODULES_ASC' - | 'MODULES_DESC' - | 'OPTIONS_ASC' - | 'OPTIONS_DESC' - | 'BOOTSTRAP_USER_ASC' - | 'BOOTSTRAP_USER_DESC' - | 'STATUS_ASC' - | 'STATUS_DESC' - | 'ERROR_MESSAGE_ASC' - | 'ERROR_MESSAGE_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'COMPLETED_AT_ASC' - | 'COMPLETED_AT_DESC'; -export type ConfigSecretsModuleOrderBy = + | 'ENTITY_FIELD_ASC' + | 'ENTITY_FIELD_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'PRIVATE_SCHEMA_ID_ASC' + | 'PRIVATE_SCHEMA_ID_DESC' + | 'PUBLIC_SCHEMA_NAME_ASC' + | 'PUBLIC_SCHEMA_NAME_DESC' + | 'PRIVATE_SCHEMA_NAME_ASC' + | 'PRIVATE_SCHEMA_NAME_DESC' + | 'TABLE_ID_ASC' + | 'TABLE_ID_DESC' + | 'TABLE_NAME_ASC' + | 'TABLE_NAME_DESC' + | 'API_NAME_ASC' + | 'API_NAME_DESC' + | 'PRIVATE_API_NAME_ASC' + | 'PRIVATE_API_NAME_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC' + | 'ENTITY_TABLE_ID_ASC' + | 'ENTITY_TABLE_ID_DESC'; +export type IntegrationProvidersModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -6478,6 +6999,8 @@ export type ConfigSecretsModuleOrderBy = | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' + | 'ENTITY_FIELD_ASC' + | 'ENTITY_FIELD_DESC' | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' | 'PRIVATE_SCHEMA_ID_ASC' @@ -6488,8 +7011,6 @@ export type ConfigSecretsModuleOrderBy = | 'PRIVATE_SCHEMA_NAME_DESC' | 'TABLE_ID_ASC' | 'TABLE_ID_DESC' - | 'CONFIG_DEFINITIONS_TABLE_ID_ASC' - | 'CONFIG_DEFINITIONS_TABLE_ID_DESC' | 'TABLE_NAME_ASC' | 'TABLE_NAME_DESC' | 'API_NAME_ASC' @@ -6501,14 +7022,136 @@ export type ConfigSecretsModuleOrderBy = | 'PREFIX_ASC' | 'PREFIX_DESC' | 'ENTITY_TABLE_ID_ASC' + | 'ENTITY_TABLE_ID_DESC'; +export type DbPoolConfigOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'PRESET_SLUG_ASC' + | 'PRESET_SLUG_DESC' + | 'DOMAIN_ASC' + | 'DOMAIN_DESC' + | 'POOL_OWNER_ID_ASC' + | 'POOL_OWNER_ID_DESC' + | 'MIN_ASC' + | 'MIN_DESC' + | 'MAX_ASC' + | 'MAX_DESC' + | 'WARM_TTL_ASC' + | 'WARM_TTL_DESC' + | 'ENABLED_ASC' + | 'ENABLED_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +export type RealtimeModuleOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'PRIVATE_SCHEMA_ID_ASC' + | 'PRIVATE_SCHEMA_ID_DESC' + | 'SUBSCRIPTIONS_SCHEMA_ID_ASC' + | 'SUBSCRIPTIONS_SCHEMA_ID_DESC' + | 'CHANGE_LOG_TABLE_ID_ASC' + | 'CHANGE_LOG_TABLE_ID_DESC' + | 'LISTENER_NODE_TABLE_ID_ASC' + | 'LISTENER_NODE_TABLE_ID_DESC' + | 'SOURCE_REGISTRY_TABLE_ID_ASC' + | 'SOURCE_REGISTRY_TABLE_ID_DESC' + | 'RETENTION_HOURS_ASC' + | 'RETENTION_HOURS_DESC' + | 'PREMAKE_ASC' + | 'PREMAKE_DESC' + | 'INTERVAL_ASC' + | 'INTERVAL_DESC' + | 'NOTIFY_CHANNEL_ASC' + | 'NOTIFY_CHANNEL_DESC' + | 'API_NAME_ASC' + | 'API_NAME_DESC' + | 'PRIVATE_API_NAME_ASC' + | 'PRIVATE_API_NAME_DESC'; +export type InfraSecretsModuleOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'PRIVATE_SCHEMA_ID_ASC' + | 'PRIVATE_SCHEMA_ID_DESC' + | 'PUBLIC_SCHEMA_NAME_ASC' + | 'PUBLIC_SCHEMA_NAME_DESC' + | 'PRIVATE_SCHEMA_NAME_ASC' + | 'PRIVATE_SCHEMA_NAME_DESC' + | 'SECRETS_TABLE_ID_ASC' + | 'SECRETS_TABLE_ID_DESC' + | 'SECRETS_TABLE_NAME_ASC' + | 'SECRETS_TABLE_NAME_DESC' + | 'API_NAME_ASC' + | 'API_NAME_DESC' + | 'PRIVATE_API_NAME_ASC' + | 'PRIVATE_API_NAME_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC' + | 'ENTITY_TABLE_ID_ASC' | 'ENTITY_TABLE_ID_DESC' + | 'ENTITY_FIELD_ASC' + | 'ENTITY_FIELD_DESC' | 'POLICIES_ASC' | 'POLICIES_DESC' | 'PROVISIONS_ASC' - | 'PROVISIONS_DESC' - | 'HAS_CONFIG_ASC' - | 'HAS_CONFIG_DESC'; -export type GraphModuleOrderBy = + | 'PROVISIONS_DESC'; +export type InternalSecretsModuleOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'PRIVATE_SCHEMA_ID_ASC' + | 'PRIVATE_SCHEMA_ID_DESC' + | 'PUBLIC_SCHEMA_NAME_ASC' + | 'PUBLIC_SCHEMA_NAME_DESC' + | 'PRIVATE_SCHEMA_NAME_ASC' + | 'PRIVATE_SCHEMA_NAME_DESC' + | 'INTERNAL_SECRETS_TABLE_ID_ASC' + | 'INTERNAL_SECRETS_TABLE_ID_DESC' + | 'INTERNAL_SECRETS_TABLE_NAME_ASC' + | 'INTERNAL_SECRETS_TABLE_NAME_DESC' + | 'API_NAME_ASC' + | 'API_NAME_DESC' + | 'PRIVATE_API_NAME_ASC' + | 'PRIVATE_API_NAME_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC' + | 'ENTITY_TABLE_ID_ASC' + | 'ENTITY_TABLE_ID_DESC' + | 'ENTITY_FIELD_ASC' + | 'ENTITY_FIELD_DESC' + | 'POLICIES_ASC' + | 'POLICIES_DESC' + | 'PROVISIONS_ASC' + | 'PROVISIONS_DESC'; +export type DbPresetModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -6530,8 +7173,10 @@ export type GraphModuleOrderBy = | 'PREFIX_DESC' | 'MERKLE_STORE_MODULE_ID_ASC' | 'MERKLE_STORE_MODULE_ID_DESC' - | 'GRAPHS_TABLE_ID_ASC' - | 'GRAPHS_TABLE_ID_DESC' + | 'DB_PRESETS_TABLE_ID_ASC' + | 'DB_PRESETS_TABLE_ID_DESC' + | 'STORE_NAME_ASC' + | 'STORE_NAME_DESC' | 'API_NAME_ASC' | 'API_NAME_DESC' | 'PRIVATE_API_NAME_ASC' @@ -6542,11 +7187,9 @@ export type GraphModuleOrderBy = | 'POLICIES_DESC' | 'PROVISIONS_ASC' | 'PROVISIONS_DESC' - | 'DEFAULT_PERMISSIONS_ASC' - | 'DEFAULT_PERMISSIONS_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC'; -export type MerkleStoreModuleOrderBy = +export type GraphModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -6554,34 +7197,36 @@ export type MerkleStoreModuleOrderBy = | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' - | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC' + | 'ENTITY_FIELD_ASC' + | 'ENTITY_FIELD_DESC' + | 'PUBLIC_SCHEMA_ID_ASC' + | 'PUBLIC_SCHEMA_ID_DESC' | 'PRIVATE_SCHEMA_ID_ASC' | 'PRIVATE_SCHEMA_ID_DESC' | 'PUBLIC_SCHEMA_NAME_ASC' | 'PUBLIC_SCHEMA_NAME_DESC' | 'PRIVATE_SCHEMA_NAME_ASC' | 'PRIVATE_SCHEMA_NAME_DESC' - | 'OBJECT_TABLE_ID_ASC' - | 'OBJECT_TABLE_ID_DESC' - | 'STORE_TABLE_ID_ASC' - | 'STORE_TABLE_ID_DESC' - | 'COMMIT_TABLE_ID_ASC' - | 'COMMIT_TABLE_ID_DESC' - | 'REF_TABLE_ID_ASC' - | 'REF_TABLE_ID_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' | 'PREFIX_ASC' | 'PREFIX_DESC' + | 'MERKLE_STORE_MODULE_ID_ASC' + | 'MERKLE_STORE_MODULE_ID_DESC' + | 'GRAPHS_TABLE_ID_ASC' + | 'GRAPHS_TABLE_ID_DESC' | 'API_NAME_ASC' | 'API_NAME_DESC' | 'PRIVATE_API_NAME_ASC' | 'PRIVATE_API_NAME_DESC' - | 'SCOPE_ASC' - | 'SCOPE_DESC' - | 'FUNCTION_PREFIX_ASC' - | 'FUNCTION_PREFIX_DESC' - | 'PERMISSION_KEY_ASC' - | 'PERMISSION_KEY_DESC' + | 'ENTITY_TABLE_ID_ASC' + | 'ENTITY_TABLE_ID_DESC' + | 'POLICIES_ASC' + | 'POLICIES_DESC' + | 'PROVISIONS_ASC' + | 'PROVISIONS_DESC' + | 'DEFAULT_PERMISSIONS_ASC' + | 'DEFAULT_PERMISSIONS_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC'; export type RateLimitMetersModuleOrderBy = @@ -6622,7 +7267,7 @@ export type RateLimitMetersModuleOrderBy = | 'API_NAME_DESC' | 'PRIVATE_API_NAME_ASC' | 'PRIVATE_API_NAME_DESC'; -export type RealtimeModuleOrderBy = +export type InfraConfigModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -6630,30 +7275,34 @@ export type RealtimeModuleOrderBy = | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' + | 'ENTITY_FIELD_ASC' + | 'ENTITY_FIELD_DESC' | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' | 'PRIVATE_SCHEMA_ID_ASC' | 'PRIVATE_SCHEMA_ID_DESC' - | 'SUBSCRIPTIONS_SCHEMA_ID_ASC' - | 'SUBSCRIPTIONS_SCHEMA_ID_DESC' - | 'CHANGE_LOG_TABLE_ID_ASC' - | 'CHANGE_LOG_TABLE_ID_DESC' - | 'LISTENER_NODE_TABLE_ID_ASC' - | 'LISTENER_NODE_TABLE_ID_DESC' - | 'SOURCE_REGISTRY_TABLE_ID_ASC' - | 'SOURCE_REGISTRY_TABLE_ID_DESC' - | 'RETENTION_HOURS_ASC' - | 'RETENTION_HOURS_DESC' - | 'PREMAKE_ASC' - | 'PREMAKE_DESC' - | 'INTERVAL_ASC' - | 'INTERVAL_DESC' - | 'NOTIFY_CHANNEL_ASC' - | 'NOTIFY_CHANNEL_DESC' + | 'PUBLIC_SCHEMA_NAME_ASC' + | 'PUBLIC_SCHEMA_NAME_DESC' + | 'PRIVATE_SCHEMA_NAME_ASC' + | 'PRIVATE_SCHEMA_NAME_DESC' + | 'CONFIG_TABLE_ID_ASC' + | 'CONFIG_TABLE_ID_DESC' + | 'CONFIG_TABLE_NAME_ASC' + | 'CONFIG_TABLE_NAME_DESC' | 'API_NAME_ASC' | 'API_NAME_DESC' | 'PRIVATE_API_NAME_ASC' - | 'PRIVATE_API_NAME_DESC'; + | 'PRIVATE_API_NAME_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC' + | 'ENTITY_TABLE_ID_ASC' + | 'ENTITY_TABLE_ID_DESC' + | 'POLICIES_ASC' + | 'POLICIES_DESC' + | 'PROVISIONS_ASC' + | 'PROVISIONS_DESC'; export type WebauthnAuthModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -6690,7 +7339,7 @@ export type WebauthnAuthModuleOrderBy = | 'RESIDENT_KEY_DESC' | 'CHALLENGE_EXPIRY_ASC' | 'CHALLENGE_EXPIRY_DESC'; -export type FunctionInvocationModuleOrderBy = +export type PrincipalAuthModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -6700,36 +7349,66 @@ export type FunctionInvocationModuleOrderBy = | 'DATABASE_ID_DESC' | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' - | 'PRIVATE_SCHEMA_ID_ASC' - | 'PRIVATE_SCHEMA_ID_DESC' - | 'PUBLIC_SCHEMA_NAME_ASC' - | 'PUBLIC_SCHEMA_NAME_DESC' - | 'PRIVATE_SCHEMA_NAME_ASC' - | 'PRIVATE_SCHEMA_NAME_DESC' - | 'INVOCATIONS_TABLE_ID_ASC' - | 'INVOCATIONS_TABLE_ID_DESC' - | 'EXECUTION_LOGS_TABLE_ID_ASC' - | 'EXECUTION_LOGS_TABLE_ID_DESC' - | 'INVOCATIONS_TABLE_NAME_ASC' - | 'INVOCATIONS_TABLE_NAME_DESC' - | 'EXECUTION_LOGS_TABLE_NAME_ASC' - | 'EXECUTION_LOGS_TABLE_NAME_DESC' + | 'PRINCIPALS_TABLE_ID_ASC' + | 'PRINCIPALS_TABLE_ID_DESC' + | 'PRINCIPAL_ENTITIES_TABLE_ID_ASC' + | 'PRINCIPAL_ENTITIES_TABLE_ID_DESC' + | 'PRINCIPAL_SCOPE_OVERRIDES_TABLE_ID_ASC' + | 'PRINCIPAL_SCOPE_OVERRIDES_TABLE_ID_DESC' + | 'USERS_TABLE_ID_ASC' + | 'USERS_TABLE_ID_DESC' + | 'SESSIONS_TABLE_ID_ASC' + | 'SESSIONS_TABLE_ID_DESC' + | 'SESSION_CREDENTIALS_TABLE_ID_ASC' + | 'SESSION_CREDENTIALS_TABLE_ID_DESC' + | 'AUDITS_TABLE_ID_ASC' + | 'AUDITS_TABLE_ID_DESC' + | 'PRINCIPALS_TABLE_NAME_ASC' + | 'PRINCIPALS_TABLE_NAME_DESC' + | 'CREATE_PRINCIPAL_FUNCTION_ASC' + | 'CREATE_PRINCIPAL_FUNCTION_DESC' + | 'DELETE_PRINCIPAL_FUNCTION_ASC' + | 'DELETE_PRINCIPAL_FUNCTION_DESC' + | 'CREATE_ORG_PRINCIPAL_FUNCTION_ASC' + | 'CREATE_ORG_PRINCIPAL_FUNCTION_DESC' + | 'DELETE_ORG_PRINCIPAL_FUNCTION_ASC' + | 'DELETE_ORG_PRINCIPAL_FUNCTION_DESC' + | 'CREATE_ORG_API_KEY_FUNCTION_ASC' + | 'CREATE_ORG_API_KEY_FUNCTION_DESC' + | 'REVOKE_ORG_API_KEY_FUNCTION_ASC' + | 'REVOKE_ORG_API_KEY_FUNCTION_DESC' | 'API_NAME_ASC' - | 'API_NAME_DESC' - | 'PRIVATE_API_NAME_ASC' - | 'PRIVATE_API_NAME_DESC' - | 'SCOPE_ASC' - | 'SCOPE_DESC' - | 'PREFIX_ASC' - | 'PREFIX_DESC' - | 'ENTITY_TABLE_ID_ASC' - | 'ENTITY_TABLE_ID_DESC' - | 'POLICIES_ASC' - | 'POLICIES_DESC' - | 'PROVISIONS_ASC' - | 'PROVISIONS_DESC' - | 'DEFAULT_PERMISSIONS_ASC' - | 'DEFAULT_PERMISSIONS_DESC'; + | 'API_NAME_DESC'; +export type DbPoolOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'PRESET_SLUG_ASC' + | 'PRESET_SLUG_DESC' + | 'PRESET_COMMIT_ID_ASC' + | 'PRESET_COMMIT_ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'STATUS_ASC' + | 'STATUS_DESC' + | 'ERROR_MESSAGE_ASC' + | 'ERROR_MESSAGE_DESC' + | 'EXPIRES_AT_ASC' + | 'EXPIRES_AT_DESC' + | 'CLAIMED_BY_ASC' + | 'CLAIMED_BY_DESC' + | 'CLAIMED_AT_ASC' + | 'CLAIMED_AT_DESC' + | 'BOOTSTRAP_STATUS_ASC' + | 'BOOTSTRAP_STATUS_DESC' + | 'BOOTSTRAP_ERROR_ASC' + | 'BOOTSTRAP_ERROR_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; export type FunctionModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -6738,6 +7417,8 @@ export type FunctionModuleOrderBy = | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' + | 'ENTITY_FIELD_ASC' + | 'ENTITY_FIELD_DESC' | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' | 'PRIVATE_SCHEMA_ID_ASC' @@ -6748,12 +7429,8 @@ export type FunctionModuleOrderBy = | 'PRIVATE_SCHEMA_NAME_DESC' | 'DEFINITIONS_TABLE_ID_ASC' | 'DEFINITIONS_TABLE_ID_DESC' - | 'SECRET_DEFINITIONS_TABLE_ID_ASC' - | 'SECRET_DEFINITIONS_TABLE_ID_DESC' | 'DEFINITIONS_TABLE_NAME_ASC' | 'DEFINITIONS_TABLE_NAME_DESC' - | 'SECRET_DEFINITIONS_TABLE_NAME_ASC' - | 'SECRET_DEFINITIONS_TABLE_NAME_DESC' | 'API_NAME_ASC' | 'API_NAME_DESC' | 'PRIVATE_API_NAME_ASC' @@ -6770,7 +7447,7 @@ export type FunctionModuleOrderBy = | 'PROVISIONS_DESC' | 'DEFAULT_PERMISSIONS_ASC' | 'DEFAULT_PERMISSIONS_DESC'; -export type InvitesModuleOrderBy = +export type MerkleStoreModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -6778,6 +7455,8 @@ export type InvitesModuleOrderBy = | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' + | 'ENTITY_FIELD_ASC' + | 'ENTITY_FIELD_DESC' | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' | 'PRIVATE_SCHEMA_ID_ASC' @@ -6786,71 +7465,69 @@ export type InvitesModuleOrderBy = | 'PUBLIC_SCHEMA_NAME_DESC' | 'PRIVATE_SCHEMA_NAME_ASC' | 'PRIVATE_SCHEMA_NAME_DESC' - | 'EMAILS_TABLE_ID_ASC' - | 'EMAILS_TABLE_ID_DESC' - | 'USERS_TABLE_ID_ASC' - | 'USERS_TABLE_ID_DESC' - | 'INVITES_TABLE_ID_ASC' - | 'INVITES_TABLE_ID_DESC' - | 'CLAIMED_INVITES_TABLE_ID_ASC' - | 'CLAIMED_INVITES_TABLE_ID_DESC' - | 'INVITES_TABLE_NAME_ASC' - | 'INVITES_TABLE_NAME_DESC' - | 'CLAIMED_INVITES_TABLE_NAME_ASC' - | 'CLAIMED_INVITES_TABLE_NAME_DESC' - | 'SUBMIT_INVITE_CODE_FUNCTION_ASC' - | 'SUBMIT_INVITE_CODE_FUNCTION_DESC' - | 'SCOPE_ASC' - | 'SCOPE_DESC' + | 'OBJECT_TABLE_ID_ASC' + | 'OBJECT_TABLE_ID_DESC' + | 'STORE_TABLE_ID_ASC' + | 'STORE_TABLE_ID_DESC' + | 'COMMIT_TABLE_ID_ASC' + | 'COMMIT_TABLE_ID_DESC' + | 'REF_TABLE_ID_ASC' + | 'REF_TABLE_ID_DESC' | 'PREFIX_ASC' | 'PREFIX_DESC' - | 'ENTITY_TABLE_ID_ASC' - | 'ENTITY_TABLE_ID_DESC' | 'API_NAME_ASC' | 'API_NAME_DESC' | 'PRIVATE_API_NAME_ASC' - | 'PRIVATE_API_NAME_DESC'; -export type PrincipalAuthModuleOrderBy = + | 'PRIVATE_API_NAME_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'FUNCTION_PREFIX_ASC' + | 'FUNCTION_PREFIX_DESC' + | 'PERMISSION_KEY_ASC' + | 'PERMISSION_KEY_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC'; +export type DatabaseProvisionModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' + | 'DATABASE_NAME_ASC' + | 'DATABASE_NAME_DESC' + | 'OWNER_ID_ASC' + | 'OWNER_ID_DESC' + | 'SUBDOMAIN_ASC' + | 'SUBDOMAIN_DESC' + | 'DOMAIN_ASC' + | 'DOMAIN_DESC' + | 'MODULES_ASC' + | 'MODULES_DESC' + | 'OPTIONS_ASC' + | 'OPTIONS_DESC' + | 'BOOTSTRAP_USER_ASC' + | 'BOOTSTRAP_USER_DESC' + | 'STATUS_ASC' + | 'STATUS_DESC' + | 'ERROR_MESSAGE_ASC' + | 'ERROR_MESSAGE_DESC' + | 'SOURCE_DATABASE_ID_ASC' + | 'SOURCE_DATABASE_ID_DESC' + | 'BOOTSTRAP_STATUS_ASC' + | 'BOOTSTRAP_STATUS_DESC' + | 'BOOTSTRAP_ERROR_ASC' + | 'BOOTSTRAP_ERROR_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' - | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC' - | 'PRINCIPALS_TABLE_ID_ASC' - | 'PRINCIPALS_TABLE_ID_DESC' - | 'PRINCIPAL_ENTITIES_TABLE_ID_ASC' - | 'PRINCIPAL_ENTITIES_TABLE_ID_DESC' - | 'PRINCIPAL_SCOPE_OVERRIDES_TABLE_ID_ASC' - | 'PRINCIPAL_SCOPE_OVERRIDES_TABLE_ID_DESC' - | 'USERS_TABLE_ID_ASC' - | 'USERS_TABLE_ID_DESC' - | 'SESSIONS_TABLE_ID_ASC' - | 'SESSIONS_TABLE_ID_DESC' - | 'SESSION_CREDENTIALS_TABLE_ID_ASC' - | 'SESSION_CREDENTIALS_TABLE_ID_DESC' - | 'AUDITS_TABLE_ID_ASC' - | 'AUDITS_TABLE_ID_DESC' - | 'PRINCIPALS_TABLE_NAME_ASC' - | 'PRINCIPALS_TABLE_NAME_DESC' - | 'CREATE_PRINCIPAL_FUNCTION_ASC' - | 'CREATE_PRINCIPAL_FUNCTION_DESC' - | 'DELETE_PRINCIPAL_FUNCTION_ASC' - | 'DELETE_PRINCIPAL_FUNCTION_DESC' - | 'CREATE_ORG_PRINCIPAL_FUNCTION_ASC' - | 'CREATE_ORG_PRINCIPAL_FUNCTION_DESC' - | 'DELETE_ORG_PRINCIPAL_FUNCTION_ASC' - | 'DELETE_ORG_PRINCIPAL_FUNCTION_DESC' - | 'CREATE_ORG_API_KEY_FUNCTION_ASC' - | 'CREATE_ORG_API_KEY_FUNCTION_DESC' - | 'REVOKE_ORG_API_KEY_FUNCTION_ASC' - | 'REVOKE_ORG_API_KEY_FUNCTION_DESC' - | 'API_NAME_ASC' - | 'API_NAME_DESC'; -export type ComputeLogModuleOrderBy = + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'COMPLETED_AT_ASC' + | 'COMPLETED_AT_DESC' + | 'FULFILLED_AT_ASC' + | 'FULFILLED_AT_DESC'; +export type FunctionInvocationModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -6858,6 +7535,8 @@ export type ComputeLogModuleOrderBy = | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' + | 'ENTITY_FIELD_ASC' + | 'ENTITY_FIELD_DESC' | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' | 'PRIVATE_SCHEMA_ID_ASC' @@ -6866,33 +7545,31 @@ export type ComputeLogModuleOrderBy = | 'PUBLIC_SCHEMA_NAME_DESC' | 'PRIVATE_SCHEMA_NAME_ASC' | 'PRIVATE_SCHEMA_NAME_DESC' - | 'COMPUTE_LOG_TABLE_ID_ASC' - | 'COMPUTE_LOG_TABLE_ID_DESC' - | 'COMPUTE_LOG_TABLE_NAME_ASC' - | 'COMPUTE_LOG_TABLE_NAME_DESC' - | 'USAGE_DAILY_TABLE_ID_ASC' - | 'USAGE_DAILY_TABLE_ID_DESC' - | 'USAGE_DAILY_TABLE_NAME_ASC' - | 'USAGE_DAILY_TABLE_NAME_DESC' - | 'INTERVAL_ASC' - | 'INTERVAL_DESC' - | 'RETENTION_ASC' - | 'RETENTION_DESC' - | 'PREMAKE_ASC' - | 'PREMAKE_DESC' + | 'INVOCATIONS_TABLE_ID_ASC' + | 'INVOCATIONS_TABLE_ID_DESC' + | 'EXECUTION_LOGS_TABLE_ID_ASC' + | 'EXECUTION_LOGS_TABLE_ID_DESC' + | 'INVOCATIONS_TABLE_NAME_ASC' + | 'INVOCATIONS_TABLE_NAME_DESC' + | 'EXECUTION_LOGS_TABLE_NAME_ASC' + | 'EXECUTION_LOGS_TABLE_NAME_DESC' + | 'API_NAME_ASC' + | 'API_NAME_DESC' + | 'PRIVATE_API_NAME_ASC' + | 'PRIVATE_API_NAME_DESC' | 'SCOPE_ASC' | 'SCOPE_DESC' - | 'ACTOR_FK_TABLE_ID_ASC' - | 'ACTOR_FK_TABLE_ID_DESC' - | 'ENTITY_FK_TABLE_ID_ASC' - | 'ENTITY_FK_TABLE_ID_DESC' | 'PREFIX_ASC' | 'PREFIX_DESC' - | 'API_NAME_ASC' - | 'API_NAME_DESC' - | 'PRIVATE_API_NAME_ASC' - | 'PRIVATE_API_NAME_DESC'; -export type InferenceLogModuleOrderBy = + | 'ENTITY_TABLE_ID_ASC' + | 'ENTITY_TABLE_ID_DESC' + | 'POLICIES_ASC' + | 'POLICIES_DESC' + | 'PROVISIONS_ASC' + | 'PROVISIONS_DESC' + | 'DEFAULT_PERMISSIONS_ASC' + | 'DEFAULT_PERMISSIONS_DESC'; +export type InvitesModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -6900,6 +7577,8 @@ export type InferenceLogModuleOrderBy = | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' + | 'ENTITY_FIELD_ASC' + | 'ENTITY_FIELD_DESC' | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' | 'PRIVATE_SCHEMA_ID_ASC' @@ -6908,28 +7587,26 @@ export type InferenceLogModuleOrderBy = | 'PUBLIC_SCHEMA_NAME_DESC' | 'PRIVATE_SCHEMA_NAME_ASC' | 'PRIVATE_SCHEMA_NAME_DESC' - | 'INFERENCE_LOG_TABLE_ID_ASC' - | 'INFERENCE_LOG_TABLE_ID_DESC' - | 'INFERENCE_LOG_TABLE_NAME_ASC' - | 'INFERENCE_LOG_TABLE_NAME_DESC' - | 'USAGE_DAILY_TABLE_ID_ASC' - | 'USAGE_DAILY_TABLE_ID_DESC' - | 'USAGE_DAILY_TABLE_NAME_ASC' - | 'USAGE_DAILY_TABLE_NAME_DESC' - | 'INTERVAL_ASC' - | 'INTERVAL_DESC' - | 'RETENTION_ASC' - | 'RETENTION_DESC' - | 'PREMAKE_ASC' - | 'PREMAKE_DESC' + | 'EMAILS_TABLE_ID_ASC' + | 'EMAILS_TABLE_ID_DESC' + | 'USERS_TABLE_ID_ASC' + | 'USERS_TABLE_ID_DESC' + | 'INVITES_TABLE_ID_ASC' + | 'INVITES_TABLE_ID_DESC' + | 'CLAIMED_INVITES_TABLE_ID_ASC' + | 'CLAIMED_INVITES_TABLE_ID_DESC' + | 'INVITES_TABLE_NAME_ASC' + | 'INVITES_TABLE_NAME_DESC' + | 'CLAIMED_INVITES_TABLE_NAME_ASC' + | 'CLAIMED_INVITES_TABLE_NAME_DESC' + | 'SUBMIT_INVITE_CODE_FUNCTION_ASC' + | 'SUBMIT_INVITE_CODE_FUNCTION_DESC' | 'SCOPE_ASC' | 'SCOPE_DESC' - | 'ACTOR_FK_TABLE_ID_ASC' - | 'ACTOR_FK_TABLE_ID_DESC' - | 'ENTITY_FK_TABLE_ID_ASC' - | 'ENTITY_FK_TABLE_ID_DESC' | 'PREFIX_ASC' | 'PREFIX_DESC' + | 'ENTITY_TABLE_ID_ASC' + | 'ENTITY_TABLE_ID_DESC' | 'API_NAME_ASC' | 'API_NAME_DESC' | 'PRIVATE_API_NAME_ASC' @@ -6942,6 +7619,8 @@ export type NamespaceModuleOrderBy = | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' + | 'ENTITY_FIELD_ASC' + | 'ENTITY_FIELD_DESC' | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' | 'PRIVATE_SCHEMA_ID_ASC' @@ -6968,15 +7647,13 @@ export type NamespaceModuleOrderBy = | 'PREFIX_DESC' | 'ENTITY_TABLE_ID_ASC' | 'ENTITY_TABLE_ID_DESC' - | 'PLATFORM_NAMESPACES_TABLE_ID_ASC' - | 'PLATFORM_NAMESPACES_TABLE_ID_DESC' | 'POLICIES_ASC' | 'POLICIES_DESC' | 'PROVISIONS_ASC' | 'PROVISIONS_DESC' | 'DEFAULT_PERMISSIONS_ASC' | 'DEFAULT_PERMISSIONS_DESC'; -export type ResourceModuleOrderBy = +export type PlansModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -6992,33 +7669,37 @@ export type ResourceModuleOrderBy = | 'PUBLIC_SCHEMA_NAME_DESC' | 'PRIVATE_SCHEMA_NAME_ASC' | 'PRIVATE_SCHEMA_NAME_DESC' - | 'RESOURCES_TABLE_ID_ASC' - | 'RESOURCES_TABLE_ID_DESC' - | 'RESOURCE_EVENTS_TABLE_ID_ASC' - | 'RESOURCE_EVENTS_TABLE_ID_DESC' - | 'RESOURCES_TABLE_NAME_ASC' - | 'RESOURCES_TABLE_NAME_DESC' - | 'RESOURCE_EVENTS_TABLE_NAME_ASC' - | 'RESOURCE_EVENTS_TABLE_NAME_DESC' + | 'PLANS_TABLE_ID_ASC' + | 'PLANS_TABLE_ID_DESC' + | 'PLANS_TABLE_NAME_ASC' + | 'PLANS_TABLE_NAME_DESC' + | 'PLAN_LIMITS_TABLE_ID_ASC' + | 'PLAN_LIMITS_TABLE_ID_DESC' + | 'PLAN_LIMITS_TABLE_NAME_ASC' + | 'PLAN_LIMITS_TABLE_NAME_DESC' + | 'PLAN_PRICING_TABLE_ID_ASC' + | 'PLAN_PRICING_TABLE_ID_DESC' + | 'PLAN_OVERRIDES_TABLE_ID_ASC' + | 'PLAN_OVERRIDES_TABLE_ID_DESC' + | 'PLAN_METER_LIMITS_TABLE_ID_ASC' + | 'PLAN_METER_LIMITS_TABLE_ID_DESC' + | 'PLAN_CAPS_TABLE_ID_ASC' + | 'PLAN_CAPS_TABLE_ID_DESC' + | 'APPLY_PLAN_FUNCTION_ASC' + | 'APPLY_PLAN_FUNCTION_DESC' + | 'APPLY_PLAN_AGGREGATE_FUNCTION_ASC' + | 'APPLY_PLAN_AGGREGATE_FUNCTION_DESC' + | 'APPLY_BILLING_PLAN_FUNCTION_ASC' + | 'APPLY_BILLING_PLAN_FUNCTION_DESC' + | 'APPLY_PLAN_CAPS_FUNCTION_ASC' + | 'APPLY_PLAN_CAPS_FUNCTION_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC' | 'API_NAME_ASC' | 'API_NAME_DESC' | 'PRIVATE_API_NAME_ASC' - | 'PRIVATE_API_NAME_DESC' - | 'SCOPE_ASC' - | 'SCOPE_DESC' - | 'PREFIX_ASC' - | 'PREFIX_DESC' - | 'ENTITY_TABLE_ID_ASC' - | 'ENTITY_TABLE_ID_DESC' - | 'NAMESPACE_MODULE_ID_ASC' - | 'NAMESPACE_MODULE_ID_DESC' - | 'POLICIES_ASC' - | 'POLICIES_DESC' - | 'PROVISIONS_ASC' - | 'PROVISIONS_DESC' - | 'DEFAULT_PERMISSIONS_ASC' - | 'DEFAULT_PERMISSIONS_DESC'; -export type StorageLogModuleOrderBy = + | 'PRIVATE_API_NAME_DESC'; +export type ComputeLogModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -7026,6 +7707,8 @@ export type StorageLogModuleOrderBy = | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' + | 'ENTITY_FIELD_ASC' + | 'ENTITY_FIELD_DESC' | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' | 'PRIVATE_SCHEMA_ID_ASC' @@ -7034,10 +7717,10 @@ export type StorageLogModuleOrderBy = | 'PUBLIC_SCHEMA_NAME_DESC' | 'PRIVATE_SCHEMA_NAME_ASC' | 'PRIVATE_SCHEMA_NAME_DESC' - | 'STORAGE_LOG_TABLE_ID_ASC' - | 'STORAGE_LOG_TABLE_ID_DESC' - | 'STORAGE_LOG_TABLE_NAME_ASC' - | 'STORAGE_LOG_TABLE_NAME_DESC' + | 'COMPUTE_LOG_TABLE_ID_ASC' + | 'COMPUTE_LOG_TABLE_ID_DESC' + | 'COMPUTE_LOG_TABLE_NAME_ASC' + | 'COMPUTE_LOG_TABLE_NAME_DESC' | 'USAGE_DAILY_TABLE_ID_ASC' | 'USAGE_DAILY_TABLE_ID_DESC' | 'USAGE_DAILY_TABLE_NAME_ASC' @@ -7060,7 +7743,7 @@ export type StorageLogModuleOrderBy = | 'API_NAME_DESC' | 'PRIVATE_API_NAME_ASC' | 'PRIVATE_API_NAME_DESC'; -export type TransferLogModuleOrderBy = +export type InferenceLogModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -7068,6 +7751,8 @@ export type TransferLogModuleOrderBy = | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' + | 'ENTITY_FIELD_ASC' + | 'ENTITY_FIELD_DESC' | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' | 'PRIVATE_SCHEMA_ID_ASC' @@ -7076,10 +7761,10 @@ export type TransferLogModuleOrderBy = | 'PUBLIC_SCHEMA_NAME_DESC' | 'PRIVATE_SCHEMA_NAME_ASC' | 'PRIVATE_SCHEMA_NAME_DESC' - | 'TRANSFER_LOG_TABLE_ID_ASC' - | 'TRANSFER_LOG_TABLE_ID_DESC' - | 'TRANSFER_LOG_TABLE_NAME_ASC' - | 'TRANSFER_LOG_TABLE_NAME_DESC' + | 'INFERENCE_LOG_TABLE_ID_ASC' + | 'INFERENCE_LOG_TABLE_ID_DESC' + | 'INFERENCE_LOG_TABLE_NAME_ASC' + | 'INFERENCE_LOG_TABLE_NAME_DESC' | 'USAGE_DAILY_TABLE_ID_ASC' | 'USAGE_DAILY_TABLE_ID_DESC' | 'USAGE_DAILY_TABLE_NAME_ASC' @@ -7102,7 +7787,7 @@ export type TransferLogModuleOrderBy = | 'API_NAME_DESC' | 'PRIVATE_API_NAME_ASC' | 'PRIVATE_API_NAME_DESC'; -export type FunctionDeploymentModuleOrderBy = +export type StorageLogModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -7110,6 +7795,8 @@ export type FunctionDeploymentModuleOrderBy = | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' + | 'ENTITY_FIELD_ASC' + | 'ENTITY_FIELD_DESC' | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' | 'PRIVATE_SCHEMA_ID_ASC' @@ -7118,35 +7805,33 @@ export type FunctionDeploymentModuleOrderBy = | 'PUBLIC_SCHEMA_NAME_DESC' | 'PRIVATE_SCHEMA_NAME_ASC' | 'PRIVATE_SCHEMA_NAME_DESC' - | 'DEPLOYMENTS_TABLE_ID_ASC' - | 'DEPLOYMENTS_TABLE_ID_DESC' - | 'DEPLOYMENT_EVENTS_TABLE_ID_ASC' - | 'DEPLOYMENT_EVENTS_TABLE_ID_DESC' - | 'DEPLOYMENTS_TABLE_NAME_ASC' - | 'DEPLOYMENTS_TABLE_NAME_DESC' - | 'DEPLOYMENT_EVENTS_TABLE_NAME_ASC' - | 'DEPLOYMENT_EVENTS_TABLE_NAME_DESC' - | 'API_NAME_ASC' - | 'API_NAME_DESC' - | 'PRIVATE_API_NAME_ASC' - | 'PRIVATE_API_NAME_DESC' + | 'STORAGE_LOG_TABLE_ID_ASC' + | 'STORAGE_LOG_TABLE_ID_DESC' + | 'STORAGE_LOG_TABLE_NAME_ASC' + | 'STORAGE_LOG_TABLE_NAME_DESC' + | 'USAGE_DAILY_TABLE_ID_ASC' + | 'USAGE_DAILY_TABLE_ID_DESC' + | 'USAGE_DAILY_TABLE_NAME_ASC' + | 'USAGE_DAILY_TABLE_NAME_DESC' + | 'INTERVAL_ASC' + | 'INTERVAL_DESC' + | 'RETENTION_ASC' + | 'RETENTION_DESC' + | 'PREMAKE_ASC' + | 'PREMAKE_DESC' | 'SCOPE_ASC' | 'SCOPE_DESC' + | 'ACTOR_FK_TABLE_ID_ASC' + | 'ACTOR_FK_TABLE_ID_DESC' + | 'ENTITY_FK_TABLE_ID_ASC' + | 'ENTITY_FK_TABLE_ID_DESC' | 'PREFIX_ASC' | 'PREFIX_DESC' - | 'ENTITY_TABLE_ID_ASC' - | 'ENTITY_TABLE_ID_DESC' - | 'FUNCTION_MODULE_ID_ASC' - | 'FUNCTION_MODULE_ID_DESC' - | 'NAMESPACE_MODULE_ID_ASC' - | 'NAMESPACE_MODULE_ID_DESC' - | 'POLICIES_ASC' - | 'POLICIES_DESC' - | 'PROVISIONS_ASC' - | 'PROVISIONS_DESC' - | 'DEFAULT_PERMISSIONS_ASC' - | 'DEFAULT_PERMISSIONS_DESC'; -export type PlansModuleOrderBy = + | 'API_NAME_ASC' + | 'API_NAME_DESC' + | 'PRIVATE_API_NAME_ASC' + | 'PRIVATE_API_NAME_DESC'; +export type TransferLogModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -7154,6 +7839,8 @@ export type PlansModuleOrderBy = | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' + | 'ENTITY_FIELD_ASC' + | 'ENTITY_FIELD_DESC' | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' | 'PRIVATE_SCHEMA_ID_ASC' @@ -7162,30 +7849,26 @@ export type PlansModuleOrderBy = | 'PUBLIC_SCHEMA_NAME_DESC' | 'PRIVATE_SCHEMA_NAME_ASC' | 'PRIVATE_SCHEMA_NAME_DESC' - | 'PLANS_TABLE_ID_ASC' - | 'PLANS_TABLE_ID_DESC' - | 'PLANS_TABLE_NAME_ASC' - | 'PLANS_TABLE_NAME_DESC' - | 'PLAN_LIMITS_TABLE_ID_ASC' - | 'PLAN_LIMITS_TABLE_ID_DESC' - | 'PLAN_LIMITS_TABLE_NAME_ASC' - | 'PLAN_LIMITS_TABLE_NAME_DESC' - | 'PLAN_PRICING_TABLE_ID_ASC' - | 'PLAN_PRICING_TABLE_ID_DESC' - | 'PLAN_OVERRIDES_TABLE_ID_ASC' - | 'PLAN_OVERRIDES_TABLE_ID_DESC' - | 'PLAN_METER_LIMITS_TABLE_ID_ASC' - | 'PLAN_METER_LIMITS_TABLE_ID_DESC' - | 'PLAN_CAPS_TABLE_ID_ASC' - | 'PLAN_CAPS_TABLE_ID_DESC' - | 'APPLY_PLAN_FUNCTION_ASC' - | 'APPLY_PLAN_FUNCTION_DESC' - | 'APPLY_PLAN_AGGREGATE_FUNCTION_ASC' - | 'APPLY_PLAN_AGGREGATE_FUNCTION_DESC' - | 'APPLY_BILLING_PLAN_FUNCTION_ASC' - | 'APPLY_BILLING_PLAN_FUNCTION_DESC' - | 'APPLY_PLAN_CAPS_FUNCTION_ASC' - | 'APPLY_PLAN_CAPS_FUNCTION_DESC' + | 'TRANSFER_LOG_TABLE_ID_ASC' + | 'TRANSFER_LOG_TABLE_ID_DESC' + | 'TRANSFER_LOG_TABLE_NAME_ASC' + | 'TRANSFER_LOG_TABLE_NAME_DESC' + | 'USAGE_DAILY_TABLE_ID_ASC' + | 'USAGE_DAILY_TABLE_ID_DESC' + | 'USAGE_DAILY_TABLE_NAME_ASC' + | 'USAGE_DAILY_TABLE_NAME_DESC' + | 'INTERVAL_ASC' + | 'INTERVAL_DESC' + | 'RETENTION_ASC' + | 'RETENTION_DESC' + | 'PREMAKE_ASC' + | 'PREMAKE_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'ACTOR_FK_TABLE_ID_ASC' + | 'ACTOR_FK_TABLE_ID_DESC' + | 'ENTITY_FK_TABLE_ID_ASC' + | 'ENTITY_FK_TABLE_ID_DESC' | 'PREFIX_ASC' | 'PREFIX_DESC' | 'API_NAME_ASC' @@ -7239,8 +7922,54 @@ export type BillingProviderModuleOrderBy = | 'API_NAME_ASC' | 'API_NAME_DESC' | 'PRIVATE_API_NAME_ASC' - | 'PRIVATE_API_NAME_DESC'; -export type DbUsageModuleOrderBy = + | 'PRIVATE_API_NAME_DESC'; +export type FunctionDeploymentModuleOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'ENTITY_FIELD_ASC' + | 'ENTITY_FIELD_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'PRIVATE_SCHEMA_ID_ASC' + | 'PRIVATE_SCHEMA_ID_DESC' + | 'PUBLIC_SCHEMA_NAME_ASC' + | 'PUBLIC_SCHEMA_NAME_DESC' + | 'PRIVATE_SCHEMA_NAME_ASC' + | 'PRIVATE_SCHEMA_NAME_DESC' + | 'DEPLOYMENTS_TABLE_ID_ASC' + | 'DEPLOYMENTS_TABLE_ID_DESC' + | 'DEPLOYMENT_EVENTS_TABLE_ID_ASC' + | 'DEPLOYMENT_EVENTS_TABLE_ID_DESC' + | 'DEPLOYMENTS_TABLE_NAME_ASC' + | 'DEPLOYMENTS_TABLE_NAME_DESC' + | 'DEPLOYMENT_EVENTS_TABLE_NAME_ASC' + | 'DEPLOYMENT_EVENTS_TABLE_NAME_DESC' + | 'API_NAME_ASC' + | 'API_NAME_DESC' + | 'PRIVATE_API_NAME_ASC' + | 'PRIVATE_API_NAME_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC' + | 'ENTITY_TABLE_ID_ASC' + | 'ENTITY_TABLE_ID_DESC' + | 'FUNCTION_MODULE_ID_ASC' + | 'FUNCTION_MODULE_ID_DESC' + | 'NAMESPACE_MODULE_ID_ASC' + | 'NAMESPACE_MODULE_ID_DESC' + | 'POLICIES_ASC' + | 'POLICIES_DESC' + | 'PROVISIONS_ASC' + | 'PROVISIONS_DESC' + | 'DEFAULT_PERMISSIONS_ASC' + | 'DEFAULT_PERMISSIONS_DESC'; +export type PermissionsModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -7248,6 +7977,8 @@ export type DbUsageModuleOrderBy = | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' + | 'ENTITY_FIELD_ASC' + | 'ENTITY_FIELD_DESC' | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' | 'PRIVATE_SCHEMA_ID_ASC' @@ -7256,34 +7987,32 @@ export type DbUsageModuleOrderBy = | 'PUBLIC_SCHEMA_NAME_DESC' | 'PRIVATE_SCHEMA_NAME_ASC' | 'PRIVATE_SCHEMA_NAME_DESC' - | 'TABLE_STATS_LOG_TABLE_ID_ASC' - | 'TABLE_STATS_LOG_TABLE_ID_DESC' - | 'TABLE_STATS_LOG_TABLE_NAME_ASC' - | 'TABLE_STATS_LOG_TABLE_NAME_DESC' - | 'TABLE_STATS_DAILY_TABLE_ID_ASC' - | 'TABLE_STATS_DAILY_TABLE_ID_DESC' - | 'TABLE_STATS_DAILY_TABLE_NAME_ASC' - | 'TABLE_STATS_DAILY_TABLE_NAME_DESC' - | 'QUERY_STATS_LOG_TABLE_ID_ASC' - | 'QUERY_STATS_LOG_TABLE_ID_DESC' - | 'QUERY_STATS_LOG_TABLE_NAME_ASC' - | 'QUERY_STATS_LOG_TABLE_NAME_DESC' - | 'QUERY_STATS_DAILY_TABLE_ID_ASC' - | 'QUERY_STATS_DAILY_TABLE_ID_DESC' - | 'QUERY_STATS_DAILY_TABLE_NAME_ASC' - | 'QUERY_STATS_DAILY_TABLE_NAME_DESC' - | 'INTERVAL_ASC' - | 'INTERVAL_DESC' - | 'RETENTION_ASC' - | 'RETENTION_DESC' - | 'PREMAKE_ASC' - | 'PREMAKE_DESC' + | 'TABLE_ID_ASC' + | 'TABLE_ID_DESC' + | 'TABLE_NAME_ASC' + | 'TABLE_NAME_DESC' + | 'DEFAULT_TABLE_ID_ASC' + | 'DEFAULT_TABLE_ID_DESC' + | 'DEFAULT_TABLE_NAME_ASC' + | 'DEFAULT_TABLE_NAME_DESC' + | 'BITLEN_ASC' + | 'BITLEN_DESC' | 'SCOPE_ASC' | 'SCOPE_DESC' | 'PREFIX_ASC' | 'PREFIX_DESC' - | 'DEFAULT_PERMISSIONS_ASC' - | 'DEFAULT_PERMISSIONS_DESC' + | 'ENTITY_TABLE_ID_ASC' + | 'ENTITY_TABLE_ID_DESC' + | 'ACTOR_TABLE_ID_ASC' + | 'ACTOR_TABLE_ID_DESC' + | 'GET_PADDED_MASK_ASC' + | 'GET_PADDED_MASK_DESC' + | 'GET_MASK_ASC' + | 'GET_MASK_DESC' + | 'GET_BY_MASK_ASC' + | 'GET_BY_MASK_DESC' + | 'GET_MASK_BY_NAME_ASC' + | 'GET_MASK_BY_NAME_DESC' | 'API_NAME_ASC' | 'API_NAME_DESC' | 'PRIVATE_API_NAME_ASC' @@ -7296,6 +8025,8 @@ export type GraphExecutionModuleOrderBy = | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' + | 'ENTITY_FIELD_ASC' + | 'ENTITY_FIELD_DESC' | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' | 'PRIVATE_SCHEMA_ID_ASC' @@ -7344,6 +8075,8 @@ export type HierarchyModuleOrderBy = | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' + | 'ENTITY_FIELD_ASC' + | 'ENTITY_FIELD_DESC' | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' | 'PRIVATE_SCHEMA_ID_ASC' @@ -7384,52 +8117,6 @@ export type HierarchyModuleOrderBy = | 'DEFAULT_PERMISSIONS_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC'; -export type PermissionsModuleOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC' - | 'PRIVATE_SCHEMA_ID_ASC' - | 'PRIVATE_SCHEMA_ID_DESC' - | 'PUBLIC_SCHEMA_NAME_ASC' - | 'PUBLIC_SCHEMA_NAME_DESC' - | 'PRIVATE_SCHEMA_NAME_ASC' - | 'PRIVATE_SCHEMA_NAME_DESC' - | 'TABLE_ID_ASC' - | 'TABLE_ID_DESC' - | 'TABLE_NAME_ASC' - | 'TABLE_NAME_DESC' - | 'DEFAULT_TABLE_ID_ASC' - | 'DEFAULT_TABLE_ID_DESC' - | 'DEFAULT_TABLE_NAME_ASC' - | 'DEFAULT_TABLE_NAME_DESC' - | 'BITLEN_ASC' - | 'BITLEN_DESC' - | 'SCOPE_ASC' - | 'SCOPE_DESC' - | 'PREFIX_ASC' - | 'PREFIX_DESC' - | 'ENTITY_TABLE_ID_ASC' - | 'ENTITY_TABLE_ID_DESC' - | 'ACTOR_TABLE_ID_ASC' - | 'ACTOR_TABLE_ID_DESC' - | 'GET_PADDED_MASK_ASC' - | 'GET_PADDED_MASK_DESC' - | 'GET_MASK_ASC' - | 'GET_MASK_DESC' - | 'GET_BY_MASK_ASC' - | 'GET_BY_MASK_DESC' - | 'GET_MASK_BY_NAME_ASC' - | 'GET_MASK_BY_NAME_DESC' - | 'API_NAME_ASC' - | 'API_NAME_DESC' - | 'PRIVATE_API_NAME_ASC' - | 'PRIVATE_API_NAME_DESC'; export type NotificationsModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -7438,6 +8125,8 @@ export type NotificationsModuleOrderBy = | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' + | 'ENTITY_FIELD_ASC' + | 'ENTITY_FIELD_DESC' | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' | 'PRIVATE_SCHEMA_ID_ASC' @@ -7480,6 +8169,58 @@ export type NotificationsModuleOrderBy = | 'API_NAME_DESC' | 'PRIVATE_API_NAME_ASC' | 'PRIVATE_API_NAME_DESC'; +export type RelationProvisionOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'RELATION_TYPE_ASC' + | 'RELATION_TYPE_DESC' + | 'SOURCE_TABLE_ID_ASC' + | 'SOURCE_TABLE_ID_DESC' + | 'TARGET_TABLE_ID_ASC' + | 'TARGET_TABLE_ID_DESC' + | 'FIELD_NAME_ASC' + | 'FIELD_NAME_DESC' + | 'DELETE_ACTION_ASC' + | 'DELETE_ACTION_DESC' + | 'IS_REQUIRED_ASC' + | 'IS_REQUIRED_DESC' + | 'API_REQUIRED_ASC' + | 'API_REQUIRED_DESC' + | 'JUNCTION_TABLE_ID_ASC' + | 'JUNCTION_TABLE_ID_DESC' + | 'JUNCTION_TABLE_NAME_ASC' + | 'JUNCTION_TABLE_NAME_DESC' + | 'JUNCTION_SCHEMA_ID_ASC' + | 'JUNCTION_SCHEMA_ID_DESC' + | 'SOURCE_FIELD_NAME_ASC' + | 'SOURCE_FIELD_NAME_DESC' + | 'TARGET_FIELD_NAME_ASC' + | 'TARGET_FIELD_NAME_DESC' + | 'USE_COMPOSITE_KEY_ASC' + | 'USE_COMPOSITE_KEY_DESC' + | 'CREATE_INDEX_ASC' + | 'CREATE_INDEX_DESC' + | 'EXPOSE_IN_API_ASC' + | 'EXPOSE_IN_API_DESC' + | 'NODES_ASC' + | 'NODES_DESC' + | 'GRANTS_ASC' + | 'GRANTS_DESC' + | 'POLICIES_ASC' + | 'POLICIES_DESC' + | 'OUT_FIELD_ID_ASC' + | 'OUT_FIELD_ID_DESC' + | 'OUT_JUNCTION_TABLE_ID_ASC' + | 'OUT_JUNCTION_TABLE_ID_DESC' + | 'OUT_SOURCE_FIELD_ID_ASC' + | 'OUT_SOURCE_FIELD_ID_DESC' + | 'OUT_TARGET_FIELD_ID_ASC' + | 'OUT_TARGET_FIELD_ID_DESC'; export type ProfilesModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -7488,6 +8229,8 @@ export type ProfilesModuleOrderBy = | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' + | 'ENTITY_FIELD_ASC' + | 'ENTITY_FIELD_DESC' | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' | 'PRIVATE_SCHEMA_ID_ASC' @@ -7578,6 +8321,10 @@ export type BillingModuleOrderBy = | 'METER_DEFAULTS_TABLE_NAME_DESC' | 'RECORD_USAGE_FUNCTION_ASC' | 'RECORD_USAGE_FUNCTION_DESC' + | 'SWEEP_EXPIRED_SUBSCRIPTIONS_FUNCTION_ASC' + | 'SWEEP_EXPIRED_SUBSCRIPTIONS_FUNCTION_DESC' + | 'ROLLUP_USAGE_SUMMARY_FUNCTION_ASC' + | 'ROLLUP_USAGE_SUMMARY_FUNCTION_DESC' | 'PREFIX_ASC' | 'PREFIX_DESC' | 'DEFAULT_PERMISSIONS_ASC' @@ -7586,7 +8333,7 @@ export type BillingModuleOrderBy = | 'API_NAME_DESC' | 'PRIVATE_API_NAME_ASC' | 'PRIVATE_API_NAME_DESC'; -export type RelationProvisionOrderBy = +export type ResourceModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -7594,50 +8341,54 @@ export type RelationProvisionOrderBy = | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' - | 'RELATION_TYPE_ASC' - | 'RELATION_TYPE_DESC' - | 'SOURCE_TABLE_ID_ASC' - | 'SOURCE_TABLE_ID_DESC' - | 'TARGET_TABLE_ID_ASC' - | 'TARGET_TABLE_ID_DESC' - | 'FIELD_NAME_ASC' - | 'FIELD_NAME_DESC' - | 'DELETE_ACTION_ASC' - | 'DELETE_ACTION_DESC' - | 'IS_REQUIRED_ASC' - | 'IS_REQUIRED_DESC' - | 'API_REQUIRED_ASC' - | 'API_REQUIRED_DESC' - | 'JUNCTION_TABLE_ID_ASC' - | 'JUNCTION_TABLE_ID_DESC' - | 'JUNCTION_TABLE_NAME_ASC' - | 'JUNCTION_TABLE_NAME_DESC' - | 'JUNCTION_SCHEMA_ID_ASC' - | 'JUNCTION_SCHEMA_ID_DESC' - | 'SOURCE_FIELD_NAME_ASC' - | 'SOURCE_FIELD_NAME_DESC' - | 'TARGET_FIELD_NAME_ASC' - | 'TARGET_FIELD_NAME_DESC' - | 'USE_COMPOSITE_KEY_ASC' - | 'USE_COMPOSITE_KEY_DESC' - | 'CREATE_INDEX_ASC' - | 'CREATE_INDEX_DESC' - | 'EXPOSE_IN_API_ASC' - | 'EXPOSE_IN_API_DESC' - | 'NODES_ASC' - | 'NODES_DESC' - | 'GRANTS_ASC' - | 'GRANTS_DESC' + | 'ENTITY_FIELD_ASC' + | 'ENTITY_FIELD_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'PRIVATE_SCHEMA_ID_ASC' + | 'PRIVATE_SCHEMA_ID_DESC' + | 'PUBLIC_SCHEMA_NAME_ASC' + | 'PUBLIC_SCHEMA_NAME_DESC' + | 'PRIVATE_SCHEMA_NAME_ASC' + | 'PRIVATE_SCHEMA_NAME_DESC' + | 'RESOURCES_TABLE_ID_ASC' + | 'RESOURCES_TABLE_ID_DESC' + | 'RESOURCE_EVENTS_TABLE_ID_ASC' + | 'RESOURCE_EVENTS_TABLE_ID_DESC' + | 'RESOURCE_STATUS_CHECKS_TABLE_ID_ASC' + | 'RESOURCE_STATUS_CHECKS_TABLE_ID_DESC' + | 'RESOURCE_DEFINITIONS_TABLE_ID_ASC' + | 'RESOURCE_DEFINITIONS_TABLE_ID_DESC' + | 'RESOURCES_TABLE_NAME_ASC' + | 'RESOURCES_TABLE_NAME_DESC' + | 'RESOURCE_EVENTS_TABLE_NAME_ASC' + | 'RESOURCE_EVENTS_TABLE_NAME_DESC' + | 'RESOURCE_STATUS_CHECKS_TABLE_NAME_ASC' + | 'RESOURCE_STATUS_CHECKS_TABLE_NAME_DESC' + | 'RESOURCE_DEFINITIONS_TABLE_NAME_ASC' + | 'RESOURCE_DEFINITIONS_TABLE_NAME_DESC' + | 'RESOLVED_REQUIREMENTS_VIEW_NAME_ASC' + | 'RESOLVED_REQUIREMENTS_VIEW_NAME_DESC' + | 'REQUIREMENTS_STATE_VIEW_NAME_ASC' + | 'REQUIREMENTS_STATE_VIEW_NAME_DESC' + | 'API_NAME_ASC' + | 'API_NAME_DESC' + | 'PRIVATE_API_NAME_ASC' + | 'PRIVATE_API_NAME_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC' + | 'ENTITY_TABLE_ID_ASC' + | 'ENTITY_TABLE_ID_DESC' + | 'NAMESPACE_MODULE_ID_ASC' + | 'NAMESPACE_MODULE_ID_DESC' | 'POLICIES_ASC' | 'POLICIES_DESC' - | 'OUT_FIELD_ID_ASC' - | 'OUT_FIELD_ID_DESC' - | 'OUT_JUNCTION_TABLE_ID_ASC' - | 'OUT_JUNCTION_TABLE_ID_DESC' - | 'OUT_SOURCE_FIELD_ID_ASC' - | 'OUT_SOURCE_FIELD_ID_DESC' - | 'OUT_TARGET_FIELD_ID_ASC' - | 'OUT_TARGET_FIELD_ID_DESC'; + | 'PROVISIONS_ASC' + | 'PROVISIONS_DESC' + | 'DEFAULT_PERMISSIONS_ASC' + | 'DEFAULT_PERMISSIONS_DESC'; export type UserAuthModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -7698,6 +8449,64 @@ export type UserAuthModuleOrderBy = | 'API_NAME_DESC' | 'PRIVATE_API_NAME_ASC' | 'PRIVATE_API_NAME_DESC'; +export type DbUsageModuleOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'ENTITY_FIELD_ASC' + | 'ENTITY_FIELD_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'PRIVATE_SCHEMA_ID_ASC' + | 'PRIVATE_SCHEMA_ID_DESC' + | 'PUBLIC_SCHEMA_NAME_ASC' + | 'PUBLIC_SCHEMA_NAME_DESC' + | 'PRIVATE_SCHEMA_NAME_ASC' + | 'PRIVATE_SCHEMA_NAME_DESC' + | 'TABLE_STATS_LOG_TABLE_ID_ASC' + | 'TABLE_STATS_LOG_TABLE_ID_DESC' + | 'TABLE_STATS_LOG_TABLE_NAME_ASC' + | 'TABLE_STATS_LOG_TABLE_NAME_DESC' + | 'TABLE_STATS_DAILY_TABLE_ID_ASC' + | 'TABLE_STATS_DAILY_TABLE_ID_DESC' + | 'TABLE_STATS_DAILY_TABLE_NAME_ASC' + | 'TABLE_STATS_DAILY_TABLE_NAME_DESC' + | 'QUERY_STATS_LOG_TABLE_ID_ASC' + | 'QUERY_STATS_LOG_TABLE_ID_DESC' + | 'QUERY_STATS_LOG_TABLE_NAME_ASC' + | 'QUERY_STATS_LOG_TABLE_NAME_DESC' + | 'QUERY_STATS_DAILY_TABLE_ID_ASC' + | 'QUERY_STATS_DAILY_TABLE_ID_DESC' + | 'QUERY_STATS_DAILY_TABLE_NAME_ASC' + | 'QUERY_STATS_DAILY_TABLE_NAME_DESC' + | 'COLLECT_DB_TABLE_STATS_FUNCTION_ASC' + | 'COLLECT_DB_TABLE_STATS_FUNCTION_DESC' + | 'COLLECT_DB_QUERY_STATS_FUNCTION_ASC' + | 'COLLECT_DB_QUERY_STATS_FUNCTION_DESC' + | 'ROLLUP_DB_TABLE_STATS_DAILY_FUNCTION_ASC' + | 'ROLLUP_DB_TABLE_STATS_DAILY_FUNCTION_DESC' + | 'ROLLUP_DB_QUERY_STATS_DAILY_FUNCTION_ASC' + | 'ROLLUP_DB_QUERY_STATS_DAILY_FUNCTION_DESC' + | 'INTERVAL_ASC' + | 'INTERVAL_DESC' + | 'RETENTION_ASC' + | 'RETENTION_DESC' + | 'PREMAKE_ASC' + | 'PREMAKE_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC' + | 'DEFAULT_PERMISSIONS_ASC' + | 'DEFAULT_PERMISSIONS_DESC' + | 'API_NAME_ASC' + | 'API_NAME_DESC' + | 'PRIVATE_API_NAME_ASC' + | 'PRIVATE_API_NAME_DESC'; export type AgentModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -7706,6 +8515,8 @@ export type AgentModuleOrderBy = | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' + | 'ENTITY_FIELD_ASC' + | 'ENTITY_FIELD_DESC' | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' | 'PRIVATE_SCHEMA_ID_ASC' @@ -7780,6 +8591,8 @@ export type LimitsModuleOrderBy = | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' + | 'ENTITY_FIELD_ASC' + | 'ENTITY_FIELD_DESC' | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' | 'PRIVATE_SCHEMA_ID_ASC' @@ -7848,92 +8661,6 @@ export type LimitsModuleOrderBy = | 'API_NAME_DESC' | 'PRIVATE_API_NAME_ASC' | 'PRIVATE_API_NAME_DESC'; -export type MembershipsModuleOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC' - | 'PRIVATE_SCHEMA_ID_ASC' - | 'PRIVATE_SCHEMA_ID_DESC' - | 'PUBLIC_SCHEMA_NAME_ASC' - | 'PUBLIC_SCHEMA_NAME_DESC' - | 'PRIVATE_SCHEMA_NAME_ASC' - | 'PRIVATE_SCHEMA_NAME_DESC' - | 'MEMBERSHIPS_TABLE_ID_ASC' - | 'MEMBERSHIPS_TABLE_ID_DESC' - | 'MEMBERSHIPS_TABLE_NAME_ASC' - | 'MEMBERSHIPS_TABLE_NAME_DESC' - | 'MEMBERS_TABLE_ID_ASC' - | 'MEMBERS_TABLE_ID_DESC' - | 'MEMBERS_TABLE_NAME_ASC' - | 'MEMBERS_TABLE_NAME_DESC' - | 'MEMBERSHIP_DEFAULTS_TABLE_ID_ASC' - | 'MEMBERSHIP_DEFAULTS_TABLE_ID_DESC' - | 'MEMBERSHIP_DEFAULTS_TABLE_NAME_ASC' - | 'MEMBERSHIP_DEFAULTS_TABLE_NAME_DESC' - | 'MEMBERSHIP_SETTINGS_TABLE_ID_ASC' - | 'MEMBERSHIP_SETTINGS_TABLE_ID_DESC' - | 'MEMBERSHIP_SETTINGS_TABLE_NAME_ASC' - | 'MEMBERSHIP_SETTINGS_TABLE_NAME_DESC' - | 'GRANTS_TABLE_ID_ASC' - | 'GRANTS_TABLE_ID_DESC' - | 'GRANTS_TABLE_NAME_ASC' - | 'GRANTS_TABLE_NAME_DESC' - | 'ACTOR_TABLE_ID_ASC' - | 'ACTOR_TABLE_ID_DESC' - | 'LIMITS_TABLE_ID_ASC' - | 'LIMITS_TABLE_ID_DESC' - | 'DEFAULT_LIMITS_TABLE_ID_ASC' - | 'DEFAULT_LIMITS_TABLE_ID_DESC' - | 'PERMISSIONS_TABLE_ID_ASC' - | 'PERMISSIONS_TABLE_ID_DESC' - | 'DEFAULT_PERMISSIONS_TABLE_ID_ASC' - | 'DEFAULT_PERMISSIONS_TABLE_ID_DESC' - | 'SPRT_TABLE_ID_ASC' - | 'SPRT_TABLE_ID_DESC' - | 'ADMIN_GRANTS_TABLE_ID_ASC' - | 'ADMIN_GRANTS_TABLE_ID_DESC' - | 'ADMIN_GRANTS_TABLE_NAME_ASC' - | 'ADMIN_GRANTS_TABLE_NAME_DESC' - | 'OWNER_GRANTS_TABLE_ID_ASC' - | 'OWNER_GRANTS_TABLE_ID_DESC' - | 'OWNER_GRANTS_TABLE_NAME_ASC' - | 'OWNER_GRANTS_TABLE_NAME_DESC' - | 'SCOPE_ASC' - | 'SCOPE_DESC' - | 'PREFIX_ASC' - | 'PREFIX_DESC' - | 'ENTITY_TABLE_ID_ASC' - | 'ENTITY_TABLE_ID_DESC' - | 'ENTITY_TABLE_OWNER_ID_ASC' - | 'ENTITY_TABLE_OWNER_ID_DESC' - | 'GET_ORG_FN_ASC' - | 'GET_ORG_FN_DESC' - | 'ACTOR_MASK_CHECK_ASC' - | 'ACTOR_MASK_CHECK_DESC' - | 'ACTOR_PERM_CHECK_ASC' - | 'ACTOR_PERM_CHECK_DESC' - | 'ENTITY_IDS_BY_MASK_ASC' - | 'ENTITY_IDS_BY_MASK_DESC' - | 'ENTITY_IDS_BY_PERM_ASC' - | 'ENTITY_IDS_BY_PERM_DESC' - | 'ENTITY_IDS_FUNCTION_ASC' - | 'ENTITY_IDS_FUNCTION_DESC' - | 'MEMBER_PROFILES_TABLE_ID_ASC' - | 'MEMBER_PROFILES_TABLE_ID_DESC' - | 'PERMISSION_DEFAULT_PERMISSIONS_TABLE_ID_ASC' - | 'PERMISSION_DEFAULT_PERMISSIONS_TABLE_ID_DESC' - | 'PERMISSION_DEFAULT_GRANTS_TABLE_ID_ASC' - | 'PERMISSION_DEFAULT_GRANTS_TABLE_ID_DESC' - | 'API_NAME_ASC' - | 'API_NAME_DESC' - | 'PRIVATE_API_NAME_ASC' - | 'PRIVATE_API_NAME_DESC'; export type EntityTypeProvisionOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -8010,8 +8737,6 @@ export type EntityTypeProvisionOrderBy = | 'OUT_INVOCATIONS_TABLE_ID_DESC' | 'OUT_EXECUTION_LOGS_TABLE_ID_ASC' | 'OUT_EXECUTION_LOGS_TABLE_ID_DESC' - | 'OUT_SECRET_DEFINITIONS_TABLE_ID_ASC' - | 'OUT_SECRET_DEFINITIONS_TABLE_ID_DESC' | 'OUT_GRAPH_MODULE_ID_ASC' | 'OUT_GRAPH_MODULE_ID_DESC' | 'OUT_GRAPHS_TABLE_ID_ASC' @@ -8052,6 +8777,8 @@ export type StorageModuleOrderBy = | 'PROVISIONS_DESC' | 'ENTITY_TABLE_ID_ASC' | 'ENTITY_TABLE_ID_DESC' + | 'ENTITY_FIELD_ASC' + | 'ENTITY_FIELD_DESC' | 'ENDPOINT_ASC' | 'ENDPOINT_DESC' | 'PUBLIC_URL_PREFIX_ASC' @@ -8100,6 +8827,94 @@ export type StorageModuleOrderBy = | 'API_NAME_DESC' | 'PRIVATE_API_NAME_ASC' | 'PRIVATE_API_NAME_DESC'; +export type MembershipsModuleOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'ENTITY_FIELD_ASC' + | 'ENTITY_FIELD_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'PRIVATE_SCHEMA_ID_ASC' + | 'PRIVATE_SCHEMA_ID_DESC' + | 'PUBLIC_SCHEMA_NAME_ASC' + | 'PUBLIC_SCHEMA_NAME_DESC' + | 'PRIVATE_SCHEMA_NAME_ASC' + | 'PRIVATE_SCHEMA_NAME_DESC' + | 'MEMBERSHIPS_TABLE_ID_ASC' + | 'MEMBERSHIPS_TABLE_ID_DESC' + | 'MEMBERSHIPS_TABLE_NAME_ASC' + | 'MEMBERSHIPS_TABLE_NAME_DESC' + | 'MEMBERS_TABLE_ID_ASC' + | 'MEMBERS_TABLE_ID_DESC' + | 'MEMBERS_TABLE_NAME_ASC' + | 'MEMBERS_TABLE_NAME_DESC' + | 'MEMBERSHIP_DEFAULTS_TABLE_ID_ASC' + | 'MEMBERSHIP_DEFAULTS_TABLE_ID_DESC' + | 'MEMBERSHIP_DEFAULTS_TABLE_NAME_ASC' + | 'MEMBERSHIP_DEFAULTS_TABLE_NAME_DESC' + | 'MEMBERSHIP_SETTINGS_TABLE_ID_ASC' + | 'MEMBERSHIP_SETTINGS_TABLE_ID_DESC' + | 'MEMBERSHIP_SETTINGS_TABLE_NAME_ASC' + | 'MEMBERSHIP_SETTINGS_TABLE_NAME_DESC' + | 'GRANTS_TABLE_ID_ASC' + | 'GRANTS_TABLE_ID_DESC' + | 'GRANTS_TABLE_NAME_ASC' + | 'GRANTS_TABLE_NAME_DESC' + | 'ACTOR_TABLE_ID_ASC' + | 'ACTOR_TABLE_ID_DESC' + | 'LIMITS_TABLE_ID_ASC' + | 'LIMITS_TABLE_ID_DESC' + | 'DEFAULT_LIMITS_TABLE_ID_ASC' + | 'DEFAULT_LIMITS_TABLE_ID_DESC' + | 'PERMISSIONS_TABLE_ID_ASC' + | 'PERMISSIONS_TABLE_ID_DESC' + | 'DEFAULT_PERMISSIONS_TABLE_ID_ASC' + | 'DEFAULT_PERMISSIONS_TABLE_ID_DESC' + | 'SPRT_TABLE_ID_ASC' + | 'SPRT_TABLE_ID_DESC' + | 'ADMIN_GRANTS_TABLE_ID_ASC' + | 'ADMIN_GRANTS_TABLE_ID_DESC' + | 'ADMIN_GRANTS_TABLE_NAME_ASC' + | 'ADMIN_GRANTS_TABLE_NAME_DESC' + | 'OWNER_GRANTS_TABLE_ID_ASC' + | 'OWNER_GRANTS_TABLE_ID_DESC' + | 'OWNER_GRANTS_TABLE_NAME_ASC' + | 'OWNER_GRANTS_TABLE_NAME_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC' + | 'ENTITY_TABLE_ID_ASC' + | 'ENTITY_TABLE_ID_DESC' + | 'ENTITY_TABLE_OWNER_ID_ASC' + | 'ENTITY_TABLE_OWNER_ID_DESC' + | 'GET_ORG_FN_ASC' + | 'GET_ORG_FN_DESC' + | 'ACTOR_MASK_CHECK_ASC' + | 'ACTOR_MASK_CHECK_DESC' + | 'ACTOR_PERM_CHECK_ASC' + | 'ACTOR_PERM_CHECK_DESC' + | 'ENTITY_IDS_BY_MASK_ASC' + | 'ENTITY_IDS_BY_MASK_DESC' + | 'ENTITY_IDS_BY_PERM_ASC' + | 'ENTITY_IDS_BY_PERM_DESC' + | 'ENTITY_IDS_FUNCTION_ASC' + | 'ENTITY_IDS_FUNCTION_DESC' + | 'MEMBER_PROFILES_TABLE_ID_ASC' + | 'MEMBER_PROFILES_TABLE_ID_DESC' + | 'PERMISSION_DEFAULT_PERMISSIONS_TABLE_ID_ASC' + | 'PERMISSION_DEFAULT_PERMISSIONS_TABLE_ID_DESC' + | 'PERMISSION_DEFAULT_GRANTS_TABLE_ID_ASC' + | 'PERMISSION_DEFAULT_GRANTS_TABLE_ID_DESC' + | 'API_NAME_ASC' + | 'API_NAME_DESC' + | 'PRIVATE_API_NAME_ASC' + | 'PRIVATE_API_NAME_DESC'; export type EventsModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -8108,6 +8923,8 @@ export type EventsModuleOrderBy = | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' + | 'ENTITY_FIELD_ASC' + | 'ENTITY_FIELD_DESC' | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' | 'PRIVATE_SCHEMA_ID_ASC' @@ -8160,8 +8977,6 @@ export type EventsModuleOrderBy = | 'UPSERT_AGGREGATE_DESC' | 'TG_UPDATE_AGGREGATES_ASC' | 'TG_UPDATE_AGGREGATES_DESC' - | 'PRUNE_EVENTS_ASC' - | 'PRUNE_EVENTS_DESC' | 'STEPS_REQUIRED_ASC' | 'STEPS_REQUIRED_DESC' | 'LEVEL_ACHIEVED_ASC' @@ -8220,96 +9035,44 @@ export interface CreateMembershipTypesModuleInput { tableName?: string; }; } -export interface MembershipTypesModulePatch { - databaseId?: string | null; - schemaId?: string | null; - tableId?: string | null; - tableName?: string | null; -} -export interface UpdateMembershipTypesModuleInput { - clientMutationId?: string; - id: string; - membershipTypesModulePatch: MembershipTypesModulePatch; -} -export interface DeleteMembershipTypesModuleInput { - clientMutationId?: string; - id: string; -} -export interface CreateUserStateModuleInput { - clientMutationId?: string; - userStateModule: { - databaseId: string; - schemaId?: string; - tableId?: string; - tableName?: string; - }; -} -export interface UserStateModulePatch { - databaseId?: string | null; - schemaId?: string | null; - tableId?: string | null; - tableName?: string | null; -} -export interface UpdateUserStateModuleInput { - clientMutationId?: string; - id: string; - userStateModulePatch: UserStateModulePatch; -} -export interface DeleteUserStateModuleInput { - clientMutationId?: string; - id: string; -} -export interface CreateSessionSecretsModuleInput { - clientMutationId?: string; - sessionSecretsModule: { - databaseId: string; - schemaId?: string; - tableId?: string; - tableName?: string; - sessionsTableId?: string; - }; -} -export interface SessionSecretsModulePatch { +export interface MembershipTypesModulePatch { databaseId?: string | null; schemaId?: string | null; tableId?: string | null; tableName?: string | null; - sessionsTableId?: string | null; } -export interface UpdateSessionSecretsModuleInput { +export interface UpdateMembershipTypesModuleInput { clientMutationId?: string; id: string; - sessionSecretsModulePatch: SessionSecretsModulePatch; + membershipTypesModulePatch: MembershipTypesModulePatch; } -export interface DeleteSessionSecretsModuleInput { +export interface DeleteMembershipTypesModuleInput { clientMutationId?: string; id: string; } -export interface CreateConfigSecretsOrgModuleInput { +export interface CreateSessionSecretsModuleInput { clientMutationId?: string; - configSecretsOrgModule: { + sessionSecretsModule: { databaseId: string; schemaId?: string; tableId?: string; tableName?: string; - apiName?: string; - privateApiName?: string; + sessionsTableId?: string; }; } -export interface ConfigSecretsOrgModulePatch { +export interface SessionSecretsModulePatch { databaseId?: string | null; schemaId?: string | null; tableId?: string | null; tableName?: string | null; - apiName?: string | null; - privateApiName?: string | null; + sessionsTableId?: string | null; } -export interface UpdateConfigSecretsOrgModuleInput { +export interface UpdateSessionSecretsModuleInput { clientMutationId?: string; id: string; - configSecretsOrgModulePatch: ConfigSecretsOrgModulePatch; + sessionSecretsModulePatch: SessionSecretsModulePatch; } -export interface DeleteConfigSecretsOrgModuleInput { +export interface DeleteSessionSecretsModuleInput { clientMutationId?: string; id: string; } @@ -8369,89 +9132,85 @@ export interface DeleteI18NModuleInput { clientMutationId?: string; id: string; } -export interface CreateUserCredentialsModuleInput { +export interface CreateUserSettingsModuleInput { clientMutationId?: string; - userCredentialsModule: { + userSettingsModule: { databaseId: string; schemaId?: string; tableId?: string; + ownerTableId?: string; tableName?: string; apiName?: string; - privateApiName?: string; }; } -export interface UserCredentialsModulePatch { +export interface UserSettingsModulePatch { databaseId?: string | null; schemaId?: string | null; tableId?: string | null; + ownerTableId?: string | null; tableName?: string | null; apiName?: string | null; - privateApiName?: string | null; } -export interface UpdateUserCredentialsModuleInput { +export interface UpdateUserSettingsModuleInput { clientMutationId?: string; id: string; - userCredentialsModulePatch: UserCredentialsModulePatch; + userSettingsModulePatch: UserSettingsModulePatch; } -export interface DeleteUserCredentialsModuleInput { +export interface DeleteUserSettingsModuleInput { clientMutationId?: string; id: string; } -export interface CreateUserSettingsModuleInput { +export interface CreateUserStateModuleInput { clientMutationId?: string; - userSettingsModule: { + userStateModule: { databaseId: string; + entityField?: string; schemaId?: string; tableId?: string; - ownerTableId?: string; tableName?: string; - apiName?: string; }; } -export interface UserSettingsModulePatch { +export interface UserStateModulePatch { databaseId?: string | null; + entityField?: string | null; schemaId?: string | null; tableId?: string | null; - ownerTableId?: string | null; tableName?: string | null; - apiName?: string | null; } -export interface UpdateUserSettingsModuleInput { +export interface UpdateUserStateModuleInput { clientMutationId?: string; id: string; - userSettingsModulePatch: UserSettingsModulePatch; + userStateModulePatch: UserStateModulePatch; } -export interface DeleteUserSettingsModuleInput { +export interface DeleteUserStateModuleInput { clientMutationId?: string; id: string; } -export interface CreateConfigSecretsUserModuleInput { +export interface CreateUserCredentialsModuleInput { clientMutationId?: string; - configSecretsUserModule: { + userCredentialsModule: { databaseId: string; + entityField?: string; schemaId?: string; tableId?: string; tableName?: string; - configDefinitionsTableId?: string; - apiName?: string; privateApiName?: string; }; } -export interface ConfigSecretsUserModulePatch { +export interface UserCredentialsModulePatch { databaseId?: string | null; + entityField?: string | null; schemaId?: string | null; tableId?: string | null; tableName?: string | null; - configDefinitionsTableId?: string | null; - apiName?: string | null; privateApiName?: string | null; } -export interface UpdateConfigSecretsUserModuleInput { +export interface UpdateUserCredentialsModuleInput { clientMutationId?: string; id: string; - configSecretsUserModulePatch: ConfigSecretsUserModulePatch; + userCredentialsModulePatch: UserCredentialsModulePatch; } -export interface DeleteConfigSecretsUserModuleInput { +export interface DeleteUserCredentialsModuleInput { clientMutationId?: string; id: string; } @@ -8647,6 +9406,36 @@ export interface DeleteWebauthnCredentialsModuleInput { clientMutationId?: string; id: string; } +export interface CreateConfigSecretsUserModuleInput { + clientMutationId?: string; + configSecretsUserModule: { + databaseId: string; + entityField?: string; + schemaId?: string; + tableId?: string; + tableName?: string; + apiName?: string; + privateApiName?: string; + }; +} +export interface ConfigSecretsUserModulePatch { + databaseId?: string | null; + entityField?: string | null; + schemaId?: string | null; + tableId?: string | null; + tableName?: string | null; + apiName?: string | null; + privateApiName?: string | null; +} +export interface UpdateConfigSecretsUserModuleInput { + clientMutationId?: string; + id: string; + configSecretsUserModulePatch: ConfigSecretsUserModulePatch; +} +export interface DeleteConfigSecretsUserModuleInput { + clientMutationId?: string; + id: string; +} export interface CreateCryptoAddressesModuleInput { clientMutationId?: string; cryptoAddressesModule: { @@ -8719,46 +9508,6 @@ export interface DeleteDenormalizedTableFieldInput { clientMutationId?: string; id: string; } -export interface CreateIdentityProvidersModuleInput { - clientMutationId?: string; - identityProvidersModule: { - databaseId: string; - schemaId?: string; - privateSchemaId?: string; - publicSchemaName?: string; - privateSchemaName?: string; - tableId?: string; - tableName?: string; - apiName?: string; - privateApiName?: string; - scope?: string; - prefix?: string; - entityTableId?: string; - }; -} -export interface IdentityProvidersModulePatch { - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - publicSchemaName?: string | null; - privateSchemaName?: string | null; - tableId?: string | null; - tableName?: string | null; - apiName?: string | null; - privateApiName?: string | null; - scope?: string | null; - prefix?: string | null; - entityTableId?: string | null; -} -export interface UpdateIdentityProvidersModuleInput { - clientMutationId?: string; - id: string; - identityProvidersModulePatch: IdentityProvidersModulePatch; -} -export interface DeleteIdentityProvidersModuleInput { - clientMutationId?: string; - id: string; -} export interface CreateRlsModuleInput { clientMutationId?: string; rlsModule: { @@ -9008,134 +9757,296 @@ export interface CreateSecureTableProvisionInput { outFields?: string[]; }; } -export interface SecureTableProvisionPatch { +export interface SecureTableProvisionPatch { + databaseId?: string | null; + schemaId?: string | null; + tableId?: string | null; + tableName?: string | null; + nodes?: Record | null; + useRls?: boolean | null; + fields?: Record[] | null; + grants?: Record | null; + policies?: Record | null; + outFields?: string[] | null; +} +export interface UpdateSecureTableProvisionInput { + clientMutationId?: string; + id: string; + secureTableProvisionPatch: SecureTableProvisionPatch; +} +export interface DeleteSecureTableProvisionInput { + clientMutationId?: string; + id: string; +} +export interface CreateIdentityProvidersModuleInput { + clientMutationId?: string; + identityProvidersModule: { + databaseId: string; + entityField?: string; + schemaId?: string; + privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + tableId?: string; + tableName?: string; + apiName?: string; + privateApiName?: string; + scope?: string; + prefix?: string; + entityTableId?: string; + }; +} +export interface IdentityProvidersModulePatch { + databaseId?: string | null; + entityField?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + publicSchemaName?: string | null; + privateSchemaName?: string | null; + tableId?: string | null; + tableName?: string | null; + apiName?: string | null; + privateApiName?: string | null; + scope?: string | null; + prefix?: string | null; + entityTableId?: string | null; +} +export interface UpdateIdentityProvidersModuleInput { + clientMutationId?: string; + id: string; + identityProvidersModulePatch: IdentityProvidersModulePatch; +} +export interface DeleteIdentityProvidersModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateIntegrationProvidersModuleInput { + clientMutationId?: string; + integrationProvidersModule: { + databaseId: string; + entityField?: string; + schemaId?: string; + privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + tableId?: string; + tableName?: string; + apiName?: string; + privateApiName?: string; + scope?: string; + prefix?: string; + entityTableId?: string; + }; +} +export interface IntegrationProvidersModulePatch { + databaseId?: string | null; + entityField?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + publicSchemaName?: string | null; + privateSchemaName?: string | null; + tableId?: string | null; + tableName?: string | null; + apiName?: string | null; + privateApiName?: string | null; + scope?: string | null; + prefix?: string | null; + entityTableId?: string | null; +} +export interface UpdateIntegrationProvidersModuleInput { + clientMutationId?: string; + id: string; + integrationProvidersModulePatch: IntegrationProvidersModulePatch; +} +export interface DeleteIntegrationProvidersModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateDbPoolConfigInput { + clientMutationId?: string; + dbPoolConfig: { + presetSlug: string; + domain: string; + poolOwnerId: string; + min?: number; + max?: number; + warmTtl?: IntervalInput; + enabled?: boolean; + }; +} +export interface DbPoolConfigPatch { + presetSlug?: string | null; + domain?: string | null; + poolOwnerId?: string | null; + min?: number | null; + max?: number | null; + warmTtl?: IntervalInput | null; + enabled?: boolean | null; +} +export interface UpdateDbPoolConfigInput { + clientMutationId?: string; + id: string; + dbPoolConfigPatch: DbPoolConfigPatch; +} +export interface DeleteDbPoolConfigInput { + clientMutationId?: string; + id: string; +} +export interface CreateRealtimeModuleInput { + clientMutationId?: string; + realtimeModule: { + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + subscriptionsSchemaId?: string; + changeLogTableId?: string; + listenerNodeTableId?: string; + sourceRegistryTableId?: string; + retentionHours?: number; + premake?: number; + interval?: string; + notifyChannel?: string; + apiName?: string; + privateApiName?: string; + }; +} +export interface RealtimeModulePatch { databaseId?: string | null; schemaId?: string | null; - tableId?: string | null; - tableName?: string | null; - nodes?: Record | null; - useRls?: boolean | null; - fields?: Record[] | null; - grants?: Record | null; - policies?: Record | null; - outFields?: string[] | null; + privateSchemaId?: string | null; + subscriptionsSchemaId?: string | null; + changeLogTableId?: string | null; + listenerNodeTableId?: string | null; + sourceRegistryTableId?: string | null; + retentionHours?: number | null; + premake?: number | null; + interval?: string | null; + notifyChannel?: string | null; + apiName?: string | null; + privateApiName?: string | null; } -export interface UpdateSecureTableProvisionInput { +export interface UpdateRealtimeModuleInput { clientMutationId?: string; id: string; - secureTableProvisionPatch: SecureTableProvisionPatch; + realtimeModulePatch: RealtimeModulePatch; } -export interface DeleteSecureTableProvisionInput { +export interface DeleteRealtimeModuleInput { clientMutationId?: string; id: string; } -export interface CreateDatabaseProvisionModuleInput { +export interface CreateInfraSecretsModuleInput { clientMutationId?: string; - databaseProvisionModule: { - databaseName: string; - ownerId: string; - subdomain?: string; - domain: string; - modules?: Record; - options?: Record; - bootstrapUser?: boolean; - status?: string; - errorMessage?: string; - databaseId?: string; - completedAt?: string; + infraSecretsModule: { + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + secretsTableId?: string; + secretsTableName?: string; + apiName?: string; + privateApiName?: string; + scope?: string; + prefix?: string; + entityTableId?: string; + entityField?: string; + policies?: Record; + provisions?: Record; }; } -export interface DatabaseProvisionModulePatch { - databaseName?: string | null; - ownerId?: string | null; - subdomain?: string | null; - domain?: string | null; - modules?: Record | null; - options?: Record | null; - bootstrapUser?: boolean | null; - status?: string | null; - errorMessage?: string | null; +export interface InfraSecretsModulePatch { databaseId?: string | null; - completedAt?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + publicSchemaName?: string | null; + privateSchemaName?: string | null; + secretsTableId?: string | null; + secretsTableName?: string | null; + apiName?: string | null; + privateApiName?: string | null; + scope?: string | null; + prefix?: string | null; + entityTableId?: string | null; + entityField?: string | null; + policies?: Record | null; + provisions?: Record | null; } -export interface UpdateDatabaseProvisionModuleInput { +export interface UpdateInfraSecretsModuleInput { clientMutationId?: string; id: string; - databaseProvisionModulePatch: DatabaseProvisionModulePatch; + infraSecretsModulePatch: InfraSecretsModulePatch; } -export interface DeleteDatabaseProvisionModuleInput { +export interface DeleteInfraSecretsModuleInput { clientMutationId?: string; id: string; } -export interface CreateConfigSecretsModuleInput { +export interface CreateInternalSecretsModuleInput { clientMutationId?: string; - configSecretsModule: { + internalSecretsModule: { databaseId: string; schemaId?: string; privateSchemaId?: string; publicSchemaName?: string; privateSchemaName?: string; - tableId?: string; - configDefinitionsTableId?: string; - tableName?: string; + internalSecretsTableId?: string; + internalSecretsTableName?: string; apiName?: string; privateApiName?: string; scope?: string; prefix?: string; entityTableId?: string; + entityField?: string; policies?: Record; provisions?: Record; - hasConfig?: boolean; }; } -export interface ConfigSecretsModulePatch { +export interface InternalSecretsModulePatch { databaseId?: string | null; schemaId?: string | null; privateSchemaId?: string | null; publicSchemaName?: string | null; privateSchemaName?: string | null; - tableId?: string | null; - configDefinitionsTableId?: string | null; - tableName?: string | null; + internalSecretsTableId?: string | null; + internalSecretsTableName?: string | null; apiName?: string | null; privateApiName?: string | null; scope?: string | null; prefix?: string | null; entityTableId?: string | null; + entityField?: string | null; policies?: Record | null; provisions?: Record | null; - hasConfig?: boolean | null; } -export interface UpdateConfigSecretsModuleInput { +export interface UpdateInternalSecretsModuleInput { clientMutationId?: string; id: string; - configSecretsModulePatch: ConfigSecretsModulePatch; + internalSecretsModulePatch: InternalSecretsModulePatch; } -export interface DeleteConfigSecretsModuleInput { +export interface DeleteInternalSecretsModuleInput { clientMutationId?: string; id: string; } -export interface CreateGraphModuleInput { +export interface CreateDbPresetModuleInput { clientMutationId?: string; - graphModule: { + dbPresetModule: { databaseId: string; publicSchemaId?: string; privateSchemaId?: string; publicSchemaName?: string; privateSchemaName?: string; - scope?: string; - prefix?: string; + scope: string; + prefix: string; merkleStoreModuleId: string; - graphsTableId?: string; + dbPresetsTableId?: string; + storeName: string; apiName?: string; privateApiName?: string; entityTableId?: string; policies?: Record; provisions?: Record; - defaultPermissions?: string[]; }; } -export interface GraphModulePatch { +export interface DbPresetModulePatch { databaseId?: string | null; publicSchemaId?: string | null; privateSchemaId?: string | null; @@ -9144,66 +10055,68 @@ export interface GraphModulePatch { scope?: string | null; prefix?: string | null; merkleStoreModuleId?: string | null; - graphsTableId?: string | null; + dbPresetsTableId?: string | null; + storeName?: string | null; apiName?: string | null; privateApiName?: string | null; entityTableId?: string | null; policies?: Record | null; provisions?: Record | null; - defaultPermissions?: string[] | null; } -export interface UpdateGraphModuleInput { +export interface UpdateDbPresetModuleInput { clientMutationId?: string; id: string; - graphModulePatch: GraphModulePatch; + dbPresetModulePatch: DbPresetModulePatch; } -export interface DeleteGraphModuleInput { +export interface DeleteDbPresetModuleInput { clientMutationId?: string; id: string; } -export interface CreateMerkleStoreModuleInput { +export interface CreateGraphModuleInput { clientMutationId?: string; - merkleStoreModule: { + graphModule: { databaseId: string; - schemaId?: string; + entityField?: string; + publicSchemaId?: string; privateSchemaId?: string; publicSchemaName?: string; privateSchemaName?: string; - objectTableId?: string; - storeTableId?: string; - commitTableId?: string; - refTableId?: string; + scope?: string; prefix?: string; + merkleStoreModuleId: string; + graphsTableId?: string; apiName?: string; privateApiName?: string; - scope?: string; - functionPrefix?: string; - permissionKey?: string; + entityTableId?: string; + policies?: Record; + provisions?: Record; + defaultPermissions?: string[]; }; } -export interface MerkleStoreModulePatch { +export interface GraphModulePatch { databaseId?: string | null; - schemaId?: string | null; + entityField?: string | null; + publicSchemaId?: string | null; privateSchemaId?: string | null; publicSchemaName?: string | null; privateSchemaName?: string | null; - objectTableId?: string | null; - storeTableId?: string | null; - commitTableId?: string | null; - refTableId?: string | null; + scope?: string | null; prefix?: string | null; + merkleStoreModuleId?: string | null; + graphsTableId?: string | null; apiName?: string | null; privateApiName?: string | null; - scope?: string | null; - functionPrefix?: string | null; - permissionKey?: string | null; + entityTableId?: string | null; + policies?: Record | null; + provisions?: Record | null; + defaultPermissions?: string[] | null; } -export interface UpdateMerkleStoreModuleInput { +export interface UpdateGraphModuleInput { clientMutationId?: string; id: string; - merkleStoreModulePatch: MerkleStoreModulePatch; + graphModulePatch: GraphModulePatch; } -export interface DeleteMerkleStoreModuleInput { +export interface DeleteGraphModuleInput { clientMutationId?: string; id: string; } @@ -9255,45 +10168,49 @@ export interface DeleteRateLimitMetersModuleInput { clientMutationId?: string; id: string; } -export interface CreateRealtimeModuleInput { +export interface CreateInfraConfigModuleInput { clientMutationId?: string; - realtimeModule: { + infraConfigModule: { databaseId: string; + entityField?: string; schemaId?: string; privateSchemaId?: string; - subscriptionsSchemaId?: string; - changeLogTableId?: string; - listenerNodeTableId?: string; - sourceRegistryTableId?: string; - retentionHours?: number; - premake?: number; - interval?: string; - notifyChannel?: string; + publicSchemaName?: string; + privateSchemaName?: string; + configTableId?: string; + configTableName?: string; apiName?: string; privateApiName?: string; + scope?: string; + prefix?: string; + entityTableId?: string; + policies?: Record; + provisions?: Record; }; } -export interface RealtimeModulePatch { +export interface InfraConfigModulePatch { databaseId?: string | null; + entityField?: string | null; schemaId?: string | null; privateSchemaId?: string | null; - subscriptionsSchemaId?: string | null; - changeLogTableId?: string | null; - listenerNodeTableId?: string | null; - sourceRegistryTableId?: string | null; - retentionHours?: number | null; - premake?: number | null; - interval?: string | null; - notifyChannel?: string | null; + publicSchemaName?: string | null; + privateSchemaName?: string | null; + configTableId?: string | null; + configTableName?: string | null; apiName?: string | null; privateApiName?: string | null; + scope?: string | null; + prefix?: string | null; + entityTableId?: string | null; + policies?: Record | null; + provisions?: Record | null; } -export interface UpdateRealtimeModuleInput { +export interface UpdateInfraConfigModuleInput { clientMutationId?: string; id: string; - realtimeModulePatch: RealtimeModulePatch; + infraConfigModulePatch: InfraConfigModulePatch; } -export interface DeleteRealtimeModuleInput { +export interface DeleteInfraConfigModuleInput { clientMutationId?: string; id: string; } @@ -9343,53 +10260,89 @@ export interface DeleteWebauthnAuthModuleInput { clientMutationId?: string; id: string; } -export interface CreateFunctionInvocationModuleInput { +export interface CreatePrincipalAuthModuleInput { clientMutationId?: string; - functionInvocationModule: { + principalAuthModule: { databaseId: string; schemaId?: string; - privateSchemaId?: string; - publicSchemaName?: string; - privateSchemaName?: string; - invocationsTableId?: string; - executionLogsTableId?: string; - invocationsTableName?: string; - executionLogsTableName?: string; + principalsTableId?: string; + principalEntitiesTableId?: string; + principalScopeOverridesTableId?: string; + usersTableId?: string; + sessionsTableId?: string; + sessionCredentialsTableId?: string; + auditsTableId?: string; + principalsTableName?: string; + createPrincipalFunction?: string; + deletePrincipalFunction?: string; + createOrgPrincipalFunction?: string; + deleteOrgPrincipalFunction?: string; + createOrgApiKeyFunction?: string; + revokeOrgApiKeyFunction?: string; apiName?: string; - privateApiName?: string; - scope?: string; - prefix?: string; - entityTableId?: string; - policies?: Record; - provisions?: Record; - defaultPermissions?: string[]; }; } -export interface FunctionInvocationModulePatch { +export interface PrincipalAuthModulePatch { databaseId?: string | null; schemaId?: string | null; - privateSchemaId?: string | null; - publicSchemaName?: string | null; - privateSchemaName?: string | null; - invocationsTableId?: string | null; - executionLogsTableId?: string | null; - invocationsTableName?: string | null; - executionLogsTableName?: string | null; + principalsTableId?: string | null; + principalEntitiesTableId?: string | null; + principalScopeOverridesTableId?: string | null; + usersTableId?: string | null; + sessionsTableId?: string | null; + sessionCredentialsTableId?: string | null; + auditsTableId?: string | null; + principalsTableName?: string | null; + createPrincipalFunction?: string | null; + deletePrincipalFunction?: string | null; + createOrgPrincipalFunction?: string | null; + deleteOrgPrincipalFunction?: string | null; + createOrgApiKeyFunction?: string | null; + revokeOrgApiKeyFunction?: string | null; apiName?: string | null; - privateApiName?: string | null; - scope?: string | null; - prefix?: string | null; - entityTableId?: string | null; - policies?: Record | null; - provisions?: Record | null; - defaultPermissions?: string[] | null; } -export interface UpdateFunctionInvocationModuleInput { +export interface UpdatePrincipalAuthModuleInput { + clientMutationId?: string; + id: string; + principalAuthModulePatch: PrincipalAuthModulePatch; +} +export interface DeletePrincipalAuthModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateDbPoolInput { + clientMutationId?: string; + dbPool: { + presetSlug: string; + presetCommitId?: string; + databaseId?: string; + status?: string; + errorMessage?: string; + expiresAt?: string; + claimedBy?: string; + claimedAt?: string; + bootstrapStatus?: string; + bootstrapError?: string; + }; +} +export interface DbPoolPatch { + presetSlug?: string | null; + presetCommitId?: string | null; + databaseId?: string | null; + status?: string | null; + errorMessage?: string | null; + expiresAt?: string | null; + claimedBy?: string | null; + claimedAt?: string | null; + bootstrapStatus?: string | null; + bootstrapError?: string | null; +} +export interface UpdateDbPoolInput { clientMutationId?: string; id: string; - functionInvocationModulePatch: FunctionInvocationModulePatch; + dbPoolPatch: DbPoolPatch; } -export interface DeleteFunctionInvocationModuleInput { +export interface DeleteDbPoolInput { clientMutationId?: string; id: string; } @@ -9397,14 +10350,13 @@ export interface CreateFunctionModuleInput { clientMutationId?: string; functionModule: { databaseId: string; + entityField?: string; schemaId?: string; privateSchemaId?: string; publicSchemaName?: string; privateSchemaName?: string; definitionsTableId?: string; - secretDefinitionsTableId?: string; definitionsTableName?: string; - secretDefinitionsTableName?: string; apiName?: string; privateApiName?: string; scope?: string; @@ -9417,14 +10369,13 @@ export interface CreateFunctionModuleInput { } export interface FunctionModulePatch { databaseId?: string | null; + entityField?: string | null; schemaId?: string | null; privateSchemaId?: string | null; publicSchemaName?: string | null; privateSchemaName?: string | null; definitionsTableId?: string | null; - secretDefinitionsTableId?: string | null; definitionsTableName?: string | null; - secretDefinitionsTableName?: string | null; apiName?: string | null; privateApiName?: string | null; scope?: string | null; @@ -9443,207 +10394,201 @@ export interface DeleteFunctionModuleInput { clientMutationId?: string; id: string; } -export interface CreateInvitesModuleInput { +export interface CreateMerkleStoreModuleInput { clientMutationId?: string; - invitesModule: { + merkleStoreModule: { databaseId: string; + entityField?: string; schemaId?: string; privateSchemaId?: string; publicSchemaName?: string; privateSchemaName?: string; - emailsTableId?: string; - usersTableId?: string; - invitesTableId?: string; - claimedInvitesTableId?: string; - invitesTableName?: string; - claimedInvitesTableName?: string; - submitInviteCodeFunction?: string; - scope?: string; + objectTableId?: string; + storeTableId?: string; + commitTableId?: string; + refTableId?: string; prefix?: string; - entityTableId?: string; apiName?: string; privateApiName?: string; + scope?: string; + functionPrefix?: string; + permissionKey?: string; }; } -export interface InvitesModulePatch { +export interface MerkleStoreModulePatch { databaseId?: string | null; + entityField?: string | null; schemaId?: string | null; privateSchemaId?: string | null; publicSchemaName?: string | null; privateSchemaName?: string | null; - emailsTableId?: string | null; - usersTableId?: string | null; - invitesTableId?: string | null; - claimedInvitesTableId?: string | null; - invitesTableName?: string | null; - claimedInvitesTableName?: string | null; - submitInviteCodeFunction?: string | null; - scope?: string | null; + objectTableId?: string | null; + storeTableId?: string | null; + commitTableId?: string | null; + refTableId?: string | null; prefix?: string | null; - entityTableId?: string | null; apiName?: string | null; privateApiName?: string | null; + scope?: string | null; + functionPrefix?: string | null; + permissionKey?: string | null; } -export interface UpdateInvitesModuleInput { +export interface UpdateMerkleStoreModuleInput { clientMutationId?: string; id: string; - invitesModulePatch: InvitesModulePatch; + merkleStoreModulePatch: MerkleStoreModulePatch; } -export interface DeleteInvitesModuleInput { +export interface DeleteMerkleStoreModuleInput { clientMutationId?: string; id: string; } -export interface CreatePrincipalAuthModuleInput { +export interface CreateDatabaseProvisionModuleInput { clientMutationId?: string; - principalAuthModule: { - databaseId: string; - schemaId?: string; - principalsTableId?: string; - principalEntitiesTableId?: string; - principalScopeOverridesTableId?: string; - usersTableId?: string; - sessionsTableId?: string; - sessionCredentialsTableId?: string; - auditsTableId?: string; - principalsTableName?: string; - createPrincipalFunction?: string; - deletePrincipalFunction?: string; - createOrgPrincipalFunction?: string; - deleteOrgPrincipalFunction?: string; - createOrgApiKeyFunction?: string; - revokeOrgApiKeyFunction?: string; - apiName?: string; + databaseProvisionModule: { + databaseName: string; + ownerId: string; + subdomain?: string; + domain: string; + modules?: Record; + options?: Record; + bootstrapUser?: boolean; + status?: string; + errorMessage?: string; + sourceDatabaseId?: string; + bootstrapStatus?: string; + bootstrapError?: string; + databaseId?: string; + completedAt?: string; + fulfilledAt?: string; }; } -export interface PrincipalAuthModulePatch { +export interface DatabaseProvisionModulePatch { + databaseName?: string | null; + ownerId?: string | null; + subdomain?: string | null; + domain?: string | null; + modules?: Record | null; + options?: Record | null; + bootstrapUser?: boolean | null; + status?: string | null; + errorMessage?: string | null; + sourceDatabaseId?: string | null; + bootstrapStatus?: string | null; + bootstrapError?: string | null; databaseId?: string | null; - schemaId?: string | null; - principalsTableId?: string | null; - principalEntitiesTableId?: string | null; - principalScopeOverridesTableId?: string | null; - usersTableId?: string | null; - sessionsTableId?: string | null; - sessionCredentialsTableId?: string | null; - auditsTableId?: string | null; - principalsTableName?: string | null; - createPrincipalFunction?: string | null; - deletePrincipalFunction?: string | null; - createOrgPrincipalFunction?: string | null; - deleteOrgPrincipalFunction?: string | null; - createOrgApiKeyFunction?: string | null; - revokeOrgApiKeyFunction?: string | null; - apiName?: string | null; + completedAt?: string | null; + fulfilledAt?: string | null; } -export interface UpdatePrincipalAuthModuleInput { +export interface UpdateDatabaseProvisionModuleInput { clientMutationId?: string; id: string; - principalAuthModulePatch: PrincipalAuthModulePatch; + databaseProvisionModulePatch: DatabaseProvisionModulePatch; } -export interface DeletePrincipalAuthModuleInput { +export interface DeleteDatabaseProvisionModuleInput { clientMutationId?: string; id: string; } -export interface CreateComputeLogModuleInput { +export interface CreateFunctionInvocationModuleInput { clientMutationId?: string; - computeLogModule: { + functionInvocationModule: { databaseId: string; + entityField?: string; schemaId?: string; privateSchemaId?: string; publicSchemaName?: string; privateSchemaName?: string; - computeLogTableId?: string; - computeLogTableName?: string; - usageDailyTableId?: string; - usageDailyTableName?: string; - interval?: string; - retention?: string; - premake?: number; - scope?: string; - actorFkTableId?: string; - entityFkTableId?: string; - prefix?: string; + invocationsTableId?: string; + executionLogsTableId?: string; + invocationsTableName?: string; + executionLogsTableName?: string; apiName?: string; privateApiName?: string; + scope?: string; + prefix?: string; + entityTableId?: string; + policies?: Record; + provisions?: Record; + defaultPermissions?: string[]; }; } -export interface ComputeLogModulePatch { +export interface FunctionInvocationModulePatch { databaseId?: string | null; + entityField?: string | null; schemaId?: string | null; privateSchemaId?: string | null; publicSchemaName?: string | null; privateSchemaName?: string | null; - computeLogTableId?: string | null; - computeLogTableName?: string | null; - usageDailyTableId?: string | null; - usageDailyTableName?: string | null; - interval?: string | null; - retention?: string | null; - premake?: number | null; - scope?: string | null; - actorFkTableId?: string | null; - entityFkTableId?: string | null; - prefix?: string | null; + invocationsTableId?: string | null; + executionLogsTableId?: string | null; + invocationsTableName?: string | null; + executionLogsTableName?: string | null; apiName?: string | null; privateApiName?: string | null; + scope?: string | null; + prefix?: string | null; + entityTableId?: string | null; + policies?: Record | null; + provisions?: Record | null; + defaultPermissions?: string[] | null; } -export interface UpdateComputeLogModuleInput { +export interface UpdateFunctionInvocationModuleInput { clientMutationId?: string; id: string; - computeLogModulePatch: ComputeLogModulePatch; + functionInvocationModulePatch: FunctionInvocationModulePatch; } -export interface DeleteComputeLogModuleInput { +export interface DeleteFunctionInvocationModuleInput { clientMutationId?: string; id: string; } -export interface CreateInferenceLogModuleInput { +export interface CreateInvitesModuleInput { clientMutationId?: string; - inferenceLogModule: { + invitesModule: { databaseId: string; + entityField?: string; schemaId?: string; privateSchemaId?: string; publicSchemaName?: string; privateSchemaName?: string; - inferenceLogTableId?: string; - inferenceLogTableName?: string; - usageDailyTableId?: string; - usageDailyTableName?: string; - interval?: string; - retention?: string; - premake?: number; + emailsTableId?: string; + usersTableId?: string; + invitesTableId?: string; + claimedInvitesTableId?: string; + invitesTableName?: string; + claimedInvitesTableName?: string; + submitInviteCodeFunction?: string; scope?: string; - actorFkTableId?: string; - entityFkTableId?: string; prefix?: string; + entityTableId?: string; apiName?: string; privateApiName?: string; }; } -export interface InferenceLogModulePatch { +export interface InvitesModulePatch { databaseId?: string | null; + entityField?: string | null; schemaId?: string | null; privateSchemaId?: string | null; publicSchemaName?: string | null; privateSchemaName?: string | null; - inferenceLogTableId?: string | null; - inferenceLogTableName?: string | null; - usageDailyTableId?: string | null; - usageDailyTableName?: string | null; - interval?: string | null; - retention?: string | null; - premake?: number | null; + emailsTableId?: string | null; + usersTableId?: string | null; + invitesTableId?: string | null; + claimedInvitesTableId?: string | null; + invitesTableName?: string | null; + claimedInvitesTableName?: string | null; + submitInviteCodeFunction?: string | null; scope?: string | null; - actorFkTableId?: string | null; - entityFkTableId?: string | null; prefix?: string | null; + entityTableId?: string | null; apiName?: string | null; privateApiName?: string | null; } -export interface UpdateInferenceLogModuleInput { +export interface UpdateInvitesModuleInput { clientMutationId?: string; id: string; - inferenceLogModulePatch: InferenceLogModulePatch; + invitesModulePatch: InvitesModulePatch; } -export interface DeleteInferenceLogModuleInput { +export interface DeleteInvitesModuleInput { clientMutationId?: string; id: string; } @@ -9651,6 +10596,7 @@ export interface CreateNamespaceModuleInput { clientMutationId?: string; namespaceModule: { databaseId: string; + entityField?: string; schemaId?: string; privateSchemaId?: string; publicSchemaName?: string; @@ -9664,7 +10610,6 @@ export interface CreateNamespaceModuleInput { scope?: string; prefix?: string; entityTableId?: string; - platformNamespacesTableId?: string; policies?: Record; provisions?: Record; defaultPermissions?: string[]; @@ -9672,6 +10617,7 @@ export interface CreateNamespaceModuleInput { } export interface NamespaceModulePatch { databaseId?: string | null; + entityField?: string | null; schemaId?: string | null; privateSchemaId?: string | null; publicSchemaName?: string | null; @@ -9685,7 +10631,6 @@ export interface NamespaceModulePatch { scope?: string | null; prefix?: string | null; entityTableId?: string | null; - platformNamespacesTableId?: string | null; policies?: Record | null; provisions?: Record | null; defaultPermissions?: string[] | null; @@ -9699,68 +10644,73 @@ export interface DeleteNamespaceModuleInput { clientMutationId?: string; id: string; } -export interface CreateResourceModuleInput { +export interface CreatePlansModuleInput { clientMutationId?: string; - resourceModule: { + plansModule: { databaseId: string; schemaId?: string; privateSchemaId?: string; publicSchemaName?: string; privateSchemaName?: string; - resourcesTableId?: string; - resourceEventsTableId?: string; - resourcesTableName?: string; - resourceEventsTableName?: string; + plansTableId?: string; + plansTableName?: string; + planLimitsTableId?: string; + planLimitsTableName?: string; + planPricingTableId?: string; + planOverridesTableId?: string; + planMeterLimitsTableId?: string; + planCapsTableId?: string; + applyPlanFunction?: string; + applyPlanAggregateFunction?: string; + applyBillingPlanFunction?: string; + applyPlanCapsFunction?: string; + prefix?: string; apiName?: string; privateApiName?: string; - scope?: string; - prefix?: string; - entityTableId?: string; - namespaceModuleId?: string; - policies?: Record; - provisions?: Record; - defaultPermissions?: string[]; }; } -export interface ResourceModulePatch { +export interface PlansModulePatch { databaseId?: string | null; schemaId?: string | null; privateSchemaId?: string | null; publicSchemaName?: string | null; privateSchemaName?: string | null; - resourcesTableId?: string | null; - resourceEventsTableId?: string | null; - resourcesTableName?: string | null; - resourceEventsTableName?: string | null; + plansTableId?: string | null; + plansTableName?: string | null; + planLimitsTableId?: string | null; + planLimitsTableName?: string | null; + planPricingTableId?: string | null; + planOverridesTableId?: string | null; + planMeterLimitsTableId?: string | null; + planCapsTableId?: string | null; + applyPlanFunction?: string | null; + applyPlanAggregateFunction?: string | null; + applyBillingPlanFunction?: string | null; + applyPlanCapsFunction?: string | null; + prefix?: string | null; apiName?: string | null; privateApiName?: string | null; - scope?: string | null; - prefix?: string | null; - entityTableId?: string | null; - namespaceModuleId?: string | null; - policies?: Record | null; - provisions?: Record | null; - defaultPermissions?: string[] | null; } -export interface UpdateResourceModuleInput { +export interface UpdatePlansModuleInput { clientMutationId?: string; id: string; - resourceModulePatch: ResourceModulePatch; + plansModulePatch: PlansModulePatch; } -export interface DeleteResourceModuleInput { +export interface DeletePlansModuleInput { clientMutationId?: string; id: string; } -export interface CreateStorageLogModuleInput { +export interface CreateComputeLogModuleInput { clientMutationId?: string; - storageLogModule: { + computeLogModule: { databaseId: string; + entityField?: string; schemaId?: string; privateSchemaId?: string; publicSchemaName?: string; privateSchemaName?: string; - storageLogTableId?: string; - storageLogTableName?: string; + computeLogTableId?: string; + computeLogTableName?: string; usageDailyTableId?: string; usageDailyTableName?: string; interval?: string; @@ -9774,14 +10724,15 @@ export interface CreateStorageLogModuleInput { privateApiName?: string; }; } -export interface StorageLogModulePatch { +export interface ComputeLogModulePatch { databaseId?: string | null; + entityField?: string | null; schemaId?: string | null; privateSchemaId?: string | null; publicSchemaName?: string | null; privateSchemaName?: string | null; - storageLogTableId?: string | null; - storageLogTableName?: string | null; + computeLogTableId?: string | null; + computeLogTableName?: string | null; usageDailyTableId?: string | null; usageDailyTableName?: string | null; interval?: string | null; @@ -9794,25 +10745,26 @@ export interface StorageLogModulePatch { apiName?: string | null; privateApiName?: string | null; } -export interface UpdateStorageLogModuleInput { +export interface UpdateComputeLogModuleInput { clientMutationId?: string; id: string; - storageLogModulePatch: StorageLogModulePatch; + computeLogModulePatch: ComputeLogModulePatch; } -export interface DeleteStorageLogModuleInput { +export interface DeleteComputeLogModuleInput { clientMutationId?: string; id: string; } -export interface CreateTransferLogModuleInput { +export interface CreateInferenceLogModuleInput { clientMutationId?: string; - transferLogModule: { + inferenceLogModule: { databaseId: string; + entityField?: string; schemaId?: string; privateSchemaId?: string; publicSchemaName?: string; privateSchemaName?: string; - transferLogTableId?: string; - transferLogTableName?: string; + inferenceLogTableId?: string; + inferenceLogTableName?: string; usageDailyTableId?: string; usageDailyTableName?: string; interval?: string; @@ -9826,14 +10778,15 @@ export interface CreateTransferLogModuleInput { privateApiName?: string; }; } -export interface TransferLogModulePatch { +export interface InferenceLogModulePatch { databaseId?: string | null; + entityField?: string | null; schemaId?: string | null; privateSchemaId?: string | null; publicSchemaName?: string | null; privateSchemaName?: string | null; - transferLogTableId?: string | null; - transferLogTableName?: string | null; + inferenceLogTableId?: string | null; + inferenceLogTableName?: string | null; usageDailyTableId?: string | null; usageDailyTableName?: string | null; interval?: string | null; @@ -9846,122 +10799,120 @@ export interface TransferLogModulePatch { apiName?: string | null; privateApiName?: string | null; } -export interface UpdateTransferLogModuleInput { +export interface UpdateInferenceLogModuleInput { clientMutationId?: string; id: string; - transferLogModulePatch: TransferLogModulePatch; + inferenceLogModulePatch: InferenceLogModulePatch; } -export interface DeleteTransferLogModuleInput { +export interface DeleteInferenceLogModuleInput { clientMutationId?: string; id: string; } -export interface CreateFunctionDeploymentModuleInput { +export interface CreateStorageLogModuleInput { clientMutationId?: string; - functionDeploymentModule: { + storageLogModule: { databaseId: string; + entityField?: string; schemaId?: string; privateSchemaId?: string; publicSchemaName?: string; privateSchemaName?: string; - deploymentsTableId?: string; - deploymentEventsTableId?: string; - deploymentsTableName?: string; - deploymentEventsTableName?: string; - apiName?: string; - privateApiName?: string; + storageLogTableId?: string; + storageLogTableName?: string; + usageDailyTableId?: string; + usageDailyTableName?: string; + interval?: string; + retention?: string; + premake?: number; scope?: string; + actorFkTableId?: string; + entityFkTableId?: string; prefix?: string; - entityTableId?: string; - functionModuleId?: string; - namespaceModuleId?: string; - policies?: Record; - provisions?: Record; - defaultPermissions?: string[]; + apiName?: string; + privateApiName?: string; }; } -export interface FunctionDeploymentModulePatch { +export interface StorageLogModulePatch { databaseId?: string | null; + entityField?: string | null; schemaId?: string | null; privateSchemaId?: string | null; publicSchemaName?: string | null; privateSchemaName?: string | null; - deploymentsTableId?: string | null; - deploymentEventsTableId?: string | null; - deploymentsTableName?: string | null; - deploymentEventsTableName?: string | null; - apiName?: string | null; - privateApiName?: string | null; + storageLogTableId?: string | null; + storageLogTableName?: string | null; + usageDailyTableId?: string | null; + usageDailyTableName?: string | null; + interval?: string | null; + retention?: string | null; + premake?: number | null; scope?: string | null; + actorFkTableId?: string | null; + entityFkTableId?: string | null; prefix?: string | null; - entityTableId?: string | null; - functionModuleId?: string | null; - namespaceModuleId?: string | null; - policies?: Record | null; - provisions?: Record | null; - defaultPermissions?: string[] | null; + apiName?: string | null; + privateApiName?: string | null; } -export interface UpdateFunctionDeploymentModuleInput { +export interface UpdateStorageLogModuleInput { clientMutationId?: string; id: string; - functionDeploymentModulePatch: FunctionDeploymentModulePatch; + storageLogModulePatch: StorageLogModulePatch; } -export interface DeleteFunctionDeploymentModuleInput { +export interface DeleteStorageLogModuleInput { clientMutationId?: string; id: string; } -export interface CreatePlansModuleInput { +export interface CreateTransferLogModuleInput { clientMutationId?: string; - plansModule: { + transferLogModule: { databaseId: string; + entityField?: string; schemaId?: string; privateSchemaId?: string; publicSchemaName?: string; privateSchemaName?: string; - plansTableId?: string; - plansTableName?: string; - planLimitsTableId?: string; - planLimitsTableName?: string; - planPricingTableId?: string; - planOverridesTableId?: string; - planMeterLimitsTableId?: string; - planCapsTableId?: string; - applyPlanFunction?: string; - applyPlanAggregateFunction?: string; - applyBillingPlanFunction?: string; - applyPlanCapsFunction?: string; + transferLogTableId?: string; + transferLogTableName?: string; + usageDailyTableId?: string; + usageDailyTableName?: string; + interval?: string; + retention?: string; + premake?: number; + scope?: string; + actorFkTableId?: string; + entityFkTableId?: string; prefix?: string; apiName?: string; privateApiName?: string; }; } -export interface PlansModulePatch { +export interface TransferLogModulePatch { databaseId?: string | null; + entityField?: string | null; schemaId?: string | null; privateSchemaId?: string | null; publicSchemaName?: string | null; privateSchemaName?: string | null; - plansTableId?: string | null; - plansTableName?: string | null; - planLimitsTableId?: string | null; - planLimitsTableName?: string | null; - planPricingTableId?: string | null; - planOverridesTableId?: string | null; - planMeterLimitsTableId?: string | null; - planCapsTableId?: string | null; - applyPlanFunction?: string | null; - applyPlanAggregateFunction?: string | null; - applyBillingPlanFunction?: string | null; - applyPlanCapsFunction?: string | null; + transferLogTableId?: string | null; + transferLogTableName?: string | null; + usageDailyTableId?: string | null; + usageDailyTableName?: string | null; + interval?: string | null; + retention?: string | null; + premake?: number | null; + scope?: string | null; + actorFkTableId?: string | null; + entityFkTableId?: string | null; prefix?: string | null; apiName?: string | null; privateApiName?: string | null; } -export interface UpdatePlansModuleInput { +export interface UpdateTransferLogModuleInput { clientMutationId?: string; id: string; - plansModulePatch: PlansModulePatch; + transferLogModulePatch: TransferLogModulePatch; } -export interface DeletePlansModuleInput { +export interface DeleteTransferLogModuleInput { clientMutationId?: string; id: string; } @@ -10023,61 +10974,117 @@ export interface DeleteBillingProviderModuleInput { clientMutationId?: string; id: string; } -export interface CreateDbUsageModuleInput { +export interface CreateFunctionDeploymentModuleInput { clientMutationId?: string; - dbUsageModule: { + functionDeploymentModule: { databaseId: string; + entityField?: string; schemaId?: string; privateSchemaId?: string; publicSchemaName?: string; privateSchemaName?: string; - tableStatsLogTableId?: string; - tableStatsLogTableName?: string; - tableStatsDailyTableId?: string; - tableStatsDailyTableName?: string; - queryStatsLogTableId?: string; - queryStatsLogTableName?: string; - queryStatsDailyTableId?: string; - queryStatsDailyTableName?: string; - interval?: string; - retention?: string; - premake?: number; + deploymentsTableId?: string; + deploymentEventsTableId?: string; + deploymentsTableName?: string; + deploymentEventsTableName?: string; + apiName?: string; + privateApiName?: string; scope?: string; prefix?: string; + entityTableId?: string; + functionModuleId?: string; + namespaceModuleId?: string; + policies?: Record; + provisions?: Record; defaultPermissions?: string[]; + }; +} +export interface FunctionDeploymentModulePatch { + databaseId?: string | null; + entityField?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + publicSchemaName?: string | null; + privateSchemaName?: string | null; + deploymentsTableId?: string | null; + deploymentEventsTableId?: string | null; + deploymentsTableName?: string | null; + deploymentEventsTableName?: string | null; + apiName?: string | null; + privateApiName?: string | null; + scope?: string | null; + prefix?: string | null; + entityTableId?: string | null; + functionModuleId?: string | null; + namespaceModuleId?: string | null; + policies?: Record | null; + provisions?: Record | null; + defaultPermissions?: string[] | null; +} +export interface UpdateFunctionDeploymentModuleInput { + clientMutationId?: string; + id: string; + functionDeploymentModulePatch: FunctionDeploymentModulePatch; +} +export interface DeleteFunctionDeploymentModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreatePermissionsModuleInput { + clientMutationId?: string; + permissionsModule: { + databaseId: string; + entityField?: string; + schemaId?: string; + privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + tableId?: string; + tableName?: string; + defaultTableId?: string; + defaultTableName?: string; + bitlen?: number; + scope?: string; + prefix?: string; + entityTableId?: string; + actorTableId?: string; + getPaddedMask?: string; + getMask?: string; + getByMask?: string; + getMaskByName?: string; apiName?: string; privateApiName?: string; }; } -export interface DbUsageModulePatch { +export interface PermissionsModulePatch { databaseId?: string | null; + entityField?: string | null; schemaId?: string | null; privateSchemaId?: string | null; publicSchemaName?: string | null; privateSchemaName?: string | null; - tableStatsLogTableId?: string | null; - tableStatsLogTableName?: string | null; - tableStatsDailyTableId?: string | null; - tableStatsDailyTableName?: string | null; - queryStatsLogTableId?: string | null; - queryStatsLogTableName?: string | null; - queryStatsDailyTableId?: string | null; - queryStatsDailyTableName?: string | null; - interval?: string | null; - retention?: string | null; - premake?: number | null; + tableId?: string | null; + tableName?: string | null; + defaultTableId?: string | null; + defaultTableName?: string | null; + bitlen?: number | null; scope?: string | null; prefix?: string | null; - defaultPermissions?: string[] | null; + entityTableId?: string | null; + actorTableId?: string | null; + getPaddedMask?: string | null; + getMask?: string | null; + getByMask?: string | null; + getMaskByName?: string | null; apiName?: string | null; privateApiName?: string | null; } -export interface UpdateDbUsageModuleInput { +export interface UpdatePermissionsModuleInput { clientMutationId?: string; id: string; - dbUsageModulePatch: DbUsageModulePatch; + permissionsModulePatch: PermissionsModulePatch; } -export interface DeleteDbUsageModuleInput { +export interface DeletePermissionsModuleInput { clientMutationId?: string; id: string; } @@ -10085,6 +11092,7 @@ export interface CreateGraphExecutionModuleInput { clientMutationId?: string; graphExecutionModule: { databaseId: string; + entityField?: string; schemaId?: string; privateSchemaId?: string; publicSchemaName?: string; @@ -10108,6 +11116,7 @@ export interface CreateGraphExecutionModuleInput { } export interface GraphExecutionModulePatch { databaseId?: string | null; + entityField?: string | null; schemaId?: string | null; privateSchemaId?: string | null; publicSchemaName?: string | null; @@ -10141,6 +11150,7 @@ export interface CreateHierarchyModuleInput { clientMutationId?: string; hierarchyModule: { databaseId: string; + entityField?: string; schemaId?: string; privateSchemaId?: string; chartEdgesTableId?: string; @@ -10164,6 +11174,7 @@ export interface CreateHierarchyModuleInput { } export interface HierarchyModulePatch { databaseId?: string | null; + entityField?: string | null; schemaId?: string | null; privateSchemaId?: string | null; chartEdgesTableId?: string | null; @@ -10193,66 +11204,11 @@ export interface DeleteHierarchyModuleInput { clientMutationId?: string; id: string; } -export interface CreatePermissionsModuleInput { - clientMutationId?: string; - permissionsModule: { - databaseId: string; - schemaId?: string; - privateSchemaId?: string; - publicSchemaName?: string; - privateSchemaName?: string; - tableId?: string; - tableName?: string; - defaultTableId?: string; - defaultTableName?: string; - bitlen?: number; - scope?: string; - prefix?: string; - entityTableId?: string; - actorTableId?: string; - getPaddedMask?: string; - getMask?: string; - getByMask?: string; - getMaskByName?: string; - apiName?: string; - privateApiName?: string; - }; -} -export interface PermissionsModulePatch { - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - publicSchemaName?: string | null; - privateSchemaName?: string | null; - tableId?: string | null; - tableName?: string | null; - defaultTableId?: string | null; - defaultTableName?: string | null; - bitlen?: number | null; - scope?: string | null; - prefix?: string | null; - entityTableId?: string | null; - actorTableId?: string | null; - getPaddedMask?: string | null; - getMask?: string | null; - getByMask?: string | null; - getMaskByName?: string | null; - apiName?: string | null; - privateApiName?: string | null; -} -export interface UpdatePermissionsModuleInput { - clientMutationId?: string; - id: string; - permissionsModulePatch: PermissionsModulePatch; -} -export interface DeletePermissionsModuleInput { - clientMutationId?: string; - id: string; -} export interface CreateNotificationsModuleInput { clientMutationId?: string; notificationsModule: { databaseId: string; + entityField?: string; schemaId?: string; privateSchemaId?: string; publicSchemaName?: string; @@ -10278,6 +11234,7 @@ export interface CreateNotificationsModuleInput { } export interface NotificationsModulePatch { databaseId?: string | null; + entityField?: string | null; schemaId?: string | null; privateSchemaId?: string | null; publicSchemaName?: string | null; @@ -10309,10 +11266,73 @@ export interface DeleteNotificationsModuleInput { clientMutationId?: string; id: string; } +export interface CreateRelationProvisionInput { + clientMutationId?: string; + relationProvision: { + databaseId: string; + relationType: string; + sourceTableId: string; + targetTableId: string; + fieldName?: string; + deleteAction?: string; + isRequired?: boolean; + apiRequired?: boolean; + junctionTableId?: string; + junctionTableName?: string; + junctionSchemaId?: string; + sourceFieldName?: string; + targetFieldName?: string; + useCompositeKey?: boolean; + createIndex?: boolean; + exposeInApi?: boolean; + nodes?: Record; + grants?: Record; + policies?: Record; + outFieldId?: string; + outJunctionTableId?: string; + outSourceFieldId?: string; + outTargetFieldId?: string; + }; +} +export interface RelationProvisionPatch { + databaseId?: string | null; + relationType?: string | null; + sourceTableId?: string | null; + targetTableId?: string | null; + fieldName?: string | null; + deleteAction?: string | null; + isRequired?: boolean | null; + apiRequired?: boolean | null; + junctionTableId?: string | null; + junctionTableName?: string | null; + junctionSchemaId?: string | null; + sourceFieldName?: string | null; + targetFieldName?: string | null; + useCompositeKey?: boolean | null; + createIndex?: boolean | null; + exposeInApi?: boolean | null; + nodes?: Record | null; + grants?: Record | null; + policies?: Record | null; + outFieldId?: string | null; + outJunctionTableId?: string | null; + outSourceFieldId?: string | null; + outTargetFieldId?: string | null; +} +export interface UpdateRelationProvisionInput { + clientMutationId?: string; + id: string; + relationProvisionPatch: RelationProvisionPatch; +} +export interface DeleteRelationProvisionInput { + clientMutationId?: string; + id: string; +} export interface CreateProfilesModuleInput { clientMutationId?: string; profilesModule: { databaseId: string; + entityField?: string; schemaId?: string; privateSchemaId?: string; publicSchemaName?: string; @@ -10339,6 +11359,7 @@ export interface CreateProfilesModuleInput { } export interface ProfilesModulePatch { databaseId?: string | null; + entityField?: string | null; schemaId?: string | null; privateSchemaId?: string | null; publicSchemaName?: string | null; @@ -10394,6 +11415,8 @@ export interface CreateBillingModuleInput { meterDefaultsTableId?: string; meterDefaultsTableName?: string; recordUsageFunction?: string; + sweepExpiredSubscriptionsFunction?: string; + rollupUsageSummaryFunction?: string; prefix?: string; defaultPermissions?: string[]; apiName?: string; @@ -10421,6 +11444,8 @@ export interface BillingModulePatch { meterDefaultsTableId?: string | null; meterDefaultsTableName?: string | null; recordUsageFunction?: string | null; + sweepExpiredSubscriptionsFunction?: string | null; + rollupUsageSummaryFunction?: string | null; prefix?: string | null; defaultPermissions?: string[] | null; apiName?: string | null; @@ -10435,65 +11460,69 @@ export interface DeleteBillingModuleInput { clientMutationId?: string; id: string; } -export interface CreateRelationProvisionInput { +export interface CreateResourceModuleInput { clientMutationId?: string; - relationProvision: { + resourceModule: { databaseId: string; - relationType: string; - sourceTableId: string; - targetTableId: string; - fieldName?: string; - deleteAction?: string; - isRequired?: boolean; - apiRequired?: boolean; - junctionTableId?: string; - junctionTableName?: string; - junctionSchemaId?: string; - sourceFieldName?: string; - targetFieldName?: string; - useCompositeKey?: boolean; - createIndex?: boolean; - exposeInApi?: boolean; - nodes?: Record; - grants?: Record; + entityField?: string; + schemaId?: string; + privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + resourcesTableId?: string; + resourceEventsTableId?: string; + resourceStatusChecksTableId?: string; + resourceDefinitionsTableId?: string; + resourcesTableName?: string; + resourceEventsTableName?: string; + resourceStatusChecksTableName?: string; + resourceDefinitionsTableName?: string; + resolvedRequirementsViewName?: string; + requirementsStateViewName?: string; + apiName?: string; + privateApiName?: string; + scope?: string; + prefix?: string; + entityTableId?: string; + namespaceModuleId?: string; policies?: Record; - outFieldId?: string; - outJunctionTableId?: string; - outSourceFieldId?: string; - outTargetFieldId?: string; + provisions?: Record; + defaultPermissions?: string[]; }; } -export interface RelationProvisionPatch { +export interface ResourceModulePatch { databaseId?: string | null; - relationType?: string | null; - sourceTableId?: string | null; - targetTableId?: string | null; - fieldName?: string | null; - deleteAction?: string | null; - isRequired?: boolean | null; - apiRequired?: boolean | null; - junctionTableId?: string | null; - junctionTableName?: string | null; - junctionSchemaId?: string | null; - sourceFieldName?: string | null; - targetFieldName?: string | null; - useCompositeKey?: boolean | null; - createIndex?: boolean | null; - exposeInApi?: boolean | null; - nodes?: Record | null; - grants?: Record | null; + entityField?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + publicSchemaName?: string | null; + privateSchemaName?: string | null; + resourcesTableId?: string | null; + resourceEventsTableId?: string | null; + resourceStatusChecksTableId?: string | null; + resourceDefinitionsTableId?: string | null; + resourcesTableName?: string | null; + resourceEventsTableName?: string | null; + resourceStatusChecksTableName?: string | null; + resourceDefinitionsTableName?: string | null; + resolvedRequirementsViewName?: string | null; + requirementsStateViewName?: string | null; + apiName?: string | null; + privateApiName?: string | null; + scope?: string | null; + prefix?: string | null; + entityTableId?: string | null; + namespaceModuleId?: string | null; policies?: Record | null; - outFieldId?: string | null; - outJunctionTableId?: string | null; - outSourceFieldId?: string | null; - outTargetFieldId?: string | null; + provisions?: Record | null; + defaultPermissions?: string[] | null; } -export interface UpdateRelationProvisionInput { +export interface UpdateResourceModuleInput { clientMutationId?: string; id: string; - relationProvisionPatch: RelationProvisionPatch; + resourceModulePatch: ResourceModulePatch; } -export interface DeleteRelationProvisionInput { +export interface DeleteResourceModuleInput { clientMutationId?: string; id: string; } @@ -10558,12 +11587,80 @@ export interface UserAuthModulePatch { apiName?: string | null; privateApiName?: string | null; } -export interface UpdateUserAuthModuleInput { +export interface UpdateUserAuthModuleInput { + clientMutationId?: string; + id: string; + userAuthModulePatch: UserAuthModulePatch; +} +export interface DeleteUserAuthModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateDbUsageModuleInput { + clientMutationId?: string; + dbUsageModule: { + databaseId: string; + entityField?: string; + schemaId?: string; + privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + tableStatsLogTableId?: string; + tableStatsLogTableName?: string; + tableStatsDailyTableId?: string; + tableStatsDailyTableName?: string; + queryStatsLogTableId?: string; + queryStatsLogTableName?: string; + queryStatsDailyTableId?: string; + queryStatsDailyTableName?: string; + collectDbTableStatsFunction?: string; + collectDbQueryStatsFunction?: string; + rollupDbTableStatsDailyFunction?: string; + rollupDbQueryStatsDailyFunction?: string; + interval?: string; + retention?: string; + premake?: number; + scope?: string; + prefix?: string; + defaultPermissions?: string[]; + apiName?: string; + privateApiName?: string; + }; +} +export interface DbUsageModulePatch { + databaseId?: string | null; + entityField?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + publicSchemaName?: string | null; + privateSchemaName?: string | null; + tableStatsLogTableId?: string | null; + tableStatsLogTableName?: string | null; + tableStatsDailyTableId?: string | null; + tableStatsDailyTableName?: string | null; + queryStatsLogTableId?: string | null; + queryStatsLogTableName?: string | null; + queryStatsDailyTableId?: string | null; + queryStatsDailyTableName?: string | null; + collectDbTableStatsFunction?: string | null; + collectDbQueryStatsFunction?: string | null; + rollupDbTableStatsDailyFunction?: string | null; + rollupDbQueryStatsDailyFunction?: string | null; + interval?: string | null; + retention?: string | null; + premake?: number | null; + scope?: string | null; + prefix?: string | null; + defaultPermissions?: string[] | null; + apiName?: string | null; + privateApiName?: string | null; +} +export interface UpdateDbUsageModuleInput { clientMutationId?: string; id: string; - userAuthModulePatch: UserAuthModulePatch; + dbUsageModulePatch: DbUsageModulePatch; } -export interface DeleteUserAuthModuleInput { +export interface DeleteDbUsageModuleInput { clientMutationId?: string; id: string; } @@ -10571,6 +11668,7 @@ export interface CreateAgentModuleInput { clientMutationId?: string; agentModule: { databaseId: string; + entityField?: string; schemaId?: string; privateSchemaId?: string; publicSchemaName?: string; @@ -10608,6 +11706,7 @@ export interface CreateAgentModuleInput { } export interface AgentModulePatch { databaseId?: string | null; + entityField?: string | null; schemaId?: string | null; privateSchemaId?: string | null; publicSchemaName?: string | null; @@ -10655,6 +11754,7 @@ export interface CreateLimitsModuleInput { clientMutationId?: string; limitsModule: { databaseId: string; + entityField?: string; schemaId?: string; privateSchemaId?: string; publicSchemaName?: string; @@ -10693,6 +11793,7 @@ export interface CreateLimitsModuleInput { } export interface LimitsModulePatch { databaseId?: string | null; + entityField?: string | null; schemaId?: string | null; privateSchemaId?: string | null; publicSchemaName?: string | null; @@ -10737,102 +11838,6 @@ export interface DeleteLimitsModuleInput { clientMutationId?: string; id: string; } -export interface CreateMembershipsModuleInput { - clientMutationId?: string; - membershipsModule: { - databaseId: string; - schemaId?: string; - privateSchemaId?: string; - publicSchemaName?: string; - privateSchemaName?: string; - membershipsTableId?: string; - membershipsTableName?: string; - membersTableId?: string; - membersTableName?: string; - membershipDefaultsTableId?: string; - membershipDefaultsTableName?: string; - membershipSettingsTableId?: string; - membershipSettingsTableName?: string; - grantsTableId?: string; - grantsTableName?: string; - actorTableId?: string; - limitsTableId?: string; - defaultLimitsTableId?: string; - permissionsTableId?: string; - defaultPermissionsTableId?: string; - sprtTableId?: string; - adminGrantsTableId?: string; - adminGrantsTableName?: string; - ownerGrantsTableId?: string; - ownerGrantsTableName?: string; - scope?: string; - prefix?: string; - entityTableId?: string; - entityTableOwnerId?: string; - getOrgFn?: string; - actorMaskCheck?: string; - actorPermCheck?: string; - entityIdsByMask?: string; - entityIdsByPerm?: string; - entityIdsFunction?: string; - memberProfilesTableId?: string; - permissionDefaultPermissionsTableId?: string; - permissionDefaultGrantsTableId?: string; - apiName?: string; - privateApiName?: string; - }; -} -export interface MembershipsModulePatch { - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - publicSchemaName?: string | null; - privateSchemaName?: string | null; - membershipsTableId?: string | null; - membershipsTableName?: string | null; - membersTableId?: string | null; - membersTableName?: string | null; - membershipDefaultsTableId?: string | null; - membershipDefaultsTableName?: string | null; - membershipSettingsTableId?: string | null; - membershipSettingsTableName?: string | null; - grantsTableId?: string | null; - grantsTableName?: string | null; - actorTableId?: string | null; - limitsTableId?: string | null; - defaultLimitsTableId?: string | null; - permissionsTableId?: string | null; - defaultPermissionsTableId?: string | null; - sprtTableId?: string | null; - adminGrantsTableId?: string | null; - adminGrantsTableName?: string | null; - ownerGrantsTableId?: string | null; - ownerGrantsTableName?: string | null; - scope?: string | null; - prefix?: string | null; - entityTableId?: string | null; - entityTableOwnerId?: string | null; - getOrgFn?: string | null; - actorMaskCheck?: string | null; - actorPermCheck?: string | null; - entityIdsByMask?: string | null; - entityIdsByPerm?: string | null; - entityIdsFunction?: string | null; - memberProfilesTableId?: string | null; - permissionDefaultPermissionsTableId?: string | null; - permissionDefaultGrantsTableId?: string | null; - apiName?: string | null; - privateApiName?: string | null; -} -export interface UpdateMembershipsModuleInput { - clientMutationId?: string; - id: string; - membershipsModulePatch: MembershipsModulePatch; -} -export interface DeleteMembershipsModuleInput { - clientMutationId?: string; - id: string; -} export interface CreateEntityTypeProvisionInput { clientMutationId?: string; entityTypeProvision: { @@ -10871,7 +11876,6 @@ export interface CreateEntityTypeProvisionInput { outDefinitionsTableId?: string; outInvocationsTableId?: string; outExecutionLogsTableId?: string; - outSecretDefinitionsTableId?: string; outGraphModuleId?: string; outGraphsTableId?: string; outAgentModuleId?: string; @@ -10913,7 +11917,6 @@ export interface EntityTypeProvisionPatch { outDefinitionsTableId?: string | null; outInvocationsTableId?: string | null; outExecutionLogsTableId?: string | null; - outSecretDefinitionsTableId?: string | null; outGraphModuleId?: string | null; outGraphsTableId?: string | null; outAgentModuleId?: string | null; @@ -10944,6 +11947,7 @@ export interface CreateStorageModuleInput { policies?: Record; provisions?: Record; entityTableId?: string; + entityField?: string; endpoint?: string; publicUrlPrefix?: string; provider?: string; @@ -10985,6 +11989,7 @@ export interface StorageModulePatch { policies?: Record | null; provisions?: Record | null; entityTableId?: string | null; + entityField?: string | null; endpoint?: string | null; publicUrlPrefix?: string | null; provider?: string | null; @@ -11019,10 +12024,109 @@ export interface DeleteStorageModuleInput { clientMutationId?: string; id: string; } +export interface CreateMembershipsModuleInput { + clientMutationId?: string; + membershipsModule: { + databaseId: string; + entityField?: string; + schemaId?: string; + privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + membershipsTableId?: string; + membershipsTableName?: string; + membersTableId?: string; + membersTableName?: string; + membershipDefaultsTableId?: string; + membershipDefaultsTableName?: string; + membershipSettingsTableId?: string; + membershipSettingsTableName?: string; + grantsTableId?: string; + grantsTableName?: string; + actorTableId?: string; + limitsTableId?: string; + defaultLimitsTableId?: string; + permissionsTableId?: string; + defaultPermissionsTableId?: string; + sprtTableId?: string; + adminGrantsTableId?: string; + adminGrantsTableName?: string; + ownerGrantsTableId?: string; + ownerGrantsTableName?: string; + scope?: string; + prefix?: string; + entityTableId?: string; + entityTableOwnerId?: string; + getOrgFn?: string; + actorMaskCheck?: string; + actorPermCheck?: string; + entityIdsByMask?: string; + entityIdsByPerm?: string; + entityIdsFunction?: string; + memberProfilesTableId?: string; + permissionDefaultPermissionsTableId?: string; + permissionDefaultGrantsTableId?: string; + apiName?: string; + privateApiName?: string; + }; +} +export interface MembershipsModulePatch { + databaseId?: string | null; + entityField?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + publicSchemaName?: string | null; + privateSchemaName?: string | null; + membershipsTableId?: string | null; + membershipsTableName?: string | null; + membersTableId?: string | null; + membersTableName?: string | null; + membershipDefaultsTableId?: string | null; + membershipDefaultsTableName?: string | null; + membershipSettingsTableId?: string | null; + membershipSettingsTableName?: string | null; + grantsTableId?: string | null; + grantsTableName?: string | null; + actorTableId?: string | null; + limitsTableId?: string | null; + defaultLimitsTableId?: string | null; + permissionsTableId?: string | null; + defaultPermissionsTableId?: string | null; + sprtTableId?: string | null; + adminGrantsTableId?: string | null; + adminGrantsTableName?: string | null; + ownerGrantsTableId?: string | null; + ownerGrantsTableName?: string | null; + scope?: string | null; + prefix?: string | null; + entityTableId?: string | null; + entityTableOwnerId?: string | null; + getOrgFn?: string | null; + actorMaskCheck?: string | null; + actorPermCheck?: string | null; + entityIdsByMask?: string | null; + entityIdsByPerm?: string | null; + entityIdsFunction?: string | null; + memberProfilesTableId?: string | null; + permissionDefaultPermissionsTableId?: string | null; + permissionDefaultGrantsTableId?: string | null; + apiName?: string | null; + privateApiName?: string | null; +} +export interface UpdateMembershipsModuleInput { + clientMutationId?: string; + id: string; + membershipsModulePatch: MembershipsModulePatch; +} +export interface DeleteMembershipsModuleInput { + clientMutationId?: string; + id: string; +} export interface CreateEventsModuleInput { clientMutationId?: string; eventsModule: { databaseId: string; + entityField?: string; schemaId?: string; privateSchemaId?: string; publicSchemaName?: string; @@ -11049,7 +12153,6 @@ export interface CreateEventsModuleInput { tgEventBool?: string; upsertAggregate?: string; tgUpdateAggregates?: string; - pruneEvents?: string; stepsRequired?: string; levelAchieved?: string; tgCheckAchievements?: string; @@ -11069,6 +12172,7 @@ export interface CreateEventsModuleInput { } export interface EventsModulePatch { databaseId?: string | null; + entityField?: string | null; schemaId?: string | null; privateSchemaId?: string | null; publicSchemaName?: string | null; @@ -11095,7 +12199,6 @@ export interface EventsModulePatch { tgEventBool?: string | null; upsertAggregate?: string | null; tgUpdateAggregates?: string | null; - pruneEvents?: string | null; stepsRequired?: string | null; levelAchieved?: string | null; tgCheckAchievements?: string | null; @@ -11132,6 +12235,7 @@ export const connectionFieldsMap = { }, MerkleStoreModule: { graphModules: 'GraphModule', + dbPresetModules: 'DbPresetModule', }, } as Record>; // ============ Custom Input Types (from schema) ============ @@ -11330,6 +12434,15 @@ export interface MerkleStoreModuleToManyGraphModuleFilter { /** Filters to entities where no related entity matches. */ none?: GraphModuleFilter; } +/** 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 at least one related entity matches. */ + some?: DbPresetModuleFilter; + /** Filters to entities where every related entity matches. */ + every?: DbPresetModuleFilter; + /** Filters to entities where no related entity matches. */ + none?: DbPresetModuleFilter; +} /** An input for mutations affecting `DefaultIdsModule` */ export interface DefaultIdsModuleInput { id?: string; @@ -11341,35 +12454,17 @@ export interface MembershipTypesModuleInput { databaseId: string; schemaId?: string; tableId?: string; - tableName?: string; -} -/** An input for mutations affecting `UserStateModule` */ -export interface UserStateModuleInput { - id?: string; - databaseId: string; - schemaId?: string; - tableId?: string; - tableName?: string; -} -/** An input for mutations affecting `SessionSecretsModule` */ -export interface SessionSecretsModuleInput { - id?: string; - databaseId: string; - schemaId?: string; - tableId?: string; - tableName?: string; - /** Resolved reference to sessions_module.sessions_table, used to FK session_secrets.session_id with ON DELETE CASCADE. */ - sessionsTableId?: string; + tableName?: string; } -/** An input for mutations affecting `ConfigSecretsOrgModule` */ -export interface ConfigSecretsOrgModuleInput { +/** An input for mutations affecting `SessionSecretsModule` */ +export interface SessionSecretsModuleInput { id?: string; databaseId: string; schemaId?: string; tableId?: string; tableName?: string; - apiName?: string; - privateApiName?: string; + /** Resolved reference to sessions_module.sessions_table, used to FK session_secrets.session_id with ON DELETE CASCADE. */ + sessionsTableId?: string; } /** An input for mutations affecting `DevicesModule` */ export interface DevicesModuleInput { @@ -11391,35 +12486,33 @@ export interface I18NModuleInput { apiName?: string; privateApiName?: string; } -/** An input for mutations affecting `UserCredentialsModule` */ -export interface UserCredentialsModuleInput { +/** An input for mutations affecting `UserSettingsModule` */ +export interface UserSettingsModuleInput { id?: string; databaseId: string; schemaId?: string; tableId?: string; + ownerTableId?: string; tableName?: string; apiName?: string; - privateApiName?: string; } -/** An input for mutations affecting `UserSettingsModule` */ -export interface UserSettingsModuleInput { +/** An input for mutations affecting `UserStateModule` */ +export interface UserStateModuleInput { id?: string; databaseId: string; + entityField?: string; schemaId?: string; tableId?: string; - ownerTableId?: string; tableName?: string; - apiName?: string; } -/** An input for mutations affecting `ConfigSecretsUserModule` */ -export interface ConfigSecretsUserModuleInput { +/** An input for mutations affecting `UserCredentialsModule` */ +export interface UserCredentialsModuleInput { id?: string; databaseId: string; + entityField?: string; schemaId?: string; tableId?: string; tableName?: string; - configDefinitionsTableId?: string; - apiName?: string; privateApiName?: string; } /** An input for mutations affecting `ConnectedAccountsModule` */ @@ -11495,6 +12588,17 @@ export interface WebauthnCredentialsModuleInput { apiName?: string; privateApiName?: string; } +/** An input for mutations affecting `ConfigSecretsUserModule` */ +export interface ConfigSecretsUserModuleInput { + id?: string; + databaseId: string; + entityField?: string; + schemaId?: string; + tableId?: string; + tableName?: string; + apiName?: string; + privateApiName?: string; +} /** An input for mutations affecting `CryptoAddressesModule` */ export interface CryptoAddressesModuleInput { id?: string; @@ -11523,23 +12627,6 @@ export interface DenormalizedTableFieldInput { funcName?: string; funcOrder?: number; } -/** An input for mutations affecting `IdentityProvidersModule` */ -export interface IdentityProvidersModuleInput { - id?: string; - databaseId: string; - schemaId?: string; - /** Private schema that hosts SECURITY DEFINER admin helpers which write to identity_providers (create / update / enable / disable / rotate-secret / delete) and the per-app quota check. */ - privateSchemaId?: string; - publicSchemaName?: string; - privateSchemaName?: string; - tableId?: string; - tableName?: string; - apiName?: string; - privateApiName?: string; - scope?: string; - prefix?: string; - entityTableId?: string; -} /** An input for mutations affecting `RlsModule` */ export interface RlsModuleInput { id?: string; @@ -11726,90 +12813,155 @@ export interface SecureTableProvisionInput { /** 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[]; } -/** An input for mutations affecting `DatabaseProvisionModule` */ -export interface DatabaseProvisionModuleInput { +/** An input for mutations affecting `IdentityProvidersModule` */ +export interface IdentityProvidersModuleInput { id?: string; - /** The name for the new database */ - databaseName: string; - /** UUID of the user who owns this database */ - ownerId: string; - /** Subdomain prefix for the database. If null, auto-generated using unique_names + random chars */ - subdomain?: string; - /** Base domain for the database (e.g., example.com) */ + databaseId: string; + entityField?: string; + schemaId?: string; + /** Private schema that hosts SECURITY DEFINER admin helpers which write to identity_providers (create / update / enable / disable / rotate-secret / delete) and the per-app quota check. */ + privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + tableId?: string; + tableName?: string; + apiName?: string; + privateApiName?: string; + scope?: string; + prefix?: string; + entityTableId?: string; +} +/** An input for mutations affecting `IntegrationProvidersModule` */ +export interface IntegrationProvidersModuleInput { + id?: string; + databaseId: string; + entityField?: string; + schemaId?: string; + privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + tableId?: string; + tableName?: string; + apiName?: string; + privateApiName?: string; + scope?: string; + prefix?: string; + entityTableId?: string; +} +/** An input for mutations affecting `DbPoolConfig` */ +export interface DbPoolConfigInput { + id?: string; + /** Slug of the db_presets catalog row this pool serves */ + presetSlug: string; + /** Base domain used when provisioning warm databases */ domain: string; - /** JSONB array of modules to install. Each element is either a string ("users_module") or a [name, options] tuple (["permissions_module", {"scope": "app"}]) */ - modules?: Record; - /** Additional configuration options for provisioning */ - options?: Record; - /** When true, copies the owner user and password hash from source database to the newly provisioned database */ - bootstrapUser?: boolean; - /** Current status: pending, in_progress, completed, or failed */ - status?: string; - errorMessage?: string; - /** The ID of the provisioned database (set by trigger before RLS check) */ - databaseId?: string; + /** Platform pool service org that owns warm databases until they are claimed */ + poolOwnerId: string; + /** Minimum number of ready warm databases the reconciler maintains */ + min?: number; + /** Maximum number of warming + ready databases the reconciler will keep */ + max?: number; + /** How long a ready warm database stays claimable before it expires */ + warmTtl?: IntervalInput; + /** When false the reconciler stops warming and the claim path falls through to cold provisioning */ + enabled?: boolean; createdAt?: string; updatedAt?: string; - completedAt?: string; } -/** An input for mutations affecting `ConfigSecretsModule` */ -export interface ConfigSecretsModuleInput { +/** An input for mutations affecting `RealtimeModule` */ +export interface RealtimeModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + subscriptionsSchemaId?: string; + changeLogTableId?: string; + listenerNodeTableId?: string; + sourceRegistryTableId?: string; + retentionHours?: number; + premake?: number; + interval?: string; + notifyChannel?: string; + apiName?: string; + privateApiName?: string; +} +/** An input for mutations affecting `InfraSecretsModule` */ +export interface InfraSecretsModuleInput { id?: string; databaseId: string; schemaId?: string; privateSchemaId?: string; publicSchemaName?: string; privateSchemaName?: string; - tableId?: string; - configDefinitionsTableId?: string; - tableName?: string; + secretsTableId?: string; + secretsTableName?: string; apiName?: string; privateApiName?: string; scope?: string; prefix?: string; entityTableId?: string; + entityField?: string; policies?: Record; provisions?: Record; - hasConfig?: boolean; } -/** An input for mutations affecting `GraphModule` */ -export interface GraphModuleInput { +/** An input for mutations affecting `InternalSecretsModule` */ +export interface InternalSecretsModuleInput { id?: string; databaseId: string; - publicSchemaId?: string; + schemaId?: string; privateSchemaId?: string; publicSchemaName?: string; privateSchemaName?: string; + internalSecretsTableId?: string; + internalSecretsTableName?: string; + apiName?: string; + privateApiName?: string; scope?: string; prefix?: string; + entityTableId?: string; + entityField?: string; + policies?: Record; + provisions?: Record; +} +/** An input for mutations affecting `DbPresetModule` */ +export interface DbPresetModuleInput { + id?: string; + databaseId: string; + publicSchemaId?: string; + privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + scope: string; + prefix: string; merkleStoreModuleId: string; - graphsTableId?: string; + dbPresetsTableId?: string; + storeName: string; apiName?: string; privateApiName?: string; entityTableId?: string; policies?: Record; provisions?: Record; - defaultPermissions?: string[]; createdAt?: string; } -/** An input for mutations affecting `MerkleStoreModule` */ -export interface MerkleStoreModuleInput { +/** An input for mutations affecting `GraphModule` */ +export interface GraphModuleInput { id?: string; databaseId: string; - schemaId?: string; + entityField?: string; + publicSchemaId?: string; privateSchemaId?: string; publicSchemaName?: string; privateSchemaName?: string; - objectTableId?: string; - storeTableId?: string; - commitTableId?: string; - refTableId?: string; + scope?: string; prefix?: string; + merkleStoreModuleId: string; + graphsTableId?: string; apiName?: string; privateApiName?: string; - scope?: string; - functionPrefix?: string; - permissionKey?: string; + entityTableId?: string; + policies?: Record; + provisions?: Record; + defaultPermissions?: string[]; createdAt?: string; } /** An input for mutations affecting `RateLimitMetersModule` */ @@ -11832,22 +12984,24 @@ export interface RateLimitMetersModuleInput { apiName?: string; privateApiName?: string; } -/** An input for mutations affecting `RealtimeModule` */ -export interface RealtimeModuleInput { +/** An input for mutations affecting `InfraConfigModule` */ +export interface InfraConfigModuleInput { id?: string; databaseId: string; + entityField?: string; schemaId?: string; privateSchemaId?: string; - subscriptionsSchemaId?: string; - changeLogTableId?: string; - listenerNodeTableId?: string; - sourceRegistryTableId?: string; - retentionHours?: number; - premake?: number; - interval?: string; - notifyChannel?: string; + publicSchemaName?: string; + privateSchemaName?: string; + configTableId?: string; + configTableName?: string; apiName?: string; privateApiName?: string; + scope?: string; + prefix?: string; + entityTableId?: string; + policies?: Record; + provisions?: Record; } /** An input for mutations affecting `WebauthnAuthModule` */ export interface WebauthnAuthModuleInput { @@ -11868,10 +13022,129 @@ export interface WebauthnAuthModuleInput { residentKey?: string; challengeExpiry?: IntervalInput; } +/** An input for mutations affecting `PrincipalAuthModule` */ +export interface PrincipalAuthModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + principalsTableId?: string; + principalEntitiesTableId?: string; + principalScopeOverridesTableId?: string; + usersTableId?: string; + sessionsTableId?: string; + sessionCredentialsTableId?: string; + auditsTableId?: string; + principalsTableName?: string; + createPrincipalFunction?: string; + deletePrincipalFunction?: string; + createOrgPrincipalFunction?: string; + deleteOrgPrincipalFunction?: string; + createOrgApiKeyFunction?: string; + revokeOrgApiKeyFunction?: string; + apiName?: string; +} +/** An input for mutations affecting `DbPool` */ +export interface DbPoolInput { + id?: string; + /** Slug of the db_presets catalog row this entry was baked from */ + presetSlug: string; + /** The db_presets merkle commit_id the warm database was baked from; a mismatch with the current head marks the entry stale */ + presetCommitId?: string; + databaseId?: string; + /** Lifecycle: warming, ready, claimed, stale, expired, or failed */ + status?: string; + errorMessage?: string; + /** When a ready entry expires (set from db_pool_config.warm_ttl at warm time) */ + expiresAt?: string; + /** User the database was transferred to at claim time */ + claimedBy?: string; + claimedAt?: string; + /** Status of the deferred owner bootstrap job after claim: not_requested, pending, completed, or failed */ + bootstrapStatus?: string; + bootstrapError?: string; + createdAt?: string; + updatedAt?: string; +} +/** An input for mutations affecting `FunctionModule` */ +export interface FunctionModuleInput { + id?: string; + databaseId: string; + entityField?: string; + schemaId?: string; + privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + definitionsTableId?: string; + definitionsTableName?: string; + apiName?: string; + privateApiName?: string; + scope?: string; + prefix?: string; + entityTableId?: string; + policies?: Record; + provisions?: Record; + defaultPermissions?: string[]; +} +/** An input for mutations affecting `MerkleStoreModule` */ +export interface MerkleStoreModuleInput { + id?: string; + databaseId: string; + entityField?: string; + schemaId?: string; + privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + objectTableId?: string; + storeTableId?: string; + commitTableId?: string; + refTableId?: string; + prefix?: string; + apiName?: string; + privateApiName?: string; + scope?: string; + functionPrefix?: string; + permissionKey?: string; + createdAt?: string; +} +/** An input for mutations affecting `DatabaseProvisionModule` */ +export interface DatabaseProvisionModuleInput { + id?: string; + /** The name for the new database */ + databaseName: string; + /** UUID of the user who owns this database */ + ownerId: string; + /** Subdomain prefix for the database. If null, auto-generated using unique_names + random chars */ + subdomain?: string; + /** Base domain for the database (e.g., example.com) */ + domain: string; + /** JSONB array of modules to install. Each element is either a string ("users_module") or a [name, options] tuple (["permissions_module", {"scope": "app"}]) */ + modules?: Record; + /** Additional configuration options for provisioning */ + options?: Record; + /** When true, copies the owner user and password hash from source database to the newly provisioned database */ + bootstrapUser?: boolean; + /** Current status: pending, in_progress, completed, or failed */ + status?: string; + errorMessage?: string; + /** The database the owner user is copied from during bootstrap (captured from JWT context at provision time) */ + sourceDatabaseId?: string; + /** Status of the deferred owner bootstrap job: not_requested, pending, completed, or failed */ + bootstrapStatus?: string; + /** Error message from the most recent failed bootstrap attempt */ + bootstrapError?: string; + /** The ID of the provisioned database (set by trigger before RLS check) */ + databaseId?: string; + createdAt?: string; + updatedAt?: string; + completedAt?: string; + /** 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; +} /** An input for mutations affecting `FunctionInvocationModule` */ export interface FunctionInvocationModuleInput { id?: string; databaseId: string; + entityField?: string; schemaId?: string; privateSchemaId?: string; publicSchemaName?: string; @@ -11889,31 +13162,11 @@ export interface FunctionInvocationModuleInput { provisions?: Record; defaultPermissions?: string[]; } -/** An input for mutations affecting `FunctionModule` */ -export interface FunctionModuleInput { - id?: string; - databaseId: string; - schemaId?: string; - privateSchemaId?: string; - publicSchemaName?: string; - privateSchemaName?: string; - definitionsTableId?: string; - secretDefinitionsTableId?: string; - definitionsTableName?: string; - secretDefinitionsTableName?: string; - apiName?: string; - privateApiName?: string; - scope?: string; - prefix?: string; - entityTableId?: string; - policies?: Record; - provisions?: Record; - defaultPermissions?: string[]; -} /** An input for mutations affecting `InvitesModule` */ export interface InvitesModuleInput { id?: string; databaseId: string; + entityField?: string; schemaId?: string; privateSchemaId?: string; publicSchemaName?: string; @@ -11931,31 +13184,57 @@ export interface InvitesModuleInput { apiName?: string; privateApiName?: string; } -/** An input for mutations affecting `PrincipalAuthModule` */ -export interface PrincipalAuthModuleInput { +/** An input for mutations affecting `NamespaceModule` */ +export interface NamespaceModuleInput { id?: string; databaseId: string; + entityField?: string; schemaId?: string; - principalsTableId?: string; - principalEntitiesTableId?: string; - principalScopeOverridesTableId?: string; - usersTableId?: string; - sessionsTableId?: string; - sessionCredentialsTableId?: string; - auditsTableId?: string; - principalsTableName?: string; - createPrincipalFunction?: string; - deletePrincipalFunction?: string; - createOrgPrincipalFunction?: string; - deleteOrgPrincipalFunction?: string; - createOrgApiKeyFunction?: string; - revokeOrgApiKeyFunction?: string; + privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + namespacesTableId?: string; + namespaceEventsTableId?: string; + namespacesTableName?: string; + namespaceEventsTableName?: string; + apiName?: string; + privateApiName?: string; + scope?: string; + prefix?: string; + entityTableId?: string; + policies?: Record; + provisions?: Record; + defaultPermissions?: string[]; +} +/** An input for mutations affecting `PlansModule` */ +export interface PlansModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + plansTableId?: string; + plansTableName?: string; + planLimitsTableId?: string; + planLimitsTableName?: string; + planPricingTableId?: string; + planOverridesTableId?: string; + planMeterLimitsTableId?: string; + planCapsTableId?: string; + applyPlanFunction?: string; + applyPlanAggregateFunction?: string; + applyBillingPlanFunction?: string; + applyPlanCapsFunction?: string; + prefix?: string; apiName?: string; + privateApiName?: string; } /** An input for mutations affecting `ComputeLogModule` */ export interface ComputeLogModuleInput { id?: string; databaseId: string; + entityField?: string; schemaId?: string; privateSchemaId?: string; publicSchemaName?: string; @@ -11978,6 +13257,7 @@ export interface ComputeLogModuleInput { export interface InferenceLogModuleInput { id?: string; databaseId: string; + entityField?: string; schemaId?: string; privateSchemaId?: string; publicSchemaName?: string; @@ -11996,54 +13276,11 @@ export interface InferenceLogModuleInput { apiName?: string; privateApiName?: string; } -/** An input for mutations affecting `NamespaceModule` */ -export interface NamespaceModuleInput { - id?: string; - databaseId: string; - schemaId?: string; - privateSchemaId?: string; - publicSchemaName?: string; - privateSchemaName?: string; - namespacesTableId?: string; - namespaceEventsTableId?: string; - namespacesTableName?: string; - namespaceEventsTableName?: string; - apiName?: string; - privateApiName?: string; - scope?: string; - prefix?: string; - entityTableId?: string; - platformNamespacesTableId?: string; - policies?: Record; - provisions?: Record; - defaultPermissions?: string[]; -} -/** An input for mutations affecting `ResourceModule` */ -export interface ResourceModuleInput { - id?: string; - databaseId: string; - schemaId?: string; - privateSchemaId?: string; - publicSchemaName?: string; - privateSchemaName?: string; - resourcesTableId?: string; - resourceEventsTableId?: string; - resourcesTableName?: string; - resourceEventsTableName?: string; - apiName?: string; - privateApiName?: string; - scope?: string; - prefix?: string; - entityTableId?: string; - namespaceModuleId?: string; - policies?: Record; - provisions?: Record; - defaultPermissions?: string[]; -} /** An input for mutations affecting `StorageLogModule` */ export interface StorageLogModuleInput { id?: string; databaseId: string; + entityField?: string; schemaId?: string; privateSchemaId?: string; publicSchemaName?: string; @@ -12066,6 +13303,7 @@ export interface StorageLogModuleInput { export interface TransferLogModuleInput { id?: string; databaseId: string; + entityField?: string; schemaId?: string; privateSchemaId?: string; publicSchemaName?: string; @@ -12084,53 +13322,6 @@ export interface TransferLogModuleInput { apiName?: string; privateApiName?: string; } -/** An input for mutations affecting `FunctionDeploymentModule` */ -export interface FunctionDeploymentModuleInput { - id?: string; - databaseId: string; - schemaId?: string; - privateSchemaId?: string; - publicSchemaName?: string; - privateSchemaName?: string; - deploymentsTableId?: string; - deploymentEventsTableId?: string; - deploymentsTableName?: string; - deploymentEventsTableName?: string; - apiName?: string; - privateApiName?: string; - scope?: string; - prefix?: string; - entityTableId?: string; - functionModuleId?: string; - namespaceModuleId?: string; - policies?: Record; - provisions?: Record; - defaultPermissions?: string[]; -} -/** An input for mutations affecting `PlansModule` */ -export interface PlansModuleInput { - id?: string; - databaseId: string; - schemaId?: string; - privateSchemaId?: string; - publicSchemaName?: string; - privateSchemaName?: string; - plansTableId?: string; - plansTableName?: string; - planLimitsTableId?: string; - planLimitsTableName?: string; - planPricingTableId?: string; - planOverridesTableId?: string; - planMeterLimitsTableId?: string; - planCapsTableId?: string; - applyPlanFunction?: string; - applyPlanAggregateFunction?: string; - applyBillingPlanFunction?: string; - applyPlanCapsFunction?: string; - prefix?: string; - apiName?: string; - privateApiName?: string; -} /** An input for mutations affecting `BillingProviderModule` */ export interface BillingProviderModuleInput { id?: string; @@ -12156,28 +13347,52 @@ export interface BillingProviderModuleInput { apiName?: string; privateApiName?: string; } -/** An input for mutations affecting `DbUsageModule` */ -export interface DbUsageModuleInput { +/** An input for mutations affecting `FunctionDeploymentModule` */ +export interface FunctionDeploymentModuleInput { id?: string; databaseId: string; + entityField?: string; schemaId?: string; privateSchemaId?: string; publicSchemaName?: string; privateSchemaName?: string; - tableStatsLogTableId?: string; - tableStatsLogTableName?: string; - tableStatsDailyTableId?: string; - tableStatsDailyTableName?: string; - queryStatsLogTableId?: string; - queryStatsLogTableName?: string; - queryStatsDailyTableId?: string; - queryStatsDailyTableName?: string; - interval?: string; - retention?: string; - premake?: number; + deploymentsTableId?: string; + deploymentEventsTableId?: string; + deploymentsTableName?: string; + deploymentEventsTableName?: string; + apiName?: string; + privateApiName?: string; scope?: string; prefix?: string; + entityTableId?: string; + functionModuleId?: string; + namespaceModuleId?: string; + policies?: Record; + provisions?: Record; defaultPermissions?: string[]; +} +/** An input for mutations affecting `PermissionsModule` */ +export interface PermissionsModuleInput { + id?: string; + databaseId: string; + entityField?: string; + schemaId?: string; + privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + tableId?: string; + tableName?: string; + defaultTableId?: string; + defaultTableName?: string; + bitlen?: number; + scope?: string; + prefix?: string; + entityTableId?: string; + actorTableId?: string; + getPaddedMask?: string; + getMask?: string; + getByMask?: string; + getMaskByName?: string; apiName?: string; privateApiName?: string; } @@ -12185,6 +13400,7 @@ export interface DbUsageModuleInput { export interface GraphExecutionModuleInput { id?: string; databaseId: string; + entityField?: string; schemaId?: string; privateSchemaId?: string; publicSchemaName?: string; @@ -12210,6 +13426,7 @@ export interface GraphExecutionModuleInput { export interface HierarchyModuleInput { id?: string; databaseId: string; + entityField?: string; schemaId?: string; privateSchemaId?: string; chartEdgesTableId?: string; @@ -12227,38 +13444,15 @@ export interface HierarchyModuleInput { rebuildHierarchyFunction?: string; getSubordinatesFunction?: string; getManagersFunction?: string; - isManagerOfFunction?: string; - defaultPermissions?: string[]; - createdAt?: string; -} -/** An input for mutations affecting `PermissionsModule` */ -export interface PermissionsModuleInput { - id?: string; - databaseId: string; - schemaId?: string; - privateSchemaId?: string; - publicSchemaName?: string; - privateSchemaName?: string; - tableId?: string; - tableName?: string; - defaultTableId?: string; - defaultTableName?: string; - bitlen?: number; - scope?: string; - prefix?: string; - entityTableId?: string; - actorTableId?: string; - getPaddedMask?: string; - getMask?: string; - getByMask?: string; - getMaskByName?: string; - apiName?: string; - privateApiName?: string; + isManagerOfFunction?: string; + defaultPermissions?: string[]; + createdAt?: string; } /** An input for mutations affecting `NotificationsModule` */ export interface NotificationsModuleInput { id?: string; databaseId: string; + entityField?: string; schemaId?: string; privateSchemaId?: string; publicSchemaName?: string; @@ -12281,61 +13475,6 @@ export interface NotificationsModuleInput { apiName?: string; privateApiName?: string; } -/** An input for mutations affecting `ProfilesModule` */ -export interface ProfilesModuleInput { - id?: string; - databaseId: string; - schemaId?: string; - privateSchemaId?: string; - publicSchemaName?: string; - privateSchemaName?: string; - tableId?: string; - tableName?: string; - profilePermissionsTableId?: string; - profilePermissionsTableName?: string; - profileGrantsTableId?: string; - profileGrantsTableName?: string; - profileDefinitionGrantsTableId?: string; - profileDefinitionGrantsTableName?: string; - profileTemplatesTableId?: string; - profileTemplatesTableName?: string; - scope?: string; - prefix?: string; - entityTableId?: string; - actorTableId?: string; - permissionsTableId?: string; - membershipsTableId?: string; - apiName?: string; - privateApiName?: string; -} -/** An input for mutations affecting `BillingModule` */ -export interface BillingModuleInput { - id?: string; - databaseId: string; - schemaId?: string; - privateSchemaId?: string; - publicSchemaName?: string; - privateSchemaName?: string; - metersTableId?: string; - metersTableName?: string; - planSubscriptionsTableId?: string; - planSubscriptionsTableName?: string; - ledgerTableId?: string; - ledgerTableName?: string; - balancesTableId?: string; - balancesTableName?: string; - meterCreditsTableId?: string; - meterCreditsTableName?: string; - meterSourcesTableId?: string; - meterSourcesTableName?: string; - meterDefaultsTableId?: string; - meterDefaultsTableName?: string; - recordUsageFunction?: string; - prefix?: string; - defaultPermissions?: string[]; - apiName?: string; - privateApiName?: string; -} /** An input for mutations affecting `RelationProvision` */ export interface RelationProvisionInput { /** Unique identifier for this relation provision row. */ @@ -12460,6 +13599,93 @@ export interface RelationProvisionInput { /** Output column for RelationManyToMany: the UUID of the FK field on the junction table referencing the target table. Populated by the trigger. NULL for RelationBelongsTo/RelationHasOne. Callers should not set this directly. */ outTargetFieldId?: string; } +/** An input for mutations affecting `ProfilesModule` */ +export interface ProfilesModuleInput { + id?: string; + databaseId: string; + entityField?: string; + schemaId?: string; + privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + tableId?: string; + tableName?: string; + profilePermissionsTableId?: string; + profilePermissionsTableName?: string; + profileGrantsTableId?: string; + profileGrantsTableName?: string; + profileDefinitionGrantsTableId?: string; + profileDefinitionGrantsTableName?: string; + profileTemplatesTableId?: string; + profileTemplatesTableName?: string; + scope?: string; + prefix?: string; + entityTableId?: string; + actorTableId?: string; + permissionsTableId?: string; + membershipsTableId?: string; + apiName?: string; + privateApiName?: string; +} +/** An input for mutations affecting `BillingModule` */ +export interface BillingModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + metersTableId?: string; + metersTableName?: string; + planSubscriptionsTableId?: string; + planSubscriptionsTableName?: string; + ledgerTableId?: string; + ledgerTableName?: string; + balancesTableId?: string; + balancesTableName?: string; + meterCreditsTableId?: string; + meterCreditsTableName?: string; + meterSourcesTableId?: string; + meterSourcesTableName?: string; + meterDefaultsTableId?: string; + meterDefaultsTableName?: string; + recordUsageFunction?: string; + sweepExpiredSubscriptionsFunction?: string; + rollupUsageSummaryFunction?: string; + prefix?: string; + defaultPermissions?: string[]; + apiName?: string; + privateApiName?: string; +} +/** An input for mutations affecting `ResourceModule` */ +export interface ResourceModuleInput { + id?: string; + databaseId: string; + entityField?: string; + schemaId?: string; + privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + resourcesTableId?: string; + resourceEventsTableId?: string; + resourceStatusChecksTableId?: string; + resourceDefinitionsTableId?: string; + resourcesTableName?: string; + resourceEventsTableName?: string; + resourceStatusChecksTableName?: string; + resourceDefinitionsTableName?: string; + resolvedRequirementsViewName?: string; + requirementsStateViewName?: string; + apiName?: string; + privateApiName?: string; + scope?: string; + prefix?: string; + entityTableId?: string; + namespaceModuleId?: string; + policies?: Record; + provisions?: Record; + defaultPermissions?: string[]; +} /** An input for mutations affecting `UserAuthModule` */ export interface UserAuthModuleInput { id?: string; @@ -12491,10 +13717,41 @@ export interface UserAuthModuleInput { apiName?: string; privateApiName?: string; } +/** An input for mutations affecting `DbUsageModule` */ +export interface DbUsageModuleInput { + id?: string; + databaseId: string; + entityField?: string; + schemaId?: string; + privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + tableStatsLogTableId?: string; + tableStatsLogTableName?: string; + tableStatsDailyTableId?: string; + tableStatsDailyTableName?: string; + queryStatsLogTableId?: string; + queryStatsLogTableName?: string; + queryStatsDailyTableId?: string; + queryStatsDailyTableName?: string; + collectDbTableStatsFunction?: string; + collectDbQueryStatsFunction?: string; + rollupDbTableStatsDailyFunction?: string; + rollupDbQueryStatsDailyFunction?: string; + interval?: string; + retention?: string; + premake?: number; + scope?: string; + prefix?: string; + defaultPermissions?: string[]; + apiName?: string; + privateApiName?: string; +} /** An input for mutations affecting `AgentModule` */ export interface AgentModuleInput { id?: string; databaseId: string; + entityField?: string; schemaId?: string; privateSchemaId?: string; publicSchemaName?: string; @@ -12533,6 +13790,7 @@ export interface AgentModuleInput { export interface LimitsModuleInput { id?: string; databaseId: string; + entityField?: string; schemaId?: string; privateSchemaId?: string; publicSchemaName?: string; @@ -12568,50 +13826,6 @@ export interface LimitsModuleInput { apiName?: string; privateApiName?: string; } -/** An input for mutations affecting `MembershipsModule` */ -export interface MembershipsModuleInput { - id?: string; - databaseId: string; - schemaId?: string; - privateSchemaId?: string; - publicSchemaName?: string; - privateSchemaName?: string; - membershipsTableId?: string; - membershipsTableName?: string; - membersTableId?: string; - membersTableName?: string; - membershipDefaultsTableId?: string; - membershipDefaultsTableName?: string; - membershipSettingsTableId?: string; - membershipSettingsTableName?: string; - grantsTableId?: string; - grantsTableName?: string; - actorTableId?: string; - limitsTableId?: string; - defaultLimitsTableId?: string; - permissionsTableId?: string; - defaultPermissionsTableId?: string; - sprtTableId?: string; - adminGrantsTableId?: string; - adminGrantsTableName?: string; - ownerGrantsTableId?: string; - ownerGrantsTableName?: string; - scope?: string; - prefix?: string; - entityTableId?: string; - entityTableOwnerId?: string; - getOrgFn?: string; - actorMaskCheck?: string; - actorPermCheck?: string; - entityIdsByMask?: string; - entityIdsByPerm?: string; - entityIdsFunction?: string; - memberProfilesTableId?: string; - permissionDefaultPermissionsTableId?: string; - permissionDefaultGrantsTableId?: string; - apiName?: string; - privateApiName?: string; -} /** An input for mutations affecting `EntityTypeProvision` */ export interface EntityTypeProvisionInput { /** Unique identifier for this provision row. */ @@ -12860,7 +14074,6 @@ export interface EntityTypeProvisionInput { outDefinitionsTableId?: string; outInvocationsTableId?: string; outExecutionLogsTableId?: string; - outSecretDefinitionsTableId?: string; outGraphModuleId?: string; outGraphsTableId?: string; outAgentModuleId?: string; @@ -12879,31 +14092,77 @@ export interface StorageModuleInput { filesTableName?: string; scope?: string; prefix?: string; - policies?: Record; - provisions?: Record; + policies?: Record; + provisions?: Record; + entityTableId?: string; + entityField?: string; + endpoint?: string; + publicUrlPrefix?: string; + provider?: string; + allowedOrigins?: string[]; + restrictReads?: boolean; + hasPathShares?: boolean; + pathSharesTableId?: string; + uploadUrlExpirySeconds?: number; + downloadUrlExpirySeconds?: number; + defaultMaxFileSize?: string; + maxFilenameLength?: number; + cacheTtlSeconds?: number; + maxBulkFiles?: number; + maxBulkTotalSize?: string; + hasVersioning?: boolean; + hasContentHash?: boolean; + hasCustomKeys?: boolean; + hasAuditLog?: boolean; + hasConfirmUpload?: boolean; + confirmUploadDelay?: IntervalInput; + fileEventsTableId?: string; + defaultPermissions?: string[]; + apiName?: string; + privateApiName?: string; +} +/** An input for mutations affecting `MembershipsModule` */ +export interface MembershipsModuleInput { + id?: string; + databaseId: string; + entityField?: string; + schemaId?: string; + privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + membershipsTableId?: string; + membershipsTableName?: string; + membersTableId?: string; + membersTableName?: string; + membershipDefaultsTableId?: string; + membershipDefaultsTableName?: string; + membershipSettingsTableId?: string; + membershipSettingsTableName?: string; + grantsTableId?: string; + grantsTableName?: string; + actorTableId?: string; + limitsTableId?: string; + defaultLimitsTableId?: string; + permissionsTableId?: string; + defaultPermissionsTableId?: string; + sprtTableId?: string; + adminGrantsTableId?: string; + adminGrantsTableName?: string; + ownerGrantsTableId?: string; + ownerGrantsTableName?: string; + scope?: string; + prefix?: string; entityTableId?: string; - endpoint?: string; - publicUrlPrefix?: string; - provider?: string; - allowedOrigins?: string[]; - restrictReads?: boolean; - hasPathShares?: boolean; - pathSharesTableId?: string; - uploadUrlExpirySeconds?: number; - downloadUrlExpirySeconds?: number; - defaultMaxFileSize?: string; - maxFilenameLength?: number; - cacheTtlSeconds?: number; - maxBulkFiles?: number; - maxBulkTotalSize?: string; - hasVersioning?: boolean; - hasContentHash?: boolean; - hasCustomKeys?: boolean; - hasAuditLog?: boolean; - hasConfirmUpload?: boolean; - confirmUploadDelay?: IntervalInput; - fileEventsTableId?: string; - defaultPermissions?: string[]; + entityTableOwnerId?: string; + getOrgFn?: string; + actorMaskCheck?: string; + actorPermCheck?: string; + entityIdsByMask?: string; + entityIdsByPerm?: string; + entityIdsFunction?: string; + memberProfilesTableId?: string; + permissionDefaultPermissionsTableId?: string; + permissionDefaultGrantsTableId?: string; apiName?: string; privateApiName?: string; } @@ -12911,6 +14170,7 @@ export interface StorageModuleInput { export interface EventsModuleInput { id?: string; databaseId: string; + entityField?: string; schemaId?: string; privateSchemaId?: string; publicSchemaName?: string; @@ -12937,7 +14197,6 @@ export interface EventsModuleInput { tgEventBool?: string; upsertAggregate?: string; tgUpdateAggregates?: string; - pruneEvents?: string; stepsRequired?: string; levelAchieved?: string; tgCheckAchievements?: string; @@ -13095,6 +14354,8 @@ export interface GraphModuleFilter { id?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; + /** Filter by the object’s `entityField` field. */ + entityField?: StringFilter; /** Filter by the object’s `publicSchemaId` field. */ publicSchemaId?: UUIDFilter; /** Filter by the object’s `privateSchemaId` field. */ @@ -13134,6 +14395,51 @@ export interface GraphModuleFilter { /** Filter by the object’s `merkleStoreModule` relation. */ merkleStoreModule?: MerkleStoreModuleFilter; } +/** A filter to be used against `DbPresetModule` object types. All fields are combined with a logical ‘and.’ */ +export interface DbPresetModuleFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `publicSchemaId` field. */ + publicSchemaId?: UUIDFilter; + /** Filter by the object’s `privateSchemaId` field. */ + privateSchemaId?: UUIDFilter; + /** Filter by the object’s `publicSchemaName` field. */ + publicSchemaName?: StringFilter; + /** Filter by the object’s `privateSchemaName` field. */ + privateSchemaName?: StringFilter; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Filter by the object’s `merkleStoreModuleId` field. */ + merkleStoreModuleId?: UUIDFilter; + /** Filter by the object’s `dbPresetsTableId` field. */ + dbPresetsTableId?: UUIDFilter; + /** Filter by the object’s `storeName` field. */ + storeName?: StringFilter; + /** Filter by the object’s `apiName` field. */ + apiName?: StringFilter; + /** Filter by the object’s `privateApiName` field. */ + privateApiName?: StringFilter; + /** Filter by the object’s `entityTableId` field. */ + entityTableId?: UUIDFilter; + /** Filter by the object’s `policies` field. */ + policies?: JSONFilter; + /** Filter by the object’s `provisions` field. */ + provisions?: JSONFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Checks for all expressions in this list. */ + and?: DbPresetModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: DbPresetModuleFilter[]; + /** Negates the expression. */ + not?: DbPresetModuleFilter; + /** Filter by the object’s `merkleStoreModule` relation. */ + merkleStoreModule?: MerkleStoreModuleFilter; +} /** A filter to be used against UUID fields. All fields are combined with a logical ‘and.’ */ export interface UUIDFilter { /** Is null (if `true` is specified) or is not null (if `false` is specified). */ @@ -13366,6 +14672,8 @@ export interface MerkleStoreModuleFilter { id?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; + /** Filter by the object’s `entityField` field. */ + entityField?: StringFilter; /** Filter by the object’s `schemaId` field. */ schemaId?: UUIDFilter; /** Filter by the object’s `privateSchemaId` field. */ @@ -13406,6 +14714,10 @@ export interface MerkleStoreModuleFilter { graphModules?: MerkleStoreModuleToManyGraphModuleFilter; /** `graphModules` exist. */ graphModulesExist?: boolean; + /** Filter by the object’s `dbPresetModules` relation. */ + dbPresetModules?: MerkleStoreModuleToManyDbPresetModuleFilter; + /** `dbPresetModules` exist. */ + dbPresetModulesExist?: boolean; } // ============ Payload/Return Types (for custom operations) ============ export interface ConstructBlueprintPayload { @@ -13588,8 +14900,188 @@ export type DeleteMembershipTypesModulePayloadSelect = { membershipTypesModule?: { select: MembershipTypesModuleSelect; }; - membershipTypesModuleEdge?: { - select: MembershipTypesModuleEdgeSelect; + membershipTypesModuleEdge?: { + select: MembershipTypesModuleEdgeSelect; + }; +}; +export interface CreateSessionSecretsModulePayload { + clientMutationId?: string | null; + /** The `SessionSecretsModule` that was created by this mutation. */ + sessionSecretsModule?: SessionSecretsModule | null; + sessionSecretsModuleEdge?: SessionSecretsModuleEdge | null; +} +export type CreateSessionSecretsModulePayloadSelect = { + clientMutationId?: boolean; + sessionSecretsModule?: { + select: SessionSecretsModuleSelect; + }; + sessionSecretsModuleEdge?: { + select: SessionSecretsModuleEdgeSelect; + }; +}; +export interface UpdateSessionSecretsModulePayload { + clientMutationId?: string | null; + /** The `SessionSecretsModule` that was updated by this mutation. */ + sessionSecretsModule?: SessionSecretsModule | null; + sessionSecretsModuleEdge?: SessionSecretsModuleEdge | null; +} +export type UpdateSessionSecretsModulePayloadSelect = { + clientMutationId?: boolean; + sessionSecretsModule?: { + select: SessionSecretsModuleSelect; + }; + sessionSecretsModuleEdge?: { + select: SessionSecretsModuleEdgeSelect; + }; +}; +export interface DeleteSessionSecretsModulePayload { + clientMutationId?: string | null; + /** The `SessionSecretsModule` that was deleted by this mutation. */ + sessionSecretsModule?: SessionSecretsModule | null; + sessionSecretsModuleEdge?: SessionSecretsModuleEdge | null; +} +export type DeleteSessionSecretsModulePayloadSelect = { + clientMutationId?: boolean; + sessionSecretsModule?: { + select: SessionSecretsModuleSelect; + }; + sessionSecretsModuleEdge?: { + select: SessionSecretsModuleEdgeSelect; + }; +}; +export interface CreateDevicesModulePayload { + clientMutationId?: string | null; + /** The `DevicesModule` that was created by this mutation. */ + devicesModule?: DevicesModule | null; + devicesModuleEdge?: DevicesModuleEdge | null; +} +export type CreateDevicesModulePayloadSelect = { + clientMutationId?: boolean; + devicesModule?: { + select: DevicesModuleSelect; + }; + devicesModuleEdge?: { + select: DevicesModuleEdgeSelect; + }; +}; +export interface UpdateDevicesModulePayload { + clientMutationId?: string | null; + /** The `DevicesModule` that was updated by this mutation. */ + devicesModule?: DevicesModule | null; + devicesModuleEdge?: DevicesModuleEdge | null; +} +export type UpdateDevicesModulePayloadSelect = { + clientMutationId?: boolean; + devicesModule?: { + select: DevicesModuleSelect; + }; + devicesModuleEdge?: { + select: DevicesModuleEdgeSelect; + }; +}; +export interface DeleteDevicesModulePayload { + clientMutationId?: string | null; + /** The `DevicesModule` that was deleted by this mutation. */ + devicesModule?: DevicesModule | null; + devicesModuleEdge?: DevicesModuleEdge | null; +} +export type DeleteDevicesModulePayloadSelect = { + clientMutationId?: boolean; + devicesModule?: { + select: DevicesModuleSelect; + }; + devicesModuleEdge?: { + select: DevicesModuleEdgeSelect; + }; +}; +export interface CreateI18NModulePayload { + clientMutationId?: string | null; + /** The `I18NModule` that was created by this mutation. */ + i18NModule?: I18NModule | null; + i18NModuleEdge?: I18NModuleEdge | null; +} +export type CreateI18NModulePayloadSelect = { + clientMutationId?: boolean; + i18NModule?: { + select: I18NModuleSelect; + }; + i18NModuleEdge?: { + select: I18NModuleEdgeSelect; + }; +}; +export interface UpdateI18NModulePayload { + clientMutationId?: string | null; + /** The `I18NModule` that was updated by this mutation. */ + i18NModule?: I18NModule | null; + i18NModuleEdge?: I18NModuleEdge | null; +} +export type UpdateI18NModulePayloadSelect = { + clientMutationId?: boolean; + i18NModule?: { + select: I18NModuleSelect; + }; + i18NModuleEdge?: { + select: I18NModuleEdgeSelect; + }; +}; +export interface DeleteI18NModulePayload { + clientMutationId?: string | null; + /** The `I18NModule` that was deleted by this mutation. */ + i18NModule?: I18NModule | null; + i18NModuleEdge?: I18NModuleEdge | null; +} +export type DeleteI18NModulePayloadSelect = { + clientMutationId?: boolean; + i18NModule?: { + select: I18NModuleSelect; + }; + i18NModuleEdge?: { + select: I18NModuleEdgeSelect; + }; +}; +export interface CreateUserSettingsModulePayload { + clientMutationId?: string | null; + /** The `UserSettingsModule` that was created by this mutation. */ + userSettingsModule?: UserSettingsModule | null; + userSettingsModuleEdge?: UserSettingsModuleEdge | null; +} +export type CreateUserSettingsModulePayloadSelect = { + clientMutationId?: boolean; + userSettingsModule?: { + select: UserSettingsModuleSelect; + }; + userSettingsModuleEdge?: { + select: UserSettingsModuleEdgeSelect; + }; +}; +export interface UpdateUserSettingsModulePayload { + clientMutationId?: string | null; + /** The `UserSettingsModule` that was updated by this mutation. */ + userSettingsModule?: UserSettingsModule | null; + userSettingsModuleEdge?: UserSettingsModuleEdge | null; +} +export type UpdateUserSettingsModulePayloadSelect = { + clientMutationId?: boolean; + userSettingsModule?: { + select: UserSettingsModuleSelect; + }; + userSettingsModuleEdge?: { + select: UserSettingsModuleEdgeSelect; + }; +}; +export interface DeleteUserSettingsModulePayload { + clientMutationId?: string | null; + /** The `UserSettingsModule` that was deleted by this mutation. */ + userSettingsModule?: UserSettingsModule | null; + userSettingsModuleEdge?: UserSettingsModuleEdge | null; +} +export type DeleteUserSettingsModulePayloadSelect = { + clientMutationId?: boolean; + userSettingsModule?: { + select: UserSettingsModuleSelect; + }; + userSettingsModuleEdge?: { + select: UserSettingsModuleEdgeSelect; }; }; export interface CreateUserStateModulePayload { @@ -13637,274 +15129,319 @@ export type DeleteUserStateModulePayloadSelect = { select: UserStateModuleEdgeSelect; }; }; -export interface CreateSessionSecretsModulePayload { +export interface CreateUserCredentialsModulePayload { clientMutationId?: string | null; - /** The `SessionSecretsModule` that was created by this mutation. */ - sessionSecretsModule?: SessionSecretsModule | null; - sessionSecretsModuleEdge?: SessionSecretsModuleEdge | null; + /** The `UserCredentialsModule` that was created by this mutation. */ + userCredentialsModule?: UserCredentialsModule | null; + userCredentialsModuleEdge?: UserCredentialsModuleEdge | null; } -export type CreateSessionSecretsModulePayloadSelect = { +export type CreateUserCredentialsModulePayloadSelect = { clientMutationId?: boolean; - sessionSecretsModule?: { - select: SessionSecretsModuleSelect; + userCredentialsModule?: { + select: UserCredentialsModuleSelect; }; - sessionSecretsModuleEdge?: { - select: SessionSecretsModuleEdgeSelect; + userCredentialsModuleEdge?: { + select: UserCredentialsModuleEdgeSelect; }; }; -export interface UpdateSessionSecretsModulePayload { +export interface UpdateUserCredentialsModulePayload { clientMutationId?: string | null; - /** The `SessionSecretsModule` that was updated by this mutation. */ - sessionSecretsModule?: SessionSecretsModule | null; - sessionSecretsModuleEdge?: SessionSecretsModuleEdge | null; + /** The `UserCredentialsModule` that was updated by this mutation. */ + userCredentialsModule?: UserCredentialsModule | null; + userCredentialsModuleEdge?: UserCredentialsModuleEdge | null; } -export type UpdateSessionSecretsModulePayloadSelect = { +export type UpdateUserCredentialsModulePayloadSelect = { clientMutationId?: boolean; - sessionSecretsModule?: { - select: SessionSecretsModuleSelect; + userCredentialsModule?: { + select: UserCredentialsModuleSelect; }; - sessionSecretsModuleEdge?: { - select: SessionSecretsModuleEdgeSelect; + userCredentialsModuleEdge?: { + select: UserCredentialsModuleEdgeSelect; }; }; -export interface DeleteSessionSecretsModulePayload { +export interface DeleteUserCredentialsModulePayload { clientMutationId?: string | null; - /** The `SessionSecretsModule` that was deleted by this mutation. */ - sessionSecretsModule?: SessionSecretsModule | null; - sessionSecretsModuleEdge?: SessionSecretsModuleEdge | null; + /** The `UserCredentialsModule` that was deleted by this mutation. */ + userCredentialsModule?: UserCredentialsModule | null; + userCredentialsModuleEdge?: UserCredentialsModuleEdge | null; } -export type DeleteSessionSecretsModulePayloadSelect = { +export type DeleteUserCredentialsModulePayloadSelect = { clientMutationId?: boolean; - sessionSecretsModule?: { - select: SessionSecretsModuleSelect; + userCredentialsModule?: { + select: UserCredentialsModuleSelect; }; - sessionSecretsModuleEdge?: { - select: SessionSecretsModuleEdgeSelect; + userCredentialsModuleEdge?: { + select: UserCredentialsModuleEdgeSelect; }; }; -export interface CreateConfigSecretsOrgModulePayload { +export interface CreateConnectedAccountsModulePayload { clientMutationId?: string | null; - /** The `ConfigSecretsOrgModule` that was created by this mutation. */ - configSecretsOrgModule?: ConfigSecretsOrgModule | null; - configSecretsOrgModuleEdge?: ConfigSecretsOrgModuleEdge | null; + /** The `ConnectedAccountsModule` that was created by this mutation. */ + connectedAccountsModule?: ConnectedAccountsModule | null; + connectedAccountsModuleEdge?: ConnectedAccountsModuleEdge | null; } -export type CreateConfigSecretsOrgModulePayloadSelect = { +export type CreateConnectedAccountsModulePayloadSelect = { clientMutationId?: boolean; - configSecretsOrgModule?: { - select: ConfigSecretsOrgModuleSelect; + connectedAccountsModule?: { + select: ConnectedAccountsModuleSelect; }; - configSecretsOrgModuleEdge?: { - select: ConfigSecretsOrgModuleEdgeSelect; + connectedAccountsModuleEdge?: { + select: ConnectedAccountsModuleEdgeSelect; }; }; -export interface UpdateConfigSecretsOrgModulePayload { +export interface UpdateConnectedAccountsModulePayload { clientMutationId?: string | null; - /** The `ConfigSecretsOrgModule` that was updated by this mutation. */ - configSecretsOrgModule?: ConfigSecretsOrgModule | null; - configSecretsOrgModuleEdge?: ConfigSecretsOrgModuleEdge | null; + /** The `ConnectedAccountsModule` that was updated by this mutation. */ + connectedAccountsModule?: ConnectedAccountsModule | null; + connectedAccountsModuleEdge?: ConnectedAccountsModuleEdge | null; } -export type UpdateConfigSecretsOrgModulePayloadSelect = { +export type UpdateConnectedAccountsModulePayloadSelect = { clientMutationId?: boolean; - configSecretsOrgModule?: { - select: ConfigSecretsOrgModuleSelect; + connectedAccountsModule?: { + select: ConnectedAccountsModuleSelect; }; - configSecretsOrgModuleEdge?: { - select: ConfigSecretsOrgModuleEdgeSelect; + connectedAccountsModuleEdge?: { + select: ConnectedAccountsModuleEdgeSelect; }; }; -export interface DeleteConfigSecretsOrgModulePayload { +export interface DeleteConnectedAccountsModulePayload { clientMutationId?: string | null; - /** The `ConfigSecretsOrgModule` that was deleted by this mutation. */ - configSecretsOrgModule?: ConfigSecretsOrgModule | null; - configSecretsOrgModuleEdge?: ConfigSecretsOrgModuleEdge | null; + /** The `ConnectedAccountsModule` that was deleted by this mutation. */ + connectedAccountsModule?: ConnectedAccountsModule | null; + connectedAccountsModuleEdge?: ConnectedAccountsModuleEdge | null; } -export type DeleteConfigSecretsOrgModulePayloadSelect = { +export type DeleteConnectedAccountsModulePayloadSelect = { clientMutationId?: boolean; - configSecretsOrgModule?: { - select: ConfigSecretsOrgModuleSelect; + connectedAccountsModule?: { + select: ConnectedAccountsModuleSelect; }; - configSecretsOrgModuleEdge?: { - select: ConfigSecretsOrgModuleEdgeSelect; + connectedAccountsModuleEdge?: { + select: ConnectedAccountsModuleEdgeSelect; }; }; -export interface CreateDevicesModulePayload { +export interface CreateEmailsModulePayload { clientMutationId?: string | null; - /** The `DevicesModule` that was created by this mutation. */ - devicesModule?: DevicesModule | null; - devicesModuleEdge?: DevicesModuleEdge | null; + /** The `EmailsModule` that was created by this mutation. */ + emailsModule?: EmailsModule | null; + emailsModuleEdge?: EmailsModuleEdge | null; } -export type CreateDevicesModulePayloadSelect = { +export type CreateEmailsModulePayloadSelect = { clientMutationId?: boolean; - devicesModule?: { - select: DevicesModuleSelect; + emailsModule?: { + select: EmailsModuleSelect; }; - devicesModuleEdge?: { - select: DevicesModuleEdgeSelect; + emailsModuleEdge?: { + select: EmailsModuleEdgeSelect; }; }; -export interface UpdateDevicesModulePayload { +export interface UpdateEmailsModulePayload { clientMutationId?: string | null; - /** The `DevicesModule` that was updated by this mutation. */ - devicesModule?: DevicesModule | null; - devicesModuleEdge?: DevicesModuleEdge | null; + /** The `EmailsModule` that was updated by this mutation. */ + emailsModule?: EmailsModule | null; + emailsModuleEdge?: EmailsModuleEdge | null; } -export type UpdateDevicesModulePayloadSelect = { +export type UpdateEmailsModulePayloadSelect = { clientMutationId?: boolean; - devicesModule?: { - select: DevicesModuleSelect; + emailsModule?: { + select: EmailsModuleSelect; }; - devicesModuleEdge?: { - select: DevicesModuleEdgeSelect; + emailsModuleEdge?: { + select: EmailsModuleEdgeSelect; }; }; -export interface DeleteDevicesModulePayload { +export interface DeleteEmailsModulePayload { clientMutationId?: string | null; - /** The `DevicesModule` that was deleted by this mutation. */ - devicesModule?: DevicesModule | null; - devicesModuleEdge?: DevicesModuleEdge | null; + /** The `EmailsModule` that was deleted by this mutation. */ + emailsModule?: EmailsModule | null; + emailsModuleEdge?: EmailsModuleEdge | null; } -export type DeleteDevicesModulePayloadSelect = { +export type DeleteEmailsModulePayloadSelect = { clientMutationId?: boolean; - devicesModule?: { - select: DevicesModuleSelect; + emailsModule?: { + select: EmailsModuleSelect; }; - devicesModuleEdge?: { - select: DevicesModuleEdgeSelect; + emailsModuleEdge?: { + select: EmailsModuleEdgeSelect; }; }; -export interface CreateI18NModulePayload { +export interface CreatePhoneNumbersModulePayload { clientMutationId?: string | null; - /** The `I18NModule` that was created by this mutation. */ - i18NModule?: I18NModule | null; - i18NModuleEdge?: I18NModuleEdge | null; + /** The `PhoneNumbersModule` that was created by this mutation. */ + phoneNumbersModule?: PhoneNumbersModule | null; + phoneNumbersModuleEdge?: PhoneNumbersModuleEdge | null; } -export type CreateI18NModulePayloadSelect = { +export type CreatePhoneNumbersModulePayloadSelect = { clientMutationId?: boolean; - i18NModule?: { - select: I18NModuleSelect; + phoneNumbersModule?: { + select: PhoneNumbersModuleSelect; }; - i18NModuleEdge?: { - select: I18NModuleEdgeSelect; + phoneNumbersModuleEdge?: { + select: PhoneNumbersModuleEdgeSelect; }; }; -export interface UpdateI18NModulePayload { +export interface UpdatePhoneNumbersModulePayload { clientMutationId?: string | null; - /** The `I18NModule` that was updated by this mutation. */ - i18NModule?: I18NModule | null; - i18NModuleEdge?: I18NModuleEdge | null; + /** The `PhoneNumbersModule` that was updated by this mutation. */ + phoneNumbersModule?: PhoneNumbersModule | null; + phoneNumbersModuleEdge?: PhoneNumbersModuleEdge | null; } -export type UpdateI18NModulePayloadSelect = { +export type UpdatePhoneNumbersModulePayloadSelect = { clientMutationId?: boolean; - i18NModule?: { - select: I18NModuleSelect; + phoneNumbersModule?: { + select: PhoneNumbersModuleSelect; }; - i18NModuleEdge?: { - select: I18NModuleEdgeSelect; + phoneNumbersModuleEdge?: { + select: PhoneNumbersModuleEdgeSelect; }; }; -export interface DeleteI18NModulePayload { +export interface DeletePhoneNumbersModulePayload { clientMutationId?: string | null; - /** The `I18NModule` that was deleted by this mutation. */ - i18NModule?: I18NModule | null; - i18NModuleEdge?: I18NModuleEdge | null; + /** The `PhoneNumbersModule` that was deleted by this mutation. */ + phoneNumbersModule?: PhoneNumbersModule | null; + phoneNumbersModuleEdge?: PhoneNumbersModuleEdge | null; } -export type DeleteI18NModulePayloadSelect = { +export type DeletePhoneNumbersModulePayloadSelect = { clientMutationId?: boolean; - i18NModule?: { - select: I18NModuleSelect; + phoneNumbersModule?: { + select: PhoneNumbersModuleSelect; }; - i18NModuleEdge?: { - select: I18NModuleEdgeSelect; + phoneNumbersModuleEdge?: { + select: PhoneNumbersModuleEdgeSelect; }; }; -export interface CreateUserCredentialsModulePayload { +export interface CreateRateLimitsModulePayload { clientMutationId?: string | null; - /** The `UserCredentialsModule` that was created by this mutation. */ - userCredentialsModule?: UserCredentialsModule | null; - userCredentialsModuleEdge?: UserCredentialsModuleEdge | null; + /** The `RateLimitsModule` that was created by this mutation. */ + rateLimitsModule?: RateLimitsModule | null; + rateLimitsModuleEdge?: RateLimitsModuleEdge | null; } -export type CreateUserCredentialsModulePayloadSelect = { +export type CreateRateLimitsModulePayloadSelect = { clientMutationId?: boolean; - userCredentialsModule?: { - select: UserCredentialsModuleSelect; + rateLimitsModule?: { + select: RateLimitsModuleSelect; }; - userCredentialsModuleEdge?: { - select: UserCredentialsModuleEdgeSelect; + rateLimitsModuleEdge?: { + select: RateLimitsModuleEdgeSelect; + }; +}; +export interface UpdateRateLimitsModulePayload { + clientMutationId?: string | null; + /** The `RateLimitsModule` that was updated by this mutation. */ + rateLimitsModule?: RateLimitsModule | null; + rateLimitsModuleEdge?: RateLimitsModuleEdge | null; +} +export type UpdateRateLimitsModulePayloadSelect = { + clientMutationId?: boolean; + rateLimitsModule?: { + select: RateLimitsModuleSelect; + }; + rateLimitsModuleEdge?: { + select: RateLimitsModuleEdgeSelect; + }; +}; +export interface DeleteRateLimitsModulePayload { + clientMutationId?: string | null; + /** The `RateLimitsModule` that was deleted by this mutation. */ + rateLimitsModule?: RateLimitsModule | null; + rateLimitsModuleEdge?: RateLimitsModuleEdge | null; +} +export type DeleteRateLimitsModulePayloadSelect = { + clientMutationId?: boolean; + rateLimitsModule?: { + select: RateLimitsModuleSelect; + }; + rateLimitsModuleEdge?: { + select: RateLimitsModuleEdgeSelect; + }; +}; +export interface CreateUsersModulePayload { + clientMutationId?: string | null; + /** The `UsersModule` that was created by this mutation. */ + usersModule?: UsersModule | null; + usersModuleEdge?: UsersModuleEdge | null; +} +export type CreateUsersModulePayloadSelect = { + clientMutationId?: boolean; + usersModule?: { + select: UsersModuleSelect; + }; + usersModuleEdge?: { + select: UsersModuleEdgeSelect; }; }; -export interface UpdateUserCredentialsModulePayload { +export interface UpdateUsersModulePayload { clientMutationId?: string | null; - /** The `UserCredentialsModule` that was updated by this mutation. */ - userCredentialsModule?: UserCredentialsModule | null; - userCredentialsModuleEdge?: UserCredentialsModuleEdge | null; + /** The `UsersModule` that was updated by this mutation. */ + usersModule?: UsersModule | null; + usersModuleEdge?: UsersModuleEdge | null; } -export type UpdateUserCredentialsModulePayloadSelect = { +export type UpdateUsersModulePayloadSelect = { clientMutationId?: boolean; - userCredentialsModule?: { - select: UserCredentialsModuleSelect; + usersModule?: { + select: UsersModuleSelect; }; - userCredentialsModuleEdge?: { - select: UserCredentialsModuleEdgeSelect; + usersModuleEdge?: { + select: UsersModuleEdgeSelect; }; }; -export interface DeleteUserCredentialsModulePayload { +export interface DeleteUsersModulePayload { clientMutationId?: string | null; - /** The `UserCredentialsModule` that was deleted by this mutation. */ - userCredentialsModule?: UserCredentialsModule | null; - userCredentialsModuleEdge?: UserCredentialsModuleEdge | null; + /** The `UsersModule` that was deleted by this mutation. */ + usersModule?: UsersModule | null; + usersModuleEdge?: UsersModuleEdge | null; } -export type DeleteUserCredentialsModulePayloadSelect = { +export type DeleteUsersModulePayloadSelect = { clientMutationId?: boolean; - userCredentialsModule?: { - select: UserCredentialsModuleSelect; + usersModule?: { + select: UsersModuleSelect; }; - userCredentialsModuleEdge?: { - select: UserCredentialsModuleEdgeSelect; + usersModuleEdge?: { + select: UsersModuleEdgeSelect; }; }; -export interface CreateUserSettingsModulePayload { +export interface CreateWebauthnCredentialsModulePayload { clientMutationId?: string | null; - /** The `UserSettingsModule` that was created by this mutation. */ - userSettingsModule?: UserSettingsModule | null; - userSettingsModuleEdge?: UserSettingsModuleEdge | null; + /** The `WebauthnCredentialsModule` that was created by this mutation. */ + webauthnCredentialsModule?: WebauthnCredentialsModule | null; + webauthnCredentialsModuleEdge?: WebauthnCredentialsModuleEdge | null; } -export type CreateUserSettingsModulePayloadSelect = { +export type CreateWebauthnCredentialsModulePayloadSelect = { clientMutationId?: boolean; - userSettingsModule?: { - select: UserSettingsModuleSelect; + webauthnCredentialsModule?: { + select: WebauthnCredentialsModuleSelect; }; - userSettingsModuleEdge?: { - select: UserSettingsModuleEdgeSelect; + webauthnCredentialsModuleEdge?: { + select: WebauthnCredentialsModuleEdgeSelect; }; }; -export interface UpdateUserSettingsModulePayload { +export interface UpdateWebauthnCredentialsModulePayload { clientMutationId?: string | null; - /** The `UserSettingsModule` that was updated by this mutation. */ - userSettingsModule?: UserSettingsModule | null; - userSettingsModuleEdge?: UserSettingsModuleEdge | null; + /** The `WebauthnCredentialsModule` that was updated by this mutation. */ + webauthnCredentialsModule?: WebauthnCredentialsModule | null; + webauthnCredentialsModuleEdge?: WebauthnCredentialsModuleEdge | null; } -export type UpdateUserSettingsModulePayloadSelect = { +export type UpdateWebauthnCredentialsModulePayloadSelect = { clientMutationId?: boolean; - userSettingsModule?: { - select: UserSettingsModuleSelect; + webauthnCredentialsModule?: { + select: WebauthnCredentialsModuleSelect; }; - userSettingsModuleEdge?: { - select: UserSettingsModuleEdgeSelect; + webauthnCredentialsModuleEdge?: { + select: WebauthnCredentialsModuleEdgeSelect; }; }; -export interface DeleteUserSettingsModulePayload { +export interface DeleteWebauthnCredentialsModulePayload { clientMutationId?: string | null; - /** The `UserSettingsModule` that was deleted by this mutation. */ - userSettingsModule?: UserSettingsModule | null; - userSettingsModuleEdge?: UserSettingsModuleEdge | null; + /** The `WebauthnCredentialsModule` that was deleted by this mutation. */ + webauthnCredentialsModule?: WebauthnCredentialsModule | null; + webauthnCredentialsModuleEdge?: WebauthnCredentialsModuleEdge | null; } -export type DeleteUserSettingsModulePayloadSelect = { +export type DeleteWebauthnCredentialsModulePayloadSelect = { clientMutationId?: boolean; - userSettingsModule?: { - select: UserSettingsModuleSelect; + webauthnCredentialsModule?: { + select: WebauthnCredentialsModuleSelect; }; - userSettingsModuleEdge?: { - select: UserSettingsModuleEdgeSelect; + webauthnCredentialsModuleEdge?: { + select: WebauthnCredentialsModuleEdgeSelect; }; }; export interface CreateConfigSecretsUserModulePayload { @@ -13952,364 +15489,409 @@ export type DeleteConfigSecretsUserModulePayloadSelect = { select: ConfigSecretsUserModuleEdgeSelect; }; }; -export interface CreateConnectedAccountsModulePayload { +export interface CreateCryptoAddressesModulePayload { clientMutationId?: string | null; - /** The `ConnectedAccountsModule` that was created by this mutation. */ - connectedAccountsModule?: ConnectedAccountsModule | null; - connectedAccountsModuleEdge?: ConnectedAccountsModuleEdge | null; + /** The `CryptoAddressesModule` that was created by this mutation. */ + cryptoAddressesModule?: CryptoAddressesModule | null; + cryptoAddressesModuleEdge?: CryptoAddressesModuleEdge | null; } -export type CreateConnectedAccountsModulePayloadSelect = { +export type CreateCryptoAddressesModulePayloadSelect = { clientMutationId?: boolean; - connectedAccountsModule?: { - select: ConnectedAccountsModuleSelect; + cryptoAddressesModule?: { + select: CryptoAddressesModuleSelect; }; - connectedAccountsModuleEdge?: { - select: ConnectedAccountsModuleEdgeSelect; + cryptoAddressesModuleEdge?: { + select: CryptoAddressesModuleEdgeSelect; }; }; -export interface UpdateConnectedAccountsModulePayload { +export interface UpdateCryptoAddressesModulePayload { clientMutationId?: string | null; - /** The `ConnectedAccountsModule` that was updated by this mutation. */ - connectedAccountsModule?: ConnectedAccountsModule | null; - connectedAccountsModuleEdge?: ConnectedAccountsModuleEdge | null; + /** The `CryptoAddressesModule` that was updated by this mutation. */ + cryptoAddressesModule?: CryptoAddressesModule | null; + cryptoAddressesModuleEdge?: CryptoAddressesModuleEdge | null; } -export type UpdateConnectedAccountsModulePayloadSelect = { +export type UpdateCryptoAddressesModulePayloadSelect = { clientMutationId?: boolean; - connectedAccountsModule?: { - select: ConnectedAccountsModuleSelect; + cryptoAddressesModule?: { + select: CryptoAddressesModuleSelect; }; - connectedAccountsModuleEdge?: { - select: ConnectedAccountsModuleEdgeSelect; + cryptoAddressesModuleEdge?: { + select: CryptoAddressesModuleEdgeSelect; }; }; -export interface DeleteConnectedAccountsModulePayload { +export interface DeleteCryptoAddressesModulePayload { clientMutationId?: string | null; - /** The `ConnectedAccountsModule` that was deleted by this mutation. */ - connectedAccountsModule?: ConnectedAccountsModule | null; - connectedAccountsModuleEdge?: ConnectedAccountsModuleEdge | null; + /** The `CryptoAddressesModule` that was deleted by this mutation. */ + cryptoAddressesModule?: CryptoAddressesModule | null; + cryptoAddressesModuleEdge?: CryptoAddressesModuleEdge | null; } -export type DeleteConnectedAccountsModulePayloadSelect = { +export type DeleteCryptoAddressesModulePayloadSelect = { clientMutationId?: boolean; - connectedAccountsModule?: { - select: ConnectedAccountsModuleSelect; + cryptoAddressesModule?: { + select: CryptoAddressesModuleSelect; }; - connectedAccountsModuleEdge?: { - select: ConnectedAccountsModuleEdgeSelect; + cryptoAddressesModuleEdge?: { + select: CryptoAddressesModuleEdgeSelect; }; }; -export interface CreateEmailsModulePayload { +export interface CreateDenormalizedTableFieldPayload { clientMutationId?: string | null; - /** The `EmailsModule` that was created by this mutation. */ - emailsModule?: EmailsModule | null; - emailsModuleEdge?: EmailsModuleEdge | null; + /** The `DenormalizedTableField` that was created by this mutation. */ + denormalizedTableField?: DenormalizedTableField | null; + denormalizedTableFieldEdge?: DenormalizedTableFieldEdge | null; } -export type CreateEmailsModulePayloadSelect = { +export type CreateDenormalizedTableFieldPayloadSelect = { clientMutationId?: boolean; - emailsModule?: { - select: EmailsModuleSelect; + denormalizedTableField?: { + select: DenormalizedTableFieldSelect; }; - emailsModuleEdge?: { - select: EmailsModuleEdgeSelect; + denormalizedTableFieldEdge?: { + select: DenormalizedTableFieldEdgeSelect; }; }; -export interface UpdateEmailsModulePayload { +export interface UpdateDenormalizedTableFieldPayload { clientMutationId?: string | null; - /** The `EmailsModule` that was updated by this mutation. */ - emailsModule?: EmailsModule | null; - emailsModuleEdge?: EmailsModuleEdge | null; + /** The `DenormalizedTableField` that was updated by this mutation. */ + denormalizedTableField?: DenormalizedTableField | null; + denormalizedTableFieldEdge?: DenormalizedTableFieldEdge | null; } -export type UpdateEmailsModulePayloadSelect = { +export type UpdateDenormalizedTableFieldPayloadSelect = { clientMutationId?: boolean; - emailsModule?: { - select: EmailsModuleSelect; + denormalizedTableField?: { + select: DenormalizedTableFieldSelect; }; - emailsModuleEdge?: { - select: EmailsModuleEdgeSelect; + denormalizedTableFieldEdge?: { + select: DenormalizedTableFieldEdgeSelect; }; }; -export interface DeleteEmailsModulePayload { +export interface DeleteDenormalizedTableFieldPayload { clientMutationId?: string | null; - /** The `EmailsModule` that was deleted by this mutation. */ - emailsModule?: EmailsModule | null; - emailsModuleEdge?: EmailsModuleEdge | null; + /** The `DenormalizedTableField` that was deleted by this mutation. */ + denormalizedTableField?: DenormalizedTableField | null; + denormalizedTableFieldEdge?: DenormalizedTableFieldEdge | null; } -export type DeleteEmailsModulePayloadSelect = { +export type DeleteDenormalizedTableFieldPayloadSelect = { clientMutationId?: boolean; - emailsModule?: { - select: EmailsModuleSelect; + denormalizedTableField?: { + select: DenormalizedTableFieldSelect; }; - emailsModuleEdge?: { - select: EmailsModuleEdgeSelect; + denormalizedTableFieldEdge?: { + select: DenormalizedTableFieldEdgeSelect; }; }; -export interface CreatePhoneNumbersModulePayload { +export interface CreateRlsModulePayload { clientMutationId?: string | null; - /** The `PhoneNumbersModule` that was created by this mutation. */ - phoneNumbersModule?: PhoneNumbersModule | null; - phoneNumbersModuleEdge?: PhoneNumbersModuleEdge | null; + /** The `RlsModule` that was created by this mutation. */ + rlsModule?: RlsModule | null; + rlsModuleEdge?: RlsModuleEdge | null; } -export type CreatePhoneNumbersModulePayloadSelect = { +export type CreateRlsModulePayloadSelect = { clientMutationId?: boolean; - phoneNumbersModule?: { - select: PhoneNumbersModuleSelect; + rlsModule?: { + select: RlsModuleSelect; + }; + rlsModuleEdge?: { + select: RlsModuleEdgeSelect; + }; +}; +export interface UpdateRlsModulePayload { + clientMutationId?: string | null; + /** The `RlsModule` that was updated by this mutation. */ + rlsModule?: RlsModule | null; + rlsModuleEdge?: RlsModuleEdge | null; +} +export type UpdateRlsModulePayloadSelect = { + clientMutationId?: boolean; + rlsModule?: { + select: RlsModuleSelect; + }; + rlsModuleEdge?: { + select: RlsModuleEdgeSelect; + }; +}; +export interface DeleteRlsModulePayload { + clientMutationId?: string | null; + /** The `RlsModule` that was deleted by this mutation. */ + rlsModule?: RlsModule | null; + rlsModuleEdge?: RlsModuleEdge | null; +} +export type DeleteRlsModulePayloadSelect = { + clientMutationId?: boolean; + rlsModule?: { + select: RlsModuleSelect; + }; + rlsModuleEdge?: { + select: RlsModuleEdgeSelect; + }; +}; +export interface CreateBlueprintPayload { + clientMutationId?: string | null; + /** The `Blueprint` that was created by this mutation. */ + blueprint?: Blueprint | null; + blueprintEdge?: BlueprintEdge | null; +} +export type CreateBlueprintPayloadSelect = { + clientMutationId?: boolean; + blueprint?: { + select: BlueprintSelect; }; - phoneNumbersModuleEdge?: { - select: PhoneNumbersModuleEdgeSelect; + blueprintEdge?: { + select: BlueprintEdgeSelect; }; }; -export interface UpdatePhoneNumbersModulePayload { +export interface UpdateBlueprintPayload { clientMutationId?: string | null; - /** The `PhoneNumbersModule` that was updated by this mutation. */ - phoneNumbersModule?: PhoneNumbersModule | null; - phoneNumbersModuleEdge?: PhoneNumbersModuleEdge | null; + /** The `Blueprint` that was updated by this mutation. */ + blueprint?: Blueprint | null; + blueprintEdge?: BlueprintEdge | null; } -export type UpdatePhoneNumbersModulePayloadSelect = { +export type UpdateBlueprintPayloadSelect = { clientMutationId?: boolean; - phoneNumbersModule?: { - select: PhoneNumbersModuleSelect; + blueprint?: { + select: BlueprintSelect; }; - phoneNumbersModuleEdge?: { - select: PhoneNumbersModuleEdgeSelect; + blueprintEdge?: { + select: BlueprintEdgeSelect; }; }; -export interface DeletePhoneNumbersModulePayload { +export interface DeleteBlueprintPayload { clientMutationId?: string | null; - /** The `PhoneNumbersModule` that was deleted by this mutation. */ - phoneNumbersModule?: PhoneNumbersModule | null; - phoneNumbersModuleEdge?: PhoneNumbersModuleEdge | null; + /** The `Blueprint` that was deleted by this mutation. */ + blueprint?: Blueprint | null; + blueprintEdge?: BlueprintEdge | null; } -export type DeletePhoneNumbersModulePayloadSelect = { +export type DeleteBlueprintPayloadSelect = { clientMutationId?: boolean; - phoneNumbersModule?: { - select: PhoneNumbersModuleSelect; + blueprint?: { + select: BlueprintSelect; }; - phoneNumbersModuleEdge?: { - select: PhoneNumbersModuleEdgeSelect; + blueprintEdge?: { + select: BlueprintEdgeSelect; }; }; -export interface CreateRateLimitsModulePayload { +export interface CreateBlueprintTemplatePayload { clientMutationId?: string | null; - /** The `RateLimitsModule` that was created by this mutation. */ - rateLimitsModule?: RateLimitsModule | null; - rateLimitsModuleEdge?: RateLimitsModuleEdge | null; + /** The `BlueprintTemplate` that was created by this mutation. */ + blueprintTemplate?: BlueprintTemplate | null; + blueprintTemplateEdge?: BlueprintTemplateEdge | null; } -export type CreateRateLimitsModulePayloadSelect = { +export type CreateBlueprintTemplatePayloadSelect = { clientMutationId?: boolean; - rateLimitsModule?: { - select: RateLimitsModuleSelect; + blueprintTemplate?: { + select: BlueprintTemplateSelect; }; - rateLimitsModuleEdge?: { - select: RateLimitsModuleEdgeSelect; + blueprintTemplateEdge?: { + select: BlueprintTemplateEdgeSelect; }; }; -export interface UpdateRateLimitsModulePayload { +export interface UpdateBlueprintTemplatePayload { clientMutationId?: string | null; - /** The `RateLimitsModule` that was updated by this mutation. */ - rateLimitsModule?: RateLimitsModule | null; - rateLimitsModuleEdge?: RateLimitsModuleEdge | null; + /** The `BlueprintTemplate` that was updated by this mutation. */ + blueprintTemplate?: BlueprintTemplate | null; + blueprintTemplateEdge?: BlueprintTemplateEdge | null; } -export type UpdateRateLimitsModulePayloadSelect = { +export type UpdateBlueprintTemplatePayloadSelect = { clientMutationId?: boolean; - rateLimitsModule?: { - select: RateLimitsModuleSelect; + blueprintTemplate?: { + select: BlueprintTemplateSelect; }; - rateLimitsModuleEdge?: { - select: RateLimitsModuleEdgeSelect; + blueprintTemplateEdge?: { + select: BlueprintTemplateEdgeSelect; }; }; -export interface DeleteRateLimitsModulePayload { +export interface DeleteBlueprintTemplatePayload { clientMutationId?: string | null; - /** The `RateLimitsModule` that was deleted by this mutation. */ - rateLimitsModule?: RateLimitsModule | null; - rateLimitsModuleEdge?: RateLimitsModuleEdge | null; + /** The `BlueprintTemplate` that was deleted by this mutation. */ + blueprintTemplate?: BlueprintTemplate | null; + blueprintTemplateEdge?: BlueprintTemplateEdge | null; } -export type DeleteRateLimitsModulePayloadSelect = { +export type DeleteBlueprintTemplatePayloadSelect = { clientMutationId?: boolean; - rateLimitsModule?: { - select: RateLimitsModuleSelect; + blueprintTemplate?: { + select: BlueprintTemplateSelect; }; - rateLimitsModuleEdge?: { - select: RateLimitsModuleEdgeSelect; + blueprintTemplateEdge?: { + select: BlueprintTemplateEdgeSelect; }; }; -export interface CreateUsersModulePayload { +export interface CreateBlueprintConstructionPayload { clientMutationId?: string | null; - /** The `UsersModule` that was created by this mutation. */ - usersModule?: UsersModule | null; - usersModuleEdge?: UsersModuleEdge | null; + /** The `BlueprintConstruction` that was created by this mutation. */ + blueprintConstruction?: BlueprintConstruction | null; + blueprintConstructionEdge?: BlueprintConstructionEdge | null; } -export type CreateUsersModulePayloadSelect = { +export type CreateBlueprintConstructionPayloadSelect = { clientMutationId?: boolean; - usersModule?: { - select: UsersModuleSelect; + blueprintConstruction?: { + select: BlueprintConstructionSelect; }; - usersModuleEdge?: { - select: UsersModuleEdgeSelect; + blueprintConstructionEdge?: { + select: BlueprintConstructionEdgeSelect; }; }; -export interface UpdateUsersModulePayload { +export interface UpdateBlueprintConstructionPayload { clientMutationId?: string | null; - /** The `UsersModule` that was updated by this mutation. */ - usersModule?: UsersModule | null; - usersModuleEdge?: UsersModuleEdge | null; + /** The `BlueprintConstruction` that was updated by this mutation. */ + blueprintConstruction?: BlueprintConstruction | null; + blueprintConstructionEdge?: BlueprintConstructionEdge | null; } -export type UpdateUsersModulePayloadSelect = { +export type UpdateBlueprintConstructionPayloadSelect = { clientMutationId?: boolean; - usersModule?: { - select: UsersModuleSelect; + blueprintConstruction?: { + select: BlueprintConstructionSelect; }; - usersModuleEdge?: { - select: UsersModuleEdgeSelect; + blueprintConstructionEdge?: { + select: BlueprintConstructionEdgeSelect; }; }; -export interface DeleteUsersModulePayload { +export interface DeleteBlueprintConstructionPayload { clientMutationId?: string | null; - /** The `UsersModule` that was deleted by this mutation. */ - usersModule?: UsersModule | null; - usersModuleEdge?: UsersModuleEdge | null; + /** The `BlueprintConstruction` that was deleted by this mutation. */ + blueprintConstruction?: BlueprintConstruction | null; + blueprintConstructionEdge?: BlueprintConstructionEdge | null; } -export type DeleteUsersModulePayloadSelect = { +export type DeleteBlueprintConstructionPayloadSelect = { clientMutationId?: boolean; - usersModule?: { - select: UsersModuleSelect; + blueprintConstruction?: { + select: BlueprintConstructionSelect; }; - usersModuleEdge?: { - select: UsersModuleEdgeSelect; + blueprintConstructionEdge?: { + select: BlueprintConstructionEdgeSelect; }; }; -export interface CreateWebauthnCredentialsModulePayload { +export interface CreateCryptoAuthModulePayload { clientMutationId?: string | null; - /** The `WebauthnCredentialsModule` that was created by this mutation. */ - webauthnCredentialsModule?: WebauthnCredentialsModule | null; - webauthnCredentialsModuleEdge?: WebauthnCredentialsModuleEdge | null; + /** The `CryptoAuthModule` that was created by this mutation. */ + cryptoAuthModule?: CryptoAuthModule | null; + cryptoAuthModuleEdge?: CryptoAuthModuleEdge | null; } -export type CreateWebauthnCredentialsModulePayloadSelect = { +export type CreateCryptoAuthModulePayloadSelect = { clientMutationId?: boolean; - webauthnCredentialsModule?: { - select: WebauthnCredentialsModuleSelect; + cryptoAuthModule?: { + select: CryptoAuthModuleSelect; }; - webauthnCredentialsModuleEdge?: { - select: WebauthnCredentialsModuleEdgeSelect; + cryptoAuthModuleEdge?: { + select: CryptoAuthModuleEdgeSelect; }; }; -export interface UpdateWebauthnCredentialsModulePayload { +export interface UpdateCryptoAuthModulePayload { clientMutationId?: string | null; - /** The `WebauthnCredentialsModule` that was updated by this mutation. */ - webauthnCredentialsModule?: WebauthnCredentialsModule | null; - webauthnCredentialsModuleEdge?: WebauthnCredentialsModuleEdge | null; + /** The `CryptoAuthModule` that was updated by this mutation. */ + cryptoAuthModule?: CryptoAuthModule | null; + cryptoAuthModuleEdge?: CryptoAuthModuleEdge | null; } -export type UpdateWebauthnCredentialsModulePayloadSelect = { +export type UpdateCryptoAuthModulePayloadSelect = { clientMutationId?: boolean; - webauthnCredentialsModule?: { - select: WebauthnCredentialsModuleSelect; + cryptoAuthModule?: { + select: CryptoAuthModuleSelect; }; - webauthnCredentialsModuleEdge?: { - select: WebauthnCredentialsModuleEdgeSelect; + cryptoAuthModuleEdge?: { + select: CryptoAuthModuleEdgeSelect; }; }; -export interface DeleteWebauthnCredentialsModulePayload { +export interface DeleteCryptoAuthModulePayload { clientMutationId?: string | null; - /** The `WebauthnCredentialsModule` that was deleted by this mutation. */ - webauthnCredentialsModule?: WebauthnCredentialsModule | null; - webauthnCredentialsModuleEdge?: WebauthnCredentialsModuleEdge | null; + /** The `CryptoAuthModule` that was deleted by this mutation. */ + cryptoAuthModule?: CryptoAuthModule | null; + cryptoAuthModuleEdge?: CryptoAuthModuleEdge | null; } -export type DeleteWebauthnCredentialsModulePayloadSelect = { +export type DeleteCryptoAuthModulePayloadSelect = { clientMutationId?: boolean; - webauthnCredentialsModule?: { - select: WebauthnCredentialsModuleSelect; + cryptoAuthModule?: { + select: CryptoAuthModuleSelect; }; - webauthnCredentialsModuleEdge?: { - select: WebauthnCredentialsModuleEdgeSelect; + cryptoAuthModuleEdge?: { + select: CryptoAuthModuleEdgeSelect; }; }; -export interface CreateCryptoAddressesModulePayload { +export interface CreateSessionsModulePayload { clientMutationId?: string | null; - /** The `CryptoAddressesModule` that was created by this mutation. */ - cryptoAddressesModule?: CryptoAddressesModule | null; - cryptoAddressesModuleEdge?: CryptoAddressesModuleEdge | null; + /** The `SessionsModule` that was created by this mutation. */ + sessionsModule?: SessionsModule | null; + sessionsModuleEdge?: SessionsModuleEdge | null; } -export type CreateCryptoAddressesModulePayloadSelect = { +export type CreateSessionsModulePayloadSelect = { clientMutationId?: boolean; - cryptoAddressesModule?: { - select: CryptoAddressesModuleSelect; + sessionsModule?: { + select: SessionsModuleSelect; }; - cryptoAddressesModuleEdge?: { - select: CryptoAddressesModuleEdgeSelect; + sessionsModuleEdge?: { + select: SessionsModuleEdgeSelect; }; }; -export interface UpdateCryptoAddressesModulePayload { +export interface UpdateSessionsModulePayload { clientMutationId?: string | null; - /** The `CryptoAddressesModule` that was updated by this mutation. */ - cryptoAddressesModule?: CryptoAddressesModule | null; - cryptoAddressesModuleEdge?: CryptoAddressesModuleEdge | null; + /** The `SessionsModule` that was updated by this mutation. */ + sessionsModule?: SessionsModule | null; + sessionsModuleEdge?: SessionsModuleEdge | null; } -export type UpdateCryptoAddressesModulePayloadSelect = { +export type UpdateSessionsModulePayloadSelect = { clientMutationId?: boolean; - cryptoAddressesModule?: { - select: CryptoAddressesModuleSelect; + sessionsModule?: { + select: SessionsModuleSelect; }; - cryptoAddressesModuleEdge?: { - select: CryptoAddressesModuleEdgeSelect; + sessionsModuleEdge?: { + select: SessionsModuleEdgeSelect; }; }; -export interface DeleteCryptoAddressesModulePayload { +export interface DeleteSessionsModulePayload { clientMutationId?: string | null; - /** The `CryptoAddressesModule` that was deleted by this mutation. */ - cryptoAddressesModule?: CryptoAddressesModule | null; - cryptoAddressesModuleEdge?: CryptoAddressesModuleEdge | null; + /** The `SessionsModule` that was deleted by this mutation. */ + sessionsModule?: SessionsModule | null; + sessionsModuleEdge?: SessionsModuleEdge | null; } -export type DeleteCryptoAddressesModulePayloadSelect = { +export type DeleteSessionsModulePayloadSelect = { clientMutationId?: boolean; - cryptoAddressesModule?: { - select: CryptoAddressesModuleSelect; + sessionsModule?: { + select: SessionsModuleSelect; }; - cryptoAddressesModuleEdge?: { - select: CryptoAddressesModuleEdgeSelect; + sessionsModuleEdge?: { + select: SessionsModuleEdgeSelect; }; }; -export interface CreateDenormalizedTableFieldPayload { +export interface CreateSecureTableProvisionPayload { clientMutationId?: string | null; - /** The `DenormalizedTableField` that was created by this mutation. */ - denormalizedTableField?: DenormalizedTableField | null; - denormalizedTableFieldEdge?: DenormalizedTableFieldEdge | null; + /** The `SecureTableProvision` that was created by this mutation. */ + secureTableProvision?: SecureTableProvision | null; + secureTableProvisionEdge?: SecureTableProvisionEdge | null; } -export type CreateDenormalizedTableFieldPayloadSelect = { +export type CreateSecureTableProvisionPayloadSelect = { clientMutationId?: boolean; - denormalizedTableField?: { - select: DenormalizedTableFieldSelect; + secureTableProvision?: { + select: SecureTableProvisionSelect; }; - denormalizedTableFieldEdge?: { - select: DenormalizedTableFieldEdgeSelect; + secureTableProvisionEdge?: { + select: SecureTableProvisionEdgeSelect; }; }; -export interface UpdateDenormalizedTableFieldPayload { +export interface UpdateSecureTableProvisionPayload { clientMutationId?: string | null; - /** The `DenormalizedTableField` that was updated by this mutation. */ - denormalizedTableField?: DenormalizedTableField | null; - denormalizedTableFieldEdge?: DenormalizedTableFieldEdge | null; + /** The `SecureTableProvision` that was updated by this mutation. */ + secureTableProvision?: SecureTableProvision | null; + secureTableProvisionEdge?: SecureTableProvisionEdge | null; } -export type UpdateDenormalizedTableFieldPayloadSelect = { +export type UpdateSecureTableProvisionPayloadSelect = { clientMutationId?: boolean; - denormalizedTableField?: { - select: DenormalizedTableFieldSelect; + secureTableProvision?: { + select: SecureTableProvisionSelect; }; - denormalizedTableFieldEdge?: { - select: DenormalizedTableFieldEdgeSelect; + secureTableProvisionEdge?: { + select: SecureTableProvisionEdgeSelect; }; }; -export interface DeleteDenormalizedTableFieldPayload { +export interface DeleteSecureTableProvisionPayload { clientMutationId?: string | null; - /** The `DenormalizedTableField` that was deleted by this mutation. */ - denormalizedTableField?: DenormalizedTableField | null; - denormalizedTableFieldEdge?: DenormalizedTableFieldEdge | null; + /** The `SecureTableProvision` that was deleted by this mutation. */ + secureTableProvision?: SecureTableProvision | null; + secureTableProvisionEdge?: SecureTableProvisionEdge | null; } -export type DeleteDenormalizedTableFieldPayloadSelect = { +export type DeleteSecureTableProvisionPayloadSelect = { clientMutationId?: boolean; - denormalizedTableField?: { - select: DenormalizedTableFieldSelect; + secureTableProvision?: { + select: SecureTableProvisionSelect; }; - denormalizedTableFieldEdge?: { - select: DenormalizedTableFieldEdgeSelect; + secureTableProvisionEdge?: { + select: SecureTableProvisionEdgeSelect; }; }; export interface CreateIdentityProvidersModulePayload { @@ -14357,454 +15939,589 @@ export type DeleteIdentityProvidersModulePayloadSelect = { select: IdentityProvidersModuleEdgeSelect; }; }; -export interface CreateRlsModulePayload { +export interface CreateIntegrationProvidersModulePayload { clientMutationId?: string | null; - /** The `RlsModule` that was created by this mutation. */ - rlsModule?: RlsModule | null; - rlsModuleEdge?: RlsModuleEdge | null; + /** The `IntegrationProvidersModule` that was created by this mutation. */ + integrationProvidersModule?: IntegrationProvidersModule | null; + integrationProvidersModuleEdge?: IntegrationProvidersModuleEdge | null; } -export type CreateRlsModulePayloadSelect = { +export type CreateIntegrationProvidersModulePayloadSelect = { clientMutationId?: boolean; - rlsModule?: { - select: RlsModuleSelect; + integrationProvidersModule?: { + select: IntegrationProvidersModuleSelect; }; - rlsModuleEdge?: { - select: RlsModuleEdgeSelect; + integrationProvidersModuleEdge?: { + select: IntegrationProvidersModuleEdgeSelect; }; }; -export interface UpdateRlsModulePayload { +export interface UpdateIntegrationProvidersModulePayload { clientMutationId?: string | null; - /** The `RlsModule` that was updated by this mutation. */ - rlsModule?: RlsModule | null; - rlsModuleEdge?: RlsModuleEdge | null; + /** The `IntegrationProvidersModule` that was updated by this mutation. */ + integrationProvidersModule?: IntegrationProvidersModule | null; + integrationProvidersModuleEdge?: IntegrationProvidersModuleEdge | null; } -export type UpdateRlsModulePayloadSelect = { +export type UpdateIntegrationProvidersModulePayloadSelect = { clientMutationId?: boolean; - rlsModule?: { - select: RlsModuleSelect; + integrationProvidersModule?: { + select: IntegrationProvidersModuleSelect; }; - rlsModuleEdge?: { - select: RlsModuleEdgeSelect; + integrationProvidersModuleEdge?: { + select: IntegrationProvidersModuleEdgeSelect; }; }; -export interface DeleteRlsModulePayload { +export interface DeleteIntegrationProvidersModulePayload { clientMutationId?: string | null; - /** The `RlsModule` that was deleted by this mutation. */ - rlsModule?: RlsModule | null; - rlsModuleEdge?: RlsModuleEdge | null; + /** The `IntegrationProvidersModule` that was deleted by this mutation. */ + integrationProvidersModule?: IntegrationProvidersModule | null; + integrationProvidersModuleEdge?: IntegrationProvidersModuleEdge | null; } -export type DeleteRlsModulePayloadSelect = { +export type DeleteIntegrationProvidersModulePayloadSelect = { clientMutationId?: boolean; - rlsModule?: { - select: RlsModuleSelect; + integrationProvidersModule?: { + select: IntegrationProvidersModuleSelect; }; - rlsModuleEdge?: { - select: RlsModuleEdgeSelect; + integrationProvidersModuleEdge?: { + select: IntegrationProvidersModuleEdgeSelect; }; }; -export interface CreateBlueprintPayload { +export interface CreateDbPoolConfigPayload { clientMutationId?: string | null; - /** The `Blueprint` that was created by this mutation. */ - blueprint?: Blueprint | null; - blueprintEdge?: BlueprintEdge | null; + /** The `DbPoolConfig` that was created by this mutation. */ + dbPoolConfig?: DbPoolConfig | null; + dbPoolConfigEdge?: DbPoolConfigEdge | null; } -export type CreateBlueprintPayloadSelect = { +export type CreateDbPoolConfigPayloadSelect = { clientMutationId?: boolean; - blueprint?: { - select: BlueprintSelect; + dbPoolConfig?: { + select: DbPoolConfigSelect; }; - blueprintEdge?: { - select: BlueprintEdgeSelect; + dbPoolConfigEdge?: { + select: DbPoolConfigEdgeSelect; }; }; -export interface UpdateBlueprintPayload { +export interface UpdateDbPoolConfigPayload { clientMutationId?: string | null; - /** The `Blueprint` that was updated by this mutation. */ - blueprint?: Blueprint | null; - blueprintEdge?: BlueprintEdge | null; + /** The `DbPoolConfig` that was updated by this mutation. */ + dbPoolConfig?: DbPoolConfig | null; + dbPoolConfigEdge?: DbPoolConfigEdge | null; } -export type UpdateBlueprintPayloadSelect = { +export type UpdateDbPoolConfigPayloadSelect = { clientMutationId?: boolean; - blueprint?: { - select: BlueprintSelect; + dbPoolConfig?: { + select: DbPoolConfigSelect; }; - blueprintEdge?: { - select: BlueprintEdgeSelect; + dbPoolConfigEdge?: { + select: DbPoolConfigEdgeSelect; }; }; -export interface DeleteBlueprintPayload { +export interface DeleteDbPoolConfigPayload { clientMutationId?: string | null; - /** The `Blueprint` that was deleted by this mutation. */ - blueprint?: Blueprint | null; - blueprintEdge?: BlueprintEdge | null; + /** The `DbPoolConfig` that was deleted by this mutation. */ + dbPoolConfig?: DbPoolConfig | null; + dbPoolConfigEdge?: DbPoolConfigEdge | null; } -export type DeleteBlueprintPayloadSelect = { +export type DeleteDbPoolConfigPayloadSelect = { clientMutationId?: boolean; - blueprint?: { - select: BlueprintSelect; + dbPoolConfig?: { + select: DbPoolConfigSelect; }; - blueprintEdge?: { - select: BlueprintEdgeSelect; + dbPoolConfigEdge?: { + select: DbPoolConfigEdgeSelect; }; }; -export interface CreateBlueprintTemplatePayload { +export interface CreateRealtimeModulePayload { clientMutationId?: string | null; - /** The `BlueprintTemplate` that was created by this mutation. */ - blueprintTemplate?: BlueprintTemplate | null; - blueprintTemplateEdge?: BlueprintTemplateEdge | null; + /** The `RealtimeModule` that was created by this mutation. */ + realtimeModule?: RealtimeModule | null; + realtimeModuleEdge?: RealtimeModuleEdge | null; } -export type CreateBlueprintTemplatePayloadSelect = { +export type CreateRealtimeModulePayloadSelect = { clientMutationId?: boolean; - blueprintTemplate?: { - select: BlueprintTemplateSelect; + realtimeModule?: { + select: RealtimeModuleSelect; }; - blueprintTemplateEdge?: { - select: BlueprintTemplateEdgeSelect; + realtimeModuleEdge?: { + select: RealtimeModuleEdgeSelect; }; }; -export interface UpdateBlueprintTemplatePayload { +export interface UpdateRealtimeModulePayload { clientMutationId?: string | null; - /** The `BlueprintTemplate` that was updated by this mutation. */ - blueprintTemplate?: BlueprintTemplate | null; - blueprintTemplateEdge?: BlueprintTemplateEdge | null; + /** The `RealtimeModule` that was updated by this mutation. */ + realtimeModule?: RealtimeModule | null; + realtimeModuleEdge?: RealtimeModuleEdge | null; } -export type UpdateBlueprintTemplatePayloadSelect = { +export type UpdateRealtimeModulePayloadSelect = { clientMutationId?: boolean; - blueprintTemplate?: { - select: BlueprintTemplateSelect; + realtimeModule?: { + select: RealtimeModuleSelect; }; - blueprintTemplateEdge?: { - select: BlueprintTemplateEdgeSelect; + realtimeModuleEdge?: { + select: RealtimeModuleEdgeSelect; }; }; -export interface DeleteBlueprintTemplatePayload { +export interface DeleteRealtimeModulePayload { clientMutationId?: string | null; - /** The `BlueprintTemplate` that was deleted by this mutation. */ - blueprintTemplate?: BlueprintTemplate | null; - blueprintTemplateEdge?: BlueprintTemplateEdge | null; + /** The `RealtimeModule` that was deleted by this mutation. */ + realtimeModule?: RealtimeModule | null; + realtimeModuleEdge?: RealtimeModuleEdge | null; } -export type DeleteBlueprintTemplatePayloadSelect = { +export type DeleteRealtimeModulePayloadSelect = { clientMutationId?: boolean; - blueprintTemplate?: { - select: BlueprintTemplateSelect; + realtimeModule?: { + select: RealtimeModuleSelect; }; - blueprintTemplateEdge?: { - select: BlueprintTemplateEdgeSelect; + realtimeModuleEdge?: { + select: RealtimeModuleEdgeSelect; }; }; -export interface CreateBlueprintConstructionPayload { +export interface CreateInfraSecretsModulePayload { clientMutationId?: string | null; - /** The `BlueprintConstruction` that was created by this mutation. */ - blueprintConstruction?: BlueprintConstruction | null; - blueprintConstructionEdge?: BlueprintConstructionEdge | null; + /** The `InfraSecretsModule` that was created by this mutation. */ + infraSecretsModule?: InfraSecretsModule | null; + infraSecretsModuleEdge?: InfraSecretsModuleEdge | null; } -export type CreateBlueprintConstructionPayloadSelect = { +export type CreateInfraSecretsModulePayloadSelect = { clientMutationId?: boolean; - blueprintConstruction?: { - select: BlueprintConstructionSelect; + infraSecretsModule?: { + select: InfraSecretsModuleSelect; }; - blueprintConstructionEdge?: { - select: BlueprintConstructionEdgeSelect; + infraSecretsModuleEdge?: { + select: InfraSecretsModuleEdgeSelect; }; }; -export interface UpdateBlueprintConstructionPayload { +export interface UpdateInfraSecretsModulePayload { clientMutationId?: string | null; - /** The `BlueprintConstruction` that was updated by this mutation. */ - blueprintConstruction?: BlueprintConstruction | null; - blueprintConstructionEdge?: BlueprintConstructionEdge | null; + /** The `InfraSecretsModule` that was updated by this mutation. */ + infraSecretsModule?: InfraSecretsModule | null; + infraSecretsModuleEdge?: InfraSecretsModuleEdge | null; } -export type UpdateBlueprintConstructionPayloadSelect = { +export type UpdateInfraSecretsModulePayloadSelect = { clientMutationId?: boolean; - blueprintConstruction?: { - select: BlueprintConstructionSelect; + infraSecretsModule?: { + select: InfraSecretsModuleSelect; }; - blueprintConstructionEdge?: { - select: BlueprintConstructionEdgeSelect; + infraSecretsModuleEdge?: { + select: InfraSecretsModuleEdgeSelect; }; }; -export interface DeleteBlueprintConstructionPayload { +export interface DeleteInfraSecretsModulePayload { clientMutationId?: string | null; - /** The `BlueprintConstruction` that was deleted by this mutation. */ - blueprintConstruction?: BlueprintConstruction | null; - blueprintConstructionEdge?: BlueprintConstructionEdge | null; + /** The `InfraSecretsModule` that was deleted by this mutation. */ + infraSecretsModule?: InfraSecretsModule | null; + infraSecretsModuleEdge?: InfraSecretsModuleEdge | null; +} +export type DeleteInfraSecretsModulePayloadSelect = { + clientMutationId?: boolean; + infraSecretsModule?: { + select: InfraSecretsModuleSelect; + }; + infraSecretsModuleEdge?: { + select: InfraSecretsModuleEdgeSelect; + }; +}; +export interface CreateInternalSecretsModulePayload { + clientMutationId?: string | null; + /** The `InternalSecretsModule` that was created by this mutation. */ + internalSecretsModule?: InternalSecretsModule | null; + internalSecretsModuleEdge?: InternalSecretsModuleEdge | null; +} +export type CreateInternalSecretsModulePayloadSelect = { + clientMutationId?: boolean; + internalSecretsModule?: { + select: InternalSecretsModuleSelect; + }; + internalSecretsModuleEdge?: { + select: InternalSecretsModuleEdgeSelect; + }; +}; +export interface UpdateInternalSecretsModulePayload { + clientMutationId?: string | null; + /** The `InternalSecretsModule` that was updated by this mutation. */ + internalSecretsModule?: InternalSecretsModule | null; + internalSecretsModuleEdge?: InternalSecretsModuleEdge | null; +} +export type UpdateInternalSecretsModulePayloadSelect = { + clientMutationId?: boolean; + internalSecretsModule?: { + select: InternalSecretsModuleSelect; + }; + internalSecretsModuleEdge?: { + select: InternalSecretsModuleEdgeSelect; + }; +}; +export interface DeleteInternalSecretsModulePayload { + clientMutationId?: string | null; + /** The `InternalSecretsModule` that was deleted by this mutation. */ + internalSecretsModule?: InternalSecretsModule | null; + internalSecretsModuleEdge?: InternalSecretsModuleEdge | null; +} +export type DeleteInternalSecretsModulePayloadSelect = { + clientMutationId?: boolean; + internalSecretsModule?: { + select: InternalSecretsModuleSelect; + }; + internalSecretsModuleEdge?: { + select: InternalSecretsModuleEdgeSelect; + }; +}; +export interface CreateDbPresetModulePayload { + clientMutationId?: string | null; + /** The `DbPresetModule` that was created by this mutation. */ + dbPresetModule?: DbPresetModule | null; + dbPresetModuleEdge?: DbPresetModuleEdge | null; +} +export type CreateDbPresetModulePayloadSelect = { + clientMutationId?: boolean; + dbPresetModule?: { + select: DbPresetModuleSelect; + }; + dbPresetModuleEdge?: { + select: DbPresetModuleEdgeSelect; + }; +}; +export interface UpdateDbPresetModulePayload { + clientMutationId?: string | null; + /** The `DbPresetModule` that was updated by this mutation. */ + dbPresetModule?: DbPresetModule | null; + dbPresetModuleEdge?: DbPresetModuleEdge | null; +} +export type UpdateDbPresetModulePayloadSelect = { + clientMutationId?: boolean; + dbPresetModule?: { + select: DbPresetModuleSelect; + }; + dbPresetModuleEdge?: { + select: DbPresetModuleEdgeSelect; + }; +}; +export interface DeleteDbPresetModulePayload { + clientMutationId?: string | null; + /** The `DbPresetModule` that was deleted by this mutation. */ + dbPresetModule?: DbPresetModule | null; + dbPresetModuleEdge?: DbPresetModuleEdge | null; +} +export type DeleteDbPresetModulePayloadSelect = { + clientMutationId?: boolean; + dbPresetModule?: { + select: DbPresetModuleSelect; + }; + dbPresetModuleEdge?: { + select: DbPresetModuleEdgeSelect; + }; +}; +export interface CreateGraphModulePayload { + clientMutationId?: string | null; + /** The `GraphModule` that was created by this mutation. */ + graphModule?: GraphModule | null; + graphModuleEdge?: GraphModuleEdge | null; +} +export type CreateGraphModulePayloadSelect = { + clientMutationId?: boolean; + graphModule?: { + select: GraphModuleSelect; + }; + graphModuleEdge?: { + select: GraphModuleEdgeSelect; + }; +}; +export interface UpdateGraphModulePayload { + clientMutationId?: string | null; + /** The `GraphModule` that was updated by this mutation. */ + graphModule?: GraphModule | null; + graphModuleEdge?: GraphModuleEdge | null; +} +export type UpdateGraphModulePayloadSelect = { + clientMutationId?: boolean; + graphModule?: { + select: GraphModuleSelect; + }; + graphModuleEdge?: { + select: GraphModuleEdgeSelect; + }; +}; +export interface DeleteGraphModulePayload { + clientMutationId?: string | null; + /** The `GraphModule` that was deleted by this mutation. */ + graphModule?: GraphModule | null; + graphModuleEdge?: GraphModuleEdge | null; } -export type DeleteBlueprintConstructionPayloadSelect = { +export type DeleteGraphModulePayloadSelect = { clientMutationId?: boolean; - blueprintConstruction?: { - select: BlueprintConstructionSelect; + graphModule?: { + select: GraphModuleSelect; }; - blueprintConstructionEdge?: { - select: BlueprintConstructionEdgeSelect; + graphModuleEdge?: { + select: GraphModuleEdgeSelect; }; }; -export interface CreateCryptoAuthModulePayload { +export interface CreateRateLimitMetersModulePayload { clientMutationId?: string | null; - /** The `CryptoAuthModule` that was created by this mutation. */ - cryptoAuthModule?: CryptoAuthModule | null; - cryptoAuthModuleEdge?: CryptoAuthModuleEdge | null; + /** The `RateLimitMetersModule` that was created by this mutation. */ + rateLimitMetersModule?: RateLimitMetersModule | null; + rateLimitMetersModuleEdge?: RateLimitMetersModuleEdge | null; } -export type CreateCryptoAuthModulePayloadSelect = { +export type CreateRateLimitMetersModulePayloadSelect = { clientMutationId?: boolean; - cryptoAuthModule?: { - select: CryptoAuthModuleSelect; + rateLimitMetersModule?: { + select: RateLimitMetersModuleSelect; }; - cryptoAuthModuleEdge?: { - select: CryptoAuthModuleEdgeSelect; + rateLimitMetersModuleEdge?: { + select: RateLimitMetersModuleEdgeSelect; }; }; -export interface UpdateCryptoAuthModulePayload { +export interface UpdateRateLimitMetersModulePayload { clientMutationId?: string | null; - /** The `CryptoAuthModule` that was updated by this mutation. */ - cryptoAuthModule?: CryptoAuthModule | null; - cryptoAuthModuleEdge?: CryptoAuthModuleEdge | null; + /** The `RateLimitMetersModule` that was updated by this mutation. */ + rateLimitMetersModule?: RateLimitMetersModule | null; + rateLimitMetersModuleEdge?: RateLimitMetersModuleEdge | null; } -export type UpdateCryptoAuthModulePayloadSelect = { +export type UpdateRateLimitMetersModulePayloadSelect = { clientMutationId?: boolean; - cryptoAuthModule?: { - select: CryptoAuthModuleSelect; + rateLimitMetersModule?: { + select: RateLimitMetersModuleSelect; }; - cryptoAuthModuleEdge?: { - select: CryptoAuthModuleEdgeSelect; + rateLimitMetersModuleEdge?: { + select: RateLimitMetersModuleEdgeSelect; }; }; -export interface DeleteCryptoAuthModulePayload { +export interface DeleteRateLimitMetersModulePayload { clientMutationId?: string | null; - /** The `CryptoAuthModule` that was deleted by this mutation. */ - cryptoAuthModule?: CryptoAuthModule | null; - cryptoAuthModuleEdge?: CryptoAuthModuleEdge | null; + /** The `RateLimitMetersModule` that was deleted by this mutation. */ + rateLimitMetersModule?: RateLimitMetersModule | null; + rateLimitMetersModuleEdge?: RateLimitMetersModuleEdge | null; } -export type DeleteCryptoAuthModulePayloadSelect = { +export type DeleteRateLimitMetersModulePayloadSelect = { clientMutationId?: boolean; - cryptoAuthModule?: { - select: CryptoAuthModuleSelect; + rateLimitMetersModule?: { + select: RateLimitMetersModuleSelect; }; - cryptoAuthModuleEdge?: { - select: CryptoAuthModuleEdgeSelect; + rateLimitMetersModuleEdge?: { + select: RateLimitMetersModuleEdgeSelect; }; }; -export interface CreateSessionsModulePayload { +export interface CreateInfraConfigModulePayload { clientMutationId?: string | null; - /** The `SessionsModule` that was created by this mutation. */ - sessionsModule?: SessionsModule | null; - sessionsModuleEdge?: SessionsModuleEdge | null; + /** The `InfraConfigModule` that was created by this mutation. */ + infraConfigModule?: InfraConfigModule | null; + infraConfigModuleEdge?: InfraConfigModuleEdge | null; } -export type CreateSessionsModulePayloadSelect = { +export type CreateInfraConfigModulePayloadSelect = { clientMutationId?: boolean; - sessionsModule?: { - select: SessionsModuleSelect; + infraConfigModule?: { + select: InfraConfigModuleSelect; }; - sessionsModuleEdge?: { - select: SessionsModuleEdgeSelect; + infraConfigModuleEdge?: { + select: InfraConfigModuleEdgeSelect; }; }; -export interface UpdateSessionsModulePayload { +export interface UpdateInfraConfigModulePayload { clientMutationId?: string | null; - /** The `SessionsModule` that was updated by this mutation. */ - sessionsModule?: SessionsModule | null; - sessionsModuleEdge?: SessionsModuleEdge | null; + /** The `InfraConfigModule` that was updated by this mutation. */ + infraConfigModule?: InfraConfigModule | null; + infraConfigModuleEdge?: InfraConfigModuleEdge | null; } -export type UpdateSessionsModulePayloadSelect = { +export type UpdateInfraConfigModulePayloadSelect = { clientMutationId?: boolean; - sessionsModule?: { - select: SessionsModuleSelect; + infraConfigModule?: { + select: InfraConfigModuleSelect; }; - sessionsModuleEdge?: { - select: SessionsModuleEdgeSelect; + infraConfigModuleEdge?: { + select: InfraConfigModuleEdgeSelect; }; }; -export interface DeleteSessionsModulePayload { +export interface DeleteInfraConfigModulePayload { clientMutationId?: string | null; - /** The `SessionsModule` that was deleted by this mutation. */ - sessionsModule?: SessionsModule | null; - sessionsModuleEdge?: SessionsModuleEdge | null; + /** The `InfraConfigModule` that was deleted by this mutation. */ + infraConfigModule?: InfraConfigModule | null; + infraConfigModuleEdge?: InfraConfigModuleEdge | null; } -export type DeleteSessionsModulePayloadSelect = { +export type DeleteInfraConfigModulePayloadSelect = { clientMutationId?: boolean; - sessionsModule?: { - select: SessionsModuleSelect; + infraConfigModule?: { + select: InfraConfigModuleSelect; }; - sessionsModuleEdge?: { - select: SessionsModuleEdgeSelect; + infraConfigModuleEdge?: { + select: InfraConfigModuleEdgeSelect; }; }; -export interface CreateSecureTableProvisionPayload { +export interface CreateWebauthnAuthModulePayload { clientMutationId?: string | null; - /** The `SecureTableProvision` that was created by this mutation. */ - secureTableProvision?: SecureTableProvision | null; - secureTableProvisionEdge?: SecureTableProvisionEdge | null; + /** The `WebauthnAuthModule` that was created by this mutation. */ + webauthnAuthModule?: WebauthnAuthModule | null; + webauthnAuthModuleEdge?: WebauthnAuthModuleEdge | null; } -export type CreateSecureTableProvisionPayloadSelect = { +export type CreateWebauthnAuthModulePayloadSelect = { clientMutationId?: boolean; - secureTableProvision?: { - select: SecureTableProvisionSelect; + webauthnAuthModule?: { + select: WebauthnAuthModuleSelect; }; - secureTableProvisionEdge?: { - select: SecureTableProvisionEdgeSelect; + webauthnAuthModuleEdge?: { + select: WebauthnAuthModuleEdgeSelect; }; }; -export interface UpdateSecureTableProvisionPayload { +export interface UpdateWebauthnAuthModulePayload { clientMutationId?: string | null; - /** The `SecureTableProvision` that was updated by this mutation. */ - secureTableProvision?: SecureTableProvision | null; - secureTableProvisionEdge?: SecureTableProvisionEdge | null; + /** The `WebauthnAuthModule` that was updated by this mutation. */ + webauthnAuthModule?: WebauthnAuthModule | null; + webauthnAuthModuleEdge?: WebauthnAuthModuleEdge | null; } -export type UpdateSecureTableProvisionPayloadSelect = { +export type UpdateWebauthnAuthModulePayloadSelect = { clientMutationId?: boolean; - secureTableProvision?: { - select: SecureTableProvisionSelect; + webauthnAuthModule?: { + select: WebauthnAuthModuleSelect; }; - secureTableProvisionEdge?: { - select: SecureTableProvisionEdgeSelect; + webauthnAuthModuleEdge?: { + select: WebauthnAuthModuleEdgeSelect; }; }; -export interface DeleteSecureTableProvisionPayload { +export interface DeleteWebauthnAuthModulePayload { clientMutationId?: string | null; - /** The `SecureTableProvision` that was deleted by this mutation. */ - secureTableProvision?: SecureTableProvision | null; - secureTableProvisionEdge?: SecureTableProvisionEdge | null; + /** The `WebauthnAuthModule` that was deleted by this mutation. */ + webauthnAuthModule?: WebauthnAuthModule | null; + webauthnAuthModuleEdge?: WebauthnAuthModuleEdge | null; } -export type DeleteSecureTableProvisionPayloadSelect = { +export type DeleteWebauthnAuthModulePayloadSelect = { clientMutationId?: boolean; - secureTableProvision?: { - select: SecureTableProvisionSelect; + webauthnAuthModule?: { + select: WebauthnAuthModuleSelect; }; - secureTableProvisionEdge?: { - select: SecureTableProvisionEdgeSelect; + webauthnAuthModuleEdge?: { + select: WebauthnAuthModuleEdgeSelect; }; }; -export interface CreateDatabaseProvisionModulePayload { +export interface CreatePrincipalAuthModulePayload { clientMutationId?: string | null; - /** The `DatabaseProvisionModule` that was created by this mutation. */ - databaseProvisionModule?: DatabaseProvisionModule | null; - databaseProvisionModuleEdge?: DatabaseProvisionModuleEdge | null; + /** The `PrincipalAuthModule` that was created by this mutation. */ + principalAuthModule?: PrincipalAuthModule | null; + principalAuthModuleEdge?: PrincipalAuthModuleEdge | null; } -export type CreateDatabaseProvisionModulePayloadSelect = { +export type CreatePrincipalAuthModulePayloadSelect = { clientMutationId?: boolean; - databaseProvisionModule?: { - select: DatabaseProvisionModuleSelect; + principalAuthModule?: { + select: PrincipalAuthModuleSelect; }; - databaseProvisionModuleEdge?: { - select: DatabaseProvisionModuleEdgeSelect; + principalAuthModuleEdge?: { + select: PrincipalAuthModuleEdgeSelect; }; }; -export interface UpdateDatabaseProvisionModulePayload { +export interface UpdatePrincipalAuthModulePayload { clientMutationId?: string | null; - /** The `DatabaseProvisionModule` that was updated by this mutation. */ - databaseProvisionModule?: DatabaseProvisionModule | null; - databaseProvisionModuleEdge?: DatabaseProvisionModuleEdge | null; + /** The `PrincipalAuthModule` that was updated by this mutation. */ + principalAuthModule?: PrincipalAuthModule | null; + principalAuthModuleEdge?: PrincipalAuthModuleEdge | null; } -export type UpdateDatabaseProvisionModulePayloadSelect = { +export type UpdatePrincipalAuthModulePayloadSelect = { clientMutationId?: boolean; - databaseProvisionModule?: { - select: DatabaseProvisionModuleSelect; + principalAuthModule?: { + select: PrincipalAuthModuleSelect; }; - databaseProvisionModuleEdge?: { - select: DatabaseProvisionModuleEdgeSelect; + principalAuthModuleEdge?: { + select: PrincipalAuthModuleEdgeSelect; }; }; -export interface DeleteDatabaseProvisionModulePayload { +export interface DeletePrincipalAuthModulePayload { clientMutationId?: string | null; - /** The `DatabaseProvisionModule` that was deleted by this mutation. */ - databaseProvisionModule?: DatabaseProvisionModule | null; - databaseProvisionModuleEdge?: DatabaseProvisionModuleEdge | null; + /** The `PrincipalAuthModule` that was deleted by this mutation. */ + principalAuthModule?: PrincipalAuthModule | null; + principalAuthModuleEdge?: PrincipalAuthModuleEdge | null; } -export type DeleteDatabaseProvisionModulePayloadSelect = { +export type DeletePrincipalAuthModulePayloadSelect = { clientMutationId?: boolean; - databaseProvisionModule?: { - select: DatabaseProvisionModuleSelect; + principalAuthModule?: { + select: PrincipalAuthModuleSelect; }; - databaseProvisionModuleEdge?: { - select: DatabaseProvisionModuleEdgeSelect; + principalAuthModuleEdge?: { + select: PrincipalAuthModuleEdgeSelect; }; }; -export interface CreateConfigSecretsModulePayload { +export interface CreateDbPoolPayload { clientMutationId?: string | null; - /** The `ConfigSecretsModule` that was created by this mutation. */ - configSecretsModule?: ConfigSecretsModule | null; - configSecretsModuleEdge?: ConfigSecretsModuleEdge | null; + /** The `DbPool` that was created by this mutation. */ + dbPool?: DbPool | null; + dbPoolEdge?: DbPoolEdge | null; } -export type CreateConfigSecretsModulePayloadSelect = { +export type CreateDbPoolPayloadSelect = { clientMutationId?: boolean; - configSecretsModule?: { - select: ConfigSecretsModuleSelect; + dbPool?: { + select: DbPoolSelect; }; - configSecretsModuleEdge?: { - select: ConfigSecretsModuleEdgeSelect; + dbPoolEdge?: { + select: DbPoolEdgeSelect; }; }; -export interface UpdateConfigSecretsModulePayload { +export interface UpdateDbPoolPayload { clientMutationId?: string | null; - /** The `ConfigSecretsModule` that was updated by this mutation. */ - configSecretsModule?: ConfigSecretsModule | null; - configSecretsModuleEdge?: ConfigSecretsModuleEdge | null; + /** The `DbPool` that was updated by this mutation. */ + dbPool?: DbPool | null; + dbPoolEdge?: DbPoolEdge | null; } -export type UpdateConfigSecretsModulePayloadSelect = { +export type UpdateDbPoolPayloadSelect = { clientMutationId?: boolean; - configSecretsModule?: { - select: ConfigSecretsModuleSelect; + dbPool?: { + select: DbPoolSelect; }; - configSecretsModuleEdge?: { - select: ConfigSecretsModuleEdgeSelect; + dbPoolEdge?: { + select: DbPoolEdgeSelect; }; }; -export interface DeleteConfigSecretsModulePayload { +export interface DeleteDbPoolPayload { clientMutationId?: string | null; - /** The `ConfigSecretsModule` that was deleted by this mutation. */ - configSecretsModule?: ConfigSecretsModule | null; - configSecretsModuleEdge?: ConfigSecretsModuleEdge | null; + /** The `DbPool` that was deleted by this mutation. */ + dbPool?: DbPool | null; + dbPoolEdge?: DbPoolEdge | null; } -export type DeleteConfigSecretsModulePayloadSelect = { +export type DeleteDbPoolPayloadSelect = { clientMutationId?: boolean; - configSecretsModule?: { - select: ConfigSecretsModuleSelect; + dbPool?: { + select: DbPoolSelect; }; - configSecretsModuleEdge?: { - select: ConfigSecretsModuleEdgeSelect; + dbPoolEdge?: { + select: DbPoolEdgeSelect; }; }; -export interface CreateGraphModulePayload { +export interface CreateFunctionModulePayload { clientMutationId?: string | null; - /** The `GraphModule` that was created by this mutation. */ - graphModule?: GraphModule | null; - graphModuleEdge?: GraphModuleEdge | null; + /** The `FunctionModule` that was created by this mutation. */ + functionModule?: FunctionModule | null; + functionModuleEdge?: FunctionModuleEdge | null; } -export type CreateGraphModulePayloadSelect = { +export type CreateFunctionModulePayloadSelect = { clientMutationId?: boolean; - graphModule?: { - select: GraphModuleSelect; + functionModule?: { + select: FunctionModuleSelect; }; - graphModuleEdge?: { - select: GraphModuleEdgeSelect; + functionModuleEdge?: { + select: FunctionModuleEdgeSelect; }; }; -export interface UpdateGraphModulePayload { +export interface UpdateFunctionModulePayload { clientMutationId?: string | null; - /** The `GraphModule` that was updated by this mutation. */ - graphModule?: GraphModule | null; - graphModuleEdge?: GraphModuleEdge | null; + /** The `FunctionModule` that was updated by this mutation. */ + functionModule?: FunctionModule | null; + functionModuleEdge?: FunctionModuleEdge | null; } -export type UpdateGraphModulePayloadSelect = { +export type UpdateFunctionModulePayloadSelect = { clientMutationId?: boolean; - graphModule?: { - select: GraphModuleSelect; + functionModule?: { + select: FunctionModuleSelect; }; - graphModuleEdge?: { - select: GraphModuleEdgeSelect; + functionModuleEdge?: { + select: FunctionModuleEdgeSelect; }; }; -export interface DeleteGraphModulePayload { +export interface DeleteFunctionModulePayload { clientMutationId?: string | null; - /** The `GraphModule` that was deleted by this mutation. */ - graphModule?: GraphModule | null; - graphModuleEdge?: GraphModuleEdge | null; + /** The `FunctionModule` that was deleted by this mutation. */ + functionModule?: FunctionModule | null; + functionModuleEdge?: FunctionModuleEdge | null; } -export type DeleteGraphModulePayloadSelect = { +export type DeleteFunctionModulePayloadSelect = { clientMutationId?: boolean; - graphModule?: { - select: GraphModuleSelect; + functionModule?: { + select: FunctionModuleSelect; }; - graphModuleEdge?: { - select: GraphModuleEdgeSelect; + functionModuleEdge?: { + select: FunctionModuleEdgeSelect; }; }; export interface CreateMerkleStoreModulePayload { @@ -14852,139 +16569,49 @@ export type DeleteMerkleStoreModulePayloadSelect = { select: MerkleStoreModuleEdgeSelect; }; }; -export interface CreateRateLimitMetersModulePayload { - clientMutationId?: string | null; - /** The `RateLimitMetersModule` that was created by this mutation. */ - rateLimitMetersModule?: RateLimitMetersModule | null; - rateLimitMetersModuleEdge?: RateLimitMetersModuleEdge | null; -} -export type CreateRateLimitMetersModulePayloadSelect = { - clientMutationId?: boolean; - rateLimitMetersModule?: { - select: RateLimitMetersModuleSelect; - }; - rateLimitMetersModuleEdge?: { - select: RateLimitMetersModuleEdgeSelect; - }; -}; -export interface UpdateRateLimitMetersModulePayload { - clientMutationId?: string | null; - /** The `RateLimitMetersModule` that was updated by this mutation. */ - rateLimitMetersModule?: RateLimitMetersModule | null; - rateLimitMetersModuleEdge?: RateLimitMetersModuleEdge | null; -} -export type UpdateRateLimitMetersModulePayloadSelect = { - clientMutationId?: boolean; - rateLimitMetersModule?: { - select: RateLimitMetersModuleSelect; - }; - rateLimitMetersModuleEdge?: { - select: RateLimitMetersModuleEdgeSelect; - }; -}; -export interface DeleteRateLimitMetersModulePayload { - clientMutationId?: string | null; - /** The `RateLimitMetersModule` that was deleted by this mutation. */ - rateLimitMetersModule?: RateLimitMetersModule | null; - rateLimitMetersModuleEdge?: RateLimitMetersModuleEdge | null; -} -export type DeleteRateLimitMetersModulePayloadSelect = { - clientMutationId?: boolean; - rateLimitMetersModule?: { - select: RateLimitMetersModuleSelect; - }; - rateLimitMetersModuleEdge?: { - select: RateLimitMetersModuleEdgeSelect; - }; -}; -export interface CreateRealtimeModulePayload { - clientMutationId?: string | null; - /** The `RealtimeModule` that was created by this mutation. */ - realtimeModule?: RealtimeModule | null; - realtimeModuleEdge?: RealtimeModuleEdge | null; -} -export type CreateRealtimeModulePayloadSelect = { - clientMutationId?: boolean; - realtimeModule?: { - select: RealtimeModuleSelect; - }; - realtimeModuleEdge?: { - select: RealtimeModuleEdgeSelect; - }; -}; -export interface UpdateRealtimeModulePayload { - clientMutationId?: string | null; - /** The `RealtimeModule` that was updated by this mutation. */ - realtimeModule?: RealtimeModule | null; - realtimeModuleEdge?: RealtimeModuleEdge | null; -} -export type UpdateRealtimeModulePayloadSelect = { - clientMutationId?: boolean; - realtimeModule?: { - select: RealtimeModuleSelect; - }; - realtimeModuleEdge?: { - select: RealtimeModuleEdgeSelect; - }; -}; -export interface DeleteRealtimeModulePayload { - clientMutationId?: string | null; - /** The `RealtimeModule` that was deleted by this mutation. */ - realtimeModule?: RealtimeModule | null; - realtimeModuleEdge?: RealtimeModuleEdge | null; -} -export type DeleteRealtimeModulePayloadSelect = { - clientMutationId?: boolean; - realtimeModule?: { - select: RealtimeModuleSelect; - }; - realtimeModuleEdge?: { - select: RealtimeModuleEdgeSelect; - }; -}; -export interface CreateWebauthnAuthModulePayload { +export interface CreateDatabaseProvisionModulePayload { clientMutationId?: string | null; - /** The `WebauthnAuthModule` that was created by this mutation. */ - webauthnAuthModule?: WebauthnAuthModule | null; - webauthnAuthModuleEdge?: WebauthnAuthModuleEdge | null; + /** The `DatabaseProvisionModule` that was created by this mutation. */ + databaseProvisionModule?: DatabaseProvisionModule | null; + databaseProvisionModuleEdge?: DatabaseProvisionModuleEdge | null; } -export type CreateWebauthnAuthModulePayloadSelect = { +export type CreateDatabaseProvisionModulePayloadSelect = { clientMutationId?: boolean; - webauthnAuthModule?: { - select: WebauthnAuthModuleSelect; + databaseProvisionModule?: { + select: DatabaseProvisionModuleSelect; }; - webauthnAuthModuleEdge?: { - select: WebauthnAuthModuleEdgeSelect; + databaseProvisionModuleEdge?: { + select: DatabaseProvisionModuleEdgeSelect; }; }; -export interface UpdateWebauthnAuthModulePayload { +export interface UpdateDatabaseProvisionModulePayload { clientMutationId?: string | null; - /** The `WebauthnAuthModule` that was updated by this mutation. */ - webauthnAuthModule?: WebauthnAuthModule | null; - webauthnAuthModuleEdge?: WebauthnAuthModuleEdge | null; + /** The `DatabaseProvisionModule` that was updated by this mutation. */ + databaseProvisionModule?: DatabaseProvisionModule | null; + databaseProvisionModuleEdge?: DatabaseProvisionModuleEdge | null; } -export type UpdateWebauthnAuthModulePayloadSelect = { +export type UpdateDatabaseProvisionModulePayloadSelect = { clientMutationId?: boolean; - webauthnAuthModule?: { - select: WebauthnAuthModuleSelect; + databaseProvisionModule?: { + select: DatabaseProvisionModuleSelect; }; - webauthnAuthModuleEdge?: { - select: WebauthnAuthModuleEdgeSelect; + databaseProvisionModuleEdge?: { + select: DatabaseProvisionModuleEdgeSelect; }; }; -export interface DeleteWebauthnAuthModulePayload { +export interface DeleteDatabaseProvisionModulePayload { clientMutationId?: string | null; - /** The `WebauthnAuthModule` that was deleted by this mutation. */ - webauthnAuthModule?: WebauthnAuthModule | null; - webauthnAuthModuleEdge?: WebauthnAuthModuleEdge | null; + /** The `DatabaseProvisionModule` that was deleted by this mutation. */ + databaseProvisionModule?: DatabaseProvisionModule | null; + databaseProvisionModuleEdge?: DatabaseProvisionModuleEdge | null; } -export type DeleteWebauthnAuthModulePayloadSelect = { +export type DeleteDatabaseProvisionModulePayloadSelect = { clientMutationId?: boolean; - webauthnAuthModule?: { - select: WebauthnAuthModuleSelect; + databaseProvisionModule?: { + select: DatabaseProvisionModuleSelect; }; - webauthnAuthModuleEdge?: { - select: WebauthnAuthModuleEdgeSelect; + databaseProvisionModuleEdge?: { + select: DatabaseProvisionModuleEdgeSelect; }; }; export interface CreateFunctionInvocationModulePayload { @@ -15032,51 +16659,6 @@ export type DeleteFunctionInvocationModulePayloadSelect = { select: FunctionInvocationModuleEdgeSelect; }; }; -export interface CreateFunctionModulePayload { - clientMutationId?: string | null; - /** The `FunctionModule` that was created by this mutation. */ - functionModule?: FunctionModule | null; - functionModuleEdge?: FunctionModuleEdge | null; -} -export type CreateFunctionModulePayloadSelect = { - clientMutationId?: boolean; - functionModule?: { - select: FunctionModuleSelect; - }; - functionModuleEdge?: { - select: FunctionModuleEdgeSelect; - }; -}; -export interface UpdateFunctionModulePayload { - clientMutationId?: string | null; - /** The `FunctionModule` that was updated by this mutation. */ - functionModule?: FunctionModule | null; - functionModuleEdge?: FunctionModuleEdge | null; -} -export type UpdateFunctionModulePayloadSelect = { - clientMutationId?: boolean; - functionModule?: { - select: FunctionModuleSelect; - }; - functionModuleEdge?: { - select: FunctionModuleEdgeSelect; - }; -}; -export interface DeleteFunctionModulePayload { - clientMutationId?: string | null; - /** The `FunctionModule` that was deleted by this mutation. */ - functionModule?: FunctionModule | null; - functionModuleEdge?: FunctionModuleEdge | null; -} -export type DeleteFunctionModulePayloadSelect = { - clientMutationId?: boolean; - functionModule?: { - select: FunctionModuleSelect; - }; - functionModuleEdge?: { - select: FunctionModuleEdgeSelect; - }; -}; export interface CreateInvitesModulePayload { clientMutationId?: string | null; /** The `InvitesModule` that was created by this mutation. */ @@ -15122,49 +16704,94 @@ export type DeleteInvitesModulePayloadSelect = { select: InvitesModuleEdgeSelect; }; }; -export interface CreatePrincipalAuthModulePayload { +export interface CreateNamespaceModulePayload { clientMutationId?: string | null; - /** The `PrincipalAuthModule` that was created by this mutation. */ - principalAuthModule?: PrincipalAuthModule | null; - principalAuthModuleEdge?: PrincipalAuthModuleEdge | null; + /** The `NamespaceModule` that was created by this mutation. */ + namespaceModule?: NamespaceModule | null; + namespaceModuleEdge?: NamespaceModuleEdge | null; } -export type CreatePrincipalAuthModulePayloadSelect = { +export type CreateNamespaceModulePayloadSelect = { clientMutationId?: boolean; - principalAuthModule?: { - select: PrincipalAuthModuleSelect; + namespaceModule?: { + select: NamespaceModuleSelect; }; - principalAuthModuleEdge?: { - select: PrincipalAuthModuleEdgeSelect; + namespaceModuleEdge?: { + select: NamespaceModuleEdgeSelect; }; }; -export interface UpdatePrincipalAuthModulePayload { +export interface UpdateNamespaceModulePayload { + clientMutationId?: string | null; + /** The `NamespaceModule` that was updated by this mutation. */ + namespaceModule?: NamespaceModule | null; + namespaceModuleEdge?: NamespaceModuleEdge | null; +} +export type UpdateNamespaceModulePayloadSelect = { + clientMutationId?: boolean; + namespaceModule?: { + select: NamespaceModuleSelect; + }; + namespaceModuleEdge?: { + select: NamespaceModuleEdgeSelect; + }; +}; +export interface DeleteNamespaceModulePayload { + clientMutationId?: string | null; + /** The `NamespaceModule` that was deleted by this mutation. */ + namespaceModule?: NamespaceModule | null; + namespaceModuleEdge?: NamespaceModuleEdge | null; +} +export type DeleteNamespaceModulePayloadSelect = { + clientMutationId?: boolean; + namespaceModule?: { + select: NamespaceModuleSelect; + }; + namespaceModuleEdge?: { + select: NamespaceModuleEdgeSelect; + }; +}; +export interface CreatePlansModulePayload { + clientMutationId?: string | null; + /** The `PlansModule` that was created by this mutation. */ + plansModule?: PlansModule | null; + plansModuleEdge?: PlansModuleEdge | null; +} +export type CreatePlansModulePayloadSelect = { + clientMutationId?: boolean; + plansModule?: { + select: PlansModuleSelect; + }; + plansModuleEdge?: { + select: PlansModuleEdgeSelect; + }; +}; +export interface UpdatePlansModulePayload { clientMutationId?: string | null; - /** The `PrincipalAuthModule` that was updated by this mutation. */ - principalAuthModule?: PrincipalAuthModule | null; - principalAuthModuleEdge?: PrincipalAuthModuleEdge | null; + /** The `PlansModule` that was updated by this mutation. */ + plansModule?: PlansModule | null; + plansModuleEdge?: PlansModuleEdge | null; } -export type UpdatePrincipalAuthModulePayloadSelect = { +export type UpdatePlansModulePayloadSelect = { clientMutationId?: boolean; - principalAuthModule?: { - select: PrincipalAuthModuleSelect; + plansModule?: { + select: PlansModuleSelect; }; - principalAuthModuleEdge?: { - select: PrincipalAuthModuleEdgeSelect; + plansModuleEdge?: { + select: PlansModuleEdgeSelect; }; }; -export interface DeletePrincipalAuthModulePayload { +export interface DeletePlansModulePayload { clientMutationId?: string | null; - /** The `PrincipalAuthModule` that was deleted by this mutation. */ - principalAuthModule?: PrincipalAuthModule | null; - principalAuthModuleEdge?: PrincipalAuthModuleEdge | null; + /** The `PlansModule` that was deleted by this mutation. */ + plansModule?: PlansModule | null; + plansModuleEdge?: PlansModuleEdge | null; } -export type DeletePrincipalAuthModulePayloadSelect = { +export type DeletePlansModulePayloadSelect = { clientMutationId?: boolean; - principalAuthModule?: { - select: PrincipalAuthModuleSelect; + plansModule?: { + select: PlansModuleSelect; }; - principalAuthModuleEdge?: { - select: PrincipalAuthModuleEdgeSelect; + plansModuleEdge?: { + select: PlansModuleEdgeSelect; }; }; export interface CreateComputeLogModulePayload { @@ -15257,96 +16884,6 @@ export type DeleteInferenceLogModulePayloadSelect = { select: InferenceLogModuleEdgeSelect; }; }; -export interface CreateNamespaceModulePayload { - clientMutationId?: string | null; - /** The `NamespaceModule` that was created by this mutation. */ - namespaceModule?: NamespaceModule | null; - namespaceModuleEdge?: NamespaceModuleEdge | null; -} -export type CreateNamespaceModulePayloadSelect = { - clientMutationId?: boolean; - namespaceModule?: { - select: NamespaceModuleSelect; - }; - namespaceModuleEdge?: { - select: NamespaceModuleEdgeSelect; - }; -}; -export interface UpdateNamespaceModulePayload { - clientMutationId?: string | null; - /** The `NamespaceModule` that was updated by this mutation. */ - namespaceModule?: NamespaceModule | null; - namespaceModuleEdge?: NamespaceModuleEdge | null; -} -export type UpdateNamespaceModulePayloadSelect = { - clientMutationId?: boolean; - namespaceModule?: { - select: NamespaceModuleSelect; - }; - namespaceModuleEdge?: { - select: NamespaceModuleEdgeSelect; - }; -}; -export interface DeleteNamespaceModulePayload { - clientMutationId?: string | null; - /** The `NamespaceModule` that was deleted by this mutation. */ - namespaceModule?: NamespaceModule | null; - namespaceModuleEdge?: NamespaceModuleEdge | null; -} -export type DeleteNamespaceModulePayloadSelect = { - clientMutationId?: boolean; - namespaceModule?: { - select: NamespaceModuleSelect; - }; - namespaceModuleEdge?: { - select: NamespaceModuleEdgeSelect; - }; -}; -export interface CreateResourceModulePayload { - clientMutationId?: string | null; - /** The `ResourceModule` that was created by this mutation. */ - resourceModule?: ResourceModule | null; - resourceModuleEdge?: ResourceModuleEdge | null; -} -export type CreateResourceModulePayloadSelect = { - clientMutationId?: boolean; - resourceModule?: { - select: ResourceModuleSelect; - }; - resourceModuleEdge?: { - select: ResourceModuleEdgeSelect; - }; -}; -export interface UpdateResourceModulePayload { - clientMutationId?: string | null; - /** The `ResourceModule` that was updated by this mutation. */ - resourceModule?: ResourceModule | null; - resourceModuleEdge?: ResourceModuleEdge | null; -} -export type UpdateResourceModulePayloadSelect = { - clientMutationId?: boolean; - resourceModule?: { - select: ResourceModuleSelect; - }; - resourceModuleEdge?: { - select: ResourceModuleEdgeSelect; - }; -}; -export interface DeleteResourceModulePayload { - clientMutationId?: string | null; - /** The `ResourceModule` that was deleted by this mutation. */ - resourceModule?: ResourceModule | null; - resourceModuleEdge?: ResourceModuleEdge | null; -} -export type DeleteResourceModulePayloadSelect = { - clientMutationId?: boolean; - resourceModule?: { - select: ResourceModuleSelect; - }; - resourceModuleEdge?: { - select: ResourceModuleEdgeSelect; - }; -}; export interface CreateStorageLogModulePayload { clientMutationId?: string | null; /** The `StorageLogModule` that was created by this mutation. */ @@ -15437,96 +16974,6 @@ export type DeleteTransferLogModulePayloadSelect = { select: TransferLogModuleEdgeSelect; }; }; -export interface CreateFunctionDeploymentModulePayload { - clientMutationId?: string | null; - /** The `FunctionDeploymentModule` that was created by this mutation. */ - functionDeploymentModule?: FunctionDeploymentModule | null; - functionDeploymentModuleEdge?: FunctionDeploymentModuleEdge | null; -} -export type CreateFunctionDeploymentModulePayloadSelect = { - clientMutationId?: boolean; - functionDeploymentModule?: { - select: FunctionDeploymentModuleSelect; - }; - functionDeploymentModuleEdge?: { - select: FunctionDeploymentModuleEdgeSelect; - }; -}; -export interface UpdateFunctionDeploymentModulePayload { - clientMutationId?: string | null; - /** The `FunctionDeploymentModule` that was updated by this mutation. */ - functionDeploymentModule?: FunctionDeploymentModule | null; - functionDeploymentModuleEdge?: FunctionDeploymentModuleEdge | null; -} -export type UpdateFunctionDeploymentModulePayloadSelect = { - clientMutationId?: boolean; - functionDeploymentModule?: { - select: FunctionDeploymentModuleSelect; - }; - functionDeploymentModuleEdge?: { - select: FunctionDeploymentModuleEdgeSelect; - }; -}; -export interface DeleteFunctionDeploymentModulePayload { - clientMutationId?: string | null; - /** The `FunctionDeploymentModule` that was deleted by this mutation. */ - functionDeploymentModule?: FunctionDeploymentModule | null; - functionDeploymentModuleEdge?: FunctionDeploymentModuleEdge | null; -} -export type DeleteFunctionDeploymentModulePayloadSelect = { - clientMutationId?: boolean; - functionDeploymentModule?: { - select: FunctionDeploymentModuleSelect; - }; - functionDeploymentModuleEdge?: { - select: FunctionDeploymentModuleEdgeSelect; - }; -}; -export interface CreatePlansModulePayload { - clientMutationId?: string | null; - /** The `PlansModule` that was created by this mutation. */ - plansModule?: PlansModule | null; - plansModuleEdge?: PlansModuleEdge | null; -} -export type CreatePlansModulePayloadSelect = { - clientMutationId?: boolean; - plansModule?: { - select: PlansModuleSelect; - }; - plansModuleEdge?: { - select: PlansModuleEdgeSelect; - }; -}; -export interface UpdatePlansModulePayload { - clientMutationId?: string | null; - /** The `PlansModule` that was updated by this mutation. */ - plansModule?: PlansModule | null; - plansModuleEdge?: PlansModuleEdge | null; -} -export type UpdatePlansModulePayloadSelect = { - clientMutationId?: boolean; - plansModule?: { - select: PlansModuleSelect; - }; - plansModuleEdge?: { - select: PlansModuleEdgeSelect; - }; -}; -export interface DeletePlansModulePayload { - clientMutationId?: string | null; - /** The `PlansModule` that was deleted by this mutation. */ - plansModule?: PlansModule | null; - plansModuleEdge?: PlansModuleEdge | null; -} -export type DeletePlansModulePayloadSelect = { - clientMutationId?: boolean; - plansModule?: { - select: PlansModuleSelect; - }; - plansModuleEdge?: { - select: PlansModuleEdgeSelect; - }; -}; export interface CreateBillingProviderModulePayload { clientMutationId?: string | null; /** The `BillingProviderModule` that was created by this mutation. */ @@ -15563,58 +17010,103 @@ export interface DeleteBillingProviderModulePayload { billingProviderModule?: BillingProviderModule | null; billingProviderModuleEdge?: BillingProviderModuleEdge | null; } -export type DeleteBillingProviderModulePayloadSelect = { +export type DeleteBillingProviderModulePayloadSelect = { + clientMutationId?: boolean; + billingProviderModule?: { + select: BillingProviderModuleSelect; + }; + billingProviderModuleEdge?: { + select: BillingProviderModuleEdgeSelect; + }; +}; +export interface CreateFunctionDeploymentModulePayload { + clientMutationId?: string | null; + /** The `FunctionDeploymentModule` that was created by this mutation. */ + functionDeploymentModule?: FunctionDeploymentModule | null; + functionDeploymentModuleEdge?: FunctionDeploymentModuleEdge | null; +} +export type CreateFunctionDeploymentModulePayloadSelect = { + clientMutationId?: boolean; + functionDeploymentModule?: { + select: FunctionDeploymentModuleSelect; + }; + functionDeploymentModuleEdge?: { + select: FunctionDeploymentModuleEdgeSelect; + }; +}; +export interface UpdateFunctionDeploymentModulePayload { + clientMutationId?: string | null; + /** The `FunctionDeploymentModule` that was updated by this mutation. */ + functionDeploymentModule?: FunctionDeploymentModule | null; + functionDeploymentModuleEdge?: FunctionDeploymentModuleEdge | null; +} +export type UpdateFunctionDeploymentModulePayloadSelect = { + clientMutationId?: boolean; + functionDeploymentModule?: { + select: FunctionDeploymentModuleSelect; + }; + functionDeploymentModuleEdge?: { + select: FunctionDeploymentModuleEdgeSelect; + }; +}; +export interface DeleteFunctionDeploymentModulePayload { + clientMutationId?: string | null; + /** The `FunctionDeploymentModule` that was deleted by this mutation. */ + functionDeploymentModule?: FunctionDeploymentModule | null; + functionDeploymentModuleEdge?: FunctionDeploymentModuleEdge | null; +} +export type DeleteFunctionDeploymentModulePayloadSelect = { clientMutationId?: boolean; - billingProviderModule?: { - select: BillingProviderModuleSelect; + functionDeploymentModule?: { + select: FunctionDeploymentModuleSelect; }; - billingProviderModuleEdge?: { - select: BillingProviderModuleEdgeSelect; + functionDeploymentModuleEdge?: { + select: FunctionDeploymentModuleEdgeSelect; }; }; -export interface CreateDbUsageModulePayload { +export interface CreatePermissionsModulePayload { clientMutationId?: string | null; - /** The `DbUsageModule` that was created by this mutation. */ - dbUsageModule?: DbUsageModule | null; - dbUsageModuleEdge?: DbUsageModuleEdge | null; + /** The `PermissionsModule` that was created by this mutation. */ + permissionsModule?: PermissionsModule | null; + permissionsModuleEdge?: PermissionsModuleEdge | null; } -export type CreateDbUsageModulePayloadSelect = { +export type CreatePermissionsModulePayloadSelect = { clientMutationId?: boolean; - dbUsageModule?: { - select: DbUsageModuleSelect; + permissionsModule?: { + select: PermissionsModuleSelect; }; - dbUsageModuleEdge?: { - select: DbUsageModuleEdgeSelect; + permissionsModuleEdge?: { + select: PermissionsModuleEdgeSelect; }; }; -export interface UpdateDbUsageModulePayload { +export interface UpdatePermissionsModulePayload { clientMutationId?: string | null; - /** The `DbUsageModule` that was updated by this mutation. */ - dbUsageModule?: DbUsageModule | null; - dbUsageModuleEdge?: DbUsageModuleEdge | null; + /** The `PermissionsModule` that was updated by this mutation. */ + permissionsModule?: PermissionsModule | null; + permissionsModuleEdge?: PermissionsModuleEdge | null; } -export type UpdateDbUsageModulePayloadSelect = { +export type UpdatePermissionsModulePayloadSelect = { clientMutationId?: boolean; - dbUsageModule?: { - select: DbUsageModuleSelect; + permissionsModule?: { + select: PermissionsModuleSelect; }; - dbUsageModuleEdge?: { - select: DbUsageModuleEdgeSelect; + permissionsModuleEdge?: { + select: PermissionsModuleEdgeSelect; }; }; -export interface DeleteDbUsageModulePayload { +export interface DeletePermissionsModulePayload { clientMutationId?: string | null; - /** The `DbUsageModule` that was deleted by this mutation. */ - dbUsageModule?: DbUsageModule | null; - dbUsageModuleEdge?: DbUsageModuleEdge | null; + /** The `PermissionsModule` that was deleted by this mutation. */ + permissionsModule?: PermissionsModule | null; + permissionsModuleEdge?: PermissionsModuleEdge | null; } -export type DeleteDbUsageModulePayloadSelect = { +export type DeletePermissionsModulePayloadSelect = { clientMutationId?: boolean; - dbUsageModule?: { - select: DbUsageModuleSelect; + permissionsModule?: { + select: PermissionsModuleSelect; }; - dbUsageModuleEdge?: { - select: DbUsageModuleEdgeSelect; + permissionsModuleEdge?: { + select: PermissionsModuleEdgeSelect; }; }; export interface CreateGraphExecutionModulePayload { @@ -15707,51 +17199,6 @@ export type DeleteHierarchyModulePayloadSelect = { select: HierarchyModuleEdgeSelect; }; }; -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 CreateNotificationsModulePayload { clientMutationId?: string | null; /** The `NotificationsModule` that was created by this mutation. */ @@ -15797,6 +17244,51 @@ export type DeleteNotificationsModulePayloadSelect = { select: NotificationsModuleEdgeSelect; }; }; +export interface CreateRelationProvisionPayload { + clientMutationId?: string | null; + /** The `RelationProvision` that was created by this mutation. */ + relationProvision?: RelationProvision | null; + relationProvisionEdge?: RelationProvisionEdge | null; +} +export type CreateRelationProvisionPayloadSelect = { + clientMutationId?: boolean; + relationProvision?: { + select: RelationProvisionSelect; + }; + relationProvisionEdge?: { + select: RelationProvisionEdgeSelect; + }; +}; +export interface UpdateRelationProvisionPayload { + clientMutationId?: string | null; + /** The `RelationProvision` that was updated by this mutation. */ + relationProvision?: RelationProvision | null; + relationProvisionEdge?: RelationProvisionEdge | null; +} +export type UpdateRelationProvisionPayloadSelect = { + clientMutationId?: boolean; + relationProvision?: { + select: RelationProvisionSelect; + }; + relationProvisionEdge?: { + select: RelationProvisionEdgeSelect; + }; +}; +export interface DeleteRelationProvisionPayload { + clientMutationId?: string | null; + /** The `RelationProvision` that was deleted by this mutation. */ + relationProvision?: RelationProvision | null; + relationProvisionEdge?: RelationProvisionEdge | null; +} +export type DeleteRelationProvisionPayloadSelect = { + clientMutationId?: boolean; + relationProvision?: { + select: RelationProvisionSelect; + }; + relationProvisionEdge?: { + select: RelationProvisionEdgeSelect; + }; +}; export interface CreateProfilesModulePayload { clientMutationId?: string | null; /** The `ProfilesModule` that was created by this mutation. */ @@ -15887,49 +17379,49 @@ export type DeleteBillingModulePayloadSelect = { select: BillingModuleEdgeSelect; }; }; -export interface CreateRelationProvisionPayload { +export interface CreateResourceModulePayload { clientMutationId?: string | null; - /** The `RelationProvision` that was created by this mutation. */ - relationProvision?: RelationProvision | null; - relationProvisionEdge?: RelationProvisionEdge | null; + /** The `ResourceModule` that was created by this mutation. */ + resourceModule?: ResourceModule | null; + resourceModuleEdge?: ResourceModuleEdge | null; } -export type CreateRelationProvisionPayloadSelect = { +export type CreateResourceModulePayloadSelect = { clientMutationId?: boolean; - relationProvision?: { - select: RelationProvisionSelect; + resourceModule?: { + select: ResourceModuleSelect; }; - relationProvisionEdge?: { - select: RelationProvisionEdgeSelect; + resourceModuleEdge?: { + select: ResourceModuleEdgeSelect; }; }; -export interface UpdateRelationProvisionPayload { +export interface UpdateResourceModulePayload { clientMutationId?: string | null; - /** The `RelationProvision` that was updated by this mutation. */ - relationProvision?: RelationProvision | null; - relationProvisionEdge?: RelationProvisionEdge | null; + /** The `ResourceModule` that was updated by this mutation. */ + resourceModule?: ResourceModule | null; + resourceModuleEdge?: ResourceModuleEdge | null; } -export type UpdateRelationProvisionPayloadSelect = { +export type UpdateResourceModulePayloadSelect = { clientMutationId?: boolean; - relationProvision?: { - select: RelationProvisionSelect; + resourceModule?: { + select: ResourceModuleSelect; }; - relationProvisionEdge?: { - select: RelationProvisionEdgeSelect; + resourceModuleEdge?: { + select: ResourceModuleEdgeSelect; }; }; -export interface DeleteRelationProvisionPayload { +export interface DeleteResourceModulePayload { clientMutationId?: string | null; - /** The `RelationProvision` that was deleted by this mutation. */ - relationProvision?: RelationProvision | null; - relationProvisionEdge?: RelationProvisionEdge | null; + /** The `ResourceModule` that was deleted by this mutation. */ + resourceModule?: ResourceModule | null; + resourceModuleEdge?: ResourceModuleEdge | null; } -export type DeleteRelationProvisionPayloadSelect = { +export type DeleteResourceModulePayloadSelect = { clientMutationId?: boolean; - relationProvision?: { - select: RelationProvisionSelect; + resourceModule?: { + select: ResourceModuleSelect; }; - relationProvisionEdge?: { - select: RelationProvisionEdgeSelect; + resourceModuleEdge?: { + select: ResourceModuleEdgeSelect; }; }; export interface CreateUserAuthModulePayload { @@ -15943,38 +17435,83 @@ export type CreateUserAuthModulePayloadSelect = { userAuthModule?: { select: UserAuthModuleSelect; }; - userAuthModuleEdge?: { - select: UserAuthModuleEdgeSelect; + userAuthModuleEdge?: { + select: UserAuthModuleEdgeSelect; + }; +}; +export interface UpdateUserAuthModulePayload { + clientMutationId?: string | null; + /** The `UserAuthModule` that was updated by this mutation. */ + userAuthModule?: UserAuthModule | null; + userAuthModuleEdge?: UserAuthModuleEdge | null; +} +export type UpdateUserAuthModulePayloadSelect = { + clientMutationId?: boolean; + userAuthModule?: { + select: UserAuthModuleSelect; + }; + userAuthModuleEdge?: { + select: UserAuthModuleEdgeSelect; + }; +}; +export interface DeleteUserAuthModulePayload { + clientMutationId?: string | null; + /** The `UserAuthModule` that was deleted by this mutation. */ + userAuthModule?: UserAuthModule | null; + userAuthModuleEdge?: UserAuthModuleEdge | null; +} +export type DeleteUserAuthModulePayloadSelect = { + clientMutationId?: boolean; + userAuthModule?: { + select: UserAuthModuleSelect; + }; + userAuthModuleEdge?: { + select: UserAuthModuleEdgeSelect; + }; +}; +export interface CreateDbUsageModulePayload { + clientMutationId?: string | null; + /** The `DbUsageModule` that was created by this mutation. */ + dbUsageModule?: DbUsageModule | null; + dbUsageModuleEdge?: DbUsageModuleEdge | null; +} +export type CreateDbUsageModulePayloadSelect = { + clientMutationId?: boolean; + dbUsageModule?: { + select: DbUsageModuleSelect; + }; + dbUsageModuleEdge?: { + select: DbUsageModuleEdgeSelect; }; }; -export interface UpdateUserAuthModulePayload { +export interface UpdateDbUsageModulePayload { clientMutationId?: string | null; - /** The `UserAuthModule` that was updated by this mutation. */ - userAuthModule?: UserAuthModule | null; - userAuthModuleEdge?: UserAuthModuleEdge | null; + /** The `DbUsageModule` that was updated by this mutation. */ + dbUsageModule?: DbUsageModule | null; + dbUsageModuleEdge?: DbUsageModuleEdge | null; } -export type UpdateUserAuthModulePayloadSelect = { +export type UpdateDbUsageModulePayloadSelect = { clientMutationId?: boolean; - userAuthModule?: { - select: UserAuthModuleSelect; + dbUsageModule?: { + select: DbUsageModuleSelect; }; - userAuthModuleEdge?: { - select: UserAuthModuleEdgeSelect; + dbUsageModuleEdge?: { + select: DbUsageModuleEdgeSelect; }; }; -export interface DeleteUserAuthModulePayload { +export interface DeleteDbUsageModulePayload { clientMutationId?: string | null; - /** The `UserAuthModule` that was deleted by this mutation. */ - userAuthModule?: UserAuthModule | null; - userAuthModuleEdge?: UserAuthModuleEdge | null; + /** The `DbUsageModule` that was deleted by this mutation. */ + dbUsageModule?: DbUsageModule | null; + dbUsageModuleEdge?: DbUsageModuleEdge | null; } -export type DeleteUserAuthModulePayloadSelect = { +export type DeleteDbUsageModulePayloadSelect = { clientMutationId?: boolean; - userAuthModule?: { - select: UserAuthModuleSelect; + dbUsageModule?: { + select: DbUsageModuleSelect; }; - userAuthModuleEdge?: { - select: UserAuthModuleEdgeSelect; + dbUsageModuleEdge?: { + select: DbUsageModuleEdgeSelect; }; }; export interface CreateAgentModulePayload { @@ -16067,51 +17604,6 @@ export type DeleteLimitsModulePayloadSelect = { select: LimitsModuleEdgeSelect; }; }; -export interface CreateMembershipsModulePayload { - clientMutationId?: string | null; - /** The `MembershipsModule` that was created by this mutation. */ - membershipsModule?: MembershipsModule | null; - membershipsModuleEdge?: MembershipsModuleEdge | null; -} -export type CreateMembershipsModulePayloadSelect = { - clientMutationId?: boolean; - membershipsModule?: { - select: MembershipsModuleSelect; - }; - membershipsModuleEdge?: { - select: MembershipsModuleEdgeSelect; - }; -}; -export interface UpdateMembershipsModulePayload { - clientMutationId?: string | null; - /** The `MembershipsModule` that was updated by this mutation. */ - membershipsModule?: MembershipsModule | null; - membershipsModuleEdge?: MembershipsModuleEdge | null; -} -export type UpdateMembershipsModulePayloadSelect = { - clientMutationId?: boolean; - membershipsModule?: { - select: MembershipsModuleSelect; - }; - membershipsModuleEdge?: { - select: MembershipsModuleEdgeSelect; - }; -}; -export interface DeleteMembershipsModulePayload { - clientMutationId?: string | null; - /** The `MembershipsModule` that was deleted by this mutation. */ - membershipsModule?: MembershipsModule | null; - membershipsModuleEdge?: MembershipsModuleEdge | null; -} -export type DeleteMembershipsModulePayloadSelect = { - clientMutationId?: boolean; - membershipsModule?: { - select: MembershipsModuleSelect; - }; - membershipsModuleEdge?: { - select: MembershipsModuleEdgeSelect; - }; -}; export interface CreateEntityTypeProvisionPayload { clientMutationId?: string | null; /** The `EntityTypeProvision` that was created by this mutation. */ @@ -16202,6 +17694,51 @@ export type DeleteStorageModulePayloadSelect = { select: StorageModuleEdgeSelect; }; }; +export interface CreateMembershipsModulePayload { + clientMutationId?: string | null; + /** The `MembershipsModule` that was created by this mutation. */ + membershipsModule?: MembershipsModule | null; + membershipsModuleEdge?: MembershipsModuleEdge | null; +} +export type CreateMembershipsModulePayloadSelect = { + clientMutationId?: boolean; + membershipsModule?: { + select: MembershipsModuleSelect; + }; + membershipsModuleEdge?: { + select: MembershipsModuleEdgeSelect; + }; +}; +export interface UpdateMembershipsModulePayload { + clientMutationId?: string | null; + /** The `MembershipsModule` that was updated by this mutation. */ + membershipsModule?: MembershipsModule | null; + membershipsModuleEdge?: MembershipsModuleEdge | null; +} +export type UpdateMembershipsModulePayloadSelect = { + clientMutationId?: boolean; + membershipsModule?: { + select: MembershipsModuleSelect; + }; + membershipsModuleEdge?: { + select: MembershipsModuleEdgeSelect; + }; +}; +export interface DeleteMembershipsModulePayload { + clientMutationId?: string | null; + /** The `MembershipsModule` that was deleted by this mutation. */ + membershipsModule?: MembershipsModule | null; + membershipsModuleEdge?: MembershipsModuleEdge | null; +} +export type DeleteMembershipsModulePayloadSelect = { + clientMutationId?: boolean; + membershipsModule?: { + select: MembershipsModuleSelect; + }; + membershipsModuleEdge?: { + select: MembershipsModuleEdgeSelect; + }; +}; export interface CreateEventsModulePayload { clientMutationId?: string | null; /** The `EventsModule` that was created by this mutation. */ @@ -16291,18 +17828,6 @@ export type MembershipTypesModuleEdgeSelect = { select: MembershipTypesModuleSelect; }; }; -/** A `UserStateModule` edge in the connection. */ -export interface UserStateModuleEdge { - cursor?: string | null; - /** The `UserStateModule` at the end of the edge. */ - node?: UserStateModule | null; -} -export type UserStateModuleEdgeSelect = { - cursor?: boolean; - node?: { - select: UserStateModuleSelect; - }; -}; /** A `SessionSecretsModule` edge in the connection. */ export interface SessionSecretsModuleEdge { cursor?: string | null; @@ -16315,18 +17840,6 @@ export type SessionSecretsModuleEdgeSelect = { select: SessionSecretsModuleSelect; }; }; -/** A `ConfigSecretsOrgModule` edge in the connection. */ -export interface ConfigSecretsOrgModuleEdge { - cursor?: string | null; - /** The `ConfigSecretsOrgModule` at the end of the edge. */ - node?: ConfigSecretsOrgModule | null; -} -export type ConfigSecretsOrgModuleEdgeSelect = { - cursor?: boolean; - node?: { - select: ConfigSecretsOrgModuleSelect; - }; -}; /** A `DevicesModule` edge in the connection. */ export interface DevicesModuleEdge { cursor?: string | null; @@ -16351,18 +17864,6 @@ export type I18NModuleEdgeSelect = { select: I18NModuleSelect; }; }; -/** A `UserCredentialsModule` edge in the connection. */ -export interface UserCredentialsModuleEdge { - cursor?: string | null; - /** The `UserCredentialsModule` at the end of the edge. */ - node?: UserCredentialsModule | null; -} -export type UserCredentialsModuleEdgeSelect = { - cursor?: boolean; - node?: { - select: UserCredentialsModuleSelect; - }; -}; /** A `UserSettingsModule` edge in the connection. */ export interface UserSettingsModuleEdge { cursor?: string | null; @@ -16375,16 +17876,28 @@ export type UserSettingsModuleEdgeSelect = { select: UserSettingsModuleSelect; }; }; -/** A `ConfigSecretsUserModule` edge in the connection. */ -export interface ConfigSecretsUserModuleEdge { +/** A `UserStateModule` edge in the connection. */ +export interface UserStateModuleEdge { cursor?: string | null; - /** The `ConfigSecretsUserModule` at the end of the edge. */ - node?: ConfigSecretsUserModule | null; + /** The `UserStateModule` at the end of the edge. */ + node?: UserStateModule | null; } -export type ConfigSecretsUserModuleEdgeSelect = { +export type UserStateModuleEdgeSelect = { cursor?: boolean; node?: { - select: ConfigSecretsUserModuleSelect; + select: UserStateModuleSelect; + }; +}; +/** A `UserCredentialsModule` edge in the connection. */ +export interface UserCredentialsModuleEdge { + cursor?: string | null; + /** The `UserCredentialsModule` at the end of the edge. */ + node?: UserCredentialsModule | null; +} +export type UserCredentialsModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: UserCredentialsModuleSelect; }; }; /** A `ConnectedAccountsModule` edge in the connection. */ @@ -16459,6 +17972,18 @@ export type WebauthnCredentialsModuleEdgeSelect = { select: WebauthnCredentialsModuleSelect; }; }; +/** A `ConfigSecretsUserModule` edge in the connection. */ +export interface ConfigSecretsUserModuleEdge { + cursor?: string | null; + /** The `ConfigSecretsUserModule` at the end of the edge. */ + node?: ConfigSecretsUserModule | null; +} +export type ConfigSecretsUserModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: ConfigSecretsUserModuleSelect; + }; +}; /** A `CryptoAddressesModule` edge in the connection. */ export interface CryptoAddressesModuleEdge { cursor?: string | null; @@ -16483,18 +18008,6 @@ export type DenormalizedTableFieldEdgeSelect = { select: DenormalizedTableFieldSelect; }; }; -/** A `IdentityProvidersModule` edge in the connection. */ -export interface IdentityProvidersModuleEdge { - cursor?: string | null; - /** The `IdentityProvidersModule` at the end of the edge. */ - node?: IdentityProvidersModule | null; -} -export type IdentityProvidersModuleEdgeSelect = { - cursor?: boolean; - node?: { - select: IdentityProvidersModuleSelect; - }; -}; /** A `RlsModule` edge in the connection. */ export interface RlsModuleEdge { cursor?: string | null; @@ -16561,46 +18074,106 @@ export interface SessionsModuleEdge { /** The `SessionsModule` at the end of the edge. */ node?: SessionsModule | null; } -export type SessionsModuleEdgeSelect = { +export type SessionsModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: SessionsModuleSelect; + }; +}; +/** A `SecureTableProvision` edge in the connection. */ +export interface SecureTableProvisionEdge { + cursor?: string | null; + /** The `SecureTableProvision` at the end of the edge. */ + node?: SecureTableProvision | null; +} +export type SecureTableProvisionEdgeSelect = { + cursor?: boolean; + node?: { + select: SecureTableProvisionSelect; + }; +}; +/** A `IdentityProvidersModule` edge in the connection. */ +export interface IdentityProvidersModuleEdge { + cursor?: string | null; + /** The `IdentityProvidersModule` at the end of the edge. */ + node?: IdentityProvidersModule | null; +} +export type IdentityProvidersModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: IdentityProvidersModuleSelect; + }; +}; +/** A `IntegrationProvidersModule` edge in the connection. */ +export interface IntegrationProvidersModuleEdge { + cursor?: string | null; + /** The `IntegrationProvidersModule` at the end of the edge. */ + node?: IntegrationProvidersModule | null; +} +export type IntegrationProvidersModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: IntegrationProvidersModuleSelect; + }; +}; +/** A `DbPoolConfig` edge in the connection. */ +export interface DbPoolConfigEdge { + cursor?: string | null; + /** The `DbPoolConfig` at the end of the edge. */ + node?: DbPoolConfig | null; +} +export type DbPoolConfigEdgeSelect = { + cursor?: boolean; + node?: { + select: DbPoolConfigSelect; + }; +}; +/** A `RealtimeModule` edge in the connection. */ +export interface RealtimeModuleEdge { + cursor?: string | null; + /** The `RealtimeModule` at the end of the edge. */ + node?: RealtimeModule | null; +} +export type RealtimeModuleEdgeSelect = { cursor?: boolean; node?: { - select: SessionsModuleSelect; + select: RealtimeModuleSelect; }; }; -/** A `SecureTableProvision` edge in the connection. */ -export interface SecureTableProvisionEdge { +/** A `InfraSecretsModule` edge in the connection. */ +export interface InfraSecretsModuleEdge { cursor?: string | null; - /** The `SecureTableProvision` at the end of the edge. */ - node?: SecureTableProvision | null; + /** The `InfraSecretsModule` at the end of the edge. */ + node?: InfraSecretsModule | null; } -export type SecureTableProvisionEdgeSelect = { +export type InfraSecretsModuleEdgeSelect = { cursor?: boolean; node?: { - select: SecureTableProvisionSelect; + select: InfraSecretsModuleSelect; }; }; -/** A `DatabaseProvisionModule` edge in the connection. */ -export interface DatabaseProvisionModuleEdge { +/** A `InternalSecretsModule` edge in the connection. */ +export interface InternalSecretsModuleEdge { cursor?: string | null; - /** The `DatabaseProvisionModule` at the end of the edge. */ - node?: DatabaseProvisionModule | null; + /** The `InternalSecretsModule` at the end of the edge. */ + node?: InternalSecretsModule | null; } -export type DatabaseProvisionModuleEdgeSelect = { +export type InternalSecretsModuleEdgeSelect = { cursor?: boolean; node?: { - select: DatabaseProvisionModuleSelect; + select: InternalSecretsModuleSelect; }; }; -/** A `ConfigSecretsModule` edge in the connection. */ -export interface ConfigSecretsModuleEdge { +/** A `DbPresetModule` edge in the connection. */ +export interface DbPresetModuleEdge { cursor?: string | null; - /** The `ConfigSecretsModule` at the end of the edge. */ - node?: ConfigSecretsModule | null; + /** The `DbPresetModule` at the end of the edge. */ + node?: DbPresetModule | null; } -export type ConfigSecretsModuleEdgeSelect = { +export type DbPresetModuleEdgeSelect = { cursor?: boolean; node?: { - select: ConfigSecretsModuleSelect; + select: DbPresetModuleSelect; }; }; /** A `GraphModule` edge in the connection. */ @@ -16615,18 +18188,6 @@ export type GraphModuleEdgeSelect = { select: GraphModuleSelect; }; }; -/** A `MerkleStoreModule` edge in the connection. */ -export interface MerkleStoreModuleEdge { - cursor?: string | null; - /** The `MerkleStoreModule` at the end of the edge. */ - node?: MerkleStoreModule | null; -} -export type MerkleStoreModuleEdgeSelect = { - cursor?: boolean; - node?: { - select: MerkleStoreModuleSelect; - }; -}; /** A `RateLimitMetersModule` edge in the connection. */ export interface RateLimitMetersModuleEdge { cursor?: string | null; @@ -16639,16 +18200,16 @@ export type RateLimitMetersModuleEdgeSelect = { select: RateLimitMetersModuleSelect; }; }; -/** A `RealtimeModule` edge in the connection. */ -export interface RealtimeModuleEdge { +/** A `InfraConfigModule` edge in the connection. */ +export interface InfraConfigModuleEdge { cursor?: string | null; - /** The `RealtimeModule` at the end of the edge. */ - node?: RealtimeModule | null; + /** The `InfraConfigModule` at the end of the edge. */ + node?: InfraConfigModule | null; } -export type RealtimeModuleEdgeSelect = { +export type InfraConfigModuleEdgeSelect = { cursor?: boolean; node?: { - select: RealtimeModuleSelect; + select: InfraConfigModuleSelect; }; }; /** A `WebauthnAuthModule` edge in the connection. */ @@ -16663,16 +18224,28 @@ export type WebauthnAuthModuleEdgeSelect = { select: WebauthnAuthModuleSelect; }; }; -/** A `FunctionInvocationModule` edge in the connection. */ -export interface FunctionInvocationModuleEdge { +/** A `PrincipalAuthModule` edge in the connection. */ +export interface PrincipalAuthModuleEdge { cursor?: string | null; - /** The `FunctionInvocationModule` at the end of the edge. */ - node?: FunctionInvocationModule | null; + /** The `PrincipalAuthModule` at the end of the edge. */ + node?: PrincipalAuthModule | null; } -export type FunctionInvocationModuleEdgeSelect = { +export type PrincipalAuthModuleEdgeSelect = { cursor?: boolean; node?: { - select: FunctionInvocationModuleSelect; + select: PrincipalAuthModuleSelect; + }; +}; +/** A `DbPool` edge in the connection. */ +export interface DbPoolEdge { + cursor?: string | null; + /** The `DbPool` at the end of the edge. */ + node?: DbPool | null; +} +export type DbPoolEdgeSelect = { + cursor?: boolean; + node?: { + select: DbPoolSelect; }; }; /** A `FunctionModule` edge in the connection. */ @@ -16687,52 +18260,52 @@ export type FunctionModuleEdgeSelect = { select: FunctionModuleSelect; }; }; -/** A `InvitesModule` edge in the connection. */ -export interface InvitesModuleEdge { +/** A `MerkleStoreModule` edge in the connection. */ +export interface MerkleStoreModuleEdge { cursor?: string | null; - /** The `InvitesModule` at the end of the edge. */ - node?: InvitesModule | null; + /** The `MerkleStoreModule` at the end of the edge. */ + node?: MerkleStoreModule | null; } -export type InvitesModuleEdgeSelect = { +export type MerkleStoreModuleEdgeSelect = { cursor?: boolean; node?: { - select: InvitesModuleSelect; + select: MerkleStoreModuleSelect; }; }; -/** A `PrincipalAuthModule` edge in the connection. */ -export interface PrincipalAuthModuleEdge { +/** A `DatabaseProvisionModule` edge in the connection. */ +export interface DatabaseProvisionModuleEdge { cursor?: string | null; - /** The `PrincipalAuthModule` at the end of the edge. */ - node?: PrincipalAuthModule | null; + /** The `DatabaseProvisionModule` at the end of the edge. */ + node?: DatabaseProvisionModule | null; } -export type PrincipalAuthModuleEdgeSelect = { +export type DatabaseProvisionModuleEdgeSelect = { cursor?: boolean; node?: { - select: PrincipalAuthModuleSelect; + select: DatabaseProvisionModuleSelect; }; }; -/** A `ComputeLogModule` edge in the connection. */ -export interface ComputeLogModuleEdge { +/** A `FunctionInvocationModule` edge in the connection. */ +export interface FunctionInvocationModuleEdge { cursor?: string | null; - /** The `ComputeLogModule` at the end of the edge. */ - node?: ComputeLogModule | null; + /** The `FunctionInvocationModule` at the end of the edge. */ + node?: FunctionInvocationModule | null; } -export type ComputeLogModuleEdgeSelect = { +export type FunctionInvocationModuleEdgeSelect = { cursor?: boolean; node?: { - select: ComputeLogModuleSelect; + select: FunctionInvocationModuleSelect; }; }; -/** A `InferenceLogModule` edge in the connection. */ -export interface InferenceLogModuleEdge { +/** A `InvitesModule` edge in the connection. */ +export interface InvitesModuleEdge { cursor?: string | null; - /** The `InferenceLogModule` at the end of the edge. */ - node?: InferenceLogModule | null; + /** The `InvitesModule` at the end of the edge. */ + node?: InvitesModule | null; } -export type InferenceLogModuleEdgeSelect = { +export type InvitesModuleEdgeSelect = { cursor?: boolean; node?: { - select: InferenceLogModuleSelect; + select: InvitesModuleSelect; }; }; /** A `NamespaceModule` edge in the connection. */ @@ -16747,64 +18320,64 @@ export type NamespaceModuleEdgeSelect = { select: NamespaceModuleSelect; }; }; -/** A `ResourceModule` edge in the connection. */ -export interface ResourceModuleEdge { +/** A `PlansModule` edge in the connection. */ +export interface PlansModuleEdge { cursor?: string | null; - /** The `ResourceModule` at the end of the edge. */ - node?: ResourceModule | null; + /** The `PlansModule` at the end of the edge. */ + node?: PlansModule | null; } -export type ResourceModuleEdgeSelect = { +export type PlansModuleEdgeSelect = { cursor?: boolean; node?: { - select: ResourceModuleSelect; + select: PlansModuleSelect; }; }; -/** A `StorageLogModule` edge in the connection. */ -export interface StorageLogModuleEdge { +/** A `ComputeLogModule` edge in the connection. */ +export interface ComputeLogModuleEdge { cursor?: string | null; - /** The `StorageLogModule` at the end of the edge. */ - node?: StorageLogModule | null; + /** The `ComputeLogModule` at the end of the edge. */ + node?: ComputeLogModule | null; } -export type StorageLogModuleEdgeSelect = { +export type ComputeLogModuleEdgeSelect = { cursor?: boolean; node?: { - select: StorageLogModuleSelect; + select: ComputeLogModuleSelect; }; }; -/** A `TransferLogModule` edge in the connection. */ -export interface TransferLogModuleEdge { +/** A `InferenceLogModule` edge in the connection. */ +export interface InferenceLogModuleEdge { cursor?: string | null; - /** The `TransferLogModule` at the end of the edge. */ - node?: TransferLogModule | null; + /** The `InferenceLogModule` at the end of the edge. */ + node?: InferenceLogModule | null; } -export type TransferLogModuleEdgeSelect = { +export type InferenceLogModuleEdgeSelect = { cursor?: boolean; node?: { - select: TransferLogModuleSelect; + select: InferenceLogModuleSelect; }; }; -/** A `FunctionDeploymentModule` edge in the connection. */ -export interface FunctionDeploymentModuleEdge { +/** A `StorageLogModule` edge in the connection. */ +export interface StorageLogModuleEdge { cursor?: string | null; - /** The `FunctionDeploymentModule` at the end of the edge. */ - node?: FunctionDeploymentModule | null; + /** The `StorageLogModule` at the end of the edge. */ + node?: StorageLogModule | null; } -export type FunctionDeploymentModuleEdgeSelect = { +export type StorageLogModuleEdgeSelect = { cursor?: boolean; node?: { - select: FunctionDeploymentModuleSelect; + select: StorageLogModuleSelect; }; }; -/** A `PlansModule` edge in the connection. */ -export interface PlansModuleEdge { +/** A `TransferLogModule` edge in the connection. */ +export interface TransferLogModuleEdge { cursor?: string | null; - /** The `PlansModule` at the end of the edge. */ - node?: PlansModule | null; + /** The `TransferLogModule` at the end of the edge. */ + node?: TransferLogModule | null; } -export type PlansModuleEdgeSelect = { +export type TransferLogModuleEdgeSelect = { cursor?: boolean; node?: { - select: PlansModuleSelect; + select: TransferLogModuleSelect; }; }; /** A `BillingProviderModule` edge in the connection. */ @@ -16819,16 +18392,28 @@ export type BillingProviderModuleEdgeSelect = { select: BillingProviderModuleSelect; }; }; -/** A `DbUsageModule` edge in the connection. */ -export interface DbUsageModuleEdge { +/** A `FunctionDeploymentModule` edge in the connection. */ +export interface FunctionDeploymentModuleEdge { cursor?: string | null; - /** The `DbUsageModule` at the end of the edge. */ - node?: DbUsageModule | null; + /** The `FunctionDeploymentModule` at the end of the edge. */ + node?: FunctionDeploymentModule | null; } -export type DbUsageModuleEdgeSelect = { +export type FunctionDeploymentModuleEdgeSelect = { cursor?: boolean; node?: { - select: DbUsageModuleSelect; + select: FunctionDeploymentModuleSelect; + }; +}; +/** A `PermissionsModule` edge in the connection. */ +export interface PermissionsModuleEdge { + cursor?: string | null; + /** The `PermissionsModule` at the end of the edge. */ + node?: PermissionsModule | null; +} +export type PermissionsModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: PermissionsModuleSelect; }; }; /** A `GraphExecutionModule` edge in the connection. */ @@ -16855,18 +18440,6 @@ export type HierarchyModuleEdgeSelect = { select: HierarchyModuleSelect; }; }; -/** A `PermissionsModule` edge in the connection. */ -export interface PermissionsModuleEdge { - cursor?: string | null; - /** The `PermissionsModule` at the end of the edge. */ - node?: PermissionsModule | null; -} -export type PermissionsModuleEdgeSelect = { - cursor?: boolean; - node?: { - select: PermissionsModuleSelect; - }; -}; /** A `NotificationsModule` edge in the connection. */ export interface NotificationsModuleEdge { cursor?: string | null; @@ -16879,6 +18452,18 @@ export type NotificationsModuleEdgeSelect = { select: NotificationsModuleSelect; }; }; +/** A `RelationProvision` edge in the connection. */ +export interface RelationProvisionEdge { + cursor?: string | null; + /** The `RelationProvision` at the end of the edge. */ + node?: RelationProvision | null; +} +export type RelationProvisionEdgeSelect = { + cursor?: boolean; + node?: { + select: RelationProvisionSelect; + }; +}; /** A `ProfilesModule` edge in the connection. */ export interface ProfilesModuleEdge { cursor?: string | null; @@ -16903,16 +18488,16 @@ export type BillingModuleEdgeSelect = { select: BillingModuleSelect; }; }; -/** A `RelationProvision` edge in the connection. */ -export interface RelationProvisionEdge { +/** A `ResourceModule` edge in the connection. */ +export interface ResourceModuleEdge { cursor?: string | null; - /** The `RelationProvision` at the end of the edge. */ - node?: RelationProvision | null; + /** The `ResourceModule` at the end of the edge. */ + node?: ResourceModule | null; } -export type RelationProvisionEdgeSelect = { +export type ResourceModuleEdgeSelect = { cursor?: boolean; node?: { - select: RelationProvisionSelect; + select: ResourceModuleSelect; }; }; /** A `UserAuthModule` edge in the connection. */ @@ -16927,6 +18512,18 @@ export type UserAuthModuleEdgeSelect = { select: UserAuthModuleSelect; }; }; +/** A `DbUsageModule` edge in the connection. */ +export interface DbUsageModuleEdge { + cursor?: string | null; + /** The `DbUsageModule` at the end of the edge. */ + node?: DbUsageModule | null; +} +export type DbUsageModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: DbUsageModuleSelect; + }; +}; /** A `AgentModule` edge in the connection. */ export interface AgentModuleEdge { cursor?: string | null; @@ -16951,18 +18548,6 @@ export type LimitsModuleEdgeSelect = { select: LimitsModuleSelect; }; }; -/** A `MembershipsModule` edge in the connection. */ -export interface MembershipsModuleEdge { - cursor?: string | null; - /** The `MembershipsModule` at the end of the edge. */ - node?: MembershipsModule | null; -} -export type MembershipsModuleEdgeSelect = { - cursor?: boolean; - node?: { - select: MembershipsModuleSelect; - }; -}; /** A `EntityTypeProvision` edge in the connection. */ export interface EntityTypeProvisionEdge { cursor?: string | null; @@ -16987,6 +18572,18 @@ export type StorageModuleEdgeSelect = { select: StorageModuleSelect; }; }; +/** A `MembershipsModule` edge in the connection. */ +export interface MembershipsModuleEdge { + cursor?: string | null; + /** The `MembershipsModule` at the end of the edge. */ + node?: MembershipsModule | null; +} +export type MembershipsModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: MembershipsModuleSelect; + }; +}; /** A `EventsModule` edge in the connection. */ export interface EventsModuleEdge { cursor?: string | null; diff --git a/sdk/constructive-react/src/modules/orm/models/configSecretsOrgModule.ts b/sdk/constructive-react/src/modules/orm/models/configSecretsOrgModule.ts deleted file mode 100644 index 08969c552d..0000000000 --- a/sdk/constructive-react/src/modules/orm/models/configSecretsOrgModule.ts +++ /dev/null @@ -1,247 +0,0 @@ -/** - * ConfigSecretsOrgModule model for ORM client - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { OrmClient } from '../client'; -import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, - buildCreateDocument, - buildUpdateByPkDocument, - buildDeleteByPkDocument, -} from '../query-builder'; -import type { - ConnectionResult, - FindManyArgs, - FindFirstArgs, - CreateArgs, - UpdateArgs, - DeleteArgs, - InferSelectResult, - StrictSelect, -} from '../select-types'; -import type { - ConfigSecretsOrgModule, - ConfigSecretsOrgModuleWithRelations, - ConfigSecretsOrgModuleSelect, - ConfigSecretsOrgModuleFilter, - ConfigSecretsOrgModuleOrderBy, - CreateConfigSecretsOrgModuleInput, - UpdateConfigSecretsOrgModuleInput, - ConfigSecretsOrgModulePatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class ConfigSecretsOrgModuleModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - configSecretsOrgModules: ConnectionResult< - InferSelectResult - >; - }> { - const { document, variables } = buildFindManyDocument( - 'ConfigSecretsOrgModule', - 'configSecretsOrgModules', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - first: args?.first, - last: args?.last, - after: args?.after, - before: args?.before, - offset: args?.offset, - }, - 'ConfigSecretsOrgModuleFilter', - 'ConfigSecretsOrgModuleOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'ConfigSecretsOrgModule', - fieldName: 'configSecretsOrgModules', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - configSecretsOrgModule: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'ConfigSecretsOrgModule', - 'configSecretsOrgModules', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'ConfigSecretsOrgModuleFilter', - 'ConfigSecretsOrgModuleOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'ConfigSecretsOrgModule', - fieldName: 'configSecretsOrgModule', - document, - variables, - transform: (data: { - configSecretsOrgModules?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - configSecretsOrgModule: data.configSecretsOrgModules?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - configSecretsOrgModule: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'ConfigSecretsOrgModule', - 'configSecretsOrgModules', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'ConfigSecretsOrgModuleFilter', - 'ConfigSecretsOrgModuleOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'ConfigSecretsOrgModule', - fieldName: 'configSecretsOrgModule', - document, - variables, - transform: (data: { - configSecretsOrgModules?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - configSecretsOrgModule: data.configSecretsOrgModules?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createConfigSecretsOrgModule: { - configSecretsOrgModule: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'ConfigSecretsOrgModule', - 'createConfigSecretsOrgModule', - 'configSecretsOrgModule', - args.select, - args.data, - 'CreateConfigSecretsOrgModuleInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'ConfigSecretsOrgModule', - fieldName: 'createConfigSecretsOrgModule', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - ConfigSecretsOrgModulePatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateConfigSecretsOrgModule: { - configSecretsOrgModule: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'ConfigSecretsOrgModule', - 'updateConfigSecretsOrgModule', - 'configSecretsOrgModule', - args.select, - args.where.id, - args.data, - 'UpdateConfigSecretsOrgModuleInput', - 'id', - 'configSecretsOrgModulePatch', - connectionFieldsMap, - undefined - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'ConfigSecretsOrgModule', - fieldName: 'updateConfigSecretsOrgModule', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteConfigSecretsOrgModule: { - configSecretsOrgModule: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'ConfigSecretsOrgModule', - 'deleteConfigSecretsOrgModule', - 'configSecretsOrgModule', - { - id: args.where.id, - }, - 'DeleteConfigSecretsOrgModuleInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'ConfigSecretsOrgModule', - fieldName: 'deleteConfigSecretsOrgModule', - document, - variables, - }); - } -} diff --git a/sdk/constructive-react/src/modules/orm/models/dbPool.ts b/sdk/constructive-react/src/modules/orm/models/dbPool.ts new file mode 100644 index 0000000000..32e26fe980 --- /dev/null +++ b/sdk/constructive-react/src/modules/orm/models/dbPool.ts @@ -0,0 +1,245 @@ +/** + * DbPool model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + DbPool, + DbPoolWithRelations, + DbPoolSelect, + DbPoolFilter, + DbPoolOrderBy, + CreateDbPoolInput, + UpdateDbPoolInput, + DbPoolPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class DbPoolModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + dbPools: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'DbPool', + 'dbPools', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'DbPoolFilter', + 'DbPoolOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'DbPool', + fieldName: 'dbPools', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + dbPool: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'DbPool', + 'dbPools', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'DbPoolFilter', + 'DbPoolOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'DbPool', + fieldName: 'dbPool', + document, + variables, + transform: (data: { + dbPools?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + dbPool: data.dbPools?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + dbPool: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'DbPool', + 'dbPools', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'DbPoolFilter', + 'DbPoolOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'DbPool', + fieldName: 'dbPool', + document, + variables, + transform: (data: { + dbPools?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + dbPool: data.dbPools?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createDbPool: { + dbPool: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'DbPool', + 'createDbPool', + 'dbPool', + args.select, + args.data, + 'CreateDbPoolInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'DbPool', + fieldName: 'createDbPool', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + DbPoolPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateDbPool: { + dbPool: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'DbPool', + 'updateDbPool', + 'dbPool', + args.select, + args.where.id, + args.data, + 'UpdateDbPoolInput', + 'id', + 'dbPoolPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'DbPool', + fieldName: 'updateDbPool', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteDbPool: { + dbPool: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'DbPool', + 'deleteDbPool', + 'dbPool', + { + id: args.where.id, + }, + 'DeleteDbPoolInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'DbPool', + fieldName: 'deleteDbPool', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/modules/orm/models/dbPoolConfig.ts b/sdk/constructive-react/src/modules/orm/models/dbPoolConfig.ts new file mode 100644 index 0000000000..df67dbab50 --- /dev/null +++ b/sdk/constructive-react/src/modules/orm/models/dbPoolConfig.ts @@ -0,0 +1,245 @@ +/** + * DbPoolConfig model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + DbPoolConfig, + DbPoolConfigWithRelations, + DbPoolConfigSelect, + DbPoolConfigFilter, + DbPoolConfigOrderBy, + CreateDbPoolConfigInput, + UpdateDbPoolConfigInput, + DbPoolConfigPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class DbPoolConfigModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + dbPoolConfigs: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'DbPoolConfig', + 'dbPoolConfigs', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'DbPoolConfigFilter', + 'DbPoolConfigOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'DbPoolConfig', + fieldName: 'dbPoolConfigs', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + dbPoolConfig: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'DbPoolConfig', + 'dbPoolConfigs', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'DbPoolConfigFilter', + 'DbPoolConfigOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'DbPoolConfig', + fieldName: 'dbPoolConfig', + document, + variables, + transform: (data: { + dbPoolConfigs?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + dbPoolConfig: data.dbPoolConfigs?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + dbPoolConfig: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'DbPoolConfig', + 'dbPoolConfigs', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'DbPoolConfigFilter', + 'DbPoolConfigOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'DbPoolConfig', + fieldName: 'dbPoolConfig', + document, + variables, + transform: (data: { + dbPoolConfigs?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + dbPoolConfig: data.dbPoolConfigs?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createDbPoolConfig: { + dbPoolConfig: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'DbPoolConfig', + 'createDbPoolConfig', + 'dbPoolConfig', + args.select, + args.data, + 'CreateDbPoolConfigInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'DbPoolConfig', + fieldName: 'createDbPoolConfig', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + DbPoolConfigPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateDbPoolConfig: { + dbPoolConfig: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'DbPoolConfig', + 'updateDbPoolConfig', + 'dbPoolConfig', + args.select, + args.where.id, + args.data, + 'UpdateDbPoolConfigInput', + 'id', + 'dbPoolConfigPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'DbPoolConfig', + fieldName: 'updateDbPoolConfig', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteDbPoolConfig: { + dbPoolConfig: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'DbPoolConfig', + 'deleteDbPoolConfig', + 'dbPoolConfig', + { + id: args.where.id, + }, + 'DeleteDbPoolConfigInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'DbPoolConfig', + fieldName: 'deleteDbPoolConfig', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/modules/orm/models/dbPresetModule.ts b/sdk/constructive-react/src/modules/orm/models/dbPresetModule.ts new file mode 100644 index 0000000000..e787354cf8 --- /dev/null +++ b/sdk/constructive-react/src/modules/orm/models/dbPresetModule.ts @@ -0,0 +1,245 @@ +/** + * DbPresetModule model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + DbPresetModule, + DbPresetModuleWithRelations, + DbPresetModuleSelect, + DbPresetModuleFilter, + DbPresetModuleOrderBy, + CreateDbPresetModuleInput, + UpdateDbPresetModuleInput, + DbPresetModulePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class DbPresetModuleModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + dbPresetModules: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'DbPresetModule', + 'dbPresetModules', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'DbPresetModuleFilter', + 'DbPresetModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'DbPresetModule', + fieldName: 'dbPresetModules', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + dbPresetModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'DbPresetModule', + 'dbPresetModules', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'DbPresetModuleFilter', + 'DbPresetModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'DbPresetModule', + fieldName: 'dbPresetModule', + document, + variables, + transform: (data: { + dbPresetModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + dbPresetModule: data.dbPresetModules?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + dbPresetModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'DbPresetModule', + 'dbPresetModules', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'DbPresetModuleFilter', + 'DbPresetModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'DbPresetModule', + fieldName: 'dbPresetModule', + document, + variables, + transform: (data: { + dbPresetModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + dbPresetModule: data.dbPresetModules?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createDbPresetModule: { + dbPresetModule: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'DbPresetModule', + 'createDbPresetModule', + 'dbPresetModule', + args.select, + args.data, + 'CreateDbPresetModuleInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'DbPresetModule', + fieldName: 'createDbPresetModule', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + DbPresetModulePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateDbPresetModule: { + dbPresetModule: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'DbPresetModule', + 'updateDbPresetModule', + 'dbPresetModule', + args.select, + args.where.id, + args.data, + 'UpdateDbPresetModuleInput', + 'id', + 'dbPresetModulePatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'DbPresetModule', + fieldName: 'updateDbPresetModule', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteDbPresetModule: { + dbPresetModule: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'DbPresetModule', + 'deleteDbPresetModule', + 'dbPresetModule', + { + id: args.where.id, + }, + 'DeleteDbPresetModuleInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'DbPresetModule', + fieldName: 'deleteDbPresetModule', + 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 15e5dd1552..9cf869b5e3 100644 --- a/sdk/constructive-react/src/modules/orm/models/index.ts +++ b/sdk/constructive-react/src/modules/orm/models/index.ts @@ -5,23 +5,21 @@ */ export { DefaultIdsModuleModel } from './defaultIdsModule'; export { MembershipTypesModuleModel } from './membershipTypesModule'; -export { UserStateModuleModel } from './userStateModule'; export { SessionSecretsModuleModel } from './sessionSecretsModule'; -export { ConfigSecretsOrgModuleModel } from './configSecretsOrgModule'; export { DevicesModuleModel } from './devicesModule'; export { I18NModuleModel } from './i18NModule'; -export { UserCredentialsModuleModel } from './userCredentialsModule'; export { UserSettingsModuleModel } from './userSettingsModule'; -export { ConfigSecretsUserModuleModel } from './configSecretsUserModule'; +export { UserStateModuleModel } from './userStateModule'; +export { UserCredentialsModuleModel } from './userCredentialsModule'; export { ConnectedAccountsModuleModel } from './connectedAccountsModule'; export { EmailsModuleModel } from './emailsModule'; export { PhoneNumbersModuleModel } from './phoneNumbersModule'; export { RateLimitsModuleModel } from './rateLimitsModule'; export { UsersModuleModel } from './usersModule'; export { WebauthnCredentialsModuleModel } from './webauthnCredentialsModule'; +export { ConfigSecretsUserModuleModel } from './configSecretsUserModule'; export { CryptoAddressesModuleModel } from './cryptoAddressesModule'; export { DenormalizedTableFieldModel } from './denormalizedTableField'; -export { IdentityProvidersModuleModel } from './identityProvidersModule'; export { RlsModuleModel } from './rlsModule'; export { BlueprintModel } from './blueprint'; export { BlueprintTemplateModel } from './blueprintTemplate'; @@ -29,38 +27,45 @@ export { BlueprintConstructionModel } from './blueprintConstruction'; export { CryptoAuthModuleModel } from './cryptoAuthModule'; export { SessionsModuleModel } from './sessionsModule'; export { SecureTableProvisionModel } from './secureTableProvision'; -export { DatabaseProvisionModuleModel } from './databaseProvisionModule'; -export { ConfigSecretsModuleModel } from './configSecretsModule'; +export { IdentityProvidersModuleModel } from './identityProvidersModule'; +export { IntegrationProvidersModuleModel } from './integrationProvidersModule'; +export { DbPoolConfigModel } from './dbPoolConfig'; +export { RealtimeModuleModel } from './realtimeModule'; +export { InfraSecretsModuleModel } from './infraSecretsModule'; +export { InternalSecretsModuleModel } from './internalSecretsModule'; +export { DbPresetModuleModel } from './dbPresetModule'; export { GraphModuleModel } from './graphModule'; -export { MerkleStoreModuleModel } from './merkleStoreModule'; export { RateLimitMetersModuleModel } from './rateLimitMetersModule'; -export { RealtimeModuleModel } from './realtimeModule'; +export { InfraConfigModuleModel } from './infraConfigModule'; export { WebauthnAuthModuleModel } from './webauthnAuthModule'; -export { FunctionInvocationModuleModel } from './functionInvocationModule'; +export { PrincipalAuthModuleModel } from './principalAuthModule'; +export { DbPoolModel } from './dbPool'; export { FunctionModuleModel } from './functionModule'; +export { MerkleStoreModuleModel } from './merkleStoreModule'; +export { DatabaseProvisionModuleModel } from './databaseProvisionModule'; +export { FunctionInvocationModuleModel } from './functionInvocationModule'; export { InvitesModuleModel } from './invitesModule'; -export { PrincipalAuthModuleModel } from './principalAuthModule'; +export { NamespaceModuleModel } from './namespaceModule'; +export { PlansModuleModel } from './plansModule'; export { ComputeLogModuleModel } from './computeLogModule'; export { InferenceLogModuleModel } from './inferenceLogModule'; -export { NamespaceModuleModel } from './namespaceModule'; -export { ResourceModuleModel } from './resourceModule'; export { StorageLogModuleModel } from './storageLogModule'; export { TransferLogModuleModel } from './transferLogModule'; -export { FunctionDeploymentModuleModel } from './functionDeploymentModule'; -export { PlansModuleModel } from './plansModule'; export { BillingProviderModuleModel } from './billingProviderModule'; -export { DbUsageModuleModel } from './dbUsageModule'; +export { FunctionDeploymentModuleModel } from './functionDeploymentModule'; +export { PermissionsModuleModel } from './permissionsModule'; export { GraphExecutionModuleModel } from './graphExecutionModule'; export { HierarchyModuleModel } from './hierarchyModule'; -export { PermissionsModuleModel } from './permissionsModule'; export { NotificationsModuleModel } from './notificationsModule'; +export { RelationProvisionModel } from './relationProvision'; export { ProfilesModuleModel } from './profilesModule'; export { BillingModuleModel } from './billingModule'; -export { RelationProvisionModel } from './relationProvision'; +export { ResourceModuleModel } from './resourceModule'; export { UserAuthModuleModel } from './userAuthModule'; +export { DbUsageModuleModel } from './dbUsageModule'; export { AgentModuleModel } from './agentModule'; export { LimitsModuleModel } from './limitsModule'; -export { MembershipsModuleModel } from './membershipsModule'; export { EntityTypeProvisionModel } from './entityTypeProvision'; export { StorageModuleModel } from './storageModule'; +export { MembershipsModuleModel } from './membershipsModule'; export { EventsModuleModel } from './eventsModule'; diff --git a/sdk/constructive-react/src/modules/orm/models/infraConfigModule.ts b/sdk/constructive-react/src/modules/orm/models/infraConfigModule.ts new file mode 100644 index 0000000000..12a793b04f --- /dev/null +++ b/sdk/constructive-react/src/modules/orm/models/infraConfigModule.ts @@ -0,0 +1,245 @@ +/** + * InfraConfigModule model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + InfraConfigModule, + InfraConfigModuleWithRelations, + InfraConfigModuleSelect, + InfraConfigModuleFilter, + InfraConfigModuleOrderBy, + CreateInfraConfigModuleInput, + UpdateInfraConfigModuleInput, + InfraConfigModulePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class InfraConfigModuleModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + infraConfigModules: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'InfraConfigModule', + 'infraConfigModules', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'InfraConfigModuleFilter', + 'InfraConfigModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'InfraConfigModule', + fieldName: 'infraConfigModules', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + infraConfigModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'InfraConfigModule', + 'infraConfigModules', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'InfraConfigModuleFilter', + 'InfraConfigModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'InfraConfigModule', + fieldName: 'infraConfigModule', + document, + variables, + transform: (data: { + infraConfigModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + infraConfigModule: data.infraConfigModules?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + infraConfigModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'InfraConfigModule', + 'infraConfigModules', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'InfraConfigModuleFilter', + 'InfraConfigModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'InfraConfigModule', + fieldName: 'infraConfigModule', + document, + variables, + transform: (data: { + infraConfigModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + infraConfigModule: data.infraConfigModules?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createInfraConfigModule: { + infraConfigModule: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'InfraConfigModule', + 'createInfraConfigModule', + 'infraConfigModule', + args.select, + args.data, + 'CreateInfraConfigModuleInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'InfraConfigModule', + fieldName: 'createInfraConfigModule', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + InfraConfigModulePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateInfraConfigModule: { + infraConfigModule: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'InfraConfigModule', + 'updateInfraConfigModule', + 'infraConfigModule', + args.select, + args.where.id, + args.data, + 'UpdateInfraConfigModuleInput', + 'id', + 'infraConfigModulePatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'InfraConfigModule', + fieldName: 'updateInfraConfigModule', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteInfraConfigModule: { + infraConfigModule: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'InfraConfigModule', + 'deleteInfraConfigModule', + 'infraConfigModule', + { + id: args.where.id, + }, + 'DeleteInfraConfigModuleInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'InfraConfigModule', + fieldName: 'deleteInfraConfigModule', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/modules/orm/models/infraSecretsModule.ts b/sdk/constructive-react/src/modules/orm/models/infraSecretsModule.ts new file mode 100644 index 0000000000..165b4f2d59 --- /dev/null +++ b/sdk/constructive-react/src/modules/orm/models/infraSecretsModule.ts @@ -0,0 +1,245 @@ +/** + * InfraSecretsModule model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + InfraSecretsModule, + InfraSecretsModuleWithRelations, + InfraSecretsModuleSelect, + InfraSecretsModuleFilter, + InfraSecretsModuleOrderBy, + CreateInfraSecretsModuleInput, + UpdateInfraSecretsModuleInput, + InfraSecretsModulePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class InfraSecretsModuleModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + infraSecretsModules: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'InfraSecretsModule', + 'infraSecretsModules', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'InfraSecretsModuleFilter', + 'InfraSecretsModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'InfraSecretsModule', + fieldName: 'infraSecretsModules', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + infraSecretsModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'InfraSecretsModule', + 'infraSecretsModules', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'InfraSecretsModuleFilter', + 'InfraSecretsModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'InfraSecretsModule', + fieldName: 'infraSecretsModule', + document, + variables, + transform: (data: { + infraSecretsModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + infraSecretsModule: data.infraSecretsModules?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + infraSecretsModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'InfraSecretsModule', + 'infraSecretsModules', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'InfraSecretsModuleFilter', + 'InfraSecretsModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'InfraSecretsModule', + fieldName: 'infraSecretsModule', + document, + variables, + transform: (data: { + infraSecretsModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + infraSecretsModule: data.infraSecretsModules?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createInfraSecretsModule: { + infraSecretsModule: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'InfraSecretsModule', + 'createInfraSecretsModule', + 'infraSecretsModule', + args.select, + args.data, + 'CreateInfraSecretsModuleInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'InfraSecretsModule', + fieldName: 'createInfraSecretsModule', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + InfraSecretsModulePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateInfraSecretsModule: { + infraSecretsModule: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'InfraSecretsModule', + 'updateInfraSecretsModule', + 'infraSecretsModule', + args.select, + args.where.id, + args.data, + 'UpdateInfraSecretsModuleInput', + 'id', + 'infraSecretsModulePatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'InfraSecretsModule', + fieldName: 'updateInfraSecretsModule', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteInfraSecretsModule: { + infraSecretsModule: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'InfraSecretsModule', + 'deleteInfraSecretsModule', + 'infraSecretsModule', + { + id: args.where.id, + }, + 'DeleteInfraSecretsModuleInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'InfraSecretsModule', + fieldName: 'deleteInfraSecretsModule', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/modules/orm/models/integrationProvidersModule.ts b/sdk/constructive-react/src/modules/orm/models/integrationProvidersModule.ts new file mode 100644 index 0000000000..63c765faee --- /dev/null +++ b/sdk/constructive-react/src/modules/orm/models/integrationProvidersModule.ts @@ -0,0 +1,253 @@ +/** + * IntegrationProvidersModule model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + IntegrationProvidersModule, + IntegrationProvidersModuleWithRelations, + IntegrationProvidersModuleSelect, + IntegrationProvidersModuleFilter, + IntegrationProvidersModuleOrderBy, + CreateIntegrationProvidersModuleInput, + UpdateIntegrationProvidersModuleInput, + IntegrationProvidersModulePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class IntegrationProvidersModuleModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + integrationProvidersModules: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'IntegrationProvidersModule', + 'integrationProvidersModules', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'IntegrationProvidersModuleFilter', + 'IntegrationProvidersModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'IntegrationProvidersModule', + fieldName: 'integrationProvidersModules', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + integrationProvidersModule: InferSelectResult< + IntegrationProvidersModuleWithRelations, + S + > | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'IntegrationProvidersModule', + 'integrationProvidersModules', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'IntegrationProvidersModuleFilter', + 'IntegrationProvidersModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'IntegrationProvidersModule', + fieldName: 'integrationProvidersModule', + document, + variables, + transform: (data: { + integrationProvidersModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + integrationProvidersModule: data.integrationProvidersModules?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + integrationProvidersModule: InferSelectResult< + IntegrationProvidersModuleWithRelations, + S + > | null; + }> { + const { document, variables } = buildFindManyDocument( + 'IntegrationProvidersModule', + 'integrationProvidersModules', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'IntegrationProvidersModuleFilter', + 'IntegrationProvidersModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'IntegrationProvidersModule', + fieldName: 'integrationProvidersModule', + document, + variables, + transform: (data: { + integrationProvidersModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + integrationProvidersModule: data.integrationProvidersModules?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createIntegrationProvidersModule: { + integrationProvidersModule: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'IntegrationProvidersModule', + 'createIntegrationProvidersModule', + 'integrationProvidersModule', + args.select, + args.data, + 'CreateIntegrationProvidersModuleInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'IntegrationProvidersModule', + fieldName: 'createIntegrationProvidersModule', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + IntegrationProvidersModulePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateIntegrationProvidersModule: { + integrationProvidersModule: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'IntegrationProvidersModule', + 'updateIntegrationProvidersModule', + 'integrationProvidersModule', + args.select, + args.where.id, + args.data, + 'UpdateIntegrationProvidersModuleInput', + 'id', + 'integrationProvidersModulePatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'IntegrationProvidersModule', + fieldName: 'updateIntegrationProvidersModule', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteIntegrationProvidersModule: { + integrationProvidersModule: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'IntegrationProvidersModule', + 'deleteIntegrationProvidersModule', + 'integrationProvidersModule', + { + id: args.where.id, + }, + 'DeleteIntegrationProvidersModuleInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'IntegrationProvidersModule', + fieldName: 'deleteIntegrationProvidersModule', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/modules/orm/models/internalSecretsModule.ts b/sdk/constructive-react/src/modules/orm/models/internalSecretsModule.ts new file mode 100644 index 0000000000..cfffbed8d5 --- /dev/null +++ b/sdk/constructive-react/src/modules/orm/models/internalSecretsModule.ts @@ -0,0 +1,247 @@ +/** + * InternalSecretsModule model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + InternalSecretsModule, + InternalSecretsModuleWithRelations, + InternalSecretsModuleSelect, + InternalSecretsModuleFilter, + InternalSecretsModuleOrderBy, + CreateInternalSecretsModuleInput, + UpdateInternalSecretsModuleInput, + InternalSecretsModulePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class InternalSecretsModuleModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + internalSecretsModules: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'InternalSecretsModule', + 'internalSecretsModules', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'InternalSecretsModuleFilter', + 'InternalSecretsModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'InternalSecretsModule', + fieldName: 'internalSecretsModules', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + internalSecretsModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'InternalSecretsModule', + 'internalSecretsModules', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'InternalSecretsModuleFilter', + 'InternalSecretsModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'InternalSecretsModule', + fieldName: 'internalSecretsModule', + document, + variables, + transform: (data: { + internalSecretsModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + internalSecretsModule: data.internalSecretsModules?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + internalSecretsModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'InternalSecretsModule', + 'internalSecretsModules', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'InternalSecretsModuleFilter', + 'InternalSecretsModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'InternalSecretsModule', + fieldName: 'internalSecretsModule', + document, + variables, + transform: (data: { + internalSecretsModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + internalSecretsModule: data.internalSecretsModules?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createInternalSecretsModule: { + internalSecretsModule: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'InternalSecretsModule', + 'createInternalSecretsModule', + 'internalSecretsModule', + args.select, + args.data, + 'CreateInternalSecretsModuleInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'InternalSecretsModule', + fieldName: 'createInternalSecretsModule', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + InternalSecretsModulePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateInternalSecretsModule: { + internalSecretsModule: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'InternalSecretsModule', + 'updateInternalSecretsModule', + 'internalSecretsModule', + args.select, + args.where.id, + args.data, + 'UpdateInternalSecretsModuleInput', + 'id', + 'internalSecretsModulePatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'InternalSecretsModule', + fieldName: 'updateInternalSecretsModule', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteInternalSecretsModule: { + internalSecretsModule: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'InternalSecretsModule', + 'deleteInternalSecretsModule', + 'internalSecretsModule', + { + id: args.where.id, + }, + 'DeleteInternalSecretsModuleInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'InternalSecretsModule', + fieldName: 'deleteInternalSecretsModule', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/modules/schema-types.ts b/sdk/constructive-react/src/modules/schema-types.ts index 15d3b4f5f5..48b7839e79 100644 --- a/sdk/constructive-react/src/modules/schema-types.ts +++ b/sdk/constructive-react/src/modules/schema-types.ts @@ -12,13 +12,14 @@ import type { BlueprintConstruction, BlueprintTemplate, ComputeLogModule, - ConfigSecretsModule, - ConfigSecretsOrgModule, ConfigSecretsUserModule, ConnectedAccountsModule, CryptoAddressesModule, CryptoAuthModule, DatabaseProvisionModule, + DbPool, + DbPoolConfig, + DbPresetModule, DbUsageModule, DefaultIdsModule, DenormalizedTableField, @@ -35,6 +36,10 @@ import type { I18NModule, IdentityProvidersModule, InferenceLogModule, + InfraConfigModule, + InfraSecretsModule, + IntegrationProvidersModule, + InternalSecretsModule, InvitesModule, LimitsModule, MembershipTypesModule, @@ -108,21 +113,6 @@ export type MembershipTypesModuleOrderBy = | 'TABLE_ID_DESC' | 'TABLE_NAME_ASC' | 'TABLE_NAME_DESC'; -/** Methods to use when ordering `UserStateModule`. */ -export type UserStateModuleOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC' - | 'TABLE_ID_ASC' - | 'TABLE_ID_DESC' - | 'TABLE_NAME_ASC' - | 'TABLE_NAME_DESC'; /** Methods to use when ordering `SessionSecretsModule`. */ export type SessionSecretsModuleOrderBy = | 'NATURAL' @@ -140,25 +130,6 @@ export type SessionSecretsModuleOrderBy = | 'TABLE_NAME_DESC' | 'SESSIONS_TABLE_ID_ASC' | 'SESSIONS_TABLE_ID_DESC'; -/** Methods to use when ordering `ConfigSecretsOrgModule`. */ -export type ConfigSecretsOrgModuleOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC' - | 'TABLE_ID_ASC' - | 'TABLE_ID_DESC' - | 'TABLE_NAME_ASC' - | 'TABLE_NAME_DESC' - | 'API_NAME_ASC' - | 'API_NAME_DESC' - | 'PRIVATE_API_NAME_ASC' - | 'PRIVATE_API_NAME_DESC'; /** Methods to use when ordering `DevicesModule`. */ export type DevicesModuleOrderBy = | 'NATURAL' @@ -197,8 +168,8 @@ export type I18NModuleOrderBy = | 'API_NAME_DESC' | 'PRIVATE_API_NAME_ASC' | 'PRIVATE_API_NAME_DESC'; -/** Methods to use when ordering `UserCredentialsModule`. */ -export type UserCredentialsModuleOrderBy = +/** Methods to use when ordering `UserSettingsModule`. */ +export type UserSettingsModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -210,14 +181,14 @@ export type UserCredentialsModuleOrderBy = | 'SCHEMA_ID_DESC' | 'TABLE_ID_ASC' | 'TABLE_ID_DESC' + | 'OWNER_TABLE_ID_ASC' + | 'OWNER_TABLE_ID_DESC' | 'TABLE_NAME_ASC' | 'TABLE_NAME_DESC' | 'API_NAME_ASC' - | 'API_NAME_DESC' - | 'PRIVATE_API_NAME_ASC' - | 'PRIVATE_API_NAME_DESC'; -/** Methods to use when ordering `UserSettingsModule`. */ -export type UserSettingsModuleOrderBy = + | 'API_NAME_DESC'; +/** Methods to use when ordering `UserStateModule`. */ +export type UserStateModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -225,18 +196,16 @@ export type UserSettingsModuleOrderBy = | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' + | 'ENTITY_FIELD_ASC' + | 'ENTITY_FIELD_DESC' | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' | 'TABLE_ID_ASC' | 'TABLE_ID_DESC' - | 'OWNER_TABLE_ID_ASC' - | 'OWNER_TABLE_ID_DESC' | 'TABLE_NAME_ASC' - | 'TABLE_NAME_DESC' - | 'API_NAME_ASC' - | 'API_NAME_DESC'; -/** Methods to use when ordering `ConfigSecretsUserModule`. */ -export type ConfigSecretsUserModuleOrderBy = + | 'TABLE_NAME_DESC'; +/** Methods to use when ordering `UserCredentialsModule`. */ +export type UserCredentialsModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -244,16 +213,14 @@ export type ConfigSecretsUserModuleOrderBy = | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' + | 'ENTITY_FIELD_ASC' + | 'ENTITY_FIELD_DESC' | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' | 'TABLE_ID_ASC' | 'TABLE_ID_DESC' | 'TABLE_NAME_ASC' | 'TABLE_NAME_DESC' - | 'CONFIG_DEFINITIONS_TABLE_ID_ASC' - | 'CONFIG_DEFINITIONS_TABLE_ID_DESC' - | 'API_NAME_ASC' - | 'API_NAME_DESC' | 'PRIVATE_API_NAME_ASC' | 'PRIVATE_API_NAME_DESC'; /** Methods to use when ordering `ConnectedAccountsModule`. */ @@ -394,6 +361,27 @@ export type WebauthnCredentialsModuleOrderBy = | 'API_NAME_DESC' | 'PRIVATE_API_NAME_ASC' | 'PRIVATE_API_NAME_DESC'; +/** Methods to use when ordering `ConfigSecretsUserModule`. */ +export type ConfigSecretsUserModuleOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'ENTITY_FIELD_ASC' + | 'ENTITY_FIELD_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'TABLE_ID_ASC' + | 'TABLE_ID_DESC' + | 'TABLE_NAME_ASC' + | 'TABLE_NAME_DESC' + | 'API_NAME_ASC' + | 'API_NAME_DESC' + | 'PRIVATE_API_NAME_ASC' + | 'PRIVATE_API_NAME_DESC'; /** Methods to use when ordering `CryptoAddressesModule`. */ export type CryptoAddressesModuleOrderBy = | 'NATURAL' @@ -448,37 +436,6 @@ export type DenormalizedTableFieldOrderBy = | 'FUNC_NAME_DESC' | 'FUNC_ORDER_ASC' | 'FUNC_ORDER_DESC'; -/** Methods to use when ordering `IdentityProvidersModule`. */ -export type IdentityProvidersModuleOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC' - | 'PRIVATE_SCHEMA_ID_ASC' - | 'PRIVATE_SCHEMA_ID_DESC' - | 'PUBLIC_SCHEMA_NAME_ASC' - | 'PUBLIC_SCHEMA_NAME_DESC' - | 'PRIVATE_SCHEMA_NAME_ASC' - | 'PRIVATE_SCHEMA_NAME_DESC' - | 'TABLE_ID_ASC' - | 'TABLE_ID_DESC' - | 'TABLE_NAME_ASC' - | 'TABLE_NAME_DESC' - | 'API_NAME_ASC' - | 'API_NAME_DESC' - | 'PRIVATE_API_NAME_ASC' - | 'PRIVATE_API_NAME_DESC' - | 'SCOPE_ASC' - | 'SCOPE_DESC' - | 'PREFIX_ASC' - | 'PREFIX_DESC' - | 'ENTITY_TABLE_ID_ASC' - | 'ENTITY_TABLE_ID_DESC'; /** Methods to use when ordering `RlsModule`. */ export type RlsModuleOrderBy = | 'NATURAL' @@ -698,41 +655,8 @@ export type SecureTableProvisionOrderBy = | 'POLICIES_DESC' | 'OUT_FIELDS_ASC' | 'OUT_FIELDS_DESC'; -/** Methods to use when ordering `DatabaseProvisionModule`. */ -export type DatabaseProvisionModuleOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_NAME_ASC' - | 'DATABASE_NAME_DESC' - | 'OWNER_ID_ASC' - | 'OWNER_ID_DESC' - | 'SUBDOMAIN_ASC' - | 'SUBDOMAIN_DESC' - | 'DOMAIN_ASC' - | 'DOMAIN_DESC' - | 'MODULES_ASC' - | 'MODULES_DESC' - | 'OPTIONS_ASC' - | 'OPTIONS_DESC' - | 'BOOTSTRAP_USER_ASC' - | 'BOOTSTRAP_USER_DESC' - | 'STATUS_ASC' - | 'STATUS_DESC' - | 'ERROR_MESSAGE_ASC' - | 'ERROR_MESSAGE_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'COMPLETED_AT_ASC' - | 'COMPLETED_AT_DESC'; -/** Methods to use when ordering `ConfigSecretsModule`. */ -export type ConfigSecretsModuleOrderBy = +/** Methods to use when ordering `IdentityProvidersModule`. */ +export type IdentityProvidersModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -740,6 +664,8 @@ export type ConfigSecretsModuleOrderBy = | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' + | 'ENTITY_FIELD_ASC' + | 'ENTITY_FIELD_DESC' | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' | 'PRIVATE_SCHEMA_ID_ASC' @@ -750,8 +676,6 @@ export type ConfigSecretsModuleOrderBy = | 'PRIVATE_SCHEMA_NAME_DESC' | 'TABLE_ID_ASC' | 'TABLE_ID_DESC' - | 'CONFIG_DEFINITIONS_TABLE_ID_ASC' - | 'CONFIG_DEFINITIONS_TABLE_ID_DESC' | 'TABLE_NAME_ASC' | 'TABLE_NAME_DESC' | 'API_NAME_ASC' @@ -763,54 +687,9 @@ export type ConfigSecretsModuleOrderBy = | 'PREFIX_ASC' | 'PREFIX_DESC' | 'ENTITY_TABLE_ID_ASC' - | 'ENTITY_TABLE_ID_DESC' - | 'POLICIES_ASC' - | 'POLICIES_DESC' - | 'PROVISIONS_ASC' - | 'PROVISIONS_DESC' - | 'HAS_CONFIG_ASC' - | 'HAS_CONFIG_DESC'; -/** Methods to use when ordering `GraphModule`. */ -export type GraphModuleOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'PUBLIC_SCHEMA_ID_ASC' - | 'PUBLIC_SCHEMA_ID_DESC' - | 'PRIVATE_SCHEMA_ID_ASC' - | 'PRIVATE_SCHEMA_ID_DESC' - | 'PUBLIC_SCHEMA_NAME_ASC' - | 'PUBLIC_SCHEMA_NAME_DESC' - | 'PRIVATE_SCHEMA_NAME_ASC' - | 'PRIVATE_SCHEMA_NAME_DESC' - | 'SCOPE_ASC' - | 'SCOPE_DESC' - | 'PREFIX_ASC' - | 'PREFIX_DESC' - | 'MERKLE_STORE_MODULE_ID_ASC' - | 'MERKLE_STORE_MODULE_ID_DESC' - | 'GRAPHS_TABLE_ID_ASC' - | 'GRAPHS_TABLE_ID_DESC' - | 'API_NAME_ASC' - | 'API_NAME_DESC' - | 'PRIVATE_API_NAME_ASC' - | 'PRIVATE_API_NAME_DESC' - | 'ENTITY_TABLE_ID_ASC' - | 'ENTITY_TABLE_ID_DESC' - | 'POLICIES_ASC' - | 'POLICIES_DESC' - | 'PROVISIONS_ASC' - | 'PROVISIONS_DESC' - | 'DEFAULT_PERMISSIONS_ASC' - | 'DEFAULT_PERMISSIONS_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC'; -/** Methods to use when ordering `MerkleStoreModule`. */ -export type MerkleStoreModuleOrderBy = + | 'ENTITY_TABLE_ID_DESC'; +/** Methods to use when ordering `IntegrationProvidersModule`. */ +export type IntegrationProvidersModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -818,6 +697,8 @@ export type MerkleStoreModuleOrderBy = | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' + | 'ENTITY_FIELD_ASC' + | 'ENTITY_FIELD_DESC' | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' | 'PRIVATE_SCHEMA_ID_ASC' @@ -826,67 +707,45 @@ export type MerkleStoreModuleOrderBy = | 'PUBLIC_SCHEMA_NAME_DESC' | 'PRIVATE_SCHEMA_NAME_ASC' | 'PRIVATE_SCHEMA_NAME_DESC' - | 'OBJECT_TABLE_ID_ASC' - | 'OBJECT_TABLE_ID_DESC' - | 'STORE_TABLE_ID_ASC' - | 'STORE_TABLE_ID_DESC' - | 'COMMIT_TABLE_ID_ASC' - | 'COMMIT_TABLE_ID_DESC' - | 'REF_TABLE_ID_ASC' - | 'REF_TABLE_ID_DESC' - | 'PREFIX_ASC' - | 'PREFIX_DESC' + | 'TABLE_ID_ASC' + | 'TABLE_ID_DESC' + | 'TABLE_NAME_ASC' + | 'TABLE_NAME_DESC' | 'API_NAME_ASC' | 'API_NAME_DESC' | 'PRIVATE_API_NAME_ASC' | 'PRIVATE_API_NAME_DESC' | 'SCOPE_ASC' | 'SCOPE_DESC' - | 'FUNCTION_PREFIX_ASC' - | 'FUNCTION_PREFIX_DESC' - | 'PERMISSION_KEY_ASC' - | 'PERMISSION_KEY_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC'; -/** Methods to use when ordering `RateLimitMetersModule`. */ -export type RateLimitMetersModuleOrderBy = + | 'PREFIX_ASC' + | 'PREFIX_DESC' + | 'ENTITY_TABLE_ID_ASC' + | 'ENTITY_TABLE_ID_DESC'; +/** Methods to use when ordering `DbPoolConfig`. */ +export type DbPoolConfigOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC' - | 'PRIVATE_SCHEMA_ID_ASC' - | 'PRIVATE_SCHEMA_ID_DESC' - | 'PUBLIC_SCHEMA_NAME_ASC' - | 'PUBLIC_SCHEMA_NAME_DESC' - | 'PRIVATE_SCHEMA_NAME_ASC' - | 'PRIVATE_SCHEMA_NAME_DESC' - | 'RATE_LIMIT_STATE_TABLE_ID_ASC' - | 'RATE_LIMIT_STATE_TABLE_ID_DESC' - | 'RATE_LIMIT_STATE_TABLE_NAME_ASC' - | 'RATE_LIMIT_STATE_TABLE_NAME_DESC' - | 'RATE_LIMIT_OVERRIDES_TABLE_ID_ASC' - | 'RATE_LIMIT_OVERRIDES_TABLE_ID_DESC' - | 'RATE_LIMIT_OVERRIDES_TABLE_NAME_ASC' - | 'RATE_LIMIT_OVERRIDES_TABLE_NAME_DESC' - | 'RATE_WINDOW_LIMITS_TABLE_ID_ASC' - | 'RATE_WINDOW_LIMITS_TABLE_ID_DESC' - | 'RATE_WINDOW_LIMITS_TABLE_NAME_ASC' - | 'RATE_WINDOW_LIMITS_TABLE_NAME_DESC' - | 'CHECK_RATE_LIMIT_FUNCTION_ASC' - | 'CHECK_RATE_LIMIT_FUNCTION_DESC' - | 'PREFIX_ASC' - | 'PREFIX_DESC' - | 'DEFAULT_PERMISSIONS_ASC' - | 'DEFAULT_PERMISSIONS_DESC' - | 'API_NAME_ASC' - | 'API_NAME_DESC' - | 'PRIVATE_API_NAME_ASC' - | 'PRIVATE_API_NAME_DESC'; + | 'PRESET_SLUG_ASC' + | 'PRESET_SLUG_DESC' + | 'DOMAIN_ASC' + | 'DOMAIN_DESC' + | 'POOL_OWNER_ID_ASC' + | 'POOL_OWNER_ID_DESC' + | 'MIN_ASC' + | 'MIN_DESC' + | 'MAX_ASC' + | 'MAX_DESC' + | 'WARM_TTL_ASC' + | 'WARM_TTL_DESC' + | 'ENABLED_ASC' + | 'ENABLED_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; /** Methods to use when ordering `RealtimeModule`. */ export type RealtimeModuleOrderBy = | 'NATURAL' @@ -920,45 +779,8 @@ export type RealtimeModuleOrderBy = | 'API_NAME_DESC' | 'PRIVATE_API_NAME_ASC' | 'PRIVATE_API_NAME_DESC'; -/** Methods to use when ordering `WebauthnAuthModule`. */ -export type WebauthnAuthModuleOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC' - | 'USERS_TABLE_ID_ASC' - | 'USERS_TABLE_ID_DESC' - | 'CREDENTIALS_TABLE_ID_ASC' - | 'CREDENTIALS_TABLE_ID_DESC' - | 'SESSIONS_TABLE_ID_ASC' - | 'SESSIONS_TABLE_ID_DESC' - | 'SESSION_CREDENTIALS_TABLE_ID_ASC' - | 'SESSION_CREDENTIALS_TABLE_ID_DESC' - | 'SESSION_SECRETS_TABLE_ID_ASC' - | 'SESSION_SECRETS_TABLE_ID_DESC' - | 'AUTH_SETTINGS_TABLE_ID_ASC' - | 'AUTH_SETTINGS_TABLE_ID_DESC' - | 'RP_ID_ASC' - | 'RP_ID_DESC' - | 'RP_NAME_ASC' - | 'RP_NAME_DESC' - | 'ORIGIN_ALLOWLIST_ASC' - | 'ORIGIN_ALLOWLIST_DESC' - | 'ATTESTATION_TYPE_ASC' - | 'ATTESTATION_TYPE_DESC' - | 'REQUIRE_USER_VERIFICATION_ASC' - | 'REQUIRE_USER_VERIFICATION_DESC' - | 'RESIDENT_KEY_ASC' - | 'RESIDENT_KEY_DESC' - | 'CHALLENGE_EXPIRY_ASC' - | 'CHALLENGE_EXPIRY_DESC'; -/** Methods to use when ordering `FunctionInvocationModule`. */ -export type FunctionInvocationModuleOrderBy = +/** Methods to use when ordering `InfraSecretsModule`. */ +export type InfraSecretsModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -974,14 +796,10 @@ export type FunctionInvocationModuleOrderBy = | 'PUBLIC_SCHEMA_NAME_DESC' | 'PRIVATE_SCHEMA_NAME_ASC' | 'PRIVATE_SCHEMA_NAME_DESC' - | 'INVOCATIONS_TABLE_ID_ASC' - | 'INVOCATIONS_TABLE_ID_DESC' - | 'EXECUTION_LOGS_TABLE_ID_ASC' - | 'EXECUTION_LOGS_TABLE_ID_DESC' - | 'INVOCATIONS_TABLE_NAME_ASC' - | 'INVOCATIONS_TABLE_NAME_DESC' - | 'EXECUTION_LOGS_TABLE_NAME_ASC' - | 'EXECUTION_LOGS_TABLE_NAME_DESC' + | 'SECRETS_TABLE_ID_ASC' + | 'SECRETS_TABLE_ID_DESC' + | 'SECRETS_TABLE_NAME_ASC' + | 'SECRETS_TABLE_NAME_DESC' | 'API_NAME_ASC' | 'API_NAME_DESC' | 'PRIVATE_API_NAME_ASC' @@ -992,14 +810,14 @@ export type FunctionInvocationModuleOrderBy = | 'PREFIX_DESC' | 'ENTITY_TABLE_ID_ASC' | 'ENTITY_TABLE_ID_DESC' + | 'ENTITY_FIELD_ASC' + | 'ENTITY_FIELD_DESC' | 'POLICIES_ASC' | 'POLICIES_DESC' | 'PROVISIONS_ASC' - | 'PROVISIONS_DESC' - | 'DEFAULT_PERMISSIONS_ASC' - | 'DEFAULT_PERMISSIONS_DESC'; -/** Methods to use when ordering `FunctionModule`. */ -export type FunctionModuleOrderBy = + | 'PROVISIONS_DESC'; +/** Methods to use when ordering `InternalSecretsModule`. */ +export type InternalSecretsModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -1015,14 +833,10 @@ export type FunctionModuleOrderBy = | 'PUBLIC_SCHEMA_NAME_DESC' | 'PRIVATE_SCHEMA_NAME_ASC' | 'PRIVATE_SCHEMA_NAME_DESC' - | 'DEFINITIONS_TABLE_ID_ASC' - | 'DEFINITIONS_TABLE_ID_DESC' - | 'SECRET_DEFINITIONS_TABLE_ID_ASC' - | 'SECRET_DEFINITIONS_TABLE_ID_DESC' - | 'DEFINITIONS_TABLE_NAME_ASC' - | 'DEFINITIONS_TABLE_NAME_DESC' - | 'SECRET_DEFINITIONS_TABLE_NAME_ASC' - | 'SECRET_DEFINITIONS_TABLE_NAME_DESC' + | 'INTERNAL_SECRETS_TABLE_ID_ASC' + | 'INTERNAL_SECRETS_TABLE_ID_DESC' + | 'INTERNAL_SECRETS_TABLE_NAME_ASC' + | 'INTERNAL_SECRETS_TABLE_NAME_DESC' | 'API_NAME_ASC' | 'API_NAME_DESC' | 'PRIVATE_API_NAME_ASC' @@ -1033,14 +847,14 @@ export type FunctionModuleOrderBy = | 'PREFIX_DESC' | 'ENTITY_TABLE_ID_ASC' | 'ENTITY_TABLE_ID_DESC' + | 'ENTITY_FIELD_ASC' + | 'ENTITY_FIELD_DESC' | 'POLICIES_ASC' | 'POLICIES_DESC' | 'PROVISIONS_ASC' - | 'PROVISIONS_DESC' - | 'DEFAULT_PERMISSIONS_ASC' - | 'DEFAULT_PERMISSIONS_DESC'; -/** Methods to use when ordering `InvitesModule`. */ -export type InvitesModuleOrderBy = + | 'PROVISIONS_DESC'; +/** Methods to use when ordering `GraphModule`. */ +export type GraphModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -1048,81 +862,40 @@ export type InvitesModuleOrderBy = | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' - | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC' + | 'ENTITY_FIELD_ASC' + | 'ENTITY_FIELD_DESC' + | 'PUBLIC_SCHEMA_ID_ASC' + | 'PUBLIC_SCHEMA_ID_DESC' | 'PRIVATE_SCHEMA_ID_ASC' | 'PRIVATE_SCHEMA_ID_DESC' | 'PUBLIC_SCHEMA_NAME_ASC' | 'PUBLIC_SCHEMA_NAME_DESC' | 'PRIVATE_SCHEMA_NAME_ASC' | 'PRIVATE_SCHEMA_NAME_DESC' - | 'EMAILS_TABLE_ID_ASC' - | 'EMAILS_TABLE_ID_DESC' - | 'USERS_TABLE_ID_ASC' - | 'USERS_TABLE_ID_DESC' - | 'INVITES_TABLE_ID_ASC' - | 'INVITES_TABLE_ID_DESC' - | 'CLAIMED_INVITES_TABLE_ID_ASC' - | 'CLAIMED_INVITES_TABLE_ID_DESC' - | 'INVITES_TABLE_NAME_ASC' - | 'INVITES_TABLE_NAME_DESC' - | 'CLAIMED_INVITES_TABLE_NAME_ASC' - | 'CLAIMED_INVITES_TABLE_NAME_DESC' - | 'SUBMIT_INVITE_CODE_FUNCTION_ASC' - | 'SUBMIT_INVITE_CODE_FUNCTION_DESC' | 'SCOPE_ASC' | 'SCOPE_DESC' | 'PREFIX_ASC' | 'PREFIX_DESC' - | 'ENTITY_TABLE_ID_ASC' - | 'ENTITY_TABLE_ID_DESC' + | 'MERKLE_STORE_MODULE_ID_ASC' + | 'MERKLE_STORE_MODULE_ID_DESC' + | 'GRAPHS_TABLE_ID_ASC' + | 'GRAPHS_TABLE_ID_DESC' | 'API_NAME_ASC' | 'API_NAME_DESC' | 'PRIVATE_API_NAME_ASC' - | 'PRIVATE_API_NAME_DESC'; -/** Methods to use when ordering `PrincipalAuthModule`. */ -export type PrincipalAuthModuleOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC' - | 'PRINCIPALS_TABLE_ID_ASC' - | 'PRINCIPALS_TABLE_ID_DESC' - | 'PRINCIPAL_ENTITIES_TABLE_ID_ASC' - | 'PRINCIPAL_ENTITIES_TABLE_ID_DESC' - | 'PRINCIPAL_SCOPE_OVERRIDES_TABLE_ID_ASC' - | 'PRINCIPAL_SCOPE_OVERRIDES_TABLE_ID_DESC' - | 'USERS_TABLE_ID_ASC' - | 'USERS_TABLE_ID_DESC' - | 'SESSIONS_TABLE_ID_ASC' - | 'SESSIONS_TABLE_ID_DESC' - | 'SESSION_CREDENTIALS_TABLE_ID_ASC' - | 'SESSION_CREDENTIALS_TABLE_ID_DESC' - | 'AUDITS_TABLE_ID_ASC' - | 'AUDITS_TABLE_ID_DESC' - | 'PRINCIPALS_TABLE_NAME_ASC' - | 'PRINCIPALS_TABLE_NAME_DESC' - | 'CREATE_PRINCIPAL_FUNCTION_ASC' - | 'CREATE_PRINCIPAL_FUNCTION_DESC' - | 'DELETE_PRINCIPAL_FUNCTION_ASC' - | 'DELETE_PRINCIPAL_FUNCTION_DESC' - | 'CREATE_ORG_PRINCIPAL_FUNCTION_ASC' - | 'CREATE_ORG_PRINCIPAL_FUNCTION_DESC' - | 'DELETE_ORG_PRINCIPAL_FUNCTION_ASC' - | 'DELETE_ORG_PRINCIPAL_FUNCTION_DESC' - | 'CREATE_ORG_API_KEY_FUNCTION_ASC' - | 'CREATE_ORG_API_KEY_FUNCTION_DESC' - | 'REVOKE_ORG_API_KEY_FUNCTION_ASC' - | 'REVOKE_ORG_API_KEY_FUNCTION_DESC' - | 'API_NAME_ASC' - | 'API_NAME_DESC'; -/** Methods to use when ordering `ComputeLogModule`. */ -export type ComputeLogModuleOrderBy = + | 'PRIVATE_API_NAME_DESC' + | 'ENTITY_TABLE_ID_ASC' + | 'ENTITY_TABLE_ID_DESC' + | 'POLICIES_ASC' + | 'POLICIES_DESC' + | 'PROVISIONS_ASC' + | 'PROVISIONS_DESC' + | 'DEFAULT_PERMISSIONS_ASC' + | 'DEFAULT_PERMISSIONS_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC'; +/** Methods to use when ordering `DbPresetModule`. */ +export type DbPresetModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -1130,42 +903,38 @@ export type ComputeLogModuleOrderBy = | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' - | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC' + | 'PUBLIC_SCHEMA_ID_ASC' + | 'PUBLIC_SCHEMA_ID_DESC' | 'PRIVATE_SCHEMA_ID_ASC' | 'PRIVATE_SCHEMA_ID_DESC' | 'PUBLIC_SCHEMA_NAME_ASC' | 'PUBLIC_SCHEMA_NAME_DESC' | 'PRIVATE_SCHEMA_NAME_ASC' | 'PRIVATE_SCHEMA_NAME_DESC' - | 'COMPUTE_LOG_TABLE_ID_ASC' - | 'COMPUTE_LOG_TABLE_ID_DESC' - | 'COMPUTE_LOG_TABLE_NAME_ASC' - | 'COMPUTE_LOG_TABLE_NAME_DESC' - | 'USAGE_DAILY_TABLE_ID_ASC' - | 'USAGE_DAILY_TABLE_ID_DESC' - | 'USAGE_DAILY_TABLE_NAME_ASC' - | 'USAGE_DAILY_TABLE_NAME_DESC' - | 'INTERVAL_ASC' - | 'INTERVAL_DESC' - | 'RETENTION_ASC' - | 'RETENTION_DESC' - | 'PREMAKE_ASC' - | 'PREMAKE_DESC' | 'SCOPE_ASC' | 'SCOPE_DESC' - | 'ACTOR_FK_TABLE_ID_ASC' - | 'ACTOR_FK_TABLE_ID_DESC' - | 'ENTITY_FK_TABLE_ID_ASC' - | 'ENTITY_FK_TABLE_ID_DESC' | 'PREFIX_ASC' | 'PREFIX_DESC' + | 'MERKLE_STORE_MODULE_ID_ASC' + | 'MERKLE_STORE_MODULE_ID_DESC' + | 'DB_PRESETS_TABLE_ID_ASC' + | 'DB_PRESETS_TABLE_ID_DESC' + | 'STORE_NAME_ASC' + | 'STORE_NAME_DESC' | 'API_NAME_ASC' | 'API_NAME_DESC' | 'PRIVATE_API_NAME_ASC' - | 'PRIVATE_API_NAME_DESC'; -/** Methods to use when ordering `InferenceLogModule`. */ -export type InferenceLogModuleOrderBy = + | 'PRIVATE_API_NAME_DESC' + | 'ENTITY_TABLE_ID_ASC' + | 'ENTITY_TABLE_ID_DESC' + | 'POLICIES_ASC' + | 'POLICIES_DESC' + | 'PROVISIONS_ASC' + | 'PROVISIONS_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC'; +/** Methods to use when ordering `RateLimitMetersModule`. */ +export type RateLimitMetersModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -1181,34 +950,30 @@ export type InferenceLogModuleOrderBy = | 'PUBLIC_SCHEMA_NAME_DESC' | 'PRIVATE_SCHEMA_NAME_ASC' | 'PRIVATE_SCHEMA_NAME_DESC' - | 'INFERENCE_LOG_TABLE_ID_ASC' - | 'INFERENCE_LOG_TABLE_ID_DESC' - | 'INFERENCE_LOG_TABLE_NAME_ASC' - | 'INFERENCE_LOG_TABLE_NAME_DESC' - | 'USAGE_DAILY_TABLE_ID_ASC' - | 'USAGE_DAILY_TABLE_ID_DESC' - | 'USAGE_DAILY_TABLE_NAME_ASC' - | 'USAGE_DAILY_TABLE_NAME_DESC' - | 'INTERVAL_ASC' - | 'INTERVAL_DESC' - | 'RETENTION_ASC' - | 'RETENTION_DESC' - | 'PREMAKE_ASC' - | 'PREMAKE_DESC' - | 'SCOPE_ASC' - | 'SCOPE_DESC' - | 'ACTOR_FK_TABLE_ID_ASC' - | 'ACTOR_FK_TABLE_ID_DESC' - | 'ENTITY_FK_TABLE_ID_ASC' - | 'ENTITY_FK_TABLE_ID_DESC' + | 'RATE_LIMIT_STATE_TABLE_ID_ASC' + | 'RATE_LIMIT_STATE_TABLE_ID_DESC' + | 'RATE_LIMIT_STATE_TABLE_NAME_ASC' + | 'RATE_LIMIT_STATE_TABLE_NAME_DESC' + | 'RATE_LIMIT_OVERRIDES_TABLE_ID_ASC' + | 'RATE_LIMIT_OVERRIDES_TABLE_ID_DESC' + | 'RATE_LIMIT_OVERRIDES_TABLE_NAME_ASC' + | 'RATE_LIMIT_OVERRIDES_TABLE_NAME_DESC' + | 'RATE_WINDOW_LIMITS_TABLE_ID_ASC' + | 'RATE_WINDOW_LIMITS_TABLE_ID_DESC' + | 'RATE_WINDOW_LIMITS_TABLE_NAME_ASC' + | 'RATE_WINDOW_LIMITS_TABLE_NAME_DESC' + | 'CHECK_RATE_LIMIT_FUNCTION_ASC' + | 'CHECK_RATE_LIMIT_FUNCTION_DESC' | 'PREFIX_ASC' | 'PREFIX_DESC' + | 'DEFAULT_PERMISSIONS_ASC' + | 'DEFAULT_PERMISSIONS_DESC' | 'API_NAME_ASC' | 'API_NAME_DESC' | 'PRIVATE_API_NAME_ASC' | 'PRIVATE_API_NAME_DESC'; -/** Methods to use when ordering `NamespaceModule`. */ -export type NamespaceModuleOrderBy = +/** Methods to use when ordering `InfraConfigModule`. */ +export type InfraConfigModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -1216,6 +981,8 @@ export type NamespaceModuleOrderBy = | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' + | 'ENTITY_FIELD_ASC' + | 'ENTITY_FIELD_DESC' | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' | 'PRIVATE_SCHEMA_ID_ASC' @@ -1224,14 +991,10 @@ export type NamespaceModuleOrderBy = | 'PUBLIC_SCHEMA_NAME_DESC' | 'PRIVATE_SCHEMA_NAME_ASC' | 'PRIVATE_SCHEMA_NAME_DESC' - | 'NAMESPACES_TABLE_ID_ASC' - | 'NAMESPACES_TABLE_ID_DESC' - | 'NAMESPACE_EVENTS_TABLE_ID_ASC' - | 'NAMESPACE_EVENTS_TABLE_ID_DESC' - | 'NAMESPACES_TABLE_NAME_ASC' - | 'NAMESPACES_TABLE_NAME_DESC' - | 'NAMESPACE_EVENTS_TABLE_NAME_ASC' - | 'NAMESPACE_EVENTS_TABLE_NAME_DESC' + | 'CONFIG_TABLE_ID_ASC' + | 'CONFIG_TABLE_ID_DESC' + | 'CONFIG_TABLE_NAME_ASC' + | 'CONFIG_TABLE_NAME_DESC' | 'API_NAME_ASC' | 'API_NAME_DESC' | 'PRIVATE_API_NAME_ASC' @@ -1242,16 +1005,12 @@ export type NamespaceModuleOrderBy = | 'PREFIX_DESC' | 'ENTITY_TABLE_ID_ASC' | 'ENTITY_TABLE_ID_DESC' - | 'PLATFORM_NAMESPACES_TABLE_ID_ASC' - | 'PLATFORM_NAMESPACES_TABLE_ID_DESC' | 'POLICIES_ASC' | 'POLICIES_DESC' | 'PROVISIONS_ASC' - | 'PROVISIONS_DESC' - | 'DEFAULT_PERMISSIONS_ASC' - | 'DEFAULT_PERMISSIONS_DESC'; -/** Methods to use when ordering `ResourceModule`. */ -export type ResourceModuleOrderBy = + | 'PROVISIONS_DESC'; +/** Methods to use when ordering `WebauthnAuthModule`. */ +export type WebauthnAuthModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -1261,40 +1020,106 @@ export type ResourceModuleOrderBy = | 'DATABASE_ID_DESC' | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' - | 'PRIVATE_SCHEMA_ID_ASC' - | 'PRIVATE_SCHEMA_ID_DESC' - | 'PUBLIC_SCHEMA_NAME_ASC' - | 'PUBLIC_SCHEMA_NAME_DESC' - | 'PRIVATE_SCHEMA_NAME_ASC' - | 'PRIVATE_SCHEMA_NAME_DESC' - | 'RESOURCES_TABLE_ID_ASC' - | 'RESOURCES_TABLE_ID_DESC' - | 'RESOURCE_EVENTS_TABLE_ID_ASC' - | 'RESOURCE_EVENTS_TABLE_ID_DESC' - | 'RESOURCES_TABLE_NAME_ASC' - | 'RESOURCES_TABLE_NAME_DESC' - | 'RESOURCE_EVENTS_TABLE_NAME_ASC' - | 'RESOURCE_EVENTS_TABLE_NAME_DESC' - | 'API_NAME_ASC' - | 'API_NAME_DESC' - | 'PRIVATE_API_NAME_ASC' - | 'PRIVATE_API_NAME_DESC' - | 'SCOPE_ASC' - | 'SCOPE_DESC' - | 'PREFIX_ASC' - | 'PREFIX_DESC' - | 'ENTITY_TABLE_ID_ASC' - | 'ENTITY_TABLE_ID_DESC' - | 'NAMESPACE_MODULE_ID_ASC' - | 'NAMESPACE_MODULE_ID_DESC' - | 'POLICIES_ASC' - | 'POLICIES_DESC' - | 'PROVISIONS_ASC' - | 'PROVISIONS_DESC' - | 'DEFAULT_PERMISSIONS_ASC' - | 'DEFAULT_PERMISSIONS_DESC'; -/** Methods to use when ordering `StorageLogModule`. */ -export type StorageLogModuleOrderBy = + | 'USERS_TABLE_ID_ASC' + | 'USERS_TABLE_ID_DESC' + | 'CREDENTIALS_TABLE_ID_ASC' + | 'CREDENTIALS_TABLE_ID_DESC' + | 'SESSIONS_TABLE_ID_ASC' + | 'SESSIONS_TABLE_ID_DESC' + | 'SESSION_CREDENTIALS_TABLE_ID_ASC' + | 'SESSION_CREDENTIALS_TABLE_ID_DESC' + | 'SESSION_SECRETS_TABLE_ID_ASC' + | 'SESSION_SECRETS_TABLE_ID_DESC' + | 'AUTH_SETTINGS_TABLE_ID_ASC' + | 'AUTH_SETTINGS_TABLE_ID_DESC' + | 'RP_ID_ASC' + | 'RP_ID_DESC' + | 'RP_NAME_ASC' + | 'RP_NAME_DESC' + | 'ORIGIN_ALLOWLIST_ASC' + | 'ORIGIN_ALLOWLIST_DESC' + | 'ATTESTATION_TYPE_ASC' + | 'ATTESTATION_TYPE_DESC' + | 'REQUIRE_USER_VERIFICATION_ASC' + | 'REQUIRE_USER_VERIFICATION_DESC' + | 'RESIDENT_KEY_ASC' + | 'RESIDENT_KEY_DESC' + | 'CHALLENGE_EXPIRY_ASC' + | 'CHALLENGE_EXPIRY_DESC'; +/** Methods to use when ordering `PrincipalAuthModule`. */ +export type PrincipalAuthModuleOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'PRINCIPALS_TABLE_ID_ASC' + | 'PRINCIPALS_TABLE_ID_DESC' + | 'PRINCIPAL_ENTITIES_TABLE_ID_ASC' + | 'PRINCIPAL_ENTITIES_TABLE_ID_DESC' + | 'PRINCIPAL_SCOPE_OVERRIDES_TABLE_ID_ASC' + | 'PRINCIPAL_SCOPE_OVERRIDES_TABLE_ID_DESC' + | 'USERS_TABLE_ID_ASC' + | 'USERS_TABLE_ID_DESC' + | 'SESSIONS_TABLE_ID_ASC' + | 'SESSIONS_TABLE_ID_DESC' + | 'SESSION_CREDENTIALS_TABLE_ID_ASC' + | 'SESSION_CREDENTIALS_TABLE_ID_DESC' + | 'AUDITS_TABLE_ID_ASC' + | 'AUDITS_TABLE_ID_DESC' + | 'PRINCIPALS_TABLE_NAME_ASC' + | 'PRINCIPALS_TABLE_NAME_DESC' + | 'CREATE_PRINCIPAL_FUNCTION_ASC' + | 'CREATE_PRINCIPAL_FUNCTION_DESC' + | 'DELETE_PRINCIPAL_FUNCTION_ASC' + | 'DELETE_PRINCIPAL_FUNCTION_DESC' + | 'CREATE_ORG_PRINCIPAL_FUNCTION_ASC' + | 'CREATE_ORG_PRINCIPAL_FUNCTION_DESC' + | 'DELETE_ORG_PRINCIPAL_FUNCTION_ASC' + | 'DELETE_ORG_PRINCIPAL_FUNCTION_DESC' + | 'CREATE_ORG_API_KEY_FUNCTION_ASC' + | 'CREATE_ORG_API_KEY_FUNCTION_DESC' + | 'REVOKE_ORG_API_KEY_FUNCTION_ASC' + | 'REVOKE_ORG_API_KEY_FUNCTION_DESC' + | 'API_NAME_ASC' + | 'API_NAME_DESC'; +/** Methods to use when ordering `DbPool`. */ +export type DbPoolOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'PRESET_SLUG_ASC' + | 'PRESET_SLUG_DESC' + | 'PRESET_COMMIT_ID_ASC' + | 'PRESET_COMMIT_ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'STATUS_ASC' + | 'STATUS_DESC' + | 'ERROR_MESSAGE_ASC' + | 'ERROR_MESSAGE_DESC' + | 'EXPIRES_AT_ASC' + | 'EXPIRES_AT_DESC' + | 'CLAIMED_BY_ASC' + | 'CLAIMED_BY_DESC' + | 'CLAIMED_AT_ASC' + | 'CLAIMED_AT_DESC' + | 'BOOTSTRAP_STATUS_ASC' + | 'BOOTSTRAP_STATUS_DESC' + | 'BOOTSTRAP_ERROR_ASC' + | 'BOOTSTRAP_ERROR_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +/** Methods to use when ordering `FunctionModule`. */ +export type FunctionModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -1302,6 +1127,8 @@ export type StorageLogModuleOrderBy = | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' + | 'ENTITY_FIELD_ASC' + | 'ENTITY_FIELD_DESC' | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' | 'PRIVATE_SCHEMA_ID_ASC' @@ -1310,34 +1137,28 @@ export type StorageLogModuleOrderBy = | 'PUBLIC_SCHEMA_NAME_DESC' | 'PRIVATE_SCHEMA_NAME_ASC' | 'PRIVATE_SCHEMA_NAME_DESC' - | 'STORAGE_LOG_TABLE_ID_ASC' - | 'STORAGE_LOG_TABLE_ID_DESC' - | 'STORAGE_LOG_TABLE_NAME_ASC' - | 'STORAGE_LOG_TABLE_NAME_DESC' - | 'USAGE_DAILY_TABLE_ID_ASC' - | 'USAGE_DAILY_TABLE_ID_DESC' - | 'USAGE_DAILY_TABLE_NAME_ASC' - | 'USAGE_DAILY_TABLE_NAME_DESC' - | 'INTERVAL_ASC' - | 'INTERVAL_DESC' - | 'RETENTION_ASC' - | 'RETENTION_DESC' - | 'PREMAKE_ASC' - | 'PREMAKE_DESC' + | 'DEFINITIONS_TABLE_ID_ASC' + | 'DEFINITIONS_TABLE_ID_DESC' + | 'DEFINITIONS_TABLE_NAME_ASC' + | 'DEFINITIONS_TABLE_NAME_DESC' + | 'API_NAME_ASC' + | 'API_NAME_DESC' + | 'PRIVATE_API_NAME_ASC' + | 'PRIVATE_API_NAME_DESC' | 'SCOPE_ASC' | 'SCOPE_DESC' - | 'ACTOR_FK_TABLE_ID_ASC' - | 'ACTOR_FK_TABLE_ID_DESC' - | 'ENTITY_FK_TABLE_ID_ASC' - | 'ENTITY_FK_TABLE_ID_DESC' | 'PREFIX_ASC' | 'PREFIX_DESC' - | 'API_NAME_ASC' - | 'API_NAME_DESC' - | 'PRIVATE_API_NAME_ASC' - | 'PRIVATE_API_NAME_DESC'; -/** Methods to use when ordering `TransferLogModule`. */ -export type TransferLogModuleOrderBy = + | 'ENTITY_TABLE_ID_ASC' + | 'ENTITY_TABLE_ID_DESC' + | 'POLICIES_ASC' + | 'POLICIES_DESC' + | 'PROVISIONS_ASC' + | 'PROVISIONS_DESC' + | 'DEFAULT_PERMISSIONS_ASC' + | 'DEFAULT_PERMISSIONS_DESC'; +/** Methods to use when ordering `MerkleStoreModule`. */ +export type MerkleStoreModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -1345,6 +1166,8 @@ export type TransferLogModuleOrderBy = | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' + | 'ENTITY_FIELD_ASC' + | 'ENTITY_FIELD_DESC' | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' | 'PRIVATE_SCHEMA_ID_ASC' @@ -1353,34 +1176,71 @@ export type TransferLogModuleOrderBy = | 'PUBLIC_SCHEMA_NAME_DESC' | 'PRIVATE_SCHEMA_NAME_ASC' | 'PRIVATE_SCHEMA_NAME_DESC' - | 'TRANSFER_LOG_TABLE_ID_ASC' - | 'TRANSFER_LOG_TABLE_ID_DESC' - | 'TRANSFER_LOG_TABLE_NAME_ASC' - | 'TRANSFER_LOG_TABLE_NAME_DESC' - | 'USAGE_DAILY_TABLE_ID_ASC' - | 'USAGE_DAILY_TABLE_ID_DESC' - | 'USAGE_DAILY_TABLE_NAME_ASC' - | 'USAGE_DAILY_TABLE_NAME_DESC' - | 'INTERVAL_ASC' - | 'INTERVAL_DESC' - | 'RETENTION_ASC' - | 'RETENTION_DESC' - | 'PREMAKE_ASC' - | 'PREMAKE_DESC' - | 'SCOPE_ASC' - | 'SCOPE_DESC' - | 'ACTOR_FK_TABLE_ID_ASC' - | 'ACTOR_FK_TABLE_ID_DESC' - | 'ENTITY_FK_TABLE_ID_ASC' - | 'ENTITY_FK_TABLE_ID_DESC' + | 'OBJECT_TABLE_ID_ASC' + | 'OBJECT_TABLE_ID_DESC' + | 'STORE_TABLE_ID_ASC' + | 'STORE_TABLE_ID_DESC' + | 'COMMIT_TABLE_ID_ASC' + | 'COMMIT_TABLE_ID_DESC' + | 'REF_TABLE_ID_ASC' + | 'REF_TABLE_ID_DESC' | 'PREFIX_ASC' | 'PREFIX_DESC' | 'API_NAME_ASC' | 'API_NAME_DESC' | 'PRIVATE_API_NAME_ASC' - | 'PRIVATE_API_NAME_DESC'; -/** Methods to use when ordering `FunctionDeploymentModule`. */ -export type FunctionDeploymentModuleOrderBy = + | 'PRIVATE_API_NAME_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'FUNCTION_PREFIX_ASC' + | 'FUNCTION_PREFIX_DESC' + | 'PERMISSION_KEY_ASC' + | 'PERMISSION_KEY_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC'; +/** Methods to use when ordering `DatabaseProvisionModule`. */ +export type DatabaseProvisionModuleOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_NAME_ASC' + | 'DATABASE_NAME_DESC' + | 'OWNER_ID_ASC' + | 'OWNER_ID_DESC' + | 'SUBDOMAIN_ASC' + | 'SUBDOMAIN_DESC' + | 'DOMAIN_ASC' + | 'DOMAIN_DESC' + | 'MODULES_ASC' + | 'MODULES_DESC' + | 'OPTIONS_ASC' + | 'OPTIONS_DESC' + | 'BOOTSTRAP_USER_ASC' + | 'BOOTSTRAP_USER_DESC' + | 'STATUS_ASC' + | 'STATUS_DESC' + | 'ERROR_MESSAGE_ASC' + | 'ERROR_MESSAGE_DESC' + | 'SOURCE_DATABASE_ID_ASC' + | 'SOURCE_DATABASE_ID_DESC' + | 'BOOTSTRAP_STATUS_ASC' + | 'BOOTSTRAP_STATUS_DESC' + | 'BOOTSTRAP_ERROR_ASC' + | 'BOOTSTRAP_ERROR_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'COMPLETED_AT_ASC' + | 'COMPLETED_AT_DESC' + | 'FULFILLED_AT_ASC' + | 'FULFILLED_AT_DESC'; +/** Methods to use when ordering `FunctionInvocationModule`. */ +export type FunctionInvocationModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -1388,6 +1248,8 @@ export type FunctionDeploymentModuleOrderBy = | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' + | 'ENTITY_FIELD_ASC' + | 'ENTITY_FIELD_DESC' | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' | 'PRIVATE_SCHEMA_ID_ASC' @@ -1396,14 +1258,14 @@ export type FunctionDeploymentModuleOrderBy = | 'PUBLIC_SCHEMA_NAME_DESC' | 'PRIVATE_SCHEMA_NAME_ASC' | 'PRIVATE_SCHEMA_NAME_DESC' - | 'DEPLOYMENTS_TABLE_ID_ASC' - | 'DEPLOYMENTS_TABLE_ID_DESC' - | 'DEPLOYMENT_EVENTS_TABLE_ID_ASC' - | 'DEPLOYMENT_EVENTS_TABLE_ID_DESC' - | 'DEPLOYMENTS_TABLE_NAME_ASC' - | 'DEPLOYMENTS_TABLE_NAME_DESC' - | 'DEPLOYMENT_EVENTS_TABLE_NAME_ASC' - | 'DEPLOYMENT_EVENTS_TABLE_NAME_DESC' + | 'INVOCATIONS_TABLE_ID_ASC' + | 'INVOCATIONS_TABLE_ID_DESC' + | 'EXECUTION_LOGS_TABLE_ID_ASC' + | 'EXECUTION_LOGS_TABLE_ID_DESC' + | 'INVOCATIONS_TABLE_NAME_ASC' + | 'INVOCATIONS_TABLE_NAME_DESC' + | 'EXECUTION_LOGS_TABLE_NAME_ASC' + | 'EXECUTION_LOGS_TABLE_NAME_DESC' | 'API_NAME_ASC' | 'API_NAME_DESC' | 'PRIVATE_API_NAME_ASC' @@ -1414,18 +1276,14 @@ export type FunctionDeploymentModuleOrderBy = | 'PREFIX_DESC' | 'ENTITY_TABLE_ID_ASC' | 'ENTITY_TABLE_ID_DESC' - | 'FUNCTION_MODULE_ID_ASC' - | 'FUNCTION_MODULE_ID_DESC' - | 'NAMESPACE_MODULE_ID_ASC' - | 'NAMESPACE_MODULE_ID_DESC' | 'POLICIES_ASC' | 'POLICIES_DESC' | 'PROVISIONS_ASC' | 'PROVISIONS_DESC' | 'DEFAULT_PERMISSIONS_ASC' | 'DEFAULT_PERMISSIONS_DESC'; -/** Methods to use when ordering `PlansModule`. */ -export type PlansModuleOrderBy = +/** Methods to use when ordering `InvitesModule`. */ +export type InvitesModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -1433,6 +1291,8 @@ export type PlansModuleOrderBy = | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' + | 'ENTITY_FIELD_ASC' + | 'ENTITY_FIELD_DESC' | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' | 'PRIVATE_SCHEMA_ID_ASC' @@ -1441,38 +1301,32 @@ export type PlansModuleOrderBy = | 'PUBLIC_SCHEMA_NAME_DESC' | 'PRIVATE_SCHEMA_NAME_ASC' | 'PRIVATE_SCHEMA_NAME_DESC' - | 'PLANS_TABLE_ID_ASC' - | 'PLANS_TABLE_ID_DESC' - | 'PLANS_TABLE_NAME_ASC' - | 'PLANS_TABLE_NAME_DESC' - | 'PLAN_LIMITS_TABLE_ID_ASC' - | 'PLAN_LIMITS_TABLE_ID_DESC' - | 'PLAN_LIMITS_TABLE_NAME_ASC' - | 'PLAN_LIMITS_TABLE_NAME_DESC' - | 'PLAN_PRICING_TABLE_ID_ASC' - | 'PLAN_PRICING_TABLE_ID_DESC' - | 'PLAN_OVERRIDES_TABLE_ID_ASC' - | 'PLAN_OVERRIDES_TABLE_ID_DESC' - | 'PLAN_METER_LIMITS_TABLE_ID_ASC' - | 'PLAN_METER_LIMITS_TABLE_ID_DESC' - | 'PLAN_CAPS_TABLE_ID_ASC' - | 'PLAN_CAPS_TABLE_ID_DESC' - | 'APPLY_PLAN_FUNCTION_ASC' - | 'APPLY_PLAN_FUNCTION_DESC' - | 'APPLY_PLAN_AGGREGATE_FUNCTION_ASC' - | 'APPLY_PLAN_AGGREGATE_FUNCTION_DESC' - | 'APPLY_BILLING_PLAN_FUNCTION_ASC' - | 'APPLY_BILLING_PLAN_FUNCTION_DESC' - | 'APPLY_PLAN_CAPS_FUNCTION_ASC' - | 'APPLY_PLAN_CAPS_FUNCTION_DESC' + | 'EMAILS_TABLE_ID_ASC' + | 'EMAILS_TABLE_ID_DESC' + | 'USERS_TABLE_ID_ASC' + | 'USERS_TABLE_ID_DESC' + | 'INVITES_TABLE_ID_ASC' + | 'INVITES_TABLE_ID_DESC' + | 'CLAIMED_INVITES_TABLE_ID_ASC' + | 'CLAIMED_INVITES_TABLE_ID_DESC' + | 'INVITES_TABLE_NAME_ASC' + | 'INVITES_TABLE_NAME_DESC' + | 'CLAIMED_INVITES_TABLE_NAME_ASC' + | 'CLAIMED_INVITES_TABLE_NAME_DESC' + | 'SUBMIT_INVITE_CODE_FUNCTION_ASC' + | 'SUBMIT_INVITE_CODE_FUNCTION_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' | 'PREFIX_ASC' | 'PREFIX_DESC' + | 'ENTITY_TABLE_ID_ASC' + | 'ENTITY_TABLE_ID_DESC' | 'API_NAME_ASC' | 'API_NAME_DESC' | 'PRIVATE_API_NAME_ASC' | 'PRIVATE_API_NAME_DESC'; -/** Methods to use when ordering `BillingProviderModule`. */ -export type BillingProviderModuleOrderBy = +/** Methods to use when ordering `NamespaceModule`. */ +export type NamespaceModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -1480,48 +1334,42 @@ export type BillingProviderModuleOrderBy = | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' + | 'ENTITY_FIELD_ASC' + | 'ENTITY_FIELD_DESC' | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' | 'PRIVATE_SCHEMA_ID_ASC' | 'PRIVATE_SCHEMA_ID_DESC' - | 'PROVIDER_ASC' - | 'PROVIDER_DESC' - | 'PRODUCTS_TABLE_ID_ASC' - | 'PRODUCTS_TABLE_ID_DESC' - | 'PRICES_TABLE_ID_ASC' - | 'PRICES_TABLE_ID_DESC' - | 'SUBSCRIPTIONS_TABLE_ID_ASC' - | 'SUBSCRIPTIONS_TABLE_ID_DESC' - | 'BILLING_CUSTOMERS_TABLE_ID_ASC' - | 'BILLING_CUSTOMERS_TABLE_ID_DESC' - | 'BILLING_CUSTOMERS_TABLE_NAME_ASC' - | 'BILLING_CUSTOMERS_TABLE_NAME_DESC' - | 'BILLING_PRODUCTS_TABLE_ID_ASC' - | 'BILLING_PRODUCTS_TABLE_ID_DESC' - | 'BILLING_PRODUCTS_TABLE_NAME_ASC' - | 'BILLING_PRODUCTS_TABLE_NAME_DESC' - | 'BILLING_PRICES_TABLE_ID_ASC' - | 'BILLING_PRICES_TABLE_ID_DESC' - | 'BILLING_PRICES_TABLE_NAME_ASC' - | 'BILLING_PRICES_TABLE_NAME_DESC' - | 'BILLING_SUBSCRIPTIONS_TABLE_ID_ASC' - | 'BILLING_SUBSCRIPTIONS_TABLE_ID_DESC' - | 'BILLING_SUBSCRIPTIONS_TABLE_NAME_ASC' - | 'BILLING_SUBSCRIPTIONS_TABLE_NAME_DESC' - | 'BILLING_WEBHOOK_EVENTS_TABLE_ID_ASC' - | 'BILLING_WEBHOOK_EVENTS_TABLE_ID_DESC' - | 'BILLING_WEBHOOK_EVENTS_TABLE_NAME_ASC' - | 'BILLING_WEBHOOK_EVENTS_TABLE_NAME_DESC' - | 'PROCESS_BILLING_EVENT_FUNCTION_ASC' - | 'PROCESS_BILLING_EVENT_FUNCTION_DESC' - | 'PREFIX_ASC' - | 'PREFIX_DESC' + | 'PUBLIC_SCHEMA_NAME_ASC' + | 'PUBLIC_SCHEMA_NAME_DESC' + | 'PRIVATE_SCHEMA_NAME_ASC' + | 'PRIVATE_SCHEMA_NAME_DESC' + | 'NAMESPACES_TABLE_ID_ASC' + | 'NAMESPACES_TABLE_ID_DESC' + | 'NAMESPACE_EVENTS_TABLE_ID_ASC' + | 'NAMESPACE_EVENTS_TABLE_ID_DESC' + | 'NAMESPACES_TABLE_NAME_ASC' + | 'NAMESPACES_TABLE_NAME_DESC' + | 'NAMESPACE_EVENTS_TABLE_NAME_ASC' + | 'NAMESPACE_EVENTS_TABLE_NAME_DESC' | 'API_NAME_ASC' | 'API_NAME_DESC' | 'PRIVATE_API_NAME_ASC' - | 'PRIVATE_API_NAME_DESC'; -/** Methods to use when ordering `DbUsageModule`. */ -export type DbUsageModuleOrderBy = + | 'PRIVATE_API_NAME_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC' + | 'ENTITY_TABLE_ID_ASC' + | 'ENTITY_TABLE_ID_DESC' + | 'POLICIES_ASC' + | 'POLICIES_DESC' + | 'PROVISIONS_ASC' + | 'PROVISIONS_DESC' + | 'DEFAULT_PERMISSIONS_ASC' + | 'DEFAULT_PERMISSIONS_DESC'; +/** Methods to use when ordering `PlansModule`. */ +export type PlansModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -1537,40 +1385,38 @@ export type DbUsageModuleOrderBy = | 'PUBLIC_SCHEMA_NAME_DESC' | 'PRIVATE_SCHEMA_NAME_ASC' | 'PRIVATE_SCHEMA_NAME_DESC' - | 'TABLE_STATS_LOG_TABLE_ID_ASC' - | 'TABLE_STATS_LOG_TABLE_ID_DESC' - | 'TABLE_STATS_LOG_TABLE_NAME_ASC' - | 'TABLE_STATS_LOG_TABLE_NAME_DESC' - | 'TABLE_STATS_DAILY_TABLE_ID_ASC' - | 'TABLE_STATS_DAILY_TABLE_ID_DESC' - | 'TABLE_STATS_DAILY_TABLE_NAME_ASC' - | 'TABLE_STATS_DAILY_TABLE_NAME_DESC' - | 'QUERY_STATS_LOG_TABLE_ID_ASC' - | 'QUERY_STATS_LOG_TABLE_ID_DESC' - | 'QUERY_STATS_LOG_TABLE_NAME_ASC' - | 'QUERY_STATS_LOG_TABLE_NAME_DESC' - | 'QUERY_STATS_DAILY_TABLE_ID_ASC' - | 'QUERY_STATS_DAILY_TABLE_ID_DESC' - | 'QUERY_STATS_DAILY_TABLE_NAME_ASC' - | 'QUERY_STATS_DAILY_TABLE_NAME_DESC' - | 'INTERVAL_ASC' - | 'INTERVAL_DESC' - | 'RETENTION_ASC' - | 'RETENTION_DESC' - | 'PREMAKE_ASC' - | 'PREMAKE_DESC' - | 'SCOPE_ASC' - | 'SCOPE_DESC' + | 'PLANS_TABLE_ID_ASC' + | 'PLANS_TABLE_ID_DESC' + | 'PLANS_TABLE_NAME_ASC' + | 'PLANS_TABLE_NAME_DESC' + | 'PLAN_LIMITS_TABLE_ID_ASC' + | 'PLAN_LIMITS_TABLE_ID_DESC' + | 'PLAN_LIMITS_TABLE_NAME_ASC' + | 'PLAN_LIMITS_TABLE_NAME_DESC' + | 'PLAN_PRICING_TABLE_ID_ASC' + | 'PLAN_PRICING_TABLE_ID_DESC' + | 'PLAN_OVERRIDES_TABLE_ID_ASC' + | 'PLAN_OVERRIDES_TABLE_ID_DESC' + | 'PLAN_METER_LIMITS_TABLE_ID_ASC' + | 'PLAN_METER_LIMITS_TABLE_ID_DESC' + | 'PLAN_CAPS_TABLE_ID_ASC' + | 'PLAN_CAPS_TABLE_ID_DESC' + | 'APPLY_PLAN_FUNCTION_ASC' + | 'APPLY_PLAN_FUNCTION_DESC' + | 'APPLY_PLAN_AGGREGATE_FUNCTION_ASC' + | 'APPLY_PLAN_AGGREGATE_FUNCTION_DESC' + | 'APPLY_BILLING_PLAN_FUNCTION_ASC' + | 'APPLY_BILLING_PLAN_FUNCTION_DESC' + | 'APPLY_PLAN_CAPS_FUNCTION_ASC' + | 'APPLY_PLAN_CAPS_FUNCTION_DESC' | 'PREFIX_ASC' | 'PREFIX_DESC' - | 'DEFAULT_PERMISSIONS_ASC' - | 'DEFAULT_PERMISSIONS_DESC' | 'API_NAME_ASC' | 'API_NAME_DESC' | 'PRIVATE_API_NAME_ASC' | 'PRIVATE_API_NAME_DESC'; -/** Methods to use when ordering `GraphExecutionModule`. */ -export type GraphExecutionModuleOrderBy = +/** Methods to use when ordering `ComputeLogModule`. */ +export type ComputeLogModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -1578,6 +1424,8 @@ export type GraphExecutionModuleOrderBy = | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' + | 'ENTITY_FIELD_ASC' + | 'ENTITY_FIELD_DESC' | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' | 'PRIVATE_SCHEMA_ID_ASC' @@ -1586,40 +1434,34 @@ export type GraphExecutionModuleOrderBy = | 'PUBLIC_SCHEMA_NAME_DESC' | 'PRIVATE_SCHEMA_NAME_ASC' | 'PRIVATE_SCHEMA_NAME_DESC' - | 'GRAPH_MODULE_ID_ASC' - | 'GRAPH_MODULE_ID_DESC' + | 'COMPUTE_LOG_TABLE_ID_ASC' + | 'COMPUTE_LOG_TABLE_ID_DESC' + | 'COMPUTE_LOG_TABLE_NAME_ASC' + | 'COMPUTE_LOG_TABLE_NAME_DESC' + | 'USAGE_DAILY_TABLE_ID_ASC' + | 'USAGE_DAILY_TABLE_ID_DESC' + | 'USAGE_DAILY_TABLE_NAME_ASC' + | 'USAGE_DAILY_TABLE_NAME_DESC' + | 'INTERVAL_ASC' + | 'INTERVAL_DESC' + | 'RETENTION_ASC' + | 'RETENTION_DESC' + | 'PREMAKE_ASC' + | 'PREMAKE_DESC' | 'SCOPE_ASC' | 'SCOPE_DESC' + | 'ACTOR_FK_TABLE_ID_ASC' + | 'ACTOR_FK_TABLE_ID_DESC' + | 'ENTITY_FK_TABLE_ID_ASC' + | 'ENTITY_FK_TABLE_ID_DESC' | 'PREFIX_ASC' | 'PREFIX_DESC' - | 'EXECUTIONS_TABLE_ID_ASC' - | 'EXECUTIONS_TABLE_ID_DESC' - | 'OUTPUTS_TABLE_ID_ASC' - | 'OUTPUTS_TABLE_ID_DESC' - | 'NODE_STATES_TABLE_ID_ASC' - | 'NODE_STATES_TABLE_ID_DESC' - | 'EXECUTIONS_TABLE_NAME_ASC' - | 'EXECUTIONS_TABLE_NAME_DESC' - | 'OUTPUTS_TABLE_NAME_ASC' - | 'OUTPUTS_TABLE_NAME_DESC' - | 'NODE_STATES_TABLE_NAME_ASC' - | 'NODE_STATES_TABLE_NAME_DESC' | 'API_NAME_ASC' | 'API_NAME_DESC' | 'PRIVATE_API_NAME_ASC' - | 'PRIVATE_API_NAME_DESC' - | 'ENTITY_TABLE_ID_ASC' - | 'ENTITY_TABLE_ID_DESC' - | 'POLICIES_ASC' - | 'POLICIES_DESC' - | 'PROVISIONS_ASC' - | 'PROVISIONS_DESC' - | 'DEFAULT_PERMISSIONS_ASC' - | 'DEFAULT_PERMISSIONS_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC'; -/** Methods to use when ordering `HierarchyModule`. */ -export type HierarchyModuleOrderBy = + | 'PRIVATE_API_NAME_DESC'; +/** Methods to use when ordering `InferenceLogModule`. */ +export type InferenceLogModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -1627,48 +1469,44 @@ export type HierarchyModuleOrderBy = | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' + | 'ENTITY_FIELD_ASC' + | 'ENTITY_FIELD_DESC' | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' | 'PRIVATE_SCHEMA_ID_ASC' | 'PRIVATE_SCHEMA_ID_DESC' - | 'CHART_EDGES_TABLE_ID_ASC' - | 'CHART_EDGES_TABLE_ID_DESC' - | 'CHART_EDGES_TABLE_NAME_ASC' - | 'CHART_EDGES_TABLE_NAME_DESC' - | 'HIERARCHY_SPRT_TABLE_ID_ASC' - | 'HIERARCHY_SPRT_TABLE_ID_DESC' - | 'HIERARCHY_SPRT_TABLE_NAME_ASC' - | 'HIERARCHY_SPRT_TABLE_NAME_DESC' - | 'CHART_EDGE_GRANTS_TABLE_ID_ASC' - | 'CHART_EDGE_GRANTS_TABLE_ID_DESC' - | 'CHART_EDGE_GRANTS_TABLE_NAME_ASC' - | 'CHART_EDGE_GRANTS_TABLE_NAME_DESC' - | 'ENTITY_TABLE_ID_ASC' - | 'ENTITY_TABLE_ID_DESC' - | 'USERS_TABLE_ID_ASC' - | 'USERS_TABLE_ID_DESC' + | 'PUBLIC_SCHEMA_NAME_ASC' + | 'PUBLIC_SCHEMA_NAME_DESC' + | 'PRIVATE_SCHEMA_NAME_ASC' + | 'PRIVATE_SCHEMA_NAME_DESC' + | 'INFERENCE_LOG_TABLE_ID_ASC' + | 'INFERENCE_LOG_TABLE_ID_DESC' + | 'INFERENCE_LOG_TABLE_NAME_ASC' + | 'INFERENCE_LOG_TABLE_NAME_DESC' + | 'USAGE_DAILY_TABLE_ID_ASC' + | 'USAGE_DAILY_TABLE_ID_DESC' + | 'USAGE_DAILY_TABLE_NAME_ASC' + | 'USAGE_DAILY_TABLE_NAME_DESC' + | 'INTERVAL_ASC' + | 'INTERVAL_DESC' + | 'RETENTION_ASC' + | 'RETENTION_DESC' + | 'PREMAKE_ASC' + | 'PREMAKE_DESC' | 'SCOPE_ASC' | 'SCOPE_DESC' + | 'ACTOR_FK_TABLE_ID_ASC' + | 'ACTOR_FK_TABLE_ID_DESC' + | 'ENTITY_FK_TABLE_ID_ASC' + | 'ENTITY_FK_TABLE_ID_DESC' | 'PREFIX_ASC' | 'PREFIX_DESC' - | 'PRIVATE_SCHEMA_NAME_ASC' - | 'PRIVATE_SCHEMA_NAME_DESC' - | 'SPRT_TABLE_NAME_ASC' - | 'SPRT_TABLE_NAME_DESC' - | 'REBUILD_HIERARCHY_FUNCTION_ASC' - | 'REBUILD_HIERARCHY_FUNCTION_DESC' - | 'GET_SUBORDINATES_FUNCTION_ASC' - | 'GET_SUBORDINATES_FUNCTION_DESC' - | 'GET_MANAGERS_FUNCTION_ASC' - | 'GET_MANAGERS_FUNCTION_DESC' - | 'IS_MANAGER_OF_FUNCTION_ASC' - | 'IS_MANAGER_OF_FUNCTION_DESC' - | 'DEFAULT_PERMISSIONS_ASC' - | 'DEFAULT_PERMISSIONS_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC'; -/** Methods to use when ordering `PermissionsModule`. */ -export type PermissionsModuleOrderBy = + | 'API_NAME_ASC' + | 'API_NAME_DESC' + | 'PRIVATE_API_NAME_ASC' + | 'PRIVATE_API_NAME_DESC'; +/** Methods to use when ordering `StorageLogModule`. */ +export type StorageLogModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -1676,6 +1514,8 @@ export type PermissionsModuleOrderBy = | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' + | 'ENTITY_FIELD_ASC' + | 'ENTITY_FIELD_DESC' | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' | 'PRIVATE_SCHEMA_ID_ASC' @@ -1684,38 +1524,34 @@ export type PermissionsModuleOrderBy = | 'PUBLIC_SCHEMA_NAME_DESC' | 'PRIVATE_SCHEMA_NAME_ASC' | 'PRIVATE_SCHEMA_NAME_DESC' - | 'TABLE_ID_ASC' - | 'TABLE_ID_DESC' - | 'TABLE_NAME_ASC' - | 'TABLE_NAME_DESC' - | 'DEFAULT_TABLE_ID_ASC' - | 'DEFAULT_TABLE_ID_DESC' - | 'DEFAULT_TABLE_NAME_ASC' - | 'DEFAULT_TABLE_NAME_DESC' - | 'BITLEN_ASC' - | 'BITLEN_DESC' + | 'STORAGE_LOG_TABLE_ID_ASC' + | 'STORAGE_LOG_TABLE_ID_DESC' + | 'STORAGE_LOG_TABLE_NAME_ASC' + | 'STORAGE_LOG_TABLE_NAME_DESC' + | 'USAGE_DAILY_TABLE_ID_ASC' + | 'USAGE_DAILY_TABLE_ID_DESC' + | 'USAGE_DAILY_TABLE_NAME_ASC' + | 'USAGE_DAILY_TABLE_NAME_DESC' + | 'INTERVAL_ASC' + | 'INTERVAL_DESC' + | 'RETENTION_ASC' + | 'RETENTION_DESC' + | 'PREMAKE_ASC' + | 'PREMAKE_DESC' | 'SCOPE_ASC' | 'SCOPE_DESC' + | 'ACTOR_FK_TABLE_ID_ASC' + | 'ACTOR_FK_TABLE_ID_DESC' + | 'ENTITY_FK_TABLE_ID_ASC' + | 'ENTITY_FK_TABLE_ID_DESC' | 'PREFIX_ASC' | 'PREFIX_DESC' - | 'ENTITY_TABLE_ID_ASC' - | 'ENTITY_TABLE_ID_DESC' - | 'ACTOR_TABLE_ID_ASC' - | 'ACTOR_TABLE_ID_DESC' - | 'GET_PADDED_MASK_ASC' - | 'GET_PADDED_MASK_DESC' - | 'GET_MASK_ASC' - | 'GET_MASK_DESC' - | 'GET_BY_MASK_ASC' - | 'GET_BY_MASK_DESC' - | 'GET_MASK_BY_NAME_ASC' - | 'GET_MASK_BY_NAME_DESC' | 'API_NAME_ASC' | 'API_NAME_DESC' | 'PRIVATE_API_NAME_ASC' | 'PRIVATE_API_NAME_DESC'; -/** Methods to use when ordering `NotificationsModule`. */ -export type NotificationsModuleOrderBy = +/** Methods to use when ordering `TransferLogModule`. */ +export type TransferLogModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -1723,6 +1559,8 @@ export type NotificationsModuleOrderBy = | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' + | 'ENTITY_FIELD_ASC' + | 'ENTITY_FIELD_DESC' | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' | 'PRIVATE_SCHEMA_ID_ASC' @@ -1731,42 +1569,130 @@ export type NotificationsModuleOrderBy = | 'PUBLIC_SCHEMA_NAME_DESC' | 'PRIVATE_SCHEMA_NAME_ASC' | 'PRIVATE_SCHEMA_NAME_DESC' - | 'NOTIFICATIONS_TABLE_ID_ASC' - | 'NOTIFICATIONS_TABLE_ID_DESC' - | 'READ_STATE_TABLE_ID_ASC' - | 'READ_STATE_TABLE_ID_DESC' - | 'PREFERENCES_TABLE_ID_ASC' - | 'PREFERENCES_TABLE_ID_DESC' - | 'CHANNELS_TABLE_ID_ASC' - | 'CHANNELS_TABLE_ID_DESC' - | 'DELIVERY_LOG_TABLE_ID_ASC' - | 'DELIVERY_LOG_TABLE_ID_DESC' - | 'SUPPRESSIONS_TABLE_ID_ASC' - | 'SUPPRESSIONS_TABLE_ID_DESC' - | 'OWNER_TABLE_ID_ASC' - | 'OWNER_TABLE_ID_DESC' - | 'USER_SETTINGS_TABLE_ID_ASC' - | 'USER_SETTINGS_TABLE_ID_DESC' - | 'ORGANIZATION_SETTINGS_TABLE_ID_ASC' - | 'ORGANIZATION_SETTINGS_TABLE_ID_DESC' - | 'HAS_CHANNELS_ASC' - | 'HAS_CHANNELS_DESC' - | 'HAS_PREFERENCES_ASC' - | 'HAS_PREFERENCES_DESC' - | 'HAS_SETTINGS_EXTENSION_ASC' - | 'HAS_SETTINGS_EXTENSION_DESC' - | 'HAS_DIGEST_METADATA_ASC' - | 'HAS_DIGEST_METADATA_DESC' - | 'HAS_SUBSCRIPTIONS_ASC' - | 'HAS_SUBSCRIPTIONS_DESC' - | 'DEFAULT_PERMISSIONS_ASC' - | 'DEFAULT_PERMISSIONS_DESC' + | 'TRANSFER_LOG_TABLE_ID_ASC' + | 'TRANSFER_LOG_TABLE_ID_DESC' + | 'TRANSFER_LOG_TABLE_NAME_ASC' + | 'TRANSFER_LOG_TABLE_NAME_DESC' + | 'USAGE_DAILY_TABLE_ID_ASC' + | 'USAGE_DAILY_TABLE_ID_DESC' + | 'USAGE_DAILY_TABLE_NAME_ASC' + | 'USAGE_DAILY_TABLE_NAME_DESC' + | 'INTERVAL_ASC' + | 'INTERVAL_DESC' + | 'RETENTION_ASC' + | 'RETENTION_DESC' + | 'PREMAKE_ASC' + | 'PREMAKE_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'ACTOR_FK_TABLE_ID_ASC' + | 'ACTOR_FK_TABLE_ID_DESC' + | 'ENTITY_FK_TABLE_ID_ASC' + | 'ENTITY_FK_TABLE_ID_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC' | 'API_NAME_ASC' | 'API_NAME_DESC' | 'PRIVATE_API_NAME_ASC' | 'PRIVATE_API_NAME_DESC'; -/** Methods to use when ordering `ProfilesModule`. */ -export type ProfilesModuleOrderBy = +/** Methods to use when ordering `BillingProviderModule`. */ +export type BillingProviderModuleOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'PRIVATE_SCHEMA_ID_ASC' + | 'PRIVATE_SCHEMA_ID_DESC' + | 'PROVIDER_ASC' + | 'PROVIDER_DESC' + | 'PRODUCTS_TABLE_ID_ASC' + | 'PRODUCTS_TABLE_ID_DESC' + | 'PRICES_TABLE_ID_ASC' + | 'PRICES_TABLE_ID_DESC' + | 'SUBSCRIPTIONS_TABLE_ID_ASC' + | 'SUBSCRIPTIONS_TABLE_ID_DESC' + | 'BILLING_CUSTOMERS_TABLE_ID_ASC' + | 'BILLING_CUSTOMERS_TABLE_ID_DESC' + | 'BILLING_CUSTOMERS_TABLE_NAME_ASC' + | 'BILLING_CUSTOMERS_TABLE_NAME_DESC' + | 'BILLING_PRODUCTS_TABLE_ID_ASC' + | 'BILLING_PRODUCTS_TABLE_ID_DESC' + | 'BILLING_PRODUCTS_TABLE_NAME_ASC' + | 'BILLING_PRODUCTS_TABLE_NAME_DESC' + | 'BILLING_PRICES_TABLE_ID_ASC' + | 'BILLING_PRICES_TABLE_ID_DESC' + | 'BILLING_PRICES_TABLE_NAME_ASC' + | 'BILLING_PRICES_TABLE_NAME_DESC' + | 'BILLING_SUBSCRIPTIONS_TABLE_ID_ASC' + | 'BILLING_SUBSCRIPTIONS_TABLE_ID_DESC' + | 'BILLING_SUBSCRIPTIONS_TABLE_NAME_ASC' + | 'BILLING_SUBSCRIPTIONS_TABLE_NAME_DESC' + | 'BILLING_WEBHOOK_EVENTS_TABLE_ID_ASC' + | 'BILLING_WEBHOOK_EVENTS_TABLE_ID_DESC' + | 'BILLING_WEBHOOK_EVENTS_TABLE_NAME_ASC' + | 'BILLING_WEBHOOK_EVENTS_TABLE_NAME_DESC' + | 'PROCESS_BILLING_EVENT_FUNCTION_ASC' + | 'PROCESS_BILLING_EVENT_FUNCTION_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC' + | 'API_NAME_ASC' + | 'API_NAME_DESC' + | 'PRIVATE_API_NAME_ASC' + | 'PRIVATE_API_NAME_DESC'; +/** Methods to use when ordering `FunctionDeploymentModule`. */ +export type FunctionDeploymentModuleOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'ENTITY_FIELD_ASC' + | 'ENTITY_FIELD_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'PRIVATE_SCHEMA_ID_ASC' + | 'PRIVATE_SCHEMA_ID_DESC' + | 'PUBLIC_SCHEMA_NAME_ASC' + | 'PUBLIC_SCHEMA_NAME_DESC' + | 'PRIVATE_SCHEMA_NAME_ASC' + | 'PRIVATE_SCHEMA_NAME_DESC' + | 'DEPLOYMENTS_TABLE_ID_ASC' + | 'DEPLOYMENTS_TABLE_ID_DESC' + | 'DEPLOYMENT_EVENTS_TABLE_ID_ASC' + | 'DEPLOYMENT_EVENTS_TABLE_ID_DESC' + | 'DEPLOYMENTS_TABLE_NAME_ASC' + | 'DEPLOYMENTS_TABLE_NAME_DESC' + | 'DEPLOYMENT_EVENTS_TABLE_NAME_ASC' + | 'DEPLOYMENT_EVENTS_TABLE_NAME_DESC' + | 'API_NAME_ASC' + | 'API_NAME_DESC' + | 'PRIVATE_API_NAME_ASC' + | 'PRIVATE_API_NAME_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC' + | 'ENTITY_TABLE_ID_ASC' + | 'ENTITY_TABLE_ID_DESC' + | 'FUNCTION_MODULE_ID_ASC' + | 'FUNCTION_MODULE_ID_DESC' + | 'NAMESPACE_MODULE_ID_ASC' + | 'NAMESPACE_MODULE_ID_DESC' + | 'POLICIES_ASC' + | 'POLICIES_DESC' + | 'PROVISIONS_ASC' + | 'PROVISIONS_DESC' + | 'DEFAULT_PERMISSIONS_ASC' + | 'DEFAULT_PERMISSIONS_DESC'; +/** Methods to use when ordering `PermissionsModule`. */ +export type PermissionsModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -1774,6 +1700,8 @@ export type ProfilesModuleOrderBy = | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' + | 'ENTITY_FIELD_ASC' + | 'ENTITY_FIELD_DESC' | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' | 'PRIVATE_SCHEMA_ID_ASC' @@ -1786,22 +1714,12 @@ export type ProfilesModuleOrderBy = | 'TABLE_ID_DESC' | 'TABLE_NAME_ASC' | 'TABLE_NAME_DESC' - | 'PROFILE_PERMISSIONS_TABLE_ID_ASC' - | 'PROFILE_PERMISSIONS_TABLE_ID_DESC' - | 'PROFILE_PERMISSIONS_TABLE_NAME_ASC' - | 'PROFILE_PERMISSIONS_TABLE_NAME_DESC' - | 'PROFILE_GRANTS_TABLE_ID_ASC' - | 'PROFILE_GRANTS_TABLE_ID_DESC' - | 'PROFILE_GRANTS_TABLE_NAME_ASC' - | 'PROFILE_GRANTS_TABLE_NAME_DESC' - | 'PROFILE_DEFINITION_GRANTS_TABLE_ID_ASC' - | 'PROFILE_DEFINITION_GRANTS_TABLE_ID_DESC' - | 'PROFILE_DEFINITION_GRANTS_TABLE_NAME_ASC' - | 'PROFILE_DEFINITION_GRANTS_TABLE_NAME_DESC' - | 'PROFILE_TEMPLATES_TABLE_ID_ASC' - | 'PROFILE_TEMPLATES_TABLE_ID_DESC' - | 'PROFILE_TEMPLATES_TABLE_NAME_ASC' - | 'PROFILE_TEMPLATES_TABLE_NAME_DESC' + | 'DEFAULT_TABLE_ID_ASC' + | 'DEFAULT_TABLE_ID_DESC' + | 'DEFAULT_TABLE_NAME_ASC' + | 'DEFAULT_TABLE_NAME_DESC' + | 'BITLEN_ASC' + | 'BITLEN_DESC' | 'SCOPE_ASC' | 'SCOPE_DESC' | 'PREFIX_ASC' @@ -1810,16 +1728,20 @@ export type ProfilesModuleOrderBy = | 'ENTITY_TABLE_ID_DESC' | 'ACTOR_TABLE_ID_ASC' | 'ACTOR_TABLE_ID_DESC' - | 'PERMISSIONS_TABLE_ID_ASC' - | 'PERMISSIONS_TABLE_ID_DESC' - | 'MEMBERSHIPS_TABLE_ID_ASC' - | 'MEMBERSHIPS_TABLE_ID_DESC' + | 'GET_PADDED_MASK_ASC' + | 'GET_PADDED_MASK_DESC' + | 'GET_MASK_ASC' + | 'GET_MASK_DESC' + | 'GET_BY_MASK_ASC' + | 'GET_BY_MASK_DESC' + | 'GET_MASK_BY_NAME_ASC' + | 'GET_MASK_BY_NAME_DESC' | 'API_NAME_ASC' | 'API_NAME_DESC' | 'PRIVATE_API_NAME_ASC' | 'PRIVATE_API_NAME_DESC'; -/** Methods to use when ordering `BillingModule`. */ -export type BillingModuleOrderBy = +/** Methods to use when ordering `GraphExecutionModule`. */ +export type GraphExecutionModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -1827,6 +1749,8 @@ export type BillingModuleOrderBy = | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' + | 'ENTITY_FIELD_ASC' + | 'ENTITY_FIELD_DESC' | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' | 'PRIVATE_SCHEMA_ID_ASC' @@ -1835,38 +1759,136 @@ export type BillingModuleOrderBy = | 'PUBLIC_SCHEMA_NAME_DESC' | 'PRIVATE_SCHEMA_NAME_ASC' | 'PRIVATE_SCHEMA_NAME_DESC' - | 'METERS_TABLE_ID_ASC' - | 'METERS_TABLE_ID_DESC' - | 'METERS_TABLE_NAME_ASC' - | 'METERS_TABLE_NAME_DESC' - | 'PLAN_SUBSCRIPTIONS_TABLE_ID_ASC' - | 'PLAN_SUBSCRIPTIONS_TABLE_ID_DESC' - | 'PLAN_SUBSCRIPTIONS_TABLE_NAME_ASC' - | 'PLAN_SUBSCRIPTIONS_TABLE_NAME_DESC' - | 'LEDGER_TABLE_ID_ASC' - | 'LEDGER_TABLE_ID_DESC' - | 'LEDGER_TABLE_NAME_ASC' - | 'LEDGER_TABLE_NAME_DESC' - | 'BALANCES_TABLE_ID_ASC' - | 'BALANCES_TABLE_ID_DESC' - | 'BALANCES_TABLE_NAME_ASC' - | 'BALANCES_TABLE_NAME_DESC' - | 'METER_CREDITS_TABLE_ID_ASC' - | 'METER_CREDITS_TABLE_ID_DESC' - | 'METER_CREDITS_TABLE_NAME_ASC' - | 'METER_CREDITS_TABLE_NAME_DESC' - | 'METER_SOURCES_TABLE_ID_ASC' - | 'METER_SOURCES_TABLE_ID_DESC' - | 'METER_SOURCES_TABLE_NAME_ASC' - | 'METER_SOURCES_TABLE_NAME_DESC' - | 'METER_DEFAULTS_TABLE_ID_ASC' - | 'METER_DEFAULTS_TABLE_ID_DESC' - | 'METER_DEFAULTS_TABLE_NAME_ASC' - | 'METER_DEFAULTS_TABLE_NAME_DESC' - | 'RECORD_USAGE_FUNCTION_ASC' - | 'RECORD_USAGE_FUNCTION_DESC' + | 'GRAPH_MODULE_ID_ASC' + | 'GRAPH_MODULE_ID_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC' + | 'EXECUTIONS_TABLE_ID_ASC' + | 'EXECUTIONS_TABLE_ID_DESC' + | 'OUTPUTS_TABLE_ID_ASC' + | 'OUTPUTS_TABLE_ID_DESC' + | 'NODE_STATES_TABLE_ID_ASC' + | 'NODE_STATES_TABLE_ID_DESC' + | 'EXECUTIONS_TABLE_NAME_ASC' + | 'EXECUTIONS_TABLE_NAME_DESC' + | 'OUTPUTS_TABLE_NAME_ASC' + | 'OUTPUTS_TABLE_NAME_DESC' + | 'NODE_STATES_TABLE_NAME_ASC' + | 'NODE_STATES_TABLE_NAME_DESC' + | 'API_NAME_ASC' + | 'API_NAME_DESC' + | 'PRIVATE_API_NAME_ASC' + | 'PRIVATE_API_NAME_DESC' + | 'ENTITY_TABLE_ID_ASC' + | 'ENTITY_TABLE_ID_DESC' + | 'POLICIES_ASC' + | 'POLICIES_DESC' + | 'PROVISIONS_ASC' + | 'PROVISIONS_DESC' + | 'DEFAULT_PERMISSIONS_ASC' + | 'DEFAULT_PERMISSIONS_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC'; +/** Methods to use when ordering `HierarchyModule`. */ +export type HierarchyModuleOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'ENTITY_FIELD_ASC' + | 'ENTITY_FIELD_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'PRIVATE_SCHEMA_ID_ASC' + | 'PRIVATE_SCHEMA_ID_DESC' + | 'CHART_EDGES_TABLE_ID_ASC' + | 'CHART_EDGES_TABLE_ID_DESC' + | 'CHART_EDGES_TABLE_NAME_ASC' + | 'CHART_EDGES_TABLE_NAME_DESC' + | 'HIERARCHY_SPRT_TABLE_ID_ASC' + | 'HIERARCHY_SPRT_TABLE_ID_DESC' + | 'HIERARCHY_SPRT_TABLE_NAME_ASC' + | 'HIERARCHY_SPRT_TABLE_NAME_DESC' + | 'CHART_EDGE_GRANTS_TABLE_ID_ASC' + | 'CHART_EDGE_GRANTS_TABLE_ID_DESC' + | 'CHART_EDGE_GRANTS_TABLE_NAME_ASC' + | 'CHART_EDGE_GRANTS_TABLE_NAME_DESC' + | 'ENTITY_TABLE_ID_ASC' + | 'ENTITY_TABLE_ID_DESC' + | 'USERS_TABLE_ID_ASC' + | 'USERS_TABLE_ID_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' | 'PREFIX_ASC' | 'PREFIX_DESC' + | 'PRIVATE_SCHEMA_NAME_ASC' + | 'PRIVATE_SCHEMA_NAME_DESC' + | 'SPRT_TABLE_NAME_ASC' + | 'SPRT_TABLE_NAME_DESC' + | 'REBUILD_HIERARCHY_FUNCTION_ASC' + | 'REBUILD_HIERARCHY_FUNCTION_DESC' + | 'GET_SUBORDINATES_FUNCTION_ASC' + | 'GET_SUBORDINATES_FUNCTION_DESC' + | 'GET_MANAGERS_FUNCTION_ASC' + | 'GET_MANAGERS_FUNCTION_DESC' + | 'IS_MANAGER_OF_FUNCTION_ASC' + | 'IS_MANAGER_OF_FUNCTION_DESC' + | 'DEFAULT_PERMISSIONS_ASC' + | 'DEFAULT_PERMISSIONS_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC'; +/** Methods to use when ordering `NotificationsModule`. */ +export type NotificationsModuleOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'ENTITY_FIELD_ASC' + | 'ENTITY_FIELD_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'PRIVATE_SCHEMA_ID_ASC' + | 'PRIVATE_SCHEMA_ID_DESC' + | 'PUBLIC_SCHEMA_NAME_ASC' + | 'PUBLIC_SCHEMA_NAME_DESC' + | 'PRIVATE_SCHEMA_NAME_ASC' + | 'PRIVATE_SCHEMA_NAME_DESC' + | 'NOTIFICATIONS_TABLE_ID_ASC' + | 'NOTIFICATIONS_TABLE_ID_DESC' + | 'READ_STATE_TABLE_ID_ASC' + | 'READ_STATE_TABLE_ID_DESC' + | 'PREFERENCES_TABLE_ID_ASC' + | 'PREFERENCES_TABLE_ID_DESC' + | 'CHANNELS_TABLE_ID_ASC' + | 'CHANNELS_TABLE_ID_DESC' + | 'DELIVERY_LOG_TABLE_ID_ASC' + | 'DELIVERY_LOG_TABLE_ID_DESC' + | 'SUPPRESSIONS_TABLE_ID_ASC' + | 'SUPPRESSIONS_TABLE_ID_DESC' + | 'OWNER_TABLE_ID_ASC' + | 'OWNER_TABLE_ID_DESC' + | 'USER_SETTINGS_TABLE_ID_ASC' + | 'USER_SETTINGS_TABLE_ID_DESC' + | 'ORGANIZATION_SETTINGS_TABLE_ID_ASC' + | 'ORGANIZATION_SETTINGS_TABLE_ID_DESC' + | 'HAS_CHANNELS_ASC' + | 'HAS_CHANNELS_DESC' + | 'HAS_PREFERENCES_ASC' + | 'HAS_PREFERENCES_DESC' + | 'HAS_SETTINGS_EXTENSION_ASC' + | 'HAS_SETTINGS_EXTENSION_DESC' + | 'HAS_DIGEST_METADATA_ASC' + | 'HAS_DIGEST_METADATA_DESC' + | 'HAS_SUBSCRIPTIONS_ASC' + | 'HAS_SUBSCRIPTIONS_DESC' | 'DEFAULT_PERMISSIONS_ASC' | 'DEFAULT_PERMISSIONS_DESC' | 'API_NAME_ASC' @@ -1926,8 +1948,8 @@ export type RelationProvisionOrderBy = | 'OUT_SOURCE_FIELD_ID_DESC' | 'OUT_TARGET_FIELD_ID_ASC' | 'OUT_TARGET_FIELD_ID_DESC'; -/** Methods to use when ordering `UserAuthModule`. */ -export type UserAuthModuleOrderBy = +/** Methods to use when ordering `ProfilesModule`. */ +export type ProfilesModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -1935,60 +1957,54 @@ export type UserAuthModuleOrderBy = | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' + | 'ENTITY_FIELD_ASC' + | 'ENTITY_FIELD_DESC' | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' - | 'EMAILS_TABLE_ID_ASC' - | 'EMAILS_TABLE_ID_DESC' - | 'USERS_TABLE_ID_ASC' - | 'USERS_TABLE_ID_DESC' - | 'SECRETS_TABLE_ID_ASC' - | 'SECRETS_TABLE_ID_DESC' - | 'ENCRYPTED_TABLE_ID_ASC' - | 'ENCRYPTED_TABLE_ID_DESC' - | 'SESSIONS_TABLE_ID_ASC' - | 'SESSIONS_TABLE_ID_DESC' - | 'SESSION_CREDENTIALS_TABLE_ID_ASC' - | 'SESSION_CREDENTIALS_TABLE_ID_DESC' - | 'AUDITS_TABLE_ID_ASC' - | 'AUDITS_TABLE_ID_DESC' - | 'AUDITS_TABLE_NAME_ASC' - | 'AUDITS_TABLE_NAME_DESC' - | 'SIGN_IN_FUNCTION_ASC' - | 'SIGN_IN_FUNCTION_DESC' - | 'SIGN_UP_FUNCTION_ASC' - | 'SIGN_UP_FUNCTION_DESC' - | 'SIGN_OUT_FUNCTION_ASC' - | 'SIGN_OUT_FUNCTION_DESC' - | 'SET_PASSWORD_FUNCTION_ASC' - | 'SET_PASSWORD_FUNCTION_DESC' - | 'RESET_PASSWORD_FUNCTION_ASC' - | 'RESET_PASSWORD_FUNCTION_DESC' - | 'FORGOT_PASSWORD_FUNCTION_ASC' - | 'FORGOT_PASSWORD_FUNCTION_DESC' - | 'SEND_VERIFICATION_EMAIL_FUNCTION_ASC' - | 'SEND_VERIFICATION_EMAIL_FUNCTION_DESC' - | 'VERIFY_EMAIL_FUNCTION_ASC' - | 'VERIFY_EMAIL_FUNCTION_DESC' - | 'VERIFY_PASSWORD_FUNCTION_ASC' - | 'VERIFY_PASSWORD_FUNCTION_DESC' - | 'CHECK_PASSWORD_FUNCTION_ASC' - | 'CHECK_PASSWORD_FUNCTION_DESC' - | 'SEND_ACCOUNT_DELETION_EMAIL_FUNCTION_ASC' - | 'SEND_ACCOUNT_DELETION_EMAIL_FUNCTION_DESC' - | 'DELETE_ACCOUNT_FUNCTION_ASC' - | 'DELETE_ACCOUNT_FUNCTION_DESC' - | 'SIGN_IN_CROSS_ORIGIN_FUNCTION_ASC' - | 'SIGN_IN_CROSS_ORIGIN_FUNCTION_DESC' - | 'REQUEST_CROSS_ORIGIN_TOKEN_FUNCTION_ASC' - | 'REQUEST_CROSS_ORIGIN_TOKEN_FUNCTION_DESC' - | 'EXTEND_TOKEN_EXPIRES_ASC' - | 'EXTEND_TOKEN_EXPIRES_DESC' + | 'PRIVATE_SCHEMA_ID_ASC' + | 'PRIVATE_SCHEMA_ID_DESC' + | 'PUBLIC_SCHEMA_NAME_ASC' + | 'PUBLIC_SCHEMA_NAME_DESC' + | 'PRIVATE_SCHEMA_NAME_ASC' + | 'PRIVATE_SCHEMA_NAME_DESC' + | 'TABLE_ID_ASC' + | 'TABLE_ID_DESC' + | 'TABLE_NAME_ASC' + | 'TABLE_NAME_DESC' + | 'PROFILE_PERMISSIONS_TABLE_ID_ASC' + | 'PROFILE_PERMISSIONS_TABLE_ID_DESC' + | 'PROFILE_PERMISSIONS_TABLE_NAME_ASC' + | 'PROFILE_PERMISSIONS_TABLE_NAME_DESC' + | 'PROFILE_GRANTS_TABLE_ID_ASC' + | 'PROFILE_GRANTS_TABLE_ID_DESC' + | 'PROFILE_GRANTS_TABLE_NAME_ASC' + | 'PROFILE_GRANTS_TABLE_NAME_DESC' + | 'PROFILE_DEFINITION_GRANTS_TABLE_ID_ASC' + | 'PROFILE_DEFINITION_GRANTS_TABLE_ID_DESC' + | 'PROFILE_DEFINITION_GRANTS_TABLE_NAME_ASC' + | 'PROFILE_DEFINITION_GRANTS_TABLE_NAME_DESC' + | 'PROFILE_TEMPLATES_TABLE_ID_ASC' + | 'PROFILE_TEMPLATES_TABLE_ID_DESC' + | 'PROFILE_TEMPLATES_TABLE_NAME_ASC' + | 'PROFILE_TEMPLATES_TABLE_NAME_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC' + | 'ENTITY_TABLE_ID_ASC' + | 'ENTITY_TABLE_ID_DESC' + | 'ACTOR_TABLE_ID_ASC' + | 'ACTOR_TABLE_ID_DESC' + | 'PERMISSIONS_TABLE_ID_ASC' + | 'PERMISSIONS_TABLE_ID_DESC' + | 'MEMBERSHIPS_TABLE_ID_ASC' + | 'MEMBERSHIPS_TABLE_ID_DESC' | 'API_NAME_ASC' | 'API_NAME_DESC' | 'PRIVATE_API_NAME_ASC' | 'PRIVATE_API_NAME_DESC'; -/** Methods to use when ordering `AgentModule`. */ -export type AgentModuleOrderBy = +/** Methods to use when ordering `BillingModule`. */ +export type BillingModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -2004,46 +2020,284 @@ export type AgentModuleOrderBy = | 'PUBLIC_SCHEMA_NAME_DESC' | 'PRIVATE_SCHEMA_NAME_ASC' | 'PRIVATE_SCHEMA_NAME_DESC' - | 'THREAD_TABLE_ID_ASC' - | 'THREAD_TABLE_ID_DESC' - | 'MESSAGE_TABLE_ID_ASC' - | 'MESSAGE_TABLE_ID_DESC' - | 'TASK_TABLE_ID_ASC' - | 'TASK_TABLE_ID_DESC' - | 'PROMPTS_TABLE_ID_ASC' - | 'PROMPTS_TABLE_ID_DESC' - | 'PLAN_TABLE_ID_ASC' - | 'PLAN_TABLE_ID_DESC' - | 'AGENT_TABLE_ID_ASC' - | 'AGENT_TABLE_ID_DESC' - | 'PERSONA_TABLE_ID_ASC' - | 'PERSONA_TABLE_ID_DESC' - | 'RESOURCE_TABLE_ID_ASC' - | 'RESOURCE_TABLE_ID_DESC' - | 'THREAD_TABLE_NAME_ASC' - | 'THREAD_TABLE_NAME_DESC' - | 'MESSAGE_TABLE_NAME_ASC' - | 'MESSAGE_TABLE_NAME_DESC' - | 'TASK_TABLE_NAME_ASC' - | 'TASK_TABLE_NAME_DESC' - | 'PROMPTS_TABLE_NAME_ASC' - | 'PROMPTS_TABLE_NAME_DESC' - | 'PLAN_TABLE_NAME_ASC' - | 'PLAN_TABLE_NAME_DESC' - | 'AGENT_TABLE_NAME_ASC' - | 'AGENT_TABLE_NAME_DESC' - | 'PERSONA_TABLE_NAME_ASC' - | 'PERSONA_TABLE_NAME_DESC' - | 'RESOURCE_TABLE_NAME_ASC' - | 'RESOURCE_TABLE_NAME_DESC' - | 'HAS_PLANS_ASC' - | 'HAS_PLANS_DESC' - | 'HAS_RESOURCES_ASC' - | 'HAS_RESOURCES_DESC' - | 'HAS_AGENTS_ASC' - | 'HAS_AGENTS_DESC' - | 'SHARED_ASC' - | 'SHARED_DESC' + | 'METERS_TABLE_ID_ASC' + | 'METERS_TABLE_ID_DESC' + | 'METERS_TABLE_NAME_ASC' + | 'METERS_TABLE_NAME_DESC' + | 'PLAN_SUBSCRIPTIONS_TABLE_ID_ASC' + | 'PLAN_SUBSCRIPTIONS_TABLE_ID_DESC' + | 'PLAN_SUBSCRIPTIONS_TABLE_NAME_ASC' + | 'PLAN_SUBSCRIPTIONS_TABLE_NAME_DESC' + | 'LEDGER_TABLE_ID_ASC' + | 'LEDGER_TABLE_ID_DESC' + | 'LEDGER_TABLE_NAME_ASC' + | 'LEDGER_TABLE_NAME_DESC' + | 'BALANCES_TABLE_ID_ASC' + | 'BALANCES_TABLE_ID_DESC' + | 'BALANCES_TABLE_NAME_ASC' + | 'BALANCES_TABLE_NAME_DESC' + | 'METER_CREDITS_TABLE_ID_ASC' + | 'METER_CREDITS_TABLE_ID_DESC' + | 'METER_CREDITS_TABLE_NAME_ASC' + | 'METER_CREDITS_TABLE_NAME_DESC' + | 'METER_SOURCES_TABLE_ID_ASC' + | 'METER_SOURCES_TABLE_ID_DESC' + | 'METER_SOURCES_TABLE_NAME_ASC' + | 'METER_SOURCES_TABLE_NAME_DESC' + | 'METER_DEFAULTS_TABLE_ID_ASC' + | 'METER_DEFAULTS_TABLE_ID_DESC' + | 'METER_DEFAULTS_TABLE_NAME_ASC' + | 'METER_DEFAULTS_TABLE_NAME_DESC' + | 'RECORD_USAGE_FUNCTION_ASC' + | 'RECORD_USAGE_FUNCTION_DESC' + | 'SWEEP_EXPIRED_SUBSCRIPTIONS_FUNCTION_ASC' + | 'SWEEP_EXPIRED_SUBSCRIPTIONS_FUNCTION_DESC' + | 'ROLLUP_USAGE_SUMMARY_FUNCTION_ASC' + | 'ROLLUP_USAGE_SUMMARY_FUNCTION_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC' + | 'DEFAULT_PERMISSIONS_ASC' + | 'DEFAULT_PERMISSIONS_DESC' + | 'API_NAME_ASC' + | 'API_NAME_DESC' + | 'PRIVATE_API_NAME_ASC' + | 'PRIVATE_API_NAME_DESC'; +/** Methods to use when ordering `ResourceModule`. */ +export type ResourceModuleOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'ENTITY_FIELD_ASC' + | 'ENTITY_FIELD_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'PRIVATE_SCHEMA_ID_ASC' + | 'PRIVATE_SCHEMA_ID_DESC' + | 'PUBLIC_SCHEMA_NAME_ASC' + | 'PUBLIC_SCHEMA_NAME_DESC' + | 'PRIVATE_SCHEMA_NAME_ASC' + | 'PRIVATE_SCHEMA_NAME_DESC' + | 'RESOURCES_TABLE_ID_ASC' + | 'RESOURCES_TABLE_ID_DESC' + | 'RESOURCE_EVENTS_TABLE_ID_ASC' + | 'RESOURCE_EVENTS_TABLE_ID_DESC' + | 'RESOURCE_STATUS_CHECKS_TABLE_ID_ASC' + | 'RESOURCE_STATUS_CHECKS_TABLE_ID_DESC' + | 'RESOURCE_DEFINITIONS_TABLE_ID_ASC' + | 'RESOURCE_DEFINITIONS_TABLE_ID_DESC' + | 'RESOURCES_TABLE_NAME_ASC' + | 'RESOURCES_TABLE_NAME_DESC' + | 'RESOURCE_EVENTS_TABLE_NAME_ASC' + | 'RESOURCE_EVENTS_TABLE_NAME_DESC' + | 'RESOURCE_STATUS_CHECKS_TABLE_NAME_ASC' + | 'RESOURCE_STATUS_CHECKS_TABLE_NAME_DESC' + | 'RESOURCE_DEFINITIONS_TABLE_NAME_ASC' + | 'RESOURCE_DEFINITIONS_TABLE_NAME_DESC' + | 'RESOLVED_REQUIREMENTS_VIEW_NAME_ASC' + | 'RESOLVED_REQUIREMENTS_VIEW_NAME_DESC' + | 'REQUIREMENTS_STATE_VIEW_NAME_ASC' + | 'REQUIREMENTS_STATE_VIEW_NAME_DESC' + | 'API_NAME_ASC' + | 'API_NAME_DESC' + | 'PRIVATE_API_NAME_ASC' + | 'PRIVATE_API_NAME_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC' + | 'ENTITY_TABLE_ID_ASC' + | 'ENTITY_TABLE_ID_DESC' + | 'NAMESPACE_MODULE_ID_ASC' + | 'NAMESPACE_MODULE_ID_DESC' + | 'POLICIES_ASC' + | 'POLICIES_DESC' + | 'PROVISIONS_ASC' + | 'PROVISIONS_DESC' + | 'DEFAULT_PERMISSIONS_ASC' + | 'DEFAULT_PERMISSIONS_DESC'; +/** Methods to use when ordering `UserAuthModule`. */ +export type UserAuthModuleOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'EMAILS_TABLE_ID_ASC' + | 'EMAILS_TABLE_ID_DESC' + | 'USERS_TABLE_ID_ASC' + | 'USERS_TABLE_ID_DESC' + | 'SECRETS_TABLE_ID_ASC' + | 'SECRETS_TABLE_ID_DESC' + | 'ENCRYPTED_TABLE_ID_ASC' + | 'ENCRYPTED_TABLE_ID_DESC' + | 'SESSIONS_TABLE_ID_ASC' + | 'SESSIONS_TABLE_ID_DESC' + | 'SESSION_CREDENTIALS_TABLE_ID_ASC' + | 'SESSION_CREDENTIALS_TABLE_ID_DESC' + | 'AUDITS_TABLE_ID_ASC' + | 'AUDITS_TABLE_ID_DESC' + | 'AUDITS_TABLE_NAME_ASC' + | 'AUDITS_TABLE_NAME_DESC' + | 'SIGN_IN_FUNCTION_ASC' + | 'SIGN_IN_FUNCTION_DESC' + | 'SIGN_UP_FUNCTION_ASC' + | 'SIGN_UP_FUNCTION_DESC' + | 'SIGN_OUT_FUNCTION_ASC' + | 'SIGN_OUT_FUNCTION_DESC' + | 'SET_PASSWORD_FUNCTION_ASC' + | 'SET_PASSWORD_FUNCTION_DESC' + | 'RESET_PASSWORD_FUNCTION_ASC' + | 'RESET_PASSWORD_FUNCTION_DESC' + | 'FORGOT_PASSWORD_FUNCTION_ASC' + | 'FORGOT_PASSWORD_FUNCTION_DESC' + | 'SEND_VERIFICATION_EMAIL_FUNCTION_ASC' + | 'SEND_VERIFICATION_EMAIL_FUNCTION_DESC' + | 'VERIFY_EMAIL_FUNCTION_ASC' + | 'VERIFY_EMAIL_FUNCTION_DESC' + | 'VERIFY_PASSWORD_FUNCTION_ASC' + | 'VERIFY_PASSWORD_FUNCTION_DESC' + | 'CHECK_PASSWORD_FUNCTION_ASC' + | 'CHECK_PASSWORD_FUNCTION_DESC' + | 'SEND_ACCOUNT_DELETION_EMAIL_FUNCTION_ASC' + | 'SEND_ACCOUNT_DELETION_EMAIL_FUNCTION_DESC' + | 'DELETE_ACCOUNT_FUNCTION_ASC' + | 'DELETE_ACCOUNT_FUNCTION_DESC' + | 'SIGN_IN_CROSS_ORIGIN_FUNCTION_ASC' + | 'SIGN_IN_CROSS_ORIGIN_FUNCTION_DESC' + | 'REQUEST_CROSS_ORIGIN_TOKEN_FUNCTION_ASC' + | 'REQUEST_CROSS_ORIGIN_TOKEN_FUNCTION_DESC' + | 'EXTEND_TOKEN_EXPIRES_ASC' + | 'EXTEND_TOKEN_EXPIRES_DESC' + | 'API_NAME_ASC' + | 'API_NAME_DESC' + | 'PRIVATE_API_NAME_ASC' + | 'PRIVATE_API_NAME_DESC'; +/** Methods to use when ordering `DbUsageModule`. */ +export type DbUsageModuleOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'ENTITY_FIELD_ASC' + | 'ENTITY_FIELD_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'PRIVATE_SCHEMA_ID_ASC' + | 'PRIVATE_SCHEMA_ID_DESC' + | 'PUBLIC_SCHEMA_NAME_ASC' + | 'PUBLIC_SCHEMA_NAME_DESC' + | 'PRIVATE_SCHEMA_NAME_ASC' + | 'PRIVATE_SCHEMA_NAME_DESC' + | 'TABLE_STATS_LOG_TABLE_ID_ASC' + | 'TABLE_STATS_LOG_TABLE_ID_DESC' + | 'TABLE_STATS_LOG_TABLE_NAME_ASC' + | 'TABLE_STATS_LOG_TABLE_NAME_DESC' + | 'TABLE_STATS_DAILY_TABLE_ID_ASC' + | 'TABLE_STATS_DAILY_TABLE_ID_DESC' + | 'TABLE_STATS_DAILY_TABLE_NAME_ASC' + | 'TABLE_STATS_DAILY_TABLE_NAME_DESC' + | 'QUERY_STATS_LOG_TABLE_ID_ASC' + | 'QUERY_STATS_LOG_TABLE_ID_DESC' + | 'QUERY_STATS_LOG_TABLE_NAME_ASC' + | 'QUERY_STATS_LOG_TABLE_NAME_DESC' + | 'QUERY_STATS_DAILY_TABLE_ID_ASC' + | 'QUERY_STATS_DAILY_TABLE_ID_DESC' + | 'QUERY_STATS_DAILY_TABLE_NAME_ASC' + | 'QUERY_STATS_DAILY_TABLE_NAME_DESC' + | 'COLLECT_DB_TABLE_STATS_FUNCTION_ASC' + | 'COLLECT_DB_TABLE_STATS_FUNCTION_DESC' + | 'COLLECT_DB_QUERY_STATS_FUNCTION_ASC' + | 'COLLECT_DB_QUERY_STATS_FUNCTION_DESC' + | 'ROLLUP_DB_TABLE_STATS_DAILY_FUNCTION_ASC' + | 'ROLLUP_DB_TABLE_STATS_DAILY_FUNCTION_DESC' + | 'ROLLUP_DB_QUERY_STATS_DAILY_FUNCTION_ASC' + | 'ROLLUP_DB_QUERY_STATS_DAILY_FUNCTION_DESC' + | 'INTERVAL_ASC' + | 'INTERVAL_DESC' + | 'RETENTION_ASC' + | 'RETENTION_DESC' + | 'PREMAKE_ASC' + | 'PREMAKE_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC' + | 'DEFAULT_PERMISSIONS_ASC' + | 'DEFAULT_PERMISSIONS_DESC' + | 'API_NAME_ASC' + | 'API_NAME_DESC' + | 'PRIVATE_API_NAME_ASC' + | 'PRIVATE_API_NAME_DESC'; +/** Methods to use when ordering `AgentModule`. */ +export type AgentModuleOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'ENTITY_FIELD_ASC' + | 'ENTITY_FIELD_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'PRIVATE_SCHEMA_ID_ASC' + | 'PRIVATE_SCHEMA_ID_DESC' + | 'PUBLIC_SCHEMA_NAME_ASC' + | 'PUBLIC_SCHEMA_NAME_DESC' + | 'PRIVATE_SCHEMA_NAME_ASC' + | 'PRIVATE_SCHEMA_NAME_DESC' + | 'THREAD_TABLE_ID_ASC' + | 'THREAD_TABLE_ID_DESC' + | 'MESSAGE_TABLE_ID_ASC' + | 'MESSAGE_TABLE_ID_DESC' + | 'TASK_TABLE_ID_ASC' + | 'TASK_TABLE_ID_DESC' + | 'PROMPTS_TABLE_ID_ASC' + | 'PROMPTS_TABLE_ID_DESC' + | 'PLAN_TABLE_ID_ASC' + | 'PLAN_TABLE_ID_DESC' + | 'AGENT_TABLE_ID_ASC' + | 'AGENT_TABLE_ID_DESC' + | 'PERSONA_TABLE_ID_ASC' + | 'PERSONA_TABLE_ID_DESC' + | 'RESOURCE_TABLE_ID_ASC' + | 'RESOURCE_TABLE_ID_DESC' + | 'THREAD_TABLE_NAME_ASC' + | 'THREAD_TABLE_NAME_DESC' + | 'MESSAGE_TABLE_NAME_ASC' + | 'MESSAGE_TABLE_NAME_DESC' + | 'TASK_TABLE_NAME_ASC' + | 'TASK_TABLE_NAME_DESC' + | 'PROMPTS_TABLE_NAME_ASC' + | 'PROMPTS_TABLE_NAME_DESC' + | 'PLAN_TABLE_NAME_ASC' + | 'PLAN_TABLE_NAME_DESC' + | 'AGENT_TABLE_NAME_ASC' + | 'AGENT_TABLE_NAME_DESC' + | 'PERSONA_TABLE_NAME_ASC' + | 'PERSONA_TABLE_NAME_DESC' + | 'RESOURCE_TABLE_NAME_ASC' + | 'RESOURCE_TABLE_NAME_DESC' + | 'HAS_PLANS_ASC' + | 'HAS_PLANS_DESC' + | 'HAS_RESOURCES_ASC' + | 'HAS_RESOURCES_DESC' + | 'HAS_AGENTS_ASC' + | 'HAS_AGENTS_DESC' + | 'SHARED_ASC' + | 'SHARED_DESC' | 'API_NAME_ASC' | 'API_NAME_DESC' | 'PRIVATE_API_NAME_ASC' @@ -2071,6 +2325,8 @@ export type LimitsModuleOrderBy = | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' + | 'ENTITY_FIELD_ASC' + | 'ENTITY_FIELD_DESC' | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' | 'PRIVATE_SCHEMA_ID_ASC' @@ -2139,95 +2395,8 @@ export type LimitsModuleOrderBy = | 'API_NAME_DESC' | 'PRIVATE_API_NAME_ASC' | 'PRIVATE_API_NAME_DESC'; -/** Methods to use when ordering `MembershipsModule`. */ -export type MembershipsModuleOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC' - | 'PRIVATE_SCHEMA_ID_ASC' - | 'PRIVATE_SCHEMA_ID_DESC' - | 'PUBLIC_SCHEMA_NAME_ASC' - | 'PUBLIC_SCHEMA_NAME_DESC' - | 'PRIVATE_SCHEMA_NAME_ASC' - | 'PRIVATE_SCHEMA_NAME_DESC' - | 'MEMBERSHIPS_TABLE_ID_ASC' - | 'MEMBERSHIPS_TABLE_ID_DESC' - | 'MEMBERSHIPS_TABLE_NAME_ASC' - | 'MEMBERSHIPS_TABLE_NAME_DESC' - | 'MEMBERS_TABLE_ID_ASC' - | 'MEMBERS_TABLE_ID_DESC' - | 'MEMBERS_TABLE_NAME_ASC' - | 'MEMBERS_TABLE_NAME_DESC' - | 'MEMBERSHIP_DEFAULTS_TABLE_ID_ASC' - | 'MEMBERSHIP_DEFAULTS_TABLE_ID_DESC' - | 'MEMBERSHIP_DEFAULTS_TABLE_NAME_ASC' - | 'MEMBERSHIP_DEFAULTS_TABLE_NAME_DESC' - | 'MEMBERSHIP_SETTINGS_TABLE_ID_ASC' - | 'MEMBERSHIP_SETTINGS_TABLE_ID_DESC' - | 'MEMBERSHIP_SETTINGS_TABLE_NAME_ASC' - | 'MEMBERSHIP_SETTINGS_TABLE_NAME_DESC' - | 'GRANTS_TABLE_ID_ASC' - | 'GRANTS_TABLE_ID_DESC' - | 'GRANTS_TABLE_NAME_ASC' - | 'GRANTS_TABLE_NAME_DESC' - | 'ACTOR_TABLE_ID_ASC' - | 'ACTOR_TABLE_ID_DESC' - | 'LIMITS_TABLE_ID_ASC' - | 'LIMITS_TABLE_ID_DESC' - | 'DEFAULT_LIMITS_TABLE_ID_ASC' - | 'DEFAULT_LIMITS_TABLE_ID_DESC' - | 'PERMISSIONS_TABLE_ID_ASC' - | 'PERMISSIONS_TABLE_ID_DESC' - | 'DEFAULT_PERMISSIONS_TABLE_ID_ASC' - | 'DEFAULT_PERMISSIONS_TABLE_ID_DESC' - | 'SPRT_TABLE_ID_ASC' - | 'SPRT_TABLE_ID_DESC' - | 'ADMIN_GRANTS_TABLE_ID_ASC' - | 'ADMIN_GRANTS_TABLE_ID_DESC' - | 'ADMIN_GRANTS_TABLE_NAME_ASC' - | 'ADMIN_GRANTS_TABLE_NAME_DESC' - | 'OWNER_GRANTS_TABLE_ID_ASC' - | 'OWNER_GRANTS_TABLE_ID_DESC' - | 'OWNER_GRANTS_TABLE_NAME_ASC' - | 'OWNER_GRANTS_TABLE_NAME_DESC' - | 'SCOPE_ASC' - | 'SCOPE_DESC' - | 'PREFIX_ASC' - | 'PREFIX_DESC' - | 'ENTITY_TABLE_ID_ASC' - | 'ENTITY_TABLE_ID_DESC' - | 'ENTITY_TABLE_OWNER_ID_ASC' - | 'ENTITY_TABLE_OWNER_ID_DESC' - | 'GET_ORG_FN_ASC' - | 'GET_ORG_FN_DESC' - | 'ACTOR_MASK_CHECK_ASC' - | 'ACTOR_MASK_CHECK_DESC' - | 'ACTOR_PERM_CHECK_ASC' - | 'ACTOR_PERM_CHECK_DESC' - | 'ENTITY_IDS_BY_MASK_ASC' - | 'ENTITY_IDS_BY_MASK_DESC' - | 'ENTITY_IDS_BY_PERM_ASC' - | 'ENTITY_IDS_BY_PERM_DESC' - | 'ENTITY_IDS_FUNCTION_ASC' - | 'ENTITY_IDS_FUNCTION_DESC' - | 'MEMBER_PROFILES_TABLE_ID_ASC' - | 'MEMBER_PROFILES_TABLE_ID_DESC' - | 'PERMISSION_DEFAULT_PERMISSIONS_TABLE_ID_ASC' - | 'PERMISSION_DEFAULT_PERMISSIONS_TABLE_ID_DESC' - | 'PERMISSION_DEFAULT_GRANTS_TABLE_ID_ASC' - | 'PERMISSION_DEFAULT_GRANTS_TABLE_ID_DESC' - | 'API_NAME_ASC' - | 'API_NAME_DESC' - | 'PRIVATE_API_NAME_ASC' - | 'PRIVATE_API_NAME_DESC'; -/** Methods to use when ordering `EntityTypeProvision`. */ -export type EntityTypeProvisionOrderBy = +/** Methods to use when ordering `EntityTypeProvision`. */ +export type EntityTypeProvisionOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -2303,8 +2472,6 @@ export type EntityTypeProvisionOrderBy = | 'OUT_INVOCATIONS_TABLE_ID_DESC' | 'OUT_EXECUTION_LOGS_TABLE_ID_ASC' | 'OUT_EXECUTION_LOGS_TABLE_ID_DESC' - | 'OUT_SECRET_DEFINITIONS_TABLE_ID_ASC' - | 'OUT_SECRET_DEFINITIONS_TABLE_ID_DESC' | 'OUT_GRAPH_MODULE_ID_ASC' | 'OUT_GRAPH_MODULE_ID_DESC' | 'OUT_GRAPHS_TABLE_ID_ASC' @@ -2346,6 +2513,8 @@ export type StorageModuleOrderBy = | 'PROVISIONS_DESC' | 'ENTITY_TABLE_ID_ASC' | 'ENTITY_TABLE_ID_DESC' + | 'ENTITY_FIELD_ASC' + | 'ENTITY_FIELD_DESC' | 'ENDPOINT_ASC' | 'ENDPOINT_DESC' | 'PUBLIC_URL_PREFIX_ASC' @@ -2394,6 +2563,95 @@ export type StorageModuleOrderBy = | 'API_NAME_DESC' | 'PRIVATE_API_NAME_ASC' | 'PRIVATE_API_NAME_DESC'; +/** Methods to use when ordering `MembershipsModule`. */ +export type MembershipsModuleOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'ENTITY_FIELD_ASC' + | 'ENTITY_FIELD_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'PRIVATE_SCHEMA_ID_ASC' + | 'PRIVATE_SCHEMA_ID_DESC' + | 'PUBLIC_SCHEMA_NAME_ASC' + | 'PUBLIC_SCHEMA_NAME_DESC' + | 'PRIVATE_SCHEMA_NAME_ASC' + | 'PRIVATE_SCHEMA_NAME_DESC' + | 'MEMBERSHIPS_TABLE_ID_ASC' + | 'MEMBERSHIPS_TABLE_ID_DESC' + | 'MEMBERSHIPS_TABLE_NAME_ASC' + | 'MEMBERSHIPS_TABLE_NAME_DESC' + | 'MEMBERS_TABLE_ID_ASC' + | 'MEMBERS_TABLE_ID_DESC' + | 'MEMBERS_TABLE_NAME_ASC' + | 'MEMBERS_TABLE_NAME_DESC' + | 'MEMBERSHIP_DEFAULTS_TABLE_ID_ASC' + | 'MEMBERSHIP_DEFAULTS_TABLE_ID_DESC' + | 'MEMBERSHIP_DEFAULTS_TABLE_NAME_ASC' + | 'MEMBERSHIP_DEFAULTS_TABLE_NAME_DESC' + | 'MEMBERSHIP_SETTINGS_TABLE_ID_ASC' + | 'MEMBERSHIP_SETTINGS_TABLE_ID_DESC' + | 'MEMBERSHIP_SETTINGS_TABLE_NAME_ASC' + | 'MEMBERSHIP_SETTINGS_TABLE_NAME_DESC' + | 'GRANTS_TABLE_ID_ASC' + | 'GRANTS_TABLE_ID_DESC' + | 'GRANTS_TABLE_NAME_ASC' + | 'GRANTS_TABLE_NAME_DESC' + | 'ACTOR_TABLE_ID_ASC' + | 'ACTOR_TABLE_ID_DESC' + | 'LIMITS_TABLE_ID_ASC' + | 'LIMITS_TABLE_ID_DESC' + | 'DEFAULT_LIMITS_TABLE_ID_ASC' + | 'DEFAULT_LIMITS_TABLE_ID_DESC' + | 'PERMISSIONS_TABLE_ID_ASC' + | 'PERMISSIONS_TABLE_ID_DESC' + | 'DEFAULT_PERMISSIONS_TABLE_ID_ASC' + | 'DEFAULT_PERMISSIONS_TABLE_ID_DESC' + | 'SPRT_TABLE_ID_ASC' + | 'SPRT_TABLE_ID_DESC' + | 'ADMIN_GRANTS_TABLE_ID_ASC' + | 'ADMIN_GRANTS_TABLE_ID_DESC' + | 'ADMIN_GRANTS_TABLE_NAME_ASC' + | 'ADMIN_GRANTS_TABLE_NAME_DESC' + | 'OWNER_GRANTS_TABLE_ID_ASC' + | 'OWNER_GRANTS_TABLE_ID_DESC' + | 'OWNER_GRANTS_TABLE_NAME_ASC' + | 'OWNER_GRANTS_TABLE_NAME_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC' + | 'ENTITY_TABLE_ID_ASC' + | 'ENTITY_TABLE_ID_DESC' + | 'ENTITY_TABLE_OWNER_ID_ASC' + | 'ENTITY_TABLE_OWNER_ID_DESC' + | 'GET_ORG_FN_ASC' + | 'GET_ORG_FN_DESC' + | 'ACTOR_MASK_CHECK_ASC' + | 'ACTOR_MASK_CHECK_DESC' + | 'ACTOR_PERM_CHECK_ASC' + | 'ACTOR_PERM_CHECK_DESC' + | 'ENTITY_IDS_BY_MASK_ASC' + | 'ENTITY_IDS_BY_MASK_DESC' + | 'ENTITY_IDS_BY_PERM_ASC' + | 'ENTITY_IDS_BY_PERM_DESC' + | 'ENTITY_IDS_FUNCTION_ASC' + | 'ENTITY_IDS_FUNCTION_DESC' + | 'MEMBER_PROFILES_TABLE_ID_ASC' + | 'MEMBER_PROFILES_TABLE_ID_DESC' + | 'PERMISSION_DEFAULT_PERMISSIONS_TABLE_ID_ASC' + | 'PERMISSION_DEFAULT_PERMISSIONS_TABLE_ID_DESC' + | 'PERMISSION_DEFAULT_GRANTS_TABLE_ID_ASC' + | 'PERMISSION_DEFAULT_GRANTS_TABLE_ID_DESC' + | 'API_NAME_ASC' + | 'API_NAME_DESC' + | 'PRIVATE_API_NAME_ASC' + | 'PRIVATE_API_NAME_DESC'; /** Methods to use when ordering `EventsModule`. */ export type EventsModuleOrderBy = | 'NATURAL' @@ -2403,6 +2661,8 @@ export type EventsModuleOrderBy = | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' + | 'ENTITY_FIELD_ASC' + | 'ENTITY_FIELD_DESC' | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' | 'PRIVATE_SCHEMA_ID_ASC' @@ -2455,8 +2715,6 @@ export type EventsModuleOrderBy = | 'UPSERT_AGGREGATE_DESC' | 'TG_UPDATE_AGGREGATES_ASC' | 'TG_UPDATE_AGGREGATES_DESC' - | 'PRUNE_EVENTS_ASC' - | 'PRUNE_EVENTS_DESC' | 'STEPS_REQUIRED_ASC' | 'STEPS_REQUIRED_DESC' | 'LEVEL_ACHIEVED_ASC' @@ -2519,25 +2777,6 @@ export interface MembershipTypesModuleFilter { /** Negates the expression. */ not?: MembershipTypesModuleFilter; } -/** A filter to be used against `UserStateModule` object types. All fields are combined with a logical ‘and.’ */ -export interface UserStateModuleFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `schemaId` field. */ - schemaId?: UUIDFilter; - /** Filter by the object’s `tableId` field. */ - tableId?: UUIDFilter; - /** Filter by the object’s `tableName` field. */ - tableName?: StringFilter; - /** Checks for all expressions in this list. */ - and?: UserStateModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: UserStateModuleFilter[]; - /** Negates the expression. */ - not?: UserStateModuleFilter; -} /** A filter to be used against `SessionSecretsModule` object types. All fields are combined with a logical ‘and.’ */ export interface SessionSecretsModuleFilter { /** Filter by the object’s `id` field. */ @@ -2559,29 +2798,6 @@ export interface SessionSecretsModuleFilter { /** Negates the expression. */ not?: SessionSecretsModuleFilter; } -/** A filter to be used against `ConfigSecretsOrgModule` object types. All fields are combined with a logical ‘and.’ */ -export interface ConfigSecretsOrgModuleFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `schemaId` field. */ - schemaId?: UUIDFilter; - /** Filter by the object’s `tableId` field. */ - tableId?: UUIDFilter; - /** Filter by the object’s `tableName` field. */ - tableName?: StringFilter; - /** Filter by the object’s `apiName` field. */ - apiName?: StringFilter; - /** Filter by the object’s `privateApiName` field. */ - privateApiName?: StringFilter; - /** Checks for all expressions in this list. */ - and?: ConfigSecretsOrgModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: ConfigSecretsOrgModuleFilter[]; - /** Negates the expression. */ - not?: ConfigSecretsOrgModuleFilter; -} /** A filter to be used against `DevicesModule` object types. All fields are combined with a logical ‘and.’ */ export interface DevicesModuleFilter { /** Filter by the object’s `id` field. */ @@ -2628,8 +2844,8 @@ export interface I18NModuleFilter { /** Negates the expression. */ not?: I18NModuleFilter; } -/** A filter to be used against `UserCredentialsModule` object types. All fields are combined with a logical ‘and.’ */ -export interface UserCredentialsModuleFilter { +/** A filter to be used against `UserSettingsModule` object types. All fields are combined with a logical ‘and.’ */ +export interface UserSettingsModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ @@ -2638,66 +2854,62 @@ export interface UserCredentialsModuleFilter { schemaId?: UUIDFilter; /** Filter by the object’s `tableId` field. */ tableId?: UUIDFilter; + /** Filter by the object’s `ownerTableId` field. */ + ownerTableId?: UUIDFilter; /** Filter by the object’s `tableName` field. */ tableName?: StringFilter; /** Filter by the object’s `apiName` field. */ apiName?: StringFilter; - /** Filter by the object’s `privateApiName` field. */ - privateApiName?: StringFilter; /** Checks for all expressions in this list. */ - and?: UserCredentialsModuleFilter[]; + and?: UserSettingsModuleFilter[]; /** Checks for any expressions in this list. */ - or?: UserCredentialsModuleFilter[]; + or?: UserSettingsModuleFilter[]; /** Negates the expression. */ - not?: UserCredentialsModuleFilter; + not?: UserSettingsModuleFilter; } -/** A filter to be used against `UserSettingsModule` object types. All fields are combined with a logical ‘and.’ */ -export interface UserSettingsModuleFilter { +/** A filter to be used against `UserStateModule` object types. All fields are combined with a logical ‘and.’ */ +export interface UserStateModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; + /** Filter by the object’s `entityField` field. */ + entityField?: StringFilter; /** Filter by the object’s `schemaId` field. */ schemaId?: UUIDFilter; /** Filter by the object’s `tableId` field. */ tableId?: UUIDFilter; - /** Filter by the object’s `ownerTableId` field. */ - ownerTableId?: UUIDFilter; /** Filter by the object’s `tableName` field. */ tableName?: StringFilter; - /** Filter by the object’s `apiName` field. */ - apiName?: StringFilter; /** Checks for all expressions in this list. */ - and?: UserSettingsModuleFilter[]; + and?: UserStateModuleFilter[]; /** Checks for any expressions in this list. */ - or?: UserSettingsModuleFilter[]; + or?: UserStateModuleFilter[]; /** Negates the expression. */ - not?: UserSettingsModuleFilter; + not?: UserStateModuleFilter; } -/** 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 `UserCredentialsModule` object types. All fields are combined with a logical ‘and.’ */ +export interface UserCredentialsModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; + /** Filter by the object’s `entityField` field. */ + entityField?: 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 `configDefinitionsTableId` field. */ - configDefinitionsTableId?: UUIDFilter; - /** Filter by the object’s `apiName` field. */ - apiName?: StringFilter; /** Filter by the object’s `privateApiName` field. */ privateApiName?: StringFilter; /** Checks for all expressions in this list. */ - and?: ConfigSecretsUserModuleFilter[]; + and?: UserCredentialsModuleFilter[]; /** Checks for any expressions in this list. */ - or?: ConfigSecretsUserModuleFilter[]; + or?: UserCredentialsModuleFilter[]; /** Negates the expression. */ - not?: ConfigSecretsUserModuleFilter; + not?: UserCredentialsModuleFilter; } /** A filter to be used against `ConnectedAccountsModule` object types. All fields are combined with a logical ‘and.’ */ export interface ConnectedAccountsModuleFilter { @@ -2861,23 +3073,48 @@ export interface WebauthnCredentialsModuleFilter { /** Negates the expression. */ not?: WebauthnCredentialsModuleFilter; } -/** A filter to be used against `CryptoAddressesModule` object types. All fields are combined with a logical ‘and.’ */ -export interface CryptoAddressesModuleFilter { +/** A filter to be used against `ConfigSecretsUserModule` object types. All fields are combined with a logical ‘and.’ */ +export interface ConfigSecretsUserModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; + /** Filter by the object’s `entityField` field. */ + entityField?: StringFilter; /** Filter by the object’s `schemaId` field. */ schemaId?: UUIDFilter; - /** Filter by the object’s `privateSchemaId` field. */ - privateSchemaId?: UUIDFilter; /** Filter by the object’s `tableId` field. */ tableId?: UUIDFilter; - /** Filter by the object’s `ownerTableId` field. */ - ownerTableId?: UUIDFilter; /** Filter by the object’s `tableName` field. */ tableName?: StringFilter; - /** Filter by the object’s `cryptoNetwork` field. */ + /** Filter by the object’s `apiName` field. */ + apiName?: StringFilter; + /** Filter by the object’s `privateApiName` field. */ + privateApiName?: StringFilter; + /** Checks for all expressions in this list. */ + and?: ConfigSecretsUserModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: ConfigSecretsUserModuleFilter[]; + /** Negates the expression. */ + not?: ConfigSecretsUserModuleFilter; +} +/** A filter to be used against `CryptoAddressesModule` object types. All fields are combined with a logical ‘and.’ */ +export interface CryptoAddressesModuleFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `schemaId` field. */ + schemaId?: UUIDFilter; + /** Filter by the object’s `privateSchemaId` field. */ + privateSchemaId?: UUIDFilter; + /** Filter by the object’s `tableId` field. */ + tableId?: UUIDFilter; + /** Filter by the object’s `ownerTableId` field. */ + ownerTableId?: UUIDFilter; + /** Filter by the object’s `tableName` field. */ + tableName?: StringFilter; + /** Filter by the object’s `cryptoNetwork` field. */ cryptoNetwork?: StringFilter; /** Filter by the object’s `apiName` field. */ apiName?: StringFilter; @@ -2923,41 +3160,6 @@ export interface DenormalizedTableFieldFilter { /** Negates the expression. */ not?: DenormalizedTableFieldFilter; } -/** A filter to be used against `IdentityProvidersModule` object types. All fields are combined with a logical ‘and.’ */ -export interface IdentityProvidersModuleFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `schemaId` field. */ - schemaId?: UUIDFilter; - /** Filter by the object’s `privateSchemaId` field. */ - privateSchemaId?: UUIDFilter; - /** Filter by the object’s `publicSchemaName` field. */ - publicSchemaName?: StringFilter; - /** Filter by the object’s `privateSchemaName` field. */ - privateSchemaName?: StringFilter; - /** Filter by the object’s `tableId` field. */ - tableId?: UUIDFilter; - /** Filter by the object’s `tableName` field. */ - tableName?: StringFilter; - /** Filter by the object’s `apiName` field. */ - apiName?: StringFilter; - /** Filter by the object’s `privateApiName` field. */ - privateApiName?: StringFilter; - /** Filter by the object’s `scope` field. */ - scope?: StringFilter; - /** Filter by the object’s `prefix` field. */ - prefix?: StringFilter; - /** Filter by the object’s `entityTableId` field. */ - entityTableId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: IdentityProvidersModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: IdentityProvidersModuleFilter[]; - /** Negates the expression. */ - not?: IdentityProvidersModuleFilter; -} /** A filter to be used against `RlsModule` object types. All fields are combined with a logical ‘and.’ */ export interface RlsModuleFilter { /** Filter by the object’s `id` field. */ @@ -3337,49 +3539,51 @@ export interface JSONListFilter { /** Any array item is greater than or equal to the specified value. */ anyGreaterThanOrEqualTo?: unknown; } -/** A filter to be used against `DatabaseProvisionModule` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseProvisionModuleFilter { +/** A filter to be used against `IdentityProvidersModule` object types. All fields are combined with a logical ‘and.’ */ +export interface IdentityProvidersModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `databaseName` field. */ - databaseName?: StringFilter; - /** Filter by the object’s `ownerId` field. */ - ownerId?: UUIDFilter; - /** Filter by the object’s `subdomain` field. */ - subdomain?: StringFilter; - /** Filter by the object’s `domain` field. */ - domain?: StringFilter; - /** Filter by the object’s `modules` field. */ - modules?: JSONFilter; - /** Filter by the object’s `options` field. */ - options?: JSONFilter; - /** Filter by the object’s `bootstrapUser` field. */ - bootstrapUser?: BooleanFilter; - /** Filter by the object’s `status` field. */ - status?: StringFilter; - /** Filter by the object’s `errorMessage` field. */ - errorMessage?: StringFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `completedAt` field. */ - completedAt?: DatetimeFilter; + /** Filter by the object’s `entityField` field. */ + entityField?: StringFilter; + /** Filter by the object’s `schemaId` field. */ + schemaId?: UUIDFilter; + /** Filter by the object’s `privateSchemaId` field. */ + privateSchemaId?: UUIDFilter; + /** Filter by the object’s `publicSchemaName` field. */ + publicSchemaName?: StringFilter; + /** Filter by the object’s `privateSchemaName` field. */ + privateSchemaName?: StringFilter; + /** Filter by the object’s `tableId` field. */ + tableId?: UUIDFilter; + /** Filter by the object’s `tableName` field. */ + tableName?: StringFilter; + /** Filter by the object’s `apiName` field. */ + apiName?: StringFilter; + /** Filter by the object’s `privateApiName` field. */ + privateApiName?: StringFilter; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Filter by the object’s `entityTableId` field. */ + entityTableId?: UUIDFilter; /** Checks for all expressions in this list. */ - and?: DatabaseProvisionModuleFilter[]; + and?: IdentityProvidersModuleFilter[]; /** Checks for any expressions in this list. */ - or?: DatabaseProvisionModuleFilter[]; + or?: IdentityProvidersModuleFilter[]; /** Negates the expression. */ - not?: DatabaseProvisionModuleFilter; + not?: IdentityProvidersModuleFilter; } -/** A filter to be used against `ConfigSecretsModule` object types. All fields are combined with a logical ‘and.’ */ -export interface ConfigSecretsModuleFilter { +/** A filter to be used against `IntegrationProvidersModule` object types. All fields are combined with a logical ‘and.’ */ +export interface IntegrationProvidersModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; + /** Filter by the object’s `entityField` field. */ + entityField?: StringFilter; /** Filter by the object’s `schemaId` field. */ schemaId?: UUIDFilter; /** Filter by the object’s `privateSchemaId` field. */ @@ -3390,8 +3594,6 @@ export interface ConfigSecretsModuleFilter { privateSchemaName?: StringFilter; /** Filter by the object’s `tableId` field. */ tableId?: UUIDFilter; - /** Filter by the object’s `configDefinitionsTableId` field. */ - configDefinitionsTableId?: UUIDFilter; /** Filter by the object’s `tableName` field. */ tableName?: StringFilter; /** Filter by the object’s `apiName` field. */ @@ -3404,18 +3606,160 @@ export interface ConfigSecretsModuleFilter { prefix?: StringFilter; /** Filter by the object’s `entityTableId` field. */ entityTableId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: IntegrationProvidersModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: IntegrationProvidersModuleFilter[]; + /** Negates the expression. */ + not?: IntegrationProvidersModuleFilter; +} +/** A filter to be used against `DbPoolConfig` object types. All fields are combined with a logical ‘and.’ */ +export interface DbPoolConfigFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `presetSlug` field. */ + presetSlug?: StringFilter; + /** Filter by the object’s `domain` field. */ + domain?: StringFilter; + /** Filter by the object’s `poolOwnerId` field. */ + poolOwnerId?: UUIDFilter; + /** Filter by the object’s `min` field. */ + min?: IntFilter; + /** Filter by the object’s `max` field. */ + max?: IntFilter; + /** Filter by the object’s `warmTtl` field. */ + warmTtl?: IntervalFilter; + /** Filter by the object’s `enabled` field. */ + enabled?: BooleanFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Checks for all expressions in this list. */ + and?: DbPoolConfigFilter[]; + /** Checks for any expressions in this list. */ + or?: DbPoolConfigFilter[]; + /** Negates the expression. */ + not?: DbPoolConfigFilter; +} +/** A filter to be used against `RealtimeModule` object types. All fields are combined with a logical ‘and.’ */ +export interface RealtimeModuleFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `schemaId` field. */ + schemaId?: UUIDFilter; + /** Filter by the object’s `privateSchemaId` field. */ + privateSchemaId?: UUIDFilter; + /** Filter by the object’s `subscriptionsSchemaId` field. */ + subscriptionsSchemaId?: UUIDFilter; + /** Filter by the object’s `changeLogTableId` field. */ + changeLogTableId?: UUIDFilter; + /** Filter by the object’s `listenerNodeTableId` field. */ + listenerNodeTableId?: UUIDFilter; + /** Filter by the object’s `sourceRegistryTableId` field. */ + sourceRegistryTableId?: UUIDFilter; + /** Filter by the object’s `retentionHours` field. */ + retentionHours?: IntFilter; + /** Filter by the object’s `premake` field. */ + premake?: IntFilter; + /** Filter by the object’s `interval` field. */ + interval?: StringFilter; + /** Filter by the object’s `notifyChannel` field. */ + notifyChannel?: StringFilter; + /** Filter by the object’s `apiName` field. */ + apiName?: StringFilter; + /** Filter by the object’s `privateApiName` field. */ + privateApiName?: StringFilter; + /** Checks for all expressions in this list. */ + and?: RealtimeModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: RealtimeModuleFilter[]; + /** Negates the expression. */ + not?: RealtimeModuleFilter; +} +/** A filter to be used against `InfraSecretsModule` object types. All fields are combined with a logical ‘and.’ */ +export interface InfraSecretsModuleFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `schemaId` field. */ + schemaId?: UUIDFilter; + /** Filter by the object’s `privateSchemaId` field. */ + privateSchemaId?: UUIDFilter; + /** Filter by the object’s `publicSchemaName` field. */ + publicSchemaName?: StringFilter; + /** Filter by the object’s `privateSchemaName` field. */ + privateSchemaName?: StringFilter; + /** Filter by the object’s `secretsTableId` field. */ + secretsTableId?: UUIDFilter; + /** Filter by the object’s `secretsTableName` field. */ + secretsTableName?: StringFilter; + /** Filter by the object’s `apiName` field. */ + apiName?: StringFilter; + /** Filter by the object’s `privateApiName` field. */ + privateApiName?: StringFilter; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Filter by the object’s `entityTableId` field. */ + entityTableId?: UUIDFilter; + /** Filter by the object’s `entityField` field. */ + entityField?: StringFilter; + /** Filter by the object’s `policies` field. */ + policies?: JSONFilter; + /** Filter by the object’s `provisions` field. */ + provisions?: JSONFilter; + /** Checks for all expressions in this list. */ + and?: InfraSecretsModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: InfraSecretsModuleFilter[]; + /** Negates the expression. */ + not?: InfraSecretsModuleFilter; +} +/** A filter to be used against `InternalSecretsModule` object types. All fields are combined with a logical ‘and.’ */ +export interface InternalSecretsModuleFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `schemaId` field. */ + schemaId?: UUIDFilter; + /** Filter by the object’s `privateSchemaId` field. */ + privateSchemaId?: UUIDFilter; + /** Filter by the object’s `publicSchemaName` field. */ + publicSchemaName?: StringFilter; + /** Filter by the object’s `privateSchemaName` field. */ + privateSchemaName?: StringFilter; + /** Filter by the object’s `internalSecretsTableId` field. */ + internalSecretsTableId?: UUIDFilter; + /** Filter by the object’s `internalSecretsTableName` field. */ + internalSecretsTableName?: StringFilter; + /** Filter by the object’s `apiName` field. */ + apiName?: StringFilter; + /** Filter by the object’s `privateApiName` field. */ + privateApiName?: StringFilter; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Filter by the object’s `entityTableId` field. */ + entityTableId?: UUIDFilter; + /** Filter by the object’s `entityField` field. */ + entityField?: StringFilter; /** Filter by the object’s `policies` field. */ policies?: JSONFilter; /** Filter by the object’s `provisions` field. */ provisions?: JSONFilter; - /** Filter by the object’s `hasConfig` field. */ - hasConfig?: BooleanFilter; /** Checks for all expressions in this list. */ - and?: ConfigSecretsModuleFilter[]; + and?: InternalSecretsModuleFilter[]; /** Checks for any expressions in this list. */ - or?: ConfigSecretsModuleFilter[]; + or?: InternalSecretsModuleFilter[]; /** Negates the expression. */ - not?: ConfigSecretsModuleFilter; + not?: InternalSecretsModuleFilter; } /** A filter to be used against `GraphModule` object types. All fields are combined with a logical ‘and.’ */ export interface GraphModuleFilter { @@ -3423,6 +3767,8 @@ export interface GraphModuleFilter { id?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; + /** Filter by the object’s `entityField` field. */ + entityField?: StringFilter; /** Filter by the object’s `publicSchemaId` field. */ publicSchemaId?: UUIDFilter; /** Filter by the object’s `privateSchemaId` field. */ @@ -3468,6 +3814,8 @@ export interface MerkleStoreModuleFilter { id?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; + /** Filter by the object’s `entityField` field. */ + entityField?: StringFilter; /** Filter by the object’s `schemaId` field. */ schemaId?: UUIDFilter; /** Filter by the object’s `privateSchemaId` field. */ @@ -3508,6 +3856,10 @@ export interface MerkleStoreModuleFilter { graphModules?: MerkleStoreModuleToManyGraphModuleFilter; /** `graphModules` exist. */ graphModulesExist?: boolean; + /** Filter by the object’s `dbPresetModules` relation. */ + dbPresetModules?: MerkleStoreModuleToManyDbPresetModuleFilter; + /** `dbPresetModules` exist. */ + dbPresetModulesExist?: boolean; } /** A filter to be used against many `GraphModule` object types. All fields are combined with a logical ‘and.’ */ export interface MerkleStoreModuleToManyGraphModuleFilter { @@ -3518,38 +3870,92 @@ export interface MerkleStoreModuleToManyGraphModuleFilter { /** Filters to entities where no related entity matches. */ none?: GraphModuleFilter; } -/** A filter to be used against `RateLimitMetersModule` object types. All fields are combined with a logical ‘and.’ */ -export interface RateLimitMetersModuleFilter { +/** A filter to be used against many `DbPresetModule` object types. All fields are combined with a logical ‘and.’ */ +export interface MerkleStoreModuleToManyDbPresetModuleFilter { + /** Filters to entities where at least one related entity matches. */ + some?: DbPresetModuleFilter; + /** Filters to entities where every related entity matches. */ + every?: DbPresetModuleFilter; + /** Filters to entities where no related entity matches. */ + none?: DbPresetModuleFilter; +} +/** A filter to be used against `DbPresetModule` object types. All fields are combined with a logical ‘and.’ */ +export interface DbPresetModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `schemaId` field. */ - schemaId?: UUIDFilter; + /** Filter by the object’s `publicSchemaId` field. */ + publicSchemaId?: UUIDFilter; /** Filter by the object’s `privateSchemaId` field. */ privateSchemaId?: UUIDFilter; /** Filter by the object’s `publicSchemaName` field. */ publicSchemaName?: StringFilter; /** Filter by the object’s `privateSchemaName` field. */ privateSchemaName?: StringFilter; - /** Filter by the object’s `rateLimitStateTableId` field. */ - rateLimitStateTableId?: UUIDFilter; - /** Filter by the object’s `rateLimitStateTableName` field. */ - rateLimitStateTableName?: StringFilter; - /** Filter by the object’s `rateLimitOverridesTableId` field. */ - rateLimitOverridesTableId?: UUIDFilter; - /** Filter by the object’s `rateLimitOverridesTableName` field. */ - rateLimitOverridesTableName?: StringFilter; - /** Filter by the object’s `rateWindowLimitsTableId` field. */ - rateWindowLimitsTableId?: UUIDFilter; - /** Filter by the object’s `rateWindowLimitsTableName` field. */ - rateWindowLimitsTableName?: StringFilter; - /** Filter by the object’s `checkRateLimitFunction` field. */ - checkRateLimitFunction?: StringFilter; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; /** Filter by the object’s `prefix` field. */ prefix?: StringFilter; - /** Filter by the object’s `defaultPermissions` field. */ - defaultPermissions?: StringListFilter; + /** Filter by the object’s `merkleStoreModuleId` field. */ + merkleStoreModuleId?: UUIDFilter; + /** Filter by the object’s `dbPresetsTableId` field. */ + dbPresetsTableId?: UUIDFilter; + /** Filter by the object’s `storeName` field. */ + storeName?: StringFilter; + /** Filter by the object’s `apiName` field. */ + apiName?: StringFilter; + /** Filter by the object’s `privateApiName` field. */ + privateApiName?: StringFilter; + /** Filter by the object’s `entityTableId` field. */ + entityTableId?: UUIDFilter; + /** Filter by the object’s `policies` field. */ + policies?: JSONFilter; + /** Filter by the object’s `provisions` field. */ + provisions?: JSONFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Checks for all expressions in this list. */ + and?: DbPresetModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: DbPresetModuleFilter[]; + /** Negates the expression. */ + not?: DbPresetModuleFilter; + /** Filter by the object’s `merkleStoreModule` relation. */ + merkleStoreModule?: MerkleStoreModuleFilter; +} +/** A filter to be used against `RateLimitMetersModule` object types. All fields are combined with a logical ‘and.’ */ +export interface RateLimitMetersModuleFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `schemaId` field. */ + schemaId?: UUIDFilter; + /** Filter by the object’s `privateSchemaId` field. */ + privateSchemaId?: UUIDFilter; + /** Filter by the object’s `publicSchemaName` field. */ + publicSchemaName?: StringFilter; + /** Filter by the object’s `privateSchemaName` field. */ + privateSchemaName?: StringFilter; + /** Filter by the object’s `rateLimitStateTableId` field. */ + rateLimitStateTableId?: UUIDFilter; + /** Filter by the object’s `rateLimitStateTableName` field. */ + rateLimitStateTableName?: StringFilter; + /** Filter by the object’s `rateLimitOverridesTableId` field. */ + rateLimitOverridesTableId?: UUIDFilter; + /** Filter by the object’s `rateLimitOverridesTableName` field. */ + rateLimitOverridesTableName?: StringFilter; + /** Filter by the object’s `rateWindowLimitsTableId` field. */ + rateWindowLimitsTableId?: UUIDFilter; + /** Filter by the object’s `rateWindowLimitsTableName` field. */ + rateWindowLimitsTableName?: StringFilter; + /** Filter by the object’s `checkRateLimitFunction` field. */ + checkRateLimitFunction?: StringFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Filter by the object’s `defaultPermissions` field. */ + defaultPermissions?: StringListFilter; /** Filter by the object’s `apiName` field. */ apiName?: StringFilter; /** Filter by the object’s `privateApiName` field. */ @@ -3561,42 +3967,46 @@ export interface RateLimitMetersModuleFilter { /** Negates the expression. */ not?: RateLimitMetersModuleFilter; } -/** A filter to be used against `RealtimeModule` object types. All fields are combined with a logical ‘and.’ */ -export interface RealtimeModuleFilter { +/** A filter to be used against `InfraConfigModule` object types. All fields are combined with a logical ‘and.’ */ +export interface InfraConfigModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; + /** Filter by the object’s `entityField` field. */ + entityField?: StringFilter; /** Filter by the object’s `schemaId` field. */ schemaId?: UUIDFilter; /** Filter by the object’s `privateSchemaId` field. */ privateSchemaId?: UUIDFilter; - /** Filter by the object’s `subscriptionsSchemaId` field. */ - subscriptionsSchemaId?: UUIDFilter; - /** Filter by the object’s `changeLogTableId` field. */ - changeLogTableId?: UUIDFilter; - /** Filter by the object’s `listenerNodeTableId` field. */ - listenerNodeTableId?: UUIDFilter; - /** Filter by the object’s `sourceRegistryTableId` field. */ - sourceRegistryTableId?: UUIDFilter; - /** Filter by the object’s `retentionHours` field. */ - retentionHours?: IntFilter; - /** Filter by the object’s `premake` field. */ - premake?: IntFilter; - /** Filter by the object’s `interval` field. */ - interval?: StringFilter; - /** Filter by the object’s `notifyChannel` field. */ - notifyChannel?: StringFilter; + /** Filter by the object’s `publicSchemaName` field. */ + publicSchemaName?: StringFilter; + /** Filter by the object’s `privateSchemaName` field. */ + privateSchemaName?: StringFilter; + /** Filter by the object’s `configTableId` field. */ + configTableId?: UUIDFilter; + /** Filter by the object’s `configTableName` field. */ + configTableName?: StringFilter; /** Filter by the object’s `apiName` field. */ apiName?: StringFilter; /** Filter by the object’s `privateApiName` field. */ privateApiName?: StringFilter; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Filter by the object’s `entityTableId` field. */ + entityTableId?: UUIDFilter; + /** Filter by the object’s `policies` field. */ + policies?: JSONFilter; + /** Filter by the object’s `provisions` field. */ + provisions?: JSONFilter; /** Checks for all expressions in this list. */ - and?: RealtimeModuleFilter[]; + and?: InfraConfigModuleFilter[]; /** Checks for any expressions in this list. */ - or?: RealtimeModuleFilter[]; + or?: InfraConfigModuleFilter[]; /** Negates the expression. */ - not?: RealtimeModuleFilter; + not?: InfraConfigModuleFilter; } /** A filter to be used against `WebauthnAuthModule` object types. All fields are combined with a logical ‘and.’ */ export interface WebauthnAuthModuleFilter { @@ -3639,12 +4049,94 @@ export interface WebauthnAuthModuleFilter { /** Negates the expression. */ not?: WebauthnAuthModuleFilter; } -/** A filter to be used against `FunctionInvocationModule` object types. All fields are combined with a logical ‘and.’ */ -export interface FunctionInvocationModuleFilter { +/** A filter to be used against `PrincipalAuthModule` object types. All fields are combined with a logical ‘and.’ */ +export interface PrincipalAuthModuleFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `schemaId` field. */ + schemaId?: UUIDFilter; + /** Filter by the object’s `principalsTableId` field. */ + principalsTableId?: UUIDFilter; + /** Filter by the object’s `principalEntitiesTableId` field. */ + principalEntitiesTableId?: UUIDFilter; + /** Filter by the object’s `principalScopeOverridesTableId` field. */ + principalScopeOverridesTableId?: UUIDFilter; + /** Filter by the object’s `usersTableId` field. */ + usersTableId?: UUIDFilter; + /** Filter by the object’s `sessionsTableId` field. */ + sessionsTableId?: UUIDFilter; + /** Filter by the object’s `sessionCredentialsTableId` field. */ + sessionCredentialsTableId?: UUIDFilter; + /** Filter by the object’s `auditsTableId` field. */ + auditsTableId?: UUIDFilter; + /** Filter by the object’s `principalsTableName` field. */ + principalsTableName?: StringFilter; + /** Filter by the object’s `createPrincipalFunction` field. */ + createPrincipalFunction?: StringFilter; + /** Filter by the object’s `deletePrincipalFunction` field. */ + deletePrincipalFunction?: StringFilter; + /** Filter by the object’s `createOrgPrincipalFunction` field. */ + createOrgPrincipalFunction?: StringFilter; + /** Filter by the object’s `deleteOrgPrincipalFunction` field. */ + deleteOrgPrincipalFunction?: StringFilter; + /** Filter by the object’s `createOrgApiKeyFunction` field. */ + createOrgApiKeyFunction?: StringFilter; + /** Filter by the object’s `revokeOrgApiKeyFunction` field. */ + revokeOrgApiKeyFunction?: StringFilter; + /** Filter by the object’s `apiName` field. */ + apiName?: StringFilter; + /** Checks for all expressions in this list. */ + and?: PrincipalAuthModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: PrincipalAuthModuleFilter[]; + /** Negates the expression. */ + not?: PrincipalAuthModuleFilter; +} +/** A filter to be used against `DbPool` object types. All fields are combined with a logical ‘and.’ */ +export interface DbPoolFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `presetSlug` field. */ + presetSlug?: StringFilter; + /** Filter by the object’s `presetCommitId` field. */ + presetCommitId?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `errorMessage` field. */ + errorMessage?: StringFilter; + /** Filter by the object’s `expiresAt` field. */ + expiresAt?: DatetimeFilter; + /** Filter by the object’s `claimedBy` field. */ + claimedBy?: UUIDFilter; + /** Filter by the object’s `claimedAt` field. */ + claimedAt?: DatetimeFilter; + /** Filter by the object’s `bootstrapStatus` field. */ + bootstrapStatus?: StringFilter; + /** Filter by the object’s `bootstrapError` field. */ + bootstrapError?: StringFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Checks for all expressions in this list. */ + and?: DbPoolFilter[]; + /** Checks for any expressions in this list. */ + or?: DbPoolFilter[]; + /** Negates the expression. */ + not?: DbPoolFilter; +} +/** A filter to be used against `FunctionModule` object types. All fields are combined with a logical ‘and.’ */ +export interface FunctionModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; + /** Filter by the object’s `entityField` field. */ + entityField?: StringFilter; /** Filter by the object’s `schemaId` field. */ schemaId?: UUIDFilter; /** Filter by the object’s `privateSchemaId` field. */ @@ -3653,14 +4145,10 @@ export interface FunctionInvocationModuleFilter { publicSchemaName?: StringFilter; /** Filter by the object’s `privateSchemaName` field. */ privateSchemaName?: StringFilter; - /** Filter by the object’s `invocationsTableId` field. */ - invocationsTableId?: UUIDFilter; - /** Filter by the object’s `executionLogsTableId` field. */ - executionLogsTableId?: UUIDFilter; - /** Filter by the object’s `invocationsTableName` field. */ - invocationsTableName?: StringFilter; - /** Filter by the object’s `executionLogsTableName` field. */ - executionLogsTableName?: StringFilter; + /** Filter by the object’s `definitionsTableId` field. */ + definitionsTableId?: UUIDFilter; + /** Filter by the object’s `definitionsTableName` field. */ + definitionsTableName?: StringFilter; /** Filter by the object’s `apiName` field. */ apiName?: StringFilter; /** Filter by the object’s `privateApiName` field. */ @@ -3678,18 +4166,65 @@ export interface FunctionInvocationModuleFilter { /** Filter by the object’s `defaultPermissions` field. */ defaultPermissions?: StringListFilter; /** Checks for all expressions in this list. */ - and?: FunctionInvocationModuleFilter[]; + and?: FunctionModuleFilter[]; /** Checks for any expressions in this list. */ - or?: FunctionInvocationModuleFilter[]; + or?: FunctionModuleFilter[]; /** Negates the expression. */ - not?: FunctionInvocationModuleFilter; + not?: FunctionModuleFilter; } -/** A filter to be used against `FunctionModule` object types. All fields are combined with a logical ‘and.’ */ -export interface FunctionModuleFilter { +/** A filter to be used against `DatabaseProvisionModule` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseProvisionModuleFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseName` field. */ + databaseName?: StringFilter; + /** Filter by the object’s `ownerId` field. */ + ownerId?: UUIDFilter; + /** Filter by the object’s `subdomain` field. */ + subdomain?: StringFilter; + /** Filter by the object’s `domain` field. */ + domain?: StringFilter; + /** Filter by the object’s `modules` field. */ + modules?: JSONFilter; + /** Filter by the object’s `options` field. */ + options?: JSONFilter; + /** Filter by the object’s `bootstrapUser` field. */ + bootstrapUser?: BooleanFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `errorMessage` field. */ + errorMessage?: StringFilter; + /** Filter by the object’s `sourceDatabaseId` field. */ + sourceDatabaseId?: UUIDFilter; + /** Filter by the object’s `bootstrapStatus` field. */ + bootstrapStatus?: StringFilter; + /** Filter by the object’s `bootstrapError` field. */ + bootstrapError?: StringFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `completedAt` field. */ + completedAt?: DatetimeFilter; + /** Filter by the object’s `fulfilledAt` field. */ + fulfilledAt?: DatetimeFilter; + /** Checks for all expressions in this list. */ + and?: DatabaseProvisionModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: DatabaseProvisionModuleFilter[]; + /** Negates the expression. */ + not?: DatabaseProvisionModuleFilter; +} +/** A filter to be used against `FunctionInvocationModule` object types. All fields are combined with a logical ‘and.’ */ +export interface FunctionInvocationModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; + /** Filter by the object’s `entityField` field. */ + entityField?: StringFilter; /** Filter by the object’s `schemaId` field. */ schemaId?: UUIDFilter; /** Filter by the object’s `privateSchemaId` field. */ @@ -3698,14 +4233,14 @@ export interface FunctionModuleFilter { publicSchemaName?: StringFilter; /** Filter by the object’s `privateSchemaName` field. */ privateSchemaName?: StringFilter; - /** Filter by the object’s `definitionsTableId` field. */ - definitionsTableId?: UUIDFilter; - /** Filter by the object’s `secretDefinitionsTableId` field. */ - secretDefinitionsTableId?: UUIDFilter; - /** Filter by the object’s `definitionsTableName` field. */ - definitionsTableName?: StringFilter; - /** Filter by the object’s `secretDefinitionsTableName` field. */ - secretDefinitionsTableName?: StringFilter; + /** Filter by the object’s `invocationsTableId` field. */ + invocationsTableId?: UUIDFilter; + /** Filter by the object’s `executionLogsTableId` field. */ + executionLogsTableId?: UUIDFilter; + /** Filter by the object’s `invocationsTableName` field. */ + invocationsTableName?: StringFilter; + /** Filter by the object’s `executionLogsTableName` field. */ + executionLogsTableName?: StringFilter; /** Filter by the object’s `apiName` field. */ apiName?: StringFilter; /** Filter by the object’s `privateApiName` field. */ @@ -3723,11 +4258,11 @@ export interface FunctionModuleFilter { /** Filter by the object’s `defaultPermissions` field. */ defaultPermissions?: StringListFilter; /** Checks for all expressions in this list. */ - and?: FunctionModuleFilter[]; + and?: FunctionInvocationModuleFilter[]; /** Checks for any expressions in this list. */ - or?: FunctionModuleFilter[]; + or?: FunctionInvocationModuleFilter[]; /** Negates the expression. */ - not?: FunctionModuleFilter; + not?: FunctionInvocationModuleFilter; } /** A filter to be used against `InvitesModule` object types. All fields are combined with a logical ‘and.’ */ export interface InvitesModuleFilter { @@ -3735,6 +4270,8 @@ export interface InvitesModuleFilter { id?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; + /** Filter by the object’s `entityField` field. */ + entityField?: StringFilter; /** Filter by the object’s `schemaId` field. */ schemaId?: UUIDFilter; /** Filter by the object’s `privateSchemaId` field. */ @@ -3774,50 +4311,103 @@ export interface InvitesModuleFilter { /** Negates the expression. */ not?: InvitesModuleFilter; } -/** A filter to be used against `PrincipalAuthModule` object types. All fields are combined with a logical ‘and.’ */ -export interface PrincipalAuthModuleFilter { +/** A filter to be used against `NamespaceModule` object types. All fields are combined with a logical ‘and.’ */ +export interface NamespaceModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; + /** Filter by the object’s `entityField` field. */ + entityField?: StringFilter; /** Filter by the object’s `schemaId` field. */ schemaId?: UUIDFilter; - /** Filter by the object’s `principalsTableId` field. */ - principalsTableId?: UUIDFilter; - /** Filter by the object’s `principalEntitiesTableId` field. */ - principalEntitiesTableId?: UUIDFilter; - /** Filter by the object’s `principalScopeOverridesTableId` field. */ - principalScopeOverridesTableId?: UUIDFilter; - /** Filter by the object’s `usersTableId` field. */ - usersTableId?: UUIDFilter; - /** Filter by the object’s `sessionsTableId` field. */ - sessionsTableId?: UUIDFilter; - /** Filter by the object’s `sessionCredentialsTableId` field. */ - sessionCredentialsTableId?: UUIDFilter; - /** Filter by the object’s `auditsTableId` field. */ - auditsTableId?: UUIDFilter; - /** Filter by the object’s `principalsTableName` field. */ - principalsTableName?: StringFilter; - /** Filter by the object’s `createPrincipalFunction` field. */ - createPrincipalFunction?: StringFilter; - /** Filter by the object’s `deletePrincipalFunction` field. */ - deletePrincipalFunction?: StringFilter; - /** Filter by the object’s `createOrgPrincipalFunction` field. */ - createOrgPrincipalFunction?: StringFilter; - /** Filter by the object’s `deleteOrgPrincipalFunction` field. */ - deleteOrgPrincipalFunction?: StringFilter; - /** Filter by the object’s `createOrgApiKeyFunction` field. */ - createOrgApiKeyFunction?: StringFilter; - /** Filter by the object’s `revokeOrgApiKeyFunction` field. */ - revokeOrgApiKeyFunction?: StringFilter; + /** Filter by the object’s `privateSchemaId` field. */ + privateSchemaId?: UUIDFilter; + /** Filter by the object’s `publicSchemaName` field. */ + publicSchemaName?: StringFilter; + /** Filter by the object’s `privateSchemaName` field. */ + privateSchemaName?: StringFilter; + /** Filter by the object’s `namespacesTableId` field. */ + namespacesTableId?: UUIDFilter; + /** Filter by the object’s `namespaceEventsTableId` field. */ + namespaceEventsTableId?: UUIDFilter; + /** Filter by the object’s `namespacesTableName` field. */ + namespacesTableName?: StringFilter; + /** Filter by the object’s `namespaceEventsTableName` field. */ + namespaceEventsTableName?: StringFilter; /** Filter by the object’s `apiName` field. */ apiName?: StringFilter; + /** Filter by the object’s `privateApiName` field. */ + privateApiName?: StringFilter; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Filter by the object’s `entityTableId` field. */ + entityTableId?: UUIDFilter; + /** Filter by the object’s `policies` field. */ + policies?: JSONFilter; + /** Filter by the object’s `provisions` field. */ + provisions?: JSONFilter; + /** Filter by the object’s `defaultPermissions` field. */ + defaultPermissions?: StringListFilter; /** Checks for all expressions in this list. */ - and?: PrincipalAuthModuleFilter[]; + and?: NamespaceModuleFilter[]; /** Checks for any expressions in this list. */ - or?: PrincipalAuthModuleFilter[]; + or?: NamespaceModuleFilter[]; /** Negates the expression. */ - not?: PrincipalAuthModuleFilter; + not?: NamespaceModuleFilter; +} +/** A filter to be used against `PlansModule` object types. All fields are combined with a logical ‘and.’ */ +export interface PlansModuleFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `schemaId` field. */ + schemaId?: UUIDFilter; + /** Filter by the object’s `privateSchemaId` field. */ + privateSchemaId?: UUIDFilter; + /** Filter by the object’s `publicSchemaName` field. */ + publicSchemaName?: StringFilter; + /** Filter by the object’s `privateSchemaName` field. */ + privateSchemaName?: StringFilter; + /** Filter by the object’s `plansTableId` field. */ + plansTableId?: UUIDFilter; + /** Filter by the object’s `plansTableName` field. */ + plansTableName?: StringFilter; + /** Filter by the object’s `planLimitsTableId` field. */ + planLimitsTableId?: UUIDFilter; + /** Filter by the object’s `planLimitsTableName` field. */ + planLimitsTableName?: StringFilter; + /** Filter by the object’s `planPricingTableId` field. */ + planPricingTableId?: UUIDFilter; + /** Filter by the object’s `planOverridesTableId` field. */ + planOverridesTableId?: UUIDFilter; + /** Filter by the object’s `planMeterLimitsTableId` field. */ + planMeterLimitsTableId?: UUIDFilter; + /** Filter by the object’s `planCapsTableId` field. */ + planCapsTableId?: UUIDFilter; + /** Filter by the object’s `applyPlanFunction` field. */ + applyPlanFunction?: StringFilter; + /** Filter by the object’s `applyPlanAggregateFunction` field. */ + applyPlanAggregateFunction?: StringFilter; + /** Filter by the object’s `applyBillingPlanFunction` field. */ + applyBillingPlanFunction?: StringFilter; + /** Filter by the object’s `applyPlanCapsFunction` field. */ + applyPlanCapsFunction?: StringFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Filter by the object’s `apiName` field. */ + apiName?: StringFilter; + /** Filter by the object’s `privateApiName` field. */ + privateApiName?: StringFilter; + /** Checks for all expressions in this list. */ + and?: PlansModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: PlansModuleFilter[]; + /** Negates the expression. */ + not?: PlansModuleFilter; } /** A filter to be used against `ComputeLogModule` object types. All fields are combined with a logical ‘and.’ */ export interface ComputeLogModuleFilter { @@ -3825,6 +4415,8 @@ export interface ComputeLogModuleFilter { id?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; + /** Filter by the object’s `entityField` field. */ + entityField?: StringFilter; /** Filter by the object’s `schemaId` field. */ schemaId?: UUIDFilter; /** Filter by the object’s `privateSchemaId` field. */ @@ -3872,6 +4464,8 @@ export interface InferenceLogModuleFilter { id?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; + /** Filter by the object’s `entityField` field. */ + entityField?: StringFilter; /** Filter by the object’s `schemaId` field. */ schemaId?: UUIDFilter; /** Filter by the object’s `privateSchemaId` field. */ @@ -3913,110 +4507,14 @@ export interface InferenceLogModuleFilter { /** Negates the expression. */ not?: InferenceLogModuleFilter; } -/** A filter to be used against `NamespaceModule` object types. All fields are combined with a logical ‘and.’ */ -export interface NamespaceModuleFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `schemaId` field. */ - schemaId?: UUIDFilter; - /** Filter by the object’s `privateSchemaId` field. */ - privateSchemaId?: UUIDFilter; - /** Filter by the object’s `publicSchemaName` field. */ - publicSchemaName?: StringFilter; - /** Filter by the object’s `privateSchemaName` field. */ - privateSchemaName?: StringFilter; - /** Filter by the object’s `namespacesTableId` field. */ - namespacesTableId?: UUIDFilter; - /** Filter by the object’s `namespaceEventsTableId` field. */ - namespaceEventsTableId?: UUIDFilter; - /** Filter by the object’s `namespacesTableName` field. */ - namespacesTableName?: StringFilter; - /** Filter by the object’s `namespaceEventsTableName` field. */ - namespaceEventsTableName?: StringFilter; - /** Filter by the object’s `apiName` field. */ - apiName?: StringFilter; - /** Filter by the object’s `privateApiName` field. */ - privateApiName?: StringFilter; - /** Filter by the object’s `scope` field. */ - scope?: StringFilter; - /** Filter by the object’s `prefix` field. */ - prefix?: StringFilter; - /** Filter by the object’s `entityTableId` field. */ - entityTableId?: UUIDFilter; - /** Filter by the object’s `platformNamespacesTableId` field. */ - platformNamespacesTableId?: UUIDFilter; - /** Filter by the object’s `policies` field. */ - policies?: JSONFilter; - /** Filter by the object’s `provisions` field. */ - provisions?: JSONFilter; - /** Filter by the object’s `defaultPermissions` field. */ - defaultPermissions?: StringListFilter; - /** Checks for all expressions in this list. */ - and?: NamespaceModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: NamespaceModuleFilter[]; - /** Negates the expression. */ - not?: NamespaceModuleFilter; -} -/** A filter to be used against `ResourceModule` object types. All fields are combined with a logical ‘and.’ */ -export interface ResourceModuleFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `schemaId` field. */ - schemaId?: UUIDFilter; - /** Filter by the object’s `privateSchemaId` field. */ - privateSchemaId?: UUIDFilter; - /** Filter by the object’s `publicSchemaName` field. */ - publicSchemaName?: StringFilter; - /** Filter by the object’s `privateSchemaName` field. */ - privateSchemaName?: StringFilter; - /** Filter by the object’s `resourcesTableId` field. */ - resourcesTableId?: UUIDFilter; - /** Filter by the object’s `resourceEventsTableId` field. */ - resourceEventsTableId?: UUIDFilter; - /** Filter by the object’s `resourcesTableName` field. */ - resourcesTableName?: StringFilter; - /** Filter by the object’s `resourceEventsTableName` field. */ - resourceEventsTableName?: StringFilter; - /** Filter by the object’s `apiName` field. */ - apiName?: StringFilter; - /** Filter by the object’s `privateApiName` field. */ - privateApiName?: StringFilter; - /** Filter by the object’s `scope` field. */ - scope?: StringFilter; - /** Filter by the object’s `prefix` field. */ - prefix?: StringFilter; - /** Filter by the object’s `entityTableId` field. */ - entityTableId?: UUIDFilter; - /** Filter by the object’s `namespaceModuleId` field. */ - namespaceModuleId?: UUIDFilter; - /** Filter by the object’s `policies` field. */ - policies?: JSONFilter; - /** Filter by the object’s `provisions` field. */ - provisions?: JSONFilter; - /** Filter by the object’s `defaultPermissions` field. */ - defaultPermissions?: StringListFilter; - /** Checks for all expressions in this list. */ - and?: ResourceModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: ResourceModuleFilter[]; - /** Negates the expression. */ - not?: ResourceModuleFilter; - /** Filter by the object’s `namespaceModule` relation. */ - namespaceModule?: NamespaceModuleFilter; - /** A related `namespaceModule` exists. */ - namespaceModuleExists?: boolean; -} /** A filter to be used against `StorageLogModule` object types. All fields are combined with a logical ‘and.’ */ export interface StorageLogModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; + /** Filter by the object’s `entityField` field. */ + entityField?: StringFilter; /** Filter by the object’s `schemaId` field. */ schemaId?: UUIDFilter; /** Filter by the object’s `privateSchemaId` field. */ @@ -4064,6 +4562,8 @@ export interface TransferLogModuleFilter { id?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; + /** Filter by the object’s `entityField` field. */ + entityField?: StringFilter; /** Filter by the object’s `schemaId` field. */ schemaId?: UUIDFilter; /** Filter by the object’s `privateSchemaId` field. */ @@ -4105,12 +4605,67 @@ export interface TransferLogModuleFilter { /** Negates the expression. */ not?: TransferLogModuleFilter; } +/** A filter to be used against `BillingProviderModule` object types. All fields are combined with a logical ‘and.’ */ +export interface BillingProviderModuleFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `schemaId` field. */ + schemaId?: UUIDFilter; + /** Filter by the object’s `privateSchemaId` field. */ + privateSchemaId?: UUIDFilter; + /** Filter by the object’s `provider` field. */ + provider?: StringFilter; + /** Filter by the object’s `productsTableId` field. */ + productsTableId?: UUIDFilter; + /** Filter by the object’s `pricesTableId` field. */ + pricesTableId?: UUIDFilter; + /** Filter by the object’s `subscriptionsTableId` field. */ + subscriptionsTableId?: UUIDFilter; + /** Filter by the object’s `billingCustomersTableId` field. */ + billingCustomersTableId?: UUIDFilter; + /** Filter by the object’s `billingCustomersTableName` field. */ + billingCustomersTableName?: StringFilter; + /** Filter by the object’s `billingProductsTableId` field. */ + billingProductsTableId?: UUIDFilter; + /** Filter by the object’s `billingProductsTableName` field. */ + billingProductsTableName?: StringFilter; + /** Filter by the object’s `billingPricesTableId` field. */ + billingPricesTableId?: UUIDFilter; + /** Filter by the object’s `billingPricesTableName` field. */ + billingPricesTableName?: StringFilter; + /** Filter by the object’s `billingSubscriptionsTableId` field. */ + billingSubscriptionsTableId?: UUIDFilter; + /** Filter by the object’s `billingSubscriptionsTableName` field. */ + billingSubscriptionsTableName?: StringFilter; + /** Filter by the object’s `billingWebhookEventsTableId` field. */ + billingWebhookEventsTableId?: UUIDFilter; + /** Filter by the object’s `billingWebhookEventsTableName` field. */ + billingWebhookEventsTableName?: StringFilter; + /** Filter by the object’s `processBillingEventFunction` field. */ + processBillingEventFunction?: StringFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Filter by the object’s `apiName` field. */ + apiName?: StringFilter; + /** Filter by the object’s `privateApiName` field. */ + privateApiName?: StringFilter; + /** Checks for all expressions in this list. */ + and?: BillingProviderModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: BillingProviderModuleFilter[]; + /** Negates the expression. */ + not?: BillingProviderModuleFilter; +} /** A filter to be used against `FunctionDeploymentModule` object types. All fields are combined with a logical ‘and.’ */ export interface FunctionDeploymentModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; + /** Filter by the object’s `entityField` field. */ + entityField?: StringFilter; /** Filter by the object’s `schemaId` field. */ schemaId?: UUIDFilter; /** Filter by the object’s `privateSchemaId` field. */ @@ -4162,12 +4717,14 @@ export interface FunctionDeploymentModuleFilter { /** A related `namespaceModule` exists. */ namespaceModuleExists?: boolean; } -/** A filter to be used against `PlansModule` object types. All fields are combined with a logical ‘and.’ */ -export interface PlansModuleFilter { +/** A filter to be used against `PermissionsModule` object types. All fields are combined with a logical ‘and.’ */ +export interface PermissionsModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; + /** Filter by the object’s `entityField` field. */ + entityField?: StringFilter; /** Filter by the object’s `schemaId` field. */ schemaId?: UUIDFilter; /** Filter by the object’s `privateSchemaId` field. */ @@ -4176,148 +4733,42 @@ export interface PlansModuleFilter { publicSchemaName?: StringFilter; /** Filter by the object’s `privateSchemaName` field. */ privateSchemaName?: StringFilter; - /** Filter by the object’s `plansTableId` field. */ - plansTableId?: UUIDFilter; - /** Filter by the object’s `plansTableName` field. */ - plansTableName?: StringFilter; - /** Filter by the object’s `planLimitsTableId` field. */ - planLimitsTableId?: UUIDFilter; - /** Filter by the object’s `planLimitsTableName` field. */ - planLimitsTableName?: StringFilter; - /** Filter by the object’s `planPricingTableId` field. */ - planPricingTableId?: UUIDFilter; - /** Filter by the object’s `planOverridesTableId` field. */ - planOverridesTableId?: UUIDFilter; - /** Filter by the object’s `planMeterLimitsTableId` field. */ - planMeterLimitsTableId?: UUIDFilter; - /** Filter by the object’s `planCapsTableId` field. */ - planCapsTableId?: UUIDFilter; - /** Filter by the object’s `applyPlanFunction` field. */ - applyPlanFunction?: StringFilter; - /** Filter by the object’s `applyPlanAggregateFunction` field. */ - applyPlanAggregateFunction?: StringFilter; - /** Filter by the object’s `applyBillingPlanFunction` field. */ - applyBillingPlanFunction?: StringFilter; - /** Filter by the object’s `applyPlanCapsFunction` field. */ - applyPlanCapsFunction?: StringFilter; - /** Filter by the object’s `prefix` field. */ - prefix?: StringFilter; - /** Filter by the object’s `apiName` field. */ - apiName?: StringFilter; - /** Filter by the object’s `privateApiName` field. */ - privateApiName?: StringFilter; - /** Checks for all expressions in this list. */ - and?: PlansModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: PlansModuleFilter[]; - /** Negates the expression. */ - not?: PlansModuleFilter; -} -/** A filter to be used against `BillingProviderModule` object types. All fields are combined with a logical ‘and.’ */ -export interface BillingProviderModuleFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `schemaId` field. */ - schemaId?: UUIDFilter; - /** Filter by the object’s `privateSchemaId` field. */ - privateSchemaId?: UUIDFilter; - /** Filter by the object’s `provider` field. */ - provider?: StringFilter; - /** Filter by the object’s `productsTableId` field. */ - productsTableId?: UUIDFilter; - /** Filter by the object’s `pricesTableId` field. */ - pricesTableId?: UUIDFilter; - /** Filter by the object’s `subscriptionsTableId` field. */ - subscriptionsTableId?: UUIDFilter; - /** Filter by the object’s `billingCustomersTableId` field. */ - billingCustomersTableId?: UUIDFilter; - /** Filter by the object’s `billingCustomersTableName` field. */ - billingCustomersTableName?: StringFilter; - /** Filter by the object’s `billingProductsTableId` field. */ - billingProductsTableId?: UUIDFilter; - /** Filter by the object’s `billingProductsTableName` field. */ - billingProductsTableName?: StringFilter; - /** Filter by the object’s `billingPricesTableId` field. */ - billingPricesTableId?: UUIDFilter; - /** Filter by the object’s `billingPricesTableName` field. */ - billingPricesTableName?: StringFilter; - /** Filter by the object’s `billingSubscriptionsTableId` field. */ - billingSubscriptionsTableId?: UUIDFilter; - /** Filter by the object’s `billingSubscriptionsTableName` field. */ - billingSubscriptionsTableName?: StringFilter; - /** Filter by the object’s `billingWebhookEventsTableId` field. */ - billingWebhookEventsTableId?: UUIDFilter; - /** Filter by the object’s `billingWebhookEventsTableName` field. */ - billingWebhookEventsTableName?: StringFilter; - /** Filter by the object’s `processBillingEventFunction` field. */ - processBillingEventFunction?: StringFilter; - /** Filter by the object’s `prefix` field. */ - prefix?: StringFilter; - /** Filter by the object’s `apiName` field. */ - apiName?: StringFilter; - /** Filter by the object’s `privateApiName` field. */ - privateApiName?: StringFilter; - /** Checks for all expressions in this list. */ - and?: BillingProviderModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: BillingProviderModuleFilter[]; - /** Negates the expression. */ - not?: BillingProviderModuleFilter; -} -/** A filter to be used against `DbUsageModule` object types. All fields are combined with a logical ‘and.’ */ -export interface DbUsageModuleFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `schemaId` field. */ - schemaId?: UUIDFilter; - /** Filter by the object’s `privateSchemaId` field. */ - privateSchemaId?: UUIDFilter; - /** Filter by the object’s `publicSchemaName` field. */ - publicSchemaName?: StringFilter; - /** Filter by the object’s `privateSchemaName` field. */ - privateSchemaName?: StringFilter; - /** Filter by the object’s `tableStatsLogTableId` field. */ - tableStatsLogTableId?: UUIDFilter; - /** Filter by the object’s `tableStatsLogTableName` field. */ - tableStatsLogTableName?: StringFilter; - /** Filter by the object’s `tableStatsDailyTableId` field. */ - tableStatsDailyTableId?: UUIDFilter; - /** Filter by the object’s `tableStatsDailyTableName` field. */ - tableStatsDailyTableName?: StringFilter; - /** Filter by the object’s `queryStatsLogTableId` field. */ - queryStatsLogTableId?: UUIDFilter; - /** Filter by the object’s `queryStatsLogTableName` field. */ - queryStatsLogTableName?: StringFilter; - /** Filter by the object’s `queryStatsDailyTableId` field. */ - queryStatsDailyTableId?: UUIDFilter; - /** Filter by the object’s `queryStatsDailyTableName` field. */ - queryStatsDailyTableName?: StringFilter; - /** Filter by the object’s `interval` field. */ - interval?: StringFilter; - /** Filter by the object’s `retention` field. */ - retention?: StringFilter; - /** Filter by the object’s `premake` field. */ - premake?: IntFilter; + /** Filter by the object’s `tableId` field. */ + tableId?: UUIDFilter; + /** Filter by the object’s `tableName` field. */ + tableName?: StringFilter; + /** Filter by the object’s `defaultTableId` field. */ + defaultTableId?: UUIDFilter; + /** Filter by the object’s `defaultTableName` field. */ + defaultTableName?: StringFilter; + /** Filter by the object’s `bitlen` field. */ + bitlen?: IntFilter; /** Filter by the object’s `scope` field. */ scope?: StringFilter; /** Filter by the object’s `prefix` field. */ prefix?: StringFilter; - /** Filter by the object’s `defaultPermissions` field. */ - defaultPermissions?: StringListFilter; + /** Filter by the object’s `entityTableId` field. */ + entityTableId?: UUIDFilter; + /** Filter by the object’s `actorTableId` field. */ + actorTableId?: UUIDFilter; + /** Filter by the object’s `getPaddedMask` field. */ + getPaddedMask?: StringFilter; + /** Filter by the object’s `getMask` field. */ + getMask?: StringFilter; + /** Filter by the object’s `getByMask` field. */ + getByMask?: StringFilter; + /** Filter by the object’s `getMaskByName` field. */ + getMaskByName?: StringFilter; /** Filter by the object’s `apiName` field. */ apiName?: StringFilter; /** Filter by the object’s `privateApiName` field. */ privateApiName?: StringFilter; /** Checks for all expressions in this list. */ - and?: DbUsageModuleFilter[]; + and?: PermissionsModuleFilter[]; /** Checks for any expressions in this list. */ - or?: DbUsageModuleFilter[]; + or?: PermissionsModuleFilter[]; /** Negates the expression. */ - not?: DbUsageModuleFilter; + not?: PermissionsModuleFilter; } /** A filter to be used against `GraphExecutionModule` object types. All fields are combined with a logical ‘and.’ */ export interface GraphExecutionModuleFilter { @@ -4325,6 +4776,8 @@ export interface GraphExecutionModuleFilter { id?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; + /** Filter by the object’s `entityField` field. */ + entityField?: StringFilter; /** Filter by the object’s `schemaId` field. */ schemaId?: UUIDFilter; /** Filter by the object’s `privateSchemaId` field. */ @@ -4380,6 +4833,8 @@ export interface HierarchyModuleFilter { id?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; + /** Filter by the object’s `entityField` field. */ + entityField?: StringFilter; /** Filter by the object’s `schemaId` field. */ schemaId?: UUIDFilter; /** Filter by the object’s `privateSchemaId` field. */ @@ -4427,63 +4882,14 @@ export interface HierarchyModuleFilter { /** Negates the expression. */ not?: HierarchyModuleFilter; } -/** A filter to be used against `PermissionsModule` object types. All fields are combined with a logical ‘and.’ */ -export interface PermissionsModuleFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `schemaId` field. */ - schemaId?: UUIDFilter; - /** Filter by the object’s `privateSchemaId` field. */ - privateSchemaId?: UUIDFilter; - /** Filter by the object’s `publicSchemaName` field. */ - publicSchemaName?: StringFilter; - /** Filter by the object’s `privateSchemaName` field. */ - privateSchemaName?: StringFilter; - /** Filter by the object’s `tableId` field. */ - tableId?: UUIDFilter; - /** Filter by the object’s `tableName` field. */ - tableName?: StringFilter; - /** Filter by the object’s `defaultTableId` field. */ - defaultTableId?: UUIDFilter; - /** Filter by the object’s `defaultTableName` field. */ - defaultTableName?: StringFilter; - /** Filter by the object’s `bitlen` field. */ - bitlen?: IntFilter; - /** Filter by the object’s `scope` field. */ - scope?: StringFilter; - /** Filter by the object’s `prefix` field. */ - prefix?: StringFilter; - /** Filter by the object’s `entityTableId` field. */ - entityTableId?: UUIDFilter; - /** Filter by the object’s `actorTableId` field. */ - actorTableId?: UUIDFilter; - /** Filter by the object’s `getPaddedMask` field. */ - getPaddedMask?: StringFilter; - /** Filter by the object’s `getMask` field. */ - getMask?: StringFilter; - /** Filter by the object’s `getByMask` field. */ - getByMask?: StringFilter; - /** Filter by the object’s `getMaskByName` field. */ - getMaskByName?: StringFilter; - /** Filter by the object’s `apiName` field. */ - apiName?: StringFilter; - /** Filter by the object’s `privateApiName` field. */ - privateApiName?: StringFilter; - /** Checks for all expressions in this list. */ - and?: PermissionsModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: PermissionsModuleFilter[]; - /** Negates the expression. */ - not?: PermissionsModuleFilter; -} /** A filter to be used against `NotificationsModule` object types. All fields are combined with a logical ‘and.’ */ export interface NotificationsModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; + /** Filter by the object’s `entityField` field. */ + entityField?: StringFilter; /** Filter by the object’s `schemaId` field. */ schemaId?: UUIDFilter; /** Filter by the object’s `privateSchemaId` field. */ @@ -4533,12 +4939,71 @@ export interface NotificationsModuleFilter { /** Negates the expression. */ not?: NotificationsModuleFilter; } +/** A filter to be used against `RelationProvision` object types. All fields are combined with a logical ‘and.’ */ +export interface RelationProvisionFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `relationType` field. */ + relationType?: StringFilter; + /** Filter by the object’s `sourceTableId` field. */ + sourceTableId?: UUIDFilter; + /** Filter by the object’s `targetTableId` field. */ + targetTableId?: UUIDFilter; + /** Filter by the object’s `fieldName` field. */ + fieldName?: StringFilter; + /** Filter by the object’s `deleteAction` field. */ + deleteAction?: StringFilter; + /** Filter by the object’s `isRequired` field. */ + isRequired?: BooleanFilter; + /** Filter by the object’s `apiRequired` field. */ + apiRequired?: BooleanFilter; + /** Filter by the object’s `junctionTableId` field. */ + junctionTableId?: UUIDFilter; + /** Filter by the object’s `junctionTableName` field. */ + junctionTableName?: StringFilter; + /** Filter by the object’s `junctionSchemaId` field. */ + junctionSchemaId?: UUIDFilter; + /** Filter by the object’s `sourceFieldName` field. */ + sourceFieldName?: StringFilter; + /** Filter by the object’s `targetFieldName` field. */ + targetFieldName?: StringFilter; + /** Filter by the object’s `useCompositeKey` field. */ + useCompositeKey?: BooleanFilter; + /** Filter by the object’s `createIndex` field. */ + createIndex?: BooleanFilter; + /** Filter by the object’s `exposeInApi` field. */ + exposeInApi?: BooleanFilter; + /** Filter by the object’s `nodes` field. */ + nodes?: JSONFilter; + /** Filter by the object’s `grants` field. */ + grants?: JSONFilter; + /** Filter by the object’s `policies` field. */ + policies?: JSONFilter; + /** Filter by the object’s `outFieldId` field. */ + outFieldId?: UUIDFilter; + /** Filter by the object’s `outJunctionTableId` field. */ + outJunctionTableId?: UUIDFilter; + /** Filter by the object’s `outSourceFieldId` field. */ + outSourceFieldId?: UUIDFilter; + /** Filter by the object’s `outTargetFieldId` field. */ + outTargetFieldId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: RelationProvisionFilter[]; + /** Checks for any expressions in this list. */ + or?: RelationProvisionFilter[]; + /** Negates the expression. */ + not?: RelationProvisionFilter; +} /** A filter to be used against `ProfilesModule` object types. All fields are combined with a logical ‘and.’ */ export interface ProfilesModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; + /** Filter by the object’s `entityField` field. */ + entityField?: StringFilter; /** Filter by the object’s `schemaId` field. */ schemaId?: UUIDFilter; /** Filter by the object’s `privateSchemaId` field. */ @@ -4634,6 +5099,10 @@ export interface BillingModuleFilter { meterDefaultsTableName?: StringFilter; /** Filter by the object’s `recordUsageFunction` field. */ recordUsageFunction?: StringFilter; + /** Filter by the object’s `sweepExpiredSubscriptionsFunction` field. */ + sweepExpiredSubscriptionsFunction?: StringFilter; + /** Filter by the object’s `rollupUsageSummaryFunction` field. */ + rollupUsageSummaryFunction?: StringFilter; /** Filter by the object’s `prefix` field. */ prefix?: StringFilter; /** Filter by the object’s `defaultPermissions` field. */ @@ -4649,62 +5118,70 @@ export interface BillingModuleFilter { /** Negates the expression. */ not?: BillingModuleFilter; } -/** A filter to be used against `RelationProvision` object types. All fields are combined with a logical ‘and.’ */ -export interface RelationProvisionFilter { +/** A filter to be used against `ResourceModule` object types. All fields are combined with a logical ‘and.’ */ +export interface ResourceModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `relationType` field. */ - relationType?: StringFilter; - /** Filter by the object’s `sourceTableId` field. */ - sourceTableId?: UUIDFilter; - /** Filter by the object’s `targetTableId` field. */ - targetTableId?: UUIDFilter; - /** Filter by the object’s `fieldName` field. */ - fieldName?: StringFilter; - /** Filter by the object’s `deleteAction` field. */ - deleteAction?: StringFilter; - /** Filter by the object’s `isRequired` field. */ - isRequired?: BooleanFilter; - /** Filter by the object’s `apiRequired` field. */ - apiRequired?: BooleanFilter; - /** Filter by the object’s `junctionTableId` field. */ - junctionTableId?: UUIDFilter; - /** Filter by the object’s `junctionTableName` field. */ - junctionTableName?: StringFilter; - /** Filter by the object’s `junctionSchemaId` field. */ - junctionSchemaId?: UUIDFilter; - /** Filter by the object’s `sourceFieldName` field. */ - sourceFieldName?: StringFilter; - /** Filter by the object’s `targetFieldName` field. */ - targetFieldName?: StringFilter; - /** Filter by the object’s `useCompositeKey` field. */ - useCompositeKey?: BooleanFilter; - /** Filter by the object’s `createIndex` field. */ - createIndex?: BooleanFilter; - /** Filter by the object’s `exposeInApi` field. */ - exposeInApi?: BooleanFilter; - /** Filter by the object’s `nodes` field. */ - nodes?: JSONFilter; - /** Filter by the object’s `grants` field. */ - grants?: JSONFilter; + /** Filter by the object’s `entityField` field. */ + entityField?: StringFilter; + /** Filter by the object’s `schemaId` field. */ + schemaId?: UUIDFilter; + /** Filter by the object’s `privateSchemaId` field. */ + privateSchemaId?: UUIDFilter; + /** Filter by the object’s `publicSchemaName` field. */ + publicSchemaName?: StringFilter; + /** Filter by the object’s `privateSchemaName` field. */ + privateSchemaName?: StringFilter; + /** Filter by the object’s `resourcesTableId` field. */ + resourcesTableId?: UUIDFilter; + /** Filter by the object’s `resourceEventsTableId` field. */ + resourceEventsTableId?: UUIDFilter; + /** Filter by the object’s `resourceStatusChecksTableId` field. */ + resourceStatusChecksTableId?: UUIDFilter; + /** Filter by the object’s `resourceDefinitionsTableId` field. */ + resourceDefinitionsTableId?: UUIDFilter; + /** Filter by the object’s `resourcesTableName` field. */ + resourcesTableName?: StringFilter; + /** Filter by the object’s `resourceEventsTableName` field. */ + resourceEventsTableName?: StringFilter; + /** Filter by the object’s `resourceStatusChecksTableName` field. */ + resourceStatusChecksTableName?: StringFilter; + /** Filter by the object’s `resourceDefinitionsTableName` field. */ + resourceDefinitionsTableName?: StringFilter; + /** Filter by the object’s `resolvedRequirementsViewName` field. */ + resolvedRequirementsViewName?: StringFilter; + /** Filter by the object’s `requirementsStateViewName` field. */ + requirementsStateViewName?: StringFilter; + /** Filter by the object’s `apiName` field. */ + apiName?: StringFilter; + /** Filter by the object’s `privateApiName` field. */ + privateApiName?: StringFilter; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Filter by the object’s `entityTableId` field. */ + entityTableId?: UUIDFilter; + /** Filter by the object’s `namespaceModuleId` field. */ + namespaceModuleId?: UUIDFilter; /** Filter by the object’s `policies` field. */ policies?: JSONFilter; - /** Filter by the object’s `outFieldId` field. */ - outFieldId?: UUIDFilter; - /** Filter by the object’s `outJunctionTableId` field. */ - outJunctionTableId?: UUIDFilter; - /** Filter by the object’s `outSourceFieldId` field. */ - outSourceFieldId?: UUIDFilter; - /** Filter by the object’s `outTargetFieldId` field. */ - outTargetFieldId?: UUIDFilter; + /** Filter by the object’s `provisions` field. */ + provisions?: JSONFilter; + /** Filter by the object’s `defaultPermissions` field. */ + defaultPermissions?: StringListFilter; /** Checks for all expressions in this list. */ - and?: RelationProvisionFilter[]; + and?: ResourceModuleFilter[]; /** Checks for any expressions in this list. */ - or?: RelationProvisionFilter[]; + or?: ResourceModuleFilter[]; /** Negates the expression. */ - not?: RelationProvisionFilter; + not?: ResourceModuleFilter; + /** Filter by the object’s `namespaceModule` relation. */ + namespaceModule?: NamespaceModuleFilter; + /** A related `namespaceModule` exists. */ + namespaceModuleExists?: boolean; } /** A filter to be used against `UserAuthModule` object types. All fields are combined with a logical ‘and.’ */ export interface UserAuthModuleFilter { @@ -4771,12 +5248,77 @@ export interface UserAuthModuleFilter { /** Negates the expression. */ not?: UserAuthModuleFilter; } +/** A filter to be used against `DbUsageModule` object types. All fields are combined with a logical ‘and.’ */ +export interface DbUsageModuleFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `entityField` field. */ + entityField?: StringFilter; + /** Filter by the object’s `schemaId` field. */ + schemaId?: UUIDFilter; + /** Filter by the object’s `privateSchemaId` field. */ + privateSchemaId?: UUIDFilter; + /** Filter by the object’s `publicSchemaName` field. */ + publicSchemaName?: StringFilter; + /** Filter by the object’s `privateSchemaName` field. */ + privateSchemaName?: StringFilter; + /** Filter by the object’s `tableStatsLogTableId` field. */ + tableStatsLogTableId?: UUIDFilter; + /** Filter by the object’s `tableStatsLogTableName` field. */ + tableStatsLogTableName?: StringFilter; + /** Filter by the object’s `tableStatsDailyTableId` field. */ + tableStatsDailyTableId?: UUIDFilter; + /** Filter by the object’s `tableStatsDailyTableName` field. */ + tableStatsDailyTableName?: StringFilter; + /** Filter by the object’s `queryStatsLogTableId` field. */ + queryStatsLogTableId?: UUIDFilter; + /** Filter by the object’s `queryStatsLogTableName` field. */ + queryStatsLogTableName?: StringFilter; + /** Filter by the object’s `queryStatsDailyTableId` field. */ + queryStatsDailyTableId?: UUIDFilter; + /** Filter by the object’s `queryStatsDailyTableName` field. */ + queryStatsDailyTableName?: StringFilter; + /** Filter by the object’s `collectDbTableStatsFunction` field. */ + collectDbTableStatsFunction?: StringFilter; + /** Filter by the object’s `collectDbQueryStatsFunction` field. */ + collectDbQueryStatsFunction?: StringFilter; + /** Filter by the object’s `rollupDbTableStatsDailyFunction` field. */ + rollupDbTableStatsDailyFunction?: StringFilter; + /** Filter by the object’s `rollupDbQueryStatsDailyFunction` field. */ + rollupDbQueryStatsDailyFunction?: StringFilter; + /** Filter by the object’s `interval` field. */ + interval?: StringFilter; + /** Filter by the object’s `retention` field. */ + retention?: StringFilter; + /** Filter by the object’s `premake` field. */ + premake?: IntFilter; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Filter by the object’s `defaultPermissions` field. */ + defaultPermissions?: StringListFilter; + /** Filter by the object’s `apiName` field. */ + apiName?: StringFilter; + /** Filter by the object’s `privateApiName` field. */ + privateApiName?: StringFilter; + /** Checks for all expressions in this list. */ + and?: DbUsageModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: DbUsageModuleFilter[]; + /** Negates the expression. */ + not?: DbUsageModuleFilter; +} /** A filter to be used against `AgentModule` object types. All fields are combined with a logical ‘and.’ */ export interface AgentModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; + /** Filter by the object’s `entityField` field. */ + entityField?: StringFilter; /** Filter by the object’s `schemaId` field. */ schemaId?: UUIDFilter; /** Filter by the object’s `privateSchemaId` field. */ @@ -4856,6 +5398,8 @@ export interface LimitsModuleFilter { id?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; + /** Filter by the object’s `entityField` field. */ + entityField?: StringFilter; /** Filter by the object’s `schemaId` field. */ schemaId?: UUIDFilter; /** Filter by the object’s `privateSchemaId` field. */ @@ -4931,97 +5475,6 @@ export interface LimitsModuleFilter { /** Negates the expression. */ not?: LimitsModuleFilter; } -/** A filter to be used against `MembershipsModule` object types. All fields are combined with a logical ‘and.’ */ -export interface MembershipsModuleFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `schemaId` field. */ - schemaId?: UUIDFilter; - /** Filter by the object’s `privateSchemaId` field. */ - privateSchemaId?: UUIDFilter; - /** Filter by the object’s `publicSchemaName` field. */ - publicSchemaName?: StringFilter; - /** Filter by the object’s `privateSchemaName` field. */ - privateSchemaName?: StringFilter; - /** Filter by the object’s `membershipsTableId` field. */ - membershipsTableId?: UUIDFilter; - /** Filter by the object’s `membershipsTableName` field. */ - membershipsTableName?: StringFilter; - /** Filter by the object’s `membersTableId` field. */ - membersTableId?: UUIDFilter; - /** Filter by the object’s `membersTableName` field. */ - membersTableName?: StringFilter; - /** Filter by the object’s `membershipDefaultsTableId` field. */ - membershipDefaultsTableId?: UUIDFilter; - /** Filter by the object’s `membershipDefaultsTableName` field. */ - membershipDefaultsTableName?: StringFilter; - /** Filter by the object’s `membershipSettingsTableId` field. */ - membershipSettingsTableId?: UUIDFilter; - /** Filter by the object’s `membershipSettingsTableName` field. */ - membershipSettingsTableName?: StringFilter; - /** Filter by the object’s `grantsTableId` field. */ - grantsTableId?: UUIDFilter; - /** Filter by the object’s `grantsTableName` field. */ - grantsTableName?: StringFilter; - /** Filter by the object’s `actorTableId` field. */ - actorTableId?: UUIDFilter; - /** Filter by the object’s `limitsTableId` field. */ - limitsTableId?: UUIDFilter; - /** Filter by the object’s `defaultLimitsTableId` field. */ - defaultLimitsTableId?: UUIDFilter; - /** Filter by the object’s `permissionsTableId` field. */ - permissionsTableId?: UUIDFilter; - /** Filter by the object’s `defaultPermissionsTableId` field. */ - defaultPermissionsTableId?: UUIDFilter; - /** Filter by the object’s `sprtTableId` field. */ - sprtTableId?: UUIDFilter; - /** Filter by the object’s `adminGrantsTableId` field. */ - adminGrantsTableId?: UUIDFilter; - /** Filter by the object’s `adminGrantsTableName` field. */ - adminGrantsTableName?: StringFilter; - /** Filter by the object’s `ownerGrantsTableId` field. */ - ownerGrantsTableId?: UUIDFilter; - /** Filter by the object’s `ownerGrantsTableName` field. */ - ownerGrantsTableName?: StringFilter; - /** Filter by the object’s `scope` field. */ - scope?: StringFilter; - /** Filter by the object’s `prefix` field. */ - prefix?: StringFilter; - /** Filter by the object’s `entityTableId` field. */ - entityTableId?: UUIDFilter; - /** Filter by the object’s `entityTableOwnerId` field. */ - entityTableOwnerId?: UUIDFilter; - /** Filter by the object’s `getOrgFn` field. */ - getOrgFn?: StringFilter; - /** Filter by the object’s `actorMaskCheck` field. */ - actorMaskCheck?: StringFilter; - /** Filter by the object’s `actorPermCheck` field. */ - actorPermCheck?: StringFilter; - /** Filter by the object’s `entityIdsByMask` field. */ - entityIdsByMask?: StringFilter; - /** Filter by the object’s `entityIdsByPerm` field. */ - entityIdsByPerm?: StringFilter; - /** Filter by the object’s `entityIdsFunction` field. */ - entityIdsFunction?: StringFilter; - /** Filter by the object’s `memberProfilesTableId` field. */ - memberProfilesTableId?: UUIDFilter; - /** Filter by the object’s `permissionDefaultPermissionsTableId` field. */ - permissionDefaultPermissionsTableId?: UUIDFilter; - /** Filter by the object’s `permissionDefaultGrantsTableId` field. */ - permissionDefaultGrantsTableId?: UUIDFilter; - /** Filter by the object’s `apiName` field. */ - apiName?: StringFilter; - /** Filter by the object’s `privateApiName` field. */ - privateApiName?: StringFilter; - /** Checks for all expressions in this list. */ - and?: MembershipsModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: MembershipsModuleFilter[]; - /** Negates the expression. */ - not?: MembershipsModuleFilter; -} /** A filter to be used against `EntityTypeProvision` object types. All fields are combined with a logical ‘and.’ */ export interface EntityTypeProvisionFilter { /** Filter by the object’s `id` field. */ @@ -5096,8 +5549,6 @@ export interface EntityTypeProvisionFilter { outInvocationsTableId?: UUIDFilter; /** Filter by the object’s `outExecutionLogsTableId` field. */ outExecutionLogsTableId?: UUIDFilter; - /** Filter by the object’s `outSecretDefinitionsTableId` field. */ - outSecretDefinitionsTableId?: UUIDFilter; /** Filter by the object’s `outGraphModuleId` field. */ outGraphModuleId?: UUIDFilter; /** Filter by the object’s `outGraphsTableId` field. */ @@ -5143,6 +5594,8 @@ export interface StorageModuleFilter { provisions?: JSONFilter; /** Filter by the object’s `entityTableId` field. */ entityTableId?: UUIDFilter; + /** Filter by the object’s `entityField` field. */ + entityField?: StringFilter; /** Filter by the object’s `endpoint` field. */ endpoint?: StringFilter; /** Filter by the object’s `publicUrlPrefix` field. */ @@ -5198,12 +5651,14 @@ export interface StorageModuleFilter { /** Negates the expression. */ not?: StorageModuleFilter; } -/** A filter to be used against `EventsModule` object types. All fields are combined with a logical ‘and.’ */ -export interface EventsModuleFilter { +/** A filter to be used against `MembershipsModule` object types. All fields are combined with a logical ‘and.’ */ +export interface MembershipsModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; + /** Filter by the object’s `entityField` field. */ + entityField?: StringFilter; /** Filter by the object’s `schemaId` field. */ schemaId?: UUIDFilter; /** Filter by the object’s `privateSchemaId` field. */ @@ -5212,33 +5667,126 @@ export interface EventsModuleFilter { publicSchemaName?: StringFilter; /** Filter by the object’s `privateSchemaName` field. */ privateSchemaName?: StringFilter; - /** Filter by the object’s `eventsTableId` field. */ - eventsTableId?: UUIDFilter; - /** Filter by the object’s `eventsTableName` field. */ - eventsTableName?: StringFilter; - /** Filter by the object’s `eventAggregatesTableId` field. */ - eventAggregatesTableId?: UUIDFilter; - /** Filter by the object’s `eventAggregatesTableName` field. */ - eventAggregatesTableName?: StringFilter; - /** Filter by the object’s `eventTypesTableId` field. */ - eventTypesTableId?: UUIDFilter; - /** Filter by the object’s `eventTypesTableName` field. */ - eventTypesTableName?: StringFilter; - /** Filter by the object’s `levelsTableId` field. */ - levelsTableId?: UUIDFilter; - /** Filter by the object’s `levelsTableName` field. */ - levelsTableName?: StringFilter; - /** Filter by the object’s `levelRequirementsTableId` field. */ - levelRequirementsTableId?: UUIDFilter; - /** Filter by the object’s `levelRequirementsTableName` field. */ - levelRequirementsTableName?: StringFilter; - /** Filter by the object’s `levelGrantsTableId` field. */ - levelGrantsTableId?: UUIDFilter; - /** Filter by the object’s `levelGrantsTableName` field. */ - levelGrantsTableName?: StringFilter; - /** Filter by the object’s `achievementRewardsTableId` field. */ - achievementRewardsTableId?: UUIDFilter; - /** Filter by the object’s `achievementRewardsTableName` field. */ + /** Filter by the object’s `membershipsTableId` field. */ + membershipsTableId?: UUIDFilter; + /** Filter by the object’s `membershipsTableName` field. */ + membershipsTableName?: StringFilter; + /** Filter by the object’s `membersTableId` field. */ + membersTableId?: UUIDFilter; + /** Filter by the object’s `membersTableName` field. */ + membersTableName?: StringFilter; + /** Filter by the object’s `membershipDefaultsTableId` field. */ + membershipDefaultsTableId?: UUIDFilter; + /** Filter by the object’s `membershipDefaultsTableName` field. */ + membershipDefaultsTableName?: StringFilter; + /** Filter by the object’s `membershipSettingsTableId` field. */ + membershipSettingsTableId?: UUIDFilter; + /** Filter by the object’s `membershipSettingsTableName` field. */ + membershipSettingsTableName?: StringFilter; + /** Filter by the object’s `grantsTableId` field. */ + grantsTableId?: UUIDFilter; + /** Filter by the object’s `grantsTableName` field. */ + grantsTableName?: StringFilter; + /** Filter by the object’s `actorTableId` field. */ + actorTableId?: UUIDFilter; + /** Filter by the object’s `limitsTableId` field. */ + limitsTableId?: UUIDFilter; + /** Filter by the object’s `defaultLimitsTableId` field. */ + defaultLimitsTableId?: UUIDFilter; + /** Filter by the object’s `permissionsTableId` field. */ + permissionsTableId?: UUIDFilter; + /** Filter by the object’s `defaultPermissionsTableId` field. */ + defaultPermissionsTableId?: UUIDFilter; + /** Filter by the object’s `sprtTableId` field. */ + sprtTableId?: UUIDFilter; + /** Filter by the object’s `adminGrantsTableId` field. */ + adminGrantsTableId?: UUIDFilter; + /** Filter by the object’s `adminGrantsTableName` field. */ + adminGrantsTableName?: StringFilter; + /** Filter by the object’s `ownerGrantsTableId` field. */ + ownerGrantsTableId?: UUIDFilter; + /** Filter by the object’s `ownerGrantsTableName` field. */ + ownerGrantsTableName?: StringFilter; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Filter by the object’s `entityTableId` field. */ + entityTableId?: UUIDFilter; + /** Filter by the object’s `entityTableOwnerId` field. */ + entityTableOwnerId?: UUIDFilter; + /** Filter by the object’s `getOrgFn` field. */ + getOrgFn?: StringFilter; + /** Filter by the object’s `actorMaskCheck` field. */ + actorMaskCheck?: StringFilter; + /** Filter by the object’s `actorPermCheck` field. */ + actorPermCheck?: StringFilter; + /** Filter by the object’s `entityIdsByMask` field. */ + entityIdsByMask?: StringFilter; + /** Filter by the object’s `entityIdsByPerm` field. */ + entityIdsByPerm?: StringFilter; + /** Filter by the object’s `entityIdsFunction` field. */ + entityIdsFunction?: StringFilter; + /** Filter by the object’s `memberProfilesTableId` field. */ + memberProfilesTableId?: UUIDFilter; + /** Filter by the object’s `permissionDefaultPermissionsTableId` field. */ + permissionDefaultPermissionsTableId?: UUIDFilter; + /** Filter by the object’s `permissionDefaultGrantsTableId` field. */ + permissionDefaultGrantsTableId?: UUIDFilter; + /** Filter by the object’s `apiName` field. */ + apiName?: StringFilter; + /** Filter by the object’s `privateApiName` field. */ + privateApiName?: StringFilter; + /** Checks for all expressions in this list. */ + and?: MembershipsModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: MembershipsModuleFilter[]; + /** Negates the expression. */ + not?: MembershipsModuleFilter; +} +/** A filter to be used against `EventsModule` object types. All fields are combined with a logical ‘and.’ */ +export interface EventsModuleFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `entityField` field. */ + entityField?: StringFilter; + /** Filter by the object’s `schemaId` field. */ + schemaId?: UUIDFilter; + /** Filter by the object’s `privateSchemaId` field. */ + privateSchemaId?: UUIDFilter; + /** Filter by the object’s `publicSchemaName` field. */ + publicSchemaName?: StringFilter; + /** Filter by the object’s `privateSchemaName` field. */ + privateSchemaName?: StringFilter; + /** Filter by the object’s `eventsTableId` field. */ + eventsTableId?: UUIDFilter; + /** Filter by the object’s `eventsTableName` field. */ + eventsTableName?: StringFilter; + /** Filter by the object’s `eventAggregatesTableId` field. */ + eventAggregatesTableId?: UUIDFilter; + /** Filter by the object’s `eventAggregatesTableName` field. */ + eventAggregatesTableName?: StringFilter; + /** Filter by the object’s `eventTypesTableId` field. */ + eventTypesTableId?: UUIDFilter; + /** Filter by the object’s `eventTypesTableName` field. */ + eventTypesTableName?: StringFilter; + /** Filter by the object’s `levelsTableId` field. */ + levelsTableId?: UUIDFilter; + /** Filter by the object’s `levelsTableName` field. */ + levelsTableName?: StringFilter; + /** Filter by the object’s `levelRequirementsTableId` field. */ + levelRequirementsTableId?: UUIDFilter; + /** Filter by the object’s `levelRequirementsTableName` field. */ + levelRequirementsTableName?: StringFilter; + /** Filter by the object’s `levelGrantsTableId` field. */ + levelGrantsTableId?: UUIDFilter; + /** Filter by the object’s `levelGrantsTableName` field. */ + levelGrantsTableName?: StringFilter; + /** Filter by the object’s `achievementRewardsTableId` field. */ + achievementRewardsTableId?: UUIDFilter; + /** Filter by the object’s `achievementRewardsTableName` field. */ achievementRewardsTableName?: StringFilter; /** Filter by the object’s `recordEvent` field. */ recordEvent?: StringFilter; @@ -5256,8 +5804,6 @@ export interface EventsModuleFilter { upsertAggregate?: StringFilter; /** Filter by the object’s `tgUpdateAggregates` field. */ tgUpdateAggregates?: StringFilter; - /** Filter by the object’s `pruneEvents` field. */ - pruneEvents?: StringFilter; /** Filter by the object’s `stepsRequired` field. */ stepsRequired?: StringFilter; /** Filter by the object’s `levelAchieved` field. */ @@ -5404,19 +5950,6 @@ export interface MembershipTypesModuleInput { tableId?: string; tableName?: string; } -export interface CreateUserStateModuleInput { - clientMutationId?: string; - /** The `UserStateModule` to be created by this mutation. */ - userStateModule: UserStateModuleInput; -} -/** An input for mutations affecting `UserStateModule` */ -export interface UserStateModuleInput { - id?: string; - databaseId: string; - schemaId?: string; - tableId?: string; - tableName?: string; -} export interface CreateSessionSecretsModuleInput { clientMutationId?: string; /** The `SessionSecretsModule` to be created by this mutation. */ @@ -5432,21 +5965,6 @@ export interface SessionSecretsModuleInput { /** Resolved reference to sessions_module.sessions_table, used to FK session_secrets.session_id with ON DELETE CASCADE. */ sessionsTableId?: string; } -export interface CreateConfigSecretsOrgModuleInput { - clientMutationId?: string; - /** The `ConfigSecretsOrgModule` to be created by this mutation. */ - configSecretsOrgModule: ConfigSecretsOrgModuleInput; -} -/** An input for mutations affecting `ConfigSecretsOrgModule` */ -export interface ConfigSecretsOrgModuleInput { - id?: string; - databaseId: string; - schemaId?: string; - tableId?: string; - tableName?: string; - apiName?: string; - privateApiName?: string; -} export interface CreateDevicesModuleInput { clientMutationId?: string; /** The `DevicesModule` to be created by this mutation. */ @@ -5477,50 +5995,48 @@ export interface I18NModuleInput { apiName?: string; privateApiName?: string; } -export interface CreateUserCredentialsModuleInput { +export interface CreateUserSettingsModuleInput { clientMutationId?: string; - /** The `UserCredentialsModule` to be created by this mutation. */ - userCredentialsModule: UserCredentialsModuleInput; + /** The `UserSettingsModule` to be created by this mutation. */ + userSettingsModule: UserSettingsModuleInput; } -/** An input for mutations affecting `UserCredentialsModule` */ -export interface UserCredentialsModuleInput { +/** An input for mutations affecting `UserSettingsModule` */ +export interface UserSettingsModuleInput { id?: string; databaseId: string; schemaId?: string; tableId?: string; + ownerTableId?: string; tableName?: string; apiName?: string; - privateApiName?: string; } -export interface CreateUserSettingsModuleInput { +export interface CreateUserStateModuleInput { clientMutationId?: string; - /** The `UserSettingsModule` to be created by this mutation. */ - userSettingsModule: UserSettingsModuleInput; + /** The `UserStateModule` to be created by this mutation. */ + userStateModule: UserStateModuleInput; } -/** An input for mutations affecting `UserSettingsModule` */ -export interface UserSettingsModuleInput { +/** An input for mutations affecting `UserStateModule` */ +export interface UserStateModuleInput { id?: string; databaseId: string; + entityField?: string; schemaId?: string; tableId?: string; - ownerTableId?: string; tableName?: string; - apiName?: string; } -export interface CreateConfigSecretsUserModuleInput { +export interface CreateUserCredentialsModuleInput { clientMutationId?: string; - /** The `ConfigSecretsUserModule` to be created by this mutation. */ - configSecretsUserModule: ConfigSecretsUserModuleInput; + /** The `UserCredentialsModule` to be created by this mutation. */ + userCredentialsModule: UserCredentialsModuleInput; } -/** An input for mutations affecting `ConfigSecretsUserModule` */ -export interface ConfigSecretsUserModuleInput { +/** An input for mutations affecting `UserCredentialsModule` */ +export interface UserCredentialsModuleInput { id?: string; databaseId: string; + entityField?: string; schemaId?: string; tableId?: string; tableName?: string; - configDefinitionsTableId?: string; - apiName?: string; privateApiName?: string; } export interface CreateConnectedAccountsModuleInput { @@ -5626,6 +6142,22 @@ export interface WebauthnCredentialsModuleInput { apiName?: string; privateApiName?: string; } +export interface CreateConfigSecretsUserModuleInput { + clientMutationId?: string; + /** The `ConfigSecretsUserModule` to be created by this mutation. */ + configSecretsUserModule: ConfigSecretsUserModuleInput; +} +/** An input for mutations affecting `ConfigSecretsUserModule` */ +export interface ConfigSecretsUserModuleInput { + id?: string; + databaseId: string; + entityField?: string; + schemaId?: string; + tableId?: string; + tableName?: string; + apiName?: string; + privateApiName?: string; +} export interface CreateCryptoAddressesModuleInput { clientMutationId?: string; /** The `CryptoAddressesModule` to be created by this mutation. */ @@ -5664,28 +6196,6 @@ export interface DenormalizedTableFieldInput { funcName?: string; funcOrder?: number; } -export interface CreateIdentityProvidersModuleInput { - clientMutationId?: string; - /** The `IdentityProvidersModule` to be created by this mutation. */ - identityProvidersModule: IdentityProvidersModuleInput; -} -/** An input for mutations affecting `IdentityProvidersModule` */ -export interface IdentityProvidersModuleInput { - id?: string; - databaseId: string; - schemaId?: string; - /** Private schema that hosts SECURITY DEFINER admin helpers which write to identity_providers (create / update / enable / disable / rotate-secret / delete) and the per-app quota check. */ - privateSchemaId?: string; - publicSchemaName?: string; - privateSchemaName?: string; - tableId?: string; - tableName?: string; - apiName?: string; - privateApiName?: string; - scope?: string; - prefix?: string; - entityTableId?: string; -} export interface CreateRlsModuleInput { clientMutationId?: string; /** The `RlsModule` to be created by this mutation. */ @@ -5840,110 +6350,169 @@ export interface SecureTableProvisionInput { /** Output column populated by the trigger after field creation. Contains the UUIDs of the metaschema fields created on the target table by this provision row's nodes. NULL when nodes is empty or before the trigger runs. Callers should not set this directly. */ outFields?: string[]; } -export interface CreateDatabaseProvisionModuleInput { - clientMutationId?: string; - /** The `DatabaseProvisionModule` to be created by this mutation. */ - databaseProvisionModule: DatabaseProvisionModuleInput; -} -/** An input for mutations affecting `DatabaseProvisionModule` */ -export interface DatabaseProvisionModuleInput { - id?: string; - /** The name for the new database */ - databaseName: string; - /** UUID of the user who owns this database */ - ownerId: string; - /** Subdomain prefix for the database. If null, auto-generated using unique_names + random chars */ - subdomain?: string; - /** Base domain for the database (e.g., example.com) */ - domain: string; - /** JSONB array of modules to install. Each element is either a string ("users_module") or a [name, options] tuple (["permissions_module", {"scope": "app"}]) */ - modules?: unknown; - /** Additional configuration options for provisioning */ - options?: unknown; - /** When true, copies the owner user and password hash from source database to the newly provisioned database */ - bootstrapUser?: boolean; - /** Current status: pending, in_progress, completed, or failed */ - status?: string; - errorMessage?: string; - /** The ID of the provisioned database (set by trigger before RLS check) */ - databaseId?: string; - createdAt?: string; - updatedAt?: string; - completedAt?: string; -} -export interface CreateConfigSecretsModuleInput { +export interface CreateIdentityProvidersModuleInput { clientMutationId?: string; - /** The `ConfigSecretsModule` to be created by this mutation. */ - configSecretsModule: ConfigSecretsModuleInput; + /** The `IdentityProvidersModule` to be created by this mutation. */ + identityProvidersModule: IdentityProvidersModuleInput; } -/** An input for mutations affecting `ConfigSecretsModule` */ -export interface ConfigSecretsModuleInput { +/** An input for mutations affecting `IdentityProvidersModule` */ +export interface IdentityProvidersModuleInput { id?: string; databaseId: string; + entityField?: string; schemaId?: string; + /** Private schema that hosts SECURITY DEFINER admin helpers which write to identity_providers (create / update / enable / disable / rotate-secret / delete) and the per-app quota check. */ privateSchemaId?: string; publicSchemaName?: string; privateSchemaName?: string; tableId?: string; - configDefinitionsTableId?: string; tableName?: string; apiName?: string; privateApiName?: string; scope?: string; prefix?: string; entityTableId?: string; - policies?: unknown; - provisions?: unknown; - hasConfig?: boolean; } -export interface CreateGraphModuleInput { +export interface CreateIntegrationProvidersModuleInput { clientMutationId?: string; - /** The `GraphModule` to be created by this mutation. */ - graphModule: GraphModuleInput; + /** The `IntegrationProvidersModule` to be created by this mutation. */ + integrationProvidersModule: IntegrationProvidersModuleInput; } -/** An input for mutations affecting `GraphModule` */ -export interface GraphModuleInput { +/** An input for mutations affecting `IntegrationProvidersModule` */ +export interface IntegrationProvidersModuleInput { id?: string; databaseId: string; - publicSchemaId?: string; + entityField?: string; + schemaId?: string; privateSchemaId?: string; publicSchemaName?: string; privateSchemaName?: string; + tableId?: string; + tableName?: string; + apiName?: string; + privateApiName?: string; scope?: string; prefix?: string; - merkleStoreModuleId: string; - graphsTableId?: string; + entityTableId?: string; +} +export interface CreateDbPoolConfigInput { + clientMutationId?: string; + /** The `DbPoolConfig` to be created by this mutation. */ + dbPoolConfig: DbPoolConfigInput; +} +/** An input for mutations affecting `DbPoolConfig` */ +export interface DbPoolConfigInput { + id?: string; + /** Slug of the db_presets catalog row this pool serves */ + presetSlug: string; + /** Base domain used when provisioning warm databases */ + domain: string; + /** Platform pool service org that owns warm databases until they are claimed */ + poolOwnerId: string; + /** Minimum number of ready warm databases the reconciler maintains */ + min?: number; + /** Maximum number of warming + ready databases the reconciler will keep */ + max?: number; + /** How long a ready warm database stays claimable before it expires */ + warmTtl?: IntervalInput; + /** When false the reconciler stops warming and the claim path falls through to cold provisioning */ + enabled?: boolean; + createdAt?: string; + updatedAt?: string; +} +export interface CreateRealtimeModuleInput { + clientMutationId?: string; + /** The `RealtimeModule` to be created by this mutation. */ + realtimeModule: RealtimeModuleInput; +} +/** An input for mutations affecting `RealtimeModule` */ +export interface RealtimeModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + subscriptionsSchemaId?: string; + changeLogTableId?: string; + listenerNodeTableId?: string; + sourceRegistryTableId?: string; + retentionHours?: number; + premake?: number; + interval?: string; + notifyChannel?: string; + apiName?: string; + privateApiName?: string; +} +export interface CreateInfraSecretsModuleInput { + clientMutationId?: string; + /** The `InfraSecretsModule` to be created by this mutation. */ + infraSecretsModule: InfraSecretsModuleInput; +} +/** An input for mutations affecting `InfraSecretsModule` */ +export interface InfraSecretsModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + secretsTableId?: string; + secretsTableName?: string; apiName?: string; privateApiName?: string; + scope?: string; + prefix?: string; entityTableId?: string; + entityField?: string; policies?: unknown; provisions?: unknown; - defaultPermissions?: string[]; - createdAt?: string; } -export interface CreateMerkleStoreModuleInput { +export interface CreateInternalSecretsModuleInput { clientMutationId?: string; - /** The `MerkleStoreModule` to be created by this mutation. */ - merkleStoreModule: MerkleStoreModuleInput; + /** The `InternalSecretsModule` to be created by this mutation. */ + internalSecretsModule: InternalSecretsModuleInput; } -/** An input for mutations affecting `MerkleStoreModule` */ -export interface MerkleStoreModuleInput { +/** An input for mutations affecting `InternalSecretsModule` */ +export interface InternalSecretsModuleInput { id?: string; databaseId: string; schemaId?: string; privateSchemaId?: string; publicSchemaName?: string; privateSchemaName?: string; - objectTableId?: string; - storeTableId?: string; - commitTableId?: string; - refTableId?: string; - prefix?: string; + internalSecretsTableId?: string; + internalSecretsTableName?: string; apiName?: string; privateApiName?: string; scope?: string; - functionPrefix?: string; - permissionKey?: string; + prefix?: string; + entityTableId?: string; + entityField?: string; + policies?: unknown; + provisions?: unknown; +} +export interface CreateDbPresetModuleInput { + clientMutationId?: string; + /** The `DbPresetModule` to be created by this mutation. */ + dbPresetModule: DbPresetModuleInput; +} +/** An input for mutations affecting `DbPresetModule` */ +export interface DbPresetModuleInput { + id?: string; + databaseId: string; + publicSchemaId?: string; + privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + scope: string; + prefix: string; + merkleStoreModuleId: string; + dbPresetsTableId?: string; + storeName: string; + apiName?: string; + privateApiName?: string; + entityTableId?: string; + policies?: unknown; + provisions?: unknown; createdAt?: string; } export interface CreateRateLimitMetersModuleInput { @@ -5971,27 +6540,29 @@ export interface RateLimitMetersModuleInput { apiName?: string; privateApiName?: string; } -export interface CreateRealtimeModuleInput { +export interface CreateInfraConfigModuleInput { clientMutationId?: string; - /** The `RealtimeModule` to be created by this mutation. */ - realtimeModule: RealtimeModuleInput; + /** The `InfraConfigModule` to be created by this mutation. */ + infraConfigModule: InfraConfigModuleInput; } -/** An input for mutations affecting `RealtimeModule` */ -export interface RealtimeModuleInput { +/** An input for mutations affecting `InfraConfigModule` */ +export interface InfraConfigModuleInput { id?: string; databaseId: string; + entityField?: string; schemaId?: string; privateSchemaId?: string; - subscriptionsSchemaId?: string; - changeLogTableId?: string; - listenerNodeTableId?: string; - sourceRegistryTableId?: string; - retentionHours?: number; - premake?: number; - interval?: string; - notifyChannel?: string; + publicSchemaName?: string; + privateSchemaName?: string; + configTableId?: string; + configTableName?: string; apiName?: string; privateApiName?: string; + scope?: string; + prefix?: string; + entityTableId?: string; + policies?: unknown; + provisions?: unknown; } export interface CreateWebauthnAuthModuleInput { clientMutationId?: string; @@ -6017,23 +6588,75 @@ export interface WebauthnAuthModuleInput { residentKey?: string; challengeExpiry?: IntervalInput; } -export interface CreateFunctionInvocationModuleInput { +export interface CreatePrincipalAuthModuleInput { clientMutationId?: string; - /** The `FunctionInvocationModule` to be created by this mutation. */ - functionInvocationModule: FunctionInvocationModuleInput; + /** The `PrincipalAuthModule` to be created by this mutation. */ + principalAuthModule: PrincipalAuthModuleInput; } -/** An input for mutations affecting `FunctionInvocationModule` */ -export interface FunctionInvocationModuleInput { +/** An input for mutations affecting `PrincipalAuthModule` */ +export interface PrincipalAuthModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + principalsTableId?: string; + principalEntitiesTableId?: string; + principalScopeOverridesTableId?: string; + usersTableId?: string; + sessionsTableId?: string; + sessionCredentialsTableId?: string; + auditsTableId?: string; + principalsTableName?: string; + createPrincipalFunction?: string; + deletePrincipalFunction?: string; + createOrgPrincipalFunction?: string; + deleteOrgPrincipalFunction?: string; + createOrgApiKeyFunction?: string; + revokeOrgApiKeyFunction?: string; + apiName?: string; +} +export interface CreateDbPoolInput { + clientMutationId?: string; + /** The `DbPool` to be created by this mutation. */ + dbPool: DbPoolInput; +} +/** An input for mutations affecting `DbPool` */ +export interface DbPoolInput { + id?: string; + /** Slug of the db_presets catalog row this entry was baked from */ + presetSlug: string; + /** The db_presets merkle commit_id the warm database was baked from; a mismatch with the current head marks the entry stale */ + presetCommitId?: string; + databaseId?: string; + /** Lifecycle: warming, ready, claimed, stale, expired, or failed */ + status?: string; + errorMessage?: string; + /** When a ready entry expires (set from db_pool_config.warm_ttl at warm time) */ + expiresAt?: string; + /** User the database was transferred to at claim time */ + claimedBy?: string; + claimedAt?: string; + /** Status of the deferred owner bootstrap job after claim: not_requested, pending, completed, or failed */ + bootstrapStatus?: string; + bootstrapError?: string; + createdAt?: string; + updatedAt?: string; +} +export interface CreateFunctionModuleInput { + clientMutationId?: string; + /** The `FunctionModule` to be created by this mutation. */ + functionModule: FunctionModuleInput; +} +/** An input for mutations affecting `FunctionModule` */ +export interface FunctionModuleInput { id?: string; databaseId: string; + entityField?: string; schemaId?: string; privateSchemaId?: string; publicSchemaName?: string; privateSchemaName?: string; - invocationsTableId?: string; - executionLogsTableId?: string; - invocationsTableName?: string; - executionLogsTableName?: string; + definitionsTableId?: string; + definitionsTableName?: string; apiName?: string; privateApiName?: string; scope?: string; @@ -6043,23 +6666,115 @@ export interface FunctionInvocationModuleInput { provisions?: unknown; defaultPermissions?: string[]; } -export interface CreateFunctionModuleInput { +export interface CreateGraphModuleInput { clientMutationId?: string; - /** The `FunctionModule` to be created by this mutation. */ - functionModule: FunctionModuleInput; + /** The `GraphModule` to be created by this mutation. */ + graphModule: GraphModuleInput; } -/** An input for mutations affecting `FunctionModule` */ -export interface FunctionModuleInput { +/** An input for mutations affecting `GraphModule` */ +export interface GraphModuleInput { + id?: string; + databaseId: string; + entityField?: string; + publicSchemaId?: string; + privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + scope?: string; + prefix?: string; + merkleStoreModuleId: string; + graphsTableId?: string; + apiName?: string; + privateApiName?: string; + entityTableId?: string; + policies?: unknown; + provisions?: unknown; + defaultPermissions?: string[]; + createdAt?: string; +} +export interface CreateMerkleStoreModuleInput { + clientMutationId?: string; + /** The `MerkleStoreModule` to be created by this mutation. */ + merkleStoreModule: MerkleStoreModuleInput; +} +/** An input for mutations affecting `MerkleStoreModule` */ +export interface MerkleStoreModuleInput { id?: string; databaseId: string; + entityField?: string; schemaId?: string; privateSchemaId?: string; publicSchemaName?: string; privateSchemaName?: string; - definitionsTableId?: string; - secretDefinitionsTableId?: string; - definitionsTableName?: string; - secretDefinitionsTableName?: string; + objectTableId?: string; + storeTableId?: string; + commitTableId?: string; + refTableId?: string; + prefix?: string; + apiName?: string; + privateApiName?: string; + scope?: string; + functionPrefix?: string; + permissionKey?: string; + createdAt?: string; +} +export interface CreateDatabaseProvisionModuleInput { + clientMutationId?: string; + /** The `DatabaseProvisionModule` to be created by this mutation. */ + databaseProvisionModule: DatabaseProvisionModuleInput; +} +/** An input for mutations affecting `DatabaseProvisionModule` */ +export interface DatabaseProvisionModuleInput { + id?: string; + /** The name for the new database */ + databaseName: string; + /** UUID of the user who owns this database */ + ownerId: string; + /** Subdomain prefix for the database. If null, auto-generated using unique_names + random chars */ + subdomain?: string; + /** Base domain for the database (e.g., example.com) */ + domain: string; + /** JSONB array of modules to install. Each element is either a string ("users_module") or a [name, options] tuple (["permissions_module", {"scope": "app"}]) */ + modules?: unknown; + /** Additional configuration options for provisioning */ + options?: unknown; + /** When true, copies the owner user and password hash from source database to the newly provisioned database */ + bootstrapUser?: boolean; + /** Current status: pending, in_progress, completed, or failed */ + status?: string; + errorMessage?: string; + /** The database the owner user is copied from during bootstrap (captured from JWT context at provision time) */ + sourceDatabaseId?: string; + /** Status of the deferred owner bootstrap job: not_requested, pending, completed, or failed */ + bootstrapStatus?: string; + /** Error message from the most recent failed bootstrap attempt */ + bootstrapError?: string; + /** The ID of the provisioned database (set by trigger before RLS check) */ + databaseId?: string; + createdAt?: string; + updatedAt?: string; + completedAt?: string; + /** 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; +} +export interface CreateFunctionInvocationModuleInput { + clientMutationId?: string; + /** The `FunctionInvocationModule` to be created by this mutation. */ + functionInvocationModule: FunctionInvocationModuleInput; +} +/** An input for mutations affecting `FunctionInvocationModule` */ +export interface FunctionInvocationModuleInput { + id?: string; + databaseId: string; + entityField?: string; + schemaId?: string; + privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + invocationsTableId?: string; + executionLogsTableId?: string; + invocationsTableName?: string; + executionLogsTableName?: string; apiName?: string; privateApiName?: string; scope?: string; @@ -6078,6 +6793,7 @@ export interface CreateInvitesModuleInput { export interface InvitesModuleInput { id?: string; databaseId: string; + entityField?: string; schemaId?: string; privateSchemaId?: string; publicSchemaName?: string; @@ -6095,31 +6811,61 @@ export interface InvitesModuleInput { apiName?: string; privateApiName?: string; } -export interface CreatePrincipalAuthModuleInput { +export interface CreateNamespaceModuleInput { clientMutationId?: string; - /** The `PrincipalAuthModule` to be created by this mutation. */ - principalAuthModule: PrincipalAuthModuleInput; + /** The `NamespaceModule` to be created by this mutation. */ + namespaceModule: NamespaceModuleInput; } -/** An input for mutations affecting `PrincipalAuthModule` */ -export interface PrincipalAuthModuleInput { +/** An input for mutations affecting `NamespaceModule` */ +export interface NamespaceModuleInput { id?: string; databaseId: string; + entityField?: string; schemaId?: string; - principalsTableId?: string; - principalEntitiesTableId?: string; - principalScopeOverridesTableId?: string; - usersTableId?: string; - sessionsTableId?: string; - sessionCredentialsTableId?: string; - auditsTableId?: string; - principalsTableName?: string; - createPrincipalFunction?: string; - deletePrincipalFunction?: string; - createOrgPrincipalFunction?: string; - deleteOrgPrincipalFunction?: string; - createOrgApiKeyFunction?: string; - revokeOrgApiKeyFunction?: string; + privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + namespacesTableId?: string; + namespaceEventsTableId?: string; + namespacesTableName?: string; + namespaceEventsTableName?: string; + apiName?: string; + privateApiName?: string; + scope?: string; + prefix?: string; + entityTableId?: string; + policies?: unknown; + provisions?: unknown; + defaultPermissions?: string[]; +} +export interface CreatePlansModuleInput { + clientMutationId?: string; + /** The `PlansModule` to be created by this mutation. */ + plansModule: PlansModuleInput; +} +/** An input for mutations affecting `PlansModule` */ +export interface PlansModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + plansTableId?: string; + plansTableName?: string; + planLimitsTableId?: string; + planLimitsTableName?: string; + planPricingTableId?: string; + planOverridesTableId?: string; + planMeterLimitsTableId?: string; + planCapsTableId?: string; + applyPlanFunction?: string; + applyPlanAggregateFunction?: string; + applyBillingPlanFunction?: string; + applyPlanCapsFunction?: string; + prefix?: string; apiName?: string; + privateApiName?: string; } export interface CreateComputeLogModuleInput { clientMutationId?: string; @@ -6130,6 +6876,7 @@ export interface CreateComputeLogModuleInput { export interface ComputeLogModuleInput { id?: string; databaseId: string; + entityField?: string; schemaId?: string; privateSchemaId?: string; publicSchemaName?: string; @@ -6157,6 +6904,7 @@ export interface CreateInferenceLogModuleInput { export interface InferenceLogModuleInput { id?: string; databaseId: string; + entityField?: string; schemaId?: string; privateSchemaId?: string; publicSchemaName?: string; @@ -6175,60 +6923,6 @@ export interface InferenceLogModuleInput { apiName?: string; privateApiName?: string; } -export interface CreateNamespaceModuleInput { - clientMutationId?: string; - /** The `NamespaceModule` to be created by this mutation. */ - namespaceModule: NamespaceModuleInput; -} -/** An input for mutations affecting `NamespaceModule` */ -export interface NamespaceModuleInput { - id?: string; - databaseId: string; - schemaId?: string; - privateSchemaId?: string; - publicSchemaName?: string; - privateSchemaName?: string; - namespacesTableId?: string; - namespaceEventsTableId?: string; - namespacesTableName?: string; - namespaceEventsTableName?: string; - apiName?: string; - privateApiName?: string; - scope?: string; - prefix?: string; - entityTableId?: string; - platformNamespacesTableId?: string; - policies?: unknown; - provisions?: unknown; - defaultPermissions?: string[]; -} -export interface CreateResourceModuleInput { - clientMutationId?: string; - /** The `ResourceModule` to be created by this mutation. */ - resourceModule: ResourceModuleInput; -} -/** An input for mutations affecting `ResourceModule` */ -export interface ResourceModuleInput { - id?: string; - databaseId: string; - schemaId?: string; - privateSchemaId?: string; - publicSchemaName?: string; - privateSchemaName?: string; - resourcesTableId?: string; - resourceEventsTableId?: string; - resourcesTableName?: string; - resourceEventsTableName?: string; - apiName?: string; - privateApiName?: string; - scope?: string; - prefix?: string; - entityTableId?: string; - namespaceModuleId?: string; - policies?: unknown; - provisions?: unknown; - defaultPermissions?: string[]; -} export interface CreateStorageLogModuleInput { clientMutationId?: string; /** The `StorageLogModule` to be created by this mutation. */ @@ -6238,6 +6932,7 @@ export interface CreateStorageLogModuleInput { export interface StorageLogModuleInput { id?: string; databaseId: string; + entityField?: string; schemaId?: string; privateSchemaId?: string; publicSchemaName?: string; @@ -6265,6 +6960,7 @@ export interface CreateTransferLogModuleInput { export interface TransferLogModuleInput { id?: string; databaseId: string; + entityField?: string; schemaId?: string; privateSchemaId?: string; publicSchemaName?: string; @@ -6283,63 +6979,6 @@ export interface TransferLogModuleInput { apiName?: string; privateApiName?: string; } -export interface CreateFunctionDeploymentModuleInput { - clientMutationId?: string; - /** The `FunctionDeploymentModule` to be created by this mutation. */ - functionDeploymentModule: FunctionDeploymentModuleInput; -} -/** An input for mutations affecting `FunctionDeploymentModule` */ -export interface FunctionDeploymentModuleInput { - id?: string; - databaseId: string; - schemaId?: string; - privateSchemaId?: string; - publicSchemaName?: string; - privateSchemaName?: string; - deploymentsTableId?: string; - deploymentEventsTableId?: string; - deploymentsTableName?: string; - deploymentEventsTableName?: string; - apiName?: string; - privateApiName?: string; - scope?: string; - prefix?: string; - entityTableId?: string; - functionModuleId?: string; - namespaceModuleId?: string; - policies?: unknown; - provisions?: unknown; - defaultPermissions?: string[]; -} -export interface CreatePlansModuleInput { - clientMutationId?: string; - /** The `PlansModule` to be created by this mutation. */ - plansModule: PlansModuleInput; -} -/** An input for mutations affecting `PlansModule` */ -export interface PlansModuleInput { - id?: string; - databaseId: string; - schemaId?: string; - privateSchemaId?: string; - publicSchemaName?: string; - privateSchemaName?: string; - plansTableId?: string; - plansTableName?: string; - planLimitsTableId?: string; - planLimitsTableName?: string; - planPricingTableId?: string; - planOverridesTableId?: string; - planMeterLimitsTableId?: string; - planCapsTableId?: string; - applyPlanFunction?: string; - applyPlanAggregateFunction?: string; - applyBillingPlanFunction?: string; - applyPlanCapsFunction?: string; - prefix?: string; - apiName?: string; - privateApiName?: string; -} export interface CreateBillingProviderModuleInput { clientMutationId?: string; /** The `BillingProviderModule` to be created by this mutation. */ @@ -6370,33 +7009,62 @@ export interface BillingProviderModuleInput { apiName?: string; privateApiName?: string; } -export interface CreateDbUsageModuleInput { +export interface CreateFunctionDeploymentModuleInput { clientMutationId?: string; - /** The `DbUsageModule` to be created by this mutation. */ - dbUsageModule: DbUsageModuleInput; + /** The `FunctionDeploymentModule` to be created by this mutation. */ + functionDeploymentModule: FunctionDeploymentModuleInput; } -/** An input for mutations affecting `DbUsageModule` */ -export interface DbUsageModuleInput { +/** An input for mutations affecting `FunctionDeploymentModule` */ +export interface FunctionDeploymentModuleInput { id?: string; databaseId: string; + entityField?: string; schemaId?: string; privateSchemaId?: string; publicSchemaName?: string; privateSchemaName?: string; - tableStatsLogTableId?: string; - tableStatsLogTableName?: string; - tableStatsDailyTableId?: string; - tableStatsDailyTableName?: string; - queryStatsLogTableId?: string; - queryStatsLogTableName?: string; - queryStatsDailyTableId?: string; - queryStatsDailyTableName?: string; - interval?: string; - retention?: string; - premake?: number; + deploymentsTableId?: string; + deploymentEventsTableId?: string; + deploymentsTableName?: string; + deploymentEventsTableName?: string; + apiName?: string; + privateApiName?: string; scope?: string; prefix?: string; + entityTableId?: string; + functionModuleId?: string; + namespaceModuleId?: string; + policies?: unknown; + provisions?: unknown; defaultPermissions?: string[]; +} +export interface CreatePermissionsModuleInput { + clientMutationId?: string; + /** The `PermissionsModule` to be created by this mutation. */ + permissionsModule: PermissionsModuleInput; +} +/** An input for mutations affecting `PermissionsModule` */ +export interface PermissionsModuleInput { + id?: string; + databaseId: string; + entityField?: string; + schemaId?: string; + privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + tableId?: string; + tableName?: string; + defaultTableId?: string; + defaultTableName?: string; + bitlen?: number; + scope?: string; + prefix?: string; + entityTableId?: string; + actorTableId?: string; + getPaddedMask?: string; + getMask?: string; + getByMask?: string; + getMaskByName?: string; apiName?: string; privateApiName?: string; } @@ -6409,6 +7077,7 @@ export interface CreateGraphExecutionModuleInput { export interface GraphExecutionModuleInput { id?: string; databaseId: string; + entityField?: string; schemaId?: string; privateSchemaId?: string; publicSchemaName?: string; @@ -6439,6 +7108,7 @@ export interface CreateHierarchyModuleInput { export interface HierarchyModuleInput { id?: string; databaseId: string; + entityField?: string; schemaId?: string; privateSchemaId?: string; chartEdgesTableId?: string; @@ -6460,44 +7130,16 @@ export interface HierarchyModuleInput { defaultPermissions?: string[]; createdAt?: string; } -export interface CreatePermissionsModuleInput { +export interface CreateNotificationsModuleInput { clientMutationId?: string; - /** The `PermissionsModule` to be created by this mutation. */ - permissionsModule: PermissionsModuleInput; + /** The `NotificationsModule` to be created by this mutation. */ + notificationsModule: NotificationsModuleInput; } -/** An input for mutations affecting `PermissionsModule` */ -export interface PermissionsModuleInput { - id?: string; - databaseId: string; - schemaId?: string; - privateSchemaId?: string; - publicSchemaName?: string; - privateSchemaName?: string; - tableId?: string; - tableName?: string; - defaultTableId?: string; - defaultTableName?: string; - bitlen?: number; - scope?: string; - prefix?: string; - entityTableId?: string; - actorTableId?: string; - getPaddedMask?: string; - getMask?: string; - getByMask?: string; - getMaskByName?: string; - apiName?: string; - privateApiName?: string; -} -export interface CreateNotificationsModuleInput { - clientMutationId?: string; - /** The `NotificationsModule` to be created by this mutation. */ - notificationsModule: NotificationsModuleInput; -} -/** An input for mutations affecting `NotificationsModule` */ -export interface NotificationsModuleInput { +/** An input for mutations affecting `NotificationsModule` */ +export interface NotificationsModuleInput { id?: string; databaseId: string; + entityField?: string; schemaId?: string; privateSchemaId?: string; publicSchemaName?: string; @@ -6520,71 +7162,6 @@ export interface NotificationsModuleInput { apiName?: string; privateApiName?: string; } -export interface CreateProfilesModuleInput { - clientMutationId?: string; - /** The `ProfilesModule` to be created by this mutation. */ - profilesModule: ProfilesModuleInput; -} -/** An input for mutations affecting `ProfilesModule` */ -export interface ProfilesModuleInput { - id?: string; - databaseId: string; - schemaId?: string; - privateSchemaId?: string; - publicSchemaName?: string; - privateSchemaName?: string; - tableId?: string; - tableName?: string; - profilePermissionsTableId?: string; - profilePermissionsTableName?: string; - profileGrantsTableId?: string; - profileGrantsTableName?: string; - profileDefinitionGrantsTableId?: string; - profileDefinitionGrantsTableName?: string; - profileTemplatesTableId?: string; - profileTemplatesTableName?: string; - scope?: string; - prefix?: string; - entityTableId?: string; - actorTableId?: string; - permissionsTableId?: string; - membershipsTableId?: string; - apiName?: string; - privateApiName?: string; -} -export interface CreateBillingModuleInput { - clientMutationId?: string; - /** The `BillingModule` to be created by this mutation. */ - billingModule: BillingModuleInput; -} -/** An input for mutations affecting `BillingModule` */ -export interface BillingModuleInput { - id?: string; - databaseId: string; - schemaId?: string; - privateSchemaId?: string; - publicSchemaName?: string; - privateSchemaName?: string; - metersTableId?: string; - metersTableName?: string; - planSubscriptionsTableId?: string; - planSubscriptionsTableName?: string; - ledgerTableId?: string; - ledgerTableName?: string; - balancesTableId?: string; - balancesTableName?: string; - meterCreditsTableId?: string; - meterCreditsTableName?: string; - meterSourcesTableId?: string; - meterSourcesTableName?: string; - meterDefaultsTableId?: string; - meterDefaultsTableName?: string; - recordUsageFunction?: string; - prefix?: string; - defaultPermissions?: string[]; - apiName?: string; - privateApiName?: string; -} export interface CreateRelationProvisionInput { clientMutationId?: string; /** The `RelationProvision` to be created by this mutation. */ @@ -6762,6 +7339,108 @@ export interface BlueprintTemplateInput { /** Timestamp when this template was last modified. */ updatedAt?: string; } +export interface CreateProfilesModuleInput { + clientMutationId?: string; + /** The `ProfilesModule` to be created by this mutation. */ + profilesModule: ProfilesModuleInput; +} +/** An input for mutations affecting `ProfilesModule` */ +export interface ProfilesModuleInput { + id?: string; + databaseId: string; + entityField?: string; + schemaId?: string; + privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + tableId?: string; + tableName?: string; + profilePermissionsTableId?: string; + profilePermissionsTableName?: string; + profileGrantsTableId?: string; + profileGrantsTableName?: string; + profileDefinitionGrantsTableId?: string; + profileDefinitionGrantsTableName?: string; + profileTemplatesTableId?: string; + profileTemplatesTableName?: string; + scope?: string; + prefix?: string; + entityTableId?: string; + actorTableId?: string; + permissionsTableId?: string; + membershipsTableId?: string; + apiName?: string; + privateApiName?: string; +} +export interface CreateBillingModuleInput { + clientMutationId?: string; + /** The `BillingModule` to be created by this mutation. */ + billingModule: BillingModuleInput; +} +/** An input for mutations affecting `BillingModule` */ +export interface BillingModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + metersTableId?: string; + metersTableName?: string; + planSubscriptionsTableId?: string; + planSubscriptionsTableName?: string; + ledgerTableId?: string; + ledgerTableName?: string; + balancesTableId?: string; + balancesTableName?: string; + meterCreditsTableId?: string; + meterCreditsTableName?: string; + meterSourcesTableId?: string; + meterSourcesTableName?: string; + meterDefaultsTableId?: string; + meterDefaultsTableName?: string; + recordUsageFunction?: string; + sweepExpiredSubscriptionsFunction?: string; + rollupUsageSummaryFunction?: string; + prefix?: string; + defaultPermissions?: string[]; + apiName?: string; + privateApiName?: string; +} +export interface CreateResourceModuleInput { + clientMutationId?: string; + /** The `ResourceModule` to be created by this mutation. */ + resourceModule: ResourceModuleInput; +} +/** An input for mutations affecting `ResourceModule` */ +export interface ResourceModuleInput { + id?: string; + databaseId: string; + entityField?: string; + schemaId?: string; + privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + resourcesTableId?: string; + resourceEventsTableId?: string; + resourceStatusChecksTableId?: string; + resourceDefinitionsTableId?: string; + resourcesTableName?: string; + resourceEventsTableName?: string; + resourceStatusChecksTableName?: string; + resourceDefinitionsTableName?: string; + resolvedRequirementsViewName?: string; + requirementsStateViewName?: string; + apiName?: string; + privateApiName?: string; + scope?: string; + prefix?: string; + entityTableId?: string; + namespaceModuleId?: string; + policies?: unknown; + provisions?: unknown; + defaultPermissions?: string[]; +} export interface CreateUserAuthModuleInput { clientMutationId?: string; /** The `UserAuthModule` to be created by this mutation. */ @@ -6798,6 +7477,41 @@ export interface UserAuthModuleInput { apiName?: string; privateApiName?: string; } +export interface CreateDbUsageModuleInput { + clientMutationId?: string; + /** The `DbUsageModule` to be created by this mutation. */ + dbUsageModule: DbUsageModuleInput; +} +/** An input for mutations affecting `DbUsageModule` */ +export interface DbUsageModuleInput { + id?: string; + databaseId: string; + entityField?: string; + schemaId?: string; + privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + tableStatsLogTableId?: string; + tableStatsLogTableName?: string; + tableStatsDailyTableId?: string; + tableStatsDailyTableName?: string; + queryStatsLogTableId?: string; + queryStatsLogTableName?: string; + queryStatsDailyTableId?: string; + queryStatsDailyTableName?: string; + collectDbTableStatsFunction?: string; + collectDbQueryStatsFunction?: string; + rollupDbTableStatsDailyFunction?: string; + rollupDbQueryStatsDailyFunction?: string; + interval?: string; + retention?: string; + premake?: number; + scope?: string; + prefix?: string; + defaultPermissions?: string[]; + apiName?: string; + privateApiName?: string; +} export interface CreateAgentModuleInput { clientMutationId?: string; /** The `AgentModule` to be created by this mutation. */ @@ -6807,6 +7521,7 @@ export interface CreateAgentModuleInput { export interface AgentModuleInput { id?: string; databaseId: string; + entityField?: string; schemaId?: string; privateSchemaId?: string; publicSchemaName?: string; @@ -6850,6 +7565,7 @@ export interface CreateLimitsModuleInput { export interface LimitsModuleInput { id?: string; databaseId: string; + entityField?: string; schemaId?: string; privateSchemaId?: string; publicSchemaName?: string; @@ -6885,55 +7601,6 @@ export interface LimitsModuleInput { apiName?: string; privateApiName?: string; } -export interface CreateMembershipsModuleInput { - clientMutationId?: string; - /** The `MembershipsModule` to be created by this mutation. */ - membershipsModule: MembershipsModuleInput; -} -/** An input for mutations affecting `MembershipsModule` */ -export interface MembershipsModuleInput { - id?: string; - databaseId: string; - schemaId?: string; - privateSchemaId?: string; - publicSchemaName?: string; - privateSchemaName?: string; - membershipsTableId?: string; - membershipsTableName?: string; - membersTableId?: string; - membersTableName?: string; - membershipDefaultsTableId?: string; - membershipDefaultsTableName?: string; - membershipSettingsTableId?: string; - membershipSettingsTableName?: string; - grantsTableId?: string; - grantsTableName?: string; - actorTableId?: string; - limitsTableId?: string; - defaultLimitsTableId?: string; - permissionsTableId?: string; - defaultPermissionsTableId?: string; - sprtTableId?: string; - adminGrantsTableId?: string; - adminGrantsTableName?: string; - ownerGrantsTableId?: string; - ownerGrantsTableName?: string; - scope?: string; - prefix?: string; - entityTableId?: string; - entityTableOwnerId?: string; - getOrgFn?: string; - actorMaskCheck?: string; - actorPermCheck?: string; - entityIdsByMask?: string; - entityIdsByPerm?: string; - entityIdsFunction?: string; - memberProfilesTableId?: string; - permissionDefaultPermissionsTableId?: string; - permissionDefaultGrantsTableId?: string; - apiName?: string; - privateApiName?: string; -} export interface CreateEntityTypeProvisionInput { clientMutationId?: string; /** The `EntityTypeProvision` to be created by this mutation. */ @@ -7187,646 +7854,929 @@ export interface EntityTypeProvisionInput { outDefinitionsTableId?: string; outInvocationsTableId?: string; outExecutionLogsTableId?: string; - outSecretDefinitionsTableId?: string; outGraphModuleId?: string; outGraphsTableId?: string; outAgentModuleId?: string; } -export interface CreateStorageModuleInput { +export interface CreateStorageModuleInput { + clientMutationId?: string; + /** The `StorageModule` to be created by this mutation. */ + storageModule: StorageModuleInput; +} +/** An input for mutations affecting `StorageModule` */ +export interface StorageModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + bucketsTableId?: string; + filesTableId?: string; + bucketsTableName?: string; + filesTableName?: string; + scope?: string; + prefix?: string; + policies?: unknown; + provisions?: unknown; + entityTableId?: string; + entityField?: string; + endpoint?: string; + publicUrlPrefix?: string; + provider?: string; + allowedOrigins?: string[]; + restrictReads?: boolean; + hasPathShares?: boolean; + pathSharesTableId?: string; + uploadUrlExpirySeconds?: number; + downloadUrlExpirySeconds?: number; + defaultMaxFileSize?: string; + maxFilenameLength?: number; + cacheTtlSeconds?: number; + maxBulkFiles?: number; + maxBulkTotalSize?: string; + hasVersioning?: boolean; + hasContentHash?: boolean; + hasCustomKeys?: boolean; + hasAuditLog?: boolean; + hasConfirmUpload?: boolean; + confirmUploadDelay?: IntervalInput; + fileEventsTableId?: string; + defaultPermissions?: string[]; + apiName?: string; + privateApiName?: string; +} +export interface CreateMembershipsModuleInput { + clientMutationId?: string; + /** The `MembershipsModule` to be created by this mutation. */ + membershipsModule: MembershipsModuleInput; +} +/** An input for mutations affecting `MembershipsModule` */ +export interface MembershipsModuleInput { + id?: string; + databaseId: string; + entityField?: string; + schemaId?: string; + privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + membershipsTableId?: string; + membershipsTableName?: string; + membersTableId?: string; + membersTableName?: string; + membershipDefaultsTableId?: string; + membershipDefaultsTableName?: string; + membershipSettingsTableId?: string; + membershipSettingsTableName?: string; + grantsTableId?: string; + grantsTableName?: string; + actorTableId?: string; + limitsTableId?: string; + defaultLimitsTableId?: string; + permissionsTableId?: string; + defaultPermissionsTableId?: string; + sprtTableId?: string; + adminGrantsTableId?: string; + adminGrantsTableName?: string; + ownerGrantsTableId?: string; + ownerGrantsTableName?: string; + scope?: string; + prefix?: string; + entityTableId?: string; + entityTableOwnerId?: string; + getOrgFn?: string; + actorMaskCheck?: string; + actorPermCheck?: string; + entityIdsByMask?: string; + entityIdsByPerm?: string; + entityIdsFunction?: string; + memberProfilesTableId?: string; + permissionDefaultPermissionsTableId?: string; + permissionDefaultGrantsTableId?: string; + apiName?: string; + privateApiName?: string; +} +export interface CreateEventsModuleInput { + clientMutationId?: string; + /** The `EventsModule` to be created by this mutation. */ + eventsModule: EventsModuleInput; +} +/** An input for mutations affecting `EventsModule` */ +export interface EventsModuleInput { + id?: string; + databaseId: string; + entityField?: string; + schemaId?: string; + privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + eventsTableId?: string; + eventsTableName?: string; + eventAggregatesTableId?: string; + eventAggregatesTableName?: string; + eventTypesTableId?: string; + eventTypesTableName?: string; + levelsTableId?: string; + levelsTableName?: string; + levelRequirementsTableId?: string; + levelRequirementsTableName?: string; + levelGrantsTableId?: string; + levelGrantsTableName?: string; + achievementRewardsTableId?: string; + achievementRewardsTableName?: string; + recordEvent?: string; + removeEvent?: string; + tgEvent?: string; + tgEventToggle?: string; + tgEventToggleBool?: string; + tgEventBool?: string; + upsertAggregate?: string; + tgUpdateAggregates?: string; + stepsRequired?: string; + levelAchieved?: string; + tgCheckAchievements?: string; + grantAchievement?: string; + tgAchievementReward?: string; + interval?: string; + retention?: string; + premake?: number; + scope?: string; + prefix?: string; + entityTableId?: string; + actorTableId?: string; + defaultPermissions?: string[]; + apiName?: string; + privateApiName?: string; +} +export interface UpdateDefaultIdsModuleInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `DefaultIdsModule` being updated. */ + defaultIdsModulePatch: DefaultIdsModulePatch; +} +/** Represents an update to a `DefaultIdsModule`. Fields that are set will be updated. */ +export interface DefaultIdsModulePatch { + id?: string; + databaseId?: string; +} +export interface UpdateMembershipTypesModuleInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `MembershipTypesModule` being updated. */ + membershipTypesModulePatch: MembershipTypesModulePatch; +} +/** Represents an update to a `MembershipTypesModule`. Fields that are set will be updated. */ +export interface MembershipTypesModulePatch { + id?: string; + databaseId?: string; + schemaId?: string; + tableId?: string; + tableName?: string; +} +export interface UpdateSessionSecretsModuleInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `SessionSecretsModule` being updated. */ + sessionSecretsModulePatch: SessionSecretsModulePatch; +} +/** Represents an update to a `SessionSecretsModule`. Fields that are set will be updated. */ +export interface SessionSecretsModulePatch { + id?: string; + databaseId?: string; + schemaId?: string; + tableId?: string; + tableName?: string; + /** Resolved reference to sessions_module.sessions_table, used to FK session_secrets.session_id with ON DELETE CASCADE. */ + sessionsTableId?: string; +} +export interface UpdateDevicesModuleInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `DevicesModule` being updated. */ + devicesModulePatch: DevicesModulePatch; +} +/** Represents an update to a `DevicesModule`. Fields that are set will be updated. */ +export interface DevicesModulePatch { + id?: string; + databaseId?: string; + schemaId?: string; + userDevicesTableId?: string; + deviceSettingsTableId?: string; + userDevicesTable?: string; + deviceSettingsTable?: string; +} +export interface UpdateI18NModuleInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `I18NModule` being updated. */ + i18NModulePatch: I18NModulePatch; +} +/** Represents an update to a `I18NModule`. Fields that are set will be updated. */ +export interface I18NModulePatch { + id?: string; + databaseId?: string; + schemaId?: string; + privateSchemaId?: string; + settingsTableId?: string; + apiName?: string; + privateApiName?: string; +} +export interface UpdateUserSettingsModuleInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `UserSettingsModule` being updated. */ + userSettingsModulePatch: UserSettingsModulePatch; +} +/** Represents an update to a `UserSettingsModule`. Fields that are set will be updated. */ +export interface UserSettingsModulePatch { + id?: string; + databaseId?: string; + schemaId?: string; + tableId?: string; + ownerTableId?: string; + tableName?: string; + apiName?: string; +} +export interface UpdateUserStateModuleInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `UserStateModule` being updated. */ + userStateModulePatch: UserStateModulePatch; +} +/** Represents an update to a `UserStateModule`. Fields that are set will be updated. */ +export interface UserStateModulePatch { + id?: string; + databaseId?: string; + entityField?: string; + schemaId?: string; + tableId?: string; + tableName?: string; +} +export interface UpdateUserCredentialsModuleInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `UserCredentialsModule` being updated. */ + userCredentialsModulePatch: UserCredentialsModulePatch; +} +/** Represents an update to a `UserCredentialsModule`. Fields that are set will be updated. */ +export interface UserCredentialsModulePatch { + id?: string; + databaseId?: string; + entityField?: string; + schemaId?: string; + tableId?: string; + tableName?: string; + privateApiName?: string; +} +export interface UpdateConnectedAccountsModuleInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `ConnectedAccountsModule` being updated. */ + connectedAccountsModulePatch: ConnectedAccountsModulePatch; +} +/** Represents an update to a `ConnectedAccountsModule`. Fields that are set will be updated. */ +export interface ConnectedAccountsModulePatch { + id?: string; + databaseId?: string; + schemaId?: string; + privateSchemaId?: string; + tableId?: string; + ownerTableId?: string; + tableName?: string; + apiName?: string; + privateApiName?: string; +} +export interface UpdateEmailsModuleInput { clientMutationId?: string; - /** The `StorageModule` to be created by this mutation. */ - storageModule: StorageModuleInput; + id: string; + /** An object where the defined keys will be set on the `EmailsModule` being updated. */ + emailsModulePatch: EmailsModulePatch; } -/** An input for mutations affecting `StorageModule` */ -export interface StorageModuleInput { +/** Represents an update to a `EmailsModule`. Fields that are set will be updated. */ +export interface EmailsModulePatch { id?: string; - databaseId: string; + databaseId?: string; schemaId?: string; privateSchemaId?: string; - publicSchemaName?: string; - privateSchemaName?: string; - bucketsTableId?: string; - filesTableId?: string; - bucketsTableName?: string; - filesTableName?: string; - scope?: string; - prefix?: string; - policies?: unknown; - provisions?: unknown; - entityTableId?: string; - endpoint?: string; - publicUrlPrefix?: string; - provider?: string; - allowedOrigins?: string[]; - restrictReads?: boolean; - hasPathShares?: boolean; - pathSharesTableId?: string; - uploadUrlExpirySeconds?: number; - downloadUrlExpirySeconds?: number; - defaultMaxFileSize?: string; - maxFilenameLength?: number; - cacheTtlSeconds?: number; - maxBulkFiles?: number; - maxBulkTotalSize?: string; - hasVersioning?: boolean; - hasContentHash?: boolean; - hasCustomKeys?: boolean; - hasAuditLog?: boolean; - hasConfirmUpload?: boolean; - confirmUploadDelay?: IntervalInput; - fileEventsTableId?: string; - defaultPermissions?: string[]; + tableId?: string; + ownerTableId?: string; + tableName?: string; apiName?: string; privateApiName?: string; } -export interface CreateEventsModuleInput { +export interface UpdatePhoneNumbersModuleInput { clientMutationId?: string; - /** The `EventsModule` to be created by this mutation. */ - eventsModule: EventsModuleInput; + id: string; + /** An object where the defined keys will be set on the `PhoneNumbersModule` being updated. */ + phoneNumbersModulePatch: PhoneNumbersModulePatch; } -/** An input for mutations affecting `EventsModule` */ -export interface EventsModuleInput { +/** Represents an update to a `PhoneNumbersModule`. Fields that are set will be updated. */ +export interface PhoneNumbersModulePatch { id?: string; - databaseId: string; + databaseId?: string; schemaId?: string; privateSchemaId?: string; - publicSchemaName?: string; - privateSchemaName?: string; - eventsTableId?: string; - eventsTableName?: string; - eventAggregatesTableId?: string; - eventAggregatesTableName?: string; - eventTypesTableId?: string; - eventTypesTableName?: string; - levelsTableId?: string; - levelsTableName?: string; - levelRequirementsTableId?: string; - levelRequirementsTableName?: string; - levelGrantsTableId?: string; - levelGrantsTableName?: string; - achievementRewardsTableId?: string; - achievementRewardsTableName?: string; - recordEvent?: string; - removeEvent?: string; - tgEvent?: string; - tgEventToggle?: string; - tgEventToggleBool?: string; - tgEventBool?: string; - upsertAggregate?: string; - tgUpdateAggregates?: string; - pruneEvents?: string; - stepsRequired?: string; - levelAchieved?: string; - tgCheckAchievements?: string; - grantAchievement?: string; - tgAchievementReward?: string; - interval?: string; - retention?: string; - premake?: number; - scope?: string; - prefix?: string; - entityTableId?: string; - actorTableId?: string; - defaultPermissions?: string[]; + tableId?: string; + ownerTableId?: string; + tableName?: string; apiName?: string; privateApiName?: string; } -export interface UpdateDefaultIdsModuleInput { +export interface UpdateRateLimitsModuleInput { clientMutationId?: string; id: string; - /** An object where the defined keys will be set on the `DefaultIdsModule` being updated. */ - defaultIdsModulePatch: DefaultIdsModulePatch; + /** An object where the defined keys will be set on the `RateLimitsModule` being updated. */ + rateLimitsModulePatch: RateLimitsModulePatch; } -/** Represents an update to a `DefaultIdsModule`. Fields that are set will be updated. */ -export interface DefaultIdsModulePatch { +/** Represents an update to a `RateLimitsModule`. Fields that are set will be updated. */ +export interface RateLimitsModulePatch { id?: string; databaseId?: string; + schemaId?: string; + rateLimitSettingsTableId?: string; + ipRateLimitsTableId?: string; + rateLimitsTableId?: string; + rateLimitSettingsTable?: string; + ipRateLimitsTable?: string; + rateLimitsTable?: string; } -export interface UpdateMembershipTypesModuleInput { +export interface UpdateUsersModuleInput { clientMutationId?: string; id: string; - /** An object where the defined keys will be set on the `MembershipTypesModule` being updated. */ - membershipTypesModulePatch: MembershipTypesModulePatch; + /** An object where the defined keys will be set on the `UsersModule` being updated. */ + usersModulePatch: UsersModulePatch; } -/** Represents an update to a `MembershipTypesModule`. Fields that are set will be updated. */ -export interface MembershipTypesModulePatch { +/** Represents an update to a `UsersModule`. Fields that are set will be updated. */ +export interface UsersModulePatch { id?: string; databaseId?: string; schemaId?: string; tableId?: string; tableName?: string; + typeTableId?: string; + typeTableName?: string; + apiName?: string; + privateApiName?: string; } -export interface UpdateUserStateModuleInput { +export interface UpdateWebauthnCredentialsModuleInput { clientMutationId?: string; id: string; - /** An object where the defined keys will be set on the `UserStateModule` being updated. */ - userStateModulePatch: UserStateModulePatch; + /** An object where the defined keys will be set on the `WebauthnCredentialsModule` being updated. */ + webauthnCredentialsModulePatch: WebauthnCredentialsModulePatch; } -/** Represents an update to a `UserStateModule`. Fields that are set will be updated. */ -export interface UserStateModulePatch { +/** Represents an update to a `WebauthnCredentialsModule`. Fields that are set will be updated. */ +export interface WebauthnCredentialsModulePatch { id?: string; databaseId?: string; schemaId?: string; + /** Private schema that hosts SECURITY DEFINER helpers which write to webauthn_credentials (registration / counter-bump / delete). */ + privateSchemaId?: string; tableId?: string; + ownerTableId?: string; tableName?: string; + apiName?: string; + privateApiName?: string; } -export interface UpdateSessionSecretsModuleInput { +export interface UpdateConfigSecretsUserModuleInput { clientMutationId?: string; id: string; - /** An object where the defined keys will be set on the `SessionSecretsModule` being updated. */ - sessionSecretsModulePatch: SessionSecretsModulePatch; + /** An object where the defined keys will be set on the `ConfigSecretsUserModule` being updated. */ + configSecretsUserModulePatch: ConfigSecretsUserModulePatch; } -/** Represents an update to a `SessionSecretsModule`. Fields that are set will be updated. */ -export interface SessionSecretsModulePatch { +/** Represents an update to a `ConfigSecretsUserModule`. Fields that are set will be updated. */ +export interface ConfigSecretsUserModulePatch { id?: string; databaseId?: string; + entityField?: string; schemaId?: string; tableId?: string; tableName?: string; - /** Resolved reference to sessions_module.sessions_table, used to FK session_secrets.session_id with ON DELETE CASCADE. */ - sessionsTableId?: string; + apiName?: string; + privateApiName?: string; } -export interface UpdateConfigSecretsOrgModuleInput { +export interface UpdateCryptoAddressesModuleInput { clientMutationId?: string; id: string; - /** An object where the defined keys will be set on the `ConfigSecretsOrgModule` being updated. */ - configSecretsOrgModulePatch: ConfigSecretsOrgModulePatch; + /** An object where the defined keys will be set on the `CryptoAddressesModule` being updated. */ + cryptoAddressesModulePatch: CryptoAddressesModulePatch; } -/** Represents an update to a `ConfigSecretsOrgModule`. Fields that are set will be updated. */ -export interface ConfigSecretsOrgModulePatch { +/** Represents an update to a `CryptoAddressesModule`. Fields that are set will be updated. */ +export interface CryptoAddressesModulePatch { id?: string; databaseId?: string; schemaId?: string; + privateSchemaId?: string; tableId?: string; + ownerTableId?: string; tableName?: string; + cryptoNetwork?: string; apiName?: string; privateApiName?: string; } -export interface UpdateDevicesModuleInput { +export interface UpdateDenormalizedTableFieldInput { clientMutationId?: string; id: string; - /** An object where the defined keys will be set on the `DevicesModule` being updated. */ - devicesModulePatch: DevicesModulePatch; + /** An object where the defined keys will be set on the `DenormalizedTableField` being updated. */ + denormalizedTableFieldPatch: DenormalizedTableFieldPatch; } -/** Represents an update to a `DevicesModule`. Fields that are set will be updated. */ -export interface DevicesModulePatch { +/** Represents an update to a `DenormalizedTableField`. Fields that are set will be updated. */ +export interface DenormalizedTableFieldPatch { id?: string; databaseId?: string; - schemaId?: string; - userDevicesTableId?: string; - deviceSettingsTableId?: string; - userDevicesTable?: string; - deviceSettingsTable?: string; + tableId?: string; + fieldId?: string; + setIds?: string[]; + refTableId?: string; + refFieldId?: string; + refIds?: string[]; + useUpdates?: boolean; + updateDefaults?: boolean; + funcName?: string; + funcOrder?: number; } -export interface UpdateI18NModuleInput { +export interface UpdateRlsModuleInput { clientMutationId?: string; id: string; - /** An object where the defined keys will be set on the `I18NModule` being updated. */ - i18NModulePatch: I18NModulePatch; + /** An object where the defined keys will be set on the `RlsModule` being updated. */ + rlsModulePatch: RlsModulePatch; } -/** Represents an update to a `I18NModule`. Fields that are set will be updated. */ -export interface I18NModulePatch { +/** Represents an update to a `RlsModule`. Fields that are set will be updated. */ +export interface RlsModulePatch { id?: string; databaseId?: string; schemaId?: string; privateSchemaId?: string; - settingsTableId?: string; + sessionCredentialsTableId?: string; + sessionsTableId?: string; + usersTableId?: string; + authenticate?: string; + authenticateStrict?: string; + currentRole?: string; + currentRoleId?: string; apiName?: string; privateApiName?: string; } -export interface UpdateUserCredentialsModuleInput { +export interface UpdateBlueprintInput { clientMutationId?: string; + /** Unique identifier for this blueprint. */ id: string; - /** An object where the defined keys will be set on the `UserCredentialsModule` being updated. */ - userCredentialsModulePatch: UserCredentialsModulePatch; + /** An object where the defined keys will be set on the `Blueprint` being updated. */ + blueprintPatch: BlueprintPatch; } -/** Represents an update to a `UserCredentialsModule`. Fields that are set will be updated. */ -export interface UserCredentialsModulePatch { +/** Represents an update to a `Blueprint`. Fields that are set will be updated. */ +export interface BlueprintPatch { + /** Unique identifier for this blueprint. */ id?: string; + /** The user who owns this blueprint. */ + ownerId?: string; + /** The database this blueprint is scoped to. Tables created by construct_blueprint() are provisioned in this database. */ databaseId?: string; - schemaId?: string; - tableId?: string; - tableName?: string; - apiName?: string; - privateApiName?: string; + /** Machine-readable name for the blueprint. Must be unique per database. */ + name?: string; + /** Human-readable display name for the blueprint. */ + displayName?: string; + /** Optional description of the blueprint. */ + description?: string; + /** The blueprint definition as a JSONB document. Contains tables[] (each with table_name, optional schema_name, nodes[] for data behaviors, fields[], grants[], and policies[] using $type), relations[] (using $type with source_table/target_table and optional source_schema/target_schema), indexes[] (using table_name + column), and full_text_searches[] (using table_name + field + sources[]). Everything is name-based — no UUIDs in the definition. */ + definition?: unknown; + /** If this blueprint was created by copying a template, the ID of the source template. NULL if built from scratch. */ + templateId?: string; + /** UUIDv5 Merkle root hash of the definition. Computed automatically via trigger from the ordered table_hashes. Used for content-addressable deduplication and provenance tracking. Backend-computed — clients should never set this directly. */ + definitionHash?: string; + /** JSONB map of table names to their individual UUIDv5 content hashes. Each table hash is computed from the canonical jsonb::text of the table entry. Enables structural comparison at the table level across blueprints and templates. Backend-computed via trigger. */ + tableHashes?: unknown; + /** Timestamp when this blueprint was created. */ + createdAt?: string; + /** Timestamp when this blueprint was last modified. */ + updatedAt?: string; } -export interface UpdateUserSettingsModuleInput { +export interface UpdateCryptoAuthModuleInput { clientMutationId?: string; id: string; - /** An object where the defined keys will be set on the `UserSettingsModule` being updated. */ - userSettingsModulePatch: UserSettingsModulePatch; + /** An object where the defined keys will be set on the `CryptoAuthModule` being updated. */ + cryptoAuthModulePatch: CryptoAuthModulePatch; } -/** Represents an update to a `UserSettingsModule`. Fields that are set will be updated. */ -export interface UserSettingsModulePatch { +/** Represents an update to a `CryptoAuthModule`. Fields that are set will be updated. */ +export interface CryptoAuthModulePatch { id?: string; databaseId?: string; schemaId?: string; - tableId?: string; - ownerTableId?: string; - tableName?: string; - apiName?: string; + usersTableId?: string; + secretsTableId?: string; + sessionsTableId?: string; + sessionCredentialsTableId?: string; + addressesTableId?: string; + userField?: string; + cryptoNetwork?: string; + signInRequestChallenge?: string; + signInRecordFailure?: string; + signUpWithKey?: string; + signInWithChallenge?: string; } -export interface UpdateConfigSecretsUserModuleInput { +export interface UpdateBlueprintConstructionInput { clientMutationId?: string; + /** Unique identifier for this construction attempt. */ id: 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 `BlueprintConstruction` being updated. */ + blueprintConstructionPatch: BlueprintConstructionPatch; } -/** Represents an update to a `ConfigSecretsUserModule`. Fields that are set will be updated. */ -export interface ConfigSecretsUserModulePatch { +/** Represents an update to a `BlueprintConstruction`. Fields that are set will be updated. */ +export interface BlueprintConstructionPatch { + /** Unique identifier for this construction attempt. */ id?: string; + /** The blueprint that was constructed. */ + blueprintId?: string; + /** The database the blueprint was constructed into. */ databaseId?: string; + /** The default schema used for tables that did not specify an explicit schema_name. NULL if not yet resolved. */ schemaId?: string; - tableId?: string; - tableName?: string; - configDefinitionsTableId?: string; - apiName?: string; - privateApiName?: string; + /** Execution state of this construction attempt. pending: created but not yet started. constructing: currently executing. constructed: successfully completed. failed: execution failed (see error_details). */ + status?: string; + /** Error message from a failed construction attempt. NULL unless status is failed. */ + errorDetails?: string; + /** Mapping of table names to created table UUIDs, populated after successful construction. Format: {"products": "uuid", "categories": "uuid", ...}. Defaults to empty object. */ + tableMap?: unknown; + /** Immutable snapshot of the definition at construct-time. Preserved so the exact definition that was executed is recorded even if the user later modifies the blueprint definition. */ + constructedDefinition?: unknown; + /** Timestamp when construction successfully completed. NULL until constructed. */ + constructedAt?: string; + /** Timestamp when this construction attempt was created. */ + createdAt?: string; + /** Timestamp when this construction attempt was last modified. */ + updatedAt?: string; } -export interface UpdateConnectedAccountsModuleInput { +export interface UpdateSessionsModuleInput { clientMutationId?: string; id: string; - /** An object where the defined keys will be set on the `ConnectedAccountsModule` being updated. */ - connectedAccountsModulePatch: ConnectedAccountsModulePatch; + /** An object where the defined keys will be set on the `SessionsModule` being updated. */ + sessionsModulePatch: SessionsModulePatch; } -/** Represents an update to a `ConnectedAccountsModule`. Fields that are set will be updated. */ -export interface ConnectedAccountsModulePatch { +/** Represents an update to a `SessionsModule`. Fields that are set will be updated. */ +export interface SessionsModulePatch { id?: string; databaseId?: string; schemaId?: string; - privateSchemaId?: string; - tableId?: string; - ownerTableId?: string; - tableName?: string; - apiName?: string; - privateApiName?: string; + sessionsTableId?: string; + sessionCredentialsTableId?: string; + authSettingsTableId?: string; + usersTableId?: string; + sessionsDefaultExpiration?: IntervalInput; + sessionsTable?: string; + sessionCredentialsTable?: string; + authSettingsTable?: string; } -export interface UpdateEmailsModuleInput { +export interface UpdateSecureTableProvisionInput { clientMutationId?: string; + /** Unique identifier for this provision row. */ id: string; - /** An object where the defined keys will be set on the `EmailsModule` being updated. */ - emailsModulePatch: EmailsModulePatch; + /** An object where the defined keys will be set on the `SecureTableProvision` being updated. */ + secureTableProvisionPatch: SecureTableProvisionPatch; } -/** Represents an update to a `EmailsModule`. Fields that are set will be updated. */ -export interface EmailsModulePatch { +/** Represents an update to a `SecureTableProvision`. Fields that are set will be updated. */ +export interface SecureTableProvisionPatch { + /** Unique identifier for this provision row. */ id?: string; + /** The database this provision belongs to. Required. */ databaseId?: string; + /** Target schema for the table. Defaults to uuid_nil(); the trigger resolves this to the app_public schema if not explicitly provided. */ schemaId?: string; - privateSchemaId?: string; + /** Target table to provision. Defaults to uuid_nil(); the trigger creates or resolves the table via table_name if not explicitly provided. */ tableId?: string; - ownerTableId?: string; + /** Name of the target table. Used to create or look up the table when table_id is not provided. If omitted, it is backfilled from the resolved table. */ tableName?: string; - apiName?: string; - privateApiName?: string; + /** Array of node objects to apply to the table. Each element is a jsonb object with a required "$type" key (one of: DataId, DataDirectOwner, DataEntityMembership, DataOwnershipInEntity, DataTimestamps, DataPeoplestamps, DataPublishable, DataSoftDelete, DataEmbedding, DataFullTextSearch, DataSlug, etc.) and an optional "data" key containing generator-specific configuration. Supports multiple nodes per row, matching the blueprint definition format. Example: [{"$type": "DataId"}, {"$type": "DataTimestamps"}, {"$type": "DataDirectOwner", "data": {"owner_field_name": "author_id"}}]. Defaults to '[]' (no node processing). */ + nodes?: unknown; + /** If true and Row Level Security is not yet enabled on the target table, enable it. Automatically set to true by the trigger when policies[] is non-empty. Defaults to true. */ + useRls?: boolean; + /** PostgreSQL array of jsonb field definition objects to create on the target table. Each object has keys: "name" (text, required), "type" (text, required), "default" (text, optional), "is_required" (boolean, optional, defaults to false), "min" (float, optional), "max" (float, optional), "regexp" (text, optional), "index" (boolean, optional, defaults to false — creates a btree index on the field). min/max generate CHECK constraints: for text/citext they constrain character_length, for integer/float types they constrain the value. regexp generates a CHECK (col ~ pattern) constraint for text/citext. Fields are created via metaschema.create_field() after any node_type generator runs, and their IDs are appended to out_fields. Example: ARRAY['{"name":"username","type":"citext","max":256,"regexp":"^[a-z0-9_]+$"}'::jsonb, '{"name":"score","type":"integer","min":0,"max":100}'::jsonb]. Defaults to '{}' (no additional fields). */ + fields?: unknown[]; + /** Array of grant objects defining table privileges. Each element is a jsonb object with keys: "roles" (text[], required — database roles to grant to, e.g. ["authenticated","admin"]), "privileges" (jsonb[], required — array of [privilege, columns] tuples, e.g. [["select","*"],["insert","*"]]). "*" means all columns; an array means column-level grant. Supports per-role privilege targeting: different grant entries can target different roles with different privileges. Example: [{"roles":["authenticated"],"privileges":[["select","*"]]},{"roles":["admin"],"privileges":[["insert","*"],["update","*"],["delete","*"]]}]. Defaults to '[]' (no grants). When policies[] omit explicit privileges/policy_role, they fall back to the verbs and first role from grants[]. */ + grants?: unknown; + /** Array of policy objects to create on the target table. Each element is a jsonb object with keys: "$type" (text, required — the Authz* policy generator type, e.g. AuthzEntityMembership, AuthzMembership, AuthzDirectOwner, AuthzPublishable, AuthzAllowAll), "data" (jsonb, optional — opaque configuration passed to metaschema.create_policy(), structure varies by type), "privileges" (text[], optional — privileges the policy applies to, e.g. ["select","insert"]; if omitted, derived from grants[] privilege verbs), "policy_role" (text, optional — role the policy targets; if omitted, falls back to first role in first grants[] entry, or 'authenticated' if no grants), "permissive" (boolean, optional — PERMISSIVE or RESTRICTIVE; defaults to true), "policy_name" (text, optional — custom suffix for the generated policy name; if omitted, auto-derived from $type by stripping Authz prefix). Supports multiple policies per row. Example: [{"$type": "AuthzEntityMembership", "data": {"entity_field": "owner_id", "membership_type": 3}, "privileges": ["select", "insert"]}, {"$type": "AuthzDirectOwner", "data": {"entity_field": "actor_id"}, "privileges": ["update", "delete"]}]. Defaults to '[]' (no policies created). When non-empty, the trigger automatically enables RLS. */ + policies?: unknown; + /** Output column populated by the trigger after field creation. Contains the UUIDs of the metaschema fields created on the target table by this provision row's nodes. NULL when nodes is empty or before the trigger runs. Callers should not set this directly. */ + outFields?: string[]; } -export interface UpdatePhoneNumbersModuleInput { +export interface UpdateIdentityProvidersModuleInput { clientMutationId?: string; id: string; - /** An object where the defined keys will be set on the `PhoneNumbersModule` being updated. */ - phoneNumbersModulePatch: PhoneNumbersModulePatch; + /** An object where the defined keys will be set on the `IdentityProvidersModule` being updated. */ + identityProvidersModulePatch: IdentityProvidersModulePatch; } -/** Represents an update to a `PhoneNumbersModule`. Fields that are set will be updated. */ -export interface PhoneNumbersModulePatch { +/** Represents an update to a `IdentityProvidersModule`. Fields that are set will be updated. */ +export interface IdentityProvidersModulePatch { id?: string; databaseId?: string; + entityField?: string; schemaId?: string; + /** Private schema that hosts SECURITY DEFINER admin helpers which write to identity_providers (create / update / enable / disable / rotate-secret / delete) and the per-app quota check. */ privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; tableId?: string; - ownerTableId?: string; tableName?: string; apiName?: string; privateApiName?: string; + scope?: string; + prefix?: string; + entityTableId?: string; } -export interface UpdateRateLimitsModuleInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `RateLimitsModule` being updated. */ - rateLimitsModulePatch: RateLimitsModulePatch; -} -/** Represents an update to a `RateLimitsModule`. Fields that are set will be updated. */ -export interface RateLimitsModulePatch { - id?: string; - databaseId?: string; - schemaId?: string; - rateLimitSettingsTableId?: string; - ipRateLimitsTableId?: string; - rateLimitsTableId?: string; - rateLimitSettingsTable?: string; - ipRateLimitsTable?: string; - rateLimitsTable?: string; -} -export interface UpdateUsersModuleInput { +export interface UpdateIntegrationProvidersModuleInput { clientMutationId?: string; id: string; - /** An object where the defined keys will be set on the `UsersModule` being updated. */ - usersModulePatch: UsersModulePatch; + /** An object where the defined keys will be set on the `IntegrationProvidersModule` being updated. */ + integrationProvidersModulePatch: IntegrationProvidersModulePatch; } -/** Represents an update to a `UsersModule`. Fields that are set will be updated. */ -export interface UsersModulePatch { +/** Represents an update to a `IntegrationProvidersModule`. Fields that are set will be updated. */ +export interface IntegrationProvidersModulePatch { id?: string; databaseId?: string; + entityField?: string; schemaId?: string; + privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; tableId?: string; tableName?: string; - typeTableId?: string; - typeTableName?: string; apiName?: string; privateApiName?: string; + scope?: string; + prefix?: string; + entityTableId?: string; } -export interface UpdateWebauthnCredentialsModuleInput { +export interface UpdateDbPoolConfigInput { clientMutationId?: string; id: string; - /** An object where the defined keys will be set on the `WebauthnCredentialsModule` being updated. */ - webauthnCredentialsModulePatch: WebauthnCredentialsModulePatch; + /** An object where the defined keys will be set on the `DbPoolConfig` being updated. */ + dbPoolConfigPatch: DbPoolConfigPatch; } -/** Represents an update to a `WebauthnCredentialsModule`. Fields that are set will be updated. */ -export interface WebauthnCredentialsModulePatch { +/** Represents an update to a `DbPoolConfig`. Fields that are set will be updated. */ +export interface DbPoolConfigPatch { id?: string; - databaseId?: string; - schemaId?: string; - /** Private schema that hosts SECURITY DEFINER helpers which write to webauthn_credentials (registration / counter-bump / delete). */ - privateSchemaId?: string; - tableId?: string; - ownerTableId?: string; - tableName?: string; - apiName?: string; - privateApiName?: string; + /** Slug of the db_presets catalog row this pool serves */ + presetSlug?: string; + /** Base domain used when provisioning warm databases */ + domain?: string; + /** Platform pool service org that owns warm databases until they are claimed */ + poolOwnerId?: string; + /** Minimum number of ready warm databases the reconciler maintains */ + min?: number; + /** Maximum number of warming + ready databases the reconciler will keep */ + max?: number; + /** How long a ready warm database stays claimable before it expires */ + warmTtl?: IntervalInput; + /** When false the reconciler stops warming and the claim path falls through to cold provisioning */ + enabled?: boolean; + createdAt?: string; + updatedAt?: string; } -export interface UpdateCryptoAddressesModuleInput { +export interface UpdateRealtimeModuleInput { clientMutationId?: string; id: string; - /** An object where the defined keys will be set on the `CryptoAddressesModule` being updated. */ - cryptoAddressesModulePatch: CryptoAddressesModulePatch; + /** An object where the defined keys will be set on the `RealtimeModule` being updated. */ + realtimeModulePatch: RealtimeModulePatch; } -/** Represents an update to a `CryptoAddressesModule`. Fields that are set will be updated. */ -export interface CryptoAddressesModulePatch { +/** Represents an update to a `RealtimeModule`. Fields that are set will be updated. */ +export interface RealtimeModulePatch { id?: string; databaseId?: string; schemaId?: string; privateSchemaId?: string; - tableId?: string; - ownerTableId?: string; - tableName?: string; - cryptoNetwork?: string; + subscriptionsSchemaId?: string; + changeLogTableId?: string; + listenerNodeTableId?: string; + sourceRegistryTableId?: string; + retentionHours?: number; + premake?: number; + interval?: string; + notifyChannel?: string; apiName?: string; privateApiName?: string; } -export interface UpdateDenormalizedTableFieldInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `DenormalizedTableField` being updated. */ - denormalizedTableFieldPatch: DenormalizedTableFieldPatch; -} -/** Represents an update to a `DenormalizedTableField`. Fields that are set will be updated. */ -export interface DenormalizedTableFieldPatch { - id?: string; - databaseId?: string; - tableId?: string; - fieldId?: string; - setIds?: string[]; - refTableId?: string; - refFieldId?: string; - refIds?: string[]; - useUpdates?: boolean; - updateDefaults?: boolean; - funcName?: string; - funcOrder?: number; -} -export interface UpdateIdentityProvidersModuleInput { +export interface UpdateInfraSecretsModuleInput { clientMutationId?: string; id: string; - /** An object where the defined keys will be set on the `IdentityProvidersModule` being updated. */ - identityProvidersModulePatch: IdentityProvidersModulePatch; + /** An object where the defined keys will be set on the `InfraSecretsModule` being updated. */ + infraSecretsModulePatch: InfraSecretsModulePatch; } -/** Represents an update to a `IdentityProvidersModule`. Fields that are set will be updated. */ -export interface IdentityProvidersModulePatch { +/** Represents an update to a `InfraSecretsModule`. Fields that are set will be updated. */ +export interface InfraSecretsModulePatch { id?: string; databaseId?: string; schemaId?: string; - /** Private schema that hosts SECURITY DEFINER admin helpers which write to identity_providers (create / update / enable / disable / rotate-secret / delete) and the per-app quota check. */ privateSchemaId?: string; publicSchemaName?: string; privateSchemaName?: string; - tableId?: string; - tableName?: string; + secretsTableId?: string; + secretsTableName?: string; apiName?: string; privateApiName?: string; scope?: string; prefix?: string; entityTableId?: string; + entityField?: string; + policies?: unknown; + provisions?: unknown; } -export interface UpdateRlsModuleInput { +export interface UpdateInternalSecretsModuleInput { clientMutationId?: string; id: string; - /** An object where the defined keys will be set on the `RlsModule` being updated. */ - rlsModulePatch: RlsModulePatch; + /** An object where the defined keys will be set on the `InternalSecretsModule` being updated. */ + internalSecretsModulePatch: InternalSecretsModulePatch; } -/** Represents an update to a `RlsModule`. Fields that are set will be updated. */ -export interface RlsModulePatch { +/** Represents an update to a `InternalSecretsModule`. Fields that are set will be updated. */ +export interface InternalSecretsModulePatch { id?: string; databaseId?: string; schemaId?: string; privateSchemaId?: string; - sessionCredentialsTableId?: string; - sessionsTableId?: string; - usersTableId?: string; - authenticate?: string; - authenticateStrict?: string; - currentRole?: string; - currentRoleId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + internalSecretsTableId?: string; + internalSecretsTableName?: string; apiName?: string; privateApiName?: string; + scope?: string; + prefix?: string; + entityTableId?: string; + entityField?: string; + policies?: unknown; + provisions?: unknown; } -export interface UpdateBlueprintInput { +export interface UpdateDbPresetModuleInput { clientMutationId?: string; - /** Unique identifier for this blueprint. */ id: string; - /** An object where the defined keys will be set on the `Blueprint` being updated. */ - blueprintPatch: BlueprintPatch; + /** An object where the defined keys will be set on the `DbPresetModule` being updated. */ + dbPresetModulePatch: DbPresetModulePatch; } -/** Represents an update to a `Blueprint`. Fields that are set will be updated. */ -export interface BlueprintPatch { - /** Unique identifier for this blueprint. */ +/** Represents an update to a `DbPresetModule`. Fields that are set will be updated. */ +export interface DbPresetModulePatch { id?: string; - /** The user who owns this blueprint. */ - ownerId?: string; - /** The database this blueprint is scoped to. Tables created by construct_blueprint() are provisioned in this database. */ databaseId?: string; - /** Machine-readable name for the blueprint. Must be unique per database. */ - name?: string; - /** Human-readable display name for the blueprint. */ - displayName?: string; - /** Optional description of the blueprint. */ - description?: string; - /** The blueprint definition as a JSONB document. Contains tables[] (each with table_name, optional schema_name, nodes[] for data behaviors, fields[], grants[], and policies[] using $type), relations[] (using $type with source_table/target_table and optional source_schema/target_schema), indexes[] (using table_name + column), and full_text_searches[] (using table_name + field + sources[]). Everything is name-based — no UUIDs in the definition. */ - definition?: unknown; - /** If this blueprint was created by copying a template, the ID of the source template. NULL if built from scratch. */ - templateId?: string; - /** UUIDv5 Merkle root hash of the definition. Computed automatically via trigger from the ordered table_hashes. Used for content-addressable deduplication and provenance tracking. Backend-computed — clients should never set this directly. */ - definitionHash?: string; - /** JSONB map of table names to their individual UUIDv5 content hashes. Each table hash is computed from the canonical jsonb::text of the table entry. Enables structural comparison at the table level across blueprints and templates. Backend-computed via trigger. */ - tableHashes?: unknown; - /** Timestamp when this blueprint was created. */ + publicSchemaId?: string; + privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + scope?: string; + prefix?: string; + merkleStoreModuleId?: string; + dbPresetsTableId?: string; + storeName?: string; + apiName?: string; + privateApiName?: string; + entityTableId?: string; + policies?: unknown; + provisions?: unknown; createdAt?: string; - /** Timestamp when this blueprint was last modified. */ - updatedAt?: string; } -export interface UpdateCryptoAuthModuleInput { +export interface UpdateRateLimitMetersModuleInput { clientMutationId?: string; id: string; - /** An object where the defined keys will be set on the `CryptoAuthModule` being updated. */ - cryptoAuthModulePatch: CryptoAuthModulePatch; + /** An object where the defined keys will be set on the `RateLimitMetersModule` being updated. */ + rateLimitMetersModulePatch: RateLimitMetersModulePatch; } -/** Represents an update to a `CryptoAuthModule`. Fields that are set will be updated. */ -export interface CryptoAuthModulePatch { +/** Represents an update to a `RateLimitMetersModule`. Fields that are set will be updated. */ +export interface RateLimitMetersModulePatch { id?: string; databaseId?: string; schemaId?: string; - usersTableId?: string; - secretsTableId?: string; - sessionsTableId?: string; - sessionCredentialsTableId?: string; - addressesTableId?: string; - userField?: string; - cryptoNetwork?: string; - signInRequestChallenge?: string; - signInRecordFailure?: string; - signUpWithKey?: string; - signInWithChallenge?: string; + privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + rateLimitStateTableId?: string; + rateLimitStateTableName?: string; + rateLimitOverridesTableId?: string; + rateLimitOverridesTableName?: string; + rateWindowLimitsTableId?: string; + rateWindowLimitsTableName?: string; + checkRateLimitFunction?: string; + prefix?: string; + defaultPermissions?: string[]; + apiName?: string; + privateApiName?: string; } -export interface UpdateBlueprintConstructionInput { +export interface UpdateInfraConfigModuleInput { clientMutationId?: string; - /** Unique identifier for this construction attempt. */ id: string; - /** An object where the defined keys will be set on the `BlueprintConstruction` being updated. */ - blueprintConstructionPatch: BlueprintConstructionPatch; + /** An object where the defined keys will be set on the `InfraConfigModule` being updated. */ + infraConfigModulePatch: InfraConfigModulePatch; } -/** Represents an update to a `BlueprintConstruction`. Fields that are set will be updated. */ -export interface BlueprintConstructionPatch { - /** Unique identifier for this construction attempt. */ +/** Represents an update to a `InfraConfigModule`. Fields that are set will be updated. */ +export interface InfraConfigModulePatch { id?: string; - /** The blueprint that was constructed. */ - blueprintId?: string; - /** The database the blueprint was constructed into. */ databaseId?: string; - /** The default schema used for tables that did not specify an explicit schema_name. NULL if not yet resolved. */ + entityField?: string; schemaId?: string; - /** Execution state of this construction attempt. pending: created but not yet started. constructing: currently executing. constructed: successfully completed. failed: execution failed (see error_details). */ - status?: string; - /** Error message from a failed construction attempt. NULL unless status is failed. */ - errorDetails?: string; - /** Mapping of table names to created table UUIDs, populated after successful construction. Format: {"products": "uuid", "categories": "uuid", ...}. Defaults to empty object. */ - tableMap?: unknown; - /** Immutable snapshot of the definition at construct-time. Preserved so the exact definition that was executed is recorded even if the user later modifies the blueprint definition. */ - constructedDefinition?: unknown; - /** Timestamp when construction successfully completed. NULL until constructed. */ - constructedAt?: string; - /** Timestamp when this construction attempt was created. */ - createdAt?: string; - /** Timestamp when this construction attempt was last modified. */ - updatedAt?: string; + privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + configTableId?: string; + configTableName?: string; + apiName?: string; + privateApiName?: string; + scope?: string; + prefix?: string; + entityTableId?: string; + policies?: unknown; + provisions?: unknown; } -export interface UpdateSessionsModuleInput { +export interface UpdateWebauthnAuthModuleInput { clientMutationId?: string; id: string; - /** An object where the defined keys will be set on the `SessionsModule` being updated. */ - sessionsModulePatch: SessionsModulePatch; + /** An object where the defined keys will be set on the `WebauthnAuthModule` being updated. */ + webauthnAuthModulePatch: WebauthnAuthModulePatch; } -/** Represents an update to a `SessionsModule`. Fields that are set will be updated. */ -export interface SessionsModulePatch { +/** Represents an update to a `WebauthnAuthModule`. Fields that are set will be updated. */ +export interface WebauthnAuthModulePatch { id?: string; databaseId?: string; schemaId?: string; + usersTableId?: string; + credentialsTableId?: string; sessionsTableId?: string; sessionCredentialsTableId?: string; + sessionSecretsTableId?: string; authSettingsTableId?: string; - usersTableId?: string; - sessionsDefaultExpiration?: IntervalInput; - sessionsTable?: string; - sessionCredentialsTable?: string; - authSettingsTable?: string; + rpId?: string; + rpName?: string; + originAllowlist?: string[]; + attestationType?: string; + requireUserVerification?: boolean; + residentKey?: string; + challengeExpiry?: IntervalInput; } -export interface UpdateSecureTableProvisionInput { +export interface UpdatePrincipalAuthModuleInput { clientMutationId?: string; - /** Unique identifier for this provision row. */ id: string; - /** An object where the defined keys will be set on the `SecureTableProvision` being updated. */ - secureTableProvisionPatch: SecureTableProvisionPatch; + /** An object where the defined keys will be set on the `PrincipalAuthModule` being updated. */ + principalAuthModulePatch: PrincipalAuthModulePatch; } -/** Represents an update to a `SecureTableProvision`. Fields that are set will be updated. */ -export interface SecureTableProvisionPatch { - /** Unique identifier for this provision row. */ +/** Represents an update to a `PrincipalAuthModule`. Fields that are set will be updated. */ +export interface PrincipalAuthModulePatch { id?: string; - /** The database this provision belongs to. Required. */ databaseId?: string; - /** Target schema for the table. Defaults to uuid_nil(); the trigger resolves this to the app_public schema if not explicitly provided. */ schemaId?: string; - /** Target table to provision. Defaults to uuid_nil(); the trigger creates or resolves the table via table_name if not explicitly provided. */ - tableId?: string; - /** Name of the target table. Used to create or look up the table when table_id is not provided. If omitted, it is backfilled from the resolved table. */ - tableName?: string; - /** Array of node objects to apply to the table. Each element is a jsonb object with a required "$type" key (one of: DataId, DataDirectOwner, DataEntityMembership, DataOwnershipInEntity, DataTimestamps, DataPeoplestamps, DataPublishable, DataSoftDelete, DataEmbedding, DataFullTextSearch, DataSlug, etc.) and an optional "data" key containing generator-specific configuration. Supports multiple nodes per row, matching the blueprint definition format. Example: [{"$type": "DataId"}, {"$type": "DataTimestamps"}, {"$type": "DataDirectOwner", "data": {"owner_field_name": "author_id"}}]. Defaults to '[]' (no node processing). */ - nodes?: unknown; - /** If true and Row Level Security is not yet enabled on the target table, enable it. Automatically set to true by the trigger when policies[] is non-empty. Defaults to true. */ - useRls?: boolean; - /** PostgreSQL array of jsonb field definition objects to create on the target table. Each object has keys: "name" (text, required), "type" (text, required), "default" (text, optional), "is_required" (boolean, optional, defaults to false), "min" (float, optional), "max" (float, optional), "regexp" (text, optional), "index" (boolean, optional, defaults to false — creates a btree index on the field). min/max generate CHECK constraints: for text/citext they constrain character_length, for integer/float types they constrain the value. regexp generates a CHECK (col ~ pattern) constraint for text/citext. Fields are created via metaschema.create_field() after any node_type generator runs, and their IDs are appended to out_fields. Example: ARRAY['{"name":"username","type":"citext","max":256,"regexp":"^[a-z0-9_]+$"}'::jsonb, '{"name":"score","type":"integer","min":0,"max":100}'::jsonb]. Defaults to '{}' (no additional fields). */ - fields?: unknown[]; - /** Array of grant objects defining table privileges. Each element is a jsonb object with keys: "roles" (text[], required — database roles to grant to, e.g. ["authenticated","admin"]), "privileges" (jsonb[], required — array of [privilege, columns] tuples, e.g. [["select","*"],["insert","*"]]). "*" means all columns; an array means column-level grant. Supports per-role privilege targeting: different grant entries can target different roles with different privileges. Example: [{"roles":["authenticated"],"privileges":[["select","*"]]},{"roles":["admin"],"privileges":[["insert","*"],["update","*"],["delete","*"]]}]. Defaults to '[]' (no grants). When policies[] omit explicit privileges/policy_role, they fall back to the verbs and first role from grants[]. */ - grants?: unknown; - /** Array of policy objects to create on the target table. Each element is a jsonb object with keys: "$type" (text, required — the Authz* policy generator type, e.g. AuthzEntityMembership, AuthzMembership, AuthzDirectOwner, AuthzPublishable, AuthzAllowAll), "data" (jsonb, optional — opaque configuration passed to metaschema.create_policy(), structure varies by type), "privileges" (text[], optional — privileges the policy applies to, e.g. ["select","insert"]; if omitted, derived from grants[] privilege verbs), "policy_role" (text, optional — role the policy targets; if omitted, falls back to first role in first grants[] entry, or 'authenticated' if no grants), "permissive" (boolean, optional — PERMISSIVE or RESTRICTIVE; defaults to true), "policy_name" (text, optional — custom suffix for the generated policy name; if omitted, auto-derived from $type by stripping Authz prefix). Supports multiple policies per row. Example: [{"$type": "AuthzEntityMembership", "data": {"entity_field": "owner_id", "membership_type": 3}, "privileges": ["select", "insert"]}, {"$type": "AuthzDirectOwner", "data": {"entity_field": "actor_id"}, "privileges": ["update", "delete"]}]. Defaults to '[]' (no policies created). When non-empty, the trigger automatically enables RLS. */ - policies?: unknown; - /** Output column populated by the trigger after field creation. Contains the UUIDs of the metaschema fields created on the target table by this provision row's nodes. NULL when nodes is empty or before the trigger runs. Callers should not set this directly. */ - outFields?: string[]; + principalsTableId?: string; + principalEntitiesTableId?: string; + principalScopeOverridesTableId?: string; + usersTableId?: string; + sessionsTableId?: string; + sessionCredentialsTableId?: string; + auditsTableId?: string; + principalsTableName?: string; + createPrincipalFunction?: string; + deletePrincipalFunction?: string; + createOrgPrincipalFunction?: string; + deleteOrgPrincipalFunction?: string; + createOrgApiKeyFunction?: string; + revokeOrgApiKeyFunction?: string; + apiName?: string; } -export interface UpdateDatabaseProvisionModuleInput { +export interface UpdateDbPoolInput { clientMutationId?: string; id: string; - /** An object where the defined keys will be set on the `DatabaseProvisionModule` being updated. */ - databaseProvisionModulePatch: DatabaseProvisionModulePatch; + /** An object where the defined keys will be set on the `DbPool` being updated. */ + dbPoolPatch: DbPoolPatch; } -/** Represents an update to a `DatabaseProvisionModule`. Fields that are set will be updated. */ -export interface DatabaseProvisionModulePatch { +/** Represents an update to a `DbPool`. Fields that are set will be updated. */ +export interface DbPoolPatch { id?: string; - /** The name for the new database */ - databaseName?: string; - /** UUID of the user who owns this database */ - ownerId?: string; - /** Subdomain prefix for the database. If null, auto-generated using unique_names + random chars */ - subdomain?: string; - /** Base domain for the database (e.g., example.com) */ - domain?: string; - /** JSONB array of modules to install. Each element is either a string ("users_module") or a [name, options] tuple (["permissions_module", {"scope": "app"}]) */ - modules?: unknown; - /** Additional configuration options for provisioning */ - options?: unknown; - /** When true, copies the owner user and password hash from source database to the newly provisioned database */ - bootstrapUser?: boolean; - /** Current status: pending, in_progress, completed, or failed */ + /** Slug of the db_presets catalog row this entry was baked from */ + presetSlug?: string; + /** The db_presets merkle commit_id the warm database was baked from; a mismatch with the current head marks the entry stale */ + presetCommitId?: string; + databaseId?: string; + /** Lifecycle: warming, ready, claimed, stale, expired, or failed */ status?: string; errorMessage?: string; - /** The ID of the provisioned database (set by trigger before RLS check) */ - databaseId?: string; + /** When a ready entry expires (set from db_pool_config.warm_ttl at warm time) */ + expiresAt?: string; + /** User the database was transferred to at claim time */ + claimedBy?: string; + claimedAt?: string; + /** Status of the deferred owner bootstrap job after claim: not_requested, pending, completed, or failed */ + bootstrapStatus?: string; + bootstrapError?: string; createdAt?: string; updatedAt?: string; - completedAt?: string; } -export interface UpdateConfigSecretsModuleInput { +export interface UpdateFunctionModuleInput { clientMutationId?: string; id: string; - /** An object where the defined keys will be set on the `ConfigSecretsModule` being updated. */ - configSecretsModulePatch: ConfigSecretsModulePatch; + /** An object where the defined keys will be set on the `FunctionModule` being updated. */ + functionModulePatch: FunctionModulePatch; } -/** Represents an update to a `ConfigSecretsModule`. Fields that are set will be updated. */ -export interface ConfigSecretsModulePatch { +/** Represents an update to a `FunctionModule`. Fields that are set will be updated. */ +export interface FunctionModulePatch { id?: string; databaseId?: string; + entityField?: string; schemaId?: string; privateSchemaId?: string; publicSchemaName?: string; privateSchemaName?: string; - tableId?: string; - configDefinitionsTableId?: string; - tableName?: string; + definitionsTableId?: string; + definitionsTableName?: string; apiName?: string; privateApiName?: string; scope?: string; @@ -7834,7 +8784,7 @@ export interface ConfigSecretsModulePatch { entityTableId?: string; policies?: unknown; provisions?: unknown; - hasConfig?: boolean; + defaultPermissions?: string[]; } export interface UpdateGraphModuleInput { clientMutationId?: string; @@ -7846,6 +8796,7 @@ export interface UpdateGraphModuleInput { export interface GraphModulePatch { id?: string; databaseId?: string; + entityField?: string; publicSchemaId?: string; privateSchemaId?: string; publicSchemaName?: string; @@ -7872,6 +8823,7 @@ export interface UpdateMerkleStoreModuleInput { export interface MerkleStoreModulePatch { id?: string; databaseId?: string; + entityField?: string; schemaId?: string; privateSchemaId?: string; publicSchemaName?: string; @@ -7886,81 +8838,47 @@ export interface MerkleStoreModulePatch { scope?: string; functionPrefix?: string; permissionKey?: string; - createdAt?: string; -} -export interface UpdateRateLimitMetersModuleInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `RateLimitMetersModule` being updated. */ - rateLimitMetersModulePatch: RateLimitMetersModulePatch; -} -/** Represents an update to a `RateLimitMetersModule`. Fields that are set will be updated. */ -export interface RateLimitMetersModulePatch { - id?: string; - databaseId?: string; - schemaId?: string; - privateSchemaId?: string; - publicSchemaName?: string; - privateSchemaName?: string; - rateLimitStateTableId?: string; - rateLimitStateTableName?: string; - rateLimitOverridesTableId?: string; - rateLimitOverridesTableName?: string; - rateWindowLimitsTableId?: string; - rateWindowLimitsTableName?: string; - checkRateLimitFunction?: string; - prefix?: string; - defaultPermissions?: string[]; - apiName?: string; - privateApiName?: string; -} -export interface UpdateRealtimeModuleInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `RealtimeModule` being updated. */ - realtimeModulePatch: RealtimeModulePatch; -} -/** Represents an update to a `RealtimeModule`. Fields that are set will be updated. */ -export interface RealtimeModulePatch { - id?: string; - databaseId?: string; - schemaId?: string; - privateSchemaId?: string; - subscriptionsSchemaId?: string; - changeLogTableId?: string; - listenerNodeTableId?: string; - sourceRegistryTableId?: string; - retentionHours?: number; - premake?: number; - interval?: string; - notifyChannel?: string; - apiName?: string; - privateApiName?: string; + createdAt?: string; } -export interface UpdateWebauthnAuthModuleInput { +export interface UpdateDatabaseProvisionModuleInput { clientMutationId?: string; id: string; - /** An object where the defined keys will be set on the `WebauthnAuthModule` being updated. */ - webauthnAuthModulePatch: WebauthnAuthModulePatch; + /** An object where the defined keys will be set on the `DatabaseProvisionModule` being updated. */ + databaseProvisionModulePatch: DatabaseProvisionModulePatch; } -/** Represents an update to a `WebauthnAuthModule`. Fields that are set will be updated. */ -export interface WebauthnAuthModulePatch { +/** Represents an update to a `DatabaseProvisionModule`. Fields that are set will be updated. */ +export interface DatabaseProvisionModulePatch { id?: string; + /** The name for the new database */ + databaseName?: string; + /** UUID of the user who owns this database */ + ownerId?: string; + /** Subdomain prefix for the database. If null, auto-generated using unique_names + random chars */ + subdomain?: string; + /** Base domain for the database (e.g., example.com) */ + domain?: string; + /** JSONB array of modules to install. Each element is either a string ("users_module") or a [name, options] tuple (["permissions_module", {"scope": "app"}]) */ + modules?: unknown; + /** Additional configuration options for provisioning */ + options?: unknown; + /** When true, copies the owner user and password hash from source database to the newly provisioned database */ + bootstrapUser?: boolean; + /** Current status: pending, in_progress, completed, or failed */ + status?: string; + errorMessage?: string; + /** The database the owner user is copied from during bootstrap (captured from JWT context at provision time) */ + sourceDatabaseId?: string; + /** Status of the deferred owner bootstrap job: not_requested, pending, completed, or failed */ + bootstrapStatus?: string; + /** Error message from the most recent failed bootstrap attempt */ + bootstrapError?: string; + /** The ID of the provisioned database (set by trigger before RLS check) */ databaseId?: string; - schemaId?: string; - usersTableId?: string; - credentialsTableId?: string; - sessionsTableId?: string; - sessionCredentialsTableId?: string; - sessionSecretsTableId?: string; - authSettingsTableId?: string; - rpId?: string; - rpName?: string; - originAllowlist?: string[]; - attestationType?: string; - requireUserVerification?: boolean; - residentKey?: string; - challengeExpiry?: IntervalInput; + createdAt?: string; + updatedAt?: string; + completedAt?: string; + /** 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; } export interface UpdateFunctionInvocationModuleInput { clientMutationId?: string; @@ -7972,6 +8890,7 @@ export interface UpdateFunctionInvocationModuleInput { export interface FunctionInvocationModulePatch { id?: string; databaseId?: string; + entityField?: string; schemaId?: string; privateSchemaId?: string; publicSchemaName?: string; @@ -7989,33 +8908,6 @@ export interface FunctionInvocationModulePatch { provisions?: unknown; defaultPermissions?: string[]; } -export interface UpdateFunctionModuleInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `FunctionModule` being updated. */ - functionModulePatch: FunctionModulePatch; -} -/** Represents an update to a `FunctionModule`. Fields that are set will be updated. */ -export interface FunctionModulePatch { - id?: string; - databaseId?: string; - schemaId?: string; - privateSchemaId?: string; - publicSchemaName?: string; - privateSchemaName?: string; - definitionsTableId?: string; - secretDefinitionsTableId?: string; - definitionsTableName?: string; - secretDefinitionsTableName?: string; - apiName?: string; - privateApiName?: string; - scope?: string; - prefix?: string; - entityTableId?: string; - policies?: unknown; - provisions?: unknown; - defaultPermissions?: string[]; -} export interface UpdateInvitesModuleInput { clientMutationId?: string; id: string; @@ -8026,6 +8918,7 @@ export interface UpdateInvitesModuleInput { export interface InvitesModulePatch { id?: string; databaseId?: string; + entityField?: string; schemaId?: string; privateSchemaId?: string; publicSchemaName?: string; @@ -8043,32 +8936,63 @@ export interface InvitesModulePatch { apiName?: string; privateApiName?: string; } -export interface UpdatePrincipalAuthModuleInput { +export interface UpdateNamespaceModuleInput { clientMutationId?: string; id: string; - /** An object where the defined keys will be set on the `PrincipalAuthModule` being updated. */ - principalAuthModulePatch: PrincipalAuthModulePatch; + /** An object where the defined keys will be set on the `NamespaceModule` being updated. */ + namespaceModulePatch: NamespaceModulePatch; } -/** Represents an update to a `PrincipalAuthModule`. Fields that are set will be updated. */ -export interface PrincipalAuthModulePatch { +/** Represents an update to a `NamespaceModule`. Fields that are set will be updated. */ +export interface NamespaceModulePatch { id?: string; databaseId?: string; + entityField?: string; schemaId?: string; - principalsTableId?: string; - principalEntitiesTableId?: string; - principalScopeOverridesTableId?: string; - usersTableId?: string; - sessionsTableId?: string; - sessionCredentialsTableId?: string; - auditsTableId?: string; - principalsTableName?: string; - createPrincipalFunction?: string; - deletePrincipalFunction?: string; - createOrgPrincipalFunction?: string; - deleteOrgPrincipalFunction?: string; - createOrgApiKeyFunction?: string; - revokeOrgApiKeyFunction?: string; + privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + namespacesTableId?: string; + namespaceEventsTableId?: string; + namespacesTableName?: string; + namespaceEventsTableName?: string; + apiName?: string; + privateApiName?: string; + scope?: string; + prefix?: string; + entityTableId?: string; + policies?: unknown; + provisions?: unknown; + defaultPermissions?: string[]; +} +export interface UpdatePlansModuleInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `PlansModule` being updated. */ + plansModulePatch: PlansModulePatch; +} +/** Represents an update to a `PlansModule`. Fields that are set will be updated. */ +export interface PlansModulePatch { + id?: string; + databaseId?: string; + schemaId?: string; + privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + plansTableId?: string; + plansTableName?: string; + planLimitsTableId?: string; + planLimitsTableName?: string; + planPricingTableId?: string; + planOverridesTableId?: string; + planMeterLimitsTableId?: string; + planCapsTableId?: string; + applyPlanFunction?: string; + applyPlanAggregateFunction?: string; + applyBillingPlanFunction?: string; + applyPlanCapsFunction?: string; + prefix?: string; apiName?: string; + privateApiName?: string; } export interface UpdateComputeLogModuleInput { clientMutationId?: string; @@ -8080,6 +9004,7 @@ export interface UpdateComputeLogModuleInput { export interface ComputeLogModulePatch { id?: string; databaseId?: string; + entityField?: string; schemaId?: string; privateSchemaId?: string; publicSchemaName?: string; @@ -8108,6 +9033,7 @@ export interface UpdateInferenceLogModuleInput { export interface InferenceLogModulePatch { id?: string; databaseId?: string; + entityField?: string; schemaId?: string; privateSchemaId?: string; publicSchemaName?: string; @@ -8126,62 +9052,6 @@ export interface InferenceLogModulePatch { apiName?: string; privateApiName?: string; } -export interface UpdateNamespaceModuleInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `NamespaceModule` being updated. */ - namespaceModulePatch: NamespaceModulePatch; -} -/** Represents an update to a `NamespaceModule`. Fields that are set will be updated. */ -export interface NamespaceModulePatch { - id?: string; - databaseId?: string; - schemaId?: string; - privateSchemaId?: string; - publicSchemaName?: string; - privateSchemaName?: string; - namespacesTableId?: string; - namespaceEventsTableId?: string; - namespacesTableName?: string; - namespaceEventsTableName?: string; - apiName?: string; - privateApiName?: string; - scope?: string; - prefix?: string; - entityTableId?: string; - platformNamespacesTableId?: string; - policies?: unknown; - provisions?: unknown; - defaultPermissions?: string[]; -} -export interface UpdateResourceModuleInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `ResourceModule` being updated. */ - resourceModulePatch: ResourceModulePatch; -} -/** Represents an update to a `ResourceModule`. Fields that are set will be updated. */ -export interface ResourceModulePatch { - id?: string; - databaseId?: string; - schemaId?: string; - privateSchemaId?: string; - publicSchemaName?: string; - privateSchemaName?: string; - resourcesTableId?: string; - resourceEventsTableId?: string; - resourcesTableName?: string; - resourceEventsTableName?: string; - apiName?: string; - privateApiName?: string; - scope?: string; - prefix?: string; - entityTableId?: string; - namespaceModuleId?: string; - policies?: unknown; - provisions?: unknown; - defaultPermissions?: string[]; -} export interface UpdateStorageLogModuleInput { clientMutationId?: string; id: string; @@ -8192,6 +9062,7 @@ export interface UpdateStorageLogModuleInput { export interface StorageLogModulePatch { id?: string; databaseId?: string; + entityField?: string; schemaId?: string; privateSchemaId?: string; publicSchemaName?: string; @@ -8220,6 +9091,7 @@ export interface UpdateTransferLogModuleInput { export interface TransferLogModulePatch { id?: string; databaseId?: string; + entityField?: string; schemaId?: string; privateSchemaId?: string; publicSchemaName?: string; @@ -8231,68 +9103,9 @@ export interface TransferLogModulePatch { interval?: string; retention?: string; premake?: number; - scope?: string; - actorFkTableId?: string; - entityFkTableId?: string; - prefix?: string; - apiName?: string; - privateApiName?: string; -} -export interface UpdateFunctionDeploymentModuleInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `FunctionDeploymentModule` being updated. */ - functionDeploymentModulePatch: FunctionDeploymentModulePatch; -} -/** Represents an update to a `FunctionDeploymentModule`. Fields that are set will be updated. */ -export interface FunctionDeploymentModulePatch { - id?: string; - databaseId?: string; - schemaId?: string; - privateSchemaId?: string; - publicSchemaName?: string; - privateSchemaName?: string; - deploymentsTableId?: string; - deploymentEventsTableId?: string; - deploymentsTableName?: string; - deploymentEventsTableName?: string; - apiName?: string; - privateApiName?: string; - scope?: string; - prefix?: string; - entityTableId?: string; - functionModuleId?: string; - namespaceModuleId?: string; - policies?: unknown; - provisions?: unknown; - defaultPermissions?: string[]; -} -export interface UpdatePlansModuleInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `PlansModule` being updated. */ - plansModulePatch: PlansModulePatch; -} -/** Represents an update to a `PlansModule`. Fields that are set will be updated. */ -export interface PlansModulePatch { - id?: string; - databaseId?: string; - schemaId?: string; - privateSchemaId?: string; - publicSchemaName?: string; - privateSchemaName?: string; - plansTableId?: string; - plansTableName?: string; - planLimitsTableId?: string; - planLimitsTableName?: string; - planPricingTableId?: string; - planOverridesTableId?: string; - planMeterLimitsTableId?: string; - planCapsTableId?: string; - applyPlanFunction?: string; - applyPlanAggregateFunction?: string; - applyBillingPlanFunction?: string; - applyPlanCapsFunction?: string; + scope?: string; + actorFkTableId?: string; + entityFkTableId?: string; prefix?: string; apiName?: string; privateApiName?: string; @@ -8328,34 +9141,64 @@ export interface BillingProviderModulePatch { apiName?: string; privateApiName?: string; } -export interface UpdateDbUsageModuleInput { +export interface UpdateFunctionDeploymentModuleInput { clientMutationId?: string; id: string; - /** An object where the defined keys will be set on the `DbUsageModule` being updated. */ - dbUsageModulePatch: DbUsageModulePatch; + /** An object where the defined keys will be set on the `FunctionDeploymentModule` being updated. */ + functionDeploymentModulePatch: FunctionDeploymentModulePatch; } -/** Represents an update to a `DbUsageModule`. Fields that are set will be updated. */ -export interface DbUsageModulePatch { +/** Represents an update to a `FunctionDeploymentModule`. Fields that are set will be updated. */ +export interface FunctionDeploymentModulePatch { id?: string; databaseId?: string; + entityField?: string; schemaId?: string; privateSchemaId?: string; publicSchemaName?: string; privateSchemaName?: string; - tableStatsLogTableId?: string; - tableStatsLogTableName?: string; - tableStatsDailyTableId?: string; - tableStatsDailyTableName?: string; - queryStatsLogTableId?: string; - queryStatsLogTableName?: string; - queryStatsDailyTableId?: string; - queryStatsDailyTableName?: string; - interval?: string; - retention?: string; - premake?: number; + deploymentsTableId?: string; + deploymentEventsTableId?: string; + deploymentsTableName?: string; + deploymentEventsTableName?: string; + apiName?: string; + privateApiName?: string; scope?: string; prefix?: string; + entityTableId?: string; + functionModuleId?: string; + namespaceModuleId?: string; + policies?: unknown; + provisions?: unknown; defaultPermissions?: string[]; +} +export interface UpdatePermissionsModuleInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `PermissionsModule` being updated. */ + permissionsModulePatch: PermissionsModulePatch; +} +/** Represents an update to a `PermissionsModule`. Fields that are set will be updated. */ +export interface PermissionsModulePatch { + id?: string; + databaseId?: string; + entityField?: string; + schemaId?: string; + privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + tableId?: string; + tableName?: string; + defaultTableId?: string; + defaultTableName?: string; + bitlen?: number; + scope?: string; + prefix?: string; + entityTableId?: string; + actorTableId?: string; + getPaddedMask?: string; + getMask?: string; + getByMask?: string; + getMaskByName?: string; apiName?: string; privateApiName?: string; } @@ -8369,6 +9212,7 @@ export interface UpdateGraphExecutionModuleInput { export interface GraphExecutionModulePatch { id?: string; databaseId?: string; + entityField?: string; schemaId?: string; privateSchemaId?: string; publicSchemaName?: string; @@ -8400,6 +9244,7 @@ export interface UpdateHierarchyModuleInput { export interface HierarchyModulePatch { id?: string; databaseId?: string; + entityField?: string; schemaId?: string; privateSchemaId?: string; chartEdgesTableId?: string; @@ -8421,36 +9266,6 @@ export interface HierarchyModulePatch { defaultPermissions?: string[]; createdAt?: string; } -export interface UpdatePermissionsModuleInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `PermissionsModule` being updated. */ - permissionsModulePatch: PermissionsModulePatch; -} -/** Represents an update to a `PermissionsModule`. Fields that are set will be updated. */ -export interface PermissionsModulePatch { - id?: string; - databaseId?: string; - schemaId?: string; - privateSchemaId?: string; - publicSchemaName?: string; - privateSchemaName?: string; - tableId?: string; - tableName?: string; - defaultTableId?: string; - defaultTableName?: string; - bitlen?: number; - scope?: string; - prefix?: string; - entityTableId?: string; - actorTableId?: string; - getPaddedMask?: string; - getMask?: string; - getByMask?: string; - getMaskByName?: string; - apiName?: string; - privateApiName?: string; -} export interface UpdateNotificationsModuleInput { clientMutationId?: string; id: string; @@ -8461,6 +9276,7 @@ export interface UpdateNotificationsModuleInput { export interface NotificationsModulePatch { id?: string; databaseId?: string; + entityField?: string; schemaId?: string; privateSchemaId?: string; publicSchemaName?: string; @@ -8483,73 +9299,6 @@ export interface NotificationsModulePatch { apiName?: string; privateApiName?: string; } -export interface UpdateProfilesModuleInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `ProfilesModule` being updated. */ - profilesModulePatch: ProfilesModulePatch; -} -/** Represents an update to a `ProfilesModule`. Fields that are set will be updated. */ -export interface ProfilesModulePatch { - id?: string; - databaseId?: string; - schemaId?: string; - privateSchemaId?: string; - publicSchemaName?: string; - privateSchemaName?: string; - tableId?: string; - tableName?: string; - profilePermissionsTableId?: string; - profilePermissionsTableName?: string; - profileGrantsTableId?: string; - profileGrantsTableName?: string; - profileDefinitionGrantsTableId?: string; - profileDefinitionGrantsTableName?: string; - profileTemplatesTableId?: string; - profileTemplatesTableName?: string; - scope?: string; - prefix?: string; - entityTableId?: string; - actorTableId?: string; - permissionsTableId?: string; - membershipsTableId?: string; - apiName?: string; - privateApiName?: string; -} -export interface UpdateBillingModuleInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `BillingModule` being updated. */ - billingModulePatch: BillingModulePatch; -} -/** Represents an update to a `BillingModule`. Fields that are set will be updated. */ -export interface BillingModulePatch { - id?: string; - databaseId?: string; - schemaId?: string; - privateSchemaId?: string; - publicSchemaName?: string; - privateSchemaName?: string; - metersTableId?: string; - metersTableName?: string; - planSubscriptionsTableId?: string; - planSubscriptionsTableName?: string; - ledgerTableId?: string; - ledgerTableName?: string; - balancesTableId?: string; - balancesTableName?: string; - meterCreditsTableId?: string; - meterCreditsTableName?: string; - meterSourcesTableId?: string; - meterSourcesTableName?: string; - meterDefaultsTableId?: string; - meterDefaultsTableName?: string; - recordUsageFunction?: string; - prefix?: string; - defaultPermissions?: string[]; - apiName?: string; - privateApiName?: string; -} export interface UpdateRelationProvisionInput { clientMutationId?: string; /** Unique identifier for this relation provision row. */ @@ -8731,6 +9480,111 @@ export interface BlueprintTemplatePatch { /** Timestamp when this template was last modified. */ updatedAt?: string; } +export interface UpdateProfilesModuleInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `ProfilesModule` being updated. */ + profilesModulePatch: ProfilesModulePatch; +} +/** Represents an update to a `ProfilesModule`. Fields that are set will be updated. */ +export interface ProfilesModulePatch { + id?: string; + databaseId?: string; + entityField?: string; + schemaId?: string; + privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + tableId?: string; + tableName?: string; + profilePermissionsTableId?: string; + profilePermissionsTableName?: string; + profileGrantsTableId?: string; + profileGrantsTableName?: string; + profileDefinitionGrantsTableId?: string; + profileDefinitionGrantsTableName?: string; + profileTemplatesTableId?: string; + profileTemplatesTableName?: string; + scope?: string; + prefix?: string; + entityTableId?: string; + actorTableId?: string; + permissionsTableId?: string; + membershipsTableId?: string; + apiName?: string; + privateApiName?: string; +} +export interface UpdateBillingModuleInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `BillingModule` being updated. */ + billingModulePatch: BillingModulePatch; +} +/** Represents an update to a `BillingModule`. Fields that are set will be updated. */ +export interface BillingModulePatch { + id?: string; + databaseId?: string; + schemaId?: string; + privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + metersTableId?: string; + metersTableName?: string; + planSubscriptionsTableId?: string; + planSubscriptionsTableName?: string; + ledgerTableId?: string; + ledgerTableName?: string; + balancesTableId?: string; + balancesTableName?: string; + meterCreditsTableId?: string; + meterCreditsTableName?: string; + meterSourcesTableId?: string; + meterSourcesTableName?: string; + meterDefaultsTableId?: string; + meterDefaultsTableName?: string; + recordUsageFunction?: string; + sweepExpiredSubscriptionsFunction?: string; + rollupUsageSummaryFunction?: string; + prefix?: string; + defaultPermissions?: string[]; + apiName?: string; + privateApiName?: string; +} +export interface UpdateResourceModuleInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `ResourceModule` being updated. */ + resourceModulePatch: ResourceModulePatch; +} +/** Represents an update to a `ResourceModule`. Fields that are set will be updated. */ +export interface ResourceModulePatch { + id?: string; + databaseId?: string; + entityField?: string; + schemaId?: string; + privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + resourcesTableId?: string; + resourceEventsTableId?: string; + resourceStatusChecksTableId?: string; + resourceDefinitionsTableId?: string; + resourcesTableName?: string; + resourceEventsTableName?: string; + resourceStatusChecksTableName?: string; + resourceDefinitionsTableName?: string; + resolvedRequirementsViewName?: string; + requirementsStateViewName?: string; + apiName?: string; + privateApiName?: string; + scope?: string; + prefix?: string; + entityTableId?: string; + namespaceModuleId?: string; + policies?: unknown; + provisions?: unknown; + defaultPermissions?: string[]; +} export interface UpdateUserAuthModuleInput { clientMutationId?: string; id: string; @@ -8768,6 +9622,42 @@ export interface UserAuthModulePatch { apiName?: string; privateApiName?: string; } +export interface UpdateDbUsageModuleInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `DbUsageModule` being updated. */ + dbUsageModulePatch: DbUsageModulePatch; +} +/** Represents an update to a `DbUsageModule`. Fields that are set will be updated. */ +export interface DbUsageModulePatch { + id?: string; + databaseId?: string; + entityField?: string; + schemaId?: string; + privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + tableStatsLogTableId?: string; + tableStatsLogTableName?: string; + tableStatsDailyTableId?: string; + tableStatsDailyTableName?: string; + queryStatsLogTableId?: string; + queryStatsLogTableName?: string; + queryStatsDailyTableId?: string; + queryStatsDailyTableName?: string; + collectDbTableStatsFunction?: string; + collectDbQueryStatsFunction?: string; + rollupDbTableStatsDailyFunction?: string; + rollupDbQueryStatsDailyFunction?: string; + interval?: string; + retention?: string; + premake?: number; + scope?: string; + prefix?: string; + defaultPermissions?: string[]; + apiName?: string; + privateApiName?: string; +} export interface UpdateAgentModuleInput { clientMutationId?: string; id: string; @@ -8778,6 +9668,7 @@ export interface UpdateAgentModuleInput { export interface AgentModulePatch { id?: string; databaseId?: string; + entityField?: string; schemaId?: string; privateSchemaId?: string; publicSchemaName?: string; @@ -8822,6 +9713,7 @@ export interface UpdateLimitsModuleInput { export interface LimitsModulePatch { id?: string; databaseId?: string; + entityField?: string; schemaId?: string; privateSchemaId?: string; publicSchemaName?: string; @@ -8857,56 +9749,6 @@ export interface LimitsModulePatch { apiName?: string; privateApiName?: string; } -export interface UpdateMembershipsModuleInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `MembershipsModule` being updated. */ - membershipsModulePatch: MembershipsModulePatch; -} -/** Represents an update to a `MembershipsModule`. Fields that are set will be updated. */ -export interface MembershipsModulePatch { - id?: string; - databaseId?: string; - schemaId?: string; - privateSchemaId?: string; - publicSchemaName?: string; - privateSchemaName?: string; - membershipsTableId?: string; - membershipsTableName?: string; - membersTableId?: string; - membersTableName?: string; - membershipDefaultsTableId?: string; - membershipDefaultsTableName?: string; - membershipSettingsTableId?: string; - membershipSettingsTableName?: string; - grantsTableId?: string; - grantsTableName?: string; - actorTableId?: string; - limitsTableId?: string; - defaultLimitsTableId?: string; - permissionsTableId?: string; - defaultPermissionsTableId?: string; - sprtTableId?: string; - adminGrantsTableId?: string; - adminGrantsTableName?: string; - ownerGrantsTableId?: string; - ownerGrantsTableName?: string; - scope?: string; - prefix?: string; - entityTableId?: string; - entityTableOwnerId?: string; - getOrgFn?: string; - actorMaskCheck?: string; - actorPermCheck?: string; - entityIdsByMask?: string; - entityIdsByPerm?: string; - entityIdsFunction?: string; - memberProfilesTableId?: string; - permissionDefaultPermissionsTableId?: string; - permissionDefaultGrantsTableId?: string; - apiName?: string; - privateApiName?: string; -} export interface UpdateEntityTypeProvisionInput { clientMutationId?: string; /** Unique identifier for this provision row. */ @@ -9162,7 +10004,6 @@ export interface EntityTypeProvisionPatch { outDefinitionsTableId?: string; outInvocationsTableId?: string; outExecutionLogsTableId?: string; - outSecretDefinitionsTableId?: string; outGraphModuleId?: string; outGraphsTableId?: string; outAgentModuleId?: string; @@ -9190,6 +10031,7 @@ export interface StorageModulePatch { policies?: unknown; provisions?: unknown; entityTableId?: string; + entityField?: string; endpoint?: string; publicUrlPrefix?: string; provider?: string; @@ -9215,6 +10057,57 @@ export interface StorageModulePatch { apiName?: string; privateApiName?: string; } +export interface UpdateMembershipsModuleInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `MembershipsModule` being updated. */ + membershipsModulePatch: MembershipsModulePatch; +} +/** Represents an update to a `MembershipsModule`. Fields that are set will be updated. */ +export interface MembershipsModulePatch { + id?: string; + databaseId?: string; + entityField?: string; + schemaId?: string; + privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + membershipsTableId?: string; + membershipsTableName?: string; + membersTableId?: string; + membersTableName?: string; + membershipDefaultsTableId?: string; + membershipDefaultsTableName?: string; + membershipSettingsTableId?: string; + membershipSettingsTableName?: string; + grantsTableId?: string; + grantsTableName?: string; + actorTableId?: string; + limitsTableId?: string; + defaultLimitsTableId?: string; + permissionsTableId?: string; + defaultPermissionsTableId?: string; + sprtTableId?: string; + adminGrantsTableId?: string; + adminGrantsTableName?: string; + ownerGrantsTableId?: string; + ownerGrantsTableName?: string; + scope?: string; + prefix?: string; + entityTableId?: string; + entityTableOwnerId?: string; + getOrgFn?: string; + actorMaskCheck?: string; + actorPermCheck?: string; + entityIdsByMask?: string; + entityIdsByPerm?: string; + entityIdsFunction?: string; + memberProfilesTableId?: string; + permissionDefaultPermissionsTableId?: string; + permissionDefaultGrantsTableId?: string; + apiName?: string; + privateApiName?: string; +} export interface UpdateEventsModuleInput { clientMutationId?: string; id: string; @@ -9225,6 +10118,7 @@ export interface UpdateEventsModuleInput { export interface EventsModulePatch { id?: string; databaseId?: string; + entityField?: string; schemaId?: string; privateSchemaId?: string; publicSchemaName?: string; @@ -9251,7 +10145,6 @@ export interface EventsModulePatch { tgEventBool?: string; upsertAggregate?: string; tgUpdateAggregates?: string; - pruneEvents?: string; stepsRequired?: string; levelAchieved?: string; tgCheckAchievements?: string; @@ -9276,18 +10169,10 @@ export interface DeleteMembershipTypesModuleInput { clientMutationId?: string; id: string; } -export interface DeleteUserStateModuleInput { - clientMutationId?: string; - id: string; -} export interface DeleteSessionSecretsModuleInput { clientMutationId?: string; id: string; } -export interface DeleteConfigSecretsOrgModuleInput { - clientMutationId?: string; - id: string; -} export interface DeleteDevicesModuleInput { clientMutationId?: string; id: string; @@ -9296,15 +10181,15 @@ export interface DeleteI18NModuleInput { clientMutationId?: string; id: string; } -export interface DeleteUserCredentialsModuleInput { +export interface DeleteUserSettingsModuleInput { clientMutationId?: string; id: string; } -export interface DeleteUserSettingsModuleInput { +export interface DeleteUserStateModuleInput { clientMutationId?: string; id: string; } -export interface DeleteConfigSecretsUserModuleInput { +export interface DeleteUserCredentialsModuleInput { clientMutationId?: string; id: string; } @@ -9332,15 +10217,15 @@ export interface DeleteWebauthnCredentialsModuleInput { clientMutationId?: string; id: string; } -export interface DeleteCryptoAddressesModuleInput { +export interface DeleteConfigSecretsUserModuleInput { clientMutationId?: string; id: string; } -export interface DeleteDenormalizedTableFieldInput { +export interface DeleteCryptoAddressesModuleInput { clientMutationId?: string; id: string; } -export interface DeleteIdentityProvidersModuleInput { +export interface DeleteDenormalizedTableFieldInput { clientMutationId?: string; id: string; } @@ -9371,43 +10256,43 @@ export interface DeleteSecureTableProvisionInput { /** Unique identifier for this provision row. */ id: string; } -export interface DeleteDatabaseProvisionModuleInput { +export interface DeleteIdentityProvidersModuleInput { clientMutationId?: string; id: string; } -export interface DeleteConfigSecretsModuleInput { +export interface DeleteIntegrationProvidersModuleInput { clientMutationId?: string; id: string; } -export interface DeleteGraphModuleInput { +export interface DeleteDbPoolConfigInput { clientMutationId?: string; id: string; } -export interface DeleteMerkleStoreModuleInput { +export interface DeleteRealtimeModuleInput { clientMutationId?: string; id: string; } -export interface DeleteRateLimitMetersModuleInput { +export interface DeleteInfraSecretsModuleInput { clientMutationId?: string; id: string; } -export interface DeleteRealtimeModuleInput { +export interface DeleteInternalSecretsModuleInput { clientMutationId?: string; id: string; } -export interface DeleteWebauthnAuthModuleInput { +export interface DeleteDbPresetModuleInput { clientMutationId?: string; id: string; } -export interface DeleteFunctionInvocationModuleInput { +export interface DeleteRateLimitMetersModuleInput { clientMutationId?: string; id: string; } -export interface DeleteFunctionModuleInput { +export interface DeleteInfraConfigModuleInput { clientMutationId?: string; id: string; } -export interface DeleteInvitesModuleInput { +export interface DeleteWebauthnAuthModuleInput { clientMutationId?: string; id: string; } @@ -9415,31 +10300,35 @@ export interface DeletePrincipalAuthModuleInput { clientMutationId?: string; id: string; } -export interface DeleteComputeLogModuleInput { +export interface DeleteDbPoolInput { clientMutationId?: string; id: string; } -export interface DeleteInferenceLogModuleInput { +export interface DeleteFunctionModuleInput { clientMutationId?: string; id: string; } -export interface DeleteNamespaceModuleInput { +export interface DeleteGraphModuleInput { clientMutationId?: string; id: string; } -export interface DeleteResourceModuleInput { +export interface DeleteMerkleStoreModuleInput { clientMutationId?: string; id: string; } -export interface DeleteStorageLogModuleInput { +export interface DeleteDatabaseProvisionModuleInput { clientMutationId?: string; id: string; } -export interface DeleteTransferLogModuleInput { +export interface DeleteFunctionInvocationModuleInput { clientMutationId?: string; id: string; } -export interface DeleteFunctionDeploymentModuleInput { +export interface DeleteInvitesModuleInput { + clientMutationId?: string; + id: string; +} +export interface DeleteNamespaceModuleInput { clientMutationId?: string; id: string; } @@ -9447,19 +10336,27 @@ export interface DeletePlansModuleInput { clientMutationId?: string; id: string; } -export interface DeleteBillingProviderModuleInput { +export interface DeleteComputeLogModuleInput { clientMutationId?: string; id: string; } -export interface DeleteDbUsageModuleInput { +export interface DeleteInferenceLogModuleInput { clientMutationId?: string; id: string; } -export interface DeleteGraphExecutionModuleInput { +export interface DeleteStorageLogModuleInput { clientMutationId?: string; id: string; } -export interface DeleteHierarchyModuleInput { +export interface DeleteTransferLogModuleInput { + clientMutationId?: string; + id: string; +} +export interface DeleteBillingProviderModuleInput { + clientMutationId?: string; + id: string; +} +export interface DeleteFunctionDeploymentModuleInput { clientMutationId?: string; id: string; } @@ -9467,15 +10364,15 @@ export interface DeletePermissionsModuleInput { clientMutationId?: string; id: string; } -export interface DeleteNotificationsModuleInput { +export interface DeleteGraphExecutionModuleInput { clientMutationId?: string; id: string; } -export interface DeleteProfilesModuleInput { +export interface DeleteHierarchyModuleInput { clientMutationId?: string; id: string; } -export interface DeleteBillingModuleInput { +export interface DeleteNotificationsModuleInput { clientMutationId?: string; id: string; } @@ -9489,19 +10386,31 @@ export interface DeleteBlueprintTemplateInput { /** Unique identifier for this template. */ id: string; } +export interface DeleteProfilesModuleInput { + clientMutationId?: string; + id: string; +} +export interface DeleteBillingModuleInput { + clientMutationId?: string; + id: string; +} +export interface DeleteResourceModuleInput { + clientMutationId?: string; + id: string; +} export interface DeleteUserAuthModuleInput { clientMutationId?: string; id: string; } -export interface DeleteAgentModuleInput { +export interface DeleteDbUsageModuleInput { clientMutationId?: string; id: string; } -export interface DeleteLimitsModuleInput { +export interface DeleteAgentModuleInput { clientMutationId?: string; id: string; } -export interface DeleteMembershipsModuleInput { +export interface DeleteLimitsModuleInput { clientMutationId?: string; id: string; } @@ -9514,6 +10423,10 @@ export interface DeleteStorageModuleInput { clientMutationId?: string; id: string; } +export interface DeleteMembershipsModuleInput { + clientMutationId?: string; + id: string; +} export interface DeleteEventsModuleInput { clientMutationId?: string; id: string; @@ -9541,13 +10454,6 @@ export interface MembershipTypesModuleConnection { pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `UserStateModule` values. */ -export interface UserStateModuleConnection { - nodes: UserStateModule[]; - edges: UserStateModuleEdge[]; - pageInfo: PageInfo; - totalCount: number; -} /** A connection to a list of `SessionSecretsModule` values. */ export interface SessionSecretsModuleConnection { nodes: SessionSecretsModule[]; @@ -9555,13 +10461,6 @@ export interface SessionSecretsModuleConnection { pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `ConfigSecretsOrgModule` values. */ -export interface ConfigSecretsOrgModuleConnection { - nodes: ConfigSecretsOrgModule[]; - edges: ConfigSecretsOrgModuleEdge[]; - pageInfo: PageInfo; - totalCount: number; -} /** A connection to a list of `DevicesModule` values. */ export interface DevicesModuleConnection { nodes: DevicesModule[]; @@ -9576,13 +10475,6 @@ export interface I18NModuleConnection { pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `UserCredentialsModule` values. */ -export interface UserCredentialsModuleConnection { - nodes: UserCredentialsModule[]; - edges: UserCredentialsModuleEdge[]; - pageInfo: PageInfo; - totalCount: number; -} /** A connection to a list of `UserSettingsModule` values. */ export interface UserSettingsModuleConnection { nodes: UserSettingsModule[]; @@ -9590,10 +10482,17 @@ export interface UserSettingsModuleConnection { pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `ConfigSecretsUserModule` values. */ -export interface ConfigSecretsUserModuleConnection { - nodes: ConfigSecretsUserModule[]; - edges: ConfigSecretsUserModuleEdge[]; +/** A connection to a list of `UserStateModule` values. */ +export interface UserStateModuleConnection { + nodes: UserStateModule[]; + edges: UserStateModuleEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `UserCredentialsModule` values. */ +export interface UserCredentialsModuleConnection { + nodes: UserCredentialsModule[]; + edges: UserCredentialsModuleEdge[]; pageInfo: PageInfo; totalCount: number; } @@ -9639,6 +10538,13 @@ export interface WebauthnCredentialsModuleConnection { pageInfo: PageInfo; totalCount: number; } +/** A connection to a list of `ConfigSecretsUserModule` values. */ +export interface ConfigSecretsUserModuleConnection { + nodes: ConfigSecretsUserModule[]; + edges: ConfigSecretsUserModuleEdge[]; + pageInfo: PageInfo; + totalCount: number; +} /** A connection to a list of `CryptoAddressesModule` values. */ export interface CryptoAddressesModuleConnection { nodes: CryptoAddressesModule[]; @@ -9653,13 +10559,6 @@ export interface DenormalizedTableFieldConnection { pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `IdentityProvidersModule` values. */ -export interface IdentityProvidersModuleConnection { - nodes: IdentityProvidersModule[]; - edges: IdentityProvidersModuleEdge[]; - pageInfo: PageInfo; - totalCount: number; -} /** A connection to a list of `RlsModule` values. */ export interface RlsModuleConnection { nodes: RlsModule[]; @@ -9702,31 +10601,52 @@ export interface SecureTableProvisionConnection { pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `DatabaseProvisionModule` values. */ -export interface DatabaseProvisionModuleConnection { - nodes: DatabaseProvisionModule[]; - edges: DatabaseProvisionModuleEdge[]; +/** A connection to a list of `IdentityProvidersModule` values. */ +export interface IdentityProvidersModuleConnection { + nodes: IdentityProvidersModule[]; + edges: IdentityProvidersModuleEdge[]; pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `ConfigSecretsModule` values. */ -export interface ConfigSecretsModuleConnection { - nodes: ConfigSecretsModule[]; - edges: ConfigSecretsModuleEdge[]; +/** A connection to a list of `IntegrationProvidersModule` values. */ +export interface IntegrationProvidersModuleConnection { + nodes: IntegrationProvidersModule[]; + edges: IntegrationProvidersModuleEdge[]; pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `GraphModule` values. */ -export interface GraphModuleConnection { - nodes: GraphModule[]; - edges: GraphModuleEdge[]; +/** A connection to a list of `DbPoolConfig` values. */ +export interface DbPoolConfigConnection { + nodes: DbPoolConfig[]; + edges: DbPoolConfigEdge[]; pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `MerkleStoreModule` values. */ -export interface MerkleStoreModuleConnection { - nodes: MerkleStoreModule[]; - edges: MerkleStoreModuleEdge[]; +/** A connection to a list of `RealtimeModule` values. */ +export interface RealtimeModuleConnection { + nodes: RealtimeModule[]; + edges: RealtimeModuleEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `InfraSecretsModule` values. */ +export interface InfraSecretsModuleConnection { + nodes: InfraSecretsModule[]; + edges: InfraSecretsModuleEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `InternalSecretsModule` values. */ +export interface InternalSecretsModuleConnection { + nodes: InternalSecretsModule[]; + edges: InternalSecretsModuleEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `DbPresetModule` values. */ +export interface DbPresetModuleConnection { + nodes: DbPresetModule[]; + edges: DbPresetModuleEdge[]; pageInfo: PageInfo; totalCount: number; } @@ -9737,10 +10657,10 @@ export interface RateLimitMetersModuleConnection { pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `RealtimeModule` values. */ -export interface RealtimeModuleConnection { - nodes: RealtimeModule[]; - edges: RealtimeModuleEdge[]; +/** A connection to a list of `InfraConfigModule` values. */ +export interface InfraConfigModuleConnection { + nodes: InfraConfigModule[]; + edges: InfraConfigModuleEdge[]; pageInfo: PageInfo; totalCount: number; } @@ -9751,10 +10671,17 @@ export interface WebauthnAuthModuleConnection { pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `FunctionInvocationModule` values. */ -export interface FunctionInvocationModuleConnection { - nodes: FunctionInvocationModule[]; - edges: FunctionInvocationModuleEdge[]; +/** A connection to a list of `PrincipalAuthModule` values. */ +export interface PrincipalAuthModuleConnection { + nodes: PrincipalAuthModule[]; + edges: PrincipalAuthModuleEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `DbPool` values. */ +export interface DbPoolConnection { + nodes: DbPool[]; + edges: DbPoolEdge[]; pageInfo: PageInfo; totalCount: number; } @@ -9765,6 +10692,34 @@ export interface FunctionModuleConnection { pageInfo: PageInfo; totalCount: number; } +/** A connection to a list of `GraphModule` values. */ +export interface GraphModuleConnection { + nodes: GraphModule[]; + edges: GraphModuleEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `MerkleStoreModule` values. */ +export interface MerkleStoreModuleConnection { + nodes: MerkleStoreModule[]; + edges: MerkleStoreModuleEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `DatabaseProvisionModule` values. */ +export interface DatabaseProvisionModuleConnection { + nodes: DatabaseProvisionModule[]; + edges: DatabaseProvisionModuleEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `FunctionInvocationModule` values. */ +export interface FunctionInvocationModuleConnection { + nodes: FunctionInvocationModule[]; + edges: FunctionInvocationModuleEdge[]; + pageInfo: PageInfo; + totalCount: number; +} /** A connection to a list of `InvitesModule` values. */ export interface InvitesModuleConnection { nodes: InvitesModule[]; @@ -9772,10 +10727,17 @@ export interface InvitesModuleConnection { pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `PrincipalAuthModule` values. */ -export interface PrincipalAuthModuleConnection { - nodes: PrincipalAuthModule[]; - edges: PrincipalAuthModuleEdge[]; +/** A connection to a list of `NamespaceModule` values. */ +export interface NamespaceModuleConnection { + nodes: NamespaceModule[]; + edges: NamespaceModuleEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `PlansModule` values. */ +export interface PlansModuleConnection { + nodes: PlansModule[]; + edges: PlansModuleEdge[]; pageInfo: PageInfo; totalCount: number; } @@ -9793,20 +10755,6 @@ export interface InferenceLogModuleConnection { pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `NamespaceModule` values. */ -export interface NamespaceModuleConnection { - nodes: NamespaceModule[]; - edges: NamespaceModuleEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `ResourceModule` values. */ -export interface ResourceModuleConnection { - nodes: ResourceModule[]; - edges: ResourceModuleEdge[]; - pageInfo: PageInfo; - totalCount: number; -} /** A connection to a list of `StorageLogModule` values. */ export interface StorageLogModuleConnection { nodes: StorageLogModule[]; @@ -9821,20 +10769,6 @@ export interface TransferLogModuleConnection { pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `FunctionDeploymentModule` values. */ -export interface FunctionDeploymentModuleConnection { - nodes: FunctionDeploymentModule[]; - edges: FunctionDeploymentModuleEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `PlansModule` values. */ -export interface PlansModuleConnection { - nodes: PlansModule[]; - edges: PlansModuleEdge[]; - pageInfo: PageInfo; - totalCount: number; -} /** A connection to a list of `BillingProviderModule` values. */ export interface BillingProviderModuleConnection { nodes: BillingProviderModule[]; @@ -9842,10 +10776,17 @@ export interface BillingProviderModuleConnection { pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `DbUsageModule` values. */ -export interface DbUsageModuleConnection { - nodes: DbUsageModule[]; - edges: DbUsageModuleEdge[]; +/** A connection to a list of `FunctionDeploymentModule` values. */ +export interface FunctionDeploymentModuleConnection { + nodes: FunctionDeploymentModule[]; + edges: FunctionDeploymentModuleEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `PermissionsModule` values. */ +export interface PermissionsModuleConnection { + nodes: PermissionsModule[]; + edges: PermissionsModuleEdge[]; pageInfo: PageInfo; totalCount: number; } @@ -9863,13 +10804,6 @@ export interface HierarchyModuleConnection { pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `PermissionsModule` values. */ -export interface PermissionsModuleConnection { - nodes: PermissionsModule[]; - edges: PermissionsModuleEdge[]; - pageInfo: PageInfo; - totalCount: number; -} /** A connection to a list of `NotificationsModule` values. */ export interface NotificationsModuleConnection { nodes: NotificationsModule[]; @@ -9877,6 +10811,20 @@ export interface NotificationsModuleConnection { pageInfo: PageInfo; totalCount: number; } +/** A connection to a list of `RelationProvision` values. */ +export interface RelationProvisionConnection { + nodes: RelationProvision[]; + edges: RelationProvisionEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `BlueprintTemplate` values. */ +export interface BlueprintTemplateConnection { + nodes: BlueprintTemplate[]; + edges: BlueprintTemplateEdge[]; + pageInfo: PageInfo; + totalCount: number; +} /** A connection to a list of `ProfilesModule` values. */ export interface ProfilesModuleConnection { nodes: ProfilesModule[]; @@ -9891,17 +10839,10 @@ export interface BillingModuleConnection { pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `RelationProvision` values. */ -export interface RelationProvisionConnection { - nodes: RelationProvision[]; - edges: RelationProvisionEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `BlueprintTemplate` values. */ -export interface BlueprintTemplateConnection { - nodes: BlueprintTemplate[]; - edges: BlueprintTemplateEdge[]; +/** A connection to a list of `ResourceModule` values. */ +export interface ResourceModuleConnection { + nodes: ResourceModule[]; + edges: ResourceModuleEdge[]; pageInfo: PageInfo; totalCount: number; } @@ -9912,6 +10853,13 @@ export interface UserAuthModuleConnection { pageInfo: PageInfo; totalCount: number; } +/** A connection to a list of `DbUsageModule` values. */ +export interface DbUsageModuleConnection { + nodes: DbUsageModule[]; + edges: DbUsageModuleEdge[]; + pageInfo: PageInfo; + totalCount: number; +} /** A connection to a list of `AgentModule` values. */ export interface AgentModuleConnection { nodes: AgentModule[]; @@ -9926,13 +10874,6 @@ export interface LimitsModuleConnection { pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `MembershipsModule` values. */ -export interface MembershipsModuleConnection { - nodes: MembershipsModule[]; - edges: MembershipsModuleEdge[]; - pageInfo: PageInfo; - totalCount: number; -} /** A connection to a list of `EntityTypeProvision` values. */ export interface EntityTypeProvisionConnection { nodes: EntityTypeProvision[]; @@ -9947,6 +10888,13 @@ export interface StorageModuleConnection { pageInfo: PageInfo; totalCount: number; } +/** A connection to a list of `MembershipsModule` values. */ +export interface MembershipsModuleConnection { + nodes: MembershipsModule[]; + edges: MembershipsModuleEdge[]; + pageInfo: PageInfo; + totalCount: number; +} /** A connection to a list of `EventsModule` values. */ export interface EventsModuleConnection { nodes: EventsModule[]; @@ -10004,24 +10952,12 @@ export interface CreateMembershipTypesModulePayload { membershipTypesModule?: MembershipTypesModule | null; membershipTypesModuleEdge?: MembershipTypesModuleEdge | null; } -export interface CreateUserStateModulePayload { - clientMutationId?: string | null; - /** The `UserStateModule` that was created by this mutation. */ - userStateModule?: UserStateModule | null; - userStateModuleEdge?: UserStateModuleEdge | null; -} export interface CreateSessionSecretsModulePayload { clientMutationId?: string | null; /** The `SessionSecretsModule` that was created by this mutation. */ sessionSecretsModule?: SessionSecretsModule | null; sessionSecretsModuleEdge?: SessionSecretsModuleEdge | null; } -export interface CreateConfigSecretsOrgModulePayload { - clientMutationId?: string | null; - /** The `ConfigSecretsOrgModule` that was created by this mutation. */ - configSecretsOrgModule?: ConfigSecretsOrgModule | null; - configSecretsOrgModuleEdge?: ConfigSecretsOrgModuleEdge | null; -} export interface CreateDevicesModulePayload { clientMutationId?: string | null; /** The `DevicesModule` that was created by this mutation. */ @@ -10034,23 +10970,23 @@ export interface CreateI18NModulePayload { i18NModule?: I18NModule | null; i18NModuleEdge?: I18NModuleEdge | null; } -export interface CreateUserCredentialsModulePayload { - clientMutationId?: string | null; - /** The `UserCredentialsModule` that was created by this mutation. */ - userCredentialsModule?: UserCredentialsModule | null; - userCredentialsModuleEdge?: UserCredentialsModuleEdge | null; -} export interface CreateUserSettingsModulePayload { clientMutationId?: string | null; /** The `UserSettingsModule` that was created by this mutation. */ userSettingsModule?: UserSettingsModule | null; userSettingsModuleEdge?: UserSettingsModuleEdge | null; } -export interface CreateConfigSecretsUserModulePayload { +export interface CreateUserStateModulePayload { clientMutationId?: string | null; - /** The `ConfigSecretsUserModule` that was created by this mutation. */ - configSecretsUserModule?: ConfigSecretsUserModule | null; - configSecretsUserModuleEdge?: ConfigSecretsUserModuleEdge | null; + /** The `UserStateModule` that was created by this mutation. */ + userStateModule?: UserStateModule | null; + userStateModuleEdge?: UserStateModuleEdge | null; +} +export interface CreateUserCredentialsModulePayload { + clientMutationId?: string | null; + /** The `UserCredentialsModule` that was created by this mutation. */ + userCredentialsModule?: UserCredentialsModule | null; + userCredentialsModuleEdge?: UserCredentialsModuleEdge | null; } export interface CreateConnectedAccountsModulePayload { clientMutationId?: string | null; @@ -10088,6 +11024,12 @@ export interface CreateWebauthnCredentialsModulePayload { webauthnCredentialsModule?: WebauthnCredentialsModule | null; webauthnCredentialsModuleEdge?: WebauthnCredentialsModuleEdge | null; } +export interface CreateConfigSecretsUserModulePayload { + clientMutationId?: string | null; + /** The `ConfigSecretsUserModule` that was created by this mutation. */ + configSecretsUserModule?: ConfigSecretsUserModule | null; + configSecretsUserModuleEdge?: ConfigSecretsUserModuleEdge | null; +} export interface CreateCryptoAddressesModulePayload { clientMutationId?: string | null; /** The `CryptoAddressesModule` that was created by this mutation. */ @@ -10100,12 +11042,6 @@ export interface CreateDenormalizedTableFieldPayload { denormalizedTableField?: DenormalizedTableField | null; denormalizedTableFieldEdge?: DenormalizedTableFieldEdge | null; } -export interface CreateIdentityProvidersModulePayload { - clientMutationId?: string | null; - /** The `IdentityProvidersModule` that was created by this mutation. */ - identityProvidersModule?: IdentityProvidersModule | null; - identityProvidersModuleEdge?: IdentityProvidersModuleEdge | null; -} export interface CreateRlsModulePayload { clientMutationId?: string | null; /** The `RlsModule` that was created by this mutation. */ @@ -10142,29 +11078,47 @@ export interface CreateSecureTableProvisionPayload { secureTableProvision?: SecureTableProvision | null; secureTableProvisionEdge?: SecureTableProvisionEdge | null; } -export interface CreateDatabaseProvisionModulePayload { +export interface CreateIdentityProvidersModulePayload { clientMutationId?: string | null; - /** The `DatabaseProvisionModule` that was created by this mutation. */ - databaseProvisionModule?: DatabaseProvisionModule | null; - databaseProvisionModuleEdge?: DatabaseProvisionModuleEdge | null; + /** The `IdentityProvidersModule` that was created by this mutation. */ + identityProvidersModule?: IdentityProvidersModule | null; + identityProvidersModuleEdge?: IdentityProvidersModuleEdge | null; +} +export interface CreateIntegrationProvidersModulePayload { + clientMutationId?: string | null; + /** The `IntegrationProvidersModule` that was created by this mutation. */ + integrationProvidersModule?: IntegrationProvidersModule | null; + integrationProvidersModuleEdge?: IntegrationProvidersModuleEdge | null; +} +export interface CreateDbPoolConfigPayload { + clientMutationId?: string | null; + /** The `DbPoolConfig` that was created by this mutation. */ + dbPoolConfig?: DbPoolConfig | null; + dbPoolConfigEdge?: DbPoolConfigEdge | null; +} +export interface CreateRealtimeModulePayload { + clientMutationId?: string | null; + /** The `RealtimeModule` that was created by this mutation. */ + realtimeModule?: RealtimeModule | null; + realtimeModuleEdge?: RealtimeModuleEdge | null; } -export interface CreateConfigSecretsModulePayload { +export interface CreateInfraSecretsModulePayload { clientMutationId?: string | null; - /** The `ConfigSecretsModule` that was created by this mutation. */ - configSecretsModule?: ConfigSecretsModule | null; - configSecretsModuleEdge?: ConfigSecretsModuleEdge | null; + /** The `InfraSecretsModule` that was created by this mutation. */ + infraSecretsModule?: InfraSecretsModule | null; + infraSecretsModuleEdge?: InfraSecretsModuleEdge | null; } -export interface CreateGraphModulePayload { +export interface CreateInternalSecretsModulePayload { clientMutationId?: string | null; - /** The `GraphModule` that was created by this mutation. */ - graphModule?: GraphModule | null; - graphModuleEdge?: GraphModuleEdge | null; + /** The `InternalSecretsModule` that was created by this mutation. */ + internalSecretsModule?: InternalSecretsModule | null; + internalSecretsModuleEdge?: InternalSecretsModuleEdge | null; } -export interface CreateMerkleStoreModulePayload { +export interface CreateDbPresetModulePayload { clientMutationId?: string | null; - /** The `MerkleStoreModule` that was created by this mutation. */ - merkleStoreModule?: MerkleStoreModule | null; - merkleStoreModuleEdge?: MerkleStoreModuleEdge | null; + /** The `DbPresetModule` that was created by this mutation. */ + dbPresetModule?: DbPresetModule | null; + dbPresetModuleEdge?: DbPresetModuleEdge | null; } export interface CreateRateLimitMetersModulePayload { clientMutationId?: string | null; @@ -10172,11 +11126,11 @@ export interface CreateRateLimitMetersModulePayload { rateLimitMetersModule?: RateLimitMetersModule | null; rateLimitMetersModuleEdge?: RateLimitMetersModuleEdge | null; } -export interface CreateRealtimeModulePayload { +export interface CreateInfraConfigModulePayload { clientMutationId?: string | null; - /** The `RealtimeModule` that was created by this mutation. */ - realtimeModule?: RealtimeModule | null; - realtimeModuleEdge?: RealtimeModuleEdge | null; + /** The `InfraConfigModule` that was created by this mutation. */ + infraConfigModule?: InfraConfigModule | null; + infraConfigModuleEdge?: InfraConfigModuleEdge | null; } export interface CreateWebauthnAuthModulePayload { clientMutationId?: string | null; @@ -10184,11 +11138,17 @@ export interface CreateWebauthnAuthModulePayload { webauthnAuthModule?: WebauthnAuthModule | null; webauthnAuthModuleEdge?: WebauthnAuthModuleEdge | null; } -export interface CreateFunctionInvocationModulePayload { +export interface CreatePrincipalAuthModulePayload { clientMutationId?: string | null; - /** The `FunctionInvocationModule` that was created by this mutation. */ - functionInvocationModule?: FunctionInvocationModule | null; - functionInvocationModuleEdge?: FunctionInvocationModuleEdge | null; + /** The `PrincipalAuthModule` that was created by this mutation. */ + principalAuthModule?: PrincipalAuthModule | null; + principalAuthModuleEdge?: PrincipalAuthModuleEdge | null; +} +export interface CreateDbPoolPayload { + clientMutationId?: string | null; + /** The `DbPool` that was created by this mutation. */ + dbPool?: DbPool | null; + dbPoolEdge?: DbPoolEdge | null; } export interface CreateFunctionModulePayload { clientMutationId?: string | null; @@ -10196,17 +11156,47 @@ export interface CreateFunctionModulePayload { functionModule?: FunctionModule | null; functionModuleEdge?: FunctionModuleEdge | null; } +export interface CreateGraphModulePayload { + clientMutationId?: string | null; + /** The `GraphModule` that was created by this mutation. */ + graphModule?: GraphModule | null; + graphModuleEdge?: GraphModuleEdge | null; +} +export interface CreateMerkleStoreModulePayload { + clientMutationId?: string | null; + /** The `MerkleStoreModule` that was created by this mutation. */ + merkleStoreModule?: MerkleStoreModule | null; + merkleStoreModuleEdge?: MerkleStoreModuleEdge | null; +} +export interface CreateDatabaseProvisionModulePayload { + clientMutationId?: string | null; + /** The `DatabaseProvisionModule` that was created by this mutation. */ + databaseProvisionModule?: DatabaseProvisionModule | null; + databaseProvisionModuleEdge?: DatabaseProvisionModuleEdge | null; +} +export interface CreateFunctionInvocationModulePayload { + clientMutationId?: string | null; + /** The `FunctionInvocationModule` that was created by this mutation. */ + functionInvocationModule?: FunctionInvocationModule | null; + functionInvocationModuleEdge?: FunctionInvocationModuleEdge | null; +} export interface CreateInvitesModulePayload { clientMutationId?: string | null; /** The `InvitesModule` that was created by this mutation. */ invitesModule?: InvitesModule | null; invitesModuleEdge?: InvitesModuleEdge | null; } -export interface CreatePrincipalAuthModulePayload { +export interface CreateNamespaceModulePayload { clientMutationId?: string | null; - /** The `PrincipalAuthModule` that was created by this mutation. */ - principalAuthModule?: PrincipalAuthModule | null; - principalAuthModuleEdge?: PrincipalAuthModuleEdge | null; + /** The `NamespaceModule` that was created by this mutation. */ + namespaceModule?: NamespaceModule | null; + namespaceModuleEdge?: NamespaceModuleEdge | null; +} +export interface CreatePlansModulePayload { + clientMutationId?: string | null; + /** The `PlansModule` that was created by this mutation. */ + plansModule?: PlansModule | null; + plansModuleEdge?: PlansModuleEdge | null; } export interface CreateComputeLogModulePayload { clientMutationId?: string | null; @@ -10220,18 +11210,6 @@ export interface CreateInferenceLogModulePayload { inferenceLogModule?: InferenceLogModule | null; inferenceLogModuleEdge?: InferenceLogModuleEdge | null; } -export interface CreateNamespaceModulePayload { - clientMutationId?: string | null; - /** The `NamespaceModule` that was created by this mutation. */ - namespaceModule?: NamespaceModule | null; - namespaceModuleEdge?: NamespaceModuleEdge | null; -} -export interface CreateResourceModulePayload { - clientMutationId?: string | null; - /** The `ResourceModule` that was created by this mutation. */ - resourceModule?: ResourceModule | null; - resourceModuleEdge?: ResourceModuleEdge | null; -} export interface CreateStorageLogModulePayload { clientMutationId?: string | null; /** The `StorageLogModule` that was created by this mutation. */ @@ -10244,29 +11222,23 @@ export interface CreateTransferLogModulePayload { transferLogModule?: TransferLogModule | null; transferLogModuleEdge?: TransferLogModuleEdge | null; } -export interface CreateFunctionDeploymentModulePayload { - clientMutationId?: string | null; - /** The `FunctionDeploymentModule` that was created by this mutation. */ - functionDeploymentModule?: FunctionDeploymentModule | null; - functionDeploymentModuleEdge?: FunctionDeploymentModuleEdge | null; -} -export interface CreatePlansModulePayload { - clientMutationId?: string | null; - /** The `PlansModule` that was created by this mutation. */ - plansModule?: PlansModule | null; - plansModuleEdge?: PlansModuleEdge | null; -} export interface CreateBillingProviderModulePayload { clientMutationId?: string | null; /** The `BillingProviderModule` that was created by this mutation. */ billingProviderModule?: BillingProviderModule | null; billingProviderModuleEdge?: BillingProviderModuleEdge | null; } -export interface CreateDbUsageModulePayload { +export interface CreateFunctionDeploymentModulePayload { clientMutationId?: string | null; - /** The `DbUsageModule` that was created by this mutation. */ - dbUsageModule?: DbUsageModule | null; - dbUsageModuleEdge?: DbUsageModuleEdge | null; + /** The `FunctionDeploymentModule` that was created by this mutation. */ + functionDeploymentModule?: FunctionDeploymentModule | null; + functionDeploymentModuleEdge?: FunctionDeploymentModuleEdge | null; +} +export interface CreatePermissionsModulePayload { + clientMutationId?: string | null; + /** The `PermissionsModule` that was created by this mutation. */ + permissionsModule?: PermissionsModule | null; + permissionsModuleEdge?: PermissionsModuleEdge | null; } export interface CreateGraphExecutionModulePayload { clientMutationId?: string | null; @@ -10280,18 +11252,24 @@ export interface CreateHierarchyModulePayload { hierarchyModule?: HierarchyModule | null; hierarchyModuleEdge?: HierarchyModuleEdge | null; } -export interface CreatePermissionsModulePayload { - clientMutationId?: string | null; - /** The `PermissionsModule` that was created by this mutation. */ - permissionsModule?: PermissionsModule | null; - permissionsModuleEdge?: PermissionsModuleEdge | null; -} export interface CreateNotificationsModulePayload { clientMutationId?: string | null; /** The `NotificationsModule` that was created by this mutation. */ notificationsModule?: NotificationsModule | null; notificationsModuleEdge?: NotificationsModuleEdge | null; } +export interface CreateRelationProvisionPayload { + clientMutationId?: string | null; + /** The `RelationProvision` that was created by this mutation. */ + relationProvision?: RelationProvision | null; + relationProvisionEdge?: RelationProvisionEdge | null; +} +export interface CreateBlueprintTemplatePayload { + clientMutationId?: string | null; + /** The `BlueprintTemplate` that was created by this mutation. */ + blueprintTemplate?: BlueprintTemplate | null; + blueprintTemplateEdge?: BlueprintTemplateEdge | null; +} export interface CreateProfilesModulePayload { clientMutationId?: string | null; /** The `ProfilesModule` that was created by this mutation. */ @@ -10304,17 +11282,11 @@ export interface CreateBillingModulePayload { billingModule?: BillingModule | null; billingModuleEdge?: BillingModuleEdge | null; } -export interface CreateRelationProvisionPayload { - clientMutationId?: string | null; - /** The `RelationProvision` that was created by this mutation. */ - relationProvision?: RelationProvision | null; - relationProvisionEdge?: RelationProvisionEdge | null; -} -export interface CreateBlueprintTemplatePayload { +export interface CreateResourceModulePayload { clientMutationId?: string | null; - /** The `BlueprintTemplate` that was created by this mutation. */ - blueprintTemplate?: BlueprintTemplate | null; - blueprintTemplateEdge?: BlueprintTemplateEdge | null; + /** The `ResourceModule` that was created by this mutation. */ + resourceModule?: ResourceModule | null; + resourceModuleEdge?: ResourceModuleEdge | null; } export interface CreateUserAuthModulePayload { clientMutationId?: string | null; @@ -10322,6 +11294,12 @@ export interface CreateUserAuthModulePayload { userAuthModule?: UserAuthModule | null; userAuthModuleEdge?: UserAuthModuleEdge | null; } +export interface CreateDbUsageModulePayload { + clientMutationId?: string | null; + /** The `DbUsageModule` that was created by this mutation. */ + dbUsageModule?: DbUsageModule | null; + dbUsageModuleEdge?: DbUsageModuleEdge | null; +} export interface CreateAgentModulePayload { clientMutationId?: string | null; /** The `AgentModule` that was created by this mutation. */ @@ -10334,12 +11312,6 @@ export interface CreateLimitsModulePayload { limitsModule?: LimitsModule | null; limitsModuleEdge?: LimitsModuleEdge | null; } -export interface CreateMembershipsModulePayload { - clientMutationId?: string | null; - /** The `MembershipsModule` that was created by this mutation. */ - membershipsModule?: MembershipsModule | null; - membershipsModuleEdge?: MembershipsModuleEdge | null; -} export interface CreateEntityTypeProvisionPayload { clientMutationId?: string | null; /** The `EntityTypeProvision` that was created by this mutation. */ @@ -10352,6 +11324,12 @@ export interface CreateStorageModulePayload { storageModule?: StorageModule | null; storageModuleEdge?: StorageModuleEdge | null; } +export interface CreateMembershipsModulePayload { + clientMutationId?: string | null; + /** The `MembershipsModule` that was created by this mutation. */ + membershipsModule?: MembershipsModule | null; + membershipsModuleEdge?: MembershipsModuleEdge | null; +} export interface CreateEventsModulePayload { clientMutationId?: string | null; /** The `EventsModule` that was created by this mutation. */ @@ -10370,24 +11348,12 @@ export interface UpdateMembershipTypesModulePayload { membershipTypesModule?: MembershipTypesModule | null; membershipTypesModuleEdge?: MembershipTypesModuleEdge | null; } -export interface UpdateUserStateModulePayload { - clientMutationId?: string | null; - /** The `UserStateModule` that was updated by this mutation. */ - userStateModule?: UserStateModule | null; - userStateModuleEdge?: UserStateModuleEdge | null; -} export interface UpdateSessionSecretsModulePayload { clientMutationId?: string | null; /** The `SessionSecretsModule` that was updated by this mutation. */ sessionSecretsModule?: SessionSecretsModule | null; sessionSecretsModuleEdge?: SessionSecretsModuleEdge | null; } -export interface UpdateConfigSecretsOrgModulePayload { - clientMutationId?: string | null; - /** The `ConfigSecretsOrgModule` that was updated by this mutation. */ - configSecretsOrgModule?: ConfigSecretsOrgModule | null; - configSecretsOrgModuleEdge?: ConfigSecretsOrgModuleEdge | null; -} export interface UpdateDevicesModulePayload { clientMutationId?: string | null; /** The `DevicesModule` that was updated by this mutation. */ @@ -10400,23 +11366,23 @@ export interface UpdateI18NModulePayload { i18NModule?: I18NModule | null; i18NModuleEdge?: I18NModuleEdge | null; } -export interface UpdateUserCredentialsModulePayload { - clientMutationId?: string | null; - /** The `UserCredentialsModule` that was updated by this mutation. */ - userCredentialsModule?: UserCredentialsModule | null; - userCredentialsModuleEdge?: UserCredentialsModuleEdge | null; -} export interface UpdateUserSettingsModulePayload { clientMutationId?: string | null; /** The `UserSettingsModule` that was updated by this mutation. */ userSettingsModule?: UserSettingsModule | null; userSettingsModuleEdge?: UserSettingsModuleEdge | null; } -export interface UpdateConfigSecretsUserModulePayload { +export interface UpdateUserStateModulePayload { clientMutationId?: string | null; - /** The `ConfigSecretsUserModule` that was updated by this mutation. */ - configSecretsUserModule?: ConfigSecretsUserModule | null; - configSecretsUserModuleEdge?: ConfigSecretsUserModuleEdge | null; + /** The `UserStateModule` that was updated by this mutation. */ + userStateModule?: UserStateModule | null; + userStateModuleEdge?: UserStateModuleEdge | null; +} +export interface UpdateUserCredentialsModulePayload { + clientMutationId?: string | null; + /** The `UserCredentialsModule` that was updated by this mutation. */ + userCredentialsModule?: UserCredentialsModule | null; + userCredentialsModuleEdge?: UserCredentialsModuleEdge | null; } export interface UpdateConnectedAccountsModulePayload { clientMutationId?: string | null; @@ -10454,6 +11420,12 @@ export interface UpdateWebauthnCredentialsModulePayload { webauthnCredentialsModule?: WebauthnCredentialsModule | null; webauthnCredentialsModuleEdge?: WebauthnCredentialsModuleEdge | null; } +export interface UpdateConfigSecretsUserModulePayload { + clientMutationId?: string | null; + /** The `ConfigSecretsUserModule` that was updated by this mutation. */ + configSecretsUserModule?: ConfigSecretsUserModule | null; + configSecretsUserModuleEdge?: ConfigSecretsUserModuleEdge | null; +} export interface UpdateCryptoAddressesModulePayload { clientMutationId?: string | null; /** The `CryptoAddressesModule` that was updated by this mutation. */ @@ -10466,12 +11438,6 @@ export interface UpdateDenormalizedTableFieldPayload { denormalizedTableField?: DenormalizedTableField | null; denormalizedTableFieldEdge?: DenormalizedTableFieldEdge | null; } -export interface UpdateIdentityProvidersModulePayload { - clientMutationId?: string | null; - /** The `IdentityProvidersModule` that was updated by this mutation. */ - identityProvidersModule?: IdentityProvidersModule | null; - identityProvidersModuleEdge?: IdentityProvidersModuleEdge | null; -} export interface UpdateRlsModulePayload { clientMutationId?: string | null; /** The `RlsModule` that was updated by this mutation. */ @@ -10508,29 +11474,47 @@ export interface UpdateSecureTableProvisionPayload { secureTableProvision?: SecureTableProvision | null; secureTableProvisionEdge?: SecureTableProvisionEdge | null; } -export interface UpdateDatabaseProvisionModulePayload { +export interface UpdateIdentityProvidersModulePayload { clientMutationId?: string | null; - /** The `DatabaseProvisionModule` that was updated by this mutation. */ - databaseProvisionModule?: DatabaseProvisionModule | null; - databaseProvisionModuleEdge?: DatabaseProvisionModuleEdge | null; + /** The `IdentityProvidersModule` that was updated by this mutation. */ + identityProvidersModule?: IdentityProvidersModule | null; + identityProvidersModuleEdge?: IdentityProvidersModuleEdge | null; } -export interface UpdateConfigSecretsModulePayload { +export interface UpdateIntegrationProvidersModulePayload { clientMutationId?: string | null; - /** The `ConfigSecretsModule` that was updated by this mutation. */ - configSecretsModule?: ConfigSecretsModule | null; - configSecretsModuleEdge?: ConfigSecretsModuleEdge | null; + /** The `IntegrationProvidersModule` that was updated by this mutation. */ + integrationProvidersModule?: IntegrationProvidersModule | null; + integrationProvidersModuleEdge?: IntegrationProvidersModuleEdge | null; } -export interface UpdateGraphModulePayload { +export interface UpdateDbPoolConfigPayload { clientMutationId?: string | null; - /** The `GraphModule` that was updated by this mutation. */ - graphModule?: GraphModule | null; - graphModuleEdge?: GraphModuleEdge | null; + /** The `DbPoolConfig` that was updated by this mutation. */ + dbPoolConfig?: DbPoolConfig | null; + dbPoolConfigEdge?: DbPoolConfigEdge | null; } -export interface UpdateMerkleStoreModulePayload { +export interface UpdateRealtimeModulePayload { clientMutationId?: string | null; - /** The `MerkleStoreModule` that was updated by this mutation. */ - merkleStoreModule?: MerkleStoreModule | null; - merkleStoreModuleEdge?: MerkleStoreModuleEdge | null; + /** The `RealtimeModule` that was updated by this mutation. */ + realtimeModule?: RealtimeModule | null; + realtimeModuleEdge?: RealtimeModuleEdge | null; +} +export interface UpdateInfraSecretsModulePayload { + clientMutationId?: string | null; + /** The `InfraSecretsModule` that was updated by this mutation. */ + infraSecretsModule?: InfraSecretsModule | null; + infraSecretsModuleEdge?: InfraSecretsModuleEdge | null; +} +export interface UpdateInternalSecretsModulePayload { + clientMutationId?: string | null; + /** The `InternalSecretsModule` that was updated by this mutation. */ + internalSecretsModule?: InternalSecretsModule | null; + internalSecretsModuleEdge?: InternalSecretsModuleEdge | null; +} +export interface UpdateDbPresetModulePayload { + clientMutationId?: string | null; + /** The `DbPresetModule` that was updated by this mutation. */ + dbPresetModule?: DbPresetModule | null; + dbPresetModuleEdge?: DbPresetModuleEdge | null; } export interface UpdateRateLimitMetersModulePayload { clientMutationId?: string | null; @@ -10538,11 +11522,11 @@ export interface UpdateRateLimitMetersModulePayload { rateLimitMetersModule?: RateLimitMetersModule | null; rateLimitMetersModuleEdge?: RateLimitMetersModuleEdge | null; } -export interface UpdateRealtimeModulePayload { +export interface UpdateInfraConfigModulePayload { clientMutationId?: string | null; - /** The `RealtimeModule` that was updated by this mutation. */ - realtimeModule?: RealtimeModule | null; - realtimeModuleEdge?: RealtimeModuleEdge | null; + /** The `InfraConfigModule` that was updated by this mutation. */ + infraConfigModule?: InfraConfigModule | null; + infraConfigModuleEdge?: InfraConfigModuleEdge | null; } export interface UpdateWebauthnAuthModulePayload { clientMutationId?: string | null; @@ -10550,11 +11534,17 @@ export interface UpdateWebauthnAuthModulePayload { webauthnAuthModule?: WebauthnAuthModule | null; webauthnAuthModuleEdge?: WebauthnAuthModuleEdge | null; } -export interface UpdateFunctionInvocationModulePayload { +export interface UpdatePrincipalAuthModulePayload { clientMutationId?: string | null; - /** The `FunctionInvocationModule` that was updated by this mutation. */ - functionInvocationModule?: FunctionInvocationModule | null; - functionInvocationModuleEdge?: FunctionInvocationModuleEdge | null; + /** The `PrincipalAuthModule` that was updated by this mutation. */ + principalAuthModule?: PrincipalAuthModule | null; + principalAuthModuleEdge?: PrincipalAuthModuleEdge | null; +} +export interface UpdateDbPoolPayload { + clientMutationId?: string | null; + /** The `DbPool` that was updated by this mutation. */ + dbPool?: DbPool | null; + dbPoolEdge?: DbPoolEdge | null; } export interface UpdateFunctionModulePayload { clientMutationId?: string | null; @@ -10562,17 +11552,47 @@ export interface UpdateFunctionModulePayload { functionModule?: FunctionModule | null; functionModuleEdge?: FunctionModuleEdge | null; } +export interface UpdateGraphModulePayload { + clientMutationId?: string | null; + /** The `GraphModule` that was updated by this mutation. */ + graphModule?: GraphModule | null; + graphModuleEdge?: GraphModuleEdge | null; +} +export interface UpdateMerkleStoreModulePayload { + clientMutationId?: string | null; + /** The `MerkleStoreModule` that was updated by this mutation. */ + merkleStoreModule?: MerkleStoreModule | null; + merkleStoreModuleEdge?: MerkleStoreModuleEdge | null; +} +export interface UpdateDatabaseProvisionModulePayload { + clientMutationId?: string | null; + /** The `DatabaseProvisionModule` that was updated by this mutation. */ + databaseProvisionModule?: DatabaseProvisionModule | null; + databaseProvisionModuleEdge?: DatabaseProvisionModuleEdge | null; +} +export interface UpdateFunctionInvocationModulePayload { + clientMutationId?: string | null; + /** The `FunctionInvocationModule` that was updated by this mutation. */ + functionInvocationModule?: FunctionInvocationModule | null; + functionInvocationModuleEdge?: FunctionInvocationModuleEdge | null; +} export interface UpdateInvitesModulePayload { clientMutationId?: string | null; /** The `InvitesModule` that was updated by this mutation. */ invitesModule?: InvitesModule | null; invitesModuleEdge?: InvitesModuleEdge | null; } -export interface UpdatePrincipalAuthModulePayload { +export interface UpdateNamespaceModulePayload { + clientMutationId?: string | null; + /** The `NamespaceModule` that was updated by this mutation. */ + namespaceModule?: NamespaceModule | null; + namespaceModuleEdge?: NamespaceModuleEdge | null; +} +export interface UpdatePlansModulePayload { clientMutationId?: string | null; - /** The `PrincipalAuthModule` that was updated by this mutation. */ - principalAuthModule?: PrincipalAuthModule | null; - principalAuthModuleEdge?: PrincipalAuthModuleEdge | null; + /** The `PlansModule` that was updated by this mutation. */ + plansModule?: PlansModule | null; + plansModuleEdge?: PlansModuleEdge | null; } export interface UpdateComputeLogModulePayload { clientMutationId?: string | null; @@ -10586,18 +11606,6 @@ export interface UpdateInferenceLogModulePayload { inferenceLogModule?: InferenceLogModule | null; inferenceLogModuleEdge?: InferenceLogModuleEdge | null; } -export interface UpdateNamespaceModulePayload { - clientMutationId?: string | null; - /** The `NamespaceModule` that was updated by this mutation. */ - namespaceModule?: NamespaceModule | null; - namespaceModuleEdge?: NamespaceModuleEdge | null; -} -export interface UpdateResourceModulePayload { - clientMutationId?: string | null; - /** The `ResourceModule` that was updated by this mutation. */ - resourceModule?: ResourceModule | null; - resourceModuleEdge?: ResourceModuleEdge | null; -} export interface UpdateStorageLogModulePayload { clientMutationId?: string | null; /** The `StorageLogModule` that was updated by this mutation. */ @@ -10610,29 +11618,23 @@ export interface UpdateTransferLogModulePayload { transferLogModule?: TransferLogModule | null; transferLogModuleEdge?: TransferLogModuleEdge | null; } -export interface UpdateFunctionDeploymentModulePayload { - clientMutationId?: string | null; - /** The `FunctionDeploymentModule` that was updated by this mutation. */ - functionDeploymentModule?: FunctionDeploymentModule | null; - functionDeploymentModuleEdge?: FunctionDeploymentModuleEdge | null; -} -export interface UpdatePlansModulePayload { - clientMutationId?: string | null; - /** The `PlansModule` that was updated by this mutation. */ - plansModule?: PlansModule | null; - plansModuleEdge?: PlansModuleEdge | null; -} export interface UpdateBillingProviderModulePayload { clientMutationId?: string | null; /** The `BillingProviderModule` that was updated by this mutation. */ billingProviderModule?: BillingProviderModule | null; billingProviderModuleEdge?: BillingProviderModuleEdge | null; } -export interface UpdateDbUsageModulePayload { +export interface UpdateFunctionDeploymentModulePayload { clientMutationId?: string | null; - /** The `DbUsageModule` that was updated by this mutation. */ - dbUsageModule?: DbUsageModule | null; - dbUsageModuleEdge?: DbUsageModuleEdge | null; + /** The `FunctionDeploymentModule` that was updated by this mutation. */ + functionDeploymentModule?: FunctionDeploymentModule | null; + functionDeploymentModuleEdge?: FunctionDeploymentModuleEdge | null; +} +export interface UpdatePermissionsModulePayload { + clientMutationId?: string | null; + /** The `PermissionsModule` that was updated by this mutation. */ + permissionsModule?: PermissionsModule | null; + permissionsModuleEdge?: PermissionsModuleEdge | null; } export interface UpdateGraphExecutionModulePayload { clientMutationId?: string | null; @@ -10646,18 +11648,24 @@ export interface UpdateHierarchyModulePayload { hierarchyModule?: HierarchyModule | null; hierarchyModuleEdge?: HierarchyModuleEdge | null; } -export interface UpdatePermissionsModulePayload { - clientMutationId?: string | null; - /** The `PermissionsModule` that was updated by this mutation. */ - permissionsModule?: PermissionsModule | null; - permissionsModuleEdge?: PermissionsModuleEdge | null; -} export interface UpdateNotificationsModulePayload { clientMutationId?: string | null; /** The `NotificationsModule` that was updated by this mutation. */ notificationsModule?: NotificationsModule | null; notificationsModuleEdge?: NotificationsModuleEdge | null; } +export interface UpdateRelationProvisionPayload { + clientMutationId?: string | null; + /** The `RelationProvision` that was updated by this mutation. */ + relationProvision?: RelationProvision | null; + relationProvisionEdge?: RelationProvisionEdge | null; +} +export interface UpdateBlueprintTemplatePayload { + clientMutationId?: string | null; + /** The `BlueprintTemplate` that was updated by this mutation. */ + blueprintTemplate?: BlueprintTemplate | null; + blueprintTemplateEdge?: BlueprintTemplateEdge | null; +} export interface UpdateProfilesModulePayload { clientMutationId?: string | null; /** The `ProfilesModule` that was updated by this mutation. */ @@ -10670,17 +11678,11 @@ export interface UpdateBillingModulePayload { billingModule?: BillingModule | null; billingModuleEdge?: BillingModuleEdge | null; } -export interface UpdateRelationProvisionPayload { - clientMutationId?: string | null; - /** The `RelationProvision` that was updated by this mutation. */ - relationProvision?: RelationProvision | null; - relationProvisionEdge?: RelationProvisionEdge | null; -} -export interface UpdateBlueprintTemplatePayload { +export interface UpdateResourceModulePayload { clientMutationId?: string | null; - /** The `BlueprintTemplate` that was updated by this mutation. */ - blueprintTemplate?: BlueprintTemplate | null; - blueprintTemplateEdge?: BlueprintTemplateEdge | null; + /** The `ResourceModule` that was updated by this mutation. */ + resourceModule?: ResourceModule | null; + resourceModuleEdge?: ResourceModuleEdge | null; } export interface UpdateUserAuthModulePayload { clientMutationId?: string | null; @@ -10688,6 +11690,12 @@ export interface UpdateUserAuthModulePayload { userAuthModule?: UserAuthModule | null; userAuthModuleEdge?: UserAuthModuleEdge | null; } +export interface UpdateDbUsageModulePayload { + clientMutationId?: string | null; + /** The `DbUsageModule` that was updated by this mutation. */ + dbUsageModule?: DbUsageModule | null; + dbUsageModuleEdge?: DbUsageModuleEdge | null; +} export interface UpdateAgentModulePayload { clientMutationId?: string | null; /** The `AgentModule` that was updated by this mutation. */ @@ -10700,12 +11708,6 @@ export interface UpdateLimitsModulePayload { limitsModule?: LimitsModule | null; limitsModuleEdge?: LimitsModuleEdge | null; } -export interface UpdateMembershipsModulePayload { - clientMutationId?: string | null; - /** The `MembershipsModule` that was updated by this mutation. */ - membershipsModule?: MembershipsModule | null; - membershipsModuleEdge?: MembershipsModuleEdge | null; -} export interface UpdateEntityTypeProvisionPayload { clientMutationId?: string | null; /** The `EntityTypeProvision` that was updated by this mutation. */ @@ -10718,6 +11720,12 @@ export interface UpdateStorageModulePayload { storageModule?: StorageModule | null; storageModuleEdge?: StorageModuleEdge | null; } +export interface UpdateMembershipsModulePayload { + clientMutationId?: string | null; + /** The `MembershipsModule` that was updated by this mutation. */ + membershipsModule?: MembershipsModule | null; + membershipsModuleEdge?: MembershipsModuleEdge | null; +} export interface UpdateEventsModulePayload { clientMutationId?: string | null; /** The `EventsModule` that was updated by this mutation. */ @@ -10736,24 +11744,12 @@ export interface DeleteMembershipTypesModulePayload { membershipTypesModule?: MembershipTypesModule | null; membershipTypesModuleEdge?: MembershipTypesModuleEdge | null; } -export interface DeleteUserStateModulePayload { - clientMutationId?: string | null; - /** The `UserStateModule` that was deleted by this mutation. */ - userStateModule?: UserStateModule | null; - userStateModuleEdge?: UserStateModuleEdge | null; -} export interface DeleteSessionSecretsModulePayload { clientMutationId?: string | null; /** The `SessionSecretsModule` that was deleted by this mutation. */ sessionSecretsModule?: SessionSecretsModule | null; sessionSecretsModuleEdge?: SessionSecretsModuleEdge | null; } -export interface DeleteConfigSecretsOrgModulePayload { - clientMutationId?: string | null; - /** The `ConfigSecretsOrgModule` that was deleted by this mutation. */ - configSecretsOrgModule?: ConfigSecretsOrgModule | null; - configSecretsOrgModuleEdge?: ConfigSecretsOrgModuleEdge | null; -} export interface DeleteDevicesModulePayload { clientMutationId?: string | null; /** The `DevicesModule` that was deleted by this mutation. */ @@ -10766,23 +11762,23 @@ export interface DeleteI18NModulePayload { i18NModule?: I18NModule | null; i18NModuleEdge?: I18NModuleEdge | null; } -export interface DeleteUserCredentialsModulePayload { - clientMutationId?: string | null; - /** The `UserCredentialsModule` that was deleted by this mutation. */ - userCredentialsModule?: UserCredentialsModule | null; - userCredentialsModuleEdge?: UserCredentialsModuleEdge | null; -} export interface DeleteUserSettingsModulePayload { clientMutationId?: string | null; /** The `UserSettingsModule` that was deleted by this mutation. */ userSettingsModule?: UserSettingsModule | null; userSettingsModuleEdge?: UserSettingsModuleEdge | null; } -export interface DeleteConfigSecretsUserModulePayload { +export interface DeleteUserStateModulePayload { clientMutationId?: string | null; - /** The `ConfigSecretsUserModule` that was deleted by this mutation. */ - configSecretsUserModule?: ConfigSecretsUserModule | null; - configSecretsUserModuleEdge?: ConfigSecretsUserModuleEdge | null; + /** The `UserStateModule` that was deleted by this mutation. */ + userStateModule?: UserStateModule | null; + userStateModuleEdge?: UserStateModuleEdge | null; +} +export interface DeleteUserCredentialsModulePayload { + clientMutationId?: string | null; + /** The `UserCredentialsModule` that was deleted by this mutation. */ + userCredentialsModule?: UserCredentialsModule | null; + userCredentialsModuleEdge?: UserCredentialsModuleEdge | null; } export interface DeleteConnectedAccountsModulePayload { clientMutationId?: string | null; @@ -10820,6 +11816,12 @@ export interface DeleteWebauthnCredentialsModulePayload { webauthnCredentialsModule?: WebauthnCredentialsModule | null; webauthnCredentialsModuleEdge?: WebauthnCredentialsModuleEdge | null; } +export interface DeleteConfigSecretsUserModulePayload { + clientMutationId?: string | null; + /** The `ConfigSecretsUserModule` that was deleted by this mutation. */ + configSecretsUserModule?: ConfigSecretsUserModule | null; + configSecretsUserModuleEdge?: ConfigSecretsUserModuleEdge | null; +} export interface DeleteCryptoAddressesModulePayload { clientMutationId?: string | null; /** The `CryptoAddressesModule` that was deleted by this mutation. */ @@ -10832,12 +11834,6 @@ export interface DeleteDenormalizedTableFieldPayload { denormalizedTableField?: DenormalizedTableField | null; denormalizedTableFieldEdge?: DenormalizedTableFieldEdge | null; } -export interface DeleteIdentityProvidersModulePayload { - clientMutationId?: string | null; - /** The `IdentityProvidersModule` that was deleted by this mutation. */ - identityProvidersModule?: IdentityProvidersModule | null; - identityProvidersModuleEdge?: IdentityProvidersModuleEdge | null; -} export interface DeleteRlsModulePayload { clientMutationId?: string | null; /** The `RlsModule` that was deleted by this mutation. */ @@ -10874,29 +11870,47 @@ export interface DeleteSecureTableProvisionPayload { secureTableProvision?: SecureTableProvision | null; secureTableProvisionEdge?: SecureTableProvisionEdge | null; } -export interface DeleteDatabaseProvisionModulePayload { +export interface DeleteIdentityProvidersModulePayload { clientMutationId?: string | null; - /** The `DatabaseProvisionModule` that was deleted by this mutation. */ - databaseProvisionModule?: DatabaseProvisionModule | null; - databaseProvisionModuleEdge?: DatabaseProvisionModuleEdge | null; + /** The `IdentityProvidersModule` that was deleted by this mutation. */ + identityProvidersModule?: IdentityProvidersModule | null; + identityProvidersModuleEdge?: IdentityProvidersModuleEdge | null; } -export interface DeleteConfigSecretsModulePayload { +export interface DeleteIntegrationProvidersModulePayload { clientMutationId?: string | null; - /** The `ConfigSecretsModule` that was deleted by this mutation. */ - configSecretsModule?: ConfigSecretsModule | null; - configSecretsModuleEdge?: ConfigSecretsModuleEdge | null; + /** The `IntegrationProvidersModule` that was deleted by this mutation. */ + integrationProvidersModule?: IntegrationProvidersModule | null; + integrationProvidersModuleEdge?: IntegrationProvidersModuleEdge | null; } -export interface DeleteGraphModulePayload { +export interface DeleteDbPoolConfigPayload { clientMutationId?: string | null; - /** The `GraphModule` that was deleted by this mutation. */ - graphModule?: GraphModule | null; - graphModuleEdge?: GraphModuleEdge | null; + /** The `DbPoolConfig` that was deleted by this mutation. */ + dbPoolConfig?: DbPoolConfig | null; + dbPoolConfigEdge?: DbPoolConfigEdge | null; } -export interface DeleteMerkleStoreModulePayload { +export interface DeleteRealtimeModulePayload { clientMutationId?: string | null; - /** The `MerkleStoreModule` that was deleted by this mutation. */ - merkleStoreModule?: MerkleStoreModule | null; - merkleStoreModuleEdge?: MerkleStoreModuleEdge | null; + /** The `RealtimeModule` that was deleted by this mutation. */ + realtimeModule?: RealtimeModule | null; + realtimeModuleEdge?: RealtimeModuleEdge | null; +} +export interface DeleteInfraSecretsModulePayload { + clientMutationId?: string | null; + /** The `InfraSecretsModule` that was deleted by this mutation. */ + infraSecretsModule?: InfraSecretsModule | null; + infraSecretsModuleEdge?: InfraSecretsModuleEdge | null; +} +export interface DeleteInternalSecretsModulePayload { + clientMutationId?: string | null; + /** The `InternalSecretsModule` that was deleted by this mutation. */ + internalSecretsModule?: InternalSecretsModule | null; + internalSecretsModuleEdge?: InternalSecretsModuleEdge | null; +} +export interface DeleteDbPresetModulePayload { + clientMutationId?: string | null; + /** The `DbPresetModule` that was deleted by this mutation. */ + dbPresetModule?: DbPresetModule | null; + dbPresetModuleEdge?: DbPresetModuleEdge | null; } export interface DeleteRateLimitMetersModulePayload { clientMutationId?: string | null; @@ -10904,11 +11918,11 @@ export interface DeleteRateLimitMetersModulePayload { rateLimitMetersModule?: RateLimitMetersModule | null; rateLimitMetersModuleEdge?: RateLimitMetersModuleEdge | null; } -export interface DeleteRealtimeModulePayload { +export interface DeleteInfraConfigModulePayload { clientMutationId?: string | null; - /** The `RealtimeModule` that was deleted by this mutation. */ - realtimeModule?: RealtimeModule | null; - realtimeModuleEdge?: RealtimeModuleEdge | null; + /** The `InfraConfigModule` that was deleted by this mutation. */ + infraConfigModule?: InfraConfigModule | null; + infraConfigModuleEdge?: InfraConfigModuleEdge | null; } export interface DeleteWebauthnAuthModulePayload { clientMutationId?: string | null; @@ -10916,11 +11930,17 @@ export interface DeleteWebauthnAuthModulePayload { webauthnAuthModule?: WebauthnAuthModule | null; webauthnAuthModuleEdge?: WebauthnAuthModuleEdge | null; } -export interface DeleteFunctionInvocationModulePayload { +export interface DeletePrincipalAuthModulePayload { clientMutationId?: string | null; - /** The `FunctionInvocationModule` that was deleted by this mutation. */ - functionInvocationModule?: FunctionInvocationModule | null; - functionInvocationModuleEdge?: FunctionInvocationModuleEdge | null; + /** The `PrincipalAuthModule` that was deleted by this mutation. */ + principalAuthModule?: PrincipalAuthModule | null; + principalAuthModuleEdge?: PrincipalAuthModuleEdge | null; +} +export interface DeleteDbPoolPayload { + clientMutationId?: string | null; + /** The `DbPool` that was deleted by this mutation. */ + dbPool?: DbPool | null; + dbPoolEdge?: DbPoolEdge | null; } export interface DeleteFunctionModulePayload { clientMutationId?: string | null; @@ -10928,17 +11948,47 @@ export interface DeleteFunctionModulePayload { functionModule?: FunctionModule | null; functionModuleEdge?: FunctionModuleEdge | null; } +export interface DeleteGraphModulePayload { + clientMutationId?: string | null; + /** The `GraphModule` that was deleted by this mutation. */ + graphModule?: GraphModule | null; + graphModuleEdge?: GraphModuleEdge | null; +} +export interface DeleteMerkleStoreModulePayload { + clientMutationId?: string | null; + /** The `MerkleStoreModule` that was deleted by this mutation. */ + merkleStoreModule?: MerkleStoreModule | null; + merkleStoreModuleEdge?: MerkleStoreModuleEdge | null; +} +export interface DeleteDatabaseProvisionModulePayload { + clientMutationId?: string | null; + /** The `DatabaseProvisionModule` that was deleted by this mutation. */ + databaseProvisionModule?: DatabaseProvisionModule | null; + databaseProvisionModuleEdge?: DatabaseProvisionModuleEdge | null; +} +export interface DeleteFunctionInvocationModulePayload { + clientMutationId?: string | null; + /** The `FunctionInvocationModule` that was deleted by this mutation. */ + functionInvocationModule?: FunctionInvocationModule | null; + functionInvocationModuleEdge?: FunctionInvocationModuleEdge | null; +} export interface DeleteInvitesModulePayload { clientMutationId?: string | null; /** The `InvitesModule` that was deleted by this mutation. */ invitesModule?: InvitesModule | null; invitesModuleEdge?: InvitesModuleEdge | null; } -export interface DeletePrincipalAuthModulePayload { +export interface DeleteNamespaceModulePayload { clientMutationId?: string | null; - /** The `PrincipalAuthModule` that was deleted by this mutation. */ - principalAuthModule?: PrincipalAuthModule | null; - principalAuthModuleEdge?: PrincipalAuthModuleEdge | null; + /** The `NamespaceModule` that was deleted by this mutation. */ + namespaceModule?: NamespaceModule | null; + namespaceModuleEdge?: NamespaceModuleEdge | null; +} +export interface DeletePlansModulePayload { + clientMutationId?: string | null; + /** The `PlansModule` that was deleted by this mutation. */ + plansModule?: PlansModule | null; + plansModuleEdge?: PlansModuleEdge | null; } export interface DeleteComputeLogModulePayload { clientMutationId?: string | null; @@ -10952,18 +12002,6 @@ export interface DeleteInferenceLogModulePayload { inferenceLogModule?: InferenceLogModule | null; inferenceLogModuleEdge?: InferenceLogModuleEdge | null; } -export interface DeleteNamespaceModulePayload { - clientMutationId?: string | null; - /** The `NamespaceModule` that was deleted by this mutation. */ - namespaceModule?: NamespaceModule | null; - namespaceModuleEdge?: NamespaceModuleEdge | null; -} -export interface DeleteResourceModulePayload { - clientMutationId?: string | null; - /** The `ResourceModule` that was deleted by this mutation. */ - resourceModule?: ResourceModule | null; - resourceModuleEdge?: ResourceModuleEdge | null; -} export interface DeleteStorageLogModulePayload { clientMutationId?: string | null; /** The `StorageLogModule` that was deleted by this mutation. */ @@ -10976,29 +12014,23 @@ export interface DeleteTransferLogModulePayload { transferLogModule?: TransferLogModule | null; transferLogModuleEdge?: TransferLogModuleEdge | null; } -export interface DeleteFunctionDeploymentModulePayload { - clientMutationId?: string | null; - /** The `FunctionDeploymentModule` that was deleted by this mutation. */ - functionDeploymentModule?: FunctionDeploymentModule | null; - functionDeploymentModuleEdge?: FunctionDeploymentModuleEdge | null; -} -export interface DeletePlansModulePayload { - clientMutationId?: string | null; - /** The `PlansModule` that was deleted by this mutation. */ - plansModule?: PlansModule | null; - plansModuleEdge?: PlansModuleEdge | null; -} export interface DeleteBillingProviderModulePayload { clientMutationId?: string | null; /** The `BillingProviderModule` that was deleted by this mutation. */ billingProviderModule?: BillingProviderModule | null; billingProviderModuleEdge?: BillingProviderModuleEdge | null; } -export interface DeleteDbUsageModulePayload { +export interface DeleteFunctionDeploymentModulePayload { clientMutationId?: string | null; - /** The `DbUsageModule` that was deleted by this mutation. */ - dbUsageModule?: DbUsageModule | null; - dbUsageModuleEdge?: DbUsageModuleEdge | null; + /** The `FunctionDeploymentModule` that was deleted by this mutation. */ + functionDeploymentModule?: FunctionDeploymentModule | null; + functionDeploymentModuleEdge?: FunctionDeploymentModuleEdge | null; +} +export interface DeletePermissionsModulePayload { + clientMutationId?: string | null; + /** The `PermissionsModule` that was deleted by this mutation. */ + permissionsModule?: PermissionsModule | null; + permissionsModuleEdge?: PermissionsModuleEdge | null; } export interface DeleteGraphExecutionModulePayload { clientMutationId?: string | null; @@ -11012,18 +12044,24 @@ export interface DeleteHierarchyModulePayload { hierarchyModule?: HierarchyModule | null; hierarchyModuleEdge?: HierarchyModuleEdge | null; } -export interface DeletePermissionsModulePayload { - clientMutationId?: string | null; - /** The `PermissionsModule` that was deleted by this mutation. */ - permissionsModule?: PermissionsModule | null; - permissionsModuleEdge?: PermissionsModuleEdge | null; -} export interface DeleteNotificationsModulePayload { clientMutationId?: string | null; /** The `NotificationsModule` that was deleted by this mutation. */ notificationsModule?: NotificationsModule | null; notificationsModuleEdge?: NotificationsModuleEdge | null; } +export interface DeleteRelationProvisionPayload { + clientMutationId?: string | null; + /** The `RelationProvision` that was deleted by this mutation. */ + relationProvision?: RelationProvision | null; + relationProvisionEdge?: RelationProvisionEdge | null; +} +export interface DeleteBlueprintTemplatePayload { + clientMutationId?: string | null; + /** The `BlueprintTemplate` that was deleted by this mutation. */ + blueprintTemplate?: BlueprintTemplate | null; + blueprintTemplateEdge?: BlueprintTemplateEdge | null; +} export interface DeleteProfilesModulePayload { clientMutationId?: string | null; /** The `ProfilesModule` that was deleted by this mutation. */ @@ -11036,17 +12074,11 @@ export interface DeleteBillingModulePayload { billingModule?: BillingModule | null; billingModuleEdge?: BillingModuleEdge | null; } -export interface DeleteRelationProvisionPayload { - clientMutationId?: string | null; - /** The `RelationProvision` that was deleted by this mutation. */ - relationProvision?: RelationProvision | null; - relationProvisionEdge?: RelationProvisionEdge | null; -} -export interface DeleteBlueprintTemplatePayload { +export interface DeleteResourceModulePayload { clientMutationId?: string | null; - /** The `BlueprintTemplate` that was deleted by this mutation. */ - blueprintTemplate?: BlueprintTemplate | null; - blueprintTemplateEdge?: BlueprintTemplateEdge | null; + /** The `ResourceModule` that was deleted by this mutation. */ + resourceModule?: ResourceModule | null; + resourceModuleEdge?: ResourceModuleEdge | null; } export interface DeleteUserAuthModulePayload { clientMutationId?: string | null; @@ -11054,6 +12086,12 @@ export interface DeleteUserAuthModulePayload { userAuthModule?: UserAuthModule | null; userAuthModuleEdge?: UserAuthModuleEdge | null; } +export interface DeleteDbUsageModulePayload { + clientMutationId?: string | null; + /** The `DbUsageModule` that was deleted by this mutation. */ + dbUsageModule?: DbUsageModule | null; + dbUsageModuleEdge?: DbUsageModuleEdge | null; +} export interface DeleteAgentModulePayload { clientMutationId?: string | null; /** The `AgentModule` that was deleted by this mutation. */ @@ -11066,12 +12104,6 @@ export interface DeleteLimitsModulePayload { limitsModule?: LimitsModule | null; limitsModuleEdge?: LimitsModuleEdge | null; } -export interface DeleteMembershipsModulePayload { - clientMutationId?: string | null; - /** The `MembershipsModule` that was deleted by this mutation. */ - membershipsModule?: MembershipsModule | null; - membershipsModuleEdge?: MembershipsModuleEdge | null; -} export interface DeleteEntityTypeProvisionPayload { clientMutationId?: string | null; /** The `EntityTypeProvision` that was deleted by this mutation. */ @@ -11084,6 +12116,12 @@ export interface DeleteStorageModulePayload { storageModule?: StorageModule | null; storageModuleEdge?: StorageModuleEdge | null; } +export interface DeleteMembershipsModulePayload { + clientMutationId?: string | null; + /** The `MembershipsModule` that was deleted by this mutation. */ + membershipsModule?: MembershipsModule | null; + membershipsModuleEdge?: MembershipsModuleEdge | null; +} export interface DeleteEventsModulePayload { clientMutationId?: string | null; /** The `EventsModule` that was deleted by this mutation. */ @@ -11127,24 +12165,12 @@ export interface MembershipTypesModuleEdge { /** The `MembershipTypesModule` at the end of the edge. */ node?: MembershipTypesModule | null; } -/** A `UserStateModule` edge in the connection. */ -export interface UserStateModuleEdge { - cursor?: string | null; - /** The `UserStateModule` at the end of the edge. */ - node?: UserStateModule | null; -} /** A `SessionSecretsModule` edge in the connection. */ export interface SessionSecretsModuleEdge { cursor?: string | null; /** The `SessionSecretsModule` at the end of the edge. */ node?: SessionSecretsModule | null; } -/** A `ConfigSecretsOrgModule` edge in the connection. */ -export interface ConfigSecretsOrgModuleEdge { - cursor?: string | null; - /** The `ConfigSecretsOrgModule` at the end of the edge. */ - node?: ConfigSecretsOrgModule | null; -} /** A `DevicesModule` edge in the connection. */ export interface DevicesModuleEdge { cursor?: string | null; @@ -11157,23 +12183,23 @@ export interface I18NModuleEdge { /** The `I18NModule` at the end of the edge. */ node?: I18NModule | null; } -/** A `UserCredentialsModule` edge in the connection. */ -export interface UserCredentialsModuleEdge { - cursor?: string | null; - /** The `UserCredentialsModule` at the end of the edge. */ - node?: UserCredentialsModule | null; -} /** A `UserSettingsModule` edge in the connection. */ export interface UserSettingsModuleEdge { cursor?: string | null; /** The `UserSettingsModule` at the end of the edge. */ node?: UserSettingsModule | null; } -/** A `ConfigSecretsUserModule` edge in the connection. */ -export interface ConfigSecretsUserModuleEdge { +/** A `UserStateModule` edge in the connection. */ +export interface UserStateModuleEdge { cursor?: string | null; - /** The `ConfigSecretsUserModule` at the end of the edge. */ - node?: ConfigSecretsUserModule | null; + /** The `UserStateModule` at the end of the edge. */ + node?: UserStateModule | null; +} +/** A `UserCredentialsModule` edge in the connection. */ +export interface UserCredentialsModuleEdge { + cursor?: string | null; + /** The `UserCredentialsModule` at the end of the edge. */ + node?: UserCredentialsModule | null; } /** A `ConnectedAccountsModule` edge in the connection. */ export interface ConnectedAccountsModuleEdge { @@ -11211,6 +12237,12 @@ export interface WebauthnCredentialsModuleEdge { /** The `WebauthnCredentialsModule` at the end of the edge. */ node?: WebauthnCredentialsModule | 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 `CryptoAddressesModule` edge in the connection. */ export interface CryptoAddressesModuleEdge { cursor?: string | null; @@ -11223,12 +12255,6 @@ export interface DenormalizedTableFieldEdge { /** The `DenormalizedTableField` at the end of the edge. */ node?: DenormalizedTableField | null; } -/** A `IdentityProvidersModule` edge in the connection. */ -export interface IdentityProvidersModuleEdge { - cursor?: string | null; - /** The `IdentityProvidersModule` at the end of the edge. */ - node?: IdentityProvidersModule | null; -} /** A `RlsModule` edge in the connection. */ export interface RlsModuleEdge { cursor?: string | null; @@ -11265,29 +12291,47 @@ export interface SecureTableProvisionEdge { /** The `SecureTableProvision` at the end of the edge. */ node?: SecureTableProvision | null; } -/** A `DatabaseProvisionModule` edge in the connection. */ -export interface DatabaseProvisionModuleEdge { +/** A `IdentityProvidersModule` edge in the connection. */ +export interface IdentityProvidersModuleEdge { cursor?: string | null; - /** The `DatabaseProvisionModule` at the end of the edge. */ - node?: DatabaseProvisionModule | null; + /** The `IdentityProvidersModule` at the end of the edge. */ + node?: IdentityProvidersModule | null; } -/** A `ConfigSecretsModule` edge in the connection. */ -export interface ConfigSecretsModuleEdge { +/** A `IntegrationProvidersModule` edge in the connection. */ +export interface IntegrationProvidersModuleEdge { cursor?: string | null; - /** The `ConfigSecretsModule` at the end of the edge. */ - node?: ConfigSecretsModule | null; + /** The `IntegrationProvidersModule` at the end of the edge. */ + node?: IntegrationProvidersModule | null; } -/** A `GraphModule` edge in the connection. */ -export interface GraphModuleEdge { +/** A `DbPoolConfig` edge in the connection. */ +export interface DbPoolConfigEdge { cursor?: string | null; - /** The `GraphModule` at the end of the edge. */ - node?: GraphModule | null; + /** The `DbPoolConfig` at the end of the edge. */ + node?: DbPoolConfig | null; } -/** A `MerkleStoreModule` edge in the connection. */ -export interface MerkleStoreModuleEdge { +/** A `RealtimeModule` edge in the connection. */ +export interface RealtimeModuleEdge { cursor?: string | null; - /** The `MerkleStoreModule` at the end of the edge. */ - node?: MerkleStoreModule | null; + /** The `RealtimeModule` at the end of the edge. */ + node?: RealtimeModule | null; +} +/** A `InfraSecretsModule` edge in the connection. */ +export interface InfraSecretsModuleEdge { + cursor?: string | null; + /** The `InfraSecretsModule` at the end of the edge. */ + node?: InfraSecretsModule | null; +} +/** A `InternalSecretsModule` edge in the connection. */ +export interface InternalSecretsModuleEdge { + cursor?: string | null; + /** The `InternalSecretsModule` at the end of the edge. */ + node?: InternalSecretsModule | null; +} +/** A `DbPresetModule` edge in the connection. */ +export interface DbPresetModuleEdge { + cursor?: string | null; + /** The `DbPresetModule` at the end of the edge. */ + node?: DbPresetModule | null; } /** A `RateLimitMetersModule` edge in the connection. */ export interface RateLimitMetersModuleEdge { @@ -11295,11 +12339,11 @@ export interface RateLimitMetersModuleEdge { /** The `RateLimitMetersModule` at the end of the edge. */ node?: RateLimitMetersModule | null; } -/** A `RealtimeModule` edge in the connection. */ -export interface RealtimeModuleEdge { +/** A `InfraConfigModule` edge in the connection. */ +export interface InfraConfigModuleEdge { cursor?: string | null; - /** The `RealtimeModule` at the end of the edge. */ - node?: RealtimeModule | null; + /** The `InfraConfigModule` at the end of the edge. */ + node?: InfraConfigModule | null; } /** A `WebauthnAuthModule` edge in the connection. */ export interface WebauthnAuthModuleEdge { @@ -11307,11 +12351,17 @@ export interface WebauthnAuthModuleEdge { /** The `WebauthnAuthModule` at the end of the edge. */ node?: WebauthnAuthModule | null; } -/** A `FunctionInvocationModule` edge in the connection. */ -export interface FunctionInvocationModuleEdge { +/** A `PrincipalAuthModule` edge in the connection. */ +export interface PrincipalAuthModuleEdge { cursor?: string | null; - /** The `FunctionInvocationModule` at the end of the edge. */ - node?: FunctionInvocationModule | null; + /** The `PrincipalAuthModule` at the end of the edge. */ + node?: PrincipalAuthModule | null; +} +/** A `DbPool` edge in the connection. */ +export interface DbPoolEdge { + cursor?: string | null; + /** The `DbPool` at the end of the edge. */ + node?: DbPool | null; } /** A `FunctionModule` edge in the connection. */ export interface FunctionModuleEdge { @@ -11319,17 +12369,47 @@ export interface FunctionModuleEdge { /** The `FunctionModule` at the end of the edge. */ node?: FunctionModule | null; } +/** A `GraphModule` edge in the connection. */ +export interface GraphModuleEdge { + cursor?: string | null; + /** The `GraphModule` at the end of the edge. */ + node?: GraphModule | null; +} +/** A `MerkleStoreModule` edge in the connection. */ +export interface MerkleStoreModuleEdge { + cursor?: string | null; + /** The `MerkleStoreModule` at the end of the edge. */ + node?: MerkleStoreModule | null; +} +/** A `DatabaseProvisionModule` edge in the connection. */ +export interface DatabaseProvisionModuleEdge { + cursor?: string | null; + /** The `DatabaseProvisionModule` at the end of the edge. */ + node?: DatabaseProvisionModule | null; +} +/** A `FunctionInvocationModule` edge in the connection. */ +export interface FunctionInvocationModuleEdge { + cursor?: string | null; + /** The `FunctionInvocationModule` at the end of the edge. */ + node?: FunctionInvocationModule | null; +} /** A `InvitesModule` edge in the connection. */ export interface InvitesModuleEdge { cursor?: string | null; /** The `InvitesModule` at the end of the edge. */ node?: InvitesModule | null; } -/** A `PrincipalAuthModule` edge in the connection. */ -export interface PrincipalAuthModuleEdge { +/** A `NamespaceModule` edge in the connection. */ +export interface NamespaceModuleEdge { cursor?: string | null; - /** The `PrincipalAuthModule` at the end of the edge. */ - node?: PrincipalAuthModule | null; + /** The `NamespaceModule` at the end of the edge. */ + node?: NamespaceModule | null; +} +/** A `PlansModule` edge in the connection. */ +export interface PlansModuleEdge { + cursor?: string | null; + /** The `PlansModule` at the end of the edge. */ + node?: PlansModule | null; } /** A `ComputeLogModule` edge in the connection. */ export interface ComputeLogModuleEdge { @@ -11343,18 +12423,6 @@ export interface InferenceLogModuleEdge { /** The `InferenceLogModule` at the end of the edge. */ node?: InferenceLogModule | null; } -/** A `NamespaceModule` edge in the connection. */ -export interface NamespaceModuleEdge { - cursor?: string | null; - /** The `NamespaceModule` at the end of the edge. */ - node?: NamespaceModule | null; -} -/** A `ResourceModule` edge in the connection. */ -export interface ResourceModuleEdge { - cursor?: string | null; - /** The `ResourceModule` at the end of the edge. */ - node?: ResourceModule | null; -} /** A `StorageLogModule` edge in the connection. */ export interface StorageLogModuleEdge { cursor?: string | null; @@ -11367,29 +12435,23 @@ export interface TransferLogModuleEdge { /** The `TransferLogModule` at the end of the edge. */ node?: TransferLogModule | null; } -/** A `FunctionDeploymentModule` edge in the connection. */ -export interface FunctionDeploymentModuleEdge { - cursor?: string | null; - /** The `FunctionDeploymentModule` at the end of the edge. */ - node?: FunctionDeploymentModule | null; -} -/** A `PlansModule` edge in the connection. */ -export interface PlansModuleEdge { - cursor?: string | null; - /** The `PlansModule` at the end of the edge. */ - node?: PlansModule | null; -} /** A `BillingProviderModule` edge in the connection. */ export interface BillingProviderModuleEdge { cursor?: string | null; /** The `BillingProviderModule` at the end of the edge. */ node?: BillingProviderModule | null; } -/** A `DbUsageModule` edge in the connection. */ -export interface DbUsageModuleEdge { +/** A `FunctionDeploymentModule` edge in the connection. */ +export interface FunctionDeploymentModuleEdge { cursor?: string | null; - /** The `DbUsageModule` at the end of the edge. */ - node?: DbUsageModule | null; + /** The `FunctionDeploymentModule` at the end of the edge. */ + node?: FunctionDeploymentModule | null; +} +/** A `PermissionsModule` edge in the connection. */ +export interface PermissionsModuleEdge { + cursor?: string | null; + /** The `PermissionsModule` at the end of the edge. */ + node?: PermissionsModule | null; } /** A `GraphExecutionModule` edge in the connection. */ export interface GraphExecutionModuleEdge { @@ -11403,18 +12465,24 @@ export interface HierarchyModuleEdge { /** The `HierarchyModule` at the end of the edge. */ node?: HierarchyModule | null; } -/** A `PermissionsModule` edge in the connection. */ -export interface PermissionsModuleEdge { - cursor?: string | null; - /** The `PermissionsModule` at the end of the edge. */ - node?: PermissionsModule | null; -} /** A `NotificationsModule` edge in the connection. */ export interface NotificationsModuleEdge { cursor?: string | null; /** The `NotificationsModule` at the end of the edge. */ node?: NotificationsModule | null; } +/** A `RelationProvision` edge in the connection. */ +export interface RelationProvisionEdge { + cursor?: string | null; + /** The `RelationProvision` at the end of the edge. */ + node?: RelationProvision | null; +} +/** A `BlueprintTemplate` edge in the connection. */ +export interface BlueprintTemplateEdge { + cursor?: string | null; + /** The `BlueprintTemplate` at the end of the edge. */ + node?: BlueprintTemplate | null; +} /** A `ProfilesModule` edge in the connection. */ export interface ProfilesModuleEdge { cursor?: string | null; @@ -11427,17 +12495,11 @@ export interface BillingModuleEdge { /** The `BillingModule` at the end of the edge. */ node?: BillingModule | null; } -/** A `RelationProvision` edge in the connection. */ -export interface RelationProvisionEdge { - cursor?: string | null; - /** The `RelationProvision` at the end of the edge. */ - node?: RelationProvision | null; -} -/** A `BlueprintTemplate` edge in the connection. */ -export interface BlueprintTemplateEdge { +/** A `ResourceModule` edge in the connection. */ +export interface ResourceModuleEdge { cursor?: string | null; - /** The `BlueprintTemplate` at the end of the edge. */ - node?: BlueprintTemplate | null; + /** The `ResourceModule` at the end of the edge. */ + node?: ResourceModule | null; } /** A `UserAuthModule` edge in the connection. */ export interface UserAuthModuleEdge { @@ -11445,6 +12507,12 @@ export interface UserAuthModuleEdge { /** The `UserAuthModule` at the end of the edge. */ node?: UserAuthModule | null; } +/** A `DbUsageModule` edge in the connection. */ +export interface DbUsageModuleEdge { + cursor?: string | null; + /** The `DbUsageModule` at the end of the edge. */ + node?: DbUsageModule | null; +} /** A `AgentModule` edge in the connection. */ export interface AgentModuleEdge { cursor?: string | null; @@ -11457,12 +12525,6 @@ export interface LimitsModuleEdge { /** The `LimitsModule` at the end of the edge. */ node?: LimitsModule | null; } -/** A `MembershipsModule` edge in the connection. */ -export interface MembershipsModuleEdge { - cursor?: string | null; - /** The `MembershipsModule` at the end of the edge. */ - node?: MembershipsModule | null; -} /** A `EntityTypeProvision` edge in the connection. */ export interface EntityTypeProvisionEdge { cursor?: string | null; @@ -11475,6 +12537,12 @@ export interface StorageModuleEdge { /** The `StorageModule` at the end of the edge. */ node?: StorageModule | null; } +/** A `MembershipsModule` edge in the connection. */ +export interface MembershipsModuleEdge { + cursor?: string | null; + /** The `MembershipsModule` at the end of the edge. */ + node?: MembershipsModule | null; +} /** A `EventsModule` edge in the connection. */ export interface EventsModuleEdge { cursor?: string | null; diff --git a/sdk/constructive-react/src/modules/types.ts b/sdk/constructive-react/src/modules/types.ts index 64fb486108..c346de4448 100644 --- a/sdk/constructive-react/src/modules/types.ts +++ b/sdk/constructive-react/src/modules/types.ts @@ -14,13 +14,6 @@ export interface MembershipTypesModule { tableId: string | null; tableName: string | null; } -export interface UserStateModule { - id: string | null; - databaseId: string | null; - schemaId: string | null; - tableId: string | null; - tableName: string | null; -} export interface SessionSecretsModule { id: string | null; databaseId: string | null; @@ -29,15 +22,6 @@ export interface SessionSecretsModule { tableName: string | null; sessionsTableId: string | null; } -export interface ConfigSecretsOrgModule { - id: string | null; - databaseId: string | null; - schemaId: string | null; - tableId: string | null; - tableName: string | null; - apiName: string | null; - privateApiName: string | null; -} export interface DevicesModule { id: string | null; databaseId: string | null; @@ -56,32 +40,30 @@ export interface I18NModule { apiName: string | null; privateApiName: string | null; } -export interface UserCredentialsModule { +export interface UserSettingsModule { id: string | null; databaseId: string | null; schemaId: string | null; tableId: string | null; + ownerTableId: string | null; tableName: string | null; apiName: string | null; - privateApiName: string | null; } -export interface UserSettingsModule { +export interface UserStateModule { id: string | null; databaseId: string | null; + entityField: string | null; schemaId: string | null; tableId: string | null; - ownerTableId: string | null; tableName: string | null; - apiName: string | null; } -export interface ConfigSecretsUserModule { +export interface UserCredentialsModule { id: string | null; databaseId: string | null; + entityField: string | null; schemaId: string | null; tableId: string | null; tableName: string | null; - configDefinitionsTableId: string | null; - apiName: string | null; privateApiName: string | null; } export interface ConnectedAccountsModule { @@ -150,6 +132,16 @@ export interface WebauthnCredentialsModule { apiName: string | null; privateApiName: string | null; } +export interface ConfigSecretsUserModule { + id: string | null; + databaseId: string | null; + entityField: string | null; + schemaId: string | null; + tableId: string | null; + tableName: string | null; + apiName: string | null; + privateApiName: string | null; +} export interface CryptoAddressesModule { id: string | null; databaseId: string | null; @@ -176,21 +168,6 @@ export interface DenormalizedTableField { funcName: string | null; funcOrder: number | null; } -export interface IdentityProvidersModule { - id: string | null; - databaseId: string | null; - schemaId: string | null; - privateSchemaId: string | null; - publicSchemaName: string | null; - privateSchemaName: string | null; - tableId: string | null; - tableName: string | null; - apiName: string | null; - privateApiName: string | null; - scope: string | null; - prefix: string | null; - entityTableId: string | null; -} export interface RlsModule { id: string | null; databaseId: string | null; @@ -297,42 +274,103 @@ export interface SecureTableProvision { policies: unknown | null; outFields: string[] | null; } -export interface DatabaseProvisionModule { +export interface IdentityProvidersModule { id: string | null; - databaseName: string | null; - ownerId: string | null; - subdomain: string | null; - domain: string | null; - modules: unknown | null; - options: unknown | null; - bootstrapUser: boolean | null; - status: string | null; - errorMessage: string | null; databaseId: string | null; - createdAt: string | null; - updatedAt: string | null; - completedAt: string | null; + entityField: string | null; + schemaId: string | null; + privateSchemaId: string | null; + publicSchemaName: string | null; + privateSchemaName: string | null; + tableId: string | null; + tableName: string | null; + apiName: string | null; + privateApiName: string | null; + scope: string | null; + prefix: string | null; + entityTableId: string | null; } -export interface ConfigSecretsModule { +export interface IntegrationProvidersModule { id: string | null; databaseId: string | null; + entityField: string | null; schemaId: string | null; privateSchemaId: string | null; publicSchemaName: string | null; privateSchemaName: string | null; tableId: string | null; - configDefinitionsTableId: string | null; tableName: string | null; apiName: string | null; privateApiName: string | null; scope: string | null; prefix: string | null; entityTableId: string | null; +} +export interface DbPoolConfig { + id: string | null; + presetSlug: string | null; + domain: string | null; + poolOwnerId: string | null; + min: number | null; + max: number | null; + warmTtl: string | null; + enabled: boolean | null; + createdAt: string | null; + updatedAt: string | null; +} +export interface RealtimeModule { + id: string | null; + databaseId: string | null; + schemaId: string | null; + privateSchemaId: string | null; + subscriptionsSchemaId: string | null; + changeLogTableId: string | null; + listenerNodeTableId: string | null; + sourceRegistryTableId: string | null; + retentionHours: number | null; + premake: number | null; + interval: string | null; + notifyChannel: string | null; + apiName: string | null; + privateApiName: string | null; +} +export interface InfraSecretsModule { + id: string | null; + databaseId: string | null; + schemaId: string | null; + privateSchemaId: string | null; + publicSchemaName: string | null; + privateSchemaName: string | null; + secretsTableId: string | null; + secretsTableName: string | null; + apiName: string | null; + privateApiName: string | null; + scope: string | null; + prefix: string | null; + entityTableId: string | null; + entityField: string | null; policies: unknown | null; provisions: unknown | null; - hasConfig: boolean | null; } -export interface GraphModule { +export interface InternalSecretsModule { + id: string | null; + databaseId: string | null; + schemaId: string | null; + privateSchemaId: string | null; + publicSchemaName: string | null; + privateSchemaName: string | null; + internalSecretsTableId: string | null; + internalSecretsTableName: string | null; + apiName: string | null; + privateApiName: string | null; + scope: string | null; + prefix: string | null; + entityTableId: string | null; + entityField: string | null; + policies: unknown | null; + provisions: unknown | null; +} +export interface DbPresetModule { id: string | null; databaseId: string | null; publicSchemaId: string | null; @@ -342,32 +380,33 @@ export interface GraphModule { scope: string | null; prefix: string | null; merkleStoreModuleId: string | null; - graphsTableId: string | null; + dbPresetsTableId: string | null; + storeName: string | null; apiName: string | null; privateApiName: string | null; entityTableId: string | null; policies: unknown | null; provisions: unknown | null; - defaultPermissions: string[] | null; createdAt: string | null; } -export interface MerkleStoreModule { +export interface GraphModule { id: string | null; databaseId: string | null; - schemaId: string | null; + entityField: string | null; + publicSchemaId: string | null; privateSchemaId: string | null; publicSchemaName: string | null; privateSchemaName: string | null; - objectTableId: string | null; - storeTableId: string | null; - commitTableId: string | null; - refTableId: string | null; + scope: string | null; prefix: string | null; + merkleStoreModuleId: string | null; + graphsTableId: string | null; apiName: string | null; privateApiName: string | null; - scope: string | null; - functionPrefix: string | null; - permissionKey: string | null; + entityTableId: string | null; + policies: unknown | null; + provisions: unknown | null; + defaultPermissions: string[] | null; createdAt: string | null; } export interface RateLimitMetersModule { @@ -389,21 +428,23 @@ export interface RateLimitMetersModule { apiName: string | null; privateApiName: string | null; } -export interface RealtimeModule { +export interface InfraConfigModule { id: string | null; databaseId: string | null; + entityField: string | null; schemaId: string | null; privateSchemaId: string | null; - subscriptionsSchemaId: string | null; - changeLogTableId: string | null; - listenerNodeTableId: string | null; - sourceRegistryTableId: string | null; - retentionHours: number | null; - premake: number | null; - interval: string | null; - notifyChannel: string | null; + publicSchemaName: string | null; + privateSchemaName: string | null; + configTableId: string | null; + configTableName: string | null; apiName: string | null; privateApiName: string | null; + scope: string | null; + prefix: string | null; + entityTableId: string | null; + policies: unknown | null; + provisions: unknown | null; } export interface WebauthnAuthModule { id: string | null; @@ -423,17 +464,51 @@ export interface WebauthnAuthModule { residentKey: string | null; challengeExpiry: string | null; } -export interface FunctionInvocationModule { +export interface PrincipalAuthModule { + id: string | null; + databaseId: string | null; + schemaId: string | null; + principalsTableId: string | null; + principalEntitiesTableId: string | null; + principalScopeOverridesTableId: string | null; + usersTableId: string | null; + sessionsTableId: string | null; + sessionCredentialsTableId: string | null; + auditsTableId: string | null; + principalsTableName: string | null; + createPrincipalFunction: string | null; + deletePrincipalFunction: string | null; + createOrgPrincipalFunction: string | null; + deleteOrgPrincipalFunction: string | null; + createOrgApiKeyFunction: string | null; + revokeOrgApiKeyFunction: string | null; + apiName: string | null; +} +export interface DbPool { + id: string | null; + presetSlug: string | null; + presetCommitId: string | null; + databaseId: string | null; + status: string | null; + errorMessage: string | null; + expiresAt: string | null; + claimedBy: string | null; + claimedAt: string | null; + bootstrapStatus: string | null; + bootstrapError: string | null; + createdAt: string | null; + updatedAt: string | null; +} +export interface FunctionModule { id: string | null; databaseId: string | null; + entityField: string | null; schemaId: string | null; privateSchemaId: string | null; publicSchemaName: string | null; privateSchemaName: string | null; - invocationsTableId: string | null; - executionLogsTableId: string | null; - invocationsTableName: string | null; - executionLogsTableName: string | null; + definitionsTableId: string | null; + definitionsTableName: string | null; apiName: string | null; privateApiName: string | null; scope: string | null; @@ -443,17 +518,58 @@ export interface FunctionInvocationModule { provisions: unknown | null; defaultPermissions: string[] | null; } -export interface FunctionModule { +export interface MerkleStoreModule { id: string | null; databaseId: string | null; + entityField: string | null; schemaId: string | null; privateSchemaId: string | null; publicSchemaName: string | null; privateSchemaName: string | null; - definitionsTableId: string | null; - secretDefinitionsTableId: string | null; - definitionsTableName: string | null; - secretDefinitionsTableName: string | null; + objectTableId: string | null; + storeTableId: string | null; + commitTableId: string | null; + refTableId: string | null; + prefix: string | null; + apiName: string | null; + privateApiName: string | null; + scope: string | null; + functionPrefix: string | null; + permissionKey: string | null; + createdAt: string | null; +} +export interface DatabaseProvisionModule { + id: string | null; + databaseName: string | null; + ownerId: string | null; + subdomain: string | null; + domain: string | null; + modules: unknown | null; + options: unknown | null; + bootstrapUser: boolean | null; + status: string | null; + errorMessage: string | null; + sourceDatabaseId: string | null; + bootstrapStatus: string | null; + bootstrapError: string | null; + databaseId: string | null; + createdAt: string | null; + updatedAt: string | null; + completedAt: string | null; + fulfilledAt: string | null; +} +export interface FunctionInvocationModule { + id: string | null; + databaseId: string | null; + entityField: string | null; + schemaId: string | null; + privateSchemaId: string | null; + publicSchemaName: string | null; + privateSchemaName: string | null; + invocationsTableId: string | null; + executionLogsTableId: string | null; + invocationsTableName: string | null; + executionLogsTableName: string | null; apiName: string | null; privateApiName: string | null; scope: string | null; @@ -466,6 +582,7 @@ export interface FunctionModule { export interface InvitesModule { id: string | null; databaseId: string | null; + entityField: string | null; schemaId: string | null; privateSchemaId: string | null; publicSchemaName: string | null; @@ -483,29 +600,54 @@ export interface InvitesModule { apiName: string | null; privateApiName: string | null; } -export interface PrincipalAuthModule { +export interface NamespaceModule { id: string | null; databaseId: string | null; + entityField: string | null; schemaId: string | null; - principalsTableId: string | null; - principalEntitiesTableId: string | null; - principalScopeOverridesTableId: string | null; - usersTableId: string | null; - sessionsTableId: string | null; - sessionCredentialsTableId: string | null; - auditsTableId: string | null; - principalsTableName: string | null; - createPrincipalFunction: string | null; - deletePrincipalFunction: string | null; - createOrgPrincipalFunction: string | null; - deleteOrgPrincipalFunction: string | null; - createOrgApiKeyFunction: string | null; - revokeOrgApiKeyFunction: string | null; - apiName: string | null; -} + privateSchemaId: string | null; + publicSchemaName: string | null; + privateSchemaName: string | null; + namespacesTableId: string | null; + namespaceEventsTableId: string | null; + namespacesTableName: string | null; + namespaceEventsTableName: string | null; + apiName: string | null; + privateApiName: string | null; + scope: string | null; + prefix: string | null; + entityTableId: string | null; + policies: unknown | null; + provisions: unknown | null; + defaultPermissions: string[] | null; +} +export interface PlansModule { + id: string | null; + databaseId: string | null; + schemaId: string | null; + privateSchemaId: string | null; + publicSchemaName: string | null; + privateSchemaName: string | null; + plansTableId: string | null; + plansTableName: string | null; + planLimitsTableId: string | null; + planLimitsTableName: string | null; + planPricingTableId: string | null; + planOverridesTableId: string | null; + planMeterLimitsTableId: string | null; + planCapsTableId: string | null; + applyPlanFunction: string | null; + applyPlanAggregateFunction: string | null; + applyBillingPlanFunction: string | null; + applyPlanCapsFunction: string | null; + prefix: string | null; + apiName: string | null; + privateApiName: string | null; +} export interface ComputeLogModule { id: string | null; databaseId: string | null; + entityField: string | null; schemaId: string | null; privateSchemaId: string | null; publicSchemaName: string | null; @@ -527,6 +669,7 @@ export interface ComputeLogModule { export interface InferenceLogModule { id: string | null; databaseId: string | null; + entityField: string | null; schemaId: string | null; privateSchemaId: string | null; publicSchemaName: string | null; @@ -545,51 +688,10 @@ export interface InferenceLogModule { apiName: string | null; privateApiName: string | null; } -export interface NamespaceModule { - id: string | null; - databaseId: string | null; - schemaId: string | null; - privateSchemaId: string | null; - publicSchemaName: string | null; - privateSchemaName: string | null; - namespacesTableId: string | null; - namespaceEventsTableId: string | null; - namespacesTableName: string | null; - namespaceEventsTableName: string | null; - apiName: string | null; - privateApiName: string | null; - scope: string | null; - prefix: string | null; - entityTableId: string | null; - platformNamespacesTableId: string | null; - policies: unknown | null; - provisions: unknown | null; - defaultPermissions: string[] | null; -} -export interface ResourceModule { - id: string | null; - databaseId: string | null; - schemaId: string | null; - privateSchemaId: string | null; - publicSchemaName: string | null; - privateSchemaName: string | null; - resourcesTableId: string | null; - resourceEventsTableId: string | null; - resourcesTableName: string | null; - resourceEventsTableName: string | null; - apiName: string | null; - privateApiName: string | null; - scope: string | null; - prefix: string | null; - entityTableId: string | null; - namespaceModuleId: string | null; - policies: unknown | null; - provisions: unknown | null; - defaultPermissions: string[] | null; -} export interface StorageLogModule { id: string | null; databaseId: string | null; + entityField: string | null; schemaId: string | null; privateSchemaId: string | null; publicSchemaName: string | null; @@ -611,6 +713,7 @@ export interface StorageLogModule { export interface TransferLogModule { id: string | null; databaseId: string | null; + entityField: string | null; schemaId: string | null; privateSchemaId: string | null; publicSchemaName: string | null; @@ -629,51 +732,6 @@ export interface TransferLogModule { apiName: string | null; privateApiName: string | null; } -export interface FunctionDeploymentModule { - id: string | null; - databaseId: string | null; - schemaId: string | null; - privateSchemaId: string | null; - publicSchemaName: string | null; - privateSchemaName: string | null; - deploymentsTableId: string | null; - deploymentEventsTableId: string | null; - deploymentsTableName: string | null; - deploymentEventsTableName: string | null; - apiName: string | null; - privateApiName: string | null; - scope: string | null; - prefix: string | null; - entityTableId: string | null; - functionModuleId: string | null; - namespaceModuleId: string | null; - policies: unknown | null; - provisions: unknown | null; - defaultPermissions: string[] | null; -} -export interface PlansModule { - id: string | null; - databaseId: string | null; - schemaId: string | null; - privateSchemaId: string | null; - publicSchemaName: string | null; - privateSchemaName: string | null; - plansTableId: string | null; - plansTableName: string | null; - planLimitsTableId: string | null; - planLimitsTableName: string | null; - planPricingTableId: string | null; - planOverridesTableId: string | null; - planMeterLimitsTableId: string | null; - planCapsTableId: string | null; - applyPlanFunction: string | null; - applyPlanAggregateFunction: string | null; - applyBillingPlanFunction: string | null; - applyPlanCapsFunction: string | null; - prefix: string | null; - apiName: string | null; - privateApiName: string | null; -} export interface BillingProviderModule { id: string | null; databaseId: string | null; @@ -698,33 +756,57 @@ export interface BillingProviderModule { apiName: string | null; privateApiName: string | null; } -export interface DbUsageModule { +export interface FunctionDeploymentModule { id: string | null; databaseId: string | null; + entityField: string | null; schemaId: string | null; privateSchemaId: string | null; publicSchemaName: string | null; privateSchemaName: string | null; - tableStatsLogTableId: string | null; - tableStatsLogTableName: string | null; - tableStatsDailyTableId: string | null; - tableStatsDailyTableName: string | null; - queryStatsLogTableId: string | null; - queryStatsLogTableName: string | null; - queryStatsDailyTableId: string | null; - queryStatsDailyTableName: string | null; - interval: string | null; - retention: string | null; - premake: number | null; + deploymentsTableId: string | null; + deploymentEventsTableId: string | null; + deploymentsTableName: string | null; + deploymentEventsTableName: string | null; + apiName: string | null; + privateApiName: string | null; scope: string | null; prefix: string | null; + entityTableId: string | null; + functionModuleId: string | null; + namespaceModuleId: string | null; + policies: unknown | null; + provisions: unknown | null; defaultPermissions: string[] | null; +} +export interface PermissionsModule { + id: string | null; + databaseId: string | null; + entityField: string | null; + schemaId: string | null; + privateSchemaId: string | null; + publicSchemaName: string | null; + privateSchemaName: string | null; + tableId: string | null; + tableName: string | null; + defaultTableId: string | null; + defaultTableName: string | null; + bitlen: number | null; + scope: string | null; + prefix: string | null; + entityTableId: string | null; + actorTableId: string | null; + getPaddedMask: string | null; + getMask: string | null; + getByMask: string | null; + getMaskByName: string | null; apiName: string | null; privateApiName: string | null; } export interface GraphExecutionModule { id: string | null; databaseId: string | null; + entityField: string | null; schemaId: string | null; privateSchemaId: string | null; publicSchemaName: string | null; @@ -749,6 +831,7 @@ export interface GraphExecutionModule { export interface HierarchyModule { id: string | null; databaseId: string | null; + entityField: string | null; schemaId: string | null; privateSchemaId: string | null; chartEdgesTableId: string | null; @@ -770,32 +853,10 @@ export interface HierarchyModule { defaultPermissions: string[] | null; createdAt: string | null; } -export interface PermissionsModule { - id: string | null; - databaseId: string | null; - schemaId: string | null; - privateSchemaId: string | null; - publicSchemaName: string | null; - privateSchemaName: string | null; - tableId: string | null; - tableName: string | null; - defaultTableId: string | null; - defaultTableName: string | null; - bitlen: number | null; - scope: string | null; - prefix: string | null; - entityTableId: string | null; - actorTableId: string | null; - getPaddedMask: string | null; - getMask: string | null; - getByMask: string | null; - getMaskByName: string | null; - apiName: string | null; - privateApiName: string | null; -} export interface NotificationsModule { id: string | null; databaseId: string | null; + entityField: string | null; schemaId: string | null; privateSchemaId: string | null; publicSchemaName: string | null; @@ -818,9 +879,36 @@ export interface NotificationsModule { apiName: string | null; privateApiName: string | null; } +export interface RelationProvision { + id: string | null; + databaseId: string | null; + relationType: string | null; + sourceTableId: string | null; + targetTableId: string | null; + fieldName: string | null; + deleteAction: string | null; + isRequired: boolean | null; + apiRequired: boolean | null; + junctionTableId: string | null; + junctionTableName: string | null; + junctionSchemaId: string | null; + sourceFieldName: string | null; + targetFieldName: string | null; + useCompositeKey: boolean | null; + createIndex: boolean | null; + exposeInApi: boolean | null; + nodes: unknown | null; + grants: unknown | null; + policies: unknown | null; + outFieldId: string | null; + outJunctionTableId: string | null; + outSourceFieldId: string | null; + outTargetFieldId: string | null; +} export interface ProfilesModule { id: string | null; databaseId: string | null; + entityField: string | null; schemaId: string | null; privateSchemaId: string | null; publicSchemaName: string | null; @@ -866,36 +954,40 @@ export interface BillingModule { meterDefaultsTableId: string | null; meterDefaultsTableName: string | null; recordUsageFunction: string | null; + sweepExpiredSubscriptionsFunction: string | null; + rollupUsageSummaryFunction: string | null; prefix: string | null; defaultPermissions: string[] | null; apiName: string | null; privateApiName: string | null; } -export interface RelationProvision { +export interface ResourceModule { id: string | null; databaseId: string | null; - relationType: string | null; - sourceTableId: string | null; - targetTableId: string | null; - fieldName: string | null; - deleteAction: string | null; - isRequired: boolean | null; - apiRequired: boolean | null; - junctionTableId: string | null; - junctionTableName: string | null; - junctionSchemaId: string | null; - sourceFieldName: string | null; - targetFieldName: string | null; - useCompositeKey: boolean | null; - createIndex: boolean | null; - exposeInApi: boolean | null; - nodes: unknown | null; - grants: unknown | null; + entityField: string | null; + schemaId: string | null; + privateSchemaId: string | null; + publicSchemaName: string | null; + privateSchemaName: string | null; + resourcesTableId: string | null; + resourceEventsTableId: string | null; + resourceStatusChecksTableId: string | null; + resourceDefinitionsTableId: string | null; + resourcesTableName: string | null; + resourceEventsTableName: string | null; + resourceStatusChecksTableName: string | null; + resourceDefinitionsTableName: string | null; + resolvedRequirementsViewName: string | null; + requirementsStateViewName: string | null; + apiName: string | null; + privateApiName: string | null; + scope: string | null; + prefix: string | null; + entityTableId: string | null; + namespaceModuleId: string | null; policies: unknown | null; - outFieldId: string | null; - outJunctionTableId: string | null; - outSourceFieldId: string | null; - outTargetFieldId: string | null; + provisions: unknown | null; + defaultPermissions: string[] | null; } export interface UserAuthModule { id: string | null; @@ -927,9 +1019,39 @@ export interface UserAuthModule { apiName: string | null; privateApiName: string | null; } +export interface DbUsageModule { + id: string | null; + databaseId: string | null; + entityField: string | null; + schemaId: string | null; + privateSchemaId: string | null; + publicSchemaName: string | null; + privateSchemaName: string | null; + tableStatsLogTableId: string | null; + tableStatsLogTableName: string | null; + tableStatsDailyTableId: string | null; + tableStatsDailyTableName: string | null; + queryStatsLogTableId: string | null; + queryStatsLogTableName: string | null; + queryStatsDailyTableId: string | null; + queryStatsDailyTableName: string | null; + collectDbTableStatsFunction: string | null; + collectDbQueryStatsFunction: string | null; + rollupDbTableStatsDailyFunction: string | null; + rollupDbQueryStatsDailyFunction: string | null; + interval: string | null; + retention: string | null; + premake: number | null; + scope: string | null; + prefix: string | null; + defaultPermissions: string[] | null; + apiName: string | null; + privateApiName: string | null; +} export interface AgentModule { id: string | null; databaseId: string | null; + entityField: string | null; schemaId: string | null; privateSchemaId: string | null; publicSchemaName: string | null; @@ -967,6 +1089,7 @@ export interface AgentModule { export interface LimitsModule { id: string | null; databaseId: string | null; + entityField: string | null; schemaId: string | null; privateSchemaId: string | null; publicSchemaName: string | null; @@ -1002,49 +1125,6 @@ export interface LimitsModule { apiName: string | null; privateApiName: string | null; } -export interface MembershipsModule { - id: string | null; - databaseId: string | null; - schemaId: string | null; - privateSchemaId: string | null; - publicSchemaName: string | null; - privateSchemaName: string | null; - membershipsTableId: string | null; - membershipsTableName: string | null; - membersTableId: string | null; - membersTableName: string | null; - membershipDefaultsTableId: string | null; - membershipDefaultsTableName: string | null; - membershipSettingsTableId: string | null; - membershipSettingsTableName: string | null; - grantsTableId: string | null; - grantsTableName: string | null; - actorTableId: string | null; - limitsTableId: string | null; - defaultLimitsTableId: string | null; - permissionsTableId: string | null; - defaultPermissionsTableId: string | null; - sprtTableId: string | null; - adminGrantsTableId: string | null; - adminGrantsTableName: string | null; - ownerGrantsTableId: string | null; - ownerGrantsTableName: string | null; - scope: string | null; - prefix: string | null; - entityTableId: string | null; - entityTableOwnerId: string | null; - getOrgFn: string | null; - actorMaskCheck: string | null; - actorPermCheck: string | null; - entityIdsByMask: string | null; - entityIdsByPerm: string | null; - entityIdsFunction: string | null; - memberProfilesTableId: string | null; - permissionDefaultPermissionsTableId: string | null; - permissionDefaultGrantsTableId: string | null; - apiName: string | null; - privateApiName: string | null; -} export interface EntityTypeProvision { id: string | null; databaseId: string | null; @@ -1082,7 +1162,6 @@ export interface EntityTypeProvision { outDefinitionsTableId: string | null; outInvocationsTableId: string | null; outExecutionLogsTableId: string | null; - outSecretDefinitionsTableId: string | null; outGraphModuleId: string | null; outGraphsTableId: string | null; outAgentModuleId: string | null; @@ -1103,6 +1182,7 @@ export interface StorageModule { policies: unknown | null; provisions: unknown | null; entityTableId: string | null; + entityField: string | null; endpoint: string | null; publicUrlPrefix: string | null; provider: string | null; @@ -1128,9 +1208,54 @@ export interface StorageModule { apiName: string | null; privateApiName: string | null; } +export interface MembershipsModule { + id: string | null; + databaseId: string | null; + entityField: string | null; + schemaId: string | null; + privateSchemaId: string | null; + publicSchemaName: string | null; + privateSchemaName: string | null; + membershipsTableId: string | null; + membershipsTableName: string | null; + membersTableId: string | null; + membersTableName: string | null; + membershipDefaultsTableId: string | null; + membershipDefaultsTableName: string | null; + membershipSettingsTableId: string | null; + membershipSettingsTableName: string | null; + grantsTableId: string | null; + grantsTableName: string | null; + actorTableId: string | null; + limitsTableId: string | null; + defaultLimitsTableId: string | null; + permissionsTableId: string | null; + defaultPermissionsTableId: string | null; + sprtTableId: string | null; + adminGrantsTableId: string | null; + adminGrantsTableName: string | null; + ownerGrantsTableId: string | null; + ownerGrantsTableName: string | null; + scope: string | null; + prefix: string | null; + entityTableId: string | null; + entityTableOwnerId: string | null; + getOrgFn: string | null; + actorMaskCheck: string | null; + actorPermCheck: string | null; + entityIdsByMask: string | null; + entityIdsByPerm: string | null; + entityIdsFunction: string | null; + memberProfilesTableId: string | null; + permissionDefaultPermissionsTableId: string | null; + permissionDefaultGrantsTableId: string | null; + apiName: string | null; + privateApiName: string | null; +} export interface EventsModule { id: string | null; databaseId: string | null; + entityField: string | null; schemaId: string | null; privateSchemaId: string | null; publicSchemaName: string | null; @@ -1157,7 +1282,6 @@ export interface EventsModule { tgEventBool: string | null; upsertAggregate: string | null; tgUpdateAggregates: string | null; - pruneEvents: string | null; stepsRequired: string | null; levelAchieved: string | null; tgCheckAchievements: string | null; diff --git a/sdk/constructive-sdk/README.md b/sdk/constructive-sdk/README.md index 8826051f79..736a3fc283 100644 --- a/sdk/constructive-sdk/README.md +++ b/sdk/constructive-sdk/README.md @@ -16,6 +16,7 @@ | auth | - | ORM | [./src/auth/README.md](./src/auth/README.md) | | compute | - | ORM | [./src/compute/README.md](./src/compute/README.md) | | config | - | ORM | [./src/config/README.md](./src/config/README.md) | +| 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) | | usage | - | ORM | [./src/usage/README.md](./src/usage/README.md) | diff --git a/sdk/constructive-sdk/schemas/agent.graphql b/sdk/constructive-sdk/schemas/agent.graphql index 72163d43a9..1568a1dca4 100644 --- a/sdk/constructive-sdk/schemas/agent.graphql +++ b/sdk/constructive-sdk/schemas/agent.graphql @@ -116,8 +116,8 @@ type Query { orderBy: [AgentMessageOrderBy!] = [PRIMARY_KEY_ASC] ): AgentMessageConnection - """Reads and enables pagination through a set of `AgentTask`.""" - agentTasks( + """Reads and enables pagination through a set of `AgentResourceChunk`.""" + agentResourceChunks( """Only read the first `n` values of the set.""" first: Int @@ -139,14 +139,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: AgentTaskFilter + where: AgentResourceChunkFilter - """The method to use when ordering `AgentTask`.""" - orderBy: [AgentTaskOrderBy!] = [PRIMARY_KEY_ASC] - ): AgentTaskConnection + """The method to use when ordering `AgentResourceChunk`.""" + orderBy: [AgentResourceChunkOrderBy!] = [PRIMARY_KEY_ASC] + ): AgentResourceChunkConnection - """Reads and enables pagination through a set of `AgentResourceChunk`.""" - agentResourceChunks( + """Reads and enables pagination through a set of `AgentTask`.""" + agentTasks( """Only read the first `n` values of the set.""" first: Int @@ -168,11 +168,11 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: AgentResourceChunkFilter + where: AgentTaskFilter - """The method to use when ordering `AgentResourceChunk`.""" - orderBy: [AgentResourceChunkOrderBy!] = [PRIMARY_KEY_ASC] - ): AgentResourceChunkConnection + """The method to use when ordering `AgentTask`.""" + orderBy: [AgentTaskOrderBy!] = [PRIMARY_KEY_ASC] + ): AgentTaskConnection """Reads and enables pagination through a set of `AgentPersona`.""" agentPersonas( @@ -298,6 +298,9 @@ type AgentPlan { """Foreign key to agent_thread""" threadId: UUID! + """Database that owns this resource (database-scoped isolation)""" + databaseId: UUID! + """Human-readable plan name""" title: String! @@ -363,6 +366,9 @@ type AgentThread { """User who owns this thread""" ownerId: UUID! + """Database that owns this resource (database-scoped isolation)""" + databaseId: UUID! + """Current status of this thread""" status: String! @@ -502,6 +508,9 @@ type Agent { """Human who owns/manages this agent""" ownerId: UUID! + """Database that owns this resource (database-scoped isolation)""" + databaseId: UUID! + """Persona template this agent was created from""" personaId: UUID @@ -632,6 +641,9 @@ type AgentPersona { createdBy: UUID updatedBy: UUID + """Database that owns this resource (database-scoped isolation)""" + databaseId: UUID! + """Unique human-readable identifier for this persona""" slug: String! @@ -743,6 +755,9 @@ input AgentFilter { """Filter by the object’s `ownerId` field.""" ownerId: UUIDFilter + """Filter by the object’s `databaseId` field.""" + databaseId: UUIDFilter + """Filter by the object’s `personaId` field.""" personaId: UUIDFilter @@ -1138,6 +1153,9 @@ input AgentPersonaFilter { """Filter by the object’s `updatedBy` field.""" updatedBy: UUIDFilter + """Filter by the object’s `databaseId` field.""" + databaseId: UUIDFilter + """Filter by the object’s `slug` field.""" slug: StringFilter @@ -1282,6 +1300,9 @@ input AgentThreadFilter { """Filter by the object’s `ownerId` field.""" ownerId: UUIDFilter + """Filter by the object’s `databaseId` field.""" + databaseId: UUIDFilter + """Filter by the object’s `status` field.""" status: StringFilter @@ -1380,6 +1401,9 @@ input AgentPromptFilter { """Filter by the object’s `updatedBy` field.""" updatedBy: UUIDFilter + """Filter by the object’s `databaseId` field.""" + databaseId: UUIDFilter + """Filter by the object’s `name` field.""" name: StringFilter @@ -1455,6 +1479,9 @@ input AgentMessageFilter { """Filter by the object’s `threadId` field.""" threadId: UUIDFilter + """Filter by the object’s `databaseId` field.""" + databaseId: UUIDFilter + """Filter by the object’s `authorRole` field.""" authorRole: StringFilter @@ -1516,6 +1543,9 @@ input AgentPlanFilter { """Filter by the object’s `threadId` field.""" threadId: UUIDFilter + """Filter by the object’s `databaseId` field.""" + databaseId: UUIDFilter + """Filter by the object’s `title` field.""" title: StringFilter @@ -1580,6 +1610,9 @@ input AgentTaskFilter { """Filter by the object’s `planId` field.""" planId: UUIDFilter + """Filter by the object’s `databaseId` field.""" + databaseId: UUIDFilter + """Filter by the object’s `description` field.""" description: StringFilter @@ -1703,6 +1736,8 @@ enum AgentOrderBy { UPDATED_AT_DESC OWNER_ID_ASC OWNER_ID_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC PERSONA_ID_ASC PERSONA_ID_DESC PARENT_ID_ASC @@ -1758,6 +1793,8 @@ enum AgentThreadOrderBy { UPDATED_AT_DESC OWNER_ID_ASC OWNER_ID_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC STATUS_ASC STATUS_DESC IS_ARCHIVED_ASC @@ -1814,6 +1851,9 @@ type AgentMessage { """Foreign key to agent_thread""" threadId: UUID! + """Database that owns this resource (database-scoped isolation)""" + databaseId: UUID! + """Who authored this message: user or assistant""" authorRole: String! @@ -1856,6 +1896,8 @@ enum AgentMessageOrderBy { PARTS_DESC THREAD_ID_ASC THREAD_ID_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC AUTHOR_ROLE_ASC AUTHOR_ROLE_DESC MODEL_ASC @@ -1872,6 +1914,9 @@ type AgentPrompt { createdBy: UUID updatedBy: UUID + """Database that owns this resource (database-scoped isolation)""" + databaseId: UUID! + """Unique name for lookup (e.g. default, code-review, sales-assistant)""" name: String! @@ -1903,6 +1948,8 @@ enum AgentPlanOrderBy { OWNER_ID_DESC THREAD_ID_ASC THREAD_ID_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC TITLE_ASC TITLE_DESC DESCRIPTION_ASC @@ -1943,6 +1990,9 @@ type AgentTask { """Foreign key to agent_plan""" planId: UUID! + """Database that owns this resource (database-scoped isolation)""" + databaseId: UUID! + """Natural-language description of the work to do""" description: String! @@ -2002,6 +2052,8 @@ enum AgentTaskOrderBy { STATUS_DESC PLAN_ID_ASC PLAN_ID_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC DESCRIPTION_ASC DESCRIPTION_DESC SOURCE_ASC @@ -2072,6 +2124,8 @@ enum AgentPromptOrderBy { CREATED_BY_DESC UPDATED_BY_ASC UPDATED_BY_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC NAME_ASC NAME_DESC CONTENT_ASC @@ -2149,6 +2203,9 @@ type AgentResource { createdBy: UUID updatedBy: UUID + """Database that owns this resource (database-scoped isolation)""" + databaseId: UUID! + """Unique human-readable identifier for portable references""" slug: String! @@ -2345,6 +2402,9 @@ input AgentResourceFilter { """Filter by the object’s `updatedBy` field.""" updatedBy: UUIDFilter + """Filter by the object’s `databaseId` field.""" + databaseId: UUIDFilter + """Filter by the object’s `slug` field.""" slug: StringTrgmFilter @@ -2746,6 +2806,8 @@ enum AgentPersonaOrderBy { CREATED_BY_DESC UPDATED_BY_ASC UPDATED_BY_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC SLUG_ASC SLUG_DESC NAME_ASC @@ -2803,6 +2865,8 @@ enum AgentResourceOrderBy { CREATED_BY_DESC UPDATED_BY_ASC UPDATED_BY_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC SLUG_ASC SLUG_DESC KIND_ASC @@ -3127,14 +3191,6 @@ type Mutation { input: CreateAgentMessageInput! ): CreateAgentMessagePayload - """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 `AgentResourceChunk`.""" createAgentResourceChunk( """ @@ -3143,6 +3199,14 @@ type Mutation { 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 `AgentPersona`.""" createAgentPersona( """ @@ -3199,14 +3263,6 @@ type Mutation { input: UpdateAgentMessageInput! ): UpdateAgentMessagePayload - """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 `AgentResourceChunk` using a unique key and a patch.""" updateAgentResourceChunk( """ @@ -3215,6 +3271,14 @@ type Mutation { 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 `AgentPersona` using a unique key and a patch.""" updateAgentPersona( """ @@ -3271,14 +3335,6 @@ type Mutation { input: DeleteAgentMessageInput! ): DeleteAgentMessagePayload - """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 `AgentResourceChunk` using a unique key.""" deleteAgentResourceChunk( """ @@ -3287,6 +3343,14 @@ type Mutation { 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 `AgentPersona` using a unique key.""" deleteAgentPersona( """ @@ -3372,6 +3436,9 @@ input AgentPlanInput { """Foreign key to agent_thread""" threadId: UUID! + """Database that owns this resource (database-scoped isolation)""" + databaseId: UUID! + """Human-readable plan name""" title: String! @@ -3425,6 +3492,9 @@ input AgentPromptInput { createdBy: UUID updatedBy: UUID + """Database that owns this resource (database-scoped isolation)""" + databaseId: UUID! + """Unique name for lookup (e.g. default, code-review, sales-assistant)""" name: String! @@ -3485,6 +3555,9 @@ input AgentInput { """Human who owns/manages this agent""" ownerId: UUID + """Database that owns this resource (database-scoped isolation)""" + databaseId: UUID! + """Persona template this agent was created from""" personaId: UUID @@ -3557,6 +3630,9 @@ input AgentMessageInput { """Foreign key to agent_thread""" threadId: UUID! + """Database that owns this resource (database-scoped isolation)""" + databaseId: UUID! + """Who authored this message: user or assistant""" authorRole: String! @@ -3567,6 +3643,58 @@ input AgentMessageInput { agentId: UUID } +"""The output of our create `AgentResourceChunk` mutation.""" +type CreateAgentResourceChunkPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `AgentResourceChunk` that was created by this mutation.""" + agentResourceChunk: AgentResourceChunk + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """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 +} + +"""All input for the create `AgentResourceChunk` mutation.""" +input CreateAgentResourceChunkInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """The `AgentResourceChunk` to be created by this mutation.""" + agentResourceChunk: AgentResourceChunkInput! +} + +"""An input for mutations affecting `AgentResourceChunk`""" +input AgentResourceChunkInput { + id: UUID + agentResourceId: UUID! + body: String! + chunkIndex: Int + embedding: Vector + metadata: JSON + createdAt: Datetime + updatedAt: Datetime + + """ + 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 +} + """The output of our create `AgentTask` mutation.""" type CreateAgentTaskPayload { """ @@ -3617,6 +3745,9 @@ input AgentTaskInput { """Foreign key to agent_plan""" planId: UUID! + """Database that owns this resource (database-scoped isolation)""" + databaseId: UUID! + """Natural-language description of the work to do""" description: String! @@ -3647,58 +3778,6 @@ input AgentTaskInput { approvalFeedback: String } -"""The output of our create `AgentResourceChunk` mutation.""" -type CreateAgentResourceChunkPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `AgentResourceChunk` that was created by this mutation.""" - agentResourceChunk: AgentResourceChunk - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """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 -} - -"""All input for the create `AgentResourceChunk` mutation.""" -input CreateAgentResourceChunkInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `AgentResourceChunk` to be created by this mutation.""" - agentResourceChunk: AgentResourceChunkInput! -} - -"""An input for mutations affecting `AgentResourceChunk`""" -input AgentResourceChunkInput { - id: UUID - agentResourceId: UUID! - body: String! - chunkIndex: Int - embedding: Vector - metadata: JSON - createdAt: Datetime - updatedAt: Datetime - - """ - 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 -} - """The output of our create `AgentPersona` mutation.""" type CreateAgentPersonaPayload { """ @@ -3742,6 +3821,9 @@ input AgentPersonaInput { createdBy: UUID updatedBy: UUID + """Database that owns this resource (database-scoped isolation)""" + databaseId: UUID! + """Unique human-readable identifier for this persona""" slug: String! @@ -3808,6 +3890,9 @@ input AgentThreadInput { """User who owns this thread""" ownerId: UUID + """Database that owns this resource (database-scoped isolation)""" + databaseId: UUID! + """Current status of this thread""" status: String @@ -3885,6 +3970,9 @@ input AgentResourceInput { createdBy: UUID updatedBy: UUID + """Database that owns this resource (database-scoped isolation)""" + databaseId: UUID! + """Unique human-readable identifier for portable references""" slug: String! @@ -3977,6 +4065,9 @@ input AgentPlanPatch { """Foreign key to agent_thread""" threadId: UUID + """Database that owns this resource (database-scoped isolation)""" + databaseId: UUID + """Human-readable plan name""" title: String @@ -4035,6 +4126,9 @@ input AgentPromptPatch { createdBy: UUID updatedBy: UUID + """Database that owns this resource (database-scoped isolation)""" + databaseId: UUID + """Unique name for lookup (e.g. default, code-review, sales-assistant)""" name: String @@ -4100,6 +4194,9 @@ input AgentPatch { """Human who owns/manages this agent""" ownerId: UUID + """Database that owns this resource (database-scoped isolation)""" + databaseId: UUID + """Persona template this agent was created from""" personaId: UUID @@ -4177,6 +4274,9 @@ input AgentMessagePatch { """Foreign key to agent_thread""" threadId: UUID + """Database that owns this resource (database-scoped isolation)""" + databaseId: UUID + """Who authored this message: user or assistant""" authorRole: String @@ -4187,6 +4287,63 @@ input AgentMessagePatch { agentId: UUID } +"""The output of our update `AgentResourceChunk` mutation.""" +type UpdateAgentResourceChunkPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `AgentResourceChunk` that was updated by this mutation.""" + agentResourceChunk: AgentResourceChunk + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """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 +} + +"""All input for the `updateAgentResourceChunk` mutation.""" +input UpdateAgentResourceChunkInput { + """ + An arbitrary string value 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 `AgentResourceChunk` being updated. + """ + agentResourceChunkPatch: AgentResourceChunkPatch! +} + +""" +Represents an update to a `AgentResourceChunk`. Fields that are set will be updated. +""" +input AgentResourceChunkPatch { + id: UUID + agentResourceId: UUID + body: String + chunkIndex: Int + embedding: Vector + metadata: JSON + createdAt: Datetime + updatedAt: Datetime + + """ + 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 +} + """The output of our update `AgentTask` mutation.""" type UpdateAgentTaskPayload { """ @@ -4242,6 +4399,9 @@ input AgentTaskPatch { """Foreign key to agent_plan""" planId: UUID + """Database that owns this resource (database-scoped isolation)""" + databaseId: UUID + """Natural-language description of the work to do""" description: String @@ -4272,63 +4432,6 @@ input AgentTaskPatch { approvalFeedback: String } -"""The output of our update `AgentResourceChunk` mutation.""" -type UpdateAgentResourceChunkPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `AgentResourceChunk` that was updated by this mutation.""" - agentResourceChunk: AgentResourceChunk - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """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 -} - -"""All input for the `updateAgentResourceChunk` mutation.""" -input UpdateAgentResourceChunkInput { - """ - An arbitrary string value 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 `AgentResourceChunk` being updated. - """ - agentResourceChunkPatch: AgentResourceChunkPatch! -} - -""" -Represents an update to a `AgentResourceChunk`. Fields that are set will be updated. -""" -input AgentResourceChunkPatch { - id: UUID - agentResourceId: UUID - body: String - chunkIndex: Int - embedding: Vector - metadata: JSON - createdAt: Datetime - updatedAt: Datetime - - """ - 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 -} - """The output of our update `AgentPersona` mutation.""" type UpdateAgentPersonaPayload { """ @@ -4377,6 +4480,9 @@ input AgentPersonaPatch { createdBy: UUID updatedBy: UUID + """Database that owns this resource (database-scoped isolation)""" + databaseId: UUID + """Unique human-readable identifier for this persona""" slug: String @@ -4448,6 +4554,9 @@ input AgentThreadPatch { """User who owns this thread""" ownerId: UUID + """Database that owns this resource (database-scoped isolation)""" + databaseId: UUID + """Current status of this thread""" status: String @@ -4530,6 +4639,9 @@ input AgentResourcePatch { createdBy: UUID updatedBy: UUID + """Database that owns this resource (database-scoped isolation)""" + databaseId: UUID + """Unique human-readable identifier for portable references""" slug: String @@ -4702,31 +4814,31 @@ input DeleteAgentMessageInput { id: UUID! } -"""The output of our delete `AgentTask` mutation.""" -type DeleteAgentTaskPayload { +"""The output of our delete `AgentResourceChunk` mutation.""" +type DeleteAgentResourceChunkPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `AgentTask` that was deleted by this mutation.""" - agentTask: AgentTask + """The `AgentResourceChunk` that was deleted by this mutation.""" + agentResourceChunk: AgentResourceChunk """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `AgentTask`. May be used by Relay 1.""" - agentTaskEdge( - """The method to use when ordering `AgentTask`.""" - orderBy: [AgentTaskOrderBy!]! = [PRIMARY_KEY_ASC] - ): AgentTaskEdge + """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 } -"""All input for the `deleteAgentTask` mutation.""" -input DeleteAgentTaskInput { +"""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. @@ -4735,31 +4847,31 @@ input DeleteAgentTaskInput { id: UUID! } -"""The output of our delete `AgentResourceChunk` mutation.""" -type DeleteAgentResourceChunkPayload { +"""The output of our delete `AgentTask` mutation.""" +type DeleteAgentTaskPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `AgentResourceChunk` that was deleted by this mutation.""" - agentResourceChunk: AgentResourceChunk + """The `AgentTask` that was deleted by this mutation.""" + agentTask: AgentTask """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `AgentResourceChunk`. May be used by Relay 1.""" - agentResourceChunkEdge( - """The method to use when ordering `AgentResourceChunk`.""" - orderBy: [AgentResourceChunkOrderBy!]! = [PRIMARY_KEY_ASC] - ): AgentResourceChunkEdge + """An edge for our `AgentTask`. May be used by Relay 1.""" + agentTaskEdge( + """The method to use when ordering `AgentTask`.""" + orderBy: [AgentTaskOrderBy!]! = [PRIMARY_KEY_ASC] + ): AgentTaskEdge } -"""All input for the `deleteAgentResourceChunk` mutation.""" -input DeleteAgentResourceChunkInput { +"""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. diff --git a/sdk/constructive-sdk/schemas/api.graphql b/sdk/constructive-sdk/schemas/api.graphql index 8a6e282140..db109060ea 100644 --- a/sdk/constructive-sdk/schemas/api.graphql +++ b/sdk/constructive-sdk/schemas/api.graphql @@ -1162,8 +1162,8 @@ type Query { orderBy: [ForeignKeyConstraintOrderBy!] = [PRIMARY_KEY_ASC] ): ForeignKeyConstraintConnection - """Reads and enables pagination through a set of `EmbeddingChunk`.""" - embeddingChunks( + """Reads and enables pagination through a set of `AstMigration`.""" + astMigrations( """Only read the first `n` values of the set.""" first: Int @@ -1185,14 +1185,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: EmbeddingChunkFilter + where: AstMigrationFilter - """The method to use when ordering `EmbeddingChunk`.""" - orderBy: [EmbeddingChunkOrderBy!] = [PRIMARY_KEY_ASC] - ): EmbeddingChunkConnection + """The method to use when ordering `AstMigration`.""" + orderBy: [AstMigrationOrderBy!] = [NATURAL] + ): AstMigrationConnection - """Reads and enables pagination through a set of `WebauthnSetting`.""" - webauthnSettings( + """Reads and enables pagination through a set of `EmbeddingChunk`.""" + embeddingChunks( """Only read the first `n` values of the set.""" first: Int @@ -1214,14 +1214,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: WebauthnSettingFilter + where: EmbeddingChunkFilter - """The method to use when ordering `WebauthnSetting`.""" - orderBy: [WebauthnSettingOrderBy!] = [PRIMARY_KEY_ASC] - ): WebauthnSettingConnection + """The method to use when ordering `EmbeddingChunk`.""" + orderBy: [EmbeddingChunkOrderBy!] = [PRIMARY_KEY_ASC] + ): EmbeddingChunkConnection - """Reads and enables pagination through a set of `AstMigration`.""" - astMigrations( + """Reads and enables pagination through a set of `WebauthnSetting`.""" + webauthnSettings( """Only read the first `n` values of the set.""" first: Int @@ -1243,11 +1243,11 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: AstMigrationFilter + where: WebauthnSettingFilter - """The method to use when ordering `AstMigration`.""" - orderBy: [AstMigrationOrderBy!] = [NATURAL] - ): AstMigrationConnection + """The method to use when ordering `WebauthnSetting`.""" + orderBy: [WebauthnSettingOrderBy!] = [PRIMARY_KEY_ASC] + ): WebauthnSettingConnection """Reads and enables pagination through a set of `Schema`.""" schemas( @@ -1389,6 +1389,7 @@ type Database { name: String label: String hash: UUID + platform: Boolean! createdAt: Datetime updatedAt: Datetime @@ -2802,6 +2803,11 @@ type Table { pluralName: String singularName: String tags: [String]! + + """ + Declarative step-up auth guard: jsonb object mapping DML verbs (INSERT, UPDATE, DELETE) to a step-up spec. Values: true (default password_or_mfa), a type string (password / mfa / password_or_mfa), or an object {type, min_age, min_age_lookup, conditions} where min_age is an interval string (e.g. 6 hours) gating the guard to rows older than that age (UPDATE/DELETE only), min_age_lookup resolves per-row windows from a lookup table, and conditions is a declarative WHEN-clause tree compiled by build_condition_expr. + """ + stepUp: JSON partitioned: Boolean! partitionStrategy: String partitionKeyNames: [String] @@ -3873,6 +3879,9 @@ input DatabaseFilter { """Filter by the object’s `hash` field.""" hash: UUIDFilter + """Filter by the object’s `platform` field.""" + platform: BooleanFilter + """Filter by the object’s `createdAt` field.""" createdAt: DatetimeFilter @@ -4135,6 +4144,48 @@ input DatabaseFilter { webauthnSettingExists: Boolean } +""" +A filter to be used against Boolean fields. All fields are combined with a logical ‘and.’ +""" +input BooleanFilter { + """ + Is null (if `true` is specified) or is not null (if `false` is specified). + """ + isNull: Boolean + + """Equal to the specified value.""" + equalTo: Boolean + + """Not equal to the specified value.""" + notEqualTo: Boolean + + """ + Not equal to the specified value, treating null like an ordinary value. + """ + distinctFrom: Boolean + + """Equal to the specified value, treating null like an ordinary value.""" + notDistinctFrom: Boolean + + """Included in the specified list.""" + in: [Boolean!] + + """Not included in the specified list.""" + notIn: [Boolean!] + + """Less than the specified value.""" + lessThan: Boolean + + """Less than or equal to the specified value.""" + lessThanOrEqualTo: Boolean + + """Greater than the specified value.""" + greaterThan: Boolean + + """Greater than or equal to the specified value.""" + greaterThanOrEqualTo: Boolean +} + """ A filter to be used against many `Schema` object types. All fields are combined with a logical ‘and.’ """ @@ -4253,48 +4304,6 @@ input SchemaFilter { apiSchemasExist: Boolean } -""" -A filter to be used against Boolean fields. All fields are combined with a logical ‘and.’ -""" -input BooleanFilter { - """ - Is null (if `true` is specified) or is not null (if `false` is specified). - """ - isNull: Boolean - - """Equal to the specified value.""" - equalTo: Boolean - - """Not equal to the specified value.""" - notEqualTo: Boolean - - """ - Not equal to the specified value, treating null like an ordinary value. - """ - distinctFrom: Boolean - - """Equal to the specified value, treating null like an ordinary value.""" - notDistinctFrom: Boolean - - """Included in the specified list.""" - in: [Boolean!] - - """Not included in the specified list.""" - notIn: [Boolean!] - - """Less than the specified value.""" - lessThan: Boolean - - """Less than or equal to the specified value.""" - lessThanOrEqualTo: Boolean - - """Greater than the specified value.""" - greaterThan: Boolean - - """Greater than or equal to the specified value.""" - greaterThanOrEqualTo: Boolean -} - """ A filter to be used against ApiExposureLevel fields. All fields are combined with a logical ‘and.’ """ @@ -4397,6 +4406,9 @@ input TableFilter { """Filter by the object’s `tags` field.""" tags: StringListFilter + """Filter by the object’s `stepUp` field.""" + stepUp: JSONFilter + """Filter by the object’s `partitioned` field.""" partitioned: BooleanFilter @@ -4604,6 +4616,12 @@ input FieldFilter { """Filter by the object’s `defaultValue` field.""" defaultValue: JSONFilter + """Filter by the object’s `generationExpression` field.""" + generationExpression: JSONFilter + + """Filter by the object’s `generationType` field.""" + generationType: StringFilter + """Filter by the object’s `type` field.""" type: JSONFilter @@ -5113,6 +5131,9 @@ input PolicyFilter { """Filter by the object’s `data` field.""" data: JSONFilter + """Filter by the object’s `withCheck` field.""" + withCheck: JSONFilter + """Filter by the object’s `smartTags` field.""" smartTags: JSONFilter @@ -8352,6 +8373,8 @@ type Field { isRequired: Boolean! apiRequired: Boolean! defaultValue: JSON + generationExpression: JSON + generationType: String type: JSON! fieldOrder: Int! regexp: String @@ -8555,6 +8578,10 @@ enum FieldOrderBy { API_REQUIRED_DESC DEFAULT_VALUE_ASC DEFAULT_VALUE_DESC + GENERATION_EXPRESSION_ASC + GENERATION_EXPRESSION_DESC + GENERATION_TYPE_ASC + GENERATION_TYPE_DESC TYPE_ASC TYPE_DESC FIELD_ORDER_ASC @@ -8869,6 +8896,11 @@ type Policy { disabled: Boolean policyType: String data: JSON + + """ + Optional WITH CHECK override node {"$type": "Authz...", "data": {...}}. Only valid for UPDATE policies; NULL inherits the USING expression. + """ + withCheck: JSON smartTags: JSON category: ObjectCategory! tags: [String]! @@ -8916,6 +8948,8 @@ enum PolicyOrderBy { POLICY_TYPE_DESC DATA_ASC DATA_DESC + WITH_CHECK_ASC + WITH_CHECK_DESC SMART_TAGS_ASC SMART_TAGS_DESC CATEGORY_ASC @@ -9777,6 +9811,8 @@ enum TableOrderBy { SINGULAR_NAME_DESC TAGS_ASC TAGS_DESC + STEP_UP_ASC + STEP_UP_DESC PARTITIONED_ASC PARTITIONED_DESC PARTITION_STRATEGY_ASC @@ -12114,6 +12150,8 @@ enum DatabaseOrderBy { LABEL_DESC HASH_ASC HASH_DESC + PLATFORM_ASC + PLATFORM_DESC CREATED_AT_ASC CREATED_AT_DESC UPDATED_AT_ASC @@ -12365,77 +12403,6 @@ enum DatabaseSettingOrderBy { ANNOTATIONS_DESC } -"""A connection to a list of `WebauthnSetting` values.""" -type WebauthnSettingConnection { - """A list of `WebauthnSetting` objects.""" - nodes: [WebauthnSetting]! - - """ - A list of edges which contains the `WebauthnSetting` and cursor to aid in pagination. - """ - edges: [WebauthnSettingEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """ - The count of *all* `WebauthnSetting` you could get from the connection. - """ - totalCount: Int! -} - -"""A `WebauthnSetting` edge in the connection.""" -type WebauthnSettingEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `WebauthnSetting` at the end of the edge.""" - node: WebauthnSetting -} - -"""Methods to use when ordering `WebauthnSetting`.""" -enum WebauthnSettingOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - DATABASE_ID_ASC - DATABASE_ID_DESC - SCHEMA_ID_ASC - SCHEMA_ID_DESC - CREDENTIALS_SCHEMA_ID_ASC - CREDENTIALS_SCHEMA_ID_DESC - SESSIONS_SCHEMA_ID_ASC - SESSIONS_SCHEMA_ID_DESC - SESSION_SECRETS_SCHEMA_ID_ASC - SESSION_SECRETS_SCHEMA_ID_DESC - CREDENTIALS_TABLE_ID_ASC - CREDENTIALS_TABLE_ID_DESC - SESSIONS_TABLE_ID_ASC - SESSIONS_TABLE_ID_DESC - SESSION_CREDENTIALS_TABLE_ID_ASC - SESSION_CREDENTIALS_TABLE_ID_DESC - SESSION_SECRETS_TABLE_ID_ASC - SESSION_SECRETS_TABLE_ID_DESC - USER_FIELD_ID_ASC - USER_FIELD_ID_DESC - RP_ID_ASC - RP_ID_DESC - RP_NAME_ASC - RP_NAME_DESC - ORIGIN_ALLOWLIST_ASC - ORIGIN_ALLOWLIST_DESC - ATTESTATION_TYPE_ASC - ATTESTATION_TYPE_DESC - REQUIRE_USER_VERIFICATION_ASC - REQUIRE_USER_VERIFICATION_DESC - RESIDENT_KEY_ASC - RESIDENT_KEY_DESC - CHALLENGE_EXPIRY_SECONDS_ASC - CHALLENGE_EXPIRY_SECONDS_DESC -} - """A connection to a list of `AstMigration` values.""" type AstMigrationConnection { """A list of `AstMigration` objects.""" @@ -12562,6 +12529,77 @@ enum AstMigrationOrderBy { ACTOR_ID_DESC } +"""A connection to a list of `WebauthnSetting` values.""" +type WebauthnSettingConnection { + """A list of `WebauthnSetting` objects.""" + nodes: [WebauthnSetting]! + + """ + A list of edges which contains the `WebauthnSetting` and cursor to aid in pagination. + """ + edges: [WebauthnSettingEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `WebauthnSetting` you could get from the connection. + """ + totalCount: Int! +} + +"""A `WebauthnSetting` edge in the connection.""" +type WebauthnSettingEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `WebauthnSetting` at the end of the edge.""" + node: WebauthnSetting +} + +"""Methods to use when ordering `WebauthnSetting`.""" +enum WebauthnSettingOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC + SCHEMA_ID_ASC + SCHEMA_ID_DESC + CREDENTIALS_SCHEMA_ID_ASC + CREDENTIALS_SCHEMA_ID_DESC + SESSIONS_SCHEMA_ID_ASC + SESSIONS_SCHEMA_ID_DESC + SESSION_SECRETS_SCHEMA_ID_ASC + SESSION_SECRETS_SCHEMA_ID_DESC + CREDENTIALS_TABLE_ID_ASC + CREDENTIALS_TABLE_ID_DESC + SESSIONS_TABLE_ID_ASC + SESSIONS_TABLE_ID_DESC + SESSION_CREDENTIALS_TABLE_ID_ASC + SESSION_CREDENTIALS_TABLE_ID_DESC + SESSION_SECRETS_TABLE_ID_ASC + SESSION_SECRETS_TABLE_ID_DESC + USER_FIELD_ID_ASC + USER_FIELD_ID_DESC + RP_ID_ASC + RP_ID_DESC + RP_NAME_ASC + RP_NAME_DESC + ORIGIN_ALLOWLIST_ASC + ORIGIN_ALLOWLIST_DESC + ATTESTATION_TYPE_ASC + ATTESTATION_TYPE_DESC + REQUIRE_USER_VERIFICATION_ASC + REQUIRE_USER_VERIFICATION_DESC + RESIDENT_KEY_ASC + RESIDENT_KEY_DESC + CHALLENGE_EXPIRY_SECONDS_ASC + CHALLENGE_EXPIRY_SECONDS_DESC +} + """Root meta schema type""" type MetaSchema { tables: [MetaTable!]! @@ -12830,18 +12868,6 @@ type Mutation { """ input: RejectDatabaseTransferInput! ): RejectDatabaseTransferPayload - provisionDatabaseWithUser( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: ProvisionDatabaseWithUserInput! - ): ProvisionDatabaseWithUserPayload - bootstrapUser( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: BootstrapUserInput! - ): BootstrapUserPayload setFieldOrder( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. @@ -12855,13 +12881,21 @@ type Mutation { input: ApplyRlsInput! ): ApplyRlsPayload - "Creates a new user database with all required modules, permissions, and RLS policies.\n\nParameters:\n - database_name: Name for the new database (required)\n - owner_id: UUID of the owner user (required)\n - include_invites: Include invite system (default: true)\n - include_groups: Include group-level memberships (default: false)\n - include_levels: Include events/analytics (default: false)\n - bitlen: Bit length for permission masks (default: 64)\n - tokens_expiration: Token expiration interval (default: 30 days)\n\nReturns the database_id UUID of the newly created database.\n\nExample usage:\n SELECT metaschema_public.create_user_database('my_app', 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'::uuid);\n SELECT metaschema_public.create_user_database('my_app', 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'::uuid, true, true); -- with invites and groups\n" - createUserDatabase( + """ + 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 with exactly the requested modules. Poll the ticket until status = 'completed'; it then carries database_id and fulfilled_at. + + Example usage: + SELECT * FROM metaschema_public.request_database('my_app', 'example.com', preset_slug := 'full'); + SELECT * FROM metaschema_public.request_database('my_app', 'example.com', modules := '["users_module", "emails_module"]'::jsonb); + """ + requestDatabase( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: CreateUserDatabaseInput! - ): CreateUserDatabasePayload + input: RequestDatabaseInput! + ): RequestDatabasePayload """Creates a single `Function`.""" createFunction( @@ -13183,6 +13217,14 @@ type Mutation { input: CreateForeignKeyConstraintInput! ): CreateForeignKeyConstraintPayload + """Creates a single `AstMigration`.""" + createAstMigration( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateAstMigrationInput! + ): CreateAstMigrationPayload + """Creates a single `EmbeddingChunk`.""" createEmbeddingChunk( """ @@ -13199,14 +13241,6 @@ type Mutation { input: CreateWebauthnSettingInput! ): CreateWebauthnSettingPayload - """Creates a single `AstMigration`.""" - createAstMigration( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateAstMigrationInput! - ): CreateAstMigrationPayload - """Creates a single `Schema`.""" createSchema( """ @@ -14012,82 +14046,6 @@ input RejectDatabaseTransferInput { transferId: UUID } -"""The output of our `provisionDatabaseWithUser` mutation.""" -type ProvisionDatabaseWithUserPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - result: [ProvisionDatabaseWithUserRecord] - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} - -type ProvisionDatabaseWithUserRecord { - outDatabaseId: UUID - outApiKey: String -} - -"""All input for the `provisionDatabaseWithUser` mutation.""" -input ProvisionDatabaseWithUserInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - pDatabaseName: String - pDomain: String - pSubdomain: String - pModules: JSON - pOptions: JSON -} - -"""The output of our `bootstrapUser` mutation.""" -type BootstrapUserPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - result: [BootstrapUserRecord] - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} - -type BootstrapUserRecord { - outUserId: UUID - outEmail: String - outUsername: String - outDisplayName: String - outIsAdmin: Boolean - outIsOwner: Boolean - outIsSudo: Boolean - outApiKey: String -} - -"""All input for the `bootstrapUser` mutation.""" -input BootstrapUserInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - targetDatabaseId: UUID - password: String - isAdmin: Boolean - isOwner: Boolean - username: String - displayName: String - returnApiKey: Boolean -} - """The output of our `setFieldOrder` mutation.""" type SetFieldOrderPayload { """ @@ -14142,14 +14100,14 @@ input ApplyRlsInput { name: String } -"""The output of our `createUserDatabase` mutation.""" -type CreateUserDatabasePayload { +"""The output of our `requestDatabase` mutation.""" +type RequestDatabasePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - result: UUID + result: DatabaseProvisionModule """ Our root query field type. Allows us to run any query from our mutation payload. @@ -14157,47 +14115,81 @@ type CreateUserDatabasePayload { query: Query } -"""All input for the `createUserDatabase` mutation.""" -input CreateUserDatabaseInput { +""" +Tracks database provisioning requests and their status. The BEFORE INSERT trigger creates the database and sets database_id before RLS policies are evaluated. +""" +type DatabaseProvisionModule { + id: UUID! + + """The name for the new database""" + databaseName: String! + + """UUID of the user who owns this database""" + ownerId: 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. + Subdomain prefix for the database. If null, auto-generated using unique_names + random chars """ - clientMutationId: String - databaseName: String - ownerId: UUID - includeInvites: Boolean - includeGroups: Boolean - includeLevels: Boolean - bitlen: Int - tokensExpiration: IntervalInput -} + subdomain: String + + """Base domain for the database (e.g., example.com)""" + domain: String! + + """ + JSONB array of modules to install. Each element is either a string ("users_module") or a [name, options] tuple (["permissions_module", {"scope": "app"}]) + """ + modules: JSON! + + """Additional configuration options for provisioning""" + options: JSON! + + """ + When true, copies the owner user and password hash from source database to the newly provisioned database + """ + bootstrapUser: Boolean! + + """Current status: pending, in_progress, completed, or failed""" + status: String! + errorMessage: String -""" -An interval of time that has passed where the smallest distinct unit is a second. -""" -input IntervalInput { """ - A quantity of seconds. This is the only non-integer field, as all the other - fields will dump their overflow into a smaller unit of time. Intervals don’t - have a smaller unit than seconds. + The database the owner user is copied from during bootstrap (captured from JWT context at provision time) """ - seconds: Float + sourceDatabaseId: UUID - """A quantity of minutes.""" - minutes: Int + """ + Status of the deferred owner bootstrap job: not_requested, pending, completed, or failed + """ + bootstrapStatus: String! - """A quantity of hours.""" - hours: Int + """Error message from the most recent failed bootstrap attempt""" + bootstrapError: String - """A quantity of days.""" - days: Int + """The ID of the provisioned database (set by trigger before RLS check)""" + databaseId: UUID + createdAt: Datetime! + updatedAt: Datetime! + completedAt: Datetime - """A quantity of months.""" - months: Int + """ + 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: Datetime +} - """A quantity of years.""" - years: Int +"""All input for the `requestDatabase` mutation.""" +input RequestDatabaseInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + databaseName: String + domain: String + presetSlug: String + modules: JSON + options: JSON + subdomain: String } """The output of our create `Function` mutation.""" @@ -15097,6 +15089,7 @@ input DatabaseInput { name: String label: String hash: UUID + platform: Boolean createdAt: Datetime updatedAt: Datetime } @@ -15901,6 +15894,11 @@ input PolicyInput { disabled: Boolean policyType: String data: JSON + + """ + Optional WITH CHECK override node {"$type": "Authz...", "data": {...}}. Only valid for UPDATE policies; NULL inherits the USING expression. + """ + withCheck: JSON smartTags: JSON category: ObjectCategory tags: [String] @@ -16421,6 +16419,52 @@ input ForeignKeyConstraintInput { updatedAt: Datetime } +"""The output of our create `AstMigration` mutation.""" +type CreateAstMigrationPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `AstMigration` that was created by this mutation.""" + astMigration: AstMigration + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + +"""All input for the create `AstMigration` mutation.""" +input CreateAstMigrationInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """The `AstMigration` to be created by this mutation.""" + astMigration: AstMigrationInput! +} + +"""An input for mutations affecting `AstMigration`""" +input AstMigrationInput { + id: Int + databaseId: UUID + name: String + requires: [String] + payload: JSON + deploys: String + deploy: JSON + revert: JSON + verify: JSON + createdAt: Datetime + action: String + actionId: UUID + actorId: UUID +} + """The output of our create `EmbeddingChunk` mutation.""" type CreateEmbeddingChunkPayload { """ @@ -16583,52 +16627,6 @@ input WebauthnSettingInput { challengeExpirySeconds: BigInt } -"""The output of our create `AstMigration` mutation.""" -type CreateAstMigrationPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `AstMigration` that was created by this mutation.""" - astMigration: AstMigration - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} - -"""All input for the create `AstMigration` mutation.""" -input CreateAstMigrationInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `AstMigration` to be created by this mutation.""" - astMigration: AstMigrationInput! -} - -"""An input for mutations affecting `AstMigration`""" -input AstMigrationInput { - id: Int - databaseId: UUID - name: String - requires: [String] - payload: JSON - deploys: String - deploy: JSON - revert: JSON - verify: JSON - createdAt: Datetime - action: String - actionId: UUID - actorId: UUID -} - """The output of our create `Schema` mutation.""" type CreateSchemaPayload { """ @@ -16728,6 +16726,8 @@ input FieldInput { isRequired: Boolean apiRequired: Boolean defaultValue: JSON + generationExpression: JSON + generationType: String type: JSON! fieldOrder: Int regexp: String @@ -16792,6 +16792,11 @@ input TableInput { pluralName: String singularName: String tags: [String] + + """ + Declarative step-up auth guard: jsonb object mapping DML verbs (INSERT, UPDATE, DELETE) to a step-up spec. Values: true (default password_or_mfa), a type string (password / mfa / password_or_mfa), or an object {type, min_age, min_age_lookup, conditions} where min_age is an interval string (e.g. 6 hours) gating the guard to rows older than that age (UPDATE/DELETE only), min_age_lookup resolves per-row windows from a lookup table, and conditions is a declarative WHEN-clause tree compiled by build_condition_expr. + """ + stepUp: JSON partitioned: Boolean partitionStrategy: String partitionKeyNames: [String] @@ -17767,6 +17772,7 @@ input DatabasePatch { name: String label: String hash: UUID + platform: Boolean createdAt: Datetime updatedAt: Datetime } @@ -18595,6 +18601,11 @@ input PolicyPatch { disabled: Boolean policyType: String data: JSON + + """ + Optional WITH CHECK override node {"$type": "Authz...", "data": {...}}. Only valid for UPDATE policies; NULL inherits the USING expression. + """ + withCheck: JSON smartTags: JSON category: ObjectCategory tags: [String] @@ -19452,6 +19463,8 @@ input FieldPatch { isRequired: Boolean apiRequired: Boolean defaultValue: JSON + generationExpression: JSON + generationType: String type: JSON fieldOrder: Int regexp: String @@ -19521,6 +19534,11 @@ input TablePatch { pluralName: String singularName: String tags: [String] + + """ + Declarative step-up auth guard: jsonb object mapping DML verbs (INSERT, UPDATE, DELETE) to a step-up spec. Values: true (default password_or_mfa), a type string (password / mfa / password_or_mfa), or an object {type, min_age, min_age_lookup, conditions} where min_age is an interval string (e.g. 6 hours) gating the guard to rows older than that age (UPDATE/DELETE only), min_age_lookup resolves per-row windows from a lookup table, and conditions is a declarative WHEN-clause tree compiled by build_condition_expr. + """ + stepUp: JSON partitioned: Boolean partitionStrategy: String partitionKeyNames: [String] diff --git a/sdk/constructive-sdk/schemas/auth.graphql b/sdk/constructive-sdk/schemas/auth.graphql index cd74ba7cb9..7d797cd604 100644 --- a/sdk/constructive-sdk/schemas/auth.graphql +++ b/sdk/constructive-sdk/schemas/auth.graphql @@ -238,10 +238,8 @@ type Query { orderBy: [AuditLogAuthOrderBy!] = [PRIMARY_KEY_ASC] ): AuditLogAuthConnection - """ - Reads and enables pagination through a set of `PrincipalScopeOverride`. - """ - principalScopeOverrides( + """Reads and enables pagination through a set of `OrgApiKeyList`.""" + orgApiKeyLists( """Only read the first `n` values of the set.""" first: Int @@ -263,14 +261,16 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: PrincipalScopeOverrideFilter + where: OrgApiKeyListFilter - """The method to use when ordering `PrincipalScopeOverride`.""" - orderBy: [PrincipalScopeOverrideOrderBy!] = [PRIMARY_KEY_ASC] - ): PrincipalScopeOverrideConnection + """The method to use when ordering `OrgApiKeyList`.""" + orderBy: [OrgApiKeyListOrderBy!] = [NATURAL] + ): OrgApiKeyListConnection - """Reads and enables pagination through a set of `OrgApiKeyList`.""" - orgApiKeyLists( + """ + Reads and enables pagination through a set of `PrincipalScopeOverride`. + """ + principalScopeOverrides( """Only read the first `n` values of the set.""" first: Int @@ -292,11 +292,11 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: OrgApiKeyListFilter + where: PrincipalScopeOverrideFilter - """The method to use when ordering `OrgApiKeyList`.""" - orderBy: [OrgApiKeyListOrderBy!] = [NATURAL] - ): OrgApiKeyListConnection + """The method to use when ordering `PrincipalScopeOverride`.""" + orderBy: [PrincipalScopeOverrideOrderBy!] = [PRIMARY_KEY_ASC] + ): PrincipalScopeOverrideConnection """Reads and enables pagination through a set of `Email`.""" emails( @@ -715,8 +715,8 @@ type Principal { """ name: String! - """Permission bitmask subset; all-1s means inherit all parent permissions""" - allowedMask: BitString! + """Whether this principal inherits admin/owner privileges from the owner""" + useAdminOwner: Boolean! """Whether this principal is restricted to read-only operations""" isReadOnly: Boolean! @@ -791,9 +791,6 @@ type Principal { ): PrincipalScopeOverrideConnection! } -"""A string representing a series of binary bits""" -scalar BitString - """A connection to a list of `PrincipalEntity` values.""" type PrincipalEntityConnection { """A list of `PrincipalEntity` objects.""" @@ -1569,8 +1566,8 @@ input PrincipalFilter { """Filter by the object’s `name` field.""" name: StringFilter - """Filter by the object’s `allowedMask` field.""" - allowedMask: BitStringFilter + """Filter by the object’s `useAdminOwner` field.""" + useAdminOwner: BooleanFilter """Filter by the object’s `isReadOnly` field.""" isReadOnly: BooleanFilter @@ -1606,48 +1603,6 @@ input PrincipalFilter { principalScopeOverridesExist: Boolean } -""" -A filter to be used against BitString fields. All fields are combined with a logical ‘and.’ -""" -input BitStringFilter { - """ - Is null (if `true` is specified) or is not null (if `false` is specified). - """ - isNull: Boolean - - """Equal to the specified value.""" - equalTo: BitString - - """Not equal to the specified value.""" - notEqualTo: BitString - - """ - Not equal to the specified value, treating null like an ordinary value. - """ - distinctFrom: BitString - - """Equal to the specified value, treating null like an ordinary value.""" - notDistinctFrom: BitString - - """Included in the specified list.""" - in: [BitString!] - - """Not included in the specified list.""" - notIn: [BitString!] - - """Less than the specified value.""" - lessThan: BitString - - """Less than or equal to the specified value.""" - lessThanOrEqualTo: BitString - - """Greater than the specified value.""" - greaterThan: BitString - - """Greater than or equal to the specified value.""" - greaterThanOrEqualTo: BitString -} - """ A filter to be used against Boolean fields. All fields are combined with a logical ‘and.’ """ @@ -1740,8 +1695,11 @@ input PrincipalScopeOverrideFilter { """Filter by the object’s `allowedMask` field.""" allowedMask: BitStringFilter - """Filter by the object’s `isAdmin` field.""" - isAdmin: BooleanFilter + """Filter by the object’s `useAdminOwner` field.""" + useAdminOwner: BooleanFilter + + """Filter by the object’s `isActive` field.""" + isActive: BooleanFilter """Filter by the object’s `isReadOnly` field.""" isReadOnly: BooleanFilter @@ -1759,6 +1717,51 @@ input PrincipalScopeOverrideFilter { principal: PrincipalFilter } +""" +A filter to be used against BitString fields. All fields are combined with a logical ‘and.’ +""" +input BitStringFilter { + """ + Is null (if `true` is specified) or is not null (if `false` is specified). + """ + isNull: Boolean + + """Equal to the specified value.""" + equalTo: BitString + + """Not equal to the specified value.""" + notEqualTo: BitString + + """ + Not equal to the specified value, treating null like an ordinary value. + """ + distinctFrom: BitString + + """Equal to the specified value, treating null like an ordinary value.""" + notDistinctFrom: BitString + + """Included in the specified list.""" + in: [BitString!] + + """Not included in the specified list.""" + notIn: [BitString!] + + """Less than the specified value.""" + lessThan: BitString + + """Less than or equal to the specified value.""" + lessThanOrEqualTo: BitString + + """Greater than the specified value.""" + greaterThan: BitString + + """Greater than or equal to the specified value.""" + greaterThanOrEqualTo: BitString +} + +"""A string representing a series of binary bits""" +scalar BitString + """ A filter to be used against many `PrincipalEntity` object types. All fields are combined with a logical ‘and.’ """ @@ -2595,14 +2598,19 @@ type PrincipalScopeOverride { membershipType: Int! """ - Permission bitmask for this scope; AND-masked with parent permissions during cascade + Optional permission mask; AND-masked with parent permissions during cascade. NULL means no extra mask. """ - allowedMask: BitString! + allowedMask: BitString + + """ + Whether this principal inherits admin/owner at this scope (default true = inherit from parent) + """ + useAdminOwner: Boolean! """ - Whether this principal has admin access at this scope (default true = inherit from parent) + Whether this scope is active for this principal; false disables all access at this scope """ - isAdmin: Boolean! + isActive: Boolean! """Whether this principal is restricted to read-only at this scope""" isReadOnly: Boolean! @@ -2639,8 +2647,10 @@ enum PrincipalScopeOverrideOrderBy { MEMBERSHIP_TYPE_DESC ALLOWED_MASK_ASC ALLOWED_MASK_DESC - IS_ADMIN_ASC - IS_ADMIN_DESC + USE_ADMIN_OWNER_ASC + USE_ADMIN_OWNER_DESC + IS_ACTIVE_ASC + IS_ACTIVE_DESC IS_READ_ONLY_ASC IS_READ_ONLY_DESC } @@ -2671,8 +2681,8 @@ enum PrincipalOrderBy { USER_ID_DESC NAME_ASC NAME_DESC - ALLOWED_MASK_ASC - ALLOWED_MASK_DESC + USE_ADMIN_OWNER_ASC + USE_ADMIN_OWNER_DESC IS_READ_ONLY_ASC IS_READ_ONLY_DESC BYPASS_STEP_UP_ASC @@ -3914,6 +3924,12 @@ type Mutation { """ input: ResetPasswordInput! ): ResetPasswordPayload + createOrgPrincipal( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateOrgPrincipalInput! + ): CreateOrgPrincipalPayload signInCrossOrigin( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. @@ -3950,12 +3966,12 @@ type Mutation { """ input: LinkIdentityInput! ): LinkIdentityPayload - createOrgPrincipal( + createPrincipal( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: CreateOrgPrincipalInput! - ): CreateOrgPrincipalPayload + input: CreatePrincipalInput! + ): CreatePrincipalPayload extendTokenExpires( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. @@ -3980,12 +3996,6 @@ type Mutation { """ input: RequestCrossOriginTokenInput! ): RequestCrossOriginTokenPayload - createPrincipal( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreatePrincipalInput! - ): CreatePrincipalPayload forgotPassword( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. @@ -4632,6 +4642,35 @@ input ResetPasswordInput { newPassword: String } +"""The output of our `createOrgPrincipal` mutation.""" +type CreateOrgPrincipalPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + result: UUID + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + +"""All input for the `createOrgPrincipal` mutation.""" +input CreateOrgPrincipalInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + name: String + orgId: UUID + useAdminOwner: Boolean + isReadOnly: Boolean + bypassStepUp: Boolean +} + """The output of our `signInCrossOrigin` mutation.""" type SignInCrossOriginPayload { """ @@ -4844,8 +4883,8 @@ input LinkIdentityInput { details: JSON } -"""The output of our `createOrgPrincipal` mutation.""" -type CreateOrgPrincipalPayload { +"""The output of our `createPrincipal` mutation.""" +type CreatePrincipalPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. @@ -4859,16 +4898,16 @@ type CreateOrgPrincipalPayload { query: Query } -"""All input for the `createOrgPrincipal` mutation.""" -input CreateOrgPrincipalInput { +"""All input for the `createPrincipal` mutation.""" +input CreatePrincipalInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String name: String - orgId: UUID - allowedMask: BitString + useAdminOwner: Boolean + entityIds: [UUID] isReadOnly: Boolean bypassStepUp: Boolean } @@ -5030,35 +5069,6 @@ input RequestCrossOriginTokenInput { rememberMe: Boolean } -"""The output of our `createPrincipal` mutation.""" -type CreatePrincipalPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - result: UUID - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} - -"""All input for the `createPrincipal` mutation.""" -input CreatePrincipalInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - name: String - allowedMask: BitString - entityIds: [UUID] - isReadOnly: Boolean - bypassStepUp: Boolean -} - """The output of our `forgotPassword` mutation.""" type ForgotPasswordPayload { """ diff --git a/sdk/constructive-sdk/schemas/compute.graphql b/sdk/constructive-sdk/schemas/compute.graphql index a91b860d0a..7312062960 100644 --- a/sdk/constructive-sdk/schemas/compute.graphql +++ b/sdk/constructive-sdk/schemas/compute.graphql @@ -2,6 +2,24 @@ type Query { readFunctionGraph(graphId: UUID): JSON + """Reads and enables pagination through a set of `InfraGetAllRecord`.""" + infraGetAll( + sId: UUID + id: UUID + + """Only read the first `n` values of the set.""" + first: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set after (below) this cursor.""" + after: Cursor + ): InfraGetAllConnection + """Reads and enables pagination through a set of `GetAllRecord`.""" getAll( sId: UUID @@ -19,8 +37,67 @@ type Query { """Read all values in the set after (below) this cursor.""" after: Cursor ): GetAllConnection + infraGetNodeAtPath(sId: UUID, id: UUID, path: [String]): InfraObject getNodeAtPath(sId: UUID, id: UUID, path: [String]): FunctionGraphObject + """Reads and enables pagination through a set of `InfraRef`.""" + infraRefs( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: InfraRefFilter + + """The method to use when ordering `InfraRef`.""" + orderBy: [InfraRefOrderBy!] = [PRIMARY_KEY_ASC] + ): InfraRefConnection + + """Reads and enables pagination through a set of `InfraStore`.""" + infraStores( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: InfraStoreFilter + + """The method to use when ordering `InfraStore`.""" + orderBy: [InfraStoreOrderBy!] = [PRIMARY_KEY_ASC] + ): InfraStoreConnection + """Reads and enables pagination through a set of `FunctionApiBinding`.""" functionApiBindings( """Only read the first `n` values of the set.""" @@ -108,8 +185,10 @@ type Query { orderBy: [FunctionGraphStoreOrderBy!] = [PRIMARY_KEY_ASC] ): FunctionGraphStoreConnection - """Reads and enables pagination through a set of `FunctionGraphObject`.""" - functionGraphObjects( + """ + Reads and enables pagination through a set of `PlatformFunctionApiBinding`. + """ + platformFunctionApiBindings( """Only read the first `n` values of the set.""" first: Int @@ -131,16 +210,16 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: FunctionGraphObjectFilter + where: PlatformFunctionApiBindingFilter - """The method to use when ordering `FunctionGraphObject`.""" - orderBy: [FunctionGraphObjectOrderBy!] = [PRIMARY_KEY_ASC] - ): FunctionGraphObjectConnection + """The method to use when ordering `PlatformFunctionApiBinding`.""" + orderBy: [PlatformFunctionApiBindingOrderBy!] = [PRIMARY_KEY_ASC] + ): PlatformFunctionApiBindingConnection """ - Reads and enables pagination through a set of `FunctionDeploymentEvent`. + Reads and enables pagination through a set of `PlatformResourcesRequirementsState`. """ - functionDeploymentEvents( + platformResourcesRequirementsStates( """Only read the first `n` values of the set.""" first: Int @@ -162,16 +241,16 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: FunctionDeploymentEventFilter + where: PlatformResourcesRequirementsStateFilter - """The method to use when ordering `FunctionDeploymentEvent`.""" - orderBy: [FunctionDeploymentEventOrderBy!] = [PRIMARY_KEY_ASC] - ): FunctionDeploymentEventConnection + """The method to use when ordering `PlatformResourcesRequirementsState`.""" + orderBy: [PlatformResourcesRequirementsStateOrderBy!] = [NATURAL] + ): PlatformResourcesRequirementsStateConnection """ - Reads and enables pagination through a set of `OrgFunctionExecutionLog`. + Reads and enables pagination through a set of `ResourcesRequirementsState`. """ - orgFunctionExecutionLogs( + resourcesRequirementsStates( """Only read the first `n` values of the set.""" first: Int @@ -193,14 +272,16 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: OrgFunctionExecutionLogFilter + where: ResourcesRequirementsStateFilter - """The method to use when ordering `OrgFunctionExecutionLog`.""" - orderBy: [OrgFunctionExecutionLogOrderBy!] = [PRIMARY_KEY_ASC] - ): OrgFunctionExecutionLogConnection + """The method to use when ordering `ResourcesRequirementsState`.""" + orderBy: [ResourcesRequirementsStateOrderBy!] = [NATURAL] + ): ResourcesRequirementsStateConnection - """Reads and enables pagination through a set of `ResourceEvent`.""" - resourceEvents( + """ + Reads and enables pagination through a set of `PlatformResourceStatusCheck`. + """ + platformResourceStatusChecks( """Only read the first `n` values of the set.""" first: Int @@ -222,16 +303,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: ResourceEventFilter + where: PlatformResourceStatusCheckFilter - """The method to use when ordering `ResourceEvent`.""" - orderBy: [ResourceEventOrderBy!] = [PRIMARY_KEY_ASC] - ): ResourceEventConnection + """The method to use when ordering `PlatformResourceStatusCheck`.""" + orderBy: [PlatformResourceStatusCheckOrderBy!] = [PRIMARY_KEY_ASC] + ): PlatformResourceStatusCheckConnection - """ - Reads and enables pagination through a set of `FunctionGraphExecutionOutput`. - """ - functionGraphExecutionOutputs( + """Reads and enables pagination through a set of `InfraObject`.""" + infraObjects( """Only read the first `n` values of the set.""" first: Int @@ -253,14 +332,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: FunctionGraphExecutionOutputFilter + where: InfraObjectFilter - """The method to use when ordering `FunctionGraphExecutionOutput`.""" - orderBy: [FunctionGraphExecutionOutputOrderBy!] = [PRIMARY_KEY_ASC] - ): FunctionGraphExecutionOutputConnection + """The method to use when ordering `InfraObject`.""" + orderBy: [InfraObjectOrderBy!] = [PRIMARY_KEY_ASC] + ): InfraObjectConnection - """Reads and enables pagination through a set of `FunctionGraphCommit`.""" - functionGraphCommits( + """Reads and enables pagination through a set of `FunctionGraphObject`.""" + functionGraphObjects( """Only read the first `n` values of the set.""" first: Int @@ -282,14 +361,16 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: FunctionGraphCommitFilter + where: FunctionGraphObjectFilter - """The method to use when ordering `FunctionGraphCommit`.""" - orderBy: [FunctionGraphCommitOrderBy!] = [PRIMARY_KEY_ASC] - ): FunctionGraphCommitConnection + """The method to use when ordering `FunctionGraphObject`.""" + orderBy: [FunctionGraphObjectOrderBy!] = [PRIMARY_KEY_ASC] + ): FunctionGraphObjectConnection - """Reads and enables pagination through a set of `SecretDefinition`.""" - secretDefinitions( + """ + Reads and enables pagination through a set of `PlatformFunctionDeploymentEvent`. + """ + platformFunctionDeploymentEvents( """Only read the first `n` values of the set.""" first: Int @@ -311,14 +392,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: SecretDefinitionFilter + where: PlatformFunctionDeploymentEventFilter - """The method to use when ordering `SecretDefinition`.""" - orderBy: [SecretDefinitionOrderBy!] = [PRIMARY_KEY_ASC] - ): SecretDefinitionConnection + """The method to use when ordering `PlatformFunctionDeploymentEvent`.""" + orderBy: [PlatformFunctionDeploymentEventOrderBy!] = [PRIMARY_KEY_ASC] + ): PlatformFunctionDeploymentEventConnection - """Reads and enables pagination through a set of `FunctionExecutionLog`.""" - functionExecutionLogs( + """Reads and enables pagination through a set of `PlatformResourceEvent`.""" + platformResourceEvents( """Only read the first `n` values of the set.""" first: Int @@ -340,14 +421,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: FunctionExecutionLogFilter + where: PlatformResourceEventFilter - """The method to use when ordering `FunctionExecutionLog`.""" - orderBy: [FunctionExecutionLogOrderBy!] = [PRIMARY_KEY_ASC] - ): FunctionExecutionLogConnection + """The method to use when ordering `PlatformResourceEvent`.""" + orderBy: [PlatformResourceEventOrderBy!] = [PRIMARY_KEY_ASC] + ): PlatformResourceEventConnection - """Reads and enables pagination through a set of `FunctionGraph`.""" - functionGraphs( + """Reads and enables pagination through a set of `ResourceStatusCheck`.""" + resourceStatusChecks( """Only read the first `n` values of the set.""" first: Int @@ -369,16 +450,16 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: FunctionGraphFilter + where: ResourceStatusCheckFilter - """The method to use when ordering `FunctionGraph`.""" - orderBy: [FunctionGraphOrderBy!] = [PRIMARY_KEY_ASC] - ): FunctionGraphConnection + """The method to use when ordering `ResourceStatusCheck`.""" + orderBy: [ResourceStatusCheckOrderBy!] = [PRIMARY_KEY_ASC] + ): ResourceStatusCheckConnection """ - Reads and enables pagination through a set of `FunctionGraphExecutionNodeState`. + Reads and enables pagination through a set of `FunctionDeploymentEvent`. """ - functionGraphExecutionNodeStates( + functionDeploymentEvents( """Only read the first `n` values of the set.""" first: Int @@ -400,14 +481,16 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: FunctionGraphExecutionNodeStateFilter + where: FunctionDeploymentEventFilter - """The method to use when ordering `FunctionGraphExecutionNodeState`.""" - orderBy: [FunctionGraphExecutionNodeStateOrderBy!] = [PRIMARY_KEY_ASC] - ): FunctionGraphExecutionNodeStateConnection + """The method to use when ordering `FunctionDeploymentEvent`.""" + orderBy: [FunctionDeploymentEventOrderBy!] = [PRIMARY_KEY_ASC] + ): FunctionDeploymentEventConnection - """Reads and enables pagination through a set of `PlatformNamespace`.""" - platformNamespaces( + """ + Reads and enables pagination through a set of `PlatformFunctionExecutionLog`. + """ + platformFunctionExecutionLogs( """Only read the first `n` values of the set.""" first: Int @@ -429,14 +512,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: PlatformNamespaceFilter + where: PlatformFunctionExecutionLogFilter - """The method to use when ordering `PlatformNamespace`.""" - orderBy: [PlatformNamespaceOrderBy!] = [PRIMARY_KEY_ASC] - ): PlatformNamespaceConnection + """The method to use when ordering `PlatformFunctionExecutionLog`.""" + orderBy: [PlatformFunctionExecutionLogOrderBy!] = [PRIMARY_KEY_ASC] + ): PlatformFunctionExecutionLogConnection - """Reads and enables pagination through a set of `OrgFunctionInvocation`.""" - orgFunctionInvocations( + """Reads and enables pagination through a set of `ResourceEvent`.""" + resourceEvents( """Only read the first `n` values of the set.""" first: Int @@ -458,14 +541,16 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: OrgFunctionInvocationFilter + where: ResourceEventFilter - """The method to use when ordering `OrgFunctionInvocation`.""" - orderBy: [OrgFunctionInvocationOrderBy!] = [PRIMARY_KEY_ASC] - ): OrgFunctionInvocationConnection + """The method to use when ordering `ResourceEvent`.""" + orderBy: [ResourceEventOrderBy!] = [PRIMARY_KEY_ASC] + ): ResourceEventConnection - """Reads and enables pagination through a set of `FunctionInvocation`.""" - functionInvocations( + """ + Reads and enables pagination through a set of `FunctionGraphExecutionOutput`. + """ + functionGraphExecutionOutputs( """Only read the first `n` values of the set.""" first: Int @@ -487,14 +572,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: FunctionInvocationFilter + where: FunctionGraphExecutionOutputFilter - """The method to use when ordering `FunctionInvocation`.""" - orderBy: [FunctionInvocationOrderBy!] = [PRIMARY_KEY_ASC] - ): FunctionInvocationConnection + """The method to use when ordering `FunctionGraphExecutionOutput`.""" + orderBy: [FunctionGraphExecutionOutputOrderBy!] = [PRIMARY_KEY_ASC] + ): FunctionGraphExecutionOutputConnection - """Reads and enables pagination through a set of `Resource`.""" - resources( + """Reads and enables pagination through a set of `InfraCommit`.""" + infraCommits( """Only read the first `n` values of the set.""" first: Int @@ -516,16 +601,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: ResourceFilter + where: InfraCommitFilter - """The method to use when ordering `Resource`.""" - orderBy: [ResourceOrderBy!] = [PRIMARY_KEY_ASC] - ): ResourceConnection + """The method to use when ordering `InfraCommit`.""" + orderBy: [InfraCommitOrderBy!] = [PRIMARY_KEY_ASC] + ): InfraCommitConnection - """ - Reads and enables pagination through a set of `PlatformNamespaceEvent`. - """ - platformNamespaceEvents( + """Reads and enables pagination through a set of `FunctionGraphCommit`.""" + functionGraphCommits( """Only read the first `n` values of the set.""" first: Int @@ -547,14 +630,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: PlatformNamespaceEventFilter + where: FunctionGraphCommitFilter - """The method to use when ordering `PlatformNamespaceEvent`.""" - orderBy: [PlatformNamespaceEventOrderBy!] = [PRIMARY_KEY_ASC] - ): PlatformNamespaceEventConnection + """The method to use when ordering `FunctionGraphCommit`.""" + orderBy: [FunctionGraphCommitOrderBy!] = [PRIMARY_KEY_ASC] + ): FunctionGraphCommitConnection - """Reads and enables pagination through a set of `FunctionDeployment`.""" - functionDeployments( + """Reads and enables pagination through a set of `FunctionExecutionLog`.""" + functionExecutionLogs( """Only read the first `n` values of the set.""" first: Int @@ -576,16 +659,16 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: FunctionDeploymentFilter + where: FunctionExecutionLogFilter - """The method to use when ordering `FunctionDeployment`.""" - orderBy: [FunctionDeploymentOrderBy!] = [PRIMARY_KEY_ASC] - ): FunctionDeploymentConnection + """The method to use when ordering `FunctionExecutionLog`.""" + orderBy: [FunctionExecutionLogOrderBy!] = [PRIMARY_KEY_ASC] + ): FunctionExecutionLogConnection """ - Reads and enables pagination through a set of `FunctionGraphExecution`. + Reads and enables pagination through a set of `PlatformResourcesResolvedRequirement`. """ - functionGraphExecutions( + platformResourcesResolvedRequirements( """Only read the first `n` values of the set.""" first: Int @@ -607,14 +690,18 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: FunctionGraphExecutionFilter + where: PlatformResourcesResolvedRequirementFilter - """The method to use when ordering `FunctionGraphExecution`.""" - orderBy: [FunctionGraphExecutionOrderBy!] = [PRIMARY_KEY_ASC] - ): FunctionGraphExecutionConnection + """ + The method to use when ordering `PlatformResourcesResolvedRequirement`. + """ + orderBy: [PlatformResourcesResolvedRequirementOrderBy!] = [NATURAL] + ): PlatformResourcesResolvedRequirementConnection - """Reads and enables pagination through a set of `FunctionDefinition`.""" - functionDefinitions( + """ + Reads and enables pagination through a set of `ResourcesResolvedRequirement`. + """ + resourcesResolvedRequirements( """Only read the first `n` values of the set.""" first: Int @@ -636,268 +723,103 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: FunctionDefinitionFilter + where: ResourcesResolvedRequirementFilter - """The method to use when ordering `FunctionDefinition`.""" - orderBy: [FunctionDefinitionOrderBy!] = [PRIMARY_KEY_ASC] - ): FunctionDefinitionConnection + """The method to use when ordering `ResourcesResolvedRequirement`.""" + orderBy: [ResourcesResolvedRequirementOrderBy!] = [NATURAL] + ): ResourcesResolvedRequirementConnection - """ - 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 `DbPreset`.""" + dbPresets( + """Only read the first `n` values of the set.""" + first: Int -""" -Represents JSON values as specified by [ECMA-404](http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf). -""" -scalar JSON + """Only read the last `n` values of the set.""" + last: Int -""" -A universally unique identifier as defined by [RFC 4122](https://tools.ietf.org/html/rfc4122). -""" -scalar 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 connection to a list of `GetAllRecord` values.""" -type GetAllConnection { - """A list of `GetAllRecord` objects.""" - nodes: [GetAllRecord]! + """Read all values in the set before (above) this cursor.""" + before: Cursor - """ - A list of edges which contains the `GetAllRecord` and cursor to aid in pagination. - """ - edges: [GetAllEdge]! + """Read all values in the set after (below) this cursor.""" + after: Cursor - """Information to aid in pagination.""" - pageInfo: PageInfo! + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: DbPresetFilter - """The count of *all* `GetAllRecord` you could get from the connection.""" - totalCount: Int! -} + """The method to use when ordering `DbPreset`.""" + orderBy: [DbPresetOrderBy!] = [PRIMARY_KEY_ASC] + ): DbPresetConnection -type GetAllRecord { - path: [String] - data: JSON -} + """Reads and enables pagination through a set of `PlatformNamespace`.""" + platformNamespaces( + """Only read the first `n` values of the set.""" + first: Int -"""A `GetAllRecord` edge in the connection.""" -type GetAllEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `GetAllRecord` at the end of the edge.""" - node: GetAllRecord -} - -"""A location in a connection that can be used for resuming pagination.""" -scalar Cursor - -"""Information about pagination in a connection.""" -type PageInfo { - """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 - - """When paginating forwards, the cursor to continue.""" - endCursor: Cursor -} - -""" -Content-addressed Merkle tree objects keyed by UUID v5 hash of data + children -""" -type FunctionGraphObject { - """Content-addressed UUID v5 — deterministic hash of (data, kids, ktree)""" - id: UUID! - - """Database scope for multi-tenant isolation""" - databaseId: UUID! - - """Ordered array of child object IDs""" - kids: [UUID] - - """Ordered array of child path names (parallel to kids)""" - ktree: [String] - - """Payload data for this object node""" - data: JSON - - """Timestamp of object creation""" - createdAt: Datetime -} - -""" -A point in time as described by the [ISO -8601](https://en.wikipedia.org/wiki/ISO_8601) and, if it has a timezone, [RFC -3339](https://datatracker.ietf.org/doc/html/rfc3339) standards. Input values -that do not conform to both ISO 8601 and RFC 3339 may be coerced, which may lead -to unexpected results. -""" -scalar Datetime - -"""A connection to a list of `FunctionApiBinding` values.""" -type FunctionApiBindingConnection { - """A list of `FunctionApiBinding` objects.""" - nodes: [FunctionApiBinding]! - - """ - A list of edges which contains the `FunctionApiBinding` and cursor to aid in pagination. - """ - edges: [FunctionApiBindingEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """ - The count of *all* `FunctionApiBinding` you could get from the connection. - """ - totalCount: Int! -} - -""" -Join table binding function definitions to API endpoints with per-binding alias and config -""" -type FunctionApiBinding { - id: UUID! - - """Function definition this binding belongs to""" - functionDefinitionId: UUID! - - """API endpoint this function is bound to""" - apiId: UUID! - - """Binding alias (e.g. default, staging, production)""" - alias: String! - - """Per-binding configuration (overrides, routing rules, etc.)""" - config: JSON! - - """ - Reads a single `FunctionDefinition` that is related to this `FunctionApiBinding`. - """ - functionDefinition: FunctionDefinition -} - -""" -Function definitions — registered cloud functions with routing, queue, and retry configuration -""" -type FunctionDefinition { - id: UUID! - createdAt: Datetime - updatedAt: Datetime - - """Function grouping scope (e.g. email, embed, chunk, custom)""" - scope: String! - - """ - Function name within scope (e.g. send_verification_link, process_file_embedding) - """ - name: String! - - """ - Computed routing slug: scope:name (used by Knative job worker for dispatch) - """ - taskIdentifier: String! - - """Human-readable description of what this function does""" - description: String - - """ - Whether this function can be called via function_invocations (public API). Default false = internal-only via add_job() - """ - isInvocable: Boolean! - - """Maximum retry attempts for the underlying job""" - maxAttempts: Int! - - """Job priority (lower = higher priority)""" - priority: Int! - - """Job queue name for serialization (e.g. email, ai, default)""" - queueName: String! - - """ - Execution mode: http (Knative Service dispatch) or inline (in-process in compute worker) - """ - runtime: String! - - """ - Docker image reference (e.g. ghcr.io/constructive-io/email-send-fn:latest). Required when runtime=http. NULL for inline functions. - """ - image: String - - """ - Knative containerConcurrency — max concurrent requests per pod instance - """ - concurrency: Int! + """Only read the last `n` values of the set.""" + last: Int - """Minimum pod count for Knative autoscaling (minScale)""" - scaleMin: Int! + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int - """Maximum pod count for Knative autoscaling (maxScale)""" - scaleMax: Int! + """Read all values in the set before (above) this cursor.""" + before: Cursor - """Knative request timeout in seconds""" - timeoutSeconds: Int! + """Read all values in the set after (below) this cursor.""" + after: Cursor - """ - Container resource requests and limits: {requests: {memory, cpu}, limits: {memory, cpu}} - """ - resources: JSON! + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: PlatformNamespaceFilter - """ - Whether this function is a built-in platform function (synced from platform) vs user-created - """ - isBuiltIn: Boolean! + """The method to use when ordering `PlatformNamespace`.""" + orderBy: [PlatformNamespaceOrderBy!] = [PRIMARY_KEY_ASC] + ): PlatformNamespaceConnection - """Embedded secret requirements: array of (name, required) tuples""" - requiredSecrets: [FunctionRequirement]! + """Reads and enables pagination through a set of `FunctionGraph`.""" + functionGraphs( + """Only read the first `n` values of the set.""" + first: Int - """Embedded config requirements: array of (name, required) tuples""" - requiredConfigs: [FunctionRequirement]! + """Only read the last `n` values of the set.""" + last: Int - """ - Bucket keys this function needs (e.g. uploads, exports). Empty = no bucket requirements. - """ - requiredBuckets: [String]! + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int - """ - Inference model whitelist (e.g. gpt-4o, claude-3). Empty = no model requirements. - """ - requiredModels: [String]! + """Read all values in the set before (above) this cursor.""" + before: Cursor - """ - Data input ports: [{name, type, description?, optional?, multi?, schema?}] - """ - inputs: JSON! + """Read all values in the set after (below) this cursor.""" + after: Cursor - """ - Data output ports: [{name, type, description?, optional?, multi?, schema?}] - """ - outputs: JSON! + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: FunctionGraphFilter - """ - Configuration properties: [{name, type, default?, description?, required?, schema?}] - """ - props: JSON! + """The method to use when ordering `FunctionGraph`.""" + orderBy: [FunctionGraphOrderBy!] = [PRIMARY_KEY_ASC] + ): FunctionGraphConnection """ - Whether this function has side effects and cannot be cached or memoized + Reads and enables pagination through a set of `FunctionGraphExecutionNodeState`. """ - volatile: Boolean! - - """Icon identifier for UI palette rendering (e.g. mail, database, code)""" - icon: String - - """Palette grouping category (e.g. email, data, ai, custom)""" - category: String - - """Reads and enables pagination through a set of `FunctionApiBinding`.""" - functionApiBindings( + functionGraphExecutionNodeStates( """Only read the first `n` values of the set.""" first: Int @@ -919,14 +841,14 @@ type FunctionDefinition { """ A filter to be used in determining which values should be returned by the collection. """ - where: FunctionApiBindingFilter + where: FunctionGraphExecutionNodeStateFilter - """The method to use when ordering `FunctionApiBinding`.""" - orderBy: [FunctionApiBindingOrderBy!] = [PRIMARY_KEY_ASC] - ): FunctionApiBindingConnection! + """The method to use when ordering `FunctionGraphExecutionNodeState`.""" + orderBy: [FunctionGraphExecutionNodeStateOrderBy!] = [PRIMARY_KEY_ASC] + ): FunctionGraphExecutionNodeStateConnection - """Reads and enables pagination through a set of `FunctionDeployment`.""" - functionDeployments( + """Reads and enables pagination through a set of `Namespace`.""" + namespaces( """Only read the first `n` values of the set.""" first: Int @@ -948,1045 +870,1187 @@ type FunctionDefinition { """ A filter to be used in determining which values should be returned by the collection. """ - where: FunctionDeploymentFilter - - """The method to use when ordering `FunctionDeployment`.""" - orderBy: [FunctionDeploymentOrderBy!] = [PRIMARY_KEY_ASC] - ): FunctionDeploymentConnection! -} + where: NamespaceFilter -type FunctionRequirement { - name: String - required: Boolean -} + """The method to use when ordering `Namespace`.""" + orderBy: [NamespaceOrderBy!] = [PRIMARY_KEY_ASC] + ): NamespaceConnection -""" -A filter to be used against `FunctionApiBinding` object types. All fields are combined with a logical ‘and.’ -""" -input FunctionApiBindingFilter { - """Filter by the object’s `id` field.""" - id: UUIDFilter - - """Filter by the object’s `functionDefinitionId` field.""" - functionDefinitionId: UUIDFilter + """ + Reads and enables pagination through a set of `PlatformFunctionInvocation`. + """ + platformFunctionInvocations( + """Only read the first `n` values of the set.""" + first: Int - """Filter by the object’s `apiId` field.""" - apiId: UUIDFilter + """Only read the last `n` values of the set.""" + last: Int - """Filter by the object’s `alias` field.""" - alias: 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 `config` field.""" - config: JSONFilter + """Read all values in the set before (above) this cursor.""" + before: Cursor - """Checks for all expressions in this list.""" - and: [FunctionApiBindingFilter!] + """Read all values in the set after (below) this cursor.""" + after: Cursor - """Checks for any expressions in this list.""" - or: [FunctionApiBindingFilter!] + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: PlatformFunctionInvocationFilter - """Negates the expression.""" - not: FunctionApiBindingFilter + """The method to use when ordering `PlatformFunctionInvocation`.""" + orderBy: [PlatformFunctionInvocationOrderBy!] = [PRIMARY_KEY_ASC] + ): PlatformFunctionInvocationConnection - """Filter by the object’s `functionDefinition` relation.""" - functionDefinition: FunctionDefinitionFilter -} + """Reads and enables pagination through a set of `FunctionInvocation`.""" + functionInvocations( + """Only read the first `n` values of the set.""" + first: Int -""" -A filter to be used against UUID fields. All fields are combined with a logical ‘and.’ -""" -input UUIDFilter { - """ - 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 - """Equal to the specified value.""" - equalTo: UUID + """ + 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.""" - notEqualTo: UUID + """Read all values in the set before (above) this cursor.""" + before: Cursor - """ - Not equal to the specified value, treating null like an ordinary value. - """ - distinctFrom: UUID + """Read all values in the set after (below) this cursor.""" + after: Cursor - """Equal to the specified value, treating null like an ordinary value.""" - notDistinctFrom: UUID + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: FunctionInvocationFilter - """Included in the specified list.""" - in: [UUID!] + """The method to use when ordering `FunctionInvocation`.""" + orderBy: [FunctionInvocationOrderBy!] = [PRIMARY_KEY_ASC] + ): FunctionInvocationConnection - """Not included in the specified list.""" - notIn: [UUID!] + """ + Reads and enables pagination through a set of `PlatformNamespaceEvent`. + """ + platformNamespaceEvents( + """Only read the first `n` values of the set.""" + first: Int - """Less than the specified value.""" - lessThan: UUID + """Only read the last `n` values of the set.""" + last: Int - """Less than or equal to the specified value.""" - lessThanOrEqualTo: UUID + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int - """Greater than the specified value.""" - greaterThan: UUID + """Read all values in the set before (above) this cursor.""" + before: Cursor - """Greater than or equal to the specified value.""" - greaterThanOrEqualTo: UUID -} + """Read all values in the set after (below) this cursor.""" + after: Cursor -""" -A filter to be used against String fields. All fields are combined with a logical ‘and.’ -""" -input StringFilter { - """ - Is null (if `true` is specified) or is not null (if `false` is specified). - """ - isNull: Boolean + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: PlatformNamespaceEventFilter - """Equal to the specified value.""" - equalTo: String + """The method to use when ordering `PlatformNamespaceEvent`.""" + orderBy: [PlatformNamespaceEventOrderBy!] = [PRIMARY_KEY_ASC] + ): PlatformNamespaceEventConnection - """Not equal to the specified value.""" - notEqualTo: String + """Reads and enables pagination through a set of `IntegrationProvider`.""" + integrationProviders( + """Only read the first `n` values of the set.""" + first: Int - """ - Not equal to the specified value, treating null like an ordinary value. - """ - distinctFrom: String + """Only read the last `n` values of the set.""" + last: Int - """Equal to the specified value, treating null like an ordinary value.""" - notDistinctFrom: String + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int - """Included in the specified list.""" - in: [String!] + """Read all values in the set before (above) this cursor.""" + before: Cursor - """Not included in the specified list.""" - notIn: [String!] + """Read all values in the set after (below) this cursor.""" + after: Cursor - """Less than the specified value.""" - lessThan: String + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: IntegrationProviderFilter - """Less than or equal to the specified value.""" - lessThanOrEqualTo: String + """The method to use when ordering `IntegrationProvider`.""" + orderBy: [IntegrationProviderOrderBy!] = [PRIMARY_KEY_ASC] + ): IntegrationProviderConnection - """Greater than the specified value.""" - greaterThan: String + """Reads and enables pagination through a set of `NamespaceEvent`.""" + namespaceEvents( + """Only read the first `n` values of the set.""" + first: Int - """Greater than or equal to the specified value.""" - greaterThanOrEqualTo: String + """Only read the last `n` values of the set.""" + last: Int - """Contains the specified string (case-sensitive).""" - includes: String + """ + 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 contain the specified string (case-sensitive).""" - notIncludes: String + """Read all values in the set before (above) this cursor.""" + before: Cursor - """Contains the specified string (case-insensitive).""" - includesInsensitive: String + """Read all values in the set after (below) this cursor.""" + after: Cursor - """Does not contain the specified string (case-insensitive).""" - notIncludesInsensitive: String + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: NamespaceEventFilter - """Starts with the specified string (case-sensitive).""" - startsWith: String + """The method to use when ordering `NamespaceEvent`.""" + orderBy: [NamespaceEventOrderBy!] = [PRIMARY_KEY_ASC] + ): NamespaceEventConnection - """Does not start with the specified string (case-sensitive).""" - notStartsWith: String + """Reads and enables pagination through a set of `PlatformResource`.""" + platformResources( + """Only read the first `n` values of the set.""" + first: Int - """Starts with the specified string (case-insensitive).""" - startsWithInsensitive: String + """Only read the last `n` values of the set.""" + last: Int - """Does not start with the specified string (case-insensitive).""" - notStartsWithInsensitive: String + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int - """Ends with the specified string (case-sensitive).""" - endsWith: String + """Read all values in the set before (above) this cursor.""" + before: Cursor - """Does not end with the specified string (case-sensitive).""" - notEndsWith: String + """Read all values in the set after (below) this cursor.""" + after: Cursor - """Ends with the specified string (case-insensitive).""" - endsWithInsensitive: String + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: PlatformResourceFilter - """Does not end with the specified string (case-insensitive).""" - notEndsWithInsensitive: String + """The method to use when ordering `PlatformResource`.""" + orderBy: [PlatformResourceOrderBy!] = [PRIMARY_KEY_ASC] + ): PlatformResourceConnection """ - Matches the specified pattern (case-sensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. + Reads and enables pagination through a set of `PlatformFunctionDeployment`. """ - like: String + platformFunctionDeployments( + """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 - """ - 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 + """ + 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 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 + """Read all values in the set before (above) this cursor.""" + before: Cursor - """Equal to the specified value (case-insensitive).""" - equalToInsensitive: String + """Read all values in the set after (below) this cursor.""" + after: Cursor - """Not equal to the specified value (case-insensitive).""" - notEqualToInsensitive: String + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: PlatformFunctionDeploymentFilter - """ - Not equal to the specified value, treating null like an ordinary value (case-insensitive). - """ - distinctFromInsensitive: String + """The method to use when ordering `PlatformFunctionDeployment`.""" + orderBy: [PlatformFunctionDeploymentOrderBy!] = [PRIMARY_KEY_ASC] + ): PlatformFunctionDeploymentConnection - """ - Equal to the specified value, treating null like an ordinary value (case-insensitive). - """ - notDistinctFromInsensitive: String + """Reads and enables pagination through a set of `Resource`.""" + resources( + """Only read the first `n` values of the set.""" + first: Int - """Included in the specified list (case-insensitive).""" - inInsensitive: [String!] + """Only read the last `n` values of the set.""" + last: Int - """Not included in the specified list (case-insensitive).""" - notInInsensitive: [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 the specified value (case-insensitive).""" - lessThanInsensitive: String + """Read all values in the set before (above) this cursor.""" + before: Cursor - """Less than or equal to the specified value (case-insensitive).""" - lessThanOrEqualToInsensitive: String + """Read all values in the set after (below) this cursor.""" + after: Cursor - """Greater than the specified value (case-insensitive).""" - greaterThanInsensitive: String + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: ResourceFilter - """Greater than or equal to the specified value (case-insensitive).""" - greaterThanOrEqualToInsensitive: String -} + """The method to use when ordering `Resource`.""" + orderBy: [ResourceOrderBy!] = [PRIMARY_KEY_ASC] + ): ResourceConnection -""" -A filter to be used against JSON fields. All fields are combined with a logical ‘and.’ -""" -input JSONFilter { """ - Is null (if `true` is specified) or is not null (if `false` is specified). + Reads and enables pagination through a set of `PlatformResourceDefinition`. """ - isNull: Boolean - - """Equal to the specified value.""" - equalTo: JSON + platformResourceDefinitions( + """Only read the first `n` values of the set.""" + first: Int - """Not equal to the specified value.""" - notEqualTo: JSON + """Only read the last `n` values of the set.""" + last: Int - """ - Not equal to the specified value, treating null like an ordinary value. - """ - distinctFrom: JSON + """ + 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, treating null like an ordinary value.""" - notDistinctFrom: JSON + """Read all values in the set before (above) this cursor.""" + before: Cursor - """Included in the specified list.""" - in: [JSON!] + """Read all values in the set after (below) this cursor.""" + after: Cursor - """Not included in the specified list.""" - notIn: [JSON!] + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: PlatformResourceDefinitionFilter - """Less than the specified value.""" - lessThan: JSON + """The method to use when ordering `PlatformResourceDefinition`.""" + orderBy: [PlatformResourceDefinitionOrderBy!] = [PRIMARY_KEY_ASC] + ): PlatformResourceDefinitionConnection - """Less than or equal to the specified value.""" - lessThanOrEqualTo: JSON + """Reads and enables pagination through a set of `FunctionDeployment`.""" + functionDeployments( + """Only read the first `n` values of the set.""" + first: Int - """Greater than the specified value.""" - greaterThan: JSON + """Only read the last `n` values of the set.""" + last: Int - """Greater than or equal to the specified value.""" - greaterThanOrEqualTo: JSON + """ + 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 JSON.""" - contains: JSON + """Read all values in the set before (above) this cursor.""" + before: Cursor - """Contains the specified key.""" - containsKey: String + """Read all values in the set after (below) this cursor.""" + after: Cursor - """Contains all of the specified keys.""" - containsAllKeys: [String!] + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: FunctionDeploymentFilter - """Contains any of the specified keys.""" - containsAnyKeys: [String!] + """The method to use when ordering `FunctionDeployment`.""" + orderBy: [FunctionDeploymentOrderBy!] = [PRIMARY_KEY_ASC] + ): FunctionDeploymentConnection - """Contained by the specified JSON.""" - containedBy: JSON -} + """Reads and enables pagination through a set of `ResourceDefinition`.""" + resourceDefinitions( + """Only read the first `n` values of the set.""" + first: Int -""" -A filter to be used against `FunctionDefinition` object types. All fields are combined with a logical ‘and.’ -""" -input FunctionDefinitionFilter { - """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 `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 `updatedAt` field.""" - updatedAt: DatetimeFilter + """Read all values in the set before (above) this cursor.""" + before: Cursor - """Filter by the object’s `scope` field.""" - scope: StringFilter + """Read all values in the set after (below) this cursor.""" + after: Cursor - """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: ResourceDefinitionFilter - """Filter by the object’s `taskIdentifier` field.""" - taskIdentifier: StringFilter + """The method to use when ordering `ResourceDefinition`.""" + orderBy: [ResourceDefinitionOrderBy!] = [PRIMARY_KEY_ASC] + ): ResourceDefinitionConnection - """Filter by the object’s `description` field.""" - description: StringFilter + """ + Reads and enables pagination through a set of `FunctionGraphExecution`. + """ + functionGraphExecutions( + """Only read the first `n` values of the set.""" + first: Int - """Filter by the object’s `isInvocable` field.""" - isInvocable: BooleanFilter + """Only read the last `n` values of the set.""" + last: Int - """Filter by the object’s `maxAttempts` field.""" - maxAttempts: IntFilter + """ + 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 `priority` field.""" - priority: IntFilter + """Read all values in the set before (above) this cursor.""" + before: Cursor - """Filter by the object’s `queueName` field.""" - queueName: StringFilter + """Read all values in the set after (below) this cursor.""" + after: Cursor - """Filter by the object’s `runtime` field.""" - runtime: StringFilter + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: FunctionGraphExecutionFilter - """Filter by the object’s `image` field.""" - image: StringFilter + """The method to use when ordering `FunctionGraphExecution`.""" + orderBy: [FunctionGraphExecutionOrderBy!] = [PRIMARY_KEY_ASC] + ): FunctionGraphExecutionConnection - """Filter by the object’s `concurrency` field.""" - concurrency: IntFilter + """ + Reads and enables pagination through a set of `PlatformFunctionDefinition`. + """ + platformFunctionDefinitions( + """Only read the first `n` values of the set.""" + first: Int - """Filter by the object’s `scaleMin` field.""" - scaleMin: IntFilter + """Only read the last `n` values of the set.""" + last: Int - """Filter by the object’s `scaleMax` field.""" - scaleMax: IntFilter + """ + 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 `timeoutSeconds` field.""" - timeoutSeconds: IntFilter + """Read all values in the set before (above) this cursor.""" + before: Cursor - """Filter by the object’s `resources` field.""" - resources: JSONFilter + """Read all values in the set after (below) this cursor.""" + after: Cursor - """Filter by the object’s `isBuiltIn` field.""" - isBuiltIn: BooleanFilter + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: PlatformFunctionDefinitionFilter - """Filter by the object’s `requiredBuckets` field.""" - requiredBuckets: StringListFilter + """The method to use when ordering `PlatformFunctionDefinition`.""" + orderBy: [PlatformFunctionDefinitionOrderBy!] = [PRIMARY_KEY_ASC] + ): PlatformFunctionDefinitionConnection - """Filter by the object’s `requiredModels` field.""" - requiredModels: StringListFilter + """Reads and enables pagination through a set of `FunctionDefinition`.""" + functionDefinitions( + """Only read the first `n` values of the set.""" + first: Int - """Filter by the object’s `inputs` field.""" - inputs: JSONFilter + """Only read the last `n` values of the set.""" + last: Int - """Filter by the object’s `outputs` field.""" - outputs: 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 `props` field.""" - props: JSONFilter + """Read all values in the set before (above) this cursor.""" + before: Cursor - """Filter by the object’s `volatile` field.""" - volatile: BooleanFilter + """Read all values in the set after (below) this cursor.""" + after: Cursor - """Filter by the object’s `icon` field.""" - icon: StringFilter + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: FunctionDefinitionFilter - """Filter by the object’s `category` field.""" - category: StringFilter + """The method to use when ordering `FunctionDefinition`.""" + orderBy: [FunctionDefinitionOrderBy!] = [PRIMARY_KEY_ASC] + ): FunctionDefinitionConnection - """Checks for all expressions in this list.""" - and: [FunctionDefinitionFilter!] - - """Checks for any expressions in this list.""" - or: [FunctionDefinitionFilter!] + """ + Metadata about the database schema, including tables, fields, indexes, and constraints. Useful for code generation tools. + """ + _meta: MetaSchema +} - """Negates the expression.""" - not: FunctionDefinitionFilter +""" +Represents JSON values as specified by [ECMA-404](http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf). +""" +scalar JSON - """Filter by the object’s `functionApiBindings` relation.""" - functionApiBindings: FunctionDefinitionToManyFunctionApiBindingFilter +""" +A universally unique identifier as defined by [RFC 4122](https://tools.ietf.org/html/rfc4122). +""" +scalar UUID - """`functionApiBindings` exist.""" - functionApiBindingsExist: Boolean +"""A connection to a list of `InfraGetAllRecord` values.""" +type InfraGetAllConnection { + """A list of `InfraGetAllRecord` objects.""" + nodes: [InfraGetAllRecord]! - """Filter by the object’s `functionDeployments` relation.""" - functionDeployments: FunctionDefinitionToManyFunctionDeploymentFilter + """ + A list of edges which contains the `InfraGetAllRecord` and cursor to aid in pagination. + """ + edges: [InfraGetAllEdge]! - """`functionDeployments` exist.""" - functionDeploymentsExist: Boolean -} + """Information to aid in pagination.""" + pageInfo: PageInfo! -""" -A filter to be used against Datetime fields. All fields are combined with a logical ‘and.’ -""" -input DatetimeFilter { """ - Is null (if `true` is specified) or is not null (if `false` is specified). + The count of *all* `InfraGetAllRecord` you could get from the connection. """ - isNull: Boolean + totalCount: Int! +} - """Equal to the specified value.""" - equalTo: Datetime +type InfraGetAllRecord { + path: [String] + data: JSON +} - """Not equal to the specified value.""" - notEqualTo: Datetime +"""A `InfraGetAllRecord` edge in the connection.""" +type InfraGetAllEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `InfraGetAllRecord` at the end of the edge.""" + node: InfraGetAllRecord +} + +"""A location in a connection that can be used for resuming pagination.""" +scalar Cursor + +"""Information about pagination in a connection.""" +type PageInfo { + """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 + + """When paginating forwards, the cursor to continue.""" + endCursor: Cursor +} + +"""A connection to a list of `GetAllRecord` values.""" +type GetAllConnection { + """A list of `GetAllRecord` objects.""" + nodes: [GetAllRecord]! """ - Not equal to the specified value, treating null like an ordinary value. + A list of edges which contains the `GetAllRecord` and cursor to aid in pagination. """ - distinctFrom: Datetime + edges: [GetAllEdge]! - """Equal to the specified value, treating null like an ordinary value.""" - notDistinctFrom: Datetime + """Information to aid in pagination.""" + pageInfo: PageInfo! - """Included in the specified list.""" - in: [Datetime!] + """The count of *all* `GetAllRecord` you could get from the connection.""" + totalCount: Int! +} - """Not included in the specified list.""" - notIn: [Datetime!] +type GetAllRecord { + path: [String] + data: JSON +} - """Less than the specified value.""" - lessThan: Datetime +"""A `GetAllRecord` edge in the connection.""" +type GetAllEdge { + """A cursor for use in pagination.""" + cursor: Cursor - """Less than or equal to the specified value.""" - lessThanOrEqualTo: Datetime + """The `GetAllRecord` at the end of the edge.""" + node: GetAllRecord +} - """Greater than the specified value.""" - greaterThan: Datetime +""" +Content-addressed Merkle tree objects keyed by UUID v5 hash of data + children +""" +type InfraObject { + """Content-addressed UUID v5 — deterministic hash of (data, kids, ktree)""" + id: UUID! - """Greater than or equal to the specified value.""" - greaterThanOrEqualTo: Datetime + """Opaque store partition key for the global tier""" + scopeId: UUID! + + """Ordered array of child object IDs""" + kids: [UUID] + + """Ordered array of child path names (parallel to kids)""" + ktree: [String] + + """Payload data for this object node""" + data: JSON + + """Timestamp of object creation""" + createdAt: Datetime } """ -A filter to be used against Boolean fields. 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 BooleanFilter { - """ - Is null (if `true` is specified) or is not null (if `false` is specified). - """ - isNull: Boolean +scalar Datetime - """Equal to the specified value.""" - equalTo: Boolean +""" +Content-addressed Merkle tree objects keyed by UUID v5 hash of data + children +""" +type FunctionGraphObject { + """Content-addressed UUID v5 — deterministic hash of (data, kids, ktree)""" + id: UUID! - """Not equal to the specified value.""" - notEqualTo: Boolean + """Opaque store partition key for the global tier""" + scopeId: UUID! + + """Ordered array of child object IDs""" + kids: [UUID] + + """Ordered array of child path names (parallel to kids)""" + ktree: [String] + + """Payload data for this object node""" + data: JSON + + """Timestamp of object creation""" + createdAt: Datetime +} + +"""A connection to a list of `InfraRef` values.""" +type InfraRefConnection { + """A list of `InfraRef` objects.""" + nodes: [InfraRef]! """ - Not equal to the specified value, treating null like an ordinary value. + A list of edges which contains the `InfraRef` and cursor to aid in pagination. """ - distinctFrom: Boolean + edges: [InfraRefEdge]! - """Equal to the specified value, treating null like an ordinary value.""" - notDistinctFrom: Boolean + """Information to aid in pagination.""" + pageInfo: PageInfo! - """Included in the specified list.""" - in: [Boolean!] + """The count of *all* `InfraRef` you could get from the connection.""" + totalCount: Int! +} - """Not included in the specified list.""" - notIn: [Boolean!] +"""Branch heads — mutable pointers into the commit chain""" +type InfraRef { + """Unique ref identifier""" + id: UUID! - """Less than the specified value.""" - lessThan: Boolean + """Ref name (e.g. HEAD, main)""" + name: String! - """Less than or equal to the specified value.""" - lessThanOrEqualTo: Boolean + """Opaque store partition key for the global tier""" + scopeId: UUID! - """Greater than the specified value.""" - greaterThan: Boolean + """Store this ref belongs to""" + storeId: UUID! - """Greater than or equal to the specified value.""" - greaterThanOrEqualTo: Boolean + """Commit this ref points to""" + commitId: UUID +} + +"""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 Int fields. All fields are combined with a logical ‘and.’ +A filter to be used against `InfraRef` object types. All fields are combined with a logical ‘and.’ """ -input IntFilter { +input InfraRefFilter { + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `name` field.""" + name: StringFilter + + """Filter by the object’s `scopeId` field.""" + scopeId: UUIDFilter + + """Filter by the object’s `storeId` field.""" + storeId: UUIDFilter + + """Filter by the object’s `commitId` field.""" + commitId: UUIDFilter + + """Checks for all expressions in this list.""" + and: [InfraRefFilter!] + + """Checks for any expressions in this list.""" + or: [InfraRefFilter!] + + """Negates the expression.""" + not: InfraRefFilter +} + +""" +A filter to be used against UUID fields. All fields are combined with a logical ‘and.’ +""" +input UUIDFilter { """ Is null (if `true` is specified) or is not null (if `false` is specified). """ isNull: Boolean """Equal to the specified value.""" - equalTo: Int + equalTo: UUID """Not equal to the specified value.""" - notEqualTo: Int + notEqualTo: UUID """ Not equal to the specified value, treating null like an ordinary value. """ - distinctFrom: Int + distinctFrom: UUID """Equal to the specified value, treating null like an ordinary value.""" - notDistinctFrom: Int + notDistinctFrom: UUID """Included in the specified list.""" - in: [Int!] + in: [UUID!] """Not included in the specified list.""" - notIn: [Int!] + notIn: [UUID!] """Less than the specified value.""" - lessThan: Int + lessThan: UUID """Less than or equal to the specified value.""" - lessThanOrEqualTo: Int + lessThanOrEqualTo: UUID """Greater than the specified value.""" - greaterThan: Int + greaterThan: UUID """Greater than or equal to the specified value.""" - greaterThanOrEqualTo: Int + greaterThanOrEqualTo: UUID } """ -A filter to be used against String List fields. All fields are combined with a logical ‘and.’ +A filter to be used against String fields. All fields are combined with a logical ‘and.’ """ -input StringListFilter { +input StringFilter { """ Is null (if `true` is specified) or is not null (if `false` is specified). """ isNull: Boolean """Equal to the specified value.""" - equalTo: [String] + equalTo: String """Not equal to the specified value.""" - notEqualTo: [String] + notEqualTo: String """ Not equal to the specified value, treating null like an ordinary value. """ - distinctFrom: [String] + distinctFrom: String """Equal to the specified value, treating null like an ordinary value.""" - notDistinctFrom: [String] + notDistinctFrom: String - """Less than the specified value.""" - lessThan: [String] + """Included in the specified list.""" + in: [String!] + + """Not included in the specified list.""" + notIn: [String!] + + """Less than the specified value.""" + lessThan: String """Less than or equal to the specified value.""" - lessThanOrEqualTo: [String] + lessThanOrEqualTo: String """Greater than the specified value.""" - greaterThan: [String] + greaterThan: String """Greater than or equal to the specified value.""" - greaterThanOrEqualTo: [String] - - """Contains the specified list of values.""" - contains: [String] - - """Contained by the specified list of values.""" - containedBy: [String] - - """Overlaps the specified list of values.""" - overlaps: [String] + greaterThanOrEqualTo: String - """Any array item is equal to the specified value.""" - anyEqualTo: String + """Contains the specified string (case-sensitive).""" + includes: String - """Any array item is not equal to the specified value.""" - anyNotEqualTo: String + """Does not contain the specified string (case-sensitive).""" + notIncludes: String - """Any array item is less than the specified value.""" - anyLessThan: String + """Contains the specified string (case-insensitive).""" + includesInsensitive: String - """Any array item is less than or equal to the specified value.""" - anyLessThanOrEqualTo: String + """Does not contain the specified string (case-insensitive).""" + notIncludesInsensitive: String - """Any array item is greater than the specified value.""" - anyGreaterThan: String + """Starts with the specified string (case-sensitive).""" + startsWith: String - """Any array item is greater than or equal to the specified value.""" - anyGreaterThanOrEqualTo: String -} + """Does not start with the specified string (case-sensitive).""" + notStartsWith: String -""" -A filter to be used against many `FunctionApiBinding` object types. All fields are combined with a logical ‘and.’ -""" -input FunctionDefinitionToManyFunctionApiBindingFilter { - """Filters to entities where at least one related entity matches.""" - some: FunctionApiBindingFilter + """Starts with the specified string (case-insensitive).""" + startsWithInsensitive: String - """Filters to entities where every related entity matches.""" - every: FunctionApiBindingFilter + """Does not start with the specified string (case-insensitive).""" + notStartsWithInsensitive: String - """Filters to entities where no related entity matches.""" - none: FunctionApiBindingFilter -} + """Ends with the specified string (case-sensitive).""" + endsWith: String -""" -A filter to be used against many `FunctionDeployment` object types. All fields are combined with a logical ‘and.’ -""" -input FunctionDefinitionToManyFunctionDeploymentFilter { - """Filters to entities where at least one related entity matches.""" - some: FunctionDeploymentFilter + """Does not end with the specified string (case-sensitive).""" + notEndsWith: String - """Filters to entities where every related entity matches.""" - every: FunctionDeploymentFilter + """Ends with the specified string (case-insensitive).""" + endsWithInsensitive: String - """Filters to entities where no related entity matches.""" - none: FunctionDeploymentFilter -} + """Does not end with the specified string (case-insensitive).""" + notEndsWithInsensitive: String -""" -A filter to be used against `FunctionDeployment` object types. All fields are combined with a logical ‘and.’ -""" -input FunctionDeploymentFilter { - """Filter by the object’s `id` field.""" - id: UUIDFilter + """ + 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 - """Filter by the object’s `createdAt` field.""" - createdAt: DatetimeFilter + """ + Does not match the specified pattern (case-sensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. + """ + notLike: String - """Filter by the object’s `updatedAt` field.""" - updatedAt: DatetimeFilter + """ + 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 - """Filter by the object’s `functionDefinitionId` field.""" - functionDefinitionId: UUIDFilter + """ + 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 - """Filter by the object’s `namespaceId` field.""" - namespaceId: UUIDFilter + """Equal to the specified value (case-insensitive).""" + equalToInsensitive: String - """Filter by the object’s `status` field.""" - status: StringFilter + """Not equal to the specified value (case-insensitive).""" + notEqualToInsensitive: String - """Filter by the object’s `serviceUrl` field.""" - serviceUrl: StringFilter + """ + Not equal to the specified value, treating null like an ordinary value (case-insensitive). + """ + distinctFromInsensitive: String - """Filter by the object’s `serviceName` field.""" - serviceName: StringFilter + """ + Equal to the specified value, treating null like an ordinary value (case-insensitive). + """ + notDistinctFromInsensitive: String - """Filter by the object’s `revision` field.""" - revision: IntFilter + """Included in the specified list (case-insensitive).""" + inInsensitive: [String!] - """Filter by the object’s `image` field.""" - image: StringFilter + """Not included in the specified list (case-insensitive).""" + notInInsensitive: [String!] - """Filter by the object’s `concurrency` field.""" - concurrency: IntFilter + """Less than the specified value (case-insensitive).""" + lessThanInsensitive: String - """Filter by the object’s `scaleMin` field.""" - scaleMin: IntFilter + """Less than or equal to the specified value (case-insensitive).""" + lessThanOrEqualToInsensitive: String - """Filter by the object’s `scaleMax` field.""" - scaleMax: IntFilter + """Greater than the specified value (case-insensitive).""" + greaterThanInsensitive: String - """Filter by the object’s `timeoutSeconds` field.""" - timeoutSeconds: IntFilter + """Greater than or equal to the specified value (case-insensitive).""" + greaterThanOrEqualToInsensitive: String +} - """Filter by the object’s `resources` field.""" - resources: JSONFilter +"""Methods to use when ordering `InfraRef`.""" +enum InfraRefOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + NAME_ASC + NAME_DESC + SCOPE_ID_ASC + SCOPE_ID_DESC + STORE_ID_ASC + STORE_ID_DESC + COMMIT_ID_ASC + COMMIT_ID_DESC +} - """Filter by the object’s `lastError` field.""" - lastError: StringFilter +"""A connection to a list of `InfraStore` values.""" +type InfraStoreConnection { + """A list of `InfraStore` objects.""" + nodes: [InfraStore]! - """Filter by the object’s `lastErrorAt` field.""" - lastErrorAt: DatetimeFilter + """ + A list of edges which contains the `InfraStore` and cursor to aid in pagination. + """ + edges: [InfraStoreEdge]! - """Filter by the object’s `errorCount` field.""" - errorCount: IntFilter + """Information to aid in pagination.""" + pageInfo: PageInfo! - """Filter by the object’s `labels` field.""" - labels: JSONFilter + """The count of *all* `InfraStore` you could get from the connection.""" + totalCount: Int! +} - """Filter by the object’s `annotations` field.""" - annotations: JSONFilter +""" +Named stores — one per version-controlled tree (e.g. one graph, one definition set) +""" +type InfraStore { + """Unique store identifier""" + id: UUID! - """Filter by the object’s `databaseId` field.""" - databaseId: UUIDFilter + """Human-readable store name""" + name: String! - """Checks for all expressions in this list.""" - and: [FunctionDeploymentFilter!] + """Opaque store partition key for the global tier""" + scopeId: UUID! - """Checks for any expressions in this list.""" - or: [FunctionDeploymentFilter!] + """Current root object hash of this store""" + hash: UUID - """Negates the expression.""" - not: FunctionDeploymentFilter + """Timestamp of store creation""" + createdAt: Datetime +} - """Filter by the object’s `functionDefinition` relation.""" - functionDefinition: FunctionDefinitionFilter +"""A `InfraStore` edge in the connection.""" +type InfraStoreEdge { + """A cursor for use in pagination.""" + cursor: Cursor - """Filter by the object’s `namespace` relation.""" - namespace: PlatformNamespaceFilter + """The `InfraStore` at the end of the edge.""" + node: InfraStore } """ -A filter to be used against `PlatformNamespace` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `InfraStore` object types. All fields are combined with a logical ‘and.’ """ -input PlatformNamespaceFilter { +input InfraStoreFilter { """Filter by the object’s `id` field.""" id: UUIDFilter - """Filter by the object’s `createdAt` field.""" - createdAt: DatetimeFilter - - """Filter by the object’s `updatedAt` field.""" - updatedAt: DatetimeFilter - """Filter by the object’s `name` field.""" name: StringFilter - """Filter by the object’s `namespaceName` field.""" - namespaceName: StringFilter - - """Filter by the object’s `description` field.""" - description: StringFilter - - """Filter by the object’s `isActive` field.""" - isActive: BooleanFilter - - """Filter by the object’s `labels` field.""" - labels: JSONFilter - - """Filter by the object’s `annotations` field.""" - annotations: JSONFilter - - """Filter by the object’s `databaseId` field.""" - databaseId: UUIDFilter - - """Filter by the object’s `sourceDatabaseId` field.""" - sourceDatabaseId: UUIDFilter + """Filter by the object’s `scopeId` field.""" + scopeId: UUIDFilter - """Filter by the object’s `sourceScope` field.""" - sourceScope: StringFilter + """Filter by the object’s `hash` field.""" + hash: UUIDFilter - """Filter by the object’s `isManaged` field.""" - isManaged: BooleanFilter + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter """Checks for all expressions in this list.""" - and: [PlatformNamespaceFilter!] + and: [InfraStoreFilter!] """Checks for any expressions in this list.""" - or: [PlatformNamespaceFilter!] + or: [InfraStoreFilter!] """Negates the expression.""" - not: PlatformNamespaceFilter - - """Filter by the object’s `functionDeploymentsByNamespaceId` relation.""" - functionDeploymentsByNamespaceId: PlatformNamespaceToManyFunctionDeploymentFilter - - """`functionDeploymentsByNamespaceId` exist.""" - functionDeploymentsByNamespaceIdExist: Boolean - - """Filter by the object’s `resourcesByNamespaceId` relation.""" - resourcesByNamespaceId: PlatformNamespaceToManyResourceFilter - - """`resourcesByNamespaceId` exist.""" - resourcesByNamespaceIdExist: Boolean + not: InfraStoreFilter } """ -A filter to be used against many `FunctionDeployment` object types. 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 PlatformNamespaceToManyFunctionDeploymentFilter { - """Filters to entities where at least one related entity matches.""" - some: FunctionDeploymentFilter +input DatetimeFilter { + """ + Is null (if `true` is specified) or is not null (if `false` is specified). + """ + isNull: Boolean - """Filters to entities where every related entity matches.""" - every: FunctionDeploymentFilter - - """Filters to entities where no related entity matches.""" - none: FunctionDeploymentFilter -} - -""" -A filter to be used against many `Resource` object types. All fields are combined with a logical ‘and.’ -""" -input PlatformNamespaceToManyResourceFilter { - """Filters to entities where at least one related entity matches.""" - some: ResourceFilter - - """Filters to entities where every related entity matches.""" - every: ResourceFilter - - """Filters to entities where no related entity matches.""" - none: ResourceFilter -} - -""" -A filter to be used against `Resource` object types. All fields are combined with a logical ‘and.’ -""" -input ResourceFilter { - """Filter by the object’s `id` field.""" - id: UUIDFilter - - """Filter by the object’s `createdAt` field.""" - createdAt: DatetimeFilter - - """Filter by the object’s `updatedAt` field.""" - updatedAt: DatetimeFilter - - """Filter by the object’s `createdBy` field.""" - createdBy: UUIDFilter - - """Filter by the object’s `updatedBy` field.""" - updatedBy: UUIDFilter - - """Filter by the object’s `namespaceId` field.""" - namespaceId: UUIDFilter - - """Filter by the object’s `kind` field.""" - kind: StringFilter - - """Filter by the object’s `name` field.""" - name: StringFilter - - """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 + """Equal to the specified value.""" + equalTo: Datetime - """Filter by the object’s `lastError` field.""" - lastError: StringFilter + """Not equal to the specified value.""" + notEqualTo: Datetime - """Filter by the object’s `errorCount` field.""" - errorCount: IntFilter + """ + Not equal to the specified value, treating null like an ordinary value. + """ + distinctFrom: Datetime - """Filter by the object’s `labels` field.""" - labels: JSONFilter + """Equal to the specified value, treating null like an ordinary value.""" + notDistinctFrom: Datetime - """Filter by the object’s `annotations` field.""" - annotations: JSONFilter + """Included in the specified list.""" + in: [Datetime!] - """Filter by the object’s `databaseId` field.""" - databaseId: UUIDFilter + """Not included in the specified list.""" + notIn: [Datetime!] - """Checks for all expressions in this list.""" - and: [ResourceFilter!] + """Less than the specified value.""" + lessThan: Datetime - """Checks for any expressions in this list.""" - or: [ResourceFilter!] + """Less than or equal to the specified value.""" + lessThanOrEqualTo: Datetime - """Negates the expression.""" - not: ResourceFilter + """Greater than the specified value.""" + greaterThan: Datetime - """Filter by the object’s `namespace` relation.""" - namespace: PlatformNamespaceFilter + """Greater than or equal to the specified value.""" + greaterThanOrEqualTo: Datetime } -"""Methods to use when ordering `FunctionApiBinding`.""" -enum FunctionApiBindingOrderBy { +"""Methods to use when ordering `InfraStore`.""" +enum InfraStoreOrderBy { NATURAL PRIMARY_KEY_ASC PRIMARY_KEY_DESC ID_ASC ID_DESC - FUNCTION_DEFINITION_ID_ASC - FUNCTION_DEFINITION_ID_DESC - API_ID_ASC - API_ID_DESC - ALIAS_ASC - ALIAS_DESC - CONFIG_ASC - CONFIG_DESC + NAME_ASC + NAME_DESC + SCOPE_ID_ASC + SCOPE_ID_DESC + HASH_ASC + HASH_DESC + CREATED_AT_ASC + CREATED_AT_DESC } -"""A connection to a list of `FunctionDeployment` values.""" -type FunctionDeploymentConnection { - """A list of `FunctionDeployment` objects.""" - nodes: [FunctionDeployment]! +"""A connection to a list of `FunctionApiBinding` values.""" +type FunctionApiBindingConnection { + """A list of `FunctionApiBinding` objects.""" + nodes: [FunctionApiBinding]! """ - A list of edges which contains the `FunctionDeployment` and cursor to aid in pagination. + A list of edges which contains the `FunctionApiBinding` and cursor to aid in pagination. """ - edges: [FunctionDeploymentEdge]! + edges: [FunctionApiBindingEdge]! """Information to aid in pagination.""" pageInfo: PageInfo! """ - The count of *all* `FunctionDeployment` you could get from the connection. + The count of *all* `FunctionApiBinding` you could get from the connection. """ totalCount: Int! } """ -Function deployment bindings — ties a function definition to a namespace for Knative provisioning and routing +Join table binding function definitions to API endpoints with per-binding alias and config """ -type FunctionDeployment { +type FunctionApiBinding { id: UUID! - createdAt: Datetime - updatedAt: Datetime - """Function definition being deployed to this namespace""" + """Function definition this binding belongs to""" functionDefinitionId: UUID! - """Target namespace for this deployment (maps to a K8s namespace)""" - namespaceId: UUID! + """API endpoint this function is bound to""" + apiId: UUID! - """ - Deployment lifecycle status: pending, provisioning, active, failed, scaled_to_zero, deactivated - """ - status: String! + """Binding alias (e.g. default, staging, production)""" + alias: String! + + """Per-binding configuration (overrides, routing rules, etc.)""" + config: JSON! """ - Knative service URL (http://{service-name}.{namespace}.svc.cluster.local) — populated after provisioning + Reads a single `FunctionDefinition` that is related to this `FunctionApiBinding`. """ - serviceUrl: String - - """Knative service name — derived from task_identifier at provision time""" - serviceName: String - - """Deployment revision number (incremented on each redeployment)""" - revision: Int! + functionDefinition: FunctionDefinition +} - """Container image override (NULL = inherit from function definition)""" - image: String +""" +Function definitions — registered cloud functions with routing, queue, and retry configuration +""" +type FunctionDefinition { + id: UUID! + createdAt: Datetime + updatedAt: Datetime - """Max concurrent requests per pod (NULL = inherit from definition)""" - concurrency: Int + """Function grouping scope (e.g. email, embed, chunk, custom)""" + scope: String! """ - Minimum replica count (NULL = inherit from definition or Knative default) + Function name within scope (e.g. send_verification_link, process_file_embedding) """ - scaleMin: Int + name: String! """ - Maximum replica count (NULL = inherit from definition or Knative default) + Computed routing slug: scope:name (used by Knative job worker for dispatch) """ - scaleMax: Int + taskIdentifier: String! - """Request timeout override in seconds (NULL = inherit from definition)""" - timeoutSeconds: Int + """Human-readable description of what this function does""" + description: String """ - K8s resource spec override: {"requests":{"cpu":"100m","memory":"128Mi"},"limits":{...}} + Whether this function definition is published to the public catalog for direct authenticated invocation. Default false = internal-only via add_job() """ - resources: JSON + isPublished: Boolean! - """Most recent provisioning or runtime error message""" - lastError: String + """ + Non-public invocation channels this function may be exposed through (api, graph). Internal job dispatch is implicit and never listed. Default [] = job worker only. + """ + accessChannels: [String]! - """Timestamp of the most recent error""" - lastErrorAt: Datetime + """ + Timestamp when this function was published. NULL means immediately published when is_published is true; future timestamps delay public visibility + """ + publishedAt: Datetime - """Cumulative error count for this deployment""" - errorCount: Int! + """Maximum retry attempts for the underlying job""" + maxAttempts: Int! - """Key/value pairs for selecting and filtering deployments""" - labels: JSON! + """Job priority (lower = higher priority)""" + priority: Int! - """Freeform metadata for tooling and operational notes""" - annotations: JSON! + """Job queue name for serialization (e.g. email, ai, default)""" + queueName: String! - """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), or sql (generic SQL dispatch via a trusted direct target or module-resolved function names) + """ + runtime: String! """ - Reads a single `FunctionDefinition` that is related to this `FunctionDeployment`. + Schema of the SQL function to invoke when runtime=sql (direct mode). NULL for module mode and other runtimes. """ - functionDefinition: FunctionDefinition + targetSchema: String """ - Reads a single `PlatformNamespace` that is related to this `FunctionDeployment`. + Name of the SQL function to invoke when runtime=sql (direct mode). NULL for module mode and other runtimes. """ - namespace: PlatformNamespace -} + targetFunction: String -""" -Logical namespace containers for grouping secrets, config, functions, and other resources -""" -type PlatformNamespace { - id: UUID! - createdAt: Datetime - updatedAt: Datetime + """ + 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 - """Human-readable namespace name (e.g. default, production, oauth)""" - name: 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 """ - Globally unique computed namespace identifier via inflection.underscore + Ordered bind-parameter mapping for runtime=sql: [{name, type}]. payload[name] is bound as $n::type. """ - namespaceName: String! + payloadArgs: JSON! - """Optional human-readable description of this namespace""" - description: String + """ + Docker image reference (e.g. ghcr.io/constructive-io/email-send-fn:latest). Required when runtime=http. NULL for inline functions. + """ + image: String - """Whether this namespace is active (soft-disable for filtering)""" - isActive: Boolean! + """ + Knative containerConcurrency — max concurrent requests per pod instance + """ + concurrency: Int! - """Key/value pairs for selecting and filtering namespaces""" - labels: JSON! + """Minimum pod count for Knative autoscaling (minScale)""" + scaleMin: Int! - """Freeform metadata for tooling and operational notes""" - annotations: JSON! + """Maximum pod count for Knative autoscaling (maxScale)""" + scaleMax: Int! - """Database that owns this resource (database-scoped isolation)""" - databaseId: UUID! + """Knative request timeout in seconds""" + timeoutSeconds: Int! """ - Database that created this namespace (NULL for platform-native namespaces) + Container resource requests and limits: {requests: {memory, cpu}, limits: {memory, cpu}} """ - sourceDatabaseId: UUID + resources: JSON! """ - Origin scope: platform, org, app — indicates where this namespace was created + Whether this function is a built-in platform function (synced from platform) vs user-created """ - sourceScope: String + isBuiltIn: Boolean! """ - true = created by a child scope mirror trigger, false = platform-native + Embedded secret requirements: array of (name, required, provider) tuples. provider is the integration slug this requirement belongs to, if any. """ - isManaged: Boolean! + requiredSecrets: [ResourceRequirement]! - """Reads and enables pagination through a set of `FunctionDeployment`.""" - functionDeploymentsByNamespaceId( - """Only read the first `n` values of the set.""" - first: Int + """ + Embedded config requirements: array of (name, required, provider) tuples. provider is the integration slug this requirement belongs to, if any. + """ + requiredConfigs: [ResourceRequirement]! - """Only read the last `n` values of the set.""" - last: Int + """ + 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]! - """ - Skip the first `n` values from our `after` cursor, an alternative to cursor - based pagination. May not be used with `last`. - """ - offset: Int + """ + Bucket keys this function needs (e.g. uploads, exports). Empty = no bucket requirements. + """ + requiredBuckets: [String]! - """Read all values in the set before (above) this cursor.""" - before: Cursor + """ + Inference model whitelist (e.g. gpt-4o, claude-3). Empty = no model requirements. + """ + requiredModels: [String]! - """Read all values in the set after (below) this cursor.""" - after: Cursor + """ + Data input ports: [{name, type, description?, optional?, multi?, schema?}] + """ + inputs: JSON! - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: FunctionDeploymentFilter + """ + Data output ports: [{name, type, description?, optional?, multi?, schema?}] + """ + outputs: JSON! - """The method to use when ordering `FunctionDeployment`.""" - orderBy: [FunctionDeploymentOrderBy!] = [PRIMARY_KEY_ASC] - ): FunctionDeploymentConnection! + """ + Configuration properties: [{name, type, default?, description?, required?, schema?}] + """ + props: JSON! - """Reads and enables pagination through a set of `Resource`.""" - resourcesByNamespaceId( + """ + Whether this function has side effects and cannot be cached or memoized + """ + volatile: Boolean! + + """Icon identifier for UI palette rendering (e.g. mail, database, code)""" + icon: String + + """Palette grouping category (e.g. email, data, ai, custom)""" + category: String + + """Database that owns this resource (database-scoped isolation)""" + databaseId: UUID! + + """Reads and enables pagination through a set of `FunctionApiBinding`.""" + functionApiBindings( """Only read the first `n` values of the set.""" first: Int @@ -2008,3958 +2072,11928 @@ type PlatformNamespace { """ A filter to be used in determining which values should be returned by the collection. """ - where: ResourceFilter + where: FunctionApiBindingFilter - """The method to use when ordering `Resource`.""" - orderBy: [ResourceOrderBy!] = [PRIMARY_KEY_ASC] - ): ResourceConnection! + """The method to use when ordering `FunctionApiBinding`.""" + orderBy: [FunctionApiBindingOrderBy!] = [PRIMARY_KEY_ASC] + ): FunctionApiBindingConnection! } -"""Methods to use when ordering `FunctionDeployment`.""" -enum FunctionDeploymentOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - CREATED_AT_ASC - CREATED_AT_DESC - UPDATED_AT_ASC - UPDATED_AT_DESC - FUNCTION_DEFINITION_ID_ASC - FUNCTION_DEFINITION_ID_DESC - NAMESPACE_ID_ASC - NAMESPACE_ID_DESC - STATUS_ASC - STATUS_DESC - SERVICE_URL_ASC - SERVICE_URL_DESC - SERVICE_NAME_ASC - SERVICE_NAME_DESC - REVISION_ASC - REVISION_DESC - IMAGE_ASC - IMAGE_DESC - CONCURRENCY_ASC - CONCURRENCY_DESC - SCALE_MIN_ASC - SCALE_MIN_DESC - SCALE_MAX_ASC - SCALE_MAX_DESC - TIMEOUT_SECONDS_ASC - TIMEOUT_SECONDS_DESC - RESOURCES_ASC - RESOURCES_DESC - LAST_ERROR_ASC - LAST_ERROR_DESC - LAST_ERROR_AT_ASC - LAST_ERROR_AT_DESC - ERROR_COUNT_ASC - ERROR_COUNT_DESC - LABELS_ASC - LABELS_DESC - ANNOTATIONS_ASC - ANNOTATIONS_DESC - DATABASE_ID_ASC - DATABASE_ID_DESC +type ResourceRequirement { + name: String + required: Boolean + provider: String } -"""A connection to a list of `Resource` values.""" -type ResourceConnection { - """A list of `Resource` objects.""" - nodes: [Resource]! +""" +A filter to be used against `FunctionApiBinding` object types. All fields are combined with a logical ‘and.’ +""" +input FunctionApiBindingFilter { + """Filter by the object’s `id` field.""" + id: UUIDFilter - """ - A list of edges which contains the `Resource` and cursor to aid in pagination. - """ - edges: [ResourceEdge]! + """Filter by the object’s `functionDefinitionId` field.""" + functionDefinitionId: UUIDFilter - """Information to aid in pagination.""" - pageInfo: PageInfo! + """Filter by the object’s `apiId` field.""" + apiId: UUIDFilter - """The count of *all* `Resource` you could get from the connection.""" - totalCount: Int! + """Filter by the object’s `alias` field.""" + alias: StringFilter + + """Filter by the object’s `config` field.""" + config: JSONFilter + + """Checks for all expressions in this list.""" + and: [FunctionApiBindingFilter!] + + """Checks for any expressions in this list.""" + or: [FunctionApiBindingFilter!] + + """Negates the expression.""" + not: FunctionApiBindingFilter + + """Filter by the object’s `functionDefinition` relation.""" + functionDefinition: FunctionDefinitionFilter } """ -Unified K8s resource declarations — stores desired state (spec) and observed state (status) for all resource kinds within a namespace +A filter to be used against JSON fields. All fields are combined with a logical ‘and.’ """ -type Resource { - id: UUID! - createdAt: Datetime - updatedAt: Datetime - createdBy: UUID - updatedBy: UUID - +input JSONFilter { """ - Namespace this resource belongs to (security boundary, maps to K8s namespace) + Is null (if `true` is specified) or is not null (if `false` is specified). """ - namespaceId: UUID! - - """Resource kind: Deployment, StatefulSet, Service, Ingress, Certificate""" - kind: String! + isNull: Boolean - """Human-readable resource name""" - name: String! + """Equal to the specified value.""" + equalTo: JSON - """URL-safe identifier, unique within (namespace_id, kind)""" - slug: String! + """Not equal to the specified value.""" + notEqualTo: JSON """ - Desired state — kind-specific configuration (image, ports, resources, etc.). Opaque to DB; validated by K8s. + Not equal to the specified value, treating null like an ordinary value. """ - spec: JSON! + distinctFrom: JSON - """ - Resource lifecycle status: pending, provisioning, active, failed, draining, deleting - """ - status: String! + """Equal to the specified value, treating null like an ordinary value.""" + notDistinctFrom: JSON - """ - Observed state from K8s — populated by handlers after reconciliation (service_url, clone_url, replicas, etc.) - """ - statusObserved: JSON + """Included in the specified list.""" + in: [JSON!] - """Most recent provisioning or runtime error message""" - lastError: String + """Not included in the specified list.""" + notIn: [JSON!] - """Cumulative error count for this resource""" - errorCount: Int! + """Less than the specified value.""" + lessThan: JSON - """Key/value pairs for selecting and filtering resources""" - labels: JSON! + """Less than or equal to the specified value.""" + lessThanOrEqualTo: JSON - """Freeform metadata for tooling and operational notes""" - annotations: JSON! + """Greater than the specified value.""" + greaterThan: JSON - """Database that owns this resource (database-scoped isolation)""" - databaseId: UUID! + """Greater than or equal to the specified value.""" + greaterThanOrEqualTo: JSON - """Reads a single `PlatformNamespace` that is related to this `Resource`.""" - namespace: PlatformNamespace -} + """Contains the specified JSON.""" + contains: JSON -"""A `Resource` edge in the connection.""" -type ResourceEdge { - """A cursor for use in pagination.""" - cursor: Cursor + """Contains the specified key.""" + containsKey: String - """The `Resource` at the end of the edge.""" - node: Resource + """Contains all of the specified keys.""" + containsAllKeys: [String!] + + """Contains any of the specified keys.""" + containsAnyKeys: [String!] + + """Contained by the specified JSON.""" + containedBy: JSON } -"""Methods to use when ordering `Resource`.""" -enum ResourceOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - CREATED_AT_ASC - CREATED_AT_DESC - UPDATED_AT_ASC - UPDATED_AT_DESC - CREATED_BY_ASC - CREATED_BY_DESC - UPDATED_BY_ASC - UPDATED_BY_DESC - NAMESPACE_ID_ASC - NAMESPACE_ID_DESC - KIND_ASC - KIND_DESC - NAME_ASC - NAME_DESC - SLUG_ASC - SLUG_DESC - SPEC_ASC - SPEC_DESC - STATUS_ASC - STATUS_DESC - STATUS_OBSERVED_ASC - STATUS_OBSERVED_DESC - LAST_ERROR_ASC - LAST_ERROR_DESC - ERROR_COUNT_ASC - ERROR_COUNT_DESC - LABELS_ASC - LABELS_DESC - ANNOTATIONS_ASC - ANNOTATIONS_DESC - DATABASE_ID_ASC - DATABASE_ID_DESC -} - -"""A `FunctionDeployment` edge in the connection.""" -type FunctionDeploymentEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `FunctionDeployment` at the end of the edge.""" - node: FunctionDeployment -} - -"""A `FunctionApiBinding` edge in the connection.""" -type FunctionApiBindingEdge { - """A cursor for use in pagination.""" - cursor: Cursor +""" +A filter to be used against `FunctionDefinition` object types. All fields are combined with a logical ‘and.’ +""" +input FunctionDefinitionFilter { + """Filter by the object’s `id` field.""" + id: UUIDFilter - """The `FunctionApiBinding` at the end of the edge.""" - node: FunctionApiBinding -} + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter -"""A connection to a list of `FunctionGraphRef` values.""" -type FunctionGraphRefConnection { - """A list of `FunctionGraphRef` objects.""" - nodes: [FunctionGraphRef]! + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter - """ - A list of edges which contains the `FunctionGraphRef` and cursor to aid in pagination. - """ - edges: [FunctionGraphRefEdge]! + """Filter by the object’s `scope` field.""" + scope: StringFilter - """Information to aid in pagination.""" - pageInfo: PageInfo! + """Filter by the object’s `name` field.""" + name: StringFilter - """ - The count of *all* `FunctionGraphRef` you could get from the connection. - """ - totalCount: Int! -} + """Filter by the object’s `taskIdentifier` field.""" + taskIdentifier: StringFilter -"""Branch heads — mutable pointers into the commit chain""" -type FunctionGraphRef { - """Unique ref identifier""" - id: UUID! + """Filter by the object’s `description` field.""" + description: StringFilter - """Ref name (e.g. HEAD, main)""" - name: String! + """Filter by the object’s `isPublished` field.""" + isPublished: BooleanFilter - """Database scope for multi-tenant isolation""" - databaseId: UUID! + """Filter by the object’s `accessChannels` field.""" + accessChannels: StringListFilter - """Store this ref belongs to""" - storeId: UUID! + """Filter by the object’s `publishedAt` field.""" + publishedAt: DatetimeFilter - """Commit this ref points to""" - commitId: UUID -} + """Filter by the object’s `maxAttempts` field.""" + maxAttempts: IntFilter -"""A `FunctionGraphRef` edge in the connection.""" -type FunctionGraphRefEdge { - """A cursor for use in pagination.""" - cursor: Cursor + """Filter by the object’s `priority` field.""" + priority: IntFilter - """The `FunctionGraphRef` at the end of the edge.""" - node: FunctionGraphRef -} + """Filter by the object’s `queueName` field.""" + queueName: StringFilter -""" -A filter to be used against `FunctionGraphRef` object types. All fields are combined with a logical ‘and.’ -""" -input FunctionGraphRefFilter { - """Filter by the object’s `id` field.""" - id: UUIDFilter + """Filter by the object’s `runtime` field.""" + runtime: StringFilter - """Filter by the object’s `name` field.""" - name: StringFilter + """Filter by the object’s `targetSchema` field.""" + targetSchema: StringFilter - """Filter by the object’s `databaseId` field.""" - databaseId: UUIDFilter + """Filter by the object’s `targetFunction` field.""" + targetFunction: StringFilter - """Filter by the object’s `storeId` field.""" - storeId: UUIDFilter + """Filter by the object’s `moduleTable` field.""" + moduleTable: StringFilter - """Filter by the object’s `commitId` field.""" - commitId: UUIDFilter + """Filter by the object’s `functionColumns` field.""" + functionColumns: JSONFilter - """Checks for all expressions in this list.""" - and: [FunctionGraphRefFilter!] + """Filter by the object’s `payloadArgs` field.""" + payloadArgs: JSONFilter - """Checks for any expressions in this list.""" - or: [FunctionGraphRefFilter!] + """Filter by the object’s `image` field.""" + image: StringFilter - """Negates the expression.""" - not: FunctionGraphRefFilter -} + """Filter by the object’s `concurrency` field.""" + concurrency: IntFilter -"""Methods to use when ordering `FunctionGraphRef`.""" -enum FunctionGraphRefOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - NAME_ASC - NAME_DESC - DATABASE_ID_ASC - DATABASE_ID_DESC - STORE_ID_ASC - STORE_ID_DESC - COMMIT_ID_ASC - COMMIT_ID_DESC -} + """Filter by the object’s `scaleMin` field.""" + scaleMin: IntFilter -"""A connection to a list of `FunctionGraphStore` values.""" -type FunctionGraphStoreConnection { - """A list of `FunctionGraphStore` objects.""" - nodes: [FunctionGraphStore]! + """Filter by the object’s `scaleMax` field.""" + scaleMax: IntFilter - """ - A list of edges which contains the `FunctionGraphStore` and cursor to aid in pagination. - """ - edges: [FunctionGraphStoreEdge]! + """Filter by the object’s `timeoutSeconds` field.""" + timeoutSeconds: IntFilter - """Information to aid in pagination.""" - pageInfo: PageInfo! + """Filter by the object’s `resources` field.""" + resources: JSONFilter - """ - The count of *all* `FunctionGraphStore` you could get from the connection. - """ - totalCount: Int! -} + """Filter by the object’s `isBuiltIn` field.""" + isBuiltIn: BooleanFilter -""" -Named stores — one per version-controlled tree (e.g. one graph, one definition set) -""" -type FunctionGraphStore { - """Unique store identifier""" - id: UUID! + """Filter by the object’s `integrations` field.""" + integrations: StringListFilter - """Human-readable store name""" - name: String! + """Filter by the object’s `requiredBuckets` field.""" + requiredBuckets: StringListFilter - """Database scope for multi-tenant isolation""" - databaseId: UUID! + """Filter by the object’s `requiredModels` field.""" + requiredModels: StringListFilter - """Current root object hash of this store""" - hash: UUID + """Filter by the object’s `inputs` field.""" + inputs: JSONFilter - """Timestamp of store creation""" - createdAt: Datetime -} + """Filter by the object’s `outputs` field.""" + outputs: JSONFilter -"""A `FunctionGraphStore` edge in the connection.""" -type FunctionGraphStoreEdge { - """A cursor for use in pagination.""" - cursor: Cursor + """Filter by the object’s `props` field.""" + props: JSONFilter - """The `FunctionGraphStore` at the end of the edge.""" - node: FunctionGraphStore -} + """Filter by the object’s `volatile` field.""" + volatile: BooleanFilter -""" -A filter to be used against `FunctionGraphStore` object types. All fields are combined with a logical ‘and.’ -""" -input FunctionGraphStoreFilter { - """Filter by the object’s `id` field.""" - id: UUIDFilter + """Filter by the object’s `icon` field.""" + icon: StringFilter - """Filter by the object’s `name` field.""" - name: StringFilter + """Filter by the object’s `category` field.""" + category: StringFilter """Filter by the object’s `databaseId` field.""" databaseId: UUIDFilter - """Filter by the object’s `hash` field.""" - hash: UUIDFilter - - """Filter by the object’s `createdAt` field.""" - createdAt: DatetimeFilter - """Checks for all expressions in this list.""" - and: [FunctionGraphStoreFilter!] + and: [FunctionDefinitionFilter!] """Checks for any expressions in this list.""" - or: [FunctionGraphStoreFilter!] + or: [FunctionDefinitionFilter!] """Negates the expression.""" - not: FunctionGraphStoreFilter -} + not: FunctionDefinitionFilter -"""Methods to use when ordering `FunctionGraphStore`.""" -enum FunctionGraphStoreOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - NAME_ASC - NAME_DESC - DATABASE_ID_ASC - DATABASE_ID_DESC - HASH_ASC - HASH_DESC - CREATED_AT_ASC - CREATED_AT_DESC -} + """Filter by the object’s `functionApiBindings` relation.""" + functionApiBindings: FunctionDefinitionToManyFunctionApiBindingFilter -"""A connection to a list of `FunctionGraphObject` values.""" -type FunctionGraphObjectConnection { - """A list of `FunctionGraphObject` objects.""" - nodes: [FunctionGraphObject]! + """`functionApiBindings` exist.""" + functionApiBindingsExist: Boolean +} +""" +A filter to be used against Boolean fields. All fields are combined with a logical ‘and.’ +""" +input BooleanFilter { """ - A list of edges which contains the `FunctionGraphObject` and cursor to aid in pagination. + Is null (if `true` is specified) or is not null (if `false` is specified). """ - edges: [FunctionGraphObjectEdge]! + isNull: Boolean - """Information to aid in pagination.""" - pageInfo: PageInfo! + """Equal to the specified value.""" + equalTo: Boolean + + """Not equal to the specified value.""" + notEqualTo: Boolean """ - The count of *all* `FunctionGraphObject` you could get from the connection. + Not equal to the specified value, treating null like an ordinary value. """ - 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 { - """Filter by the object’s `id` field.""" - id: UUIDFilter - - """Filter by the object’s `databaseId` field.""" - databaseId: UUIDFilter + distinctFrom: Boolean - """Filter by the object’s `kids` field.""" - kids: UUIDListFilter + """Equal to the specified value, treating null like an ordinary value.""" + notDistinctFrom: Boolean - """Filter by the object’s `ktree` field.""" - ktree: StringListFilter + """Included in the specified list.""" + in: [Boolean!] - """Filter by the object’s `data` field.""" - data: JSONFilter + """Not included in the specified list.""" + notIn: [Boolean!] - """Filter by the object’s `createdAt` field.""" - createdAt: DatetimeFilter + """Less than the specified value.""" + lessThan: Boolean - """Checks for all expressions in this list.""" - and: [FunctionGraphObjectFilter!] + """Less than or equal to the specified value.""" + lessThanOrEqualTo: Boolean - """Checks for any expressions in this list.""" - or: [FunctionGraphObjectFilter!] + """Greater than the specified value.""" + greaterThan: Boolean - """Negates the expression.""" - not: FunctionGraphObjectFilter + """Greater than or equal to the specified value.""" + greaterThanOrEqualTo: Boolean } """ -A filter to be used against UUID List fields. All fields are combined with a logical ‘and.’ +A filter to be used against String List fields. All fields are combined with a logical ‘and.’ """ -input UUIDListFilter { +input StringListFilter { """ Is null (if `true` is specified) or is not null (if `false` is specified). """ isNull: Boolean """Equal to the specified value.""" - equalTo: [UUID] + equalTo: [String] """Not equal to the specified value.""" - notEqualTo: [UUID] + notEqualTo: [String] """ Not equal to the specified value, treating null like an ordinary value. """ - distinctFrom: [UUID] + distinctFrom: [String] """Equal to the specified value, treating null like an ordinary value.""" - notDistinctFrom: [UUID] + notDistinctFrom: [String] """Less than the specified value.""" - lessThan: [UUID] + lessThan: [String] """Less than or equal to the specified value.""" - lessThanOrEqualTo: [UUID] + lessThanOrEqualTo: [String] """Greater than the specified value.""" - greaterThan: [UUID] + greaterThan: [String] """Greater than or equal to the specified value.""" - greaterThanOrEqualTo: [UUID] + greaterThanOrEqualTo: [String] """Contains the specified list of values.""" - contains: [UUID] + contains: [String] """Contained by the specified list of values.""" - containedBy: [UUID] + containedBy: [String] """Overlaps the specified list of values.""" - overlaps: [UUID] + overlaps: [String] """Any array item is equal to the specified value.""" - anyEqualTo: UUID + anyEqualTo: String """Any array item is not equal to the specified value.""" - anyNotEqualTo: UUID + anyNotEqualTo: String """Any array item is less than the specified value.""" - anyLessThan: UUID + anyLessThan: String """Any array item is less than or equal to the specified value.""" - anyLessThanOrEqualTo: UUID + anyLessThanOrEqualTo: String """Any array item is greater than the specified value.""" - anyGreaterThan: UUID + anyGreaterThan: String """Any array item is greater than or equal to the specified value.""" - anyGreaterThanOrEqualTo: UUID + anyGreaterThanOrEqualTo: String } -"""Methods to use when ordering `FunctionGraphObject`.""" -enum FunctionGraphObjectOrderBy { +""" +A filter to be used against Int fields. All fields are combined with a logical ‘and.’ +""" +input IntFilter { + """ + Is null (if `true` is specified) or is not null (if `false` is specified). + """ + isNull: Boolean + + """Equal to the specified value.""" + equalTo: Int + + """Not equal to the specified value.""" + notEqualTo: Int + + """ + Not equal to the specified value, treating null like an ordinary value. + """ + distinctFrom: Int + + """Equal to the specified value, treating null like an ordinary value.""" + notDistinctFrom: Int + + """Included in the specified list.""" + in: [Int!] + + """Not included in the specified list.""" + notIn: [Int!] + + """Less than the specified value.""" + lessThan: Int + + """Less than or equal to the specified value.""" + lessThanOrEqualTo: Int + + """Greater than the specified value.""" + greaterThan: Int + + """Greater than or equal to the specified value.""" + greaterThanOrEqualTo: Int +} + +""" +A filter to be used against many `FunctionApiBinding` object types. All fields are combined with a logical ‘and.’ +""" +input FunctionDefinitionToManyFunctionApiBindingFilter { + """Filters to entities where at least one related entity matches.""" + some: FunctionApiBindingFilter + + """Filters to entities where every related entity matches.""" + every: FunctionApiBindingFilter + + """Filters to entities where no related entity matches.""" + none: FunctionApiBindingFilter +} + +"""Methods to use when ordering `FunctionApiBinding`.""" +enum FunctionApiBindingOrderBy { NATURAL PRIMARY_KEY_ASC PRIMARY_KEY_DESC ID_ASC ID_DESC - DATABASE_ID_ASC - DATABASE_ID_DESC - KIDS_ASC - KIDS_DESC - KTREE_ASC - KTREE_DESC - DATA_ASC - DATA_DESC - CREATED_AT_ASC - CREATED_AT_DESC + FUNCTION_DEFINITION_ID_ASC + FUNCTION_DEFINITION_ID_DESC + API_ID_ASC + API_ID_DESC + ALIAS_ASC + ALIAS_DESC + CONFIG_ASC + CONFIG_DESC } -"""A connection to a list of `FunctionDeploymentEvent` values.""" -type FunctionDeploymentEventConnection { - """A list of `FunctionDeploymentEvent` objects.""" - nodes: [FunctionDeploymentEvent]! +"""A `FunctionApiBinding` edge in the connection.""" +type FunctionApiBindingEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `FunctionApiBinding` at the end of the edge.""" + node: FunctionApiBinding +} + +"""A connection to a list of `FunctionGraphRef` values.""" +type FunctionGraphRefConnection { + """A list of `FunctionGraphRef` objects.""" + nodes: [FunctionGraphRef]! """ - A list of edges which contains the `FunctionDeploymentEvent` and cursor to aid in pagination. + A list of edges which contains the `FunctionGraphRef` and cursor to aid in pagination. """ - edges: [FunctionDeploymentEventEdge]! + edges: [FunctionGraphRefEdge]! """Information to aid in pagination.""" pageInfo: PageInfo! """ - The count of *all* `FunctionDeploymentEvent` you could get from the connection. + The count of *all* `FunctionGraphRef` you could get from the connection. """ totalCount: Int! } -""" -Deployment lifecycle events — audit log of provisioning, scaling, and failure events -""" -type FunctionDeploymentEvent { - """Event timestamp (partition key)""" - createdAt: Datetime! - - """Unique event identifier""" +"""Branch heads — mutable pointers into the commit chain""" +type FunctionGraphRef { + """Unique ref identifier""" id: UUID! - """Deployment this event belongs to""" - deploymentId: UUID! - - """ - Event type: provisioned, scaled, failed, deactivated, redeployed, health_check - """ - eventType: String! - - """User who triggered this event (NULL for system/automated)""" - actorId: UUID + """Ref name (e.g. HEAD, main)""" + name: String! - """Human-readable description of the event""" - message: String + """Opaque store partition key for the global tier""" + scopeId: UUID! - """Structured context (old/new values, error details, etc.)""" - metadata: JSON + """Store this ref belongs to""" + storeId: UUID! - """Database that owns this resource (database-scoped isolation)""" - databaseId: UUID! + """Commit this ref points to""" + commitId: UUID } -"""A `FunctionDeploymentEvent` edge in the connection.""" -type FunctionDeploymentEventEdge { +"""A `FunctionGraphRef` edge in the connection.""" +type FunctionGraphRefEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `FunctionDeploymentEvent` at the end of the edge.""" - node: FunctionDeploymentEvent + """The `FunctionGraphRef` at the end of the edge.""" + node: FunctionGraphRef } """ -A filter to be used against `FunctionDeploymentEvent` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `FunctionGraphRef` object types. All fields are combined with a logical ‘and.’ """ -input FunctionDeploymentEventFilter { - """Filter by the object’s `createdAt` field.""" - createdAt: DatetimeFilter - +input FunctionGraphRefFilter { """Filter by the object’s `id` field.""" id: UUIDFilter - """Filter by the object’s `deploymentId` field.""" - deploymentId: UUIDFilter - - """Filter by the object’s `eventType` field.""" - eventType: StringFilter + """Filter by the object’s `name` field.""" + name: StringFilter - """Filter by the object’s `actorId` field.""" - actorId: UUIDFilter + """Filter by the object’s `scopeId` field.""" + scopeId: UUIDFilter - """Filter by the object’s `message` field.""" - message: StringFilter - - """Filter by the object’s `metadata` field.""" - metadata: JSONFilter + """Filter by the object’s `storeId` field.""" + storeId: UUIDFilter - """Filter by the object’s `databaseId` field.""" - databaseId: UUIDFilter + """Filter by the object’s `commitId` field.""" + commitId: UUIDFilter """Checks for all expressions in this list.""" - and: [FunctionDeploymentEventFilter!] + and: [FunctionGraphRefFilter!] """Checks for any expressions in this list.""" - or: [FunctionDeploymentEventFilter!] + or: [FunctionGraphRefFilter!] """Negates the expression.""" - not: FunctionDeploymentEventFilter + not: FunctionGraphRefFilter } -"""Methods to use when ordering `FunctionDeploymentEvent`.""" -enum FunctionDeploymentEventOrderBy { +"""Methods to use when ordering `FunctionGraphRef`.""" +enum FunctionGraphRefOrderBy { NATURAL PRIMARY_KEY_ASC PRIMARY_KEY_DESC - CREATED_AT_ASC - CREATED_AT_DESC ID_ASC ID_DESC - DEPLOYMENT_ID_ASC - DEPLOYMENT_ID_DESC - EVENT_TYPE_ASC - EVENT_TYPE_DESC - ACTOR_ID_ASC - ACTOR_ID_DESC - MESSAGE_ASC - MESSAGE_DESC - METADATA_ASC - METADATA_DESC - DATABASE_ID_ASC - DATABASE_ID_DESC + NAME_ASC + NAME_DESC + SCOPE_ID_ASC + SCOPE_ID_DESC + STORE_ID_ASC + STORE_ID_DESC + COMMIT_ID_ASC + COMMIT_ID_DESC } -"""A connection to a list of `OrgFunctionExecutionLog` values.""" -type OrgFunctionExecutionLogConnection { - """A list of `OrgFunctionExecutionLog` objects.""" - nodes: [OrgFunctionExecutionLog]! +"""A connection to a list of `FunctionGraphStore` values.""" +type FunctionGraphStoreConnection { + """A list of `FunctionGraphStore` objects.""" + nodes: [FunctionGraphStore]! """ - A list of edges which contains the `OrgFunctionExecutionLog` and cursor to aid in pagination. + A list of edges which contains the `FunctionGraphStore` and cursor to aid in pagination. """ - edges: [OrgFunctionExecutionLogEdge]! + edges: [FunctionGraphStoreEdge]! """Information to aid in pagination.""" pageInfo: PageInfo! """ - The count of *all* `OrgFunctionExecutionLog` you could get from the connection. + The count of *all* `FunctionGraphStore` you could get from the connection. """ totalCount: Int! } -"""Function execution logs — structured console output per invocation""" -type OrgFunctionExecutionLog { - """Log entry timestamp (partition key)""" - createdAt: Datetime! - - """Unique log entry identifier""" +""" +Named stores — one per version-controlled tree (e.g. one graph, one definition set) +""" +type FunctionGraphStore { + """Unique store identifier""" id: UUID! - """Invocation this log entry belongs to (NULL for standalone job logs)""" - invocationId: UUID - - """Function routing key (NULL for generic job logs)""" - taskIdentifier: String - - """Log severity: debug, info, warn, error""" - logLevel: String! + """Human-readable store name""" + name: String! - """Log message text""" - message: String! + """Opaque store partition key for the global tier""" + scopeId: UUID! - """Structured context (labels, trace data, extra fields)""" - metadata: JSON + """Current root object hash of this store""" + hash: UUID - """User who triggered the execution (NULL for system/cron)""" - actorId: UUID + """Timestamp of store creation""" + createdAt: Datetime } -"""A `OrgFunctionExecutionLog` edge in the connection.""" -type OrgFunctionExecutionLogEdge { +"""A `FunctionGraphStore` edge in the connection.""" +type FunctionGraphStoreEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `OrgFunctionExecutionLog` at the end of the edge.""" - node: OrgFunctionExecutionLog + """The `FunctionGraphStore` at the end of the edge.""" + node: FunctionGraphStore } """ -A filter to be used against `OrgFunctionExecutionLog` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `FunctionGraphStore` object types. All fields are combined with a logical ‘and.’ """ -input OrgFunctionExecutionLogFilter { - """Filter by the object’s `createdAt` field.""" - createdAt: DatetimeFilter - +input FunctionGraphStoreFilter { """Filter by the object’s `id` field.""" id: UUIDFilter - """Filter by the object’s `invocationId` field.""" - invocationId: UUIDFilter - - """Filter by the object’s `taskIdentifier` field.""" - taskIdentifier: StringFilter - - """Filter by the object’s `logLevel` field.""" - logLevel: StringFilter + """Filter by the object’s `name` field.""" + name: StringFilter - """Filter by the object’s `message` field.""" - message: StringFilter + """Filter by the object’s `scopeId` field.""" + scopeId: UUIDFilter - """Filter by the object’s `metadata` field.""" - metadata: JSONFilter + """Filter by the object’s `hash` field.""" + hash: UUIDFilter - """Filter by the object’s `actorId` field.""" - actorId: UUIDFilter + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter """Checks for all expressions in this list.""" - and: [OrgFunctionExecutionLogFilter!] + and: [FunctionGraphStoreFilter!] """Checks for any expressions in this list.""" - or: [OrgFunctionExecutionLogFilter!] + or: [FunctionGraphStoreFilter!] """Negates the expression.""" - not: OrgFunctionExecutionLogFilter + not: FunctionGraphStoreFilter } -"""Methods to use when ordering `OrgFunctionExecutionLog`.""" -enum OrgFunctionExecutionLogOrderBy { +"""Methods to use when ordering `FunctionGraphStore`.""" +enum FunctionGraphStoreOrderBy { NATURAL PRIMARY_KEY_ASC PRIMARY_KEY_DESC - CREATED_AT_ASC - CREATED_AT_DESC ID_ASC ID_DESC - INVOCATION_ID_ASC - INVOCATION_ID_DESC - TASK_IDENTIFIER_ASC - TASK_IDENTIFIER_DESC - LOG_LEVEL_ASC - LOG_LEVEL_DESC - MESSAGE_ASC - MESSAGE_DESC - METADATA_ASC - METADATA_DESC - ACTOR_ID_ASC - ACTOR_ID_DESC + NAME_ASC + NAME_DESC + SCOPE_ID_ASC + SCOPE_ID_DESC + HASH_ASC + HASH_DESC + CREATED_AT_ASC + CREATED_AT_DESC } -"""A connection to a list of `ResourceEvent` values.""" -type ResourceEventConnection { - """A list of `ResourceEvent` objects.""" - nodes: [ResourceEvent]! +"""A connection to a list of `PlatformFunctionApiBinding` values.""" +type PlatformFunctionApiBindingConnection { + """A list of `PlatformFunctionApiBinding` objects.""" + nodes: [PlatformFunctionApiBinding]! """ - A list of edges which contains the `ResourceEvent` and cursor to aid in pagination. + A list of edges which contains the `PlatformFunctionApiBinding` and cursor to aid in pagination. """ - edges: [ResourceEventEdge]! + edges: [PlatformFunctionApiBindingEdge]! """Information to aid in pagination.""" pageInfo: PageInfo! - """The count of *all* `ResourceEvent` you could get from the connection.""" + """ + The count of *all* `PlatformFunctionApiBinding` you could get from the connection. + """ totalCount: Int! } """ -Resource lifecycle events — audit log of provisioning, updates, and failure events +Join table binding function definitions to API endpoints with per-binding alias and config """ -type ResourceEvent { - """Event timestamp (partition key)""" - createdAt: Datetime! - - """Unique event identifier""" +type PlatformFunctionApiBinding { id: UUID! - """Resource this event belongs to""" - resourceId: UUID! + """Function definition this binding belongs to""" + functionDefinitionId: UUID! + + """API endpoint this function is bound to""" + apiId: UUID! + + """Binding alias (e.g. default, staging, production)""" + alias: String! + + """Per-binding configuration (overrides, routing rules, etc.)""" + config: JSON! """ - Event type: provisioned, provisioning, updated, failed, deprovisioned, health_check + Reads a single `PlatformFunctionDefinition` that is related to this `PlatformFunctionApiBinding`. """ - eventType: String! + functionDefinition: PlatformFunctionDefinition +} - """User who triggered this event (NULL for system/automated)""" - actorId: UUID +""" +Function definitions — registered cloud functions with routing, queue, and retry configuration +""" +type PlatformFunctionDefinition { + id: UUID! + createdAt: Datetime + updatedAt: Datetime - """Human-readable description of the event""" - message: String + """Function grouping scope (e.g. email, embed, chunk, custom)""" + scope: String! - """Structured context (old/new values, error details, etc.)""" - metadata: JSON + """ + Function name within scope (e.g. send_verification_link, process_file_embedding) + """ + name: String! - """Database that owns this resource (database-scoped isolation)""" - databaseId: UUID! -} + """ + Computed routing slug: scope:name (used by Knative job worker for dispatch) + """ + taskIdentifier: String! -"""A `ResourceEvent` edge in the connection.""" -type ResourceEventEdge { - """A cursor for use in pagination.""" - cursor: Cursor + """Human-readable description of what this function does""" + description: String - """The `ResourceEvent` at the end of the edge.""" - node: ResourceEvent -} + """ + Whether this function definition is published to the public catalog for direct authenticated invocation. Default false = internal-only via add_job() + """ + isPublished: Boolean! -""" -A filter to be used against `ResourceEvent` object types. All fields are combined with a logical ‘and.’ -""" -input ResourceEventFilter { - """Filter by the object’s `createdAt` field.""" - createdAt: DatetimeFilter + """ + Non-public invocation channels this function may be exposed through (api, graph). Internal job dispatch is implicit and never listed. Default [] = job worker only. + """ + accessChannels: [String]! - """Filter by the object’s `id` field.""" - id: UUIDFilter + """ + Timestamp when this function was published. NULL means immediately published when is_published is true; future timestamps delay public visibility + """ + publishedAt: Datetime - """Filter by the object’s `resourceId` field.""" - resourceId: UUIDFilter + """Maximum retry attempts for the underlying job""" + maxAttempts: Int! - """Filter by the object’s `eventType` field.""" - eventType: StringFilter + """Job priority (lower = higher priority)""" + priority: Int! - """Filter by the object’s `actorId` field.""" - actorId: UUIDFilter + """Job queue name for serialization (e.g. email, ai, default)""" + queueName: String! - """Filter by the object’s `message` field.""" - message: StringFilter + """ + Execution mode: http (Knative Service dispatch), inline (in-process in compute worker), handler (registered infrastructure handler), or sql (generic SQL dispatch via a trusted direct target or module-resolved function names) + """ + runtime: String! - """Filter by the object’s `metadata` field.""" - metadata: JSONFilter + """ + 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 `databaseId` field.""" - databaseId: UUIDFilter + """ + Name of the SQL function to invoke when runtime=sql (direct mode). NULL for module mode and other runtimes. + """ + targetFunction: String - """Checks for all expressions in this list.""" - and: [ResourceEventFilter!] + """ + 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 - """Checks for any expressions in this list.""" - or: [ResourceEventFilter!] + """ + 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 - """Negates the expression.""" - not: ResourceEventFilter -} + """ + Ordered bind-parameter mapping for runtime=sql: [{name, type}]. payload[name] is bound as $n::type. + """ + payloadArgs: JSON! -"""Methods to use when ordering `ResourceEvent`.""" -enum ResourceEventOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - CREATED_AT_ASC - CREATED_AT_DESC - ID_ASC - ID_DESC - RESOURCE_ID_ASC - RESOURCE_ID_DESC - EVENT_TYPE_ASC - EVENT_TYPE_DESC - ACTOR_ID_ASC - ACTOR_ID_DESC - MESSAGE_ASC - MESSAGE_DESC - METADATA_ASC - METADATA_DESC - DATABASE_ID_ASC - DATABASE_ID_DESC -} + """ + Docker image reference (e.g. ghcr.io/constructive-io/email-send-fn:latest). Required when runtime=http. NULL for inline functions. + """ + image: String -"""A connection to a list of `FunctionGraphExecutionOutput` values.""" -type FunctionGraphExecutionOutputConnection { - """A list of `FunctionGraphExecutionOutput` objects.""" - nodes: [FunctionGraphExecutionOutput]! + """ + Knative containerConcurrency — max concurrent requests per pod instance + """ + concurrency: Int! + + """Minimum pod count for Knative autoscaling (minScale)""" + scaleMin: Int! + + """Maximum pod count for Knative autoscaling (maxScale)""" + scaleMax: Int! + + """Knative request timeout in seconds""" + timeoutSeconds: Int! """ - A list of edges which contains the `FunctionGraphExecutionOutput` and cursor to aid in pagination. + Container resource requests and limits: {requests: {memory, cpu}, limits: {memory, cpu}} """ - edges: [FunctionGraphExecutionOutputEdge]! + resources: JSON! - """Information to aid in pagination.""" - pageInfo: PageInfo! + """ + Whether this function is a built-in platform function (synced from platform) vs user-created + """ + isBuiltIn: Boolean! """ - The count of *all* `FunctionGraphExecutionOutput` you could get from the connection. + Embedded secret requirements: array of (name, required, provider) tuples. provider is the integration slug this requirement belongs to, if any. """ - totalCount: Int! -} + requiredSecrets: [ResourceRequirement]! -""" -Content-addressed store for execution outputs — hash-referenced from node_outputs -""" -type FunctionGraphExecutionOutput { - """Timestamp of output creation""" - createdAt: Datetime! + """ + Embedded config requirements: array of (name, required, provider) tuples. provider is the integration slug this requirement belongs to, if any. + """ + requiredConfigs: [ResourceRequirement]! - """Unique execution output identifier""" - id: UUID! + """ + Provider slugs (e.g. mailgun, postgres) associated with this function. The UI uses this to auto-fill required_secrets and required_configs from integration_providers. + """ + integrations: [String]! - """Scope for multi-tenant isolation""" - databaseId: UUID! + """ + Bucket keys this function needs (e.g. uploads, exports). Empty = no bucket requirements. + """ + requiredBuckets: [String]! - """SHA-256 hash of the data JSONB — content-addressed deduplication""" - hash: Base64EncodedBinary! + """ + Inference model whitelist (e.g. gpt-4o, claude-3). Empty = no model requirements. + """ + requiredModels: [String]! - """The actual output payload from a completed node""" - data: JSON! -} + """ + Data input ports: [{name, type, description?, optional?, multi?, schema?}] + """ + inputs: JSON! -"""Binary data encoded using Base64""" -scalar Base64EncodedBinary + """ + Data output ports: [{name, type, description?, optional?, multi?, schema?}] + """ + outputs: JSON! -"""A `FunctionGraphExecutionOutput` edge in the connection.""" -type FunctionGraphExecutionOutputEdge { - """A cursor for use in pagination.""" - cursor: Cursor + """ + Configuration properties: [{name, type, default?, description?, required?, schema?}] + """ + props: JSON! - """The `FunctionGraphExecutionOutput` at the end of the edge.""" - node: FunctionGraphExecutionOutput + """ + Whether this function has side effects and cannot be cached or memoized + """ + volatile: Boolean! + + """Icon identifier for UI palette rendering (e.g. mail, database, code)""" + icon: String + + """Palette grouping category (e.g. email, data, ai, custom)""" + category: String + + """ + Reads and enables pagination through a set of `PlatformFunctionApiBinding`. + """ + platformFunctionApiBindingsByFunctionDefinitionId( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: PlatformFunctionApiBindingFilter + + """The method to use when ordering `PlatformFunctionApiBinding`.""" + orderBy: [PlatformFunctionApiBindingOrderBy!] = [PRIMARY_KEY_ASC] + ): PlatformFunctionApiBindingConnection! } """ -A filter to be used against `FunctionGraphExecutionOutput` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `PlatformFunctionApiBinding` object types. All fields are combined with a logical ‘and.’ """ -input FunctionGraphExecutionOutputFilter { - """Filter by the object’s `createdAt` field.""" - createdAt: DatetimeFilter - +input PlatformFunctionApiBindingFilter { """Filter by the object’s `id` field.""" id: UUIDFilter - """Filter by the object’s `databaseId` field.""" - databaseId: UUIDFilter + """Filter by the object’s `functionDefinitionId` field.""" + functionDefinitionId: UUIDFilter - """Filter by the object’s `hash` field.""" - hash: Base64EncodedBinaryFilter + """Filter by the object’s `apiId` field.""" + apiId: UUIDFilter - """Filter by the object’s `data` field.""" - data: JSONFilter + """Filter by the object’s `alias` field.""" + alias: StringFilter + + """Filter by the object’s `config` field.""" + config: JSONFilter """Checks for all expressions in this list.""" - and: [FunctionGraphExecutionOutputFilter!] + and: [PlatformFunctionApiBindingFilter!] """Checks for any expressions in this list.""" - or: [FunctionGraphExecutionOutputFilter!] + or: [PlatformFunctionApiBindingFilter!] """Negates the expression.""" - not: FunctionGraphExecutionOutputFilter + not: PlatformFunctionApiBindingFilter + + """Filter by the object’s `functionDefinition` relation.""" + functionDefinition: PlatformFunctionDefinitionFilter } """ -A filter to be used against Base64EncodedBinary fields. All fields are combined with a logical ‘and.’ +A filter to be used against `PlatformFunctionDefinition` object types. All fields are combined with a logical ‘and.’ """ -input Base64EncodedBinaryFilter { - """ - Is null (if `true` is specified) or is not null (if `false` is specified). - """ - isNull: Boolean +input PlatformFunctionDefinitionFilter { + """Filter by the object’s `id` field.""" + id: UUIDFilter - """Equal to the specified value.""" - equalTo: Base64EncodedBinary + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter - """Not equal to the specified value.""" - notEqualTo: Base64EncodedBinary + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter - """ - Not equal to the specified value, treating null like an ordinary value. - """ - distinctFrom: Base64EncodedBinary + """Filter by the object’s `scope` field.""" + scope: StringFilter - """Equal to the specified value, treating null like an ordinary value.""" - notDistinctFrom: Base64EncodedBinary + """Filter by the object’s `name` field.""" + name: StringFilter - """Included in the specified list.""" - in: [Base64EncodedBinary!] + """Filter by the object’s `taskIdentifier` field.""" + taskIdentifier: StringFilter - """Not included in the specified list.""" - notIn: [Base64EncodedBinary!] -} + """Filter by the object’s `description` field.""" + description: StringFilter -"""Methods to use when ordering `FunctionGraphExecutionOutput`.""" -enum FunctionGraphExecutionOutputOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - CREATED_AT_ASC - CREATED_AT_DESC - ID_ASC - ID_DESC - DATABASE_ID_ASC - DATABASE_ID_DESC - HASH_ASC - HASH_DESC - DATA_ASC - DATA_DESC -} + """Filter by the object’s `isPublished` field.""" + isPublished: BooleanFilter -"""A connection to a list of `FunctionGraphCommit` values.""" -type FunctionGraphCommitConnection { - """A list of `FunctionGraphCommit` objects.""" - nodes: [FunctionGraphCommit]! + """Filter by the object’s `accessChannels` field.""" + accessChannels: StringListFilter - """ - A list of edges which contains the `FunctionGraphCommit` and cursor to aid in pagination. - """ - edges: [FunctionGraphCommitEdge]! + """Filter by the object’s `publishedAt` field.""" + publishedAt: DatetimeFilter - """Information to aid in pagination.""" - pageInfo: PageInfo! + """Filter by the object’s `maxAttempts` field.""" + maxAttempts: IntFilter - """ - The count of *all* `FunctionGraphCommit` you could get from the connection. - """ - totalCount: Int! -} + """Filter by the object’s `priority` field.""" + priority: IntFilter -"""Commit history — each commit snapshots a tree root for a store""" -type FunctionGraphCommit { - """Unique commit identifier""" - id: UUID! + """Filter by the object’s `queueName` field.""" + queueName: StringFilter - """Optional commit message""" - message: String + """Filter by the object’s `runtime` field.""" + runtime: StringFilter - """Database scope for multi-tenant isolation""" - databaseId: UUID! + """Filter by the object’s `targetSchema` field.""" + targetSchema: StringFilter - """Store this commit belongs to""" - storeId: UUID! + """Filter by the object’s `targetFunction` field.""" + targetFunction: StringFilter - """Parent commit IDs (supports merge commits)""" - parentIds: [UUID] + """Filter by the object’s `moduleTable` field.""" + moduleTable: StringFilter - """User who authored the changes""" - authorId: UUID + """Filter by the object’s `functionColumns` field.""" + functionColumns: JSONFilter - """User who committed (may differ from author)""" - committerId: UUID + """Filter by the object’s `payloadArgs` field.""" + payloadArgs: JSONFilter - """Root object ID of the tree snapshot at this commit""" - treeId: UUID + """Filter by the object’s `image` field.""" + image: StringFilter - """Commit timestamp""" - date: Datetime! -} + """Filter by the object’s `concurrency` field.""" + concurrency: IntFilter -"""A `FunctionGraphCommit` edge in the connection.""" -type FunctionGraphCommitEdge { - """A cursor for use in pagination.""" - cursor: Cursor + """Filter by the object’s `scaleMin` field.""" + scaleMin: IntFilter - """The `FunctionGraphCommit` at the end of the edge.""" - node: FunctionGraphCommit -} + """Filter by the object’s `scaleMax` field.""" + scaleMax: IntFilter -""" -A filter to be used against `FunctionGraphCommit` object types. All fields are combined with a logical ‘and.’ -""" -input FunctionGraphCommitFilter { - """Filter by the object’s `id` field.""" - id: UUIDFilter + """Filter by the object’s `timeoutSeconds` field.""" + timeoutSeconds: IntFilter - """Filter by the object’s `message` field.""" - message: StringFilter + """Filter by the object’s `resources` field.""" + resources: JSONFilter - """Filter by the object’s `databaseId` field.""" - databaseId: UUIDFilter + """Filter by the object’s `isBuiltIn` field.""" + isBuiltIn: BooleanFilter - """Filter by the object’s `storeId` field.""" - storeId: UUIDFilter + """Filter by the object’s `integrations` field.""" + integrations: StringListFilter - """Filter by the object’s `parentIds` field.""" - parentIds: UUIDListFilter + """Filter by the object’s `requiredBuckets` field.""" + requiredBuckets: StringListFilter - """Filter by the object’s `authorId` field.""" - authorId: UUIDFilter + """Filter by the object’s `requiredModels` field.""" + requiredModels: StringListFilter - """Filter by the object’s `committerId` field.""" - committerId: UUIDFilter + """Filter by the object’s `inputs` field.""" + inputs: JSONFilter - """Filter by the object’s `treeId` field.""" - treeId: UUIDFilter + """Filter by the object’s `outputs` field.""" + outputs: JSONFilter - """Filter by the object’s `date` field.""" - date: DatetimeFilter + """Filter by the object’s `props` field.""" + props: JSONFilter + + """Filter by the object’s `volatile` field.""" + volatile: BooleanFilter + + """Filter by the object’s `icon` field.""" + icon: StringFilter + + """Filter by the object’s `category` field.""" + category: StringFilter """Checks for all expressions in this list.""" - and: [FunctionGraphCommitFilter!] + and: [PlatformFunctionDefinitionFilter!] """Checks for any expressions in this list.""" - or: [FunctionGraphCommitFilter!] + or: [PlatformFunctionDefinitionFilter!] """Negates the expression.""" - not: FunctionGraphCommitFilter + not: PlatformFunctionDefinitionFilter + + """ + Filter by the object’s `platformFunctionApiBindingsByFunctionDefinitionId` relation. + """ + platformFunctionApiBindingsByFunctionDefinitionId: PlatformFunctionDefinitionToManyPlatformFunctionApiBindingFilter + + """`platformFunctionApiBindingsByFunctionDefinitionId` exist.""" + platformFunctionApiBindingsByFunctionDefinitionIdExist: Boolean } -"""Methods to use when ordering `FunctionGraphCommit`.""" -enum FunctionGraphCommitOrderBy { +""" +A filter to be used against many `PlatformFunctionApiBinding` object types. All fields are combined with a logical ‘and.’ +""" +input PlatformFunctionDefinitionToManyPlatformFunctionApiBindingFilter { + """Filters to entities where at least one related entity matches.""" + some: PlatformFunctionApiBindingFilter + + """Filters to entities where every related entity matches.""" + every: PlatformFunctionApiBindingFilter + + """Filters to entities where no related entity matches.""" + none: PlatformFunctionApiBindingFilter +} + +"""Methods to use when ordering `PlatformFunctionApiBinding`.""" +enum PlatformFunctionApiBindingOrderBy { NATURAL PRIMARY_KEY_ASC PRIMARY_KEY_DESC ID_ASC ID_DESC - MESSAGE_ASC - MESSAGE_DESC - DATABASE_ID_ASC - DATABASE_ID_DESC - STORE_ID_ASC - STORE_ID_DESC - PARENT_IDS_ASC - PARENT_IDS_DESC - AUTHOR_ID_ASC - AUTHOR_ID_DESC - COMMITTER_ID_ASC - COMMITTER_ID_DESC - TREE_ID_ASC - TREE_ID_DESC - DATE_ASC - DATE_DESC + FUNCTION_DEFINITION_ID_ASC + FUNCTION_DEFINITION_ID_DESC + API_ID_ASC + API_ID_DESC + ALIAS_ASC + ALIAS_DESC + CONFIG_ASC + CONFIG_DESC +} + +"""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 connection to a list of `SecretDefinition` values.""" -type SecretDefinitionConnection { - """A list of `SecretDefinition` objects.""" - nodes: [SecretDefinition]! +"""A connection to a list of `PlatformResourcesRequirementsState` values.""" +type PlatformResourcesRequirementsStateConnection { + """A list of `PlatformResourcesRequirementsState` objects.""" + nodes: [PlatformResourcesRequirementsState]! """ - A list of edges which contains the `SecretDefinition` and cursor to aid in pagination. + A list of edges which contains the `PlatformResourcesRequirementsState` and cursor to aid in pagination. """ - edges: [SecretDefinitionEdge]! + edges: [PlatformResourcesRequirementsStateEdge]! """Information to aid in pagination.""" pageInfo: PageInfo! """ - The count of *all* `SecretDefinition` you could get from the connection. + The count of *all* `PlatformResourcesRequirementsState` you could get from the connection. """ totalCount: Int! } -""" -Global secret name registry — declares which secrets the platform recognizes. Actual values live in app_secrets. -""" -type SecretDefinition { - id: UUID! - createdAt: Datetime - updatedAt: Datetime - - """Secret name (must match app_secrets.name for resolution)""" - name: String! - - """Human-readable description of what this secret is used for""" - description: String - - """ - Whether this row was seeded as a built-in secret definition. Built-in rows are immutable. - """ - isBuiltIn: Boolean! - - """Key-value metadata for filtering and grouping secret definitions""" - labels: JSON! - - """Freeform metadata annotations for secret definitions""" - annotations: JSON! - - """Database that owns this resource (database-scoped isolation)""" - databaseId: UUID! +type PlatformResourcesRequirementsState { + resourceId: UUID + slug: String + secretsHash: String + configHash: String + requirementsHash: String + secretsObjectName: String + configObjectName: String } -"""A `SecretDefinition` edge in the connection.""" -type SecretDefinitionEdge { +"""A `PlatformResourcesRequirementsState` edge in the connection.""" +type PlatformResourcesRequirementsStateEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `SecretDefinition` at the end of the edge.""" - node: SecretDefinition + """The `PlatformResourcesRequirementsState` at the end of the edge.""" + node: PlatformResourcesRequirementsState } """ -A filter to be used against `SecretDefinition` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `PlatformResourcesRequirementsState` object types. All fields are combined with a logical ‘and.’ """ -input SecretDefinitionFilter { - """Filter by the object’s `id` field.""" - id: UUIDFilter - - """Filter by the object’s `createdAt` field.""" - createdAt: DatetimeFilter - - """Filter by the object’s `updatedAt` field.""" - updatedAt: DatetimeFilter +input PlatformResourcesRequirementsStateFilter { + """Filter by the object’s `resourceId` field.""" + resourceId: UUIDFilter - """Filter by the object’s `name` field.""" - name: StringFilter + """Filter by the object’s `slug` field.""" + slug: StringFilter - """Filter by the object’s `description` field.""" - description: StringFilter + """Filter by the object’s `secretsHash` field.""" + secretsHash: StringFilter - """Filter by the object’s `isBuiltIn` field.""" - isBuiltIn: BooleanFilter + """Filter by the object’s `configHash` field.""" + configHash: StringFilter - """Filter by the object’s `labels` field.""" - labels: JSONFilter + """Filter by the object’s `requirementsHash` field.""" + requirementsHash: StringFilter - """Filter by the object’s `annotations` field.""" - annotations: JSONFilter + """Filter by the object’s `secretsObjectName` field.""" + secretsObjectName: StringFilter - """Filter by the object’s `databaseId` field.""" - databaseId: UUIDFilter + """Filter by the object’s `configObjectName` field.""" + configObjectName: StringFilter """Checks for all expressions in this list.""" - and: [SecretDefinitionFilter!] + and: [PlatformResourcesRequirementsStateFilter!] """Checks for any expressions in this list.""" - or: [SecretDefinitionFilter!] + or: [PlatformResourcesRequirementsStateFilter!] """Negates the expression.""" - not: SecretDefinitionFilter + not: PlatformResourcesRequirementsStateFilter } -"""Methods to use when ordering `SecretDefinition`.""" -enum SecretDefinitionOrderBy { +"""Methods to use when ordering `PlatformResourcesRequirementsState`.""" +enum PlatformResourcesRequirementsStateOrderBy { NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - CREATED_AT_ASC - CREATED_AT_DESC - UPDATED_AT_ASC - UPDATED_AT_DESC - NAME_ASC - NAME_DESC - DESCRIPTION_ASC - DESCRIPTION_DESC - IS_BUILT_IN_ASC - IS_BUILT_IN_DESC - LABELS_ASC - LABELS_DESC - ANNOTATIONS_ASC - ANNOTATIONS_DESC - DATABASE_ID_ASC - DATABASE_ID_DESC + RESOURCE_ID_ASC + RESOURCE_ID_DESC + SLUG_ASC + SLUG_DESC + SECRETS_HASH_ASC + SECRETS_HASH_DESC + CONFIG_HASH_ASC + CONFIG_HASH_DESC + REQUIREMENTS_HASH_ASC + REQUIREMENTS_HASH_DESC + SECRETS_OBJECT_NAME_ASC + SECRETS_OBJECT_NAME_DESC + CONFIG_OBJECT_NAME_ASC + CONFIG_OBJECT_NAME_DESC } -"""A connection to a list of `FunctionExecutionLog` values.""" -type FunctionExecutionLogConnection { - """A list of `FunctionExecutionLog` objects.""" - nodes: [FunctionExecutionLog]! +"""A connection to a list of `ResourcesRequirementsState` values.""" +type ResourcesRequirementsStateConnection { + """A list of `ResourcesRequirementsState` objects.""" + nodes: [ResourcesRequirementsState]! """ - A list of edges which contains the `FunctionExecutionLog` and cursor to aid in pagination. + A list of edges which contains the `ResourcesRequirementsState` and cursor to aid in pagination. """ - edges: [FunctionExecutionLogEdge]! + edges: [ResourcesRequirementsStateEdge]! """Information to aid in pagination.""" pageInfo: PageInfo! """ - The count of *all* `FunctionExecutionLog` you could get from the connection. + The count of *all* `ResourcesRequirementsState` you could get from the connection. """ totalCount: Int! } -"""Function execution logs — structured console output per invocation""" -type FunctionExecutionLog { - """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 - - """Function routing key (NULL for generic job logs)""" - taskIdentifier: String - - """Log severity: debug, info, warn, error""" - logLevel: String! - - """Log message text""" - message: String! - - """Structured context (labels, trace data, extra fields)""" - metadata: JSON - - """User who triggered the execution (NULL for system/cron)""" - actorId: UUID - - """Database that owns this resource (database-scoped isolation)""" - databaseId: UUID! +type ResourcesRequirementsState { + resourceId: UUID + slug: String + secretsHash: String + configHash: String + requirementsHash: String + secretsObjectName: String + configObjectName: String } -"""A `FunctionExecutionLog` edge in the connection.""" -type FunctionExecutionLogEdge { +"""A `ResourcesRequirementsState` edge in the connection.""" +type ResourcesRequirementsStateEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `FunctionExecutionLog` at the end of the edge.""" - node: FunctionExecutionLog + """The `ResourcesRequirementsState` at the end of the edge.""" + node: ResourcesRequirementsState } """ -A filter to be used against `FunctionExecutionLog` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `ResourcesRequirementsState` object types. All fields are combined with a logical ‘and.’ """ -input FunctionExecutionLogFilter { - """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 +input ResourcesRequirementsStateFilter { + """Filter by the object’s `resourceId` field.""" + resourceId: UUIDFilter - """Filter by the object’s `taskIdentifier` field.""" - taskIdentifier: StringFilter + """Filter by the object’s `slug` field.""" + slug: StringFilter - """Filter by the object’s `logLevel` field.""" - logLevel: StringFilter + """Filter by the object’s `secretsHash` field.""" + secretsHash: StringFilter - """Filter by the object’s `message` field.""" - message: StringFilter + """Filter by the object’s `configHash` field.""" + configHash: StringFilter - """Filter by the object’s `metadata` field.""" - metadata: JSONFilter + """Filter by the object’s `requirementsHash` field.""" + requirementsHash: StringFilter - """Filter by the object’s `actorId` field.""" - actorId: UUIDFilter + """Filter by the object’s `secretsObjectName` field.""" + secretsObjectName: StringFilter - """Filter by the object’s `databaseId` field.""" - databaseId: UUIDFilter + """Filter by the object’s `configObjectName` field.""" + configObjectName: StringFilter """Checks for all expressions in this list.""" - and: [FunctionExecutionLogFilter!] + and: [ResourcesRequirementsStateFilter!] """Checks for any expressions in this list.""" - or: [FunctionExecutionLogFilter!] + or: [ResourcesRequirementsStateFilter!] """Negates the expression.""" - not: FunctionExecutionLogFilter + not: ResourcesRequirementsStateFilter } -"""Methods to use when ordering `FunctionExecutionLog`.""" -enum FunctionExecutionLogOrderBy { +"""Methods to use when ordering `ResourcesRequirementsState`.""" +enum ResourcesRequirementsStateOrderBy { NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - CREATED_AT_ASC - CREATED_AT_DESC - ID_ASC - ID_DESC - INVOCATION_ID_ASC - INVOCATION_ID_DESC - TASK_IDENTIFIER_ASC - TASK_IDENTIFIER_DESC - LOG_LEVEL_ASC - LOG_LEVEL_DESC - MESSAGE_ASC - MESSAGE_DESC - METADATA_ASC - METADATA_DESC - ACTOR_ID_ASC - ACTOR_ID_DESC - DATABASE_ID_ASC - DATABASE_ID_DESC + RESOURCE_ID_ASC + RESOURCE_ID_DESC + SLUG_ASC + SLUG_DESC + SECRETS_HASH_ASC + SECRETS_HASH_DESC + CONFIG_HASH_ASC + CONFIG_HASH_DESC + REQUIREMENTS_HASH_ASC + REQUIREMENTS_HASH_DESC + SECRETS_OBJECT_NAME_ASC + SECRETS_OBJECT_NAME_DESC + CONFIG_OBJECT_NAME_ASC + CONFIG_OBJECT_NAME_DESC } -"""A connection to a list of `FunctionGraph` values.""" -type FunctionGraphConnection { - """A list of `FunctionGraph` objects.""" - nodes: [FunctionGraph]! +"""A connection to a list of `PlatformResourceStatusCheck` values.""" +type PlatformResourceStatusCheckConnection { + """A list of `PlatformResourceStatusCheck` objects.""" + nodes: [PlatformResourceStatusCheck]! """ - A list of edges which contains the `FunctionGraph` and cursor to aid in pagination. + A list of edges which contains the `PlatformResourceStatusCheck` and cursor to aid in pagination. """ - edges: [FunctionGraphEdge]! + edges: [PlatformResourceStatusCheckEdge]! """Information to aid in pagination.""" pageInfo: PageInfo! - """The count of *all* `FunctionGraph` you could get from the connection.""" + """ + The count of *all* `PlatformResourceStatusCheck` you could get from the connection. + """ totalCount: Int! } """ -Flow graph definitions — FBP graphs stored in the dedicated graph Merkle store +On-demand resource status checks — diagnostic snapshots from the runtime (K8s status, conditions, log tails) """ -type FunctionGraph { - """Unique graph identifier""" +type PlatformResourceStatusCheck { + """Unique status check identifier""" id: UUID! - """Database scope for multi-tenant isolation""" - databaseId: UUID! - - """Graph store (Merkle store) holding the graph definition""" - storeId: UUID! - - """Evaluator/runtime context (function, js, sql, system)""" - context: String! - - """Graph name (unique per database)""" - name: String! - - """Human-readable description of the graph""" - description: String - - """Pinned definitions store commit for deterministic evaluation""" - definitionsCommitId: UUID - - """Whether graph passes structural validation""" - isValid: Boolean! + """Resource to check""" + resourceId: UUID! - """Array of validation error objects when is_valid = false""" - validationErrors: JSON + """User who requested the check (NULL for system/scheduled)""" + requestedBy: UUID - """Actor who created this graph""" - createdBy: UUID + """When the check was requested""" + requestedAt: Datetime! - """Timestamp of graph creation""" - createdAt: Datetime! + """When the check completed (NULL while pending/running)""" + completedAt: Datetime - """Timestamp of last modification""" - updatedAt: Datetime! -} + """Check lifecycle: pending, running, completed, failed""" + status: String! -"""A `FunctionGraph` edge in the connection.""" -type FunctionGraphEdge { - """A cursor for use in pagination.""" - cursor: Cursor + """Diagnostic snapshot: k8s_status, conditions, pod_logs_tail, events""" + result: JSON - """The `FunctionGraph` at the end of the edge.""" - node: FunctionGraph + """ + Reads a single `PlatformResource` that is related to this `PlatformResourceStatusCheck`. + """ + resource: PlatformResource } """ -A filter to be used against `FunctionGraph` 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 FunctionGraphFilter { - """Filter by the object’s `id` field.""" - id: UUIDFilter - - """Filter by the object’s `databaseId` field.""" - databaseId: UUIDFilter +type PlatformResource { + id: UUID! + createdAt: Datetime + updatedAt: Datetime + createdBy: UUID + updatedBy: UUID - """Filter by the object’s `storeId` field.""" - storeId: UUIDFilter + """ + Namespace this resource belongs to (security boundary, maps to K8s namespace) + """ + namespaceId: UUID! - """Filter by the object’s `context` field.""" - context: StringFilter + """Resource kind: Deployment, StatefulSet, Service, Ingress, Certificate""" + kind: String! - """Filter by the object’s `name` field.""" - name: StringFilter + """Human-readable resource name""" + name: String! - """Filter by the object’s `description` field.""" - description: StringFilter + """URL-safe identifier, unique within (namespace_id, kind)""" + slug: String! - """Filter by the object’s `definitionsCommitId` field.""" - definitionsCommitId: UUIDFilter + """ + Desired state — kind-specific configuration (image, ports, resources, etc.). Opaque to DB; validated by K8s. + """ + spec: JSON! - """Filter by the object’s `isValid` field.""" - isValid: BooleanFilter + """ + Resource lifecycle status: pending, provisioning, active, failed, draining, deleting + """ + status: String! - """Filter by the object’s `validationErrors` field.""" - validationErrors: JSONFilter + """ + Observed state from K8s — populated by handlers after reconciliation (service_url, clone_url, replicas, etc.) + """ + statusObserved: JSON - """Filter by the object’s `createdBy` field.""" - createdBy: UUIDFilter + """Most recent provisioning or runtime error message""" + lastError: String - """Filter by the object’s `createdAt` field.""" - createdAt: DatetimeFilter + """Cumulative error count for this resource""" + errorCount: Int! - """Filter by the object’s `updatedAt` field.""" - updatedAt: DatetimeFilter + """Key/value pairs for selecting and filtering resources""" + labels: JSON! - """Checks for all expressions in this list.""" - and: [FunctionGraphFilter!] + """Freeform metadata for tooling and operational notes""" + annotations: JSON! - """Checks for any expressions in this list.""" - or: [FunctionGraphFilter!] + """ + 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]! - """Negates the expression.""" - not: FunctionGraphFilter -} + """ + 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]! -"""Methods to use when ordering `FunctionGraph`.""" -enum FunctionGraphOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - DATABASE_ID_ASC - DATABASE_ID_DESC - STORE_ID_ASC - STORE_ID_DESC - CONTEXT_ASC - CONTEXT_DESC - NAME_ASC - NAME_DESC - DESCRIPTION_ASC - DESCRIPTION_DESC - DEFINITIONS_COMMIT_ID_ASC - DEFINITIONS_COMMIT_ID_DESC - IS_VALID_ASC - IS_VALID_DESC - VALIDATION_ERRORS_ASC - VALIDATION_ERRORS_DESC - CREATED_BY_ASC - CREATED_BY_DESC - CREATED_AT_ASC - CREATED_AT_DESC - UPDATED_AT_ASC - UPDATED_AT_DESC -} + """ + 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]! -"""A connection to a list of `FunctionGraphExecutionNodeState` values.""" -type FunctionGraphExecutionNodeStateConnection { - """A list of `FunctionGraphExecutionNodeState` objects.""" - nodes: [FunctionGraphExecutionNodeState]! + """ + Definition template this resource was created from (NULL for standalone resources) + """ + resourceDefinitionId: UUID """ - A list of edges which contains the `FunctionGraphExecutionNodeState` and cursor to aid in pagination. + Reads a single `PlatformNamespace` that is related to this `PlatformResource`. """ - edges: [FunctionGraphExecutionNodeStateEdge]! + namespace: PlatformNamespace - """Information to aid in pagination.""" - pageInfo: PageInfo! + """ + Reads a single `PlatformResourceDefinition` that is related to this `PlatformResource`. + """ + resourceDefinition: PlatformResourceDefinition """ - The count of *all* `FunctionGraphExecutionNodeState` you could get from the connection. + Reads and enables pagination through a set of `PlatformResourceStatusCheck`. """ - totalCount: Int! + platformResourceStatusChecksByResourceId( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: PlatformResourceStatusCheckFilter + + """The method to use when ordering `PlatformResourceStatusCheck`.""" + orderBy: [PlatformResourceStatusCheckOrderBy!] = [PRIMARY_KEY_ASC] + ): PlatformResourceStatusCheckConnection! } """ -Per-node execution state — tracks individual node lifecycle for debugging +Logical namespace containers for grouping secrets, config, functions, and other resources """ -type FunctionGraphExecutionNodeState { - """Timestamp of node state creation (partition key)""" - createdAt: Datetime! - - """Unique node state identifier""" +type PlatformNamespace { id: UUID! + createdAt: Datetime + updatedAt: Datetime - """FK to the parent graph execution""" - executionId: UUID! + """Human-readable namespace name (e.g. default, production, oauth)""" + name: String! - """Scope for multi-tenant isolation""" - databaseId: UUID! + """ + Globally unique computed namespace identifier via inflection.underscore + """ + namespaceName: String! - """Name of the node within the graph (e.g. send-email1)""" - nodeName: String! + """Optional human-readable description of this namespace""" + description: String + + """Whether this namespace is active (soft-disable for filtering)""" + isActive: Boolean! """ - Full merkle tree path to this node (e.g. {function,graphs,myflow,nodes,send-email1}) — enables subnet hierarchy tracking + Namespace provisioning lifecycle status: pending, provisioning, active, failed """ - nodePath: [String] - - """Node lifecycle: pending → queued → running → completed/failed""" status: String! - """Timestamp when the node began executing""" - startedAt: Datetime + """Most recent provisioning or reconcile error message""" + lastError: String - """Timestamp when the node finished (success or failure)""" - completedAt: Datetime + """Key/value pairs for selecting and filtering namespaces""" + labels: JSON! - """Machine-readable error code when status = failed""" - errorCode: String + """Freeform metadata for tooling and operational notes""" + annotations: JSON! - """Human-readable error description when status = failed""" - errorMessage: String + """ + true = provisioned by the platform via jobs, false = unmanaged/platform-native (bootstrapped externally) + """ + isManaged: Boolean! - """FK to execution_outputs — content-addressed output blob for this node""" - outputId: UUID -} + """ + Reads and enables pagination through a set of `PlatformFunctionDeployment`. + """ + platformFunctionDeploymentsByNamespaceId( + """Only read the first `n` values of the set.""" + first: Int -"""A `FunctionGraphExecutionNodeState` edge in the connection.""" -type FunctionGraphExecutionNodeStateEdge { - """A cursor for use in pagination.""" - cursor: Cursor + """Only read the last `n` values of the set.""" + last: Int - """The `FunctionGraphExecutionNodeState` at the end of the edge.""" - node: FunctionGraphExecutionNodeState -} + """ + 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 `FunctionGraphExecutionNodeState` object types. All fields are combined with a logical ‘and.’ -""" -input FunctionGraphExecutionNodeStateFilter { - """Filter by the object’s `createdAt` field.""" - createdAt: DatetimeFilter + """Read all values in the set before (above) this cursor.""" + before: Cursor - """Filter by the object’s `id` field.""" - id: UUIDFilter + """Read all values in the set after (below) this cursor.""" + after: Cursor - """Filter by the object’s `executionId` field.""" - executionId: UUIDFilter + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: PlatformFunctionDeploymentFilter - """Filter by the object’s `databaseId` field.""" - databaseId: UUIDFilter + """The method to use when ordering `PlatformFunctionDeployment`.""" + orderBy: [PlatformFunctionDeploymentOrderBy!] = [PRIMARY_KEY_ASC] + ): PlatformFunctionDeploymentConnection! - """Filter by the object’s `nodeName` field.""" - nodeName: StringFilter + """Reads and enables pagination through a set of `PlatformResource`.""" + platformResourcesByNamespaceId( + """Only read the first `n` values of the set.""" + first: Int - """Filter by the object’s `nodePath` field.""" - nodePath: StringListFilter + """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 `startedAt` field.""" - startedAt: DatetimeFilter + """Read all values in the set before (above) this cursor.""" + before: Cursor - """Filter by the object’s `completedAt` field.""" - completedAt: DatetimeFilter + """Read all values in the set after (below) this cursor.""" + after: Cursor - """Filter by the object’s `errorCode` field.""" - errorCode: StringFilter + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: PlatformResourceFilter - """Filter by the object’s `errorMessage` field.""" - errorMessage: StringFilter + """The method to use when ordering `PlatformResource`.""" + orderBy: [PlatformResourceOrderBy!] = [PRIMARY_KEY_ASC] + ): PlatformResourceConnection! - """Filter by the object’s `outputId` field.""" - outputId: UUIDFilter + """ + Reads and enables pagination through a set of `PlatformResourceDefinition`. + """ + platformResourceDefinitionsByNamespaceId( + """Only read the first `n` values of the set.""" + first: Int - """Checks for all expressions in this list.""" - and: [FunctionGraphExecutionNodeStateFilter!] + """Only read the last `n` values of the set.""" + last: Int - """Checks for any expressions in this list.""" - or: [FunctionGraphExecutionNodeStateFilter!] + """ + 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: FunctionGraphExecutionNodeStateFilter -} + """Read all values in the set before (above) this cursor.""" + before: Cursor -"""Methods to use when ordering `FunctionGraphExecutionNodeState`.""" -enum FunctionGraphExecutionNodeStateOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - CREATED_AT_ASC - CREATED_AT_DESC - ID_ASC - ID_DESC - EXECUTION_ID_ASC - EXECUTION_ID_DESC - DATABASE_ID_ASC - DATABASE_ID_DESC - NODE_NAME_ASC - NODE_NAME_DESC - NODE_PATH_ASC - NODE_PATH_DESC - STATUS_ASC - STATUS_DESC - STARTED_AT_ASC - STARTED_AT_DESC - COMPLETED_AT_ASC - COMPLETED_AT_DESC - ERROR_CODE_ASC - ERROR_CODE_DESC - ERROR_MESSAGE_ASC - ERROR_MESSAGE_DESC - OUTPUT_ID_ASC - OUTPUT_ID_DESC + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: PlatformResourceDefinitionFilter + + """The method to use when ordering `PlatformResourceDefinition`.""" + orderBy: [PlatformResourceDefinitionOrderBy!] = [PRIMARY_KEY_ASC] + ): PlatformResourceDefinitionConnection! } -"""A connection to a list of `PlatformNamespace` values.""" -type PlatformNamespaceConnection { - """A list of `PlatformNamespace` objects.""" - nodes: [PlatformNamespace]! +"""A connection to a list of `PlatformFunctionDeployment` values.""" +type PlatformFunctionDeploymentConnection { + """A list of `PlatformFunctionDeployment` objects.""" + nodes: [PlatformFunctionDeployment]! """ - A list of edges which contains the `PlatformNamespace` and cursor to aid in pagination. + A list of edges which contains the `PlatformFunctionDeployment` and cursor to aid in pagination. """ - edges: [PlatformNamespaceEdge]! + edges: [PlatformFunctionDeploymentEdge]! """Information to aid in pagination.""" pageInfo: PageInfo! """ - The count of *all* `PlatformNamespace` you could get from the connection. + The count of *all* `PlatformFunctionDeployment` you could get from the connection. """ totalCount: Int! } -"""A `PlatformNamespace` edge in the connection.""" -type PlatformNamespaceEdge { - """A cursor for use in pagination.""" - cursor: Cursor +""" +Function deployment bindings — ties a handler image to a namespace for Knative provisioning and routing (one row per handler image per namespace) +""" +type PlatformFunctionDeployment { + id: UUID! + createdAt: Datetime + updatedAt: Datetime - """The `PlatformNamespace` at the end of the edge.""" - node: PlatformNamespace -} + """Target namespace for this deployment (maps to a K8s namespace)""" + namespaceId: UUID! -"""Methods to use when ordering `PlatformNamespace`.""" -enum PlatformNamespaceOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - CREATED_AT_ASC - CREATED_AT_DESC - UPDATED_AT_ASC - UPDATED_AT_DESC - NAME_ASC - NAME_DESC - NAMESPACE_NAME_ASC - NAMESPACE_NAME_DESC - DESCRIPTION_ASC - DESCRIPTION_DESC - IS_ACTIVE_ASC - IS_ACTIVE_DESC - LABELS_ASC - LABELS_DESC - ANNOTATIONS_ASC - ANNOTATIONS_DESC - DATABASE_ID_ASC - DATABASE_ID_DESC - SOURCE_DATABASE_ID_ASC - SOURCE_DATABASE_ID_DESC - SOURCE_SCOPE_ASC - SOURCE_SCOPE_DESC - IS_MANAGED_ASC - IS_MANAGED_DESC -} + """ + Deployment lifecycle status: pending, provisioning, active, failed, scaled_to_zero, deactivated + """ + status: String! -"""A connection to a list of `OrgFunctionInvocation` values.""" -type OrgFunctionInvocationConnection { - """A list of `OrgFunctionInvocation` objects.""" - nodes: [OrgFunctionInvocation]! + """ + Knative service URL (http://{service-name}.{namespace}.svc.cluster.local) — populated after provisioning + """ + serviceUrl: String """ - A list of edges which contains the `OrgFunctionInvocation` and cursor to aid in pagination. + 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 """ - edges: [OrgFunctionInvocationEdge]! + serviceName: String - """Information to aid in pagination.""" - pageInfo: PageInfo! + """Deployment revision number (incremented on each redeployment)""" + revision: Int! """ - The count of *all* `OrgFunctionInvocation` you could get from the connection. + Logical image name — the handler identity and grouping key (e.g. fn-email). No registry host or tag; tag lives in image_version. """ - totalCount: Int! -} + image: String! -""" -Function invocation log — INSERT to call a function (business-layer, metered). Linked to definitions by task_identifier string. -""" -type OrgFunctionInvocation { - """Invocation creation timestamp (partition key)""" - createdAt: Datetime! + """Image tag/version for the handler container (e.g. latest, 2.6.4)""" + imageVersion: String! - """Unique invocation identifier""" - id: UUID! + """ + Handler directory name (e.g. email, document) — used as FN_HANDLER_NAME in combined-image mode to select the entry point + """ + handlerName: String - """Who triggered the invocation (NULL for system/cron)""" - actorId: UUID + """Max concurrent requests per pod (NULL = inherit from definition)""" + concurrency: Int """ - Function routing slug (scope:name). Links to function_definitions.task_identifier by convention — no FK. + Minimum replica count (NULL = inherit from definition or Knative default) """ - taskIdentifier: String! + scaleMin: Int - """Function input payload""" - payload: JSON + """ + Maximum replica count (NULL = inherit from definition or Knative default) + """ + scaleMax: Int - """Lifecycle: pending → running → completed/failed/cancelled""" - status: String! + """Request timeout override in seconds (NULL = inherit from definition)""" + timeoutSeconds: Int - """Function return value (success) or structured error (failure)""" - result: JSON + """ + K8s resource spec override: {"requests":{"cpu":"100m","memory":"128Mi"},"limits":{...}} + """ + resources: JSON - """Error message when status is failed""" - error: String + """Most recent provisioning or runtime error message""" + lastError: String - """Wall-clock execution time in milliseconds""" - durationMs: Int + """Timestamp of the most recent error""" + lastErrorAt: Datetime - """FK to app_jobs.jobs — the underlying transport""" - jobId: BigInt + """Cumulative error count for this deployment""" + errorCount: Int! - """When execution started""" - startedAt: Datetime + """Key/value pairs for selecting and filtering deployments""" + labels: JSON! - """When execution completed""" - completedAt: Datetime + """Freeform metadata for tooling and operational notes""" + annotations: JSON! - """Parent invocation when this is a child node of a flow graph execution""" - parentInvocationId: UUID + """ + Reads a single `PlatformNamespace` that is related to this `PlatformFunctionDeployment`. + """ + namespace: PlatformNamespace +} - """Groups all node invocations from a single flow graph execution""" - graphExecutionId: UUID +"""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 } """ -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 `OrgFunctionInvocation` edge in the connection.""" -type OrgFunctionInvocationEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `OrgFunctionInvocation` at the end of the edge.""" - node: OrgFunctionInvocation -} - -""" -A filter to be used against `OrgFunctionInvocation` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `PlatformFunctionDeployment` object types. All fields are combined with a logical ‘and.’ """ -input OrgFunctionInvocationFilter { - """Filter by the object’s `createdAt` field.""" - createdAt: DatetimeFilter - +input PlatformFunctionDeploymentFilter { """Filter by the object’s `id` field.""" id: UUIDFilter - """Filter by the object’s `actorId` field.""" - actorId: UUIDFilter + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter - """Filter by the object’s `taskIdentifier` field.""" - taskIdentifier: StringFilter + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter - """Filter by the object’s `payload` field.""" - payload: JSONFilter + """Filter by the object’s `namespaceId` field.""" + namespaceId: UUIDFilter """Filter by the object’s `status` field.""" status: StringFilter - """Filter by the object’s `result` field.""" - result: JSONFilter + """Filter by the object’s `serviceUrl` field.""" + serviceUrl: StringFilter - """Filter by the object’s `error` field.""" - error: StringFilter + """Filter by the object’s `serviceName` field.""" + serviceName: StringFilter - """Filter by the object’s `durationMs` field.""" - durationMs: IntFilter + """Filter by the object’s `revision` field.""" + revision: IntFilter - """Filter by the object’s `jobId` field.""" - jobId: BigIntFilter + """Filter by the object’s `image` field.""" + image: StringFilter - """Filter by the object’s `startedAt` field.""" - startedAt: DatetimeFilter + """Filter by the object’s `imageVersion` field.""" + imageVersion: StringFilter - """Filter by the object’s `completedAt` field.""" - completedAt: DatetimeFilter + """Filter by the object’s `handlerName` field.""" + handlerName: StringFilter - """Filter by the object’s `parentInvocationId` field.""" - parentInvocationId: UUIDFilter + """Filter by the object’s `concurrency` field.""" + concurrency: IntFilter - """Filter by the object’s `graphExecutionId` field.""" - graphExecutionId: UUIDFilter + """Filter by the object’s `scaleMin` field.""" + scaleMin: IntFilter + + """Filter by the object’s `scaleMax` field.""" + scaleMax: IntFilter + + """Filter by the object’s `timeoutSeconds` field.""" + timeoutSeconds: IntFilter + + """Filter by the object’s `resources` field.""" + resources: JSONFilter + + """Filter by the object’s `lastError` field.""" + lastError: StringFilter + + """Filter by the object’s `lastErrorAt` field.""" + lastErrorAt: DatetimeFilter + + """Filter by the object’s `errorCount` field.""" + errorCount: IntFilter + + """Filter by the object’s `labels` field.""" + labels: JSONFilter + + """Filter by the object’s `annotations` field.""" + annotations: JSONFilter """Checks for all expressions in this list.""" - and: [OrgFunctionInvocationFilter!] + and: [PlatformFunctionDeploymentFilter!] """Checks for any expressions in this list.""" - or: [OrgFunctionInvocationFilter!] + or: [PlatformFunctionDeploymentFilter!] """Negates the expression.""" - not: OrgFunctionInvocationFilter + not: PlatformFunctionDeploymentFilter + + """Filter by the object’s `namespace` relation.""" + namespace: PlatformNamespaceFilter } """ -A filter to be used against BigInt fields. All fields are combined with a logical ‘and.’ +A filter to be used against `PlatformNamespace` object types. All fields are combined with a logical ‘and.’ """ -input BigIntFilter { - """ - Is null (if `true` is specified) or is not null (if `false` is specified). - """ - isNull: Boolean +input PlatformNamespaceFilter { + """Filter by the object’s `id` field.""" + id: UUIDFilter - """Equal to the specified value.""" - equalTo: BigInt + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter - """Not equal to the specified value.""" - notEqualTo: BigInt + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter - """ - Not equal to the specified value, treating null like an ordinary value. - """ - distinctFrom: BigInt + """Filter by the object’s `name` field.""" + name: StringFilter - """Equal to the specified value, treating null like an ordinary value.""" - notDistinctFrom: BigInt + """Filter by the object’s `namespaceName` field.""" + namespaceName: StringFilter - """Included in the specified list.""" - in: [BigInt!] + """Filter by the object’s `description` field.""" + description: StringFilter - """Not included in the specified list.""" - notIn: [BigInt!] + """Filter by the object’s `isActive` field.""" + isActive: BooleanFilter - """Less than the specified value.""" - lessThan: BigInt + """Filter by the object’s `status` field.""" + status: StringFilter - """Less than or equal to the specified value.""" - lessThanOrEqualTo: BigInt + """Filter by the object’s `lastError` field.""" + lastError: StringFilter - """Greater than the specified value.""" - greaterThan: BigInt + """Filter by the object’s `labels` field.""" + labels: JSONFilter - """Greater than or equal to the specified value.""" - greaterThanOrEqualTo: BigInt -} + """Filter by the object’s `annotations` field.""" + annotations: JSONFilter -"""Methods to use when ordering `OrgFunctionInvocation`.""" -enum OrgFunctionInvocationOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - CREATED_AT_ASC - CREATED_AT_DESC - ID_ASC - ID_DESC - ACTOR_ID_ASC - ACTOR_ID_DESC - TASK_IDENTIFIER_ASC - TASK_IDENTIFIER_DESC - PAYLOAD_ASC - PAYLOAD_DESC - STATUS_ASC - STATUS_DESC - RESULT_ASC - RESULT_DESC - ERROR_ASC - ERROR_DESC - DURATION_MS_ASC - DURATION_MS_DESC - JOB_ID_ASC - JOB_ID_DESC - STARTED_AT_ASC - STARTED_AT_DESC - COMPLETED_AT_ASC - COMPLETED_AT_DESC - PARENT_INVOCATION_ID_ASC - PARENT_INVOCATION_ID_DESC - GRAPH_EXECUTION_ID_ASC - GRAPH_EXECUTION_ID_DESC -} + """Filter by the object’s `isManaged` field.""" + isManaged: BooleanFilter -"""A connection to a list of `FunctionInvocation` values.""" -type FunctionInvocationConnection { - """A list of `FunctionInvocation` objects.""" - nodes: [FunctionInvocation]! + """Checks for all expressions in this list.""" + and: [PlatformNamespaceFilter!] - """ - A list of edges which contains the `FunctionInvocation` and cursor to aid in pagination. - """ - edges: [FunctionInvocationEdge]! + """Checks for any expressions in this list.""" + or: [PlatformNamespaceFilter!] - """Information to aid in pagination.""" - pageInfo: PageInfo! + """Negates the expression.""" + not: PlatformNamespaceFilter """ - The count of *all* `FunctionInvocation` you could get from the connection. + Filter by the object’s `platformFunctionDeploymentsByNamespaceId` relation. """ - totalCount: Int! -} - -""" -Function invocation log — INSERT to call a function (business-layer, metered). Linked to definitions by task_identifier string. -""" -type FunctionInvocation { - """Invocation creation timestamp (partition key)""" - createdAt: Datetime! + platformFunctionDeploymentsByNamespaceId: PlatformNamespaceToManyPlatformFunctionDeploymentFilter - """Unique invocation identifier""" - id: UUID! + """`platformFunctionDeploymentsByNamespaceId` exist.""" + platformFunctionDeploymentsByNamespaceIdExist: Boolean - """Who triggered the invocation (NULL for system/cron)""" - actorId: UUID + """Filter by the object’s `platformResourcesByNamespaceId` relation.""" + platformResourcesByNamespaceId: PlatformNamespaceToManyPlatformResourceFilter - """Database that owns this resource (database-scoped isolation)""" - databaseId: UUID! + """`platformResourcesByNamespaceId` exist.""" + platformResourcesByNamespaceIdExist: Boolean """ - Function routing slug (scope:name). Links to function_definitions.task_identifier by convention — no FK. + Filter by the object’s `platformResourceDefinitionsByNamespaceId` relation. """ - taskIdentifier: String! - - """Function input payload""" - payload: JSON - - """Lifecycle: pending → running → completed/failed/cancelled""" - status: String! - - """Function return value (success) or structured error (failure)""" - result: JSON - - """Error message when status is failed""" - error: String - - """Wall-clock execution time in milliseconds""" - durationMs: Int + platformResourceDefinitionsByNamespaceId: PlatformNamespaceToManyPlatformResourceDefinitionFilter - """FK to app_jobs.jobs — the underlying transport""" - jobId: BigInt - - """When execution started""" - startedAt: Datetime + """`platformResourceDefinitionsByNamespaceId` exist.""" + platformResourceDefinitionsByNamespaceIdExist: Boolean +} - """When execution completed""" - completedAt: 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 at least one related entity matches.""" + some: PlatformFunctionDeploymentFilter - """Parent invocation when this is a child node of a flow graph execution""" - parentInvocationId: UUID + """Filters to entities where every related entity matches.""" + every: PlatformFunctionDeploymentFilter - """Groups all node invocations from a single flow graph execution""" - graphExecutionId: UUID + """Filters to entities where no related entity matches.""" + none: PlatformFunctionDeploymentFilter } -"""A `FunctionInvocation` edge in the connection.""" -type FunctionInvocationEdge { - """A cursor for use in pagination.""" - cursor: Cursor +""" +A filter to be used against many `PlatformResource` object types. All fields are combined with a logical ‘and.’ +""" +input PlatformNamespaceToManyPlatformResourceFilter { + """Filters to entities where at least one related entity matches.""" + some: PlatformResourceFilter - """The `FunctionInvocation` at the end of the edge.""" - node: FunctionInvocation + """Filters to entities where every related entity matches.""" + every: PlatformResourceFilter + + """Filters to entities where no related entity matches.""" + none: PlatformResourceFilter } """ -A filter to be used against `FunctionInvocation` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `PlatformResource` object types. All fields are combined with a logical ‘and.’ """ -input FunctionInvocationFilter { - """Filter by the object’s `createdAt` field.""" - createdAt: DatetimeFilter - +input PlatformResourceFilter { """Filter by the object’s `id` field.""" id: UUIDFilter - """Filter by the object’s `actorId` field.""" - actorId: UUIDFilter + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter - """Filter by the object’s `databaseId` field.""" - databaseId: UUIDFilter + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter - """Filter by the object’s `taskIdentifier` field.""" - taskIdentifier: StringFilter + """Filter by the object’s `createdBy` field.""" + createdBy: UUIDFilter - """Filter by the object’s `payload` field.""" - payload: JSONFilter + """Filter by the object’s `updatedBy` field.""" + updatedBy: UUIDFilter + + """Filter by the object’s `namespaceId` field.""" + namespaceId: UUIDFilter + + """Filter by the object’s `kind` field.""" + kind: StringFilter + + """Filter by the object’s `name` field.""" + name: StringFilter + + """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 `result` field.""" - result: JSONFilter - - """Filter by the object’s `error` field.""" - error: StringFilter + """Filter by the object’s `statusObserved` field.""" + statusObserved: JSONFilter - """Filter by the object’s `durationMs` field.""" - durationMs: IntFilter + """Filter by the object’s `lastError` field.""" + lastError: StringFilter - """Filter by the object’s `jobId` field.""" - jobId: BigIntFilter + """Filter by the object’s `errorCount` field.""" + errorCount: IntFilter - """Filter by the object’s `startedAt` field.""" - startedAt: DatetimeFilter + """Filter by the object’s `labels` field.""" + labels: JSONFilter - """Filter by the object’s `completedAt` field.""" - completedAt: DatetimeFilter + """Filter by the object’s `annotations` field.""" + annotations: JSONFilter - """Filter by the object’s `parentInvocationId` field.""" - parentInvocationId: UUIDFilter + """Filter by the object’s `integrations` field.""" + integrations: StringListFilter - """Filter by the object’s `graphExecutionId` field.""" - graphExecutionId: UUIDFilter + """Filter by the object’s `resourceDefinitionId` field.""" + resourceDefinitionId: UUIDFilter """Checks for all expressions in this list.""" - and: [FunctionInvocationFilter!] + and: [PlatformResourceFilter!] """Checks for any expressions in this list.""" - or: [FunctionInvocationFilter!] + or: [PlatformResourceFilter!] """Negates the expression.""" - not: FunctionInvocationFilter -} - -"""Methods to use when ordering `FunctionInvocation`.""" -enum FunctionInvocationOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - CREATED_AT_ASC - CREATED_AT_DESC - ID_ASC - ID_DESC - ACTOR_ID_ASC - ACTOR_ID_DESC - DATABASE_ID_ASC - DATABASE_ID_DESC - TASK_IDENTIFIER_ASC - TASK_IDENTIFIER_DESC - PAYLOAD_ASC - PAYLOAD_DESC - STATUS_ASC - STATUS_DESC - RESULT_ASC - RESULT_DESC - ERROR_ASC - ERROR_DESC - DURATION_MS_ASC - DURATION_MS_DESC - JOB_ID_ASC - JOB_ID_DESC - STARTED_AT_ASC - STARTED_AT_DESC - COMPLETED_AT_ASC - COMPLETED_AT_DESC - PARENT_INVOCATION_ID_ASC - PARENT_INVOCATION_ID_DESC - GRAPH_EXECUTION_ID_ASC - GRAPH_EXECUTION_ID_DESC -} + not: PlatformResourceFilter -"""A connection to a list of `PlatformNamespaceEvent` values.""" -type PlatformNamespaceEventConnection { - """A list of `PlatformNamespaceEvent` objects.""" - nodes: [PlatformNamespaceEvent]! + """Filter by the object’s `namespace` relation.""" + namespace: PlatformNamespaceFilter - """ - A list of edges which contains the `PlatformNamespaceEvent` and cursor to aid in pagination. - """ - edges: [PlatformNamespaceEventEdge]! + """Filter by the object’s `resourceDefinition` relation.""" + resourceDefinition: PlatformResourceDefinitionFilter - """Information to aid in pagination.""" - pageInfo: PageInfo! + """A related `resourceDefinition` exists.""" + resourceDefinitionExists: Boolean """ - The count of *all* `PlatformNamespaceEvent` you could get from the connection. + Filter by the object’s `platformResourceStatusChecksByResourceId` relation. """ - totalCount: Int! + platformResourceStatusChecksByResourceId: PlatformResourceToManyPlatformResourceStatusCheckFilter + + """`platformResourceStatusChecksByResourceId` exist.""" + platformResourceStatusChecksByResourceIdExist: Boolean } """ -Namespace lifecycle events — audit log of creation, activation, deactivation, label changes +A filter to be used against `PlatformResourceDefinition` object types. All fields are combined with a logical ‘and.’ """ -type PlatformNamespaceEvent { - """Event timestamp (partition key)""" - createdAt: Datetime! +input PlatformResourceDefinitionFilter { + """Filter by the object’s `id` field.""" + id: UUIDFilter - """Unique event identifier""" - id: UUID! + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter - """Namespace this event belongs to""" - namespaceId: UUID! + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter - """ - Event type: created, activated, deactivated, labels_updated, annotations_updated, renamed - """ - eventType: String! + """Filter by the object’s `createdBy` field.""" + createdBy: UUIDFilter - """User who triggered this event (NULL for system/automated)""" - actorId: UUID + """Filter by the object’s `updatedBy` field.""" + updatedBy: UUIDFilter - """Human-readable description of the event""" - message: String + """Filter by the object’s `namespaceId` field.""" + namespaceId: UUIDFilter - """Structured context (old/new values, labels diff, etc.)""" - metadata: JSON + """Filter by the object’s `kind` field.""" + kind: StringFilter - """CPU usage in millicores at time of event""" - cpuMillicores: Int + """Filter by the object’s `name` field.""" + name: StringFilter - """Memory usage in bytes at time of event""" - memoryBytes: BigInt + """Filter by the object’s `slug` field.""" + slug: StringFilter - """Storage usage in bytes at time of event""" - storageBytes: BigInt + """Filter by the object’s `description` field.""" + description: StringFilter - """Network ingress in bytes during event window""" - networkIngressBytes: BigInt + """Filter by the object’s `defaultSpec` field.""" + defaultSpec: JSONFilter - """Network egress in bytes during event window""" - networkEgressBytes: BigInt + """Filter by the object’s `integrations` field.""" + integrations: StringListFilter - """Number of active pods in the namespace at time of event""" - podCount: Int + """Filter by the object’s `labels` field.""" + labels: JSONFilter - """Additional resource metrics (gpu, replicas, quotas, etc.)""" - metrics: JSON + """Filter by the object’s `annotations` field.""" + annotations: JSONFilter - """Database that owns this resource (database-scoped isolation)""" - databaseId: UUID! -} + """Filter by the object’s `stepUpMinAge` field.""" + stepUpMinAge: IntervalFilter -"""A `PlatformNamespaceEvent` edge in the connection.""" -type PlatformNamespaceEventEdge { - """A cursor for use in pagination.""" - cursor: Cursor + """Checks for all expressions in this list.""" + and: [PlatformResourceDefinitionFilter!] - """The `PlatformNamespaceEvent` at the end of the edge.""" - node: PlatformNamespaceEvent + """Checks for any expressions in this list.""" + or: [PlatformResourceDefinitionFilter!] + + """Negates the expression.""" + not: PlatformResourceDefinitionFilter + + """Filter by the object’s `namespace` relation.""" + namespace: PlatformNamespaceFilter } """ -A filter to be used against `PlatformNamespaceEvent` object types. All fields are combined with a logical ‘and.’ +A filter to be used against Interval fields. All fields are combined with a logical ‘and.’ """ -input PlatformNamespaceEventFilter { - """Filter by the object’s `createdAt` field.""" - createdAt: DatetimeFilter - - """Filter by the object’s `id` field.""" - id: UUIDFilter +input IntervalFilter { + """ + Is null (if `true` is specified) or is not null (if `false` is specified). + """ + isNull: Boolean - """Filter by the object’s `namespaceId` field.""" - namespaceId: UUIDFilter + """Equal to the specified value.""" + equalTo: IntervalInput - """Filter by the object’s `eventType` field.""" - eventType: StringFilter + """Not equal to the specified value.""" + notEqualTo: IntervalInput - """Filter by the object’s `actorId` field.""" - actorId: UUIDFilter + """ + Not equal to the specified value, treating null like an ordinary value. + """ + distinctFrom: IntervalInput - """Filter by the object’s `message` field.""" - message: StringFilter + """Equal to the specified value, treating null like an ordinary value.""" + notDistinctFrom: IntervalInput - """Filter by the object’s `metadata` field.""" - metadata: JSONFilter + """Included in the specified list.""" + in: [IntervalInput!] - """Filter by the object’s `cpuMillicores` field.""" - cpuMillicores: IntFilter + """Not included in the specified list.""" + notIn: [IntervalInput!] - """Filter by the object’s `memoryBytes` field.""" - memoryBytes: BigIntFilter + """Less than the specified value.""" + lessThan: IntervalInput - """Filter by the object’s `storageBytes` field.""" - storageBytes: BigIntFilter + """Less than or equal to the specified value.""" + lessThanOrEqualTo: IntervalInput - """Filter by the object’s `networkIngressBytes` field.""" - networkIngressBytes: BigIntFilter + """Greater than the specified value.""" + greaterThan: IntervalInput - """Filter by the object’s `networkEgressBytes` field.""" - networkEgressBytes: BigIntFilter + """Greater than or equal to the specified value.""" + greaterThanOrEqualTo: IntervalInput +} - """Filter by the object’s `podCount` field.""" - podCount: IntFilter +""" +An interval of time that has passed where the smallest distinct unit is a second. +""" +input IntervalInput { + """ + A quantity of seconds. This is the only non-integer field, as all the other + fields will dump their overflow into a smaller unit of time. Intervals don’t + have a smaller unit than seconds. + """ + seconds: Float - """Filter by the object’s `metrics` field.""" - metrics: JSONFilter + """A quantity of minutes.""" + minutes: Int - """Filter by the object’s `databaseId` field.""" - databaseId: UUIDFilter + """A quantity of hours.""" + hours: Int - """Checks for all expressions in this list.""" - and: [PlatformNamespaceEventFilter!] + """A quantity of days.""" + days: Int - """Checks for any expressions in this list.""" - or: [PlatformNamespaceEventFilter!] + """A quantity of months.""" + months: Int - """Negates the expression.""" - not: PlatformNamespaceEventFilter + """A quantity of years.""" + years: Int } -"""Methods to use when ordering `PlatformNamespaceEvent`.""" -enum PlatformNamespaceEventOrderBy { +""" +A filter to be used against many `PlatformResourceStatusCheck` object types. All fields are combined with a logical ‘and.’ +""" +input PlatformResourceToManyPlatformResourceStatusCheckFilter { + """Filters to entities where at least one related entity matches.""" + some: PlatformResourceStatusCheckFilter + + """Filters to entities where every related entity matches.""" + every: PlatformResourceStatusCheckFilter + + """Filters to entities where no related entity matches.""" + none: PlatformResourceStatusCheckFilter +} + +""" +A filter to be used against `PlatformResourceStatusCheck` object types. All fields are combined with a logical ‘and.’ +""" +input PlatformResourceStatusCheckFilter { + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `resourceId` field.""" + resourceId: UUIDFilter + + """Filter by the object’s `requestedBy` field.""" + requestedBy: UUIDFilter + + """Filter by the object’s `requestedAt` field.""" + requestedAt: DatetimeFilter + + """Filter by the object’s `completedAt` field.""" + completedAt: DatetimeFilter + + """Filter by the object’s `status` field.""" + status: StringFilter + + """Filter by the object’s `result` field.""" + result: JSONFilter + + """Checks for all expressions in this list.""" + and: [PlatformResourceStatusCheckFilter!] + + """Checks for any expressions in this list.""" + or: [PlatformResourceStatusCheckFilter!] + + """Negates the expression.""" + not: PlatformResourceStatusCheckFilter + + """Filter by the object’s `resource` relation.""" + resource: PlatformResourceFilter +} + +""" +A filter to be used against many `PlatformResourceDefinition` object types. All fields are combined with a logical ‘and.’ +""" +input PlatformNamespaceToManyPlatformResourceDefinitionFilter { + """Filters to entities where at least one related entity matches.""" + some: PlatformResourceDefinitionFilter + + """Filters to entities where every related entity matches.""" + every: PlatformResourceDefinitionFilter + + """Filters to entities where no related entity matches.""" + none: PlatformResourceDefinitionFilter +} + +"""Methods to use when ordering `PlatformFunctionDeployment`.""" +enum PlatformFunctionDeploymentOrderBy { NATURAL PRIMARY_KEY_ASC PRIMARY_KEY_DESC - CREATED_AT_ASC - CREATED_AT_DESC ID_ASC ID_DESC + CREATED_AT_ASC + CREATED_AT_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC NAMESPACE_ID_ASC NAMESPACE_ID_DESC - EVENT_TYPE_ASC - EVENT_TYPE_DESC - ACTOR_ID_ASC - ACTOR_ID_DESC - MESSAGE_ASC - MESSAGE_DESC - METADATA_ASC - METADATA_DESC - CPU_MILLICORES_ASC - CPU_MILLICORES_DESC - MEMORY_BYTES_ASC - MEMORY_BYTES_DESC - STORAGE_BYTES_ASC - STORAGE_BYTES_DESC - NETWORK_INGRESS_BYTES_ASC - NETWORK_INGRESS_BYTES_DESC - NETWORK_EGRESS_BYTES_ASC - NETWORK_EGRESS_BYTES_DESC - POD_COUNT_ASC - POD_COUNT_DESC - METRICS_ASC - METRICS_DESC - DATABASE_ID_ASC - DATABASE_ID_DESC + STATUS_ASC + STATUS_DESC + SERVICE_URL_ASC + SERVICE_URL_DESC + SERVICE_NAME_ASC + SERVICE_NAME_DESC + REVISION_ASC + REVISION_DESC + IMAGE_ASC + IMAGE_DESC + IMAGE_VERSION_ASC + IMAGE_VERSION_DESC + HANDLER_NAME_ASC + HANDLER_NAME_DESC + CONCURRENCY_ASC + CONCURRENCY_DESC + SCALE_MIN_ASC + SCALE_MIN_DESC + SCALE_MAX_ASC + SCALE_MAX_DESC + TIMEOUT_SECONDS_ASC + TIMEOUT_SECONDS_DESC + RESOURCES_ASC + RESOURCES_DESC + LAST_ERROR_ASC + LAST_ERROR_DESC + LAST_ERROR_AT_ASC + LAST_ERROR_AT_DESC + ERROR_COUNT_ASC + ERROR_COUNT_DESC + LABELS_ASC + LABELS_DESC + ANNOTATIONS_ASC + ANNOTATIONS_DESC } -"""A connection to a list of `FunctionGraphExecution` values.""" -type FunctionGraphExecutionConnection { - """A list of `FunctionGraphExecution` objects.""" - nodes: [FunctionGraphExecution]! +"""A connection to a list of `PlatformResource` values.""" +type PlatformResourceConnection { + """A list of `PlatformResource` objects.""" + nodes: [PlatformResource]! """ - A list of edges which contains the `FunctionGraphExecution` and cursor to aid in pagination. + A list of edges which contains the `PlatformResource` and cursor to aid in pagination. """ - edges: [FunctionGraphExecutionEdge]! + edges: [PlatformResourceEdge]! """Information to aid in pagination.""" pageInfo: PageInfo! """ - The count of *all* `FunctionGraphExecution` you could get from the connection. + The count of *all* `PlatformResource` you could get from the connection. """ totalCount: Int! } -"""Ephemeral execution state for flow graph evaluation""" -type FunctionGraphExecution { - """Execution start timestamp""" - startedAt: Datetime! - - """Unique execution identifier""" - id: UUID! - - """FK to the graph definition being executed""" - graphId: UUID! - - """Parent function_invocations row (for metering)""" - invocationId: UUID - - """Scope for multi-tenant isolation""" - databaseId: UUID! +"""A `PlatformResource` edge in the connection.""" +type PlatformResourceEdge { + """A cursor for use in pagination.""" + cursor: Cursor - """Target output boundary node name to resolve""" - outputNode: String! + """The `PlatformResource` at the end of the edge.""" + node: PlatformResource +} - """Target output port name (default: value)""" - outputPort: String! +"""Methods to use when ordering `PlatformResource`.""" +enum PlatformResourceOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + CREATED_AT_ASC + CREATED_AT_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC + CREATED_BY_ASC + CREATED_BY_DESC + UPDATED_BY_ASC + UPDATED_BY_DESC + NAMESPACE_ID_ASC + NAMESPACE_ID_DESC + KIND_ASC + KIND_DESC + NAME_ASC + NAME_DESC + SLUG_ASC + SLUG_DESC + SPEC_ASC + SPEC_DESC + STATUS_ASC + STATUS_DESC + STATUS_OBSERVED_ASC + STATUS_OBSERVED_DESC + LAST_ERROR_ASC + LAST_ERROR_DESC + ERROR_COUNT_ASC + ERROR_COUNT_DESC + LABELS_ASC + LABELS_DESC + ANNOTATIONS_ASC + ANNOTATIONS_DESC + REQUIRED_SECRETS_ASC + REQUIRED_SECRETS_DESC + REQUIRED_CONFIGS_ASC + REQUIRED_CONFIGS_DESC + INTEGRATIONS_ASC + INTEGRATIONS_DESC + RESOURCE_DEFINITION_ID_ASC + RESOURCE_DEFINITION_ID_DESC +} - """Lifecycle: pending → running → completed/failed/cancelled""" - status: String! +"""A connection to a list of `PlatformResourceDefinition` values.""" +type PlatformResourceDefinitionConnection { + """A list of `PlatformResourceDefinition` objects.""" + nodes: [PlatformResourceDefinition]! - """Initial inputs provided at invocation time""" - inputPayload: JSON + """ + A list of edges which contains the `PlatformResourceDefinition` and cursor to aid in pagination. + """ + edges: [PlatformResourceDefinitionEdge]! - """Final result extracted from terminal output node""" - outputPayload: JSON + """Information to aid in pagination.""" + pageInfo: PageInfo! """ - Map of node_name → execution output id (content-addressed hash reference) + The count of *all* `PlatformResourceDefinition` you could get from the connection. """ - nodeOutputs: JSON! + totalCount: Int! +} - """Pre-computed topological sort as array of wave objects""" - executionPlan: JSON +""" +Resource definitions — templates for resource kinds declaring default spec and secret/config requirements +""" +type PlatformResourceDefinition { + id: UUID! + createdAt: Datetime + updatedAt: Datetime + createdBy: UUID + updatedBy: UUID - """Index into execution_plan — tick only processes this wave""" - currentWave: Int! + """ + Namespace this definition belongs to (security boundary, maps to K8s namespace) + """ + namespaceId: UUID! - """Parent execution when this is a sub-execution""" - parentExecutionId: UUID + """ + Resource kind: Deployment, StatefulSet, Service, Ingress, Certificate, or custom kinds + """ + kind: String! - """Node name in parent execution that spawned this sub-execution""" - parentNodeName: String + """Human-readable definition name""" + name: String! - """Pinned definitions store commit for deterministic evaluation""" - definitionsCommitId: UUID + """URL-safe identifier, unique within (namespace_id, kind)""" + slug: String! - """Number of evaluate_step ticks executed""" - tickCount: Int! + """What this resource definition provides""" + description: String - """Execution completion timestamp""" - completedAt: Datetime + """Template spec for creating resource instances of this kind""" + defaultSpec: JSON! - """Maximum ticks before execution is failed (default 100)""" - maxTicks: Int! + """ + Embedded secret requirements: array of (name, required, provider) tuples. provider is the integration slug this requirement belongs to, if any. + """ + requiredSecrets: [ResourceRequirement]! - """Maximum pending jobs before execution is failed (default 50)""" - maxPendingJobs: Int! + """ + Embedded config requirements: array of (name, required, provider) tuples. provider is the integration slug this requirement belongs to, if any. + """ + requiredConfigs: [ResourceRequirement]! - """Absolute deadline — execution fails if still running after this time""" - timeoutAt: Datetime! + """ + 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]! - """Machine-readable error code when status = failed""" - errorCode: String + """Key/value pairs for selecting and filtering definitions""" + labels: JSON! - """Human-readable error description when status = failed""" - errorMessage: String + """Freeform metadata for tooling and operational notes""" + annotations: JSON! """ - Reads a single `FunctionGraph` that is related to this `FunctionGraphExecution`. + Min age before DELETE of a resource of this kind requires step-up; NULL inherits the 6h default """ - graph: FunctionGraph -} - -"""A `FunctionGraphExecution` edge in the connection.""" -type FunctionGraphExecutionEdge { - """A cursor for use in pagination.""" - cursor: Cursor + stepUpMinAge: Interval - """The `FunctionGraphExecution` at the end of the edge.""" - node: FunctionGraphExecution + """ + Reads a single `PlatformNamespace` that is related to this `PlatformResourceDefinition`. + """ + namespace: PlatformNamespace } """ -A filter to be used against `FunctionGraphExecution` object types. All fields are combined with a logical ‘and.’ +An interval of time that has passed where the smallest distinct unit is a second. """ -input FunctionGraphExecutionFilter { - """Filter by the object’s `startedAt` field.""" - startedAt: DatetimeFilter +type Interval { + """ + A quantity of seconds. This is the only non-integer field, as all the other + fields will dump their overflow into a smaller unit of time. Intervals don’t + have a smaller unit than seconds. + """ + seconds: Float - """Filter by the object’s `id` field.""" - id: UUIDFilter + """A quantity of minutes.""" + minutes: Int - """Filter by the object’s `graphId` field.""" - graphId: UUIDFilter + """A quantity of hours.""" + hours: Int - """Filter by the object’s `invocationId` field.""" - invocationId: UUIDFilter + """A quantity of days.""" + days: Int - """Filter by the object’s `databaseId` field.""" - databaseId: UUIDFilter + """A quantity of months.""" + months: Int - """Filter by the object’s `outputNode` field.""" - outputNode: StringFilter + """A quantity of years.""" + years: Int +} - """Filter by the object’s `outputPort` field.""" - outputPort: StringFilter +"""A `PlatformResourceDefinition` edge in the connection.""" +type PlatformResourceDefinitionEdge { + """A cursor for use in pagination.""" + cursor: Cursor - """Filter by the object’s `status` field.""" - status: StringFilter + """The `PlatformResourceDefinition` at the end of the edge.""" + node: PlatformResourceDefinition +} - """Filter by the object’s `inputPayload` field.""" - inputPayload: JSONFilter +"""Methods to use when ordering `PlatformResourceDefinition`.""" +enum PlatformResourceDefinitionOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + CREATED_AT_ASC + CREATED_AT_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC + CREATED_BY_ASC + CREATED_BY_DESC + UPDATED_BY_ASC + UPDATED_BY_DESC + NAMESPACE_ID_ASC + NAMESPACE_ID_DESC + KIND_ASC + KIND_DESC + NAME_ASC + NAME_DESC + SLUG_ASC + SLUG_DESC + DESCRIPTION_ASC + DESCRIPTION_DESC + DEFAULT_SPEC_ASC + DEFAULT_SPEC_DESC + REQUIRED_SECRETS_ASC + REQUIRED_SECRETS_DESC + REQUIRED_CONFIGS_ASC + REQUIRED_CONFIGS_DESC + INTEGRATIONS_ASC + INTEGRATIONS_DESC + LABELS_ASC + LABELS_DESC + ANNOTATIONS_ASC + ANNOTATIONS_DESC + STEP_UP_MIN_AGE_ASC + STEP_UP_MIN_AGE_DESC +} - """Filter by the object’s `outputPayload` field.""" - outputPayload: JSONFilter +"""Methods to use when ordering `PlatformResourceStatusCheck`.""" +enum PlatformResourceStatusCheckOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + RESOURCE_ID_ASC + RESOURCE_ID_DESC + REQUESTED_BY_ASC + REQUESTED_BY_DESC + REQUESTED_AT_ASC + REQUESTED_AT_DESC + COMPLETED_AT_ASC + COMPLETED_AT_DESC + STATUS_ASC + STATUS_DESC + RESULT_ASC + RESULT_DESC +} - """Filter by the object’s `nodeOutputs` field.""" - nodeOutputs: JSONFilter +"""A `PlatformResourceStatusCheck` edge in the connection.""" +type PlatformResourceStatusCheckEdge { + """A cursor for use in pagination.""" + cursor: Cursor - """Filter by the object’s `executionPlan` field.""" - executionPlan: JSONFilter + """The `PlatformResourceStatusCheck` at the end of the edge.""" + node: PlatformResourceStatusCheck +} - """Filter by the object’s `currentWave` field.""" - currentWave: IntFilter +"""A connection to a list of `InfraObject` values.""" +type InfraObjectConnection { + """A list of `InfraObject` objects.""" + nodes: [InfraObject]! - """Filter by the object’s `parentExecutionId` field.""" - parentExecutionId: UUIDFilter + """ + A list of edges which contains the `InfraObject` and cursor to aid in pagination. + """ + edges: [InfraObjectEdge]! - """Filter by the object’s `parentNodeName` field.""" - parentNodeName: StringFilter + """Information to aid in pagination.""" + pageInfo: PageInfo! - """Filter by the object’s `definitionsCommitId` field.""" - definitionsCommitId: UUIDFilter + """The count of *all* `InfraObject` you could get from the connection.""" + totalCount: Int! +} - """Filter by the object’s `tickCount` field.""" - tickCount: IntFilter +"""A `InfraObject` edge in the connection.""" +type InfraObjectEdge { + """A cursor for use in pagination.""" + cursor: Cursor - """Filter by the object’s `completedAt` field.""" - completedAt: DatetimeFilter + """The `InfraObject` at the end of the edge.""" + node: InfraObject +} - """Filter by the object’s `maxTicks` field.""" - maxTicks: IntFilter +""" +A filter to be used against `InfraObject` object types. All fields are combined with a logical ‘and.’ +""" +input InfraObjectFilter { + """Filter by the object’s `id` field.""" + id: UUIDFilter - """Filter by the object’s `maxPendingJobs` field.""" - maxPendingJobs: IntFilter + """Filter by the object’s `scopeId` field.""" + scopeId: UUIDFilter - """Filter by the object’s `timeoutAt` field.""" - timeoutAt: DatetimeFilter + """Filter by the object’s `kids` field.""" + kids: UUIDListFilter - """Filter by the object’s `errorCode` field.""" - errorCode: StringFilter + """Filter by the object’s `ktree` field.""" + ktree: StringListFilter - """Filter by the object’s `errorMessage` field.""" - errorMessage: StringFilter + """Filter by the object’s `data` field.""" + data: JSONFilter + + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter """Checks for all expressions in this list.""" - and: [FunctionGraphExecutionFilter!] + and: [InfraObjectFilter!] """Checks for any expressions in this list.""" - or: [FunctionGraphExecutionFilter!] + or: [InfraObjectFilter!] """Negates the expression.""" - not: FunctionGraphExecutionFilter - - """Filter by the object’s `graph` relation.""" - graph: FunctionGraphFilter -} - -"""Methods to use when ordering `FunctionGraphExecution`.""" -enum FunctionGraphExecutionOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - STARTED_AT_ASC - STARTED_AT_DESC - ID_ASC - ID_DESC - GRAPH_ID_ASC - GRAPH_ID_DESC - INVOCATION_ID_ASC - INVOCATION_ID_DESC - DATABASE_ID_ASC - DATABASE_ID_DESC - OUTPUT_NODE_ASC - OUTPUT_NODE_DESC - OUTPUT_PORT_ASC - OUTPUT_PORT_DESC - STATUS_ASC - STATUS_DESC - INPUT_PAYLOAD_ASC - INPUT_PAYLOAD_DESC - OUTPUT_PAYLOAD_ASC - OUTPUT_PAYLOAD_DESC - NODE_OUTPUTS_ASC - NODE_OUTPUTS_DESC - EXECUTION_PLAN_ASC - EXECUTION_PLAN_DESC - CURRENT_WAVE_ASC - CURRENT_WAVE_DESC - PARENT_EXECUTION_ID_ASC - PARENT_EXECUTION_ID_DESC - PARENT_NODE_NAME_ASC - PARENT_NODE_NAME_DESC - DEFINITIONS_COMMIT_ID_ASC - DEFINITIONS_COMMIT_ID_DESC - TICK_COUNT_ASC - TICK_COUNT_DESC - COMPLETED_AT_ASC - COMPLETED_AT_DESC - MAX_TICKS_ASC - MAX_TICKS_DESC - MAX_PENDING_JOBS_ASC - MAX_PENDING_JOBS_DESC - TIMEOUT_AT_ASC - TIMEOUT_AT_DESC - ERROR_CODE_ASC - ERROR_CODE_DESC - ERROR_MESSAGE_ASC - ERROR_MESSAGE_DESC + not: InfraObjectFilter } -"""A connection to a list of `FunctionDefinition` values.""" -type FunctionDefinitionConnection { - """A list of `FunctionDefinition` objects.""" - nodes: [FunctionDefinition]! - +""" +A filter to be used against UUID List fields. All fields are combined with a logical ‘and.’ +""" +input UUIDListFilter { """ - A list of edges which contains the `FunctionDefinition` and cursor to aid in pagination. + Is null (if `true` is specified) or is not null (if `false` is specified). """ - edges: [FunctionDefinitionEdge]! + isNull: Boolean - """Information to aid in pagination.""" - pageInfo: PageInfo! + """Equal to the specified value.""" + equalTo: [UUID] + + """Not equal to the specified value.""" + notEqualTo: [UUID] """ - The count of *all* `FunctionDefinition` you could get from the connection. + Not equal to the specified value, treating null like an ordinary value. """ - totalCount: Int! -} + distinctFrom: [UUID] -"""A `FunctionDefinition` edge in the connection.""" -type FunctionDefinitionEdge { - """A cursor for use in pagination.""" - cursor: Cursor + """Equal to the specified value, treating null like an ordinary value.""" + notDistinctFrom: [UUID] - """The `FunctionDefinition` at the end of the edge.""" - node: FunctionDefinition -} + """Less than the specified value.""" + lessThan: [UUID] -"""Methods to use when ordering `FunctionDefinition`.""" -enum FunctionDefinitionOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - CREATED_AT_ASC - CREATED_AT_DESC - UPDATED_AT_ASC - UPDATED_AT_DESC - SCOPE_ASC - SCOPE_DESC - NAME_ASC - NAME_DESC - TASK_IDENTIFIER_ASC - TASK_IDENTIFIER_DESC - DESCRIPTION_ASC - DESCRIPTION_DESC - IS_INVOCABLE_ASC - IS_INVOCABLE_DESC - MAX_ATTEMPTS_ASC - MAX_ATTEMPTS_DESC - PRIORITY_ASC - PRIORITY_DESC - QUEUE_NAME_ASC - QUEUE_NAME_DESC - RUNTIME_ASC - RUNTIME_DESC - IMAGE_ASC - IMAGE_DESC - CONCURRENCY_ASC - CONCURRENCY_DESC - SCALE_MIN_ASC - SCALE_MIN_DESC - SCALE_MAX_ASC - SCALE_MAX_DESC - TIMEOUT_SECONDS_ASC - TIMEOUT_SECONDS_DESC - RESOURCES_ASC - RESOURCES_DESC - IS_BUILT_IN_ASC - IS_BUILT_IN_DESC - REQUIRED_SECRETS_ASC - REQUIRED_SECRETS_DESC - REQUIRED_CONFIGS_ASC - REQUIRED_CONFIGS_DESC - REQUIRED_BUCKETS_ASC - REQUIRED_BUCKETS_DESC - REQUIRED_MODELS_ASC - REQUIRED_MODELS_DESC - INPUTS_ASC - INPUTS_DESC - OUTPUTS_ASC - OUTPUTS_DESC - PROPS_ASC - PROPS_DESC - VOLATILE_ASC - VOLATILE_DESC - ICON_ASC - ICON_DESC - CATEGORY_ASC - CATEGORY_DESC -} + """Less than or equal to the specified value.""" + lessThanOrEqualTo: [UUID] -"""Root meta schema type""" -type MetaSchema { - tables: [MetaTable!]! -} + """Greater than the specified value.""" + greaterThan: [UUID] -"""Information about a database table""" -type MetaTable { - name: String! - schemaName: String! - fields: [MetaField!]! - indexes: [MetaIndex!]! - constraints: MetaConstraints! - foreignKeyConstraints: [MetaForeignKeyConstraint!]! - primaryKeyConstraints: [MetaPrimaryKeyConstraint!]! - uniqueConstraints: [MetaUniqueConstraint!]! - relations: MetaRelations! - inflection: MetaInflection! - query: MetaQuery! + """Greater than or equal to the specified value.""" + greaterThanOrEqualTo: [UUID] - """Storage metadata (null if not a storage table)""" - storage: MetaStorage + """Contains the specified list of values.""" + contains: [UUID] - """Search metadata (null if no search configured)""" - search: MetaSearch + """Contained by the specified list of values.""" + containedBy: [UUID] - """i18n metadata (null if no @i18n tag)""" - i18n: MetaI18n + """Overlaps the specified list of values.""" + overlaps: [UUID] - """Realtime metadata (null if no @realtime tag)""" - realtime: MetaRealtime -} + """Any array item is equal to the specified value.""" + anyEqualTo: UUID -"""Information about a table field/column""" -type MetaField { - name: String! - type: MetaType! - isNotNull: Boolean! - hasDefault: Boolean! - isPrimaryKey: Boolean! - isForeignKey: Boolean! - description: String + """Any array item is not equal to the specified value.""" + anyNotEqualTo: UUID - """Enum metadata if this field has an enum type""" - enumValues: MetaEnum -} + """Any array item is less than the specified value.""" + anyLessThan: UUID -"""Information about a PostgreSQL type""" -type MetaType { - pgType: String! - gqlType: String! - isArray: Boolean! - isNotNull: Boolean - hasDefault: Boolean - subtype: String -} + """Any array item is less than or equal to the specified value.""" + anyLessThanOrEqualTo: UUID -"""Information about a PostgreSQL enum type""" -type MetaEnum { - """The PostgreSQL enum type name""" - name: String! + """Any array item is greater than the specified value.""" + anyGreaterThan: UUID - """Allowed values for this enum""" - values: [String!]! + """Any array item is greater than or equal to the specified value.""" + anyGreaterThanOrEqualTo: UUID } -"""Information about a database index""" -type MetaIndex { - name: String! - isUnique: Boolean! - isPrimary: Boolean! - columns: [String!]! - fields: [MetaField!] +"""Methods to use when ordering `InfraObject`.""" +enum InfraObjectOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + SCOPE_ID_ASC + SCOPE_ID_DESC + KIDS_ASC + KIDS_DESC + KTREE_ASC + KTREE_DESC + DATA_ASC + DATA_DESC + CREATED_AT_ASC + CREATED_AT_DESC } -"""Table constraints""" -type MetaConstraints { - primaryKey: MetaPrimaryKeyConstraint - unique: [MetaUniqueConstraint!]! - foreignKey: [MetaForeignKeyConstraint!]! -} +"""A connection to a list of `FunctionGraphObject` values.""" +type FunctionGraphObjectConnection { + """A list of `FunctionGraphObject` objects.""" + nodes: [FunctionGraphObject]! -"""Information about a primary key constraint""" -type MetaPrimaryKeyConstraint { - name: String! - fields: [MetaField!]! -} + """ + A list of edges which contains the `FunctionGraphObject` and cursor to aid in pagination. + """ + edges: [FunctionGraphObjectEdge]! -"""Information about a unique constraint""" -type MetaUniqueConstraint { - name: String! - fields: [MetaField!]! -} + """Information to aid in pagination.""" + pageInfo: PageInfo! -"""Information about a foreign key constraint""" -type MetaForeignKeyConstraint { - name: String! - fields: [MetaField!]! - referencedTable: String! - referencedFields: [String!]! - refFields: [MetaField!] - refTable: MetaRefTable + """ + The count of *all* `FunctionGraphObject` you could get from the connection. + """ + totalCount: Int! } -"""Reference to a related table""" -type MetaRefTable { - name: String! -} +"""A `FunctionGraphObject` edge in the connection.""" +type FunctionGraphObjectEdge { + """A cursor for use in pagination.""" + cursor: Cursor -"""Table relations""" -type MetaRelations { - belongsTo: [MetaBelongsToRelation!]! - has: [MetaHasRelation!]! - hasOne: [MetaHasRelation!]! - hasMany: [MetaHasRelation!]! - manyToMany: [MetaManyToManyRelation!]! + """The `FunctionGraphObject` at the end of the edge.""" + node: FunctionGraphObject } -"""A belongs-to (forward FK) relation""" -type MetaBelongsToRelation { - fieldName: String - isUnique: Boolean! - type: String - keys: [MetaField!]! - references: MetaRefTable! -} +""" +A filter to be used against `FunctionGraphObject` object types. All fields are combined with a logical ‘and.’ +""" +input FunctionGraphObjectFilter { + """Filter by the object’s `id` field.""" + id: UUIDFilter -"""A has-one or has-many (reverse FK) relation""" -type MetaHasRelation { - fieldName: String - isUnique: Boolean! - type: String - keys: [MetaField!]! - referencedBy: MetaRefTable! -} + """Filter by the object’s `scopeId` field.""" + scopeId: UUIDFilter -"""A many-to-many relation via junction table""" -type MetaManyToManyRelation { - fieldName: String - type: String - junctionTable: MetaRefTable! - junctionLeftConstraint: MetaForeignKeyConstraint! - junctionLeftKeyAttributes: [MetaField!]! - junctionRightConstraint: MetaForeignKeyConstraint! - junctionRightKeyAttributes: [MetaField!]! - leftKeyAttributes: [MetaField!]! - rightKeyAttributes: [MetaField!]! - rightTable: MetaRefTable! -} + """Filter by the object’s `kids` field.""" + kids: UUIDListFilter -"""Table inflection names""" -type MetaInflection { - tableType: String! - allRows: String! - connection: String! - edge: String! - filterType: String - orderByType: String! - conditionType: String! - patchType: String - createInputType: String! - createPayloadType: String! - updatePayloadType: String - deletePayloadType: String! -} + """Filter by the object’s `ktree` field.""" + ktree: StringListFilter -"""Table query/mutation names""" -type MetaQuery { - all: String! - one: String - create: String - update: String - delete: String -} + """Filter by the object’s `data` field.""" + data: JSONFilter -"""Storage metadata for a table""" -type MetaStorage { - """Whether this table is a storage files table""" - isFilesTable: Boolean! + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter - """Whether this table is a storage buckets table""" - isBucketsTable: Boolean! + """Checks for all expressions in this list.""" + and: [FunctionGraphObjectFilter!] + + """Checks for any expressions in this list.""" + or: [FunctionGraphObjectFilter!] + + """Negates the expression.""" + not: FunctionGraphObjectFilter } -"""Search metadata for a table""" -type MetaSearch { - """Active search algorithms on this table""" - algorithms: [String!]! +"""Methods to use when ordering `FunctionGraphObject`.""" +enum FunctionGraphObjectOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + SCOPE_ID_ASC + SCOPE_ID_DESC + KIDS_ASC + KIDS_DESC + KTREE_ASC + KTREE_DESC + DATA_ASC + DATA_DESC + CREATED_AT_ASC + CREATED_AT_DESC +} - """Searchable columns with their algorithm""" - columns: [MetaSearchColumn!]! +"""A connection to a list of `PlatformFunctionDeploymentEvent` values.""" +type PlatformFunctionDeploymentEventConnection { + """A list of `PlatformFunctionDeploymentEvent` objects.""" + nodes: [PlatformFunctionDeploymentEvent]! - """Whether unifiedSearch composite filter is available""" - hasUnifiedSearch: Boolean! + """ + A list of edges which contains the `PlatformFunctionDeploymentEvent` and cursor to aid in pagination. + """ + edges: [PlatformFunctionDeploymentEventEdge]! - """Per-table search configuration""" - config: MetaSearchConfig + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `PlatformFunctionDeploymentEvent` you could get from the connection. + """ + totalCount: Int! } -"""A searchable column with its algorithm""" -type MetaSearchColumn { - """Column name (camelCase)""" - name: String! +""" +Deployment lifecycle events — audit log of provisioning, scaling, and failure events +""" +type PlatformFunctionDeploymentEvent { + """Event timestamp (partition key)""" + createdAt: Datetime! - """Search algorithm: tsvector, bm25, trgm, or vector""" - algorithm: String! -} + """Unique event identifier""" + id: UUID! -"""Per-table search configuration from @searchConfig smart tag""" -type MetaSearchConfig { - """JSON-encoded per-adapter score weights""" - weights: String + """Deployment this event belongs to""" + deploymentId: UUID! - """Whether recency boosting is enabled""" - boostRecent: Boolean! + """ + Event type: provisioned, scaled, failed, deactivated, redeployed, health_check + """ + eventType: String! - """Field used for recency decay""" - boostRecencyField: String + """User who triggered this event (NULL for system/automated)""" + actorId: UUID - """Exponential decay factor per day""" - boostRecencyDecay: Float + """Human-readable description of the event""" + message: String + + """Structured context (old/new values, error details, etc.)""" + metadata: JSON } -"""i18n metadata for a table with @i18n tag""" -type MetaI18n { - """Name of the translation table""" - translationTable: String! +"""A `PlatformFunctionDeploymentEvent` edge in the connection.""" +type PlatformFunctionDeploymentEventEdge { + """A cursor for use in pagination.""" + cursor: Cursor - """Fields that are translatable""" - translatableFields: [MetaI18nField!]! + """The `PlatformFunctionDeploymentEvent` at the end of the edge.""" + node: PlatformFunctionDeploymentEvent } -"""A translatable field""" -type MetaI18nField { - """GraphQL field name""" - name: String! +""" +A filter to be used against `PlatformFunctionDeploymentEvent` object types. All fields are combined with a logical ‘and.’ +""" +input PlatformFunctionDeploymentEventFilter { + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter - """PostgreSQL column type (text, citext)""" - type: String! + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `deploymentId` field.""" + deploymentId: UUIDFilter + + """Filter by the object’s `eventType` field.""" + eventType: StringFilter + + """Filter by the object’s `actorId` field.""" + actorId: UUIDFilter + + """Filter by the object’s `message` field.""" + message: StringFilter + + """Filter by the object’s `metadata` field.""" + metadata: JSONFilter + + """Checks for all expressions in this list.""" + and: [PlatformFunctionDeploymentEventFilter!] + + """Checks for any expressions in this list.""" + or: [PlatformFunctionDeploymentEventFilter!] + + """Negates the expression.""" + not: PlatformFunctionDeploymentEventFilter } -"""Realtime metadata for a table with @realtime tag""" -type MetaRealtime { - """The generated subscription field name (e.g. onPostChanged)""" - subscriptionFieldName: String! +"""Methods to use when ordering `PlatformFunctionDeploymentEvent`.""" +enum PlatformFunctionDeploymentEventOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + CREATED_AT_ASC + CREATED_AT_DESC + ID_ASC + ID_DESC + DEPLOYMENT_ID_ASC + DEPLOYMENT_ID_DESC + EVENT_TYPE_ASC + EVENT_TYPE_DESC + ACTOR_ID_ASC + ACTOR_ID_DESC + MESSAGE_ASC + MESSAGE_DESC + METADATA_ASC + METADATA_DESC +} + +"""A connection to a list of `PlatformResourceEvent` values.""" +type PlatformResourceEventConnection { + """A list of `PlatformResourceEvent` objects.""" + nodes: [PlatformResourceEvent]! + + """ + A list of edges which contains the `PlatformResourceEvent` and cursor to aid in pagination. + """ + edges: [PlatformResourceEventEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `PlatformResourceEvent` you could get from the connection. + """ + totalCount: Int! } """ -The root mutation type which contains root level fields which mutate data. +Resource lifecycle events — audit log of provisioning, updates, and failure events """ -type Mutation { - validateFunctionGraph( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: ValidateFunctionGraphInput! - ): ValidateFunctionGraphPayload - initEmptyRepo( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: InitEmptyRepoInput! - ): InitEmptyRepoPayload - setDataAtPath( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: SetDataAtPathInput! - ): SetDataAtPathPayload - importDefinitions( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: ImportDefinitionsInput! - ): ImportDefinitionsPayload - copyGraph( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CopyGraphInput! - ): CopyGraphPayload - saveGraph( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: SaveGraphInput! - ): SaveGraphPayload - addEdgeAndSave( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: AddEdgeAndSaveInput! - ): AddEdgeAndSavePayload - addNodeAndSave( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: AddNodeAndSaveInput! - ): AddNodeAndSavePayload - createFunctionGraph( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateFunctionGraphInput! - ): CreateFunctionGraphPayload - importGraphJson( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: ImportGraphJsonInput! - ): ImportGraphJsonPayload - addEdge( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: AddEdgeInput! - ): AddEdgePayload - addNode( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: AddNodeInput! - ): AddNodePayload - insertNodeAtPath( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: InsertNodeAtPathInput! - ): InsertNodeAtPathPayload - startExecution( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: StartExecutionInput! - ): StartExecutionPayload +type PlatformResourceEvent { + """Event timestamp (partition key)""" + createdAt: Datetime! - """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 + """Unique event identifier""" + id: UUID! + + """Resource this event belongs to""" + resourceId: UUID! + + """ + Event type: provisioned, provisioning, updated, failed, deprovisioned, health_check + """ + eventType: String! + + """User who triggered this event (NULL for system/automated)""" + actorId: UUID + + """Human-readable description of the event""" + message: String + + """Structured context (old/new values, error details, etc.)""" + metadata: JSON +} + +"""A `PlatformResourceEvent` edge in the connection.""" +type PlatformResourceEventEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `PlatformResourceEvent` at the end of the edge.""" + node: PlatformResourceEvent +} + +""" +A filter to be used against `PlatformResourceEvent` object types. All fields are combined with a logical ‘and.’ +""" +input PlatformResourceEventFilter { + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter + + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `resourceId` field.""" + resourceId: UUIDFilter + + """Filter by the object’s `eventType` field.""" + eventType: StringFilter + + """Filter by the object’s `actorId` field.""" + actorId: UUIDFilter + + """Filter by the object’s `message` field.""" + message: StringFilter + + """Filter by the object’s `metadata` field.""" + metadata: JSONFilter + + """Checks for all expressions in this list.""" + and: [PlatformResourceEventFilter!] + + """Checks for any expressions in this list.""" + or: [PlatformResourceEventFilter!] + + """Negates the expression.""" + not: PlatformResourceEventFilter +} + +"""Methods to use when ordering `PlatformResourceEvent`.""" +enum PlatformResourceEventOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + CREATED_AT_ASC + CREATED_AT_DESC + ID_ASC + ID_DESC + RESOURCE_ID_ASC + RESOURCE_ID_DESC + EVENT_TYPE_ASC + EVENT_TYPE_DESC + ACTOR_ID_ASC + ACTOR_ID_DESC + MESSAGE_ASC + MESSAGE_DESC + METADATA_ASC + METADATA_DESC +} + +"""A connection to a list of `ResourceStatusCheck` values.""" +type ResourceStatusCheckConnection { + """A list of `ResourceStatusCheck` objects.""" + nodes: [ResourceStatusCheck]! + + """ + A list of edges which contains the `ResourceStatusCheck` and cursor to aid in pagination. + """ + edges: [ResourceStatusCheckEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `ResourceStatusCheck` you could get from the connection. + """ + totalCount: Int! +} + +""" +On-demand resource status checks — diagnostic snapshots from the runtime (K8s status, conditions, log tails) +""" +type ResourceStatusCheck { + """Unique status check identifier""" + id: UUID! + + """Resource to check""" + resourceId: UUID! + + """Database that owns this resource (database-scoped isolation)""" + databaseId: UUID! + + """User who requested the check (NULL for system/scheduled)""" + requestedBy: UUID + + """When the check was requested""" + requestedAt: Datetime! + + """When the check completed (NULL while pending/running)""" + completedAt: Datetime + + """Check lifecycle: pending, running, completed, failed""" + status: String! + + """Diagnostic snapshot: k8s_status, conditions, pod_logs_tail, events""" + result: JSON + + """ + Reads a single `Resource` that is related to this `ResourceStatusCheck`. + """ + resource: Resource +} + +""" +Unified K8s resource declarations — stores desired state (spec) and observed state (status) for all resource kinds within a namespace +""" +type Resource { + id: UUID! + createdAt: Datetime + updatedAt: Datetime + createdBy: UUID + updatedBy: UUID + + """ + Namespace this resource belongs to (security boundary, maps to K8s namespace) + """ + namespaceId: UUID! + + """Resource kind: Deployment, StatefulSet, Service, Ingress, Certificate""" + kind: String! + + """Human-readable resource name""" + name: 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: JSON! + + """ + Resource lifecycle status: pending, provisioning, active, failed, draining, deleting + """ + status: String! + + """ + Observed state from K8s — populated by handlers after reconciliation (service_url, clone_url, replicas, etc.) + """ + statusObserved: JSON + + """Most recent provisioning or runtime error message""" + lastError: String + + """Cumulative error count for this resource""" + errorCount: Int! + + """Key/value pairs for selecting and filtering resources""" + labels: JSON! + + """Freeform metadata for tooling and operational notes""" + annotations: JSON! + + """Database that owns this resource (database-scoped isolation)""" + databaseId: UUID! + + """ + 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]! + + """ + 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]! + + """ + 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]! + + """ + Definition template this resource was created from (NULL for standalone resources) + """ + resourceDefinitionId: UUID + + """Reads a single `Namespace` that is related to this `Resource`.""" + namespace: Namespace + + """ + Reads a single `ResourceDefinition` that is related to this `Resource`. + """ + resourceDefinition: ResourceDefinition + + """Reads and enables pagination through a set of `ResourceStatusCheck`.""" + resourceStatusChecks( + """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 `FunctionGraphRef`.""" - createFunctionGraphRef( """ - 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: CreateFunctionGraphRefInput! - ): CreateFunctionGraphRefPayload + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor - """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. + A filter to be used in determining which values should be returned by the collection. """ - input: CreateFunctionGraphStoreInput! - ): CreateFunctionGraphStorePayload + where: ResourceStatusCheckFilter + + """The method to use when ordering `ResourceStatusCheck`.""" + orderBy: [ResourceStatusCheckOrderBy!] = [PRIMARY_KEY_ASC] + ): ResourceStatusCheckConnection! +} + +""" +Logical namespace containers for grouping secrets, config, functions, and other resources +""" +type Namespace { + id: UUID! + createdAt: Datetime + updatedAt: Datetime + + """Human-readable namespace name (e.g. default, production, oauth)""" + name: String! + + """ + Globally unique computed namespace identifier via inflection.underscore + """ + namespaceName: String! + + """Optional human-readable description of this namespace""" + description: String + + """Whether this namespace is active (soft-disable for filtering)""" + isActive: Boolean! + + """ + Namespace provisioning lifecycle status: pending, provisioning, active, failed + """ + status: String! + + """Most recent provisioning or reconcile error message""" + lastError: String + + """Key/value pairs for selecting and filtering namespaces""" + labels: JSON! + + """Freeform metadata for tooling and operational notes""" + annotations: JSON! + + """Database that owns this resource (database-scoped isolation)""" + databaseId: UUID! + + """ + true = provisioned by the platform via jobs, false = unmanaged/platform-native (bootstrapped externally) + """ + isManaged: Boolean! + + """Reads and enables pagination through a set of `FunctionDeployment`.""" + functionDeployments( + """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 `FunctionGraphObject`.""" - createFunctionGraphObject( """ - 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: CreateFunctionGraphObjectInput! - ): CreateFunctionGraphObjectPayload + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor - """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. + A filter to be used in determining which values should be returned by the collection. """ - input: CreateFunctionDeploymentEventInput! - ): CreateFunctionDeploymentEventPayload + where: FunctionDeploymentFilter + + """The method to use when ordering `FunctionDeployment`.""" + orderBy: [FunctionDeploymentOrderBy!] = [PRIMARY_KEY_ASC] + ): FunctionDeploymentConnection! + + """Reads and enables pagination through a set of `Resource`.""" + resources( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: ResourceFilter + + """The method to use when ordering `Resource`.""" + orderBy: [ResourceOrderBy!] = [PRIMARY_KEY_ASC] + ): ResourceConnection! + + """Reads and enables pagination through a set of `ResourceDefinition`.""" + resourceDefinitions( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: ResourceDefinitionFilter + + """The method to use when ordering `ResourceDefinition`.""" + orderBy: [ResourceDefinitionOrderBy!] = [PRIMARY_KEY_ASC] + ): ResourceDefinitionConnection! +} + +"""A connection to a list of `FunctionDeployment` values.""" +type FunctionDeploymentConnection { + """A list of `FunctionDeployment` objects.""" + nodes: [FunctionDeployment]! + + """ + A list of edges which contains the `FunctionDeployment` and cursor to aid in pagination. + """ + edges: [FunctionDeploymentEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `FunctionDeployment` you could get from the connection. + """ + totalCount: Int! +} + +""" +Function deployment bindings — ties a handler image to a namespace for Knative provisioning and routing (one row per handler image per namespace) +""" +type FunctionDeployment { + id: UUID! + createdAt: Datetime + updatedAt: Datetime + + """Target namespace for this deployment (maps to a K8s namespace)""" + namespaceId: UUID! + + """ + Deployment lifecycle status: pending, provisioning, active, failed, scaled_to_zero, deactivated + """ + status: String! + + """ + Knative service URL (http://{service-name}.{namespace}.svc.cluster.local) — populated after provisioning + """ + serviceUrl: String + + """ + 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 + + """Deployment revision number (incremented on each redeployment)""" + revision: Int! + + """ + 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! + + """ + Handler directory name (e.g. email, document) — used as FN_HANDLER_NAME in combined-image mode to select the entry point + """ + handlerName: String + + """Max concurrent requests per pod (NULL = inherit from definition)""" + concurrency: Int + + """ + Minimum replica count (NULL = inherit from definition or Knative default) + """ + scaleMin: Int + + """ + Maximum replica count (NULL = inherit from definition or Knative default) + """ + scaleMax: Int + + """Request timeout override in seconds (NULL = inherit from definition)""" + timeoutSeconds: Int + + """ + K8s resource spec override: {"requests":{"cpu":"100m","memory":"128Mi"},"limits":{...}} + """ + resources: JSON + + """Most recent provisioning or runtime error message""" + lastError: String + + """Timestamp of the most recent error""" + lastErrorAt: Datetime + + """Cumulative error count for this deployment""" + errorCount: Int! + + """Key/value pairs for selecting and filtering deployments""" + labels: JSON! + + """Freeform metadata for tooling and operational notes""" + annotations: JSON! + + """Database that owns this resource (database-scoped isolation)""" + databaseId: UUID! + + """ + Reads a single `Namespace` that is related to this `FunctionDeployment`. + """ + namespace: Namespace +} + +"""A `FunctionDeployment` edge in the connection.""" +type FunctionDeploymentEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `FunctionDeployment` at the end of the edge.""" + node: FunctionDeployment +} + +""" +A filter to be used against `FunctionDeployment` object types. All fields are combined with a logical ‘and.’ +""" +input FunctionDeploymentFilter { + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter + + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter + + """Filter by the object’s `namespaceId` field.""" + namespaceId: UUIDFilter + + """Filter by the object’s `status` field.""" + status: StringFilter + + """Filter by the object’s `serviceUrl` field.""" + serviceUrl: StringFilter + + """Filter by the object’s `serviceName` field.""" + serviceName: StringFilter + + """Filter by the object’s `revision` field.""" + revision: IntFilter + + """Filter by the object’s `image` field.""" + image: StringFilter + + """Filter by the object’s `imageVersion` field.""" + imageVersion: StringFilter + + """Filter by the object’s `handlerName` field.""" + handlerName: StringFilter + + """Filter by the object’s `concurrency` field.""" + concurrency: IntFilter + + """Filter by the object’s `scaleMin` field.""" + scaleMin: IntFilter + + """Filter by the object’s `scaleMax` field.""" + scaleMax: IntFilter + + """Filter by the object’s `timeoutSeconds` field.""" + timeoutSeconds: IntFilter + + """Filter by the object’s `resources` field.""" + resources: JSONFilter + + """Filter by the object’s `lastError` field.""" + lastError: StringFilter + + """Filter by the object’s `lastErrorAt` field.""" + lastErrorAt: DatetimeFilter + + """Filter by the object’s `errorCount` field.""" + errorCount: IntFilter + + """Filter by the object’s `labels` field.""" + labels: JSONFilter + + """Filter by the object’s `annotations` field.""" + annotations: JSONFilter + + """Filter by the object’s `databaseId` field.""" + databaseId: UUIDFilter + + """Checks for all expressions in this list.""" + and: [FunctionDeploymentFilter!] + + """Checks for any expressions in this list.""" + or: [FunctionDeploymentFilter!] + + """Negates the expression.""" + not: FunctionDeploymentFilter + + """Filter by the object’s `namespace` relation.""" + namespace: NamespaceFilter +} + +""" +A filter to be used against `Namespace` object types. All fields are combined with a logical ‘and.’ +""" +input NamespaceFilter { + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter + + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter + + """Filter by the object’s `name` field.""" + name: StringFilter + + """Filter by the object’s `namespaceName` field.""" + namespaceName: StringFilter + + """Filter by the object’s `description` field.""" + description: StringFilter + + """Filter by the object’s `isActive` field.""" + isActive: BooleanFilter + + """Filter by the object’s `status` field.""" + status: StringFilter + + """Filter by the object’s `lastError` field.""" + lastError: StringFilter + + """Filter by the object’s `labels` field.""" + labels: JSONFilter + + """Filter by the object’s `annotations` field.""" + annotations: JSONFilter + + """Filter by the object’s `databaseId` field.""" + databaseId: UUIDFilter + + """Filter by the object’s `isManaged` field.""" + isManaged: BooleanFilter + + """Checks for all expressions in this list.""" + and: [NamespaceFilter!] + + """Checks for any expressions in this list.""" + or: [NamespaceFilter!] + + """Negates the expression.""" + not: NamespaceFilter + + """Filter by the object’s `functionDeployments` relation.""" + functionDeployments: NamespaceToManyFunctionDeploymentFilter + + """`functionDeployments` exist.""" + functionDeploymentsExist: Boolean + + """Filter by the object’s `resources` relation.""" + resources: NamespaceToManyResourceFilter + + """`resources` exist.""" + resourcesExist: Boolean + + """Filter by the object’s `resourceDefinitions` relation.""" + resourceDefinitions: NamespaceToManyResourceDefinitionFilter + + """`resourceDefinitions` exist.""" + resourceDefinitionsExist: Boolean +} + +""" +A filter to be used against many `FunctionDeployment` object types. All fields are combined with a logical ‘and.’ +""" +input NamespaceToManyFunctionDeploymentFilter { + """Filters to entities where at least one related entity matches.""" + some: FunctionDeploymentFilter + + """Filters to entities where every related entity matches.""" + every: FunctionDeploymentFilter + + """Filters to entities where no related entity matches.""" + none: FunctionDeploymentFilter +} + +""" +A filter to be used against many `Resource` object types. All fields are combined with a logical ‘and.’ +""" +input NamespaceToManyResourceFilter { + """Filters to entities where at least one related entity matches.""" + some: ResourceFilter + + """Filters to entities where every related entity matches.""" + every: ResourceFilter + + """Filters to entities where no related entity matches.""" + none: ResourceFilter +} + +""" +A filter to be used against `Resource` object types. All fields are combined with a logical ‘and.’ +""" +input ResourceFilter { + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter + + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter + + """Filter by the object’s `createdBy` field.""" + createdBy: UUIDFilter + + """Filter by the object’s `updatedBy` field.""" + updatedBy: UUIDFilter + + """Filter by the object’s `namespaceId` field.""" + namespaceId: UUIDFilter + + """Filter by the object’s `kind` field.""" + kind: StringFilter + + """Filter by the object’s `name` field.""" + name: StringFilter + + """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 `lastError` field.""" + lastError: StringFilter + + """Filter by the object’s `errorCount` field.""" + errorCount: IntFilter + + """Filter by the object’s `labels` field.""" + labels: JSONFilter + + """Filter by the object’s `annotations` field.""" + annotations: JSONFilter + + """Filter by the object’s `databaseId` field.""" + databaseId: UUIDFilter + + """Filter by the object’s `integrations` field.""" + integrations: StringListFilter + + """Filter by the object’s `resourceDefinitionId` field.""" + resourceDefinitionId: UUIDFilter + + """Checks for all expressions in this list.""" + and: [ResourceFilter!] + + """Checks for any expressions in this list.""" + or: [ResourceFilter!] + + """Negates the expression.""" + not: ResourceFilter + + """Filter by the object’s `namespace` relation.""" + namespace: NamespaceFilter + + """Filter by the object’s `resourceDefinition` relation.""" + resourceDefinition: ResourceDefinitionFilter + + """A related `resourceDefinition` exists.""" + resourceDefinitionExists: Boolean + + """Filter by the object’s `resourceStatusChecks` relation.""" + resourceStatusChecks: ResourceToManyResourceStatusCheckFilter + + """`resourceStatusChecks` exist.""" + resourceStatusChecksExist: Boolean +} + +""" +A filter to be used against `ResourceDefinition` object types. All fields are combined with a logical ‘and.’ +""" +input ResourceDefinitionFilter { + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter + + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter + + """Filter by the object’s `createdBy` field.""" + createdBy: UUIDFilter + + """Filter by the object’s `updatedBy` field.""" + updatedBy: UUIDFilter + + """Filter by the object’s `namespaceId` field.""" + namespaceId: UUIDFilter + + """Filter by the object’s `kind` field.""" + kind: StringFilter + + """Filter by the object’s `name` field.""" + name: StringFilter + + """Filter by the object’s `slug` field.""" + slug: StringFilter + + """Filter by the object’s `description` field.""" + description: StringFilter + + """Filter by the object’s `defaultSpec` field.""" + defaultSpec: JSONFilter + + """Filter by the object’s `integrations` field.""" + integrations: StringListFilter + + """Filter by the object’s `labels` field.""" + labels: JSONFilter + + """Filter by the object’s `annotations` field.""" + annotations: JSONFilter + + """Filter by the object’s `stepUpMinAge` field.""" + stepUpMinAge: IntervalFilter + + """Filter by the object’s `databaseId` field.""" + databaseId: UUIDFilter + + """Checks for all expressions in this list.""" + and: [ResourceDefinitionFilter!] + + """Checks for any expressions in this list.""" + or: [ResourceDefinitionFilter!] + + """Negates the expression.""" + not: ResourceDefinitionFilter + + """Filter by the object’s `namespace` relation.""" + namespace: NamespaceFilter +} + +""" +A filter to be used against many `ResourceStatusCheck` object types. All fields are combined with a logical ‘and.’ +""" +input ResourceToManyResourceStatusCheckFilter { + """Filters to entities where at least one related entity matches.""" + some: ResourceStatusCheckFilter + + """Filters to entities where every related entity matches.""" + every: ResourceStatusCheckFilter + + """Filters to entities where no related entity matches.""" + none: ResourceStatusCheckFilter +} + +""" +A filter to be used against `ResourceStatusCheck` object types. All fields are combined with a logical ‘and.’ +""" +input ResourceStatusCheckFilter { + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `resourceId` field.""" + resourceId: UUIDFilter + + """Filter by the object’s `databaseId` field.""" + databaseId: UUIDFilter + + """Filter by the object’s `requestedBy` field.""" + requestedBy: UUIDFilter + + """Filter by the object’s `requestedAt` field.""" + requestedAt: DatetimeFilter + + """Filter by the object’s `completedAt` field.""" + completedAt: DatetimeFilter + + """Filter by the object’s `status` field.""" + status: StringFilter + + """Filter by the object’s `result` field.""" + result: JSONFilter + + """Checks for all expressions in this list.""" + and: [ResourceStatusCheckFilter!] + + """Checks for any expressions in this list.""" + or: [ResourceStatusCheckFilter!] + + """Negates the expression.""" + not: ResourceStatusCheckFilter + + """Filter by the object’s `resource` relation.""" + resource: ResourceFilter +} + +""" +A filter to be used against many `ResourceDefinition` object types. All fields are combined with a logical ‘and.’ +""" +input NamespaceToManyResourceDefinitionFilter { + """Filters to entities where at least one related entity matches.""" + some: ResourceDefinitionFilter + + """Filters to entities where every related entity matches.""" + every: ResourceDefinitionFilter + + """Filters to entities where no related entity matches.""" + none: ResourceDefinitionFilter +} + +"""Methods to use when ordering `FunctionDeployment`.""" +enum FunctionDeploymentOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + CREATED_AT_ASC + CREATED_AT_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC + NAMESPACE_ID_ASC + NAMESPACE_ID_DESC + STATUS_ASC + STATUS_DESC + SERVICE_URL_ASC + SERVICE_URL_DESC + SERVICE_NAME_ASC + SERVICE_NAME_DESC + REVISION_ASC + REVISION_DESC + IMAGE_ASC + IMAGE_DESC + IMAGE_VERSION_ASC + IMAGE_VERSION_DESC + HANDLER_NAME_ASC + HANDLER_NAME_DESC + CONCURRENCY_ASC + CONCURRENCY_DESC + SCALE_MIN_ASC + SCALE_MIN_DESC + SCALE_MAX_ASC + SCALE_MAX_DESC + TIMEOUT_SECONDS_ASC + TIMEOUT_SECONDS_DESC + RESOURCES_ASC + RESOURCES_DESC + LAST_ERROR_ASC + LAST_ERROR_DESC + LAST_ERROR_AT_ASC + LAST_ERROR_AT_DESC + ERROR_COUNT_ASC + ERROR_COUNT_DESC + LABELS_ASC + LABELS_DESC + ANNOTATIONS_ASC + ANNOTATIONS_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC +} + +"""A connection to a list of `Resource` values.""" +type ResourceConnection { + """A list of `Resource` objects.""" + nodes: [Resource]! + + """ + A list of edges which contains the `Resource` and cursor to aid in pagination. + """ + edges: [ResourceEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `Resource` you could get from the connection.""" + totalCount: Int! +} + +"""A `Resource` edge in the connection.""" +type ResourceEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `Resource` at the end of the edge.""" + node: Resource +} + +"""Methods to use when ordering `Resource`.""" +enum ResourceOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + CREATED_AT_ASC + CREATED_AT_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC + CREATED_BY_ASC + CREATED_BY_DESC + UPDATED_BY_ASC + UPDATED_BY_DESC + NAMESPACE_ID_ASC + NAMESPACE_ID_DESC + KIND_ASC + KIND_DESC + NAME_ASC + NAME_DESC + SLUG_ASC + SLUG_DESC + SPEC_ASC + SPEC_DESC + STATUS_ASC + STATUS_DESC + STATUS_OBSERVED_ASC + STATUS_OBSERVED_DESC + LAST_ERROR_ASC + LAST_ERROR_DESC + ERROR_COUNT_ASC + ERROR_COUNT_DESC + LABELS_ASC + LABELS_DESC + ANNOTATIONS_ASC + ANNOTATIONS_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC + REQUIRED_SECRETS_ASC + REQUIRED_SECRETS_DESC + REQUIRED_CONFIGS_ASC + REQUIRED_CONFIGS_DESC + INTEGRATIONS_ASC + INTEGRATIONS_DESC + RESOURCE_DEFINITION_ID_ASC + RESOURCE_DEFINITION_ID_DESC +} + +"""A connection to a list of `ResourceDefinition` values.""" +type ResourceDefinitionConnection { + """A list of `ResourceDefinition` objects.""" + nodes: [ResourceDefinition]! + + """ + A list of edges which contains the `ResourceDefinition` and cursor to aid in pagination. + """ + edges: [ResourceDefinitionEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `ResourceDefinition` you could get from the connection. + """ + totalCount: Int! +} + +""" +Resource definitions — templates for resource kinds declaring default spec and secret/config requirements +""" +type ResourceDefinition { + id: UUID! + createdAt: Datetime + updatedAt: Datetime + createdBy: UUID + updatedBy: UUID + + """ + Namespace this definition belongs to (security boundary, maps to K8s namespace) + """ + namespaceId: UUID! + + """ + Resource kind: Deployment, StatefulSet, Service, Ingress, Certificate, or custom kinds + """ + kind: String! + + """Human-readable definition name""" + name: String! + + """URL-safe identifier, unique within (namespace_id, kind)""" + slug: String! + + """What this resource definition provides""" + description: String + + """Template spec for creating resource instances of this kind""" + defaultSpec: JSON! + + """ + Embedded secret requirements: array of (name, required, provider) tuples. provider is the integration slug this requirement belongs to, if any. + """ + requiredSecrets: [ResourceRequirement]! + + """ + Embedded config requirements: array of (name, required, provider) tuples. provider is the integration slug this requirement belongs to, if any. + """ + requiredConfigs: [ResourceRequirement]! + + """ + 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]! + + """Key/value pairs for selecting and filtering definitions""" + labels: JSON! + + """Freeform metadata for tooling and operational notes""" + annotations: JSON! + + """ + Min age before DELETE of a resource of this kind requires step-up; NULL inherits the 6h default + """ + stepUpMinAge: Interval + + """Database that owns this resource (database-scoped isolation)""" + databaseId: UUID! + + """ + Reads a single `Namespace` that is related to this `ResourceDefinition`. + """ + namespace: Namespace +} + +"""A `ResourceDefinition` edge in the connection.""" +type ResourceDefinitionEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `ResourceDefinition` at the end of the edge.""" + node: ResourceDefinition +} + +"""Methods to use when ordering `ResourceDefinition`.""" +enum ResourceDefinitionOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + CREATED_AT_ASC + CREATED_AT_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC + CREATED_BY_ASC + CREATED_BY_DESC + UPDATED_BY_ASC + UPDATED_BY_DESC + NAMESPACE_ID_ASC + NAMESPACE_ID_DESC + KIND_ASC + KIND_DESC + NAME_ASC + NAME_DESC + SLUG_ASC + SLUG_DESC + DESCRIPTION_ASC + DESCRIPTION_DESC + DEFAULT_SPEC_ASC + DEFAULT_SPEC_DESC + REQUIRED_SECRETS_ASC + REQUIRED_SECRETS_DESC + REQUIRED_CONFIGS_ASC + REQUIRED_CONFIGS_DESC + INTEGRATIONS_ASC + INTEGRATIONS_DESC + LABELS_ASC + LABELS_DESC + ANNOTATIONS_ASC + ANNOTATIONS_DESC + STEP_UP_MIN_AGE_ASC + STEP_UP_MIN_AGE_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC +} + +"""Methods to use when ordering `ResourceStatusCheck`.""" +enum ResourceStatusCheckOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + RESOURCE_ID_ASC + RESOURCE_ID_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC + REQUESTED_BY_ASC + REQUESTED_BY_DESC + REQUESTED_AT_ASC + REQUESTED_AT_DESC + COMPLETED_AT_ASC + COMPLETED_AT_DESC + STATUS_ASC + STATUS_DESC + RESULT_ASC + RESULT_DESC +} + +"""A `ResourceStatusCheck` edge in the connection.""" +type ResourceStatusCheckEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `ResourceStatusCheck` at the end of the edge.""" + node: ResourceStatusCheck +} + +"""A connection to a list of `FunctionDeploymentEvent` values.""" +type FunctionDeploymentEventConnection { + """A list of `FunctionDeploymentEvent` objects.""" + nodes: [FunctionDeploymentEvent]! + + """ + A list of edges which contains the `FunctionDeploymentEvent` and cursor to aid in pagination. + """ + edges: [FunctionDeploymentEventEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `FunctionDeploymentEvent` you could get from the connection. + """ + totalCount: Int! +} + +""" +Deployment lifecycle events — audit log of provisioning, scaling, and failure events +""" +type FunctionDeploymentEvent { + """Event timestamp (partition key)""" + createdAt: Datetime! + + """Unique event identifier""" + id: UUID! + + """Deployment this event belongs to""" + deploymentId: UUID! + + """ + Event type: provisioned, scaled, failed, deactivated, redeployed, health_check + """ + eventType: String! + + """User who triggered this event (NULL for system/automated)""" + actorId: UUID + + """Human-readable description of the event""" + message: String + + """Structured context (old/new values, error details, etc.)""" + metadata: JSON + + """Database that owns this resource (database-scoped isolation)""" + databaseId: UUID! +} + +"""A `FunctionDeploymentEvent` edge in the connection.""" +type FunctionDeploymentEventEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `FunctionDeploymentEvent` at the end of the edge.""" + node: FunctionDeploymentEvent +} + +""" +A filter to be used against `FunctionDeploymentEvent` object types. All fields are combined with a logical ‘and.’ +""" +input FunctionDeploymentEventFilter { + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter + + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `deploymentId` field.""" + deploymentId: UUIDFilter + + """Filter by the object’s `eventType` field.""" + eventType: StringFilter + + """Filter by the object’s `actorId` field.""" + actorId: UUIDFilter + + """Filter by the object’s `message` field.""" + message: StringFilter + + """Filter by the object’s `metadata` field.""" + metadata: JSONFilter + + """Filter by the object’s `databaseId` field.""" + databaseId: UUIDFilter + + """Checks for all expressions in this list.""" + and: [FunctionDeploymentEventFilter!] + + """Checks for any expressions in this list.""" + or: [FunctionDeploymentEventFilter!] + + """Negates the expression.""" + not: FunctionDeploymentEventFilter +} + +"""Methods to use when ordering `FunctionDeploymentEvent`.""" +enum FunctionDeploymentEventOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + CREATED_AT_ASC + CREATED_AT_DESC + ID_ASC + ID_DESC + DEPLOYMENT_ID_ASC + DEPLOYMENT_ID_DESC + EVENT_TYPE_ASC + EVENT_TYPE_DESC + ACTOR_ID_ASC + ACTOR_ID_DESC + MESSAGE_ASC + MESSAGE_DESC + METADATA_ASC + METADATA_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC +} + +"""A connection to a list of `PlatformFunctionExecutionLog` values.""" +type PlatformFunctionExecutionLogConnection { + """A list of `PlatformFunctionExecutionLog` objects.""" + nodes: [PlatformFunctionExecutionLog]! + + """ + A list of edges which contains the `PlatformFunctionExecutionLog` and cursor to aid in pagination. + """ + edges: [PlatformFunctionExecutionLogEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `PlatformFunctionExecutionLog` you could get from the connection. + """ + totalCount: Int! +} + +"""Function execution logs — structured console output per invocation""" +type PlatformFunctionExecutionLog { + """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 + + """Function routing key (NULL for generic job logs)""" + taskIdentifier: String + + """Log severity: debug, info, warn, error""" + logLevel: String! + + """Log message text""" + message: String! + + """Structured context (labels, trace data, extra fields)""" + metadata: JSON + + """User who triggered the execution (NULL for system/cron)""" + actorId: UUID +} + +"""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 `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 `taskIdentifier` field.""" + taskIdentifier: 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 + + """Filter by the object’s `actorId` field.""" + actorId: UUIDFilter + + """Checks for all expressions in this list.""" + and: [PlatformFunctionExecutionLogFilter!] + + """Checks for any expressions in this list.""" + or: [PlatformFunctionExecutionLogFilter!] + + """Negates the expression.""" + not: PlatformFunctionExecutionLogFilter +} + +"""Methods to use when ordering `PlatformFunctionExecutionLog`.""" +enum PlatformFunctionExecutionLogOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + CREATED_AT_ASC + CREATED_AT_DESC + ID_ASC + ID_DESC + INVOCATION_ID_ASC + INVOCATION_ID_DESC + TASK_IDENTIFIER_ASC + TASK_IDENTIFIER_DESC + LOG_LEVEL_ASC + LOG_LEVEL_DESC + MESSAGE_ASC + MESSAGE_DESC + METADATA_ASC + METADATA_DESC + ACTOR_ID_ASC + ACTOR_ID_DESC +} + +"""A connection to a list of `ResourceEvent` values.""" +type ResourceEventConnection { + """A list of `ResourceEvent` objects.""" + nodes: [ResourceEvent]! + + """ + A list of edges which contains the `ResourceEvent` and cursor to aid in pagination. + """ + edges: [ResourceEventEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `ResourceEvent` you could get from the connection.""" + totalCount: Int! +} + +""" +Resource lifecycle events — audit log of provisioning, updates, and failure events +""" +type ResourceEvent { + """Event timestamp (partition key)""" + createdAt: Datetime! + + """Unique event identifier""" + id: UUID! + + """Resource this event belongs to""" + resourceId: UUID! + + """ + Event type: provisioned, provisioning, updated, failed, deprovisioned, health_check + """ + eventType: String! + + """User who triggered this event (NULL for system/automated)""" + actorId: UUID + + """Human-readable description of the event""" + message: String + + """Structured context (old/new values, error details, etc.)""" + metadata: JSON + + """Database that owns this resource (database-scoped isolation)""" + databaseId: UUID! +} + +"""A `ResourceEvent` edge in the connection.""" +type ResourceEventEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `ResourceEvent` at the end of the edge.""" + node: ResourceEvent +} + +""" +A filter to be used against `ResourceEvent` object types. All fields are combined with a logical ‘and.’ +""" +input ResourceEventFilter { + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter + + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `resourceId` field.""" + resourceId: UUIDFilter + + """Filter by the object’s `eventType` field.""" + eventType: StringFilter + + """Filter by the object’s `actorId` field.""" + actorId: UUIDFilter + + """Filter by the object’s `message` field.""" + message: StringFilter + + """Filter by the object’s `metadata` field.""" + metadata: JSONFilter + + """Filter by the object’s `databaseId` field.""" + databaseId: UUIDFilter + + """Checks for all expressions in this list.""" + and: [ResourceEventFilter!] + + """Checks for any expressions in this list.""" + or: [ResourceEventFilter!] + + """Negates the expression.""" + not: ResourceEventFilter +} + +"""Methods to use when ordering `ResourceEvent`.""" +enum ResourceEventOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + CREATED_AT_ASC + CREATED_AT_DESC + ID_ASC + ID_DESC + RESOURCE_ID_ASC + RESOURCE_ID_DESC + EVENT_TYPE_ASC + EVENT_TYPE_DESC + ACTOR_ID_ASC + ACTOR_ID_DESC + MESSAGE_ASC + MESSAGE_DESC + METADATA_ASC + METADATA_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC +} + +"""A connection to a list of `FunctionGraphExecutionOutput` values.""" +type FunctionGraphExecutionOutputConnection { + """A list of `FunctionGraphExecutionOutput` objects.""" + nodes: [FunctionGraphExecutionOutput]! + + """ + A list of edges which contains the `FunctionGraphExecutionOutput` and cursor to aid in pagination. + """ + edges: [FunctionGraphExecutionOutputEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `FunctionGraphExecutionOutput` you could get from the connection. + """ + totalCount: Int! +} + +""" +Content-addressed store for execution outputs — hash-referenced from node_outputs +""" +type FunctionGraphExecutionOutput { + """Timestamp of output creation""" + createdAt: Datetime! + + """Unique execution output identifier""" + id: UUID! + + """Opaque store partition key for the global tier""" + scopeId: UUID! + + """SHA-256 hash of the data JSONB — content-addressed deduplication""" + hash: Base64EncodedBinary! + + """The actual output payload from a completed node""" + data: JSON! +} + +"""Binary data encoded using Base64""" +scalar Base64EncodedBinary + +"""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 { + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter + + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `scopeId` field.""" + scopeId: UUIDFilter + + """Filter by the object’s `hash` field.""" + hash: Base64EncodedBinaryFilter + + """Filter by the object’s `data` field.""" + data: JSONFilter + + """Checks for all expressions in this list.""" + and: [FunctionGraphExecutionOutputFilter!] + + """Checks for any expressions in this list.""" + or: [FunctionGraphExecutionOutputFilter!] + + """Negates the expression.""" + not: FunctionGraphExecutionOutputFilter +} + +""" +A filter to be used against Base64EncodedBinary fields. All fields are combined with a logical ‘and.’ +""" +input Base64EncodedBinaryFilter { + """ + Is null (if `true` is specified) or is not null (if `false` is specified). + """ + isNull: Boolean + + """Equal to the specified value.""" + equalTo: Base64EncodedBinary + + """Not equal to the specified value.""" + notEqualTo: Base64EncodedBinary + + """ + Not equal to the specified value, treating null like an ordinary value. + """ + distinctFrom: Base64EncodedBinary + + """Equal to the specified value, treating null like an ordinary value.""" + notDistinctFrom: Base64EncodedBinary + + """Included in the specified list.""" + in: [Base64EncodedBinary!] + + """Not included in the specified list.""" + notIn: [Base64EncodedBinary!] +} + +"""Methods to use when ordering `FunctionGraphExecutionOutput`.""" +enum FunctionGraphExecutionOutputOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + CREATED_AT_ASC + CREATED_AT_DESC + ID_ASC + ID_DESC + SCOPE_ID_ASC + SCOPE_ID_DESC + HASH_ASC + HASH_DESC + DATA_ASC + DATA_DESC +} + +"""A connection to a list of `InfraCommit` values.""" +type InfraCommitConnection { + """A list of `InfraCommit` objects.""" + nodes: [InfraCommit]! + + """ + A list of edges which contains the `InfraCommit` and cursor to aid in pagination. + """ + edges: [InfraCommitEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `InfraCommit` you could get from the connection.""" + totalCount: Int! +} + +"""Commit history — each commit snapshots a tree root for a store""" +type InfraCommit { + """Unique commit identifier""" + id: UUID! + + """Optional commit message""" + message: String + + """Opaque store partition key for the global tier""" + scopeId: UUID! + + """Store this commit belongs to""" + storeId: UUID! + + """Parent commit IDs (supports merge commits)""" + parentIds: [UUID] + + """User who authored the changes""" + authorId: UUID + + """User who committed (may differ from author)""" + committerId: UUID + + """Root object ID of the tree snapshot at this commit""" + treeId: UUID + + """Commit timestamp""" + date: Datetime! +} + +"""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 { + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `message` field.""" + message: StringFilter + + """Filter by the object’s `scopeId` field.""" + scopeId: UUIDFilter + + """Filter by the object’s `storeId` field.""" + storeId: UUIDFilter + + """Filter by the object’s `parentIds` field.""" + parentIds: UUIDListFilter + + """Filter by the object’s `authorId` field.""" + authorId: UUIDFilter + + """Filter by the object’s `committerId` field.""" + committerId: UUIDFilter + + """Filter by the object’s `treeId` field.""" + treeId: UUIDFilter + + """Filter by the object’s `date` field.""" + date: DatetimeFilter + + """Checks for all expressions in this list.""" + and: [InfraCommitFilter!] + + """Checks for any expressions in this list.""" + or: [InfraCommitFilter!] + + """Negates the expression.""" + not: InfraCommitFilter +} + +"""Methods to use when ordering `InfraCommit`.""" +enum InfraCommitOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + MESSAGE_ASC + MESSAGE_DESC + SCOPE_ID_ASC + SCOPE_ID_DESC + STORE_ID_ASC + STORE_ID_DESC + PARENT_IDS_ASC + PARENT_IDS_DESC + AUTHOR_ID_ASC + AUTHOR_ID_DESC + COMMITTER_ID_ASC + COMMITTER_ID_DESC + TREE_ID_ASC + TREE_ID_DESC + DATE_ASC + DATE_DESC +} + +"""A connection to a list of `FunctionGraphCommit` values.""" +type FunctionGraphCommitConnection { + """A list of `FunctionGraphCommit` objects.""" + nodes: [FunctionGraphCommit]! + + """ + A list of edges which contains the `FunctionGraphCommit` and cursor to aid in pagination. + """ + edges: [FunctionGraphCommitEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `FunctionGraphCommit` you could get from the connection. + """ + totalCount: Int! +} + +"""Commit history — each commit snapshots a tree root for a store""" +type FunctionGraphCommit { + """Unique commit identifier""" + id: UUID! + + """Optional commit message""" + message: String + + """Opaque store partition key for the global tier""" + scopeId: UUID! + + """Store this commit belongs to""" + storeId: UUID! + + """Parent commit IDs (supports merge commits)""" + parentIds: [UUID] + + """User who authored the changes""" + authorId: UUID + + """User who committed (may differ from author)""" + committerId: UUID + + """Root object ID of the tree snapshot at this commit""" + treeId: UUID + + """Commit timestamp""" + date: Datetime! +} + +"""A `FunctionGraphCommit` edge in the connection.""" +type FunctionGraphCommitEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `FunctionGraphCommit` at the end of the edge.""" + node: FunctionGraphCommit +} + +""" +A filter to be used against `FunctionGraphCommit` object types. All fields are combined with a logical ‘and.’ +""" +input FunctionGraphCommitFilter { + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `message` field.""" + message: StringFilter + + """Filter by the object’s `scopeId` field.""" + scopeId: UUIDFilter + + """Filter by the object’s `storeId` field.""" + storeId: UUIDFilter + + """Filter by the object’s `parentIds` field.""" + parentIds: UUIDListFilter + + """Filter by the object’s `authorId` field.""" + authorId: UUIDFilter + + """Filter by the object’s `committerId` field.""" + committerId: UUIDFilter + + """Filter by the object’s `treeId` field.""" + treeId: UUIDFilter + + """Filter by the object’s `date` field.""" + date: DatetimeFilter + + """Checks for all expressions in this list.""" + and: [FunctionGraphCommitFilter!] + + """Checks for any expressions in this list.""" + or: [FunctionGraphCommitFilter!] + + """Negates the expression.""" + not: FunctionGraphCommitFilter +} + +"""Methods to use when ordering `FunctionGraphCommit`.""" +enum FunctionGraphCommitOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + MESSAGE_ASC + MESSAGE_DESC + SCOPE_ID_ASC + SCOPE_ID_DESC + STORE_ID_ASC + STORE_ID_DESC + PARENT_IDS_ASC + PARENT_IDS_DESC + AUTHOR_ID_ASC + AUTHOR_ID_DESC + COMMITTER_ID_ASC + COMMITTER_ID_DESC + TREE_ID_ASC + TREE_ID_DESC + DATE_ASC + DATE_DESC +} + +"""A connection to a list of `FunctionExecutionLog` values.""" +type FunctionExecutionLogConnection { + """A list of `FunctionExecutionLog` objects.""" + nodes: [FunctionExecutionLog]! + + """ + A list of edges which contains the `FunctionExecutionLog` and cursor to aid in pagination. + """ + edges: [FunctionExecutionLogEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `FunctionExecutionLog` you could get from the connection. + """ + totalCount: Int! +} + +"""Function execution logs — structured console output per invocation""" +type FunctionExecutionLog { + """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 + + """Function routing key (NULL for generic job logs)""" + taskIdentifier: String + + """Log severity: debug, info, warn, error""" + logLevel: String! + + """Log message text""" + message: String! + + """Structured context (labels, trace data, extra fields)""" + metadata: JSON + + """User who triggered the execution (NULL for system/cron)""" + actorId: UUID + + """Database that owns this resource (database-scoped isolation)""" + databaseId: UUID! +} + +"""A `FunctionExecutionLog` edge in the connection.""" +type FunctionExecutionLogEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `FunctionExecutionLog` at the end of the edge.""" + node: FunctionExecutionLog +} + +""" +A filter to be used against `FunctionExecutionLog` object types. All fields are combined with a logical ‘and.’ +""" +input FunctionExecutionLogFilter { + """Filter by the object’s `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 `taskIdentifier` field.""" + taskIdentifier: 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 + + """Filter by the object’s `actorId` field.""" + actorId: UUIDFilter + + """Filter by the object’s `databaseId` field.""" + databaseId: UUIDFilter + + """Checks for all expressions in this list.""" + and: [FunctionExecutionLogFilter!] + + """Checks for any expressions in this list.""" + or: [FunctionExecutionLogFilter!] + + """Negates the expression.""" + not: FunctionExecutionLogFilter +} + +"""Methods to use when ordering `FunctionExecutionLog`.""" +enum FunctionExecutionLogOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + CREATED_AT_ASC + CREATED_AT_DESC + ID_ASC + ID_DESC + INVOCATION_ID_ASC + INVOCATION_ID_DESC + TASK_IDENTIFIER_ASC + TASK_IDENTIFIER_DESC + LOG_LEVEL_ASC + LOG_LEVEL_DESC + MESSAGE_ASC + MESSAGE_DESC + METADATA_ASC + METADATA_DESC + ACTOR_ID_ASC + ACTOR_ID_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC +} + +""" +A connection to a list of `PlatformResourcesResolvedRequirement` values. +""" +type PlatformResourcesResolvedRequirementConnection { + """A list of `PlatformResourcesResolvedRequirement` objects.""" + nodes: [PlatformResourcesResolvedRequirement]! + + """ + A list of edges which contains the `PlatformResourcesResolvedRequirement` and cursor to aid in pagination. + """ + edges: [PlatformResourcesResolvedRequirementEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `PlatformResourcesResolvedRequirement` you could get from the connection. + """ + totalCount: Int! +} + +type PlatformResourcesResolvedRequirement { + resourceId: UUID + slug: String + namespaceId: UUID + requirementKind: String + name: String + required: Boolean + atomId: UUID + present: Boolean + secretsObjectName: String + configObjectName: String +} + +"""A `PlatformResourcesResolvedRequirement` edge in the connection.""" +type PlatformResourcesResolvedRequirementEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `PlatformResourcesResolvedRequirement` at the end of the edge.""" + node: PlatformResourcesResolvedRequirement +} + +""" +A filter to be used against `PlatformResourcesResolvedRequirement` object types. All fields are combined with a logical ‘and.’ +""" +input PlatformResourcesResolvedRequirementFilter { + """Filter by the object’s `resourceId` field.""" + resourceId: UUIDFilter + + """Filter by the object’s `slug` field.""" + slug: StringFilter + + """Filter by the object’s `namespaceId` field.""" + namespaceId: UUIDFilter + + """Filter by the object’s `requirementKind` field.""" + requirementKind: StringFilter + + """Filter by the object’s `name` field.""" + name: StringFilter + + """Filter by the object’s `required` field.""" + required: BooleanFilter + + """Filter by the object’s `atomId` field.""" + atomId: UUIDFilter + + """Filter by the object’s `present` field.""" + present: BooleanFilter + + """Filter by the object’s `secretsObjectName` field.""" + secretsObjectName: StringFilter + + """Filter by the object’s `configObjectName` field.""" + configObjectName: StringFilter + + """Checks for all expressions in this list.""" + and: [PlatformResourcesResolvedRequirementFilter!] + + """Checks for any expressions in this list.""" + or: [PlatformResourcesResolvedRequirementFilter!] + + """Negates the expression.""" + not: PlatformResourcesResolvedRequirementFilter +} + +"""Methods to use when ordering `PlatformResourcesResolvedRequirement`.""" +enum PlatformResourcesResolvedRequirementOrderBy { + NATURAL + RESOURCE_ID_ASC + RESOURCE_ID_DESC + SLUG_ASC + SLUG_DESC + NAMESPACE_ID_ASC + NAMESPACE_ID_DESC + REQUIREMENT_KIND_ASC + REQUIREMENT_KIND_DESC + NAME_ASC + NAME_DESC + REQUIRED_ASC + REQUIRED_DESC + ATOM_ID_ASC + ATOM_ID_DESC + PRESENT_ASC + PRESENT_DESC + SECRETS_OBJECT_NAME_ASC + SECRETS_OBJECT_NAME_DESC + CONFIG_OBJECT_NAME_ASC + CONFIG_OBJECT_NAME_DESC +} + +"""A connection to a list of `ResourcesResolvedRequirement` values.""" +type ResourcesResolvedRequirementConnection { + """A list of `ResourcesResolvedRequirement` objects.""" + nodes: [ResourcesResolvedRequirement]! + + """ + A list of edges which contains the `ResourcesResolvedRequirement` and cursor to aid in pagination. + """ + edges: [ResourcesResolvedRequirementEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `ResourcesResolvedRequirement` you could get from the connection. + """ + totalCount: Int! +} + +type ResourcesResolvedRequirement { + resourceId: UUID + slug: String + namespaceId: UUID + requirementKind: String + name: String + required: Boolean + atomId: UUID + present: Boolean + secretsObjectName: String + configObjectName: String +} + +"""A `ResourcesResolvedRequirement` edge in the connection.""" +type ResourcesResolvedRequirementEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `ResourcesResolvedRequirement` at the end of the edge.""" + node: ResourcesResolvedRequirement +} + +""" +A filter to be used against `ResourcesResolvedRequirement` object types. All fields are combined with a logical ‘and.’ +""" +input ResourcesResolvedRequirementFilter { + """Filter by the object’s `resourceId` field.""" + resourceId: UUIDFilter + + """Filter by the object’s `slug` field.""" + slug: StringFilter + + """Filter by the object’s `namespaceId` field.""" + namespaceId: UUIDFilter + + """Filter by the object’s `requirementKind` field.""" + requirementKind: StringFilter + + """Filter by the object’s `name` field.""" + name: StringFilter + + """Filter by the object’s `required` field.""" + required: BooleanFilter + + """Filter by the object’s `atomId` field.""" + atomId: UUIDFilter + + """Filter by the object’s `present` field.""" + present: BooleanFilter + + """Filter by the object’s `secretsObjectName` field.""" + secretsObjectName: StringFilter + + """Filter by the object’s `configObjectName` field.""" + configObjectName: StringFilter + + """Checks for all expressions in this list.""" + and: [ResourcesResolvedRequirementFilter!] + + """Checks for any expressions in this list.""" + or: [ResourcesResolvedRequirementFilter!] + + """Negates the expression.""" + not: ResourcesResolvedRequirementFilter +} + +"""Methods to use when ordering `ResourcesResolvedRequirement`.""" +enum ResourcesResolvedRequirementOrderBy { + NATURAL + RESOURCE_ID_ASC + RESOURCE_ID_DESC + SLUG_ASC + SLUG_DESC + NAMESPACE_ID_ASC + NAMESPACE_ID_DESC + REQUIREMENT_KIND_ASC + REQUIREMENT_KIND_DESC + NAME_ASC + NAME_DESC + REQUIRED_ASC + REQUIRED_DESC + ATOM_ID_ASC + ATOM_ID_DESC + PRESENT_ASC + PRESENT_DESC + SECRETS_OBJECT_NAME_ASC + SECRETS_OBJECT_NAME_DESC + CONFIG_OBJECT_NAME_ASC + CONFIG_OBJECT_NAME_DESC +} + +"""A connection to a list of `DbPreset` values.""" +type DbPresetConnection { + """A list of `DbPreset` objects.""" + nodes: [DbPreset]! + + """ + A list of edges which contains the `DbPreset` and cursor to aid in pagination. + """ + edges: [DbPresetEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `DbPreset` you could get from the connection.""" + totalCount: Int! +} + +""" +Database provisioning preset catalog — merkle-versioned head over the infra store +""" +type DbPreset { + """Unique preset identifier""" + id: UUID! + + """ + Infra Merkle store holding this preset's history (stamped by the versioned trigger) + """ + storeId: UUID + + """ + Preset slug (unique per scope); the preset's path in the infra tree is [db_preset, slug] + """ + slug: String! + + """ + Preset definition (modules + options) — the readily-cached head; history lives in the infra store + """ + definition: JSON! + + """ + Infra store commit for the current definition (stamped by the versioned trigger on every write) + """ + commitId: 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 + + """Human-readable preset name""" + label: String + + """Human-readable description of the preset""" + description: String + + """Whether this preset is selectable for new databases""" + active: Boolean! + + """Timestamp of preset creation""" + createdAt: Datetime! + + """Timestamp of last modification""" + updatedAt: Datetime! +} + +"""A `DbPreset` edge in the connection.""" +type DbPresetEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `DbPreset` at the end of the edge.""" + node: DbPreset +} + +""" +A filter to be used against `DbPreset` object types. All fields are combined with a logical ‘and.’ +""" +input DbPresetFilter { + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `storeId` field.""" + storeId: UUIDFilter + + """Filter by the object’s `slug` field.""" + slug: StringFilter + + """Filter by the object’s `definition` field.""" + definition: JSONFilter + + """Filter by the object’s `commitId` field.""" + commitId: UUIDFilter + + """Filter by the object’s `modulesHash` field.""" + modulesHash: UUIDFilter + + """Filter by the object’s `label` field.""" + label: StringFilter + + """Filter by the object’s `description` field.""" + description: StringFilter + + """Filter by the object’s `active` field.""" + active: BooleanFilter + + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter + + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter + + """Checks for all expressions in this list.""" + and: [DbPresetFilter!] + + """Checks for any expressions in this list.""" + or: [DbPresetFilter!] + + """Negates the expression.""" + not: DbPresetFilter +} + +"""Methods to use when ordering `DbPreset`.""" +enum DbPresetOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + STORE_ID_ASC + STORE_ID_DESC + SLUG_ASC + SLUG_DESC + DEFINITION_ASC + DEFINITION_DESC + COMMIT_ID_ASC + COMMIT_ID_DESC + MODULES_HASH_ASC + MODULES_HASH_DESC + LABEL_ASC + LABEL_DESC + DESCRIPTION_ASC + DESCRIPTION_DESC + ACTIVE_ASC + ACTIVE_DESC + CREATED_AT_ASC + CREATED_AT_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC +} + +"""A connection to a list of `PlatformNamespace` values.""" +type PlatformNamespaceConnection { + """A list of `PlatformNamespace` objects.""" + nodes: [PlatformNamespace]! + + """ + A list of edges which contains the `PlatformNamespace` and cursor to aid in pagination. + """ + edges: [PlatformNamespaceEdge]! + + """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 +} + +"""Methods to use when ordering `PlatformNamespace`.""" +enum PlatformNamespaceOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + CREATED_AT_ASC + CREATED_AT_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC + NAME_ASC + NAME_DESC + NAMESPACE_NAME_ASC + NAMESPACE_NAME_DESC + DESCRIPTION_ASC + DESCRIPTION_DESC + IS_ACTIVE_ASC + IS_ACTIVE_DESC + STATUS_ASC + STATUS_DESC + LAST_ERROR_ASC + LAST_ERROR_DESC + LABELS_ASC + LABELS_DESC + ANNOTATIONS_ASC + ANNOTATIONS_DESC + IS_MANAGED_ASC + IS_MANAGED_DESC +} + +"""A connection to a list of `FunctionGraph` values.""" +type FunctionGraphConnection { + """A list of `FunctionGraph` objects.""" + nodes: [FunctionGraph]! + + """ + A list of edges which contains the `FunctionGraph` and cursor to aid in pagination. + """ + edges: [FunctionGraphEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `FunctionGraph` you could get from the connection.""" + totalCount: Int! +} + +""" +Flow graph definitions — FBP graphs stored in the dedicated graph Merkle store +""" +type FunctionGraph { + """Unique graph identifier""" + id: UUID! + + """Opaque store partition key for the global tier""" + scopeId: UUID! + + """Graph store (Merkle store) holding the graph definition""" + storeId: UUID! + + """Evaluator/runtime context (function, js, sql, system)""" + context: String! + + """Graph name (unique per database)""" + name: String! + + """Human-readable description of the graph""" + description: String + + """Pinned definitions store commit for deterministic evaluation""" + definitionsCommitId: UUID + + """Whether graph passes structural validation""" + isValid: Boolean! + + """Array of validation error objects when is_valid = false""" + validationErrors: JSON + + """Actor who created this graph""" + createdBy: UUID + + """Timestamp of graph creation""" + createdAt: Datetime! + + """Timestamp of last modification""" + updatedAt: Datetime! +} + +"""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 +} + +""" +A filter to be used against `FunctionGraph` object types. All fields are combined with a logical ‘and.’ +""" +input FunctionGraphFilter { + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `scopeId` field.""" + scopeId: UUIDFilter + + """Filter by the object’s `storeId` field.""" + storeId: UUIDFilter + + """Filter by the object’s `context` field.""" + context: StringFilter + + """Filter by the object’s `name` field.""" + name: StringFilter + + """Filter by the object’s `description` field.""" + description: StringFilter + + """Filter by the object’s `definitionsCommitId` field.""" + definitionsCommitId: UUIDFilter + + """Filter by the object’s `isValid` field.""" + isValid: BooleanFilter + + """Filter by the object’s `validationErrors` field.""" + validationErrors: JSONFilter + + """Filter by the object’s `createdBy` field.""" + createdBy: UUIDFilter + + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter + + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter + + """Checks for all expressions in this list.""" + and: [FunctionGraphFilter!] + + """Checks for any expressions in this list.""" + or: [FunctionGraphFilter!] + + """Negates the expression.""" + not: FunctionGraphFilter +} + +"""Methods to use when ordering `FunctionGraph`.""" +enum FunctionGraphOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + SCOPE_ID_ASC + SCOPE_ID_DESC + STORE_ID_ASC + STORE_ID_DESC + CONTEXT_ASC + CONTEXT_DESC + NAME_ASC + NAME_DESC + DESCRIPTION_ASC + DESCRIPTION_DESC + DEFINITIONS_COMMIT_ID_ASC + DEFINITIONS_COMMIT_ID_DESC + IS_VALID_ASC + IS_VALID_DESC + VALIDATION_ERRORS_ASC + VALIDATION_ERRORS_DESC + CREATED_BY_ASC + CREATED_BY_DESC + CREATED_AT_ASC + CREATED_AT_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC +} + +"""A connection to a list of `FunctionGraphExecutionNodeState` values.""" +type FunctionGraphExecutionNodeStateConnection { + """A list of `FunctionGraphExecutionNodeState` objects.""" + nodes: [FunctionGraphExecutionNodeState]! + + """ + A list of edges which contains the `FunctionGraphExecutionNodeState` and cursor to aid in pagination. + """ + edges: [FunctionGraphExecutionNodeStateEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `FunctionGraphExecutionNodeState` you could get from the connection. + """ + totalCount: Int! +} + +""" +Per-node execution state — tracks individual node lifecycle for debugging +""" +type FunctionGraphExecutionNodeState { + """Timestamp of node state creation (partition key)""" + createdAt: Datetime! + + """Unique node state identifier""" + id: UUID! + + """FK to the parent graph execution""" + executionId: UUID! + + """Opaque store partition key for the global tier""" + scopeId: 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] + + """Node lifecycle: pending → queued → running → completed/failed""" + status: String! + + """Timestamp when the node began executing""" + startedAt: Datetime + + """Timestamp when the node finished (success or failure)""" + completedAt: Datetime + + """Machine-readable error code when status = failed""" + errorCode: String + + """Human-readable error description when status = failed""" + errorMessage: String + + """FK to execution_outputs — content-addressed output blob for this node""" + outputId: UUID +} + +"""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 { + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter + + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `executionId` field.""" + executionId: UUIDFilter + + """Filter by the object’s `scopeId` field.""" + scopeId: UUIDFilter + + """Filter by the object’s `nodeName` field.""" + nodeName: StringFilter + + """Filter by the object’s `nodePath` field.""" + nodePath: StringListFilter + + """Filter by the object’s `status` field.""" + status: StringFilter + + """Filter by the object’s `startedAt` field.""" + startedAt: DatetimeFilter + + """Filter by the object’s `completedAt` field.""" + completedAt: DatetimeFilter + + """Filter by the object’s `errorCode` field.""" + errorCode: StringFilter + + """Filter by the object’s `errorMessage` field.""" + errorMessage: StringFilter + + """Filter by the object’s `outputId` field.""" + outputId: UUIDFilter + + """Checks for all expressions in this list.""" + and: [FunctionGraphExecutionNodeStateFilter!] + + """Checks for any expressions in this list.""" + or: [FunctionGraphExecutionNodeStateFilter!] + + """Negates the expression.""" + not: FunctionGraphExecutionNodeStateFilter +} + +"""Methods to use when ordering `FunctionGraphExecutionNodeState`.""" +enum FunctionGraphExecutionNodeStateOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + CREATED_AT_ASC + CREATED_AT_DESC + ID_ASC + ID_DESC + EXECUTION_ID_ASC + EXECUTION_ID_DESC + SCOPE_ID_ASC + SCOPE_ID_DESC + NODE_NAME_ASC + NODE_NAME_DESC + NODE_PATH_ASC + NODE_PATH_DESC + STATUS_ASC + STATUS_DESC + STARTED_AT_ASC + STARTED_AT_DESC + COMPLETED_AT_ASC + COMPLETED_AT_DESC + ERROR_CODE_ASC + ERROR_CODE_DESC + ERROR_MESSAGE_ASC + ERROR_MESSAGE_DESC + OUTPUT_ID_ASC + OUTPUT_ID_DESC +} + +"""A connection to a list of `Namespace` values.""" +type NamespaceConnection { + """A list of `Namespace` objects.""" + nodes: [Namespace]! + + """ + A list of edges which contains the `Namespace` and cursor to aid in pagination. + """ + edges: [NamespaceEdge]! + + """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 +} + +"""Methods to use when ordering `Namespace`.""" +enum NamespaceOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + CREATED_AT_ASC + CREATED_AT_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC + NAME_ASC + NAME_DESC + NAMESPACE_NAME_ASC + NAMESPACE_NAME_DESC + DESCRIPTION_ASC + DESCRIPTION_DESC + IS_ACTIVE_ASC + IS_ACTIVE_DESC + STATUS_ASC + STATUS_DESC + LAST_ERROR_ASC + LAST_ERROR_DESC + LABELS_ASC + LABELS_DESC + ANNOTATIONS_ASC + ANNOTATIONS_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC + IS_MANAGED_ASC + IS_MANAGED_DESC +} + +"""A connection to a list of `PlatformFunctionInvocation` values.""" +type PlatformFunctionInvocationConnection { + """A list of `PlatformFunctionInvocation` objects.""" + nodes: [PlatformFunctionInvocation]! + + """ + A list of edges which contains the `PlatformFunctionInvocation` and cursor to aid in pagination. + """ + edges: [PlatformFunctionInvocationEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `PlatformFunctionInvocation` you could get from the connection. + """ + totalCount: Int! +} + +""" +Function invocation log — INSERT to call a function (business-layer, metered). Linked to definitions by task_identifier string. +""" +type PlatformFunctionInvocation { + """Invocation creation timestamp (partition key)""" + createdAt: Datetime! + + """Unique invocation identifier""" + id: UUID! + + """Who triggered the invocation (NULL for system/cron)""" + actorId: UUID + + """ + Function routing slug (scope:name). Links to function_definitions.task_identifier by convention — no FK. + """ + taskIdentifier: String! + + """Function input payload""" + payload: JSON + + """Lifecycle: pending → running → completed/failed/cancelled""" + status: String! + + """Function return value (success) or structured error (failure)""" + result: JSON + + """Error message when status is failed""" + error: String + + """Wall-clock execution time in milliseconds""" + durationMs: Int + + """FK to app_jobs.jobs — the underlying transport""" + jobId: BigInt + + """When execution started""" + startedAt: Datetime + + """When execution completed""" + completedAt: Datetime + + """Parent invocation when this is a child node of a flow graph execution""" + parentInvocationId: UUID + + """Groups all node invocations from a single flow graph execution""" + graphExecutionId: UUID +} + +""" +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 `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 `createdAt` field.""" + createdAt: DatetimeFilter + + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `actorId` field.""" + actorId: UUIDFilter + + """Filter by the object’s `taskIdentifier` field.""" + taskIdentifier: StringFilter + + """Filter by the object’s `payload` field.""" + payload: JSONFilter + + """Filter by the object’s `status` field.""" + status: StringFilter + + """Filter by the object’s `result` field.""" + result: JSONFilter + + """Filter by the object’s `error` field.""" + error: StringFilter + + """Filter by the object’s `durationMs` field.""" + durationMs: IntFilter + + """Filter by the object’s `jobId` field.""" + jobId: BigIntFilter + + """Filter by the object’s `startedAt` field.""" + startedAt: DatetimeFilter + + """Filter by the object’s `completedAt` field.""" + completedAt: DatetimeFilter + + """Filter by the object’s `parentInvocationId` field.""" + parentInvocationId: UUIDFilter + + """Filter by the object’s `graphExecutionId` field.""" + graphExecutionId: UUIDFilter + + """Checks for all expressions in this list.""" + and: [PlatformFunctionInvocationFilter!] + + """Checks for any expressions in this list.""" + or: [PlatformFunctionInvocationFilter!] + + """Negates the expression.""" + not: PlatformFunctionInvocationFilter +} + +""" +A filter to be used against BigInt fields. All fields are combined with a logical ‘and.’ +""" +input BigIntFilter { + """ + Is null (if `true` is specified) or is not null (if `false` is specified). + """ + isNull: Boolean + + """Equal to the specified value.""" + equalTo: BigInt + + """Not equal to the specified value.""" + notEqualTo: BigInt + + """ + Not equal to the specified value, treating null like an ordinary value. + """ + distinctFrom: BigInt + + """Equal to the specified value, treating null like an ordinary value.""" + notDistinctFrom: BigInt + + """Included in the specified list.""" + in: [BigInt!] + + """Not included in the specified list.""" + notIn: [BigInt!] + + """Less than the specified value.""" + lessThan: BigInt + + """Less than or equal to the specified value.""" + lessThanOrEqualTo: BigInt + + """Greater than the specified value.""" + greaterThan: BigInt + + """Greater than or equal to the specified value.""" + greaterThanOrEqualTo: BigInt +} + +"""Methods to use when ordering `PlatformFunctionInvocation`.""" +enum PlatformFunctionInvocationOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + CREATED_AT_ASC + CREATED_AT_DESC + ID_ASC + ID_DESC + ACTOR_ID_ASC + ACTOR_ID_DESC + TASK_IDENTIFIER_ASC + TASK_IDENTIFIER_DESC + PAYLOAD_ASC + PAYLOAD_DESC + STATUS_ASC + STATUS_DESC + RESULT_ASC + RESULT_DESC + ERROR_ASC + ERROR_DESC + DURATION_MS_ASC + DURATION_MS_DESC + JOB_ID_ASC + JOB_ID_DESC + STARTED_AT_ASC + STARTED_AT_DESC + COMPLETED_AT_ASC + COMPLETED_AT_DESC + PARENT_INVOCATION_ID_ASC + PARENT_INVOCATION_ID_DESC + GRAPH_EXECUTION_ID_ASC + GRAPH_EXECUTION_ID_DESC +} + +"""A connection to a list of `FunctionInvocation` values.""" +type FunctionInvocationConnection { + """A list of `FunctionInvocation` objects.""" + nodes: [FunctionInvocation]! + + """ + A list of edges which contains the `FunctionInvocation` and cursor to aid in pagination. + """ + edges: [FunctionInvocationEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `FunctionInvocation` you could get from the connection. + """ + totalCount: Int! +} + +""" +Function invocation log — INSERT to call a function (business-layer, metered). Linked to definitions by task_identifier string. +""" +type FunctionInvocation { + """Invocation creation timestamp (partition key)""" + createdAt: Datetime! + + """Unique invocation identifier""" + id: UUID! + + """Who triggered the invocation (NULL for system/cron)""" + actorId: UUID + + """Database that owns this resource (database-scoped isolation)""" + databaseId: UUID! + + """ + Function routing slug (scope:name). Links to function_definitions.task_identifier by convention — no FK. + """ + taskIdentifier: String! + + """Function input payload""" + payload: JSON + + """Lifecycle: pending → running → completed/failed/cancelled""" + status: String! + + """Function return value (success) or structured error (failure)""" + result: JSON + + """Error message when status is failed""" + error: String + + """Wall-clock execution time in milliseconds""" + durationMs: Int + + """FK to app_jobs.jobs — the underlying transport""" + jobId: BigInt + + """When execution started""" + startedAt: Datetime + + """When execution completed""" + completedAt: Datetime + + """Parent invocation when this is a child node of a flow graph execution""" + parentInvocationId: UUID + + """Groups all node invocations from a single flow graph execution""" + graphExecutionId: UUID +} + +"""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 `createdAt` field.""" + createdAt: DatetimeFilter + + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `actorId` field.""" + actorId: UUIDFilter + + """Filter by the object’s `databaseId` field.""" + databaseId: UUIDFilter + + """Filter by the object’s `taskIdentifier` field.""" + taskIdentifier: StringFilter + + """Filter by the object’s `payload` field.""" + payload: JSONFilter + + """Filter by the object’s `status` field.""" + status: StringFilter + + """Filter by the object’s `result` field.""" + result: JSONFilter + + """Filter by the object’s `error` field.""" + error: StringFilter + + """Filter by the object’s `durationMs` field.""" + durationMs: IntFilter + + """Filter by the object’s `jobId` field.""" + jobId: BigIntFilter + + """Filter by the object’s `startedAt` field.""" + startedAt: DatetimeFilter + + """Filter by the object’s `completedAt` field.""" + completedAt: DatetimeFilter + + """Filter by the object’s `parentInvocationId` field.""" + parentInvocationId: UUIDFilter + + """Filter by the object’s `graphExecutionId` field.""" + graphExecutionId: UUIDFilter + + """Checks for all expressions in this list.""" + and: [FunctionInvocationFilter!] + + """Checks for any expressions in this list.""" + or: [FunctionInvocationFilter!] + + """Negates the expression.""" + not: FunctionInvocationFilter +} + +"""Methods to use when ordering `FunctionInvocation`.""" +enum FunctionInvocationOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + CREATED_AT_ASC + CREATED_AT_DESC + ID_ASC + ID_DESC + ACTOR_ID_ASC + ACTOR_ID_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC + TASK_IDENTIFIER_ASC + TASK_IDENTIFIER_DESC + PAYLOAD_ASC + PAYLOAD_DESC + STATUS_ASC + STATUS_DESC + RESULT_ASC + RESULT_DESC + ERROR_ASC + ERROR_DESC + DURATION_MS_ASC + DURATION_MS_DESC + JOB_ID_ASC + JOB_ID_DESC + STARTED_AT_ASC + STARTED_AT_DESC + COMPLETED_AT_ASC + COMPLETED_AT_DESC + PARENT_INVOCATION_ID_ASC + PARENT_INVOCATION_ID_DESC + GRAPH_EXECUTION_ID_ASC + GRAPH_EXECUTION_ID_DESC +} + +"""A connection to a list of `PlatformNamespaceEvent` values.""" +type PlatformNamespaceEventConnection { + """A list of `PlatformNamespaceEvent` objects.""" + nodes: [PlatformNamespaceEvent]! + + """ + A list of edges which contains the `PlatformNamespaceEvent` and cursor to aid in pagination. + """ + edges: [PlatformNamespaceEventEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `PlatformNamespaceEvent` you could get from the connection. + """ + totalCount: Int! +} + +""" +Namespace lifecycle events — audit log of creation, activation, deactivation, label changes +""" +type PlatformNamespaceEvent { + """Event timestamp (partition key)""" + createdAt: Datetime! + + """Unique event identifier""" + id: UUID! + + """Namespace this event belongs to""" + namespaceId: UUID! + + """ + Event type: created, activated, deactivated, labels_updated, annotations_updated, renamed + """ + eventType: String! + + """User who triggered this event (NULL for system/automated)""" + actorId: UUID + + """Human-readable description of the event""" + message: String + + """Structured context (old/new values, labels diff, etc.)""" + metadata: JSON + + """CPU usage in millicores at time of event""" + cpuMillicores: Int + + """Memory usage in bytes at time of event""" + memoryBytes: BigInt + + """Storage usage in bytes at time of event""" + storageBytes: BigInt + + """Network ingress in bytes during event window""" + networkIngressBytes: BigInt + + """Network egress in bytes during event window""" + networkEgressBytes: BigInt + + """Number of active pods in the namespace at time of event""" + podCount: Int + + """Additional resource metrics (gpu, replicas, quotas, etc.)""" + metrics: JSON +} + +"""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 `createdAt` field.""" + createdAt: DatetimeFilter + + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `namespaceId` field.""" + namespaceId: UUIDFilter + + """Filter by the object’s `eventType` field.""" + eventType: StringFilter + + """Filter by the object’s `actorId` field.""" + actorId: UUIDFilter + + """Filter by the object’s `message` field.""" + message: StringFilter + + """Filter by the object’s `metadata` field.""" + metadata: JSONFilter + + """Filter by the object’s `cpuMillicores` field.""" + cpuMillicores: IntFilter + + """Filter by the object’s `memoryBytes` field.""" + memoryBytes: BigIntFilter + + """Filter by the object’s `storageBytes` field.""" + storageBytes: BigIntFilter + + """Filter by the object’s `networkIngressBytes` field.""" + networkIngressBytes: BigIntFilter + + """Filter by the object’s `networkEgressBytes` field.""" + networkEgressBytes: BigIntFilter + + """Filter by the object’s `podCount` field.""" + podCount: IntFilter + + """Filter by the object’s `metrics` field.""" + metrics: JSONFilter + + """Checks for all expressions in this list.""" + and: [PlatformNamespaceEventFilter!] + + """Checks for any expressions in this list.""" + or: [PlatformNamespaceEventFilter!] + + """Negates the expression.""" + not: PlatformNamespaceEventFilter +} + +"""Methods to use when ordering `PlatformNamespaceEvent`.""" +enum PlatformNamespaceEventOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + CREATED_AT_ASC + CREATED_AT_DESC + ID_ASC + ID_DESC + NAMESPACE_ID_ASC + NAMESPACE_ID_DESC + EVENT_TYPE_ASC + EVENT_TYPE_DESC + ACTOR_ID_ASC + ACTOR_ID_DESC + MESSAGE_ASC + MESSAGE_DESC + METADATA_ASC + METADATA_DESC + CPU_MILLICORES_ASC + CPU_MILLICORES_DESC + MEMORY_BYTES_ASC + MEMORY_BYTES_DESC + STORAGE_BYTES_ASC + STORAGE_BYTES_DESC + NETWORK_INGRESS_BYTES_ASC + NETWORK_INGRESS_BYTES_DESC + NETWORK_EGRESS_BYTES_ASC + NETWORK_EGRESS_BYTES_DESC + POD_COUNT_ASC + POD_COUNT_DESC + METRICS_ASC + METRICS_DESC +} + +"""A connection to a list of `IntegrationProvider` values.""" +type IntegrationProviderConnection { + """A list of `IntegrationProvider` objects.""" + nodes: [IntegrationProvider]! + + """ + A list of edges which contains the `IntegrationProvider` and cursor to aid in pagination. + """ + edges: [IntegrationProviderEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `IntegrationProvider` you could get from the connection. + """ + totalCount: 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 { + id: UUID! + createdAt: Datetime + updatedAt: Datetime + + """ + Stable URL-safe identifier for the provider. Other tables match by this string, not by FK. + """ + slug: String! + + """Human-readable brand name (e.g. 'Mailgun', 'PostgreSQL')""" + name: String! + + """Short description of what this integration provides and when to use it""" + description: String + + """Browser category (e.g. email, database, storage, ai, analytics)""" + category: String + + """Icon identifier for the UI (e.g. mail, database, cloud)""" + icon: String + + """ + Provider logo as an image domain value (url, id, key, bucket, provider) + """ + logo: ConstructiveInternalTypeImage + + """ + Brand metadata: colors, fonts, and other provider-specific styling. Not a foreign key. + """ + brand: JSON! + + """ + 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]! + + """ + 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]! +} + +scalar ConstructiveInternalTypeImage + +"""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 { + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter + + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter + + """Filter by the object’s `slug` field.""" + slug: StringFilter + + """Filter by the object’s `name` field.""" + name: StringFilter + + """Filter by the object’s `description` field.""" + description: StringFilter + + """Filter by the object’s `category` field.""" + category: StringFilter + + """Filter by the object’s `icon` field.""" + icon: StringFilter + + """Filter by the object’s `logo` field.""" + logo: ConstructiveInternalTypeImageFilter + + """Filter by the object’s `brand` field.""" + brand: JSONFilter + + """Checks for all expressions in this list.""" + and: [IntegrationProviderFilter!] + + """Checks for any expressions in this list.""" + or: [IntegrationProviderFilter!] + + """Negates the expression.""" + not: IntegrationProviderFilter +} + +""" +A filter to be used against ConstructiveInternalTypeImage fields. All fields are combined with a logical ‘and.’ +""" +input ConstructiveInternalTypeImageFilter { + """ + Is null (if `true` is specified) or is not null (if `false` is specified). + """ + isNull: Boolean + + """Equal to the specified value.""" + equalTo: ConstructiveInternalTypeImage + + """Not equal to the specified value.""" + notEqualTo: ConstructiveInternalTypeImage + + """ + Not equal to the specified value, treating null like an ordinary value. + """ + distinctFrom: ConstructiveInternalTypeImage + + """Equal to the specified value, treating null like an ordinary value.""" + notDistinctFrom: ConstructiveInternalTypeImage + + """Included in the specified list.""" + in: [ConstructiveInternalTypeImage!] + + """Not included in the specified list.""" + notIn: [ConstructiveInternalTypeImage!] + + """Less than the specified value.""" + lessThan: ConstructiveInternalTypeImage + + """Less than or equal to the specified value.""" + lessThanOrEqualTo: ConstructiveInternalTypeImage + + """Greater than the specified value.""" + greaterThan: ConstructiveInternalTypeImage + + """Greater than or equal to the specified value.""" + greaterThanOrEqualTo: ConstructiveInternalTypeImage + + """Contains the specified JSON.""" + contains: ConstructiveInternalTypeImage + + """Contains the specified key.""" + containsKey: String + + """Contains all of the specified keys.""" + containsAllKeys: [String!] + + """Contains any of the specified keys.""" + containsAnyKeys: [String!] + + """Contained by the specified JSON.""" + containedBy: ConstructiveInternalTypeImage +} + +"""Methods to use when ordering `IntegrationProvider`.""" +enum IntegrationProviderOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + CREATED_AT_ASC + CREATED_AT_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC + SLUG_ASC + SLUG_DESC + NAME_ASC + NAME_DESC + DESCRIPTION_ASC + DESCRIPTION_DESC + CATEGORY_ASC + CATEGORY_DESC + ICON_ASC + ICON_DESC + LOGO_ASC + LOGO_DESC + BRAND_ASC + BRAND_DESC + REQUIRED_SECRETS_ASC + REQUIRED_SECRETS_DESC + REQUIRED_CONFIGS_ASC + REQUIRED_CONFIGS_DESC +} + +"""A connection to a list of `NamespaceEvent` values.""" +type NamespaceEventConnection { + """A list of `NamespaceEvent` objects.""" + nodes: [NamespaceEvent]! + + """ + A list of edges which contains the `NamespaceEvent` and cursor to aid in pagination. + """ + edges: [NamespaceEventEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `NamespaceEvent` you could get from the connection.""" + totalCount: Int! +} + +""" +Namespace lifecycle events — audit log of creation, activation, deactivation, label changes +""" +type NamespaceEvent { + """Event timestamp (partition key)""" + createdAt: Datetime! + + """Unique event identifier""" + id: UUID! + + """Namespace this event belongs to""" + namespaceId: UUID! + + """ + Event type: created, activated, deactivated, labels_updated, annotations_updated, renamed + """ + eventType: String! + + """User who triggered this event (NULL for system/automated)""" + actorId: UUID + + """Human-readable description of the event""" + message: String + + """Structured context (old/new values, labels diff, etc.)""" + metadata: JSON + + """CPU usage in millicores at time of event""" + cpuMillicores: Int + + """Memory usage in bytes at time of event""" + memoryBytes: BigInt + + """Storage usage in bytes at time of event""" + storageBytes: BigInt + + """Network ingress in bytes during event window""" + networkIngressBytes: BigInt + + """Network egress in bytes during event window""" + networkEgressBytes: BigInt + + """Number of active pods in the namespace at time of event""" + podCount: Int + + """Additional resource metrics (gpu, replicas, quotas, etc.)""" + metrics: JSON + + """Database that owns this resource (database-scoped isolation)""" + databaseId: UUID! +} + +"""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 `createdAt` field.""" + createdAt: DatetimeFilter + + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `namespaceId` field.""" + namespaceId: UUIDFilter + + """Filter by the object’s `eventType` field.""" + eventType: StringFilter + + """Filter by the object’s `actorId` field.""" + actorId: UUIDFilter + + """Filter by the object’s `message` field.""" + message: StringFilter + + """Filter by the object’s `metadata` field.""" + metadata: JSONFilter + + """Filter by the object’s `cpuMillicores` field.""" + cpuMillicores: IntFilter + + """Filter by the object’s `memoryBytes` field.""" + memoryBytes: BigIntFilter + + """Filter by the object’s `storageBytes` field.""" + storageBytes: BigIntFilter + + """Filter by the object’s `networkIngressBytes` field.""" + networkIngressBytes: BigIntFilter + + """Filter by the object’s `networkEgressBytes` field.""" + networkEgressBytes: BigIntFilter + + """Filter by the object’s `podCount` field.""" + podCount: IntFilter + + """Filter by the object’s `metrics` field.""" + metrics: JSONFilter + + """Filter by the object’s `databaseId` field.""" + databaseId: UUIDFilter + + """Checks for all expressions in this list.""" + and: [NamespaceEventFilter!] + + """Checks for any expressions in this list.""" + or: [NamespaceEventFilter!] + + """Negates the expression.""" + not: NamespaceEventFilter +} + +"""Methods to use when ordering `NamespaceEvent`.""" +enum NamespaceEventOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + CREATED_AT_ASC + CREATED_AT_DESC + ID_ASC + ID_DESC + NAMESPACE_ID_ASC + NAMESPACE_ID_DESC + EVENT_TYPE_ASC + EVENT_TYPE_DESC + ACTOR_ID_ASC + ACTOR_ID_DESC + MESSAGE_ASC + MESSAGE_DESC + METADATA_ASC + METADATA_DESC + CPU_MILLICORES_ASC + CPU_MILLICORES_DESC + MEMORY_BYTES_ASC + MEMORY_BYTES_DESC + STORAGE_BYTES_ASC + STORAGE_BYTES_DESC + NETWORK_INGRESS_BYTES_ASC + NETWORK_INGRESS_BYTES_DESC + NETWORK_EGRESS_BYTES_ASC + NETWORK_EGRESS_BYTES_DESC + POD_COUNT_ASC + POD_COUNT_DESC + METRICS_ASC + METRICS_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC +} + +"""A connection to a list of `FunctionGraphExecution` values.""" +type FunctionGraphExecutionConnection { + """A list of `FunctionGraphExecution` objects.""" + nodes: [FunctionGraphExecution]! + + """ + A list of edges which contains the `FunctionGraphExecution` and cursor to aid in pagination. + """ + edges: [FunctionGraphExecutionEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `FunctionGraphExecution` you could get from the connection. + """ + totalCount: Int! +} + +"""Ephemeral execution state for flow graph evaluation""" +type FunctionGraphExecution { + """Execution start timestamp""" + startedAt: Datetime! + + """Unique execution identifier""" + id: UUID! + + """FK to the graph definition being executed""" + graphId: UUID! + + """Parent function_invocations row (for metering)""" + invocationId: UUID + + """Opaque store partition key for the global tier""" + scopeId: UUID! + + """ + Target output boundary node name to resolve; NULL derives completion from the graph's graphOutput nodes + """ + outputNode: String + + """Target output port name (default: value)""" + outputPort: String! + + """Lifecycle: pending → running → completed/failed/cancelled""" + status: String! + + """Initial inputs provided at invocation time""" + inputPayload: JSON + + """Final result extracted from terminal output node""" + outputPayload: JSON + + """ + Map of node_name → execution output id (content-addressed hash reference) + """ + nodeOutputs: JSON! + + """Pre-computed topological sort as array of wave objects""" + executionPlan: JSON + + """Index into execution_plan — tick only processes this wave""" + currentWave: Int! + + """Parent execution when this is a sub-execution""" + parentExecutionId: UUID + + """Node name in parent execution that spawned this sub-execution""" + parentNodeName: String + + """Pinned definitions store commit for deterministic evaluation""" + definitionsCommitId: UUID + + """Number of evaluate_step ticks executed""" + tickCount: Int! + + """Execution completion timestamp""" + completedAt: Datetime + + """Maximum ticks before execution is failed (default 100)""" + maxTicks: Int! + + """Maximum pending jobs before execution is failed (default 50)""" + maxPendingJobs: Int! + + """Absolute deadline — execution fails if still running after this time""" + timeoutAt: Datetime! + + """ + Timestamp of the last real progress (node enqueue, node output, completion) — drives the activity-debounced watchdog + """ + lastProgressAt: Datetime! + + """Machine-readable error code when status = failed""" + errorCode: String + + """Human-readable error description when status = failed""" + errorMessage: String + + """ + Reads a single `FunctionGraph` that is related to this `FunctionGraphExecution`. + """ + graph: FunctionGraph +} + +"""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 `startedAt` field.""" + startedAt: DatetimeFilter + + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `graphId` field.""" + graphId: UUIDFilter + + """Filter by the object’s `invocationId` field.""" + invocationId: UUIDFilter + + """Filter by the object’s `scopeId` field.""" + scopeId: UUIDFilter + + """Filter by the object’s `outputNode` field.""" + outputNode: StringFilter + + """Filter by the object’s `outputPort` field.""" + outputPort: StringFilter + + """Filter by the object’s `status` field.""" + status: StringFilter + + """Filter by the object’s `inputPayload` field.""" + inputPayload: JSONFilter + + """Filter by the object’s `outputPayload` field.""" + outputPayload: JSONFilter + + """Filter by the object’s `nodeOutputs` field.""" + nodeOutputs: JSONFilter + + """Filter by the object’s `executionPlan` field.""" + executionPlan: JSONFilter + + """Filter by the object’s `currentWave` field.""" + currentWave: IntFilter + + """Filter by the object’s `parentExecutionId` field.""" + parentExecutionId: UUIDFilter + + """Filter by the object’s `parentNodeName` field.""" + parentNodeName: StringFilter + + """Filter by the object’s `definitionsCommitId` field.""" + definitionsCommitId: UUIDFilter + + """Filter by the object’s `tickCount` field.""" + tickCount: IntFilter + + """Filter by the object’s `completedAt` field.""" + completedAt: DatetimeFilter + + """Filter by the object’s `maxTicks` field.""" + maxTicks: IntFilter + + """Filter by the object’s `maxPendingJobs` field.""" + maxPendingJobs: IntFilter + + """Filter by the object’s `timeoutAt` field.""" + timeoutAt: DatetimeFilter + + """Filter by the object’s `lastProgressAt` field.""" + lastProgressAt: DatetimeFilter + + """Filter by the object’s `errorCode` field.""" + errorCode: StringFilter + + """Filter by the object’s `errorMessage` field.""" + errorMessage: StringFilter + + """Checks for all expressions in this list.""" + and: [FunctionGraphExecutionFilter!] + + """Checks for any expressions in this list.""" + or: [FunctionGraphExecutionFilter!] + + """Negates the expression.""" + not: FunctionGraphExecutionFilter + + """Filter by the object’s `graph` relation.""" + graph: FunctionGraphFilter +} + +"""Methods to use when ordering `FunctionGraphExecution`.""" +enum FunctionGraphExecutionOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + STARTED_AT_ASC + STARTED_AT_DESC + ID_ASC + ID_DESC + GRAPH_ID_ASC + GRAPH_ID_DESC + INVOCATION_ID_ASC + INVOCATION_ID_DESC + SCOPE_ID_ASC + SCOPE_ID_DESC + OUTPUT_NODE_ASC + OUTPUT_NODE_DESC + OUTPUT_PORT_ASC + OUTPUT_PORT_DESC + STATUS_ASC + STATUS_DESC + INPUT_PAYLOAD_ASC + INPUT_PAYLOAD_DESC + OUTPUT_PAYLOAD_ASC + OUTPUT_PAYLOAD_DESC + NODE_OUTPUTS_ASC + NODE_OUTPUTS_DESC + EXECUTION_PLAN_ASC + EXECUTION_PLAN_DESC + CURRENT_WAVE_ASC + CURRENT_WAVE_DESC + PARENT_EXECUTION_ID_ASC + PARENT_EXECUTION_ID_DESC + PARENT_NODE_NAME_ASC + PARENT_NODE_NAME_DESC + DEFINITIONS_COMMIT_ID_ASC + DEFINITIONS_COMMIT_ID_DESC + TICK_COUNT_ASC + TICK_COUNT_DESC + COMPLETED_AT_ASC + COMPLETED_AT_DESC + MAX_TICKS_ASC + MAX_TICKS_DESC + MAX_PENDING_JOBS_ASC + MAX_PENDING_JOBS_DESC + TIMEOUT_AT_ASC + TIMEOUT_AT_DESC + LAST_PROGRESS_AT_ASC + LAST_PROGRESS_AT_DESC + ERROR_CODE_ASC + ERROR_CODE_DESC + ERROR_MESSAGE_ASC + ERROR_MESSAGE_DESC +} + +"""A connection to a list of `PlatformFunctionDefinition` values.""" +type PlatformFunctionDefinitionConnection { + """A list of `PlatformFunctionDefinition` objects.""" + nodes: [PlatformFunctionDefinition]! + + """ + A list of edges which contains the `PlatformFunctionDefinition` and cursor to aid in pagination. + """ + edges: [PlatformFunctionDefinitionEdge]! + + """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 +} + +"""Methods to use when ordering `PlatformFunctionDefinition`.""" +enum PlatformFunctionDefinitionOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + CREATED_AT_ASC + CREATED_AT_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC + SCOPE_ASC + SCOPE_DESC + NAME_ASC + NAME_DESC + TASK_IDENTIFIER_ASC + TASK_IDENTIFIER_DESC + DESCRIPTION_ASC + DESCRIPTION_DESC + IS_PUBLISHED_ASC + IS_PUBLISHED_DESC + ACCESS_CHANNELS_ASC + ACCESS_CHANNELS_DESC + PUBLISHED_AT_ASC + PUBLISHED_AT_DESC + MAX_ATTEMPTS_ASC + MAX_ATTEMPTS_DESC + PRIORITY_ASC + PRIORITY_DESC + QUEUE_NAME_ASC + QUEUE_NAME_DESC + RUNTIME_ASC + RUNTIME_DESC + TARGET_SCHEMA_ASC + TARGET_SCHEMA_DESC + TARGET_FUNCTION_ASC + TARGET_FUNCTION_DESC + MODULE_TABLE_ASC + MODULE_TABLE_DESC + FUNCTION_COLUMNS_ASC + FUNCTION_COLUMNS_DESC + PAYLOAD_ARGS_ASC + PAYLOAD_ARGS_DESC + IMAGE_ASC + IMAGE_DESC + CONCURRENCY_ASC + CONCURRENCY_DESC + SCALE_MIN_ASC + SCALE_MIN_DESC + SCALE_MAX_ASC + SCALE_MAX_DESC + TIMEOUT_SECONDS_ASC + TIMEOUT_SECONDS_DESC + RESOURCES_ASC + RESOURCES_DESC + IS_BUILT_IN_ASC + IS_BUILT_IN_DESC + REQUIRED_SECRETS_ASC + REQUIRED_SECRETS_DESC + REQUIRED_CONFIGS_ASC + REQUIRED_CONFIGS_DESC + INTEGRATIONS_ASC + INTEGRATIONS_DESC + REQUIRED_BUCKETS_ASC + REQUIRED_BUCKETS_DESC + REQUIRED_MODELS_ASC + REQUIRED_MODELS_DESC + INPUTS_ASC + INPUTS_DESC + OUTPUTS_ASC + OUTPUTS_DESC + PROPS_ASC + PROPS_DESC + VOLATILE_ASC + VOLATILE_DESC + ICON_ASC + ICON_DESC + CATEGORY_ASC + CATEGORY_DESC +} + +"""A connection to a list of `FunctionDefinition` values.""" +type FunctionDefinitionConnection { + """A list of `FunctionDefinition` objects.""" + nodes: [FunctionDefinition]! + + """ + A list of edges which contains the `FunctionDefinition` and cursor to aid in pagination. + """ + edges: [FunctionDefinitionEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `FunctionDefinition` you could get from the connection. + """ + totalCount: Int! +} + +"""A `FunctionDefinition` edge in the connection.""" +type FunctionDefinitionEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `FunctionDefinition` at the end of the edge.""" + node: FunctionDefinition +} + +"""Methods to use when ordering `FunctionDefinition`.""" +enum FunctionDefinitionOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + CREATED_AT_ASC + CREATED_AT_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC + SCOPE_ASC + SCOPE_DESC + NAME_ASC + NAME_DESC + TASK_IDENTIFIER_ASC + TASK_IDENTIFIER_DESC + DESCRIPTION_ASC + DESCRIPTION_DESC + IS_PUBLISHED_ASC + IS_PUBLISHED_DESC + ACCESS_CHANNELS_ASC + ACCESS_CHANNELS_DESC + PUBLISHED_AT_ASC + PUBLISHED_AT_DESC + MAX_ATTEMPTS_ASC + MAX_ATTEMPTS_DESC + PRIORITY_ASC + PRIORITY_DESC + QUEUE_NAME_ASC + QUEUE_NAME_DESC + RUNTIME_ASC + RUNTIME_DESC + TARGET_SCHEMA_ASC + TARGET_SCHEMA_DESC + TARGET_FUNCTION_ASC + TARGET_FUNCTION_DESC + MODULE_TABLE_ASC + MODULE_TABLE_DESC + FUNCTION_COLUMNS_ASC + FUNCTION_COLUMNS_DESC + PAYLOAD_ARGS_ASC + PAYLOAD_ARGS_DESC + IMAGE_ASC + IMAGE_DESC + CONCURRENCY_ASC + CONCURRENCY_DESC + SCALE_MIN_ASC + SCALE_MIN_DESC + SCALE_MAX_ASC + SCALE_MAX_DESC + TIMEOUT_SECONDS_ASC + TIMEOUT_SECONDS_DESC + RESOURCES_ASC + RESOURCES_DESC + IS_BUILT_IN_ASC + IS_BUILT_IN_DESC + REQUIRED_SECRETS_ASC + REQUIRED_SECRETS_DESC + REQUIRED_CONFIGS_ASC + REQUIRED_CONFIGS_DESC + INTEGRATIONS_ASC + INTEGRATIONS_DESC + REQUIRED_BUCKETS_ASC + REQUIRED_BUCKETS_DESC + REQUIRED_MODELS_ASC + REQUIRED_MODELS_DESC + INPUTS_ASC + INPUTS_DESC + OUTPUTS_ASC + OUTPUTS_DESC + PROPS_ASC + PROPS_DESC + VOLATILE_ASC + VOLATILE_DESC + ICON_ASC + ICON_DESC + CATEGORY_ASC + CATEGORY_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC +} + +"""Root meta schema type""" +type MetaSchema { + tables: [MetaTable!]! +} + +"""Information about a database table""" +type MetaTable { + name: String! + schemaName: String! + fields: [MetaField!]! + indexes: [MetaIndex!]! + constraints: MetaConstraints! + foreignKeyConstraints: [MetaForeignKeyConstraint!]! + primaryKeyConstraints: [MetaPrimaryKeyConstraint!]! + uniqueConstraints: [MetaUniqueConstraint!]! + relations: MetaRelations! + inflection: MetaInflection! + query: MetaQuery! + + """Storage metadata (null if not a storage table)""" + storage: MetaStorage + + """Search metadata (null if no search configured)""" + search: MetaSearch + + """i18n metadata (null if no @i18n tag)""" + i18n: MetaI18n + + """Realtime metadata (null if no @realtime tag)""" + realtime: MetaRealtime +} + +"""Information about a table field/column""" +type MetaField { + name: String! + type: MetaType! + isNotNull: Boolean! + hasDefault: Boolean! + isPrimaryKey: Boolean! + isForeignKey: Boolean! + description: String + + """Enum metadata if this field has an enum type""" + enumValues: MetaEnum +} + +"""Information about a PostgreSQL type""" +type MetaType { + pgType: String! + gqlType: String! + isArray: Boolean! + isNotNull: Boolean + hasDefault: Boolean + subtype: String +} + +"""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 database index""" +type MetaIndex { + name: String! + isUnique: Boolean! + isPrimary: Boolean! + columns: [String!]! + fields: [MetaField!] +} + +"""Table constraints""" +type MetaConstraints { + primaryKey: MetaPrimaryKeyConstraint + unique: [MetaUniqueConstraint!]! + foreignKey: [MetaForeignKeyConstraint!]! +} + +"""Information about a primary key constraint""" +type MetaPrimaryKeyConstraint { + name: String! + fields: [MetaField!]! +} + +"""Information about a unique constraint""" +type MetaUniqueConstraint { + name: String! + fields: [MetaField!]! +} + +"""Information about a foreign key constraint""" +type MetaForeignKeyConstraint { + name: String! + fields: [MetaField!]! + referencedTable: String! + referencedFields: [String!]! + refFields: [MetaField!] + refTable: MetaRefTable +} + +"""Reference to a related table""" +type MetaRefTable { + name: String! +} + +"""Table relations""" +type MetaRelations { + belongsTo: [MetaBelongsToRelation!]! + has: [MetaHasRelation!]! + hasOne: [MetaHasRelation!]! + hasMany: [MetaHasRelation!]! + manyToMany: [MetaManyToManyRelation!]! +} + +"""A belongs-to (forward FK) relation""" +type MetaBelongsToRelation { + fieldName: String + isUnique: Boolean! + type: String + keys: [MetaField!]! + references: MetaRefTable! +} + +"""A has-one or has-many (reverse FK) relation""" +type MetaHasRelation { + fieldName: String + isUnique: Boolean! + type: String + keys: [MetaField!]! + referencedBy: MetaRefTable! +} + +"""A many-to-many relation via junction table""" +type MetaManyToManyRelation { + fieldName: String + type: String + junctionTable: MetaRefTable! + junctionLeftConstraint: MetaForeignKeyConstraint! + junctionLeftKeyAttributes: [MetaField!]! + junctionRightConstraint: MetaForeignKeyConstraint! + junctionRightKeyAttributes: [MetaField!]! + leftKeyAttributes: [MetaField!]! + rightKeyAttributes: [MetaField!]! + rightTable: MetaRefTable! +} + +"""Table inflection names""" +type MetaInflection { + tableType: String! + allRows: String! + connection: String! + edge: String! + filterType: String + orderByType: String! + conditionType: String! + patchType: String + createInputType: String! + createPayloadType: String! + updatePayloadType: String + deletePayloadType: String! +} + +"""Table query/mutation names""" +type MetaQuery { + all: String! + one: String + create: String + update: String + delete: String +} + +"""Storage metadata for a table""" +type MetaStorage { + """Whether this table is a storage files table""" + isFilesTable: Boolean! + + """Whether this table is a storage buckets table""" + isBucketsTable: Boolean! +} + +"""Search metadata for a table""" +type MetaSearch { + """Active search algorithms on this table""" + algorithms: [String!]! + + """Searchable columns with their algorithm""" + columns: [MetaSearchColumn!]! + + """Whether unifiedSearch composite filter is available""" + hasUnifiedSearch: Boolean! + + """Per-table search configuration""" + config: MetaSearchConfig +} + +"""A searchable column with its algorithm""" +type MetaSearchColumn { + """Column name (camelCase)""" + name: String! + + """Search algorithm: tsvector, bm25, trgm, or vector""" + algorithm: String! +} + +"""Per-table search configuration from @searchConfig smart tag""" +type MetaSearchConfig { + """JSON-encoded per-adapter score weights""" + weights: String + + """Whether recency boosting is enabled""" + boostRecent: Boolean! + + """Field used for recency decay""" + boostRecencyField: String + + """Exponential decay factor per day""" + boostRecencyDecay: Float +} + +"""i18n metadata for a table with @i18n tag""" +type MetaI18n { + """Name of the translation table""" + translationTable: String! + + """Fields that are translatable""" + translatableFields: [MetaI18nField!]! +} + +"""A translatable field""" +type MetaI18nField { + """GraphQL field name""" + name: String! + + """PostgreSQL column type (text, citext)""" + type: String! +} + +"""Realtime metadata for a table with @realtime tag""" +type MetaRealtime { + """The generated subscription field name (e.g. onPostChanged)""" + subscriptionFieldName: String! +} + +""" +The root mutation type which contains root level fields which mutate data. +""" +type Mutation { + validateFunctionGraph( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: ValidateFunctionGraphInput! + ): ValidateFunctionGraphPayload + infraInitEmptyRepo( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: InfraInitEmptyRepoInput! + ): InfraInitEmptyRepoPayload + initEmptyRepo( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: InitEmptyRepoInput! + ): InitEmptyRepoPayload + importDefinitions( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: ImportDefinitionsInput! + ): ImportDefinitionsPayload + infraSetDataAtPath( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: InfraSetDataAtPathInput! + ): InfraSetDataAtPathPayload + setDataAtPath( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: SetDataAtPathInput! + ): SetDataAtPathPayload + copyGraph( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CopyGraphInput! + ): CopyGraphPayload + saveGraph( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: SaveGraphInput! + ): SaveGraphPayload + addEdgeAndSave( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: AddEdgeAndSaveInput! + ): AddEdgeAndSavePayload + addNodeAndSave( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: AddNodeAndSaveInput! + ): AddNodeAndSavePayload + createFunctionGraph( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateFunctionGraphInput! + ): CreateFunctionGraphPayload + importGraphJson( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: ImportGraphJsonInput! + ): ImportGraphJsonPayload + addEdge( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: AddEdgeInput! + ): AddEdgePayload + addNode( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: AddNodeInput! + ): AddNodePayload + infraInsertNodeAtPath( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: InfraInsertNodeAtPathInput! + ): InfraInsertNodeAtPathPayload + insertNodeAtPath( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: InsertNodeAtPathInput! + ): InsertNodeAtPathPayload + startExecution( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: StartExecutionInput! + ): StartExecutionPayload + + """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 `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 `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 `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 `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 `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 `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 `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 `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 `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 `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 `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 `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 `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 `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 `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 `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 + + """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 `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 `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 `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 `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 `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 `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 `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 `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 `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 `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 `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 `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 `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 `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 `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 `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 `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 + + """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 `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 `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 `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 `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 `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 `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 `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 `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 `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 `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 `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 `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 `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 `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 `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 `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 `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 `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 `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 `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 `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 `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 `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 `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 `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 `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 `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 `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 `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 `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 `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 `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 `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 `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 `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 + + """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 `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 `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 `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 `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 `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 `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 `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 `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 `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 `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 `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 `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 `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 `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 `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 `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 `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 `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 `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 `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 `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 `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 `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 `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 `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 `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 `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 `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 `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 `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 `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 `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 `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 `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 `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 + + """ + 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 +} + +"""The output of our `validateFunctionGraph` mutation.""" +type ValidateFunctionGraphPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + result: Boolean + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + +"""All input for the `validateFunctionGraph` mutation.""" +input ValidateFunctionGraphInput { + """ + An arbitrary 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 +} + +"""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 `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 `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 `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 `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 `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 + graphId: UUID + sourceScopeId: UUID + sourceCommitId: UUID + contexts: [String] +} + +"""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 + result: UUID + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + +"""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 + sId: UUID + root: UUID + path: [String] + data: JSON +} + +"""The output of our `setDataAtPath` mutation.""" +type SetDataAtPathPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + result: UUID + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + +"""All input for the `setDataAtPath` mutation.""" +input SetDataAtPathInput { + """ + An arbitrary 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 + root: UUID + path: [String] + data: JSON +} + +"""The output of our `copyGraph` mutation.""" +type CopyGraphPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + result: UUID + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + +"""All input for the `copyGraph` mutation.""" +input CopyGraphInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + scopeId: UUID + graphId: UUID + name: String +} + +"""The output of our `saveGraph` mutation.""" +type SaveGraphPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + result: UUID + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + +"""All input for the `saveGraph` mutation.""" +input SaveGraphInput { + """ + An arbitrary 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 + rootHash: UUID + message: String +} + +"""The output of our `addEdgeAndSave` mutation.""" +type AddEdgeAndSavePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + result: UUID + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + +"""All input for the `addEdgeAndSave` mutation.""" +input AddEdgeAndSaveInput { + """ + An arbitrary 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 + srcNode: String + srcPort: String + dstNode: String + dstPort: String + message: String +} + +"""The output of our `addNodeAndSave` mutation.""" +type AddNodeAndSavePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + result: UUID + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + +"""All input for the `addNodeAndSave` mutation.""" +input AddNodeAndSaveInput { + """ + An arbitrary 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 + nodeName: String + nodeType: String + props: JSON + meta: JSON + message: String +} + +"""The output of our `createFunctionGraph` mutation.""" +type CreateFunctionGraphPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + result: UUID + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + +"""All input for the `createFunctionGraph` mutation.""" +input CreateFunctionGraphInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + scopeId: UUID + name: String + context: String + description: String + createdBy: UUID + definitionsCommitId: 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 + result: UUID + + """ + 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 + scopeId: UUID + name: String + graphJson: JSON + context: String + description: String + createdBy: UUID + definitionsCommitId: UUID +} + +"""The output of our `addEdge` mutation.""" +type AddEdgePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + result: UUID + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + +"""All input for the `addEdge` mutation.""" +input AddEdgeInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + scopeId: UUID + rootHash: UUID + srcNode: String + srcPort: String + dstNode: String + dstPort: String + context: String + graphName: String +} + +"""The output of our `addNode` mutation.""" +type AddNodePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + result: UUID + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + +"""All input for the `addNode` mutation.""" +input AddNodeInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + scopeId: UUID + rootHash: UUID + nodeName: String + nodeType: String + context: String + graphName: String + props: JSON + meta: JSON +} + +"""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 + result: UUID + + """ + 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 + sId: UUID + root: UUID + path: [String] + data: JSON + kids: [UUID] + ktree: [String] +} + +"""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 + result: UUID + + """ + 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 + sId: UUID + root: UUID + path: [String] + data: JSON + kids: [UUID] + ktree: [String] +} + +"""The output of our `startExecution` mutation.""" +type StartExecutionPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + result: UUID + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + +"""All input for the `startExecution` mutation.""" +input StartExecutionInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + graphId: UUID + inputPayload: JSON + outputNode: String + outputPort: String + maxTicks: Int + maxPendingJobs: Int + timeoutInterval: IntervalInput + parentExecutionId: UUID + parentNodeName: String +} + +"""The output of our create `InfraRef` mutation.""" +type CreateInfraRefPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `InfraRef` that was created by this mutation.""" + infraRef: InfraRef + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """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 +} + +"""All input for the create `InfraRef` mutation.""" +input CreateInfraRefInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """The `InfraRef` to be created by this mutation.""" + infraRef: InfraRefInput! +} + +"""An input for mutations affecting `InfraRef`""" +input InfraRefInput { + """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! + + """Commit this ref points to""" + commitId: UUID +} + +"""The output of our create `InfraStore` mutation.""" +type CreateInfraStorePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `InfraStore` that was created by this mutation.""" + infraStore: InfraStore + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """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 +} + +"""All input for the create `InfraStore` mutation.""" +input CreateInfraStoreInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """The `InfraStore` to be created by this mutation.""" + infraStore: InfraStoreInput! +} + +"""An input for mutations affecting `InfraStore`""" +input InfraStoreInput { + """Unique store identifier""" + id: UUID + + """Human-readable store name""" + name: String! + + """Opaque store partition key for the global tier""" + scopeId: UUID! + + """Current root object hash of this store""" + hash: UUID + + """Timestamp of store creation""" + createdAt: Datetime +} + +"""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 + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """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 +} + +"""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! +} + +"""An input for mutations affecting `FunctionApiBinding`""" +input FunctionApiBindingInput { + id: UUID + + """Function definition this binding belongs to""" + functionDefinitionId: UUID! + + """API endpoint this function is bound to""" + apiId: UUID! + + """Binding alias (e.g. default, staging, production)""" + alias: String + + """Per-binding configuration (overrides, routing rules, etc.)""" + config: JSON +} + +"""The output of our create `FunctionGraphRef` mutation.""" +type CreateFunctionGraphRefPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `FunctionGraphRef` that was created by this mutation.""" + functionGraphRef: FunctionGraphRef + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """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 +} + +"""All input for the create `FunctionGraphRef` mutation.""" +input CreateFunctionGraphRefInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """The `FunctionGraphRef` to be created by this mutation.""" + functionGraphRef: FunctionGraphRefInput! +} + +"""An input for mutations affecting `FunctionGraphRef`""" +input FunctionGraphRefInput { + """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! + + """Commit this ref points to""" + commitId: UUID +} + +"""The output of our create `FunctionGraphStore` mutation.""" +type CreateFunctionGraphStorePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `FunctionGraphStore` that was created by this mutation.""" + functionGraphStore: FunctionGraphStore + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """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 +} + +"""All input for the create `FunctionGraphStore` mutation.""" +input CreateFunctionGraphStoreInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """The `FunctionGraphStore` to be created by this mutation.""" + functionGraphStore: FunctionGraphStoreInput! +} + +"""An input for mutations affecting `FunctionGraphStore`""" +input FunctionGraphStoreInput { + """Unique store identifier""" + id: UUID + + """Human-readable store name""" + name: String! + + """Opaque store partition key for the global tier""" + scopeId: UUID! + + """Current root object hash of this store""" + hash: UUID + + """Timestamp of store creation""" + createdAt: Datetime +} + +"""The output of our create `PlatformFunctionApiBinding` mutation.""" +type CreatePlatformFunctionApiBindingPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `PlatformFunctionApiBinding` that was created by this mutation.""" + platformFunctionApiBinding: PlatformFunctionApiBinding + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """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 +} + +"""All input for the create `PlatformFunctionApiBinding` mutation.""" +input CreatePlatformFunctionApiBindingInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """The `PlatformFunctionApiBinding` to be created by this mutation.""" + platformFunctionApiBinding: PlatformFunctionApiBindingInput! +} + +"""An input for mutations affecting `PlatformFunctionApiBinding`""" +input PlatformFunctionApiBindingInput { + id: UUID + + """Function definition this binding belongs to""" + functionDefinitionId: UUID! + + """API endpoint this function is bound to""" + apiId: UUID! + + """Binding alias (e.g. default, staging, production)""" + alias: String + + """Per-binding configuration (overrides, routing rules, etc.)""" + config: JSON +} + +"""The output of our create `PlatformResourceStatusCheck` mutation.""" +type CreatePlatformResourceStatusCheckPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `PlatformResourceStatusCheck` that was created by this mutation.""" + platformResourceStatusCheck: PlatformResourceStatusCheck + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """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 +} + +"""All input for the create `PlatformResourceStatusCheck` mutation.""" +input CreatePlatformResourceStatusCheckInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """The `PlatformResourceStatusCheck` to be created by this mutation.""" + platformResourceStatusCheck: PlatformResourceStatusCheckInput! +} + +"""An input for mutations affecting `PlatformResourceStatusCheck`""" +input PlatformResourceStatusCheckInput { + """Unique status check identifier""" + id: UUID + + """Resource to check""" + resourceId: UUID! + + """User who requested the check (NULL for system/scheduled)""" + requestedBy: UUID + + """When the check was requested""" + requestedAt: Datetime + + """When the check completed (NULL while pending/running)""" + completedAt: Datetime + + """Check lifecycle: pending, running, completed, failed""" + status: String + + """Diagnostic snapshot: k8s_status, conditions, pod_logs_tail, events""" + result: JSON +} + +"""The output of our create `InfraObject` mutation.""" +type CreateInfraObjectPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `InfraObject` that was created by this mutation.""" + infraObject: InfraObject + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """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 +} + +"""All input for the create `InfraObject` mutation.""" +input CreateInfraObjectInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """The `InfraObject` to be created by this mutation.""" + infraObject: InfraObjectInput! +} + +"""An input for mutations affecting `InfraObject`""" +input InfraObjectInput { + """Content-addressed UUID v5 — deterministic hash of (data, kids, ktree)""" + id: UUID! + + """Opaque store partition key for the global tier""" + scopeId: UUID! + + """Ordered array of child object IDs""" + kids: [UUID] + + """Ordered array of child path names (parallel to kids)""" + ktree: [String] + + """Payload data for this object node""" + data: JSON + + """Timestamp of object creation""" + createdAt: Datetime +} + +"""The output of our create `FunctionGraphObject` mutation.""" +type CreateFunctionGraphObjectPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `FunctionGraphObject` that was created by this mutation.""" + functionGraphObject: FunctionGraphObject + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """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 +} + +"""All input for the create `FunctionGraphObject` mutation.""" +input CreateFunctionGraphObjectInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """The `FunctionGraphObject` to be created by this mutation.""" + functionGraphObject: FunctionGraphObjectInput! +} + +"""An input for mutations affecting `FunctionGraphObject`""" +input FunctionGraphObjectInput { + """Content-addressed UUID v5 — deterministic hash of (data, kids, ktree)""" + id: UUID! + + """Opaque store partition key for the global tier""" + scopeId: UUID! + + """Ordered array of child object IDs""" + kids: [UUID] + + """Ordered array of child path names (parallel to kids)""" + ktree: [String] + + """Payload data for this object node""" + data: JSON + + """Timestamp of object creation""" + createdAt: Datetime +} + +"""The output of our create `PlatformFunctionDeploymentEvent` mutation.""" +type CreatePlatformFunctionDeploymentEventPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """ + The `PlatformFunctionDeploymentEvent` that was created by this mutation. + """ + platformFunctionDeploymentEvent: PlatformFunctionDeploymentEvent + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """ + 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 +} + +"""All input for the create `PlatformFunctionDeploymentEvent` mutation.""" +input CreatePlatformFunctionDeploymentEventInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """The `PlatformFunctionDeploymentEvent` to be created by this mutation.""" + platformFunctionDeploymentEvent: PlatformFunctionDeploymentEventInput! +} + +"""An input for mutations affecting `PlatformFunctionDeploymentEvent`""" +input PlatformFunctionDeploymentEventInput { + """Event timestamp (partition key)""" + createdAt: Datetime + + """Unique event identifier""" + id: UUID + + """Deployment this event belongs to""" + deploymentId: UUID! + + """ + Event type: provisioned, scaled, failed, deactivated, redeployed, health_check + """ + eventType: String! + + """User who triggered this event (NULL for system/automated)""" + actorId: UUID + + """Human-readable description of the event""" + message: String + + """Structured context (old/new values, error details, etc.)""" + metadata: JSON +} + +"""The output of our create `PlatformResourceEvent` mutation.""" +type CreatePlatformResourceEventPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `PlatformResourceEvent` that was created by this mutation.""" + platformResourceEvent: PlatformResourceEvent + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """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 +} + +"""All input for the create `PlatformResourceEvent` mutation.""" +input CreatePlatformResourceEventInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """The `PlatformResourceEvent` to be created by this mutation.""" + platformResourceEvent: PlatformResourceEventInput! +} + +"""An input for mutations affecting `PlatformResourceEvent`""" +input PlatformResourceEventInput { + """Event timestamp (partition key)""" + createdAt: Datetime + + """Unique event identifier""" + id: UUID + + """Resource this event belongs to""" + resourceId: UUID! + + """ + Event type: provisioned, provisioning, updated, failed, deprovisioned, health_check + """ + eventType: String! + + """User who triggered this event (NULL for system/automated)""" + actorId: UUID + + """Human-readable description of the event""" + message: String + + """Structured context (old/new values, error details, etc.)""" + metadata: JSON +} + +"""The output of our create `ResourceStatusCheck` mutation.""" +type CreateResourceStatusCheckPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `ResourceStatusCheck` that was created by this mutation.""" + resourceStatusCheck: ResourceStatusCheck + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `ResourceStatusCheck`. May be used by Relay 1.""" + resourceStatusCheckEdge( + """The method to use when ordering `ResourceStatusCheck`.""" + orderBy: [ResourceStatusCheckOrderBy!]! = [PRIMARY_KEY_ASC] + ): ResourceStatusCheckEdge +} + +"""All input for the create `ResourceStatusCheck` mutation.""" +input CreateResourceStatusCheckInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """The `ResourceStatusCheck` to be created by this mutation.""" + resourceStatusCheck: ResourceStatusCheckInput! +} + +"""An input for mutations affecting `ResourceStatusCheck`""" +input ResourceStatusCheckInput { + """Unique status check identifier""" + id: UUID + + """Resource to check""" + resourceId: UUID! + + """Database that owns this resource (database-scoped isolation)""" + databaseId: UUID! + + """User who requested the check (NULL for system/scheduled)""" + requestedBy: UUID + + """When the check was requested""" + requestedAt: Datetime + + """When the check completed (NULL while pending/running)""" + completedAt: Datetime + + """Check lifecycle: pending, running, completed, failed""" + status: String + + """Diagnostic snapshot: k8s_status, conditions, pod_logs_tail, events""" + result: JSON +} + +"""The output of our create `FunctionDeploymentEvent` mutation.""" +type CreateFunctionDeploymentEventPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `FunctionDeploymentEvent` that was created by this mutation.""" + functionDeploymentEvent: FunctionDeploymentEvent + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """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 +} + +"""All input for the create `FunctionDeploymentEvent` mutation.""" +input CreateFunctionDeploymentEventInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """The `FunctionDeploymentEvent` to be created by this mutation.""" + functionDeploymentEvent: FunctionDeploymentEventInput! +} + +"""An input for mutations affecting `FunctionDeploymentEvent`""" +input FunctionDeploymentEventInput { + """Event timestamp (partition key)""" + createdAt: Datetime + + """Unique event identifier""" + id: UUID + + """Deployment this event belongs to""" + deploymentId: UUID! + + """ + Event type: provisioned, scaled, failed, deactivated, redeployed, health_check + """ + eventType: String! + + """User who triggered this event (NULL for system/automated)""" + actorId: UUID + + """Human-readable description of the event""" + message: String + + """Structured context (old/new values, error details, etc.)""" + metadata: JSON + + """Database that owns this resource (database-scoped isolation)""" + databaseId: UUID! +} + +"""The output of our create `PlatformFunctionExecutionLog` mutation.""" +type CreatePlatformFunctionExecutionLogPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `PlatformFunctionExecutionLog` that was created by this mutation.""" + platformFunctionExecutionLog: PlatformFunctionExecutionLog + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """ + 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 +} + +"""All input for the create `PlatformFunctionExecutionLog` mutation.""" +input CreatePlatformFunctionExecutionLogInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """The `PlatformFunctionExecutionLog` to be created by this mutation.""" + platformFunctionExecutionLog: PlatformFunctionExecutionLogInput! +} + +"""An input for mutations affecting `PlatformFunctionExecutionLog`""" +input PlatformFunctionExecutionLogInput { + """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 + + """Function routing key (NULL for generic job logs)""" + taskIdentifier: String + + """Log severity: debug, info, warn, error""" + logLevel: String + + """Log message text""" + message: String! + + """Structured context (labels, trace data, extra fields)""" + metadata: JSON + + """User who triggered the execution (NULL for system/cron)""" + actorId: UUID +} + +"""The output of our create `ResourceEvent` mutation.""" +type CreateResourceEventPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `ResourceEvent` that was created by this mutation.""" + resourceEvent: ResourceEvent + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `ResourceEvent`. May be used by Relay 1.""" + resourceEventEdge( + """The method to use when ordering `ResourceEvent`.""" + orderBy: [ResourceEventOrderBy!]! = [PRIMARY_KEY_ASC] + ): ResourceEventEdge +} + +"""All input for the create `ResourceEvent` mutation.""" +input CreateResourceEventInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """The `ResourceEvent` to be created by this mutation.""" + resourceEvent: ResourceEventInput! +} + +"""An input for mutations affecting `ResourceEvent`""" +input ResourceEventInput { + """Event timestamp (partition key)""" + createdAt: Datetime + + """Unique event identifier""" + id: UUID + + """Resource this event belongs to""" + resourceId: UUID! + + """ + Event type: provisioned, provisioning, updated, failed, deprovisioned, health_check + """ + eventType: String! + + """User who triggered this event (NULL for system/automated)""" + actorId: UUID + + """Human-readable description of the event""" + message: String + + """Structured context (old/new values, error details, etc.)""" + metadata: JSON + + """Database that owns this resource (database-scoped isolation)""" + databaseId: UUID! +} + +"""The output of our create `FunctionGraphExecutionOutput` mutation.""" +type CreateFunctionGraphExecutionOutputPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `FunctionGraphExecutionOutput` that was created by this mutation.""" + functionGraphExecutionOutput: FunctionGraphExecutionOutput + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """ + 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 +} + +"""All input for the create `FunctionGraphExecutionOutput` mutation.""" +input CreateFunctionGraphExecutionOutputInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """The `FunctionGraphExecutionOutput` to be created by this mutation.""" + functionGraphExecutionOutput: FunctionGraphExecutionOutputInput! +} + +"""An input for mutations affecting `FunctionGraphExecutionOutput`""" +input FunctionGraphExecutionOutputInput { + """Timestamp of output creation""" + createdAt: Datetime + + """Unique execution output identifier""" + id: UUID + + """Opaque store partition key for the global tier""" + scopeId: UUID! + + """SHA-256 hash of the data JSONB — content-addressed deduplication""" + hash: Base64EncodedBinary! + + """The actual output payload from a completed node""" + data: JSON! +} + +"""The output of our create `InfraCommit` mutation.""" +type CreateInfraCommitPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `InfraCommit` that was created by this mutation.""" + infraCommit: InfraCommit + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """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 +} + +"""All input for the create `InfraCommit` mutation.""" +input CreateInfraCommitInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """The `InfraCommit` to be created by this mutation.""" + infraCommit: InfraCommitInput! +} + +"""An input for mutations affecting `InfraCommit`""" +input InfraCommitInput { + """Unique commit identifier""" + id: UUID + + """Optional commit message""" + message: String + + """Opaque store partition key for the global tier""" + scopeId: UUID! + + """Store this commit belongs to""" + storeId: UUID! + + """Parent commit IDs (supports merge commits)""" + parentIds: [UUID] + + """User who authored the changes""" + authorId: UUID + + """User who committed (may differ from author)""" + committerId: UUID + + """Root object ID of the tree snapshot at this commit""" + treeId: UUID + + """Commit timestamp""" + date: Datetime +} + +"""The output of our create `FunctionGraphCommit` mutation.""" +type CreateFunctionGraphCommitPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `FunctionGraphCommit` that was created by this mutation.""" + functionGraphCommit: FunctionGraphCommit + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """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 +} + +"""All input for the create `FunctionGraphCommit` mutation.""" +input CreateFunctionGraphCommitInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """The `FunctionGraphCommit` to be created by this mutation.""" + functionGraphCommit: FunctionGraphCommitInput! +} + +"""An input for mutations affecting `FunctionGraphCommit`""" +input FunctionGraphCommitInput { + """Unique commit identifier""" + id: UUID + + """Optional commit message""" + message: String + + """Opaque store partition key for the global tier""" + scopeId: UUID! + + """Store this commit belongs to""" + storeId: UUID! + + """Parent commit IDs (supports merge commits)""" + parentIds: [UUID] + + """User who authored the changes""" + authorId: UUID + + """User who committed (may differ from author)""" + committerId: UUID + + """Root object ID of the tree snapshot at this commit""" + treeId: UUID + + """Commit timestamp""" + date: Datetime +} + +"""The output of our create `FunctionExecutionLog` mutation.""" +type CreateFunctionExecutionLogPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `FunctionExecutionLog` that was created by this mutation.""" + functionExecutionLog: FunctionExecutionLog + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """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 +} + +"""All input for the create `FunctionExecutionLog` mutation.""" +input CreateFunctionExecutionLogInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """The `FunctionExecutionLog` to be created by this mutation.""" + functionExecutionLog: FunctionExecutionLogInput! +} + +"""An input for mutations affecting `FunctionExecutionLog`""" +input FunctionExecutionLogInput { + """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 + + """Function routing key (NULL for generic job logs)""" + taskIdentifier: String + + """Log severity: debug, info, warn, error""" + logLevel: String + + """Log message text""" + message: String! + + """Structured context (labels, trace data, extra fields)""" + metadata: JSON + + """User who triggered the execution (NULL for system/cron)""" + actorId: UUID + + """Database that owns this resource (database-scoped isolation)""" + databaseId: UUID! +} + +"""The output of our create `DbPreset` mutation.""" +type CreateDbPresetPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `DbPreset` that was created by this mutation.""" + dbPreset: DbPreset + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """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 +} + +"""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! +} + +"""An input for mutations affecting `DbPreset`""" +input DbPresetInput { + """Unique preset identifier""" + id: UUID + + """ + Infra Merkle store holding this preset's history (stamped by the versioned trigger) + """ + storeId: UUID + + """ + Preset slug (unique per scope); the preset's path in the infra tree is [db_preset, slug] + """ + slug: String! + + """ + Preset definition (modules + options) — the readily-cached head; history lives in the infra store + """ + definition: JSON! + + """ + Infra store commit for the current definition (stamped by the versioned trigger on every write) + """ + commitId: 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 + + """Human-readable preset name""" + label: String + + """Human-readable description of the preset""" + description: String + + """Whether this preset is selectable for new databases""" + active: Boolean + + """Timestamp of preset creation""" + createdAt: Datetime + + """Timestamp of last modification""" + updatedAt: Datetime +} + +"""The output of our create `PlatformNamespace` mutation.""" +type CreatePlatformNamespacePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `PlatformNamespace` that was created by this mutation.""" + platformNamespace: PlatformNamespace + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """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 +} + +"""All input for the create `PlatformNamespace` mutation.""" +input CreatePlatformNamespaceInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """The `PlatformNamespace` to be created by this mutation.""" + platformNamespace: PlatformNamespaceInput! +} + +"""An input for mutations affecting `PlatformNamespace`""" +input PlatformNamespaceInput { + id: UUID + createdAt: Datetime + updatedAt: Datetime + + """Human-readable namespace name (e.g. default, production, oauth)""" + name: String! + + """ + Globally unique computed namespace identifier via inflection.underscore + """ + namespaceName: String! + + """Optional human-readable description of this namespace""" + description: String + + """Whether this namespace is active (soft-disable for filtering)""" + isActive: Boolean + + """ + Namespace provisioning lifecycle status: pending, provisioning, active, failed + """ + status: String + + """Most recent provisioning or reconcile error message""" + lastError: String + + """Key/value pairs for selecting and filtering namespaces""" + labels: JSON + + """Freeform metadata for tooling and operational notes""" + annotations: JSON + + """ + true = provisioned by the platform via jobs, false = unmanaged/platform-native (bootstrapped externally) + """ + isManaged: Boolean +} + +"""The output of our create `FunctionGraphExecutionNodeState` mutation.""" +type CreateFunctionGraphExecutionNodeStatePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """ + The `FunctionGraphExecutionNodeState` that was created by this mutation. + """ + functionGraphExecutionNodeState: FunctionGraphExecutionNodeState + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """ + 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 +} + +"""All input for the create `FunctionGraphExecutionNodeState` mutation.""" +input CreateFunctionGraphExecutionNodeStateInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """The `FunctionGraphExecutionNodeState` to be created by this mutation.""" + functionGraphExecutionNodeState: FunctionGraphExecutionNodeStateInput! +} + +"""An input for mutations affecting `FunctionGraphExecutionNodeState`""" +input FunctionGraphExecutionNodeStateInput { + """Timestamp of node state creation (partition key)""" + createdAt: Datetime + + """Unique node state identifier""" + id: UUID + + """FK to the parent graph execution""" + executionId: UUID! + + """Opaque store partition key for the global tier""" + scopeId: 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] + + """Node lifecycle: pending → queued → running → completed/failed""" + status: String + + """Timestamp when the node began executing""" + startedAt: Datetime + + """Timestamp when the node finished (success or failure)""" + completedAt: Datetime + + """Machine-readable error code when status = failed""" + errorCode: String + + """Human-readable error description when status = failed""" + errorMessage: String + + """FK to execution_outputs — content-addressed output blob for this node""" + outputId: UUID +} + +"""The output of our create `Namespace` mutation.""" +type CreateNamespacePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `Namespace` that was created by this mutation.""" + namespace: Namespace + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """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 +} + +"""All input for the create `Namespace` mutation.""" +input CreateNamespaceInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """The `Namespace` to be created by this mutation.""" + namespace: NamespaceInput! +} + +"""An input for mutations affecting `Namespace`""" +input NamespaceInput { + id: UUID + createdAt: Datetime + updatedAt: Datetime + + """Human-readable namespace name (e.g. default, production, oauth)""" + name: String! + + """ + Globally unique computed namespace identifier via inflection.underscore + """ + namespaceName: String! + + """Optional human-readable description of this namespace""" + description: String + + """Whether this namespace is active (soft-disable for filtering)""" + isActive: Boolean + + """ + Namespace provisioning lifecycle status: pending, provisioning, active, failed + """ + status: String + + """Most recent provisioning or reconcile error message""" + lastError: String + + """Key/value pairs for selecting and filtering namespaces""" + labels: JSON + + """Freeform metadata for tooling and operational notes""" + annotations: JSON + + """Database that owns this resource (database-scoped isolation)""" + databaseId: UUID! + + """ + true = provisioned by the platform via jobs, false = unmanaged/platform-native (bootstrapped externally) + """ + isManaged: Boolean +} + +"""The output of our create `PlatformFunctionInvocation` mutation.""" +type CreatePlatformFunctionInvocationPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `PlatformFunctionInvocation` that was created by this mutation.""" + platformFunctionInvocation: PlatformFunctionInvocation + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """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 +} + +"""All input for the create `PlatformFunctionInvocation` mutation.""" +input CreatePlatformFunctionInvocationInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """The `PlatformFunctionInvocation` to be created by this mutation.""" + platformFunctionInvocation: PlatformFunctionInvocationInput! +} + +"""An input for mutations affecting `PlatformFunctionInvocation`""" +input PlatformFunctionInvocationInput { + """Invocation creation timestamp (partition key)""" + createdAt: Datetime + + """Unique invocation identifier""" + id: UUID + + """Who triggered the invocation (NULL for system/cron)""" + actorId: UUID + + """ + Function routing slug (scope:name). Links to function_definitions.task_identifier by convention — no FK. + """ + taskIdentifier: String! + + """Function input payload""" + payload: JSON + + """Lifecycle: pending → running → completed/failed/cancelled""" + status: String + + """Function return value (success) or structured error (failure)""" + result: JSON + + """Error message when status is failed""" + error: String + + """Wall-clock execution time in milliseconds""" + durationMs: Int + + """FK to app_jobs.jobs — the underlying transport""" + jobId: BigInt + + """When execution started""" + startedAt: Datetime + + """When execution completed""" + completedAt: Datetime + + """Parent invocation when this is a child node of a flow graph execution""" + parentInvocationId: UUID + + """Groups all node invocations from a single flow graph execution""" + graphExecutionId: UUID +} + +"""The output of our create `FunctionInvocation` mutation.""" +type CreateFunctionInvocationPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `FunctionInvocation` that was created by this mutation.""" + functionInvocation: FunctionInvocation + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """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 +} + +"""All input for the create `FunctionInvocation` mutation.""" +input CreateFunctionInvocationInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """The `FunctionInvocation` to be created by this mutation.""" + functionInvocation: FunctionInvocationInput! +} + +"""An input for mutations affecting `FunctionInvocation`""" +input FunctionInvocationInput { + """Invocation creation timestamp (partition key)""" + createdAt: Datetime + + """Unique invocation identifier""" + id: UUID + + """Who triggered the invocation (NULL for system/cron)""" + actorId: UUID + + """Database that owns this resource (database-scoped isolation)""" + databaseId: UUID! + + """ + Function routing slug (scope:name). Links to function_definitions.task_identifier by convention — no FK. + """ + taskIdentifier: String! + + """Function input payload""" + payload: JSON + + """Lifecycle: pending → running → completed/failed/cancelled""" + status: String + + """Function return value (success) or structured error (failure)""" + result: JSON + + """Error message when status is failed""" + error: String + + """Wall-clock execution time in milliseconds""" + durationMs: Int + + """FK to app_jobs.jobs — the underlying transport""" + jobId: BigInt + + """When execution started""" + startedAt: Datetime + + """When execution completed""" + completedAt: Datetime + + """Parent invocation when this is a child node of a flow graph execution""" + parentInvocationId: UUID + + """Groups all node invocations from a single flow graph execution""" + graphExecutionId: UUID +} + +"""The output of our create `PlatformNamespaceEvent` mutation.""" +type CreatePlatformNamespaceEventPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `PlatformNamespaceEvent` that was created by this mutation.""" + platformNamespaceEvent: PlatformNamespaceEvent + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """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 +} + +"""All input for the create `PlatformNamespaceEvent` mutation.""" +input CreatePlatformNamespaceEventInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """The `PlatformNamespaceEvent` to be created by this mutation.""" + platformNamespaceEvent: PlatformNamespaceEventInput! +} + +"""An input for mutations affecting `PlatformNamespaceEvent`""" +input PlatformNamespaceEventInput { + """Event timestamp (partition key)""" + createdAt: Datetime + + """Unique event identifier""" + id: UUID + + """Namespace this event belongs to""" + namespaceId: UUID! + + """ + Event type: created, activated, deactivated, labels_updated, annotations_updated, renamed + """ + eventType: String! + + """User who triggered this event (NULL for system/automated)""" + actorId: UUID + + """Human-readable description of the event""" + message: String + + """Structured context (old/new values, labels diff, etc.)""" + metadata: JSON + + """CPU usage in millicores at time of event""" + cpuMillicores: Int + + """Memory usage in bytes at time of event""" + memoryBytes: BigInt + + """Storage usage in bytes at time of event""" + storageBytes: BigInt + + """Network ingress in bytes during event window""" + networkIngressBytes: BigInt + + """Network egress in bytes during event window""" + networkEgressBytes: BigInt + + """Number of active pods in the namespace at time of event""" + podCount: Int + + """Additional resource metrics (gpu, replicas, quotas, etc.)""" + metrics: JSON +} + +"""The output of our create `IntegrationProvider` mutation.""" +type CreateIntegrationProviderPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `IntegrationProvider` that was created by this mutation.""" + integrationProvider: IntegrationProvider + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """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 +} + +"""All input for the create `IntegrationProvider` mutation.""" +input CreateIntegrationProviderInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """The `IntegrationProvider` to be created by this mutation.""" + integrationProvider: IntegrationProviderInput! +} + +"""An input for mutations affecting `IntegrationProvider`""" +input IntegrationProviderInput { + id: UUID + createdAt: Datetime + updatedAt: Datetime + + """ + Stable URL-safe identifier for the provider. Other tables match by this string, not by FK. + """ + slug: String! + + """Human-readable brand name (e.g. 'Mailgun', 'PostgreSQL')""" + name: String! + + """Short description of what this integration provides and when to use it""" + description: String + + """Browser category (e.g. email, database, storage, ai, analytics)""" + category: String + + """Icon identifier for the UI (e.g. mail, database, cloud)""" + icon: String + + """ + Provider logo as an image domain value (url, id, key, bucket, provider) + """ + logo: ConstructiveInternalTypeImage + + """ + Brand metadata: colors, fonts, and other provider-specific styling. Not a foreign key. + """ + brand: JSON + + """ + 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] + + """ + 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] +} + +"""An input for mutations affecting `ResourceRequirement`""" +input ResourceRequirementInput { + name: String + required: Boolean + provider: String +} + +"""The output of our create `NamespaceEvent` mutation.""" +type CreateNamespaceEventPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `NamespaceEvent` that was created by this mutation.""" + namespaceEvent: NamespaceEvent + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """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 +} + +"""All input for the create `NamespaceEvent` mutation.""" +input CreateNamespaceEventInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """The `NamespaceEvent` to be created by this mutation.""" + namespaceEvent: NamespaceEventInput! +} + +"""An input for mutations affecting `NamespaceEvent`""" +input NamespaceEventInput { + """Event timestamp (partition key)""" + createdAt: Datetime + + """Unique event identifier""" + id: UUID + + """Namespace this event belongs to""" + namespaceId: UUID! + + """ + Event type: created, activated, deactivated, labels_updated, annotations_updated, renamed + """ + eventType: String! + + """User who triggered this event (NULL for system/automated)""" + actorId: UUID + + """Human-readable description of the event""" + message: String + + """Structured context (old/new values, labels diff, etc.)""" + metadata: JSON + + """CPU usage in millicores at time of event""" + cpuMillicores: Int + + """Memory usage in bytes at time of event""" + memoryBytes: BigInt + + """Storage usage in bytes at time of event""" + storageBytes: BigInt + + """Network ingress in bytes during event window""" + networkIngressBytes: BigInt + + """Network egress in bytes during event window""" + networkEgressBytes: BigInt + + """Number of active pods in the namespace at time of event""" + podCount: Int + + """Additional resource metrics (gpu, replicas, quotas, etc.)""" + metrics: JSON + + """Database that owns this resource (database-scoped isolation)""" + databaseId: UUID! +} + +"""The output of our create `PlatformResource` mutation.""" +type CreatePlatformResourcePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `PlatformResource` that was created by this mutation.""" + platformResource: PlatformResource + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """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 +} + +"""All input for the create `PlatformResource` mutation.""" +input CreatePlatformResourceInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """The `PlatformResource` to be created by this mutation.""" + platformResource: PlatformResourceInput! +} + +"""An input for mutations affecting `PlatformResource`""" +input PlatformResourceInput { + id: UUID + createdAt: Datetime + updatedAt: Datetime + createdBy: UUID + updatedBy: UUID + + """ + Namespace this resource belongs to (security boundary, maps to K8s namespace) + """ + namespaceId: UUID! + + """Resource kind: Deployment, StatefulSet, Service, Ingress, Certificate""" + kind: String! + + """Human-readable resource name""" + name: 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: JSON + + """ + Resource lifecycle status: pending, provisioning, active, failed, draining, deleting + """ + status: String + + """ + Observed state from K8s — populated by handlers after reconciliation (service_url, clone_url, replicas, etc.) + """ + statusObserved: JSON + + """Most recent provisioning or runtime error message""" + lastError: String + + """Cumulative error count for this resource""" + errorCount: Int + + """Key/value pairs for selecting and filtering resources""" + labels: JSON + + """Freeform metadata for tooling and operational notes""" + annotations: JSON + + """ + 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] + + """ + 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] + + """ + 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] + + """ + Definition template this resource was created from (NULL for standalone resources) + """ + resourceDefinitionId: UUID +} + +"""The output of our create `PlatformFunctionDeployment` mutation.""" +type CreatePlatformFunctionDeploymentPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `PlatformFunctionDeployment` that was created by this mutation.""" + platformFunctionDeployment: PlatformFunctionDeployment + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """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 +} + +"""All input for the create `PlatformFunctionDeployment` mutation.""" +input CreatePlatformFunctionDeploymentInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """The `PlatformFunctionDeployment` to be created by this mutation.""" + platformFunctionDeployment: PlatformFunctionDeploymentInput! +} + +"""An input for mutations affecting `PlatformFunctionDeployment`""" +input PlatformFunctionDeploymentInput { + id: UUID + createdAt: Datetime + updatedAt: Datetime + + """Target namespace for this deployment (maps to a K8s namespace)""" + namespaceId: UUID! + + """ + Deployment lifecycle status: pending, provisioning, active, failed, scaled_to_zero, deactivated + """ + status: String + + """ + Knative service URL (http://{service-name}.{namespace}.svc.cluster.local) — populated after provisioning + """ + serviceUrl: String + + """ + 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 + + """Deployment revision number (incremented on each redeployment)""" + revision: Int + + """ + 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 + + """ + Handler directory name (e.g. email, document) — used as FN_HANDLER_NAME in combined-image mode to select the entry point + """ + handlerName: String + + """Max concurrent requests per pod (NULL = inherit from definition)""" + concurrency: Int + + """ + Minimum replica count (NULL = inherit from definition or Knative default) + """ + scaleMin: Int + + """ + Maximum replica count (NULL = inherit from definition or Knative default) + """ + scaleMax: Int + + """Request timeout override in seconds (NULL = inherit from definition)""" + timeoutSeconds: Int + + """ + K8s resource spec override: {"requests":{"cpu":"100m","memory":"128Mi"},"limits":{...}} + """ + resources: JSON + + """Most recent provisioning or runtime error message""" + lastError: String + + """Timestamp of the most recent error""" + lastErrorAt: Datetime + + """Cumulative error count for this deployment""" + errorCount: Int + + """Key/value pairs for selecting and filtering deployments""" + labels: JSON + + """Freeform metadata for tooling and operational notes""" + annotations: JSON +} + +"""The output of our create `Resource` mutation.""" +type CreateResourcePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `Resource` that was created by this mutation.""" + resource: Resource + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `Resource`. May be used by Relay 1.""" + resourceEdge( + """The method to use when ordering `Resource`.""" + orderBy: [ResourceOrderBy!]! = [PRIMARY_KEY_ASC] + ): ResourceEdge +} + +"""All input for the create `Resource` mutation.""" +input CreateResourceInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """The `Resource` to be created by this mutation.""" + resource: ResourceInput! +} + +"""An input for mutations affecting `Resource`""" +input ResourceInput { + id: UUID + createdAt: Datetime + updatedAt: Datetime + createdBy: UUID + updatedBy: UUID + + """ + Namespace this resource belongs to (security boundary, maps to K8s namespace) + """ + namespaceId: UUID! + + """Resource kind: Deployment, StatefulSet, Service, Ingress, Certificate""" + kind: String! + + """Human-readable resource name""" + name: 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: JSON + + """ + Resource lifecycle status: pending, provisioning, active, failed, draining, deleting + """ + status: String + + """ + Observed state from K8s — populated by handlers after reconciliation (service_url, clone_url, replicas, etc.) + """ + statusObserved: JSON + + """Most recent provisioning or runtime error message""" + lastError: String + + """Cumulative error count for this resource""" + errorCount: Int + + """Key/value pairs for selecting and filtering resources""" + labels: JSON + + """Freeform metadata for tooling and operational notes""" + annotations: JSON + + """Database that owns this resource (database-scoped isolation)""" + databaseId: UUID! + + """ + 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] + + """ + 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] + + """ + 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] + + """ + Definition template this resource was created from (NULL for standalone resources) + """ + resourceDefinitionId: UUID +} + +"""The output of our create `PlatformResourceDefinition` mutation.""" +type CreatePlatformResourceDefinitionPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `PlatformResourceDefinition` that was created by this mutation.""" + platformResourceDefinition: PlatformResourceDefinition + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """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 +} + +"""All input for the create `PlatformResourceDefinition` mutation.""" +input CreatePlatformResourceDefinitionInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """The `PlatformResourceDefinition` to be created by this mutation.""" + platformResourceDefinition: PlatformResourceDefinitionInput! +} + +"""An input for mutations affecting `PlatformResourceDefinition`""" +input PlatformResourceDefinitionInput { + id: UUID + createdAt: Datetime + updatedAt: Datetime + createdBy: UUID + updatedBy: UUID + + """ + Namespace this definition belongs to (security boundary, maps to K8s namespace) + """ + namespaceId: UUID! + + """ + Resource kind: Deployment, StatefulSet, Service, Ingress, Certificate, or custom kinds + """ + kind: String! + + """Human-readable definition name""" + name: String! + + """URL-safe identifier, unique within (namespace_id, kind)""" + slug: String! + + """What this resource definition provides""" + description: String + + """Template spec for creating resource instances of this kind""" + defaultSpec: JSON + + """ + Embedded secret requirements: array of (name, required, provider) tuples. provider is the integration slug this requirement belongs to, if any. + """ + requiredSecrets: [ResourceRequirementInput] + + """ + Embedded config requirements: array of (name, required, provider) tuples. provider is the integration slug this requirement belongs to, if any. + """ + requiredConfigs: [ResourceRequirementInput] + + """ + 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] + + """Key/value pairs for selecting and filtering definitions""" + labels: JSON + + """Freeform metadata for tooling and operational notes""" + annotations: JSON + + """ + Min age before DELETE of a resource of this kind requires step-up; NULL inherits the 6h default + """ + stepUpMinAge: IntervalInput +} + +"""The output of our create `FunctionDeployment` mutation.""" +type CreateFunctionDeploymentPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `FunctionDeployment` that was created by this mutation.""" + functionDeployment: FunctionDeployment + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """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 +} + +"""All input for the create `FunctionDeployment` mutation.""" +input CreateFunctionDeploymentInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """The `FunctionDeployment` to be created by this mutation.""" + functionDeployment: FunctionDeploymentInput! +} + +"""An input for mutations affecting `FunctionDeployment`""" +input FunctionDeploymentInput { + id: UUID + createdAt: Datetime + updatedAt: Datetime + + """Target namespace for this deployment (maps to a K8s namespace)""" + namespaceId: UUID! - """Creates a single `OrgFunctionExecutionLog`.""" - createOrgFunctionExecutionLog( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateOrgFunctionExecutionLogInput! - ): CreateOrgFunctionExecutionLogPayload + """ + Deployment lifecycle status: pending, provisioning, active, failed, scaled_to_zero, deactivated + """ + status: String - """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 + """ + Knative service URL (http://{service-name}.{namespace}.svc.cluster.local) — populated after provisioning + """ + serviceUrl: String - """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 + """ + 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 - """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 + """Deployment revision number (incremented on each redeployment)""" + revision: Int - """Creates a single `SecretDefinition`.""" - createSecretDefinition( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateSecretDefinitionInput! - ): CreateSecretDefinitionPayload + """ + 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! - """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 + """Image tag/version for the handler container (e.g. latest, 2.6.4)""" + imageVersion: String - """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 + """ + Handler directory name (e.g. email, document) — used as FN_HANDLER_NAME in combined-image mode to select the entry point + """ + handlerName: String - """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 + """Max concurrent requests per pod (NULL = inherit from definition)""" + concurrency: Int - """Creates a single `OrgFunctionInvocation`.""" - createOrgFunctionInvocation( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateOrgFunctionInvocationInput! - ): CreateOrgFunctionInvocationPayload + """ + Minimum replica count (NULL = inherit from definition or Knative default) + """ + scaleMin: Int - """Creates a single `FunctionInvocation`.""" - createFunctionInvocation( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateFunctionInvocationInput! - ): CreateFunctionInvocationPayload + """ + Maximum replica count (NULL = inherit from definition or Knative default) + """ + scaleMax: 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. - """ - input: CreateResourceInput! - ): CreateResourcePayload + """Request timeout override in seconds (NULL = inherit from definition)""" + timeoutSeconds: Int - """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 + """ + K8s resource spec override: {"requests":{"cpu":"100m","memory":"128Mi"},"limits":{...}} + """ + resources: JSON - """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 + """Most recent provisioning or runtime error message""" + lastError: String - """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 + """Timestamp of the most recent error""" + lastErrorAt: Datetime - """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 + """Cumulative error count for this deployment""" + errorCount: Int - """Updates a single `FunctionApiBinding` using a unique key and a patch.""" - updateFunctionApiBinding( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateFunctionApiBindingInput! - ): UpdateFunctionApiBindingPayload + """Key/value pairs for selecting and filtering deployments""" + labels: JSON - """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 + """Freeform metadata for tooling and operational notes""" + annotations: JSON - """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 + """Database that owns this resource (database-scoped isolation)""" + databaseId: UUID! +} - """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 +"""The output of our create `ResourceDefinition` mutation.""" +type CreateResourceDefinitionPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `ResourceDefinition` that was created by this mutation.""" + resourceDefinition: ResourceDefinition """ - Updates a single `FunctionDeploymentEvent` using a unique key and a patch. + Our root query field type. Allows us to run any query from our mutation payload. """ - updateFunctionDeploymentEvent( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateFunctionDeploymentEventInput! - ): UpdateFunctionDeploymentEventPayload + query: Query + + """An edge for our `ResourceDefinition`. May be used by Relay 1.""" + resourceDefinitionEdge( + """The method to use when ordering `ResourceDefinition`.""" + orderBy: [ResourceDefinitionOrderBy!]! = [PRIMARY_KEY_ASC] + ): ResourceDefinitionEdge +} +"""All input for the create `ResourceDefinition` mutation.""" +input CreateResourceDefinitionInput { """ - Updates a single `OrgFunctionExecutionLog` using a unique key and a patch. + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. """ - updateOrgFunctionExecutionLog( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateOrgFunctionExecutionLogInput! - ): UpdateOrgFunctionExecutionLogPayload + clientMutationId: 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 + """The `ResourceDefinition` to be created by this mutation.""" + resourceDefinition: ResourceDefinitionInput! +} + +"""An input for mutations affecting `ResourceDefinition`""" +input ResourceDefinitionInput { + id: UUID + createdAt: Datetime + updatedAt: Datetime + createdBy: UUID + updatedBy: UUID """ - Updates a single `FunctionGraphExecutionOutput` using a unique key and a patch. + Namespace this definition belongs to (security boundary, maps to K8s namespace) """ - updateFunctionGraphExecutionOutput( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateFunctionGraphExecutionOutputInput! - ): UpdateFunctionGraphExecutionOutputPayload + namespaceId: UUID! - """Updates a single `FunctionGraphCommit` using a unique key and a patch.""" - updateFunctionGraphCommit( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateFunctionGraphCommitInput! - ): UpdateFunctionGraphCommitPayload + """ + Resource kind: Deployment, StatefulSet, Service, Ingress, Certificate, or custom kinds + """ + kind: String! - """Updates a single `SecretDefinition` using a unique key and a patch.""" - updateSecretDefinition( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateSecretDefinitionInput! - ): UpdateSecretDefinitionPayload + """Human-readable definition name""" + name: String! + + """URL-safe identifier, unique within (namespace_id, kind)""" + slug: String! + + """What this resource definition provides""" + description: String + + """Template spec for creating resource instances of this kind""" + defaultSpec: JSON """ - Updates a single `FunctionExecutionLog` using a unique key and a patch. + Embedded secret requirements: array of (name, required, provider) tuples. provider is the integration slug this requirement belongs to, if any. """ - updateFunctionExecutionLog( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateFunctionExecutionLogInput! - ): UpdateFunctionExecutionLogPayload + requiredSecrets: [ResourceRequirementInput] - """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 + """ + Embedded config requirements: array of (name, required, provider) tuples. provider is the integration slug this requirement belongs to, if any. + """ + requiredConfigs: [ResourceRequirementInput] """ - Updates a single `FunctionGraphExecutionNodeState` using a unique key and a patch. + 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. """ - updateFunctionGraphExecutionNodeState( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateFunctionGraphExecutionNodeStateInput! - ): UpdateFunctionGraphExecutionNodeStatePayload + integrations: [String] - """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 + """Key/value pairs for selecting and filtering definitions""" + labels: JSON + + """Freeform metadata for tooling and operational notes""" + annotations: JSON """ - Updates a single `OrgFunctionInvocation` using a unique key and a patch. + Min age before DELETE of a resource of this kind requires step-up; NULL inherits the 6h default """ - updateOrgFunctionInvocation( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateOrgFunctionInvocationInput! - ): UpdateOrgFunctionInvocationPayload + stepUpMinAge: IntervalInput - """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 + """Database that owns this resource (database-scoped isolation)""" + databaseId: UUID! +} - """Updates a single `Resource` using a unique key and a patch.""" - updateResource( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateResourceInput! - ): UpdateResourcePayload +"""The output of our create `FunctionGraphExecution` mutation.""" +type CreateFunctionGraphExecutionPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `FunctionGraphExecution` that was created by this mutation.""" + functionGraphExecution: FunctionGraphExecution """ - Updates a single `PlatformNamespaceEvent` using a unique key and a patch. + Our root query field type. Allows us to run any query from our mutation payload. """ - updatePlatformNamespaceEvent( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdatePlatformNamespaceEventInput! - ): UpdatePlatformNamespaceEventPayload + query: Query - """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 + """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 +} +"""All input for the create `FunctionGraphExecution` mutation.""" +input CreateFunctionGraphExecutionInput { """ - Updates a single `FunctionGraphExecution` using a unique key and a patch. + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. """ - updateFunctionGraphExecution( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateFunctionGraphExecutionInput! - ): UpdateFunctionGraphExecutionPayload + clientMutationId: 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 + """The `FunctionGraphExecution` to be created by this mutation.""" + functionGraphExecution: FunctionGraphExecutionInput! +} - """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 +"""An input for mutations affecting `FunctionGraphExecution`""" +input FunctionGraphExecutionInput { + """Execution start timestamp""" + startedAt: Datetime - """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 + """Unique execution identifier""" + id: UUID - """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 + """FK to the graph definition being executed""" + graphId: UUID! - """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 + """Parent function_invocations row (for metering)""" + invocationId: UUID - """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 + """Opaque store partition key for the global tier""" + scopeId: UUID! - """Deletes a single `OrgFunctionExecutionLog` using a unique key.""" - deleteOrgFunctionExecutionLog( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteOrgFunctionExecutionLogInput! - ): DeleteOrgFunctionExecutionLogPayload + """ + Target output boundary node name to resolve; NULL derives completion from the graph's graphOutput nodes + """ + outputNode: String - """Deletes a single `ResourceEvent` using a unique key.""" - deleteResourceEvent( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteResourceEventInput! - ): DeleteResourceEventPayload + """Target output port name (default: value)""" + outputPort: String - """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 + """Lifecycle: pending → running → completed/failed/cancelled""" + status: String - """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 + """Initial inputs provided at invocation time""" + inputPayload: JSON - """Deletes a single `SecretDefinition` using a unique key.""" - deleteSecretDefinition( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteSecretDefinitionInput! - ): DeleteSecretDefinitionPayload + """Final result extracted from terminal output node""" + outputPayload: JSON - """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 + """ + Map of node_name → execution output id (content-addressed hash reference) + """ + nodeOutputs: JSON - """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 + """Pre-computed topological sort as array of wave objects""" + executionPlan: JSON - """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 + """Index into execution_plan — tick only processes this wave""" + currentWave: Int - """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 + """Parent execution when this is a sub-execution""" + parentExecutionId: UUID - """Deletes a single `OrgFunctionInvocation` using a unique key.""" - deleteOrgFunctionInvocation( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteOrgFunctionInvocationInput! - ): DeleteOrgFunctionInvocationPayload + """Node name in parent execution that spawned this sub-execution""" + parentNodeName: String - """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 + """Pinned definitions store commit for deterministic evaluation""" + definitionsCommitId: UUID - """Deletes a single `Resource` using a unique key.""" - deleteResource( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteResourceInput! - ): DeleteResourcePayload + """Number of evaluate_step ticks executed""" + tickCount: Int - """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 + """Execution completion timestamp""" + completedAt: Datetime - """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 + """Maximum ticks before execution is failed (default 100)""" + maxTicks: Int - """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 + """Maximum pending jobs before execution is failed (default 50)""" + maxPendingJobs: Int - """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 + """Absolute deadline — execution fails if still running after this time""" + timeoutAt: Datetime """ - 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. + Timestamp of the last real progress (node enqueue, node output, completion) — drives the activity-debounced watchdog """ - provisionBucket( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: ProvisionBucketInput! - ): ProvisionBucketPayload + lastProgressAt: Datetime + + """Machine-readable error code when status = failed""" + errorCode: String + + """Human-readable error description when status = failed""" + errorMessage: String } -"""The output of our `validateFunctionGraph` mutation.""" -type ValidateFunctionGraphPayload { +"""The output of our create `PlatformFunctionDefinition` mutation.""" +type CreatePlatformFunctionDefinitionPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - result: Boolean + + """The `PlatformFunctionDefinition` that was created by this mutation.""" + platformFunctionDefinition: PlatformFunctionDefinition """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query + + """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 } -"""All input for the `validateFunctionGraph` mutation.""" -input ValidateFunctionGraphInput { +"""All input for the create `PlatformFunctionDefinition` mutation.""" +input CreatePlatformFunctionDefinitionInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - graphId: UUID + + """The `PlatformFunctionDefinition` to be created by this mutation.""" + platformFunctionDefinition: PlatformFunctionDefinitionInput! } -"""The output of our `initEmptyRepo` mutation.""" -type InitEmptyRepoPayload { +"""An input for mutations affecting `PlatformFunctionDefinition`""" +input PlatformFunctionDefinitionInput { + id: UUID + createdAt: Datetime + updatedAt: Datetime + + """Function grouping scope (e.g. email, embed, chunk, custom)""" + scope: String! + """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. + Function name within scope (e.g. send_verification_link, process_file_embedding) """ - clientMutationId: String + name: String! """ - Our root query field type. Allows us to run any query from our mutation payload. + Computed routing slug: scope:name (used by Knative job worker for dispatch) """ - query: Query -} + taskIdentifier: String! + + """Human-readable description of what this function does""" + description: 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. + Whether this function definition is published to the public catalog for direct authenticated invocation. Default false = internal-only via add_job() """ - clientMutationId: String - sId: UUID - storeId: UUID -} + isPublished: Boolean -"""The output of our `setDataAtPath` mutation.""" -type SetDataAtPathPayload { """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. + Non-public invocation channels this function may be exposed through (api, graph). Internal job dispatch is implicit and never listed. Default [] = job worker only. """ - clientMutationId: String - result: UUID + accessChannels: [String] """ - Our root query field type. Allows us to run any query from our mutation payload. + Timestamp when this function was published. NULL means immediately published when is_published is true; future timestamps delay public visibility """ - query: Query -} + publishedAt: Datetime + + """Maximum retry attempts for the underlying job""" + maxAttempts: Int + + """Job priority (lower = higher priority)""" + priority: Int + + """Job queue name for serialization (e.g. email, ai, default)""" + queueName: String -"""All input for the `setDataAtPath` mutation.""" -input SetDataAtPathInput { """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. + Execution mode: http (Knative Service dispatch), inline (in-process in compute worker), handler (registered infrastructure handler), or sql (generic SQL dispatch via a trusted direct target or module-resolved function names) """ - clientMutationId: String - sId: UUID - root: UUID - path: [String] - data: JSON -} + runtime: String -"""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. + Schema of the SQL function to invoke when runtime=sql (direct mode). NULL for module mode and other runtimes. """ - clientMutationId: String + targetSchema: String """ - Our root query field type. Allows us to run any query from our mutation payload. + Name of the SQL function to invoke when runtime=sql (direct mode). NULL for module mode and other runtimes. """ - query: Query -} + targetFunction: 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. + 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. """ - clientMutationId: String - graphId: UUID - sourceScopeId: UUID - sourceCommitId: UUID - contexts: [String] + moduleTable: 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 + + """ + Ordered bind-parameter mapping for runtime=sql: [{name, type}]. payload[name] is bound as $n::type. + """ + payloadArgs: JSON + + """ + Docker image reference (e.g. ghcr.io/constructive-io/email-send-fn:latest). Required when runtime=http. NULL for inline functions. + """ + image: String + + """ + Knative containerConcurrency — max concurrent requests per pod instance + """ + concurrency: Int + + """Minimum pod count for Knative autoscaling (minScale)""" + scaleMin: Int + + """Maximum pod count for Knative autoscaling (maxScale)""" + scaleMax: Int + + """Knative request timeout in seconds""" + timeoutSeconds: Int + + """ + Container resource requests and limits: {requests: {memory, cpu}, limits: {memory, cpu}} + """ + resources: JSON + + """ + Whether this function is a built-in platform function (synced from platform) vs user-created + """ + isBuiltIn: Boolean + + """ + Embedded secret requirements: array of (name, required, provider) tuples. provider is the integration slug this requirement belongs to, if any. + """ + requiredSecrets: [ResourceRequirementInput] + + """ + Embedded config requirements: array of (name, required, provider) tuples. provider is the integration slug this requirement belongs to, if any. + """ + 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. + """ + integrations: [String] + + """ + Bucket keys this function needs (e.g. uploads, exports). Empty = no bucket requirements. + """ + requiredBuckets: [String] + + """ + Inference model whitelist (e.g. gpt-4o, claude-3). Empty = no model requirements. + """ + requiredModels: [String] + + """ + Data input ports: [{name, type, description?, optional?, multi?, schema?}] + """ + inputs: JSON + + """ + Data output ports: [{name, type, description?, optional?, multi?, schema?}] + """ + outputs: JSON + + """ + Configuration properties: [{name, type, default?, description?, required?, schema?}] + """ + props: JSON + + """ + Whether this function has side effects and cannot be cached or memoized + """ + volatile: Boolean + + """Icon identifier for UI palette rendering (e.g. mail, database, code)""" + icon: String + + """Palette grouping category (e.g. email, data, ai, custom)""" + category: String } -"""The output of our `copyGraph` mutation.""" -type CopyGraphPayload { +"""The output of our create `FunctionDefinition` mutation.""" +type CreateFunctionDefinitionPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - result: UUID + + """The `FunctionDefinition` that was created by this mutation.""" + functionDefinition: FunctionDefinition """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query + + """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 } -"""All input for the `copyGraph` mutation.""" -input CopyGraphInput { +"""All input for the create `FunctionDefinition` mutation.""" +input CreateFunctionDefinitionInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - databaseId: UUID - graphId: UUID - name: String + + """The `FunctionDefinition` to be created by this mutation.""" + functionDefinition: FunctionDefinitionInput! } -"""The output of our `saveGraph` mutation.""" -type SaveGraphPayload { +"""An input for mutations affecting `FunctionDefinition`""" +input FunctionDefinitionInput { + id: UUID + createdAt: Datetime + updatedAt: Datetime + + """Function grouping scope (e.g. email, embed, chunk, custom)""" + scope: String! + + """ + Function name within scope (e.g. send_verification_link, process_file_embedding) + """ + name: String! + + """ + Computed routing slug: scope:name (used by Knative job worker for dispatch) + """ + taskIdentifier: String! + + """Human-readable description of what this function does""" + description: String + + """ + Whether this function definition is published to the public catalog for direct authenticated invocation. Default false = internal-only via add_job() + """ + isPublished: Boolean + + """ + Non-public invocation channels this function may be exposed through (api, graph). Internal job dispatch is implicit and never listed. Default [] = job worker only. + """ + accessChannels: [String] + + """ + Timestamp when this function was published. NULL means immediately published when is_published is true; future timestamps delay public visibility + """ + publishedAt: Datetime + + """Maximum retry attempts for the underlying job""" + maxAttempts: Int + + """Job priority (lower = higher priority)""" + priority: Int + + """Job queue name for serialization (e.g. email, ai, default)""" + queueName: String + + """ + Execution mode: http (Knative Service dispatch), inline (in-process in compute worker), handler (registered infrastructure handler), or sql (generic SQL dispatch via a trusted direct target or module-resolved function names) + """ + runtime: String + """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. + Schema of the SQL function to invoke when runtime=sql (direct mode). NULL for module mode and other runtimes. """ - clientMutationId: String - result: UUID + targetSchema: String """ - Our root query field type. Allows us to run any query from our mutation payload. + Name of the SQL function to invoke when runtime=sql (direct mode). NULL for module mode and other runtimes. """ - query: Query -} + targetFunction: String -"""All input for the `saveGraph` mutation.""" -input SaveGraphInput { """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. + 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. """ - clientMutationId: String - graphId: UUID - rootHash: UUID - message: String -} + moduleTable: String -"""The output of our `addEdgeAndSave` mutation.""" -type AddEdgeAndSavePayload { """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. + 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. """ - clientMutationId: String - result: UUID + functionColumns: JSON """ - Our root query field type. Allows us to run any query from our mutation payload. + Ordered bind-parameter mapping for runtime=sql: [{name, type}]. payload[name] is bound as $n::type. """ - query: Query -} + payloadArgs: JSON -"""All input for the `addEdgeAndSave` mutation.""" -input AddEdgeAndSaveInput { """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. + Docker image reference (e.g. ghcr.io/constructive-io/email-send-fn:latest). Required when runtime=http. NULL for inline functions. """ - clientMutationId: String - graphId: UUID - srcNode: String - srcPort: String - dstNode: String - dstPort: String - message: String -} + image: String -"""The output of our `addNodeAndSave` mutation.""" -type AddNodeAndSavePayload { """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. + Knative containerConcurrency — max concurrent requests per pod instance """ - clientMutationId: String - result: UUID + concurrency: Int + + """Minimum pod count for Knative autoscaling (minScale)""" + scaleMin: Int + + """Maximum pod count for Knative autoscaling (maxScale)""" + scaleMax: Int + + """Knative request timeout in seconds""" + timeoutSeconds: Int """ - Our root query field type. Allows us to run any query from our mutation payload. + Container resource requests and limits: {requests: {memory, cpu}, limits: {memory, cpu}} """ - query: Query -} + resources: JSON -"""All input for the `addNodeAndSave` mutation.""" -input AddNodeAndSaveInput { """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. + Whether this function is a built-in platform function (synced from platform) vs user-created """ - clientMutationId: String - graphId: UUID - nodeName: String - nodeType: String - props: JSON - meta: JSON - message: String -} + isBuiltIn: Boolean -"""The output of our `createFunctionGraph` mutation.""" -type CreateFunctionGraphPayload { """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. + Embedded secret requirements: array of (name, required, provider) tuples. provider is the integration slug this requirement belongs to, if any. """ - clientMutationId: String - result: UUID + requiredSecrets: [ResourceRequirementInput] """ - Our root query field type. Allows us to run any query from our mutation payload. + Embedded config requirements: array of (name, required, provider) tuples. provider is the integration slug this requirement belongs to, if any. """ - query: Query -} + requiredConfigs: [ResourceRequirementInput] -"""All input for the `createFunctionGraph` mutation.""" -input CreateFunctionGraphInput { """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. + 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 - databaseId: UUID - name: String - context: String - description: String - createdBy: UUID - definitionsCommitId: 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. + Bucket keys this function needs (e.g. uploads, exports). Empty = no bucket requirements. """ - clientMutationId: String - result: UUID + requiredBuckets: [String] """ - Our root query field type. Allows us to run any query from our mutation payload. + Inference model whitelist (e.g. gpt-4o, claude-3). Empty = no model requirements. """ - query: Query -} + requiredModels: [String] -"""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. + Data input ports: [{name, type, description?, optional?, multi?, schema?}] """ - clientMutationId: String - databaseId: UUID - name: String - graphJson: JSON - context: String - description: String - createdBy: UUID - definitionsCommitId: UUID -} + inputs: JSON -"""The output of our `addEdge` mutation.""" -type AddEdgePayload { """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. + Data output ports: [{name, type, description?, optional?, multi?, schema?}] """ - clientMutationId: String - result: UUID + outputs: JSON """ - Our root query field type. Allows us to run any query from our mutation payload. + Configuration properties: [{name, type, default?, description?, required?, schema?}] """ - query: Query -} + props: JSON -"""All input for the `addEdge` mutation.""" -input AddEdgeInput { """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. + Whether this function has side effects and cannot be cached or memoized """ - clientMutationId: String - databaseId: UUID - rootHash: UUID - srcNode: String - srcPort: String - dstNode: String - dstPort: String - context: String - graphName: String + volatile: Boolean + + """Icon identifier for UI palette rendering (e.g. mail, database, code)""" + icon: String + + """Palette grouping category (e.g. email, data, ai, custom)""" + category: String + + """Database that owns this resource (database-scoped isolation)""" + databaseId: UUID! } -"""The output of our `addNode` mutation.""" -type AddNodePayload { +"""The output of our update `InfraRef` mutation.""" +type UpdateInfraRefPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - result: UUID + + """The `InfraRef` that was updated by this mutation.""" + infraRef: InfraRef """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query + + """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 } -"""All input for the `addNode` mutation.""" -input AddNodeInput { +"""All input for the `updateInfraRef` mutation.""" +input UpdateInfraRefInput { """ An arbitrary 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 - rootHash: UUID - nodeName: String - nodeType: String - context: String - graphName: String - props: JSON - meta: JSON -} -"""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 - result: UUID + """Unique ref identifier""" + id: UUID! + + """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. + An object where the defined keys will be set on the `InfraRef` being updated. """ - query: Query + infraRefPatch: InfraRefPatch! } -"""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 - sId: UUID - root: UUID - path: [String] - data: JSON - kids: [UUID] - ktree: [String] +""" +Represents an update to a `InfraRef`. Fields that are set will be updated. +""" +input InfraRefPatch { + """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 + + """Commit this ref points to""" + commitId: UUID } -"""The output of our `startExecution` mutation.""" -type StartExecutionPayload { +"""The output of our update `InfraStore` mutation.""" +type UpdateInfraStorePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - result: UUID + + """The `InfraStore` that was updated by this mutation.""" + infraStore: InfraStore """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query + + """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 } -"""All input for the `startExecution` mutation.""" -input StartExecutionInput { +"""All input for the `updateInfraStore` mutation.""" +input UpdateInfraStoreInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - graphId: UUID - inputPayload: JSON - outputNode: String - outputPort: String - maxTicks: Int - maxPendingJobs: Int - timeoutInterval: IntervalInput - parentExecutionId: UUID - parentNodeName: String -} -""" -An interval of time that has passed where the smallest distinct unit is a second. -""" -input IntervalInput { + """Unique store identifier""" + id: UUID! + """ - A quantity of seconds. This is the only non-integer field, as all the other - fields will dump their overflow into a smaller unit of time. Intervals don’t - have a smaller unit than seconds. + An object where the defined keys will be set on the `InfraStore` being updated. """ - seconds: Float + infraStorePatch: InfraStorePatch! +} - """A quantity of minutes.""" - minutes: Int +""" +Represents an update to a `InfraStore`. Fields that are set will be updated. +""" +input InfraStorePatch { + """Unique store identifier""" + id: UUID - """A quantity of hours.""" - hours: Int + """Human-readable store name""" + name: String - """A quantity of days.""" - days: Int + """Opaque store partition key for the global tier""" + scopeId: UUID - """A quantity of months.""" - months: Int + """Current root object hash of this store""" + hash: UUID - """A quantity of years.""" - years: Int + """Timestamp of store creation""" + createdAt: Datetime } -"""The output of our create `FunctionApiBinding` mutation.""" -type CreateFunctionApiBindingPayload { +"""The output of our update `FunctionApiBinding` mutation.""" +type UpdateFunctionApiBindingPayload { """ The exact 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.""" + """The `FunctionApiBinding` that was updated by this mutation.""" functionApiBinding: FunctionApiBinding """ @@ -5974,27 +14008,32 @@ type CreateFunctionApiBindingPayload { ): FunctionApiBindingEdge } -"""All input for the create `FunctionApiBinding` mutation.""" -input CreateFunctionApiBindingInput { +"""All input for the `updateFunctionApiBinding` mutation.""" +input UpdateFunctionApiBindingInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String + id: UUID! - """The `FunctionApiBinding` to be created by this mutation.""" - functionApiBinding: FunctionApiBindingInput! + """ + An object where the defined keys will be set on the `FunctionApiBinding` being updated. + """ + functionApiBindingPatch: FunctionApiBindingPatch! } -"""An input for mutations affecting `FunctionApiBinding`""" -input FunctionApiBindingInput { +""" +Represents an update to a `FunctionApiBinding`. Fields that are set will be updated. +""" +input FunctionApiBindingPatch { id: UUID """Function definition this binding belongs to""" - functionDefinitionId: UUID! + functionDefinitionId: UUID """API endpoint this function is bound to""" - apiId: UUID! + apiId: UUID """Binding alias (e.g. default, staging, production)""" alias: String @@ -6003,15 +14042,15 @@ input FunctionApiBindingInput { config: JSON } -"""The output of our create `FunctionGraphRef` mutation.""" -type CreateFunctionGraphRefPayload { +"""The output of our update `FunctionGraphRef` mutation.""" +type UpdateFunctionGraphRefPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `FunctionGraphRef` that was created by this mutation.""" + """The `FunctionGraphRef` that was updated by this mutation.""" functionGraphRef: FunctionGraphRef """ @@ -6026,45 +14065,55 @@ type CreateFunctionGraphRefPayload { ): FunctionGraphRefEdge } -"""All input for the create `FunctionGraphRef` mutation.""" -input CreateFunctionGraphRefInput { +"""All input for the `updateFunctionGraphRef` mutation.""" +input UpdateFunctionGraphRefInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - """The `FunctionGraphRef` to be created by this mutation.""" - functionGraphRef: FunctionGraphRefInput! + """Unique ref identifier""" + id: UUID! + + """Opaque store partition key for the global tier""" + scopeId: UUID! + + """ + An object where the defined keys will be set on the `FunctionGraphRef` being updated. + """ + functionGraphRefPatch: FunctionGraphRefPatch! } -"""An input for mutations affecting `FunctionGraphRef`""" -input FunctionGraphRefInput { +""" +Represents an update to a `FunctionGraphRef`. Fields that are set will be updated. +""" +input FunctionGraphRefPatch { """Unique ref identifier""" id: UUID """Ref name (e.g. HEAD, main)""" - name: String! + name: String - """Database scope for multi-tenant isolation""" - databaseId: UUID! + """Opaque store partition key for the global tier""" + scopeId: UUID """Store this ref belongs to""" - storeId: UUID! + storeId: UUID """Commit this ref points to""" commitId: UUID } -"""The output of our create `FunctionGraphStore` mutation.""" -type CreateFunctionGraphStorePayload { +"""The output of our update `FunctionGraphStore` mutation.""" +type UpdateFunctionGraphStorePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `FunctionGraphStore` that was created by this mutation.""" + """The `FunctionGraphStore` that was updated by this mutation.""" functionGraphStore: FunctionGraphStore """ @@ -6079,28 +14128,35 @@ type CreateFunctionGraphStorePayload { ): FunctionGraphStoreEdge } -"""All input for the create `FunctionGraphStore` mutation.""" -input CreateFunctionGraphStoreInput { +"""All input for the `updateFunctionGraphStore` mutation.""" +input UpdateFunctionGraphStoreInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - """The `FunctionGraphStore` to be created by this mutation.""" - functionGraphStore: FunctionGraphStoreInput! + """Unique store identifier""" + id: UUID! + + """ + An object where the defined keys will be set on the `FunctionGraphStore` being updated. + """ + functionGraphStorePatch: FunctionGraphStorePatch! } -"""An input for mutations affecting `FunctionGraphStore`""" -input FunctionGraphStoreInput { +""" +Represents an update to a `FunctionGraphStore`. Fields that are set will be updated. +""" +input FunctionGraphStorePatch { """Unique store identifier""" id: UUID """Human-readable store name""" - name: String! + name: String - """Database scope for multi-tenant isolation""" - databaseId: UUID! + """Opaque store partition key for the global tier""" + scopeId: UUID """Current root object hash of this store""" hash: UUID @@ -6109,238 +14165,325 @@ input FunctionGraphStoreInput { createdAt: Datetime } -"""The output of our create `FunctionGraphObject` mutation.""" -type CreateFunctionGraphObjectPayload { +"""The output of our update `PlatformFunctionApiBinding` mutation.""" +type UpdatePlatformFunctionApiBindingPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `FunctionGraphObject` that was created by this mutation.""" - functionGraphObject: FunctionGraphObject + """The `PlatformFunctionApiBinding` that was updated by this mutation.""" + platformFunctionApiBinding: PlatformFunctionApiBinding """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `FunctionGraphObject`. May be used by Relay 1.""" - functionGraphObjectEdge( - """The method to use when ordering `FunctionGraphObject`.""" - orderBy: [FunctionGraphObjectOrderBy!]! = [PRIMARY_KEY_ASC] - ): FunctionGraphObjectEdge + """An edge for our `PlatformFunctionApiBinding`. May be used by Relay 1.""" + platformFunctionApiBindingEdge( + """The method to use when ordering `PlatformFunctionApiBinding`.""" + orderBy: [PlatformFunctionApiBindingOrderBy!]! = [PRIMARY_KEY_ASC] + ): PlatformFunctionApiBindingEdge } -"""All input for the create `FunctionGraphObject` mutation.""" -input CreateFunctionGraphObjectInput { +"""All input for the `updatePlatformFunctionApiBinding` mutation.""" +input UpdatePlatformFunctionApiBindingInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String + id: UUID! - """The `FunctionGraphObject` to be created by this mutation.""" - functionGraphObject: FunctionGraphObjectInput! + """ + An object where the defined keys will be set on the `PlatformFunctionApiBinding` being updated. + """ + platformFunctionApiBindingPatch: PlatformFunctionApiBindingPatch! } -"""An input for mutations affecting `FunctionGraphObject`""" -input FunctionGraphObjectInput { - """Content-addressed UUID v5 — deterministic hash of (data, kids, ktree)""" - id: UUID! - - """Database scope for multi-tenant isolation""" - databaseId: UUID! +""" +Represents an update to a `PlatformFunctionApiBinding`. Fields that are set will be updated. +""" +input PlatformFunctionApiBindingPatch { + id: UUID - """Ordered array of child object IDs""" - kids: [UUID] + """Function definition this binding belongs to""" + functionDefinitionId: UUID - """Ordered array of child path names (parallel to kids)""" - ktree: [String] + """API endpoint this function is bound to""" + apiId: UUID - """Payload data for this object node""" - data: JSON + """Binding alias (e.g. default, staging, production)""" + alias: String - """Timestamp of object creation""" - createdAt: Datetime + """Per-binding configuration (overrides, routing rules, etc.)""" + config: JSON } -"""The output of our create `FunctionDeploymentEvent` mutation.""" -type CreateFunctionDeploymentEventPayload { +"""The output of our update `PlatformResourceStatusCheck` mutation.""" +type UpdatePlatformResourceStatusCheckPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `FunctionDeploymentEvent` that was created by this mutation.""" - functionDeploymentEvent: FunctionDeploymentEvent + """The `PlatformResourceStatusCheck` that was updated by this mutation.""" + platformResourceStatusCheck: PlatformResourceStatusCheck """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `FunctionDeploymentEvent`. May be used by Relay 1.""" - functionDeploymentEventEdge( - """The method to use when ordering `FunctionDeploymentEvent`.""" - orderBy: [FunctionDeploymentEventOrderBy!]! = [PRIMARY_KEY_ASC] - ): FunctionDeploymentEventEdge + """An edge for our `PlatformResourceStatusCheck`. May be used by Relay 1.""" + platformResourceStatusCheckEdge( + """The method to use when ordering `PlatformResourceStatusCheck`.""" + orderBy: [PlatformResourceStatusCheckOrderBy!]! = [PRIMARY_KEY_ASC] + ): PlatformResourceStatusCheckEdge } -"""All input for the create `FunctionDeploymentEvent` mutation.""" -input CreateFunctionDeploymentEventInput { +"""All input for the `updatePlatformResourceStatusCheck` mutation.""" +input UpdatePlatformResourceStatusCheckInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - """The `FunctionDeploymentEvent` to be created by this mutation.""" - functionDeploymentEvent: FunctionDeploymentEventInput! -} + """Unique status check identifier""" + id: UUID! -"""An input for mutations affecting `FunctionDeploymentEvent`""" -input FunctionDeploymentEventInput { - """Event timestamp (partition key)""" - createdAt: Datetime + """ + An object where the defined keys will be set on the `PlatformResourceStatusCheck` being updated. + """ + platformResourceStatusCheckPatch: PlatformResourceStatusCheckPatch! +} - """Unique event identifier""" +""" +Represents an update to a `PlatformResourceStatusCheck`. Fields that are set will be updated. +""" +input PlatformResourceStatusCheckPatch { + """Unique status check identifier""" id: UUID - """Deployment this event belongs to""" - deploymentId: UUID! + """Resource to check""" + resourceId: UUID - """ - Event type: provisioned, scaled, failed, deactivated, redeployed, health_check - """ - eventType: String! + """User who requested the check (NULL for system/scheduled)""" + requestedBy: UUID - """User who triggered this event (NULL for system/automated)""" - actorId: UUID + """When the check was requested""" + requestedAt: Datetime - """Human-readable description of the event""" - message: String + """When the check completed (NULL while pending/running)""" + completedAt: Datetime - """Structured context (old/new values, error details, etc.)""" - metadata: JSON + """Check lifecycle: pending, running, completed, failed""" + status: String - """Database that owns this resource (database-scoped isolation)""" - databaseId: UUID! + """Diagnostic snapshot: k8s_status, conditions, pod_logs_tail, events""" + result: JSON } -"""The output of our create `OrgFunctionExecutionLog` mutation.""" -type CreateOrgFunctionExecutionLogPayload { +"""The output of our update `InfraObject` mutation.""" +type UpdateInfraObjectPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `OrgFunctionExecutionLog` that was created by this mutation.""" - orgFunctionExecutionLog: OrgFunctionExecutionLog + """The `InfraObject` that was updated by this mutation.""" + infraObject: InfraObject """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `OrgFunctionExecutionLog`. May be used by Relay 1.""" - orgFunctionExecutionLogEdge( - """The method to use when ordering `OrgFunctionExecutionLog`.""" - orderBy: [OrgFunctionExecutionLogOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgFunctionExecutionLogEdge + """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 } -"""All input for the create `OrgFunctionExecutionLog` mutation.""" -input CreateOrgFunctionExecutionLogInput { +"""All input for the `updateInfraObject` mutation.""" +input UpdateInfraObjectInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - """The `OrgFunctionExecutionLog` to be created by this mutation.""" - orgFunctionExecutionLog: OrgFunctionExecutionLogInput! + """Content-addressed UUID v5 — deterministic hash of (data, kids, ktree)""" + id: UUID! + + """Opaque store partition key for the global tier""" + scopeId: UUID! + + """ + An object where the defined keys will be set on the `InfraObject` being updated. + """ + infraObjectPatch: InfraObjectPatch! } -"""An input for mutations affecting `OrgFunctionExecutionLog`""" -input OrgFunctionExecutionLogInput { - """Log entry timestamp (partition key)""" +""" +Represents an update to a `InfraObject`. Fields that are set will be updated. +""" +input InfraObjectPatch { + """Content-addressed UUID v5 — deterministic hash of (data, kids, ktree)""" + id: UUID + + """Opaque store partition key for the global tier""" + scopeId: UUID + + """Ordered array of child object IDs""" + kids: [UUID] + + """Ordered array of child path names (parallel to kids)""" + ktree: [String] + + """Payload data for this object node""" + data: JSON + + """Timestamp of object creation""" createdAt: Datetime +} - """Unique log entry identifier""" - id: UUID +"""The output of our update `FunctionGraphObject` mutation.""" +type UpdateFunctionGraphObjectPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String - """Invocation this log entry belongs to (NULL for standalone job logs)""" - invocationId: UUID + """The `FunctionGraphObject` that was updated by this mutation.""" + functionGraphObject: FunctionGraphObject + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """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 +} + +"""All input for the `updateFunctionGraphObject` mutation.""" +input UpdateFunctionGraphObjectInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """Content-addressed UUID v5 — deterministic hash of (data, kids, ktree)""" + id: UUID! + + """Opaque store partition key for the global tier""" + scopeId: UUID! + + """ + An object where the defined keys will be set on the `FunctionGraphObject` being updated. + """ + functionGraphObjectPatch: FunctionGraphObjectPatch! +} + +""" +Represents an update to a `FunctionGraphObject`. Fields that are set will be updated. +""" +input FunctionGraphObjectPatch { + """Content-addressed UUID v5 — deterministic hash of (data, kids, ktree)""" + id: UUID - """Function routing key (NULL for generic job logs)""" - taskIdentifier: String + """Opaque store partition key for the global tier""" + scopeId: UUID - """Log severity: debug, info, warn, error""" - logLevel: String + """Ordered array of child object IDs""" + kids: [UUID] - """Log message text""" - message: String! + """Ordered array of child path names (parallel to kids)""" + ktree: [String] - """Structured context (labels, trace data, extra fields)""" - metadata: JSON + """Payload data for this object node""" + data: JSON - """User who triggered the execution (NULL for system/cron)""" - actorId: UUID + """Timestamp of object creation""" + createdAt: Datetime } -"""The output of our create `ResourceEvent` mutation.""" -type CreateResourceEventPayload { +"""The output of our update `PlatformFunctionDeploymentEvent` mutation.""" +type UpdatePlatformFunctionDeploymentEventPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `ResourceEvent` that was created by this mutation.""" - resourceEvent: ResourceEvent + """ + The `PlatformFunctionDeploymentEvent` that was updated by this mutation. + """ + platformFunctionDeploymentEvent: PlatformFunctionDeploymentEvent """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """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 + """ + 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 } -"""All input for the create `ResourceEvent` mutation.""" -input CreateResourceEventInput { +"""All input for the `updatePlatformFunctionDeploymentEvent` mutation.""" +input UpdatePlatformFunctionDeploymentEventInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - """The `ResourceEvent` to be created by this mutation.""" - resourceEvent: ResourceEventInput! + """Event timestamp (partition key)""" + createdAt: Datetime! + + """Unique event identifier""" + id: UUID! + + """ + An object where the defined keys will be set on the `PlatformFunctionDeploymentEvent` being updated. + """ + platformFunctionDeploymentEventPatch: PlatformFunctionDeploymentEventPatch! } -"""An input for mutations affecting `ResourceEvent`""" -input ResourceEventInput { +""" +Represents an update to a `PlatformFunctionDeploymentEvent`. Fields that are set will be updated. +""" +input PlatformFunctionDeploymentEventPatch { """Event timestamp (partition key)""" createdAt: Datetime """Unique event identifier""" id: UUID - """Resource this event belongs to""" - resourceId: UUID! + """Deployment this event belongs to""" + deploymentId: UUID """ - Event type: provisioned, provisioning, updated, failed, deprovisioned, health_check + Event type: provisioned, scaled, failed, deactivated, redeployed, health_check """ - eventType: String! + eventType: String """User who triggered this event (NULL for system/automated)""" actorId: UUID @@ -6350,230 +14493,271 @@ input ResourceEventInput { """Structured context (old/new values, error details, etc.)""" metadata: JSON - - """Database that owns this resource (database-scoped isolation)""" - databaseId: UUID! } -"""The output of our create `FunctionGraphExecutionOutput` mutation.""" -type CreateFunctionGraphExecutionOutputPayload { +"""The output of our update `PlatformResourceEvent` mutation.""" +type UpdatePlatformResourceEventPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `FunctionGraphExecutionOutput` that was created by this mutation.""" - functionGraphExecutionOutput: FunctionGraphExecutionOutput + """The `PlatformResourceEvent` that was updated by this mutation.""" + platformResourceEvent: PlatformResourceEvent """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """ - An edge for our `FunctionGraphExecutionOutput`. May be used by Relay 1. - """ - functionGraphExecutionOutputEdge( - """The method to use when ordering `FunctionGraphExecutionOutput`.""" - orderBy: [FunctionGraphExecutionOutputOrderBy!]! = [PRIMARY_KEY_ASC] - ): FunctionGraphExecutionOutputEdge + """An edge for our `PlatformResourceEvent`. May be used by Relay 1.""" + platformResourceEventEdge( + """The method to use when ordering `PlatformResourceEvent`.""" + orderBy: [PlatformResourceEventOrderBy!]! = [PRIMARY_KEY_ASC] + ): PlatformResourceEventEdge } -"""All input for the create `FunctionGraphExecutionOutput` mutation.""" -input CreateFunctionGraphExecutionOutputInput { +"""All input for the `updatePlatformResourceEvent` mutation.""" +input UpdatePlatformResourceEventInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - """The `FunctionGraphExecutionOutput` to be created by this mutation.""" - functionGraphExecutionOutput: FunctionGraphExecutionOutputInput! + """Event timestamp (partition key)""" + createdAt: Datetime! + + """Unique event identifier""" + id: UUID! + + """ + An object where the defined keys will be set on the `PlatformResourceEvent` being updated. + """ + platformResourceEventPatch: PlatformResourceEventPatch! } -"""An input for mutations affecting `FunctionGraphExecutionOutput`""" -input FunctionGraphExecutionOutputInput { - """Timestamp of output creation""" +""" +Represents an update to a `PlatformResourceEvent`. Fields that are set will be updated. +""" +input PlatformResourceEventPatch { + """Event timestamp (partition key)""" createdAt: Datetime - """Unique execution output identifier""" + """Unique event identifier""" id: UUID - """Scope for multi-tenant isolation""" - databaseId: UUID! + """Resource this event belongs to""" + resourceId: UUID - """SHA-256 hash of the data JSONB — content-addressed deduplication""" - hash: Base64EncodedBinary! + """ + Event type: provisioned, provisioning, updated, failed, deprovisioned, health_check + """ + eventType: String - """The actual output payload from a completed node""" - data: JSON! + """User who triggered this event (NULL for system/automated)""" + actorId: UUID + + """Human-readable description of the event""" + message: String + + """Structured context (old/new values, error details, etc.)""" + metadata: JSON } -"""The output of our create `FunctionGraphCommit` mutation.""" -type CreateFunctionGraphCommitPayload { +"""The output of our update `ResourceStatusCheck` mutation.""" +type UpdateResourceStatusCheckPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `FunctionGraphCommit` that was created by this mutation.""" - functionGraphCommit: FunctionGraphCommit + """The `ResourceStatusCheck` that was updated by this mutation.""" + resourceStatusCheck: ResourceStatusCheck """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `FunctionGraphCommit`. May be used by Relay 1.""" - functionGraphCommitEdge( - """The method to use when ordering `FunctionGraphCommit`.""" - orderBy: [FunctionGraphCommitOrderBy!]! = [PRIMARY_KEY_ASC] - ): FunctionGraphCommitEdge + """An edge for our `ResourceStatusCheck`. May be used by Relay 1.""" + resourceStatusCheckEdge( + """The method to use when ordering `ResourceStatusCheck`.""" + orderBy: [ResourceStatusCheckOrderBy!]! = [PRIMARY_KEY_ASC] + ): ResourceStatusCheckEdge } -"""All input for the create `FunctionGraphCommit` mutation.""" -input CreateFunctionGraphCommitInput { +"""All input for the `updateResourceStatusCheck` mutation.""" +input UpdateResourceStatusCheckInput { """ An arbitrary string 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` to be created by this mutation.""" - functionGraphCommit: FunctionGraphCommitInput! + """Unique status check identifier""" + id: UUID! + + """ + An object where the defined keys will be set on the `ResourceStatusCheck` being updated. + """ + resourceStatusCheckPatch: ResourceStatusCheckPatch! } -"""An input for mutations affecting `FunctionGraphCommit`""" -input FunctionGraphCommitInput { - """Unique commit identifier""" +""" +Represents an update to a `ResourceStatusCheck`. Fields that are set will be updated. +""" +input ResourceStatusCheckPatch { + """Unique status check identifier""" id: UUID - """Optional commit message""" - message: String - - """Database scope for multi-tenant isolation""" - databaseId: UUID! + """Resource to check""" + resourceId: UUID - """Store this commit belongs to""" - storeId: UUID! + """Database that owns this resource (database-scoped isolation)""" + databaseId: UUID - """Parent commit IDs (supports merge commits)""" - parentIds: [UUID] + """User who requested the check (NULL for system/scheduled)""" + requestedBy: UUID - """User who authored the changes""" - authorId: UUID + """When the check was requested""" + requestedAt: Datetime - """User who committed (may differ from author)""" - committerId: UUID + """When the check completed (NULL while pending/running)""" + completedAt: Datetime - """Root object ID of the tree snapshot at this commit""" - treeId: UUID + """Check lifecycle: pending, running, completed, failed""" + status: String - """Commit timestamp""" - date: Datetime + """Diagnostic snapshot: k8s_status, conditions, pod_logs_tail, events""" + result: JSON } -"""The output of our create `SecretDefinition` mutation.""" -type CreateSecretDefinitionPayload { +"""The output of our update `FunctionDeploymentEvent` mutation.""" +type UpdateFunctionDeploymentEventPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `SecretDefinition` that was created by this mutation.""" - secretDefinition: SecretDefinition + """The `FunctionDeploymentEvent` that was updated by this mutation.""" + functionDeploymentEvent: FunctionDeploymentEvent """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `SecretDefinition`. May be used by Relay 1.""" - secretDefinitionEdge( - """The method to use when ordering `SecretDefinition`.""" - orderBy: [SecretDefinitionOrderBy!]! = [PRIMARY_KEY_ASC] - ): SecretDefinitionEdge + """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 } -"""All input for the create `SecretDefinition` mutation.""" -input CreateSecretDefinitionInput { +"""All input for the `updateFunctionDeploymentEvent` mutation.""" +input UpdateFunctionDeploymentEventInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - """The `SecretDefinition` to be created by this mutation.""" - secretDefinition: SecretDefinitionInput! + """Event timestamp (partition key)""" + createdAt: Datetime! + + """Unique event identifier""" + id: UUID! + + """ + An object where the defined keys will be set on the `FunctionDeploymentEvent` being updated. + """ + functionDeploymentEventPatch: FunctionDeploymentEventPatch! } -"""An input for mutations affecting `SecretDefinition`""" -input SecretDefinitionInput { - id: UUID +""" +Represents an update to a `FunctionDeploymentEvent`. Fields that are set will be updated. +""" +input FunctionDeploymentEventPatch { + """Event timestamp (partition key)""" createdAt: Datetime - updatedAt: Datetime - """Secret name (must match app_secrets.name for resolution)""" - name: String! + """Unique event identifier""" + id: UUID - """Human-readable description of what this secret is used for""" - description: String + """Deployment this event belongs to""" + deploymentId: UUID """ - Whether this row was seeded as a built-in secret definition. Built-in rows are immutable. + Event type: provisioned, scaled, failed, deactivated, redeployed, health_check """ - isBuiltIn: Boolean + eventType: String - """Key-value metadata for filtering and grouping secret definitions""" - labels: JSON + """User who triggered this event (NULL for system/automated)""" + actorId: UUID - """Freeform metadata annotations for secret definitions""" - annotations: JSON + """Human-readable description of the event""" + message: String + + """Structured context (old/new values, error details, etc.)""" + metadata: JSON """Database that owns this resource (database-scoped isolation)""" - databaseId: UUID! + databaseId: UUID } -"""The output of our create `FunctionExecutionLog` mutation.""" -type CreateFunctionExecutionLogPayload { +"""The output of our update `PlatformFunctionExecutionLog` mutation.""" +type UpdatePlatformFunctionExecutionLogPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `FunctionExecutionLog` that was created by this mutation.""" - functionExecutionLog: FunctionExecutionLog + """The `PlatformFunctionExecutionLog` that was updated by this mutation.""" + platformFunctionExecutionLog: PlatformFunctionExecutionLog """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `FunctionExecutionLog`. May be used by Relay 1.""" - functionExecutionLogEdge( - """The method to use when ordering `FunctionExecutionLog`.""" - orderBy: [FunctionExecutionLogOrderBy!]! = [PRIMARY_KEY_ASC] - ): FunctionExecutionLogEdge + """ + An edge for our `PlatformFunctionExecutionLog`. May be used by Relay 1. + """ + platformFunctionExecutionLogEdge( + """The method to use when ordering `PlatformFunctionExecutionLog`.""" + orderBy: [PlatformFunctionExecutionLogOrderBy!]! = [PRIMARY_KEY_ASC] + ): PlatformFunctionExecutionLogEdge } -"""All input for the create `FunctionExecutionLog` mutation.""" -input CreateFunctionExecutionLogInput { +"""All input for the `updatePlatformFunctionExecutionLog` mutation.""" +input UpdatePlatformFunctionExecutionLogInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - """The `FunctionExecutionLog` to be created by this mutation.""" - functionExecutionLog: FunctionExecutionLogInput! + """Log entry timestamp (partition key)""" + createdAt: Datetime! + + """Unique log entry identifier""" + id: UUID! + + """ + An object where the defined keys will be set on the `PlatformFunctionExecutionLog` being updated. + """ + platformFunctionExecutionLogPatch: PlatformFunctionExecutionLogPatch! } -"""An input for mutations affecting `FunctionExecutionLog`""" -input FunctionExecutionLogInput { +""" +Represents an update to a `PlatformFunctionExecutionLog`. Fields that are set will be updated. +""" +input PlatformFunctionExecutionLogPatch { """Log entry timestamp (partition key)""" createdAt: Datetime @@ -6590,1831 +14774,2075 @@ input FunctionExecutionLogInput { logLevel: String """Log message text""" - message: String! + message: String """Structured context (labels, trace data, extra fields)""" metadata: JSON """User who triggered the execution (NULL for system/cron)""" actorId: UUID - - """Database that owns this resource (database-scoped isolation)""" - databaseId: UUID! } -"""The output of our create `FunctionGraphExecutionNodeState` mutation.""" -type CreateFunctionGraphExecutionNodeStatePayload { +"""The output of our update `ResourceEvent` mutation.""" +type UpdateResourceEventPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """ - The `FunctionGraphExecutionNodeState` that was created by this mutation. - """ - functionGraphExecutionNodeState: FunctionGraphExecutionNodeState + """The `ResourceEvent` that was updated by this mutation.""" + resourceEvent: ResourceEvent """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """ - An edge for our `FunctionGraphExecutionNodeState`. May be used by Relay 1. - """ - functionGraphExecutionNodeStateEdge( - """The method to use when ordering `FunctionGraphExecutionNodeState`.""" - orderBy: [FunctionGraphExecutionNodeStateOrderBy!]! = [PRIMARY_KEY_ASC] - ): FunctionGraphExecutionNodeStateEdge + """An edge for our `ResourceEvent`. May be used by Relay 1.""" + resourceEventEdge( + """The method to use when ordering `ResourceEvent`.""" + orderBy: [ResourceEventOrderBy!]! = [PRIMARY_KEY_ASC] + ): ResourceEventEdge } -"""All input for the create `FunctionGraphExecutionNodeState` mutation.""" -input CreateFunctionGraphExecutionNodeStateInput { +"""All input for the `updateResourceEvent` mutation.""" +input UpdateResourceEventInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - """The `FunctionGraphExecutionNodeState` to be created by this mutation.""" - functionGraphExecutionNodeState: FunctionGraphExecutionNodeStateInput! + """Event timestamp (partition key)""" + createdAt: Datetime! + + """Unique event identifier""" + id: UUID! + + """ + An object where the defined keys will be set on the `ResourceEvent` being updated. + """ + resourceEventPatch: ResourceEventPatch! } -"""An input for mutations affecting `FunctionGraphExecutionNodeState`""" -input FunctionGraphExecutionNodeStateInput { - """Timestamp of node state creation (partition key)""" +""" +Represents an update to a `ResourceEvent`. Fields that are set will be updated. +""" +input ResourceEventPatch { + """Event timestamp (partition key)""" createdAt: Datetime - """Unique node state identifier""" + """Unique event identifier""" id: UUID - """FK to the parent graph execution""" - executionId: UUID! - - """Scope for multi-tenant isolation""" - databaseId: UUID! - - """Name of the node within the graph (e.g. send-email1)""" - nodeName: String! + """Resource this event belongs to""" + resourceId: UUID """ - Full merkle tree path to this node (e.g. {function,graphs,myflow,nodes,send-email1}) — enables subnet hierarchy tracking + Event type: provisioned, provisioning, updated, failed, deprovisioned, health_check """ - nodePath: [String] - - """Node lifecycle: pending → queued → running → completed/failed""" - status: String - - """Timestamp when the node began executing""" - startedAt: Datetime + eventType: String - """Timestamp when the node finished (success or failure)""" - completedAt: Datetime + """User who triggered this event (NULL for system/automated)""" + actorId: UUID - """Machine-readable error code when status = failed""" - errorCode: String + """Human-readable description of the event""" + message: String - """Human-readable error description when status = failed""" - errorMessage: String + """Structured context (old/new values, error details, etc.)""" + metadata: JSON - """FK to execution_outputs — content-addressed output blob for this node""" - outputId: UUID + """Database that owns this resource (database-scoped isolation)""" + databaseId: UUID } -"""The output of our create `PlatformNamespace` mutation.""" -type CreatePlatformNamespacePayload { +"""The output of our update `FunctionGraphExecutionOutput` mutation.""" +type UpdateFunctionGraphExecutionOutputPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `PlatformNamespace` that was created by this mutation.""" - platformNamespace: PlatformNamespace + """The `FunctionGraphExecutionOutput` that was updated by this mutation.""" + functionGraphExecutionOutput: FunctionGraphExecutionOutput """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `PlatformNamespace`. May be used by Relay 1.""" - platformNamespaceEdge( - """The method to use when ordering `PlatformNamespace`.""" - orderBy: [PlatformNamespaceOrderBy!]! = [PRIMARY_KEY_ASC] - ): PlatformNamespaceEdge + """ + An edge for our `FunctionGraphExecutionOutput`. May be used by Relay 1. + """ + functionGraphExecutionOutputEdge( + """The method to use when ordering `FunctionGraphExecutionOutput`.""" + orderBy: [FunctionGraphExecutionOutputOrderBy!]! = [PRIMARY_KEY_ASC] + ): FunctionGraphExecutionOutputEdge } -"""All input for the create `PlatformNamespace` mutation.""" -input CreatePlatformNamespaceInput { +"""All input for the `updateFunctionGraphExecutionOutput` mutation.""" +input UpdateFunctionGraphExecutionOutputInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - """The `PlatformNamespace` to be created by this mutation.""" - platformNamespace: PlatformNamespaceInput! -} - -"""An input for mutations affecting `PlatformNamespace`""" -input PlatformNamespaceInput { - id: UUID - createdAt: Datetime - updatedAt: Datetime + """Timestamp of output creation""" + createdAt: Datetime! - """Human-readable namespace name (e.g. default, production, oauth)""" - name: String! + """Unique execution output identifier""" + id: UUID! """ - Globally unique computed namespace identifier via inflection.underscore + An object where the defined keys will be set on the `FunctionGraphExecutionOutput` being updated. """ - namespaceName: String! - - """Optional human-readable description of this namespace""" - description: String - - """Whether this namespace is active (soft-disable for filtering)""" - isActive: Boolean - - """Key/value pairs for selecting and filtering namespaces""" - labels: JSON + functionGraphExecutionOutputPatch: FunctionGraphExecutionOutputPatch! +} - """Freeform metadata for tooling and operational notes""" - annotations: JSON +""" +Represents an update to a `FunctionGraphExecutionOutput`. Fields that are set will be updated. +""" +input FunctionGraphExecutionOutputPatch { + """Timestamp of output creation""" + createdAt: Datetime - """Database that owns this resource (database-scoped isolation)""" - databaseId: UUID! + """Unique execution output identifier""" + id: UUID - """ - Database that created this namespace (NULL for platform-native namespaces) - """ - sourceDatabaseId: UUID + """Opaque store partition key for the global tier""" + scopeId: UUID - """ - Origin scope: platform, org, app — indicates where this namespace was created - """ - sourceScope: String + """SHA-256 hash of the data JSONB — content-addressed deduplication""" + hash: Base64EncodedBinary - """ - true = created by a child scope mirror trigger, false = platform-native - """ - isManaged: Boolean + """The actual output payload from a completed node""" + data: JSON } -"""The output of our create `OrgFunctionInvocation` mutation.""" -type CreateOrgFunctionInvocationPayload { +"""The output of our update `InfraCommit` mutation.""" +type UpdateInfraCommitPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `OrgFunctionInvocation` that was created by this mutation.""" - orgFunctionInvocation: OrgFunctionInvocation + """The `InfraCommit` that was updated by this mutation.""" + infraCommit: InfraCommit """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `OrgFunctionInvocation`. May be used by Relay 1.""" - orgFunctionInvocationEdge( - """The method to use when ordering `OrgFunctionInvocation`.""" - orderBy: [OrgFunctionInvocationOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgFunctionInvocationEdge + """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 } -"""All input for the create `OrgFunctionInvocation` mutation.""" -input CreateOrgFunctionInvocationInput { +"""All input for the `updateInfraCommit` mutation.""" +input UpdateInfraCommitInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - """The `OrgFunctionInvocation` to be created by this mutation.""" - orgFunctionInvocation: OrgFunctionInvocationInput! -} - -"""An input for mutations affecting `OrgFunctionInvocation`""" -input OrgFunctionInvocationInput { - """Invocation creation timestamp (partition key)""" - createdAt: Datetime - - """Unique invocation identifier""" - id: UUID + """Unique commit identifier""" + id: UUID! - """Who triggered the invocation (NULL for system/cron)""" - actorId: UUID + """Opaque store partition key for the global tier""" + scopeId: UUID! """ - Function routing slug (scope:name). Links to function_definitions.task_identifier by convention — no FK. + An object where the defined keys will be set on the `InfraCommit` being updated. """ - taskIdentifier: String! - - """Function input payload""" - payload: JSON + infraCommitPatch: InfraCommitPatch! +} - """Lifecycle: pending → running → completed/failed/cancelled""" - status: String +""" +Represents an update to a `InfraCommit`. Fields that are set will be updated. +""" +input InfraCommitPatch { + """Unique commit identifier""" + id: UUID - """Function return value (success) or structured error (failure)""" - result: JSON + """Optional commit message""" + message: String - """Error message when status is failed""" - error: String + """Opaque store partition key for the global tier""" + scopeId: UUID - """Wall-clock execution time in milliseconds""" - durationMs: Int + """Store this commit belongs to""" + storeId: UUID - """FK to app_jobs.jobs — the underlying transport""" - jobId: BigInt + """Parent commit IDs (supports merge commits)""" + parentIds: [UUID] - """When execution started""" - startedAt: Datetime + """User who authored the changes""" + authorId: UUID - """When execution completed""" - completedAt: Datetime + """User who committed (may differ from author)""" + committerId: UUID - """Parent invocation when this is a child node of a flow graph execution""" - parentInvocationId: UUID + """Root object ID of the tree snapshot at this commit""" + treeId: UUID - """Groups all node invocations from a single flow graph execution""" - graphExecutionId: UUID + """Commit timestamp""" + date: Datetime } -"""The output of our create `FunctionInvocation` mutation.""" -type CreateFunctionInvocationPayload { +"""The output of our update `FunctionGraphCommit` mutation.""" +type UpdateFunctionGraphCommitPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `FunctionInvocation` that was created by this mutation.""" - functionInvocation: FunctionInvocation + """The `FunctionGraphCommit` that was updated by this mutation.""" + functionGraphCommit: FunctionGraphCommit """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `FunctionInvocation`. May be used by Relay 1.""" - functionInvocationEdge( - """The method to use when ordering `FunctionInvocation`.""" - orderBy: [FunctionInvocationOrderBy!]! = [PRIMARY_KEY_ASC] - ): FunctionInvocationEdge + """An edge for our `FunctionGraphCommit`. May be used by Relay 1.""" + functionGraphCommitEdge( + """The method to use when ordering `FunctionGraphCommit`.""" + orderBy: [FunctionGraphCommitOrderBy!]! = [PRIMARY_KEY_ASC] + ): FunctionGraphCommitEdge } -"""All input for the create `FunctionInvocation` mutation.""" -input CreateFunctionInvocationInput { +"""All input for the `updateFunctionGraphCommit` mutation.""" +input UpdateFunctionGraphCommitInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - """The `FunctionInvocation` to be created by this mutation.""" - functionInvocation: FunctionInvocationInput! -} - -"""An input for mutations affecting `FunctionInvocation`""" -input FunctionInvocationInput { - """Invocation creation timestamp (partition key)""" - createdAt: Datetime - - """Unique invocation identifier""" - id: UUID - - """Who triggered the invocation (NULL for system/cron)""" - actorId: UUID + """Unique commit identifier""" + id: UUID! - """Database that owns this resource (database-scoped isolation)""" - databaseId: UUID! + """Opaque store partition key for the global tier""" + scopeId: UUID! """ - Function routing slug (scope:name). Links to function_definitions.task_identifier by convention — no FK. + An object where the defined keys will be set on the `FunctionGraphCommit` being updated. """ - taskIdentifier: String! - - """Function input payload""" - payload: JSON + functionGraphCommitPatch: FunctionGraphCommitPatch! +} - """Lifecycle: pending → running → completed/failed/cancelled""" - status: String +""" +Represents an update to a `FunctionGraphCommit`. Fields that are set will be updated. +""" +input FunctionGraphCommitPatch { + """Unique commit identifier""" + id: UUID - """Function return value (success) or structured error (failure)""" - result: JSON + """Optional commit message""" + message: String - """Error message when status is failed""" - error: String + """Opaque store partition key for the global tier""" + scopeId: UUID - """Wall-clock execution time in milliseconds""" - durationMs: Int + """Store this commit belongs to""" + storeId: UUID - """FK to app_jobs.jobs — the underlying transport""" - jobId: BigInt + """Parent commit IDs (supports merge commits)""" + parentIds: [UUID] - """When execution started""" - startedAt: Datetime + """User who authored the changes""" + authorId: UUID - """When execution completed""" - completedAt: Datetime + """User who committed (may differ from author)""" + committerId: UUID - """Parent invocation when this is a child node of a flow graph execution""" - parentInvocationId: UUID + """Root object ID of the tree snapshot at this commit""" + treeId: UUID - """Groups all node invocations from a single flow graph execution""" - graphExecutionId: UUID + """Commit timestamp""" + date: Datetime } -"""The output of our create `Resource` mutation.""" -type CreateResourcePayload { +"""The output of our update `FunctionExecutionLog` mutation.""" +type UpdateFunctionExecutionLogPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `Resource` that was created by this mutation.""" - resource: Resource + """The `FunctionExecutionLog` that was updated by this mutation.""" + functionExecutionLog: FunctionExecutionLog """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """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 + """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 } -"""All input for the create `Resource` mutation.""" -input CreateResourceInput { +"""All input for the `updateFunctionExecutionLog` mutation.""" +input UpdateFunctionExecutionLogInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - """The `Resource` to be created by this mutation.""" - resource: ResourceInput! -} + """Log entry timestamp (partition key)""" + createdAt: Datetime! -"""An input for mutations affecting `Resource`""" -input ResourceInput { - id: UUID - createdAt: Datetime - updatedAt: Datetime - createdBy: UUID - updatedBy: UUID + """Unique log entry identifier""" + id: UUID! """ - Namespace this resource belongs to (security boundary, maps to K8s namespace) + An object where the defined keys will be set on the `FunctionExecutionLog` being updated. """ - namespaceId: UUID! - - """Resource kind: Deployment, StatefulSet, Service, Ingress, Certificate""" - kind: String! - - """Human-readable resource name""" - name: String! + functionExecutionLogPatch: FunctionExecutionLogPatch! +} - """URL-safe identifier, unique within (namespace_id, kind)""" - slug: String! +""" +Represents an update to a `FunctionExecutionLog`. Fields that are set will be updated. +""" +input FunctionExecutionLogPatch { + """Log entry timestamp (partition key)""" + createdAt: Datetime - """ - Desired state — kind-specific configuration (image, ports, resources, etc.). Opaque to DB; validated by K8s. - """ - spec: JSON + """Unique log entry identifier""" + id: UUID - """ - Resource lifecycle status: pending, provisioning, active, failed, draining, deleting - """ - status: String + """Invocation this log entry belongs to (NULL for standalone job logs)""" + invocationId: UUID - """ - Observed state from K8s — populated by handlers after reconciliation (service_url, clone_url, replicas, etc.) - """ - statusObserved: JSON + """Function routing key (NULL for generic job logs)""" + taskIdentifier: String - """Most recent provisioning or runtime error message""" - lastError: String + """Log severity: debug, info, warn, error""" + logLevel: String - """Cumulative error count for this resource""" - errorCount: Int + """Log message text""" + message: String - """Key/value pairs for selecting and filtering resources""" - labels: JSON + """Structured context (labels, trace data, extra fields)""" + metadata: JSON - """Freeform metadata for tooling and operational notes""" - annotations: JSON + """User who triggered the execution (NULL for system/cron)""" + actorId: UUID """Database that owns this resource (database-scoped isolation)""" - databaseId: UUID! + databaseId: UUID } -"""The output of our create `PlatformNamespaceEvent` mutation.""" -type CreatePlatformNamespaceEventPayload { +"""The output of our update `DbPreset` mutation.""" +type UpdateDbPresetPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `PlatformNamespaceEvent` that was created by this mutation.""" - platformNamespaceEvent: PlatformNamespaceEvent + """The `DbPreset` that was updated by this mutation.""" + dbPreset: DbPreset """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `PlatformNamespaceEvent`. May be used by Relay 1.""" - platformNamespaceEventEdge( - """The method to use when ordering `PlatformNamespaceEvent`.""" - orderBy: [PlatformNamespaceEventOrderBy!]! = [PRIMARY_KEY_ASC] - ): PlatformNamespaceEventEdge + """An edge for our `DbPreset`. May be used by Relay 1.""" + dbPresetEdge( + """The method to use when ordering `DbPreset`.""" + orderBy: [DbPresetOrderBy!]! = [PRIMARY_KEY_ASC] + ): DbPresetEdge } -"""All input for the create `PlatformNamespaceEvent` mutation.""" -input CreatePlatformNamespaceEventInput { +"""All input for the `updateDbPreset` mutation.""" +input UpdateDbPresetInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - """The `PlatformNamespaceEvent` to be created by this mutation.""" - platformNamespaceEvent: PlatformNamespaceEventInput! -} + """Unique preset identifier""" + id: UUID! -"""An input for mutations affecting `PlatformNamespaceEvent`""" -input PlatformNamespaceEventInput { - """Event timestamp (partition key)""" - createdAt: Datetime + """ + An object where the defined keys will be set on the `DbPreset` being updated. + """ + dbPresetPatch: DbPresetPatch! +} - """Unique event identifier""" +""" +Represents an update to a `DbPreset`. Fields that are set will be updated. +""" +input DbPresetPatch { + """Unique preset identifier""" id: UUID - """Namespace this event belongs to""" - namespaceId: UUID! - """ - Event type: created, activated, deactivated, labels_updated, annotations_updated, renamed + Infra Merkle store holding this preset's history (stamped by the versioned trigger) """ - eventType: String! - - """User who triggered this event (NULL for system/automated)""" - actorId: UUID - - """Human-readable description of the event""" - message: String + storeId: UUID - """Structured context (old/new values, labels diff, etc.)""" - metadata: JSON + """ + Preset slug (unique per scope); the preset's path in the infra tree is [db_preset, slug] + """ + slug: String - """CPU usage in millicores at time of event""" - cpuMillicores: Int + """ + Preset definition (modules + options) — the readily-cached head; history lives in the infra store + """ + definition: JSON - """Memory usage in bytes at time of event""" - memoryBytes: BigInt + """ + Infra store commit for the current definition (stamped by the versioned trigger on every write) + """ + commitId: UUID - """Storage usage in bytes at time of event""" - storageBytes: BigInt + """ + 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 - """Network ingress in bytes during event window""" - networkIngressBytes: BigInt + """Human-readable preset name""" + label: String - """Network egress in bytes during event window""" - networkEgressBytes: BigInt + """Human-readable description of the preset""" + description: String - """Number of active pods in the namespace at time of event""" - podCount: Int + """Whether this preset is selectable for new databases""" + active: Boolean - """Additional resource metrics (gpu, replicas, quotas, etc.)""" - metrics: JSON + """Timestamp of preset creation""" + createdAt: Datetime - """Database that owns this resource (database-scoped isolation)""" - databaseId: UUID! + """Timestamp of last modification""" + updatedAt: Datetime } -"""The output of our create `FunctionDeployment` mutation.""" -type CreateFunctionDeploymentPayload { +"""The output of our update `PlatformNamespace` mutation.""" +type UpdatePlatformNamespacePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `FunctionDeployment` that was created by this mutation.""" - functionDeployment: FunctionDeployment + """The `PlatformNamespace` that was updated by this mutation.""" + platformNamespace: PlatformNamespace """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `FunctionDeployment`. May be used by Relay 1.""" - functionDeploymentEdge( - """The method to use when ordering `FunctionDeployment`.""" - orderBy: [FunctionDeploymentOrderBy!]! = [PRIMARY_KEY_ASC] - ): FunctionDeploymentEdge + """An edge for our `PlatformNamespace`. May be used by Relay 1.""" + platformNamespaceEdge( + """The method to use when ordering `PlatformNamespace`.""" + orderBy: [PlatformNamespaceOrderBy!]! = [PRIMARY_KEY_ASC] + ): PlatformNamespaceEdge } -"""All input for the create `FunctionDeployment` mutation.""" -input CreateFunctionDeploymentInput { +"""All input for the `updatePlatformNamespace` mutation.""" +input UpdatePlatformNamespaceInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String + id: UUID! - """The `FunctionDeployment` to be created by this mutation.""" - functionDeployment: FunctionDeploymentInput! + """ + An object where the defined keys will be set on the `PlatformNamespace` being updated. + """ + platformNamespacePatch: PlatformNamespacePatch! } -"""An input for mutations affecting `FunctionDeployment`""" -input FunctionDeploymentInput { +""" +Represents an update to a `PlatformNamespace`. Fields that are set will be updated. +""" +input PlatformNamespacePatch { id: UUID createdAt: Datetime updatedAt: Datetime - """Function definition being deployed to this namespace""" - functionDefinitionId: UUID! - - """Target namespace for this deployment (maps to a K8s namespace)""" - namespaceId: UUID! - - """ - Deployment lifecycle status: pending, provisioning, active, failed, scaled_to_zero, deactivated - """ - status: String - - """ - Knative service URL (http://{service-name}.{namespace}.svc.cluster.local) — populated after provisioning - """ - serviceUrl: String - - """Knative service name — derived from task_identifier at provision time""" - serviceName: String - - """Deployment revision number (incremented on each redeployment)""" - revision: Int - - """Container image override (NULL = inherit from function definition)""" - image: String - - """Max concurrent requests per pod (NULL = inherit from definition)""" - concurrency: Int + """Human-readable namespace name (e.g. default, production, oauth)""" + name: String """ - Minimum replica count (NULL = inherit from definition or Knative default) + Globally unique computed namespace identifier via inflection.underscore """ - scaleMin: Int + namespaceName: String - """ - Maximum replica count (NULL = inherit from definition or Knative default) - """ - scaleMax: Int + """Optional human-readable description of this namespace""" + description: String - """Request timeout override in seconds (NULL = inherit from definition)""" - timeoutSeconds: Int + """Whether this namespace is active (soft-disable for filtering)""" + isActive: Boolean """ - K8s resource spec override: {"requests":{"cpu":"100m","memory":"128Mi"},"limits":{...}} + Namespace provisioning lifecycle status: pending, provisioning, active, failed """ - resources: JSON + status: String - """Most recent provisioning or runtime error message""" + """Most recent provisioning or reconcile error message""" lastError: String - """Timestamp of the most recent error""" - lastErrorAt: Datetime - - """Cumulative error count for this deployment""" - errorCount: Int - - """Key/value pairs for selecting and filtering deployments""" + """Key/value pairs for selecting and filtering namespaces""" labels: JSON """Freeform metadata for tooling and operational notes""" annotations: JSON - """Database that owns this resource (database-scoped isolation)""" - databaseId: UUID! + """ + true = provisioned by the platform via jobs, false = unmanaged/platform-native (bootstrapped externally) + """ + isManaged: Boolean } -"""The output of our create `FunctionGraphExecution` mutation.""" -type CreateFunctionGraphExecutionPayload { +"""The output of our update `FunctionGraph` mutation.""" +type UpdateFunctionGraphPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `FunctionGraphExecution` that was created by this mutation.""" - functionGraphExecution: FunctionGraphExecution + """The `FunctionGraph` that was updated by this mutation.""" + functionGraph: FunctionGraph """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """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 + """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 } -"""All input for the create `FunctionGraphExecution` mutation.""" -input CreateFunctionGraphExecutionInput { +"""All input for the `updateFunctionGraph` mutation.""" +input UpdateFunctionGraphInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - """The `FunctionGraphExecution` to be created by this mutation.""" - functionGraphExecution: FunctionGraphExecutionInput! -} + """Unique graph identifier""" + id: UUID! -"""An input for mutations affecting `FunctionGraphExecution`""" -input FunctionGraphExecutionInput { - """Execution start timestamp""" - startedAt: Datetime + """ + An object where the defined keys will be set on the `FunctionGraph` being updated. + """ + functionGraphPatch: FunctionGraphPatch! +} - """Unique execution identifier""" +""" +Represents an update to a `FunctionGraph`. Fields that are set will be updated. +""" +input FunctionGraphPatch { + """Unique graph identifier""" id: UUID - """FK to the graph definition being executed""" - graphId: UUID! + """Opaque store partition key for the global tier""" + scopeId: UUID - """Parent function_invocations row (for metering)""" - invocationId: UUID + """Graph store (Merkle store) holding the graph definition""" + storeId: UUID - """Scope for multi-tenant isolation""" - databaseId: UUID! + """Evaluator/runtime context (function, js, sql, system)""" + context: String - """Target output boundary node name to resolve""" - outputNode: String! + """Graph name (unique per database)""" + name: String - """Target output port name (default: value)""" - outputPort: String + """Human-readable description of the graph""" + description: String - """Lifecycle: pending → running → completed/failed/cancelled""" - status: String + """Pinned definitions store commit for deterministic evaluation""" + definitionsCommitId: UUID - """Initial inputs provided at invocation time""" - inputPayload: JSON + """Whether graph passes structural validation""" + isValid: Boolean - """Final result extracted from terminal output node""" - outputPayload: JSON + """Array of validation error objects when is_valid = false""" + validationErrors: JSON + + """Actor who created this graph""" + createdBy: UUID + """Timestamp of graph creation""" + createdAt: Datetime + + """Timestamp of last modification""" + updatedAt: Datetime +} + +"""The output of our update `FunctionGraphExecutionNodeState` mutation.""" +type UpdateFunctionGraphExecutionNodeStatePayload { """ - 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 - """Pre-computed topological sort as array of wave objects""" - executionPlan: JSON + """ + The `FunctionGraphExecutionNodeState` that was updated by this mutation. + """ + functionGraphExecutionNodeState: FunctionGraphExecutionNodeState - """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 - """Parent execution when this is a sub-execution""" - parentExecutionId: UUID + """ + 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 +} - """Node name in parent execution that spawned this sub-execution""" - parentNodeName: String +"""All input for the `updateFunctionGraphExecutionNodeState` mutation.""" +input UpdateFunctionGraphExecutionNodeStateInput { + """ + An arbitrary 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 + """Timestamp of node state creation (partition key)""" + createdAt: Datetime! - """Number of evaluate_step ticks executed""" - tickCount: Int + """Unique node state identifier""" + id: UUID! - """Execution completion timestamp""" - completedAt: Datetime + """ + An object where the defined keys will be set on the `FunctionGraphExecutionNodeState` being updated. + """ + functionGraphExecutionNodeStatePatch: FunctionGraphExecutionNodeStatePatch! +} - """Maximum ticks before execution is failed (default 100)""" - maxTicks: Int +""" +Represents an update to a `FunctionGraphExecutionNodeState`. Fields that are set will be updated. +""" +input FunctionGraphExecutionNodeStatePatch { + """Timestamp of node state creation (partition key)""" + createdAt: Datetime - """Maximum pending jobs before execution is failed (default 50)""" - maxPendingJobs: Int + """Unique node state identifier""" + id: UUID - """Absolute deadline — execution fails if still running after this time""" - timeoutAt: Datetime + """FK to the parent graph execution""" + executionId: UUID + + """Opaque store partition key for the global tier""" + scopeId: 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] + + """Node lifecycle: pending → queued → running → completed/failed""" + status: String + + """Timestamp when the node began executing""" + startedAt: Datetime + + """Timestamp when the node finished (success or failure)""" + completedAt: Datetime """Machine-readable error code when status = failed""" errorCode: String """Human-readable error description when status = failed""" errorMessage: String + + """FK to execution_outputs — content-addressed output blob for this node""" + outputId: UUID } -"""The output of our create `FunctionDefinition` mutation.""" -type CreateFunctionDefinitionPayload { +"""The output of our update `Namespace` mutation.""" +type UpdateNamespacePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `FunctionDefinition` that was created by this mutation.""" - functionDefinition: FunctionDefinition + """The `Namespace` that was updated by this mutation.""" + namespace: Namespace """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `FunctionDefinition`. May be used by Relay 1.""" - functionDefinitionEdge( - """The method to use when ordering `FunctionDefinition`.""" - orderBy: [FunctionDefinitionOrderBy!]! = [PRIMARY_KEY_ASC] - ): FunctionDefinitionEdge + """An edge for our `Namespace`. May be used by Relay 1.""" + namespaceEdge( + """The method to use when ordering `Namespace`.""" + orderBy: [NamespaceOrderBy!]! = [PRIMARY_KEY_ASC] + ): NamespaceEdge } -"""All input for the create `FunctionDefinition` mutation.""" -input CreateFunctionDefinitionInput { +"""All input for the `updateNamespace` mutation.""" +input UpdateNamespaceInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String + id: UUID! - """The `FunctionDefinition` to be created by this mutation.""" - functionDefinition: FunctionDefinitionInput! + """ + An object where the defined keys will be set on the `Namespace` being updated. + """ + namespacePatch: NamespacePatch! } -"""An input for mutations affecting `FunctionDefinition`""" -input FunctionDefinitionInput { +""" +Represents an update to a `Namespace`. Fields that are set will be updated. +""" +input NamespacePatch { id: UUID createdAt: Datetime updatedAt: Datetime - """Function grouping scope (e.g. email, embed, chunk, custom)""" - scope: String! - - """ - Function name within scope (e.g. send_verification_link, process_file_embedding) - """ - name: String! + """Human-readable namespace name (e.g. default, production, oauth)""" + name: String """ - Computed routing slug: scope:name (used by Knative job worker for dispatch) + Globally unique computed namespace identifier via inflection.underscore """ - taskIdentifier: String! + namespaceName: String - """Human-readable description of what this function does""" + """Optional human-readable description of this namespace""" description: String - """ - Whether this function can be called via function_invocations (public API). Default false = internal-only via add_job() - """ - isInvocable: Boolean - - """Maximum retry attempts for the underlying job""" - maxAttempts: Int - - """Job priority (lower = higher priority)""" - priority: Int - - """Job queue name for serialization (e.g. email, ai, default)""" - queueName: String - - """ - Execution mode: http (Knative Service dispatch) or inline (in-process in compute worker) - """ - runtime: String + """Whether this namespace is active (soft-disable for filtering)""" + isActive: Boolean """ - Docker image reference (e.g. ghcr.io/constructive-io/email-send-fn:latest). Required when runtime=http. NULL for inline functions. + Namespace provisioning lifecycle status: pending, provisioning, active, failed """ - image: String + status: String - """ - Knative containerConcurrency — max concurrent requests per pod instance - """ - concurrency: Int + """Most recent provisioning or reconcile error message""" + lastError: String - """Minimum pod count for Knative autoscaling (minScale)""" - scaleMin: Int + """Key/value pairs for selecting and filtering namespaces""" + labels: JSON - """Maximum pod count for Knative autoscaling (maxScale)""" - scaleMax: Int + """Freeform metadata for tooling and operational notes""" + annotations: JSON - """Knative request timeout in seconds""" - timeoutSeconds: Int + """Database that owns this resource (database-scoped isolation)""" + databaseId: UUID """ - Container resource requests and limits: {requests: {memory, cpu}, limits: {memory, cpu}} + true = provisioned by the platform via jobs, false = unmanaged/platform-native (bootstrapped externally) """ - resources: JSON + isManaged: Boolean +} +"""The output of our update `PlatformFunctionInvocation` mutation.""" +type UpdatePlatformFunctionInvocationPayload { """ - Whether this function is a built-in platform function (synced from platform) vs user-created + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. """ - isBuiltIn: Boolean - - """Embedded secret requirements: array of (name, required) tuples""" - requiredSecrets: [FunctionRequirementInput] + clientMutationId: String - """Embedded config requirements: array of (name, required) tuples""" - requiredConfigs: [FunctionRequirementInput] + """The `PlatformFunctionInvocation` that was updated by this mutation.""" + platformFunctionInvocation: PlatformFunctionInvocation """ - Bucket keys this function needs (e.g. uploads, exports). Empty = no bucket requirements. + Our root query field type. Allows us to run any query from our mutation payload. """ - requiredBuckets: [String] + query: Query - """ - Inference model whitelist (e.g. gpt-4o, claude-3). Empty = no model requirements. - """ - requiredModels: [String] + """An edge for our `PlatformFunctionInvocation`. May be used by Relay 1.""" + platformFunctionInvocationEdge( + """The method to use when ordering `PlatformFunctionInvocation`.""" + orderBy: [PlatformFunctionInvocationOrderBy!]! = [PRIMARY_KEY_ASC] + ): PlatformFunctionInvocationEdge +} +"""All input for the `updatePlatformFunctionInvocation` mutation.""" +input UpdatePlatformFunctionInvocationInput { """ - Data input ports: [{name, type, description?, optional?, multi?, 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. """ - inputs: JSON + clientMutationId: String - """ - Data output ports: [{name, type, description?, optional?, multi?, schema?}] - """ - outputs: JSON + """Invocation creation timestamp (partition key)""" + createdAt: Datetime! + + """Unique invocation identifier""" + id: UUID! """ - Configuration properties: [{name, type, default?, description?, required?, schema?}] + An object where the defined keys will be set on the `PlatformFunctionInvocation` being updated. """ - props: JSON + platformFunctionInvocationPatch: PlatformFunctionInvocationPatch! +} + +""" +Represents an update to a `PlatformFunctionInvocation`. Fields that are set will be updated. +""" +input PlatformFunctionInvocationPatch { + """Invocation creation timestamp (partition key)""" + createdAt: Datetime + + """Unique invocation identifier""" + id: UUID + + """Who triggered the invocation (NULL for system/cron)""" + actorId: UUID """ - Whether this function has side effects and cannot be cached or memoized + Function routing slug (scope:name). Links to function_definitions.task_identifier by convention — no FK. """ - volatile: Boolean + taskIdentifier: String - """Icon identifier for UI palette rendering (e.g. mail, database, code)""" - icon: String + """Function input payload""" + payload: JSON - """Palette grouping category (e.g. email, data, ai, custom)""" - category: String -} + """Lifecycle: pending → running → completed/failed/cancelled""" + status: String -"""An input for mutations affecting `FunctionRequirement`""" -input FunctionRequirementInput { - name: String - required: Boolean + """Function return value (success) or structured error (failure)""" + result: JSON + + """Error message when status is failed""" + error: String + + """Wall-clock execution time in milliseconds""" + durationMs: Int + + """FK to app_jobs.jobs — the underlying transport""" + jobId: BigInt + + """When execution started""" + startedAt: Datetime + + """When execution completed""" + completedAt: Datetime + + """Parent invocation when this is a child node of a flow graph execution""" + parentInvocationId: UUID + + """Groups all node invocations from a single flow graph execution""" + graphExecutionId: UUID } -"""The output of our update `FunctionApiBinding` mutation.""" -type UpdateFunctionApiBindingPayload { +"""The output of our update `FunctionInvocation` mutation.""" +type UpdateFunctionInvocationPayload { """ The exact 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 updated by this mutation.""" - functionApiBinding: FunctionApiBinding + """The `FunctionInvocation` that was updated by this mutation.""" + functionInvocation: FunctionInvocation """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """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 `FunctionInvocation`. May be used by Relay 1.""" + functionInvocationEdge( + """The method to use when ordering `FunctionInvocation`.""" + orderBy: [FunctionInvocationOrderBy!]! = [PRIMARY_KEY_ASC] + ): FunctionInvocationEdge } -"""All input for the `updateFunctionApiBinding` mutation.""" -input UpdateFunctionApiBindingInput { +"""All input for the `updateFunctionInvocation` mutation.""" +input UpdateFunctionInvocationInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String + + """Invocation creation timestamp (partition key)""" + createdAt: Datetime! + + """Unique invocation identifier""" id: UUID! """ - An object where the defined keys will be set on the `FunctionApiBinding` being updated. + An object where the defined keys will be set on the `FunctionInvocation` being updated. """ - functionApiBindingPatch: FunctionApiBindingPatch! + functionInvocationPatch: FunctionInvocationPatch! } """ -Represents an update to a `FunctionApiBinding`. Fields that are set will be updated. +Represents an update to a `FunctionInvocation`. Fields that are set will be updated. """ -input FunctionApiBindingPatch { +input FunctionInvocationPatch { + """Invocation creation timestamp (partition key)""" + createdAt: Datetime + + """Unique invocation identifier""" id: UUID - """Function definition this binding belongs to""" - functionDefinitionId: UUID + """Who triggered the invocation (NULL for system/cron)""" + actorId: UUID - """API endpoint this function is bound to""" - apiId: UUID + """Database that owns this resource (database-scoped isolation)""" + databaseId: UUID - """Binding alias (e.g. default, staging, production)""" - alias: String + """ + Function routing slug (scope:name). Links to function_definitions.task_identifier by convention — no FK. + """ + taskIdentifier: String - """Per-binding configuration (overrides, routing rules, etc.)""" - config: JSON + """Function input payload""" + payload: JSON + + """Lifecycle: pending → running → completed/failed/cancelled""" + status: String + + """Function return value (success) or structured error (failure)""" + result: JSON + + """Error message when status is failed""" + error: String + + """Wall-clock execution time in milliseconds""" + durationMs: Int + + """FK to app_jobs.jobs — the underlying transport""" + jobId: BigInt + + """When execution started""" + startedAt: Datetime + + """When execution completed""" + completedAt: Datetime + + """Parent invocation when this is a child node of a flow graph execution""" + parentInvocationId: UUID + + """Groups all node invocations from a single flow graph execution""" + graphExecutionId: UUID } -"""The output of our update `FunctionGraphRef` mutation.""" -type UpdateFunctionGraphRefPayload { +"""The output of our update `PlatformNamespaceEvent` mutation.""" +type UpdatePlatformNamespaceEventPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `FunctionGraphRef` that was updated by this mutation.""" - functionGraphRef: FunctionGraphRef + """The `PlatformNamespaceEvent` that was updated by this mutation.""" + platformNamespaceEvent: PlatformNamespaceEvent """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `FunctionGraphRef`. May be used by Relay 1.""" - functionGraphRefEdge( - """The method to use when ordering `FunctionGraphRef`.""" - orderBy: [FunctionGraphRefOrderBy!]! = [PRIMARY_KEY_ASC] - ): FunctionGraphRefEdge + """An edge for our `PlatformNamespaceEvent`. May be used by Relay 1.""" + platformNamespaceEventEdge( + """The method to use when ordering `PlatformNamespaceEvent`.""" + orderBy: [PlatformNamespaceEventOrderBy!]! = [PRIMARY_KEY_ASC] + ): PlatformNamespaceEventEdge } -"""All input for the `updateFunctionGraphRef` mutation.""" -input UpdateFunctionGraphRefInput { +"""All input for the `updatePlatformNamespaceEvent` mutation.""" +input UpdatePlatformNamespaceEventInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - """Unique ref identifier""" - id: UUID! + """Event timestamp (partition key)""" + createdAt: Datetime! - """Database scope for multi-tenant isolation""" - databaseId: UUID! + """Unique event identifier""" + id: UUID! """ - An object where the defined keys will be set on the `FunctionGraphRef` being updated. + An object where the defined keys will be set on the `PlatformNamespaceEvent` being updated. """ - functionGraphRefPatch: FunctionGraphRefPatch! + platformNamespaceEventPatch: PlatformNamespaceEventPatch! } """ -Represents an update to a `FunctionGraphRef`. Fields that are set will be updated. +Represents an update to a `PlatformNamespaceEvent`. Fields that are set will be updated. """ -input FunctionGraphRefPatch { - """Unique ref identifier""" +input PlatformNamespaceEventPatch { + """Event timestamp (partition key)""" + createdAt: Datetime + + """Unique event identifier""" id: UUID - """Ref name (e.g. HEAD, main)""" - name: String + """Namespace this event belongs to""" + namespaceId: UUID - """Database scope for multi-tenant isolation""" - databaseId: UUID + """ + Event type: created, activated, deactivated, labels_updated, annotations_updated, renamed + """ + eventType: String - """Store this ref belongs to""" - storeId: UUID + """User who triggered this event (NULL for system/automated)""" + actorId: UUID - """Commit this ref points to""" - commitId: UUID -} + """Human-readable description of the event""" + message: String -"""The output of our update `FunctionGraphStore` mutation.""" -type UpdateFunctionGraphStorePayload { + """Structured context (old/new values, labels diff, etc.)""" + metadata: JSON + + """CPU usage in millicores at time of event""" + cpuMillicores: Int + + """Memory usage in bytes at time of event""" + memoryBytes: BigInt + + """Storage usage in bytes at time of event""" + storageBytes: BigInt + + """Network ingress in bytes during event window""" + networkIngressBytes: BigInt + + """Network egress in bytes during event window""" + networkEgressBytes: BigInt + + """Number of active pods in the namespace at time of event""" + podCount: Int + + """Additional resource metrics (gpu, replicas, quotas, etc.)""" + metrics: JSON +} + +"""The output of our update `IntegrationProvider` mutation.""" +type UpdateIntegrationProviderPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `FunctionGraphStore` that was updated by this mutation.""" - functionGraphStore: FunctionGraphStore + """The `IntegrationProvider` that was updated by this mutation.""" + integrationProvider: IntegrationProvider """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `FunctionGraphStore`. May be used by Relay 1.""" - functionGraphStoreEdge( - """The method to use when ordering `FunctionGraphStore`.""" - orderBy: [FunctionGraphStoreOrderBy!]! = [PRIMARY_KEY_ASC] - ): FunctionGraphStoreEdge + """An edge for our `IntegrationProvider`. May be used by Relay 1.""" + integrationProviderEdge( + """The method to use when ordering `IntegrationProvider`.""" + orderBy: [IntegrationProviderOrderBy!]! = [PRIMARY_KEY_ASC] + ): IntegrationProviderEdge } -"""All input for the `updateFunctionGraphStore` mutation.""" -input UpdateFunctionGraphStoreInput { +"""All input for the `updateIntegrationProvider` mutation.""" +input UpdateIntegrationProviderInput { """ An arbitrary 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! """ - An object where the defined keys will be set on the `FunctionGraphStore` being updated. + An object where the defined keys will be set on the `IntegrationProvider` being updated. """ - functionGraphStorePatch: FunctionGraphStorePatch! + integrationProviderPatch: IntegrationProviderPatch! } """ -Represents an update to a `FunctionGraphStore`. Fields that are set will be updated. +Represents an update to a `IntegrationProvider`. Fields that are set will be updated. """ -input FunctionGraphStorePatch { - """Unique store identifier""" +input IntegrationProviderPatch { id: UUID + createdAt: Datetime + updatedAt: Datetime - """Human-readable store name""" + """ + Stable URL-safe identifier for the provider. Other tables match by this string, not by FK. + """ + slug: String + + """Human-readable brand name (e.g. 'Mailgun', 'PostgreSQL')""" name: String - """Database scope for multi-tenant isolation""" - databaseId: UUID + """Short description of what this integration provides and when to use it""" + description: String - """Current root object hash of this store""" - hash: UUID + """Browser category (e.g. email, database, storage, ai, analytics)""" + category: String - """Timestamp of store creation""" - createdAt: Datetime + """Icon identifier for the UI (e.g. mail, database, cloud)""" + icon: String + + """ + Provider logo as an image domain value (url, id, key, bucket, provider) + """ + logo: ConstructiveInternalTypeImage + + """ + Brand metadata: colors, fonts, and other provider-specific styling. Not a foreign key. + """ + brand: JSON + + """ + 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] + + """ + 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] + + """ + Upload for Provider logo as an image domain value (url, id, key, bucket, provider) + """ + logoUpload: Upload } -"""The output of our update `FunctionGraphObject` mutation.""" -type UpdateFunctionGraphObjectPayload { +"""The `Upload` scalar type represents a file upload.""" +scalar Upload + +"""The output of our update `NamespaceEvent` mutation.""" +type UpdateNamespaceEventPayload { """ The exact 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 updated by this mutation.""" - functionGraphObject: FunctionGraphObject + """The `NamespaceEvent` that was updated by this mutation.""" + namespaceEvent: NamespaceEvent """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `FunctionGraphObject`. May be used by Relay 1.""" - functionGraphObjectEdge( - """The method to use when ordering `FunctionGraphObject`.""" - orderBy: [FunctionGraphObjectOrderBy!]! = [PRIMARY_KEY_ASC] - ): FunctionGraphObjectEdge + """An edge for our `NamespaceEvent`. May be used by Relay 1.""" + namespaceEventEdge( + """The method to use when ordering `NamespaceEvent`.""" + orderBy: [NamespaceEventOrderBy!]! = [PRIMARY_KEY_ASC] + ): NamespaceEventEdge } -"""All input for the `updateFunctionGraphObject` mutation.""" -input UpdateFunctionGraphObjectInput { +"""All input for the `updateNamespaceEvent` mutation.""" +input UpdateNamespaceEventInput { """ An arbitrary 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! + """Event timestamp (partition key)""" + createdAt: Datetime! - """Database scope for multi-tenant isolation""" - databaseId: UUID! + """Unique event identifier""" + id: UUID! """ - An object where the defined keys will be set on the `FunctionGraphObject` being updated. + An object where the defined keys will be set on the `NamespaceEvent` being updated. """ - functionGraphObjectPatch: FunctionGraphObjectPatch! + namespaceEventPatch: NamespaceEventPatch! } """ -Represents an update to a `FunctionGraphObject`. Fields that are set will be updated. +Represents an update to a `NamespaceEvent`. Fields that are set will be updated. """ -input FunctionGraphObjectPatch { - """Content-addressed UUID v5 — deterministic hash of (data, kids, ktree)""" +input NamespaceEventPatch { + """Event timestamp (partition key)""" + createdAt: Datetime + + """Unique event identifier""" id: UUID - """Database scope for multi-tenant isolation""" - databaseId: UUID + """Namespace this event belongs to""" + namespaceId: UUID - """Ordered array of child object IDs""" - kids: [UUID] + """ + Event type: created, activated, deactivated, labels_updated, annotations_updated, renamed + """ + eventType: String - """Ordered array of child path names (parallel to kids)""" - ktree: [String] + """User who triggered this event (NULL for system/automated)""" + actorId: UUID - """Payload data for this object node""" - data: JSON + """Human-readable description of the event""" + message: String - """Timestamp of object creation""" - createdAt: Datetime + """Structured context (old/new values, labels diff, etc.)""" + metadata: JSON + + """CPU usage in millicores at time of event""" + cpuMillicores: Int + + """Memory usage in bytes at time of event""" + memoryBytes: BigInt + + """Storage usage in bytes at time of event""" + storageBytes: BigInt + + """Network ingress in bytes during event window""" + networkIngressBytes: BigInt + + """Network egress in bytes during event window""" + networkEgressBytes: BigInt + + """Number of active pods in the namespace at time of event""" + podCount: Int + + """Additional resource metrics (gpu, replicas, quotas, etc.)""" + metrics: JSON + + """Database that owns this resource (database-scoped isolation)""" + databaseId: UUID } -"""The output of our update `FunctionDeploymentEvent` mutation.""" -type UpdateFunctionDeploymentEventPayload { +"""The output of our update `PlatformResource` mutation.""" +type UpdatePlatformResourcePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `FunctionDeploymentEvent` that was updated by this mutation.""" - functionDeploymentEvent: FunctionDeploymentEvent + """The `PlatformResource` that was updated by this mutation.""" + platformResource: PlatformResource """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `FunctionDeploymentEvent`. May be used by Relay 1.""" - functionDeploymentEventEdge( - """The method to use when ordering `FunctionDeploymentEvent`.""" - orderBy: [FunctionDeploymentEventOrderBy!]! = [PRIMARY_KEY_ASC] - ): FunctionDeploymentEventEdge + """An edge for our `PlatformResource`. May be used by Relay 1.""" + platformResourceEdge( + """The method to use when ordering `PlatformResource`.""" + orderBy: [PlatformResourceOrderBy!]! = [PRIMARY_KEY_ASC] + ): PlatformResourceEdge } -"""All input for the `updateFunctionDeploymentEvent` mutation.""" -input UpdateFunctionDeploymentEventInput { +"""All input for the `updatePlatformResource` mutation.""" +input UpdatePlatformResourceInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - - """Event timestamp (partition key)""" - createdAt: Datetime! - - """Unique event identifier""" id: UUID! """ - An object where the defined keys will be set on the `FunctionDeploymentEvent` being updated. + An object where the defined keys will be set on the `PlatformResource` being updated. """ - functionDeploymentEventPatch: FunctionDeploymentEventPatch! + platformResourcePatch: PlatformResourcePatch! } """ -Represents an update to a `FunctionDeploymentEvent`. Fields that are set will be updated. +Represents an update to a `PlatformResource`. Fields that are set will be updated. """ -input FunctionDeploymentEventPatch { - """Event timestamp (partition key)""" +input PlatformResourcePatch { + id: UUID createdAt: Datetime + updatedAt: Datetime + createdBy: UUID + updatedBy: UUID - """Unique event identifier""" - id: UUID + """ + Namespace this resource belongs to (security boundary, maps to K8s namespace) + """ + namespaceId: UUID - """Deployment this event belongs to""" - deploymentId: UUID + """Resource kind: Deployment, StatefulSet, Service, Ingress, Certificate""" + kind: String + + """Human-readable resource name""" + name: String + + """URL-safe identifier, unique within (namespace_id, kind)""" + slug: String """ - Event type: provisioned, scaled, failed, deactivated, redeployed, health_check + Desired state — kind-specific configuration (image, ports, resources, etc.). Opaque to DB; validated by K8s. """ - eventType: String + spec: JSON - """User who triggered this event (NULL for system/automated)""" - actorId: UUID + """ + Resource lifecycle status: pending, provisioning, active, failed, draining, deleting + """ + status: String - """Human-readable description of the event""" - message: String + """ + Observed state from K8s — populated by handlers after reconciliation (service_url, clone_url, replicas, etc.) + """ + statusObserved: JSON - """Structured context (old/new values, error details, etc.)""" - metadata: JSON + """Most recent provisioning or runtime error message""" + lastError: String - """Database that owns this resource (database-scoped isolation)""" - databaseId: UUID + """Cumulative error count for this resource""" + errorCount: Int + + """Key/value pairs for selecting and filtering resources""" + labels: JSON + + """Freeform metadata for tooling and operational notes""" + annotations: JSON + + """ + 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] + + """ + 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] + + """ + 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] + + """ + Definition template this resource was created from (NULL for standalone resources) + """ + resourceDefinitionId: UUID } -"""The output of our update `OrgFunctionExecutionLog` mutation.""" -type UpdateOrgFunctionExecutionLogPayload { +"""The output of our update `PlatformFunctionDeployment` mutation.""" +type UpdatePlatformFunctionDeploymentPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `OrgFunctionExecutionLog` that was updated by this mutation.""" - orgFunctionExecutionLog: OrgFunctionExecutionLog + """The `PlatformFunctionDeployment` that was updated by this mutation.""" + platformFunctionDeployment: PlatformFunctionDeployment """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `OrgFunctionExecutionLog`. May be used by Relay 1.""" - orgFunctionExecutionLogEdge( - """The method to use when ordering `OrgFunctionExecutionLog`.""" - orderBy: [OrgFunctionExecutionLogOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgFunctionExecutionLogEdge + """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 } -"""All input for the `updateOrgFunctionExecutionLog` mutation.""" -input UpdateOrgFunctionExecutionLogInput { +"""All input for the `updatePlatformFunctionDeployment` mutation.""" +input UpdatePlatformFunctionDeploymentInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - - """Log entry timestamp (partition key)""" - createdAt: Datetime! - - """Unique log entry identifier""" id: UUID! """ - An object where the defined keys will be set on the `OrgFunctionExecutionLog` being updated. + An object where the defined keys will be set on the `PlatformFunctionDeployment` being updated. """ - orgFunctionExecutionLogPatch: OrgFunctionExecutionLogPatch! + platformFunctionDeploymentPatch: PlatformFunctionDeploymentPatch! } """ -Represents an update to a `OrgFunctionExecutionLog`. Fields that are set will be updated. +Represents an update to a `PlatformFunctionDeployment`. Fields that are set will be updated. """ -input OrgFunctionExecutionLogPatch { - """Log entry timestamp (partition key)""" +input PlatformFunctionDeploymentPatch { + id: UUID createdAt: Datetime + updatedAt: Datetime - """Unique log entry identifier""" - id: UUID + """Target namespace for this deployment (maps to a K8s namespace)""" + namespaceId: UUID + + """ + Deployment lifecycle status: pending, provisioning, active, failed, scaled_to_zero, deactivated + """ + status: String + + """ + Knative service URL (http://{service-name}.{namespace}.svc.cluster.local) — populated after provisioning + """ + serviceUrl: String + + """ + 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 + + """Deployment revision number (incremented on each redeployment)""" + revision: Int + + """ + 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 + + """ + Handler directory name (e.g. email, document) — used as FN_HANDLER_NAME in combined-image mode to select the entry point + """ + handlerName: String + + """Max concurrent requests per pod (NULL = inherit from definition)""" + concurrency: Int + + """ + Minimum replica count (NULL = inherit from definition or Knative default) + """ + scaleMin: Int + + """ + Maximum replica count (NULL = inherit from definition or Knative default) + """ + scaleMax: Int + + """Request timeout override in seconds (NULL = inherit from definition)""" + timeoutSeconds: Int - """Invocation this log entry belongs to (NULL for standalone job logs)""" - invocationId: UUID + """ + K8s resource spec override: {"requests":{"cpu":"100m","memory":"128Mi"},"limits":{...}} + """ + resources: JSON - """Function routing key (NULL for generic job logs)""" - taskIdentifier: String + """Most recent provisioning or runtime error message""" + lastError: String - """Log severity: debug, info, warn, error""" - logLevel: String + """Timestamp of the most recent error""" + lastErrorAt: Datetime - """Log message text""" - message: String + """Cumulative error count for this deployment""" + errorCount: Int - """Structured context (labels, trace data, extra fields)""" - metadata: JSON + """Key/value pairs for selecting and filtering deployments""" + labels: JSON - """User who triggered the execution (NULL for system/cron)""" - actorId: UUID + """Freeform metadata for tooling and operational notes""" + annotations: JSON } -"""The output of our update `ResourceEvent` mutation.""" -type UpdateResourceEventPayload { +"""The output of our update `Resource` mutation.""" +type UpdateResourcePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `ResourceEvent` that was updated by this mutation.""" - resourceEvent: ResourceEvent + """The `Resource` that was updated by this mutation.""" + resource: Resource """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """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 + """An edge for our `Resource`. May be used by Relay 1.""" + resourceEdge( + """The method to use when ordering `Resource`.""" + orderBy: [ResourceOrderBy!]! = [PRIMARY_KEY_ASC] + ): ResourceEdge } -"""All input for the `updateResourceEvent` mutation.""" -input UpdateResourceEventInput { +"""All input for the `updateResource` mutation.""" +input UpdateResourceInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - - """Event timestamp (partition key)""" - createdAt: Datetime! - - """Unique event identifier""" id: UUID! """ - An object where the defined keys will be set on the `ResourceEvent` being updated. + An object where the defined keys will be set on the `Resource` being updated. """ - resourceEventPatch: ResourceEventPatch! + resourcePatch: ResourcePatch! } """ -Represents an update to a `ResourceEvent`. Fields that are set will be updated. +Represents an update to a `Resource`. Fields that are set will be updated. """ -input ResourceEventPatch { - """Event timestamp (partition key)""" +input ResourcePatch { + id: UUID createdAt: Datetime + updatedAt: Datetime + createdBy: UUID + updatedBy: UUID - """Unique event identifier""" - id: UUID + """ + Namespace this resource belongs to (security boundary, maps to K8s namespace) + """ + namespaceId: UUID - """Resource this event belongs to""" - resourceId: UUID + """Resource kind: Deployment, StatefulSet, Service, Ingress, Certificate""" + kind: String + + """Human-readable resource name""" + name: String + + """URL-safe identifier, unique within (namespace_id, kind)""" + slug: String """ - Event type: provisioned, provisioning, updated, failed, deprovisioned, health_check + Desired state — kind-specific configuration (image, ports, resources, etc.). Opaque to DB; validated by K8s. """ - eventType: String + spec: JSON - """User who triggered this event (NULL for system/automated)""" - actorId: UUID + """ + Resource lifecycle status: pending, provisioning, active, failed, draining, deleting + """ + status: String - """Human-readable description of the event""" - message: String + """ + Observed state from K8s — populated by handlers after reconciliation (service_url, clone_url, replicas, etc.) + """ + statusObserved: JSON - """Structured context (old/new values, error details, etc.)""" - metadata: JSON + """Most recent provisioning or runtime error message""" + lastError: String + + """Cumulative error count for this resource""" + errorCount: Int + + """Key/value pairs for selecting and filtering resources""" + labels: JSON + + """Freeform metadata for tooling and operational notes""" + annotations: JSON """Database that owns this resource (database-scoped isolation)""" databaseId: UUID + + """ + 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] + + """ + 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] + + """ + 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] + + """ + Definition template this resource was created from (NULL for standalone resources) + """ + resourceDefinitionId: UUID } -"""The output of our update `FunctionGraphExecutionOutput` mutation.""" -type UpdateFunctionGraphExecutionOutputPayload { +"""The output of our update `PlatformResourceDefinition` mutation.""" +type UpdatePlatformResourceDefinitionPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `FunctionGraphExecutionOutput` that was updated by this mutation.""" - functionGraphExecutionOutput: FunctionGraphExecutionOutput + """The `PlatformResourceDefinition` that was updated by this mutation.""" + platformResourceDefinition: PlatformResourceDefinition """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """ - An edge for our `FunctionGraphExecutionOutput`. May be used by Relay 1. - """ - functionGraphExecutionOutputEdge( - """The method to use when ordering `FunctionGraphExecutionOutput`.""" - orderBy: [FunctionGraphExecutionOutputOrderBy!]! = [PRIMARY_KEY_ASC] - ): FunctionGraphExecutionOutputEdge + """An edge for our `PlatformResourceDefinition`. May be used by Relay 1.""" + platformResourceDefinitionEdge( + """The method to use when ordering `PlatformResourceDefinition`.""" + orderBy: [PlatformResourceDefinitionOrderBy!]! = [PRIMARY_KEY_ASC] + ): PlatformResourceDefinitionEdge } -"""All input for the `updateFunctionGraphExecutionOutput` mutation.""" -input UpdateFunctionGraphExecutionOutputInput { +"""All input for the `updatePlatformResourceDefinition` mutation.""" +input UpdatePlatformResourceDefinitionInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - - """Timestamp of output creation""" - createdAt: Datetime! - - """Unique execution output identifier""" id: UUID! """ - An object where the defined keys will be set on the `FunctionGraphExecutionOutput` being updated. + An object where the defined keys will be set on the `PlatformResourceDefinition` being updated. """ - functionGraphExecutionOutputPatch: FunctionGraphExecutionOutputPatch! + platformResourceDefinitionPatch: PlatformResourceDefinitionPatch! } """ -Represents an update to a `FunctionGraphExecutionOutput`. Fields that are set will be updated. +Represents an update to a `PlatformResourceDefinition`. Fields that are set will be updated. """ -input FunctionGraphExecutionOutputPatch { - """Timestamp of output creation""" +input PlatformResourceDefinitionPatch { + id: UUID createdAt: Datetime + updatedAt: Datetime + createdBy: UUID + updatedBy: UUID - """Unique execution output identifier""" - id: UUID + """ + Namespace this definition belongs to (security boundary, maps to K8s namespace) + """ + namespaceId: UUID - """Scope for multi-tenant isolation""" - databaseId: UUID + """ + Resource kind: Deployment, StatefulSet, Service, Ingress, Certificate, or custom kinds + """ + kind: String - """SHA-256 hash of the data JSONB — content-addressed deduplication""" - hash: Base64EncodedBinary + """Human-readable definition name""" + name: String - """The actual output payload from a completed node""" - data: JSON + """URL-safe identifier, unique within (namespace_id, kind)""" + slug: String + + """What this resource definition provides""" + description: String + + """Template spec for creating resource instances of this kind""" + defaultSpec: JSON + + """ + Embedded secret requirements: array of (name, required, provider) tuples. provider is the integration slug this requirement belongs to, if any. + """ + requiredSecrets: [ResourceRequirementInput] + + """ + Embedded config requirements: array of (name, required, provider) tuples. provider is the integration slug this requirement belongs to, if any. + """ + requiredConfigs: [ResourceRequirementInput] + + """ + 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] + + """Key/value pairs for selecting and filtering definitions""" + labels: JSON + + """Freeform metadata for tooling and operational notes""" + annotations: JSON + + """ + Min age before DELETE of a resource of this kind requires step-up; NULL inherits the 6h default + """ + stepUpMinAge: IntervalInput } -"""The output of our update `FunctionGraphCommit` mutation.""" -type UpdateFunctionGraphCommitPayload { +"""The output of our update `FunctionDeployment` mutation.""" +type UpdateFunctionDeploymentPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `FunctionGraphCommit` that was updated by this mutation.""" - functionGraphCommit: FunctionGraphCommit + """The `FunctionDeployment` that was updated by this mutation.""" + functionDeployment: FunctionDeployment """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `FunctionGraphCommit`. May be used by Relay 1.""" - functionGraphCommitEdge( - """The method to use when ordering `FunctionGraphCommit`.""" - orderBy: [FunctionGraphCommitOrderBy!]! = [PRIMARY_KEY_ASC] - ): FunctionGraphCommitEdge + """An edge for our `FunctionDeployment`. May be used by Relay 1.""" + functionDeploymentEdge( + """The method to use when ordering `FunctionDeployment`.""" + orderBy: [FunctionDeploymentOrderBy!]! = [PRIMARY_KEY_ASC] + ): FunctionDeploymentEdge } -"""All input for the `updateFunctionGraphCommit` mutation.""" -input UpdateFunctionGraphCommitInput { +"""All input for the `updateFunctionDeployment` mutation.""" +input UpdateFunctionDeploymentInput { """ An arbitrary 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! - """Database scope for multi-tenant isolation""" - databaseId: UUID! - """ - An object where the defined keys will be set on the `FunctionGraphCommit` being updated. + An object where the defined keys will be set on the `FunctionDeployment` being updated. """ - functionGraphCommitPatch: FunctionGraphCommitPatch! + functionDeploymentPatch: FunctionDeploymentPatch! } """ -Represents an update to a `FunctionGraphCommit`. Fields that are set will be updated. +Represents an update to a `FunctionDeployment`. Fields that are set will be updated. """ -input FunctionGraphCommitPatch { - """Unique commit identifier""" +input FunctionDeploymentPatch { id: UUID + createdAt: Datetime + updatedAt: Datetime - """Optional commit message""" - message: String - - """Database scope for multi-tenant isolation""" - databaseId: UUID - - """Store this commit belongs to""" - storeId: UUID - - """Parent commit IDs (supports merge commits)""" - parentIds: [UUID] + """Target namespace for this deployment (maps to a K8s namespace)""" + namespaceId: UUID - """User who authored the changes""" - authorId: UUID + """ + Deployment lifecycle status: pending, provisioning, active, failed, scaled_to_zero, deactivated + """ + status: String - """User who committed (may differ from author)""" - committerId: UUID + """ + Knative service URL (http://{service-name}.{namespace}.svc.cluster.local) — populated after provisioning + """ + serviceUrl: String - """Root object ID of the tree snapshot at this commit""" - treeId: 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 - """Commit timestamp""" - date: Datetime -} + """Deployment revision number (incremented on each redeployment)""" + revision: Int -"""The output of our update `SecretDefinition` mutation.""" -type UpdateSecretDefinitionPayload { """ - 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 - """The `SecretDefinition` that was updated by this mutation.""" - secretDefinition: SecretDefinition + """Image tag/version for the handler container (e.g. latest, 2.6.4)""" + imageVersion: String """ - 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 + handlerName: String - """An edge for our `SecretDefinition`. May be used by Relay 1.""" - secretDefinitionEdge( - """The method to use when ordering `SecretDefinition`.""" - orderBy: [SecretDefinitionOrderBy!]! = [PRIMARY_KEY_ASC] - ): SecretDefinitionEdge -} + """Max concurrent requests per pod (NULL = inherit from definition)""" + concurrency: Int -"""All input for the `updateSecretDefinition` mutation.""" -input UpdateSecretDefinitionInput { """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. + Minimum replica count (NULL = inherit from definition or Knative default) """ - clientMutationId: String - id: UUID! + scaleMin: Int """ - An object where the defined keys will be set on the `SecretDefinition` being updated. + Maximum replica count (NULL = inherit from definition or Knative default) """ - secretDefinitionPatch: SecretDefinitionPatch! -} - -""" -Represents an update to a `SecretDefinition`. Fields that are set will be updated. -""" -input SecretDefinitionPatch { - id: UUID - createdAt: Datetime - updatedAt: Datetime - - """Secret name (must match app_secrets.name for resolution)""" - name: String + scaleMax: Int - """Human-readable description of what this secret is used for""" - description: String + """Request timeout override in seconds (NULL = inherit from definition)""" + timeoutSeconds: Int """ - Whether this row was seeded as a built-in secret definition. Built-in rows are immutable. + K8s resource spec override: {"requests":{"cpu":"100m","memory":"128Mi"},"limits":{...}} """ - isBuiltIn: Boolean + resources: JSON + + """Most recent provisioning or runtime error message""" + lastError: String + + """Timestamp of the most recent error""" + lastErrorAt: Datetime + + """Cumulative error count for this deployment""" + errorCount: Int - """Key-value metadata for filtering and grouping secret definitions""" + """Key/value pairs for selecting and filtering deployments""" labels: JSON - """Freeform metadata annotations for secret definitions""" + """Freeform metadata for tooling and operational notes""" annotations: JSON """Database that owns this resource (database-scoped isolation)""" databaseId: UUID } -"""The output of our update `FunctionExecutionLog` mutation.""" -type UpdateFunctionExecutionLogPayload { +"""The output of our update `ResourceDefinition` mutation.""" +type UpdateResourceDefinitionPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `FunctionExecutionLog` that was updated by this mutation.""" - functionExecutionLog: FunctionExecutionLog + """The `ResourceDefinition` that was updated by this mutation.""" + resourceDefinition: ResourceDefinition """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `FunctionExecutionLog`. May be used by Relay 1.""" - functionExecutionLogEdge( - """The method to use when ordering `FunctionExecutionLog`.""" - orderBy: [FunctionExecutionLogOrderBy!]! = [PRIMARY_KEY_ASC] - ): FunctionExecutionLogEdge + """An edge for our `ResourceDefinition`. May be used by Relay 1.""" + resourceDefinitionEdge( + """The method to use when ordering `ResourceDefinition`.""" + orderBy: [ResourceDefinitionOrderBy!]! = [PRIMARY_KEY_ASC] + ): ResourceDefinitionEdge } -"""All input for the `updateFunctionExecutionLog` mutation.""" -input UpdateFunctionExecutionLogInput { +"""All input for the `updateResourceDefinition` mutation.""" +input UpdateResourceDefinitionInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - - """Log entry timestamp (partition key)""" - createdAt: Datetime! - - """Unique log entry identifier""" id: UUID! """ - An object where the defined keys will be set on the `FunctionExecutionLog` being updated. + An object where the defined keys will be set on the `ResourceDefinition` being updated. """ - functionExecutionLogPatch: FunctionExecutionLogPatch! + resourceDefinitionPatch: ResourceDefinitionPatch! } """ -Represents an update to a `FunctionExecutionLog`. Fields that are set will be updated. +Represents an update to a `ResourceDefinition`. Fields that are set will be updated. """ -input FunctionExecutionLogPatch { - """Log entry timestamp (partition key)""" +input ResourceDefinitionPatch { + id: UUID createdAt: Datetime + updatedAt: Datetime + createdBy: UUID + updatedBy: UUID - """Unique log entry identifier""" - id: UUID + """ + Namespace this definition belongs to (security boundary, maps to K8s namespace) + """ + namespaceId: UUID - """Invocation this log entry belongs to (NULL for standalone job logs)""" - invocationId: UUID + """ + Resource kind: Deployment, StatefulSet, Service, Ingress, Certificate, or custom kinds + """ + kind: String - """Function routing key (NULL for generic job logs)""" - taskIdentifier: String + """Human-readable definition name""" + name: String - """Log severity: debug, info, warn, error""" - logLevel: String + """URL-safe identifier, unique within (namespace_id, kind)""" + slug: String - """Log message text""" - message: String + """What this resource definition provides""" + description: String - """Structured context (labels, trace data, extra fields)""" - metadata: JSON + """Template spec for creating resource instances of this kind""" + defaultSpec: JSON - """User who triggered the execution (NULL for system/cron)""" - actorId: UUID + """ + Embedded secret requirements: array of (name, required, provider) tuples. provider is the integration slug this requirement belongs to, if any. + """ + requiredSecrets: [ResourceRequirementInput] + + """ + Embedded config requirements: array of (name, required, provider) tuples. provider is the integration slug this requirement belongs to, if any. + """ + requiredConfigs: [ResourceRequirementInput] + + """ + 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] + + """Key/value pairs for selecting and filtering definitions""" + labels: JSON + + """Freeform metadata for tooling and operational notes""" + annotations: JSON + + """ + Min age before DELETE of a resource of this kind requires step-up; NULL inherits the 6h default + """ + stepUpMinAge: IntervalInput """Database that owns this resource (database-scoped isolation)""" databaseId: UUID } -"""The output of our update `FunctionGraph` mutation.""" -type UpdateFunctionGraphPayload { +"""The output of our update `FunctionGraphExecution` mutation.""" +type UpdateFunctionGraphExecutionPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `FunctionGraph` that was updated by this mutation.""" - functionGraph: FunctionGraph + """The `FunctionGraphExecution` that was updated by this mutation.""" + functionGraphExecution: FunctionGraphExecution """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `FunctionGraph`. May be used by Relay 1.""" - functionGraphEdge( - """The method to use when ordering `FunctionGraph`.""" - orderBy: [FunctionGraphOrderBy!]! = [PRIMARY_KEY_ASC] - ): FunctionGraphEdge + """An edge for our `FunctionGraphExecution`. May be used by Relay 1.""" + functionGraphExecutionEdge( + """The method to use when ordering `FunctionGraphExecution`.""" + orderBy: [FunctionGraphExecutionOrderBy!]! = [PRIMARY_KEY_ASC] + ): FunctionGraphExecutionEdge } -"""All input for the `updateFunctionGraph` mutation.""" -input UpdateFunctionGraphInput { +"""All input for the `updateFunctionGraphExecution` mutation.""" +input UpdateFunctionGraphExecutionInput { """ An arbitrary 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 graph identifier""" + """Execution start timestamp""" + startedAt: Datetime! + + """Unique execution identifier""" id: UUID! """ - An object where the defined keys will be set on the `FunctionGraph` being updated. + An object where the defined keys will be set on the `FunctionGraphExecution` being updated. """ - functionGraphPatch: FunctionGraphPatch! + functionGraphExecutionPatch: FunctionGraphExecutionPatch! } """ -Represents an update to a `FunctionGraph`. Fields that are set will be updated. +Represents an update to a `FunctionGraphExecution`. Fields that are set will be updated. """ -input FunctionGraphPatch { - """Unique graph identifier""" - id: UUID - - """Database scope for multi-tenant isolation""" - databaseId: UUID - - """Graph store (Merkle store) holding the graph definition""" - storeId: UUID - - """Evaluator/runtime context (function, js, sql, system)""" - context: String - - """Graph name (unique per database)""" - name: String +input FunctionGraphExecutionPatch { + """Execution start timestamp""" + startedAt: Datetime - """Human-readable description of the graph""" - description: String + """Unique execution identifier""" + id: UUID - """Pinned definitions store commit for deterministic evaluation""" - definitionsCommitId: UUID + """FK to the graph definition being executed""" + graphId: UUID - """Whether graph passes structural validation""" - isValid: Boolean + """Parent function_invocations row (for metering)""" + invocationId: UUID - """Array of validation error objects when is_valid = false""" - validationErrors: JSON + """Opaque store partition key for the global tier""" + scopeId: UUID - """Actor who created this graph""" - createdBy: UUID + """ + Target output boundary node name to resolve; NULL derives completion from the graph's graphOutput nodes + """ + outputNode: String - """Timestamp of graph creation""" - createdAt: Datetime + """Target output port name (default: value)""" + outputPort: String - """Timestamp of last modification""" - updatedAt: Datetime -} + """Lifecycle: pending → running → completed/failed/cancelled""" + status: String -"""The output of our update `FunctionGraphExecutionNodeState` mutation.""" -type UpdateFunctionGraphExecutionNodeStatePayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String + """Initial inputs provided at invocation time""" + inputPayload: JSON - """ - The `FunctionGraphExecutionNodeState` that was updated by this mutation. - """ - functionGraphExecutionNodeState: FunctionGraphExecutionNodeState + """Final result extracted from terminal output node""" + outputPayload: JSON """ - 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 - """ - 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 -} + """Pre-computed topological sort as array of wave objects""" + executionPlan: JSON -"""All input for the `updateFunctionGraphExecutionNodeState` mutation.""" -input UpdateFunctionGraphExecutionNodeStateInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String + """Index into execution_plan — tick only processes this wave""" + currentWave: Int - """Timestamp of node state creation (partition key)""" - createdAt: Datetime! + """Parent execution when this is a sub-execution""" + parentExecutionId: UUID - """Unique node state identifier""" - id: UUID! + """Node name in parent execution that spawned this sub-execution""" + parentNodeName: String - """ - An object where the defined keys will be set on the `FunctionGraphExecutionNodeState` being updated. - """ - functionGraphExecutionNodeStatePatch: FunctionGraphExecutionNodeStatePatch! -} + """Pinned definitions store commit for deterministic evaluation""" + definitionsCommitId: UUID -""" -Represents an update to a `FunctionGraphExecutionNodeState`. Fields that are set will be updated. -""" -input FunctionGraphExecutionNodeStatePatch { - """Timestamp of node state creation (partition key)""" - createdAt: Datetime + """Number of evaluate_step ticks executed""" + tickCount: Int - """Unique node state identifier""" - id: UUID + """Execution completion timestamp""" + completedAt: Datetime - """FK to the parent graph execution""" - executionId: UUID + """Maximum ticks before execution is failed (default 100)""" + maxTicks: Int - """Scope for multi-tenant isolation""" - databaseId: UUID + """Maximum pending jobs before execution is failed (default 50)""" + maxPendingJobs: Int - """Name of the node within the graph (e.g. send-email1)""" - nodeName: String + """Absolute deadline — execution fails if still running after this time""" + timeoutAt: Datetime """ - Full merkle tree path to this node (e.g. {function,graphs,myflow,nodes,send-email1}) — enables subnet hierarchy tracking + Timestamp of the last real progress (node enqueue, node output, completion) — drives the activity-debounced watchdog """ - nodePath: [String] - - """Node lifecycle: pending → queued → running → completed/failed""" - status: String - - """Timestamp when the node began executing""" - startedAt: Datetime - - """Timestamp when the node finished (success or failure)""" - completedAt: Datetime + lastProgressAt: Datetime """Machine-readable error code when status = failed""" errorCode: String """Human-readable error description when status = failed""" errorMessage: String - - """FK to execution_outputs — content-addressed output blob for this node""" - outputId: UUID } -"""The output of our update `PlatformNamespace` mutation.""" -type UpdatePlatformNamespacePayload { +"""The output of our update `PlatformFunctionDefinition` mutation.""" +type UpdatePlatformFunctionDefinitionPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `PlatformNamespace` that was updated by this mutation.""" - platformNamespace: PlatformNamespace + """The `PlatformFunctionDefinition` that was updated by this mutation.""" + platformFunctionDefinition: PlatformFunctionDefinition """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `PlatformNamespace`. May be used by Relay 1.""" - platformNamespaceEdge( - """The method to use when ordering `PlatformNamespace`.""" - orderBy: [PlatformNamespaceOrderBy!]! = [PRIMARY_KEY_ASC] - ): PlatformNamespaceEdge + """An edge for our `PlatformFunctionDefinition`. May be used by Relay 1.""" + platformFunctionDefinitionEdge( + """The method to use when ordering `PlatformFunctionDefinition`.""" + orderBy: [PlatformFunctionDefinitionOrderBy!]! = [PRIMARY_KEY_ASC] + ): PlatformFunctionDefinitionEdge } -"""All input for the `updatePlatformNamespace` mutation.""" -input UpdatePlatformNamespaceInput { +"""All input for the `updatePlatformFunctionDefinition` mutation.""" +input UpdatePlatformFunctionDefinitionInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -8423,1084 +16851,1193 @@ input UpdatePlatformNamespaceInput { id: UUID! """ - An object where the defined keys will be set on the `PlatformNamespace` being updated. + An object where the defined keys will be set on the `PlatformFunctionDefinition` being updated. """ - platformNamespacePatch: PlatformNamespacePatch! + platformFunctionDefinitionPatch: PlatformFunctionDefinitionPatch! } """ -Represents an update to a `PlatformNamespace`. Fields that are set will be updated. +Represents an update to a `PlatformFunctionDefinition`. Fields that are set will be updated. """ -input PlatformNamespacePatch { +input PlatformFunctionDefinitionPatch { id: UUID createdAt: Datetime updatedAt: Datetime - """Human-readable namespace name (e.g. default, production, oauth)""" + """Function grouping scope (e.g. email, embed, chunk, custom)""" + scope: String + + """ + Function name within scope (e.g. send_verification_link, process_file_embedding) + """ name: String """ - Globally unique computed namespace identifier via inflection.underscore + Computed routing slug: scope:name (used by Knative job worker for dispatch) """ - namespaceName: String + taskIdentifier: String - """Optional human-readable description of this namespace""" + """Human-readable description of what this function does""" description: String - """Whether this namespace is active (soft-disable for filtering)""" - isActive: Boolean + """ + Whether this function definition is published to the public catalog for direct authenticated invocation. Default false = internal-only via add_job() + """ + isPublished: Boolean - """Key/value pairs for selecting and filtering namespaces""" - labels: JSON + """ + Non-public invocation channels this function may be exposed through (api, graph). Internal job dispatch is implicit and never listed. Default [] = job worker only. + """ + accessChannels: [String] - """Freeform metadata for tooling and operational notes""" - annotations: JSON + """ + Timestamp when this function was published. NULL means immediately published when is_published is true; future timestamps delay public visibility + """ + publishedAt: Datetime - """Database that owns this resource (database-scoped isolation)""" - databaseId: UUID + """Maximum retry attempts for the underlying job""" + maxAttempts: Int + + """Job priority (lower = higher priority)""" + priority: Int + + """Job queue name for serialization (e.g. email, ai, default)""" + queueName: String + + """ + Execution mode: http (Knative Service dispatch), inline (in-process in compute worker), handler (registered infrastructure handler), or sql (generic SQL dispatch via a trusted direct target or module-resolved function names) + """ + runtime: String """ - Database that created this namespace (NULL for platform-native namespaces) + Schema of the SQL function to invoke when runtime=sql (direct mode). NULL for module mode and other runtimes. """ - sourceDatabaseId: UUID + targetSchema: String """ - Origin scope: platform, org, app — indicates where this namespace was created + Name of the SQL function to invoke when runtime=sql (direct mode). NULL for module mode and other runtimes. """ - sourceScope: String + targetFunction: String """ - true = created by a child scope mirror trigger, false = platform-native + 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. """ - isManaged: Boolean + moduleTable: 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 + + """ + Ordered bind-parameter mapping for runtime=sql: [{name, type}]. payload[name] is bound as $n::type. + """ + payloadArgs: JSON + + """ + Docker image reference (e.g. ghcr.io/constructive-io/email-send-fn:latest). Required when runtime=http. NULL for inline functions. + """ + image: String + + """ + Knative containerConcurrency — max concurrent requests per pod instance + """ + concurrency: Int + + """Minimum pod count for Knative autoscaling (minScale)""" + scaleMin: Int + + """Maximum pod count for Knative autoscaling (maxScale)""" + scaleMax: Int + + """Knative request timeout in seconds""" + timeoutSeconds: Int + + """ + Container resource requests and limits: {requests: {memory, cpu}, limits: {memory, cpu}} + """ + resources: JSON + + """ + Whether this function is a built-in platform function (synced from platform) vs user-created + """ + isBuiltIn: Boolean + + """ + Embedded secret requirements: array of (name, required, provider) tuples. provider is the integration slug this requirement belongs to, if any. + """ + requiredSecrets: [ResourceRequirementInput] + + """ + Embedded config requirements: array of (name, required, provider) tuples. provider is the integration slug this requirement belongs to, if any. + """ + 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. + """ + integrations: [String] + + """ + Bucket keys this function needs (e.g. uploads, exports). Empty = no bucket requirements. + """ + requiredBuckets: [String] + + """ + Inference model whitelist (e.g. gpt-4o, claude-3). Empty = no model requirements. + """ + requiredModels: [String] + + """ + Data input ports: [{name, type, description?, optional?, multi?, schema?}] + """ + inputs: JSON + + """ + Data output ports: [{name, type, description?, optional?, multi?, schema?}] + """ + outputs: JSON + + """ + Configuration properties: [{name, type, default?, description?, required?, schema?}] + """ + props: JSON + + """ + Whether this function has side effects and cannot be cached or memoized + """ + volatile: Boolean + + """Icon identifier for UI palette rendering (e.g. mail, database, code)""" + icon: String + + """Palette grouping category (e.g. email, data, ai, custom)""" + category: String } -"""The output of our update `OrgFunctionInvocation` mutation.""" -type UpdateOrgFunctionInvocationPayload { +"""The output of our update `FunctionDefinition` mutation.""" +type UpdateFunctionDefinitionPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `OrgFunctionInvocation` that was updated by this mutation.""" - orgFunctionInvocation: OrgFunctionInvocation + """The `FunctionDefinition` that was updated by this mutation.""" + functionDefinition: FunctionDefinition """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `OrgFunctionInvocation`. May be used by Relay 1.""" - orgFunctionInvocationEdge( - """The method to use when ordering `OrgFunctionInvocation`.""" - orderBy: [OrgFunctionInvocationOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgFunctionInvocationEdge + """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 } -"""All input for the `updateOrgFunctionInvocation` mutation.""" -input UpdateOrgFunctionInvocationInput { +"""All input for the `updateFunctionDefinition` mutation.""" +input UpdateFunctionDefinitionInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - - """Invocation creation timestamp (partition key)""" - createdAt: Datetime! - - """Unique invocation identifier""" id: UUID! """ - An object where the defined keys will be set on the `OrgFunctionInvocation` being updated. + An object where the defined keys will be set on the `FunctionDefinition` being updated. """ - orgFunctionInvocationPatch: OrgFunctionInvocationPatch! + functionDefinitionPatch: FunctionDefinitionPatch! } """ -Represents an update to a `OrgFunctionInvocation`. Fields that are set will be updated. +Represents an update to a `FunctionDefinition`. Fields that are set will be updated. """ -input OrgFunctionInvocationPatch { - """Invocation creation timestamp (partition key)""" +input FunctionDefinitionPatch { + id: UUID createdAt: Datetime + updatedAt: Datetime - """Unique invocation identifier""" - id: UUID + """Function grouping scope (e.g. email, embed, chunk, custom)""" + scope: String - """Who triggered the invocation (NULL for system/cron)""" - actorId: UUID + """ + Function name within scope (e.g. send_verification_link, process_file_embedding) + """ + name: String """ - Function routing slug (scope:name). Links to function_definitions.task_identifier by convention — no FK. + Computed routing slug: scope:name (used by Knative job worker for dispatch) """ taskIdentifier: String - """Function input payload""" - payload: JSON + """Human-readable description of what this function does""" + description: String - """Lifecycle: pending → running → completed/failed/cancelled""" - status: String + """ + Whether this function definition is published to the public catalog for direct authenticated invocation. Default false = internal-only via add_job() + """ + isPublished: Boolean - """Function return value (success) or structured error (failure)""" - result: JSON + """ + Non-public invocation channels this function may be exposed through (api, graph). Internal job dispatch is implicit and never listed. Default [] = job worker only. + """ + accessChannels: [String] - """Error message when status is failed""" - error: String + """ + Timestamp when this function was published. NULL means immediately published when is_published is true; future timestamps delay public visibility + """ + publishedAt: Datetime - """Wall-clock execution time in milliseconds""" - durationMs: Int + """Maximum retry attempts for the underlying job""" + maxAttempts: Int - """FK to app_jobs.jobs — the underlying transport""" - jobId: BigInt + """Job priority (lower = higher priority)""" + priority: Int - """When execution started""" - startedAt: Datetime + """Job queue name for serialization (e.g. email, ai, default)""" + queueName: String - """When execution completed""" - completedAt: Datetime + """ + Execution mode: http (Knative Service dispatch), inline (in-process in compute worker), handler (registered infrastructure handler), or sql (generic SQL dispatch via a trusted direct target or module-resolved function names) + """ + runtime: String - """Parent invocation when this is a child node of a flow graph execution""" - parentInvocationId: UUID + """ + Schema of the SQL function to invoke when runtime=sql (direct mode). NULL for module mode and other runtimes. + """ + targetSchema: String - """Groups all node invocations from a single flow graph execution""" - graphExecutionId: UUID -} + """ + Name of the SQL function to invoke when runtime=sql (direct mode). NULL for module mode and other runtimes. + """ + targetFunction: String -"""The output of our update `FunctionInvocation` mutation.""" -type UpdateFunctionInvocationPayload { """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. + 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. """ - clientMutationId: String + moduleTable: String - """The `FunctionInvocation` that was updated by this mutation.""" - functionInvocation: FunctionInvocation + """ + 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 """ - Our root query field type. Allows us to run any query from our mutation payload. + Ordered bind-parameter mapping for runtime=sql: [{name, type}]. payload[name] is bound as $n::type. """ - query: Query + payloadArgs: JSON - """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 -} + """ + Docker image reference (e.g. ghcr.io/constructive-io/email-send-fn:latest). Required when runtime=http. NULL for inline functions. + """ + image: String -"""All input for the `updateFunctionInvocation` mutation.""" -input UpdateFunctionInvocationInput { """ - 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 containerConcurrency — max concurrent requests per pod instance """ - clientMutationId: String + concurrency: Int - """Invocation creation timestamp (partition key)""" - createdAt: Datetime! + """Minimum pod count for Knative autoscaling (minScale)""" + scaleMin: Int - """Unique invocation identifier""" - id: UUID! + """Maximum pod count for Knative autoscaling (maxScale)""" + scaleMax: Int + + """Knative request timeout in seconds""" + timeoutSeconds: Int """ - An object where the defined keys will be set on the `FunctionInvocation` being updated. + Container resource requests and limits: {requests: {memory, cpu}, limits: {memory, cpu}} """ - functionInvocationPatch: FunctionInvocationPatch! -} - -""" -Represents an update to a `FunctionInvocation`. Fields that are set will be updated. -""" -input FunctionInvocationPatch { - """Invocation creation timestamp (partition key)""" - createdAt: Datetime - - """Unique invocation identifier""" - id: UUID + resources: JSON - """Who triggered the invocation (NULL for system/cron)""" - actorId: UUID + """ + Whether this function is a built-in platform function (synced from platform) vs user-created + """ + isBuiltIn: Boolean - """Database that owns this resource (database-scoped isolation)""" - databaseId: UUID + """ + Embedded secret requirements: array of (name, required, provider) tuples. provider is the integration slug this requirement belongs to, if any. + """ + requiredSecrets: [ResourceRequirementInput] """ - Function routing slug (scope:name). Links to function_definitions.task_identifier by convention — no FK. + Embedded config requirements: array of (name, required, provider) tuples. provider is the integration slug this requirement belongs to, if any. """ - taskIdentifier: String + requiredConfigs: [ResourceRequirementInput] - """Function input payload""" - payload: 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] - """Lifecycle: pending → running → completed/failed/cancelled""" - status: String + """ + Bucket keys this function needs (e.g. uploads, exports). Empty = no bucket requirements. + """ + requiredBuckets: [String] - """Function return value (success) or structured error (failure)""" - result: JSON + """ + Inference model whitelist (e.g. gpt-4o, claude-3). Empty = no model requirements. + """ + requiredModels: [String] - """Error message when status is failed""" - error: String + """ + Data input ports: [{name, type, description?, optional?, multi?, schema?}] + """ + inputs: JSON - """Wall-clock execution time in milliseconds""" - durationMs: Int + """ + Data output ports: [{name, type, description?, optional?, multi?, schema?}] + """ + outputs: JSON - """FK to app_jobs.jobs — the underlying transport""" - jobId: BigInt + """ + Configuration properties: [{name, type, default?, description?, required?, schema?}] + """ + props: JSON - """When execution started""" - startedAt: Datetime + """ + Whether this function has side effects and cannot be cached or memoized + """ + volatile: Boolean - """When execution completed""" - completedAt: Datetime + """Icon identifier for UI palette rendering (e.g. mail, database, code)""" + icon: String - """Parent invocation when this is a child node of a flow graph execution""" - parentInvocationId: UUID + """Palette grouping category (e.g. email, data, ai, custom)""" + category: String - """Groups all node invocations from a single flow graph execution""" - graphExecutionId: UUID + """Database that owns this resource (database-scoped isolation)""" + databaseId: UUID } -"""The output of our update `Resource` mutation.""" -type UpdateResourcePayload { +"""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 - """The `Resource` that was updated by this mutation.""" - resource: Resource + """The `InfraRef` that was deleted by this mutation.""" + infraRef: InfraRef """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """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 + """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 } -"""All input for the `updateResource` mutation.""" -input UpdateResourceInput { +"""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 + + """Unique ref identifier""" id: UUID! - """ - An object where the defined keys will be set on the `Resource` being updated. - """ - resourcePatch: ResourcePatch! + """Opaque store partition key for the global tier""" + scopeId: UUID! } -""" -Represents an update to a `Resource`. Fields that are set will be updated. -""" -input ResourcePatch { - id: UUID - createdAt: Datetime - updatedAt: Datetime - createdBy: UUID - updatedBy: UUID - +"""The output of our delete `InfraStore` mutation.""" +type DeleteInfraStorePayload { """ - Namespace this resource belongs to (security boundary, maps to K8s namespace) + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. """ - namespaceId: UUID - - """Resource kind: Deployment, StatefulSet, Service, Ingress, Certificate""" - kind: String - - """Human-readable resource name""" - name: String + clientMutationId: String - """URL-safe identifier, unique within (namespace_id, kind)""" - slug: String + """The `InfraStore` that was deleted by this mutation.""" + infraStore: InfraStore """ - Desired state — kind-specific configuration (image, ports, resources, etc.). Opaque to DB; validated by K8s. + Our root query field type. Allows us to run any query from our mutation payload. """ - spec: JSON + query: Query - """ - Resource lifecycle status: pending, provisioning, active, failed, draining, deleting - """ - status: String + """An edge for our `InfraStore`. May be used by Relay 1.""" + infraStoreEdge( + """The method to use when ordering `InfraStore`.""" + orderBy: [InfraStoreOrderBy!]! = [PRIMARY_KEY_ASC] + ): InfraStoreEdge +} +"""All input for the `deleteInfraStore` mutation.""" +input DeleteInfraStoreInput { """ - Observed state from K8s — populated by handlers after reconciliation (service_url, clone_url, replicas, 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. """ - statusObserved: JSON - - """Most recent provisioning or runtime error message""" - lastError: String - - """Cumulative error count for this resource""" - errorCount: Int - - """Key/value pairs for selecting and filtering resources""" - labels: JSON - - """Freeform metadata for tooling and operational notes""" - annotations: JSON + clientMutationId: String - """Database that owns this resource (database-scoped isolation)""" - databaseId: UUID + """Unique store identifier""" + id: UUID! } -"""The output of our update `PlatformNamespaceEvent` mutation.""" -type UpdatePlatformNamespaceEventPayload { +"""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 - """The `PlatformNamespaceEvent` that was updated by this mutation.""" - platformNamespaceEvent: PlatformNamespaceEvent + """The `FunctionApiBinding` that was deleted by this mutation.""" + functionApiBinding: FunctionApiBinding """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `PlatformNamespaceEvent`. May be used by Relay 1.""" - platformNamespaceEventEdge( - """The method to use when ordering `PlatformNamespaceEvent`.""" - orderBy: [PlatformNamespaceEventOrderBy!]! = [PRIMARY_KEY_ASC] - ): PlatformNamespaceEventEdge + """An edge for our `FunctionApiBinding`. May be used by Relay 1.""" + functionApiBindingEdge( + """The method to use when ordering `FunctionApiBinding`.""" + orderBy: [FunctionApiBindingOrderBy!]! = [PRIMARY_KEY_ASC] + ): FunctionApiBindingEdge } -"""All input for the `updatePlatformNamespaceEvent` mutation.""" -input UpdatePlatformNamespaceEventInput { +"""All input for the `deleteFunctionApiBinding` mutation.""" +input DeleteFunctionApiBindingInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - - """Event timestamp (partition key)""" - createdAt: Datetime! - - """Unique event identifier""" id: UUID! +} +"""The output of our delete `FunctionGraphRef` mutation.""" +type DeleteFunctionGraphRefPayload { """ - An object where the defined keys will be set on the `PlatformNamespaceEvent` being updated. + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. """ - platformNamespaceEventPatch: PlatformNamespaceEventPatch! -} - -""" -Represents an update to a `PlatformNamespaceEvent`. Fields that are set will be updated. -""" -input PlatformNamespaceEventPatch { - """Event timestamp (partition key)""" - createdAt: Datetime - - """Unique event identifier""" - id: UUID + clientMutationId: String - """Namespace this event belongs to""" - namespaceId: UUID + """The `FunctionGraphRef` that was deleted by this mutation.""" + functionGraphRef: FunctionGraphRef """ - Event type: created, activated, deactivated, labels_updated, annotations_updated, renamed + Our root query field type. Allows us to run any query from our mutation payload. """ - eventType: String - - """User who triggered this event (NULL for system/automated)""" - actorId: UUID - - """Human-readable description of the event""" - message: String - - """Structured context (old/new values, labels diff, etc.)""" - metadata: JSON - - """CPU usage in millicores at time of event""" - cpuMillicores: Int - - """Memory usage in bytes at time of event""" - memoryBytes: BigInt - - """Storage usage in bytes at time of event""" - storageBytes: BigInt - - """Network ingress in bytes during event window""" - networkIngressBytes: BigInt + query: Query - """Network egress in bytes during event window""" - networkEgressBytes: BigInt + """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 +} - """Number of active pods in the namespace at time of event""" - podCount: Int +"""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 - """Additional resource metrics (gpu, replicas, quotas, etc.)""" - metrics: JSON + """Unique ref identifier""" + id: UUID! - """Database that owns this resource (database-scoped isolation)""" - databaseId: UUID + """Opaque store partition key for the global tier""" + scopeId: UUID! } -"""The output of our update `FunctionDeployment` mutation.""" -type UpdateFunctionDeploymentPayload { +"""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 - """The `FunctionDeployment` that was updated by this mutation.""" - functionDeployment: FunctionDeployment + """The `FunctionGraphStore` that was deleted by this mutation.""" + functionGraphStore: FunctionGraphStore """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `FunctionDeployment`. May be used by Relay 1.""" - functionDeploymentEdge( - """The method to use when ordering `FunctionDeployment`.""" - orderBy: [FunctionDeploymentOrderBy!]! = [PRIMARY_KEY_ASC] - ): FunctionDeploymentEdge + """An edge for our `FunctionGraphStore`. May be used by Relay 1.""" + functionGraphStoreEdge( + """The method to use when ordering `FunctionGraphStore`.""" + orderBy: [FunctionGraphStoreOrderBy!]! = [PRIMARY_KEY_ASC] + ): FunctionGraphStoreEdge } -"""All input for the `updateFunctionDeployment` mutation.""" -input UpdateFunctionDeploymentInput { +"""All input for the `deleteFunctionGraphStore` mutation.""" +input DeleteFunctionGraphStoreInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String + + """Unique store identifier""" id: UUID! +} +"""The output of our delete `PlatformFunctionApiBinding` mutation.""" +type DeletePlatformFunctionApiBindingPayload { """ - An object where the defined keys will be set on the `FunctionDeployment` being updated. + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. """ - functionDeploymentPatch: FunctionDeploymentPatch! -} + clientMutationId: String -""" -Represents an update to a `FunctionDeployment`. Fields that are set will be updated. -""" -input FunctionDeploymentPatch { - id: UUID - createdAt: Datetime - updatedAt: Datetime + """The `PlatformFunctionApiBinding` that was deleted by this mutation.""" + platformFunctionApiBinding: PlatformFunctionApiBinding - """Function definition being deployed to this namespace""" - functionDefinitionId: UUID + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query - """Target namespace for this deployment (maps to a K8s namespace)""" - namespaceId: 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 +} +"""All input for the `deletePlatformFunctionApiBinding` mutation.""" +input DeletePlatformFunctionApiBindingInput { """ - 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 + id: UUID! +} +"""The output of our delete `PlatformResourceStatusCheck` mutation.""" +type DeletePlatformResourceStatusCheckPayload { """ - 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 - - """Knative service name — derived from task_identifier at provision time""" - serviceName: String - - """Deployment revision number (incremented on each redeployment)""" - revision: Int - - """Container image override (NULL = inherit from function definition)""" - image: String + clientMutationId: String - """Max concurrent requests per pod (NULL = inherit from definition)""" - concurrency: Int + """The `PlatformResourceStatusCheck` that was deleted by this mutation.""" + platformResourceStatusCheck: PlatformResourceStatusCheck """ - 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 + + """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 +} +"""All input for the `deletePlatformResourceStatusCheck` mutation.""" +input DeletePlatformResourceStatusCheckInput { """ - 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 - """Request timeout override in seconds (NULL = inherit from definition)""" - timeoutSeconds: Int + """Unique status check identifier""" + id: UUID! +} +"""The output of our delete `InfraObject` mutation.""" +type DeleteInfraObjectPayload { """ - K8s resource spec override: {"requests":{"cpu":"100m","memory":"128Mi"},"limits":{...}} + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. """ - resources: JSON + clientMutationId: String - """Most recent provisioning or runtime error message""" - lastError: String + """The `InfraObject` that was deleted by this mutation.""" + infraObject: InfraObject - """Timestamp of the most recent error""" - lastErrorAt: Datetime + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query - """Cumulative error count for this deployment""" - errorCount: Int + """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 +} - """Key/value pairs for selecting and filtering deployments""" - labels: JSON +"""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. + """ + clientMutationId: String - """Freeform metadata for tooling and operational notes""" - annotations: JSON + """Content-addressed UUID v5 — deterministic hash of (data, kids, ktree)""" + id: UUID! - """Database that owns this resource (database-scoped isolation)""" - databaseId: UUID + """Opaque store partition key for the global tier""" + scopeId: UUID! } -"""The output of our update `FunctionGraphExecution` mutation.""" -type UpdateFunctionGraphExecutionPayload { +"""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 `FunctionGraphExecution` that was updated by this mutation.""" - functionGraphExecution: FunctionGraphExecution + """The `FunctionGraphObject` that was deleted by this mutation.""" + functionGraphObject: FunctionGraphObject """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """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 + """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 } -"""All input for the `updateFunctionGraphExecution` mutation.""" -input UpdateFunctionGraphExecutionInput { +"""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 - """Execution start timestamp""" - startedAt: Datetime! - - """Unique execution identifier""" + """Content-addressed UUID v5 — deterministic hash of (data, kids, ktree)""" id: UUID! - """ - An object where the defined keys will be set on the `FunctionGraphExecution` being updated. - """ - functionGraphExecutionPatch: FunctionGraphExecutionPatch! + """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 { - """Execution start timestamp""" - startedAt: Datetime - - """Unique execution identifier""" - id: UUID - - """FK to the graph definition being executed""" - graphId: UUID - - """Parent function_invocations row (for metering)""" - invocationId: UUID - - """Scope for multi-tenant isolation""" - databaseId: UUID - - """Target output boundary node name to resolve""" - outputNode: String - - """Target output port name (default: value)""" - outputPort: String - - """Lifecycle: pending → running → completed/failed/cancelled""" - status: String - - """Initial inputs provided at invocation time""" - inputPayload: JSON - - """Final result extracted from terminal output node""" - outputPayload: JSON +"""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 """ - Map of node_name → execution output id (content-addressed hash reference) + The `PlatformFunctionDeploymentEvent` that was deleted by this mutation. """ - nodeOutputs: JSON + platformFunctionDeploymentEvent: PlatformFunctionDeploymentEvent - """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 - """Index into execution_plan — tick only processes this wave""" - currentWave: Int + """ + 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 +} - """Parent execution when this is a sub-execution""" - parentExecutionId: UUID +"""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 - """Node name in parent execution that spawned this sub-execution""" - parentNodeName: String + """Event timestamp (partition key)""" + createdAt: Datetime! - """Pinned definitions store commit for deterministic evaluation""" - definitionsCommitId: UUID + """Unique event identifier""" + id: UUID! +} - """Number of evaluate_step ticks executed""" - tickCount: Int +"""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 - """Execution completion timestamp""" - completedAt: Datetime + """The `PlatformResourceEvent` that was deleted by this mutation.""" + platformResourceEvent: PlatformResourceEvent - """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. + """ + query: Query - """Maximum pending jobs before execution is failed (default 50)""" - maxPendingJobs: Int + """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 +} - """Absolute deadline — execution fails if still running after this time""" - timeoutAt: Datetime +"""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 - """Machine-readable error code when status = failed""" - errorCode: String + """Event timestamp (partition key)""" + createdAt: Datetime! - """Human-readable error description when status = failed""" - errorMessage: String + """Unique event identifier""" + id: UUID! } -"""The output of our update `FunctionDefinition` mutation.""" -type UpdateFunctionDefinitionPayload { +"""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 - """The `FunctionDefinition` that was updated by this mutation.""" - functionDefinition: FunctionDefinition + """The `ResourceStatusCheck` that was deleted by this mutation.""" + resourceStatusCheck: ResourceStatusCheck """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `FunctionDefinition`. May be used by Relay 1.""" - functionDefinitionEdge( - """The method to use when ordering `FunctionDefinition`.""" - orderBy: [FunctionDefinitionOrderBy!]! = [PRIMARY_KEY_ASC] - ): FunctionDefinitionEdge + """An edge for our `ResourceStatusCheck`. May be used by Relay 1.""" + resourceStatusCheckEdge( + """The method to use when ordering `ResourceStatusCheck`.""" + orderBy: [ResourceStatusCheckOrderBy!]! = [PRIMARY_KEY_ASC] + ): ResourceStatusCheckEdge } -"""All input for the `updateFunctionDefinition` mutation.""" -input UpdateFunctionDefinitionInput { +"""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 - id: UUID! - """ - An object where the defined keys will be set on the `FunctionDefinition` being updated. - """ - functionDefinitionPatch: FunctionDefinitionPatch! + """Unique status check identifier""" + id: UUID! } -""" -Represents an update to a `FunctionDefinition`. Fields that are set will be updated. -""" -input FunctionDefinitionPatch { - id: UUID - createdAt: Datetime - updatedAt: Datetime - - """Function grouping scope (e.g. email, embed, chunk, custom)""" - scope: String - +"""The output of our delete `FunctionDeploymentEvent` mutation.""" +type DeleteFunctionDeploymentEventPayload { """ - Function name within scope (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 `FunctionDeploymentEvent` that was deleted by this mutation.""" + functionDeploymentEvent: FunctionDeploymentEvent """ - Computed routing slug: scope:name (used by Knative job worker for dispatch) + Our root query field type. Allows us to run any query from our mutation payload. """ - taskIdentifier: String + query: Query - """Human-readable description of what this function does""" - description: String + """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 +} +"""All input for the `deleteFunctionDeploymentEvent` mutation.""" +input DeleteFunctionDeploymentEventInput { """ - Whether this function can be called via function_invocations (public API). 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. """ - isInvocable: Boolean - - """Maximum retry attempts for the underlying job""" - maxAttempts: Int + clientMutationId: String - """Job priority (lower = higher priority)""" - priority: Int + """Event timestamp (partition key)""" + createdAt: Datetime! - """Job queue name for serialization (e.g. email, ai, default)""" - queueName: String + """Unique event identifier""" + id: UUID! +} +"""The output of our delete `PlatformFunctionExecutionLog` mutation.""" +type DeletePlatformFunctionExecutionLogPayload { """ - Execution mode: http (Knative Service dispatch) or inline (in-process in compute worker) + 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 - """ - Docker image reference (e.g. ghcr.io/constructive-io/email-send-fn:latest). Required when runtime=http. NULL for inline functions. - """ - image: String + """The `PlatformFunctionExecutionLog` that was deleted by this mutation.""" + platformFunctionExecutionLog: PlatformFunctionExecutionLog """ - Knative containerConcurrency — max concurrent requests per pod instance + Our root query field type. Allows us to run any query from our mutation payload. """ - concurrency: Int - - """Minimum pod count for Knative autoscaling (minScale)""" - scaleMin: Int - - """Maximum pod count for Knative autoscaling (maxScale)""" - scaleMax: Int - - """Knative request timeout in seconds""" - timeoutSeconds: Int + query: Query """ - Container resource requests and limits: {requests: {memory, cpu}, limits: {memory, cpu}} + An edge for our `PlatformFunctionExecutionLog`. May be used by Relay 1. """ - resources: JSON + platformFunctionExecutionLogEdge( + """The method to use when ordering `PlatformFunctionExecutionLog`.""" + orderBy: [PlatformFunctionExecutionLogOrderBy!]! = [PRIMARY_KEY_ASC] + ): PlatformFunctionExecutionLogEdge +} +"""All input for the `deletePlatformFunctionExecutionLog` mutation.""" +input DeletePlatformFunctionExecutionLogInput { """ - Whether this function is a built-in platform function (synced from platform) vs user-created + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. """ - isBuiltIn: Boolean - - """Embedded secret requirements: array of (name, required) tuples""" - requiredSecrets: [FunctionRequirementInput] + clientMutationId: String - """Embedded config requirements: array of (name, required) tuples""" - requiredConfigs: [FunctionRequirementInput] + """Log entry timestamp (partition key)""" + createdAt: Datetime! - """ - Bucket keys this function needs (e.g. uploads, exports). Empty = no bucket requirements. - """ - requiredBuckets: [String] + """Unique log entry identifier""" + id: UUID! +} +"""The output of our delete `ResourceEvent` mutation.""" +type DeleteResourceEventPayload { """ - 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 - """ - Data input ports: [{name, type, description?, optional?, multi?, schema?}] - """ - inputs: JSON + """The `ResourceEvent` that was deleted by this mutation.""" + resourceEvent: ResourceEvent """ - 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 - """ - Configuration properties: [{name, type, default?, description?, required?, schema?}] - """ - props: JSON + """An edge for our `ResourceEvent`. May be used by Relay 1.""" + resourceEventEdge( + """The method to use when ordering `ResourceEvent`.""" + orderBy: [ResourceEventOrderBy!]! = [PRIMARY_KEY_ASC] + ): ResourceEventEdge +} +"""All input for the `deleteResourceEvent` mutation.""" +input DeleteResourceEventInput { """ - Whether this function has side effects and cannot be cached or memoized + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. """ - volatile: Boolean + clientMutationId: String - """Icon identifier for UI palette rendering (e.g. mail, database, code)""" - icon: String + """Event timestamp (partition key)""" + createdAt: Datetime! - """Palette grouping category (e.g. email, data, ai, custom)""" - category: String + """Unique event identifier""" + id: UUID! } -"""The output of our delete `FunctionApiBinding` mutation.""" -type DeleteFunctionApiBindingPayload { +"""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 - """The `FunctionApiBinding` that was deleted by this mutation.""" - functionApiBinding: FunctionApiBinding + """The `FunctionGraphExecutionOutput` that was deleted by this mutation.""" + functionGraphExecutionOutput: FunctionGraphExecutionOutput """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """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 `FunctionGraphExecutionOutput`. May be used by Relay 1. + """ + functionGraphExecutionOutputEdge( + """The method to use when ordering `FunctionGraphExecutionOutput`.""" + orderBy: [FunctionGraphExecutionOutputOrderBy!]! = [PRIMARY_KEY_ASC] + ): FunctionGraphExecutionOutputEdge } -"""All input for the `deleteFunctionApiBinding` mutation.""" -input DeleteFunctionApiBindingInput { +"""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 + + """Timestamp of output creation""" + createdAt: Datetime! + + """Unique execution output identifier""" id: UUID! } -"""The output of our delete `FunctionGraphRef` mutation.""" -type DeleteFunctionGraphRefPayload { +"""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 - """The `FunctionGraphRef` that was deleted by this mutation.""" - functionGraphRef: FunctionGraphRef + """The `InfraCommit` that was deleted by this mutation.""" + infraCommit: InfraCommit """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `FunctionGraphRef`. May be used by Relay 1.""" - functionGraphRefEdge( - """The method to use when ordering `FunctionGraphRef`.""" - orderBy: [FunctionGraphRefOrderBy!]! = [PRIMARY_KEY_ASC] - ): FunctionGraphRefEdge + """An edge for our `InfraCommit`. May be used by Relay 1.""" + infraCommitEdge( + """The method to use when ordering `InfraCommit`.""" + orderBy: [InfraCommitOrderBy!]! = [PRIMARY_KEY_ASC] + ): InfraCommitEdge } -"""All input for the `deleteFunctionGraphRef` mutation.""" -input DeleteFunctionGraphRefInput { +"""All input for the `deleteInfraCommit` mutation.""" +input DeleteInfraCommitInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - """Unique ref identifier""" + """Unique commit identifier""" id: UUID! - """Database scope for multi-tenant isolation""" - databaseId: UUID! + """Opaque store partition key for the global tier""" + scopeId: UUID! } -"""The output of our delete `FunctionGraphStore` mutation.""" -type DeleteFunctionGraphStorePayload { +"""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 - """The `FunctionGraphStore` that was deleted by this mutation.""" - functionGraphStore: FunctionGraphStore + """The `FunctionGraphCommit` that was deleted by this mutation.""" + functionGraphCommit: FunctionGraphCommit """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `FunctionGraphStore`. May be used by Relay 1.""" - functionGraphStoreEdge( - """The method to use when ordering `FunctionGraphStore`.""" - orderBy: [FunctionGraphStoreOrderBy!]! = [PRIMARY_KEY_ASC] - ): FunctionGraphStoreEdge + """An edge for our `FunctionGraphCommit`. May be used by Relay 1.""" + functionGraphCommitEdge( + """The method to use when ordering `FunctionGraphCommit`.""" + orderBy: [FunctionGraphCommitOrderBy!]! = [PRIMARY_KEY_ASC] + ): FunctionGraphCommitEdge } -"""All input for the `deleteFunctionGraphStore` mutation.""" -input DeleteFunctionGraphStoreInput { +"""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 - """Unique store identifier""" + """Unique commit identifier""" id: UUID! + + """Opaque store partition key for the global tier""" + scopeId: UUID! } -"""The output of our delete `FunctionGraphObject` mutation.""" -type DeleteFunctionGraphObjectPayload { +"""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 - """The `FunctionGraphObject` that was deleted by this mutation.""" - functionGraphObject: FunctionGraphObject + """The `FunctionExecutionLog` that was deleted by this mutation.""" + functionExecutionLog: FunctionExecutionLog """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `FunctionGraphObject`. May be used by Relay 1.""" - functionGraphObjectEdge( - """The method to use when ordering `FunctionGraphObject`.""" - orderBy: [FunctionGraphObjectOrderBy!]! = [PRIMARY_KEY_ASC] - ): FunctionGraphObjectEdge + """An edge for our `FunctionExecutionLog`. May be used by Relay 1.""" + functionExecutionLogEdge( + """The method to use when ordering `FunctionExecutionLog`.""" + orderBy: [FunctionExecutionLogOrderBy!]! = [PRIMARY_KEY_ASC] + ): FunctionExecutionLogEdge } -"""All input for the `deleteFunctionGraphObject` mutation.""" -input DeleteFunctionGraphObjectInput { +"""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 - """Content-addressed UUID v5 — deterministic hash of (data, kids, ktree)""" - id: UUID! + """Log entry timestamp (partition key)""" + createdAt: Datetime! - """Database scope for multi-tenant isolation""" - databaseId: UUID! + """Unique log entry identifier""" + id: UUID! } -"""The output of our delete `FunctionDeploymentEvent` mutation.""" -type DeleteFunctionDeploymentEventPayload { +"""The output of our delete `DbPreset` mutation.""" +type DeleteDbPresetPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `FunctionDeploymentEvent` that was deleted by this mutation.""" - functionDeploymentEvent: FunctionDeploymentEvent + """The `DbPreset` that was deleted by this mutation.""" + dbPreset: DbPreset """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `FunctionDeploymentEvent`. May be used by Relay 1.""" - functionDeploymentEventEdge( - """The method to use when ordering `FunctionDeploymentEvent`.""" - orderBy: [FunctionDeploymentEventOrderBy!]! = [PRIMARY_KEY_ASC] - ): FunctionDeploymentEventEdge + """An edge for our `DbPreset`. May be used by Relay 1.""" + dbPresetEdge( + """The method to use when ordering `DbPreset`.""" + orderBy: [DbPresetOrderBy!]! = [PRIMARY_KEY_ASC] + ): DbPresetEdge } -"""All input for the `deleteFunctionDeploymentEvent` mutation.""" -input DeleteFunctionDeploymentEventInput { +"""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 - """Event timestamp (partition key)""" - createdAt: Datetime! - - """Unique event identifier""" + """Unique preset identifier""" id: UUID! } -"""The output of our delete `OrgFunctionExecutionLog` mutation.""" -type DeleteOrgFunctionExecutionLogPayload { +"""The output of our delete `PlatformNamespace` mutation.""" +type DeletePlatformNamespacePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `OrgFunctionExecutionLog` that was deleted by this mutation.""" - orgFunctionExecutionLog: OrgFunctionExecutionLog + """The `PlatformNamespace` that was deleted by this mutation.""" + platformNamespace: PlatformNamespace """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `OrgFunctionExecutionLog`. May be used by Relay 1.""" - orgFunctionExecutionLogEdge( - """The method to use when ordering `OrgFunctionExecutionLog`.""" - orderBy: [OrgFunctionExecutionLogOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgFunctionExecutionLogEdge + """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 } -"""All input for the `deleteOrgFunctionExecutionLog` mutation.""" -input DeleteOrgFunctionExecutionLogInput { +"""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 - - """Log entry timestamp (partition key)""" - createdAt: Datetime! - - """Unique log entry identifier""" id: UUID! } -"""The output of our delete `ResourceEvent` mutation.""" -type DeleteResourceEventPayload { +"""The output of our delete `FunctionGraph` mutation.""" +type DeleteFunctionGraphPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `ResourceEvent` that was deleted by this mutation.""" - resourceEvent: ResourceEvent + """The `FunctionGraph` that was deleted by this mutation.""" + functionGraph: FunctionGraph """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """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 + """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 } -"""All input for the `deleteResourceEvent` mutation.""" -input DeleteResourceEventInput { +"""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 - """Event timestamp (partition key)""" - createdAt: Datetime! - - """Unique event identifier""" + """Unique graph identifier""" id: UUID! } -"""The output of our delete `FunctionGraphExecutionOutput` mutation.""" -type DeleteFunctionGraphExecutionOutputPayload { +"""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 - """The `FunctionGraphExecutionOutput` that was deleted by this mutation.""" - functionGraphExecutionOutput: FunctionGraphExecutionOutput + """ + The `FunctionGraphExecutionNodeState` that was deleted by this mutation. + """ + functionGraphExecutionNodeState: FunctionGraphExecutionNodeState """ Our root query field type. Allows us to run any query from our mutation payload. @@ -9508,321 +18045,310 @@ type DeleteFunctionGraphExecutionOutputPayload { query: Query """ - An edge for our `FunctionGraphExecutionOutput`. May be used by Relay 1. + An edge for our `FunctionGraphExecutionNodeState`. May be used by Relay 1. """ - functionGraphExecutionOutputEdge( - """The method to use when ordering `FunctionGraphExecutionOutput`.""" - orderBy: [FunctionGraphExecutionOutputOrderBy!]! = [PRIMARY_KEY_ASC] - ): FunctionGraphExecutionOutputEdge + functionGraphExecutionNodeStateEdge( + """The method to use when ordering `FunctionGraphExecutionNodeState`.""" + orderBy: [FunctionGraphExecutionNodeStateOrderBy!]! = [PRIMARY_KEY_ASC] + ): FunctionGraphExecutionNodeStateEdge } -"""All input for the `deleteFunctionGraphExecutionOutput` mutation.""" -input DeleteFunctionGraphExecutionOutputInput { +"""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 - """Timestamp of output creation""" + """Timestamp of node state creation (partition key)""" createdAt: Datetime! - """Unique execution output identifier""" + """Unique node state identifier""" id: UUID! } -"""The output of our delete `FunctionGraphCommit` mutation.""" -type DeleteFunctionGraphCommitPayload { +"""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 - """The `FunctionGraphCommit` that was deleted by this mutation.""" - functionGraphCommit: FunctionGraphCommit + """The `Namespace` that was deleted by this mutation.""" + namespace: Namespace """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `FunctionGraphCommit`. May be used by Relay 1.""" - functionGraphCommitEdge( - """The method to use when ordering `FunctionGraphCommit`.""" - orderBy: [FunctionGraphCommitOrderBy!]! = [PRIMARY_KEY_ASC] - ): FunctionGraphCommitEdge + """An edge for our `Namespace`. May be used by Relay 1.""" + namespaceEdge( + """The method to use when ordering `Namespace`.""" + orderBy: [NamespaceOrderBy!]! = [PRIMARY_KEY_ASC] + ): NamespaceEdge } -"""All input for the `deleteFunctionGraphCommit` mutation.""" -input DeleteFunctionGraphCommitInput { +"""All input for the `deleteNamespace` mutation.""" +input DeleteNamespaceInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - - """Unique commit identifier""" id: UUID! - - """Database scope for multi-tenant isolation""" - databaseId: UUID! } -"""The output of our delete `SecretDefinition` mutation.""" -type DeleteSecretDefinitionPayload { +"""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 - """The `SecretDefinition` that was deleted by this mutation.""" - secretDefinition: SecretDefinition + """The `PlatformFunctionInvocation` that was deleted by this mutation.""" + platformFunctionInvocation: PlatformFunctionInvocation """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `SecretDefinition`. May be used by Relay 1.""" - secretDefinitionEdge( - """The method to use when ordering `SecretDefinition`.""" - orderBy: [SecretDefinitionOrderBy!]! = [PRIMARY_KEY_ASC] - ): SecretDefinitionEdge + """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 } -"""All input for the `deleteSecretDefinition` mutation.""" -input DeleteSecretDefinitionInput { +"""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 + + """Invocation creation timestamp (partition key)""" + createdAt: Datetime! + + """Unique invocation identifier""" id: UUID! } -"""The output of our delete `FunctionExecutionLog` mutation.""" -type DeleteFunctionExecutionLogPayload { +"""The output of our delete `FunctionInvocation` mutation.""" +type DeleteFunctionInvocationPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `FunctionExecutionLog` that was deleted by this mutation.""" - functionExecutionLog: FunctionExecutionLog + """The `FunctionInvocation` that was deleted by this mutation.""" + functionInvocation: FunctionInvocation """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `FunctionExecutionLog`. May be used by Relay 1.""" - functionExecutionLogEdge( - """The method to use when ordering `FunctionExecutionLog`.""" - orderBy: [FunctionExecutionLogOrderBy!]! = [PRIMARY_KEY_ASC] - ): FunctionExecutionLogEdge + """An edge for our `FunctionInvocation`. May be used by Relay 1.""" + functionInvocationEdge( + """The method to use when ordering `FunctionInvocation`.""" + orderBy: [FunctionInvocationOrderBy!]! = [PRIMARY_KEY_ASC] + ): FunctionInvocationEdge } -"""All input for the `deleteFunctionExecutionLog` mutation.""" -input DeleteFunctionExecutionLogInput { +"""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 - """Log entry timestamp (partition key)""" + """Invocation creation timestamp (partition key)""" createdAt: Datetime! - """Unique log entry identifier""" + """Unique invocation identifier""" id: UUID! } -"""The output of our delete `FunctionGraph` mutation.""" -type DeleteFunctionGraphPayload { +"""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 `FunctionGraph` that was deleted by this mutation.""" - functionGraph: FunctionGraph + """The `PlatformNamespaceEvent` that was deleted by this mutation.""" + platformNamespaceEvent: PlatformNamespaceEvent """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `FunctionGraph`. May be used by Relay 1.""" - functionGraphEdge( - """The method to use when ordering `FunctionGraph`.""" - orderBy: [FunctionGraphOrderBy!]! = [PRIMARY_KEY_ASC] - ): FunctionGraphEdge + """An edge for our `PlatformNamespaceEvent`. May be used by Relay 1.""" + platformNamespaceEventEdge( + """The method to use when ordering `PlatformNamespaceEvent`.""" + orderBy: [PlatformNamespaceEventOrderBy!]! = [PRIMARY_KEY_ASC] + ): PlatformNamespaceEventEdge } -"""All input for the `deleteFunctionGraph` mutation.""" -input DeleteFunctionGraphInput { +"""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 - """Unique graph identifier""" + """Event timestamp (partition key)""" + createdAt: Datetime! + + """Unique event identifier""" id: UUID! } -"""The output of our delete `FunctionGraphExecutionNodeState` mutation.""" -type DeleteFunctionGraphExecutionNodeStatePayload { +"""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 - """ - The `FunctionGraphExecutionNodeState` that was deleted by this mutation. - """ - functionGraphExecutionNodeState: FunctionGraphExecutionNodeState + """The `IntegrationProvider` that was deleted by this mutation.""" + integrationProvider: IntegrationProvider """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """ - An edge for our `FunctionGraphExecutionNodeState`. May be used by Relay 1. - """ - functionGraphExecutionNodeStateEdge( - """The method to use when ordering `FunctionGraphExecutionNodeState`.""" - orderBy: [FunctionGraphExecutionNodeStateOrderBy!]! = [PRIMARY_KEY_ASC] - ): FunctionGraphExecutionNodeStateEdge + """An edge for our `IntegrationProvider`. May be used by Relay 1.""" + integrationProviderEdge( + """The method to use when ordering `IntegrationProvider`.""" + orderBy: [IntegrationProviderOrderBy!]! = [PRIMARY_KEY_ASC] + ): IntegrationProviderEdge } -"""All input for the `deleteFunctionGraphExecutionNodeState` mutation.""" -input DeleteFunctionGraphExecutionNodeStateInput { +"""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 - - """Timestamp of node state creation (partition key)""" - createdAt: Datetime! - - """Unique node state identifier""" id: UUID! } -"""The output of our delete `PlatformNamespace` mutation.""" -type DeletePlatformNamespacePayload { +"""The output of our delete `NamespaceEvent` mutation.""" +type DeleteNamespaceEventPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `PlatformNamespace` that was deleted by this mutation.""" - platformNamespace: PlatformNamespace + """The `NamespaceEvent` that was deleted by this mutation.""" + namespaceEvent: NamespaceEvent """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `PlatformNamespace`. May be used by Relay 1.""" - platformNamespaceEdge( - """The method to use when ordering `PlatformNamespace`.""" - orderBy: [PlatformNamespaceOrderBy!]! = [PRIMARY_KEY_ASC] - ): PlatformNamespaceEdge + """An edge for our `NamespaceEvent`. May be used by Relay 1.""" + namespaceEventEdge( + """The method to use when ordering `NamespaceEvent`.""" + orderBy: [NamespaceEventOrderBy!]! = [PRIMARY_KEY_ASC] + ): NamespaceEventEdge } -"""All input for the `deletePlatformNamespace` mutation.""" -input DeletePlatformNamespaceInput { +"""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 + + """Event timestamp (partition key)""" + createdAt: Datetime! + + """Unique event identifier""" id: UUID! } -"""The output of our delete `OrgFunctionInvocation` mutation.""" -type DeleteOrgFunctionInvocationPayload { +"""The output of our delete `PlatformResource` mutation.""" +type DeletePlatformResourcePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `OrgFunctionInvocation` that was deleted by this mutation.""" - orgFunctionInvocation: OrgFunctionInvocation + """The `PlatformResource` that was deleted by this mutation.""" + platformResource: PlatformResource """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `OrgFunctionInvocation`. May be used by Relay 1.""" - orgFunctionInvocationEdge( - """The method to use when ordering `OrgFunctionInvocation`.""" - orderBy: [OrgFunctionInvocationOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgFunctionInvocationEdge + """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 } -"""All input for the `deleteOrgFunctionInvocation` mutation.""" -input DeleteOrgFunctionInvocationInput { +"""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 - - """Invocation creation timestamp (partition key)""" - createdAt: Datetime! - - """Unique invocation identifier""" id: UUID! } -"""The output of our delete `FunctionInvocation` mutation.""" -type DeleteFunctionInvocationPayload { +"""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 - """The `FunctionInvocation` that was deleted by this mutation.""" - functionInvocation: FunctionInvocation + """The `PlatformFunctionDeployment` that was deleted by this mutation.""" + platformFunctionDeployment: PlatformFunctionDeployment """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `FunctionInvocation`. May be used by Relay 1.""" - functionInvocationEdge( - """The method to use when ordering `FunctionInvocation`.""" - orderBy: [FunctionInvocationOrderBy!]! = [PRIMARY_KEY_ASC] - ): FunctionInvocationEdge + """An edge for our `PlatformFunctionDeployment`. May be used by Relay 1.""" + platformFunctionDeploymentEdge( + """The method to use when ordering `PlatformFunctionDeployment`.""" + orderBy: [PlatformFunctionDeploymentOrderBy!]! = [PRIMARY_KEY_ASC] + ): PlatformFunctionDeploymentEdge } -"""All input for the `deleteFunctionInvocation` mutation.""" -input DeleteFunctionInvocationInput { +"""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 - - """Invocation creation timestamp (partition key)""" - createdAt: Datetime! - - """Unique invocation identifier""" id: UUID! } @@ -9859,41 +18385,36 @@ input DeleteResourceInput { id: UUID! } -"""The output of our delete `PlatformNamespaceEvent` mutation.""" -type DeletePlatformNamespaceEventPayload { +"""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 - """The `PlatformNamespaceEvent` that was deleted by this mutation.""" - platformNamespaceEvent: PlatformNamespaceEvent + """The `PlatformResourceDefinition` that was deleted by this mutation.""" + platformResourceDefinition: PlatformResourceDefinition """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `PlatformNamespaceEvent`. May be used by Relay 1.""" - platformNamespaceEventEdge( - """The method to use when ordering `PlatformNamespaceEvent`.""" - orderBy: [PlatformNamespaceEventOrderBy!]! = [PRIMARY_KEY_ASC] - ): PlatformNamespaceEventEdge + """An edge for our `PlatformResourceDefinition`. May be used by Relay 1.""" + platformResourceDefinitionEdge( + """The method to use when ordering `PlatformResourceDefinition`.""" + orderBy: [PlatformResourceDefinitionOrderBy!]! = [PRIMARY_KEY_ASC] + ): PlatformResourceDefinitionEdge } -"""All input for the `deletePlatformNamespaceEvent` mutation.""" -input DeletePlatformNamespaceEventInput { +"""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 - - """Event timestamp (partition key)""" - createdAt: Datetime! - - """Unique event identifier""" id: UUID! } @@ -9930,6 +18451,39 @@ input DeleteFunctionDeploymentInput { id: UUID! } +"""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 + + """The `ResourceDefinition` that was deleted by this mutation.""" + resourceDefinition: ResourceDefinition + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `ResourceDefinition`. May be used by Relay 1.""" + resourceDefinitionEdge( + """The method to use when ordering `ResourceDefinition`.""" + orderBy: [ResourceDefinitionOrderBy!]! = [PRIMARY_KEY_ASC] + ): ResourceDefinitionEdge +} + +"""All input for the `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! +} + """The output of our delete `FunctionGraphExecution` mutation.""" type DeleteFunctionGraphExecutionPayload { """ @@ -9968,6 +18522,39 @@ input DeleteFunctionGraphExecutionInput { id: UUID! } +"""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 + + """The `PlatformFunctionDefinition` that was deleted by this mutation.""" + platformFunctionDefinition: PlatformFunctionDefinition + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """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 +} + +"""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! +} + """The output of our delete `FunctionDefinition` mutation.""" type DeleteFunctionDefinitionPayload { """ diff --git a/sdk/constructive-sdk/schemas/config.graphql b/sdk/constructive-sdk/schemas/config.graphql index 27a11484ea..4373f2e380 100644 --- a/sdk/constructive-sdk/schemas/config.graphql +++ b/sdk/constructive-sdk/schemas/config.graphql @@ -1,9 +1,67 @@ """The root query type which gives access points into the data universe.""" type Query { + """Reads and enables pagination through a set of `PlatformConfig`.""" + platformConfigs( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: PlatformConfigFilter + + """The method to use when ordering `PlatformConfig`.""" + orderBy: [PlatformConfigOrderBy!] = [PRIMARY_KEY_ASC] + ): PlatformConfigConnection + + """Reads and enables pagination through a set of `Config`.""" + configs( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: ConfigFilter + + """The method to use when ordering `Config`.""" + orderBy: [ConfigOrderBy!] = [PRIMARY_KEY_ASC] + ): ConfigConnection + """ - Reads and enables pagination through a set of `PlatformConfigDefinition`. + Reads and enables pagination through a set of `PlatformInternalSecret`. """ - platformConfigDefinitions( + platformInternalSecrets( """Only read the first `n` values of the set.""" first: Int @@ -25,14 +83,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: PlatformConfigDefinitionFilter + where: PlatformInternalSecretFilter - """The method to use when ordering `PlatformConfigDefinition`.""" - orderBy: [PlatformConfigDefinitionOrderBy!] = [PRIMARY_KEY_ASC] - ): PlatformConfigDefinitionConnection + """The method to use when ordering `PlatformInternalSecret`.""" + orderBy: [PlatformInternalSecretOrderBy!] = [NATURAL] + ): PlatformInternalSecretConnection - """Reads and enables pagination through a set of `PlatformConfig`.""" - platformConfigs( + """Reads and enables pagination through a set of `PlatformSecret`.""" + platformSecrets( """Only read the first `n` values of the set.""" first: Int @@ -54,11 +112,40 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: PlatformConfigFilter + where: PlatformSecretFilter - """The method to use when ordering `PlatformConfig`.""" - orderBy: [PlatformConfigOrderBy!] = [PRIMARY_KEY_ASC] - ): PlatformConfigConnection + """The method to use when ordering `PlatformSecret`.""" + orderBy: [PlatformSecretOrderBy!] = [NATURAL] + ): PlatformSecretConnection + + """Reads and enables pagination through a set of `Secret`.""" + secrets( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: SecretFilter + + """The method to use when ordering `Secret`.""" + orderBy: [SecretOrderBy!] = [NATURAL] + ): SecretConnection """ Metadata about the database schema, including tables, fields, indexes, and constraints. Useful for code generation tools. @@ -66,51 +153,57 @@ type Query { _meta: MetaSchema } -"""A connection to a list of `PlatformConfigDefinition` values.""" -type PlatformConfigDefinitionConnection { - """A list of `PlatformConfigDefinition` objects.""" - nodes: [PlatformConfigDefinition]! +"""A connection to a list of `PlatformConfig` values.""" +type PlatformConfigConnection { + """A list of `PlatformConfig` objects.""" + nodes: [PlatformConfig]! """ - A list of edges which contains the `PlatformConfigDefinition` and cursor to aid in pagination. + A list of edges which contains the `PlatformConfig` and cursor to aid in pagination. """ - edges: [PlatformConfigDefinitionEdge]! + edges: [PlatformConfigEdge]! """Information to aid in pagination.""" pageInfo: PageInfo! - """ - The count of *all* `PlatformConfigDefinition` you could get from the connection. - """ + """The count of *all* `PlatformConfig` you could get from the connection.""" totalCount: Int! } """ -Registry of valid config keys — declares which config entries the platform recognizes +Namespace-backed plaintext key-value config store (like a k8s ConfigMap); admin-only, fully CRUD-exposed """ -type PlatformConfigDefinition { - """Unique identifier for this config definition""" +type PlatformConfig { + """Unique identifier for this config entry""" id: UUID! - createdAt: Datetime - updatedAt: Datetime - """Config key name (must match config table name for resolution)""" - name: String! + """FK to namespaces — logical grouping for config entries""" + namespaceId: UUID! - """Human-readable description of what this config key controls""" - description: String + """Key name identifying the config entry""" + name: String! - """Default value used when no config entry exists for a namespace""" - defaultValue: String + """ + Integration provider slug (e.g. mailgun, postgres). Used by the UI to group config entries by integration. No FK. + """ + provider: String - """Whether this row was seeded as a built-in config definition""" - isBuiltIn: Boolean! + """Plaintext config value""" + value: String - """Key-value metadata for filtering and grouping config definitions""" + """Key/value pairs for selecting/filtering config entries""" labels: JSON! - """Freeform metadata annotations for config definitions""" + """Freeform metadata for tooling and operational notes""" annotations: JSON! + + """Human-readable note about this config entry""" + description: String + createdAt: Datetime + updatedAt: Datetime + + """Optional expiration timestamp for time-limited config entries""" + expiresAt: Datetime } """ @@ -118,6 +211,11 @@ A universally unique identifier as defined by [RFC 4122](https://tools.ietf.org/ """ scalar UUID +""" +Represents JSON values as specified by [ECMA-404](http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf). +""" +scalar JSON + """ A point in time as described by the [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) and, if it has a timezone, [RFC @@ -127,18 +225,13 @@ to unexpected results. """ scalar Datetime -""" -Represents JSON values as specified by [ECMA-404](http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf). -""" -scalar JSON - -"""A `PlatformConfigDefinition` edge in the connection.""" -type PlatformConfigDefinitionEdge { +"""A `PlatformConfig` edge in the connection.""" +type PlatformConfigEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `PlatformConfigDefinition` at the end of the edge.""" - node: PlatformConfigDefinition + """The `PlatformConfig` at the end of the edge.""" + node: PlatformConfig } """A location in a connection that can be used for resuming pagination.""" @@ -160,29 +253,23 @@ type PageInfo { } """ -A filter to be used against `PlatformConfigDefinition` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `PlatformConfig` object types. All fields are combined with a logical ‘and.’ """ -input PlatformConfigDefinitionFilter { +input PlatformConfigFilter { """Filter by the object’s `id` field.""" id: UUIDFilter - """Filter by the object’s `createdAt` field.""" - createdAt: DatetimeFilter - - """Filter by the object’s `updatedAt` field.""" - updatedAt: DatetimeFilter + """Filter by the object’s `namespaceId` field.""" + namespaceId: UUIDFilter """Filter by the object’s `name` field.""" name: StringFilter - """Filter by the object’s `description` field.""" - description: StringFilter - - """Filter by the object’s `defaultValue` field.""" - defaultValue: StringFilter + """Filter by the object’s `provider` field.""" + provider: StringFilter - """Filter by the object’s `isBuiltIn` field.""" - isBuiltIn: BooleanFilter + """Filter by the object’s `value` field.""" + value: StringFilter """Filter by the object’s `labels` field.""" labels: JSONFilter @@ -190,14 +277,26 @@ input PlatformConfigDefinitionFilter { """Filter by the object’s `annotations` field.""" annotations: JSONFilter + """Filter by the object’s `description` field.""" + description: StringFilter + + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter + + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter + + """Filter by the object’s `expiresAt` field.""" + expiresAt: DatetimeFilter + """Checks for all expressions in this list.""" - and: [PlatformConfigDefinitionFilter!] + and: [PlatformConfigFilter!] """Checks for any expressions in this list.""" - or: [PlatformConfigDefinitionFilter!] + or: [PlatformConfigFilter!] """Negates the expression.""" - not: PlatformConfigDefinitionFilter + not: PlatformConfigFilter } """ @@ -242,48 +341,6 @@ input UUIDFilter { greaterThanOrEqualTo: UUID } -""" -A filter to be used against Datetime fields. All fields are combined with a logical ‘and.’ -""" -input DatetimeFilter { - """ - Is null (if `true` is specified) or is not null (if `false` is specified). - """ - isNull: Boolean - - """Equal to the specified value.""" - equalTo: Datetime - - """Not equal to the specified value.""" - notEqualTo: Datetime - - """ - Not equal to the specified value, treating null like an ordinary value. - """ - distinctFrom: Datetime - - """Equal to the specified value, treating null like an ordinary value.""" - notDistinctFrom: Datetime - - """Included in the specified list.""" - in: [Datetime!] - - """Not included in the specified list.""" - notIn: [Datetime!] - - """Less than the specified value.""" - lessThan: Datetime - - """Less than or equal to the specified value.""" - lessThanOrEqualTo: Datetime - - """Greater than the specified value.""" - greaterThan: Datetime - - """Greater than or equal to the specified value.""" - greaterThanOrEqualTo: Datetime -} - """ A filter to be used against String fields. All fields are combined with a logical ‘and.’ """ @@ -417,201 +474,565 @@ input StringFilter { } """ -A filter to be used against Boolean fields. All fields are combined with a logical ‘and.’ +A filter to be used against JSON fields. All fields are combined with a logical ‘and.’ +""" +input JSONFilter { + """ + Is null (if `true` is specified) or is not null (if `false` is specified). + """ + isNull: Boolean + + """Equal to the specified value.""" + equalTo: JSON + + """Not equal to the specified value.""" + notEqualTo: JSON + + """ + Not equal to the specified value, treating null like an ordinary value. + """ + distinctFrom: JSON + + """Equal to the specified value, treating null like an ordinary value.""" + notDistinctFrom: JSON + + """Included in the specified list.""" + in: [JSON!] + + """Not included in the specified list.""" + notIn: [JSON!] + + """Less than the specified value.""" + lessThan: JSON + + """Less than or equal to the specified value.""" + lessThanOrEqualTo: JSON + + """Greater than the specified value.""" + greaterThan: JSON + + """Greater than or equal to the specified value.""" + greaterThanOrEqualTo: JSON + + """Contains the specified JSON.""" + contains: JSON + + """Contains the specified key.""" + containsKey: String + + """Contains all of the specified keys.""" + containsAllKeys: [String!] + + """Contains any of the specified keys.""" + containsAnyKeys: [String!] + + """Contained by the specified JSON.""" + containedBy: JSON +} + +""" +A filter to be used against Datetime fields. All fields are combined with a logical ‘and.’ """ -input BooleanFilter { +input DatetimeFilter { """ Is null (if `true` is specified) or is not null (if `false` is specified). """ isNull: Boolean """Equal to the specified value.""" - equalTo: Boolean + equalTo: Datetime """Not equal to the specified value.""" - notEqualTo: Boolean + notEqualTo: Datetime """ Not equal to the specified value, treating null like an ordinary value. """ - distinctFrom: Boolean + distinctFrom: Datetime """Equal to the specified value, treating null like an ordinary value.""" - notDistinctFrom: Boolean + notDistinctFrom: Datetime + + """Included in the specified list.""" + in: [Datetime!] + + """Not included in the specified list.""" + notIn: [Datetime!] + + """Less than the specified value.""" + lessThan: Datetime + + """Less than or equal to the specified value.""" + lessThanOrEqualTo: Datetime + + """Greater than the specified value.""" + greaterThan: Datetime + + """Greater than or equal to the specified value.""" + greaterThanOrEqualTo: Datetime +} + +"""Methods to use when ordering `PlatformConfig`.""" +enum PlatformConfigOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + NAMESPACE_ID_ASC + NAMESPACE_ID_DESC + NAME_ASC + NAME_DESC + PROVIDER_ASC + PROVIDER_DESC + VALUE_ASC + VALUE_DESC + LABELS_ASC + LABELS_DESC + ANNOTATIONS_ASC + ANNOTATIONS_DESC + DESCRIPTION_ASC + DESCRIPTION_DESC + CREATED_AT_ASC + CREATED_AT_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC + EXPIRES_AT_ASC + EXPIRES_AT_DESC +} + +"""A connection to a list of `Config` values.""" +type ConfigConnection { + """A list of `Config` objects.""" + nodes: [Config]! + + """ + A list of edges which contains the `Config` and cursor to aid in pagination. + """ + edges: [ConfigEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `Config` you could get from the connection.""" + totalCount: Int! +} + +""" +Namespace-backed plaintext key-value config store (like a k8s ConfigMap); admin-only, fully CRUD-exposed +""" +type Config { + """Unique identifier for this config entry""" + id: UUID! + + """FK to namespaces — logical grouping for config entries""" + namespaceId: UUID! + + """Database that owns this resource (database-scoped isolation)""" + databaseId: UUID! + + """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 + + """Plaintext config value""" + value: String + + """Key/value pairs for selecting/filtering config entries""" + labels: JSON! + + """Freeform metadata for tooling and operational notes""" + annotations: JSON! + + """Human-readable note about this config entry""" + description: String + createdAt: Datetime + updatedAt: Datetime + + """Optional expiration timestamp for time-limited config entries""" + expiresAt: Datetime +} + +"""A `Config` edge in the connection.""" +type ConfigEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `Config` at the end of the edge.""" + node: Config +} + +""" +A filter to be used against `Config` object types. All fields are combined with a logical ‘and.’ +""" +input ConfigFilter { + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `namespaceId` field.""" + namespaceId: UUIDFilter + + """Filter by the object’s `databaseId` field.""" + databaseId: UUIDFilter + + """Filter by the object’s `name` field.""" + name: StringFilter + + """Filter by the object’s `provider` field.""" + provider: StringFilter + + """Filter by the object’s `value` field.""" + value: StringFilter + + """Filter by the object’s `labels` field.""" + labels: JSONFilter + + """Filter by the object’s `annotations` field.""" + annotations: JSONFilter + + """Filter by the object’s `description` field.""" + description: StringFilter + + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter + + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter + + """Filter by the object’s `expiresAt` field.""" + expiresAt: DatetimeFilter + + """Checks for all expressions in this list.""" + and: [ConfigFilter!] + + """Checks for any expressions in this list.""" + or: [ConfigFilter!] + + """Negates the expression.""" + not: ConfigFilter +} + +"""Methods to use when ordering `Config`.""" +enum ConfigOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + NAMESPACE_ID_ASC + NAMESPACE_ID_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC + NAME_ASC + NAME_DESC + PROVIDER_ASC + PROVIDER_DESC + VALUE_ASC + VALUE_DESC + LABELS_ASC + LABELS_DESC + ANNOTATIONS_ASC + ANNOTATIONS_DESC + DESCRIPTION_ASC + DESCRIPTION_DESC + CREATED_AT_ASC + CREATED_AT_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC + EXPIRES_AT_ASC + EXPIRES_AT_DESC +} + +"""A connection to a list of `PlatformInternalSecret` values.""" +type PlatformInternalSecretConnection { + """A list of `PlatformInternalSecret` objects.""" + nodes: [PlatformInternalSecret]! + + """ + A list of edges which contains the `PlatformInternalSecret` and cursor to aid in pagination. + """ + edges: [PlatformInternalSecretEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `PlatformInternalSecret` you could get from the connection. + """ + totalCount: Int! +} + +type PlatformInternalSecret { + id: UUID + name: String + namespaceId: UUID + description: String + labels: JSON + annotations: JSON + createdAt: Datetime + updatedAt: Datetime + rotatedAt: Datetime + retiredAt: Datetime +} + +"""A `PlatformInternalSecret` edge in the connection.""" +type PlatformInternalSecretEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `PlatformInternalSecret` at the end of the edge.""" + node: PlatformInternalSecret +} + +""" +A filter to be used against `PlatformInternalSecret` object types. All fields are combined with a logical ‘and.’ +""" +input PlatformInternalSecretFilter { + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `name` field.""" + name: StringFilter + + """Filter by the object’s `namespaceId` field.""" + namespaceId: UUIDFilter + + """Filter by the object’s `description` field.""" + description: StringFilter + + """Filter by the object’s `labels` field.""" + labels: JSONFilter + + """Filter by the object’s `annotations` field.""" + annotations: JSONFilter + + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter + + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter + + """Filter by the object’s `rotatedAt` field.""" + rotatedAt: DatetimeFilter + + """Filter by the object’s `retiredAt` field.""" + retiredAt: DatetimeFilter + + """Checks for all expressions in this list.""" + and: [PlatformInternalSecretFilter!] + + """Checks for any expressions in this list.""" + or: [PlatformInternalSecretFilter!] + + """Negates the expression.""" + not: PlatformInternalSecretFilter +} + +"""Methods to use when ordering `PlatformInternalSecret`.""" +enum PlatformInternalSecretOrderBy { + NATURAL + ID_ASC + ID_DESC + NAME_ASC + NAME_DESC + NAMESPACE_ID_ASC + NAMESPACE_ID_DESC + DESCRIPTION_ASC + DESCRIPTION_DESC + LABELS_ASC + LABELS_DESC + ANNOTATIONS_ASC + ANNOTATIONS_DESC + CREATED_AT_ASC + CREATED_AT_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC + ROTATED_AT_ASC + ROTATED_AT_DESC + RETIRED_AT_ASC + RETIRED_AT_DESC +} + +"""A connection to a list of `PlatformSecret` values.""" +type PlatformSecretConnection { + """A list of `PlatformSecret` objects.""" + nodes: [PlatformSecret]! - """Included in the specified list.""" - in: [Boolean!] + """ + A list of edges which contains the `PlatformSecret` and cursor to aid in pagination. + """ + edges: [PlatformSecretEdge]! - """Not included in the specified list.""" - notIn: [Boolean!] + """Information to aid in pagination.""" + pageInfo: PageInfo! - """Less than the specified value.""" - lessThan: Boolean + """The count of *all* `PlatformSecret` you could get from the connection.""" + totalCount: Int! +} - """Less than or equal to the specified value.""" - lessThanOrEqualTo: Boolean +type PlatformSecret { + id: UUID + name: String + provider: String + namespaceId: UUID + description: String + labels: JSON + annotations: JSON + createdAt: Datetime + updatedAt: Datetime + rotatedAt: Datetime + retiredAt: Datetime +} - """Greater than the specified value.""" - greaterThan: Boolean +"""A `PlatformSecret` edge in the connection.""" +type PlatformSecretEdge { + """A cursor for use in pagination.""" + cursor: Cursor - """Greater than or equal to the specified value.""" - greaterThanOrEqualTo: Boolean + """The `PlatformSecret` at the end of the edge.""" + node: PlatformSecret } """ -A filter to be used against JSON fields. All fields are combined with a logical ‘and.’ +A filter to be used against `PlatformSecret` object types. All fields are combined with a logical ‘and.’ """ -input JSONFilter { - """ - Is null (if `true` is specified) or is not null (if `false` is specified). - """ - isNull: Boolean - - """Equal to the specified value.""" - equalTo: JSON - - """Not equal to the specified value.""" - notEqualTo: JSON +input PlatformSecretFilter { + """Filter by the object’s `id` field.""" + id: UUIDFilter - """ - Not equal to the specified value, treating null like an ordinary value. - """ - distinctFrom: JSON + """Filter by the object’s `name` field.""" + name: StringFilter - """Equal to the specified value, treating null like an ordinary value.""" - notDistinctFrom: JSON + """Filter by the object’s `provider` field.""" + provider: StringFilter - """Included in the specified list.""" - in: [JSON!] + """Filter by the object’s `namespaceId` field.""" + namespaceId: UUIDFilter - """Not included in the specified list.""" - notIn: [JSON!] + """Filter by the object’s `description` field.""" + description: StringFilter - """Less than the specified value.""" - lessThan: JSON + """Filter by the object’s `labels` field.""" + labels: JSONFilter - """Less than or equal to the specified value.""" - lessThanOrEqualTo: JSON + """Filter by the object’s `annotations` field.""" + annotations: JSONFilter - """Greater than the specified value.""" - greaterThan: JSON + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter - """Greater than or equal to the specified value.""" - greaterThanOrEqualTo: JSON + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter - """Contains the specified JSON.""" - contains: JSON + """Filter by the object’s `rotatedAt` field.""" + rotatedAt: DatetimeFilter - """Contains the specified key.""" - containsKey: String + """Filter by the object’s `retiredAt` field.""" + retiredAt: DatetimeFilter - """Contains all of the specified keys.""" - containsAllKeys: [String!] + """Checks for all expressions in this list.""" + and: [PlatformSecretFilter!] - """Contains any of the specified keys.""" - containsAnyKeys: [String!] + """Checks for any expressions in this list.""" + or: [PlatformSecretFilter!] - """Contained by the specified JSON.""" - containedBy: JSON + """Negates the expression.""" + not: PlatformSecretFilter } -"""Methods to use when ordering `PlatformConfigDefinition`.""" -enum PlatformConfigDefinitionOrderBy { +"""Methods to use when ordering `PlatformSecret`.""" +enum PlatformSecretOrderBy { NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC ID_ASC ID_DESC - CREATED_AT_ASC - CREATED_AT_DESC - UPDATED_AT_ASC - UPDATED_AT_DESC NAME_ASC NAME_DESC + PROVIDER_ASC + PROVIDER_DESC + NAMESPACE_ID_ASC + NAMESPACE_ID_DESC DESCRIPTION_ASC DESCRIPTION_DESC - DEFAULT_VALUE_ASC - DEFAULT_VALUE_DESC - IS_BUILT_IN_ASC - IS_BUILT_IN_DESC LABELS_ASC LABELS_DESC ANNOTATIONS_ASC ANNOTATIONS_DESC + CREATED_AT_ASC + CREATED_AT_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC + ROTATED_AT_ASC + ROTATED_AT_DESC + RETIRED_AT_ASC + RETIRED_AT_DESC } -"""A connection to a list of `PlatformConfig` values.""" -type PlatformConfigConnection { - """A list of `PlatformConfig` objects.""" - nodes: [PlatformConfig]! +"""A connection to a list of `Secret` values.""" +type SecretConnection { + """A list of `Secret` objects.""" + nodes: [Secret]! """ - A list of edges which contains the `PlatformConfig` and cursor to aid in pagination. + A list of edges which contains the `Secret` and cursor to aid in pagination. """ - edges: [PlatformConfigEdge]! + edges: [SecretEdge]! """Information to aid in pagination.""" pageInfo: PageInfo! - """The count of *all* `PlatformConfig` you could get from the connection.""" + """The count of *all* `Secret` you could get from the connection.""" totalCount: Int! } -""" -App-level plaintext key-value config store (like a k8s ConfigMap); admin-only, fully CRUD-exposed -""" -type PlatformConfig { - """Unique identifier for this config entry""" - id: UUID! - - """FK to namespaces — logical grouping for config entries""" - namespaceId: UUID! - - """Key name identifying the config entry""" - name: String! - - """Plaintext config value""" - value: String - - """Key/value pairs for selecting/filtering config entries""" - labels: JSON! - - """Freeform metadata for tooling and operational notes""" - annotations: JSON! - - """Human-readable note about this config entry""" +type Secret { + databaseId: UUID + id: UUID + name: String + provider: String + namespaceId: UUID description: String + labels: JSON + annotations: JSON createdAt: Datetime updatedAt: Datetime - - """Optional expiration timestamp for time-limited config entries""" - expiresAt: Datetime + rotatedAt: Datetime + retiredAt: Datetime } -"""A `PlatformConfig` edge in the connection.""" -type PlatformConfigEdge { +"""A `Secret` edge in the connection.""" +type SecretEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `PlatformConfig` at the end of the edge.""" - node: PlatformConfig + """The `Secret` at the end of the edge.""" + node: Secret } """ -A filter to be used against `PlatformConfig` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `Secret` object types. All fields are combined with a logical ‘and.’ """ -input PlatformConfigFilter { +input SecretFilter { + """Filter by the object’s `databaseId` field.""" + databaseId: UUIDFilter + """Filter by the object’s `id` field.""" id: UUIDFilter - """Filter by the object’s `namespaceId` field.""" - namespaceId: UUIDFilter - """Filter by the object’s `name` field.""" name: StringFilter - """Filter by the object’s `value` field.""" - value: StringFilter + """Filter by the object’s `provider` field.""" + provider: StringFilter + + """Filter by the object’s `namespaceId` field.""" + namespaceId: UUIDFilter + + """Filter by the object’s `description` field.""" + description: StringFilter """Filter by the object’s `labels` field.""" labels: JSONFilter @@ -619,53 +1040,55 @@ input PlatformConfigFilter { """Filter by the object’s `annotations` field.""" annotations: JSONFilter - """Filter by the object’s `description` field.""" - description: StringFilter - """Filter by the object’s `createdAt` field.""" createdAt: DatetimeFilter """Filter by the object’s `updatedAt` field.""" updatedAt: DatetimeFilter - """Filter by the object’s `expiresAt` field.""" - expiresAt: DatetimeFilter + """Filter by the object’s `rotatedAt` field.""" + rotatedAt: DatetimeFilter + + """Filter by the object’s `retiredAt` field.""" + retiredAt: DatetimeFilter """Checks for all expressions in this list.""" - and: [PlatformConfigFilter!] + and: [SecretFilter!] """Checks for any expressions in this list.""" - or: [PlatformConfigFilter!] + or: [SecretFilter!] """Negates the expression.""" - not: PlatformConfigFilter + not: SecretFilter } -"""Methods to use when ordering `PlatformConfig`.""" -enum PlatformConfigOrderBy { +"""Methods to use when ordering `Secret`.""" +enum SecretOrderBy { NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC ID_ASC ID_DESC - NAMESPACE_ID_ASC - NAMESPACE_ID_DESC NAME_ASC NAME_DESC - VALUE_ASC - VALUE_DESC + PROVIDER_ASC + PROVIDER_DESC + NAMESPACE_ID_ASC + NAMESPACE_ID_DESC + DESCRIPTION_ASC + DESCRIPTION_DESC LABELS_ASC LABELS_DESC ANNOTATIONS_ASC ANNOTATIONS_DESC - DESCRIPTION_ASC - DESCRIPTION_DESC CREATED_AT_ASC CREATED_AT_DESC UPDATED_AT_ASC UPDATED_AT_DESC - EXPIRES_AT_ASC - EXPIRES_AT_DESC + ROTATED_AT_ASC + ROTATED_AT_DESC + RETIRED_AT_ASC + RETIRED_AT_DESC } """Root meta schema type""" @@ -918,80 +1341,118 @@ type MetaRealtime { The root mutation type which contains root level fields which mutate data. """ type Mutation { + platformInternalSecretsDel( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: PlatformInternalSecretsDelInput! + ): PlatformInternalSecretsDelPayload platformSecretsDel( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ input: PlatformSecretsDelInput! ): PlatformSecretsDelPayload - orgSecretsDel( + _secretsDel( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: _SecretsDelInput! + ): _SecretsDelPayload + platformInternalSecretsRemoveArray( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: OrgSecretsDelInput! - ): OrgSecretsDelPayload + input: PlatformInternalSecretsRemoveArrayInput! + ): PlatformInternalSecretsRemoveArrayPayload platformSecretsRemoveArray( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ input: PlatformSecretsRemoveArrayInput! ): PlatformSecretsRemoveArrayPayload - orgSecretsRemoveArray( + _secretsRemoveArray( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: _SecretsRemoveArrayInput! + ): _SecretsRemoveArrayPayload + platformInternalSecretsRotate( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: PlatformInternalSecretsRotateInput! + ): PlatformInternalSecretsRotatePayload + platformInternalSecretsSet( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: OrgSecretsRemoveArrayInput! - ): OrgSecretsRemoveArrayPayload + input: PlatformInternalSecretsSetInput! + ): PlatformInternalSecretsSetPayload platformSecretsRotate( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ input: PlatformSecretsRotateInput! ): PlatformSecretsRotatePayload + _secretsRotate( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: _SecretsRotateInput! + ): _SecretsRotatePayload platformSecretsSet( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ input: PlatformSecretsSetInput! ): PlatformSecretsSetPayload - orgSecretsRotate( + _secretsSet( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: _SecretsSetInput! + ): _SecretsSetPayload + + """Creates a single `PlatformConfig`.""" + createPlatformConfig( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: OrgSecretsRotateInput! - ): OrgSecretsRotatePayload - orgSecretsSet( + input: CreatePlatformConfigInput! + ): CreatePlatformConfigPayload + + """Creates a single `Config`.""" + createConfig( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: OrgSecretsSetInput! - ): OrgSecretsSetPayload + input: CreateConfigInput! + ): CreateConfigPayload - """Creates a single `PlatformConfigDefinition`.""" - createPlatformConfigDefinition( + """Creates a single `PlatformInternalSecret`.""" + createPlatformInternalSecret( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: CreatePlatformConfigDefinitionInput! - ): CreatePlatformConfigDefinitionPayload + input: CreatePlatformInternalSecretInput! + ): CreatePlatformInternalSecretPayload - """Creates a single `PlatformConfig`.""" - createPlatformConfig( + """Creates a single `PlatformSecret`.""" + createPlatformSecret( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: CreatePlatformConfigInput! - ): CreatePlatformConfigPayload + input: CreatePlatformSecretInput! + ): CreatePlatformSecretPayload - """ - Updates a single `PlatformConfigDefinition` using a unique key and a patch. - """ - updatePlatformConfigDefinition( + """Creates a single `Secret`.""" + createSecret( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: UpdatePlatformConfigDefinitionInput! - ): UpdatePlatformConfigDefinitionPayload + input: CreateSecretInput! + ): CreateSecretPayload """Updates a single `PlatformConfig` using a unique key and a patch.""" updatePlatformConfig( @@ -1001,13 +1462,13 @@ type Mutation { input: UpdatePlatformConfigInput! ): UpdatePlatformConfigPayload - """Deletes a single `PlatformConfigDefinition` using a unique key.""" - deletePlatformConfigDefinition( + """Updates a single `Config` using a unique key and a patch.""" + updateConfig( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: DeletePlatformConfigDefinitionInput! - ): DeletePlatformConfigDefinitionPayload + input: UpdateConfigInput! + ): UpdateConfigPayload """Deletes a single `PlatformConfig` using a unique key.""" deletePlatformConfig( @@ -1017,22 +1478,80 @@ type Mutation { input: DeletePlatformConfigInput! ): DeletePlatformConfigPayload + """Deletes a single `Config` using a unique key.""" + deleteConfig( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteConfigInput! + ): DeleteConfigPayload + """ 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 + provisionBucket( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: ProvisionBucketInput! + ): ProvisionBucketPayload +} + +"""The output of our `platformInternalSecretsDel` mutation.""" +type PlatformInternalSecretsDelPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by 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 `platformInternalSecretsDel` mutation.""" +input PlatformInternalSecretsDelInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + secretName: String + namespaceId: UUID +} + +"""The output of our `platformSecretsDel` mutation.""" +type PlatformSecretsDelPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by 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 `platformSecretsDel` mutation.""" +input PlatformSecretsDelInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + secretName: String + namespaceId: UUID } -"""The output of our `platformSecretsDel` mutation.""" -type PlatformSecretsDelPayload { +"""The output of our `_secretsDel` mutation.""" +type _SecretsDelPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. @@ -1045,19 +1564,20 @@ type PlatformSecretsDelPayload { query: Query } -"""All input for the `platformSecretsDel` mutation.""" -input PlatformSecretsDelInput { +"""All input for the `_secretsDel` mutation.""" +input _SecretsDelInput { """ An arbitrary 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 secretName: String namespaceId: UUID } -"""The output of our `orgSecretsDel` mutation.""" -type OrgSecretsDelPayload { +"""The output of our `platformInternalSecretsRemoveArray` mutation.""" +type PlatformInternalSecretsRemoveArrayPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. @@ -1070,15 +1590,14 @@ type OrgSecretsDelPayload { query: Query } -"""All input for the `orgSecretsDel` mutation.""" -input OrgSecretsDelInput { +"""All input for the `platformInternalSecretsRemoveArray` mutation.""" +input PlatformInternalSecretsRemoveArrayInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - ownerId: UUID - secretName: String + secretNames: [String] namespaceId: UUID } @@ -1107,8 +1626,8 @@ input PlatformSecretsRemoveArrayInput { namespaceId: UUID } -"""The output of our `orgSecretsRemoveArray` mutation.""" -type OrgSecretsRemoveArrayPayload { +"""The output of our `_secretsRemoveArray` mutation.""" +type _SecretsRemoveArrayPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. @@ -1121,20 +1640,20 @@ type OrgSecretsRemoveArrayPayload { query: Query } -"""All input for the `orgSecretsRemoveArray` mutation.""" -input OrgSecretsRemoveArrayInput { +"""All input for the `_secretsRemoveArray` mutation.""" +input _SecretsRemoveArrayInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - ownerId: UUID + databaseId: UUID secretNames: [String] namespaceId: UUID } -"""The output of our `platformSecretsRotate` mutation.""" -type PlatformSecretsRotatePayload { +"""The output of our `platformInternalSecretsRotate` mutation.""" +type PlatformInternalSecretsRotatePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. @@ -1148,8 +1667,8 @@ type PlatformSecretsRotatePayload { query: Query } -"""All input for the `platformSecretsRotate` mutation.""" -input PlatformSecretsRotateInput { +"""All input for the `platformInternalSecretsRotate` mutation.""" +input PlatformInternalSecretsRotateInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -1161,8 +1680,8 @@ input PlatformSecretsRotateInput { algo: String } -"""The output of our `platformSecretsSet` mutation.""" -type PlatformSecretsSetPayload { +"""The output of our `platformInternalSecretsSet` mutation.""" +type PlatformInternalSecretsSetPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. @@ -1176,8 +1695,8 @@ type PlatformSecretsSetPayload { query: Query } -"""All input for the `platformSecretsSet` mutation.""" -input PlatformSecretsSetInput { +"""All input for the `platformInternalSecretsSet` mutation.""" +input PlatformInternalSecretsSetInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -1189,8 +1708,8 @@ input PlatformSecretsSetInput { algo: String } -"""The output of our `orgSecretsRotate` mutation.""" -type OrgSecretsRotatePayload { +"""The output of our `platformSecretsRotate` mutation.""" +type PlatformSecretsRotatePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. @@ -1204,22 +1723,21 @@ type OrgSecretsRotatePayload { query: Query } -"""All input for the `orgSecretsRotate` mutation.""" -input OrgSecretsRotateInput { +"""All input for the `platformSecretsRotate` mutation.""" +input PlatformSecretsRotateInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - ownerId: UUID secretName: String secretValue: String namespaceId: UUID algo: String } -"""The output of our `orgSecretsSet` mutation.""" -type OrgSecretsSetPayload { +"""The output of our `_secretsRotate` mutation.""" +type _SecretsRotatePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. @@ -1233,79 +1751,77 @@ type OrgSecretsSetPayload { query: Query } -"""All input for the `orgSecretsSet` mutation.""" -input OrgSecretsSetInput { +"""All input for the `_secretsRotate` mutation.""" +input _SecretsRotateInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - scopeOwnerId: UUID + databaseId: UUID secretName: String secretValue: String - secretNamespaceId: UUID + namespaceId: UUID algo: String } -"""The output of our create `PlatformConfigDefinition` mutation.""" -type CreatePlatformConfigDefinitionPayload { +"""The output of our `platformSecretsSet` mutation.""" +type PlatformSecretsSetPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - - """The `PlatformConfigDefinition` that was created by this mutation.""" - platformConfigDefinition: PlatformConfigDefinition + result: Boolean """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - - """An edge for our `PlatformConfigDefinition`. May be used by Relay 1.""" - platformConfigDefinitionEdge( - """The method to use when ordering `PlatformConfigDefinition`.""" - orderBy: [PlatformConfigDefinitionOrderBy!]! = [PRIMARY_KEY_ASC] - ): PlatformConfigDefinitionEdge } -"""All input for the create `PlatformConfigDefinition` mutation.""" -input CreatePlatformConfigDefinitionInput { +"""All input for the `platformSecretsSet` mutation.""" +input PlatformSecretsSetInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - - """The `PlatformConfigDefinition` to be created by this mutation.""" - platformConfigDefinition: PlatformConfigDefinitionInput! + secretName: String + secretValue: String + secretNamespaceId: UUID + algo: String + provider: String } -"""An input for mutations affecting `PlatformConfigDefinition`""" -input PlatformConfigDefinitionInput { - """Unique identifier for this config definition""" - id: UUID - createdAt: Datetime - updatedAt: Datetime - - """Config key name (must match config table name for resolution)""" - name: String! - - """Human-readable description of what this config key controls""" - description: String - - """Default value used when no config entry exists for a namespace""" - defaultValue: String - - """Whether this row was seeded as a built-in config definition""" - isBuiltIn: Boolean +"""The output of our `_secretsSet` mutation.""" +type _SecretsSetPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + result: Boolean - """Key-value metadata for filtering and grouping config definitions""" - labels: JSON + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} - """Freeform metadata annotations for config definitions""" - annotations: JSON +"""All input for the `_secretsSet` mutation.""" +input _SecretsSetInput { + """ + An arbitrary 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 + secretValue: String + secretNamespaceId: UUID + algo: String + provider: String } """The output of our create `PlatformConfig` mutation.""" @@ -1354,6 +1870,11 @@ input PlatformConfigInput { """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 + """Plaintext config value""" value: String @@ -1372,72 +1893,208 @@ input PlatformConfigInput { expiresAt: Datetime } -"""The output of our update `PlatformConfigDefinition` mutation.""" -type UpdatePlatformConfigDefinitionPayload { +"""The output of our create `Config` mutation.""" +type CreateConfigPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `PlatformConfigDefinition` that was updated by this mutation.""" - platformConfigDefinition: PlatformConfigDefinition + """The `Config` that was created by this mutation.""" + config: Config """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `PlatformConfigDefinition`. May be used by Relay 1.""" - platformConfigDefinitionEdge( - """The method to use when ordering `PlatformConfigDefinition`.""" - orderBy: [PlatformConfigDefinitionOrderBy!]! = [PRIMARY_KEY_ASC] - ): PlatformConfigDefinitionEdge + """An edge for our `Config`. May be used by Relay 1.""" + configEdge( + """The method to use when ordering `Config`.""" + orderBy: [ConfigOrderBy!]! = [PRIMARY_KEY_ASC] + ): ConfigEdge } -"""All input for the `updatePlatformConfigDefinition` mutation.""" -input UpdatePlatformConfigDefinitionInput { +"""All input for the create `Config` mutation.""" +input CreateConfigInput { """ An arbitrary 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 definition""" - id: UUID! + """The `Config` to be created by this mutation.""" + config: ConfigInput! +} + +"""An input for mutations affecting `Config`""" +input ConfigInput { + """Unique identifier for this config entry""" + id: UUID + + """FK to namespaces — logical grouping for config entries""" + namespaceId: UUID! + + """Database that owns this resource (database-scoped isolation)""" + databaseId: UUID! + + """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 + + """Plaintext config value""" + value: String + + """Key/value pairs for selecting/filtering config entries""" + labels: JSON + + """Freeform metadata for tooling and operational notes""" + annotations: JSON + + """Human-readable note about this config entry""" + description: String + createdAt: Datetime + updatedAt: Datetime + + """Optional expiration timestamp for time-limited config entries""" + expiresAt: Datetime +} +"""The output of our create `PlatformInternalSecret` mutation.""" +type CreatePlatformInternalSecretPayload { """ - An object where the defined keys will be set on the `PlatformConfigDefinition` being updated. + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `PlatformInternalSecret` that was created by this mutation.""" + platformInternalSecret: PlatformInternalSecret + + """ + Our root query field type. Allows us to run any query from our mutation payload. """ - platformConfigDefinitionPatch: PlatformConfigDefinitionPatch! + query: Query } -""" -Represents an update to a `PlatformConfigDefinition`. Fields that are set will be updated. -""" -input PlatformConfigDefinitionPatch { - """Unique identifier for this config definition""" +"""All input for the create `PlatformInternalSecret` mutation.""" +input CreatePlatformInternalSecretInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """The `PlatformInternalSecret` to be created by this mutation.""" + platformInternalSecret: PlatformInternalSecretInput! +} + +"""An input for mutations affecting `PlatformInternalSecret`""" +input PlatformInternalSecretInput { id: UUID + name: String + namespaceId: UUID + description: String + labels: JSON + annotations: JSON createdAt: Datetime updatedAt: Datetime + rotatedAt: Datetime + retiredAt: Datetime +} - """Config key name (must match config table name for resolution)""" - name: String +"""The output of our create `PlatformSecret` mutation.""" +type CreatePlatformSecretPayload { + """ + The 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 what this config key controls""" - description: String + """The `PlatformSecret` that was created by this mutation.""" + platformSecret: PlatformSecret - """Default value used when no config entry exists for a namespace""" - defaultValue: String + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + +"""All input for the create `PlatformSecret` mutation.""" +input CreatePlatformSecretInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String - """Whether this row was seeded as a built-in config definition""" - isBuiltIn: Boolean + """The `PlatformSecret` to be created by this mutation.""" + platformSecret: PlatformSecretInput! +} - """Key-value metadata for filtering and grouping config definitions""" +"""An input for mutations affecting `PlatformSecret`""" +input PlatformSecretInput { + id: UUID + name: String + provider: String + namespaceId: UUID + description: String labels: JSON + annotations: JSON + createdAt: Datetime + updatedAt: Datetime + rotatedAt: Datetime + retiredAt: Datetime +} + +"""The output of our create `Secret` mutation.""" +type CreateSecretPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `Secret` that was created by this mutation.""" + secret: Secret + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + +"""All input for the create `Secret` mutation.""" +input CreateSecretInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """The `Secret` to be created by this mutation.""" + secret: SecretInput! +} - """Freeform metadata annotations for config definitions""" +"""An input for mutations affecting `Secret`""" +input SecretInput { + databaseId: UUID + id: UUID + name: String + provider: String + namespaceId: UUID + description: String + labels: JSON annotations: JSON + createdAt: Datetime + updatedAt: Datetime + rotatedAt: Datetime + retiredAt: Datetime } """The output of our update `PlatformConfig` mutation.""" @@ -1493,6 +2150,11 @@ input PlatformConfigPatch { """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 + """Plaintext config value""" value: String @@ -1511,39 +2173,83 @@ input PlatformConfigPatch { expiresAt: Datetime } -"""The output of our delete `PlatformConfigDefinition` mutation.""" -type DeletePlatformConfigDefinitionPayload { +"""The output of our update `Config` mutation.""" +type UpdateConfigPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `PlatformConfigDefinition` that was deleted by this mutation.""" - platformConfigDefinition: PlatformConfigDefinition + """The `Config` that was updated by this mutation.""" + config: Config """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `PlatformConfigDefinition`. May be used by Relay 1.""" - platformConfigDefinitionEdge( - """The method to use when ordering `PlatformConfigDefinition`.""" - orderBy: [PlatformConfigDefinitionOrderBy!]! = [PRIMARY_KEY_ASC] - ): PlatformConfigDefinitionEdge + """An edge for our `Config`. May be used by Relay 1.""" + configEdge( + """The method to use when ordering `Config`.""" + orderBy: [ConfigOrderBy!]! = [PRIMARY_KEY_ASC] + ): ConfigEdge } -"""All input for the `deletePlatformConfigDefinition` mutation.""" -input DeletePlatformConfigDefinitionInput { +"""All input for the `updateConfig` mutation.""" +input UpdateConfigInput { """ An arbitrary 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 definition""" + """Unique identifier for this config entry""" id: UUID! + + """ + An object where the defined keys will be set on the `Config` being updated. + """ + configPatch: ConfigPatch! +} + +""" +Represents an update to a `Config`. Fields that are set will be updated. +""" +input ConfigPatch { + """Unique identifier for this config entry""" + id: UUID + + """FK to namespaces — logical grouping for config entries""" + namespaceId: UUID + + """Database that owns this resource (database-scoped isolation)""" + databaseId: UUID + + """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 + + """Plaintext config value""" + value: String + + """Key/value pairs for selecting/filtering config entries""" + labels: JSON + + """Freeform metadata for tooling and operational notes""" + annotations: JSON + + """Human-readable note about this config entry""" + description: String + createdAt: Datetime + updatedAt: Datetime + + """Optional expiration timestamp for time-limited config entries""" + expiresAt: Datetime } """The output of our delete `PlatformConfig` mutation.""" @@ -1581,6 +2287,41 @@ input DeletePlatformConfigInput { id: UUID! } +"""The output of our delete `Config` mutation.""" +type DeleteConfigPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `Config` that was deleted by this mutation.""" + config: Config + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `Config`. May be used by Relay 1.""" + configEdge( + """The method to use when ordering `Config`.""" + orderBy: [ConfigOrderBy!]! = [PRIMARY_KEY_ASC] + ): ConfigEdge +} + +"""All input for the `deleteConfig` mutation.""" +input DeleteConfigInput { + """ + An arbitrary 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! +} + input ProvisionBucketInput { """The logical bucket key (e.g., "public", "private")""" bucketKey: String! diff --git a/sdk/constructive-sdk/schemas/infra.graphql b/sdk/constructive-sdk/schemas/infra.graphql new file mode 100644 index 0000000000..d20672878f --- /dev/null +++ b/sdk/constructive-sdk/schemas/infra.graphql @@ -0,0 +1,4366 @@ +"""The root query type which gives access points into the data universe.""" +type Query { + """Reads and enables pagination through a set of `InfraGetAllRecord`.""" + infraGetAll( + sId: UUID + id: UUID + + """Only read the first `n` values of the set.""" + first: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set after (below) this cursor.""" + after: Cursor + ): InfraGetAllConnection + infraGetNodeAtPath(sId: UUID, id: UUID, path: [String]): InfraObject + + """Reads and enables pagination through a set of `InfraRef`.""" + infraRefs( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: InfraRefFilter + + """The method to use when ordering `InfraRef`.""" + orderBy: [InfraRefOrderBy!] = [PRIMARY_KEY_ASC] + ): InfraRefConnection + + """Reads and enables pagination through a set of `InfraStore`.""" + infraStores( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: InfraStoreFilter + + """The method to use when ordering `InfraStore`.""" + orderBy: [InfraStoreOrderBy!] = [PRIMARY_KEY_ASC] + ): InfraStoreConnection + + """Reads and enables pagination through a set of `InfraObject`.""" + infraObjects( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: InfraObjectFilter + + """The method to use when ordering `InfraObject`.""" + orderBy: [InfraObjectOrderBy!] = [PRIMARY_KEY_ASC] + ): InfraObjectConnection + + """Reads and enables pagination through a set of `InfraCommit`.""" + infraCommits( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: InfraCommitFilter + + """The method to use when ordering `InfraCommit`.""" + orderBy: [InfraCommitOrderBy!] = [PRIMARY_KEY_ASC] + ): InfraCommitConnection + + """Reads and enables pagination through a set of `DbPreset`.""" + dbPresets( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: DbPresetFilter + + """The method to use when ordering `DbPreset`.""" + orderBy: [DbPresetOrderBy!] = [PRIMARY_KEY_ASC] + ): DbPresetConnection + + """Reads and enables pagination through a set of `PlatformNamespace`.""" + platformNamespaces( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: PlatformNamespaceFilter + + """The method to use when ordering `PlatformNamespace`.""" + orderBy: [PlatformNamespaceOrderBy!] = [PRIMARY_KEY_ASC] + ): PlatformNamespaceConnection + + """Reads and enables pagination through a set of `Namespace`.""" + namespaces( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: NamespaceFilter + + """The method to use when ordering `Namespace`.""" + orderBy: [NamespaceOrderBy!] = [PRIMARY_KEY_ASC] + ): NamespaceConnection + + """ + Reads and enables pagination through a set of `PlatformNamespaceEvent`. + """ + platformNamespaceEvents( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: PlatformNamespaceEventFilter + + """The method to use when ordering `PlatformNamespaceEvent`.""" + orderBy: [PlatformNamespaceEventOrderBy!] = [PRIMARY_KEY_ASC] + ): PlatformNamespaceEventConnection + + """Reads and enables pagination through a set of `NamespaceEvent`.""" + namespaceEvents( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: NamespaceEventFilter + + """The method to use when ordering `NamespaceEvent`.""" + orderBy: [NamespaceEventOrderBy!] = [PRIMARY_KEY_ASC] + ): NamespaceEventConnection + + """ + Metadata about the database schema, including tables, fields, indexes, and constraints. Useful for code generation tools. + """ + _meta: MetaSchema +} + +"""A connection to a list of `InfraGetAllRecord` values.""" +type InfraGetAllConnection { + """A list of `InfraGetAllRecord` objects.""" + nodes: [InfraGetAllRecord]! + + """ + A list of edges which contains the `InfraGetAllRecord` and cursor to aid in pagination. + """ + edges: [InfraGetAllEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `InfraGetAllRecord` you could get from the connection. + """ + totalCount: Int! +} + +type InfraGetAllRecord { + path: [String] + data: JSON +} + +""" +Represents JSON values as specified by [ECMA-404](http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf). +""" +scalar JSON + +"""A `InfraGetAllRecord` edge in the connection.""" +type InfraGetAllEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `InfraGetAllRecord` at the end of the edge.""" + node: InfraGetAllRecord +} + +"""A location in a connection that can be used for resuming pagination.""" +scalar Cursor + +"""Information about pagination in a connection.""" +type PageInfo { + """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 + + """When paginating forwards, the cursor to continue.""" + endCursor: Cursor +} + +""" +A universally unique identifier as defined by [RFC 4122](https://tools.ietf.org/html/rfc4122). +""" +scalar UUID + +""" +Content-addressed Merkle tree objects keyed by UUID v5 hash of data + children +""" +type InfraObject { + """Content-addressed UUID v5 — deterministic hash of (data, kids, ktree)""" + id: UUID! + + """Opaque store partition key for the global tier""" + scopeId: UUID! + + """Ordered array of child object IDs""" + kids: [UUID] + + """Ordered array of child path names (parallel to kids)""" + ktree: [String] + + """Payload data for this object node""" + data: JSON + + """Timestamp of object creation""" + createdAt: Datetime +} + +""" +A point in time as described by the [ISO +8601](https://en.wikipedia.org/wiki/ISO_8601) and, if it has a timezone, [RFC +3339](https://datatracker.ietf.org/doc/html/rfc3339) standards. Input values +that do not conform to both ISO 8601 and RFC 3339 may be coerced, which may lead +to unexpected results. +""" +scalar Datetime + +"""A connection to a list of `InfraRef` values.""" +type InfraRefConnection { + """A list of `InfraRef` objects.""" + nodes: [InfraRef]! + + """ + A list of edges which contains the `InfraRef` and cursor to aid in pagination. + """ + edges: [InfraRefEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `InfraRef` you could get from the connection.""" + totalCount: Int! +} + +"""Branch heads — mutable pointers into the commit chain""" +type InfraRef { + """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! + + """Commit this ref points to""" + commitId: UUID +} + +"""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 { + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `name` field.""" + name: StringFilter + + """Filter by the object’s `scopeId` field.""" + scopeId: UUIDFilter + + """Filter by the object’s `storeId` field.""" + storeId: UUIDFilter + + """Filter by the object’s `commitId` field.""" + commitId: UUIDFilter + + """Checks for all expressions in this list.""" + and: [InfraRefFilter!] + + """Checks for any expressions in this list.""" + or: [InfraRefFilter!] + + """Negates the expression.""" + not: InfraRefFilter +} + +""" +A filter to be used against UUID fields. All fields are combined with a logical ‘and.’ +""" +input UUIDFilter { + """ + Is null (if `true` is specified) or is not null (if `false` is specified). + """ + isNull: Boolean + + """Equal to the specified value.""" + equalTo: UUID + + """Not equal to the specified value.""" + notEqualTo: UUID + + """ + Not equal to the specified value, treating null like an ordinary value. + """ + distinctFrom: UUID + + """Equal to the specified value, treating null like an ordinary value.""" + notDistinctFrom: UUID + + """Included in the specified list.""" + in: [UUID!] + + """Not included in the specified list.""" + notIn: [UUID!] + + """Less than the specified value.""" + lessThan: UUID + + """Less than or equal to the specified value.""" + lessThanOrEqualTo: UUID + + """Greater than the specified value.""" + greaterThan: UUID + + """Greater than or equal to the specified value.""" + greaterThanOrEqualTo: UUID +} + +""" +A filter to be used against String fields. All fields are combined with a logical ‘and.’ +""" +input StringFilter { + """ + Is null (if `true` is specified) or is not null (if `false` is specified). + """ + isNull: Boolean + + """Equal to the specified value.""" + equalTo: String + + """Not equal to the specified value.""" + notEqualTo: String + + """ + Not equal to the specified value, treating null like an ordinary value. + """ + distinctFrom: String + + """Equal to the specified value, treating null like an ordinary value.""" + notDistinctFrom: String + + """Included in the specified list.""" + in: [String!] + + """Not included in the specified list.""" + notIn: [String!] + + """Less than the specified value.""" + lessThan: String + + """Less than or equal to the specified value.""" + lessThanOrEqualTo: String + + """Greater than the specified value.""" + greaterThan: String + + """Greater than or equal to the specified value.""" + greaterThanOrEqualTo: String + + """Contains the specified string (case-sensitive).""" + includes: String + + """Does not contain the specified string (case-sensitive).""" + notIncludes: String + + """Contains the specified string (case-insensitive).""" + includesInsensitive: String + + """Does not contain the specified string (case-insensitive).""" + notIncludesInsensitive: String + + """Starts with the specified string (case-sensitive).""" + startsWith: String + + """Does not start with the specified string (case-sensitive).""" + notStartsWith: String + + """Starts with the specified string (case-insensitive).""" + startsWithInsensitive: String + + """Does not start with the specified string (case-insensitive).""" + notStartsWithInsensitive: String + + """Ends with the specified string (case-sensitive).""" + endsWith: String + + """Does not end with the specified string (case-sensitive).""" + notEndsWith: String + + """Ends with the specified string (case-insensitive).""" + endsWithInsensitive: String + + """Does not end with the specified string (case-insensitive).""" + notEndsWithInsensitive: String + + """ + Matches the specified pattern (case-sensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. + """ + like: String + + """ + Does not match the specified pattern (case-sensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. + """ + notLike: String + + """ + Matches the specified pattern (case-insensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. + """ + likeInsensitive: String + + """ + Does not match the specified pattern (case-insensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. + """ + notLikeInsensitive: String + + """Equal to the specified value (case-insensitive).""" + equalToInsensitive: String + + """Not equal to the specified value (case-insensitive).""" + notEqualToInsensitive: String + + """ + Not equal to the specified value, treating null like an ordinary value (case-insensitive). + """ + distinctFromInsensitive: String + + """ + Equal to the specified value, treating null like an ordinary value (case-insensitive). + """ + notDistinctFromInsensitive: String + + """Included in the specified list (case-insensitive).""" + inInsensitive: [String!] + + """Not included in the specified list (case-insensitive).""" + notInInsensitive: [String!] + + """Less than the specified value (case-insensitive).""" + lessThanInsensitive: String + + """Less than or equal to the specified value (case-insensitive).""" + lessThanOrEqualToInsensitive: String + + """Greater than the specified value (case-insensitive).""" + greaterThanInsensitive: String + + """Greater than or equal to the specified value (case-insensitive).""" + greaterThanOrEqualToInsensitive: String +} + +"""Methods to use when ordering `InfraRef`.""" +enum InfraRefOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + NAME_ASC + NAME_DESC + SCOPE_ID_ASC + SCOPE_ID_DESC + STORE_ID_ASC + STORE_ID_DESC + COMMIT_ID_ASC + COMMIT_ID_DESC +} + +"""A connection to a list of `InfraStore` values.""" +type InfraStoreConnection { + """A list of `InfraStore` objects.""" + nodes: [InfraStore]! + + """ + A list of edges which contains the `InfraStore` and cursor to aid in pagination. + """ + edges: [InfraStoreEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `InfraStore` you could get from the connection.""" + totalCount: Int! +} + +""" +Named stores — one per version-controlled tree (e.g. one graph, one definition set) +""" +type InfraStore { + """Unique store identifier""" + id: UUID! + + """Human-readable store name""" + name: String! + + """Opaque store partition key for the global tier""" + scopeId: UUID! + + """Current root object hash of this store""" + hash: UUID + + """Timestamp of store creation""" + createdAt: Datetime +} + +"""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 { + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `name` field.""" + name: StringFilter + + """Filter by the object’s `scopeId` field.""" + scopeId: UUIDFilter + + """Filter by the object’s `hash` field.""" + hash: UUIDFilter + + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter + + """Checks for all expressions in this list.""" + and: [InfraStoreFilter!] + + """Checks for any expressions in this list.""" + or: [InfraStoreFilter!] + + """Negates the expression.""" + not: InfraStoreFilter +} + +""" +A filter to be used against Datetime fields. All fields are combined with a logical ‘and.’ +""" +input DatetimeFilter { + """ + Is null (if `true` is specified) or is not null (if `false` is specified). + """ + isNull: Boolean + + """Equal to the specified value.""" + equalTo: Datetime + + """Not equal to the specified value.""" + notEqualTo: Datetime + + """ + Not equal to the specified value, treating null like an ordinary value. + """ + distinctFrom: Datetime + + """Equal to the specified value, treating null like an ordinary value.""" + notDistinctFrom: Datetime + + """Included in the specified list.""" + in: [Datetime!] + + """Not included in the specified list.""" + notIn: [Datetime!] + + """Less than the specified value.""" + lessThan: Datetime + + """Less than or equal to the specified value.""" + lessThanOrEqualTo: Datetime + + """Greater than the specified value.""" + greaterThan: Datetime + + """Greater than or equal to the specified value.""" + greaterThanOrEqualTo: Datetime +} + +"""Methods to use when ordering `InfraStore`.""" +enum InfraStoreOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + NAME_ASC + NAME_DESC + SCOPE_ID_ASC + SCOPE_ID_DESC + HASH_ASC + HASH_DESC + CREATED_AT_ASC + CREATED_AT_DESC +} + +"""A connection to a list of `InfraObject` values.""" +type InfraObjectConnection { + """A list of `InfraObject` objects.""" + nodes: [InfraObject]! + + """ + A list of edges which contains the `InfraObject` and cursor to aid in pagination. + """ + edges: [InfraObjectEdge]! + + """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 { + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `scopeId` field.""" + scopeId: UUIDFilter + + """Filter by the object’s `kids` field.""" + kids: UUIDListFilter + + """Filter by the object’s `ktree` field.""" + ktree: StringListFilter + + """Filter by the object’s `data` field.""" + data: JSONFilter + + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter + + """Checks for all expressions in this list.""" + and: [InfraObjectFilter!] + + """Checks for any expressions in this list.""" + or: [InfraObjectFilter!] + + """Negates the expression.""" + not: InfraObjectFilter +} + +""" +A filter to be used against UUID List fields. All fields are combined with a logical ‘and.’ +""" +input UUIDListFilter { + """ + Is null (if `true` is specified) or is not null (if `false` is specified). + """ + isNull: Boolean + + """Equal to the specified value.""" + equalTo: [UUID] + + """Not equal to the specified value.""" + notEqualTo: [UUID] + + """ + Not equal to the specified value, treating null like an ordinary value. + """ + distinctFrom: [UUID] + + """Equal to the specified value, treating null like an ordinary value.""" + notDistinctFrom: [UUID] + + """Less than the specified value.""" + lessThan: [UUID] + + """Less than or equal to the specified value.""" + lessThanOrEqualTo: [UUID] + + """Greater than the specified value.""" + greaterThan: [UUID] + + """Greater than or equal to the specified value.""" + greaterThanOrEqualTo: [UUID] + + """Contains the specified list of values.""" + contains: [UUID] + + """Contained by the specified list of values.""" + containedBy: [UUID] + + """Overlaps the specified list of values.""" + overlaps: [UUID] + + """Any array item is equal to the specified value.""" + anyEqualTo: UUID + + """Any array item is not equal to the specified value.""" + anyNotEqualTo: UUID + + """Any array item is less than the specified value.""" + anyLessThan: UUID + + """Any array item is less than or equal to the specified value.""" + anyLessThanOrEqualTo: UUID + + """Any array item is greater than the specified value.""" + anyGreaterThan: UUID + + """Any array item is greater than or equal to the specified value.""" + anyGreaterThanOrEqualTo: UUID +} + +""" +A filter to be used against String List fields. All fields are combined with a logical ‘and.’ +""" +input StringListFilter { + """ + Is null (if `true` is specified) or is not null (if `false` is specified). + """ + isNull: Boolean + + """Equal to the specified value.""" + equalTo: [String] + + """Not equal to the specified value.""" + notEqualTo: [String] + + """ + Not equal to the specified value, treating null like an ordinary value. + """ + distinctFrom: [String] + + """Equal to the specified value, treating null like an ordinary value.""" + notDistinctFrom: [String] + + """Less than the specified value.""" + lessThan: [String] + + """Less than or equal to the specified value.""" + lessThanOrEqualTo: [String] + + """Greater than the specified value.""" + greaterThan: [String] + + """Greater than or equal to the specified value.""" + greaterThanOrEqualTo: [String] + + """Contains the specified list of values.""" + contains: [String] + + """Contained by the specified list of values.""" + containedBy: [String] + + """Overlaps the specified list of values.""" + overlaps: [String] + + """Any array item is equal to the specified value.""" + anyEqualTo: String + + """Any array item is not equal to the specified value.""" + anyNotEqualTo: 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 greater than the specified value.""" + anyGreaterThan: String + + """Any array item is greater than or equal to the specified value.""" + anyGreaterThanOrEqualTo: String +} + +""" +A filter to be used against JSON fields. All fields are combined with a logical ‘and.’ +""" +input JSONFilter { + """ + Is null (if `true` is specified) or is not null (if `false` is specified). + """ + isNull: Boolean + + """Equal to the specified value.""" + equalTo: JSON + + """Not equal to the specified value.""" + notEqualTo: JSON + + """ + Not equal to the specified value, treating null like an ordinary value. + """ + distinctFrom: JSON + + """Equal to the specified value, treating null like an ordinary value.""" + notDistinctFrom: JSON + + """Included in the specified list.""" + in: [JSON!] + + """Not included in the specified list.""" + notIn: [JSON!] + + """Less than the specified value.""" + lessThan: JSON + + """Less than or equal to the specified value.""" + lessThanOrEqualTo: JSON + + """Greater than the specified value.""" + greaterThan: JSON + + """Greater than or equal to the specified value.""" + greaterThanOrEqualTo: JSON + + """Contains the specified JSON.""" + contains: JSON + + """Contains the specified key.""" + containsKey: String + + """Contains all of the specified keys.""" + containsAllKeys: [String!] + + """Contains any of the specified keys.""" + containsAnyKeys: [String!] + + """Contained by the specified JSON.""" + containedBy: JSON +} + +"""Methods to use when ordering `InfraObject`.""" +enum InfraObjectOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + SCOPE_ID_ASC + SCOPE_ID_DESC + KIDS_ASC + KIDS_DESC + KTREE_ASC + KTREE_DESC + DATA_ASC + DATA_DESC + CREATED_AT_ASC + CREATED_AT_DESC +} + +"""A connection to a list of `InfraCommit` values.""" +type InfraCommitConnection { + """A list of `InfraCommit` objects.""" + nodes: [InfraCommit]! + + """ + A list of edges which contains the `InfraCommit` and cursor to aid in pagination. + """ + edges: [InfraCommitEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `InfraCommit` you could get from the connection.""" + totalCount: Int! +} + +"""Commit history — each commit snapshots a tree root for a store""" +type InfraCommit { + """Unique commit identifier""" + id: UUID! + + """Optional commit message""" + message: String + + """Opaque store partition key for the global tier""" + scopeId: UUID! + + """Store this commit belongs to""" + storeId: UUID! + + """Parent commit IDs (supports merge commits)""" + parentIds: [UUID] + + """User who authored the changes""" + authorId: UUID + + """User who committed (may differ from author)""" + committerId: UUID + + """Root object ID of the tree snapshot at this commit""" + treeId: UUID + + """Commit timestamp""" + date: Datetime! +} + +"""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 { + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `message` field.""" + message: StringFilter + + """Filter by the object’s `scopeId` field.""" + scopeId: UUIDFilter + + """Filter by the object’s `storeId` field.""" + storeId: UUIDFilter + + """Filter by the object’s `parentIds` field.""" + parentIds: UUIDListFilter + + """Filter by the object’s `authorId` field.""" + authorId: UUIDFilter + + """Filter by the object’s `committerId` field.""" + committerId: UUIDFilter + + """Filter by the object’s `treeId` field.""" + treeId: UUIDFilter + + """Filter by the object’s `date` field.""" + date: DatetimeFilter + + """Checks for all expressions in this list.""" + and: [InfraCommitFilter!] + + """Checks for any expressions in this list.""" + or: [InfraCommitFilter!] + + """Negates the expression.""" + not: InfraCommitFilter +} + +"""Methods to use when ordering `InfraCommit`.""" +enum InfraCommitOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + MESSAGE_ASC + MESSAGE_DESC + SCOPE_ID_ASC + SCOPE_ID_DESC + STORE_ID_ASC + STORE_ID_DESC + PARENT_IDS_ASC + PARENT_IDS_DESC + AUTHOR_ID_ASC + AUTHOR_ID_DESC + COMMITTER_ID_ASC + COMMITTER_ID_DESC + TREE_ID_ASC + TREE_ID_DESC + DATE_ASC + DATE_DESC +} + +"""A connection to a list of `DbPreset` values.""" +type DbPresetConnection { + """A list of `DbPreset` objects.""" + nodes: [DbPreset]! + + """ + A list of edges which contains the `DbPreset` and cursor to aid in pagination. + """ + edges: [DbPresetEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `DbPreset` you could get from the connection.""" + totalCount: Int! +} + +""" +Database provisioning preset catalog — merkle-versioned head over the infra store +""" +type DbPreset { + """Unique preset identifier""" + id: UUID! + + """ + Infra Merkle store holding this preset's history (stamped by the versioned trigger) + """ + storeId: UUID + + """ + Preset slug (unique per scope); the preset's path in the infra tree is [db_preset, slug] + """ + slug: String! + + """ + Preset definition (modules + options) — the readily-cached head; history lives in the infra store + """ + definition: JSON! + + """ + Infra store commit for the current definition (stamped by the versioned trigger on every write) + """ + commitId: 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 + + """Human-readable preset name""" + label: String + + """Human-readable description of the preset""" + description: String + + """Whether this preset is selectable for new databases""" + active: Boolean! + + """Timestamp of preset creation""" + createdAt: Datetime! + + """Timestamp of last modification""" + updatedAt: Datetime! +} + +"""A `DbPreset` edge in the connection.""" +type DbPresetEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `DbPreset` at the end of the edge.""" + node: DbPreset +} + +""" +A filter to be used against `DbPreset` object types. All fields are combined with a logical ‘and.’ +""" +input DbPresetFilter { + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `storeId` field.""" + storeId: UUIDFilter + + """Filter by the object’s `slug` field.""" + slug: StringFilter + + """Filter by the object’s `definition` field.""" + definition: JSONFilter + + """Filter by the object’s `commitId` field.""" + commitId: UUIDFilter + + """Filter by the object’s `modulesHash` field.""" + modulesHash: UUIDFilter + + """Filter by the object’s `label` field.""" + label: StringFilter + + """Filter by the object’s `description` field.""" + description: StringFilter + + """Filter by the object’s `active` field.""" + active: BooleanFilter + + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter + + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter + + """Checks for all expressions in this list.""" + and: [DbPresetFilter!] + + """Checks for any expressions in this list.""" + or: [DbPresetFilter!] + + """Negates the expression.""" + not: DbPresetFilter +} + +""" +A filter to be used against Boolean fields. All fields are combined with a logical ‘and.’ +""" +input BooleanFilter { + """ + Is null (if `true` is specified) or is not null (if `false` is specified). + """ + isNull: Boolean + + """Equal to the specified value.""" + equalTo: Boolean + + """Not equal to the specified value.""" + notEqualTo: Boolean + + """ + Not equal to the specified value, treating null like an ordinary value. + """ + distinctFrom: Boolean + + """Equal to the specified value, treating null like an ordinary value.""" + notDistinctFrom: Boolean + + """Included in the specified list.""" + in: [Boolean!] + + """Not included in the specified list.""" + notIn: [Boolean!] + + """Less than the specified value.""" + lessThan: Boolean + + """Less than or equal to the specified value.""" + lessThanOrEqualTo: Boolean + + """Greater than the specified value.""" + greaterThan: Boolean + + """Greater than or equal to the specified value.""" + greaterThanOrEqualTo: Boolean +} + +"""Methods to use when ordering `DbPreset`.""" +enum DbPresetOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + STORE_ID_ASC + STORE_ID_DESC + SLUG_ASC + SLUG_DESC + DEFINITION_ASC + DEFINITION_DESC + COMMIT_ID_ASC + COMMIT_ID_DESC + MODULES_HASH_ASC + MODULES_HASH_DESC + LABEL_ASC + LABEL_DESC + DESCRIPTION_ASC + DESCRIPTION_DESC + ACTIVE_ASC + ACTIVE_DESC + CREATED_AT_ASC + CREATED_AT_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC +} + +"""A connection to a list of `PlatformNamespace` values.""" +type PlatformNamespaceConnection { + """A list of `PlatformNamespace` objects.""" + nodes: [PlatformNamespace]! + + """ + A list of edges which contains the `PlatformNamespace` and cursor to aid in pagination. + """ + edges: [PlatformNamespaceEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `PlatformNamespace` you could get from the connection. + """ + totalCount: Int! +} + +""" +Logical namespace containers for grouping secrets, config, functions, and other resources +""" +type PlatformNamespace { + id: UUID! + createdAt: Datetime + updatedAt: Datetime + + """Human-readable namespace name (e.g. default, production, oauth)""" + name: String! + + """ + Globally unique computed namespace identifier via inflection.underscore + """ + namespaceName: String! + + """Optional human-readable description of this namespace""" + description: String + + """Whether this namespace is active (soft-disable for filtering)""" + isActive: Boolean! + + """ + Namespace provisioning lifecycle status: pending, provisioning, active, failed + """ + status: String! + + """Most recent provisioning or reconcile error message""" + lastError: String + + """Key/value pairs for selecting and filtering namespaces""" + labels: JSON! + + """Freeform metadata for tooling and operational notes""" + annotations: JSON! + + """ + true = provisioned by the platform via jobs, false = unmanaged/platform-native (bootstrapped externally) + """ + isManaged: Boolean! +} + +"""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 +} + +""" +A filter to be used against `PlatformNamespace` object types. All fields are combined with a logical ‘and.’ +""" +input PlatformNamespaceFilter { + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter + + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter + + """Filter by the object’s `name` field.""" + name: StringFilter + + """Filter by the object’s `namespaceName` field.""" + namespaceName: StringFilter + + """Filter by the object’s `description` field.""" + description: StringFilter + + """Filter by the object’s `isActive` field.""" + isActive: BooleanFilter + + """Filter by the object’s `status` field.""" + status: StringFilter + + """Filter by the object’s `lastError` field.""" + lastError: StringFilter + + """Filter by the object’s `labels` field.""" + labels: JSONFilter + + """Filter by the object’s `annotations` field.""" + annotations: JSONFilter + + """Filter by the object’s `isManaged` field.""" + isManaged: BooleanFilter + + """Checks for all expressions in this list.""" + and: [PlatformNamespaceFilter!] + + """Checks for any expressions in this list.""" + or: [PlatformNamespaceFilter!] + + """Negates the expression.""" + not: PlatformNamespaceFilter +} + +"""Methods to use when ordering `PlatformNamespace`.""" +enum PlatformNamespaceOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + CREATED_AT_ASC + CREATED_AT_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC + NAME_ASC + NAME_DESC + NAMESPACE_NAME_ASC + NAMESPACE_NAME_DESC + DESCRIPTION_ASC + DESCRIPTION_DESC + IS_ACTIVE_ASC + IS_ACTIVE_DESC + STATUS_ASC + STATUS_DESC + LAST_ERROR_ASC + LAST_ERROR_DESC + LABELS_ASC + LABELS_DESC + ANNOTATIONS_ASC + ANNOTATIONS_DESC + IS_MANAGED_ASC + IS_MANAGED_DESC +} + +"""A connection to a list of `Namespace` values.""" +type NamespaceConnection { + """A list of `Namespace` objects.""" + nodes: [Namespace]! + + """ + A list of edges which contains the `Namespace` and cursor to aid in pagination. + """ + edges: [NamespaceEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `Namespace` you could get from the connection.""" + totalCount: Int! +} + +""" +Logical namespace containers for grouping secrets, config, functions, and other resources +""" +type Namespace { + id: UUID! + createdAt: Datetime + updatedAt: Datetime + + """Human-readable namespace name (e.g. default, production, oauth)""" + name: String! + + """ + Globally unique computed namespace identifier via inflection.underscore + """ + namespaceName: String! + + """Optional human-readable description of this namespace""" + description: String + + """Whether this namespace is active (soft-disable for filtering)""" + isActive: Boolean! + + """ + Namespace provisioning lifecycle status: pending, provisioning, active, failed + """ + status: String! + + """Most recent provisioning or reconcile error message""" + lastError: String + + """Key/value pairs for selecting and filtering namespaces""" + labels: JSON! + + """Freeform metadata for tooling and operational notes""" + annotations: JSON! + + """Database that owns this resource (database-scoped isolation)""" + databaseId: UUID! + + """ + true = provisioned by the platform via jobs, false = unmanaged/platform-native (bootstrapped externally) + """ + isManaged: Boolean! +} + +"""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 +} + +""" +A filter to be used against `Namespace` object types. All fields are combined with a logical ‘and.’ +""" +input NamespaceFilter { + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter + + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter + + """Filter by the object’s `name` field.""" + name: StringFilter + + """Filter by the object’s `namespaceName` field.""" + namespaceName: StringFilter + + """Filter by the object’s `description` field.""" + description: StringFilter + + """Filter by the object’s `isActive` field.""" + isActive: BooleanFilter + + """Filter by the object’s `status` field.""" + status: StringFilter + + """Filter by the object’s `lastError` field.""" + lastError: StringFilter + + """Filter by the object’s `labels` field.""" + labels: JSONFilter + + """Filter by the object’s `annotations` field.""" + annotations: JSONFilter + + """Filter by the object’s `databaseId` field.""" + databaseId: UUIDFilter + + """Filter by the object’s `isManaged` field.""" + isManaged: BooleanFilter + + """Checks for all expressions in this list.""" + and: [NamespaceFilter!] + + """Checks for any expressions in this list.""" + or: [NamespaceFilter!] + + """Negates the expression.""" + not: NamespaceFilter +} + +"""Methods to use when ordering `Namespace`.""" +enum NamespaceOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + CREATED_AT_ASC + CREATED_AT_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC + NAME_ASC + NAME_DESC + NAMESPACE_NAME_ASC + NAMESPACE_NAME_DESC + DESCRIPTION_ASC + DESCRIPTION_DESC + IS_ACTIVE_ASC + IS_ACTIVE_DESC + STATUS_ASC + STATUS_DESC + LAST_ERROR_ASC + LAST_ERROR_DESC + LABELS_ASC + LABELS_DESC + ANNOTATIONS_ASC + ANNOTATIONS_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC + IS_MANAGED_ASC + IS_MANAGED_DESC +} + +"""A connection to a list of `PlatformNamespaceEvent` values.""" +type PlatformNamespaceEventConnection { + """A list of `PlatformNamespaceEvent` objects.""" + nodes: [PlatformNamespaceEvent]! + + """ + A list of edges which contains the `PlatformNamespaceEvent` and cursor to aid in pagination. + """ + edges: [PlatformNamespaceEventEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `PlatformNamespaceEvent` you could get from the connection. + """ + totalCount: Int! +} + +""" +Namespace lifecycle events — audit log of creation, activation, deactivation, label changes +""" +type PlatformNamespaceEvent { + """Event timestamp (partition key)""" + createdAt: Datetime! + + """Unique event identifier""" + id: UUID! + + """Namespace this event belongs to""" + namespaceId: UUID! + + """ + Event type: created, activated, deactivated, labels_updated, annotations_updated, renamed + """ + eventType: String! + + """User who triggered this event (NULL for system/automated)""" + actorId: UUID + + """Human-readable description of the event""" + message: String + + """Structured context (old/new values, labels diff, etc.)""" + metadata: JSON + + """CPU usage in millicores at time of event""" + cpuMillicores: Int + + """Memory usage in bytes at time of event""" + memoryBytes: BigInt + + """Storage usage in bytes at time of event""" + storageBytes: BigInt + + """Network ingress in bytes during event window""" + networkIngressBytes: BigInt + + """Network egress in bytes during event window""" + networkEgressBytes: BigInt + + """Number of active pods in the namespace at time of event""" + podCount: Int + + """Additional resource metrics (gpu, replicas, quotas, etc.)""" + metrics: JSON +} + +""" +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 `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 `createdAt` field.""" + createdAt: DatetimeFilter + + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `namespaceId` field.""" + namespaceId: UUIDFilter + + """Filter by the object’s `eventType` field.""" + eventType: StringFilter + + """Filter by the object’s `actorId` field.""" + actorId: UUIDFilter + + """Filter by the object’s `message` field.""" + message: StringFilter + + """Filter by the object’s `metadata` field.""" + metadata: JSONFilter + + """Filter by the object’s `cpuMillicores` field.""" + cpuMillicores: IntFilter + + """Filter by the object’s `memoryBytes` field.""" + memoryBytes: BigIntFilter + + """Filter by the object’s `storageBytes` field.""" + storageBytes: BigIntFilter + + """Filter by the object’s `networkIngressBytes` field.""" + networkIngressBytes: BigIntFilter + + """Filter by the object’s `networkEgressBytes` field.""" + networkEgressBytes: BigIntFilter + + """Filter by the object’s `podCount` field.""" + podCount: IntFilter + + """Filter by the object’s `metrics` field.""" + metrics: JSONFilter + + """Checks for all expressions in this list.""" + and: [PlatformNamespaceEventFilter!] + + """Checks for any expressions in this list.""" + or: [PlatformNamespaceEventFilter!] + + """Negates the expression.""" + not: PlatformNamespaceEventFilter +} + +""" +A filter to be used against Int fields. All fields are combined with a logical ‘and.’ +""" +input IntFilter { + """ + Is null (if `true` is specified) or is not null (if `false` is specified). + """ + isNull: Boolean + + """Equal to the specified value.""" + equalTo: Int + + """Not equal to the specified value.""" + notEqualTo: Int + + """ + Not equal to the specified value, treating null like an ordinary value. + """ + distinctFrom: Int + + """Equal to the specified value, treating null like an ordinary value.""" + notDistinctFrom: Int + + """Included in the specified list.""" + in: [Int!] + + """Not included in the specified list.""" + notIn: [Int!] + + """Less than the specified value.""" + lessThan: Int + + """Less than or equal to the specified value.""" + lessThanOrEqualTo: Int + + """Greater than the specified value.""" + greaterThan: Int + + """Greater than or equal to the specified value.""" + greaterThanOrEqualTo: Int +} + +""" +A filter to be used against BigInt fields. All fields are combined with a logical ‘and.’ +""" +input BigIntFilter { + """ + Is null (if `true` is specified) or is not null (if `false` is specified). + """ + isNull: Boolean + + """Equal to the specified value.""" + equalTo: BigInt + + """Not equal to the specified value.""" + notEqualTo: BigInt + + """ + Not equal to the specified value, treating null like an ordinary value. + """ + distinctFrom: BigInt + + """Equal to the specified value, treating null like an ordinary value.""" + notDistinctFrom: BigInt + + """Included in the specified list.""" + in: [BigInt!] + + """Not included in the specified list.""" + notIn: [BigInt!] + + """Less than the specified value.""" + lessThan: BigInt + + """Less than or equal to the specified value.""" + lessThanOrEqualTo: BigInt + + """Greater than the specified value.""" + greaterThan: BigInt + + """Greater than or equal to the specified value.""" + greaterThanOrEqualTo: BigInt +} + +"""Methods to use when ordering `PlatformNamespaceEvent`.""" +enum PlatformNamespaceEventOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + CREATED_AT_ASC + CREATED_AT_DESC + ID_ASC + ID_DESC + NAMESPACE_ID_ASC + NAMESPACE_ID_DESC + EVENT_TYPE_ASC + EVENT_TYPE_DESC + ACTOR_ID_ASC + ACTOR_ID_DESC + MESSAGE_ASC + MESSAGE_DESC + METADATA_ASC + METADATA_DESC + CPU_MILLICORES_ASC + CPU_MILLICORES_DESC + MEMORY_BYTES_ASC + MEMORY_BYTES_DESC + STORAGE_BYTES_ASC + STORAGE_BYTES_DESC + NETWORK_INGRESS_BYTES_ASC + NETWORK_INGRESS_BYTES_DESC + NETWORK_EGRESS_BYTES_ASC + NETWORK_EGRESS_BYTES_DESC + POD_COUNT_ASC + POD_COUNT_DESC + METRICS_ASC + METRICS_DESC +} + +"""A connection to a list of `NamespaceEvent` values.""" +type NamespaceEventConnection { + """A list of `NamespaceEvent` objects.""" + nodes: [NamespaceEvent]! + + """ + A list of edges which contains the `NamespaceEvent` and cursor to aid in pagination. + """ + edges: [NamespaceEventEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `NamespaceEvent` you could get from the connection.""" + totalCount: Int! +} + +""" +Namespace lifecycle events — audit log of creation, activation, deactivation, label changes +""" +type NamespaceEvent { + """Event timestamp (partition key)""" + createdAt: Datetime! + + """Unique event identifier""" + id: UUID! + + """Namespace this event belongs to""" + namespaceId: UUID! + + """ + Event type: created, activated, deactivated, labels_updated, annotations_updated, renamed + """ + eventType: String! + + """User who triggered this event (NULL for system/automated)""" + actorId: UUID + + """Human-readable description of the event""" + message: String + + """Structured context (old/new values, labels diff, etc.)""" + metadata: JSON + + """CPU usage in millicores at time of event""" + cpuMillicores: Int + + """Memory usage in bytes at time of event""" + memoryBytes: BigInt + + """Storage usage in bytes at time of event""" + storageBytes: BigInt + + """Network ingress in bytes during event window""" + networkIngressBytes: BigInt + + """Network egress in bytes during event window""" + networkEgressBytes: BigInt + + """Number of active pods in the namespace at time of event""" + podCount: Int + + """Additional resource metrics (gpu, replicas, quotas, etc.)""" + metrics: JSON + + """Database that owns this resource (database-scoped isolation)""" + databaseId: UUID! +} + +"""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 `createdAt` field.""" + createdAt: DatetimeFilter + + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `namespaceId` field.""" + namespaceId: UUIDFilter + + """Filter by the object’s `eventType` field.""" + eventType: StringFilter + + """Filter by the object’s `actorId` field.""" + actorId: UUIDFilter + + """Filter by the object’s `message` field.""" + message: StringFilter + + """Filter by the object’s `metadata` field.""" + metadata: JSONFilter + + """Filter by the object’s `cpuMillicores` field.""" + cpuMillicores: IntFilter + + """Filter by the object’s `memoryBytes` field.""" + memoryBytes: BigIntFilter + + """Filter by the object’s `storageBytes` field.""" + storageBytes: BigIntFilter + + """Filter by the object’s `networkIngressBytes` field.""" + networkIngressBytes: BigIntFilter + + """Filter by the object’s `networkEgressBytes` field.""" + networkEgressBytes: BigIntFilter + + """Filter by the object’s `podCount` field.""" + podCount: IntFilter + + """Filter by the object’s `metrics` field.""" + metrics: JSONFilter + + """Filter by the object’s `databaseId` field.""" + databaseId: UUIDFilter + + """Checks for all expressions in this list.""" + and: [NamespaceEventFilter!] + + """Checks for any expressions in this list.""" + or: [NamespaceEventFilter!] + + """Negates the expression.""" + not: NamespaceEventFilter +} + +"""Methods to use when ordering `NamespaceEvent`.""" +enum NamespaceEventOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + CREATED_AT_ASC + CREATED_AT_DESC + ID_ASC + ID_DESC + NAMESPACE_ID_ASC + NAMESPACE_ID_DESC + EVENT_TYPE_ASC + EVENT_TYPE_DESC + ACTOR_ID_ASC + ACTOR_ID_DESC + MESSAGE_ASC + MESSAGE_DESC + METADATA_ASC + METADATA_DESC + CPU_MILLICORES_ASC + CPU_MILLICORES_DESC + MEMORY_BYTES_ASC + MEMORY_BYTES_DESC + STORAGE_BYTES_ASC + STORAGE_BYTES_DESC + NETWORK_INGRESS_BYTES_ASC + NETWORK_INGRESS_BYTES_DESC + NETWORK_EGRESS_BYTES_ASC + NETWORK_EGRESS_BYTES_DESC + POD_COUNT_ASC + POD_COUNT_DESC + METRICS_ASC + METRICS_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC +} + +"""Root meta schema type""" +type MetaSchema { + tables: [MetaTable!]! +} + +"""Information about a database table""" +type MetaTable { + name: String! + schemaName: String! + fields: [MetaField!]! + indexes: [MetaIndex!]! + constraints: MetaConstraints! + foreignKeyConstraints: [MetaForeignKeyConstraint!]! + primaryKeyConstraints: [MetaPrimaryKeyConstraint!]! + uniqueConstraints: [MetaUniqueConstraint!]! + relations: MetaRelations! + inflection: MetaInflection! + query: MetaQuery! + + """Storage metadata (null if not a storage table)""" + storage: MetaStorage + + """Search metadata (null if no search configured)""" + search: MetaSearch + + """i18n metadata (null if no @i18n tag)""" + i18n: MetaI18n + + """Realtime metadata (null if no @realtime tag)""" + realtime: MetaRealtime +} + +"""Information about a table field/column""" +type MetaField { + name: String! + type: MetaType! + isNotNull: Boolean! + hasDefault: Boolean! + isPrimaryKey: Boolean! + isForeignKey: Boolean! + description: String + + """Enum metadata if this field has an enum type""" + enumValues: MetaEnum +} + +"""Information about a PostgreSQL type""" +type MetaType { + pgType: String! + gqlType: String! + isArray: Boolean! + isNotNull: Boolean + hasDefault: Boolean + subtype: String +} + +"""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 database index""" +type MetaIndex { + name: String! + isUnique: Boolean! + isPrimary: Boolean! + columns: [String!]! + fields: [MetaField!] +} + +"""Table constraints""" +type MetaConstraints { + primaryKey: MetaPrimaryKeyConstraint + unique: [MetaUniqueConstraint!]! + foreignKey: [MetaForeignKeyConstraint!]! +} + +"""Information about a primary key constraint""" +type MetaPrimaryKeyConstraint { + name: String! + fields: [MetaField!]! +} + +"""Information about a unique constraint""" +type MetaUniqueConstraint { + name: String! + fields: [MetaField!]! +} + +"""Information about a foreign key constraint""" +type MetaForeignKeyConstraint { + name: String! + fields: [MetaField!]! + referencedTable: String! + referencedFields: [String!]! + refFields: [MetaField!] + refTable: MetaRefTable +} + +"""Reference to a related table""" +type MetaRefTable { + name: String! +} + +"""Table relations""" +type MetaRelations { + belongsTo: [MetaBelongsToRelation!]! + has: [MetaHasRelation!]! + hasOne: [MetaHasRelation!]! + hasMany: [MetaHasRelation!]! + manyToMany: [MetaManyToManyRelation!]! +} + +"""A belongs-to (forward FK) relation""" +type MetaBelongsToRelation { + fieldName: String + isUnique: Boolean! + type: String + keys: [MetaField!]! + references: MetaRefTable! +} + +"""A has-one or has-many (reverse FK) relation""" +type MetaHasRelation { + fieldName: String + isUnique: Boolean! + type: String + keys: [MetaField!]! + referencedBy: MetaRefTable! +} + +"""A many-to-many relation via junction table""" +type MetaManyToManyRelation { + fieldName: String + type: String + junctionTable: MetaRefTable! + junctionLeftConstraint: MetaForeignKeyConstraint! + junctionLeftKeyAttributes: [MetaField!]! + junctionRightConstraint: MetaForeignKeyConstraint! + junctionRightKeyAttributes: [MetaField!]! + leftKeyAttributes: [MetaField!]! + rightKeyAttributes: [MetaField!]! + rightTable: MetaRefTable! +} + +"""Table inflection names""" +type MetaInflection { + tableType: String! + allRows: String! + connection: String! + edge: String! + filterType: String + orderByType: String! + conditionType: String! + patchType: String + createInputType: String! + createPayloadType: String! + updatePayloadType: String + deletePayloadType: String! +} + +"""Table query/mutation names""" +type MetaQuery { + all: String! + one: String + create: String + update: String + delete: String +} + +"""Storage metadata for a table""" +type MetaStorage { + """Whether this table is a storage files table""" + isFilesTable: Boolean! + + """Whether this table is a storage buckets table""" + isBucketsTable: Boolean! +} + +"""Search metadata for a table""" +type MetaSearch { + """Active search algorithms on this table""" + algorithms: [String!]! + + """Searchable columns with their algorithm""" + columns: [MetaSearchColumn!]! + + """Whether unifiedSearch composite filter is available""" + hasUnifiedSearch: Boolean! + + """Per-table search configuration""" + config: MetaSearchConfig +} + +"""A searchable column with its algorithm""" +type MetaSearchColumn { + """Column name (camelCase)""" + name: String! + + """Search algorithm: tsvector, bm25, trgm, or vector""" + algorithm: String! +} + +"""Per-table search configuration from @searchConfig smart tag""" +type MetaSearchConfig { + """JSON-encoded per-adapter score weights""" + weights: String + + """Whether recency boosting is enabled""" + boostRecent: Boolean! + + """Field used for recency decay""" + boostRecencyField: String + + """Exponential decay factor per day""" + boostRecencyDecay: Float +} + +"""i18n metadata for a table with @i18n tag""" +type MetaI18n { + """Name of the translation table""" + translationTable: String! + + """Fields that are translatable""" + translatableFields: [MetaI18nField!]! +} + +"""A translatable field""" +type MetaI18nField { + """GraphQL field name""" + name: String! + + """PostgreSQL column type (text, citext)""" + type: String! +} + +"""Realtime metadata for a table with @realtime tag""" +type MetaRealtime { + """The generated subscription field name (e.g. onPostChanged)""" + subscriptionFieldName: String! +} + +""" +The root mutation type which contains root level fields which mutate data. +""" +type Mutation { + infraInitEmptyRepo( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: InfraInitEmptyRepoInput! + ): InfraInitEmptyRepoPayload + infraSetDataAtPath( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: InfraSetDataAtPathInput! + ): InfraSetDataAtPathPayload + infraInsertNodeAtPath( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: InfraInsertNodeAtPathInput! + ): InfraInsertNodeAtPathPayload + + """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 `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 `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 `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 `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 `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 `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 `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 + + """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 `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 `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 `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 `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 `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 `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 `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 + + """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 `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 `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 `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 `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 `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 `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 `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 + + """ + 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 +} + +"""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 `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 `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 + result: UUID + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + +"""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 + sId: UUID + root: UUID + path: [String] + data: JSON +} + +"""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 + result: UUID + + """ + 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 + sId: UUID + root: UUID + path: [String] + data: JSON + kids: [UUID] + ktree: [String] +} + +"""The output of our create `InfraRef` mutation.""" +type CreateInfraRefPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `InfraRef` that was created by this mutation.""" + infraRef: InfraRef + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """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 +} + +"""All input for the create `InfraRef` mutation.""" +input CreateInfraRefInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """The `InfraRef` to be created by this mutation.""" + infraRef: InfraRefInput! +} + +"""An input for mutations affecting `InfraRef`""" +input InfraRefInput { + """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! + + """Commit this ref points to""" + commitId: UUID +} + +"""The output of our create `InfraStore` mutation.""" +type CreateInfraStorePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `InfraStore` that was created by this mutation.""" + infraStore: InfraStore + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """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 +} + +"""All input for the create `InfraStore` mutation.""" +input CreateInfraStoreInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """The `InfraStore` to be created by this mutation.""" + infraStore: InfraStoreInput! +} + +"""An input for mutations affecting `InfraStore`""" +input InfraStoreInput { + """Unique store identifier""" + id: UUID + + """Human-readable store name""" + name: String! + + """Opaque store partition key for the global tier""" + scopeId: UUID! + + """Current root object hash of this store""" + hash: UUID + + """Timestamp of store creation""" + createdAt: Datetime +} + +"""The output of our create `InfraObject` mutation.""" +type CreateInfraObjectPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `InfraObject` that was created by this mutation.""" + infraObject: InfraObject + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """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 +} + +"""All input for the create `InfraObject` mutation.""" +input CreateInfraObjectInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """The `InfraObject` to be created by this mutation.""" + infraObject: InfraObjectInput! +} + +"""An input for mutations affecting `InfraObject`""" +input InfraObjectInput { + """Content-addressed UUID v5 — deterministic hash of (data, kids, ktree)""" + id: UUID! + + """Opaque store partition key for the global tier""" + scopeId: UUID! + + """Ordered array of child object IDs""" + kids: [UUID] + + """Ordered array of child path names (parallel to kids)""" + ktree: [String] + + """Payload data for this object node""" + data: JSON + + """Timestamp of object creation""" + createdAt: Datetime +} + +"""The output of our create `InfraCommit` mutation.""" +type CreateInfraCommitPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `InfraCommit` that was created by this mutation.""" + infraCommit: InfraCommit + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """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 +} + +"""All input for the create `InfraCommit` mutation.""" +input CreateInfraCommitInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """The `InfraCommit` to be created by this mutation.""" + infraCommit: InfraCommitInput! +} + +"""An input for mutations affecting `InfraCommit`""" +input InfraCommitInput { + """Unique commit identifier""" + id: UUID + + """Optional commit message""" + message: String + + """Opaque store partition key for the global tier""" + scopeId: UUID! + + """Store this commit belongs to""" + storeId: UUID! + + """Parent commit IDs (supports merge commits)""" + parentIds: [UUID] + + """User who authored the changes""" + authorId: UUID + + """User who committed (may differ from author)""" + committerId: UUID + + """Root object ID of the tree snapshot at this commit""" + treeId: UUID + + """Commit timestamp""" + date: Datetime +} + +"""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 + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """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 +} + +"""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! +} + +"""An input for mutations affecting `DbPreset`""" +input DbPresetInput { + """Unique preset identifier""" + id: UUID + + """ + Infra Merkle store holding this preset's history (stamped by the versioned trigger) + """ + storeId: UUID + + """ + Preset slug (unique per scope); the preset's path in the infra tree is [db_preset, slug] + """ + slug: String! + + """ + Preset definition (modules + options) — the readily-cached head; history lives in the infra store + """ + definition: JSON! + + """ + Infra store commit for the current definition (stamped by the versioned trigger on every write) + """ + commitId: 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 + + """Human-readable preset name""" + label: String + + """Human-readable description of the preset""" + description: String + + """Whether this preset is selectable for new databases""" + active: Boolean + + """Timestamp of preset creation""" + createdAt: Datetime + + """Timestamp of last modification""" + updatedAt: Datetime +} + +"""The output of our create `PlatformNamespace` mutation.""" +type CreatePlatformNamespacePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `PlatformNamespace` that was created by this mutation.""" + platformNamespace: PlatformNamespace + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """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 +} + +"""All input for the create `PlatformNamespace` mutation.""" +input CreatePlatformNamespaceInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """The `PlatformNamespace` to be created by this mutation.""" + platformNamespace: PlatformNamespaceInput! +} + +"""An input for mutations affecting `PlatformNamespace`""" +input PlatformNamespaceInput { + id: UUID + createdAt: Datetime + updatedAt: Datetime + + """Human-readable namespace name (e.g. default, production, oauth)""" + name: String! + + """ + Globally unique computed namespace identifier via inflection.underscore + """ + namespaceName: String! + + """Optional human-readable description of this namespace""" + description: String + + """Whether this namespace is active (soft-disable for filtering)""" + isActive: Boolean + + """ + Namespace provisioning lifecycle status: pending, provisioning, active, failed + """ + status: String + + """Most recent provisioning or reconcile error message""" + lastError: String + + """Key/value pairs for selecting and filtering namespaces""" + labels: JSON + + """Freeform metadata for tooling and operational notes""" + annotations: JSON + + """ + true = provisioned by the platform via jobs, false = unmanaged/platform-native (bootstrapped externally) + """ + isManaged: Boolean +} + +"""The output of our create `Namespace` mutation.""" +type CreateNamespacePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `Namespace` that was created by this mutation.""" + namespace: Namespace + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """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 +} + +"""All input for the create `Namespace` mutation.""" +input CreateNamespaceInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """The `Namespace` to be created by this mutation.""" + namespace: NamespaceInput! +} + +"""An input for mutations affecting `Namespace`""" +input NamespaceInput { + id: UUID + createdAt: Datetime + updatedAt: Datetime + + """Human-readable namespace name (e.g. default, production, oauth)""" + name: String! + + """ + Globally unique computed namespace identifier via inflection.underscore + """ + namespaceName: String! + + """Optional human-readable description of this namespace""" + description: String + + """Whether this namespace is active (soft-disable for filtering)""" + isActive: Boolean + + """ + Namespace provisioning lifecycle status: pending, provisioning, active, failed + """ + status: String + + """Most recent provisioning or reconcile error message""" + lastError: String + + """Key/value pairs for selecting and filtering namespaces""" + labels: JSON + + """Freeform metadata for tooling and operational notes""" + annotations: JSON + + """Database that owns this resource (database-scoped isolation)""" + databaseId: UUID! + + """ + true = provisioned by the platform via jobs, false = unmanaged/platform-native (bootstrapped externally) + """ + isManaged: Boolean +} + +"""The output of our create `PlatformNamespaceEvent` mutation.""" +type CreatePlatformNamespaceEventPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `PlatformNamespaceEvent` that was created by this mutation.""" + platformNamespaceEvent: PlatformNamespaceEvent + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """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 +} + +"""All input for the create `PlatformNamespaceEvent` mutation.""" +input CreatePlatformNamespaceEventInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """The `PlatformNamespaceEvent` to be created by this mutation.""" + platformNamespaceEvent: PlatformNamespaceEventInput! +} + +"""An input for mutations affecting `PlatformNamespaceEvent`""" +input PlatformNamespaceEventInput { + """Event timestamp (partition key)""" + createdAt: Datetime + + """Unique event identifier""" + id: UUID + + """Namespace this event belongs to""" + namespaceId: UUID! + + """ + Event type: created, activated, deactivated, labels_updated, annotations_updated, renamed + """ + eventType: String! + + """User who triggered this event (NULL for system/automated)""" + actorId: UUID + + """Human-readable description of the event""" + message: String + + """Structured context (old/new values, labels diff, etc.)""" + metadata: JSON + + """CPU usage in millicores at time of event""" + cpuMillicores: Int + + """Memory usage in bytes at time of event""" + memoryBytes: BigInt + + """Storage usage in bytes at time of event""" + storageBytes: BigInt + + """Network ingress in bytes during event window""" + networkIngressBytes: BigInt + + """Network egress in bytes during event window""" + networkEgressBytes: BigInt + + """Number of active pods in the namespace at time of event""" + podCount: Int + + """Additional resource metrics (gpu, replicas, quotas, etc.)""" + metrics: JSON +} + +"""The output of our create `NamespaceEvent` mutation.""" +type CreateNamespaceEventPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `NamespaceEvent` that was created by this mutation.""" + namespaceEvent: NamespaceEvent + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """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 +} + +"""All input for the create `NamespaceEvent` mutation.""" +input CreateNamespaceEventInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """The `NamespaceEvent` to be created by this mutation.""" + namespaceEvent: NamespaceEventInput! +} + +"""An input for mutations affecting `NamespaceEvent`""" +input NamespaceEventInput { + """Event timestamp (partition key)""" + createdAt: Datetime + + """Unique event identifier""" + id: UUID + + """Namespace this event belongs to""" + namespaceId: UUID! + + """ + Event type: created, activated, deactivated, labels_updated, annotations_updated, renamed + """ + eventType: String! + + """User who triggered this event (NULL for system/automated)""" + actorId: UUID + + """Human-readable description of the event""" + message: String + + """Structured context (old/new values, labels diff, etc.)""" + metadata: JSON + + """CPU usage in millicores at time of event""" + cpuMillicores: Int + + """Memory usage in bytes at time of event""" + memoryBytes: BigInt + + """Storage usage in bytes at time of event""" + storageBytes: BigInt + + """Network ingress in bytes during event window""" + networkIngressBytes: BigInt + + """Network egress in bytes during event window""" + networkEgressBytes: BigInt + + """Number of active pods in the namespace at time of event""" + podCount: Int + + """Additional resource metrics (gpu, replicas, quotas, etc.)""" + metrics: JSON + + """Database that owns this resource (database-scoped isolation)""" + databaseId: UUID! +} + +"""The output of our update `InfraRef` mutation.""" +type UpdateInfraRefPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `InfraRef` that was updated by this mutation.""" + infraRef: InfraRef + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """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 +} + +"""All input for the `updateInfraRef` mutation.""" +input UpdateInfraRefInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """Unique ref identifier""" + id: UUID! + + """Opaque store partition key for the global tier""" + scopeId: UUID! + + """ + An object where the defined keys will be set on the `InfraRef` being updated. + """ + infraRefPatch: InfraRefPatch! +} + +""" +Represents an update to a `InfraRef`. Fields that are set will be updated. +""" +input InfraRefPatch { + """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 + + """Commit this ref points to""" + commitId: UUID +} + +"""The output of our update `InfraStore` mutation.""" +type UpdateInfraStorePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `InfraStore` that was updated by this mutation.""" + infraStore: InfraStore + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """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 +} + +"""All input for the `updateInfraStore` mutation.""" +input UpdateInfraStoreInput { + """ + An arbitrary 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! + + """ + An object where the defined keys will be set on the `InfraStore` being updated. + """ + infraStorePatch: InfraStorePatch! +} + +""" +Represents an update to a `InfraStore`. Fields that are set will be updated. +""" +input InfraStorePatch { + """Unique store identifier""" + id: UUID + + """Human-readable store name""" + name: String + + """Opaque store partition key for the global tier""" + scopeId: UUID + + """Current root object hash of this store""" + hash: UUID + + """Timestamp of store creation""" + createdAt: Datetime +} + +"""The output of our update `InfraObject` mutation.""" +type UpdateInfraObjectPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `InfraObject` that was updated by this mutation.""" + infraObject: InfraObject + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """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 +} + +"""All input for the `updateInfraObject` mutation.""" +input UpdateInfraObjectInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """Content-addressed UUID v5 — deterministic hash of (data, kids, ktree)""" + id: UUID! + + """Opaque store partition key for the global tier""" + scopeId: UUID! + + """ + An object where the defined keys will be set on the `InfraObject` being updated. + """ + infraObjectPatch: InfraObjectPatch! +} + +""" +Represents an update to a `InfraObject`. Fields that are set will be updated. +""" +input InfraObjectPatch { + """Content-addressed UUID v5 — deterministic hash of (data, kids, ktree)""" + id: UUID + + """Opaque store partition key for the global tier""" + scopeId: UUID + + """Ordered array of child object IDs""" + kids: [UUID] + + """Ordered array of child path names (parallel to kids)""" + ktree: [String] + + """Payload data for this object node""" + data: JSON + + """Timestamp of object creation""" + createdAt: Datetime +} + +"""The output of our update `InfraCommit` mutation.""" +type UpdateInfraCommitPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `InfraCommit` that was updated by this mutation.""" + infraCommit: InfraCommit + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """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 +} + +"""All input for the `updateInfraCommit` mutation.""" +input UpdateInfraCommitInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """Unique commit identifier""" + id: UUID! + + """Opaque store partition key for the global tier""" + scopeId: UUID! + + """ + An object where the defined keys will be set on the `InfraCommit` being updated. + """ + infraCommitPatch: InfraCommitPatch! +} + +""" +Represents an update to a `InfraCommit`. Fields that are set will be updated. +""" +input InfraCommitPatch { + """Unique commit identifier""" + id: UUID + + """Optional commit message""" + message: String + + """Opaque store partition key for the global tier""" + scopeId: UUID + + """Store this commit belongs to""" + storeId: UUID + + """Parent commit IDs (supports merge commits)""" + parentIds: [UUID] + + """User who authored the changes""" + authorId: UUID + + """User who committed (may differ from author)""" + committerId: UUID + + """Root object ID of the tree snapshot at this commit""" + treeId: UUID + + """Commit timestamp""" + date: Datetime +} + +"""The output of our update `DbPreset` mutation.""" +type UpdateDbPresetPayload { + """ + The exact 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 updated by this mutation.""" + dbPreset: DbPreset + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """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 +} + +"""All input for the `updateDbPreset` mutation.""" +input UpdateDbPresetInput { + """ + An arbitrary 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! + + """ + An object where the defined keys will be set on the `DbPreset` being updated. + """ + dbPresetPatch: DbPresetPatch! +} + +""" +Represents an update to a `DbPreset`. Fields that are set will be updated. +""" +input DbPresetPatch { + """Unique preset identifier""" + id: UUID + + """ + Infra Merkle store holding this preset's history (stamped by the versioned trigger) + """ + storeId: UUID + + """ + Preset slug (unique per scope); the preset's path in the infra tree is [db_preset, slug] + """ + slug: String + + """ + Preset definition (modules + options) — the readily-cached head; history lives in the infra store + """ + definition: JSON + + """ + Infra store commit for the current definition (stamped by the versioned trigger on every write) + """ + commitId: 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 + + """Human-readable preset name""" + label: String + + """Human-readable description of the preset""" + description: String + + """Whether this preset is selectable for new databases""" + active: Boolean + + """Timestamp of preset creation""" + createdAt: Datetime + + """Timestamp of last modification""" + updatedAt: Datetime +} + +"""The output of our update `PlatformNamespace` mutation.""" +type UpdatePlatformNamespacePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `PlatformNamespace` that was updated by this mutation.""" + platformNamespace: PlatformNamespace + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """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 +} + +"""All input for the `updatePlatformNamespace` mutation.""" +input UpdatePlatformNamespaceInput { + """ + An arbitrary string value 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 `PlatformNamespace` being updated. + """ + platformNamespacePatch: PlatformNamespacePatch! +} + +""" +Represents an update to a `PlatformNamespace`. Fields that are set will be updated. +""" +input PlatformNamespacePatch { + id: UUID + createdAt: Datetime + updatedAt: Datetime + + """Human-readable namespace name (e.g. default, production, oauth)""" + name: String + + """ + Globally unique computed namespace identifier via inflection.underscore + """ + namespaceName: String + + """Optional human-readable description of this namespace""" + description: String + + """Whether this namespace is active (soft-disable for filtering)""" + isActive: Boolean + + """ + Namespace provisioning lifecycle status: pending, provisioning, active, failed + """ + status: String + + """Most recent provisioning or reconcile error message""" + lastError: String + + """Key/value pairs for selecting and filtering namespaces""" + labels: JSON + + """Freeform metadata for tooling and operational notes""" + annotations: JSON + + """ + true = provisioned by the platform via jobs, false = unmanaged/platform-native (bootstrapped externally) + """ + isManaged: Boolean +} + +"""The output of our update `Namespace` mutation.""" +type UpdateNamespacePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `Namespace` that was updated by this mutation.""" + namespace: Namespace + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """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 +} + +"""All input for the `updateNamespace` mutation.""" +input UpdateNamespaceInput { + """ + An arbitrary string value 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 `Namespace` being updated. + """ + namespacePatch: NamespacePatch! +} + +""" +Represents an update to a `Namespace`. Fields that are set will be updated. +""" +input NamespacePatch { + id: UUID + createdAt: Datetime + updatedAt: Datetime + + """Human-readable namespace name (e.g. default, production, oauth)""" + name: String + + """ + Globally unique computed namespace identifier via inflection.underscore + """ + namespaceName: String + + """Optional human-readable description of this namespace""" + description: String + + """Whether this namespace is active (soft-disable for filtering)""" + isActive: Boolean + + """ + Namespace provisioning lifecycle status: pending, provisioning, active, failed + """ + status: String + + """Most recent provisioning or reconcile error message""" + lastError: String + + """Key/value pairs for selecting and filtering namespaces""" + labels: JSON + + """Freeform metadata for tooling and operational notes""" + annotations: JSON + + """Database that owns this resource (database-scoped isolation)""" + databaseId: UUID + + """ + true = provisioned by the platform via jobs, false = unmanaged/platform-native (bootstrapped externally) + """ + isManaged: Boolean +} + +"""The output of our update `PlatformNamespaceEvent` mutation.""" +type UpdatePlatformNamespaceEventPayload { + """ + The exact 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 updated by this mutation.""" + platformNamespaceEvent: PlatformNamespaceEvent + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """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 +} + +"""All input for the `updatePlatformNamespaceEvent` mutation.""" +input UpdatePlatformNamespaceEventInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """Event timestamp (partition key)""" + createdAt: Datetime! + + """Unique event identifier""" + id: UUID! + + """ + An object where the defined keys will be set on the `PlatformNamespaceEvent` being updated. + """ + platformNamespaceEventPatch: PlatformNamespaceEventPatch! +} + +""" +Represents an update to a `PlatformNamespaceEvent`. Fields that are set will be updated. +""" +input PlatformNamespaceEventPatch { + """Event timestamp (partition key)""" + createdAt: Datetime + + """Unique event identifier""" + id: UUID + + """Namespace this event belongs to""" + namespaceId: UUID + + """ + Event type: created, activated, deactivated, labels_updated, annotations_updated, renamed + """ + eventType: String + + """User who triggered this event (NULL for system/automated)""" + actorId: UUID + + """Human-readable description of the event""" + message: String + + """Structured context (old/new values, labels diff, etc.)""" + metadata: JSON + + """CPU usage in millicores at time of event""" + cpuMillicores: Int + + """Memory usage in bytes at time of event""" + memoryBytes: BigInt + + """Storage usage in bytes at time of event""" + storageBytes: BigInt + + """Network ingress in bytes during event window""" + networkIngressBytes: BigInt + + """Network egress in bytes during event window""" + networkEgressBytes: BigInt + + """Number of active pods in the namespace at time of event""" + podCount: Int + + """Additional resource metrics (gpu, replicas, quotas, etc.)""" + metrics: JSON +} + +"""The output of our update `NamespaceEvent` mutation.""" +type UpdateNamespaceEventPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `NamespaceEvent` that was updated by this mutation.""" + namespaceEvent: NamespaceEvent + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """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 +} + +"""All input for the `updateNamespaceEvent` mutation.""" +input UpdateNamespaceEventInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """Event timestamp (partition key)""" + createdAt: Datetime! + + """Unique event identifier""" + id: UUID! + + """ + An object where the defined keys will be set on the `NamespaceEvent` being updated. + """ + namespaceEventPatch: NamespaceEventPatch! +} + +""" +Represents an update to a `NamespaceEvent`. Fields that are set will be updated. +""" +input NamespaceEventPatch { + """Event timestamp (partition key)""" + createdAt: Datetime + + """Unique event identifier""" + id: UUID + + """Namespace this event belongs to""" + namespaceId: UUID + + """ + Event type: created, activated, deactivated, labels_updated, annotations_updated, renamed + """ + eventType: String + + """User who triggered this event (NULL for system/automated)""" + actorId: UUID + + """Human-readable description of the event""" + message: String + + """Structured context (old/new values, labels diff, etc.)""" + metadata: JSON + + """CPU usage in millicores at time of event""" + cpuMillicores: Int + + """Memory usage in bytes at time of event""" + memoryBytes: BigInt + + """Storage usage in bytes at time of event""" + storageBytes: BigInt + + """Network ingress in bytes during event window""" + networkIngressBytes: BigInt + + """Network egress in bytes during event window""" + networkEgressBytes: BigInt + + """Number of active pods in the namespace at time of event""" + podCount: Int + + """Additional resource metrics (gpu, replicas, quotas, etc.)""" + metrics: JSON + + """Database that owns this resource (database-scoped isolation)""" + databaseId: UUID +} + +"""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 + + """The `InfraRef` that was deleted by this mutation.""" + infraRef: InfraRef + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """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 +} + +"""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 + + """Unique ref identifier""" + id: UUID! + + """Opaque store partition key for the global tier""" + scopeId: UUID! +} + +"""The output of our delete `InfraStore` mutation.""" +type DeleteInfraStorePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `InfraStore` that was deleted by this mutation.""" + infraStore: InfraStore + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """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 +} + +"""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! +} + +"""The output of our delete `InfraObject` mutation.""" +type DeleteInfraObjectPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `InfraObject` that was deleted by this mutation.""" + infraObject: InfraObject + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """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 +} + +"""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. + """ + clientMutationId: String + + """Content-addressed UUID v5 — deterministic hash of (data, kids, ktree)""" + id: UUID! + + """Opaque store partition key for the global tier""" + scopeId: UUID! +} + +"""The 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 + + """The `InfraCommit` that was deleted by this mutation.""" + infraCommit: InfraCommit + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """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 +} + +"""All input for the `deleteInfraCommit` mutation.""" +input DeleteInfraCommitInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """Unique commit identifier""" + id: UUID! + + """Opaque store partition key for the global tier""" + scopeId: 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 + + """The `DbPreset` that was deleted by this mutation.""" + dbPreset: DbPreset + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """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 +} + +"""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 + + """Unique preset identifier""" + id: UUID! +} + +"""The output of our delete `PlatformNamespace` mutation.""" +type DeletePlatformNamespacePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `PlatformNamespace` that was deleted by this mutation.""" + platformNamespace: PlatformNamespace + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """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 +} + +"""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! +} + +"""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 + + """The `Namespace` that was deleted by this mutation.""" + namespace: Namespace + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """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 +} + +"""All input for the `deleteNamespace` mutation.""" +input DeleteNamespaceInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + id: UUID! +} + +"""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 + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """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 +} + +"""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 + + """Event timestamp (partition key)""" + createdAt: Datetime! + + """Unique event identifier""" + id: UUID! +} + +"""The output of our delete `NamespaceEvent` mutation.""" +type DeleteNamespaceEventPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `NamespaceEvent` that was deleted by this mutation.""" + namespaceEvent: NamespaceEvent + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """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 +} + +"""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 + + """Event timestamp (partition key)""" + createdAt: Datetime! + + """Unique event identifier""" + id: UUID! +} + +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 { + """Whether provisioning succeeded""" + success: Boolean! + + """The S3 bucket name that was provisioned""" + bucketName: String! + + """The access type applied""" + accessType: String! + + """The storage provider used""" + provider: String! + + """The S3 endpoint (null for AWS S3 default)""" + endpoint: String + + """Error message if provisioning failed""" + error: String +} \ No newline at end of file diff --git a/sdk/constructive-sdk/schemas/modules.graphql b/sdk/constructive-sdk/schemas/modules.graphql index 54fc1c4592..2f2a43aad6 100644 --- a/sdk/constructive-sdk/schemas/modules.graphql +++ b/sdk/constructive-sdk/schemas/modules.graphql @@ -68,35 +68,6 @@ type Query { orderBy: [MembershipTypesModuleOrderBy!] = [PRIMARY_KEY_ASC] ): MembershipTypesModuleConnection - """Reads and enables pagination through a set of `UserStateModule`.""" - userStateModules( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: Int - - """ - Skip the first `n` values from our `after` cursor, an alternative to cursor - based pagination. May not be used with `last`. - """ - offset: Int - - """Read all values in the set before (above) this cursor.""" - before: Cursor - - """Read all values in the set after (below) this cursor.""" - after: Cursor - - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: UserStateModuleFilter - - """The method to use when ordering `UserStateModule`.""" - orderBy: [UserStateModuleOrderBy!] = [PRIMARY_KEY_ASC] - ): UserStateModuleConnection - """Reads and enables pagination through a set of `SessionSecretsModule`.""" sessionSecretsModules( """Only read the first `n` values of the set.""" @@ -126,37 +97,6 @@ type Query { orderBy: [SessionSecretsModuleOrderBy!] = [PRIMARY_KEY_ASC] ): SessionSecretsModuleConnection - """ - Reads and enables pagination through a set of `ConfigSecretsOrgModule`. - """ - configSecretsOrgModules( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: Int - - """ - Skip the first `n` values from our `after` cursor, an alternative to cursor - based pagination. May not be used with `last`. - """ - offset: Int - - """Read all values in the set before (above) this cursor.""" - before: Cursor - - """Read all values in the set after (below) this cursor.""" - after: Cursor - - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: ConfigSecretsOrgModuleFilter - - """The method to use when ordering `ConfigSecretsOrgModule`.""" - orderBy: [ConfigSecretsOrgModuleOrderBy!] = [PRIMARY_KEY_ASC] - ): ConfigSecretsOrgModuleConnection - """Reads and enables pagination through a set of `DevicesModule`.""" devicesModules( """Only read the first `n` values of the set.""" @@ -215,8 +155,8 @@ type Query { orderBy: [I18NModuleOrderBy!] = [PRIMARY_KEY_ASC] ): I18NModuleConnection - """Reads and enables pagination through a set of `UserCredentialsModule`.""" - userCredentialsModules( + """Reads and enables pagination through a set of `UserSettingsModule`.""" + userSettingsModules( """Only read the first `n` values of the set.""" first: Int @@ -238,14 +178,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: UserCredentialsModuleFilter + where: UserSettingsModuleFilter - """The method to use when ordering `UserCredentialsModule`.""" - orderBy: [UserCredentialsModuleOrderBy!] = [PRIMARY_KEY_ASC] - ): UserCredentialsModuleConnection + """The method to use when ordering `UserSettingsModule`.""" + orderBy: [UserSettingsModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): UserSettingsModuleConnection - """Reads and enables pagination through a set of `UserSettingsModule`.""" - userSettingsModules( + """Reads and enables pagination through a set of `UserStateModule`.""" + userStateModules( """Only read the first `n` values of the set.""" first: Int @@ -267,16 +207,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: UserSettingsModuleFilter + where: UserStateModuleFilter - """The method to use when ordering `UserSettingsModule`.""" - orderBy: [UserSettingsModuleOrderBy!] = [PRIMARY_KEY_ASC] - ): UserSettingsModuleConnection + """The method to use when ordering `UserStateModule`.""" + orderBy: [UserStateModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): UserStateModuleConnection - """ - Reads and enables pagination through a set of `ConfigSecretsUserModule`. - """ - configSecretsUserModules( + """Reads and enables pagination through a set of `UserCredentialsModule`.""" + userCredentialsModules( """Only read the first `n` values of the set.""" first: Int @@ -298,11 +236,11 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: ConfigSecretsUserModuleFilter + where: UserCredentialsModuleFilter - """The method to use when ordering `ConfigSecretsUserModule`.""" - orderBy: [ConfigSecretsUserModuleOrderBy!] = [PRIMARY_KEY_ASC] - ): ConfigSecretsUserModuleConnection + """The method to use when ordering `UserCredentialsModule`.""" + orderBy: [UserCredentialsModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): UserCredentialsModuleConnection """ Reads and enables pagination through a set of `ConnectedAccountsModule`. @@ -482,8 +420,10 @@ type Query { orderBy: [WebauthnCredentialsModuleOrderBy!] = [PRIMARY_KEY_ASC] ): WebauthnCredentialsModuleConnection - """Reads and enables pagination through a set of `CryptoAddressesModule`.""" - cryptoAddressesModules( + """ + Reads and enables pagination through a set of `ConfigSecretsUserModule`. + """ + configSecretsUserModules( """Only read the first `n` values of the set.""" first: Int @@ -505,16 +445,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: CryptoAddressesModuleFilter + where: ConfigSecretsUserModuleFilter - """The method to use when ordering `CryptoAddressesModule`.""" - orderBy: [CryptoAddressesModuleOrderBy!] = [PRIMARY_KEY_ASC] - ): CryptoAddressesModuleConnection + """The method to use when ordering `ConfigSecretsUserModule`.""" + orderBy: [ConfigSecretsUserModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): ConfigSecretsUserModuleConnection - """ - Reads and enables pagination through a set of `DenormalizedTableField`. - """ - denormalizedTableFields( + """Reads and enables pagination through a set of `CryptoAddressesModule`.""" + cryptoAddressesModules( """Only read the first `n` values of the set.""" first: Int @@ -536,16 +474,16 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: DenormalizedTableFieldFilter + where: CryptoAddressesModuleFilter - """The method to use when ordering `DenormalizedTableField`.""" - orderBy: [DenormalizedTableFieldOrderBy!] = [PRIMARY_KEY_ASC] - ): DenormalizedTableFieldConnection + """The method to use when ordering `CryptoAddressesModule`.""" + orderBy: [CryptoAddressesModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): CryptoAddressesModuleConnection """ - Reads and enables pagination through a set of `IdentityProvidersModule`. + Reads and enables pagination through a set of `DenormalizedTableField`. """ - identityProvidersModules( + denormalizedTableFields( """Only read the first `n` values of the set.""" first: Int @@ -567,11 +505,11 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: IdentityProvidersModuleFilter + where: DenormalizedTableFieldFilter - """The method to use when ordering `IdentityProvidersModule`.""" - orderBy: [IdentityProvidersModuleOrderBy!] = [PRIMARY_KEY_ASC] - ): IdentityProvidersModuleConnection + """The method to use when ordering `DenormalizedTableField`.""" + orderBy: [DenormalizedTableFieldOrderBy!] = [PRIMARY_KEY_ASC] + ): DenormalizedTableFieldConnection """Reads and enables pagination through a set of `RlsModule`.""" rlsModules( @@ -748,9 +686,9 @@ type Query { ): SecureTableProvisionConnection """ - Reads and enables pagination through a set of `DatabaseProvisionModule`. + Reads and enables pagination through a set of `IdentityProvidersModule`. """ - databaseProvisionModules( + identityProvidersModules( """Only read the first `n` values of the set.""" first: Int @@ -772,14 +710,16 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: DatabaseProvisionModuleFilter + where: IdentityProvidersModuleFilter - """The method to use when ordering `DatabaseProvisionModule`.""" - orderBy: [DatabaseProvisionModuleOrderBy!] = [PRIMARY_KEY_ASC] - ): DatabaseProvisionModuleConnection + """The method to use when ordering `IdentityProvidersModule`.""" + orderBy: [IdentityProvidersModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): IdentityProvidersModuleConnection - """Reads and enables pagination through a set of `ConfigSecretsModule`.""" - configSecretsModules( + """ + Reads and enables pagination through a set of `IntegrationProvidersModule`. + """ + integrationProvidersModules( """Only read the first `n` values of the set.""" first: Int @@ -801,14 +741,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: ConfigSecretsModuleFilter + where: IntegrationProvidersModuleFilter - """The method to use when ordering `ConfigSecretsModule`.""" - orderBy: [ConfigSecretsModuleOrderBy!] = [PRIMARY_KEY_ASC] - ): ConfigSecretsModuleConnection + """The method to use when ordering `IntegrationProvidersModule`.""" + orderBy: [IntegrationProvidersModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): IntegrationProvidersModuleConnection - """Reads and enables pagination through a set of `GraphModule`.""" - graphModules( + """Reads and enables pagination through a set of `DbPoolConfig`.""" + dbPoolConfigs( """Only read the first `n` values of the set.""" first: Int @@ -830,14 +770,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: GraphModuleFilter + where: DbPoolConfigFilter - """The method to use when ordering `GraphModule`.""" - orderBy: [GraphModuleOrderBy!] = [PRIMARY_KEY_ASC] - ): GraphModuleConnection + """The method to use when ordering `DbPoolConfig`.""" + orderBy: [DbPoolConfigOrderBy!] = [PRIMARY_KEY_ASC] + ): DbPoolConfigConnection - """Reads and enables pagination through a set of `MerkleStoreModule`.""" - merkleStoreModules( + """Reads and enables pagination through a set of `RealtimeModule`.""" + realtimeModules( """Only read the first `n` values of the set.""" first: Int @@ -859,14 +799,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: MerkleStoreModuleFilter + where: RealtimeModuleFilter - """The method to use when ordering `MerkleStoreModule`.""" - orderBy: [MerkleStoreModuleOrderBy!] = [PRIMARY_KEY_ASC] - ): MerkleStoreModuleConnection + """The method to use when ordering `RealtimeModule`.""" + orderBy: [RealtimeModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): RealtimeModuleConnection - """Reads and enables pagination through a set of `RateLimitMetersModule`.""" - rateLimitMetersModules( + """Reads and enables pagination through a set of `InfraSecretsModule`.""" + infraSecretsModules( """Only read the first `n` values of the set.""" first: Int @@ -888,14 +828,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: RateLimitMetersModuleFilter + where: InfraSecretsModuleFilter - """The method to use when ordering `RateLimitMetersModule`.""" - orderBy: [RateLimitMetersModuleOrderBy!] = [PRIMARY_KEY_ASC] - ): RateLimitMetersModuleConnection + """The method to use when ordering `InfraSecretsModule`.""" + orderBy: [InfraSecretsModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): InfraSecretsModuleConnection - """Reads and enables pagination through a set of `RealtimeModule`.""" - realtimeModules( + """Reads and enables pagination through a set of `InternalSecretsModule`.""" + internalSecretsModules( """Only read the first `n` values of the set.""" first: Int @@ -917,14 +857,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: RealtimeModuleFilter + where: InternalSecretsModuleFilter - """The method to use when ordering `RealtimeModule`.""" - orderBy: [RealtimeModuleOrderBy!] = [PRIMARY_KEY_ASC] - ): RealtimeModuleConnection + """The method to use when ordering `InternalSecretsModule`.""" + orderBy: [InternalSecretsModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): InternalSecretsModuleConnection - """Reads and enables pagination through a set of `WebauthnAuthModule`.""" - webauthnAuthModules( + """Reads and enables pagination through a set of `DbPresetModule`.""" + dbPresetModules( """Only read the first `n` values of the set.""" first: Int @@ -946,16 +886,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: WebauthnAuthModuleFilter + where: DbPresetModuleFilter - """The method to use when ordering `WebauthnAuthModule`.""" - orderBy: [WebauthnAuthModuleOrderBy!] = [PRIMARY_KEY_ASC] - ): WebauthnAuthModuleConnection + """The method to use when ordering `DbPresetModule`.""" + orderBy: [DbPresetModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): DbPresetModuleConnection - """ - Reads and enables pagination through a set of `FunctionInvocationModule`. - """ - functionInvocationModules( + """Reads and enables pagination through a set of `RateLimitMetersModule`.""" + rateLimitMetersModules( """Only read the first `n` values of the set.""" first: Int @@ -977,14 +915,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: FunctionInvocationModuleFilter + where: RateLimitMetersModuleFilter - """The method to use when ordering `FunctionInvocationModule`.""" - orderBy: [FunctionInvocationModuleOrderBy!] = [PRIMARY_KEY_ASC] - ): FunctionInvocationModuleConnection + """The method to use when ordering `RateLimitMetersModule`.""" + orderBy: [RateLimitMetersModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): RateLimitMetersModuleConnection - """Reads and enables pagination through a set of `FunctionModule`.""" - functionModules( + """Reads and enables pagination through a set of `InfraConfigModule`.""" + infraConfigModules( """Only read the first `n` values of the set.""" first: Int @@ -1006,14 +944,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: FunctionModuleFilter + where: InfraConfigModuleFilter - """The method to use when ordering `FunctionModule`.""" - orderBy: [FunctionModuleOrderBy!] = [PRIMARY_KEY_ASC] - ): FunctionModuleConnection + """The method to use when ordering `InfraConfigModule`.""" + orderBy: [InfraConfigModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): InfraConfigModuleConnection - """Reads and enables pagination through a set of `InvitesModule`.""" - invitesModules( + """Reads and enables pagination through a set of `WebauthnAuthModule`.""" + webauthnAuthModules( """Only read the first `n` values of the set.""" first: Int @@ -1035,11 +973,11 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: InvitesModuleFilter + where: WebauthnAuthModuleFilter - """The method to use when ordering `InvitesModule`.""" - orderBy: [InvitesModuleOrderBy!] = [PRIMARY_KEY_ASC] - ): InvitesModuleConnection + """The method to use when ordering `WebauthnAuthModule`.""" + orderBy: [WebauthnAuthModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): WebauthnAuthModuleConnection """Reads and enables pagination through a set of `PrincipalAuthModule`.""" principalAuthModules( @@ -1070,8 +1008,8 @@ type Query { orderBy: [PrincipalAuthModuleOrderBy!] = [PRIMARY_KEY_ASC] ): PrincipalAuthModuleConnection - """Reads and enables pagination through a set of `ComputeLogModule`.""" - computeLogModules( + """Reads and enables pagination through a set of `DbPool`.""" + dbPools( """Only read the first `n` values of the set.""" first: Int @@ -1093,14 +1031,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: ComputeLogModuleFilter + where: DbPoolFilter - """The method to use when ordering `ComputeLogModule`.""" - orderBy: [ComputeLogModuleOrderBy!] = [PRIMARY_KEY_ASC] - ): ComputeLogModuleConnection + """The method to use when ordering `DbPool`.""" + orderBy: [DbPoolOrderBy!] = [PRIMARY_KEY_ASC] + ): DbPoolConnection - """Reads and enables pagination through a set of `InferenceLogModule`.""" - inferenceLogModules( + """Reads and enables pagination through a set of `FunctionModule`.""" + functionModules( """Only read the first `n` values of the set.""" first: Int @@ -1122,14 +1060,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: InferenceLogModuleFilter + where: FunctionModuleFilter - """The method to use when ordering `InferenceLogModule`.""" - orderBy: [InferenceLogModuleOrderBy!] = [PRIMARY_KEY_ASC] - ): InferenceLogModuleConnection + """The method to use when ordering `FunctionModule`.""" + orderBy: [FunctionModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): FunctionModuleConnection - """Reads and enables pagination through a set of `NamespaceModule`.""" - namespaceModules( + """Reads and enables pagination through a set of `GraphModule`.""" + graphModules( """Only read the first `n` values of the set.""" first: Int @@ -1151,14 +1089,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: NamespaceModuleFilter + where: GraphModuleFilter - """The method to use when ordering `NamespaceModule`.""" - orderBy: [NamespaceModuleOrderBy!] = [PRIMARY_KEY_ASC] - ): NamespaceModuleConnection + """The method to use when ordering `GraphModule`.""" + orderBy: [GraphModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): GraphModuleConnection - """Reads and enables pagination through a set of `ResourceModule`.""" - resourceModules( + """Reads and enables pagination through a set of `MerkleStoreModule`.""" + merkleStoreModules( """Only read the first `n` values of the set.""" first: Int @@ -1180,14 +1118,16 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: ResourceModuleFilter + where: MerkleStoreModuleFilter - """The method to use when ordering `ResourceModule`.""" - orderBy: [ResourceModuleOrderBy!] = [PRIMARY_KEY_ASC] - ): ResourceModuleConnection + """The method to use when ordering `MerkleStoreModule`.""" + orderBy: [MerkleStoreModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): MerkleStoreModuleConnection - """Reads and enables pagination through a set of `StorageLogModule`.""" - storageLogModules( + """ + Reads and enables pagination through a set of `DatabaseProvisionModule`. + """ + databaseProvisionModules( """Only read the first `n` values of the set.""" first: Int @@ -1209,14 +1149,16 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: StorageLogModuleFilter + where: DatabaseProvisionModuleFilter - """The method to use when ordering `StorageLogModule`.""" - orderBy: [StorageLogModuleOrderBy!] = [PRIMARY_KEY_ASC] - ): StorageLogModuleConnection + """The method to use when ordering `DatabaseProvisionModule`.""" + orderBy: [DatabaseProvisionModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): DatabaseProvisionModuleConnection - """Reads and enables pagination through a set of `TransferLogModule`.""" - transferLogModules( + """ + Reads and enables pagination through a set of `FunctionInvocationModule`. + """ + functionInvocationModules( """Only read the first `n` values of the set.""" first: Int @@ -1238,16 +1180,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: TransferLogModuleFilter + where: FunctionInvocationModuleFilter - """The method to use when ordering `TransferLogModule`.""" - orderBy: [TransferLogModuleOrderBy!] = [PRIMARY_KEY_ASC] - ): TransferLogModuleConnection + """The method to use when ordering `FunctionInvocationModule`.""" + orderBy: [FunctionInvocationModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): FunctionInvocationModuleConnection - """ - Reads and enables pagination through a set of `FunctionDeploymentModule`. - """ - functionDeploymentModules( + """Reads and enables pagination through a set of `InvitesModule`.""" + invitesModules( """Only read the first `n` values of the set.""" first: Int @@ -1269,14 +1209,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: FunctionDeploymentModuleFilter + where: InvitesModuleFilter - """The method to use when ordering `FunctionDeploymentModule`.""" - orderBy: [FunctionDeploymentModuleOrderBy!] = [PRIMARY_KEY_ASC] - ): FunctionDeploymentModuleConnection + """The method to use when ordering `InvitesModule`.""" + orderBy: [InvitesModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): InvitesModuleConnection - """Reads and enables pagination through a set of `PlansModule`.""" - plansModules( + """Reads and enables pagination through a set of `NamespaceModule`.""" + namespaceModules( """Only read the first `n` values of the set.""" first: Int @@ -1298,14 +1238,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: PlansModuleFilter + where: NamespaceModuleFilter - """The method to use when ordering `PlansModule`.""" - orderBy: [PlansModuleOrderBy!] = [PRIMARY_KEY_ASC] - ): PlansModuleConnection + """The method to use when ordering `NamespaceModule`.""" + orderBy: [NamespaceModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): NamespaceModuleConnection - """Reads and enables pagination through a set of `BillingProviderModule`.""" - billingProviderModules( + """Reads and enables pagination through a set of `PlansModule`.""" + plansModules( """Only read the first `n` values of the set.""" first: Int @@ -1327,14 +1267,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: BillingProviderModuleFilter + where: PlansModuleFilter - """The method to use when ordering `BillingProviderModule`.""" - orderBy: [BillingProviderModuleOrderBy!] = [PRIMARY_KEY_ASC] - ): BillingProviderModuleConnection + """The method to use when ordering `PlansModule`.""" + orderBy: [PlansModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): PlansModuleConnection - """Reads and enables pagination through a set of `DbUsageModule`.""" - dbUsageModules( + """Reads and enables pagination through a set of `ComputeLogModule`.""" + computeLogModules( """Only read the first `n` values of the set.""" first: Int @@ -1356,14 +1296,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: DbUsageModuleFilter + where: ComputeLogModuleFilter - """The method to use when ordering `DbUsageModule`.""" - orderBy: [DbUsageModuleOrderBy!] = [PRIMARY_KEY_ASC] - ): DbUsageModuleConnection + """The method to use when ordering `ComputeLogModule`.""" + orderBy: [ComputeLogModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): ComputeLogModuleConnection - """Reads and enables pagination through a set of `GraphExecutionModule`.""" - graphExecutionModules( + """Reads and enables pagination through a set of `InferenceLogModule`.""" + inferenceLogModules( """Only read the first `n` values of the set.""" first: Int @@ -1385,14 +1325,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: GraphExecutionModuleFilter + where: InferenceLogModuleFilter - """The method to use when ordering `GraphExecutionModule`.""" - orderBy: [GraphExecutionModuleOrderBy!] = [PRIMARY_KEY_ASC] - ): GraphExecutionModuleConnection + """The method to use when ordering `InferenceLogModule`.""" + orderBy: [InferenceLogModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): InferenceLogModuleConnection - """Reads and enables pagination through a set of `HierarchyModule`.""" - hierarchyModules( + """Reads and enables pagination through a set of `StorageLogModule`.""" + storageLogModules( """Only read the first `n` values of the set.""" first: Int @@ -1414,14 +1354,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: HierarchyModuleFilter + where: StorageLogModuleFilter - """The method to use when ordering `HierarchyModule`.""" - orderBy: [HierarchyModuleOrderBy!] = [PRIMARY_KEY_ASC] - ): HierarchyModuleConnection + """The method to use when ordering `StorageLogModule`.""" + orderBy: [StorageLogModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): StorageLogModuleConnection - """Reads and enables pagination through a set of `PermissionsModule`.""" - permissionsModules( + """Reads and enables pagination through a set of `TransferLogModule`.""" + transferLogModules( """Only read the first `n` values of the set.""" first: Int @@ -1443,14 +1383,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: PermissionsModuleFilter + where: TransferLogModuleFilter - """The method to use when ordering `PermissionsModule`.""" - orderBy: [PermissionsModuleOrderBy!] = [PRIMARY_KEY_ASC] - ): PermissionsModuleConnection + """The method to use when ordering `TransferLogModule`.""" + orderBy: [TransferLogModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): TransferLogModuleConnection - """Reads and enables pagination through a set of `NotificationsModule`.""" - notificationsModules( + """Reads and enables pagination through a set of `BillingProviderModule`.""" + billingProviderModules( """Only read the first `n` values of the set.""" first: Int @@ -1472,14 +1412,16 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: NotificationsModuleFilter + where: BillingProviderModuleFilter - """The method to use when ordering `NotificationsModule`.""" - orderBy: [NotificationsModuleOrderBy!] = [PRIMARY_KEY_ASC] - ): NotificationsModuleConnection + """The method to use when ordering `BillingProviderModule`.""" + orderBy: [BillingProviderModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): BillingProviderModuleConnection - """Reads and enables pagination through a set of `ProfilesModule`.""" - profilesModules( + """ + Reads and enables pagination through a set of `FunctionDeploymentModule`. + """ + functionDeploymentModules( """Only read the first `n` values of the set.""" first: Int @@ -1501,14 +1443,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: ProfilesModuleFilter + where: FunctionDeploymentModuleFilter - """The method to use when ordering `ProfilesModule`.""" - orderBy: [ProfilesModuleOrderBy!] = [PRIMARY_KEY_ASC] - ): ProfilesModuleConnection + """The method to use when ordering `FunctionDeploymentModule`.""" + orderBy: [FunctionDeploymentModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): FunctionDeploymentModuleConnection - """Reads and enables pagination through a set of `BillingModule`.""" - billingModules( + """Reads and enables pagination through a set of `PermissionsModule`.""" + permissionsModules( """Only read the first `n` values of the set.""" first: Int @@ -1530,14 +1472,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: BillingModuleFilter + where: PermissionsModuleFilter - """The method to use when ordering `BillingModule`.""" - orderBy: [BillingModuleOrderBy!] = [PRIMARY_KEY_ASC] - ): BillingModuleConnection + """The method to use when ordering `PermissionsModule`.""" + orderBy: [PermissionsModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): PermissionsModuleConnection - """Reads and enables pagination through a set of `RelationProvision`.""" - relationProvisions( + """Reads and enables pagination through a set of `GraphExecutionModule`.""" + graphExecutionModules( """Only read the first `n` values of the set.""" first: Int @@ -1559,14 +1501,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: RelationProvisionFilter + where: GraphExecutionModuleFilter - """The method to use when ordering `RelationProvision`.""" - orderBy: [RelationProvisionOrderBy!] = [PRIMARY_KEY_ASC] - ): RelationProvisionConnection + """The method to use when ordering `GraphExecutionModule`.""" + orderBy: [GraphExecutionModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): GraphExecutionModuleConnection - """Reads and enables pagination through a set of `BlueprintTemplate`.""" - blueprintTemplates( + """Reads and enables pagination through a set of `HierarchyModule`.""" + hierarchyModules( """Only read the first `n` values of the set.""" first: Int @@ -1588,14 +1530,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: BlueprintTemplateFilter + where: HierarchyModuleFilter - """The method to use when ordering `BlueprintTemplate`.""" - orderBy: [BlueprintTemplateOrderBy!] = [PRIMARY_KEY_ASC] - ): BlueprintTemplateConnection + """The method to use when ordering `HierarchyModule`.""" + orderBy: [HierarchyModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): HierarchyModuleConnection - """Reads and enables pagination through a set of `UserAuthModule`.""" - userAuthModules( + """Reads and enables pagination through a set of `NotificationsModule`.""" + notificationsModules( """Only read the first `n` values of the set.""" first: Int @@ -1617,14 +1559,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: UserAuthModuleFilter + where: NotificationsModuleFilter - """The method to use when ordering `UserAuthModule`.""" - orderBy: [UserAuthModuleOrderBy!] = [PRIMARY_KEY_ASC] - ): UserAuthModuleConnection + """The method to use when ordering `NotificationsModule`.""" + orderBy: [NotificationsModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): NotificationsModuleConnection - """Reads and enables pagination through a set of `AgentModule`.""" - agentModules( + """Reads and enables pagination through a set of `RelationProvision`.""" + relationProvisions( """Only read the first `n` values of the set.""" first: Int @@ -1646,14 +1588,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: AgentModuleFilter + where: RelationProvisionFilter - """The method to use when ordering `AgentModule`.""" - orderBy: [AgentModuleOrderBy!] = [PRIMARY_KEY_ASC] - ): AgentModuleConnection + """The method to use when ordering `RelationProvision`.""" + orderBy: [RelationProvisionOrderBy!] = [PRIMARY_KEY_ASC] + ): RelationProvisionConnection - """Reads and enables pagination through a set of `LimitsModule`.""" - limitsModules( + """Reads and enables pagination through a set of `BlueprintTemplate`.""" + blueprintTemplates( """Only read the first `n` values of the set.""" first: Int @@ -1675,14 +1617,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: LimitsModuleFilter + where: BlueprintTemplateFilter - """The method to use when ordering `LimitsModule`.""" - orderBy: [LimitsModuleOrderBy!] = [PRIMARY_KEY_ASC] - ): LimitsModuleConnection + """The method to use when ordering `BlueprintTemplate`.""" + orderBy: [BlueprintTemplateOrderBy!] = [PRIMARY_KEY_ASC] + ): BlueprintTemplateConnection - """Reads and enables pagination through a set of `MembershipsModule`.""" - membershipsModules( + """Reads and enables pagination through a set of `ProfilesModule`.""" + profilesModules( """Only read the first `n` values of the set.""" first: Int @@ -1704,14 +1646,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: MembershipsModuleFilter + where: ProfilesModuleFilter - """The method to use when ordering `MembershipsModule`.""" - orderBy: [MembershipsModuleOrderBy!] = [PRIMARY_KEY_ASC] - ): MembershipsModuleConnection + """The method to use when ordering `ProfilesModule`.""" + orderBy: [ProfilesModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): ProfilesModuleConnection - """Reads and enables pagination through a set of `EntityTypeProvision`.""" - entityTypeProvisions( + """Reads and enables pagination through a set of `BillingModule`.""" + billingModules( """Only read the first `n` values of the set.""" first: Int @@ -1733,14 +1675,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: EntityTypeProvisionFilter + where: BillingModuleFilter - """The method to use when ordering `EntityTypeProvision`.""" - orderBy: [EntityTypeProvisionOrderBy!] = [PRIMARY_KEY_ASC] - ): EntityTypeProvisionConnection + """The method to use when ordering `BillingModule`.""" + orderBy: [BillingModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): BillingModuleConnection - """Reads and enables pagination through a set of `StorageModule`.""" - storageModules( + """Reads and enables pagination through a set of `ResourceModule`.""" + resourceModules( """Only read the first `n` values of the set.""" first: Int @@ -1762,14 +1704,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: StorageModuleFilter + where: ResourceModuleFilter - """The method to use when ordering `StorageModule`.""" - orderBy: [StorageModuleOrderBy!] = [PRIMARY_KEY_ASC] - ): StorageModuleConnection + """The method to use when ordering `ResourceModule`.""" + orderBy: [ResourceModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): ResourceModuleConnection - """Reads and enables pagination through a set of `EventsModule`.""" - eventsModules( + """Reads and enables pagination through a set of `UserAuthModule`.""" + userAuthModules( """Only read the first `n` values of the set.""" first: Int @@ -1791,10 +1733,213 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: EventsModuleFilter + where: UserAuthModuleFilter - """The method to use when ordering `EventsModule`.""" - orderBy: [EventsModuleOrderBy!] = [PRIMARY_KEY_ASC] + """The method to use when ordering `UserAuthModule`.""" + orderBy: [UserAuthModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): UserAuthModuleConnection + + """Reads and enables pagination through a set of `DbUsageModule`.""" + dbUsageModules( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: DbUsageModuleFilter + + """The method to use when ordering `DbUsageModule`.""" + orderBy: [DbUsageModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): DbUsageModuleConnection + + """Reads and enables pagination through a set of `AgentModule`.""" + agentModules( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: AgentModuleFilter + + """The method to use when ordering `AgentModule`.""" + orderBy: [AgentModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): AgentModuleConnection + + """Reads and enables pagination through a set of `LimitsModule`.""" + limitsModules( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: LimitsModuleFilter + + """The method to use when ordering `LimitsModule`.""" + orderBy: [LimitsModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): LimitsModuleConnection + + """Reads and enables pagination through a set of `EntityTypeProvision`.""" + entityTypeProvisions( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: EntityTypeProvisionFilter + + """The method to use when ordering `EntityTypeProvision`.""" + orderBy: [EntityTypeProvisionOrderBy!] = [PRIMARY_KEY_ASC] + ): EntityTypeProvisionConnection + + """Reads and enables pagination through a set of `StorageModule`.""" + storageModules( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: StorageModuleFilter + + """The method to use when ordering `StorageModule`.""" + orderBy: [StorageModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): StorageModuleConnection + + """Reads and enables pagination through a set of `MembershipsModule`.""" + membershipsModules( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: MembershipsModuleFilter + + """The method to use when ordering `MembershipsModule`.""" + orderBy: [MembershipsModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): MembershipsModuleConnection + + """Reads and enables pagination through a set of `EventsModule`.""" + eventsModules( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: EventsModuleFilter + + """The method to use when ordering `EventsModule`.""" + orderBy: [EventsModuleOrderBy!] = [PRIMARY_KEY_ASC] ): EventsModuleConnection """ @@ -2151,46 +2296,54 @@ enum MembershipTypesModuleOrderBy { TABLE_NAME_DESC } -"""A connection to a list of `UserStateModule` values.""" -type UserStateModuleConnection { - """A list of `UserStateModule` objects.""" - nodes: [UserStateModule]! +"""A connection to a list of `SessionSecretsModule` values.""" +type SessionSecretsModuleConnection { + """A list of `SessionSecretsModule` objects.""" + nodes: [SessionSecretsModule]! """ - A list of edges which contains the `UserStateModule` and cursor to aid in pagination. + A list of edges which contains the `SessionSecretsModule` and cursor to aid in pagination. """ - edges: [UserStateModuleEdge]! + edges: [SessionSecretsModuleEdge]! """Information to aid in pagination.""" pageInfo: PageInfo! """ - The count of *all* `UserStateModule` you could get from the connection. + The count of *all* `SessionSecretsModule` you could get from the connection. """ totalCount: Int! } -type UserStateModule { +""" +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. +""" +type SessionSecretsModule { id: UUID! databaseId: UUID! schemaId: UUID! tableId: UUID! tableName: String! + + """ + Resolved reference to sessions_module.sessions_table, used to FK session_secrets.session_id with ON DELETE CASCADE. + """ + sessionsTableId: UUID! } -"""A `UserStateModule` edge in the connection.""" -type UserStateModuleEdge { +"""A `SessionSecretsModule` edge in the connection.""" +type SessionSecretsModuleEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `UserStateModule` at the end of the edge.""" - node: UserStateModule + """The `SessionSecretsModule` at the end of the edge.""" + node: SessionSecretsModule } """ -A filter to be used against `UserStateModule` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `SessionSecretsModule` object types. All fields are combined with a logical ‘and.’ """ -input UserStateModuleFilter { +input SessionSecretsModuleFilter { """Filter by the object’s `id` field.""" id: UUIDFilter @@ -2206,18 +2359,21 @@ input UserStateModuleFilter { """Filter by the object’s `tableName` field.""" tableName: StringFilter + """Filter by the object’s `sessionsTableId` field.""" + sessionsTableId: UUIDFilter + """Checks for all expressions in this list.""" - and: [UserStateModuleFilter!] + and: [SessionSecretsModuleFilter!] """Checks for any expressions in this list.""" - or: [UserStateModuleFilter!] + or: [SessionSecretsModuleFilter!] """Negates the expression.""" - not: UserStateModuleFilter + not: SessionSecretsModuleFilter } -"""Methods to use when ordering `UserStateModule`.""" -enum UserStateModuleOrderBy { +"""Methods to use when ordering `SessionSecretsModule`.""" +enum SessionSecretsModuleOrderBy { NATURAL PRIMARY_KEY_ASC PRIMARY_KEY_DESC @@ -2231,198 +2387,8 @@ enum UserStateModuleOrderBy { TABLE_ID_DESC TABLE_NAME_ASC TABLE_NAME_DESC -} - -"""A connection to a list of `SessionSecretsModule` values.""" -type SessionSecretsModuleConnection { - """A list of `SessionSecretsModule` objects.""" - nodes: [SessionSecretsModule]! - - """ - A list of edges which contains the `SessionSecretsModule` and cursor to aid in pagination. - """ - edges: [SessionSecretsModuleEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """ - The count of *all* `SessionSecretsModule` you could get from the connection. - """ - totalCount: Int! -} - -""" -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. -""" -type SessionSecretsModule { - id: UUID! - databaseId: UUID! - schemaId: UUID! - tableId: UUID! - tableName: String! - - """ - Resolved reference to sessions_module.sessions_table, used to FK session_secrets.session_id with ON DELETE CASCADE. - """ - sessionsTableId: UUID! -} - -"""A `SessionSecretsModule` edge in the connection.""" -type SessionSecretsModuleEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `SessionSecretsModule` at the end of the edge.""" - node: SessionSecretsModule -} - -""" -A filter to be used against `SessionSecretsModule` object types. All fields are combined with a logical ‘and.’ -""" -input SessionSecretsModuleFilter { - """Filter by the object’s `id` field.""" - id: UUIDFilter - - """Filter by the object’s `databaseId` field.""" - databaseId: UUIDFilter - - """Filter by the object’s `schemaId` field.""" - schemaId: UUIDFilter - - """Filter by the object’s `tableId` field.""" - tableId: UUIDFilter - - """Filter by the object’s `tableName` field.""" - tableName: StringFilter - - """Filter by the object’s `sessionsTableId` field.""" - sessionsTableId: UUIDFilter - - """Checks for all expressions in this list.""" - and: [SessionSecretsModuleFilter!] - - """Checks for any expressions in this list.""" - or: [SessionSecretsModuleFilter!] - - """Negates the expression.""" - not: SessionSecretsModuleFilter -} - -"""Methods to use when ordering `SessionSecretsModule`.""" -enum SessionSecretsModuleOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - DATABASE_ID_ASC - DATABASE_ID_DESC - SCHEMA_ID_ASC - SCHEMA_ID_DESC - TABLE_ID_ASC - TABLE_ID_DESC - TABLE_NAME_ASC - TABLE_NAME_DESC - SESSIONS_TABLE_ID_ASC - SESSIONS_TABLE_ID_DESC -} - -"""A connection to a list of `ConfigSecretsOrgModule` values.""" -type ConfigSecretsOrgModuleConnection { - """A list of `ConfigSecretsOrgModule` objects.""" - nodes: [ConfigSecretsOrgModule]! - - """ - A list of edges which contains the `ConfigSecretsOrgModule` and cursor to aid in pagination. - """ - edges: [ConfigSecretsOrgModuleEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """ - The count of *all* `ConfigSecretsOrgModule` you could get from the connection. - """ - totalCount: Int! -} - -""" -Config row for the config_secrets_org_module, which provisions an organization-scoped encrypted key-value secrets store with manage_secrets permission and entity-membership RLS. -""" -type ConfigSecretsOrgModule { - id: UUID! - databaseId: UUID! - schemaId: UUID! - tableId: UUID! - tableName: String! - apiName: String - privateApiName: String -} - -"""A `ConfigSecretsOrgModule` edge in the connection.""" -type ConfigSecretsOrgModuleEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `ConfigSecretsOrgModule` at the end of the edge.""" - node: ConfigSecretsOrgModule -} - -""" -A filter to be used against `ConfigSecretsOrgModule` object types. All fields are combined with a logical ‘and.’ -""" -input ConfigSecretsOrgModuleFilter { - """Filter by the object’s `id` field.""" - id: UUIDFilter - - """Filter by the object’s `databaseId` field.""" - databaseId: UUIDFilter - - """Filter by the object’s `schemaId` field.""" - schemaId: UUIDFilter - - """Filter by the object’s `tableId` field.""" - tableId: UUIDFilter - - """Filter by the object’s `tableName` field.""" - tableName: StringFilter - - """Filter by the object’s `apiName` field.""" - apiName: StringFilter - - """Filter by the object’s `privateApiName` field.""" - privateApiName: StringFilter - - """Checks for all expressions in this list.""" - and: [ConfigSecretsOrgModuleFilter!] - - """Checks for any expressions in this list.""" - or: [ConfigSecretsOrgModuleFilter!] - - """Negates the expression.""" - not: ConfigSecretsOrgModuleFilter -} - -"""Methods to use when ordering `ConfigSecretsOrgModule`.""" -enum ConfigSecretsOrgModuleOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - DATABASE_ID_ASC - DATABASE_ID_DESC - SCHEMA_ID_ASC - SCHEMA_ID_DESC - TABLE_ID_ASC - TABLE_ID_DESC - TABLE_NAME_ASC - TABLE_NAME_DESC - API_NAME_ASC - API_NAME_DESC - PRIVATE_API_NAME_ASC - PRIVATE_API_NAME_DESC + SESSIONS_TABLE_ID_ASC + SESSIONS_TABLE_ID_DESC } """A connection to a list of `DevicesModule` values.""" @@ -2609,53 +2575,48 @@ enum I18NModuleOrderBy { PRIVATE_API_NAME_DESC } -"""A connection to a list of `UserCredentialsModule` values.""" -type UserCredentialsModuleConnection { - """A list of `UserCredentialsModule` objects.""" - nodes: [UserCredentialsModule]! +"""A connection to a list of `UserSettingsModule` values.""" +type UserSettingsModuleConnection { + """A list of `UserSettingsModule` objects.""" + nodes: [UserSettingsModule]! """ - A list of edges which contains the `UserCredentialsModule` and cursor to aid in pagination. + A list of edges which contains the `UserSettingsModule` and cursor to aid in pagination. """ - edges: [UserCredentialsModuleEdge]! + edges: [UserSettingsModuleEdge]! """Information to aid in pagination.""" pageInfo: PageInfo! """ - The count of *all* `UserCredentialsModule` you could get from the connection. + The count of *all* `UserSettingsModule` you could get from the connection. """ totalCount: Int! } -""" -Per-user bcrypt credential store (password hashes, API key hashes). - Always user-scoped with AuthzDirectOwner RLS. Consumed by user_auth_module, - identity_providers_module, and bootstrap procedures. -""" -type UserCredentialsModule { +type UserSettingsModule { id: UUID! databaseId: UUID! schemaId: UUID! tableId: UUID! + ownerTableId: UUID! tableName: String! apiName: String - privateApiName: String } -"""A `UserCredentialsModule` edge in the connection.""" -type UserCredentialsModuleEdge { +"""A `UserSettingsModule` edge in the connection.""" +type UserSettingsModuleEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `UserCredentialsModule` at the end of the edge.""" - node: UserCredentialsModule + """The `UserSettingsModule` at the end of the edge.""" + node: UserSettingsModule } """ -A filter to be used against `UserCredentialsModule` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `UserSettingsModule` object types. All fields are combined with a logical ‘and.’ """ -input UserCredentialsModuleFilter { +input UserSettingsModuleFilter { """Filter by the object’s `id` field.""" id: UUIDFilter @@ -2668,27 +2629,27 @@ input UserCredentialsModuleFilter { """Filter by the object’s `tableId` field.""" tableId: UUIDFilter + """Filter by the object’s `ownerTableId` field.""" + ownerTableId: UUIDFilter + """Filter by the object’s `tableName` field.""" tableName: StringFilter """Filter by the object’s `apiName` field.""" apiName: StringFilter - """Filter by the object’s `privateApiName` field.""" - privateApiName: StringFilter - """Checks for all expressions in this list.""" - and: [UserCredentialsModuleFilter!] + and: [UserSettingsModuleFilter!] """Checks for any expressions in this list.""" - or: [UserCredentialsModuleFilter!] + or: [UserSettingsModuleFilter!] """Negates the expression.""" - not: UserCredentialsModuleFilter + not: UserSettingsModuleFilter } -"""Methods to use when ordering `UserCredentialsModule`.""" -enum UserCredentialsModuleOrderBy { +"""Methods to use when ordering `UserSettingsModule`.""" +enum UserSettingsModuleOrderBy { NATURAL PRIMARY_KEY_ASC PRIMARY_KEY_DESC @@ -2700,89 +2661,85 @@ enum UserCredentialsModuleOrderBy { SCHEMA_ID_DESC TABLE_ID_ASC TABLE_ID_DESC + OWNER_TABLE_ID_ASC + OWNER_TABLE_ID_DESC TABLE_NAME_ASC TABLE_NAME_DESC API_NAME_ASC API_NAME_DESC - PRIVATE_API_NAME_ASC - PRIVATE_API_NAME_DESC } -"""A connection to a list of `UserSettingsModule` values.""" -type UserSettingsModuleConnection { - """A list of `UserSettingsModule` objects.""" - nodes: [UserSettingsModule]! +"""A connection to a list of `UserStateModule` values.""" +type UserStateModuleConnection { + """A list of `UserStateModule` objects.""" + nodes: [UserStateModule]! """ - A list of edges which contains the `UserSettingsModule` and cursor to aid in pagination. + A list of edges which contains the `UserStateModule` and cursor to aid in pagination. """ - edges: [UserSettingsModuleEdge]! + edges: [UserStateModuleEdge]! """Information to aid in pagination.""" pageInfo: PageInfo! """ - The count of *all* `UserSettingsModule` you could get from the connection. + The count of *all* `UserStateModule` you could get from the connection. """ totalCount: Int! } -type UserSettingsModule { +type UserStateModule { id: UUID! databaseId: UUID! + entityField: String schemaId: UUID! tableId: UUID! - ownerTableId: UUID! tableName: String! - apiName: String } -"""A `UserSettingsModule` edge in the connection.""" -type UserSettingsModuleEdge { +"""A `UserStateModule` edge in the connection.""" +type UserStateModuleEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `UserSettingsModule` at the end of the edge.""" - node: UserSettingsModule + """The `UserStateModule` at the end of the edge.""" + node: UserStateModule } """ -A filter to be used against `UserSettingsModule` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `UserStateModule` object types. All fields are combined with a logical ‘and.’ """ -input UserSettingsModuleFilter { +input UserStateModuleFilter { """Filter by the object’s `id` field.""" id: UUIDFilter """Filter by the object’s `databaseId` field.""" databaseId: UUIDFilter + """Filter by the object’s `entityField` field.""" + entityField: StringFilter + """Filter by the object’s `schemaId` field.""" schemaId: UUIDFilter """Filter by the object’s `tableId` field.""" tableId: UUIDFilter - """Filter by the object’s `ownerTableId` field.""" - ownerTableId: UUIDFilter - """Filter by the object’s `tableName` field.""" tableName: StringFilter - """Filter by the object’s `apiName` field.""" - apiName: StringFilter - """Checks for all expressions in this list.""" - and: [UserSettingsModuleFilter!] + and: [UserStateModuleFilter!] """Checks for any expressions in this list.""" - or: [UserSettingsModuleFilter!] + or: [UserStateModuleFilter!] """Negates the expression.""" - not: UserSettingsModuleFilter + not: UserStateModuleFilter } -"""Methods to use when ordering `UserSettingsModule`.""" -enum UserSettingsModuleOrderBy { +"""Methods to use when ordering `UserStateModule`.""" +enum UserStateModuleOrderBy { NATURAL PRIMARY_KEY_ASC PRIMARY_KEY_DESC @@ -2790,67 +2747,72 @@ enum UserSettingsModuleOrderBy { ID_DESC DATABASE_ID_ASC DATABASE_ID_DESC + ENTITY_FIELD_ASC + ENTITY_FIELD_DESC SCHEMA_ID_ASC SCHEMA_ID_DESC TABLE_ID_ASC TABLE_ID_DESC - OWNER_TABLE_ID_ASC - OWNER_TABLE_ID_DESC TABLE_NAME_ASC TABLE_NAME_DESC - API_NAME_ASC - API_NAME_DESC } -"""A connection to a list of `ConfigSecretsUserModule` values.""" -type ConfigSecretsUserModuleConnection { - """A list of `ConfigSecretsUserModule` objects.""" - nodes: [ConfigSecretsUserModule]! +"""A connection to a list of `UserCredentialsModule` values.""" +type UserCredentialsModuleConnection { + """A list of `UserCredentialsModule` objects.""" + nodes: [UserCredentialsModule]! """ - A list of edges which contains the `ConfigSecretsUserModule` and cursor to aid in pagination. + A list of edges which contains the `UserCredentialsModule` and cursor to aid in pagination. """ - edges: [ConfigSecretsUserModuleEdge]! + edges: [UserCredentialsModuleEdge]! """Information to aid in pagination.""" pageInfo: PageInfo! """ - The count of *all* `ConfigSecretsUserModule` you could get from the connection. + The count of *all* `UserCredentialsModule` you could get from the connection. """ totalCount: Int! } -type ConfigSecretsUserModule { +""" +Per-user bcrypt credential store (password hashes, API key hashes). + Always user-scoped with AuthzDirectOwner RLS. Consumed by user_auth_module, + identity_providers_module, and bootstrap procedures. +""" +type UserCredentialsModule { id: UUID! databaseId: UUID! + entityField: String schemaId: UUID! tableId: UUID! tableName: String! - configDefinitionsTableId: UUID! - apiName: String privateApiName: String } -"""A `ConfigSecretsUserModule` edge in the connection.""" -type ConfigSecretsUserModuleEdge { +"""A `UserCredentialsModule` edge in the connection.""" +type UserCredentialsModuleEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `ConfigSecretsUserModule` at the end of the edge.""" - node: ConfigSecretsUserModule + """The `UserCredentialsModule` at the end of the edge.""" + node: UserCredentialsModule } """ -A filter to be used against `ConfigSecretsUserModule` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `UserCredentialsModule` object types. All fields are combined with a logical ‘and.’ """ -input ConfigSecretsUserModuleFilter { +input UserCredentialsModuleFilter { """Filter by the object’s `id` field.""" id: UUIDFilter """Filter by the object’s `databaseId` field.""" databaseId: UUIDFilter + """Filter by the object’s `entityField` field.""" + entityField: StringFilter + """Filter by the object’s `schemaId` field.""" schemaId: UUIDFilter @@ -2860,27 +2822,21 @@ input ConfigSecretsUserModuleFilter { """Filter by the object’s `tableName` field.""" tableName: StringFilter - """Filter by the object’s `configDefinitionsTableId` field.""" - configDefinitionsTableId: UUIDFilter - - """Filter by the object’s `apiName` field.""" - apiName: StringFilter - """Filter by the object’s `privateApiName` field.""" privateApiName: StringFilter """Checks for all expressions in this list.""" - and: [ConfigSecretsUserModuleFilter!] + and: [UserCredentialsModuleFilter!] """Checks for any expressions in this list.""" - or: [ConfigSecretsUserModuleFilter!] + or: [UserCredentialsModuleFilter!] """Negates the expression.""" - not: ConfigSecretsUserModuleFilter + not: UserCredentialsModuleFilter } -"""Methods to use when ordering `ConfigSecretsUserModule`.""" -enum ConfigSecretsUserModuleOrderBy { +"""Methods to use when ordering `UserCredentialsModule`.""" +enum UserCredentialsModuleOrderBy { NATURAL PRIMARY_KEY_ASC PRIMARY_KEY_DESC @@ -2888,16 +2844,14 @@ enum ConfigSecretsUserModuleOrderBy { ID_DESC DATABASE_ID_ASC DATABASE_ID_DESC + ENTITY_FIELD_ASC + ENTITY_FIELD_DESC SCHEMA_ID_ASC SCHEMA_ID_DESC TABLE_ID_ASC TABLE_ID_DESC TABLE_NAME_ASC TABLE_NAME_DESC - CONFIG_DEFINITIONS_TABLE_ID_ASC - CONFIG_DEFINITIONS_TABLE_ID_DESC - API_NAME_ASC - API_NAME_DESC PRIVATE_API_NAME_ASC PRIVATE_API_NAME_DESC } @@ -3541,6 +3495,106 @@ enum WebauthnCredentialsModuleOrderBy { PRIVATE_API_NAME_DESC } +"""A connection to a list of `ConfigSecretsUserModule` values.""" +type ConfigSecretsUserModuleConnection { + """A list of `ConfigSecretsUserModule` objects.""" + nodes: [ConfigSecretsUserModule]! + + """ + A list of edges which contains the `ConfigSecretsUserModule` and cursor to aid in pagination. + """ + edges: [ConfigSecretsUserModuleEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `ConfigSecretsUserModule` you could get from the connection. + """ + totalCount: Int! +} + +type ConfigSecretsUserModule { + id: UUID! + databaseId: UUID! + entityField: String + schemaId: UUID! + tableId: UUID! + tableName: String! + apiName: String + privateApiName: String +} + +"""A `ConfigSecretsUserModule` edge in the connection.""" +type ConfigSecretsUserModuleEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `ConfigSecretsUserModule` at the end of the edge.""" + node: ConfigSecretsUserModule +} + +""" +A filter to be used against `ConfigSecretsUserModule` object types. All fields are combined with a logical ‘and.’ +""" +input ConfigSecretsUserModuleFilter { + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `databaseId` field.""" + databaseId: UUIDFilter + + """Filter by the object’s `entityField` field.""" + entityField: 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 `apiName` field.""" + apiName: StringFilter + + """Filter by the object’s `privateApiName` field.""" + privateApiName: StringFilter + + """Checks for all expressions in this list.""" + and: [ConfigSecretsUserModuleFilter!] + + """Checks for any expressions in this list.""" + or: [ConfigSecretsUserModuleFilter!] + + """Negates the expression.""" + not: ConfigSecretsUserModuleFilter +} + +"""Methods to use when ordering `ConfigSecretsUserModule`.""" +enum ConfigSecretsUserModuleOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC + ENTITY_FIELD_ASC + ENTITY_FIELD_DESC + SCHEMA_ID_ASC + SCHEMA_ID_DESC + TABLE_ID_ASC + TABLE_ID_DESC + TABLE_NAME_ASC + TABLE_NAME_DESC + API_NAME_ASC + API_NAME_DESC + PRIVATE_API_NAME_ASC + PRIVATE_API_NAME_DESC +} + """A connection to a list of `CryptoAddressesModule` values.""" type CryptoAddressesModuleConnection { """A list of `CryptoAddressesModule` objects.""" @@ -3924,70 +3978,52 @@ enum DenormalizedTableFieldOrderBy { FUNC_ORDER_DESC } -"""A connection to a list of `IdentityProvidersModule` values.""" -type IdentityProvidersModuleConnection { - """A list of `IdentityProvidersModule` objects.""" - nodes: [IdentityProvidersModule]! +"""A connection to a list of `RlsModule` values.""" +type RlsModuleConnection { + """A list of `RlsModule` objects.""" + nodes: [RlsModule]! """ - A list of edges which contains the `IdentityProvidersModule` and cursor to aid in pagination. + A list of edges which contains the `RlsModule` and cursor to aid in pagination. """ - edges: [IdentityProvidersModuleEdge]! + edges: [RlsModuleEdge]! """Information to aid in pagination.""" pageInfo: PageInfo! - """ - The count of *all* `IdentityProvidersModule` you could get from the connection. - """ + """The count of *all* `RlsModule` you could get from the connection.""" totalCount: Int! } -""" -Entity-aware config row for the identity_providers_module, which provisions a per-database - identity_providers table holding OAuth2 / OIDC (and future SAML) provider definitions. - The scope column determines which config_secrets_module table the rotate proc targets - (app_secrets for app scope, org_secrets for org scope). When scope = platform, - the secrets table gets a database_id column and platform-level RLS via - AuthzRelatedEntityMembership through database.owner_id. - Scoping matrix: - scope=app → per-database flat, in-app admin manages - scope=platform → per-database, platform admin manages (generate:constructive) - scope=org → per-org tenant, org admin manages -""" -type IdentityProvidersModule { +type RlsModule { id: UUID! databaseId: UUID! schemaId: UUID! - - """ - Private schema that hosts SECURITY DEFINER admin helpers which write to identity_providers (create / update / enable / disable / rotate-secret / delete) and the per-app quota check. - """ privateSchemaId: UUID! - publicSchemaName: String - privateSchemaName: String - tableId: UUID! - tableName: String! + sessionCredentialsTableId: UUID! + sessionsTableId: UUID! + usersTableId: UUID! + authenticate: String! + authenticateStrict: String! + currentRole: String! + currentRoleId: String! apiName: String privateApiName: String - scope: String! - prefix: String! - entityTableId: UUID } -"""A `IdentityProvidersModule` edge in the connection.""" -type IdentityProvidersModuleEdge { +"""A `RlsModule` edge in the connection.""" +type RlsModuleEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `IdentityProvidersModule` at the end of the edge.""" - node: IdentityProvidersModule + """The `RlsModule` at the end of the edge.""" + node: RlsModule } """ -A filter to be used against `IdentityProvidersModule` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `RlsModule` object types. All fields are combined with a logical ‘and.’ """ -input IdentityProvidersModuleFilter { +input RlsModuleFilter { """Filter by the object’s `id` field.""" id: UUIDFilter @@ -4000,17 +4036,26 @@ input IdentityProvidersModuleFilter { """Filter by the object’s `privateSchemaId` field.""" privateSchemaId: UUIDFilter - """Filter by the object’s `publicSchemaName` field.""" - publicSchemaName: StringFilter + """Filter by the object’s `sessionCredentialsTableId` field.""" + sessionCredentialsTableId: UUIDFilter - """Filter by the object’s `privateSchemaName` field.""" - privateSchemaName: StringFilter + """Filter by the object’s `sessionsTableId` field.""" + sessionsTableId: UUIDFilter - """Filter by the object’s `tableId` field.""" - tableId: UUIDFilter + """Filter by the object’s `usersTableId` field.""" + usersTableId: UUIDFilter - """Filter by the object’s `tableName` field.""" - tableName: StringFilter + """Filter by the object’s `authenticate` field.""" + authenticate: StringFilter + + """Filter by the object’s `authenticateStrict` field.""" + authenticateStrict: StringFilter + + """Filter by the object’s `currentRole` field.""" + currentRole: StringFilter + + """Filter by the object’s `currentRoleId` field.""" + currentRoleId: StringFilter """Filter by the object’s `apiName` field.""" apiName: StringFilter @@ -4018,148 +4063,11 @@ input IdentityProvidersModuleFilter { """Filter by the object’s `privateApiName` field.""" privateApiName: StringFilter - """Filter by the object’s `scope` field.""" - scope: StringFilter + """Checks for all expressions in this list.""" + and: [RlsModuleFilter!] - """Filter by the object’s `prefix` field.""" - prefix: StringFilter - - """Filter by the object’s `entityTableId` field.""" - entityTableId: UUIDFilter - - """Checks for all expressions in this list.""" - and: [IdentityProvidersModuleFilter!] - - """Checks for any expressions in this list.""" - or: [IdentityProvidersModuleFilter!] - - """Negates the expression.""" - not: IdentityProvidersModuleFilter -} - -"""Methods to use when ordering `IdentityProvidersModule`.""" -enum IdentityProvidersModuleOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - DATABASE_ID_ASC - DATABASE_ID_DESC - SCHEMA_ID_ASC - SCHEMA_ID_DESC - PRIVATE_SCHEMA_ID_ASC - PRIVATE_SCHEMA_ID_DESC - PUBLIC_SCHEMA_NAME_ASC - PUBLIC_SCHEMA_NAME_DESC - PRIVATE_SCHEMA_NAME_ASC - PRIVATE_SCHEMA_NAME_DESC - TABLE_ID_ASC - TABLE_ID_DESC - TABLE_NAME_ASC - TABLE_NAME_DESC - API_NAME_ASC - API_NAME_DESC - PRIVATE_API_NAME_ASC - PRIVATE_API_NAME_DESC - SCOPE_ASC - SCOPE_DESC - PREFIX_ASC - PREFIX_DESC - ENTITY_TABLE_ID_ASC - ENTITY_TABLE_ID_DESC -} - -"""A connection to a list of `RlsModule` values.""" -type RlsModuleConnection { - """A list of `RlsModule` objects.""" - nodes: [RlsModule]! - - """ - A list of edges which contains the `RlsModule` and cursor to aid in pagination. - """ - edges: [RlsModuleEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """The count of *all* `RlsModule` you could get from the connection.""" - totalCount: Int! -} - -type RlsModule { - id: UUID! - databaseId: UUID! - schemaId: UUID! - privateSchemaId: UUID! - sessionCredentialsTableId: UUID! - sessionsTableId: UUID! - usersTableId: UUID! - authenticate: String! - authenticateStrict: String! - currentRole: String! - currentRoleId: String! - apiName: String - privateApiName: String -} - -"""A `RlsModule` edge in the connection.""" -type RlsModuleEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `RlsModule` at the end of the edge.""" - node: RlsModule -} - -""" -A filter to be used against `RlsModule` object types. All fields are combined with a logical ‘and.’ -""" -input RlsModuleFilter { - """Filter by the object’s `id` field.""" - id: UUIDFilter - - """Filter by the object’s `databaseId` field.""" - databaseId: UUIDFilter - - """Filter by the object’s `schemaId` field.""" - schemaId: UUIDFilter - - """Filter by the object’s `privateSchemaId` field.""" - privateSchemaId: UUIDFilter - - """Filter by the object’s `sessionCredentialsTableId` field.""" - sessionCredentialsTableId: UUIDFilter - - """Filter by the object’s `sessionsTableId` field.""" - sessionsTableId: UUIDFilter - - """Filter by the object’s `usersTableId` field.""" - usersTableId: UUIDFilter - - """Filter by the object’s `authenticate` field.""" - authenticate: StringFilter - - """Filter by the object’s `authenticateStrict` field.""" - authenticateStrict: StringFilter - - """Filter by the object’s `currentRole` field.""" - currentRole: StringFilter - - """Filter by the object’s `currentRoleId` field.""" - currentRoleId: StringFilter - - """Filter by the object’s `apiName` field.""" - apiName: StringFilter - - """Filter by the object’s `privateApiName` field.""" - privateApiName: StringFilter - - """Checks for all expressions in this list.""" - and: [RlsModuleFilter!] - - """Checks for any expressions in this list.""" - or: [RlsModuleFilter!] + """Checks for any expressions in this list.""" + or: [RlsModuleFilter!] """Negates the expression.""" not: RlsModuleFilter @@ -5669,232 +5577,222 @@ enum SecureTableProvisionOrderBy { OUT_FIELDS_DESC } -"""A connection to a list of `DatabaseProvisionModule` values.""" -type DatabaseProvisionModuleConnection { - """A list of `DatabaseProvisionModule` objects.""" - nodes: [DatabaseProvisionModule]! +"""A connection to a list of `IdentityProvidersModule` values.""" +type IdentityProvidersModuleConnection { + """A list of `IdentityProvidersModule` objects.""" + nodes: [IdentityProvidersModule]! """ - A list of edges which contains the `DatabaseProvisionModule` and cursor to aid in pagination. + A list of edges which contains the `IdentityProvidersModule` and cursor to aid in pagination. """ - edges: [DatabaseProvisionModuleEdge]! + edges: [IdentityProvidersModuleEdge]! """Information to aid in pagination.""" pageInfo: PageInfo! """ - The count of *all* `DatabaseProvisionModule` you could get from the connection. + The count of *all* `IdentityProvidersModule` you could get from the connection. """ totalCount: Int! } """ -Tracks database provisioning requests and their status. The BEFORE INSERT trigger creates the database and sets database_id before RLS policies are evaluated. +Entity-aware config row for the identity_providers_module, which provisions a per-database + identity_providers table holding OAuth2 / OIDC (and future SAML) provider definitions. + The scope column determines which internal_secrets_module table the rotate proc targets + (app_secrets for app scope, platform_secrets for platform scope). When scope = database, + the secrets table gets a database_id column. + Scoping matrix: + 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 """ -type DatabaseProvisionModule { +type IdentityProvidersModule { id: UUID! - - """The name for the new database""" - databaseName: String! - - """UUID of the user who owns this database""" - ownerId: UUID! - - """ - Subdomain prefix for the database. If null, auto-generated using unique_names + random chars - """ - subdomain: String - - """Base domain for the database (e.g., example.com)""" - domain: String! - - """ - JSONB array of modules to install. Each element is either a string ("users_module") or a [name, options] tuple (["permissions_module", {"scope": "app"}]) - """ - modules: JSON! - - """Additional configuration options for provisioning""" - options: JSON! + databaseId: UUID! + entityField: String + schemaId: UUID! """ - When true, copies the owner user and password hash from source database to the newly provisioned database + Private schema that hosts SECURITY DEFINER admin helpers which write to identity_providers (create / update / enable / disable / rotate-secret / delete) and the per-app quota check. """ - bootstrapUser: Boolean! - - """Current status: pending, in_progress, completed, or failed""" - status: String! - errorMessage: String - - """The ID of the provisioned database (set by trigger before RLS check)""" - databaseId: UUID - createdAt: Datetime! - updatedAt: Datetime! - completedAt: Datetime + privateSchemaId: UUID! + publicSchemaName: String + privateSchemaName: String + tableId: UUID! + tableName: String! + apiName: String + privateApiName: String + scope: String! + prefix: String! + entityTableId: UUID } -"""A `DatabaseProvisionModule` edge in the connection.""" -type DatabaseProvisionModuleEdge { +"""A `IdentityProvidersModule` edge in the connection.""" +type IdentityProvidersModuleEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `DatabaseProvisionModule` at the end of the edge.""" - node: DatabaseProvisionModule + """The `IdentityProvidersModule` at the end of the edge.""" + node: IdentityProvidersModule } """ -A filter to be used against `DatabaseProvisionModule` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `IdentityProvidersModule` object types. All fields are combined with a logical ‘and.’ """ -input DatabaseProvisionModuleFilter { +input IdentityProvidersModuleFilter { """Filter by the object’s `id` field.""" id: UUIDFilter - """Filter by the object’s `databaseName` field.""" - databaseName: StringFilter + """Filter by the object’s `databaseId` field.""" + databaseId: UUIDFilter - """Filter by the object’s `ownerId` field.""" - ownerId: UUIDFilter + """Filter by the object’s `entityField` field.""" + entityField: StringFilter - """Filter by the object’s `subdomain` field.""" - subdomain: StringFilter + """Filter by the object’s `schemaId` field.""" + schemaId: UUIDFilter - """Filter by the object’s `domain` field.""" - domain: StringFilter + """Filter by the object’s `privateSchemaId` field.""" + privateSchemaId: UUIDFilter - """Filter by the object’s `modules` field.""" - modules: JSONFilter + """Filter by the object’s `publicSchemaName` field.""" + publicSchemaName: StringFilter - """Filter by the object’s `options` field.""" - options: JSONFilter + """Filter by the object’s `privateSchemaName` field.""" + privateSchemaName: StringFilter - """Filter by the object’s `bootstrapUser` field.""" - bootstrapUser: BooleanFilter + """Filter by the object’s `tableId` field.""" + tableId: UUIDFilter - """Filter by the object’s `status` field.""" - status: StringFilter + """Filter by the object’s `tableName` field.""" + tableName: StringFilter - """Filter by the object’s `errorMessage` field.""" - errorMessage: StringFilter + """Filter by the object’s `apiName` field.""" + apiName: StringFilter - """Filter by the object’s `databaseId` field.""" - databaseId: UUIDFilter + """Filter by the object’s `privateApiName` field.""" + privateApiName: StringFilter - """Filter by the object’s `createdAt` field.""" - createdAt: DatetimeFilter + """Filter by the object’s `scope` field.""" + scope: StringFilter - """Filter by the object’s `updatedAt` field.""" - updatedAt: DatetimeFilter + """Filter by the object’s `prefix` field.""" + prefix: StringFilter - """Filter by the object’s `completedAt` field.""" - completedAt: DatetimeFilter + """Filter by the object’s `entityTableId` field.""" + entityTableId: UUIDFilter """Checks for all expressions in this list.""" - and: [DatabaseProvisionModuleFilter!] + and: [IdentityProvidersModuleFilter!] """Checks for any expressions in this list.""" - or: [DatabaseProvisionModuleFilter!] + or: [IdentityProvidersModuleFilter!] """Negates the expression.""" - not: DatabaseProvisionModuleFilter + not: IdentityProvidersModuleFilter } -"""Methods to use when ordering `DatabaseProvisionModule`.""" -enum DatabaseProvisionModuleOrderBy { +"""Methods to use when ordering `IdentityProvidersModule`.""" +enum IdentityProvidersModuleOrderBy { NATURAL PRIMARY_KEY_ASC PRIMARY_KEY_DESC ID_ASC ID_DESC - DATABASE_NAME_ASC - DATABASE_NAME_DESC - OWNER_ID_ASC - OWNER_ID_DESC - SUBDOMAIN_ASC - SUBDOMAIN_DESC - DOMAIN_ASC - DOMAIN_DESC - MODULES_ASC - MODULES_DESC - OPTIONS_ASC - OPTIONS_DESC - BOOTSTRAP_USER_ASC - BOOTSTRAP_USER_DESC - STATUS_ASC - STATUS_DESC - ERROR_MESSAGE_ASC - ERROR_MESSAGE_DESC DATABASE_ID_ASC DATABASE_ID_DESC - CREATED_AT_ASC - CREATED_AT_DESC - UPDATED_AT_ASC - UPDATED_AT_DESC - COMPLETED_AT_ASC - COMPLETED_AT_DESC + ENTITY_FIELD_ASC + ENTITY_FIELD_DESC + SCHEMA_ID_ASC + SCHEMA_ID_DESC + PRIVATE_SCHEMA_ID_ASC + PRIVATE_SCHEMA_ID_DESC + PUBLIC_SCHEMA_NAME_ASC + PUBLIC_SCHEMA_NAME_DESC + PRIVATE_SCHEMA_NAME_ASC + PRIVATE_SCHEMA_NAME_DESC + TABLE_ID_ASC + TABLE_ID_DESC + TABLE_NAME_ASC + TABLE_NAME_DESC + API_NAME_ASC + API_NAME_DESC + PRIVATE_API_NAME_ASC + PRIVATE_API_NAME_DESC + SCOPE_ASC + SCOPE_DESC + PREFIX_ASC + PREFIX_DESC + ENTITY_TABLE_ID_ASC + ENTITY_TABLE_ID_DESC } -"""A connection to a list of `ConfigSecretsModule` values.""" -type ConfigSecretsModuleConnection { - """A list of `ConfigSecretsModule` objects.""" - nodes: [ConfigSecretsModule]! +"""A connection to a list of `IntegrationProvidersModule` values.""" +type IntegrationProvidersModuleConnection { + """A list of `IntegrationProvidersModule` objects.""" + nodes: [IntegrationProvidersModule]! """ - A list of edges which contains the `ConfigSecretsModule` and cursor to aid in pagination. + A list of edges which contains the `IntegrationProvidersModule` and cursor to aid in pagination. """ - edges: [ConfigSecretsModuleEdge]! + edges: [IntegrationProvidersModuleEdge]! """Information to aid in pagination.""" pageInfo: PageInfo! """ - The count of *all* `ConfigSecretsModule` you could get from the connection. + The count of *all* `IntegrationProvidersModule` you could get from the connection. """ totalCount: Int! } """ -Entity-aware PGP-encrypted key-value config/secrets module. Supports app-level (admin-only) - and org-scoped (per-org secrets with manage_secrets permission) via the scope column. - User-scoped bcrypt credentials are handled by user_credentials_module. +Config row for the integration_providers_module, which provisions a per-database + integration_providers table holding branded, reusable service definitions. + 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. """ -type ConfigSecretsModule { +type IntegrationProvidersModule { id: UUID! databaseId: UUID! + entityField: String schemaId: UUID! privateSchemaId: UUID! publicSchemaName: String privateSchemaName: String tableId: UUID! - configDefinitionsTableId: UUID tableName: String! apiName: String privateApiName: String scope: String! prefix: String! entityTableId: UUID - policies: JSON - provisions: JSON - hasConfig: Boolean! } -"""A `ConfigSecretsModule` edge in the connection.""" -type ConfigSecretsModuleEdge { +"""A `IntegrationProvidersModule` edge in the connection.""" +type IntegrationProvidersModuleEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `ConfigSecretsModule` at the end of the edge.""" - node: ConfigSecretsModule + """The `IntegrationProvidersModule` at the end of the edge.""" + node: IntegrationProvidersModule } """ -A filter to be used against `ConfigSecretsModule` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `IntegrationProvidersModule` object types. All fields are combined with a logical ‘and.’ """ -input ConfigSecretsModuleFilter { +input IntegrationProvidersModuleFilter { """Filter by the object’s `id` field.""" id: UUIDFilter """Filter by the object’s `databaseId` field.""" databaseId: UUIDFilter + """Filter by the object’s `entityField` field.""" + entityField: StringFilter + """Filter by the object’s `schemaId` field.""" schemaId: UUIDFilter @@ -5910,9 +5808,6 @@ input ConfigSecretsModuleFilter { """Filter by the object’s `tableId` field.""" tableId: UUIDFilter - """Filter by the object’s `configDefinitionsTableId` field.""" - configDefinitionsTableId: UUIDFilter - """Filter by the object’s `tableName` field.""" tableName: StringFilter @@ -5931,27 +5826,18 @@ input ConfigSecretsModuleFilter { """Filter by the object’s `entityTableId` field.""" entityTableId: UUIDFilter - """Filter by the object’s `policies` field.""" - policies: JSONFilter - - """Filter by the object’s `provisions` field.""" - provisions: JSONFilter - - """Filter by the object’s `hasConfig` field.""" - hasConfig: BooleanFilter - """Checks for all expressions in this list.""" - and: [ConfigSecretsModuleFilter!] + and: [IntegrationProvidersModuleFilter!] """Checks for any expressions in this list.""" - or: [ConfigSecretsModuleFilter!] + or: [IntegrationProvidersModuleFilter!] """Negates the expression.""" - not: ConfigSecretsModuleFilter + not: IntegrationProvidersModuleFilter } -"""Methods to use when ordering `ConfigSecretsModule`.""" -enum ConfigSecretsModuleOrderBy { +"""Methods to use when ordering `IntegrationProvidersModule`.""" +enum IntegrationProvidersModuleOrderBy { NATURAL PRIMARY_KEY_ASC PRIMARY_KEY_DESC @@ -5959,6 +5845,8 @@ enum ConfigSecretsModuleOrderBy { ID_DESC DATABASE_ID_ASC DATABASE_ID_DESC + ENTITY_FIELD_ASC + ENTITY_FIELD_DESC SCHEMA_ID_ASC SCHEMA_ID_DESC PRIVATE_SCHEMA_ID_ASC @@ -5969,8 +5857,6 @@ enum ConfigSecretsModuleOrderBy { PRIVATE_SCHEMA_NAME_DESC TABLE_ID_ASC TABLE_ID_DESC - CONFIG_DEFINITIONS_TABLE_ID_ASC - CONFIG_DEFINITIONS_TABLE_ID_DESC TABLE_NAME_ASC TABLE_NAME_DESC API_NAME_ASC @@ -5983,338 +5869,240 @@ enum ConfigSecretsModuleOrderBy { PREFIX_DESC ENTITY_TABLE_ID_ASC ENTITY_TABLE_ID_DESC - POLICIES_ASC - POLICIES_DESC - PROVISIONS_ASC - PROVISIONS_DESC - HAS_CONFIG_ASC - HAS_CONFIG_DESC } -"""A connection to a list of `GraphModule` values.""" -type GraphModuleConnection { - """A list of `GraphModule` objects.""" - nodes: [GraphModule]! +"""A connection to a list of `DbPoolConfig` values.""" +type DbPoolConfigConnection { + """A list of `DbPoolConfig` objects.""" + nodes: [DbPoolConfig]! """ - A list of edges which contains the `GraphModule` and cursor to aid in pagination. + A list of edges which contains the `DbPoolConfig` and cursor to aid in pagination. """ - edges: [GraphModuleEdge]! + edges: [DbPoolConfigEdge]! """Information to aid in pagination.""" pageInfo: PageInfo! - """The count of *all* `GraphModule` you could get from the connection.""" + """The count of *all* `DbPoolConfig` you could get from the connection.""" totalCount: Int! } -type GraphModule { +""" +Per-preset configuration for the warm database pool: sizing, TTL, and the platform service org that owns unclaimed warm databases. +""" +type DbPoolConfig { id: UUID! - databaseId: UUID! - publicSchemaId: UUID! - privateSchemaId: UUID! - publicSchemaName: String - privateSchemaName: String - scope: String! - prefix: String! - merkleStoreModuleId: UUID! - graphsTableId: UUID! - apiName: String - privateApiName: String - entityTableId: UUID - policies: JSON - provisions: JSON - defaultPermissions: [String] - createdAt: Datetime! - """ - Reads a single `MerkleStoreModule` that is related to this `GraphModule`. - """ - merkleStoreModule: MerkleStoreModule -} + """Slug of the db_presets catalog row this pool serves""" + presetSlug: String! -type MerkleStoreModule { - id: UUID! - databaseId: UUID! - schemaId: UUID! - privateSchemaId: UUID! - publicSchemaName: String - privateSchemaName: String - objectTableId: UUID! - storeTableId: UUID! - commitTableId: UUID! - refTableId: UUID! - prefix: String! - apiName: String - privateApiName: String - scope: String! - functionPrefix: String - permissionKey: String - createdAt: Datetime! + """Base domain used when provisioning warm databases""" + domain: String! - """Reads and enables pagination through a set of `GraphModule`.""" - graphModules( - """Only read the first `n` values of the set.""" - first: Int + """ + Platform pool service org that owns warm databases until they are claimed + """ + poolOwnerId: UUID! - """Only read the last `n` values of the set.""" - last: Int + """Minimum number of ready warm databases the reconciler maintains""" + min: Int! - """ - Skip the first `n` values from our `after` cursor, an alternative to cursor - based pagination. May not be used with `last`. - """ - offset: Int + """Maximum number of warming + ready databases the reconciler will keep""" + max: Int! - """Read all values in the set before (above) this cursor.""" - before: Cursor + """How long a ready warm database stays claimable before it expires""" + warmTtl: Interval! - """Read all values in the set after (below) this cursor.""" - after: Cursor + """ + When false the reconciler stops warming and the claim path falls through to cold provisioning + """ + enabled: Boolean! + createdAt: Datetime! + updatedAt: Datetime! +} - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: GraphModuleFilter +"""A `DbPoolConfig` edge in the connection.""" +type DbPoolConfigEdge { + """A cursor for use in pagination.""" + cursor: Cursor - """The method to use when ordering `GraphModule`.""" - orderBy: [GraphModuleOrderBy!] = [PRIMARY_KEY_ASC] - ): GraphModuleConnection! + """The `DbPoolConfig` at the end of the edge.""" + node: DbPoolConfig } """ -A filter to be used against `GraphModule` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `DbPoolConfig` object types. All fields are combined with a logical ‘and.’ """ -input GraphModuleFilter { +input DbPoolConfigFilter { """Filter by the object’s `id` field.""" id: UUIDFilter - """Filter by the object’s `databaseId` field.""" - databaseId: UUIDFilter - - """Filter by the object’s `publicSchemaId` field.""" - publicSchemaId: UUIDFilter - - """Filter by the object’s `privateSchemaId` field.""" - privateSchemaId: UUIDFilter - - """Filter by the object’s `publicSchemaName` field.""" - publicSchemaName: StringFilter - - """Filter by the object’s `privateSchemaName` field.""" - privateSchemaName: StringFilter - - """Filter by the object’s `scope` field.""" - scope: StringFilter - - """Filter by the object’s `prefix` field.""" - prefix: StringFilter + """Filter by the object’s `presetSlug` field.""" + presetSlug: StringFilter - """Filter by the object’s `merkleStoreModuleId` field.""" - merkleStoreModuleId: UUIDFilter - - """Filter by the object’s `graphsTableId` field.""" - graphsTableId: UUIDFilter - - """Filter by the object’s `apiName` field.""" - apiName: StringFilter + """Filter by the object’s `domain` field.""" + domain: StringFilter - """Filter by the object’s `privateApiName` field.""" - privateApiName: StringFilter + """Filter by the object’s `poolOwnerId` field.""" + poolOwnerId: UUIDFilter - """Filter by the object’s `entityTableId` field.""" - entityTableId: UUIDFilter + """Filter by the object’s `min` field.""" + min: IntFilter - """Filter by the object’s `policies` field.""" - policies: JSONFilter + """Filter by the object’s `max` field.""" + max: IntFilter - """Filter by the object’s `provisions` field.""" - provisions: JSONFilter + """Filter by the object’s `warmTtl` field.""" + warmTtl: IntervalFilter - """Filter by the object’s `defaultPermissions` field.""" - defaultPermissions: StringListFilter + """Filter by the object’s `enabled` field.""" + enabled: BooleanFilter """Filter by the object’s `createdAt` field.""" createdAt: DatetimeFilter + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter + """Checks for all expressions in this list.""" - and: [GraphModuleFilter!] + and: [DbPoolConfigFilter!] """Checks for any expressions in this list.""" - or: [GraphModuleFilter!] + or: [DbPoolConfigFilter!] """Negates the expression.""" - not: GraphModuleFilter - - """Filter by the object’s `merkleStoreModule` relation.""" - merkleStoreModule: MerkleStoreModuleFilter + not: DbPoolConfigFilter } -""" -A filter to be used against `MerkleStoreModule` object types. All fields are combined with a logical ‘and.’ -""" -input MerkleStoreModuleFilter { - """Filter by the object’s `id` field.""" - id: UUIDFilter - - """Filter by the object’s `databaseId` field.""" - databaseId: UUIDFilter +"""Methods to use when ordering `DbPoolConfig`.""" +enum DbPoolConfigOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + PRESET_SLUG_ASC + PRESET_SLUG_DESC + DOMAIN_ASC + DOMAIN_DESC + POOL_OWNER_ID_ASC + POOL_OWNER_ID_DESC + MIN_ASC + MIN_DESC + MAX_ASC + MAX_DESC + WARM_TTL_ASC + WARM_TTL_DESC + ENABLED_ASC + ENABLED_DESC + CREATED_AT_ASC + CREATED_AT_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC +} - """Filter by the object’s `schemaId` field.""" - schemaId: UUIDFilter +"""A connection to a list of `RealtimeModule` values.""" +type RealtimeModuleConnection { + """A list of `RealtimeModule` objects.""" + nodes: [RealtimeModule]! - """Filter by the object’s `privateSchemaId` field.""" - privateSchemaId: UUIDFilter + """ + A list of edges which contains the `RealtimeModule` and cursor to aid in pagination. + """ + edges: [RealtimeModuleEdge]! - """Filter by the object’s `publicSchemaName` field.""" - publicSchemaName: StringFilter + """Information to aid in pagination.""" + pageInfo: PageInfo! - """Filter by the object’s `privateSchemaName` field.""" - privateSchemaName: StringFilter + """The count of *all* `RealtimeModule` you could get from the connection.""" + totalCount: Int! +} - """Filter by the object’s `objectTableId` field.""" - objectTableId: UUIDFilter - - """Filter by the object’s `storeTableId` field.""" - storeTableId: UUIDFilter - - """Filter by the object’s `commitTableId` field.""" - commitTableId: UUIDFilter - - """Filter by the object’s `refTableId` field.""" - refTableId: UUIDFilter - - """Filter by the object’s `prefix` field.""" - prefix: StringFilter - - """Filter by the object’s `apiName` field.""" - apiName: StringFilter - - """Filter by the object’s `privateApiName` field.""" - privateApiName: StringFilter - - """Filter by the object’s `scope` field.""" - scope: StringFilter - - """Filter by the object’s `functionPrefix` field.""" - functionPrefix: StringFilter +type RealtimeModule { + id: UUID! + databaseId: UUID! + schemaId: UUID! + privateSchemaId: UUID! + subscriptionsSchemaId: UUID! + changeLogTableId: UUID! + listenerNodeTableId: UUID! + sourceRegistryTableId: UUID! + retentionHours: Int! + premake: Int! + interval: String! + notifyChannel: String + apiName: String + privateApiName: String +} - """Filter by the object’s `permissionKey` field.""" - permissionKey: StringFilter +"""A `RealtimeModule` edge in the connection.""" +type RealtimeModuleEdge { + """A cursor for use in pagination.""" + cursor: Cursor - """Filter by the object’s `createdAt` field.""" - createdAt: DatetimeFilter + """The `RealtimeModule` at the end of the edge.""" + node: RealtimeModule +} - """Checks for all expressions in this list.""" - and: [MerkleStoreModuleFilter!] +""" +A filter to be used against `RealtimeModule` object types. All fields are combined with a logical ‘and.’ +""" +input RealtimeModuleFilter { + """Filter by the object’s `id` field.""" + id: UUIDFilter - """Checks for any expressions in this list.""" - or: [MerkleStoreModuleFilter!] + """Filter by the object’s `databaseId` field.""" + databaseId: UUIDFilter - """Negates the expression.""" - not: MerkleStoreModuleFilter + """Filter by the object’s `schemaId` field.""" + schemaId: UUIDFilter - """Filter by the object’s `graphModules` relation.""" - graphModules: MerkleStoreModuleToManyGraphModuleFilter + """Filter by the object’s `privateSchemaId` field.""" + privateSchemaId: UUIDFilter - """`graphModules` exist.""" - graphModulesExist: Boolean -} + """Filter by the object’s `subscriptionsSchemaId` field.""" + subscriptionsSchemaId: UUIDFilter -""" -A filter to be used against many `GraphModule` object types. All fields are combined with a logical ‘and.’ -""" -input MerkleStoreModuleToManyGraphModuleFilter { - """Filters to entities where at least one related entity matches.""" - some: GraphModuleFilter + """Filter by the object’s `changeLogTableId` field.""" + changeLogTableId: UUIDFilter - """Filters to entities where every related entity matches.""" - every: GraphModuleFilter + """Filter by the object’s `listenerNodeTableId` field.""" + listenerNodeTableId: UUIDFilter - """Filters to entities where no related entity matches.""" - none: GraphModuleFilter -} + """Filter by the object’s `sourceRegistryTableId` field.""" + sourceRegistryTableId: UUIDFilter -"""Methods to use when ordering `GraphModule`.""" -enum GraphModuleOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - DATABASE_ID_ASC - DATABASE_ID_DESC - PUBLIC_SCHEMA_ID_ASC - PUBLIC_SCHEMA_ID_DESC - PRIVATE_SCHEMA_ID_ASC - PRIVATE_SCHEMA_ID_DESC - PUBLIC_SCHEMA_NAME_ASC - PUBLIC_SCHEMA_NAME_DESC - PRIVATE_SCHEMA_NAME_ASC - PRIVATE_SCHEMA_NAME_DESC - SCOPE_ASC - SCOPE_DESC - PREFIX_ASC - PREFIX_DESC - MERKLE_STORE_MODULE_ID_ASC - MERKLE_STORE_MODULE_ID_DESC - GRAPHS_TABLE_ID_ASC - GRAPHS_TABLE_ID_DESC - API_NAME_ASC - API_NAME_DESC - PRIVATE_API_NAME_ASC - PRIVATE_API_NAME_DESC - ENTITY_TABLE_ID_ASC - ENTITY_TABLE_ID_DESC - POLICIES_ASC - POLICIES_DESC - PROVISIONS_ASC - PROVISIONS_DESC - DEFAULT_PERMISSIONS_ASC - DEFAULT_PERMISSIONS_DESC - CREATED_AT_ASC - CREATED_AT_DESC -} + """Filter by the object’s `retentionHours` field.""" + retentionHours: IntFilter -"""A `GraphModule` edge in the connection.""" -type GraphModuleEdge { - """A cursor for use in pagination.""" - cursor: Cursor + """Filter by the object’s `premake` field.""" + premake: IntFilter - """The `GraphModule` at the end of the edge.""" - node: GraphModule -} + """Filter by the object’s `interval` field.""" + interval: StringFilter -"""A connection to a list of `MerkleStoreModule` values.""" -type MerkleStoreModuleConnection { - """A list of `MerkleStoreModule` objects.""" - nodes: [MerkleStoreModule]! + """Filter by the object’s `notifyChannel` field.""" + notifyChannel: StringFilter - """ - A list of edges which contains the `MerkleStoreModule` and cursor to aid in pagination. - """ - edges: [MerkleStoreModuleEdge]! + """Filter by the object’s `apiName` field.""" + apiName: StringFilter - """Information to aid in pagination.""" - pageInfo: PageInfo! + """Filter by the object’s `privateApiName` field.""" + privateApiName: StringFilter - """ - The count of *all* `MerkleStoreModule` you could get from the connection. - """ - totalCount: Int! -} + """Checks for all expressions in this list.""" + and: [RealtimeModuleFilter!] -"""A `MerkleStoreModule` edge in the connection.""" -type MerkleStoreModuleEdge { - """A cursor for use in pagination.""" - cursor: Cursor + """Checks for any expressions in this list.""" + or: [RealtimeModuleFilter!] - """The `MerkleStoreModule` at the end of the edge.""" - node: MerkleStoreModule + """Negates the expression.""" + not: RealtimeModuleFilter } -"""Methods to use when ordering `MerkleStoreModule`.""" -enum MerkleStoreModuleOrderBy { +"""Methods to use when ordering `RealtimeModule`.""" +enum RealtimeModuleOrderBy { NATURAL PRIMARY_KEY_ASC PRIMARY_KEY_DESC @@ -6326,86 +6114,82 @@ enum MerkleStoreModuleOrderBy { SCHEMA_ID_DESC PRIVATE_SCHEMA_ID_ASC PRIVATE_SCHEMA_ID_DESC - PUBLIC_SCHEMA_NAME_ASC - PUBLIC_SCHEMA_NAME_DESC - PRIVATE_SCHEMA_NAME_ASC - PRIVATE_SCHEMA_NAME_DESC - OBJECT_TABLE_ID_ASC - OBJECT_TABLE_ID_DESC - STORE_TABLE_ID_ASC - STORE_TABLE_ID_DESC - COMMIT_TABLE_ID_ASC - COMMIT_TABLE_ID_DESC - REF_TABLE_ID_ASC - REF_TABLE_ID_DESC - PREFIX_ASC - PREFIX_DESC + SUBSCRIPTIONS_SCHEMA_ID_ASC + SUBSCRIPTIONS_SCHEMA_ID_DESC + CHANGE_LOG_TABLE_ID_ASC + CHANGE_LOG_TABLE_ID_DESC + LISTENER_NODE_TABLE_ID_ASC + LISTENER_NODE_TABLE_ID_DESC + SOURCE_REGISTRY_TABLE_ID_ASC + SOURCE_REGISTRY_TABLE_ID_DESC + RETENTION_HOURS_ASC + RETENTION_HOURS_DESC + PREMAKE_ASC + PREMAKE_DESC + INTERVAL_ASC + INTERVAL_DESC + NOTIFY_CHANNEL_ASC + NOTIFY_CHANNEL_DESC API_NAME_ASC API_NAME_DESC PRIVATE_API_NAME_ASC PRIVATE_API_NAME_DESC - SCOPE_ASC - SCOPE_DESC - FUNCTION_PREFIX_ASC - FUNCTION_PREFIX_DESC - PERMISSION_KEY_ASC - PERMISSION_KEY_DESC - CREATED_AT_ASC - CREATED_AT_DESC } -"""A connection to a list of `RateLimitMetersModule` values.""" -type RateLimitMetersModuleConnection { - """A list of `RateLimitMetersModule` objects.""" - nodes: [RateLimitMetersModule]! +"""A connection to a list of `InfraSecretsModule` values.""" +type InfraSecretsModuleConnection { + """A list of `InfraSecretsModule` objects.""" + nodes: [InfraSecretsModule]! """ - A list of edges which contains the `RateLimitMetersModule` and cursor to aid in pagination. + A list of edges which contains the `InfraSecretsModule` and cursor to aid in pagination. """ - edges: [RateLimitMetersModuleEdge]! + edges: [InfraSecretsModuleEdge]! """Information to aid in pagination.""" pageInfo: PageInfo! """ - The count of *all* `RateLimitMetersModule` you could get from the connection. + The count of *all* `InfraSecretsModule` you could get from the connection. """ totalCount: Int! } -type RateLimitMetersModule { +""" +Namespace-backed PGP-encrypted key-value secrets module. Requires namespace_module and emits namespace:sync_secrets job triggers for K8s Secret synchronization. +""" +type InfraSecretsModule { id: UUID! databaseId: UUID! schemaId: UUID! privateSchemaId: UUID! publicSchemaName: String privateSchemaName: String - rateLimitStateTableId: UUID! - rateLimitStateTableName: String! - rateLimitOverridesTableId: UUID - rateLimitOverridesTableName: String! - rateWindowLimitsTableId: UUID - rateWindowLimitsTableName: String! - checkRateLimitFunction: String! - prefix: String - defaultPermissions: [String] + secretsTableId: UUID! + secretsTableName: String! apiName: String privateApiName: String + scope: String! + prefix: String! + entityTableId: UUID + entityField: String + policies: JSON + provisions: JSON } -"""A `RateLimitMetersModule` edge in the connection.""" -type RateLimitMetersModuleEdge { +"""A `InfraSecretsModule` edge in the connection.""" +type InfraSecretsModuleEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `RateLimitMetersModule` at the end of the edge.""" - node: RateLimitMetersModule + """The `InfraSecretsModule` at the end of the edge.""" + node: InfraSecretsModule } """ -A filter to be used against `RateLimitMetersModule` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `InfraSecretsModule` object types. All fields are combined with a logical ‘and.’ """ -input RateLimitMetersModuleFilter { +input InfraSecretsModuleFilter { """Filter by the object’s `id` field.""" id: UUIDFilter @@ -6424,51 +6208,48 @@ input RateLimitMetersModuleFilter { """Filter by the object’s `privateSchemaName` field.""" privateSchemaName: StringFilter - """Filter by the object’s `rateLimitStateTableId` field.""" - rateLimitStateTableId: UUIDFilter - - """Filter by the object’s `rateLimitStateTableName` field.""" - rateLimitStateTableName: StringFilter - - """Filter by the object’s `rateLimitOverridesTableId` field.""" - rateLimitOverridesTableId: UUIDFilter + """Filter by the object’s `secretsTableId` field.""" + secretsTableId: UUIDFilter - """Filter by the object’s `rateLimitOverridesTableName` field.""" - rateLimitOverridesTableName: StringFilter + """Filter by the object’s `secretsTableName` field.""" + secretsTableName: StringFilter - """Filter by the object’s `rateWindowLimitsTableId` field.""" - rateWindowLimitsTableId: UUIDFilter + """Filter by the object’s `apiName` field.""" + apiName: StringFilter - """Filter by the object’s `rateWindowLimitsTableName` field.""" - rateWindowLimitsTableName: StringFilter + """Filter by the object’s `privateApiName` field.""" + privateApiName: StringFilter - """Filter by the object’s `checkRateLimitFunction` field.""" - checkRateLimitFunction: StringFilter + """Filter by the object’s `scope` field.""" + scope: StringFilter """Filter by the object’s `prefix` field.""" prefix: StringFilter - """Filter by the object’s `defaultPermissions` field.""" - defaultPermissions: StringListFilter + """Filter by the object’s `entityTableId` field.""" + entityTableId: UUIDFilter - """Filter by the object’s `apiName` field.""" - apiName: StringFilter + """Filter by the object’s `entityField` field.""" + entityField: StringFilter - """Filter by the object’s `privateApiName` field.""" - privateApiName: StringFilter + """Filter by the object’s `policies` field.""" + policies: JSONFilter + + """Filter by the object’s `provisions` field.""" + provisions: JSONFilter """Checks for all expressions in this list.""" - and: [RateLimitMetersModuleFilter!] + and: [InfraSecretsModuleFilter!] """Checks for any expressions in this list.""" - or: [RateLimitMetersModuleFilter!] + or: [InfraSecretsModuleFilter!] """Negates the expression.""" - not: RateLimitMetersModuleFilter + not: InfraSecretsModuleFilter } -"""Methods to use when ordering `RateLimitMetersModule`.""" -enum RateLimitMetersModuleOrderBy { +"""Methods to use when ordering `InfraSecretsModule`.""" +enum InfraSecretsModuleOrderBy { NATURAL PRIMARY_KEY_ASC PRIMARY_KEY_DESC @@ -6484,77 +6265,82 @@ enum RateLimitMetersModuleOrderBy { PUBLIC_SCHEMA_NAME_DESC PRIVATE_SCHEMA_NAME_ASC PRIVATE_SCHEMA_NAME_DESC - RATE_LIMIT_STATE_TABLE_ID_ASC - RATE_LIMIT_STATE_TABLE_ID_DESC - RATE_LIMIT_STATE_TABLE_NAME_ASC - RATE_LIMIT_STATE_TABLE_NAME_DESC - RATE_LIMIT_OVERRIDES_TABLE_ID_ASC - RATE_LIMIT_OVERRIDES_TABLE_ID_DESC - RATE_LIMIT_OVERRIDES_TABLE_NAME_ASC - RATE_LIMIT_OVERRIDES_TABLE_NAME_DESC - RATE_WINDOW_LIMITS_TABLE_ID_ASC - RATE_WINDOW_LIMITS_TABLE_ID_DESC - RATE_WINDOW_LIMITS_TABLE_NAME_ASC - RATE_WINDOW_LIMITS_TABLE_NAME_DESC - CHECK_RATE_LIMIT_FUNCTION_ASC - CHECK_RATE_LIMIT_FUNCTION_DESC - PREFIX_ASC - PREFIX_DESC - DEFAULT_PERMISSIONS_ASC - DEFAULT_PERMISSIONS_DESC + SECRETS_TABLE_ID_ASC + SECRETS_TABLE_ID_DESC + SECRETS_TABLE_NAME_ASC + SECRETS_TABLE_NAME_DESC API_NAME_ASC API_NAME_DESC PRIVATE_API_NAME_ASC PRIVATE_API_NAME_DESC + SCOPE_ASC + SCOPE_DESC + PREFIX_ASC + PREFIX_DESC + ENTITY_TABLE_ID_ASC + ENTITY_TABLE_ID_DESC + ENTITY_FIELD_ASC + ENTITY_FIELD_DESC + POLICIES_ASC + POLICIES_DESC + PROVISIONS_ASC + PROVISIONS_DESC } -"""A connection to a list of `RealtimeModule` values.""" -type RealtimeModuleConnection { - """A list of `RealtimeModule` objects.""" - nodes: [RealtimeModule]! +"""A connection to a list of `InternalSecretsModule` values.""" +type InternalSecretsModuleConnection { + """A list of `InternalSecretsModule` objects.""" + nodes: [InternalSecretsModule]! """ - A list of edges which contains the `RealtimeModule` and cursor to aid in pagination. + A list of edges which contains the `InternalSecretsModule` and cursor to aid in pagination. """ - edges: [RealtimeModuleEdge]! + edges: [InternalSecretsModuleEdge]! """Information to aid in pagination.""" pageInfo: PageInfo! - """The count of *all* `RealtimeModule` you could get from the connection.""" + """ + The count of *all* `InternalSecretsModule` you could get from the connection. + """ totalCount: Int! } -type RealtimeModule { +""" +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. +""" +type InternalSecretsModule { id: UUID! databaseId: UUID! schemaId: UUID! privateSchemaId: UUID! - subscriptionsSchemaId: UUID! - changeLogTableId: UUID! - listenerNodeTableId: UUID! - sourceRegistryTableId: UUID! - retentionHours: Int! - premake: Int! - interval: String! - notifyChannel: String + publicSchemaName: String + privateSchemaName: String + internalSecretsTableId: UUID! + internalSecretsTableName: String! apiName: String privateApiName: String + scope: String! + prefix: String! + entityTableId: UUID + entityField: String + policies: JSON + provisions: JSON } -"""A `RealtimeModule` edge in the connection.""" -type RealtimeModuleEdge { +"""A `InternalSecretsModule` edge in the connection.""" +type InternalSecretsModuleEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `RealtimeModule` at the end of the edge.""" - node: RealtimeModule + """The `InternalSecretsModule` at the end of the edge.""" + node: InternalSecretsModule } """ -A filter to be used against `RealtimeModule` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `InternalSecretsModule` object types. All fields are combined with a logical ‘and.’ """ -input RealtimeModuleFilter { +input InternalSecretsModuleFilter { """Filter by the object’s `id` field.""" id: UUIDFilter @@ -6567,29 +6353,17 @@ input RealtimeModuleFilter { """Filter by the object’s `privateSchemaId` field.""" privateSchemaId: UUIDFilter - """Filter by the object’s `subscriptionsSchemaId` field.""" - subscriptionsSchemaId: UUIDFilter - - """Filter by the object’s `changeLogTableId` field.""" - changeLogTableId: UUIDFilter - - """Filter by the object’s `listenerNodeTableId` field.""" - listenerNodeTableId: UUIDFilter - - """Filter by the object’s `sourceRegistryTableId` field.""" - sourceRegistryTableId: UUIDFilter - - """Filter by the object’s `retentionHours` field.""" - retentionHours: IntFilter + """Filter by the object’s `publicSchemaName` field.""" + publicSchemaName: StringFilter - """Filter by the object’s `premake` field.""" - premake: IntFilter + """Filter by the object’s `privateSchemaName` field.""" + privateSchemaName: StringFilter - """Filter by the object’s `interval` field.""" - interval: StringFilter + """Filter by the object’s `internalSecretsTableId` field.""" + internalSecretsTableId: UUIDFilter - """Filter by the object’s `notifyChannel` field.""" - notifyChannel: StringFilter + """Filter by the object’s `internalSecretsTableName` field.""" + internalSecretsTableName: StringFilter """Filter by the object’s `apiName` field.""" apiName: StringFilter @@ -6597,18 +6371,36 @@ input RealtimeModuleFilter { """Filter by the object’s `privateApiName` field.""" privateApiName: StringFilter + """Filter by the object’s `scope` field.""" + scope: StringFilter + + """Filter by the object’s `prefix` field.""" + prefix: StringFilter + + """Filter by the object’s `entityTableId` field.""" + entityTableId: UUIDFilter + + """Filter by the object’s `entityField` field.""" + entityField: StringFilter + + """Filter by the object’s `policies` field.""" + policies: JSONFilter + + """Filter by the object’s `provisions` field.""" + provisions: JSONFilter + """Checks for all expressions in this list.""" - and: [RealtimeModuleFilter!] + and: [InternalSecretsModuleFilter!] """Checks for any expressions in this list.""" - or: [RealtimeModuleFilter!] + or: [InternalSecretsModuleFilter!] """Negates the expression.""" - not: RealtimeModuleFilter + not: InternalSecretsModuleFilter } -"""Methods to use when ordering `RealtimeModule`.""" -enum RealtimeModuleOrderBy { +"""Methods to use when ordering `InternalSecretsModule`.""" +enum InternalSecretsModuleOrderBy { NATURAL PRIMARY_KEY_ASC PRIMARY_KEY_DESC @@ -6620,237 +6412,220 @@ enum RealtimeModuleOrderBy { SCHEMA_ID_DESC PRIVATE_SCHEMA_ID_ASC PRIVATE_SCHEMA_ID_DESC - SUBSCRIPTIONS_SCHEMA_ID_ASC - SUBSCRIPTIONS_SCHEMA_ID_DESC - CHANGE_LOG_TABLE_ID_ASC - CHANGE_LOG_TABLE_ID_DESC - LISTENER_NODE_TABLE_ID_ASC - LISTENER_NODE_TABLE_ID_DESC - SOURCE_REGISTRY_TABLE_ID_ASC - SOURCE_REGISTRY_TABLE_ID_DESC - RETENTION_HOURS_ASC - RETENTION_HOURS_DESC - PREMAKE_ASC - PREMAKE_DESC - INTERVAL_ASC - INTERVAL_DESC - NOTIFY_CHANNEL_ASC - NOTIFY_CHANNEL_DESC + PUBLIC_SCHEMA_NAME_ASC + PUBLIC_SCHEMA_NAME_DESC + PRIVATE_SCHEMA_NAME_ASC + PRIVATE_SCHEMA_NAME_DESC + INTERNAL_SECRETS_TABLE_ID_ASC + INTERNAL_SECRETS_TABLE_ID_DESC + INTERNAL_SECRETS_TABLE_NAME_ASC + INTERNAL_SECRETS_TABLE_NAME_DESC API_NAME_ASC API_NAME_DESC PRIVATE_API_NAME_ASC PRIVATE_API_NAME_DESC + SCOPE_ASC + SCOPE_DESC + PREFIX_ASC + PREFIX_DESC + ENTITY_TABLE_ID_ASC + ENTITY_TABLE_ID_DESC + ENTITY_FIELD_ASC + ENTITY_FIELD_DESC + POLICIES_ASC + POLICIES_DESC + PROVISIONS_ASC + PROVISIONS_DESC } -"""A connection to a list of `WebauthnAuthModule` values.""" -type WebauthnAuthModuleConnection { - """A list of `WebauthnAuthModule` objects.""" - nodes: [WebauthnAuthModule]! +"""A connection to a list of `DbPresetModule` values.""" +type DbPresetModuleConnection { + """A list of `DbPresetModule` objects.""" + nodes: [DbPresetModule]! """ - A list of edges which contains the `WebauthnAuthModule` and cursor to aid in pagination. + A list of edges which contains the `DbPresetModule` and cursor to aid in pagination. """ - edges: [WebauthnAuthModuleEdge]! + edges: [DbPresetModuleEdge]! """Information to aid in pagination.""" pageInfo: PageInfo! - """ - The count of *all* `WebauthnAuthModule` you could get from the connection. - """ + """The count of *all* `DbPresetModule` you could get from the connection.""" totalCount: Int! } -type WebauthnAuthModule { +type DbPresetModule { id: UUID! databaseId: UUID! - schemaId: UUID! - usersTableId: UUID! - credentialsTableId: UUID! - sessionsTableId: UUID! - sessionCredentialsTableId: UUID! - sessionSecretsTableId: UUID! - authSettingsTableId: UUID! - rpId: String! - rpName: String! - originAllowlist: [String]! - attestationType: String! - requireUserVerification: Boolean! - residentKey: String! - challengeExpiry: Interval! -} - -"""A `WebauthnAuthModule` edge in the connection.""" -type WebauthnAuthModuleEdge { - """A cursor for use in pagination.""" - cursor: Cursor + publicSchemaId: UUID! + privateSchemaId: UUID! + publicSchemaName: String + privateSchemaName: String + scope: String! + prefix: String! + merkleStoreModuleId: UUID! + dbPresetsTableId: UUID! + storeName: String! + apiName: String + privateApiName: String + entityTableId: UUID + policies: JSON + provisions: JSON + createdAt: Datetime! - """The `WebauthnAuthModule` at the end of the edge.""" - node: WebauthnAuthModule + """ + Reads a single `MerkleStoreModule` that is related to this `DbPresetModule`. + """ + merkleStoreModule: MerkleStoreModule } -""" -A filter to be used against `WebauthnAuthModule` object types. All fields are combined with a logical ‘and.’ -""" -input WebauthnAuthModuleFilter { - """Filter by the object’s `id` field.""" - id: UUIDFilter +type MerkleStoreModule { + id: UUID! + databaseId: UUID! + entityField: String + schemaId: UUID! + privateSchemaId: UUID! + publicSchemaName: String + privateSchemaName: String + objectTableId: UUID! + storeTableId: UUID! + commitTableId: UUID! + refTableId: UUID! + prefix: String! + apiName: String + privateApiName: String + scope: String! + functionPrefix: String + permissionKey: String + createdAt: Datetime! - """Filter by the object’s `databaseId` field.""" - databaseId: UUIDFilter + """Reads and enables pagination through a set of `GraphModule`.""" + graphModules( + """Only read the first `n` values of the set.""" + first: Int - """Filter by the object’s `schemaId` field.""" - schemaId: UUIDFilter - - """Filter by the object’s `usersTableId` field.""" - usersTableId: UUIDFilter - - """Filter by the object’s `credentialsTableId` field.""" - credentialsTableId: UUIDFilter - - """Filter by the object’s `sessionsTableId` field.""" - sessionsTableId: UUIDFilter - - """Filter by the object’s `sessionCredentialsTableId` field.""" - sessionCredentialsTableId: UUIDFilter - - """Filter by the object’s `sessionSecretsTableId` field.""" - sessionSecretsTableId: UUIDFilter + """Only read the last `n` values of the set.""" + last: Int - """Filter by the object’s `authSettingsTableId` field.""" - authSettingsTableId: 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 `rpId` field.""" - rpId: StringFilter + """Read all values in the set before (above) this cursor.""" + before: Cursor - """Filter by the object’s `rpName` field.""" - rpName: StringFilter + """Read all values in the set after (below) this cursor.""" + after: Cursor - """Filter by the object’s `originAllowlist` field.""" - originAllowlist: StringListFilter + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: GraphModuleFilter - """Filter by the object’s `attestationType` field.""" - attestationType: StringFilter + """The method to use when ordering `GraphModule`.""" + orderBy: [GraphModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): GraphModuleConnection! - """Filter by the object’s `requireUserVerification` field.""" - requireUserVerification: BooleanFilter + """Reads and enables pagination through a set of `DbPresetModule`.""" + dbPresetModules( + """Only read the first `n` values of the set.""" + first: Int - """Filter by the object’s `residentKey` field.""" - residentKey: StringFilter + """Only read the last `n` values of the set.""" + last: Int - """Filter by the object’s `challengeExpiry` field.""" - challengeExpiry: IntervalFilter + """ + 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: [WebauthnAuthModuleFilter!] + """Read all values in the set before (above) this cursor.""" + before: Cursor - """Checks for any expressions in this list.""" - or: [WebauthnAuthModuleFilter!] + """Read all values in the set after (below) this cursor.""" + after: Cursor - """Negates the expression.""" - not: WebauthnAuthModuleFilter -} + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: DbPresetModuleFilter -"""Methods to use when ordering `WebauthnAuthModule`.""" -enum WebauthnAuthModuleOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - DATABASE_ID_ASC - DATABASE_ID_DESC - SCHEMA_ID_ASC - SCHEMA_ID_DESC - USERS_TABLE_ID_ASC - USERS_TABLE_ID_DESC - CREDENTIALS_TABLE_ID_ASC - CREDENTIALS_TABLE_ID_DESC - SESSIONS_TABLE_ID_ASC - SESSIONS_TABLE_ID_DESC - SESSION_CREDENTIALS_TABLE_ID_ASC - SESSION_CREDENTIALS_TABLE_ID_DESC - SESSION_SECRETS_TABLE_ID_ASC - SESSION_SECRETS_TABLE_ID_DESC - AUTH_SETTINGS_TABLE_ID_ASC - AUTH_SETTINGS_TABLE_ID_DESC - RP_ID_ASC - RP_ID_DESC - RP_NAME_ASC - RP_NAME_DESC - ORIGIN_ALLOWLIST_ASC - ORIGIN_ALLOWLIST_DESC - ATTESTATION_TYPE_ASC - ATTESTATION_TYPE_DESC - REQUIRE_USER_VERIFICATION_ASC - REQUIRE_USER_VERIFICATION_DESC - RESIDENT_KEY_ASC - RESIDENT_KEY_DESC - CHALLENGE_EXPIRY_ASC - CHALLENGE_EXPIRY_DESC + """The method to use when ordering `DbPresetModule`.""" + orderBy: [DbPresetModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): DbPresetModuleConnection! } -"""A connection to a list of `FunctionInvocationModule` values.""" -type FunctionInvocationModuleConnection { - """A list of `FunctionInvocationModule` objects.""" - nodes: [FunctionInvocationModule]! +"""A connection to a list of `GraphModule` values.""" +type GraphModuleConnection { + """A list of `GraphModule` objects.""" + nodes: [GraphModule]! """ - A list of edges which contains the `FunctionInvocationModule` and cursor to aid in pagination. + A list of edges which contains the `GraphModule` and cursor to aid in pagination. """ - edges: [FunctionInvocationModuleEdge]! + edges: [GraphModuleEdge]! """Information to aid in pagination.""" pageInfo: PageInfo! - """ - The count of *all* `FunctionInvocationModule` you could get from the connection. - """ + """The count of *all* `GraphModule` you could get from the connection.""" totalCount: Int! } -type FunctionInvocationModule { +type GraphModule { id: UUID! databaseId: UUID! - schemaId: UUID! + entityField: String + publicSchemaId: UUID! privateSchemaId: UUID! publicSchemaName: String privateSchemaName: String - invocationsTableId: UUID! - executionLogsTableId: UUID! - invocationsTableName: String! - executionLogsTableName: String! - apiName: String - privateApiName: String scope: String! prefix: String! + merkleStoreModuleId: UUID! + graphsTableId: UUID! + apiName: String + privateApiName: String entityTableId: UUID policies: JSON provisions: JSON defaultPermissions: [String] + createdAt: Datetime! + + """ + Reads a single `MerkleStoreModule` that is related to this `GraphModule`. + """ + merkleStoreModule: MerkleStoreModule } -"""A `FunctionInvocationModule` edge in the connection.""" -type FunctionInvocationModuleEdge { +"""A `GraphModule` edge in the connection.""" +type GraphModuleEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `FunctionInvocationModule` at the end of the edge.""" - node: FunctionInvocationModule + """The `GraphModule` at the end of the edge.""" + node: GraphModule } """ -A filter to be used against `FunctionInvocationModule` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `GraphModule` object types. All fields are combined with a logical ‘and.’ """ -input FunctionInvocationModuleFilter { +input GraphModuleFilter { """Filter by the object’s `id` field.""" id: UUIDFilter """Filter by the object’s `databaseId` field.""" databaseId: UUIDFilter - """Filter by the object’s `schemaId` field.""" - schemaId: UUIDFilter + """Filter by the object’s `entityField` field.""" + entityField: StringFilter + + """Filter by the object’s `publicSchemaId` field.""" + publicSchemaId: UUIDFilter """Filter by the object’s `privateSchemaId` field.""" privateSchemaId: UUIDFilter @@ -6861,17 +6636,17 @@ input FunctionInvocationModuleFilter { """Filter by the object’s `privateSchemaName` field.""" privateSchemaName: StringFilter - """Filter by the object’s `invocationsTableId` field.""" - invocationsTableId: UUIDFilter + """Filter by the object’s `scope` field.""" + scope: StringFilter - """Filter by the object’s `executionLogsTableId` field.""" - executionLogsTableId: UUIDFilter + """Filter by the object’s `prefix` field.""" + prefix: StringFilter - """Filter by the object’s `invocationsTableName` field.""" - invocationsTableName: StringFilter + """Filter by the object’s `merkleStoreModuleId` field.""" + merkleStoreModuleId: UUIDFilter - """Filter by the object’s `executionLogsTableName` field.""" - executionLogsTableName: StringFilter + """Filter by the object’s `graphsTableId` field.""" + graphsTableId: UUIDFilter """Filter by the object’s `apiName` field.""" apiName: StringFilter @@ -6879,12 +6654,6 @@ input FunctionInvocationModuleFilter { """Filter by the object’s `privateApiName` field.""" privateApiName: StringFilter - """Filter by the object’s `scope` field.""" - scope: StringFilter - - """Filter by the object’s `prefix` field.""" - prefix: StringFilter - """Filter by the object’s `entityTableId` field.""" entityTableId: UUIDFilter @@ -6897,118 +6666,142 @@ input FunctionInvocationModuleFilter { """Filter by the object’s `defaultPermissions` field.""" defaultPermissions: StringListFilter + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter + """Checks for all expressions in this list.""" - and: [FunctionInvocationModuleFilter!] + and: [GraphModuleFilter!] """Checks for any expressions in this list.""" - or: [FunctionInvocationModuleFilter!] + or: [GraphModuleFilter!] """Negates the expression.""" - not: FunctionInvocationModuleFilter -} + not: GraphModuleFilter -"""Methods to use when ordering `FunctionInvocationModule`.""" -enum FunctionInvocationModuleOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - DATABASE_ID_ASC - DATABASE_ID_DESC - SCHEMA_ID_ASC - SCHEMA_ID_DESC - PRIVATE_SCHEMA_ID_ASC - PRIVATE_SCHEMA_ID_DESC - PUBLIC_SCHEMA_NAME_ASC - PUBLIC_SCHEMA_NAME_DESC - PRIVATE_SCHEMA_NAME_ASC - PRIVATE_SCHEMA_NAME_DESC - INVOCATIONS_TABLE_ID_ASC - INVOCATIONS_TABLE_ID_DESC - EXECUTION_LOGS_TABLE_ID_ASC - EXECUTION_LOGS_TABLE_ID_DESC - INVOCATIONS_TABLE_NAME_ASC - INVOCATIONS_TABLE_NAME_DESC - EXECUTION_LOGS_TABLE_NAME_ASC - EXECUTION_LOGS_TABLE_NAME_DESC - API_NAME_ASC - API_NAME_DESC - PRIVATE_API_NAME_ASC - PRIVATE_API_NAME_DESC - SCOPE_ASC - SCOPE_DESC - PREFIX_ASC - PREFIX_DESC - ENTITY_TABLE_ID_ASC - ENTITY_TABLE_ID_DESC - POLICIES_ASC - POLICIES_DESC - PROVISIONS_ASC - PROVISIONS_DESC - DEFAULT_PERMISSIONS_ASC - DEFAULT_PERMISSIONS_DESC + """Filter by the object’s `merkleStoreModule` relation.""" + merkleStoreModule: MerkleStoreModuleFilter } -"""A connection to a list of `FunctionModule` values.""" -type FunctionModuleConnection { - """A list of `FunctionModule` objects.""" - nodes: [FunctionModule]! +""" +A filter to be used against `MerkleStoreModule` object types. All fields are combined with a logical ‘and.’ +""" +input MerkleStoreModuleFilter { + """Filter by the object’s `id` field.""" + id: UUIDFilter - """ - A list of edges which contains the `FunctionModule` and cursor to aid in pagination. - """ - edges: [FunctionModuleEdge]! + """Filter by the object’s `databaseId` field.""" + databaseId: UUIDFilter - """Information to aid in pagination.""" - pageInfo: PageInfo! + """Filter by the object’s `entityField` field.""" + entityField: StringFilter - """The count of *all* `FunctionModule` you could get from the connection.""" - totalCount: Int! + """Filter by the object’s `schemaId` field.""" + schemaId: UUIDFilter + + """Filter by the object’s `privateSchemaId` field.""" + privateSchemaId: UUIDFilter + + """Filter by the object’s `publicSchemaName` field.""" + publicSchemaName: StringFilter + + """Filter by the object’s `privateSchemaName` field.""" + privateSchemaName: StringFilter + + """Filter by the object’s `objectTableId` field.""" + objectTableId: UUIDFilter + + """Filter by the object’s `storeTableId` field.""" + storeTableId: UUIDFilter + + """Filter by the object’s `commitTableId` field.""" + commitTableId: UUIDFilter + + """Filter by the object’s `refTableId` field.""" + refTableId: UUIDFilter + + """Filter by the object’s `prefix` field.""" + prefix: StringFilter + + """Filter by the object’s `apiName` field.""" + apiName: StringFilter + + """Filter by the object’s `privateApiName` field.""" + privateApiName: StringFilter + + """Filter by the object’s `scope` field.""" + scope: StringFilter + + """Filter by the object’s `functionPrefix` field.""" + functionPrefix: StringFilter + + """Filter by the object’s `permissionKey` field.""" + permissionKey: StringFilter + + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter + + """Checks for all expressions in this list.""" + and: [MerkleStoreModuleFilter!] + + """Checks for any expressions in this list.""" + or: [MerkleStoreModuleFilter!] + + """Negates the expression.""" + not: MerkleStoreModuleFilter + + """Filter by the object’s `graphModules` relation.""" + graphModules: MerkleStoreModuleToManyGraphModuleFilter + + """`graphModules` exist.""" + graphModulesExist: Boolean + + """Filter by the object’s `dbPresetModules` relation.""" + dbPresetModules: MerkleStoreModuleToManyDbPresetModuleFilter + + """`dbPresetModules` exist.""" + dbPresetModulesExist: Boolean } -type FunctionModule { - id: UUID! - databaseId: UUID! - schemaId: UUID! - privateSchemaId: UUID! - publicSchemaName: String - privateSchemaName: String - definitionsTableId: UUID! - secretDefinitionsTableId: UUID! - definitionsTableName: String! - secretDefinitionsTableName: String! - apiName: String - privateApiName: String - scope: String! - prefix: String! - entityTableId: UUID - policies: JSON - provisions: JSON - defaultPermissions: [String] +""" +A filter to be used against many `GraphModule` object types. All fields are combined with a logical ‘and.’ +""" +input MerkleStoreModuleToManyGraphModuleFilter { + """Filters to entities where at least one related entity matches.""" + some: GraphModuleFilter + + """Filters to entities where every related entity matches.""" + every: GraphModuleFilter + + """Filters to entities where no related entity matches.""" + none: GraphModuleFilter } -"""A `FunctionModule` edge in the connection.""" -type FunctionModuleEdge { - """A cursor for use in pagination.""" - cursor: Cursor +""" +A filter to be used against many `DbPresetModule` object types. All fields are combined with a logical ‘and.’ +""" +input MerkleStoreModuleToManyDbPresetModuleFilter { + """Filters to entities where at least one related entity matches.""" + some: DbPresetModuleFilter - """The `FunctionModule` at the end of the edge.""" - node: FunctionModule + """Filters to entities where every related entity matches.""" + every: DbPresetModuleFilter + + """Filters to entities where no related entity matches.""" + none: DbPresetModuleFilter } """ -A filter to be used against `FunctionModule` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `DbPresetModule` object types. All fields are combined with a logical ‘and.’ """ -input FunctionModuleFilter { +input DbPresetModuleFilter { """Filter by the object’s `id` field.""" id: UUIDFilter """Filter by the object’s `databaseId` field.""" databaseId: UUIDFilter - """Filter by the object’s `schemaId` field.""" - schemaId: UUIDFilter + """Filter by the object’s `publicSchemaId` field.""" + publicSchemaId: UUIDFilter """Filter by the object’s `privateSchemaId` field.""" privateSchemaId: UUIDFilter @@ -7019,17 +6812,20 @@ input FunctionModuleFilter { """Filter by the object’s `privateSchemaName` field.""" privateSchemaName: StringFilter - """Filter by the object’s `definitionsTableId` field.""" - definitionsTableId: UUIDFilter + """Filter by the object’s `scope` field.""" + scope: StringFilter - """Filter by the object’s `secretDefinitionsTableId` field.""" - secretDefinitionsTableId: UUIDFilter + """Filter by the object’s `prefix` field.""" + prefix: StringFilter - """Filter by the object’s `definitionsTableName` field.""" - definitionsTableName: StringFilter + """Filter by the object’s `merkleStoreModuleId` field.""" + merkleStoreModuleId: UUIDFilter - """Filter by the object’s `secretDefinitionsTableName` field.""" - secretDefinitionsTableName: StringFilter + """Filter by the object’s `dbPresetsTableId` field.""" + dbPresetsTableId: UUIDFilter + + """Filter by the object’s `storeName` field.""" + storeName: StringFilter """Filter by the object’s `apiName` field.""" apiName: StringFilter @@ -7037,12 +6833,6 @@ input FunctionModuleFilter { """Filter by the object’s `privateApiName` field.""" privateApiName: StringFilter - """Filter by the object’s `scope` field.""" - scope: StringFilter - - """Filter by the object’s `prefix` field.""" - prefix: StringFilter - """Filter by the object’s `entityTableId` field.""" entityTableId: UUIDFilter @@ -7052,21 +6842,24 @@ input FunctionModuleFilter { """Filter by the object’s `provisions` field.""" provisions: JSONFilter - """Filter by the object’s `defaultPermissions` field.""" - defaultPermissions: StringListFilter + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter """Checks for all expressions in this list.""" - and: [FunctionModuleFilter!] + and: [DbPresetModuleFilter!] """Checks for any expressions in this list.""" - or: [FunctionModuleFilter!] + or: [DbPresetModuleFilter!] """Negates the expression.""" - not: FunctionModuleFilter + not: DbPresetModuleFilter + + """Filter by the object’s `merkleStoreModule` relation.""" + merkleStoreModule: MerkleStoreModuleFilter } -"""Methods to use when ordering `FunctionModule`.""" -enum FunctionModuleOrderBy { +"""Methods to use when ordering `GraphModule`.""" +enum GraphModuleOrderBy { NATURAL PRIMARY_KEY_ASC PRIMARY_KEY_DESC @@ -7074,91 +6867,142 @@ enum FunctionModuleOrderBy { ID_DESC DATABASE_ID_ASC DATABASE_ID_DESC - SCHEMA_ID_ASC - SCHEMA_ID_DESC + ENTITY_FIELD_ASC + ENTITY_FIELD_DESC + PUBLIC_SCHEMA_ID_ASC + PUBLIC_SCHEMA_ID_DESC PRIVATE_SCHEMA_ID_ASC PRIVATE_SCHEMA_ID_DESC PUBLIC_SCHEMA_NAME_ASC PUBLIC_SCHEMA_NAME_DESC PRIVATE_SCHEMA_NAME_ASC PRIVATE_SCHEMA_NAME_DESC - DEFINITIONS_TABLE_ID_ASC - DEFINITIONS_TABLE_ID_DESC - SECRET_DEFINITIONS_TABLE_ID_ASC - SECRET_DEFINITIONS_TABLE_ID_DESC - DEFINITIONS_TABLE_NAME_ASC - DEFINITIONS_TABLE_NAME_DESC - SECRET_DEFINITIONS_TABLE_NAME_ASC - SECRET_DEFINITIONS_TABLE_NAME_DESC + SCOPE_ASC + SCOPE_DESC + PREFIX_ASC + PREFIX_DESC + MERKLE_STORE_MODULE_ID_ASC + MERKLE_STORE_MODULE_ID_DESC + GRAPHS_TABLE_ID_ASC + GRAPHS_TABLE_ID_DESC API_NAME_ASC API_NAME_DESC PRIVATE_API_NAME_ASC PRIVATE_API_NAME_DESC + ENTITY_TABLE_ID_ASC + ENTITY_TABLE_ID_DESC + POLICIES_ASC + POLICIES_DESC + PROVISIONS_ASC + PROVISIONS_DESC + DEFAULT_PERMISSIONS_ASC + DEFAULT_PERMISSIONS_DESC + CREATED_AT_ASC + CREATED_AT_DESC +} + +"""Methods to use when ordering `DbPresetModule`.""" +enum DbPresetModuleOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC + PUBLIC_SCHEMA_ID_ASC + PUBLIC_SCHEMA_ID_DESC + PRIVATE_SCHEMA_ID_ASC + PRIVATE_SCHEMA_ID_DESC + PUBLIC_SCHEMA_NAME_ASC + PUBLIC_SCHEMA_NAME_DESC + PRIVATE_SCHEMA_NAME_ASC + PRIVATE_SCHEMA_NAME_DESC SCOPE_ASC SCOPE_DESC PREFIX_ASC PREFIX_DESC + MERKLE_STORE_MODULE_ID_ASC + MERKLE_STORE_MODULE_ID_DESC + DB_PRESETS_TABLE_ID_ASC + DB_PRESETS_TABLE_ID_DESC + STORE_NAME_ASC + STORE_NAME_DESC + API_NAME_ASC + API_NAME_DESC + PRIVATE_API_NAME_ASC + PRIVATE_API_NAME_DESC ENTITY_TABLE_ID_ASC ENTITY_TABLE_ID_DESC POLICIES_ASC POLICIES_DESC PROVISIONS_ASC PROVISIONS_DESC - DEFAULT_PERMISSIONS_ASC - DEFAULT_PERMISSIONS_DESC + CREATED_AT_ASC + CREATED_AT_DESC } -"""A connection to a list of `InvitesModule` values.""" -type InvitesModuleConnection { - """A list of `InvitesModule` objects.""" - nodes: [InvitesModule]! +"""A `DbPresetModule` edge in the connection.""" +type DbPresetModuleEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `DbPresetModule` at the end of the edge.""" + node: DbPresetModule +} + +"""A connection to a list of `RateLimitMetersModule` values.""" +type RateLimitMetersModuleConnection { + """A list of `RateLimitMetersModule` objects.""" + nodes: [RateLimitMetersModule]! """ - A list of edges which contains the `InvitesModule` and cursor to aid in pagination. + A list of edges which contains the `RateLimitMetersModule` and cursor to aid in pagination. """ - edges: [InvitesModuleEdge]! + edges: [RateLimitMetersModuleEdge]! """Information to aid in pagination.""" pageInfo: PageInfo! - """The count of *all* `InvitesModule` you could get from the connection.""" + """ + The count of *all* `RateLimitMetersModule` you could get from the connection. + """ totalCount: Int! } -type InvitesModule { +type RateLimitMetersModule { id: UUID! databaseId: UUID! schemaId: UUID! privateSchemaId: UUID! publicSchemaName: String privateSchemaName: String - emailsTableId: UUID! - usersTableId: UUID! - invitesTableId: UUID! - claimedInvitesTableId: UUID! - invitesTableName: String! - claimedInvitesTableName: String! - submitInviteCodeFunction: String! - scope: String! - prefix: String! - entityTableId: UUID + rateLimitStateTableId: UUID! + rateLimitStateTableName: String! + rateLimitOverridesTableId: UUID + rateLimitOverridesTableName: String! + rateWindowLimitsTableId: UUID + rateWindowLimitsTableName: String! + checkRateLimitFunction: String! + prefix: String + defaultPermissions: [String] apiName: String privateApiName: String } -"""A `InvitesModule` edge in the connection.""" -type InvitesModuleEdge { +"""A `RateLimitMetersModule` edge in the connection.""" +type RateLimitMetersModuleEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `InvitesModule` at the end of the edge.""" - node: InvitesModule + """The `RateLimitMetersModule` at the end of the edge.""" + node: RateLimitMetersModule } """ -A filter to be used against `InvitesModule` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `RateLimitMetersModule` object types. All fields are combined with a logical ‘and.’ """ -input InvitesModuleFilter { +input RateLimitMetersModuleFilter { """Filter by the object’s `id` field.""" id: UUIDFilter @@ -7177,35 +7021,32 @@ input InvitesModuleFilter { """Filter by the object’s `privateSchemaName` field.""" privateSchemaName: StringFilter - """Filter by the object’s `emailsTableId` field.""" - emailsTableId: UUIDFilter + """Filter by the object’s `rateLimitStateTableId` field.""" + rateLimitStateTableId: UUIDFilter - """Filter by the object’s `usersTableId` field.""" - usersTableId: UUIDFilter + """Filter by the object’s `rateLimitStateTableName` field.""" + rateLimitStateTableName: StringFilter - """Filter by the object’s `invitesTableId` field.""" - invitesTableId: UUIDFilter - - """Filter by the object’s `claimedInvitesTableId` field.""" - claimedInvitesTableId: UUIDFilter + """Filter by the object’s `rateLimitOverridesTableId` field.""" + rateLimitOverridesTableId: UUIDFilter - """Filter by the object’s `invitesTableName` field.""" - invitesTableName: StringFilter + """Filter by the object’s `rateLimitOverridesTableName` field.""" + rateLimitOverridesTableName: StringFilter - """Filter by the object’s `claimedInvitesTableName` field.""" - claimedInvitesTableName: StringFilter + """Filter by the object’s `rateWindowLimitsTableId` field.""" + rateWindowLimitsTableId: UUIDFilter - """Filter by the object’s `submitInviteCodeFunction` field.""" - submitInviteCodeFunction: StringFilter + """Filter by the object’s `rateWindowLimitsTableName` field.""" + rateWindowLimitsTableName: StringFilter - """Filter by the object’s `scope` field.""" - scope: StringFilter + """Filter by the object’s `checkRateLimitFunction` field.""" + checkRateLimitFunction: StringFilter """Filter by the object’s `prefix` field.""" prefix: StringFilter - """Filter by the object’s `entityTableId` field.""" - entityTableId: UUIDFilter + """Filter by the object’s `defaultPermissions` field.""" + defaultPermissions: StringListFilter """Filter by the object’s `apiName` field.""" apiName: StringFilter @@ -7214,17 +7055,17 @@ input InvitesModuleFilter { privateApiName: StringFilter """Checks for all expressions in this list.""" - and: [InvitesModuleFilter!] + and: [RateLimitMetersModuleFilter!] """Checks for any expressions in this list.""" - or: [InvitesModuleFilter!] + or: [RateLimitMetersModuleFilter!] """Negates the expression.""" - not: InvitesModuleFilter + not: RateLimitMetersModuleFilter } -"""Methods to use when ordering `InvitesModule`.""" -enum InvitesModuleOrderBy { +"""Methods to use when ordering `RateLimitMetersModule`.""" +enum RateLimitMetersModuleOrderBy { NATURAL PRIMARY_KEY_ASC PRIMARY_KEY_DESC @@ -7240,154 +7081,144 @@ enum InvitesModuleOrderBy { PUBLIC_SCHEMA_NAME_DESC PRIVATE_SCHEMA_NAME_ASC PRIVATE_SCHEMA_NAME_DESC - EMAILS_TABLE_ID_ASC - EMAILS_TABLE_ID_DESC - USERS_TABLE_ID_ASC - USERS_TABLE_ID_DESC - INVITES_TABLE_ID_ASC - INVITES_TABLE_ID_DESC - CLAIMED_INVITES_TABLE_ID_ASC - CLAIMED_INVITES_TABLE_ID_DESC - INVITES_TABLE_NAME_ASC - INVITES_TABLE_NAME_DESC - CLAIMED_INVITES_TABLE_NAME_ASC - CLAIMED_INVITES_TABLE_NAME_DESC - SUBMIT_INVITE_CODE_FUNCTION_ASC - SUBMIT_INVITE_CODE_FUNCTION_DESC - SCOPE_ASC - SCOPE_DESC + RATE_LIMIT_STATE_TABLE_ID_ASC + RATE_LIMIT_STATE_TABLE_ID_DESC + RATE_LIMIT_STATE_TABLE_NAME_ASC + RATE_LIMIT_STATE_TABLE_NAME_DESC + RATE_LIMIT_OVERRIDES_TABLE_ID_ASC + RATE_LIMIT_OVERRIDES_TABLE_ID_DESC + RATE_LIMIT_OVERRIDES_TABLE_NAME_ASC + RATE_LIMIT_OVERRIDES_TABLE_NAME_DESC + RATE_WINDOW_LIMITS_TABLE_ID_ASC + RATE_WINDOW_LIMITS_TABLE_ID_DESC + RATE_WINDOW_LIMITS_TABLE_NAME_ASC + RATE_WINDOW_LIMITS_TABLE_NAME_DESC + CHECK_RATE_LIMIT_FUNCTION_ASC + CHECK_RATE_LIMIT_FUNCTION_DESC PREFIX_ASC PREFIX_DESC - ENTITY_TABLE_ID_ASC - ENTITY_TABLE_ID_DESC + DEFAULT_PERMISSIONS_ASC + DEFAULT_PERMISSIONS_DESC API_NAME_ASC API_NAME_DESC PRIVATE_API_NAME_ASC PRIVATE_API_NAME_DESC } -"""A connection to a list of `PrincipalAuthModule` values.""" -type PrincipalAuthModuleConnection { - """A list of `PrincipalAuthModule` objects.""" - nodes: [PrincipalAuthModule]! +"""A connection to a list of `InfraConfigModule` values.""" +type InfraConfigModuleConnection { + """A list of `InfraConfigModule` objects.""" + nodes: [InfraConfigModule]! """ - A list of edges which contains the `PrincipalAuthModule` and cursor to aid in pagination. + A list of edges which contains the `InfraConfigModule` and cursor to aid in pagination. """ - edges: [PrincipalAuthModuleEdge]! + edges: [InfraConfigModuleEdge]! """Information to aid in pagination.""" pageInfo: PageInfo! """ - The count of *all* `PrincipalAuthModule` you could get from the connection. + The count of *all* `InfraConfigModule` you could get from the connection. """ totalCount: Int! } """ -Provisions the principals subsystem: a principals table, a principal_entities junction table, create/delete mutations, and org API key management. Supports both human-owned principals (AuthzDirectOwner, AuthzHumanOnly) and org-owned principals (AuthzEntityMembership with is_admin). Org principal and org API key functions are only generated when an org-scoped memberships_module exists for the database. +Namespace-backed plaintext key-value config module. Requires namespace_module and emits namespace:sync_config job triggers for K8s ConfigMap synchronization. """ -type PrincipalAuthModule { +type InfraConfigModule { id: UUID! databaseId: UUID! + entityField: String schemaId: UUID! - principalsTableId: UUID! - principalEntitiesTableId: UUID! - principalScopeOverridesTableId: UUID! - usersTableId: UUID! - sessionsTableId: UUID! - sessionCredentialsTableId: UUID! - auditsTableId: UUID! - principalsTableName: String! - createPrincipalFunction: String! - deletePrincipalFunction: String! - createOrgPrincipalFunction: String! - deleteOrgPrincipalFunction: String! - createOrgApiKeyFunction: String! - revokeOrgApiKeyFunction: String! + privateSchemaId: UUID! + publicSchemaName: String + privateSchemaName: String + configTableId: UUID! + configTableName: String! apiName: String + privateApiName: String + scope: String! + prefix: String! + entityTableId: UUID + policies: JSON + provisions: JSON } -"""A `PrincipalAuthModule` edge in the connection.""" -type PrincipalAuthModuleEdge { +"""A `InfraConfigModule` edge in the connection.""" +type InfraConfigModuleEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `PrincipalAuthModule` at the end of the edge.""" - node: PrincipalAuthModule + """The `InfraConfigModule` at the end of the edge.""" + node: InfraConfigModule } """ -A filter to be used against `PrincipalAuthModule` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `InfraConfigModule` object types. All fields are combined with a logical ‘and.’ """ -input PrincipalAuthModuleFilter { +input InfraConfigModuleFilter { """Filter by the object’s `id` field.""" id: UUIDFilter """Filter by the object’s `databaseId` field.""" databaseId: UUIDFilter + """Filter by the object’s `entityField` field.""" + entityField: StringFilter + """Filter by the object’s `schemaId` field.""" schemaId: UUIDFilter - """Filter by the object’s `principalsTableId` field.""" - principalsTableId: UUIDFilter - - """Filter by the object’s `principalEntitiesTableId` field.""" - principalEntitiesTableId: UUIDFilter - - """Filter by the object’s `principalScopeOverridesTableId` field.""" - principalScopeOverridesTableId: UUIDFilter - - """Filter by the object’s `usersTableId` field.""" - usersTableId: UUIDFilter + """Filter by the object’s `privateSchemaId` field.""" + privateSchemaId: UUIDFilter - """Filter by the object’s `sessionsTableId` field.""" - sessionsTableId: UUIDFilter + """Filter by the object’s `publicSchemaName` field.""" + publicSchemaName: StringFilter - """Filter by the object’s `sessionCredentialsTableId` field.""" - sessionCredentialsTableId: UUIDFilter + """Filter by the object’s `privateSchemaName` field.""" + privateSchemaName: StringFilter - """Filter by the object’s `auditsTableId` field.""" - auditsTableId: UUIDFilter + """Filter by the object’s `configTableId` field.""" + configTableId: UUIDFilter - """Filter by the object’s `principalsTableName` field.""" - principalsTableName: StringFilter + """Filter by the object’s `configTableName` field.""" + configTableName: StringFilter - """Filter by the object’s `createPrincipalFunction` field.""" - createPrincipalFunction: StringFilter + """Filter by the object’s `apiName` field.""" + apiName: StringFilter - """Filter by the object’s `deletePrincipalFunction` field.""" - deletePrincipalFunction: StringFilter + """Filter by the object’s `privateApiName` field.""" + privateApiName: StringFilter - """Filter by the object’s `createOrgPrincipalFunction` field.""" - createOrgPrincipalFunction: StringFilter + """Filter by the object’s `scope` field.""" + scope: StringFilter - """Filter by the object’s `deleteOrgPrincipalFunction` field.""" - deleteOrgPrincipalFunction: StringFilter + """Filter by the object’s `prefix` field.""" + prefix: StringFilter - """Filter by the object’s `createOrgApiKeyFunction` field.""" - createOrgApiKeyFunction: StringFilter + """Filter by the object’s `entityTableId` field.""" + entityTableId: UUIDFilter - """Filter by the object’s `revokeOrgApiKeyFunction` field.""" - revokeOrgApiKeyFunction: StringFilter + """Filter by the object’s `policies` field.""" + policies: JSONFilter - """Filter by the object’s `apiName` field.""" - apiName: StringFilter + """Filter by the object’s `provisions` field.""" + provisions: JSONFilter """Checks for all expressions in this list.""" - and: [PrincipalAuthModuleFilter!] + and: [InfraConfigModuleFilter!] """Checks for any expressions in this list.""" - or: [PrincipalAuthModuleFilter!] + or: [InfraConfigModuleFilter!] """Negates the expression.""" - not: PrincipalAuthModuleFilter + not: InfraConfigModuleFilter } -"""Methods to use when ordering `PrincipalAuthModule`.""" -enum PrincipalAuthModuleOrderBy { +"""Methods to use when ordering `InfraConfigModule`.""" +enum InfraConfigModuleOrderBy { NATURAL PRIMARY_KEY_ASC PRIMARY_KEY_DESC @@ -7395,94 +7226,87 @@ enum PrincipalAuthModuleOrderBy { ID_DESC DATABASE_ID_ASC DATABASE_ID_DESC + ENTITY_FIELD_ASC + ENTITY_FIELD_DESC SCHEMA_ID_ASC SCHEMA_ID_DESC - PRINCIPALS_TABLE_ID_ASC - PRINCIPALS_TABLE_ID_DESC - PRINCIPAL_ENTITIES_TABLE_ID_ASC - PRINCIPAL_ENTITIES_TABLE_ID_DESC - PRINCIPAL_SCOPE_OVERRIDES_TABLE_ID_ASC - PRINCIPAL_SCOPE_OVERRIDES_TABLE_ID_DESC - USERS_TABLE_ID_ASC - USERS_TABLE_ID_DESC - SESSIONS_TABLE_ID_ASC - SESSIONS_TABLE_ID_DESC - SESSION_CREDENTIALS_TABLE_ID_ASC - SESSION_CREDENTIALS_TABLE_ID_DESC - AUDITS_TABLE_ID_ASC - AUDITS_TABLE_ID_DESC - PRINCIPALS_TABLE_NAME_ASC - PRINCIPALS_TABLE_NAME_DESC - CREATE_PRINCIPAL_FUNCTION_ASC - CREATE_PRINCIPAL_FUNCTION_DESC - DELETE_PRINCIPAL_FUNCTION_ASC - DELETE_PRINCIPAL_FUNCTION_DESC - CREATE_ORG_PRINCIPAL_FUNCTION_ASC - CREATE_ORG_PRINCIPAL_FUNCTION_DESC - DELETE_ORG_PRINCIPAL_FUNCTION_ASC - DELETE_ORG_PRINCIPAL_FUNCTION_DESC - CREATE_ORG_API_KEY_FUNCTION_ASC - CREATE_ORG_API_KEY_FUNCTION_DESC - REVOKE_ORG_API_KEY_FUNCTION_ASC - REVOKE_ORG_API_KEY_FUNCTION_DESC + PRIVATE_SCHEMA_ID_ASC + PRIVATE_SCHEMA_ID_DESC + PUBLIC_SCHEMA_NAME_ASC + PUBLIC_SCHEMA_NAME_DESC + PRIVATE_SCHEMA_NAME_ASC + PRIVATE_SCHEMA_NAME_DESC + CONFIG_TABLE_ID_ASC + CONFIG_TABLE_ID_DESC + CONFIG_TABLE_NAME_ASC + CONFIG_TABLE_NAME_DESC API_NAME_ASC API_NAME_DESC + PRIVATE_API_NAME_ASC + PRIVATE_API_NAME_DESC + SCOPE_ASC + SCOPE_DESC + PREFIX_ASC + PREFIX_DESC + ENTITY_TABLE_ID_ASC + ENTITY_TABLE_ID_DESC + POLICIES_ASC + POLICIES_DESC + PROVISIONS_ASC + PROVISIONS_DESC } -"""A connection to a list of `ComputeLogModule` values.""" -type ComputeLogModuleConnection { - """A list of `ComputeLogModule` objects.""" - nodes: [ComputeLogModule]! +"""A connection to a list of `WebauthnAuthModule` values.""" +type WebauthnAuthModuleConnection { + """A list of `WebauthnAuthModule` objects.""" + nodes: [WebauthnAuthModule]! """ - A list of edges which contains the `ComputeLogModule` and cursor to aid in pagination. + A list of edges which contains the `WebauthnAuthModule` and cursor to aid in pagination. """ - edges: [ComputeLogModuleEdge]! + edges: [WebauthnAuthModuleEdge]! """Information to aid in pagination.""" pageInfo: PageInfo! """ - The count of *all* `ComputeLogModule` you could get from the connection. + The count of *all* `WebauthnAuthModule` you could get from the connection. """ totalCount: Int! } -type ComputeLogModule { +type WebauthnAuthModule { id: UUID! databaseId: UUID! schemaId: UUID! - privateSchemaId: UUID! - publicSchemaName: String - privateSchemaName: String - computeLogTableId: UUID! - computeLogTableName: String! - usageDailyTableId: UUID! - usageDailyTableName: String! - interval: String! - retention: String! - premake: Int! - scope: String! - actorFkTableId: UUID - entityFkTableId: UUID - prefix: String! - apiName: String - privateApiName: String -} - -"""A `ComputeLogModule` edge in the connection.""" -type ComputeLogModuleEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `ComputeLogModule` at the end of the edge.""" - node: ComputeLogModule -} + usersTableId: UUID! + credentialsTableId: UUID! + sessionsTableId: UUID! + sessionCredentialsTableId: UUID! + sessionSecretsTableId: UUID! + authSettingsTableId: UUID! + rpId: String! + rpName: String! + originAllowlist: [String]! + attestationType: String! + requireUserVerification: Boolean! + residentKey: String! + challengeExpiry: Interval! +} + +"""A `WebauthnAuthModule` edge in the connection.""" +type WebauthnAuthModuleEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `WebauthnAuthModule` at the end of the edge.""" + node: WebauthnAuthModule +} """ -A filter to be used against `ComputeLogModule` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `WebauthnAuthModule` object types. All fields are combined with a logical ‘and.’ """ -input ComputeLogModuleFilter { +input WebauthnAuthModuleFilter { """Filter by the object’s `id` field.""" id: UUIDFilter @@ -7492,66 +7316,57 @@ input ComputeLogModuleFilter { """Filter by the object’s `schemaId` field.""" schemaId: UUIDFilter - """Filter by the object’s `privateSchemaId` field.""" - privateSchemaId: UUIDFilter - - """Filter by the object’s `publicSchemaName` field.""" - publicSchemaName: StringFilter - - """Filter by the object’s `privateSchemaName` field.""" - privateSchemaName: StringFilter - - """Filter by the object’s `computeLogTableId` field.""" - computeLogTableId: UUIDFilter + """Filter by the object’s `usersTableId` field.""" + usersTableId: UUIDFilter - """Filter by the object’s `computeLogTableName` field.""" - computeLogTableName: StringFilter + """Filter by the object’s `credentialsTableId` field.""" + credentialsTableId: UUIDFilter - """Filter by the object’s `usageDailyTableId` field.""" - usageDailyTableId: UUIDFilter + """Filter by the object’s `sessionsTableId` field.""" + sessionsTableId: UUIDFilter - """Filter by the object’s `usageDailyTableName` field.""" - usageDailyTableName: StringFilter + """Filter by the object’s `sessionCredentialsTableId` field.""" + sessionCredentialsTableId: UUIDFilter - """Filter by the object’s `interval` field.""" - interval: StringFilter + """Filter by the object’s `sessionSecretsTableId` field.""" + sessionSecretsTableId: UUIDFilter - """Filter by the object’s `retention` field.""" - retention: StringFilter + """Filter by the object’s `authSettingsTableId` field.""" + authSettingsTableId: UUIDFilter - """Filter by the object’s `premake` field.""" - premake: IntFilter + """Filter by the object’s `rpId` field.""" + rpId: StringFilter - """Filter by the object’s `scope` field.""" - scope: StringFilter + """Filter by the object’s `rpName` field.""" + rpName: StringFilter - """Filter by the object’s `actorFkTableId` field.""" - actorFkTableId: UUIDFilter + """Filter by the object’s `originAllowlist` field.""" + originAllowlist: StringListFilter - """Filter by the object’s `entityFkTableId` field.""" - entityFkTableId: UUIDFilter + """Filter by the object’s `attestationType` field.""" + attestationType: StringFilter - """Filter by the object’s `prefix` field.""" - prefix: StringFilter + """Filter by the object’s `requireUserVerification` field.""" + requireUserVerification: BooleanFilter - """Filter by the object’s `apiName` field.""" - apiName: StringFilter + """Filter by the object’s `residentKey` field.""" + residentKey: StringFilter - """Filter by the object’s `privateApiName` field.""" - privateApiName: StringFilter + """Filter by the object’s `challengeExpiry` field.""" + challengeExpiry: IntervalFilter """Checks for all expressions in this list.""" - and: [ComputeLogModuleFilter!] + and: [WebauthnAuthModuleFilter!] """Checks for any expressions in this list.""" - or: [ComputeLogModuleFilter!] + or: [WebauthnAuthModuleFilter!] """Negates the expression.""" - not: ComputeLogModuleFilter + not: WebauthnAuthModuleFilter } -"""Methods to use when ordering `ComputeLogModule`.""" -enum ComputeLogModuleOrderBy { +"""Methods to use when ordering `WebauthnAuthModule`.""" +enum WebauthnAuthModuleOrderBy { NATURAL PRIMARY_KEY_ASC PRIMARY_KEY_DESC @@ -7561,94 +7376,90 @@ enum ComputeLogModuleOrderBy { DATABASE_ID_DESC SCHEMA_ID_ASC SCHEMA_ID_DESC - PRIVATE_SCHEMA_ID_ASC - PRIVATE_SCHEMA_ID_DESC - PUBLIC_SCHEMA_NAME_ASC - PUBLIC_SCHEMA_NAME_DESC - PRIVATE_SCHEMA_NAME_ASC - PRIVATE_SCHEMA_NAME_DESC - COMPUTE_LOG_TABLE_ID_ASC - COMPUTE_LOG_TABLE_ID_DESC - COMPUTE_LOG_TABLE_NAME_ASC - COMPUTE_LOG_TABLE_NAME_DESC - USAGE_DAILY_TABLE_ID_ASC - USAGE_DAILY_TABLE_ID_DESC - USAGE_DAILY_TABLE_NAME_ASC - USAGE_DAILY_TABLE_NAME_DESC - INTERVAL_ASC - INTERVAL_DESC - RETENTION_ASC - RETENTION_DESC - PREMAKE_ASC - PREMAKE_DESC - SCOPE_ASC - SCOPE_DESC - ACTOR_FK_TABLE_ID_ASC - ACTOR_FK_TABLE_ID_DESC - ENTITY_FK_TABLE_ID_ASC - ENTITY_FK_TABLE_ID_DESC - PREFIX_ASC - PREFIX_DESC - API_NAME_ASC - API_NAME_DESC - PRIVATE_API_NAME_ASC - PRIVATE_API_NAME_DESC + USERS_TABLE_ID_ASC + USERS_TABLE_ID_DESC + CREDENTIALS_TABLE_ID_ASC + CREDENTIALS_TABLE_ID_DESC + SESSIONS_TABLE_ID_ASC + SESSIONS_TABLE_ID_DESC + SESSION_CREDENTIALS_TABLE_ID_ASC + SESSION_CREDENTIALS_TABLE_ID_DESC + SESSION_SECRETS_TABLE_ID_ASC + SESSION_SECRETS_TABLE_ID_DESC + AUTH_SETTINGS_TABLE_ID_ASC + AUTH_SETTINGS_TABLE_ID_DESC + RP_ID_ASC + RP_ID_DESC + RP_NAME_ASC + RP_NAME_DESC + ORIGIN_ALLOWLIST_ASC + ORIGIN_ALLOWLIST_DESC + ATTESTATION_TYPE_ASC + ATTESTATION_TYPE_DESC + REQUIRE_USER_VERIFICATION_ASC + REQUIRE_USER_VERIFICATION_DESC + RESIDENT_KEY_ASC + RESIDENT_KEY_DESC + CHALLENGE_EXPIRY_ASC + CHALLENGE_EXPIRY_DESC } -"""A connection to a list of `InferenceLogModule` values.""" -type InferenceLogModuleConnection { - """A list of `InferenceLogModule` objects.""" - nodes: [InferenceLogModule]! +"""A connection to a list of `PrincipalAuthModule` values.""" +type PrincipalAuthModuleConnection { + """A list of `PrincipalAuthModule` objects.""" + nodes: [PrincipalAuthModule]! """ - A list of edges which contains the `InferenceLogModule` and cursor to aid in pagination. + A list of edges which contains the `PrincipalAuthModule` and cursor to aid in pagination. """ - edges: [InferenceLogModuleEdge]! + edges: [PrincipalAuthModuleEdge]! """Information to aid in pagination.""" pageInfo: PageInfo! """ - The count of *all* `InferenceLogModule` you could get from the connection. + The count of *all* `PrincipalAuthModule` you could get from the connection. """ totalCount: Int! } -type InferenceLogModule { +""" +Provisions the principals subsystem: a principals table, a principal_entities junction table, create/delete mutations, and org API key management. Supports both human-owned principals (AuthzDirectOwner, AuthzHumanOnly) and org-owned principals (AuthzEntityMembership with is_admin). Org principal and org API key functions are only generated when an org-scoped memberships_module exists for the database. +""" +type PrincipalAuthModule { id: UUID! databaseId: UUID! schemaId: UUID! - privateSchemaId: UUID! - publicSchemaName: String - privateSchemaName: String - inferenceLogTableId: UUID! - inferenceLogTableName: String! - usageDailyTableId: UUID! - usageDailyTableName: String! - interval: String! - retention: String! - premake: Int! - scope: String! - actorFkTableId: UUID - entityFkTableId: UUID - prefix: String! + principalsTableId: UUID! + principalEntitiesTableId: UUID! + principalScopeOverridesTableId: UUID! + usersTableId: UUID! + sessionsTableId: UUID! + sessionCredentialsTableId: UUID! + auditsTableId: UUID! + principalsTableName: String! + createPrincipalFunction: String! + deletePrincipalFunction: String! + createOrgPrincipalFunction: String! + deleteOrgPrincipalFunction: String! + createOrgApiKeyFunction: String! + revokeOrgApiKeyFunction: String! apiName: String - privateApiName: String } -"""A `InferenceLogModule` edge in the connection.""" -type InferenceLogModuleEdge { +"""A `PrincipalAuthModule` edge in the connection.""" +type PrincipalAuthModuleEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `InferenceLogModule` at the end of the edge.""" - node: InferenceLogModule + """The `PrincipalAuthModule` at the end of the edge.""" + node: PrincipalAuthModule } """ -A filter to be used against `InferenceLogModule` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `PrincipalAuthModule` object types. All fields are combined with a logical ‘and.’ """ -input InferenceLogModuleFilter { +input PrincipalAuthModuleFilter { """Filter by the object’s `id` field.""" id: UUIDFilter @@ -7658,66 +7469,63 @@ input InferenceLogModuleFilter { """Filter by the object’s `schemaId` field.""" schemaId: UUIDFilter - """Filter by the object’s `privateSchemaId` field.""" - privateSchemaId: UUIDFilter + """Filter by the object’s `principalsTableId` field.""" + principalsTableId: UUIDFilter - """Filter by the object’s `publicSchemaName` field.""" - publicSchemaName: StringFilter + """Filter by the object’s `principalEntitiesTableId` field.""" + principalEntitiesTableId: UUIDFilter - """Filter by the object’s `privateSchemaName` field.""" - privateSchemaName: StringFilter + """Filter by the object’s `principalScopeOverridesTableId` field.""" + principalScopeOverridesTableId: UUIDFilter - """Filter by the object’s `inferenceLogTableId` field.""" - inferenceLogTableId: UUIDFilter + """Filter by the object’s `usersTableId` field.""" + usersTableId: UUIDFilter - """Filter by the object’s `inferenceLogTableName` field.""" - inferenceLogTableName: StringFilter + """Filter by the object’s `sessionsTableId` field.""" + sessionsTableId: UUIDFilter - """Filter by the object’s `usageDailyTableId` field.""" - usageDailyTableId: UUIDFilter + """Filter by the object’s `sessionCredentialsTableId` field.""" + sessionCredentialsTableId: UUIDFilter - """Filter by the object’s `usageDailyTableName` field.""" - usageDailyTableName: StringFilter + """Filter by the object’s `auditsTableId` field.""" + auditsTableId: UUIDFilter - """Filter by the object’s `interval` field.""" - interval: StringFilter + """Filter by the object’s `principalsTableName` field.""" + principalsTableName: StringFilter - """Filter by the object’s `retention` field.""" - retention: StringFilter + """Filter by the object’s `createPrincipalFunction` field.""" + createPrincipalFunction: StringFilter - """Filter by the object’s `premake` field.""" - premake: IntFilter + """Filter by the object’s `deletePrincipalFunction` field.""" + deletePrincipalFunction: StringFilter - """Filter by the object’s `scope` field.""" - scope: StringFilter + """Filter by the object’s `createOrgPrincipalFunction` field.""" + createOrgPrincipalFunction: StringFilter - """Filter by the object’s `actorFkTableId` field.""" - actorFkTableId: UUIDFilter + """Filter by the object’s `deleteOrgPrincipalFunction` field.""" + deleteOrgPrincipalFunction: StringFilter - """Filter by the object’s `entityFkTableId` field.""" - entityFkTableId: UUIDFilter + """Filter by the object’s `createOrgApiKeyFunction` field.""" + createOrgApiKeyFunction: StringFilter - """Filter by the object’s `prefix` field.""" - prefix: StringFilter + """Filter by the object’s `revokeOrgApiKeyFunction` field.""" + revokeOrgApiKeyFunction: StringFilter """Filter by the object’s `apiName` field.""" apiName: StringFilter - """Filter by the object’s `privateApiName` field.""" - privateApiName: StringFilter - """Checks for all expressions in this list.""" - and: [InferenceLogModuleFilter!] + and: [PrincipalAuthModuleFilter!] """Checks for any expressions in this list.""" - or: [InferenceLogModuleFilter!] + or: [PrincipalAuthModuleFilter!] """Negates the expression.""" - not: InferenceLogModuleFilter + not: PrincipalAuthModuleFilter } -"""Methods to use when ordering `InferenceLogModule`.""" -enum InferenceLogModuleOrderBy { +"""Methods to use when ordering `PrincipalAuthModule`.""" +enum PrincipalAuthModuleOrderBy { NATURAL PRIMARY_KEY_ASC PRIMARY_KEY_DESC @@ -7727,100 +7535,246 @@ enum InferenceLogModuleOrderBy { DATABASE_ID_DESC SCHEMA_ID_ASC SCHEMA_ID_DESC - PRIVATE_SCHEMA_ID_ASC - PRIVATE_SCHEMA_ID_DESC - PUBLIC_SCHEMA_NAME_ASC - PUBLIC_SCHEMA_NAME_DESC - PRIVATE_SCHEMA_NAME_ASC - PRIVATE_SCHEMA_NAME_DESC - INFERENCE_LOG_TABLE_ID_ASC - INFERENCE_LOG_TABLE_ID_DESC - INFERENCE_LOG_TABLE_NAME_ASC - INFERENCE_LOG_TABLE_NAME_DESC - USAGE_DAILY_TABLE_ID_ASC - USAGE_DAILY_TABLE_ID_DESC - USAGE_DAILY_TABLE_NAME_ASC - USAGE_DAILY_TABLE_NAME_DESC - INTERVAL_ASC - INTERVAL_DESC - RETENTION_ASC - RETENTION_DESC - PREMAKE_ASC - PREMAKE_DESC - SCOPE_ASC - SCOPE_DESC - ACTOR_FK_TABLE_ID_ASC - ACTOR_FK_TABLE_ID_DESC - ENTITY_FK_TABLE_ID_ASC - ENTITY_FK_TABLE_ID_DESC - PREFIX_ASC - PREFIX_DESC + PRINCIPALS_TABLE_ID_ASC + PRINCIPALS_TABLE_ID_DESC + PRINCIPAL_ENTITIES_TABLE_ID_ASC + PRINCIPAL_ENTITIES_TABLE_ID_DESC + PRINCIPAL_SCOPE_OVERRIDES_TABLE_ID_ASC + PRINCIPAL_SCOPE_OVERRIDES_TABLE_ID_DESC + USERS_TABLE_ID_ASC + USERS_TABLE_ID_DESC + SESSIONS_TABLE_ID_ASC + SESSIONS_TABLE_ID_DESC + SESSION_CREDENTIALS_TABLE_ID_ASC + SESSION_CREDENTIALS_TABLE_ID_DESC + AUDITS_TABLE_ID_ASC + AUDITS_TABLE_ID_DESC + PRINCIPALS_TABLE_NAME_ASC + PRINCIPALS_TABLE_NAME_DESC + CREATE_PRINCIPAL_FUNCTION_ASC + CREATE_PRINCIPAL_FUNCTION_DESC + DELETE_PRINCIPAL_FUNCTION_ASC + DELETE_PRINCIPAL_FUNCTION_DESC + CREATE_ORG_PRINCIPAL_FUNCTION_ASC + CREATE_ORG_PRINCIPAL_FUNCTION_DESC + DELETE_ORG_PRINCIPAL_FUNCTION_ASC + DELETE_ORG_PRINCIPAL_FUNCTION_DESC + CREATE_ORG_API_KEY_FUNCTION_ASC + CREATE_ORG_API_KEY_FUNCTION_DESC + REVOKE_ORG_API_KEY_FUNCTION_ASC + REVOKE_ORG_API_KEY_FUNCTION_DESC API_NAME_ASC API_NAME_DESC - PRIVATE_API_NAME_ASC - PRIVATE_API_NAME_DESC } -"""A connection to a list of `NamespaceModule` values.""" -type NamespaceModuleConnection { - """A list of `NamespaceModule` objects.""" - nodes: [NamespaceModule]! +"""A connection to a list of `DbPool` values.""" +type DbPoolConnection { + """A list of `DbPool` objects.""" + nodes: [DbPool]! """ - A list of edges which contains the `NamespaceModule` and cursor to aid in pagination. + A list of edges which contains the `DbPool` and cursor to aid in pagination. """ - edges: [NamespaceModuleEdge]! + edges: [DbPoolEdge]! """Information to aid in pagination.""" pageInfo: PageInfo! + """The count of *all* `DbPool` you could get from the connection.""" + totalCount: Int! +} + +""" +Warm database pool entries. Rows are inserted as warming (which enqueues a db_pool:warm_database job), become ready once provisioned, and are handed to users via metaschema_private.db_pool_claim (invoked by metaschema_public.request_database). +""" +type DbPool { + id: UUID! + + """Slug of the db_presets catalog row this entry was baked from""" + presetSlug: String! + """ - The count of *all* `NamespaceModule` you could get from the connection. + The db_presets merkle commit_id the warm database was baked from; a mismatch with the current head marks the entry stale + """ + presetCommitId: UUID + databaseId: UUID + + """Lifecycle: warming, ready, claimed, stale, expired, or failed""" + status: String! + errorMessage: String + + """ + When a ready entry expires (set from db_pool_config.warm_ttl at warm time) + """ + expiresAt: Datetime + + """User the database was transferred to at claim time""" + claimedBy: UUID + claimedAt: Datetime + + """ + Status of the deferred owner bootstrap job after claim: not_requested, pending, completed, or failed + """ + bootstrapStatus: String! + bootstrapError: String + createdAt: Datetime! + updatedAt: Datetime! +} + +"""A `DbPool` edge in the connection.""" +type DbPoolEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `DbPool` at the end of the edge.""" + node: DbPool +} + +""" +A filter to be used against `DbPool` object types. All fields are combined with a logical ‘and.’ +""" +input DbPoolFilter { + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `presetSlug` field.""" + presetSlug: StringFilter + + """Filter by the object’s `presetCommitId` field.""" + presetCommitId: UUIDFilter + + """Filter by the object’s `databaseId` field.""" + databaseId: UUIDFilter + + """Filter by the object’s `status` field.""" + status: StringFilter + + """Filter by the object’s `errorMessage` field.""" + errorMessage: StringFilter + + """Filter by the object’s `expiresAt` field.""" + expiresAt: DatetimeFilter + + """Filter by the object’s `claimedBy` field.""" + claimedBy: UUIDFilter + + """Filter by the object’s `claimedAt` field.""" + claimedAt: DatetimeFilter + + """Filter by the object’s `bootstrapStatus` field.""" + bootstrapStatus: StringFilter + + """Filter by the object’s `bootstrapError` field.""" + bootstrapError: StringFilter + + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter + + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter + + """Checks for all expressions in this list.""" + and: [DbPoolFilter!] + + """Checks for any expressions in this list.""" + or: [DbPoolFilter!] + + """Negates the expression.""" + not: DbPoolFilter +} + +"""Methods to use when ordering `DbPool`.""" +enum DbPoolOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + PRESET_SLUG_ASC + PRESET_SLUG_DESC + PRESET_COMMIT_ID_ASC + PRESET_COMMIT_ID_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC + STATUS_ASC + STATUS_DESC + ERROR_MESSAGE_ASC + ERROR_MESSAGE_DESC + EXPIRES_AT_ASC + EXPIRES_AT_DESC + CLAIMED_BY_ASC + CLAIMED_BY_DESC + CLAIMED_AT_ASC + CLAIMED_AT_DESC + BOOTSTRAP_STATUS_ASC + BOOTSTRAP_STATUS_DESC + BOOTSTRAP_ERROR_ASC + BOOTSTRAP_ERROR_DESC + CREATED_AT_ASC + CREATED_AT_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC +} + +"""A connection to a list of `FunctionModule` values.""" +type FunctionModuleConnection { + """A list of `FunctionModule` objects.""" + nodes: [FunctionModule]! + + """ + A list of edges which contains the `FunctionModule` and cursor to aid in pagination. """ + edges: [FunctionModuleEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `FunctionModule` you could get from the connection.""" totalCount: Int! } -type NamespaceModule { +type FunctionModule { id: UUID! databaseId: UUID! + entityField: String schemaId: UUID! privateSchemaId: UUID! publicSchemaName: String privateSchemaName: String - namespacesTableId: UUID! - namespaceEventsTableId: UUID! - namespacesTableName: String! - namespaceEventsTableName: String! + definitionsTableId: UUID! + definitionsTableName: String! apiName: String privateApiName: String scope: String! prefix: String! entityTableId: UUID - platformNamespacesTableId: UUID policies: JSON provisions: JSON defaultPermissions: [String] } -"""A `NamespaceModule` edge in the connection.""" -type NamespaceModuleEdge { +"""A `FunctionModule` edge in the connection.""" +type FunctionModuleEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `NamespaceModule` at the end of the edge.""" - node: NamespaceModule + """The `FunctionModule` at the end of the edge.""" + node: FunctionModule } """ -A filter to be used against `NamespaceModule` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `FunctionModule` object types. All fields are combined with a logical ‘and.’ """ -input NamespaceModuleFilter { +input FunctionModuleFilter { """Filter by the object’s `id` field.""" id: UUIDFilter """Filter by the object’s `databaseId` field.""" databaseId: UUIDFilter + """Filter by the object’s `entityField` field.""" + entityField: StringFilter + """Filter by the object’s `schemaId` field.""" schemaId: UUIDFilter @@ -7833,17 +7787,11 @@ input NamespaceModuleFilter { """Filter by the object’s `privateSchemaName` field.""" privateSchemaName: StringFilter - """Filter by the object’s `namespacesTableId` field.""" - namespacesTableId: UUIDFilter - - """Filter by the object’s `namespaceEventsTableId` field.""" - namespaceEventsTableId: UUIDFilter - - """Filter by the object’s `namespacesTableName` field.""" - namespacesTableName: StringFilter + """Filter by the object’s `definitionsTableId` field.""" + definitionsTableId: UUIDFilter - """Filter by the object’s `namespaceEventsTableName` field.""" - namespaceEventsTableName: StringFilter + """Filter by the object’s `definitionsTableName` field.""" + definitionsTableName: StringFilter """Filter by the object’s `apiName` field.""" apiName: StringFilter @@ -7860,9 +7808,6 @@ input NamespaceModuleFilter { """Filter by the object’s `entityTableId` field.""" entityTableId: UUIDFilter - """Filter by the object’s `platformNamespacesTableId` field.""" - platformNamespacesTableId: UUIDFilter - """Filter by the object’s `policies` field.""" policies: JSONFilter @@ -7873,17 +7818,17 @@ input NamespaceModuleFilter { defaultPermissions: StringListFilter """Checks for all expressions in this list.""" - and: [NamespaceModuleFilter!] + and: [FunctionModuleFilter!] """Checks for any expressions in this list.""" - or: [NamespaceModuleFilter!] + or: [FunctionModuleFilter!] """Negates the expression.""" - not: NamespaceModuleFilter + not: FunctionModuleFilter } -"""Methods to use when ordering `NamespaceModule`.""" -enum NamespaceModuleOrderBy { +"""Methods to use when ordering `FunctionModule`.""" +enum FunctionModuleOrderBy { NATURAL PRIMARY_KEY_ASC PRIMARY_KEY_DESC @@ -7891,6 +7836,8 @@ enum NamespaceModuleOrderBy { ID_DESC DATABASE_ID_ASC DATABASE_ID_DESC + ENTITY_FIELD_ASC + ENTITY_FIELD_DESC SCHEMA_ID_ASC SCHEMA_ID_DESC PRIVATE_SCHEMA_ID_ASC @@ -7899,14 +7846,10 @@ enum NamespaceModuleOrderBy { PUBLIC_SCHEMA_NAME_DESC PRIVATE_SCHEMA_NAME_ASC PRIVATE_SCHEMA_NAME_DESC - NAMESPACES_TABLE_ID_ASC - NAMESPACES_TABLE_ID_DESC - NAMESPACE_EVENTS_TABLE_ID_ASC - NAMESPACE_EVENTS_TABLE_ID_DESC - NAMESPACES_TABLE_NAME_ASC - NAMESPACES_TABLE_NAME_DESC - NAMESPACE_EVENTS_TABLE_NAME_ASC - NAMESPACE_EVENTS_TABLE_NAME_DESC + DEFINITIONS_TABLE_ID_ASC + DEFINITIONS_TABLE_ID_DESC + DEFINITIONS_TABLE_NAME_ASC + DEFINITIONS_TABLE_NAME_DESC API_NAME_ASC API_NAME_DESC PRIVATE_API_NAME_ASC @@ -7917,8 +7860,6 @@ enum NamespaceModuleOrderBy { PREFIX_DESC ENTITY_TABLE_ID_ASC ENTITY_TABLE_ID_DESC - PLATFORM_NAMESPACES_TABLE_ID_ASC - PLATFORM_NAMESPACES_TABLE_ID_DESC POLICIES_ASC POLICIES_DESC PROVISIONS_ASC @@ -7927,138 +7868,36 @@ enum NamespaceModuleOrderBy { DEFAULT_PERMISSIONS_DESC } -"""A connection to a list of `ResourceModule` values.""" -type ResourceModuleConnection { - """A list of `ResourceModule` objects.""" - nodes: [ResourceModule]! +"""A connection to a list of `MerkleStoreModule` values.""" +type MerkleStoreModuleConnection { + """A list of `MerkleStoreModule` objects.""" + nodes: [MerkleStoreModule]! """ - A list of edges which contains the `ResourceModule` and cursor to aid in pagination. + A list of edges which contains the `MerkleStoreModule` and cursor to aid in pagination. """ - edges: [ResourceModuleEdge]! + edges: [MerkleStoreModuleEdge]! """Information to aid in pagination.""" pageInfo: PageInfo! - """The count of *all* `ResourceModule` you could get from the connection.""" - totalCount: Int! -} - -type ResourceModule { - id: UUID! - databaseId: UUID! - schemaId: UUID! - privateSchemaId: UUID! - publicSchemaName: String - privateSchemaName: String - resourcesTableId: UUID! - resourceEventsTableId: UUID! - resourcesTableName: String! - resourceEventsTableName: String! - apiName: String - privateApiName: String - scope: String! - prefix: String! - entityTableId: UUID - namespaceModuleId: UUID - policies: JSON - provisions: JSON - defaultPermissions: [String] - """ - Reads a single `NamespaceModule` that is related to this `ResourceModule`. + The count of *all* `MerkleStoreModule` you could get from the connection. """ - namespaceModule: NamespaceModule + totalCount: Int! } -"""A `ResourceModule` edge in the connection.""" -type ResourceModuleEdge { +"""A `MerkleStoreModule` edge in the connection.""" +type MerkleStoreModuleEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `ResourceModule` at the end of the edge.""" - node: ResourceModule -} - -""" -A filter to be used against `ResourceModule` object types. All fields are combined with a logical ‘and.’ -""" -input ResourceModuleFilter { - """Filter by the object’s `id` field.""" - id: UUIDFilter - - """Filter by the object’s `databaseId` field.""" - databaseId: UUIDFilter - - """Filter by the object’s `schemaId` field.""" - schemaId: UUIDFilter - - """Filter by the object’s `privateSchemaId` field.""" - privateSchemaId: UUIDFilter - - """Filter by the object’s `publicSchemaName` field.""" - publicSchemaName: StringFilter - - """Filter by the object’s `privateSchemaName` field.""" - privateSchemaName: StringFilter - - """Filter by the object’s `resourcesTableId` field.""" - resourcesTableId: UUIDFilter - - """Filter by the object’s `resourceEventsTableId` field.""" - resourceEventsTableId: UUIDFilter - - """Filter by the object’s `resourcesTableName` field.""" - resourcesTableName: StringFilter - - """Filter by the object’s `resourceEventsTableName` field.""" - resourceEventsTableName: StringFilter - - """Filter by the object’s `apiName` field.""" - apiName: StringFilter - - """Filter by the object’s `privateApiName` field.""" - privateApiName: StringFilter - - """Filter by the object’s `scope` field.""" - scope: StringFilter - - """Filter by the object’s `prefix` field.""" - prefix: StringFilter - - """Filter by the object’s `entityTableId` field.""" - entityTableId: UUIDFilter - - """Filter by the object’s `namespaceModuleId` field.""" - namespaceModuleId: UUIDFilter - - """Filter by the object’s `policies` field.""" - policies: JSONFilter - - """Filter by the object’s `provisions` field.""" - provisions: JSONFilter - - """Filter by the object’s `defaultPermissions` field.""" - defaultPermissions: StringListFilter - - """Checks for all expressions in this list.""" - and: [ResourceModuleFilter!] - - """Checks for any expressions in this list.""" - or: [ResourceModuleFilter!] - - """Negates the expression.""" - not: ResourceModuleFilter - - """Filter by the object’s `namespaceModule` relation.""" - namespaceModule: NamespaceModuleFilter - - """A related `namespaceModule` exists.""" - namespaceModuleExists: Boolean + """The `MerkleStoreModule` at the end of the edge.""" + node: MerkleStoreModule } -"""Methods to use when ordering `ResourceModule`.""" -enum ResourceModuleOrderBy { +"""Methods to use when ordering `MerkleStoreModule`.""" +enum MerkleStoreModuleOrderBy { NATURAL PRIMARY_KEY_ASC PRIMARY_KEY_DESC @@ -8066,6 +7905,8 @@ enum ResourceModuleOrderBy { ID_DESC DATABASE_ID_ASC DATABASE_ID_DESC + ENTITY_FIELD_ASC + ENTITY_FIELD_DESC SCHEMA_ID_ASC SCHEMA_ID_DESC PRIVATE_SCHEMA_ID_ASC @@ -8074,260 +7915,294 @@ enum ResourceModuleOrderBy { PUBLIC_SCHEMA_NAME_DESC PRIVATE_SCHEMA_NAME_ASC PRIVATE_SCHEMA_NAME_DESC - RESOURCES_TABLE_ID_ASC - RESOURCES_TABLE_ID_DESC - RESOURCE_EVENTS_TABLE_ID_ASC - RESOURCE_EVENTS_TABLE_ID_DESC - RESOURCES_TABLE_NAME_ASC - RESOURCES_TABLE_NAME_DESC - RESOURCE_EVENTS_TABLE_NAME_ASC - RESOURCE_EVENTS_TABLE_NAME_DESC + OBJECT_TABLE_ID_ASC + OBJECT_TABLE_ID_DESC + STORE_TABLE_ID_ASC + STORE_TABLE_ID_DESC + COMMIT_TABLE_ID_ASC + COMMIT_TABLE_ID_DESC + REF_TABLE_ID_ASC + REF_TABLE_ID_DESC + PREFIX_ASC + PREFIX_DESC API_NAME_ASC API_NAME_DESC PRIVATE_API_NAME_ASC PRIVATE_API_NAME_DESC SCOPE_ASC SCOPE_DESC - PREFIX_ASC - PREFIX_DESC - ENTITY_TABLE_ID_ASC - ENTITY_TABLE_ID_DESC - NAMESPACE_MODULE_ID_ASC - NAMESPACE_MODULE_ID_DESC - POLICIES_ASC - POLICIES_DESC - PROVISIONS_ASC - PROVISIONS_DESC - DEFAULT_PERMISSIONS_ASC - DEFAULT_PERMISSIONS_DESC + FUNCTION_PREFIX_ASC + FUNCTION_PREFIX_DESC + PERMISSION_KEY_ASC + PERMISSION_KEY_DESC + CREATED_AT_ASC + CREATED_AT_DESC } -"""A connection to a list of `StorageLogModule` values.""" -type StorageLogModuleConnection { - """A list of `StorageLogModule` objects.""" - nodes: [StorageLogModule]! +"""A connection to a list of `DatabaseProvisionModule` values.""" +type DatabaseProvisionModuleConnection { + """A list of `DatabaseProvisionModule` objects.""" + nodes: [DatabaseProvisionModule]! """ - A list of edges which contains the `StorageLogModule` and cursor to aid in pagination. + A list of edges which contains the `DatabaseProvisionModule` and cursor to aid in pagination. """ - edges: [StorageLogModuleEdge]! + edges: [DatabaseProvisionModuleEdge]! """Information to aid in pagination.""" pageInfo: PageInfo! """ - The count of *all* `StorageLogModule` you could get from the connection. + The count of *all* `DatabaseProvisionModule` you could get from the connection. """ totalCount: Int! } -type StorageLogModule { - id: UUID! - databaseId: UUID! - schemaId: UUID! - privateSchemaId: UUID! - publicSchemaName: String - privateSchemaName: String - storageLogTableId: UUID! - storageLogTableName: String! - usageDailyTableId: UUID! - usageDailyTableName: String! - interval: String! - retention: String! - premake: Int! - scope: String! - actorFkTableId: UUID - entityFkTableId: UUID - prefix: String! - apiName: String - privateApiName: String -} - -"""A `StorageLogModule` edge in the connection.""" -type StorageLogModuleEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `StorageLogModule` at the end of the edge.""" - node: StorageLogModule -} - """ -A filter to be used against `StorageLogModule` object types. All fields are combined with a logical ‘and.’ +Tracks database provisioning requests and their status. The BEFORE INSERT trigger creates the database and sets database_id before RLS policies are evaluated. """ -input StorageLogModuleFilter { - """Filter by the object’s `id` field.""" - id: UUIDFilter +type DatabaseProvisionModule { + id: UUID! - """Filter by the object’s `databaseId` field.""" - databaseId: UUIDFilter + """The name for the new database""" + databaseName: String! - """Filter by the object’s `schemaId` field.""" - schemaId: UUIDFilter + """UUID of the user who owns this database""" + ownerId: UUID! - """Filter by the object’s `privateSchemaId` field.""" - privateSchemaId: UUIDFilter + """ + Subdomain prefix for the database. If null, auto-generated using unique_names + random chars + """ + subdomain: String - """Filter by the object’s `publicSchemaName` field.""" - publicSchemaName: StringFilter + """Base domain for the database (e.g., example.com)""" + domain: String! - """Filter by the object’s `privateSchemaName` field.""" - privateSchemaName: StringFilter + """ + JSONB array of modules to install. Each element is either a string ("users_module") or a [name, options] tuple (["permissions_module", {"scope": "app"}]) + """ + modules: JSON! - """Filter by the object’s `storageLogTableId` field.""" - storageLogTableId: UUIDFilter + """Additional configuration options for provisioning""" + options: JSON! - """Filter by the object’s `storageLogTableName` field.""" - storageLogTableName: StringFilter + """ + When true, copies the owner user and password hash from source database to the newly provisioned database + """ + bootstrapUser: Boolean! - """Filter by the object’s `usageDailyTableId` field.""" - usageDailyTableId: UUIDFilter + """Current status: pending, in_progress, completed, or failed""" + status: String! + errorMessage: String - """Filter by the object’s `usageDailyTableName` field.""" - usageDailyTableName: StringFilter + """ + The database the owner user is copied from during bootstrap (captured from JWT context at provision time) + """ + sourceDatabaseId: UUID - """Filter by the object’s `interval` field.""" - interval: StringFilter + """ + Status of the deferred owner bootstrap job: not_requested, pending, completed, or failed + """ + bootstrapStatus: String! - """Filter by the object’s `retention` field.""" - retention: StringFilter + """Error message from the most recent failed bootstrap attempt""" + bootstrapError: String - """Filter by the object’s `premake` field.""" - premake: IntFilter + """The ID of the provisioned database (set by trigger before RLS check)""" + databaseId: UUID + createdAt: Datetime! + updatedAt: Datetime! + completedAt: Datetime - """Filter by the object’s `scope` field.""" - scope: StringFilter + """ + 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: Datetime +} - """Filter by the object’s `actorFkTableId` field.""" - actorFkTableId: UUIDFilter +"""A `DatabaseProvisionModule` edge in the connection.""" +type DatabaseProvisionModuleEdge { + """A cursor for use in pagination.""" + cursor: Cursor - """Filter by the object’s `entityFkTableId` field.""" - entityFkTableId: UUIDFilter + """The `DatabaseProvisionModule` at the end of the edge.""" + node: DatabaseProvisionModule +} - """Filter by the object’s `prefix` field.""" - prefix: StringFilter +""" +A filter to be used against `DatabaseProvisionModule` object types. All fields are combined with a logical ‘and.’ +""" +input DatabaseProvisionModuleFilter { + """Filter by the object’s `id` field.""" + id: UUIDFilter - """Filter by the object’s `apiName` field.""" - apiName: StringFilter + """Filter by the object’s `databaseName` field.""" + databaseName: StringFilter - """Filter by the object’s `privateApiName` field.""" - privateApiName: StringFilter + """Filter by the object’s `ownerId` field.""" + ownerId: UUIDFilter + + """Filter by the object’s `subdomain` field.""" + subdomain: StringFilter + + """Filter by the object’s `domain` field.""" + domain: StringFilter + + """Filter by the object’s `modules` field.""" + modules: JSONFilter + + """Filter by the object’s `options` field.""" + options: JSONFilter + + """Filter by the object’s `bootstrapUser` field.""" + bootstrapUser: BooleanFilter + + """Filter by the object’s `status` field.""" + status: StringFilter + + """Filter by the object’s `errorMessage` field.""" + errorMessage: StringFilter + + """Filter by the object’s `sourceDatabaseId` field.""" + sourceDatabaseId: UUIDFilter + + """Filter by the object’s `bootstrapStatus` field.""" + bootstrapStatus: StringFilter + + """Filter by the object’s `bootstrapError` field.""" + bootstrapError: StringFilter + + """Filter by the object’s `databaseId` field.""" + databaseId: UUIDFilter + + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter + + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter + + """Filter by the object’s `completedAt` field.""" + completedAt: DatetimeFilter + + """Filter by the object’s `fulfilledAt` field.""" + fulfilledAt: DatetimeFilter """Checks for all expressions in this list.""" - and: [StorageLogModuleFilter!] + and: [DatabaseProvisionModuleFilter!] """Checks for any expressions in this list.""" - or: [StorageLogModuleFilter!] + or: [DatabaseProvisionModuleFilter!] """Negates the expression.""" - not: StorageLogModuleFilter + not: DatabaseProvisionModuleFilter } -"""Methods to use when ordering `StorageLogModule`.""" -enum StorageLogModuleOrderBy { +"""Methods to use when ordering `DatabaseProvisionModule`.""" +enum DatabaseProvisionModuleOrderBy { NATURAL PRIMARY_KEY_ASC PRIMARY_KEY_DESC ID_ASC ID_DESC + DATABASE_NAME_ASC + DATABASE_NAME_DESC + OWNER_ID_ASC + OWNER_ID_DESC + SUBDOMAIN_ASC + SUBDOMAIN_DESC + DOMAIN_ASC + DOMAIN_DESC + MODULES_ASC + MODULES_DESC + OPTIONS_ASC + OPTIONS_DESC + BOOTSTRAP_USER_ASC + BOOTSTRAP_USER_DESC + STATUS_ASC + STATUS_DESC + ERROR_MESSAGE_ASC + ERROR_MESSAGE_DESC + SOURCE_DATABASE_ID_ASC + SOURCE_DATABASE_ID_DESC + BOOTSTRAP_STATUS_ASC + BOOTSTRAP_STATUS_DESC + BOOTSTRAP_ERROR_ASC + BOOTSTRAP_ERROR_DESC DATABASE_ID_ASC DATABASE_ID_DESC - SCHEMA_ID_ASC - SCHEMA_ID_DESC - PRIVATE_SCHEMA_ID_ASC - PRIVATE_SCHEMA_ID_DESC - PUBLIC_SCHEMA_NAME_ASC - PUBLIC_SCHEMA_NAME_DESC - PRIVATE_SCHEMA_NAME_ASC - PRIVATE_SCHEMA_NAME_DESC - STORAGE_LOG_TABLE_ID_ASC - STORAGE_LOG_TABLE_ID_DESC - STORAGE_LOG_TABLE_NAME_ASC - STORAGE_LOG_TABLE_NAME_DESC - USAGE_DAILY_TABLE_ID_ASC - USAGE_DAILY_TABLE_ID_DESC - USAGE_DAILY_TABLE_NAME_ASC - USAGE_DAILY_TABLE_NAME_DESC - INTERVAL_ASC - INTERVAL_DESC - RETENTION_ASC - RETENTION_DESC - PREMAKE_ASC - PREMAKE_DESC - SCOPE_ASC - SCOPE_DESC - ACTOR_FK_TABLE_ID_ASC - ACTOR_FK_TABLE_ID_DESC - ENTITY_FK_TABLE_ID_ASC - ENTITY_FK_TABLE_ID_DESC - PREFIX_ASC - PREFIX_DESC - API_NAME_ASC - API_NAME_DESC - PRIVATE_API_NAME_ASC - PRIVATE_API_NAME_DESC + CREATED_AT_ASC + CREATED_AT_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC + COMPLETED_AT_ASC + COMPLETED_AT_DESC + FULFILLED_AT_ASC + FULFILLED_AT_DESC } -"""A connection to a list of `TransferLogModule` values.""" -type TransferLogModuleConnection { - """A list of `TransferLogModule` objects.""" - nodes: [TransferLogModule]! +"""A connection to a list of `FunctionInvocationModule` values.""" +type FunctionInvocationModuleConnection { + """A list of `FunctionInvocationModule` objects.""" + nodes: [FunctionInvocationModule]! """ - A list of edges which contains the `TransferLogModule` and cursor to aid in pagination. + A list of edges which contains the `FunctionInvocationModule` and cursor to aid in pagination. """ - edges: [TransferLogModuleEdge]! + edges: [FunctionInvocationModuleEdge]! """Information to aid in pagination.""" pageInfo: PageInfo! """ - The count of *all* `TransferLogModule` you could get from the connection. + The count of *all* `FunctionInvocationModule` you could get from the connection. """ totalCount: Int! } -type TransferLogModule { +type FunctionInvocationModule { id: UUID! databaseId: UUID! + entityField: String schemaId: UUID! privateSchemaId: UUID! publicSchemaName: String privateSchemaName: String - transferLogTableId: UUID! - transferLogTableName: String! - usageDailyTableId: UUID! - usageDailyTableName: String! - interval: String! - retention: String! - premake: Int! - scope: String! - actorFkTableId: UUID - entityFkTableId: UUID - prefix: String! + invocationsTableId: UUID! + executionLogsTableId: UUID! + invocationsTableName: String! + executionLogsTableName: String! apiName: String privateApiName: String + scope: String! + prefix: String! + entityTableId: UUID + policies: JSON + provisions: JSON + defaultPermissions: [String] } -"""A `TransferLogModule` edge in the connection.""" -type TransferLogModuleEdge { +"""A `FunctionInvocationModule` edge in the connection.""" +type FunctionInvocationModuleEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `TransferLogModule` at the end of the edge.""" - node: TransferLogModule + """The `FunctionInvocationModule` at the end of the edge.""" + node: FunctionInvocationModule } """ -A filter to be used against `TransferLogModule` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `FunctionInvocationModule` object types. All fields are combined with a logical ‘and.’ """ -input TransferLogModuleFilter { +input FunctionInvocationModuleFilter { """Filter by the object’s `id` field.""" id: UUIDFilter """Filter by the object’s `databaseId` field.""" databaseId: UUIDFilter + """Filter by the object’s `entityField` field.""" + entityField: StringFilter + """Filter by the object’s `schemaId` field.""" schemaId: UUIDFilter @@ -8340,57 +8215,54 @@ input TransferLogModuleFilter { """Filter by the object’s `privateSchemaName` field.""" privateSchemaName: StringFilter - """Filter by the object’s `transferLogTableId` field.""" - transferLogTableId: UUIDFilter - - """Filter by the object’s `transferLogTableName` field.""" - transferLogTableName: StringFilter + """Filter by the object’s `invocationsTableId` field.""" + invocationsTableId: UUIDFilter - """Filter by the object’s `usageDailyTableId` field.""" - usageDailyTableId: UUIDFilter + """Filter by the object’s `executionLogsTableId` field.""" + executionLogsTableId: UUIDFilter - """Filter by the object’s `usageDailyTableName` field.""" - usageDailyTableName: StringFilter + """Filter by the object’s `invocationsTableName` field.""" + invocationsTableName: StringFilter - """Filter by the object’s `interval` field.""" - interval: StringFilter + """Filter by the object’s `executionLogsTableName` field.""" + executionLogsTableName: StringFilter - """Filter by the object’s `retention` field.""" - retention: StringFilter + """Filter by the object’s `apiName` field.""" + apiName: StringFilter - """Filter by the object’s `premake` field.""" - premake: IntFilter + """Filter by the object’s `privateApiName` field.""" + privateApiName: StringFilter """Filter by the object’s `scope` field.""" scope: StringFilter - """Filter by the object’s `actorFkTableId` field.""" - actorFkTableId: UUIDFilter - - """Filter by the object’s `entityFkTableId` field.""" - entityFkTableId: UUIDFilter - """Filter by the object’s `prefix` field.""" prefix: StringFilter - """Filter by the object’s `apiName` field.""" - apiName: StringFilter + """Filter by the object’s `entityTableId` field.""" + entityTableId: UUIDFilter - """Filter by the object’s `privateApiName` field.""" - privateApiName: StringFilter + """Filter by the object’s `policies` field.""" + policies: JSONFilter + + """Filter by the object’s `provisions` field.""" + provisions: JSONFilter + + """Filter by the object’s `defaultPermissions` field.""" + defaultPermissions: StringListFilter """Checks for all expressions in this list.""" - and: [TransferLogModuleFilter!] + and: [FunctionInvocationModuleFilter!] """Checks for any expressions in this list.""" - or: [TransferLogModuleFilter!] + or: [FunctionInvocationModuleFilter!] """Negates the expression.""" - not: TransferLogModuleFilter + not: FunctionInvocationModuleFilter } -"""Methods to use when ordering `TransferLogModule`.""" -enum TransferLogModuleOrderBy { +"""Methods to use when ordering `FunctionInvocationModule`.""" +enum FunctionInvocationModuleOrderBy { NATURAL PRIMARY_KEY_ASC PRIMARY_KEY_DESC @@ -8398,6 +8270,8 @@ enum TransferLogModuleOrderBy { ID_DESC DATABASE_ID_ASC DATABASE_ID_DESC + ENTITY_FIELD_ASC + ENTITY_FIELD_DESC SCHEMA_ID_ASC SCHEMA_ID_DESC PRIVATE_SCHEMA_ID_ASC @@ -8406,105 +8280,93 @@ enum TransferLogModuleOrderBy { PUBLIC_SCHEMA_NAME_DESC PRIVATE_SCHEMA_NAME_ASC PRIVATE_SCHEMA_NAME_DESC - TRANSFER_LOG_TABLE_ID_ASC - TRANSFER_LOG_TABLE_ID_DESC - TRANSFER_LOG_TABLE_NAME_ASC - TRANSFER_LOG_TABLE_NAME_DESC - USAGE_DAILY_TABLE_ID_ASC - USAGE_DAILY_TABLE_ID_DESC - USAGE_DAILY_TABLE_NAME_ASC - USAGE_DAILY_TABLE_NAME_DESC - INTERVAL_ASC - INTERVAL_DESC - RETENTION_ASC - RETENTION_DESC - PREMAKE_ASC - PREMAKE_DESC - SCOPE_ASC - SCOPE_DESC - ACTOR_FK_TABLE_ID_ASC - ACTOR_FK_TABLE_ID_DESC - ENTITY_FK_TABLE_ID_ASC - ENTITY_FK_TABLE_ID_DESC - PREFIX_ASC - PREFIX_DESC + INVOCATIONS_TABLE_ID_ASC + INVOCATIONS_TABLE_ID_DESC + EXECUTION_LOGS_TABLE_ID_ASC + EXECUTION_LOGS_TABLE_ID_DESC + INVOCATIONS_TABLE_NAME_ASC + INVOCATIONS_TABLE_NAME_DESC + EXECUTION_LOGS_TABLE_NAME_ASC + EXECUTION_LOGS_TABLE_NAME_DESC API_NAME_ASC API_NAME_DESC PRIVATE_API_NAME_ASC PRIVATE_API_NAME_DESC + SCOPE_ASC + SCOPE_DESC + PREFIX_ASC + PREFIX_DESC + ENTITY_TABLE_ID_ASC + ENTITY_TABLE_ID_DESC + POLICIES_ASC + POLICIES_DESC + PROVISIONS_ASC + PROVISIONS_DESC + DEFAULT_PERMISSIONS_ASC + DEFAULT_PERMISSIONS_DESC } -"""A connection to a list of `FunctionDeploymentModule` values.""" -type FunctionDeploymentModuleConnection { - """A list of `FunctionDeploymentModule` objects.""" - nodes: [FunctionDeploymentModule]! +"""A connection to a list of `InvitesModule` values.""" +type InvitesModuleConnection { + """A list of `InvitesModule` objects.""" + nodes: [InvitesModule]! """ - A list of edges which contains the `FunctionDeploymentModule` and cursor to aid in pagination. + A list of edges which contains the `InvitesModule` and cursor to aid in pagination. """ - edges: [FunctionDeploymentModuleEdge]! + edges: [InvitesModuleEdge]! """Information to aid in pagination.""" pageInfo: PageInfo! - """ - The count of *all* `FunctionDeploymentModule` you could get from the connection. - """ + """The count of *all* `InvitesModule` you could get from the connection.""" totalCount: Int! } -type FunctionDeploymentModule { +type InvitesModule { id: UUID! databaseId: UUID! + entityField: String schemaId: UUID! privateSchemaId: UUID! publicSchemaName: String privateSchemaName: String - deploymentsTableId: UUID! - deploymentEventsTableId: UUID! - deploymentsTableName: String! - deploymentEventsTableName: String! - apiName: String - privateApiName: String + emailsTableId: UUID! + usersTableId: UUID! + invitesTableId: UUID! + claimedInvitesTableId: UUID! + invitesTableName: String! + claimedInvitesTableName: String! + submitInviteCodeFunction: String! scope: String! prefix: String! entityTableId: UUID - functionModuleId: UUID - namespaceModuleId: UUID - policies: JSON - provisions: JSON - defaultPermissions: [String] - - """ - Reads a single `FunctionModule` that is related to this `FunctionDeploymentModule`. - """ - functionModule: FunctionModule - - """ - Reads a single `NamespaceModule` that is related to this `FunctionDeploymentModule`. - """ - namespaceModule: NamespaceModule + apiName: String + privateApiName: String } -"""A `FunctionDeploymentModule` edge in the connection.""" -type FunctionDeploymentModuleEdge { +"""A `InvitesModule` edge in the connection.""" +type InvitesModuleEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `FunctionDeploymentModule` at the end of the edge.""" - node: FunctionDeploymentModule + """The `InvitesModule` at the end of the edge.""" + node: InvitesModule } """ -A filter to be used against `FunctionDeploymentModule` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `InvitesModule` object types. All fields are combined with a logical ‘and.’ """ -input FunctionDeploymentModuleFilter { +input InvitesModuleFilter { """Filter by the object’s `id` field.""" id: UUIDFilter """Filter by the object’s `databaseId` field.""" databaseId: UUIDFilter + """Filter by the object’s `entityField` field.""" + entityField: StringFilter + """Filter by the object’s `schemaId` field.""" schemaId: UUIDFilter @@ -8517,23 +8379,26 @@ input FunctionDeploymentModuleFilter { """Filter by the object’s `privateSchemaName` field.""" privateSchemaName: StringFilter - """Filter by the object’s `deploymentsTableId` field.""" - deploymentsTableId: UUIDFilter + """Filter by the object’s `emailsTableId` field.""" + emailsTableId: UUIDFilter - """Filter by the object’s `deploymentEventsTableId` field.""" - deploymentEventsTableId: UUIDFilter + """Filter by the object’s `usersTableId` field.""" + usersTableId: UUIDFilter - """Filter by the object’s `deploymentsTableName` field.""" - deploymentsTableName: StringFilter + """Filter by the object’s `invitesTableId` field.""" + invitesTableId: UUIDFilter - """Filter by the object’s `deploymentEventsTableName` field.""" - deploymentEventsTableName: StringFilter + """Filter by the object’s `claimedInvitesTableId` field.""" + claimedInvitesTableId: UUIDFilter - """Filter by the object’s `apiName` field.""" - apiName: StringFilter + """Filter by the object’s `invitesTableName` field.""" + invitesTableName: StringFilter - """Filter by the object’s `privateApiName` field.""" - privateApiName: StringFilter + """Filter by the object’s `claimedInvitesTableName` field.""" + claimedInvitesTableName: StringFilter + + """Filter by the object’s `submitInviteCodeFunction` field.""" + submitInviteCodeFunction: StringFilter """Filter by the object’s `scope` field.""" scope: StringFilter @@ -8544,45 +8409,24 @@ input FunctionDeploymentModuleFilter { """Filter by the object’s `entityTableId` field.""" entityTableId: UUIDFilter - """Filter by the object’s `functionModuleId` field.""" - functionModuleId: UUIDFilter - - """Filter by the object’s `namespaceModuleId` field.""" - namespaceModuleId: UUIDFilter - - """Filter by the object’s `policies` field.""" - policies: JSONFilter - - """Filter by the object’s `provisions` field.""" - provisions: JSONFilter + """Filter by the object’s `apiName` field.""" + apiName: StringFilter - """Filter by the object’s `defaultPermissions` field.""" - defaultPermissions: StringListFilter + """Filter by the object’s `privateApiName` field.""" + privateApiName: StringFilter """Checks for all expressions in this list.""" - and: [FunctionDeploymentModuleFilter!] + and: [InvitesModuleFilter!] """Checks for any expressions in this list.""" - or: [FunctionDeploymentModuleFilter!] + or: [InvitesModuleFilter!] """Negates the expression.""" - not: FunctionDeploymentModuleFilter - - """Filter by the object’s `functionModule` relation.""" - functionModule: FunctionModuleFilter - - """A related `functionModule` exists.""" - functionModuleExists: Boolean - - """Filter by the object’s `namespaceModule` relation.""" - namespaceModule: NamespaceModuleFilter - - """A related `namespaceModule` exists.""" - namespaceModuleExists: Boolean + not: InvitesModuleFilter } -"""Methods to use when ordering `FunctionDeploymentModule`.""" -enum FunctionDeploymentModuleOrderBy { +"""Methods to use when ordering `InvitesModule`.""" +enum InvitesModuleOrderBy { NATURAL PRIMARY_KEY_ASC PRIMARY_KEY_DESC @@ -8590,6 +8434,8 @@ enum FunctionDeploymentModuleOrderBy { ID_DESC DATABASE_ID_ASC DATABASE_ID_DESC + ENTITY_FIELD_ASC + ENTITY_FIELD_DESC SCHEMA_ID_ASC SCHEMA_ID_DESC PRIVATE_SCHEMA_ID_ASC @@ -8598,90 +8444,252 @@ enum FunctionDeploymentModuleOrderBy { PUBLIC_SCHEMA_NAME_DESC PRIVATE_SCHEMA_NAME_ASC PRIVATE_SCHEMA_NAME_DESC - DEPLOYMENTS_TABLE_ID_ASC - DEPLOYMENTS_TABLE_ID_DESC - DEPLOYMENT_EVENTS_TABLE_ID_ASC - DEPLOYMENT_EVENTS_TABLE_ID_DESC - DEPLOYMENTS_TABLE_NAME_ASC - DEPLOYMENTS_TABLE_NAME_DESC - DEPLOYMENT_EVENTS_TABLE_NAME_ASC - DEPLOYMENT_EVENTS_TABLE_NAME_DESC - API_NAME_ASC - API_NAME_DESC - PRIVATE_API_NAME_ASC - PRIVATE_API_NAME_DESC + EMAILS_TABLE_ID_ASC + EMAILS_TABLE_ID_DESC + USERS_TABLE_ID_ASC + USERS_TABLE_ID_DESC + INVITES_TABLE_ID_ASC + INVITES_TABLE_ID_DESC + CLAIMED_INVITES_TABLE_ID_ASC + CLAIMED_INVITES_TABLE_ID_DESC + INVITES_TABLE_NAME_ASC + INVITES_TABLE_NAME_DESC + CLAIMED_INVITES_TABLE_NAME_ASC + CLAIMED_INVITES_TABLE_NAME_DESC + SUBMIT_INVITE_CODE_FUNCTION_ASC + SUBMIT_INVITE_CODE_FUNCTION_DESC SCOPE_ASC SCOPE_DESC PREFIX_ASC PREFIX_DESC ENTITY_TABLE_ID_ASC ENTITY_TABLE_ID_DESC - FUNCTION_MODULE_ID_ASC - FUNCTION_MODULE_ID_DESC - NAMESPACE_MODULE_ID_ASC - NAMESPACE_MODULE_ID_DESC - POLICIES_ASC - POLICIES_DESC - PROVISIONS_ASC - PROVISIONS_DESC - DEFAULT_PERMISSIONS_ASC - DEFAULT_PERMISSIONS_DESC + API_NAME_ASC + API_NAME_DESC + PRIVATE_API_NAME_ASC + PRIVATE_API_NAME_DESC } -"""A connection to a list of `PlansModule` values.""" -type PlansModuleConnection { - """A list of `PlansModule` objects.""" - nodes: [PlansModule]! +"""A connection to a list of `NamespaceModule` values.""" +type NamespaceModuleConnection { + """A list of `NamespaceModule` objects.""" + nodes: [NamespaceModule]! """ - A list of edges which contains the `PlansModule` and cursor to aid in pagination. + A list of edges which contains the `NamespaceModule` and cursor to aid in pagination. """ - edges: [PlansModuleEdge]! + edges: [NamespaceModuleEdge]! """Information to aid in pagination.""" pageInfo: PageInfo! - """The count of *all* `PlansModule` you could get from the connection.""" + """ + The count of *all* `NamespaceModule` you could get from the connection. + """ totalCount: Int! } -type PlansModule { +type NamespaceModule { id: UUID! databaseId: UUID! + entityField: String schemaId: UUID! privateSchemaId: UUID! publicSchemaName: String privateSchemaName: String - plansTableId: UUID! - plansTableName: String! - planLimitsTableId: UUID! - planLimitsTableName: String! - planPricingTableId: UUID - planOverridesTableId: UUID - planMeterLimitsTableId: UUID - planCapsTableId: UUID - applyPlanFunction: String! - applyPlanAggregateFunction: String! - applyBillingPlanFunction: String - applyPlanCapsFunction: String - prefix: String + namespacesTableId: UUID! + namespaceEventsTableId: UUID! + namespacesTableName: String! + namespaceEventsTableName: String! apiName: String privateApiName: String + scope: String! + prefix: String! + entityTableId: UUID + policies: JSON + provisions: JSON + defaultPermissions: [String] } -"""A `PlansModule` edge in the connection.""" -type PlansModuleEdge { +"""A `NamespaceModule` edge in the connection.""" +type NamespaceModuleEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `PlansModule` at the end of the edge.""" - node: PlansModule + """The `NamespaceModule` at the end of the edge.""" + node: NamespaceModule } """ -A filter to be used against `PlansModule` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `NamespaceModule` object types. All fields are combined with a logical ‘and.’ """ -input PlansModuleFilter { +input NamespaceModuleFilter { + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `databaseId` field.""" + databaseId: UUIDFilter + + """Filter by the object’s `entityField` field.""" + entityField: StringFilter + + """Filter by the object’s `schemaId` field.""" + schemaId: UUIDFilter + + """Filter by the object’s `privateSchemaId` field.""" + privateSchemaId: UUIDFilter + + """Filter by the object’s `publicSchemaName` field.""" + publicSchemaName: StringFilter + + """Filter by the object’s `privateSchemaName` field.""" + privateSchemaName: StringFilter + + """Filter by the object’s `namespacesTableId` field.""" + namespacesTableId: UUIDFilter + + """Filter by the object’s `namespaceEventsTableId` field.""" + namespaceEventsTableId: UUIDFilter + + """Filter by the object’s `namespacesTableName` field.""" + namespacesTableName: StringFilter + + """Filter by the object’s `namespaceEventsTableName` field.""" + namespaceEventsTableName: StringFilter + + """Filter by the object’s `apiName` field.""" + apiName: StringFilter + + """Filter by the object’s `privateApiName` field.""" + privateApiName: StringFilter + + """Filter by the object’s `scope` field.""" + scope: StringFilter + + """Filter by the object’s `prefix` field.""" + prefix: StringFilter + + """Filter by the object’s `entityTableId` field.""" + entityTableId: UUIDFilter + + """Filter by the object’s `policies` field.""" + policies: JSONFilter + + """Filter by the object’s `provisions` field.""" + provisions: JSONFilter + + """Filter by the object’s `defaultPermissions` field.""" + defaultPermissions: StringListFilter + + """Checks for all expressions in this list.""" + and: [NamespaceModuleFilter!] + + """Checks for any expressions in this list.""" + or: [NamespaceModuleFilter!] + + """Negates the expression.""" + not: NamespaceModuleFilter +} + +"""Methods to use when ordering `NamespaceModule`.""" +enum NamespaceModuleOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC + ENTITY_FIELD_ASC + ENTITY_FIELD_DESC + SCHEMA_ID_ASC + SCHEMA_ID_DESC + PRIVATE_SCHEMA_ID_ASC + PRIVATE_SCHEMA_ID_DESC + PUBLIC_SCHEMA_NAME_ASC + PUBLIC_SCHEMA_NAME_DESC + PRIVATE_SCHEMA_NAME_ASC + PRIVATE_SCHEMA_NAME_DESC + NAMESPACES_TABLE_ID_ASC + NAMESPACES_TABLE_ID_DESC + NAMESPACE_EVENTS_TABLE_ID_ASC + NAMESPACE_EVENTS_TABLE_ID_DESC + NAMESPACES_TABLE_NAME_ASC + NAMESPACES_TABLE_NAME_DESC + NAMESPACE_EVENTS_TABLE_NAME_ASC + NAMESPACE_EVENTS_TABLE_NAME_DESC + API_NAME_ASC + API_NAME_DESC + PRIVATE_API_NAME_ASC + PRIVATE_API_NAME_DESC + SCOPE_ASC + SCOPE_DESC + PREFIX_ASC + PREFIX_DESC + ENTITY_TABLE_ID_ASC + ENTITY_TABLE_ID_DESC + POLICIES_ASC + POLICIES_DESC + PROVISIONS_ASC + PROVISIONS_DESC + DEFAULT_PERMISSIONS_ASC + DEFAULT_PERMISSIONS_DESC +} + +"""A connection to a list of `PlansModule` values.""" +type PlansModuleConnection { + """A list of `PlansModule` objects.""" + nodes: [PlansModule]! + + """ + A list of edges which contains the `PlansModule` and cursor to aid in pagination. + """ + edges: [PlansModuleEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `PlansModule` you could get from the connection.""" + totalCount: Int! +} + +type PlansModule { + id: UUID! + databaseId: UUID! + schemaId: UUID! + privateSchemaId: UUID! + publicSchemaName: String + privateSchemaName: String + plansTableId: UUID! + plansTableName: String! + planLimitsTableId: UUID! + planLimitsTableName: String! + planPricingTableId: UUID + planOverridesTableId: UUID + planMeterLimitsTableId: UUID + planCapsTableId: UUID + applyPlanFunction: String! + applyPlanAggregateFunction: String! + applyBillingPlanFunction: String + applyPlanCapsFunction: String + prefix: String + apiName: String + privateApiName: String +} + +"""A `PlansModule` edge in the connection.""" +type PlansModuleEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `PlansModule` at the end of the edge.""" + node: PlansModule +} + +""" +A filter to be used against `PlansModule` object types. All fields are combined with a logical ‘and.’ +""" +input PlansModuleFilter { """Filter by the object’s `id` field.""" id: UUIDFilter @@ -8804,119 +8812,111 @@ enum PlansModuleOrderBy { PRIVATE_API_NAME_DESC } -"""A connection to a list of `BillingProviderModule` values.""" -type BillingProviderModuleConnection { - """A list of `BillingProviderModule` objects.""" - nodes: [BillingProviderModule]! +"""A connection to a list of `ComputeLogModule` values.""" +type ComputeLogModuleConnection { + """A list of `ComputeLogModule` objects.""" + nodes: [ComputeLogModule]! """ - A list of edges which contains the `BillingProviderModule` and cursor to aid in pagination. + A list of edges which contains the `ComputeLogModule` and cursor to aid in pagination. """ - edges: [BillingProviderModuleEdge]! + edges: [ComputeLogModuleEdge]! """Information to aid in pagination.""" pageInfo: PageInfo! """ - The count of *all* `BillingProviderModule` you could get from the connection. + The count of *all* `ComputeLogModule` you could get from the connection. """ totalCount: Int! } -type BillingProviderModule { +type ComputeLogModule { id: UUID! databaseId: UUID! + entityField: String schemaId: UUID! privateSchemaId: UUID! - provider: String! - productsTableId: UUID - pricesTableId: UUID - subscriptionsTableId: UUID - billingCustomersTableId: UUID! - billingCustomersTableName: String! - billingProductsTableId: UUID! - billingProductsTableName: String! - billingPricesTableId: UUID! - billingPricesTableName: String! - billingSubscriptionsTableId: UUID! - billingSubscriptionsTableName: String! - billingWebhookEventsTableId: UUID! - billingWebhookEventsTableName: String! - processBillingEventFunction: String! - prefix: String + publicSchemaName: String + privateSchemaName: String + computeLogTableId: UUID! + computeLogTableName: String! + usageDailyTableId: UUID! + usageDailyTableName: String! + interval: String! + retention: String! + premake: Int! + scope: String! + actorFkTableId: UUID + entityFkTableId: UUID + prefix: String! apiName: String privateApiName: String } -"""A `BillingProviderModule` edge in the connection.""" -type BillingProviderModuleEdge { +"""A `ComputeLogModule` edge in the connection.""" +type ComputeLogModuleEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `BillingProviderModule` at the end of the edge.""" - node: BillingProviderModule + """The `ComputeLogModule` at the end of the edge.""" + node: ComputeLogModule } """ -A filter to be used against `BillingProviderModule` 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 BillingProviderModuleFilter { +input ComputeLogModuleFilter { """Filter by the object’s `id` field.""" id: UUIDFilter """Filter by the object’s `databaseId` field.""" databaseId: UUIDFilter + """Filter by the object’s `entityField` field.""" + entityField: StringFilter + """Filter by the object’s `schemaId` field.""" schemaId: UUIDFilter """Filter by the object’s `privateSchemaId` field.""" privateSchemaId: UUIDFilter - """Filter by the object’s `provider` field.""" - provider: StringFilter - - """Filter by the object’s `productsTableId` field.""" - productsTableId: UUIDFilter + """Filter by the object’s `publicSchemaName` field.""" + publicSchemaName: StringFilter - """Filter by the object’s `pricesTableId` field.""" - pricesTableId: UUIDFilter + """Filter by the object’s `privateSchemaName` field.""" + privateSchemaName: StringFilter - """Filter by the object’s `subscriptionsTableId` field.""" - subscriptionsTableId: UUIDFilter + """Filter by the object’s `computeLogTableId` field.""" + computeLogTableId: UUIDFilter - """Filter by the object’s `billingCustomersTableId` field.""" - billingCustomersTableId: UUIDFilter + """Filter by the object’s `computeLogTableName` field.""" + computeLogTableName: StringFilter - """Filter by the object’s `billingCustomersTableName` field.""" - billingCustomersTableName: StringFilter + """Filter by the object’s `usageDailyTableId` field.""" + usageDailyTableId: UUIDFilter - """Filter by the object’s `billingProductsTableId` field.""" - billingProductsTableId: UUIDFilter + """Filter by the object’s `usageDailyTableName` field.""" + usageDailyTableName: StringFilter - """Filter by the object’s `billingProductsTableName` field.""" - billingProductsTableName: StringFilter + """Filter by the object’s `interval` field.""" + interval: StringFilter - """Filter by the object’s `billingPricesTableId` field.""" - billingPricesTableId: UUIDFilter + """Filter by the object’s `retention` field.""" + retention: StringFilter - """Filter by the object’s `billingPricesTableName` field.""" - billingPricesTableName: StringFilter - - """Filter by the object’s `billingSubscriptionsTableId` field.""" - billingSubscriptionsTableId: UUIDFilter - - """Filter by the object’s `billingSubscriptionsTableName` field.""" - billingSubscriptionsTableName: StringFilter + """Filter by the object’s `premake` field.""" + premake: IntFilter - """Filter by the object’s `billingWebhookEventsTableId` field.""" - billingWebhookEventsTableId: UUIDFilter + """Filter by the object’s `scope` field.""" + scope: StringFilter - """Filter by the object’s `billingWebhookEventsTableName` field.""" - billingWebhookEventsTableName: StringFilter + """Filter by the object’s `actorFkTableId` field.""" + actorFkTableId: UUIDFilter - """Filter by the object’s `processBillingEventFunction` field.""" - processBillingEventFunction: StringFilter + """Filter by the object’s `entityFkTableId` field.""" + entityFkTableId: UUIDFilter """Filter by the object’s `prefix` field.""" prefix: StringFilter @@ -8928,17 +8928,17 @@ input BillingProviderModuleFilter { privateApiName: StringFilter """Checks for all expressions in this list.""" - and: [BillingProviderModuleFilter!] + and: [ComputeLogModuleFilter!] """Checks for any expressions in this list.""" - or: [BillingProviderModuleFilter!] + or: [ComputeLogModuleFilter!] """Negates the expression.""" - not: BillingProviderModuleFilter + not: ComputeLogModuleFilter } -"""Methods to use when ordering `BillingProviderModule`.""" -enum BillingProviderModuleOrderBy { +"""Methods to use when ordering `ComputeLogModule`.""" +enum ComputeLogModuleOrderBy { NATURAL PRIMARY_KEY_ASC PRIMARY_KEY_DESC @@ -8946,40 +8946,36 @@ enum BillingProviderModuleOrderBy { ID_DESC DATABASE_ID_ASC DATABASE_ID_DESC + ENTITY_FIELD_ASC + ENTITY_FIELD_DESC SCHEMA_ID_ASC SCHEMA_ID_DESC PRIVATE_SCHEMA_ID_ASC PRIVATE_SCHEMA_ID_DESC - PROVIDER_ASC - PROVIDER_DESC - PRODUCTS_TABLE_ID_ASC - PRODUCTS_TABLE_ID_DESC - PRICES_TABLE_ID_ASC - PRICES_TABLE_ID_DESC - SUBSCRIPTIONS_TABLE_ID_ASC - SUBSCRIPTIONS_TABLE_ID_DESC - BILLING_CUSTOMERS_TABLE_ID_ASC - BILLING_CUSTOMERS_TABLE_ID_DESC - BILLING_CUSTOMERS_TABLE_NAME_ASC - BILLING_CUSTOMERS_TABLE_NAME_DESC - BILLING_PRODUCTS_TABLE_ID_ASC - BILLING_PRODUCTS_TABLE_ID_DESC - BILLING_PRODUCTS_TABLE_NAME_ASC - BILLING_PRODUCTS_TABLE_NAME_DESC - BILLING_PRICES_TABLE_ID_ASC - BILLING_PRICES_TABLE_ID_DESC - BILLING_PRICES_TABLE_NAME_ASC - BILLING_PRICES_TABLE_NAME_DESC - BILLING_SUBSCRIPTIONS_TABLE_ID_ASC - BILLING_SUBSCRIPTIONS_TABLE_ID_DESC - BILLING_SUBSCRIPTIONS_TABLE_NAME_ASC - BILLING_SUBSCRIPTIONS_TABLE_NAME_DESC - BILLING_WEBHOOK_EVENTS_TABLE_ID_ASC - BILLING_WEBHOOK_EVENTS_TABLE_ID_DESC - BILLING_WEBHOOK_EVENTS_TABLE_NAME_ASC - BILLING_WEBHOOK_EVENTS_TABLE_NAME_DESC - PROCESS_BILLING_EVENT_FUNCTION_ASC - PROCESS_BILLING_EVENT_FUNCTION_DESC + PUBLIC_SCHEMA_NAME_ASC + PUBLIC_SCHEMA_NAME_DESC + PRIVATE_SCHEMA_NAME_ASC + PRIVATE_SCHEMA_NAME_DESC + COMPUTE_LOG_TABLE_ID_ASC + COMPUTE_LOG_TABLE_ID_DESC + COMPUTE_LOG_TABLE_NAME_ASC + COMPUTE_LOG_TABLE_NAME_DESC + USAGE_DAILY_TABLE_ID_ASC + USAGE_DAILY_TABLE_ID_DESC + USAGE_DAILY_TABLE_NAME_ASC + USAGE_DAILY_TABLE_NAME_DESC + INTERVAL_ASC + INTERVAL_DESC + RETENTION_ASC + RETENTION_DESC + PREMAKE_ASC + PREMAKE_DESC + SCOPE_ASC + SCOPE_DESC + ACTOR_FK_TABLE_ID_ASC + ACTOR_FK_TABLE_ID_DESC + ENTITY_FK_TABLE_ID_ASC + ENTITY_FK_TABLE_ID_DESC PREFIX_ASC PREFIX_DESC API_NAME_ASC @@ -8988,67 +8984,70 @@ enum BillingProviderModuleOrderBy { PRIVATE_API_NAME_DESC } -"""A connection to a list of `DbUsageModule` values.""" -type DbUsageModuleConnection { - """A list of `DbUsageModule` objects.""" - nodes: [DbUsageModule]! +"""A connection to a list of `InferenceLogModule` values.""" +type InferenceLogModuleConnection { + """A list of `InferenceLogModule` objects.""" + nodes: [InferenceLogModule]! """ - A list of edges which contains the `DbUsageModule` and cursor to aid in pagination. + A list of edges which contains the `InferenceLogModule` and cursor to aid in pagination. """ - edges: [DbUsageModuleEdge]! + edges: [InferenceLogModuleEdge]! """Information to aid in pagination.""" pageInfo: PageInfo! - """The count of *all* `DbUsageModule` you could get from the connection.""" + """ + The count of *all* `InferenceLogModule` you could get from the connection. + """ totalCount: Int! } -type DbUsageModule { +type InferenceLogModule { id: UUID! databaseId: UUID! + entityField: String schemaId: UUID! privateSchemaId: UUID! publicSchemaName: String privateSchemaName: String - tableStatsLogTableId: UUID! - tableStatsLogTableName: String! - tableStatsDailyTableId: UUID! - tableStatsDailyTableName: String! - queryStatsLogTableId: UUID! - queryStatsLogTableName: String! - queryStatsDailyTableId: UUID! - queryStatsDailyTableName: String! + inferenceLogTableId: UUID! + inferenceLogTableName: String! + usageDailyTableId: UUID! + usageDailyTableName: String! interval: String! retention: String! premake: Int! scope: String! + actorFkTableId: UUID + entityFkTableId: UUID prefix: String! - defaultPermissions: [String] apiName: String privateApiName: String } -"""A `DbUsageModule` edge in the connection.""" -type DbUsageModuleEdge { +"""A `InferenceLogModule` edge in the connection.""" +type InferenceLogModuleEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `DbUsageModule` at the end of the edge.""" - node: DbUsageModule + """The `InferenceLogModule` at the end of the edge.""" + node: InferenceLogModule } """ -A filter to be used against `DbUsageModule` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `InferenceLogModule` object types. All fields are combined with a logical ‘and.’ """ -input DbUsageModuleFilter { +input InferenceLogModuleFilter { """Filter by the object’s `id` field.""" id: UUIDFilter """Filter by the object’s `databaseId` field.""" databaseId: UUIDFilter + """Filter by the object’s `entityField` field.""" + entityField: StringFilter + """Filter by the object’s `schemaId` field.""" schemaId: UUIDFilter @@ -9061,29 +9060,17 @@ input DbUsageModuleFilter { """Filter by the object’s `privateSchemaName` field.""" privateSchemaName: StringFilter - """Filter by the object’s `tableStatsLogTableId` field.""" - tableStatsLogTableId: UUIDFilter - - """Filter by the object’s `tableStatsLogTableName` field.""" - tableStatsLogTableName: StringFilter - - """Filter by the object’s `tableStatsDailyTableId` field.""" - tableStatsDailyTableId: UUIDFilter - - """Filter by the object’s `tableStatsDailyTableName` field.""" - tableStatsDailyTableName: StringFilter - - """Filter by the object’s `queryStatsLogTableId` field.""" - queryStatsLogTableId: UUIDFilter + """Filter by the object’s `inferenceLogTableId` field.""" + inferenceLogTableId: UUIDFilter - """Filter by the object’s `queryStatsLogTableName` field.""" - queryStatsLogTableName: StringFilter + """Filter by the object’s `inferenceLogTableName` field.""" + inferenceLogTableName: StringFilter - """Filter by the object’s `queryStatsDailyTableId` field.""" - queryStatsDailyTableId: UUIDFilter + """Filter by the object’s `usageDailyTableId` field.""" + usageDailyTableId: UUIDFilter - """Filter by the object’s `queryStatsDailyTableName` field.""" - queryStatsDailyTableName: StringFilter + """Filter by the object’s `usageDailyTableName` field.""" + usageDailyTableName: StringFilter """Filter by the object’s `interval` field.""" interval: StringFilter @@ -9097,12 +9084,15 @@ input DbUsageModuleFilter { """Filter by the object’s `scope` field.""" scope: StringFilter + """Filter by the object’s `actorFkTableId` field.""" + actorFkTableId: UUIDFilter + + """Filter by the object’s `entityFkTableId` field.""" + entityFkTableId: UUIDFilter + """Filter by the object’s `prefix` field.""" prefix: StringFilter - """Filter by the object’s `defaultPermissions` field.""" - defaultPermissions: StringListFilter - """Filter by the object’s `apiName` field.""" apiName: StringFilter @@ -9110,17 +9100,17 @@ input DbUsageModuleFilter { privateApiName: StringFilter """Checks for all expressions in this list.""" - and: [DbUsageModuleFilter!] + and: [InferenceLogModuleFilter!] """Checks for any expressions in this list.""" - or: [DbUsageModuleFilter!] + or: [InferenceLogModuleFilter!] """Negates the expression.""" - not: DbUsageModuleFilter + not: InferenceLogModuleFilter } -"""Methods to use when ordering `DbUsageModule`.""" -enum DbUsageModuleOrderBy { +"""Methods to use when ordering `InferenceLogModule`.""" +enum InferenceLogModuleOrderBy { NATURAL PRIMARY_KEY_ASC PRIMARY_KEY_DESC @@ -9128,6 +9118,8 @@ enum DbUsageModuleOrderBy { ID_DESC DATABASE_ID_ASC DATABASE_ID_DESC + ENTITY_FIELD_ASC + ENTITY_FIELD_DESC SCHEMA_ID_ASC SCHEMA_ID_DESC PRIVATE_SCHEMA_ID_ASC @@ -9136,22 +9128,14 @@ enum DbUsageModuleOrderBy { PUBLIC_SCHEMA_NAME_DESC PRIVATE_SCHEMA_NAME_ASC PRIVATE_SCHEMA_NAME_DESC - TABLE_STATS_LOG_TABLE_ID_ASC - TABLE_STATS_LOG_TABLE_ID_DESC - TABLE_STATS_LOG_TABLE_NAME_ASC - TABLE_STATS_LOG_TABLE_NAME_DESC - TABLE_STATS_DAILY_TABLE_ID_ASC - TABLE_STATS_DAILY_TABLE_ID_DESC - TABLE_STATS_DAILY_TABLE_NAME_ASC - TABLE_STATS_DAILY_TABLE_NAME_DESC - QUERY_STATS_LOG_TABLE_ID_ASC - QUERY_STATS_LOG_TABLE_ID_DESC - QUERY_STATS_LOG_TABLE_NAME_ASC - QUERY_STATS_LOG_TABLE_NAME_DESC - QUERY_STATS_DAILY_TABLE_ID_ASC - QUERY_STATS_DAILY_TABLE_ID_DESC - QUERY_STATS_DAILY_TABLE_NAME_ASC - QUERY_STATS_DAILY_TABLE_NAME_DESC + INFERENCE_LOG_TABLE_ID_ASC + INFERENCE_LOG_TABLE_ID_DESC + INFERENCE_LOG_TABLE_NAME_ASC + INFERENCE_LOG_TABLE_NAME_DESC + USAGE_DAILY_TABLE_ID_ASC + USAGE_DAILY_TABLE_ID_DESC + USAGE_DAILY_TABLE_NAME_ASC + USAGE_DAILY_TABLE_NAME_DESC INTERVAL_ASC INTERVAL_DESC RETENTION_ASC @@ -9160,84 +9144,82 @@ enum DbUsageModuleOrderBy { PREMAKE_DESC SCOPE_ASC SCOPE_DESC + ACTOR_FK_TABLE_ID_ASC + ACTOR_FK_TABLE_ID_DESC + ENTITY_FK_TABLE_ID_ASC + ENTITY_FK_TABLE_ID_DESC PREFIX_ASC PREFIX_DESC - DEFAULT_PERMISSIONS_ASC - DEFAULT_PERMISSIONS_DESC API_NAME_ASC API_NAME_DESC PRIVATE_API_NAME_ASC PRIVATE_API_NAME_DESC } -"""A connection to a list of `GraphExecutionModule` values.""" -type GraphExecutionModuleConnection { - """A list of `GraphExecutionModule` objects.""" - nodes: [GraphExecutionModule]! +"""A connection to a list of `StorageLogModule` values.""" +type StorageLogModuleConnection { + """A list of `StorageLogModule` objects.""" + nodes: [StorageLogModule]! """ - A list of edges which contains the `GraphExecutionModule` and cursor to aid in pagination. + A list of edges which contains the `StorageLogModule` and cursor to aid in pagination. """ - edges: [GraphExecutionModuleEdge]! + edges: [StorageLogModuleEdge]! """Information to aid in pagination.""" pageInfo: PageInfo! """ - The count of *all* `GraphExecutionModule` you could get from the connection. + The count of *all* `StorageLogModule` you could get from the connection. """ totalCount: Int! } -type GraphExecutionModule { +type StorageLogModule { id: UUID! databaseId: UUID! + entityField: String schemaId: UUID! privateSchemaId: UUID! publicSchemaName: String privateSchemaName: String - graphModuleId: UUID! + storageLogTableId: UUID! + storageLogTableName: String! + usageDailyTableId: UUID! + usageDailyTableName: String! + interval: String! + retention: String! + premake: Int! scope: String! + actorFkTableId: UUID + entityFkTableId: UUID prefix: String! - executionsTableId: UUID! - outputsTableId: UUID! - nodeStatesTableId: UUID! - executionsTableName: String! - outputsTableName: String! - nodeStatesTableName: String! apiName: String privateApiName: String - entityTableId: UUID - policies: JSON - provisions: JSON - defaultPermissions: [String] - createdAt: Datetime! - - """ - Reads a single `GraphModule` that is related to this `GraphExecutionModule`. - """ - graphModule: GraphModule } -"""A `GraphExecutionModule` edge in the connection.""" -type GraphExecutionModuleEdge { +"""A `StorageLogModule` edge in the connection.""" +type StorageLogModuleEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `GraphExecutionModule` at the end of the edge.""" - node: GraphExecutionModule + """The `StorageLogModule` at the end of the edge.""" + node: StorageLogModule } """ -A filter to be used against `GraphExecutionModule` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `StorageLogModule` object types. All fields are combined with a logical ‘and.’ """ -input GraphExecutionModuleFilter { +input StorageLogModuleFilter { """Filter by the object’s `id` field.""" id: UUIDFilter """Filter by the object’s `databaseId` field.""" databaseId: UUIDFilter + """Filter by the object’s `entityField` field.""" + entityField: StringFilter + """Filter by the object’s `schemaId` field.""" schemaId: UUIDFilter @@ -9250,32 +9232,38 @@ input GraphExecutionModuleFilter { """Filter by the object’s `privateSchemaName` field.""" privateSchemaName: StringFilter - """Filter by the object’s `graphModuleId` field.""" - graphModuleId: UUIDFilter + """Filter by the object’s `storageLogTableId` field.""" + storageLogTableId: UUIDFilter - """Filter by the object’s `scope` field.""" - scope: StringFilter + """Filter by the object’s `storageLogTableName` field.""" + storageLogTableName: StringFilter - """Filter by the object’s `prefix` field.""" - prefix: StringFilter + """Filter by the object’s `usageDailyTableId` field.""" + usageDailyTableId: UUIDFilter - """Filter by the object’s `executionsTableId` field.""" - executionsTableId: UUIDFilter + """Filter by the object’s `usageDailyTableName` field.""" + usageDailyTableName: StringFilter - """Filter by the object’s `outputsTableId` field.""" - outputsTableId: UUIDFilter + """Filter by the object’s `interval` field.""" + interval: StringFilter - """Filter by the object’s `nodeStatesTableId` field.""" - nodeStatesTableId: UUIDFilter + """Filter by the object’s `retention` field.""" + retention: StringFilter - """Filter by the object’s `executionsTableName` field.""" - executionsTableName: StringFilter + """Filter by the object’s `premake` field.""" + premake: IntFilter - """Filter by the object’s `outputsTableName` field.""" - outputsTableName: StringFilter + """Filter by the object’s `scope` field.""" + scope: StringFilter - """Filter by the object’s `nodeStatesTableName` field.""" - nodeStatesTableName: StringFilter + """Filter by the object’s `actorFkTableId` field.""" + actorFkTableId: UUIDFilter + + """Filter by the object’s `entityFkTableId` field.""" + entityFkTableId: UUIDFilter + + """Filter by the object’s `prefix` field.""" + prefix: StringFilter """Filter by the object’s `apiName` field.""" apiName: StringFilter @@ -9283,36 +9271,18 @@ input GraphExecutionModuleFilter { """Filter by the object’s `privateApiName` field.""" privateApiName: StringFilter - """Filter by the object’s `entityTableId` field.""" - entityTableId: UUIDFilter - - """Filter by the object’s `policies` field.""" - policies: JSONFilter - - """Filter by the object’s `provisions` field.""" - provisions: JSONFilter - - """Filter by the object’s `defaultPermissions` field.""" - defaultPermissions: StringListFilter - - """Filter by the object’s `createdAt` field.""" - createdAt: DatetimeFilter - """Checks for all expressions in this list.""" - and: [GraphExecutionModuleFilter!] + and: [StorageLogModuleFilter!] """Checks for any expressions in this list.""" - or: [GraphExecutionModuleFilter!] + or: [StorageLogModuleFilter!] """Negates the expression.""" - not: GraphExecutionModuleFilter - - """Filter by the object’s `graphModule` relation.""" - graphModule: GraphModuleFilter + not: StorageLogModuleFilter } -"""Methods to use when ordering `GraphExecutionModule`.""" -enum GraphExecutionModuleOrderBy { +"""Methods to use when ordering `StorageLogModule`.""" +enum StorageLogModuleOrderBy { NATURAL PRIMARY_KEY_ASC PRIMARY_KEY_DESC @@ -9320,6 +9290,8 @@ enum GraphExecutionModuleOrderBy { ID_DESC DATABASE_ID_ASC DATABASE_ID_DESC + ENTITY_FIELD_ASC + ENTITY_FIELD_DESC SCHEMA_ID_ASC SCHEMA_ID_DESC PRIVATE_SCHEMA_ID_ASC @@ -9328,175 +9300,161 @@ enum GraphExecutionModuleOrderBy { PUBLIC_SCHEMA_NAME_DESC PRIVATE_SCHEMA_NAME_ASC PRIVATE_SCHEMA_NAME_DESC - GRAPH_MODULE_ID_ASC - GRAPH_MODULE_ID_DESC + STORAGE_LOG_TABLE_ID_ASC + STORAGE_LOG_TABLE_ID_DESC + STORAGE_LOG_TABLE_NAME_ASC + STORAGE_LOG_TABLE_NAME_DESC + USAGE_DAILY_TABLE_ID_ASC + USAGE_DAILY_TABLE_ID_DESC + USAGE_DAILY_TABLE_NAME_ASC + USAGE_DAILY_TABLE_NAME_DESC + INTERVAL_ASC + INTERVAL_DESC + RETENTION_ASC + RETENTION_DESC + PREMAKE_ASC + PREMAKE_DESC SCOPE_ASC SCOPE_DESC + ACTOR_FK_TABLE_ID_ASC + ACTOR_FK_TABLE_ID_DESC + ENTITY_FK_TABLE_ID_ASC + ENTITY_FK_TABLE_ID_DESC PREFIX_ASC PREFIX_DESC - EXECUTIONS_TABLE_ID_ASC - EXECUTIONS_TABLE_ID_DESC - OUTPUTS_TABLE_ID_ASC - OUTPUTS_TABLE_ID_DESC - NODE_STATES_TABLE_ID_ASC - NODE_STATES_TABLE_ID_DESC - EXECUTIONS_TABLE_NAME_ASC - EXECUTIONS_TABLE_NAME_DESC - OUTPUTS_TABLE_NAME_ASC - OUTPUTS_TABLE_NAME_DESC - NODE_STATES_TABLE_NAME_ASC - NODE_STATES_TABLE_NAME_DESC API_NAME_ASC API_NAME_DESC PRIVATE_API_NAME_ASC PRIVATE_API_NAME_DESC - ENTITY_TABLE_ID_ASC - ENTITY_TABLE_ID_DESC - POLICIES_ASC - POLICIES_DESC - PROVISIONS_ASC - PROVISIONS_DESC - DEFAULT_PERMISSIONS_ASC - DEFAULT_PERMISSIONS_DESC - CREATED_AT_ASC - CREATED_AT_DESC } -"""A connection to a list of `HierarchyModule` values.""" -type HierarchyModuleConnection { - """A list of `HierarchyModule` objects.""" - nodes: [HierarchyModule]! +"""A connection to a list of `TransferLogModule` values.""" +type TransferLogModuleConnection { + """A list of `TransferLogModule` objects.""" + nodes: [TransferLogModule]! """ - A list of edges which contains the `HierarchyModule` and cursor to aid in pagination. + A list of edges which contains the `TransferLogModule` and cursor to aid in pagination. """ - edges: [HierarchyModuleEdge]! + edges: [TransferLogModuleEdge]! """Information to aid in pagination.""" pageInfo: PageInfo! """ - The count of *all* `HierarchyModule` you could get from the connection. + The count of *all* `TransferLogModule` you could get from the connection. """ totalCount: Int! } -type HierarchyModule { +type TransferLogModule { id: UUID! databaseId: UUID! + entityField: String schemaId: UUID! privateSchemaId: UUID! - chartEdgesTableId: UUID! - chartEdgesTableName: String! - hierarchySprtTableId: UUID! - hierarchySprtTableName: String! - chartEdgeGrantsTableId: UUID! - chartEdgeGrantsTableName: String! - entityTableId: UUID! - usersTableId: UUID! + publicSchemaName: String + privateSchemaName: String + transferLogTableId: UUID! + transferLogTableName: String! + usageDailyTableId: UUID! + usageDailyTableName: String! + interval: String! + retention: String! + premake: Int! scope: String! + actorFkTableId: UUID + entityFkTableId: UUID prefix: String! - privateSchemaName: String! - sprtTableName: String! - rebuildHierarchyFunction: String! - getSubordinatesFunction: String! - getManagersFunction: String! - isManagerOfFunction: String! - defaultPermissions: [String] - createdAt: Datetime! + apiName: String + privateApiName: String } -"""A `HierarchyModule` edge in the connection.""" -type HierarchyModuleEdge { +"""A `TransferLogModule` edge in the connection.""" +type TransferLogModuleEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `HierarchyModule` at the end of the edge.""" - node: HierarchyModule + """The `TransferLogModule` at the end of the edge.""" + node: TransferLogModule } """ -A filter to be used against `HierarchyModule` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `TransferLogModule` object types. All fields are combined with a logical ‘and.’ """ -input HierarchyModuleFilter { +input TransferLogModuleFilter { """Filter by the object’s `id` field.""" id: UUIDFilter """Filter by the object’s `databaseId` field.""" databaseId: UUIDFilter + """Filter by the object’s `entityField` field.""" + entityField: StringFilter + """Filter by the object’s `schemaId` field.""" schemaId: UUIDFilter """Filter by the object’s `privateSchemaId` field.""" privateSchemaId: UUIDFilter - """Filter by the object’s `chartEdgesTableId` field.""" - chartEdgesTableId: UUIDFilter + """Filter by the object’s `publicSchemaName` field.""" + publicSchemaName: StringFilter - """Filter by the object’s `chartEdgesTableName` field.""" - chartEdgesTableName: StringFilter + """Filter by the object’s `privateSchemaName` field.""" + privateSchemaName: StringFilter - """Filter by the object’s `hierarchySprtTableId` field.""" - hierarchySprtTableId: UUIDFilter + """Filter by the object’s `transferLogTableId` field.""" + transferLogTableId: UUIDFilter - """Filter by the object’s `hierarchySprtTableName` field.""" - hierarchySprtTableName: StringFilter + """Filter by the object’s `transferLogTableName` field.""" + transferLogTableName: StringFilter - """Filter by the object’s `chartEdgeGrantsTableId` field.""" - chartEdgeGrantsTableId: UUIDFilter + """Filter by the object’s `usageDailyTableId` field.""" + usageDailyTableId: UUIDFilter - """Filter by the object’s `chartEdgeGrantsTableName` field.""" - chartEdgeGrantsTableName: StringFilter + """Filter by the object’s `usageDailyTableName` field.""" + usageDailyTableName: StringFilter - """Filter by the object’s `entityTableId` field.""" - entityTableId: UUIDFilter + """Filter by the object’s `interval` field.""" + interval: StringFilter - """Filter by the object’s `usersTableId` field.""" - usersTableId: UUIDFilter + """Filter by the object’s `retention` field.""" + retention: StringFilter + + """Filter by the object’s `premake` field.""" + premake: IntFilter """Filter by the object’s `scope` field.""" scope: StringFilter - """Filter by the object’s `prefix` field.""" - prefix: StringFilter - - """Filter by the object’s `privateSchemaName` field.""" - privateSchemaName: StringFilter - - """Filter by the object’s `sprtTableName` field.""" - sprtTableName: StringFilter - - """Filter by the object’s `rebuildHierarchyFunction` field.""" - rebuildHierarchyFunction: StringFilter - - """Filter by the object’s `getSubordinatesFunction` field.""" - getSubordinatesFunction: StringFilter + """Filter by the object’s `actorFkTableId` field.""" + actorFkTableId: UUIDFilter - """Filter by the object’s `getManagersFunction` field.""" - getManagersFunction: StringFilter + """Filter by the object’s `entityFkTableId` field.""" + entityFkTableId: UUIDFilter - """Filter by the object’s `isManagerOfFunction` field.""" - isManagerOfFunction: StringFilter + """Filter by the object’s `prefix` field.""" + prefix: StringFilter - """Filter by the object’s `defaultPermissions` field.""" - defaultPermissions: StringListFilter + """Filter by the object’s `apiName` field.""" + apiName: StringFilter - """Filter by the object’s `createdAt` field.""" - createdAt: DatetimeFilter + """Filter by the object’s `privateApiName` field.""" + privateApiName: StringFilter """Checks for all expressions in this list.""" - and: [HierarchyModuleFilter!] + and: [TransferLogModuleFilter!] """Checks for any expressions in this list.""" - or: [HierarchyModuleFilter!] + or: [TransferLogModuleFilter!] """Negates the expression.""" - not: HierarchyModuleFilter + not: TransferLogModuleFilter } -"""Methods to use when ordering `HierarchyModule`.""" -enum HierarchyModuleOrderBy { +"""Methods to use when ordering `TransferLogModule`.""" +enum TransferLogModuleOrderBy { NATURAL PRIMARY_KEY_ASC PRIMARY_KEY_DESC @@ -9504,104 +9462,101 @@ enum HierarchyModuleOrderBy { ID_DESC DATABASE_ID_ASC DATABASE_ID_DESC + ENTITY_FIELD_ASC + ENTITY_FIELD_DESC SCHEMA_ID_ASC SCHEMA_ID_DESC PRIVATE_SCHEMA_ID_ASC PRIVATE_SCHEMA_ID_DESC - CHART_EDGES_TABLE_ID_ASC - CHART_EDGES_TABLE_ID_DESC - CHART_EDGES_TABLE_NAME_ASC - CHART_EDGES_TABLE_NAME_DESC - HIERARCHY_SPRT_TABLE_ID_ASC - HIERARCHY_SPRT_TABLE_ID_DESC - HIERARCHY_SPRT_TABLE_NAME_ASC - HIERARCHY_SPRT_TABLE_NAME_DESC - CHART_EDGE_GRANTS_TABLE_ID_ASC - CHART_EDGE_GRANTS_TABLE_ID_DESC - CHART_EDGE_GRANTS_TABLE_NAME_ASC - CHART_EDGE_GRANTS_TABLE_NAME_DESC - ENTITY_TABLE_ID_ASC - ENTITY_TABLE_ID_DESC - USERS_TABLE_ID_ASC - USERS_TABLE_ID_DESC + PUBLIC_SCHEMA_NAME_ASC + PUBLIC_SCHEMA_NAME_DESC + PRIVATE_SCHEMA_NAME_ASC + PRIVATE_SCHEMA_NAME_DESC + TRANSFER_LOG_TABLE_ID_ASC + TRANSFER_LOG_TABLE_ID_DESC + TRANSFER_LOG_TABLE_NAME_ASC + TRANSFER_LOG_TABLE_NAME_DESC + USAGE_DAILY_TABLE_ID_ASC + USAGE_DAILY_TABLE_ID_DESC + USAGE_DAILY_TABLE_NAME_ASC + USAGE_DAILY_TABLE_NAME_DESC + INTERVAL_ASC + INTERVAL_DESC + RETENTION_ASC + RETENTION_DESC + PREMAKE_ASC + PREMAKE_DESC SCOPE_ASC SCOPE_DESC + ACTOR_FK_TABLE_ID_ASC + ACTOR_FK_TABLE_ID_DESC + ENTITY_FK_TABLE_ID_ASC + ENTITY_FK_TABLE_ID_DESC PREFIX_ASC PREFIX_DESC - PRIVATE_SCHEMA_NAME_ASC - PRIVATE_SCHEMA_NAME_DESC - SPRT_TABLE_NAME_ASC - SPRT_TABLE_NAME_DESC - REBUILD_HIERARCHY_FUNCTION_ASC - REBUILD_HIERARCHY_FUNCTION_DESC - GET_SUBORDINATES_FUNCTION_ASC - GET_SUBORDINATES_FUNCTION_DESC - GET_MANAGERS_FUNCTION_ASC - GET_MANAGERS_FUNCTION_DESC - IS_MANAGER_OF_FUNCTION_ASC - IS_MANAGER_OF_FUNCTION_DESC - DEFAULT_PERMISSIONS_ASC - DEFAULT_PERMISSIONS_DESC - CREATED_AT_ASC - CREATED_AT_DESC + API_NAME_ASC + API_NAME_DESC + PRIVATE_API_NAME_ASC + PRIVATE_API_NAME_DESC } -"""A connection to a list of `PermissionsModule` values.""" -type PermissionsModuleConnection { - """A list of `PermissionsModule` objects.""" - nodes: [PermissionsModule]! +"""A connection to a list of `BillingProviderModule` values.""" +type BillingProviderModuleConnection { + """A list of `BillingProviderModule` objects.""" + nodes: [BillingProviderModule]! """ - A list of edges which contains the `PermissionsModule` and cursor to aid in pagination. + A list of edges which contains the `BillingProviderModule` and cursor to aid in pagination. """ - edges: [PermissionsModuleEdge]! + edges: [BillingProviderModuleEdge]! """Information to aid in pagination.""" pageInfo: PageInfo! """ - The count of *all* `PermissionsModule` you could get from the connection. + The count of *all* `BillingProviderModule` you could get from the connection. """ totalCount: Int! } -type PermissionsModule { +type BillingProviderModule { id: UUID! databaseId: UUID! schemaId: UUID! privateSchemaId: UUID! - publicSchemaName: String - privateSchemaName: String - tableId: UUID! - tableName: String! - defaultTableId: UUID! - defaultTableName: String! - bitlen: Int! - scope: String! - prefix: String! - entityTableId: UUID - actorTableId: UUID! - getPaddedMask: String! - getMask: String! - getByMask: String! - getMaskByName: String! + provider: String! + productsTableId: UUID + pricesTableId: UUID + subscriptionsTableId: UUID + billingCustomersTableId: UUID! + billingCustomersTableName: String! + billingProductsTableId: UUID! + billingProductsTableName: String! + billingPricesTableId: UUID! + billingPricesTableName: String! + billingSubscriptionsTableId: UUID! + billingSubscriptionsTableName: String! + billingWebhookEventsTableId: UUID! + billingWebhookEventsTableName: String! + processBillingEventFunction: String! + prefix: String apiName: String privateApiName: String } -"""A `PermissionsModule` edge in the connection.""" -type PermissionsModuleEdge { +"""A `BillingProviderModule` edge in the connection.""" +type BillingProviderModuleEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `PermissionsModule` at the end of the edge.""" - node: PermissionsModule + """The `BillingProviderModule` at the end of the edge.""" + node: BillingProviderModule } """ -A filter to be used against `PermissionsModule` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `BillingProviderModule` object types. All fields are combined with a logical ‘and.’ """ -input PermissionsModuleFilter { +input BillingProviderModuleFilter { """Filter by the object’s `id` field.""" id: UUIDFilter @@ -9614,50 +9569,53 @@ input PermissionsModuleFilter { """Filter by the object’s `privateSchemaId` field.""" privateSchemaId: UUIDFilter - """Filter by the object’s `publicSchemaName` field.""" - publicSchemaName: StringFilter + """Filter by the object’s `provider` field.""" + provider: StringFilter - """Filter by the object’s `privateSchemaName` field.""" - privateSchemaName: StringFilter + """Filter by the object’s `productsTableId` field.""" + productsTableId: UUIDFilter - """Filter by the object’s `tableId` field.""" - tableId: UUIDFilter + """Filter by the object’s `pricesTableId` field.""" + pricesTableId: UUIDFilter - """Filter by the object’s `tableName` field.""" - tableName: StringFilter + """Filter by the object’s `subscriptionsTableId` field.""" + subscriptionsTableId: UUIDFilter - """Filter by the object’s `defaultTableId` field.""" - defaultTableId: UUIDFilter + """Filter by the object’s `billingCustomersTableId` field.""" + billingCustomersTableId: UUIDFilter - """Filter by the object’s `defaultTableName` field.""" - defaultTableName: StringFilter + """Filter by the object’s `billingCustomersTableName` field.""" + billingCustomersTableName: StringFilter - """Filter by the object’s `bitlen` field.""" - bitlen: IntFilter + """Filter by the object’s `billingProductsTableId` field.""" + billingProductsTableId: UUIDFilter - """Filter by the object’s `scope` field.""" - scope: StringFilter + """Filter by the object’s `billingProductsTableName` field.""" + billingProductsTableName: StringFilter - """Filter by the object’s `prefix` field.""" - prefix: StringFilter + """Filter by the object’s `billingPricesTableId` field.""" + billingPricesTableId: UUIDFilter - """Filter by the object’s `entityTableId` field.""" - entityTableId: UUIDFilter + """Filter by the object’s `billingPricesTableName` field.""" + billingPricesTableName: StringFilter - """Filter by the object’s `actorTableId` field.""" - actorTableId: UUIDFilter + """Filter by the object’s `billingSubscriptionsTableId` field.""" + billingSubscriptionsTableId: UUIDFilter - """Filter by the object’s `getPaddedMask` field.""" - getPaddedMask: StringFilter + """Filter by the object’s `billingSubscriptionsTableName` field.""" + billingSubscriptionsTableName: StringFilter - """Filter by the object’s `getMask` field.""" - getMask: StringFilter + """Filter by the object’s `billingWebhookEventsTableId` field.""" + billingWebhookEventsTableId: UUIDFilter - """Filter by the object’s `getByMask` field.""" - getByMask: StringFilter + """Filter by the object’s `billingWebhookEventsTableName` field.""" + billingWebhookEventsTableName: StringFilter - """Filter by the object’s `getMaskByName` field.""" - getMaskByName: StringFilter + """Filter by the object’s `processBillingEventFunction` field.""" + processBillingEventFunction: StringFilter + + """Filter by the object’s `prefix` field.""" + prefix: StringFilter """Filter by the object’s `apiName` field.""" apiName: StringFilter @@ -9666,17 +9624,17 @@ input PermissionsModuleFilter { privateApiName: StringFilter """Checks for all expressions in this list.""" - and: [PermissionsModuleFilter!] + and: [BillingProviderModuleFilter!] """Checks for any expressions in this list.""" - or: [PermissionsModuleFilter!] + or: [BillingProviderModuleFilter!] """Negates the expression.""" - not: PermissionsModuleFilter + not: BillingProviderModuleFilter } -"""Methods to use when ordering `PermissionsModule`.""" -enum PermissionsModuleOrderBy { +"""Methods to use when ordering `BillingProviderModule`.""" +enum BillingProviderModuleOrderBy { NATURAL PRIMARY_KEY_ASC PRIMARY_KEY_DESC @@ -9688,106 +9646,119 @@ enum PermissionsModuleOrderBy { SCHEMA_ID_DESC PRIVATE_SCHEMA_ID_ASC PRIVATE_SCHEMA_ID_DESC - PUBLIC_SCHEMA_NAME_ASC - PUBLIC_SCHEMA_NAME_DESC - PRIVATE_SCHEMA_NAME_ASC - PRIVATE_SCHEMA_NAME_DESC - TABLE_ID_ASC - TABLE_ID_DESC - TABLE_NAME_ASC - TABLE_NAME_DESC - DEFAULT_TABLE_ID_ASC - DEFAULT_TABLE_ID_DESC - DEFAULT_TABLE_NAME_ASC - DEFAULT_TABLE_NAME_DESC - BITLEN_ASC - BITLEN_DESC - SCOPE_ASC - SCOPE_DESC + PROVIDER_ASC + PROVIDER_DESC + PRODUCTS_TABLE_ID_ASC + PRODUCTS_TABLE_ID_DESC + PRICES_TABLE_ID_ASC + PRICES_TABLE_ID_DESC + SUBSCRIPTIONS_TABLE_ID_ASC + SUBSCRIPTIONS_TABLE_ID_DESC + BILLING_CUSTOMERS_TABLE_ID_ASC + BILLING_CUSTOMERS_TABLE_ID_DESC + BILLING_CUSTOMERS_TABLE_NAME_ASC + BILLING_CUSTOMERS_TABLE_NAME_DESC + BILLING_PRODUCTS_TABLE_ID_ASC + BILLING_PRODUCTS_TABLE_ID_DESC + BILLING_PRODUCTS_TABLE_NAME_ASC + BILLING_PRODUCTS_TABLE_NAME_DESC + BILLING_PRICES_TABLE_ID_ASC + BILLING_PRICES_TABLE_ID_DESC + BILLING_PRICES_TABLE_NAME_ASC + BILLING_PRICES_TABLE_NAME_DESC + BILLING_SUBSCRIPTIONS_TABLE_ID_ASC + BILLING_SUBSCRIPTIONS_TABLE_ID_DESC + BILLING_SUBSCRIPTIONS_TABLE_NAME_ASC + BILLING_SUBSCRIPTIONS_TABLE_NAME_DESC + BILLING_WEBHOOK_EVENTS_TABLE_ID_ASC + BILLING_WEBHOOK_EVENTS_TABLE_ID_DESC + BILLING_WEBHOOK_EVENTS_TABLE_NAME_ASC + BILLING_WEBHOOK_EVENTS_TABLE_NAME_DESC + PROCESS_BILLING_EVENT_FUNCTION_ASC + PROCESS_BILLING_EVENT_FUNCTION_DESC PREFIX_ASC PREFIX_DESC - ENTITY_TABLE_ID_ASC - ENTITY_TABLE_ID_DESC - ACTOR_TABLE_ID_ASC - ACTOR_TABLE_ID_DESC - GET_PADDED_MASK_ASC - GET_PADDED_MASK_DESC - GET_MASK_ASC - GET_MASK_DESC - GET_BY_MASK_ASC - GET_BY_MASK_DESC - GET_MASK_BY_NAME_ASC - GET_MASK_BY_NAME_DESC API_NAME_ASC API_NAME_DESC PRIVATE_API_NAME_ASC PRIVATE_API_NAME_DESC } -"""A connection to a list of `NotificationsModule` values.""" -type NotificationsModuleConnection { - """A list of `NotificationsModule` objects.""" - nodes: [NotificationsModule]! +"""A connection to a list of `FunctionDeploymentModule` values.""" +type FunctionDeploymentModuleConnection { + """A list of `FunctionDeploymentModule` objects.""" + nodes: [FunctionDeploymentModule]! """ - A list of edges which contains the `NotificationsModule` and cursor to aid in pagination. + A list of edges which contains the `FunctionDeploymentModule` and cursor to aid in pagination. """ - edges: [NotificationsModuleEdge]! + edges: [FunctionDeploymentModuleEdge]! """Information to aid in pagination.""" pageInfo: PageInfo! """ - The count of *all* `NotificationsModule` you could get from the connection. + The count of *all* `FunctionDeploymentModule` you could get from the connection. """ totalCount: Int! } -type NotificationsModule { +type FunctionDeploymentModule { id: UUID! databaseId: UUID! + entityField: String schemaId: UUID! privateSchemaId: UUID! publicSchemaName: String privateSchemaName: String - notificationsTableId: UUID! - readStateTableId: UUID! - preferencesTableId: UUID - channelsTableId: UUID - deliveryLogTableId: UUID - suppressionsTableId: UUID - ownerTableId: UUID! - userSettingsTableId: UUID - organizationSettingsTableId: UUID - hasChannels: Boolean! - hasPreferences: Boolean! - hasSettingsExtension: Boolean! - hasDigestMetadata: Boolean! - hasSubscriptions: Boolean! - defaultPermissions: [String] + deploymentsTableId: UUID! + deploymentEventsTableId: UUID! + deploymentsTableName: String! + deploymentEventsTableName: String! apiName: String privateApiName: String + scope: String! + prefix: String! + entityTableId: UUID + functionModuleId: UUID + namespaceModuleId: UUID + policies: JSON + provisions: JSON + defaultPermissions: [String] + + """ + Reads a single `FunctionModule` that is related to this `FunctionDeploymentModule`. + """ + functionModule: FunctionModule + + """ + Reads a single `NamespaceModule` that is related to this `FunctionDeploymentModule`. + """ + namespaceModule: NamespaceModule } -"""A `NotificationsModule` edge in the connection.""" -type NotificationsModuleEdge { +"""A `FunctionDeploymentModule` edge in the connection.""" +type FunctionDeploymentModuleEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `NotificationsModule` at the end of the edge.""" - node: NotificationsModule + """The `FunctionDeploymentModule` at the end of the edge.""" + node: FunctionDeploymentModule } """ -A filter to be used against `NotificationsModule` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `FunctionDeploymentModule` object types. All fields are combined with a logical ‘and.’ """ -input NotificationsModuleFilter { +input FunctionDeploymentModuleFilter { """Filter by the object’s `id` field.""" id: UUIDFilter """Filter by the object’s `databaseId` field.""" databaseId: UUIDFilter + """Filter by the object’s `entityField` field.""" + entityField: StringFilter + """Filter by the object’s `schemaId` field.""" schemaId: UUIDFilter @@ -9800,69 +9771,72 @@ input NotificationsModuleFilter { """Filter by the object’s `privateSchemaName` field.""" privateSchemaName: StringFilter - """Filter by the object’s `notificationsTableId` field.""" - notificationsTableId: UUIDFilter - - """Filter by the object’s `readStateTableId` field.""" - readStateTableId: UUIDFilter + """Filter by the object’s `deploymentsTableId` field.""" + deploymentsTableId: UUIDFilter - """Filter by the object’s `preferencesTableId` field.""" - preferencesTableId: UUIDFilter + """Filter by the object’s `deploymentEventsTableId` field.""" + deploymentEventsTableId: UUIDFilter - """Filter by the object’s `channelsTableId` field.""" - channelsTableId: UUIDFilter + """Filter by the object’s `deploymentsTableName` field.""" + deploymentsTableName: StringFilter - """Filter by the object’s `deliveryLogTableId` field.""" - deliveryLogTableId: UUIDFilter + """Filter by the object’s `deploymentEventsTableName` field.""" + deploymentEventsTableName: StringFilter - """Filter by the object’s `suppressionsTableId` field.""" - suppressionsTableId: UUIDFilter + """Filter by the object’s `apiName` field.""" + apiName: StringFilter - """Filter by the object’s `ownerTableId` field.""" - ownerTableId: UUIDFilter + """Filter by the object’s `privateApiName` field.""" + privateApiName: StringFilter - """Filter by the object’s `userSettingsTableId` field.""" - userSettingsTableId: UUIDFilter + """Filter by the object’s `scope` field.""" + scope: StringFilter - """Filter by the object’s `organizationSettingsTableId` field.""" - organizationSettingsTableId: UUIDFilter + """Filter by the object’s `prefix` field.""" + prefix: StringFilter - """Filter by the object’s `hasChannels` field.""" - hasChannels: BooleanFilter + """Filter by the object’s `entityTableId` field.""" + entityTableId: UUIDFilter - """Filter by the object’s `hasPreferences` field.""" - hasPreferences: BooleanFilter + """Filter by the object’s `functionModuleId` field.""" + functionModuleId: UUIDFilter - """Filter by the object’s `hasSettingsExtension` field.""" - hasSettingsExtension: BooleanFilter + """Filter by the object’s `namespaceModuleId` field.""" + namespaceModuleId: UUIDFilter - """Filter by the object’s `hasDigestMetadata` field.""" - hasDigestMetadata: BooleanFilter + """Filter by the object’s `policies` field.""" + policies: JSONFilter - """Filter by the object’s `hasSubscriptions` field.""" - hasSubscriptions: BooleanFilter + """Filter by the object’s `provisions` field.""" + provisions: JSONFilter """Filter by the object’s `defaultPermissions` field.""" defaultPermissions: StringListFilter - """Filter by the object’s `apiName` field.""" - apiName: StringFilter - - """Filter by the object’s `privateApiName` field.""" - privateApiName: StringFilter - """Checks for all expressions in this list.""" - and: [NotificationsModuleFilter!] + and: [FunctionDeploymentModuleFilter!] """Checks for any expressions in this list.""" - or: [NotificationsModuleFilter!] + or: [FunctionDeploymentModuleFilter!] """Negates the expression.""" - not: NotificationsModuleFilter + not: FunctionDeploymentModuleFilter + + """Filter by the object’s `functionModule` relation.""" + functionModule: FunctionModuleFilter + + """A related `functionModule` exists.""" + functionModuleExists: Boolean + + """Filter by the object’s `namespaceModule` relation.""" + namespaceModule: NamespaceModuleFilter + + """A related `namespaceModule` exists.""" + namespaceModuleExists: Boolean } -"""Methods to use when ordering `NotificationsModule`.""" -enum NotificationsModuleOrderBy { +"""Methods to use when ordering `FunctionDeploymentModule`.""" +enum FunctionDeploymentModuleOrderBy { NATURAL PRIMARY_KEY_ASC PRIMARY_KEY_DESC @@ -9870,6 +9844,8 @@ enum NotificationsModuleOrderBy { ID_DESC DATABASE_ID_ASC DATABASE_ID_DESC + ENTITY_FIELD_ASC + ENTITY_FIELD_DESC SCHEMA_ID_ASC SCHEMA_ID_DESC PRIVATE_SCHEMA_ID_ASC @@ -9878,40 +9854,1150 @@ enum NotificationsModuleOrderBy { PUBLIC_SCHEMA_NAME_DESC PRIVATE_SCHEMA_NAME_ASC PRIVATE_SCHEMA_NAME_DESC - NOTIFICATIONS_TABLE_ID_ASC - NOTIFICATIONS_TABLE_ID_DESC - READ_STATE_TABLE_ID_ASC - READ_STATE_TABLE_ID_DESC - PREFERENCES_TABLE_ID_ASC - PREFERENCES_TABLE_ID_DESC - CHANNELS_TABLE_ID_ASC - CHANNELS_TABLE_ID_DESC - DELIVERY_LOG_TABLE_ID_ASC - DELIVERY_LOG_TABLE_ID_DESC - SUPPRESSIONS_TABLE_ID_ASC - SUPPRESSIONS_TABLE_ID_DESC - OWNER_TABLE_ID_ASC - OWNER_TABLE_ID_DESC - USER_SETTINGS_TABLE_ID_ASC - USER_SETTINGS_TABLE_ID_DESC - ORGANIZATION_SETTINGS_TABLE_ID_ASC - ORGANIZATION_SETTINGS_TABLE_ID_DESC - HAS_CHANNELS_ASC - HAS_CHANNELS_DESC - HAS_PREFERENCES_ASC - HAS_PREFERENCES_DESC - HAS_SETTINGS_EXTENSION_ASC - HAS_SETTINGS_EXTENSION_DESC - HAS_DIGEST_METADATA_ASC - HAS_DIGEST_METADATA_DESC - HAS_SUBSCRIPTIONS_ASC - HAS_SUBSCRIPTIONS_DESC - DEFAULT_PERMISSIONS_ASC - DEFAULT_PERMISSIONS_DESC + DEPLOYMENTS_TABLE_ID_ASC + DEPLOYMENTS_TABLE_ID_DESC + DEPLOYMENT_EVENTS_TABLE_ID_ASC + DEPLOYMENT_EVENTS_TABLE_ID_DESC + DEPLOYMENTS_TABLE_NAME_ASC + DEPLOYMENTS_TABLE_NAME_DESC + DEPLOYMENT_EVENTS_TABLE_NAME_ASC + DEPLOYMENT_EVENTS_TABLE_NAME_DESC API_NAME_ASC API_NAME_DESC PRIVATE_API_NAME_ASC PRIVATE_API_NAME_DESC + SCOPE_ASC + SCOPE_DESC + PREFIX_ASC + PREFIX_DESC + ENTITY_TABLE_ID_ASC + ENTITY_TABLE_ID_DESC + FUNCTION_MODULE_ID_ASC + FUNCTION_MODULE_ID_DESC + NAMESPACE_MODULE_ID_ASC + NAMESPACE_MODULE_ID_DESC + POLICIES_ASC + POLICIES_DESC + PROVISIONS_ASC + PROVISIONS_DESC + DEFAULT_PERMISSIONS_ASC + DEFAULT_PERMISSIONS_DESC +} + +"""A connection to a list of `PermissionsModule` values.""" +type PermissionsModuleConnection { + """A list of `PermissionsModule` objects.""" + nodes: [PermissionsModule]! + + """ + A list of edges which contains the `PermissionsModule` and cursor to aid in pagination. + """ + edges: [PermissionsModuleEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `PermissionsModule` you could get from the connection. + """ + totalCount: Int! +} + +type PermissionsModule { + id: UUID! + databaseId: UUID! + entityField: String + schemaId: UUID! + privateSchemaId: UUID! + publicSchemaName: String + privateSchemaName: String + tableId: UUID! + tableName: String! + defaultTableId: UUID! + defaultTableName: String! + bitlen: Int! + scope: String! + prefix: String! + entityTableId: UUID + actorTableId: UUID! + getPaddedMask: String! + getMask: String! + getByMask: String! + getMaskByName: String! + apiName: String + privateApiName: String +} + +"""A `PermissionsModule` edge in the connection.""" +type PermissionsModuleEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `PermissionsModule` at the end of the edge.""" + node: PermissionsModule +} + +""" +A filter to be used against `PermissionsModule` object types. All fields are combined with a logical ‘and.’ +""" +input PermissionsModuleFilter { + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `databaseId` field.""" + databaseId: UUIDFilter + + """Filter by the object’s `entityField` field.""" + entityField: StringFilter + + """Filter by the object’s `schemaId` field.""" + schemaId: UUIDFilter + + """Filter by the object’s `privateSchemaId` field.""" + privateSchemaId: UUIDFilter + + """Filter by the object’s `publicSchemaName` field.""" + publicSchemaName: StringFilter + + """Filter by the object’s `privateSchemaName` field.""" + privateSchemaName: StringFilter + + """Filter by the object’s `tableId` field.""" + tableId: UUIDFilter + + """Filter by the object’s `tableName` field.""" + tableName: StringFilter + + """Filter by the object’s `defaultTableId` field.""" + defaultTableId: UUIDFilter + + """Filter by the object’s `defaultTableName` field.""" + defaultTableName: StringFilter + + """Filter by the object’s `bitlen` field.""" + bitlen: IntFilter + + """Filter by the object’s `scope` field.""" + scope: StringFilter + + """Filter by the object’s `prefix` field.""" + prefix: StringFilter + + """Filter by the object’s `entityTableId` field.""" + entityTableId: UUIDFilter + + """Filter by the object’s `actorTableId` field.""" + actorTableId: UUIDFilter + + """Filter by the object’s `getPaddedMask` field.""" + getPaddedMask: StringFilter + + """Filter by the object’s `getMask` field.""" + getMask: StringFilter + + """Filter by the object’s `getByMask` field.""" + getByMask: StringFilter + + """Filter by the object’s `getMaskByName` field.""" + getMaskByName: StringFilter + + """Filter by the object’s `apiName` field.""" + apiName: StringFilter + + """Filter by the object’s `privateApiName` field.""" + privateApiName: StringFilter + + """Checks for all expressions in this list.""" + and: [PermissionsModuleFilter!] + + """Checks for any expressions in this list.""" + or: [PermissionsModuleFilter!] + + """Negates the expression.""" + not: PermissionsModuleFilter +} + +"""Methods to use when ordering `PermissionsModule`.""" +enum PermissionsModuleOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC + ENTITY_FIELD_ASC + ENTITY_FIELD_DESC + SCHEMA_ID_ASC + SCHEMA_ID_DESC + PRIVATE_SCHEMA_ID_ASC + PRIVATE_SCHEMA_ID_DESC + PUBLIC_SCHEMA_NAME_ASC + PUBLIC_SCHEMA_NAME_DESC + PRIVATE_SCHEMA_NAME_ASC + PRIVATE_SCHEMA_NAME_DESC + TABLE_ID_ASC + TABLE_ID_DESC + TABLE_NAME_ASC + TABLE_NAME_DESC + DEFAULT_TABLE_ID_ASC + DEFAULT_TABLE_ID_DESC + DEFAULT_TABLE_NAME_ASC + DEFAULT_TABLE_NAME_DESC + BITLEN_ASC + BITLEN_DESC + SCOPE_ASC + SCOPE_DESC + PREFIX_ASC + PREFIX_DESC + ENTITY_TABLE_ID_ASC + ENTITY_TABLE_ID_DESC + ACTOR_TABLE_ID_ASC + ACTOR_TABLE_ID_DESC + GET_PADDED_MASK_ASC + GET_PADDED_MASK_DESC + GET_MASK_ASC + GET_MASK_DESC + GET_BY_MASK_ASC + GET_BY_MASK_DESC + GET_MASK_BY_NAME_ASC + GET_MASK_BY_NAME_DESC + API_NAME_ASC + API_NAME_DESC + PRIVATE_API_NAME_ASC + PRIVATE_API_NAME_DESC +} + +"""A connection to a list of `GraphExecutionModule` values.""" +type GraphExecutionModuleConnection { + """A list of `GraphExecutionModule` objects.""" + nodes: [GraphExecutionModule]! + + """ + A list of edges which contains the `GraphExecutionModule` and cursor to aid in pagination. + """ + edges: [GraphExecutionModuleEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `GraphExecutionModule` you could get from the connection. + """ + totalCount: Int! +} + +type GraphExecutionModule { + id: UUID! + databaseId: UUID! + entityField: String + schemaId: UUID! + privateSchemaId: UUID! + publicSchemaName: String + privateSchemaName: String + graphModuleId: UUID! + scope: String! + prefix: String! + executionsTableId: UUID! + outputsTableId: UUID! + nodeStatesTableId: UUID! + executionsTableName: String! + outputsTableName: String! + nodeStatesTableName: String! + apiName: String + privateApiName: String + entityTableId: UUID + policies: JSON + provisions: JSON + defaultPermissions: [String] + createdAt: Datetime! + + """ + Reads a single `GraphModule` that is related to this `GraphExecutionModule`. + """ + graphModule: GraphModule +} + +"""A `GraphExecutionModule` edge in the connection.""" +type GraphExecutionModuleEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `GraphExecutionModule` at the end of the edge.""" + node: GraphExecutionModule +} + +""" +A filter to be used against `GraphExecutionModule` object types. All fields are combined with a logical ‘and.’ +""" +input GraphExecutionModuleFilter { + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `databaseId` field.""" + databaseId: UUIDFilter + + """Filter by the object’s `entityField` field.""" + entityField: StringFilter + + """Filter by the object’s `schemaId` field.""" + schemaId: UUIDFilter + + """Filter by the object’s `privateSchemaId` field.""" + privateSchemaId: UUIDFilter + + """Filter by the object’s `publicSchemaName` field.""" + publicSchemaName: StringFilter + + """Filter by the object’s `privateSchemaName` field.""" + privateSchemaName: StringFilter + + """Filter by the object’s `graphModuleId` field.""" + graphModuleId: UUIDFilter + + """Filter by the object’s `scope` field.""" + scope: StringFilter + + """Filter by the object’s `prefix` field.""" + prefix: StringFilter + + """Filter by the object’s `executionsTableId` field.""" + executionsTableId: UUIDFilter + + """Filter by the object’s `outputsTableId` field.""" + outputsTableId: UUIDFilter + + """Filter by the object’s `nodeStatesTableId` field.""" + nodeStatesTableId: UUIDFilter + + """Filter by the object’s `executionsTableName` field.""" + executionsTableName: StringFilter + + """Filter by the object’s `outputsTableName` field.""" + outputsTableName: StringFilter + + """Filter by the object’s `nodeStatesTableName` field.""" + nodeStatesTableName: StringFilter + + """Filter by the object’s `apiName` field.""" + apiName: StringFilter + + """Filter by the object’s `privateApiName` field.""" + privateApiName: StringFilter + + """Filter by the object’s `entityTableId` field.""" + entityTableId: UUIDFilter + + """Filter by the object’s `policies` field.""" + policies: JSONFilter + + """Filter by the object’s `provisions` field.""" + provisions: JSONFilter + + """Filter by the object’s `defaultPermissions` field.""" + defaultPermissions: StringListFilter + + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter + + """Checks for all expressions in this list.""" + and: [GraphExecutionModuleFilter!] + + """Checks for any expressions in this list.""" + or: [GraphExecutionModuleFilter!] + + """Negates the expression.""" + not: GraphExecutionModuleFilter + + """Filter by the object’s `graphModule` relation.""" + graphModule: GraphModuleFilter +} + +"""Methods to use when ordering `GraphExecutionModule`.""" +enum GraphExecutionModuleOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC + ENTITY_FIELD_ASC + ENTITY_FIELD_DESC + SCHEMA_ID_ASC + SCHEMA_ID_DESC + PRIVATE_SCHEMA_ID_ASC + PRIVATE_SCHEMA_ID_DESC + PUBLIC_SCHEMA_NAME_ASC + PUBLIC_SCHEMA_NAME_DESC + PRIVATE_SCHEMA_NAME_ASC + PRIVATE_SCHEMA_NAME_DESC + GRAPH_MODULE_ID_ASC + GRAPH_MODULE_ID_DESC + SCOPE_ASC + SCOPE_DESC + PREFIX_ASC + PREFIX_DESC + EXECUTIONS_TABLE_ID_ASC + EXECUTIONS_TABLE_ID_DESC + OUTPUTS_TABLE_ID_ASC + OUTPUTS_TABLE_ID_DESC + NODE_STATES_TABLE_ID_ASC + NODE_STATES_TABLE_ID_DESC + EXECUTIONS_TABLE_NAME_ASC + EXECUTIONS_TABLE_NAME_DESC + OUTPUTS_TABLE_NAME_ASC + OUTPUTS_TABLE_NAME_DESC + NODE_STATES_TABLE_NAME_ASC + NODE_STATES_TABLE_NAME_DESC + API_NAME_ASC + API_NAME_DESC + PRIVATE_API_NAME_ASC + PRIVATE_API_NAME_DESC + ENTITY_TABLE_ID_ASC + ENTITY_TABLE_ID_DESC + POLICIES_ASC + POLICIES_DESC + PROVISIONS_ASC + PROVISIONS_DESC + DEFAULT_PERMISSIONS_ASC + DEFAULT_PERMISSIONS_DESC + CREATED_AT_ASC + CREATED_AT_DESC +} + +"""A connection to a list of `HierarchyModule` values.""" +type HierarchyModuleConnection { + """A list of `HierarchyModule` objects.""" + nodes: [HierarchyModule]! + + """ + A list of edges which contains the `HierarchyModule` and cursor to aid in pagination. + """ + edges: [HierarchyModuleEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `HierarchyModule` you could get from the connection. + """ + totalCount: Int! +} + +type HierarchyModule { + id: UUID! + databaseId: UUID! + entityField: String + schemaId: UUID! + privateSchemaId: UUID! + chartEdgesTableId: UUID! + chartEdgesTableName: String! + hierarchySprtTableId: UUID! + hierarchySprtTableName: String! + chartEdgeGrantsTableId: UUID! + chartEdgeGrantsTableName: String! + entityTableId: UUID! + usersTableId: UUID! + scope: String! + prefix: String! + privateSchemaName: String! + sprtTableName: String! + rebuildHierarchyFunction: String! + getSubordinatesFunction: String! + getManagersFunction: String! + isManagerOfFunction: String! + defaultPermissions: [String] + createdAt: Datetime! +} + +"""A `HierarchyModule` edge in the connection.""" +type HierarchyModuleEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `HierarchyModule` at the end of the edge.""" + node: HierarchyModule +} + +""" +A filter to be used against `HierarchyModule` object types. All fields are combined with a logical ‘and.’ +""" +input HierarchyModuleFilter { + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `databaseId` field.""" + databaseId: UUIDFilter + + """Filter by the object’s `entityField` field.""" + entityField: StringFilter + + """Filter by the object’s `schemaId` field.""" + schemaId: UUIDFilter + + """Filter by the object’s `privateSchemaId` field.""" + privateSchemaId: UUIDFilter + + """Filter by the object’s `chartEdgesTableId` field.""" + chartEdgesTableId: UUIDFilter + + """Filter by the object’s `chartEdgesTableName` field.""" + chartEdgesTableName: StringFilter + + """Filter by the object’s `hierarchySprtTableId` field.""" + hierarchySprtTableId: UUIDFilter + + """Filter by the object’s `hierarchySprtTableName` field.""" + hierarchySprtTableName: StringFilter + + """Filter by the object’s `chartEdgeGrantsTableId` field.""" + chartEdgeGrantsTableId: UUIDFilter + + """Filter by the object’s `chartEdgeGrantsTableName` field.""" + chartEdgeGrantsTableName: StringFilter + + """Filter by the object’s `entityTableId` field.""" + entityTableId: UUIDFilter + + """Filter by the object’s `usersTableId` field.""" + usersTableId: UUIDFilter + + """Filter by the object’s `scope` field.""" + scope: StringFilter + + """Filter by the object’s `prefix` field.""" + prefix: StringFilter + + """Filter by the object’s `privateSchemaName` field.""" + privateSchemaName: StringFilter + + """Filter by the object’s `sprtTableName` field.""" + sprtTableName: StringFilter + + """Filter by the object’s `rebuildHierarchyFunction` field.""" + rebuildHierarchyFunction: StringFilter + + """Filter by the object’s `getSubordinatesFunction` field.""" + getSubordinatesFunction: StringFilter + + """Filter by the object’s `getManagersFunction` field.""" + getManagersFunction: StringFilter + + """Filter by the object’s `isManagerOfFunction` field.""" + isManagerOfFunction: StringFilter + + """Filter by the object’s `defaultPermissions` field.""" + defaultPermissions: StringListFilter + + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter + + """Checks for all expressions in this list.""" + and: [HierarchyModuleFilter!] + + """Checks for any expressions in this list.""" + or: [HierarchyModuleFilter!] + + """Negates the expression.""" + not: HierarchyModuleFilter +} + +"""Methods to use when ordering `HierarchyModule`.""" +enum HierarchyModuleOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC + ENTITY_FIELD_ASC + ENTITY_FIELD_DESC + SCHEMA_ID_ASC + SCHEMA_ID_DESC + PRIVATE_SCHEMA_ID_ASC + PRIVATE_SCHEMA_ID_DESC + CHART_EDGES_TABLE_ID_ASC + CHART_EDGES_TABLE_ID_DESC + CHART_EDGES_TABLE_NAME_ASC + CHART_EDGES_TABLE_NAME_DESC + HIERARCHY_SPRT_TABLE_ID_ASC + HIERARCHY_SPRT_TABLE_ID_DESC + HIERARCHY_SPRT_TABLE_NAME_ASC + HIERARCHY_SPRT_TABLE_NAME_DESC + CHART_EDGE_GRANTS_TABLE_ID_ASC + CHART_EDGE_GRANTS_TABLE_ID_DESC + CHART_EDGE_GRANTS_TABLE_NAME_ASC + CHART_EDGE_GRANTS_TABLE_NAME_DESC + ENTITY_TABLE_ID_ASC + ENTITY_TABLE_ID_DESC + USERS_TABLE_ID_ASC + USERS_TABLE_ID_DESC + SCOPE_ASC + SCOPE_DESC + PREFIX_ASC + PREFIX_DESC + PRIVATE_SCHEMA_NAME_ASC + PRIVATE_SCHEMA_NAME_DESC + SPRT_TABLE_NAME_ASC + SPRT_TABLE_NAME_DESC + REBUILD_HIERARCHY_FUNCTION_ASC + REBUILD_HIERARCHY_FUNCTION_DESC + GET_SUBORDINATES_FUNCTION_ASC + GET_SUBORDINATES_FUNCTION_DESC + GET_MANAGERS_FUNCTION_ASC + GET_MANAGERS_FUNCTION_DESC + IS_MANAGER_OF_FUNCTION_ASC + IS_MANAGER_OF_FUNCTION_DESC + DEFAULT_PERMISSIONS_ASC + DEFAULT_PERMISSIONS_DESC + CREATED_AT_ASC + CREATED_AT_DESC +} + +"""A connection to a list of `NotificationsModule` values.""" +type NotificationsModuleConnection { + """A list of `NotificationsModule` objects.""" + nodes: [NotificationsModule]! + + """ + A list of edges which contains the `NotificationsModule` and cursor to aid in pagination. + """ + edges: [NotificationsModuleEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `NotificationsModule` you could get from the connection. + """ + totalCount: Int! +} + +type NotificationsModule { + id: UUID! + databaseId: UUID! + entityField: String + schemaId: UUID! + privateSchemaId: UUID! + publicSchemaName: String + privateSchemaName: String + notificationsTableId: UUID! + readStateTableId: UUID! + preferencesTableId: UUID + channelsTableId: UUID + deliveryLogTableId: UUID + suppressionsTableId: UUID + ownerTableId: UUID! + userSettingsTableId: UUID + organizationSettingsTableId: UUID + hasChannels: Boolean! + hasPreferences: Boolean! + hasSettingsExtension: Boolean! + hasDigestMetadata: Boolean! + hasSubscriptions: Boolean! + defaultPermissions: [String] + apiName: String + privateApiName: String +} + +"""A `NotificationsModule` edge in the connection.""" +type NotificationsModuleEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `NotificationsModule` at the end of the edge.""" + node: NotificationsModule +} + +""" +A filter to be used against `NotificationsModule` object types. All fields are combined with a logical ‘and.’ +""" +input NotificationsModuleFilter { + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `databaseId` field.""" + databaseId: UUIDFilter + + """Filter by the object’s `entityField` field.""" + entityField: StringFilter + + """Filter by the object’s `schemaId` field.""" + schemaId: UUIDFilter + + """Filter by the object’s `privateSchemaId` field.""" + privateSchemaId: UUIDFilter + + """Filter by the object’s `publicSchemaName` field.""" + publicSchemaName: StringFilter + + """Filter by the object’s `privateSchemaName` field.""" + privateSchemaName: StringFilter + + """Filter by the object’s `notificationsTableId` field.""" + notificationsTableId: UUIDFilter + + """Filter by the object’s `readStateTableId` field.""" + readStateTableId: UUIDFilter + + """Filter by the object’s `preferencesTableId` field.""" + preferencesTableId: UUIDFilter + + """Filter by the object’s `channelsTableId` field.""" + channelsTableId: UUIDFilter + + """Filter by the object’s `deliveryLogTableId` field.""" + deliveryLogTableId: UUIDFilter + + """Filter by the object’s `suppressionsTableId` field.""" + suppressionsTableId: UUIDFilter + + """Filter by the object’s `ownerTableId` field.""" + ownerTableId: UUIDFilter + + """Filter by the object’s `userSettingsTableId` field.""" + userSettingsTableId: UUIDFilter + + """Filter by the object’s `organizationSettingsTableId` field.""" + organizationSettingsTableId: UUIDFilter + + """Filter by the object’s `hasChannels` field.""" + hasChannels: BooleanFilter + + """Filter by the object’s `hasPreferences` field.""" + hasPreferences: BooleanFilter + + """Filter by the object’s `hasSettingsExtension` field.""" + hasSettingsExtension: BooleanFilter + + """Filter by the object’s `hasDigestMetadata` field.""" + hasDigestMetadata: BooleanFilter + + """Filter by the object’s `hasSubscriptions` field.""" + hasSubscriptions: BooleanFilter + + """Filter by the object’s `defaultPermissions` field.""" + defaultPermissions: StringListFilter + + """Filter by the object’s `apiName` field.""" + apiName: StringFilter + + """Filter by the object’s `privateApiName` field.""" + privateApiName: StringFilter + + """Checks for all expressions in this list.""" + and: [NotificationsModuleFilter!] + + """Checks for any expressions in this list.""" + or: [NotificationsModuleFilter!] + + """Negates the expression.""" + not: NotificationsModuleFilter +} + +"""Methods to use when ordering `NotificationsModule`.""" +enum NotificationsModuleOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC + ENTITY_FIELD_ASC + ENTITY_FIELD_DESC + SCHEMA_ID_ASC + SCHEMA_ID_DESC + PRIVATE_SCHEMA_ID_ASC + PRIVATE_SCHEMA_ID_DESC + PUBLIC_SCHEMA_NAME_ASC + PUBLIC_SCHEMA_NAME_DESC + PRIVATE_SCHEMA_NAME_ASC + PRIVATE_SCHEMA_NAME_DESC + NOTIFICATIONS_TABLE_ID_ASC + NOTIFICATIONS_TABLE_ID_DESC + READ_STATE_TABLE_ID_ASC + READ_STATE_TABLE_ID_DESC + PREFERENCES_TABLE_ID_ASC + PREFERENCES_TABLE_ID_DESC + CHANNELS_TABLE_ID_ASC + CHANNELS_TABLE_ID_DESC + DELIVERY_LOG_TABLE_ID_ASC + DELIVERY_LOG_TABLE_ID_DESC + SUPPRESSIONS_TABLE_ID_ASC + SUPPRESSIONS_TABLE_ID_DESC + OWNER_TABLE_ID_ASC + OWNER_TABLE_ID_DESC + USER_SETTINGS_TABLE_ID_ASC + USER_SETTINGS_TABLE_ID_DESC + ORGANIZATION_SETTINGS_TABLE_ID_ASC + ORGANIZATION_SETTINGS_TABLE_ID_DESC + HAS_CHANNELS_ASC + HAS_CHANNELS_DESC + HAS_PREFERENCES_ASC + HAS_PREFERENCES_DESC + HAS_SETTINGS_EXTENSION_ASC + HAS_SETTINGS_EXTENSION_DESC + HAS_DIGEST_METADATA_ASC + HAS_DIGEST_METADATA_DESC + HAS_SUBSCRIPTIONS_ASC + HAS_SUBSCRIPTIONS_DESC + DEFAULT_PERMISSIONS_ASC + DEFAULT_PERMISSIONS_DESC + API_NAME_ASC + API_NAME_DESC + PRIVATE_API_NAME_ASC + PRIVATE_API_NAME_DESC +} + +"""A connection to a list of `RelationProvision` values.""" +type RelationProvisionConnection { + """A list of `RelationProvision` objects.""" + nodes: [RelationProvision]! + + """ + A list of edges which contains the `RelationProvision` and cursor to aid in pagination. + """ + edges: [RelationProvisionEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `RelationProvision` you could get from the connection. + """ + totalCount: Int! +} + +""" +Provisions relational structure between tables. Supports four relation types: + - RelationBelongsTo: adds a FK field on the source table referencing the target table (child perspective: "tasks belongs to projects" -> tasks.project_id). + - RelationHasMany: adds a FK field on the target table referencing the source table (parent perspective: "projects has many tasks" -> tasks.project_id). Inverse of BelongsTo. + - RelationHasOne: adds a FK field with a unique constraint on the source table referencing the target table. Also supports shared-primary-key patterns where the FK field IS the primary key (set field_name to the existing PK field name). + - RelationManyToMany: creates a junction table with FK fields to both source and target tables, delegating table creation and security to secure_table_provision. + 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. +""" +type RelationProvision { + """Unique identifier for this relation provision row.""" + id: UUID! + + """ + The database this relation belongs to. Required. Must match the database of both source_table_id and target_table_id. + """ + databaseId: UUID! + + """ + The type of relation to create. Uses SuperCase naming: + - RelationBelongsTo: creates a FK field on source_table referencing target_table (e.g., tasks belongs to projects -> tasks.project_id). Field name auto-derived from target table. + - RelationHasMany: creates a FK field on target_table referencing source_table (e.g., projects has many tasks -> tasks.project_id). Field name auto-derived from source table. Inverse of BelongsTo — same FK, different perspective. + - RelationHasOne: creates a FK field + unique constraint on source_table referencing target_table (e.g., user_settings has one user -> user_settings.user_id with UNIQUE). Also supports shared-primary-key patterns (e.g., user_profiles.id = users.id) by setting field_name to the existing PK field. + - RelationManyToMany: creates a junction table with FK fields to both tables (e.g., projects and tags -> project_tags table). + Each relation type uses a different subset of columns on this table. Required. + """ + relationType: String! + + """ + The source table in the relation. Required. + - RelationBelongsTo: the table that receives the FK field (e.g., tasks in "tasks belongs to projects"). + - RelationHasMany: the parent table being referenced (e.g., projects in "projects has many tasks"). The FK field is created on the target table. + - RelationHasOne: the table that receives the FK field + unique constraint (e.g., user_settings in "user_settings has one user"). + - RelationManyToMany: one of the two tables being joined (e.g., projects in "projects and tags"). The junction table will have a FK field referencing this table. + """ + sourceTableId: UUID! + + """ + The target table in the relation. Required. + - RelationBelongsTo: the table being referenced by the FK (e.g., projects in "tasks belongs to projects"). + - RelationHasMany: the table that receives the FK field (e.g., tasks in "projects has many tasks"). + - RelationHasOne: the table being referenced by the FK (e.g., users in "user_settings has one user"). + - RelationManyToMany: the other table being joined (e.g., tags in "projects and tags"). The junction table will have a FK field referencing this table. + """ + targetTableId: UUID! + + """ + FK field name for RelationBelongsTo, RelationHasOne, and RelationHasMany. + - RelationBelongsTo/RelationHasOne: if NULL, auto-derived from the target table name (e.g., target "projects" derives "project_id"). + - RelationHasMany: if NULL, auto-derived from the source table name (e.g., source "projects" derives "project_id"). + For RelationHasOne shared-primary-key patterns, set field_name to the existing PK field (e.g., "id") so the FK reuses it. + Ignored for RelationManyToMany — use source_field_name/target_field_name instead. + """ + fieldName: String + + """ + FK delete action for RelationBelongsTo, RelationHasOne, and RelationHasMany. One of: c (CASCADE), r (RESTRICT), n (SET NULL), d (SET DEFAULT), a (NO ACTION). Required — the trigger raises an error if not provided. The caller must explicitly choose the cascade behavior; there is no default. Ignored for RelationManyToMany (junction FK fields always use CASCADE). + """ + deleteAction: String + + """ + Whether the FK field is NOT NULL. Defaults to true. + - RelationBelongsTo: set to false for optional associations (e.g., tasks.assignee_id that can be NULL). + - RelationHasMany: set to false if the child can exist without a parent. + - RelationHasOne: typically true. + Ignored for RelationManyToMany (junction FK fields are always required). + """ + isRequired: Boolean! + + """ + Whether the FK field should be required at the API level even though it is nullable at the database level. Defaults to false. + When true and is_required is false, the field is created as nullable (allowing SET NULL cascade) but a @requiredInput smart tag is added so PostGraphile treats it as non-null in create/update input types. + When is_required is true, api_required is ignored (the field is already required at both levels). + Ignored for RelationManyToMany (junction FK fields are always required). + """ + apiRequired: Boolean! + + """ + For RelationManyToMany: an existing junction table to use. Defaults to uuid_nil(). + - When uuid_nil(): the trigger creates a new junction table via secure_table_provision using junction_table_name. + - When set to a valid table UUID: the trigger skips table creation and only adds FK fields, composite key (if use_composite_key is true), and security to the existing table. + Ignored for RelationBelongsTo/RelationHasOne. + """ + junctionTableId: UUID! + + """ + For RelationManyToMany: name of the junction table to create or look up. If NULL, auto-derived from source and target table names using inflection_db (e.g., "projects" + "tags" derives "project_tags"). Only used when junction_table_id is uuid_nil(). Ignored for RelationBelongsTo/RelationHasOne. + """ + junctionTableName: String + + """ + For RelationManyToMany: schema for the junction table. If NULL, defaults to the source table's schema. Ignored for RelationBelongsTo/RelationHasOne. + """ + junctionSchemaId: UUID + + """ + For RelationManyToMany: FK field name on the junction table referencing the source table. If NULL, auto-derived from the source table name using inflection_db.get_foreign_key_field_name() (e.g., source table "projects" derives "project_id"). Ignored for RelationBelongsTo/RelationHasOne. + """ + sourceFieldName: String + + """ + For RelationManyToMany: FK field name on the junction table referencing the target table. If NULL, auto-derived from the target table name using inflection_db.get_foreign_key_field_name() (e.g., target table "tags" derives "tag_id"). Ignored for RelationBelongsTo/RelationHasOne. + """ + targetFieldName: String + + """ + For RelationManyToMany: whether to create a composite primary key from the two FK fields (source + target) on the junction table. Defaults to false. + - When true: the trigger calls metaschema.pk() with ARRAY[source_field_id, target_field_id] to create a composite PK. No separate id column is created. This enforces uniqueness of the pair and is suitable for simple junction tables. + - When false: no primary key is created by the trigger. The caller should provide node_type='DataId' to create a UUID primary key, or handle the PK strategy via a separate secure_table_provision row. + use_composite_key and node_type='DataId' are mutually exclusive — using both would create two conflicting PKs. + Ignored for RelationBelongsTo/RelationHasOne. + """ + useCompositeKey: Boolean! + + """ + Whether to create a btree index on FK fields created by this relation. Defaults to true. + PostgreSQL does not automatically index foreign key columns (only the referenced PK side is indexed). + Without indexes on FK columns, JOINs, CASCADE deletes, and RLS policy lookups perform sequential scans. + - RelationBelongsTo: creates an index on the FK field on the source table. + - RelationHasMany: creates an index on the FK field on the target table. + - RelationHasOne: skipped — the unique constraint already creates an implicit index. + - RelationManyToMany: creates indexes on both FK fields on the junction table. + Set to false only for very small tables or write-heavy tables where index maintenance cost outweighs read performance. + """ + createIndex: Boolean! + + """ + For RelationManyToMany: whether to expose the M:N shortcut fields in the GraphQL API. Defaults to true. + When true, sets @behavior +manyToMany on the junction table smart_tags so PostGraphile generates + clean M:N connection fields (e.g., event.contacts instead of event.contactEventsByEventId). + When false (or toggled off via UPDATE), the behavior tag is removed and the M:N fields disappear from GraphQL. + Toggling is supported: UPDATE expose_in_api to true/false and the smart tag is added/removed automatically. + Ignored for RelationBelongsTo/RelationHasOne/RelationHasMany. + """ + exposeInApi: Boolean! + + """ + For RelationManyToMany: array of node objects to apply to the junction table. Each element is a jsonb object with a required "$type" key and an optional "data" key. Forwarded to provision_table as-is. The trigger does not interpret or validate this value. + Examples: [{"$type": "DataId"}, {"$type": "DataTimestamps"}, {"$type": "DataDirectOwner", "data": {"owner_field_name": "author_id"}}]. + Defaults to '[]' (no node processing beyond the FK fields and composite key if use_composite_key is true). + Ignored for RelationBelongsTo/RelationHasOne/RelationHasMany. + """ + nodes: JSON! + + """ + For RelationManyToMany: array of grant objects for the junction table. Forwarded to provision_table as-is. Each element is a jsonb object with keys: "roles" (text[], required), "privileges" (jsonb[], required — array of [privilege, columns] tuples). Example: [{"roles":["authenticated"],"privileges":[["select","*"],["insert","*"],["delete","*"]]}]. Defaults to '[]' (no grants). Ignored for RelationBelongsTo/RelationHasOne. + """ + grants: JSON! + + """ + For RelationManyToMany: array of policy objects for the junction table. Forwarded to provision_table as-is. Each element is a jsonb object with keys: "$type" (text, required — the Authz* policy generator type), "data" (jsonb, optional — opaque config), "privileges" (text[], optional — e.g. ["select","insert"]; if omitted, derived from grants[] privilege verbs), "policy_role" (text, optional — falls back to first role in first grants[] entry, or 'authenticated'), "permissive" (boolean, optional, defaults to true), "policy_name" (text, optional). Supports multiple policies per row. + Example: [{"$type": "AuthzEntityMembership", "data": {"entity_field": "entity_id", "membership_type": 2}, "privileges": ["select", "insert", "delete"]}]. + Defaults to '[]' (no policies — the junction table will have RLS enabled but no policies unless added separately). + Ignored for RelationBelongsTo/RelationHasOne/RelationHasMany. + """ + policies: JSON! + + """ + Output column for RelationBelongsTo/RelationHasOne/RelationHasMany: the UUID of the FK field created (or found). For BelongsTo/HasOne this is on the source table; for HasMany this is on the target table. Populated by the trigger. NULL for RelationManyToMany. Callers should not set this directly. + """ + outFieldId: UUID + + """ + Output column for RelationManyToMany: the UUID of the junction table created (or found). Populated by the trigger. NULL for RelationBelongsTo/RelationHasOne. Callers should not set this directly. + """ + outJunctionTableId: UUID + + """ + Output column for RelationManyToMany: the UUID of the FK field on the junction table referencing the source table. Populated by the trigger. NULL for RelationBelongsTo/RelationHasOne. Callers should not set this directly. + """ + outSourceFieldId: UUID + + """ + Output column for RelationManyToMany: the UUID of the FK field on the junction table referencing the target table. Populated by the trigger. NULL for RelationBelongsTo/RelationHasOne. Callers should not set this directly. + """ + outTargetFieldId: UUID +} + +"""A `RelationProvision` edge in the connection.""" +type RelationProvisionEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `RelationProvision` at the end of the edge.""" + node: RelationProvision +} + +""" +A filter to be used against `RelationProvision` object types. All fields are combined with a logical ‘and.’ +""" +input RelationProvisionFilter { + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `databaseId` field.""" + databaseId: UUIDFilter + + """Filter by the object’s `relationType` field.""" + relationType: StringFilter + + """Filter by the object’s `sourceTableId` field.""" + sourceTableId: UUIDFilter + + """Filter by the object’s `targetTableId` field.""" + targetTableId: UUIDFilter + + """Filter by the object’s `fieldName` field.""" + fieldName: StringFilter + + """Filter by the object’s `deleteAction` field.""" + deleteAction: StringFilter + + """Filter by the object’s `isRequired` field.""" + isRequired: BooleanFilter + + """Filter by the object’s `apiRequired` field.""" + apiRequired: BooleanFilter + + """Filter by the object’s `junctionTableId` field.""" + junctionTableId: UUIDFilter + + """Filter by the object’s `junctionTableName` field.""" + junctionTableName: StringFilter + + """Filter by the object’s `junctionSchemaId` field.""" + junctionSchemaId: UUIDFilter + + """Filter by the object’s `sourceFieldName` field.""" + sourceFieldName: StringFilter + + """Filter by the object’s `targetFieldName` field.""" + targetFieldName: StringFilter + + """Filter by the object’s `useCompositeKey` field.""" + useCompositeKey: BooleanFilter + + """Filter by the object’s `createIndex` field.""" + createIndex: BooleanFilter + + """Filter by the object’s `exposeInApi` field.""" + exposeInApi: BooleanFilter + + """Filter by the object’s `nodes` field.""" + nodes: JSONFilter + + """Filter by the object’s `grants` field.""" + grants: JSONFilter + + """Filter by the object’s `policies` field.""" + policies: JSONFilter + + """Filter by the object’s `outFieldId` field.""" + outFieldId: UUIDFilter + + """Filter by the object’s `outJunctionTableId` field.""" + outJunctionTableId: UUIDFilter + + """Filter by the object’s `outSourceFieldId` field.""" + outSourceFieldId: UUIDFilter + + """Filter by the object’s `outTargetFieldId` field.""" + outTargetFieldId: UUIDFilter + + """Checks for all expressions in this list.""" + and: [RelationProvisionFilter!] + + """Checks for any expressions in this list.""" + or: [RelationProvisionFilter!] + + """Negates the expression.""" + not: RelationProvisionFilter +} + +"""Methods to use when ordering `RelationProvision`.""" +enum RelationProvisionOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC + RELATION_TYPE_ASC + RELATION_TYPE_DESC + SOURCE_TABLE_ID_ASC + SOURCE_TABLE_ID_DESC + TARGET_TABLE_ID_ASC + TARGET_TABLE_ID_DESC + FIELD_NAME_ASC + FIELD_NAME_DESC + DELETE_ACTION_ASC + DELETE_ACTION_DESC + IS_REQUIRED_ASC + IS_REQUIRED_DESC + API_REQUIRED_ASC + API_REQUIRED_DESC + JUNCTION_TABLE_ID_ASC + JUNCTION_TABLE_ID_DESC + JUNCTION_TABLE_NAME_ASC + JUNCTION_TABLE_NAME_DESC + JUNCTION_SCHEMA_ID_ASC + JUNCTION_SCHEMA_ID_DESC + SOURCE_FIELD_NAME_ASC + SOURCE_FIELD_NAME_DESC + TARGET_FIELD_NAME_ASC + TARGET_FIELD_NAME_DESC + USE_COMPOSITE_KEY_ASC + USE_COMPOSITE_KEY_DESC + CREATE_INDEX_ASC + CREATE_INDEX_DESC + EXPOSE_IN_API_ASC + EXPOSE_IN_API_DESC + NODES_ASC + NODES_DESC + GRANTS_ASC + GRANTS_DESC + POLICIES_ASC + POLICIES_DESC + OUT_FIELD_ID_ASC + OUT_FIELD_ID_DESC + OUT_JUNCTION_TABLE_ID_ASC + OUT_JUNCTION_TABLE_ID_DESC + OUT_SOURCE_FIELD_ID_ASC + OUT_SOURCE_FIELD_ID_DESC + OUT_TARGET_FIELD_ID_ASC + OUT_TARGET_FIELD_ID_DESC } """A connection to a list of `ProfilesModule` values.""" @@ -9934,6 +11020,7 @@ type ProfilesModuleConnection { type ProfilesModule { id: UUID! databaseId: UUID! + entityField: String schemaId: UUID! privateSchemaId: UUID! publicSchemaName: String @@ -9977,6 +11064,9 @@ input ProfilesModuleFilter { """Filter by the object’s `databaseId` field.""" databaseId: UUIDFilter + """Filter by the object’s `entityField` field.""" + entityField: StringFilter + """Filter by the object’s `schemaId` field.""" schemaId: UUIDFilter @@ -10062,6 +11152,8 @@ enum ProfilesModuleOrderBy { ID_DESC DATABASE_ID_ASC DATABASE_ID_DESC + ENTITY_FIELD_ASC + ENTITY_FIELD_DESC SCHEMA_ID_ASC SCHEMA_ID_DESC PRIVATE_SCHEMA_ID_ASC @@ -10147,6 +11239,8 @@ type BillingModule { meterDefaultsTableId: UUID! meterDefaultsTableName: String! recordUsageFunction: String! + sweepExpiredSubscriptionsFunction: String! + rollupUsageSummaryFunction: String! prefix: String defaultPermissions: [String] apiName: String @@ -10229,6 +11323,12 @@ input BillingModuleFilter { """Filter by the object’s `recordUsageFunction` field.""" recordUsageFunction: StringFilter + """Filter by the object’s `sweepExpiredSubscriptionsFunction` field.""" + sweepExpiredSubscriptionsFunction: StringFilter + + """Filter by the object’s `rollupUsageSummaryFunction` field.""" + rollupUsageSummaryFunction: StringFilter + """Filter by the object’s `prefix` field.""" prefix: StringFilter @@ -10298,6 +11398,10 @@ enum BillingModuleOrderBy { METER_DEFAULTS_TABLE_NAME_DESC RECORD_USAGE_FUNCTION_ASC RECORD_USAGE_FUNCTION_DESC + SWEEP_EXPIRED_SUBSCRIPTIONS_FUNCTION_ASC + SWEEP_EXPIRED_SUBSCRIPTIONS_FUNCTION_DESC + ROLLUP_USAGE_SUMMARY_FUNCTION_ASC + ROLLUP_USAGE_SUMMARY_FUNCTION_DESC PREFIX_ASC PREFIX_DESC DEFAULT_PERMISSIONS_ASC @@ -10308,301 +11412,166 @@ enum BillingModuleOrderBy { PRIVATE_API_NAME_DESC } -"""A connection to a list of `RelationProvision` values.""" -type RelationProvisionConnection { - """A list of `RelationProvision` objects.""" - nodes: [RelationProvision]! +"""A connection to a list of `ResourceModule` values.""" +type ResourceModuleConnection { + """A list of `ResourceModule` objects.""" + nodes: [ResourceModule]! """ - A list of edges which contains the `RelationProvision` and cursor to aid in pagination. + A list of edges which contains the `ResourceModule` and cursor to aid in pagination. """ - edges: [RelationProvisionEdge]! + edges: [ResourceModuleEdge]! """Information to aid in pagination.""" pageInfo: PageInfo! - """ - The count of *all* `RelationProvision` you could get from the connection. - """ + """The count of *all* `ResourceModule` you could get from the connection.""" totalCount: Int! } -""" -Provisions relational structure between tables. Supports four relation types: - - RelationBelongsTo: adds a FK field on the source table referencing the target table (child perspective: "tasks belongs to projects" -> tasks.project_id). - - RelationHasMany: adds a FK field on the target table referencing the source table (parent perspective: "projects has many tasks" -> tasks.project_id). Inverse of BelongsTo. - - RelationHasOne: adds a FK field with a unique constraint on the source table referencing the target table. Also supports shared-primary-key patterns where the FK field IS the primary key (set field_name to the existing PK field name). - - RelationManyToMany: creates a junction table with FK fields to both source and target tables, delegating table creation and security to secure_table_provision. - 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. -""" -type RelationProvision { - """Unique identifier for this relation provision row.""" +type ResourceModule { id: UUID! - - """ - The database this relation belongs to. Required. Must match the database of both source_table_id and target_table_id. - """ databaseId: UUID! + entityField: String + schemaId: UUID! + privateSchemaId: UUID! + publicSchemaName: String + privateSchemaName: String + resourcesTableId: UUID! + resourceEventsTableId: UUID! + resourceStatusChecksTableId: UUID! + resourceDefinitionsTableId: UUID! + resourcesTableName: String! + resourceEventsTableName: String! + resourceStatusChecksTableName: String! + resourceDefinitionsTableName: String! + resolvedRequirementsViewName: String + requirementsStateViewName: String + apiName: String + privateApiName: String + scope: String! + prefix: String! + entityTableId: UUID + namespaceModuleId: UUID + policies: JSON + provisions: JSON + defaultPermissions: [String] """ - The type of relation to create. Uses SuperCase naming: - - RelationBelongsTo: creates a FK field on source_table referencing target_table (e.g., tasks belongs to projects -> tasks.project_id). Field name auto-derived from target table. - - RelationHasMany: creates a FK field on target_table referencing source_table (e.g., projects has many tasks -> tasks.project_id). Field name auto-derived from source table. Inverse of BelongsTo — same FK, different perspective. - - RelationHasOne: creates a FK field + unique constraint on source_table referencing target_table (e.g., user_settings has one user -> user_settings.user_id with UNIQUE). Also supports shared-primary-key patterns (e.g., user_profiles.id = users.id) by setting field_name to the existing PK field. - - RelationManyToMany: creates a junction table with FK fields to both tables (e.g., projects and tags -> project_tags table). - Each relation type uses a different subset of columns on this table. Required. - """ - relationType: String! - - """ - The source table in the relation. Required. - - RelationBelongsTo: the table that receives the FK field (e.g., tasks in "tasks belongs to projects"). - - RelationHasMany: the parent table being referenced (e.g., projects in "projects has many tasks"). The FK field is created on the target table. - - RelationHasOne: the table that receives the FK field + unique constraint (e.g., user_settings in "user_settings has one user"). - - RelationManyToMany: one of the two tables being joined (e.g., projects in "projects and tags"). The junction table will have a FK field referencing this table. - """ - sourceTableId: UUID! - - """ - The target table in the relation. Required. - - RelationBelongsTo: the table being referenced by the FK (e.g., projects in "tasks belongs to projects"). - - RelationHasMany: the table that receives the FK field (e.g., tasks in "projects has many tasks"). - - RelationHasOne: the table being referenced by the FK (e.g., users in "user_settings has one user"). - - RelationManyToMany: the other table being joined (e.g., tags in "projects and tags"). The junction table will have a FK field referencing this table. - """ - targetTableId: UUID! - - """ - FK field name for RelationBelongsTo, RelationHasOne, and RelationHasMany. - - RelationBelongsTo/RelationHasOne: if NULL, auto-derived from the target table name (e.g., target "projects" derives "project_id"). - - RelationHasMany: if NULL, auto-derived from the source table name (e.g., source "projects" derives "project_id"). - For RelationHasOne shared-primary-key patterns, set field_name to the existing PK field (e.g., "id") so the FK reuses it. - Ignored for RelationManyToMany — use source_field_name/target_field_name instead. - """ - fieldName: String - - """ - FK delete action for RelationBelongsTo, RelationHasOne, and RelationHasMany. One of: c (CASCADE), r (RESTRICT), n (SET NULL), d (SET DEFAULT), a (NO ACTION). Required — the trigger raises an error if not provided. The caller must explicitly choose the cascade behavior; there is no default. Ignored for RelationManyToMany (junction FK fields always use CASCADE). - """ - deleteAction: String - - """ - Whether the FK field is NOT NULL. Defaults to true. - - RelationBelongsTo: set to false for optional associations (e.g., tasks.assignee_id that can be NULL). - - RelationHasMany: set to false if the child can exist without a parent. - - RelationHasOne: typically true. - Ignored for RelationManyToMany (junction FK fields are always required). - """ - isRequired: Boolean! - - """ - Whether the FK field should be required at the API level even though it is nullable at the database level. Defaults to false. - When true and is_required is false, the field is created as nullable (allowing SET NULL cascade) but a @requiredInput smart tag is added so PostGraphile treats it as non-null in create/update input types. - When is_required is true, api_required is ignored (the field is already required at both levels). - Ignored for RelationManyToMany (junction FK fields are always required). - """ - apiRequired: Boolean! - - """ - For RelationManyToMany: an existing junction table to use. Defaults to uuid_nil(). - - When uuid_nil(): the trigger creates a new junction table via secure_table_provision using junction_table_name. - - When set to a valid table UUID: the trigger skips table creation and only adds FK fields, composite key (if use_composite_key is true), and security to the existing table. - Ignored for RelationBelongsTo/RelationHasOne. - """ - junctionTableId: UUID! - - """ - For RelationManyToMany: name of the junction table to create or look up. If NULL, auto-derived from source and target table names using inflection_db (e.g., "projects" + "tags" derives "project_tags"). Only used when junction_table_id is uuid_nil(). Ignored for RelationBelongsTo/RelationHasOne. - """ - junctionTableName: String - - """ - For RelationManyToMany: schema for the junction table. If NULL, defaults to the source table's schema. Ignored for RelationBelongsTo/RelationHasOne. - """ - junctionSchemaId: UUID - - """ - For RelationManyToMany: FK field name on the junction table referencing the source table. If NULL, auto-derived from the source table name using inflection_db.get_foreign_key_field_name() (e.g., source table "projects" derives "project_id"). Ignored for RelationBelongsTo/RelationHasOne. - """ - sourceFieldName: String - - """ - For RelationManyToMany: FK field name on the junction table referencing the target table. If NULL, auto-derived from the target table name using inflection_db.get_foreign_key_field_name() (e.g., target table "tags" derives "tag_id"). Ignored for RelationBelongsTo/RelationHasOne. - """ - targetFieldName: String - - """ - For RelationManyToMany: whether to create a composite primary key from the two FK fields (source + target) on the junction table. Defaults to false. - - When true: the trigger calls metaschema.pk() with ARRAY[source_field_id, target_field_id] to create a composite PK. No separate id column is created. This enforces uniqueness of the pair and is suitable for simple junction tables. - - When false: no primary key is created by the trigger. The caller should provide node_type='DataId' to create a UUID primary key, or handle the PK strategy via a separate secure_table_provision row. - use_composite_key and node_type='DataId' are mutually exclusive — using both would create two conflicting PKs. - Ignored for RelationBelongsTo/RelationHasOne. - """ - useCompositeKey: Boolean! - - """ - Whether to create a btree index on FK fields created by this relation. Defaults to true. - PostgreSQL does not automatically index foreign key columns (only the referenced PK side is indexed). - Without indexes on FK columns, JOINs, CASCADE deletes, and RLS policy lookups perform sequential scans. - - RelationBelongsTo: creates an index on the FK field on the source table. - - RelationHasMany: creates an index on the FK field on the target table. - - RelationHasOne: skipped — the unique constraint already creates an implicit index. - - RelationManyToMany: creates indexes on both FK fields on the junction table. - Set to false only for very small tables or write-heavy tables where index maintenance cost outweighs read performance. - """ - createIndex: Boolean! - - """ - For RelationManyToMany: whether to expose the M:N shortcut fields in the GraphQL API. Defaults to true. - When true, sets @behavior +manyToMany on the junction table smart_tags so PostGraphile generates - clean M:N connection fields (e.g., event.contacts instead of event.contactEventsByEventId). - When false (or toggled off via UPDATE), the behavior tag is removed and the M:N fields disappear from GraphQL. - Toggling is supported: UPDATE expose_in_api to true/false and the smart tag is added/removed automatically. - Ignored for RelationBelongsTo/RelationHasOne/RelationHasMany. - """ - exposeInApi: Boolean! - - """ - For RelationManyToMany: array of node objects to apply to the junction table. Each element is a jsonb object with a required "$type" key and an optional "data" key. Forwarded to provision_table as-is. The trigger does not interpret or validate this value. - Examples: [{"$type": "DataId"}, {"$type": "DataTimestamps"}, {"$type": "DataDirectOwner", "data": {"owner_field_name": "author_id"}}]. - Defaults to '[]' (no node processing beyond the FK fields and composite key if use_composite_key is true). - Ignored for RelationBelongsTo/RelationHasOne/RelationHasMany. - """ - nodes: JSON! - - """ - For RelationManyToMany: array of grant objects for the junction table. Forwarded to provision_table as-is. Each element is a jsonb object with keys: "roles" (text[], required), "privileges" (jsonb[], required — array of [privilege, columns] tuples). Example: [{"roles":["authenticated"],"privileges":[["select","*"],["insert","*"],["delete","*"]]}]. Defaults to '[]' (no grants). Ignored for RelationBelongsTo/RelationHasOne. - """ - grants: JSON! - - """ - For RelationManyToMany: array of policy objects for the junction table. Forwarded to provision_table as-is. Each element is a jsonb object with keys: "$type" (text, required — the Authz* policy generator type), "data" (jsonb, optional — opaque config), "privileges" (text[], optional — e.g. ["select","insert"]; if omitted, derived from grants[] privilege verbs), "policy_role" (text, optional — falls back to first role in first grants[] entry, or 'authenticated'), "permissive" (boolean, optional, defaults to true), "policy_name" (text, optional). Supports multiple policies per row. - Example: [{"$type": "AuthzEntityMembership", "data": {"entity_field": "entity_id", "membership_type": 2}, "privileges": ["select", "insert", "delete"]}]. - Defaults to '[]' (no policies — the junction table will have RLS enabled but no policies unless added separately). - Ignored for RelationBelongsTo/RelationHasOne/RelationHasMany. - """ - policies: JSON! - - """ - Output column for RelationBelongsTo/RelationHasOne/RelationHasMany: the UUID of the FK field created (or found). For BelongsTo/HasOne this is on the source table; for HasMany this is on the target table. Populated by the trigger. NULL for RelationManyToMany. Callers should not set this directly. - """ - outFieldId: UUID - - """ - Output column for RelationManyToMany: the UUID of the junction table created (or found). Populated by the trigger. NULL for RelationBelongsTo/RelationHasOne. Callers should not set this directly. - """ - outJunctionTableId: UUID - - """ - Output column for RelationManyToMany: the UUID of the FK field on the junction table referencing the source table. Populated by the trigger. NULL for RelationBelongsTo/RelationHasOne. Callers should not set this directly. - """ - outSourceFieldId: UUID - - """ - Output column for RelationManyToMany: the UUID of the FK field on the junction table referencing the target table. Populated by the trigger. NULL for RelationBelongsTo/RelationHasOne. Callers should not set this directly. + Reads a single `NamespaceModule` that is related to this `ResourceModule`. """ - outTargetFieldId: UUID + namespaceModule: NamespaceModule } -"""A `RelationProvision` edge in the connection.""" -type RelationProvisionEdge { +"""A `ResourceModule` edge in the connection.""" +type ResourceModuleEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `RelationProvision` at the end of the edge.""" - node: RelationProvision + """The `ResourceModule` at the end of the edge.""" + node: ResourceModule } """ -A filter to be used against `RelationProvision` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `ResourceModule` object types. All fields are combined with a logical ‘and.’ """ -input RelationProvisionFilter { +input ResourceModuleFilter { """Filter by the object’s `id` field.""" id: UUIDFilter """Filter by the object’s `databaseId` field.""" databaseId: UUIDFilter - """Filter by the object’s `relationType` field.""" - relationType: StringFilter + """Filter by the object’s `entityField` field.""" + entityField: StringFilter - """Filter by the object’s `sourceTableId` field.""" - sourceTableId: UUIDFilter + """Filter by the object’s `schemaId` field.""" + schemaId: UUIDFilter - """Filter by the object’s `targetTableId` field.""" - targetTableId: UUIDFilter + """Filter by the object’s `privateSchemaId` field.""" + privateSchemaId: UUIDFilter - """Filter by the object’s `fieldName` field.""" - fieldName: StringFilter + """Filter by the object’s `publicSchemaName` field.""" + publicSchemaName: StringFilter - """Filter by the object’s `deleteAction` field.""" - deleteAction: StringFilter + """Filter by the object’s `privateSchemaName` field.""" + privateSchemaName: StringFilter - """Filter by the object’s `isRequired` field.""" - isRequired: BooleanFilter + """Filter by the object’s `resourcesTableId` field.""" + resourcesTableId: UUIDFilter + + """Filter by the object’s `resourceEventsTableId` field.""" + resourceEventsTableId: UUIDFilter + + """Filter by the object’s `resourceStatusChecksTableId` field.""" + resourceStatusChecksTableId: UUIDFilter + + """Filter by the object’s `resourceDefinitionsTableId` field.""" + resourceDefinitionsTableId: UUIDFilter + + """Filter by the object’s `resourcesTableName` field.""" + resourcesTableName: StringFilter - """Filter by the object’s `apiRequired` field.""" - apiRequired: BooleanFilter + """Filter by the object’s `resourceEventsTableName` field.""" + resourceEventsTableName: StringFilter - """Filter by the object’s `junctionTableId` field.""" - junctionTableId: UUIDFilter + """Filter by the object’s `resourceStatusChecksTableName` field.""" + resourceStatusChecksTableName: StringFilter - """Filter by the object’s `junctionTableName` field.""" - junctionTableName: StringFilter + """Filter by the object’s `resourceDefinitionsTableName` field.""" + resourceDefinitionsTableName: StringFilter - """Filter by the object’s `junctionSchemaId` field.""" - junctionSchemaId: UUIDFilter + """Filter by the object’s `resolvedRequirementsViewName` field.""" + resolvedRequirementsViewName: StringFilter - """Filter by the object’s `sourceFieldName` field.""" - sourceFieldName: StringFilter + """Filter by the object’s `requirementsStateViewName` field.""" + requirementsStateViewName: StringFilter - """Filter by the object’s `targetFieldName` field.""" - targetFieldName: StringFilter + """Filter by the object’s `apiName` field.""" + apiName: StringFilter - """Filter by the object’s `useCompositeKey` field.""" - useCompositeKey: BooleanFilter + """Filter by the object’s `privateApiName` field.""" + privateApiName: StringFilter - """Filter by the object’s `createIndex` field.""" - createIndex: BooleanFilter + """Filter by the object’s `scope` field.""" + scope: StringFilter - """Filter by the object’s `exposeInApi` field.""" - exposeInApi: BooleanFilter + """Filter by the object’s `prefix` field.""" + prefix: StringFilter - """Filter by the object’s `nodes` field.""" - nodes: JSONFilter + """Filter by the object’s `entityTableId` field.""" + entityTableId: UUIDFilter - """Filter by the object’s `grants` field.""" - grants: JSONFilter + """Filter by the object’s `namespaceModuleId` field.""" + namespaceModuleId: UUIDFilter """Filter by the object’s `policies` field.""" policies: JSONFilter - """Filter by the object’s `outFieldId` field.""" - outFieldId: UUIDFilter - - """Filter by the object’s `outJunctionTableId` field.""" - outJunctionTableId: UUIDFilter - - """Filter by the object’s `outSourceFieldId` field.""" - outSourceFieldId: UUIDFilter + """Filter by the object’s `provisions` field.""" + provisions: JSONFilter - """Filter by the object’s `outTargetFieldId` field.""" - outTargetFieldId: UUIDFilter + """Filter by the object’s `defaultPermissions` field.""" + defaultPermissions: StringListFilter """Checks for all expressions in this list.""" - and: [RelationProvisionFilter!] + and: [ResourceModuleFilter!] """Checks for any expressions in this list.""" - or: [RelationProvisionFilter!] + or: [ResourceModuleFilter!] """Negates the expression.""" - not: RelationProvisionFilter + not: ResourceModuleFilter + + """Filter by the object’s `namespaceModule` relation.""" + namespaceModule: NamespaceModuleFilter + + """A related `namespaceModule` exists.""" + namespaceModuleExists: Boolean } -"""Methods to use when ordering `RelationProvision`.""" -enum RelationProvisionOrderBy { +"""Methods to use when ordering `ResourceModule`.""" +enum ResourceModuleOrderBy { NATURAL PRIMARY_KEY_ASC PRIMARY_KEY_DESC @@ -10610,50 +11579,54 @@ enum RelationProvisionOrderBy { ID_DESC DATABASE_ID_ASC DATABASE_ID_DESC - RELATION_TYPE_ASC - RELATION_TYPE_DESC - SOURCE_TABLE_ID_ASC - SOURCE_TABLE_ID_DESC - TARGET_TABLE_ID_ASC - TARGET_TABLE_ID_DESC - FIELD_NAME_ASC - FIELD_NAME_DESC - DELETE_ACTION_ASC - DELETE_ACTION_DESC - IS_REQUIRED_ASC - IS_REQUIRED_DESC - API_REQUIRED_ASC - API_REQUIRED_DESC - JUNCTION_TABLE_ID_ASC - JUNCTION_TABLE_ID_DESC - JUNCTION_TABLE_NAME_ASC - JUNCTION_TABLE_NAME_DESC - JUNCTION_SCHEMA_ID_ASC - JUNCTION_SCHEMA_ID_DESC - SOURCE_FIELD_NAME_ASC - SOURCE_FIELD_NAME_DESC - TARGET_FIELD_NAME_ASC - TARGET_FIELD_NAME_DESC - USE_COMPOSITE_KEY_ASC - USE_COMPOSITE_KEY_DESC - CREATE_INDEX_ASC - CREATE_INDEX_DESC - EXPOSE_IN_API_ASC - EXPOSE_IN_API_DESC - NODES_ASC - NODES_DESC - GRANTS_ASC - GRANTS_DESC + ENTITY_FIELD_ASC + ENTITY_FIELD_DESC + SCHEMA_ID_ASC + SCHEMA_ID_DESC + PRIVATE_SCHEMA_ID_ASC + PRIVATE_SCHEMA_ID_DESC + PUBLIC_SCHEMA_NAME_ASC + PUBLIC_SCHEMA_NAME_DESC + PRIVATE_SCHEMA_NAME_ASC + PRIVATE_SCHEMA_NAME_DESC + RESOURCES_TABLE_ID_ASC + RESOURCES_TABLE_ID_DESC + RESOURCE_EVENTS_TABLE_ID_ASC + RESOURCE_EVENTS_TABLE_ID_DESC + RESOURCE_STATUS_CHECKS_TABLE_ID_ASC + RESOURCE_STATUS_CHECKS_TABLE_ID_DESC + RESOURCE_DEFINITIONS_TABLE_ID_ASC + RESOURCE_DEFINITIONS_TABLE_ID_DESC + RESOURCES_TABLE_NAME_ASC + RESOURCES_TABLE_NAME_DESC + RESOURCE_EVENTS_TABLE_NAME_ASC + RESOURCE_EVENTS_TABLE_NAME_DESC + RESOURCE_STATUS_CHECKS_TABLE_NAME_ASC + RESOURCE_STATUS_CHECKS_TABLE_NAME_DESC + RESOURCE_DEFINITIONS_TABLE_NAME_ASC + RESOURCE_DEFINITIONS_TABLE_NAME_DESC + RESOLVED_REQUIREMENTS_VIEW_NAME_ASC + RESOLVED_REQUIREMENTS_VIEW_NAME_DESC + REQUIREMENTS_STATE_VIEW_NAME_ASC + REQUIREMENTS_STATE_VIEW_NAME_DESC + API_NAME_ASC + API_NAME_DESC + PRIVATE_API_NAME_ASC + PRIVATE_API_NAME_DESC + SCOPE_ASC + SCOPE_DESC + PREFIX_ASC + PREFIX_DESC + ENTITY_TABLE_ID_ASC + ENTITY_TABLE_ID_DESC + NAMESPACE_MODULE_ID_ASC + NAMESPACE_MODULE_ID_DESC POLICIES_ASC POLICIES_DESC - OUT_FIELD_ID_ASC - OUT_FIELD_ID_DESC - OUT_JUNCTION_TABLE_ID_ASC - OUT_JUNCTION_TABLE_ID_DESC - OUT_SOURCE_FIELD_ID_ASC - OUT_SOURCE_FIELD_ID_DESC - OUT_TARGET_FIELD_ID_ASC - OUT_TARGET_FIELD_ID_DESC + PROVISIONS_ASC + PROVISIONS_DESC + DEFAULT_PERMISSIONS_ASC + DEFAULT_PERMISSIONS_DESC } """A connection to a list of `UserAuthModule` values.""" @@ -10874,80 +11847,75 @@ enum UserAuthModuleOrderBy { PRIVATE_API_NAME_DESC } -"""A connection to a list of `AgentModule` values.""" -type AgentModuleConnection { - """A list of `AgentModule` objects.""" - nodes: [AgentModule]! +"""A connection to a list of `DbUsageModule` values.""" +type DbUsageModuleConnection { + """A list of `DbUsageModule` objects.""" + nodes: [DbUsageModule]! """ - A list of edges which contains the `AgentModule` and cursor to aid in pagination. + A list of edges which contains the `DbUsageModule` and cursor to aid in pagination. """ - edges: [AgentModuleEdge]! + edges: [DbUsageModuleEdge]! """Information to aid in pagination.""" pageInfo: PageInfo! - """The count of *all* `AgentModule` you could get from the connection.""" + """The count of *all* `DbUsageModule` you could get from the connection.""" totalCount: Int! } -type AgentModule { +type DbUsageModule { id: UUID! databaseId: UUID! + entityField: String schemaId: UUID! privateSchemaId: UUID! publicSchemaName: String privateSchemaName: String - threadTableId: UUID! - messageTableId: UUID! - taskTableId: UUID! - promptsTableId: UUID! - planTableId: UUID - agentTableId: UUID - personaTableId: UUID - resourceTableId: UUID - threadTableName: String! - messageTableName: String! - taskTableName: String! - promptsTableName: String! - planTableName: String! - agentTableName: String! - personaTableName: String! - resourceTableName: String! - hasPlans: Boolean! - hasResources: Boolean! - hasAgents: Boolean! - shared: Boolean! - apiName: String - privateApiName: String + tableStatsLogTableId: UUID! + tableStatsLogTableName: String! + tableStatsDailyTableId: UUID! + tableStatsDailyTableName: String! + queryStatsLogTableId: UUID! + queryStatsLogTableName: String! + queryStatsDailyTableId: UUID! + queryStatsDailyTableName: String! + collectDbTableStatsFunction: String! + collectDbQueryStatsFunction: String! + rollupDbTableStatsDailyFunction: String! + rollupDbQueryStatsDailyFunction: String! + interval: String! + retention: String! + premake: Int! scope: String! prefix: String! - entityTableId: UUID - policies: JSON - resources: JSON - provisions: JSON defaultPermissions: [String] + apiName: String + privateApiName: String } -"""A `AgentModule` edge in the connection.""" -type AgentModuleEdge { +"""A `DbUsageModule` edge in the connection.""" +type DbUsageModuleEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `AgentModule` at the end of the edge.""" - node: AgentModule + """The `DbUsageModule` at the end of the edge.""" + node: DbUsageModule } """ -A filter to be used against `AgentModule` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `DbUsageModule` object types. All fields are combined with a logical ‘and.’ """ -input AgentModuleFilter { +input DbUsageModuleFilter { """Filter by the object’s `id` field.""" id: UUIDFilter """Filter by the object’s `databaseId` field.""" databaseId: UUIDFilter + """Filter by the object’s `entityField` field.""" + entityField: StringFilter + """Filter by the object’s `schemaId` field.""" schemaId: UUIDFilter @@ -10960,71 +11928,50 @@ input AgentModuleFilter { """Filter by the object’s `privateSchemaName` field.""" privateSchemaName: StringFilter - """Filter by the object’s `threadTableId` field.""" - threadTableId: UUIDFilter - - """Filter by the object’s `messageTableId` field.""" - messageTableId: UUIDFilter - - """Filter by the object’s `taskTableId` field.""" - taskTableId: UUIDFilter - - """Filter by the object’s `promptsTableId` field.""" - promptsTableId: UUIDFilter - - """Filter by the object’s `planTableId` field.""" - planTableId: UUIDFilter - - """Filter by the object’s `agentTableId` field.""" - agentTableId: UUIDFilter - - """Filter by the object’s `personaTableId` field.""" - personaTableId: UUIDFilter - - """Filter by the object’s `resourceTableId` field.""" - resourceTableId: UUIDFilter + """Filter by the object’s `tableStatsLogTableId` field.""" + tableStatsLogTableId: UUIDFilter - """Filter by the object’s `threadTableName` field.""" - threadTableName: StringFilter + """Filter by the object’s `tableStatsLogTableName` field.""" + tableStatsLogTableName: StringFilter - """Filter by the object’s `messageTableName` field.""" - messageTableName: StringFilter + """Filter by the object’s `tableStatsDailyTableId` field.""" + tableStatsDailyTableId: UUIDFilter - """Filter by the object’s `taskTableName` field.""" - taskTableName: StringFilter + """Filter by the object’s `tableStatsDailyTableName` field.""" + tableStatsDailyTableName: StringFilter - """Filter by the object’s `promptsTableName` field.""" - promptsTableName: StringFilter + """Filter by the object’s `queryStatsLogTableId` field.""" + queryStatsLogTableId: UUIDFilter - """Filter by the object’s `planTableName` field.""" - planTableName: StringFilter + """Filter by the object’s `queryStatsLogTableName` field.""" + queryStatsLogTableName: StringFilter - """Filter by the object’s `agentTableName` field.""" - agentTableName: StringFilter + """Filter by the object’s `queryStatsDailyTableId` field.""" + queryStatsDailyTableId: UUIDFilter - """Filter by the object’s `personaTableName` field.""" - personaTableName: StringFilter + """Filter by the object’s `queryStatsDailyTableName` field.""" + queryStatsDailyTableName: StringFilter - """Filter by the object’s `resourceTableName` field.""" - resourceTableName: StringFilter + """Filter by the object’s `collectDbTableStatsFunction` field.""" + collectDbTableStatsFunction: StringFilter - """Filter by the object’s `hasPlans` field.""" - hasPlans: BooleanFilter + """Filter by the object’s `collectDbQueryStatsFunction` field.""" + collectDbQueryStatsFunction: StringFilter - """Filter by the object’s `hasResources` field.""" - hasResources: BooleanFilter + """Filter by the object’s `rollupDbTableStatsDailyFunction` field.""" + rollupDbTableStatsDailyFunction: StringFilter - """Filter by the object’s `hasAgents` field.""" - hasAgents: BooleanFilter + """Filter by the object’s `rollupDbQueryStatsDailyFunction` field.""" + rollupDbQueryStatsDailyFunction: StringFilter - """Filter by the object’s `shared` field.""" - shared: BooleanFilter + """Filter by the object’s `interval` field.""" + interval: StringFilter - """Filter by the object’s `apiName` field.""" - apiName: StringFilter + """Filter by the object’s `retention` field.""" + retention: StringFilter - """Filter by the object’s `privateApiName` field.""" - privateApiName: StringFilter + """Filter by the object’s `premake` field.""" + premake: IntFilter """Filter by the object’s `scope` field.""" scope: StringFilter @@ -11032,33 +11979,27 @@ input AgentModuleFilter { """Filter by the object’s `prefix` field.""" prefix: StringFilter - """Filter by the object’s `entityTableId` field.""" - entityTableId: UUIDFilter - - """Filter by the object’s `policies` field.""" - policies: JSONFilter - - """Filter by the object’s `resources` field.""" - resources: JSONFilter - - """Filter by the object’s `provisions` field.""" - provisions: JSONFilter - """Filter by the object’s `defaultPermissions` field.""" defaultPermissions: StringListFilter + """Filter by the object’s `apiName` field.""" + apiName: StringFilter + + """Filter by the object’s `privateApiName` field.""" + privateApiName: StringFilter + """Checks for all expressions in this list.""" - and: [AgentModuleFilter!] + and: [DbUsageModuleFilter!] """Checks for any expressions in this list.""" - or: [AgentModuleFilter!] + or: [DbUsageModuleFilter!] """Negates the expression.""" - not: AgentModuleFilter + not: DbUsageModuleFilter } -"""Methods to use when ordering `AgentModule`.""" -enum AgentModuleOrderBy { +"""Methods to use when ordering `DbUsageModule`.""" +enum DbUsageModuleOrderBy { NATURAL PRIMARY_KEY_ASC PRIMARY_KEY_DESC @@ -11066,6 +12007,8 @@ enum AgentModuleOrderBy { ID_DESC DATABASE_ID_ASC DATABASE_ID_DESC + ENTITY_FIELD_ASC + ENTITY_FIELD_DESC SCHEMA_ID_ASC SCHEMA_ID_DESC PRIVATE_SCHEMA_ID_ASC @@ -11074,141 +12017,126 @@ enum AgentModuleOrderBy { PUBLIC_SCHEMA_NAME_DESC PRIVATE_SCHEMA_NAME_ASC PRIVATE_SCHEMA_NAME_DESC - THREAD_TABLE_ID_ASC - THREAD_TABLE_ID_DESC - MESSAGE_TABLE_ID_ASC - MESSAGE_TABLE_ID_DESC - TASK_TABLE_ID_ASC - TASK_TABLE_ID_DESC - PROMPTS_TABLE_ID_ASC - PROMPTS_TABLE_ID_DESC - PLAN_TABLE_ID_ASC - PLAN_TABLE_ID_DESC - AGENT_TABLE_ID_ASC - AGENT_TABLE_ID_DESC - PERSONA_TABLE_ID_ASC - PERSONA_TABLE_ID_DESC - RESOURCE_TABLE_ID_ASC - RESOURCE_TABLE_ID_DESC - THREAD_TABLE_NAME_ASC - THREAD_TABLE_NAME_DESC - MESSAGE_TABLE_NAME_ASC - MESSAGE_TABLE_NAME_DESC - TASK_TABLE_NAME_ASC - TASK_TABLE_NAME_DESC - PROMPTS_TABLE_NAME_ASC - PROMPTS_TABLE_NAME_DESC - PLAN_TABLE_NAME_ASC - PLAN_TABLE_NAME_DESC - AGENT_TABLE_NAME_ASC - AGENT_TABLE_NAME_DESC - PERSONA_TABLE_NAME_ASC - PERSONA_TABLE_NAME_DESC - RESOURCE_TABLE_NAME_ASC - RESOURCE_TABLE_NAME_DESC - HAS_PLANS_ASC - HAS_PLANS_DESC - HAS_RESOURCES_ASC - HAS_RESOURCES_DESC - HAS_AGENTS_ASC - HAS_AGENTS_DESC - SHARED_ASC - SHARED_DESC - API_NAME_ASC - API_NAME_DESC - PRIVATE_API_NAME_ASC - PRIVATE_API_NAME_DESC + TABLE_STATS_LOG_TABLE_ID_ASC + TABLE_STATS_LOG_TABLE_ID_DESC + TABLE_STATS_LOG_TABLE_NAME_ASC + TABLE_STATS_LOG_TABLE_NAME_DESC + TABLE_STATS_DAILY_TABLE_ID_ASC + TABLE_STATS_DAILY_TABLE_ID_DESC + TABLE_STATS_DAILY_TABLE_NAME_ASC + TABLE_STATS_DAILY_TABLE_NAME_DESC + QUERY_STATS_LOG_TABLE_ID_ASC + QUERY_STATS_LOG_TABLE_ID_DESC + QUERY_STATS_LOG_TABLE_NAME_ASC + QUERY_STATS_LOG_TABLE_NAME_DESC + QUERY_STATS_DAILY_TABLE_ID_ASC + QUERY_STATS_DAILY_TABLE_ID_DESC + QUERY_STATS_DAILY_TABLE_NAME_ASC + QUERY_STATS_DAILY_TABLE_NAME_DESC + COLLECT_DB_TABLE_STATS_FUNCTION_ASC + COLLECT_DB_TABLE_STATS_FUNCTION_DESC + COLLECT_DB_QUERY_STATS_FUNCTION_ASC + COLLECT_DB_QUERY_STATS_FUNCTION_DESC + ROLLUP_DB_TABLE_STATS_DAILY_FUNCTION_ASC + ROLLUP_DB_TABLE_STATS_DAILY_FUNCTION_DESC + ROLLUP_DB_QUERY_STATS_DAILY_FUNCTION_ASC + ROLLUP_DB_QUERY_STATS_DAILY_FUNCTION_DESC + INTERVAL_ASC + INTERVAL_DESC + RETENTION_ASC + RETENTION_DESC + PREMAKE_ASC + PREMAKE_DESC SCOPE_ASC SCOPE_DESC PREFIX_ASC PREFIX_DESC - ENTITY_TABLE_ID_ASC - ENTITY_TABLE_ID_DESC - POLICIES_ASC - POLICIES_DESC - RESOURCES_ASC - RESOURCES_DESC - PROVISIONS_ASC - PROVISIONS_DESC DEFAULT_PERMISSIONS_ASC DEFAULT_PERMISSIONS_DESC + API_NAME_ASC + API_NAME_DESC + PRIVATE_API_NAME_ASC + PRIVATE_API_NAME_DESC } -"""A connection to a list of `LimitsModule` values.""" -type LimitsModuleConnection { - """A list of `LimitsModule` objects.""" - nodes: [LimitsModule]! +"""A connection to a list of `AgentModule` values.""" +type AgentModuleConnection { + """A list of `AgentModule` objects.""" + nodes: [AgentModule]! """ - A list of edges which contains the `LimitsModule` and cursor to aid in pagination. + A list of edges which contains the `AgentModule` and cursor to aid in pagination. """ - edges: [LimitsModuleEdge]! + edges: [AgentModuleEdge]! """Information to aid in pagination.""" pageInfo: PageInfo! - """The count of *all* `LimitsModule` you could get from the connection.""" + """The count of *all* `AgentModule` you could get from the connection.""" totalCount: Int! } -type LimitsModule { +type AgentModule { id: UUID! databaseId: UUID! + entityField: String schemaId: UUID! privateSchemaId: UUID! publicSchemaName: String privateSchemaName: String - tableId: UUID! - tableName: String! - defaultTableId: UUID! - defaultTableName: String! - limitIncrementFunction: String! - limitDecrementFunction: String! - limitIncrementTrigger: String! - limitDecrementTrigger: String! - limitUpdateTrigger: String! - limitCheckFunction: String! - limitCreditsTableId: UUID - eventsTableId: UUID - creditCodesTableId: UUID - creditCodeItemsTableId: UUID - creditRedemptionsTableId: UUID - aggregateTableId: UUID - limitCapsTableId: UUID - limitCapsDefaultsTableId: UUID - capCheckTrigger: String! - resolveCapFunction: String! - limitWarningsTableId: UUID - limitWarningStateTableId: UUID - limitCheckSoftFunction: String! - limitAggregateCheckSoftFunction: String! + threadTableId: UUID! + messageTableId: UUID! + taskTableId: UUID! + promptsTableId: UUID! + planTableId: UUID + agentTableId: UUID + personaTableId: UUID + resourceTableId: UUID + threadTableName: String! + messageTableName: String! + taskTableName: String! + promptsTableName: String! + planTableName: String! + agentTableName: String! + personaTableName: String! + resourceTableName: String! + hasPlans: Boolean! + hasResources: Boolean! + hasAgents: Boolean! + shared: Boolean! + apiName: String + privateApiName: String scope: String! prefix: String! entityTableId: UUID - actorTableId: UUID! - apiName: String - privateApiName: String + policies: JSON + resources: JSON + provisions: JSON + defaultPermissions: [String] } -"""A `LimitsModule` edge in the connection.""" -type LimitsModuleEdge { +"""A `AgentModule` edge in the connection.""" +type AgentModuleEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `LimitsModule` at the end of the edge.""" - node: LimitsModule + """The `AgentModule` at the end of the edge.""" + node: AgentModule } """ -A filter to be used against `LimitsModule` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `AgentModule` object types. All fields are combined with a logical ‘and.’ """ -input LimitsModuleFilter { +input AgentModuleFilter { """Filter by the object’s `id` field.""" id: UUIDFilter """Filter by the object’s `databaseId` field.""" databaseId: UUIDFilter + """Filter by the object’s `entityField` field.""" + entityField: StringFilter + """Filter by the object’s `schemaId` field.""" schemaId: UUIDFilter @@ -11221,77 +12149,71 @@ input LimitsModuleFilter { """Filter by the object’s `privateSchemaName` field.""" privateSchemaName: StringFilter - """Filter by the object’s `tableId` field.""" - tableId: UUIDFilter - - """Filter by the object’s `tableName` field.""" - tableName: StringFilter - - """Filter by the object’s `defaultTableId` field.""" - defaultTableId: UUIDFilter + """Filter by the object’s `threadTableId` field.""" + threadTableId: UUIDFilter - """Filter by the object’s `defaultTableName` field.""" - defaultTableName: StringFilter + """Filter by the object’s `messageTableId` field.""" + messageTableId: UUIDFilter - """Filter by the object’s `limitIncrementFunction` field.""" - limitIncrementFunction: StringFilter + """Filter by the object’s `taskTableId` field.""" + taskTableId: UUIDFilter - """Filter by the object’s `limitDecrementFunction` field.""" - limitDecrementFunction: StringFilter + """Filter by the object’s `promptsTableId` field.""" + promptsTableId: UUIDFilter - """Filter by the object’s `limitIncrementTrigger` field.""" - limitIncrementTrigger: StringFilter + """Filter by the object’s `planTableId` field.""" + planTableId: UUIDFilter - """Filter by the object’s `limitDecrementTrigger` field.""" - limitDecrementTrigger: StringFilter + """Filter by the object’s `agentTableId` field.""" + agentTableId: UUIDFilter - """Filter by the object’s `limitUpdateTrigger` field.""" - limitUpdateTrigger: StringFilter + """Filter by the object’s `personaTableId` field.""" + personaTableId: UUIDFilter - """Filter by the object’s `limitCheckFunction` field.""" - limitCheckFunction: StringFilter + """Filter by the object’s `resourceTableId` field.""" + resourceTableId: UUIDFilter - """Filter by the object’s `limitCreditsTableId` field.""" - limitCreditsTableId: UUIDFilter + """Filter by the object’s `threadTableName` field.""" + threadTableName: StringFilter - """Filter by the object’s `eventsTableId` field.""" - eventsTableId: UUIDFilter + """Filter by the object’s `messageTableName` field.""" + messageTableName: StringFilter - """Filter by the object’s `creditCodesTableId` field.""" - creditCodesTableId: UUIDFilter + """Filter by the object’s `taskTableName` field.""" + taskTableName: StringFilter - """Filter by the object’s `creditCodeItemsTableId` field.""" - creditCodeItemsTableId: UUIDFilter + """Filter by the object’s `promptsTableName` field.""" + promptsTableName: StringFilter - """Filter by the object’s `creditRedemptionsTableId` field.""" - creditRedemptionsTableId: UUIDFilter + """Filter by the object’s `planTableName` field.""" + planTableName: StringFilter - """Filter by the object’s `aggregateTableId` field.""" - aggregateTableId: UUIDFilter + """Filter by the object’s `agentTableName` field.""" + agentTableName: StringFilter - """Filter by the object’s `limitCapsTableId` field.""" - limitCapsTableId: UUIDFilter + """Filter by the object’s `personaTableName` field.""" + personaTableName: StringFilter - """Filter by the object’s `limitCapsDefaultsTableId` field.""" - limitCapsDefaultsTableId: UUIDFilter + """Filter by the object’s `resourceTableName` field.""" + resourceTableName: StringFilter - """Filter by the object’s `capCheckTrigger` field.""" - capCheckTrigger: StringFilter + """Filter by the object’s `hasPlans` field.""" + hasPlans: BooleanFilter - """Filter by the object’s `resolveCapFunction` field.""" - resolveCapFunction: StringFilter + """Filter by the object’s `hasResources` field.""" + hasResources: BooleanFilter - """Filter by the object’s `limitWarningsTableId` field.""" - limitWarningsTableId: UUIDFilter + """Filter by the object’s `hasAgents` field.""" + hasAgents: BooleanFilter - """Filter by the object’s `limitWarningStateTableId` field.""" - limitWarningStateTableId: UUIDFilter + """Filter by the object’s `shared` field.""" + shared: BooleanFilter - """Filter by the object’s `limitCheckSoftFunction` field.""" - limitCheckSoftFunction: StringFilter + """Filter by the object’s `apiName` field.""" + apiName: StringFilter - """Filter by the object’s `limitAggregateCheckSoftFunction` field.""" - limitAggregateCheckSoftFunction: StringFilter + """Filter by the object’s `privateApiName` field.""" + privateApiName: StringFilter """Filter by the object’s `scope` field.""" scope: StringFilter @@ -11302,27 +12224,30 @@ input LimitsModuleFilter { """Filter by the object’s `entityTableId` field.""" entityTableId: UUIDFilter - """Filter by the object’s `actorTableId` field.""" - actorTableId: UUIDFilter + """Filter by the object’s `policies` field.""" + policies: JSONFilter - """Filter by the object’s `apiName` field.""" - apiName: StringFilter + """Filter by the object’s `resources` field.""" + resources: JSONFilter - """Filter by the object’s `privateApiName` field.""" - privateApiName: StringFilter + """Filter by the object’s `provisions` field.""" + provisions: JSONFilter + + """Filter by the object’s `defaultPermissions` field.""" + defaultPermissions: StringListFilter """Checks for all expressions in this list.""" - and: [LimitsModuleFilter!] + and: [AgentModuleFilter!] """Checks for any expressions in this list.""" - or: [LimitsModuleFilter!] + or: [AgentModuleFilter!] """Negates the expression.""" - not: LimitsModuleFilter + not: AgentModuleFilter } -"""Methods to use when ordering `LimitsModule`.""" -enum LimitsModuleOrderBy { +"""Methods to use when ordering `AgentModule`.""" +enum AgentModuleOrderBy { NATURAL PRIMARY_KEY_ASC PRIMARY_KEY_DESC @@ -11330,6 +12255,8 @@ enum LimitsModuleOrderBy { ID_DESC DATABASE_ID_ASC DATABASE_ID_DESC + ENTITY_FIELD_ASC + ENTITY_FIELD_DESC SCHEMA_ID_ASC SCHEMA_ID_DESC PRIVATE_SCHEMA_ID_ASC @@ -11338,150 +12265,145 @@ enum LimitsModuleOrderBy { PUBLIC_SCHEMA_NAME_DESC PRIVATE_SCHEMA_NAME_ASC PRIVATE_SCHEMA_NAME_DESC - TABLE_ID_ASC - TABLE_ID_DESC - TABLE_NAME_ASC - TABLE_NAME_DESC - DEFAULT_TABLE_ID_ASC - DEFAULT_TABLE_ID_DESC - DEFAULT_TABLE_NAME_ASC - DEFAULT_TABLE_NAME_DESC - LIMIT_INCREMENT_FUNCTION_ASC - LIMIT_INCREMENT_FUNCTION_DESC - LIMIT_DECREMENT_FUNCTION_ASC - LIMIT_DECREMENT_FUNCTION_DESC - LIMIT_INCREMENT_TRIGGER_ASC - LIMIT_INCREMENT_TRIGGER_DESC - LIMIT_DECREMENT_TRIGGER_ASC - LIMIT_DECREMENT_TRIGGER_DESC - LIMIT_UPDATE_TRIGGER_ASC - LIMIT_UPDATE_TRIGGER_DESC - LIMIT_CHECK_FUNCTION_ASC - LIMIT_CHECK_FUNCTION_DESC - LIMIT_CREDITS_TABLE_ID_ASC - LIMIT_CREDITS_TABLE_ID_DESC - EVENTS_TABLE_ID_ASC - EVENTS_TABLE_ID_DESC - CREDIT_CODES_TABLE_ID_ASC - CREDIT_CODES_TABLE_ID_DESC - CREDIT_CODE_ITEMS_TABLE_ID_ASC - CREDIT_CODE_ITEMS_TABLE_ID_DESC - CREDIT_REDEMPTIONS_TABLE_ID_ASC - CREDIT_REDEMPTIONS_TABLE_ID_DESC - AGGREGATE_TABLE_ID_ASC - AGGREGATE_TABLE_ID_DESC - LIMIT_CAPS_TABLE_ID_ASC - LIMIT_CAPS_TABLE_ID_DESC - LIMIT_CAPS_DEFAULTS_TABLE_ID_ASC - LIMIT_CAPS_DEFAULTS_TABLE_ID_DESC - CAP_CHECK_TRIGGER_ASC - CAP_CHECK_TRIGGER_DESC - RESOLVE_CAP_FUNCTION_ASC - RESOLVE_CAP_FUNCTION_DESC - LIMIT_WARNINGS_TABLE_ID_ASC - LIMIT_WARNINGS_TABLE_ID_DESC - LIMIT_WARNING_STATE_TABLE_ID_ASC - LIMIT_WARNING_STATE_TABLE_ID_DESC - LIMIT_CHECK_SOFT_FUNCTION_ASC - LIMIT_CHECK_SOFT_FUNCTION_DESC - LIMIT_AGGREGATE_CHECK_SOFT_FUNCTION_ASC - LIMIT_AGGREGATE_CHECK_SOFT_FUNCTION_DESC + THREAD_TABLE_ID_ASC + THREAD_TABLE_ID_DESC + MESSAGE_TABLE_ID_ASC + MESSAGE_TABLE_ID_DESC + TASK_TABLE_ID_ASC + TASK_TABLE_ID_DESC + PROMPTS_TABLE_ID_ASC + PROMPTS_TABLE_ID_DESC + PLAN_TABLE_ID_ASC + PLAN_TABLE_ID_DESC + AGENT_TABLE_ID_ASC + AGENT_TABLE_ID_DESC + PERSONA_TABLE_ID_ASC + PERSONA_TABLE_ID_DESC + RESOURCE_TABLE_ID_ASC + RESOURCE_TABLE_ID_DESC + THREAD_TABLE_NAME_ASC + THREAD_TABLE_NAME_DESC + MESSAGE_TABLE_NAME_ASC + MESSAGE_TABLE_NAME_DESC + TASK_TABLE_NAME_ASC + TASK_TABLE_NAME_DESC + PROMPTS_TABLE_NAME_ASC + PROMPTS_TABLE_NAME_DESC + PLAN_TABLE_NAME_ASC + PLAN_TABLE_NAME_DESC + AGENT_TABLE_NAME_ASC + AGENT_TABLE_NAME_DESC + PERSONA_TABLE_NAME_ASC + PERSONA_TABLE_NAME_DESC + RESOURCE_TABLE_NAME_ASC + RESOURCE_TABLE_NAME_DESC + HAS_PLANS_ASC + HAS_PLANS_DESC + HAS_RESOURCES_ASC + HAS_RESOURCES_DESC + HAS_AGENTS_ASC + HAS_AGENTS_DESC + SHARED_ASC + SHARED_DESC + API_NAME_ASC + API_NAME_DESC + PRIVATE_API_NAME_ASC + PRIVATE_API_NAME_DESC SCOPE_ASC SCOPE_DESC PREFIX_ASC PREFIX_DESC ENTITY_TABLE_ID_ASC ENTITY_TABLE_ID_DESC - ACTOR_TABLE_ID_ASC - ACTOR_TABLE_ID_DESC - API_NAME_ASC - API_NAME_DESC - PRIVATE_API_NAME_ASC - PRIVATE_API_NAME_DESC + POLICIES_ASC + POLICIES_DESC + RESOURCES_ASC + RESOURCES_DESC + PROVISIONS_ASC + PROVISIONS_DESC + DEFAULT_PERMISSIONS_ASC + DEFAULT_PERMISSIONS_DESC } -"""A connection to a list of `MembershipsModule` values.""" -type MembershipsModuleConnection { - """A list of `MembershipsModule` objects.""" - nodes: [MembershipsModule]! +"""A connection to a list of `LimitsModule` values.""" +type LimitsModuleConnection { + """A list of `LimitsModule` objects.""" + nodes: [LimitsModule]! """ - A list of edges which contains the `MembershipsModule` and cursor to aid in pagination. + A list of edges which contains the `LimitsModule` and cursor to aid in pagination. """ - edges: [MembershipsModuleEdge]! + edges: [LimitsModuleEdge]! """Information to aid in pagination.""" pageInfo: PageInfo! - """ - The count of *all* `MembershipsModule` you could get from the connection. - """ + """The count of *all* `LimitsModule` you could get from the connection.""" totalCount: Int! } -type MembershipsModule { +type LimitsModule { id: UUID! databaseId: UUID! + entityField: String schemaId: UUID! privateSchemaId: UUID! publicSchemaName: String privateSchemaName: String - membershipsTableId: UUID! - membershipsTableName: String! - membersTableId: UUID! - membersTableName: String! - membershipDefaultsTableId: UUID! - membershipDefaultsTableName: String! - membershipSettingsTableId: UUID - membershipSettingsTableName: String! - grantsTableId: UUID! - grantsTableName: String! - actorTableId: UUID! - limitsTableId: UUID! - defaultLimitsTableId: UUID! - permissionsTableId: UUID! - defaultPermissionsTableId: UUID! - sprtTableId: UUID! - adminGrantsTableId: UUID! - adminGrantsTableName: String! - ownerGrantsTableId: UUID! - ownerGrantsTableName: String! + tableId: UUID! + tableName: String! + defaultTableId: UUID! + defaultTableName: String! + limitIncrementFunction: String! + limitDecrementFunction: String! + limitIncrementTrigger: String! + limitDecrementTrigger: String! + limitUpdateTrigger: String! + limitCheckFunction: String! + limitCreditsTableId: UUID + eventsTableId: UUID + creditCodesTableId: UUID + creditCodeItemsTableId: UUID + creditRedemptionsTableId: UUID + aggregateTableId: UUID + limitCapsTableId: UUID + limitCapsDefaultsTableId: UUID + capCheckTrigger: String! + resolveCapFunction: String! + limitWarningsTableId: UUID + limitWarningStateTableId: UUID + limitCheckSoftFunction: String! + limitAggregateCheckSoftFunction: String! scope: String! prefix: String! entityTableId: UUID - entityTableOwnerId: UUID - getOrgFn: String - actorMaskCheck: String! - actorPermCheck: String! - entityIdsByMask: String - entityIdsByPerm: String - entityIdsFunction: String - memberProfilesTableId: UUID - permissionDefaultPermissionsTableId: UUID - permissionDefaultGrantsTableId: UUID + actorTableId: UUID! apiName: String privateApiName: String } -"""A `MembershipsModule` edge in the connection.""" -type MembershipsModuleEdge { +"""A `LimitsModule` edge in the connection.""" +type LimitsModuleEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `MembershipsModule` at the end of the edge.""" - node: MembershipsModule + """The `LimitsModule` at the end of the edge.""" + node: LimitsModule } """ -A filter to be used against `MembershipsModule` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `LimitsModule` object types. All fields are combined with a logical ‘and.’ """ -input MembershipsModuleFilter { +input LimitsModuleFilter { """Filter by the object’s `id` field.""" id: UUIDFilter """Filter by the object’s `databaseId` field.""" databaseId: UUIDFilter + """Filter by the object’s `entityField` field.""" + entityField: StringFilter + """Filter by the object’s `schemaId` field.""" schemaId: UUIDFilter @@ -11494,65 +12416,77 @@ input MembershipsModuleFilter { """Filter by the object’s `privateSchemaName` field.""" privateSchemaName: StringFilter - """Filter by the object’s `membershipsTableId` field.""" - membershipsTableId: UUIDFilter + """Filter by the object’s `tableId` field.""" + tableId: UUIDFilter - """Filter by the object’s `membershipsTableName` field.""" - membershipsTableName: StringFilter + """Filter by the object’s `tableName` field.""" + tableName: StringFilter - """Filter by the object’s `membersTableId` field.""" - membersTableId: UUIDFilter + """Filter by the object’s `defaultTableId` field.""" + defaultTableId: UUIDFilter - """Filter by the object’s `membersTableName` field.""" - membersTableName: StringFilter + """Filter by the object’s `defaultTableName` field.""" + defaultTableName: StringFilter - """Filter by the object’s `membershipDefaultsTableId` field.""" - membershipDefaultsTableId: UUIDFilter + """Filter by the object’s `limitIncrementFunction` field.""" + limitIncrementFunction: StringFilter - """Filter by the object’s `membershipDefaultsTableName` field.""" - membershipDefaultsTableName: StringFilter + """Filter by the object’s `limitDecrementFunction` field.""" + limitDecrementFunction: StringFilter - """Filter by the object’s `membershipSettingsTableId` field.""" - membershipSettingsTableId: UUIDFilter + """Filter by the object’s `limitIncrementTrigger` field.""" + limitIncrementTrigger: StringFilter - """Filter by the object’s `membershipSettingsTableName` field.""" - membershipSettingsTableName: StringFilter + """Filter by the object’s `limitDecrementTrigger` field.""" + limitDecrementTrigger: StringFilter - """Filter by the object’s `grantsTableId` field.""" - grantsTableId: UUIDFilter + """Filter by the object’s `limitUpdateTrigger` field.""" + limitUpdateTrigger: StringFilter - """Filter by the object’s `grantsTableName` field.""" - grantsTableName: StringFilter + """Filter by the object’s `limitCheckFunction` field.""" + limitCheckFunction: StringFilter - """Filter by the object’s `actorTableId` field.""" - actorTableId: UUIDFilter + """Filter by the object’s `limitCreditsTableId` field.""" + limitCreditsTableId: UUIDFilter - """Filter by the object’s `limitsTableId` field.""" - limitsTableId: UUIDFilter + """Filter by the object’s `eventsTableId` field.""" + eventsTableId: UUIDFilter - """Filter by the object’s `defaultLimitsTableId` field.""" - defaultLimitsTableId: UUIDFilter + """Filter by the object’s `creditCodesTableId` field.""" + creditCodesTableId: UUIDFilter - """Filter by the object’s `permissionsTableId` field.""" - permissionsTableId: UUIDFilter + """Filter by the object’s `creditCodeItemsTableId` field.""" + creditCodeItemsTableId: UUIDFilter - """Filter by the object’s `defaultPermissionsTableId` field.""" - defaultPermissionsTableId: UUIDFilter + """Filter by the object’s `creditRedemptionsTableId` field.""" + creditRedemptionsTableId: UUIDFilter - """Filter by the object’s `sprtTableId` field.""" - sprtTableId: UUIDFilter + """Filter by the object’s `aggregateTableId` field.""" + aggregateTableId: UUIDFilter - """Filter by the object’s `adminGrantsTableId` field.""" - adminGrantsTableId: UUIDFilter + """Filter by the object’s `limitCapsTableId` field.""" + limitCapsTableId: UUIDFilter - """Filter by the object’s `adminGrantsTableName` field.""" - adminGrantsTableName: StringFilter + """Filter by the object’s `limitCapsDefaultsTableId` field.""" + limitCapsDefaultsTableId: UUIDFilter - """Filter by the object’s `ownerGrantsTableId` field.""" - ownerGrantsTableId: UUIDFilter + """Filter by the object’s `capCheckTrigger` field.""" + capCheckTrigger: StringFilter - """Filter by the object’s `ownerGrantsTableName` field.""" - ownerGrantsTableName: StringFilter + """Filter by the object’s `resolveCapFunction` field.""" + resolveCapFunction: StringFilter + + """Filter by the object’s `limitWarningsTableId` field.""" + limitWarningsTableId: UUIDFilter + + """Filter by the object’s `limitWarningStateTableId` field.""" + limitWarningStateTableId: UUIDFilter + + """Filter by the object’s `limitCheckSoftFunction` field.""" + limitCheckSoftFunction: StringFilter + + """Filter by the object’s `limitAggregateCheckSoftFunction` field.""" + limitAggregateCheckSoftFunction: StringFilter """Filter by the object’s `scope` field.""" scope: StringFilter @@ -11563,35 +12497,8 @@ input MembershipsModuleFilter { """Filter by the object’s `entityTableId` field.""" entityTableId: UUIDFilter - """Filter by the object’s `entityTableOwnerId` field.""" - entityTableOwnerId: UUIDFilter - - """Filter by the object’s `getOrgFn` field.""" - getOrgFn: StringFilter - - """Filter by the object’s `actorMaskCheck` field.""" - actorMaskCheck: StringFilter - - """Filter by the object’s `actorPermCheck` field.""" - actorPermCheck: StringFilter - - """Filter by the object’s `entityIdsByMask` field.""" - entityIdsByMask: StringFilter - - """Filter by the object’s `entityIdsByPerm` field.""" - entityIdsByPerm: StringFilter - - """Filter by the object’s `entityIdsFunction` field.""" - entityIdsFunction: StringFilter - - """Filter by the object’s `memberProfilesTableId` field.""" - memberProfilesTableId: UUIDFilter - - """Filter by the object’s `permissionDefaultPermissionsTableId` field.""" - permissionDefaultPermissionsTableId: UUIDFilter - - """Filter by the object’s `permissionDefaultGrantsTableId` field.""" - permissionDefaultGrantsTableId: UUIDFilter + """Filter by the object’s `actorTableId` field.""" + actorTableId: UUIDFilter """Filter by the object’s `apiName` field.""" apiName: StringFilter @@ -11600,17 +12507,17 @@ input MembershipsModuleFilter { privateApiName: StringFilter """Checks for all expressions in this list.""" - and: [MembershipsModuleFilter!] + and: [LimitsModuleFilter!] """Checks for any expressions in this list.""" - or: [MembershipsModuleFilter!] + or: [LimitsModuleFilter!] """Negates the expression.""" - not: MembershipsModuleFilter + not: LimitsModuleFilter } -"""Methods to use when ordering `MembershipsModule`.""" -enum MembershipsModuleOrderBy { +"""Methods to use when ordering `LimitsModule`.""" +enum LimitsModuleOrderBy { NATURAL PRIMARY_KEY_ASC PRIMARY_KEY_DESC @@ -11618,6 +12525,8 @@ enum MembershipsModuleOrderBy { ID_DESC DATABASE_ID_ASC DATABASE_ID_DESC + ENTITY_FIELD_ASC + ENTITY_FIELD_DESC SCHEMA_ID_ASC SCHEMA_ID_DESC PRIVATE_SCHEMA_ID_ASC @@ -11626,72 +12535,62 @@ enum MembershipsModuleOrderBy { PUBLIC_SCHEMA_NAME_DESC PRIVATE_SCHEMA_NAME_ASC PRIVATE_SCHEMA_NAME_DESC - MEMBERSHIPS_TABLE_ID_ASC - MEMBERSHIPS_TABLE_ID_DESC - MEMBERSHIPS_TABLE_NAME_ASC - MEMBERSHIPS_TABLE_NAME_DESC - MEMBERS_TABLE_ID_ASC - MEMBERS_TABLE_ID_DESC - MEMBERS_TABLE_NAME_ASC - MEMBERS_TABLE_NAME_DESC - MEMBERSHIP_DEFAULTS_TABLE_ID_ASC - MEMBERSHIP_DEFAULTS_TABLE_ID_DESC - MEMBERSHIP_DEFAULTS_TABLE_NAME_ASC - MEMBERSHIP_DEFAULTS_TABLE_NAME_DESC - MEMBERSHIP_SETTINGS_TABLE_ID_ASC - MEMBERSHIP_SETTINGS_TABLE_ID_DESC - MEMBERSHIP_SETTINGS_TABLE_NAME_ASC - MEMBERSHIP_SETTINGS_TABLE_NAME_DESC - GRANTS_TABLE_ID_ASC - GRANTS_TABLE_ID_DESC - GRANTS_TABLE_NAME_ASC - GRANTS_TABLE_NAME_DESC - ACTOR_TABLE_ID_ASC - ACTOR_TABLE_ID_DESC - LIMITS_TABLE_ID_ASC - LIMITS_TABLE_ID_DESC - DEFAULT_LIMITS_TABLE_ID_ASC - DEFAULT_LIMITS_TABLE_ID_DESC - PERMISSIONS_TABLE_ID_ASC - PERMISSIONS_TABLE_ID_DESC - DEFAULT_PERMISSIONS_TABLE_ID_ASC - DEFAULT_PERMISSIONS_TABLE_ID_DESC - SPRT_TABLE_ID_ASC - SPRT_TABLE_ID_DESC - ADMIN_GRANTS_TABLE_ID_ASC - ADMIN_GRANTS_TABLE_ID_DESC - ADMIN_GRANTS_TABLE_NAME_ASC - ADMIN_GRANTS_TABLE_NAME_DESC - OWNER_GRANTS_TABLE_ID_ASC - OWNER_GRANTS_TABLE_ID_DESC - OWNER_GRANTS_TABLE_NAME_ASC - OWNER_GRANTS_TABLE_NAME_DESC + TABLE_ID_ASC + TABLE_ID_DESC + TABLE_NAME_ASC + TABLE_NAME_DESC + DEFAULT_TABLE_ID_ASC + DEFAULT_TABLE_ID_DESC + DEFAULT_TABLE_NAME_ASC + DEFAULT_TABLE_NAME_DESC + LIMIT_INCREMENT_FUNCTION_ASC + LIMIT_INCREMENT_FUNCTION_DESC + LIMIT_DECREMENT_FUNCTION_ASC + LIMIT_DECREMENT_FUNCTION_DESC + LIMIT_INCREMENT_TRIGGER_ASC + LIMIT_INCREMENT_TRIGGER_DESC + LIMIT_DECREMENT_TRIGGER_ASC + LIMIT_DECREMENT_TRIGGER_DESC + LIMIT_UPDATE_TRIGGER_ASC + LIMIT_UPDATE_TRIGGER_DESC + LIMIT_CHECK_FUNCTION_ASC + LIMIT_CHECK_FUNCTION_DESC + LIMIT_CREDITS_TABLE_ID_ASC + LIMIT_CREDITS_TABLE_ID_DESC + EVENTS_TABLE_ID_ASC + EVENTS_TABLE_ID_DESC + CREDIT_CODES_TABLE_ID_ASC + CREDIT_CODES_TABLE_ID_DESC + CREDIT_CODE_ITEMS_TABLE_ID_ASC + CREDIT_CODE_ITEMS_TABLE_ID_DESC + CREDIT_REDEMPTIONS_TABLE_ID_ASC + CREDIT_REDEMPTIONS_TABLE_ID_DESC + AGGREGATE_TABLE_ID_ASC + AGGREGATE_TABLE_ID_DESC + LIMIT_CAPS_TABLE_ID_ASC + LIMIT_CAPS_TABLE_ID_DESC + LIMIT_CAPS_DEFAULTS_TABLE_ID_ASC + LIMIT_CAPS_DEFAULTS_TABLE_ID_DESC + CAP_CHECK_TRIGGER_ASC + CAP_CHECK_TRIGGER_DESC + RESOLVE_CAP_FUNCTION_ASC + RESOLVE_CAP_FUNCTION_DESC + LIMIT_WARNINGS_TABLE_ID_ASC + LIMIT_WARNINGS_TABLE_ID_DESC + LIMIT_WARNING_STATE_TABLE_ID_ASC + LIMIT_WARNING_STATE_TABLE_ID_DESC + LIMIT_CHECK_SOFT_FUNCTION_ASC + LIMIT_CHECK_SOFT_FUNCTION_DESC + LIMIT_AGGREGATE_CHECK_SOFT_FUNCTION_ASC + LIMIT_AGGREGATE_CHECK_SOFT_FUNCTION_DESC SCOPE_ASC SCOPE_DESC PREFIX_ASC PREFIX_DESC - ENTITY_TABLE_ID_ASC - ENTITY_TABLE_ID_DESC - ENTITY_TABLE_OWNER_ID_ASC - ENTITY_TABLE_OWNER_ID_DESC - GET_ORG_FN_ASC - GET_ORG_FN_DESC - ACTOR_MASK_CHECK_ASC - ACTOR_MASK_CHECK_DESC - ACTOR_PERM_CHECK_ASC - ACTOR_PERM_CHECK_DESC - ENTITY_IDS_BY_MASK_ASC - ENTITY_IDS_BY_MASK_DESC - ENTITY_IDS_BY_PERM_ASC - ENTITY_IDS_BY_PERM_DESC - ENTITY_IDS_FUNCTION_ASC - ENTITY_IDS_FUNCTION_DESC - MEMBER_PROFILES_TABLE_ID_ASC - MEMBER_PROFILES_TABLE_ID_DESC - PERMISSION_DEFAULT_PERMISSIONS_TABLE_ID_ASC - PERMISSION_DEFAULT_PERMISSIONS_TABLE_ID_DESC - PERMISSION_DEFAULT_GRANTS_TABLE_ID_ASC - PERMISSION_DEFAULT_GRANTS_TABLE_ID_DESC + ENTITY_TABLE_ID_ASC + ENTITY_TABLE_ID_DESC + ACTOR_TABLE_ID_ASC + ACTOR_TABLE_ID_DESC API_NAME_ASC API_NAME_DESC PRIVATE_API_NAME_ASC @@ -12013,7 +12912,6 @@ type EntityTypeProvision { outDefinitionsTableId: UUID outInvocationsTableId: UUID outExecutionLogsTableId: UUID - outSecretDefinitionsTableId: UUID outGraphModuleId: UUID outGraphsTableId: UUID outAgentModuleId: UUID @@ -12140,9 +13038,6 @@ input EntityTypeProvisionFilter { """Filter by the object’s `outExecutionLogsTableId` field.""" outExecutionLogsTableId: UUIDFilter - """Filter by the object’s `outSecretDefinitionsTableId` field.""" - outSecretDefinitionsTableId: UUIDFilter - """Filter by the object’s `outGraphModuleId` field.""" outGraphModuleId: UUIDFilter @@ -12239,8 +13134,6 @@ enum EntityTypeProvisionOrderBy { OUT_INVOCATIONS_TABLE_ID_DESC OUT_EXECUTION_LOGS_TABLE_ID_ASC OUT_EXECUTION_LOGS_TABLE_ID_DESC - OUT_SECRET_DEFINITIONS_TABLE_ID_ASC - OUT_SECRET_DEFINITIONS_TABLE_ID_DESC OUT_GRAPH_MODULE_ID_ASC OUT_GRAPH_MODULE_ID_DESC OUT_GRAPHS_TABLE_ID_ASC @@ -12282,6 +13175,7 @@ type StorageModule { policies: JSON provisions: JSON entityTableId: UUID + entityField: String endpoint: String publicUrlPrefix: String provider: String @@ -12373,6 +13267,9 @@ input StorageModuleFilter { """Filter by the object’s `entityTableId` field.""" entityTableId: UUIDFilter + """Filter by the object’s `entityField` field.""" + entityField: StringFilter + """Filter by the object’s `endpoint` field.""" endpoint: StringFilter @@ -12532,6 +13429,8 @@ enum StorageModuleOrderBy { PROVISIONS_DESC ENTITY_TABLE_ID_ASC ENTITY_TABLE_ID_DESC + ENTITY_FIELD_ASC + ENTITY_FIELD_DESC ENDPOINT_ASC ENDPOINT_DESC PUBLIC_URL_PREFIX_ASC @@ -12582,6 +13481,310 @@ enum StorageModuleOrderBy { PRIVATE_API_NAME_DESC } +"""A connection to a list of `MembershipsModule` values.""" +type MembershipsModuleConnection { + """A list of `MembershipsModule` objects.""" + nodes: [MembershipsModule]! + + """ + A list of edges which contains the `MembershipsModule` and cursor to aid in pagination. + """ + edges: [MembershipsModuleEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `MembershipsModule` you could get from the connection. + """ + totalCount: Int! +} + +type MembershipsModule { + id: UUID! + databaseId: UUID! + entityField: String + schemaId: UUID! + privateSchemaId: UUID! + publicSchemaName: String + privateSchemaName: String + membershipsTableId: UUID! + membershipsTableName: String! + membersTableId: UUID! + membersTableName: String! + membershipDefaultsTableId: UUID! + membershipDefaultsTableName: String! + membershipSettingsTableId: UUID + membershipSettingsTableName: String! + grantsTableId: UUID! + grantsTableName: String! + actorTableId: UUID! + limitsTableId: UUID! + defaultLimitsTableId: UUID! + permissionsTableId: UUID! + defaultPermissionsTableId: UUID! + sprtTableId: UUID! + adminGrantsTableId: UUID! + adminGrantsTableName: String! + ownerGrantsTableId: UUID! + ownerGrantsTableName: String! + scope: String! + prefix: String! + entityTableId: UUID + entityTableOwnerId: UUID + getOrgFn: String + actorMaskCheck: String! + actorPermCheck: String! + entityIdsByMask: String + entityIdsByPerm: String + entityIdsFunction: String + memberProfilesTableId: UUID + permissionDefaultPermissionsTableId: UUID + permissionDefaultGrantsTableId: UUID + apiName: String + privateApiName: String +} + +"""A `MembershipsModule` edge in the connection.""" +type MembershipsModuleEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `MembershipsModule` at the end of the edge.""" + node: MembershipsModule +} + +""" +A filter to be used against `MembershipsModule` object types. All fields are combined with a logical ‘and.’ +""" +input MembershipsModuleFilter { + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `databaseId` field.""" + databaseId: UUIDFilter + + """Filter by the object’s `entityField` field.""" + entityField: StringFilter + + """Filter by the object’s `schemaId` field.""" + schemaId: UUIDFilter + + """Filter by the object’s `privateSchemaId` field.""" + privateSchemaId: UUIDFilter + + """Filter by the object’s `publicSchemaName` field.""" + publicSchemaName: StringFilter + + """Filter by the object’s `privateSchemaName` field.""" + privateSchemaName: StringFilter + + """Filter by the object’s `membershipsTableId` field.""" + membershipsTableId: UUIDFilter + + """Filter by the object’s `membershipsTableName` field.""" + membershipsTableName: StringFilter + + """Filter by the object’s `membersTableId` field.""" + membersTableId: UUIDFilter + + """Filter by the object’s `membersTableName` field.""" + membersTableName: StringFilter + + """Filter by the object’s `membershipDefaultsTableId` field.""" + membershipDefaultsTableId: UUIDFilter + + """Filter by the object’s `membershipDefaultsTableName` field.""" + membershipDefaultsTableName: StringFilter + + """Filter by the object’s `membershipSettingsTableId` field.""" + membershipSettingsTableId: UUIDFilter + + """Filter by the object’s `membershipSettingsTableName` field.""" + membershipSettingsTableName: StringFilter + + """Filter by the object’s `grantsTableId` field.""" + grantsTableId: UUIDFilter + + """Filter by the object’s `grantsTableName` field.""" + grantsTableName: StringFilter + + """Filter by the object’s `actorTableId` field.""" + actorTableId: UUIDFilter + + """Filter by the object’s `limitsTableId` field.""" + limitsTableId: UUIDFilter + + """Filter by the object’s `defaultLimitsTableId` field.""" + defaultLimitsTableId: UUIDFilter + + """Filter by the object’s `permissionsTableId` field.""" + permissionsTableId: UUIDFilter + + """Filter by the object’s `defaultPermissionsTableId` field.""" + defaultPermissionsTableId: UUIDFilter + + """Filter by the object’s `sprtTableId` field.""" + sprtTableId: UUIDFilter + + """Filter by the object’s `adminGrantsTableId` field.""" + adminGrantsTableId: UUIDFilter + + """Filter by the object’s `adminGrantsTableName` field.""" + adminGrantsTableName: StringFilter + + """Filter by the object’s `ownerGrantsTableId` field.""" + ownerGrantsTableId: UUIDFilter + + """Filter by the object’s `ownerGrantsTableName` field.""" + ownerGrantsTableName: StringFilter + + """Filter by the object’s `scope` field.""" + scope: StringFilter + + """Filter by the object’s `prefix` field.""" + prefix: StringFilter + + """Filter by the object’s `entityTableId` field.""" + entityTableId: UUIDFilter + + """Filter by the object’s `entityTableOwnerId` field.""" + entityTableOwnerId: UUIDFilter + + """Filter by the object’s `getOrgFn` field.""" + getOrgFn: StringFilter + + """Filter by the object’s `actorMaskCheck` field.""" + actorMaskCheck: StringFilter + + """Filter by the object’s `actorPermCheck` field.""" + actorPermCheck: StringFilter + + """Filter by the object’s `entityIdsByMask` field.""" + entityIdsByMask: StringFilter + + """Filter by the object’s `entityIdsByPerm` field.""" + entityIdsByPerm: StringFilter + + """Filter by the object’s `entityIdsFunction` field.""" + entityIdsFunction: StringFilter + + """Filter by the object’s `memberProfilesTableId` field.""" + memberProfilesTableId: UUIDFilter + + """Filter by the object’s `permissionDefaultPermissionsTableId` field.""" + permissionDefaultPermissionsTableId: UUIDFilter + + """Filter by the object’s `permissionDefaultGrantsTableId` field.""" + permissionDefaultGrantsTableId: UUIDFilter + + """Filter by the object’s `apiName` field.""" + apiName: StringFilter + + """Filter by the object’s `privateApiName` field.""" + privateApiName: StringFilter + + """Checks for all expressions in this list.""" + and: [MembershipsModuleFilter!] + + """Checks for any expressions in this list.""" + or: [MembershipsModuleFilter!] + + """Negates the expression.""" + not: MembershipsModuleFilter +} + +"""Methods to use when ordering `MembershipsModule`.""" +enum MembershipsModuleOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC + ENTITY_FIELD_ASC + ENTITY_FIELD_DESC + SCHEMA_ID_ASC + SCHEMA_ID_DESC + PRIVATE_SCHEMA_ID_ASC + PRIVATE_SCHEMA_ID_DESC + PUBLIC_SCHEMA_NAME_ASC + PUBLIC_SCHEMA_NAME_DESC + PRIVATE_SCHEMA_NAME_ASC + PRIVATE_SCHEMA_NAME_DESC + MEMBERSHIPS_TABLE_ID_ASC + MEMBERSHIPS_TABLE_ID_DESC + MEMBERSHIPS_TABLE_NAME_ASC + MEMBERSHIPS_TABLE_NAME_DESC + MEMBERS_TABLE_ID_ASC + MEMBERS_TABLE_ID_DESC + MEMBERS_TABLE_NAME_ASC + MEMBERS_TABLE_NAME_DESC + MEMBERSHIP_DEFAULTS_TABLE_ID_ASC + MEMBERSHIP_DEFAULTS_TABLE_ID_DESC + MEMBERSHIP_DEFAULTS_TABLE_NAME_ASC + MEMBERSHIP_DEFAULTS_TABLE_NAME_DESC + MEMBERSHIP_SETTINGS_TABLE_ID_ASC + MEMBERSHIP_SETTINGS_TABLE_ID_DESC + MEMBERSHIP_SETTINGS_TABLE_NAME_ASC + MEMBERSHIP_SETTINGS_TABLE_NAME_DESC + GRANTS_TABLE_ID_ASC + GRANTS_TABLE_ID_DESC + GRANTS_TABLE_NAME_ASC + GRANTS_TABLE_NAME_DESC + ACTOR_TABLE_ID_ASC + ACTOR_TABLE_ID_DESC + LIMITS_TABLE_ID_ASC + LIMITS_TABLE_ID_DESC + DEFAULT_LIMITS_TABLE_ID_ASC + DEFAULT_LIMITS_TABLE_ID_DESC + PERMISSIONS_TABLE_ID_ASC + PERMISSIONS_TABLE_ID_DESC + DEFAULT_PERMISSIONS_TABLE_ID_ASC + DEFAULT_PERMISSIONS_TABLE_ID_DESC + SPRT_TABLE_ID_ASC + SPRT_TABLE_ID_DESC + ADMIN_GRANTS_TABLE_ID_ASC + ADMIN_GRANTS_TABLE_ID_DESC + ADMIN_GRANTS_TABLE_NAME_ASC + ADMIN_GRANTS_TABLE_NAME_DESC + OWNER_GRANTS_TABLE_ID_ASC + OWNER_GRANTS_TABLE_ID_DESC + OWNER_GRANTS_TABLE_NAME_ASC + OWNER_GRANTS_TABLE_NAME_DESC + SCOPE_ASC + SCOPE_DESC + PREFIX_ASC + PREFIX_DESC + ENTITY_TABLE_ID_ASC + ENTITY_TABLE_ID_DESC + ENTITY_TABLE_OWNER_ID_ASC + ENTITY_TABLE_OWNER_ID_DESC + GET_ORG_FN_ASC + GET_ORG_FN_DESC + ACTOR_MASK_CHECK_ASC + ACTOR_MASK_CHECK_DESC + ACTOR_PERM_CHECK_ASC + ACTOR_PERM_CHECK_DESC + ENTITY_IDS_BY_MASK_ASC + ENTITY_IDS_BY_MASK_DESC + ENTITY_IDS_BY_PERM_ASC + ENTITY_IDS_BY_PERM_DESC + ENTITY_IDS_FUNCTION_ASC + ENTITY_IDS_FUNCTION_DESC + MEMBER_PROFILES_TABLE_ID_ASC + MEMBER_PROFILES_TABLE_ID_DESC + PERMISSION_DEFAULT_PERMISSIONS_TABLE_ID_ASC + PERMISSION_DEFAULT_PERMISSIONS_TABLE_ID_DESC + PERMISSION_DEFAULT_GRANTS_TABLE_ID_ASC + PERMISSION_DEFAULT_GRANTS_TABLE_ID_DESC + API_NAME_ASC + API_NAME_DESC + PRIVATE_API_NAME_ASC + PRIVATE_API_NAME_DESC +} + """A connection to a list of `EventsModule` values.""" type EventsModuleConnection { """A list of `EventsModule` objects.""" @@ -12602,6 +13805,7 @@ type EventsModuleConnection { type EventsModule { id: UUID! databaseId: UUID! + entityField: String schemaId: UUID! privateSchemaId: UUID! publicSchemaName: String @@ -12628,7 +13832,6 @@ type EventsModule { tgEventBool: String! upsertAggregate: String! tgUpdateAggregates: String! - pruneEvents: String! stepsRequired: String! levelAchieved: String! tgCheckAchievements: String! @@ -12665,6 +13868,9 @@ input EventsModuleFilter { """Filter by the object’s `databaseId` field.""" databaseId: UUIDFilter + """Filter by the object’s `entityField` field.""" + entityField: StringFilter + """Filter by the object’s `schemaId` field.""" schemaId: UUIDFilter @@ -12743,9 +13949,6 @@ input EventsModuleFilter { """Filter by the object’s `tgUpdateAggregates` field.""" tgUpdateAggregates: StringFilter - """Filter by the object’s `pruneEvents` field.""" - pruneEvents: StringFilter - """Filter by the object’s `stepsRequired` field.""" stepsRequired: StringFilter @@ -12810,6 +14013,8 @@ enum EventsModuleOrderBy { ID_DESC DATABASE_ID_ASC DATABASE_ID_DESC + ENTITY_FIELD_ASC + ENTITY_FIELD_DESC SCHEMA_ID_ASC SCHEMA_ID_DESC PRIVATE_SCHEMA_ID_ASC @@ -12862,8 +14067,6 @@ enum EventsModuleOrderBy { UPSERT_AGGREGATE_DESC TG_UPDATE_AGGREGATES_ASC TG_UPDATE_AGGREGATES_DESC - PRUNE_EVENTS_ASC - PRUNE_EVENTS_DESC STEPS_REQUIRED_ASC STEPS_REQUIRED_DESC LEVEL_ACHIEVED_ASC @@ -13252,14 +14455,6 @@ type Mutation { input: CreateMembershipTypesModuleInput! ): CreateMembershipTypesModulePayload - """Creates a single `UserStateModule`.""" - createUserStateModule( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateUserStateModuleInput! - ): CreateUserStateModulePayload - """Creates a single `SessionSecretsModule`.""" createSessionSecretsModule( """ @@ -13268,14 +14463,6 @@ type Mutation { input: CreateSessionSecretsModuleInput! ): CreateSessionSecretsModulePayload - """Creates a single `ConfigSecretsOrgModule`.""" - createConfigSecretsOrgModule( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateConfigSecretsOrgModuleInput! - ): CreateConfigSecretsOrgModulePayload - """Creates a single `DevicesModule`.""" createDevicesModule( """ @@ -13292,14 +14479,6 @@ type Mutation { input: CreateI18NModuleInput! ): CreateI18NModulePayload - """Creates a single `UserCredentialsModule`.""" - createUserCredentialsModule( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateUserCredentialsModuleInput! - ): CreateUserCredentialsModulePayload - """Creates a single `UserSettingsModule`.""" createUserSettingsModule( """ @@ -13308,13 +14487,21 @@ type Mutation { input: CreateUserSettingsModuleInput! ): CreateUserSettingsModulePayload - """Creates a single `ConfigSecretsUserModule`.""" - createConfigSecretsUserModule( + """Creates a single `UserStateModule`.""" + createUserStateModule( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: CreateConfigSecretsUserModuleInput! - ): CreateConfigSecretsUserModulePayload + input: CreateUserStateModuleInput! + ): CreateUserStateModulePayload + + """Creates a single `UserCredentialsModule`.""" + createUserCredentialsModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateUserCredentialsModuleInput! + ): CreateUserCredentialsModulePayload """Creates a single `ConnectedAccountsModule`.""" createConnectedAccountsModule( @@ -13364,6 +14551,14 @@ type Mutation { input: CreateWebauthnCredentialsModuleInput! ): CreateWebauthnCredentialsModulePayload + """Creates a single `ConfigSecretsUserModule`.""" + createConfigSecretsUserModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateConfigSecretsUserModuleInput! + ): CreateConfigSecretsUserModulePayload + """Creates a single `CryptoAddressesModule`.""" createCryptoAddressesModule( """ @@ -13380,14 +14575,6 @@ type Mutation { input: CreateDenormalizedTableFieldInput! ): CreateDenormalizedTableFieldPayload - """Creates a single `IdentityProvidersModule`.""" - createIdentityProvidersModule( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateIdentityProvidersModuleInput! - ): CreateIdentityProvidersModulePayload - """Creates a single `RlsModule`.""" createRlsModule( """ @@ -13436,37 +14623,61 @@ type Mutation { input: CreateSecureTableProvisionInput! ): CreateSecureTableProvisionPayload - """Creates a single `DatabaseProvisionModule`.""" - createDatabaseProvisionModule( + """Creates a single `IdentityProvidersModule`.""" + createIdentityProvidersModule( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: CreateDatabaseProvisionModuleInput! - ): CreateDatabaseProvisionModulePayload + input: CreateIdentityProvidersModuleInput! + ): CreateIdentityProvidersModulePayload - """Creates a single `ConfigSecretsModule`.""" - createConfigSecretsModule( + """Creates a single `IntegrationProvidersModule`.""" + createIntegrationProvidersModule( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: CreateConfigSecretsModuleInput! - ): CreateConfigSecretsModulePayload + input: CreateIntegrationProvidersModuleInput! + ): CreateIntegrationProvidersModulePayload - """Creates a single `GraphModule`.""" - createGraphModule( + """Creates a single `DbPoolConfig`.""" + createDbPoolConfig( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: CreateGraphModuleInput! - ): CreateGraphModulePayload + input: CreateDbPoolConfigInput! + ): CreateDbPoolConfigPayload - """Creates a single `MerkleStoreModule`.""" - createMerkleStoreModule( + """Creates a single `RealtimeModule`.""" + createRealtimeModule( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: CreateMerkleStoreModuleInput! - ): CreateMerkleStoreModulePayload + input: CreateRealtimeModuleInput! + ): CreateRealtimeModulePayload + + """Creates a single `InfraSecretsModule`.""" + createInfraSecretsModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateInfraSecretsModuleInput! + ): CreateInfraSecretsModulePayload + + """Creates a single `InternalSecretsModule`.""" + createInternalSecretsModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateInternalSecretsModuleInput! + ): CreateInternalSecretsModulePayload + + """Creates a single `DbPresetModule`.""" + createDbPresetModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateDbPresetModuleInput! + ): CreateDbPresetModulePayload """Creates a single `RateLimitMetersModule`.""" createRateLimitMetersModule( @@ -13476,13 +14687,13 @@ type Mutation { input: CreateRateLimitMetersModuleInput! ): CreateRateLimitMetersModulePayload - """Creates a single `RealtimeModule`.""" - createRealtimeModule( + """Creates a single `InfraConfigModule`.""" + createInfraConfigModule( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: CreateRealtimeModuleInput! - ): CreateRealtimeModulePayload + input: CreateInfraConfigModuleInput! + ): CreateInfraConfigModulePayload """Creates a single `WebauthnAuthModule`.""" createWebauthnAuthModule( @@ -13492,13 +14703,21 @@ type Mutation { input: CreateWebauthnAuthModuleInput! ): CreateWebauthnAuthModulePayload - """Creates a single `FunctionInvocationModule`.""" - createFunctionInvocationModule( + """Creates a single `PrincipalAuthModule`.""" + createPrincipalAuthModule( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: CreateFunctionInvocationModuleInput! - ): CreateFunctionInvocationModulePayload + input: CreatePrincipalAuthModuleInput! + ): CreatePrincipalAuthModulePayload + + """Creates a single `DbPool`.""" + createDbPool( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateDbPoolInput! + ): CreateDbPoolPayload """Creates a single `FunctionModule`.""" createFunctionModule( @@ -13508,37 +14727,45 @@ type Mutation { input: CreateFunctionModuleInput! ): CreateFunctionModulePayload - """Creates a single `InvitesModule`.""" - createInvitesModule( + """Creates a single `GraphModule`.""" + createGraphModule( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: CreateInvitesModuleInput! - ): CreateInvitesModulePayload + input: CreateGraphModuleInput! + ): CreateGraphModulePayload - """Creates a single `PrincipalAuthModule`.""" - createPrincipalAuthModule( + """Creates a single `MerkleStoreModule`.""" + createMerkleStoreModule( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: CreatePrincipalAuthModuleInput! - ): CreatePrincipalAuthModulePayload + input: CreateMerkleStoreModuleInput! + ): CreateMerkleStoreModulePayload - """Creates a single `ComputeLogModule`.""" - createComputeLogModule( + """Creates a single `DatabaseProvisionModule`.""" + createDatabaseProvisionModule( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: CreateComputeLogModuleInput! - ): CreateComputeLogModulePayload + input: CreateDatabaseProvisionModuleInput! + ): CreateDatabaseProvisionModulePayload - """Creates a single `InferenceLogModule`.""" - createInferenceLogModule( + """Creates a single `FunctionInvocationModule`.""" + createFunctionInvocationModule( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: CreateInferenceLogModuleInput! - ): CreateInferenceLogModulePayload + input: CreateFunctionInvocationModuleInput! + ): CreateFunctionInvocationModulePayload + + """Creates a single `InvitesModule`.""" + createInvitesModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateInvitesModuleInput! + ): CreateInvitesModulePayload """Creates a single `NamespaceModule`.""" createNamespaceModule( @@ -13548,45 +14775,45 @@ type Mutation { input: CreateNamespaceModuleInput! ): CreateNamespaceModulePayload - """Creates a single `ResourceModule`.""" - createResourceModule( + """Creates a single `PlansModule`.""" + createPlansModule( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: CreateResourceModuleInput! - ): CreateResourceModulePayload + input: CreatePlansModuleInput! + ): CreatePlansModulePayload - """Creates a single `StorageLogModule`.""" - createStorageLogModule( + """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: CreateStorageLogModuleInput! - ): CreateStorageLogModulePayload + input: CreateComputeLogModuleInput! + ): CreateComputeLogModulePayload - """Creates a single `TransferLogModule`.""" - createTransferLogModule( + """Creates a single `InferenceLogModule`.""" + createInferenceLogModule( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: CreateTransferLogModuleInput! - ): CreateTransferLogModulePayload + input: CreateInferenceLogModuleInput! + ): CreateInferenceLogModulePayload - """Creates a single `FunctionDeploymentModule`.""" - createFunctionDeploymentModule( + """Creates a single `StorageLogModule`.""" + createStorageLogModule( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: CreateFunctionDeploymentModuleInput! - ): CreateFunctionDeploymentModulePayload + input: CreateStorageLogModuleInput! + ): CreateStorageLogModulePayload - """Creates a single `PlansModule`.""" - createPlansModule( + """Creates a single `TransferLogModule`.""" + createTransferLogModule( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: CreatePlansModuleInput! - ): CreatePlansModulePayload + input: CreateTransferLogModuleInput! + ): CreateTransferLogModulePayload """Creates a single `BillingProviderModule`.""" createBillingProviderModule( @@ -13596,13 +14823,21 @@ type Mutation { input: CreateBillingProviderModuleInput! ): CreateBillingProviderModulePayload - """Creates a single `DbUsageModule`.""" - createDbUsageModule( + """Creates a single `FunctionDeploymentModule`.""" + createFunctionDeploymentModule( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: CreateDbUsageModuleInput! - ): CreateDbUsageModulePayload + input: CreateFunctionDeploymentModuleInput! + ): CreateFunctionDeploymentModulePayload + + """Creates a single `PermissionsModule`.""" + createPermissionsModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreatePermissionsModuleInput! + ): CreatePermissionsModulePayload """Creates a single `GraphExecutionModule`.""" createGraphExecutionModule( @@ -13613,20 +14848,12 @@ type Mutation { ): CreateGraphExecutionModulePayload """Creates a single `HierarchyModule`.""" - createHierarchyModule( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateHierarchyModuleInput! - ): CreateHierarchyModulePayload - - """Creates a single `PermissionsModule`.""" - createPermissionsModule( + createHierarchyModule( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: CreatePermissionsModuleInput! - ): CreatePermissionsModulePayload + input: CreateHierarchyModuleInput! + ): CreateHierarchyModulePayload """Creates a single `NotificationsModule`.""" createNotificationsModule( @@ -13636,6 +14863,22 @@ type Mutation { input: CreateNotificationsModuleInput! ): CreateNotificationsModulePayload + """Creates a single `RelationProvision`.""" + createRelationProvision( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateRelationProvisionInput! + ): CreateRelationProvisionPayload + + """Creates a single `BlueprintTemplate`.""" + createBlueprintTemplate( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateBlueprintTemplateInput! + ): CreateBlueprintTemplatePayload + """Creates a single `ProfilesModule`.""" createProfilesModule( """ @@ -13652,21 +14895,13 @@ type Mutation { input: CreateBillingModuleInput! ): CreateBillingModulePayload - """Creates a single `RelationProvision`.""" - createRelationProvision( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateRelationProvisionInput! - ): CreateRelationProvisionPayload - - """Creates a single `BlueprintTemplate`.""" - createBlueprintTemplate( + """Creates a single `ResourceModule`.""" + createResourceModule( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: CreateBlueprintTemplateInput! - ): CreateBlueprintTemplatePayload + input: CreateResourceModuleInput! + ): CreateResourceModulePayload """Creates a single `UserAuthModule`.""" createUserAuthModule( @@ -13676,6 +14911,14 @@ type Mutation { input: CreateUserAuthModuleInput! ): CreateUserAuthModulePayload + """Creates a single `DbUsageModule`.""" + createDbUsageModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateDbUsageModuleInput! + ): CreateDbUsageModulePayload + """Creates a single `AgentModule`.""" createAgentModule( """ @@ -13692,14 +14935,6 @@ type Mutation { input: CreateLimitsModuleInput! ): CreateLimitsModulePayload - """Creates a single `MembershipsModule`.""" - createMembershipsModule( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateMembershipsModuleInput! - ): CreateMembershipsModulePayload - """Creates a single `EntityTypeProvision`.""" createEntityTypeProvision( """ @@ -13716,6 +14951,14 @@ type Mutation { input: CreateStorageModuleInput! ): CreateStorageModulePayload + """Creates a single `MembershipsModule`.""" + createMembershipsModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateMembershipsModuleInput! + ): CreateMembershipsModulePayload + """Creates a single `EventsModule`.""" createEventsModule( """ @@ -13742,14 +14985,6 @@ type Mutation { input: UpdateMembershipTypesModuleInput! ): UpdateMembershipTypesModulePayload - """Updates a single `UserStateModule` using a unique key and a patch.""" - updateUserStateModule( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateUserStateModuleInput! - ): UpdateUserStateModulePayload - """ Updates a single `SessionSecretsModule` using a unique key and a patch. """ @@ -13760,16 +14995,6 @@ type Mutation { input: UpdateSessionSecretsModuleInput! ): UpdateSessionSecretsModulePayload - """ - Updates a single `ConfigSecretsOrgModule` using a unique key and a patch. - """ - updateConfigSecretsOrgModule( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateConfigSecretsOrgModuleInput! - ): UpdateConfigSecretsOrgModulePayload - """Updates a single `DevicesModule` using a unique key and a patch.""" updateDevicesModule( """ @@ -13786,16 +15011,6 @@ type Mutation { input: UpdateI18NModuleInput! ): UpdateI18NModulePayload - """ - Updates a single `UserCredentialsModule` using a unique key and a patch. - """ - updateUserCredentialsModule( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateUserCredentialsModuleInput! - ): UpdateUserCredentialsModulePayload - """Updates a single `UserSettingsModule` using a unique key and a patch.""" updateUserSettingsModule( """ @@ -13804,15 +15019,23 @@ type Mutation { input: UpdateUserSettingsModuleInput! ): UpdateUserSettingsModulePayload + """Updates a single `UserStateModule` using a unique key and a patch.""" + updateUserStateModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateUserStateModuleInput! + ): UpdateUserStateModulePayload + """ - Updates a single `ConfigSecretsUserModule` using a unique key and a patch. + Updates a single `UserCredentialsModule` using a unique key and a patch. """ - updateConfigSecretsUserModule( + updateUserCredentialsModule( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: UpdateConfigSecretsUserModuleInput! - ): UpdateConfigSecretsUserModulePayload + input: UpdateUserCredentialsModuleInput! + ): UpdateUserCredentialsModulePayload """ Updates a single `ConnectedAccountsModule` using a unique key and a patch. @@ -13866,6 +15089,16 @@ type Mutation { input: UpdateWebauthnCredentialsModuleInput! ): UpdateWebauthnCredentialsModulePayload + """ + Updates a single `ConfigSecretsUserModule` using a unique key and a patch. + """ + updateConfigSecretsUserModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateConfigSecretsUserModuleInput! + ): UpdateConfigSecretsUserModulePayload + """ Updates a single `CryptoAddressesModule` using a unique key and a patch. """ @@ -13886,16 +15119,6 @@ type Mutation { input: UpdateDenormalizedTableFieldInput! ): UpdateDenormalizedTableFieldPayload - """ - Updates a single `IdentityProvidersModule` using a unique key and a patch. - """ - updateIdentityProvidersModule( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateIdentityProvidersModuleInput! - ): UpdateIdentityProvidersModulePayload - """Updates a single `RlsModule` using a unique key and a patch.""" updateRlsModule( """ @@ -13949,38 +15172,66 @@ type Mutation { ): UpdateSecureTableProvisionPayload """ - Updates a single `DatabaseProvisionModule` using a unique key and a patch. + Updates a single `IdentityProvidersModule` using a unique key and a patch. """ - updateDatabaseProvisionModule( + updateIdentityProvidersModule( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: UpdateDatabaseProvisionModuleInput! - ): UpdateDatabaseProvisionModulePayload + input: UpdateIdentityProvidersModuleInput! + ): UpdateIdentityProvidersModulePayload - """Updates a single `ConfigSecretsModule` using a unique key and a patch.""" - updateConfigSecretsModule( + """ + Updates a single `IntegrationProvidersModule` using a unique key and a patch. + """ + updateIntegrationProvidersModule( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: UpdateConfigSecretsModuleInput! - ): UpdateConfigSecretsModulePayload + input: UpdateIntegrationProvidersModuleInput! + ): UpdateIntegrationProvidersModulePayload - """Updates a single `GraphModule` using a unique key and a patch.""" - updateGraphModule( + """Updates a single `DbPoolConfig` using a unique key and a patch.""" + updateDbPoolConfig( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: UpdateGraphModuleInput! - ): UpdateGraphModulePayload + input: UpdateDbPoolConfigInput! + ): UpdateDbPoolConfigPayload - """Updates a single `MerkleStoreModule` using a unique key and a patch.""" - updateMerkleStoreModule( + """Updates a single `RealtimeModule` using a unique key and a patch.""" + updateRealtimeModule( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: UpdateMerkleStoreModuleInput! - ): UpdateMerkleStoreModulePayload + input: UpdateRealtimeModuleInput! + ): UpdateRealtimeModulePayload + + """Updates a single `InfraSecretsModule` using a unique key and a patch.""" + updateInfraSecretsModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateInfraSecretsModuleInput! + ): UpdateInfraSecretsModulePayload + + """ + Updates a single `InternalSecretsModule` using a unique key and a patch. + """ + updateInternalSecretsModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateInternalSecretsModuleInput! + ): UpdateInternalSecretsModulePayload + + """Updates a single `DbPresetModule` using a unique key and a patch.""" + updateDbPresetModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateDbPresetModuleInput! + ): UpdateDbPresetModulePayload """ Updates a single `RateLimitMetersModule` using a unique key and a patch. @@ -13992,13 +15243,13 @@ type Mutation { input: UpdateRateLimitMetersModuleInput! ): UpdateRateLimitMetersModulePayload - """Updates a single `RealtimeModule` using a unique key and a patch.""" - updateRealtimeModule( + """Updates a single `InfraConfigModule` using a unique key and a patch.""" + updateInfraConfigModule( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: UpdateRealtimeModuleInput! - ): UpdateRealtimeModulePayload + input: UpdateInfraConfigModuleInput! + ): UpdateInfraConfigModulePayload """Updates a single `WebauthnAuthModule` using a unique key and a patch.""" updateWebauthnAuthModule( @@ -14008,15 +15259,21 @@ type Mutation { input: UpdateWebauthnAuthModuleInput! ): UpdateWebauthnAuthModulePayload - """ - Updates a single `FunctionInvocationModule` using a unique key and a patch. - """ - updateFunctionInvocationModule( + """Updates a single `PrincipalAuthModule` using a unique key and a patch.""" + updatePrincipalAuthModule( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: UpdateFunctionInvocationModuleInput! - ): UpdateFunctionInvocationModulePayload + input: UpdatePrincipalAuthModuleInput! + ): UpdatePrincipalAuthModulePayload + + """Updates a single `DbPool` using a unique key and a patch.""" + updateDbPool( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateDbPoolInput! + ): UpdateDbPoolPayload """Updates a single `FunctionModule` using a unique key and a patch.""" updateFunctionModule( @@ -14026,37 +15283,49 @@ type Mutation { input: UpdateFunctionModuleInput! ): UpdateFunctionModulePayload - """Updates a single `InvitesModule` using a unique key and a patch.""" - updateInvitesModule( + """Updates a single `GraphModule` using a unique key and a patch.""" + updateGraphModule( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: UpdateInvitesModuleInput! - ): UpdateInvitesModulePayload + input: UpdateGraphModuleInput! + ): UpdateGraphModulePayload - """Updates a single `PrincipalAuthModule` using a unique key and a patch.""" - updatePrincipalAuthModule( + """Updates a single `MerkleStoreModule` using a unique key and a patch.""" + updateMerkleStoreModule( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: UpdatePrincipalAuthModuleInput! - ): UpdatePrincipalAuthModulePayload + input: UpdateMerkleStoreModuleInput! + ): UpdateMerkleStoreModulePayload - """Updates a single `ComputeLogModule` using a unique key and a patch.""" - updateComputeLogModule( + """ + Updates a single `DatabaseProvisionModule` using a unique key and a patch. + """ + updateDatabaseProvisionModule( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: UpdateComputeLogModuleInput! - ): UpdateComputeLogModulePayload + input: UpdateDatabaseProvisionModuleInput! + ): UpdateDatabaseProvisionModulePayload - """Updates a single `InferenceLogModule` using a unique key and a patch.""" - updateInferenceLogModule( + """ + Updates a single `FunctionInvocationModule` using a unique key and a patch. + """ + updateFunctionInvocationModule( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: UpdateInferenceLogModuleInput! - ): UpdateInferenceLogModulePayload + input: UpdateFunctionInvocationModuleInput! + ): UpdateFunctionInvocationModulePayload + + """Updates a single `InvitesModule` using a unique key and a patch.""" + updateInvitesModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateInvitesModuleInput! + ): UpdateInvitesModulePayload """Updates a single `NamespaceModule` using a unique key and a patch.""" updateNamespaceModule( @@ -14066,47 +15335,45 @@ type Mutation { input: UpdateNamespaceModuleInput! ): UpdateNamespaceModulePayload - """Updates a single `ResourceModule` using a unique key and a patch.""" - updateResourceModule( + """Updates a single `PlansModule` using a unique key and a patch.""" + updatePlansModule( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: UpdateResourceModuleInput! - ): UpdateResourceModulePayload + input: UpdatePlansModuleInput! + ): UpdatePlansModulePayload - """Updates a single `StorageLogModule` using a unique key and a patch.""" - updateStorageLogModule( + """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: UpdateStorageLogModuleInput! - ): UpdateStorageLogModulePayload + input: UpdateComputeLogModuleInput! + ): UpdateComputeLogModulePayload - """Updates a single `TransferLogModule` using a unique key and a patch.""" - updateTransferLogModule( + """Updates a single `InferenceLogModule` using a unique key and a patch.""" + updateInferenceLogModule( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: UpdateTransferLogModuleInput! - ): UpdateTransferLogModulePayload + input: UpdateInferenceLogModuleInput! + ): UpdateInferenceLogModulePayload - """ - Updates a single `FunctionDeploymentModule` using a unique key and a patch. - """ - updateFunctionDeploymentModule( + """Updates a single `StorageLogModule` using a unique key and a patch.""" + updateStorageLogModule( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: UpdateFunctionDeploymentModuleInput! - ): UpdateFunctionDeploymentModulePayload - - """Updates a single `PlansModule` using a unique key and a patch.""" - updatePlansModule( + input: UpdateStorageLogModuleInput! + ): UpdateStorageLogModulePayload + + """Updates a single `TransferLogModule` using a unique key and a patch.""" + updateTransferLogModule( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: UpdatePlansModuleInput! - ): UpdatePlansModulePayload + input: UpdateTransferLogModuleInput! + ): UpdateTransferLogModulePayload """ Updates a single `BillingProviderModule` using a unique key and a patch. @@ -14118,13 +15385,23 @@ type Mutation { input: UpdateBillingProviderModuleInput! ): UpdateBillingProviderModulePayload - """Updates a single `DbUsageModule` using a unique key and a patch.""" - updateDbUsageModule( + """ + Updates a single `FunctionDeploymentModule` using a unique key and a patch. + """ + updateFunctionDeploymentModule( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: UpdateDbUsageModuleInput! - ): UpdateDbUsageModulePayload + input: UpdateFunctionDeploymentModuleInput! + ): UpdateFunctionDeploymentModulePayload + + """Updates a single `PermissionsModule` using a unique key and a patch.""" + updatePermissionsModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdatePermissionsModuleInput! + ): UpdatePermissionsModulePayload """ Updates a single `GraphExecutionModule` using a unique key and a patch. @@ -14144,14 +15421,6 @@ type Mutation { input: UpdateHierarchyModuleInput! ): UpdateHierarchyModulePayload - """Updates a single `PermissionsModule` using a unique key and a patch.""" - updatePermissionsModule( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdatePermissionsModuleInput! - ): UpdatePermissionsModulePayload - """Updates a single `NotificationsModule` using a unique key and a patch.""" updateNotificationsModule( """ @@ -14160,6 +15429,22 @@ type Mutation { input: UpdateNotificationsModuleInput! ): UpdateNotificationsModulePayload + """Updates a single `RelationProvision` using a unique key and a patch.""" + updateRelationProvision( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateRelationProvisionInput! + ): UpdateRelationProvisionPayload + + """Updates a single `BlueprintTemplate` using a unique key and a patch.""" + updateBlueprintTemplate( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateBlueprintTemplateInput! + ): UpdateBlueprintTemplatePayload + """Updates a single `ProfilesModule` using a unique key and a patch.""" updateProfilesModule( """ @@ -14176,21 +15461,13 @@ type Mutation { input: UpdateBillingModuleInput! ): UpdateBillingModulePayload - """Updates a single `RelationProvision` using a unique key and a patch.""" - updateRelationProvision( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateRelationProvisionInput! - ): UpdateRelationProvisionPayload - - """Updates a single `BlueprintTemplate` using a unique key and a patch.""" - updateBlueprintTemplate( + """Updates a single `ResourceModule` using a unique key and a patch.""" + updateResourceModule( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: UpdateBlueprintTemplateInput! - ): UpdateBlueprintTemplatePayload + input: UpdateResourceModuleInput! + ): UpdateResourceModulePayload """Updates a single `UserAuthModule` using a unique key and a patch.""" updateUserAuthModule( @@ -14200,6 +15477,14 @@ type Mutation { input: UpdateUserAuthModuleInput! ): UpdateUserAuthModulePayload + """Updates a single `DbUsageModule` using a unique key and a patch.""" + updateDbUsageModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateDbUsageModuleInput! + ): UpdateDbUsageModulePayload + """Updates a single `AgentModule` using a unique key and a patch.""" updateAgentModule( """ @@ -14216,14 +15501,6 @@ type Mutation { input: UpdateLimitsModuleInput! ): UpdateLimitsModulePayload - """Updates a single `MembershipsModule` using a unique key and a patch.""" - updateMembershipsModule( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateMembershipsModuleInput! - ): UpdateMembershipsModulePayload - """Updates a single `EntityTypeProvision` using a unique key and a patch.""" updateEntityTypeProvision( """ @@ -14240,6 +15517,14 @@ type Mutation { input: UpdateStorageModuleInput! ): UpdateStorageModulePayload + """Updates a single `MembershipsModule` using a unique key and a patch.""" + updateMembershipsModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateMembershipsModuleInput! + ): UpdateMembershipsModulePayload + """Updates a single `EventsModule` using a unique key and a patch.""" updateEventsModule( """ @@ -14264,14 +15549,6 @@ type Mutation { input: DeleteMembershipTypesModuleInput! ): DeleteMembershipTypesModulePayload - """Deletes a single `UserStateModule` using a unique key.""" - deleteUserStateModule( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteUserStateModuleInput! - ): DeleteUserStateModulePayload - """Deletes a single `SessionSecretsModule` using a unique key.""" deleteSessionSecretsModule( """ @@ -14280,14 +15557,6 @@ type Mutation { input: DeleteSessionSecretsModuleInput! ): DeleteSessionSecretsModulePayload - """Deletes a single `ConfigSecretsOrgModule` using a unique key.""" - deleteConfigSecretsOrgModule( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteConfigSecretsOrgModuleInput! - ): DeleteConfigSecretsOrgModulePayload - """Deletes a single `DevicesModule` using a unique key.""" deleteDevicesModule( """ @@ -14304,14 +15573,6 @@ type Mutation { input: DeleteI18NModuleInput! ): DeleteI18NModulePayload - """Deletes a single `UserCredentialsModule` using a unique key.""" - deleteUserCredentialsModule( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteUserCredentialsModuleInput! - ): DeleteUserCredentialsModulePayload - """Deletes a single `UserSettingsModule` using a unique key.""" deleteUserSettingsModule( """ @@ -14320,13 +15581,21 @@ type Mutation { input: DeleteUserSettingsModuleInput! ): DeleteUserSettingsModulePayload - """Deletes a single `ConfigSecretsUserModule` using a unique key.""" - deleteConfigSecretsUserModule( + """Deletes a single `UserStateModule` using a unique key.""" + deleteUserStateModule( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: DeleteConfigSecretsUserModuleInput! - ): DeleteConfigSecretsUserModulePayload + input: DeleteUserStateModuleInput! + ): DeleteUserStateModulePayload + + """Deletes a single `UserCredentialsModule` using a unique key.""" + deleteUserCredentialsModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteUserCredentialsModuleInput! + ): DeleteUserCredentialsModulePayload """Deletes a single `ConnectedAccountsModule` using a unique key.""" deleteConnectedAccountsModule( @@ -14376,6 +15645,14 @@ type Mutation { input: DeleteWebauthnCredentialsModuleInput! ): DeleteWebauthnCredentialsModulePayload + """Deletes a single `ConfigSecretsUserModule` using a unique key.""" + deleteConfigSecretsUserModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteConfigSecretsUserModuleInput! + ): DeleteConfigSecretsUserModulePayload + """Deletes a single `CryptoAddressesModule` using a unique key.""" deleteCryptoAddressesModule( """ @@ -14392,14 +15669,6 @@ type Mutation { input: DeleteDenormalizedTableFieldInput! ): DeleteDenormalizedTableFieldPayload - """Deletes a single `IdentityProvidersModule` using a unique key.""" - deleteIdentityProvidersModule( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteIdentityProvidersModuleInput! - ): DeleteIdentityProvidersModulePayload - """Deletes a single `RlsModule` using a unique key.""" deleteRlsModule( """ @@ -14448,37 +15717,61 @@ type Mutation { input: DeleteSecureTableProvisionInput! ): DeleteSecureTableProvisionPayload - """Deletes a single `DatabaseProvisionModule` using a unique key.""" - deleteDatabaseProvisionModule( + """Deletes a single `IdentityProvidersModule` using a unique key.""" + deleteIdentityProvidersModule( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: DeleteDatabaseProvisionModuleInput! - ): DeleteDatabaseProvisionModulePayload + input: DeleteIdentityProvidersModuleInput! + ): DeleteIdentityProvidersModulePayload - """Deletes a single `ConfigSecretsModule` using a unique key.""" - deleteConfigSecretsModule( + """Deletes a single `IntegrationProvidersModule` using a unique key.""" + deleteIntegrationProvidersModule( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: DeleteConfigSecretsModuleInput! - ): DeleteConfigSecretsModulePayload + input: DeleteIntegrationProvidersModuleInput! + ): DeleteIntegrationProvidersModulePayload - """Deletes a single `GraphModule` using a unique key.""" - deleteGraphModule( + """Deletes a single `DbPoolConfig` using a unique key.""" + deleteDbPoolConfig( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: DeleteGraphModuleInput! - ): DeleteGraphModulePayload + input: DeleteDbPoolConfigInput! + ): DeleteDbPoolConfigPayload - """Deletes a single `MerkleStoreModule` using a unique key.""" - deleteMerkleStoreModule( + """Deletes a single `RealtimeModule` using a unique key.""" + deleteRealtimeModule( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: DeleteMerkleStoreModuleInput! - ): DeleteMerkleStoreModulePayload + input: DeleteRealtimeModuleInput! + ): DeleteRealtimeModulePayload + + """Deletes a single `InfraSecretsModule` using a unique key.""" + deleteInfraSecretsModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteInfraSecretsModuleInput! + ): DeleteInfraSecretsModulePayload + + """Deletes a single `InternalSecretsModule` using a unique key.""" + deleteInternalSecretsModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteInternalSecretsModuleInput! + ): DeleteInternalSecretsModulePayload + + """Deletes a single `DbPresetModule` using a unique key.""" + deleteDbPresetModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteDbPresetModuleInput! + ): DeleteDbPresetModulePayload """Deletes a single `RateLimitMetersModule` using a unique key.""" deleteRateLimitMetersModule( @@ -14488,13 +15781,13 @@ type Mutation { input: DeleteRateLimitMetersModuleInput! ): DeleteRateLimitMetersModulePayload - """Deletes a single `RealtimeModule` using a unique key.""" - deleteRealtimeModule( + """Deletes a single `InfraConfigModule` using a unique key.""" + deleteInfraConfigModule( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: DeleteRealtimeModuleInput! - ): DeleteRealtimeModulePayload + input: DeleteInfraConfigModuleInput! + ): DeleteInfraConfigModulePayload """Deletes a single `WebauthnAuthModule` using a unique key.""" deleteWebauthnAuthModule( @@ -14504,13 +15797,21 @@ type Mutation { input: DeleteWebauthnAuthModuleInput! ): DeleteWebauthnAuthModulePayload - """Deletes a single `FunctionInvocationModule` using a unique key.""" - deleteFunctionInvocationModule( + """Deletes a single `PrincipalAuthModule` using a unique key.""" + deletePrincipalAuthModule( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: DeleteFunctionInvocationModuleInput! - ): DeleteFunctionInvocationModulePayload + input: DeletePrincipalAuthModuleInput! + ): DeletePrincipalAuthModulePayload + + """Deletes a single `DbPool` using a unique key.""" + deleteDbPool( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteDbPoolInput! + ): DeleteDbPoolPayload """Deletes a single `FunctionModule` using a unique key.""" deleteFunctionModule( @@ -14520,37 +15821,45 @@ type Mutation { input: DeleteFunctionModuleInput! ): DeleteFunctionModulePayload - """Deletes a single `InvitesModule` using a unique key.""" - deleteInvitesModule( + """Deletes a single `GraphModule` using a unique key.""" + deleteGraphModule( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: DeleteInvitesModuleInput! - ): DeleteInvitesModulePayload + input: DeleteGraphModuleInput! + ): DeleteGraphModulePayload - """Deletes a single `PrincipalAuthModule` using a unique key.""" - deletePrincipalAuthModule( + """Deletes a single `MerkleStoreModule` using a unique key.""" + deleteMerkleStoreModule( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: DeletePrincipalAuthModuleInput! - ): DeletePrincipalAuthModulePayload + input: DeleteMerkleStoreModuleInput! + ): DeleteMerkleStoreModulePayload - """Deletes a single `ComputeLogModule` using a unique key.""" - deleteComputeLogModule( + """Deletes a single `DatabaseProvisionModule` using a unique key.""" + deleteDatabaseProvisionModule( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: DeleteComputeLogModuleInput! - ): DeleteComputeLogModulePayload + input: DeleteDatabaseProvisionModuleInput! + ): DeleteDatabaseProvisionModulePayload - """Deletes a single `InferenceLogModule` using a unique key.""" - deleteInferenceLogModule( + """Deletes a single `FunctionInvocationModule` using a unique key.""" + deleteFunctionInvocationModule( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: DeleteInferenceLogModuleInput! - ): DeleteInferenceLogModulePayload + input: DeleteFunctionInvocationModuleInput! + ): DeleteFunctionInvocationModulePayload + + """Deletes a single `InvitesModule` using a unique key.""" + deleteInvitesModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteInvitesModuleInput! + ): DeleteInvitesModulePayload """Deletes a single `NamespaceModule` using a unique key.""" deleteNamespaceModule( @@ -14560,45 +15869,45 @@ type Mutation { input: DeleteNamespaceModuleInput! ): DeleteNamespaceModulePayload - """Deletes a single `ResourceModule` using a unique key.""" - deleteResourceModule( + """Deletes a single `PlansModule` using a unique key.""" + deletePlansModule( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: DeleteResourceModuleInput! - ): DeleteResourceModulePayload + input: DeletePlansModuleInput! + ): DeletePlansModulePayload - """Deletes a single `StorageLogModule` using a unique key.""" - deleteStorageLogModule( + """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: DeleteStorageLogModuleInput! - ): DeleteStorageLogModulePayload + input: DeleteComputeLogModuleInput! + ): DeleteComputeLogModulePayload - """Deletes a single `TransferLogModule` using a unique key.""" - deleteTransferLogModule( + """Deletes a single `InferenceLogModule` using a unique key.""" + deleteInferenceLogModule( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: DeleteTransferLogModuleInput! - ): DeleteTransferLogModulePayload - - """Deletes a single `FunctionDeploymentModule` using a unique key.""" - deleteFunctionDeploymentModule( + input: DeleteInferenceLogModuleInput! + ): DeleteInferenceLogModulePayload + + """Deletes a single `StorageLogModule` using a unique key.""" + deleteStorageLogModule( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: DeleteFunctionDeploymentModuleInput! - ): DeleteFunctionDeploymentModulePayload + input: DeleteStorageLogModuleInput! + ): DeleteStorageLogModulePayload - """Deletes a single `PlansModule` using a unique key.""" - deletePlansModule( + """Deletes a single `TransferLogModule` using a unique key.""" + deleteTransferLogModule( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: DeletePlansModuleInput! - ): DeletePlansModulePayload + input: DeleteTransferLogModuleInput! + ): DeleteTransferLogModulePayload """Deletes a single `BillingProviderModule` using a unique key.""" deleteBillingProviderModule( @@ -14608,13 +15917,21 @@ type Mutation { input: DeleteBillingProviderModuleInput! ): DeleteBillingProviderModulePayload - """Deletes a single `DbUsageModule` using a unique key.""" - deleteDbUsageModule( + """Deletes a single `FunctionDeploymentModule` using a unique key.""" + deleteFunctionDeploymentModule( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: DeleteDbUsageModuleInput! - ): DeleteDbUsageModulePayload + input: DeleteFunctionDeploymentModuleInput! + ): DeleteFunctionDeploymentModulePayload + + """Deletes a single `PermissionsModule` using a unique key.""" + deletePermissionsModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeletePermissionsModuleInput! + ): DeletePermissionsModulePayload """Deletes a single `GraphExecutionModule` using a unique key.""" deleteGraphExecutionModule( @@ -14632,14 +15949,6 @@ type Mutation { input: DeleteHierarchyModuleInput! ): DeleteHierarchyModulePayload - """Deletes a single `PermissionsModule` using a unique key.""" - deletePermissionsModule( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeletePermissionsModuleInput! - ): DeletePermissionsModulePayload - """Deletes a single `NotificationsModule` using a unique key.""" deleteNotificationsModule( """ @@ -14648,6 +15957,22 @@ type Mutation { input: DeleteNotificationsModuleInput! ): DeleteNotificationsModulePayload + """Deletes a single `RelationProvision` using a unique key.""" + deleteRelationProvision( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteRelationProvisionInput! + ): DeleteRelationProvisionPayload + + """Deletes a single `BlueprintTemplate` using a unique key.""" + deleteBlueprintTemplate( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteBlueprintTemplateInput! + ): DeleteBlueprintTemplatePayload + """Deletes a single `ProfilesModule` using a unique key.""" deleteProfilesModule( """ @@ -14664,21 +15989,13 @@ type Mutation { input: DeleteBillingModuleInput! ): DeleteBillingModulePayload - """Deletes a single `RelationProvision` using a unique key.""" - deleteRelationProvision( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteRelationProvisionInput! - ): DeleteRelationProvisionPayload - - """Deletes a single `BlueprintTemplate` using a unique key.""" - deleteBlueprintTemplate( + """Deletes a single `ResourceModule` using a unique key.""" + deleteResourceModule( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: DeleteBlueprintTemplateInput! - ): DeleteBlueprintTemplatePayload + input: DeleteResourceModuleInput! + ): DeleteResourceModulePayload """Deletes a single `UserAuthModule` using a unique key.""" deleteUserAuthModule( @@ -14688,6 +16005,14 @@ type Mutation { input: DeleteUserAuthModuleInput! ): DeleteUserAuthModulePayload + """Deletes a single `DbUsageModule` using a unique key.""" + deleteDbUsageModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteDbUsageModuleInput! + ): DeleteDbUsageModulePayload + """Deletes a single `AgentModule` using a unique key.""" deleteAgentModule( """ @@ -14704,14 +16029,6 @@ type Mutation { input: DeleteLimitsModuleInput! ): DeleteLimitsModulePayload - """Deletes a single `MembershipsModule` using a unique key.""" - deleteMembershipsModule( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteMembershipsModuleInput! - ): DeleteMembershipsModulePayload - """Deletes a single `EntityTypeProvision` using a unique key.""" deleteEntityTypeProvision( """ @@ -14728,6 +16045,14 @@ type Mutation { input: DeleteStorageModuleInput! ): DeleteStorageModulePayload + """Deletes a single `MembershipsModule` using a unique key.""" + deleteMembershipsModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteMembershipsModuleInput! + ): DeleteMembershipsModulePayload + """Deletes a single `EventsModule` using a unique key.""" deleteEventsModule( """ @@ -14943,181 +16268,368 @@ input ProvisionSpatialRelationInput { pParamName: String } -"""The output of our `provisionTable` mutation.""" -type ProvisionTablePayload { +"""The output of our `provisionTable` mutation.""" +type ProvisionTablePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + result: [ProvisionTableRecord] + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + +type ProvisionTableRecord { + outTableId: UUID + outFields: [UUID] +} + +"""All input for the `provisionTable` mutation.""" +input ProvisionTableInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + databaseId: UUID + schemaId: UUID + tableName: String + tableId: UUID + nodes: JSON + fields: JSON + policies: JSON + grants: JSON + useRls: Boolean + indexes: JSON + fullTextSearches: JSON + uniqueConstraints: JSON + description: String +} + +"""The output of our `provisionRelation` mutation.""" +type ProvisionRelationPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + result: [ProvisionRelationRecord] + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + +type ProvisionRelationRecord { + outFieldId: UUID + outJunctionTableId: UUID + outSourceFieldId: UUID + outTargetFieldId: UUID +} + +"""All input for the `provisionRelation` mutation.""" +input ProvisionRelationInput { + """ + An arbitrary 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 + relationType: String + sourceTableId: UUID + targetTableId: UUID + fieldName: String + deleteAction: String + isRequired: Boolean + apiRequired: Boolean + createIndex: Boolean + junctionTableId: UUID + junctionTableName: String + junctionSchemaId: UUID + sourceFieldName: String + targetFieldName: String + useCompositeKey: Boolean + exposeInApi: Boolean + nodes: JSON + grants: JSON + policies: JSON +} + +"""The output of our create `DefaultIdsModule` mutation.""" +type CreateDefaultIdsModulePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `DefaultIdsModule` that was created by this mutation.""" + defaultIdsModule: DefaultIdsModule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `DefaultIdsModule`. May be used by Relay 1.""" + defaultIdsModuleEdge( + """The method to use when ordering `DefaultIdsModule`.""" + orderBy: [DefaultIdsModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): DefaultIdsModuleEdge +} + +"""All input for the create `DefaultIdsModule` mutation.""" +input CreateDefaultIdsModuleInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """The `DefaultIdsModule` to be created by this mutation.""" + defaultIdsModule: DefaultIdsModuleInput! +} + +"""An input for mutations affecting `DefaultIdsModule`""" +input DefaultIdsModuleInput { + id: UUID + databaseId: UUID! +} + +"""The output of our create `MembershipTypesModule` mutation.""" +type CreateMembershipTypesModulePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `MembershipTypesModule` that was created by this mutation.""" + membershipTypesModule: MembershipTypesModule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `MembershipTypesModule`. May be used by Relay 1.""" + membershipTypesModuleEdge( + """The method to use when ordering `MembershipTypesModule`.""" + orderBy: [MembershipTypesModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): MembershipTypesModuleEdge +} + +"""All input for the create `MembershipTypesModule` mutation.""" +input CreateMembershipTypesModuleInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """The `MembershipTypesModule` to be created by this mutation.""" + membershipTypesModule: MembershipTypesModuleInput! +} + +"""An input for mutations affecting `MembershipTypesModule`""" +input MembershipTypesModuleInput { + id: UUID + databaseId: UUID! + schemaId: UUID + tableId: UUID + tableName: String +} + +"""The output of our create `SessionSecretsModule` mutation.""" +type CreateSessionSecretsModulePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - result: [ProvisionTableRecord] + + """The `SessionSecretsModule` that was created by this mutation.""" + sessionSecretsModule: SessionSecretsModule """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query -} -type ProvisionTableRecord { - outTableId: UUID - outFields: [UUID] + """An edge for our `SessionSecretsModule`. May be used by Relay 1.""" + sessionSecretsModuleEdge( + """The method to use when ordering `SessionSecretsModule`.""" + orderBy: [SessionSecretsModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): SessionSecretsModuleEdge } -"""All input for the `provisionTable` mutation.""" -input ProvisionTableInput { +"""All input for the create `SessionSecretsModule` mutation.""" +input CreateSessionSecretsModuleInput { """ An arbitrary 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 + + """The `SessionSecretsModule` to be created by this mutation.""" + sessionSecretsModule: SessionSecretsModuleInput! +} + +"""An input for mutations affecting `SessionSecretsModule`""" +input SessionSecretsModuleInput { + id: UUID + databaseId: UUID! schemaId: UUID - tableName: String tableId: UUID - nodes: JSON - fields: JSON - policies: JSON - grants: JSON - useRls: Boolean - indexes: JSON - fullTextSearches: JSON - uniqueConstraints: JSON - description: String + tableName: String + + """ + Resolved reference to sessions_module.sessions_table, used to FK session_secrets.session_id with ON DELETE CASCADE. + """ + sessionsTableId: UUID } -"""The output of our `provisionRelation` mutation.""" -type ProvisionRelationPayload { +"""The output of our create `DevicesModule` mutation.""" +type CreateDevicesModulePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - result: [ProvisionRelationRecord] + + """The `DevicesModule` that was created by this mutation.""" + devicesModule: DevicesModule """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query -} -type ProvisionRelationRecord { - outFieldId: UUID - outJunctionTableId: UUID - outSourceFieldId: UUID - outTargetFieldId: UUID + """An edge for our `DevicesModule`. May be used by Relay 1.""" + devicesModuleEdge( + """The method to use when ordering `DevicesModule`.""" + orderBy: [DevicesModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): DevicesModuleEdge } -"""All input for the `provisionRelation` mutation.""" -input ProvisionRelationInput { +"""All input for the create `DevicesModule` mutation.""" +input CreateDevicesModuleInput { """ An arbitrary 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 - relationType: String - sourceTableId: UUID - targetTableId: UUID - fieldName: String - deleteAction: String - isRequired: Boolean - apiRequired: Boolean - createIndex: Boolean - junctionTableId: UUID - junctionTableName: String - junctionSchemaId: UUID - sourceFieldName: String - targetFieldName: String - useCompositeKey: Boolean - exposeInApi: Boolean - nodes: JSON - grants: JSON - policies: JSON + + """The `DevicesModule` to be created by this mutation.""" + devicesModule: DevicesModuleInput! } -"""The output of our create `DefaultIdsModule` mutation.""" -type CreateDefaultIdsModulePayload { +"""An input for mutations affecting `DevicesModule`""" +input DevicesModuleInput { + id: UUID + databaseId: UUID! + schemaId: UUID + userDevicesTableId: UUID + deviceSettingsTableId: UUID + userDevicesTable: String + deviceSettingsTable: String +} + +"""The output of our create `I18NModule` mutation.""" +type CreateI18NModulePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `DefaultIdsModule` that was created by this mutation.""" - defaultIdsModule: DefaultIdsModule + """The `I18NModule` that was created by this mutation.""" + i18NModule: I18NModule """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `DefaultIdsModule`. May be used by Relay 1.""" - defaultIdsModuleEdge( - """The method to use when ordering `DefaultIdsModule`.""" - orderBy: [DefaultIdsModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): DefaultIdsModuleEdge + """An edge for our `I18NModule`. May be used by Relay 1.""" + i18NModuleEdge( + """The method to use when ordering `I18NModule`.""" + orderBy: [I18NModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): I18NModuleEdge } -"""All input for the create `DefaultIdsModule` mutation.""" -input CreateDefaultIdsModuleInput { +"""All input for the create `I18NModule` mutation.""" +input CreateI18NModuleInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - """The `DefaultIdsModule` to be created by this mutation.""" - defaultIdsModule: DefaultIdsModuleInput! + """The `I18NModule` to be created by this mutation.""" + i18NModule: I18NModuleInput! } -"""An input for mutations affecting `DefaultIdsModule`""" -input DefaultIdsModuleInput { +"""An input for mutations affecting `I18NModule`""" +input I18NModuleInput { id: UUID databaseId: UUID! + schemaId: UUID + privateSchemaId: UUID + settingsTableId: UUID + apiName: String + privateApiName: String } -"""The output of our create `MembershipTypesModule` mutation.""" -type CreateMembershipTypesModulePayload { +"""The output of our create `UserSettingsModule` mutation.""" +type CreateUserSettingsModulePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `MembershipTypesModule` that was created by this mutation.""" - membershipTypesModule: MembershipTypesModule + """The `UserSettingsModule` that was created by this mutation.""" + userSettingsModule: UserSettingsModule """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `MembershipTypesModule`. May be used by Relay 1.""" - membershipTypesModuleEdge( - """The method to use when ordering `MembershipTypesModule`.""" - orderBy: [MembershipTypesModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): MembershipTypesModuleEdge + """An edge for our `UserSettingsModule`. May be used by Relay 1.""" + userSettingsModuleEdge( + """The method to use when ordering `UserSettingsModule`.""" + orderBy: [UserSettingsModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): UserSettingsModuleEdge } -"""All input for the create `MembershipTypesModule` mutation.""" -input CreateMembershipTypesModuleInput { +"""All input for the create `UserSettingsModule` mutation.""" +input CreateUserSettingsModuleInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - """The `MembershipTypesModule` to be created by this mutation.""" - membershipTypesModule: MembershipTypesModuleInput! + """The `UserSettingsModule` to be created by this mutation.""" + userSettingsModule: UserSettingsModuleInput! } -"""An input for mutations affecting `MembershipTypesModule`""" -input MembershipTypesModuleInput { +"""An input for mutations affecting `UserSettingsModule`""" +input UserSettingsModuleInput { id: UUID databaseId: UUID! schemaId: UUID tableId: UUID + ownerTableId: UUID tableName: String + apiName: String } """The output of our create `UserStateModule` mutation.""" @@ -15159,288 +16671,348 @@ input CreateUserStateModuleInput { input UserStateModuleInput { id: UUID databaseId: UUID! + entityField: String schemaId: UUID tableId: UUID tableName: String } -"""The output of our create `SessionSecretsModule` mutation.""" -type CreateSessionSecretsModulePayload { +"""The output of our create `UserCredentialsModule` mutation.""" +type CreateUserCredentialsModulePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `SessionSecretsModule` that was created by this mutation.""" - sessionSecretsModule: SessionSecretsModule + """The `UserCredentialsModule` that was created by this mutation.""" + userCredentialsModule: UserCredentialsModule """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `SessionSecretsModule`. May be used by Relay 1.""" - sessionSecretsModuleEdge( - """The method to use when ordering `SessionSecretsModule`.""" - orderBy: [SessionSecretsModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): SessionSecretsModuleEdge + """An edge for our `UserCredentialsModule`. May be used by Relay 1.""" + userCredentialsModuleEdge( + """The method to use when ordering `UserCredentialsModule`.""" + orderBy: [UserCredentialsModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): UserCredentialsModuleEdge } -"""All input for the create `SessionSecretsModule` mutation.""" -input CreateSessionSecretsModuleInput { +"""All input for the create `UserCredentialsModule` mutation.""" +input CreateUserCredentialsModuleInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - """The `SessionSecretsModule` to be created by this mutation.""" - sessionSecretsModule: SessionSecretsModuleInput! + """The `UserCredentialsModule` to be created by this mutation.""" + userCredentialsModule: UserCredentialsModuleInput! +} + +"""An input for mutations affecting `UserCredentialsModule`""" +input UserCredentialsModuleInput { + id: UUID + databaseId: UUID! + entityField: String + schemaId: UUID + tableId: UUID + tableName: String + privateApiName: String +} + +"""The output of our create `ConnectedAccountsModule` mutation.""" +type CreateConnectedAccountsModulePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `ConnectedAccountsModule` that was created by this mutation.""" + connectedAccountsModule: ConnectedAccountsModule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `ConnectedAccountsModule`. May be used by Relay 1.""" + connectedAccountsModuleEdge( + """The method to use when ordering `ConnectedAccountsModule`.""" + orderBy: [ConnectedAccountsModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): ConnectedAccountsModuleEdge +} + +"""All input for the create `ConnectedAccountsModule` mutation.""" +input CreateConnectedAccountsModuleInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """The `ConnectedAccountsModule` to be created by this mutation.""" + connectedAccountsModule: ConnectedAccountsModuleInput! } -"""An input for mutations affecting `SessionSecretsModule`""" -input SessionSecretsModuleInput { +"""An input for mutations affecting `ConnectedAccountsModule`""" +input ConnectedAccountsModuleInput { id: UUID databaseId: UUID! schemaId: UUID + privateSchemaId: UUID tableId: UUID - tableName: String - - """ - Resolved reference to sessions_module.sessions_table, used to FK session_secrets.session_id with ON DELETE CASCADE. - """ - sessionsTableId: UUID + ownerTableId: UUID + tableName: String! + apiName: String + privateApiName: String } -"""The output of our create `ConfigSecretsOrgModule` mutation.""" -type CreateConfigSecretsOrgModulePayload { +"""The output of our create `EmailsModule` mutation.""" +type CreateEmailsModulePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `ConfigSecretsOrgModule` that was created by this mutation.""" - configSecretsOrgModule: ConfigSecretsOrgModule + """The `EmailsModule` that was created by this mutation.""" + emailsModule: EmailsModule """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `ConfigSecretsOrgModule`. May be used by Relay 1.""" - configSecretsOrgModuleEdge( - """The method to use when ordering `ConfigSecretsOrgModule`.""" - orderBy: [ConfigSecretsOrgModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): ConfigSecretsOrgModuleEdge + """An edge for our `EmailsModule`. May be used by Relay 1.""" + emailsModuleEdge( + """The method to use when ordering `EmailsModule`.""" + orderBy: [EmailsModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): EmailsModuleEdge } -"""All input for the create `ConfigSecretsOrgModule` mutation.""" -input CreateConfigSecretsOrgModuleInput { +"""All input for the create `EmailsModule` mutation.""" +input CreateEmailsModuleInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - """The `ConfigSecretsOrgModule` to be created by this mutation.""" - configSecretsOrgModule: ConfigSecretsOrgModuleInput! + """The `EmailsModule` to be created by this mutation.""" + emailsModule: EmailsModuleInput! } -"""An input for mutations affecting `ConfigSecretsOrgModule`""" -input ConfigSecretsOrgModuleInput { +"""An input for mutations affecting `EmailsModule`""" +input EmailsModuleInput { id: UUID databaseId: UUID! schemaId: UUID + privateSchemaId: UUID tableId: UUID - tableName: String + ownerTableId: UUID + tableName: String! apiName: String privateApiName: String } -"""The output of our create `DevicesModule` mutation.""" -type CreateDevicesModulePayload { +"""The output of our create `PhoneNumbersModule` mutation.""" +type CreatePhoneNumbersModulePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `DevicesModule` that was created by this mutation.""" - devicesModule: DevicesModule + """The `PhoneNumbersModule` that was created by this mutation.""" + phoneNumbersModule: PhoneNumbersModule """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `DevicesModule`. May be used by Relay 1.""" - devicesModuleEdge( - """The method to use when ordering `DevicesModule`.""" - orderBy: [DevicesModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): DevicesModuleEdge + """An edge for our `PhoneNumbersModule`. May be used by Relay 1.""" + phoneNumbersModuleEdge( + """The method to use when ordering `PhoneNumbersModule`.""" + orderBy: [PhoneNumbersModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): PhoneNumbersModuleEdge } -"""All input for the create `DevicesModule` mutation.""" -input CreateDevicesModuleInput { +"""All input for the create `PhoneNumbersModule` mutation.""" +input CreatePhoneNumbersModuleInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - """The `DevicesModule` to be created by this mutation.""" - devicesModule: DevicesModuleInput! + """The `PhoneNumbersModule` to be created by this mutation.""" + phoneNumbersModule: PhoneNumbersModuleInput! } -"""An input for mutations affecting `DevicesModule`""" -input DevicesModuleInput { +"""An input for mutations affecting `PhoneNumbersModule`""" +input PhoneNumbersModuleInput { id: UUID databaseId: UUID! schemaId: UUID - userDevicesTableId: UUID - deviceSettingsTableId: UUID - userDevicesTable: String - deviceSettingsTable: String + privateSchemaId: UUID + tableId: UUID + ownerTableId: UUID + tableName: String! + apiName: String + privateApiName: String } -"""The output of our create `I18NModule` mutation.""" -type CreateI18NModulePayload { +"""The output of our create `RateLimitsModule` mutation.""" +type CreateRateLimitsModulePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `I18NModule` that was created by this mutation.""" - i18NModule: I18NModule + """The `RateLimitsModule` that was created by this mutation.""" + rateLimitsModule: RateLimitsModule """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `I18NModule`. May be used by Relay 1.""" - i18NModuleEdge( - """The method to use when ordering `I18NModule`.""" - orderBy: [I18NModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): I18NModuleEdge + """An edge for our `RateLimitsModule`. May be used by Relay 1.""" + rateLimitsModuleEdge( + """The method to use when ordering `RateLimitsModule`.""" + orderBy: [RateLimitsModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): RateLimitsModuleEdge } -"""All input for the create `I18NModule` mutation.""" -input CreateI18NModuleInput { +"""All input for the create `RateLimitsModule` mutation.""" +input CreateRateLimitsModuleInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - """The `I18NModule` to be created by this mutation.""" - i18NModule: I18NModuleInput! + """The `RateLimitsModule` to be created by this mutation.""" + rateLimitsModule: RateLimitsModuleInput! } -"""An input for mutations affecting `I18NModule`""" -input I18NModuleInput { +"""An input for mutations affecting `RateLimitsModule`""" +input RateLimitsModuleInput { id: UUID databaseId: UUID! schemaId: UUID - privateSchemaId: UUID - settingsTableId: UUID - apiName: String - privateApiName: String + rateLimitSettingsTableId: UUID + ipRateLimitsTableId: UUID + rateLimitsTableId: UUID + rateLimitSettingsTable: String + ipRateLimitsTable: String + rateLimitsTable: String } -"""The output of our create `UserCredentialsModule` mutation.""" -type CreateUserCredentialsModulePayload { +"""The output of our create `UsersModule` mutation.""" +type CreateUsersModulePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `UserCredentialsModule` that was created by this mutation.""" - userCredentialsModule: UserCredentialsModule + """The `UsersModule` that was created by this mutation.""" + usersModule: UsersModule """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `UserCredentialsModule`. May be used by Relay 1.""" - userCredentialsModuleEdge( - """The method to use when ordering `UserCredentialsModule`.""" - orderBy: [UserCredentialsModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): UserCredentialsModuleEdge + """An edge for our `UsersModule`. May be used by Relay 1.""" + usersModuleEdge( + """The method to use when ordering `UsersModule`.""" + orderBy: [UsersModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): UsersModuleEdge } -"""All input for the create `UserCredentialsModule` mutation.""" -input CreateUserCredentialsModuleInput { +"""All input for the create `UsersModule` mutation.""" +input CreateUsersModuleInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - """The `UserCredentialsModule` to be created by this mutation.""" - userCredentialsModule: UserCredentialsModuleInput! + """The `UsersModule` to be created by this mutation.""" + usersModule: UsersModuleInput! } -"""An input for mutations affecting `UserCredentialsModule`""" -input UserCredentialsModuleInput { +"""An input for mutations affecting `UsersModule`""" +input UsersModuleInput { id: UUID databaseId: UUID! schemaId: UUID tableId: UUID tableName: String + typeTableId: UUID + typeTableName: String apiName: String privateApiName: String } -"""The output of our create `UserSettingsModule` mutation.""" -type CreateUserSettingsModulePayload { +"""The output of our create `WebauthnCredentialsModule` mutation.""" +type CreateWebauthnCredentialsModulePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `UserSettingsModule` that was created by this mutation.""" - userSettingsModule: UserSettingsModule + """The `WebauthnCredentialsModule` that was created by this mutation.""" + webauthnCredentialsModule: WebauthnCredentialsModule """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `UserSettingsModule`. May be used by Relay 1.""" - userSettingsModuleEdge( - """The method to use when ordering `UserSettingsModule`.""" - orderBy: [UserSettingsModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): UserSettingsModuleEdge + """An edge for our `WebauthnCredentialsModule`. May be used by Relay 1.""" + webauthnCredentialsModuleEdge( + """The method to use when ordering `WebauthnCredentialsModule`.""" + orderBy: [WebauthnCredentialsModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): WebauthnCredentialsModuleEdge } -"""All input for the create `UserSettingsModule` mutation.""" -input CreateUserSettingsModuleInput { +"""All input for the create `WebauthnCredentialsModule` mutation.""" +input CreateWebauthnCredentialsModuleInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - """The `UserSettingsModule` to be created by this mutation.""" - userSettingsModule: UserSettingsModuleInput! + """The `WebauthnCredentialsModule` to be created by this mutation.""" + webauthnCredentialsModule: WebauthnCredentialsModuleInput! } -"""An input for mutations affecting `UserSettingsModule`""" -input UserSettingsModuleInput { +"""An input for mutations affecting `WebauthnCredentialsModule`""" +input WebauthnCredentialsModuleInput { id: UUID databaseId: UUID! schemaId: UUID + + """ + Private schema that hosts SECURITY DEFINER helpers which write to webauthn_credentials (registration / counter-bump / delete). + """ + privateSchemaId: UUID tableId: UUID ownerTableId: UUID tableName: String apiName: String + privateApiName: String } """The output of our create `ConfigSecretsUserModule` mutation.""" @@ -15482,51 +17054,51 @@ input CreateConfigSecretsUserModuleInput { input ConfigSecretsUserModuleInput { id: UUID databaseId: UUID! + entityField: String schemaId: UUID tableId: UUID tableName: String - configDefinitionsTableId: UUID apiName: String privateApiName: String } -"""The output of our create `ConnectedAccountsModule` mutation.""" -type CreateConnectedAccountsModulePayload { +"""The output of our create `CryptoAddressesModule` mutation.""" +type CreateCryptoAddressesModulePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `ConnectedAccountsModule` that was created by this mutation.""" - connectedAccountsModule: ConnectedAccountsModule + """The `CryptoAddressesModule` that was created by this mutation.""" + cryptoAddressesModule: CryptoAddressesModule """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `ConnectedAccountsModule`. May be used by Relay 1.""" - connectedAccountsModuleEdge( - """The method to use when ordering `ConnectedAccountsModule`.""" - orderBy: [ConnectedAccountsModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): ConnectedAccountsModuleEdge + """An edge for our `CryptoAddressesModule`. May be used by Relay 1.""" + cryptoAddressesModuleEdge( + """The method to use when ordering `CryptoAddressesModule`.""" + orderBy: [CryptoAddressesModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): CryptoAddressesModuleEdge } -"""All input for the create `ConnectedAccountsModule` mutation.""" -input CreateConnectedAccountsModuleInput { +"""All input for the create `CryptoAddressesModule` mutation.""" +input CreateCryptoAddressesModuleInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - """The `ConnectedAccountsModule` to be created by this mutation.""" - connectedAccountsModule: ConnectedAccountsModuleInput! + """The `CryptoAddressesModule` to be created by this mutation.""" + cryptoAddressesModule: CryptoAddressesModuleInput! } -"""An input for mutations affecting `ConnectedAccountsModule`""" -input ConnectedAccountsModuleInput { +"""An input for mutations affecting `CryptoAddressesModule`""" +input CryptoAddressesModuleInput { id: UUID databaseId: UUID! schemaId: UUID @@ -15534,352 +17106,471 @@ input ConnectedAccountsModuleInput { tableId: UUID ownerTableId: UUID tableName: String! + cryptoNetwork: String apiName: String privateApiName: String } -"""The output of our create `EmailsModule` mutation.""" -type CreateEmailsModulePayload { +"""The output of our create `DenormalizedTableField` mutation.""" +type CreateDenormalizedTableFieldPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `DenormalizedTableField` that was created by this mutation.""" + denormalizedTableField: DenormalizedTableField + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `DenormalizedTableField`. May be used by Relay 1.""" + denormalizedTableFieldEdge( + """The method to use when ordering `DenormalizedTableField`.""" + orderBy: [DenormalizedTableFieldOrderBy!]! = [PRIMARY_KEY_ASC] + ): DenormalizedTableFieldEdge +} + +"""All input for the create `DenormalizedTableField` mutation.""" +input CreateDenormalizedTableFieldInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """The `DenormalizedTableField` to be created by this mutation.""" + denormalizedTableField: DenormalizedTableFieldInput! +} + +"""An input for mutations affecting `DenormalizedTableField`""" +input DenormalizedTableFieldInput { + id: UUID + databaseId: UUID! + tableId: UUID! + fieldId: UUID! + setIds: [UUID] + refTableId: UUID! + refFieldId: UUID! + refIds: [UUID] + useUpdates: Boolean + updateDefaults: Boolean + funcName: String + funcOrder: Int +} + +"""The output of our create `RlsModule` mutation.""" +type CreateRlsModulePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `EmailsModule` that was created by this mutation.""" - emailsModule: EmailsModule + """The `RlsModule` that was created by this mutation.""" + rlsModule: RlsModule """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `EmailsModule`. May be used by Relay 1.""" - emailsModuleEdge( - """The method to use when ordering `EmailsModule`.""" - orderBy: [EmailsModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): EmailsModuleEdge + """An edge for our `RlsModule`. May be used by Relay 1.""" + rlsModuleEdge( + """The method to use when ordering `RlsModule`.""" + orderBy: [RlsModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): RlsModuleEdge } -"""All input for the create `EmailsModule` mutation.""" -input CreateEmailsModuleInput { +"""All input for the create `RlsModule` mutation.""" +input CreateRlsModuleInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - """The `EmailsModule` to be created by this mutation.""" - emailsModule: EmailsModuleInput! + """The `RlsModule` to be created by this mutation.""" + rlsModule: RlsModuleInput! } -"""An input for mutations affecting `EmailsModule`""" -input EmailsModuleInput { +"""An input for mutations affecting `RlsModule`""" +input RlsModuleInput { id: UUID databaseId: UUID! schemaId: UUID privateSchemaId: UUID - tableId: UUID - ownerTableId: UUID - tableName: String! + sessionCredentialsTableId: UUID + sessionsTableId: UUID + usersTableId: UUID + authenticate: String + authenticateStrict: String + currentRole: String + currentRoleId: String apiName: String privateApiName: String } -"""The output of our create `PhoneNumbersModule` mutation.""" -type CreatePhoneNumbersModulePayload { +"""The output of our create `Blueprint` mutation.""" +type CreateBlueprintPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `PhoneNumbersModule` that was created by this mutation.""" - phoneNumbersModule: PhoneNumbersModule + """The `Blueprint` that was created by this mutation.""" + blueprint: Blueprint """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `PhoneNumbersModule`. May be used by Relay 1.""" - phoneNumbersModuleEdge( - """The method to use when ordering `PhoneNumbersModule`.""" - orderBy: [PhoneNumbersModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): PhoneNumbersModuleEdge + """An edge for our `Blueprint`. May be used by Relay 1.""" + blueprintEdge( + """The method to use when ordering `Blueprint`.""" + orderBy: [BlueprintOrderBy!]! = [PRIMARY_KEY_ASC] + ): BlueprintEdge } -"""All input for the create `PhoneNumbersModule` mutation.""" -input CreatePhoneNumbersModuleInput { +"""All input for the create `Blueprint` mutation.""" +input CreateBlueprintInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - """The `PhoneNumbersModule` to be created by this mutation.""" - phoneNumbersModule: PhoneNumbersModuleInput! + """The `Blueprint` to be created by this mutation.""" + blueprint: BlueprintInput! } -"""An input for mutations affecting `PhoneNumbersModule`""" -input PhoneNumbersModuleInput { +"""An input for mutations affecting `Blueprint`""" +input BlueprintInput { + """Unique identifier for this blueprint.""" id: UUID + + """The user who owns this blueprint.""" + ownerId: UUID! + + """ + The database this blueprint is scoped to. Tables created by construct_blueprint() are provisioned in this database. + """ databaseId: UUID! - schemaId: UUID - privateSchemaId: UUID - tableId: UUID - ownerTableId: UUID - tableName: String! - apiName: String - privateApiName: String + + """Machine-readable name for the blueprint. Must be unique per database.""" + name: String! + + """Human-readable display name for the blueprint.""" + displayName: String! + + """Optional description of the blueprint.""" + description: String + + """ + The blueprint definition as a JSONB document. Contains tables[] (each with table_name, optional schema_name, nodes[] for data behaviors, fields[], grants[], and policies[] using $type), relations[] (using $type with source_table/target_table and optional source_schema/target_schema), indexes[] (using table_name + column), and full_text_searches[] (using table_name + field + sources[]). Everything is name-based — no UUIDs in the definition. + """ + definition: JSON! + + """ + If this blueprint was created by copying a template, the ID of the source template. NULL if built from scratch. + """ + templateId: UUID + + """ + UUIDv5 Merkle root hash of the definition. Computed automatically via trigger from the ordered table_hashes. Used for content-addressable deduplication and provenance tracking. Backend-computed — clients should never set this directly. + """ + definitionHash: UUID + + """ + JSONB map of table names to their individual UUIDv5 content hashes. Each table hash is computed from the canonical jsonb::text of the table entry. Enables structural comparison at the table level across blueprints and templates. Backend-computed via trigger. + """ + tableHashes: JSON + + """Timestamp when this blueprint was created.""" + createdAt: Datetime + + """Timestamp when this blueprint was last modified.""" + updatedAt: Datetime } -"""The output of our create `RateLimitsModule` mutation.""" -type CreateRateLimitsModulePayload { +"""The output of our create `CryptoAuthModule` mutation.""" +type CreateCryptoAuthModulePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `RateLimitsModule` that was created by this mutation.""" - rateLimitsModule: RateLimitsModule + """The `CryptoAuthModule` that was created by this mutation.""" + cryptoAuthModule: CryptoAuthModule """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `RateLimitsModule`. May be used by Relay 1.""" - rateLimitsModuleEdge( - """The method to use when ordering `RateLimitsModule`.""" - orderBy: [RateLimitsModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): RateLimitsModuleEdge + """An edge for our `CryptoAuthModule`. May be used by Relay 1.""" + cryptoAuthModuleEdge( + """The method to use when ordering `CryptoAuthModule`.""" + orderBy: [CryptoAuthModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): CryptoAuthModuleEdge } -"""All input for the create `RateLimitsModule` mutation.""" -input CreateRateLimitsModuleInput { +"""All input for the create `CryptoAuthModule` mutation.""" +input CreateCryptoAuthModuleInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - """The `RateLimitsModule` to be created by this mutation.""" - rateLimitsModule: RateLimitsModuleInput! + """The `CryptoAuthModule` to be created by this mutation.""" + cryptoAuthModule: CryptoAuthModuleInput! } -"""An input for mutations affecting `RateLimitsModule`""" -input RateLimitsModuleInput { +"""An input for mutations affecting `CryptoAuthModule`""" +input CryptoAuthModuleInput { id: UUID databaseId: UUID! schemaId: UUID - rateLimitSettingsTableId: UUID - ipRateLimitsTableId: UUID - rateLimitsTableId: UUID - rateLimitSettingsTable: String - ipRateLimitsTable: String - rateLimitsTable: String + usersTableId: UUID + secretsTableId: UUID + sessionsTableId: UUID + sessionCredentialsTableId: UUID + addressesTableId: UUID + userField: String! + cryptoNetwork: String + signInRequestChallenge: String + signInRecordFailure: String + signUpWithKey: String + signInWithChallenge: String } -"""The output of our create `UsersModule` mutation.""" -type CreateUsersModulePayload { +"""The output of our create `BlueprintConstruction` mutation.""" +type CreateBlueprintConstructionPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `UsersModule` that was created by this mutation.""" - usersModule: UsersModule + """The `BlueprintConstruction` that was created by this mutation.""" + blueprintConstruction: BlueprintConstruction """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `UsersModule`. May be used by Relay 1.""" - usersModuleEdge( - """The method to use when ordering `UsersModule`.""" - orderBy: [UsersModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): UsersModuleEdge + """An edge for our `BlueprintConstruction`. May be used by Relay 1.""" + blueprintConstructionEdge( + """The method to use when ordering `BlueprintConstruction`.""" + orderBy: [BlueprintConstructionOrderBy!]! = [PRIMARY_KEY_ASC] + ): BlueprintConstructionEdge } -"""All input for the create `UsersModule` mutation.""" -input CreateUsersModuleInput { +"""All input for the create `BlueprintConstruction` mutation.""" +input CreateBlueprintConstructionInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - """The `UsersModule` to be created by this mutation.""" - usersModule: UsersModuleInput! + """The `BlueprintConstruction` to be created by this mutation.""" + blueprintConstruction: BlueprintConstructionInput! } -"""An input for mutations affecting `UsersModule`""" -input UsersModuleInput { +"""An input for mutations affecting `BlueprintConstruction`""" +input BlueprintConstructionInput { + """Unique identifier for this construction attempt.""" id: UUID + + """The blueprint that was constructed.""" + blueprintId: UUID! + + """The database the blueprint was constructed into.""" databaseId: UUID! + + """ + The default schema used for tables that did not specify an explicit schema_name. NULL if not yet resolved. + """ schemaId: UUID - tableId: UUID - tableName: String - typeTableId: UUID - typeTableName: String - apiName: String - privateApiName: String + + """ + Execution state of this construction attempt. pending: created but not yet started. constructing: currently executing. constructed: successfully completed. failed: execution failed (see error_details). + """ + status: String + + """ + Error message from a failed construction attempt. NULL unless status is failed. + """ + errorDetails: String + + """ + Mapping of table names to created table UUIDs, populated after successful construction. Format: {"products": "uuid", "categories": "uuid", ...}. Defaults to empty object. + """ + tableMap: JSON + + """ + Immutable snapshot of the definition at construct-time. Preserved so the exact definition that was executed is recorded even if the user later modifies the blueprint definition. + """ + constructedDefinition: JSON + + """ + Timestamp when construction successfully completed. NULL until constructed. + """ + constructedAt: Datetime + + """Timestamp when this construction attempt was created.""" + createdAt: Datetime + + """Timestamp when this construction attempt was last modified.""" + updatedAt: Datetime } -"""The output of our create `WebauthnCredentialsModule` mutation.""" -type CreateWebauthnCredentialsModulePayload { +"""The output of our create `SessionsModule` mutation.""" +type CreateSessionsModulePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `WebauthnCredentialsModule` that was created by this mutation.""" - webauthnCredentialsModule: WebauthnCredentialsModule + """The `SessionsModule` that was created by this mutation.""" + sessionsModule: SessionsModule """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `WebauthnCredentialsModule`. May be used by Relay 1.""" - webauthnCredentialsModuleEdge( - """The method to use when ordering `WebauthnCredentialsModule`.""" - orderBy: [WebauthnCredentialsModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): WebauthnCredentialsModuleEdge + """An edge for our `SessionsModule`. May be used by Relay 1.""" + sessionsModuleEdge( + """The method to use when ordering `SessionsModule`.""" + orderBy: [SessionsModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): SessionsModuleEdge } -"""All input for the create `WebauthnCredentialsModule` mutation.""" -input CreateWebauthnCredentialsModuleInput { +"""All input for the create `SessionsModule` mutation.""" +input CreateSessionsModuleInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - """The `WebauthnCredentialsModule` to be created by this mutation.""" - webauthnCredentialsModule: WebauthnCredentialsModuleInput! + """The `SessionsModule` to be created by this mutation.""" + sessionsModule: SessionsModuleInput! } -"""An input for mutations affecting `WebauthnCredentialsModule`""" -input WebauthnCredentialsModuleInput { +"""An input for mutations affecting `SessionsModule`""" +input SessionsModuleInput { id: UUID databaseId: UUID! schemaId: UUID - - """ - Private schema that hosts SECURITY DEFINER helpers which write to webauthn_credentials (registration / counter-bump / delete). - """ - privateSchemaId: UUID - tableId: UUID - ownerTableId: UUID - tableName: String - apiName: String - privateApiName: String + sessionsTableId: UUID + sessionCredentialsTableId: UUID + authSettingsTableId: UUID + usersTableId: UUID + sessionsDefaultExpiration: IntervalInput + sessionsTable: String + sessionCredentialsTable: String + authSettingsTable: String } -"""The output of our create `CryptoAddressesModule` mutation.""" -type CreateCryptoAddressesModulePayload { +"""The output of our create `SecureTableProvision` mutation.""" +type CreateSecureTableProvisionPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `CryptoAddressesModule` that was created by this mutation.""" - cryptoAddressesModule: CryptoAddressesModule + """The `SecureTableProvision` that was created by this mutation.""" + secureTableProvision: SecureTableProvision """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `CryptoAddressesModule`. May be used by Relay 1.""" - cryptoAddressesModuleEdge( - """The method to use when ordering `CryptoAddressesModule`.""" - orderBy: [CryptoAddressesModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): CryptoAddressesModuleEdge + """An edge for our `SecureTableProvision`. May be used by Relay 1.""" + secureTableProvisionEdge( + """The method to use when ordering `SecureTableProvision`.""" + orderBy: [SecureTableProvisionOrderBy!]! = [PRIMARY_KEY_ASC] + ): SecureTableProvisionEdge } -"""All input for the create `CryptoAddressesModule` mutation.""" -input CreateCryptoAddressesModuleInput { +"""All input for the create `SecureTableProvision` mutation.""" +input CreateSecureTableProvisionInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - """The `CryptoAddressesModule` to be created by this mutation.""" - cryptoAddressesModule: CryptoAddressesModuleInput! + """The `SecureTableProvision` to be created by this mutation.""" + secureTableProvision: SecureTableProvisionInput! } -"""An input for mutations affecting `CryptoAddressesModule`""" -input CryptoAddressesModuleInput { +"""An input for mutations affecting `SecureTableProvision`""" +input SecureTableProvisionInput { + """Unique identifier for this provision row.""" id: UUID + + """The database this provision belongs to. Required.""" databaseId: UUID! + + """ + Target schema for the table. Defaults to uuid_nil(); the trigger resolves this to the app_public schema if not explicitly provided. + """ schemaId: UUID - privateSchemaId: UUID + + """ + Target table to provision. Defaults to uuid_nil(); the trigger creates or resolves the table via table_name if not explicitly provided. + """ tableId: UUID - ownerTableId: UUID - tableName: String! - cryptoNetwork: String - apiName: String - privateApiName: String -} -"""The output of our create `DenormalizedTableField` mutation.""" -type CreateDenormalizedTableFieldPayload { """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. + Name of the target table. Used to create or look up the table when table_id is not provided. If omitted, it is backfilled from the resolved table. """ - clientMutationId: String + tableName: String - """The `DenormalizedTableField` that was created by this mutation.""" - denormalizedTableField: DenormalizedTableField + """ + Array of node objects to apply to the table. Each element is a jsonb object with a required "$type" key (one of: DataId, DataDirectOwner, DataEntityMembership, DataOwnershipInEntity, DataTimestamps, DataPeoplestamps, DataPublishable, DataSoftDelete, DataEmbedding, DataFullTextSearch, DataSlug, etc.) and an optional "data" key containing generator-specific configuration. Supports multiple nodes per row, matching the blueprint definition format. Example: [{"$type": "DataId"}, {"$type": "DataTimestamps"}, {"$type": "DataDirectOwner", "data": {"owner_field_name": "author_id"}}]. Defaults to '[]' (no node processing). + """ + nodes: JSON """ - Our root query field type. Allows us to run any query from our mutation payload. + If true and Row Level Security is not yet enabled on the target table, enable it. Automatically set to true by the trigger when policies[] is non-empty. Defaults to true. """ - query: Query + useRls: Boolean - """An edge for our `DenormalizedTableField`. May be used by Relay 1.""" - denormalizedTableFieldEdge( - """The method to use when ordering `DenormalizedTableField`.""" - orderBy: [DenormalizedTableFieldOrderBy!]! = [PRIMARY_KEY_ASC] - ): DenormalizedTableFieldEdge -} + """ + PostgreSQL array of jsonb field definition objects to create on the target table. Each object has keys: "name" (text, required), "type" (text, required), "default" (text, optional), "is_required" (boolean, optional, defaults to false), "min" (float, optional), "max" (float, optional), "regexp" (text, optional), "index" (boolean, optional, defaults to false — creates a btree index on the field). min/max generate CHECK constraints: for text/citext they constrain character_length, for integer/float types they constrain the value. regexp generates a CHECK (col ~ pattern) constraint for text/citext. Fields are created via metaschema.create_field() after any node_type generator runs, and their IDs are appended to out_fields. Example: ARRAY['{"name":"username","type":"citext","max":256,"regexp":"^[a-z0-9_]+$"}'::jsonb, '{"name":"score","type":"integer","min":0,"max":100}'::jsonb]. Defaults to '{}' (no additional fields). + """ + fields: [JSON] -"""All input for the create `DenormalizedTableField` mutation.""" -input CreateDenormalizedTableFieldInput { """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. + Array of grant objects defining table privileges. Each element is a jsonb object with keys: "roles" (text[], required — database roles to grant to, e.g. ["authenticated","admin"]), "privileges" (jsonb[], required — array of [privilege, columns] tuples, e.g. [["select","*"],["insert","*"]]). "*" means all columns; an array means column-level grant. Supports per-role privilege targeting: different grant entries can target different roles with different privileges. Example: [{"roles":["authenticated"],"privileges":[["select","*"]]},{"roles":["admin"],"privileges":[["insert","*"],["update","*"],["delete","*"]]}]. Defaults to '[]' (no grants). When policies[] omit explicit privileges/policy_role, they fall back to the verbs and first role from grants[]. """ - clientMutationId: String + grants: JSON - """The `DenormalizedTableField` to be created by this mutation.""" - denormalizedTableField: DenormalizedTableFieldInput! -} + """ + 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: JSON -"""An input for mutations affecting `DenormalizedTableField`""" -input DenormalizedTableFieldInput { - id: UUID - databaseId: UUID! - tableId: UUID! - fieldId: UUID! - setIds: [UUID] - refTableId: UUID! - refFieldId: UUID! - refIds: [UUID] - useUpdates: Boolean - updateDefaults: Boolean - funcName: String - funcOrder: Int + """ + 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: [UUID] } """The output of our create `IdentityProvidersModule` mutation.""" @@ -15921,6 +17612,7 @@ input CreateIdentityProvidersModuleInput { input IdentityProvidersModuleInput { id: UUID databaseId: UUID! + entityField: String schemaId: UUID """ @@ -15938,540 +17630,684 @@ input IdentityProvidersModuleInput { entityTableId: UUID } -"""The output of our create `RlsModule` mutation.""" -type CreateRlsModulePayload { +"""The output of our create `IntegrationProvidersModule` mutation.""" +type CreateIntegrationProvidersModulePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `RlsModule` that was created by this mutation.""" - rlsModule: RlsModule + """The `IntegrationProvidersModule` that was created by this mutation.""" + integrationProvidersModule: IntegrationProvidersModule """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `RlsModule`. May be used by Relay 1.""" - rlsModuleEdge( - """The method to use when ordering `RlsModule`.""" - orderBy: [RlsModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): RlsModuleEdge + """An edge for our `IntegrationProvidersModule`. May be used by Relay 1.""" + integrationProvidersModuleEdge( + """The method to use when ordering `IntegrationProvidersModule`.""" + orderBy: [IntegrationProvidersModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): IntegrationProvidersModuleEdge } -"""All input for the create `RlsModule` mutation.""" -input CreateRlsModuleInput { +"""All input for the create `IntegrationProvidersModule` mutation.""" +input CreateIntegrationProvidersModuleInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - """The `RlsModule` to be created by this mutation.""" - rlsModule: RlsModuleInput! + """The `IntegrationProvidersModule` to be created by this mutation.""" + integrationProvidersModule: IntegrationProvidersModuleInput! } -"""An input for mutations affecting `RlsModule`""" -input RlsModuleInput { +"""An input for mutations affecting `IntegrationProvidersModule`""" +input IntegrationProvidersModuleInput { id: UUID databaseId: UUID! + entityField: String schemaId: UUID privateSchemaId: UUID - sessionCredentialsTableId: UUID - sessionsTableId: UUID - usersTableId: UUID - authenticate: String - authenticateStrict: String - currentRole: String - currentRoleId: String + publicSchemaName: String + privateSchemaName: String + tableId: UUID + tableName: String apiName: String privateApiName: String + scope: String + prefix: String + entityTableId: UUID } -"""The output of our create `Blueprint` mutation.""" -type CreateBlueprintPayload { +"""The output of our create `DbPoolConfig` mutation.""" +type CreateDbPoolConfigPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `Blueprint` that was created by this mutation.""" - blueprint: Blueprint + """The `DbPoolConfig` that was created by this mutation.""" + dbPoolConfig: DbPoolConfig """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `Blueprint`. May be used by Relay 1.""" - blueprintEdge( - """The method to use when ordering `Blueprint`.""" - orderBy: [BlueprintOrderBy!]! = [PRIMARY_KEY_ASC] - ): BlueprintEdge + """An edge for our `DbPoolConfig`. May be used by Relay 1.""" + dbPoolConfigEdge( + """The method to use when ordering `DbPoolConfig`.""" + orderBy: [DbPoolConfigOrderBy!]! = [PRIMARY_KEY_ASC] + ): DbPoolConfigEdge } -"""All input for the create `Blueprint` mutation.""" -input CreateBlueprintInput { +"""All input for the create `DbPoolConfig` mutation.""" +input CreateDbPoolConfigInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - """The `Blueprint` to be created by this mutation.""" - blueprint: BlueprintInput! + """The `DbPoolConfig` to be created by this mutation.""" + dbPoolConfig: DbPoolConfigInput! } -"""An input for mutations affecting `Blueprint`""" -input BlueprintInput { - """Unique identifier for this blueprint.""" +"""An input for mutations affecting `DbPoolConfig`""" +input DbPoolConfigInput { id: UUID - """The user who owns this blueprint.""" - ownerId: UUID! + """Slug of the db_presets catalog row this pool serves""" + presetSlug: String! + + """Base domain used when provisioning warm databases""" + domain: String! """ - The database this blueprint is scoped to. Tables created by construct_blueprint() are provisioned in this database. + Platform pool service org that owns warm databases until they are claimed """ - databaseId: UUID! + poolOwnerId: UUID! - """Machine-readable name for the blueprint. Must be unique per database.""" - name: String! + """Minimum number of ready warm databases the reconciler maintains""" + min: Int - """Human-readable display name for the blueprint.""" - displayName: String! + """Maximum number of warming + ready databases the reconciler will keep""" + max: Int - """Optional description of the blueprint.""" - description: String + """How long a ready warm database stays claimable before it expires""" + warmTtl: IntervalInput """ - The blueprint definition as a JSONB document. Contains tables[] (each with table_name, optional schema_name, nodes[] for data behaviors, fields[], grants[], and policies[] using $type), relations[] (using $type with source_table/target_table and optional source_schema/target_schema), indexes[] (using table_name + column), and full_text_searches[] (using table_name + field + sources[]). Everything is name-based — no UUIDs in the definition. + When false the reconciler stops warming and the claim path falls through to cold provisioning """ - definition: JSON! + enabled: Boolean + createdAt: Datetime + updatedAt: Datetime +} +"""The output of our create `RealtimeModule` mutation.""" +type CreateRealtimeModulePayload { """ - If this blueprint was created by copying a template, the ID of the source template. NULL if built from scratch. + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. """ - templateId: UUID + clientMutationId: String + + """The `RealtimeModule` that was created by this mutation.""" + realtimeModule: RealtimeModule """ - UUIDv5 Merkle root hash of the definition. Computed automatically via trigger from the ordered table_hashes. Used for content-addressable deduplication and provenance tracking. Backend-computed — clients should never set this directly. + Our root query field type. Allows us to run any query from our mutation payload. """ - definitionHash: UUID + query: Query + + """An edge for our `RealtimeModule`. May be used by Relay 1.""" + realtimeModuleEdge( + """The method to use when ordering `RealtimeModule`.""" + orderBy: [RealtimeModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): RealtimeModuleEdge +} +"""All input for the create `RealtimeModule` mutation.""" +input CreateRealtimeModuleInput { """ - JSONB map of table names to their individual UUIDv5 content hashes. Each table hash is computed from the canonical jsonb::text of the table entry. Enables structural comparison at the table level across blueprints and templates. Backend-computed via trigger. + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. """ - tableHashes: JSON + clientMutationId: String - """Timestamp when this blueprint was created.""" - createdAt: Datetime + """The `RealtimeModule` to be created by this mutation.""" + realtimeModule: RealtimeModuleInput! +} - """Timestamp when this blueprint was last modified.""" - updatedAt: Datetime +"""An input for mutations affecting `RealtimeModule`""" +input RealtimeModuleInput { + id: UUID + databaseId: UUID! + schemaId: UUID + privateSchemaId: UUID + subscriptionsSchemaId: UUID + changeLogTableId: UUID + listenerNodeTableId: UUID + sourceRegistryTableId: UUID + retentionHours: Int + premake: Int + interval: String + notifyChannel: String + apiName: String + privateApiName: String } -"""The output of our create `CryptoAuthModule` mutation.""" -type CreateCryptoAuthModulePayload { +"""The output of our create `InfraSecretsModule` mutation.""" +type CreateInfraSecretsModulePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `CryptoAuthModule` that was created by this mutation.""" - cryptoAuthModule: CryptoAuthModule + """The `InfraSecretsModule` that was created by this mutation.""" + infraSecretsModule: InfraSecretsModule """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `CryptoAuthModule`. May be used by Relay 1.""" - cryptoAuthModuleEdge( - """The method to use when ordering `CryptoAuthModule`.""" - orderBy: [CryptoAuthModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): CryptoAuthModuleEdge + """An edge for our `InfraSecretsModule`. May be used by Relay 1.""" + infraSecretsModuleEdge( + """The method to use when ordering `InfraSecretsModule`.""" + orderBy: [InfraSecretsModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): InfraSecretsModuleEdge } -"""All input for the create `CryptoAuthModule` mutation.""" -input CreateCryptoAuthModuleInput { +"""All input for the create `InfraSecretsModule` mutation.""" +input CreateInfraSecretsModuleInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - """The `CryptoAuthModule` to be created by this mutation.""" - cryptoAuthModule: CryptoAuthModuleInput! + """The `InfraSecretsModule` to be created by this mutation.""" + infraSecretsModule: InfraSecretsModuleInput! } -"""An input for mutations affecting `CryptoAuthModule`""" -input CryptoAuthModuleInput { +"""An input for mutations affecting `InfraSecretsModule`""" +input InfraSecretsModuleInput { id: UUID databaseId: UUID! schemaId: UUID - usersTableId: UUID + privateSchemaId: UUID + publicSchemaName: String + privateSchemaName: String secretsTableId: UUID - sessionsTableId: UUID - sessionCredentialsTableId: UUID - addressesTableId: UUID - userField: String! - cryptoNetwork: String - signInRequestChallenge: String - signInRecordFailure: String - signUpWithKey: String - signInWithChallenge: String + secretsTableName: String + apiName: String + privateApiName: String + scope: String + prefix: String + entityTableId: UUID + entityField: String + policies: JSON + provisions: JSON } -"""The output of our create `BlueprintConstruction` mutation.""" -type CreateBlueprintConstructionPayload { +"""The output of our create `InternalSecretsModule` mutation.""" +type CreateInternalSecretsModulePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `BlueprintConstruction` that was created by this mutation.""" - blueprintConstruction: BlueprintConstruction + """The `InternalSecretsModule` that was created by this mutation.""" + internalSecretsModule: InternalSecretsModule """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `BlueprintConstruction`. May be used by Relay 1.""" - blueprintConstructionEdge( - """The method to use when ordering `BlueprintConstruction`.""" - orderBy: [BlueprintConstructionOrderBy!]! = [PRIMARY_KEY_ASC] - ): BlueprintConstructionEdge + """An edge for our `InternalSecretsModule`. May be used by Relay 1.""" + internalSecretsModuleEdge( + """The method to use when ordering `InternalSecretsModule`.""" + orderBy: [InternalSecretsModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): InternalSecretsModuleEdge } -"""All input for the create `BlueprintConstruction` mutation.""" -input CreateBlueprintConstructionInput { +"""All input for the create `InternalSecretsModule` mutation.""" +input CreateInternalSecretsModuleInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - """The `BlueprintConstruction` to be created by this mutation.""" - blueprintConstruction: BlueprintConstructionInput! + """The `InternalSecretsModule` to be created by this mutation.""" + internalSecretsModule: InternalSecretsModuleInput! } -"""An input for mutations affecting `BlueprintConstruction`""" -input BlueprintConstructionInput { - """Unique identifier for this construction attempt.""" +"""An input for mutations affecting `InternalSecretsModule`""" +input InternalSecretsModuleInput { id: UUID - - """The blueprint that was constructed.""" - blueprintId: UUID! - - """The database the blueprint was constructed into.""" databaseId: UUID! + schemaId: UUID + privateSchemaId: UUID + publicSchemaName: String + privateSchemaName: String + internalSecretsTableId: UUID + internalSecretsTableName: String + apiName: String + privateApiName: String + scope: String + prefix: String + entityTableId: UUID + entityField: String + policies: JSON + provisions: JSON +} +"""The output of our create `DbPresetModule` mutation.""" +type CreateDbPresetModulePayload { """ - The default schema used for tables that did not specify an explicit schema_name. NULL if not yet resolved. + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. """ - schemaId: UUID + clientMutationId: String + + """The `DbPresetModule` that was created by this mutation.""" + dbPresetModule: DbPresetModule """ - Execution state of this construction attempt. pending: created but not yet started. constructing: currently executing. constructed: successfully completed. failed: execution failed (see error_details). + Our root query field type. Allows us to run any query from our mutation payload. """ - status: String + query: Query + + """An edge for our `DbPresetModule`. May be used by Relay 1.""" + dbPresetModuleEdge( + """The method to use when ordering `DbPresetModule`.""" + orderBy: [DbPresetModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): DbPresetModuleEdge +} +"""All input for the create `DbPresetModule` mutation.""" +input CreateDbPresetModuleInput { """ - Error message from a failed construction attempt. NULL unless status is failed. + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. """ - errorDetails: String + clientMutationId: String + + """The `DbPresetModule` to be created by this mutation.""" + dbPresetModule: DbPresetModuleInput! +} +"""An input for mutations affecting `DbPresetModule`""" +input DbPresetModuleInput { + id: UUID + databaseId: UUID! + publicSchemaId: UUID + privateSchemaId: UUID + publicSchemaName: String + privateSchemaName: String + scope: String! + prefix: String! + merkleStoreModuleId: UUID! + dbPresetsTableId: UUID + storeName: String! + apiName: String + privateApiName: String + entityTableId: UUID + policies: JSON + provisions: JSON + createdAt: Datetime +} + +"""The output of our create `RateLimitMetersModule` mutation.""" +type CreateRateLimitMetersModulePayload { """ - Mapping of table names to created table UUIDs, populated after successful construction. Format: {"products": "uuid", "categories": "uuid", ...}. Defaults to empty object. + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. """ - tableMap: JSON + clientMutationId: String + + """The `RateLimitMetersModule` that was created by this mutation.""" + rateLimitMetersModule: RateLimitMetersModule """ - Immutable snapshot of the definition at construct-time. Preserved so the exact definition that was executed is recorded even if the user later modifies the blueprint definition. + Our root query field type. Allows us to run any query from our mutation payload. """ - constructedDefinition: JSON + query: Query + + """An edge for our `RateLimitMetersModule`. May be used by Relay 1.""" + rateLimitMetersModuleEdge( + """The method to use when ordering `RateLimitMetersModule`.""" + orderBy: [RateLimitMetersModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): RateLimitMetersModuleEdge +} +"""All input for the create `RateLimitMetersModule` mutation.""" +input CreateRateLimitMetersModuleInput { """ - Timestamp when construction successfully completed. NULL until constructed. + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. """ - constructedAt: Datetime + clientMutationId: String - """Timestamp when this construction attempt was created.""" - createdAt: Datetime + """The `RateLimitMetersModule` to be created by this mutation.""" + rateLimitMetersModule: RateLimitMetersModuleInput! +} - """Timestamp when this construction attempt was last modified.""" - updatedAt: Datetime +"""An input for mutations affecting `RateLimitMetersModule`""" +input RateLimitMetersModuleInput { + id: UUID + databaseId: UUID! + schemaId: UUID + privateSchemaId: UUID + publicSchemaName: String + privateSchemaName: String + rateLimitStateTableId: UUID + rateLimitStateTableName: String + rateLimitOverridesTableId: UUID + rateLimitOverridesTableName: String + rateWindowLimitsTableId: UUID + rateWindowLimitsTableName: String + checkRateLimitFunction: String + prefix: String + defaultPermissions: [String] + apiName: String + privateApiName: String } -"""The output of our create `SessionsModule` mutation.""" -type CreateSessionsModulePayload { +"""The output of our create `InfraConfigModule` mutation.""" +type CreateInfraConfigModulePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `SessionsModule` that was created by this mutation.""" - sessionsModule: SessionsModule + """The `InfraConfigModule` that was created by this mutation.""" + infraConfigModule: InfraConfigModule """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `SessionsModule`. May be used by Relay 1.""" - sessionsModuleEdge( - """The method to use when ordering `SessionsModule`.""" - orderBy: [SessionsModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): SessionsModuleEdge + """An edge for our `InfraConfigModule`. May be used by Relay 1.""" + infraConfigModuleEdge( + """The method to use when ordering `InfraConfigModule`.""" + orderBy: [InfraConfigModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): InfraConfigModuleEdge } -"""All input for the create `SessionsModule` mutation.""" -input CreateSessionsModuleInput { +"""All input for the create `InfraConfigModule` mutation.""" +input CreateInfraConfigModuleInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - """The `SessionsModule` to be created by this mutation.""" - sessionsModule: SessionsModuleInput! + """The `InfraConfigModule` to be created by this mutation.""" + infraConfigModule: InfraConfigModuleInput! } -"""An input for mutations affecting `SessionsModule`""" -input SessionsModuleInput { +"""An input for mutations affecting `InfraConfigModule`""" +input InfraConfigModuleInput { id: UUID databaseId: UUID! + entityField: String schemaId: UUID - sessionsTableId: UUID - sessionCredentialsTableId: UUID - authSettingsTableId: UUID - usersTableId: UUID - sessionsDefaultExpiration: IntervalInput - sessionsTable: String - sessionCredentialsTable: String - authSettingsTable: String + privateSchemaId: UUID + publicSchemaName: String + privateSchemaName: String + configTableId: UUID + configTableName: String + apiName: String + privateApiName: String + scope: String + prefix: String + entityTableId: UUID + policies: JSON + provisions: JSON } -"""The output of our create `SecureTableProvision` mutation.""" -type CreateSecureTableProvisionPayload { +"""The output of our create `WebauthnAuthModule` mutation.""" +type CreateWebauthnAuthModulePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `SecureTableProvision` that was created by this mutation.""" - secureTableProvision: SecureTableProvision + """The `WebauthnAuthModule` that was created by this mutation.""" + webauthnAuthModule: WebauthnAuthModule """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `SecureTableProvision`. May be used by Relay 1.""" - secureTableProvisionEdge( - """The method to use when ordering `SecureTableProvision`.""" - orderBy: [SecureTableProvisionOrderBy!]! = [PRIMARY_KEY_ASC] - ): SecureTableProvisionEdge + """An edge for our `WebauthnAuthModule`. May be used by Relay 1.""" + webauthnAuthModuleEdge( + """The method to use when ordering `WebauthnAuthModule`.""" + orderBy: [WebauthnAuthModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): WebauthnAuthModuleEdge } -"""All input for the create `SecureTableProvision` mutation.""" -input CreateSecureTableProvisionInput { +"""All input for the create `WebauthnAuthModule` mutation.""" +input CreateWebauthnAuthModuleInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - """The `SecureTableProvision` to be created by this mutation.""" - secureTableProvision: SecureTableProvisionInput! + """The `WebauthnAuthModule` to be created by this mutation.""" + webauthnAuthModule: WebauthnAuthModuleInput! } -"""An input for mutations affecting `SecureTableProvision`""" -input SecureTableProvisionInput { - """Unique identifier for this provision row.""" +"""An input for mutations affecting `WebauthnAuthModule`""" +input WebauthnAuthModuleInput { id: UUID - - """The database this provision belongs to. Required.""" databaseId: UUID! - - """ - Target schema for the table. Defaults to uuid_nil(); the trigger resolves this to the app_public schema if not explicitly provided. - """ schemaId: UUID + usersTableId: UUID + credentialsTableId: UUID + sessionsTableId: UUID + sessionCredentialsTableId: UUID + sessionSecretsTableId: UUID + authSettingsTableId: UUID + rpId: String + rpName: String + originAllowlist: [String] + attestationType: String + requireUserVerification: Boolean + residentKey: String + challengeExpiry: IntervalInput +} +"""The output of our create `PrincipalAuthModule` mutation.""" +type CreatePrincipalAuthModulePayload { """ - Target table to provision. Defaults to uuid_nil(); the trigger creates or resolves the table via table_name if not explicitly provided. - """ - tableId: UUID - - """ - Name of the target table. Used to create or look up the table when table_id is not provided. If omitted, it is backfilled from the resolved table. + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. """ - tableName: String + clientMutationId: String - """ - Array of node objects to apply to the table. Each element is a jsonb object with a required "$type" key (one of: DataId, DataDirectOwner, DataEntityMembership, DataOwnershipInEntity, DataTimestamps, DataPeoplestamps, DataPublishable, DataSoftDelete, DataEmbedding, DataFullTextSearch, DataSlug, etc.) and an optional "data" key containing generator-specific configuration. Supports multiple nodes per row, matching the blueprint definition format. Example: [{"$type": "DataId"}, {"$type": "DataTimestamps"}, {"$type": "DataDirectOwner", "data": {"owner_field_name": "author_id"}}]. Defaults to '[]' (no node processing). - """ - nodes: JSON + """The `PrincipalAuthModule` that was created by this mutation.""" + principalAuthModule: PrincipalAuthModule """ - If true and Row Level Security is not yet enabled on the target table, enable it. Automatically set to true by the trigger when policies[] is non-empty. Defaults to true. + Our root query field type. Allows us to run any query from our mutation payload. """ - useRls: Boolean + query: Query - """ - PostgreSQL array of jsonb field definition objects to create on the target table. Each object has keys: "name" (text, required), "type" (text, required), "default" (text, optional), "is_required" (boolean, optional, defaults to false), "min" (float, optional), "max" (float, optional), "regexp" (text, optional), "index" (boolean, optional, defaults to false — creates a btree index on the field). min/max generate CHECK constraints: for text/citext they constrain character_length, for integer/float types they constrain the value. regexp generates a CHECK (col ~ pattern) constraint for text/citext. Fields are created via metaschema.create_field() after any node_type generator runs, and their IDs are appended to out_fields. Example: ARRAY['{"name":"username","type":"citext","max":256,"regexp":"^[a-z0-9_]+$"}'::jsonb, '{"name":"score","type":"integer","min":0,"max":100}'::jsonb]. Defaults to '{}' (no additional fields). - """ - fields: [JSON] + """An edge for our `PrincipalAuthModule`. May be used by Relay 1.""" + principalAuthModuleEdge( + """The method to use when ordering `PrincipalAuthModule`.""" + orderBy: [PrincipalAuthModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): PrincipalAuthModuleEdge +} +"""All input for the create `PrincipalAuthModule` mutation.""" +input CreatePrincipalAuthModuleInput { """ - Array of grant objects defining table privileges. Each element is a jsonb object with keys: "roles" (text[], required — database roles to grant to, e.g. ["authenticated","admin"]), "privileges" (jsonb[], required — array of [privilege, columns] tuples, e.g. [["select","*"],["insert","*"]]). "*" means all columns; an array means column-level grant. Supports per-role privilege targeting: different grant entries can target different roles with different privileges. Example: [{"roles":["authenticated"],"privileges":[["select","*"]]},{"roles":["admin"],"privileges":[["insert","*"],["update","*"],["delete","*"]]}]. Defaults to '[]' (no grants). When policies[] omit explicit privileges/policy_role, they fall back to the verbs and first role from grants[]. + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. """ - grants: JSON + clientMutationId: String - """ - Array of policy objects to create on the target table. Each element is a jsonb object with keys: "$type" (text, required — the Authz* policy generator type, e.g. AuthzEntityMembership, AuthzMembership, AuthzDirectOwner, AuthzPublishable, AuthzAllowAll), "data" (jsonb, optional — opaque configuration passed to metaschema.create_policy(), structure varies by type), "privileges" (text[], optional — privileges the policy applies to, e.g. ["select","insert"]; if omitted, derived from grants[] privilege verbs), "policy_role" (text, optional — role the policy targets; if omitted, falls back to first role in first grants[] entry, or 'authenticated' if no grants), "permissive" (boolean, optional — PERMISSIVE or RESTRICTIVE; defaults to true), "policy_name" (text, optional — custom suffix for the generated policy name; if omitted, auto-derived from $type by stripping Authz prefix). Supports multiple policies per row. Example: [{"$type": "AuthzEntityMembership", "data": {"entity_field": "owner_id", "membership_type": 3}, "privileges": ["select", "insert"]}, {"$type": "AuthzDirectOwner", "data": {"entity_field": "actor_id"}, "privileges": ["update", "delete"]}]. Defaults to '[]' (no policies created). When non-empty, the trigger automatically enables RLS. - """ - policies: JSON + """The `PrincipalAuthModule` to be created by this mutation.""" + principalAuthModule: PrincipalAuthModuleInput! +} - """ - 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: [UUID] +"""An input for mutations affecting `PrincipalAuthModule`""" +input PrincipalAuthModuleInput { + id: UUID + databaseId: UUID! + schemaId: UUID + principalsTableId: UUID + principalEntitiesTableId: UUID + principalScopeOverridesTableId: UUID + usersTableId: UUID + sessionsTableId: UUID + sessionCredentialsTableId: UUID + auditsTableId: UUID + principalsTableName: String + createPrincipalFunction: String + deletePrincipalFunction: String + createOrgPrincipalFunction: String + deleteOrgPrincipalFunction: String + createOrgApiKeyFunction: String + revokeOrgApiKeyFunction: String + apiName: String } -"""The output of our create `DatabaseProvisionModule` mutation.""" -type CreateDatabaseProvisionModulePayload { +"""The output of our create `DbPool` mutation.""" +type CreateDbPoolPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `DatabaseProvisionModule` that was created by this mutation.""" - databaseProvisionModule: DatabaseProvisionModule + """The `DbPool` that was created by this mutation.""" + dbPool: DbPool """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `DatabaseProvisionModule`. May be used by Relay 1.""" - databaseProvisionModuleEdge( - """The method to use when ordering `DatabaseProvisionModule`.""" - orderBy: [DatabaseProvisionModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): DatabaseProvisionModuleEdge + """An edge for our `DbPool`. May be used by Relay 1.""" + dbPoolEdge( + """The method to use when ordering `DbPool`.""" + orderBy: [DbPoolOrderBy!]! = [PRIMARY_KEY_ASC] + ): DbPoolEdge } -"""All input for the create `DatabaseProvisionModule` mutation.""" -input CreateDatabaseProvisionModuleInput { +"""All input for the create `DbPool` mutation.""" +input CreateDbPoolInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - """The `DatabaseProvisionModule` to be created by this mutation.""" - databaseProvisionModule: DatabaseProvisionModuleInput! + """The `DbPool` to be created by this mutation.""" + dbPool: DbPoolInput! } -"""An input for mutations affecting `DatabaseProvisionModule`""" -input DatabaseProvisionModuleInput { +"""An input for mutations affecting `DbPool`""" +input DbPoolInput { id: UUID - """The name for the new database""" - databaseName: String! - - """UUID of the user who owns this database""" - ownerId: UUID! + """Slug of the db_presets catalog row this entry was baked from""" + presetSlug: String! """ - Subdomain prefix for the database. If null, auto-generated using unique_names + random chars + The db_presets merkle commit_id the warm database was baked from; a mismatch with the current head marks the entry stale """ - subdomain: String + presetCommitId: UUID + databaseId: UUID - """Base domain for the database (e.g., example.com)""" - domain: String! + """Lifecycle: warming, ready, claimed, stale, expired, or failed""" + status: String + errorMessage: String """ - JSONB array of modules to install. Each element is either a string ("users_module") or a [name, options] tuple (["permissions_module", {"scope": "app"}]) + When a ready entry expires (set from db_pool_config.warm_ttl at warm time) """ - modules: JSON + expiresAt: Datetime - """Additional configuration options for provisioning""" - options: JSON + """User the database was transferred to at claim time""" + claimedBy: UUID + claimedAt: Datetime """ - When true, copies the owner user and password hash from source database to the newly provisioned database + Status of the deferred owner bootstrap job after claim: not_requested, pending, completed, or failed """ - bootstrapUser: Boolean - - """Current status: pending, in_progress, completed, or failed""" - status: String - errorMessage: String - - """The ID of the provisioned database (set by trigger before RLS check)""" - databaseId: UUID + bootstrapStatus: String + bootstrapError: String createdAt: Datetime updatedAt: Datetime - completedAt: Datetime } -"""The output of our create `ConfigSecretsModule` mutation.""" -type CreateConfigSecretsModulePayload { +"""The output of our create `FunctionModule` mutation.""" +type CreateFunctionModulePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `ConfigSecretsModule` that was created by this mutation.""" - configSecretsModule: ConfigSecretsModule + """The `FunctionModule` that was created by this mutation.""" + functionModule: FunctionModule """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `ConfigSecretsModule`. May be used by Relay 1.""" - configSecretsModuleEdge( - """The method to use when ordering `ConfigSecretsModule`.""" - orderBy: [ConfigSecretsModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): ConfigSecretsModuleEdge + """An edge for our `FunctionModule`. May be used by Relay 1.""" + functionModuleEdge( + """The method to use when ordering `FunctionModule`.""" + orderBy: [FunctionModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): FunctionModuleEdge } -"""All input for the create `ConfigSecretsModule` mutation.""" -input CreateConfigSecretsModuleInput { +"""All input for the create `FunctionModule` mutation.""" +input CreateFunctionModuleInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - """The `ConfigSecretsModule` to be created by this mutation.""" - configSecretsModule: ConfigSecretsModuleInput! + """The `FunctionModule` to be created by this mutation.""" + functionModule: FunctionModuleInput! } -"""An input for mutations affecting `ConfigSecretsModule`""" -input ConfigSecretsModuleInput { +"""An input for mutations affecting `FunctionModule`""" +input FunctionModuleInput { id: UUID databaseId: UUID! + entityField: String schemaId: UUID privateSchemaId: UUID publicSchemaName: String privateSchemaName: String - tableId: UUID - configDefinitionsTableId: UUID - tableName: String + definitionsTableId: UUID + definitionsTableName: String apiName: String privateApiName: String scope: String @@ -16479,7 +18315,7 @@ input ConfigSecretsModuleInput { entityTableId: UUID policies: JSON provisions: JSON - hasConfig: Boolean + defaultPermissions: [String] } """The output of our create `GraphModule` mutation.""" @@ -16521,6 +18357,7 @@ input CreateGraphModuleInput { input GraphModuleInput { id: UUID databaseId: UUID! + entityField: String publicSchemaId: UUID privateSchemaId: UUID publicSchemaName: String @@ -16577,6 +18414,7 @@ input CreateMerkleStoreModuleInput { input MerkleStoreModuleInput { id: UUID databaseId: UUID! + entityField: String schemaId: UUID privateSchemaId: UUID publicSchemaName: String @@ -16594,168 +18432,99 @@ input MerkleStoreModuleInput { createdAt: Datetime } -"""The output of our create `RateLimitMetersModule` mutation.""" -type CreateRateLimitMetersModulePayload { +"""The output of our create `DatabaseProvisionModule` mutation.""" +type CreateDatabaseProvisionModulePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `RateLimitMetersModule` that was created by this mutation.""" - rateLimitMetersModule: RateLimitMetersModule + """The `DatabaseProvisionModule` that was created by this mutation.""" + databaseProvisionModule: DatabaseProvisionModule """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `RateLimitMetersModule`. May be used by Relay 1.""" - rateLimitMetersModuleEdge( - """The method to use when ordering `RateLimitMetersModule`.""" - orderBy: [RateLimitMetersModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): RateLimitMetersModuleEdge + """An edge for our `DatabaseProvisionModule`. May be used by Relay 1.""" + databaseProvisionModuleEdge( + """The method to use when ordering `DatabaseProvisionModule`.""" + orderBy: [DatabaseProvisionModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): DatabaseProvisionModuleEdge } -"""All input for the create `RateLimitMetersModule` mutation.""" -input CreateRateLimitMetersModuleInput { +"""All input for the create `DatabaseProvisionModule` mutation.""" +input CreateDatabaseProvisionModuleInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - """The `RateLimitMetersModule` to be created by this mutation.""" - rateLimitMetersModule: RateLimitMetersModuleInput! + """The `DatabaseProvisionModule` to be created by this mutation.""" + databaseProvisionModule: DatabaseProvisionModuleInput! } -"""An input for mutations affecting `RateLimitMetersModule`""" -input RateLimitMetersModuleInput { +"""An input for mutations affecting `DatabaseProvisionModule`""" +input DatabaseProvisionModuleInput { id: UUID - databaseId: UUID! - schemaId: UUID - privateSchemaId: UUID - publicSchemaName: String - privateSchemaName: String - rateLimitStateTableId: UUID - rateLimitStateTableName: String - rateLimitOverridesTableId: UUID - rateLimitOverridesTableName: String - rateWindowLimitsTableId: UUID - rateWindowLimitsTableName: String - checkRateLimitFunction: String - prefix: String - defaultPermissions: [String] - apiName: String - privateApiName: String -} -"""The output of our create `RealtimeModule` mutation.""" -type CreateRealtimeModulePayload { + """The name for the new database""" + databaseName: String! + + """UUID of the user who owns this database""" + ownerId: UUID! + """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. + Subdomain prefix for the database. If null, auto-generated using unique_names + random chars """ - clientMutationId: String + subdomain: String - """The `RealtimeModule` that was created by this mutation.""" - realtimeModule: RealtimeModule + """Base domain for the database (e.g., example.com)""" + domain: String! """ - Our root query field type. Allows us to run any query from our mutation payload. + JSONB array of modules to install. Each element is either a string ("users_module") or a [name, options] tuple (["permissions_module", {"scope": "app"}]) """ - query: Query + modules: JSON - """An edge for our `RealtimeModule`. May be used by Relay 1.""" - realtimeModuleEdge( - """The method to use when ordering `RealtimeModule`.""" - orderBy: [RealtimeModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): RealtimeModuleEdge -} + """Additional configuration options for provisioning""" + options: JSON -"""All input for the create `RealtimeModule` mutation.""" -input CreateRealtimeModuleInput { """ - 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, copies the owner user and password hash from source database to the newly provisioned database """ - clientMutationId: String - - """The `RealtimeModule` to be created by this mutation.""" - realtimeModule: RealtimeModuleInput! -} + bootstrapUser: Boolean -"""An input for mutations affecting `RealtimeModule`""" -input RealtimeModuleInput { - id: UUID - databaseId: UUID! - schemaId: UUID - privateSchemaId: UUID - subscriptionsSchemaId: UUID - changeLogTableId: UUID - listenerNodeTableId: UUID - sourceRegistryTableId: UUID - retentionHours: Int - premake: Int - interval: String - notifyChannel: String - apiName: String - privateApiName: String -} + """Current status: pending, in_progress, completed, or failed""" + status: String + errorMessage: String -"""The output of our create `WebauthnAuthModule` mutation.""" -type CreateWebauthnAuthModulePayload { """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. + The database the owner user is copied from during bootstrap (captured from JWT context at provision time) """ - clientMutationId: String - - """The `WebauthnAuthModule` that was created by this mutation.""" - webauthnAuthModule: WebauthnAuthModule + sourceDatabaseId: UUID """ - Our root query field type. Allows us to run any query from our mutation payload. + Status of the deferred owner bootstrap job: not_requested, pending, completed, or failed """ - query: Query + bootstrapStatus: String - """An edge for our `WebauthnAuthModule`. May be used by Relay 1.""" - webauthnAuthModuleEdge( - """The method to use when ordering `WebauthnAuthModule`.""" - orderBy: [WebauthnAuthModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): WebauthnAuthModuleEdge -} + """Error message from the most recent failed bootstrap attempt""" + bootstrapError: String + + """The ID of the provisioned database (set by trigger before RLS check)""" + databaseId: UUID + createdAt: Datetime + updatedAt: Datetime + completedAt: Datetime -"""All input for the create `WebauthnAuthModule` mutation.""" -input CreateWebauthnAuthModuleInput { """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. + 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 """ - clientMutationId: String - - """The `WebauthnAuthModule` to be created by this mutation.""" - webauthnAuthModule: WebauthnAuthModuleInput! -} - -"""An input for mutations affecting `WebauthnAuthModule`""" -input WebauthnAuthModuleInput { - id: UUID - databaseId: UUID! - schemaId: UUID - usersTableId: UUID - credentialsTableId: UUID - sessionsTableId: UUID - sessionCredentialsTableId: UUID - sessionSecretsTableId: UUID - authSettingsTableId: UUID - rpId: String - rpName: String - originAllowlist: [String] - attestationType: String - requireUserVerification: Boolean - residentKey: String - challengeExpiry: IntervalInput + fulfilledAt: Datetime } """The output of our create `FunctionInvocationModule` mutation.""" @@ -16797,6 +18566,7 @@ input CreateFunctionInvocationModuleInput { input FunctionInvocationModuleInput { id: UUID databaseId: UUID! + entityField: String schemaId: UUID privateSchemaId: UUID publicSchemaName: String @@ -16815,63 +18585,6 @@ input FunctionInvocationModuleInput { defaultPermissions: [String] } -"""The output of our create `FunctionModule` mutation.""" -type CreateFunctionModulePayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `FunctionModule` that was created by this mutation.""" - functionModule: FunctionModule - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `FunctionModule`. May be used by Relay 1.""" - functionModuleEdge( - """The method to use when ordering `FunctionModule`.""" - orderBy: [FunctionModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): FunctionModuleEdge -} - -"""All input for the create `FunctionModule` mutation.""" -input CreateFunctionModuleInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `FunctionModule` to be created by this mutation.""" - functionModule: FunctionModuleInput! -} - -"""An input for mutations affecting `FunctionModule`""" -input FunctionModuleInput { - id: UUID - databaseId: UUID! - schemaId: UUID - privateSchemaId: UUID - publicSchemaName: String - privateSchemaName: String - definitionsTableId: UUID - secretDefinitionsTableId: UUID - definitionsTableName: String - secretDefinitionsTableName: String - apiName: String - privateApiName: String - scope: String - prefix: String - entityTableId: UUID - policies: JSON - provisions: JSON - defaultPermissions: [String] -} - """The output of our create `InvitesModule` mutation.""" type CreateInvitesModulePayload { """ @@ -16911,6 +18624,7 @@ input CreateInvitesModuleInput { input InvitesModuleInput { id: UUID databaseId: UUID! + entityField: String schemaId: UUID privateSchemaId: UUID publicSchemaName: String @@ -16929,293 +18643,240 @@ input InvitesModuleInput { privateApiName: String } -"""The output of our create `PrincipalAuthModule` mutation.""" -type CreatePrincipalAuthModulePayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `PrincipalAuthModule` that was created by this mutation.""" - principalAuthModule: PrincipalAuthModule - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `PrincipalAuthModule`. May be used by Relay 1.""" - principalAuthModuleEdge( - """The method to use when ordering `PrincipalAuthModule`.""" - orderBy: [PrincipalAuthModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): PrincipalAuthModuleEdge -} - -"""All input for the create `PrincipalAuthModule` mutation.""" -input CreatePrincipalAuthModuleInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `PrincipalAuthModule` to be created by this mutation.""" - principalAuthModule: PrincipalAuthModuleInput! -} - -"""An input for mutations affecting `PrincipalAuthModule`""" -input PrincipalAuthModuleInput { - id: UUID - databaseId: UUID! - schemaId: UUID - principalsTableId: UUID - principalEntitiesTableId: UUID - principalScopeOverridesTableId: UUID - usersTableId: UUID - sessionsTableId: UUID - sessionCredentialsTableId: UUID - auditsTableId: UUID - principalsTableName: String - createPrincipalFunction: String - deletePrincipalFunction: String - createOrgPrincipalFunction: String - deleteOrgPrincipalFunction: String - createOrgApiKeyFunction: String - revokeOrgApiKeyFunction: String - apiName: String -} - -"""The output of our create `ComputeLogModule` mutation.""" -type CreateComputeLogModulePayload { +"""The output of our create `NamespaceModule` mutation.""" +type CreateNamespaceModulePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `ComputeLogModule` that was created by this mutation.""" - computeLogModule: ComputeLogModule + """The `NamespaceModule` that was created by this mutation.""" + namespaceModule: NamespaceModule """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `ComputeLogModule`. May be used by Relay 1.""" - computeLogModuleEdge( - """The method to use when ordering `ComputeLogModule`.""" - orderBy: [ComputeLogModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): ComputeLogModuleEdge + """An edge for our `NamespaceModule`. May be used by Relay 1.""" + namespaceModuleEdge( + """The method to use when ordering `NamespaceModule`.""" + orderBy: [NamespaceModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): NamespaceModuleEdge } -"""All input for the create `ComputeLogModule` mutation.""" -input CreateComputeLogModuleInput { +"""All input for the create `NamespaceModule` mutation.""" +input CreateNamespaceModuleInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - """The `ComputeLogModule` to be created by this mutation.""" - computeLogModule: ComputeLogModuleInput! + """The `NamespaceModule` to be created by this mutation.""" + namespaceModule: NamespaceModuleInput! } -"""An input for mutations affecting `ComputeLogModule`""" -input ComputeLogModuleInput { +"""An input for mutations affecting `NamespaceModule`""" +input NamespaceModuleInput { id: UUID databaseId: UUID! + entityField: String schemaId: UUID privateSchemaId: UUID publicSchemaName: String privateSchemaName: String - computeLogTableId: UUID - computeLogTableName: String - usageDailyTableId: UUID - usageDailyTableName: String - interval: String - retention: String - premake: Int - scope: String - actorFkTableId: UUID - entityFkTableId: UUID - prefix: String + namespacesTableId: UUID + namespaceEventsTableId: UUID + namespacesTableName: String + namespaceEventsTableName: String apiName: String privateApiName: String + scope: String + prefix: String + entityTableId: UUID + policies: JSON + provisions: JSON + defaultPermissions: [String] } -"""The output of our create `InferenceLogModule` mutation.""" -type CreateInferenceLogModulePayload { +"""The output of our create `PlansModule` mutation.""" +type CreatePlansModulePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `InferenceLogModule` that was created by this mutation.""" - inferenceLogModule: InferenceLogModule + """The `PlansModule` that was created by this mutation.""" + plansModule: PlansModule """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `InferenceLogModule`. May be used by Relay 1.""" - inferenceLogModuleEdge( - """The method to use when ordering `InferenceLogModule`.""" - orderBy: [InferenceLogModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): InferenceLogModuleEdge + """An edge for our `PlansModule`. May be used by Relay 1.""" + plansModuleEdge( + """The method to use when ordering `PlansModule`.""" + orderBy: [PlansModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): PlansModuleEdge } -"""All input for the create `InferenceLogModule` mutation.""" -input CreateInferenceLogModuleInput { +"""All input for the create `PlansModule` mutation.""" +input CreatePlansModuleInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - """The `InferenceLogModule` to be created by this mutation.""" - inferenceLogModule: InferenceLogModuleInput! + """The `PlansModule` to be created by this mutation.""" + plansModule: PlansModuleInput! } -"""An input for mutations affecting `InferenceLogModule`""" -input InferenceLogModuleInput { +"""An input for mutations affecting `PlansModule`""" +input PlansModuleInput { id: UUID databaseId: UUID! schemaId: UUID privateSchemaId: UUID publicSchemaName: String privateSchemaName: String - inferenceLogTableId: UUID - inferenceLogTableName: String - usageDailyTableId: UUID - usageDailyTableName: String - interval: String - retention: String - premake: Int - scope: String - actorFkTableId: UUID - entityFkTableId: UUID + plansTableId: UUID + plansTableName: String + planLimitsTableId: UUID + planLimitsTableName: String + planPricingTableId: UUID + planOverridesTableId: UUID + planMeterLimitsTableId: UUID + planCapsTableId: UUID + applyPlanFunction: String + applyPlanAggregateFunction: String + applyBillingPlanFunction: String + applyPlanCapsFunction: String prefix: String apiName: String privateApiName: String } -"""The output of our create `NamespaceModule` mutation.""" -type CreateNamespaceModulePayload { +"""The output of our create `ComputeLogModule` mutation.""" +type CreateComputeLogModulePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `NamespaceModule` that was created by this mutation.""" - namespaceModule: NamespaceModule + """The `ComputeLogModule` that was created by this mutation.""" + computeLogModule: ComputeLogModule """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `NamespaceModule`. May be used by Relay 1.""" - namespaceModuleEdge( - """The method to use when ordering `NamespaceModule`.""" - orderBy: [NamespaceModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): NamespaceModuleEdge + """An edge for our `ComputeLogModule`. May be used by Relay 1.""" + computeLogModuleEdge( + """The method to use when ordering `ComputeLogModule`.""" + orderBy: [ComputeLogModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): ComputeLogModuleEdge } -"""All input for the create `NamespaceModule` mutation.""" -input CreateNamespaceModuleInput { +"""All input for the create `ComputeLogModule` mutation.""" +input CreateComputeLogModuleInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - """The `NamespaceModule` to be created by this mutation.""" - namespaceModule: NamespaceModuleInput! + """The `ComputeLogModule` to be created by this mutation.""" + computeLogModule: ComputeLogModuleInput! } -"""An input for mutations affecting `NamespaceModule`""" -input NamespaceModuleInput { +"""An input for mutations affecting `ComputeLogModule`""" +input ComputeLogModuleInput { id: UUID databaseId: UUID! + entityField: String schemaId: UUID privateSchemaId: UUID publicSchemaName: String privateSchemaName: String - namespacesTableId: UUID - namespaceEventsTableId: UUID - namespacesTableName: String - namespaceEventsTableName: String - apiName: String - privateApiName: String + computeLogTableId: UUID + computeLogTableName: String + usageDailyTableId: UUID + usageDailyTableName: String + interval: String + retention: String + premake: Int scope: String + actorFkTableId: UUID + entityFkTableId: UUID prefix: String - entityTableId: UUID - platformNamespacesTableId: UUID - policies: JSON - provisions: JSON - defaultPermissions: [String] + apiName: String + privateApiName: String } -"""The output of our create `ResourceModule` mutation.""" -type CreateResourceModulePayload { +"""The output of our create `InferenceLogModule` mutation.""" +type CreateInferenceLogModulePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `ResourceModule` that was created by this mutation.""" - resourceModule: ResourceModule + """The `InferenceLogModule` that was created by this mutation.""" + inferenceLogModule: InferenceLogModule """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `ResourceModule`. May be used by Relay 1.""" - resourceModuleEdge( - """The method to use when ordering `ResourceModule`.""" - orderBy: [ResourceModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): ResourceModuleEdge + """An edge for our `InferenceLogModule`. May be used by Relay 1.""" + inferenceLogModuleEdge( + """The method to use when ordering `InferenceLogModule`.""" + orderBy: [InferenceLogModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): InferenceLogModuleEdge } -"""All input for the create `ResourceModule` mutation.""" -input CreateResourceModuleInput { +"""All input for the create `InferenceLogModule` mutation.""" +input CreateInferenceLogModuleInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - """The `ResourceModule` to be created by this mutation.""" - resourceModule: ResourceModuleInput! + """The `InferenceLogModule` to be created by this mutation.""" + inferenceLogModule: InferenceLogModuleInput! } -"""An input for mutations affecting `ResourceModule`""" -input ResourceModuleInput { +"""An input for mutations affecting `InferenceLogModule`""" +input InferenceLogModuleInput { id: UUID databaseId: UUID! + entityField: String schemaId: UUID privateSchemaId: UUID publicSchemaName: String privateSchemaName: String - resourcesTableId: UUID - resourceEventsTableId: UUID - resourcesTableName: String - resourceEventsTableName: String - apiName: String - privateApiName: String + inferenceLogTableId: UUID + inferenceLogTableName: String + usageDailyTableId: UUID + usageDailyTableName: String + interval: String + retention: String + premake: Int scope: String + actorFkTableId: UUID + entityFkTableId: UUID prefix: String - entityTableId: UUID - namespaceModuleId: UUID - policies: JSON - provisions: JSON - defaultPermissions: [String] + apiName: String + privateApiName: String } """The output of our create `StorageLogModule` mutation.""" @@ -17257,6 +18918,7 @@ input CreateStorageLogModuleInput { input StorageLogModuleInput { id: UUID databaseId: UUID! + entityField: String schemaId: UUID privateSchemaId: UUID publicSchemaName: String @@ -17315,6 +18977,7 @@ input CreateTransferLogModuleInput { input TransferLogModuleInput { id: UUID databaseId: UUID! + entityField: String schemaId: UUID privateSchemaId: UUID publicSchemaName: String @@ -17334,243 +18997,184 @@ input TransferLogModuleInput { privateApiName: String } -"""The output of our create `FunctionDeploymentModule` mutation.""" -type CreateFunctionDeploymentModulePayload { +"""The output of our create `BillingProviderModule` mutation.""" +type CreateBillingProviderModulePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `FunctionDeploymentModule` that was created by this mutation.""" - functionDeploymentModule: FunctionDeploymentModule + """The `BillingProviderModule` that was created by this mutation.""" + billingProviderModule: BillingProviderModule """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `FunctionDeploymentModule`. May be used by Relay 1.""" - functionDeploymentModuleEdge( - """The method to use when ordering `FunctionDeploymentModule`.""" - orderBy: [FunctionDeploymentModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): FunctionDeploymentModuleEdge + """An edge for our `BillingProviderModule`. May be used by Relay 1.""" + billingProviderModuleEdge( + """The method to use when ordering `BillingProviderModule`.""" + orderBy: [BillingProviderModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): BillingProviderModuleEdge } -"""All input for the create `FunctionDeploymentModule` mutation.""" -input CreateFunctionDeploymentModuleInput { +"""All input for the create `BillingProviderModule` mutation.""" +input CreateBillingProviderModuleInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - """The `FunctionDeploymentModule` to be created by this mutation.""" - functionDeploymentModule: FunctionDeploymentModuleInput! + """The `BillingProviderModule` to be created by this mutation.""" + billingProviderModule: BillingProviderModuleInput! } -"""An input for mutations affecting `FunctionDeploymentModule`""" -input FunctionDeploymentModuleInput { +"""An input for mutations affecting `BillingProviderModule`""" +input BillingProviderModuleInput { id: UUID databaseId: UUID! schemaId: UUID privateSchemaId: UUID - publicSchemaName: String - privateSchemaName: String - deploymentsTableId: UUID - deploymentEventsTableId: UUID - deploymentsTableName: String - deploymentEventsTableName: String + provider: String + productsTableId: UUID + pricesTableId: UUID + subscriptionsTableId: UUID + billingCustomersTableId: UUID + billingCustomersTableName: String + billingProductsTableId: UUID + billingProductsTableName: String + billingPricesTableId: UUID + billingPricesTableName: String + billingSubscriptionsTableId: UUID + billingSubscriptionsTableName: String + billingWebhookEventsTableId: UUID + billingWebhookEventsTableName: String + processBillingEventFunction: String + prefix: String apiName: String privateApiName: String - scope: String - prefix: String - entityTableId: UUID - functionModuleId: UUID - namespaceModuleId: UUID - policies: JSON - provisions: JSON - defaultPermissions: [String] } -"""The output of our create `PlansModule` mutation.""" -type CreatePlansModulePayload { +"""The output of our create `FunctionDeploymentModule` mutation.""" +type CreateFunctionDeploymentModulePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `PlansModule` that was created by this mutation.""" - plansModule: PlansModule + """The `FunctionDeploymentModule` that was created by this mutation.""" + functionDeploymentModule: FunctionDeploymentModule """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `PlansModule`. May be used by Relay 1.""" - plansModuleEdge( - """The method to use when ordering `PlansModule`.""" - orderBy: [PlansModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): PlansModuleEdge + """An edge for our `FunctionDeploymentModule`. May be used by Relay 1.""" + functionDeploymentModuleEdge( + """The method to use when ordering `FunctionDeploymentModule`.""" + orderBy: [FunctionDeploymentModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): FunctionDeploymentModuleEdge } -"""All input for the create `PlansModule` mutation.""" -input CreatePlansModuleInput { +"""All input for the create `FunctionDeploymentModule` mutation.""" +input CreateFunctionDeploymentModuleInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - """The `PlansModule` to be created by this mutation.""" - plansModule: PlansModuleInput! + """The `FunctionDeploymentModule` to be created by this mutation.""" + functionDeploymentModule: FunctionDeploymentModuleInput! } -"""An input for mutations affecting `PlansModule`""" -input PlansModuleInput { +"""An input for mutations affecting `FunctionDeploymentModule`""" +input FunctionDeploymentModuleInput { id: UUID databaseId: UUID! + entityField: String schemaId: UUID privateSchemaId: UUID publicSchemaName: String privateSchemaName: String - plansTableId: UUID - plansTableName: String - planLimitsTableId: UUID - planLimitsTableName: String - planPricingTableId: UUID - planOverridesTableId: UUID - planMeterLimitsTableId: UUID - planCapsTableId: UUID - applyPlanFunction: String - applyPlanAggregateFunction: String - applyBillingPlanFunction: String - applyPlanCapsFunction: String - prefix: String - apiName: String - privateApiName: String -} - -"""The output of our create `BillingProviderModule` mutation.""" -type CreateBillingProviderModulePayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `BillingProviderModule` that was created by this mutation.""" - billingProviderModule: BillingProviderModule - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `BillingProviderModule`. May be used by Relay 1.""" - billingProviderModuleEdge( - """The method to use when ordering `BillingProviderModule`.""" - orderBy: [BillingProviderModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): BillingProviderModuleEdge -} - -"""All input for the create `BillingProviderModule` mutation.""" -input CreateBillingProviderModuleInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `BillingProviderModule` to be created by this mutation.""" - billingProviderModule: BillingProviderModuleInput! -} - -"""An input for mutations affecting `BillingProviderModule`""" -input BillingProviderModuleInput { - id: UUID - databaseId: UUID! - schemaId: UUID - privateSchemaId: UUID - provider: String - productsTableId: UUID - pricesTableId: UUID - subscriptionsTableId: UUID - billingCustomersTableId: UUID - billingCustomersTableName: String - billingProductsTableId: UUID - billingProductsTableName: String - billingPricesTableId: UUID - billingPricesTableName: String - billingSubscriptionsTableId: UUID - billingSubscriptionsTableName: String - billingWebhookEventsTableId: UUID - billingWebhookEventsTableName: String - processBillingEventFunction: String - prefix: String + deploymentsTableId: UUID + deploymentEventsTableId: UUID + deploymentsTableName: String + deploymentEventsTableName: String apiName: String privateApiName: String + scope: String + prefix: String + entityTableId: UUID + functionModuleId: UUID + namespaceModuleId: UUID + policies: JSON + provisions: JSON + defaultPermissions: [String] } -"""The output of our create `DbUsageModule` mutation.""" -type CreateDbUsageModulePayload { +"""The output of our create `PermissionsModule` mutation.""" +type CreatePermissionsModulePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `DbUsageModule` that was created by this mutation.""" - dbUsageModule: DbUsageModule + """The `PermissionsModule` that was created by this mutation.""" + permissionsModule: PermissionsModule """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `DbUsageModule`. May be used by Relay 1.""" - dbUsageModuleEdge( - """The method to use when ordering `DbUsageModule`.""" - orderBy: [DbUsageModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): DbUsageModuleEdge + """An edge for our `PermissionsModule`. May be used by Relay 1.""" + permissionsModuleEdge( + """The method to use when ordering `PermissionsModule`.""" + orderBy: [PermissionsModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): PermissionsModuleEdge } -"""All input for the create `DbUsageModule` mutation.""" -input CreateDbUsageModuleInput { +"""All input for the create `PermissionsModule` mutation.""" +input CreatePermissionsModuleInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - """The `DbUsageModule` to be created by this mutation.""" - dbUsageModule: DbUsageModuleInput! + """The `PermissionsModule` to be created by this mutation.""" + permissionsModule: PermissionsModuleInput! } -"""An input for mutations affecting `DbUsageModule`""" -input DbUsageModuleInput { +"""An input for mutations affecting `PermissionsModule`""" +input PermissionsModuleInput { id: UUID databaseId: UUID! + entityField: String schemaId: UUID privateSchemaId: UUID publicSchemaName: String privateSchemaName: String - tableStatsLogTableId: UUID - tableStatsLogTableName: String - tableStatsDailyTableId: UUID - tableStatsDailyTableName: String - queryStatsLogTableId: UUID - queryStatsLogTableName: String - queryStatsDailyTableId: UUID - queryStatsDailyTableName: String - interval: String - retention: String - premake: Int + tableId: UUID + tableName: String + defaultTableId: UUID + defaultTableName: String + bitlen: Int scope: String prefix: String - defaultPermissions: [String] + entityTableId: UUID + actorTableId: UUID + getPaddedMask: String + getMask: String + getByMask: String + getMaskByName: String apiName: String privateApiName: String } @@ -17614,6 +19218,7 @@ input CreateGraphExecutionModuleInput { input GraphExecutionModuleInput { id: UUID databaseId: UUID! + entityField: String schemaId: UUID privateSchemaId: UUID publicSchemaName: String @@ -17675,6 +19280,7 @@ input CreateHierarchyModuleInput { input HierarchyModuleInput { id: UUID databaseId: UUID! + entityField: String schemaId: UUID privateSchemaId: UUID chartEdgesTableId: UUID @@ -17697,66 +19303,6 @@ input HierarchyModuleInput { createdAt: Datetime } -"""The output of our create `PermissionsModule` mutation.""" -type CreatePermissionsModulePayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `PermissionsModule` that was created by this mutation.""" - permissionsModule: PermissionsModule - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `PermissionsModule`. May be used by Relay 1.""" - permissionsModuleEdge( - """The method to use when ordering `PermissionsModule`.""" - orderBy: [PermissionsModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): PermissionsModuleEdge -} - -"""All input for the create `PermissionsModule` mutation.""" -input CreatePermissionsModuleInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `PermissionsModule` to be created by this mutation.""" - permissionsModule: PermissionsModuleInput! -} - -"""An input for mutations affecting `PermissionsModule`""" -input PermissionsModuleInput { - id: UUID - databaseId: UUID! - schemaId: UUID - privateSchemaId: UUID - publicSchemaName: String - privateSchemaName: String - tableId: UUID - tableName: String - defaultTableId: UUID - defaultTableName: String - bitlen: Int - scope: String - prefix: String - entityTableId: UUID - actorTableId: UUID - getPaddedMask: String - getMask: String - getByMask: String - getMaskByName: String - apiName: String - privateApiName: String -} - """The output of our create `NotificationsModule` mutation.""" type CreateNotificationsModulePayload { """ @@ -17796,6 +19342,7 @@ input CreateNotificationsModuleInput { input NotificationsModuleInput { id: UUID databaseId: UUID! + entityField: String schemaId: UUID privateSchemaId: UUID publicSchemaName: String @@ -17807,140 +19354,13 @@ input NotificationsModuleInput { deliveryLogTableId: UUID suppressionsTableId: UUID ownerTableId: UUID - userSettingsTableId: UUID - organizationSettingsTableId: UUID - hasChannels: Boolean - hasPreferences: Boolean - hasSettingsExtension: Boolean - hasDigestMetadata: Boolean - hasSubscriptions: Boolean - defaultPermissions: [String] - apiName: String - privateApiName: String -} - -"""The output of our create `ProfilesModule` mutation.""" -type CreateProfilesModulePayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `ProfilesModule` that was created by this mutation.""" - profilesModule: ProfilesModule - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `ProfilesModule`. May be used by Relay 1.""" - profilesModuleEdge( - """The method to use when ordering `ProfilesModule`.""" - orderBy: [ProfilesModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): ProfilesModuleEdge -} - -"""All input for the create `ProfilesModule` mutation.""" -input CreateProfilesModuleInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `ProfilesModule` to be created by this mutation.""" - profilesModule: ProfilesModuleInput! -} - -"""An input for mutations affecting `ProfilesModule`""" -input ProfilesModuleInput { - id: UUID - databaseId: UUID! - schemaId: UUID - privateSchemaId: UUID - publicSchemaName: String - privateSchemaName: String - tableId: UUID - tableName: String - profilePermissionsTableId: UUID - profilePermissionsTableName: String - profileGrantsTableId: UUID - profileGrantsTableName: String - profileDefinitionGrantsTableId: UUID - profileDefinitionGrantsTableName: String - profileTemplatesTableId: UUID - profileTemplatesTableName: String - scope: String - prefix: String - entityTableId: UUID - actorTableId: UUID - permissionsTableId: UUID - membershipsTableId: UUID - apiName: String - privateApiName: String -} - -"""The output of our create `BillingModule` mutation.""" -type CreateBillingModulePayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `BillingModule` that was created by this mutation.""" - billingModule: BillingModule - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `BillingModule`. May be used by Relay 1.""" - billingModuleEdge( - """The method to use when ordering `BillingModule`.""" - orderBy: [BillingModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): BillingModuleEdge -} - -"""All input for the create `BillingModule` mutation.""" -input CreateBillingModuleInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `BillingModule` to be created by this mutation.""" - billingModule: BillingModuleInput! -} - -"""An input for mutations affecting `BillingModule`""" -input BillingModuleInput { - id: UUID - databaseId: UUID! - schemaId: UUID - privateSchemaId: UUID - publicSchemaName: String - privateSchemaName: String - metersTableId: UUID - metersTableName: String - planSubscriptionsTableId: UUID - planSubscriptionsTableName: String - ledgerTableId: UUID - ledgerTableName: String - balancesTableId: UUID - balancesTableName: String - meterCreditsTableId: UUID - meterCreditsTableName: String - meterSourcesTableId: UUID - meterSourcesTableName: String - meterDefaultsTableId: UUID - meterDefaultsTableName: String - recordUsageFunction: String - prefix: String + userSettingsTableId: UUID + organizationSettingsTableId: UUID + hasChannels: Boolean + hasPreferences: Boolean + hasSettingsExtension: Boolean + hasDigestMetadata: Boolean + hasSubscriptions: Boolean defaultPermissions: [String] apiName: String privateApiName: String @@ -18275,6 +19695,201 @@ input BlueprintTemplateInput { updatedAt: Datetime } +"""The output of our create `ProfilesModule` mutation.""" +type CreateProfilesModulePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `ProfilesModule` that was created by this mutation.""" + profilesModule: ProfilesModule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `ProfilesModule`. May be used by Relay 1.""" + profilesModuleEdge( + """The method to use when ordering `ProfilesModule`.""" + orderBy: [ProfilesModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): ProfilesModuleEdge +} + +"""All input for the create `ProfilesModule` mutation.""" +input CreateProfilesModuleInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """The `ProfilesModule` to be created by this mutation.""" + profilesModule: ProfilesModuleInput! +} + +"""An input for mutations affecting `ProfilesModule`""" +input ProfilesModuleInput { + id: UUID + databaseId: UUID! + entityField: String + schemaId: UUID + privateSchemaId: UUID + publicSchemaName: String + privateSchemaName: String + tableId: UUID + tableName: String + profilePermissionsTableId: UUID + profilePermissionsTableName: String + profileGrantsTableId: UUID + profileGrantsTableName: String + profileDefinitionGrantsTableId: UUID + profileDefinitionGrantsTableName: String + profileTemplatesTableId: UUID + profileTemplatesTableName: String + scope: String + prefix: String + entityTableId: UUID + actorTableId: UUID + permissionsTableId: UUID + membershipsTableId: UUID + apiName: String + privateApiName: String +} + +"""The output of our create `BillingModule` mutation.""" +type CreateBillingModulePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `BillingModule` that was created by this mutation.""" + billingModule: BillingModule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `BillingModule`. May be used by Relay 1.""" + billingModuleEdge( + """The method to use when ordering `BillingModule`.""" + orderBy: [BillingModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): BillingModuleEdge +} + +"""All input for the create `BillingModule` mutation.""" +input CreateBillingModuleInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """The `BillingModule` to be created by this mutation.""" + billingModule: BillingModuleInput! +} + +"""An input for mutations affecting `BillingModule`""" +input BillingModuleInput { + id: UUID + databaseId: UUID! + schemaId: UUID + privateSchemaId: UUID + publicSchemaName: String + privateSchemaName: String + metersTableId: UUID + metersTableName: String + planSubscriptionsTableId: UUID + planSubscriptionsTableName: String + ledgerTableId: UUID + ledgerTableName: String + balancesTableId: UUID + balancesTableName: String + meterCreditsTableId: UUID + meterCreditsTableName: String + meterSourcesTableId: UUID + meterSourcesTableName: String + meterDefaultsTableId: UUID + meterDefaultsTableName: String + recordUsageFunction: String + sweepExpiredSubscriptionsFunction: String + rollupUsageSummaryFunction: String + prefix: String + defaultPermissions: [String] + apiName: String + privateApiName: String +} + +"""The output of our create `ResourceModule` mutation.""" +type CreateResourceModulePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `ResourceModule` that was created by this mutation.""" + resourceModule: ResourceModule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `ResourceModule`. May be used by Relay 1.""" + resourceModuleEdge( + """The method to use when ordering `ResourceModule`.""" + orderBy: [ResourceModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): ResourceModuleEdge +} + +"""All input for the create `ResourceModule` mutation.""" +input CreateResourceModuleInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """The `ResourceModule` to be created by this mutation.""" + resourceModule: ResourceModuleInput! +} + +"""An input for mutations affecting `ResourceModule`""" +input ResourceModuleInput { + id: UUID + databaseId: UUID! + entityField: String + schemaId: UUID + privateSchemaId: UUID + publicSchemaName: String + privateSchemaName: String + resourcesTableId: UUID + resourceEventsTableId: UUID + resourceStatusChecksTableId: UUID + resourceDefinitionsTableId: UUID + resourcesTableName: String + resourceEventsTableName: String + resourceStatusChecksTableName: String + resourceDefinitionsTableName: String + resolvedRequirementsViewName: String + requirementsStateViewName: String + apiName: String + privateApiName: String + scope: String + prefix: String + entityTableId: UUID + namespaceModuleId: UUID + policies: JSON + provisions: JSON + defaultPermissions: [String] +} + """The output of our create `UserAuthModule` mutation.""" type CreateUserAuthModulePayload { """ @@ -18310,34 +19925,100 @@ input CreateUserAuthModuleInput { userAuthModule: UserAuthModuleInput! } -"""An input for mutations affecting `UserAuthModule`""" -input UserAuthModuleInput { +"""An input for mutations affecting `UserAuthModule`""" +input UserAuthModuleInput { + id: UUID + databaseId: UUID! + schemaId: UUID + emailsTableId: UUID + usersTableId: UUID + secretsTableId: UUID + encryptedTableId: UUID + sessionsTableId: UUID + sessionCredentialsTableId: UUID + auditsTableId: UUID + auditsTableName: String + signInFunction: String + signUpFunction: String + signOutFunction: String + setPasswordFunction: String + resetPasswordFunction: String + forgotPasswordFunction: String + sendVerificationEmailFunction: String + verifyEmailFunction: String + verifyPasswordFunction: String + checkPasswordFunction: String + sendAccountDeletionEmailFunction: String + deleteAccountFunction: String + signInCrossOriginFunction: String + requestCrossOriginTokenFunction: String + extendTokenExpires: String + apiName: String + privateApiName: String +} + +"""The output of our create `DbUsageModule` mutation.""" +type CreateDbUsageModulePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `DbUsageModule` that was created by this mutation.""" + dbUsageModule: DbUsageModule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `DbUsageModule`. May be used by Relay 1.""" + dbUsageModuleEdge( + """The method to use when ordering `DbUsageModule`.""" + orderBy: [DbUsageModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): DbUsageModuleEdge +} + +"""All input for the create `DbUsageModule` mutation.""" +input CreateDbUsageModuleInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """The `DbUsageModule` to be created by this mutation.""" + dbUsageModule: DbUsageModuleInput! +} + +"""An input for mutations affecting `DbUsageModule`""" +input DbUsageModuleInput { id: UUID databaseId: UUID! + entityField: String schemaId: UUID - emailsTableId: UUID - usersTableId: UUID - secretsTableId: UUID - encryptedTableId: UUID - sessionsTableId: UUID - sessionCredentialsTableId: UUID - auditsTableId: UUID - auditsTableName: String - signInFunction: String - signUpFunction: String - signOutFunction: String - setPasswordFunction: String - resetPasswordFunction: String - forgotPasswordFunction: String - sendVerificationEmailFunction: String - verifyEmailFunction: String - verifyPasswordFunction: String - checkPasswordFunction: String - sendAccountDeletionEmailFunction: String - deleteAccountFunction: String - signInCrossOriginFunction: String - requestCrossOriginTokenFunction: String - extendTokenExpires: String + privateSchemaId: UUID + publicSchemaName: String + privateSchemaName: String + tableStatsLogTableId: UUID + tableStatsLogTableName: String + tableStatsDailyTableId: UUID + tableStatsDailyTableName: String + queryStatsLogTableId: UUID + queryStatsLogTableName: String + queryStatsDailyTableId: UUID + queryStatsDailyTableName: String + collectDbTableStatsFunction: String + collectDbQueryStatsFunction: String + rollupDbTableStatsDailyFunction: String + rollupDbQueryStatsDailyFunction: String + interval: String + retention: String + premake: Int + scope: String + prefix: String + defaultPermissions: [String] apiName: String privateApiName: String } @@ -18381,6 +20062,7 @@ input CreateAgentModuleInput { input AgentModuleInput { id: UUID databaseId: UUID! + entityField: String schemaId: UUID privateSchemaId: UUID publicSchemaName: String @@ -18455,6 +20137,7 @@ input CreateLimitsModuleInput { input LimitsModuleInput { id: UUID databaseId: UUID! + entityField: String schemaId: UUID privateSchemaId: UUID publicSchemaName: String @@ -18491,86 +20174,6 @@ input LimitsModuleInput { privateApiName: String } -"""The output of our create `MembershipsModule` mutation.""" -type CreateMembershipsModulePayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `MembershipsModule` that was created by this mutation.""" - membershipsModule: MembershipsModule - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `MembershipsModule`. May be used by Relay 1.""" - membershipsModuleEdge( - """The method to use when ordering `MembershipsModule`.""" - orderBy: [MembershipsModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): MembershipsModuleEdge -} - -"""All input for the create `MembershipsModule` mutation.""" -input CreateMembershipsModuleInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `MembershipsModule` to be created by this mutation.""" - membershipsModule: MembershipsModuleInput! -} - -"""An input for mutations affecting `MembershipsModule`""" -input MembershipsModuleInput { - id: UUID - databaseId: UUID! - schemaId: UUID - privateSchemaId: UUID - publicSchemaName: String - privateSchemaName: String - membershipsTableId: UUID - membershipsTableName: String - membersTableId: UUID - membersTableName: String - membershipDefaultsTableId: UUID - membershipDefaultsTableName: String - membershipSettingsTableId: UUID - membershipSettingsTableName: String - grantsTableId: UUID - grantsTableName: String - actorTableId: UUID - limitsTableId: UUID - defaultLimitsTableId: UUID - permissionsTableId: UUID - defaultPermissionsTableId: UUID - sprtTableId: UUID - adminGrantsTableId: UUID - adminGrantsTableName: String - ownerGrantsTableId: UUID - ownerGrantsTableName: String - scope: String - prefix: String - entityTableId: UUID - entityTableOwnerId: UUID - getOrgFn: String - actorMaskCheck: String - actorPermCheck: String - entityIdsByMask: String - entityIdsByPerm: String - entityIdsFunction: String - memberProfilesTableId: UUID - permissionDefaultPermissionsTableId: UUID - permissionDefaultGrantsTableId: UUID - apiName: String - privateApiName: String -} - """The output of our create `EntityTypeProvision` mutation.""" type CreateEntityTypeProvisionPayload { """ @@ -18893,7 +20496,6 @@ input EntityTypeProvisionInput { outDefinitionsTableId: UUID outInvocationsTableId: UUID outExecutionLogsTableId: UUID - outSecretDefinitionsTableId: UUID outGraphModuleId: UUID outGraphsTableId: UUID outAgentModuleId: UUID @@ -18951,6 +20553,7 @@ input StorageModuleInput { policies: JSON provisions: JSON entityTableId: UUID + entityField: String endpoint: String publicUrlPrefix: String provider: String @@ -18977,6 +20580,87 @@ input StorageModuleInput { privateApiName: String } +"""The output of our create `MembershipsModule` mutation.""" +type CreateMembershipsModulePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `MembershipsModule` that was created by this mutation.""" + membershipsModule: MembershipsModule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `MembershipsModule`. May be used by Relay 1.""" + membershipsModuleEdge( + """The method to use when ordering `MembershipsModule`.""" + orderBy: [MembershipsModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): MembershipsModuleEdge +} + +"""All input for the create `MembershipsModule` mutation.""" +input CreateMembershipsModuleInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """The `MembershipsModule` to be created by this mutation.""" + membershipsModule: MembershipsModuleInput! +} + +"""An input for mutations affecting `MembershipsModule`""" +input MembershipsModuleInput { + id: UUID + databaseId: UUID! + entityField: String + schemaId: UUID + privateSchemaId: UUID + publicSchemaName: String + privateSchemaName: String + membershipsTableId: UUID + membershipsTableName: String + membersTableId: UUID + membersTableName: String + membershipDefaultsTableId: UUID + membershipDefaultsTableName: String + membershipSettingsTableId: UUID + membershipSettingsTableName: String + grantsTableId: UUID + grantsTableName: String + actorTableId: UUID + limitsTableId: UUID + defaultLimitsTableId: UUID + permissionsTableId: UUID + defaultPermissionsTableId: UUID + sprtTableId: UUID + adminGrantsTableId: UUID + adminGrantsTableName: String + ownerGrantsTableId: UUID + ownerGrantsTableName: String + scope: String + prefix: String + entityTableId: UUID + entityTableOwnerId: UUID + getOrgFn: String + actorMaskCheck: String + actorPermCheck: String + entityIdsByMask: String + entityIdsByPerm: String + entityIdsFunction: String + memberProfilesTableId: UUID + permissionDefaultPermissionsTableId: UUID + permissionDefaultGrantsTableId: UUID + apiName: String + privateApiName: String +} + """The output of our create `EventsModule` mutation.""" type CreateEventsModulePayload { """ @@ -19016,6 +20700,7 @@ input CreateEventsModuleInput { input EventsModuleInput { id: UUID databaseId: UUID! + entityField: String schemaId: UUID privateSchemaId: UUID publicSchemaName: String @@ -19042,7 +20727,6 @@ input EventsModuleInput { tgEventBool: String upsertAggregate: String tgUpdateAggregates: String - pruneEvents: String stepsRequired: String levelAchieved: String tgCheckAchievements: String @@ -19155,55 +20839,6 @@ input MembershipTypesModulePatch { tableName: String } -"""The output of our update `UserStateModule` mutation.""" -type UpdateUserStateModulePayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `UserStateModule` that was updated by this mutation.""" - userStateModule: UserStateModule - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `UserStateModule`. May be used by Relay 1.""" - userStateModuleEdge( - """The method to use when ordering `UserStateModule`.""" - orderBy: [UserStateModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): UserStateModuleEdge -} - -"""All input for the `updateUserStateModule` mutation.""" -input UpdateUserStateModuleInput { - """ - An arbitrary string value 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 `UserStateModule` being updated. - """ - userStateModulePatch: UserStateModulePatch! -} - -""" -Represents an update to a `UserStateModule`. Fields that are set will be updated. -""" -input UserStateModulePatch { - id: UUID - databaseId: UUID - schemaId: UUID - tableId: UUID - tableName: String -} - """The output of our update `SessionSecretsModule` mutation.""" type UpdateSessionSecretsModulePayload { """ @@ -19258,57 +20893,6 @@ input SessionSecretsModulePatch { sessionsTableId: UUID } -"""The output of our update `ConfigSecretsOrgModule` mutation.""" -type UpdateConfigSecretsOrgModulePayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `ConfigSecretsOrgModule` that was updated by this mutation.""" - configSecretsOrgModule: ConfigSecretsOrgModule - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `ConfigSecretsOrgModule`. May be used by Relay 1.""" - configSecretsOrgModuleEdge( - """The method to use when ordering `ConfigSecretsOrgModule`.""" - orderBy: [ConfigSecretsOrgModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): ConfigSecretsOrgModuleEdge -} - -"""All input for the `updateConfigSecretsOrgModule` mutation.""" -input UpdateConfigSecretsOrgModuleInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! - - """ - An object where the defined keys will be set on the `ConfigSecretsOrgModule` being updated. - """ - configSecretsOrgModulePatch: ConfigSecretsOrgModulePatch! -} - -""" -Represents an update to a `ConfigSecretsOrgModule`. Fields that are set will be updated. -""" -input ConfigSecretsOrgModulePatch { - id: UUID - databaseId: UUID - schemaId: UUID - tableId: UUID - tableName: String - apiName: String - privateApiName: String -} - """The output of our update `DevicesModule` mutation.""" type UpdateDevicesModulePayload { """ @@ -19411,31 +20995,31 @@ input I18NModulePatch { privateApiName: String } -"""The output of our update `UserCredentialsModule` mutation.""" -type UpdateUserCredentialsModulePayload { +"""The output of our update `UserSettingsModule` mutation.""" +type UpdateUserSettingsModulePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `UserCredentialsModule` that was updated by this mutation.""" - userCredentialsModule: UserCredentialsModule + """The `UserSettingsModule` that was updated by this mutation.""" + userSettingsModule: UserSettingsModule """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `UserCredentialsModule`. May be used by Relay 1.""" - userCredentialsModuleEdge( - """The method to use when ordering `UserCredentialsModule`.""" - orderBy: [UserCredentialsModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): UserCredentialsModuleEdge + """An edge for our `UserSettingsModule`. May be used by Relay 1.""" + userSettingsModuleEdge( + """The method to use when ordering `UserSettingsModule`.""" + orderBy: [UserSettingsModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): UserSettingsModuleEdge } -"""All input for the `updateUserCredentialsModule` mutation.""" -input UpdateUserCredentialsModuleInput { +"""All input for the `updateUserSettingsModule` mutation.""" +input UpdateUserSettingsModuleInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -19444,49 +21028,49 @@ input UpdateUserCredentialsModuleInput { id: UUID! """ - An object where the defined keys will be set on the `UserCredentialsModule` being updated. + An object where the defined keys will be set on the `UserSettingsModule` being updated. """ - userCredentialsModulePatch: UserCredentialsModulePatch! + userSettingsModulePatch: UserSettingsModulePatch! } """ -Represents an update to a `UserCredentialsModule`. Fields that are set will be updated. +Represents an update to a `UserSettingsModule`. Fields that are set will be updated. """ -input UserCredentialsModulePatch { +input UserSettingsModulePatch { id: UUID databaseId: UUID schemaId: UUID tableId: UUID + ownerTableId: UUID tableName: String apiName: String - privateApiName: String } -"""The output of our update `UserSettingsModule` mutation.""" -type UpdateUserSettingsModulePayload { +"""The output of our update `UserStateModule` mutation.""" +type UpdateUserStateModulePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `UserSettingsModule` that was updated by this mutation.""" - userSettingsModule: UserSettingsModule + """The `UserStateModule` that was updated by this mutation.""" + userStateModule: UserStateModule """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `UserSettingsModule`. May be used by Relay 1.""" - userSettingsModuleEdge( - """The method to use when ordering `UserSettingsModule`.""" - orderBy: [UserSettingsModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): UserSettingsModuleEdge + """An edge for our `UserStateModule`. May be used by Relay 1.""" + userStateModuleEdge( + """The method to use when ordering `UserStateModule`.""" + orderBy: [UserStateModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): UserStateModuleEdge } -"""All input for the `updateUserSettingsModule` mutation.""" -input UpdateUserSettingsModuleInput { +"""All input for the `updateUserStateModule` mutation.""" +input UpdateUserStateModuleInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -19495,49 +21079,48 @@ input UpdateUserSettingsModuleInput { id: UUID! """ - An object where the defined keys will be set on the `UserSettingsModule` being updated. + An object where the defined keys will be set on the `UserStateModule` being updated. """ - userSettingsModulePatch: UserSettingsModulePatch! + userStateModulePatch: UserStateModulePatch! } """ -Represents an update to a `UserSettingsModule`. Fields that are set will be updated. +Represents an update to a `UserStateModule`. Fields that are set will be updated. """ -input UserSettingsModulePatch { +input UserStateModulePatch { id: UUID databaseId: UUID + entityField: String schemaId: UUID tableId: UUID - ownerTableId: UUID tableName: String - apiName: String } -"""The output of our update `ConfigSecretsUserModule` mutation.""" -type UpdateConfigSecretsUserModulePayload { +"""The output of our update `UserCredentialsModule` mutation.""" +type UpdateUserCredentialsModulePayload { """ The exact 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 `UserCredentialsModule` that was updated by this mutation.""" + userCredentialsModule: UserCredentialsModule """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `ConfigSecretsUserModule`. May be used by Relay 1.""" - configSecretsUserModuleEdge( - """The method to use when ordering `ConfigSecretsUserModule`.""" - orderBy: [ConfigSecretsUserModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): ConfigSecretsUserModuleEdge + """An edge for our `UserCredentialsModule`. May be used by Relay 1.""" + userCredentialsModuleEdge( + """The method to use when ordering `UserCredentialsModule`.""" + orderBy: [UserCredentialsModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): UserCredentialsModuleEdge } -"""All input for the `updateConfigSecretsUserModule` mutation.""" -input UpdateConfigSecretsUserModuleInput { +"""All input for the `updateUserCredentialsModule` mutation.""" +input UpdateUserCredentialsModuleInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -19546,22 +21129,21 @@ input UpdateConfigSecretsUserModuleInput { id: UUID! """ - 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 `UserCredentialsModule` being updated. """ - configSecretsUserModulePatch: ConfigSecretsUserModulePatch! + userCredentialsModulePatch: UserCredentialsModulePatch! } """ -Represents an update to a `ConfigSecretsUserModule`. Fields that are set will be updated. +Represents an update to a `UserCredentialsModule`. Fields that are set will be updated. """ -input ConfigSecretsUserModulePatch { +input UserCredentialsModulePatch { id: UUID databaseId: UUID + entityField: String schemaId: UUID tableId: UUID tableName: String - configDefinitionsTableId: UUID - apiName: String privateApiName: String } @@ -19887,31 +21469,31 @@ input WebauthnCredentialsModulePatch { privateApiName: String } -"""The output of our update `CryptoAddressesModule` mutation.""" -type UpdateCryptoAddressesModulePayload { +"""The output of our update `ConfigSecretsUserModule` mutation.""" +type UpdateConfigSecretsUserModulePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `CryptoAddressesModule` that was updated by this mutation.""" - cryptoAddressesModule: CryptoAddressesModule + """The `ConfigSecretsUserModule` that was updated by this mutation.""" + configSecretsUserModule: ConfigSecretsUserModule """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `CryptoAddressesModule`. May be used by Relay 1.""" - cryptoAddressesModuleEdge( - """The method to use when ordering `CryptoAddressesModule`.""" - orderBy: [CryptoAddressesModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): CryptoAddressesModuleEdge + """An edge for our `ConfigSecretsUserModule`. May be used by Relay 1.""" + configSecretsUserModuleEdge( + """The method to use when ordering `ConfigSecretsUserModule`.""" + orderBy: [ConfigSecretsUserModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): ConfigSecretsUserModuleEdge } -"""All input for the `updateCryptoAddressesModule` mutation.""" -input UpdateCryptoAddressesModuleInput { +"""All input for the `updateConfigSecretsUserModule` mutation.""" +input UpdateConfigSecretsUserModuleInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -19920,52 +21502,50 @@ input UpdateCryptoAddressesModuleInput { id: UUID! """ - An object where the defined keys will be set on the `CryptoAddressesModule` being updated. + An object where the defined keys will be set on the `ConfigSecretsUserModule` being updated. """ - cryptoAddressesModulePatch: CryptoAddressesModulePatch! + configSecretsUserModulePatch: ConfigSecretsUserModulePatch! } """ -Represents an update to a `CryptoAddressesModule`. Fields that are set will be updated. +Represents an update to a `ConfigSecretsUserModule`. Fields that are set will be updated. """ -input CryptoAddressesModulePatch { +input ConfigSecretsUserModulePatch { id: UUID databaseId: UUID + entityField: String schemaId: UUID - privateSchemaId: UUID tableId: UUID - ownerTableId: UUID tableName: String - cryptoNetwork: String apiName: String privateApiName: String } -"""The output of our update `DenormalizedTableField` mutation.""" -type UpdateDenormalizedTableFieldPayload { +"""The output of our update `CryptoAddressesModule` mutation.""" +type UpdateCryptoAddressesModulePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `DenormalizedTableField` that was updated by this mutation.""" - denormalizedTableField: DenormalizedTableField + """The `CryptoAddressesModule` that was updated by this mutation.""" + cryptoAddressesModule: CryptoAddressesModule """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `DenormalizedTableField`. May be used by Relay 1.""" - denormalizedTableFieldEdge( - """The method to use when ordering `DenormalizedTableField`.""" - orderBy: [DenormalizedTableFieldOrderBy!]! = [PRIMARY_KEY_ASC] - ): DenormalizedTableFieldEdge + """An edge for our `CryptoAddressesModule`. May be used by Relay 1.""" + cryptoAddressesModuleEdge( + """The method to use when ordering `CryptoAddressesModule`.""" + orderBy: [CryptoAddressesModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): CryptoAddressesModuleEdge } -"""All input for the `updateDenormalizedTableField` mutation.""" -input UpdateDenormalizedTableFieldInput { +"""All input for the `updateCryptoAddressesModule` mutation.""" +input UpdateCryptoAddressesModuleInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -19974,54 +21554,52 @@ input UpdateDenormalizedTableFieldInput { id: UUID! """ - An object where the defined keys will be set on the `DenormalizedTableField` being updated. + An object where the defined keys will be set on the `CryptoAddressesModule` being updated. """ - denormalizedTableFieldPatch: DenormalizedTableFieldPatch! + cryptoAddressesModulePatch: CryptoAddressesModulePatch! } """ -Represents an update to a `DenormalizedTableField`. Fields that are set will be updated. +Represents an update to a `CryptoAddressesModule`. Fields that are set will be updated. """ -input DenormalizedTableFieldPatch { +input CryptoAddressesModulePatch { id: UUID databaseId: UUID + schemaId: UUID + privateSchemaId: UUID tableId: UUID - fieldId: UUID - setIds: [UUID] - refTableId: UUID - refFieldId: UUID - refIds: [UUID] - useUpdates: Boolean - updateDefaults: Boolean - funcName: String - funcOrder: Int + ownerTableId: UUID + tableName: String + cryptoNetwork: String + apiName: String + privateApiName: String } -"""The output of our update `IdentityProvidersModule` mutation.""" -type UpdateIdentityProvidersModulePayload { +"""The output of our update `DenormalizedTableField` mutation.""" +type UpdateDenormalizedTableFieldPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `IdentityProvidersModule` that was updated by this mutation.""" - identityProvidersModule: IdentityProvidersModule + """The `DenormalizedTableField` that was updated by this mutation.""" + denormalizedTableField: DenormalizedTableField """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `IdentityProvidersModule`. May be used by Relay 1.""" - identityProvidersModuleEdge( - """The method to use when ordering `IdentityProvidersModule`.""" - orderBy: [IdentityProvidersModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): IdentityProvidersModuleEdge + """An edge for our `DenormalizedTableField`. May be used by Relay 1.""" + denormalizedTableFieldEdge( + """The method to use when ordering `DenormalizedTableField`.""" + orderBy: [DenormalizedTableFieldOrderBy!]! = [PRIMARY_KEY_ASC] + ): DenormalizedTableFieldEdge } -"""All input for the `updateIdentityProvidersModule` mutation.""" -input UpdateIdentityProvidersModuleInput { +"""All input for the `updateDenormalizedTableField` mutation.""" +input UpdateDenormalizedTableFieldInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -20030,32 +21608,27 @@ input UpdateIdentityProvidersModuleInput { id: UUID! """ - An object where the defined keys will be set on the `IdentityProvidersModule` being updated. + An object where the defined keys will be set on the `DenormalizedTableField` being updated. """ - identityProvidersModulePatch: IdentityProvidersModulePatch! + denormalizedTableFieldPatch: DenormalizedTableFieldPatch! } """ -Represents an update to a `IdentityProvidersModule`. Fields that are set will be updated. +Represents an update to a `DenormalizedTableField`. Fields that are set will be updated. """ -input IdentityProvidersModulePatch { - id: UUID - databaseId: UUID - schemaId: UUID - - """ - Private schema that hosts SECURITY DEFINER admin helpers which write to identity_providers (create / update / enable / disable / rotate-secret / delete) and the per-app quota check. - """ - privateSchemaId: UUID - publicSchemaName: String - privateSchemaName: String - tableId: UUID - tableName: String - apiName: String - privateApiName: String - scope: String - prefix: String - entityTableId: UUID +input DenormalizedTableFieldPatch { + id: UUID + databaseId: UUID + tableId: UUID + fieldId: UUID + setIds: [UUID] + refTableId: UUID + refFieldId: UUID + refIds: [UUID] + useUpdates: Boolean + updateDefaults: Boolean + funcName: String + funcOrder: Int } """The output of our update `RlsModule` mutation.""" @@ -20505,31 +22078,31 @@ input SecureTableProvisionPatch { outFields: [UUID] } -"""The output of our update `DatabaseProvisionModule` mutation.""" -type UpdateDatabaseProvisionModulePayload { +"""The output of our update `IdentityProvidersModule` mutation.""" +type UpdateIdentityProvidersModulePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `DatabaseProvisionModule` that was updated by this mutation.""" - databaseProvisionModule: DatabaseProvisionModule + """The `IdentityProvidersModule` that was updated by this mutation.""" + identityProvidersModule: IdentityProvidersModule """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `DatabaseProvisionModule`. May be used by Relay 1.""" - databaseProvisionModuleEdge( - """The method to use when ordering `DatabaseProvisionModule`.""" - orderBy: [DatabaseProvisionModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): DatabaseProvisionModuleEdge + """An edge for our `IdentityProvidersModule`. May be used by Relay 1.""" + identityProvidersModuleEdge( + """The method to use when ordering `IdentityProvidersModule`.""" + orderBy: [IdentityProvidersModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): IdentityProvidersModuleEdge } -"""All input for the `updateDatabaseProvisionModule` mutation.""" -input UpdateDatabaseProvisionModuleInput { +"""All input for the `updateIdentityProvidersModule` mutation.""" +input UpdateIdentityProvidersModuleInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -20538,80 +22111,60 @@ input UpdateDatabaseProvisionModuleInput { id: UUID! """ - An object where the defined keys will be set on the `DatabaseProvisionModule` being updated. + An object where the defined keys will be set on the `IdentityProvidersModule` being updated. """ - databaseProvisionModulePatch: DatabaseProvisionModulePatch! + identityProvidersModulePatch: IdentityProvidersModulePatch! } """ -Represents an update to a `DatabaseProvisionModule`. Fields that are set will be updated. +Represents an update to a `IdentityProvidersModule`. Fields that are set will be updated. """ -input DatabaseProvisionModulePatch { +input IdentityProvidersModulePatch { id: UUID - - """The name for the new database""" - databaseName: String - - """UUID of the user who owns this database""" - ownerId: UUID - - """ - Subdomain prefix for the database. If null, auto-generated using unique_names + random chars - """ - subdomain: String - - """Base domain for the database (e.g., example.com)""" - domain: String - - """ - JSONB array of modules to install. Each element is either a string ("users_module") or a [name, options] tuple (["permissions_module", {"scope": "app"}]) - """ - modules: JSON - - """Additional configuration options for provisioning""" - options: JSON + databaseId: UUID + entityField: String + schemaId: UUID """ - When true, copies the owner user and password hash from source database to the newly provisioned database + Private schema that hosts SECURITY DEFINER admin helpers which write to identity_providers (create / update / enable / disable / rotate-secret / delete) and the per-app quota check. """ - bootstrapUser: Boolean - - """Current status: pending, in_progress, completed, or failed""" - status: String - errorMessage: String - - """The ID of the provisioned database (set by trigger before RLS check)""" - databaseId: UUID - createdAt: Datetime - updatedAt: Datetime - completedAt: Datetime + privateSchemaId: UUID + publicSchemaName: String + privateSchemaName: String + tableId: UUID + tableName: String + apiName: String + privateApiName: String + scope: String + prefix: String + entityTableId: UUID } -"""The output of our update `ConfigSecretsModule` mutation.""" -type UpdateConfigSecretsModulePayload { +"""The output of our update `IntegrationProvidersModule` mutation.""" +type UpdateIntegrationProvidersModulePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `ConfigSecretsModule` that was updated by this mutation.""" - configSecretsModule: ConfigSecretsModule + """The `IntegrationProvidersModule` that was updated by this mutation.""" + integrationProvidersModule: IntegrationProvidersModule """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `ConfigSecretsModule`. May be used by Relay 1.""" - configSecretsModuleEdge( - """The method to use when ordering `ConfigSecretsModule`.""" - orderBy: [ConfigSecretsModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): ConfigSecretsModuleEdge + """An edge for our `IntegrationProvidersModule`. May be used by Relay 1.""" + integrationProvidersModuleEdge( + """The method to use when ordering `IntegrationProvidersModule`.""" + orderBy: [IntegrationProvidersModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): IntegrationProvidersModuleEdge } -"""All input for the `updateConfigSecretsModule` mutation.""" -input UpdateConfigSecretsModuleInput { +"""All input for the `updateIntegrationProvidersModule` mutation.""" +input UpdateIntegrationProvidersModuleInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -20620,59 +22173,56 @@ input UpdateConfigSecretsModuleInput { id: UUID! """ - An object where the defined keys will be set on the `ConfigSecretsModule` being updated. + An object where the defined keys will be set on the `IntegrationProvidersModule` being updated. """ - configSecretsModulePatch: ConfigSecretsModulePatch! + integrationProvidersModulePatch: IntegrationProvidersModulePatch! } """ -Represents an update to a `ConfigSecretsModule`. Fields that are set will be updated. +Represents an update to a `IntegrationProvidersModule`. Fields that are set will be updated. """ -input ConfigSecretsModulePatch { +input IntegrationProvidersModulePatch { id: UUID databaseId: UUID + entityField: String schemaId: UUID privateSchemaId: UUID publicSchemaName: String privateSchemaName: String tableId: UUID - configDefinitionsTableId: UUID tableName: String apiName: String privateApiName: String scope: String prefix: String entityTableId: UUID - policies: JSON - provisions: JSON - hasConfig: Boolean } -"""The output of our update `GraphModule` mutation.""" -type UpdateGraphModulePayload { +"""The output of our update `DbPoolConfig` mutation.""" +type UpdateDbPoolConfigPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `GraphModule` that was updated by this mutation.""" - graphModule: GraphModule + """The `DbPoolConfig` that was updated by this mutation.""" + dbPoolConfig: DbPoolConfig """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `GraphModule`. May be used by Relay 1.""" - graphModuleEdge( - """The method to use when ordering `GraphModule`.""" - orderBy: [GraphModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): GraphModuleEdge + """An edge for our `DbPoolConfig`. May be used by Relay 1.""" + dbPoolConfigEdge( + """The method to use when ordering `DbPoolConfig`.""" + orderBy: [DbPoolConfigOrderBy!]! = [PRIMARY_KEY_ASC] + ): DbPoolConfigEdge } -"""All input for the `updateGraphModule` mutation.""" -input UpdateGraphModuleInput { +"""All input for the `updateDbPoolConfig` mutation.""" +input UpdateDbPoolConfigInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -20681,59 +22231,70 @@ input UpdateGraphModuleInput { id: UUID! """ - An object where the defined keys will be set on the `GraphModule` being updated. + An object where the defined keys will be set on the `DbPoolConfig` being updated. """ - graphModulePatch: GraphModulePatch! + dbPoolConfigPatch: DbPoolConfigPatch! } """ -Represents an update to a `GraphModule`. Fields that are set will be updated. +Represents an update to a `DbPoolConfig`. Fields that are set will be updated. """ -input GraphModulePatch { +input DbPoolConfigPatch { id: UUID - databaseId: UUID - publicSchemaId: UUID - privateSchemaId: UUID - publicSchemaName: String - privateSchemaName: String - scope: String - prefix: String - merkleStoreModuleId: UUID - graphsTableId: UUID - apiName: String - privateApiName: String - entityTableId: UUID - policies: JSON - provisions: JSON - defaultPermissions: [String] + + """Slug of the db_presets catalog row this pool serves""" + presetSlug: String + + """Base domain used when provisioning warm databases""" + domain: String + + """ + Platform pool service org that owns warm databases until they are claimed + """ + poolOwnerId: UUID + + """Minimum number of ready warm databases the reconciler maintains""" + min: Int + + """Maximum number of warming + ready databases the reconciler will keep""" + max: Int + + """How long a ready warm database stays claimable before it expires""" + warmTtl: IntervalInput + + """ + When false the reconciler stops warming and the claim path falls through to cold provisioning + """ + enabled: Boolean createdAt: Datetime + updatedAt: Datetime } -"""The output of our update `MerkleStoreModule` mutation.""" -type UpdateMerkleStoreModulePayload { +"""The output of our update `RealtimeModule` mutation.""" +type UpdateRealtimeModulePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `MerkleStoreModule` that was updated by this mutation.""" - merkleStoreModule: MerkleStoreModule + """The `RealtimeModule` that was updated by this mutation.""" + realtimeModule: RealtimeModule """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `MerkleStoreModule`. May be used by Relay 1.""" - merkleStoreModuleEdge( - """The method to use when ordering `MerkleStoreModule`.""" - orderBy: [MerkleStoreModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): MerkleStoreModuleEdge + """An edge for our `RealtimeModule`. May be used by Relay 1.""" + realtimeModuleEdge( + """The method to use when ordering `RealtimeModule`.""" + orderBy: [RealtimeModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): RealtimeModuleEdge } -"""All input for the `updateMerkleStoreModule` mutation.""" -input UpdateMerkleStoreModuleInput { +"""All input for the `updateRealtimeModule` mutation.""" +input UpdateRealtimeModuleInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -20742,59 +22303,56 @@ input UpdateMerkleStoreModuleInput { id: UUID! """ - An object where the defined keys will be set on the `MerkleStoreModule` being updated. + An object where the defined keys will be set on the `RealtimeModule` being updated. """ - merkleStoreModulePatch: MerkleStoreModulePatch! + realtimeModulePatch: RealtimeModulePatch! } """ -Represents an update to a `MerkleStoreModule`. Fields that are set will be updated. +Represents an update to a `RealtimeModule`. Fields that are set will be updated. """ -input MerkleStoreModulePatch { +input RealtimeModulePatch { id: UUID databaseId: UUID schemaId: UUID privateSchemaId: UUID - publicSchemaName: String - privateSchemaName: String - objectTableId: UUID - storeTableId: UUID - commitTableId: UUID - refTableId: UUID - prefix: String + subscriptionsSchemaId: UUID + changeLogTableId: UUID + listenerNodeTableId: UUID + sourceRegistryTableId: UUID + retentionHours: Int + premake: Int + interval: String + notifyChannel: String apiName: String privateApiName: String - scope: String - functionPrefix: String - permissionKey: String - createdAt: Datetime } -"""The output of our update `RateLimitMetersModule` mutation.""" -type UpdateRateLimitMetersModulePayload { +"""The output of our update `InfraSecretsModule` mutation.""" +type UpdateInfraSecretsModulePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `RateLimitMetersModule` that was updated by this mutation.""" - rateLimitMetersModule: RateLimitMetersModule + """The `InfraSecretsModule` that was updated by this mutation.""" + infraSecretsModule: InfraSecretsModule """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `RateLimitMetersModule`. May be used by Relay 1.""" - rateLimitMetersModuleEdge( - """The method to use when ordering `RateLimitMetersModule`.""" - orderBy: [RateLimitMetersModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): RateLimitMetersModuleEdge + """An edge for our `InfraSecretsModule`. May be used by Relay 1.""" + infraSecretsModuleEdge( + """The method to use when ordering `InfraSecretsModule`.""" + orderBy: [InfraSecretsModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): InfraSecretsModuleEdge } -"""All input for the `updateRateLimitMetersModule` mutation.""" -input UpdateRateLimitMetersModuleInput { +"""All input for the `updateInfraSecretsModule` mutation.""" +input UpdateInfraSecretsModuleInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -20803,59 +22361,58 @@ input UpdateRateLimitMetersModuleInput { id: UUID! """ - An object where the defined keys will be set on the `RateLimitMetersModule` being updated. + An object where the defined keys will be set on the `InfraSecretsModule` being updated. """ - rateLimitMetersModulePatch: RateLimitMetersModulePatch! + infraSecretsModulePatch: InfraSecretsModulePatch! } """ -Represents an update to a `RateLimitMetersModule`. Fields that are set will be updated. +Represents an update to a `InfraSecretsModule`. Fields that are set will be updated. """ -input RateLimitMetersModulePatch { +input InfraSecretsModulePatch { id: UUID databaseId: UUID schemaId: UUID privateSchemaId: UUID publicSchemaName: String privateSchemaName: String - rateLimitStateTableId: UUID - rateLimitStateTableName: String - rateLimitOverridesTableId: UUID - rateLimitOverridesTableName: String - rateWindowLimitsTableId: UUID - rateWindowLimitsTableName: String - checkRateLimitFunction: String - prefix: String - defaultPermissions: [String] + secretsTableId: UUID + secretsTableName: String apiName: String privateApiName: String + scope: String + prefix: String + entityTableId: UUID + entityField: String + policies: JSON + provisions: JSON } -"""The output of our update `RealtimeModule` mutation.""" -type UpdateRealtimeModulePayload { +"""The output of our update `InternalSecretsModule` mutation.""" +type UpdateInternalSecretsModulePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `RealtimeModule` that was updated by this mutation.""" - realtimeModule: RealtimeModule + """The `InternalSecretsModule` that was updated by this mutation.""" + internalSecretsModule: InternalSecretsModule """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `RealtimeModule`. May be used by Relay 1.""" - realtimeModuleEdge( - """The method to use when ordering `RealtimeModule`.""" - orderBy: [RealtimeModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): RealtimeModuleEdge + """An edge for our `InternalSecretsModule`. May be used by Relay 1.""" + internalSecretsModuleEdge( + """The method to use when ordering `InternalSecretsModule`.""" + orderBy: [InternalSecretsModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): InternalSecretsModuleEdge } -"""All input for the `updateRealtimeModule` mutation.""" -input UpdateRealtimeModuleInput { +"""All input for the `updateInternalSecretsModule` mutation.""" +input UpdateInternalSecretsModuleInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -20864,56 +22421,58 @@ input UpdateRealtimeModuleInput { id: UUID! """ - An object where the defined keys will be set on the `RealtimeModule` being updated. + An object where the defined keys will be set on the `InternalSecretsModule` being updated. """ - realtimeModulePatch: RealtimeModulePatch! + internalSecretsModulePatch: InternalSecretsModulePatch! } """ -Represents an update to a `RealtimeModule`. Fields that are set will be updated. +Represents an update to a `InternalSecretsModule`. Fields that are set will be updated. """ -input RealtimeModulePatch { +input InternalSecretsModulePatch { id: UUID databaseId: UUID schemaId: UUID privateSchemaId: UUID - subscriptionsSchemaId: UUID - changeLogTableId: UUID - listenerNodeTableId: UUID - sourceRegistryTableId: UUID - retentionHours: Int - premake: Int - interval: String - notifyChannel: String + publicSchemaName: String + privateSchemaName: String + internalSecretsTableId: UUID + internalSecretsTableName: String apiName: String privateApiName: String + scope: String + prefix: String + entityTableId: UUID + entityField: String + policies: JSON + provisions: JSON } -"""The output of our update `WebauthnAuthModule` mutation.""" -type UpdateWebauthnAuthModulePayload { +"""The output of our update `DbPresetModule` mutation.""" +type UpdateDbPresetModulePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `WebauthnAuthModule` that was updated by this mutation.""" - webauthnAuthModule: WebauthnAuthModule + """The `DbPresetModule` that was updated by this mutation.""" + dbPresetModule: DbPresetModule """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `WebauthnAuthModule`. May be used by Relay 1.""" - webauthnAuthModuleEdge( - """The method to use when ordering `WebauthnAuthModule`.""" - orderBy: [WebauthnAuthModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): WebauthnAuthModuleEdge + """An edge for our `DbPresetModule`. May be used by Relay 1.""" + dbPresetModuleEdge( + """The method to use when ordering `DbPresetModule`.""" + orderBy: [DbPresetModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): DbPresetModuleEdge } -"""All input for the `updateWebauthnAuthModule` mutation.""" -input UpdateWebauthnAuthModuleInput { +"""All input for the `updateDbPresetModule` mutation.""" +input UpdateDbPresetModuleInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -20922,58 +22481,59 @@ input UpdateWebauthnAuthModuleInput { id: UUID! """ - An object where the defined keys will be set on the `WebauthnAuthModule` being updated. + An object where the defined keys will be set on the `DbPresetModule` being updated. """ - webauthnAuthModulePatch: WebauthnAuthModulePatch! + dbPresetModulePatch: DbPresetModulePatch! } """ -Represents an update to a `WebauthnAuthModule`. Fields that are set will be updated. +Represents an update to a `DbPresetModule`. Fields that are set will be updated. """ -input WebauthnAuthModulePatch { +input DbPresetModulePatch { id: UUID databaseId: UUID - schemaId: UUID - usersTableId: UUID - credentialsTableId: UUID - sessionsTableId: UUID - sessionCredentialsTableId: UUID - sessionSecretsTableId: UUID - authSettingsTableId: UUID - rpId: String - rpName: String - originAllowlist: [String] - attestationType: String - requireUserVerification: Boolean - residentKey: String - challengeExpiry: IntervalInput + publicSchemaId: UUID + privateSchemaId: UUID + publicSchemaName: String + privateSchemaName: String + scope: String + prefix: String + merkleStoreModuleId: UUID + dbPresetsTableId: UUID + storeName: String + apiName: String + privateApiName: String + entityTableId: UUID + policies: JSON + provisions: JSON + createdAt: Datetime } -"""The output of our update `FunctionInvocationModule` mutation.""" -type UpdateFunctionInvocationModulePayload { +"""The output of our update `RateLimitMetersModule` mutation.""" +type UpdateRateLimitMetersModulePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `FunctionInvocationModule` that was updated by this mutation.""" - functionInvocationModule: FunctionInvocationModule + """The `RateLimitMetersModule` that was updated by this mutation.""" + rateLimitMetersModule: RateLimitMetersModule """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `FunctionInvocationModule`. May be used by Relay 1.""" - functionInvocationModuleEdge( - """The method to use when ordering `FunctionInvocationModule`.""" - orderBy: [FunctionInvocationModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): FunctionInvocationModuleEdge + """An edge for our `RateLimitMetersModule`. May be used by Relay 1.""" + rateLimitMetersModuleEdge( + """The method to use when ordering `RateLimitMetersModule`.""" + orderBy: [RateLimitMetersModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): RateLimitMetersModuleEdge } -"""All input for the `updateFunctionInvocationModule` mutation.""" -input UpdateFunctionInvocationModuleInput { +"""All input for the `updateRateLimitMetersModule` mutation.""" +input UpdateRateLimitMetersModuleInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -20982,60 +22542,59 @@ input UpdateFunctionInvocationModuleInput { id: UUID! """ - An object where the defined keys will be set on the `FunctionInvocationModule` being updated. + An object where the defined keys will be set on the `RateLimitMetersModule` being updated. """ - functionInvocationModulePatch: FunctionInvocationModulePatch! + rateLimitMetersModulePatch: RateLimitMetersModulePatch! } """ -Represents an update to a `FunctionInvocationModule`. Fields that are set will be updated. +Represents an update to a `RateLimitMetersModule`. Fields that are set will be updated. """ -input FunctionInvocationModulePatch { +input RateLimitMetersModulePatch { id: UUID databaseId: UUID schemaId: UUID privateSchemaId: UUID publicSchemaName: String privateSchemaName: String - invocationsTableId: UUID - executionLogsTableId: UUID - invocationsTableName: String - executionLogsTableName: String - apiName: String - privateApiName: String - scope: String + rateLimitStateTableId: UUID + rateLimitStateTableName: String + rateLimitOverridesTableId: UUID + rateLimitOverridesTableName: String + rateWindowLimitsTableId: UUID + rateWindowLimitsTableName: String + checkRateLimitFunction: String prefix: String - entityTableId: UUID - policies: JSON - provisions: JSON defaultPermissions: [String] + apiName: String + privateApiName: String } -"""The output of our update `FunctionModule` mutation.""" -type UpdateFunctionModulePayload { +"""The output of our update `InfraConfigModule` mutation.""" +type UpdateInfraConfigModulePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `FunctionModule` that was updated by this mutation.""" - functionModule: FunctionModule + """The `InfraConfigModule` that was updated by this mutation.""" + infraConfigModule: InfraConfigModule """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `FunctionModule`. May be used by Relay 1.""" - functionModuleEdge( - """The method to use when ordering `FunctionModule`.""" - orderBy: [FunctionModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): FunctionModuleEdge + """An edge for our `InfraConfigModule`. May be used by Relay 1.""" + infraConfigModuleEdge( + """The method to use when ordering `InfraConfigModule`.""" + orderBy: [InfraConfigModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): InfraConfigModuleEdge } -"""All input for the `updateFunctionModule` mutation.""" -input UpdateFunctionModuleInput { +"""All input for the `updateInfraConfigModule` mutation.""" +input UpdateInfraConfigModuleInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -21044,25 +22603,24 @@ input UpdateFunctionModuleInput { id: UUID! """ - An object where the defined keys will be set on the `FunctionModule` being updated. + An object where the defined keys will be set on the `InfraConfigModule` being updated. """ - functionModulePatch: FunctionModulePatch! + infraConfigModulePatch: InfraConfigModulePatch! } """ -Represents an update to a `FunctionModule`. Fields that are set will be updated. +Represents an update to a `InfraConfigModule`. Fields that are set will be updated. """ -input FunctionModulePatch { +input InfraConfigModulePatch { id: UUID databaseId: UUID + entityField: String schemaId: UUID privateSchemaId: UUID publicSchemaName: String privateSchemaName: String - definitionsTableId: UUID - secretDefinitionsTableId: UUID - definitionsTableName: String - secretDefinitionsTableName: String + configTableId: UUID + configTableName: String apiName: String privateApiName: String scope: String @@ -21070,34 +22628,33 @@ input FunctionModulePatch { entityTableId: UUID policies: JSON provisions: JSON - defaultPermissions: [String] } -"""The output of our update `InvitesModule` mutation.""" -type UpdateInvitesModulePayload { +"""The output of our update `WebauthnAuthModule` mutation.""" +type UpdateWebauthnAuthModulePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `InvitesModule` that was updated by this mutation.""" - invitesModule: InvitesModule + """The `WebauthnAuthModule` that was updated by this mutation.""" + webauthnAuthModule: WebauthnAuthModule """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `InvitesModule`. May be used by Relay 1.""" - invitesModuleEdge( - """The method to use when ordering `InvitesModule`.""" - orderBy: [InvitesModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): InvitesModuleEdge + """An edge for our `WebauthnAuthModule`. May be used by Relay 1.""" + webauthnAuthModuleEdge( + """The method to use when ordering `WebauthnAuthModule`.""" + orderBy: [WebauthnAuthModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): WebauthnAuthModuleEdge } -"""All input for the `updateInvitesModule` mutation.""" -input UpdateInvitesModuleInput { +"""All input for the `updateWebauthnAuthModule` mutation.""" +input UpdateWebauthnAuthModuleInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -21106,33 +22663,31 @@ input UpdateInvitesModuleInput { id: UUID! """ - An object where the defined keys will be set on the `InvitesModule` being updated. + An object where the defined keys will be set on the `WebauthnAuthModule` being updated. """ - invitesModulePatch: InvitesModulePatch! + webauthnAuthModulePatch: WebauthnAuthModulePatch! } """ -Represents an update to a `InvitesModule`. Fields that are set will be updated. +Represents an update to a `WebauthnAuthModule`. Fields that are set will be updated. """ -input InvitesModulePatch { +input WebauthnAuthModulePatch { id: UUID databaseId: UUID schemaId: UUID - privateSchemaId: UUID - publicSchemaName: String - privateSchemaName: String - emailsTableId: UUID usersTableId: UUID - invitesTableId: UUID - claimedInvitesTableId: UUID - invitesTableName: String - claimedInvitesTableName: String - submitInviteCodeFunction: String - scope: String - prefix: String - entityTableId: UUID - apiName: String - privateApiName: String + credentialsTableId: UUID + sessionsTableId: UUID + sessionCredentialsTableId: UUID + sessionSecretsTableId: UUID + authSettingsTableId: UUID + rpId: String + rpName: String + originAllowlist: [String] + attestationType: String + requireUserVerification: Boolean + residentKey: String + challengeExpiry: IntervalInput } """The output of our update `PrincipalAuthModule` mutation.""" @@ -21197,31 +22752,31 @@ input PrincipalAuthModulePatch { apiName: String } -"""The output of our update `ComputeLogModule` mutation.""" -type UpdateComputeLogModulePayload { +"""The output of our update `DbPool` mutation.""" +type UpdateDbPoolPayload { """ The exact 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 `DbPool` that was updated by this mutation.""" + dbPool: DbPool """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `ComputeLogModule`. May be used by Relay 1.""" - computeLogModuleEdge( - """The method to use when ordering `ComputeLogModule`.""" - orderBy: [ComputeLogModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): ComputeLogModuleEdge + """An edge for our `DbPool`. May be used by Relay 1.""" + dbPoolEdge( + """The method to use when ordering `DbPool`.""" + orderBy: [DbPoolOrderBy!]! = [PRIMARY_KEY_ASC] + ): DbPoolEdge } -"""All input for the `updateComputeLogModule` mutation.""" -input UpdateComputeLogModuleInput { +"""All input for the `updateDbPool` mutation.""" +input UpdateDbPoolInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -21230,61 +22785,134 @@ input UpdateComputeLogModuleInput { id: UUID! """ - 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 `DbPool` being updated. """ - computeLogModulePatch: ComputeLogModulePatch! + dbPoolPatch: DbPoolPatch! } """ -Represents an update to a `ComputeLogModule`. Fields that are set will be updated. +Represents an update to a `DbPool`. Fields that are set will be updated. """ -input ComputeLogModulePatch { +input DbPoolPatch { + id: UUID + + """Slug of the db_presets catalog row this entry was baked from""" + presetSlug: String + + """ + The db_presets merkle commit_id the warm database was baked from; a mismatch with the current head marks the entry stale + """ + presetCommitId: UUID + databaseId: UUID + + """Lifecycle: warming, ready, claimed, stale, expired, or failed""" + status: String + errorMessage: String + + """ + When a ready entry expires (set from db_pool_config.warm_ttl at warm time) + """ + expiresAt: Datetime + + """User the database was transferred to at claim time""" + claimedBy: UUID + claimedAt: Datetime + + """ + Status of the deferred owner bootstrap job after claim: not_requested, pending, completed, or failed + """ + bootstrapStatus: String + bootstrapError: String + createdAt: Datetime + updatedAt: Datetime +} + +"""The output of our update `FunctionModule` mutation.""" +type UpdateFunctionModulePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `FunctionModule` that was updated by this mutation.""" + functionModule: FunctionModule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `FunctionModule`. May be used by Relay 1.""" + functionModuleEdge( + """The method to use when ordering `FunctionModule`.""" + orderBy: [FunctionModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): FunctionModuleEdge +} + +"""All input for the `updateFunctionModule` mutation.""" +input UpdateFunctionModuleInput { + """ + An arbitrary string value 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 `FunctionModule` being updated. + """ + functionModulePatch: FunctionModulePatch! +} + +""" +Represents an update to a `FunctionModule`. Fields that are set will be updated. +""" +input FunctionModulePatch { id: UUID databaseId: UUID + entityField: String schemaId: UUID privateSchemaId: UUID publicSchemaName: String privateSchemaName: String - computeLogTableId: UUID - computeLogTableName: String - usageDailyTableId: UUID - usageDailyTableName: String - interval: String - retention: String - premake: Int - scope: String - actorFkTableId: UUID - entityFkTableId: UUID - prefix: String + definitionsTableId: UUID + definitionsTableName: String apiName: String privateApiName: String + scope: String + prefix: String + entityTableId: UUID + policies: JSON + provisions: JSON + defaultPermissions: [String] } -"""The output of our update `InferenceLogModule` mutation.""" -type UpdateInferenceLogModulePayload { +"""The output of our update `GraphModule` mutation.""" +type UpdateGraphModulePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `InferenceLogModule` that was updated by this mutation.""" - inferenceLogModule: InferenceLogModule + """The `GraphModule` that was updated by this mutation.""" + graphModule: GraphModule """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `InferenceLogModule`. May be used by Relay 1.""" - inferenceLogModuleEdge( - """The method to use when ordering `InferenceLogModule`.""" - orderBy: [InferenceLogModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): InferenceLogModuleEdge + """An edge for our `GraphModule`. May be used by Relay 1.""" + graphModuleEdge( + """The method to use when ordering `GraphModule`.""" + orderBy: [GraphModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): GraphModuleEdge } -"""All input for the `updateInferenceLogModule` mutation.""" -input UpdateInferenceLogModuleInput { +"""All input for the `updateGraphModule` mutation.""" +input UpdateGraphModuleInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -21293,61 +22921,60 @@ input UpdateInferenceLogModuleInput { id: UUID! """ - An object where the defined keys will be set on the `InferenceLogModule` being updated. + An object where the defined keys will be set on the `GraphModule` being updated. """ - inferenceLogModulePatch: InferenceLogModulePatch! + graphModulePatch: GraphModulePatch! } """ -Represents an update to a `InferenceLogModule`. Fields that are set will be updated. +Represents an update to a `GraphModule`. Fields that are set will be updated. """ -input InferenceLogModulePatch { +input GraphModulePatch { id: UUID databaseId: UUID - schemaId: UUID + entityField: String + publicSchemaId: UUID privateSchemaId: UUID publicSchemaName: String privateSchemaName: String - inferenceLogTableId: UUID - inferenceLogTableName: String - usageDailyTableId: UUID - usageDailyTableName: String - interval: String - retention: String - premake: Int scope: String - actorFkTableId: UUID - entityFkTableId: UUID prefix: String + merkleStoreModuleId: UUID + graphsTableId: UUID apiName: String privateApiName: String + entityTableId: UUID + policies: JSON + provisions: JSON + defaultPermissions: [String] + createdAt: Datetime } -"""The output of our update `NamespaceModule` mutation.""" -type UpdateNamespaceModulePayload { +"""The output of our update `MerkleStoreModule` mutation.""" +type UpdateMerkleStoreModulePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `NamespaceModule` that was updated by this mutation.""" - namespaceModule: NamespaceModule + """The `MerkleStoreModule` that was updated by this mutation.""" + merkleStoreModule: MerkleStoreModule """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `NamespaceModule`. May be used by Relay 1.""" - namespaceModuleEdge( - """The method to use when ordering `NamespaceModule`.""" - orderBy: [NamespaceModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): NamespaceModuleEdge + """An edge for our `MerkleStoreModule`. May be used by Relay 1.""" + merkleStoreModuleEdge( + """The method to use when ordering `MerkleStoreModule`.""" + orderBy: [MerkleStoreModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): MerkleStoreModuleEdge } -"""All input for the `updateNamespaceModule` mutation.""" -input UpdateNamespaceModuleInput { +"""All input for the `updateMerkleStoreModule` mutation.""" +input UpdateMerkleStoreModuleInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -21356,61 +22983,60 @@ input UpdateNamespaceModuleInput { id: UUID! """ - An object where the defined keys will be set on the `NamespaceModule` being updated. + An object where the defined keys will be set on the `MerkleStoreModule` being updated. """ - namespaceModulePatch: NamespaceModulePatch! + merkleStoreModulePatch: MerkleStoreModulePatch! } """ -Represents an update to a `NamespaceModule`. Fields that are set will be updated. +Represents an update to a `MerkleStoreModule`. Fields that are set will be updated. """ -input NamespaceModulePatch { +input MerkleStoreModulePatch { id: UUID databaseId: UUID + entityField: String schemaId: UUID privateSchemaId: UUID publicSchemaName: String privateSchemaName: String - namespacesTableId: UUID - namespaceEventsTableId: UUID - namespacesTableName: String - namespaceEventsTableName: String + objectTableId: UUID + storeTableId: UUID + commitTableId: UUID + refTableId: UUID + prefix: String apiName: String privateApiName: String scope: String - prefix: String - entityTableId: UUID - platformNamespacesTableId: UUID - policies: JSON - provisions: JSON - defaultPermissions: [String] + functionPrefix: String + permissionKey: String + createdAt: Datetime } -"""The output of our update `ResourceModule` mutation.""" -type UpdateResourceModulePayload { +"""The output of our update `DatabaseProvisionModule` mutation.""" +type UpdateDatabaseProvisionModulePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `ResourceModule` that was updated by this mutation.""" - resourceModule: ResourceModule + """The `DatabaseProvisionModule` that was updated by this mutation.""" + databaseProvisionModule: DatabaseProvisionModule """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `ResourceModule`. May be used by Relay 1.""" - resourceModuleEdge( - """The method to use when ordering `ResourceModule`.""" - orderBy: [ResourceModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): ResourceModuleEdge + """An edge for our `DatabaseProvisionModule`. May be used by Relay 1.""" + databaseProvisionModuleEdge( + """The method to use when ordering `DatabaseProvisionModule`.""" + orderBy: [DatabaseProvisionModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): DatabaseProvisionModuleEdge } -"""All input for the `updateResourceModule` mutation.""" -input UpdateResourceModuleInput { +"""All input for the `updateDatabaseProvisionModule` mutation.""" +input UpdateDatabaseProvisionModuleInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -21419,61 +23045,98 @@ input UpdateResourceModuleInput { id: UUID! """ - An object where the defined keys will be set on the `ResourceModule` being updated. + An object where the defined keys will be set on the `DatabaseProvisionModule` being updated. """ - resourceModulePatch: ResourceModulePatch! + databaseProvisionModulePatch: DatabaseProvisionModulePatch! } """ -Represents an update to a `ResourceModule`. Fields that are set will be updated. +Represents an update to a `DatabaseProvisionModule`. Fields that are set will be updated. """ -input ResourceModulePatch { +input DatabaseProvisionModulePatch { id: UUID + + """The name for the new database""" + databaseName: String + + """UUID of the user who owns this database""" + ownerId: UUID + + """ + Subdomain prefix for the database. If null, auto-generated using unique_names + random chars + """ + subdomain: String + + """Base domain for the database (e.g., example.com)""" + domain: String + + """ + JSONB array of modules to install. Each element is either a string ("users_module") or a [name, options] tuple (["permissions_module", {"scope": "app"}]) + """ + modules: JSON + + """Additional configuration options for provisioning""" + options: JSON + + """ + When true, copies the owner user and password hash from source database to the newly provisioned database + """ + bootstrapUser: Boolean + + """Current status: pending, in_progress, completed, or failed""" + status: String + errorMessage: String + + """ + The database the owner user is copied from during bootstrap (captured from JWT context at provision time) + """ + sourceDatabaseId: UUID + + """ + Status of the deferred owner bootstrap job: not_requested, pending, completed, or failed + """ + bootstrapStatus: String + + """Error message from the most recent failed bootstrap attempt""" + bootstrapError: String + + """The ID of the provisioned database (set by trigger before RLS check)""" databaseId: UUID - schemaId: UUID - privateSchemaId: UUID - publicSchemaName: String - privateSchemaName: String - resourcesTableId: UUID - resourceEventsTableId: UUID - resourcesTableName: String - resourceEventsTableName: String - apiName: String - privateApiName: String - scope: String - prefix: String - entityTableId: UUID - namespaceModuleId: UUID - policies: JSON - provisions: JSON - defaultPermissions: [String] + createdAt: Datetime + updatedAt: Datetime + completedAt: Datetime + + """ + 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: Datetime } -"""The output of our update `StorageLogModule` mutation.""" -type UpdateStorageLogModulePayload { +"""The output of our update `FunctionInvocationModule` mutation.""" +type UpdateFunctionInvocationModulePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `StorageLogModule` that was updated by this mutation.""" - storageLogModule: StorageLogModule + """The `FunctionInvocationModule` that was updated by this mutation.""" + functionInvocationModule: FunctionInvocationModule """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `StorageLogModule`. May be used by Relay 1.""" - storageLogModuleEdge( - """The method to use when ordering `StorageLogModule`.""" - orderBy: [StorageLogModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): StorageLogModuleEdge + """An edge for our `FunctionInvocationModule`. May be used by Relay 1.""" + functionInvocationModuleEdge( + """The method to use when ordering `FunctionInvocationModule`.""" + orderBy: [FunctionInvocationModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): FunctionInvocationModuleEdge } -"""All input for the `updateStorageLogModule` mutation.""" -input UpdateStorageLogModuleInput { +"""All input for the `updateFunctionInvocationModule` mutation.""" +input UpdateFunctionInvocationModuleInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -21482,61 +23145,61 @@ input UpdateStorageLogModuleInput { id: UUID! """ - An object where the defined keys will be set on the `StorageLogModule` being updated. + An object where the defined keys will be set on the `FunctionInvocationModule` being updated. """ - storageLogModulePatch: StorageLogModulePatch! + functionInvocationModulePatch: FunctionInvocationModulePatch! } """ -Represents an update to a `StorageLogModule`. Fields that are set will be updated. +Represents an update to a `FunctionInvocationModule`. Fields that are set will be updated. """ -input StorageLogModulePatch { +input FunctionInvocationModulePatch { id: UUID databaseId: UUID + entityField: String schemaId: UUID privateSchemaId: UUID publicSchemaName: String privateSchemaName: String - storageLogTableId: UUID - storageLogTableName: String - usageDailyTableId: UUID - usageDailyTableName: String - interval: String - retention: String - premake: Int - scope: String - actorFkTableId: UUID - entityFkTableId: UUID - prefix: String + invocationsTableId: UUID + executionLogsTableId: UUID + invocationsTableName: String + executionLogsTableName: String apiName: String privateApiName: String + scope: String + prefix: String + entityTableId: UUID + policies: JSON + provisions: JSON + defaultPermissions: [String] } -"""The output of our update `TransferLogModule` mutation.""" -type UpdateTransferLogModulePayload { +"""The output of our update `InvitesModule` mutation.""" +type UpdateInvitesModulePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `TransferLogModule` that was updated by this mutation.""" - transferLogModule: TransferLogModule + """The `InvitesModule` that was updated by this mutation.""" + invitesModule: InvitesModule """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `TransferLogModule`. May be used by Relay 1.""" - transferLogModuleEdge( - """The method to use when ordering `TransferLogModule`.""" - orderBy: [TransferLogModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): TransferLogModuleEdge + """An edge for our `InvitesModule`. May be used by Relay 1.""" + invitesModuleEdge( + """The method to use when ordering `InvitesModule`.""" + orderBy: [InvitesModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): InvitesModuleEdge } -"""All input for the `updateTransferLogModule` mutation.""" -input UpdateTransferLogModuleInput { +"""All input for the `updateInvitesModule` mutation.""" +input UpdateInvitesModuleInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -21545,61 +23208,61 @@ input UpdateTransferLogModuleInput { id: UUID! """ - An object where the defined keys will be set on the `TransferLogModule` being updated. + An object where the defined keys will be set on the `InvitesModule` being updated. """ - transferLogModulePatch: TransferLogModulePatch! + invitesModulePatch: InvitesModulePatch! } """ -Represents an update to a `TransferLogModule`. Fields that are set will be updated. +Represents an update to a `InvitesModule`. Fields that are set will be updated. """ -input TransferLogModulePatch { +input InvitesModulePatch { id: UUID databaseId: UUID + entityField: String schemaId: UUID privateSchemaId: UUID publicSchemaName: String privateSchemaName: String - transferLogTableId: UUID - transferLogTableName: String - usageDailyTableId: UUID - usageDailyTableName: String - interval: String - retention: String - premake: Int + emailsTableId: UUID + usersTableId: UUID + invitesTableId: UUID + claimedInvitesTableId: UUID + invitesTableName: String + claimedInvitesTableName: String + submitInviteCodeFunction: String scope: String - actorFkTableId: UUID - entityFkTableId: UUID prefix: String + entityTableId: UUID apiName: String privateApiName: String } -"""The output of our update `FunctionDeploymentModule` mutation.""" -type UpdateFunctionDeploymentModulePayload { +"""The output of our update `NamespaceModule` mutation.""" +type UpdateNamespaceModulePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `FunctionDeploymentModule` that was updated by this mutation.""" - functionDeploymentModule: FunctionDeploymentModule + """The `NamespaceModule` that was updated by this mutation.""" + namespaceModule: NamespaceModule """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `FunctionDeploymentModule`. May be used by Relay 1.""" - functionDeploymentModuleEdge( - """The method to use when ordering `FunctionDeploymentModule`.""" - orderBy: [FunctionDeploymentModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): FunctionDeploymentModuleEdge + """An edge for our `NamespaceModule`. May be used by Relay 1.""" + namespaceModuleEdge( + """The method to use when ordering `NamespaceModule`.""" + orderBy: [NamespaceModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): NamespaceModuleEdge } -"""All input for the `updateFunctionDeploymentModule` mutation.""" -input UpdateFunctionDeploymentModuleInput { +"""All input for the `updateNamespaceModule` mutation.""" +input UpdateNamespaceModuleInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -21608,32 +23271,31 @@ input UpdateFunctionDeploymentModuleInput { id: UUID! """ - An object where the defined keys will be set on the `FunctionDeploymentModule` being updated. + An object where the defined keys will be set on the `NamespaceModule` being updated. """ - functionDeploymentModulePatch: FunctionDeploymentModulePatch! + namespaceModulePatch: NamespaceModulePatch! } """ -Represents an update to a `FunctionDeploymentModule`. Fields that are set will be updated. +Represents an update to a `NamespaceModule`. Fields that are set will be updated. """ -input FunctionDeploymentModulePatch { +input NamespaceModulePatch { id: UUID databaseId: UUID + entityField: String schemaId: UUID privateSchemaId: UUID publicSchemaName: String privateSchemaName: String - deploymentsTableId: UUID - deploymentEventsTableId: UUID - deploymentsTableName: String - deploymentEventsTableName: String + namespacesTableId: UUID + namespaceEventsTableId: UUID + namespacesTableName: String + namespaceEventsTableName: String apiName: String privateApiName: String scope: String prefix: String entityTableId: UUID - functionModuleId: UUID - namespaceModuleId: UUID policies: JSON provisions: JSON defaultPermissions: [String] @@ -21704,31 +23366,31 @@ input PlansModulePatch { privateApiName: String } -"""The output of our update `BillingProviderModule` mutation.""" -type UpdateBillingProviderModulePayload { +"""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 `BillingProviderModule` that was updated by this mutation.""" - billingProviderModule: BillingProviderModule + """The `ComputeLogModule` that was updated by this mutation.""" + computeLogModule: ComputeLogModule """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `BillingProviderModule`. May be used by Relay 1.""" - billingProviderModuleEdge( - """The method to use when ordering `BillingProviderModule`.""" - orderBy: [BillingProviderModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): BillingProviderModuleEdge + """An edge for our `ComputeLogModule`. May be used by Relay 1.""" + computeLogModuleEdge( + """The method to use when ordering `ComputeLogModule`.""" + orderBy: [ComputeLogModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): ComputeLogModuleEdge } -"""All input for the `updateBillingProviderModule` mutation.""" -input UpdateBillingProviderModuleInput { +"""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. @@ -21737,64 +23399,190 @@ input UpdateBillingProviderModuleInput { id: UUID! """ - An object where the defined keys will be set on the `BillingProviderModule` being updated. + An object where the defined keys will be set on the `ComputeLogModule` being updated. """ - billingProviderModulePatch: BillingProviderModulePatch! + computeLogModulePatch: ComputeLogModulePatch! } """ -Represents an update to a `BillingProviderModule`. Fields that are set will be updated. +Represents an update to a `ComputeLogModule`. Fields that are set will be updated. """ -input BillingProviderModulePatch { +input ComputeLogModulePatch { id: UUID databaseId: UUID + entityField: String schemaId: UUID privateSchemaId: UUID - provider: String - productsTableId: UUID - pricesTableId: UUID - subscriptionsTableId: UUID - billingCustomersTableId: UUID - billingCustomersTableName: String - billingProductsTableId: UUID - billingProductsTableName: String - billingPricesTableId: UUID - billingPricesTableName: String - billingSubscriptionsTableId: UUID - billingSubscriptionsTableName: String - billingWebhookEventsTableId: UUID - billingWebhookEventsTableName: String - processBillingEventFunction: String + publicSchemaName: String + privateSchemaName: String + computeLogTableId: UUID + computeLogTableName: String + usageDailyTableId: UUID + usageDailyTableName: String + interval: String + retention: String + premake: Int + scope: String + actorFkTableId: UUID + entityFkTableId: UUID prefix: String apiName: String privateApiName: String } -"""The output of our update `DbUsageModule` mutation.""" -type UpdateDbUsageModulePayload { +"""The output of our update `InferenceLogModule` mutation.""" +type UpdateInferenceLogModulePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `DbUsageModule` that was updated by this mutation.""" - dbUsageModule: DbUsageModule + """The `InferenceLogModule` that was updated by this mutation.""" + inferenceLogModule: InferenceLogModule """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `DbUsageModule`. May be used by Relay 1.""" - dbUsageModuleEdge( - """The method to use when ordering `DbUsageModule`.""" - orderBy: [DbUsageModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): DbUsageModuleEdge + """An edge for our `InferenceLogModule`. May be used by Relay 1.""" + inferenceLogModuleEdge( + """The method to use when ordering `InferenceLogModule`.""" + orderBy: [InferenceLogModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): InferenceLogModuleEdge +} + +"""All input for the `updateInferenceLogModule` mutation.""" +input UpdateInferenceLogModuleInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + id: UUID! + + """ + An object where the defined keys will be set on the `InferenceLogModule` being updated. + """ + inferenceLogModulePatch: InferenceLogModulePatch! +} + +""" +Represents an update to a `InferenceLogModule`. Fields that are set will be updated. +""" +input InferenceLogModulePatch { + id: UUID + databaseId: UUID + entityField: String + schemaId: UUID + privateSchemaId: UUID + publicSchemaName: String + privateSchemaName: String + inferenceLogTableId: UUID + inferenceLogTableName: String + usageDailyTableId: UUID + usageDailyTableName: String + interval: String + retention: String + premake: Int + scope: String + actorFkTableId: UUID + entityFkTableId: UUID + prefix: String + apiName: String + privateApiName: String +} + +"""The output of our update `StorageLogModule` mutation.""" +type UpdateStorageLogModulePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `StorageLogModule` that was updated by this mutation.""" + storageLogModule: StorageLogModule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `StorageLogModule`. May be used by Relay 1.""" + storageLogModuleEdge( + """The method to use when ordering `StorageLogModule`.""" + orderBy: [StorageLogModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): StorageLogModuleEdge +} + +"""All input for the `updateStorageLogModule` mutation.""" +input UpdateStorageLogModuleInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + id: UUID! + + """ + An object where the defined keys will be set on the `StorageLogModule` being updated. + """ + storageLogModulePatch: StorageLogModulePatch! +} + +""" +Represents an update to a `StorageLogModule`. Fields that are set will be updated. +""" +input StorageLogModulePatch { + id: UUID + databaseId: UUID + entityField: String + schemaId: UUID + privateSchemaId: UUID + publicSchemaName: String + privateSchemaName: String + storageLogTableId: UUID + storageLogTableName: String + usageDailyTableId: UUID + usageDailyTableName: String + interval: String + retention: String + premake: Int + scope: String + actorFkTableId: UUID + entityFkTableId: UUID + prefix: String + apiName: String + privateApiName: String +} + +"""The output of our update `TransferLogModule` mutation.""" +type UpdateTransferLogModulePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `TransferLogModule` that was updated by this mutation.""" + transferLogModule: TransferLogModule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `TransferLogModule`. May be used by Relay 1.""" + transferLogModuleEdge( + """The method to use when ordering `TransferLogModule`.""" + orderBy: [TransferLogModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): TransferLogModuleEdge } -"""All input for the `updateDbUsageModule` mutation.""" -input UpdateDbUsageModuleInput { +"""All input for the `updateTransferLogModule` mutation.""" +input UpdateTransferLogModuleInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -21803,64 +23591,62 @@ input UpdateDbUsageModuleInput { id: UUID! """ - An object where the defined keys will be set on the `DbUsageModule` being updated. + An object where the defined keys will be set on the `TransferLogModule` being updated. """ - dbUsageModulePatch: DbUsageModulePatch! + transferLogModulePatch: TransferLogModulePatch! } """ -Represents an update to a `DbUsageModule`. Fields that are set will be updated. +Represents an update to a `TransferLogModule`. Fields that are set will be updated. """ -input DbUsageModulePatch { +input TransferLogModulePatch { id: UUID databaseId: UUID + entityField: String schemaId: UUID privateSchemaId: UUID publicSchemaName: String privateSchemaName: String - tableStatsLogTableId: UUID - tableStatsLogTableName: String - tableStatsDailyTableId: UUID - tableStatsDailyTableName: String - queryStatsLogTableId: UUID - queryStatsLogTableName: String - queryStatsDailyTableId: UUID - queryStatsDailyTableName: String + transferLogTableId: UUID + transferLogTableName: String + usageDailyTableId: UUID + usageDailyTableName: String interval: String retention: String premake: Int scope: String + actorFkTableId: UUID + entityFkTableId: UUID prefix: String - defaultPermissions: [String] apiName: String privateApiName: String } -"""The output of our update `GraphExecutionModule` mutation.""" -type UpdateGraphExecutionModulePayload { +"""The output of our update `BillingProviderModule` mutation.""" +type UpdateBillingProviderModulePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `GraphExecutionModule` that was updated by this mutation.""" - graphExecutionModule: GraphExecutionModule + """The `BillingProviderModule` that was updated by this mutation.""" + billingProviderModule: BillingProviderModule """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `GraphExecutionModule`. May be used by Relay 1.""" - graphExecutionModuleEdge( - """The method to use when ordering `GraphExecutionModule`.""" - orderBy: [GraphExecutionModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): GraphExecutionModuleEdge + """An edge for our `BillingProviderModule`. May be used by Relay 1.""" + billingProviderModuleEdge( + """The method to use when ordering `BillingProviderModule`.""" + orderBy: [BillingProviderModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): BillingProviderModuleEdge } -"""All input for the `updateGraphExecutionModule` mutation.""" -input UpdateGraphExecutionModuleInput { +"""All input for the `updateBillingProviderModule` mutation.""" +input UpdateBillingProviderModuleInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -21869,64 +23655,64 @@ input UpdateGraphExecutionModuleInput { id: UUID! """ - An object where the defined keys will be set on the `GraphExecutionModule` being updated. + An object where the defined keys will be set on the `BillingProviderModule` being updated. """ - graphExecutionModulePatch: GraphExecutionModulePatch! + billingProviderModulePatch: BillingProviderModulePatch! } """ -Represents an update to a `GraphExecutionModule`. Fields that are set will be updated. +Represents an update to a `BillingProviderModule`. Fields that are set will be updated. """ -input GraphExecutionModulePatch { +input BillingProviderModulePatch { id: UUID databaseId: UUID schemaId: UUID privateSchemaId: UUID - publicSchemaName: String - privateSchemaName: String - graphModuleId: UUID - scope: String + provider: String + productsTableId: UUID + pricesTableId: UUID + subscriptionsTableId: UUID + billingCustomersTableId: UUID + billingCustomersTableName: String + billingProductsTableId: UUID + billingProductsTableName: String + billingPricesTableId: UUID + billingPricesTableName: String + billingSubscriptionsTableId: UUID + billingSubscriptionsTableName: String + billingWebhookEventsTableId: UUID + billingWebhookEventsTableName: String + processBillingEventFunction: String prefix: String - executionsTableId: UUID - outputsTableId: UUID - nodeStatesTableId: UUID - executionsTableName: String - outputsTableName: String - nodeStatesTableName: String apiName: String privateApiName: String - entityTableId: UUID - policies: JSON - provisions: JSON - defaultPermissions: [String] - createdAt: Datetime } -"""The output of our update `HierarchyModule` mutation.""" -type UpdateHierarchyModulePayload { +"""The output of our update `FunctionDeploymentModule` mutation.""" +type UpdateFunctionDeploymentModulePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `HierarchyModule` that was updated by this mutation.""" - hierarchyModule: HierarchyModule + """The `FunctionDeploymentModule` that was updated by this mutation.""" + functionDeploymentModule: FunctionDeploymentModule """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `HierarchyModule`. May be used by Relay 1.""" - hierarchyModuleEdge( - """The method to use when ordering `HierarchyModule`.""" - orderBy: [HierarchyModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): HierarchyModuleEdge + """An edge for our `FunctionDeploymentModule`. May be used by Relay 1.""" + functionDeploymentModuleEdge( + """The method to use when ordering `FunctionDeploymentModule`.""" + orderBy: [FunctionDeploymentModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): FunctionDeploymentModuleEdge } -"""All input for the `updateHierarchyModule` mutation.""" -input UpdateHierarchyModuleInput { +"""All input for the `updateFunctionDeploymentModule` mutation.""" +input UpdateFunctionDeploymentModuleInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -21935,37 +23721,36 @@ input UpdateHierarchyModuleInput { id: UUID! """ - An object where the defined keys will be set on the `HierarchyModule` being updated. + An object where the defined keys will be set on the `FunctionDeploymentModule` being updated. """ - hierarchyModulePatch: HierarchyModulePatch! + functionDeploymentModulePatch: FunctionDeploymentModulePatch! } """ -Represents an update to a `HierarchyModule`. Fields that are set will be updated. +Represents an update to a `FunctionDeploymentModule`. Fields that are set will be updated. """ -input HierarchyModulePatch { +input FunctionDeploymentModulePatch { id: UUID databaseId: UUID + entityField: String schemaId: UUID privateSchemaId: UUID - chartEdgesTableId: UUID - chartEdgesTableName: String - hierarchySprtTableId: UUID - hierarchySprtTableName: String - chartEdgeGrantsTableId: UUID - chartEdgeGrantsTableName: String - entityTableId: UUID - usersTableId: UUID + publicSchemaName: String + privateSchemaName: String + deploymentsTableId: UUID + deploymentEventsTableId: UUID + deploymentsTableName: String + deploymentEventsTableName: String + apiName: String + privateApiName: String scope: String prefix: String - privateSchemaName: String - sprtTableName: String - rebuildHierarchyFunction: String - getSubordinatesFunction: String - getManagersFunction: String - isManagerOfFunction: String + entityTableId: UUID + functionModuleId: UUID + namespaceModuleId: UUID + policies: JSON + provisions: JSON defaultPermissions: [String] - createdAt: Datetime } """The output of our update `PermissionsModule` mutation.""" @@ -22012,6 +23797,7 @@ Represents an update to a `PermissionsModule`. Fields that are set will be updat input PermissionsModulePatch { id: UUID databaseId: UUID + entityField: String schemaId: UUID privateSchemaId: UUID publicSchemaName: String @@ -22033,31 +23819,31 @@ input PermissionsModulePatch { privateApiName: String } -"""The output of our update `NotificationsModule` mutation.""" -type UpdateNotificationsModulePayload { +"""The output of our update `GraphExecutionModule` mutation.""" +type UpdateGraphExecutionModulePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `NotificationsModule` that was updated by this mutation.""" - notificationsModule: NotificationsModule + """The `GraphExecutionModule` that was updated by this mutation.""" + graphExecutionModule: GraphExecutionModule """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `NotificationsModule`. May be used by Relay 1.""" - notificationsModuleEdge( - """The method to use when ordering `NotificationsModule`.""" - orderBy: [NotificationsModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): NotificationsModuleEdge + """An edge for our `GraphExecutionModule`. May be used by Relay 1.""" + graphExecutionModuleEdge( + """The method to use when ordering `GraphExecutionModule`.""" + orderBy: [GraphExecutionModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): GraphExecutionModuleEdge } -"""All input for the `updateNotificationsModule` mutation.""" -input UpdateNotificationsModuleInput { +"""All input for the `updateGraphExecutionModule` mutation.""" +input UpdateGraphExecutionModuleInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -22066,65 +23852,65 @@ input UpdateNotificationsModuleInput { id: UUID! """ - An object where the defined keys will be set on the `NotificationsModule` being updated. + An object where the defined keys will be set on the `GraphExecutionModule` being updated. """ - notificationsModulePatch: NotificationsModulePatch! + graphExecutionModulePatch: GraphExecutionModulePatch! } """ -Represents an update to a `NotificationsModule`. Fields that are set will be updated. +Represents an update to a `GraphExecutionModule`. Fields that are set will be updated. """ -input NotificationsModulePatch { +input GraphExecutionModulePatch { id: UUID databaseId: UUID + entityField: String schemaId: UUID privateSchemaId: UUID publicSchemaName: String privateSchemaName: String - notificationsTableId: UUID - readStateTableId: UUID - preferencesTableId: UUID - channelsTableId: UUID - deliveryLogTableId: UUID - suppressionsTableId: UUID - ownerTableId: UUID - userSettingsTableId: UUID - organizationSettingsTableId: UUID - hasChannels: Boolean - hasPreferences: Boolean - hasSettingsExtension: Boolean - hasDigestMetadata: Boolean - hasSubscriptions: Boolean - defaultPermissions: [String] + graphModuleId: UUID + scope: String + prefix: String + executionsTableId: UUID + outputsTableId: UUID + nodeStatesTableId: UUID + executionsTableName: String + outputsTableName: String + nodeStatesTableName: String apiName: String privateApiName: String + entityTableId: UUID + policies: JSON + provisions: JSON + defaultPermissions: [String] + createdAt: Datetime } -"""The output of our update `ProfilesModule` mutation.""" -type UpdateProfilesModulePayload { +"""The output of our update `HierarchyModule` mutation.""" +type UpdateHierarchyModulePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `ProfilesModule` that was updated by this mutation.""" - profilesModule: ProfilesModule + """The `HierarchyModule` that was updated by this mutation.""" + hierarchyModule: HierarchyModule """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `ProfilesModule`. May be used by Relay 1.""" - profilesModuleEdge( - """The method to use when ordering `ProfilesModule`.""" - orderBy: [ProfilesModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): ProfilesModuleEdge + """An edge for our `HierarchyModule`. May be used by Relay 1.""" + hierarchyModuleEdge( + """The method to use when ordering `HierarchyModule`.""" + orderBy: [HierarchyModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): HierarchyModuleEdge } -"""All input for the `updateProfilesModule` mutation.""" -input UpdateProfilesModuleInput { +"""All input for the `updateHierarchyModule` mutation.""" +input UpdateHierarchyModuleInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -22133,66 +23919,65 @@ input UpdateProfilesModuleInput { id: UUID! """ - An object where the defined keys will be set on the `ProfilesModule` being updated. + An object where the defined keys will be set on the `HierarchyModule` being updated. """ - profilesModulePatch: ProfilesModulePatch! + hierarchyModulePatch: HierarchyModulePatch! } """ -Represents an update to a `ProfilesModule`. Fields that are set will be updated. +Represents an update to a `HierarchyModule`. Fields that are set will be updated. """ -input ProfilesModulePatch { +input HierarchyModulePatch { id: UUID databaseId: UUID - schemaId: UUID - privateSchemaId: UUID - publicSchemaName: String - privateSchemaName: String - tableId: UUID - tableName: String - profilePermissionsTableId: UUID - profilePermissionsTableName: String - profileGrantsTableId: UUID - profileGrantsTableName: String - profileDefinitionGrantsTableId: UUID - profileDefinitionGrantsTableName: String - profileTemplatesTableId: UUID - profileTemplatesTableName: String + entityField: String + schemaId: UUID + privateSchemaId: UUID + chartEdgesTableId: UUID + chartEdgesTableName: String + hierarchySprtTableId: UUID + hierarchySprtTableName: String + chartEdgeGrantsTableId: UUID + chartEdgeGrantsTableName: String + entityTableId: UUID + usersTableId: UUID scope: String prefix: String - entityTableId: UUID - actorTableId: UUID - permissionsTableId: UUID - membershipsTableId: UUID - apiName: String - privateApiName: String + privateSchemaName: String + sprtTableName: String + rebuildHierarchyFunction: String + getSubordinatesFunction: String + getManagersFunction: String + isManagerOfFunction: String + defaultPermissions: [String] + createdAt: Datetime } -"""The output of our update `BillingModule` mutation.""" -type UpdateBillingModulePayload { +"""The output of our update `NotificationsModule` mutation.""" +type UpdateNotificationsModulePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `BillingModule` that was updated by this mutation.""" - billingModule: BillingModule + """The `NotificationsModule` that was updated by this mutation.""" + notificationsModule: NotificationsModule """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `BillingModule`. May be used by Relay 1.""" - billingModuleEdge( - """The method to use when ordering `BillingModule`.""" - orderBy: [BillingModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): BillingModuleEdge + """An edge for our `NotificationsModule`. May be used by Relay 1.""" + notificationsModuleEdge( + """The method to use when ordering `NotificationsModule`.""" + orderBy: [NotificationsModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): NotificationsModuleEdge } -"""All input for the `updateBillingModule` mutation.""" -input UpdateBillingModuleInput { +"""All input for the `updateNotificationsModule` mutation.""" +input UpdateNotificationsModuleInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -22201,37 +23986,36 @@ input UpdateBillingModuleInput { id: UUID! """ - An object where the defined keys will be set on the `BillingModule` being updated. + An object where the defined keys will be set on the `NotificationsModule` being updated. """ - billingModulePatch: BillingModulePatch! + notificationsModulePatch: NotificationsModulePatch! } """ -Represents an update to a `BillingModule`. Fields that are set will be updated. +Represents an update to a `NotificationsModule`. Fields that are set will be updated. """ -input BillingModulePatch { +input NotificationsModulePatch { id: UUID databaseId: UUID + entityField: String schemaId: UUID privateSchemaId: UUID publicSchemaName: String privateSchemaName: String - metersTableId: UUID - metersTableName: String - planSubscriptionsTableId: UUID - planSubscriptionsTableName: String - ledgerTableId: UUID - ledgerTableName: String - balancesTableId: UUID - balancesTableName: String - meterCreditsTableId: UUID - meterCreditsTableName: String - meterSourcesTableId: UUID - meterSourcesTableName: String - meterDefaultsTableId: UUID - meterDefaultsTableName: String - recordUsageFunction: String - prefix: String + notificationsTableId: UUID + readStateTableId: UUID + preferencesTableId: UUID + channelsTableId: UUID + deliveryLogTableId: UUID + suppressionsTableId: UUID + ownerTableId: UUID + userSettingsTableId: UUID + organizationSettingsTableId: UUID + hasChannels: Boolean + hasPreferences: Boolean + hasSettingsExtension: Boolean + hasDigestMetadata: Boolean + hasSubscriptions: Boolean defaultPermissions: [String] apiName: String privateApiName: String @@ -22564,20 +24348,230 @@ input BlueprintTemplatePatch { forkedFromId: UUID """ - UUIDv5 Merkle root hash of the definition. Computed automatically via trigger from the ordered table_hashes. Used for content-addressable deduplication, provenance tracking, and cross-blueprint structural comparison. NULL columns are backend-computed — clients should never set this directly. + UUIDv5 Merkle root hash of the definition. Computed automatically via trigger from the ordered table_hashes. Used for content-addressable deduplication, provenance tracking, and cross-blueprint structural comparison. NULL columns are backend-computed — clients should never set this directly. + """ + definitionHash: UUID + + """ + JSONB map of table ref names to their individual UUIDv5 content hashes (e.g. {"products": "uuid", "categories": "uuid"}). Each table hash is computed from the canonical jsonb::text of the table entry. Enables structural comparison at the table level across different blueprints. Backend-computed via trigger. + """ + tableHashes: JSON + + """Timestamp when this template was created.""" + createdAt: Datetime + + """Timestamp when this template was last modified.""" + updatedAt: Datetime +} + +"""The output of our update `ProfilesModule` mutation.""" +type UpdateProfilesModulePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `ProfilesModule` that was updated by this mutation.""" + profilesModule: ProfilesModule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `ProfilesModule`. May be used by Relay 1.""" + profilesModuleEdge( + """The method to use when ordering `ProfilesModule`.""" + orderBy: [ProfilesModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): ProfilesModuleEdge +} + +"""All input for the `updateProfilesModule` mutation.""" +input UpdateProfilesModuleInput { + """ + An arbitrary string value 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 `ProfilesModule` being updated. + """ + profilesModulePatch: ProfilesModulePatch! +} + +""" +Represents an update to a `ProfilesModule`. Fields that are set will be updated. +""" +input ProfilesModulePatch { + id: UUID + databaseId: UUID + entityField: String + schemaId: UUID + privateSchemaId: UUID + publicSchemaName: String + privateSchemaName: String + tableId: UUID + tableName: String + profilePermissionsTableId: UUID + profilePermissionsTableName: String + profileGrantsTableId: UUID + profileGrantsTableName: String + profileDefinitionGrantsTableId: UUID + profileDefinitionGrantsTableName: String + profileTemplatesTableId: UUID + profileTemplatesTableName: String + scope: String + prefix: String + entityTableId: UUID + actorTableId: UUID + permissionsTableId: UUID + membershipsTableId: UUID + apiName: String + privateApiName: String +} + +"""The output of our update `BillingModule` mutation.""" +type UpdateBillingModulePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `BillingModule` that was updated by this mutation.""" + billingModule: BillingModule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `BillingModule`. May be used by Relay 1.""" + billingModuleEdge( + """The method to use when ordering `BillingModule`.""" + orderBy: [BillingModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): BillingModuleEdge +} + +"""All input for the `updateBillingModule` mutation.""" +input UpdateBillingModuleInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + id: UUID! + + """ + An object where the defined keys will be set on the `BillingModule` being updated. + """ + billingModulePatch: BillingModulePatch! +} + +""" +Represents an update to a `BillingModule`. Fields that are set will be updated. +""" +input BillingModulePatch { + id: UUID + databaseId: UUID + schemaId: UUID + privateSchemaId: UUID + publicSchemaName: String + privateSchemaName: String + metersTableId: UUID + metersTableName: String + planSubscriptionsTableId: UUID + planSubscriptionsTableName: String + ledgerTableId: UUID + ledgerTableName: String + balancesTableId: UUID + balancesTableName: String + meterCreditsTableId: UUID + meterCreditsTableName: String + meterSourcesTableId: UUID + meterSourcesTableName: String + meterDefaultsTableId: UUID + meterDefaultsTableName: String + recordUsageFunction: String + sweepExpiredSubscriptionsFunction: String + rollupUsageSummaryFunction: String + prefix: String + defaultPermissions: [String] + apiName: String + privateApiName: String +} + +"""The output of our update `ResourceModule` mutation.""" +type UpdateResourceModulePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `ResourceModule` that was updated by this mutation.""" + resourceModule: ResourceModule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `ResourceModule`. May be used by Relay 1.""" + resourceModuleEdge( + """The method to use when ordering `ResourceModule`.""" + orderBy: [ResourceModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): ResourceModuleEdge +} + +"""All input for the `updateResourceModule` mutation.""" +input UpdateResourceModuleInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. """ - definitionHash: UUID + clientMutationId: String + id: UUID! """ - JSONB map of table ref names to their individual UUIDv5 content hashes (e.g. {"products": "uuid", "categories": "uuid"}). Each table hash is computed from the canonical jsonb::text of the table entry. Enables structural comparison at the table level across different blueprints. Backend-computed via trigger. + An object where the defined keys will be set on the `ResourceModule` being updated. """ - tableHashes: JSON - - """Timestamp when this template was created.""" - createdAt: Datetime + resourceModulePatch: ResourceModulePatch! +} - """Timestamp when this template was last modified.""" - updatedAt: Datetime +""" +Represents an update to a `ResourceModule`. Fields that are set will be updated. +""" +input ResourceModulePatch { + id: UUID + databaseId: UUID + entityField: String + schemaId: UUID + privateSchemaId: UUID + publicSchemaName: String + privateSchemaName: String + resourcesTableId: UUID + resourceEventsTableId: UUID + resourceStatusChecksTableId: UUID + resourceDefinitionsTableId: UUID + resourcesTableName: String + resourceEventsTableName: String + resourceStatusChecksTableName: String + resourceDefinitionsTableName: String + resolvedRequirementsViewName: String + requirementsStateViewName: String + apiName: String + privateApiName: String + scope: String + prefix: String + entityTableId: UUID + namespaceModuleId: UUID + policies: JSON + provisions: JSON + defaultPermissions: [String] } """The output of our update `UserAuthModule` mutation.""" @@ -22652,6 +24646,77 @@ input UserAuthModulePatch { privateApiName: String } +"""The output of our update `DbUsageModule` mutation.""" +type UpdateDbUsageModulePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `DbUsageModule` that was updated by this mutation.""" + dbUsageModule: DbUsageModule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `DbUsageModule`. May be used by Relay 1.""" + dbUsageModuleEdge( + """The method to use when ordering `DbUsageModule`.""" + orderBy: [DbUsageModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): DbUsageModuleEdge +} + +"""All input for the `updateDbUsageModule` mutation.""" +input UpdateDbUsageModuleInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + id: UUID! + + """ + An object where the defined keys will be set on the `DbUsageModule` being updated. + """ + dbUsageModulePatch: DbUsageModulePatch! +} + +""" +Represents an update to a `DbUsageModule`. Fields that are set will be updated. +""" +input DbUsageModulePatch { + id: UUID + databaseId: UUID + entityField: String + schemaId: UUID + privateSchemaId: UUID + publicSchemaName: String + privateSchemaName: String + tableStatsLogTableId: UUID + tableStatsLogTableName: String + tableStatsDailyTableId: UUID + tableStatsDailyTableName: String + queryStatsLogTableId: UUID + queryStatsLogTableName: String + queryStatsDailyTableId: UUID + queryStatsDailyTableName: String + collectDbTableStatsFunction: String + collectDbQueryStatsFunction: String + rollupDbTableStatsDailyFunction: String + rollupDbQueryStatsDailyFunction: String + interval: String + retention: String + premake: Int + scope: String + prefix: String + defaultPermissions: [String] + apiName: String + privateApiName: String +} + """The output of our update `AgentModule` mutation.""" type UpdateAgentModulePayload { """ @@ -22696,6 +24761,7 @@ Represents an update to a `AgentModule`. Fields that are set will be updated. input AgentModulePatch { id: UUID databaseId: UUID + entityField: String schemaId: UUID privateSchemaId: UUID publicSchemaName: String @@ -22775,6 +24841,7 @@ Represents an update to a `LimitsModule`. Fields that are set will be updated. input LimitsModulePatch { id: UUID databaseId: UUID + entityField: String schemaId: UUID privateSchemaId: UUID publicSchemaName: String @@ -22811,91 +24878,6 @@ input LimitsModulePatch { privateApiName: String } -"""The output of our update `MembershipsModule` mutation.""" -type UpdateMembershipsModulePayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `MembershipsModule` that was updated by this mutation.""" - membershipsModule: MembershipsModule - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `MembershipsModule`. May be used by Relay 1.""" - membershipsModuleEdge( - """The method to use when ordering `MembershipsModule`.""" - orderBy: [MembershipsModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): MembershipsModuleEdge -} - -"""All input for the `updateMembershipsModule` mutation.""" -input UpdateMembershipsModuleInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! - - """ - An object where the defined keys will be set on the `MembershipsModule` being updated. - """ - membershipsModulePatch: MembershipsModulePatch! -} - -""" -Represents an update to a `MembershipsModule`. Fields that are set will be updated. -""" -input MembershipsModulePatch { - id: UUID - databaseId: UUID - schemaId: UUID - privateSchemaId: UUID - publicSchemaName: String - privateSchemaName: String - membershipsTableId: UUID - membershipsTableName: String - membersTableId: UUID - membersTableName: String - membershipDefaultsTableId: UUID - membershipDefaultsTableName: String - membershipSettingsTableId: UUID - membershipSettingsTableName: String - grantsTableId: UUID - grantsTableName: String - actorTableId: UUID - limitsTableId: UUID - defaultLimitsTableId: UUID - permissionsTableId: UUID - defaultPermissionsTableId: UUID - sprtTableId: UUID - adminGrantsTableId: UUID - adminGrantsTableName: String - ownerGrantsTableId: UUID - ownerGrantsTableName: String - scope: String - prefix: String - entityTableId: UUID - entityTableOwnerId: UUID - getOrgFn: String - actorMaskCheck: String - actorPermCheck: String - entityIdsByMask: String - entityIdsByPerm: String - entityIdsFunction: String - memberProfilesTableId: UUID - permissionDefaultPermissionsTableId: UUID - permissionDefaultGrantsTableId: UUID - apiName: String - privateApiName: String -} - """The output of our update `EntityTypeProvision` mutation.""" type UpdateEntityTypeProvisionPayload { """ @@ -23225,7 +25207,6 @@ input EntityTypeProvisionPatch { outDefinitionsTableId: UUID outInvocationsTableId: UUID outExecutionLogsTableId: UUID - outSecretDefinitionsTableId: UUID outGraphModuleId: UUID outGraphsTableId: UUID outAgentModuleId: UUID @@ -23288,6 +25269,7 @@ input StorageModulePatch { policies: JSON provisions: JSON entityTableId: UUID + entityField: String endpoint: String publicUrlPrefix: String provider: String @@ -23314,6 +25296,92 @@ input StorageModulePatch { privateApiName: String } +"""The output of our update `MembershipsModule` mutation.""" +type UpdateMembershipsModulePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `MembershipsModule` that was updated by this mutation.""" + membershipsModule: MembershipsModule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `MembershipsModule`. May be used by Relay 1.""" + membershipsModuleEdge( + """The method to use when ordering `MembershipsModule`.""" + orderBy: [MembershipsModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): MembershipsModuleEdge +} + +"""All input for the `updateMembershipsModule` mutation.""" +input UpdateMembershipsModuleInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + id: UUID! + + """ + An object where the defined keys will be set on the `MembershipsModule` being updated. + """ + membershipsModulePatch: MembershipsModulePatch! +} + +""" +Represents an update to a `MembershipsModule`. Fields that are set will be updated. +""" +input MembershipsModulePatch { + id: UUID + databaseId: UUID + entityField: String + schemaId: UUID + privateSchemaId: UUID + publicSchemaName: String + privateSchemaName: String + membershipsTableId: UUID + membershipsTableName: String + membersTableId: UUID + membersTableName: String + membershipDefaultsTableId: UUID + membershipDefaultsTableName: String + membershipSettingsTableId: UUID + membershipSettingsTableName: String + grantsTableId: UUID + grantsTableName: String + actorTableId: UUID + limitsTableId: UUID + defaultLimitsTableId: UUID + permissionsTableId: UUID + defaultPermissionsTableId: UUID + sprtTableId: UUID + adminGrantsTableId: UUID + adminGrantsTableName: String + ownerGrantsTableId: UUID + ownerGrantsTableName: String + scope: String + prefix: String + entityTableId: UUID + entityTableOwnerId: UUID + getOrgFn: String + actorMaskCheck: String + actorPermCheck: String + entityIdsByMask: String + entityIdsByPerm: String + entityIdsFunction: String + memberProfilesTableId: UUID + permissionDefaultPermissionsTableId: UUID + permissionDefaultGrantsTableId: UUID + apiName: String + privateApiName: String +} + """The output of our update `EventsModule` mutation.""" type UpdateEventsModulePayload { """ @@ -23358,6 +25426,7 @@ Represents an update to a `EventsModule`. Fields that are set will be updated. input EventsModulePatch { id: UUID databaseId: UUID + entityField: String schemaId: UUID privateSchemaId: UUID publicSchemaName: String @@ -23384,7 +25453,6 @@ input EventsModulePatch { tgEventBool: String upsertAggregate: String tgUpdateAggregates: String - pruneEvents: String stepsRequired: String levelAchieved: String tgCheckAchievements: String @@ -23468,31 +25536,262 @@ input DeleteMembershipTypesModuleInput { id: UUID! } -"""The output of our delete `UserStateModule` mutation.""" -type DeleteUserStateModulePayload { +"""The output of our delete `SessionSecretsModule` mutation.""" +type DeleteSessionSecretsModulePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `SessionSecretsModule` that was deleted by this mutation.""" + sessionSecretsModule: SessionSecretsModule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `SessionSecretsModule`. May be used by Relay 1.""" + sessionSecretsModuleEdge( + """The method to use when ordering `SessionSecretsModule`.""" + orderBy: [SessionSecretsModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): SessionSecretsModuleEdge +} + +"""All input for the `deleteSessionSecretsModule` mutation.""" +input DeleteSessionSecretsModuleInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + id: UUID! +} + +"""The output of our delete `DevicesModule` mutation.""" +type DeleteDevicesModulePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `DevicesModule` that was deleted by this mutation.""" + devicesModule: DevicesModule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `DevicesModule`. May be used by Relay 1.""" + devicesModuleEdge( + """The method to use when ordering `DevicesModule`.""" + orderBy: [DevicesModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): DevicesModuleEdge +} + +"""All input for the `deleteDevicesModule` mutation.""" +input DeleteDevicesModuleInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + id: UUID! +} + +"""The output of our delete `I18NModule` mutation.""" +type DeleteI18NModulePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `I18NModule` that was deleted by this mutation.""" + i18NModule: I18NModule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `I18NModule`. May be used by Relay 1.""" + i18NModuleEdge( + """The method to use when ordering `I18NModule`.""" + orderBy: [I18NModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): I18NModuleEdge +} + +"""All input for the `deleteI18NModule` mutation.""" +input DeleteI18NModuleInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + id: UUID! +} + +"""The output of our delete `UserSettingsModule` mutation.""" +type DeleteUserSettingsModulePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `UserSettingsModule` that was deleted by this mutation.""" + userSettingsModule: UserSettingsModule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `UserSettingsModule`. May be used by Relay 1.""" + userSettingsModuleEdge( + """The method to use when ordering `UserSettingsModule`.""" + orderBy: [UserSettingsModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): UserSettingsModuleEdge +} + +"""All input for the `deleteUserSettingsModule` mutation.""" +input DeleteUserSettingsModuleInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + id: UUID! +} + +"""The output of our delete `UserStateModule` mutation.""" +type DeleteUserStateModulePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `UserStateModule` that was deleted by this mutation.""" + userStateModule: UserStateModule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `UserStateModule`. May be used by Relay 1.""" + userStateModuleEdge( + """The method to use when ordering `UserStateModule`.""" + orderBy: [UserStateModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): UserStateModuleEdge +} + +"""All input for the `deleteUserStateModule` mutation.""" +input DeleteUserStateModuleInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + id: UUID! +} + +"""The output of our delete `UserCredentialsModule` mutation.""" +type DeleteUserCredentialsModulePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `UserCredentialsModule` that was deleted by this mutation.""" + userCredentialsModule: UserCredentialsModule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `UserCredentialsModule`. May be used by Relay 1.""" + userCredentialsModuleEdge( + """The method to use when ordering `UserCredentialsModule`.""" + orderBy: [UserCredentialsModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): UserCredentialsModuleEdge +} + +"""All input for the `deleteUserCredentialsModule` mutation.""" +input DeleteUserCredentialsModuleInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + id: UUID! +} + +"""The output of our delete `ConnectedAccountsModule` mutation.""" +type DeleteConnectedAccountsModulePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `ConnectedAccountsModule` that was deleted by this mutation.""" + connectedAccountsModule: ConnectedAccountsModule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `ConnectedAccountsModule`. May be used by Relay 1.""" + connectedAccountsModuleEdge( + """The method to use when ordering `ConnectedAccountsModule`.""" + orderBy: [ConnectedAccountsModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): ConnectedAccountsModuleEdge +} + +"""All input for the `deleteConnectedAccountsModule` mutation.""" +input DeleteConnectedAccountsModuleInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + id: UUID! +} + +"""The output of our delete `EmailsModule` mutation.""" +type DeleteEmailsModulePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `UserStateModule` that was deleted by this mutation.""" - userStateModule: UserStateModule + """The `EmailsModule` that was deleted by this mutation.""" + emailsModule: EmailsModule """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `UserStateModule`. May be used by Relay 1.""" - userStateModuleEdge( - """The method to use when ordering `UserStateModule`.""" - orderBy: [UserStateModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): UserStateModuleEdge + """An edge for our `EmailsModule`. May be used by Relay 1.""" + emailsModuleEdge( + """The method to use when ordering `EmailsModule`.""" + orderBy: [EmailsModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): EmailsModuleEdge } -"""All input for the `deleteUserStateModule` mutation.""" -input DeleteUserStateModuleInput { +"""All input for the `deleteEmailsModule` mutation.""" +input DeleteEmailsModuleInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -23501,31 +25800,31 @@ input DeleteUserStateModuleInput { id: UUID! } -"""The output of our delete `SessionSecretsModule` mutation.""" -type DeleteSessionSecretsModulePayload { +"""The output of our delete `PhoneNumbersModule` mutation.""" +type DeletePhoneNumbersModulePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `SessionSecretsModule` that was deleted by this mutation.""" - sessionSecretsModule: SessionSecretsModule + """The `PhoneNumbersModule` that was deleted by this mutation.""" + phoneNumbersModule: PhoneNumbersModule """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `SessionSecretsModule`. May be used by Relay 1.""" - sessionSecretsModuleEdge( - """The method to use when ordering `SessionSecretsModule`.""" - orderBy: [SessionSecretsModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): SessionSecretsModuleEdge + """An edge for our `PhoneNumbersModule`. May be used by Relay 1.""" + phoneNumbersModuleEdge( + """The method to use when ordering `PhoneNumbersModule`.""" + orderBy: [PhoneNumbersModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): PhoneNumbersModuleEdge } -"""All input for the `deleteSessionSecretsModule` mutation.""" -input DeleteSessionSecretsModuleInput { +"""All input for the `deletePhoneNumbersModule` mutation.""" +input DeletePhoneNumbersModuleInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -23534,31 +25833,31 @@ input DeleteSessionSecretsModuleInput { id: UUID! } -"""The output of our delete `ConfigSecretsOrgModule` mutation.""" -type DeleteConfigSecretsOrgModulePayload { +"""The output of our delete `RateLimitsModule` mutation.""" +type DeleteRateLimitsModulePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `ConfigSecretsOrgModule` that was deleted by this mutation.""" - configSecretsOrgModule: ConfigSecretsOrgModule + """The `RateLimitsModule` that was deleted by this mutation.""" + rateLimitsModule: RateLimitsModule """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `ConfigSecretsOrgModule`. May be used by Relay 1.""" - configSecretsOrgModuleEdge( - """The method to use when ordering `ConfigSecretsOrgModule`.""" - orderBy: [ConfigSecretsOrgModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): ConfigSecretsOrgModuleEdge + """An edge for our `RateLimitsModule`. May be used by Relay 1.""" + rateLimitsModuleEdge( + """The method to use when ordering `RateLimitsModule`.""" + orderBy: [RateLimitsModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): RateLimitsModuleEdge } -"""All input for the `deleteConfigSecretsOrgModule` mutation.""" -input DeleteConfigSecretsOrgModuleInput { +"""All input for the `deleteRateLimitsModule` mutation.""" +input DeleteRateLimitsModuleInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -23567,31 +25866,31 @@ input DeleteConfigSecretsOrgModuleInput { id: UUID! } -"""The output of our delete `DevicesModule` mutation.""" -type DeleteDevicesModulePayload { +"""The output of our delete `UsersModule` mutation.""" +type DeleteUsersModulePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `DevicesModule` that was deleted by this mutation.""" - devicesModule: DevicesModule + """The `UsersModule` that was deleted by this mutation.""" + usersModule: UsersModule """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `DevicesModule`. May be used by Relay 1.""" - devicesModuleEdge( - """The method to use when ordering `DevicesModule`.""" - orderBy: [DevicesModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): DevicesModuleEdge + """An edge for our `UsersModule`. May be used by Relay 1.""" + usersModuleEdge( + """The method to use when ordering `UsersModule`.""" + orderBy: [UsersModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): UsersModuleEdge } -"""All input for the `deleteDevicesModule` mutation.""" -input DeleteDevicesModuleInput { +"""All input for the `deleteUsersModule` mutation.""" +input DeleteUsersModuleInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -23600,31 +25899,31 @@ input DeleteDevicesModuleInput { id: UUID! } -"""The output of our delete `I18NModule` mutation.""" -type DeleteI18NModulePayload { +"""The output of our delete `WebauthnCredentialsModule` mutation.""" +type DeleteWebauthnCredentialsModulePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `I18NModule` that was deleted by this mutation.""" - i18NModule: I18NModule + """The `WebauthnCredentialsModule` that was deleted by this mutation.""" + webauthnCredentialsModule: WebauthnCredentialsModule """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `I18NModule`. May be used by Relay 1.""" - i18NModuleEdge( - """The method to use when ordering `I18NModule`.""" - orderBy: [I18NModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): I18NModuleEdge + """An edge for our `WebauthnCredentialsModule`. May be used by Relay 1.""" + webauthnCredentialsModuleEdge( + """The method to use when ordering `WebauthnCredentialsModule`.""" + orderBy: [WebauthnCredentialsModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): WebauthnCredentialsModuleEdge } -"""All input for the `deleteI18NModule` mutation.""" -input DeleteI18NModuleInput { +"""All input for the `deleteWebauthnCredentialsModule` mutation.""" +input DeleteWebauthnCredentialsModuleInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -23633,31 +25932,31 @@ input DeleteI18NModuleInput { id: UUID! } -"""The output of our delete `UserCredentialsModule` mutation.""" -type DeleteUserCredentialsModulePayload { +"""The output of our delete `ConfigSecretsUserModule` mutation.""" +type DeleteConfigSecretsUserModulePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `UserCredentialsModule` that was deleted by this mutation.""" - userCredentialsModule: UserCredentialsModule + """The `ConfigSecretsUserModule` that was deleted by this mutation.""" + configSecretsUserModule: ConfigSecretsUserModule """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `UserCredentialsModule`. May be used by Relay 1.""" - userCredentialsModuleEdge( - """The method to use when ordering `UserCredentialsModule`.""" - orderBy: [UserCredentialsModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): UserCredentialsModuleEdge + """An edge for our `ConfigSecretsUserModule`. May be used by Relay 1.""" + configSecretsUserModuleEdge( + """The method to use when ordering `ConfigSecretsUserModule`.""" + orderBy: [ConfigSecretsUserModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): ConfigSecretsUserModuleEdge } -"""All input for the `deleteUserCredentialsModule` mutation.""" -input DeleteUserCredentialsModuleInput { +"""All input for the `deleteConfigSecretsUserModule` mutation.""" +input DeleteConfigSecretsUserModuleInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -23666,31 +25965,31 @@ input DeleteUserCredentialsModuleInput { id: UUID! } -"""The output of our delete `UserSettingsModule` mutation.""" -type DeleteUserSettingsModulePayload { +"""The output of our delete `CryptoAddressesModule` mutation.""" +type DeleteCryptoAddressesModulePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `UserSettingsModule` that was deleted by this mutation.""" - userSettingsModule: UserSettingsModule + """The `CryptoAddressesModule` that was deleted by this mutation.""" + cryptoAddressesModule: CryptoAddressesModule """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `UserSettingsModule`. May be used by Relay 1.""" - userSettingsModuleEdge( - """The method to use when ordering `UserSettingsModule`.""" - orderBy: [UserSettingsModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): UserSettingsModuleEdge + """An edge for our `CryptoAddressesModule`. May be used by Relay 1.""" + cryptoAddressesModuleEdge( + """The method to use when ordering `CryptoAddressesModule`.""" + orderBy: [CryptoAddressesModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): CryptoAddressesModuleEdge } -"""All input for the `deleteUserSettingsModule` mutation.""" -input DeleteUserSettingsModuleInput { +"""All input for the `deleteCryptoAddressesModule` mutation.""" +input DeleteCryptoAddressesModuleInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -23699,31 +25998,31 @@ input DeleteUserSettingsModuleInput { id: UUID! } -"""The output of our delete `ConfigSecretsUserModule` mutation.""" -type DeleteConfigSecretsUserModulePayload { +"""The output of our delete `DenormalizedTableField` mutation.""" +type DeleteDenormalizedTableFieldPayload { """ The exact 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 `DenormalizedTableField` that was deleted by this mutation.""" + denormalizedTableField: DenormalizedTableField """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `ConfigSecretsUserModule`. May be used by Relay 1.""" - configSecretsUserModuleEdge( - """The method to use when ordering `ConfigSecretsUserModule`.""" - orderBy: [ConfigSecretsUserModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): ConfigSecretsUserModuleEdge + """An edge for our `DenormalizedTableField`. May be used by Relay 1.""" + denormalizedTableFieldEdge( + """The method to use when ordering `DenormalizedTableField`.""" + orderBy: [DenormalizedTableFieldOrderBy!]! = [PRIMARY_KEY_ASC] + ): DenormalizedTableFieldEdge } -"""All input for the `deleteConfigSecretsUserModule` mutation.""" -input DeleteConfigSecretsUserModuleInput { +"""All input for the `deleteDenormalizedTableField` mutation.""" +input DeleteDenormalizedTableFieldInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -23732,31 +26031,31 @@ input DeleteConfigSecretsUserModuleInput { id: UUID! } -"""The output of our delete `ConnectedAccountsModule` mutation.""" -type DeleteConnectedAccountsModulePayload { +"""The output of our delete `RlsModule` mutation.""" +type DeleteRlsModulePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `ConnectedAccountsModule` that was deleted by this mutation.""" - connectedAccountsModule: ConnectedAccountsModule + """The `RlsModule` that was deleted by this mutation.""" + rlsModule: RlsModule """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `ConnectedAccountsModule`. May be used by Relay 1.""" - connectedAccountsModuleEdge( - """The method to use when ordering `ConnectedAccountsModule`.""" - orderBy: [ConnectedAccountsModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): ConnectedAccountsModuleEdge + """An edge for our `RlsModule`. May be used by Relay 1.""" + rlsModuleEdge( + """The method to use when ordering `RlsModule`.""" + orderBy: [RlsModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): RlsModuleEdge } -"""All input for the `deleteConnectedAccountsModule` mutation.""" -input DeleteConnectedAccountsModuleInput { +"""All input for the `deleteRlsModule` mutation.""" +input DeleteRlsModuleInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -23765,64 +26064,66 @@ input DeleteConnectedAccountsModuleInput { id: UUID! } -"""The output of our delete `EmailsModule` mutation.""" -type DeleteEmailsModulePayload { +"""The output of our delete `Blueprint` mutation.""" +type DeleteBlueprintPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `EmailsModule` that was deleted by this mutation.""" - emailsModule: EmailsModule + """The `Blueprint` that was deleted by this mutation.""" + blueprint: Blueprint """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `EmailsModule`. May be used by Relay 1.""" - emailsModuleEdge( - """The method to use when ordering `EmailsModule`.""" - orderBy: [EmailsModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): EmailsModuleEdge + """An edge for our `Blueprint`. May be used by Relay 1.""" + blueprintEdge( + """The method to use when ordering `Blueprint`.""" + orderBy: [BlueprintOrderBy!]! = [PRIMARY_KEY_ASC] + ): BlueprintEdge } -"""All input for the `deleteEmailsModule` mutation.""" -input DeleteEmailsModuleInput { +"""All input for the `deleteBlueprint` mutation.""" +input DeleteBlueprintInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String + + """Unique identifier for this blueprint.""" id: UUID! } -"""The output of our delete `PhoneNumbersModule` mutation.""" -type DeletePhoneNumbersModulePayload { +"""The output of our delete `CryptoAuthModule` mutation.""" +type DeleteCryptoAuthModulePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `PhoneNumbersModule` that was deleted by this mutation.""" - phoneNumbersModule: PhoneNumbersModule + """The `CryptoAuthModule` that was deleted by this mutation.""" + cryptoAuthModule: CryptoAuthModule """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `PhoneNumbersModule`. May be used by Relay 1.""" - phoneNumbersModuleEdge( - """The method to use when ordering `PhoneNumbersModule`.""" - orderBy: [PhoneNumbersModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): PhoneNumbersModuleEdge + """An edge for our `CryptoAuthModule`. May be used by Relay 1.""" + cryptoAuthModuleEdge( + """The method to use when ordering `CryptoAuthModule`.""" + orderBy: [CryptoAuthModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): CryptoAuthModuleEdge } -"""All input for the `deletePhoneNumbersModule` mutation.""" -input DeletePhoneNumbersModuleInput { +"""All input for the `deleteCryptoAuthModule` mutation.""" +input DeleteCryptoAuthModuleInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -23831,64 +26132,66 @@ input DeletePhoneNumbersModuleInput { id: UUID! } -"""The output of our delete `RateLimitsModule` mutation.""" -type DeleteRateLimitsModulePayload { +"""The output of our delete `BlueprintConstruction` mutation.""" +type DeleteBlueprintConstructionPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `RateLimitsModule` that was deleted by this mutation.""" - rateLimitsModule: RateLimitsModule + """The `BlueprintConstruction` that was deleted by this mutation.""" + blueprintConstruction: BlueprintConstruction """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `RateLimitsModule`. May be used by Relay 1.""" - rateLimitsModuleEdge( - """The method to use when ordering `RateLimitsModule`.""" - orderBy: [RateLimitsModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): RateLimitsModuleEdge + """An edge for our `BlueprintConstruction`. May be used by Relay 1.""" + blueprintConstructionEdge( + """The method to use when ordering `BlueprintConstruction`.""" + orderBy: [BlueprintConstructionOrderBy!]! = [PRIMARY_KEY_ASC] + ): BlueprintConstructionEdge } -"""All input for the `deleteRateLimitsModule` mutation.""" -input DeleteRateLimitsModuleInput { +"""All input for the `deleteBlueprintConstruction` mutation.""" +input DeleteBlueprintConstructionInput { """ An arbitrary 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 construction attempt.""" id: UUID! } -"""The output of our delete `UsersModule` mutation.""" -type DeleteUsersModulePayload { +"""The output of our delete `SessionsModule` mutation.""" +type DeleteSessionsModulePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `UsersModule` that was deleted by this mutation.""" - usersModule: UsersModule + """The `SessionsModule` that was deleted by this mutation.""" + sessionsModule: SessionsModule """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `UsersModule`. May be used by Relay 1.""" - usersModuleEdge( - """The method to use when ordering `UsersModule`.""" - orderBy: [UsersModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): UsersModuleEdge + """An edge for our `SessionsModule`. May be used by Relay 1.""" + sessionsModuleEdge( + """The method to use when ordering `SessionsModule`.""" + orderBy: [SessionsModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): SessionsModuleEdge } -"""All input for the `deleteUsersModule` mutation.""" -input DeleteUsersModuleInput { +"""All input for the `deleteSessionsModule` mutation.""" +input DeleteSessionsModuleInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -23897,64 +26200,66 @@ input DeleteUsersModuleInput { id: UUID! } -"""The output of our delete `WebauthnCredentialsModule` mutation.""" -type DeleteWebauthnCredentialsModulePayload { +"""The output of our delete `SecureTableProvision` mutation.""" +type DeleteSecureTableProvisionPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `WebauthnCredentialsModule` that was deleted by this mutation.""" - webauthnCredentialsModule: WebauthnCredentialsModule + """The `SecureTableProvision` that was deleted by this mutation.""" + secureTableProvision: SecureTableProvision """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `WebauthnCredentialsModule`. May be used by Relay 1.""" - webauthnCredentialsModuleEdge( - """The method to use when ordering `WebauthnCredentialsModule`.""" - orderBy: [WebauthnCredentialsModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): WebauthnCredentialsModuleEdge + """An edge for our `SecureTableProvision`. May be used by Relay 1.""" + secureTableProvisionEdge( + """The method to use when ordering `SecureTableProvision`.""" + orderBy: [SecureTableProvisionOrderBy!]! = [PRIMARY_KEY_ASC] + ): SecureTableProvisionEdge } -"""All input for the `deleteWebauthnCredentialsModule` mutation.""" -input DeleteWebauthnCredentialsModuleInput { +"""All input for the `deleteSecureTableProvision` mutation.""" +input DeleteSecureTableProvisionInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String + + """Unique identifier for this provision row.""" id: UUID! } -"""The output of our delete `CryptoAddressesModule` mutation.""" -type DeleteCryptoAddressesModulePayload { +"""The output of our delete `IdentityProvidersModule` mutation.""" +type DeleteIdentityProvidersModulePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `CryptoAddressesModule` that was deleted by this mutation.""" - cryptoAddressesModule: CryptoAddressesModule + """The `IdentityProvidersModule` that was deleted by this mutation.""" + identityProvidersModule: IdentityProvidersModule """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `CryptoAddressesModule`. May be used by Relay 1.""" - cryptoAddressesModuleEdge( - """The method to use when ordering `CryptoAddressesModule`.""" - orderBy: [CryptoAddressesModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): CryptoAddressesModuleEdge + """An edge for our `IdentityProvidersModule`. May be used by Relay 1.""" + identityProvidersModuleEdge( + """The method to use when ordering `IdentityProvidersModule`.""" + orderBy: [IdentityProvidersModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): IdentityProvidersModuleEdge } -"""All input for the `deleteCryptoAddressesModule` mutation.""" -input DeleteCryptoAddressesModuleInput { +"""All input for the `deleteIdentityProvidersModule` mutation.""" +input DeleteIdentityProvidersModuleInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -23963,31 +26268,31 @@ input DeleteCryptoAddressesModuleInput { id: UUID! } -"""The output of our delete `DenormalizedTableField` mutation.""" -type DeleteDenormalizedTableFieldPayload { +"""The output of our delete `IntegrationProvidersModule` mutation.""" +type DeleteIntegrationProvidersModulePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `DenormalizedTableField` that was deleted by this mutation.""" - denormalizedTableField: DenormalizedTableField + """The `IntegrationProvidersModule` that was deleted by this mutation.""" + integrationProvidersModule: IntegrationProvidersModule """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `DenormalizedTableField`. May be used by Relay 1.""" - denormalizedTableFieldEdge( - """The method to use when ordering `DenormalizedTableField`.""" - orderBy: [DenormalizedTableFieldOrderBy!]! = [PRIMARY_KEY_ASC] - ): DenormalizedTableFieldEdge + """An edge for our `IntegrationProvidersModule`. May be used by Relay 1.""" + integrationProvidersModuleEdge( + """The method to use when ordering `IntegrationProvidersModule`.""" + orderBy: [IntegrationProvidersModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): IntegrationProvidersModuleEdge } -"""All input for the `deleteDenormalizedTableField` mutation.""" -input DeleteDenormalizedTableFieldInput { +"""All input for the `deleteIntegrationProvidersModule` mutation.""" +input DeleteIntegrationProvidersModuleInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -23996,31 +26301,31 @@ input DeleteDenormalizedTableFieldInput { id: UUID! } -"""The output of our delete `IdentityProvidersModule` mutation.""" -type DeleteIdentityProvidersModulePayload { +"""The output of our delete `DbPoolConfig` mutation.""" +type DeleteDbPoolConfigPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `IdentityProvidersModule` that was deleted by this mutation.""" - identityProvidersModule: IdentityProvidersModule + """The `DbPoolConfig` that was deleted by this mutation.""" + dbPoolConfig: DbPoolConfig """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `IdentityProvidersModule`. May be used by Relay 1.""" - identityProvidersModuleEdge( - """The method to use when ordering `IdentityProvidersModule`.""" - orderBy: [IdentityProvidersModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): IdentityProvidersModuleEdge + """An edge for our `DbPoolConfig`. May be used by Relay 1.""" + dbPoolConfigEdge( + """The method to use when ordering `DbPoolConfig`.""" + orderBy: [DbPoolConfigOrderBy!]! = [PRIMARY_KEY_ASC] + ): DbPoolConfigEdge } -"""All input for the `deleteIdentityProvidersModule` mutation.""" -input DeleteIdentityProvidersModuleInput { +"""All input for the `deleteDbPoolConfig` mutation.""" +input DeleteDbPoolConfigInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -24029,31 +26334,31 @@ input DeleteIdentityProvidersModuleInput { id: UUID! } -"""The output of our delete `RlsModule` mutation.""" -type DeleteRlsModulePayload { +"""The output of our delete `RealtimeModule` mutation.""" +type DeleteRealtimeModulePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `RlsModule` that was deleted by this mutation.""" - rlsModule: RlsModule + """The `RealtimeModule` that was deleted by this mutation.""" + realtimeModule: RealtimeModule """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `RlsModule`. May be used by Relay 1.""" - rlsModuleEdge( - """The method to use when ordering `RlsModule`.""" - orderBy: [RlsModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): RlsModuleEdge + """An edge for our `RealtimeModule`. May be used by Relay 1.""" + realtimeModuleEdge( + """The method to use when ordering `RealtimeModule`.""" + orderBy: [RealtimeModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): RealtimeModuleEdge } -"""All input for the `deleteRlsModule` mutation.""" -input DeleteRlsModuleInput { +"""All input for the `deleteRealtimeModule` mutation.""" +input DeleteRealtimeModuleInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -24062,66 +26367,64 @@ input DeleteRlsModuleInput { id: UUID! } -"""The output of our delete `Blueprint` mutation.""" -type DeleteBlueprintPayload { +"""The output of our delete `InfraSecretsModule` mutation.""" +type DeleteInfraSecretsModulePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `Blueprint` that was deleted by this mutation.""" - blueprint: Blueprint + """The `InfraSecretsModule` that was deleted by this mutation.""" + infraSecretsModule: InfraSecretsModule """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `Blueprint`. May be used by Relay 1.""" - blueprintEdge( - """The method to use when ordering `Blueprint`.""" - orderBy: [BlueprintOrderBy!]! = [PRIMARY_KEY_ASC] - ): BlueprintEdge + """An edge for our `InfraSecretsModule`. May be used by Relay 1.""" + infraSecretsModuleEdge( + """The method to use when ordering `InfraSecretsModule`.""" + orderBy: [InfraSecretsModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): InfraSecretsModuleEdge } -"""All input for the `deleteBlueprint` mutation.""" -input DeleteBlueprintInput { +"""All input for the `deleteInfraSecretsModule` mutation.""" +input DeleteInfraSecretsModuleInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - - """Unique identifier for this blueprint.""" id: UUID! } -"""The output of our delete `CryptoAuthModule` mutation.""" -type DeleteCryptoAuthModulePayload { +"""The output of our delete `InternalSecretsModule` mutation.""" +type DeleteInternalSecretsModulePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `CryptoAuthModule` that was deleted by this mutation.""" - cryptoAuthModule: CryptoAuthModule + """The `InternalSecretsModule` that was deleted by this mutation.""" + internalSecretsModule: InternalSecretsModule """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `CryptoAuthModule`. May be used by Relay 1.""" - cryptoAuthModuleEdge( - """The method to use when ordering `CryptoAuthModule`.""" - orderBy: [CryptoAuthModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): CryptoAuthModuleEdge + """An edge for our `InternalSecretsModule`. May be used by Relay 1.""" + internalSecretsModuleEdge( + """The method to use when ordering `InternalSecretsModule`.""" + orderBy: [InternalSecretsModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): InternalSecretsModuleEdge } -"""All input for the `deleteCryptoAuthModule` mutation.""" -input DeleteCryptoAuthModuleInput { +"""All input for the `deleteInternalSecretsModule` mutation.""" +input DeleteInternalSecretsModuleInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -24130,66 +26433,64 @@ input DeleteCryptoAuthModuleInput { id: UUID! } -"""The output of our delete `BlueprintConstruction` mutation.""" -type DeleteBlueprintConstructionPayload { +"""The output of our delete `DbPresetModule` mutation.""" +type DeleteDbPresetModulePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `BlueprintConstruction` that was deleted by this mutation.""" - blueprintConstruction: BlueprintConstruction + """The `DbPresetModule` that was deleted by this mutation.""" + dbPresetModule: DbPresetModule """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `BlueprintConstruction`. May be used by Relay 1.""" - blueprintConstructionEdge( - """The method to use when ordering `BlueprintConstruction`.""" - orderBy: [BlueprintConstructionOrderBy!]! = [PRIMARY_KEY_ASC] - ): BlueprintConstructionEdge + """An edge for our `DbPresetModule`. May be used by Relay 1.""" + dbPresetModuleEdge( + """The method to use when ordering `DbPresetModule`.""" + orderBy: [DbPresetModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): DbPresetModuleEdge } -"""All input for the `deleteBlueprintConstruction` mutation.""" -input DeleteBlueprintConstructionInput { +"""All input for the `deleteDbPresetModule` mutation.""" +input DeleteDbPresetModuleInput { """ An arbitrary 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 construction attempt.""" id: UUID! } -"""The output of our delete `SessionsModule` mutation.""" -type DeleteSessionsModulePayload { +"""The output of our delete `RateLimitMetersModule` mutation.""" +type DeleteRateLimitMetersModulePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `SessionsModule` that was deleted by this mutation.""" - sessionsModule: SessionsModule + """The `RateLimitMetersModule` that was deleted by this mutation.""" + rateLimitMetersModule: RateLimitMetersModule """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `SessionsModule`. May be used by Relay 1.""" - sessionsModuleEdge( - """The method to use when ordering `SessionsModule`.""" - orderBy: [SessionsModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): SessionsModuleEdge + """An edge for our `RateLimitMetersModule`. May be used by Relay 1.""" + rateLimitMetersModuleEdge( + """The method to use when ordering `RateLimitMetersModule`.""" + orderBy: [RateLimitMetersModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): RateLimitMetersModuleEdge } -"""All input for the `deleteSessionsModule` mutation.""" -input DeleteSessionsModuleInput { +"""All input for the `deleteRateLimitMetersModule` mutation.""" +input DeleteRateLimitMetersModuleInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -24198,66 +26499,64 @@ input DeleteSessionsModuleInput { id: UUID! } -"""The output of our delete `SecureTableProvision` mutation.""" -type DeleteSecureTableProvisionPayload { +"""The output of our delete `InfraConfigModule` mutation.""" +type DeleteInfraConfigModulePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `SecureTableProvision` that was deleted by this mutation.""" - secureTableProvision: SecureTableProvision + """The `InfraConfigModule` that was deleted by this mutation.""" + infraConfigModule: InfraConfigModule """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `SecureTableProvision`. May be used by Relay 1.""" - secureTableProvisionEdge( - """The method to use when ordering `SecureTableProvision`.""" - orderBy: [SecureTableProvisionOrderBy!]! = [PRIMARY_KEY_ASC] - ): SecureTableProvisionEdge + """An edge for our `InfraConfigModule`. May be used by Relay 1.""" + infraConfigModuleEdge( + """The method to use when ordering `InfraConfigModule`.""" + orderBy: [InfraConfigModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): InfraConfigModuleEdge } -"""All input for the `deleteSecureTableProvision` mutation.""" -input DeleteSecureTableProvisionInput { +"""All input for the `deleteInfraConfigModule` mutation.""" +input DeleteInfraConfigModuleInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - - """Unique identifier for this provision row.""" id: UUID! } -"""The output of our delete `DatabaseProvisionModule` mutation.""" -type DeleteDatabaseProvisionModulePayload { +"""The output of our delete `WebauthnAuthModule` mutation.""" +type DeleteWebauthnAuthModulePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `DatabaseProvisionModule` that was deleted by this mutation.""" - databaseProvisionModule: DatabaseProvisionModule + """The `WebauthnAuthModule` that was deleted by this mutation.""" + webauthnAuthModule: WebauthnAuthModule """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `DatabaseProvisionModule`. May be used by Relay 1.""" - databaseProvisionModuleEdge( - """The method to use when ordering `DatabaseProvisionModule`.""" - orderBy: [DatabaseProvisionModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): DatabaseProvisionModuleEdge + """An edge for our `WebauthnAuthModule`. May be used by Relay 1.""" + webauthnAuthModuleEdge( + """The method to use when ordering `WebauthnAuthModule`.""" + orderBy: [WebauthnAuthModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): WebauthnAuthModuleEdge } -"""All input for the `deleteDatabaseProvisionModule` mutation.""" -input DeleteDatabaseProvisionModuleInput { +"""All input for the `deleteWebauthnAuthModule` mutation.""" +input DeleteWebauthnAuthModuleInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -24266,31 +26565,31 @@ input DeleteDatabaseProvisionModuleInput { id: UUID! } -"""The output of our delete `ConfigSecretsModule` mutation.""" -type DeleteConfigSecretsModulePayload { +"""The output of our delete `PrincipalAuthModule` mutation.""" +type DeletePrincipalAuthModulePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `ConfigSecretsModule` that was deleted by this mutation.""" - configSecretsModule: ConfigSecretsModule + """The `PrincipalAuthModule` that was deleted by this mutation.""" + principalAuthModule: PrincipalAuthModule """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `ConfigSecretsModule`. May be used by Relay 1.""" - configSecretsModuleEdge( - """The method to use when ordering `ConfigSecretsModule`.""" - orderBy: [ConfigSecretsModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): ConfigSecretsModuleEdge + """An edge for our `PrincipalAuthModule`. May be used by Relay 1.""" + principalAuthModuleEdge( + """The method to use when ordering `PrincipalAuthModule`.""" + orderBy: [PrincipalAuthModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): PrincipalAuthModuleEdge } -"""All input for the `deleteConfigSecretsModule` mutation.""" -input DeleteConfigSecretsModuleInput { +"""All input for the `deletePrincipalAuthModule` mutation.""" +input DeletePrincipalAuthModuleInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -24299,31 +26598,31 @@ input DeleteConfigSecretsModuleInput { id: UUID! } -"""The output of our delete `GraphModule` mutation.""" -type DeleteGraphModulePayload { +"""The output of our delete `DbPool` mutation.""" +type DeleteDbPoolPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `GraphModule` that was deleted by this mutation.""" - graphModule: GraphModule + """The `DbPool` that was deleted by this mutation.""" + dbPool: DbPool """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `GraphModule`. May be used by Relay 1.""" - graphModuleEdge( - """The method to use when ordering `GraphModule`.""" - orderBy: [GraphModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): GraphModuleEdge + """An edge for our `DbPool`. May be used by Relay 1.""" + dbPoolEdge( + """The method to use when ordering `DbPool`.""" + orderBy: [DbPoolOrderBy!]! = [PRIMARY_KEY_ASC] + ): DbPoolEdge } -"""All input for the `deleteGraphModule` mutation.""" -input DeleteGraphModuleInput { +"""All input for the `deleteDbPool` mutation.""" +input DeleteDbPoolInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -24332,31 +26631,31 @@ input DeleteGraphModuleInput { id: UUID! } -"""The output of our delete `MerkleStoreModule` mutation.""" -type DeleteMerkleStoreModulePayload { +"""The output of our delete `FunctionModule` mutation.""" +type DeleteFunctionModulePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `MerkleStoreModule` that was deleted by this mutation.""" - merkleStoreModule: MerkleStoreModule + """The `FunctionModule` that was deleted by this mutation.""" + functionModule: FunctionModule """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `MerkleStoreModule`. May be used by Relay 1.""" - merkleStoreModuleEdge( - """The method to use when ordering `MerkleStoreModule`.""" - orderBy: [MerkleStoreModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): MerkleStoreModuleEdge + """An edge for our `FunctionModule`. May be used by Relay 1.""" + functionModuleEdge( + """The method to use when ordering `FunctionModule`.""" + orderBy: [FunctionModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): FunctionModuleEdge } -"""All input for the `deleteMerkleStoreModule` mutation.""" -input DeleteMerkleStoreModuleInput { +"""All input for the `deleteFunctionModule` mutation.""" +input DeleteFunctionModuleInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -24365,31 +26664,31 @@ input DeleteMerkleStoreModuleInput { id: UUID! } -"""The output of our delete `RateLimitMetersModule` mutation.""" -type DeleteRateLimitMetersModulePayload { +"""The output of our delete `GraphModule` mutation.""" +type DeleteGraphModulePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `RateLimitMetersModule` that was deleted by this mutation.""" - rateLimitMetersModule: RateLimitMetersModule + """The `GraphModule` that was deleted by this mutation.""" + graphModule: GraphModule """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `RateLimitMetersModule`. May be used by Relay 1.""" - rateLimitMetersModuleEdge( - """The method to use when ordering `RateLimitMetersModule`.""" - orderBy: [RateLimitMetersModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): RateLimitMetersModuleEdge + """An edge for our `GraphModule`. May be used by Relay 1.""" + graphModuleEdge( + """The method to use when ordering `GraphModule`.""" + orderBy: [GraphModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): GraphModuleEdge } -"""All input for the `deleteRateLimitMetersModule` mutation.""" -input DeleteRateLimitMetersModuleInput { +"""All input for the `deleteGraphModule` mutation.""" +input DeleteGraphModuleInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -24398,31 +26697,31 @@ input DeleteRateLimitMetersModuleInput { id: UUID! } -"""The output of our delete `RealtimeModule` mutation.""" -type DeleteRealtimeModulePayload { +"""The output of our delete `MerkleStoreModule` mutation.""" +type DeleteMerkleStoreModulePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `RealtimeModule` that was deleted by this mutation.""" - realtimeModule: RealtimeModule + """The `MerkleStoreModule` that was deleted by this mutation.""" + merkleStoreModule: MerkleStoreModule """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `RealtimeModule`. May be used by Relay 1.""" - realtimeModuleEdge( - """The method to use when ordering `RealtimeModule`.""" - orderBy: [RealtimeModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): RealtimeModuleEdge + """An edge for our `MerkleStoreModule`. May be used by Relay 1.""" + merkleStoreModuleEdge( + """The method to use when ordering `MerkleStoreModule`.""" + orderBy: [MerkleStoreModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): MerkleStoreModuleEdge } -"""All input for the `deleteRealtimeModule` mutation.""" -input DeleteRealtimeModuleInput { +"""All input for the `deleteMerkleStoreModule` mutation.""" +input DeleteMerkleStoreModuleInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -24431,31 +26730,31 @@ input DeleteRealtimeModuleInput { id: UUID! } -"""The output of our delete `WebauthnAuthModule` mutation.""" -type DeleteWebauthnAuthModulePayload { +"""The output of our delete `DatabaseProvisionModule` mutation.""" +type DeleteDatabaseProvisionModulePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `WebauthnAuthModule` that was deleted by this mutation.""" - webauthnAuthModule: WebauthnAuthModule + """The `DatabaseProvisionModule` that was deleted by this mutation.""" + databaseProvisionModule: DatabaseProvisionModule """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `WebauthnAuthModule`. May be used by Relay 1.""" - webauthnAuthModuleEdge( - """The method to use when ordering `WebauthnAuthModule`.""" - orderBy: [WebauthnAuthModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): WebauthnAuthModuleEdge + """An edge for our `DatabaseProvisionModule`. May be used by Relay 1.""" + databaseProvisionModuleEdge( + """The method to use when ordering `DatabaseProvisionModule`.""" + orderBy: [DatabaseProvisionModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): DatabaseProvisionModuleEdge } -"""All input for the `deleteWebauthnAuthModule` mutation.""" -input DeleteWebauthnAuthModuleInput { +"""All input for the `deleteDatabaseProvisionModule` mutation.""" +input DeleteDatabaseProvisionModuleInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -24497,31 +26796,31 @@ input DeleteFunctionInvocationModuleInput { id: UUID! } -"""The output of our delete `FunctionModule` mutation.""" -type DeleteFunctionModulePayload { +"""The output of our delete `InvitesModule` mutation.""" +type DeleteInvitesModulePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `FunctionModule` that was deleted by this mutation.""" - functionModule: FunctionModule + """The `InvitesModule` that was deleted by this mutation.""" + invitesModule: InvitesModule """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `FunctionModule`. May be used by Relay 1.""" - functionModuleEdge( - """The method to use when ordering `FunctionModule`.""" - orderBy: [FunctionModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): FunctionModuleEdge + """An edge for our `InvitesModule`. May be used by Relay 1.""" + invitesModuleEdge( + """The method to use when ordering `InvitesModule`.""" + orderBy: [InvitesModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): InvitesModuleEdge } -"""All input for the `deleteFunctionModule` mutation.""" -input DeleteFunctionModuleInput { +"""All input for the `deleteInvitesModule` mutation.""" +input DeleteInvitesModuleInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -24530,31 +26829,31 @@ input DeleteFunctionModuleInput { id: UUID! } -"""The output of our delete `InvitesModule` mutation.""" -type DeleteInvitesModulePayload { +"""The output of our delete `NamespaceModule` mutation.""" +type DeleteNamespaceModulePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `InvitesModule` that was deleted by this mutation.""" - invitesModule: InvitesModule + """The `NamespaceModule` that was deleted by this mutation.""" + namespaceModule: NamespaceModule """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `InvitesModule`. May be used by Relay 1.""" - invitesModuleEdge( - """The method to use when ordering `InvitesModule`.""" - orderBy: [InvitesModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): InvitesModuleEdge + """An edge for our `NamespaceModule`. May be used by Relay 1.""" + namespaceModuleEdge( + """The method to use when ordering `NamespaceModule`.""" + orderBy: [NamespaceModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): NamespaceModuleEdge } -"""All input for the `deleteInvitesModule` mutation.""" -input DeleteInvitesModuleInput { +"""All input for the `deleteNamespaceModule` mutation.""" +input DeleteNamespaceModuleInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -24563,31 +26862,31 @@ input DeleteInvitesModuleInput { id: UUID! } -"""The output of our delete `PrincipalAuthModule` mutation.""" -type DeletePrincipalAuthModulePayload { +"""The output of our delete `PlansModule` mutation.""" +type DeletePlansModulePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `PrincipalAuthModule` that was deleted by this mutation.""" - principalAuthModule: PrincipalAuthModule + """The `PlansModule` that was deleted by this mutation.""" + plansModule: PlansModule """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `PrincipalAuthModule`. May be used by Relay 1.""" - principalAuthModuleEdge( - """The method to use when ordering `PrincipalAuthModule`.""" - orderBy: [PrincipalAuthModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): PrincipalAuthModuleEdge + """An edge for our `PlansModule`. May be used by Relay 1.""" + plansModuleEdge( + """The method to use when ordering `PlansModule`.""" + orderBy: [PlansModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): PlansModuleEdge } -"""All input for the `deletePrincipalAuthModule` mutation.""" -input DeletePrincipalAuthModuleInput { +"""All input for the `deletePlansModule` mutation.""" +input DeletePlansModuleInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -24662,72 +26961,6 @@ input DeleteInferenceLogModuleInput { id: UUID! } -"""The output of our delete `NamespaceModule` mutation.""" -type DeleteNamespaceModulePayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `NamespaceModule` that was deleted by this mutation.""" - namespaceModule: NamespaceModule - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `NamespaceModule`. May be used by Relay 1.""" - namespaceModuleEdge( - """The method to use when ordering `NamespaceModule`.""" - orderBy: [NamespaceModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): NamespaceModuleEdge -} - -"""All input for the `deleteNamespaceModule` mutation.""" -input DeleteNamespaceModuleInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! -} - -"""The output of our delete `ResourceModule` mutation.""" -type DeleteResourceModulePayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `ResourceModule` that was deleted by this mutation.""" - resourceModule: ResourceModule - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `ResourceModule`. May be used by Relay 1.""" - resourceModuleEdge( - """The method to use when ordering `ResourceModule`.""" - orderBy: [ResourceModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): ResourceModuleEdge -} - -"""All input for the `deleteResourceModule` mutation.""" -input DeleteResourceModuleInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! -} - """The output of our delete `StorageLogModule` mutation.""" type DeleteStorageLogModulePayload { """ @@ -24794,64 +27027,31 @@ input DeleteTransferLogModuleInput { id: UUID! } -"""The output of our delete `FunctionDeploymentModule` mutation.""" -type DeleteFunctionDeploymentModulePayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `FunctionDeploymentModule` that was deleted by this mutation.""" - functionDeploymentModule: FunctionDeploymentModule - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `FunctionDeploymentModule`. May be used by Relay 1.""" - functionDeploymentModuleEdge( - """The method to use when ordering `FunctionDeploymentModule`.""" - orderBy: [FunctionDeploymentModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): FunctionDeploymentModuleEdge -} - -"""All input for the `deleteFunctionDeploymentModule` mutation.""" -input DeleteFunctionDeploymentModuleInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! -} - -"""The output of our delete `PlansModule` mutation.""" -type DeletePlansModulePayload { +"""The output of our delete `BillingProviderModule` mutation.""" +type DeleteBillingProviderModulePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `PlansModule` that was deleted by this mutation.""" - plansModule: PlansModule + """The `BillingProviderModule` that was deleted by this mutation.""" + billingProviderModule: BillingProviderModule """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `PlansModule`. May be used by Relay 1.""" - plansModuleEdge( - """The method to use when ordering `PlansModule`.""" - orderBy: [PlansModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): PlansModuleEdge + """An edge for our `BillingProviderModule`. May be used by Relay 1.""" + billingProviderModuleEdge( + """The method to use when ordering `BillingProviderModule`.""" + orderBy: [BillingProviderModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): BillingProviderModuleEdge } -"""All input for the `deletePlansModule` mutation.""" -input DeletePlansModuleInput { +"""All input for the `deleteBillingProviderModule` mutation.""" +input DeleteBillingProviderModuleInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -24860,31 +27060,31 @@ input DeletePlansModuleInput { id: UUID! } -"""The output of our delete `BillingProviderModule` mutation.""" -type DeleteBillingProviderModulePayload { +"""The output of our delete `FunctionDeploymentModule` mutation.""" +type DeleteFunctionDeploymentModulePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `BillingProviderModule` that was deleted by this mutation.""" - billingProviderModule: BillingProviderModule - + """The `FunctionDeploymentModule` that was deleted by this mutation.""" + functionDeploymentModule: FunctionDeploymentModule + """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `BillingProviderModule`. May be used by Relay 1.""" - billingProviderModuleEdge( - """The method to use when ordering `BillingProviderModule`.""" - orderBy: [BillingProviderModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): BillingProviderModuleEdge + """An edge for our `FunctionDeploymentModule`. May be used by Relay 1.""" + functionDeploymentModuleEdge( + """The method to use when ordering `FunctionDeploymentModule`.""" + orderBy: [FunctionDeploymentModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): FunctionDeploymentModuleEdge } -"""All input for the `deleteBillingProviderModule` mutation.""" -input DeleteBillingProviderModuleInput { +"""All input for the `deleteFunctionDeploymentModule` mutation.""" +input DeleteFunctionDeploymentModuleInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -24893,31 +27093,31 @@ input DeleteBillingProviderModuleInput { id: UUID! } -"""The output of our delete `DbUsageModule` mutation.""" -type DeleteDbUsageModulePayload { +"""The output of our delete `PermissionsModule` mutation.""" +type DeletePermissionsModulePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `DbUsageModule` that was deleted by this mutation.""" - dbUsageModule: DbUsageModule + """The `PermissionsModule` that was deleted by this mutation.""" + permissionsModule: PermissionsModule """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `DbUsageModule`. May be used by Relay 1.""" - dbUsageModuleEdge( - """The method to use when ordering `DbUsageModule`.""" - orderBy: [DbUsageModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): DbUsageModuleEdge + """An edge for our `PermissionsModule`. May be used by Relay 1.""" + permissionsModuleEdge( + """The method to use when ordering `PermissionsModule`.""" + orderBy: [PermissionsModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): PermissionsModuleEdge } -"""All input for the `deleteDbUsageModule` mutation.""" -input DeleteDbUsageModuleInput { +"""All input for the `deletePermissionsModule` mutation.""" +input DeletePermissionsModuleInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -24992,31 +27192,31 @@ input DeleteHierarchyModuleInput { id: UUID! } -"""The output of our delete `PermissionsModule` mutation.""" -type DeletePermissionsModulePayload { +"""The output of our delete `NotificationsModule` mutation.""" +type DeleteNotificationsModulePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `PermissionsModule` that was deleted by this mutation.""" - permissionsModule: PermissionsModule + """The `NotificationsModule` that was deleted by this mutation.""" + notificationsModule: NotificationsModule """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `PermissionsModule`. May be used by Relay 1.""" - permissionsModuleEdge( - """The method to use when ordering `PermissionsModule`.""" - orderBy: [PermissionsModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): PermissionsModuleEdge + """An edge for our `NotificationsModule`. May be used by Relay 1.""" + notificationsModuleEdge( + """The method to use when ordering `NotificationsModule`.""" + orderBy: [NotificationsModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): NotificationsModuleEdge } -"""All input for the `deletePermissionsModule` mutation.""" -input DeletePermissionsModuleInput { +"""All input for the `deleteNotificationsModule` mutation.""" +input DeleteNotificationsModuleInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -25025,36 +27225,73 @@ input DeletePermissionsModuleInput { id: UUID! } -"""The output of our delete `NotificationsModule` mutation.""" -type DeleteNotificationsModulePayload { +"""The output of our delete `RelationProvision` mutation.""" +type DeleteRelationProvisionPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `NotificationsModule` that was deleted by this mutation.""" - notificationsModule: NotificationsModule + """The `RelationProvision` that was deleted by this mutation.""" + relationProvision: RelationProvision """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `NotificationsModule`. May be used by Relay 1.""" - notificationsModuleEdge( - """The method to use when ordering `NotificationsModule`.""" - orderBy: [NotificationsModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): NotificationsModuleEdge + """An edge for our `RelationProvision`. May be used by Relay 1.""" + relationProvisionEdge( + """The method to use when ordering `RelationProvision`.""" + orderBy: [RelationProvisionOrderBy!]! = [PRIMARY_KEY_ASC] + ): RelationProvisionEdge } -"""All input for the `deleteNotificationsModule` mutation.""" -input DeleteNotificationsModuleInput { +"""All input for the `deleteRelationProvision` mutation.""" +input DeleteRelationProvisionInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """Unique identifier for this relation provision row.""" + id: UUID! +} + +"""The output of our delete `BlueprintTemplate` mutation.""" +type DeleteBlueprintTemplatePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `BlueprintTemplate` that was deleted by this mutation.""" + blueprintTemplate: BlueprintTemplate + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `BlueprintTemplate`. May be used by Relay 1.""" + blueprintTemplateEdge( + """The method to use when ordering `BlueprintTemplate`.""" + orderBy: [BlueprintTemplateOrderBy!]! = [PRIMARY_KEY_ASC] + ): BlueprintTemplateEdge +} + +"""All input for the `deleteBlueprintTemplate` mutation.""" +input DeleteBlueprintTemplateInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String + + """Unique identifier for this template.""" id: UUID! } @@ -25124,101 +27361,97 @@ input DeleteBillingModuleInput { id: UUID! } -"""The output of our delete `RelationProvision` mutation.""" -type DeleteRelationProvisionPayload { +"""The output of our delete `ResourceModule` mutation.""" +type DeleteResourceModulePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `RelationProvision` that was deleted by this mutation.""" - relationProvision: RelationProvision + """The `ResourceModule` that was deleted by this mutation.""" + resourceModule: ResourceModule """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `RelationProvision`. May be used by Relay 1.""" - relationProvisionEdge( - """The method to use when ordering `RelationProvision`.""" - orderBy: [RelationProvisionOrderBy!]! = [PRIMARY_KEY_ASC] - ): RelationProvisionEdge + """An edge for our `ResourceModule`. May be used by Relay 1.""" + resourceModuleEdge( + """The method to use when ordering `ResourceModule`.""" + orderBy: [ResourceModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): ResourceModuleEdge } -"""All input for the `deleteRelationProvision` mutation.""" -input DeleteRelationProvisionInput { +"""All input for the `deleteResourceModule` mutation.""" +input DeleteResourceModuleInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - - """Unique identifier for this relation provision row.""" id: UUID! } -"""The output of our delete `BlueprintTemplate` mutation.""" -type DeleteBlueprintTemplatePayload { +"""The output of our delete `UserAuthModule` mutation.""" +type DeleteUserAuthModulePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `BlueprintTemplate` that was deleted by this mutation.""" - blueprintTemplate: BlueprintTemplate + """The `UserAuthModule` that was deleted by this mutation.""" + userAuthModule: UserAuthModule """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `BlueprintTemplate`. May be used by Relay 1.""" - blueprintTemplateEdge( - """The method to use when ordering `BlueprintTemplate`.""" - orderBy: [BlueprintTemplateOrderBy!]! = [PRIMARY_KEY_ASC] - ): BlueprintTemplateEdge + """An edge for our `UserAuthModule`. May be used by Relay 1.""" + userAuthModuleEdge( + """The method to use when ordering `UserAuthModule`.""" + orderBy: [UserAuthModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): UserAuthModuleEdge } -"""All input for the `deleteBlueprintTemplate` mutation.""" -input DeleteBlueprintTemplateInput { +"""All input for the `deleteUserAuthModule` mutation.""" +input DeleteUserAuthModuleInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - - """Unique identifier for this template.""" id: UUID! } -"""The output of our delete `UserAuthModule` mutation.""" -type DeleteUserAuthModulePayload { +"""The output of our delete `DbUsageModule` mutation.""" +type DeleteDbUsageModulePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `UserAuthModule` that was deleted by this mutation.""" - userAuthModule: UserAuthModule + """The `DbUsageModule` that was deleted by this mutation.""" + dbUsageModule: DbUsageModule """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `UserAuthModule`. May be used by Relay 1.""" - userAuthModuleEdge( - """The method to use when ordering `UserAuthModule`.""" - orderBy: [UserAuthModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): UserAuthModuleEdge + """An edge for our `DbUsageModule`. May be used by Relay 1.""" + dbUsageModuleEdge( + """The method to use when ordering `DbUsageModule`.""" + orderBy: [DbUsageModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): DbUsageModuleEdge } -"""All input for the `deleteUserAuthModule` mutation.""" -input DeleteUserAuthModuleInput { +"""All input for the `deleteDbUsageModule` mutation.""" +input DeleteDbUsageModuleInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -25293,39 +27526,6 @@ input DeleteLimitsModuleInput { id: UUID! } -"""The output of our delete `MembershipsModule` mutation.""" -type DeleteMembershipsModulePayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `MembershipsModule` that was deleted by this mutation.""" - membershipsModule: MembershipsModule - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `MembershipsModule`. May be used by Relay 1.""" - membershipsModuleEdge( - """The method to use when ordering `MembershipsModule`.""" - orderBy: [MembershipsModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): MembershipsModuleEdge -} - -"""All input for the `deleteMembershipsModule` mutation.""" -input DeleteMembershipsModuleInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! -} - """The output of our delete `EntityTypeProvision` mutation.""" type DeleteEntityTypeProvisionPayload { """ @@ -25394,6 +27594,39 @@ input DeleteStorageModuleInput { id: UUID! } +"""The output of our delete `MembershipsModule` mutation.""" +type DeleteMembershipsModulePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `MembershipsModule` that was deleted by this mutation.""" + membershipsModule: MembershipsModule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `MembershipsModule`. May be used by Relay 1.""" + membershipsModuleEdge( + """The method to use when ordering `MembershipsModule`.""" + orderBy: [MembershipsModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): MembershipsModuleEdge +} + +"""All input for the `deleteMembershipsModule` mutation.""" +input DeleteMembershipsModuleInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + id: UUID! +} + """The output of our delete `EventsModule` mutation.""" type DeleteEventsModulePayload { """ diff --git a/sdk/constructive-sdk/src/.targets b/sdk/constructive-sdk/src/.targets index 42542d6c87..cf3103f66e 100644 --- a/sdk/constructive-sdk/src/.targets +++ b/sdk/constructive-sdk/src/.targets @@ -1 +1 @@ -["admin","agent","api","auth","compute","config","modules","objects","usage"] +["admin","agent","api","auth","compute","config","infra","modules","objects","usage"] diff --git a/sdk/constructive-sdk/src/agent/orm/README.md b/sdk/constructive-sdk/src/agent/orm/README.md index b8063a2d31..d45e434aab 100644 --- a/sdk/constructive-sdk/src/agent/orm/README.md +++ b/sdk/constructive-sdk/src/agent/orm/README.md @@ -46,6 +46,7 @@ CRUD operations for AgentPlan records. | `updatedAt` | Datetime | No | | `ownerId` | UUID | Yes | | `threadId` | UUID | Yes | +| `databaseId` | UUID | Yes | | `title` | String | Yes | | `description` | String | Yes | | `status` | String | Yes | @@ -54,13 +55,13 @@ CRUD operations for AgentPlan records. ```typescript // List all agentPlan records -const items = await db.agentPlan.findMany({ select: { id: true, createdAt: true, updatedAt: true, ownerId: true, threadId: true, title: true, description: true, status: true } }).execute(); +const items = await db.agentPlan.findMany({ select: { id: true, createdAt: true, updatedAt: true, ownerId: true, threadId: true, databaseId: true, title: true, description: true, status: true } }).execute(); // Get one by id -const item = await db.agentPlan.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, ownerId: true, threadId: true, title: true, description: true, status: true } }).execute(); +const item = await db.agentPlan.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, ownerId: true, threadId: true, databaseId: true, title: true, description: true, status: true } }).execute(); // Create -const created = await db.agentPlan.create({ data: { ownerId: '', threadId: '', title: '', description: '', status: '' }, select: { id: true } }).execute(); +const created = await db.agentPlan.create({ data: { ownerId: '', threadId: '', databaseId: '', title: '', description: '', status: '' }, select: { id: true } }).execute(); // Update const updated = await db.agentPlan.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute(); @@ -81,6 +82,7 @@ CRUD operations for Agent records. | `createdAt` | Datetime | No | | `updatedAt` | Datetime | No | | `ownerId` | UUID | Yes | +| `databaseId` | UUID | Yes | | `personaId` | UUID | Yes | | `parentId` | UUID | Yes | | `name` | String | Yes | @@ -93,13 +95,13 @@ CRUD operations for Agent records. ```typescript // List all agent records -const items = await db.agent.findMany({ select: { id: true, createdAt: true, updatedAt: true, ownerId: true, personaId: true, parentId: true, name: true, systemPrompt: true, config: true, status: true, isEphemeral: true } }).execute(); +const items = await db.agent.findMany({ select: { id: true, createdAt: true, updatedAt: true, ownerId: true, databaseId: true, personaId: true, parentId: true, name: true, systemPrompt: true, config: true, status: true, isEphemeral: true } }).execute(); // Get one by id -const item = await db.agent.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, ownerId: true, personaId: true, parentId: true, name: true, systemPrompt: true, config: true, status: true, isEphemeral: true } }).execute(); +const item = await db.agent.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, ownerId: true, databaseId: true, personaId: true, parentId: true, name: true, systemPrompt: true, config: true, status: true, isEphemeral: true } }).execute(); // Create -const created = await db.agent.create({ data: { ownerId: '', personaId: '', parentId: '', name: '', systemPrompt: '', config: '', status: '', isEphemeral: '' }, select: { id: true } }).execute(); +const created = await db.agent.create({ data: { ownerId: '', databaseId: '', personaId: '', parentId: '', name: '', systemPrompt: '', config: '', status: '', isEphemeral: '' }, select: { id: true } }).execute(); // Update const updated = await db.agent.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute(); @@ -120,6 +122,7 @@ CRUD operations for AgentThread records. | `createdAt` | Datetime | No | | `updatedAt` | Datetime | No | | `ownerId` | UUID | Yes | +| `databaseId` | UUID | Yes | | `status` | String | Yes | | `isArchived` | Boolean | Yes | | `archivedAt` | Datetime | Yes | @@ -136,13 +139,13 @@ CRUD operations for AgentThread records. ```typescript // List all agentThread records -const items = await db.agentThread.findMany({ select: { id: true, createdAt: true, updatedAt: true, ownerId: true, status: true, isArchived: true, archivedAt: true, title: true, mode: true, model: true, systemPrompt: true, tags: true, promptTemplateId: true, agentId: true, parentThreadId: true } }).execute(); +const items = await db.agentThread.findMany({ select: { id: true, createdAt: true, updatedAt: true, ownerId: true, databaseId: true, status: true, isArchived: true, archivedAt: true, title: true, mode: true, model: true, systemPrompt: true, tags: true, promptTemplateId: true, agentId: true, parentThreadId: true } }).execute(); // Get one by id -const item = await db.agentThread.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, ownerId: true, status: true, isArchived: true, archivedAt: true, title: true, mode: true, model: true, systemPrompt: true, tags: true, promptTemplateId: true, agentId: true, parentThreadId: true } }).execute(); +const item = await db.agentThread.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, ownerId: true, databaseId: true, status: true, isArchived: true, archivedAt: true, title: true, mode: true, model: true, systemPrompt: true, tags: true, promptTemplateId: true, agentId: true, parentThreadId: true } }).execute(); // Create -const created = await db.agentThread.create({ data: { ownerId: '', status: '', isArchived: '', archivedAt: '', title: '', mode: '', model: '', systemPrompt: '', tags: '', promptTemplateId: '', agentId: '', parentThreadId: '' }, select: { id: true } }).execute(); +const created = await db.agentThread.create({ data: { ownerId: '', databaseId: '', status: '', isArchived: '', archivedAt: '', title: '', mode: '', model: '', systemPrompt: '', tags: '', promptTemplateId: '', agentId: '', parentThreadId: '' }, select: { id: true } }).execute(); // Update const updated = await db.agentThread.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute(); @@ -165,6 +168,7 @@ CRUD operations for AgentMessage records. | `actorId` | UUID | Yes | | `parts` | JSON | Yes | | `threadId` | UUID | Yes | +| `databaseId` | UUID | Yes | | `authorRole` | String | Yes | | `model` | String | Yes | | `agentId` | UUID | Yes | @@ -173,13 +177,13 @@ CRUD operations for AgentMessage records. ```typescript // List all agentMessage records -const items = await db.agentMessage.findMany({ select: { id: true, createdAt: true, updatedAt: true, actorId: true, parts: true, threadId: true, authorRole: true, model: true, agentId: true } }).execute(); +const items = await db.agentMessage.findMany({ select: { id: true, createdAt: true, updatedAt: true, actorId: true, parts: true, threadId: true, databaseId: true, authorRole: true, model: true, agentId: true } }).execute(); // Get one by id -const item = await db.agentMessage.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, actorId: true, parts: true, threadId: true, authorRole: true, model: true, agentId: true } }).execute(); +const item = await db.agentMessage.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, actorId: true, parts: true, threadId: true, databaseId: true, authorRole: true, model: true, agentId: true } }).execute(); // Create -const created = await db.agentMessage.create({ data: { actorId: '', parts: '', threadId: '', authorRole: '', model: '', agentId: '' }, select: { id: true } }).execute(); +const created = await db.agentMessage.create({ data: { actorId: '', parts: '', threadId: '', databaseId: '', authorRole: '', model: '', agentId: '' }, select: { id: true } }).execute(); // Update const updated = await db.agentMessage.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); @@ -202,6 +206,7 @@ CRUD operations for AgentTask records. | `actorId` | UUID | Yes | | `status` | String | Yes | | `planId` | UUID | Yes | +| `databaseId` | UUID | Yes | | `description` | String | Yes | | `source` | String | Yes | | `error` | String | Yes | @@ -216,13 +221,13 @@ CRUD operations for AgentTask records. ```typescript // List all agentTask records -const items = await db.agentTask.findMany({ select: { id: true, createdAt: true, updatedAt: true, actorId: true, status: true, planId: true, description: true, source: true, error: true, orderIndex: true, requiresApproval: true, approvalStatus: true, approvedBy: true, approvedAt: true, approvalFeedback: true } }).execute(); +const items = await db.agentTask.findMany({ select: { id: true, createdAt: true, updatedAt: true, actorId: true, status: true, planId: true, databaseId: true, description: true, source: true, error: true, orderIndex: true, requiresApproval: true, approvalStatus: true, approvedBy: true, approvedAt: true, approvalFeedback: true } }).execute(); // Get one by id -const item = await db.agentTask.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, actorId: true, status: true, planId: true, description: true, source: true, error: true, orderIndex: true, requiresApproval: true, approvalStatus: true, approvedBy: true, approvedAt: true, approvalFeedback: true } }).execute(); +const item = await db.agentTask.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, actorId: true, status: true, planId: true, databaseId: true, description: true, source: true, error: true, orderIndex: true, requiresApproval: true, approvalStatus: true, approvedBy: true, approvedAt: true, approvalFeedback: true } }).execute(); // Create -const created = await db.agentTask.create({ data: { actorId: '', status: '', planId: '', description: '', source: '', error: '', orderIndex: '', requiresApproval: '', approvalStatus: '', approvedBy: '', approvedAt: '', approvalFeedback: '' }, select: { id: true } }).execute(); +const created = await db.agentTask.create({ data: { actorId: '', status: '', planId: '', databaseId: '', description: '', source: '', error: '', orderIndex: '', requiresApproval: '', approvalStatus: '', approvedBy: '', approvedAt: '', approvalFeedback: '' }, select: { id: true } }).execute(); // Update const updated = await db.agentTask.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); @@ -244,6 +249,7 @@ CRUD operations for AgentPrompt records. | `updatedAt` | Datetime | No | | `createdBy` | UUID | Yes | | `updatedBy` | UUID | Yes | +| `databaseId` | UUID | Yes | | `name` | String | Yes | | `content` | String | Yes | | `description` | String | Yes | @@ -254,13 +260,13 @@ CRUD operations for AgentPrompt records. ```typescript // List all agentPrompt records -const items = await db.agentPrompt.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, name: true, content: true, description: true, isDefault: true, metadata: true } }).execute(); +const items = await db.agentPrompt.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, databaseId: true, name: true, content: true, description: true, isDefault: true, metadata: true } }).execute(); // Get one by id -const item = await db.agentPrompt.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, name: true, content: true, description: true, isDefault: true, metadata: true } }).execute(); +const item = await db.agentPrompt.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, databaseId: true, name: true, content: true, description: true, isDefault: true, metadata: true } }).execute(); // Create -const created = await db.agentPrompt.create({ data: { createdBy: '', updatedBy: '', name: '', content: '', description: '', isDefault: '', metadata: '' }, select: { id: true } }).execute(); +const created = await db.agentPrompt.create({ data: { createdBy: '', updatedBy: '', databaseId: '', name: '', content: '', description: '', isDefault: '', metadata: '' }, select: { id: true } }).execute(); // Update const updated = await db.agentPrompt.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); @@ -323,6 +329,7 @@ CRUD operations for AgentPersona records. | `updatedAt` | Datetime | No | | `createdBy` | UUID | Yes | | `updatedBy` | UUID | Yes | +| `databaseId` | UUID | Yes | | `slug` | String | Yes | | `name` | String | Yes | | `description` | String | Yes | @@ -335,13 +342,13 @@ CRUD operations for AgentPersona records. ```typescript // List all agentPersona records -const items = await db.agentPersona.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, slug: true, name: true, description: true, systemPrompt: true, resources: true, config: true, isActive: true } }).execute(); +const items = await db.agentPersona.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, databaseId: true, slug: true, name: true, description: true, systemPrompt: true, resources: true, config: true, isActive: true } }).execute(); // Get one by id -const item = await db.agentPersona.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, slug: true, name: true, description: true, systemPrompt: true, resources: true, config: true, isActive: true } }).execute(); +const item = await db.agentPersona.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, databaseId: true, slug: true, name: true, description: true, systemPrompt: true, resources: true, config: true, isActive: true } }).execute(); // Create -const created = await db.agentPersona.create({ data: { createdBy: '', updatedBy: '', slug: '', name: '', description: '', systemPrompt: '', resources: '', config: '', isActive: '' }, select: { id: true } }).execute(); +const created = await db.agentPersona.create({ data: { createdBy: '', updatedBy: '', databaseId: '', slug: '', name: '', description: '', systemPrompt: '', resources: '', config: '', isActive: '' }, select: { id: true } }).execute(); // Update const updated = await db.agentPersona.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); @@ -363,6 +370,7 @@ CRUD operations for AgentResource records. | `updatedAt` | Datetime | No | | `createdBy` | UUID | Yes | | `updatedBy` | UUID | Yes | +| `databaseId` | UUID | Yes | | `slug` | String | Yes | | `kind` | String | Yes | | `title` | String | Yes | @@ -388,13 +396,13 @@ CRUD operations for AgentResource records. ```typescript // List all agentResource records -const items = await db.agentResource.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, slug: true, kind: true, title: true, description: true, body: true, keywords: true, isActive: true, metadata: true, isArchived: true, archivedAt: true, search: true, embedding: true, embeddingUpdatedAt: true, searchTsvRank: true, embeddingVectorDistance: true, kindTrgmSimilarity: true, titleTrgmSimilarity: true, descriptionTrgmSimilarity: true, bodyTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.agentResource.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, databaseId: true, slug: true, kind: true, title: true, description: true, body: true, keywords: true, isActive: true, metadata: true, isArchived: true, archivedAt: true, search: true, embedding: true, embeddingUpdatedAt: true, searchTsvRank: true, embeddingVectorDistance: true, kindTrgmSimilarity: true, titleTrgmSimilarity: true, descriptionTrgmSimilarity: true, bodyTrgmSimilarity: true, searchScore: true } }).execute(); // Get one by id -const item = await db.agentResource.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, slug: true, kind: true, title: true, description: true, body: true, keywords: true, isActive: true, metadata: true, isArchived: true, archivedAt: true, search: true, embedding: true, embeddingUpdatedAt: true, searchTsvRank: true, embeddingVectorDistance: true, kindTrgmSimilarity: true, titleTrgmSimilarity: true, descriptionTrgmSimilarity: true, bodyTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.agentResource.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, databaseId: true, slug: true, kind: true, title: true, description: true, body: true, keywords: true, isActive: true, metadata: true, isArchived: true, archivedAt: true, search: true, embedding: true, embeddingUpdatedAt: true, searchTsvRank: true, embeddingVectorDistance: true, kindTrgmSimilarity: true, titleTrgmSimilarity: true, descriptionTrgmSimilarity: true, bodyTrgmSimilarity: true, searchScore: true } }).execute(); // Create -const created = await db.agentResource.create({ data: { createdBy: '', updatedBy: '', slug: '', kind: '', title: '', description: '', body: '', keywords: '', isActive: '', metadata: '', isArchived: '', archivedAt: '', search: '', embedding: '', embeddingUpdatedAt: '', searchTsvRank: '', embeddingVectorDistance: '', kindTrgmSimilarity: '', titleTrgmSimilarity: '', descriptionTrgmSimilarity: '', bodyTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.agentResource.create({ data: { createdBy: '', updatedBy: '', databaseId: '', slug: '', kind: '', title: '', description: '', body: '', keywords: '', isActive: '', metadata: '', isArchived: '', archivedAt: '', search: '', embedding: '', embeddingUpdatedAt: '', searchTsvRank: '', embeddingVectorDistance: '', kindTrgmSimilarity: '', titleTrgmSimilarity: '', descriptionTrgmSimilarity: '', bodyTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); // Update const updated = await db.agentResource.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); diff --git a/sdk/constructive-sdk/src/agent/orm/input-types.ts b/sdk/constructive-sdk/src/agent/orm/input-types.ts index 8198498912..045bfeb438 100644 --- a/sdk/constructive-sdk/src/agent/orm/input-types.ts +++ b/sdk/constructive-sdk/src/agent/orm/input-types.ts @@ -240,6 +240,8 @@ export interface AgentPlan { ownerId?: string | null; /** Foreign key to agent_thread */ threadId?: string | null; + /** Database that owns this resource (database-scoped isolation) */ + databaseId?: string | null; /** Human-readable plan name */ title?: string | null; /** Overall goal or context for this plan */ @@ -254,6 +256,8 @@ export interface Agent { updatedAt?: string | null; /** Human who owns/manages this agent */ ownerId?: string | null; + /** Database that owns this resource (database-scoped isolation) */ + databaseId?: string | null; /** Persona template this agent was created from */ personaId?: string | null; /** Parent agent (for sub-agent delegation hierarchy) */ @@ -276,6 +280,8 @@ export interface AgentThread { updatedAt?: string | null; /** User who owns this thread */ ownerId?: string | null; + /** Database that owns this resource (database-scoped isolation) */ + databaseId?: string | null; /** Current status of this thread */ status?: string | null; /** Whether this record has been archived by the user */ @@ -310,6 +316,8 @@ export interface AgentMessage { parts?: Record | null; /** Foreign key to agent_thread */ threadId?: string | null; + /** Database that owns this resource (database-scoped isolation) */ + databaseId?: string | null; /** Who authored this message: user or assistant */ authorRole?: string | null; /** LLM model that generated this response */ @@ -328,6 +336,8 @@ export interface AgentTask { status?: string | null; /** Foreign key to agent_plan */ planId?: string | null; + /** Database that owns this resource (database-scoped isolation) */ + databaseId?: string | null; /** Natural-language description of the work to do */ description?: string | null; /** Who created the task: agent or user */ @@ -354,6 +364,8 @@ export interface AgentPrompt { updatedAt?: string | null; createdBy?: string | null; updatedBy?: string | null; + /** Database that owns this resource (database-scoped isolation) */ + databaseId?: string | null; /** Unique name for lookup (e.g. default, code-review, sales-assistant) */ name?: string | null; /** The system prompt template content */ @@ -386,6 +398,8 @@ export interface AgentPersona { updatedAt?: string | null; createdBy?: string | null; updatedBy?: string | null; + /** Database that owns this resource (database-scoped isolation) */ + databaseId?: string | null; /** Unique human-readable identifier for this persona */ slug?: string | null; /** Display name for this persona */ @@ -408,6 +422,8 @@ export interface AgentResource { updatedAt?: string | null; createdBy?: string | null; updatedBy?: string | null; + /** Database that owns this resource (database-scoped isolation) */ + databaseId?: string | null; /** Unique human-readable identifier for portable references */ slug?: string | null; /** Resource type: skill, knowledge, or convention */ @@ -512,6 +528,7 @@ export type AgentPlanSelect = { updatedAt?: boolean; ownerId?: boolean; threadId?: boolean; + databaseId?: boolean; title?: boolean; description?: boolean; status?: boolean; @@ -530,6 +547,7 @@ export type AgentSelect = { createdAt?: boolean; updatedAt?: boolean; ownerId?: boolean; + databaseId?: boolean; personaId?: boolean; parentId?: boolean; name?: boolean; @@ -567,6 +585,7 @@ export type AgentThreadSelect = { createdAt?: boolean; updatedAt?: boolean; ownerId?: boolean; + databaseId?: boolean; status?: boolean; isArchived?: boolean; archivedAt?: boolean; @@ -613,6 +632,7 @@ export type AgentMessageSelect = { actorId?: boolean; parts?: boolean; threadId?: boolean; + databaseId?: boolean; authorRole?: boolean; model?: boolean; agentId?: boolean; @@ -630,6 +650,7 @@ export type AgentTaskSelect = { actorId?: boolean; status?: boolean; planId?: boolean; + databaseId?: boolean; description?: boolean; source?: boolean; error?: boolean; @@ -649,6 +670,7 @@ export type AgentPromptSelect = { updatedAt?: boolean; createdBy?: boolean; updatedBy?: boolean; + databaseId?: boolean; name?: boolean; content?: boolean; description?: boolean; @@ -676,6 +698,7 @@ export type AgentPersonaSelect = { updatedAt?: boolean; createdBy?: boolean; updatedBy?: boolean; + databaseId?: boolean; slug?: boolean; name?: boolean; description?: boolean; @@ -696,6 +719,7 @@ export type AgentResourceSelect = { updatedAt?: boolean; createdBy?: boolean; updatedBy?: boolean; + databaseId?: boolean; slug?: boolean; kind?: boolean; title?: boolean; @@ -735,6 +759,8 @@ export interface AgentPlanFilter { ownerId?: UUIDFilter; /** Filter by the object’s `threadId` field. */ threadId?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; /** Filter by the object’s `title` field. */ title?: StringFilter; /** Filter by the object’s `description` field. */ @@ -763,6 +789,8 @@ export interface AgentFilter { updatedAt?: DatetimeFilter; /** Filter by the object’s `ownerId` field. */ ownerId?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; /** Filter by the object’s `personaId` field. */ personaId?: UUIDFilter; /** Filter by the object’s `parentId` field. */ @@ -813,6 +841,8 @@ export interface AgentThreadFilter { updatedAt?: DatetimeFilter; /** Filter by the object’s `ownerId` field. */ ownerId?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; /** Filter by the object’s `status` field. */ status?: StringFilter; /** Filter by the object’s `isArchived` field. */ @@ -879,6 +909,8 @@ export interface AgentMessageFilter { parts?: JSONFilter; /** Filter by the object’s `threadId` field. */ threadId?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; /** Filter by the object’s `authorRole` field. */ authorRole?: StringFilter; /** Filter by the object’s `model` field. */ @@ -911,6 +943,8 @@ export interface AgentTaskFilter { status?: StringFilter; /** Filter by the object’s `planId` field. */ planId?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; /** Filter by the object’s `description` field. */ description?: StringFilter; /** Filter by the object’s `source` field. */ @@ -949,6 +983,8 @@ export interface AgentPromptFilter { createdBy?: UUIDFilter; /** Filter by the object’s `updatedBy` field. */ updatedBy?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; /** Filter by the object’s `content` field. */ @@ -1005,6 +1041,8 @@ export interface AgentPersonaFilter { createdBy?: UUIDFilter; /** Filter by the object’s `updatedBy` field. */ updatedBy?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; /** Filter by the object’s `slug` field. */ slug?: StringFilter; /** Filter by the object’s `name` field. */ @@ -1041,6 +1079,8 @@ export interface AgentResourceFilter { createdBy?: UUIDFilter; /** Filter by the object’s `updatedBy` field. */ updatedBy?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; /** Filter by the object’s `slug` field. */ slug?: StringTrgmFilter; /** Filter by the object’s `kind` field. */ @@ -1113,6 +1153,8 @@ export type AgentPlanOrderBy = | 'OWNER_ID_DESC' | 'THREAD_ID_ASC' | 'THREAD_ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' | 'TITLE_ASC' | 'TITLE_DESC' | 'DESCRIPTION_ASC' @@ -1131,6 +1173,8 @@ export type AgentOrderBy = | 'UPDATED_AT_DESC' | 'OWNER_ID_ASC' | 'OWNER_ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' | 'PERSONA_ID_ASC' | 'PERSONA_ID_DESC' | 'PARENT_ID_ASC' @@ -1157,6 +1201,8 @@ export type AgentThreadOrderBy = | 'UPDATED_AT_DESC' | 'OWNER_ID_ASC' | 'OWNER_ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' | 'STATUS_ASC' | 'STATUS_DESC' | 'IS_ARCHIVED_ASC' @@ -1195,6 +1241,8 @@ export type AgentMessageOrderBy = | 'PARTS_DESC' | 'THREAD_ID_ASC' | 'THREAD_ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' | 'AUTHOR_ROLE_ASC' | 'AUTHOR_ROLE_DESC' | 'MODEL_ASC' @@ -1217,6 +1265,8 @@ export type AgentTaskOrderBy = | 'STATUS_DESC' | 'PLAN_ID_ASC' | 'PLAN_ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' | 'DESCRIPTION_ASC' | 'DESCRIPTION_DESC' | 'SOURCE_ASC' @@ -1249,6 +1299,8 @@ export type AgentPromptOrderBy = | 'CREATED_BY_DESC' | 'UPDATED_BY_ASC' | 'UPDATED_BY_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' | 'NAME_ASC' | 'NAME_DESC' | 'CONTENT_ASC' @@ -1297,6 +1349,8 @@ export type AgentPersonaOrderBy = | 'CREATED_BY_DESC' | 'UPDATED_BY_ASC' | 'UPDATED_BY_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' | 'SLUG_ASC' | 'SLUG_DESC' | 'NAME_ASC' @@ -1325,6 +1379,8 @@ export type AgentResourceOrderBy = | 'CREATED_BY_DESC' | 'UPDATED_BY_ASC' | 'UPDATED_BY_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' | 'SLUG_ASC' | 'SLUG_DESC' | 'KIND_ASC' @@ -1371,6 +1427,7 @@ export interface CreateAgentPlanInput { agentPlan: { ownerId?: string; threadId: string; + databaseId: string; title: string; description?: string; status?: string; @@ -1379,6 +1436,7 @@ export interface CreateAgentPlanInput { export interface AgentPlanPatch { ownerId?: string | null; threadId?: string | null; + databaseId?: string | null; title?: string | null; description?: string | null; status?: string | null; @@ -1396,6 +1454,7 @@ export interface CreateAgentInput { clientMutationId?: string; agent: { ownerId?: string; + databaseId: string; personaId?: string; parentId?: string; name: string; @@ -1407,6 +1466,7 @@ export interface CreateAgentInput { } export interface AgentPatch { ownerId?: string | null; + databaseId?: string | null; personaId?: string | null; parentId?: string | null; name?: string | null; @@ -1428,6 +1488,7 @@ export interface CreateAgentThreadInput { clientMutationId?: string; agentThread: { ownerId?: string; + databaseId: string; status?: string; isArchived?: boolean; archivedAt?: string; @@ -1443,6 +1504,7 @@ export interface CreateAgentThreadInput { } export interface AgentThreadPatch { ownerId?: string | null; + databaseId?: string | null; status?: string | null; isArchived?: boolean | null; archivedAt?: string | null; @@ -1470,6 +1532,7 @@ export interface CreateAgentMessageInput { actorId?: string; parts?: Record; threadId: string; + databaseId: string; authorRole: string; model?: string; agentId?: string; @@ -1479,6 +1542,7 @@ export interface AgentMessagePatch { actorId?: string | null; parts?: Record | null; threadId?: string | null; + databaseId?: string | null; authorRole?: string | null; model?: string | null; agentId?: string | null; @@ -1498,6 +1562,7 @@ export interface CreateAgentTaskInput { actorId?: string; status?: string; planId: string; + databaseId: string; description: string; source?: string; error?: string; @@ -1513,6 +1578,7 @@ export interface AgentTaskPatch { actorId?: string | null; status?: string | null; planId?: string | null; + databaseId?: string | null; description?: string | null; source?: string | null; error?: string | null; @@ -1537,6 +1603,7 @@ export interface CreateAgentPromptInput { agentPrompt: { createdBy?: string; updatedBy?: string; + databaseId: string; name: string; content: string; description?: string; @@ -1547,6 +1614,7 @@ export interface CreateAgentPromptInput { export interface AgentPromptPatch { createdBy?: string | null; updatedBy?: string | null; + databaseId?: string | null; name?: string | null; content?: string | null; description?: string | null; @@ -1595,6 +1663,7 @@ export interface CreateAgentPersonaInput { agentPersona: { createdBy?: string; updatedBy?: string; + databaseId: string; slug: string; name: string; description?: string; @@ -1607,6 +1676,7 @@ export interface CreateAgentPersonaInput { export interface AgentPersonaPatch { createdBy?: string | null; updatedBy?: string | null; + databaseId?: string | null; slug?: string | null; name?: string | null; description?: string | null; @@ -1629,6 +1699,7 @@ export interface CreateAgentResourceInput { agentResource: { createdBy?: string; updatedBy?: string; + databaseId: string; slug: string; kind?: string; title: string; @@ -1647,6 +1718,7 @@ export interface CreateAgentResourceInput { export interface AgentResourcePatch { createdBy?: string | null; updatedBy?: string | null; + databaseId?: string | null; slug?: string | null; kind?: string | null; title?: string | null; @@ -1893,6 +1965,8 @@ export interface AgentPlanInput { ownerId?: string; /** Foreign key to agent_thread */ threadId: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; /** Human-readable plan name */ title: string; /** Overall goal or context for this plan */ @@ -1907,6 +1981,8 @@ export interface AgentInput { updatedAt?: string; /** Human who owns/manages this agent */ ownerId?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; /** Persona template this agent was created from */ personaId?: string; /** Parent agent (for sub-agent delegation hierarchy) */ @@ -1929,6 +2005,8 @@ export interface AgentThreadInput { updatedAt?: string; /** User who owns this thread */ ownerId?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; /** Current status of this thread */ status?: string; /** Whether this record has been archived by the user */ @@ -1963,6 +2041,8 @@ export interface AgentMessageInput { parts?: Record; /** Foreign key to agent_thread */ threadId: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; /** Who authored this message: user or assistant */ authorRole: string; /** LLM model that generated this response */ @@ -1981,6 +2061,8 @@ export interface AgentTaskInput { status?: string; /** Foreign key to agent_plan */ planId: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; /** Natural-language description of the work to do */ description: string; /** Who created the task: agent or user */ @@ -2007,6 +2089,8 @@ export interface AgentPromptInput { updatedAt?: string; createdBy?: string; updatedBy?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; /** Unique name for lookup (e.g. default, code-review, sales-assistant) */ name: string; /** The system prompt template content */ @@ -2038,6 +2122,8 @@ export interface AgentPersonaInput { updatedAt?: string; createdBy?: string; updatedBy?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; /** Unique human-readable identifier for this persona */ slug: string; /** Display name for this persona */ @@ -2060,6 +2146,8 @@ export interface AgentResourceInput { updatedAt?: string; createdBy?: string; updatedBy?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; /** Unique human-readable identifier for portable references */ slug: string; /** Resource type: skill, knowledge, or convention */ @@ -2099,6 +2187,8 @@ export interface AgentTaskFilter { status?: StringFilter; /** Filter by the object’s `planId` field. */ planId?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; /** Filter by the object’s `description` field. */ description?: StringFilter; /** Filter by the object’s `source` field. */ @@ -2136,6 +2226,8 @@ export interface AgentThreadFilter { updatedAt?: DatetimeFilter; /** Filter by the object’s `ownerId` field. */ ownerId?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; /** Filter by the object’s `status` field. */ status?: StringFilter; /** Filter by the object’s `isArchived` field. */ @@ -2203,6 +2295,8 @@ export interface AgentMessageFilter { parts?: JSONFilter; /** Filter by the object’s `threadId` field. */ threadId?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; /** Filter by the object’s `authorRole` field. */ authorRole?: StringFilter; /** Filter by the object’s `model` field. */ @@ -2232,6 +2326,8 @@ export interface AgentFilter { updatedAt?: DatetimeFilter; /** Filter by the object’s `ownerId` field. */ ownerId?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; /** Filter by the object’s `personaId` field. */ personaId?: UUIDFilter; /** Filter by the object’s `parentId` field. */ @@ -2285,6 +2381,8 @@ export interface AgentPlanFilter { ownerId?: UUIDFilter; /** Filter by the object’s `threadId` field. */ threadId?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; /** Filter by the object’s `title` field. */ title?: StringFilter; /** Filter by the object’s `description` field. */ @@ -2563,6 +2661,8 @@ export interface AgentPromptFilter { createdBy?: UUIDFilter; /** Filter by the object’s `updatedBy` field. */ updatedBy?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; /** Filter by the object’s `content` field. */ @@ -2627,6 +2727,8 @@ export interface AgentPersonaFilter { createdBy?: UUIDFilter; /** Filter by the object’s `updatedBy` field. */ updatedBy?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; /** Filter by the object’s `slug` field. */ slug?: StringFilter; /** Filter by the object’s `name` field. */ @@ -2681,6 +2783,8 @@ export interface AgentResourceFilter { createdBy?: UUIDFilter; /** Filter by the object’s `updatedBy` field. */ updatedBy?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; /** Filter by the object’s `slug` field. */ slug?: StringTrgmFilter; /** Filter by the object’s `kind` field. */ diff --git a/sdk/constructive-sdk/src/api/README.md b/sdk/constructive-sdk/src/api/README.md index 017315ed06..d6d5705b17 100644 --- a/sdk/constructive-sdk/src/api/README.md +++ b/sdk/constructive-sdk/src/api/README.md @@ -10,7 +10,7 @@ - **Tables:** 46 - **Custom queries:** 1 -- **Custom mutations:** 9 +- **Custom mutations:** 7 **Generators:** ORM diff --git a/sdk/constructive-sdk/src/api/orm/README.md b/sdk/constructive-sdk/src/api/orm/README.md index 1c2ec1c782..5412c911ce 100644 --- a/sdk/constructive-sdk/src/api/orm/README.md +++ b/sdk/constructive-sdk/src/api/orm/README.md @@ -65,8 +65,8 @@ const db = createClient({ | `rlsSetting` | findMany, findOne, create, update, delete | | `sqlAction` | findMany, findOne, create, update, delete | | `databaseSetting` | findMany, findOne, create, update, delete | -| `webauthnSetting` | findMany, findOne, create, update, delete | | `astMigration` | findMany, findOne, create, update, delete | +| `webauthnSetting` | findMany, findOne, create, update, delete | ## Table Operations @@ -165,6 +165,7 @@ CRUD operations for Table records. | `pluralName` | String | Yes | | `singularName` | String | Yes | | `tags` | String | Yes | +| `stepUp` | JSON | Yes | | `partitioned` | Boolean | Yes | | `partitionStrategy` | String | Yes | | `partitionKeyNames` | String | Yes | @@ -177,13 +178,13 @@ CRUD operations for Table records. ```typescript // List all table records -const items = await db.table.findMany({ select: { id: true, databaseId: true, schemaId: true, name: true, label: true, description: true, smartTags: true, category: true, useRls: true, timestamps: true, peoplestamps: true, pluralName: true, singularName: true, tags: true, partitioned: true, partitionStrategy: true, partitionKeyNames: true, partitionKeyTypes: true, createdAt: true, updatedAt: true, inheritsId: true } }).execute(); +const items = await db.table.findMany({ select: { id: true, databaseId: true, schemaId: true, name: true, label: true, description: true, smartTags: true, category: true, useRls: true, timestamps: true, peoplestamps: true, pluralName: true, singularName: true, tags: true, stepUp: true, partitioned: true, partitionStrategy: true, partitionKeyNames: true, partitionKeyTypes: true, createdAt: true, updatedAt: true, inheritsId: true } }).execute(); // Get one by id -const item = await db.table.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, name: true, label: true, description: true, smartTags: true, category: true, useRls: true, timestamps: true, peoplestamps: true, pluralName: true, singularName: true, tags: true, partitioned: true, partitionStrategy: true, partitionKeyNames: true, partitionKeyTypes: true, createdAt: true, updatedAt: true, inheritsId: true } }).execute(); +const item = await db.table.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, name: true, label: true, description: true, smartTags: true, category: true, useRls: true, timestamps: true, peoplestamps: true, pluralName: true, singularName: true, tags: true, stepUp: true, partitioned: true, partitionStrategy: true, partitionKeyNames: true, partitionKeyTypes: true, createdAt: true, updatedAt: true, inheritsId: true } }).execute(); // Create -const created = await db.table.create({ data: { databaseId: '', schemaId: '', name: '', label: '', description: '', smartTags: '', category: '', useRls: '', timestamps: '', peoplestamps: '', pluralName: '', singularName: '', tags: '', partitioned: '', partitionStrategy: '', partitionKeyNames: '', partitionKeyTypes: '', inheritsId: '' }, select: { id: true } }).execute(); +const created = await db.table.create({ data: { databaseId: '', schemaId: '', name: '', label: '', description: '', smartTags: '', category: '', useRls: '', timestamps: '', peoplestamps: '', pluralName: '', singularName: '', tags: '', stepUp: '', partitioned: '', partitionStrategy: '', partitionKeyNames: '', partitionKeyTypes: '', inheritsId: '' }, select: { id: true } }).execute(); // Update const updated = await db.table.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); @@ -250,6 +251,8 @@ CRUD operations for Field records. | `isRequired` | Boolean | Yes | | `apiRequired` | Boolean | Yes | | `defaultValue` | JSON | Yes | +| `generationExpression` | JSON | Yes | +| `generationType` | String | Yes | | `type` | JSON | Yes | | `fieldOrder` | Int | Yes | | `regexp` | String | Yes | @@ -266,13 +269,13 @@ CRUD operations for Field records. ```typescript // List all field records -const items = await db.field.findMany({ select: { id: true, databaseId: true, tableId: true, name: true, label: true, description: true, smartTags: true, isRequired: true, apiRequired: true, defaultValue: true, type: true, fieldOrder: true, regexp: true, chk: true, chkExpr: true, min: true, max: true, tags: true, category: true, createdAt: true, updatedAt: true } }).execute(); +const items = await db.field.findMany({ select: { id: true, databaseId: true, tableId: true, name: true, label: true, description: true, smartTags: true, isRequired: true, apiRequired: true, defaultValue: true, generationExpression: true, generationType: true, type: true, fieldOrder: true, regexp: true, chk: true, chkExpr: true, min: true, max: true, tags: true, category: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.field.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, name: true, label: true, description: true, smartTags: true, isRequired: true, apiRequired: true, defaultValue: true, type: true, fieldOrder: true, regexp: true, chk: true, chkExpr: true, min: true, max: true, tags: true, category: true, createdAt: true, updatedAt: true } }).execute(); +const item = await db.field.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, name: true, label: true, description: true, smartTags: true, isRequired: true, apiRequired: true, defaultValue: true, generationExpression: true, generationType: true, type: true, fieldOrder: true, regexp: true, chk: true, chkExpr: true, min: true, max: true, tags: true, category: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.field.create({ data: { databaseId: '', tableId: '', name: '', label: '', description: '', smartTags: '', isRequired: '', apiRequired: '', defaultValue: '', type: '', fieldOrder: '', regexp: '', chk: '', chkExpr: '', min: '', max: '', tags: '', category: '' }, select: { id: true } }).execute(); +const created = await db.field.create({ data: { databaseId: '', tableId: '', name: '', label: '', description: '', smartTags: '', isRequired: '', apiRequired: '', defaultValue: '', generationExpression: '', generationType: '', type: '', fieldOrder: '', regexp: '', chk: '', chkExpr: '', min: '', max: '', tags: '', category: '' }, select: { id: true } }).execute(); // Update const updated = await db.field.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); @@ -467,6 +470,7 @@ CRUD operations for Policy records. | `disabled` | Boolean | Yes | | `policyType` | String | Yes | | `data` | JSON | Yes | +| `withCheck` | JSON | Yes | | `smartTags` | JSON | Yes | | `category` | ObjectCategory | Yes | | `tags` | String | Yes | @@ -477,13 +481,13 @@ CRUD operations for Policy records. ```typescript // List all policy records -const items = await db.policy.findMany({ select: { id: true, databaseId: true, tableId: true, name: true, granteeName: true, privilege: true, permissive: true, disabled: true, policyType: true, data: true, smartTags: true, category: true, tags: true, createdAt: true, updatedAt: true } }).execute(); +const items = await db.policy.findMany({ select: { id: true, databaseId: true, tableId: true, name: true, granteeName: true, privilege: true, permissive: true, disabled: true, policyType: true, data: true, withCheck: true, smartTags: true, category: true, tags: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.policy.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, name: true, granteeName: true, privilege: true, permissive: true, disabled: true, policyType: true, data: true, smartTags: true, category: true, tags: true, createdAt: true, updatedAt: true } }).execute(); +const item = await db.policy.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, name: true, granteeName: true, privilege: true, permissive: true, disabled: true, policyType: true, data: true, withCheck: true, smartTags: true, category: true, tags: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.policy.create({ data: { databaseId: '', tableId: '', name: '', granteeName: '', privilege: '', permissive: '', disabled: '', policyType: '', data: '', smartTags: '', category: '', tags: '' }, select: { id: true } }).execute(); +const created = await db.policy.create({ data: { databaseId: '', tableId: '', name: '', granteeName: '', privilege: '', permissive: '', disabled: '', policyType: '', data: '', withCheck: '', smartTags: '', category: '', tags: '' }, select: { id: true } }).execute(); // Update const updated = await db.policy.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); @@ -1609,6 +1613,7 @@ CRUD operations for Database records. | `name` | String | Yes | | `label` | String | Yes | | `hash` | UUID | Yes | +| `platform` | Boolean | Yes | | `createdAt` | Datetime | No | | `updatedAt` | Datetime | No | @@ -1616,13 +1621,13 @@ CRUD operations for Database records. ```typescript // List all database records -const items = await db.database.findMany({ select: { id: true, ownerId: true, schemaHash: true, name: true, label: true, hash: true, createdAt: true, updatedAt: true } }).execute(); +const items = await db.database.findMany({ select: { id: true, ownerId: true, schemaHash: true, name: true, label: true, hash: true, platform: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.database.findOne({ id: '', select: { id: true, ownerId: true, schemaHash: true, name: true, label: true, hash: true, createdAt: true, updatedAt: true } }).execute(); +const item = await db.database.findOne({ id: '', select: { id: true, ownerId: true, schemaHash: true, name: true, label: true, hash: true, platform: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.database.create({ data: { ownerId: '', schemaHash: '', name: '', label: '', hash: '' }, select: { id: true } }).execute(); +const created = await db.database.create({ data: { ownerId: '', schemaHash: '', name: '', label: '', hash: '', platform: '' }, select: { id: true } }).execute(); // Update const updated = await db.database.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute(); @@ -1755,6 +1760,47 @@ const updated = await db.databaseSetting.update({ where: { id: '' }, data: const deleted = await db.databaseSetting.delete({ where: { id: '' } }).execute(); ``` +### `db.astMigration` + +CRUD operations for AstMigration records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | Int | No | +| `databaseId` | UUID | Yes | +| `name` | String | Yes | +| `requires` | String | Yes | +| `payload` | JSON | Yes | +| `deploys` | String | Yes | +| `deploy` | JSON | Yes | +| `revert` | JSON | Yes | +| `verify` | JSON | Yes | +| `createdAt` | Datetime | No | +| `action` | String | Yes | +| `actionId` | UUID | Yes | +| `actorId` | UUID | Yes | + +**Operations:** + +```typescript +// List all astMigration records +const items = await db.astMigration.findMany({ select: { id: true, databaseId: true, name: true, requires: true, payload: true, deploys: true, deploy: true, revert: true, verify: true, createdAt: true, action: true, actionId: true, actorId: true } }).execute(); + +// Get one by id +const item = await db.astMigration.findOne({ id: '', select: { id: true, databaseId: true, name: true, requires: true, payload: true, deploys: true, deploy: true, revert: true, verify: true, createdAt: true, action: true, actionId: true, actorId: true } }).execute(); + +// Create +const created = await db.astMigration.create({ data: { databaseId: '', name: '', requires: '', payload: '', deploys: '', deploy: '', revert: '', verify: '', action: '', actionId: '', actorId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.astMigration.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.astMigration.delete({ where: { id: '' } }).execute(); +``` + ### `db.webauthnSetting` CRUD operations for WebauthnSetting records. @@ -1801,47 +1847,6 @@ const updated = await db.webauthnSetting.update({ where: { id: '' }, data: const deleted = await db.webauthnSetting.delete({ where: { id: '' } }).execute(); ``` -### `db.astMigration` - -CRUD operations for AstMigration records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | Int | No | -| `databaseId` | UUID | Yes | -| `name` | String | Yes | -| `requires` | String | Yes | -| `payload` | JSON | Yes | -| `deploys` | String | Yes | -| `deploy` | JSON | Yes | -| `revert` | JSON | Yes | -| `verify` | JSON | Yes | -| `createdAt` | Datetime | No | -| `action` | String | Yes | -| `actionId` | UUID | Yes | -| `actorId` | UUID | Yes | - -**Operations:** - -```typescript -// List all astMigration records -const items = await db.astMigration.findMany({ select: { id: true, databaseId: true, name: true, requires: true, payload: true, deploys: true, deploy: true, revert: true, verify: true, createdAt: true, action: true, actionId: true, actorId: true } }).execute(); - -// Get one by id -const item = await db.astMigration.findOne({ id: '', select: { id: true, databaseId: true, name: true, requires: true, payload: true, deploys: true, deploy: true, revert: true, verify: true, createdAt: true, action: true, actionId: true, actorId: true } }).execute(); - -// Create -const created = await db.astMigration.create({ data: { databaseId: '', name: '', requires: '', payload: '', deploys: '', deploy: '', revert: '', verify: '', action: '', actionId: '', actorId: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.astMigration.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.astMigration.delete({ where: { id: '' } }).execute(); -``` - ## Custom Operations ### `db.query.applyRegistryDefaults` @@ -1905,36 +1910,6 @@ rejectDatabaseTransfer const result = await db.mutation.rejectDatabaseTransfer({ input: { transferId: '' } }).execute(); ``` -### `db.mutation.provisionDatabaseWithUser` - -provisionDatabaseWithUser - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | ProvisionDatabaseWithUserInput (required) | - -```typescript -const result = await db.mutation.provisionDatabaseWithUser({ input: { pDatabaseName: '', pDomain: '', pSubdomain: '', pModules: '', pOptions: '' } }).execute(); -``` - -### `db.mutation.bootstrapUser` - -bootstrapUser - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | BootstrapUserInput (required) | - -```typescript -const result = await db.mutation.bootstrapUser({ input: '' }).execute(); -``` - ### `db.mutation.setFieldOrder` setFieldOrder @@ -1965,35 +1940,25 @@ applyRls const result = await db.mutation.applyRls({ input: '' }).execute(); ``` -### `db.mutation.createUserDatabase` - -Creates a new user database with all required modules, permissions, and RLS policies. +### `db.mutation.requestDatabase` -Parameters: - - database_name: Name for the new database (required) - - owner_id: UUID of the owner user (required) - - include_invites: Include invite system (default: true) - - include_groups: Include group-level memberships (default: false) - - include_levels: Include events/analytics (default: false) - - bitlen: Bit length for permission masks (default: 64) - - tokens_expiration: Token expiration interval (default: 30 days) +Requests a database and returns a ticket (database_provision_module row) to poll. -Returns the database_id UUID of the newly created database. +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 with exactly the requested modules. Poll the ticket until status = 'completed'; it then carries database_id and fulfilled_at. Example usage: - SELECT metaschema_public.create_user_database('my_app', 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'::uuid); - SELECT metaschema_public.create_user_database('my_app', 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'::uuid, true, true); -- with invites and groups - + SELECT * FROM metaschema_public.request_database('my_app', 'example.com', preset_slug := 'full'); + SELECT * FROM metaschema_public.request_database('my_app', 'example.com', modules := '["users_module", "emails_module"]'::jsonb); - **Type:** mutation - **Arguments:** | Argument | Type | |----------|------| - | `input` | CreateUserDatabaseInput (required) | + | `input` | RequestDatabaseInput (required) | ```typescript -const result = await db.mutation.createUserDatabase({ input: '' }).execute(); +const result = await db.mutation.requestDatabase({ input: '' }).execute(); ``` ### `db.mutation.provisionBucket` diff --git a/sdk/constructive-sdk/src/api/orm/index.ts b/sdk/constructive-sdk/src/api/orm/index.ts index bde4dcc042..ead83692e0 100644 --- a/sdk/constructive-sdk/src/api/orm/index.ts +++ b/sdk/constructive-sdk/src/api/orm/index.ts @@ -49,8 +49,8 @@ import { DatabaseModel } from './models/database'; import { RlsSettingModel } from './models/rlsSetting'; import { SqlActionModel } from './models/sqlAction'; import { DatabaseSettingModel } from './models/databaseSetting'; -import { WebauthnSettingModel } from './models/webauthnSetting'; import { AstMigrationModel } from './models/astMigration'; +import { WebauthnSettingModel } from './models/webauthnSetting'; import { createQueryOperations } from './query'; import { createMutationOperations } from './mutation'; export type { OrmClientConfig, QueryResult, GraphQLError, GraphQLAdapter } from './client'; @@ -130,8 +130,8 @@ export function createClient(config: OrmClientConfig) { rlsSetting: new RlsSettingModel(client), sqlAction: new SqlActionModel(client), databaseSetting: new DatabaseSettingModel(client), - webauthnSetting: new WebauthnSettingModel(client), astMigration: new AstMigrationModel(client), + webauthnSetting: new WebauthnSettingModel(client), query: createQueryOperations(client), mutation: createMutationOperations(client), }; diff --git a/sdk/constructive-sdk/src/api/orm/input-types.ts b/sdk/constructive-sdk/src/api/orm/input-types.ts index 60f796a207..ecca204945 100644 --- a/sdk/constructive-sdk/src/api/orm/input-types.ts +++ b/sdk/constructive-sdk/src/api/orm/input-types.ts @@ -276,6 +276,8 @@ export interface Table { pluralName?: string | null; singularName?: string | null; tags?: string[] | null; + /** Declarative step-up auth guard: jsonb object mapping DML verbs (INSERT, UPDATE, DELETE) to a step-up spec. Values: true (default password_or_mfa), a type string (password / mfa / password_or_mfa), or an object {type, min_age, min_age_lookup, conditions} where min_age is an interval string (e.g. 6 hours) gating the guard to rows older than that age (UPDATE/DELETE only), min_age_lookup resolves per-row windows from a lookup table, and conditions is a declarative WHEN-clause tree compiled by build_condition_expr. */ + stepUp?: Record | null; partitioned?: boolean | null; partitionStrategy?: string | null; partitionKeyNames?: string[] | null; @@ -309,6 +311,8 @@ export interface Field { isRequired?: boolean | null; apiRequired?: boolean | null; defaultValue?: Record | null; + generationExpression?: Record | null; + generationType?: string | null; type?: Record | null; fieldOrder?: number | null; regexp?: string | null; @@ -396,6 +400,8 @@ export interface Policy { disabled?: boolean | null; policyType?: string | null; data?: Record | null; + /** Optional WITH CHECK override node {"$type": "Authz...", "data": {...}}. Only valid for UPDATE policies; NULL inherits the USING expression. */ + withCheck?: Record | null; smartTags?: Record | null; category?: ObjectCategory | null; tags?: string[] | null; @@ -839,6 +845,7 @@ export interface Database { name?: string | null; label?: string | null; hash?: string | null; + platform?: boolean | null; createdAt?: string | null; updatedAt?: string | null; } @@ -917,6 +924,21 @@ export interface DatabaseSetting { /** Freeform metadata for tooling and operational notes */ annotations?: Record | null; } +export interface AstMigration { + id: number; + databaseId?: string | null; + name?: string | null; + requires?: string[] | null; + payload?: Record | null; + deploys?: string | null; + deploy?: Record | null; + revert?: Record | null; + verify?: Record | null; + createdAt?: string | null; + action?: string | null; + actionId?: string | null; + actorId?: string | null; +} /** Per-database WebAuthn/passkey runtime configuration; typed replacement for api_modules webauthn_challenge JSONB entries */ export interface WebauthnSetting { /** Unique identifier for this WebAuthn settings record */ @@ -956,21 +978,6 @@ export interface WebauthnSetting { /** Challenge TTL in seconds (default 300 = 5 minutes) */ challengeExpirySeconds?: string | null; } -export interface AstMigration { - id: number; - databaseId?: string | null; - name?: string | null; - requires?: string[] | null; - payload?: Record | null; - deploys?: string | null; - deploy?: Record | null; - revert?: Record | null; - verify?: Record | null; - createdAt?: string | null; - action?: string | null; - actionId?: string | null; - actorId?: string | null; -} // ============ Relation Helper Types ============ export interface ConnectionResult { nodes: T[]; @@ -1248,6 +1255,7 @@ export interface SqlActionRelations {} export interface DatabaseSettingRelations { database?: Database | null; } +export interface AstMigrationRelations {} export interface WebauthnSettingRelations { credentialsSchema?: Schema | null; credentialsTable?: Table | null; @@ -1260,7 +1268,6 @@ export interface WebauthnSettingRelations { sessionsTable?: Table | null; userField?: Field | null; } -export interface AstMigrationRelations {} // ============ Entity Types With Relations ============ export type FunctionWithRelations = Function & FunctionRelations; export type SchemaWithRelations = Schema & SchemaRelations; @@ -1308,8 +1315,8 @@ export type DatabaseWithRelations = Database & DatabaseRelations; export type RlsSettingWithRelations = RlsSetting & RlsSettingRelations; export type SqlActionWithRelations = SqlAction & SqlActionRelations; export type DatabaseSettingWithRelations = DatabaseSetting & DatabaseSettingRelations; -export type WebauthnSettingWithRelations = WebauthnSetting & WebauthnSettingRelations; export type AstMigrationWithRelations = AstMigration & AstMigrationRelations; +export type WebauthnSettingWithRelations = WebauthnSetting & WebauthnSettingRelations; // ============ Entity Select Types ============ export type FunctionSelect = { id?: boolean; @@ -1404,6 +1411,7 @@ export type TableSelect = { pluralName?: boolean; singularName?: boolean; tags?: boolean; + stepUp?: boolean; partitioned?: boolean; partitionStrategy?: boolean; partitionKeyNames?: boolean; @@ -1551,6 +1559,8 @@ export type FieldSelect = { isRequired?: boolean; apiRequired?: boolean; defaultValue?: boolean; + generationExpression?: boolean; + generationType?: boolean; type?: boolean; fieldOrder?: boolean; regexp?: boolean; @@ -1692,6 +1702,7 @@ export type PolicySelect = { disabled?: boolean; policyType?: boolean; data?: boolean; + withCheck?: boolean; smartTags?: boolean; category?: boolean; tags?: boolean; @@ -2298,6 +2309,7 @@ export type DatabaseSelect = { name?: boolean; label?: boolean; hash?: boolean; + platform?: boolean; createdAt?: boolean; updatedAt?: boolean; databaseSetting?: { @@ -2611,6 +2623,21 @@ export type DatabaseSettingSelect = { select: DatabaseSelect; }; }; +export type AstMigrationSelect = { + id?: boolean; + databaseId?: boolean; + name?: boolean; + requires?: boolean; + payload?: boolean; + deploys?: boolean; + deploy?: boolean; + revert?: boolean; + verify?: boolean; + createdAt?: boolean; + action?: boolean; + actionId?: boolean; + actorId?: boolean; +}; export type WebauthnSettingSelect = { id?: boolean; databaseId?: boolean; @@ -2661,21 +2688,6 @@ export type WebauthnSettingSelect = { select: FieldSelect; }; }; -export type AstMigrationSelect = { - id?: boolean; - databaseId?: boolean; - name?: boolean; - requires?: boolean; - payload?: boolean; - deploys?: boolean; - deploy?: boolean; - revert?: boolean; - verify?: boolean; - createdAt?: boolean; - action?: boolean; - actionId?: boolean; - actorId?: boolean; -}; // ============ Table Filter Types ============ export interface FunctionFilter { /** Filter by the object’s `id` field. */ @@ -2794,6 +2806,8 @@ export interface TableFilter { singularName?: StringFilter; /** Filter by the object’s `tags` field. */ tags?: StringListFilter; + /** Filter by the object’s `stepUp` field. */ + stepUp?: JSONFilter; /** Filter by the object’s `partitioned` field. */ partitioned?: BooleanFilter; /** Filter by the object’s `partitionStrategy` field. */ @@ -2948,6 +2962,10 @@ export interface FieldFilter { apiRequired?: BooleanFilter; /** Filter by the object’s `defaultValue` field. */ defaultValue?: JSONFilter; + /** Filter by the object’s `generationExpression` field. */ + generationExpression?: JSONFilter; + /** Filter by the object’s `generationType` field. */ + generationType?: StringFilter; /** Filter by the object’s `type` field. */ type?: JSONFilter; /** Filter by the object’s `fieldOrder` field. */ @@ -3178,6 +3196,8 @@ export interface PolicyFilter { policyType?: StringFilter; /** Filter by the object’s `data` field. */ data?: JSONFilter; + /** Filter by the object’s `withCheck` field. */ + withCheck?: JSONFilter; /** Filter by the object’s `smartTags` field. */ smartTags?: JSONFilter; /** Filter by the object’s `category` field. */ @@ -4178,6 +4198,8 @@ export interface DatabaseFilter { label?: StringFilter; /** Filter by the object’s `hash` field. */ hash?: UUIDFilter; + /** Filter by the object’s `platform` field. */ + platform?: BooleanFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; /** Filter by the object’s `updatedAt` field. */ @@ -4491,6 +4513,40 @@ export interface DatabaseSettingFilter { /** Filter by the object’s `database` relation. */ database?: DatabaseFilter; } +export interface AstMigrationFilter { + /** Filter by the object’s `id` field. */ + id?: IntFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `requires` field. */ + requires?: StringListFilter; + /** Filter by the object’s `payload` field. */ + payload?: JSONFilter; + /** Filter by the object’s `deploys` field. */ + deploys?: StringFilter; + /** Filter by the object’s `deploy` field. */ + deploy?: JSONFilter; + /** Filter by the object’s `revert` field. */ + revert?: JSONFilter; + /** Filter by the object’s `verify` field. */ + verify?: JSONFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `action` field. */ + action?: StringFilter; + /** Filter by the object’s `actionId` field. */ + actionId?: UUIDFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: AstMigrationFilter[]; + /** Checks for any expressions in this list. */ + or?: AstMigrationFilter[]; + /** Negates the expression. */ + not?: AstMigrationFilter; +} export interface WebauthnSettingFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; @@ -4573,40 +4629,6 @@ export interface WebauthnSettingFilter { /** A related `userField` exists. */ userFieldExists?: boolean; } -export interface AstMigrationFilter { - /** Filter by the object’s `id` field. */ - id?: IntFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `requires` field. */ - requires?: StringListFilter; - /** Filter by the object’s `payload` field. */ - payload?: JSONFilter; - /** Filter by the object’s `deploys` field. */ - deploys?: StringFilter; - /** Filter by the object’s `deploy` field. */ - deploy?: JSONFilter; - /** Filter by the object’s `revert` field. */ - revert?: JSONFilter; - /** Filter by the object’s `verify` field. */ - verify?: JSONFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `action` field. */ - action?: StringFilter; - /** Filter by the object’s `actionId` field. */ - actionId?: UUIDFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: AstMigrationFilter[]; - /** Checks for any expressions in this list. */ - or?: AstMigrationFilter[]; - /** Negates the expression. */ - not?: AstMigrationFilter; -} // ============ OrderBy Types ============ export type FunctionOrderBy = | 'NATURAL' @@ -4682,6 +4704,8 @@ export type TableOrderBy = | 'SINGULAR_NAME_DESC' | 'TAGS_ASC' | 'TAGS_DESC' + | 'STEP_UP_ASC' + | 'STEP_UP_DESC' | 'PARTITIONED_ASC' | 'PARTITIONED_DESC' | 'PARTITION_STRATEGY_ASC' @@ -4748,6 +4772,10 @@ export type FieldOrderBy = | 'API_REQUIRED_DESC' | 'DEFAULT_VALUE_ASC' | 'DEFAULT_VALUE_DESC' + | 'GENERATION_EXPRESSION_ASC' + | 'GENERATION_EXPRESSION_DESC' + | 'GENERATION_TYPE_ASC' + | 'GENERATION_TYPE_DESC' | 'TYPE_ASC' | 'TYPE_DESC' | 'FIELD_ORDER_ASC' @@ -4922,6 +4950,8 @@ export type PolicyOrderBy = | 'POLICY_TYPE_DESC' | 'DATA_ASC' | 'DATA_DESC' + | 'WITH_CHECK_ASC' + | 'WITH_CHECK_DESC' | 'SMART_TAGS_ASC' | 'SMART_TAGS_DESC' | 'CATEGORY_ASC' @@ -5592,6 +5622,8 @@ export type DatabaseOrderBy = | 'LABEL_DESC' | 'HASH_ASC' | 'HASH_DESC' + | 'PLATFORM_ASC' + | 'PLATFORM_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' @@ -5686,6 +5718,34 @@ export type DatabaseSettingOrderBy = | 'LABELS_DESC' | 'ANNOTATIONS_ASC' | 'ANNOTATIONS_DESC'; +export type AstMigrationOrderBy = + | 'NATURAL' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'REQUIRES_ASC' + | 'REQUIRES_DESC' + | 'PAYLOAD_ASC' + | 'PAYLOAD_DESC' + | 'DEPLOYS_ASC' + | 'DEPLOYS_DESC' + | 'DEPLOY_ASC' + | 'DEPLOY_DESC' + | 'REVERT_ASC' + | 'REVERT_DESC' + | 'VERIFY_ASC' + | 'VERIFY_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'ACTION_ASC' + | 'ACTION_DESC' + | 'ACTION_ID_ASC' + | 'ACTION_ID_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC'; export type WebauthnSettingOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -5726,34 +5786,6 @@ export type WebauthnSettingOrderBy = | 'RESIDENT_KEY_DESC' | 'CHALLENGE_EXPIRY_SECONDS_ASC' | 'CHALLENGE_EXPIRY_SECONDS_DESC'; -export type AstMigrationOrderBy = - | 'NATURAL' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'REQUIRES_ASC' - | 'REQUIRES_DESC' - | 'PAYLOAD_ASC' - | 'PAYLOAD_DESC' - | 'DEPLOYS_ASC' - | 'DEPLOYS_DESC' - | 'DEPLOY_ASC' - | 'DEPLOY_DESC' - | 'REVERT_ASC' - | 'REVERT_DESC' - | 'VERIFY_ASC' - | 'VERIFY_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'ACTION_ASC' - | 'ACTION_DESC' - | 'ACTION_ID_ASC' - | 'ACTION_ID_DESC' - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC'; // ============ CRUD Input Types ============ export interface CreateFunctionInput { clientMutationId?: string; @@ -5829,6 +5861,7 @@ export interface CreateTableInput { pluralName?: string; singularName?: string; tags?: string[]; + stepUp?: Record; partitioned?: boolean; partitionStrategy?: string; partitionKeyNames?: string[]; @@ -5850,6 +5883,7 @@ export interface TablePatch { pluralName?: string | null; singularName?: string | null; tags?: string[] | null; + stepUp?: Record | null; partitioned?: boolean | null; partitionStrategy?: string | null; partitionKeyNames?: string[] | null; @@ -5911,6 +5945,8 @@ export interface CreateFieldInput { isRequired?: boolean; apiRequired?: boolean; defaultValue?: Record; + generationExpression?: Record; + generationType?: string; type: Record; fieldOrder?: number; regexp?: string; @@ -5932,6 +5968,8 @@ export interface FieldPatch { isRequired?: boolean | null; apiRequired?: boolean | null; defaultValue?: Record | null; + generationExpression?: Record | null; + generationType?: string | null; type?: Record | null; fieldOrder?: number | null; regexp?: string | null; @@ -6115,6 +6153,7 @@ export interface CreatePolicyInput { disabled?: boolean; policyType?: string; data?: Record; + withCheck?: Record; smartTags?: Record; category?: ObjectCategory; tags?: string[]; @@ -6130,6 +6169,7 @@ export interface PolicyPatch { disabled?: boolean | null; policyType?: string | null; data?: Record | null; + withCheck?: Record | null; smartTags?: Record | null; category?: ObjectCategory | null; tags?: string[] | null; @@ -7069,6 +7109,7 @@ export interface CreateDatabaseInput { name?: string; label?: string; hash?: string; + platform?: boolean; }; } export interface DatabasePatch { @@ -7077,6 +7118,7 @@ export interface DatabasePatch { name?: string | null; label?: string | null; hash?: string | null; + platform?: boolean | null; } export interface UpdateDatabaseInput { clientMutationId?: string; @@ -7207,6 +7249,44 @@ export interface DeleteDatabaseSettingInput { clientMutationId?: string; id: string; } +export interface CreateAstMigrationInput { + clientMutationId?: string; + astMigration: { + databaseId?: string; + name?: string; + requires?: string[]; + payload?: Record; + deploys?: string; + deploy?: Record; + revert?: Record; + verify?: Record; + action?: string; + actionId?: string; + actorId?: string; + }; +} +export interface AstMigrationPatch { + databaseId?: string | null; + name?: string | null; + requires?: string[] | null; + payload?: Record | null; + deploys?: string | null; + deploy?: Record | null; + revert?: Record | null; + verify?: Record | null; + action?: string | null; + actionId?: string | null; + actorId?: string | null; +} +export interface UpdateAstMigrationInput { + clientMutationId?: string; + id: number; + astMigrationPatch: AstMigrationPatch; +} +export interface DeleteAstMigrationInput { + clientMutationId?: string; + id: number; +} export interface CreateWebauthnSettingInput { clientMutationId?: string; webauthnSetting: { @@ -7257,44 +7337,6 @@ export interface DeleteWebauthnSettingInput { clientMutationId?: string; id: string; } -export interface CreateAstMigrationInput { - clientMutationId?: string; - astMigration: { - databaseId?: string; - name?: string; - requires?: string[]; - payload?: Record; - deploys?: string; - deploy?: Record; - revert?: Record; - verify?: Record; - action?: string; - actionId?: string; - actorId?: string; - }; -} -export interface AstMigrationPatch { - databaseId?: string | null; - name?: string | null; - requires?: string[] | null; - payload?: Record | null; - deploys?: string | null; - deploy?: Record | null; - revert?: Record | null; - verify?: Record | null; - action?: string | null; - actionId?: string | null; - actorId?: string | null; -} -export interface UpdateAstMigrationInput { - clientMutationId?: string; - id: number; - astMigrationPatch: AstMigrationPatch; -} -export interface DeleteAstMigrationInput { - clientMutationId?: string; - id: number; -} // ============ Connection Fields Map ============ export const connectionFieldsMap = { Schema: { @@ -7399,24 +7441,6 @@ export interface RejectDatabaseTransferInput { clientMutationId?: string; transferId?: string; } -export interface ProvisionDatabaseWithUserInput { - clientMutationId?: string; - pDatabaseName?: string; - pDomain?: string; - pSubdomain?: string; - pModules?: Record; - pOptions?: Record; -} -export interface BootstrapUserInput { - clientMutationId?: string; - targetDatabaseId?: string; - password?: string; - isAdmin?: boolean; - isOwner?: boolean; - username?: string; - displayName?: string; - returnApiKey?: boolean; -} export interface SetFieldOrderInput { clientMutationId?: string; fieldIds?: string[]; @@ -7431,15 +7455,14 @@ export interface ApplyRlsInput { permissive?: boolean; name?: string; } -export interface CreateUserDatabaseInput { +export interface RequestDatabaseInput { clientMutationId?: string; databaseName?: string; - ownerId?: string; - includeInvites?: boolean; - includeGroups?: boolean; - includeLevels?: boolean; - bitlen?: number; - tokensExpiration?: IntervalInput; + domain?: string; + presetSlug?: string; + modules?: Record; + options?: Record; + subdomain?: string; } export interface ProvisionBucketInput { /** The logical bucket key (e.g., "public", "private") */ @@ -8479,6 +8502,8 @@ export interface TableInput { pluralName?: string; singularName?: string; tags?: string[]; + /** Declarative step-up auth guard: jsonb object mapping DML verbs (INSERT, UPDATE, DELETE) to a step-up spec. Values: true (default password_or_mfa), a type string (password / mfa / password_or_mfa), or an object {type, min_age, min_age_lookup, conditions} where min_age is an interval string (e.g. 6 hours) gating the guard to rows older than that age (UPDATE/DELETE only), min_age_lookup resolves per-row windows from a lookup table, and conditions is a declarative WHEN-clause tree compiled by build_condition_expr. */ + stepUp?: Record; partitioned?: boolean; partitionStrategy?: string; partitionKeyNames?: string[]; @@ -8514,6 +8539,8 @@ export interface FieldInput { isRequired?: boolean; apiRequired?: boolean; defaultValue?: Record; + generationExpression?: Record; + generationType?: string; type: Record; fieldOrder?: number; regexp?: string; @@ -8606,6 +8633,8 @@ export interface PolicyInput { disabled?: boolean; policyType?: string; data?: Record; + /** Optional WITH CHECK override node {"$type": "Authz...", "data": {...}}. Only valid for UPDATE policies; NULL inherits the USING expression. */ + withCheck?: Record; smartTags?: Record; category?: ObjectCategory; tags?: string[]; @@ -9066,6 +9095,7 @@ export interface DatabaseInput { name?: string; label?: string; hash?: string; + platform?: boolean; createdAt?: string; updatedAt?: string; } @@ -9145,6 +9175,22 @@ export interface DatabaseSettingInput { /** Freeform metadata for tooling and operational notes */ annotations?: Record; } +/** An input for mutations affecting `AstMigration` */ +export interface AstMigrationInput { + id?: number; + databaseId?: string; + name?: string; + requires?: string[]; + payload?: Record; + deploys?: string; + deploy?: Record; + revert?: Record; + verify?: Record; + createdAt?: string; + action?: string; + actionId?: string; + actorId?: string; +} /** An input for mutations affecting `WebauthnSetting` */ export interface WebauthnSettingInput { /** Unique identifier for this WebAuthn settings record */ @@ -9184,41 +9230,6 @@ export interface WebauthnSettingInput { /** Challenge TTL in seconds (default 300 = 5 minutes) */ challengeExpirySeconds?: string; } -/** An input for mutations affecting `AstMigration` */ -export interface AstMigrationInput { - id?: number; - databaseId?: string; - name?: string; - requires?: string[]; - payload?: Record; - deploys?: string; - deploy?: Record; - revert?: Record; - verify?: Record; - createdAt?: string; - action?: string; - actionId?: string; - actorId?: string; -} -/** An interval of time that has passed where the smallest distinct unit is a second. */ -export interface IntervalInput { - /** - * A quantity of seconds. This is the only non-integer field, as all the other - * fields will dump their overflow into a smaller unit of time. Intervals don’t - * have a smaller unit than seconds. - */ - seconds?: number; - /** A quantity of minutes. */ - minutes?: number; - /** A quantity of hours. */ - hours?: number; - /** A quantity of days. */ - days?: number; - /** A quantity of months. */ - months?: number; - /** A quantity of years. */ - years?: number; -} /** A filter to be used against `Table` object types. All fields are combined with a logical ‘and.’ */ export interface TableFilter { /** Filter by the object’s `id` field. */ @@ -9249,6 +9260,8 @@ export interface TableFilter { singularName?: StringFilter; /** Filter by the object’s `tags` field. */ tags?: StringListFilter; + /** Filter by the object’s `stepUp` field. */ + stepUp?: JSONFilter; /** Filter by the object’s `partitioned` field. */ partitioned?: BooleanFilter; /** Filter by the object’s `partitionStrategy` field. */ @@ -9624,6 +9637,10 @@ export interface FieldFilter { apiRequired?: BooleanFilter; /** Filter by the object’s `defaultValue` field. */ defaultValue?: JSONFilter; + /** Filter by the object’s `generationExpression` field. */ + generationExpression?: JSONFilter; + /** Filter by the object’s `generationType` field. */ + generationType?: StringFilter; /** Filter by the object’s `type` field. */ type?: JSONFilter; /** Filter by the object’s `fieldOrder` field. */ @@ -9814,6 +9831,8 @@ export interface PolicyFilter { policyType?: StringFilter; /** Filter by the object’s `data` field. */ data?: JSONFilter; + /** Filter by the object’s `withCheck` field. */ + withCheck?: JSONFilter; /** Filter by the object’s `smartTags` field. */ smartTags?: JSONFilter; /** Filter by the object’s `category` field. */ @@ -10900,6 +10919,8 @@ export interface DatabaseFilter { label?: StringFilter; /** Filter by the object’s `hash` field. */ hash?: UUIDFilter; + /** Filter by the object’s `platform` field. */ + platform?: BooleanFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; /** Filter by the object’s `updatedAt` field. */ @@ -11454,26 +11475,6 @@ export type RejectDatabaseTransferPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; -export interface ProvisionDatabaseWithUserPayload { - clientMutationId?: string | null; - result?: ProvisionDatabaseWithUserRecord[] | null; -} -export type ProvisionDatabaseWithUserPayloadSelect = { - clientMutationId?: boolean; - result?: { - select: ProvisionDatabaseWithUserRecordSelect; - }; -}; -export interface BootstrapUserPayload { - clientMutationId?: string | null; - result?: BootstrapUserRecord[] | null; -} -export type BootstrapUserPayloadSelect = { - clientMutationId?: boolean; - result?: { - select: BootstrapUserRecordSelect; - }; -}; export interface SetFieldOrderPayload { clientMutationId?: string | null; } @@ -11486,13 +11487,15 @@ export interface ApplyRlsPayload { export type ApplyRlsPayloadSelect = { clientMutationId?: boolean; }; -export interface CreateUserDatabasePayload { +export interface RequestDatabasePayload { clientMutationId?: string | null; - result?: string | null; + result?: DatabaseProvisionModule | null; } -export type CreateUserDatabasePayloadSelect = { +export type RequestDatabasePayloadSelect = { clientMutationId?: boolean; - result?: boolean; + result?: { + select: DatabaseProvisionModuleSelect; + }; }; export interface ProvisionBucketPayload { /** Whether provisioning succeeded */ @@ -13428,6 +13431,17 @@ export type DeleteDatabaseSettingPayloadSelect = { select: DatabaseSettingEdgeSelect; }; }; +export interface CreateAstMigrationPayload { + clientMutationId?: string | null; + /** The `AstMigration` that was created by this mutation. */ + astMigration?: AstMigration | null; +} +export type CreateAstMigrationPayloadSelect = { + clientMutationId?: boolean; + astMigration?: { + select: AstMigrationSelect; + }; +}; export interface CreateWebauthnSettingPayload { clientMutationId?: string | null; /** The `WebauthnSetting` that was created by this mutation. */ @@ -13473,44 +13487,59 @@ export type DeleteWebauthnSettingPayloadSelect = { select: WebauthnSettingEdgeSelect; }; }; -export interface CreateAstMigrationPayload { - clientMutationId?: string | null; - /** The `AstMigration` that was created by this mutation. */ - astMigration?: AstMigration | null; +/** Tracks database provisioning requests and their status. The BEFORE INSERT trigger creates the database and sets database_id before RLS policies are evaluated. */ +export interface DatabaseProvisionModule { + id: string; + /** The name for the new database */ + databaseName: string; + /** UUID of the user who owns this database */ + ownerId: string; + /** Subdomain prefix for the database. If null, auto-generated using unique_names + random chars */ + subdomain?: string | null; + /** Base domain for the database (e.g., example.com) */ + domain: string; + /** JSONB array of modules to install. Each element is either a string ("users_module") or a [name, options] tuple (["permissions_module", {"scope": "app"}]) */ + modules: Record; + /** Additional configuration options for provisioning */ + options: Record; + /** When true, copies the owner user and password hash from source database to the newly provisioned database */ + bootstrapUser: boolean; + /** Current status: pending, in_progress, completed, or failed */ + status: string; + errorMessage?: string | null; + /** The database the owner user is copied from during bootstrap (captured from JWT context at provision time) */ + sourceDatabaseId?: string | null; + /** Status of the deferred owner bootstrap job: not_requested, pending, completed, or failed */ + bootstrapStatus: string; + /** Error message from the most recent failed bootstrap attempt */ + bootstrapError?: string | null; + /** The ID of the provisioned database (set by trigger before RLS check) */ + databaseId?: string | null; + createdAt: string; + updatedAt: string; + completedAt?: string | null; + /** 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; } -export type CreateAstMigrationPayloadSelect = { - clientMutationId?: boolean; - astMigration?: { - select: AstMigrationSelect; - }; -}; -export interface ProvisionDatabaseWithUserRecord { - outDatabaseId?: string | null; - outApiKey?: string | null; -} -export type ProvisionDatabaseWithUserRecordSelect = { - outDatabaseId?: boolean; - outApiKey?: boolean; -}; -export interface BootstrapUserRecord { - outUserId?: string | null; - outEmail?: string | null; - outUsername?: string | null; - outDisplayName?: string | null; - outIsAdmin?: boolean | null; - outIsOwner?: boolean | null; - outIsSudo?: boolean | null; - outApiKey?: string | null; -} -export type BootstrapUserRecordSelect = { - outUserId?: boolean; - outEmail?: boolean; - outUsername?: boolean; - outDisplayName?: boolean; - outIsAdmin?: boolean; - outIsOwner?: boolean; - outIsSudo?: boolean; - outApiKey?: boolean; +export type DatabaseProvisionModuleSelect = { + id?: boolean; + databaseName?: boolean; + ownerId?: boolean; + subdomain?: boolean; + domain?: boolean; + modules?: boolean; + options?: boolean; + bootstrapUser?: boolean; + status?: boolean; + errorMessage?: boolean; + sourceDatabaseId?: boolean; + bootstrapStatus?: boolean; + bootstrapError?: boolean; + databaseId?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + completedAt?: boolean; + fulfilledAt?: boolean; }; /** A `Function` edge in the connection. */ export interface FunctionEdge { diff --git a/sdk/constructive-sdk/src/api/orm/models/index.ts b/sdk/constructive-sdk/src/api/orm/models/index.ts index ddc91f27a9..09182060f7 100644 --- a/sdk/constructive-sdk/src/api/orm/models/index.ts +++ b/sdk/constructive-sdk/src/api/orm/models/index.ts @@ -47,5 +47,5 @@ export { DatabaseModel } from './database'; export { RlsSettingModel } from './rlsSetting'; export { SqlActionModel } from './sqlAction'; export { DatabaseSettingModel } from './databaseSetting'; -export { WebauthnSettingModel } from './webauthnSetting'; export { AstMigrationModel } from './astMigration'; +export { WebauthnSettingModel } from './webauthnSetting'; diff --git a/sdk/constructive-sdk/src/api/orm/mutation/index.ts b/sdk/constructive-sdk/src/api/orm/mutation/index.ts index ef3c67f877..72af77babd 100644 --- a/sdk/constructive-sdk/src/api/orm/mutation/index.ts +++ b/sdk/constructive-sdk/src/api/orm/mutation/index.ts @@ -10,29 +10,23 @@ import type { AcceptDatabaseTransferInput, CancelDatabaseTransferInput, RejectDatabaseTransferInput, - ProvisionDatabaseWithUserInput, - BootstrapUserInput, SetFieldOrderInput, ApplyRlsInput, - CreateUserDatabaseInput, + RequestDatabaseInput, ProvisionBucketInput, AcceptDatabaseTransferPayload, CancelDatabaseTransferPayload, RejectDatabaseTransferPayload, - ProvisionDatabaseWithUserPayload, - BootstrapUserPayload, SetFieldOrderPayload, ApplyRlsPayload, - CreateUserDatabasePayload, + RequestDatabasePayload, ProvisionBucketPayload, AcceptDatabaseTransferPayloadSelect, CancelDatabaseTransferPayloadSelect, RejectDatabaseTransferPayloadSelect, - ProvisionDatabaseWithUserPayloadSelect, - BootstrapUserPayloadSelect, SetFieldOrderPayloadSelect, ApplyRlsPayloadSelect, - CreateUserDatabasePayloadSelect, + RequestDatabasePayloadSelect, ProvisionBucketPayloadSelect, } from '../input-types'; import { connectionFieldsMap } from '../input-types'; @@ -45,12 +39,6 @@ export interface CancelDatabaseTransferVariables { export interface RejectDatabaseTransferVariables { input: RejectDatabaseTransferInput; } -export interface ProvisionDatabaseWithUserVariables { - input: ProvisionDatabaseWithUserInput; -} -export interface BootstrapUserVariables { - input: BootstrapUserInput; -} export interface SetFieldOrderVariables { input: SetFieldOrderInput; } @@ -58,26 +46,17 @@ export interface ApplyRlsVariables { input: ApplyRlsInput; } /** - * Variables for createUserDatabase - * Creates a new user database with all required modules, permissions, and RLS policies. - -Parameters: - - database_name: Name for the new database (required) - - owner_id: UUID of the owner user (required) - - include_invites: Include invite system (default: true) - - include_groups: Include group-level memberships (default: false) - - include_levels: Include events/analytics (default: false) - - bitlen: Bit length for permission masks (default: 64) - - tokens_expiration: Token expiration interval (default: 30 days) + * Variables for requestDatabase + * Requests a database and returns a ticket (database_provision_module row) to poll. -Returns the database_id UUID of the newly created database. +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 with exactly the requested modules. Poll the ticket until status = 'completed'; it then carries database_id and fulfilled_at. Example usage: - SELECT metaschema_public.create_user_database('my_app', 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'::uuid); - SELECT metaschema_public.create_user_database('my_app', 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'::uuid, true, true); -- with invites and groups + SELECT * FROM metaschema_public.request_database('my_app', 'example.com', preset_slug := 'full'); + SELECT * FROM metaschema_public.request_database('my_app', 'example.com', modules := '["users_module", "emails_module"]'::jsonb); */ -export interface CreateUserDatabaseVariables { - input: CreateUserDatabaseInput; +export interface RequestDatabaseVariables { + input: RequestDatabaseInput; } /** * Variables for provisionBucket @@ -178,64 +157,6 @@ export function createMutationOperations(client: OrmClient) { 'RejectDatabaseTransferPayload' ), }), - provisionDatabaseWithUser: ( - args: ProvisionDatabaseWithUserVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - provisionDatabaseWithUser: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'ProvisionDatabaseWithUser', - fieldName: 'provisionDatabaseWithUser', - ...buildCustomDocument( - 'mutation', - 'ProvisionDatabaseWithUser', - 'provisionDatabaseWithUser', - options.select, - args, - [ - { - name: 'input', - type: 'ProvisionDatabaseWithUserInput!', - }, - ], - connectionFieldsMap, - 'ProvisionDatabaseWithUserPayload' - ), - }), - bootstrapUser: ( - args: BootstrapUserVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - bootstrapUser: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'BootstrapUser', - fieldName: 'bootstrapUser', - ...buildCustomDocument( - 'mutation', - 'BootstrapUser', - 'bootstrapUser', - options.select, - args, - [ - { - name: 'input', - type: 'BootstrapUserInput!', - }, - ], - connectionFieldsMap, - 'BootstrapUserPayload' - ), - }), setFieldOrder: ( args: SetFieldOrderVariables, options: { @@ -294,33 +215,33 @@ export function createMutationOperations(client: OrmClient) { 'ApplyRlsPayload' ), }), - createUserDatabase: ( - args: CreateUserDatabaseVariables, + requestDatabase: ( + args: RequestDatabaseVariables, options: { select: S; - } & StrictSelect + } & StrictSelect ) => new QueryBuilder<{ - createUserDatabase: InferSelectResult | null; + requestDatabase: InferSelectResult | null; }>({ client, operation: 'mutation', - operationName: 'CreateUserDatabase', - fieldName: 'createUserDatabase', + operationName: 'RequestDatabase', + fieldName: 'requestDatabase', ...buildCustomDocument( 'mutation', - 'CreateUserDatabase', - 'createUserDatabase', + 'RequestDatabase', + 'requestDatabase', options.select, args, [ { name: 'input', - type: 'CreateUserDatabaseInput!', + type: 'RequestDatabaseInput!', }, ], connectionFieldsMap, - 'CreateUserDatabasePayload' + 'RequestDatabasePayload' ), }), provisionBucket: ( diff --git a/sdk/constructive-sdk/src/auth/README.md b/sdk/constructive-sdk/src/auth/README.md index e56c8f42cc..b24922f1cc 100644 --- a/sdk/constructive-sdk/src/auth/README.md +++ b/sdk/constructive-sdk/src/auth/README.md @@ -10,7 +10,7 @@ - **Tables:** 13 - **Custom queries:** 5 -- **Custom mutations:** 29 +- **Custom mutations:** 30 **Generators:** ORM diff --git a/sdk/constructive-sdk/src/auth/orm/README.md b/sdk/constructive-sdk/src/auth/orm/README.md index 343ccbb2bd..e92266058a 100644 --- a/sdk/constructive-sdk/src/auth/orm/README.md +++ b/sdk/constructive-sdk/src/auth/orm/README.md @@ -51,7 +51,7 @@ CRUD operations for Principal records. | `ownerId` | UUID | Yes | | `userId` | UUID | Yes | | `name` | String | Yes | -| `allowedMask` | BitString | Yes | +| `useAdminOwner` | Boolean | Yes | | `isReadOnly` | Boolean | Yes | | `bypassStepUp` | Boolean | Yes | @@ -59,13 +59,13 @@ CRUD operations for Principal records. ```typescript // List all principal records -const items = await db.principal.findMany({ select: { id: true, createdAt: true, updatedAt: true, ownerId: true, userId: true, name: true, allowedMask: true, isReadOnly: true, bypassStepUp: true } }).execute(); +const items = await db.principal.findMany({ select: { id: true, createdAt: true, updatedAt: true, ownerId: true, userId: true, name: true, useAdminOwner: true, isReadOnly: true, bypassStepUp: true } }).execute(); // Get one by principalId -const item = await db.principal.findOne({ principalId: '', select: { id: true, createdAt: true, updatedAt: true, ownerId: true, userId: true, name: true, allowedMask: true, isReadOnly: true, bypassStepUp: true } }).execute(); +const item = await db.principal.findOne({ principalId: '', select: { id: true, createdAt: true, updatedAt: true, ownerId: true, userId: true, name: true, useAdminOwner: true, isReadOnly: true, bypassStepUp: true } }).execute(); // Create -const created = await db.principal.create({ data: { id: '', ownerId: '', userId: '', name: '', allowedMask: '', isReadOnly: '', bypassStepUp: '' }, select: { principalId: true } }).execute(); +const created = await db.principal.create({ data: { id: '', ownerId: '', userId: '', name: '', useAdminOwner: '', isReadOnly: '', bypassStepUp: '' }, select: { principalId: true } }).execute(); // Update const updated = await db.principal.update({ where: { principalId: '' }, data: { id: '' }, select: { principalId: true } }).execute(); @@ -122,20 +122,21 @@ CRUD operations for PrincipalScopeOverride records. | `principalId` | UUID | Yes | | `membershipType` | Int | Yes | | `allowedMask` | BitString | Yes | -| `isAdmin` | Boolean | Yes | +| `useAdminOwner` | Boolean | Yes | +| `isActive` | Boolean | Yes | | `isReadOnly` | Boolean | Yes | **Operations:** ```typescript // List all principalScopeOverride records -const items = await db.principalScopeOverride.findMany({ select: { id: true, createdAt: true, updatedAt: true, principalId: true, membershipType: true, allowedMask: true, isAdmin: true, isReadOnly: true } }).execute(); +const items = await db.principalScopeOverride.findMany({ select: { id: true, createdAt: true, updatedAt: true, principalId: true, membershipType: true, allowedMask: true, useAdminOwner: true, isActive: true, isReadOnly: true } }).execute(); // Get one by id -const item = await db.principalScopeOverride.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, principalId: true, membershipType: true, allowedMask: true, isAdmin: true, isReadOnly: true } }).execute(); +const item = await db.principalScopeOverride.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, principalId: true, membershipType: true, allowedMask: true, useAdminOwner: true, isActive: true, isReadOnly: true } }).execute(); // Create -const created = await db.principalScopeOverride.create({ data: { principalId: '', membershipType: '', allowedMask: '', isAdmin: '', isReadOnly: '' }, select: { id: true } }).execute(); +const created = await db.principalScopeOverride.create({ data: { principalId: '', membershipType: '', allowedMask: '', useAdminOwner: '', isActive: '', isReadOnly: '' }, select: { id: true } }).execute(); // Update const updated = await db.principalScopeOverride.update({ where: { id: '' }, data: { principalId: '' }, select: { id: true } }).execute(); @@ -633,6 +634,21 @@ deleteOrgPrincipal const result = await db.mutation.deleteOrgPrincipal({ input: { principalId: '' } }).execute(); ``` +### `db.mutation.deletePrincipal` + +deletePrincipal + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | DeletePrincipalInput (required) | + +```typescript +const result = await db.mutation.deletePrincipal({ input: { principalId: '' } }).execute(); +``` + ### `db.mutation.disconnectAccount` disconnectAccount @@ -798,6 +814,21 @@ resetPassword const result = await db.mutation.resetPassword({ input: { roleId: '', resetToken: '', newPassword: '' } }).execute(); ``` +### `db.mutation.createOrgPrincipal` + +createOrgPrincipal + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | CreateOrgPrincipalInput (required) | + +```typescript +const result = await db.mutation.createOrgPrincipal({ input: { name: '', orgId: '', useAdminOwner: '', isReadOnly: '', bypassStepUp: '' } }).execute(); +``` + ### `db.mutation.signInCrossOrigin` signInCrossOrigin @@ -888,21 +919,6 @@ linkIdentity const result = await db.mutation.linkIdentity({ input: { service: '', identifier: '', details: '' } }).execute(); ``` -### `db.mutation.createOrgPrincipal` - -createOrgPrincipal - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | CreateOrgPrincipalInput (required) | - -```typescript -const result = await db.mutation.createOrgPrincipal({ input: { name: '', orgId: '', allowedMask: '', isReadOnly: '', bypassStepUp: '' } }).execute(); -``` - ### `db.mutation.extendTokenExpires` extendTokenExpires diff --git a/sdk/constructive-sdk/src/auth/orm/input-types.ts b/sdk/constructive-sdk/src/auth/orm/input-types.ts index f47ec67005..3f7f1df024 100644 --- a/sdk/constructive-sdk/src/auth/orm/input-types.ts +++ b/sdk/constructive-sdk/src/auth/orm/input-types.ts @@ -247,8 +247,8 @@ export interface Principal { userId?: string | null; /** Human-readable label for this principal (e.g., billing-bot, ci-deploy-key) */ name?: string | null; - /** Permission bitmask subset; all-1s means inherit all parent permissions */ - allowedMask?: string | null; + /** Whether this principal inherits admin/owner privileges from the owner */ + useAdminOwner?: boolean | null; /** Whether this principal is restricted to read-only operations */ isReadOnly?: boolean | null; /** Whether this principal bypasses MFA step-up requirements */ @@ -275,10 +275,12 @@ export interface PrincipalScopeOverride { principalId?: string | null; /** The scope level (membership_type) this override restricts */ membershipType?: number | null; - /** Permission bitmask for this scope; AND-masked with parent permissions during cascade */ + /** Optional permission mask; AND-masked with parent permissions during cascade. NULL means no extra mask. */ allowedMask?: string | null; - /** Whether this principal has admin access at this scope (default true = inherit from parent) */ - isAdmin?: boolean | null; + /** Whether this principal inherits admin/owner at this scope (default true = inherit from parent) */ + useAdminOwner?: boolean | null; + /** Whether this scope is active for this principal; false disables all access at this scope */ + isActive?: boolean | null; /** Whether this principal is restricted to read-only at this scope */ isReadOnly?: boolean | null; } @@ -506,7 +508,7 @@ export type PrincipalSelect = { ownerId?: boolean; userId?: boolean; name?: boolean; - allowedMask?: boolean; + useAdminOwner?: boolean; isReadOnly?: boolean; bypassStepUp?: boolean; owner?: { @@ -552,7 +554,8 @@ export type PrincipalScopeOverrideSelect = { principalId?: boolean; membershipType?: boolean; allowedMask?: boolean; - isAdmin?: boolean; + useAdminOwner?: boolean; + isActive?: boolean; isReadOnly?: boolean; principal?: { select: PrincipalSelect; @@ -743,8 +746,8 @@ export interface PrincipalFilter { userId?: UUIDFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; - /** Filter by the object’s `allowedMask` field. */ - allowedMask?: BitStringFilter; + /** Filter by the object’s `useAdminOwner` field. */ + useAdminOwner?: BooleanFilter; /** Filter by the object’s `isReadOnly` field. */ isReadOnly?: BooleanFilter; /** Filter by the object’s `bypassStepUp` field. */ @@ -807,8 +810,10 @@ export interface PrincipalScopeOverrideFilter { membershipType?: IntFilter; /** Filter by the object’s `allowedMask` field. */ allowedMask?: BitStringFilter; - /** Filter by the object’s `isAdmin` field. */ - isAdmin?: BooleanFilter; + /** Filter by the object’s `useAdminOwner` field. */ + useAdminOwner?: BooleanFilter; + /** Filter by the object’s `isActive` field. */ + isActive?: BooleanFilter; /** Filter by the object’s `isReadOnly` field. */ isReadOnly?: BooleanFilter; /** Checks for all expressions in this list. */ @@ -1139,8 +1144,8 @@ export type PrincipalOrderBy = | 'USER_ID_DESC' | 'NAME_ASC' | 'NAME_DESC' - | 'ALLOWED_MASK_ASC' - | 'ALLOWED_MASK_DESC' + | 'USE_ADMIN_OWNER_ASC' + | 'USE_ADMIN_OWNER_DESC' | 'IS_READ_ONLY_ASC' | 'IS_READ_ONLY_DESC' | 'BYPASS_STEP_UP_ASC' @@ -1177,8 +1182,10 @@ export type PrincipalScopeOverrideOrderBy = | 'MEMBERSHIP_TYPE_DESC' | 'ALLOWED_MASK_ASC' | 'ALLOWED_MASK_DESC' - | 'IS_ADMIN_ASC' - | 'IS_ADMIN_DESC' + | 'USE_ADMIN_OWNER_ASC' + | 'USE_ADMIN_OWNER_DESC' + | 'IS_ACTIVE_ASC' + | 'IS_ACTIVE_DESC' | 'IS_READ_ONLY_ASC' | 'IS_READ_ONLY_DESC'; export type EmailOrderBy = @@ -1392,7 +1399,7 @@ export interface CreatePrincipalInput { ownerId: string; userId: string; name?: string; - allowedMask?: string; + useAdminOwner?: boolean; isReadOnly?: boolean; bypassStepUp?: boolean; }; @@ -1401,7 +1408,7 @@ export interface PrincipalPatch { ownerId?: string | null; userId?: string | null; name?: string | null; - allowedMask?: string | null; + useAdminOwner?: boolean | null; isReadOnly?: boolean | null; bypassStepUp?: boolean | null; } @@ -1442,7 +1449,8 @@ export interface CreatePrincipalScopeOverrideInput { principalId: string; membershipType?: number; allowedMask?: string; - isAdmin?: boolean; + useAdminOwner?: boolean; + isActive?: boolean; isReadOnly?: boolean; }; } @@ -1450,7 +1458,8 @@ export interface PrincipalScopeOverridePatch { principalId?: string | null; membershipType?: number | null; allowedMask?: string | null; - isAdmin?: boolean | null; + useAdminOwner?: boolean | null; + isActive?: boolean | null; isReadOnly?: boolean | null; } export interface UpdatePrincipalScopeOverrideInput { @@ -1820,6 +1829,14 @@ export interface ResetPasswordInput { resetToken?: string; newPassword?: string; } +export interface CreateOrgPrincipalInput { + clientMutationId?: string; + name?: string; + orgId?: string; + useAdminOwner?: boolean; + isReadOnly?: boolean; + bypassStepUp?: boolean; +} export interface SignInCrossOriginInput { clientMutationId?: string; token?: string; @@ -1865,14 +1882,6 @@ export interface LinkIdentityInput { identifier: string; details?: Record; } -export interface CreateOrgPrincipalInput { - clientMutationId?: string; - name?: string; - orgId?: string; - allowedMask?: string; - isReadOnly?: boolean; - bypassStepUp?: boolean; -} export interface ExtendTokenExpiresInput { clientMutationId?: string; amount?: IntervalInput; @@ -2506,8 +2515,10 @@ export interface PrincipalScopeOverrideFilter { membershipType?: IntFilter; /** Filter by the object’s `allowedMask` field. */ allowedMask?: BitStringFilter; - /** Filter by the object’s `isAdmin` field. */ - isAdmin?: BooleanFilter; + /** Filter by the object’s `useAdminOwner` field. */ + useAdminOwner?: BooleanFilter; + /** Filter by the object’s `isActive` field. */ + isActive?: BooleanFilter; /** Filter by the object’s `isReadOnly` field. */ isReadOnly?: BooleanFilter; /** Checks for all expressions in this list. */ @@ -2533,8 +2544,8 @@ export interface PrincipalFilter { userId?: UUIDFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; - /** Filter by the object’s `allowedMask` field. */ - allowedMask?: BitStringFilter; + /** Filter by the object’s `useAdminOwner` field. */ + useAdminOwner?: BooleanFilter; /** Filter by the object’s `isReadOnly` field. */ isReadOnly?: BooleanFilter; /** Filter by the object’s `bypassStepUp` field. */ @@ -3142,6 +3153,14 @@ export type DeleteOrgPrincipalPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; +export interface DeletePrincipalPayload { + clientMutationId?: string | null; + result?: boolean | null; +} +export type DeletePrincipalPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; export interface DisconnectAccountPayload { clientMutationId?: string | null; result?: boolean | null; @@ -3230,6 +3249,14 @@ export type ResetPasswordPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; +export interface CreateOrgPrincipalPayload { + clientMutationId?: string | null; + result?: string | null; +} +export type CreateOrgPrincipalPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; export interface SignInCrossOriginPayload { clientMutationId?: string | null; result?: SignInCrossOriginRecord | null; @@ -3288,14 +3315,6 @@ export type LinkIdentityPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; -export interface CreateOrgPrincipalPayload { - clientMutationId?: string | null; - result?: string | null; -} -export type CreateOrgPrincipalPayloadSelect = { - clientMutationId?: boolean; - result?: boolean; -}; export interface ExtendTokenExpiresPayload { clientMutationId?: string | null; result?: ExtendTokenExpiresRecord[] | null; @@ -3378,14 +3397,6 @@ export type CreatePrincipalPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; -export interface DeletePrincipalPayload { - clientMutationId?: string | null; - result?: boolean | null; -} -export type DeletePrincipalPayloadSelect = { - clientMutationId?: boolean; - result?: boolean; -}; export interface CreatePrincipalEntityPayload { clientMutationId?: string | null; /** The `PrincipalEntity` that was created by this mutation. */ diff --git a/sdk/constructive-sdk/src/auth/orm/models/principal.ts b/sdk/constructive-sdk/src/auth/orm/models/principal.ts index 66c9d2ff40..05e5aa400c 100644 --- a/sdk/constructive-sdk/src/auth/orm/models/principal.ts +++ b/sdk/constructive-sdk/src/auth/orm/models/principal.ts @@ -171,38 +171,4 @@ export class PrincipalModel { variables, }); } - delete( - args: DeleteArgs< - { - principalId: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deletePrincipal: { - principal: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'Principal', - 'deletePrincipal', - 'principal', - { - principalId: args.where.principalId, - }, - 'DeletePrincipalInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'Principal', - fieldName: 'deletePrincipal', - document, - variables, - }); - } } diff --git a/sdk/constructive-sdk/src/auth/orm/mutation/index.ts b/sdk/constructive-sdk/src/auth/orm/mutation/index.ts index de98ebe402..b7b4ae0b0c 100644 --- a/sdk/constructive-sdk/src/auth/orm/mutation/index.ts +++ b/sdk/constructive-sdk/src/auth/orm/mutation/index.ts @@ -11,6 +11,7 @@ import type { SendAccountDeletionEmailInput, CheckPasswordInput, DeleteOrgPrincipalInput, + DeletePrincipalInput, DisconnectAccountInput, RevokeApiKeyInput, RevokeSessionInput, @@ -22,13 +23,13 @@ import type { VerifyEmailInput, ProvisionNewUserInput, ResetPasswordInput, + CreateOrgPrincipalInput, SignInCrossOriginInput, SignInSmsOtpInput, SignUpSmsInput, SignUpInput, SignInInput, LinkIdentityInput, - CreateOrgPrincipalInput, ExtendTokenExpiresInput, CreateOrgApiKeyInput, CreateApiKeyInput, @@ -40,6 +41,7 @@ import type { SendAccountDeletionEmailPayload, CheckPasswordPayload, DeleteOrgPrincipalPayload, + DeletePrincipalPayload, DisconnectAccountPayload, RevokeApiKeyPayload, RevokeSessionPayload, @@ -51,13 +53,13 @@ import type { VerifyEmailPayload, ProvisionNewUserPayload, ResetPasswordPayload, + CreateOrgPrincipalPayload, SignInCrossOriginPayload, SignInSmsOtpPayload, SignUpSmsPayload, SignUpPayload, SignInPayload, LinkIdentityPayload, - CreateOrgPrincipalPayload, ExtendTokenExpiresPayload, CreateOrgApiKeyPayload, CreateApiKeyPayload, @@ -69,6 +71,7 @@ import type { SendAccountDeletionEmailPayloadSelect, CheckPasswordPayloadSelect, DeleteOrgPrincipalPayloadSelect, + DeletePrincipalPayloadSelect, DisconnectAccountPayloadSelect, RevokeApiKeyPayloadSelect, RevokeSessionPayloadSelect, @@ -80,13 +83,13 @@ import type { VerifyEmailPayloadSelect, ProvisionNewUserPayloadSelect, ResetPasswordPayloadSelect, + CreateOrgPrincipalPayloadSelect, SignInCrossOriginPayloadSelect, SignInSmsOtpPayloadSelect, SignUpSmsPayloadSelect, SignUpPayloadSelect, SignInPayloadSelect, LinkIdentityPayloadSelect, - CreateOrgPrincipalPayloadSelect, ExtendTokenExpiresPayloadSelect, CreateOrgApiKeyPayloadSelect, CreateApiKeyPayloadSelect, @@ -108,6 +111,9 @@ export interface CheckPasswordVariables { export interface DeleteOrgPrincipalVariables { input: DeleteOrgPrincipalInput; } +export interface DeletePrincipalVariables { + input: DeletePrincipalInput; +} export interface DisconnectAccountVariables { input: DisconnectAccountInput; } @@ -141,6 +147,9 @@ export interface ProvisionNewUserVariables { export interface ResetPasswordVariables { input: ResetPasswordInput; } +export interface CreateOrgPrincipalVariables { + input: CreateOrgPrincipalInput; +} export interface SignInCrossOriginVariables { input: SignInCrossOriginInput; } @@ -159,9 +168,6 @@ export interface SignInVariables { export interface LinkIdentityVariables { input: LinkIdentityInput; } -export interface CreateOrgPrincipalVariables { - input: CreateOrgPrincipalInput; -} export interface ExtendTokenExpiresVariables { input: ExtendTokenExpiresInput; } @@ -308,6 +314,35 @@ export function createMutationOperations(client: OrmClient) { 'DeleteOrgPrincipalPayload' ), }), + deletePrincipal: ( + args: DeletePrincipalVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + deletePrincipal: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'DeletePrincipal', + fieldName: 'deletePrincipal', + ...buildCustomDocument( + 'mutation', + 'DeletePrincipal', + 'deletePrincipal', + options.select, + args, + [ + { + name: 'input', + type: 'DeletePrincipalInput!', + }, + ], + connectionFieldsMap, + 'DeletePrincipalPayload' + ), + }), disconnectAccount: ( args: DisconnectAccountVariables, options: { @@ -627,6 +662,35 @@ export function createMutationOperations(client: OrmClient) { 'ResetPasswordPayload' ), }), + createOrgPrincipal: ( + args: CreateOrgPrincipalVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + createOrgPrincipal: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'CreateOrgPrincipal', + fieldName: 'createOrgPrincipal', + ...buildCustomDocument( + 'mutation', + 'CreateOrgPrincipal', + 'createOrgPrincipal', + options.select, + args, + [ + { + name: 'input', + type: 'CreateOrgPrincipalInput!', + }, + ], + connectionFieldsMap, + 'CreateOrgPrincipalPayload' + ), + }), signInCrossOrigin: ( args: SignInCrossOriginVariables, options: { @@ -801,35 +865,6 @@ export function createMutationOperations(client: OrmClient) { 'LinkIdentityPayload' ), }), - createOrgPrincipal: ( - args: CreateOrgPrincipalVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - createOrgPrincipal: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'CreateOrgPrincipal', - fieldName: 'createOrgPrincipal', - ...buildCustomDocument( - 'mutation', - 'CreateOrgPrincipal', - 'createOrgPrincipal', - options.select, - args, - [ - { - name: 'input', - type: 'CreateOrgPrincipalInput!', - }, - ], - connectionFieldsMap, - 'CreateOrgPrincipalPayload' - ), - }), extendTokenExpires: ( args: ExtendTokenExpiresVariables, options: { diff --git a/sdk/constructive-sdk/src/compute/README.md b/sdk/constructive-sdk/src/compute/README.md index c405062545..a4004ad42c 100644 --- a/sdk/constructive-sdk/src/compute/README.md +++ b/sdk/constructive-sdk/src/compute/README.md @@ -8,9 +8,9 @@ ## Overview -- **Tables:** 22 +- **Tables:** 44 - **Custom queries:** 1 -- **Custom mutations:** 14 +- **Custom mutations:** 17 **Generators:** ORM diff --git a/sdk/constructive-sdk/src/compute/orm/README.md b/sdk/constructive-sdk/src/compute/orm/README.md index 2ea41b7b40..3aec082514 100644 --- a/sdk/constructive-sdk/src/compute/orm/README.md +++ b/sdk/constructive-sdk/src/compute/orm/README.md @@ -21,92 +21,730 @@ const db = createClient({ | Model | Operations | |-------|------------| +| `infraGetAllRecord` | findMany, findOne, create, update, delete | | `getAllRecord` | findMany, findOne, create, update, delete | +| `infraRef` | findMany, findOne, create, update, delete | +| `infraStore` | findMany, findOne, create, update, delete | | `functionApiBinding` | findMany, findOne, create, update, delete | -| `functionDeployment` | findMany, findOne, create, update, delete | -| `resource` | findMany, findOne, create, update, delete | | `functionGraphRef` | findMany, findOne, create, update, delete | | `functionGraphStore` | findMany, findOne, create, update, delete | +| `platformFunctionApiBinding` | findMany, findOne, create, update, delete | +| `platformResourcesRequirementsState` | findMany, findOne, create, update, delete | +| `resourcesRequirementsState` | findMany, findOne, create, update, delete | +| `platformResourceStatusCheck` | findMany, findOne, create, update, delete | +| `platformFunctionDeployment` | findMany, findOne, create, update, delete | +| `platformResource` | findMany, findOne, create, update, delete | +| `platformResourceDefinition` | findMany, findOne, create, update, delete | +| `infraObject` | findMany, findOne, create, update, delete | | `functionGraphObject` | findMany, findOne, create, update, delete | +| `platformFunctionDeploymentEvent` | findMany, findOne, create, update, delete | +| `platformResourceEvent` | findMany, findOne, create, update, delete | +| `resourceStatusCheck` | findMany, findOne, create, update, delete | +| `functionDeployment` | findMany, findOne, create, update, delete | +| `resource` | findMany, findOne, create, update, delete | +| `resourceDefinition` | findMany, findOne, create, update, delete | | `functionDeploymentEvent` | findMany, findOne, create, update, delete | -| `orgFunctionExecutionLog` | findMany, findOne, create, update, delete | +| `platformFunctionExecutionLog` | findMany, findOne, create, update, delete | | `resourceEvent` | findMany, findOne, create, update, delete | | `functionGraphExecutionOutput` | findMany, findOne, create, update, delete | +| `infraCommit` | findMany, findOne, create, update, delete | | `functionGraphCommit` | findMany, findOne, create, update, delete | -| `secretDefinition` | findMany, findOne, create, update, delete | | `functionExecutionLog` | findMany, findOne, create, update, delete | +| `platformResourcesResolvedRequirement` | findMany, findOne, create, update, delete | +| `resourcesResolvedRequirement` | findMany, findOne, create, update, delete | +| `dbPreset` | findMany, findOne, create, update, delete | +| `platformNamespace` | findMany, findOne, create, update, delete | | `functionGraph` | findMany, findOne, create, update, delete | | `functionGraphExecutionNodeState` | findMany, findOne, create, update, delete | -| `platformNamespace` | findMany, findOne, create, update, delete | -| `orgFunctionInvocation` | findMany, findOne, create, update, delete | +| `namespace` | findMany, findOne, create, update, delete | +| `platformFunctionInvocation` | findMany, findOne, create, update, delete | | `functionInvocation` | findMany, findOne, create, update, delete | | `platformNamespaceEvent` | findMany, findOne, create, update, delete | +| `integrationProvider` | findMany, findOne, create, update, delete | +| `namespaceEvent` | findMany, findOne, create, update, delete | | `functionGraphExecution` | findMany, findOne, create, update, delete | +| `platformFunctionDefinition` | findMany, findOne, create, update, delete | | `functionDefinition` | findMany, findOne, create, update, delete | -## Table Operations +## Table Operations + +### `db.infraGetAllRecord` + +CRUD operations for InfraGetAllRecord records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `path` | String | Yes | +| `data` | JSON | Yes | + +**Operations:** + +```typescript +// List all infraGetAllRecord records +const items = await db.infraGetAllRecord.findMany({ select: { path: true, data: true } }).execute(); + +// Get one by id +const item = await db.infraGetAllRecord.findOne({ id: '', select: { path: true, data: true } }).execute(); + +// Create +const created = await db.infraGetAllRecord.create({ data: { path: '', data: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.infraGetAllRecord.update({ where: { id: '' }, data: { path: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.infraGetAllRecord.delete({ where: { id: '' } }).execute(); +``` + +### `db.getAllRecord` + +CRUD operations for GetAllRecord records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `path` | String | Yes | +| `data` | JSON | Yes | + +**Operations:** + +```typescript +// List all getAllRecord records +const items = await db.getAllRecord.findMany({ select: { path: true, data: true } }).execute(); + +// Get one by id +const item = await db.getAllRecord.findOne({ id: '', select: { path: true, data: true } }).execute(); + +// Create +const created = await db.getAllRecord.create({ data: { path: '', data: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.getAllRecord.update({ where: { id: '' }, data: { path: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.getAllRecord.delete({ where: { id: '' } }).execute(); +``` + +### `db.infraRef` + +CRUD operations for InfraRef records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `name` | String | Yes | +| `scopeId` | UUID | Yes | +| `storeId` | UUID | Yes | +| `commitId` | UUID | Yes | + +**Operations:** + +```typescript +// List all infraRef records +const items = await db.infraRef.findMany({ select: { id: true, name: true, scopeId: true, storeId: true, commitId: true } }).execute(); + +// Get one by id +const item = await db.infraRef.findOne({ id: '', select: { id: true, name: true, scopeId: true, storeId: true, commitId: true } }).execute(); + +// Create +const created = await db.infraRef.create({ data: { name: '', scopeId: '', storeId: '', commitId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.infraRef.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.infraRef.delete({ where: { id: '' } }).execute(); +``` + +### `db.infraStore` + +CRUD operations for InfraStore records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `name` | String | Yes | +| `scopeId` | UUID | Yes | +| `hash` | UUID | Yes | +| `createdAt` | Datetime | No | + +**Operations:** + +```typescript +// List all infraStore records +const items = await db.infraStore.findMany({ select: { id: true, name: true, scopeId: true, hash: true, createdAt: true } }).execute(); + +// Get one by id +const item = await db.infraStore.findOne({ id: '', select: { id: true, name: true, scopeId: true, hash: true, createdAt: true } }).execute(); + +// Create +const created = await db.infraStore.create({ data: { name: '', scopeId: '', hash: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.infraStore.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.infraStore.delete({ where: { id: '' } }).execute(); +``` + +### `db.functionApiBinding` + +CRUD operations for FunctionApiBinding records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `functionDefinitionId` | UUID | Yes | +| `apiId` | UUID | Yes | +| `alias` | String | Yes | +| `config` | JSON | Yes | + +**Operations:** + +```typescript +// List all functionApiBinding records +const items = await db.functionApiBinding.findMany({ select: { id: true, functionDefinitionId: true, apiId: true, alias: true, config: true } }).execute(); + +// Get one by id +const item = await db.functionApiBinding.findOne({ id: '', select: { id: true, functionDefinitionId: true, apiId: true, alias: true, config: true } }).execute(); + +// Create +const created = await db.functionApiBinding.create({ data: { functionDefinitionId: '', apiId: '', alias: '', config: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.functionApiBinding.update({ where: { id: '' }, data: { functionDefinitionId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.functionApiBinding.delete({ where: { id: '' } }).execute(); +``` + +### `db.functionGraphRef` + +CRUD operations for FunctionGraphRef records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `name` | String | Yes | +| `scopeId` | UUID | Yes | +| `storeId` | UUID | Yes | +| `commitId` | UUID | Yes | + +**Operations:** + +```typescript +// List all functionGraphRef records +const items = await db.functionGraphRef.findMany({ select: { id: true, name: true, scopeId: true, storeId: true, commitId: true } }).execute(); + +// Get one by id +const item = await db.functionGraphRef.findOne({ id: '', select: { id: true, name: true, scopeId: true, storeId: true, commitId: true } }).execute(); + +// Create +const created = await db.functionGraphRef.create({ data: { name: '', scopeId: '', storeId: '', commitId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.functionGraphRef.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.functionGraphRef.delete({ where: { id: '' } }).execute(); +``` + +### `db.functionGraphStore` + +CRUD operations for FunctionGraphStore records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `name` | String | Yes | +| `scopeId` | UUID | Yes | +| `hash` | UUID | Yes | +| `createdAt` | Datetime | No | + +**Operations:** + +```typescript +// List all functionGraphStore records +const items = await db.functionGraphStore.findMany({ select: { id: true, name: true, scopeId: true, hash: true, createdAt: true } }).execute(); + +// Get one by id +const item = await db.functionGraphStore.findOne({ id: '', select: { id: true, name: true, scopeId: true, hash: true, createdAt: true } }).execute(); + +// Create +const created = await db.functionGraphStore.create({ data: { name: '', scopeId: '', hash: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.functionGraphStore.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.functionGraphStore.delete({ where: { id: '' } }).execute(); +``` + +### `db.platformFunctionApiBinding` + +CRUD operations for PlatformFunctionApiBinding records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `functionDefinitionId` | UUID | Yes | +| `apiId` | UUID | Yes | +| `alias` | String | Yes | +| `config` | JSON | Yes | + +**Operations:** + +```typescript +// List all platformFunctionApiBinding records +const items = await db.platformFunctionApiBinding.findMany({ select: { id: true, functionDefinitionId: true, apiId: true, alias: true, config: true } }).execute(); + +// Get one by id +const item = await db.platformFunctionApiBinding.findOne({ id: '', select: { id: true, functionDefinitionId: true, apiId: true, alias: true, config: true } }).execute(); + +// Create +const created = await db.platformFunctionApiBinding.create({ data: { functionDefinitionId: '', apiId: '', alias: '', config: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformFunctionApiBinding.update({ where: { id: '' }, data: { functionDefinitionId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformFunctionApiBinding.delete({ where: { id: '' } }).execute(); +``` + +### `db.platformResourcesRequirementsState` + +CRUD operations for PlatformResourcesRequirementsState records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `resourceId` | UUID | Yes | +| `slug` | String | Yes | +| `secretsHash` | String | Yes | +| `configHash` | String | Yes | +| `requirementsHash` | String | Yes | +| `secretsObjectName` | String | Yes | +| `configObjectName` | String | Yes | + +**Operations:** + +```typescript +// List all platformResourcesRequirementsState records +const items = await db.platformResourcesRequirementsState.findMany({ select: { resourceId: true, slug: true, secretsHash: true, configHash: true, requirementsHash: true, secretsObjectName: true, configObjectName: true } }).execute(); + +// Get one by id +const item = await db.platformResourcesRequirementsState.findOne({ id: '', select: { resourceId: true, slug: true, secretsHash: true, configHash: true, requirementsHash: true, secretsObjectName: true, configObjectName: true } }).execute(); + +// Create +const created = await db.platformResourcesRequirementsState.create({ data: { resourceId: '', slug: '', secretsHash: '', configHash: '', requirementsHash: '', secretsObjectName: '', configObjectName: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformResourcesRequirementsState.update({ where: { id: '' }, data: { resourceId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformResourcesRequirementsState.delete({ where: { id: '' } }).execute(); +``` + +### `db.resourcesRequirementsState` + +CRUD operations for ResourcesRequirementsState records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `resourceId` | UUID | Yes | +| `slug` | String | Yes | +| `secretsHash` | String | Yes | +| `configHash` | String | Yes | +| `requirementsHash` | String | Yes | +| `secretsObjectName` | String | Yes | +| `configObjectName` | String | Yes | + +**Operations:** + +```typescript +// List all resourcesRequirementsState records +const items = await db.resourcesRequirementsState.findMany({ select: { resourceId: true, slug: true, secretsHash: true, configHash: true, requirementsHash: true, secretsObjectName: true, configObjectName: true } }).execute(); + +// Get one by id +const item = await db.resourcesRequirementsState.findOne({ id: '', select: { resourceId: true, slug: true, secretsHash: true, configHash: true, requirementsHash: true, secretsObjectName: true, configObjectName: true } }).execute(); + +// Create +const created = await db.resourcesRequirementsState.create({ data: { resourceId: '', slug: '', secretsHash: '', configHash: '', requirementsHash: '', secretsObjectName: '', configObjectName: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.resourcesRequirementsState.update({ where: { id: '' }, data: { resourceId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.resourcesRequirementsState.delete({ where: { id: '' } }).execute(); +``` + +### `db.platformResourceStatusCheck` + +CRUD operations for PlatformResourceStatusCheck records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `resourceId` | UUID | Yes | +| `requestedBy` | UUID | Yes | +| `requestedAt` | Datetime | Yes | +| `completedAt` | Datetime | Yes | +| `status` | String | Yes | +| `result` | JSON | Yes | + +**Operations:** + +```typescript +// List all platformResourceStatusCheck records +const items = await db.platformResourceStatusCheck.findMany({ select: { id: true, resourceId: true, requestedBy: true, requestedAt: true, completedAt: true, status: true, result: true } }).execute(); + +// Get one by id +const item = await db.platformResourceStatusCheck.findOne({ id: '', select: { id: true, resourceId: true, requestedBy: true, requestedAt: true, completedAt: true, status: true, result: true } }).execute(); + +// Create +const created = await db.platformResourceStatusCheck.create({ data: { resourceId: '', requestedBy: '', requestedAt: '', completedAt: '', status: '', result: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformResourceStatusCheck.update({ where: { id: '' }, data: { resourceId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformResourceStatusCheck.delete({ where: { id: '' } }).execute(); +``` + +### `db.platformFunctionDeployment` + +CRUD operations for PlatformFunctionDeployment records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | +| `namespaceId` | UUID | Yes | +| `status` | String | Yes | +| `serviceUrl` | String | Yes | +| `serviceName` | String | Yes | +| `revision` | Int | Yes | +| `image` | String | Yes | +| `imageVersion` | String | Yes | +| `handlerName` | String | Yes | +| `concurrency` | Int | Yes | +| `scaleMin` | Int | Yes | +| `scaleMax` | Int | Yes | +| `timeoutSeconds` | Int | Yes | +| `resources` | JSON | Yes | +| `lastError` | String | Yes | +| `lastErrorAt` | Datetime | Yes | +| `errorCount` | Int | Yes | +| `labels` | JSON | Yes | +| `annotations` | JSON | Yes | + +**Operations:** + +```typescript +// List all platformFunctionDeployment records +const items = await db.platformFunctionDeployment.findMany({ select: { id: true, createdAt: true, updatedAt: true, namespaceId: true, status: true, serviceUrl: true, serviceName: true, revision: true, image: true, imageVersion: true, handlerName: true, concurrency: true, scaleMin: true, scaleMax: true, timeoutSeconds: true, resources: true, lastError: true, lastErrorAt: true, errorCount: true, labels: true, annotations: true } }).execute(); + +// Get one by id +const item = await db.platformFunctionDeployment.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, namespaceId: true, status: true, serviceUrl: true, serviceName: true, revision: true, image: true, imageVersion: true, handlerName: true, concurrency: true, scaleMin: true, scaleMax: true, timeoutSeconds: true, resources: true, lastError: true, lastErrorAt: true, errorCount: true, labels: true, annotations: true } }).execute(); + +// Create +const created = await db.platformFunctionDeployment.create({ data: { namespaceId: '', status: '', serviceUrl: '', serviceName: '', revision: '', image: '', imageVersion: '', handlerName: '', concurrency: '', scaleMin: '', scaleMax: '', timeoutSeconds: '', resources: '', lastError: '', lastErrorAt: '', errorCount: '', labels: '', annotations: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformFunctionDeployment.update({ where: { id: '' }, data: { namespaceId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformFunctionDeployment.delete({ where: { id: '' } }).execute(); +``` + +### `db.platformResource` + +CRUD operations for PlatformResource records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | +| `createdBy` | UUID | Yes | +| `updatedBy` | UUID | Yes | +| `namespaceId` | UUID | Yes | +| `kind` | String | Yes | +| `name` | String | Yes | +| `slug` | String | Yes | +| `spec` | JSON | Yes | +| `status` | String | Yes | +| `statusObserved` | JSON | Yes | +| `lastError` | String | Yes | +| `errorCount` | Int | Yes | +| `labels` | JSON | Yes | +| `annotations` | JSON | Yes | +| `requiredSecrets` | ResourceRequirement | Yes | +| `requiredConfigs` | ResourceRequirement | Yes | +| `integrations` | String | Yes | +| `resourceDefinitionId` | UUID | Yes | + +**Operations:** + +```typescript +// List all platformResource records +const items = await db.platformResource.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, namespaceId: true, kind: true, name: true, slug: true, spec: true, status: true, statusObserved: true, lastError: true, errorCount: true, labels: true, annotations: true, requiredSecrets: true, requiredConfigs: true, integrations: true, resourceDefinitionId: true } }).execute(); + +// Get one by id +const item = await db.platformResource.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, namespaceId: true, kind: true, name: true, slug: true, spec: true, status: true, statusObserved: true, lastError: true, errorCount: true, labels: true, annotations: true, requiredSecrets: true, requiredConfigs: true, integrations: true, resourceDefinitionId: true } }).execute(); + +// Create +const created = await db.platformResource.create({ data: { createdBy: '', updatedBy: '', namespaceId: '', kind: '', name: '', slug: '', spec: '', status: '', statusObserved: '', lastError: '', errorCount: '', labels: '', annotations: '', requiredSecrets: '', requiredConfigs: '', integrations: '', resourceDefinitionId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformResource.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformResource.delete({ where: { id: '' } }).execute(); +``` + +### `db.platformResourceDefinition` + +CRUD operations for PlatformResourceDefinition records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | +| `createdBy` | UUID | Yes | +| `updatedBy` | UUID | Yes | +| `namespaceId` | UUID | Yes | +| `kind` | String | Yes | +| `name` | String | Yes | +| `slug` | String | Yes | +| `description` | String | Yes | +| `defaultSpec` | JSON | Yes | +| `requiredSecrets` | ResourceRequirement | Yes | +| `requiredConfigs` | ResourceRequirement | Yes | +| `integrations` | String | Yes | +| `labels` | JSON | Yes | +| `annotations` | JSON | Yes | +| `stepUpMinAge` | Interval | Yes | + +**Operations:** + +```typescript +// List all platformResourceDefinition records +const items = await db.platformResourceDefinition.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, namespaceId: true, kind: true, name: true, slug: true, description: true, defaultSpec: true, requiredSecrets: true, requiredConfigs: true, integrations: true, labels: true, annotations: true, stepUpMinAge: true } }).execute(); + +// Get one by id +const item = await db.platformResourceDefinition.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, namespaceId: true, kind: true, name: true, slug: true, description: true, defaultSpec: true, requiredSecrets: true, requiredConfigs: true, integrations: true, labels: true, annotations: true, stepUpMinAge: true } }).execute(); + +// Create +const created = await db.platformResourceDefinition.create({ data: { createdBy: '', updatedBy: '', namespaceId: '', kind: '', name: '', slug: '', description: '', defaultSpec: '', requiredSecrets: '', requiredConfigs: '', integrations: '', labels: '', annotations: '', stepUpMinAge: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformResourceDefinition.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformResourceDefinition.delete({ where: { id: '' } }).execute(); +``` + +### `db.infraObject` + +CRUD operations for InfraObject records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `scopeId` | UUID | Yes | +| `kids` | UUID | Yes | +| `ktree` | String | Yes | +| `data` | JSON | Yes | +| `createdAt` | Datetime | No | + +**Operations:** -### `db.getAllRecord` +```typescript +// List all infraObject records +const items = await db.infraObject.findMany({ select: { id: true, scopeId: true, kids: true, ktree: true, data: true, createdAt: true } }).execute(); -CRUD operations for GetAllRecord records. +// Get one by id +const item = await db.infraObject.findOne({ id: '', select: { id: true, scopeId: true, kids: true, ktree: true, data: true, createdAt: true } }).execute(); + +// Create +const created = await db.infraObject.create({ data: { scopeId: '', kids: '', ktree: '', data: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.infraObject.update({ where: { id: '' }, data: { scopeId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.infraObject.delete({ where: { id: '' } }).execute(); +``` + +### `db.functionGraphObject` + +CRUD operations for FunctionGraphObject records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `path` | String | Yes | +| `id` | UUID | No | +| `scopeId` | UUID | Yes | +| `kids` | UUID | Yes | +| `ktree` | String | Yes | | `data` | JSON | Yes | +| `createdAt` | Datetime | No | **Operations:** ```typescript -// List all getAllRecord records -const items = await db.getAllRecord.findMany({ select: { path: true, data: true } }).execute(); +// List all functionGraphObject records +const items = await db.functionGraphObject.findMany({ select: { id: true, scopeId: true, kids: true, ktree: true, data: true, createdAt: true } }).execute(); // Get one by id -const item = await db.getAllRecord.findOne({ id: '', select: { path: true, data: true } }).execute(); +const item = await db.functionGraphObject.findOne({ id: '', select: { id: true, scopeId: true, kids: true, ktree: true, data: true, createdAt: true } }).execute(); // Create -const created = await db.getAllRecord.create({ data: { path: '', data: '' }, select: { id: true } }).execute(); +const created = await db.functionGraphObject.create({ data: { scopeId: '', kids: '', ktree: '', data: '' }, select: { id: true } }).execute(); // Update -const updated = await db.getAllRecord.update({ where: { id: '' }, data: { path: '' }, select: { id: true } }).execute(); +const updated = await db.functionGraphObject.update({ where: { id: '' }, data: { scopeId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.getAllRecord.delete({ where: { id: '' } }).execute(); +const deleted = await db.functionGraphObject.delete({ where: { id: '' } }).execute(); ``` -### `db.functionApiBinding` +### `db.platformFunctionDeploymentEvent` -CRUD operations for FunctionApiBinding records. +CRUD operations for PlatformFunctionDeploymentEvent records. **Fields:** | Field | Type | Editable | |-------|------|----------| +| `createdAt` | Datetime | No | | `id` | UUID | No | -| `functionDefinitionId` | UUID | Yes | -| `apiId` | UUID | Yes | -| `alias` | String | Yes | -| `config` | JSON | Yes | +| `deploymentId` | UUID | Yes | +| `eventType` | String | Yes | +| `actorId` | UUID | Yes | +| `message` | String | Yes | +| `metadata` | JSON | Yes | **Operations:** ```typescript -// List all functionApiBinding records -const items = await db.functionApiBinding.findMany({ select: { id: true, functionDefinitionId: true, apiId: true, alias: true, config: true } }).execute(); +// List all platformFunctionDeploymentEvent records +const items = await db.platformFunctionDeploymentEvent.findMany({ select: { createdAt: true, id: true, deploymentId: true, eventType: true, actorId: true, message: true, metadata: true } }).execute(); // Get one by id -const item = await db.functionApiBinding.findOne({ id: '', select: { id: true, functionDefinitionId: true, apiId: true, alias: true, config: true } }).execute(); +const item = await db.platformFunctionDeploymentEvent.findOne({ id: '', select: { createdAt: true, id: true, deploymentId: true, eventType: true, actorId: true, message: true, metadata: true } }).execute(); // Create -const created = await db.functionApiBinding.create({ data: { functionDefinitionId: '', apiId: '', alias: '', config: '' }, select: { id: true } }).execute(); +const created = await db.platformFunctionDeploymentEvent.create({ data: { deploymentId: '', eventType: '', actorId: '', message: '', metadata: '' }, select: { id: true } }).execute(); // Update -const updated = await db.functionApiBinding.update({ where: { id: '' }, data: { functionDefinitionId: '' }, select: { id: true } }).execute(); +const updated = await db.platformFunctionDeploymentEvent.update({ where: { id: '' }, data: { deploymentId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.functionApiBinding.delete({ where: { id: '' } }).execute(); +const deleted = await db.platformFunctionDeploymentEvent.delete({ where: { id: '' } }).execute(); +``` + +### `db.platformResourceEvent` + +CRUD operations for PlatformResourceEvent records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `createdAt` | Datetime | No | +| `id` | UUID | No | +| `resourceId` | UUID | Yes | +| `eventType` | String | Yes | +| `actorId` | UUID | Yes | +| `message` | String | Yes | +| `metadata` | JSON | Yes | + +**Operations:** + +```typescript +// List all platformResourceEvent records +const items = await db.platformResourceEvent.findMany({ select: { createdAt: true, id: true, resourceId: true, eventType: true, actorId: true, message: true, metadata: true } }).execute(); + +// Get one by id +const item = await db.platformResourceEvent.findOne({ id: '', select: { createdAt: true, id: true, resourceId: true, eventType: true, actorId: true, message: true, metadata: true } }).execute(); + +// Create +const created = await db.platformResourceEvent.create({ data: { resourceId: '', eventType: '', actorId: '', message: '', metadata: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformResourceEvent.update({ where: { id: '' }, data: { resourceId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformResourceEvent.delete({ where: { id: '' } }).execute(); +``` + +### `db.resourceStatusCheck` + +CRUD operations for ResourceStatusCheck records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `resourceId` | UUID | Yes | +| `databaseId` | UUID | Yes | +| `requestedBy` | UUID | Yes | +| `requestedAt` | Datetime | Yes | +| `completedAt` | Datetime | Yes | +| `status` | String | Yes | +| `result` | JSON | Yes | + +**Operations:** + +```typescript +// List all resourceStatusCheck records +const items = await db.resourceStatusCheck.findMany({ select: { id: true, resourceId: true, databaseId: true, requestedBy: true, requestedAt: true, completedAt: true, status: true, result: true } }).execute(); + +// Get one by id +const item = await db.resourceStatusCheck.findOne({ id: '', select: { id: true, resourceId: true, databaseId: true, requestedBy: true, requestedAt: true, completedAt: true, status: true, result: true } }).execute(); + +// Create +const created = await db.resourceStatusCheck.create({ data: { resourceId: '', databaseId: '', requestedBy: '', requestedAt: '', completedAt: '', status: '', result: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.resourceStatusCheck.update({ where: { id: '' }, data: { resourceId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.resourceStatusCheck.delete({ where: { id: '' } }).execute(); ``` ### `db.functionDeployment` @@ -120,13 +758,14 @@ CRUD operations for FunctionDeployment records. | `id` | UUID | No | | `createdAt` | Datetime | No | | `updatedAt` | Datetime | No | -| `functionDefinitionId` | UUID | Yes | | `namespaceId` | UUID | Yes | | `status` | String | Yes | | `serviceUrl` | String | Yes | | `serviceName` | String | Yes | | `revision` | Int | Yes | | `image` | String | Yes | +| `imageVersion` | String | Yes | +| `handlerName` | String | Yes | | `concurrency` | Int | Yes | | `scaleMin` | Int | Yes | | `scaleMax` | Int | Yes | @@ -143,16 +782,16 @@ CRUD operations for FunctionDeployment records. ```typescript // List all functionDeployment records -const items = await db.functionDeployment.findMany({ select: { id: true, createdAt: true, updatedAt: true, functionDefinitionId: true, namespaceId: true, status: true, serviceUrl: true, serviceName: true, revision: true, image: true, concurrency: true, scaleMin: true, scaleMax: true, timeoutSeconds: true, resources: true, lastError: true, lastErrorAt: true, errorCount: true, labels: true, annotations: true, databaseId: true } }).execute(); +const items = await db.functionDeployment.findMany({ select: { id: true, createdAt: true, updatedAt: true, namespaceId: true, status: true, serviceUrl: true, serviceName: true, revision: true, image: true, imageVersion: true, handlerName: true, concurrency: true, scaleMin: true, scaleMax: true, timeoutSeconds: true, resources: true, lastError: true, lastErrorAt: true, errorCount: true, labels: true, annotations: true, databaseId: true } }).execute(); // Get one by id -const item = await db.functionDeployment.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, functionDefinitionId: true, namespaceId: true, status: true, serviceUrl: true, serviceName: true, revision: true, image: true, concurrency: true, scaleMin: true, scaleMax: true, timeoutSeconds: true, resources: true, lastError: true, lastErrorAt: true, errorCount: true, labels: true, annotations: true, databaseId: true } }).execute(); +const item = await db.functionDeployment.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, namespaceId: true, status: true, serviceUrl: true, serviceName: true, revision: true, image: true, imageVersion: true, handlerName: true, concurrency: true, scaleMin: true, scaleMax: true, timeoutSeconds: true, resources: true, lastError: true, lastErrorAt: true, errorCount: true, labels: true, annotations: true, databaseId: true } }).execute(); // Create -const created = await db.functionDeployment.create({ data: { functionDefinitionId: '', namespaceId: '', status: '', serviceUrl: '', serviceName: '', revision: '', image: '', concurrency: '', scaleMin: '', scaleMax: '', timeoutSeconds: '', resources: '', lastError: '', lastErrorAt: '', errorCount: '', labels: '', annotations: '', databaseId: '' }, select: { id: true } }).execute(); +const created = await db.functionDeployment.create({ data: { namespaceId: '', status: '', serviceUrl: '', serviceName: '', revision: '', image: '', imageVersion: '', handlerName: '', concurrency: '', scaleMin: '', scaleMax: '', timeoutSeconds: '', resources: '', lastError: '', lastErrorAt: '', errorCount: '', labels: '', annotations: '', databaseId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.functionDeployment.update({ where: { id: '' }, data: { functionDefinitionId: '' }, select: { id: true } }).execute(); +const updated = await db.functionDeployment.update({ where: { id: '' }, data: { namespaceId: '' }, select: { id: true } }).execute(); // Delete const deleted = await db.functionDeployment.delete({ where: { id: '' } }).execute(); @@ -183,18 +822,22 @@ CRUD operations for Resource records. | `labels` | JSON | Yes | | `annotations` | JSON | Yes | | `databaseId` | UUID | Yes | +| `requiredSecrets` | ResourceRequirement | Yes | +| `requiredConfigs` | ResourceRequirement | Yes | +| `integrations` | String | Yes | +| `resourceDefinitionId` | UUID | Yes | **Operations:** ```typescript // List all resource records -const items = await db.resource.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, namespaceId: true, kind: true, name: true, slug: true, spec: true, status: true, statusObserved: true, lastError: true, errorCount: true, labels: true, annotations: true, databaseId: true } }).execute(); +const items = await db.resource.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, namespaceId: true, kind: true, name: true, slug: true, spec: true, status: true, statusObserved: true, lastError: true, errorCount: true, labels: true, annotations: true, databaseId: true, requiredSecrets: true, requiredConfigs: true, integrations: true, resourceDefinitionId: true } }).execute(); // Get one by id -const item = await db.resource.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, namespaceId: true, kind: true, name: true, slug: true, spec: true, status: true, statusObserved: true, lastError: true, errorCount: true, labels: true, annotations: true, databaseId: true } }).execute(); +const item = await db.resource.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, namespaceId: true, kind: true, name: true, slug: true, spec: true, status: true, statusObserved: true, lastError: true, errorCount: true, labels: true, annotations: true, databaseId: true, requiredSecrets: true, requiredConfigs: true, integrations: true, resourceDefinitionId: true } }).execute(); // Create -const created = await db.resource.create({ data: { createdBy: '', updatedBy: '', namespaceId: '', kind: '', name: '', slug: '', spec: '', status: '', statusObserved: '', lastError: '', errorCount: '', labels: '', annotations: '', databaseId: '' }, select: { id: true } }).execute(); +const created = await db.resource.create({ data: { createdBy: '', updatedBy: '', namespaceId: '', kind: '', name: '', slug: '', spec: '', status: '', statusObserved: '', lastError: '', errorCount: '', labels: '', annotations: '', databaseId: '', requiredSecrets: '', requiredConfigs: '', integrations: '', resourceDefinitionId: '' }, select: { id: true } }).execute(); // Update const updated = await db.resource.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); @@ -203,109 +846,127 @@ const updated = await db.resource.update({ where: { id: '' }, data: { crea const deleted = await db.resource.delete({ where: { id: '' } }).execute(); ``` -### `db.functionGraphRef` +### `db.resourceDefinition` -CRUD operations for FunctionGraphRef records. +CRUD operations for ResourceDefinition records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | +| `createdBy` | UUID | Yes | +| `updatedBy` | UUID | Yes | +| `namespaceId` | UUID | Yes | +| `kind` | String | Yes | | `name` | String | Yes | +| `slug` | String | Yes | +| `description` | String | Yes | +| `defaultSpec` | JSON | Yes | +| `requiredSecrets` | ResourceRequirement | Yes | +| `requiredConfigs` | ResourceRequirement | Yes | +| `integrations` | String | Yes | +| `labels` | JSON | Yes | +| `annotations` | JSON | Yes | +| `stepUpMinAge` | Interval | Yes | | `databaseId` | UUID | Yes | -| `storeId` | UUID | Yes | -| `commitId` | UUID | Yes | **Operations:** ```typescript -// List all functionGraphRef records -const items = await db.functionGraphRef.findMany({ select: { id: true, name: true, databaseId: true, storeId: true, commitId: true } }).execute(); +// List all resourceDefinition records +const items = await db.resourceDefinition.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, namespaceId: true, kind: true, name: true, slug: true, description: true, defaultSpec: true, requiredSecrets: true, requiredConfigs: true, integrations: true, labels: true, annotations: true, stepUpMinAge: true, databaseId: true } }).execute(); // Get one by id -const item = await db.functionGraphRef.findOne({ id: '', select: { id: true, name: true, databaseId: true, storeId: true, commitId: true } }).execute(); +const item = await db.resourceDefinition.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, namespaceId: true, kind: true, name: true, slug: true, description: true, defaultSpec: true, requiredSecrets: true, requiredConfigs: true, integrations: true, labels: true, annotations: true, stepUpMinAge: true, databaseId: true } }).execute(); // Create -const created = await db.functionGraphRef.create({ data: { name: '', databaseId: '', storeId: '', commitId: '' }, select: { id: true } }).execute(); +const created = await db.resourceDefinition.create({ data: { createdBy: '', updatedBy: '', namespaceId: '', kind: '', name: '', slug: '', description: '', defaultSpec: '', requiredSecrets: '', requiredConfigs: '', integrations: '', labels: '', annotations: '', stepUpMinAge: '', databaseId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.functionGraphRef.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.resourceDefinition.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.functionGraphRef.delete({ where: { id: '' } }).execute(); +const deleted = await db.resourceDefinition.delete({ where: { id: '' } }).execute(); ``` -### `db.functionGraphStore` +### `db.functionDeploymentEvent` -CRUD operations for FunctionGraphStore records. +CRUD operations for FunctionDeploymentEvent records. **Fields:** | Field | Type | Editable | |-------|------|----------| +| `createdAt` | Datetime | No | | `id` | UUID | No | -| `name` | String | Yes | +| `deploymentId` | UUID | Yes | +| `eventType` | String | Yes | +| `actorId` | UUID | Yes | +| `message` | String | Yes | +| `metadata` | JSON | Yes | | `databaseId` | UUID | Yes | -| `hash` | UUID | Yes | -| `createdAt` | Datetime | No | **Operations:** ```typescript -// List all functionGraphStore records -const items = await db.functionGraphStore.findMany({ select: { id: true, name: true, databaseId: true, hash: true, createdAt: true } }).execute(); +// List all functionDeploymentEvent records +const items = await db.functionDeploymentEvent.findMany({ select: { createdAt: true, id: true, deploymentId: true, eventType: true, actorId: true, message: true, metadata: true, databaseId: true } }).execute(); // Get one by id -const item = await db.functionGraphStore.findOne({ id: '', select: { id: true, name: true, databaseId: true, hash: true, createdAt: true } }).execute(); +const item = await db.functionDeploymentEvent.findOne({ id: '', select: { createdAt: true, id: true, deploymentId: true, eventType: true, actorId: true, message: true, metadata: true, databaseId: true } }).execute(); // Create -const created = await db.functionGraphStore.create({ data: { name: '', databaseId: '', hash: '' }, select: { id: true } }).execute(); +const created = await db.functionDeploymentEvent.create({ data: { deploymentId: '', eventType: '', actorId: '', message: '', metadata: '', databaseId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.functionGraphStore.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.functionDeploymentEvent.update({ where: { id: '' }, data: { deploymentId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.functionGraphStore.delete({ where: { id: '' } }).execute(); +const deleted = await db.functionDeploymentEvent.delete({ where: { id: '' } }).execute(); ``` -### `db.functionGraphObject` +### `db.platformFunctionExecutionLog` -CRUD operations for FunctionGraphObject records. +CRUD operations for PlatformFunctionExecutionLog records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `kids` | UUID | Yes | -| `ktree` | String | Yes | -| `data` | JSON | Yes | | `createdAt` | Datetime | No | +| `id` | UUID | No | +| `invocationId` | UUID | Yes | +| `taskIdentifier` | String | Yes | +| `logLevel` | String | Yes | +| `message` | String | Yes | +| `metadata` | JSON | Yes | +| `actorId` | UUID | Yes | **Operations:** ```typescript -// List all functionGraphObject records -const items = await db.functionGraphObject.findMany({ select: { id: true, databaseId: true, kids: true, ktree: true, data: true, createdAt: true } }).execute(); +// List all platformFunctionExecutionLog records +const items = await db.platformFunctionExecutionLog.findMany({ select: { createdAt: true, id: true, invocationId: true, taskIdentifier: true, logLevel: true, message: true, metadata: true, actorId: true } }).execute(); // Get one by id -const item = await db.functionGraphObject.findOne({ id: '', select: { id: true, databaseId: true, kids: true, ktree: true, data: true, createdAt: true } }).execute(); +const item = await db.platformFunctionExecutionLog.findOne({ id: '', select: { createdAt: true, id: true, invocationId: true, taskIdentifier: true, logLevel: true, message: true, metadata: true, actorId: true } }).execute(); // Create -const created = await db.functionGraphObject.create({ data: { databaseId: '', kids: '', ktree: '', data: '' }, select: { id: true } }).execute(); +const created = await db.platformFunctionExecutionLog.create({ data: { invocationId: '', taskIdentifier: '', logLevel: '', message: '', metadata: '', actorId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.functionGraphObject.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.platformFunctionExecutionLog.update({ where: { id: '' }, data: { invocationId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.functionGraphObject.delete({ where: { id: '' } }).execute(); +const deleted = await db.platformFunctionExecutionLog.delete({ where: { id: '' } }).execute(); ``` -### `db.functionDeploymentEvent` +### `db.resourceEvent` -CRUD operations for FunctionDeploymentEvent records. +CRUD operations for ResourceEvent records. **Fields:** @@ -313,7 +974,7 @@ CRUD operations for FunctionDeploymentEvent records. |-------|------|----------| | `createdAt` | Datetime | No | | `id` | UUID | No | -| `deploymentId` | UUID | Yes | +| `resourceId` | UUID | Yes | | `eventType` | String | Yes | | `actorId` | UUID | Yes | | `message` | String | Yes | @@ -323,25 +984,25 @@ CRUD operations for FunctionDeploymentEvent records. **Operations:** ```typescript -// List all functionDeploymentEvent records -const items = await db.functionDeploymentEvent.findMany({ select: { createdAt: true, id: true, deploymentId: true, eventType: true, actorId: true, message: true, metadata: true, databaseId: true } }).execute(); +// List all resourceEvent records +const items = await db.resourceEvent.findMany({ select: { createdAt: true, id: true, resourceId: true, eventType: true, actorId: true, message: true, metadata: true, databaseId: true } }).execute(); // Get one by id -const item = await db.functionDeploymentEvent.findOne({ id: '', select: { createdAt: true, id: true, deploymentId: true, eventType: true, actorId: true, message: true, metadata: true, databaseId: true } }).execute(); +const item = await db.resourceEvent.findOne({ id: '', select: { createdAt: true, id: true, resourceId: true, eventType: true, actorId: true, message: true, metadata: true, databaseId: true } }).execute(); // Create -const created = await db.functionDeploymentEvent.create({ data: { deploymentId: '', eventType: '', actorId: '', message: '', metadata: '', databaseId: '' }, select: { id: true } }).execute(); +const created = await db.resourceEvent.create({ data: { resourceId: '', eventType: '', actorId: '', message: '', metadata: '', databaseId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.functionDeploymentEvent.update({ where: { id: '' }, data: { deploymentId: '' }, select: { id: true } }).execute(); +const updated = await db.resourceEvent.update({ where: { id: '' }, data: { resourceId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.functionDeploymentEvent.delete({ where: { id: '' } }).execute(); +const deleted = await db.resourceEvent.delete({ where: { id: '' } }).execute(); ``` -### `db.orgFunctionExecutionLog` +### `db.functionGraphExecutionOutput` -CRUD operations for OrgFunctionExecutionLog records. +CRUD operations for FunctionGraphExecutionOutput records. **Fields:** @@ -349,35 +1010,106 @@ CRUD operations for OrgFunctionExecutionLog records. |-------|------|----------| | `createdAt` | Datetime | No | | `id` | UUID | No | -| `invocationId` | UUID | Yes | -| `taskIdentifier` | String | Yes | -| `logLevel` | String | Yes | +| `scopeId` | UUID | Yes | +| `hash` | Base64EncodedBinary | Yes | +| `data` | JSON | Yes | + +**Operations:** + +```typescript +// List all functionGraphExecutionOutput records +const items = await db.functionGraphExecutionOutput.findMany({ select: { createdAt: true, id: true, scopeId: true, hash: true, data: true } }).execute(); + +// Get one by id +const item = await db.functionGraphExecutionOutput.findOne({ id: '', select: { createdAt: true, id: true, scopeId: true, hash: true, data: true } }).execute(); + +// Create +const created = await db.functionGraphExecutionOutput.create({ data: { scopeId: '', hash: '', data: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.functionGraphExecutionOutput.update({ where: { id: '' }, data: { scopeId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.functionGraphExecutionOutput.delete({ where: { id: '' } }).execute(); +``` + +### `db.infraCommit` + +CRUD operations for InfraCommit records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | | `message` | String | Yes | -| `metadata` | JSON | Yes | -| `actorId` | UUID | Yes | +| `scopeId` | UUID | Yes | +| `storeId` | UUID | Yes | +| `parentIds` | UUID | Yes | +| `authorId` | UUID | Yes | +| `committerId` | UUID | Yes | +| `treeId` | UUID | Yes | +| `date` | Datetime | Yes | **Operations:** ```typescript -// List all orgFunctionExecutionLog records -const items = await db.orgFunctionExecutionLog.findMany({ select: { createdAt: true, id: true, invocationId: true, taskIdentifier: true, logLevel: true, message: true, metadata: true, actorId: true } }).execute(); +// List all infraCommit records +const items = await db.infraCommit.findMany({ select: { id: true, message: true, scopeId: true, storeId: true, parentIds: true, authorId: true, committerId: true, treeId: true, date: true } }).execute(); // Get one by id -const item = await db.orgFunctionExecutionLog.findOne({ id: '', select: { createdAt: true, id: true, invocationId: true, taskIdentifier: true, logLevel: true, message: true, metadata: true, actorId: true } }).execute(); +const item = await db.infraCommit.findOne({ id: '', select: { id: true, message: true, scopeId: true, storeId: true, parentIds: true, authorId: true, committerId: true, treeId: true, date: true } }).execute(); // Create -const created = await db.orgFunctionExecutionLog.create({ data: { invocationId: '', taskIdentifier: '', logLevel: '', message: '', metadata: '', actorId: '' }, select: { id: true } }).execute(); +const created = await db.infraCommit.create({ data: { message: '', scopeId: '', storeId: '', parentIds: '', authorId: '', committerId: '', treeId: '', date: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgFunctionExecutionLog.update({ where: { id: '' }, data: { invocationId: '' }, select: { id: true } }).execute(); +const updated = await db.infraCommit.update({ where: { id: '' }, data: { message: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgFunctionExecutionLog.delete({ where: { id: '' } }).execute(); +const deleted = await db.infraCommit.delete({ where: { id: '' } }).execute(); ``` -### `db.resourceEvent` +### `db.functionGraphCommit` -CRUD operations for ResourceEvent records. +CRUD operations for FunctionGraphCommit records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `message` | String | Yes | +| `scopeId` | UUID | Yes | +| `storeId` | UUID | Yes | +| `parentIds` | UUID | Yes | +| `authorId` | UUID | Yes | +| `committerId` | UUID | Yes | +| `treeId` | UUID | Yes | +| `date` | Datetime | Yes | + +**Operations:** + +```typescript +// List all functionGraphCommit records +const items = await db.functionGraphCommit.findMany({ select: { id: true, message: true, scopeId: true, storeId: true, parentIds: true, authorId: true, committerId: true, treeId: true, date: true } }).execute(); + +// Get one by id +const item = await db.functionGraphCommit.findOne({ id: '', select: { id: true, message: true, scopeId: true, storeId: true, parentIds: true, authorId: true, committerId: true, treeId: true, date: true } }).execute(); + +// Create +const created = await db.functionGraphCommit.create({ data: { message: '', scopeId: '', storeId: '', parentIds: '', authorId: '', committerId: '', treeId: '', date: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.functionGraphCommit.update({ where: { id: '' }, data: { message: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.functionGraphCommit.delete({ where: { id: '' } }).execute(); +``` + +### `db.functionExecutionLog` + +CRUD operations for FunctionExecutionLog records. **Fields:** @@ -385,174 +1117,186 @@ CRUD operations for ResourceEvent records. |-------|------|----------| | `createdAt` | Datetime | No | | `id` | UUID | No | -| `resourceId` | UUID | Yes | -| `eventType` | String | Yes | -| `actorId` | UUID | Yes | +| `invocationId` | UUID | Yes | +| `taskIdentifier` | String | Yes | +| `logLevel` | String | Yes | | `message` | String | Yes | | `metadata` | JSON | Yes | +| `actorId` | UUID | Yes | | `databaseId` | UUID | Yes | **Operations:** ```typescript -// List all resourceEvent records -const items = await db.resourceEvent.findMany({ select: { createdAt: true, id: true, resourceId: true, eventType: true, actorId: true, message: true, metadata: true, databaseId: true } }).execute(); +// List all functionExecutionLog records +const items = await db.functionExecutionLog.findMany({ select: { createdAt: true, id: true, invocationId: true, taskIdentifier: true, logLevel: true, message: true, metadata: true, actorId: true, databaseId: true } }).execute(); // Get one by id -const item = await db.resourceEvent.findOne({ id: '', select: { createdAt: true, id: true, resourceId: true, eventType: true, actorId: true, message: true, metadata: true, databaseId: true } }).execute(); +const item = await db.functionExecutionLog.findOne({ id: '', select: { createdAt: true, id: true, invocationId: true, taskIdentifier: true, logLevel: true, message: true, metadata: true, actorId: true, databaseId: true } }).execute(); // Create -const created = await db.resourceEvent.create({ data: { resourceId: '', eventType: '', actorId: '', message: '', metadata: '', databaseId: '' }, select: { id: true } }).execute(); +const created = await db.functionExecutionLog.create({ data: { invocationId: '', taskIdentifier: '', logLevel: '', message: '', metadata: '', actorId: '', databaseId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.resourceEvent.update({ where: { id: '' }, data: { resourceId: '' }, select: { id: true } }).execute(); +const updated = await db.functionExecutionLog.update({ where: { id: '' }, data: { invocationId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.resourceEvent.delete({ where: { id: '' } }).execute(); +const deleted = await db.functionExecutionLog.delete({ where: { id: '' } }).execute(); ``` -### `db.functionGraphExecutionOutput` +### `db.platformResourcesResolvedRequirement` -CRUD operations for FunctionGraphExecutionOutput records. +CRUD operations for PlatformResourcesResolvedRequirement records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `createdAt` | Datetime | No | -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `hash` | Base64EncodedBinary | Yes | -| `data` | JSON | Yes | +| `resourceId` | UUID | Yes | +| `slug` | String | Yes | +| `namespaceId` | UUID | Yes | +| `requirementKind` | String | Yes | +| `name` | String | Yes | +| `required` | Boolean | Yes | +| `atomId` | UUID | Yes | +| `present` | Boolean | Yes | +| `secretsObjectName` | String | Yes | +| `configObjectName` | String | Yes | **Operations:** ```typescript -// List all functionGraphExecutionOutput records -const items = await db.functionGraphExecutionOutput.findMany({ select: { createdAt: true, id: true, databaseId: true, hash: true, data: true } }).execute(); +// List all platformResourcesResolvedRequirement records +const items = await db.platformResourcesResolvedRequirement.findMany({ select: { resourceId: true, slug: true, namespaceId: true, requirementKind: true, name: true, required: true, atomId: true, present: true, secretsObjectName: true, configObjectName: true } }).execute(); // Get one by id -const item = await db.functionGraphExecutionOutput.findOne({ id: '', select: { createdAt: true, id: true, databaseId: true, hash: true, data: true } }).execute(); +const item = await db.platformResourcesResolvedRequirement.findOne({ id: '', select: { resourceId: true, slug: true, namespaceId: true, requirementKind: true, name: true, required: true, atomId: true, present: true, secretsObjectName: true, configObjectName: true } }).execute(); // Create -const created = await db.functionGraphExecutionOutput.create({ data: { databaseId: '', hash: '', data: '' }, select: { id: true } }).execute(); +const created = await db.platformResourcesResolvedRequirement.create({ data: { resourceId: '', slug: '', namespaceId: '', requirementKind: '', name: '', required: '', atomId: '', present: '', secretsObjectName: '', configObjectName: '' }, select: { id: true } }).execute(); // Update -const updated = await db.functionGraphExecutionOutput.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.platformResourcesResolvedRequirement.update({ where: { id: '' }, data: { resourceId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.functionGraphExecutionOutput.delete({ where: { id: '' } }).execute(); +const deleted = await db.platformResourcesResolvedRequirement.delete({ where: { id: '' } }).execute(); ``` -### `db.functionGraphCommit` +### `db.resourcesResolvedRequirement` -CRUD operations for FunctionGraphCommit records. +CRUD operations for ResourcesResolvedRequirement records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `id` | UUID | No | -| `message` | String | Yes | -| `databaseId` | UUID | Yes | -| `storeId` | UUID | Yes | -| `parentIds` | UUID | Yes | -| `authorId` | UUID | Yes | -| `committerId` | UUID | Yes | -| `treeId` | UUID | Yes | -| `date` | Datetime | Yes | +| `resourceId` | UUID | Yes | +| `slug` | String | Yes | +| `namespaceId` | UUID | Yes | +| `requirementKind` | String | Yes | +| `name` | String | Yes | +| `required` | Boolean | Yes | +| `atomId` | UUID | Yes | +| `present` | Boolean | Yes | +| `secretsObjectName` | String | Yes | +| `configObjectName` | String | Yes | **Operations:** ```typescript -// List all functionGraphCommit records -const items = await db.functionGraphCommit.findMany({ select: { id: true, message: true, databaseId: true, storeId: true, parentIds: true, authorId: true, committerId: true, treeId: true, date: true } }).execute(); +// List all resourcesResolvedRequirement records +const items = await db.resourcesResolvedRequirement.findMany({ select: { resourceId: true, slug: true, namespaceId: true, requirementKind: true, name: true, required: true, atomId: true, present: true, secretsObjectName: true, configObjectName: true } }).execute(); // Get one by id -const item = await db.functionGraphCommit.findOne({ id: '', select: { id: true, message: true, databaseId: true, storeId: true, parentIds: true, authorId: true, committerId: true, treeId: true, date: true } }).execute(); +const item = await db.resourcesResolvedRequirement.findOne({ id: '', select: { resourceId: true, slug: true, namespaceId: true, requirementKind: true, name: true, required: true, atomId: true, present: true, secretsObjectName: true, configObjectName: true } }).execute(); // Create -const created = await db.functionGraphCommit.create({ data: { message: '', databaseId: '', storeId: '', parentIds: '', authorId: '', committerId: '', treeId: '', date: '' }, select: { id: true } }).execute(); +const created = await db.resourcesResolvedRequirement.create({ data: { resourceId: '', slug: '', namespaceId: '', requirementKind: '', name: '', required: '', atomId: '', present: '', secretsObjectName: '', configObjectName: '' }, select: { id: true } }).execute(); // Update -const updated = await db.functionGraphCommit.update({ where: { id: '' }, data: { message: '' }, select: { id: true } }).execute(); +const updated = await db.resourcesResolvedRequirement.update({ where: { id: '' }, data: { resourceId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.functionGraphCommit.delete({ where: { id: '' } }).execute(); +const deleted = await db.resourcesResolvedRequirement.delete({ where: { id: '' } }).execute(); ``` -### `db.secretDefinition` +### `db.dbPreset` -CRUD operations for SecretDefinition records. +CRUD operations for DbPreset records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | +| `storeId` | UUID | Yes | +| `slug` | String | Yes | +| `definition` | JSON | Yes | +| `commitId` | UUID | Yes | +| `modulesHash` | UUID | Yes | +| `label` | String | Yes | +| `description` | String | Yes | +| `active` | Boolean | Yes | | `createdAt` | Datetime | No | | `updatedAt` | Datetime | No | -| `name` | String | Yes | -| `description` | String | Yes | -| `isBuiltIn` | Boolean | Yes | -| `labels` | JSON | Yes | -| `annotations` | JSON | Yes | -| `databaseId` | UUID | Yes | **Operations:** ```typescript -// List all secretDefinition records -const items = await db.secretDefinition.findMany({ select: { id: true, createdAt: true, updatedAt: true, name: true, description: true, isBuiltIn: true, labels: true, annotations: true, databaseId: true } }).execute(); +// List all dbPreset records +const items = await db.dbPreset.findMany({ select: { id: true, storeId: true, slug: true, definition: true, commitId: true, modulesHash: true, label: true, description: true, active: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.secretDefinition.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, name: true, description: true, isBuiltIn: true, labels: true, annotations: true, databaseId: true } }).execute(); +const item = await db.dbPreset.findOne({ id: '', select: { id: true, storeId: true, slug: true, definition: true, commitId: true, modulesHash: true, label: true, description: true, active: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.secretDefinition.create({ data: { name: '', description: '', isBuiltIn: '', labels: '', annotations: '', databaseId: '' }, select: { id: true } }).execute(); +const created = await db.dbPreset.create({ data: { storeId: '', slug: '', definition: '', commitId: '', modulesHash: '', label: '', description: '', active: '' }, select: { id: true } }).execute(); // Update -const updated = await db.secretDefinition.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.dbPreset.update({ where: { id: '' }, data: { storeId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.secretDefinition.delete({ where: { id: '' } }).execute(); +const deleted = await db.dbPreset.delete({ where: { id: '' } }).execute(); ``` -### `db.functionExecutionLog` +### `db.platformNamespace` -CRUD operations for FunctionExecutionLog records. +CRUD operations for PlatformNamespace records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `createdAt` | Datetime | No | | `id` | UUID | No | -| `invocationId` | UUID | Yes | -| `taskIdentifier` | String | Yes | -| `logLevel` | String | Yes | -| `message` | String | Yes | -| `metadata` | JSON | Yes | -| `actorId` | UUID | Yes | -| `databaseId` | UUID | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | +| `name` | String | Yes | +| `namespaceName` | String | Yes | +| `description` | String | Yes | +| `isActive` | Boolean | Yes | +| `status` | String | Yes | +| `lastError` | String | Yes | +| `labels` | JSON | Yes | +| `annotations` | JSON | Yes | +| `isManaged` | Boolean | Yes | **Operations:** ```typescript -// List all functionExecutionLog records -const items = await db.functionExecutionLog.findMany({ select: { createdAt: true, id: true, invocationId: true, taskIdentifier: true, logLevel: true, message: true, metadata: true, actorId: true, databaseId: true } }).execute(); +// List all platformNamespace records +const items = await db.platformNamespace.findMany({ select: { id: true, createdAt: true, updatedAt: true, name: true, namespaceName: true, description: true, isActive: true, status: true, lastError: true, labels: true, annotations: true, isManaged: true } }).execute(); // Get one by id -const item = await db.functionExecutionLog.findOne({ id: '', select: { createdAt: true, id: true, invocationId: true, taskIdentifier: true, logLevel: true, message: true, metadata: true, actorId: true, databaseId: true } }).execute(); +const item = await db.platformNamespace.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, name: true, namespaceName: true, description: true, isActive: true, status: true, lastError: true, labels: true, annotations: true, isManaged: true } }).execute(); // Create -const created = await db.functionExecutionLog.create({ data: { invocationId: '', taskIdentifier: '', logLevel: '', message: '', metadata: '', actorId: '', databaseId: '' }, select: { id: true } }).execute(); +const created = await db.platformNamespace.create({ data: { name: '', namespaceName: '', description: '', isActive: '', status: '', lastError: '', labels: '', annotations: '', isManaged: '' }, select: { id: true } }).execute(); // Update -const updated = await db.functionExecutionLog.update({ where: { id: '' }, data: { invocationId: '' }, select: { id: true } }).execute(); +const updated = await db.platformNamespace.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.functionExecutionLog.delete({ where: { id: '' } }).execute(); +const deleted = await db.platformNamespace.delete({ where: { id: '' } }).execute(); ``` ### `db.functionGraph` @@ -564,7 +1308,7 @@ CRUD operations for FunctionGraph records. | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `databaseId` | UUID | Yes | +| `scopeId` | UUID | Yes | | `storeId` | UUID | Yes | | `context` | String | Yes | | `name` | String | Yes | @@ -580,16 +1324,16 @@ CRUD operations for FunctionGraph records. ```typescript // List all functionGraph records -const items = await db.functionGraph.findMany({ select: { id: true, databaseId: true, storeId: true, context: true, name: true, description: true, definitionsCommitId: true, isValid: true, validationErrors: true, createdBy: true, createdAt: true, updatedAt: true } }).execute(); +const items = await db.functionGraph.findMany({ select: { id: true, scopeId: true, storeId: true, context: true, name: true, description: true, definitionsCommitId: true, isValid: true, validationErrors: true, createdBy: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.functionGraph.findOne({ id: '', select: { id: true, databaseId: true, storeId: true, context: true, name: true, description: true, definitionsCommitId: true, isValid: true, validationErrors: true, createdBy: true, createdAt: true, updatedAt: true } }).execute(); +const item = await db.functionGraph.findOne({ id: '', select: { id: true, scopeId: true, storeId: true, context: true, name: true, description: true, definitionsCommitId: true, isValid: true, validationErrors: true, createdBy: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.functionGraph.create({ data: { databaseId: '', storeId: '', context: '', name: '', description: '', definitionsCommitId: '', isValid: '', validationErrors: '', createdBy: '' }, select: { id: true } }).execute(); +const created = await db.functionGraph.create({ data: { scopeId: '', storeId: '', context: '', name: '', description: '', definitionsCommitId: '', isValid: '', validationErrors: '', createdBy: '' }, select: { id: true } }).execute(); // Update -const updated = await db.functionGraph.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.functionGraph.update({ where: { id: '' }, data: { scopeId: '' }, select: { id: true } }).execute(); // Delete const deleted = await db.functionGraph.delete({ where: { id: '' } }).execute(); @@ -606,7 +1350,7 @@ CRUD operations for FunctionGraphExecutionNodeState records. | `createdAt` | Datetime | No | | `id` | UUID | No | | `executionId` | UUID | Yes | -| `databaseId` | UUID | Yes | +| `scopeId` | UUID | Yes | | `nodeName` | String | Yes | | `nodePath` | String | Yes | | `status` | String | Yes | @@ -620,13 +1364,13 @@ CRUD operations for FunctionGraphExecutionNodeState records. ```typescript // List all functionGraphExecutionNodeState records -const items = await db.functionGraphExecutionNodeState.findMany({ select: { createdAt: true, id: true, executionId: true, databaseId: true, nodeName: true, nodePath: true, status: true, startedAt: true, completedAt: true, errorCode: true, errorMessage: true, outputId: true } }).execute(); +const items = await db.functionGraphExecutionNodeState.findMany({ select: { createdAt: true, id: true, executionId: true, scopeId: true, nodeName: true, nodePath: true, status: true, startedAt: true, completedAt: true, errorCode: true, errorMessage: true, outputId: true } }).execute(); // Get one by id -const item = await db.functionGraphExecutionNodeState.findOne({ id: '', select: { createdAt: true, id: true, executionId: true, databaseId: true, nodeName: true, nodePath: true, status: true, startedAt: true, completedAt: true, errorCode: true, errorMessage: true, outputId: true } }).execute(); +const item = await db.functionGraphExecutionNodeState.findOne({ id: '', select: { createdAt: true, id: true, executionId: true, scopeId: true, nodeName: true, nodePath: true, status: true, startedAt: true, completedAt: true, errorCode: true, errorMessage: true, outputId: true } }).execute(); // Create -const created = await db.functionGraphExecutionNodeState.create({ data: { executionId: '', databaseId: '', nodeName: '', nodePath: '', status: '', startedAt: '', completedAt: '', errorCode: '', errorMessage: '', outputId: '' }, select: { id: true } }).execute(); +const created = await db.functionGraphExecutionNodeState.create({ data: { executionId: '', scopeId: '', nodeName: '', nodePath: '', status: '', startedAt: '', completedAt: '', errorCode: '', errorMessage: '', outputId: '' }, select: { id: true } }).execute(); // Update const updated = await db.functionGraphExecutionNodeState.update({ where: { id: '' }, data: { executionId: '' }, select: { id: true } }).execute(); @@ -635,9 +1379,9 @@ const updated = await db.functionGraphExecutionNodeState.update({ where: { id: ' const deleted = await db.functionGraphExecutionNodeState.delete({ where: { id: '' } }).execute(); ``` -### `db.platformNamespace` +### `db.namespace` -CRUD operations for PlatformNamespace records. +CRUD operations for Namespace records. **Fields:** @@ -650,35 +1394,35 @@ CRUD operations for PlatformNamespace records. | `namespaceName` | String | Yes | | `description` | String | Yes | | `isActive` | Boolean | Yes | +| `status` | String | Yes | +| `lastError` | String | Yes | | `labels` | JSON | Yes | | `annotations` | JSON | Yes | | `databaseId` | UUID | Yes | -| `sourceDatabaseId` | UUID | Yes | -| `sourceScope` | String | Yes | | `isManaged` | Boolean | Yes | **Operations:** ```typescript -// List all platformNamespace records -const items = await db.platformNamespace.findMany({ select: { id: true, createdAt: true, updatedAt: true, name: true, namespaceName: true, description: true, isActive: true, labels: true, annotations: true, databaseId: true, sourceDatabaseId: true, sourceScope: true, isManaged: true } }).execute(); +// List all namespace records +const items = await db.namespace.findMany({ select: { id: true, createdAt: true, updatedAt: true, name: true, namespaceName: true, description: true, isActive: true, status: true, lastError: true, labels: true, annotations: true, databaseId: true, isManaged: true } }).execute(); // Get one by id -const item = await db.platformNamespace.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, name: true, namespaceName: true, description: true, isActive: true, labels: true, annotations: true, databaseId: true, sourceDatabaseId: true, sourceScope: true, isManaged: true } }).execute(); +const item = await db.namespace.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, name: true, namespaceName: true, description: true, isActive: true, status: true, lastError: true, labels: true, annotations: true, databaseId: true, isManaged: true } }).execute(); // Create -const created = await db.platformNamespace.create({ data: { name: '', namespaceName: '', description: '', isActive: '', labels: '', annotations: '', databaseId: '', sourceDatabaseId: '', sourceScope: '', isManaged: '' }, select: { id: true } }).execute(); +const created = await db.namespace.create({ data: { name: '', namespaceName: '', description: '', isActive: '', status: '', lastError: '', labels: '', annotations: '', databaseId: '', isManaged: '' }, select: { id: true } }).execute(); // Update -const updated = await db.platformNamespace.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.namespace.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.platformNamespace.delete({ where: { id: '' } }).execute(); +const deleted = await db.namespace.delete({ where: { id: '' } }).execute(); ``` -### `db.orgFunctionInvocation` +### `db.platformFunctionInvocation` -CRUD operations for OrgFunctionInvocation records. +CRUD operations for PlatformFunctionInvocation records. **Fields:** @@ -702,20 +1446,20 @@ CRUD operations for OrgFunctionInvocation records. **Operations:** ```typescript -// List all orgFunctionInvocation records -const items = await db.orgFunctionInvocation.findMany({ select: { createdAt: true, id: true, actorId: true, taskIdentifier: true, payload: true, status: true, result: true, error: true, durationMs: true, jobId: true, startedAt: true, completedAt: true, parentInvocationId: true, graphExecutionId: true } }).execute(); +// List all platformFunctionInvocation records +const items = await db.platformFunctionInvocation.findMany({ select: { createdAt: true, id: true, actorId: true, taskIdentifier: true, payload: true, status: true, result: true, error: true, durationMs: true, jobId: true, startedAt: true, completedAt: true, parentInvocationId: true, graphExecutionId: true } }).execute(); // Get one by id -const item = await db.orgFunctionInvocation.findOne({ id: '', select: { createdAt: true, id: true, actorId: true, taskIdentifier: true, payload: true, status: true, result: true, error: true, durationMs: true, jobId: true, startedAt: true, completedAt: true, parentInvocationId: true, graphExecutionId: true } }).execute(); +const item = await db.platformFunctionInvocation.findOne({ id: '', select: { createdAt: true, id: true, actorId: true, taskIdentifier: true, payload: true, status: true, result: true, error: true, durationMs: true, jobId: true, startedAt: true, completedAt: true, parentInvocationId: true, graphExecutionId: true } }).execute(); // Create -const created = await db.orgFunctionInvocation.create({ data: { actorId: '', taskIdentifier: '', payload: '', status: '', result: '', error: '', durationMs: '', jobId: '', startedAt: '', completedAt: '', parentInvocationId: '', graphExecutionId: '' }, select: { id: true } }).execute(); +const created = await db.platformFunctionInvocation.create({ data: { actorId: '', taskIdentifier: '', payload: '', status: '', result: '', error: '', durationMs: '', jobId: '', startedAt: '', completedAt: '', parentInvocationId: '', graphExecutionId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgFunctionInvocation.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); +const updated = await db.platformFunctionInvocation.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgFunctionInvocation.delete({ where: { id: '' } }).execute(); +const deleted = await db.platformFunctionInvocation.delete({ where: { id: '' } }).execute(); ``` ### `db.functionInvocation` @@ -783,19 +1527,18 @@ CRUD operations for PlatformNamespaceEvent records. | `networkEgressBytes` | BigInt | Yes | | `podCount` | Int | Yes | | `metrics` | JSON | Yes | -| `databaseId` | UUID | Yes | **Operations:** ```typescript // List all platformNamespaceEvent records -const items = await db.platformNamespaceEvent.findMany({ select: { createdAt: true, id: true, namespaceId: true, eventType: true, actorId: true, message: true, metadata: true, cpuMillicores: true, memoryBytes: true, storageBytes: true, networkIngressBytes: true, networkEgressBytes: true, podCount: true, metrics: true, databaseId: true } }).execute(); +const items = await db.platformNamespaceEvent.findMany({ select: { createdAt: true, id: true, namespaceId: true, eventType: true, actorId: true, message: true, metadata: true, cpuMillicores: true, memoryBytes: true, storageBytes: true, networkIngressBytes: true, networkEgressBytes: true, podCount: true, metrics: true } }).execute(); // Get one by id -const item = await db.platformNamespaceEvent.findOne({ id: '', select: { createdAt: true, id: true, namespaceId: true, eventType: true, actorId: true, message: true, metadata: true, cpuMillicores: true, memoryBytes: true, storageBytes: true, networkIngressBytes: true, networkEgressBytes: true, podCount: true, metrics: true, databaseId: true } }).execute(); +const item = await db.platformNamespaceEvent.findOne({ id: '', select: { createdAt: true, id: true, namespaceId: true, eventType: true, actorId: true, message: true, metadata: true, cpuMillicores: true, memoryBytes: true, storageBytes: true, networkIngressBytes: true, networkEgressBytes: true, podCount: true, metrics: true } }).execute(); // Create -const created = await db.platformNamespaceEvent.create({ data: { namespaceId: '', eventType: '', actorId: '', message: '', metadata: '', cpuMillicores: '', memoryBytes: '', storageBytes: '', networkIngressBytes: '', networkEgressBytes: '', podCount: '', metrics: '', databaseId: '' }, select: { id: true } }).execute(); +const created = await db.platformNamespaceEvent.create({ data: { namespaceId: '', eventType: '', actorId: '', message: '', metadata: '', cpuMillicores: '', memoryBytes: '', storageBytes: '', networkIngressBytes: '', networkEgressBytes: '', podCount: '', metrics: '' }, select: { id: true } }).execute(); // Update const updated = await db.platformNamespaceEvent.update({ where: { id: '' }, data: { namespaceId: '' }, select: { id: true } }).execute(); @@ -804,6 +1547,89 @@ const updated = await db.platformNamespaceEvent.update({ where: { id: '' } const deleted = await db.platformNamespaceEvent.delete({ where: { id: '' } }).execute(); ``` +### `db.integrationProvider` + +CRUD operations for IntegrationProvider records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | +| `slug` | String | Yes | +| `name` | String | Yes | +| `description` | String | Yes | +| `category` | String | Yes | +| `icon` | String | Yes | +| `logo` | ConstructiveInternalTypeImage | Yes | +| `brand` | JSON | Yes | +| `requiredSecrets` | ResourceRequirement | Yes | +| `requiredConfigs` | ResourceRequirement | Yes | + +**Operations:** + +```typescript +// List all integrationProvider records +const items = await db.integrationProvider.findMany({ select: { id: true, createdAt: true, updatedAt: true, slug: true, name: true, description: true, category: true, icon: true, logo: true, brand: true, requiredSecrets: true, requiredConfigs: true } }).execute(); + +// Get one by id +const item = await db.integrationProvider.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, slug: true, name: true, description: true, category: true, icon: true, logo: true, brand: true, requiredSecrets: true, requiredConfigs: true } }).execute(); + +// Create +const created = await db.integrationProvider.create({ data: { slug: '', name: '', description: '', category: '', icon: '', logo: '', brand: '', requiredSecrets: '', requiredConfigs: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.integrationProvider.update({ where: { id: '' }, data: { slug: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.integrationProvider.delete({ where: { id: '' } }).execute(); +``` + +### `db.namespaceEvent` + +CRUD operations for NamespaceEvent records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `createdAt` | Datetime | No | +| `id` | UUID | No | +| `namespaceId` | UUID | Yes | +| `eventType` | String | Yes | +| `actorId` | UUID | Yes | +| `message` | String | Yes | +| `metadata` | JSON | Yes | +| `cpuMillicores` | Int | Yes | +| `memoryBytes` | BigInt | Yes | +| `storageBytes` | BigInt | Yes | +| `networkIngressBytes` | BigInt | Yes | +| `networkEgressBytes` | BigInt | Yes | +| `podCount` | Int | Yes | +| `metrics` | JSON | Yes | +| `databaseId` | UUID | Yes | + +**Operations:** + +```typescript +// List all namespaceEvent records +const items = await db.namespaceEvent.findMany({ select: { createdAt: true, id: true, namespaceId: true, eventType: true, actorId: true, message: true, metadata: true, cpuMillicores: true, memoryBytes: true, storageBytes: true, networkIngressBytes: true, networkEgressBytes: true, podCount: true, metrics: true, databaseId: true } }).execute(); + +// Get one by id +const item = await db.namespaceEvent.findOne({ id: '', select: { createdAt: true, id: true, namespaceId: true, eventType: true, actorId: true, message: true, metadata: true, cpuMillicores: true, memoryBytes: true, storageBytes: true, networkIngressBytes: true, networkEgressBytes: true, podCount: true, metrics: true, databaseId: true } }).execute(); + +// Create +const created = await db.namespaceEvent.create({ data: { namespaceId: '', eventType: '', actorId: '', message: '', metadata: '', cpuMillicores: '', memoryBytes: '', storageBytes: '', networkIngressBytes: '', networkEgressBytes: '', podCount: '', metrics: '', databaseId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.namespaceEvent.update({ where: { id: '' }, data: { namespaceId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.namespaceEvent.delete({ where: { id: '' } }).execute(); +``` + ### `db.functionGraphExecution` CRUD operations for FunctionGraphExecution records. @@ -816,7 +1642,7 @@ CRUD operations for FunctionGraphExecution records. | `id` | UUID | No | | `graphId` | UUID | Yes | | `invocationId` | UUID | Yes | -| `databaseId` | UUID | Yes | +| `scopeId` | UUID | Yes | | `outputNode` | String | Yes | | `outputPort` | String | Yes | | `status` | String | Yes | @@ -833,6 +1659,7 @@ CRUD operations for FunctionGraphExecution records. | `maxTicks` | Int | Yes | | `maxPendingJobs` | Int | Yes | | `timeoutAt` | Datetime | Yes | +| `lastProgressAt` | Datetime | Yes | | `errorCode` | String | Yes | | `errorMessage` | String | Yes | @@ -840,13 +1667,13 @@ CRUD operations for FunctionGraphExecution records. ```typescript // List all functionGraphExecution records -const items = await db.functionGraphExecution.findMany({ select: { startedAt: true, id: true, graphId: true, invocationId: true, databaseId: true, outputNode: true, outputPort: true, status: true, inputPayload: true, outputPayload: true, nodeOutputs: true, executionPlan: true, currentWave: true, parentExecutionId: true, parentNodeName: true, definitionsCommitId: true, tickCount: true, completedAt: true, maxTicks: true, maxPendingJobs: true, timeoutAt: true, errorCode: true, errorMessage: true } }).execute(); +const items = await db.functionGraphExecution.findMany({ select: { startedAt: true, id: true, graphId: true, invocationId: true, scopeId: true, outputNode: true, outputPort: true, status: true, inputPayload: true, outputPayload: true, nodeOutputs: true, executionPlan: true, currentWave: true, parentExecutionId: true, parentNodeName: true, definitionsCommitId: true, tickCount: true, completedAt: true, maxTicks: true, maxPendingJobs: true, timeoutAt: true, lastProgressAt: true, errorCode: true, errorMessage: true } }).execute(); // Get one by id -const item = await db.functionGraphExecution.findOne({ id: '', select: { startedAt: true, id: true, graphId: true, invocationId: true, databaseId: true, outputNode: true, outputPort: true, status: true, inputPayload: true, outputPayload: true, nodeOutputs: true, executionPlan: true, currentWave: true, parentExecutionId: true, parentNodeName: true, definitionsCommitId: true, tickCount: true, completedAt: true, maxTicks: true, maxPendingJobs: true, timeoutAt: true, errorCode: true, errorMessage: true } }).execute(); +const item = await db.functionGraphExecution.findOne({ id: '', select: { startedAt: true, id: true, graphId: true, invocationId: true, scopeId: true, outputNode: true, outputPort: true, status: true, inputPayload: true, outputPayload: true, nodeOutputs: true, executionPlan: true, currentWave: true, parentExecutionId: true, parentNodeName: true, definitionsCommitId: true, tickCount: true, completedAt: true, maxTicks: true, maxPendingJobs: true, timeoutAt: true, lastProgressAt: true, errorCode: true, errorMessage: true } }).execute(); // Create -const created = await db.functionGraphExecution.create({ data: { startedAt: '', graphId: '', invocationId: '', databaseId: '', outputNode: '', outputPort: '', status: '', inputPayload: '', outputPayload: '', nodeOutputs: '', executionPlan: '', currentWave: '', parentExecutionId: '', parentNodeName: '', definitionsCommitId: '', tickCount: '', completedAt: '', maxTicks: '', maxPendingJobs: '', timeoutAt: '', errorCode: '', errorMessage: '' }, select: { id: true } }).execute(); +const created = await db.functionGraphExecution.create({ data: { startedAt: '', graphId: '', invocationId: '', scopeId: '', outputNode: '', outputPort: '', status: '', inputPayload: '', outputPayload: '', nodeOutputs: '', executionPlan: '', currentWave: '', parentExecutionId: '', parentNodeName: '', definitionsCommitId: '', tickCount: '', completedAt: '', maxTicks: '', maxPendingJobs: '', timeoutAt: '', lastProgressAt: '', errorCode: '', errorMessage: '' }, select: { id: true } }).execute(); // Update const updated = await db.functionGraphExecution.update({ where: { id: '' }, data: { startedAt: '' }, select: { id: true } }).execute(); @@ -855,6 +1682,71 @@ const updated = await db.functionGraphExecution.update({ where: { id: '' } const deleted = await db.functionGraphExecution.delete({ where: { id: '' } }).execute(); ``` +### `db.platformFunctionDefinition` + +CRUD operations for PlatformFunctionDefinition records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | +| `scope` | String | Yes | +| `name` | String | Yes | +| `taskIdentifier` | String | Yes | +| `description` | String | Yes | +| `isPublished` | Boolean | Yes | +| `accessChannels` | String | Yes | +| `publishedAt` | Datetime | Yes | +| `maxAttempts` | Int | Yes | +| `priority` | Int | Yes | +| `queueName` | String | Yes | +| `runtime` | String | Yes | +| `targetSchema` | String | Yes | +| `targetFunction` | String | Yes | +| `moduleTable` | String | Yes | +| `functionColumns` | JSON | Yes | +| `payloadArgs` | JSON | Yes | +| `image` | String | Yes | +| `concurrency` | Int | Yes | +| `scaleMin` | Int | Yes | +| `scaleMax` | Int | Yes | +| `timeoutSeconds` | Int | Yes | +| `resources` | JSON | Yes | +| `isBuiltIn` | Boolean | Yes | +| `requiredSecrets` | ResourceRequirement | Yes | +| `requiredConfigs` | ResourceRequirement | Yes | +| `integrations` | String | Yes | +| `requiredBuckets` | String | Yes | +| `requiredModels` | String | Yes | +| `inputs` | JSON | Yes | +| `outputs` | JSON | Yes | +| `props` | JSON | Yes | +| `volatile` | Boolean | Yes | +| `icon` | String | Yes | +| `category` | String | Yes | + +**Operations:** + +```typescript +// List all platformFunctionDefinition records +const items = await db.platformFunctionDefinition.findMany({ select: { id: true, createdAt: true, updatedAt: true, scope: true, name: true, taskIdentifier: true, description: true, isPublished: true, accessChannels: true, publishedAt: true, maxAttempts: true, priority: true, queueName: true, runtime: true, targetSchema: true, targetFunction: true, moduleTable: true, functionColumns: true, payloadArgs: true, image: true, concurrency: true, scaleMin: true, scaleMax: true, timeoutSeconds: true, resources: true, isBuiltIn: true, requiredSecrets: true, requiredConfigs: true, integrations: true, requiredBuckets: true, requiredModels: true, inputs: true, outputs: true, props: true, volatile: true, icon: true, category: true } }).execute(); + +// Get one by id +const item = await db.platformFunctionDefinition.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, scope: true, name: true, taskIdentifier: true, description: true, isPublished: true, accessChannels: true, publishedAt: true, maxAttempts: true, priority: true, queueName: true, runtime: true, targetSchema: true, targetFunction: true, moduleTable: true, functionColumns: true, payloadArgs: true, image: true, concurrency: true, scaleMin: true, scaleMax: true, timeoutSeconds: true, resources: true, isBuiltIn: true, requiredSecrets: true, requiredConfigs: true, integrations: true, requiredBuckets: true, requiredModels: true, inputs: true, outputs: true, props: true, volatile: true, icon: true, category: true } }).execute(); + +// Create +const created = await db.platformFunctionDefinition.create({ data: { scope: '', name: '', taskIdentifier: '', description: '', isPublished: '', accessChannels: '', publishedAt: '', maxAttempts: '', priority: '', queueName: '', runtime: '', targetSchema: '', targetFunction: '', moduleTable: '', functionColumns: '', payloadArgs: '', image: '', concurrency: '', scaleMin: '', scaleMax: '', timeoutSeconds: '', resources: '', isBuiltIn: '', requiredSecrets: '', requiredConfigs: '', integrations: '', requiredBuckets: '', requiredModels: '', inputs: '', outputs: '', props: '', volatile: '', icon: '', category: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformFunctionDefinition.update({ where: { id: '' }, data: { scope: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformFunctionDefinition.delete({ where: { id: '' } }).execute(); +``` + ### `db.functionDefinition` CRUD operations for FunctionDefinition records. @@ -870,11 +1762,18 @@ CRUD operations for FunctionDefinition records. | `name` | String | Yes | | `taskIdentifier` | String | Yes | | `description` | String | Yes | -| `isInvocable` | Boolean | Yes | +| `isPublished` | Boolean | Yes | +| `accessChannels` | String | Yes | +| `publishedAt` | Datetime | Yes | | `maxAttempts` | Int | Yes | | `priority` | Int | Yes | | `queueName` | String | Yes | | `runtime` | String | Yes | +| `targetSchema` | String | Yes | +| `targetFunction` | String | Yes | +| `moduleTable` | String | Yes | +| `functionColumns` | JSON | Yes | +| `payloadArgs` | JSON | Yes | | `image` | String | Yes | | `concurrency` | Int | Yes | | `scaleMin` | Int | Yes | @@ -882,8 +1781,9 @@ CRUD operations for FunctionDefinition records. | `timeoutSeconds` | Int | Yes | | `resources` | JSON | Yes | | `isBuiltIn` | Boolean | Yes | -| `requiredSecrets` | FunctionRequirement | Yes | -| `requiredConfigs` | FunctionRequirement | Yes | +| `requiredSecrets` | ResourceRequirement | Yes | +| `requiredConfigs` | ResourceRequirement | Yes | +| `integrations` | String | Yes | | `requiredBuckets` | String | Yes | | `requiredModels` | String | Yes | | `inputs` | JSON | Yes | @@ -892,18 +1792,19 @@ CRUD operations for FunctionDefinition records. | `volatile` | Boolean | Yes | | `icon` | String | Yes | | `category` | String | Yes | +| `databaseId` | UUID | Yes | **Operations:** ```typescript // List all functionDefinition records -const items = await db.functionDefinition.findMany({ select: { id: true, createdAt: true, updatedAt: true, scope: true, name: true, taskIdentifier: true, description: true, isInvocable: true, maxAttempts: true, priority: true, queueName: true, runtime: true, image: true, concurrency: true, scaleMin: true, scaleMax: true, timeoutSeconds: true, resources: true, isBuiltIn: true, requiredSecrets: true, requiredConfigs: true, requiredBuckets: true, requiredModels: true, inputs: true, outputs: true, props: true, volatile: true, icon: true, category: true } }).execute(); +const items = await db.functionDefinition.findMany({ select: { id: true, createdAt: true, updatedAt: true, scope: true, name: true, taskIdentifier: true, description: true, isPublished: true, accessChannels: true, publishedAt: true, maxAttempts: true, priority: true, queueName: true, runtime: true, targetSchema: true, targetFunction: true, moduleTable: true, functionColumns: true, payloadArgs: true, image: true, concurrency: true, scaleMin: true, scaleMax: true, timeoutSeconds: true, resources: true, isBuiltIn: true, requiredSecrets: true, requiredConfigs: true, integrations: true, requiredBuckets: true, requiredModels: true, inputs: true, outputs: true, props: true, volatile: true, icon: true, category: true, databaseId: true } }).execute(); // Get one by id -const item = await db.functionDefinition.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, scope: true, name: true, taskIdentifier: true, description: true, isInvocable: true, maxAttempts: true, priority: true, queueName: true, runtime: true, image: true, concurrency: true, scaleMin: true, scaleMax: true, timeoutSeconds: true, resources: true, isBuiltIn: true, requiredSecrets: true, requiredConfigs: true, requiredBuckets: true, requiredModels: true, inputs: true, outputs: true, props: true, volatile: true, icon: true, category: true } }).execute(); +const item = await db.functionDefinition.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, scope: true, name: true, taskIdentifier: true, description: true, isPublished: true, accessChannels: true, publishedAt: true, maxAttempts: true, priority: true, queueName: true, runtime: true, targetSchema: true, targetFunction: true, moduleTable: true, functionColumns: true, payloadArgs: true, image: true, concurrency: true, scaleMin: true, scaleMax: true, timeoutSeconds: true, resources: true, isBuiltIn: true, requiredSecrets: true, requiredConfigs: true, integrations: true, requiredBuckets: true, requiredModels: true, inputs: true, outputs: true, props: true, volatile: true, icon: true, category: true, databaseId: true } }).execute(); // Create -const created = await db.functionDefinition.create({ data: { scope: '', name: '', taskIdentifier: '', description: '', isInvocable: '', maxAttempts: '', priority: '', queueName: '', runtime: '', image: '', concurrency: '', scaleMin: '', scaleMax: '', timeoutSeconds: '', resources: '', isBuiltIn: '', requiredSecrets: '', requiredConfigs: '', requiredBuckets: '', requiredModels: '', inputs: '', outputs: '', props: '', volatile: '', icon: '', category: '' }, select: { id: true } }).execute(); +const created = await db.functionDefinition.create({ data: { scope: '', name: '', taskIdentifier: '', description: '', isPublished: '', accessChannels: '', publishedAt: '', maxAttempts: '', priority: '', queueName: '', runtime: '', targetSchema: '', targetFunction: '', moduleTable: '', functionColumns: '', payloadArgs: '', image: '', concurrency: '', scaleMin: '', scaleMax: '', timeoutSeconds: '', resources: '', isBuiltIn: '', requiredSecrets: '', requiredConfigs: '', integrations: '', requiredBuckets: '', requiredModels: '', inputs: '', outputs: '', props: '', volatile: '', icon: '', category: '', databaseId: '' }, select: { id: true } }).execute(); // Update const updated = await db.functionDefinition.update({ where: { id: '' }, data: { scope: '' }, select: { id: true } }).execute(); @@ -944,34 +1845,34 @@ validateFunctionGraph const result = await db.mutation.validateFunctionGraph({ input: { graphId: '' } }).execute(); ``` -### `db.mutation.initEmptyRepo` +### `db.mutation.infraInitEmptyRepo` -initEmptyRepo +infraInitEmptyRepo - **Type:** mutation - **Arguments:** | Argument | Type | |----------|------| - | `input` | InitEmptyRepoInput (required) | + | `input` | InfraInitEmptyRepoInput (required) | ```typescript -const result = await db.mutation.initEmptyRepo({ input: { sId: '', storeId: '' } }).execute(); +const result = await db.mutation.infraInitEmptyRepo({ input: { sId: '', storeId: '' } }).execute(); ``` -### `db.mutation.setDataAtPath` +### `db.mutation.initEmptyRepo` -setDataAtPath +initEmptyRepo - **Type:** mutation - **Arguments:** | Argument | Type | |----------|------| - | `input` | SetDataAtPathInput (required) | + | `input` | InitEmptyRepoInput (required) | ```typescript -const result = await db.mutation.setDataAtPath({ input: { sId: '', root: '', path: '', data: '' } }).execute(); +const result = await db.mutation.initEmptyRepo({ input: { sId: '', storeId: '' } }).execute(); ``` ### `db.mutation.importDefinitions` @@ -989,6 +1890,36 @@ importDefinitions const result = await db.mutation.importDefinitions({ input: { graphId: '', sourceScopeId: '', sourceCommitId: '', contexts: '' } }).execute(); ``` +### `db.mutation.infraSetDataAtPath` + +infraSetDataAtPath + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | InfraSetDataAtPathInput (required) | + +```typescript +const result = await db.mutation.infraSetDataAtPath({ input: { sId: '', root: '', path: '', data: '' } }).execute(); +``` + +### `db.mutation.setDataAtPath` + +setDataAtPath + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | SetDataAtPathInput (required) | + +```typescript +const result = await db.mutation.setDataAtPath({ input: { sId: '', root: '', path: '', data: '' } }).execute(); +``` + ### `db.mutation.copyGraph` copyGraph @@ -1001,7 +1932,7 @@ copyGraph | `input` | CopyGraphInput (required) | ```typescript -const result = await db.mutation.copyGraph({ input: { databaseId: '', graphId: '', name: '' } }).execute(); +const result = await db.mutation.copyGraph({ input: { scopeId: '', graphId: '', name: '' } }).execute(); ``` ### `db.mutation.saveGraph` @@ -1094,6 +2025,21 @@ addNode const result = await db.mutation.addNode({ input: '' }).execute(); ``` +### `db.mutation.infraInsertNodeAtPath` + +infraInsertNodeAtPath + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | InfraInsertNodeAtPathInput (required) | + +```typescript +const result = await db.mutation.infraInsertNodeAtPath({ input: '' }).execute(); +``` + ### `db.mutation.insertNodeAtPath` insertNodeAtPath diff --git a/sdk/constructive-sdk/src/compute/orm/index.ts b/sdk/constructive-sdk/src/compute/orm/index.ts index ba7ce4651f..4cc4ca7a60 100644 --- a/sdk/constructive-sdk/src/compute/orm/index.ts +++ b/sdk/constructive-sdk/src/compute/orm/index.ts @@ -5,27 +5,49 @@ */ import { OrmClient } from './client'; import type { OrmClientConfig } from './client'; +import { InfraGetAllRecordModel } from './models/infraGetAllRecord'; import { GetAllRecordModel } from './models/getAllRecord'; +import { InfraRefModel } from './models/infraRef'; +import { InfraStoreModel } from './models/infraStore'; import { FunctionApiBindingModel } from './models/functionApiBinding'; -import { FunctionDeploymentModel } from './models/functionDeployment'; -import { ResourceModel } from './models/resource'; import { FunctionGraphRefModel } from './models/functionGraphRef'; import { FunctionGraphStoreModel } from './models/functionGraphStore'; +import { PlatformFunctionApiBindingModel } from './models/platformFunctionApiBinding'; +import { PlatformResourcesRequirementsStateModel } from './models/platformResourcesRequirementsState'; +import { ResourcesRequirementsStateModel } from './models/resourcesRequirementsState'; +import { PlatformResourceStatusCheckModel } from './models/platformResourceStatusCheck'; +import { PlatformFunctionDeploymentModel } from './models/platformFunctionDeployment'; +import { PlatformResourceModel } from './models/platformResource'; +import { PlatformResourceDefinitionModel } from './models/platformResourceDefinition'; +import { InfraObjectModel } from './models/infraObject'; import { FunctionGraphObjectModel } from './models/functionGraphObject'; +import { PlatformFunctionDeploymentEventModel } from './models/platformFunctionDeploymentEvent'; +import { PlatformResourceEventModel } from './models/platformResourceEvent'; +import { ResourceStatusCheckModel } from './models/resourceStatusCheck'; +import { FunctionDeploymentModel } from './models/functionDeployment'; +import { ResourceModel } from './models/resource'; +import { ResourceDefinitionModel } from './models/resourceDefinition'; import { FunctionDeploymentEventModel } from './models/functionDeploymentEvent'; -import { OrgFunctionExecutionLogModel } from './models/orgFunctionExecutionLog'; +import { PlatformFunctionExecutionLogModel } from './models/platformFunctionExecutionLog'; import { ResourceEventModel } from './models/resourceEvent'; import { FunctionGraphExecutionOutputModel } from './models/functionGraphExecutionOutput'; +import { InfraCommitModel } from './models/infraCommit'; import { FunctionGraphCommitModel } from './models/functionGraphCommit'; -import { SecretDefinitionModel } from './models/secretDefinition'; import { FunctionExecutionLogModel } from './models/functionExecutionLog'; +import { PlatformResourcesResolvedRequirementModel } from './models/platformResourcesResolvedRequirement'; +import { ResourcesResolvedRequirementModel } from './models/resourcesResolvedRequirement'; +import { DbPresetModel } from './models/dbPreset'; +import { PlatformNamespaceModel } from './models/platformNamespace'; import { FunctionGraphModel } from './models/functionGraph'; import { FunctionGraphExecutionNodeStateModel } from './models/functionGraphExecutionNodeState'; -import { PlatformNamespaceModel } from './models/platformNamespace'; -import { OrgFunctionInvocationModel } from './models/orgFunctionInvocation'; +import { NamespaceModel } from './models/namespace'; +import { PlatformFunctionInvocationModel } from './models/platformFunctionInvocation'; import { FunctionInvocationModel } from './models/functionInvocation'; import { PlatformNamespaceEventModel } from './models/platformNamespaceEvent'; +import { IntegrationProviderModel } from './models/integrationProvider'; +import { NamespaceEventModel } from './models/namespaceEvent'; import { FunctionGraphExecutionModel } from './models/functionGraphExecution'; +import { PlatformFunctionDefinitionModel } from './models/platformFunctionDefinition'; import { FunctionDefinitionModel } from './models/functionDefinition'; import { createQueryOperations } from './query'; import { createMutationOperations } from './mutation'; @@ -62,27 +84,49 @@ export { createMutationOperations } from './mutation'; export function createClient(config: OrmClientConfig) { const client = new OrmClient(config); return { + infraGetAllRecord: new InfraGetAllRecordModel(client), getAllRecord: new GetAllRecordModel(client), + infraRef: new InfraRefModel(client), + infraStore: new InfraStoreModel(client), functionApiBinding: new FunctionApiBindingModel(client), - functionDeployment: new FunctionDeploymentModel(client), - resource: new ResourceModel(client), functionGraphRef: new FunctionGraphRefModel(client), functionGraphStore: new FunctionGraphStoreModel(client), + platformFunctionApiBinding: new PlatformFunctionApiBindingModel(client), + platformResourcesRequirementsState: new PlatformResourcesRequirementsStateModel(client), + resourcesRequirementsState: new ResourcesRequirementsStateModel(client), + platformResourceStatusCheck: new PlatformResourceStatusCheckModel(client), + platformFunctionDeployment: new PlatformFunctionDeploymentModel(client), + platformResource: new PlatformResourceModel(client), + platformResourceDefinition: new PlatformResourceDefinitionModel(client), + infraObject: new InfraObjectModel(client), functionGraphObject: new FunctionGraphObjectModel(client), + platformFunctionDeploymentEvent: new PlatformFunctionDeploymentEventModel(client), + platformResourceEvent: new PlatformResourceEventModel(client), + resourceStatusCheck: new ResourceStatusCheckModel(client), + functionDeployment: new FunctionDeploymentModel(client), + resource: new ResourceModel(client), + resourceDefinition: new ResourceDefinitionModel(client), functionDeploymentEvent: new FunctionDeploymentEventModel(client), - orgFunctionExecutionLog: new OrgFunctionExecutionLogModel(client), + platformFunctionExecutionLog: new PlatformFunctionExecutionLogModel(client), resourceEvent: new ResourceEventModel(client), functionGraphExecutionOutput: new FunctionGraphExecutionOutputModel(client), + infraCommit: new InfraCommitModel(client), functionGraphCommit: new FunctionGraphCommitModel(client), - secretDefinition: new SecretDefinitionModel(client), functionExecutionLog: new FunctionExecutionLogModel(client), + platformResourcesResolvedRequirement: new PlatformResourcesResolvedRequirementModel(client), + resourcesResolvedRequirement: new ResourcesResolvedRequirementModel(client), + dbPreset: new DbPresetModel(client), + platformNamespace: new PlatformNamespaceModel(client), functionGraph: new FunctionGraphModel(client), functionGraphExecutionNodeState: new FunctionGraphExecutionNodeStateModel(client), - platformNamespace: new PlatformNamespaceModel(client), - orgFunctionInvocation: new OrgFunctionInvocationModel(client), + namespace: new NamespaceModel(client), + platformFunctionInvocation: new PlatformFunctionInvocationModel(client), functionInvocation: new FunctionInvocationModel(client), platformNamespaceEvent: new PlatformNamespaceEventModel(client), + integrationProvider: new IntegrationProviderModel(client), + namespaceEvent: new NamespaceEventModel(client), functionGraphExecution: new FunctionGraphExecutionModel(client), + platformFunctionDefinition: new PlatformFunctionDefinitionModel(client), functionDefinition: new FunctionDefinitionModel(client), query: createQueryOperations(client), mutation: createMutationOperations(client), diff --git a/sdk/constructive-sdk/src/compute/orm/input-types.ts b/sdk/constructive-sdk/src/compute/orm/input-types.ts index 6b89295abc..7a8db48e00 100644 --- a/sdk/constructive-sdk/src/compute/orm/input-types.ts +++ b/sdk/constructive-sdk/src/compute/orm/input-types.ts @@ -232,12 +232,43 @@ export interface UUIDListFilter { } // ============ Custom Scalar Types ============ export type Base64EncodedBinary = unknown; -export type FunctionRequirement = unknown; +export type ConstructiveInternalTypeImage = unknown; +export type ResourceRequirement = unknown; // ============ Entity Types ============ +export interface InfraGetAllRecord { + path?: string[] | null; + data?: Record | null; +} export interface GetAllRecord { path?: string[] | null; data?: Record | null; } +/** Branch heads — mutable pointers into the commit chain */ +export interface InfraRef { + /** Unique ref identifier */ + id: string; + /** Ref name (e.g. HEAD, main) */ + name?: string | null; + /** Opaque store partition key for the global tier */ + scopeId?: string | null; + /** Store this ref belongs to */ + storeId?: string | null; + /** Commit this ref points to */ + commitId?: string | null; +} +/** Named stores — one per version-controlled tree (e.g. one graph, one definition set) */ +export interface InfraStore { + /** Unique store identifier */ + id: string; + /** Human-readable store name */ + name?: string | null; + /** Opaque store partition key for the global tier */ + scopeId?: string | null; + /** Current root object hash of this store */ + hash?: string | null; + /** Timestamp of store creation */ + createdAt?: string | null; +} /** Join table binding function definitions to API endpoints with per-binding alias and config */ export interface FunctionApiBinding { id: string; @@ -250,25 +281,100 @@ export interface FunctionApiBinding { /** Per-binding configuration (overrides, routing rules, etc.) */ config?: Record | null; } -/** Function deployment bindings — ties a function definition to a namespace for Knative provisioning and routing */ -export interface FunctionDeployment { +/** Branch heads — mutable pointers into the commit chain */ +export interface FunctionGraphRef { + /** Unique ref identifier */ + id: string; + /** Ref name (e.g. HEAD, main) */ + name?: string | null; + /** Opaque store partition key for the global tier */ + scopeId?: string | null; + /** Store this ref belongs to */ + storeId?: string | null; + /** Commit this ref points to */ + commitId?: string | null; +} +/** Named stores — one per version-controlled tree (e.g. one graph, one definition set) */ +export interface FunctionGraphStore { + /** Unique store identifier */ id: string; + /** Human-readable store name */ + name?: string | null; + /** Opaque store partition key for the global tier */ + scopeId?: string | null; + /** Current root object hash of this store */ + hash?: string | null; + /** Timestamp of store creation */ createdAt?: string | null; - updatedAt?: string | null; - /** Function definition being deployed to this namespace */ +} +/** Join table binding function definitions to API endpoints with per-binding alias and config */ +export interface PlatformFunctionApiBinding { + id: string; + /** Function definition this binding belongs to */ functionDefinitionId?: string | null; + /** API endpoint this function is bound to */ + apiId?: string | null; + /** Binding alias (e.g. default, staging, production) */ + alias?: string | null; + /** Per-binding configuration (overrides, routing rules, etc.) */ + config?: Record | null; +} +export interface PlatformResourcesRequirementsState { + resourceId?: string | null; + slug?: string | null; + secretsHash?: string | null; + configHash?: string | null; + requirementsHash?: string | null; + secretsObjectName?: string | null; + configObjectName?: string | null; +} +export interface ResourcesRequirementsState { + resourceId?: string | null; + slug?: string | null; + secretsHash?: string | null; + configHash?: string | null; + requirementsHash?: string | null; + secretsObjectName?: string | null; + configObjectName?: string | null; +} +/** On-demand resource status checks — diagnostic snapshots from the runtime (K8s status, conditions, log tails) */ +export interface PlatformResourceStatusCheck { + /** Unique status check identifier */ + id: string; + /** Resource to check */ + resourceId?: string | null; + /** User who requested the check (NULL for system/scheduled) */ + requestedBy?: string | null; + /** When the check was requested */ + requestedAt?: string | null; + /** When the check completed (NULL while pending/running) */ + completedAt?: string | null; + /** Check lifecycle: pending, running, completed, failed */ + status?: string | null; + /** Diagnostic snapshot: k8s_status, conditions, pod_logs_tail, events */ + result?: Record | null; +} +/** Function deployment bindings — ties a handler image to a namespace for Knative provisioning and routing (one row per handler image per namespace) */ +export interface PlatformFunctionDeployment { + id: string; + createdAt?: string | null; + updatedAt?: string | null; /** Target namespace for this deployment (maps to a K8s namespace) */ namespaceId?: string | null; /** Deployment lifecycle status: pending, provisioning, active, failed, scaled_to_zero, deactivated */ status?: string | null; /** Knative service URL (http://{service-name}.{namespace}.svc.cluster.local) — populated after provisioning */ serviceUrl?: string | null; - /** Knative service name — derived from task_identifier at provision time */ + /** 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 | null; /** Deployment revision number (incremented on each redeployment) */ revision?: number | null; - /** Container image override (NULL = inherit from function definition) */ + /** 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 | null; + /** Image tag/version for the handler container (e.g. latest, 2.6.4) */ + imageVersion?: string | null; + /** Handler directory name (e.g. email, document) — used as FN_HANDLER_NAME in combined-image mode to select the entry point */ + handlerName?: string | null; /** Max concurrent requests per pod (NULL = inherit from definition) */ concurrency?: number | null; /** Minimum replica count (NULL = inherit from definition or Knative default) */ @@ -289,11 +395,9 @@ export interface FunctionDeployment { labels?: Record | null; /** Freeform metadata for tooling and operational notes */ annotations?: Record | null; - /** Database that owns this resource (database-scoped isolation) */ - databaseId?: string | null; } /** Unified K8s resource declarations — stores desired state (spec) and observed state (status) for all resource kinds within a namespace */ -export interface Resource { +export interface PlatformResource { id: string; createdAt?: string | null; updatedAt?: string | null; @@ -321,41 +425,68 @@ export interface Resource { labels?: Record | null; /** Freeform metadata for tooling and operational notes */ annotations?: Record | null; - /** Database that owns this resource (database-scoped isolation) */ - databaseId?: string | null; -} -/** Branch heads — mutable pointers into the commit chain */ -export interface FunctionGraphRef { - /** Unique ref identifier */ + /** 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; + /** 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; + /** 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; + /** Definition template this resource was created from (NULL for standalone resources) */ + resourceDefinitionId?: string | null; +} +/** Resource definitions — templates for resource kinds declaring default spec and secret/config requirements */ +export interface PlatformResourceDefinition { id: string; - /** Ref name (e.g. HEAD, main) */ + createdAt?: string | null; + updatedAt?: string | null; + createdBy?: string | null; + updatedBy?: string | null; + /** Namespace this definition belongs to (security boundary, maps to K8s namespace) */ + namespaceId?: string | null; + /** Resource kind: Deployment, StatefulSet, Service, Ingress, Certificate, or custom kinds */ + kind?: string | null; + /** Human-readable definition name */ name?: string | null; - /** Database scope for multi-tenant isolation */ - databaseId?: string | null; - /** Store this ref belongs to */ - storeId?: string | null; - /** Commit this ref points to */ - commitId?: string | null; + /** URL-safe identifier, unique within (namespace_id, kind) */ + slug?: string | null; + /** What this resource definition provides */ + description?: string | null; + /** Template spec for creating resource instances of this kind */ + defaultSpec?: Record | null; + /** Embedded secret requirements: array of (name, required, provider) tuples. provider is the integration slug this requirement belongs to, if any. */ + requiredSecrets?: ResourceRequirement[] | null; + /** Embedded config requirements: array of (name, required, provider) tuples. provider is the integration slug this requirement belongs to, if any. */ + requiredConfigs?: ResourceRequirement[] | null; + /** 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; + /** Key/value pairs for selecting and filtering definitions */ + labels?: Record | null; + /** Freeform metadata for tooling and operational notes */ + annotations?: Record | null; + /** Min age before DELETE of a resource of this kind requires step-up; NULL inherits the 6h default */ + stepUpMinAge?: string | null; } -/** Named stores — one per version-controlled tree (e.g. one graph, one definition set) */ -export interface FunctionGraphStore { - /** Unique store identifier */ +/** Content-addressed Merkle tree objects keyed by UUID v5 hash of data + children */ +export interface InfraObject { + /** Content-addressed UUID v5 — deterministic hash of (data, kids, ktree) */ id: string; - /** Human-readable store name */ - name?: string | null; - /** Database scope for multi-tenant isolation */ - databaseId?: string | null; - /** Current root object hash of this store */ - hash?: string | null; - /** Timestamp of store creation */ + /** Opaque store partition key for the global tier */ + scopeId?: string | null; + /** Ordered array of child object IDs */ + kids?: string[] | null; + /** Ordered array of child path names (parallel to kids) */ + ktree?: string[] | null; + /** Payload data for this object node */ + data?: Record | null; + /** Timestamp of object creation */ createdAt?: string | null; } /** Content-addressed Merkle tree objects keyed by UUID v5 hash of data + children */ export interface FunctionGraphObject { /** Content-addressed UUID v5 — deterministic hash of (data, kids, ktree) */ id: string; - /** Database scope for multi-tenant isolation */ - databaseId?: string | null; + /** Opaque store partition key for the global tier */ + scopeId?: string | null; /** Ordered array of child object IDs */ kids?: string[] | null; /** Ordered array of child path names (parallel to kids) */ @@ -366,6 +497,177 @@ export interface FunctionGraphObject { createdAt?: string | null; } /** Deployment lifecycle events — audit log of provisioning, scaling, and failure events */ +export interface PlatformFunctionDeploymentEvent { + /** Event timestamp (partition key) */ + createdAt?: string | null; + /** Unique event identifier */ + id: string; + /** Deployment this event belongs to */ + deploymentId?: string | null; + /** Event type: provisioned, scaled, failed, deactivated, redeployed, health_check */ + eventType?: string | null; + /** User who triggered this event (NULL for system/automated) */ + actorId?: string | null; + /** Human-readable description of the event */ + message?: string | null; + /** Structured context (old/new values, error details, etc.) */ + metadata?: Record | null; +} +/** Resource lifecycle events — audit log of provisioning, updates, and failure events */ +export interface PlatformResourceEvent { + /** Event timestamp (partition key) */ + createdAt?: string | null; + /** Unique event identifier */ + id: string; + /** Resource this event belongs to */ + resourceId?: string | null; + /** Event type: provisioned, provisioning, updated, failed, deprovisioned, health_check */ + eventType?: string | null; + /** User who triggered this event (NULL for system/automated) */ + actorId?: string | null; + /** Human-readable description of the event */ + message?: string | null; + /** Structured context (old/new values, error details, etc.) */ + metadata?: Record | null; +} +/** On-demand resource status checks — diagnostic snapshots from the runtime (K8s status, conditions, log tails) */ +export interface ResourceStatusCheck { + /** Unique status check identifier */ + id: string; + /** Resource to check */ + resourceId?: string | null; + /** Database that owns this resource (database-scoped isolation) */ + databaseId?: string | null; + /** User who requested the check (NULL for system/scheduled) */ + requestedBy?: string | null; + /** When the check was requested */ + requestedAt?: string | null; + /** When the check completed (NULL while pending/running) */ + completedAt?: string | null; + /** Check lifecycle: pending, running, completed, failed */ + status?: string | null; + /** Diagnostic snapshot: k8s_status, conditions, pod_logs_tail, events */ + result?: Record | null; +} +/** Function deployment bindings — ties a handler image to a namespace for Knative provisioning and routing (one row per handler image per namespace) */ +export interface FunctionDeployment { + id: string; + createdAt?: string | null; + updatedAt?: string | null; + /** Target namespace for this deployment (maps to a K8s namespace) */ + namespaceId?: string | null; + /** Deployment lifecycle status: pending, provisioning, active, failed, scaled_to_zero, deactivated */ + status?: string | null; + /** Knative service URL (http://{service-name}.{namespace}.svc.cluster.local) — populated after provisioning */ + serviceUrl?: string | null; + /** 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 | null; + /** Deployment revision number (incremented on each redeployment) */ + revision?: number | null; + /** 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 | null; + /** Image tag/version for the handler container (e.g. latest, 2.6.4) */ + imageVersion?: string | null; + /** Handler directory name (e.g. email, document) — used as FN_HANDLER_NAME in combined-image mode to select the entry point */ + handlerName?: string | null; + /** Max concurrent requests per pod (NULL = inherit from definition) */ + concurrency?: number | null; + /** Minimum replica count (NULL = inherit from definition or Knative default) */ + scaleMin?: number | null; + /** Maximum replica count (NULL = inherit from definition or Knative default) */ + scaleMax?: number | null; + /** Request timeout override in seconds (NULL = inherit from definition) */ + timeoutSeconds?: number | null; + /** K8s resource spec override: {"requests":{"cpu":"100m","memory":"128Mi"},"limits":{...}} */ + resources?: Record | null; + /** Most recent provisioning or runtime error message */ + lastError?: string | null; + /** Timestamp of the most recent error */ + lastErrorAt?: string | null; + /** Cumulative error count for this deployment */ + errorCount?: number | null; + /** Key/value pairs for selecting and filtering deployments */ + labels?: Record | null; + /** Freeform metadata for tooling and operational notes */ + annotations?: Record | null; + /** Database that owns this resource (database-scoped isolation) */ + databaseId?: string | null; +} +/** Unified K8s resource declarations — stores desired state (spec) and observed state (status) for all resource kinds within a namespace */ +export interface Resource { + id: string; + createdAt?: string | null; + updatedAt?: string | null; + createdBy?: string | null; + updatedBy?: string | null; + /** Namespace this resource belongs to (security boundary, maps to K8s namespace) */ + namespaceId?: string | null; + /** Resource kind: Deployment, StatefulSet, Service, Ingress, Certificate */ + kind?: string | null; + /** Human-readable resource name */ + name?: 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, failed, draining, deleting */ + status?: string | null; + /** Observed state from K8s — populated by handlers after reconciliation (service_url, clone_url, replicas, etc.) */ + statusObserved?: Record | null; + /** Most recent provisioning or runtime error message */ + lastError?: string | null; + /** Cumulative error count for this resource */ + errorCount?: number | null; + /** Key/value pairs for selecting and filtering resources */ + labels?: Record | null; + /** Freeform metadata for tooling and operational notes */ + annotations?: Record | null; + /** Database that owns this resource (database-scoped isolation) */ + databaseId?: string | 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; + /** 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; + /** 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; + /** Definition template this resource was created from (NULL for standalone resources) */ + resourceDefinitionId?: string | null; +} +/** Resource definitions — templates for resource kinds declaring default spec and secret/config requirements */ +export interface ResourceDefinition { + id: string; + createdAt?: string | null; + updatedAt?: string | null; + createdBy?: string | null; + updatedBy?: string | null; + /** Namespace this definition belongs to (security boundary, maps to K8s namespace) */ + namespaceId?: string | null; + /** Resource kind: Deployment, StatefulSet, Service, Ingress, Certificate, or custom kinds */ + kind?: string | null; + /** Human-readable definition name */ + name?: string | null; + /** URL-safe identifier, unique within (namespace_id, kind) */ + slug?: string | null; + /** What this resource definition provides */ + description?: string | null; + /** Template spec for creating resource instances of this kind */ + defaultSpec?: Record | null; + /** Embedded secret requirements: array of (name, required, provider) tuples. provider is the integration slug this requirement belongs to, if any. */ + requiredSecrets?: ResourceRequirement[] | null; + /** Embedded config requirements: array of (name, required, provider) tuples. provider is the integration slug this requirement belongs to, if any. */ + requiredConfigs?: ResourceRequirement[] | null; + /** 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; + /** Key/value pairs for selecting and filtering definitions */ + labels?: Record | null; + /** Freeform metadata for tooling and operational notes */ + annotations?: Record | null; + /** Min age before DELETE of a resource of this kind requires step-up; NULL inherits the 6h default */ + stepUpMinAge?: string | null; + /** Database that owns this resource (database-scoped isolation) */ + databaseId?: string | null; +} +/** Deployment lifecycle events — audit log of provisioning, scaling, and failure events */ export interface FunctionDeploymentEvent { /** Event timestamp (partition key) */ createdAt?: string | null; @@ -385,7 +687,7 @@ export interface FunctionDeploymentEvent { databaseId?: string | null; } /** Function execution logs — structured console output per invocation */ -export interface OrgFunctionExecutionLog { +export interface PlatformFunctionExecutionLog { /** Log entry timestamp (partition key) */ createdAt?: string | null; /** Unique log entry identifier */ @@ -428,21 +730,21 @@ export interface FunctionGraphExecutionOutput { createdAt?: string | null; /** Unique execution output identifier */ id: string; - /** Scope for multi-tenant isolation */ - databaseId?: string | null; + /** Opaque store partition key for the global tier */ + scopeId?: string | null; /** SHA-256 hash of the data JSONB — content-addressed deduplication */ hash?: Base64EncodedBinary | null; /** The actual output payload from a completed node */ data?: Record | null; } /** Commit history — each commit snapshots a tree root for a store */ -export interface FunctionGraphCommit { +export interface InfraCommit { /** Unique commit identifier */ id: string; /** Optional commit message */ message?: string | null; - /** Database scope for multi-tenant isolation */ - databaseId?: string | null; + /** Opaque store partition key for the global tier */ + scopeId?: string | null; /** Store this commit belongs to */ storeId?: string | null; /** Parent commit IDs (supports merge commits) */ @@ -456,24 +758,27 @@ export interface FunctionGraphCommit { /** Commit timestamp */ date?: string | null; } -/** Global secret name registry — declares which secrets the platform recognizes. Actual values live in app_secrets. */ -export interface SecretDefinition { +/** Commit history — each commit snapshots a tree root for a store */ +export interface FunctionGraphCommit { + /** Unique commit identifier */ id: string; - createdAt?: string | null; - updatedAt?: string | null; - /** Secret name (must match app_secrets.name for resolution) */ - name?: string | null; - /** Human-readable description of what this secret is used for */ - description?: string | null; - /** Whether this row was seeded as a built-in secret definition. Built-in rows are immutable. */ - isBuiltIn?: boolean | null; - /** Key-value metadata for filtering and grouping secret definitions */ - labels?: Record | null; - /** Freeform metadata annotations for secret definitions */ - annotations?: Record | null; - /** Database that owns this resource (database-scoped isolation) */ - databaseId?: string | null; -} + /** Optional commit message */ + message?: string | null; + /** Opaque store partition key for the global tier */ + scopeId?: string | null; + /** Store this commit belongs to */ + storeId?: string | null; + /** Parent commit IDs (supports merge commits) */ + parentIds?: string[] | null; + /** User who authored the changes */ + authorId?: string | null; + /** User who committed (may differ from author) */ + committerId?: string | null; + /** Root object ID of the tree snapshot at this commit */ + treeId?: string | null; + /** Commit timestamp */ + date?: string | null; +} /** Function execution logs — structured console output per invocation */ export interface FunctionExecutionLog { /** Log entry timestamp (partition key) */ @@ -495,12 +800,85 @@ export interface FunctionExecutionLog { /** Database that owns this resource (database-scoped isolation) */ databaseId?: string | null; } +export interface PlatformResourcesResolvedRequirement { + resourceId?: string | null; + slug?: string | null; + namespaceId?: string | null; + requirementKind?: string | null; + name?: string | null; + required?: boolean | null; + atomId?: string | null; + present?: boolean | null; + secretsObjectName?: string | null; + configObjectName?: string | null; +} +export interface ResourcesResolvedRequirement { + resourceId?: string | null; + slug?: string | null; + namespaceId?: string | null; + requirementKind?: string | null; + name?: string | null; + required?: boolean | null; + atomId?: string | null; + present?: boolean | null; + secretsObjectName?: string | null; + configObjectName?: string | null; +} +/** Database provisioning preset catalog — merkle-versioned head over the infra store */ +export interface DbPreset { + /** Unique preset identifier */ + id: string; + /** Infra Merkle store holding this preset's history (stamped by the versioned trigger) */ + storeId?: string | null; + /** Preset slug (unique per scope); the preset's path in the infra tree is [db_preset, slug] */ + slug?: string | null; + /** Preset definition (modules + options) — the readily-cached head; history lives in the infra store */ + definition?: Record | null; + /** Infra store commit for the current definition (stamped by the versioned trigger on every write) */ + commitId?: string | null; + /** 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 | null; + /** Human-readable preset name */ + label?: string | null; + /** Human-readable description of the preset */ + description?: string | null; + /** Whether this preset is selectable for new databases */ + active?: boolean | null; + /** Timestamp of preset creation */ + createdAt?: string | null; + /** Timestamp of last modification */ + updatedAt?: string | null; +} +/** Logical namespace containers for grouping secrets, config, functions, and other resources */ +export interface PlatformNamespace { + id: string; + createdAt?: string | null; + updatedAt?: string | null; + /** Human-readable namespace name (e.g. default, production, oauth) */ + name?: string | null; + /** Globally unique computed namespace identifier via inflection.underscore */ + namespaceName?: string | null; + /** Optional human-readable description of this namespace */ + description?: string | null; + /** Whether this namespace is active (soft-disable for filtering) */ + isActive?: boolean | null; + /** Namespace provisioning lifecycle status: pending, provisioning, active, failed */ + status?: string | null; + /** Most recent provisioning or reconcile error message */ + lastError?: string | null; + /** Key/value pairs for selecting and filtering namespaces */ + labels?: Record | null; + /** Freeform metadata for tooling and operational notes */ + annotations?: Record | null; + /** true = provisioned by the platform via jobs, false = unmanaged/platform-native (bootstrapped externally) */ + isManaged?: boolean | null; +} /** Flow graph definitions — FBP graphs stored in the dedicated graph Merkle store */ export interface FunctionGraph { /** Unique graph identifier */ id: string; - /** Database scope for multi-tenant isolation */ - databaseId?: string | null; + /** Opaque store partition key for the global tier */ + scopeId?: string | null; /** Graph store (Merkle store) holding the graph definition */ storeId?: string | null; /** Evaluator/runtime context (function, js, sql, system) */ @@ -530,8 +908,8 @@ export interface FunctionGraphExecutionNodeState { id: string; /** FK to the parent graph execution */ executionId?: string | null; - /** Scope for multi-tenant isolation */ - databaseId?: string | null; + /** Opaque store partition key for the global tier */ + scopeId?: string | null; /** 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 */ @@ -550,7 +928,7 @@ export interface FunctionGraphExecutionNodeState { outputId?: string | null; } /** Logical namespace containers for grouping secrets, config, functions, and other resources */ -export interface PlatformNamespace { +export interface Namespace { id: string; createdAt?: string | null; updatedAt?: string | null; @@ -562,21 +940,21 @@ export interface PlatformNamespace { description?: string | null; /** Whether this namespace is active (soft-disable for filtering) */ isActive?: boolean | null; + /** Namespace provisioning lifecycle status: pending, provisioning, active, failed */ + status?: string | null; + /** Most recent provisioning or reconcile error message */ + lastError?: string | null; /** Key/value pairs for selecting and filtering namespaces */ labels?: Record | null; /** Freeform metadata for tooling and operational notes */ annotations?: Record | null; /** Database that owns this resource (database-scoped isolation) */ databaseId?: string | null; - /** Database that created this namespace (NULL for platform-native namespaces) */ - sourceDatabaseId?: string | null; - /** Origin scope: platform, org, app — indicates where this namespace was created */ - sourceScope?: string | null; - /** true = created by a child scope mirror trigger, false = platform-native */ + /** true = provisioned by the platform via jobs, false = unmanaged/platform-native (bootstrapped externally) */ isManaged?: boolean | null; } /** Function invocation log — INSERT to call a function (business-layer, metered). Linked to definitions by task_identifier string. */ -export interface OrgFunctionInvocation { +export interface PlatformFunctionInvocation { /** Invocation creation timestamp (partition key) */ createdAt?: string | null; /** Unique invocation identifier */ @@ -669,6 +1047,61 @@ export interface PlatformNamespaceEvent { podCount?: number | null; /** Additional resource metrics (gpu, replicas, quotas, etc.) */ metrics?: Record | null; +} +/** 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. */ +export interface IntegrationProvider { + id: string; + createdAt?: string | null; + updatedAt?: string | null; + /** Stable URL-safe identifier for the provider. Other tables match by this string, not by FK. */ + slug?: string | null; + /** Human-readable brand name (e.g. 'Mailgun', 'PostgreSQL') */ + name?: string | null; + /** Short description of what this integration provides and when to use it */ + description?: string | null; + /** Browser category (e.g. email, database, storage, ai, analytics) */ + category?: string | null; + /** Icon identifier for the UI (e.g. mail, database, cloud) */ + icon?: string | null; + /** Provider logo as an image domain value (url, id, key, bucket, provider) */ + logo?: ConstructiveInternalTypeImage | null; + /** Brand metadata: colors, fonts, and other provider-specific styling. Not a foreign key. */ + brand?: Record | null; + /** 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[] | null; + /** 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[] | null; +} +/** Namespace lifecycle events — audit log of creation, activation, deactivation, label changes */ +export interface NamespaceEvent { + /** Event timestamp (partition key) */ + createdAt?: string | null; + /** Unique event identifier */ + id: string; + /** Namespace this event belongs to */ + namespaceId?: string | null; + /** Event type: created, activated, deactivated, labels_updated, annotations_updated, renamed */ + eventType?: string | null; + /** User who triggered this event (NULL for system/automated) */ + actorId?: string | null; + /** Human-readable description of the event */ + message?: string | null; + /** Structured context (old/new values, labels diff, etc.) */ + metadata?: Record | null; + /** CPU usage in millicores at time of event */ + cpuMillicores?: number | null; + /** Memory usage in bytes at time of event */ + memoryBytes?: string | null; + /** Storage usage in bytes at time of event */ + storageBytes?: string | null; + /** Network ingress in bytes during event window */ + networkIngressBytes?: string | null; + /** Network egress in bytes during event window */ + networkEgressBytes?: string | null; + /** Number of active pods in the namespace at time of event */ + podCount?: number | null; + /** Additional resource metrics (gpu, replicas, quotas, etc.) */ + metrics?: Record | null; /** Database that owns this resource (database-scoped isolation) */ databaseId?: string | null; } @@ -682,9 +1115,9 @@ export interface FunctionGraphExecution { graphId?: string | null; /** Parent function_invocations row (for metering) */ invocationId?: string | null; - /** Scope for multi-tenant isolation */ - databaseId?: string | null; - /** Target output boundary node name to resolve */ + /** Opaque store partition key for the global tier */ + scopeId?: string | null; + /** Target output boundary node name to resolve; NULL derives completion from the graph's graphOutput nodes */ outputNode?: string | null; /** Target output port name (default: value) */ outputPort?: string | null; @@ -716,12 +1149,88 @@ export interface FunctionGraphExecution { maxPendingJobs?: number | null; /** Absolute deadline — execution fails if still running after this time */ timeoutAt?: string | null; + /** Timestamp of the last real progress (node enqueue, node output, completion) — drives the activity-debounced watchdog */ + lastProgressAt?: string | null; /** Machine-readable error code when status = failed */ errorCode?: string | null; /** Human-readable error description when status = failed */ errorMessage?: string | null; } /** Function definitions — registered cloud functions with routing, queue, and retry configuration */ +export interface PlatformFunctionDefinition { + id: string; + createdAt?: string | null; + updatedAt?: string | null; + /** Function grouping scope (e.g. email, embed, chunk, custom) */ + scope?: string | null; + /** Function name within scope (e.g. send_verification_link, process_file_embedding) */ + name?: string | null; + /** Computed routing slug: scope:name (used by Knative job worker for dispatch) */ + taskIdentifier?: string | null; + /** Human-readable description of what this function does */ + description?: string | null; + /** Whether this function definition is published to the public catalog for direct authenticated invocation. Default false = internal-only via add_job() */ + isPublished?: boolean | null; + /** Non-public invocation channels this function may be exposed through (api, graph). Internal job dispatch is implicit and never listed. Default [] = job worker only. */ + accessChannels?: string[] | null; + /** Timestamp when this function was published. NULL means immediately published when is_published is true; future timestamps delay public visibility */ + publishedAt?: string | null; + /** Maximum retry attempts for the underlying job */ + maxAttempts?: number | null; + /** Job priority (lower = higher priority) */ + priority?: number | null; + /** Job queue name for serialization (e.g. email, ai, default) */ + queueName?: string | null; + /** Execution mode: http (Knative Service dispatch), inline (in-process in compute worker), handler (registered infrastructure handler), or sql (generic SQL dispatch via a trusted direct target or module-resolved function names) */ + runtime?: string | null; + /** Schema of the SQL function to invoke when runtime=sql (direct mode). NULL for module mode and other runtimes. */ + targetSchema?: string | null; + /** Name of the SQL function to invoke when runtime=sql (direct mode). NULL for module mode and other runtimes. */ + targetFunction?: string | null; + /** 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 | null; + /** 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 | null; + /** Ordered bind-parameter mapping for runtime=sql: [{name, type}]. payload[name] is bound as $n::type. */ + payloadArgs?: Record | null; + /** Docker image reference (e.g. ghcr.io/constructive-io/email-send-fn:latest). Required when runtime=http. NULL for inline functions. */ + image?: string | null; + /** Knative containerConcurrency — max concurrent requests per pod instance */ + concurrency?: number | null; + /** Minimum pod count for Knative autoscaling (minScale) */ + scaleMin?: number | null; + /** Maximum pod count for Knative autoscaling (maxScale) */ + scaleMax?: number | null; + /** Knative request timeout in seconds */ + timeoutSeconds?: number | null; + /** Container resource requests and limits: {requests: {memory, cpu}, limits: {memory, cpu}} */ + resources?: Record | null; + /** Whether this function is a built-in platform function (synced from platform) vs user-created */ + isBuiltIn?: boolean | null; + /** Embedded secret requirements: array of (name, required, provider) tuples. provider is the integration slug this requirement belongs to, if any. */ + requiredSecrets?: ResourceRequirement[] | null; + /** Embedded config requirements: array of (name, required, provider) tuples. provider is the integration slug this requirement belongs to, if any. */ + requiredConfigs?: ResourceRequirement[] | null; + /** 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[] | null; + /** Bucket keys this function needs (e.g. uploads, exports). Empty = no bucket requirements. */ + requiredBuckets?: string[] | null; + /** Inference model whitelist (e.g. gpt-4o, claude-3). Empty = no model requirements. */ + requiredModels?: string[] | null; + /** Data input ports: [{name, type, description?, optional?, multi?, schema?}] */ + inputs?: Record | null; + /** Data output ports: [{name, type, description?, optional?, multi?, schema?}] */ + outputs?: Record | null; + /** Configuration properties: [{name, type, default?, description?, required?, schema?}] */ + props?: Record | null; + /** Whether this function has side effects and cannot be cached or memoized */ + volatile?: boolean | null; + /** Icon identifier for UI palette rendering (e.g. mail, database, code) */ + icon?: string | null; + /** Palette grouping category (e.g. email, data, ai, custom) */ + category?: string | null; +} +/** Function definitions — registered cloud functions with routing, queue, and retry configuration */ export interface FunctionDefinition { id: string; createdAt?: string | null; @@ -734,16 +1243,30 @@ export interface FunctionDefinition { taskIdentifier?: string | null; /** Human-readable description of what this function does */ description?: string | null; - /** Whether this function can be called via function_invocations (public API). Default false = internal-only via add_job() */ - isInvocable?: boolean | null; + /** Whether this function definition is published to the public catalog for direct authenticated invocation. Default false = internal-only via add_job() */ + isPublished?: boolean | null; + /** Non-public invocation channels this function may be exposed through (api, graph). Internal job dispatch is implicit and never listed. Default [] = job worker only. */ + accessChannels?: string[] | null; + /** Timestamp when this function was published. NULL means immediately published when is_published is true; future timestamps delay public visibility */ + publishedAt?: string | null; /** Maximum retry attempts for the underlying job */ maxAttempts?: number | null; /** Job priority (lower = higher priority) */ priority?: number | null; /** Job queue name for serialization (e.g. email, ai, default) */ queueName?: string | null; - /** Execution mode: http (Knative Service dispatch) or inline (in-process in compute worker) */ + /** Execution mode: http (Knative Service dispatch), inline (in-process in compute worker), handler (registered infrastructure handler), or sql (generic SQL dispatch via a trusted direct target or module-resolved function names) */ runtime?: string | null; + /** Schema of the SQL function to invoke when runtime=sql (direct mode). NULL for module mode and other runtimes. */ + targetSchema?: string | null; + /** Name of the SQL function to invoke when runtime=sql (direct mode). NULL for module mode and other runtimes. */ + targetFunction?: string | null; + /** 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 | null; + /** 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 | null; + /** Ordered bind-parameter mapping for runtime=sql: [{name, type}]. payload[name] is bound as $n::type. */ + payloadArgs?: Record | null; /** Docker image reference (e.g. ghcr.io/constructive-io/email-send-fn:latest). Required when runtime=http. NULL for inline functions. */ image?: string | null; /** Knative containerConcurrency — max concurrent requests per pod instance */ @@ -758,10 +1281,12 @@ export interface FunctionDefinition { resources?: Record | null; /** Whether this function is a built-in platform function (synced from platform) vs user-created */ isBuiltIn?: boolean | null; - /** Embedded secret requirements: array of (name, required) tuples */ - requiredSecrets?: FunctionRequirement[] | null; - /** Embedded config requirements: array of (name, required) tuples */ - requiredConfigs?: FunctionRequirement[] | null; + /** Embedded secret requirements: array of (name, required, provider) tuples. provider is the integration slug this requirement belongs to, if any. */ + requiredSecrets?: ResourceRequirement[] | null; + /** Embedded config requirements: array of (name, required, provider) tuples. provider is the integration slug this requirement belongs to, if any. */ + requiredConfigs?: ResourceRequirement[] | null; + /** 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[] | null; /** Bucket keys this function needs (e.g. uploads, exports). Empty = no bucket requirements. */ requiredBuckets?: string[] | null; /** Inference model whitelist (e.g. gpt-4o, claude-3). Empty = no model requirements. */ @@ -778,6 +1303,8 @@ export interface FunctionDefinition { icon?: string | null; /** Palette grouping category (e.g. email, data, ai, custom) */ category?: string | null; + /** Database that owns this resource (database-scoped isolation) */ + databaseId?: string | null; } // ============ Relation Helper Types ============ export interface ConnectionResult { @@ -792,79 +1319,175 @@ export interface PageInfo { endCursor?: string | null; } // ============ Entity Relation Types ============ +export interface InfraGetAllRecordRelations {} export interface GetAllRecordRelations {} +export interface InfraRefRelations {} +export interface InfraStoreRelations {} export interface FunctionApiBindingRelations { functionDefinition?: FunctionDefinition | null; } -export interface FunctionDeploymentRelations { - functionDefinition?: FunctionDefinition | null; +export interface FunctionGraphRefRelations {} +export interface FunctionGraphStoreRelations {} +export interface PlatformFunctionApiBindingRelations { + functionDefinition?: PlatformFunctionDefinition | null; +} +export interface PlatformResourcesRequirementsStateRelations {} +export interface ResourcesRequirementsStateRelations {} +export interface PlatformResourceStatusCheckRelations { + resource?: PlatformResource | null; +} +export interface PlatformFunctionDeploymentRelations { namespace?: PlatformNamespace | null; } -export interface ResourceRelations { +export interface PlatformResourceRelations { namespace?: PlatformNamespace | null; + resourceDefinition?: PlatformResourceDefinition | null; + platformResourceStatusChecksByResourceId?: ConnectionResult; } -export interface FunctionGraphRefRelations {} -export interface FunctionGraphStoreRelations {} +export interface PlatformResourceDefinitionRelations { + namespace?: PlatformNamespace | null; +} +export interface InfraObjectRelations {} export interface FunctionGraphObjectRelations {} +export interface PlatformFunctionDeploymentEventRelations {} +export interface PlatformResourceEventRelations {} +export interface ResourceStatusCheckRelations { + resource?: Resource | null; +} +export interface FunctionDeploymentRelations { + namespace?: Namespace | null; +} +export interface ResourceRelations { + namespace?: Namespace | null; + resourceDefinition?: ResourceDefinition | null; + resourceStatusChecks?: ConnectionResult; +} +export interface ResourceDefinitionRelations { + namespace?: Namespace | null; +} export interface FunctionDeploymentEventRelations {} -export interface OrgFunctionExecutionLogRelations {} +export interface PlatformFunctionExecutionLogRelations {} export interface ResourceEventRelations {} export interface FunctionGraphExecutionOutputRelations {} +export interface InfraCommitRelations {} export interface FunctionGraphCommitRelations {} -export interface SecretDefinitionRelations {} export interface FunctionExecutionLogRelations {} +export interface PlatformResourcesResolvedRequirementRelations {} +export interface ResourcesResolvedRequirementRelations {} +export interface DbPresetRelations {} +export interface PlatformNamespaceRelations { + platformFunctionDeploymentsByNamespaceId?: ConnectionResult; + platformResourcesByNamespaceId?: ConnectionResult; + platformResourceDefinitionsByNamespaceId?: ConnectionResult; +} export interface FunctionGraphRelations {} export interface FunctionGraphExecutionNodeStateRelations {} -export interface PlatformNamespaceRelations { - functionDeploymentsByNamespaceId?: ConnectionResult; - resourcesByNamespaceId?: ConnectionResult; +export interface NamespaceRelations { + functionDeployments?: ConnectionResult; + resources?: ConnectionResult; + resourceDefinitions?: ConnectionResult; } -export interface OrgFunctionInvocationRelations {} +export interface PlatformFunctionInvocationRelations {} export interface FunctionInvocationRelations {} export interface PlatformNamespaceEventRelations {} +export interface IntegrationProviderRelations {} +export interface NamespaceEventRelations {} export interface FunctionGraphExecutionRelations { graph?: FunctionGraph | null; } +export interface PlatformFunctionDefinitionRelations { + platformFunctionApiBindingsByFunctionDefinitionId?: ConnectionResult; +} export interface FunctionDefinitionRelations { functionApiBindings?: ConnectionResult; - functionDeployments?: ConnectionResult; } // ============ Entity Types With Relations ============ +export type InfraGetAllRecordWithRelations = InfraGetAllRecord & InfraGetAllRecordRelations; export type GetAllRecordWithRelations = GetAllRecord & GetAllRecordRelations; +export type InfraRefWithRelations = InfraRef & InfraRefRelations; +export type InfraStoreWithRelations = InfraStore & InfraStoreRelations; export type FunctionApiBindingWithRelations = FunctionApiBinding & FunctionApiBindingRelations; -export type FunctionDeploymentWithRelations = FunctionDeployment & FunctionDeploymentRelations; -export type ResourceWithRelations = Resource & ResourceRelations; export type FunctionGraphRefWithRelations = FunctionGraphRef & FunctionGraphRefRelations; export type FunctionGraphStoreWithRelations = FunctionGraphStore & FunctionGraphStoreRelations; +export type PlatformFunctionApiBindingWithRelations = PlatformFunctionApiBinding & + PlatformFunctionApiBindingRelations; +export type PlatformResourcesRequirementsStateWithRelations = PlatformResourcesRequirementsState & + PlatformResourcesRequirementsStateRelations; +export type ResourcesRequirementsStateWithRelations = ResourcesRequirementsState & + ResourcesRequirementsStateRelations; +export type PlatformResourceStatusCheckWithRelations = PlatformResourceStatusCheck & + PlatformResourceStatusCheckRelations; +export type PlatformFunctionDeploymentWithRelations = PlatformFunctionDeployment & + PlatformFunctionDeploymentRelations; +export type PlatformResourceWithRelations = PlatformResource & PlatformResourceRelations; +export type PlatformResourceDefinitionWithRelations = PlatformResourceDefinition & + PlatformResourceDefinitionRelations; +export type InfraObjectWithRelations = InfraObject & InfraObjectRelations; export type FunctionGraphObjectWithRelations = FunctionGraphObject & FunctionGraphObjectRelations; +export type PlatformFunctionDeploymentEventWithRelations = PlatformFunctionDeploymentEvent & + PlatformFunctionDeploymentEventRelations; +export type PlatformResourceEventWithRelations = PlatformResourceEvent & + PlatformResourceEventRelations; +export type ResourceStatusCheckWithRelations = ResourceStatusCheck & ResourceStatusCheckRelations; +export type FunctionDeploymentWithRelations = FunctionDeployment & FunctionDeploymentRelations; +export type ResourceWithRelations = Resource & ResourceRelations; +export type ResourceDefinitionWithRelations = ResourceDefinition & ResourceDefinitionRelations; export type FunctionDeploymentEventWithRelations = FunctionDeploymentEvent & FunctionDeploymentEventRelations; -export type OrgFunctionExecutionLogWithRelations = OrgFunctionExecutionLog & - OrgFunctionExecutionLogRelations; +export type PlatformFunctionExecutionLogWithRelations = PlatformFunctionExecutionLog & + PlatformFunctionExecutionLogRelations; export type ResourceEventWithRelations = ResourceEvent & ResourceEventRelations; export type FunctionGraphExecutionOutputWithRelations = FunctionGraphExecutionOutput & FunctionGraphExecutionOutputRelations; +export type InfraCommitWithRelations = InfraCommit & InfraCommitRelations; export type FunctionGraphCommitWithRelations = FunctionGraphCommit & FunctionGraphCommitRelations; -export type SecretDefinitionWithRelations = SecretDefinition & SecretDefinitionRelations; export type FunctionExecutionLogWithRelations = FunctionExecutionLog & FunctionExecutionLogRelations; +export type PlatformResourcesResolvedRequirementWithRelations = + PlatformResourcesResolvedRequirement & PlatformResourcesResolvedRequirementRelations; +export type ResourcesResolvedRequirementWithRelations = ResourcesResolvedRequirement & + ResourcesResolvedRequirementRelations; +export type DbPresetWithRelations = DbPreset & DbPresetRelations; +export type PlatformNamespaceWithRelations = PlatformNamespace & PlatformNamespaceRelations; export type FunctionGraphWithRelations = FunctionGraph & FunctionGraphRelations; export type FunctionGraphExecutionNodeStateWithRelations = FunctionGraphExecutionNodeState & FunctionGraphExecutionNodeStateRelations; -export type PlatformNamespaceWithRelations = PlatformNamespace & PlatformNamespaceRelations; -export type OrgFunctionInvocationWithRelations = OrgFunctionInvocation & - OrgFunctionInvocationRelations; +export type NamespaceWithRelations = Namespace & NamespaceRelations; +export type PlatformFunctionInvocationWithRelations = PlatformFunctionInvocation & + PlatformFunctionInvocationRelations; export type FunctionInvocationWithRelations = FunctionInvocation & FunctionInvocationRelations; export type PlatformNamespaceEventWithRelations = PlatformNamespaceEvent & PlatformNamespaceEventRelations; +export type IntegrationProviderWithRelations = IntegrationProvider & IntegrationProviderRelations; +export type NamespaceEventWithRelations = NamespaceEvent & NamespaceEventRelations; export type FunctionGraphExecutionWithRelations = FunctionGraphExecution & FunctionGraphExecutionRelations; +export type PlatformFunctionDefinitionWithRelations = PlatformFunctionDefinition & + PlatformFunctionDefinitionRelations; export type FunctionDefinitionWithRelations = FunctionDefinition & FunctionDefinitionRelations; // ============ Entity Select Types ============ +export type InfraGetAllRecordSelect = { + path?: boolean; + data?: boolean; +}; export type GetAllRecordSelect = { path?: boolean; data?: boolean; }; +export type InfraRefSelect = { + id?: boolean; + name?: boolean; + scopeId?: boolean; + storeId?: boolean; + commitId?: boolean; +}; +export type InfraStoreSelect = { + id?: boolean; + name?: boolean; + scopeId?: boolean; + hash?: boolean; + createdAt?: boolean; +}; export type FunctionApiBindingSelect = { id?: boolean; functionDefinitionId?: boolean; @@ -875,17 +1498,72 @@ export type FunctionApiBindingSelect = { select: FunctionDefinitionSelect; }; }; -export type FunctionDeploymentSelect = { +export type FunctionGraphRefSelect = { + id?: boolean; + name?: boolean; + scopeId?: boolean; + storeId?: boolean; + commitId?: boolean; +}; +export type FunctionGraphStoreSelect = { id?: boolean; + name?: boolean; + scopeId?: boolean; + hash?: boolean; createdAt?: boolean; - updatedAt?: boolean; +}; +export type PlatformFunctionApiBindingSelect = { + id?: boolean; functionDefinitionId?: boolean; + apiId?: boolean; + alias?: boolean; + config?: boolean; + functionDefinition?: { + select: PlatformFunctionDefinitionSelect; + }; +}; +export type PlatformResourcesRequirementsStateSelect = { + resourceId?: boolean; + slug?: boolean; + secretsHash?: boolean; + configHash?: boolean; + requirementsHash?: boolean; + secretsObjectName?: boolean; + configObjectName?: boolean; +}; +export type ResourcesRequirementsStateSelect = { + resourceId?: boolean; + slug?: boolean; + secretsHash?: boolean; + configHash?: boolean; + requirementsHash?: boolean; + secretsObjectName?: boolean; + configObjectName?: boolean; +}; +export type PlatformResourceStatusCheckSelect = { + id?: boolean; + resourceId?: boolean; + requestedBy?: boolean; + requestedAt?: boolean; + completedAt?: boolean; + status?: boolean; + result?: boolean; + resource?: { + select: PlatformResourceSelect; + }; +}; +export type PlatformFunctionDeploymentSelect = { + id?: boolean; + createdAt?: boolean; + updatedAt?: boolean; namespaceId?: boolean; status?: boolean; serviceUrl?: boolean; serviceName?: boolean; revision?: boolean; image?: boolean; + imageVersion?: boolean; + handlerName?: boolean; concurrency?: boolean; scaleMin?: boolean; scaleMax?: boolean; @@ -896,15 +1574,11 @@ export type FunctionDeploymentSelect = { errorCount?: boolean; labels?: boolean; annotations?: boolean; - databaseId?: boolean; - functionDefinition?: { - select: FunctionDefinitionSelect; - }; namespace?: { select: PlatformNamespaceSelect; }; }; -export type ResourceSelect = { +export type PlatformResourceSelect = { id?: boolean; createdAt?: boolean; updatedAt?: boolean; @@ -921,33 +1595,177 @@ export type ResourceSelect = { errorCount?: boolean; labels?: boolean; annotations?: boolean; - databaseId?: boolean; + requiredSecrets?: boolean; + requiredConfigs?: boolean; + integrations?: boolean; + resourceDefinitionId?: boolean; namespace?: { select: PlatformNamespaceSelect; }; + resourceDefinition?: { + select: PlatformResourceDefinitionSelect; + }; + platformResourceStatusChecksByResourceId?: { + select: PlatformResourceStatusCheckSelect; + first?: number; + filter?: PlatformResourceStatusCheckFilter; + orderBy?: PlatformResourceStatusCheckOrderBy[]; + }; }; -export type FunctionGraphRefSelect = { - id?: boolean; - name?: boolean; - databaseId?: boolean; - storeId?: boolean; - commitId?: boolean; -}; -export type FunctionGraphStoreSelect = { +export type PlatformResourceDefinitionSelect = { id?: boolean; - name?: boolean; - databaseId?: boolean; - hash?: boolean; createdAt?: boolean; -}; -export type FunctionGraphObjectSelect = { - id?: boolean; - databaseId?: boolean; + updatedAt?: boolean; + createdBy?: boolean; + updatedBy?: boolean; + namespaceId?: boolean; + kind?: boolean; + name?: boolean; + slug?: boolean; + description?: boolean; + defaultSpec?: boolean; + requiredSecrets?: boolean; + requiredConfigs?: boolean; + integrations?: boolean; + labels?: boolean; + annotations?: boolean; + stepUpMinAge?: boolean; + namespace?: { + select: PlatformNamespaceSelect; + }; +}; +export type InfraObjectSelect = { + id?: boolean; + scopeId?: boolean; + kids?: boolean; + ktree?: boolean; + data?: boolean; + createdAt?: boolean; +}; +export type FunctionGraphObjectSelect = { + id?: boolean; + scopeId?: boolean; kids?: boolean; ktree?: boolean; data?: boolean; createdAt?: boolean; }; +export type PlatformFunctionDeploymentEventSelect = { + createdAt?: boolean; + id?: boolean; + deploymentId?: boolean; + eventType?: boolean; + actorId?: boolean; + message?: boolean; + metadata?: boolean; +}; +export type PlatformResourceEventSelect = { + createdAt?: boolean; + id?: boolean; + resourceId?: boolean; + eventType?: boolean; + actorId?: boolean; + message?: boolean; + metadata?: boolean; +}; +export type ResourceStatusCheckSelect = { + id?: boolean; + resourceId?: boolean; + databaseId?: boolean; + requestedBy?: boolean; + requestedAt?: boolean; + completedAt?: boolean; + status?: boolean; + result?: boolean; + resource?: { + select: ResourceSelect; + }; +}; +export type FunctionDeploymentSelect = { + id?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + namespaceId?: boolean; + status?: boolean; + serviceUrl?: boolean; + serviceName?: boolean; + revision?: boolean; + image?: boolean; + imageVersion?: boolean; + handlerName?: boolean; + concurrency?: boolean; + scaleMin?: boolean; + scaleMax?: boolean; + timeoutSeconds?: boolean; + resources?: boolean; + lastError?: boolean; + lastErrorAt?: boolean; + errorCount?: boolean; + labels?: boolean; + annotations?: boolean; + databaseId?: boolean; + namespace?: { + select: NamespaceSelect; + }; +}; +export type ResourceSelect = { + id?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + createdBy?: boolean; + updatedBy?: boolean; + namespaceId?: boolean; + kind?: boolean; + name?: boolean; + slug?: boolean; + spec?: boolean; + status?: boolean; + statusObserved?: boolean; + lastError?: boolean; + errorCount?: boolean; + labels?: boolean; + annotations?: boolean; + databaseId?: boolean; + requiredSecrets?: boolean; + requiredConfigs?: boolean; + integrations?: boolean; + resourceDefinitionId?: boolean; + namespace?: { + select: NamespaceSelect; + }; + resourceDefinition?: { + select: ResourceDefinitionSelect; + }; + resourceStatusChecks?: { + select: ResourceStatusCheckSelect; + first?: number; + filter?: ResourceStatusCheckFilter; + orderBy?: ResourceStatusCheckOrderBy[]; + }; +}; +export type ResourceDefinitionSelect = { + id?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + createdBy?: boolean; + updatedBy?: boolean; + namespaceId?: boolean; + kind?: boolean; + name?: boolean; + slug?: boolean; + description?: boolean; + defaultSpec?: boolean; + requiredSecrets?: boolean; + requiredConfigs?: boolean; + integrations?: boolean; + labels?: boolean; + annotations?: boolean; + stepUpMinAge?: boolean; + databaseId?: boolean; + namespace?: { + select: NamespaceSelect; + }; +}; export type FunctionDeploymentEventSelect = { createdAt?: boolean; id?: boolean; @@ -958,7 +1776,7 @@ export type FunctionDeploymentEventSelect = { metadata?: boolean; databaseId?: boolean; }; -export type OrgFunctionExecutionLogSelect = { +export type PlatformFunctionExecutionLogSelect = { createdAt?: boolean; id?: boolean; invocationId?: boolean; @@ -981,14 +1799,14 @@ export type ResourceEventSelect = { export type FunctionGraphExecutionOutputSelect = { createdAt?: boolean; id?: boolean; - databaseId?: boolean; + scopeId?: boolean; hash?: boolean; data?: boolean; }; -export type FunctionGraphCommitSelect = { +export type InfraCommitSelect = { id?: boolean; message?: boolean; - databaseId?: boolean; + scopeId?: boolean; storeId?: boolean; parentIds?: boolean; authorId?: boolean; @@ -996,16 +1814,16 @@ export type FunctionGraphCommitSelect = { treeId?: boolean; date?: boolean; }; -export type SecretDefinitionSelect = { +export type FunctionGraphCommitSelect = { id?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - name?: boolean; - description?: boolean; - isBuiltIn?: boolean; - labels?: boolean; - annotations?: boolean; - databaseId?: boolean; + message?: boolean; + scopeId?: boolean; + storeId?: boolean; + parentIds?: boolean; + authorId?: boolean; + committerId?: boolean; + treeId?: boolean; + date?: boolean; }; export type FunctionExecutionLogSelect = { createdAt?: boolean; @@ -1018,9 +1836,78 @@ export type FunctionExecutionLogSelect = { actorId?: boolean; databaseId?: boolean; }; +export type PlatformResourcesResolvedRequirementSelect = { + resourceId?: boolean; + slug?: boolean; + namespaceId?: boolean; + requirementKind?: boolean; + name?: boolean; + required?: boolean; + atomId?: boolean; + present?: boolean; + secretsObjectName?: boolean; + configObjectName?: boolean; +}; +export type ResourcesResolvedRequirementSelect = { + resourceId?: boolean; + slug?: boolean; + namespaceId?: boolean; + requirementKind?: boolean; + name?: boolean; + required?: boolean; + atomId?: boolean; + present?: boolean; + secretsObjectName?: boolean; + configObjectName?: boolean; +}; +export type DbPresetSelect = { + id?: boolean; + storeId?: boolean; + slug?: boolean; + definition?: boolean; + commitId?: boolean; + modulesHash?: boolean; + label?: boolean; + description?: boolean; + active?: boolean; + createdAt?: boolean; + updatedAt?: boolean; +}; +export type PlatformNamespaceSelect = { + id?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + name?: boolean; + namespaceName?: boolean; + description?: boolean; + isActive?: boolean; + status?: boolean; + lastError?: boolean; + labels?: boolean; + annotations?: boolean; + isManaged?: boolean; + platformFunctionDeploymentsByNamespaceId?: { + select: PlatformFunctionDeploymentSelect; + first?: number; + filter?: PlatformFunctionDeploymentFilter; + orderBy?: PlatformFunctionDeploymentOrderBy[]; + }; + platformResourcesByNamespaceId?: { + select: PlatformResourceSelect; + first?: number; + filter?: PlatformResourceFilter; + orderBy?: PlatformResourceOrderBy[]; + }; + platformResourceDefinitionsByNamespaceId?: { + select: PlatformResourceDefinitionSelect; + first?: number; + filter?: PlatformResourceDefinitionFilter; + orderBy?: PlatformResourceDefinitionOrderBy[]; + }; +}; export type FunctionGraphSelect = { id?: boolean; - databaseId?: boolean; + scopeId?: boolean; storeId?: boolean; context?: boolean; name?: boolean; @@ -1036,7 +1923,7 @@ export type FunctionGraphExecutionNodeStateSelect = { createdAt?: boolean; id?: boolean; executionId?: boolean; - databaseId?: boolean; + scopeId?: boolean; nodeName?: boolean; nodePath?: boolean; status?: boolean; @@ -1046,7 +1933,7 @@ export type FunctionGraphExecutionNodeStateSelect = { errorMessage?: boolean; outputId?: boolean; }; -export type PlatformNamespaceSelect = { +export type NamespaceSelect = { id?: boolean; createdAt?: boolean; updatedAt?: boolean; @@ -1054,26 +1941,32 @@ export type PlatformNamespaceSelect = { namespaceName?: boolean; description?: boolean; isActive?: boolean; + status?: boolean; + lastError?: boolean; labels?: boolean; annotations?: boolean; databaseId?: boolean; - sourceDatabaseId?: boolean; - sourceScope?: boolean; isManaged?: boolean; - functionDeploymentsByNamespaceId?: { + functionDeployments?: { select: FunctionDeploymentSelect; first?: number; filter?: FunctionDeploymentFilter; orderBy?: FunctionDeploymentOrderBy[]; }; - resourcesByNamespaceId?: { + resources?: { select: ResourceSelect; first?: number; filter?: ResourceFilter; orderBy?: ResourceOrderBy[]; }; + resourceDefinitions?: { + select: ResourceDefinitionSelect; + first?: number; + filter?: ResourceDefinitionFilter; + orderBy?: ResourceDefinitionOrderBy[]; + }; }; -export type OrgFunctionInvocationSelect = { +export type PlatformFunctionInvocationSelect = { createdAt?: boolean; id?: boolean; actorId?: boolean; @@ -1121,6 +2014,36 @@ export type PlatformNamespaceEventSelect = { networkEgressBytes?: boolean; podCount?: boolean; metrics?: boolean; +}; +export type IntegrationProviderSelect = { + id?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + slug?: boolean; + name?: boolean; + description?: boolean; + category?: boolean; + icon?: boolean; + logo?: boolean; + brand?: boolean; + requiredSecrets?: boolean; + requiredConfigs?: boolean; +}; +export type NamespaceEventSelect = { + createdAt?: boolean; + id?: boolean; + namespaceId?: boolean; + eventType?: boolean; + actorId?: boolean; + message?: boolean; + metadata?: boolean; + cpuMillicores?: boolean; + memoryBytes?: boolean; + storageBytes?: boolean; + networkIngressBytes?: boolean; + networkEgressBytes?: boolean; + podCount?: boolean; + metrics?: boolean; databaseId?: boolean; }; export type FunctionGraphExecutionSelect = { @@ -1128,7 +2051,7 @@ export type FunctionGraphExecutionSelect = { id?: boolean; graphId?: boolean; invocationId?: boolean; - databaseId?: boolean; + scopeId?: boolean; outputNode?: boolean; outputPort?: boolean; status?: boolean; @@ -1145,12 +2068,58 @@ export type FunctionGraphExecutionSelect = { maxTicks?: boolean; maxPendingJobs?: boolean; timeoutAt?: boolean; + lastProgressAt?: boolean; errorCode?: boolean; errorMessage?: boolean; graph?: { select: FunctionGraphSelect; }; }; +export type PlatformFunctionDefinitionSelect = { + id?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + scope?: boolean; + name?: boolean; + taskIdentifier?: boolean; + description?: boolean; + isPublished?: boolean; + accessChannels?: boolean; + publishedAt?: boolean; + maxAttempts?: boolean; + priority?: boolean; + queueName?: boolean; + runtime?: boolean; + targetSchema?: boolean; + targetFunction?: boolean; + moduleTable?: boolean; + functionColumns?: boolean; + payloadArgs?: boolean; + image?: boolean; + concurrency?: boolean; + scaleMin?: boolean; + scaleMax?: boolean; + timeoutSeconds?: boolean; + resources?: boolean; + isBuiltIn?: boolean; + requiredSecrets?: boolean; + requiredConfigs?: boolean; + integrations?: boolean; + requiredBuckets?: boolean; + requiredModels?: boolean; + inputs?: boolean; + outputs?: boolean; + props?: boolean; + volatile?: boolean; + icon?: boolean; + category?: boolean; + platformFunctionApiBindingsByFunctionDefinitionId?: { + select: PlatformFunctionApiBindingSelect; + first?: number; + filter?: PlatformFunctionApiBindingFilter; + orderBy?: PlatformFunctionApiBindingOrderBy[]; + }; +}; export type FunctionDefinitionSelect = { id?: boolean; createdAt?: boolean; @@ -1159,11 +2128,18 @@ export type FunctionDefinitionSelect = { name?: boolean; taskIdentifier?: boolean; description?: boolean; - isInvocable?: boolean; + isPublished?: boolean; + accessChannels?: boolean; + publishedAt?: boolean; maxAttempts?: boolean; priority?: boolean; queueName?: boolean; runtime?: boolean; + targetSchema?: boolean; + targetFunction?: boolean; + moduleTable?: boolean; + functionColumns?: boolean; + payloadArgs?: boolean; image?: boolean; concurrency?: boolean; scaleMin?: boolean; @@ -1173,6 +2149,7 @@ export type FunctionDefinitionSelect = { isBuiltIn?: boolean; requiredSecrets?: boolean; requiredConfigs?: boolean; + integrations?: boolean; requiredBuckets?: boolean; requiredModels?: boolean; inputs?: boolean; @@ -1181,20 +2158,22 @@ export type FunctionDefinitionSelect = { volatile?: boolean; icon?: boolean; category?: boolean; + databaseId?: boolean; functionApiBindings?: { select: FunctionApiBindingSelect; first?: number; filter?: FunctionApiBindingFilter; orderBy?: FunctionApiBindingOrderBy[]; }; - functionDeployments?: { - select: FunctionDeploymentSelect; - first?: number; - filter?: FunctionDeploymentFilter; - orderBy?: FunctionDeploymentOrderBy[]; - }; }; // ============ Table Filter Types ============ +export interface InfraGetAllRecordFilter { + path?: StringListFilter; + data?: JSONFilter; + and?: InfraGetAllRecordFilter[]; + or?: InfraGetAllRecordFilter[]; + not?: InfraGetAllRecordFilter; +} export interface GetAllRecordFilter { path?: StringListFilter; data?: JSONFilter; @@ -1202,11 +2181,47 @@ export interface GetAllRecordFilter { or?: GetAllRecordFilter[]; not?: GetAllRecordFilter; } -export interface FunctionApiBindingFilter { +export interface InfraRefFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `functionDefinitionId` field. */ - functionDefinitionId?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `scopeId` field. */ + scopeId?: UUIDFilter; + /** Filter by the object’s `storeId` field. */ + storeId?: UUIDFilter; + /** Filter by the object’s `commitId` field. */ + commitId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: InfraRefFilter[]; + /** Checks for any expressions in this list. */ + or?: InfraRefFilter[]; + /** Negates the expression. */ + not?: InfraRefFilter; +} +export interface InfraStoreFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `scopeId` field. */ + scopeId?: UUIDFilter; + /** Filter by the object’s `hash` field. */ + hash?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Checks for all expressions in this list. */ + and?: InfraStoreFilter[]; + /** Checks for any expressions in this list. */ + or?: InfraStoreFilter[]; + /** Negates the expression. */ + not?: InfraStoreFilter; +} +export interface FunctionApiBindingFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `functionDefinitionId` field. */ + functionDefinitionId?: UUIDFilter; /** Filter by the object’s `apiId` field. */ apiId?: UUIDFilter; /** Filter by the object’s `alias` field. */ @@ -1222,15 +2237,137 @@ export interface FunctionApiBindingFilter { /** Filter by the object’s `functionDefinition` relation. */ functionDefinition?: FunctionDefinitionFilter; } -export interface FunctionDeploymentFilter { +export interface FunctionGraphRefFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `scopeId` field. */ + scopeId?: UUIDFilter; + /** Filter by the object’s `storeId` field. */ + storeId?: UUIDFilter; + /** Filter by the object’s `commitId` field. */ + commitId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: FunctionGraphRefFilter[]; + /** Checks for any expressions in this list. */ + or?: FunctionGraphRefFilter[]; + /** Negates the expression. */ + not?: FunctionGraphRefFilter; +} +export interface FunctionGraphStoreFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `scopeId` field. */ + scopeId?: UUIDFilter; + /** Filter by the object’s `hash` field. */ + hash?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; + /** Checks for all expressions in this list. */ + and?: FunctionGraphStoreFilter[]; + /** Checks for any expressions in this list. */ + or?: FunctionGraphStoreFilter[]; + /** Negates the expression. */ + not?: FunctionGraphStoreFilter; +} +export interface PlatformFunctionApiBindingFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; /** Filter by the object’s `functionDefinitionId` field. */ functionDefinitionId?: UUIDFilter; + /** Filter by the object’s `apiId` field. */ + apiId?: UUIDFilter; + /** Filter by the object’s `alias` field. */ + alias?: StringFilter; + /** Filter by the object’s `config` field. */ + config?: JSONFilter; + /** Checks for all expressions in this list. */ + and?: PlatformFunctionApiBindingFilter[]; + /** Checks for any expressions in this list. */ + or?: PlatformFunctionApiBindingFilter[]; + /** Negates the expression. */ + not?: PlatformFunctionApiBindingFilter; + /** Filter by the object’s `functionDefinition` relation. */ + functionDefinition?: PlatformFunctionDefinitionFilter; +} +export interface PlatformResourcesRequirementsStateFilter { + /** Filter by the object’s `resourceId` field. */ + resourceId?: UUIDFilter; + /** Filter by the object’s `slug` field. */ + slug?: StringFilter; + /** Filter by the object’s `secretsHash` field. */ + secretsHash?: StringFilter; + /** Filter by the object’s `configHash` field. */ + configHash?: StringFilter; + /** Filter by the object’s `requirementsHash` field. */ + requirementsHash?: StringFilter; + /** Filter by the object’s `secretsObjectName` field. */ + secretsObjectName?: StringFilter; + /** Filter by the object’s `configObjectName` field. */ + configObjectName?: StringFilter; + /** Checks for all expressions in this list. */ + and?: PlatformResourcesRequirementsStateFilter[]; + /** Checks for any expressions in this list. */ + or?: PlatformResourcesRequirementsStateFilter[]; + /** Negates the expression. */ + not?: PlatformResourcesRequirementsStateFilter; +} +export interface ResourcesRequirementsStateFilter { + /** Filter by the object’s `resourceId` field. */ + resourceId?: UUIDFilter; + /** Filter by the object’s `slug` field. */ + slug?: StringFilter; + /** Filter by the object’s `secretsHash` field. */ + secretsHash?: StringFilter; + /** Filter by the object’s `configHash` field. */ + configHash?: StringFilter; + /** Filter by the object’s `requirementsHash` field. */ + requirementsHash?: StringFilter; + /** Filter by the object’s `secretsObjectName` field. */ + secretsObjectName?: StringFilter; + /** Filter by the object’s `configObjectName` field. */ + configObjectName?: StringFilter; + /** Checks for all expressions in this list. */ + and?: ResourcesRequirementsStateFilter[]; + /** Checks for any expressions in this list. */ + or?: ResourcesRequirementsStateFilter[]; + /** Negates the expression. */ + not?: ResourcesRequirementsStateFilter; +} +export interface PlatformResourceStatusCheckFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `resourceId` field. */ + resourceId?: UUIDFilter; + /** Filter by the object’s `requestedBy` field. */ + requestedBy?: UUIDFilter; + /** Filter by the object’s `requestedAt` field. */ + requestedAt?: DatetimeFilter; + /** Filter by the object’s `completedAt` field. */ + completedAt?: DatetimeFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `result` field. */ + result?: JSONFilter; + /** Checks for all expressions in this list. */ + and?: PlatformResourceStatusCheckFilter[]; + /** Checks for any expressions in this list. */ + or?: PlatformResourceStatusCheckFilter[]; + /** Negates the expression. */ + not?: PlatformResourceStatusCheckFilter; + /** Filter by the object’s `resource` relation. */ + resource?: PlatformResourceFilter; +} +export interface PlatformFunctionDeploymentFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; /** Filter by the object’s `namespaceId` field. */ namespaceId?: UUIDFilter; /** Filter by the object’s `status` field. */ @@ -1243,6 +2380,10 @@ export interface FunctionDeploymentFilter { revision?: IntFilter; /** Filter by the object’s `image` field. */ image?: StringFilter; + /** Filter by the object’s `imageVersion` field. */ + imageVersion?: StringFilter; + /** Filter by the object’s `handlerName` field. */ + handlerName?: StringFilter; /** Filter by the object’s `concurrency` field. */ concurrency?: IntFilter; /** Filter by the object’s `scaleMin` field. */ @@ -1263,20 +2404,16 @@ export interface FunctionDeploymentFilter { labels?: JSONFilter; /** Filter by the object’s `annotations` field. */ annotations?: JSONFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; /** Checks for all expressions in this list. */ - and?: FunctionDeploymentFilter[]; + and?: PlatformFunctionDeploymentFilter[]; /** Checks for any expressions in this list. */ - or?: FunctionDeploymentFilter[]; + or?: PlatformFunctionDeploymentFilter[]; /** Negates the expression. */ - not?: FunctionDeploymentFilter; - /** Filter by the object’s `functionDefinition` relation. */ - functionDefinition?: FunctionDefinitionFilter; + not?: PlatformFunctionDeploymentFilter; /** Filter by the object’s `namespace` relation. */ namespace?: PlatformNamespaceFilter; } -export interface ResourceFilter { +export interface PlatformResourceFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ @@ -1309,58 +2446,92 @@ export interface ResourceFilter { labels?: JSONFilter; /** Filter by the object’s `annotations` field. */ annotations?: JSONFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; + /** Filter by the object’s `integrations` field. */ + integrations?: StringListFilter; + /** Filter by the object’s `resourceDefinitionId` field. */ + resourceDefinitionId?: UUIDFilter; /** Checks for all expressions in this list. */ - and?: ResourceFilter[]; + and?: PlatformResourceFilter[]; /** Checks for any expressions in this list. */ - or?: ResourceFilter[]; + or?: PlatformResourceFilter[]; /** Negates the expression. */ - not?: ResourceFilter; + not?: PlatformResourceFilter; /** Filter by the object’s `namespace` relation. */ namespace?: PlatformNamespaceFilter; -} -export interface FunctionGraphRefFilter { + /** Filter by the object’s `resourceDefinition` relation. */ + resourceDefinition?: PlatformResourceDefinitionFilter; + /** A related `resourceDefinition` exists. */ + resourceDefinitionExists?: boolean; + /** Filter by the object’s `platformResourceStatusChecksByResourceId` relation. */ + platformResourceStatusChecksByResourceId?: PlatformResourceToManyPlatformResourceStatusCheckFilter; + /** `platformResourceStatusChecksByResourceId` exist. */ + platformResourceStatusChecksByResourceIdExist?: boolean; +} +export interface PlatformResourceDefinitionFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; + /** Filter by the object’s `kind` field. */ + kind?: StringFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `storeId` field. */ - storeId?: UUIDFilter; - /** Filter by the object’s `commitId` field. */ - commitId?: UUIDFilter; + /** Filter by the object’s `slug` field. */ + slug?: StringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `defaultSpec` field. */ + defaultSpec?: JSONFilter; + /** Filter by the object’s `integrations` field. */ + integrations?: StringListFilter; + /** Filter by the object’s `labels` field. */ + labels?: JSONFilter; + /** Filter by the object’s `annotations` field. */ + annotations?: JSONFilter; + /** Filter by the object’s `stepUpMinAge` field. */ + stepUpMinAge?: IntervalFilter; /** Checks for all expressions in this list. */ - and?: FunctionGraphRefFilter[]; + and?: PlatformResourceDefinitionFilter[]; /** Checks for any expressions in this list. */ - or?: FunctionGraphRefFilter[]; + or?: PlatformResourceDefinitionFilter[]; /** Negates the expression. */ - not?: FunctionGraphRefFilter; + not?: PlatformResourceDefinitionFilter; + /** Filter by the object’s `namespace` relation. */ + namespace?: PlatformNamespaceFilter; } -export interface FunctionGraphStoreFilter { +export interface InfraObjectFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `hash` field. */ - hash?: UUIDFilter; + /** Filter by the object’s `scopeId` field. */ + scopeId?: UUIDFilter; + /** Filter by the object’s `kids` field. */ + kids?: UUIDListFilter; + /** Filter by the object’s `ktree` field. */ + ktree?: StringListFilter; + /** Filter by the object’s `data` field. */ + data?: JSONFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; /** Checks for all expressions in this list. */ - and?: FunctionGraphStoreFilter[]; + and?: InfraObjectFilter[]; /** Checks for any expressions in this list. */ - or?: FunctionGraphStoreFilter[]; + or?: InfraObjectFilter[]; /** Negates the expression. */ - not?: FunctionGraphStoreFilter; + not?: InfraObjectFilter; } export interface FunctionGraphObjectFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; + /** Filter by the object’s `scopeId` field. */ + scopeId?: UUIDFilter; /** Filter by the object’s `kids` field. */ kids?: UUIDListFilter; /** Filter by the object’s `ktree` field. */ @@ -1376,7 +2547,7 @@ export interface FunctionGraphObjectFilter { /** Negates the expression. */ not?: FunctionGraphObjectFilter; } -export interface FunctionDeploymentEventFilter { +export interface PlatformFunctionDeploymentEventFilter { /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; /** Filter by the object’s `id` field. */ @@ -1391,40 +2562,14 @@ export interface FunctionDeploymentEventFilter { message?: StringFilter; /** Filter by the object’s `metadata` field. */ metadata?: JSONFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: FunctionDeploymentEventFilter[]; - /** Checks for any expressions in this list. */ - or?: FunctionDeploymentEventFilter[]; - /** Negates the expression. */ - not?: FunctionDeploymentEventFilter; -} -export interface OrgFunctionExecutionLogFilter { - /** 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 `taskIdentifier` field. */ - taskIdentifier?: 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; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; /** Checks for all expressions in this list. */ - and?: OrgFunctionExecutionLogFilter[]; + and?: PlatformFunctionDeploymentEventFilter[]; /** Checks for any expressions in this list. */ - or?: OrgFunctionExecutionLogFilter[]; + or?: PlatformFunctionDeploymentEventFilter[]; /** Negates the expression. */ - not?: OrgFunctionExecutionLogFilter; + not?: PlatformFunctionDeploymentEventFilter; } -export interface ResourceEventFilter { +export interface PlatformResourceEventFilter { /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; /** Filter by the object’s `id` field. */ @@ -1439,298 +2584,246 @@ export interface ResourceEventFilter { message?: StringFilter; /** Filter by the object’s `metadata` field. */ metadata?: JSONFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: ResourceEventFilter[]; - /** Checks for any expressions in this list. */ - or?: ResourceEventFilter[]; - /** Negates the expression. */ - not?: ResourceEventFilter; -} -export interface FunctionGraphExecutionOutputFilter { - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `hash` field. */ - hash?: Base64EncodedBinaryFilter; - /** Filter by the object’s `data` field. */ - data?: JSONFilter; /** Checks for all expressions in this list. */ - and?: FunctionGraphExecutionOutputFilter[]; + and?: PlatformResourceEventFilter[]; /** Checks for any expressions in this list. */ - or?: FunctionGraphExecutionOutputFilter[]; + or?: PlatformResourceEventFilter[]; /** Negates the expression. */ - not?: FunctionGraphExecutionOutputFilter; + not?: PlatformResourceEventFilter; } -export interface FunctionGraphCommitFilter { +export interface ResourceStatusCheckFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `message` field. */ - message?: StringFilter; + /** Filter by the object’s `resourceId` field. */ + resourceId?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `storeId` field. */ - storeId?: UUIDFilter; - /** Filter by the object’s `parentIds` field. */ - parentIds?: UUIDListFilter; - /** Filter by the object’s `authorId` field. */ - authorId?: UUIDFilter; - /** Filter by the object’s `committerId` field. */ - committerId?: UUIDFilter; - /** Filter by the object’s `treeId` field. */ - treeId?: UUIDFilter; - /** Filter by the object’s `date` field. */ - date?: DatetimeFilter; + /** Filter by the object’s `requestedBy` field. */ + requestedBy?: UUIDFilter; + /** Filter by the object’s `requestedAt` field. */ + requestedAt?: DatetimeFilter; + /** Filter by the object’s `completedAt` field. */ + completedAt?: DatetimeFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `result` field. */ + result?: JSONFilter; /** Checks for all expressions in this list. */ - and?: FunctionGraphCommitFilter[]; + and?: ResourceStatusCheckFilter[]; /** Checks for any expressions in this list. */ - or?: FunctionGraphCommitFilter[]; + or?: ResourceStatusCheckFilter[]; /** Negates the expression. */ - not?: FunctionGraphCommitFilter; + not?: ResourceStatusCheckFilter; + /** Filter by the object’s `resource` relation. */ + resource?: ResourceFilter; } -export interface SecretDefinitionFilter { +export interface FunctionDeploymentFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Filter by the object’s `isBuiltIn` field. */ - isBuiltIn?: BooleanFilter; - /** Filter by the object’s `labels` field. */ - labels?: JSONFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `serviceUrl` field. */ + serviceUrl?: StringFilter; + /** Filter by the object’s `serviceName` field. */ + serviceName?: StringFilter; + /** Filter by the object’s `revision` field. */ + revision?: IntFilter; + /** Filter by the object’s `image` field. */ + image?: StringFilter; + /** Filter by the object’s `imageVersion` field. */ + imageVersion?: StringFilter; + /** Filter by the object’s `handlerName` field. */ + handlerName?: StringFilter; + /** Filter by the object’s `concurrency` field. */ + concurrency?: IntFilter; + /** Filter by the object’s `scaleMin` field. */ + scaleMin?: IntFilter; + /** Filter by the object’s `scaleMax` field. */ + scaleMax?: IntFilter; + /** Filter by the object’s `timeoutSeconds` field. */ + timeoutSeconds?: IntFilter; + /** Filter by the object’s `resources` field. */ + resources?: JSONFilter; + /** Filter by the object’s `lastError` field. */ + lastError?: StringFilter; + /** Filter by the object’s `lastErrorAt` field. */ + lastErrorAt?: DatetimeFilter; + /** Filter by the object’s `errorCount` field. */ + errorCount?: IntFilter; + /** Filter by the object’s `labels` field. */ + labels?: JSONFilter; /** Filter by the object’s `annotations` field. */ annotations?: JSONFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; /** Checks for all expressions in this list. */ - and?: SecretDefinitionFilter[]; - /** Checks for any expressions in this list. */ - or?: SecretDefinitionFilter[]; - /** Negates the expression. */ - not?: SecretDefinitionFilter; -} -export interface FunctionExecutionLogFilter { - /** 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 `taskIdentifier` field. */ - taskIdentifier?: 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; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: FunctionExecutionLogFilter[]; + and?: FunctionDeploymentFilter[]; /** Checks for any expressions in this list. */ - or?: FunctionExecutionLogFilter[]; + or?: FunctionDeploymentFilter[]; /** Negates the expression. */ - not?: FunctionExecutionLogFilter; + not?: FunctionDeploymentFilter; + /** Filter by the object’s `namespace` relation. */ + namespace?: NamespaceFilter; } -export interface FunctionGraphFilter { +export interface ResourceFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `storeId` field. */ - storeId?: UUIDFilter; - /** Filter by the object’s `context` field. */ - context?: StringFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Filter by the object’s `definitionsCommitId` field. */ - definitionsCommitId?: UUIDFilter; - /** Filter by the object’s `isValid` field. */ - isValid?: BooleanFilter; - /** Filter by the object’s `validationErrors` field. */ - validationErrors?: JSONFilter; - /** Filter by the object’s `createdBy` field. */ - createdBy?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; - /** Checks for all expressions in this list. */ - and?: FunctionGraphFilter[]; - /** Checks for any expressions in this list. */ - or?: FunctionGraphFilter[]; - /** Negates the expression. */ - not?: FunctionGraphFilter; -} -export interface FunctionGraphExecutionNodeStateFilter { - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `executionId` field. */ - executionId?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `nodeName` field. */ - nodeName?: StringFilter; - /** Filter by the object’s `nodePath` field. */ - nodePath?: StringListFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; + /** Filter by the object’s `kind` field. */ + kind?: StringFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** 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 `startedAt` field. */ - startedAt?: DatetimeFilter; - /** Filter by the object’s `completedAt` field. */ - completedAt?: DatetimeFilter; - /** Filter by the object’s `errorCode` field. */ - errorCode?: StringFilter; - /** Filter by the object’s `errorMessage` field. */ - errorMessage?: StringFilter; - /** Filter by the object’s `outputId` field. */ - outputId?: UUIDFilter; + /** Filter by the object’s `statusObserved` field. */ + statusObserved?: JSONFilter; + /** Filter by the object’s `lastError` field. */ + lastError?: StringFilter; + /** Filter by the object’s `errorCount` field. */ + errorCount?: IntFilter; + /** Filter by the object’s `labels` field. */ + labels?: JSONFilter; + /** Filter by the object’s `annotations` field. */ + annotations?: JSONFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `integrations` field. */ + integrations?: StringListFilter; + /** Filter by the object’s `resourceDefinitionId` field. */ + resourceDefinitionId?: UUIDFilter; /** Checks for all expressions in this list. */ - and?: FunctionGraphExecutionNodeStateFilter[]; + and?: ResourceFilter[]; /** Checks for any expressions in this list. */ - or?: FunctionGraphExecutionNodeStateFilter[]; + or?: ResourceFilter[]; /** Negates the expression. */ - not?: FunctionGraphExecutionNodeStateFilter; -} -export interface PlatformNamespaceFilter { + not?: ResourceFilter; + /** Filter by the object’s `namespace` relation. */ + namespace?: NamespaceFilter; + /** Filter by the object’s `resourceDefinition` relation. */ + resourceDefinition?: ResourceDefinitionFilter; + /** A related `resourceDefinition` exists. */ + resourceDefinitionExists?: boolean; + /** Filter by the object’s `resourceStatusChecks` relation. */ + resourceStatusChecks?: ResourceToManyResourceStatusCheckFilter; + /** `resourceStatusChecks` exist. */ + resourceStatusChecksExist?: boolean; +} +export interface ResourceDefinitionFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; + /** Filter by the object’s `kind` field. */ + kind?: StringFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; - /** Filter by the object’s `namespaceName` field. */ - namespaceName?: StringFilter; + /** Filter by the object’s `slug` field. */ + slug?: StringFilter; /** Filter by the object’s `description` field. */ description?: StringFilter; - /** Filter by the object’s `isActive` field. */ - isActive?: BooleanFilter; + /** Filter by the object’s `defaultSpec` field. */ + defaultSpec?: JSONFilter; + /** Filter by the object’s `integrations` field. */ + integrations?: StringListFilter; /** Filter by the object’s `labels` field. */ labels?: JSONFilter; /** Filter by the object’s `annotations` field. */ annotations?: JSONFilter; + /** Filter by the object’s `stepUpMinAge` field. */ + stepUpMinAge?: IntervalFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `sourceDatabaseId` field. */ - sourceDatabaseId?: UUIDFilter; - /** Filter by the object’s `sourceScope` field. */ - sourceScope?: StringFilter; - /** Filter by the object’s `isManaged` field. */ - isManaged?: BooleanFilter; /** Checks for all expressions in this list. */ - and?: PlatformNamespaceFilter[]; + and?: ResourceDefinitionFilter[]; /** Checks for any expressions in this list. */ - or?: PlatformNamespaceFilter[]; + or?: ResourceDefinitionFilter[]; /** Negates the expression. */ - not?: PlatformNamespaceFilter; - /** Filter by the object’s `functionDeploymentsByNamespaceId` relation. */ - functionDeploymentsByNamespaceId?: PlatformNamespaceToManyFunctionDeploymentFilter; - /** `functionDeploymentsByNamespaceId` exist. */ - functionDeploymentsByNamespaceIdExist?: boolean; - /** Filter by the object’s `resourcesByNamespaceId` relation. */ - resourcesByNamespaceId?: PlatformNamespaceToManyResourceFilter; - /** `resourcesByNamespaceId` exist. */ - resourcesByNamespaceIdExist?: boolean; -} -export interface OrgFunctionInvocationFilter { + not?: ResourceDefinitionFilter; + /** Filter by the object’s `namespace` relation. */ + namespace?: NamespaceFilter; +} +export interface FunctionDeploymentEventFilter { /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; + /** Filter by the object’s `deploymentId` field. */ + deploymentId?: UUIDFilter; + /** Filter by the object’s `eventType` field. */ + eventType?: StringFilter; /** Filter by the object’s `actorId` field. */ actorId?: UUIDFilter; - /** Filter by the object’s `taskIdentifier` field. */ - taskIdentifier?: StringFilter; - /** Filter by the object’s `payload` field. */ - payload?: JSONFilter; - /** Filter by the object’s `status` field. */ - status?: StringFilter; - /** Filter by the object’s `result` field. */ - result?: JSONFilter; - /** Filter by the object’s `error` field. */ - error?: StringFilter; - /** Filter by the object’s `durationMs` field. */ - durationMs?: IntFilter; - /** Filter by the object’s `jobId` field. */ - jobId?: BigIntFilter; - /** Filter by the object’s `startedAt` field. */ - startedAt?: DatetimeFilter; - /** Filter by the object’s `completedAt` field. */ - completedAt?: DatetimeFilter; - /** Filter by the object’s `parentInvocationId` field. */ - parentInvocationId?: UUIDFilter; - /** Filter by the object’s `graphExecutionId` field. */ - graphExecutionId?: UUIDFilter; + /** Filter by the object’s `message` field. */ + message?: StringFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; /** Checks for all expressions in this list. */ - and?: OrgFunctionInvocationFilter[]; + and?: FunctionDeploymentEventFilter[]; /** Checks for any expressions in this list. */ - or?: OrgFunctionInvocationFilter[]; + or?: FunctionDeploymentEventFilter[]; /** Negates the expression. */ - not?: OrgFunctionInvocationFilter; + not?: FunctionDeploymentEventFilter; } -export interface FunctionInvocationFilter { +export interface PlatformFunctionExecutionLogFilter { /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; + /** Filter by the object’s `invocationId` field. */ + invocationId?: UUIDFilter; /** Filter by the object’s `taskIdentifier` field. */ taskIdentifier?: StringFilter; - /** Filter by the object’s `payload` field. */ - payload?: JSONFilter; - /** Filter by the object’s `status` field. */ - status?: StringFilter; - /** Filter by the object’s `result` field. */ - result?: JSONFilter; - /** Filter by the object’s `error` field. */ - error?: StringFilter; - /** Filter by the object’s `durationMs` field. */ - durationMs?: IntFilter; - /** Filter by the object’s `jobId` field. */ - jobId?: BigIntFilter; - /** Filter by the object’s `startedAt` field. */ - startedAt?: DatetimeFilter; - /** Filter by the object’s `completedAt` field. */ - completedAt?: DatetimeFilter; - /** Filter by the object’s `parentInvocationId` field. */ - parentInvocationId?: UUIDFilter; - /** Filter by the object’s `graphExecutionId` field. */ - graphExecutionId?: 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 `actorId` field. */ + actorId?: UUIDFilter; /** Checks for all expressions in this list. */ - and?: FunctionInvocationFilter[]; + and?: PlatformFunctionExecutionLogFilter[]; /** Checks for any expressions in this list. */ - or?: FunctionInvocationFilter[]; + or?: PlatformFunctionExecutionLogFilter[]; /** Negates the expression. */ - not?: FunctionInvocationFilter; + not?: PlatformFunctionExecutionLogFilter; } -export interface PlatformNamespaceEventFilter { +export interface ResourceEventFilter { /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `namespaceId` field. */ - namespaceId?: UUIDFilter; + /** Filter by the object’s `resourceId` field. */ + resourceId?: UUIDFilter; /** Filter by the object’s `eventType` field. */ eventType?: StringFilter; /** Filter by the object’s `actorId` field. */ @@ -1739,110 +2832,624 @@ export interface PlatformNamespaceEventFilter { message?: StringFilter; /** Filter by the object’s `metadata` field. */ metadata?: JSONFilter; - /** Filter by the object’s `cpuMillicores` field. */ - cpuMillicores?: IntFilter; - /** Filter by the object’s `memoryBytes` field. */ - memoryBytes?: BigIntFilter; - /** Filter by the object’s `storageBytes` field. */ - storageBytes?: BigIntFilter; - /** Filter by the object’s `networkIngressBytes` field. */ - networkIngressBytes?: BigIntFilter; - /** Filter by the object’s `networkEgressBytes` field. */ - networkEgressBytes?: BigIntFilter; - /** Filter by the object’s `podCount` field. */ - podCount?: IntFilter; - /** Filter by the object’s `metrics` field. */ - metrics?: JSONFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; /** Checks for all expressions in this list. */ - and?: PlatformNamespaceEventFilter[]; + and?: ResourceEventFilter[]; /** Checks for any expressions in this list. */ - or?: PlatformNamespaceEventFilter[]; + or?: ResourceEventFilter[]; /** Negates the expression. */ - not?: PlatformNamespaceEventFilter; + not?: ResourceEventFilter; } -export interface FunctionGraphExecutionFilter { - /** Filter by the object’s `startedAt` field. */ - startedAt?: DatetimeFilter; +export interface FunctionGraphExecutionOutputFilter { + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `scopeId` field. */ + scopeId?: UUIDFilter; + /** Filter by the object’s `hash` field. */ + hash?: Base64EncodedBinaryFilter; + /** Filter by the object’s `data` field. */ + data?: JSONFilter; + /** Checks for all expressions in this list. */ + and?: FunctionGraphExecutionOutputFilter[]; + /** Checks for any expressions in this list. */ + or?: FunctionGraphExecutionOutputFilter[]; + /** Negates the expression. */ + not?: FunctionGraphExecutionOutputFilter; +} +export interface InfraCommitFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `message` field. */ + message?: StringFilter; + /** Filter by the object’s `scopeId` field. */ + scopeId?: UUIDFilter; + /** Filter by the object’s `storeId` field. */ + storeId?: UUIDFilter; + /** Filter by the object’s `parentIds` field. */ + parentIds?: UUIDListFilter; + /** Filter by the object’s `authorId` field. */ + authorId?: UUIDFilter; + /** Filter by the object’s `committerId` field. */ + committerId?: UUIDFilter; + /** Filter by the object’s `treeId` field. */ + treeId?: UUIDFilter; + /** Filter by the object’s `date` field. */ + date?: DatetimeFilter; + /** Checks for all expressions in this list. */ + and?: InfraCommitFilter[]; + /** Checks for any expressions in this list. */ + or?: InfraCommitFilter[]; + /** Negates the expression. */ + not?: InfraCommitFilter; +} +export interface FunctionGraphCommitFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `message` field. */ + message?: StringFilter; + /** Filter by the object’s `scopeId` field. */ + scopeId?: UUIDFilter; + /** Filter by the object’s `storeId` field. */ + storeId?: UUIDFilter; + /** Filter by the object’s `parentIds` field. */ + parentIds?: UUIDListFilter; + /** Filter by the object’s `authorId` field. */ + authorId?: UUIDFilter; + /** Filter by the object’s `committerId` field. */ + committerId?: UUIDFilter; + /** Filter by the object’s `treeId` field. */ + treeId?: UUIDFilter; + /** Filter by the object’s `date` field. */ + date?: DatetimeFilter; + /** Checks for all expressions in this list. */ + and?: FunctionGraphCommitFilter[]; + /** Checks for any expressions in this list. */ + or?: FunctionGraphCommitFilter[]; + /** Negates the expression. */ + not?: FunctionGraphCommitFilter; +} +export interface FunctionExecutionLogFilter { + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `graphId` field. */ - graphId?: UUIDFilter; /** Filter by the object’s `invocationId` field. */ invocationId?: UUIDFilter; + /** Filter by the object’s `taskIdentifier` field. */ + taskIdentifier?: 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; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `outputNode` field. */ - outputNode?: StringFilter; - /** Filter by the object’s `outputPort` field. */ - outputPort?: StringFilter; + /** Checks for all expressions in this list. */ + and?: FunctionExecutionLogFilter[]; + /** Checks for any expressions in this list. */ + or?: FunctionExecutionLogFilter[]; + /** Negates the expression. */ + not?: FunctionExecutionLogFilter; +} +export interface PlatformResourcesResolvedRequirementFilter { + /** Filter by the object’s `resourceId` field. */ + resourceId?: UUIDFilter; + /** Filter by the object’s `slug` field. */ + slug?: StringFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; + /** Filter by the object’s `requirementKind` field. */ + requirementKind?: StringFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `required` field. */ + required?: BooleanFilter; + /** Filter by the object’s `atomId` field. */ + atomId?: UUIDFilter; + /** Filter by the object’s `present` field. */ + present?: BooleanFilter; + /** Filter by the object’s `secretsObjectName` field. */ + secretsObjectName?: StringFilter; + /** Filter by the object’s `configObjectName` field. */ + configObjectName?: StringFilter; + /** Checks for all expressions in this list. */ + and?: PlatformResourcesResolvedRequirementFilter[]; + /** Checks for any expressions in this list. */ + or?: PlatformResourcesResolvedRequirementFilter[]; + /** Negates the expression. */ + not?: PlatformResourcesResolvedRequirementFilter; +} +export interface ResourcesResolvedRequirementFilter { + /** Filter by the object’s `resourceId` field. */ + resourceId?: UUIDFilter; + /** Filter by the object’s `slug` field. */ + slug?: StringFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; + /** Filter by the object’s `requirementKind` field. */ + requirementKind?: StringFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `required` field. */ + required?: BooleanFilter; + /** Filter by the object’s `atomId` field. */ + atomId?: UUIDFilter; + /** Filter by the object’s `present` field. */ + present?: BooleanFilter; + /** Filter by the object’s `secretsObjectName` field. */ + secretsObjectName?: StringFilter; + /** Filter by the object’s `configObjectName` field. */ + configObjectName?: StringFilter; + /** Checks for all expressions in this list. */ + and?: ResourcesResolvedRequirementFilter[]; + /** Checks for any expressions in this list. */ + or?: ResourcesResolvedRequirementFilter[]; + /** Negates the expression. */ + not?: ResourcesResolvedRequirementFilter; +} +export interface DbPresetFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `storeId` field. */ + storeId?: UUIDFilter; + /** Filter by the object’s `slug` field. */ + slug?: StringFilter; + /** Filter by the object’s `definition` field. */ + definition?: JSONFilter; + /** Filter by the object’s `commitId` field. */ + commitId?: UUIDFilter; + /** Filter by the object’s `modulesHash` field. */ + modulesHash?: UUIDFilter; + /** Filter by the object’s `label` field. */ + label?: StringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `active` field. */ + active?: BooleanFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Checks for all expressions in this list. */ + and?: DbPresetFilter[]; + /** Checks for any expressions in this list. */ + or?: DbPresetFilter[]; + /** Negates the expression. */ + not?: DbPresetFilter; +} +export interface PlatformNamespaceFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `namespaceName` field. */ + namespaceName?: StringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `isActive` field. */ + isActive?: BooleanFilter; /** Filter by the object’s `status` field. */ status?: StringFilter; - /** Filter by the object’s `inputPayload` field. */ - inputPayload?: JSONFilter; - /** Filter by the object’s `outputPayload` field. */ - outputPayload?: JSONFilter; - /** Filter by the object’s `nodeOutputs` field. */ - nodeOutputs?: JSONFilter; - /** Filter by the object’s `executionPlan` field. */ - executionPlan?: JSONFilter; - /** Filter by the object’s `currentWave` field. */ - currentWave?: IntFilter; - /** Filter by the object’s `parentExecutionId` field. */ - parentExecutionId?: UUIDFilter; - /** Filter by the object’s `parentNodeName` field. */ - parentNodeName?: StringFilter; + /** Filter by the object’s `lastError` field. */ + lastError?: StringFilter; + /** Filter by the object’s `labels` field. */ + labels?: JSONFilter; + /** Filter by the object’s `annotations` field. */ + annotations?: JSONFilter; + /** Filter by the object’s `isManaged` field. */ + isManaged?: BooleanFilter; + /** Checks for all expressions in this list. */ + and?: PlatformNamespaceFilter[]; + /** Checks for any expressions in this list. */ + or?: PlatformNamespaceFilter[]; + /** Negates the expression. */ + not?: PlatformNamespaceFilter; + /** Filter by the object’s `platformFunctionDeploymentsByNamespaceId` relation. */ + platformFunctionDeploymentsByNamespaceId?: PlatformNamespaceToManyPlatformFunctionDeploymentFilter; + /** `platformFunctionDeploymentsByNamespaceId` exist. */ + platformFunctionDeploymentsByNamespaceIdExist?: boolean; + /** Filter by the object’s `platformResourcesByNamespaceId` relation. */ + platformResourcesByNamespaceId?: PlatformNamespaceToManyPlatformResourceFilter; + /** `platformResourcesByNamespaceId` exist. */ + platformResourcesByNamespaceIdExist?: boolean; + /** Filter by the object’s `platformResourceDefinitionsByNamespaceId` relation. */ + platformResourceDefinitionsByNamespaceId?: PlatformNamespaceToManyPlatformResourceDefinitionFilter; + /** `platformResourceDefinitionsByNamespaceId` exist. */ + platformResourceDefinitionsByNamespaceIdExist?: boolean; +} +export interface FunctionGraphFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `scopeId` field. */ + scopeId?: UUIDFilter; + /** Filter by the object’s `storeId` field. */ + storeId?: UUIDFilter; + /** Filter by the object’s `context` field. */ + context?: StringFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; /** Filter by the object’s `definitionsCommitId` field. */ definitionsCommitId?: UUIDFilter; - /** Filter by the object’s `tickCount` field. */ - tickCount?: IntFilter; + /** Filter by the object’s `isValid` field. */ + isValid?: BooleanFilter; + /** Filter by the object’s `validationErrors` field. */ + validationErrors?: JSONFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Checks for all expressions in this list. */ + and?: FunctionGraphFilter[]; + /** Checks for any expressions in this list. */ + or?: FunctionGraphFilter[]; + /** Negates the expression. */ + not?: FunctionGraphFilter; +} +export interface FunctionGraphExecutionNodeStateFilter { + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `executionId` field. */ + executionId?: UUIDFilter; + /** Filter by the object’s `scopeId` field. */ + scopeId?: UUIDFilter; + /** Filter by the object’s `nodeName` field. */ + nodeName?: StringFilter; + /** Filter by the object’s `nodePath` field. */ + nodePath?: StringListFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `startedAt` field. */ + startedAt?: DatetimeFilter; /** Filter by the object’s `completedAt` field. */ completedAt?: DatetimeFilter; - /** Filter by the object’s `maxTicks` field. */ - maxTicks?: IntFilter; - /** Filter by the object’s `maxPendingJobs` field. */ - maxPendingJobs?: IntFilter; - /** Filter by the object’s `timeoutAt` field. */ - timeoutAt?: DatetimeFilter; /** Filter by the object’s `errorCode` field. */ errorCode?: StringFilter; /** Filter by the object’s `errorMessage` field. */ errorMessage?: StringFilter; + /** Filter by the object’s `outputId` field. */ + outputId?: UUIDFilter; /** Checks for all expressions in this list. */ - and?: FunctionGraphExecutionFilter[]; + and?: FunctionGraphExecutionNodeStateFilter[]; /** Checks for any expressions in this list. */ - or?: FunctionGraphExecutionFilter[]; + or?: FunctionGraphExecutionNodeStateFilter[]; /** Negates the expression. */ - not?: FunctionGraphExecutionFilter; - /** Filter by the object’s `graph` relation. */ - graph?: FunctionGraphFilter; + not?: FunctionGraphExecutionNodeStateFilter; } -export interface FunctionDefinitionFilter { +export interface NamespaceFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; - /** Filter by the object’s `scope` field. */ - scope?: StringFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; - /** Filter by the object’s `taskIdentifier` field. */ - taskIdentifier?: StringFilter; + /** Filter by the object’s `namespaceName` field. */ + namespaceName?: StringFilter; /** Filter by the object’s `description` field. */ description?: StringFilter; - /** Filter by the object’s `isInvocable` field. */ - isInvocable?: BooleanFilter; - /** Filter by the object’s `maxAttempts` field. */ - maxAttempts?: IntFilter; - /** Filter by the object’s `priority` field. */ + /** Filter by the object’s `isActive` field. */ + isActive?: BooleanFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `lastError` field. */ + lastError?: StringFilter; + /** Filter by the object’s `labels` field. */ + labels?: JSONFilter; + /** Filter by the object’s `annotations` field. */ + annotations?: JSONFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `isManaged` field. */ + isManaged?: BooleanFilter; + /** Checks for all expressions in this list. */ + and?: NamespaceFilter[]; + /** Checks for any expressions in this list. */ + or?: NamespaceFilter[]; + /** Negates the expression. */ + not?: NamespaceFilter; + /** Filter by the object’s `functionDeployments` relation. */ + functionDeployments?: NamespaceToManyFunctionDeploymentFilter; + /** `functionDeployments` exist. */ + functionDeploymentsExist?: boolean; + /** Filter by the object’s `resources` relation. */ + resources?: NamespaceToManyResourceFilter; + /** `resources` exist. */ + resourcesExist?: boolean; + /** Filter by the object’s `resourceDefinitions` relation. */ + resourceDefinitions?: NamespaceToManyResourceDefinitionFilter; + /** `resourceDefinitions` exist. */ + resourceDefinitionsExist?: boolean; +} +export interface PlatformFunctionInvocationFilter { + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Filter by the object’s `taskIdentifier` field. */ + taskIdentifier?: StringFilter; + /** Filter by the object’s `payload` field. */ + payload?: JSONFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `result` field. */ + result?: JSONFilter; + /** Filter by the object’s `error` field. */ + error?: StringFilter; + /** Filter by the object’s `durationMs` field. */ + durationMs?: IntFilter; + /** Filter by the object’s `jobId` field. */ + jobId?: BigIntFilter; + /** Filter by the object’s `startedAt` field. */ + startedAt?: DatetimeFilter; + /** Filter by the object’s `completedAt` field. */ + completedAt?: DatetimeFilter; + /** Filter by the object’s `parentInvocationId` field. */ + parentInvocationId?: UUIDFilter; + /** Filter by the object’s `graphExecutionId` field. */ + graphExecutionId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: PlatformFunctionInvocationFilter[]; + /** Checks for any expressions in this list. */ + or?: PlatformFunctionInvocationFilter[]; + /** Negates the expression. */ + not?: PlatformFunctionInvocationFilter; +} +export interface FunctionInvocationFilter { + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `taskIdentifier` field. */ + taskIdentifier?: StringFilter; + /** Filter by the object’s `payload` field. */ + payload?: JSONFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `result` field. */ + result?: JSONFilter; + /** Filter by the object’s `error` field. */ + error?: StringFilter; + /** Filter by the object’s `durationMs` field. */ + durationMs?: IntFilter; + /** Filter by the object’s `jobId` field. */ + jobId?: BigIntFilter; + /** Filter by the object’s `startedAt` field. */ + startedAt?: DatetimeFilter; + /** Filter by the object’s `completedAt` field. */ + completedAt?: DatetimeFilter; + /** Filter by the object’s `parentInvocationId` field. */ + parentInvocationId?: UUIDFilter; + /** Filter by the object’s `graphExecutionId` field. */ + graphExecutionId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: FunctionInvocationFilter[]; + /** Checks for any expressions in this list. */ + or?: FunctionInvocationFilter[]; + /** Negates the expression. */ + not?: FunctionInvocationFilter; +} +export interface PlatformNamespaceEventFilter { + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; + /** Filter by the object’s `eventType` field. */ + eventType?: StringFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Filter by the object’s `message` field. */ + message?: StringFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Filter by the object’s `cpuMillicores` field. */ + cpuMillicores?: IntFilter; + /** Filter by the object’s `memoryBytes` field. */ + memoryBytes?: BigIntFilter; + /** Filter by the object’s `storageBytes` field. */ + storageBytes?: BigIntFilter; + /** Filter by the object’s `networkIngressBytes` field. */ + networkIngressBytes?: BigIntFilter; + /** Filter by the object’s `networkEgressBytes` field. */ + networkEgressBytes?: BigIntFilter; + /** Filter by the object’s `podCount` field. */ + podCount?: IntFilter; + /** Filter by the object’s `metrics` field. */ + metrics?: JSONFilter; + /** Checks for all expressions in this list. */ + and?: PlatformNamespaceEventFilter[]; + /** Checks for any expressions in this list. */ + or?: PlatformNamespaceEventFilter[]; + /** Negates the expression. */ + not?: PlatformNamespaceEventFilter; +} +export interface IntegrationProviderFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `slug` field. */ + slug?: StringFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `category` field. */ + category?: StringFilter; + /** Filter by the object’s `icon` field. */ + icon?: StringFilter; + /** Filter by the object’s `logo` field. */ + logo?: ConstructiveInternalTypeImageFilter; + /** Filter by the object’s `brand` field. */ + brand?: JSONFilter; + /** Checks for all expressions in this list. */ + and?: IntegrationProviderFilter[]; + /** Checks for any expressions in this list. */ + or?: IntegrationProviderFilter[]; + /** Negates the expression. */ + not?: IntegrationProviderFilter; +} +export interface NamespaceEventFilter { + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; + /** Filter by the object’s `eventType` field. */ + eventType?: StringFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Filter by the object’s `message` field. */ + message?: StringFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Filter by the object’s `cpuMillicores` field. */ + cpuMillicores?: IntFilter; + /** Filter by the object’s `memoryBytes` field. */ + memoryBytes?: BigIntFilter; + /** Filter by the object’s `storageBytes` field. */ + storageBytes?: BigIntFilter; + /** Filter by the object’s `networkIngressBytes` field. */ + networkIngressBytes?: BigIntFilter; + /** Filter by the object’s `networkEgressBytes` field. */ + networkEgressBytes?: BigIntFilter; + /** Filter by the object’s `podCount` field. */ + podCount?: IntFilter; + /** Filter by the object’s `metrics` field. */ + metrics?: JSONFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: NamespaceEventFilter[]; + /** Checks for any expressions in this list. */ + or?: NamespaceEventFilter[]; + /** Negates the expression. */ + not?: NamespaceEventFilter; +} +export interface FunctionGraphExecutionFilter { + /** Filter by the object’s `startedAt` field. */ + startedAt?: DatetimeFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `graphId` field. */ + graphId?: UUIDFilter; + /** Filter by the object’s `invocationId` field. */ + invocationId?: UUIDFilter; + /** Filter by the object’s `scopeId` field. */ + scopeId?: UUIDFilter; + /** Filter by the object’s `outputNode` field. */ + outputNode?: StringFilter; + /** Filter by the object’s `outputPort` field. */ + outputPort?: StringFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `inputPayload` field. */ + inputPayload?: JSONFilter; + /** Filter by the object’s `outputPayload` field. */ + outputPayload?: JSONFilter; + /** Filter by the object’s `nodeOutputs` field. */ + nodeOutputs?: JSONFilter; + /** Filter by the object’s `executionPlan` field. */ + executionPlan?: JSONFilter; + /** Filter by the object’s `currentWave` field. */ + currentWave?: IntFilter; + /** Filter by the object’s `parentExecutionId` field. */ + parentExecutionId?: UUIDFilter; + /** Filter by the object’s `parentNodeName` field. */ + parentNodeName?: StringFilter; + /** Filter by the object’s `definitionsCommitId` field. */ + definitionsCommitId?: UUIDFilter; + /** Filter by the object’s `tickCount` field. */ + tickCount?: IntFilter; + /** Filter by the object’s `completedAt` field. */ + completedAt?: DatetimeFilter; + /** Filter by the object’s `maxTicks` field. */ + maxTicks?: IntFilter; + /** Filter by the object’s `maxPendingJobs` field. */ + maxPendingJobs?: IntFilter; + /** Filter by the object’s `timeoutAt` field. */ + timeoutAt?: DatetimeFilter; + /** Filter by the object’s `lastProgressAt` field. */ + lastProgressAt?: DatetimeFilter; + /** Filter by the object’s `errorCode` field. */ + errorCode?: StringFilter; + /** Filter by the object’s `errorMessage` field. */ + errorMessage?: StringFilter; + /** Checks for all expressions in this list. */ + and?: FunctionGraphExecutionFilter[]; + /** Checks for any expressions in this list. */ + or?: FunctionGraphExecutionFilter[]; + /** Negates the expression. */ + not?: FunctionGraphExecutionFilter; + /** Filter by the object’s `graph` relation. */ + graph?: FunctionGraphFilter; +} +export interface PlatformFunctionDefinitionFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `taskIdentifier` field. */ + taskIdentifier?: StringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `isPublished` field. */ + isPublished?: BooleanFilter; + /** Filter by the object’s `accessChannels` field. */ + accessChannels?: StringListFilter; + /** Filter by the object’s `publishedAt` field. */ + publishedAt?: DatetimeFilter; + /** Filter by the object’s `maxAttempts` field. */ + maxAttempts?: IntFilter; + /** Filter by the object’s `priority` field. */ priority?: IntFilter; /** Filter by the object’s `queueName` field. */ queueName?: StringFilter; /** Filter by the object’s `runtime` field. */ runtime?: StringFilter; + /** Filter by the object’s `targetSchema` field. */ + targetSchema?: StringFilter; + /** Filter by the object’s `targetFunction` field. */ + targetFunction?: StringFilter; + /** Filter by the object’s `moduleTable` field. */ + moduleTable?: StringFilter; + /** Filter by the object’s `functionColumns` field. */ + functionColumns?: JSONFilter; + /** Filter by the object’s `payloadArgs` field. */ + payloadArgs?: JSONFilter; /** Filter by the object’s `image` field. */ image?: StringFilter; /** Filter by the object’s `concurrency` field. */ @@ -1857,6 +3464,8 @@ export interface FunctionDefinitionFilter { resources?: JSONFilter; /** Filter by the object’s `isBuiltIn` field. */ isBuiltIn?: BooleanFilter; + /** Filter by the object’s `integrations` field. */ + integrations?: StringListFilter; /** Filter by the object’s `requiredBuckets` field. */ requiredBuckets?: StringListFilter; /** Filter by the object’s `requiredModels` field. */ @@ -1874,21 +3483,109 @@ export interface FunctionDefinitionFilter { /** Filter by the object’s `category` field. */ category?: StringFilter; /** Checks for all expressions in this list. */ - and?: FunctionDefinitionFilter[]; + and?: PlatformFunctionDefinitionFilter[]; /** Checks for any expressions in this list. */ - or?: FunctionDefinitionFilter[]; + or?: PlatformFunctionDefinitionFilter[]; /** Negates the expression. */ - not?: FunctionDefinitionFilter; - /** Filter by the object’s `functionApiBindings` relation. */ - functionApiBindings?: FunctionDefinitionToManyFunctionApiBindingFilter; + not?: PlatformFunctionDefinitionFilter; + /** Filter by the object’s `platformFunctionApiBindingsByFunctionDefinitionId` relation. */ + platformFunctionApiBindingsByFunctionDefinitionId?: PlatformFunctionDefinitionToManyPlatformFunctionApiBindingFilter; + /** `platformFunctionApiBindingsByFunctionDefinitionId` exist. */ + platformFunctionApiBindingsByFunctionDefinitionIdExist?: boolean; +} +export interface FunctionDefinitionFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `taskIdentifier` field. */ + taskIdentifier?: StringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `isPublished` field. */ + isPublished?: BooleanFilter; + /** Filter by the object’s `accessChannels` field. */ + accessChannels?: StringListFilter; + /** Filter by the object’s `publishedAt` field. */ + publishedAt?: DatetimeFilter; + /** Filter by the object’s `maxAttempts` field. */ + maxAttempts?: IntFilter; + /** Filter by the object’s `priority` field. */ + priority?: IntFilter; + /** Filter by the object’s `queueName` field. */ + queueName?: StringFilter; + /** Filter by the object’s `runtime` field. */ + runtime?: StringFilter; + /** Filter by the object’s `targetSchema` field. */ + targetSchema?: StringFilter; + /** Filter by the object’s `targetFunction` field. */ + targetFunction?: StringFilter; + /** Filter by the object’s `moduleTable` field. */ + moduleTable?: StringFilter; + /** Filter by the object’s `functionColumns` field. */ + functionColumns?: JSONFilter; + /** Filter by the object’s `payloadArgs` field. */ + payloadArgs?: JSONFilter; + /** Filter by the object’s `image` field. */ + image?: StringFilter; + /** Filter by the object’s `concurrency` field. */ + concurrency?: IntFilter; + /** Filter by the object’s `scaleMin` field. */ + scaleMin?: IntFilter; + /** Filter by the object’s `scaleMax` field. */ + scaleMax?: IntFilter; + /** Filter by the object’s `timeoutSeconds` field. */ + timeoutSeconds?: IntFilter; + /** Filter by the object’s `resources` field. */ + resources?: JSONFilter; + /** Filter by the object’s `isBuiltIn` field. */ + isBuiltIn?: BooleanFilter; + /** Filter by the object’s `integrations` field. */ + integrations?: StringListFilter; + /** Filter by the object’s `requiredBuckets` field. */ + requiredBuckets?: StringListFilter; + /** Filter by the object’s `requiredModels` field. */ + requiredModels?: StringListFilter; + /** Filter by the object’s `inputs` field. */ + inputs?: JSONFilter; + /** Filter by the object’s `outputs` field. */ + outputs?: JSONFilter; + /** Filter by the object’s `props` field. */ + props?: JSONFilter; + /** Filter by the object’s `volatile` field. */ + volatile?: BooleanFilter; + /** Filter by the object’s `icon` field. */ + icon?: StringFilter; + /** Filter by the object’s `category` field. */ + category?: StringFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: FunctionDefinitionFilter[]; + /** Checks for any expressions in this list. */ + or?: FunctionDefinitionFilter[]; + /** Negates the expression. */ + not?: FunctionDefinitionFilter; + /** Filter by the object’s `functionApiBindings` relation. */ + functionApiBindings?: FunctionDefinitionToManyFunctionApiBindingFilter; /** `functionApiBindings` exist. */ functionApiBindingsExist?: boolean; - /** Filter by the object’s `functionDeployments` relation. */ - functionDeployments?: FunctionDefinitionToManyFunctionDeploymentFilter; - /** `functionDeployments` exist. */ - functionDeploymentsExist?: boolean; } // ============ OrderBy Types ============ +export type InfraGetAllRecordsOrderBy = + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NATURAL' + | 'PATH_ASC' + | 'PATH_DESC' + | 'DATA_ASC' + | 'DATA_DESC'; export type GetAllRecordsOrderBy = | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -1897,6 +3594,34 @@ export type GetAllRecordsOrderBy = | 'PATH_DESC' | 'DATA_ASC' | 'DATA_DESC'; +export type InfraRefOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'SCOPE_ID_ASC' + | 'SCOPE_ID_DESC' + | 'STORE_ID_ASC' + | 'STORE_ID_DESC' + | 'COMMIT_ID_ASC' + | 'COMMIT_ID_DESC'; +export type InfraStoreOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'SCOPE_ID_ASC' + | 'SCOPE_ID_DESC' + | 'HASH_ASC' + | 'HASH_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC'; export type FunctionApiBindingOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -1911,7 +3636,99 @@ export type FunctionApiBindingOrderBy = | 'ALIAS_DESC' | 'CONFIG_ASC' | 'CONFIG_DESC'; -export type FunctionDeploymentOrderBy = +export type FunctionGraphRefOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'SCOPE_ID_ASC' + | 'SCOPE_ID_DESC' + | 'STORE_ID_ASC' + | 'STORE_ID_DESC' + | 'COMMIT_ID_ASC' + | 'COMMIT_ID_DESC'; +export type FunctionGraphStoreOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'SCOPE_ID_ASC' + | 'SCOPE_ID_DESC' + | 'HASH_ASC' + | 'HASH_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC'; +export type PlatformFunctionApiBindingOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'FUNCTION_DEFINITION_ID_ASC' + | 'FUNCTION_DEFINITION_ID_DESC' + | 'API_ID_ASC' + | 'API_ID_DESC' + | 'ALIAS_ASC' + | 'ALIAS_DESC' + | 'CONFIG_ASC' + | 'CONFIG_DESC'; +export type PlatformResourcesRequirementsStateOrderBy = + | 'NATURAL' + | 'RESOURCE_ID_ASC' + | 'RESOURCE_ID_DESC' + | 'SLUG_ASC' + | 'SLUG_DESC' + | 'SECRETS_HASH_ASC' + | 'SECRETS_HASH_DESC' + | 'CONFIG_HASH_ASC' + | 'CONFIG_HASH_DESC' + | 'REQUIREMENTS_HASH_ASC' + | 'REQUIREMENTS_HASH_DESC' + | 'SECRETS_OBJECT_NAME_ASC' + | 'SECRETS_OBJECT_NAME_DESC' + | 'CONFIG_OBJECT_NAME_ASC' + | 'CONFIG_OBJECT_NAME_DESC'; +export type ResourcesRequirementsStateOrderBy = + | 'NATURAL' + | 'RESOURCE_ID_ASC' + | 'RESOURCE_ID_DESC' + | 'SLUG_ASC' + | 'SLUG_DESC' + | 'SECRETS_HASH_ASC' + | 'SECRETS_HASH_DESC' + | 'CONFIG_HASH_ASC' + | 'CONFIG_HASH_DESC' + | 'REQUIREMENTS_HASH_ASC' + | 'REQUIREMENTS_HASH_DESC' + | 'SECRETS_OBJECT_NAME_ASC' + | 'SECRETS_OBJECT_NAME_DESC' + | 'CONFIG_OBJECT_NAME_ASC' + | 'CONFIG_OBJECT_NAME_DESC'; +export type PlatformResourceStatusCheckOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'RESOURCE_ID_ASC' + | 'RESOURCE_ID_DESC' + | 'REQUESTED_BY_ASC' + | 'REQUESTED_BY_DESC' + | 'REQUESTED_AT_ASC' + | 'REQUESTED_AT_DESC' + | 'COMPLETED_AT_ASC' + | 'COMPLETED_AT_DESC' + | 'STATUS_ASC' + | 'STATUS_DESC' + | 'RESULT_ASC' + | 'RESULT_DESC'; +export type PlatformFunctionDeploymentOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -1921,8 +3738,6 @@ export type FunctionDeploymentOrderBy = | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' - | 'FUNCTION_DEFINITION_ID_ASC' - | 'FUNCTION_DEFINITION_ID_DESC' | 'NAMESPACE_ID_ASC' | 'NAMESPACE_ID_DESC' | 'STATUS_ASC' @@ -1935,6 +3750,10 @@ export type FunctionDeploymentOrderBy = | 'REVISION_DESC' | 'IMAGE_ASC' | 'IMAGE_DESC' + | 'IMAGE_VERSION_ASC' + | 'IMAGE_VERSION_DESC' + | 'HANDLER_NAME_ASC' + | 'HANDLER_NAME_DESC' | 'CONCURRENCY_ASC' | 'CONCURRENCY_DESC' | 'SCALE_MIN_ASC' @@ -1954,10 +3773,8 @@ export type FunctionDeploymentOrderBy = | 'LABELS_ASC' | 'LABELS_DESC' | 'ANNOTATIONS_ASC' - | 'ANNOTATIONS_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC'; -export type ResourceOrderBy = + | 'ANNOTATIONS_DESC'; +export type PlatformResourceOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -1993,34 +3810,66 @@ export type ResourceOrderBy = | 'LABELS_DESC' | 'ANNOTATIONS_ASC' | 'ANNOTATIONS_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC'; -export type FunctionGraphRefOrderBy = + | 'REQUIRED_SECRETS_ASC' + | 'REQUIRED_SECRETS_DESC' + | 'REQUIRED_CONFIGS_ASC' + | 'REQUIRED_CONFIGS_DESC' + | 'INTEGRATIONS_ASC' + | 'INTEGRATIONS_DESC' + | 'RESOURCE_DEFINITION_ID_ASC' + | 'RESOURCE_DEFINITION_ID_DESC'; +export type PlatformResourceDefinitionOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'CREATED_BY_ASC' + | 'CREATED_BY_DESC' + | 'UPDATED_BY_ASC' + | 'UPDATED_BY_DESC' + | 'NAMESPACE_ID_ASC' + | 'NAMESPACE_ID_DESC' + | 'KIND_ASC' + | 'KIND_DESC' | 'NAME_ASC' | 'NAME_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'STORE_ID_ASC' - | 'STORE_ID_DESC' - | 'COMMIT_ID_ASC' - | 'COMMIT_ID_DESC'; -export type FunctionGraphStoreOrderBy = + | 'SLUG_ASC' + | 'SLUG_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'DEFAULT_SPEC_ASC' + | 'DEFAULT_SPEC_DESC' + | 'REQUIRED_SECRETS_ASC' + | 'REQUIRED_SECRETS_DESC' + | 'REQUIRED_CONFIGS_ASC' + | 'REQUIRED_CONFIGS_DESC' + | 'INTEGRATIONS_ASC' + | 'INTEGRATIONS_DESC' + | 'LABELS_ASC' + | 'LABELS_DESC' + | 'ANNOTATIONS_ASC' + | 'ANNOTATIONS_DESC' + | 'STEP_UP_MIN_AGE_ASC' + | 'STEP_UP_MIN_AGE_DESC'; +export type InfraObjectOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'HASH_ASC' - | 'HASH_DESC' + | 'SCOPE_ID_ASC' + | 'SCOPE_ID_DESC' + | 'KIDS_ASC' + | 'KIDS_DESC' + | 'KTREE_ASC' + | 'KTREE_DESC' + | 'DATA_ASC' + | 'DATA_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC'; export type FunctionGraphObjectOrderBy = @@ -2029,8 +3878,8 @@ export type FunctionGraphObjectOrderBy = | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' + | 'SCOPE_ID_ASC' + | 'SCOPE_ID_DESC' | 'KIDS_ASC' | 'KIDS_DESC' | 'KTREE_ASC' @@ -2039,7 +3888,7 @@ export type FunctionGraphObjectOrderBy = | 'DATA_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC'; -export type FunctionDeploymentEventOrderBy = +export type PlatformFunctionDeploymentEventOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -2056,30 +3905,8 @@ export type FunctionDeploymentEventOrderBy = | 'MESSAGE_ASC' | 'MESSAGE_DESC' | 'METADATA_ASC' - | 'METADATA_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC'; -export type OrgFunctionExecutionLogOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'INVOCATION_ID_ASC' - | 'INVOCATION_ID_DESC' - | 'TASK_IDENTIFIER_ASC' - | 'TASK_IDENTIFIER_DESC' - | 'LOG_LEVEL_ASC' - | 'LOG_LEVEL_DESC' - | 'MESSAGE_ASC' - | 'MESSAGE_DESC' - | 'METADATA_ASC' - | 'METADATA_DESC' - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC'; -export type ResourceEventOrderBy = + | 'METADATA_DESC'; +export type PlatformResourceEventOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -2096,46 +3923,28 @@ export type ResourceEventOrderBy = | 'MESSAGE_ASC' | 'MESSAGE_DESC' | 'METADATA_ASC' - | 'METADATA_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC'; -export type FunctionGraphExecutionOutputOrderBy = + | 'METADATA_DESC'; +export type ResourceStatusCheckOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' | 'ID_ASC' | 'ID_DESC' + | 'RESOURCE_ID_ASC' + | 'RESOURCE_ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' - | 'HASH_ASC' - | 'HASH_DESC' - | 'DATA_ASC' - | 'DATA_DESC'; -export type FunctionGraphCommitOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'MESSAGE_ASC' - | 'MESSAGE_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'STORE_ID_ASC' - | 'STORE_ID_DESC' - | 'PARENT_IDS_ASC' - | 'PARENT_IDS_DESC' - | 'AUTHOR_ID_ASC' - | 'AUTHOR_ID_DESC' - | 'COMMITTER_ID_ASC' - | 'COMMITTER_ID_DESC' - | 'TREE_ID_ASC' - | 'TREE_ID_DESC' - | 'DATE_ASC' - | 'DATE_DESC'; -export type SecretDefinitionOrderBy = + | 'REQUESTED_BY_ASC' + | 'REQUESTED_BY_DESC' + | 'REQUESTED_AT_ASC' + | 'REQUESTED_AT_DESC' + | 'COMPLETED_AT_ASC' + | 'COMPLETED_AT_DESC' + | 'STATUS_ASC' + | 'STATUS_DESC' + | 'RESULT_ASC' + | 'RESULT_DESC'; +export type FunctionDeploymentOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -2145,97 +3954,91 @@ export type SecretDefinitionOrderBy = | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC' - | 'IS_BUILT_IN_ASC' - | 'IS_BUILT_IN_DESC' + | 'NAMESPACE_ID_ASC' + | 'NAMESPACE_ID_DESC' + | 'STATUS_ASC' + | 'STATUS_DESC' + | 'SERVICE_URL_ASC' + | 'SERVICE_URL_DESC' + | 'SERVICE_NAME_ASC' + | 'SERVICE_NAME_DESC' + | 'REVISION_ASC' + | 'REVISION_DESC' + | 'IMAGE_ASC' + | 'IMAGE_DESC' + | 'IMAGE_VERSION_ASC' + | 'IMAGE_VERSION_DESC' + | 'HANDLER_NAME_ASC' + | 'HANDLER_NAME_DESC' + | 'CONCURRENCY_ASC' + | 'CONCURRENCY_DESC' + | 'SCALE_MIN_ASC' + | 'SCALE_MIN_DESC' + | 'SCALE_MAX_ASC' + | 'SCALE_MAX_DESC' + | 'TIMEOUT_SECONDS_ASC' + | 'TIMEOUT_SECONDS_DESC' + | 'RESOURCES_ASC' + | 'RESOURCES_DESC' + | 'LAST_ERROR_ASC' + | 'LAST_ERROR_DESC' + | 'LAST_ERROR_AT_ASC' + | 'LAST_ERROR_AT_DESC' + | 'ERROR_COUNT_ASC' + | 'ERROR_COUNT_DESC' | 'LABELS_ASC' | 'LABELS_DESC' | 'ANNOTATIONS_ASC' | 'ANNOTATIONS_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC'; -export type FunctionExecutionLogOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'INVOCATION_ID_ASC' - | 'INVOCATION_ID_DESC' - | 'TASK_IDENTIFIER_ASC' - | 'TASK_IDENTIFIER_DESC' - | 'LOG_LEVEL_ASC' - | 'LOG_LEVEL_DESC' - | 'MESSAGE_ASC' - | 'MESSAGE_DESC' - | 'METADATA_ASC' - | 'METADATA_DESC' - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC'; -export type FunctionGraphOrderBy = +export type ResourceOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'STORE_ID_ASC' - | 'STORE_ID_DESC' - | 'CONTEXT_ASC' - | 'CONTEXT_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC' - | 'DEFINITIONS_COMMIT_ID_ASC' - | 'DEFINITIONS_COMMIT_ID_DESC' - | 'IS_VALID_ASC' - | 'IS_VALID_DESC' - | 'VALIDATION_ERRORS_ASC' - | 'VALIDATION_ERRORS_DESC' - | 'CREATED_BY_ASC' - | 'CREATED_BY_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -export type FunctionGraphExecutionNodeStateOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'EXECUTION_ID_ASC' - | 'EXECUTION_ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'NODE_NAME_ASC' - | 'NODE_NAME_DESC' - | 'NODE_PATH_ASC' - | 'NODE_PATH_DESC' + | 'UPDATED_AT_DESC' + | 'CREATED_BY_ASC' + | 'CREATED_BY_DESC' + | 'UPDATED_BY_ASC' + | 'UPDATED_BY_DESC' + | 'NAMESPACE_ID_ASC' + | 'NAMESPACE_ID_DESC' + | 'KIND_ASC' + | 'KIND_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'SLUG_ASC' + | 'SLUG_DESC' + | 'SPEC_ASC' + | 'SPEC_DESC' | 'STATUS_ASC' | 'STATUS_DESC' - | 'STARTED_AT_ASC' - | 'STARTED_AT_DESC' - | 'COMPLETED_AT_ASC' - | 'COMPLETED_AT_DESC' - | 'ERROR_CODE_ASC' - | 'ERROR_CODE_DESC' - | 'ERROR_MESSAGE_ASC' - | 'ERROR_MESSAGE_DESC' - | 'OUTPUT_ID_ASC' - | 'OUTPUT_ID_DESC'; -export type PlatformNamespaceOrderBy = + | 'STATUS_OBSERVED_ASC' + | 'STATUS_OBSERVED_DESC' + | 'LAST_ERROR_ASC' + | 'LAST_ERROR_DESC' + | 'ERROR_COUNT_ASC' + | 'ERROR_COUNT_DESC' + | 'LABELS_ASC' + | 'LABELS_DESC' + | 'ANNOTATIONS_ASC' + | 'ANNOTATIONS_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'REQUIRED_SECRETS_ASC' + | 'REQUIRED_SECRETS_DESC' + | 'REQUIRED_CONFIGS_ASC' + | 'REQUIRED_CONFIGS_DESC' + | 'INTEGRATIONS_ASC' + | 'INTEGRATIONS_DESC' + | 'RESOURCE_DEFINITION_ID_ASC' + | 'RESOURCE_DEFINITION_ID_DESC'; +export type ResourceDefinitionOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -2245,27 +4048,37 @@ export type PlatformNamespaceOrderBy = | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' + | 'CREATED_BY_ASC' + | 'CREATED_BY_DESC' + | 'UPDATED_BY_ASC' + | 'UPDATED_BY_DESC' + | 'NAMESPACE_ID_ASC' + | 'NAMESPACE_ID_DESC' + | 'KIND_ASC' + | 'KIND_DESC' | 'NAME_ASC' | 'NAME_DESC' - | 'NAMESPACE_NAME_ASC' - | 'NAMESPACE_NAME_DESC' + | 'SLUG_ASC' + | 'SLUG_DESC' | 'DESCRIPTION_ASC' | 'DESCRIPTION_DESC' - | 'IS_ACTIVE_ASC' - | 'IS_ACTIVE_DESC' + | 'DEFAULT_SPEC_ASC' + | 'DEFAULT_SPEC_DESC' + | 'REQUIRED_SECRETS_ASC' + | 'REQUIRED_SECRETS_DESC' + | 'REQUIRED_CONFIGS_ASC' + | 'REQUIRED_CONFIGS_DESC' + | 'INTEGRATIONS_ASC' + | 'INTEGRATIONS_DESC' | 'LABELS_ASC' | 'LABELS_DESC' | 'ANNOTATIONS_ASC' | 'ANNOTATIONS_DESC' + | 'STEP_UP_MIN_AGE_ASC' + | 'STEP_UP_MIN_AGE_DESC' | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'SOURCE_DATABASE_ID_ASC' - | 'SOURCE_DATABASE_ID_DESC' - | 'SOURCE_SCOPE_ASC' - | 'SOURCE_SCOPE_DESC' - | 'IS_MANAGED_ASC' - | 'IS_MANAGED_DESC'; -export type OrgFunctionInvocationOrderBy = + | 'DATABASE_ID_DESC'; +export type FunctionDeploymentEventOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -2273,31 +4086,19 @@ export type OrgFunctionInvocationOrderBy = | 'CREATED_AT_DESC' | 'ID_ASC' | 'ID_DESC' + | 'DEPLOYMENT_ID_ASC' + | 'DEPLOYMENT_ID_DESC' + | 'EVENT_TYPE_ASC' + | 'EVENT_TYPE_DESC' | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' - | 'TASK_IDENTIFIER_ASC' - | 'TASK_IDENTIFIER_DESC' - | 'PAYLOAD_ASC' - | 'PAYLOAD_DESC' - | 'STATUS_ASC' - | 'STATUS_DESC' - | 'RESULT_ASC' - | 'RESULT_DESC' - | 'ERROR_ASC' - | 'ERROR_DESC' - | 'DURATION_MS_ASC' - | 'DURATION_MS_DESC' - | 'JOB_ID_ASC' - | 'JOB_ID_DESC' - | 'STARTED_AT_ASC' - | 'STARTED_AT_DESC' - | 'COMPLETED_AT_ASC' - | 'COMPLETED_AT_DESC' - | 'PARENT_INVOCATION_ID_ASC' - | 'PARENT_INVOCATION_ID_DESC' - | 'GRAPH_EXECUTION_ID_ASC' - | 'GRAPH_EXECUTION_ID_DESC'; -export type FunctionInvocationOrderBy = + | 'MESSAGE_ASC' + | 'MESSAGE_DESC' + | 'METADATA_ASC' + | 'METADATA_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC'; +export type PlatformFunctionExecutionLogOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -2305,33 +4106,19 @@ export type FunctionInvocationOrderBy = | 'CREATED_AT_DESC' | 'ID_ASC' | 'ID_DESC' - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' + | 'INVOCATION_ID_ASC' + | 'INVOCATION_ID_DESC' | 'TASK_IDENTIFIER_ASC' | 'TASK_IDENTIFIER_DESC' - | 'PAYLOAD_ASC' - | 'PAYLOAD_DESC' - | 'STATUS_ASC' - | 'STATUS_DESC' - | 'RESULT_ASC' - | 'RESULT_DESC' - | 'ERROR_ASC' - | 'ERROR_DESC' - | 'DURATION_MS_ASC' - | 'DURATION_MS_DESC' - | 'JOB_ID_ASC' - | 'JOB_ID_DESC' - | 'STARTED_AT_ASC' - | 'STARTED_AT_DESC' - | 'COMPLETED_AT_ASC' - | 'COMPLETED_AT_DESC' - | 'PARENT_INVOCATION_ID_ASC' - | 'PARENT_INVOCATION_ID_DESC' - | 'GRAPH_EXECUTION_ID_ASC' - | 'GRAPH_EXECUTION_ID_DESC'; -export type PlatformNamespaceEventOrderBy = + | 'LOG_LEVEL_ASC' + | 'LOG_LEVEL_DESC' + | 'MESSAGE_ASC' + | 'MESSAGE_DESC' + | 'METADATA_ASC' + | 'METADATA_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC'; +export type ResourceEventOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -2339,8 +4126,8 @@ export type PlatformNamespaceEventOrderBy = | 'CREATED_AT_DESC' | 'ID_ASC' | 'ID_DESC' - | 'NAMESPACE_ID_ASC' - | 'NAMESPACE_ID_DESC' + | 'RESOURCE_ID_ASC' + | 'RESOURCE_ID_DESC' | 'EVENT_TYPE_ASC' | 'EVENT_TYPE_DESC' | 'ACTOR_ID_ASC' @@ -2349,73 +4136,243 @@ export type PlatformNamespaceEventOrderBy = | 'MESSAGE_DESC' | 'METADATA_ASC' | 'METADATA_DESC' - | 'CPU_MILLICORES_ASC' - | 'CPU_MILLICORES_DESC' - | 'MEMORY_BYTES_ASC' - | 'MEMORY_BYTES_DESC' - | 'STORAGE_BYTES_ASC' - | 'STORAGE_BYTES_DESC' - | 'NETWORK_INGRESS_BYTES_ASC' - | 'NETWORK_INGRESS_BYTES_DESC' - | 'NETWORK_EGRESS_BYTES_ASC' - | 'NETWORK_EGRESS_BYTES_DESC' - | 'POD_COUNT_ASC' - | 'POD_COUNT_DESC' - | 'METRICS_ASC' - | 'METRICS_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC'; -export type FunctionGraphExecutionOrderBy = +export type FunctionGraphExecutionOutputOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'STARTED_AT_ASC' - | 'STARTED_AT_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'SCOPE_ID_ASC' + | 'SCOPE_ID_DESC' + | 'HASH_ASC' + | 'HASH_DESC' + | 'DATA_ASC' + | 'DATA_DESC'; +export type InfraCommitOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'MESSAGE_ASC' + | 'MESSAGE_DESC' + | 'SCOPE_ID_ASC' + | 'SCOPE_ID_DESC' + | 'STORE_ID_ASC' + | 'STORE_ID_DESC' + | 'PARENT_IDS_ASC' + | 'PARENT_IDS_DESC' + | 'AUTHOR_ID_ASC' + | 'AUTHOR_ID_DESC' + | 'COMMITTER_ID_ASC' + | 'COMMITTER_ID_DESC' + | 'TREE_ID_ASC' + | 'TREE_ID_DESC' + | 'DATE_ASC' + | 'DATE_DESC'; +export type FunctionGraphCommitOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'MESSAGE_ASC' + | 'MESSAGE_DESC' + | 'SCOPE_ID_ASC' + | 'SCOPE_ID_DESC' + | 'STORE_ID_ASC' + | 'STORE_ID_DESC' + | 'PARENT_IDS_ASC' + | 'PARENT_IDS_DESC' + | 'AUTHOR_ID_ASC' + | 'AUTHOR_ID_DESC' + | 'COMMITTER_ID_ASC' + | 'COMMITTER_ID_DESC' + | 'TREE_ID_ASC' + | 'TREE_ID_DESC' + | 'DATE_ASC' + | 'DATE_DESC'; +export type FunctionExecutionLogOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' | 'ID_ASC' | 'ID_DESC' - | 'GRAPH_ID_ASC' - | 'GRAPH_ID_DESC' | 'INVOCATION_ID_ASC' | 'INVOCATION_ID_DESC' + | 'TASK_IDENTIFIER_ASC' + | 'TASK_IDENTIFIER_DESC' + | 'LOG_LEVEL_ASC' + | 'LOG_LEVEL_DESC' + | 'MESSAGE_ASC' + | 'MESSAGE_DESC' + | 'METADATA_ASC' + | 'METADATA_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'OUTPUT_NODE_ASC' - | 'OUTPUT_NODE_DESC' - | 'OUTPUT_PORT_ASC' - | 'OUTPUT_PORT_DESC' + | 'DATABASE_ID_DESC'; +export type PlatformResourcesResolvedRequirementOrderBy = + | 'NATURAL' + | 'RESOURCE_ID_ASC' + | 'RESOURCE_ID_DESC' + | 'SLUG_ASC' + | 'SLUG_DESC' + | 'NAMESPACE_ID_ASC' + | 'NAMESPACE_ID_DESC' + | 'REQUIREMENT_KIND_ASC' + | 'REQUIREMENT_KIND_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'REQUIRED_ASC' + | 'REQUIRED_DESC' + | 'ATOM_ID_ASC' + | 'ATOM_ID_DESC' + | 'PRESENT_ASC' + | 'PRESENT_DESC' + | 'SECRETS_OBJECT_NAME_ASC' + | 'SECRETS_OBJECT_NAME_DESC' + | 'CONFIG_OBJECT_NAME_ASC' + | 'CONFIG_OBJECT_NAME_DESC'; +export type ResourcesResolvedRequirementOrderBy = + | 'NATURAL' + | 'RESOURCE_ID_ASC' + | 'RESOURCE_ID_DESC' + | 'SLUG_ASC' + | 'SLUG_DESC' + | 'NAMESPACE_ID_ASC' + | 'NAMESPACE_ID_DESC' + | 'REQUIREMENT_KIND_ASC' + | 'REQUIREMENT_KIND_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'REQUIRED_ASC' + | 'REQUIRED_DESC' + | 'ATOM_ID_ASC' + | 'ATOM_ID_DESC' + | 'PRESENT_ASC' + | 'PRESENT_DESC' + | 'SECRETS_OBJECT_NAME_ASC' + | 'SECRETS_OBJECT_NAME_DESC' + | 'CONFIG_OBJECT_NAME_ASC' + | 'CONFIG_OBJECT_NAME_DESC'; +export type DbPresetOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'STORE_ID_ASC' + | 'STORE_ID_DESC' + | 'SLUG_ASC' + | 'SLUG_DESC' + | 'DEFINITION_ASC' + | 'DEFINITION_DESC' + | 'COMMIT_ID_ASC' + | 'COMMIT_ID_DESC' + | 'MODULES_HASH_ASC' + | 'MODULES_HASH_DESC' + | 'LABEL_ASC' + | 'LABEL_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'ACTIVE_ASC' + | 'ACTIVE_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +export type PlatformNamespaceOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'NAMESPACE_NAME_ASC' + | 'NAMESPACE_NAME_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'IS_ACTIVE_ASC' + | 'IS_ACTIVE_DESC' | 'STATUS_ASC' | 'STATUS_DESC' - | 'INPUT_PAYLOAD_ASC' - | 'INPUT_PAYLOAD_DESC' - | 'OUTPUT_PAYLOAD_ASC' - | 'OUTPUT_PAYLOAD_DESC' - | 'NODE_OUTPUTS_ASC' - | 'NODE_OUTPUTS_DESC' - | 'EXECUTION_PLAN_ASC' - | 'EXECUTION_PLAN_DESC' - | 'CURRENT_WAVE_ASC' - | 'CURRENT_WAVE_DESC' - | 'PARENT_EXECUTION_ID_ASC' - | 'PARENT_EXECUTION_ID_DESC' - | 'PARENT_NODE_NAME_ASC' - | 'PARENT_NODE_NAME_DESC' + | 'LAST_ERROR_ASC' + | 'LAST_ERROR_DESC' + | 'LABELS_ASC' + | 'LABELS_DESC' + | 'ANNOTATIONS_ASC' + | 'ANNOTATIONS_DESC' + | 'IS_MANAGED_ASC' + | 'IS_MANAGED_DESC'; +export type FunctionGraphOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'SCOPE_ID_ASC' + | 'SCOPE_ID_DESC' + | 'STORE_ID_ASC' + | 'STORE_ID_DESC' + | 'CONTEXT_ASC' + | 'CONTEXT_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' | 'DEFINITIONS_COMMIT_ID_ASC' | 'DEFINITIONS_COMMIT_ID_DESC' - | 'TICK_COUNT_ASC' - | 'TICK_COUNT_DESC' + | 'IS_VALID_ASC' + | 'IS_VALID_DESC' + | 'VALIDATION_ERRORS_ASC' + | 'VALIDATION_ERRORS_DESC' + | 'CREATED_BY_ASC' + | 'CREATED_BY_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +export type FunctionGraphExecutionNodeStateOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'EXECUTION_ID_ASC' + | 'EXECUTION_ID_DESC' + | 'SCOPE_ID_ASC' + | 'SCOPE_ID_DESC' + | 'NODE_NAME_ASC' + | 'NODE_NAME_DESC' + | 'NODE_PATH_ASC' + | 'NODE_PATH_DESC' + | 'STATUS_ASC' + | 'STATUS_DESC' + | 'STARTED_AT_ASC' + | 'STARTED_AT_DESC' | 'COMPLETED_AT_ASC' | 'COMPLETED_AT_DESC' - | 'MAX_TICKS_ASC' - | 'MAX_TICKS_DESC' - | 'MAX_PENDING_JOBS_ASC' - | 'MAX_PENDING_JOBS_DESC' - | 'TIMEOUT_AT_ASC' - | 'TIMEOUT_AT_DESC' | 'ERROR_CODE_ASC' | 'ERROR_CODE_DESC' | 'ERROR_MESSAGE_ASC' - | 'ERROR_MESSAGE_DESC'; -export type FunctionDefinitionOrderBy = + | 'ERROR_MESSAGE_DESC' + | 'OUTPUT_ID_ASC' + | 'OUTPUT_ID_DESC'; +export type NamespaceOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -2425,2193 +4382,5043 @@ export type FunctionDefinitionOrderBy = | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' - | 'SCOPE_ASC' - | 'SCOPE_DESC' | 'NAME_ASC' | 'NAME_DESC' - | 'TASK_IDENTIFIER_ASC' - | 'TASK_IDENTIFIER_DESC' + | 'NAMESPACE_NAME_ASC' + | 'NAMESPACE_NAME_DESC' | 'DESCRIPTION_ASC' | 'DESCRIPTION_DESC' - | 'IS_INVOCABLE_ASC' - | 'IS_INVOCABLE_DESC' - | 'MAX_ATTEMPTS_ASC' - | 'MAX_ATTEMPTS_DESC' - | 'PRIORITY_ASC' - | 'PRIORITY_DESC' - | 'QUEUE_NAME_ASC' - | 'QUEUE_NAME_DESC' - | 'RUNTIME_ASC' - | 'RUNTIME_DESC' - | 'IMAGE_ASC' - | 'IMAGE_DESC' - | 'CONCURRENCY_ASC' - | 'CONCURRENCY_DESC' - | 'SCALE_MIN_ASC' - | 'SCALE_MIN_DESC' - | 'SCALE_MAX_ASC' - | 'SCALE_MAX_DESC' - | 'TIMEOUT_SECONDS_ASC' - | 'TIMEOUT_SECONDS_DESC' - | 'RESOURCES_ASC' - | 'RESOURCES_DESC' - | 'IS_BUILT_IN_ASC' - | 'IS_BUILT_IN_DESC' - | 'REQUIRED_SECRETS_ASC' - | 'REQUIRED_SECRETS_DESC' - | 'REQUIRED_CONFIGS_ASC' - | 'REQUIRED_CONFIGS_DESC' - | 'REQUIRED_BUCKETS_ASC' - | 'REQUIRED_BUCKETS_DESC' - | 'REQUIRED_MODELS_ASC' - | 'REQUIRED_MODELS_DESC' - | 'INPUTS_ASC' - | 'INPUTS_DESC' - | 'OUTPUTS_ASC' - | 'OUTPUTS_DESC' - | 'PROPS_ASC' - | 'PROPS_DESC' - | 'VOLATILE_ASC' - | 'VOLATILE_DESC' + | 'IS_ACTIVE_ASC' + | 'IS_ACTIVE_DESC' + | 'STATUS_ASC' + | 'STATUS_DESC' + | 'LAST_ERROR_ASC' + | 'LAST_ERROR_DESC' + | 'LABELS_ASC' + | 'LABELS_DESC' + | 'ANNOTATIONS_ASC' + | 'ANNOTATIONS_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'IS_MANAGED_ASC' + | 'IS_MANAGED_DESC'; +export type PlatformFunctionInvocationOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'TASK_IDENTIFIER_ASC' + | 'TASK_IDENTIFIER_DESC' + | 'PAYLOAD_ASC' + | 'PAYLOAD_DESC' + | 'STATUS_ASC' + | 'STATUS_DESC' + | 'RESULT_ASC' + | 'RESULT_DESC' + | 'ERROR_ASC' + | 'ERROR_DESC' + | 'DURATION_MS_ASC' + | 'DURATION_MS_DESC' + | 'JOB_ID_ASC' + | 'JOB_ID_DESC' + | 'STARTED_AT_ASC' + | 'STARTED_AT_DESC' + | 'COMPLETED_AT_ASC' + | 'COMPLETED_AT_DESC' + | 'PARENT_INVOCATION_ID_ASC' + | 'PARENT_INVOCATION_ID_DESC' + | 'GRAPH_EXECUTION_ID_ASC' + | 'GRAPH_EXECUTION_ID_DESC'; +export type FunctionInvocationOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'TASK_IDENTIFIER_ASC' + | 'TASK_IDENTIFIER_DESC' + | 'PAYLOAD_ASC' + | 'PAYLOAD_DESC' + | 'STATUS_ASC' + | 'STATUS_DESC' + | 'RESULT_ASC' + | 'RESULT_DESC' + | 'ERROR_ASC' + | 'ERROR_DESC' + | 'DURATION_MS_ASC' + | 'DURATION_MS_DESC' + | 'JOB_ID_ASC' + | 'JOB_ID_DESC' + | 'STARTED_AT_ASC' + | 'STARTED_AT_DESC' + | 'COMPLETED_AT_ASC' + | 'COMPLETED_AT_DESC' + | 'PARENT_INVOCATION_ID_ASC' + | 'PARENT_INVOCATION_ID_DESC' + | 'GRAPH_EXECUTION_ID_ASC' + | 'GRAPH_EXECUTION_ID_DESC'; +export type PlatformNamespaceEventOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAMESPACE_ID_ASC' + | 'NAMESPACE_ID_DESC' + | 'EVENT_TYPE_ASC' + | 'EVENT_TYPE_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'MESSAGE_ASC' + | 'MESSAGE_DESC' + | 'METADATA_ASC' + | 'METADATA_DESC' + | 'CPU_MILLICORES_ASC' + | 'CPU_MILLICORES_DESC' + | 'MEMORY_BYTES_ASC' + | 'MEMORY_BYTES_DESC' + | 'STORAGE_BYTES_ASC' + | 'STORAGE_BYTES_DESC' + | 'NETWORK_INGRESS_BYTES_ASC' + | 'NETWORK_INGRESS_BYTES_DESC' + | 'NETWORK_EGRESS_BYTES_ASC' + | 'NETWORK_EGRESS_BYTES_DESC' + | 'POD_COUNT_ASC' + | 'POD_COUNT_DESC' + | 'METRICS_ASC' + | 'METRICS_DESC'; +export type IntegrationProviderOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'SLUG_ASC' + | 'SLUG_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'CATEGORY_ASC' + | 'CATEGORY_DESC' | 'ICON_ASC' | 'ICON_DESC' - | 'CATEGORY_ASC' - | 'CATEGORY_DESC'; -// ============ CRUD Input Types ============ -export interface CreateGetAllRecordInput { + | 'LOGO_ASC' + | 'LOGO_DESC' + | 'BRAND_ASC' + | 'BRAND_DESC' + | 'REQUIRED_SECRETS_ASC' + | 'REQUIRED_SECRETS_DESC' + | 'REQUIRED_CONFIGS_ASC' + | 'REQUIRED_CONFIGS_DESC'; +export type NamespaceEventOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAMESPACE_ID_ASC' + | 'NAMESPACE_ID_DESC' + | 'EVENT_TYPE_ASC' + | 'EVENT_TYPE_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'MESSAGE_ASC' + | 'MESSAGE_DESC' + | 'METADATA_ASC' + | 'METADATA_DESC' + | 'CPU_MILLICORES_ASC' + | 'CPU_MILLICORES_DESC' + | 'MEMORY_BYTES_ASC' + | 'MEMORY_BYTES_DESC' + | 'STORAGE_BYTES_ASC' + | 'STORAGE_BYTES_DESC' + | 'NETWORK_INGRESS_BYTES_ASC' + | 'NETWORK_INGRESS_BYTES_DESC' + | 'NETWORK_EGRESS_BYTES_ASC' + | 'NETWORK_EGRESS_BYTES_DESC' + | 'POD_COUNT_ASC' + | 'POD_COUNT_DESC' + | 'METRICS_ASC' + | 'METRICS_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC'; +export type FunctionGraphExecutionOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'STARTED_AT_ASC' + | 'STARTED_AT_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'GRAPH_ID_ASC' + | 'GRAPH_ID_DESC' + | 'INVOCATION_ID_ASC' + | 'INVOCATION_ID_DESC' + | 'SCOPE_ID_ASC' + | 'SCOPE_ID_DESC' + | 'OUTPUT_NODE_ASC' + | 'OUTPUT_NODE_DESC' + | 'OUTPUT_PORT_ASC' + | 'OUTPUT_PORT_DESC' + | 'STATUS_ASC' + | 'STATUS_DESC' + | 'INPUT_PAYLOAD_ASC' + | 'INPUT_PAYLOAD_DESC' + | 'OUTPUT_PAYLOAD_ASC' + | 'OUTPUT_PAYLOAD_DESC' + | 'NODE_OUTPUTS_ASC' + | 'NODE_OUTPUTS_DESC' + | 'EXECUTION_PLAN_ASC' + | 'EXECUTION_PLAN_DESC' + | 'CURRENT_WAVE_ASC' + | 'CURRENT_WAVE_DESC' + | 'PARENT_EXECUTION_ID_ASC' + | 'PARENT_EXECUTION_ID_DESC' + | 'PARENT_NODE_NAME_ASC' + | 'PARENT_NODE_NAME_DESC' + | 'DEFINITIONS_COMMIT_ID_ASC' + | 'DEFINITIONS_COMMIT_ID_DESC' + | 'TICK_COUNT_ASC' + | 'TICK_COUNT_DESC' + | 'COMPLETED_AT_ASC' + | 'COMPLETED_AT_DESC' + | 'MAX_TICKS_ASC' + | 'MAX_TICKS_DESC' + | 'MAX_PENDING_JOBS_ASC' + | 'MAX_PENDING_JOBS_DESC' + | 'TIMEOUT_AT_ASC' + | 'TIMEOUT_AT_DESC' + | 'LAST_PROGRESS_AT_ASC' + | 'LAST_PROGRESS_AT_DESC' + | 'ERROR_CODE_ASC' + | 'ERROR_CODE_DESC' + | 'ERROR_MESSAGE_ASC' + | 'ERROR_MESSAGE_DESC'; +export type PlatformFunctionDefinitionOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'TASK_IDENTIFIER_ASC' + | 'TASK_IDENTIFIER_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'IS_PUBLISHED_ASC' + | 'IS_PUBLISHED_DESC' + | 'ACCESS_CHANNELS_ASC' + | 'ACCESS_CHANNELS_DESC' + | 'PUBLISHED_AT_ASC' + | 'PUBLISHED_AT_DESC' + | 'MAX_ATTEMPTS_ASC' + | 'MAX_ATTEMPTS_DESC' + | 'PRIORITY_ASC' + | 'PRIORITY_DESC' + | 'QUEUE_NAME_ASC' + | 'QUEUE_NAME_DESC' + | 'RUNTIME_ASC' + | 'RUNTIME_DESC' + | 'TARGET_SCHEMA_ASC' + | 'TARGET_SCHEMA_DESC' + | 'TARGET_FUNCTION_ASC' + | 'TARGET_FUNCTION_DESC' + | 'MODULE_TABLE_ASC' + | 'MODULE_TABLE_DESC' + | 'FUNCTION_COLUMNS_ASC' + | 'FUNCTION_COLUMNS_DESC' + | 'PAYLOAD_ARGS_ASC' + | 'PAYLOAD_ARGS_DESC' + | 'IMAGE_ASC' + | 'IMAGE_DESC' + | 'CONCURRENCY_ASC' + | 'CONCURRENCY_DESC' + | 'SCALE_MIN_ASC' + | 'SCALE_MIN_DESC' + | 'SCALE_MAX_ASC' + | 'SCALE_MAX_DESC' + | 'TIMEOUT_SECONDS_ASC' + | 'TIMEOUT_SECONDS_DESC' + | 'RESOURCES_ASC' + | 'RESOURCES_DESC' + | 'IS_BUILT_IN_ASC' + | 'IS_BUILT_IN_DESC' + | 'REQUIRED_SECRETS_ASC' + | 'REQUIRED_SECRETS_DESC' + | 'REQUIRED_CONFIGS_ASC' + | 'REQUIRED_CONFIGS_DESC' + | 'INTEGRATIONS_ASC' + | 'INTEGRATIONS_DESC' + | 'REQUIRED_BUCKETS_ASC' + | 'REQUIRED_BUCKETS_DESC' + | 'REQUIRED_MODELS_ASC' + | 'REQUIRED_MODELS_DESC' + | 'INPUTS_ASC' + | 'INPUTS_DESC' + | 'OUTPUTS_ASC' + | 'OUTPUTS_DESC' + | 'PROPS_ASC' + | 'PROPS_DESC' + | 'VOLATILE_ASC' + | 'VOLATILE_DESC' + | 'ICON_ASC' + | 'ICON_DESC' + | 'CATEGORY_ASC' + | 'CATEGORY_DESC'; +export type FunctionDefinitionOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'TASK_IDENTIFIER_ASC' + | 'TASK_IDENTIFIER_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'IS_PUBLISHED_ASC' + | 'IS_PUBLISHED_DESC' + | 'ACCESS_CHANNELS_ASC' + | 'ACCESS_CHANNELS_DESC' + | 'PUBLISHED_AT_ASC' + | 'PUBLISHED_AT_DESC' + | 'MAX_ATTEMPTS_ASC' + | 'MAX_ATTEMPTS_DESC' + | 'PRIORITY_ASC' + | 'PRIORITY_DESC' + | 'QUEUE_NAME_ASC' + | 'QUEUE_NAME_DESC' + | 'RUNTIME_ASC' + | 'RUNTIME_DESC' + | 'TARGET_SCHEMA_ASC' + | 'TARGET_SCHEMA_DESC' + | 'TARGET_FUNCTION_ASC' + | 'TARGET_FUNCTION_DESC' + | 'MODULE_TABLE_ASC' + | 'MODULE_TABLE_DESC' + | 'FUNCTION_COLUMNS_ASC' + | 'FUNCTION_COLUMNS_DESC' + | 'PAYLOAD_ARGS_ASC' + | 'PAYLOAD_ARGS_DESC' + | 'IMAGE_ASC' + | 'IMAGE_DESC' + | 'CONCURRENCY_ASC' + | 'CONCURRENCY_DESC' + | 'SCALE_MIN_ASC' + | 'SCALE_MIN_DESC' + | 'SCALE_MAX_ASC' + | 'SCALE_MAX_DESC' + | 'TIMEOUT_SECONDS_ASC' + | 'TIMEOUT_SECONDS_DESC' + | 'RESOURCES_ASC' + | 'RESOURCES_DESC' + | 'IS_BUILT_IN_ASC' + | 'IS_BUILT_IN_DESC' + | 'REQUIRED_SECRETS_ASC' + | 'REQUIRED_SECRETS_DESC' + | 'REQUIRED_CONFIGS_ASC' + | 'REQUIRED_CONFIGS_DESC' + | 'INTEGRATIONS_ASC' + | 'INTEGRATIONS_DESC' + | 'REQUIRED_BUCKETS_ASC' + | 'REQUIRED_BUCKETS_DESC' + | 'REQUIRED_MODELS_ASC' + | 'REQUIRED_MODELS_DESC' + | 'INPUTS_ASC' + | 'INPUTS_DESC' + | 'OUTPUTS_ASC' + | 'OUTPUTS_DESC' + | 'PROPS_ASC' + | 'PROPS_DESC' + | 'VOLATILE_ASC' + | 'VOLATILE_DESC' + | 'ICON_ASC' + | 'ICON_DESC' + | 'CATEGORY_ASC' + | 'CATEGORY_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC'; +// ============ CRUD Input Types ============ +export interface CreateInfraGetAllRecordInput { + clientMutationId?: string; + infraGetAllRecord: { + path?: string[]; + data?: Record; + }; +} +export interface InfraGetAllRecordPatch { + path?: string[] | null; + data?: Record | null; +} +export interface UpdateInfraGetAllRecordInput { + clientMutationId?: string; + id: string; + infraGetAllRecordPatch: InfraGetAllRecordPatch; +} +export interface DeleteInfraGetAllRecordInput { + clientMutationId?: string; + id: string; +} +export interface CreateGetAllRecordInput { + clientMutationId?: string; + getAllRecord: { + path?: string[]; + data?: Record; + }; +} +export interface GetAllRecordPatch { + path?: string[] | null; + data?: Record | null; +} +export interface UpdateGetAllRecordInput { + clientMutationId?: string; + id: string; + getAllRecordPatch: GetAllRecordPatch; +} +export interface DeleteGetAllRecordInput { + clientMutationId?: string; + id: string; +} +export interface CreateInfraRefInput { + clientMutationId?: string; + infraRef: { + name: string; + scopeId: string; + storeId: string; + commitId?: string; + }; +} +export interface InfraRefPatch { + name?: string | null; + scopeId?: string | null; + storeId?: string | null; + commitId?: string | null; +} +export interface UpdateInfraRefInput { + clientMutationId?: string; + id: string; + infraRefPatch: InfraRefPatch; +} +export interface DeleteInfraRefInput { + clientMutationId?: string; + id: string; +} +export interface CreateInfraStoreInput { + clientMutationId?: string; + infraStore: { + name: string; + scopeId: string; + hash?: string; + }; +} +export interface InfraStorePatch { + name?: string | null; + scopeId?: string | null; + hash?: string | null; +} +export interface UpdateInfraStoreInput { + clientMutationId?: string; + id: string; + infraStorePatch: InfraStorePatch; +} +export interface DeleteInfraStoreInput { + clientMutationId?: string; + id: string; +} +export interface CreateFunctionApiBindingInput { + clientMutationId?: string; + functionApiBinding: { + functionDefinitionId: string; + apiId: string; + alias?: string; + config?: Record; + }; +} +export interface FunctionApiBindingPatch { + functionDefinitionId?: string | null; + apiId?: string | null; + alias?: string | null; + config?: Record | null; +} +export interface UpdateFunctionApiBindingInput { + clientMutationId?: string; + id: string; + functionApiBindingPatch: FunctionApiBindingPatch; +} +export interface DeleteFunctionApiBindingInput { + clientMutationId?: string; + id: string; +} +export interface CreateFunctionGraphRefInput { + clientMutationId?: string; + functionGraphRef: { + name: string; + scopeId: string; + storeId: string; + commitId?: string; + }; +} +export interface FunctionGraphRefPatch { + name?: string | null; + scopeId?: string | null; + storeId?: string | null; + commitId?: string | null; +} +export interface UpdateFunctionGraphRefInput { + clientMutationId?: string; + id: string; + functionGraphRefPatch: FunctionGraphRefPatch; +} +export interface DeleteFunctionGraphRefInput { + clientMutationId?: string; + id: string; +} +export interface CreateFunctionGraphStoreInput { + clientMutationId?: string; + functionGraphStore: { + name: string; + scopeId: string; + hash?: string; + }; +} +export interface FunctionGraphStorePatch { + name?: string | null; + scopeId?: string | null; + hash?: string | null; +} +export interface UpdateFunctionGraphStoreInput { + clientMutationId?: string; + id: string; + functionGraphStorePatch: FunctionGraphStorePatch; +} +export interface DeleteFunctionGraphStoreInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformFunctionApiBindingInput { + clientMutationId?: string; + platformFunctionApiBinding: { + functionDefinitionId: string; + apiId: string; + alias?: string; + config?: Record; + }; +} +export interface PlatformFunctionApiBindingPatch { + functionDefinitionId?: string | null; + apiId?: string | null; + alias?: string | null; + config?: Record | null; +} +export interface UpdatePlatformFunctionApiBindingInput { + clientMutationId?: string; + id: string; + platformFunctionApiBindingPatch: PlatformFunctionApiBindingPatch; +} +export interface DeletePlatformFunctionApiBindingInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformResourcesRequirementsStateInput { + clientMutationId?: string; + platformResourcesRequirementsState: { + resourceId: string; + slug?: string; + secretsHash?: string; + configHash?: string; + requirementsHash?: string; + secretsObjectName?: string; + configObjectName?: string; + }; +} +export interface PlatformResourcesRequirementsStatePatch { + resourceId?: string | null; + slug?: string | null; + secretsHash?: string | null; + configHash?: string | null; + requirementsHash?: string | null; + secretsObjectName?: string | null; + configObjectName?: string | null; +} +export interface UpdatePlatformResourcesRequirementsStateInput { + clientMutationId?: string; + id: string; + platformResourcesRequirementsStatePatch: PlatformResourcesRequirementsStatePatch; +} +export interface DeletePlatformResourcesRequirementsStateInput { + clientMutationId?: string; + id: string; +} +export interface CreateResourcesRequirementsStateInput { + clientMutationId?: string; + resourcesRequirementsState: { + resourceId: string; + slug?: string; + secretsHash?: string; + configHash?: string; + requirementsHash?: string; + secretsObjectName?: string; + configObjectName?: string; + }; +} +export interface ResourcesRequirementsStatePatch { + resourceId?: string | null; + slug?: string | null; + secretsHash?: string | null; + configHash?: string | null; + requirementsHash?: string | null; + secretsObjectName?: string | null; + configObjectName?: string | null; +} +export interface UpdateResourcesRequirementsStateInput { + clientMutationId?: string; + id: string; + resourcesRequirementsStatePatch: ResourcesRequirementsStatePatch; +} +export interface DeleteResourcesRequirementsStateInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformResourceStatusCheckInput { + clientMutationId?: string; + platformResourceStatusCheck: { + resourceId: string; + requestedBy?: string; + requestedAt?: string; + completedAt?: string; + status?: string; + result?: Record; + }; +} +export interface PlatformResourceStatusCheckPatch { + resourceId?: string | null; + requestedBy?: string | null; + requestedAt?: string | null; + completedAt?: string | null; + status?: string | null; + result?: Record | null; +} +export interface UpdatePlatformResourceStatusCheckInput { + clientMutationId?: string; + id: string; + platformResourceStatusCheckPatch: PlatformResourceStatusCheckPatch; +} +export interface DeletePlatformResourceStatusCheckInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformFunctionDeploymentInput { + clientMutationId?: string; + platformFunctionDeployment: { + namespaceId: string; + status?: string; + serviceUrl?: string; + serviceName?: string; + revision?: number; + image: string; + imageVersion?: string; + handlerName?: string; + concurrency?: number; + scaleMin?: number; + scaleMax?: number; + timeoutSeconds?: number; + resources?: Record; + lastError?: string; + lastErrorAt?: string; + errorCount?: number; + labels?: Record; + annotations?: Record; + }; +} +export interface PlatformFunctionDeploymentPatch { + namespaceId?: string | null; + status?: string | null; + serviceUrl?: string | null; + serviceName?: string | null; + revision?: number | null; + image?: string | null; + imageVersion?: string | null; + handlerName?: string | null; + concurrency?: number | null; + scaleMin?: number | null; + scaleMax?: number | null; + timeoutSeconds?: number | null; + resources?: Record | null; + lastError?: string | null; + lastErrorAt?: string | null; + errorCount?: number | null; + labels?: Record | null; + annotations?: Record | null; +} +export interface UpdatePlatformFunctionDeploymentInput { + clientMutationId?: string; + id: string; + platformFunctionDeploymentPatch: PlatformFunctionDeploymentPatch; +} +export interface DeletePlatformFunctionDeploymentInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformResourceInput { + clientMutationId?: string; + platformResource: { + createdBy?: string; + updatedBy?: string; + namespaceId: string; + kind: string; + name: string; + slug: string; + spec?: Record; + status?: string; + statusObserved?: Record; + lastError?: string; + errorCount?: number; + labels?: Record; + annotations?: Record; + requiredSecrets?: ResourceRequirementInput[]; + requiredConfigs?: ResourceRequirementInput[]; + integrations?: string[]; + resourceDefinitionId?: string; + }; +} +export interface PlatformResourcePatch { + createdBy?: string | null; + updatedBy?: string | null; + namespaceId?: string | null; + kind?: string | null; + name?: string | null; + slug?: string | null; + spec?: Record | null; + status?: string | null; + statusObserved?: Record | null; + lastError?: string | null; + errorCount?: number | null; + labels?: Record | null; + annotations?: Record | null; + requiredSecrets?: ResourceRequirementInput[] | null; + requiredConfigs?: ResourceRequirementInput[] | null; + integrations?: string[] | null; + resourceDefinitionId?: string | null; +} +export interface UpdatePlatformResourceInput { + clientMutationId?: string; + id: string; + platformResourcePatch: PlatformResourcePatch; +} +export interface DeletePlatformResourceInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformResourceDefinitionInput { + clientMutationId?: string; + platformResourceDefinition: { + createdBy?: string; + updatedBy?: string; + namespaceId: string; + kind: string; + name: string; + slug: string; + description?: string; + defaultSpec?: Record; + requiredSecrets?: ResourceRequirementInput[]; + requiredConfigs?: ResourceRequirementInput[]; + integrations?: string[]; + labels?: Record; + annotations?: Record; + stepUpMinAge?: IntervalInput; + }; +} +export interface PlatformResourceDefinitionPatch { + createdBy?: string | null; + updatedBy?: string | null; + namespaceId?: string | null; + kind?: string | null; + name?: string | null; + slug?: string | null; + description?: string | null; + defaultSpec?: Record | null; + requiredSecrets?: ResourceRequirementInput[] | null; + requiredConfigs?: ResourceRequirementInput[] | null; + integrations?: string[] | null; + labels?: Record | null; + annotations?: Record | null; + stepUpMinAge?: IntervalInput | null; +} +export interface UpdatePlatformResourceDefinitionInput { + clientMutationId?: string; + id: string; + platformResourceDefinitionPatch: PlatformResourceDefinitionPatch; +} +export interface DeletePlatformResourceDefinitionInput { + clientMutationId?: string; + id: string; +} +export interface CreateInfraObjectInput { + clientMutationId?: string; + infraObject: { + scopeId: string; + kids?: string[]; + ktree?: string[]; + data?: Record; + }; +} +export interface InfraObjectPatch { + scopeId?: string | null; + kids?: string[] | null; + ktree?: string[] | null; + data?: Record | null; +} +export interface UpdateInfraObjectInput { + clientMutationId?: string; + id: string; + infraObjectPatch: InfraObjectPatch; +} +export interface DeleteInfraObjectInput { + clientMutationId?: string; + id: string; +} +export interface CreateFunctionGraphObjectInput { + clientMutationId?: string; + functionGraphObject: { + scopeId: string; + kids?: string[]; + ktree?: string[]; + data?: Record; + }; +} +export interface FunctionGraphObjectPatch { + scopeId?: string | null; + kids?: string[] | null; + ktree?: string[] | null; + data?: Record | null; +} +export interface UpdateFunctionGraphObjectInput { + clientMutationId?: string; + id: string; + functionGraphObjectPatch: FunctionGraphObjectPatch; +} +export interface DeleteFunctionGraphObjectInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformFunctionDeploymentEventInput { + clientMutationId?: string; + platformFunctionDeploymentEvent: { + deploymentId: string; + eventType: string; + actorId?: string; + message?: string; + metadata?: Record; + }; +} +export interface PlatformFunctionDeploymentEventPatch { + deploymentId?: string | null; + eventType?: string | null; + actorId?: 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 CreatePlatformResourceEventInput { + clientMutationId?: string; + platformResourceEvent: { + resourceId: string; + eventType: string; + actorId?: string; + message?: string; + metadata?: Record; + }; +} +export interface PlatformResourceEventPatch { + resourceId?: string | null; + eventType?: string | null; + actorId?: string | null; + message?: string | null; + metadata?: Record | null; +} +export interface UpdatePlatformResourceEventInput { + clientMutationId?: string; + id: string; + platformResourceEventPatch: PlatformResourceEventPatch; +} +export interface DeletePlatformResourceEventInput { + clientMutationId?: string; + id: string; +} +export interface CreateResourceStatusCheckInput { + clientMutationId?: string; + resourceStatusCheck: { + resourceId: string; + databaseId: string; + requestedBy?: string; + requestedAt?: string; + completedAt?: string; + status?: string; + result?: Record; + }; +} +export interface ResourceStatusCheckPatch { + resourceId?: string | null; + databaseId?: string | null; + requestedBy?: string | null; + requestedAt?: string | null; + completedAt?: string | null; + status?: string | null; + result?: Record | null; +} +export interface UpdateResourceStatusCheckInput { + clientMutationId?: string; + id: string; + resourceStatusCheckPatch: ResourceStatusCheckPatch; +} +export interface DeleteResourceStatusCheckInput { + clientMutationId?: string; + id: string; +} +export interface CreateFunctionDeploymentInput { + clientMutationId?: string; + functionDeployment: { + namespaceId: string; + status?: string; + serviceUrl?: string; + serviceName?: string; + revision?: number; + image: string; + imageVersion?: string; + handlerName?: string; + concurrency?: number; + scaleMin?: number; + scaleMax?: number; + timeoutSeconds?: number; + resources?: Record; + lastError?: string; + lastErrorAt?: string; + errorCount?: number; + labels?: Record; + annotations?: Record; + databaseId: string; + }; +} +export interface FunctionDeploymentPatch { + namespaceId?: string | null; + status?: string | null; + serviceUrl?: string | null; + serviceName?: string | null; + revision?: number | null; + image?: string | null; + imageVersion?: string | null; + handlerName?: string | null; + concurrency?: number | null; + scaleMin?: number | null; + scaleMax?: number | null; + timeoutSeconds?: number | null; + resources?: Record | null; + lastError?: string | null; + lastErrorAt?: string | null; + errorCount?: number | null; + labels?: Record | null; + annotations?: Record | null; + databaseId?: string | null; +} +export interface UpdateFunctionDeploymentInput { + clientMutationId?: string; + id: string; + functionDeploymentPatch: FunctionDeploymentPatch; +} +export interface DeleteFunctionDeploymentInput { + clientMutationId?: string; + id: string; +} +export interface CreateResourceInput { + clientMutationId?: string; + resource: { + createdBy?: string; + updatedBy?: string; + namespaceId: string; + kind: string; + name: string; + slug: string; + spec?: Record; + status?: string; + statusObserved?: Record; + lastError?: string; + errorCount?: number; + labels?: Record; + annotations?: Record; + databaseId: string; + requiredSecrets?: ResourceRequirementInput[]; + requiredConfigs?: ResourceRequirementInput[]; + integrations?: string[]; + resourceDefinitionId?: string; + }; +} +export interface ResourcePatch { + createdBy?: string | null; + updatedBy?: string | null; + namespaceId?: string | null; + kind?: string | null; + name?: string | null; + slug?: string | null; + spec?: Record | null; + status?: string | null; + statusObserved?: Record | null; + lastError?: string | null; + errorCount?: number | null; + labels?: Record | null; + annotations?: Record | null; + databaseId?: string | null; + requiredSecrets?: ResourceRequirementInput[] | null; + requiredConfigs?: ResourceRequirementInput[] | null; + integrations?: string[] | null; + resourceDefinitionId?: string | null; +} +export interface UpdateResourceInput { + clientMutationId?: string; + id: string; + resourcePatch: ResourcePatch; +} +export interface DeleteResourceInput { + clientMutationId?: string; + id: string; +} +export interface CreateResourceDefinitionInput { + clientMutationId?: string; + resourceDefinition: { + createdBy?: string; + updatedBy?: string; + namespaceId: string; + kind: string; + name: string; + slug: string; + description?: string; + defaultSpec?: Record; + requiredSecrets?: ResourceRequirementInput[]; + requiredConfigs?: ResourceRequirementInput[]; + integrations?: string[]; + labels?: Record; + annotations?: Record; + stepUpMinAge?: IntervalInput; + databaseId: string; + }; +} +export interface ResourceDefinitionPatch { + createdBy?: string | null; + updatedBy?: string | null; + namespaceId?: string | null; + kind?: string | null; + name?: string | null; + slug?: string | null; + description?: string | null; + defaultSpec?: Record | null; + requiredSecrets?: ResourceRequirementInput[] | null; + requiredConfigs?: ResourceRequirementInput[] | null; + integrations?: string[] | null; + labels?: Record | null; + annotations?: Record | null; + stepUpMinAge?: IntervalInput | null; + databaseId?: string | null; +} +export interface UpdateResourceDefinitionInput { + clientMutationId?: string; + id: string; + resourceDefinitionPatch: ResourceDefinitionPatch; +} +export interface DeleteResourceDefinitionInput { + clientMutationId?: string; + id: string; +} +export interface CreateFunctionDeploymentEventInput { + clientMutationId?: string; + functionDeploymentEvent: { + deploymentId: string; + eventType: string; + actorId?: string; + message?: string; + metadata?: Record; + databaseId: string; + }; +} +export interface FunctionDeploymentEventPatch { + deploymentId?: string | null; + eventType?: string | null; + actorId?: string | null; + message?: string | null; + metadata?: Record | null; + databaseId?: string | null; +} +export interface UpdateFunctionDeploymentEventInput { + clientMutationId?: string; + id: string; + functionDeploymentEventPatch: FunctionDeploymentEventPatch; +} +export interface DeleteFunctionDeploymentEventInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformFunctionExecutionLogInput { + clientMutationId?: string; + platformFunctionExecutionLog: { + invocationId?: string; + taskIdentifier?: string; + logLevel?: string; + message: string; + metadata?: Record; + actorId?: string; + }; +} +export interface PlatformFunctionExecutionLogPatch { + invocationId?: string | null; + taskIdentifier?: string | null; + logLevel?: string | null; + message?: string | null; + metadata?: Record | null; + actorId?: string | null; +} +export interface UpdatePlatformFunctionExecutionLogInput { + clientMutationId?: string; + id: string; + platformFunctionExecutionLogPatch: PlatformFunctionExecutionLogPatch; +} +export interface DeletePlatformFunctionExecutionLogInput { + clientMutationId?: string; + id: string; +} +export interface CreateResourceEventInput { + clientMutationId?: string; + resourceEvent: { + resourceId: string; + eventType: string; + actorId?: string; + message?: string; + metadata?: Record; + databaseId: string; + }; +} +export interface ResourceEventPatch { + resourceId?: string | null; + eventType?: string | null; + actorId?: string | null; + message?: string | null; + metadata?: Record | null; + databaseId?: string | null; +} +export interface UpdateResourceEventInput { + clientMutationId?: string; + id: string; + resourceEventPatch: ResourceEventPatch; +} +export interface DeleteResourceEventInput { + clientMutationId?: string; + id: string; +} +export interface CreateFunctionGraphExecutionOutputInput { + clientMutationId?: string; + functionGraphExecutionOutput: { + scopeId: string; + hash: Base64EncodedBinary; + data: Record; + }; +} +export interface FunctionGraphExecutionOutputPatch { + scopeId?: string | null; + hash?: Base64EncodedBinary | null; + data?: Record | null; +} +export interface UpdateFunctionGraphExecutionOutputInput { + clientMutationId?: string; + id: string; + functionGraphExecutionOutputPatch: FunctionGraphExecutionOutputPatch; +} +export interface DeleteFunctionGraphExecutionOutputInput { + clientMutationId?: string; + id: string; +} +export interface CreateInfraCommitInput { + clientMutationId?: string; + infraCommit: { + message?: string; + scopeId: string; + storeId: string; + parentIds?: string[]; + authorId?: string; + committerId?: string; + treeId?: string; + date?: string; + }; +} +export interface InfraCommitPatch { + message?: string | null; + scopeId?: string | null; + storeId?: string | null; + parentIds?: string[] | null; + authorId?: string | null; + committerId?: string | null; + treeId?: string | null; + date?: string | null; +} +export interface UpdateInfraCommitInput { + clientMutationId?: string; + id: string; + infraCommitPatch: InfraCommitPatch; +} +export interface DeleteInfraCommitInput { + clientMutationId?: string; + id: string; +} +export interface CreateFunctionGraphCommitInput { + clientMutationId?: string; + functionGraphCommit: { + message?: string; + scopeId: string; + storeId: string; + parentIds?: string[]; + authorId?: string; + committerId?: string; + treeId?: string; + date?: string; + }; +} +export interface FunctionGraphCommitPatch { + message?: string | null; + scopeId?: string | null; + storeId?: string | null; + parentIds?: string[] | null; + authorId?: string | null; + committerId?: string | null; + treeId?: string | null; + date?: string | null; +} +export interface UpdateFunctionGraphCommitInput { + clientMutationId?: string; + id: string; + functionGraphCommitPatch: FunctionGraphCommitPatch; +} +export interface DeleteFunctionGraphCommitInput { + clientMutationId?: string; + id: string; +} +export interface CreateFunctionExecutionLogInput { + clientMutationId?: string; + functionExecutionLog: { + invocationId?: string; + taskIdentifier?: string; + logLevel?: string; + message: string; + metadata?: Record; + actorId?: string; + databaseId: string; + }; +} +export interface FunctionExecutionLogPatch { + invocationId?: string | null; + taskIdentifier?: string | null; + logLevel?: string | null; + message?: string | null; + metadata?: Record | null; + actorId?: string | null; + databaseId?: string | null; +} +export interface UpdateFunctionExecutionLogInput { + clientMutationId?: string; + id: string; + functionExecutionLogPatch: FunctionExecutionLogPatch; +} +export interface DeleteFunctionExecutionLogInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformResourcesResolvedRequirementInput { + clientMutationId?: string; + platformResourcesResolvedRequirement: { + resourceId: string; + slug?: string; + namespaceId: string; + requirementKind?: string; + name?: string; + required?: boolean; + atomId: string; + present?: boolean; + secretsObjectName?: string; + configObjectName?: string; + }; +} +export interface PlatformResourcesResolvedRequirementPatch { + resourceId?: string | null; + slug?: string | null; + namespaceId?: string | null; + requirementKind?: string | null; + name?: string | null; + required?: boolean | null; + atomId?: string | null; + present?: boolean | null; + secretsObjectName?: string | null; + configObjectName?: string | null; +} +export interface UpdatePlatformResourcesResolvedRequirementInput { + clientMutationId?: string; + id: string; + platformResourcesResolvedRequirementPatch: PlatformResourcesResolvedRequirementPatch; +} +export interface DeletePlatformResourcesResolvedRequirementInput { + clientMutationId?: string; + id: string; +} +export interface CreateResourcesResolvedRequirementInput { + clientMutationId?: string; + resourcesResolvedRequirement: { + resourceId: string; + slug?: string; + namespaceId: string; + requirementKind?: string; + name?: string; + required?: boolean; + atomId: string; + present?: boolean; + secretsObjectName?: string; + configObjectName?: string; + }; +} +export interface ResourcesResolvedRequirementPatch { + resourceId?: string | null; + slug?: string | null; + namespaceId?: string | null; + requirementKind?: string | null; + name?: string | null; + required?: boolean | null; + atomId?: string | null; + present?: boolean | null; + secretsObjectName?: string | null; + configObjectName?: string | null; +} +export interface UpdateResourcesResolvedRequirementInput { + clientMutationId?: string; + id: string; + resourcesResolvedRequirementPatch: ResourcesResolvedRequirementPatch; +} +export interface DeleteResourcesResolvedRequirementInput { + clientMutationId?: string; + id: string; +} +export interface CreateDbPresetInput { + clientMutationId?: string; + dbPreset: { + storeId?: string; + slug: string; + definition: Record; + commitId?: string; + modulesHash?: string; + label?: string; + description?: string; + active?: boolean; + }; +} +export interface DbPresetPatch { + storeId?: string | null; + slug?: string | null; + definition?: Record | null; + commitId?: string | null; + modulesHash?: string | null; + label?: string | null; + description?: string | null; + active?: boolean | null; +} +export interface UpdateDbPresetInput { + clientMutationId?: string; + id: string; + dbPresetPatch: DbPresetPatch; +} +export interface DeleteDbPresetInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformNamespaceInput { + clientMutationId?: string; + platformNamespace: { + name: string; + namespaceName: string; + description?: string; + isActive?: boolean; + status?: string; + lastError?: string; + labels?: Record; + annotations?: Record; + isManaged?: boolean; + }; +} +export interface PlatformNamespacePatch { + name?: string | null; + namespaceName?: string | null; + description?: string | null; + isActive?: boolean | null; + status?: string | null; + lastError?: string | null; + labels?: Record | null; + annotations?: Record | null; + isManaged?: boolean | null; +} +export interface UpdatePlatformNamespaceInput { + clientMutationId?: string; + id: string; + platformNamespacePatch: PlatformNamespacePatch; +} +export interface DeletePlatformNamespaceInput { + clientMutationId?: string; + id: string; +} +export interface CreateFunctionGraphInput { + clientMutationId?: string; + functionGraph: { + scopeId: string; + storeId: string; + context?: string; + name?: string; + description?: string; + definitionsCommitId: string; + isValid?: boolean; + validationErrors?: Record; + createdBy?: string; + }; +} +export interface FunctionGraphPatch { + scopeId?: string | null; + storeId?: string | null; + context?: string | null; + name?: string | null; + description?: string | null; + definitionsCommitId?: string | null; + isValid?: boolean | null; + validationErrors?: Record | null; + createdBy?: string | null; +} +export interface UpdateFunctionGraphInput { + clientMutationId?: string; + id: string; + functionGraphPatch: FunctionGraphPatch; +} +export interface DeleteFunctionGraphInput { + clientMutationId?: string; + id: string; +} +export interface CreateFunctionGraphExecutionNodeStateInput { + clientMutationId?: string; + functionGraphExecutionNodeState: { + executionId: string; + scopeId: string; + nodeName: string; + nodePath?: string[]; + status?: string; + startedAt?: string; + completedAt?: string; + errorCode?: string; + errorMessage?: string; + outputId?: string; + }; +} +export interface FunctionGraphExecutionNodeStatePatch { + executionId?: string | null; + scopeId?: string | null; + nodeName?: string | null; + nodePath?: string[] | null; + status?: string | null; + startedAt?: string | null; + completedAt?: string | null; + errorCode?: string | null; + errorMessage?: string | null; + outputId?: string | null; +} +export interface UpdateFunctionGraphExecutionNodeStateInput { + clientMutationId?: string; + id: string; + functionGraphExecutionNodeStatePatch: FunctionGraphExecutionNodeStatePatch; +} +export interface DeleteFunctionGraphExecutionNodeStateInput { + clientMutationId?: string; + id: string; +} +export interface CreateNamespaceInput { + clientMutationId?: string; + namespace: { + name: string; + namespaceName: string; + description?: string; + isActive?: boolean; + status?: string; + lastError?: string; + labels?: Record; + annotations?: Record; + databaseId: string; + isManaged?: boolean; + }; +} +export interface NamespacePatch { + name?: string | null; + namespaceName?: string | null; + description?: string | null; + isActive?: boolean | null; + status?: string | null; + lastError?: string | null; + labels?: Record | null; + annotations?: Record | null; + databaseId?: string | null; + isManaged?: boolean | null; +} +export interface UpdateNamespaceInput { clientMutationId?: string; - getAllRecord: { - path?: string[]; - data?: Record; + id: string; + namespacePatch: NamespacePatch; +} +export interface DeleteNamespaceInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformFunctionInvocationInput { + clientMutationId?: string; + platformFunctionInvocation: { + actorId?: string; + taskIdentifier: string; + payload?: Record; + status?: string; + result?: Record; + error?: string; + durationMs?: number; + jobId?: string; + startedAt?: string; + completedAt?: string; + parentInvocationId?: string; + graphExecutionId?: string; }; } -export interface GetAllRecordPatch { - path?: string[] | null; - data?: Record | null; +export interface PlatformFunctionInvocationPatch { + actorId?: string | null; + taskIdentifier?: string | null; + payload?: Record | null; + status?: string | null; + result?: Record | null; + error?: string | null; + durationMs?: number | null; + jobId?: string | null; + startedAt?: string | null; + completedAt?: string | null; + parentInvocationId?: string | null; + graphExecutionId?: string | null; } -export interface UpdateGetAllRecordInput { +export interface UpdatePlatformFunctionInvocationInput { clientMutationId?: string; id: string; - getAllRecordPatch: GetAllRecordPatch; + platformFunctionInvocationPatch: PlatformFunctionInvocationPatch; } -export interface DeleteGetAllRecordInput { +export interface DeletePlatformFunctionInvocationInput { clientMutationId?: string; id: string; } -export interface CreateFunctionApiBindingInput { +export interface CreateFunctionInvocationInput { clientMutationId?: string; - functionApiBinding: { - functionDefinitionId: string; - apiId: string; - alias?: string; - config?: Record; + functionInvocation: { + actorId?: string; + databaseId: string; + taskIdentifier: string; + payload?: Record; + status?: string; + result?: Record; + error?: string; + durationMs?: number; + jobId?: string; + startedAt?: string; + completedAt?: string; + parentInvocationId?: string; + graphExecutionId?: string; }; } -export interface FunctionApiBindingPatch { - functionDefinitionId?: string | null; - apiId?: string | null; - alias?: string | null; - config?: Record | null; +export interface FunctionInvocationPatch { + actorId?: string | null; + databaseId?: string | null; + taskIdentifier?: string | null; + payload?: Record | null; + status?: string | null; + result?: Record | null; + error?: string | null; + durationMs?: number | null; + jobId?: string | null; + startedAt?: string | null; + completedAt?: string | null; + parentInvocationId?: string | null; + graphExecutionId?: string | null; } -export interface UpdateFunctionApiBindingInput { +export interface UpdateFunctionInvocationInput { clientMutationId?: string; id: string; - functionApiBindingPatch: FunctionApiBindingPatch; + functionInvocationPatch: FunctionInvocationPatch; } -export interface DeleteFunctionApiBindingInput { +export interface DeleteFunctionInvocationInput { clientMutationId?: string; id: string; } -export interface CreateFunctionDeploymentInput { +export interface CreatePlatformNamespaceEventInput { clientMutationId?: string; - functionDeployment: { - functionDefinitionId: string; + platformNamespaceEvent: { namespaceId: string; - status?: string; - serviceUrl?: string; - serviceName?: string; - revision?: number; - image?: string; - concurrency?: number; - scaleMin?: number; - scaleMax?: number; - timeoutSeconds?: number; - resources?: Record; - lastError?: string; - lastErrorAt?: string; - errorCount?: number; - labels?: Record; - annotations?: Record; - databaseId: string; + eventType: string; + actorId?: string; + message?: string; + metadata?: Record; + cpuMillicores?: number; + memoryBytes?: string; + storageBytes?: string; + networkIngressBytes?: string; + networkEgressBytes?: string; + podCount?: number; + metrics?: Record; }; } -export interface FunctionDeploymentPatch { - functionDefinitionId?: string | null; +export interface PlatformNamespaceEventPatch { namespaceId?: string | null; - status?: string | null; - serviceUrl?: string | null; - serviceName?: string | null; - revision?: number | null; - image?: string | null; - concurrency?: number | null; - scaleMin?: number | null; - scaleMax?: number | null; - timeoutSeconds?: number | null; - resources?: Record | null; - lastError?: string | null; - lastErrorAt?: string | null; - errorCount?: number | null; - labels?: Record | null; - annotations?: Record | null; - databaseId?: string | null; + eventType?: string | null; + actorId?: string | null; + message?: string | null; + metadata?: Record | null; + cpuMillicores?: number | null; + memoryBytes?: string | null; + storageBytes?: string | null; + networkIngressBytes?: string | null; + networkEgressBytes?: string | null; + podCount?: number | null; + metrics?: Record | null; } -export interface UpdateFunctionDeploymentInput { +export interface UpdatePlatformNamespaceEventInput { clientMutationId?: string; id: string; - functionDeploymentPatch: FunctionDeploymentPatch; + platformNamespaceEventPatch: PlatformNamespaceEventPatch; } -export interface DeleteFunctionDeploymentInput { +export interface DeletePlatformNamespaceEventInput { clientMutationId?: string; id: string; } -export interface CreateResourceInput { +export interface CreateIntegrationProviderInput { clientMutationId?: string; - resource: { - createdBy?: string; - updatedBy?: string; - namespaceId: string; - kind: string; - name: string; + integrationProvider: { slug: string; - spec?: Record; - status?: string; - statusObserved?: Record; - lastError?: string; - errorCount?: number; - labels?: Record; - annotations?: Record; + name: string; + description?: string; + category?: string; + icon?: string; + logo?: ConstructiveInternalTypeImage; + brand?: Record; + requiredSecrets?: ResourceRequirementInput[]; + requiredConfigs?: ResourceRequirementInput[]; + }; +} +export interface IntegrationProviderPatch { + slug?: string | null; + name?: string | null; + description?: string | null; + category?: string | null; + icon?: string | null; + logo?: ConstructiveInternalTypeImage | null; + brand?: Record | null; + requiredSecrets?: ResourceRequirementInput[] | null; + requiredConfigs?: ResourceRequirementInput[] | null; + logoUpload?: File | null; +} +export interface UpdateIntegrationProviderInput { + clientMutationId?: string; + id: string; + integrationProviderPatch: IntegrationProviderPatch; +} +export interface DeleteIntegrationProviderInput { + clientMutationId?: string; + id: string; +} +export interface CreateNamespaceEventInput { + clientMutationId?: string; + namespaceEvent: { + namespaceId: string; + eventType: string; + actorId?: string; + message?: string; + metadata?: Record; + cpuMillicores?: number; + memoryBytes?: string; + storageBytes?: string; + networkIngressBytes?: string; + networkEgressBytes?: string; + podCount?: number; + metrics?: Record; databaseId: string; }; } -export interface ResourcePatch { - createdBy?: string | null; - updatedBy?: string | null; +export interface NamespaceEventPatch { namespaceId?: string | null; - kind?: string | null; - name?: string | null; - slug?: string | null; - spec?: Record | null; + eventType?: string | null; + actorId?: string | null; + message?: string | null; + metadata?: Record | null; + cpuMillicores?: number | null; + memoryBytes?: string | null; + storageBytes?: string | null; + networkIngressBytes?: string | null; + networkEgressBytes?: string | null; + podCount?: number | null; + metrics?: Record | null; + databaseId?: string | null; +} +export interface UpdateNamespaceEventInput { + clientMutationId?: string; + id: string; + namespaceEventPatch: NamespaceEventPatch; +} +export interface DeleteNamespaceEventInput { + clientMutationId?: string; + id: string; +} +export interface CreateFunctionGraphExecutionInput { + clientMutationId?: string; + functionGraphExecution: { + startedAt?: string; + graphId: string; + invocationId?: string; + scopeId: string; + outputNode?: string; + outputPort?: string; + status?: string; + inputPayload?: Record; + outputPayload?: Record; + nodeOutputs?: Record; + executionPlan?: Record; + currentWave?: number; + parentExecutionId?: string; + parentNodeName?: string; + definitionsCommitId?: string; + tickCount?: number; + completedAt?: string; + maxTicks?: number; + maxPendingJobs?: number; + timeoutAt?: string; + lastProgressAt?: string; + errorCode?: string; + errorMessage?: string; + }; +} +export interface FunctionGraphExecutionPatch { + startedAt?: string | null; + graphId?: string | null; + invocationId?: string | null; + scopeId?: string | null; + outputNode?: string | null; + outputPort?: string | null; status?: string | null; - statusObserved?: Record | null; - lastError?: string | null; - errorCount?: number | null; - labels?: Record | null; - annotations?: Record | null; - databaseId?: string | null; + inputPayload?: Record | null; + outputPayload?: Record | null; + nodeOutputs?: Record | null; + executionPlan?: Record | null; + currentWave?: number | null; + parentExecutionId?: string | null; + parentNodeName?: string | null; + definitionsCommitId?: string | null; + tickCount?: number | null; + completedAt?: string | null; + maxTicks?: number | null; + maxPendingJobs?: number | null; + timeoutAt?: string | null; + lastProgressAt?: string | null; + errorCode?: string | null; + errorMessage?: string | null; } -export interface UpdateResourceInput { +export interface UpdateFunctionGraphExecutionInput { clientMutationId?: string; id: string; - resourcePatch: ResourcePatch; + functionGraphExecutionPatch: FunctionGraphExecutionPatch; } -export interface DeleteResourceInput { +export interface DeleteFunctionGraphExecutionInput { clientMutationId?: string; id: string; } -export interface CreateFunctionGraphRefInput { +export interface CreatePlatformFunctionDefinitionInput { clientMutationId?: string; - functionGraphRef: { + platformFunctionDefinition: { + scope: string; name: string; - databaseId: string; - storeId: string; - commitId?: string; + taskIdentifier: string; + description?: string; + isPublished?: boolean; + accessChannels?: string[]; + publishedAt?: string; + maxAttempts?: number; + priority?: number; + queueName?: string; + runtime?: string; + targetSchema?: string; + targetFunction?: string; + moduleTable?: string; + functionColumns?: Record; + payloadArgs?: Record; + image?: string; + concurrency?: number; + scaleMin?: number; + scaleMax?: number; + timeoutSeconds?: number; + resources?: Record; + isBuiltIn?: boolean; + requiredSecrets?: ResourceRequirementInput[]; + requiredConfigs?: ResourceRequirementInput[]; + integrations?: string[]; + requiredBuckets?: string[]; + requiredModels?: string[]; + inputs?: Record; + outputs?: Record; + props?: Record; + volatile?: boolean; + icon?: string; + category?: string; }; } -export interface FunctionGraphRefPatch { +export interface PlatformFunctionDefinitionPatch { + scope?: string | null; name?: string | null; - databaseId?: string | null; - storeId?: string | null; - commitId?: string | null; + taskIdentifier?: string | null; + description?: string | null; + isPublished?: boolean | null; + accessChannels?: string[] | null; + publishedAt?: string | null; + maxAttempts?: number | null; + priority?: number | null; + queueName?: string | null; + runtime?: string | null; + targetSchema?: string | null; + targetFunction?: string | null; + moduleTable?: string | null; + functionColumns?: Record | null; + payloadArgs?: Record | null; + image?: string | null; + concurrency?: number | null; + scaleMin?: number | null; + scaleMax?: number | null; + timeoutSeconds?: number | null; + resources?: Record | null; + isBuiltIn?: boolean | null; + requiredSecrets?: ResourceRequirementInput[] | null; + requiredConfigs?: ResourceRequirementInput[] | null; + integrations?: string[] | null; + requiredBuckets?: string[] | null; + requiredModels?: string[] | null; + inputs?: Record | null; + outputs?: Record | null; + props?: Record | null; + volatile?: boolean | null; + icon?: string | null; + category?: string | null; } -export interface UpdateFunctionGraphRefInput { +export interface UpdatePlatformFunctionDefinitionInput { clientMutationId?: string; id: string; - functionGraphRefPatch: FunctionGraphRefPatch; + platformFunctionDefinitionPatch: PlatformFunctionDefinitionPatch; } -export interface DeleteFunctionGraphRefInput { +export interface DeletePlatformFunctionDefinitionInput { clientMutationId?: string; id: string; } -export interface CreateFunctionGraphStoreInput { +export interface CreateFunctionDefinitionInput { clientMutationId?: string; - functionGraphStore: { + functionDefinition: { + scope: string; name: string; + taskIdentifier: string; + description?: string; + isPublished?: boolean; + accessChannels?: string[]; + publishedAt?: string; + maxAttempts?: number; + priority?: number; + queueName?: string; + runtime?: string; + targetSchema?: string; + targetFunction?: string; + moduleTable?: string; + functionColumns?: Record; + payloadArgs?: Record; + image?: string; + concurrency?: number; + scaleMin?: number; + scaleMax?: number; + timeoutSeconds?: number; + resources?: Record; + isBuiltIn?: boolean; + requiredSecrets?: ResourceRequirementInput[]; + requiredConfigs?: ResourceRequirementInput[]; + integrations?: string[]; + requiredBuckets?: string[]; + requiredModels?: string[]; + inputs?: Record; + outputs?: Record; + props?: Record; + volatile?: boolean; + icon?: string; + category?: string; databaseId: string; - hash?: string; }; } -export interface FunctionGraphStorePatch { +export interface FunctionDefinitionPatch { + scope?: string | null; name?: string | null; + taskIdentifier?: string | null; + description?: string | null; + isPublished?: boolean | null; + accessChannels?: string[] | null; + publishedAt?: string | null; + maxAttempts?: number | null; + priority?: number | null; + queueName?: string | null; + runtime?: string | null; + targetSchema?: string | null; + targetFunction?: string | null; + moduleTable?: string | null; + functionColumns?: Record | null; + payloadArgs?: Record | null; + image?: string | null; + concurrency?: number | null; + scaleMin?: number | null; + scaleMax?: number | null; + timeoutSeconds?: number | null; + resources?: Record | null; + isBuiltIn?: boolean | null; + requiredSecrets?: ResourceRequirementInput[] | null; + requiredConfigs?: ResourceRequirementInput[] | null; + integrations?: string[] | null; + requiredBuckets?: string[] | null; + requiredModels?: string[] | null; + inputs?: Record | null; + outputs?: Record | null; + props?: Record | null; + volatile?: boolean | null; + icon?: string | null; + category?: string | null; databaseId?: string | null; - hash?: string | null; } -export interface UpdateFunctionGraphStoreInput { +export interface UpdateFunctionDefinitionInput { clientMutationId?: string; id: string; - functionGraphStorePatch: FunctionGraphStorePatch; + functionDefinitionPatch: FunctionDefinitionPatch; } -export interface DeleteFunctionGraphStoreInput { +export interface DeleteFunctionDefinitionInput { clientMutationId?: string; id: string; } -export interface CreateFunctionGraphObjectInput { +// ============ Connection Fields Map ============ +export const connectionFieldsMap = { + PlatformResource: { + platformResourceStatusChecksByResourceId: 'PlatformResourceStatusCheck', + }, + Resource: { + resourceStatusChecks: 'ResourceStatusCheck', + }, + PlatformNamespace: { + platformFunctionDeploymentsByNamespaceId: 'PlatformFunctionDeployment', + platformResourcesByNamespaceId: 'PlatformResource', + platformResourceDefinitionsByNamespaceId: 'PlatformResourceDefinition', + }, + Namespace: { + functionDeployments: 'FunctionDeployment', + resources: 'Resource', + resourceDefinitions: 'ResourceDefinition', + }, + PlatformFunctionDefinition: { + platformFunctionApiBindingsByFunctionDefinitionId: 'PlatformFunctionApiBinding', + }, + FunctionDefinition: { + functionApiBindings: 'FunctionApiBinding', + }, +} as Record>; +// ============ Custom Input Types (from schema) ============ +export interface ValidateFunctionGraphInput { clientMutationId?: string; - functionGraphObject: { - databaseId: string; - kids?: string[]; - ktree?: string[]; - data?: Record; - }; + graphId?: string; } -export interface FunctionGraphObjectPatch { - databaseId?: string | null; - kids?: string[] | null; - ktree?: string[] | null; - data?: Record | null; +export interface InfraInitEmptyRepoInput { + clientMutationId?: string; + sId?: string; + storeId?: string; } -export interface UpdateFunctionGraphObjectInput { +export interface InitEmptyRepoInput { clientMutationId?: string; - id: string; - functionGraphObjectPatch: FunctionGraphObjectPatch; + sId?: string; + storeId?: string; } -export interface DeleteFunctionGraphObjectInput { +export interface ImportDefinitionsInput { clientMutationId?: string; - id: string; + graphId?: string; + sourceScopeId?: string; + sourceCommitId?: string; + contexts?: string[]; } -export interface CreateFunctionDeploymentEventInput { +export interface InfraSetDataAtPathInput { clientMutationId?: string; - functionDeploymentEvent: { - deploymentId: string; - eventType: string; - actorId?: string; - message?: string; - metadata?: Record; - databaseId: string; - }; + sId?: string; + root?: string; + path?: string[]; + data?: Record; } -export interface FunctionDeploymentEventPatch { - deploymentId?: string | null; - eventType?: string | null; - actorId?: string | null; - message?: string | null; - metadata?: Record | null; - databaseId?: string | null; +export interface SetDataAtPathInput { + clientMutationId?: string; + sId?: string; + root?: string; + path?: string[]; + data?: Record; } -export interface UpdateFunctionDeploymentEventInput { +export interface CopyGraphInput { clientMutationId?: string; - id: string; - functionDeploymentEventPatch: FunctionDeploymentEventPatch; + scopeId?: string; + graphId?: string; + name?: string; } -export interface DeleteFunctionDeploymentEventInput { +export interface SaveGraphInput { clientMutationId?: string; - id: string; + graphId?: string; + rootHash?: string; + message?: string; } -export interface CreateOrgFunctionExecutionLogInput { +export interface AddEdgeAndSaveInput { clientMutationId?: string; - orgFunctionExecutionLog: { - invocationId?: string; - taskIdentifier?: string; - logLevel?: string; - message: string; - metadata?: Record; - actorId?: string; - }; + graphId?: string; + srcNode?: string; + srcPort?: string; + dstNode?: string; + dstPort?: string; + message?: string; } -export interface OrgFunctionExecutionLogPatch { - invocationId?: string | null; - taskIdentifier?: string | null; - logLevel?: string | null; - message?: string | null; - metadata?: Record | null; - actorId?: string | null; +export interface AddNodeAndSaveInput { + clientMutationId?: string; + graphId?: string; + nodeName?: string; + nodeType?: string; + props?: Record; + meta?: Record; + message?: string; } -export interface UpdateOrgFunctionExecutionLogInput { +export interface ImportGraphJsonInput { clientMutationId?: string; - id: string; - orgFunctionExecutionLogPatch: OrgFunctionExecutionLogPatch; + scopeId?: string; + name?: string; + graphJson?: Record; + context?: string; + description?: string; + createdBy?: string; + definitionsCommitId?: string; } -export interface DeleteOrgFunctionExecutionLogInput { +export interface AddEdgeInput { clientMutationId?: string; - id: string; + scopeId?: string; + rootHash?: string; + srcNode?: string; + srcPort?: string; + dstNode?: string; + dstPort?: string; + context?: string; + graphName?: string; } -export interface CreateResourceEventInput { +export interface AddNodeInput { clientMutationId?: string; - resourceEvent: { - resourceId: string; - eventType: string; - actorId?: string; - message?: string; - metadata?: Record; - databaseId: string; - }; -} -export interface ResourceEventPatch { - resourceId?: string | null; - eventType?: string | null; - actorId?: string | null; - message?: string | null; - metadata?: Record | null; - databaseId?: string | null; + scopeId?: string; + rootHash?: string; + nodeName?: string; + nodeType?: string; + context?: string; + graphName?: string; + props?: Record; + meta?: Record; } -export interface UpdateResourceEventInput { +export interface InfraInsertNodeAtPathInput { clientMutationId?: string; - id: string; - resourceEventPatch: ResourceEventPatch; + sId?: string; + root?: string; + path?: string[]; + data?: Record; + kids?: string[]; + ktree?: string[]; } -export interface DeleteResourceEventInput { +export interface InsertNodeAtPathInput { clientMutationId?: string; - id: string; + sId?: string; + root?: string; + path?: string[]; + data?: Record; + kids?: string[]; + ktree?: string[]; } -export interface CreateFunctionGraphExecutionOutputInput { +export interface StartExecutionInput { clientMutationId?: string; - functionGraphExecutionOutput: { - databaseId: string; - hash: Base64EncodedBinary; - data: Record; - }; + graphId?: string; + inputPayload?: Record; + outputNode?: string; + outputPort?: string; + maxTicks?: number; + maxPendingJobs?: number; + timeoutInterval?: IntervalInput; + parentExecutionId?: string; + parentNodeName?: string; } -export interface FunctionGraphExecutionOutputPatch { - databaseId?: string | null; - hash?: Base64EncodedBinary | null; - data?: Record | 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 UpdateFunctionGraphExecutionOutputInput { - clientMutationId?: string; - id: string; - functionGraphExecutionOutputPatch: FunctionGraphExecutionOutputPatch; +/** 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 at least one related entity matches. */ + some?: PlatformResourceStatusCheckFilter; + /** Filters to entities where every related entity matches. */ + every?: PlatformResourceStatusCheckFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformResourceStatusCheckFilter; } -export interface DeleteFunctionGraphExecutionOutputInput { - clientMutationId?: string; - id: string; +/** A filter to be used against Interval fields. All fields are combined with a logical ‘and.’ */ +export interface IntervalFilter { + /** Is null (if `true` is specified) or is not null (if `false` is specified). */ + isNull?: boolean; + /** Equal to the specified value. */ + equalTo?: IntervalInput; + /** Not equal to the specified value. */ + notEqualTo?: IntervalInput; + /** Not equal to the specified value, treating null like an ordinary value. */ + distinctFrom?: IntervalInput; + /** Equal to the specified value, treating null like an ordinary value. */ + notDistinctFrom?: IntervalInput; + /** Included in the specified list. */ + in?: IntervalInput[]; + /** Not included in the specified list. */ + notIn?: IntervalInput[]; + /** Less than the specified value. */ + lessThan?: IntervalInput; + /** Less than or equal to the specified value. */ + lessThanOrEqualTo?: IntervalInput; + /** Greater than the specified value. */ + greaterThan?: IntervalInput; + /** Greater than or equal to the specified value. */ + greaterThanOrEqualTo?: IntervalInput; } -export interface CreateFunctionGraphCommitInput { - clientMutationId?: string; - functionGraphCommit: { - message?: string; - databaseId: string; - storeId: string; - parentIds?: string[]; - authorId?: string; - committerId?: string; - treeId?: string; - date?: 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 at least one related entity matches. */ + some?: ResourceStatusCheckFilter; + /** Filters to entities where every related entity matches. */ + every?: ResourceStatusCheckFilter; + /** Filters to entities where no related entity matches. */ + none?: ResourceStatusCheckFilter; } -export interface FunctionGraphCommitPatch { - message?: string | null; - databaseId?: string | null; - storeId?: string | null; - parentIds?: string[] | null; - authorId?: string | null; - committerId?: string | null; - treeId?: string | null; - date?: string | null; +/** A filter to be used against Base64EncodedBinary fields. All fields are combined with a logical ‘and.’ */ +export interface Base64EncodedBinaryFilter { + /** Is null (if `true` is specified) or is not null (if `false` is specified). */ + isNull?: boolean; + /** Equal to the specified value. */ + equalTo?: Base64EncodedBinary; + /** Not equal to the specified value. */ + notEqualTo?: Base64EncodedBinary; + /** Not equal to the specified value, treating null like an ordinary value. */ + distinctFrom?: Base64EncodedBinary; + /** Equal to the specified value, treating null like an ordinary value. */ + notDistinctFrom?: Base64EncodedBinary; + /** Included in the specified list. */ + in?: Base64EncodedBinary[]; + /** Not included in the specified list. */ + notIn?: Base64EncodedBinary[]; } -export interface UpdateFunctionGraphCommitInput { - clientMutationId?: string; - id: string; - functionGraphCommitPatch: FunctionGraphCommitPatch; +/** 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 at least one related entity matches. */ + some?: PlatformFunctionDeploymentFilter; + /** Filters to entities where every related entity matches. */ + every?: PlatformFunctionDeploymentFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformFunctionDeploymentFilter; } -export interface DeleteFunctionGraphCommitInput { - clientMutationId?: string; - id: string; +/** 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 at least one related entity matches. */ + some?: PlatformResourceFilter; + /** Filters to entities where every related entity matches. */ + every?: PlatformResourceFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformResourceFilter; } -export interface CreateSecretDefinitionInput { - clientMutationId?: string; - secretDefinition: { - name: string; - description?: string; - isBuiltIn?: boolean; - labels?: Record; - annotations?: Record; - databaseId: 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 at least one related entity matches. */ + some?: PlatformResourceDefinitionFilter; + /** Filters to entities where every related entity matches. */ + every?: PlatformResourceDefinitionFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformResourceDefinitionFilter; } -export interface SecretDefinitionPatch { - name?: string | null; - description?: string | null; - isBuiltIn?: boolean | null; - labels?: Record | null; - annotations?: Record | null; - databaseId?: 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 at least one related entity matches. */ + some?: FunctionDeploymentFilter; + /** Filters to entities where every related entity matches. */ + every?: FunctionDeploymentFilter; + /** Filters to entities where no related entity matches. */ + none?: FunctionDeploymentFilter; } -export interface UpdateSecretDefinitionInput { - clientMutationId?: string; - id: string; - secretDefinitionPatch: SecretDefinitionPatch; +/** 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 at least one related entity matches. */ + some?: ResourceFilter; + /** Filters to entities where every related entity matches. */ + every?: ResourceFilter; + /** Filters to entities where no related entity matches. */ + none?: ResourceFilter; } -export interface DeleteSecretDefinitionInput { - 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 at least one related entity matches. */ + some?: ResourceDefinitionFilter; + /** Filters to entities where every related entity matches. */ + every?: ResourceDefinitionFilter; + /** Filters to entities where no related entity matches. */ + none?: ResourceDefinitionFilter; } -export interface CreateFunctionExecutionLogInput { - clientMutationId?: string; - functionExecutionLog: { - invocationId?: string; - taskIdentifier?: string; - logLevel?: string; - message: string; - metadata?: Record; - actorId?: string; - databaseId: string; - }; +/** A filter to be used against ConstructiveInternalTypeImage fields. All fields are combined with a logical ‘and.’ */ +export interface ConstructiveInternalTypeImageFilter { + /** Is null (if `true` is specified) or is not null (if `false` is specified). */ + isNull?: boolean; + /** Equal to the specified value. */ + equalTo?: ConstructiveInternalTypeImage; + /** Not equal to the specified value. */ + notEqualTo?: ConstructiveInternalTypeImage; + /** Not equal to the specified value, treating null like an ordinary value. */ + distinctFrom?: ConstructiveInternalTypeImage; + /** Equal to the specified value, treating null like an ordinary value. */ + notDistinctFrom?: ConstructiveInternalTypeImage; + /** Included in the specified list. */ + in?: ConstructiveInternalTypeImage[]; + /** Not included in the specified list. */ + notIn?: ConstructiveInternalTypeImage[]; + /** Less than the specified value. */ + lessThan?: ConstructiveInternalTypeImage; + /** Less than or equal to the specified value. */ + lessThanOrEqualTo?: ConstructiveInternalTypeImage; + /** Greater than the specified value. */ + greaterThan?: ConstructiveInternalTypeImage; + /** Greater than or equal to the specified value. */ + greaterThanOrEqualTo?: ConstructiveInternalTypeImage; + /** Contains the specified JSON. */ + contains?: ConstructiveInternalTypeImage; + /** Contains the specified key. */ + containsKey?: string; + /** Contains all of the specified keys. */ + containsAllKeys?: string[]; + /** Contains any of the specified keys. */ + containsAnyKeys?: string[]; + /** Contained by the specified JSON. */ + containedBy?: ConstructiveInternalTypeImage; +} +/** A filter to be used against many `PlatformFunctionApiBinding` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformFunctionDefinitionToManyPlatformFunctionApiBindingFilter { + /** Filters to entities where at least one related entity matches. */ + some?: PlatformFunctionApiBindingFilter; + /** Filters to entities where every related entity matches. */ + every?: PlatformFunctionApiBindingFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformFunctionApiBindingFilter; +} +/** 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 at least one related entity matches. */ + some?: FunctionApiBindingFilter; + /** Filters to entities where every related entity matches. */ + every?: FunctionApiBindingFilter; + /** Filters to entities where no related entity matches. */ + none?: FunctionApiBindingFilter; +} +/** An input for mutations affecting `InfraRef` */ +export interface InfraRefInput { + /** 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; + /** Commit this ref points to */ + commitId?: string; +} +/** An input for mutations affecting `InfraStore` */ +export interface InfraStoreInput { + /** Unique store identifier */ + id?: string; + /** Human-readable store name */ + name: string; + /** Opaque store partition key for the global tier */ + scopeId: string; + /** Current root object hash of this store */ + hash?: string; + /** Timestamp of store creation */ + createdAt?: string; } -export interface FunctionExecutionLogPatch { - invocationId?: string | null; - taskIdentifier?: string | null; - logLevel?: string | null; - message?: string | null; - metadata?: Record | null; - actorId?: string | null; - databaseId?: string | null; +/** An input for mutations affecting `FunctionApiBinding` */ +export interface FunctionApiBindingInput { + id?: string; + /** Function definition this binding belongs to */ + functionDefinitionId: string; + /** API endpoint this function is bound to */ + apiId: string; + /** Binding alias (e.g. default, staging, production) */ + alias?: string; + /** Per-binding configuration (overrides, routing rules, etc.) */ + config?: Record; } -export interface UpdateFunctionExecutionLogInput { - clientMutationId?: string; - id: string; - functionExecutionLogPatch: FunctionExecutionLogPatch; +/** An input for mutations affecting `FunctionGraphRef` */ +export interface FunctionGraphRefInput { + /** 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; + /** Commit this ref points to */ + commitId?: string; } -export interface DeleteFunctionExecutionLogInput { - clientMutationId?: string; - id: string; +/** An input for mutations affecting `FunctionGraphStore` */ +export interface FunctionGraphStoreInput { + /** Unique store identifier */ + id?: string; + /** Human-readable store name */ + name: string; + /** Opaque store partition key for the global tier */ + scopeId: string; + /** Current root object hash of this store */ + hash?: string; + /** Timestamp of store creation */ + createdAt?: string; } -export interface CreateFunctionGraphInput { - clientMutationId?: string; - functionGraph: { - databaseId: string; - storeId: string; - context?: string; - name?: string; - description?: string; - definitionsCommitId: string; - isValid?: boolean; - validationErrors?: Record; - createdBy?: string; - }; +/** An input for mutations affecting `PlatformFunctionApiBinding` */ +export interface PlatformFunctionApiBindingInput { + id?: string; + /** Function definition this binding belongs to */ + functionDefinitionId: string; + /** API endpoint this function is bound to */ + apiId: string; + /** Binding alias (e.g. default, staging, production) */ + alias?: string; + /** Per-binding configuration (overrides, routing rules, etc.) */ + config?: Record; } -export interface FunctionGraphPatch { - databaseId?: string | null; - storeId?: string | null; - context?: string | null; - name?: string | null; - description?: string | null; - definitionsCommitId?: string | null; - isValid?: boolean | null; - validationErrors?: Record | null; - createdBy?: string | null; +/** An input for mutations affecting `PlatformResourceStatusCheck` */ +export interface PlatformResourceStatusCheckInput { + /** Unique status check identifier */ + id?: string; + /** Resource to check */ + resourceId: string; + /** User who requested the check (NULL for system/scheduled) */ + requestedBy?: string; + /** When the check was requested */ + requestedAt?: string; + /** When the check completed (NULL while pending/running) */ + completedAt?: string; + /** Check lifecycle: pending, running, completed, failed */ + status?: string; + /** Diagnostic snapshot: k8s_status, conditions, pod_logs_tail, events */ + result?: Record; } -export interface UpdateFunctionGraphInput { - clientMutationId?: string; - id: string; - functionGraphPatch: FunctionGraphPatch; +/** An input for mutations affecting `PlatformFunctionDeployment` */ +export interface PlatformFunctionDeploymentInput { + id?: string; + createdAt?: string; + updatedAt?: string; + /** Target namespace for this deployment (maps to a K8s namespace) */ + namespaceId: string; + /** Deployment lifecycle status: pending, provisioning, active, failed, scaled_to_zero, deactivated */ + status?: string; + /** Knative service URL (http://{service-name}.{namespace}.svc.cluster.local) — populated after provisioning */ + serviceUrl?: string; + /** 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; + /** Deployment revision number (incremented on each redeployment) */ + revision?: number; + /** 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; + /** Handler directory name (e.g. email, document) — used as FN_HANDLER_NAME in combined-image mode to select the entry point */ + handlerName?: string; + /** Max concurrent requests per pod (NULL = inherit from definition) */ + concurrency?: number; + /** Minimum replica count (NULL = inherit from definition or Knative default) */ + scaleMin?: number; + /** Maximum replica count (NULL = inherit from definition or Knative default) */ + scaleMax?: number; + /** Request timeout override in seconds (NULL = inherit from definition) */ + timeoutSeconds?: number; + /** K8s resource spec override: {"requests":{"cpu":"100m","memory":"128Mi"},"limits":{...}} */ + resources?: Record; + /** Most recent provisioning or runtime error message */ + lastError?: string; + /** Timestamp of the most recent error */ + lastErrorAt?: string; + /** Cumulative error count for this deployment */ + errorCount?: number; + /** Key/value pairs for selecting and filtering deployments */ + labels?: Record; + /** Freeform metadata for tooling and operational notes */ + annotations?: Record; } -export interface DeleteFunctionGraphInput { - clientMutationId?: string; - id: string; +/** An input for mutations affecting `PlatformResource` */ +export interface PlatformResourceInput { + id?: string; + createdAt?: string; + updatedAt?: string; + createdBy?: string; + updatedBy?: string; + /** Namespace this resource belongs to (security boundary, maps to K8s namespace) */ + namespaceId: string; + /** Resource kind: Deployment, StatefulSet, Service, Ingress, Certificate */ + kind: string; + /** Human-readable resource name */ + name: 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, failed, draining, deleting */ + status?: string; + /** Observed state from K8s — populated by handlers after reconciliation (service_url, clone_url, replicas, etc.) */ + statusObserved?: Record; + /** Most recent provisioning or runtime error message */ + lastError?: string; + /** Cumulative error count for this resource */ + errorCount?: number; + /** Key/value pairs for selecting and filtering resources */ + labels?: Record; + /** Freeform metadata for tooling and operational notes */ + annotations?: Record; + /** 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[]; + /** 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[]; + /** 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[]; + /** Definition template this resource was created from (NULL for standalone resources) */ + resourceDefinitionId?: string; +} +/** An input for mutations affecting `ResourceRequirement` */ +export interface ResourceRequirementInput { + name?: string; + required?: boolean; + provider?: string; } -export interface CreateFunctionGraphExecutionNodeStateInput { - clientMutationId?: string; - functionGraphExecutionNodeState: { - executionId: string; - databaseId: string; - nodeName: string; - nodePath?: string[]; - status?: string; - startedAt?: string; - completedAt?: string; - errorCode?: string; - errorMessage?: string; - outputId?: string; - }; +/** An input for mutations affecting `PlatformResourceDefinition` */ +export interface PlatformResourceDefinitionInput { + id?: string; + createdAt?: string; + updatedAt?: string; + createdBy?: string; + updatedBy?: string; + /** Namespace this definition belongs to (security boundary, maps to K8s namespace) */ + namespaceId: string; + /** Resource kind: Deployment, StatefulSet, Service, Ingress, Certificate, or custom kinds */ + kind: string; + /** Human-readable definition name */ + name: string; + /** URL-safe identifier, unique within (namespace_id, kind) */ + slug: string; + /** What this resource definition provides */ + description?: string; + /** Template spec for creating resource instances of this kind */ + defaultSpec?: Record; + /** Embedded secret requirements: array of (name, required, provider) tuples. provider is the integration slug this requirement belongs to, if any. */ + requiredSecrets?: ResourceRequirementInput[]; + /** Embedded config requirements: array of (name, required, provider) tuples. provider is the integration slug this requirement belongs to, if any. */ + requiredConfigs?: ResourceRequirementInput[]; + /** 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[]; + /** Key/value pairs for selecting and filtering definitions */ + labels?: Record; + /** Freeform metadata for tooling and operational notes */ + annotations?: Record; + /** Min age before DELETE of a resource of this kind requires step-up; NULL inherits the 6h default */ + stepUpMinAge?: IntervalInput; } -export interface FunctionGraphExecutionNodeStatePatch { - executionId?: string | null; - databaseId?: string | null; - nodeName?: string | null; - nodePath?: string[] | null; - status?: string | null; - startedAt?: string | null; - completedAt?: string | null; - errorCode?: string | null; - errorMessage?: string | null; - outputId?: string | null; +/** An interval of time that has passed where the smallest distinct unit is a second. */ +export interface IntervalInput { + /** + * A quantity of seconds. This is the only non-integer field, as all the other + * fields will dump their overflow into a smaller unit of time. Intervals don’t + * have a smaller unit than seconds. + */ + seconds?: number; + /** A quantity of minutes. */ + minutes?: number; + /** A quantity of hours. */ + hours?: number; + /** A quantity of days. */ + days?: number; + /** A quantity of months. */ + months?: number; + /** A quantity of years. */ + years?: number; } -export interface UpdateFunctionGraphExecutionNodeStateInput { - clientMutationId?: string; +/** An input for mutations affecting `InfraObject` */ +export interface InfraObjectInput { + /** Content-addressed UUID v5 — deterministic hash of (data, kids, ktree) */ id: string; - functionGraphExecutionNodeStatePatch: FunctionGraphExecutionNodeStatePatch; + /** Opaque store partition key for the global tier */ + scopeId: string; + /** Ordered array of child object IDs */ + kids?: string[]; + /** Ordered array of child path names (parallel to kids) */ + ktree?: string[]; + /** Payload data for this object node */ + data?: Record; + /** Timestamp of object creation */ + createdAt?: string; } -export interface DeleteFunctionGraphExecutionNodeStateInput { - clientMutationId?: string; +/** An input for mutations affecting `FunctionGraphObject` */ +export interface FunctionGraphObjectInput { + /** Content-addressed UUID v5 — deterministic hash of (data, kids, ktree) */ id: string; + /** Opaque store partition key for the global tier */ + scopeId: string; + /** Ordered array of child object IDs */ + kids?: string[]; + /** Ordered array of child path names (parallel to kids) */ + ktree?: string[]; + /** Payload data for this object node */ + data?: Record; + /** Timestamp of object creation */ + createdAt?: string; +} +/** An input for mutations affecting `PlatformFunctionDeploymentEvent` */ +export interface PlatformFunctionDeploymentEventInput { + /** Event timestamp (partition key) */ + createdAt?: string; + /** Unique event identifier */ + id?: string; + /** Deployment this event belongs to */ + deploymentId: string; + /** Event type: provisioned, scaled, failed, deactivated, redeployed, health_check */ + eventType: string; + /** User who triggered this event (NULL for system/automated) */ + actorId?: string; + /** Human-readable description of the event */ + message?: string; + /** Structured context (old/new values, error details, etc.) */ + metadata?: Record; } -export interface CreatePlatformNamespaceInput { - clientMutationId?: string; - platformNamespace: { - name: string; - namespaceName: string; - description?: string; - isActive?: boolean; - labels?: Record; - annotations?: Record; - databaseId: string; - sourceDatabaseId?: string; - sourceScope?: string; - isManaged?: boolean; - }; +/** An input for mutations affecting `PlatformResourceEvent` */ +export interface PlatformResourceEventInput { + /** Event timestamp (partition key) */ + createdAt?: string; + /** Unique event identifier */ + id?: string; + /** Resource this event belongs to */ + resourceId: string; + /** Event type: provisioned, provisioning, updated, failed, deprovisioned, health_check */ + eventType: string; + /** User who triggered this event (NULL for system/automated) */ + actorId?: string; + /** Human-readable description of the event */ + message?: string; + /** Structured context (old/new values, error details, etc.) */ + metadata?: Record; } -export interface PlatformNamespacePatch { - name?: string | null; - namespaceName?: string | null; - description?: string | null; - isActive?: boolean | null; - labels?: Record | null; - annotations?: Record | null; - databaseId?: string | null; - sourceDatabaseId?: string | null; - sourceScope?: string | null; - isManaged?: boolean | null; +/** An input for mutations affecting `ResourceStatusCheck` */ +export interface ResourceStatusCheckInput { + /** Unique status check identifier */ + id?: string; + /** Resource to check */ + resourceId: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + /** User who requested the check (NULL for system/scheduled) */ + requestedBy?: string; + /** When the check was requested */ + requestedAt?: string; + /** When the check completed (NULL while pending/running) */ + completedAt?: string; + /** Check lifecycle: pending, running, completed, failed */ + status?: string; + /** Diagnostic snapshot: k8s_status, conditions, pod_logs_tail, events */ + result?: Record; } -export interface UpdatePlatformNamespaceInput { - clientMutationId?: string; - id: string; - platformNamespacePatch: PlatformNamespacePatch; +/** An input for mutations affecting `FunctionDeployment` */ +export interface FunctionDeploymentInput { + id?: string; + createdAt?: string; + updatedAt?: string; + /** Target namespace for this deployment (maps to a K8s namespace) */ + namespaceId: string; + /** Deployment lifecycle status: pending, provisioning, active, failed, scaled_to_zero, deactivated */ + status?: string; + /** Knative service URL (http://{service-name}.{namespace}.svc.cluster.local) — populated after provisioning */ + serviceUrl?: string; + /** 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; + /** Deployment revision number (incremented on each redeployment) */ + revision?: number; + /** 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; + /** Handler directory name (e.g. email, document) — used as FN_HANDLER_NAME in combined-image mode to select the entry point */ + handlerName?: string; + /** Max concurrent requests per pod (NULL = inherit from definition) */ + concurrency?: number; + /** Minimum replica count (NULL = inherit from definition or Knative default) */ + scaleMin?: number; + /** Maximum replica count (NULL = inherit from definition or Knative default) */ + scaleMax?: number; + /** Request timeout override in seconds (NULL = inherit from definition) */ + timeoutSeconds?: number; + /** K8s resource spec override: {"requests":{"cpu":"100m","memory":"128Mi"},"limits":{...}} */ + resources?: Record; + /** Most recent provisioning or runtime error message */ + lastError?: string; + /** Timestamp of the most recent error */ + lastErrorAt?: string; + /** Cumulative error count for this deployment */ + errorCount?: number; + /** Key/value pairs for selecting and filtering deployments */ + labels?: Record; + /** Freeform metadata for tooling and operational notes */ + annotations?: Record; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; } -export interface DeletePlatformNamespaceInput { - clientMutationId?: string; - id: string; +/** An input for mutations affecting `Resource` */ +export interface ResourceInput { + id?: string; + createdAt?: string; + updatedAt?: string; + createdBy?: string; + updatedBy?: string; + /** Namespace this resource belongs to (security boundary, maps to K8s namespace) */ + namespaceId: string; + /** Resource kind: Deployment, StatefulSet, Service, Ingress, Certificate */ + kind: string; + /** Human-readable resource name */ + name: 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, failed, draining, deleting */ + status?: string; + /** Observed state from K8s — populated by handlers after reconciliation (service_url, clone_url, replicas, etc.) */ + statusObserved?: Record; + /** Most recent provisioning or runtime error message */ + lastError?: string; + /** Cumulative error count for this resource */ + errorCount?: number; + /** Key/value pairs for selecting and filtering resources */ + labels?: Record; + /** Freeform metadata for tooling and operational notes */ + annotations?: Record; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + /** 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[]; + /** 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[]; + /** 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[]; + /** Definition template this resource was created from (NULL for standalone resources) */ + resourceDefinitionId?: string; +} +/** An input for mutations affecting `ResourceDefinition` */ +export interface ResourceDefinitionInput { + id?: string; + createdAt?: string; + updatedAt?: string; + createdBy?: string; + updatedBy?: string; + /** Namespace this definition belongs to (security boundary, maps to K8s namespace) */ + namespaceId: string; + /** Resource kind: Deployment, StatefulSet, Service, Ingress, Certificate, or custom kinds */ + kind: string; + /** Human-readable definition name */ + name: string; + /** URL-safe identifier, unique within (namespace_id, kind) */ + slug: string; + /** What this resource definition provides */ + description?: string; + /** Template spec for creating resource instances of this kind */ + defaultSpec?: Record; + /** Embedded secret requirements: array of (name, required, provider) tuples. provider is the integration slug this requirement belongs to, if any. */ + requiredSecrets?: ResourceRequirementInput[]; + /** Embedded config requirements: array of (name, required, provider) tuples. provider is the integration slug this requirement belongs to, if any. */ + requiredConfigs?: ResourceRequirementInput[]; + /** 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[]; + /** Key/value pairs for selecting and filtering definitions */ + labels?: Record; + /** Freeform metadata for tooling and operational notes */ + annotations?: Record; + /** Min age before DELETE of a resource of this kind requires step-up; NULL inherits the 6h default */ + stepUpMinAge?: IntervalInput; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; } -export interface CreateOrgFunctionInvocationInput { - clientMutationId?: string; - orgFunctionInvocation: { - actorId?: string; - taskIdentifier: string; - payload?: Record; - status?: string; - result?: Record; - error?: string; - durationMs?: number; - jobId?: string; - startedAt?: string; - completedAt?: string; - parentInvocationId?: string; - graphExecutionId?: string; - }; +/** An input for mutations affecting `FunctionDeploymentEvent` */ +export interface FunctionDeploymentEventInput { + /** Event timestamp (partition key) */ + createdAt?: string; + /** Unique event identifier */ + id?: string; + /** Deployment this event belongs to */ + deploymentId: string; + /** Event type: provisioned, scaled, failed, deactivated, redeployed, health_check */ + eventType: string; + /** User who triggered this event (NULL for system/automated) */ + actorId?: string; + /** Human-readable description of the event */ + message?: string; + /** Structured context (old/new values, error details, etc.) */ + metadata?: Record; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; } -export interface OrgFunctionInvocationPatch { - actorId?: string | null; - taskIdentifier?: string | null; - payload?: Record | null; - status?: string | null; - result?: Record | null; - error?: string | null; - durationMs?: number | null; - jobId?: string | null; - startedAt?: string | null; - completedAt?: string | null; - parentInvocationId?: string | null; - graphExecutionId?: string | null; +/** An input for mutations affecting `PlatformFunctionExecutionLog` */ +export interface PlatformFunctionExecutionLogInput { + /** 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; + /** Function routing key (NULL for generic job logs) */ + taskIdentifier?: string; + /** Log severity: debug, info, warn, error */ + logLevel?: string; + /** Log message text */ + message: string; + /** Structured context (labels, trace data, extra fields) */ + metadata?: Record; + /** User who triggered the execution (NULL for system/cron) */ + actorId?: string; } -export interface UpdateOrgFunctionInvocationInput { - clientMutationId?: string; - id: string; - orgFunctionInvocationPatch: OrgFunctionInvocationPatch; +/** An input for mutations affecting `ResourceEvent` */ +export interface ResourceEventInput { + /** Event timestamp (partition key) */ + createdAt?: string; + /** Unique event identifier */ + id?: string; + /** Resource this event belongs to */ + resourceId: string; + /** Event type: provisioned, provisioning, updated, failed, deprovisioned, health_check */ + eventType: string; + /** User who triggered this event (NULL for system/automated) */ + actorId?: string; + /** Human-readable description of the event */ + message?: string; + /** Structured context (old/new values, error details, etc.) */ + metadata?: Record; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; } -export interface DeleteOrgFunctionInvocationInput { - clientMutationId?: string; - id: string; +/** An input for mutations affecting `FunctionGraphExecutionOutput` */ +export interface FunctionGraphExecutionOutputInput { + /** Timestamp of output creation */ + createdAt?: string; + /** Unique execution output identifier */ + id?: string; + /** Opaque store partition key for the global tier */ + scopeId: string; + /** SHA-256 hash of the data JSONB — content-addressed deduplication */ + hash: Base64EncodedBinary; + /** The actual output payload from a completed node */ + data: Record; } -export interface CreateFunctionInvocationInput { - clientMutationId?: string; - functionInvocation: { - actorId?: string; - databaseId: string; - taskIdentifier: string; - payload?: Record; - status?: string; - result?: Record; - error?: string; - durationMs?: number; - jobId?: string; - startedAt?: string; - completedAt?: string; - parentInvocationId?: string; - graphExecutionId?: string; - }; +/** An input for mutations affecting `InfraCommit` */ +export interface InfraCommitInput { + /** Unique commit identifier */ + id?: string; + /** Optional commit message */ + message?: string; + /** Opaque store partition key for the global tier */ + scopeId: string; + /** Store this commit belongs to */ + storeId: string; + /** Parent commit IDs (supports merge commits) */ + parentIds?: string[]; + /** User who authored the changes */ + authorId?: string; + /** User who committed (may differ from author) */ + committerId?: string; + /** Root object ID of the tree snapshot at this commit */ + treeId?: string; + /** Commit timestamp */ + date?: string; } -export interface FunctionInvocationPatch { - actorId?: string | null; - databaseId?: string | null; - taskIdentifier?: string | null; - payload?: Record | null; - status?: string | null; - result?: Record | null; - error?: string | null; - durationMs?: number | null; - jobId?: string | null; - startedAt?: string | null; - completedAt?: string | null; - parentInvocationId?: string | null; - graphExecutionId?: string | null; +/** An input for mutations affecting `FunctionGraphCommit` */ +export interface FunctionGraphCommitInput { + /** Unique commit identifier */ + id?: string; + /** Optional commit message */ + message?: string; + /** Opaque store partition key for the global tier */ + scopeId: string; + /** Store this commit belongs to */ + storeId: string; + /** Parent commit IDs (supports merge commits) */ + parentIds?: string[]; + /** User who authored the changes */ + authorId?: string; + /** User who committed (may differ from author) */ + committerId?: string; + /** Root object ID of the tree snapshot at this commit */ + treeId?: string; + /** Commit timestamp */ + date?: string; } -export interface UpdateFunctionInvocationInput { - clientMutationId?: string; - id: string; - functionInvocationPatch: FunctionInvocationPatch; +/** An input for mutations affecting `FunctionExecutionLog` */ +export interface FunctionExecutionLogInput { + /** 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; + /** Function routing key (NULL for generic job logs) */ + taskIdentifier?: string; + /** Log severity: debug, info, warn, error */ + logLevel?: string; + /** Log message text */ + message: string; + /** Structured context (labels, trace data, extra fields) */ + metadata?: Record; + /** User who triggered the execution (NULL for system/cron) */ + actorId?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; } -export interface DeleteFunctionInvocationInput { - clientMutationId?: string; - id: string; +/** An input for mutations affecting `DbPreset` */ +export interface DbPresetInput { + /** Unique preset identifier */ + id?: string; + /** Infra Merkle store holding this preset's history (stamped by the versioned trigger) */ + storeId?: string; + /** Preset slug (unique per scope); the preset's path in the infra tree is [db_preset, slug] */ + slug: string; + /** Preset definition (modules + options) — the readily-cached head; history lives in the infra store */ + definition: Record; + /** Infra store commit for the current definition (stamped by the versioned trigger on every write) */ + commitId?: 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; + /** Human-readable preset name */ + label?: string; + /** Human-readable description of the preset */ + description?: string; + /** Whether this preset is selectable for new databases */ + active?: boolean; + /** Timestamp of preset creation */ + createdAt?: string; + /** Timestamp of last modification */ + updatedAt?: string; } -export interface CreatePlatformNamespaceEventInput { - clientMutationId?: string; - platformNamespaceEvent: { - namespaceId: string; - eventType: string; - actorId?: string; - message?: string; - metadata?: Record; - cpuMillicores?: number; - memoryBytes?: string; - storageBytes?: string; - networkIngressBytes?: string; - networkEgressBytes?: string; - podCount?: number; - metrics?: Record; - databaseId: string; - }; +/** An input for mutations affecting `PlatformNamespace` */ +export interface PlatformNamespaceInput { + id?: string; + createdAt?: string; + updatedAt?: string; + /** Human-readable namespace name (e.g. default, production, oauth) */ + name: string; + /** Globally unique computed namespace identifier via inflection.underscore */ + namespaceName: string; + /** Optional human-readable description of this namespace */ + description?: string; + /** Whether this namespace is active (soft-disable for filtering) */ + isActive?: boolean; + /** Namespace provisioning lifecycle status: pending, provisioning, active, failed */ + status?: string; + /** Most recent provisioning or reconcile error message */ + lastError?: string; + /** Key/value pairs for selecting and filtering namespaces */ + labels?: Record; + /** Freeform metadata for tooling and operational notes */ + annotations?: Record; + /** true = provisioned by the platform via jobs, false = unmanaged/platform-native (bootstrapped externally) */ + isManaged?: boolean; } -export interface PlatformNamespaceEventPatch { - namespaceId?: string | null; - eventType?: string | null; - actorId?: string | null; - message?: string | null; - metadata?: Record | null; - cpuMillicores?: number | null; - memoryBytes?: string | null; - storageBytes?: string | null; - networkIngressBytes?: string | null; - networkEgressBytes?: string | null; - podCount?: number | null; - metrics?: Record | null; - databaseId?: string | null; +/** An input for mutations affecting `FunctionGraphExecutionNodeState` */ +export interface FunctionGraphExecutionNodeStateInput { + /** Timestamp of node state creation (partition key) */ + createdAt?: string; + /** Unique node state identifier */ + id?: string; + /** FK to the parent graph execution */ + executionId: string; + /** Opaque store partition key for the global tier */ + scopeId: 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[]; + /** Node lifecycle: pending → queued → running → completed/failed */ + status?: string; + /** Timestamp when the node began executing */ + startedAt?: string; + /** Timestamp when the node finished (success or failure) */ + completedAt?: string; + /** Machine-readable error code when status = failed */ + errorCode?: string; + /** Human-readable error description when status = failed */ + errorMessage?: string; + /** FK to execution_outputs — content-addressed output blob for this node */ + outputId?: string; } -export interface UpdatePlatformNamespaceEventInput { - clientMutationId?: string; - id: string; - platformNamespaceEventPatch: PlatformNamespaceEventPatch; +/** An input for mutations affecting `Namespace` */ +export interface NamespaceInput { + id?: string; + createdAt?: string; + updatedAt?: string; + /** Human-readable namespace name (e.g. default, production, oauth) */ + name: string; + /** Globally unique computed namespace identifier via inflection.underscore */ + namespaceName: string; + /** Optional human-readable description of this namespace */ + description?: string; + /** Whether this namespace is active (soft-disable for filtering) */ + isActive?: boolean; + /** Namespace provisioning lifecycle status: pending, provisioning, active, failed */ + status?: string; + /** Most recent provisioning or reconcile error message */ + lastError?: string; + /** Key/value pairs for selecting and filtering namespaces */ + labels?: Record; + /** Freeform metadata for tooling and operational notes */ + annotations?: Record; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + /** true = provisioned by the platform via jobs, false = unmanaged/platform-native (bootstrapped externally) */ + isManaged?: boolean; } -export interface DeletePlatformNamespaceEventInput { - clientMutationId?: string; - id: string; +/** An input for mutations affecting `PlatformFunctionInvocation` */ +export interface PlatformFunctionInvocationInput { + /** Invocation creation timestamp (partition key) */ + createdAt?: string; + /** Unique invocation identifier */ + id?: string; + /** Who triggered the invocation (NULL for system/cron) */ + actorId?: string; + /** Function routing slug (scope:name). Links to function_definitions.task_identifier by convention — no FK. */ + taskIdentifier: string; + /** Function input payload */ + payload?: Record; + /** Lifecycle: pending → running → completed/failed/cancelled */ + status?: string; + /** Function return value (success) or structured error (failure) */ + result?: Record; + /** Error message when status is failed */ + error?: string; + /** Wall-clock execution time in milliseconds */ + durationMs?: number; + /** FK to app_jobs.jobs — the underlying transport */ + jobId?: string; + /** When execution started */ + startedAt?: string; + /** When execution completed */ + completedAt?: string; + /** Parent invocation when this is a child node of a flow graph execution */ + parentInvocationId?: string; + /** Groups all node invocations from a single flow graph execution */ + graphExecutionId?: string; } -export interface CreateFunctionGraphExecutionInput { - clientMutationId?: string; - functionGraphExecution: { - startedAt?: string; - graphId: string; - invocationId?: string; - databaseId: string; - outputNode: string; - outputPort?: string; - status?: string; - inputPayload?: Record; - outputPayload?: Record; - nodeOutputs?: Record; - executionPlan?: Record; - currentWave?: number; - parentExecutionId?: string; - parentNodeName?: string; - definitionsCommitId?: string; - tickCount?: number; - completedAt?: string; - maxTicks?: number; - maxPendingJobs?: number; - timeoutAt?: string; - errorCode?: string; - errorMessage?: string; - }; +/** An input for mutations affecting `FunctionInvocation` */ +export interface FunctionInvocationInput { + /** Invocation creation timestamp (partition key) */ + createdAt?: string; + /** Unique invocation identifier */ + id?: string; + /** Who triggered the invocation (NULL for system/cron) */ + actorId?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + /** Function routing slug (scope:name). Links to function_definitions.task_identifier by convention — no FK. */ + taskIdentifier: string; + /** Function input payload */ + payload?: Record; + /** Lifecycle: pending → running → completed/failed/cancelled */ + status?: string; + /** Function return value (success) or structured error (failure) */ + result?: Record; + /** Error message when status is failed */ + error?: string; + /** Wall-clock execution time in milliseconds */ + durationMs?: number; + /** FK to app_jobs.jobs — the underlying transport */ + jobId?: string; + /** When execution started */ + startedAt?: string; + /** When execution completed */ + completedAt?: string; + /** Parent invocation when this is a child node of a flow graph execution */ + parentInvocationId?: string; + /** Groups all node invocations from a single flow graph execution */ + graphExecutionId?: string; +} +/** An input for mutations affecting `PlatformNamespaceEvent` */ +export interface PlatformNamespaceEventInput { + /** Event timestamp (partition key) */ + createdAt?: string; + /** Unique event identifier */ + id?: string; + /** Namespace this event belongs to */ + namespaceId: string; + /** Event type: created, activated, deactivated, labels_updated, annotations_updated, renamed */ + eventType: string; + /** User who triggered this event (NULL for system/automated) */ + actorId?: string; + /** Human-readable description of the event */ + message?: string; + /** Structured context (old/new values, labels diff, etc.) */ + metadata?: Record; + /** CPU usage in millicores at time of event */ + cpuMillicores?: number; + /** Memory usage in bytes at time of event */ + memoryBytes?: string; + /** Storage usage in bytes at time of event */ + storageBytes?: string; + /** Network ingress in bytes during event window */ + networkIngressBytes?: string; + /** Network egress in bytes during event window */ + networkEgressBytes?: string; + /** Number of active pods in the namespace at time of event */ + podCount?: number; + /** Additional resource metrics (gpu, replicas, quotas, etc.) */ + metrics?: Record; } -export interface FunctionGraphExecutionPatch { - startedAt?: string | null; - graphId?: string | null; - invocationId?: string | null; - databaseId?: string | null; - outputNode?: string | null; - outputPort?: string | null; - status?: string | null; - inputPayload?: Record | null; - outputPayload?: Record | null; - nodeOutputs?: Record | null; - executionPlan?: Record | null; - currentWave?: number | null; - parentExecutionId?: string | null; - parentNodeName?: string | null; - definitionsCommitId?: string | null; - tickCount?: number | null; - completedAt?: string | null; - maxTicks?: number | null; - maxPendingJobs?: number | null; - timeoutAt?: string | null; - errorCode?: string | null; - errorMessage?: string | null; +/** An input for mutations affecting `IntegrationProvider` */ +export interface IntegrationProviderInput { + id?: string; + createdAt?: string; + updatedAt?: string; + /** Stable URL-safe identifier for the provider. Other tables match by this string, not by FK. */ + slug: string; + /** Human-readable brand name (e.g. 'Mailgun', 'PostgreSQL') */ + name: string; + /** Short description of what this integration provides and when to use it */ + description?: string; + /** Browser category (e.g. email, database, storage, ai, analytics) */ + category?: string; + /** Icon identifier for the UI (e.g. mail, database, cloud) */ + icon?: string; + /** Provider logo as an image domain value (url, id, key, bucket, provider) */ + logo?: ConstructiveInternalTypeImage; + /** Brand metadata: colors, fonts, and other provider-specific styling. Not a foreign key. */ + brand?: Record; + /** 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[]; + /** 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[]; +} +/** An input for mutations affecting `NamespaceEvent` */ +export interface NamespaceEventInput { + /** Event timestamp (partition key) */ + createdAt?: string; + /** Unique event identifier */ + id?: string; + /** Namespace this event belongs to */ + namespaceId: string; + /** Event type: created, activated, deactivated, labels_updated, annotations_updated, renamed */ + eventType: string; + /** User who triggered this event (NULL for system/automated) */ + actorId?: string; + /** Human-readable description of the event */ + message?: string; + /** Structured context (old/new values, labels diff, etc.) */ + metadata?: Record; + /** CPU usage in millicores at time of event */ + cpuMillicores?: number; + /** Memory usage in bytes at time of event */ + memoryBytes?: string; + /** Storage usage in bytes at time of event */ + storageBytes?: string; + /** Network ingress in bytes during event window */ + networkIngressBytes?: string; + /** Network egress in bytes during event window */ + networkEgressBytes?: string; + /** Number of active pods in the namespace at time of event */ + podCount?: number; + /** Additional resource metrics (gpu, replicas, quotas, etc.) */ + metrics?: Record; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; } -export interface UpdateFunctionGraphExecutionInput { - clientMutationId?: string; - id: string; - functionGraphExecutionPatch: FunctionGraphExecutionPatch; +/** An input for mutations affecting `FunctionGraphExecution` */ +export interface FunctionGraphExecutionInput { + /** Execution start timestamp */ + startedAt?: string; + /** Unique execution identifier */ + id?: string; + /** FK to the graph definition being executed */ + graphId: string; + /** Parent function_invocations row (for metering) */ + invocationId?: string; + /** Opaque store partition key for the global tier */ + scopeId: string; + /** Target output boundary node name to resolve; NULL derives completion from the graph's graphOutput nodes */ + outputNode?: string; + /** Target output port name (default: value) */ + outputPort?: string; + /** Lifecycle: pending → running → completed/failed/cancelled */ + status?: string; + /** Initial inputs provided at invocation time */ + inputPayload?: Record; + /** Final result extracted from terminal output node */ + outputPayload?: Record; + /** Map of node_name → execution output id (content-addressed hash reference) */ + nodeOutputs?: Record; + /** Pre-computed topological sort as array of wave objects */ + executionPlan?: Record; + /** Index into execution_plan — tick only processes this wave */ + currentWave?: number; + /** Parent execution when this is a sub-execution */ + parentExecutionId?: string; + /** Node name in parent execution that spawned this sub-execution */ + parentNodeName?: string; + /** Pinned definitions store commit for deterministic evaluation */ + definitionsCommitId?: string; + /** Number of evaluate_step ticks executed */ + tickCount?: number; + /** Execution completion timestamp */ + completedAt?: string; + /** Maximum ticks before execution is failed (default 100) */ + maxTicks?: number; + /** Maximum pending jobs before execution is failed (default 50) */ + maxPendingJobs?: number; + /** Absolute deadline — execution fails if still running after this time */ + timeoutAt?: string; + /** Timestamp of the last real progress (node enqueue, node output, completion) — drives the activity-debounced watchdog */ + lastProgressAt?: string; + /** Machine-readable error code when status = failed */ + errorCode?: string; + /** Human-readable error description when status = failed */ + errorMessage?: string; } -export interface DeleteFunctionGraphExecutionInput { - clientMutationId?: string; - id: string; +/** An input for mutations affecting `PlatformFunctionDefinition` */ +export interface PlatformFunctionDefinitionInput { + id?: string; + createdAt?: string; + updatedAt?: string; + /** Function grouping scope (e.g. email, embed, chunk, custom) */ + scope: string; + /** Function name within scope (e.g. send_verification_link, process_file_embedding) */ + name: string; + /** Computed routing slug: scope:name (used by Knative job worker for dispatch) */ + taskIdentifier: string; + /** Human-readable description of what this function does */ + description?: string; + /** Whether this function definition is published to the public catalog for direct authenticated invocation. Default false = internal-only via add_job() */ + isPublished?: boolean; + /** Non-public invocation channels this function may be exposed through (api, graph). Internal job dispatch is implicit and never listed. Default [] = job worker only. */ + accessChannels?: string[]; + /** Timestamp when this function was published. NULL means immediately published when is_published is true; future timestamps delay public visibility */ + publishedAt?: string; + /** Maximum retry attempts for the underlying job */ + maxAttempts?: number; + /** Job priority (lower = higher priority) */ + priority?: number; + /** Job queue name for serialization (e.g. email, ai, default) */ + queueName?: string; + /** Execution mode: http (Knative Service dispatch), inline (in-process in compute worker), handler (registered infrastructure handler), or sql (generic SQL dispatch via a trusted direct target or module-resolved function names) */ + runtime?: string; + /** Schema of the SQL function to invoke when runtime=sql (direct mode). NULL for module mode and other runtimes. */ + targetSchema?: string; + /** Name of the SQL function to invoke when runtime=sql (direct mode). NULL for module mode and other runtimes. */ + targetFunction?: string; + /** metaschema_modules_public table whose per-database row carries the generated function names when runtime=sql (module mode). NULL for direct mode and other runtimes. */ + moduleTable?: string; + /** 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; + /** Ordered bind-parameter mapping for runtime=sql: [{name, type}]. payload[name] is bound as $n::type. */ + payloadArgs?: Record; + /** Docker image reference (e.g. ghcr.io/constructive-io/email-send-fn:latest). Required when runtime=http. NULL for inline functions. */ + image?: string; + /** Knative containerConcurrency — max concurrent requests per pod instance */ + concurrency?: number; + /** Minimum pod count for Knative autoscaling (minScale) */ + scaleMin?: number; + /** Maximum pod count for Knative autoscaling (maxScale) */ + scaleMax?: number; + /** Knative request timeout in seconds */ + timeoutSeconds?: number; + /** Container resource requests and limits: {requests: {memory, cpu}, limits: {memory, cpu}} */ + resources?: Record; + /** Whether this function is a built-in platform function (synced from platform) vs user-created */ + isBuiltIn?: boolean; + /** Embedded secret requirements: array of (name, required, provider) tuples. provider is the integration slug this requirement belongs to, if any. */ + requiredSecrets?: ResourceRequirementInput[]; + /** Embedded config requirements: array of (name, required, provider) tuples. provider is the integration slug this requirement belongs to, if any. */ + 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. */ + integrations?: string[]; + /** Bucket keys this function needs (e.g. uploads, exports). Empty = no bucket requirements. */ + requiredBuckets?: string[]; + /** Inference model whitelist (e.g. gpt-4o, claude-3). Empty = no model requirements. */ + requiredModels?: string[]; + /** Data input ports: [{name, type, description?, optional?, multi?, schema?}] */ + inputs?: Record; + /** Data output ports: [{name, type, description?, optional?, multi?, schema?}] */ + outputs?: Record; + /** Configuration properties: [{name, type, default?, description?, required?, schema?}] */ + props?: Record; + /** Whether this function has side effects and cannot be cached or memoized */ + volatile?: boolean; + /** Icon identifier for UI palette rendering (e.g. mail, database, code) */ + icon?: string; + /** Palette grouping category (e.g. email, data, ai, custom) */ + category?: string; } -export interface CreateFunctionDefinitionInput { - clientMutationId?: string; - functionDefinition: { - scope: string; - name: string; - taskIdentifier: string; - description?: string; - isInvocable?: boolean; - maxAttempts?: number; - priority?: number; - queueName?: string; - runtime?: string; - image?: string; - concurrency?: number; - scaleMin?: number; - scaleMax?: number; - timeoutSeconds?: number; - resources?: Record; - isBuiltIn?: boolean; - requiredSecrets?: FunctionRequirementInput[]; - requiredConfigs?: FunctionRequirementInput[]; - requiredBuckets?: string[]; - requiredModels?: string[]; - inputs?: Record; - outputs?: Record; - props?: Record; - volatile?: boolean; - icon?: string; - category?: string; - }; +/** An input for mutations affecting `FunctionDefinition` */ +export interface FunctionDefinitionInput { + id?: string; + createdAt?: string; + updatedAt?: string; + /** Function grouping scope (e.g. email, embed, chunk, custom) */ + scope: string; + /** Function name within scope (e.g. send_verification_link, process_file_embedding) */ + name: string; + /** Computed routing slug: scope:name (used by Knative job worker for dispatch) */ + taskIdentifier: string; + /** Human-readable description of what this function does */ + description?: string; + /** Whether this function definition is published to the public catalog for direct authenticated invocation. Default false = internal-only via add_job() */ + isPublished?: boolean; + /** Non-public invocation channels this function may be exposed through (api, graph). Internal job dispatch is implicit and never listed. Default [] = job worker only. */ + accessChannels?: string[]; + /** Timestamp when this function was published. NULL means immediately published when is_published is true; future timestamps delay public visibility */ + publishedAt?: string; + /** Maximum retry attempts for the underlying job */ + maxAttempts?: number; + /** Job priority (lower = higher priority) */ + priority?: number; + /** Job queue name for serialization (e.g. email, ai, default) */ + queueName?: string; + /** Execution mode: http (Knative Service dispatch), inline (in-process in compute worker), handler (registered infrastructure handler), or sql (generic SQL dispatch via a trusted direct target or module-resolved function names) */ + runtime?: string; + /** Schema of the SQL function to invoke when runtime=sql (direct mode). NULL for module mode and other runtimes. */ + targetSchema?: string; + /** Name of the SQL function to invoke when runtime=sql (direct mode). NULL for module mode and other runtimes. */ + targetFunction?: string; + /** metaschema_modules_public table whose per-database row carries the generated function names when runtime=sql (module mode). NULL for direct mode and other runtimes. */ + moduleTable?: string; + /** 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; + /** Ordered bind-parameter mapping for runtime=sql: [{name, type}]. payload[name] is bound as $n::type. */ + payloadArgs?: Record; + /** Docker image reference (e.g. ghcr.io/constructive-io/email-send-fn:latest). Required when runtime=http. NULL for inline functions. */ + image?: string; + /** Knative containerConcurrency — max concurrent requests per pod instance */ + concurrency?: number; + /** Minimum pod count for Knative autoscaling (minScale) */ + scaleMin?: number; + /** Maximum pod count for Knative autoscaling (maxScale) */ + scaleMax?: number; + /** Knative request timeout in seconds */ + timeoutSeconds?: number; + /** Container resource requests and limits: {requests: {memory, cpu}, limits: {memory, cpu}} */ + resources?: Record; + /** Whether this function is a built-in platform function (synced from platform) vs user-created */ + isBuiltIn?: boolean; + /** Embedded secret requirements: array of (name, required, provider) tuples. provider is the integration slug this requirement belongs to, if any. */ + requiredSecrets?: ResourceRequirementInput[]; + /** Embedded config requirements: array of (name, required, provider) tuples. provider is the integration slug this requirement belongs to, if any. */ + 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. */ + integrations?: string[]; + /** Bucket keys this function needs (e.g. uploads, exports). Empty = no bucket requirements. */ + requiredBuckets?: string[]; + /** Inference model whitelist (e.g. gpt-4o, claude-3). Empty = no model requirements. */ + requiredModels?: string[]; + /** Data input ports: [{name, type, description?, optional?, multi?, schema?}] */ + inputs?: Record; + /** Data output ports: [{name, type, description?, optional?, multi?, schema?}] */ + outputs?: Record; + /** Configuration properties: [{name, type, default?, description?, required?, schema?}] */ + props?: Record; + /** Whether this function has side effects and cannot be cached or memoized */ + volatile?: boolean; + /** Icon identifier for UI palette rendering (e.g. mail, database, code) */ + icon?: string; + /** Palette grouping category (e.g. email, data, ai, custom) */ + category?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; } -export interface FunctionDefinitionPatch { - scope?: string | null; - name?: string | null; - taskIdentifier?: string | null; - description?: string | null; - isInvocable?: boolean | null; - maxAttempts?: number | null; - priority?: number | null; - queueName?: string | null; - runtime?: string | null; - image?: string | null; - concurrency?: number | null; - scaleMin?: number | null; - scaleMax?: number | null; - timeoutSeconds?: number | null; - resources?: Record | null; - isBuiltIn?: boolean | null; - requiredSecrets?: FunctionRequirementInput[] | null; - requiredConfigs?: FunctionRequirementInput[] | null; - requiredBuckets?: string[] | null; - requiredModels?: string[] | null; - inputs?: Record | null; - outputs?: Record | null; - props?: Record | null; - volatile?: boolean | null; - icon?: string | null; - category?: string | null; +/** A filter to be used against `PlatformResourceStatusCheck` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformResourceStatusCheckFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `resourceId` field. */ + resourceId?: UUIDFilter; + /** Filter by the object’s `requestedBy` field. */ + requestedBy?: UUIDFilter; + /** Filter by the object’s `requestedAt` field. */ + requestedAt?: DatetimeFilter; + /** Filter by the object’s `completedAt` field. */ + completedAt?: DatetimeFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `result` field. */ + result?: JSONFilter; + /** Checks for all expressions in this list. */ + and?: PlatformResourceStatusCheckFilter[]; + /** Checks for any expressions in this list. */ + or?: PlatformResourceStatusCheckFilter[]; + /** Negates the expression. */ + not?: PlatformResourceStatusCheckFilter; + /** Filter by the object’s `resource` relation. */ + resource?: PlatformResourceFilter; } -export interface UpdateFunctionDefinitionInput { - clientMutationId?: string; - id: string; - functionDefinitionPatch: FunctionDefinitionPatch; +/** A filter to be used against `ResourceStatusCheck` object types. All fields are combined with a logical ‘and.’ */ +export interface ResourceStatusCheckFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `resourceId` field. */ + resourceId?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `requestedBy` field. */ + requestedBy?: UUIDFilter; + /** Filter by the object’s `requestedAt` field. */ + requestedAt?: DatetimeFilter; + /** Filter by the object’s `completedAt` field. */ + completedAt?: DatetimeFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `result` field. */ + result?: JSONFilter; + /** Checks for all expressions in this list. */ + and?: ResourceStatusCheckFilter[]; + /** Checks for any expressions in this list. */ + or?: ResourceStatusCheckFilter[]; + /** Negates the expression. */ + not?: ResourceStatusCheckFilter; + /** Filter by the object’s `resource` relation. */ + resource?: ResourceFilter; } -export interface DeleteFunctionDefinitionInput { - clientMutationId?: string; - id: string; +/** A filter to be used against `PlatformFunctionDeployment` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformFunctionDeploymentFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `serviceUrl` field. */ + serviceUrl?: StringFilter; + /** Filter by the object’s `serviceName` field. */ + serviceName?: StringFilter; + /** Filter by the object’s `revision` field. */ + revision?: IntFilter; + /** Filter by the object’s `image` field. */ + image?: StringFilter; + /** Filter by the object’s `imageVersion` field. */ + imageVersion?: StringFilter; + /** Filter by the object’s `handlerName` field. */ + handlerName?: StringFilter; + /** Filter by the object’s `concurrency` field. */ + concurrency?: IntFilter; + /** Filter by the object’s `scaleMin` field. */ + scaleMin?: IntFilter; + /** Filter by the object’s `scaleMax` field. */ + scaleMax?: IntFilter; + /** Filter by the object’s `timeoutSeconds` field. */ + timeoutSeconds?: IntFilter; + /** Filter by the object’s `resources` field. */ + resources?: JSONFilter; + /** Filter by the object’s `lastError` field. */ + lastError?: StringFilter; + /** Filter by the object’s `lastErrorAt` field. */ + lastErrorAt?: DatetimeFilter; + /** Filter by the object’s `errorCount` field. */ + errorCount?: IntFilter; + /** Filter by the object’s `labels` field. */ + labels?: JSONFilter; + /** Filter by the object’s `annotations` field. */ + annotations?: JSONFilter; + /** Checks for all expressions in this list. */ + and?: PlatformFunctionDeploymentFilter[]; + /** Checks for any expressions in this list. */ + or?: PlatformFunctionDeploymentFilter[]; + /** Negates the expression. */ + not?: PlatformFunctionDeploymentFilter; + /** Filter by the object’s `namespace` relation. */ + namespace?: PlatformNamespaceFilter; } -// ============ Connection Fields Map ============ -export const connectionFieldsMap = { - PlatformNamespace: { - functionDeploymentsByNamespaceId: 'FunctionDeployment', - resourcesByNamespaceId: 'Resource', - }, - FunctionDefinition: { - functionApiBindings: 'FunctionApiBinding', - functionDeployments: 'FunctionDeployment', - }, -} as Record>; -// ============ Custom Input Types (from schema) ============ -export interface ValidateFunctionGraphInput { - clientMutationId?: string; - graphId?: string; +/** A filter to be used against `PlatformResource` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformResourceFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; + /** Filter by the object’s `kind` field. */ + kind?: StringFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** 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 `lastError` field. */ + lastError?: StringFilter; + /** Filter by the object’s `errorCount` field. */ + errorCount?: IntFilter; + /** Filter by the object’s `labels` field. */ + labels?: JSONFilter; + /** Filter by the object’s `annotations` field. */ + annotations?: JSONFilter; + /** Filter by the object’s `integrations` field. */ + integrations?: StringListFilter; + /** Filter by the object’s `resourceDefinitionId` field. */ + resourceDefinitionId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: PlatformResourceFilter[]; + /** Checks for any expressions in this list. */ + or?: PlatformResourceFilter[]; + /** Negates the expression. */ + not?: PlatformResourceFilter; + /** Filter by the object’s `namespace` relation. */ + namespace?: PlatformNamespaceFilter; + /** Filter by the object’s `resourceDefinition` relation. */ + resourceDefinition?: PlatformResourceDefinitionFilter; + /** A related `resourceDefinition` exists. */ + resourceDefinitionExists?: boolean; + /** Filter by the object’s `platformResourceStatusChecksByResourceId` relation. */ + platformResourceStatusChecksByResourceId?: PlatformResourceToManyPlatformResourceStatusCheckFilter; + /** `platformResourceStatusChecksByResourceId` exist. */ + platformResourceStatusChecksByResourceIdExist?: boolean; +} +/** A filter to be used against `PlatformResourceDefinition` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformResourceDefinitionFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; + /** Filter by the object’s `kind` field. */ + kind?: StringFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `slug` field. */ + slug?: StringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `defaultSpec` field. */ + defaultSpec?: JSONFilter; + /** Filter by the object’s `integrations` field. */ + integrations?: StringListFilter; + /** Filter by the object’s `labels` field. */ + labels?: JSONFilter; + /** Filter by the object’s `annotations` field. */ + annotations?: JSONFilter; + /** Filter by the object’s `stepUpMinAge` field. */ + stepUpMinAge?: IntervalFilter; + /** Checks for all expressions in this list. */ + and?: PlatformResourceDefinitionFilter[]; + /** Checks for any expressions in this list. */ + or?: PlatformResourceDefinitionFilter[]; + /** Negates the expression. */ + not?: PlatformResourceDefinitionFilter; + /** Filter by the object’s `namespace` relation. */ + namespace?: PlatformNamespaceFilter; } -export interface InitEmptyRepoInput { - clientMutationId?: string; - sId?: string; - storeId?: string; +/** A filter to be used against `FunctionDeployment` object types. All fields are combined with a logical ‘and.’ */ +export interface FunctionDeploymentFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `serviceUrl` field. */ + serviceUrl?: StringFilter; + /** Filter by the object’s `serviceName` field. */ + serviceName?: StringFilter; + /** Filter by the object’s `revision` field. */ + revision?: IntFilter; + /** Filter by the object’s `image` field. */ + image?: StringFilter; + /** Filter by the object’s `imageVersion` field. */ + imageVersion?: StringFilter; + /** Filter by the object’s `handlerName` field. */ + handlerName?: StringFilter; + /** Filter by the object’s `concurrency` field. */ + concurrency?: IntFilter; + /** Filter by the object’s `scaleMin` field. */ + scaleMin?: IntFilter; + /** Filter by the object’s `scaleMax` field. */ + scaleMax?: IntFilter; + /** Filter by the object’s `timeoutSeconds` field. */ + timeoutSeconds?: IntFilter; + /** Filter by the object’s `resources` field. */ + resources?: JSONFilter; + /** Filter by the object’s `lastError` field. */ + lastError?: StringFilter; + /** Filter by the object’s `lastErrorAt` field. */ + lastErrorAt?: DatetimeFilter; + /** Filter by the object’s `errorCount` field. */ + errorCount?: IntFilter; + /** Filter by the object’s `labels` field. */ + labels?: JSONFilter; + /** Filter by the object’s `annotations` field. */ + annotations?: JSONFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: FunctionDeploymentFilter[]; + /** Checks for any expressions in this list. */ + or?: FunctionDeploymentFilter[]; + /** Negates the expression. */ + not?: FunctionDeploymentFilter; + /** Filter by the object’s `namespace` relation. */ + namespace?: NamespaceFilter; } -export interface SetDataAtPathInput { - clientMutationId?: string; - sId?: string; - root?: string; - path?: string[]; - data?: Record; +/** A filter to be used against `Resource` object types. All fields are combined with a logical ‘and.’ */ +export interface ResourceFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; + /** Filter by the object’s `kind` field. */ + kind?: StringFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** 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 `lastError` field. */ + lastError?: StringFilter; + /** Filter by the object’s `errorCount` field. */ + errorCount?: IntFilter; + /** Filter by the object’s `labels` field. */ + labels?: JSONFilter; + /** Filter by the object’s `annotations` field. */ + annotations?: JSONFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `integrations` field. */ + integrations?: StringListFilter; + /** Filter by the object’s `resourceDefinitionId` field. */ + resourceDefinitionId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: ResourceFilter[]; + /** Checks for any expressions in this list. */ + or?: ResourceFilter[]; + /** Negates the expression. */ + not?: ResourceFilter; + /** Filter by the object’s `namespace` relation. */ + namespace?: NamespaceFilter; + /** Filter by the object’s `resourceDefinition` relation. */ + resourceDefinition?: ResourceDefinitionFilter; + /** A related `resourceDefinition` exists. */ + resourceDefinitionExists?: boolean; + /** Filter by the object’s `resourceStatusChecks` relation. */ + resourceStatusChecks?: ResourceToManyResourceStatusCheckFilter; + /** `resourceStatusChecks` exist. */ + resourceStatusChecksExist?: boolean; +} +/** A filter to be used against `ResourceDefinition` object types. All fields are combined with a logical ‘and.’ */ +export interface ResourceDefinitionFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; + /** Filter by the object’s `kind` field. */ + kind?: StringFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `slug` field. */ + slug?: StringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `defaultSpec` field. */ + defaultSpec?: JSONFilter; + /** Filter by the object’s `integrations` field. */ + integrations?: StringListFilter; + /** Filter by the object’s `labels` field. */ + labels?: JSONFilter; + /** Filter by the object’s `annotations` field. */ + annotations?: JSONFilter; + /** Filter by the object’s `stepUpMinAge` field. */ + stepUpMinAge?: IntervalFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: ResourceDefinitionFilter[]; + /** Checks for any expressions in this list. */ + or?: ResourceDefinitionFilter[]; + /** Negates the expression. */ + not?: ResourceDefinitionFilter; + /** Filter by the object’s `namespace` relation. */ + namespace?: NamespaceFilter; } -export interface ImportDefinitionsInput { - clientMutationId?: string; - graphId?: string; - sourceScopeId?: string; - sourceCommitId?: string; - contexts?: 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 `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `functionDefinitionId` field. */ + functionDefinitionId?: UUIDFilter; + /** Filter by the object’s `apiId` field. */ + apiId?: UUIDFilter; + /** Filter by the object’s `alias` field. */ + alias?: StringFilter; + /** Filter by the object’s `config` field. */ + config?: JSONFilter; + /** Checks for all expressions in this list. */ + and?: PlatformFunctionApiBindingFilter[]; + /** Checks for any expressions in this list. */ + or?: PlatformFunctionApiBindingFilter[]; + /** Negates the expression. */ + not?: PlatformFunctionApiBindingFilter; + /** Filter by the object’s `functionDefinition` relation. */ + functionDefinition?: PlatformFunctionDefinitionFilter; } -export interface CopyGraphInput { - clientMutationId?: string; - databaseId?: string; - graphId?: string; - name?: 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 `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `functionDefinitionId` field. */ + functionDefinitionId?: UUIDFilter; + /** Filter by the object’s `apiId` field. */ + apiId?: UUIDFilter; + /** Filter by the object’s `alias` field. */ + alias?: StringFilter; + /** Filter by the object’s `config` field. */ + config?: JSONFilter; + /** Checks for all expressions in this list. */ + and?: FunctionApiBindingFilter[]; + /** Checks for any expressions in this list. */ + or?: FunctionApiBindingFilter[]; + /** Negates the expression. */ + not?: FunctionApiBindingFilter; + /** Filter by the object’s `functionDefinition` relation. */ + functionDefinition?: FunctionDefinitionFilter; } -export interface SaveGraphInput { - clientMutationId?: string; - graphId?: string; - rootHash?: string; - message?: string; +/** A filter to be used against UUID fields. All fields are combined with a logical ‘and.’ */ +export interface UUIDFilter { + /** Is null (if `true` is specified) or is not null (if `false` is specified). */ + isNull?: boolean; + /** Equal to the specified value. */ + equalTo?: string; + /** Not equal to the specified value. */ + notEqualTo?: string; + /** Not equal to the specified value, treating null like an ordinary value. */ + distinctFrom?: string; + /** Equal to the specified value, treating null like an ordinary value. */ + notDistinctFrom?: string; + /** Included in the specified list. */ + in?: string[]; + /** Not included in the specified list. */ + notIn?: string[]; + /** Less than the specified value. */ + lessThan?: string; + /** Less than or equal to the specified value. */ + lessThanOrEqualTo?: string; + /** Greater than the specified value. */ + greaterThan?: string; + /** Greater than or equal to the specified value. */ + greaterThanOrEqualTo?: string; } -export interface AddEdgeAndSaveInput { - clientMutationId?: string; - graphId?: string; - srcNode?: string; - srcPort?: string; - dstNode?: string; - dstPort?: string; - message?: string; +/** A filter to be used against Datetime fields. All fields are combined with a logical ‘and.’ */ +export interface DatetimeFilter { + /** Is null (if `true` is specified) or is not null (if `false` is specified). */ + isNull?: boolean; + /** Equal to the specified value. */ + equalTo?: string; + /** Not equal to the specified value. */ + notEqualTo?: string; + /** Not equal to the specified value, treating null like an ordinary value. */ + distinctFrom?: string; + /** Equal to the specified value, treating null like an ordinary value. */ + notDistinctFrom?: string; + /** Included in the specified list. */ + in?: string[]; + /** Not included in the specified list. */ + notIn?: string[]; + /** Less than the specified value. */ + lessThan?: string; + /** Less than or equal to the specified value. */ + lessThanOrEqualTo?: string; + /** Greater than the specified value. */ + greaterThan?: string; + /** Greater than or equal to the specified value. */ + greaterThanOrEqualTo?: string; } -export interface AddNodeAndSaveInput { - clientMutationId?: string; - graphId?: string; - nodeName?: string; - nodeType?: string; - props?: Record; - meta?: Record; - message?: string; +/** A filter to be used against String fields. All fields are combined with a logical ‘and.’ */ +export interface StringFilter { + /** Is null (if `true` is specified) or is not null (if `false` is specified). */ + isNull?: boolean; + /** Equal to the specified value. */ + equalTo?: string; + /** Not equal to the specified value. */ + notEqualTo?: string; + /** Not equal to the specified value, treating null like an ordinary value. */ + distinctFrom?: string; + /** Equal to the specified value, treating null like an ordinary value. */ + notDistinctFrom?: string; + /** Included in the specified list. */ + in?: string[]; + /** Not included in the specified list. */ + notIn?: string[]; + /** Less than the specified value. */ + lessThan?: string; + /** Less than or equal to the specified value. */ + lessThanOrEqualTo?: string; + /** Greater than the specified value. */ + greaterThan?: string; + /** Greater than or equal to the specified value. */ + greaterThanOrEqualTo?: string; + /** Contains the specified string (case-sensitive). */ + includes?: string; + /** Does not contain the specified string (case-sensitive). */ + notIncludes?: string; + /** Contains the specified string (case-insensitive). */ + includesInsensitive?: string; + /** Does not contain the specified string (case-insensitive). */ + notIncludesInsensitive?: string; + /** Starts with the specified string (case-sensitive). */ + startsWith?: string; + /** Does not start with the specified string (case-sensitive). */ + notStartsWith?: string; + /** Starts with the specified string (case-insensitive). */ + startsWithInsensitive?: string; + /** Does not start with the specified string (case-insensitive). */ + notStartsWithInsensitive?: string; + /** Ends with the specified string (case-sensitive). */ + endsWith?: string; + /** Does not end with the specified string (case-sensitive). */ + notEndsWith?: string; + /** Ends with the specified string (case-insensitive). */ + endsWithInsensitive?: string; + /** Does not end with the specified string (case-insensitive). */ + notEndsWithInsensitive?: string; + /** Matches the specified pattern (case-sensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. */ + like?: string; + /** Does not match the specified pattern (case-sensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. */ + notLike?: string; + /** Matches the specified pattern (case-insensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. */ + likeInsensitive?: string; + /** Does not match the specified pattern (case-insensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. */ + notLikeInsensitive?: string; + /** Equal to the specified value (case-insensitive). */ + equalToInsensitive?: string; + /** Not equal to the specified value (case-insensitive). */ + notEqualToInsensitive?: string; + /** Not equal to the specified value, treating null like an ordinary value (case-insensitive). */ + distinctFromInsensitive?: string; + /** Equal to the specified value, treating null like an ordinary value (case-insensitive). */ + notDistinctFromInsensitive?: string; + /** Included in the specified list (case-insensitive). */ + inInsensitive?: string[]; + /** Not included in the specified list (case-insensitive). */ + notInInsensitive?: string[]; + /** Less than the specified value (case-insensitive). */ + lessThanInsensitive?: string; + /** Less than or equal to the specified value (case-insensitive). */ + lessThanOrEqualToInsensitive?: string; + /** Greater than the specified value (case-insensitive). */ + greaterThanInsensitive?: string; + /** Greater than or equal to the specified value (case-insensitive). */ + greaterThanOrEqualToInsensitive?: string; } -export interface ImportGraphJsonInput { - clientMutationId?: string; - databaseId?: string; - name?: string; - graphJson?: Record; - context?: string; - description?: string; - createdBy?: string; - definitionsCommitId?: string; +/** A filter to be used against JSON fields. All fields are combined with a logical ‘and.’ */ +export interface JSONFilter { + /** Is null (if `true` is specified) or is not null (if `false` is specified). */ + isNull?: boolean; + /** Equal to the specified value. */ + equalTo?: Record; + /** Not equal to the specified value. */ + notEqualTo?: Record; + /** Not equal to the specified value, treating null like an ordinary value. */ + distinctFrom?: Record; + /** Equal to the specified value, treating null like an ordinary value. */ + notDistinctFrom?: Record; + /** Included in the specified list. */ + in?: Record[]; + /** Not included in the specified list. */ + notIn?: Record[]; + /** Less than the specified value. */ + lessThan?: Record; + /** Less than or equal to the specified value. */ + lessThanOrEqualTo?: Record; + /** Greater than the specified value. */ + greaterThan?: Record; + /** Greater than or equal to the specified value. */ + greaterThanOrEqualTo?: Record; + /** Contains the specified JSON. */ + contains?: Record; + /** Contains the specified key. */ + containsKey?: string; + /** Contains all of the specified keys. */ + containsAllKeys?: string[]; + /** Contains any of the specified keys. */ + containsAnyKeys?: string[]; + /** Contained by the specified JSON. */ + containedBy?: Record; } -export interface AddEdgeInput { - clientMutationId?: string; - databaseId?: string; - rootHash?: string; - srcNode?: string; - srcPort?: string; - dstNode?: string; - dstPort?: string; - context?: string; - graphName?: string; +/** A filter to be used against Int fields. All fields are combined with a logical ‘and.’ */ +export interface IntFilter { + /** Is null (if `true` is specified) or is not null (if `false` is specified). */ + isNull?: boolean; + /** Equal to the specified value. */ + equalTo?: number; + /** Not equal to the specified value. */ + notEqualTo?: number; + /** Not equal to the specified value, treating null like an ordinary value. */ + distinctFrom?: number; + /** Equal to the specified value, treating null like an ordinary value. */ + notDistinctFrom?: number; + /** Included in the specified list. */ + in?: number[]; + /** Not included in the specified list. */ + notIn?: number[]; + /** Less than the specified value. */ + lessThan?: number; + /** Less than or equal to the specified value. */ + lessThanOrEqualTo?: number; + /** Greater than the specified value. */ + greaterThan?: number; + /** Greater than or equal to the specified value. */ + greaterThanOrEqualTo?: number; } -export interface AddNodeInput { - clientMutationId?: string; - databaseId?: string; - rootHash?: string; - nodeName?: string; - nodeType?: string; - context?: string; - graphName?: string; - props?: Record; - meta?: Record; +/** A filter to be used against `PlatformNamespace` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformNamespaceFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `namespaceName` field. */ + namespaceName?: StringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `isActive` field. */ + isActive?: BooleanFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `lastError` field. */ + lastError?: StringFilter; + /** Filter by the object’s `labels` field. */ + labels?: JSONFilter; + /** Filter by the object’s `annotations` field. */ + annotations?: JSONFilter; + /** Filter by the object’s `isManaged` field. */ + isManaged?: BooleanFilter; + /** Checks for all expressions in this list. */ + and?: PlatformNamespaceFilter[]; + /** Checks for any expressions in this list. */ + or?: PlatformNamespaceFilter[]; + /** Negates the expression. */ + not?: PlatformNamespaceFilter; + /** Filter by the object’s `platformFunctionDeploymentsByNamespaceId` relation. */ + platformFunctionDeploymentsByNamespaceId?: PlatformNamespaceToManyPlatformFunctionDeploymentFilter; + /** `platformFunctionDeploymentsByNamespaceId` exist. */ + platformFunctionDeploymentsByNamespaceIdExist?: boolean; + /** Filter by the object’s `platformResourcesByNamespaceId` relation. */ + platformResourcesByNamespaceId?: PlatformNamespaceToManyPlatformResourceFilter; + /** `platformResourcesByNamespaceId` exist. */ + platformResourcesByNamespaceIdExist?: boolean; + /** Filter by the object’s `platformResourceDefinitionsByNamespaceId` relation. */ + platformResourceDefinitionsByNamespaceId?: PlatformNamespaceToManyPlatformResourceDefinitionFilter; + /** `platformResourceDefinitionsByNamespaceId` exist. */ + platformResourceDefinitionsByNamespaceIdExist?: boolean; } -export interface InsertNodeAtPathInput { - clientMutationId?: string; - sId?: string; - root?: string; - path?: string[]; - data?: Record; - kids?: string[]; - ktree?: string[]; +/** A filter to be used against String List fields. All fields are combined with a logical ‘and.’ */ +export interface StringListFilter { + /** Is null (if `true` is specified) or is not null (if `false` is specified). */ + isNull?: boolean; + /** Equal to the specified value. */ + equalTo?: string[]; + /** Not equal to the specified value. */ + notEqualTo?: string[]; + /** Not equal to the specified value, treating null like an ordinary value. */ + distinctFrom?: string[]; + /** Equal to the specified value, treating null like an ordinary value. */ + notDistinctFrom?: string[]; + /** Less than the specified value. */ + lessThan?: string[]; + /** Less than or equal to the specified value. */ + lessThanOrEqualTo?: string[]; + /** Greater than the specified value. */ + greaterThan?: string[]; + /** Greater than or equal to the specified value. */ + greaterThanOrEqualTo?: string[]; + /** Contains the specified list of values. */ + contains?: string[]; + /** Contained by the specified list of values. */ + containedBy?: string[]; + /** Overlaps the specified list of values. */ + overlaps?: string[]; + /** Any array item is equal to the specified value. */ + anyEqualTo?: string; + /** Any array item is not equal to the specified value. */ + anyNotEqualTo?: 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 greater than the specified value. */ + anyGreaterThan?: string; + /** Any array item is greater than or equal to the specified value. */ + anyGreaterThanOrEqualTo?: string; } -export interface StartExecutionInput { - clientMutationId?: string; - graphId?: string; - inputPayload?: Record; - outputNode?: string; - outputPort?: string; - maxTicks?: number; - maxPendingJobs?: number; - timeoutInterval?: IntervalInput; - parentExecutionId?: string; - parentNodeName?: string; +/** A filter to be used against `Namespace` object types. All fields are combined with a logical ‘and.’ */ +export interface NamespaceFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `namespaceName` field. */ + namespaceName?: StringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `isActive` field. */ + isActive?: BooleanFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `lastError` field. */ + lastError?: StringFilter; + /** Filter by the object’s `labels` field. */ + labels?: JSONFilter; + /** Filter by the object’s `annotations` field. */ + annotations?: JSONFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `isManaged` field. */ + isManaged?: BooleanFilter; + /** Checks for all expressions in this list. */ + and?: NamespaceFilter[]; + /** Checks for any expressions in this list. */ + or?: NamespaceFilter[]; + /** Negates the expression. */ + not?: NamespaceFilter; + /** Filter by the object’s `functionDeployments` relation. */ + functionDeployments?: NamespaceToManyFunctionDeploymentFilter; + /** `functionDeployments` exist. */ + functionDeploymentsExist?: boolean; + /** Filter by the object’s `resources` relation. */ + resources?: NamespaceToManyResourceFilter; + /** `resources` exist. */ + resourcesExist?: boolean; + /** Filter by the object’s `resourceDefinitions` relation. */ + resourceDefinitions?: NamespaceToManyResourceDefinitionFilter; + /** `resourceDefinitions` exist. */ + resourceDefinitionsExist?: boolean; +} +/** 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 `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `taskIdentifier` field. */ + taskIdentifier?: StringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `isPublished` field. */ + isPublished?: BooleanFilter; + /** Filter by the object’s `accessChannels` field. */ + accessChannels?: StringListFilter; + /** Filter by the object’s `publishedAt` field. */ + publishedAt?: DatetimeFilter; + /** Filter by the object’s `maxAttempts` field. */ + maxAttempts?: IntFilter; + /** Filter by the object’s `priority` field. */ + priority?: IntFilter; + /** Filter by the object’s `queueName` field. */ + queueName?: StringFilter; + /** Filter by the object’s `runtime` field. */ + runtime?: StringFilter; + /** Filter by the object’s `targetSchema` field. */ + targetSchema?: StringFilter; + /** Filter by the object’s `targetFunction` field. */ + targetFunction?: StringFilter; + /** Filter by the object’s `moduleTable` field. */ + moduleTable?: StringFilter; + /** Filter by the object’s `functionColumns` field. */ + functionColumns?: JSONFilter; + /** Filter by the object’s `payloadArgs` field. */ + payloadArgs?: JSONFilter; + /** Filter by the object’s `image` field. */ + image?: StringFilter; + /** Filter by the object’s `concurrency` field. */ + concurrency?: IntFilter; + /** Filter by the object’s `scaleMin` field. */ + scaleMin?: IntFilter; + /** Filter by the object’s `scaleMax` field. */ + scaleMax?: IntFilter; + /** Filter by the object’s `timeoutSeconds` field. */ + timeoutSeconds?: IntFilter; + /** Filter by the object’s `resources` field. */ + resources?: JSONFilter; + /** Filter by the object’s `isBuiltIn` field. */ + isBuiltIn?: BooleanFilter; + /** Filter by the object’s `integrations` field. */ + integrations?: StringListFilter; + /** Filter by the object’s `requiredBuckets` field. */ + requiredBuckets?: StringListFilter; + /** Filter by the object’s `requiredModels` field. */ + requiredModels?: StringListFilter; + /** Filter by the object’s `inputs` field. */ + inputs?: JSONFilter; + /** Filter by the object’s `outputs` field. */ + outputs?: JSONFilter; + /** Filter by the object’s `props` field. */ + props?: JSONFilter; + /** Filter by the object’s `volatile` field. */ + volatile?: BooleanFilter; + /** Filter by the object’s `icon` field. */ + icon?: StringFilter; + /** Filter by the object’s `category` field. */ + category?: StringFilter; + /** Checks for all expressions in this list. */ + and?: PlatformFunctionDefinitionFilter[]; + /** Checks for any expressions in this list. */ + or?: PlatformFunctionDefinitionFilter[]; + /** Negates the expression. */ + not?: PlatformFunctionDefinitionFilter; + /** Filter by the object’s `platformFunctionApiBindingsByFunctionDefinitionId` relation. */ + platformFunctionApiBindingsByFunctionDefinitionId?: PlatformFunctionDefinitionToManyPlatformFunctionApiBindingFilter; + /** `platformFunctionApiBindingsByFunctionDefinitionId` exist. */ + platformFunctionApiBindingsByFunctionDefinitionIdExist?: 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 `FunctionDefinition` object types. All fields are combined with a logical ‘and.’ */ +export interface FunctionDefinitionFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `taskIdentifier` field. */ + taskIdentifier?: StringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `isPublished` field. */ + isPublished?: BooleanFilter; + /** Filter by the object’s `accessChannels` field. */ + accessChannels?: StringListFilter; + /** Filter by the object’s `publishedAt` field. */ + publishedAt?: DatetimeFilter; + /** Filter by the object’s `maxAttempts` field. */ + maxAttempts?: IntFilter; + /** Filter by the object’s `priority` field. */ + priority?: IntFilter; + /** Filter by the object’s `queueName` field. */ + queueName?: StringFilter; + /** Filter by the object’s `runtime` field. */ + runtime?: StringFilter; + /** Filter by the object’s `targetSchema` field. */ + targetSchema?: StringFilter; + /** Filter by the object’s `targetFunction` field. */ + targetFunction?: StringFilter; + /** Filter by the object’s `moduleTable` field. */ + moduleTable?: StringFilter; + /** Filter by the object’s `functionColumns` field. */ + functionColumns?: JSONFilter; + /** Filter by the object’s `payloadArgs` field. */ + payloadArgs?: JSONFilter; + /** Filter by the object’s `image` field. */ + image?: StringFilter; + /** Filter by the object’s `concurrency` field. */ + concurrency?: IntFilter; + /** Filter by the object’s `scaleMin` field. */ + scaleMin?: IntFilter; + /** Filter by the object’s `scaleMax` field. */ + scaleMax?: IntFilter; + /** Filter by the object’s `timeoutSeconds` field. */ + timeoutSeconds?: IntFilter; + /** Filter by the object’s `resources` field. */ + resources?: JSONFilter; + /** Filter by the object’s `isBuiltIn` field. */ + isBuiltIn?: BooleanFilter; + /** Filter by the object’s `integrations` field. */ + integrations?: StringListFilter; + /** Filter by the object’s `requiredBuckets` field. */ + requiredBuckets?: StringListFilter; + /** Filter by the object’s `requiredModels` field. */ + requiredModels?: StringListFilter; + /** Filter by the object’s `inputs` field. */ + inputs?: JSONFilter; + /** Filter by the object’s `outputs` field. */ + outputs?: JSONFilter; + /** Filter by the object’s `props` field. */ + props?: JSONFilter; + /** Filter by the object’s `volatile` field. */ + volatile?: BooleanFilter; + /** Filter by the object’s `icon` field. */ + icon?: StringFilter; + /** Filter by the object’s `category` field. */ + category?: StringFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: FunctionDefinitionFilter[]; + /** Checks for any expressions in this list. */ + or?: FunctionDefinitionFilter[]; + /** Negates the expression. */ + not?: FunctionDefinitionFilter; + /** Filter by the object’s `functionApiBindings` relation. */ + functionApiBindings?: FunctionDefinitionToManyFunctionApiBindingFilter; + /** `functionApiBindings` exist. */ + functionApiBindingsExist?: boolean; } -/** 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 Boolean fields. All fields are combined with a logical ‘and.’ */ +export interface BooleanFilter { /** Is null (if `true` is specified) or is not null (if `false` is specified). */ isNull?: boolean; /** Equal to the specified value. */ - equalTo?: Base64EncodedBinary; + equalTo?: boolean; /** Not equal to the specified value. */ - notEqualTo?: Base64EncodedBinary; + notEqualTo?: boolean; /** Not equal to the specified value, treating null like an ordinary value. */ - distinctFrom?: Base64EncodedBinary; + distinctFrom?: boolean; /** Equal to the specified value, treating null like an ordinary value. */ - notDistinctFrom?: Base64EncodedBinary; + notDistinctFrom?: boolean; /** Included in the specified list. */ - in?: Base64EncodedBinary[]; + in?: boolean[]; /** Not included in the specified list. */ - notIn?: Base64EncodedBinary[]; + notIn?: boolean[]; + /** Less than the specified value. */ + lessThan?: boolean; + /** Less than or equal to the specified value. */ + lessThanOrEqualTo?: boolean; + /** Greater than the specified value. */ + greaterThan?: boolean; + /** Greater than or equal to the specified value. */ + greaterThanOrEqualTo?: boolean; } -/** A filter to be used against many `FunctionDeployment` object types. All fields are combined with a logical ‘and.’ */ -export interface PlatformNamespaceToManyFunctionDeploymentFilter { - /** Filters to entities where at least one related entity matches. */ - some?: FunctionDeploymentFilter; - /** Filters to entities where every related entity matches. */ - every?: FunctionDeploymentFilter; - /** Filters to entities where no related entity matches. */ - none?: FunctionDeploymentFilter; +// ============ Payload/Return Types (for custom operations) ============ +export interface ValidateFunctionGraphPayload { + clientMutationId?: string | null; + result?: boolean | null; } -/** A filter to be used against many `Resource` object types. All fields are combined with a logical ‘and.’ */ -export interface PlatformNamespaceToManyResourceFilter { - /** Filters to entities where at least one related entity matches. */ - some?: ResourceFilter; - /** Filters to entities where every related entity matches. */ - every?: ResourceFilter; - /** Filters to entities where no related entity matches. */ - none?: ResourceFilter; +export type ValidateFunctionGraphPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface InfraInitEmptyRepoPayload { + clientMutationId?: string | null; } -/** A filter to be used against many `FunctionApiBinding` object types. All fields are combined with a logical ‘and.’ */ -export interface FunctionDefinitionToManyFunctionApiBindingFilter { - /** Filters to entities where at least one related entity matches. */ - some?: FunctionApiBindingFilter; - /** Filters to entities where every related entity matches. */ - every?: FunctionApiBindingFilter; - /** Filters to entities where no related entity matches. */ - none?: FunctionApiBindingFilter; +export type InfraInitEmptyRepoPayloadSelect = { + clientMutationId?: boolean; +}; +export interface InitEmptyRepoPayload { + clientMutationId?: string | null; } -/** A filter to be used against many `FunctionDeployment` object types. All fields are combined with a logical ‘and.’ */ -export interface FunctionDefinitionToManyFunctionDeploymentFilter { - /** Filters to entities where at least one related entity matches. */ - some?: FunctionDeploymentFilter; - /** Filters to entities where every related entity matches. */ - every?: FunctionDeploymentFilter; - /** Filters to entities where no related entity matches. */ - none?: FunctionDeploymentFilter; +export type InitEmptyRepoPayloadSelect = { + clientMutationId?: boolean; +}; +export interface ImportDefinitionsPayload { + clientMutationId?: string | null; } -/** An input for mutations affecting `FunctionApiBinding` */ -export interface FunctionApiBindingInput { - id?: string; - /** Function definition this binding belongs to */ - functionDefinitionId: string; - /** API endpoint this function is bound to */ - apiId: string; - /** Binding alias (e.g. default, staging, production) */ - alias?: string; - /** Per-binding configuration (overrides, routing rules, etc.) */ - config?: Record; +export type ImportDefinitionsPayloadSelect = { + clientMutationId?: boolean; +}; +export interface InfraSetDataAtPathPayload { + clientMutationId?: string | null; + result?: string | null; } -/** An input for mutations affecting `FunctionDeployment` */ -export interface FunctionDeploymentInput { - id?: string; - createdAt?: string; - updatedAt?: string; - /** Function definition being deployed to this namespace */ - functionDefinitionId: string; - /** Target namespace for this deployment (maps to a K8s namespace) */ - namespaceId: string; - /** Deployment lifecycle status: pending, provisioning, active, failed, scaled_to_zero, deactivated */ - status?: string; - /** Knative service URL (http://{service-name}.{namespace}.svc.cluster.local) — populated after provisioning */ - serviceUrl?: string; - /** Knative service name — derived from task_identifier at provision time */ - serviceName?: string; - /** Deployment revision number (incremented on each redeployment) */ - revision?: number; - /** Container image override (NULL = inherit from function definition) */ - image?: string; - /** Max concurrent requests per pod (NULL = inherit from definition) */ - concurrency?: number; - /** Minimum replica count (NULL = inherit from definition or Knative default) */ - scaleMin?: number; - /** Maximum replica count (NULL = inherit from definition or Knative default) */ - scaleMax?: number; - /** Request timeout override in seconds (NULL = inherit from definition) */ - timeoutSeconds?: number; - /** K8s resource spec override: {"requests":{"cpu":"100m","memory":"128Mi"},"limits":{...}} */ - resources?: Record; - /** Most recent provisioning or runtime error message */ - lastError?: string; - /** Timestamp of the most recent error */ - lastErrorAt?: string; - /** Cumulative error count for this deployment */ - errorCount?: number; - /** Key/value pairs for selecting and filtering deployments */ - labels?: Record; - /** Freeform metadata for tooling and operational notes */ - annotations?: Record; - /** Database that owns this resource (database-scoped isolation) */ - databaseId: string; +export type InfraSetDataAtPathPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface SetDataAtPathPayload { + clientMutationId?: string | null; + result?: string | null; } -/** An input for mutations affecting `Resource` */ -export interface ResourceInput { - id?: string; - createdAt?: string; - updatedAt?: string; - createdBy?: string; - updatedBy?: string; - /** Namespace this resource belongs to (security boundary, maps to K8s namespace) */ - namespaceId: string; - /** Resource kind: Deployment, StatefulSet, Service, Ingress, Certificate */ - kind: string; - /** Human-readable resource name */ - name: 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, failed, draining, deleting */ - status?: string; - /** Observed state from K8s — populated by handlers after reconciliation (service_url, clone_url, replicas, etc.) */ - statusObserved?: Record; - /** Most recent provisioning or runtime error message */ - lastError?: string; - /** Cumulative error count for this resource */ - errorCount?: number; - /** Key/value pairs for selecting and filtering resources */ - labels?: Record; - /** Freeform metadata for tooling and operational notes */ - annotations?: Record; - /** Database that owns this resource (database-scoped isolation) */ - databaseId: string; +export type SetDataAtPathPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface CopyGraphPayload { + clientMutationId?: string | null; + result?: string | null; +} +export type CopyGraphPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface SaveGraphPayload { + clientMutationId?: string | null; + result?: string | null; } -/** An input for mutations affecting `FunctionGraphRef` */ -export interface FunctionGraphRefInput { - /** Unique ref identifier */ - id?: string; - /** Ref name (e.g. HEAD, main) */ - name: string; - /** Database scope for multi-tenant isolation */ - databaseId: string; - /** Store this ref belongs to */ - storeId: string; - /** Commit this ref points to */ - commitId?: string; +export type SaveGraphPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface AddEdgeAndSavePayload { + clientMutationId?: string | null; + result?: string | null; } -/** An input for mutations affecting `FunctionGraphStore` */ -export interface FunctionGraphStoreInput { - /** Unique store identifier */ - id?: string; - /** Human-readable store name */ - name: string; - /** Database scope for multi-tenant isolation */ - databaseId: string; - /** Current root object hash of this store */ - hash?: string; - /** Timestamp of store creation */ - createdAt?: string; +export type AddEdgeAndSavePayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface AddNodeAndSavePayload { + clientMutationId?: string | null; + result?: string | null; } -/** An input for mutations affecting `FunctionGraphObject` */ -export interface FunctionGraphObjectInput { - /** Content-addressed UUID v5 — deterministic hash of (data, kids, ktree) */ - id: string; - /** Database scope for multi-tenant isolation */ - databaseId: string; - /** Ordered array of child object IDs */ - kids?: string[]; - /** Ordered array of child path names (parallel to kids) */ - ktree?: string[]; - /** Payload data for this object node */ - data?: Record; - /** Timestamp of object creation */ - createdAt?: string; +export type AddNodeAndSavePayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface ImportGraphJsonPayload { + clientMutationId?: string | null; + result?: string | null; } -/** An input for mutations affecting `FunctionDeploymentEvent` */ -export interface FunctionDeploymentEventInput { - /** Event timestamp (partition key) */ - createdAt?: string; - /** Unique event identifier */ - id?: string; - /** Deployment this event belongs to */ - deploymentId: string; - /** Event type: provisioned, scaled, failed, deactivated, redeployed, health_check */ - eventType: string; - /** User who triggered this event (NULL for system/automated) */ - actorId?: string; - /** Human-readable description of the event */ - message?: string; - /** Structured context (old/new values, error details, etc.) */ - metadata?: Record; - /** Database that owns this resource (database-scoped isolation) */ - databaseId: string; +export type ImportGraphJsonPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface AddEdgePayload { + clientMutationId?: string | null; + result?: string | null; } -/** An input for mutations affecting `OrgFunctionExecutionLog` */ -export interface OrgFunctionExecutionLogInput { - /** 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; - /** Function routing key (NULL for generic job logs) */ - taskIdentifier?: string; - /** Log severity: debug, info, warn, error */ - logLevel?: string; - /** Log message text */ - message: string; - /** Structured context (labels, trace data, extra fields) */ - metadata?: Record; - /** User who triggered the execution (NULL for system/cron) */ - actorId?: string; +export type AddEdgePayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface AddNodePayload { + clientMutationId?: string | null; + result?: string | null; } -/** An input for mutations affecting `ResourceEvent` */ -export interface ResourceEventInput { - /** Event timestamp (partition key) */ - createdAt?: string; - /** Unique event identifier */ - id?: string; - /** Resource this event belongs to */ - resourceId: string; - /** Event type: provisioned, provisioning, updated, failed, deprovisioned, health_check */ - eventType: string; - /** User who triggered this event (NULL for system/automated) */ - actorId?: string; - /** Human-readable description of the event */ - message?: string; - /** Structured context (old/new values, error details, etc.) */ - metadata?: Record; - /** Database that owns this resource (database-scoped isolation) */ - databaseId: string; +export type AddNodePayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface InfraInsertNodeAtPathPayload { + clientMutationId?: string | null; + result?: string | null; } -/** An input for mutations affecting `FunctionGraphExecutionOutput` */ -export interface FunctionGraphExecutionOutputInput { - /** Timestamp of output creation */ - createdAt?: string; - /** Unique execution output identifier */ - id?: string; - /** Scope for multi-tenant isolation */ - databaseId: string; - /** SHA-256 hash of the data JSONB — content-addressed deduplication */ - hash: Base64EncodedBinary; - /** The actual output payload from a completed node */ - data: Record; +export type InfraInsertNodeAtPathPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface InsertNodeAtPathPayload { + clientMutationId?: string | null; + result?: string | null; } -/** An input for mutations affecting `FunctionGraphCommit` */ -export interface FunctionGraphCommitInput { - /** Unique commit identifier */ - id?: string; - /** Optional commit message */ - message?: string; - /** Database scope for multi-tenant isolation */ - databaseId: string; - /** Store this commit belongs to */ - storeId: string; - /** Parent commit IDs (supports merge commits) */ - parentIds?: string[]; - /** User who authored the changes */ - authorId?: string; - /** User who committed (may differ from author) */ - committerId?: string; - /** Root object ID of the tree snapshot at this commit */ - treeId?: string; - /** Commit timestamp */ - date?: string; +export type InsertNodeAtPathPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface StartExecutionPayload { + clientMutationId?: string | null; + result?: string | null; } -/** An input for mutations affecting `SecretDefinition` */ -export interface SecretDefinitionInput { - id?: string; - createdAt?: string; - updatedAt?: string; - /** Secret name (must match app_secrets.name for resolution) */ - name: string; - /** Human-readable description of what this secret is used for */ - description?: string; - /** Whether this row was seeded as a built-in secret definition. Built-in rows are immutable. */ - isBuiltIn?: boolean; - /** Key-value metadata for filtering and grouping secret definitions */ - labels?: Record; - /** Freeform metadata annotations for secret definitions */ - annotations?: Record; - /** Database that owns this resource (database-scoped isolation) */ - databaseId: string; +export type StartExecutionPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface ProvisionBucketPayload { + /** Whether provisioning succeeded */ + success: boolean; + /** The S3 bucket name that was provisioned */ + bucketName: string; + /** The access type applied */ + accessType: string; + /** The storage provider used */ + provider: string; + /** The S3 endpoint (null for AWS S3 default) */ + endpoint?: string | null; + /** Error message if provisioning failed */ + error?: string | null; } -/** An input for mutations affecting `FunctionExecutionLog` */ -export interface FunctionExecutionLogInput { - /** 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; - /** Function routing key (NULL for generic job logs) */ - taskIdentifier?: string; - /** Log severity: debug, info, warn, error */ - logLevel?: string; - /** Log message text */ - message: string; - /** Structured context (labels, trace data, extra fields) */ - metadata?: Record; - /** User who triggered the execution (NULL for system/cron) */ - actorId?: string; - /** Database that owns this resource (database-scoped isolation) */ - databaseId: string; +export type ProvisionBucketPayloadSelect = { + success?: boolean; + bucketName?: boolean; + accessType?: boolean; + provider?: boolean; + endpoint?: boolean; + error?: boolean; +}; +export interface CreateInfraRefPayload { + clientMutationId?: string | null; + /** The `InfraRef` that was created by this mutation. */ + infraRef?: InfraRef | null; + infraRefEdge?: InfraRefEdge | null; } -/** An input for mutations affecting `FunctionGraphExecutionNodeState` */ -export interface FunctionGraphExecutionNodeStateInput { - /** Timestamp of node state creation (partition key) */ - createdAt?: string; - /** Unique node state identifier */ - id?: string; - /** FK to the parent graph execution */ - executionId: string; - /** Scope for multi-tenant isolation */ - databaseId: 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[]; - /** Node lifecycle: pending → queued → running → completed/failed */ - status?: string; - /** Timestamp when the node began executing */ - startedAt?: string; - /** Timestamp when the node finished (success or failure) */ - completedAt?: string; - /** Machine-readable error code when status = failed */ - errorCode?: string; - /** Human-readable error description when status = failed */ - errorMessage?: string; - /** FK to execution_outputs — content-addressed output blob for this node */ - outputId?: string; +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; } -/** An input for mutations affecting `PlatformNamespace` */ -export interface PlatformNamespaceInput { - id?: string; - createdAt?: string; - updatedAt?: string; - /** Human-readable namespace name (e.g. default, production, oauth) */ - name: string; - /** Globally unique computed namespace identifier via inflection.underscore */ - namespaceName: string; - /** Optional human-readable description of this namespace */ - description?: string; - /** Whether this namespace is active (soft-disable for filtering) */ - isActive?: boolean; - /** Key/value pairs for selecting and filtering namespaces */ - labels?: Record; - /** Freeform metadata for tooling and operational notes */ - annotations?: Record; - /** Database that owns this resource (database-scoped isolation) */ - databaseId: string; - /** Database that created this namespace (NULL for platform-native namespaces) */ - sourceDatabaseId?: string; - /** Origin scope: platform, org, app — indicates where this namespace was created */ - sourceScope?: string; - /** true = created by a child scope mirror trigger, false = platform-native */ - isManaged?: boolean; +export type UpdateInfraRefPayloadSelect = { + clientMutationId?: boolean; + infraRef?: { + select: InfraRefSelect; + }; + infraRefEdge?: { + select: InfraRefEdgeSelect; + }; +}; +export interface DeleteInfraRefPayload { + clientMutationId?: string | null; + /** The `InfraRef` that was deleted by this mutation. */ + infraRef?: InfraRef | null; + infraRefEdge?: InfraRefEdge | null; } -/** An input for mutations affecting `OrgFunctionInvocation` */ -export interface OrgFunctionInvocationInput { - /** Invocation creation timestamp (partition key) */ - createdAt?: string; - /** Unique invocation identifier */ - id?: string; - /** Who triggered the invocation (NULL for system/cron) */ - actorId?: string; - /** Function routing slug (scope:name). Links to function_definitions.task_identifier by convention — no FK. */ - taskIdentifier: string; - /** Function input payload */ - payload?: Record; - /** Lifecycle: pending → running → completed/failed/cancelled */ - status?: string; - /** Function return value (success) or structured error (failure) */ - result?: Record; - /** Error message when status is failed */ - error?: string; - /** Wall-clock execution time in milliseconds */ - durationMs?: number; - /** FK to app_jobs.jobs — the underlying transport */ - jobId?: string; - /** When execution started */ - startedAt?: string; - /** When execution completed */ - completedAt?: string; - /** Parent invocation when this is a child node of a flow graph execution */ - parentInvocationId?: string; - /** Groups all node invocations from a single flow graph execution */ - graphExecutionId?: string; +export type DeleteInfraRefPayloadSelect = { + clientMutationId?: boolean; + infraRef?: { + select: InfraRefSelect; + }; + infraRefEdge?: { + select: InfraRefEdgeSelect; + }; +}; +export interface CreateInfraStorePayload { + clientMutationId?: string | null; + /** The `InfraStore` that was created by this mutation. */ + infraStore?: InfraStore | null; + infraStoreEdge?: InfraStoreEdge | null; } -/** An input for mutations affecting `FunctionInvocation` */ -export interface FunctionInvocationInput { - /** Invocation creation timestamp (partition key) */ - createdAt?: string; - /** Unique invocation identifier */ - id?: string; - /** Who triggered the invocation (NULL for system/cron) */ - actorId?: string; - /** Database that owns this resource (database-scoped isolation) */ - databaseId: string; - /** Function routing slug (scope:name). Links to function_definitions.task_identifier by convention — no FK. */ - taskIdentifier: string; - /** Function input payload */ - payload?: Record; - /** Lifecycle: pending → running → completed/failed/cancelled */ - status?: string; - /** Function return value (success) or structured error (failure) */ - result?: Record; - /** Error message when status is failed */ - error?: string; - /** Wall-clock execution time in milliseconds */ - durationMs?: number; - /** FK to app_jobs.jobs — the underlying transport */ - jobId?: string; - /** When execution started */ - startedAt?: string; - /** When execution completed */ - completedAt?: string; - /** Parent invocation when this is a child node of a flow graph execution */ - parentInvocationId?: string; - /** Groups all node invocations from a single flow graph execution */ - graphExecutionId?: string; +export type CreateInfraStorePayloadSelect = { + clientMutationId?: boolean; + infraStore?: { + select: InfraStoreSelect; + }; + infraStoreEdge?: { + select: InfraStoreEdgeSelect; + }; +}; +export interface UpdateInfraStorePayload { + clientMutationId?: string | null; + /** The `InfraStore` that was updated by this mutation. */ + infraStore?: InfraStore | null; + infraStoreEdge?: InfraStoreEdge | null; } -/** An input for mutations affecting `PlatformNamespaceEvent` */ -export interface PlatformNamespaceEventInput { - /** Event timestamp (partition key) */ - createdAt?: string; - /** Unique event identifier */ - id?: string; - /** Namespace this event belongs to */ - namespaceId: string; - /** Event type: created, activated, deactivated, labels_updated, annotations_updated, renamed */ - eventType: string; - /** User who triggered this event (NULL for system/automated) */ - actorId?: string; - /** Human-readable description of the event */ - message?: string; - /** Structured context (old/new values, labels diff, etc.) */ - metadata?: Record; - /** CPU usage in millicores at time of event */ - cpuMillicores?: number; - /** Memory usage in bytes at time of event */ - memoryBytes?: string; - /** Storage usage in bytes at time of event */ - storageBytes?: string; - /** Network ingress in bytes during event window */ - networkIngressBytes?: string; - /** Network egress in bytes during event window */ - networkEgressBytes?: string; - /** Number of active pods in the namespace at time of event */ - podCount?: number; - /** Additional resource metrics (gpu, replicas, quotas, etc.) */ - metrics?: Record; - /** Database that owns this resource (database-scoped isolation) */ - databaseId: string; +export type UpdateInfraStorePayloadSelect = { + clientMutationId?: boolean; + infraStore?: { + select: InfraStoreSelect; + }; + infraStoreEdge?: { + select: InfraStoreEdgeSelect; + }; +}; +export interface DeleteInfraStorePayload { + clientMutationId?: string | null; + /** The `InfraStore` that was deleted by this mutation. */ + infraStore?: InfraStore | null; + infraStoreEdge?: InfraStoreEdge | null; } -/** An input for mutations affecting `FunctionGraphExecution` */ -export interface FunctionGraphExecutionInput { - /** Execution start timestamp */ - startedAt?: string; - /** Unique execution identifier */ - id?: string; - /** FK to the graph definition being executed */ - graphId: string; - /** Parent function_invocations row (for metering) */ - invocationId?: string; - /** Scope for multi-tenant isolation */ - databaseId: string; - /** Target output boundary node name to resolve */ - outputNode: string; - /** Target output port name (default: value) */ - outputPort?: string; - /** Lifecycle: pending → running → completed/failed/cancelled */ - status?: string; - /** Initial inputs provided at invocation time */ - inputPayload?: Record; - /** Final result extracted from terminal output node */ - outputPayload?: Record; - /** Map of node_name → execution output id (content-addressed hash reference) */ - nodeOutputs?: Record; - /** Pre-computed topological sort as array of wave objects */ - executionPlan?: Record; - /** Index into execution_plan — tick only processes this wave */ - currentWave?: number; - /** Parent execution when this is a sub-execution */ - parentExecutionId?: string; - /** Node name in parent execution that spawned this sub-execution */ - parentNodeName?: string; - /** Pinned definitions store commit for deterministic evaluation */ - definitionsCommitId?: string; - /** Number of evaluate_step ticks executed */ - tickCount?: number; - /** Execution completion timestamp */ - completedAt?: string; - /** Maximum ticks before execution is failed (default 100) */ - maxTicks?: number; - /** Maximum pending jobs before execution is failed (default 50) */ - maxPendingJobs?: number; - /** Absolute deadline — execution fails if still running after this time */ - timeoutAt?: string; - /** Machine-readable error code when status = failed */ - errorCode?: string; - /** Human-readable error description when status = failed */ - errorMessage?: string; +export type DeleteInfraStorePayloadSelect = { + clientMutationId?: boolean; + infraStore?: { + select: InfraStoreSelect; + }; + infraStoreEdge?: { + select: InfraStoreEdgeSelect; + }; +}; +export interface CreateFunctionApiBindingPayload { + clientMutationId?: string | null; + /** The `FunctionApiBinding` that was created by this mutation. */ + functionApiBinding?: FunctionApiBinding | null; + functionApiBindingEdge?: FunctionApiBindingEdge | null; } -/** An input for mutations affecting `FunctionDefinition` */ -export interface FunctionDefinitionInput { - id?: string; - createdAt?: string; - updatedAt?: string; - /** Function grouping scope (e.g. email, embed, chunk, custom) */ - scope: string; - /** Function name within scope (e.g. send_verification_link, process_file_embedding) */ - name: string; - /** Computed routing slug: scope:name (used by Knative job worker for dispatch) */ - taskIdentifier: string; - /** Human-readable description of what this function does */ - description?: string; - /** Whether this function can be called via function_invocations (public API). Default false = internal-only via add_job() */ - isInvocable?: boolean; - /** Maximum retry attempts for the underlying job */ - maxAttempts?: number; - /** Job priority (lower = higher priority) */ - priority?: number; - /** Job queue name for serialization (e.g. email, ai, default) */ - queueName?: string; - /** Execution mode: http (Knative Service dispatch) or inline (in-process in compute worker) */ - runtime?: string; - /** Docker image reference (e.g. ghcr.io/constructive-io/email-send-fn:latest). Required when runtime=http. NULL for inline functions. */ - image?: string; - /** Knative containerConcurrency — max concurrent requests per pod instance */ - concurrency?: number; - /** Minimum pod count for Knative autoscaling (minScale) */ - scaleMin?: number; - /** Maximum pod count for Knative autoscaling (maxScale) */ - scaleMax?: number; - /** Knative request timeout in seconds */ - timeoutSeconds?: number; - /** Container resource requests and limits: {requests: {memory, cpu}, limits: {memory, cpu}} */ - resources?: Record; - /** Whether this function is a built-in platform function (synced from platform) vs user-created */ - isBuiltIn?: boolean; - /** Embedded secret requirements: array of (name, required) tuples */ - requiredSecrets?: FunctionRequirementInput[]; - /** Embedded config requirements: array of (name, required) tuples */ - requiredConfigs?: FunctionRequirementInput[]; - /** Bucket keys this function needs (e.g. uploads, exports). Empty = no bucket requirements. */ - requiredBuckets?: string[]; - /** Inference model whitelist (e.g. gpt-4o, claude-3). Empty = no model requirements. */ - requiredModels?: string[]; - /** Data input ports: [{name, type, description?, optional?, multi?, schema?}] */ - inputs?: Record; - /** Data output ports: [{name, type, description?, optional?, multi?, schema?}] */ - outputs?: Record; - /** Configuration properties: [{name, type, default?, description?, required?, schema?}] */ - props?: Record; - /** Whether this function has side effects and cannot be cached or memoized */ - volatile?: boolean; - /** Icon identifier for UI palette rendering (e.g. mail, database, code) */ - icon?: string; - /** Palette grouping category (e.g. email, data, ai, custom) */ - category?: string; +export type CreateFunctionApiBindingPayloadSelect = { + clientMutationId?: boolean; + functionApiBinding?: { + select: FunctionApiBindingSelect; + }; + functionApiBindingEdge?: { + select: FunctionApiBindingEdgeSelect; + }; +}; +export interface UpdateFunctionApiBindingPayload { + clientMutationId?: string | null; + /** The `FunctionApiBinding` that was updated by this mutation. */ + functionApiBinding?: FunctionApiBinding | null; + functionApiBindingEdge?: FunctionApiBindingEdge | null; +} +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 `FunctionRequirement` */ -export interface FunctionRequirementInput { - name?: string; - required?: boolean; +export type DeleteFunctionApiBindingPayloadSelect = { + clientMutationId?: boolean; + functionApiBinding?: { + select: FunctionApiBindingSelect; + }; + functionApiBindingEdge?: { + select: FunctionApiBindingEdgeSelect; + }; +}; +export interface CreateFunctionGraphRefPayload { + clientMutationId?: string | null; + /** The `FunctionGraphRef` that was created by this mutation. */ + functionGraphRef?: FunctionGraphRef | null; + functionGraphRefEdge?: FunctionGraphRefEdge | null; } -/** An interval of time that has passed where the smallest distinct unit is a second. */ -export interface IntervalInput { - /** - * A quantity of seconds. This is the only non-integer field, as all the other - * fields will dump their overflow into a smaller unit of time. Intervals don’t - * have a smaller unit than seconds. - */ - seconds?: number; - /** A quantity of minutes. */ - minutes?: number; - /** A quantity of hours. */ - hours?: number; - /** A quantity of days. */ - days?: number; - /** A quantity of months. */ - months?: number; - /** A quantity of years. */ - years?: number; +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 `FunctionDeployment` object types. All fields are combined with a logical ‘and.’ */ -export interface FunctionDeploymentFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `functionDefinitionId` field. */ - functionDefinitionId?: UUIDFilter; - /** Filter by the object’s `namespaceId` field. */ - namespaceId?: UUIDFilter; - /** Filter by the object’s `status` field. */ - status?: StringFilter; - /** Filter by the object’s `serviceUrl` field. */ - serviceUrl?: StringFilter; - /** Filter by the object’s `serviceName` field. */ - serviceName?: StringFilter; - /** Filter by the object’s `revision` field. */ - revision?: IntFilter; - /** Filter by the object’s `image` field. */ - image?: StringFilter; - /** Filter by the object’s `concurrency` field. */ - concurrency?: IntFilter; - /** Filter by the object’s `scaleMin` field. */ - scaleMin?: IntFilter; - /** Filter by the object’s `scaleMax` field. */ - scaleMax?: IntFilter; - /** Filter by the object’s `timeoutSeconds` field. */ - timeoutSeconds?: IntFilter; - /** Filter by the object’s `resources` field. */ - resources?: JSONFilter; - /** Filter by the object’s `lastError` field. */ - lastError?: StringFilter; - /** Filter by the object’s `lastErrorAt` field. */ - lastErrorAt?: DatetimeFilter; - /** Filter by the object’s `errorCount` field. */ - errorCount?: IntFilter; - /** Filter by the object’s `labels` field. */ - labels?: JSONFilter; - /** Filter by the object’s `annotations` field. */ - annotations?: JSONFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: FunctionDeploymentFilter[]; - /** Checks for any expressions in this list. */ - or?: FunctionDeploymentFilter[]; - /** Negates the expression. */ - not?: FunctionDeploymentFilter; - /** Filter by the object’s `functionDefinition` relation. */ - functionDefinition?: FunctionDefinitionFilter; - /** Filter by the object’s `namespace` relation. */ - namespace?: PlatformNamespaceFilter; +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 `Resource` object types. All fields are combined with a logical ‘and.’ */ -export interface ResourceFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `createdBy` field. */ - createdBy?: UUIDFilter; - /** Filter by the object’s `updatedBy` field. */ - updatedBy?: UUIDFilter; - /** Filter by the object’s `namespaceId` field. */ - namespaceId?: UUIDFilter; - /** Filter by the object’s `kind` field. */ - kind?: StringFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** 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 `lastError` field. */ - lastError?: StringFilter; - /** Filter by the object’s `errorCount` field. */ - errorCount?: IntFilter; - /** Filter by the object’s `labels` field. */ - labels?: JSONFilter; - /** Filter by the object’s `annotations` field. */ - annotations?: JSONFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: ResourceFilter[]; - /** Checks for any expressions in this list. */ - or?: ResourceFilter[]; - /** Negates the expression. */ - not?: ResourceFilter; - /** Filter by the object’s `namespace` relation. */ - namespace?: PlatformNamespaceFilter; +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 `FunctionApiBinding` object types. All fields are combined with a logical ‘and.’ */ -export interface FunctionApiBindingFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `functionDefinitionId` field. */ - functionDefinitionId?: UUIDFilter; - /** Filter by the object’s `apiId` field. */ - apiId?: UUIDFilter; - /** Filter by the object’s `alias` field. */ - alias?: StringFilter; - /** Filter by the object’s `config` field. */ - config?: JSONFilter; - /** Checks for all expressions in this list. */ - and?: FunctionApiBindingFilter[]; - /** Checks for any expressions in this list. */ - or?: FunctionApiBindingFilter[]; - /** Negates the expression. */ - not?: FunctionApiBindingFilter; - /** Filter by the object’s `functionDefinition` relation. */ - functionDefinition?: FunctionDefinitionFilter; +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 UUID fields. All fields are combined with a logical ‘and.’ */ -export interface UUIDFilter { - /** Is null (if `true` is specified) or is not null (if `false` is specified). */ - isNull?: boolean; - /** Equal to the specified value. */ - equalTo?: string; - /** Not equal to the specified value. */ - notEqualTo?: string; - /** Not equal to the specified value, treating null like an ordinary value. */ - distinctFrom?: string; - /** Equal to the specified value, treating null like an ordinary value. */ - notDistinctFrom?: string; - /** Included in the specified list. */ - in?: string[]; - /** Not included in the specified list. */ - notIn?: string[]; - /** Less than the specified value. */ - lessThan?: string; - /** Less than or equal to the specified value. */ - lessThanOrEqualTo?: string; - /** Greater than the specified value. */ - greaterThan?: string; - /** Greater than or equal to the specified value. */ - greaterThanOrEqualTo?: string; +export type UpdateFunctionGraphStorePayloadSelect = { + clientMutationId?: boolean; + functionGraphStore?: { + select: FunctionGraphStoreSelect; + }; + functionGraphStoreEdge?: { + select: FunctionGraphStoreEdgeSelect; + }; +}; +export interface DeleteFunctionGraphStorePayload { + clientMutationId?: string | null; + /** The `FunctionGraphStore` that was deleted by this mutation. */ + functionGraphStore?: FunctionGraphStore | null; + functionGraphStoreEdge?: FunctionGraphStoreEdge | null; } -/** A filter to be used against Datetime fields. All fields are combined with a logical ‘and.’ */ -export interface DatetimeFilter { - /** Is null (if `true` is specified) or is not null (if `false` is specified). */ - isNull?: boolean; - /** Equal to the specified value. */ - equalTo?: string; - /** Not equal to the specified value. */ - notEqualTo?: string; - /** Not equal to the specified value, treating null like an ordinary value. */ - distinctFrom?: string; - /** Equal to the specified value, treating null like an ordinary value. */ - notDistinctFrom?: string; - /** Included in the specified list. */ - in?: string[]; - /** Not included in the specified list. */ - notIn?: string[]; - /** Less than the specified value. */ - lessThan?: string; - /** Less than or equal to the specified value. */ - lessThanOrEqualTo?: string; - /** Greater than the specified value. */ - greaterThan?: string; - /** Greater than or equal to the specified value. */ - greaterThanOrEqualTo?: string; +export type DeleteFunctionGraphStorePayloadSelect = { + clientMutationId?: boolean; + functionGraphStore?: { + select: FunctionGraphStoreSelect; + }; + functionGraphStoreEdge?: { + select: FunctionGraphStoreEdgeSelect; + }; +}; +export interface CreatePlatformFunctionApiBindingPayload { + clientMutationId?: string | null; + /** The `PlatformFunctionApiBinding` that was created by this mutation. */ + platformFunctionApiBinding?: PlatformFunctionApiBinding | null; + platformFunctionApiBindingEdge?: PlatformFunctionApiBindingEdge | null; } -/** A filter to be used against String fields. All fields are combined with a logical ‘and.’ */ -export interface StringFilter { - /** Is null (if `true` is specified) or is not null (if `false` is specified). */ - isNull?: boolean; - /** Equal to the specified value. */ - equalTo?: string; - /** Not equal to the specified value. */ - notEqualTo?: string; - /** Not equal to the specified value, treating null like an ordinary value. */ - distinctFrom?: string; - /** Equal to the specified value, treating null like an ordinary value. */ - notDistinctFrom?: string; - /** Included in the specified list. */ - in?: string[]; - /** Not included in the specified list. */ - notIn?: string[]; - /** Less than the specified value. */ - lessThan?: string; - /** Less than or equal to the specified value. */ - lessThanOrEqualTo?: string; - /** Greater than the specified value. */ - greaterThan?: string; - /** Greater than or equal to the specified value. */ - greaterThanOrEqualTo?: string; - /** Contains the specified string (case-sensitive). */ - includes?: string; - /** Does not contain the specified string (case-sensitive). */ - notIncludes?: string; - /** Contains the specified string (case-insensitive). */ - includesInsensitive?: string; - /** Does not contain the specified string (case-insensitive). */ - notIncludesInsensitive?: string; - /** Starts with the specified string (case-sensitive). */ - startsWith?: string; - /** Does not start with the specified string (case-sensitive). */ - notStartsWith?: string; - /** Starts with the specified string (case-insensitive). */ - startsWithInsensitive?: string; - /** Does not start with the specified string (case-insensitive). */ - notStartsWithInsensitive?: string; - /** Ends with the specified string (case-sensitive). */ - endsWith?: string; - /** Does not end with the specified string (case-sensitive). */ - notEndsWith?: string; - /** Ends with the specified string (case-insensitive). */ - endsWithInsensitive?: string; - /** Does not end with the specified string (case-insensitive). */ - notEndsWithInsensitive?: string; - /** Matches the specified pattern (case-sensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. */ - like?: string; - /** Does not match the specified pattern (case-sensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. */ - notLike?: string; - /** Matches the specified pattern (case-insensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. */ - likeInsensitive?: string; - /** Does not match the specified pattern (case-insensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. */ - notLikeInsensitive?: string; - /** Equal to the specified value (case-insensitive). */ - equalToInsensitive?: string; - /** Not equal to the specified value (case-insensitive). */ - notEqualToInsensitive?: string; - /** Not equal to the specified value, treating null like an ordinary value (case-insensitive). */ - distinctFromInsensitive?: string; - /** Equal to the specified value, treating null like an ordinary value (case-insensitive). */ - notDistinctFromInsensitive?: string; - /** Included in the specified list (case-insensitive). */ - inInsensitive?: string[]; - /** Not included in the specified list (case-insensitive). */ - notInInsensitive?: string[]; - /** Less than the specified value (case-insensitive). */ - lessThanInsensitive?: string; - /** Less than or equal to the specified value (case-insensitive). */ - lessThanOrEqualToInsensitive?: string; - /** Greater than the specified value (case-insensitive). */ - greaterThanInsensitive?: string; - /** Greater than or equal to the specified value (case-insensitive). */ - greaterThanOrEqualToInsensitive?: string; +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; } -/** A filter to be used against Int fields. All fields are combined with a logical ‘and.’ */ -export interface IntFilter { - /** Is null (if `true` is specified) or is not null (if `false` is specified). */ - isNull?: boolean; - /** Equal to the specified value. */ - equalTo?: number; - /** Not equal to the specified value. */ - notEqualTo?: number; - /** Not equal to the specified value, treating null like an ordinary value. */ - distinctFrom?: number; - /** Equal to the specified value, treating null like an ordinary value. */ - notDistinctFrom?: number; - /** Included in the specified list. */ - in?: number[]; - /** Not included in the specified list. */ - notIn?: number[]; - /** Less than the specified value. */ - lessThan?: number; - /** Less than or equal to the specified value. */ - lessThanOrEqualTo?: number; - /** Greater than the specified value. */ - greaterThan?: number; - /** Greater than or equal to the specified value. */ - greaterThanOrEqualTo?: number; +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; } -/** A filter to be used against JSON fields. All fields are combined with a logical ‘and.’ */ -export interface JSONFilter { - /** Is null (if `true` is specified) or is not null (if `false` is specified). */ - isNull?: boolean; - /** Equal to the specified value. */ - equalTo?: Record; - /** Not equal to the specified value. */ - notEqualTo?: Record; - /** Not equal to the specified value, treating null like an ordinary value. */ - distinctFrom?: Record; - /** Equal to the specified value, treating null like an ordinary value. */ - notDistinctFrom?: Record; - /** Included in the specified list. */ - in?: Record[]; - /** Not included in the specified list. */ - notIn?: Record[]; - /** Less than the specified value. */ - lessThan?: Record; - /** Less than or equal to the specified value. */ - lessThanOrEqualTo?: Record; - /** Greater than the specified value. */ - greaterThan?: Record; - /** Greater than or equal to the specified value. */ - greaterThanOrEqualTo?: Record; - /** Contains the specified JSON. */ - contains?: Record; - /** Contains the specified key. */ - containsKey?: string; - /** Contains all of the specified keys. */ - containsAllKeys?: string[]; - /** Contains any of the specified keys. */ - containsAnyKeys?: string[]; - /** Contained by the specified JSON. */ - containedBy?: Record; +export type DeletePlatformFunctionApiBindingPayloadSelect = { + clientMutationId?: boolean; + platformFunctionApiBinding?: { + select: PlatformFunctionApiBindingSelect; + }; + platformFunctionApiBindingEdge?: { + select: PlatformFunctionApiBindingEdgeSelect; + }; +}; +export interface CreatePlatformResourceStatusCheckPayload { + clientMutationId?: string | null; + /** The `PlatformResourceStatusCheck` that was created by this mutation. */ + platformResourceStatusCheck?: PlatformResourceStatusCheck | null; + platformResourceStatusCheckEdge?: PlatformResourceStatusCheckEdge | 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 `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `scope` field. */ - scope?: StringFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `taskIdentifier` field. */ - taskIdentifier?: StringFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Filter by the object’s `isInvocable` field. */ - isInvocable?: BooleanFilter; - /** Filter by the object’s `maxAttempts` field. */ - maxAttempts?: IntFilter; - /** Filter by the object’s `priority` field. */ - priority?: IntFilter; - /** Filter by the object’s `queueName` field. */ - queueName?: StringFilter; - /** Filter by the object’s `runtime` field. */ - runtime?: StringFilter; - /** Filter by the object’s `image` field. */ - image?: StringFilter; - /** Filter by the object’s `concurrency` field. */ - concurrency?: IntFilter; - /** Filter by the object’s `scaleMin` field. */ - scaleMin?: IntFilter; - /** Filter by the object’s `scaleMax` field. */ - scaleMax?: IntFilter; - /** Filter by the object’s `timeoutSeconds` field. */ - timeoutSeconds?: IntFilter; - /** Filter by the object’s `resources` field. */ - resources?: JSONFilter; - /** Filter by the object’s `isBuiltIn` field. */ - isBuiltIn?: BooleanFilter; - /** Filter by the object’s `requiredBuckets` field. */ - requiredBuckets?: StringListFilter; - /** Filter by the object’s `requiredModels` field. */ - requiredModels?: StringListFilter; - /** Filter by the object’s `inputs` field. */ - inputs?: JSONFilter; - /** Filter by the object’s `outputs` field. */ - outputs?: JSONFilter; - /** Filter by the object’s `props` field. */ - props?: JSONFilter; - /** Filter by the object’s `volatile` field. */ - volatile?: BooleanFilter; - /** Filter by the object’s `icon` field. */ - icon?: StringFilter; - /** Filter by the object’s `category` field. */ - category?: StringFilter; - /** Checks for all expressions in this list. */ - and?: FunctionDefinitionFilter[]; - /** Checks for any expressions in this list. */ - or?: FunctionDefinitionFilter[]; - /** Negates the expression. */ - not?: FunctionDefinitionFilter; - /** Filter by the object’s `functionApiBindings` relation. */ - functionApiBindings?: FunctionDefinitionToManyFunctionApiBindingFilter; - /** `functionApiBindings` exist. */ - functionApiBindingsExist?: boolean; - /** Filter by the object’s `functionDeployments` relation. */ - functionDeployments?: FunctionDefinitionToManyFunctionDeploymentFilter; - /** `functionDeployments` exist. */ - functionDeploymentsExist?: boolean; +export type CreatePlatformResourceStatusCheckPayloadSelect = { + clientMutationId?: boolean; + platformResourceStatusCheck?: { + select: PlatformResourceStatusCheckSelect; + }; + platformResourceStatusCheckEdge?: { + select: PlatformResourceStatusCheckEdgeSelect; + }; +}; +export interface UpdatePlatformResourceStatusCheckPayload { + clientMutationId?: string | null; + /** The `PlatformResourceStatusCheck` that was updated by this mutation. */ + platformResourceStatusCheck?: PlatformResourceStatusCheck | null; + platformResourceStatusCheckEdge?: PlatformResourceStatusCheckEdge | null; } -/** A filter to be used against `PlatformNamespace` object types. All fields are combined with a logical ‘and.’ */ -export interface PlatformNamespaceFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `namespaceName` field. */ - namespaceName?: StringFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Filter by the object’s `isActive` field. */ - isActive?: BooleanFilter; - /** Filter by the object’s `labels` field. */ - labels?: JSONFilter; - /** Filter by the object’s `annotations` field. */ - annotations?: JSONFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `sourceDatabaseId` field. */ - sourceDatabaseId?: UUIDFilter; - /** Filter by the object’s `sourceScope` field. */ - sourceScope?: StringFilter; - /** Filter by the object’s `isManaged` field. */ - isManaged?: BooleanFilter; - /** Checks for all expressions in this list. */ - and?: PlatformNamespaceFilter[]; - /** Checks for any expressions in this list. */ - or?: PlatformNamespaceFilter[]; - /** Negates the expression. */ - not?: PlatformNamespaceFilter; - /** Filter by the object’s `functionDeploymentsByNamespaceId` relation. */ - functionDeploymentsByNamespaceId?: PlatformNamespaceToManyFunctionDeploymentFilter; - /** `functionDeploymentsByNamespaceId` exist. */ - functionDeploymentsByNamespaceIdExist?: boolean; - /** Filter by the object’s `resourcesByNamespaceId` relation. */ - resourcesByNamespaceId?: PlatformNamespaceToManyResourceFilter; - /** `resourcesByNamespaceId` exist. */ - resourcesByNamespaceIdExist?: boolean; +export type UpdatePlatformResourceStatusCheckPayloadSelect = { + clientMutationId?: boolean; + platformResourceStatusCheck?: { + select: PlatformResourceStatusCheckSelect; + }; + platformResourceStatusCheckEdge?: { + select: PlatformResourceStatusCheckEdgeSelect; + }; +}; +export interface DeletePlatformResourceStatusCheckPayload { + clientMutationId?: string | null; + /** The `PlatformResourceStatusCheck` that was deleted by this mutation. */ + platformResourceStatusCheck?: PlatformResourceStatusCheck | null; + platformResourceStatusCheckEdge?: PlatformResourceStatusCheckEdge | null; } -/** A filter to be used against Boolean fields. All fields are combined with a logical ‘and.’ */ -export interface BooleanFilter { - /** Is null (if `true` is specified) or is not null (if `false` is specified). */ - isNull?: boolean; - /** Equal to the specified value. */ - equalTo?: boolean; - /** Not equal to the specified value. */ - notEqualTo?: boolean; - /** Not equal to the specified value, treating null like an ordinary value. */ - distinctFrom?: boolean; - /** Equal to the specified value, treating null like an ordinary value. */ - notDistinctFrom?: boolean; - /** Included in the specified list. */ - in?: boolean[]; - /** Not included in the specified list. */ - notIn?: boolean[]; - /** Less than the specified value. */ - lessThan?: boolean; - /** Less than or equal to the specified value. */ - lessThanOrEqualTo?: boolean; - /** Greater than the specified value. */ - greaterThan?: boolean; - /** Greater than or equal to the specified value. */ - greaterThanOrEqualTo?: boolean; +export type DeletePlatformResourceStatusCheckPayloadSelect = { + clientMutationId?: boolean; + platformResourceStatusCheck?: { + select: PlatformResourceStatusCheckSelect; + }; + platformResourceStatusCheckEdge?: { + select: PlatformResourceStatusCheckEdgeSelect; + }; +}; +export interface CreatePlatformFunctionDeploymentPayload { + clientMutationId?: string | null; + /** The `PlatformFunctionDeployment` that was created by this mutation. */ + platformFunctionDeployment?: PlatformFunctionDeployment | null; + platformFunctionDeploymentEdge?: PlatformFunctionDeploymentEdge | null; } -/** A filter to be used against String List fields. All fields are combined with a logical ‘and.’ */ -export interface StringListFilter { - /** Is null (if `true` is specified) or is not null (if `false` is specified). */ - isNull?: boolean; - /** Equal to the specified value. */ - equalTo?: string[]; - /** Not equal to the specified value. */ - notEqualTo?: string[]; - /** Not equal to the specified value, treating null like an ordinary value. */ - distinctFrom?: string[]; - /** Equal to the specified value, treating null like an ordinary value. */ - notDistinctFrom?: string[]; - /** Less than the specified value. */ - lessThan?: string[]; - /** Less than or equal to the specified value. */ - lessThanOrEqualTo?: string[]; - /** Greater than the specified value. */ - greaterThan?: string[]; - /** Greater than or equal to the specified value. */ - greaterThanOrEqualTo?: string[]; - /** Contains the specified list of values. */ - contains?: string[]; - /** Contained by the specified list of values. */ - containedBy?: string[]; - /** Overlaps the specified list of values. */ - overlaps?: string[]; - /** Any array item is equal to the specified value. */ - anyEqualTo?: string; - /** Any array item is not equal to the specified value. */ - anyNotEqualTo?: 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 greater than the specified value. */ - anyGreaterThan?: string; - /** Any array item is greater than or equal to the specified value. */ - anyGreaterThanOrEqualTo?: string; +export type CreatePlatformFunctionDeploymentPayloadSelect = { + clientMutationId?: boolean; + platformFunctionDeployment?: { + select: PlatformFunctionDeploymentSelect; + }; + platformFunctionDeploymentEdge?: { + select: PlatformFunctionDeploymentEdgeSelect; + }; +}; +export interface UpdatePlatformFunctionDeploymentPayload { + clientMutationId?: string | null; + /** The `PlatformFunctionDeployment` that was updated by this mutation. */ + platformFunctionDeployment?: PlatformFunctionDeployment | null; + platformFunctionDeploymentEdge?: PlatformFunctionDeploymentEdge | null; } -// ============ Payload/Return Types (for custom operations) ============ -export interface ValidateFunctionGraphPayload { +export type UpdatePlatformFunctionDeploymentPayloadSelect = { + clientMutationId?: boolean; + platformFunctionDeployment?: { + select: PlatformFunctionDeploymentSelect; + }; + platformFunctionDeploymentEdge?: { + select: PlatformFunctionDeploymentEdgeSelect; + }; +}; +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 InitEmptyRepoPayload { +export interface CreatePlatformResourcePayload { clientMutationId?: string | null; + /** The `PlatformResource` that was created by this mutation. */ + platformResource?: PlatformResource | null; + platformResourceEdge?: PlatformResourceEdge | null; } -export type InitEmptyRepoPayloadSelect = { +export type CreatePlatformResourcePayloadSelect = { clientMutationId?: boolean; + platformResource?: { + select: PlatformResourceSelect; + }; + platformResourceEdge?: { + select: PlatformResourceEdgeSelect; + }; }; -export interface SetDataAtPathPayload { +export interface UpdatePlatformResourcePayload { clientMutationId?: string | null; - result?: string | null; + /** The `PlatformResource` that was updated by this mutation. */ + platformResource?: PlatformResource | null; + platformResourceEdge?: PlatformResourceEdge | null; } -export type SetDataAtPathPayloadSelect = { +export type UpdatePlatformResourcePayloadSelect = { clientMutationId?: boolean; - result?: boolean; + platformResource?: { + select: PlatformResourceSelect; + }; + platformResourceEdge?: { + select: PlatformResourceEdgeSelect; + }; }; -export interface ImportDefinitionsPayload { +export interface DeletePlatformResourcePayload { clientMutationId?: string | null; + /** The `PlatformResource` that was deleted by this mutation. */ + platformResource?: PlatformResource | null; + platformResourceEdge?: PlatformResourceEdge | null; } -export type ImportDefinitionsPayloadSelect = { +export type DeletePlatformResourcePayloadSelect = { clientMutationId?: boolean; + platformResource?: { + select: PlatformResourceSelect; + }; + platformResourceEdge?: { + select: PlatformResourceEdgeSelect; + }; }; -export interface CopyGraphPayload { +export interface CreatePlatformResourceDefinitionPayload { clientMutationId?: string | null; - result?: string | null; + /** The `PlatformResourceDefinition` that was created by this mutation. */ + platformResourceDefinition?: PlatformResourceDefinition | null; + platformResourceDefinitionEdge?: PlatformResourceDefinitionEdge | null; } -export type CopyGraphPayloadSelect = { +export type CreatePlatformResourceDefinitionPayloadSelect = { clientMutationId?: boolean; - result?: boolean; + platformResourceDefinition?: { + select: PlatformResourceDefinitionSelect; + }; + platformResourceDefinitionEdge?: { + select: PlatformResourceDefinitionEdgeSelect; + }; }; -export interface SaveGraphPayload { +export interface UpdatePlatformResourceDefinitionPayload { clientMutationId?: string | null; - result?: string | null; + /** The `PlatformResourceDefinition` that was updated by this mutation. */ + platformResourceDefinition?: PlatformResourceDefinition | null; + platformResourceDefinitionEdge?: PlatformResourceDefinitionEdge | null; } -export type SaveGraphPayloadSelect = { +export type UpdatePlatformResourceDefinitionPayloadSelect = { clientMutationId?: boolean; - result?: boolean; + platformResourceDefinition?: { + select: PlatformResourceDefinitionSelect; + }; + platformResourceDefinitionEdge?: { + select: PlatformResourceDefinitionEdgeSelect; + }; }; -export interface AddEdgeAndSavePayload { +export interface DeletePlatformResourceDefinitionPayload { clientMutationId?: string | null; - result?: string | null; + /** The `PlatformResourceDefinition` that was deleted by this mutation. */ + platformResourceDefinition?: PlatformResourceDefinition | null; + platformResourceDefinitionEdge?: PlatformResourceDefinitionEdge | null; } -export type AddEdgeAndSavePayloadSelect = { +export type DeletePlatformResourceDefinitionPayloadSelect = { clientMutationId?: boolean; - result?: boolean; + platformResourceDefinition?: { + select: PlatformResourceDefinitionSelect; + }; + platformResourceDefinitionEdge?: { + select: PlatformResourceDefinitionEdgeSelect; + }; }; -export interface AddNodeAndSavePayload { +export interface CreateInfraObjectPayload { clientMutationId?: string | null; - result?: string | null; + /** The `InfraObject` that was created by this mutation. */ + infraObject?: InfraObject | null; + infraObjectEdge?: InfraObjectEdge | null; } -export type AddNodeAndSavePayloadSelect = { +export type CreateInfraObjectPayloadSelect = { clientMutationId?: boolean; - result?: boolean; + infraObject?: { + select: InfraObjectSelect; + }; + infraObjectEdge?: { + select: InfraObjectEdgeSelect; + }; }; -export interface ImportGraphJsonPayload { +export interface UpdateInfraObjectPayload { clientMutationId?: string | null; - result?: string | null; + /** The `InfraObject` that was updated by this mutation. */ + infraObject?: InfraObject | null; + infraObjectEdge?: InfraObjectEdge | null; } -export type ImportGraphJsonPayloadSelect = { +export type UpdateInfraObjectPayloadSelect = { clientMutationId?: boolean; - result?: boolean; + infraObject?: { + select: InfraObjectSelect; + }; + infraObjectEdge?: { + select: InfraObjectEdgeSelect; + }; }; -export interface AddEdgePayload { +export interface DeleteInfraObjectPayload { clientMutationId?: string | null; - result?: string | null; + /** The `InfraObject` that was deleted by this mutation. */ + infraObject?: InfraObject | null; + infraObjectEdge?: InfraObjectEdge | null; } -export type AddEdgePayloadSelect = { +export type DeleteInfraObjectPayloadSelect = { clientMutationId?: boolean; - result?: boolean; + infraObject?: { + select: InfraObjectSelect; + }; + infraObjectEdge?: { + select: InfraObjectEdgeSelect; + }; }; -export interface AddNodePayload { +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 AddNodePayloadSelect = { +export type CreateFunctionGraphObjectPayloadSelect = { clientMutationId?: boolean; - result?: boolean; + functionGraphObject?: { + select: FunctionGraphObjectSelect; + }; + functionGraphObjectEdge?: { + select: FunctionGraphObjectEdgeSelect; + }; }; -export interface InsertNodeAtPathPayload { +export interface UpdateFunctionGraphObjectPayload { clientMutationId?: string | null; - result?: string | null; + /** The `FunctionGraphObject` that was updated by this mutation. */ + functionGraphObject?: FunctionGraphObject | null; + functionGraphObjectEdge?: FunctionGraphObjectEdge | null; } -export type InsertNodeAtPathPayloadSelect = { +export type UpdateFunctionGraphObjectPayloadSelect = { clientMutationId?: boolean; - result?: boolean; + functionGraphObject?: { + select: FunctionGraphObjectSelect; + }; + functionGraphObjectEdge?: { + select: FunctionGraphObjectEdgeSelect; + }; }; -export interface StartExecutionPayload { +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 StartExecutionPayloadSelect = { +export type DeleteFunctionGraphObjectPayloadSelect = { clientMutationId?: boolean; - result?: boolean; + functionGraphObject?: { + select: FunctionGraphObjectSelect; + }; + functionGraphObjectEdge?: { + select: FunctionGraphObjectEdgeSelect; + }; }; -export interface ProvisionBucketPayload { - /** Whether provisioning succeeded */ - success: boolean; - /** The S3 bucket name that was provisioned */ - bucketName: string; - /** The access type applied */ - accessType: string; - /** The storage provider used */ - provider: string; - /** The S3 endpoint (null for AWS S3 default) */ - endpoint?: string | null; - /** Error message if provisioning failed */ - error?: string | null; +export interface CreatePlatformFunctionDeploymentEventPayload { + clientMutationId?: string | null; + /** The `PlatformFunctionDeploymentEvent` that was created by this mutation. */ + platformFunctionDeploymentEvent?: PlatformFunctionDeploymentEvent | null; + platformFunctionDeploymentEventEdge?: PlatformFunctionDeploymentEventEdge | null; +} +export type CreatePlatformFunctionDeploymentEventPayloadSelect = { + clientMutationId?: boolean; + platformFunctionDeploymentEvent?: { + select: PlatformFunctionDeploymentEventSelect; + }; + platformFunctionDeploymentEventEdge?: { + select: PlatformFunctionDeploymentEventEdgeSelect; + }; +}; +export interface UpdatePlatformFunctionDeploymentEventPayload { + clientMutationId?: string | null; + /** The `PlatformFunctionDeploymentEvent` that was updated by this mutation. */ + platformFunctionDeploymentEvent?: PlatformFunctionDeploymentEvent | null; + platformFunctionDeploymentEventEdge?: PlatformFunctionDeploymentEventEdge | null; +} +export type UpdatePlatformFunctionDeploymentEventPayloadSelect = { + clientMutationId?: boolean; + platformFunctionDeploymentEvent?: { + select: PlatformFunctionDeploymentEventSelect; + }; + platformFunctionDeploymentEventEdge?: { + select: PlatformFunctionDeploymentEventEdgeSelect; + }; +}; +export interface DeletePlatformFunctionDeploymentEventPayload { + clientMutationId?: string | null; + /** The `PlatformFunctionDeploymentEvent` that was deleted by this mutation. */ + platformFunctionDeploymentEvent?: PlatformFunctionDeploymentEvent | null; + platformFunctionDeploymentEventEdge?: PlatformFunctionDeploymentEventEdge | null; +} +export type DeletePlatformFunctionDeploymentEventPayloadSelect = { + clientMutationId?: boolean; + platformFunctionDeploymentEvent?: { + select: PlatformFunctionDeploymentEventSelect; + }; + platformFunctionDeploymentEventEdge?: { + select: PlatformFunctionDeploymentEventEdgeSelect; + }; +}; +export interface CreatePlatformResourceEventPayload { + clientMutationId?: string | null; + /** The `PlatformResourceEvent` that was created by this mutation. */ + platformResourceEvent?: PlatformResourceEvent | null; + platformResourceEventEdge?: PlatformResourceEventEdge | null; +} +export type CreatePlatformResourceEventPayloadSelect = { + clientMutationId?: boolean; + platformResourceEvent?: { + select: PlatformResourceEventSelect; + }; + platformResourceEventEdge?: { + select: PlatformResourceEventEdgeSelect; + }; +}; +export interface UpdatePlatformResourceEventPayload { + clientMutationId?: string | null; + /** The `PlatformResourceEvent` that was updated by this mutation. */ + platformResourceEvent?: PlatformResourceEvent | null; + platformResourceEventEdge?: PlatformResourceEventEdge | null; +} +export type UpdatePlatformResourceEventPayloadSelect = { + clientMutationId?: boolean; + platformResourceEvent?: { + select: PlatformResourceEventSelect; + }; + platformResourceEventEdge?: { + select: PlatformResourceEventEdgeSelect; + }; +}; +export interface DeletePlatformResourceEventPayload { + clientMutationId?: string | null; + /** The `PlatformResourceEvent` that was deleted by this mutation. */ + platformResourceEvent?: PlatformResourceEvent | null; + platformResourceEventEdge?: PlatformResourceEventEdge | null; } -export type ProvisionBucketPayloadSelect = { - success?: boolean; - bucketName?: boolean; - accessType?: boolean; - provider?: boolean; - endpoint?: boolean; - error?: boolean; +export type DeletePlatformResourceEventPayloadSelect = { + clientMutationId?: boolean; + platformResourceEvent?: { + select: PlatformResourceEventSelect; + }; + platformResourceEventEdge?: { + select: PlatformResourceEventEdgeSelect; + }; }; -export interface CreateFunctionApiBindingPayload { +export interface CreateResourceStatusCheckPayload { clientMutationId?: string | null; - /** The `FunctionApiBinding` that was created by this mutation. */ - functionApiBinding?: FunctionApiBinding | null; - functionApiBindingEdge?: FunctionApiBindingEdge | null; + /** The `ResourceStatusCheck` that was created by this mutation. */ + resourceStatusCheck?: ResourceStatusCheck | null; + resourceStatusCheckEdge?: ResourceStatusCheckEdge | null; } -export type CreateFunctionApiBindingPayloadSelect = { +export type CreateResourceStatusCheckPayloadSelect = { clientMutationId?: boolean; - functionApiBinding?: { - select: FunctionApiBindingSelect; + resourceStatusCheck?: { + select: ResourceStatusCheckSelect; }; - functionApiBindingEdge?: { - select: FunctionApiBindingEdgeSelect; + resourceStatusCheckEdge?: { + select: ResourceStatusCheckEdgeSelect; }; }; -export interface UpdateFunctionApiBindingPayload { +export interface UpdateResourceStatusCheckPayload { clientMutationId?: string | null; - /** The `FunctionApiBinding` that was updated by this mutation. */ - functionApiBinding?: FunctionApiBinding | null; - functionApiBindingEdge?: FunctionApiBindingEdge | null; + /** The `ResourceStatusCheck` that was updated by this mutation. */ + resourceStatusCheck?: ResourceStatusCheck | null; + resourceStatusCheckEdge?: ResourceStatusCheckEdge | null; } -export type UpdateFunctionApiBindingPayloadSelect = { +export type UpdateResourceStatusCheckPayloadSelect = { clientMutationId?: boolean; - functionApiBinding?: { - select: FunctionApiBindingSelect; + resourceStatusCheck?: { + select: ResourceStatusCheckSelect; }; - functionApiBindingEdge?: { - select: FunctionApiBindingEdgeSelect; + resourceStatusCheckEdge?: { + select: ResourceStatusCheckEdgeSelect; }; }; -export interface DeleteFunctionApiBindingPayload { +export interface DeleteResourceStatusCheckPayload { clientMutationId?: string | null; - /** The `FunctionApiBinding` that was deleted by this mutation. */ - functionApiBinding?: FunctionApiBinding | null; - functionApiBindingEdge?: FunctionApiBindingEdge | null; + /** The `ResourceStatusCheck` that was deleted by this mutation. */ + resourceStatusCheck?: ResourceStatusCheck | null; + resourceStatusCheckEdge?: ResourceStatusCheckEdge | null; } -export type DeleteFunctionApiBindingPayloadSelect = { +export type DeleteResourceStatusCheckPayloadSelect = { clientMutationId?: boolean; - functionApiBinding?: { - select: FunctionApiBindingSelect; + resourceStatusCheck?: { + select: ResourceStatusCheckSelect; }; - functionApiBindingEdge?: { - select: FunctionApiBindingEdgeSelect; + resourceStatusCheckEdge?: { + select: ResourceStatusCheckEdgeSelect; }; }; export interface CreateFunctionDeploymentPayload { @@ -4704,139 +9511,49 @@ export type DeleteResourcePayloadSelect = { select: ResourceEdgeSelect; }; }; -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; -} -export type UpdateFunctionGraphRefPayloadSelect = { - clientMutationId?: boolean; - functionGraphRef?: { - select: FunctionGraphRefSelect; - }; - functionGraphRefEdge?: { - select: FunctionGraphRefEdgeSelect; - }; -}; -export interface DeleteFunctionGraphRefPayload { - clientMutationId?: string | null; - /** The `FunctionGraphRef` that was deleted by this mutation. */ - functionGraphRef?: FunctionGraphRef | null; - functionGraphRefEdge?: FunctionGraphRefEdge | null; -} -export type DeleteFunctionGraphRefPayloadSelect = { - clientMutationId?: boolean; - functionGraphRef?: { - select: FunctionGraphRefSelect; - }; - functionGraphRefEdge?: { - select: FunctionGraphRefEdgeSelect; - }; -}; -export interface CreateFunctionGraphStorePayload { - clientMutationId?: string | null; - /** The `FunctionGraphStore` that was created by this mutation. */ - functionGraphStore?: FunctionGraphStore | null; - functionGraphStoreEdge?: FunctionGraphStoreEdge | null; -} -export type CreateFunctionGraphStorePayloadSelect = { - clientMutationId?: boolean; - functionGraphStore?: { - select: FunctionGraphStoreSelect; - }; - functionGraphStoreEdge?: { - select: FunctionGraphStoreEdgeSelect; - }; -}; -export interface UpdateFunctionGraphStorePayload { - clientMutationId?: string | null; - /** The `FunctionGraphStore` that was updated by this mutation. */ - functionGraphStore?: FunctionGraphStore | null; - functionGraphStoreEdge?: FunctionGraphStoreEdge | null; -} -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 CreateFunctionGraphObjectPayload { +export interface CreateResourceDefinitionPayload { clientMutationId?: string | null; - /** The `FunctionGraphObject` that was created by this mutation. */ - functionGraphObject?: FunctionGraphObject | null; - functionGraphObjectEdge?: FunctionGraphObjectEdge | null; + /** The `ResourceDefinition` that was created by this mutation. */ + resourceDefinition?: ResourceDefinition | null; + resourceDefinitionEdge?: ResourceDefinitionEdge | null; } -export type CreateFunctionGraphObjectPayloadSelect = { +export type CreateResourceDefinitionPayloadSelect = { clientMutationId?: boolean; - functionGraphObject?: { - select: FunctionGraphObjectSelect; + resourceDefinition?: { + select: ResourceDefinitionSelect; }; - functionGraphObjectEdge?: { - select: FunctionGraphObjectEdgeSelect; + resourceDefinitionEdge?: { + select: ResourceDefinitionEdgeSelect; }; }; -export interface UpdateFunctionGraphObjectPayload { +export interface UpdateResourceDefinitionPayload { clientMutationId?: string | null; - /** The `FunctionGraphObject` that was updated by this mutation. */ - functionGraphObject?: FunctionGraphObject | null; - functionGraphObjectEdge?: FunctionGraphObjectEdge | null; + /** The `ResourceDefinition` that was updated by this mutation. */ + resourceDefinition?: ResourceDefinition | null; + resourceDefinitionEdge?: ResourceDefinitionEdge | null; } -export type UpdateFunctionGraphObjectPayloadSelect = { +export type UpdateResourceDefinitionPayloadSelect = { clientMutationId?: boolean; - functionGraphObject?: { - select: FunctionGraphObjectSelect; + resourceDefinition?: { + select: ResourceDefinitionSelect; }; - functionGraphObjectEdge?: { - select: FunctionGraphObjectEdgeSelect; + resourceDefinitionEdge?: { + select: ResourceDefinitionEdgeSelect; }; }; -export interface DeleteFunctionGraphObjectPayload { +export interface DeleteResourceDefinitionPayload { clientMutationId?: string | null; - /** The `FunctionGraphObject` that was deleted by this mutation. */ - functionGraphObject?: FunctionGraphObject | null; - functionGraphObjectEdge?: FunctionGraphObjectEdge | null; + /** The `ResourceDefinition` that was deleted by this mutation. */ + resourceDefinition?: ResourceDefinition | null; + resourceDefinitionEdge?: ResourceDefinitionEdge | null; } -export type DeleteFunctionGraphObjectPayloadSelect = { +export type DeleteResourceDefinitionPayloadSelect = { clientMutationId?: boolean; - functionGraphObject?: { - select: FunctionGraphObjectSelect; + resourceDefinition?: { + select: ResourceDefinitionSelect; }; - functionGraphObjectEdge?: { - select: FunctionGraphObjectEdgeSelect; + resourceDefinitionEdge?: { + select: ResourceDefinitionEdgeSelect; }; }; export interface CreateFunctionDeploymentEventPayload { @@ -4884,49 +9601,49 @@ export type DeleteFunctionDeploymentEventPayloadSelect = { select: FunctionDeploymentEventEdgeSelect; }; }; -export interface CreateOrgFunctionExecutionLogPayload { +export interface CreatePlatformFunctionExecutionLogPayload { clientMutationId?: string | null; - /** The `OrgFunctionExecutionLog` that was created by this mutation. */ - orgFunctionExecutionLog?: OrgFunctionExecutionLog | null; - orgFunctionExecutionLogEdge?: OrgFunctionExecutionLogEdge | null; + /** The `PlatformFunctionExecutionLog` that was created by this mutation. */ + platformFunctionExecutionLog?: PlatformFunctionExecutionLog | null; + platformFunctionExecutionLogEdge?: PlatformFunctionExecutionLogEdge | null; } -export type CreateOrgFunctionExecutionLogPayloadSelect = { +export type CreatePlatformFunctionExecutionLogPayloadSelect = { clientMutationId?: boolean; - orgFunctionExecutionLog?: { - select: OrgFunctionExecutionLogSelect; + platformFunctionExecutionLog?: { + select: PlatformFunctionExecutionLogSelect; }; - orgFunctionExecutionLogEdge?: { - select: OrgFunctionExecutionLogEdgeSelect; + platformFunctionExecutionLogEdge?: { + select: PlatformFunctionExecutionLogEdgeSelect; }; }; -export interface UpdateOrgFunctionExecutionLogPayload { +export interface UpdatePlatformFunctionExecutionLogPayload { clientMutationId?: string | null; - /** The `OrgFunctionExecutionLog` that was updated by this mutation. */ - orgFunctionExecutionLog?: OrgFunctionExecutionLog | null; - orgFunctionExecutionLogEdge?: OrgFunctionExecutionLogEdge | null; + /** The `PlatformFunctionExecutionLog` that was updated by this mutation. */ + platformFunctionExecutionLog?: PlatformFunctionExecutionLog | null; + platformFunctionExecutionLogEdge?: PlatformFunctionExecutionLogEdge | null; } -export type UpdateOrgFunctionExecutionLogPayloadSelect = { +export type UpdatePlatformFunctionExecutionLogPayloadSelect = { clientMutationId?: boolean; - orgFunctionExecutionLog?: { - select: OrgFunctionExecutionLogSelect; + platformFunctionExecutionLog?: { + select: PlatformFunctionExecutionLogSelect; }; - orgFunctionExecutionLogEdge?: { - select: OrgFunctionExecutionLogEdgeSelect; + platformFunctionExecutionLogEdge?: { + select: PlatformFunctionExecutionLogEdgeSelect; }; }; -export interface DeleteOrgFunctionExecutionLogPayload { +export interface DeletePlatformFunctionExecutionLogPayload { clientMutationId?: string | null; - /** The `OrgFunctionExecutionLog` that was deleted by this mutation. */ - orgFunctionExecutionLog?: OrgFunctionExecutionLog | null; - orgFunctionExecutionLogEdge?: OrgFunctionExecutionLogEdge | null; + /** The `PlatformFunctionExecutionLog` that was deleted by this mutation. */ + platformFunctionExecutionLog?: PlatformFunctionExecutionLog | null; + platformFunctionExecutionLogEdge?: PlatformFunctionExecutionLogEdge | null; } -export type DeleteOrgFunctionExecutionLogPayloadSelect = { +export type DeletePlatformFunctionExecutionLogPayloadSelect = { clientMutationId?: boolean; - orgFunctionExecutionLog?: { - select: OrgFunctionExecutionLogSelect; + platformFunctionExecutionLog?: { + select: PlatformFunctionExecutionLogSelect; }; - orgFunctionExecutionLogEdge?: { - select: OrgFunctionExecutionLogEdgeSelect; + platformFunctionExecutionLogEdge?: { + select: PlatformFunctionExecutionLogEdgeSelect; }; }; export interface CreateResourceEventPayload { @@ -5019,6 +9736,51 @@ export type DeleteFunctionGraphExecutionOutputPayloadSelect = { select: FunctionGraphExecutionOutputEdgeSelect; }; }; +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 CreateFunctionGraphCommitPayload { clientMutationId?: string | null; /** The `FunctionGraphCommit` that was created by this mutation. */ @@ -5064,51 +9826,6 @@ export type DeleteFunctionGraphCommitPayloadSelect = { select: FunctionGraphCommitEdgeSelect; }; }; -export interface CreateSecretDefinitionPayload { - clientMutationId?: string | null; - /** The `SecretDefinition` that was created by this mutation. */ - secretDefinition?: SecretDefinition | null; - secretDefinitionEdge?: SecretDefinitionEdge | null; -} -export type CreateSecretDefinitionPayloadSelect = { - clientMutationId?: boolean; - secretDefinition?: { - select: SecretDefinitionSelect; - }; - secretDefinitionEdge?: { - select: SecretDefinitionEdgeSelect; - }; -}; -export interface UpdateSecretDefinitionPayload { - clientMutationId?: string | null; - /** The `SecretDefinition` that was updated by this mutation. */ - secretDefinition?: SecretDefinition | null; - secretDefinitionEdge?: SecretDefinitionEdge | null; -} -export type UpdateSecretDefinitionPayloadSelect = { - clientMutationId?: boolean; - secretDefinition?: { - select: SecretDefinitionSelect; - }; - secretDefinitionEdge?: { - select: SecretDefinitionEdgeSelect; - }; -}; -export interface DeleteSecretDefinitionPayload { - clientMutationId?: string | null; - /** The `SecretDefinition` that was deleted by this mutation. */ - secretDefinition?: SecretDefinition | null; - secretDefinitionEdge?: SecretDefinitionEdge | null; -} -export type DeleteSecretDefinitionPayloadSelect = { - clientMutationId?: boolean; - secretDefinition?: { - select: SecretDefinitionSelect; - }; - secretDefinitionEdge?: { - select: SecretDefinitionEdgeSelect; - }; -}; export interface CreateFunctionExecutionLogPayload { clientMutationId?: string | null; /** The `FunctionExecutionLog` that was created by this mutation. */ @@ -5145,13 +9862,103 @@ export interface DeleteFunctionExecutionLogPayload { functionExecutionLog?: FunctionExecutionLog | null; functionExecutionLogEdge?: FunctionExecutionLogEdge | null; } -export type DeleteFunctionExecutionLogPayloadSelect = { +export type DeleteFunctionExecutionLogPayloadSelect = { + clientMutationId?: boolean; + functionExecutionLog?: { + select: FunctionExecutionLogSelect; + }; + functionExecutionLogEdge?: { + select: FunctionExecutionLogEdgeSelect; + }; +}; +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 CreatePlatformNamespacePayload { + clientMutationId?: string | null; + /** The `PlatformNamespace` that was created by this mutation. */ + platformNamespace?: PlatformNamespace | null; + platformNamespaceEdge?: PlatformNamespaceEdge | null; +} +export type CreatePlatformNamespacePayloadSelect = { + clientMutationId?: boolean; + platformNamespace?: { + select: PlatformNamespaceSelect; + }; + platformNamespaceEdge?: { + select: PlatformNamespaceEdgeSelect; + }; +}; +export interface UpdatePlatformNamespacePayload { + clientMutationId?: string | null; + /** The `PlatformNamespace` that was updated by this mutation. */ + platformNamespace?: PlatformNamespace | null; + platformNamespaceEdge?: PlatformNamespaceEdge | null; +} +export type UpdatePlatformNamespacePayloadSelect = { + clientMutationId?: boolean; + platformNamespace?: { + select: PlatformNamespaceSelect; + }; + platformNamespaceEdge?: { + select: PlatformNamespaceEdgeSelect; + }; +}; +export interface DeletePlatformNamespacePayload { + clientMutationId?: string | null; + /** The `PlatformNamespace` that was deleted by this mutation. */ + platformNamespace?: PlatformNamespace | null; + platformNamespaceEdge?: PlatformNamespaceEdge | null; +} +export type DeletePlatformNamespacePayloadSelect = { clientMutationId?: boolean; - functionExecutionLog?: { - select: FunctionExecutionLogSelect; + platformNamespace?: { + select: PlatformNamespaceSelect; }; - functionExecutionLogEdge?: { - select: FunctionExecutionLogEdgeSelect; + platformNamespaceEdge?: { + select: PlatformNamespaceEdgeSelect; }; }; export interface CreateFunctionGraphPayload { @@ -5237,94 +10044,94 @@ export type DeleteFunctionGraphExecutionNodeStatePayloadSelect = { select: FunctionGraphExecutionNodeStateEdgeSelect; }; }; -export interface CreatePlatformNamespacePayload { +export interface CreateNamespacePayload { clientMutationId?: string | null; - /** The `PlatformNamespace` that was created by this mutation. */ - platformNamespace?: PlatformNamespace | null; - platformNamespaceEdge?: PlatformNamespaceEdge | null; + /** The `Namespace` that was created by this mutation. */ + namespace?: Namespace | null; + namespaceEdge?: NamespaceEdge | null; } -export type CreatePlatformNamespacePayloadSelect = { +export type CreateNamespacePayloadSelect = { clientMutationId?: boolean; - platformNamespace?: { - select: PlatformNamespaceSelect; + namespace?: { + select: NamespaceSelect; }; - platformNamespaceEdge?: { - select: PlatformNamespaceEdgeSelect; + namespaceEdge?: { + select: NamespaceEdgeSelect; }; }; -export interface UpdatePlatformNamespacePayload { +export interface UpdateNamespacePayload { clientMutationId?: string | null; - /** The `PlatformNamespace` that was updated by this mutation. */ - platformNamespace?: PlatformNamespace | null; - platformNamespaceEdge?: PlatformNamespaceEdge | null; + /** The `Namespace` that was updated by this mutation. */ + namespace?: Namespace | null; + namespaceEdge?: NamespaceEdge | null; } -export type UpdatePlatformNamespacePayloadSelect = { +export type UpdateNamespacePayloadSelect = { clientMutationId?: boolean; - platformNamespace?: { - select: PlatformNamespaceSelect; + namespace?: { + select: NamespaceSelect; }; - platformNamespaceEdge?: { - select: PlatformNamespaceEdgeSelect; + namespaceEdge?: { + select: NamespaceEdgeSelect; }; }; -export interface DeletePlatformNamespacePayload { +export interface DeleteNamespacePayload { clientMutationId?: string | null; - /** The `PlatformNamespace` that was deleted by this mutation. */ - platformNamespace?: PlatformNamespace | null; - platformNamespaceEdge?: PlatformNamespaceEdge | null; + /** The `Namespace` that was deleted by this mutation. */ + namespace?: Namespace | null; + namespaceEdge?: NamespaceEdge | null; } -export type DeletePlatformNamespacePayloadSelect = { +export type DeleteNamespacePayloadSelect = { clientMutationId?: boolean; - platformNamespace?: { - select: PlatformNamespaceSelect; + namespace?: { + select: NamespaceSelect; }; - platformNamespaceEdge?: { - select: PlatformNamespaceEdgeSelect; + namespaceEdge?: { + select: NamespaceEdgeSelect; }; }; -export interface CreateOrgFunctionInvocationPayload { +export interface CreatePlatformFunctionInvocationPayload { clientMutationId?: string | null; - /** The `OrgFunctionInvocation` that was created by this mutation. */ - orgFunctionInvocation?: OrgFunctionInvocation | null; - orgFunctionInvocationEdge?: OrgFunctionInvocationEdge | null; + /** The `PlatformFunctionInvocation` that was created by this mutation. */ + platformFunctionInvocation?: PlatformFunctionInvocation | null; + platformFunctionInvocationEdge?: PlatformFunctionInvocationEdge | null; } -export type CreateOrgFunctionInvocationPayloadSelect = { +export type CreatePlatformFunctionInvocationPayloadSelect = { clientMutationId?: boolean; - orgFunctionInvocation?: { - select: OrgFunctionInvocationSelect; + platformFunctionInvocation?: { + select: PlatformFunctionInvocationSelect; }; - orgFunctionInvocationEdge?: { - select: OrgFunctionInvocationEdgeSelect; + platformFunctionInvocationEdge?: { + select: PlatformFunctionInvocationEdgeSelect; }; }; -export interface UpdateOrgFunctionInvocationPayload { +export interface UpdatePlatformFunctionInvocationPayload { clientMutationId?: string | null; - /** The `OrgFunctionInvocation` that was updated by this mutation. */ - orgFunctionInvocation?: OrgFunctionInvocation | null; - orgFunctionInvocationEdge?: OrgFunctionInvocationEdge | null; + /** The `PlatformFunctionInvocation` that was updated by this mutation. */ + platformFunctionInvocation?: PlatformFunctionInvocation | null; + platformFunctionInvocationEdge?: PlatformFunctionInvocationEdge | null; } -export type UpdateOrgFunctionInvocationPayloadSelect = { +export type UpdatePlatformFunctionInvocationPayloadSelect = { clientMutationId?: boolean; - orgFunctionInvocation?: { - select: OrgFunctionInvocationSelect; + platformFunctionInvocation?: { + select: PlatformFunctionInvocationSelect; }; - orgFunctionInvocationEdge?: { - select: OrgFunctionInvocationEdgeSelect; + platformFunctionInvocationEdge?: { + select: PlatformFunctionInvocationEdgeSelect; }; }; -export interface DeleteOrgFunctionInvocationPayload { +export interface DeletePlatformFunctionInvocationPayload { clientMutationId?: string | null; - /** The `OrgFunctionInvocation` that was deleted by this mutation. */ - orgFunctionInvocation?: OrgFunctionInvocation | null; - orgFunctionInvocationEdge?: OrgFunctionInvocationEdge | null; + /** The `PlatformFunctionInvocation` that was deleted by this mutation. */ + platformFunctionInvocation?: PlatformFunctionInvocation | null; + platformFunctionInvocationEdge?: PlatformFunctionInvocationEdge | null; } -export type DeleteOrgFunctionInvocationPayloadSelect = { +export type DeletePlatformFunctionInvocationPayloadSelect = { clientMutationId?: boolean; - orgFunctionInvocation?: { - select: OrgFunctionInvocationSelect; + platformFunctionInvocation?: { + select: PlatformFunctionInvocationSelect; }; - orgFunctionInvocationEdge?: { - select: OrgFunctionInvocationEdgeSelect; + platformFunctionInvocationEdge?: { + select: PlatformFunctionInvocationEdgeSelect; }; }; export interface CreateFunctionInvocationPayload { @@ -5417,6 +10224,96 @@ export type DeletePlatformNamespaceEventPayloadSelect = { select: PlatformNamespaceEventEdgeSelect; }; }; +export interface CreateIntegrationProviderPayload { + clientMutationId?: string | null; + /** The `IntegrationProvider` that was created by this mutation. */ + integrationProvider?: IntegrationProvider | null; + integrationProviderEdge?: IntegrationProviderEdge | null; +} +export type CreateIntegrationProviderPayloadSelect = { + clientMutationId?: boolean; + integrationProvider?: { + select: IntegrationProviderSelect; + }; + integrationProviderEdge?: { + select: IntegrationProviderEdgeSelect; + }; +}; +export interface UpdateIntegrationProviderPayload { + clientMutationId?: string | null; + /** The `IntegrationProvider` that was updated by this mutation. */ + integrationProvider?: IntegrationProvider | null; + integrationProviderEdge?: IntegrationProviderEdge | null; +} +export type UpdateIntegrationProviderPayloadSelect = { + clientMutationId?: boolean; + integrationProvider?: { + select: IntegrationProviderSelect; + }; + integrationProviderEdge?: { + select: IntegrationProviderEdgeSelect; + }; +}; +export interface DeleteIntegrationProviderPayload { + clientMutationId?: string | null; + /** The `IntegrationProvider` that was deleted by this mutation. */ + integrationProvider?: IntegrationProvider | null; + integrationProviderEdge?: IntegrationProviderEdge | null; +} +export type DeleteIntegrationProviderPayloadSelect = { + clientMutationId?: boolean; + integrationProvider?: { + select: IntegrationProviderSelect; + }; + integrationProviderEdge?: { + select: IntegrationProviderEdgeSelect; + }; +}; +export interface CreateNamespaceEventPayload { + clientMutationId?: string | null; + /** The `NamespaceEvent` that was created by this mutation. */ + namespaceEvent?: NamespaceEvent | null; + namespaceEventEdge?: NamespaceEventEdge | null; +} +export type CreateNamespaceEventPayloadSelect = { + clientMutationId?: boolean; + namespaceEvent?: { + select: NamespaceEventSelect; + }; + namespaceEventEdge?: { + select: NamespaceEventEdgeSelect; + }; +}; +export interface UpdateNamespaceEventPayload { + clientMutationId?: string | null; + /** The `NamespaceEvent` that was updated by this mutation. */ + namespaceEvent?: NamespaceEvent | null; + namespaceEventEdge?: NamespaceEventEdge | null; +} +export type UpdateNamespaceEventPayloadSelect = { + clientMutationId?: boolean; + namespaceEvent?: { + select: NamespaceEventSelect; + }; + namespaceEventEdge?: { + select: NamespaceEventEdgeSelect; + }; +}; +export interface DeleteNamespaceEventPayload { + clientMutationId?: string | null; + /** The `NamespaceEvent` that was deleted by this mutation. */ + namespaceEvent?: NamespaceEvent | null; + namespaceEventEdge?: NamespaceEventEdge | null; +} +export type DeleteNamespaceEventPayloadSelect = { + clientMutationId?: boolean; + namespaceEvent?: { + select: NamespaceEventSelect; + }; + namespaceEventEdge?: { + select: NamespaceEventEdgeSelect; + }; +}; export interface CreateFunctionGraphExecutionPayload { clientMutationId?: string | null; /** The `FunctionGraphExecution` that was created by this mutation. */ @@ -5462,6 +10359,51 @@ export type DeleteFunctionGraphExecutionPayloadSelect = { select: FunctionGraphExecutionEdgeSelect; }; }; +export interface CreatePlatformFunctionDefinitionPayload { + clientMutationId?: string | null; + /** The `PlatformFunctionDefinition` that was created by this mutation. */ + platformFunctionDefinition?: PlatformFunctionDefinition | null; + platformFunctionDefinitionEdge?: PlatformFunctionDefinitionEdge | null; +} +export type CreatePlatformFunctionDefinitionPayloadSelect = { + clientMutationId?: boolean; + platformFunctionDefinition?: { + select: PlatformFunctionDefinitionSelect; + }; + platformFunctionDefinitionEdge?: { + select: PlatformFunctionDefinitionEdgeSelect; + }; +}; +export interface UpdatePlatformFunctionDefinitionPayload { + clientMutationId?: string | null; + /** The `PlatformFunctionDefinition` that was updated by this mutation. */ + platformFunctionDefinition?: PlatformFunctionDefinition | null; + platformFunctionDefinitionEdge?: PlatformFunctionDefinitionEdge | null; +} +export type UpdatePlatformFunctionDefinitionPayloadSelect = { + clientMutationId?: boolean; + platformFunctionDefinition?: { + select: PlatformFunctionDefinitionSelect; + }; + platformFunctionDefinitionEdge?: { + select: PlatformFunctionDefinitionEdgeSelect; + }; +}; +export interface DeletePlatformFunctionDefinitionPayload { + clientMutationId?: string | null; + /** The `PlatformFunctionDefinition` that was deleted by this mutation. */ + platformFunctionDefinition?: PlatformFunctionDefinition | null; + platformFunctionDefinitionEdge?: PlatformFunctionDefinitionEdge | null; +} +export type DeletePlatformFunctionDefinitionPayloadSelect = { + clientMutationId?: boolean; + platformFunctionDefinition?: { + select: PlatformFunctionDefinitionSelect; + }; + platformFunctionDefinitionEdge?: { + select: PlatformFunctionDefinitionEdgeSelect; + }; +}; export interface CreateFunctionDefinitionPayload { clientMutationId?: string | null; /** The `FunctionDefinition` that was created by this mutation. */ @@ -5507,40 +10449,40 @@ export type DeleteFunctionDefinitionPayloadSelect = { select: FunctionDefinitionEdgeSelect; }; }; -/** A `FunctionApiBinding` edge in the connection. */ -export interface FunctionApiBindingEdge { +/** A `InfraRef` edge in the connection. */ +export interface InfraRefEdge { cursor?: string | null; - /** The `FunctionApiBinding` at the end of the edge. */ - node?: FunctionApiBinding | null; + /** The `InfraRef` at the end of the edge. */ + node?: InfraRef | null; } -export type FunctionApiBindingEdgeSelect = { +export type InfraRefEdgeSelect = { cursor?: boolean; node?: { - select: FunctionApiBindingSelect; + select: InfraRefSelect; }; }; -/** A `FunctionDeployment` edge in the connection. */ -export interface FunctionDeploymentEdge { +/** A `InfraStore` edge in the connection. */ +export interface InfraStoreEdge { cursor?: string | null; - /** The `FunctionDeployment` at the end of the edge. */ - node?: FunctionDeployment | null; + /** The `InfraStore` at the end of the edge. */ + node?: InfraStore | null; } -export type FunctionDeploymentEdgeSelect = { +export type InfraStoreEdgeSelect = { cursor?: boolean; node?: { - select: FunctionDeploymentSelect; + select: InfraStoreSelect; }; }; -/** A `Resource` edge in the connection. */ -export interface ResourceEdge { +/** A `FunctionApiBinding` edge in the connection. */ +export interface FunctionApiBindingEdge { cursor?: string | null; - /** The `Resource` at the end of the edge. */ - node?: Resource | null; + /** The `FunctionApiBinding` at the end of the edge. */ + node?: FunctionApiBinding | null; } -export type ResourceEdgeSelect = { +export type FunctionApiBindingEdgeSelect = { cursor?: boolean; node?: { - select: ResourceSelect; + select: FunctionApiBindingSelect; }; }; /** A `FunctionGraphRef` edge in the connection. */ @@ -5567,6 +10509,78 @@ export type FunctionGraphStoreEdgeSelect = { select: FunctionGraphStoreSelect; }; }; +/** A `PlatformFunctionApiBinding` edge in the connection. */ +export interface PlatformFunctionApiBindingEdge { + cursor?: string | null; + /** The `PlatformFunctionApiBinding` at the end of the edge. */ + node?: PlatformFunctionApiBinding | null; +} +export type PlatformFunctionApiBindingEdgeSelect = { + cursor?: boolean; + node?: { + select: PlatformFunctionApiBindingSelect; + }; +}; +/** A `PlatformResourceStatusCheck` edge in the connection. */ +export interface PlatformResourceStatusCheckEdge { + cursor?: string | null; + /** The `PlatformResourceStatusCheck` at the end of the edge. */ + node?: PlatformResourceStatusCheck | null; +} +export type PlatformResourceStatusCheckEdgeSelect = { + cursor?: boolean; + node?: { + select: PlatformResourceStatusCheckSelect; + }; +}; +/** A `PlatformFunctionDeployment` edge in the connection. */ +export interface PlatformFunctionDeploymentEdge { + cursor?: string | null; + /** The `PlatformFunctionDeployment` at the end of the edge. */ + node?: PlatformFunctionDeployment | null; +} +export type PlatformFunctionDeploymentEdgeSelect = { + cursor?: boolean; + node?: { + select: PlatformFunctionDeploymentSelect; + }; +}; +/** A `PlatformResource` edge in the connection. */ +export interface PlatformResourceEdge { + cursor?: string | null; + /** The `PlatformResource` at the end of the edge. */ + node?: PlatformResource | null; +} +export type PlatformResourceEdgeSelect = { + cursor?: boolean; + node?: { + select: PlatformResourceSelect; + }; +}; +/** A `PlatformResourceDefinition` edge in the connection. */ +export interface PlatformResourceDefinitionEdge { + cursor?: string | null; + /** The `PlatformResourceDefinition` at the end of the edge. */ + node?: PlatformResourceDefinition | null; +} +export type PlatformResourceDefinitionEdgeSelect = { + cursor?: boolean; + node?: { + select: PlatformResourceDefinitionSelect; + }; +}; +/** A `InfraObject` edge in the connection. */ +export interface InfraObjectEdge { + cursor?: string | null; + /** The `InfraObject` at the end of the edge. */ + node?: InfraObject | null; +} +export type InfraObjectEdgeSelect = { + cursor?: boolean; + node?: { + select: InfraObjectSelect; + }; +}; /** A `FunctionGraphObject` edge in the connection. */ export interface FunctionGraphObjectEdge { cursor?: string | null; @@ -5579,6 +10593,78 @@ export type FunctionGraphObjectEdgeSelect = { select: FunctionGraphObjectSelect; }; }; +/** A `PlatformFunctionDeploymentEvent` edge in the connection. */ +export interface PlatformFunctionDeploymentEventEdge { + cursor?: string | null; + /** The `PlatformFunctionDeploymentEvent` at the end of the edge. */ + node?: PlatformFunctionDeploymentEvent | null; +} +export type PlatformFunctionDeploymentEventEdgeSelect = { + cursor?: boolean; + node?: { + select: PlatformFunctionDeploymentEventSelect; + }; +}; +/** A `PlatformResourceEvent` edge in the connection. */ +export interface PlatformResourceEventEdge { + cursor?: string | null; + /** The `PlatformResourceEvent` at the end of the edge. */ + node?: PlatformResourceEvent | null; +} +export type PlatformResourceEventEdgeSelect = { + cursor?: boolean; + node?: { + select: PlatformResourceEventSelect; + }; +}; +/** A `ResourceStatusCheck` edge in the connection. */ +export interface ResourceStatusCheckEdge { + cursor?: string | null; + /** The `ResourceStatusCheck` at the end of the edge. */ + node?: ResourceStatusCheck | null; +} +export type ResourceStatusCheckEdgeSelect = { + cursor?: boolean; + node?: { + select: ResourceStatusCheckSelect; + }; +}; +/** A `FunctionDeployment` edge in the connection. */ +export interface FunctionDeploymentEdge { + cursor?: string | null; + /** The `FunctionDeployment` at the end of the edge. */ + node?: FunctionDeployment | null; +} +export type FunctionDeploymentEdgeSelect = { + cursor?: boolean; + node?: { + select: FunctionDeploymentSelect; + }; +}; +/** A `Resource` edge in the connection. */ +export interface ResourceEdge { + cursor?: string | null; + /** The `Resource` at the end of the edge. */ + node?: Resource | null; +} +export type ResourceEdgeSelect = { + cursor?: boolean; + node?: { + select: ResourceSelect; + }; +}; +/** A `ResourceDefinition` edge in the connection. */ +export interface ResourceDefinitionEdge { + cursor?: string | null; + /** The `ResourceDefinition` at the end of the edge. */ + node?: ResourceDefinition | null; +} +export type ResourceDefinitionEdgeSelect = { + cursor?: boolean; + node?: { + select: ResourceDefinitionSelect; + }; +}; /** A `FunctionDeploymentEvent` edge in the connection. */ export interface FunctionDeploymentEventEdge { cursor?: string | null; @@ -5591,16 +10677,16 @@ export type FunctionDeploymentEventEdgeSelect = { select: FunctionDeploymentEventSelect; }; }; -/** A `OrgFunctionExecutionLog` edge in the connection. */ -export interface OrgFunctionExecutionLogEdge { +/** A `PlatformFunctionExecutionLog` edge in the connection. */ +export interface PlatformFunctionExecutionLogEdge { cursor?: string | null; - /** The `OrgFunctionExecutionLog` at the end of the edge. */ - node?: OrgFunctionExecutionLog | null; + /** The `PlatformFunctionExecutionLog` at the end of the edge. */ + node?: PlatformFunctionExecutionLog | null; } -export type OrgFunctionExecutionLogEdgeSelect = { +export type PlatformFunctionExecutionLogEdgeSelect = { cursor?: boolean; node?: { - select: OrgFunctionExecutionLogSelect; + select: PlatformFunctionExecutionLogSelect; }; }; /** A `ResourceEvent` edge in the connection. */ @@ -5627,28 +10713,28 @@ export type FunctionGraphExecutionOutputEdgeSelect = { select: FunctionGraphExecutionOutputSelect; }; }; -/** A `FunctionGraphCommit` edge in the connection. */ -export interface FunctionGraphCommitEdge { +/** A `InfraCommit` edge in the connection. */ +export interface InfraCommitEdge { cursor?: string | null; - /** The `FunctionGraphCommit` at the end of the edge. */ - node?: FunctionGraphCommit | null; + /** The `InfraCommit` at the end of the edge. */ + node?: InfraCommit | null; } -export type FunctionGraphCommitEdgeSelect = { +export type InfraCommitEdgeSelect = { cursor?: boolean; node?: { - select: FunctionGraphCommitSelect; + select: InfraCommitSelect; }; }; -/** A `SecretDefinition` edge in the connection. */ -export interface SecretDefinitionEdge { +/** A `FunctionGraphCommit` edge in the connection. */ +export interface FunctionGraphCommitEdge { cursor?: string | null; - /** The `SecretDefinition` at the end of the edge. */ - node?: SecretDefinition | null; + /** The `FunctionGraphCommit` at the end of the edge. */ + node?: FunctionGraphCommit | null; } -export type SecretDefinitionEdgeSelect = { +export type FunctionGraphCommitEdgeSelect = { cursor?: boolean; node?: { - select: SecretDefinitionSelect; + select: FunctionGraphCommitSelect; }; }; /** A `FunctionExecutionLog` edge in the connection. */ @@ -5663,6 +10749,30 @@ export type FunctionExecutionLogEdgeSelect = { select: FunctionExecutionLogSelect; }; }; +/** A `DbPreset` edge in the connection. */ +export interface DbPresetEdge { + cursor?: string | null; + /** The `DbPreset` at the end of the edge. */ + node?: DbPreset | null; +} +export type DbPresetEdgeSelect = { + cursor?: boolean; + node?: { + select: DbPresetSelect; + }; +}; +/** A `PlatformNamespace` edge in the connection. */ +export interface PlatformNamespaceEdge { + cursor?: string | null; + /** The `PlatformNamespace` at the end of the edge. */ + node?: PlatformNamespace | null; +} +export type PlatformNamespaceEdgeSelect = { + cursor?: boolean; + node?: { + select: PlatformNamespaceSelect; + }; +}; /** A `FunctionGraph` edge in the connection. */ export interface FunctionGraphEdge { cursor?: string | null; @@ -5687,28 +10797,28 @@ export type FunctionGraphExecutionNodeStateEdgeSelect = { select: FunctionGraphExecutionNodeStateSelect; }; }; -/** A `PlatformNamespace` edge in the connection. */ -export interface PlatformNamespaceEdge { +/** A `Namespace` edge in the connection. */ +export interface NamespaceEdge { cursor?: string | null; - /** The `PlatformNamespace` at the end of the edge. */ - node?: PlatformNamespace | null; + /** The `Namespace` at the end of the edge. */ + node?: Namespace | null; } -export type PlatformNamespaceEdgeSelect = { +export type NamespaceEdgeSelect = { cursor?: boolean; node?: { - select: PlatformNamespaceSelect; + select: NamespaceSelect; }; }; -/** A `OrgFunctionInvocation` edge in the connection. */ -export interface OrgFunctionInvocationEdge { +/** A `PlatformFunctionInvocation` edge in the connection. */ +export interface PlatformFunctionInvocationEdge { cursor?: string | null; - /** The `OrgFunctionInvocation` at the end of the edge. */ - node?: OrgFunctionInvocation | null; + /** The `PlatformFunctionInvocation` at the end of the edge. */ + node?: PlatformFunctionInvocation | null; } -export type OrgFunctionInvocationEdgeSelect = { +export type PlatformFunctionInvocationEdgeSelect = { cursor?: boolean; node?: { - select: OrgFunctionInvocationSelect; + select: PlatformFunctionInvocationSelect; }; }; /** A `FunctionInvocation` edge in the connection. */ @@ -5735,6 +10845,30 @@ export type PlatformNamespaceEventEdgeSelect = { select: PlatformNamespaceEventSelect; }; }; +/** A `IntegrationProvider` edge in the connection. */ +export interface IntegrationProviderEdge { + cursor?: string | null; + /** The `IntegrationProvider` at the end of the edge. */ + node?: IntegrationProvider | null; +} +export type IntegrationProviderEdgeSelect = { + cursor?: boolean; + node?: { + select: IntegrationProviderSelect; + }; +}; +/** A `NamespaceEvent` edge in the connection. */ +export interface NamespaceEventEdge { + cursor?: string | null; + /** The `NamespaceEvent` at the end of the edge. */ + node?: NamespaceEvent | null; +} +export type NamespaceEventEdgeSelect = { + cursor?: boolean; + node?: { + select: NamespaceEventSelect; + }; +}; /** A `FunctionGraphExecution` edge in the connection. */ export interface FunctionGraphExecutionEdge { cursor?: string | null; @@ -5747,6 +10881,18 @@ export type FunctionGraphExecutionEdgeSelect = { select: FunctionGraphExecutionSelect; }; }; +/** A `PlatformFunctionDefinition` edge in the connection. */ +export interface PlatformFunctionDefinitionEdge { + cursor?: string | null; + /** The `PlatformFunctionDefinition` at the end of the edge. */ + node?: PlatformFunctionDefinition | null; +} +export type PlatformFunctionDefinitionEdgeSelect = { + cursor?: boolean; + node?: { + select: PlatformFunctionDefinitionSelect; + }; +}; /** A `FunctionDefinition` edge in the connection. */ export interface FunctionDefinitionEdge { cursor?: string | null; diff --git a/sdk/constructive-sdk/src/compute/orm/models/dbPreset.ts b/sdk/constructive-sdk/src/compute/orm/models/dbPreset.ts new file mode 100644 index 0000000000..a3e824a674 --- /dev/null +++ b/sdk/constructive-sdk/src/compute/orm/models/dbPreset.ts @@ -0,0 +1,245 @@ +/** + * DbPreset model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + DbPreset, + DbPresetWithRelations, + DbPresetSelect, + DbPresetFilter, + DbPresetOrderBy, + CreateDbPresetInput, + UpdateDbPresetInput, + DbPresetPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class DbPresetModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + dbPresets: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'DbPreset', + 'dbPresets', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'DbPresetFilter', + 'DbPresetOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'DbPreset', + fieldName: 'dbPresets', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + dbPreset: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'DbPreset', + 'dbPresets', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'DbPresetFilter', + 'DbPresetOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'DbPreset', + fieldName: 'dbPreset', + document, + variables, + transform: (data: { + dbPresets?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + dbPreset: data.dbPresets?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + dbPreset: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'DbPreset', + 'dbPresets', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'DbPresetFilter', + 'DbPresetOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'DbPreset', + fieldName: 'dbPreset', + document, + variables, + transform: (data: { + dbPresets?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + dbPreset: data.dbPresets?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createDbPreset: { + dbPreset: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'DbPreset', + 'createDbPreset', + 'dbPreset', + args.select, + args.data, + 'CreateDbPresetInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'DbPreset', + fieldName: 'createDbPreset', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + DbPresetPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateDbPreset: { + dbPreset: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'DbPreset', + 'updateDbPreset', + 'dbPreset', + args.select, + args.where.id, + args.data, + 'UpdateDbPresetInput', + 'id', + 'dbPresetPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'DbPreset', + fieldName: 'updateDbPreset', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteDbPreset: { + dbPreset: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'DbPreset', + 'deleteDbPreset', + 'dbPreset', + { + id: args.where.id, + }, + 'DeleteDbPresetInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'DbPreset', + fieldName: 'deleteDbPreset', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/compute/orm/models/functionGraphCommit.ts b/sdk/constructive-sdk/src/compute/orm/models/functionGraphCommit.ts index 65426339ae..cd7d7dad08 100644 --- a/sdk/constructive-sdk/src/compute/orm/models/functionGraphCommit.ts +++ b/sdk/constructive-sdk/src/compute/orm/models/functionGraphCommit.ts @@ -176,7 +176,7 @@ export class FunctionGraphCommitModel { S, { id: string; - databaseId: string; + scopeId: string; }, FunctionGraphCommitPatch > & { @@ -199,7 +199,7 @@ export class FunctionGraphCommitModel { 'functionGraphCommitPatch', connectionFieldsMap, { - databaseId: args.where.databaseId, + scopeId: args.where.scopeId, } ); return new QueryBuilder({ @@ -215,7 +215,7 @@ export class FunctionGraphCommitModel { args: DeleteArgs< { id: string; - databaseId: string; + scopeId: string; }, S > & { @@ -232,7 +232,7 @@ export class FunctionGraphCommitModel { 'functionGraphCommit', { id: args.where.id, - databaseId: args.where.databaseId, + scopeId: args.where.scopeId, }, 'DeleteFunctionGraphCommitInput', args.select, diff --git a/sdk/constructive-sdk/src/compute/orm/models/functionGraphObject.ts b/sdk/constructive-sdk/src/compute/orm/models/functionGraphObject.ts index cf946855ac..d1f358a726 100644 --- a/sdk/constructive-sdk/src/compute/orm/models/functionGraphObject.ts +++ b/sdk/constructive-sdk/src/compute/orm/models/functionGraphObject.ts @@ -162,7 +162,7 @@ export class FunctionGraphObjectModel { S, { id: string; - databaseId: string; + scopeId: string; }, FunctionGraphObjectPatch > & { @@ -185,7 +185,7 @@ export class FunctionGraphObjectModel { 'functionGraphObjectPatch', connectionFieldsMap, { - databaseId: args.where.databaseId, + scopeId: args.where.scopeId, } ); return new QueryBuilder({ @@ -201,7 +201,7 @@ export class FunctionGraphObjectModel { args: DeleteArgs< { id: string; - databaseId: string; + scopeId: string; }, S > & { @@ -218,7 +218,7 @@ export class FunctionGraphObjectModel { 'functionGraphObject', { id: args.where.id, - databaseId: args.where.databaseId, + scopeId: args.where.scopeId, }, 'DeleteFunctionGraphObjectInput', args.select, diff --git a/sdk/constructive-sdk/src/compute/orm/models/functionGraphRef.ts b/sdk/constructive-sdk/src/compute/orm/models/functionGraphRef.ts index 22d8769625..c4ee3889eb 100644 --- a/sdk/constructive-sdk/src/compute/orm/models/functionGraphRef.ts +++ b/sdk/constructive-sdk/src/compute/orm/models/functionGraphRef.ts @@ -176,7 +176,7 @@ export class FunctionGraphRefModel { S, { id: string; - databaseId: string; + scopeId: string; }, FunctionGraphRefPatch > & { @@ -199,7 +199,7 @@ export class FunctionGraphRefModel { 'functionGraphRefPatch', connectionFieldsMap, { - databaseId: args.where.databaseId, + scopeId: args.where.scopeId, } ); return new QueryBuilder({ @@ -215,7 +215,7 @@ export class FunctionGraphRefModel { args: DeleteArgs< { id: string; - databaseId: string; + scopeId: string; }, S > & { @@ -232,7 +232,7 @@ export class FunctionGraphRefModel { 'functionGraphRef', { id: args.where.id, - databaseId: args.where.databaseId, + scopeId: args.where.scopeId, }, 'DeleteFunctionGraphRefInput', args.select, diff --git a/sdk/constructive-sdk/src/compute/orm/models/index.ts b/sdk/constructive-sdk/src/compute/orm/models/index.ts index cce3b40556..f081e66007 100644 --- a/sdk/constructive-sdk/src/compute/orm/models/index.ts +++ b/sdk/constructive-sdk/src/compute/orm/models/index.ts @@ -3,25 +3,47 @@ * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ +export { InfraGetAllRecordModel } from './infraGetAllRecord'; export { GetAllRecordModel } from './getAllRecord'; +export { InfraRefModel } from './infraRef'; +export { InfraStoreModel } from './infraStore'; export { FunctionApiBindingModel } from './functionApiBinding'; -export { FunctionDeploymentModel } from './functionDeployment'; -export { ResourceModel } from './resource'; export { FunctionGraphRefModel } from './functionGraphRef'; export { FunctionGraphStoreModel } from './functionGraphStore'; +export { PlatformFunctionApiBindingModel } from './platformFunctionApiBinding'; +export { PlatformResourcesRequirementsStateModel } from './platformResourcesRequirementsState'; +export { ResourcesRequirementsStateModel } from './resourcesRequirementsState'; +export { PlatformResourceStatusCheckModel } from './platformResourceStatusCheck'; +export { PlatformFunctionDeploymentModel } from './platformFunctionDeployment'; +export { PlatformResourceModel } from './platformResource'; +export { PlatformResourceDefinitionModel } from './platformResourceDefinition'; +export { InfraObjectModel } from './infraObject'; export { FunctionGraphObjectModel } from './functionGraphObject'; +export { PlatformFunctionDeploymentEventModel } from './platformFunctionDeploymentEvent'; +export { PlatformResourceEventModel } from './platformResourceEvent'; +export { ResourceStatusCheckModel } from './resourceStatusCheck'; +export { FunctionDeploymentModel } from './functionDeployment'; +export { ResourceModel } from './resource'; +export { ResourceDefinitionModel } from './resourceDefinition'; export { FunctionDeploymentEventModel } from './functionDeploymentEvent'; -export { OrgFunctionExecutionLogModel } from './orgFunctionExecutionLog'; +export { PlatformFunctionExecutionLogModel } from './platformFunctionExecutionLog'; export { ResourceEventModel } from './resourceEvent'; export { FunctionGraphExecutionOutputModel } from './functionGraphExecutionOutput'; +export { InfraCommitModel } from './infraCommit'; export { FunctionGraphCommitModel } from './functionGraphCommit'; -export { SecretDefinitionModel } from './secretDefinition'; export { FunctionExecutionLogModel } from './functionExecutionLog'; +export { PlatformResourcesResolvedRequirementModel } from './platformResourcesResolvedRequirement'; +export { ResourcesResolvedRequirementModel } from './resourcesResolvedRequirement'; +export { DbPresetModel } from './dbPreset'; +export { PlatformNamespaceModel } from './platformNamespace'; export { FunctionGraphModel } from './functionGraph'; export { FunctionGraphExecutionNodeStateModel } from './functionGraphExecutionNodeState'; -export { PlatformNamespaceModel } from './platformNamespace'; -export { OrgFunctionInvocationModel } from './orgFunctionInvocation'; +export { NamespaceModel } from './namespace'; +export { PlatformFunctionInvocationModel } from './platformFunctionInvocation'; export { FunctionInvocationModel } from './functionInvocation'; export { PlatformNamespaceEventModel } from './platformNamespaceEvent'; +export { IntegrationProviderModel } from './integrationProvider'; +export { NamespaceEventModel } from './namespaceEvent'; export { FunctionGraphExecutionModel } from './functionGraphExecution'; +export { PlatformFunctionDefinitionModel } from './platformFunctionDefinition'; export { FunctionDefinitionModel } from './functionDefinition'; diff --git a/sdk/constructive-sdk/src/compute/orm/models/infraCommit.ts b/sdk/constructive-sdk/src/compute/orm/models/infraCommit.ts new file mode 100644 index 0000000000..410e937a90 --- /dev/null +++ b/sdk/constructive-sdk/src/compute/orm/models/infraCommit.ts @@ -0,0 +1,250 @@ +/** + * InfraCommit model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + InfraCommit, + InfraCommitWithRelations, + InfraCommitSelect, + InfraCommitFilter, + InfraCommitOrderBy, + CreateInfraCommitInput, + UpdateInfraCommitInput, + InfraCommitPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class InfraCommitModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + infraCommits: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'InfraCommit', + 'infraCommits', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'InfraCommitFilter', + 'InfraCommitOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'InfraCommit', + fieldName: 'infraCommits', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + infraCommit: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'InfraCommit', + 'infraCommits', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'InfraCommitFilter', + 'InfraCommitOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'InfraCommit', + fieldName: 'infraCommit', + document, + variables, + transform: (data: { + infraCommits?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + infraCommit: data.infraCommits?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + infraCommit: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'InfraCommit', + 'infraCommits', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'InfraCommitFilter', + 'InfraCommitOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'InfraCommit', + fieldName: 'infraCommit', + document, + variables, + transform: (data: { + infraCommits?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + infraCommit: data.infraCommits?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createInfraCommit: { + infraCommit: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'InfraCommit', + 'createInfraCommit', + 'infraCommit', + args.select, + args.data, + 'CreateInfraCommitInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'InfraCommit', + fieldName: 'createInfraCommit', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + scopeId: string; + }, + InfraCommitPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateInfraCommit: { + infraCommit: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'InfraCommit', + 'updateInfraCommit', + 'infraCommit', + args.select, + args.where.id, + args.data, + 'UpdateInfraCommitInput', + 'id', + 'infraCommitPatch', + connectionFieldsMap, + { + scopeId: args.where.scopeId, + } + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'InfraCommit', + fieldName: 'updateInfraCommit', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + scopeId: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteInfraCommit: { + infraCommit: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'InfraCommit', + 'deleteInfraCommit', + 'infraCommit', + { + id: args.where.id, + scopeId: args.where.scopeId, + }, + 'DeleteInfraCommitInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'InfraCommit', + fieldName: 'deleteInfraCommit', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/compute/orm/models/infraGetAllRecord.ts b/sdk/constructive-sdk/src/compute/orm/models/infraGetAllRecord.ts new file mode 100644 index 0000000000..ebe2f8c1f2 --- /dev/null +++ b/sdk/constructive-sdk/src/compute/orm/models/infraGetAllRecord.ts @@ -0,0 +1,134 @@ +/** + * InfraGetAllRecord model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + InfraGetAllRecord, + InfraGetAllRecordWithRelations, + InfraGetAllRecordSelect, + InfraGetAllRecordFilter, + InfraGetAllRecordsOrderBy, + CreateInfraGetAllRecordInput, + UpdateInfraGetAllRecordInput, + InfraGetAllRecordPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class InfraGetAllRecordModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + infraGetAll: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'InfraGetAllRecord', + 'infraGetAll', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'InfraGetAllRecordFilter', + 'InfraGetAllRecordsOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'InfraGetAllRecord', + fieldName: 'infraGetAll', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + infraGetAllRecord: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'InfraGetAllRecord', + 'infraGetAll', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'InfraGetAllRecordFilter', + 'InfraGetAllRecordsOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'InfraGetAllRecord', + fieldName: 'infraGetAllRecord', + document, + variables, + transform: (data: { + infraGetAll?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + infraGetAllRecord: data.infraGetAll?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createInfraGetAllRecord: { + infraGetAllRecord: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'InfraGetAllRecord', + 'createInfraGetAllRecord', + 'infraGetAllRecord', + args.select, + args.data, + 'CreateInfraGetAllRecordInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'InfraGetAllRecord', + fieldName: 'createInfraGetAllRecord', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/compute/orm/models/infraObject.ts b/sdk/constructive-sdk/src/compute/orm/models/infraObject.ts new file mode 100644 index 0000000000..e097c8b271 --- /dev/null +++ b/sdk/constructive-sdk/src/compute/orm/models/infraObject.ts @@ -0,0 +1,236 @@ +/** + * InfraObject model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + InfraObject, + InfraObjectWithRelations, + InfraObjectSelect, + InfraObjectFilter, + InfraObjectOrderBy, + CreateInfraObjectInput, + UpdateInfraObjectInput, + InfraObjectPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class InfraObjectModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + infraObjects: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'InfraObject', + 'infraObjects', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'InfraObjectFilter', + 'InfraObjectOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'InfraObject', + fieldName: 'infraObjects', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + infraObject: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'InfraObject', + 'infraObjects', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'InfraObjectFilter', + 'InfraObjectOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'InfraObject', + fieldName: 'infraObject', + document, + variables, + transform: (data: { + infraObjects?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + infraObject: data.infraObjects?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + infraObject: InferSelectResult | null; + }> { + const { document, variables } = buildFindOneDocument( + 'InfraObject', + 'infraGetNodeAtPath', + args.id, + args.select, + 'id', + 'UUID!', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'InfraObject', + fieldName: 'infraObject', + document, + variables, + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createInfraObject: { + infraObject: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'InfraObject', + 'createInfraObject', + 'infraObject', + args.select, + args.data, + 'CreateInfraObjectInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'InfraObject', + fieldName: 'createInfraObject', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + scopeId: string; + }, + InfraObjectPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateInfraObject: { + infraObject: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'InfraObject', + 'updateInfraObject', + 'infraObject', + args.select, + args.where.id, + args.data, + 'UpdateInfraObjectInput', + 'id', + 'infraObjectPatch', + connectionFieldsMap, + { + scopeId: args.where.scopeId, + } + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'InfraObject', + fieldName: 'updateInfraObject', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + scopeId: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteInfraObject: { + infraObject: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'InfraObject', + 'deleteInfraObject', + 'infraObject', + { + id: args.where.id, + scopeId: args.where.scopeId, + }, + 'DeleteInfraObjectInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'InfraObject', + fieldName: 'deleteInfraObject', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/compute/orm/models/infraRef.ts b/sdk/constructive-sdk/src/compute/orm/models/infraRef.ts new file mode 100644 index 0000000000..3c474d3186 --- /dev/null +++ b/sdk/constructive-sdk/src/compute/orm/models/infraRef.ts @@ -0,0 +1,250 @@ +/** + * InfraRef model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + InfraRef, + InfraRefWithRelations, + InfraRefSelect, + InfraRefFilter, + InfraRefOrderBy, + CreateInfraRefInput, + UpdateInfraRefInput, + InfraRefPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class InfraRefModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + infraRefs: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'InfraRef', + 'infraRefs', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'InfraRefFilter', + 'InfraRefOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'InfraRef', + fieldName: 'infraRefs', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + infraRef: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'InfraRef', + 'infraRefs', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'InfraRefFilter', + 'InfraRefOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'InfraRef', + fieldName: 'infraRef', + document, + variables, + transform: (data: { + infraRefs?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + infraRef: data.infraRefs?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + infraRef: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'InfraRef', + 'infraRefs', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'InfraRefFilter', + 'InfraRefOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'InfraRef', + fieldName: 'infraRef', + document, + variables, + transform: (data: { + infraRefs?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + infraRef: data.infraRefs?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createInfraRef: { + infraRef: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'InfraRef', + 'createInfraRef', + 'infraRef', + args.select, + args.data, + 'CreateInfraRefInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'InfraRef', + fieldName: 'createInfraRef', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + scopeId: string; + }, + InfraRefPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateInfraRef: { + infraRef: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'InfraRef', + 'updateInfraRef', + 'infraRef', + args.select, + args.where.id, + args.data, + 'UpdateInfraRefInput', + 'id', + 'infraRefPatch', + connectionFieldsMap, + { + scopeId: args.where.scopeId, + } + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'InfraRef', + fieldName: 'updateInfraRef', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + scopeId: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteInfraRef: { + infraRef: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'InfraRef', + 'deleteInfraRef', + 'infraRef', + { + id: args.where.id, + scopeId: args.where.scopeId, + }, + 'DeleteInfraRefInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'InfraRef', + fieldName: 'deleteInfraRef', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/compute/orm/models/infraStore.ts b/sdk/constructive-sdk/src/compute/orm/models/infraStore.ts new file mode 100644 index 0000000000..a0ed0dbe7b --- /dev/null +++ b/sdk/constructive-sdk/src/compute/orm/models/infraStore.ts @@ -0,0 +1,245 @@ +/** + * InfraStore model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + InfraStore, + InfraStoreWithRelations, + InfraStoreSelect, + InfraStoreFilter, + InfraStoreOrderBy, + CreateInfraStoreInput, + UpdateInfraStoreInput, + InfraStorePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class InfraStoreModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + infraStores: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'InfraStore', + 'infraStores', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'InfraStoreFilter', + 'InfraStoreOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'InfraStore', + fieldName: 'infraStores', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + infraStore: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'InfraStore', + 'infraStores', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'InfraStoreFilter', + 'InfraStoreOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'InfraStore', + fieldName: 'infraStore', + document, + variables, + transform: (data: { + infraStores?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + infraStore: data.infraStores?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + infraStore: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'InfraStore', + 'infraStores', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'InfraStoreFilter', + 'InfraStoreOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'InfraStore', + fieldName: 'infraStore', + document, + variables, + transform: (data: { + infraStores?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + infraStore: data.infraStores?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createInfraStore: { + infraStore: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'InfraStore', + 'createInfraStore', + 'infraStore', + args.select, + args.data, + 'CreateInfraStoreInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'InfraStore', + fieldName: 'createInfraStore', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + InfraStorePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateInfraStore: { + infraStore: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'InfraStore', + 'updateInfraStore', + 'infraStore', + args.select, + args.where.id, + args.data, + 'UpdateInfraStoreInput', + 'id', + 'infraStorePatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'InfraStore', + fieldName: 'updateInfraStore', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteInfraStore: { + infraStore: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'InfraStore', + 'deleteInfraStore', + 'infraStore', + { + id: args.where.id, + }, + 'DeleteInfraStoreInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'InfraStore', + fieldName: 'deleteInfraStore', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/compute/orm/models/integrationProvider.ts b/sdk/constructive-sdk/src/compute/orm/models/integrationProvider.ts new file mode 100644 index 0000000000..c79ad9375c --- /dev/null +++ b/sdk/constructive-sdk/src/compute/orm/models/integrationProvider.ts @@ -0,0 +1,245 @@ +/** + * IntegrationProvider model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + IntegrationProvider, + IntegrationProviderWithRelations, + IntegrationProviderSelect, + IntegrationProviderFilter, + IntegrationProviderOrderBy, + CreateIntegrationProviderInput, + UpdateIntegrationProviderInput, + IntegrationProviderPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class IntegrationProviderModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + integrationProviders: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'IntegrationProvider', + 'integrationProviders', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'IntegrationProviderFilter', + 'IntegrationProviderOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'IntegrationProvider', + fieldName: 'integrationProviders', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + integrationProvider: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'IntegrationProvider', + 'integrationProviders', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'IntegrationProviderFilter', + 'IntegrationProviderOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'IntegrationProvider', + fieldName: 'integrationProvider', + document, + variables, + transform: (data: { + integrationProviders?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + integrationProvider: data.integrationProviders?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + integrationProvider: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'IntegrationProvider', + 'integrationProviders', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'IntegrationProviderFilter', + 'IntegrationProviderOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'IntegrationProvider', + fieldName: 'integrationProvider', + document, + variables, + transform: (data: { + integrationProviders?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + integrationProvider: data.integrationProviders?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createIntegrationProvider: { + integrationProvider: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'IntegrationProvider', + 'createIntegrationProvider', + 'integrationProvider', + args.select, + args.data, + 'CreateIntegrationProviderInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'IntegrationProvider', + fieldName: 'createIntegrationProvider', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + IntegrationProviderPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateIntegrationProvider: { + integrationProvider: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'IntegrationProvider', + 'updateIntegrationProvider', + 'integrationProvider', + args.select, + args.where.id, + args.data, + 'UpdateIntegrationProviderInput', + 'id', + 'integrationProviderPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'IntegrationProvider', + fieldName: 'updateIntegrationProvider', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteIntegrationProvider: { + integrationProvider: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'IntegrationProvider', + 'deleteIntegrationProvider', + 'integrationProvider', + { + id: args.where.id, + }, + 'DeleteIntegrationProviderInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'IntegrationProvider', + fieldName: 'deleteIntegrationProvider', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/compute/orm/models/namespace.ts b/sdk/constructive-sdk/src/compute/orm/models/namespace.ts new file mode 100644 index 0000000000..4e300068cd --- /dev/null +++ b/sdk/constructive-sdk/src/compute/orm/models/namespace.ts @@ -0,0 +1,245 @@ +/** + * Namespace model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + Namespace, + NamespaceWithRelations, + NamespaceSelect, + NamespaceFilter, + NamespaceOrderBy, + CreateNamespaceInput, + UpdateNamespaceInput, + NamespacePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class NamespaceModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + namespaces: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'Namespace', + 'namespaces', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'NamespaceFilter', + 'NamespaceOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'Namespace', + fieldName: 'namespaces', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + namespace: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'Namespace', + 'namespaces', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'NamespaceFilter', + 'NamespaceOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'Namespace', + fieldName: 'namespace', + document, + variables, + transform: (data: { + namespaces?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + namespace: data.namespaces?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + namespace: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'Namespace', + 'namespaces', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'NamespaceFilter', + 'NamespaceOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'Namespace', + fieldName: 'namespace', + document, + variables, + transform: (data: { + namespaces?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + namespace: data.namespaces?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createNamespace: { + namespace: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'Namespace', + 'createNamespace', + 'namespace', + args.select, + args.data, + 'CreateNamespaceInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'Namespace', + fieldName: 'createNamespace', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + NamespacePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateNamespace: { + namespace: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'Namespace', + 'updateNamespace', + 'namespace', + args.select, + args.where.id, + args.data, + 'UpdateNamespaceInput', + 'id', + 'namespacePatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'Namespace', + fieldName: 'updateNamespace', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteNamespace: { + namespace: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'Namespace', + 'deleteNamespace', + 'namespace', + { + id: args.where.id, + }, + 'DeleteNamespaceInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'Namespace', + fieldName: 'deleteNamespace', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/compute/orm/models/namespaceEvent.ts b/sdk/constructive-sdk/src/compute/orm/models/namespaceEvent.ts new file mode 100644 index 0000000000..494442c263 --- /dev/null +++ b/sdk/constructive-sdk/src/compute/orm/models/namespaceEvent.ts @@ -0,0 +1,250 @@ +/** + * NamespaceEvent model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + NamespaceEvent, + NamespaceEventWithRelations, + NamespaceEventSelect, + NamespaceEventFilter, + NamespaceEventOrderBy, + CreateNamespaceEventInput, + UpdateNamespaceEventInput, + NamespaceEventPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class NamespaceEventModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + namespaceEvents: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'NamespaceEvent', + 'namespaceEvents', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'NamespaceEventFilter', + 'NamespaceEventOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'NamespaceEvent', + fieldName: 'namespaceEvents', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + namespaceEvent: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'NamespaceEvent', + 'namespaceEvents', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'NamespaceEventFilter', + 'NamespaceEventOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'NamespaceEvent', + fieldName: 'namespaceEvent', + document, + variables, + transform: (data: { + namespaceEvents?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + namespaceEvent: data.namespaceEvents?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + namespaceEvent: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'NamespaceEvent', + 'namespaceEvents', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'NamespaceEventFilter', + 'NamespaceEventOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'NamespaceEvent', + fieldName: 'namespaceEvent', + document, + variables, + transform: (data: { + namespaceEvents?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + namespaceEvent: data.namespaceEvents?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createNamespaceEvent: { + namespaceEvent: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'NamespaceEvent', + 'createNamespaceEvent', + 'namespaceEvent', + args.select, + args.data, + 'CreateNamespaceEventInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'NamespaceEvent', + fieldName: 'createNamespaceEvent', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + createdAt: string; + }, + NamespaceEventPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateNamespaceEvent: { + namespaceEvent: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'NamespaceEvent', + 'updateNamespaceEvent', + 'namespaceEvent', + args.select, + args.where.id, + args.data, + 'UpdateNamespaceEventInput', + 'id', + 'namespaceEventPatch', + connectionFieldsMap, + { + createdAt: args.where.createdAt, + } + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'NamespaceEvent', + fieldName: 'updateNamespaceEvent', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + createdAt: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteNamespaceEvent: { + namespaceEvent: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'NamespaceEvent', + 'deleteNamespaceEvent', + 'namespaceEvent', + { + id: args.where.id, + createdAt: args.where.createdAt, + }, + 'DeleteNamespaceEventInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'NamespaceEvent', + fieldName: 'deleteNamespaceEvent', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/compute/orm/models/orgFunctionExecutionLog.ts b/sdk/constructive-sdk/src/compute/orm/models/orgFunctionExecutionLog.ts deleted file mode 100644 index 95b37a939d..0000000000 --- a/sdk/constructive-sdk/src/compute/orm/models/orgFunctionExecutionLog.ts +++ /dev/null @@ -1,252 +0,0 @@ -/** - * OrgFunctionExecutionLog model for ORM client - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { OrmClient } from '../client'; -import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, - buildCreateDocument, - buildUpdateByPkDocument, - buildDeleteByPkDocument, -} from '../query-builder'; -import type { - ConnectionResult, - FindManyArgs, - FindFirstArgs, - CreateArgs, - UpdateArgs, - DeleteArgs, - InferSelectResult, - StrictSelect, -} from '../select-types'; -import type { - OrgFunctionExecutionLog, - OrgFunctionExecutionLogWithRelations, - OrgFunctionExecutionLogSelect, - OrgFunctionExecutionLogFilter, - OrgFunctionExecutionLogOrderBy, - CreateOrgFunctionExecutionLogInput, - UpdateOrgFunctionExecutionLogInput, - OrgFunctionExecutionLogPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class OrgFunctionExecutionLogModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgFunctionExecutionLogs: ConnectionResult< - InferSelectResult - >; - }> { - const { document, variables } = buildFindManyDocument( - 'OrgFunctionExecutionLog', - 'orgFunctionExecutionLogs', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - first: args?.first, - last: args?.last, - after: args?.after, - before: args?.before, - offset: args?.offset, - }, - 'OrgFunctionExecutionLogFilter', - 'OrgFunctionExecutionLogOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgFunctionExecutionLog', - fieldName: 'orgFunctionExecutionLogs', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgFunctionExecutionLog: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'OrgFunctionExecutionLog', - 'orgFunctionExecutionLogs', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'OrgFunctionExecutionLogFilter', - 'OrgFunctionExecutionLogOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgFunctionExecutionLog', - fieldName: 'orgFunctionExecutionLog', - document, - variables, - transform: (data: { - orgFunctionExecutionLogs?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - orgFunctionExecutionLog: data.orgFunctionExecutionLogs?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgFunctionExecutionLog: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'OrgFunctionExecutionLog', - 'orgFunctionExecutionLogs', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'OrgFunctionExecutionLogFilter', - 'OrgFunctionExecutionLogOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgFunctionExecutionLog', - fieldName: 'orgFunctionExecutionLog', - document, - variables, - transform: (data: { - orgFunctionExecutionLogs?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - orgFunctionExecutionLog: data.orgFunctionExecutionLogs?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createOrgFunctionExecutionLog: { - orgFunctionExecutionLog: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'OrgFunctionExecutionLog', - 'createOrgFunctionExecutionLog', - 'orgFunctionExecutionLog', - args.select, - args.data, - 'CreateOrgFunctionExecutionLogInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgFunctionExecutionLog', - fieldName: 'createOrgFunctionExecutionLog', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - createdAt: string; - }, - OrgFunctionExecutionLogPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateOrgFunctionExecutionLog: { - orgFunctionExecutionLog: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'OrgFunctionExecutionLog', - 'updateOrgFunctionExecutionLog', - 'orgFunctionExecutionLog', - args.select, - args.where.id, - args.data, - 'UpdateOrgFunctionExecutionLogInput', - 'id', - 'orgFunctionExecutionLogPatch', - connectionFieldsMap, - { - createdAt: args.where.createdAt, - } - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgFunctionExecutionLog', - fieldName: 'updateOrgFunctionExecutionLog', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - createdAt: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteOrgFunctionExecutionLog: { - orgFunctionExecutionLog: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'OrgFunctionExecutionLog', - 'deleteOrgFunctionExecutionLog', - 'orgFunctionExecutionLog', - { - id: args.where.id, - createdAt: args.where.createdAt, - }, - 'DeleteOrgFunctionExecutionLogInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgFunctionExecutionLog', - fieldName: 'deleteOrgFunctionExecutionLog', - document, - variables, - }); - } -} diff --git a/sdk/constructive-sdk/src/compute/orm/models/orgFunctionInvocation.ts b/sdk/constructive-sdk/src/compute/orm/models/orgFunctionInvocation.ts deleted file mode 100644 index 3f3eaab557..0000000000 --- a/sdk/constructive-sdk/src/compute/orm/models/orgFunctionInvocation.ts +++ /dev/null @@ -1,252 +0,0 @@ -/** - * OrgFunctionInvocation model for ORM client - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { OrmClient } from '../client'; -import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, - buildCreateDocument, - buildUpdateByPkDocument, - buildDeleteByPkDocument, -} from '../query-builder'; -import type { - ConnectionResult, - FindManyArgs, - FindFirstArgs, - CreateArgs, - UpdateArgs, - DeleteArgs, - InferSelectResult, - StrictSelect, -} from '../select-types'; -import type { - OrgFunctionInvocation, - OrgFunctionInvocationWithRelations, - OrgFunctionInvocationSelect, - OrgFunctionInvocationFilter, - OrgFunctionInvocationOrderBy, - CreateOrgFunctionInvocationInput, - UpdateOrgFunctionInvocationInput, - OrgFunctionInvocationPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class OrgFunctionInvocationModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgFunctionInvocations: ConnectionResult< - InferSelectResult - >; - }> { - const { document, variables } = buildFindManyDocument( - 'OrgFunctionInvocation', - 'orgFunctionInvocations', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - first: args?.first, - last: args?.last, - after: args?.after, - before: args?.before, - offset: args?.offset, - }, - 'OrgFunctionInvocationFilter', - 'OrgFunctionInvocationOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgFunctionInvocation', - fieldName: 'orgFunctionInvocations', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgFunctionInvocation: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'OrgFunctionInvocation', - 'orgFunctionInvocations', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'OrgFunctionInvocationFilter', - 'OrgFunctionInvocationOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgFunctionInvocation', - fieldName: 'orgFunctionInvocation', - document, - variables, - transform: (data: { - orgFunctionInvocations?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - orgFunctionInvocation: data.orgFunctionInvocations?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - orgFunctionInvocation: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'OrgFunctionInvocation', - 'orgFunctionInvocations', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'OrgFunctionInvocationFilter', - 'OrgFunctionInvocationOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'OrgFunctionInvocation', - fieldName: 'orgFunctionInvocation', - document, - variables, - transform: (data: { - orgFunctionInvocations?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - orgFunctionInvocation: data.orgFunctionInvocations?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createOrgFunctionInvocation: { - orgFunctionInvocation: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'OrgFunctionInvocation', - 'createOrgFunctionInvocation', - 'orgFunctionInvocation', - args.select, - args.data, - 'CreateOrgFunctionInvocationInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgFunctionInvocation', - fieldName: 'createOrgFunctionInvocation', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - createdAt: string; - }, - OrgFunctionInvocationPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateOrgFunctionInvocation: { - orgFunctionInvocation: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'OrgFunctionInvocation', - 'updateOrgFunctionInvocation', - 'orgFunctionInvocation', - args.select, - args.where.id, - args.data, - 'UpdateOrgFunctionInvocationInput', - 'id', - 'orgFunctionInvocationPatch', - connectionFieldsMap, - { - createdAt: args.where.createdAt, - } - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgFunctionInvocation', - fieldName: 'updateOrgFunctionInvocation', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - createdAt: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteOrgFunctionInvocation: { - orgFunctionInvocation: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'OrgFunctionInvocation', - 'deleteOrgFunctionInvocation', - 'orgFunctionInvocation', - { - id: args.where.id, - createdAt: args.where.createdAt, - }, - 'DeleteOrgFunctionInvocationInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgFunctionInvocation', - fieldName: 'deleteOrgFunctionInvocation', - document, - variables, - }); - } -} diff --git a/sdk/constructive-sdk/src/compute/orm/models/platformFunctionApiBinding.ts b/sdk/constructive-sdk/src/compute/orm/models/platformFunctionApiBinding.ts new file mode 100644 index 0000000000..c74d4423e8 --- /dev/null +++ b/sdk/constructive-sdk/src/compute/orm/models/platformFunctionApiBinding.ts @@ -0,0 +1,253 @@ +/** + * PlatformFunctionApiBinding model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + PlatformFunctionApiBinding, + PlatformFunctionApiBindingWithRelations, + PlatformFunctionApiBindingSelect, + PlatformFunctionApiBindingFilter, + PlatformFunctionApiBindingOrderBy, + CreatePlatformFunctionApiBindingInput, + UpdatePlatformFunctionApiBindingInput, + PlatformFunctionApiBindingPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class PlatformFunctionApiBindingModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformFunctionApiBindings: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformFunctionApiBinding', + 'platformFunctionApiBindings', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'PlatformFunctionApiBindingFilter', + 'PlatformFunctionApiBindingOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformFunctionApiBinding', + fieldName: 'platformFunctionApiBindings', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformFunctionApiBinding: InferSelectResult< + PlatformFunctionApiBindingWithRelations, + S + > | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'PlatformFunctionApiBinding', + 'platformFunctionApiBindings', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'PlatformFunctionApiBindingFilter', + 'PlatformFunctionApiBindingOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformFunctionApiBinding', + fieldName: 'platformFunctionApiBinding', + document, + variables, + transform: (data: { + platformFunctionApiBindings?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformFunctionApiBinding: data.platformFunctionApiBindings?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformFunctionApiBinding: InferSelectResult< + PlatformFunctionApiBindingWithRelations, + S + > | null; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformFunctionApiBinding', + 'platformFunctionApiBindings', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'PlatformFunctionApiBindingFilter', + 'PlatformFunctionApiBindingOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformFunctionApiBinding', + fieldName: 'platformFunctionApiBinding', + document, + variables, + transform: (data: { + platformFunctionApiBindings?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformFunctionApiBinding: data.platformFunctionApiBindings?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createPlatformFunctionApiBinding: { + platformFunctionApiBinding: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'PlatformFunctionApiBinding', + 'createPlatformFunctionApiBinding', + 'platformFunctionApiBinding', + args.select, + args.data, + 'CreatePlatformFunctionApiBindingInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformFunctionApiBinding', + fieldName: 'createPlatformFunctionApiBinding', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + PlatformFunctionApiBindingPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updatePlatformFunctionApiBinding: { + platformFunctionApiBinding: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'PlatformFunctionApiBinding', + 'updatePlatformFunctionApiBinding', + 'platformFunctionApiBinding', + args.select, + args.where.id, + args.data, + 'UpdatePlatformFunctionApiBindingInput', + 'id', + 'platformFunctionApiBindingPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformFunctionApiBinding', + fieldName: 'updatePlatformFunctionApiBinding', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deletePlatformFunctionApiBinding: { + platformFunctionApiBinding: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'PlatformFunctionApiBinding', + 'deletePlatformFunctionApiBinding', + 'platformFunctionApiBinding', + { + id: args.where.id, + }, + 'DeletePlatformFunctionApiBindingInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformFunctionApiBinding', + fieldName: 'deletePlatformFunctionApiBinding', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/compute/orm/models/platformFunctionDefinition.ts b/sdk/constructive-sdk/src/compute/orm/models/platformFunctionDefinition.ts new file mode 100644 index 0000000000..7422743780 --- /dev/null +++ b/sdk/constructive-sdk/src/compute/orm/models/platformFunctionDefinition.ts @@ -0,0 +1,253 @@ +/** + * PlatformFunctionDefinition model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + PlatformFunctionDefinition, + PlatformFunctionDefinitionWithRelations, + PlatformFunctionDefinitionSelect, + PlatformFunctionDefinitionFilter, + PlatformFunctionDefinitionOrderBy, + CreatePlatformFunctionDefinitionInput, + UpdatePlatformFunctionDefinitionInput, + PlatformFunctionDefinitionPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class PlatformFunctionDefinitionModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformFunctionDefinitions: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformFunctionDefinition', + 'platformFunctionDefinitions', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'PlatformFunctionDefinitionFilter', + 'PlatformFunctionDefinitionOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformFunctionDefinition', + fieldName: 'platformFunctionDefinitions', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformFunctionDefinition: InferSelectResult< + PlatformFunctionDefinitionWithRelations, + S + > | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'PlatformFunctionDefinition', + 'platformFunctionDefinitions', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'PlatformFunctionDefinitionFilter', + 'PlatformFunctionDefinitionOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformFunctionDefinition', + fieldName: 'platformFunctionDefinition', + document, + variables, + transform: (data: { + platformFunctionDefinitions?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformFunctionDefinition: data.platformFunctionDefinitions?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformFunctionDefinition: InferSelectResult< + PlatformFunctionDefinitionWithRelations, + S + > | null; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformFunctionDefinition', + 'platformFunctionDefinitions', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'PlatformFunctionDefinitionFilter', + 'PlatformFunctionDefinitionOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformFunctionDefinition', + fieldName: 'platformFunctionDefinition', + document, + variables, + transform: (data: { + platformFunctionDefinitions?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformFunctionDefinition: data.platformFunctionDefinitions?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createPlatformFunctionDefinition: { + platformFunctionDefinition: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'PlatformFunctionDefinition', + 'createPlatformFunctionDefinition', + 'platformFunctionDefinition', + args.select, + args.data, + 'CreatePlatformFunctionDefinitionInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformFunctionDefinition', + fieldName: 'createPlatformFunctionDefinition', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + PlatformFunctionDefinitionPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updatePlatformFunctionDefinition: { + platformFunctionDefinition: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'PlatformFunctionDefinition', + 'updatePlatformFunctionDefinition', + 'platformFunctionDefinition', + args.select, + args.where.id, + args.data, + 'UpdatePlatformFunctionDefinitionInput', + 'id', + 'platformFunctionDefinitionPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformFunctionDefinition', + fieldName: 'updatePlatformFunctionDefinition', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deletePlatformFunctionDefinition: { + platformFunctionDefinition: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'PlatformFunctionDefinition', + 'deletePlatformFunctionDefinition', + 'platformFunctionDefinition', + { + id: args.where.id, + }, + 'DeletePlatformFunctionDefinitionInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformFunctionDefinition', + fieldName: 'deletePlatformFunctionDefinition', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/compute/orm/models/platformFunctionDeployment.ts b/sdk/constructive-sdk/src/compute/orm/models/platformFunctionDeployment.ts new file mode 100644 index 0000000000..6331c14b14 --- /dev/null +++ b/sdk/constructive-sdk/src/compute/orm/models/platformFunctionDeployment.ts @@ -0,0 +1,253 @@ +/** + * PlatformFunctionDeployment model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + PlatformFunctionDeployment, + PlatformFunctionDeploymentWithRelations, + PlatformFunctionDeploymentSelect, + PlatformFunctionDeploymentFilter, + PlatformFunctionDeploymentOrderBy, + CreatePlatformFunctionDeploymentInput, + UpdatePlatformFunctionDeploymentInput, + PlatformFunctionDeploymentPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class PlatformFunctionDeploymentModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformFunctionDeployments: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformFunctionDeployment', + 'platformFunctionDeployments', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'PlatformFunctionDeploymentFilter', + 'PlatformFunctionDeploymentOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformFunctionDeployment', + fieldName: 'platformFunctionDeployments', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformFunctionDeployment: InferSelectResult< + PlatformFunctionDeploymentWithRelations, + S + > | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'PlatformFunctionDeployment', + 'platformFunctionDeployments', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'PlatformFunctionDeploymentFilter', + 'PlatformFunctionDeploymentOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformFunctionDeployment', + fieldName: 'platformFunctionDeployment', + document, + variables, + transform: (data: { + platformFunctionDeployments?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformFunctionDeployment: data.platformFunctionDeployments?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformFunctionDeployment: InferSelectResult< + PlatformFunctionDeploymentWithRelations, + S + > | null; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformFunctionDeployment', + 'platformFunctionDeployments', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'PlatformFunctionDeploymentFilter', + 'PlatformFunctionDeploymentOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformFunctionDeployment', + fieldName: 'platformFunctionDeployment', + document, + variables, + transform: (data: { + platformFunctionDeployments?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformFunctionDeployment: data.platformFunctionDeployments?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createPlatformFunctionDeployment: { + platformFunctionDeployment: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'PlatformFunctionDeployment', + 'createPlatformFunctionDeployment', + 'platformFunctionDeployment', + args.select, + args.data, + 'CreatePlatformFunctionDeploymentInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformFunctionDeployment', + fieldName: 'createPlatformFunctionDeployment', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + PlatformFunctionDeploymentPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updatePlatformFunctionDeployment: { + platformFunctionDeployment: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'PlatformFunctionDeployment', + 'updatePlatformFunctionDeployment', + 'platformFunctionDeployment', + args.select, + args.where.id, + args.data, + 'UpdatePlatformFunctionDeploymentInput', + 'id', + 'platformFunctionDeploymentPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformFunctionDeployment', + fieldName: 'updatePlatformFunctionDeployment', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deletePlatformFunctionDeployment: { + platformFunctionDeployment: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'PlatformFunctionDeployment', + 'deletePlatformFunctionDeployment', + 'platformFunctionDeployment', + { + id: args.where.id, + }, + 'DeletePlatformFunctionDeploymentInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformFunctionDeployment', + fieldName: 'deletePlatformFunctionDeployment', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/compute/orm/models/platformFunctionDeploymentEvent.ts b/sdk/constructive-sdk/src/compute/orm/models/platformFunctionDeploymentEvent.ts new file mode 100644 index 0000000000..9e28f1c2c4 --- /dev/null +++ b/sdk/constructive-sdk/src/compute/orm/models/platformFunctionDeploymentEvent.ts @@ -0,0 +1,278 @@ +/** + * PlatformFunctionDeploymentEvent model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + PlatformFunctionDeploymentEvent, + PlatformFunctionDeploymentEventWithRelations, + PlatformFunctionDeploymentEventSelect, + PlatformFunctionDeploymentEventFilter, + PlatformFunctionDeploymentEventOrderBy, + CreatePlatformFunctionDeploymentEventInput, + UpdatePlatformFunctionDeploymentEventInput, + PlatformFunctionDeploymentEventPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class PlatformFunctionDeploymentEventModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs< + S, + PlatformFunctionDeploymentEventFilter, + PlatformFunctionDeploymentEventOrderBy + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformFunctionDeploymentEvents: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformFunctionDeploymentEvent', + 'platformFunctionDeploymentEvents', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'PlatformFunctionDeploymentEventFilter', + 'PlatformFunctionDeploymentEventOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformFunctionDeploymentEvent', + fieldName: 'platformFunctionDeploymentEvents', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs< + S, + PlatformFunctionDeploymentEventFilter, + PlatformFunctionDeploymentEventOrderBy + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformFunctionDeploymentEvent: InferSelectResult< + PlatformFunctionDeploymentEventWithRelations, + S + > | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'PlatformFunctionDeploymentEvent', + 'platformFunctionDeploymentEvents', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'PlatformFunctionDeploymentEventFilter', + 'PlatformFunctionDeploymentEventOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformFunctionDeploymentEvent', + fieldName: 'platformFunctionDeploymentEvent', + document, + variables, + transform: (data: { + platformFunctionDeploymentEvents?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformFunctionDeploymentEvent: data.platformFunctionDeploymentEvents?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformFunctionDeploymentEvent: InferSelectResult< + PlatformFunctionDeploymentEventWithRelations, + S + > | null; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformFunctionDeploymentEvent', + 'platformFunctionDeploymentEvents', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'PlatformFunctionDeploymentEventFilter', + 'PlatformFunctionDeploymentEventOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformFunctionDeploymentEvent', + fieldName: 'platformFunctionDeploymentEvent', + document, + variables, + transform: (data: { + platformFunctionDeploymentEvents?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformFunctionDeploymentEvent: data.platformFunctionDeploymentEvents?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs< + S, + CreatePlatformFunctionDeploymentEventInput['platformFunctionDeploymentEvent'] + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createPlatformFunctionDeploymentEvent: { + platformFunctionDeploymentEvent: InferSelectResult< + PlatformFunctionDeploymentEventWithRelations, + S + >; + }; + }> { + const { document, variables } = buildCreateDocument( + 'PlatformFunctionDeploymentEvent', + 'createPlatformFunctionDeploymentEvent', + 'platformFunctionDeploymentEvent', + args.select, + args.data, + 'CreatePlatformFunctionDeploymentEventInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformFunctionDeploymentEvent', + fieldName: 'createPlatformFunctionDeploymentEvent', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + createdAt: string; + }, + PlatformFunctionDeploymentEventPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updatePlatformFunctionDeploymentEvent: { + platformFunctionDeploymentEvent: InferSelectResult< + PlatformFunctionDeploymentEventWithRelations, + S + >; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'PlatformFunctionDeploymentEvent', + 'updatePlatformFunctionDeploymentEvent', + 'platformFunctionDeploymentEvent', + args.select, + args.where.id, + args.data, + 'UpdatePlatformFunctionDeploymentEventInput', + 'id', + 'platformFunctionDeploymentEventPatch', + connectionFieldsMap, + { + createdAt: args.where.createdAt, + } + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformFunctionDeploymentEvent', + fieldName: 'updatePlatformFunctionDeploymentEvent', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + createdAt: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deletePlatformFunctionDeploymentEvent: { + platformFunctionDeploymentEvent: InferSelectResult< + PlatformFunctionDeploymentEventWithRelations, + S + >; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'PlatformFunctionDeploymentEvent', + 'deletePlatformFunctionDeploymentEvent', + 'platformFunctionDeploymentEvent', + { + id: args.where.id, + createdAt: args.where.createdAt, + }, + 'DeletePlatformFunctionDeploymentEventInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformFunctionDeploymentEvent', + fieldName: 'deletePlatformFunctionDeploymentEvent', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/compute/orm/models/platformFunctionExecutionLog.ts b/sdk/constructive-sdk/src/compute/orm/models/platformFunctionExecutionLog.ts new file mode 100644 index 0000000000..1fe6df0cf8 --- /dev/null +++ b/sdk/constructive-sdk/src/compute/orm/models/platformFunctionExecutionLog.ts @@ -0,0 +1,266 @@ +/** + * PlatformFunctionExecutionLog model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + PlatformFunctionExecutionLog, + PlatformFunctionExecutionLogWithRelations, + PlatformFunctionExecutionLogSelect, + PlatformFunctionExecutionLogFilter, + PlatformFunctionExecutionLogOrderBy, + CreatePlatformFunctionExecutionLogInput, + UpdatePlatformFunctionExecutionLogInput, + PlatformFunctionExecutionLogPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class PlatformFunctionExecutionLogModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs< + S, + PlatformFunctionExecutionLogFilter, + PlatformFunctionExecutionLogOrderBy + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformFunctionExecutionLogs: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformFunctionExecutionLog', + 'platformFunctionExecutionLogs', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'PlatformFunctionExecutionLogFilter', + 'PlatformFunctionExecutionLogOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformFunctionExecutionLog', + fieldName: 'platformFunctionExecutionLogs', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs< + S, + PlatformFunctionExecutionLogFilter, + PlatformFunctionExecutionLogOrderBy + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformFunctionExecutionLog: InferSelectResult< + PlatformFunctionExecutionLogWithRelations, + S + > | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'PlatformFunctionExecutionLog', + 'platformFunctionExecutionLogs', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'PlatformFunctionExecutionLogFilter', + 'PlatformFunctionExecutionLogOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformFunctionExecutionLog', + fieldName: 'platformFunctionExecutionLog', + document, + variables, + transform: (data: { + platformFunctionExecutionLogs?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformFunctionExecutionLog: data.platformFunctionExecutionLogs?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformFunctionExecutionLog: InferSelectResult< + PlatformFunctionExecutionLogWithRelations, + S + > | null; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformFunctionExecutionLog', + 'platformFunctionExecutionLogs', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'PlatformFunctionExecutionLogFilter', + 'PlatformFunctionExecutionLogOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformFunctionExecutionLog', + fieldName: 'platformFunctionExecutionLog', + document, + variables, + transform: (data: { + platformFunctionExecutionLogs?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformFunctionExecutionLog: data.platformFunctionExecutionLogs?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createPlatformFunctionExecutionLog: { + platformFunctionExecutionLog: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'PlatformFunctionExecutionLog', + 'createPlatformFunctionExecutionLog', + 'platformFunctionExecutionLog', + args.select, + args.data, + 'CreatePlatformFunctionExecutionLogInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformFunctionExecutionLog', + fieldName: 'createPlatformFunctionExecutionLog', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + createdAt: string; + }, + PlatformFunctionExecutionLogPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updatePlatformFunctionExecutionLog: { + platformFunctionExecutionLog: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'PlatformFunctionExecutionLog', + 'updatePlatformFunctionExecutionLog', + 'platformFunctionExecutionLog', + args.select, + args.where.id, + args.data, + 'UpdatePlatformFunctionExecutionLogInput', + 'id', + 'platformFunctionExecutionLogPatch', + connectionFieldsMap, + { + createdAt: args.where.createdAt, + } + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformFunctionExecutionLog', + fieldName: 'updatePlatformFunctionExecutionLog', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + createdAt: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deletePlatformFunctionExecutionLog: { + platformFunctionExecutionLog: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'PlatformFunctionExecutionLog', + 'deletePlatformFunctionExecutionLog', + 'platformFunctionExecutionLog', + { + id: args.where.id, + createdAt: args.where.createdAt, + }, + 'DeletePlatformFunctionExecutionLogInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformFunctionExecutionLog', + fieldName: 'deletePlatformFunctionExecutionLog', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/compute/orm/models/platformFunctionInvocation.ts b/sdk/constructive-sdk/src/compute/orm/models/platformFunctionInvocation.ts new file mode 100644 index 0000000000..f52ba9df33 --- /dev/null +++ b/sdk/constructive-sdk/src/compute/orm/models/platformFunctionInvocation.ts @@ -0,0 +1,258 @@ +/** + * PlatformFunctionInvocation model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + PlatformFunctionInvocation, + PlatformFunctionInvocationWithRelations, + PlatformFunctionInvocationSelect, + PlatformFunctionInvocationFilter, + PlatformFunctionInvocationOrderBy, + CreatePlatformFunctionInvocationInput, + UpdatePlatformFunctionInvocationInput, + PlatformFunctionInvocationPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class PlatformFunctionInvocationModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformFunctionInvocations: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformFunctionInvocation', + 'platformFunctionInvocations', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'PlatformFunctionInvocationFilter', + 'PlatformFunctionInvocationOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformFunctionInvocation', + fieldName: 'platformFunctionInvocations', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformFunctionInvocation: InferSelectResult< + PlatformFunctionInvocationWithRelations, + S + > | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'PlatformFunctionInvocation', + 'platformFunctionInvocations', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'PlatformFunctionInvocationFilter', + 'PlatformFunctionInvocationOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformFunctionInvocation', + fieldName: 'platformFunctionInvocation', + document, + variables, + transform: (data: { + platformFunctionInvocations?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformFunctionInvocation: data.platformFunctionInvocations?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformFunctionInvocation: InferSelectResult< + PlatformFunctionInvocationWithRelations, + S + > | null; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformFunctionInvocation', + 'platformFunctionInvocations', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'PlatformFunctionInvocationFilter', + 'PlatformFunctionInvocationOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformFunctionInvocation', + fieldName: 'platformFunctionInvocation', + document, + variables, + transform: (data: { + platformFunctionInvocations?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformFunctionInvocation: data.platformFunctionInvocations?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createPlatformFunctionInvocation: { + platformFunctionInvocation: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'PlatformFunctionInvocation', + 'createPlatformFunctionInvocation', + 'platformFunctionInvocation', + args.select, + args.data, + 'CreatePlatformFunctionInvocationInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformFunctionInvocation', + fieldName: 'createPlatformFunctionInvocation', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + createdAt: string; + }, + PlatformFunctionInvocationPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updatePlatformFunctionInvocation: { + platformFunctionInvocation: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'PlatformFunctionInvocation', + 'updatePlatformFunctionInvocation', + 'platformFunctionInvocation', + args.select, + args.where.id, + args.data, + 'UpdatePlatformFunctionInvocationInput', + 'id', + 'platformFunctionInvocationPatch', + connectionFieldsMap, + { + createdAt: args.where.createdAt, + } + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformFunctionInvocation', + fieldName: 'updatePlatformFunctionInvocation', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + createdAt: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deletePlatformFunctionInvocation: { + platformFunctionInvocation: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'PlatformFunctionInvocation', + 'deletePlatformFunctionInvocation', + 'platformFunctionInvocation', + { + id: args.where.id, + createdAt: args.where.createdAt, + }, + 'DeletePlatformFunctionInvocationInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformFunctionInvocation', + fieldName: 'deletePlatformFunctionInvocation', + document, + variables, + }); + } +} diff --git a/sdk/constructive-cli/src/compute/orm/models/secretDefinition.ts b/sdk/constructive-sdk/src/compute/orm/models/platformResource.ts similarity index 51% rename from sdk/constructive-cli/src/compute/orm/models/secretDefinition.ts rename to sdk/constructive-sdk/src/compute/orm/models/platformResource.ts index 09b9a0b956..00f03ea1dc 100644 --- a/sdk/constructive-cli/src/compute/orm/models/secretDefinition.ts +++ b/sdk/constructive-sdk/src/compute/orm/models/platformResource.ts @@ -1,5 +1,5 @@ /** - * SecretDefinition model for ORM client + * PlatformResource model for ORM client * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -24,28 +24,28 @@ import type { StrictSelect, } from '../select-types'; import type { - SecretDefinition, - SecretDefinitionWithRelations, - SecretDefinitionSelect, - SecretDefinitionFilter, - SecretDefinitionOrderBy, - CreateSecretDefinitionInput, - UpdateSecretDefinitionInput, - SecretDefinitionPatch, + PlatformResource, + PlatformResourceWithRelations, + PlatformResourceSelect, + PlatformResourceFilter, + PlatformResourceOrderBy, + CreatePlatformResourceInput, + UpdatePlatformResourceInput, + PlatformResourcePatch, } from '../input-types'; import { connectionFieldsMap } from '../input-types'; -export class SecretDefinitionModel { +export class PlatformResourceModel { constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { + findMany( + args: FindManyArgs & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - secretDefinitions: ConnectionResult>; + platformResources: ConnectionResult>; }> { const { document, variables } = buildFindManyDocument( - 'SecretDefinition', - 'secretDefinitions', + 'PlatformResource', + 'platformResources', args.select, { where: args?.where, @@ -56,65 +56,65 @@ export class SecretDefinitionModel { before: args?.before, offset: args?.offset, }, - 'SecretDefinitionFilter', - 'SecretDefinitionOrderBy', + 'PlatformResourceFilter', + 'PlatformResourceOrderBy', connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'query', - operationName: 'SecretDefinition', - fieldName: 'secretDefinitions', + operationName: 'PlatformResource', + fieldName: 'platformResources', document, variables, }); } - findFirst( - args: FindFirstArgs & { + findFirst( + args: FindFirstArgs & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - secretDefinition: InferSelectResult | null; + platformResource: InferSelectResult | null; }> { const { document, variables } = buildFindFirstDocument( - 'SecretDefinition', - 'secretDefinitions', + 'PlatformResource', + 'platformResources', args.select, { where: args?.where, orderBy: args?.orderBy as string[] | undefined, }, - 'SecretDefinitionFilter', - 'SecretDefinitionOrderBy', + 'PlatformResourceFilter', + 'PlatformResourceOrderBy', connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'query', - operationName: 'SecretDefinition', - fieldName: 'secretDefinition', + operationName: 'PlatformResource', + fieldName: 'platformResource', document, variables, transform: (data: { - secretDefinitions?: { - nodes?: InferSelectResult[]; + platformResources?: { + nodes?: InferSelectResult[]; }; }) => ({ - secretDefinition: data.secretDefinitions?.nodes?.[0] ?? null, + platformResource: data.platformResources?.nodes?.[0] ?? null, }), }); } - findOne( + findOne( args: { id: string; select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - secretDefinition: InferSelectResult | null; + platformResource: InferSelectResult | null; }> { const { document, variables } = buildFindManyDocument( - 'SecretDefinition', - 'secretDefinitions', + 'PlatformResource', + 'platformResources', args.select, { where: { @@ -124,91 +124,91 @@ export class SecretDefinitionModel { }, first: 1, }, - 'SecretDefinitionFilter', - 'SecretDefinitionOrderBy', + 'PlatformResourceFilter', + 'PlatformResourceOrderBy', connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'query', - operationName: 'SecretDefinition', - fieldName: 'secretDefinition', + operationName: 'PlatformResource', + fieldName: 'platformResource', document, variables, transform: (data: { - secretDefinitions?: { - nodes?: InferSelectResult[]; + platformResources?: { + nodes?: InferSelectResult[]; }; }) => ({ - secretDefinition: data.secretDefinitions?.nodes?.[0] ?? null, + platformResource: data.platformResources?.nodes?.[0] ?? null, }), }); } - create( - args: CreateArgs & { + create( + args: CreateArgs & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - createSecretDefinition: { - secretDefinition: InferSelectResult; + createPlatformResource: { + platformResource: InferSelectResult; }; }> { const { document, variables } = buildCreateDocument( - 'SecretDefinition', - 'createSecretDefinition', - 'secretDefinition', + 'PlatformResource', + 'createPlatformResource', + 'platformResource', args.select, args.data, - 'CreateSecretDefinitionInput', + 'CreatePlatformResourceInput', connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'mutation', - operationName: 'SecretDefinition', - fieldName: 'createSecretDefinition', + operationName: 'PlatformResource', + fieldName: 'createPlatformResource', document, variables, }); } - update( + update( args: UpdateArgs< S, { id: string; }, - SecretDefinitionPatch + PlatformResourcePatch > & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - updateSecretDefinition: { - secretDefinition: InferSelectResult; + updatePlatformResource: { + platformResource: InferSelectResult; }; }> { const { document, variables } = buildUpdateByPkDocument( - 'SecretDefinition', - 'updateSecretDefinition', - 'secretDefinition', + 'PlatformResource', + 'updatePlatformResource', + 'platformResource', args.select, args.where.id, args.data, - 'UpdateSecretDefinitionInput', + 'UpdatePlatformResourceInput', 'id', - 'secretDefinitionPatch', + 'platformResourcePatch', connectionFieldsMap, undefined ); return new QueryBuilder({ client: this.client, operation: 'mutation', - operationName: 'SecretDefinition', - fieldName: 'updateSecretDefinition', + operationName: 'PlatformResource', + fieldName: 'updatePlatformResource', document, variables, }); } - delete( + delete( args: DeleteArgs< { id: string; @@ -216,28 +216,28 @@ export class SecretDefinitionModel { S > & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - deleteSecretDefinition: { - secretDefinition: InferSelectResult; + deletePlatformResource: { + platformResource: InferSelectResult; }; }> { const { document, variables } = buildDeleteByPkDocument( - 'SecretDefinition', - 'deleteSecretDefinition', - 'secretDefinition', + 'PlatformResource', + 'deletePlatformResource', + 'platformResource', { id: args.where.id, }, - 'DeleteSecretDefinitionInput', + 'DeletePlatformResourceInput', args.select, connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'mutation', - operationName: 'SecretDefinition', - fieldName: 'deleteSecretDefinition', + operationName: 'PlatformResource', + fieldName: 'deletePlatformResource', document, variables, }); diff --git a/sdk/constructive-sdk/src/compute/orm/models/platformResourceDefinition.ts b/sdk/constructive-sdk/src/compute/orm/models/platformResourceDefinition.ts new file mode 100644 index 0000000000..a23e8bf5a1 --- /dev/null +++ b/sdk/constructive-sdk/src/compute/orm/models/platformResourceDefinition.ts @@ -0,0 +1,253 @@ +/** + * PlatformResourceDefinition model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + PlatformResourceDefinition, + PlatformResourceDefinitionWithRelations, + PlatformResourceDefinitionSelect, + PlatformResourceDefinitionFilter, + PlatformResourceDefinitionOrderBy, + CreatePlatformResourceDefinitionInput, + UpdatePlatformResourceDefinitionInput, + PlatformResourceDefinitionPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class PlatformResourceDefinitionModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformResourceDefinitions: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformResourceDefinition', + 'platformResourceDefinitions', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'PlatformResourceDefinitionFilter', + 'PlatformResourceDefinitionOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformResourceDefinition', + fieldName: 'platformResourceDefinitions', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformResourceDefinition: InferSelectResult< + PlatformResourceDefinitionWithRelations, + S + > | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'PlatformResourceDefinition', + 'platformResourceDefinitions', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'PlatformResourceDefinitionFilter', + 'PlatformResourceDefinitionOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformResourceDefinition', + fieldName: 'platformResourceDefinition', + document, + variables, + transform: (data: { + platformResourceDefinitions?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformResourceDefinition: data.platformResourceDefinitions?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformResourceDefinition: InferSelectResult< + PlatformResourceDefinitionWithRelations, + S + > | null; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformResourceDefinition', + 'platformResourceDefinitions', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'PlatformResourceDefinitionFilter', + 'PlatformResourceDefinitionOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformResourceDefinition', + fieldName: 'platformResourceDefinition', + document, + variables, + transform: (data: { + platformResourceDefinitions?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformResourceDefinition: data.platformResourceDefinitions?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createPlatformResourceDefinition: { + platformResourceDefinition: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'PlatformResourceDefinition', + 'createPlatformResourceDefinition', + 'platformResourceDefinition', + args.select, + args.data, + 'CreatePlatformResourceDefinitionInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformResourceDefinition', + fieldName: 'createPlatformResourceDefinition', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + PlatformResourceDefinitionPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updatePlatformResourceDefinition: { + platformResourceDefinition: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'PlatformResourceDefinition', + 'updatePlatformResourceDefinition', + 'platformResourceDefinition', + args.select, + args.where.id, + args.data, + 'UpdatePlatformResourceDefinitionInput', + 'id', + 'platformResourceDefinitionPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformResourceDefinition', + fieldName: 'updatePlatformResourceDefinition', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deletePlatformResourceDefinition: { + platformResourceDefinition: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'PlatformResourceDefinition', + 'deletePlatformResourceDefinition', + 'platformResourceDefinition', + { + id: args.where.id, + }, + 'DeletePlatformResourceDefinitionInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformResourceDefinition', + fieldName: 'deletePlatformResourceDefinition', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/compute/orm/models/platformResourceEvent.ts b/sdk/constructive-sdk/src/compute/orm/models/platformResourceEvent.ts new file mode 100644 index 0000000000..77ae28e155 --- /dev/null +++ b/sdk/constructive-sdk/src/compute/orm/models/platformResourceEvent.ts @@ -0,0 +1,252 @@ +/** + * PlatformResourceEvent model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + PlatformResourceEvent, + PlatformResourceEventWithRelations, + PlatformResourceEventSelect, + PlatformResourceEventFilter, + PlatformResourceEventOrderBy, + CreatePlatformResourceEventInput, + UpdatePlatformResourceEventInput, + PlatformResourceEventPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class PlatformResourceEventModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformResourceEvents: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformResourceEvent', + 'platformResourceEvents', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'PlatformResourceEventFilter', + 'PlatformResourceEventOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformResourceEvent', + fieldName: 'platformResourceEvents', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformResourceEvent: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'PlatformResourceEvent', + 'platformResourceEvents', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'PlatformResourceEventFilter', + 'PlatformResourceEventOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformResourceEvent', + fieldName: 'platformResourceEvent', + document, + variables, + transform: (data: { + platformResourceEvents?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformResourceEvent: data.platformResourceEvents?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformResourceEvent: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformResourceEvent', + 'platformResourceEvents', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'PlatformResourceEventFilter', + 'PlatformResourceEventOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformResourceEvent', + fieldName: 'platformResourceEvent', + document, + variables, + transform: (data: { + platformResourceEvents?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformResourceEvent: data.platformResourceEvents?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createPlatformResourceEvent: { + platformResourceEvent: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'PlatformResourceEvent', + 'createPlatformResourceEvent', + 'platformResourceEvent', + args.select, + args.data, + 'CreatePlatformResourceEventInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformResourceEvent', + fieldName: 'createPlatformResourceEvent', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + createdAt: string; + }, + PlatformResourceEventPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updatePlatformResourceEvent: { + platformResourceEvent: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'PlatformResourceEvent', + 'updatePlatformResourceEvent', + 'platformResourceEvent', + args.select, + args.where.id, + args.data, + 'UpdatePlatformResourceEventInput', + 'id', + 'platformResourceEventPatch', + connectionFieldsMap, + { + createdAt: args.where.createdAt, + } + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformResourceEvent', + fieldName: 'updatePlatformResourceEvent', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + createdAt: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deletePlatformResourceEvent: { + platformResourceEvent: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'PlatformResourceEvent', + 'deletePlatformResourceEvent', + 'platformResourceEvent', + { + id: args.where.id, + createdAt: args.where.createdAt, + }, + 'DeletePlatformResourceEventInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformResourceEvent', + fieldName: 'deletePlatformResourceEvent', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/compute/orm/models/platformResourceStatusCheck.ts b/sdk/constructive-sdk/src/compute/orm/models/platformResourceStatusCheck.ts new file mode 100644 index 0000000000..16f33db355 --- /dev/null +++ b/sdk/constructive-sdk/src/compute/orm/models/platformResourceStatusCheck.ts @@ -0,0 +1,257 @@ +/** + * PlatformResourceStatusCheck model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + PlatformResourceStatusCheck, + PlatformResourceStatusCheckWithRelations, + PlatformResourceStatusCheckSelect, + PlatformResourceStatusCheckFilter, + PlatformResourceStatusCheckOrderBy, + CreatePlatformResourceStatusCheckInput, + UpdatePlatformResourceStatusCheckInput, + PlatformResourceStatusCheckPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class PlatformResourceStatusCheckModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformResourceStatusChecks: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformResourceStatusCheck', + 'platformResourceStatusChecks', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'PlatformResourceStatusCheckFilter', + 'PlatformResourceStatusCheckOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformResourceStatusCheck', + fieldName: 'platformResourceStatusChecks', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs< + S, + PlatformResourceStatusCheckFilter, + PlatformResourceStatusCheckOrderBy + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformResourceStatusCheck: InferSelectResult< + PlatformResourceStatusCheckWithRelations, + S + > | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'PlatformResourceStatusCheck', + 'platformResourceStatusChecks', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'PlatformResourceStatusCheckFilter', + 'PlatformResourceStatusCheckOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformResourceStatusCheck', + fieldName: 'platformResourceStatusCheck', + document, + variables, + transform: (data: { + platformResourceStatusChecks?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformResourceStatusCheck: data.platformResourceStatusChecks?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformResourceStatusCheck: InferSelectResult< + PlatformResourceStatusCheckWithRelations, + S + > | null; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformResourceStatusCheck', + 'platformResourceStatusChecks', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'PlatformResourceStatusCheckFilter', + 'PlatformResourceStatusCheckOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformResourceStatusCheck', + fieldName: 'platformResourceStatusCheck', + document, + variables, + transform: (data: { + platformResourceStatusChecks?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformResourceStatusCheck: data.platformResourceStatusChecks?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createPlatformResourceStatusCheck: { + platformResourceStatusCheck: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'PlatformResourceStatusCheck', + 'createPlatformResourceStatusCheck', + 'platformResourceStatusCheck', + args.select, + args.data, + 'CreatePlatformResourceStatusCheckInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformResourceStatusCheck', + fieldName: 'createPlatformResourceStatusCheck', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + PlatformResourceStatusCheckPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updatePlatformResourceStatusCheck: { + platformResourceStatusCheck: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'PlatformResourceStatusCheck', + 'updatePlatformResourceStatusCheck', + 'platformResourceStatusCheck', + args.select, + args.where.id, + args.data, + 'UpdatePlatformResourceStatusCheckInput', + 'id', + 'platformResourceStatusCheckPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformResourceStatusCheck', + fieldName: 'updatePlatformResourceStatusCheck', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deletePlatformResourceStatusCheck: { + platformResourceStatusCheck: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'PlatformResourceStatusCheck', + 'deletePlatformResourceStatusCheck', + 'platformResourceStatusCheck', + { + id: args.where.id, + }, + 'DeletePlatformResourceStatusCheckInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformResourceStatusCheck', + fieldName: 'deletePlatformResourceStatusCheck', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/compute/orm/models/platformResourcesRequirementsState.ts b/sdk/constructive-sdk/src/compute/orm/models/platformResourcesRequirementsState.ts new file mode 100644 index 0000000000..ab6152e426 --- /dev/null +++ b/sdk/constructive-sdk/src/compute/orm/models/platformResourcesRequirementsState.ts @@ -0,0 +1,154 @@ +/** + * PlatformResourcesRequirementsState model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + PlatformResourcesRequirementsState, + PlatformResourcesRequirementsStateWithRelations, + PlatformResourcesRequirementsStateSelect, + PlatformResourcesRequirementsStateFilter, + PlatformResourcesRequirementsStateOrderBy, + CreatePlatformResourcesRequirementsStateInput, + UpdatePlatformResourcesRequirementsStateInput, + PlatformResourcesRequirementsStatePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class PlatformResourcesRequirementsStateModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs< + S, + PlatformResourcesRequirementsStateFilter, + PlatformResourcesRequirementsStateOrderBy + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformResourcesRequirementsStates: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformResourcesRequirementsState', + 'platformResourcesRequirementsStates', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'PlatformResourcesRequirementsStateFilter', + 'PlatformResourcesRequirementsStateOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformResourcesRequirementsState', + fieldName: 'platformResourcesRequirementsStates', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs< + S, + PlatformResourcesRequirementsStateFilter, + PlatformResourcesRequirementsStateOrderBy + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformResourcesRequirementsState: InferSelectResult< + PlatformResourcesRequirementsStateWithRelations, + S + > | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'PlatformResourcesRequirementsState', + 'platformResourcesRequirementsStates', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'PlatformResourcesRequirementsStateFilter', + 'PlatformResourcesRequirementsStateOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformResourcesRequirementsState', + fieldName: 'platformResourcesRequirementsState', + document, + variables, + transform: (data: { + platformResourcesRequirementsStates?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformResourcesRequirementsState: + data.platformResourcesRequirementsStates?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs< + S, + CreatePlatformResourcesRequirementsStateInput['platformResourcesRequirementsState'] + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createPlatformResourcesRequirementsState: { + platformResourcesRequirementsState: InferSelectResult< + PlatformResourcesRequirementsStateWithRelations, + S + >; + }; + }> { + const { document, variables } = buildCreateDocument( + 'PlatformResourcesRequirementsState', + 'createPlatformResourcesRequirementsState', + 'platformResourcesRequirementsState', + args.select, + args.data, + 'CreatePlatformResourcesRequirementsStateInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformResourcesRequirementsState', + fieldName: 'createPlatformResourcesRequirementsState', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/compute/orm/models/platformResourcesResolvedRequirement.ts b/sdk/constructive-sdk/src/compute/orm/models/platformResourcesResolvedRequirement.ts new file mode 100644 index 0000000000..d7d7bf4ed0 --- /dev/null +++ b/sdk/constructive-sdk/src/compute/orm/models/platformResourcesResolvedRequirement.ts @@ -0,0 +1,154 @@ +/** + * PlatformResourcesResolvedRequirement model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + PlatformResourcesResolvedRequirement, + PlatformResourcesResolvedRequirementWithRelations, + PlatformResourcesResolvedRequirementSelect, + PlatformResourcesResolvedRequirementFilter, + PlatformResourcesResolvedRequirementOrderBy, + CreatePlatformResourcesResolvedRequirementInput, + UpdatePlatformResourcesResolvedRequirementInput, + PlatformResourcesResolvedRequirementPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class PlatformResourcesResolvedRequirementModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs< + S, + PlatformResourcesResolvedRequirementFilter, + PlatformResourcesResolvedRequirementOrderBy + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformResourcesResolvedRequirements: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformResourcesResolvedRequirement', + 'platformResourcesResolvedRequirements', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'PlatformResourcesResolvedRequirementFilter', + 'PlatformResourcesResolvedRequirementOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformResourcesResolvedRequirement', + fieldName: 'platformResourcesResolvedRequirements', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs< + S, + PlatformResourcesResolvedRequirementFilter, + PlatformResourcesResolvedRequirementOrderBy + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformResourcesResolvedRequirement: InferSelectResult< + PlatformResourcesResolvedRequirementWithRelations, + S + > | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'PlatformResourcesResolvedRequirement', + 'platformResourcesResolvedRequirements', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'PlatformResourcesResolvedRequirementFilter', + 'PlatformResourcesResolvedRequirementOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformResourcesResolvedRequirement', + fieldName: 'platformResourcesResolvedRequirement', + document, + variables, + transform: (data: { + platformResourcesResolvedRequirements?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformResourcesResolvedRequirement: + data.platformResourcesResolvedRequirements?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs< + S, + CreatePlatformResourcesResolvedRequirementInput['platformResourcesResolvedRequirement'] + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createPlatformResourcesResolvedRequirement: { + platformResourcesResolvedRequirement: InferSelectResult< + PlatformResourcesResolvedRequirementWithRelations, + S + >; + }; + }> { + const { document, variables } = buildCreateDocument( + 'PlatformResourcesResolvedRequirement', + 'createPlatformResourcesResolvedRequirement', + 'platformResourcesResolvedRequirement', + args.select, + args.data, + 'CreatePlatformResourcesResolvedRequirementInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformResourcesResolvedRequirement', + fieldName: 'createPlatformResourcesResolvedRequirement', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/compute/orm/models/resourceDefinition.ts b/sdk/constructive-sdk/src/compute/orm/models/resourceDefinition.ts new file mode 100644 index 0000000000..26be134a8b --- /dev/null +++ b/sdk/constructive-sdk/src/compute/orm/models/resourceDefinition.ts @@ -0,0 +1,245 @@ +/** + * ResourceDefinition model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + ResourceDefinition, + ResourceDefinitionWithRelations, + ResourceDefinitionSelect, + ResourceDefinitionFilter, + ResourceDefinitionOrderBy, + CreateResourceDefinitionInput, + UpdateResourceDefinitionInput, + ResourceDefinitionPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class ResourceDefinitionModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + resourceDefinitions: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'ResourceDefinition', + 'resourceDefinitions', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'ResourceDefinitionFilter', + 'ResourceDefinitionOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ResourceDefinition', + fieldName: 'resourceDefinitions', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + resourceDefinition: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'ResourceDefinition', + 'resourceDefinitions', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'ResourceDefinitionFilter', + 'ResourceDefinitionOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ResourceDefinition', + fieldName: 'resourceDefinition', + document, + variables, + transform: (data: { + resourceDefinitions?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + resourceDefinition: data.resourceDefinitions?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + resourceDefinition: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'ResourceDefinition', + 'resourceDefinitions', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'ResourceDefinitionFilter', + 'ResourceDefinitionOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ResourceDefinition', + fieldName: 'resourceDefinition', + document, + variables, + transform: (data: { + resourceDefinitions?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + resourceDefinition: data.resourceDefinitions?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createResourceDefinition: { + resourceDefinition: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'ResourceDefinition', + 'createResourceDefinition', + 'resourceDefinition', + args.select, + args.data, + 'CreateResourceDefinitionInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ResourceDefinition', + fieldName: 'createResourceDefinition', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + ResourceDefinitionPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateResourceDefinition: { + resourceDefinition: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'ResourceDefinition', + 'updateResourceDefinition', + 'resourceDefinition', + args.select, + args.where.id, + args.data, + 'UpdateResourceDefinitionInput', + 'id', + 'resourceDefinitionPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ResourceDefinition', + fieldName: 'updateResourceDefinition', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteResourceDefinition: { + resourceDefinition: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'ResourceDefinition', + 'deleteResourceDefinition', + 'resourceDefinition', + { + id: args.where.id, + }, + 'DeleteResourceDefinitionInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ResourceDefinition', + fieldName: 'deleteResourceDefinition', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/compute/orm/models/resourceStatusCheck.ts b/sdk/constructive-sdk/src/compute/orm/models/resourceStatusCheck.ts new file mode 100644 index 0000000000..e7241931ee --- /dev/null +++ b/sdk/constructive-sdk/src/compute/orm/models/resourceStatusCheck.ts @@ -0,0 +1,245 @@ +/** + * ResourceStatusCheck model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + ResourceStatusCheck, + ResourceStatusCheckWithRelations, + ResourceStatusCheckSelect, + ResourceStatusCheckFilter, + ResourceStatusCheckOrderBy, + CreateResourceStatusCheckInput, + UpdateResourceStatusCheckInput, + ResourceStatusCheckPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class ResourceStatusCheckModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + resourceStatusChecks: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'ResourceStatusCheck', + 'resourceStatusChecks', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'ResourceStatusCheckFilter', + 'ResourceStatusCheckOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ResourceStatusCheck', + fieldName: 'resourceStatusChecks', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + resourceStatusCheck: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'ResourceStatusCheck', + 'resourceStatusChecks', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'ResourceStatusCheckFilter', + 'ResourceStatusCheckOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ResourceStatusCheck', + fieldName: 'resourceStatusCheck', + document, + variables, + transform: (data: { + resourceStatusChecks?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + resourceStatusCheck: data.resourceStatusChecks?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + resourceStatusCheck: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'ResourceStatusCheck', + 'resourceStatusChecks', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'ResourceStatusCheckFilter', + 'ResourceStatusCheckOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ResourceStatusCheck', + fieldName: 'resourceStatusCheck', + document, + variables, + transform: (data: { + resourceStatusChecks?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + resourceStatusCheck: data.resourceStatusChecks?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createResourceStatusCheck: { + resourceStatusCheck: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'ResourceStatusCheck', + 'createResourceStatusCheck', + 'resourceStatusCheck', + args.select, + args.data, + 'CreateResourceStatusCheckInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ResourceStatusCheck', + fieldName: 'createResourceStatusCheck', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + ResourceStatusCheckPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateResourceStatusCheck: { + resourceStatusCheck: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'ResourceStatusCheck', + 'updateResourceStatusCheck', + 'resourceStatusCheck', + args.select, + args.where.id, + args.data, + 'UpdateResourceStatusCheckInput', + 'id', + 'resourceStatusCheckPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ResourceStatusCheck', + fieldName: 'updateResourceStatusCheck', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteResourceStatusCheck: { + resourceStatusCheck: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'ResourceStatusCheck', + 'deleteResourceStatusCheck', + 'resourceStatusCheck', + { + id: args.where.id, + }, + 'DeleteResourceStatusCheckInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ResourceStatusCheck', + fieldName: 'deleteResourceStatusCheck', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/compute/orm/models/resourcesRequirementsState.ts b/sdk/constructive-sdk/src/compute/orm/models/resourcesRequirementsState.ts new file mode 100644 index 0000000000..8ce68f6a31 --- /dev/null +++ b/sdk/constructive-sdk/src/compute/orm/models/resourcesRequirementsState.ts @@ -0,0 +1,139 @@ +/** + * ResourcesRequirementsState model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + ResourcesRequirementsState, + ResourcesRequirementsStateWithRelations, + ResourcesRequirementsStateSelect, + ResourcesRequirementsStateFilter, + ResourcesRequirementsStateOrderBy, + CreateResourcesRequirementsStateInput, + UpdateResourcesRequirementsStateInput, + ResourcesRequirementsStatePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class ResourcesRequirementsStateModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + resourcesRequirementsStates: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'ResourcesRequirementsState', + 'resourcesRequirementsStates', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'ResourcesRequirementsStateFilter', + 'ResourcesRequirementsStateOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ResourcesRequirementsState', + fieldName: 'resourcesRequirementsStates', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + resourcesRequirementsState: InferSelectResult< + ResourcesRequirementsStateWithRelations, + S + > | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'ResourcesRequirementsState', + 'resourcesRequirementsStates', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'ResourcesRequirementsStateFilter', + 'ResourcesRequirementsStateOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ResourcesRequirementsState', + fieldName: 'resourcesRequirementsState', + document, + variables, + transform: (data: { + resourcesRequirementsStates?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + resourcesRequirementsState: data.resourcesRequirementsStates?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createResourcesRequirementsState: { + resourcesRequirementsState: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'ResourcesRequirementsState', + 'createResourcesRequirementsState', + 'resourcesRequirementsState', + args.select, + args.data, + 'CreateResourcesRequirementsStateInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ResourcesRequirementsState', + fieldName: 'createResourcesRequirementsState', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/compute/orm/models/resourcesResolvedRequirement.ts b/sdk/constructive-sdk/src/compute/orm/models/resourcesResolvedRequirement.ts new file mode 100644 index 0000000000..40680dcfb3 --- /dev/null +++ b/sdk/constructive-sdk/src/compute/orm/models/resourcesResolvedRequirement.ts @@ -0,0 +1,147 @@ +/** + * ResourcesResolvedRequirement model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + ResourcesResolvedRequirement, + ResourcesResolvedRequirementWithRelations, + ResourcesResolvedRequirementSelect, + ResourcesResolvedRequirementFilter, + ResourcesResolvedRequirementOrderBy, + CreateResourcesResolvedRequirementInput, + UpdateResourcesResolvedRequirementInput, + ResourcesResolvedRequirementPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class ResourcesResolvedRequirementModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs< + S, + ResourcesResolvedRequirementFilter, + ResourcesResolvedRequirementOrderBy + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + resourcesResolvedRequirements: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'ResourcesResolvedRequirement', + 'resourcesResolvedRequirements', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'ResourcesResolvedRequirementFilter', + 'ResourcesResolvedRequirementOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ResourcesResolvedRequirement', + fieldName: 'resourcesResolvedRequirements', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs< + S, + ResourcesResolvedRequirementFilter, + ResourcesResolvedRequirementOrderBy + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + resourcesResolvedRequirement: InferSelectResult< + ResourcesResolvedRequirementWithRelations, + S + > | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'ResourcesResolvedRequirement', + 'resourcesResolvedRequirements', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'ResourcesResolvedRequirementFilter', + 'ResourcesResolvedRequirementOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ResourcesResolvedRequirement', + fieldName: 'resourcesResolvedRequirement', + document, + variables, + transform: (data: { + resourcesResolvedRequirements?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + resourcesResolvedRequirement: data.resourcesResolvedRequirements?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createResourcesResolvedRequirement: { + resourcesResolvedRequirement: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'ResourcesResolvedRequirement', + 'createResourcesResolvedRequirement', + 'resourcesResolvedRequirement', + args.select, + args.data, + 'CreateResourcesResolvedRequirementInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ResourcesResolvedRequirement', + fieldName: 'createResourcesResolvedRequirement', + 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 932f75c399..d7b6550f55 100644 --- a/sdk/constructive-sdk/src/compute/orm/mutation/index.ts +++ b/sdk/constructive-sdk/src/compute/orm/mutation/index.ts @@ -8,9 +8,11 @@ import { QueryBuilder, buildCustomDocument } from '../query-builder'; import type { InferSelectResult, StrictSelect } from '../select-types'; import type { ValidateFunctionGraphInput, + InfraInitEmptyRepoInput, InitEmptyRepoInput, - SetDataAtPathInput, ImportDefinitionsInput, + InfraSetDataAtPathInput, + SetDataAtPathInput, CopyGraphInput, SaveGraphInput, AddEdgeAndSaveInput, @@ -18,13 +20,16 @@ import type { ImportGraphJsonInput, AddEdgeInput, AddNodeInput, + InfraInsertNodeAtPathInput, InsertNodeAtPathInput, StartExecutionInput, ProvisionBucketInput, ValidateFunctionGraphPayload, + InfraInitEmptyRepoPayload, InitEmptyRepoPayload, - SetDataAtPathPayload, ImportDefinitionsPayload, + InfraSetDataAtPathPayload, + SetDataAtPathPayload, CopyGraphPayload, SaveGraphPayload, AddEdgeAndSavePayload, @@ -32,13 +37,16 @@ import type { ImportGraphJsonPayload, AddEdgePayload, AddNodePayload, + InfraInsertNodeAtPathPayload, InsertNodeAtPathPayload, StartExecutionPayload, ProvisionBucketPayload, ValidateFunctionGraphPayloadSelect, + InfraInitEmptyRepoPayloadSelect, InitEmptyRepoPayloadSelect, - SetDataAtPathPayloadSelect, ImportDefinitionsPayloadSelect, + InfraSetDataAtPathPayloadSelect, + SetDataAtPathPayloadSelect, CopyGraphPayloadSelect, SaveGraphPayloadSelect, AddEdgeAndSavePayloadSelect, @@ -46,6 +54,7 @@ import type { ImportGraphJsonPayloadSelect, AddEdgePayloadSelect, AddNodePayloadSelect, + InfraInsertNodeAtPathPayloadSelect, InsertNodeAtPathPayloadSelect, StartExecutionPayloadSelect, ProvisionBucketPayloadSelect, @@ -54,15 +63,21 @@ import { connectionFieldsMap } from '../input-types'; export interface ValidateFunctionGraphVariables { input: ValidateFunctionGraphInput; } +export interface InfraInitEmptyRepoVariables { + input: InfraInitEmptyRepoInput; +} export interface InitEmptyRepoVariables { input: InitEmptyRepoInput; } -export interface SetDataAtPathVariables { - input: SetDataAtPathInput; -} export interface ImportDefinitionsVariables { input: ImportDefinitionsInput; } +export interface InfraSetDataAtPathVariables { + input: InfraSetDataAtPathInput; +} +export interface SetDataAtPathVariables { + input: SetDataAtPathInput; +} export interface CopyGraphVariables { input: CopyGraphInput; } @@ -84,6 +99,9 @@ export interface AddEdgeVariables { export interface AddNodeVariables { input: AddNodeInput; } +export interface InfraInsertNodeAtPathVariables { + input: InfraInsertNodeAtPathInput; +} export interface InsertNodeAtPathVariables { input: InsertNodeAtPathInput; } @@ -131,62 +149,62 @@ export function createMutationOperations(client: OrmClient) { 'ValidateFunctionGraphPayload' ), }), - initEmptyRepo: ( - args: InitEmptyRepoVariables, + infraInitEmptyRepo: ( + args: InfraInitEmptyRepoVariables, options: { select: S; - } & StrictSelect + } & StrictSelect ) => new QueryBuilder<{ - initEmptyRepo: InferSelectResult | null; + infraInitEmptyRepo: InferSelectResult | null; }>({ client, operation: 'mutation', - operationName: 'InitEmptyRepo', - fieldName: 'initEmptyRepo', + operationName: 'InfraInitEmptyRepo', + fieldName: 'infraInitEmptyRepo', ...buildCustomDocument( 'mutation', - 'InitEmptyRepo', - 'initEmptyRepo', + 'InfraInitEmptyRepo', + 'infraInitEmptyRepo', options.select, args, [ { name: 'input', - type: 'InitEmptyRepoInput!', + type: 'InfraInitEmptyRepoInput!', }, ], connectionFieldsMap, - 'InitEmptyRepoPayload' + 'InfraInitEmptyRepoPayload' ), }), - setDataAtPath: ( - args: SetDataAtPathVariables, + initEmptyRepo: ( + args: InitEmptyRepoVariables, options: { select: S; - } & StrictSelect + } & StrictSelect ) => new QueryBuilder<{ - setDataAtPath: InferSelectResult | null; + initEmptyRepo: InferSelectResult | null; }>({ client, operation: 'mutation', - operationName: 'SetDataAtPath', - fieldName: 'setDataAtPath', + operationName: 'InitEmptyRepo', + fieldName: 'initEmptyRepo', ...buildCustomDocument( 'mutation', - 'SetDataAtPath', - 'setDataAtPath', + 'InitEmptyRepo', + 'initEmptyRepo', options.select, args, [ { name: 'input', - type: 'SetDataAtPathInput!', + type: 'InitEmptyRepoInput!', }, ], connectionFieldsMap, - 'SetDataAtPathPayload' + 'InitEmptyRepoPayload' ), }), importDefinitions: ( @@ -218,6 +236,64 @@ export function createMutationOperations(client: OrmClient) { 'ImportDefinitionsPayload' ), }), + infraSetDataAtPath: ( + args: InfraSetDataAtPathVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + infraSetDataAtPath: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'InfraSetDataAtPath', + fieldName: 'infraSetDataAtPath', + ...buildCustomDocument( + 'mutation', + 'InfraSetDataAtPath', + 'infraSetDataAtPath', + options.select, + args, + [ + { + name: 'input', + type: 'InfraSetDataAtPathInput!', + }, + ], + connectionFieldsMap, + 'InfraSetDataAtPathPayload' + ), + }), + setDataAtPath: ( + args: SetDataAtPathVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + setDataAtPath: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'SetDataAtPath', + fieldName: 'setDataAtPath', + ...buildCustomDocument( + 'mutation', + 'SetDataAtPath', + 'setDataAtPath', + options.select, + args, + [ + { + name: 'input', + type: 'SetDataAtPathInput!', + }, + ], + connectionFieldsMap, + 'SetDataAtPathPayload' + ), + }), copyGraph: ( args: CopyGraphVariables, options: { @@ -421,6 +497,35 @@ export function createMutationOperations(client: OrmClient) { 'AddNodePayload' ), }), + infraInsertNodeAtPath: ( + args: InfraInsertNodeAtPathVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + infraInsertNodeAtPath: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'InfraInsertNodeAtPath', + fieldName: 'infraInsertNodeAtPath', + ...buildCustomDocument( + 'mutation', + 'InfraInsertNodeAtPath', + 'infraInsertNodeAtPath', + options.select, + args, + [ + { + name: 'input', + type: 'InfraInsertNodeAtPathInput!', + }, + ], + connectionFieldsMap, + 'InfraInsertNodeAtPathPayload' + ), + }), insertNodeAtPath: ( args: InsertNodeAtPathVariables, options: { diff --git a/sdk/constructive-sdk/src/config/README.md b/sdk/constructive-sdk/src/config/README.md index e03942d1f5..53c02d2b56 100644 --- a/sdk/constructive-sdk/src/config/README.md +++ b/sdk/constructive-sdk/src/config/README.md @@ -8,9 +8,9 @@ ## Overview -- **Tables:** 2 +- **Tables:** 5 - **Custom queries:** 0 -- **Custom mutations:** 9 +- **Custom mutations:** 13 **Generators:** ORM diff --git a/sdk/constructive-sdk/src/config/orm/README.md b/sdk/constructive-sdk/src/config/orm/README.md index 803661dc8e..767f523c89 100644 --- a/sdk/constructive-sdk/src/config/orm/README.md +++ b/sdk/constructive-sdk/src/config/orm/README.md @@ -21,51 +21,56 @@ const db = createClient({ | Model | Operations | |-------|------------| -| `platformConfigDefinition` | findMany, findOne, create, update, delete | | `platformConfig` | findMany, findOne, create, update, delete | +| `config` | findMany, findOne, create, update, delete | +| `platformInternalSecret` | findMany, findOne, create, update, delete | +| `platformSecret` | findMany, findOne, create, update, delete | +| `secret` | findMany, findOne, create, update, delete | ## Table Operations -### `db.platformConfigDefinition` +### `db.platformConfig` -CRUD operations for PlatformConfigDefinition records. +CRUD operations for PlatformConfig records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | +| `namespaceId` | UUID | Yes | | `name` | String | Yes | -| `description` | String | Yes | -| `defaultValue` | String | Yes | -| `isBuiltIn` | Boolean | Yes | +| `provider` | String | Yes | +| `value` | String | Yes | | `labels` | JSON | Yes | | `annotations` | JSON | Yes | +| `description` | String | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | +| `expiresAt` | Datetime | Yes | **Operations:** ```typescript -// List all platformConfigDefinition records -const items = await db.platformConfigDefinition.findMany({ select: { id: true, createdAt: true, updatedAt: true, name: true, description: true, defaultValue: true, isBuiltIn: true, labels: true, annotations: true } }).execute(); +// List all platformConfig records +const items = await db.platformConfig.findMany({ select: { id: true, namespaceId: true, name: true, provider: true, value: true, labels: true, annotations: true, description: true, createdAt: true, updatedAt: true, expiresAt: true } }).execute(); // Get one by id -const item = await db.platformConfigDefinition.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, name: true, description: true, defaultValue: true, isBuiltIn: true, labels: true, annotations: true } }).execute(); +const item = await db.platformConfig.findOne({ id: '', select: { id: true, namespaceId: true, name: true, provider: true, value: true, labels: true, annotations: true, description: true, createdAt: true, updatedAt: true, expiresAt: true } }).execute(); // Create -const created = await db.platformConfigDefinition.create({ data: { name: '', description: '', defaultValue: '', isBuiltIn: '', labels: '', annotations: '' }, select: { id: true } }).execute(); +const created = await db.platformConfig.create({ data: { namespaceId: '', name: '', provider: '', value: '', labels: '', annotations: '', description: '', expiresAt: '' }, select: { id: true } }).execute(); // Update -const updated = await db.platformConfigDefinition.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.platformConfig.update({ where: { id: '' }, data: { namespaceId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.platformConfigDefinition.delete({ where: { id: '' } }).execute(); +const deleted = await db.platformConfig.delete({ where: { id: '' } }).execute(); ``` -### `db.platformConfig` +### `db.config` -CRUD operations for PlatformConfig records. +CRUD operations for Config records. **Fields:** @@ -73,7 +78,9 @@ CRUD operations for PlatformConfig records. |-------|------|----------| | `id` | UUID | No | | `namespaceId` | UUID | Yes | +| `databaseId` | UUID | Yes | | `name` | String | Yes | +| `provider` | String | Yes | | `value` | String | Yes | | `labels` | JSON | Yes | | `annotations` | JSON | Yes | @@ -85,24 +92,156 @@ CRUD operations for PlatformConfig records. **Operations:** ```typescript -// List all platformConfig records -const items = await db.platformConfig.findMany({ select: { id: true, namespaceId: true, name: true, value: true, labels: true, annotations: true, description: true, createdAt: true, updatedAt: true, expiresAt: true } }).execute(); +// List all config records +const items = await db.config.findMany({ select: { id: true, namespaceId: true, databaseId: true, name: true, provider: true, value: true, labels: true, annotations: true, description: true, createdAt: true, updatedAt: true, expiresAt: true } }).execute(); // Get one by id -const item = await db.platformConfig.findOne({ id: '', select: { id: true, namespaceId: true, name: true, value: true, labels: true, annotations: true, description: true, createdAt: true, updatedAt: true, expiresAt: true } }).execute(); +const item = await db.config.findOne({ id: '', select: { id: true, namespaceId: true, databaseId: true, name: true, provider: true, value: true, labels: true, annotations: true, description: true, createdAt: true, updatedAt: true, expiresAt: true } }).execute(); // Create -const created = await db.platformConfig.create({ data: { namespaceId: '', name: '', value: '', labels: '', annotations: '', description: '', expiresAt: '' }, select: { id: true } }).execute(); +const created = await db.config.create({ data: { namespaceId: '', databaseId: '', name: '', provider: '', value: '', labels: '', annotations: '', description: '', expiresAt: '' }, select: { id: true } }).execute(); // Update -const updated = await db.platformConfig.update({ where: { id: '' }, data: { namespaceId: '' }, select: { id: true } }).execute(); +const updated = await db.config.update({ where: { id: '' }, data: { namespaceId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.platformConfig.delete({ where: { id: '' } }).execute(); +const deleted = await db.config.delete({ where: { id: '' } }).execute(); +``` + +### `db.platformInternalSecret` + +CRUD operations for PlatformInternalSecret records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `name` | String | Yes | +| `namespaceId` | UUID | Yes | +| `description` | String | Yes | +| `labels` | JSON | Yes | +| `annotations` | JSON | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | +| `rotatedAt` | Datetime | Yes | +| `retiredAt` | Datetime | Yes | + +**Operations:** + +```typescript +// List all platformInternalSecret records +const items = await db.platformInternalSecret.findMany({ select: { id: true, name: true, namespaceId: true, description: true, labels: true, annotations: true, createdAt: true, updatedAt: true, rotatedAt: true, retiredAt: true } }).execute(); + +// Get one by id +const item = await db.platformInternalSecret.findOne({ id: '', select: { id: true, name: true, namespaceId: true, description: true, labels: true, annotations: true, createdAt: true, updatedAt: true, rotatedAt: true, retiredAt: true } }).execute(); + +// Create +const created = await db.platformInternalSecret.create({ data: { name: '', namespaceId: '', description: '', labels: '', annotations: '', rotatedAt: '', retiredAt: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformInternalSecret.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformInternalSecret.delete({ where: { id: '' } }).execute(); +``` + +### `db.platformSecret` + +CRUD operations for PlatformSecret records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `name` | String | Yes | +| `provider` | String | Yes | +| `namespaceId` | UUID | Yes | +| `description` | String | Yes | +| `labels` | JSON | Yes | +| `annotations` | JSON | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | +| `rotatedAt` | Datetime | Yes | +| `retiredAt` | Datetime | Yes | + +**Operations:** + +```typescript +// List all platformSecret records +const items = await db.platformSecret.findMany({ select: { id: true, name: true, provider: true, namespaceId: true, description: true, labels: true, annotations: true, createdAt: true, updatedAt: true, rotatedAt: true, retiredAt: true } }).execute(); + +// Get one by id +const item = await db.platformSecret.findOne({ id: '', select: { id: true, name: true, provider: true, namespaceId: true, description: true, labels: true, annotations: true, createdAt: true, updatedAt: true, rotatedAt: true, retiredAt: true } }).execute(); + +// Create +const created = await db.platformSecret.create({ data: { name: '', provider: '', namespaceId: '', description: '', labels: '', annotations: '', rotatedAt: '', retiredAt: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformSecret.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformSecret.delete({ where: { id: '' } }).execute(); +``` + +### `db.secret` + +CRUD operations for Secret records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `databaseId` | UUID | Yes | +| `id` | UUID | No | +| `name` | String | Yes | +| `provider` | String | Yes | +| `namespaceId` | UUID | Yes | +| `description` | String | Yes | +| `labels` | JSON | Yes | +| `annotations` | JSON | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | +| `rotatedAt` | Datetime | Yes | +| `retiredAt` | Datetime | Yes | + +**Operations:** + +```typescript +// List all secret records +const items = await db.secret.findMany({ select: { databaseId: true, id: true, name: true, provider: true, namespaceId: true, description: true, labels: true, annotations: true, createdAt: true, updatedAt: true, rotatedAt: true, retiredAt: true } }).execute(); + +// Get one by id +const item = await db.secret.findOne({ id: '', select: { databaseId: true, id: true, name: true, provider: true, namespaceId: true, description: true, labels: true, annotations: true, createdAt: true, updatedAt: true, rotatedAt: true, retiredAt: true } }).execute(); + +// Create +const created = await db.secret.create({ data: { databaseId: '', name: '', provider: '', namespaceId: '', description: '', labels: '', annotations: '', rotatedAt: '', retiredAt: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.secret.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.secret.delete({ where: { id: '' } }).execute(); ``` ## Custom Operations +### `db.mutation.platformInternalSecretsDel` + +platformInternalSecretsDel + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | PlatformInternalSecretsDelInput (required) | + +```typescript +const result = await db.mutation.platformInternalSecretsDel({ input: { secretName: '', namespaceId: '' } }).execute(); +``` + ### `db.mutation.platformSecretsDel` platformSecretsDel @@ -118,19 +257,34 @@ platformSecretsDel const result = await db.mutation.platformSecretsDel({ input: { secretName: '', namespaceId: '' } }).execute(); ``` -### `db.mutation.orgSecretsDel` +### `db.mutation._secretsDel` + +_secretsDel + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | _SecretsDelInput (required) | + +```typescript +const result = await db.mutation._secretsDel({ input: { databaseId: '', secretName: '', namespaceId: '' } }).execute(); +``` + +### `db.mutation.platformInternalSecretsRemoveArray` -orgSecretsDel +platformInternalSecretsRemoveArray - **Type:** mutation - **Arguments:** | Argument | Type | |----------|------| - | `input` | OrgSecretsDelInput (required) | + | `input` | PlatformInternalSecretsRemoveArrayInput (required) | ```typescript -const result = await db.mutation.orgSecretsDel({ input: { ownerId: '', secretName: '', namespaceId: '' } }).execute(); +const result = await db.mutation.platformInternalSecretsRemoveArray({ input: { secretNames: '', namespaceId: '' } }).execute(); ``` ### `db.mutation.platformSecretsRemoveArray` @@ -148,19 +302,49 @@ platformSecretsRemoveArray const result = await db.mutation.platformSecretsRemoveArray({ input: { secretNames: '', namespaceId: '' } }).execute(); ``` -### `db.mutation.orgSecretsRemoveArray` +### `db.mutation._secretsRemoveArray` + +_secretsRemoveArray + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | _SecretsRemoveArrayInput (required) | + +```typescript +const result = await db.mutation._secretsRemoveArray({ input: { databaseId: '', secretNames: '', namespaceId: '' } }).execute(); +``` + +### `db.mutation.platformInternalSecretsRotate` -orgSecretsRemoveArray +platformInternalSecretsRotate - **Type:** mutation - **Arguments:** | Argument | Type | |----------|------| - | `input` | OrgSecretsRemoveArrayInput (required) | + | `input` | PlatformInternalSecretsRotateInput (required) | ```typescript -const result = await db.mutation.orgSecretsRemoveArray({ input: { ownerId: '', secretNames: '', namespaceId: '' } }).execute(); +const result = await db.mutation.platformInternalSecretsRotate({ input: { secretName: '', secretValue: '', namespaceId: '', algo: '' } }).execute(); +``` + +### `db.mutation.platformInternalSecretsSet` + +platformInternalSecretsSet + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | PlatformInternalSecretsSetInput (required) | + +```typescript +const result = await db.mutation.platformInternalSecretsSet({ input: { secretName: '', secretValue: '', secretNamespaceId: '', algo: '' } }).execute(); ``` ### `db.mutation.platformSecretsRotate` @@ -178,49 +362,49 @@ platformSecretsRotate const result = await db.mutation.platformSecretsRotate({ input: { secretName: '', secretValue: '', namespaceId: '', algo: '' } }).execute(); ``` -### `db.mutation.platformSecretsSet` +### `db.mutation._secretsRotate` -platformSecretsSet +_secretsRotate - **Type:** mutation - **Arguments:** | Argument | Type | |----------|------| - | `input` | PlatformSecretsSetInput (required) | + | `input` | _SecretsRotateInput (required) | ```typescript -const result = await db.mutation.platformSecretsSet({ input: { secretName: '', secretValue: '', secretNamespaceId: '', algo: '' } }).execute(); +const result = await db.mutation._secretsRotate({ input: { databaseId: '', secretName: '', secretValue: '', namespaceId: '', algo: '' } }).execute(); ``` -### `db.mutation.orgSecretsRotate` +### `db.mutation.platformSecretsSet` -orgSecretsRotate +platformSecretsSet - **Type:** mutation - **Arguments:** | Argument | Type | |----------|------| - | `input` | OrgSecretsRotateInput (required) | + | `input` | PlatformSecretsSetInput (required) | ```typescript -const result = await db.mutation.orgSecretsRotate({ input: { ownerId: '', secretName: '', secretValue: '', namespaceId: '', algo: '' } }).execute(); +const result = await db.mutation.platformSecretsSet({ input: { secretName: '', secretValue: '', secretNamespaceId: '', algo: '', provider: '' } }).execute(); ``` -### `db.mutation.orgSecretsSet` +### `db.mutation._secretsSet` -orgSecretsSet +_secretsSet - **Type:** mutation - **Arguments:** | Argument | Type | |----------|------| - | `input` | OrgSecretsSetInput (required) | + | `input` | _SecretsSetInput (required) | ```typescript -const result = await db.mutation.orgSecretsSet({ input: { scopeOwnerId: '', secretName: '', secretValue: '', secretNamespaceId: '', algo: '' } }).execute(); +const result = await db.mutation._secretsSet({ input: '<_SecretsSetInput>' }).execute(); ``` ### `db.mutation.provisionBucket` diff --git a/sdk/constructive-sdk/src/config/orm/index.ts b/sdk/constructive-sdk/src/config/orm/index.ts index 9ea4028079..eef38276fc 100644 --- a/sdk/constructive-sdk/src/config/orm/index.ts +++ b/sdk/constructive-sdk/src/config/orm/index.ts @@ -5,8 +5,11 @@ */ import { OrmClient } from './client'; import type { OrmClientConfig } from './client'; -import { PlatformConfigDefinitionModel } from './models/platformConfigDefinition'; import { PlatformConfigModel } from './models/platformConfig'; +import { ConfigModel } from './models/config'; +import { PlatformInternalSecretModel } from './models/platformInternalSecret'; +import { PlatformSecretModel } from './models/platformSecret'; +import { SecretModel } from './models/secret'; import { createMutationOperations } from './mutation'; export type { OrmClientConfig, QueryResult, GraphQLError, GraphQLAdapter } from './client'; export { GraphQLRequestError, FetchAdapter } from './client'; @@ -40,8 +43,11 @@ export { createMutationOperations } from './mutation'; export function createClient(config: OrmClientConfig) { const client = new OrmClient(config); return { - platformConfigDefinition: new PlatformConfigDefinitionModel(client), platformConfig: new PlatformConfigModel(client), + config: new ConfigModel(client), + platformInternalSecret: new PlatformInternalSecretModel(client), + platformSecret: new PlatformSecretModel(client), + secret: new SecretModel(client), mutation: createMutationOperations(client), }; } diff --git a/sdk/constructive-sdk/src/config/orm/input-types.ts b/sdk/constructive-sdk/src/config/orm/input-types.ts index 693309a1fb..0da12a05d0 100644 --- a/sdk/constructive-sdk/src/config/orm/input-types.ts +++ b/sdk/constructive-sdk/src/config/orm/input-types.ts @@ -230,34 +230,42 @@ export interface UUIDListFilter { anyGreaterThan?: string; anyGreaterThanOrEqualTo?: string; } -/** Registry of valid config keys — declares which config entries the platform recognizes */ +/** Namespace-backed plaintext key-value config store (like a k8s ConfigMap); admin-only, fully CRUD-exposed */ // ============ Entity Types ============ -export interface PlatformConfigDefinition { - /** Unique identifier for this config definition */ +export interface PlatformConfig { + /** Unique identifier for this config entry */ id: string; - createdAt?: string | null; - updatedAt?: string | null; - /** Config key name (must match config table name for resolution) */ + /** FK to namespaces — logical grouping for config entries */ + namespaceId?: string | null; + /** Key name identifying the config entry */ name?: string | null; - /** Human-readable description of what this config key controls */ - description?: string | null; - /** Default value used when no config entry exists for a namespace */ - defaultValue?: string | null; - /** Whether this row was seeded as a built-in config definition */ - isBuiltIn?: boolean | null; - /** Key-value metadata for filtering and grouping config definitions */ + /** Integration provider slug (e.g. mailgun, postgres). Used by the UI to group config entries by integration. No FK. */ + provider?: string | null; + /** Plaintext config value */ + value?: string | null; + /** Key/value pairs for selecting/filtering config entries */ labels?: Record | null; - /** Freeform metadata annotations for config definitions */ + /** Freeform metadata for tooling and operational notes */ annotations?: Record | null; + /** Human-readable note about this config entry */ + description?: string | null; + createdAt?: string | null; + updatedAt?: string | null; + /** Optional expiration timestamp for time-limited config entries */ + expiresAt?: string | null; } -/** App-level plaintext key-value config store (like a k8s ConfigMap); admin-only, fully CRUD-exposed */ -export interface PlatformConfig { +/** Namespace-backed plaintext key-value config store (like a k8s ConfigMap); admin-only, fully CRUD-exposed */ +export interface Config { /** Unique identifier for this config entry */ id: string; /** FK to namespaces — logical grouping for config entries */ namespaceId?: string | null; + /** Database that owns this resource (database-scoped isolation) */ + databaseId?: string | 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; /** Plaintext config value */ value?: string | null; /** Key/value pairs for selecting/filtering config entries */ @@ -271,6 +279,45 @@ export interface PlatformConfig { /** Optional expiration timestamp for time-limited config entries */ expiresAt?: string | null; } +export interface PlatformInternalSecret { + id: string; + name?: string | null; + namespaceId?: string | null; + description?: string | null; + labels?: Record | null; + annotations?: Record | null; + createdAt?: string | null; + updatedAt?: string | null; + rotatedAt?: string | null; + retiredAt?: string | null; +} +export interface PlatformSecret { + id: string; + name?: string | null; + provider?: string | null; + namespaceId?: string | null; + description?: string | null; + labels?: Record | null; + annotations?: Record | null; + createdAt?: string | null; + updatedAt?: string | null; + rotatedAt?: string | null; + retiredAt?: string | null; +} +export interface Secret { + databaseId?: string | null; + id: string; + name?: string | null; + provider?: string | null; + namespaceId?: string | null; + description?: string | null; + labels?: Record | null; + annotations?: Record | null; + createdAt?: string | null; + updatedAt?: string | null; + rotatedAt?: string | null; + retiredAt?: string | null; +} // ============ Relation Helper Types ============ export interface ConnectionResult { nodes: T[]; @@ -284,28 +331,38 @@ export interface PageInfo { endCursor?: string | null; } // ============ Entity Relation Types ============ -export interface PlatformConfigDefinitionRelations {} export interface PlatformConfigRelations {} +export interface ConfigRelations {} +export interface PlatformInternalSecretRelations {} +export interface PlatformSecretRelations {} +export interface SecretRelations {} // ============ Entity Types With Relations ============ -export type PlatformConfigDefinitionWithRelations = PlatformConfigDefinition & - PlatformConfigDefinitionRelations; export type PlatformConfigWithRelations = PlatformConfig & PlatformConfigRelations; +export type ConfigWithRelations = Config & ConfigRelations; +export type PlatformInternalSecretWithRelations = PlatformInternalSecret & + PlatformInternalSecretRelations; +export type PlatformSecretWithRelations = PlatformSecret & PlatformSecretRelations; +export type SecretWithRelations = Secret & SecretRelations; // ============ Entity Select Types ============ -export type PlatformConfigDefinitionSelect = { +export type PlatformConfigSelect = { id?: boolean; - createdAt?: boolean; - updatedAt?: boolean; + namespaceId?: boolean; name?: boolean; - description?: boolean; - defaultValue?: boolean; - isBuiltIn?: boolean; + provider?: boolean; + value?: boolean; labels?: boolean; annotations?: boolean; + description?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + expiresAt?: boolean; }; -export type PlatformConfigSelect = { +export type ConfigSelect = { id?: boolean; namespaceId?: boolean; + databaseId?: boolean; name?: boolean; + provider?: boolean; value?: boolean; labels?: boolean; annotations?: boolean; @@ -314,40 +371,87 @@ export type PlatformConfigSelect = { updatedAt?: boolean; expiresAt?: boolean; }; +export type PlatformInternalSecretSelect = { + id?: boolean; + name?: boolean; + namespaceId?: boolean; + description?: boolean; + labels?: boolean; + annotations?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + rotatedAt?: boolean; + retiredAt?: boolean; +}; +export type PlatformSecretSelect = { + id?: boolean; + name?: boolean; + provider?: boolean; + namespaceId?: boolean; + description?: boolean; + labels?: boolean; + annotations?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + rotatedAt?: boolean; + retiredAt?: boolean; +}; +export type SecretSelect = { + databaseId?: boolean; + id?: boolean; + name?: boolean; + provider?: boolean; + namespaceId?: boolean; + description?: boolean; + labels?: boolean; + annotations?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + rotatedAt?: boolean; + retiredAt?: boolean; +}; // ============ Table Filter Types ============ -export interface PlatformConfigDefinitionFilter { +export interface PlatformConfigFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Filter by the object’s `defaultValue` field. */ - defaultValue?: StringFilter; - /** Filter by the object’s `isBuiltIn` field. */ - isBuiltIn?: BooleanFilter; + /** Filter by the object’s `provider` field. */ + provider?: StringFilter; + /** Filter by the object’s `value` field. */ + value?: StringFilter; /** Filter by the object’s `labels` field. */ labels?: JSONFilter; /** Filter by the object’s `annotations` field. */ annotations?: JSONFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `expiresAt` field. */ + expiresAt?: DatetimeFilter; /** Checks for all expressions in this list. */ - and?: PlatformConfigDefinitionFilter[]; + and?: PlatformConfigFilter[]; /** Checks for any expressions in this list. */ - or?: PlatformConfigDefinitionFilter[]; + or?: PlatformConfigFilter[]; /** Negates the expression. */ - not?: PlatformConfigDefinitionFilter; + not?: PlatformConfigFilter; } -export interface PlatformConfigFilter { +export interface ConfigFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `namespaceId` field. */ namespaceId?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; + /** Filter by the object’s `provider` field. */ + provider?: StringFilter; /** Filter by the object’s `value` field. */ value?: StringFilter; /** Filter by the object’s `labels` field. */ @@ -363,36 +467,130 @@ export interface PlatformConfigFilter { /** Filter by the object’s `expiresAt` field. */ expiresAt?: DatetimeFilter; /** Checks for all expressions in this list. */ - and?: PlatformConfigFilter[]; + and?: ConfigFilter[]; /** Checks for any expressions in this list. */ - or?: PlatformConfigFilter[]; + or?: ConfigFilter[]; /** Negates the expression. */ - not?: PlatformConfigFilter; + not?: ConfigFilter; +} +export interface PlatformInternalSecretFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `labels` field. */ + labels?: JSONFilter; + /** Filter by the object’s `annotations` field. */ + annotations?: JSONFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `rotatedAt` field. */ + rotatedAt?: DatetimeFilter; + /** Filter by the object’s `retiredAt` field. */ + retiredAt?: DatetimeFilter; + /** Checks for all expressions in this list. */ + and?: PlatformInternalSecretFilter[]; + /** Checks for any expressions in this list. */ + or?: PlatformInternalSecretFilter[]; + /** Negates the expression. */ + not?: PlatformInternalSecretFilter; +} +export interface PlatformSecretFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `provider` field. */ + provider?: StringFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `labels` field. */ + labels?: JSONFilter; + /** Filter by the object’s `annotations` field. */ + annotations?: JSONFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `rotatedAt` field. */ + rotatedAt?: DatetimeFilter; + /** Filter by the object’s `retiredAt` field. */ + retiredAt?: DatetimeFilter; + /** Checks for all expressions in this list. */ + and?: PlatformSecretFilter[]; + /** Checks for any expressions in this list. */ + or?: PlatformSecretFilter[]; + /** Negates the expression. */ + not?: PlatformSecretFilter; +} +export interface SecretFilter { + /** 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 `provider` field. */ + provider?: StringFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `labels` field. */ + labels?: JSONFilter; + /** Filter by the object’s `annotations` field. */ + annotations?: JSONFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `rotatedAt` field. */ + rotatedAt?: DatetimeFilter; + /** Filter by the object’s `retiredAt` field. */ + retiredAt?: DatetimeFilter; + /** Checks for all expressions in this list. */ + and?: SecretFilter[]; + /** Checks for any expressions in this list. */ + or?: SecretFilter[]; + /** Negates the expression. */ + not?: SecretFilter; } // ============ OrderBy Types ============ -export type PlatformConfigDefinitionOrderBy = +export type PlatformConfigOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' + | 'NAMESPACE_ID_ASC' + | 'NAMESPACE_ID_DESC' | 'NAME_ASC' | 'NAME_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC' - | 'DEFAULT_VALUE_ASC' - | 'DEFAULT_VALUE_DESC' - | 'IS_BUILT_IN_ASC' - | 'IS_BUILT_IN_DESC' + | 'PROVIDER_ASC' + | 'PROVIDER_DESC' + | 'VALUE_ASC' + | 'VALUE_DESC' | 'LABELS_ASC' | 'LABELS_DESC' | 'ANNOTATIONS_ASC' - | 'ANNOTATIONS_DESC'; -export type PlatformConfigOrderBy = + | 'ANNOTATIONS_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'EXPIRES_AT_ASC' + | 'EXPIRES_AT_DESC'; +export type ConfigOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -400,8 +598,12 @@ export type PlatformConfigOrderBy = | 'ID_DESC' | 'NAMESPACE_ID_ASC' | 'NAMESPACE_ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' | 'NAME_ASC' | 'NAME_DESC' + | 'PROVIDER_ASC' + | 'PROVIDER_DESC' | 'VALUE_ASC' | 'VALUE_DESC' | 'LABELS_ASC' @@ -416,40 +618,118 @@ export type PlatformConfigOrderBy = | 'UPDATED_AT_DESC' | 'EXPIRES_AT_ASC' | 'EXPIRES_AT_DESC'; +export type PlatformInternalSecretOrderBy = + | 'NATURAL' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'NAMESPACE_ID_ASC' + | 'NAMESPACE_ID_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'LABELS_ASC' + | 'LABELS_DESC' + | 'ANNOTATIONS_ASC' + | 'ANNOTATIONS_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'ROTATED_AT_ASC' + | 'ROTATED_AT_DESC' + | 'RETIRED_AT_ASC' + | 'RETIRED_AT_DESC'; +export type PlatformSecretOrderBy = + | 'NATURAL' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'PROVIDER_ASC' + | 'PROVIDER_DESC' + | 'NAMESPACE_ID_ASC' + | 'NAMESPACE_ID_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'LABELS_ASC' + | 'LABELS_DESC' + | 'ANNOTATIONS_ASC' + | 'ANNOTATIONS_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'ROTATED_AT_ASC' + | 'ROTATED_AT_DESC' + | 'RETIRED_AT_ASC' + | 'RETIRED_AT_DESC'; +export type SecretOrderBy = + | 'NATURAL' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'PROVIDER_ASC' + | 'PROVIDER_DESC' + | 'NAMESPACE_ID_ASC' + | 'NAMESPACE_ID_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'LABELS_ASC' + | 'LABELS_DESC' + | 'ANNOTATIONS_ASC' + | 'ANNOTATIONS_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'ROTATED_AT_ASC' + | 'ROTATED_AT_DESC' + | 'RETIRED_AT_ASC' + | 'RETIRED_AT_DESC'; // ============ CRUD Input Types ============ -export interface CreatePlatformConfigDefinitionInput { +export interface CreatePlatformConfigInput { clientMutationId?: string; - platformConfigDefinition: { + platformConfig: { + namespaceId: string; name: string; - description?: string; - defaultValue?: string; - isBuiltIn?: boolean; + provider?: string; + value?: string; labels?: Record; annotations?: Record; + description?: string; + expiresAt?: string; }; } -export interface PlatformConfigDefinitionPatch { +export interface PlatformConfigPatch { + namespaceId?: string | null; name?: string | null; - description?: string | null; - defaultValue?: string | null; - isBuiltIn?: boolean | null; + provider?: string | null; + value?: string | null; labels?: Record | null; annotations?: Record | null; + description?: string | null; + expiresAt?: string | null; } -export interface UpdatePlatformConfigDefinitionInput { +export interface UpdatePlatformConfigInput { clientMutationId?: string; id: string; - platformConfigDefinitionPatch: PlatformConfigDefinitionPatch; + platformConfigPatch: PlatformConfigPatch; } -export interface DeletePlatformConfigDefinitionInput { +export interface DeletePlatformConfigInput { clientMutationId?: string; id: string; } -export interface CreatePlatformConfigInput { +export interface CreateConfigInput { clientMutationId?: string; - platformConfig: { + config: { namespaceId: string; + databaseId: string; name: string; + provider?: string; value?: string; labels?: Record; annotations?: Record; @@ -457,78 +737,202 @@ export interface CreatePlatformConfigInput { expiresAt?: string; }; } -export interface PlatformConfigPatch { +export interface ConfigPatch { namespaceId?: string | null; + databaseId?: string | null; name?: string | null; + provider?: string | null; value?: string | null; labels?: Record | null; annotations?: Record | null; description?: string | null; expiresAt?: string | null; } -export interface UpdatePlatformConfigInput { +export interface UpdateConfigInput { clientMutationId?: string; id: string; - platformConfigPatch: PlatformConfigPatch; + configPatch: ConfigPatch; } -export interface DeletePlatformConfigInput { +export interface DeleteConfigInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformInternalSecretInput { + clientMutationId?: string; + platformInternalSecret: { + name?: string; + namespaceId?: string; + description?: string; + labels?: Record; + annotations?: Record; + rotatedAt?: string; + retiredAt?: string; + }; +} +export interface PlatformInternalSecretPatch { + name?: string | null; + namespaceId?: string | null; + description?: string | null; + labels?: Record | null; + annotations?: Record | null; + rotatedAt?: string | null; + retiredAt?: string | null; +} +export interface UpdatePlatformInternalSecretInput { + clientMutationId?: string; + id: string; + platformInternalSecretPatch: PlatformInternalSecretPatch; +} +export interface DeletePlatformInternalSecretInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformSecretInput { + clientMutationId?: string; + platformSecret: { + name?: string; + provider?: string; + namespaceId?: string; + description?: string; + labels?: Record; + annotations?: Record; + rotatedAt?: string; + retiredAt?: string; + }; +} +export interface PlatformSecretPatch { + name?: string | null; + provider?: string | null; + namespaceId?: string | null; + description?: string | null; + labels?: Record | null; + annotations?: Record | null; + rotatedAt?: string | null; + retiredAt?: string | null; +} +export interface UpdatePlatformSecretInput { + clientMutationId?: string; + id: string; + platformSecretPatch: PlatformSecretPatch; +} +export interface DeletePlatformSecretInput { + clientMutationId?: string; + id: string; +} +export interface CreateSecretInput { + clientMutationId?: string; + secret: { + databaseId?: string; + name?: string; + provider?: string; + namespaceId?: string; + description?: string; + labels?: Record; + annotations?: Record; + rotatedAt?: string; + retiredAt?: string; + }; +} +export interface SecretPatch { + databaseId?: string | null; + name?: string | null; + provider?: string | null; + namespaceId?: string | null; + description?: string | null; + labels?: Record | null; + annotations?: Record | null; + rotatedAt?: string | null; + retiredAt?: string | null; +} +export interface UpdateSecretInput { + clientMutationId?: string; + id: string; + secretPatch: SecretPatch; +} +export interface DeleteSecretInput { clientMutationId?: string; id: string; } // ============ Connection Fields Map ============ export const connectionFieldsMap = {} as Record>; // ============ Custom Input Types (from schema) ============ +export interface PlatformInternalSecretsDelInput { + clientMutationId?: string; + secretName?: string; + namespaceId?: string; +} export interface PlatformSecretsDelInput { clientMutationId?: string; secretName?: string; namespaceId?: string; } -export interface OrgSecretsDelInput { +export interface _SecretsDelInput { clientMutationId?: string; - ownerId?: string; + databaseId?: string; secretName?: string; namespaceId?: string; } +export interface PlatformInternalSecretsRemoveArrayInput { + clientMutationId?: string; + secretNames?: string[]; + namespaceId?: string; +} export interface PlatformSecretsRemoveArrayInput { clientMutationId?: string; secretNames?: string[]; namespaceId?: string; } -export interface OrgSecretsRemoveArrayInput { +export interface _SecretsRemoveArrayInput { clientMutationId?: string; - ownerId?: string; + databaseId?: string; secretNames?: string[]; namespaceId?: string; } -export interface PlatformSecretsRotateInput { +export interface PlatformInternalSecretsRotateInput { clientMutationId?: string; secretName?: string; secretValue?: string; namespaceId?: string; algo?: string; } -export interface PlatformSecretsSetInput { +export interface PlatformInternalSecretsSetInput { clientMutationId?: string; secretName?: string; secretValue?: string; secretNamespaceId?: string; algo?: string; } -export interface OrgSecretsRotateInput { +export interface PlatformSecretsRotateInput { clientMutationId?: string; - ownerId?: string; secretName?: string; secretValue?: string; namespaceId?: string; algo?: string; } -export interface OrgSecretsSetInput { +export interface _SecretsRotateInput { + clientMutationId?: string; + databaseId?: string; + secretName?: string; + secretValue?: string; + namespaceId?: string; + algo?: string; +} +export interface PlatformSecretsSetInput { clientMutationId?: string; - scopeOwnerId?: string; secretName?: string; secretValue?: string; secretNamespaceId?: string; algo?: string; + provider?: string; +} +export interface _SecretsSetInput { + clientMutationId?: string; + scopeDatabaseId?: string; + secretName?: string; + secretValue?: string; + secretNamespaceId?: string; + algo?: string; + provider?: string; } export interface ProvisionBucketInput { /** The logical bucket key (e.g., "public", "private") */ @@ -539,33 +943,41 @@ export interface ProvisionBucketInput { */ ownerId?: string; } -/** An input for mutations affecting `PlatformConfigDefinition` */ -export interface PlatformConfigDefinitionInput { - /** Unique identifier for this config definition */ +/** An input for mutations affecting `PlatformConfig` */ +export interface PlatformConfigInput { + /** Unique identifier for this config entry */ id?: string; - createdAt?: string; - updatedAt?: string; - /** Config key name (must match config table name for resolution) */ + /** FK to namespaces — logical grouping for config entries */ + namespaceId: string; + /** Key name identifying the config entry */ name: string; - /** Human-readable description of what this config key controls */ - description?: string; - /** Default value used when no config entry exists for a namespace */ - defaultValue?: string; - /** Whether this row was seeded as a built-in config definition */ - isBuiltIn?: boolean; - /** Key-value metadata for filtering and grouping config definitions */ + /** Integration provider slug (e.g. mailgun, postgres). Used by the UI to group config entries by integration. No FK. */ + provider?: string; + /** Plaintext config value */ + value?: string; + /** Key/value pairs for selecting/filtering config entries */ labels?: Record; - /** Freeform metadata annotations for config definitions */ + /** Freeform metadata for tooling and operational notes */ annotations?: Record; + /** Human-readable note about this config entry */ + description?: string; + createdAt?: string; + updatedAt?: string; + /** Optional expiration timestamp for time-limited config entries */ + expiresAt?: string; } -/** An input for mutations affecting `PlatformConfig` */ -export interface PlatformConfigInput { +/** An input for mutations affecting `Config` */ +export interface ConfigInput { /** Unique identifier for this config entry */ id?: string; /** FK to namespaces — logical grouping for config entries */ namespaceId: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; /** 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; /** Plaintext config value */ value?: string; /** Key/value pairs for selecting/filtering config entries */ @@ -579,17 +991,71 @@ export interface PlatformConfigInput { /** Optional expiration timestamp for time-limited config entries */ expiresAt?: string; } +/** An input for mutations affecting `PlatformInternalSecret` */ +export interface PlatformInternalSecretInput { + id?: string; + name?: string; + namespaceId?: string; + description?: string; + labels?: Record; + annotations?: Record; + createdAt?: string; + updatedAt?: string; + rotatedAt?: string; + retiredAt?: string; +} +/** An input for mutations affecting `PlatformSecret` */ +export interface PlatformSecretInput { + id?: string; + name?: string; + provider?: string; + namespaceId?: string; + description?: string; + labels?: Record; + annotations?: Record; + createdAt?: string; + updatedAt?: string; + rotatedAt?: string; + retiredAt?: string; +} +/** An input for mutations affecting `Secret` */ +export interface SecretInput { + databaseId?: string; + id?: string; + name?: string; + provider?: string; + namespaceId?: string; + description?: string; + labels?: Record; + annotations?: Record; + createdAt?: string; + updatedAt?: string; + rotatedAt?: string; + retiredAt?: string; +} // ============ Payload/Return Types (for custom operations) ============ +export interface PlatformInternalSecretsDelPayload { + clientMutationId?: string | null; +} +export type PlatformInternalSecretsDelPayloadSelect = { + clientMutationId?: boolean; +}; export interface PlatformSecretsDelPayload { clientMutationId?: string | null; } export type PlatformSecretsDelPayloadSelect = { clientMutationId?: boolean; }; -export interface OrgSecretsDelPayload { +export interface _SecretsDelPayload { + clientMutationId?: string | null; +} +export type _SecretsDelPayloadSelect = { + clientMutationId?: boolean; +}; +export interface PlatformInternalSecretsRemoveArrayPayload { clientMutationId?: string | null; } -export type OrgSecretsDelPayloadSelect = { +export type PlatformInternalSecretsRemoveArrayPayloadSelect = { clientMutationId?: boolean; }; export interface PlatformSecretsRemoveArrayPayload { @@ -598,12 +1064,28 @@ export interface PlatformSecretsRemoveArrayPayload { export type PlatformSecretsRemoveArrayPayloadSelect = { clientMutationId?: boolean; }; -export interface OrgSecretsRemoveArrayPayload { +export interface _SecretsRemoveArrayPayload { clientMutationId?: string | null; } -export type OrgSecretsRemoveArrayPayloadSelect = { +export type _SecretsRemoveArrayPayloadSelect = { clientMutationId?: boolean; }; +export interface PlatformInternalSecretsRotatePayload { + clientMutationId?: string | null; + result?: boolean | null; +} +export type PlatformInternalSecretsRotatePayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface PlatformInternalSecretsSetPayload { + clientMutationId?: string | null; + result?: boolean | null; +} +export type PlatformInternalSecretsSetPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; export interface PlatformSecretsRotatePayload { clientMutationId?: string | null; result?: boolean | null; @@ -612,27 +1094,27 @@ export type PlatformSecretsRotatePayloadSelect = { clientMutationId?: boolean; result?: boolean; }; -export interface PlatformSecretsSetPayload { +export interface _SecretsRotatePayload { clientMutationId?: string | null; result?: boolean | null; } -export type PlatformSecretsSetPayloadSelect = { +export type _SecretsRotatePayloadSelect = { clientMutationId?: boolean; result?: boolean; }; -export interface OrgSecretsRotatePayload { +export interface PlatformSecretsSetPayload { clientMutationId?: string | null; result?: boolean | null; } -export type OrgSecretsRotatePayloadSelect = { +export type PlatformSecretsSetPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; -export interface OrgSecretsSetPayload { +export interface _SecretsSetPayload { clientMutationId?: string | null; result?: boolean | null; } -export type OrgSecretsSetPayloadSelect = { +export type _SecretsSetPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; @@ -658,51 +1140,6 @@ export type ProvisionBucketPayloadSelect = { endpoint?: boolean; error?: boolean; }; -export interface CreatePlatformConfigDefinitionPayload { - clientMutationId?: string | null; - /** The `PlatformConfigDefinition` that was created by this mutation. */ - platformConfigDefinition?: PlatformConfigDefinition | null; - platformConfigDefinitionEdge?: PlatformConfigDefinitionEdge | null; -} -export type CreatePlatformConfigDefinitionPayloadSelect = { - clientMutationId?: boolean; - platformConfigDefinition?: { - select: PlatformConfigDefinitionSelect; - }; - platformConfigDefinitionEdge?: { - select: PlatformConfigDefinitionEdgeSelect; - }; -}; -export interface UpdatePlatformConfigDefinitionPayload { - clientMutationId?: string | null; - /** The `PlatformConfigDefinition` that was updated by this mutation. */ - platformConfigDefinition?: PlatformConfigDefinition | null; - platformConfigDefinitionEdge?: PlatformConfigDefinitionEdge | null; -} -export type UpdatePlatformConfigDefinitionPayloadSelect = { - clientMutationId?: boolean; - platformConfigDefinition?: { - select: PlatformConfigDefinitionSelect; - }; - platformConfigDefinitionEdge?: { - select: PlatformConfigDefinitionEdgeSelect; - }; -}; -export interface DeletePlatformConfigDefinitionPayload { - clientMutationId?: string | null; - /** The `PlatformConfigDefinition` that was deleted by this mutation. */ - platformConfigDefinition?: PlatformConfigDefinition | null; - platformConfigDefinitionEdge?: PlatformConfigDefinitionEdge | null; -} -export type DeletePlatformConfigDefinitionPayloadSelect = { - clientMutationId?: boolean; - platformConfigDefinition?: { - select: PlatformConfigDefinitionSelect; - }; - platformConfigDefinitionEdge?: { - select: PlatformConfigDefinitionEdgeSelect; - }; -}; export interface CreatePlatformConfigPayload { clientMutationId?: string | null; /** The `PlatformConfig` that was created by this mutation. */ @@ -748,16 +1185,82 @@ export type DeletePlatformConfigPayloadSelect = { select: PlatformConfigEdgeSelect; }; }; -/** A `PlatformConfigDefinition` edge in the connection. */ -export interface PlatformConfigDefinitionEdge { - cursor?: string | null; - /** The `PlatformConfigDefinition` at the end of the edge. */ - node?: PlatformConfigDefinition | null; +export interface CreateConfigPayload { + clientMutationId?: string | null; + /** The `Config` that was created by this mutation. */ + config?: Config | null; + configEdge?: ConfigEdge | null; } -export type PlatformConfigDefinitionEdgeSelect = { - cursor?: boolean; - node?: { - select: PlatformConfigDefinitionSelect; +export type CreateConfigPayloadSelect = { + clientMutationId?: boolean; + config?: { + select: ConfigSelect; + }; + configEdge?: { + select: ConfigEdgeSelect; + }; +}; +export interface UpdateConfigPayload { + clientMutationId?: string | null; + /** The `Config` that was updated by this mutation. */ + config?: Config | null; + configEdge?: ConfigEdge | null; +} +export type UpdateConfigPayloadSelect = { + clientMutationId?: boolean; + config?: { + select: ConfigSelect; + }; + configEdge?: { + select: ConfigEdgeSelect; + }; +}; +export interface DeleteConfigPayload { + clientMutationId?: string | null; + /** The `Config` that was deleted by this mutation. */ + config?: Config | null; + configEdge?: ConfigEdge | null; +} +export type DeleteConfigPayloadSelect = { + clientMutationId?: boolean; + config?: { + select: ConfigSelect; + }; + configEdge?: { + select: ConfigEdgeSelect; + }; +}; +export interface CreatePlatformInternalSecretPayload { + clientMutationId?: string | null; + /** The `PlatformInternalSecret` that was created by this mutation. */ + platformInternalSecret?: PlatformInternalSecret | null; +} +export type CreatePlatformInternalSecretPayloadSelect = { + clientMutationId?: boolean; + platformInternalSecret?: { + select: PlatformInternalSecretSelect; + }; +}; +export interface CreatePlatformSecretPayload { + clientMutationId?: string | null; + /** The `PlatformSecret` that was created by this mutation. */ + platformSecret?: PlatformSecret | null; +} +export type CreatePlatformSecretPayloadSelect = { + clientMutationId?: boolean; + platformSecret?: { + select: PlatformSecretSelect; + }; +}; +export interface CreateSecretPayload { + clientMutationId?: string | null; + /** The `Secret` that was created by this mutation. */ + secret?: Secret | null; +} +export type CreateSecretPayloadSelect = { + clientMutationId?: boolean; + secret?: { + select: SecretSelect; }; }; /** A `PlatformConfig` edge in the connection. */ @@ -772,3 +1275,15 @@ export type PlatformConfigEdgeSelect = { select: PlatformConfigSelect; }; }; +/** A `Config` edge in the connection. */ +export interface ConfigEdge { + cursor?: string | null; + /** The `Config` at the end of the edge. */ + node?: Config | null; +} +export type ConfigEdgeSelect = { + cursor?: boolean; + node?: { + select: ConfigSelect; + }; +}; diff --git a/sdk/constructive-sdk/src/config/orm/models/config.ts b/sdk/constructive-sdk/src/config/orm/models/config.ts new file mode 100644 index 0000000000..cef2950915 --- /dev/null +++ b/sdk/constructive-sdk/src/config/orm/models/config.ts @@ -0,0 +1,245 @@ +/** + * Config model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + Config, + ConfigWithRelations, + ConfigSelect, + ConfigFilter, + ConfigOrderBy, + CreateConfigInput, + UpdateConfigInput, + ConfigPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class ConfigModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + configs: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'Config', + 'configs', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'ConfigFilter', + 'ConfigOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'Config', + fieldName: 'configs', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + config: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'Config', + 'configs', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'ConfigFilter', + 'ConfigOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'Config', + fieldName: 'config', + document, + variables, + transform: (data: { + configs?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + config: data.configs?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + config: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'Config', + 'configs', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'ConfigFilter', + 'ConfigOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'Config', + fieldName: 'config', + document, + variables, + transform: (data: { + configs?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + config: data.configs?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createConfig: { + config: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'Config', + 'createConfig', + 'config', + args.select, + args.data, + 'CreateConfigInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'Config', + fieldName: 'createConfig', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + ConfigPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateConfig: { + config: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'Config', + 'updateConfig', + 'config', + args.select, + args.where.id, + args.data, + 'UpdateConfigInput', + 'id', + 'configPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'Config', + fieldName: 'updateConfig', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteConfig: { + config: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'Config', + 'deleteConfig', + 'config', + { + id: args.where.id, + }, + 'DeleteConfigInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'Config', + fieldName: 'deleteConfig', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/config/orm/models/index.ts b/sdk/constructive-sdk/src/config/orm/models/index.ts index c641a1f3e5..34d689b28d 100644 --- a/sdk/constructive-sdk/src/config/orm/models/index.ts +++ b/sdk/constructive-sdk/src/config/orm/models/index.ts @@ -3,5 +3,8 @@ * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ -export { PlatformConfigDefinitionModel } from './platformConfigDefinition'; export { PlatformConfigModel } from './platformConfig'; +export { ConfigModel } from './config'; +export { PlatformInternalSecretModel } from './platformInternalSecret'; +export { PlatformSecretModel } from './platformSecret'; +export { SecretModel } from './secret'; diff --git a/sdk/constructive-sdk/src/config/orm/models/platformConfigDefinition.ts b/sdk/constructive-sdk/src/config/orm/models/platformConfigDefinition.ts deleted file mode 100644 index c28ff1566e..0000000000 --- a/sdk/constructive-sdk/src/config/orm/models/platformConfigDefinition.ts +++ /dev/null @@ -1,247 +0,0 @@ -/** - * PlatformConfigDefinition model for ORM client - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { OrmClient } from '../client'; -import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, - buildCreateDocument, - buildUpdateByPkDocument, - buildDeleteByPkDocument, -} from '../query-builder'; -import type { - ConnectionResult, - FindManyArgs, - FindFirstArgs, - CreateArgs, - UpdateArgs, - DeleteArgs, - InferSelectResult, - StrictSelect, -} from '../select-types'; -import type { - PlatformConfigDefinition, - PlatformConfigDefinitionWithRelations, - PlatformConfigDefinitionSelect, - PlatformConfigDefinitionFilter, - PlatformConfigDefinitionOrderBy, - CreatePlatformConfigDefinitionInput, - UpdatePlatformConfigDefinitionInput, - PlatformConfigDefinitionPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class PlatformConfigDefinitionModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - platformConfigDefinitions: ConnectionResult< - InferSelectResult - >; - }> { - const { document, variables } = buildFindManyDocument( - 'PlatformConfigDefinition', - 'platformConfigDefinitions', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - first: args?.first, - last: args?.last, - after: args?.after, - before: args?.before, - offset: args?.offset, - }, - 'PlatformConfigDefinitionFilter', - 'PlatformConfigDefinitionOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'PlatformConfigDefinition', - fieldName: 'platformConfigDefinitions', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - platformConfigDefinition: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'PlatformConfigDefinition', - 'platformConfigDefinitions', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'PlatformConfigDefinitionFilter', - 'PlatformConfigDefinitionOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'PlatformConfigDefinition', - fieldName: 'platformConfigDefinition', - document, - variables, - transform: (data: { - platformConfigDefinitions?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - platformConfigDefinition: data.platformConfigDefinitions?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - platformConfigDefinition: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'PlatformConfigDefinition', - 'platformConfigDefinitions', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'PlatformConfigDefinitionFilter', - 'PlatformConfigDefinitionOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'PlatformConfigDefinition', - fieldName: 'platformConfigDefinition', - document, - variables, - transform: (data: { - platformConfigDefinitions?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - platformConfigDefinition: data.platformConfigDefinitions?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createPlatformConfigDefinition: { - platformConfigDefinition: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'PlatformConfigDefinition', - 'createPlatformConfigDefinition', - 'platformConfigDefinition', - args.select, - args.data, - 'CreatePlatformConfigDefinitionInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'PlatformConfigDefinition', - fieldName: 'createPlatformConfigDefinition', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - PlatformConfigDefinitionPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updatePlatformConfigDefinition: { - platformConfigDefinition: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'PlatformConfigDefinition', - 'updatePlatformConfigDefinition', - 'platformConfigDefinition', - args.select, - args.where.id, - args.data, - 'UpdatePlatformConfigDefinitionInput', - 'id', - 'platformConfigDefinitionPatch', - connectionFieldsMap, - undefined - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'PlatformConfigDefinition', - fieldName: 'updatePlatformConfigDefinition', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deletePlatformConfigDefinition: { - platformConfigDefinition: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'PlatformConfigDefinition', - 'deletePlatformConfigDefinition', - 'platformConfigDefinition', - { - id: args.where.id, - }, - 'DeletePlatformConfigDefinitionInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'PlatformConfigDefinition', - fieldName: 'deletePlatformConfigDefinition', - document, - variables, - }); - } -} diff --git a/sdk/constructive-sdk/src/config/orm/models/platformInternalSecret.ts b/sdk/constructive-sdk/src/config/orm/models/platformInternalSecret.ts new file mode 100644 index 0000000000..35e0c7b538 --- /dev/null +++ b/sdk/constructive-sdk/src/config/orm/models/platformInternalSecret.ts @@ -0,0 +1,176 @@ +/** + * PlatformInternalSecret model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + PlatformInternalSecret, + PlatformInternalSecretWithRelations, + PlatformInternalSecretSelect, + PlatformInternalSecretFilter, + PlatformInternalSecretOrderBy, + CreatePlatformInternalSecretInput, + UpdatePlatformInternalSecretInput, + PlatformInternalSecretPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class PlatformInternalSecretModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformInternalSecrets: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformInternalSecret', + 'platformInternalSecrets', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'PlatformInternalSecretFilter', + 'PlatformInternalSecretOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformInternalSecret', + fieldName: 'platformInternalSecrets', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformInternalSecret: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'PlatformInternalSecret', + 'platformInternalSecrets', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'PlatformInternalSecretFilter', + 'PlatformInternalSecretOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformInternalSecret', + fieldName: 'platformInternalSecret', + document, + variables, + transform: (data: { + platformInternalSecrets?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformInternalSecret: data.platformInternalSecrets?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformInternalSecret: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformInternalSecret', + 'platformInternalSecrets', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'PlatformInternalSecretFilter', + 'PlatformInternalSecretOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformInternalSecret', + fieldName: 'platformInternalSecret', + document, + variables, + transform: (data: { + platformInternalSecrets?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformInternalSecret: data.platformInternalSecrets?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createPlatformInternalSecret: { + platformInternalSecret: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'PlatformInternalSecret', + 'createPlatformInternalSecret', + 'platformInternalSecret', + args.select, + args.data, + 'CreatePlatformInternalSecretInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformInternalSecret', + fieldName: 'createPlatformInternalSecret', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/config/orm/models/platformSecret.ts b/sdk/constructive-sdk/src/config/orm/models/platformSecret.ts new file mode 100644 index 0000000000..03c0e23540 --- /dev/null +++ b/sdk/constructive-sdk/src/config/orm/models/platformSecret.ts @@ -0,0 +1,174 @@ +/** + * PlatformSecret model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + PlatformSecret, + PlatformSecretWithRelations, + PlatformSecretSelect, + PlatformSecretFilter, + PlatformSecretOrderBy, + CreatePlatformSecretInput, + UpdatePlatformSecretInput, + PlatformSecretPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class PlatformSecretModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformSecrets: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformSecret', + 'platformSecrets', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'PlatformSecretFilter', + 'PlatformSecretOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformSecret', + fieldName: 'platformSecrets', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformSecret: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'PlatformSecret', + 'platformSecrets', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'PlatformSecretFilter', + 'PlatformSecretOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformSecret', + fieldName: 'platformSecret', + document, + variables, + transform: (data: { + platformSecrets?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformSecret: data.platformSecrets?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformSecret: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformSecret', + 'platformSecrets', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'PlatformSecretFilter', + 'PlatformSecretOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformSecret', + fieldName: 'platformSecret', + document, + variables, + transform: (data: { + platformSecrets?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformSecret: data.platformSecrets?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createPlatformSecret: { + platformSecret: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'PlatformSecret', + 'createPlatformSecret', + 'platformSecret', + args.select, + args.data, + 'CreatePlatformSecretInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformSecret', + fieldName: 'createPlatformSecret', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/config/orm/models/secret.ts b/sdk/constructive-sdk/src/config/orm/models/secret.ts new file mode 100644 index 0000000000..37571240d8 --- /dev/null +++ b/sdk/constructive-sdk/src/config/orm/models/secret.ts @@ -0,0 +1,174 @@ +/** + * Secret model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + Secret, + SecretWithRelations, + SecretSelect, + SecretFilter, + SecretOrderBy, + CreateSecretInput, + UpdateSecretInput, + SecretPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class SecretModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + secrets: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'Secret', + 'secrets', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'SecretFilter', + 'SecretOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'Secret', + fieldName: 'secrets', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + secret: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'Secret', + 'secrets', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'SecretFilter', + 'SecretOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'Secret', + fieldName: 'secret', + document, + variables, + transform: (data: { + secrets?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + secret: data.secrets?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + secret: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'Secret', + 'secrets', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'SecretFilter', + 'SecretOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'Secret', + fieldName: 'secret', + document, + variables, + transform: (data: { + secrets?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + secret: data.secrets?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createSecret: { + secret: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'Secret', + 'createSecret', + 'secret', + args.select, + args.data, + 'CreateSecretInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'Secret', + fieldName: 'createSecret', + 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 b9ef205a98..9eff7cd543 100644 --- a/sdk/constructive-sdk/src/config/orm/mutation/index.ts +++ b/sdk/constructive-sdk/src/config/orm/mutation/index.ts @@ -7,58 +7,82 @@ import { OrmClient } from '../client'; import { QueryBuilder, buildCustomDocument } from '../query-builder'; import type { InferSelectResult, StrictSelect } from '../select-types'; import type { + PlatformInternalSecretsDelInput, PlatformSecretsDelInput, - OrgSecretsDelInput, + _SecretsDelInput, + PlatformInternalSecretsRemoveArrayInput, PlatformSecretsRemoveArrayInput, - OrgSecretsRemoveArrayInput, + _SecretsRemoveArrayInput, + PlatformInternalSecretsRotateInput, + PlatformInternalSecretsSetInput, PlatformSecretsRotateInput, + _SecretsRotateInput, PlatformSecretsSetInput, - OrgSecretsRotateInput, - OrgSecretsSetInput, + _SecretsSetInput, ProvisionBucketInput, + PlatformInternalSecretsDelPayload, PlatformSecretsDelPayload, - OrgSecretsDelPayload, + _SecretsDelPayload, + PlatformInternalSecretsRemoveArrayPayload, PlatformSecretsRemoveArrayPayload, - OrgSecretsRemoveArrayPayload, + _SecretsRemoveArrayPayload, + PlatformInternalSecretsRotatePayload, + PlatformInternalSecretsSetPayload, PlatformSecretsRotatePayload, + _SecretsRotatePayload, PlatformSecretsSetPayload, - OrgSecretsRotatePayload, - OrgSecretsSetPayload, + _SecretsSetPayload, ProvisionBucketPayload, + PlatformInternalSecretsDelPayloadSelect, PlatformSecretsDelPayloadSelect, - OrgSecretsDelPayloadSelect, + _SecretsDelPayloadSelect, + PlatformInternalSecretsRemoveArrayPayloadSelect, PlatformSecretsRemoveArrayPayloadSelect, - OrgSecretsRemoveArrayPayloadSelect, + _SecretsRemoveArrayPayloadSelect, + PlatformInternalSecretsRotatePayloadSelect, + PlatformInternalSecretsSetPayloadSelect, PlatformSecretsRotatePayloadSelect, + _SecretsRotatePayloadSelect, PlatformSecretsSetPayloadSelect, - OrgSecretsRotatePayloadSelect, - OrgSecretsSetPayloadSelect, + _SecretsSetPayloadSelect, ProvisionBucketPayloadSelect, } from '../input-types'; import { connectionFieldsMap } from '../input-types'; +export interface PlatformInternalSecretsDelVariables { + input: PlatformInternalSecretsDelInput; +} export interface PlatformSecretsDelVariables { input: PlatformSecretsDelInput; } -export interface OrgSecretsDelVariables { - input: OrgSecretsDelInput; +export interface _secretsDelVariables { + input: _SecretsDelInput; +} +export interface PlatformInternalSecretsRemoveArrayVariables { + input: PlatformInternalSecretsRemoveArrayInput; } export interface PlatformSecretsRemoveArrayVariables { input: PlatformSecretsRemoveArrayInput; } -export interface OrgSecretsRemoveArrayVariables { - input: OrgSecretsRemoveArrayInput; +export interface _secretsRemoveArrayVariables { + input: _SecretsRemoveArrayInput; +} +export interface PlatformInternalSecretsRotateVariables { + input: PlatformInternalSecretsRotateInput; +} +export interface PlatformInternalSecretsSetVariables { + input: PlatformInternalSecretsSetInput; } export interface PlatformSecretsRotateVariables { input: PlatformSecretsRotateInput; } +export interface _secretsRotateVariables { + input: _SecretsRotateInput; +} export interface PlatformSecretsSetVariables { input: PlatformSecretsSetInput; } -export interface OrgSecretsRotateVariables { - input: OrgSecretsRotateInput; -} -export interface OrgSecretsSetVariables { - input: OrgSecretsSetInput; +export interface _secretsSetVariables { + input: _SecretsSetInput; } /** * Variables for provisionBucket @@ -72,6 +96,35 @@ export interface ProvisionBucketVariables { } export function createMutationOperations(client: OrmClient) { return { + platformInternalSecretsDel: ( + args: PlatformInternalSecretsDelVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + platformInternalSecretsDel: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'PlatformInternalSecretsDel', + fieldName: 'platformInternalSecretsDel', + ...buildCustomDocument( + 'mutation', + 'PlatformInternalSecretsDel', + 'platformInternalSecretsDel', + options.select, + args, + [ + { + name: 'input', + type: 'PlatformInternalSecretsDelInput!', + }, + ], + connectionFieldsMap, + 'PlatformInternalSecretsDelPayload' + ), + }), platformSecretsDel: ( args: PlatformSecretsDelVariables, options: { @@ -101,33 +154,65 @@ export function createMutationOperations(client: OrmClient) { 'PlatformSecretsDelPayload' ), }), - orgSecretsDel: ( - args: OrgSecretsDelVariables, + _secretsDel: ( + args: _secretsDelVariables, options: { select: S; - } & StrictSelect + } & StrictSelect ) => new QueryBuilder<{ - orgSecretsDel: InferSelectResult | null; + _secretsDel: InferSelectResult<_SecretsDelPayload, S> | null; }>({ client, operation: 'mutation', - operationName: 'OrgSecretsDel', - fieldName: 'orgSecretsDel', + operationName: '_secretsDel', + fieldName: '_secretsDel', ...buildCustomDocument( 'mutation', - 'OrgSecretsDel', - 'orgSecretsDel', + '_secretsDel', + '_secretsDel', options.select, args, [ { name: 'input', - type: 'OrgSecretsDelInput!', + type: '_SecretsDelInput!', }, ], connectionFieldsMap, - 'OrgSecretsDelPayload' + '_SecretsDelPayload' + ), + }), + platformInternalSecretsRemoveArray: ( + args: PlatformInternalSecretsRemoveArrayVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + platformInternalSecretsRemoveArray: InferSelectResult< + PlatformInternalSecretsRemoveArrayPayload, + S + > | null; + }>({ + client, + operation: 'mutation', + operationName: 'PlatformInternalSecretsRemoveArray', + fieldName: 'platformInternalSecretsRemoveArray', + ...buildCustomDocument( + 'mutation', + 'PlatformInternalSecretsRemoveArray', + 'platformInternalSecretsRemoveArray', + options.select, + args, + [ + { + name: 'input', + type: 'PlatformInternalSecretsRemoveArrayInput!', + }, + ], + connectionFieldsMap, + 'PlatformInternalSecretsRemoveArrayPayload' ), }), platformSecretsRemoveArray: ( @@ -159,33 +244,94 @@ export function createMutationOperations(client: OrmClient) { 'PlatformSecretsRemoveArrayPayload' ), }), - orgSecretsRemoveArray: ( - args: OrgSecretsRemoveArrayVariables, + _secretsRemoveArray: ( + args: _secretsRemoveArrayVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + _secretsRemoveArray: InferSelectResult<_SecretsRemoveArrayPayload, S> | null; + }>({ + client, + operation: 'mutation', + operationName: '_secretsRemoveArray', + fieldName: '_secretsRemoveArray', + ...buildCustomDocument( + 'mutation', + '_secretsRemoveArray', + '_secretsRemoveArray', + options.select, + args, + [ + { + name: 'input', + type: '_SecretsRemoveArrayInput!', + }, + ], + connectionFieldsMap, + '_SecretsRemoveArrayPayload' + ), + }), + platformInternalSecretsRotate: ( + args: PlatformInternalSecretsRotateVariables, options: { select: S; - } & StrictSelect + } & StrictSelect ) => new QueryBuilder<{ - orgSecretsRemoveArray: InferSelectResult | null; + platformInternalSecretsRotate: InferSelectResult< + PlatformInternalSecretsRotatePayload, + S + > | null; }>({ client, operation: 'mutation', - operationName: 'OrgSecretsRemoveArray', - fieldName: 'orgSecretsRemoveArray', + operationName: 'PlatformInternalSecretsRotate', + fieldName: 'platformInternalSecretsRotate', ...buildCustomDocument( 'mutation', - 'OrgSecretsRemoveArray', - 'orgSecretsRemoveArray', + 'PlatformInternalSecretsRotate', + 'platformInternalSecretsRotate', options.select, args, [ { name: 'input', - type: 'OrgSecretsRemoveArrayInput!', + type: 'PlatformInternalSecretsRotateInput!', }, ], connectionFieldsMap, - 'OrgSecretsRemoveArrayPayload' + 'PlatformInternalSecretsRotatePayload' + ), + }), + platformInternalSecretsSet: ( + args: PlatformInternalSecretsSetVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + platformInternalSecretsSet: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'PlatformInternalSecretsSet', + fieldName: 'platformInternalSecretsSet', + ...buildCustomDocument( + 'mutation', + 'PlatformInternalSecretsSet', + 'platformInternalSecretsSet', + options.select, + args, + [ + { + name: 'input', + type: 'PlatformInternalSecretsSetInput!', + }, + ], + connectionFieldsMap, + 'PlatformInternalSecretsSetPayload' ), }), platformSecretsRotate: ( @@ -217,91 +363,91 @@ export function createMutationOperations(client: OrmClient) { 'PlatformSecretsRotatePayload' ), }), - platformSecretsSet: ( - args: PlatformSecretsSetVariables, + _secretsRotate: ( + args: _secretsRotateVariables, options: { select: S; - } & StrictSelect + } & StrictSelect ) => new QueryBuilder<{ - platformSecretsSet: InferSelectResult | null; + _secretsRotate: InferSelectResult<_SecretsRotatePayload, S> | null; }>({ client, operation: 'mutation', - operationName: 'PlatformSecretsSet', - fieldName: 'platformSecretsSet', + operationName: '_secretsRotate', + fieldName: '_secretsRotate', ...buildCustomDocument( 'mutation', - 'PlatformSecretsSet', - 'platformSecretsSet', + '_secretsRotate', + '_secretsRotate', options.select, args, [ { name: 'input', - type: 'PlatformSecretsSetInput!', + type: '_SecretsRotateInput!', }, ], connectionFieldsMap, - 'PlatformSecretsSetPayload' + '_SecretsRotatePayload' ), }), - orgSecretsRotate: ( - args: OrgSecretsRotateVariables, + platformSecretsSet: ( + args: PlatformSecretsSetVariables, options: { select: S; - } & StrictSelect + } & StrictSelect ) => new QueryBuilder<{ - orgSecretsRotate: InferSelectResult | null; + platformSecretsSet: InferSelectResult | null; }>({ client, operation: 'mutation', - operationName: 'OrgSecretsRotate', - fieldName: 'orgSecretsRotate', + operationName: 'PlatformSecretsSet', + fieldName: 'platformSecretsSet', ...buildCustomDocument( 'mutation', - 'OrgSecretsRotate', - 'orgSecretsRotate', + 'PlatformSecretsSet', + 'platformSecretsSet', options.select, args, [ { name: 'input', - type: 'OrgSecretsRotateInput!', + type: 'PlatformSecretsSetInput!', }, ], connectionFieldsMap, - 'OrgSecretsRotatePayload' + 'PlatformSecretsSetPayload' ), }), - orgSecretsSet: ( - args: OrgSecretsSetVariables, + _secretsSet: ( + args: _secretsSetVariables, options: { select: S; - } & StrictSelect + } & StrictSelect ) => new QueryBuilder<{ - orgSecretsSet: InferSelectResult | null; + _secretsSet: InferSelectResult<_SecretsSetPayload, S> | null; }>({ client, operation: 'mutation', - operationName: 'OrgSecretsSet', - fieldName: 'orgSecretsSet', + operationName: '_secretsSet', + fieldName: '_secretsSet', ...buildCustomDocument( 'mutation', - 'OrgSecretsSet', - 'orgSecretsSet', + '_secretsSet', + '_secretsSet', options.select, args, [ { name: 'input', - type: 'OrgSecretsSetInput!', + type: '_SecretsSetInput!', }, ], connectionFieldsMap, - 'OrgSecretsSetPayload' + '_SecretsSetPayload' ), }), provisionBucket: ( diff --git a/sdk/constructive-sdk/src/index.ts b/sdk/constructive-sdk/src/index.ts index eb54985786..f64a72cd39 100644 --- a/sdk/constructive-sdk/src/index.ts +++ b/sdk/constructive-sdk/src/index.ts @@ -12,6 +12,7 @@ export * as api from './api'; export * as auth from './auth'; export * as compute from './compute'; export * as config from './config'; +export * as infra from './infra'; export * as modules from './modules'; export * as objects from './objects'; export * as usage from './usage'; diff --git a/sdk/constructive-sdk/src/infra/README.md b/sdk/constructive-sdk/src/infra/README.md new file mode 100644 index 0000000000..e87478fa2a --- /dev/null +++ b/sdk/constructive-sdk/src/infra/README.md @@ -0,0 +1,41 @@ +# Generated GraphQL SDK + +

+ +

+ + + +## Overview + +- **Tables:** 10 +- **Custom queries:** 0 +- **Custom mutations:** 4 + +**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. + +--- + +Built by the [Constructive](https://constructive.io) team. + +## Disclaimer + +AS DESCRIBED IN THE LICENSES, THE SOFTWARE IS PROVIDED "AS IS", AT YOUR OWN RISK, AND WITHOUT WARRANTIES OF ANY KIND. + +No developer or entity involved in creating this software will be liable for any claims or damages whatsoever associated with your use, inability to use, or your interaction with other users of the code, including any direct, indirect, incidental, special, exemplary, punitive or consequential damages, or loss of profits, cryptocurrencies, tokens, or anything else of value. diff --git a/sdk/constructive-sdk/src/infra/index.ts b/sdk/constructive-sdk/src/infra/index.ts new file mode 100644 index 0000000000..654223e7a5 --- /dev/null +++ b/sdk/constructive-sdk/src/infra/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/infra/orm/README.md b/sdk/constructive-sdk/src/infra/orm/README.md new file mode 100644 index 0000000000..e8ecab6424 --- /dev/null +++ b/sdk/constructive-sdk/src/infra/orm/README.md @@ -0,0 +1,482 @@ +# ORM Client + +

+ +

+ + + +## Setup + +```typescript +import { createClient } from './orm'; + +const db = createClient({ + endpoint: 'https://api.example.com/graphql', + headers: { Authorization: 'Bearer ' }, +}); +``` + +## Models + +| Model | Operations | +|-------|------------| +| `infraGetAllRecord` | findMany, findOne, create, update, delete | +| `infraRef` | findMany, findOne, create, update, delete | +| `infraStore` | findMany, findOne, create, update, delete | +| `infraObject` | findMany, findOne, create, update, delete | +| `infraCommit` | findMany, findOne, create, update, delete | +| `dbPreset` | findMany, findOne, create, update, delete | +| `platformNamespace` | findMany, findOne, create, update, delete | +| `namespace` | findMany, findOne, create, update, delete | +| `platformNamespaceEvent` | findMany, findOne, create, update, delete | +| `namespaceEvent` | findMany, findOne, create, update, delete | + +## Table Operations + +### `db.infraGetAllRecord` + +CRUD operations for InfraGetAllRecord records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `path` | String | Yes | +| `data` | JSON | Yes | + +**Operations:** + +```typescript +// List all infraGetAllRecord records +const items = await db.infraGetAllRecord.findMany({ select: { path: true, data: true } }).execute(); + +// Get one by id +const item = await db.infraGetAllRecord.findOne({ id: '', select: { path: true, data: true } }).execute(); + +// Create +const created = await db.infraGetAllRecord.create({ data: { path: '', data: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.infraGetAllRecord.update({ where: { id: '' }, data: { path: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.infraGetAllRecord.delete({ where: { id: '' } }).execute(); +``` + +### `db.infraRef` + +CRUD operations for InfraRef records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `name` | String | Yes | +| `scopeId` | UUID | Yes | +| `storeId` | UUID | Yes | +| `commitId` | UUID | Yes | + +**Operations:** + +```typescript +// List all infraRef records +const items = await db.infraRef.findMany({ select: { id: true, name: true, scopeId: true, storeId: true, commitId: true } }).execute(); + +// Get one by id +const item = await db.infraRef.findOne({ id: '', select: { id: true, name: true, scopeId: true, storeId: true, commitId: true } }).execute(); + +// Create +const created = await db.infraRef.create({ data: { name: '', scopeId: '', storeId: '', commitId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.infraRef.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.infraRef.delete({ where: { id: '' } }).execute(); +``` + +### `db.infraStore` + +CRUD operations for InfraStore records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `name` | String | Yes | +| `scopeId` | UUID | Yes | +| `hash` | UUID | Yes | +| `createdAt` | Datetime | No | + +**Operations:** + +```typescript +// List all infraStore records +const items = await db.infraStore.findMany({ select: { id: true, name: true, scopeId: true, hash: true, createdAt: true } }).execute(); + +// Get one by id +const item = await db.infraStore.findOne({ id: '', select: { id: true, name: true, scopeId: true, hash: true, createdAt: true } }).execute(); + +// Create +const created = await db.infraStore.create({ data: { name: '', scopeId: '', hash: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.infraStore.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.infraStore.delete({ where: { id: '' } }).execute(); +``` + +### `db.infraObject` + +CRUD operations for InfraObject records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `scopeId` | UUID | Yes | +| `kids` | UUID | Yes | +| `ktree` | String | Yes | +| `data` | JSON | Yes | +| `createdAt` | Datetime | No | + +**Operations:** + +```typescript +// List all infraObject records +const items = await db.infraObject.findMany({ select: { id: true, scopeId: true, kids: true, ktree: true, data: true, createdAt: true } }).execute(); + +// Get one by id +const item = await db.infraObject.findOne({ id: '', select: { id: true, scopeId: true, kids: true, ktree: true, data: true, createdAt: true } }).execute(); + +// Create +const created = await db.infraObject.create({ data: { scopeId: '', kids: '', ktree: '', data: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.infraObject.update({ where: { id: '' }, data: { scopeId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.infraObject.delete({ where: { id: '' } }).execute(); +``` + +### `db.infraCommit` + +CRUD operations for InfraCommit records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `message` | String | Yes | +| `scopeId` | UUID | Yes | +| `storeId` | UUID | Yes | +| `parentIds` | UUID | Yes | +| `authorId` | UUID | Yes | +| `committerId` | UUID | Yes | +| `treeId` | UUID | Yes | +| `date` | Datetime | Yes | + +**Operations:** + +```typescript +// List all infraCommit records +const items = await db.infraCommit.findMany({ select: { id: true, message: true, scopeId: true, storeId: true, parentIds: true, authorId: true, committerId: true, treeId: true, date: true } }).execute(); + +// Get one by id +const item = await db.infraCommit.findOne({ id: '', select: { id: true, message: true, scopeId: true, storeId: true, parentIds: true, authorId: true, committerId: true, treeId: true, date: true } }).execute(); + +// Create +const created = await db.infraCommit.create({ data: { message: '', scopeId: '', storeId: '', parentIds: '', authorId: '', committerId: '', treeId: '', date: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.infraCommit.update({ where: { id: '' }, data: { message: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.infraCommit.delete({ where: { id: '' } }).execute(); +``` + +### `db.dbPreset` + +CRUD operations for DbPreset records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `storeId` | UUID | Yes | +| `slug` | String | Yes | +| `definition` | JSON | Yes | +| `commitId` | UUID | Yes | +| `modulesHash` | UUID | Yes | +| `label` | String | Yes | +| `description` | String | Yes | +| `active` | Boolean | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all dbPreset records +const items = await db.dbPreset.findMany({ select: { id: true, storeId: true, slug: true, definition: true, commitId: true, modulesHash: true, label: true, description: true, active: true, createdAt: true, updatedAt: true } }).execute(); + +// Get one by id +const item = await db.dbPreset.findOne({ id: '', select: { id: true, storeId: true, slug: true, definition: true, commitId: true, modulesHash: true, label: true, description: true, active: true, createdAt: true, updatedAt: true } }).execute(); + +// Create +const created = await db.dbPreset.create({ data: { storeId: '', slug: '', definition: '', commitId: '', modulesHash: '', label: '', description: '', active: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.dbPreset.update({ where: { id: '' }, data: { storeId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.dbPreset.delete({ where: { id: '' } }).execute(); +``` + +### `db.platformNamespace` + +CRUD operations for PlatformNamespace records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | +| `name` | String | Yes | +| `namespaceName` | String | Yes | +| `description` | String | Yes | +| `isActive` | Boolean | Yes | +| `status` | String | Yes | +| `lastError` | String | Yes | +| `labels` | JSON | Yes | +| `annotations` | JSON | Yes | +| `isManaged` | Boolean | Yes | + +**Operations:** + +```typescript +// List all platformNamespace records +const items = await db.platformNamespace.findMany({ select: { id: true, createdAt: true, updatedAt: true, name: true, namespaceName: true, description: true, isActive: true, status: true, lastError: true, labels: true, annotations: true, isManaged: true } }).execute(); + +// Get one by id +const item = await db.platformNamespace.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, name: true, namespaceName: true, description: true, isActive: true, status: true, lastError: true, labels: true, annotations: true, isManaged: true } }).execute(); + +// Create +const created = await db.platformNamespace.create({ data: { name: '', namespaceName: '', description: '', isActive: '', status: '', lastError: '', labels: '', annotations: '', isManaged: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformNamespace.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformNamespace.delete({ where: { id: '' } }).execute(); +``` + +### `db.namespace` + +CRUD operations for Namespace records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | +| `name` | String | Yes | +| `namespaceName` | String | Yes | +| `description` | String | Yes | +| `isActive` | Boolean | Yes | +| `status` | String | Yes | +| `lastError` | String | Yes | +| `labels` | JSON | Yes | +| `annotations` | JSON | Yes | +| `databaseId` | UUID | Yes | +| `isManaged` | Boolean | Yes | + +**Operations:** + +```typescript +// List all namespace records +const items = await db.namespace.findMany({ select: { id: true, createdAt: true, updatedAt: true, name: true, namespaceName: true, description: true, isActive: true, status: true, lastError: true, labels: true, annotations: true, databaseId: true, isManaged: true } }).execute(); + +// Get one by id +const item = await db.namespace.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, name: true, namespaceName: true, description: true, isActive: true, status: true, lastError: true, labels: true, annotations: true, databaseId: true, isManaged: true } }).execute(); + +// Create +const created = await db.namespace.create({ data: { name: '', namespaceName: '', description: '', isActive: '', status: '', lastError: '', labels: '', annotations: '', databaseId: '', isManaged: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.namespace.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.namespace.delete({ where: { id: '' } }).execute(); +``` + +### `db.platformNamespaceEvent` + +CRUD operations for PlatformNamespaceEvent records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `createdAt` | Datetime | No | +| `id` | UUID | No | +| `namespaceId` | UUID | Yes | +| `eventType` | String | Yes | +| `actorId` | UUID | Yes | +| `message` | String | Yes | +| `metadata` | JSON | Yes | +| `cpuMillicores` | Int | Yes | +| `memoryBytes` | BigInt | Yes | +| `storageBytes` | BigInt | Yes | +| `networkIngressBytes` | BigInt | Yes | +| `networkEgressBytes` | BigInt | Yes | +| `podCount` | Int | Yes | +| `metrics` | JSON | Yes | + +**Operations:** + +```typescript +// List all platformNamespaceEvent records +const items = await db.platformNamespaceEvent.findMany({ select: { createdAt: true, id: true, namespaceId: true, eventType: true, actorId: true, message: true, metadata: true, cpuMillicores: true, memoryBytes: true, storageBytes: true, networkIngressBytes: true, networkEgressBytes: true, podCount: true, metrics: true } }).execute(); + +// Get one by id +const item = await db.platformNamespaceEvent.findOne({ id: '', select: { createdAt: true, id: true, namespaceId: true, eventType: true, actorId: true, message: true, metadata: true, cpuMillicores: true, memoryBytes: true, storageBytes: true, networkIngressBytes: true, networkEgressBytes: true, podCount: true, metrics: true } }).execute(); + +// Create +const created = await db.platformNamespaceEvent.create({ data: { namespaceId: '', eventType: '', actorId: '', message: '', metadata: '', cpuMillicores: '', memoryBytes: '', storageBytes: '', networkIngressBytes: '', networkEgressBytes: '', podCount: '', metrics: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformNamespaceEvent.update({ where: { id: '' }, data: { namespaceId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformNamespaceEvent.delete({ where: { id: '' } }).execute(); +``` + +### `db.namespaceEvent` + +CRUD operations for NamespaceEvent records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `createdAt` | Datetime | No | +| `id` | UUID | No | +| `namespaceId` | UUID | Yes | +| `eventType` | String | Yes | +| `actorId` | UUID | Yes | +| `message` | String | Yes | +| `metadata` | JSON | Yes | +| `cpuMillicores` | Int | Yes | +| `memoryBytes` | BigInt | Yes | +| `storageBytes` | BigInt | Yes | +| `networkIngressBytes` | BigInt | Yes | +| `networkEgressBytes` | BigInt | Yes | +| `podCount` | Int | Yes | +| `metrics` | JSON | Yes | +| `databaseId` | UUID | Yes | + +**Operations:** + +```typescript +// List all namespaceEvent records +const items = await db.namespaceEvent.findMany({ select: { createdAt: true, id: true, namespaceId: true, eventType: true, actorId: true, message: true, metadata: true, cpuMillicores: true, memoryBytes: true, storageBytes: true, networkIngressBytes: true, networkEgressBytes: true, podCount: true, metrics: true, databaseId: true } }).execute(); + +// Get one by id +const item = await db.namespaceEvent.findOne({ id: '', select: { createdAt: true, id: true, namespaceId: true, eventType: true, actorId: true, message: true, metadata: true, cpuMillicores: true, memoryBytes: true, storageBytes: true, networkIngressBytes: true, networkEgressBytes: true, podCount: true, metrics: true, databaseId: true } }).execute(); + +// Create +const created = await db.namespaceEvent.create({ data: { namespaceId: '', eventType: '', actorId: '', message: '', metadata: '', cpuMillicores: '', memoryBytes: '', storageBytes: '', networkIngressBytes: '', networkEgressBytes: '', podCount: '', metrics: '', databaseId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.namespaceEvent.update({ where: { id: '' }, data: { namespaceId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.namespaceEvent.delete({ where: { id: '' } }).execute(); +``` + +## Custom Operations + +### `db.mutation.infraInitEmptyRepo` + +infraInitEmptyRepo + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | InfraInitEmptyRepoInput (required) | + +```typescript +const result = await db.mutation.infraInitEmptyRepo({ input: { sId: '', storeId: '' } }).execute(); +``` + +### `db.mutation.infraSetDataAtPath` + +infraSetDataAtPath + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | InfraSetDataAtPathInput (required) | + +```typescript +const result = await db.mutation.infraSetDataAtPath({ input: { sId: '', root: '', path: '', data: '' } }).execute(); +``` + +### `db.mutation.infraInsertNodeAtPath` + +infraInsertNodeAtPath + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | InfraInsertNodeAtPathInput (required) | + +```typescript +const result = await db.mutation.infraInsertNodeAtPath({ input: '' }).execute(); +``` + +### `db.mutation.provisionBucket` + +Provision an S3 bucket for a logical bucket in the database. +Reads the bucket config via RLS, then creates and configures +the S3 bucket with the appropriate privacy policies, CORS rules, +and lifecycle settings. + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | ProvisionBucketInput (required) | + +```typescript +const result = await db.mutation.provisionBucket({ input: { bucketKey: '', ownerId: '' } }).execute(); +``` + +--- + +Built by the [Constructive](https://constructive.io) team. + +## Disclaimer + +AS DESCRIBED IN THE LICENSES, THE SOFTWARE IS PROVIDED "AS IS", AT YOUR OWN RISK, AND WITHOUT WARRANTIES OF ANY KIND. + +No developer or entity involved in creating this software will be liable for any claims or damages whatsoever associated with your use, inability to use, or your interaction with other users of the code, including any direct, indirect, incidental, special, exemplary, punitive or consequential damages, or loss of profits, cryptocurrencies, tokens, or anything else of value. diff --git a/sdk/constructive-sdk/src/infra/orm/client.ts b/sdk/constructive-sdk/src/infra/orm/client.ts new file mode 100644 index 0000000000..16e683c712 --- /dev/null +++ b/sdk/constructive-sdk/src/infra/orm/client.ts @@ -0,0 +1,244 @@ +/** + * 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; +} + +/** + * 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((e) => e.message).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/infra/orm/index.ts b/sdk/constructive-sdk/src/infra/orm/index.ts new file mode 100644 index 0000000000..95de2771fa --- /dev/null +++ b/sdk/constructive-sdk/src/infra/orm/index.ts @@ -0,0 +1,63 @@ +/** + * 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 { InfraGetAllRecordModel } from './models/infraGetAllRecord'; +import { InfraRefModel } from './models/infraRef'; +import { InfraStoreModel } from './models/infraStore'; +import { InfraObjectModel } from './models/infraObject'; +import { InfraCommitModel } from './models/infraCommit'; +import { DbPresetModel } from './models/dbPreset'; +import { PlatformNamespaceModel } from './models/platformNamespace'; +import { NamespaceModel } from './models/namespace'; +import { PlatformNamespaceEventModel } from './models/platformNamespaceEvent'; +import { NamespaceEventModel } from './models/namespaceEvent'; +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 { + infraGetAllRecord: new InfraGetAllRecordModel(client), + infraRef: new InfraRefModel(client), + infraStore: new InfraStoreModel(client), + infraObject: new InfraObjectModel(client), + infraCommit: new InfraCommitModel(client), + dbPreset: new DbPresetModel(client), + platformNamespace: new PlatformNamespaceModel(client), + namespace: new NamespaceModel(client), + platformNamespaceEvent: new PlatformNamespaceEventModel(client), + namespaceEvent: new NamespaceEventModel(client), + mutation: createMutationOperations(client), + }; +} diff --git a/sdk/constructive-sdk/src/infra/orm/input-types.ts b/sdk/constructive-sdk/src/infra/orm/input-types.ts new file mode 100644 index 0000000000..1cad40c72a --- /dev/null +++ b/sdk/constructive-sdk/src/infra/orm/input-types.ts @@ -0,0 +1,2170 @@ +/** + * 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; +} +// ============ Entity Types ============ +export interface InfraGetAllRecord { + path?: string[] | null; + data?: Record | null; +} +/** Branch heads — mutable pointers into the commit chain */ +export interface InfraRef { + /** Unique ref identifier */ + id: string; + /** Ref name (e.g. HEAD, main) */ + name?: string | null; + /** Opaque store partition key for the global tier */ + scopeId?: string | null; + /** Store this ref belongs to */ + storeId?: string | null; + /** Commit this ref points to */ + commitId?: string | null; +} +/** Named stores — one per version-controlled tree (e.g. one graph, one definition set) */ +export interface InfraStore { + /** Unique store identifier */ + id: string; + /** Human-readable store name */ + name?: string | null; + /** Opaque store partition key for the global tier */ + scopeId?: string | null; + /** Current root object hash of this store */ + hash?: string | null; + /** Timestamp of store creation */ + createdAt?: string | null; +} +/** Content-addressed Merkle tree objects keyed by UUID v5 hash of data + children */ +export interface InfraObject { + /** Content-addressed UUID v5 — deterministic hash of (data, kids, ktree) */ + id: string; + /** Opaque store partition key for the global tier */ + scopeId?: string | null; + /** Ordered array of child object IDs */ + kids?: string[] | null; + /** Ordered array of child path names (parallel to kids) */ + ktree?: string[] | null; + /** Payload data for this object node */ + data?: Record | null; + /** Timestamp of object creation */ + createdAt?: string | null; +} +/** Commit history — each commit snapshots a tree root for a store */ +export interface InfraCommit { + /** Unique commit identifier */ + id: string; + /** Optional commit message */ + message?: string | null; + /** Opaque store partition key for the global tier */ + scopeId?: string | null; + /** Store this commit belongs to */ + storeId?: string | null; + /** Parent commit IDs (supports merge commits) */ + parentIds?: string[] | null; + /** User who authored the changes */ + authorId?: string | null; + /** User who committed (may differ from author) */ + committerId?: string | null; + /** Root object ID of the tree snapshot at this commit */ + treeId?: string | null; + /** Commit timestamp */ + date?: string | null; +} +/** Database provisioning preset catalog — merkle-versioned head over the infra store */ +export interface DbPreset { + /** Unique preset identifier */ + id: string; + /** Infra Merkle store holding this preset's history (stamped by the versioned trigger) */ + storeId?: string | null; + /** Preset slug (unique per scope); the preset's path in the infra tree is [db_preset, slug] */ + slug?: string | null; + /** Preset definition (modules + options) — the readily-cached head; history lives in the infra store */ + definition?: Record | null; + /** Infra store commit for the current definition (stamped by the versioned trigger on every write) */ + commitId?: string | null; + /** 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 | null; + /** Human-readable preset name */ + label?: string | null; + /** Human-readable description of the preset */ + description?: string | null; + /** Whether this preset is selectable for new databases */ + active?: boolean | null; + /** Timestamp of preset creation */ + createdAt?: string | null; + /** Timestamp of last modification */ + updatedAt?: string | null; +} +/** Logical namespace containers for grouping secrets, config, functions, and other resources */ +export interface PlatformNamespace { + id: string; + createdAt?: string | null; + updatedAt?: string | null; + /** Human-readable namespace name (e.g. default, production, oauth) */ + name?: string | null; + /** Globally unique computed namespace identifier via inflection.underscore */ + namespaceName?: string | null; + /** Optional human-readable description of this namespace */ + description?: string | null; + /** Whether this namespace is active (soft-disable for filtering) */ + isActive?: boolean | null; + /** Namespace provisioning lifecycle status: pending, provisioning, active, failed */ + status?: string | null; + /** Most recent provisioning or reconcile error message */ + lastError?: string | null; + /** Key/value pairs for selecting and filtering namespaces */ + labels?: Record | null; + /** Freeform metadata for tooling and operational notes */ + annotations?: Record | null; + /** true = provisioned by the platform via jobs, false = unmanaged/platform-native (bootstrapped externally) */ + isManaged?: boolean | null; +} +/** Logical namespace containers for grouping secrets, config, functions, and other resources */ +export interface Namespace { + id: string; + createdAt?: string | null; + updatedAt?: string | null; + /** Human-readable namespace name (e.g. default, production, oauth) */ + name?: string | null; + /** Globally unique computed namespace identifier via inflection.underscore */ + namespaceName?: string | null; + /** Optional human-readable description of this namespace */ + description?: string | null; + /** Whether this namespace is active (soft-disable for filtering) */ + isActive?: boolean | null; + /** Namespace provisioning lifecycle status: pending, provisioning, active, failed */ + status?: string | null; + /** Most recent provisioning or reconcile error message */ + lastError?: string | null; + /** Key/value pairs for selecting and filtering namespaces */ + labels?: Record | null; + /** Freeform metadata for tooling and operational notes */ + annotations?: Record | null; + /** Database that owns this resource (database-scoped isolation) */ + databaseId?: string | null; + /** true = provisioned by the platform via jobs, false = unmanaged/platform-native (bootstrapped externally) */ + isManaged?: boolean | null; +} +/** Namespace lifecycle events — audit log of creation, activation, deactivation, label changes */ +export interface PlatformNamespaceEvent { + /** Event timestamp (partition key) */ + createdAt?: string | null; + /** Unique event identifier */ + id: string; + /** Namespace this event belongs to */ + namespaceId?: string | null; + /** Event type: created, activated, deactivated, labels_updated, annotations_updated, renamed */ + eventType?: string | null; + /** User who triggered this event (NULL for system/automated) */ + actorId?: string | null; + /** Human-readable description of the event */ + message?: string | null; + /** Structured context (old/new values, labels diff, etc.) */ + metadata?: Record | null; + /** CPU usage in millicores at time of event */ + cpuMillicores?: number | null; + /** Memory usage in bytes at time of event */ + memoryBytes?: string | null; + /** Storage usage in bytes at time of event */ + storageBytes?: string | null; + /** Network ingress in bytes during event window */ + networkIngressBytes?: string | null; + /** Network egress in bytes during event window */ + networkEgressBytes?: string | null; + /** Number of active pods in the namespace at time of event */ + podCount?: number | null; + /** Additional resource metrics (gpu, replicas, quotas, etc.) */ + metrics?: Record | null; +} +/** Namespace lifecycle events — audit log of creation, activation, deactivation, label changes */ +export interface NamespaceEvent { + /** Event timestamp (partition key) */ + createdAt?: string | null; + /** Unique event identifier */ + id: string; + /** Namespace this event belongs to */ + namespaceId?: string | null; + /** Event type: created, activated, deactivated, labels_updated, annotations_updated, renamed */ + eventType?: string | null; + /** User who triggered this event (NULL for system/automated) */ + actorId?: string | null; + /** Human-readable description of the event */ + message?: string | null; + /** Structured context (old/new values, labels diff, etc.) */ + metadata?: Record | null; + /** CPU usage in millicores at time of event */ + cpuMillicores?: number | null; + /** Memory usage in bytes at time of event */ + memoryBytes?: string | null; + /** Storage usage in bytes at time of event */ + storageBytes?: string | null; + /** Network ingress in bytes during event window */ + networkIngressBytes?: string | null; + /** Network egress in bytes during event window */ + networkEgressBytes?: string | null; + /** Number of active pods in the namespace at time of event */ + podCount?: number | null; + /** Additional resource metrics (gpu, replicas, quotas, etc.) */ + metrics?: Record | null; + /** Database that owns this resource (database-scoped isolation) */ + databaseId?: 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 InfraGetAllRecordRelations {} +export interface InfraRefRelations {} +export interface InfraStoreRelations {} +export interface InfraObjectRelations {} +export interface InfraCommitRelations {} +export interface DbPresetRelations {} +export interface PlatformNamespaceRelations {} +export interface NamespaceRelations {} +export interface PlatformNamespaceEventRelations {} +export interface NamespaceEventRelations {} +// ============ Entity Types With Relations ============ +export type InfraGetAllRecordWithRelations = InfraGetAllRecord & InfraGetAllRecordRelations; +export type InfraRefWithRelations = InfraRef & InfraRefRelations; +export type InfraStoreWithRelations = InfraStore & InfraStoreRelations; +export type InfraObjectWithRelations = InfraObject & InfraObjectRelations; +export type InfraCommitWithRelations = InfraCommit & InfraCommitRelations; +export type DbPresetWithRelations = DbPreset & DbPresetRelations; +export type PlatformNamespaceWithRelations = PlatformNamespace & PlatformNamespaceRelations; +export type NamespaceWithRelations = Namespace & NamespaceRelations; +export type PlatformNamespaceEventWithRelations = PlatformNamespaceEvent & + PlatformNamespaceEventRelations; +export type NamespaceEventWithRelations = NamespaceEvent & NamespaceEventRelations; +// ============ Entity Select Types ============ +export type InfraGetAllRecordSelect = { + path?: boolean; + data?: boolean; +}; +export type InfraRefSelect = { + id?: boolean; + name?: boolean; + scopeId?: boolean; + storeId?: boolean; + commitId?: boolean; +}; +export type InfraStoreSelect = { + id?: boolean; + name?: boolean; + scopeId?: boolean; + hash?: boolean; + createdAt?: boolean; +}; +export type InfraObjectSelect = { + id?: boolean; + scopeId?: boolean; + kids?: boolean; + ktree?: boolean; + data?: boolean; + createdAt?: boolean; +}; +export type InfraCommitSelect = { + id?: boolean; + message?: boolean; + scopeId?: boolean; + storeId?: boolean; + parentIds?: boolean; + authorId?: boolean; + committerId?: boolean; + treeId?: boolean; + date?: boolean; +}; +export type DbPresetSelect = { + id?: boolean; + storeId?: boolean; + slug?: boolean; + definition?: boolean; + commitId?: boolean; + modulesHash?: boolean; + label?: boolean; + description?: boolean; + active?: boolean; + createdAt?: boolean; + updatedAt?: boolean; +}; +export type PlatformNamespaceSelect = { + id?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + name?: boolean; + namespaceName?: boolean; + description?: boolean; + isActive?: boolean; + status?: boolean; + lastError?: boolean; + labels?: boolean; + annotations?: boolean; + isManaged?: boolean; +}; +export type NamespaceSelect = { + id?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + name?: boolean; + namespaceName?: boolean; + description?: boolean; + isActive?: boolean; + status?: boolean; + lastError?: boolean; + labels?: boolean; + annotations?: boolean; + databaseId?: boolean; + isManaged?: boolean; +}; +export type PlatformNamespaceEventSelect = { + createdAt?: boolean; + id?: boolean; + namespaceId?: boolean; + eventType?: boolean; + actorId?: boolean; + message?: boolean; + metadata?: boolean; + cpuMillicores?: boolean; + memoryBytes?: boolean; + storageBytes?: boolean; + networkIngressBytes?: boolean; + networkEgressBytes?: boolean; + podCount?: boolean; + metrics?: boolean; +}; +export type NamespaceEventSelect = { + createdAt?: boolean; + id?: boolean; + namespaceId?: boolean; + eventType?: boolean; + actorId?: boolean; + message?: boolean; + metadata?: boolean; + cpuMillicores?: boolean; + memoryBytes?: boolean; + storageBytes?: boolean; + networkIngressBytes?: boolean; + networkEgressBytes?: boolean; + podCount?: boolean; + metrics?: boolean; + databaseId?: boolean; +}; +// ============ Table Filter Types ============ +export interface InfraGetAllRecordFilter { + path?: StringListFilter; + data?: JSONFilter; + and?: InfraGetAllRecordFilter[]; + or?: InfraGetAllRecordFilter[]; + not?: InfraGetAllRecordFilter; +} +export interface InfraRefFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `scopeId` field. */ + scopeId?: UUIDFilter; + /** Filter by the object’s `storeId` field. */ + storeId?: UUIDFilter; + /** Filter by the object’s `commitId` field. */ + commitId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: InfraRefFilter[]; + /** Checks for any expressions in this list. */ + or?: InfraRefFilter[]; + /** Negates the expression. */ + not?: InfraRefFilter; +} +export interface InfraStoreFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `scopeId` field. */ + scopeId?: UUIDFilter; + /** Filter by the object’s `hash` field. */ + hash?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Checks for all expressions in this list. */ + and?: InfraStoreFilter[]; + /** Checks for any expressions in this list. */ + or?: InfraStoreFilter[]; + /** Negates the expression. */ + not?: InfraStoreFilter; +} +export interface InfraObjectFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `scopeId` field. */ + scopeId?: UUIDFilter; + /** Filter by the object’s `kids` field. */ + kids?: UUIDListFilter; + /** Filter by the object’s `ktree` field. */ + ktree?: StringListFilter; + /** Filter by the object’s `data` field. */ + data?: JSONFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Checks for all expressions in this list. */ + and?: InfraObjectFilter[]; + /** Checks for any expressions in this list. */ + or?: InfraObjectFilter[]; + /** Negates the expression. */ + not?: InfraObjectFilter; +} +export interface InfraCommitFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `message` field. */ + message?: StringFilter; + /** Filter by the object’s `scopeId` field. */ + scopeId?: UUIDFilter; + /** Filter by the object’s `storeId` field. */ + storeId?: UUIDFilter; + /** Filter by the object’s `parentIds` field. */ + parentIds?: UUIDListFilter; + /** Filter by the object’s `authorId` field. */ + authorId?: UUIDFilter; + /** Filter by the object’s `committerId` field. */ + committerId?: UUIDFilter; + /** Filter by the object’s `treeId` field. */ + treeId?: UUIDFilter; + /** Filter by the object’s `date` field. */ + date?: DatetimeFilter; + /** Checks for all expressions in this list. */ + and?: InfraCommitFilter[]; + /** Checks for any expressions in this list. */ + or?: InfraCommitFilter[]; + /** Negates the expression. */ + not?: InfraCommitFilter; +} +export interface DbPresetFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `storeId` field. */ + storeId?: UUIDFilter; + /** Filter by the object’s `slug` field. */ + slug?: StringFilter; + /** Filter by the object’s `definition` field. */ + definition?: JSONFilter; + /** Filter by the object’s `commitId` field. */ + commitId?: UUIDFilter; + /** Filter by the object’s `modulesHash` field. */ + modulesHash?: UUIDFilter; + /** Filter by the object’s `label` field. */ + label?: StringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `active` field. */ + active?: BooleanFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Checks for all expressions in this list. */ + and?: DbPresetFilter[]; + /** Checks for any expressions in this list. */ + or?: DbPresetFilter[]; + /** Negates the expression. */ + not?: DbPresetFilter; +} +export interface PlatformNamespaceFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `namespaceName` field. */ + namespaceName?: StringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `isActive` field. */ + isActive?: BooleanFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `lastError` field. */ + lastError?: StringFilter; + /** Filter by the object’s `labels` field. */ + labels?: JSONFilter; + /** Filter by the object’s `annotations` field. */ + annotations?: JSONFilter; + /** Filter by the object’s `isManaged` field. */ + isManaged?: BooleanFilter; + /** Checks for all expressions in this list. */ + and?: PlatformNamespaceFilter[]; + /** Checks for any expressions in this list. */ + or?: PlatformNamespaceFilter[]; + /** Negates the expression. */ + not?: PlatformNamespaceFilter; +} +export interface NamespaceFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `namespaceName` field. */ + namespaceName?: StringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `isActive` field. */ + isActive?: BooleanFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `lastError` field. */ + lastError?: StringFilter; + /** Filter by the object’s `labels` field. */ + labels?: JSONFilter; + /** Filter by the object’s `annotations` field. */ + annotations?: JSONFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `isManaged` field. */ + isManaged?: BooleanFilter; + /** Checks for all expressions in this list. */ + and?: NamespaceFilter[]; + /** Checks for any expressions in this list. */ + or?: NamespaceFilter[]; + /** Negates the expression. */ + not?: NamespaceFilter; +} +export interface PlatformNamespaceEventFilter { + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; + /** Filter by the object’s `eventType` field. */ + eventType?: StringFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Filter by the object’s `message` field. */ + message?: StringFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Filter by the object’s `cpuMillicores` field. */ + cpuMillicores?: IntFilter; + /** Filter by the object’s `memoryBytes` field. */ + memoryBytes?: BigIntFilter; + /** Filter by the object’s `storageBytes` field. */ + storageBytes?: BigIntFilter; + /** Filter by the object’s `networkIngressBytes` field. */ + networkIngressBytes?: BigIntFilter; + /** Filter by the object’s `networkEgressBytes` field. */ + networkEgressBytes?: BigIntFilter; + /** Filter by the object’s `podCount` field. */ + podCount?: IntFilter; + /** Filter by the object’s `metrics` field. */ + metrics?: JSONFilter; + /** Checks for all expressions in this list. */ + and?: PlatformNamespaceEventFilter[]; + /** Checks for any expressions in this list. */ + or?: PlatformNamespaceEventFilter[]; + /** Negates the expression. */ + not?: PlatformNamespaceEventFilter; +} +export interface NamespaceEventFilter { + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; + /** Filter by the object’s `eventType` field. */ + eventType?: StringFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Filter by the object’s `message` field. */ + message?: StringFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Filter by the object’s `cpuMillicores` field. */ + cpuMillicores?: IntFilter; + /** Filter by the object’s `memoryBytes` field. */ + memoryBytes?: BigIntFilter; + /** Filter by the object’s `storageBytes` field. */ + storageBytes?: BigIntFilter; + /** Filter by the object’s `networkIngressBytes` field. */ + networkIngressBytes?: BigIntFilter; + /** Filter by the object’s `networkEgressBytes` field. */ + networkEgressBytes?: BigIntFilter; + /** Filter by the object’s `podCount` field. */ + podCount?: IntFilter; + /** Filter by the object’s `metrics` field. */ + metrics?: JSONFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: NamespaceEventFilter[]; + /** Checks for any expressions in this list. */ + or?: NamespaceEventFilter[]; + /** Negates the expression. */ + not?: NamespaceEventFilter; +} +// ============ OrderBy Types ============ +export type InfraGetAllRecordsOrderBy = + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NATURAL' + | 'PATH_ASC' + | 'PATH_DESC' + | 'DATA_ASC' + | 'DATA_DESC'; +export type InfraRefOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'SCOPE_ID_ASC' + | 'SCOPE_ID_DESC' + | 'STORE_ID_ASC' + | 'STORE_ID_DESC' + | 'COMMIT_ID_ASC' + | 'COMMIT_ID_DESC'; +export type InfraStoreOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'SCOPE_ID_ASC' + | 'SCOPE_ID_DESC' + | 'HASH_ASC' + | 'HASH_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC'; +export type InfraObjectOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'SCOPE_ID_ASC' + | 'SCOPE_ID_DESC' + | 'KIDS_ASC' + | 'KIDS_DESC' + | 'KTREE_ASC' + | 'KTREE_DESC' + | 'DATA_ASC' + | 'DATA_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC'; +export type InfraCommitOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'MESSAGE_ASC' + | 'MESSAGE_DESC' + | 'SCOPE_ID_ASC' + | 'SCOPE_ID_DESC' + | 'STORE_ID_ASC' + | 'STORE_ID_DESC' + | 'PARENT_IDS_ASC' + | 'PARENT_IDS_DESC' + | 'AUTHOR_ID_ASC' + | 'AUTHOR_ID_DESC' + | 'COMMITTER_ID_ASC' + | 'COMMITTER_ID_DESC' + | 'TREE_ID_ASC' + | 'TREE_ID_DESC' + | 'DATE_ASC' + | 'DATE_DESC'; +export type DbPresetOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'STORE_ID_ASC' + | 'STORE_ID_DESC' + | 'SLUG_ASC' + | 'SLUG_DESC' + | 'DEFINITION_ASC' + | 'DEFINITION_DESC' + | 'COMMIT_ID_ASC' + | 'COMMIT_ID_DESC' + | 'MODULES_HASH_ASC' + | 'MODULES_HASH_DESC' + | 'LABEL_ASC' + | 'LABEL_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'ACTIVE_ASC' + | 'ACTIVE_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +export type PlatformNamespaceOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'NAMESPACE_NAME_ASC' + | 'NAMESPACE_NAME_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'IS_ACTIVE_ASC' + | 'IS_ACTIVE_DESC' + | 'STATUS_ASC' + | 'STATUS_DESC' + | 'LAST_ERROR_ASC' + | 'LAST_ERROR_DESC' + | 'LABELS_ASC' + | 'LABELS_DESC' + | 'ANNOTATIONS_ASC' + | 'ANNOTATIONS_DESC' + | 'IS_MANAGED_ASC' + | 'IS_MANAGED_DESC'; +export type NamespaceOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'NAMESPACE_NAME_ASC' + | 'NAMESPACE_NAME_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'IS_ACTIVE_ASC' + | 'IS_ACTIVE_DESC' + | 'STATUS_ASC' + | 'STATUS_DESC' + | 'LAST_ERROR_ASC' + | 'LAST_ERROR_DESC' + | 'LABELS_ASC' + | 'LABELS_DESC' + | 'ANNOTATIONS_ASC' + | 'ANNOTATIONS_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'IS_MANAGED_ASC' + | 'IS_MANAGED_DESC'; +export type PlatformNamespaceEventOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAMESPACE_ID_ASC' + | 'NAMESPACE_ID_DESC' + | 'EVENT_TYPE_ASC' + | 'EVENT_TYPE_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'MESSAGE_ASC' + | 'MESSAGE_DESC' + | 'METADATA_ASC' + | 'METADATA_DESC' + | 'CPU_MILLICORES_ASC' + | 'CPU_MILLICORES_DESC' + | 'MEMORY_BYTES_ASC' + | 'MEMORY_BYTES_DESC' + | 'STORAGE_BYTES_ASC' + | 'STORAGE_BYTES_DESC' + | 'NETWORK_INGRESS_BYTES_ASC' + | 'NETWORK_INGRESS_BYTES_DESC' + | 'NETWORK_EGRESS_BYTES_ASC' + | 'NETWORK_EGRESS_BYTES_DESC' + | 'POD_COUNT_ASC' + | 'POD_COUNT_DESC' + | 'METRICS_ASC' + | 'METRICS_DESC'; +export type NamespaceEventOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAMESPACE_ID_ASC' + | 'NAMESPACE_ID_DESC' + | 'EVENT_TYPE_ASC' + | 'EVENT_TYPE_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'MESSAGE_ASC' + | 'MESSAGE_DESC' + | 'METADATA_ASC' + | 'METADATA_DESC' + | 'CPU_MILLICORES_ASC' + | 'CPU_MILLICORES_DESC' + | 'MEMORY_BYTES_ASC' + | 'MEMORY_BYTES_DESC' + | 'STORAGE_BYTES_ASC' + | 'STORAGE_BYTES_DESC' + | 'NETWORK_INGRESS_BYTES_ASC' + | 'NETWORK_INGRESS_BYTES_DESC' + | 'NETWORK_EGRESS_BYTES_ASC' + | 'NETWORK_EGRESS_BYTES_DESC' + | 'POD_COUNT_ASC' + | 'POD_COUNT_DESC' + | 'METRICS_ASC' + | 'METRICS_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC'; +// ============ CRUD Input Types ============ +export interface CreateInfraGetAllRecordInput { + clientMutationId?: string; + infraGetAllRecord: { + path?: string[]; + data?: Record; + }; +} +export interface InfraGetAllRecordPatch { + path?: string[] | null; + data?: Record | null; +} +export interface UpdateInfraGetAllRecordInput { + clientMutationId?: string; + id: string; + infraGetAllRecordPatch: InfraGetAllRecordPatch; +} +export interface DeleteInfraGetAllRecordInput { + clientMutationId?: string; + id: string; +} +export interface CreateInfraRefInput { + clientMutationId?: string; + infraRef: { + name: string; + scopeId: string; + storeId: string; + commitId?: string; + }; +} +export interface InfraRefPatch { + name?: string | null; + scopeId?: string | null; + storeId?: string | null; + commitId?: string | null; +} +export interface UpdateInfraRefInput { + clientMutationId?: string; + id: string; + infraRefPatch: InfraRefPatch; +} +export interface DeleteInfraRefInput { + clientMutationId?: string; + id: string; +} +export interface CreateInfraStoreInput { + clientMutationId?: string; + infraStore: { + name: string; + scopeId: string; + hash?: string; + }; +} +export interface InfraStorePatch { + name?: string | null; + scopeId?: string | null; + hash?: string | null; +} +export interface UpdateInfraStoreInput { + clientMutationId?: string; + id: string; + infraStorePatch: InfraStorePatch; +} +export interface DeleteInfraStoreInput { + clientMutationId?: string; + id: string; +} +export interface CreateInfraObjectInput { + clientMutationId?: string; + infraObject: { + scopeId: string; + kids?: string[]; + ktree?: string[]; + data?: Record; + }; +} +export interface InfraObjectPatch { + scopeId?: string | null; + kids?: string[] | null; + ktree?: string[] | null; + data?: Record | null; +} +export interface UpdateInfraObjectInput { + clientMutationId?: string; + id: string; + infraObjectPatch: InfraObjectPatch; +} +export interface DeleteInfraObjectInput { + clientMutationId?: string; + id: string; +} +export interface CreateInfraCommitInput { + clientMutationId?: string; + infraCommit: { + message?: string; + scopeId: string; + storeId: string; + parentIds?: string[]; + authorId?: string; + committerId?: string; + treeId?: string; + date?: string; + }; +} +export interface InfraCommitPatch { + message?: string | null; + scopeId?: string | null; + storeId?: string | null; + parentIds?: string[] | null; + authorId?: string | null; + committerId?: string | null; + treeId?: string | null; + date?: string | null; +} +export interface UpdateInfraCommitInput { + clientMutationId?: string; + id: string; + infraCommitPatch: InfraCommitPatch; +} +export interface DeleteInfraCommitInput { + clientMutationId?: string; + id: string; +} +export interface CreateDbPresetInput { + clientMutationId?: string; + dbPreset: { + storeId?: string; + slug: string; + definition: Record; + commitId?: string; + modulesHash?: string; + label?: string; + description?: string; + active?: boolean; + }; +} +export interface DbPresetPatch { + storeId?: string | null; + slug?: string | null; + definition?: Record | null; + commitId?: string | null; + modulesHash?: string | null; + label?: string | null; + description?: string | null; + active?: boolean | null; +} +export interface UpdateDbPresetInput { + clientMutationId?: string; + id: string; + dbPresetPatch: DbPresetPatch; +} +export interface DeleteDbPresetInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformNamespaceInput { + clientMutationId?: string; + platformNamespace: { + name: string; + namespaceName: string; + description?: string; + isActive?: boolean; + status?: string; + lastError?: string; + labels?: Record; + annotations?: Record; + isManaged?: boolean; + }; +} +export interface PlatformNamespacePatch { + name?: string | null; + namespaceName?: string | null; + description?: string | null; + isActive?: boolean | null; + status?: string | null; + lastError?: string | null; + labels?: Record | null; + annotations?: Record | null; + isManaged?: boolean | null; +} +export interface UpdatePlatformNamespaceInput { + clientMutationId?: string; + id: string; + platformNamespacePatch: PlatformNamespacePatch; +} +export interface DeletePlatformNamespaceInput { + clientMutationId?: string; + id: string; +} +export interface CreateNamespaceInput { + clientMutationId?: string; + namespace: { + name: string; + namespaceName: string; + description?: string; + isActive?: boolean; + status?: string; + lastError?: string; + labels?: Record; + annotations?: Record; + databaseId: string; + isManaged?: boolean; + }; +} +export interface NamespacePatch { + name?: string | null; + namespaceName?: string | null; + description?: string | null; + isActive?: boolean | null; + status?: string | null; + lastError?: string | null; + labels?: Record | null; + annotations?: Record | null; + databaseId?: string | null; + isManaged?: boolean | null; +} +export interface UpdateNamespaceInput { + clientMutationId?: string; + id: string; + namespacePatch: NamespacePatch; +} +export interface DeleteNamespaceInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlatformNamespaceEventInput { + clientMutationId?: string; + platformNamespaceEvent: { + namespaceId: string; + eventType: string; + actorId?: string; + message?: string; + metadata?: Record; + cpuMillicores?: number; + memoryBytes?: string; + storageBytes?: string; + networkIngressBytes?: string; + networkEgressBytes?: string; + podCount?: number; + metrics?: Record; + }; +} +export interface PlatformNamespaceEventPatch { + namespaceId?: string | null; + eventType?: string | null; + actorId?: string | null; + message?: string | null; + metadata?: Record | null; + cpuMillicores?: number | null; + memoryBytes?: string | null; + storageBytes?: string | null; + networkIngressBytes?: string | null; + networkEgressBytes?: string | null; + podCount?: number | null; + metrics?: Record | null; +} +export interface UpdatePlatformNamespaceEventInput { + clientMutationId?: string; + id: string; + platformNamespaceEventPatch: PlatformNamespaceEventPatch; +} +export interface DeletePlatformNamespaceEventInput { + clientMutationId?: string; + id: string; +} +export interface CreateNamespaceEventInput { + clientMutationId?: string; + namespaceEvent: { + namespaceId: string; + eventType: string; + actorId?: string; + message?: string; + metadata?: Record; + cpuMillicores?: number; + memoryBytes?: string; + storageBytes?: string; + networkIngressBytes?: string; + networkEgressBytes?: string; + podCount?: number; + metrics?: Record; + databaseId: string; + }; +} +export interface NamespaceEventPatch { + namespaceId?: string | null; + eventType?: string | null; + actorId?: string | null; + message?: string | null; + metadata?: Record | null; + cpuMillicores?: number | null; + memoryBytes?: string | null; + storageBytes?: string | null; + networkIngressBytes?: string | null; + networkEgressBytes?: string | null; + podCount?: number | null; + metrics?: Record | null; + databaseId?: string | null; +} +export interface UpdateNamespaceEventInput { + clientMutationId?: string; + id: string; + namespaceEventPatch: NamespaceEventPatch; +} +export interface DeleteNamespaceEventInput { + clientMutationId?: string; + id: string; +} +// ============ Connection Fields Map ============ +export const connectionFieldsMap = {} as Record>; +// ============ Custom Input Types (from schema) ============ +export interface InfraInitEmptyRepoInput { + clientMutationId?: string; + sId?: string; + storeId?: string; +} +export interface InfraSetDataAtPathInput { + clientMutationId?: string; + sId?: string; + root?: string; + path?: string[]; + data?: Record; +} +export interface InfraInsertNodeAtPathInput { + clientMutationId?: string; + sId?: string; + root?: string; + path?: string[]; + data?: Record; + kids?: string[]; + ktree?: 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; +} +/** An input for mutations affecting `InfraRef` */ +export interface InfraRefInput { + /** 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; + /** Commit this ref points to */ + commitId?: string; +} +/** An input for mutations affecting `InfraStore` */ +export interface InfraStoreInput { + /** Unique store identifier */ + id?: string; + /** Human-readable store name */ + name: string; + /** Opaque store partition key for the global tier */ + scopeId: string; + /** Current root object hash of this store */ + hash?: string; + /** Timestamp of store creation */ + createdAt?: string; +} +/** An input for mutations affecting `InfraObject` */ +export interface InfraObjectInput { + /** Content-addressed UUID v5 — deterministic hash of (data, kids, ktree) */ + id: string; + /** Opaque store partition key for the global tier */ + scopeId: string; + /** Ordered array of child object IDs */ + kids?: string[]; + /** Ordered array of child path names (parallel to kids) */ + ktree?: string[]; + /** Payload data for this object node */ + data?: Record; + /** Timestamp of object creation */ + createdAt?: string; +} +/** An input for mutations affecting `InfraCommit` */ +export interface InfraCommitInput { + /** Unique commit identifier */ + id?: string; + /** Optional commit message */ + message?: string; + /** Opaque store partition key for the global tier */ + scopeId: string; + /** Store this commit belongs to */ + storeId: string; + /** Parent commit IDs (supports merge commits) */ + parentIds?: string[]; + /** User who authored the changes */ + authorId?: string; + /** User who committed (may differ from author) */ + committerId?: string; + /** Root object ID of the tree snapshot at this commit */ + treeId?: string; + /** Commit timestamp */ + date?: string; +} +/** An input for mutations affecting `DbPreset` */ +export interface DbPresetInput { + /** Unique preset identifier */ + id?: string; + /** Infra Merkle store holding this preset's history (stamped by the versioned trigger) */ + storeId?: string; + /** Preset slug (unique per scope); the preset's path in the infra tree is [db_preset, slug] */ + slug: string; + /** Preset definition (modules + options) — the readily-cached head; history lives in the infra store */ + definition: Record; + /** Infra store commit for the current definition (stamped by the versioned trigger on every write) */ + commitId?: 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; + /** Human-readable preset name */ + label?: string; + /** Human-readable description of the preset */ + description?: string; + /** Whether this preset is selectable for new databases */ + active?: boolean; + /** Timestamp of preset creation */ + createdAt?: string; + /** Timestamp of last modification */ + updatedAt?: string; +} +/** An input for mutations affecting `PlatformNamespace` */ +export interface PlatformNamespaceInput { + id?: string; + createdAt?: string; + updatedAt?: string; + /** Human-readable namespace name (e.g. default, production, oauth) */ + name: string; + /** Globally unique computed namespace identifier via inflection.underscore */ + namespaceName: string; + /** Optional human-readable description of this namespace */ + description?: string; + /** Whether this namespace is active (soft-disable for filtering) */ + isActive?: boolean; + /** Namespace provisioning lifecycle status: pending, provisioning, active, failed */ + status?: string; + /** Most recent provisioning or reconcile error message */ + lastError?: string; + /** Key/value pairs for selecting and filtering namespaces */ + labels?: Record; + /** Freeform metadata for tooling and operational notes */ + annotations?: Record; + /** true = provisioned by the platform via jobs, false = unmanaged/platform-native (bootstrapped externally) */ + isManaged?: boolean; +} +/** An input for mutations affecting `Namespace` */ +export interface NamespaceInput { + id?: string; + createdAt?: string; + updatedAt?: string; + /** Human-readable namespace name (e.g. default, production, oauth) */ + name: string; + /** Globally unique computed namespace identifier via inflection.underscore */ + namespaceName: string; + /** Optional human-readable description of this namespace */ + description?: string; + /** Whether this namespace is active (soft-disable for filtering) */ + isActive?: boolean; + /** Namespace provisioning lifecycle status: pending, provisioning, active, failed */ + status?: string; + /** Most recent provisioning or reconcile error message */ + lastError?: string; + /** Key/value pairs for selecting and filtering namespaces */ + labels?: Record; + /** Freeform metadata for tooling and operational notes */ + annotations?: Record; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + /** true = provisioned by the platform via jobs, false = unmanaged/platform-native (bootstrapped externally) */ + isManaged?: boolean; +} +/** An input for mutations affecting `PlatformNamespaceEvent` */ +export interface PlatformNamespaceEventInput { + /** Event timestamp (partition key) */ + createdAt?: string; + /** Unique event identifier */ + id?: string; + /** Namespace this event belongs to */ + namespaceId: string; + /** Event type: created, activated, deactivated, labels_updated, annotations_updated, renamed */ + eventType: string; + /** User who triggered this event (NULL for system/automated) */ + actorId?: string; + /** Human-readable description of the event */ + message?: string; + /** Structured context (old/new values, labels diff, etc.) */ + metadata?: Record; + /** CPU usage in millicores at time of event */ + cpuMillicores?: number; + /** Memory usage in bytes at time of event */ + memoryBytes?: string; + /** Storage usage in bytes at time of event */ + storageBytes?: string; + /** Network ingress in bytes during event window */ + networkIngressBytes?: string; + /** Network egress in bytes during event window */ + networkEgressBytes?: string; + /** Number of active pods in the namespace at time of event */ + podCount?: number; + /** Additional resource metrics (gpu, replicas, quotas, etc.) */ + metrics?: Record; +} +/** An input for mutations affecting `NamespaceEvent` */ +export interface NamespaceEventInput { + /** Event timestamp (partition key) */ + createdAt?: string; + /** Unique event identifier */ + id?: string; + /** Namespace this event belongs to */ + namespaceId: string; + /** Event type: created, activated, deactivated, labels_updated, annotations_updated, renamed */ + eventType: string; + /** User who triggered this event (NULL for system/automated) */ + actorId?: string; + /** Human-readable description of the event */ + message?: string; + /** Structured context (old/new values, labels diff, etc.) */ + metadata?: Record; + /** CPU usage in millicores at time of event */ + cpuMillicores?: number; + /** Memory usage in bytes at time of event */ + memoryBytes?: string; + /** Storage usage in bytes at time of event */ + storageBytes?: string; + /** Network ingress in bytes during event window */ + networkIngressBytes?: string; + /** Network egress in bytes during event window */ + networkEgressBytes?: string; + /** Number of active pods in the namespace at time of event */ + podCount?: number; + /** Additional resource metrics (gpu, replicas, quotas, etc.) */ + metrics?: Record; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; +} +// ============ Payload/Return Types (for custom operations) ============ +export interface InfraInitEmptyRepoPayload { + clientMutationId?: string | null; +} +export type InfraInitEmptyRepoPayloadSelect = { + clientMutationId?: boolean; +}; +export interface InfraSetDataAtPathPayload { + clientMutationId?: string | null; + result?: string | null; +} +export type InfraSetDataAtPathPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface InfraInsertNodeAtPathPayload { + clientMutationId?: string | null; + result?: string | null; +} +export type InfraInsertNodeAtPathPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface ProvisionBucketPayload { + /** Whether provisioning succeeded */ + success: boolean; + /** The S3 bucket name that was provisioned */ + bucketName: string; + /** The access type applied */ + accessType: string; + /** The storage provider used */ + provider: string; + /** The S3 endpoint (null for AWS S3 default) */ + endpoint?: string | null; + /** Error message if provisioning failed */ + error?: string | null; +} +export type ProvisionBucketPayloadSelect = { + success?: boolean; + bucketName?: boolean; + accessType?: boolean; + provider?: boolean; + endpoint?: boolean; + error?: boolean; +}; +export interface CreateInfraRefPayload { + clientMutationId?: string | null; + /** The `InfraRef` that was created by this mutation. */ + infraRef?: InfraRef | null; + infraRefEdge?: InfraRefEdge | null; +} +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; +} +export type DeleteInfraRefPayloadSelect = { + clientMutationId?: boolean; + infraRef?: { + select: InfraRefSelect; + }; + infraRefEdge?: { + select: InfraRefEdgeSelect; + }; +}; +export interface CreateInfraStorePayload { + clientMutationId?: string | null; + /** The `InfraStore` that was created by this mutation. */ + infraStore?: InfraStore | null; + infraStoreEdge?: InfraStoreEdge | null; +} +export type CreateInfraStorePayloadSelect = { + clientMutationId?: boolean; + infraStore?: { + select: InfraStoreSelect; + }; + infraStoreEdge?: { + select: InfraStoreEdgeSelect; + }; +}; +export interface UpdateInfraStorePayload { + clientMutationId?: string | null; + /** The `InfraStore` that was updated by this mutation. */ + infraStore?: InfraStore | null; + infraStoreEdge?: InfraStoreEdge | null; +} +export type UpdateInfraStorePayloadSelect = { + clientMutationId?: boolean; + infraStore?: { + select: InfraStoreSelect; + }; + infraStoreEdge?: { + select: InfraStoreEdgeSelect; + }; +}; +export interface DeleteInfraStorePayload { + clientMutationId?: string | null; + /** The `InfraStore` that was deleted by this mutation. */ + infraStore?: InfraStore | null; + infraStoreEdge?: InfraStoreEdge | null; +} +export type DeleteInfraStorePayloadSelect = { + clientMutationId?: boolean; + infraStore?: { + select: InfraStoreSelect; + }; + infraStoreEdge?: { + select: InfraStoreEdgeSelect; + }; +}; +export interface CreateInfraObjectPayload { + clientMutationId?: string | null; + /** The `InfraObject` that was created by this mutation. */ + infraObject?: InfraObject | null; + infraObjectEdge?: InfraObjectEdge | null; +} +export type CreateInfraObjectPayloadSelect = { + clientMutationId?: boolean; + infraObject?: { + select: InfraObjectSelect; + }; + infraObjectEdge?: { + select: InfraObjectEdgeSelect; + }; +}; +export interface UpdateInfraObjectPayload { + clientMutationId?: string | null; + /** The `InfraObject` that was updated by this mutation. */ + infraObject?: InfraObject | null; + infraObjectEdge?: InfraObjectEdge | null; +} +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; +} +export type DeleteInfraObjectPayloadSelect = { + clientMutationId?: boolean; + infraObject?: { + select: InfraObjectSelect; + }; + infraObjectEdge?: { + select: InfraObjectEdgeSelect; + }; +}; +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 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 CreatePlatformNamespacePayload { + clientMutationId?: string | null; + /** The `PlatformNamespace` that was created by this mutation. */ + platformNamespace?: PlatformNamespace | null; + platformNamespaceEdge?: PlatformNamespaceEdge | null; +} +export type CreatePlatformNamespacePayloadSelect = { + clientMutationId?: boolean; + platformNamespace?: { + select: PlatformNamespaceSelect; + }; + platformNamespaceEdge?: { + select: PlatformNamespaceEdgeSelect; + }; +}; +export interface UpdatePlatformNamespacePayload { + clientMutationId?: string | null; + /** The `PlatformNamespace` that was updated by this mutation. */ + platformNamespace?: PlatformNamespace | null; + platformNamespaceEdge?: PlatformNamespaceEdge | null; +} +export type UpdatePlatformNamespacePayloadSelect = { + clientMutationId?: boolean; + platformNamespace?: { + select: PlatformNamespaceSelect; + }; + platformNamespaceEdge?: { + select: PlatformNamespaceEdgeSelect; + }; +}; +export interface DeletePlatformNamespacePayload { + clientMutationId?: string | null; + /** The `PlatformNamespace` that was deleted by this mutation. */ + platformNamespace?: PlatformNamespace | null; + platformNamespaceEdge?: PlatformNamespaceEdge | null; +} +export type DeletePlatformNamespacePayloadSelect = { + clientMutationId?: boolean; + platformNamespace?: { + select: PlatformNamespaceSelect; + }; + platformNamespaceEdge?: { + select: PlatformNamespaceEdgeSelect; + }; +}; +export interface CreateNamespacePayload { + clientMutationId?: string | null; + /** The `Namespace` that was created by this mutation. */ + namespace?: Namespace | null; + namespaceEdge?: NamespaceEdge | null; +} +export type CreateNamespacePayloadSelect = { + clientMutationId?: boolean; + namespace?: { + select: NamespaceSelect; + }; + namespaceEdge?: { + select: NamespaceEdgeSelect; + }; +}; +export interface UpdateNamespacePayload { + clientMutationId?: string | null; + /** The `Namespace` that was updated by this mutation. */ + namespace?: Namespace | null; + namespaceEdge?: NamespaceEdge | null; +} +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 CreatePlatformNamespaceEventPayload { + clientMutationId?: string | null; + /** The `PlatformNamespaceEvent` that was created by this mutation. */ + platformNamespaceEvent?: PlatformNamespaceEvent | null; + platformNamespaceEventEdge?: PlatformNamespaceEventEdge | null; +} +export type CreatePlatformNamespaceEventPayloadSelect = { + clientMutationId?: boolean; + platformNamespaceEvent?: { + select: PlatformNamespaceEventSelect; + }; + platformNamespaceEventEdge?: { + select: PlatformNamespaceEventEdgeSelect; + }; +}; +export interface UpdatePlatformNamespaceEventPayload { + clientMutationId?: string | null; + /** The `PlatformNamespaceEvent` that was updated by this mutation. */ + platformNamespaceEvent?: PlatformNamespaceEvent | null; + platformNamespaceEventEdge?: PlatformNamespaceEventEdge | null; +} +export type UpdatePlatformNamespaceEventPayloadSelect = { + clientMutationId?: boolean; + platformNamespaceEvent?: { + select: PlatformNamespaceEventSelect; + }; + platformNamespaceEventEdge?: { + select: PlatformNamespaceEventEdgeSelect; + }; +}; +export interface DeletePlatformNamespaceEventPayload { + clientMutationId?: string | null; + /** The `PlatformNamespaceEvent` that was deleted by this mutation. */ + platformNamespaceEvent?: PlatformNamespaceEvent | null; + platformNamespaceEventEdge?: PlatformNamespaceEventEdge | null; +} +export type DeletePlatformNamespaceEventPayloadSelect = { + clientMutationId?: boolean; + platformNamespaceEvent?: { + select: PlatformNamespaceEventSelect; + }; + platformNamespaceEventEdge?: { + select: PlatformNamespaceEventEdgeSelect; + }; +}; +export interface CreateNamespaceEventPayload { + clientMutationId?: string | null; + /** The `NamespaceEvent` that was created by this mutation. */ + namespaceEvent?: NamespaceEvent | null; + namespaceEventEdge?: NamespaceEventEdge | null; +} +export type CreateNamespaceEventPayloadSelect = { + clientMutationId?: boolean; + namespaceEvent?: { + select: NamespaceEventSelect; + }; + namespaceEventEdge?: { + select: NamespaceEventEdgeSelect; + }; +}; +export interface UpdateNamespaceEventPayload { + clientMutationId?: string | null; + /** The `NamespaceEvent` that was updated by this mutation. */ + namespaceEvent?: NamespaceEvent | null; + namespaceEventEdge?: NamespaceEventEdge | null; +} +export type UpdateNamespaceEventPayloadSelect = { + clientMutationId?: boolean; + namespaceEvent?: { + select: NamespaceEventSelect; + }; + namespaceEventEdge?: { + select: NamespaceEventEdgeSelect; + }; +}; +export interface DeleteNamespaceEventPayload { + clientMutationId?: string | null; + /** The `NamespaceEvent` that was deleted by this mutation. */ + namespaceEvent?: NamespaceEvent | null; + namespaceEventEdge?: NamespaceEventEdge | null; +} +export type DeleteNamespaceEventPayloadSelect = { + clientMutationId?: boolean; + namespaceEvent?: { + select: NamespaceEventSelect; + }; + namespaceEventEdge?: { + select: NamespaceEventEdgeSelect; + }; +}; +/** A `InfraRef` edge in the connection. */ +export interface InfraRefEdge { + cursor?: string | null; + /** The `InfraRef` at the end of the edge. */ + node?: InfraRef | null; +} +export type InfraRefEdgeSelect = { + cursor?: boolean; + node?: { + select: InfraRefSelect; + }; +}; +/** A `InfraStore` edge in the connection. */ +export interface InfraStoreEdge { + cursor?: string | null; + /** The `InfraStore` at the end of the edge. */ + node?: InfraStore | null; +} +export type InfraStoreEdgeSelect = { + cursor?: boolean; + node?: { + select: InfraStoreSelect; + }; +}; +/** A `InfraObject` edge in the connection. */ +export interface InfraObjectEdge { + cursor?: string | null; + /** The `InfraObject` at the end of the edge. */ + node?: InfraObject | null; +} +export type InfraObjectEdgeSelect = { + cursor?: boolean; + node?: { + select: InfraObjectSelect; + }; +}; +/** 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 `DbPreset` edge in the connection. */ +export interface DbPresetEdge { + cursor?: string | null; + /** The `DbPreset` at the end of the edge. */ + node?: DbPreset | null; +} +export type DbPresetEdgeSelect = { + cursor?: boolean; + node?: { + select: DbPresetSelect; + }; +}; +/** A `PlatformNamespace` edge in the connection. */ +export interface PlatformNamespaceEdge { + cursor?: string | null; + /** The `PlatformNamespace` at the end of the edge. */ + node?: PlatformNamespace | null; +} +export type PlatformNamespaceEdgeSelect = { + cursor?: boolean; + node?: { + select: PlatformNamespaceSelect; + }; +}; +/** A `Namespace` edge in the connection. */ +export interface NamespaceEdge { + cursor?: string | null; + /** The `Namespace` at the end of the edge. */ + node?: Namespace | null; +} +export type NamespaceEdgeSelect = { + cursor?: boolean; + node?: { + select: NamespaceSelect; + }; +}; +/** A `PlatformNamespaceEvent` edge in the connection. */ +export interface PlatformNamespaceEventEdge { + cursor?: string | null; + /** The `PlatformNamespaceEvent` at the end of the edge. */ + node?: PlatformNamespaceEvent | null; +} +export type PlatformNamespaceEventEdgeSelect = { + cursor?: boolean; + node?: { + select: PlatformNamespaceEventSelect; + }; +}; +/** A `NamespaceEvent` edge in the connection. */ +export interface NamespaceEventEdge { + cursor?: string | null; + /** The `NamespaceEvent` at the end of the edge. */ + node?: NamespaceEvent | null; +} +export type NamespaceEventEdgeSelect = { + cursor?: boolean; + node?: { + select: NamespaceEventSelect; + }; +}; diff --git a/sdk/constructive-sdk/src/infra/orm/models/dbPreset.ts b/sdk/constructive-sdk/src/infra/orm/models/dbPreset.ts new file mode 100644 index 0000000000..a3e824a674 --- /dev/null +++ b/sdk/constructive-sdk/src/infra/orm/models/dbPreset.ts @@ -0,0 +1,245 @@ +/** + * DbPreset model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + DbPreset, + DbPresetWithRelations, + DbPresetSelect, + DbPresetFilter, + DbPresetOrderBy, + CreateDbPresetInput, + UpdateDbPresetInput, + DbPresetPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class DbPresetModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + dbPresets: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'DbPreset', + 'dbPresets', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'DbPresetFilter', + 'DbPresetOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'DbPreset', + fieldName: 'dbPresets', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + dbPreset: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'DbPreset', + 'dbPresets', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'DbPresetFilter', + 'DbPresetOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'DbPreset', + fieldName: 'dbPreset', + document, + variables, + transform: (data: { + dbPresets?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + dbPreset: data.dbPresets?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + dbPreset: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'DbPreset', + 'dbPresets', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'DbPresetFilter', + 'DbPresetOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'DbPreset', + fieldName: 'dbPreset', + document, + variables, + transform: (data: { + dbPresets?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + dbPreset: data.dbPresets?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createDbPreset: { + dbPreset: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'DbPreset', + 'createDbPreset', + 'dbPreset', + args.select, + args.data, + 'CreateDbPresetInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'DbPreset', + fieldName: 'createDbPreset', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + DbPresetPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateDbPreset: { + dbPreset: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'DbPreset', + 'updateDbPreset', + 'dbPreset', + args.select, + args.where.id, + args.data, + 'UpdateDbPresetInput', + 'id', + 'dbPresetPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'DbPreset', + fieldName: 'updateDbPreset', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteDbPreset: { + dbPreset: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'DbPreset', + 'deleteDbPreset', + 'dbPreset', + { + id: args.where.id, + }, + 'DeleteDbPresetInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'DbPreset', + fieldName: 'deleteDbPreset', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/infra/orm/models/index.ts b/sdk/constructive-sdk/src/infra/orm/models/index.ts new file mode 100644 index 0000000000..e3c440f5ad --- /dev/null +++ b/sdk/constructive-sdk/src/infra/orm/models/index.ts @@ -0,0 +1,15 @@ +/** + * Models barrel export + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +export { InfraGetAllRecordModel } from './infraGetAllRecord'; +export { InfraRefModel } from './infraRef'; +export { InfraStoreModel } from './infraStore'; +export { InfraObjectModel } from './infraObject'; +export { InfraCommitModel } from './infraCommit'; +export { DbPresetModel } from './dbPreset'; +export { PlatformNamespaceModel } from './platformNamespace'; +export { NamespaceModel } from './namespace'; +export { PlatformNamespaceEventModel } from './platformNamespaceEvent'; +export { NamespaceEventModel } from './namespaceEvent'; diff --git a/sdk/constructive-sdk/src/infra/orm/models/infraCommit.ts b/sdk/constructive-sdk/src/infra/orm/models/infraCommit.ts new file mode 100644 index 0000000000..410e937a90 --- /dev/null +++ b/sdk/constructive-sdk/src/infra/orm/models/infraCommit.ts @@ -0,0 +1,250 @@ +/** + * InfraCommit model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + InfraCommit, + InfraCommitWithRelations, + InfraCommitSelect, + InfraCommitFilter, + InfraCommitOrderBy, + CreateInfraCommitInput, + UpdateInfraCommitInput, + InfraCommitPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class InfraCommitModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + infraCommits: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'InfraCommit', + 'infraCommits', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'InfraCommitFilter', + 'InfraCommitOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'InfraCommit', + fieldName: 'infraCommits', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + infraCommit: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'InfraCommit', + 'infraCommits', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'InfraCommitFilter', + 'InfraCommitOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'InfraCommit', + fieldName: 'infraCommit', + document, + variables, + transform: (data: { + infraCommits?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + infraCommit: data.infraCommits?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + infraCommit: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'InfraCommit', + 'infraCommits', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'InfraCommitFilter', + 'InfraCommitOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'InfraCommit', + fieldName: 'infraCommit', + document, + variables, + transform: (data: { + infraCommits?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + infraCommit: data.infraCommits?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createInfraCommit: { + infraCommit: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'InfraCommit', + 'createInfraCommit', + 'infraCommit', + args.select, + args.data, + 'CreateInfraCommitInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'InfraCommit', + fieldName: 'createInfraCommit', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + scopeId: string; + }, + InfraCommitPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateInfraCommit: { + infraCommit: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'InfraCommit', + 'updateInfraCommit', + 'infraCommit', + args.select, + args.where.id, + args.data, + 'UpdateInfraCommitInput', + 'id', + 'infraCommitPatch', + connectionFieldsMap, + { + scopeId: args.where.scopeId, + } + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'InfraCommit', + fieldName: 'updateInfraCommit', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + scopeId: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteInfraCommit: { + infraCommit: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'InfraCommit', + 'deleteInfraCommit', + 'infraCommit', + { + id: args.where.id, + scopeId: args.where.scopeId, + }, + 'DeleteInfraCommitInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'InfraCommit', + fieldName: 'deleteInfraCommit', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/infra/orm/models/infraGetAllRecord.ts b/sdk/constructive-sdk/src/infra/orm/models/infraGetAllRecord.ts new file mode 100644 index 0000000000..ebe2f8c1f2 --- /dev/null +++ b/sdk/constructive-sdk/src/infra/orm/models/infraGetAllRecord.ts @@ -0,0 +1,134 @@ +/** + * InfraGetAllRecord model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + InfraGetAllRecord, + InfraGetAllRecordWithRelations, + InfraGetAllRecordSelect, + InfraGetAllRecordFilter, + InfraGetAllRecordsOrderBy, + CreateInfraGetAllRecordInput, + UpdateInfraGetAllRecordInput, + InfraGetAllRecordPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class InfraGetAllRecordModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + infraGetAll: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'InfraGetAllRecord', + 'infraGetAll', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'InfraGetAllRecordFilter', + 'InfraGetAllRecordsOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'InfraGetAllRecord', + fieldName: 'infraGetAll', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + infraGetAllRecord: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'InfraGetAllRecord', + 'infraGetAll', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'InfraGetAllRecordFilter', + 'InfraGetAllRecordsOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'InfraGetAllRecord', + fieldName: 'infraGetAllRecord', + document, + variables, + transform: (data: { + infraGetAll?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + infraGetAllRecord: data.infraGetAll?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createInfraGetAllRecord: { + infraGetAllRecord: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'InfraGetAllRecord', + 'createInfraGetAllRecord', + 'infraGetAllRecord', + args.select, + args.data, + 'CreateInfraGetAllRecordInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'InfraGetAllRecord', + fieldName: 'createInfraGetAllRecord', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/infra/orm/models/infraObject.ts b/sdk/constructive-sdk/src/infra/orm/models/infraObject.ts new file mode 100644 index 0000000000..e097c8b271 --- /dev/null +++ b/sdk/constructive-sdk/src/infra/orm/models/infraObject.ts @@ -0,0 +1,236 @@ +/** + * InfraObject model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + InfraObject, + InfraObjectWithRelations, + InfraObjectSelect, + InfraObjectFilter, + InfraObjectOrderBy, + CreateInfraObjectInput, + UpdateInfraObjectInput, + InfraObjectPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class InfraObjectModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + infraObjects: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'InfraObject', + 'infraObjects', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'InfraObjectFilter', + 'InfraObjectOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'InfraObject', + fieldName: 'infraObjects', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + infraObject: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'InfraObject', + 'infraObjects', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'InfraObjectFilter', + 'InfraObjectOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'InfraObject', + fieldName: 'infraObject', + document, + variables, + transform: (data: { + infraObjects?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + infraObject: data.infraObjects?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + infraObject: InferSelectResult | null; + }> { + const { document, variables } = buildFindOneDocument( + 'InfraObject', + 'infraGetNodeAtPath', + args.id, + args.select, + 'id', + 'UUID!', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'InfraObject', + fieldName: 'infraObject', + document, + variables, + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createInfraObject: { + infraObject: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'InfraObject', + 'createInfraObject', + 'infraObject', + args.select, + args.data, + 'CreateInfraObjectInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'InfraObject', + fieldName: 'createInfraObject', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + scopeId: string; + }, + InfraObjectPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateInfraObject: { + infraObject: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'InfraObject', + 'updateInfraObject', + 'infraObject', + args.select, + args.where.id, + args.data, + 'UpdateInfraObjectInput', + 'id', + 'infraObjectPatch', + connectionFieldsMap, + { + scopeId: args.where.scopeId, + } + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'InfraObject', + fieldName: 'updateInfraObject', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + scopeId: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteInfraObject: { + infraObject: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'InfraObject', + 'deleteInfraObject', + 'infraObject', + { + id: args.where.id, + scopeId: args.where.scopeId, + }, + 'DeleteInfraObjectInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'InfraObject', + fieldName: 'deleteInfraObject', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/infra/orm/models/infraRef.ts b/sdk/constructive-sdk/src/infra/orm/models/infraRef.ts new file mode 100644 index 0000000000..3c474d3186 --- /dev/null +++ b/sdk/constructive-sdk/src/infra/orm/models/infraRef.ts @@ -0,0 +1,250 @@ +/** + * InfraRef model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + InfraRef, + InfraRefWithRelations, + InfraRefSelect, + InfraRefFilter, + InfraRefOrderBy, + CreateInfraRefInput, + UpdateInfraRefInput, + InfraRefPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class InfraRefModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + infraRefs: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'InfraRef', + 'infraRefs', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'InfraRefFilter', + 'InfraRefOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'InfraRef', + fieldName: 'infraRefs', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + infraRef: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'InfraRef', + 'infraRefs', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'InfraRefFilter', + 'InfraRefOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'InfraRef', + fieldName: 'infraRef', + document, + variables, + transform: (data: { + infraRefs?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + infraRef: data.infraRefs?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + infraRef: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'InfraRef', + 'infraRefs', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'InfraRefFilter', + 'InfraRefOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'InfraRef', + fieldName: 'infraRef', + document, + variables, + transform: (data: { + infraRefs?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + infraRef: data.infraRefs?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createInfraRef: { + infraRef: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'InfraRef', + 'createInfraRef', + 'infraRef', + args.select, + args.data, + 'CreateInfraRefInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'InfraRef', + fieldName: 'createInfraRef', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + scopeId: string; + }, + InfraRefPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateInfraRef: { + infraRef: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'InfraRef', + 'updateInfraRef', + 'infraRef', + args.select, + args.where.id, + args.data, + 'UpdateInfraRefInput', + 'id', + 'infraRefPatch', + connectionFieldsMap, + { + scopeId: args.where.scopeId, + } + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'InfraRef', + fieldName: 'updateInfraRef', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + scopeId: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteInfraRef: { + infraRef: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'InfraRef', + 'deleteInfraRef', + 'infraRef', + { + id: args.where.id, + scopeId: args.where.scopeId, + }, + 'DeleteInfraRefInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'InfraRef', + fieldName: 'deleteInfraRef', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/infra/orm/models/infraStore.ts b/sdk/constructive-sdk/src/infra/orm/models/infraStore.ts new file mode 100644 index 0000000000..a0ed0dbe7b --- /dev/null +++ b/sdk/constructive-sdk/src/infra/orm/models/infraStore.ts @@ -0,0 +1,245 @@ +/** + * InfraStore model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + InfraStore, + InfraStoreWithRelations, + InfraStoreSelect, + InfraStoreFilter, + InfraStoreOrderBy, + CreateInfraStoreInput, + UpdateInfraStoreInput, + InfraStorePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class InfraStoreModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + infraStores: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'InfraStore', + 'infraStores', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'InfraStoreFilter', + 'InfraStoreOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'InfraStore', + fieldName: 'infraStores', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + infraStore: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'InfraStore', + 'infraStores', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'InfraStoreFilter', + 'InfraStoreOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'InfraStore', + fieldName: 'infraStore', + document, + variables, + transform: (data: { + infraStores?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + infraStore: data.infraStores?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + infraStore: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'InfraStore', + 'infraStores', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'InfraStoreFilter', + 'InfraStoreOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'InfraStore', + fieldName: 'infraStore', + document, + variables, + transform: (data: { + infraStores?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + infraStore: data.infraStores?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createInfraStore: { + infraStore: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'InfraStore', + 'createInfraStore', + 'infraStore', + args.select, + args.data, + 'CreateInfraStoreInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'InfraStore', + fieldName: 'createInfraStore', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + InfraStorePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateInfraStore: { + infraStore: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'InfraStore', + 'updateInfraStore', + 'infraStore', + args.select, + args.where.id, + args.data, + 'UpdateInfraStoreInput', + 'id', + 'infraStorePatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'InfraStore', + fieldName: 'updateInfraStore', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteInfraStore: { + infraStore: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'InfraStore', + 'deleteInfraStore', + 'infraStore', + { + id: args.where.id, + }, + 'DeleteInfraStoreInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'InfraStore', + fieldName: 'deleteInfraStore', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/infra/orm/models/namespace.ts b/sdk/constructive-sdk/src/infra/orm/models/namespace.ts new file mode 100644 index 0000000000..4e300068cd --- /dev/null +++ b/sdk/constructive-sdk/src/infra/orm/models/namespace.ts @@ -0,0 +1,245 @@ +/** + * Namespace model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + Namespace, + NamespaceWithRelations, + NamespaceSelect, + NamespaceFilter, + NamespaceOrderBy, + CreateNamespaceInput, + UpdateNamespaceInput, + NamespacePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class NamespaceModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + namespaces: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'Namespace', + 'namespaces', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'NamespaceFilter', + 'NamespaceOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'Namespace', + fieldName: 'namespaces', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + namespace: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'Namespace', + 'namespaces', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'NamespaceFilter', + 'NamespaceOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'Namespace', + fieldName: 'namespace', + document, + variables, + transform: (data: { + namespaces?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + namespace: data.namespaces?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + namespace: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'Namespace', + 'namespaces', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'NamespaceFilter', + 'NamespaceOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'Namespace', + fieldName: 'namespace', + document, + variables, + transform: (data: { + namespaces?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + namespace: data.namespaces?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createNamespace: { + namespace: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'Namespace', + 'createNamespace', + 'namespace', + args.select, + args.data, + 'CreateNamespaceInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'Namespace', + fieldName: 'createNamespace', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + NamespacePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateNamespace: { + namespace: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'Namespace', + 'updateNamespace', + 'namespace', + args.select, + args.where.id, + args.data, + 'UpdateNamespaceInput', + 'id', + 'namespacePatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'Namespace', + fieldName: 'updateNamespace', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteNamespace: { + namespace: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'Namespace', + 'deleteNamespace', + 'namespace', + { + id: args.where.id, + }, + 'DeleteNamespaceInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'Namespace', + fieldName: 'deleteNamespace', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/infra/orm/models/namespaceEvent.ts b/sdk/constructive-sdk/src/infra/orm/models/namespaceEvent.ts new file mode 100644 index 0000000000..494442c263 --- /dev/null +++ b/sdk/constructive-sdk/src/infra/orm/models/namespaceEvent.ts @@ -0,0 +1,250 @@ +/** + * NamespaceEvent model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + NamespaceEvent, + NamespaceEventWithRelations, + NamespaceEventSelect, + NamespaceEventFilter, + NamespaceEventOrderBy, + CreateNamespaceEventInput, + UpdateNamespaceEventInput, + NamespaceEventPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class NamespaceEventModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + namespaceEvents: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'NamespaceEvent', + 'namespaceEvents', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'NamespaceEventFilter', + 'NamespaceEventOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'NamespaceEvent', + fieldName: 'namespaceEvents', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + namespaceEvent: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'NamespaceEvent', + 'namespaceEvents', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'NamespaceEventFilter', + 'NamespaceEventOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'NamespaceEvent', + fieldName: 'namespaceEvent', + document, + variables, + transform: (data: { + namespaceEvents?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + namespaceEvent: data.namespaceEvents?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + namespaceEvent: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'NamespaceEvent', + 'namespaceEvents', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'NamespaceEventFilter', + 'NamespaceEventOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'NamespaceEvent', + fieldName: 'namespaceEvent', + document, + variables, + transform: (data: { + namespaceEvents?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + namespaceEvent: data.namespaceEvents?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createNamespaceEvent: { + namespaceEvent: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'NamespaceEvent', + 'createNamespaceEvent', + 'namespaceEvent', + args.select, + args.data, + 'CreateNamespaceEventInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'NamespaceEvent', + fieldName: 'createNamespaceEvent', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + createdAt: string; + }, + NamespaceEventPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateNamespaceEvent: { + namespaceEvent: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'NamespaceEvent', + 'updateNamespaceEvent', + 'namespaceEvent', + args.select, + args.where.id, + args.data, + 'UpdateNamespaceEventInput', + 'id', + 'namespaceEventPatch', + connectionFieldsMap, + { + createdAt: args.where.createdAt, + } + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'NamespaceEvent', + fieldName: 'updateNamespaceEvent', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + createdAt: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteNamespaceEvent: { + namespaceEvent: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'NamespaceEvent', + 'deleteNamespaceEvent', + 'namespaceEvent', + { + id: args.where.id, + createdAt: args.where.createdAt, + }, + 'DeleteNamespaceEventInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'NamespaceEvent', + fieldName: 'deleteNamespaceEvent', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/infra/orm/models/platformNamespace.ts b/sdk/constructive-sdk/src/infra/orm/models/platformNamespace.ts new file mode 100644 index 0000000000..c4dff94953 --- /dev/null +++ b/sdk/constructive-sdk/src/infra/orm/models/platformNamespace.ts @@ -0,0 +1,245 @@ +/** + * PlatformNamespace model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + PlatformNamespace, + PlatformNamespaceWithRelations, + PlatformNamespaceSelect, + PlatformNamespaceFilter, + PlatformNamespaceOrderBy, + CreatePlatformNamespaceInput, + UpdatePlatformNamespaceInput, + PlatformNamespacePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class PlatformNamespaceModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformNamespaces: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformNamespace', + 'platformNamespaces', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'PlatformNamespaceFilter', + 'PlatformNamespaceOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformNamespace', + fieldName: 'platformNamespaces', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformNamespace: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'PlatformNamespace', + 'platformNamespaces', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'PlatformNamespaceFilter', + 'PlatformNamespaceOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformNamespace', + fieldName: 'platformNamespace', + document, + variables, + transform: (data: { + platformNamespaces?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformNamespace: data.platformNamespaces?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformNamespace: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformNamespace', + 'platformNamespaces', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'PlatformNamespaceFilter', + 'PlatformNamespaceOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformNamespace', + fieldName: 'platformNamespace', + document, + variables, + transform: (data: { + platformNamespaces?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformNamespace: data.platformNamespaces?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createPlatformNamespace: { + platformNamespace: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'PlatformNamespace', + 'createPlatformNamespace', + 'platformNamespace', + args.select, + args.data, + 'CreatePlatformNamespaceInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformNamespace', + fieldName: 'createPlatformNamespace', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + PlatformNamespacePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updatePlatformNamespace: { + platformNamespace: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'PlatformNamespace', + 'updatePlatformNamespace', + 'platformNamespace', + args.select, + args.where.id, + args.data, + 'UpdatePlatformNamespaceInput', + 'id', + 'platformNamespacePatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformNamespace', + fieldName: 'updatePlatformNamespace', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deletePlatformNamespace: { + platformNamespace: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'PlatformNamespace', + 'deletePlatformNamespace', + 'platformNamespace', + { + id: args.where.id, + }, + 'DeletePlatformNamespaceInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformNamespace', + fieldName: 'deletePlatformNamespace', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/infra/orm/models/platformNamespaceEvent.ts b/sdk/constructive-sdk/src/infra/orm/models/platformNamespaceEvent.ts new file mode 100644 index 0000000000..198afe79ae --- /dev/null +++ b/sdk/constructive-sdk/src/infra/orm/models/platformNamespaceEvent.ts @@ -0,0 +1,252 @@ +/** + * PlatformNamespaceEvent model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + PlatformNamespaceEvent, + PlatformNamespaceEventWithRelations, + PlatformNamespaceEventSelect, + PlatformNamespaceEventFilter, + PlatformNamespaceEventOrderBy, + CreatePlatformNamespaceEventInput, + UpdatePlatformNamespaceEventInput, + PlatformNamespaceEventPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class PlatformNamespaceEventModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformNamespaceEvents: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformNamespaceEvent', + 'platformNamespaceEvents', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'PlatformNamespaceEventFilter', + 'PlatformNamespaceEventOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformNamespaceEvent', + fieldName: 'platformNamespaceEvents', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformNamespaceEvent: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'PlatformNamespaceEvent', + 'platformNamespaceEvents', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'PlatformNamespaceEventFilter', + 'PlatformNamespaceEventOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformNamespaceEvent', + fieldName: 'platformNamespaceEvent', + document, + variables, + transform: (data: { + platformNamespaceEvents?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformNamespaceEvent: data.platformNamespaceEvents?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformNamespaceEvent: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformNamespaceEvent', + 'platformNamespaceEvents', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'PlatformNamespaceEventFilter', + 'PlatformNamespaceEventOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformNamespaceEvent', + fieldName: 'platformNamespaceEvent', + document, + variables, + transform: (data: { + platformNamespaceEvents?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformNamespaceEvent: data.platformNamespaceEvents?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createPlatformNamespaceEvent: { + platformNamespaceEvent: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'PlatformNamespaceEvent', + 'createPlatformNamespaceEvent', + 'platformNamespaceEvent', + args.select, + args.data, + 'CreatePlatformNamespaceEventInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformNamespaceEvent', + fieldName: 'createPlatformNamespaceEvent', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + createdAt: string; + }, + PlatformNamespaceEventPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updatePlatformNamespaceEvent: { + platformNamespaceEvent: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'PlatformNamespaceEvent', + 'updatePlatformNamespaceEvent', + 'platformNamespaceEvent', + args.select, + args.where.id, + args.data, + 'UpdatePlatformNamespaceEventInput', + 'id', + 'platformNamespaceEventPatch', + connectionFieldsMap, + { + createdAt: args.where.createdAt, + } + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformNamespaceEvent', + fieldName: 'updatePlatformNamespaceEvent', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + createdAt: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deletePlatformNamespaceEvent: { + platformNamespaceEvent: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'PlatformNamespaceEvent', + 'deletePlatformNamespaceEvent', + 'platformNamespaceEvent', + { + id: args.where.id, + createdAt: args.where.createdAt, + }, + 'DeletePlatformNamespaceEventInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformNamespaceEvent', + fieldName: 'deletePlatformNamespaceEvent', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/infra/orm/mutation/index.ts b/sdk/constructive-sdk/src/infra/orm/mutation/index.ts new file mode 100644 index 0000000000..25e22830fc --- /dev/null +++ b/sdk/constructive-sdk/src/infra/orm/mutation/index.ts @@ -0,0 +1,162 @@ +/** + * 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 { + InfraInitEmptyRepoInput, + InfraSetDataAtPathInput, + InfraInsertNodeAtPathInput, + ProvisionBucketInput, + InfraInitEmptyRepoPayload, + InfraSetDataAtPathPayload, + InfraInsertNodeAtPathPayload, + ProvisionBucketPayload, + InfraInitEmptyRepoPayloadSelect, + InfraSetDataAtPathPayloadSelect, + InfraInsertNodeAtPathPayloadSelect, + ProvisionBucketPayloadSelect, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export interface InfraInitEmptyRepoVariables { + input: InfraInitEmptyRepoInput; +} +export interface InfraSetDataAtPathVariables { + input: InfraSetDataAtPathInput; +} +export interface InfraInsertNodeAtPathVariables { + input: InfraInsertNodeAtPathInput; +} +/** + * 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 { + infraInitEmptyRepo: ( + args: InfraInitEmptyRepoVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + infraInitEmptyRepo: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'InfraInitEmptyRepo', + fieldName: 'infraInitEmptyRepo', + ...buildCustomDocument( + 'mutation', + 'InfraInitEmptyRepo', + 'infraInitEmptyRepo', + options.select, + args, + [ + { + name: 'input', + type: 'InfraInitEmptyRepoInput!', + }, + ], + connectionFieldsMap, + 'InfraInitEmptyRepoPayload' + ), + }), + infraSetDataAtPath: ( + args: InfraSetDataAtPathVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + infraSetDataAtPath: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'InfraSetDataAtPath', + fieldName: 'infraSetDataAtPath', + ...buildCustomDocument( + 'mutation', + 'InfraSetDataAtPath', + 'infraSetDataAtPath', + options.select, + args, + [ + { + name: 'input', + type: 'InfraSetDataAtPathInput!', + }, + ], + connectionFieldsMap, + 'InfraSetDataAtPathPayload' + ), + }), + infraInsertNodeAtPath: ( + args: InfraInsertNodeAtPathVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + infraInsertNodeAtPath: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'InfraInsertNodeAtPath', + fieldName: 'infraInsertNodeAtPath', + ...buildCustomDocument( + 'mutation', + 'InfraInsertNodeAtPath', + 'infraInsertNodeAtPath', + options.select, + args, + [ + { + name: 'input', + type: 'InfraInsertNodeAtPathInput!', + }, + ], + connectionFieldsMap, + 'InfraInsertNodeAtPathPayload' + ), + }), + 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/infra/orm/query-builder.ts b/sdk/constructive-sdk/src/infra/orm/query-builder.ts new file mode 100644 index 0000000000..fd785bbae6 --- /dev/null +++ b/sdk/constructive-sdk/src/infra/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/infra/orm/realtime.ts b/sdk/constructive-sdk/src/infra/orm/realtime.ts new file mode 100644 index 0000000000..214eb56203 --- /dev/null +++ b/sdk/constructive-sdk/src/infra/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/infra/orm/select-types.ts b/sdk/constructive-sdk/src/infra/orm/select-types.ts new file mode 100644 index 0000000000..4b39d7e820 --- /dev/null +++ b/sdk/constructive-sdk/src/infra/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/infra/orm/types.ts b/sdk/constructive-sdk/src/infra/orm/types.ts new file mode 100644 index 0000000000..7c1120bcdf --- /dev/null +++ b/sdk/constructive-sdk/src/infra/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/modules/README.md b/sdk/constructive-sdk/src/modules/README.md index e11097fd55..8301f64a41 100644 --- a/sdk/constructive-sdk/src/modules/README.md +++ b/sdk/constructive-sdk/src/modules/README.md @@ -8,7 +8,7 @@ ## Overview -- **Tables:** 61 +- **Tables:** 66 - **Custom queries:** 2 - **Custom mutations:** 10 diff --git a/sdk/constructive-sdk/src/modules/orm/README.md b/sdk/constructive-sdk/src/modules/orm/README.md index 90e60f2bd9..f1c1b5fb18 100644 --- a/sdk/constructive-sdk/src/modules/orm/README.md +++ b/sdk/constructive-sdk/src/modules/orm/README.md @@ -23,23 +23,21 @@ const db = createClient({ |-------|------------| | `defaultIdsModule` | findMany, findOne, create, update, delete | | `membershipTypesModule` | findMany, findOne, create, update, delete | -| `userStateModule` | findMany, findOne, create, update, delete | | `sessionSecretsModule` | findMany, findOne, create, update, delete | -| `configSecretsOrgModule` | findMany, findOne, create, update, delete | | `devicesModule` | findMany, findOne, create, update, delete | | `i18NModule` | findMany, findOne, create, update, delete | -| `userCredentialsModule` | findMany, findOne, create, update, delete | | `userSettingsModule` | findMany, findOne, create, update, delete | -| `configSecretsUserModule` | findMany, findOne, create, update, delete | +| `userStateModule` | findMany, findOne, create, update, delete | +| `userCredentialsModule` | findMany, findOne, create, update, delete | | `connectedAccountsModule` | findMany, findOne, create, update, delete | | `emailsModule` | findMany, findOne, create, update, delete | | `phoneNumbersModule` | findMany, findOne, create, update, delete | | `rateLimitsModule` | findMany, findOne, create, update, delete | | `usersModule` | findMany, findOne, create, update, delete | | `webauthnCredentialsModule` | findMany, findOne, create, update, delete | +| `configSecretsUserModule` | findMany, findOne, create, update, delete | | `cryptoAddressesModule` | findMany, findOne, create, update, delete | | `denormalizedTableField` | findMany, findOne, create, update, delete | -| `identityProvidersModule` | findMany, findOne, create, update, delete | | `rlsModule` | findMany, findOne, create, update, delete | | `blueprint` | findMany, findOne, create, update, delete | | `blueprintTemplate` | findMany, findOne, create, update, delete | @@ -47,40 +45,47 @@ const db = createClient({ | `cryptoAuthModule` | findMany, findOne, create, update, delete | | `sessionsModule` | findMany, findOne, create, update, delete | | `secureTableProvision` | findMany, findOne, create, update, delete | -| `databaseProvisionModule` | findMany, findOne, create, update, delete | -| `configSecretsModule` | findMany, findOne, create, update, delete | +| `identityProvidersModule` | findMany, findOne, create, update, delete | +| `integrationProvidersModule` | findMany, findOne, create, update, delete | +| `dbPoolConfig` | findMany, findOne, create, update, delete | +| `realtimeModule` | findMany, findOne, create, update, delete | +| `infraSecretsModule` | findMany, findOne, create, update, delete | +| `internalSecretsModule` | findMany, findOne, create, update, delete | +| `dbPresetModule` | findMany, findOne, create, update, delete | | `graphModule` | findMany, findOne, create, update, delete | -| `merkleStoreModule` | findMany, findOne, create, update, delete | | `rateLimitMetersModule` | findMany, findOne, create, update, delete | -| `realtimeModule` | findMany, findOne, create, update, delete | +| `infraConfigModule` | findMany, findOne, create, update, delete | | `webauthnAuthModule` | findMany, findOne, create, update, delete | -| `functionInvocationModule` | findMany, findOne, create, update, delete | +| `principalAuthModule` | findMany, findOne, create, update, delete | +| `dbPool` | findMany, findOne, create, update, delete | | `functionModule` | findMany, findOne, create, update, delete | +| `merkleStoreModule` | findMany, findOne, create, update, delete | +| `databaseProvisionModule` | findMany, findOne, create, update, delete | +| `functionInvocationModule` | findMany, findOne, create, update, delete | | `invitesModule` | findMany, findOne, create, update, delete | -| `principalAuthModule` | findMany, findOne, create, update, delete | +| `namespaceModule` | findMany, findOne, create, update, delete | +| `plansModule` | findMany, findOne, create, update, delete | | `computeLogModule` | findMany, findOne, create, update, delete | | `inferenceLogModule` | findMany, findOne, create, update, delete | -| `namespaceModule` | findMany, findOne, create, update, delete | -| `resourceModule` | findMany, findOne, create, update, delete | | `storageLogModule` | findMany, findOne, create, update, delete | | `transferLogModule` | findMany, findOne, create, update, delete | -| `functionDeploymentModule` | findMany, findOne, create, update, delete | -| `plansModule` | findMany, findOne, create, update, delete | | `billingProviderModule` | findMany, findOne, create, update, delete | -| `dbUsageModule` | findMany, findOne, create, update, delete | +| `functionDeploymentModule` | findMany, findOne, create, update, delete | +| `permissionsModule` | findMany, findOne, create, update, delete | | `graphExecutionModule` | findMany, findOne, create, update, delete | | `hierarchyModule` | findMany, findOne, create, update, delete | -| `permissionsModule` | findMany, findOne, create, update, delete | | `notificationsModule` | findMany, findOne, create, update, delete | +| `relationProvision` | findMany, findOne, create, update, delete | | `profilesModule` | findMany, findOne, create, update, delete | | `billingModule` | findMany, findOne, create, update, delete | -| `relationProvision` | findMany, findOne, create, update, delete | +| `resourceModule` | findMany, findOne, create, update, delete | | `userAuthModule` | findMany, findOne, create, update, delete | +| `dbUsageModule` | findMany, findOne, create, update, delete | | `agentModule` | findMany, findOne, create, update, delete | | `limitsModule` | findMany, findOne, create, update, delete | -| `membershipsModule` | findMany, findOne, create, update, delete | | `entityTypeProvision` | findMany, findOne, create, update, delete | | `storageModule` | findMany, findOne, create, update, delete | +| `membershipsModule` | findMany, findOne, create, update, delete | | `eventsModule` | findMany, findOne, create, update, delete | ## Table Operations @@ -148,39 +153,6 @@ const updated = await db.membershipTypesModule.update({ where: { id: '' }, const deleted = await db.membershipTypesModule.delete({ where: { id: '' } }).execute(); ``` -### `db.userStateModule` - -CRUD operations for UserStateModule records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `schemaId` | UUID | Yes | -| `tableId` | UUID | Yes | -| `tableName` | String | Yes | - -**Operations:** - -```typescript -// List all userStateModule records -const items = await db.userStateModule.findMany({ select: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true } }).execute(); - -// Get one by id -const item = await db.userStateModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true } }).execute(); - -// Create -const created = await db.userStateModule.create({ data: { databaseId: '', schemaId: '', tableId: '', tableName: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.userStateModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.userStateModule.delete({ where: { id: '' } }).execute(); -``` - ### `db.sessionSecretsModule` CRUD operations for SessionSecretsModule records. @@ -215,41 +187,6 @@ const updated = await db.sessionSecretsModule.update({ where: { id: '' }, const deleted = await db.sessionSecretsModule.delete({ where: { id: '' } }).execute(); ``` -### `db.configSecretsOrgModule` - -CRUD operations for ConfigSecretsOrgModule records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `schemaId` | UUID | Yes | -| `tableId` | UUID | Yes | -| `tableName` | String | Yes | -| `apiName` | String | Yes | -| `privateApiName` | String | Yes | - -**Operations:** - -```typescript -// List all configSecretsOrgModule records -const items = await db.configSecretsOrgModule.findMany({ select: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, apiName: true, privateApiName: true } }).execute(); - -// Get one by id -const item = await db.configSecretsOrgModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, apiName: true, privateApiName: true } }).execute(); - -// Create -const created = await db.configSecretsOrgModule.create({ data: { databaseId: '', schemaId: '', tableId: '', tableName: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.configSecretsOrgModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.configSecretsOrgModule.delete({ where: { id: '' } }).execute(); -``` - ### `db.devicesModule` CRUD operations for DevicesModule records. @@ -320,9 +257,9 @@ const updated = await db.i18NModule.update({ where: { id: '' }, data: { da const deleted = await db.i18NModule.delete({ where: { id: '' } }).execute(); ``` -### `db.userCredentialsModule` +### `db.userSettingsModule` -CRUD operations for UserCredentialsModule records. +CRUD operations for UserSettingsModule records. **Fields:** @@ -332,32 +269,32 @@ CRUD operations for UserCredentialsModule records. | `databaseId` | UUID | Yes | | `schemaId` | UUID | Yes | | `tableId` | UUID | Yes | +| `ownerTableId` | UUID | Yes | | `tableName` | String | Yes | | `apiName` | String | Yes | -| `privateApiName` | String | Yes | **Operations:** ```typescript -// List all userCredentialsModule records -const items = await db.userCredentialsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, apiName: true, privateApiName: true } }).execute(); +// List all userSettingsModule records +const items = await db.userSettingsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, tableId: true, ownerTableId: true, tableName: true, apiName: true } }).execute(); // Get one by id -const item = await db.userCredentialsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, apiName: true, privateApiName: true } }).execute(); +const item = await db.userSettingsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, tableId: true, ownerTableId: true, tableName: true, apiName: true } }).execute(); // Create -const created = await db.userCredentialsModule.create({ data: { databaseId: '', schemaId: '', tableId: '', tableName: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); +const created = await db.userSettingsModule.create({ data: { databaseId: '', schemaId: '', tableId: '', ownerTableId: '', tableName: '', apiName: '' }, select: { id: true } }).execute(); // Update -const updated = await db.userCredentialsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.userSettingsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.userCredentialsModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.userSettingsModule.delete({ where: { id: '' } }).execute(); ``` -### `db.userSettingsModule` +### `db.userStateModule` -CRUD operations for UserSettingsModule records. +CRUD operations for UserStateModule records. **Fields:** @@ -365,34 +302,33 @@ CRUD operations for UserSettingsModule records. |-------|------|----------| | `id` | UUID | No | | `databaseId` | UUID | Yes | +| `entityField` | String | Yes | | `schemaId` | UUID | Yes | | `tableId` | UUID | Yes | -| `ownerTableId` | UUID | Yes | | `tableName` | String | Yes | -| `apiName` | String | Yes | **Operations:** ```typescript -// List all userSettingsModule records -const items = await db.userSettingsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, tableId: true, ownerTableId: true, tableName: true, apiName: true } }).execute(); +// List all userStateModule records +const items = await db.userStateModule.findMany({ select: { id: true, databaseId: true, entityField: true, schemaId: true, tableId: true, tableName: true } }).execute(); // Get one by id -const item = await db.userSettingsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, tableId: true, ownerTableId: true, tableName: true, apiName: true } }).execute(); +const item = await db.userStateModule.findOne({ id: '', select: { id: true, databaseId: true, entityField: true, schemaId: true, tableId: true, tableName: true } }).execute(); // Create -const created = await db.userSettingsModule.create({ data: { databaseId: '', schemaId: '', tableId: '', ownerTableId: '', tableName: '', apiName: '' }, select: { id: true } }).execute(); +const created = await db.userStateModule.create({ data: { databaseId: '', entityField: '', schemaId: '', tableId: '', tableName: '' }, select: { id: true } }).execute(); // Update -const updated = await db.userSettingsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.userStateModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.userSettingsModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.userStateModule.delete({ where: { id: '' } }).execute(); ``` -### `db.configSecretsUserModule` +### `db.userCredentialsModule` -CRUD operations for ConfigSecretsUserModule records. +CRUD operations for UserCredentialsModule records. **Fields:** @@ -400,30 +336,29 @@ CRUD operations for ConfigSecretsUserModule records. |-------|------|----------| | `id` | UUID | No | | `databaseId` | UUID | Yes | +| `entityField` | String | Yes | | `schemaId` | UUID | Yes | | `tableId` | UUID | Yes | | `tableName` | String | Yes | -| `configDefinitionsTableId` | UUID | Yes | -| `apiName` | String | Yes | | `privateApiName` | String | Yes | **Operations:** ```typescript -// List all configSecretsUserModule records -const items = await db.configSecretsUserModule.findMany({ select: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, configDefinitionsTableId: true, apiName: true, privateApiName: true } }).execute(); +// List all userCredentialsModule records +const items = await db.userCredentialsModule.findMany({ select: { id: true, databaseId: true, entityField: true, schemaId: true, tableId: true, tableName: true, privateApiName: true } }).execute(); // Get one by id -const item = await db.configSecretsUserModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, configDefinitionsTableId: true, apiName: true, privateApiName: true } }).execute(); +const item = await db.userCredentialsModule.findOne({ id: '', select: { id: true, databaseId: true, entityField: true, schemaId: true, tableId: true, tableName: true, privateApiName: true } }).execute(); // Create -const created = await db.configSecretsUserModule.create({ data: { databaseId: '', schemaId: '', tableId: '', tableName: '', configDefinitionsTableId: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); +const created = await db.userCredentialsModule.create({ data: { databaseId: '', entityField: '', schemaId: '', tableId: '', tableName: '', privateApiName: '' }, select: { id: true } }).execute(); // Update -const updated = await db.configSecretsUserModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.userCredentialsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.configSecretsUserModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.userCredentialsModule.delete({ where: { id: '' } }).execute(); ``` ### `db.connectedAccountsModule` @@ -648,6 +583,42 @@ const updated = await db.webauthnCredentialsModule.update({ where: { id: ' const deleted = await db.webauthnCredentialsModule.delete({ where: { id: '' } }).execute(); ``` +### `db.configSecretsUserModule` + +CRUD operations for ConfigSecretsUserModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `entityField` | String | Yes | +| `schemaId` | UUID | Yes | +| `tableId` | UUID | Yes | +| `tableName` | String | Yes | +| `apiName` | String | Yes | +| `privateApiName` | String | Yes | + +**Operations:** + +```typescript +// List all configSecretsUserModule records +const items = await db.configSecretsUserModule.findMany({ select: { id: true, databaseId: true, entityField: true, schemaId: true, tableId: true, tableName: true, apiName: true, privateApiName: true } }).execute(); + +// Get one by id +const item = await db.configSecretsUserModule.findOne({ id: '', select: { id: true, databaseId: true, entityField: true, schemaId: true, tableId: true, tableName: true, apiName: true, privateApiName: true } }).execute(); + +// Create +const created = await db.configSecretsUserModule.create({ data: { databaseId: '', entityField: '', schemaId: '', tableId: '', tableName: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.configSecretsUserModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.configSecretsUserModule.delete({ where: { id: '' } }).execute(); +``` + ### `db.cryptoAddressesModule` CRUD operations for CryptoAddressesModule records. @@ -726,47 +697,6 @@ const updated = await db.denormalizedTableField.update({ where: { id: '' } const deleted = await db.denormalizedTableField.delete({ where: { id: '' } }).execute(); ``` -### `db.identityProvidersModule` - -CRUD operations for IdentityProvidersModule records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `schemaId` | UUID | Yes | -| `privateSchemaId` | UUID | Yes | -| `publicSchemaName` | String | Yes | -| `privateSchemaName` | String | Yes | -| `tableId` | UUID | Yes | -| `tableName` | String | Yes | -| `apiName` | String | Yes | -| `privateApiName` | String | Yes | -| `scope` | String | Yes | -| `prefix` | String | Yes | -| `entityTableId` | UUID | Yes | - -**Operations:** - -```typescript -// List all identityProvidersModule records -const items = await db.identityProvidersModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, tableId: true, tableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true } }).execute(); - -// Get one by id -const item = await db.identityProvidersModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, tableId: true, tableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true } }).execute(); - -// Create -const created = await db.identityProvidersModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', tableId: '', tableName: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.identityProvidersModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.identityProvidersModule.delete({ where: { id: '' } }).execute(); -``` - ### `db.rlsModule` CRUD operations for RlsModule records. @@ -1055,51 +985,51 @@ const updated = await db.secureTableProvision.update({ where: { id: '' }, const deleted = await db.secureTableProvision.delete({ where: { id: '' } }).execute(); ``` -### `db.databaseProvisionModule` +### `db.identityProvidersModule` -CRUD operations for DatabaseProvisionModule records. +CRUD operations for IdentityProvidersModule records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `databaseName` | String | Yes | -| `ownerId` | UUID | Yes | -| `subdomain` | String | Yes | -| `domain` | String | Yes | -| `modules` | JSON | Yes | -| `options` | JSON | Yes | -| `bootstrapUser` | Boolean | Yes | -| `status` | String | Yes | -| `errorMessage` | String | Yes | | `databaseId` | UUID | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | -| `completedAt` | Datetime | Yes | +| `entityField` | String | Yes | +| `schemaId` | UUID | Yes | +| `privateSchemaId` | UUID | Yes | +| `publicSchemaName` | String | Yes | +| `privateSchemaName` | String | Yes | +| `tableId` | UUID | Yes | +| `tableName` | String | Yes | +| `apiName` | String | Yes | +| `privateApiName` | String | Yes | +| `scope` | String | Yes | +| `prefix` | String | Yes | +| `entityTableId` | UUID | Yes | **Operations:** ```typescript -// List all databaseProvisionModule records -const items = await db.databaseProvisionModule.findMany({ select: { id: true, databaseName: true, ownerId: true, subdomain: true, domain: true, modules: true, options: true, bootstrapUser: true, status: true, errorMessage: true, databaseId: true, createdAt: true, updatedAt: true, completedAt: true } }).execute(); +// List all identityProvidersModule records +const items = await db.identityProvidersModule.findMany({ select: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, tableId: true, tableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true } }).execute(); // Get one by id -const item = await db.databaseProvisionModule.findOne({ id: '', select: { id: true, databaseName: true, ownerId: true, subdomain: true, domain: true, modules: true, options: true, bootstrapUser: true, status: true, errorMessage: true, databaseId: true, createdAt: true, updatedAt: true, completedAt: true } }).execute(); +const item = await db.identityProvidersModule.findOne({ id: '', select: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, tableId: true, tableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true } }).execute(); // Create -const created = await db.databaseProvisionModule.create({ data: { databaseName: '', ownerId: '', subdomain: '', domain: '', modules: '', options: '', bootstrapUser: '', status: '', errorMessage: '', databaseId: '', completedAt: '' }, select: { id: true } }).execute(); +const created = await db.identityProvidersModule.create({ data: { databaseId: '', entityField: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', tableId: '', tableName: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.databaseProvisionModule.update({ where: { id: '' }, data: { databaseName: '' }, select: { id: true } }).execute(); +const updated = await db.identityProvidersModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.databaseProvisionModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.identityProvidersModule.delete({ where: { id: '' } }).execute(); ``` -### `db.configSecretsModule` +### `db.integrationProvidersModule` -CRUD operations for ConfigSecretsModule records. +CRUD operations for IntegrationProvidersModule records. **Fields:** @@ -1107,89 +1037,121 @@ CRUD operations for ConfigSecretsModule records. |-------|------|----------| | `id` | UUID | No | | `databaseId` | UUID | Yes | +| `entityField` | String | Yes | | `schemaId` | UUID | Yes | | `privateSchemaId` | UUID | Yes | | `publicSchemaName` | String | Yes | | `privateSchemaName` | String | Yes | | `tableId` | UUID | Yes | -| `configDefinitionsTableId` | UUID | Yes | | `tableName` | String | Yes | | `apiName` | String | Yes | | `privateApiName` | String | Yes | | `scope` | String | Yes | | `prefix` | String | Yes | | `entityTableId` | UUID | Yes | -| `policies` | JSON | Yes | -| `provisions` | JSON | Yes | -| `hasConfig` | Boolean | Yes | **Operations:** ```typescript -// List all configSecretsModule records -const items = await db.configSecretsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, tableId: true, configDefinitionsTableId: true, tableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, policies: true, provisions: true, hasConfig: true } }).execute(); +// List all integrationProvidersModule records +const items = await db.integrationProvidersModule.findMany({ select: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, tableId: true, tableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true } }).execute(); // Get one by id -const item = await db.configSecretsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, tableId: true, configDefinitionsTableId: true, tableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, policies: true, provisions: true, hasConfig: true } }).execute(); +const item = await db.integrationProvidersModule.findOne({ id: '', select: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, tableId: true, tableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true } }).execute(); // Create -const created = await db.configSecretsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', tableId: '', configDefinitionsTableId: '', tableName: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '', policies: '', provisions: '', hasConfig: '' }, select: { id: true } }).execute(); +const created = await db.integrationProvidersModule.create({ data: { databaseId: '', entityField: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', tableId: '', tableName: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.configSecretsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.integrationProvidersModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.configSecretsModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.integrationProvidersModule.delete({ where: { id: '' } }).execute(); ``` -### `db.graphModule` +### `db.dbPoolConfig` -CRUD operations for GraphModule records. +CRUD operations for DbPoolConfig records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `publicSchemaId` | UUID | Yes | -| `privateSchemaId` | UUID | Yes | -| `publicSchemaName` | String | Yes | -| `privateSchemaName` | String | Yes | -| `scope` | String | Yes | -| `prefix` | String | Yes | -| `merkleStoreModuleId` | UUID | Yes | -| `graphsTableId` | UUID | Yes | -| `apiName` | String | Yes | -| `privateApiName` | String | Yes | -| `entityTableId` | UUID | Yes | -| `policies` | JSON | Yes | -| `provisions` | JSON | Yes | -| `defaultPermissions` | String | Yes | +| `presetSlug` | String | Yes | +| `domain` | String | Yes | +| `poolOwnerId` | UUID | Yes | +| `min` | Int | Yes | +| `max` | Int | Yes | +| `warmTtl` | Interval | Yes | +| `enabled` | Boolean | Yes | | `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | **Operations:** ```typescript -// List all graphModule records -const items = await db.graphModule.findMany({ select: { id: true, databaseId: true, publicSchemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, scope: true, prefix: true, merkleStoreModuleId: true, graphsTableId: true, apiName: true, privateApiName: true, entityTableId: true, policies: true, provisions: true, defaultPermissions: true, createdAt: true } }).execute(); +// List all dbPoolConfig records +const items = await db.dbPoolConfig.findMany({ select: { id: true, presetSlug: true, domain: true, poolOwnerId: true, min: true, max: true, warmTtl: true, enabled: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.graphModule.findOne({ id: '', select: { id: true, databaseId: true, publicSchemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, scope: true, prefix: true, merkleStoreModuleId: true, graphsTableId: true, apiName: true, privateApiName: true, entityTableId: true, policies: true, provisions: true, defaultPermissions: true, createdAt: true } }).execute(); +const item = await db.dbPoolConfig.findOne({ id: '', select: { id: true, presetSlug: true, domain: true, poolOwnerId: true, min: true, max: true, warmTtl: true, enabled: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.graphModule.create({ data: { databaseId: '', publicSchemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', scope: '', prefix: '', merkleStoreModuleId: '', graphsTableId: '', apiName: '', privateApiName: '', entityTableId: '', policies: '', provisions: '', defaultPermissions: '' }, select: { id: true } }).execute(); +const created = await db.dbPoolConfig.create({ data: { presetSlug: '', domain: '', poolOwnerId: '', min: '', max: '', warmTtl: '', enabled: '' }, select: { id: true } }).execute(); // Update -const updated = await db.graphModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.dbPoolConfig.update({ where: { id: '' }, data: { presetSlug: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.graphModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.dbPoolConfig.delete({ where: { id: '' } }).execute(); ``` -### `db.merkleStoreModule` +### `db.realtimeModule` -CRUD operations for MerkleStoreModule records. +CRUD operations for RealtimeModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `privateSchemaId` | UUID | Yes | +| `subscriptionsSchemaId` | UUID | Yes | +| `changeLogTableId` | UUID | Yes | +| `listenerNodeTableId` | UUID | Yes | +| `sourceRegistryTableId` | UUID | Yes | +| `retentionHours` | Int | Yes | +| `premake` | Int | Yes | +| `interval` | String | Yes | +| `notifyChannel` | String | Yes | +| `apiName` | String | Yes | +| `privateApiName` | String | Yes | + +**Operations:** + +```typescript +// List all realtimeModule records +const items = await db.realtimeModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, subscriptionsSchemaId: true, changeLogTableId: true, listenerNodeTableId: true, sourceRegistryTableId: true, retentionHours: true, premake: true, interval: true, notifyChannel: true, apiName: true, privateApiName: true } }).execute(); + +// Get one by id +const item = await db.realtimeModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, subscriptionsSchemaId: true, changeLogTableId: true, listenerNodeTableId: true, sourceRegistryTableId: true, retentionHours: true, premake: true, interval: true, notifyChannel: true, apiName: true, privateApiName: true } }).execute(); + +// Create +const created = await db.realtimeModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', subscriptionsSchemaId: '', changeLogTableId: '', listenerNodeTableId: '', sourceRegistryTableId: '', retentionHours: '', premake: '', interval: '', notifyChannel: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.realtimeModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.realtimeModule.delete({ where: { id: '' } }).execute(); +``` + +### `db.infraSecretsModule` + +CRUD operations for InfraSecretsModule records. **Fields:** @@ -1201,35 +1163,169 @@ CRUD operations for MerkleStoreModule records. | `privateSchemaId` | UUID | Yes | | `publicSchemaName` | String | Yes | | `privateSchemaName` | String | Yes | -| `objectTableId` | UUID | Yes | -| `storeTableId` | UUID | Yes | -| `commitTableId` | UUID | Yes | -| `refTableId` | UUID | Yes | +| `secretsTableId` | UUID | Yes | +| `secretsTableName` | String | Yes | +| `apiName` | String | Yes | +| `privateApiName` | String | Yes | +| `scope` | String | Yes | | `prefix` | String | Yes | +| `entityTableId` | UUID | Yes | +| `entityField` | String | Yes | +| `policies` | JSON | Yes | +| `provisions` | JSON | Yes | + +**Operations:** + +```typescript +// List all infraSecretsModule records +const items = await db.infraSecretsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, secretsTableId: true, secretsTableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, entityField: true, policies: true, provisions: true } }).execute(); + +// Get one by id +const item = await db.infraSecretsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, secretsTableId: true, secretsTableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, entityField: true, policies: true, provisions: true } }).execute(); + +// Create +const created = await db.infraSecretsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', secretsTableId: '', secretsTableName: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '', entityField: '', policies: '', provisions: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.infraSecretsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.infraSecretsModule.delete({ where: { id: '' } }).execute(); +``` + +### `db.internalSecretsModule` + +CRUD operations for InternalSecretsModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `privateSchemaId` | UUID | Yes | +| `publicSchemaName` | String | Yes | +| `privateSchemaName` | String | Yes | +| `internalSecretsTableId` | UUID | Yes | +| `internalSecretsTableName` | String | Yes | | `apiName` | String | Yes | | `privateApiName` | String | Yes | | `scope` | String | Yes | -| `functionPrefix` | String | Yes | -| `permissionKey` | String | Yes | +| `prefix` | String | Yes | +| `entityTableId` | UUID | Yes | +| `entityField` | String | Yes | +| `policies` | JSON | Yes | +| `provisions` | JSON | Yes | + +**Operations:** + +```typescript +// List all internalSecretsModule records +const items = await db.internalSecretsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, internalSecretsTableId: true, internalSecretsTableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, entityField: true, policies: true, provisions: true } }).execute(); + +// Get one by id +const item = await db.internalSecretsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, internalSecretsTableId: true, internalSecretsTableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, entityField: true, policies: true, provisions: true } }).execute(); + +// Create +const created = await db.internalSecretsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', internalSecretsTableId: '', internalSecretsTableName: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '', entityField: '', policies: '', provisions: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.internalSecretsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.internalSecretsModule.delete({ where: { id: '' } }).execute(); +``` + +### `db.dbPresetModule` + +CRUD operations for DbPresetModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `publicSchemaId` | UUID | Yes | +| `privateSchemaId` | UUID | Yes | +| `publicSchemaName` | String | Yes | +| `privateSchemaName` | String | Yes | +| `scope` | String | Yes | +| `prefix` | String | Yes | +| `merkleStoreModuleId` | UUID | Yes | +| `dbPresetsTableId` | UUID | Yes | +| `storeName` | String | Yes | +| `apiName` | String | Yes | +| `privateApiName` | String | Yes | +| `entityTableId` | UUID | Yes | +| `policies` | JSON | Yes | +| `provisions` | JSON | Yes | | `createdAt` | Datetime | No | **Operations:** ```typescript -// List all merkleStoreModule records -const items = await db.merkleStoreModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, objectTableId: true, storeTableId: true, commitTableId: true, refTableId: true, prefix: true, apiName: true, privateApiName: true, scope: true, functionPrefix: true, permissionKey: true, createdAt: true } }).execute(); +// List all dbPresetModule records +const items = await db.dbPresetModule.findMany({ select: { id: true, databaseId: true, publicSchemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, scope: true, prefix: true, merkleStoreModuleId: true, dbPresetsTableId: true, storeName: true, apiName: true, privateApiName: true, entityTableId: true, policies: true, provisions: true, createdAt: true } }).execute(); // Get one by id -const item = await db.merkleStoreModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, objectTableId: true, storeTableId: true, commitTableId: true, refTableId: true, prefix: true, apiName: true, privateApiName: true, scope: true, functionPrefix: true, permissionKey: true, createdAt: true } }).execute(); +const item = await db.dbPresetModule.findOne({ id: '', select: { id: true, databaseId: true, publicSchemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, scope: true, prefix: true, merkleStoreModuleId: true, dbPresetsTableId: true, storeName: true, apiName: true, privateApiName: true, entityTableId: true, policies: true, provisions: true, createdAt: true } }).execute(); // Create -const created = await db.merkleStoreModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', objectTableId: '', storeTableId: '', commitTableId: '', refTableId: '', prefix: '', apiName: '', privateApiName: '', scope: '', functionPrefix: '', permissionKey: '' }, select: { id: true } }).execute(); +const created = await db.dbPresetModule.create({ data: { databaseId: '', publicSchemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', scope: '', prefix: '', merkleStoreModuleId: '', dbPresetsTableId: '', storeName: '', apiName: '', privateApiName: '', entityTableId: '', policies: '', provisions: '' }, select: { id: true } }).execute(); // Update -const updated = await db.merkleStoreModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.dbPresetModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.merkleStoreModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.dbPresetModule.delete({ where: { id: '' } }).execute(); +``` + +### `db.graphModule` + +CRUD operations for GraphModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `entityField` | String | Yes | +| `publicSchemaId` | UUID | Yes | +| `privateSchemaId` | UUID | Yes | +| `publicSchemaName` | String | Yes | +| `privateSchemaName` | String | Yes | +| `scope` | String | Yes | +| `prefix` | String | Yes | +| `merkleStoreModuleId` | UUID | Yes | +| `graphsTableId` | UUID | Yes | +| `apiName` | String | Yes | +| `privateApiName` | String | Yes | +| `entityTableId` | UUID | Yes | +| `policies` | JSON | Yes | +| `provisions` | JSON | Yes | +| `defaultPermissions` | String | Yes | +| `createdAt` | Datetime | No | + +**Operations:** + +```typescript +// List all graphModule records +const items = await db.graphModule.findMany({ select: { id: true, databaseId: true, entityField: true, publicSchemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, scope: true, prefix: true, merkleStoreModuleId: true, graphsTableId: true, apiName: true, privateApiName: true, entityTableId: true, policies: true, provisions: true, defaultPermissions: true, createdAt: true } }).execute(); + +// Get one by id +const item = await db.graphModule.findOne({ id: '', select: { id: true, databaseId: true, entityField: true, publicSchemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, scope: true, prefix: true, merkleStoreModuleId: true, graphsTableId: true, apiName: true, privateApiName: true, entityTableId: true, policies: true, provisions: true, defaultPermissions: true, createdAt: true } }).execute(); + +// Create +const created = await db.graphModule.create({ data: { databaseId: '', entityField: '', publicSchemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', scope: '', prefix: '', merkleStoreModuleId: '', graphsTableId: '', apiName: '', privateApiName: '', entityTableId: '', policies: '', provisions: '', defaultPermissions: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.graphModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.graphModule.delete({ where: { id: '' } }).execute(); ``` ### `db.rateLimitMetersModule` @@ -1277,9 +1373,9 @@ const updated = await db.rateLimitMetersModule.update({ where: { id: '' }, const deleted = await db.rateLimitMetersModule.delete({ where: { id: '' } }).execute(); ``` -### `db.realtimeModule` +### `db.infraConfigModule` -CRUD operations for RealtimeModule records. +CRUD operations for InfraConfigModule records. **Fields:** @@ -1287,36 +1383,38 @@ CRUD operations for RealtimeModule records. |-------|------|----------| | `id` | UUID | No | | `databaseId` | UUID | Yes | +| `entityField` | String | Yes | | `schemaId` | UUID | Yes | | `privateSchemaId` | UUID | Yes | -| `subscriptionsSchemaId` | UUID | Yes | -| `changeLogTableId` | UUID | Yes | -| `listenerNodeTableId` | UUID | Yes | -| `sourceRegistryTableId` | UUID | Yes | -| `retentionHours` | Int | Yes | -| `premake` | Int | Yes | -| `interval` | String | Yes | -| `notifyChannel` | String | Yes | +| `publicSchemaName` | String | Yes | +| `privateSchemaName` | String | Yes | +| `configTableId` | UUID | Yes | +| `configTableName` | String | Yes | | `apiName` | String | Yes | | `privateApiName` | String | Yes | +| `scope` | String | Yes | +| `prefix` | String | Yes | +| `entityTableId` | UUID | Yes | +| `policies` | JSON | Yes | +| `provisions` | JSON | Yes | **Operations:** ```typescript -// List all realtimeModule records -const items = await db.realtimeModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, subscriptionsSchemaId: true, changeLogTableId: true, listenerNodeTableId: true, sourceRegistryTableId: true, retentionHours: true, premake: true, interval: true, notifyChannel: true, apiName: true, privateApiName: true } }).execute(); +// List all infraConfigModule records +const items = await db.infraConfigModule.findMany({ select: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, configTableId: true, configTableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, policies: true, provisions: true } }).execute(); // Get one by id -const item = await db.realtimeModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, subscriptionsSchemaId: true, changeLogTableId: true, listenerNodeTableId: true, sourceRegistryTableId: true, retentionHours: true, premake: true, interval: true, notifyChannel: true, apiName: true, privateApiName: true } }).execute(); +const item = await db.infraConfigModule.findOne({ id: '', select: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, configTableId: true, configTableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, policies: true, provisions: true } }).execute(); // Create -const created = await db.realtimeModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', subscriptionsSchemaId: '', changeLogTableId: '', listenerNodeTableId: '', sourceRegistryTableId: '', retentionHours: '', premake: '', interval: '', notifyChannel: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); +const created = await db.infraConfigModule.create({ data: { databaseId: '', entityField: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', configTableId: '', configTableName: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '', policies: '', provisions: '' }, select: { id: true } }).execute(); // Update -const updated = await db.realtimeModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.infraConfigModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.realtimeModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.infraConfigModule.delete({ where: { id: '' } }).execute(); ``` ### `db.webauthnAuthModule` @@ -1363,9 +1461,9 @@ const updated = await db.webauthnAuthModule.update({ where: { id: '' }, da const deleted = await db.webauthnAuthModule.delete({ where: { id: '' } }).execute(); ``` -### `db.functionInvocationModule` +### `db.principalAuthModule` -CRUD operations for FunctionInvocationModule records. +CRUD operations for PrincipalAuthModule records. **Fields:** @@ -1374,39 +1472,80 @@ CRUD operations for FunctionInvocationModule records. | `id` | UUID | No | | `databaseId` | UUID | Yes | | `schemaId` | UUID | Yes | -| `privateSchemaId` | UUID | Yes | -| `publicSchemaName` | String | Yes | -| `privateSchemaName` | String | Yes | -| `invocationsTableId` | UUID | Yes | -| `executionLogsTableId` | UUID | Yes | -| `invocationsTableName` | String | Yes | -| `executionLogsTableName` | String | Yes | +| `principalsTableId` | UUID | Yes | +| `principalEntitiesTableId` | UUID | Yes | +| `principalScopeOverridesTableId` | UUID | Yes | +| `usersTableId` | UUID | Yes | +| `sessionsTableId` | UUID | Yes | +| `sessionCredentialsTableId` | UUID | Yes | +| `auditsTableId` | UUID | Yes | +| `principalsTableName` | String | Yes | +| `createPrincipalFunction` | String | Yes | +| `deletePrincipalFunction` | String | Yes | +| `createOrgPrincipalFunction` | String | Yes | +| `deleteOrgPrincipalFunction` | String | Yes | +| `createOrgApiKeyFunction` | String | Yes | +| `revokeOrgApiKeyFunction` | String | Yes | | `apiName` | String | Yes | -| `privateApiName` | String | Yes | -| `scope` | String | Yes | -| `prefix` | String | Yes | -| `entityTableId` | UUID | Yes | -| `policies` | JSON | Yes | -| `provisions` | JSON | Yes | -| `defaultPermissions` | String | Yes | **Operations:** ```typescript -// List all functionInvocationModule records -const items = await db.functionInvocationModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, invocationsTableId: true, executionLogsTableId: true, invocationsTableName: true, executionLogsTableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, policies: true, provisions: true, defaultPermissions: true } }).execute(); +// List all principalAuthModule records +const items = await db.principalAuthModule.findMany({ select: { id: true, databaseId: true, schemaId: true, principalsTableId: true, principalEntitiesTableId: true, principalScopeOverridesTableId: true, usersTableId: true, sessionsTableId: true, sessionCredentialsTableId: true, auditsTableId: true, principalsTableName: true, createPrincipalFunction: true, deletePrincipalFunction: true, createOrgPrincipalFunction: true, deleteOrgPrincipalFunction: true, createOrgApiKeyFunction: true, revokeOrgApiKeyFunction: true, apiName: true } }).execute(); // Get one by id -const item = await db.functionInvocationModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, invocationsTableId: true, executionLogsTableId: true, invocationsTableName: true, executionLogsTableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, policies: true, provisions: true, defaultPermissions: true } }).execute(); +const item = await db.principalAuthModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, principalsTableId: true, principalEntitiesTableId: true, principalScopeOverridesTableId: true, usersTableId: true, sessionsTableId: true, sessionCredentialsTableId: true, auditsTableId: true, principalsTableName: true, createPrincipalFunction: true, deletePrincipalFunction: true, createOrgPrincipalFunction: true, deleteOrgPrincipalFunction: true, createOrgApiKeyFunction: true, revokeOrgApiKeyFunction: true, apiName: true } }).execute(); // Create -const created = await db.functionInvocationModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', invocationsTableId: '', executionLogsTableId: '', invocationsTableName: '', executionLogsTableName: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '', policies: '', provisions: '', defaultPermissions: '' }, select: { id: true } }).execute(); +const created = await db.principalAuthModule.create({ data: { databaseId: '', schemaId: '', principalsTableId: '', principalEntitiesTableId: '', principalScopeOverridesTableId: '', usersTableId: '', sessionsTableId: '', sessionCredentialsTableId: '', auditsTableId: '', principalsTableName: '', createPrincipalFunction: '', deletePrincipalFunction: '', createOrgPrincipalFunction: '', deleteOrgPrincipalFunction: '', createOrgApiKeyFunction: '', revokeOrgApiKeyFunction: '', apiName: '' }, select: { id: true } }).execute(); // Update -const updated = await db.functionInvocationModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.principalAuthModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.functionInvocationModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.principalAuthModule.delete({ where: { id: '' } }).execute(); +``` + +### `db.dbPool` + +CRUD operations for DbPool records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `presetSlug` | String | Yes | +| `presetCommitId` | UUID | Yes | +| `databaseId` | UUID | Yes | +| `status` | String | Yes | +| `errorMessage` | String | Yes | +| `expiresAt` | Datetime | Yes | +| `claimedBy` | UUID | Yes | +| `claimedAt` | Datetime | Yes | +| `bootstrapStatus` | String | Yes | +| `bootstrapError` | String | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all dbPool records +const items = await db.dbPool.findMany({ select: { id: true, presetSlug: true, presetCommitId: true, databaseId: true, status: true, errorMessage: true, expiresAt: true, claimedBy: true, claimedAt: true, bootstrapStatus: true, bootstrapError: true, createdAt: true, updatedAt: true } }).execute(); + +// Get one by id +const item = await db.dbPool.findOne({ id: '', select: { id: true, presetSlug: true, presetCommitId: true, databaseId: true, status: true, errorMessage: true, expiresAt: true, claimedBy: true, claimedAt: true, bootstrapStatus: true, bootstrapError: true, createdAt: true, updatedAt: true } }).execute(); + +// Create +const created = await db.dbPool.create({ data: { presetSlug: '', presetCommitId: '', databaseId: '', status: '', errorMessage: '', expiresAt: '', claimedBy: '', claimedAt: '', bootstrapStatus: '', bootstrapError: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.dbPool.update({ where: { id: '' }, data: { presetSlug: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.dbPool.delete({ where: { id: '' } }).execute(); ``` ### `db.functionModule` @@ -1419,14 +1558,13 @@ CRUD operations for FunctionModule records. |-------|------|----------| | `id` | UUID | No | | `databaseId` | UUID | Yes | +| `entityField` | String | Yes | | `schemaId` | UUID | Yes | | `privateSchemaId` | UUID | Yes | | `publicSchemaName` | String | Yes | | `privateSchemaName` | String | Yes | | `definitionsTableId` | UUID | Yes | -| `secretDefinitionsTableId` | UUID | Yes | | `definitionsTableName` | String | Yes | -| `secretDefinitionsTableName` | String | Yes | | `apiName` | String | Yes | | `privateApiName` | String | Yes | | `scope` | String | Yes | @@ -1440,13 +1578,13 @@ CRUD operations for FunctionModule records. ```typescript // List all functionModule records -const items = await db.functionModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, definitionsTableId: true, secretDefinitionsTableId: true, definitionsTableName: true, secretDefinitionsTableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, policies: true, provisions: true, defaultPermissions: true } }).execute(); +const items = await db.functionModule.findMany({ select: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, definitionsTableId: true, definitionsTableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, policies: true, provisions: true, defaultPermissions: true } }).execute(); // Get one by id -const item = await db.functionModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, definitionsTableId: true, secretDefinitionsTableId: true, definitionsTableName: true, secretDefinitionsTableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, policies: true, provisions: true, defaultPermissions: true } }).execute(); +const item = await db.functionModule.findOne({ id: '', select: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, definitionsTableId: true, definitionsTableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, policies: true, provisions: true, defaultPermissions: true } }).execute(); // Create -const created = await db.functionModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', definitionsTableId: '', secretDefinitionsTableId: '', definitionsTableName: '', secretDefinitionsTableName: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '', policies: '', provisions: '', defaultPermissions: '' }, select: { id: true } }).execute(); +const created = await db.functionModule.create({ data: { databaseId: '', entityField: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', definitionsTableId: '', definitionsTableName: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '', policies: '', provisions: '', defaultPermissions: '' }, select: { id: true } }).execute(); // Update const updated = await db.functionModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); @@ -1455,9 +1593,9 @@ const updated = await db.functionModule.update({ where: { id: '' }, data: const deleted = await db.functionModule.delete({ where: { id: '' } }).execute(); ``` -### `db.invitesModule` +### `db.merkleStoreModule` -CRUD operations for InvitesModule records. +CRUD operations for MerkleStoreModule records. **Fields:** @@ -1465,91 +1603,91 @@ CRUD operations for InvitesModule records. |-------|------|----------| | `id` | UUID | No | | `databaseId` | UUID | Yes | +| `entityField` | String | Yes | | `schemaId` | UUID | Yes | | `privateSchemaId` | UUID | Yes | | `publicSchemaName` | String | Yes | | `privateSchemaName` | String | Yes | -| `emailsTableId` | UUID | Yes | -| `usersTableId` | UUID | Yes | -| `invitesTableId` | UUID | Yes | -| `claimedInvitesTableId` | UUID | Yes | -| `invitesTableName` | String | Yes | -| `claimedInvitesTableName` | String | Yes | -| `submitInviteCodeFunction` | String | Yes | -| `scope` | String | Yes | +| `objectTableId` | UUID | Yes | +| `storeTableId` | UUID | Yes | +| `commitTableId` | UUID | Yes | +| `refTableId` | UUID | Yes | | `prefix` | String | Yes | -| `entityTableId` | UUID | Yes | | `apiName` | String | Yes | | `privateApiName` | String | Yes | +| `scope` | String | Yes | +| `functionPrefix` | String | Yes | +| `permissionKey` | String | Yes | +| `createdAt` | Datetime | No | **Operations:** ```typescript -// List all invitesModule records -const items = await db.invitesModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, emailsTableId: true, usersTableId: true, invitesTableId: true, claimedInvitesTableId: true, invitesTableName: true, claimedInvitesTableName: true, submitInviteCodeFunction: true, scope: true, prefix: true, entityTableId: true, apiName: true, privateApiName: true } }).execute(); +// List all merkleStoreModule records +const items = await db.merkleStoreModule.findMany({ select: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, objectTableId: true, storeTableId: true, commitTableId: true, refTableId: true, prefix: true, apiName: true, privateApiName: true, scope: true, functionPrefix: true, permissionKey: true, createdAt: true } }).execute(); // Get one by id -const item = await db.invitesModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, emailsTableId: true, usersTableId: true, invitesTableId: true, claimedInvitesTableId: true, invitesTableName: true, claimedInvitesTableName: true, submitInviteCodeFunction: true, scope: true, prefix: true, entityTableId: true, apiName: true, privateApiName: true } }).execute(); +const item = await db.merkleStoreModule.findOne({ id: '', select: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, objectTableId: true, storeTableId: true, commitTableId: true, refTableId: true, prefix: true, apiName: true, privateApiName: true, scope: true, functionPrefix: true, permissionKey: true, createdAt: true } }).execute(); // Create -const created = await db.invitesModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', emailsTableId: '', usersTableId: '', invitesTableId: '', claimedInvitesTableId: '', invitesTableName: '', claimedInvitesTableName: '', submitInviteCodeFunction: '', scope: '', prefix: '', entityTableId: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); +const created = await db.merkleStoreModule.create({ data: { databaseId: '', entityField: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', objectTableId: '', storeTableId: '', commitTableId: '', refTableId: '', prefix: '', apiName: '', privateApiName: '', scope: '', functionPrefix: '', permissionKey: '' }, select: { id: true } }).execute(); // Update -const updated = await db.invitesModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.merkleStoreModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.invitesModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.merkleStoreModule.delete({ where: { id: '' } }).execute(); ``` -### `db.principalAuthModule` +### `db.databaseProvisionModule` -CRUD operations for PrincipalAuthModule records. +CRUD operations for DatabaseProvisionModule records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | +| `databaseName` | String | Yes | +| `ownerId` | UUID | Yes | +| `subdomain` | String | Yes | +| `domain` | String | Yes | +| `modules` | JSON | Yes | +| `options` | JSON | Yes | +| `bootstrapUser` | Boolean | Yes | +| `status` | String | Yes | +| `errorMessage` | String | Yes | +| `sourceDatabaseId` | UUID | Yes | +| `bootstrapStatus` | String | Yes | +| `bootstrapError` | String | Yes | | `databaseId` | UUID | Yes | -| `schemaId` | UUID | Yes | -| `principalsTableId` | UUID | Yes | -| `principalEntitiesTableId` | UUID | Yes | -| `principalScopeOverridesTableId` | UUID | Yes | -| `usersTableId` | UUID | Yes | -| `sessionsTableId` | UUID | Yes | -| `sessionCredentialsTableId` | UUID | Yes | -| `auditsTableId` | UUID | Yes | -| `principalsTableName` | String | Yes | -| `createPrincipalFunction` | String | Yes | -| `deletePrincipalFunction` | String | Yes | -| `createOrgPrincipalFunction` | String | Yes | -| `deleteOrgPrincipalFunction` | String | Yes | -| `createOrgApiKeyFunction` | String | Yes | -| `revokeOrgApiKeyFunction` | String | Yes | -| `apiName` | String | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | +| `completedAt` | Datetime | Yes | +| `fulfilledAt` | Datetime | Yes | **Operations:** ```typescript -// List all principalAuthModule records -const items = await db.principalAuthModule.findMany({ select: { id: true, databaseId: true, schemaId: true, principalsTableId: true, principalEntitiesTableId: true, principalScopeOverridesTableId: true, usersTableId: true, sessionsTableId: true, sessionCredentialsTableId: true, auditsTableId: true, principalsTableName: true, createPrincipalFunction: true, deletePrincipalFunction: true, createOrgPrincipalFunction: true, deleteOrgPrincipalFunction: true, createOrgApiKeyFunction: true, revokeOrgApiKeyFunction: true, apiName: true } }).execute(); +// List all databaseProvisionModule records +const items = await db.databaseProvisionModule.findMany({ select: { id: true, databaseName: true, ownerId: true, subdomain: true, domain: true, modules: true, options: true, bootstrapUser: true, status: true, errorMessage: true, sourceDatabaseId: true, bootstrapStatus: true, bootstrapError: true, databaseId: true, createdAt: true, updatedAt: true, completedAt: true, fulfilledAt: true } }).execute(); // Get one by id -const item = await db.principalAuthModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, principalsTableId: true, principalEntitiesTableId: true, principalScopeOverridesTableId: true, usersTableId: true, sessionsTableId: true, sessionCredentialsTableId: true, auditsTableId: true, principalsTableName: true, createPrincipalFunction: true, deletePrincipalFunction: true, createOrgPrincipalFunction: true, deleteOrgPrincipalFunction: true, createOrgApiKeyFunction: true, revokeOrgApiKeyFunction: true, apiName: true } }).execute(); +const item = await db.databaseProvisionModule.findOne({ id: '', select: { id: true, databaseName: true, ownerId: true, subdomain: true, domain: true, modules: true, options: true, bootstrapUser: true, status: true, errorMessage: true, sourceDatabaseId: true, bootstrapStatus: true, bootstrapError: true, databaseId: true, createdAt: true, updatedAt: true, completedAt: true, fulfilledAt: true } }).execute(); // Create -const created = await db.principalAuthModule.create({ data: { databaseId: '', schemaId: '', principalsTableId: '', principalEntitiesTableId: '', principalScopeOverridesTableId: '', usersTableId: '', sessionsTableId: '', sessionCredentialsTableId: '', auditsTableId: '', principalsTableName: '', createPrincipalFunction: '', deletePrincipalFunction: '', createOrgPrincipalFunction: '', deleteOrgPrincipalFunction: '', createOrgApiKeyFunction: '', revokeOrgApiKeyFunction: '', apiName: '' }, select: { id: true } }).execute(); +const created = await db.databaseProvisionModule.create({ data: { databaseName: '', ownerId: '', subdomain: '', domain: '', modules: '', options: '', bootstrapUser: '', status: '', errorMessage: '', sourceDatabaseId: '', bootstrapStatus: '', bootstrapError: '', databaseId: '', completedAt: '', fulfilledAt: '' }, select: { id: true } }).execute(); // Update -const updated = await db.principalAuthModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.databaseProvisionModule.update({ where: { id: '' }, data: { databaseName: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.principalAuthModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.databaseProvisionModule.delete({ where: { id: '' } }).execute(); ``` -### `db.computeLogModule` +### `db.functionInvocationModule` -CRUD operations for ComputeLogModule records. +CRUD operations for FunctionInvocationModule records. **Fields:** @@ -1557,46 +1695,46 @@ CRUD operations for ComputeLogModule records. |-------|------|----------| | `id` | UUID | No | | `databaseId` | UUID | Yes | +| `entityField` | String | Yes | | `schemaId` | UUID | Yes | | `privateSchemaId` | UUID | Yes | | `publicSchemaName` | String | Yes | | `privateSchemaName` | String | Yes | -| `computeLogTableId` | UUID | Yes | -| `computeLogTableName` | String | Yes | -| `usageDailyTableId` | UUID | Yes | -| `usageDailyTableName` | String | Yes | -| `interval` | String | Yes | -| `retention` | String | Yes | -| `premake` | Int | Yes | -| `scope` | String | Yes | -| `actorFkTableId` | UUID | Yes | -| `entityFkTableId` | UUID | Yes | -| `prefix` | String | Yes | +| `invocationsTableId` | UUID | Yes | +| `executionLogsTableId` | UUID | Yes | +| `invocationsTableName` | String | Yes | +| `executionLogsTableName` | String | Yes | | `apiName` | String | Yes | | `privateApiName` | String | Yes | +| `scope` | String | Yes | +| `prefix` | String | Yes | +| `entityTableId` | UUID | Yes | +| `policies` | JSON | Yes | +| `provisions` | JSON | Yes | +| `defaultPermissions` | String | Yes | **Operations:** ```typescript -// List all computeLogModule records -const items = await db.computeLogModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, computeLogTableId: true, computeLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } }).execute(); +// List all functionInvocationModule records +const items = await db.functionInvocationModule.findMany({ select: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, invocationsTableId: true, executionLogsTableId: true, invocationsTableName: true, executionLogsTableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, policies: true, provisions: true, defaultPermissions: true } }).execute(); // Get one by id -const item = await db.computeLogModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, computeLogTableId: true, computeLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } }).execute(); +const item = await db.functionInvocationModule.findOne({ id: '', select: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, invocationsTableId: true, executionLogsTableId: true, invocationsTableName: true, executionLogsTableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, policies: true, provisions: true, defaultPermissions: true } }).execute(); // Create -const created = await db.computeLogModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', computeLogTableId: '', computeLogTableName: '', usageDailyTableId: '', usageDailyTableName: '', interval: '', retention: '', premake: '', scope: '', actorFkTableId: '', entityFkTableId: '', prefix: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); +const created = await db.functionInvocationModule.create({ data: { databaseId: '', entityField: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', invocationsTableId: '', executionLogsTableId: '', invocationsTableName: '', executionLogsTableName: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '', policies: '', provisions: '', defaultPermissions: '' }, select: { id: true } }).execute(); // Update -const updated = await db.computeLogModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.functionInvocationModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.computeLogModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.functionInvocationModule.delete({ where: { id: '' } }).execute(); ``` -### `db.inferenceLogModule` +### `db.invitesModule` -CRUD operations for InferenceLogModule records. +CRUD operations for InvitesModule records. **Fields:** @@ -1604,41 +1742,41 @@ CRUD operations for InferenceLogModule records. |-------|------|----------| | `id` | UUID | No | | `databaseId` | UUID | Yes | +| `entityField` | String | Yes | | `schemaId` | UUID | Yes | | `privateSchemaId` | UUID | Yes | | `publicSchemaName` | String | Yes | | `privateSchemaName` | String | Yes | -| `inferenceLogTableId` | UUID | Yes | -| `inferenceLogTableName` | String | Yes | -| `usageDailyTableId` | UUID | Yes | -| `usageDailyTableName` | String | Yes | -| `interval` | String | Yes | -| `retention` | String | Yes | -| `premake` | Int | Yes | +| `emailsTableId` | UUID | Yes | +| `usersTableId` | UUID | Yes | +| `invitesTableId` | UUID | Yes | +| `claimedInvitesTableId` | UUID | Yes | +| `invitesTableName` | String | Yes | +| `claimedInvitesTableName` | String | Yes | +| `submitInviteCodeFunction` | String | Yes | | `scope` | String | Yes | -| `actorFkTableId` | UUID | Yes | -| `entityFkTableId` | UUID | Yes | | `prefix` | String | Yes | +| `entityTableId` | UUID | Yes | | `apiName` | String | Yes | | `privateApiName` | String | Yes | **Operations:** ```typescript -// List all inferenceLogModule records -const items = await db.inferenceLogModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, inferenceLogTableId: true, inferenceLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } }).execute(); +// List all invitesModule records +const items = await db.invitesModule.findMany({ select: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, emailsTableId: true, usersTableId: true, invitesTableId: true, claimedInvitesTableId: true, invitesTableName: true, claimedInvitesTableName: true, submitInviteCodeFunction: true, scope: true, prefix: true, entityTableId: true, apiName: true, privateApiName: true } }).execute(); // Get one by id -const item = await db.inferenceLogModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, inferenceLogTableId: true, inferenceLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } }).execute(); +const item = await db.invitesModule.findOne({ id: '', select: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, emailsTableId: true, usersTableId: true, invitesTableId: true, claimedInvitesTableId: true, invitesTableName: true, claimedInvitesTableName: true, submitInviteCodeFunction: true, scope: true, prefix: true, entityTableId: true, apiName: true, privateApiName: true } }).execute(); // Create -const created = await db.inferenceLogModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', inferenceLogTableId: '', inferenceLogTableName: '', usageDailyTableId: '', usageDailyTableName: '', interval: '', retention: '', premake: '', scope: '', actorFkTableId: '', entityFkTableId: '', prefix: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); +const created = await db.invitesModule.create({ data: { databaseId: '', entityField: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', emailsTableId: '', usersTableId: '', invitesTableId: '', claimedInvitesTableId: '', invitesTableName: '', claimedInvitesTableName: '', submitInviteCodeFunction: '', scope: '', prefix: '', entityTableId: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); // Update -const updated = await db.inferenceLogModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.invitesModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.inferenceLogModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.invitesModule.delete({ where: { id: '' } }).execute(); ``` ### `db.namespaceModule` @@ -1651,6 +1789,7 @@ CRUD operations for NamespaceModule records. |-------|------|----------| | `id` | UUID | No | | `databaseId` | UUID | Yes | +| `entityField` | String | Yes | | `schemaId` | UUID | Yes | | `privateSchemaId` | UUID | Yes | | `publicSchemaName` | String | Yes | @@ -1664,7 +1803,6 @@ CRUD operations for NamespaceModule records. | `scope` | String | Yes | | `prefix` | String | Yes | | `entityTableId` | UUID | Yes | -| `platformNamespacesTableId` | UUID | Yes | | `policies` | JSON | Yes | | `provisions` | JSON | Yes | | `defaultPermissions` | String | Yes | @@ -1673,13 +1811,13 @@ CRUD operations for NamespaceModule records. ```typescript // List all namespaceModule records -const items = await db.namespaceModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, namespacesTableId: true, namespaceEventsTableId: true, namespacesTableName: true, namespaceEventsTableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, platformNamespacesTableId: true, policies: true, provisions: true, defaultPermissions: true } }).execute(); +const items = await db.namespaceModule.findMany({ select: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, namespacesTableId: true, namespaceEventsTableId: true, namespacesTableName: true, namespaceEventsTableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, policies: true, provisions: true, defaultPermissions: true } }).execute(); // Get one by id -const item = await db.namespaceModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, namespacesTableId: true, namespaceEventsTableId: true, namespacesTableName: true, namespaceEventsTableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, platformNamespacesTableId: true, policies: true, provisions: true, defaultPermissions: true } }).execute(); +const item = await db.namespaceModule.findOne({ id: '', select: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, namespacesTableId: true, namespaceEventsTableId: true, namespacesTableName: true, namespaceEventsTableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, policies: true, provisions: true, defaultPermissions: true } }).execute(); // Create -const created = await db.namespaceModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', namespacesTableId: '', namespaceEventsTableId: '', namespacesTableName: '', namespaceEventsTableName: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '', platformNamespacesTableId: '', policies: '', provisions: '', defaultPermissions: '' }, select: { id: true } }).execute(); +const created = await db.namespaceModule.create({ data: { databaseId: '', entityField: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', namespacesTableId: '', namespaceEventsTableId: '', namespacesTableName: '', namespaceEventsTableName: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '', policies: '', provisions: '', defaultPermissions: '' }, select: { id: true } }).execute(); // Update const updated = await db.namespaceModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); @@ -1688,9 +1826,9 @@ const updated = await db.namespaceModule.update({ where: { id: '' }, data: const deleted = await db.namespaceModule.delete({ where: { id: '' } }).execute(); ``` -### `db.resourceModule` +### `db.plansModule` -CRUD operations for ResourceModule records. +CRUD operations for PlansModule records. **Fields:** @@ -1702,42 +1840,44 @@ CRUD operations for ResourceModule records. | `privateSchemaId` | UUID | Yes | | `publicSchemaName` | String | Yes | | `privateSchemaName` | String | Yes | -| `resourcesTableId` | UUID | Yes | -| `resourceEventsTableId` | UUID | Yes | -| `resourcesTableName` | String | Yes | -| `resourceEventsTableName` | String | Yes | +| `plansTableId` | UUID | Yes | +| `plansTableName` | String | Yes | +| `planLimitsTableId` | UUID | Yes | +| `planLimitsTableName` | String | Yes | +| `planPricingTableId` | UUID | Yes | +| `planOverridesTableId` | UUID | Yes | +| `planMeterLimitsTableId` | UUID | Yes | +| `planCapsTableId` | UUID | Yes | +| `applyPlanFunction` | String | Yes | +| `applyPlanAggregateFunction` | String | Yes | +| `applyBillingPlanFunction` | String | Yes | +| `applyPlanCapsFunction` | String | Yes | +| `prefix` | String | Yes | | `apiName` | String | Yes | | `privateApiName` | String | Yes | -| `scope` | String | Yes | -| `prefix` | String | Yes | -| `entityTableId` | UUID | Yes | -| `namespaceModuleId` | UUID | Yes | -| `policies` | JSON | Yes | -| `provisions` | JSON | Yes | -| `defaultPermissions` | String | Yes | **Operations:** ```typescript -// List all resourceModule records -const items = await db.resourceModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, resourcesTableId: true, resourceEventsTableId: true, resourcesTableName: true, resourceEventsTableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, namespaceModuleId: true, policies: true, provisions: true, defaultPermissions: true } }).execute(); +// List all plansModule records +const items = await db.plansModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, plansTableId: true, plansTableName: true, planLimitsTableId: true, planLimitsTableName: true, planPricingTableId: true, planOverridesTableId: true, planMeterLimitsTableId: true, planCapsTableId: true, applyPlanFunction: true, applyPlanAggregateFunction: true, applyBillingPlanFunction: true, applyPlanCapsFunction: true, prefix: true, apiName: true, privateApiName: true } }).execute(); // Get one by id -const item = await db.resourceModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, resourcesTableId: true, resourceEventsTableId: true, resourcesTableName: true, resourceEventsTableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, namespaceModuleId: true, policies: true, provisions: true, defaultPermissions: true } }).execute(); +const item = await db.plansModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, plansTableId: true, plansTableName: true, planLimitsTableId: true, planLimitsTableName: true, planPricingTableId: true, planOverridesTableId: true, planMeterLimitsTableId: true, planCapsTableId: true, applyPlanFunction: true, applyPlanAggregateFunction: true, applyBillingPlanFunction: true, applyPlanCapsFunction: true, prefix: true, apiName: true, privateApiName: true } }).execute(); // Create -const created = await db.resourceModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', resourcesTableId: '', resourceEventsTableId: '', resourcesTableName: '', resourceEventsTableName: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '', namespaceModuleId: '', policies: '', provisions: '', defaultPermissions: '' }, select: { id: true } }).execute(); +const created = await db.plansModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', plansTableId: '', plansTableName: '', planLimitsTableId: '', planLimitsTableName: '', planPricingTableId: '', planOverridesTableId: '', planMeterLimitsTableId: '', planCapsTableId: '', applyPlanFunction: '', applyPlanAggregateFunction: '', applyBillingPlanFunction: '', applyPlanCapsFunction: '', prefix: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); // Update -const updated = await db.resourceModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.plansModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.resourceModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.plansModule.delete({ where: { id: '' } }).execute(); ``` -### `db.storageLogModule` +### `db.computeLogModule` -CRUD operations for StorageLogModule records. +CRUD operations for ComputeLogModule records. **Fields:** @@ -1745,12 +1885,13 @@ CRUD operations for StorageLogModule records. |-------|------|----------| | `id` | UUID | No | | `databaseId` | UUID | Yes | +| `entityField` | String | Yes | | `schemaId` | UUID | Yes | | `privateSchemaId` | UUID | Yes | | `publicSchemaName` | String | Yes | | `privateSchemaName` | String | Yes | -| `storageLogTableId` | UUID | Yes | -| `storageLogTableName` | String | Yes | +| `computeLogTableId` | UUID | Yes | +| `computeLogTableName` | String | Yes | | `usageDailyTableId` | UUID | Yes | | `usageDailyTableName` | String | Yes | | `interval` | String | Yes | @@ -1766,25 +1907,25 @@ CRUD operations for StorageLogModule records. **Operations:** ```typescript -// List all storageLogModule records -const items = await db.storageLogModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, storageLogTableId: true, storageLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } }).execute(); +// List all computeLogModule records +const items = await db.computeLogModule.findMany({ select: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, computeLogTableId: true, computeLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } }).execute(); // Get one by id -const item = await db.storageLogModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, storageLogTableId: true, storageLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } }).execute(); +const item = await db.computeLogModule.findOne({ id: '', select: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, computeLogTableId: true, computeLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } }).execute(); // Create -const created = await db.storageLogModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', storageLogTableId: '', storageLogTableName: '', usageDailyTableId: '', usageDailyTableName: '', interval: '', retention: '', premake: '', scope: '', actorFkTableId: '', entityFkTableId: '', prefix: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); +const created = await db.computeLogModule.create({ data: { databaseId: '', entityField: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', computeLogTableId: '', computeLogTableName: '', usageDailyTableId: '', usageDailyTableName: '', interval: '', retention: '', premake: '', scope: '', actorFkTableId: '', entityFkTableId: '', prefix: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); // Update -const updated = await db.storageLogModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.computeLogModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.storageLogModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.computeLogModule.delete({ where: { id: '' } }).execute(); ``` -### `db.transferLogModule` +### `db.inferenceLogModule` -CRUD operations for TransferLogModule records. +CRUD operations for InferenceLogModule records. **Fields:** @@ -1792,12 +1933,13 @@ CRUD operations for TransferLogModule records. |-------|------|----------| | `id` | UUID | No | | `databaseId` | UUID | Yes | +| `entityField` | String | Yes | | `schemaId` | UUID | Yes | | `privateSchemaId` | UUID | Yes | | `publicSchemaName` | String | Yes | | `privateSchemaName` | String | Yes | -| `transferLogTableId` | UUID | Yes | -| `transferLogTableName` | String | Yes | +| `inferenceLogTableId` | UUID | Yes | +| `inferenceLogTableName` | String | Yes | | `usageDailyTableId` | UUID | Yes | | `usageDailyTableName` | String | Yes | | `interval` | String | Yes | @@ -1813,25 +1955,25 @@ CRUD operations for TransferLogModule records. **Operations:** ```typescript -// List all transferLogModule records -const items = await db.transferLogModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, transferLogTableId: true, transferLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } }).execute(); +// List all inferenceLogModule records +const items = await db.inferenceLogModule.findMany({ select: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, inferenceLogTableId: true, inferenceLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } }).execute(); // Get one by id -const item = await db.transferLogModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, transferLogTableId: true, transferLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } }).execute(); +const item = await db.inferenceLogModule.findOne({ id: '', select: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, inferenceLogTableId: true, inferenceLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } }).execute(); // Create -const created = await db.transferLogModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', transferLogTableId: '', transferLogTableName: '', usageDailyTableId: '', usageDailyTableName: '', interval: '', retention: '', premake: '', scope: '', actorFkTableId: '', entityFkTableId: '', prefix: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); +const created = await db.inferenceLogModule.create({ data: { databaseId: '', entityField: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', inferenceLogTableId: '', inferenceLogTableName: '', usageDailyTableId: '', usageDailyTableName: '', interval: '', retention: '', premake: '', scope: '', actorFkTableId: '', entityFkTableId: '', prefix: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); // Update -const updated = await db.transferLogModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.inferenceLogModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.transferLogModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.inferenceLogModule.delete({ where: { id: '' } }).execute(); ``` -### `db.functionDeploymentModule` +### `db.storageLogModule` -CRUD operations for FunctionDeploymentModule records. +CRUD operations for StorageLogModule records. **Fields:** @@ -1839,47 +1981,47 @@ CRUD operations for FunctionDeploymentModule records. |-------|------|----------| | `id` | UUID | No | | `databaseId` | UUID | Yes | +| `entityField` | String | Yes | | `schemaId` | UUID | Yes | | `privateSchemaId` | UUID | Yes | | `publicSchemaName` | String | Yes | | `privateSchemaName` | String | Yes | -| `deploymentsTableId` | UUID | Yes | -| `deploymentEventsTableId` | UUID | Yes | -| `deploymentsTableName` | String | Yes | -| `deploymentEventsTableName` | String | Yes | -| `apiName` | String | Yes | -| `privateApiName` | String | Yes | +| `storageLogTableId` | UUID | Yes | +| `storageLogTableName` | String | Yes | +| `usageDailyTableId` | UUID | Yes | +| `usageDailyTableName` | String | Yes | +| `interval` | String | Yes | +| `retention` | String | Yes | +| `premake` | Int | Yes | | `scope` | String | Yes | +| `actorFkTableId` | UUID | Yes | +| `entityFkTableId` | UUID | Yes | | `prefix` | String | Yes | -| `entityTableId` | UUID | Yes | -| `functionModuleId` | UUID | Yes | -| `namespaceModuleId` | UUID | Yes | -| `policies` | JSON | Yes | -| `provisions` | JSON | Yes | -| `defaultPermissions` | String | Yes | +| `apiName` | String | Yes | +| `privateApiName` | String | Yes | **Operations:** ```typescript -// List all functionDeploymentModule records -const items = await db.functionDeploymentModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, deploymentsTableId: true, deploymentEventsTableId: true, deploymentsTableName: true, deploymentEventsTableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, functionModuleId: true, namespaceModuleId: true, policies: true, provisions: true, defaultPermissions: true } }).execute(); +// List all storageLogModule records +const items = await db.storageLogModule.findMany({ select: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, storageLogTableId: true, storageLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } }).execute(); // Get one by id -const item = await db.functionDeploymentModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, deploymentsTableId: true, deploymentEventsTableId: true, deploymentsTableName: true, deploymentEventsTableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, functionModuleId: true, namespaceModuleId: true, policies: true, provisions: true, defaultPermissions: true } }).execute(); +const item = await db.storageLogModule.findOne({ id: '', select: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, storageLogTableId: true, storageLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } }).execute(); // Create -const created = await db.functionDeploymentModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', deploymentsTableId: '', deploymentEventsTableId: '', deploymentsTableName: '', deploymentEventsTableName: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '', functionModuleId: '', namespaceModuleId: '', policies: '', provisions: '', defaultPermissions: '' }, select: { id: true } }).execute(); +const created = await db.storageLogModule.create({ data: { databaseId: '', entityField: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', storageLogTableId: '', storageLogTableName: '', usageDailyTableId: '', usageDailyTableName: '', interval: '', retention: '', premake: '', scope: '', actorFkTableId: '', entityFkTableId: '', prefix: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); // Update -const updated = await db.functionDeploymentModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.storageLogModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.functionDeploymentModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.storageLogModule.delete({ where: { id: '' } }).execute(); ``` -### `db.plansModule` +### `db.transferLogModule` -CRUD operations for PlansModule records. +CRUD operations for TransferLogModule records. **Fields:** @@ -1887,22 +2029,21 @@ CRUD operations for PlansModule records. |-------|------|----------| | `id` | UUID | No | | `databaseId` | UUID | Yes | +| `entityField` | String | Yes | | `schemaId` | UUID | Yes | | `privateSchemaId` | UUID | Yes | | `publicSchemaName` | String | Yes | | `privateSchemaName` | String | Yes | -| `plansTableId` | UUID | Yes | -| `plansTableName` | String | Yes | -| `planLimitsTableId` | UUID | Yes | -| `planLimitsTableName` | String | Yes | -| `planPricingTableId` | UUID | Yes | -| `planOverridesTableId` | UUID | Yes | -| `planMeterLimitsTableId` | UUID | Yes | -| `planCapsTableId` | UUID | Yes | -| `applyPlanFunction` | String | Yes | -| `applyPlanAggregateFunction` | String | Yes | -| `applyBillingPlanFunction` | String | Yes | -| `applyPlanCapsFunction` | String | Yes | +| `transferLogTableId` | UUID | Yes | +| `transferLogTableName` | String | Yes | +| `usageDailyTableId` | UUID | Yes | +| `usageDailyTableName` | String | Yes | +| `interval` | String | Yes | +| `retention` | String | Yes | +| `premake` | Int | Yes | +| `scope` | String | Yes | +| `actorFkTableId` | UUID | Yes | +| `entityFkTableId` | UUID | Yes | | `prefix` | String | Yes | | `apiName` | String | Yes | | `privateApiName` | String | Yes | @@ -1910,20 +2051,20 @@ CRUD operations for PlansModule records. **Operations:** ```typescript -// List all plansModule records -const items = await db.plansModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, plansTableId: true, plansTableName: true, planLimitsTableId: true, planLimitsTableName: true, planPricingTableId: true, planOverridesTableId: true, planMeterLimitsTableId: true, planCapsTableId: true, applyPlanFunction: true, applyPlanAggregateFunction: true, applyBillingPlanFunction: true, applyPlanCapsFunction: true, prefix: true, apiName: true, privateApiName: true } }).execute(); +// List all transferLogModule records +const items = await db.transferLogModule.findMany({ select: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, transferLogTableId: true, transferLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } }).execute(); // Get one by id -const item = await db.plansModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, plansTableId: true, plansTableName: true, planLimitsTableId: true, planLimitsTableName: true, planPricingTableId: true, planOverridesTableId: true, planMeterLimitsTableId: true, planCapsTableId: true, applyPlanFunction: true, applyPlanAggregateFunction: true, applyBillingPlanFunction: true, applyPlanCapsFunction: true, prefix: true, apiName: true, privateApiName: true } }).execute(); +const item = await db.transferLogModule.findOne({ id: '', select: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, transferLogTableId: true, transferLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } }).execute(); // Create -const created = await db.plansModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', plansTableId: '', plansTableName: '', planLimitsTableId: '', planLimitsTableName: '', planPricingTableId: '', planOverridesTableId: '', planMeterLimitsTableId: '', planCapsTableId: '', applyPlanFunction: '', applyPlanAggregateFunction: '', applyBillingPlanFunction: '', applyPlanCapsFunction: '', prefix: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); +const created = await db.transferLogModule.create({ data: { databaseId: '', entityField: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', transferLogTableId: '', transferLogTableName: '', usageDailyTableId: '', usageDailyTableName: '', interval: '', retention: '', premake: '', scope: '', actorFkTableId: '', entityFkTableId: '', prefix: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); // Update -const updated = await db.plansModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.transferLogModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.plansModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.transferLogModule.delete({ where: { id: '' } }).execute(); ``` ### `db.billingProviderModule` @@ -1976,9 +2117,9 @@ const updated = await db.billingProviderModule.update({ where: { id: '' }, const deleted = await db.billingProviderModule.delete({ where: { id: '' } }).execute(); ``` -### `db.dbUsageModule` +### `db.functionDeploymentModule` -CRUD operations for DbUsageModule records. +CRUD operations for FunctionDeploymentModule records. **Fields:** @@ -1986,44 +2127,93 @@ CRUD operations for DbUsageModule records. |-------|------|----------| | `id` | UUID | No | | `databaseId` | UUID | Yes | +| `entityField` | String | Yes | | `schemaId` | UUID | Yes | | `privateSchemaId` | UUID | Yes | | `publicSchemaName` | String | Yes | | `privateSchemaName` | String | Yes | -| `tableStatsLogTableId` | UUID | Yes | -| `tableStatsLogTableName` | String | Yes | -| `tableStatsDailyTableId` | UUID | Yes | -| `tableStatsDailyTableName` | String | Yes | -| `queryStatsLogTableId` | UUID | Yes | -| `queryStatsLogTableName` | String | Yes | -| `queryStatsDailyTableId` | UUID | Yes | -| `queryStatsDailyTableName` | String | Yes | -| `interval` | String | Yes | -| `retention` | String | Yes | -| `premake` | Int | Yes | +| `deploymentsTableId` | UUID | Yes | +| `deploymentEventsTableId` | UUID | Yes | +| `deploymentsTableName` | String | Yes | +| `deploymentEventsTableName` | String | Yes | +| `apiName` | String | Yes | +| `privateApiName` | String | Yes | | `scope` | String | Yes | | `prefix` | String | Yes | +| `entityTableId` | UUID | Yes | +| `functionModuleId` | UUID | Yes | +| `namespaceModuleId` | UUID | Yes | +| `policies` | JSON | Yes | +| `provisions` | JSON | Yes | | `defaultPermissions` | String | Yes | + +**Operations:** + +```typescript +// List all functionDeploymentModule records +const items = await db.functionDeploymentModule.findMany({ select: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, deploymentsTableId: true, deploymentEventsTableId: true, deploymentsTableName: true, deploymentEventsTableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, functionModuleId: true, namespaceModuleId: true, policies: true, provisions: true, defaultPermissions: true } }).execute(); + +// Get one by id +const item = await db.functionDeploymentModule.findOne({ id: '', select: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, deploymentsTableId: true, deploymentEventsTableId: true, deploymentsTableName: true, deploymentEventsTableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, functionModuleId: true, namespaceModuleId: true, policies: true, provisions: true, defaultPermissions: true } }).execute(); + +// Create +const created = await db.functionDeploymentModule.create({ data: { databaseId: '', entityField: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', deploymentsTableId: '', deploymentEventsTableId: '', deploymentsTableName: '', deploymentEventsTableName: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '', functionModuleId: '', namespaceModuleId: '', policies: '', provisions: '', defaultPermissions: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.functionDeploymentModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.functionDeploymentModule.delete({ where: { id: '' } }).execute(); +``` + +### `db.permissionsModule` + +CRUD operations for PermissionsModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `entityField` | String | Yes | +| `schemaId` | UUID | Yes | +| `privateSchemaId` | UUID | Yes | +| `publicSchemaName` | String | Yes | +| `privateSchemaName` | String | Yes | +| `tableId` | UUID | Yes | +| `tableName` | String | Yes | +| `defaultTableId` | UUID | Yes | +| `defaultTableName` | String | Yes | +| `bitlen` | Int | Yes | +| `scope` | String | Yes | +| `prefix` | String | Yes | +| `entityTableId` | UUID | Yes | +| `actorTableId` | UUID | Yes | +| `getPaddedMask` | String | Yes | +| `getMask` | String | Yes | +| `getByMask` | String | Yes | +| `getMaskByName` | String | Yes | | `apiName` | String | Yes | | `privateApiName` | String | Yes | **Operations:** ```typescript -// List all dbUsageModule records -const items = await db.dbUsageModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, tableStatsLogTableId: true, tableStatsLogTableName: true, tableStatsDailyTableId: true, tableStatsDailyTableName: true, queryStatsLogTableId: true, queryStatsLogTableName: true, queryStatsDailyTableId: true, queryStatsDailyTableName: true, interval: true, retention: true, premake: true, scope: true, prefix: true, defaultPermissions: true, apiName: true, privateApiName: true } }).execute(); +// List all permissionsModule records +const items = await db.permissionsModule.findMany({ select: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, tableId: true, tableName: true, defaultTableId: true, defaultTableName: true, bitlen: true, scope: true, prefix: true, entityTableId: true, actorTableId: true, getPaddedMask: true, getMask: true, getByMask: true, getMaskByName: true, apiName: true, privateApiName: true } }).execute(); // Get one by id -const item = await db.dbUsageModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, tableStatsLogTableId: true, tableStatsLogTableName: true, tableStatsDailyTableId: true, tableStatsDailyTableName: true, queryStatsLogTableId: true, queryStatsLogTableName: true, queryStatsDailyTableId: true, queryStatsDailyTableName: true, interval: true, retention: true, premake: true, scope: true, prefix: true, defaultPermissions: true, apiName: true, privateApiName: true } }).execute(); +const item = await db.permissionsModule.findOne({ id: '', select: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, tableId: true, tableName: true, defaultTableId: true, defaultTableName: true, bitlen: true, scope: true, prefix: true, entityTableId: true, actorTableId: true, getPaddedMask: true, getMask: true, getByMask: true, getMaskByName: true, apiName: true, privateApiName: true } }).execute(); // Create -const created = await db.dbUsageModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', tableStatsLogTableId: '', tableStatsLogTableName: '', tableStatsDailyTableId: '', tableStatsDailyTableName: '', queryStatsLogTableId: '', queryStatsLogTableName: '', queryStatsDailyTableId: '', queryStatsDailyTableName: '', interval: '', retention: '', premake: '', scope: '', prefix: '', defaultPermissions: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); +const created = await db.permissionsModule.create({ data: { databaseId: '', entityField: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', tableId: '', tableName: '', defaultTableId: '', defaultTableName: '', bitlen: '', scope: '', prefix: '', entityTableId: '', actorTableId: '', getPaddedMask: '', getMask: '', getByMask: '', getMaskByName: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); // Update -const updated = await db.dbUsageModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.permissionsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.dbUsageModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.permissionsModule.delete({ where: { id: '' } }).execute(); ``` ### `db.graphExecutionModule` @@ -2036,6 +2226,7 @@ CRUD operations for GraphExecutionModule records. |-------|------|----------| | `id` | UUID | No | | `databaseId` | UUID | Yes | +| `entityField` | String | Yes | | `schemaId` | UUID | Yes | | `privateSchemaId` | UUID | Yes | | `publicSchemaName` | String | Yes | @@ -2061,13 +2252,13 @@ CRUD operations for GraphExecutionModule records. ```typescript // List all graphExecutionModule records -const items = await db.graphExecutionModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, graphModuleId: true, scope: true, prefix: true, executionsTableId: true, outputsTableId: true, nodeStatesTableId: true, executionsTableName: true, outputsTableName: true, nodeStatesTableName: true, apiName: true, privateApiName: true, entityTableId: true, policies: true, provisions: true, defaultPermissions: true, createdAt: true } }).execute(); +const items = await db.graphExecutionModule.findMany({ select: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, graphModuleId: true, scope: true, prefix: true, executionsTableId: true, outputsTableId: true, nodeStatesTableId: true, executionsTableName: true, outputsTableName: true, nodeStatesTableName: true, apiName: true, privateApiName: true, entityTableId: true, policies: true, provisions: true, defaultPermissions: true, createdAt: true } }).execute(); // Get one by id -const item = await db.graphExecutionModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, graphModuleId: true, scope: true, prefix: true, executionsTableId: true, outputsTableId: true, nodeStatesTableId: true, executionsTableName: true, outputsTableName: true, nodeStatesTableName: true, apiName: true, privateApiName: true, entityTableId: true, policies: true, provisions: true, defaultPermissions: true, createdAt: true } }).execute(); +const item = await db.graphExecutionModule.findOne({ id: '', select: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, graphModuleId: true, scope: true, prefix: true, executionsTableId: true, outputsTableId: true, nodeStatesTableId: true, executionsTableName: true, outputsTableName: true, nodeStatesTableName: true, apiName: true, privateApiName: true, entityTableId: true, policies: true, provisions: true, defaultPermissions: true, createdAt: true } }).execute(); // Create -const created = await db.graphExecutionModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', graphModuleId: '', scope: '', prefix: '', executionsTableId: '', outputsTableId: '', nodeStatesTableId: '', executionsTableName: '', outputsTableName: '', nodeStatesTableName: '', apiName: '', privateApiName: '', entityTableId: '', policies: '', provisions: '', defaultPermissions: '' }, select: { id: true } }).execute(); +const created = await db.graphExecutionModule.create({ data: { databaseId: '', entityField: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', graphModuleId: '', scope: '', prefix: '', executionsTableId: '', outputsTableId: '', nodeStatesTableId: '', executionsTableName: '', outputsTableName: '', nodeStatesTableName: '', apiName: '', privateApiName: '', entityTableId: '', policies: '', provisions: '', defaultPermissions: '' }, select: { id: true } }).execute(); // Update const updated = await db.graphExecutionModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); @@ -2086,6 +2277,7 @@ CRUD operations for HierarchyModule records. |-------|------|----------| | `id` | UUID | No | | `databaseId` | UUID | Yes | +| `entityField` | String | Yes | | `schemaId` | UUID | Yes | | `privateSchemaId` | UUID | Yes | | `chartEdgesTableId` | UUID | Yes | @@ -2111,13 +2303,13 @@ CRUD operations for HierarchyModule records. ```typescript // List all hierarchyModule records -const items = await db.hierarchyModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, chartEdgesTableId: true, chartEdgesTableName: true, hierarchySprtTableId: true, hierarchySprtTableName: true, chartEdgeGrantsTableId: true, chartEdgeGrantsTableName: true, entityTableId: true, usersTableId: true, scope: true, prefix: true, privateSchemaName: true, sprtTableName: true, rebuildHierarchyFunction: true, getSubordinatesFunction: true, getManagersFunction: true, isManagerOfFunction: true, defaultPermissions: true, createdAt: true } }).execute(); +const items = await db.hierarchyModule.findMany({ select: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, chartEdgesTableId: true, chartEdgesTableName: true, hierarchySprtTableId: true, hierarchySprtTableName: true, chartEdgeGrantsTableId: true, chartEdgeGrantsTableName: true, entityTableId: true, usersTableId: true, scope: true, prefix: true, privateSchemaName: true, sprtTableName: true, rebuildHierarchyFunction: true, getSubordinatesFunction: true, getManagersFunction: true, isManagerOfFunction: true, defaultPermissions: true, createdAt: true } }).execute(); // Get one by id -const item = await db.hierarchyModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, chartEdgesTableId: true, chartEdgesTableName: true, hierarchySprtTableId: true, hierarchySprtTableName: true, chartEdgeGrantsTableId: true, chartEdgeGrantsTableName: true, entityTableId: true, usersTableId: true, scope: true, prefix: true, privateSchemaName: true, sprtTableName: true, rebuildHierarchyFunction: true, getSubordinatesFunction: true, getManagersFunction: true, isManagerOfFunction: true, defaultPermissions: true, createdAt: true } }).execute(); +const item = await db.hierarchyModule.findOne({ id: '', select: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, chartEdgesTableId: true, chartEdgesTableName: true, hierarchySprtTableId: true, hierarchySprtTableName: true, chartEdgeGrantsTableId: true, chartEdgeGrantsTableName: true, entityTableId: true, usersTableId: true, scope: true, prefix: true, privateSchemaName: true, sprtTableName: true, rebuildHierarchyFunction: true, getSubordinatesFunction: true, getManagersFunction: true, isManagerOfFunction: true, defaultPermissions: true, createdAt: true } }).execute(); // Create -const created = await db.hierarchyModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', chartEdgesTableId: '', chartEdgesTableName: '', hierarchySprtTableId: '', hierarchySprtTableName: '', chartEdgeGrantsTableId: '', chartEdgeGrantsTableName: '', entityTableId: '', usersTableId: '', scope: '', prefix: '', privateSchemaName: '', sprtTableName: '', rebuildHierarchyFunction: '', getSubordinatesFunction: '', getManagersFunction: '', isManagerOfFunction: '', defaultPermissions: '' }, select: { id: true } }).execute(); +const created = await db.hierarchyModule.create({ data: { databaseId: '', entityField: '', schemaId: '', privateSchemaId: '', chartEdgesTableId: '', chartEdgesTableName: '', hierarchySprtTableId: '', hierarchySprtTableName: '', chartEdgeGrantsTableId: '', chartEdgeGrantsTableName: '', entityTableId: '', usersTableId: '', scope: '', prefix: '', privateSchemaName: '', sprtTableName: '', rebuildHierarchyFunction: '', getSubordinatesFunction: '', getManagersFunction: '', isManagerOfFunction: '', defaultPermissions: '' }, select: { id: true } }).execute(); // Update const updated = await db.hierarchyModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); @@ -2126,9 +2318,9 @@ const updated = await db.hierarchyModule.update({ where: { id: '' }, data: const deleted = await db.hierarchyModule.delete({ where: { id: '' } }).execute(); ``` -### `db.permissionsModule` +### `db.notificationsModule` -CRUD operations for PermissionsModule records. +CRUD operations for NotificationsModule records. **Fields:** @@ -2136,48 +2328,51 @@ CRUD operations for PermissionsModule records. |-------|------|----------| | `id` | UUID | No | | `databaseId` | UUID | Yes | +| `entityField` | String | Yes | | `schemaId` | UUID | Yes | | `privateSchemaId` | UUID | Yes | | `publicSchemaName` | String | Yes | | `privateSchemaName` | String | Yes | -| `tableId` | UUID | Yes | -| `tableName` | String | Yes | -| `defaultTableId` | UUID | Yes | -| `defaultTableName` | String | Yes | -| `bitlen` | Int | Yes | -| `scope` | String | Yes | -| `prefix` | String | Yes | -| `entityTableId` | UUID | Yes | -| `actorTableId` | UUID | Yes | -| `getPaddedMask` | String | Yes | -| `getMask` | String | Yes | -| `getByMask` | String | Yes | -| `getMaskByName` | String | Yes | +| `notificationsTableId` | UUID | Yes | +| `readStateTableId` | UUID | Yes | +| `preferencesTableId` | UUID | Yes | +| `channelsTableId` | UUID | Yes | +| `deliveryLogTableId` | UUID | Yes | +| `suppressionsTableId` | UUID | Yes | +| `ownerTableId` | UUID | Yes | +| `userSettingsTableId` | UUID | Yes | +| `organizationSettingsTableId` | UUID | Yes | +| `hasChannels` | Boolean | Yes | +| `hasPreferences` | Boolean | Yes | +| `hasSettingsExtension` | Boolean | Yes | +| `hasDigestMetadata` | Boolean | Yes | +| `hasSubscriptions` | Boolean | Yes | +| `defaultPermissions` | String | Yes | | `apiName` | String | Yes | | `privateApiName` | String | Yes | **Operations:** ```typescript -// List all permissionsModule records -const items = await db.permissionsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, tableId: true, tableName: true, defaultTableId: true, defaultTableName: true, bitlen: true, scope: true, prefix: true, entityTableId: true, actorTableId: true, getPaddedMask: true, getMask: true, getByMask: true, getMaskByName: true, apiName: true, privateApiName: true } }).execute(); +// List all notificationsModule records +const items = await db.notificationsModule.findMany({ select: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, notificationsTableId: true, readStateTableId: true, preferencesTableId: true, channelsTableId: true, deliveryLogTableId: true, suppressionsTableId: true, ownerTableId: true, userSettingsTableId: true, organizationSettingsTableId: true, hasChannels: true, hasPreferences: true, hasSettingsExtension: true, hasDigestMetadata: true, hasSubscriptions: true, defaultPermissions: true, apiName: true, privateApiName: true } }).execute(); // Get one by id -const item = await db.permissionsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, tableId: true, tableName: true, defaultTableId: true, defaultTableName: true, bitlen: true, scope: true, prefix: true, entityTableId: true, actorTableId: true, getPaddedMask: true, getMask: true, getByMask: true, getMaskByName: true, apiName: true, privateApiName: true } }).execute(); +const item = await db.notificationsModule.findOne({ id: '', select: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, notificationsTableId: true, readStateTableId: true, preferencesTableId: true, channelsTableId: true, deliveryLogTableId: true, suppressionsTableId: true, ownerTableId: true, userSettingsTableId: true, organizationSettingsTableId: true, hasChannels: true, hasPreferences: true, hasSettingsExtension: true, hasDigestMetadata: true, hasSubscriptions: true, defaultPermissions: true, apiName: true, privateApiName: true } }).execute(); // Create -const created = await db.permissionsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', tableId: '', tableName: '', defaultTableId: '', defaultTableName: '', bitlen: '', scope: '', prefix: '', entityTableId: '', actorTableId: '', getPaddedMask: '', getMask: '', getByMask: '', getMaskByName: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); +const created = await db.notificationsModule.create({ data: { databaseId: '', entityField: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', notificationsTableId: '', readStateTableId: '', preferencesTableId: '', channelsTableId: '', deliveryLogTableId: '', suppressionsTableId: '', ownerTableId: '', userSettingsTableId: '', organizationSettingsTableId: '', hasChannels: '', hasPreferences: '', hasSettingsExtension: '', hasDigestMetadata: '', hasSubscriptions: '', defaultPermissions: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); // Update -const updated = await db.permissionsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.notificationsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.permissionsModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.notificationsModule.delete({ where: { id: '' } }).execute(); ``` -### `db.notificationsModule` +### `db.relationProvision` -CRUD operations for NotificationsModule records. +CRUD operations for RelationProvision records. **Fields:** @@ -2185,45 +2380,46 @@ CRUD operations for NotificationsModule records. |-------|------|----------| | `id` | UUID | No | | `databaseId` | UUID | Yes | -| `schemaId` | UUID | Yes | -| `privateSchemaId` | UUID | Yes | -| `publicSchemaName` | String | Yes | -| `privateSchemaName` | String | Yes | -| `notificationsTableId` | UUID | Yes | -| `readStateTableId` | UUID | Yes | -| `preferencesTableId` | UUID | Yes | -| `channelsTableId` | UUID | Yes | -| `deliveryLogTableId` | UUID | Yes | -| `suppressionsTableId` | UUID | Yes | -| `ownerTableId` | UUID | Yes | -| `userSettingsTableId` | UUID | Yes | -| `organizationSettingsTableId` | UUID | Yes | -| `hasChannels` | Boolean | Yes | -| `hasPreferences` | Boolean | Yes | -| `hasSettingsExtension` | Boolean | Yes | -| `hasDigestMetadata` | Boolean | Yes | -| `hasSubscriptions` | Boolean | Yes | -| `defaultPermissions` | String | Yes | -| `apiName` | String | Yes | -| `privateApiName` | String | Yes | +| `relationType` | String | Yes | +| `sourceTableId` | UUID | Yes | +| `targetTableId` | UUID | Yes | +| `fieldName` | String | Yes | +| `deleteAction` | String | Yes | +| `isRequired` | Boolean | Yes | +| `apiRequired` | Boolean | Yes | +| `junctionTableId` | UUID | Yes | +| `junctionTableName` | String | Yes | +| `junctionSchemaId` | UUID | Yes | +| `sourceFieldName` | String | Yes | +| `targetFieldName` | String | Yes | +| `useCompositeKey` | Boolean | Yes | +| `createIndex` | Boolean | Yes | +| `exposeInApi` | Boolean | Yes | +| `nodes` | JSON | Yes | +| `grants` | JSON | Yes | +| `policies` | JSON | Yes | +| `outFieldId` | UUID | Yes | +| `outJunctionTableId` | UUID | Yes | +| `outSourceFieldId` | UUID | Yes | +| `outTargetFieldId` | UUID | Yes | **Operations:** ```typescript -// List all notificationsModule records -const items = await db.notificationsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, notificationsTableId: true, readStateTableId: true, preferencesTableId: true, channelsTableId: true, deliveryLogTableId: true, suppressionsTableId: true, ownerTableId: true, userSettingsTableId: true, organizationSettingsTableId: true, hasChannels: true, hasPreferences: true, hasSettingsExtension: true, hasDigestMetadata: true, hasSubscriptions: true, defaultPermissions: true, apiName: true, privateApiName: true } }).execute(); +// List all relationProvision records +const items = await db.relationProvision.findMany({ select: { id: true, databaseId: true, relationType: true, sourceTableId: true, targetTableId: true, fieldName: true, deleteAction: true, isRequired: true, apiRequired: true, junctionTableId: true, junctionTableName: true, junctionSchemaId: true, sourceFieldName: true, targetFieldName: true, useCompositeKey: true, createIndex: true, exposeInApi: true, nodes: true, grants: true, policies: true, outFieldId: true, outJunctionTableId: true, outSourceFieldId: true, outTargetFieldId: true } }).execute(); // Get one by id -const item = await db.notificationsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, notificationsTableId: true, readStateTableId: true, preferencesTableId: true, channelsTableId: true, deliveryLogTableId: true, suppressionsTableId: true, ownerTableId: true, userSettingsTableId: true, organizationSettingsTableId: true, hasChannels: true, hasPreferences: true, hasSettingsExtension: true, hasDigestMetadata: true, hasSubscriptions: true, defaultPermissions: true, apiName: true, privateApiName: true } }).execute(); +const item = await db.relationProvision.findOne({ id: '', select: { id: true, databaseId: true, relationType: true, sourceTableId: true, targetTableId: true, fieldName: true, deleteAction: true, isRequired: true, apiRequired: true, junctionTableId: true, junctionTableName: true, junctionSchemaId: true, sourceFieldName: true, targetFieldName: true, useCompositeKey: true, createIndex: true, exposeInApi: true, nodes: true, grants: true, policies: true, outFieldId: true, outJunctionTableId: true, outSourceFieldId: true, outTargetFieldId: true } }).execute(); // Create -const created = await db.notificationsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', notificationsTableId: '', readStateTableId: '', preferencesTableId: '', channelsTableId: '', deliveryLogTableId: '', suppressionsTableId: '', ownerTableId: '', userSettingsTableId: '', organizationSettingsTableId: '', hasChannels: '', hasPreferences: '', hasSettingsExtension: '', hasDigestMetadata: '', hasSubscriptions: '', defaultPermissions: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); +const created = await db.relationProvision.create({ data: { databaseId: '', relationType: '', sourceTableId: '', targetTableId: '', fieldName: '', deleteAction: '', isRequired: '', apiRequired: '', junctionTableId: '', junctionTableName: '', junctionSchemaId: '', sourceFieldName: '', targetFieldName: '', useCompositeKey: '', createIndex: '', exposeInApi: '', nodes: '', grants: '', policies: '', outFieldId: '', outJunctionTableId: '', outSourceFieldId: '', outTargetFieldId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.notificationsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.relationProvision.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.notificationsModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.relationProvision.delete({ where: { id: '' } }).execute(); ``` ### `db.profilesModule` @@ -2236,6 +2432,7 @@ CRUD operations for ProfilesModule records. |-------|------|----------| | `id` | UUID | No | | `databaseId` | UUID | Yes | +| `entityField` | String | Yes | | `schemaId` | UUID | Yes | | `privateSchemaId` | UUID | Yes | | `publicSchemaName` | String | Yes | @@ -2263,13 +2460,13 @@ CRUD operations for ProfilesModule records. ```typescript // List all profilesModule records -const items = await db.profilesModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, tableId: true, tableName: true, profilePermissionsTableId: true, profilePermissionsTableName: true, profileGrantsTableId: true, profileGrantsTableName: true, profileDefinitionGrantsTableId: true, profileDefinitionGrantsTableName: true, profileTemplatesTableId: true, profileTemplatesTableName: true, scope: true, prefix: true, entityTableId: true, actorTableId: true, permissionsTableId: true, membershipsTableId: true, apiName: true, privateApiName: true } }).execute(); +const items = await db.profilesModule.findMany({ select: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, tableId: true, tableName: true, profilePermissionsTableId: true, profilePermissionsTableName: true, profileGrantsTableId: true, profileGrantsTableName: true, profileDefinitionGrantsTableId: true, profileDefinitionGrantsTableName: true, profileTemplatesTableId: true, profileTemplatesTableName: true, scope: true, prefix: true, entityTableId: true, actorTableId: true, permissionsTableId: true, membershipsTableId: true, apiName: true, privateApiName: true } }).execute(); // Get one by id -const item = await db.profilesModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, tableId: true, tableName: true, profilePermissionsTableId: true, profilePermissionsTableName: true, profileGrantsTableId: true, profileGrantsTableName: true, profileDefinitionGrantsTableId: true, profileDefinitionGrantsTableName: true, profileTemplatesTableId: true, profileTemplatesTableName: true, scope: true, prefix: true, entityTableId: true, actorTableId: true, permissionsTableId: true, membershipsTableId: true, apiName: true, privateApiName: true } }).execute(); +const item = await db.profilesModule.findOne({ id: '', select: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, tableId: true, tableName: true, profilePermissionsTableId: true, profilePermissionsTableName: true, profileGrantsTableId: true, profileGrantsTableName: true, profileDefinitionGrantsTableId: true, profileDefinitionGrantsTableName: true, profileTemplatesTableId: true, profileTemplatesTableName: true, scope: true, prefix: true, entityTableId: true, actorTableId: true, permissionsTableId: true, membershipsTableId: true, apiName: true, privateApiName: true } }).execute(); // Create -const created = await db.profilesModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', tableId: '', tableName: '', profilePermissionsTableId: '', profilePermissionsTableName: '', profileGrantsTableId: '', profileGrantsTableName: '', profileDefinitionGrantsTableId: '', profileDefinitionGrantsTableName: '', profileTemplatesTableId: '', profileTemplatesTableName: '', scope: '', prefix: '', entityTableId: '', actorTableId: '', permissionsTableId: '', membershipsTableId: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); +const created = await db.profilesModule.create({ data: { databaseId: '', entityField: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', tableId: '', tableName: '', profilePermissionsTableId: '', profilePermissionsTableName: '', profileGrantsTableId: '', profileGrantsTableName: '', profileDefinitionGrantsTableId: '', profileDefinitionGrantsTableName: '', profileTemplatesTableId: '', profileTemplatesTableName: '', scope: '', prefix: '', entityTableId: '', actorTableId: '', permissionsTableId: '', membershipsTableId: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); // Update const updated = await db.profilesModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); @@ -2307,6 +2504,8 @@ CRUD operations for BillingModule records. | `meterDefaultsTableId` | UUID | Yes | | `meterDefaultsTableName` | String | Yes | | `recordUsageFunction` | String | Yes | +| `sweepExpiredSubscriptionsFunction` | String | Yes | +| `rollupUsageSummaryFunction` | String | Yes | | `prefix` | String | Yes | | `defaultPermissions` | String | Yes | | `apiName` | String | Yes | @@ -2316,13 +2515,13 @@ CRUD operations for BillingModule records. ```typescript // List all billingModule records -const items = await db.billingModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, metersTableId: true, metersTableName: true, planSubscriptionsTableId: true, planSubscriptionsTableName: true, ledgerTableId: true, ledgerTableName: true, balancesTableId: true, balancesTableName: true, meterCreditsTableId: true, meterCreditsTableName: true, meterSourcesTableId: true, meterSourcesTableName: true, meterDefaultsTableId: true, meterDefaultsTableName: true, recordUsageFunction: true, prefix: true, defaultPermissions: true, apiName: true, privateApiName: true } }).execute(); +const items = await db.billingModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, metersTableId: true, metersTableName: true, planSubscriptionsTableId: true, planSubscriptionsTableName: true, ledgerTableId: true, ledgerTableName: true, balancesTableId: true, balancesTableName: true, meterCreditsTableId: true, meterCreditsTableName: true, meterSourcesTableId: true, meterSourcesTableName: true, meterDefaultsTableId: true, meterDefaultsTableName: true, recordUsageFunction: true, sweepExpiredSubscriptionsFunction: true, rollupUsageSummaryFunction: true, prefix: true, defaultPermissions: true, apiName: true, privateApiName: true } }).execute(); // Get one by id -const item = await db.billingModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, metersTableId: true, metersTableName: true, planSubscriptionsTableId: true, planSubscriptionsTableName: true, ledgerTableId: true, ledgerTableName: true, balancesTableId: true, balancesTableName: true, meterCreditsTableId: true, meterCreditsTableName: true, meterSourcesTableId: true, meterSourcesTableName: true, meterDefaultsTableId: true, meterDefaultsTableName: true, recordUsageFunction: true, prefix: true, defaultPermissions: true, apiName: true, privateApiName: true } }).execute(); +const item = await db.billingModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, metersTableId: true, metersTableName: true, planSubscriptionsTableId: true, planSubscriptionsTableName: true, ledgerTableId: true, ledgerTableName: true, balancesTableId: true, balancesTableName: true, meterCreditsTableId: true, meterCreditsTableName: true, meterSourcesTableId: true, meterSourcesTableName: true, meterDefaultsTableId: true, meterDefaultsTableName: true, recordUsageFunction: true, sweepExpiredSubscriptionsFunction: true, rollupUsageSummaryFunction: true, prefix: true, defaultPermissions: true, apiName: true, privateApiName: true } }).execute(); // Create -const created = await db.billingModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', metersTableId: '', metersTableName: '', planSubscriptionsTableId: '', planSubscriptionsTableName: '', ledgerTableId: '', ledgerTableName: '', balancesTableId: '', balancesTableName: '', meterCreditsTableId: '', meterCreditsTableName: '', meterSourcesTableId: '', meterSourcesTableName: '', meterDefaultsTableId: '', meterDefaultsTableName: '', recordUsageFunction: '', prefix: '', defaultPermissions: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); +const created = await db.billingModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', metersTableId: '', metersTableName: '', planSubscriptionsTableId: '', planSubscriptionsTableName: '', ledgerTableId: '', ledgerTableName: '', balancesTableId: '', balancesTableName: '', meterCreditsTableId: '', meterCreditsTableName: '', meterSourcesTableId: '', meterSourcesTableName: '', meterDefaultsTableId: '', meterDefaultsTableName: '', recordUsageFunction: '', sweepExpiredSubscriptionsFunction: '', rollupUsageSummaryFunction: '', prefix: '', defaultPermissions: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); // Update const updated = await db.billingModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); @@ -2331,9 +2530,9 @@ const updated = await db.billingModule.update({ where: { id: '' }, data: { const deleted = await db.billingModule.delete({ where: { id: '' } }).execute(); ``` -### `db.relationProvision` +### `db.resourceModule` -CRUD operations for RelationProvision records. +CRUD operations for ResourceModule records. **Fields:** @@ -2341,46 +2540,48 @@ CRUD operations for RelationProvision records. |-------|------|----------| | `id` | UUID | No | | `databaseId` | UUID | Yes | -| `relationType` | String | Yes | -| `sourceTableId` | UUID | Yes | -| `targetTableId` | UUID | Yes | -| `fieldName` | String | Yes | -| `deleteAction` | String | Yes | -| `isRequired` | Boolean | Yes | -| `apiRequired` | Boolean | Yes | -| `junctionTableId` | UUID | Yes | -| `junctionTableName` | String | Yes | -| `junctionSchemaId` | UUID | Yes | -| `sourceFieldName` | String | Yes | -| `targetFieldName` | String | Yes | -| `useCompositeKey` | Boolean | Yes | -| `createIndex` | Boolean | Yes | -| `exposeInApi` | Boolean | Yes | -| `nodes` | JSON | Yes | -| `grants` | JSON | Yes | +| `entityField` | String | Yes | +| `schemaId` | UUID | Yes | +| `privateSchemaId` | UUID | Yes | +| `publicSchemaName` | String | Yes | +| `privateSchemaName` | String | Yes | +| `resourcesTableId` | UUID | Yes | +| `resourceEventsTableId` | UUID | Yes | +| `resourceStatusChecksTableId` | UUID | Yes | +| `resourceDefinitionsTableId` | UUID | Yes | +| `resourcesTableName` | String | Yes | +| `resourceEventsTableName` | String | Yes | +| `resourceStatusChecksTableName` | String | Yes | +| `resourceDefinitionsTableName` | String | Yes | +| `resolvedRequirementsViewName` | String | Yes | +| `requirementsStateViewName` | String | Yes | +| `apiName` | String | Yes | +| `privateApiName` | String | Yes | +| `scope` | String | Yes | +| `prefix` | String | Yes | +| `entityTableId` | UUID | Yes | +| `namespaceModuleId` | UUID | Yes | | `policies` | JSON | Yes | -| `outFieldId` | UUID | Yes | -| `outJunctionTableId` | UUID | Yes | -| `outSourceFieldId` | UUID | Yes | -| `outTargetFieldId` | UUID | Yes | +| `provisions` | JSON | Yes | +| `defaultPermissions` | String | Yes | **Operations:** ```typescript -// List all relationProvision records -const items = await db.relationProvision.findMany({ select: { id: true, databaseId: true, relationType: true, sourceTableId: true, targetTableId: true, fieldName: true, deleteAction: true, isRequired: true, apiRequired: true, junctionTableId: true, junctionTableName: true, junctionSchemaId: true, sourceFieldName: true, targetFieldName: true, useCompositeKey: true, createIndex: true, exposeInApi: true, nodes: true, grants: true, policies: true, outFieldId: true, outJunctionTableId: true, outSourceFieldId: true, outTargetFieldId: true } }).execute(); +// List all resourceModule records +const items = await db.resourceModule.findMany({ select: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, resourcesTableId: true, resourceEventsTableId: true, resourceStatusChecksTableId: true, resourceDefinitionsTableId: true, resourcesTableName: true, resourceEventsTableName: true, resourceStatusChecksTableName: true, resourceDefinitionsTableName: true, resolvedRequirementsViewName: true, requirementsStateViewName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, namespaceModuleId: true, policies: true, provisions: true, defaultPermissions: true } }).execute(); // Get one by id -const item = await db.relationProvision.findOne({ id: '', select: { id: true, databaseId: true, relationType: true, sourceTableId: true, targetTableId: true, fieldName: true, deleteAction: true, isRequired: true, apiRequired: true, junctionTableId: true, junctionTableName: true, junctionSchemaId: true, sourceFieldName: true, targetFieldName: true, useCompositeKey: true, createIndex: true, exposeInApi: true, nodes: true, grants: true, policies: true, outFieldId: true, outJunctionTableId: true, outSourceFieldId: true, outTargetFieldId: true } }).execute(); +const item = await db.resourceModule.findOne({ id: '', select: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, resourcesTableId: true, resourceEventsTableId: true, resourceStatusChecksTableId: true, resourceDefinitionsTableId: true, resourcesTableName: true, resourceEventsTableName: true, resourceStatusChecksTableName: true, resourceDefinitionsTableName: true, resolvedRequirementsViewName: true, requirementsStateViewName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, namespaceModuleId: true, policies: true, provisions: true, defaultPermissions: true } }).execute(); // Create -const created = await db.relationProvision.create({ data: { databaseId: '', relationType: '', sourceTableId: '', targetTableId: '', fieldName: '', deleteAction: '', isRequired: '', apiRequired: '', junctionTableId: '', junctionTableName: '', junctionSchemaId: '', sourceFieldName: '', targetFieldName: '', useCompositeKey: '', createIndex: '', exposeInApi: '', nodes: '', grants: '', policies: '', outFieldId: '', outJunctionTableId: '', outSourceFieldId: '', outTargetFieldId: '' }, select: { id: true } }).execute(); +const created = await db.resourceModule.create({ data: { databaseId: '', entityField: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', resourcesTableId: '', resourceEventsTableId: '', resourceStatusChecksTableId: '', resourceDefinitionsTableId: '', resourcesTableName: '', resourceEventsTableName: '', resourceStatusChecksTableName: '', resourceDefinitionsTableName: '', resolvedRequirementsViewName: '', requirementsStateViewName: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '', namespaceModuleId: '', policies: '', provisions: '', defaultPermissions: '' }, select: { id: true } }).execute(); // Update -const updated = await db.relationProvision.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.resourceModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.relationProvision.delete({ where: { id: '' } }).execute(); +const deleted = await db.resourceModule.delete({ where: { id: '' } }).execute(); ``` ### `db.userAuthModule` @@ -2439,6 +2640,61 @@ const updated = await db.userAuthModule.update({ where: { id: '' }, data: const deleted = await db.userAuthModule.delete({ where: { id: '' } }).execute(); ``` +### `db.dbUsageModule` + +CRUD operations for DbUsageModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `entityField` | String | Yes | +| `schemaId` | UUID | Yes | +| `privateSchemaId` | UUID | Yes | +| `publicSchemaName` | String | Yes | +| `privateSchemaName` | String | Yes | +| `tableStatsLogTableId` | UUID | Yes | +| `tableStatsLogTableName` | String | Yes | +| `tableStatsDailyTableId` | UUID | Yes | +| `tableStatsDailyTableName` | String | Yes | +| `queryStatsLogTableId` | UUID | Yes | +| `queryStatsLogTableName` | String | Yes | +| `queryStatsDailyTableId` | UUID | Yes | +| `queryStatsDailyTableName` | String | Yes | +| `collectDbTableStatsFunction` | String | Yes | +| `collectDbQueryStatsFunction` | String | Yes | +| `rollupDbTableStatsDailyFunction` | String | Yes | +| `rollupDbQueryStatsDailyFunction` | String | Yes | +| `interval` | String | Yes | +| `retention` | String | Yes | +| `premake` | Int | Yes | +| `scope` | String | Yes | +| `prefix` | String | Yes | +| `defaultPermissions` | String | Yes | +| `apiName` | String | Yes | +| `privateApiName` | String | Yes | + +**Operations:** + +```typescript +// List all dbUsageModule records +const items = await db.dbUsageModule.findMany({ select: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, tableStatsLogTableId: true, tableStatsLogTableName: true, tableStatsDailyTableId: true, tableStatsDailyTableName: true, queryStatsLogTableId: true, queryStatsLogTableName: true, queryStatsDailyTableId: true, queryStatsDailyTableName: true, collectDbTableStatsFunction: true, collectDbQueryStatsFunction: true, rollupDbTableStatsDailyFunction: true, rollupDbQueryStatsDailyFunction: true, interval: true, retention: true, premake: true, scope: true, prefix: true, defaultPermissions: true, apiName: true, privateApiName: true } }).execute(); + +// Get one by id +const item = await db.dbUsageModule.findOne({ id: '', select: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, tableStatsLogTableId: true, tableStatsLogTableName: true, tableStatsDailyTableId: true, tableStatsDailyTableName: true, queryStatsLogTableId: true, queryStatsLogTableName: true, queryStatsDailyTableId: true, queryStatsDailyTableName: true, collectDbTableStatsFunction: true, collectDbQueryStatsFunction: true, rollupDbTableStatsDailyFunction: true, rollupDbQueryStatsDailyFunction: true, interval: true, retention: true, premake: true, scope: true, prefix: true, defaultPermissions: true, apiName: true, privateApiName: true } }).execute(); + +// Create +const created = await db.dbUsageModule.create({ data: { databaseId: '', entityField: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', tableStatsLogTableId: '', tableStatsLogTableName: '', tableStatsDailyTableId: '', tableStatsDailyTableName: '', queryStatsLogTableId: '', queryStatsLogTableName: '', queryStatsDailyTableId: '', queryStatsDailyTableName: '', collectDbTableStatsFunction: '', collectDbQueryStatsFunction: '', rollupDbTableStatsDailyFunction: '', rollupDbQueryStatsDailyFunction: '', interval: '', retention: '', premake: '', scope: '', prefix: '', defaultPermissions: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.dbUsageModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.dbUsageModule.delete({ where: { id: '' } }).execute(); +``` + ### `db.agentModule` CRUD operations for AgentModule records. @@ -2449,6 +2705,7 @@ CRUD operations for AgentModule records. |-------|------|----------| | `id` | UUID | No | | `databaseId` | UUID | Yes | +| `entityField` | String | Yes | | `schemaId` | UUID | Yes | | `privateSchemaId` | UUID | Yes | | `publicSchemaName` | String | Yes | @@ -2487,13 +2744,13 @@ CRUD operations for AgentModule records. ```typescript // List all agentModule records -const items = await db.agentModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, threadTableId: true, messageTableId: true, taskTableId: true, promptsTableId: true, planTableId: true, agentTableId: true, personaTableId: true, resourceTableId: true, threadTableName: true, messageTableName: true, taskTableName: true, promptsTableName: true, planTableName: true, agentTableName: true, personaTableName: true, resourceTableName: true, hasPlans: true, hasResources: true, hasAgents: true, shared: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, policies: true, resources: true, provisions: true, defaultPermissions: true } }).execute(); +const items = await db.agentModule.findMany({ select: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, threadTableId: true, messageTableId: true, taskTableId: true, promptsTableId: true, planTableId: true, agentTableId: true, personaTableId: true, resourceTableId: true, threadTableName: true, messageTableName: true, taskTableName: true, promptsTableName: true, planTableName: true, agentTableName: true, personaTableName: true, resourceTableName: true, hasPlans: true, hasResources: true, hasAgents: true, shared: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, policies: true, resources: true, provisions: true, defaultPermissions: true } }).execute(); // Get one by id -const item = await db.agentModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, threadTableId: true, messageTableId: true, taskTableId: true, promptsTableId: true, planTableId: true, agentTableId: true, personaTableId: true, resourceTableId: true, threadTableName: true, messageTableName: true, taskTableName: true, promptsTableName: true, planTableName: true, agentTableName: true, personaTableName: true, resourceTableName: true, hasPlans: true, hasResources: true, hasAgents: true, shared: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, policies: true, resources: true, provisions: true, defaultPermissions: true } }).execute(); +const item = await db.agentModule.findOne({ id: '', select: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, threadTableId: true, messageTableId: true, taskTableId: true, promptsTableId: true, planTableId: true, agentTableId: true, personaTableId: true, resourceTableId: true, threadTableName: true, messageTableName: true, taskTableName: true, promptsTableName: true, planTableName: true, agentTableName: true, personaTableName: true, resourceTableName: true, hasPlans: true, hasResources: true, hasAgents: true, shared: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, policies: true, resources: true, provisions: true, defaultPermissions: true } }).execute(); // Create -const created = await db.agentModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', threadTableId: '', messageTableId: '', taskTableId: '', promptsTableId: '', planTableId: '', agentTableId: '', personaTableId: '', resourceTableId: '', threadTableName: '', messageTableName: '', taskTableName: '', promptsTableName: '', planTableName: '', agentTableName: '', personaTableName: '', resourceTableName: '', hasPlans: '', hasResources: '', hasAgents: '', shared: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '', policies: '', resources: '', provisions: '', defaultPermissions: '' }, select: { id: true } }).execute(); +const created = await db.agentModule.create({ data: { databaseId: '', entityField: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', threadTableId: '', messageTableId: '', taskTableId: '', promptsTableId: '', planTableId: '', agentTableId: '', personaTableId: '', resourceTableId: '', threadTableName: '', messageTableName: '', taskTableName: '', promptsTableName: '', planTableName: '', agentTableName: '', personaTableName: '', resourceTableName: '', hasPlans: '', hasResources: '', hasAgents: '', shared: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '', policies: '', resources: '', provisions: '', defaultPermissions: '' }, select: { id: true } }).execute(); // Update const updated = await db.agentModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); @@ -2512,6 +2769,7 @@ CRUD operations for LimitsModule records. |-------|------|----------| | `id` | UUID | No | | `databaseId` | UUID | Yes | +| `entityField` | String | Yes | | `schemaId` | UUID | Yes | | `privateSchemaId` | UUID | Yes | | `publicSchemaName` | String | Yes | @@ -2551,13 +2809,13 @@ CRUD operations for LimitsModule records. ```typescript // List all limitsModule records -const items = await db.limitsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, tableId: true, tableName: true, defaultTableId: true, defaultTableName: true, limitIncrementFunction: true, limitDecrementFunction: true, limitIncrementTrigger: true, limitDecrementTrigger: true, limitUpdateTrigger: true, limitCheckFunction: true, limitCreditsTableId: true, eventsTableId: true, creditCodesTableId: true, creditCodeItemsTableId: true, creditRedemptionsTableId: true, aggregateTableId: true, limitCapsTableId: true, limitCapsDefaultsTableId: true, capCheckTrigger: true, resolveCapFunction: true, limitWarningsTableId: true, limitWarningStateTableId: true, limitCheckSoftFunction: true, limitAggregateCheckSoftFunction: true, scope: true, prefix: true, entityTableId: true, actorTableId: true, apiName: true, privateApiName: true } }).execute(); +const items = await db.limitsModule.findMany({ select: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, tableId: true, tableName: true, defaultTableId: true, defaultTableName: true, limitIncrementFunction: true, limitDecrementFunction: true, limitIncrementTrigger: true, limitDecrementTrigger: true, limitUpdateTrigger: true, limitCheckFunction: true, limitCreditsTableId: true, eventsTableId: true, creditCodesTableId: true, creditCodeItemsTableId: true, creditRedemptionsTableId: true, aggregateTableId: true, limitCapsTableId: true, limitCapsDefaultsTableId: true, capCheckTrigger: true, resolveCapFunction: true, limitWarningsTableId: true, limitWarningStateTableId: true, limitCheckSoftFunction: true, limitAggregateCheckSoftFunction: true, scope: true, prefix: true, entityTableId: true, actorTableId: true, apiName: true, privateApiName: true } }).execute(); // Get one by id -const item = await db.limitsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, tableId: true, tableName: true, defaultTableId: true, defaultTableName: true, limitIncrementFunction: true, limitDecrementFunction: true, limitIncrementTrigger: true, limitDecrementTrigger: true, limitUpdateTrigger: true, limitCheckFunction: true, limitCreditsTableId: true, eventsTableId: true, creditCodesTableId: true, creditCodeItemsTableId: true, creditRedemptionsTableId: true, aggregateTableId: true, limitCapsTableId: true, limitCapsDefaultsTableId: true, capCheckTrigger: true, resolveCapFunction: true, limitWarningsTableId: true, limitWarningStateTableId: true, limitCheckSoftFunction: true, limitAggregateCheckSoftFunction: true, scope: true, prefix: true, entityTableId: true, actorTableId: true, apiName: true, privateApiName: true } }).execute(); +const item = await db.limitsModule.findOne({ id: '', select: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, tableId: true, tableName: true, defaultTableId: true, defaultTableName: true, limitIncrementFunction: true, limitDecrementFunction: true, limitIncrementTrigger: true, limitDecrementTrigger: true, limitUpdateTrigger: true, limitCheckFunction: true, limitCreditsTableId: true, eventsTableId: true, creditCodesTableId: true, creditCodeItemsTableId: true, creditRedemptionsTableId: true, aggregateTableId: true, limitCapsTableId: true, limitCapsDefaultsTableId: true, capCheckTrigger: true, resolveCapFunction: true, limitWarningsTableId: true, limitWarningStateTableId: true, limitCheckSoftFunction: true, limitAggregateCheckSoftFunction: true, scope: true, prefix: true, entityTableId: true, actorTableId: true, apiName: true, privateApiName: true } }).execute(); // Create -const created = await db.limitsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', tableId: '', tableName: '', defaultTableId: '', defaultTableName: '', limitIncrementFunction: '', limitDecrementFunction: '', limitIncrementTrigger: '', limitDecrementTrigger: '', limitUpdateTrigger: '', limitCheckFunction: '', limitCreditsTableId: '', eventsTableId: '', creditCodesTableId: '', creditCodeItemsTableId: '', creditRedemptionsTableId: '', aggregateTableId: '', limitCapsTableId: '', limitCapsDefaultsTableId: '', capCheckTrigger: '', resolveCapFunction: '', limitWarningsTableId: '', limitWarningStateTableId: '', limitCheckSoftFunction: '', limitAggregateCheckSoftFunction: '', scope: '', prefix: '', entityTableId: '', actorTableId: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); +const created = await db.limitsModule.create({ data: { databaseId: '', entityField: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', tableId: '', tableName: '', defaultTableId: '', defaultTableName: '', limitIncrementFunction: '', limitDecrementFunction: '', limitIncrementTrigger: '', limitDecrementTrigger: '', limitUpdateTrigger: '', limitCheckFunction: '', limitCreditsTableId: '', eventsTableId: '', creditCodesTableId: '', creditCodeItemsTableId: '', creditRedemptionsTableId: '', aggregateTableId: '', limitCapsTableId: '', limitCapsDefaultsTableId: '', capCheckTrigger: '', resolveCapFunction: '', limitWarningsTableId: '', limitWarningStateTableId: '', limitCheckSoftFunction: '', limitAggregateCheckSoftFunction: '', scope: '', prefix: '', entityTableId: '', actorTableId: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); // Update const updated = await db.limitsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); @@ -2566,75 +2824,6 @@ const updated = await db.limitsModule.update({ where: { id: '' }, data: { const deleted = await db.limitsModule.delete({ where: { id: '' } }).execute(); ``` -### `db.membershipsModule` - -CRUD operations for MembershipsModule records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `schemaId` | UUID | Yes | -| `privateSchemaId` | UUID | Yes | -| `publicSchemaName` | String | Yes | -| `privateSchemaName` | String | Yes | -| `membershipsTableId` | UUID | Yes | -| `membershipsTableName` | String | Yes | -| `membersTableId` | UUID | Yes | -| `membersTableName` | String | Yes | -| `membershipDefaultsTableId` | UUID | Yes | -| `membershipDefaultsTableName` | String | Yes | -| `membershipSettingsTableId` | UUID | Yes | -| `membershipSettingsTableName` | String | Yes | -| `grantsTableId` | UUID | Yes | -| `grantsTableName` | String | Yes | -| `actorTableId` | UUID | Yes | -| `limitsTableId` | UUID | Yes | -| `defaultLimitsTableId` | UUID | Yes | -| `permissionsTableId` | UUID | Yes | -| `defaultPermissionsTableId` | UUID | Yes | -| `sprtTableId` | UUID | Yes | -| `adminGrantsTableId` | UUID | Yes | -| `adminGrantsTableName` | String | Yes | -| `ownerGrantsTableId` | UUID | Yes | -| `ownerGrantsTableName` | String | Yes | -| `scope` | String | Yes | -| `prefix` | String | Yes | -| `entityTableId` | UUID | Yes | -| `entityTableOwnerId` | UUID | Yes | -| `getOrgFn` | String | Yes | -| `actorMaskCheck` | String | Yes | -| `actorPermCheck` | String | Yes | -| `entityIdsByMask` | String | Yes | -| `entityIdsByPerm` | String | Yes | -| `entityIdsFunction` | String | Yes | -| `memberProfilesTableId` | UUID | Yes | -| `permissionDefaultPermissionsTableId` | UUID | Yes | -| `permissionDefaultGrantsTableId` | UUID | Yes | -| `apiName` | String | Yes | -| `privateApiName` | String | Yes | - -**Operations:** - -```typescript -// List all membershipsModule records -const items = await db.membershipsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, membershipsTableId: true, membershipsTableName: true, membersTableId: true, membersTableName: true, membershipDefaultsTableId: true, membershipDefaultsTableName: true, membershipSettingsTableId: true, membershipSettingsTableName: true, grantsTableId: true, grantsTableName: true, actorTableId: true, limitsTableId: true, defaultLimitsTableId: true, permissionsTableId: true, defaultPermissionsTableId: true, sprtTableId: true, adminGrantsTableId: true, adminGrantsTableName: true, ownerGrantsTableId: true, ownerGrantsTableName: true, scope: true, prefix: true, entityTableId: true, entityTableOwnerId: true, getOrgFn: true, actorMaskCheck: true, actorPermCheck: true, entityIdsByMask: true, entityIdsByPerm: true, entityIdsFunction: true, memberProfilesTableId: true, permissionDefaultPermissionsTableId: true, permissionDefaultGrantsTableId: true, apiName: true, privateApiName: true } }).execute(); - -// Get one by id -const item = await db.membershipsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, membershipsTableId: true, membershipsTableName: true, membersTableId: true, membersTableName: true, membershipDefaultsTableId: true, membershipDefaultsTableName: true, membershipSettingsTableId: true, membershipSettingsTableName: true, grantsTableId: true, grantsTableName: true, actorTableId: true, limitsTableId: true, defaultLimitsTableId: true, permissionsTableId: true, defaultPermissionsTableId: true, sprtTableId: true, adminGrantsTableId: true, adminGrantsTableName: true, ownerGrantsTableId: true, ownerGrantsTableName: true, scope: true, prefix: true, entityTableId: true, entityTableOwnerId: true, getOrgFn: true, actorMaskCheck: true, actorPermCheck: true, entityIdsByMask: true, entityIdsByPerm: true, entityIdsFunction: true, memberProfilesTableId: true, permissionDefaultPermissionsTableId: true, permissionDefaultGrantsTableId: true, apiName: true, privateApiName: true } }).execute(); - -// Create -const created = await db.membershipsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', membershipsTableId: '', membershipsTableName: '', membersTableId: '', membersTableName: '', membershipDefaultsTableId: '', membershipDefaultsTableName: '', membershipSettingsTableId: '', membershipSettingsTableName: '', grantsTableId: '', grantsTableName: '', actorTableId: '', limitsTableId: '', defaultLimitsTableId: '', permissionsTableId: '', defaultPermissionsTableId: '', sprtTableId: '', adminGrantsTableId: '', adminGrantsTableName: '', ownerGrantsTableId: '', ownerGrantsTableName: '', scope: '', prefix: '', entityTableId: '', entityTableOwnerId: '', getOrgFn: '', actorMaskCheck: '', actorPermCheck: '', entityIdsByMask: '', entityIdsByPerm: '', entityIdsFunction: '', memberProfilesTableId: '', permissionDefaultPermissionsTableId: '', permissionDefaultGrantsTableId: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.membershipsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.membershipsModule.delete({ where: { id: '' } }).execute(); -``` - ### `db.entityTypeProvision` CRUD operations for EntityTypeProvision records. @@ -2679,7 +2868,6 @@ CRUD operations for EntityTypeProvision records. | `outDefinitionsTableId` | UUID | Yes | | `outInvocationsTableId` | UUID | Yes | | `outExecutionLogsTableId` | UUID | Yes | -| `outSecretDefinitionsTableId` | UUID | Yes | | `outGraphModuleId` | UUID | Yes | | `outGraphsTableId` | UUID | Yes | | `outAgentModuleId` | UUID | Yes | @@ -2688,13 +2876,13 @@ CRUD operations for EntityTypeProvision records. ```typescript // List all entityTypeProvision records -const items = await db.entityTypeProvision.findMany({ select: { id: true, databaseId: true, name: true, prefix: true, description: true, parentEntity: true, tableName: true, isVisible: true, hasLimits: true, hasProfiles: true, hasLevels: true, hasInvites: true, hasInviteAchievements: true, storage: true, namespaces: true, functions: true, graphs: true, agents: true, skipEntityPolicies: true, tableProvision: true, outMembershipType: true, outEntityTableId: true, outEntityTableName: true, outInstalledModules: true, outStorageModuleId: true, outBucketsTableId: true, outFilesTableId: true, outPathSharesTableId: true, outInvitesModuleId: true, outNamespaceModuleId: true, outNamespacesTableId: true, outNamespaceEventsTableId: true, outFunctionModuleId: true, outDefinitionsTableId: true, outInvocationsTableId: true, outExecutionLogsTableId: true, outSecretDefinitionsTableId: true, outGraphModuleId: true, outGraphsTableId: true, outAgentModuleId: true } }).execute(); +const items = await db.entityTypeProvision.findMany({ select: { id: true, databaseId: true, name: true, prefix: true, description: true, parentEntity: true, tableName: true, isVisible: true, hasLimits: true, hasProfiles: true, hasLevels: true, hasInvites: true, hasInviteAchievements: true, storage: true, namespaces: true, functions: true, graphs: true, agents: true, skipEntityPolicies: true, tableProvision: true, outMembershipType: true, outEntityTableId: true, outEntityTableName: true, outInstalledModules: true, outStorageModuleId: true, outBucketsTableId: true, outFilesTableId: true, outPathSharesTableId: true, outInvitesModuleId: true, outNamespaceModuleId: true, outNamespacesTableId: true, outNamespaceEventsTableId: true, outFunctionModuleId: true, outDefinitionsTableId: true, outInvocationsTableId: true, outExecutionLogsTableId: true, outGraphModuleId: true, outGraphsTableId: true, outAgentModuleId: true } }).execute(); // Get one by id -const item = await db.entityTypeProvision.findOne({ id: '', select: { id: true, databaseId: true, name: true, prefix: true, description: true, parentEntity: true, tableName: true, isVisible: true, hasLimits: true, hasProfiles: true, hasLevels: true, hasInvites: true, hasInviteAchievements: true, storage: true, namespaces: true, functions: true, graphs: true, agents: true, skipEntityPolicies: true, tableProvision: true, outMembershipType: true, outEntityTableId: true, outEntityTableName: true, outInstalledModules: true, outStorageModuleId: true, outBucketsTableId: true, outFilesTableId: true, outPathSharesTableId: true, outInvitesModuleId: true, outNamespaceModuleId: true, outNamespacesTableId: true, outNamespaceEventsTableId: true, outFunctionModuleId: true, outDefinitionsTableId: true, outInvocationsTableId: true, outExecutionLogsTableId: true, outSecretDefinitionsTableId: true, outGraphModuleId: true, outGraphsTableId: true, outAgentModuleId: true } }).execute(); +const item = await db.entityTypeProvision.findOne({ id: '', select: { id: true, databaseId: true, name: true, prefix: true, description: true, parentEntity: true, tableName: true, isVisible: true, hasLimits: true, hasProfiles: true, hasLevels: true, hasInvites: true, hasInviteAchievements: true, storage: true, namespaces: true, functions: true, graphs: true, agents: true, skipEntityPolicies: true, tableProvision: true, outMembershipType: true, outEntityTableId: true, outEntityTableName: true, outInstalledModules: true, outStorageModuleId: true, outBucketsTableId: true, outFilesTableId: true, outPathSharesTableId: true, outInvitesModuleId: true, outNamespaceModuleId: true, outNamespacesTableId: true, outNamespaceEventsTableId: true, outFunctionModuleId: true, outDefinitionsTableId: true, outInvocationsTableId: true, outExecutionLogsTableId: true, outGraphModuleId: true, outGraphsTableId: true, outAgentModuleId: true } }).execute(); // Create -const created = await db.entityTypeProvision.create({ data: { databaseId: '', name: '', prefix: '', description: '', parentEntity: '', tableName: '', isVisible: '', hasLimits: '', hasProfiles: '', hasLevels: '', hasInvites: '', hasInviteAchievements: '', storage: '', namespaces: '', functions: '', graphs: '', agents: '', skipEntityPolicies: '', tableProvision: '', outMembershipType: '', outEntityTableId: '', outEntityTableName: '', outInstalledModules: '', outStorageModuleId: '', outBucketsTableId: '', outFilesTableId: '', outPathSharesTableId: '', outInvitesModuleId: '', outNamespaceModuleId: '', outNamespacesTableId: '', outNamespaceEventsTableId: '', outFunctionModuleId: '', outDefinitionsTableId: '', outInvocationsTableId: '', outExecutionLogsTableId: '', outSecretDefinitionsTableId: '', outGraphModuleId: '', outGraphsTableId: '', outAgentModuleId: '' }, select: { id: true } }).execute(); +const created = await db.entityTypeProvision.create({ data: { databaseId: '', name: '', prefix: '', description: '', parentEntity: '', tableName: '', isVisible: '', hasLimits: '', hasProfiles: '', hasLevels: '', hasInvites: '', hasInviteAchievements: '', storage: '', namespaces: '', functions: '', graphs: '', agents: '', skipEntityPolicies: '', tableProvision: '', outMembershipType: '', outEntityTableId: '', outEntityTableName: '', outInstalledModules: '', outStorageModuleId: '', outBucketsTableId: '', outFilesTableId: '', outPathSharesTableId: '', outInvitesModuleId: '', outNamespaceModuleId: '', outNamespacesTableId: '', outNamespaceEventsTableId: '', outFunctionModuleId: '', outDefinitionsTableId: '', outInvocationsTableId: '', outExecutionLogsTableId: '', outGraphModuleId: '', outGraphsTableId: '', outAgentModuleId: '' }, select: { id: true } }).execute(); // Update const updated = await db.entityTypeProvision.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); @@ -2726,6 +2914,7 @@ CRUD operations for StorageModule records. | `policies` | JSON | Yes | | `provisions` | JSON | Yes | | `entityTableId` | UUID | Yes | +| `entityField` | String | Yes | | `endpoint` | String | Yes | | `publicUrlPrefix` | String | Yes | | `provider` | String | Yes | @@ -2755,13 +2944,13 @@ CRUD operations for StorageModule records. ```typescript // List all storageModule records -const items = await db.storageModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, bucketsTableId: true, filesTableId: true, bucketsTableName: true, filesTableName: true, scope: true, prefix: true, policies: true, provisions: true, entityTableId: true, endpoint: true, publicUrlPrefix: true, provider: true, allowedOrigins: true, restrictReads: true, hasPathShares: true, pathSharesTableId: true, uploadUrlExpirySeconds: true, downloadUrlExpirySeconds: true, defaultMaxFileSize: true, maxFilenameLength: true, cacheTtlSeconds: true, maxBulkFiles: true, maxBulkTotalSize: true, hasVersioning: true, hasContentHash: true, hasCustomKeys: true, hasAuditLog: true, hasConfirmUpload: true, confirmUploadDelay: true, fileEventsTableId: true, defaultPermissions: true, apiName: true, privateApiName: true } }).execute(); +const items = await db.storageModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, bucketsTableId: true, filesTableId: true, bucketsTableName: true, filesTableName: true, scope: true, prefix: true, policies: true, provisions: true, entityTableId: true, entityField: true, endpoint: true, publicUrlPrefix: true, provider: true, allowedOrigins: true, restrictReads: true, hasPathShares: true, pathSharesTableId: true, uploadUrlExpirySeconds: true, downloadUrlExpirySeconds: true, defaultMaxFileSize: true, maxFilenameLength: true, cacheTtlSeconds: true, maxBulkFiles: true, maxBulkTotalSize: true, hasVersioning: true, hasContentHash: true, hasCustomKeys: true, hasAuditLog: true, hasConfirmUpload: true, confirmUploadDelay: true, fileEventsTableId: true, defaultPermissions: true, apiName: true, privateApiName: true } }).execute(); // Get one by id -const item = await db.storageModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, bucketsTableId: true, filesTableId: true, bucketsTableName: true, filesTableName: true, scope: true, prefix: true, policies: true, provisions: true, entityTableId: true, endpoint: true, publicUrlPrefix: true, provider: true, allowedOrigins: true, restrictReads: true, hasPathShares: true, pathSharesTableId: true, uploadUrlExpirySeconds: true, downloadUrlExpirySeconds: true, defaultMaxFileSize: true, maxFilenameLength: true, cacheTtlSeconds: true, maxBulkFiles: true, maxBulkTotalSize: true, hasVersioning: true, hasContentHash: true, hasCustomKeys: true, hasAuditLog: true, hasConfirmUpload: true, confirmUploadDelay: true, fileEventsTableId: true, defaultPermissions: true, apiName: true, privateApiName: true } }).execute(); +const item = await db.storageModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, bucketsTableId: true, filesTableId: true, bucketsTableName: true, filesTableName: true, scope: true, prefix: true, policies: true, provisions: true, entityTableId: true, entityField: true, endpoint: true, publicUrlPrefix: true, provider: true, allowedOrigins: true, restrictReads: true, hasPathShares: true, pathSharesTableId: true, uploadUrlExpirySeconds: true, downloadUrlExpirySeconds: true, defaultMaxFileSize: true, maxFilenameLength: true, cacheTtlSeconds: true, maxBulkFiles: true, maxBulkTotalSize: true, hasVersioning: true, hasContentHash: true, hasCustomKeys: true, hasAuditLog: true, hasConfirmUpload: true, confirmUploadDelay: true, fileEventsTableId: true, defaultPermissions: true, apiName: true, privateApiName: true } }).execute(); // Create -const created = await db.storageModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', bucketsTableId: '', filesTableId: '', bucketsTableName: '', filesTableName: '', scope: '', prefix: '', policies: '', provisions: '', entityTableId: '', endpoint: '', publicUrlPrefix: '', provider: '', allowedOrigins: '', restrictReads: '', hasPathShares: '', pathSharesTableId: '', uploadUrlExpirySeconds: '', downloadUrlExpirySeconds: '', defaultMaxFileSize: '', maxFilenameLength: '', cacheTtlSeconds: '', maxBulkFiles: '', maxBulkTotalSize: '', hasVersioning: '', hasContentHash: '', hasCustomKeys: '', hasAuditLog: '', hasConfirmUpload: '', confirmUploadDelay: '', fileEventsTableId: '', defaultPermissions: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); +const created = await db.storageModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', bucketsTableId: '', filesTableId: '', bucketsTableName: '', filesTableName: '', scope: '', prefix: '', policies: '', provisions: '', entityTableId: '', entityField: '', endpoint: '', publicUrlPrefix: '', provider: '', allowedOrigins: '', restrictReads: '', hasPathShares: '', pathSharesTableId: '', uploadUrlExpirySeconds: '', downloadUrlExpirySeconds: '', defaultMaxFileSize: '', maxFilenameLength: '', cacheTtlSeconds: '', maxBulkFiles: '', maxBulkTotalSize: '', hasVersioning: '', hasContentHash: '', hasCustomKeys: '', hasAuditLog: '', hasConfirmUpload: '', confirmUploadDelay: '', fileEventsTableId: '', defaultPermissions: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); // Update const updated = await db.storageModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); @@ -2770,6 +2959,76 @@ const updated = await db.storageModule.update({ where: { id: '' }, data: { const deleted = await db.storageModule.delete({ where: { id: '' } }).execute(); ``` +### `db.membershipsModule` + +CRUD operations for MembershipsModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `entityField` | String | Yes | +| `schemaId` | UUID | Yes | +| `privateSchemaId` | UUID | Yes | +| `publicSchemaName` | String | Yes | +| `privateSchemaName` | String | Yes | +| `membershipsTableId` | UUID | Yes | +| `membershipsTableName` | String | Yes | +| `membersTableId` | UUID | Yes | +| `membersTableName` | String | Yes | +| `membershipDefaultsTableId` | UUID | Yes | +| `membershipDefaultsTableName` | String | Yes | +| `membershipSettingsTableId` | UUID | Yes | +| `membershipSettingsTableName` | String | Yes | +| `grantsTableId` | UUID | Yes | +| `grantsTableName` | String | Yes | +| `actorTableId` | UUID | Yes | +| `limitsTableId` | UUID | Yes | +| `defaultLimitsTableId` | UUID | Yes | +| `permissionsTableId` | UUID | Yes | +| `defaultPermissionsTableId` | UUID | Yes | +| `sprtTableId` | UUID | Yes | +| `adminGrantsTableId` | UUID | Yes | +| `adminGrantsTableName` | String | Yes | +| `ownerGrantsTableId` | UUID | Yes | +| `ownerGrantsTableName` | String | Yes | +| `scope` | String | Yes | +| `prefix` | String | Yes | +| `entityTableId` | UUID | Yes | +| `entityTableOwnerId` | UUID | Yes | +| `getOrgFn` | String | Yes | +| `actorMaskCheck` | String | Yes | +| `actorPermCheck` | String | Yes | +| `entityIdsByMask` | String | Yes | +| `entityIdsByPerm` | String | Yes | +| `entityIdsFunction` | String | Yes | +| `memberProfilesTableId` | UUID | Yes | +| `permissionDefaultPermissionsTableId` | UUID | Yes | +| `permissionDefaultGrantsTableId` | UUID | Yes | +| `apiName` | String | Yes | +| `privateApiName` | String | Yes | + +**Operations:** + +```typescript +// List all membershipsModule records +const items = await db.membershipsModule.findMany({ select: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, membershipsTableId: true, membershipsTableName: true, membersTableId: true, membersTableName: true, membershipDefaultsTableId: true, membershipDefaultsTableName: true, membershipSettingsTableId: true, membershipSettingsTableName: true, grantsTableId: true, grantsTableName: true, actorTableId: true, limitsTableId: true, defaultLimitsTableId: true, permissionsTableId: true, defaultPermissionsTableId: true, sprtTableId: true, adminGrantsTableId: true, adminGrantsTableName: true, ownerGrantsTableId: true, ownerGrantsTableName: true, scope: true, prefix: true, entityTableId: true, entityTableOwnerId: true, getOrgFn: true, actorMaskCheck: true, actorPermCheck: true, entityIdsByMask: true, entityIdsByPerm: true, entityIdsFunction: true, memberProfilesTableId: true, permissionDefaultPermissionsTableId: true, permissionDefaultGrantsTableId: true, apiName: true, privateApiName: true } }).execute(); + +// Get one by id +const item = await db.membershipsModule.findOne({ id: '', select: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, membershipsTableId: true, membershipsTableName: true, membersTableId: true, membersTableName: true, membershipDefaultsTableId: true, membershipDefaultsTableName: true, membershipSettingsTableId: true, membershipSettingsTableName: true, grantsTableId: true, grantsTableName: true, actorTableId: true, limitsTableId: true, defaultLimitsTableId: true, permissionsTableId: true, defaultPermissionsTableId: true, sprtTableId: true, adminGrantsTableId: true, adminGrantsTableName: true, ownerGrantsTableId: true, ownerGrantsTableName: true, scope: true, prefix: true, entityTableId: true, entityTableOwnerId: true, getOrgFn: true, actorMaskCheck: true, actorPermCheck: true, entityIdsByMask: true, entityIdsByPerm: true, entityIdsFunction: true, memberProfilesTableId: true, permissionDefaultPermissionsTableId: true, permissionDefaultGrantsTableId: true, apiName: true, privateApiName: true } }).execute(); + +// Create +const created = await db.membershipsModule.create({ data: { databaseId: '', entityField: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', membershipsTableId: '', membershipsTableName: '', membersTableId: '', membersTableName: '', membershipDefaultsTableId: '', membershipDefaultsTableName: '', membershipSettingsTableId: '', membershipSettingsTableName: '', grantsTableId: '', grantsTableName: '', actorTableId: '', limitsTableId: '', defaultLimitsTableId: '', permissionsTableId: '', defaultPermissionsTableId: '', sprtTableId: '', adminGrantsTableId: '', adminGrantsTableName: '', ownerGrantsTableId: '', ownerGrantsTableName: '', scope: '', prefix: '', entityTableId: '', entityTableOwnerId: '', getOrgFn: '', actorMaskCheck: '', actorPermCheck: '', entityIdsByMask: '', entityIdsByPerm: '', entityIdsFunction: '', memberProfilesTableId: '', permissionDefaultPermissionsTableId: '', permissionDefaultGrantsTableId: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.membershipsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.membershipsModule.delete({ where: { id: '' } }).execute(); +``` + ### `db.eventsModule` CRUD operations for EventsModule records. @@ -2780,6 +3039,7 @@ CRUD operations for EventsModule records. |-------|------|----------| | `id` | UUID | No | | `databaseId` | UUID | Yes | +| `entityField` | String | Yes | | `schemaId` | UUID | Yes | | `privateSchemaId` | UUID | Yes | | `publicSchemaName` | String | Yes | @@ -2806,7 +3066,6 @@ CRUD operations for EventsModule records. | `tgEventBool` | String | Yes | | `upsertAggregate` | String | Yes | | `tgUpdateAggregates` | String | Yes | -| `pruneEvents` | String | Yes | | `stepsRequired` | String | Yes | | `levelAchieved` | String | Yes | | `tgCheckAchievements` | String | Yes | @@ -2827,13 +3086,13 @@ CRUD operations for EventsModule records. ```typescript // List all eventsModule records -const items = await db.eventsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, eventsTableId: true, eventsTableName: true, eventAggregatesTableId: true, eventAggregatesTableName: true, eventTypesTableId: true, eventTypesTableName: true, levelsTableId: true, levelsTableName: true, levelRequirementsTableId: true, levelRequirementsTableName: true, levelGrantsTableId: true, levelGrantsTableName: true, achievementRewardsTableId: true, achievementRewardsTableName: true, recordEvent: true, removeEvent: true, tgEvent: true, tgEventToggle: true, tgEventToggleBool: true, tgEventBool: true, upsertAggregate: true, tgUpdateAggregates: true, pruneEvents: true, stepsRequired: true, levelAchieved: true, tgCheckAchievements: true, grantAchievement: true, tgAchievementReward: true, interval: true, retention: true, premake: true, scope: true, prefix: true, entityTableId: true, actorTableId: true, defaultPermissions: true, apiName: true, privateApiName: true } }).execute(); +const items = await db.eventsModule.findMany({ select: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, eventsTableId: true, eventsTableName: true, eventAggregatesTableId: true, eventAggregatesTableName: true, eventTypesTableId: true, eventTypesTableName: true, levelsTableId: true, levelsTableName: true, levelRequirementsTableId: true, levelRequirementsTableName: true, levelGrantsTableId: true, levelGrantsTableName: true, achievementRewardsTableId: true, achievementRewardsTableName: true, recordEvent: true, removeEvent: true, tgEvent: true, tgEventToggle: true, tgEventToggleBool: true, tgEventBool: true, upsertAggregate: true, tgUpdateAggregates: true, stepsRequired: true, levelAchieved: true, tgCheckAchievements: true, grantAchievement: true, tgAchievementReward: true, interval: true, retention: true, premake: true, scope: true, prefix: true, entityTableId: true, actorTableId: true, defaultPermissions: true, apiName: true, privateApiName: true } }).execute(); // Get one by id -const item = await db.eventsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, eventsTableId: true, eventsTableName: true, eventAggregatesTableId: true, eventAggregatesTableName: true, eventTypesTableId: true, eventTypesTableName: true, levelsTableId: true, levelsTableName: true, levelRequirementsTableId: true, levelRequirementsTableName: true, levelGrantsTableId: true, levelGrantsTableName: true, achievementRewardsTableId: true, achievementRewardsTableName: true, recordEvent: true, removeEvent: true, tgEvent: true, tgEventToggle: true, tgEventToggleBool: true, tgEventBool: true, upsertAggregate: true, tgUpdateAggregates: true, pruneEvents: true, stepsRequired: true, levelAchieved: true, tgCheckAchievements: true, grantAchievement: true, tgAchievementReward: true, interval: true, retention: true, premake: true, scope: true, prefix: true, entityTableId: true, actorTableId: true, defaultPermissions: true, apiName: true, privateApiName: true } }).execute(); +const item = await db.eventsModule.findOne({ id: '', select: { id: true, databaseId: true, entityField: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, eventsTableId: true, eventsTableName: true, eventAggregatesTableId: true, eventAggregatesTableName: true, eventTypesTableId: true, eventTypesTableName: true, levelsTableId: true, levelsTableName: true, levelRequirementsTableId: true, levelRequirementsTableName: true, levelGrantsTableId: true, levelGrantsTableName: true, achievementRewardsTableId: true, achievementRewardsTableName: true, recordEvent: true, removeEvent: true, tgEvent: true, tgEventToggle: true, tgEventToggleBool: true, tgEventBool: true, upsertAggregate: true, tgUpdateAggregates: true, stepsRequired: true, levelAchieved: true, tgCheckAchievements: true, grantAchievement: true, tgAchievementReward: true, interval: true, retention: true, premake: true, scope: true, prefix: true, entityTableId: true, actorTableId: true, defaultPermissions: true, apiName: true, privateApiName: true } }).execute(); // Create -const created = await db.eventsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', eventsTableId: '', eventsTableName: '', eventAggregatesTableId: '', eventAggregatesTableName: '', eventTypesTableId: '', eventTypesTableName: '', levelsTableId: '', levelsTableName: '', levelRequirementsTableId: '', levelRequirementsTableName: '', levelGrantsTableId: '', levelGrantsTableName: '', achievementRewardsTableId: '', achievementRewardsTableName: '', recordEvent: '', removeEvent: '', tgEvent: '', tgEventToggle: '', tgEventToggleBool: '', tgEventBool: '', upsertAggregate: '', tgUpdateAggregates: '', pruneEvents: '', stepsRequired: '', levelAchieved: '', tgCheckAchievements: '', grantAchievement: '', tgAchievementReward: '', interval: '', retention: '', premake: '', scope: '', prefix: '', entityTableId: '', actorTableId: '', defaultPermissions: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); +const created = await db.eventsModule.create({ data: { databaseId: '', entityField: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', eventsTableId: '', eventsTableName: '', eventAggregatesTableId: '', eventAggregatesTableName: '', eventTypesTableId: '', eventTypesTableName: '', levelsTableId: '', levelsTableName: '', levelRequirementsTableId: '', levelRequirementsTableName: '', levelGrantsTableId: '', levelGrantsTableName: '', achievementRewardsTableId: '', achievementRewardsTableName: '', recordEvent: '', removeEvent: '', tgEvent: '', tgEventToggle: '', tgEventToggleBool: '', tgEventBool: '', upsertAggregate: '', tgUpdateAggregates: '', stepsRequired: '', levelAchieved: '', tgCheckAchievements: '', grantAchievement: '', tgAchievementReward: '', interval: '', retention: '', premake: '', scope: '', prefix: '', entityTableId: '', actorTableId: '', defaultPermissions: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); // Update const updated = await db.eventsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); diff --git a/sdk/constructive-sdk/src/modules/orm/index.ts b/sdk/constructive-sdk/src/modules/orm/index.ts index c425b183cd..6ef3c70258 100644 --- a/sdk/constructive-sdk/src/modules/orm/index.ts +++ b/sdk/constructive-sdk/src/modules/orm/index.ts @@ -7,23 +7,21 @@ import { OrmClient } from './client'; import type { OrmClientConfig } from './client'; import { DefaultIdsModuleModel } from './models/defaultIdsModule'; import { MembershipTypesModuleModel } from './models/membershipTypesModule'; -import { UserStateModuleModel } from './models/userStateModule'; import { SessionSecretsModuleModel } from './models/sessionSecretsModule'; -import { ConfigSecretsOrgModuleModel } from './models/configSecretsOrgModule'; import { DevicesModuleModel } from './models/devicesModule'; import { I18NModuleModel } from './models/i18NModule'; -import { UserCredentialsModuleModel } from './models/userCredentialsModule'; import { UserSettingsModuleModel } from './models/userSettingsModule'; -import { ConfigSecretsUserModuleModel } from './models/configSecretsUserModule'; +import { UserStateModuleModel } from './models/userStateModule'; +import { UserCredentialsModuleModel } from './models/userCredentialsModule'; import { ConnectedAccountsModuleModel } from './models/connectedAccountsModule'; import { EmailsModuleModel } from './models/emailsModule'; import { PhoneNumbersModuleModel } from './models/phoneNumbersModule'; import { RateLimitsModuleModel } from './models/rateLimitsModule'; import { UsersModuleModel } from './models/usersModule'; import { WebauthnCredentialsModuleModel } from './models/webauthnCredentialsModule'; +import { ConfigSecretsUserModuleModel } from './models/configSecretsUserModule'; import { CryptoAddressesModuleModel } from './models/cryptoAddressesModule'; import { DenormalizedTableFieldModel } from './models/denormalizedTableField'; -import { IdentityProvidersModuleModel } from './models/identityProvidersModule'; import { RlsModuleModel } from './models/rlsModule'; import { BlueprintModel } from './models/blueprint'; import { BlueprintTemplateModel } from './models/blueprintTemplate'; @@ -31,40 +29,47 @@ import { BlueprintConstructionModel } from './models/blueprintConstruction'; import { CryptoAuthModuleModel } from './models/cryptoAuthModule'; import { SessionsModuleModel } from './models/sessionsModule'; import { SecureTableProvisionModel } from './models/secureTableProvision'; -import { DatabaseProvisionModuleModel } from './models/databaseProvisionModule'; -import { ConfigSecretsModuleModel } from './models/configSecretsModule'; +import { IdentityProvidersModuleModel } from './models/identityProvidersModule'; +import { IntegrationProvidersModuleModel } from './models/integrationProvidersModule'; +import { DbPoolConfigModel } from './models/dbPoolConfig'; +import { RealtimeModuleModel } from './models/realtimeModule'; +import { InfraSecretsModuleModel } from './models/infraSecretsModule'; +import { InternalSecretsModuleModel } from './models/internalSecretsModule'; +import { DbPresetModuleModel } from './models/dbPresetModule'; import { GraphModuleModel } from './models/graphModule'; -import { MerkleStoreModuleModel } from './models/merkleStoreModule'; import { RateLimitMetersModuleModel } from './models/rateLimitMetersModule'; -import { RealtimeModuleModel } from './models/realtimeModule'; +import { InfraConfigModuleModel } from './models/infraConfigModule'; import { WebauthnAuthModuleModel } from './models/webauthnAuthModule'; -import { FunctionInvocationModuleModel } from './models/functionInvocationModule'; +import { PrincipalAuthModuleModel } from './models/principalAuthModule'; +import { DbPoolModel } from './models/dbPool'; import { FunctionModuleModel } from './models/functionModule'; +import { MerkleStoreModuleModel } from './models/merkleStoreModule'; +import { DatabaseProvisionModuleModel } from './models/databaseProvisionModule'; +import { FunctionInvocationModuleModel } from './models/functionInvocationModule'; import { InvitesModuleModel } from './models/invitesModule'; -import { PrincipalAuthModuleModel } from './models/principalAuthModule'; +import { NamespaceModuleModel } from './models/namespaceModule'; +import { PlansModuleModel } from './models/plansModule'; import { ComputeLogModuleModel } from './models/computeLogModule'; import { InferenceLogModuleModel } from './models/inferenceLogModule'; -import { NamespaceModuleModel } from './models/namespaceModule'; -import { ResourceModuleModel } from './models/resourceModule'; import { StorageLogModuleModel } from './models/storageLogModule'; import { TransferLogModuleModel } from './models/transferLogModule'; -import { FunctionDeploymentModuleModel } from './models/functionDeploymentModule'; -import { PlansModuleModel } from './models/plansModule'; import { BillingProviderModuleModel } from './models/billingProviderModule'; -import { DbUsageModuleModel } from './models/dbUsageModule'; +import { FunctionDeploymentModuleModel } from './models/functionDeploymentModule'; +import { PermissionsModuleModel } from './models/permissionsModule'; import { GraphExecutionModuleModel } from './models/graphExecutionModule'; import { HierarchyModuleModel } from './models/hierarchyModule'; -import { PermissionsModuleModel } from './models/permissionsModule'; import { NotificationsModuleModel } from './models/notificationsModule'; +import { RelationProvisionModel } from './models/relationProvision'; import { ProfilesModuleModel } from './models/profilesModule'; import { BillingModuleModel } from './models/billingModule'; -import { RelationProvisionModel } from './models/relationProvision'; +import { ResourceModuleModel } from './models/resourceModule'; import { UserAuthModuleModel } from './models/userAuthModule'; +import { DbUsageModuleModel } from './models/dbUsageModule'; import { AgentModuleModel } from './models/agentModule'; import { LimitsModuleModel } from './models/limitsModule'; -import { MembershipsModuleModel } from './models/membershipsModule'; import { EntityTypeProvisionModel } from './models/entityTypeProvision'; import { StorageModuleModel } from './models/storageModule'; +import { MembershipsModuleModel } from './models/membershipsModule'; import { EventsModuleModel } from './models/eventsModule'; import { createQueryOperations } from './query'; import { createMutationOperations } from './mutation'; @@ -103,23 +108,21 @@ export function createClient(config: OrmClientConfig) { return { defaultIdsModule: new DefaultIdsModuleModel(client), membershipTypesModule: new MembershipTypesModuleModel(client), - userStateModule: new UserStateModuleModel(client), sessionSecretsModule: new SessionSecretsModuleModel(client), - configSecretsOrgModule: new ConfigSecretsOrgModuleModel(client), devicesModule: new DevicesModuleModel(client), i18NModule: new I18NModuleModel(client), - userCredentialsModule: new UserCredentialsModuleModel(client), userSettingsModule: new UserSettingsModuleModel(client), - configSecretsUserModule: new ConfigSecretsUserModuleModel(client), + userStateModule: new UserStateModuleModel(client), + userCredentialsModule: new UserCredentialsModuleModel(client), connectedAccountsModule: new ConnectedAccountsModuleModel(client), emailsModule: new EmailsModuleModel(client), phoneNumbersModule: new PhoneNumbersModuleModel(client), rateLimitsModule: new RateLimitsModuleModel(client), usersModule: new UsersModuleModel(client), webauthnCredentialsModule: new WebauthnCredentialsModuleModel(client), + configSecretsUserModule: new ConfigSecretsUserModuleModel(client), cryptoAddressesModule: new CryptoAddressesModuleModel(client), denormalizedTableField: new DenormalizedTableFieldModel(client), - identityProvidersModule: new IdentityProvidersModuleModel(client), rlsModule: new RlsModuleModel(client), blueprint: new BlueprintModel(client), blueprintTemplate: new BlueprintTemplateModel(client), @@ -127,40 +130,47 @@ export function createClient(config: OrmClientConfig) { cryptoAuthModule: new CryptoAuthModuleModel(client), sessionsModule: new SessionsModuleModel(client), secureTableProvision: new SecureTableProvisionModel(client), - databaseProvisionModule: new DatabaseProvisionModuleModel(client), - configSecretsModule: new ConfigSecretsModuleModel(client), + identityProvidersModule: new IdentityProvidersModuleModel(client), + integrationProvidersModule: new IntegrationProvidersModuleModel(client), + dbPoolConfig: new DbPoolConfigModel(client), + realtimeModule: new RealtimeModuleModel(client), + infraSecretsModule: new InfraSecretsModuleModel(client), + internalSecretsModule: new InternalSecretsModuleModel(client), + dbPresetModule: new DbPresetModuleModel(client), graphModule: new GraphModuleModel(client), - merkleStoreModule: new MerkleStoreModuleModel(client), rateLimitMetersModule: new RateLimitMetersModuleModel(client), - realtimeModule: new RealtimeModuleModel(client), + infraConfigModule: new InfraConfigModuleModel(client), webauthnAuthModule: new WebauthnAuthModuleModel(client), - functionInvocationModule: new FunctionInvocationModuleModel(client), + principalAuthModule: new PrincipalAuthModuleModel(client), + dbPool: new DbPoolModel(client), functionModule: new FunctionModuleModel(client), + merkleStoreModule: new MerkleStoreModuleModel(client), + databaseProvisionModule: new DatabaseProvisionModuleModel(client), + functionInvocationModule: new FunctionInvocationModuleModel(client), invitesModule: new InvitesModuleModel(client), - principalAuthModule: new PrincipalAuthModuleModel(client), + namespaceModule: new NamespaceModuleModel(client), + plansModule: new PlansModuleModel(client), computeLogModule: new ComputeLogModuleModel(client), inferenceLogModule: new InferenceLogModuleModel(client), - namespaceModule: new NamespaceModuleModel(client), - resourceModule: new ResourceModuleModel(client), storageLogModule: new StorageLogModuleModel(client), transferLogModule: new TransferLogModuleModel(client), - functionDeploymentModule: new FunctionDeploymentModuleModel(client), - plansModule: new PlansModuleModel(client), billingProviderModule: new BillingProviderModuleModel(client), - dbUsageModule: new DbUsageModuleModel(client), + functionDeploymentModule: new FunctionDeploymentModuleModel(client), + permissionsModule: new PermissionsModuleModel(client), graphExecutionModule: new GraphExecutionModuleModel(client), hierarchyModule: new HierarchyModuleModel(client), - permissionsModule: new PermissionsModuleModel(client), notificationsModule: new NotificationsModuleModel(client), + relationProvision: new RelationProvisionModel(client), profilesModule: new ProfilesModuleModel(client), billingModule: new BillingModuleModel(client), - relationProvision: new RelationProvisionModel(client), + resourceModule: new ResourceModuleModel(client), userAuthModule: new UserAuthModuleModel(client), + dbUsageModule: new DbUsageModuleModel(client), agentModule: new AgentModuleModel(client), limitsModule: new LimitsModuleModel(client), - membershipsModule: new MembershipsModuleModel(client), entityTypeProvision: new EntityTypeProvisionModel(client), storageModule: new StorageModuleModel(client), + membershipsModule: new MembershipsModuleModel(client), eventsModule: new EventsModuleModel(client), query: createQueryOperations(client), mutation: createMutationOperations(client), diff --git a/sdk/constructive-sdk/src/modules/orm/input-types.ts b/sdk/constructive-sdk/src/modules/orm/input-types.ts index 2a57e98f03..88639dce8f 100644 --- a/sdk/constructive-sdk/src/modules/orm/input-types.ts +++ b/sdk/constructive-sdk/src/modules/orm/input-types.ts @@ -242,13 +242,6 @@ export interface MembershipTypesModule { tableId?: string | null; tableName?: string | null; } -export interface UserStateModule { - id: string; - databaseId?: string | null; - schemaId?: string | null; - tableId?: string | null; - tableName?: string | null; -} /** 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. */ export interface SessionSecretsModule { id: string; @@ -259,16 +252,6 @@ export interface SessionSecretsModule { /** Resolved reference to sessions_module.sessions_table, used to FK session_secrets.session_id with ON DELETE CASCADE. */ sessionsTableId?: string | null; } -/** Config row for the config_secrets_org_module, which provisions an organization-scoped encrypted key-value secrets store with manage_secrets permission and entity-membership RLS. */ -export interface ConfigSecretsOrgModule { - id: string; - databaseId?: string | null; - schemaId?: string | null; - tableId?: string | null; - tableName?: string | null; - apiName?: string | null; - privateApiName?: string | null; -} export interface DevicesModule { id: string; databaseId?: string | null; @@ -287,37 +270,35 @@ export interface I18NModule { apiName?: string | null; privateApiName?: string | null; } -/** - * Per-user bcrypt credential store (password hashes, API key hashes). - * Always user-scoped with AuthzDirectOwner RLS. Consumed by user_auth_module, - * identity_providers_module, and bootstrap procedures. - */ -export interface UserCredentialsModule { +export interface UserSettingsModule { id: string; databaseId?: string | null; schemaId?: string | null; tableId?: string | null; + ownerTableId?: string | null; tableName?: string | null; apiName?: string | null; - privateApiName?: string | null; } -export interface UserSettingsModule { +export interface UserStateModule { id: string; databaseId?: string | null; + entityField?: string | null; schemaId?: string | null; tableId?: string | null; - ownerTableId?: string | null; tableName?: string | null; - apiName?: string | null; } -export interface ConfigSecretsUserModule { +/** + * Per-user bcrypt credential store (password hashes, API key hashes). + * Always user-scoped with AuthzDirectOwner RLS. Consumed by user_auth_module, + * identity_providers_module, and bootstrap procedures. + */ +export interface UserCredentialsModule { id: string; databaseId?: string | null; + entityField?: string | null; schemaId?: string | null; tableId?: string | null; tableName?: string | null; - configDefinitionsTableId?: string | null; - apiName?: string | null; privateApiName?: string | null; } export interface ConnectedAccountsModule { @@ -388,6 +369,16 @@ export interface WebauthnCredentialsModule { apiName?: string | null; privateApiName?: string | null; } +export interface ConfigSecretsUserModule { + id: string; + databaseId?: string | null; + entityField?: string | null; + schemaId?: string | null; + tableId?: string | null; + tableName?: string | null; + apiName?: string | null; + privateApiName?: string | null; +} export interface CryptoAddressesModule { id: string; databaseId?: string | null; @@ -414,34 +405,6 @@ export interface DenormalizedTableField { funcName?: string | null; funcOrder?: number | null; } -/** - * Entity-aware config row for the identity_providers_module, which provisions a per-database - * identity_providers table holding OAuth2 / OIDC (and future SAML) provider definitions. - * The scope column determines which config_secrets_module table the rotate proc targets - * (app_secrets for app scope, org_secrets for org scope). When scope = platform, - * the secrets table gets a database_id column and platform-level RLS via - * AuthzRelatedEntityMembership through database.owner_id. - * Scoping matrix: - * scope=app → per-database flat, in-app admin manages - * scope=platform → per-database, platform admin manages (generate:constructive) - * scope=org → per-org tenant, org admin manages - */ -export interface IdentityProvidersModule { - id: string; - databaseId?: string | null; - schemaId?: string | null; - /** Private schema that hosts SECURITY DEFINER admin helpers which write to identity_providers (create / update / enable / disable / rotate-secret / delete) and the per-app quota check. */ - privateSchemaId?: string | null; - publicSchemaName?: string | null; - privateSchemaName?: string | null; - tableId?: string | null; - tableName?: string | null; - apiName?: string | null; - privateApiName?: string | null; - scope?: string | null; - prefix?: string | null; - entityTableId?: string | null; -} export interface RlsModule { id: string; databaseId?: string | null; @@ -606,57 +569,132 @@ export interface SecureTableProvision { /** 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; } -/** 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 { +/** + * Entity-aware config row for the identity_providers_module, which provisions a per-database + * identity_providers table holding OAuth2 / OIDC (and future SAML) provider definitions. + * The scope column determines which internal_secrets_module table the rotate proc targets + * (app_secrets for app scope, platform_secrets for platform scope). When scope = database, + * the secrets table gets a database_id column. + * Scoping matrix: + * 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 + */ +export interface IdentityProvidersModule { id: string; - /** The name for the new database */ - databaseName?: string | null; - /** UUID of the user who owns this database */ - ownerId?: string | null; - /** Subdomain prefix for the database. If null, auto-generated using unique_names + random chars */ - subdomain?: string | null; - /** Base domain for the database (e.g., example.com) */ - domain?: string | null; - /** JSONB array of modules to install. Each element is either a string ("users_module") or a [name, options] tuple (["permissions_module", {"scope": "app"}]) */ - modules?: Record | null; - /** Additional configuration options for provisioning */ - options?: Record | null; - /** When true, copies the owner user and password hash from source database to the newly provisioned database */ - bootstrapUser?: boolean | null; - /** Current status: pending, in_progress, completed, or failed */ - status?: string | null; - errorMessage?: string | null; - /** The ID of the provisioned database (set by trigger before RLS check) */ databaseId?: string | null; - createdAt?: string | null; - updatedAt?: string | null; - completedAt?: string | null; + entityField?: string | null; + schemaId?: string | null; + /** Private schema that hosts SECURITY DEFINER admin helpers which write to identity_providers (create / update / enable / disable / rotate-secret / delete) and the per-app quota check. */ + privateSchemaId?: string | null; + publicSchemaName?: string | null; + privateSchemaName?: string | null; + tableId?: string | null; + tableName?: string | null; + apiName?: string | null; + privateApiName?: string | null; + scope?: string | null; + prefix?: string | null; + entityTableId?: string | null; } /** - * Entity-aware PGP-encrypted key-value config/secrets module. Supports app-level (admin-only) - * and org-scoped (per-org secrets with manage_secrets permission) via the scope column. - * User-scoped bcrypt credentials are handled by user_credentials_module. + * Config row for the integration_providers_module, which provisions a per-database + * integration_providers table holding branded, reusable service definitions. + * 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. */ -export interface ConfigSecretsModule { +export interface IntegrationProvidersModule { id: string; databaseId?: string | null; + entityField?: string | null; schemaId?: string | null; privateSchemaId?: string | null; publicSchemaName?: string | null; privateSchemaName?: string | null; tableId?: string | null; - configDefinitionsTableId?: string | null; tableName?: string | null; apiName?: string | null; privateApiName?: string | null; scope?: string | null; prefix?: string | null; entityTableId?: string | null; +} +/** Per-preset configuration for the warm database pool: sizing, TTL, and the platform service org that owns unclaimed warm databases. */ +export interface DbPoolConfig { + id: string; + /** Slug of the db_presets catalog row this pool serves */ + presetSlug?: string | null; + /** Base domain used when provisioning warm databases */ + domain?: string | null; + /** Platform pool service org that owns warm databases until they are claimed */ + poolOwnerId?: string | null; + /** Minimum number of ready warm databases the reconciler maintains */ + min?: number | null; + /** Maximum number of warming + ready databases the reconciler will keep */ + max?: number | null; + /** How long a ready warm database stays claimable before it expires */ + warmTtl?: string | null; + /** When false the reconciler stops warming and the claim path falls through to cold provisioning */ + enabled?: boolean | null; + createdAt?: string | null; + updatedAt?: string | null; +} +export interface RealtimeModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + subscriptionsSchemaId?: string | null; + changeLogTableId?: string | null; + listenerNodeTableId?: string | null; + sourceRegistryTableId?: string | null; + retentionHours?: number | null; + premake?: number | null; + interval?: string | null; + notifyChannel?: string | null; + apiName?: string | null; + privateApiName?: string | null; +} +/** Namespace-backed PGP-encrypted key-value secrets module. Requires namespace_module and emits namespace:sync_secrets job triggers for K8s Secret synchronization. */ +export interface InfraSecretsModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + publicSchemaName?: string | null; + privateSchemaName?: string | null; + secretsTableId?: string | null; + secretsTableName?: string | null; + apiName?: string | null; + privateApiName?: string | null; + scope?: string | null; + prefix?: string | null; + entityTableId?: string | null; + entityField?: string | null; policies?: Record | null; provisions?: Record | null; - hasConfig?: boolean | null; } -export interface GraphModule { +/** 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 { + id: string; + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + publicSchemaName?: string | null; + privateSchemaName?: string | null; + internalSecretsTableId?: string | null; + internalSecretsTableName?: string | null; + apiName?: string | null; + privateApiName?: string | null; + scope?: string | null; + prefix?: string | null; + entityTableId?: string | null; + entityField?: string | null; + policies?: Record | null; + provisions?: Record | null; +} +export interface DbPresetModule { id: string; databaseId?: string | null; publicSchemaId?: string | null; @@ -666,32 +704,33 @@ export interface GraphModule { scope?: string | null; prefix?: string | null; merkleStoreModuleId?: string | null; - graphsTableId?: string | null; + dbPresetsTableId?: string | null; + storeName?: string | null; apiName?: string | null; privateApiName?: string | null; entityTableId?: string | null; policies?: Record | null; provisions?: Record | null; - defaultPermissions?: string[] | null; createdAt?: string | null; } -export interface MerkleStoreModule { +export interface GraphModule { id: string; databaseId?: string | null; - schemaId?: string | null; + entityField?: string | null; + publicSchemaId?: string | null; privateSchemaId?: string | null; publicSchemaName?: string | null; privateSchemaName?: string | null; - objectTableId?: string | null; - storeTableId?: string | null; - commitTableId?: string | null; - refTableId?: string | null; + scope?: string | null; prefix?: string | null; + merkleStoreModuleId?: string | null; + graphsTableId?: string | null; apiName?: string | null; privateApiName?: string | null; - scope?: string | null; - functionPrefix?: string | null; - permissionKey?: string | null; + entityTableId?: string | null; + policies?: Record | null; + provisions?: Record | null; + defaultPermissions?: string[] | null; createdAt?: string | null; } export interface RateLimitMetersModule { @@ -713,21 +752,24 @@ export interface RateLimitMetersModule { apiName?: string | null; privateApiName?: string | null; } -export interface RealtimeModule { +/** Namespace-backed plaintext key-value config module. Requires namespace_module and emits namespace:sync_config job triggers for K8s ConfigMap synchronization. */ +export interface InfraConfigModule { id: string; databaseId?: string | null; + entityField?: string | null; schemaId?: string | null; privateSchemaId?: string | null; - subscriptionsSchemaId?: string | null; - changeLogTableId?: string | null; - listenerNodeTableId?: string | null; - sourceRegistryTableId?: string | null; - retentionHours?: number | null; - premake?: number | null; - interval?: string | null; - notifyChannel?: string | null; + publicSchemaName?: string | null; + privateSchemaName?: string | null; + configTableId?: string | null; + configTableName?: string | null; apiName?: string | null; privateApiName?: string | null; + scope?: string | null; + prefix?: string | null; + entityTableId?: string | null; + policies?: Record | null; + provisions?: Record | null; } export interface WebauthnAuthModule { id: string; @@ -747,37 +789,59 @@ export interface WebauthnAuthModule { residentKey?: string | null; challengeExpiry?: string | null; } -export interface FunctionInvocationModule { +/** Provisions the principals subsystem: a principals table, a principal_entities junction table, create/delete mutations, and org API key management. Supports both human-owned principals (AuthzDirectOwner, AuthzHumanOnly) and org-owned principals (AuthzEntityMembership with is_admin). Org principal and org API key functions are only generated when an org-scoped memberships_module exists for the database. */ +export interface PrincipalAuthModule { id: string; databaseId?: string | null; schemaId?: string | null; - privateSchemaId?: string | null; - publicSchemaName?: string | null; - privateSchemaName?: string | null; - invocationsTableId?: string | null; - executionLogsTableId?: string | null; - invocationsTableName?: string | null; - executionLogsTableName?: string | null; + principalsTableId?: string | null; + principalEntitiesTableId?: string | null; + principalScopeOverridesTableId?: string | null; + usersTableId?: string | null; + sessionsTableId?: string | null; + sessionCredentialsTableId?: string | null; + auditsTableId?: string | null; + principalsTableName?: string | null; + createPrincipalFunction?: string | null; + deletePrincipalFunction?: string | null; + createOrgPrincipalFunction?: string | null; + deleteOrgPrincipalFunction?: string | null; + createOrgApiKeyFunction?: string | null; + revokeOrgApiKeyFunction?: string | null; apiName?: string | null; - privateApiName?: string | null; - scope?: string | null; - prefix?: string | null; - entityTableId?: string | null; - policies?: Record | null; - provisions?: Record | null; - defaultPermissions?: string[] | null; +} +/** Warm database pool entries. Rows are inserted as warming (which enqueues a db_pool:warm_database job), become ready once provisioned, and are handed to users via metaschema_private.db_pool_claim (invoked by metaschema_public.request_database). */ +export interface DbPool { + id: string; + /** Slug of the db_presets catalog row this entry was baked from */ + presetSlug?: string | null; + /** The db_presets merkle commit_id the warm database was baked from; a mismatch with the current head marks the entry stale */ + presetCommitId?: string | null; + databaseId?: string | null; + /** Lifecycle: warming, ready, claimed, stale, expired, or failed */ + status?: string | null; + errorMessage?: string | null; + /** When a ready entry expires (set from db_pool_config.warm_ttl at warm time) */ + expiresAt?: string | null; + /** User the database was transferred to at claim time */ + claimedBy?: string | null; + claimedAt?: string | null; + /** Status of the deferred owner bootstrap job after claim: not_requested, pending, completed, or failed */ + bootstrapStatus?: string | null; + bootstrapError?: string | null; + createdAt?: string | null; + updatedAt?: string | null; } export interface FunctionModule { id: string; databaseId?: string | null; + entityField?: string | null; schemaId?: string | null; privateSchemaId?: string | null; publicSchemaName?: string | null; privateSchemaName?: string | null; definitionsTableId?: string | null; - secretDefinitionsTableId?: string | null; definitionsTableName?: string | null; - secretDefinitionsTableName?: string | null; apiName?: string | null; privateApiName?: string | null; scope?: string | null; @@ -787,92 +851,106 @@ export interface FunctionModule { provisions?: Record | null; defaultPermissions?: string[] | null; } -export interface InvitesModule { +export interface MerkleStoreModule { id: string; databaseId?: string | null; + entityField?: string | null; schemaId?: string | null; privateSchemaId?: string | null; publicSchemaName?: string | null; privateSchemaName?: string | null; - emailsTableId?: string | null; - usersTableId?: string | null; - invitesTableId?: string | null; - claimedInvitesTableId?: string | null; - invitesTableName?: string | null; - claimedInvitesTableName?: string | null; - submitInviteCodeFunction?: string | null; - scope?: string | null; + objectTableId?: string | null; + storeTableId?: string | null; + commitTableId?: string | null; + refTableId?: string | null; prefix?: string | null; - entityTableId?: string | null; apiName?: string | null; privateApiName?: string | null; + scope?: string | null; + functionPrefix?: string | null; + permissionKey?: string | null; + createdAt?: string | null; } -/** Provisions the principals subsystem: a principals table, a principal_entities junction table, create/delete mutations, and org API key management. Supports both human-owned principals (AuthzDirectOwner, AuthzHumanOnly) and org-owned principals (AuthzEntityMembership with is_admin). Org principal and org API key functions are only generated when an org-scoped memberships_module exists for the database. */ -export interface PrincipalAuthModule { +/** Tracks database provisioning requests and their status. The BEFORE INSERT trigger creates the database and sets database_id before RLS policies are evaluated. */ +export interface DatabaseProvisionModule { id: string; - databaseId?: string | null; - schemaId?: string | null; - principalsTableId?: string | null; - principalEntitiesTableId?: string | null; - principalScopeOverridesTableId?: string | null; - usersTableId?: string | null; - sessionsTableId?: string | null; - sessionCredentialsTableId?: string | null; - auditsTableId?: string | null; - principalsTableName?: string | null; - createPrincipalFunction?: string | null; - deletePrincipalFunction?: string | null; - createOrgPrincipalFunction?: string | null; - deleteOrgPrincipalFunction?: string | null; - createOrgApiKeyFunction?: string | null; - revokeOrgApiKeyFunction?: string | null; - apiName?: string | null; + /** The name for the new database */ + databaseName?: string | null; + /** UUID of the user who owns this database */ + ownerId?: string | null; + /** Subdomain prefix for the database. If null, auto-generated using unique_names + random chars */ + subdomain?: string | null; + /** Base domain for the database (e.g., example.com) */ + domain?: string | null; + /** JSONB array of modules to install. Each element is either a string ("users_module") or a [name, options] tuple (["permissions_module", {"scope": "app"}]) */ + modules?: Record | null; + /** Additional configuration options for provisioning */ + options?: Record | null; + /** When true, copies the owner user and password hash from source database to the newly provisioned database */ + bootstrapUser?: boolean | null; + /** Current status: pending, in_progress, completed, or failed */ + status?: string | null; + errorMessage?: string | null; + /** The database the owner user is copied from during bootstrap (captured from JWT context at provision time) */ + sourceDatabaseId?: string | null; + /** Status of the deferred owner bootstrap job: not_requested, pending, completed, or failed */ + bootstrapStatus?: string | null; + /** Error message from the most recent failed bootstrap attempt */ + bootstrapError?: string | null; + /** The ID of the provisioned database (set by trigger before RLS check) */ + databaseId?: string | null; + createdAt?: string | null; + updatedAt?: string | null; + completedAt?: string | null; + /** 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; } -export interface ComputeLogModule { +export interface FunctionInvocationModule { id: string; databaseId?: string | null; + entityField?: string | null; schemaId?: string | null; privateSchemaId?: string | null; publicSchemaName?: string | null; privateSchemaName?: string | null; - computeLogTableId?: string | null; - computeLogTableName?: string | null; - usageDailyTableId?: string | null; - usageDailyTableName?: string | null; - interval?: string | null; - retention?: string | null; - premake?: number | null; - scope?: string | null; - actorFkTableId?: string | null; - entityFkTableId?: string | null; - prefix?: string | null; + invocationsTableId?: string | null; + executionLogsTableId?: string | null; + invocationsTableName?: string | null; + executionLogsTableName?: string | null; apiName?: string | null; privateApiName?: string | null; + scope?: string | null; + prefix?: string | null; + entityTableId?: string | null; + policies?: Record | null; + provisions?: Record | null; + defaultPermissions?: string[] | null; } -export interface InferenceLogModule { +export interface InvitesModule { id: string; databaseId?: string | null; + entityField?: string | null; schemaId?: string | null; privateSchemaId?: string | null; publicSchemaName?: string | null; privateSchemaName?: string | null; - inferenceLogTableId?: string | null; - inferenceLogTableName?: string | null; - usageDailyTableId?: string | null; - usageDailyTableName?: string | null; - interval?: string | null; - retention?: string | null; - premake?: number | null; + emailsTableId?: string | null; + usersTableId?: string | null; + invitesTableId?: string | null; + claimedInvitesTableId?: string | null; + invitesTableName?: string | null; + claimedInvitesTableName?: string | null; + submitInviteCodeFunction?: string | null; scope?: string | null; - actorFkTableId?: string | null; - entityFkTableId?: string | null; prefix?: string | null; + entityTableId?: string | null; apiName?: string | null; privateApiName?: string | null; } export interface NamespaceModule { id: string; databaseId?: string | null; + entityField?: string | null; schemaId?: string | null; privateSchemaId?: string | null; publicSchemaName?: string | null; @@ -886,41 +964,43 @@ export interface NamespaceModule { scope?: string | null; prefix?: string | null; entityTableId?: string | null; - platformNamespacesTableId?: string | null; policies?: Record | null; provisions?: Record | null; defaultPermissions?: string[] | null; } -export interface ResourceModule { +export interface PlansModule { id: string; databaseId?: string | null; schemaId?: string | null; privateSchemaId?: string | null; publicSchemaName?: string | null; privateSchemaName?: string | null; - resourcesTableId?: string | null; - resourceEventsTableId?: string | null; - resourcesTableName?: string | null; - resourceEventsTableName?: string | null; + plansTableId?: string | null; + plansTableName?: string | null; + planLimitsTableId?: string | null; + planLimitsTableName?: string | null; + planPricingTableId?: string | null; + planOverridesTableId?: string | null; + planMeterLimitsTableId?: string | null; + planCapsTableId?: string | null; + applyPlanFunction?: string | null; + applyPlanAggregateFunction?: string | null; + applyBillingPlanFunction?: string | null; + applyPlanCapsFunction?: string | null; + prefix?: string | null; apiName?: string | null; privateApiName?: string | null; - scope?: string | null; - prefix?: string | null; - entityTableId?: string | null; - namespaceModuleId?: string | null; - policies?: Record | null; - provisions?: Record | null; - defaultPermissions?: string[] | null; } -export interface StorageLogModule { +export interface ComputeLogModule { id: string; databaseId?: string | null; + entityField?: string | null; schemaId?: string | null; privateSchemaId?: string | null; publicSchemaName?: string | null; privateSchemaName?: string | null; - storageLogTableId?: string | null; - storageLogTableName?: string | null; + computeLogTableId?: string | null; + computeLogTableName?: string | null; usageDailyTableId?: string | null; usageDailyTableName?: string | null; interval?: string | null; @@ -933,15 +1013,16 @@ export interface StorageLogModule { apiName?: string | null; privateApiName?: string | null; } -export interface TransferLogModule { +export interface InferenceLogModule { id: string; databaseId?: string | null; + entityField?: string | null; schemaId?: string | null; privateSchemaId?: string | null; publicSchemaName?: string | null; privateSchemaName?: string | null; - transferLogTableId?: string | null; - transferLogTableName?: string | null; + inferenceLogTableId?: string | null; + inferenceLogTableName?: string | null; usageDailyTableId?: string | null; usageDailyTableName?: string | null; interval?: string | null; @@ -954,47 +1035,46 @@ export interface TransferLogModule { apiName?: string | null; privateApiName?: string | null; } -export interface FunctionDeploymentModule { +export interface StorageLogModule { id: string; databaseId?: string | null; + entityField?: string | null; schemaId?: string | null; privateSchemaId?: string | null; publicSchemaName?: string | null; privateSchemaName?: string | null; - deploymentsTableId?: string | null; - deploymentEventsTableId?: string | null; - deploymentsTableName?: string | null; - deploymentEventsTableName?: string | null; - apiName?: string | null; - privateApiName?: string | null; + storageLogTableId?: string | null; + storageLogTableName?: string | null; + usageDailyTableId?: string | null; + usageDailyTableName?: string | null; + interval?: string | null; + retention?: string | null; + premake?: number | null; scope?: string | null; + actorFkTableId?: string | null; + entityFkTableId?: string | null; prefix?: string | null; - entityTableId?: string | null; - functionModuleId?: string | null; - namespaceModuleId?: string | null; - policies?: Record | null; - provisions?: Record | null; - defaultPermissions?: string[] | null; + apiName?: string | null; + privateApiName?: string | null; } -export interface PlansModule { +export interface TransferLogModule { id: string; databaseId?: string | null; + entityField?: string | null; schemaId?: string | null; privateSchemaId?: string | null; publicSchemaName?: string | null; privateSchemaName?: string | null; - plansTableId?: string | null; - plansTableName?: string | null; - planLimitsTableId?: string | null; - planLimitsTableName?: string | null; - planPricingTableId?: string | null; - planOverridesTableId?: string | null; - planMeterLimitsTableId?: string | null; - planCapsTableId?: string | null; - applyPlanFunction?: string | null; - applyPlanAggregateFunction?: string | null; - applyBillingPlanFunction?: string | null; - applyPlanCapsFunction?: string | null; + transferLogTableId?: string | null; + transferLogTableName?: string | null; + usageDailyTableId?: string | null; + usageDailyTableName?: string | null; + interval?: string | null; + retention?: string | null; + premake?: number | null; + scope?: string | null; + actorFkTableId?: string | null; + entityFkTableId?: string | null; prefix?: string | null; apiName?: string | null; privateApiName?: string | null; @@ -1023,33 +1103,57 @@ export interface BillingProviderModule { apiName?: string | null; privateApiName?: string | null; } -export interface DbUsageModule { +export interface FunctionDeploymentModule { id: string; databaseId?: string | null; + entityField?: string | null; schemaId?: string | null; privateSchemaId?: string | null; publicSchemaName?: string | null; privateSchemaName?: string | null; - tableStatsLogTableId?: string | null; - tableStatsLogTableName?: string | null; - tableStatsDailyTableId?: string | null; - tableStatsDailyTableName?: string | null; - queryStatsLogTableId?: string | null; - queryStatsLogTableName?: string | null; - queryStatsDailyTableId?: string | null; - queryStatsDailyTableName?: string | null; - interval?: string | null; - retention?: string | null; - premake?: number | null; + deploymentsTableId?: string | null; + deploymentEventsTableId?: string | null; + deploymentsTableName?: string | null; + deploymentEventsTableName?: string | null; + apiName?: string | null; + privateApiName?: string | null; scope?: string | null; prefix?: string | null; + entityTableId?: string | null; + functionModuleId?: string | null; + namespaceModuleId?: string | null; + policies?: Record | null; + provisions?: Record | null; defaultPermissions?: string[] | null; +} +export interface PermissionsModule { + id: string; + databaseId?: string | null; + entityField?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + publicSchemaName?: string | null; + privateSchemaName?: string | null; + tableId?: string | null; + tableName?: string | null; + defaultTableId?: string | null; + defaultTableName?: string | null; + bitlen?: number | null; + scope?: string | null; + prefix?: string | null; + entityTableId?: string | null; + actorTableId?: string | null; + getPaddedMask?: string | null; + getMask?: string | null; + getByMask?: string | null; + getMaskByName?: string | null; apiName?: string | null; privateApiName?: string | null; } export interface GraphExecutionModule { id: string; databaseId?: string | null; + entityField?: string | null; schemaId?: string | null; privateSchemaId?: string | null; publicSchemaName?: string | null; @@ -1074,6 +1178,7 @@ export interface GraphExecutionModule { export interface HierarchyModule { id: string; databaseId?: string | null; + entityField?: string | null; schemaId?: string | null; privateSchemaId?: string | null; chartEdgesTableId?: string | null; @@ -1095,32 +1200,10 @@ export interface HierarchyModule { defaultPermissions?: string[] | null; createdAt?: string | null; } -export interface PermissionsModule { - id: string; - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - publicSchemaName?: string | null; - privateSchemaName?: string | null; - tableId?: string | null; - tableName?: string | null; - defaultTableId?: string | null; - defaultTableName?: string | null; - bitlen?: number | null; - scope?: string | null; - prefix?: string | null; - entityTableId?: string | null; - actorTableId?: string | null; - getPaddedMask?: string | null; - getMask?: string | null; - getByMask?: string | null; - getMaskByName?: string | null; - apiName?: string | null; - privateApiName?: string | null; -} export interface NotificationsModule { id: string; databaseId?: string | null; + entityField?: string | null; schemaId?: string | null; privateSchemaId?: string | null; publicSchemaName?: string | null; @@ -1143,73 +1226,20 @@ export interface NotificationsModule { apiName?: string | null; privateApiName?: string | null; } -export interface ProfilesModule { +/** + * Provisions relational structure between tables. Supports four relation types: + * - RelationBelongsTo: adds a FK field on the source table referencing the target table (child perspective: "tasks belongs to projects" -> tasks.project_id). + * - RelationHasMany: adds a FK field on the target table referencing the source table (parent perspective: "projects has many tasks" -> tasks.project_id). Inverse of BelongsTo. + * - RelationHasOne: adds a FK field with a unique constraint on the source table referencing the target table. Also supports shared-primary-key patterns where the FK field IS the primary key (set field_name to the existing PK field name). + * - RelationManyToMany: creates a junction table with FK fields to both source and target tables, delegating table creation and security to secure_table_provision. + * 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. + */ +export interface RelationProvision { + /** Unique identifier for this relation provision row. */ id: string; - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - publicSchemaName?: string | null; - privateSchemaName?: string | null; - tableId?: string | null; - tableName?: string | null; - profilePermissionsTableId?: string | null; - profilePermissionsTableName?: string | null; - profileGrantsTableId?: string | null; - profileGrantsTableName?: string | null; - profileDefinitionGrantsTableId?: string | null; - profileDefinitionGrantsTableName?: string | null; - profileTemplatesTableId?: string | null; - profileTemplatesTableName?: string | null; - scope?: string | null; - prefix?: string | null; - entityTableId?: string | null; - actorTableId?: string | null; - permissionsTableId?: string | null; - membershipsTableId?: string | null; - apiName?: string | null; - privateApiName?: string | null; -} -export interface BillingModule { - id: string; - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - publicSchemaName?: string | null; - privateSchemaName?: string | null; - metersTableId?: string | null; - metersTableName?: string | null; - planSubscriptionsTableId?: string | null; - planSubscriptionsTableName?: string | null; - ledgerTableId?: string | null; - ledgerTableName?: string | null; - balancesTableId?: string | null; - balancesTableName?: string | null; - meterCreditsTableId?: string | null; - meterCreditsTableName?: string | null; - meterSourcesTableId?: string | null; - meterSourcesTableName?: string | null; - meterDefaultsTableId?: string | null; - meterDefaultsTableName?: string | null; - recordUsageFunction?: string | null; - prefix?: string | null; - defaultPermissions?: string[] | null; - apiName?: string | null; - privateApiName?: string | null; -} -/** - * Provisions relational structure between tables. Supports four relation types: - * - RelationBelongsTo: adds a FK field on the source table referencing the target table (child perspective: "tasks belongs to projects" -> tasks.project_id). - * - RelationHasMany: adds a FK field on the target table referencing the source table (parent perspective: "projects has many tasks" -> tasks.project_id). Inverse of BelongsTo. - * - RelationHasOne: adds a FK field with a unique constraint on the source table referencing the target table. Also supports shared-primary-key patterns where the FK field IS the primary key (set field_name to the existing PK field name). - * - RelationManyToMany: creates a junction table with FK fields to both source and target tables, delegating table creation and security to secure_table_provision. - * 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. - */ -export interface RelationProvision { - /** Unique identifier for this relation provision row. */ - id: string; - /** The database this relation belongs to. Required. Must match the database of both source_table_id and target_table_id. */ + /** The database this relation belongs to. Required. Must match the database of both source_table_id and target_table_id. */ databaseId?: string | null; /** * The type of relation to create. Uses SuperCase naming: @@ -1329,6 +1359,90 @@ export interface RelationProvision { /** Output column for RelationManyToMany: the UUID of the FK field on the junction table referencing the target table. Populated by the trigger. NULL for RelationBelongsTo/RelationHasOne. Callers should not set this directly. */ outTargetFieldId?: string | null; } +export interface ProfilesModule { + id: string; + databaseId?: string | null; + entityField?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + publicSchemaName?: string | null; + privateSchemaName?: string | null; + tableId?: string | null; + tableName?: string | null; + profilePermissionsTableId?: string | null; + profilePermissionsTableName?: string | null; + profileGrantsTableId?: string | null; + profileGrantsTableName?: string | null; + profileDefinitionGrantsTableId?: string | null; + profileDefinitionGrantsTableName?: string | null; + profileTemplatesTableId?: string | null; + profileTemplatesTableName?: string | null; + scope?: string | null; + prefix?: string | null; + entityTableId?: string | null; + actorTableId?: string | null; + permissionsTableId?: string | null; + membershipsTableId?: string | null; + apiName?: string | null; + privateApiName?: string | null; +} +export interface BillingModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + publicSchemaName?: string | null; + privateSchemaName?: string | null; + metersTableId?: string | null; + metersTableName?: string | null; + planSubscriptionsTableId?: string | null; + planSubscriptionsTableName?: string | null; + ledgerTableId?: string | null; + ledgerTableName?: string | null; + balancesTableId?: string | null; + balancesTableName?: string | null; + meterCreditsTableId?: string | null; + meterCreditsTableName?: string | null; + meterSourcesTableId?: string | null; + meterSourcesTableName?: string | null; + meterDefaultsTableId?: string | null; + meterDefaultsTableName?: string | null; + recordUsageFunction?: string | null; + sweepExpiredSubscriptionsFunction?: string | null; + rollupUsageSummaryFunction?: string | null; + prefix?: string | null; + defaultPermissions?: string[] | null; + apiName?: string | null; + privateApiName?: string | null; +} +export interface ResourceModule { + id: string; + databaseId?: string | null; + entityField?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + publicSchemaName?: string | null; + privateSchemaName?: string | null; + resourcesTableId?: string | null; + resourceEventsTableId?: string | null; + resourceStatusChecksTableId?: string | null; + resourceDefinitionsTableId?: string | null; + resourcesTableName?: string | null; + resourceEventsTableName?: string | null; + resourceStatusChecksTableName?: string | null; + resourceDefinitionsTableName?: string | null; + resolvedRequirementsViewName?: string | null; + requirementsStateViewName?: string | null; + apiName?: string | null; + privateApiName?: string | null; + scope?: string | null; + prefix?: string | null; + entityTableId?: string | null; + namespaceModuleId?: string | null; + policies?: Record | null; + provisions?: Record | null; + defaultPermissions?: string[] | null; +} export interface UserAuthModule { id: string; databaseId?: string | null; @@ -1359,9 +1473,39 @@ export interface UserAuthModule { apiName?: string | null; privateApiName?: string | null; } +export interface DbUsageModule { + id: string; + databaseId?: string | null; + entityField?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + publicSchemaName?: string | null; + privateSchemaName?: string | null; + tableStatsLogTableId?: string | null; + tableStatsLogTableName?: string | null; + tableStatsDailyTableId?: string | null; + tableStatsDailyTableName?: string | null; + queryStatsLogTableId?: string | null; + queryStatsLogTableName?: string | null; + queryStatsDailyTableId?: string | null; + queryStatsDailyTableName?: string | null; + collectDbTableStatsFunction?: string | null; + collectDbQueryStatsFunction?: string | null; + rollupDbTableStatsDailyFunction?: string | null; + rollupDbQueryStatsDailyFunction?: string | null; + interval?: string | null; + retention?: string | null; + premake?: number | null; + scope?: string | null; + prefix?: string | null; + defaultPermissions?: string[] | null; + apiName?: string | null; + privateApiName?: string | null; +} export interface AgentModule { id: string; databaseId?: string | null; + entityField?: string | null; schemaId?: string | null; privateSchemaId?: string | null; publicSchemaName?: string | null; @@ -1399,6 +1543,7 @@ export interface AgentModule { export interface LimitsModule { id: string; databaseId?: string | null; + entityField?: string | null; schemaId?: string | null; privateSchemaId?: string | null; publicSchemaName?: string | null; @@ -1434,49 +1579,6 @@ export interface LimitsModule { apiName?: string | null; privateApiName?: string | null; } -export interface MembershipsModule { - id: string; - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - publicSchemaName?: string | null; - privateSchemaName?: string | null; - membershipsTableId?: string | null; - membershipsTableName?: string | null; - membersTableId?: string | null; - membersTableName?: string | null; - membershipDefaultsTableId?: string | null; - membershipDefaultsTableName?: string | null; - membershipSettingsTableId?: string | null; - membershipSettingsTableName?: string | null; - grantsTableId?: string | null; - grantsTableName?: string | null; - actorTableId?: string | null; - limitsTableId?: string | null; - defaultLimitsTableId?: string | null; - permissionsTableId?: string | null; - defaultPermissionsTableId?: string | null; - sprtTableId?: string | null; - adminGrantsTableId?: string | null; - adminGrantsTableName?: string | null; - ownerGrantsTableId?: string | null; - ownerGrantsTableName?: string | null; - scope?: string | null; - prefix?: string | null; - entityTableId?: string | null; - entityTableOwnerId?: string | null; - getOrgFn?: string | null; - actorMaskCheck?: string | null; - actorPermCheck?: string | null; - entityIdsByMask?: string | null; - entityIdsByPerm?: string | null; - entityIdsFunction?: string | null; - memberProfilesTableId?: string | null; - permissionDefaultPermissionsTableId?: string | null; - permissionDefaultGrantsTableId?: string | null; - apiName?: string | null; - privateApiName?: string | null; -} /** * 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). @@ -1734,7 +1836,6 @@ export interface EntityTypeProvision { outDefinitionsTableId?: string | null; outInvocationsTableId?: string | null; outExecutionLogsTableId?: string | null; - outSecretDefinitionsTableId?: string | null; outGraphModuleId?: string | null; outGraphsTableId?: string | null; outAgentModuleId?: string | null; @@ -1755,6 +1856,7 @@ export interface StorageModule { policies?: Record | null; provisions?: Record | null; entityTableId?: string | null; + entityField?: string | null; endpoint?: string | null; publicUrlPrefix?: string | null; provider?: string | null; @@ -1780,9 +1882,54 @@ export interface StorageModule { apiName?: string | null; privateApiName?: string | null; } +export interface MembershipsModule { + id: string; + databaseId?: string | null; + entityField?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + publicSchemaName?: string | null; + privateSchemaName?: string | null; + membershipsTableId?: string | null; + membershipsTableName?: string | null; + membersTableId?: string | null; + membersTableName?: string | null; + membershipDefaultsTableId?: string | null; + membershipDefaultsTableName?: string | null; + membershipSettingsTableId?: string | null; + membershipSettingsTableName?: string | null; + grantsTableId?: string | null; + grantsTableName?: string | null; + actorTableId?: string | null; + limitsTableId?: string | null; + defaultLimitsTableId?: string | null; + permissionsTableId?: string | null; + defaultPermissionsTableId?: string | null; + sprtTableId?: string | null; + adminGrantsTableId?: string | null; + adminGrantsTableName?: string | null; + ownerGrantsTableId?: string | null; + ownerGrantsTableName?: string | null; + scope?: string | null; + prefix?: string | null; + entityTableId?: string | null; + entityTableOwnerId?: string | null; + getOrgFn?: string | null; + actorMaskCheck?: string | null; + actorPermCheck?: string | null; + entityIdsByMask?: string | null; + entityIdsByPerm?: string | null; + entityIdsFunction?: string | null; + memberProfilesTableId?: string | null; + permissionDefaultPermissionsTableId?: string | null; + permissionDefaultGrantsTableId?: string | null; + apiName?: string | null; + privateApiName?: string | null; +} export interface EventsModule { id: string; databaseId?: string | null; + entityField?: string | null; schemaId?: string | null; privateSchemaId?: string | null; publicSchemaName?: string | null; @@ -1809,7 +1956,6 @@ export interface EventsModule { tgEventBool?: string | null; upsertAggregate?: string | null; tgUpdateAggregates?: string | null; - pruneEvents?: string | null; stepsRequired?: string | null; levelAchieved?: string | null; tgCheckAchievements?: string | null; @@ -1841,23 +1987,21 @@ export interface PageInfo { // ============ Entity Relation Types ============ export interface DefaultIdsModuleRelations {} export interface MembershipTypesModuleRelations {} -export interface UserStateModuleRelations {} export interface SessionSecretsModuleRelations {} -export interface ConfigSecretsOrgModuleRelations {} export interface DevicesModuleRelations {} export interface I18NModuleRelations {} -export interface UserCredentialsModuleRelations {} export interface UserSettingsModuleRelations {} -export interface ConfigSecretsUserModuleRelations {} +export interface UserStateModuleRelations {} +export interface UserCredentialsModuleRelations {} export interface ConnectedAccountsModuleRelations {} export interface EmailsModuleRelations {} export interface PhoneNumbersModuleRelations {} export interface RateLimitsModuleRelations {} export interface UsersModuleRelations {} export interface WebauthnCredentialsModuleRelations {} +export interface ConfigSecretsUserModuleRelations {} export interface CryptoAddressesModuleRelations {} export interface DenormalizedTableFieldRelations {} -export interface IdentityProvidersModuleRelations {} export interface RlsModuleRelations {} export interface BlueprintRelations { template?: BlueprintTemplate | null; @@ -1874,68 +2018,74 @@ export interface BlueprintConstructionRelations { export interface CryptoAuthModuleRelations {} export interface SessionsModuleRelations {} export interface SecureTableProvisionRelations {} -export interface DatabaseProvisionModuleRelations {} -export interface ConfigSecretsModuleRelations {} +export interface IdentityProvidersModuleRelations {} +export interface IntegrationProvidersModuleRelations {} +export interface DbPoolConfigRelations {} +export interface RealtimeModuleRelations {} +export interface InfraSecretsModuleRelations {} +export interface InternalSecretsModuleRelations {} +export interface DbPresetModuleRelations { + merkleStoreModule?: MerkleStoreModule | null; +} export interface GraphModuleRelations { merkleStoreModule?: MerkleStoreModule | null; } -export interface MerkleStoreModuleRelations { - graphModules?: ConnectionResult; -} export interface RateLimitMetersModuleRelations {} -export interface RealtimeModuleRelations {} +export interface InfraConfigModuleRelations {} export interface WebauthnAuthModuleRelations {} -export interface FunctionInvocationModuleRelations {} +export interface PrincipalAuthModuleRelations {} +export interface DbPoolRelations {} export interface FunctionModuleRelations {} +export interface MerkleStoreModuleRelations { + graphModules?: ConnectionResult; + dbPresetModules?: ConnectionResult; +} +export interface DatabaseProvisionModuleRelations {} +export interface FunctionInvocationModuleRelations {} export interface InvitesModuleRelations {} -export interface PrincipalAuthModuleRelations {} +export interface NamespaceModuleRelations {} +export interface PlansModuleRelations {} export interface ComputeLogModuleRelations {} export interface InferenceLogModuleRelations {} -export interface NamespaceModuleRelations {} -export interface ResourceModuleRelations { - namespaceModule?: NamespaceModule | null; -} export interface StorageLogModuleRelations {} export interface TransferLogModuleRelations {} +export interface BillingProviderModuleRelations {} export interface FunctionDeploymentModuleRelations { functionModule?: FunctionModule | null; namespaceModule?: NamespaceModule | null; } -export interface PlansModuleRelations {} -export interface BillingProviderModuleRelations {} -export interface DbUsageModuleRelations {} +export interface PermissionsModuleRelations {} export interface GraphExecutionModuleRelations { graphModule?: GraphModule | null; } export interface HierarchyModuleRelations {} -export interface PermissionsModuleRelations {} export interface NotificationsModuleRelations {} +export interface RelationProvisionRelations {} export interface ProfilesModuleRelations {} export interface BillingModuleRelations {} -export interface RelationProvisionRelations {} +export interface ResourceModuleRelations { + namespaceModule?: NamespaceModule | null; +} export interface UserAuthModuleRelations {} +export interface DbUsageModuleRelations {} export interface AgentModuleRelations {} export interface LimitsModuleRelations {} -export interface MembershipsModuleRelations {} export interface EntityTypeProvisionRelations {} export interface StorageModuleRelations {} +export interface MembershipsModuleRelations {} export interface EventsModuleRelations {} // ============ Entity Types With Relations ============ export type DefaultIdsModuleWithRelations = DefaultIdsModule & DefaultIdsModuleRelations; export type MembershipTypesModuleWithRelations = MembershipTypesModule & MembershipTypesModuleRelations; -export type UserStateModuleWithRelations = UserStateModule & UserStateModuleRelations; export type SessionSecretsModuleWithRelations = SessionSecretsModule & SessionSecretsModuleRelations; -export type ConfigSecretsOrgModuleWithRelations = ConfigSecretsOrgModule & - ConfigSecretsOrgModuleRelations; export type DevicesModuleWithRelations = DevicesModule & DevicesModuleRelations; export type I18NModuleWithRelations = I18NModule & I18NModuleRelations; +export type UserSettingsModuleWithRelations = UserSettingsModule & UserSettingsModuleRelations; +export type UserStateModuleWithRelations = UserStateModule & UserStateModuleRelations; export type UserCredentialsModuleWithRelations = UserCredentialsModule & UserCredentialsModuleRelations; -export type UserSettingsModuleWithRelations = UserSettingsModule & UserSettingsModuleRelations; -export type ConfigSecretsUserModuleWithRelations = ConfigSecretsUserModule & - ConfigSecretsUserModuleRelations; export type ConnectedAccountsModuleWithRelations = ConnectedAccountsModule & ConnectedAccountsModuleRelations; export type EmailsModuleWithRelations = EmailsModule & EmailsModuleRelations; @@ -1944,12 +2094,12 @@ export type RateLimitsModuleWithRelations = RateLimitsModule & RateLimitsModuleR export type UsersModuleWithRelations = UsersModule & UsersModuleRelations; export type WebauthnCredentialsModuleWithRelations = WebauthnCredentialsModule & WebauthnCredentialsModuleRelations; +export type ConfigSecretsUserModuleWithRelations = ConfigSecretsUserModule & + ConfigSecretsUserModuleRelations; export type CryptoAddressesModuleWithRelations = CryptoAddressesModule & CryptoAddressesModuleRelations; export type DenormalizedTableFieldWithRelations = DenormalizedTableField & DenormalizedTableFieldRelations; -export type IdentityProvidersModuleWithRelations = IdentityProvidersModule & - IdentityProvidersModuleRelations; export type RlsModuleWithRelations = RlsModule & RlsModuleRelations; export type BlueprintWithRelations = Blueprint & BlueprintRelations; export type BlueprintTemplateWithRelations = BlueprintTemplate & BlueprintTemplateRelations; @@ -1959,46 +2109,56 @@ export type CryptoAuthModuleWithRelations = CryptoAuthModule & CryptoAuthModuleR export type SessionsModuleWithRelations = SessionsModule & SessionsModuleRelations; export type SecureTableProvisionWithRelations = SecureTableProvision & SecureTableProvisionRelations; -export type DatabaseProvisionModuleWithRelations = DatabaseProvisionModule & - DatabaseProvisionModuleRelations; -export type ConfigSecretsModuleWithRelations = ConfigSecretsModule & ConfigSecretsModuleRelations; +export type IdentityProvidersModuleWithRelations = IdentityProvidersModule & + IdentityProvidersModuleRelations; +export type IntegrationProvidersModuleWithRelations = IntegrationProvidersModule & + IntegrationProvidersModuleRelations; +export type DbPoolConfigWithRelations = DbPoolConfig & DbPoolConfigRelations; +export type RealtimeModuleWithRelations = RealtimeModule & RealtimeModuleRelations; +export type InfraSecretsModuleWithRelations = InfraSecretsModule & InfraSecretsModuleRelations; +export type InternalSecretsModuleWithRelations = InternalSecretsModule & + InternalSecretsModuleRelations; +export type DbPresetModuleWithRelations = DbPresetModule & DbPresetModuleRelations; export type GraphModuleWithRelations = GraphModule & GraphModuleRelations; -export type MerkleStoreModuleWithRelations = MerkleStoreModule & MerkleStoreModuleRelations; export type RateLimitMetersModuleWithRelations = RateLimitMetersModule & RateLimitMetersModuleRelations; -export type RealtimeModuleWithRelations = RealtimeModule & RealtimeModuleRelations; +export type InfraConfigModuleWithRelations = InfraConfigModule & InfraConfigModuleRelations; export type WebauthnAuthModuleWithRelations = WebauthnAuthModule & WebauthnAuthModuleRelations; +export type PrincipalAuthModuleWithRelations = PrincipalAuthModule & PrincipalAuthModuleRelations; +export type DbPoolWithRelations = DbPool & DbPoolRelations; +export type FunctionModuleWithRelations = FunctionModule & FunctionModuleRelations; +export type MerkleStoreModuleWithRelations = MerkleStoreModule & MerkleStoreModuleRelations; +export type DatabaseProvisionModuleWithRelations = DatabaseProvisionModule & + DatabaseProvisionModuleRelations; export type FunctionInvocationModuleWithRelations = FunctionInvocationModule & FunctionInvocationModuleRelations; -export type FunctionModuleWithRelations = FunctionModule & FunctionModuleRelations; export type InvitesModuleWithRelations = InvitesModule & InvitesModuleRelations; -export type PrincipalAuthModuleWithRelations = PrincipalAuthModule & PrincipalAuthModuleRelations; +export type NamespaceModuleWithRelations = NamespaceModule & NamespaceModuleRelations; +export type PlansModuleWithRelations = PlansModule & PlansModuleRelations; export type ComputeLogModuleWithRelations = ComputeLogModule & ComputeLogModuleRelations; export type InferenceLogModuleWithRelations = InferenceLogModule & InferenceLogModuleRelations; -export type NamespaceModuleWithRelations = NamespaceModule & NamespaceModuleRelations; -export type ResourceModuleWithRelations = ResourceModule & ResourceModuleRelations; export type StorageLogModuleWithRelations = StorageLogModule & StorageLogModuleRelations; export type TransferLogModuleWithRelations = TransferLogModule & TransferLogModuleRelations; -export type FunctionDeploymentModuleWithRelations = FunctionDeploymentModule & - FunctionDeploymentModuleRelations; -export type PlansModuleWithRelations = PlansModule & PlansModuleRelations; export type BillingProviderModuleWithRelations = BillingProviderModule & BillingProviderModuleRelations; -export type DbUsageModuleWithRelations = DbUsageModule & DbUsageModuleRelations; +export type FunctionDeploymentModuleWithRelations = FunctionDeploymentModule & + FunctionDeploymentModuleRelations; +export type PermissionsModuleWithRelations = PermissionsModule & PermissionsModuleRelations; export type GraphExecutionModuleWithRelations = GraphExecutionModule & GraphExecutionModuleRelations; export type HierarchyModuleWithRelations = HierarchyModule & HierarchyModuleRelations; -export type PermissionsModuleWithRelations = PermissionsModule & PermissionsModuleRelations; export type NotificationsModuleWithRelations = NotificationsModule & NotificationsModuleRelations; +export type RelationProvisionWithRelations = RelationProvision & RelationProvisionRelations; export type ProfilesModuleWithRelations = ProfilesModule & ProfilesModuleRelations; export type BillingModuleWithRelations = BillingModule & BillingModuleRelations; -export type RelationProvisionWithRelations = RelationProvision & RelationProvisionRelations; +export type ResourceModuleWithRelations = ResourceModule & ResourceModuleRelations; export type UserAuthModuleWithRelations = UserAuthModule & UserAuthModuleRelations; +export type DbUsageModuleWithRelations = DbUsageModule & DbUsageModuleRelations; export type AgentModuleWithRelations = AgentModule & AgentModuleRelations; export type LimitsModuleWithRelations = LimitsModule & LimitsModuleRelations; -export type MembershipsModuleWithRelations = MembershipsModule & MembershipsModuleRelations; export type EntityTypeProvisionWithRelations = EntityTypeProvision & EntityTypeProvisionRelations; export type StorageModuleWithRelations = StorageModule & StorageModuleRelations; +export type MembershipsModuleWithRelations = MembershipsModule & MembershipsModuleRelations; export type EventsModuleWithRelations = EventsModule & EventsModuleRelations; // ============ Entity Select Types ============ export type DefaultIdsModuleSelect = { @@ -2012,13 +2172,6 @@ export type MembershipTypesModuleSelect = { tableId?: boolean; tableName?: boolean; }; -export type UserStateModuleSelect = { - id?: boolean; - databaseId?: boolean; - schemaId?: boolean; - tableId?: boolean; - tableName?: boolean; -}; export type SessionSecretsModuleSelect = { id?: boolean; databaseId?: boolean; @@ -2027,15 +2180,6 @@ export type SessionSecretsModuleSelect = { tableName?: boolean; sessionsTableId?: boolean; }; -export type ConfigSecretsOrgModuleSelect = { - id?: boolean; - databaseId?: boolean; - schemaId?: boolean; - tableId?: boolean; - tableName?: boolean; - apiName?: boolean; - privateApiName?: boolean; -}; export type DevicesModuleSelect = { id?: boolean; databaseId?: boolean; @@ -2054,32 +2198,30 @@ export type I18NModuleSelect = { apiName?: boolean; privateApiName?: boolean; }; -export type UserCredentialsModuleSelect = { +export type UserSettingsModuleSelect = { id?: boolean; databaseId?: boolean; schemaId?: boolean; tableId?: boolean; + ownerTableId?: boolean; tableName?: boolean; apiName?: boolean; - privateApiName?: boolean; }; -export type UserSettingsModuleSelect = { +export type UserStateModuleSelect = { id?: boolean; databaseId?: boolean; + entityField?: boolean; schemaId?: boolean; tableId?: boolean; - ownerTableId?: boolean; tableName?: boolean; - apiName?: boolean; }; -export type ConfigSecretsUserModuleSelect = { +export type UserCredentialsModuleSelect = { id?: boolean; databaseId?: boolean; + entityField?: boolean; schemaId?: boolean; tableId?: boolean; tableName?: boolean; - configDefinitionsTableId?: boolean; - apiName?: boolean; privateApiName?: boolean; }; export type ConnectedAccountsModuleSelect = { @@ -2148,6 +2290,16 @@ export type WebauthnCredentialsModuleSelect = { apiName?: boolean; privateApiName?: boolean; }; +export type ConfigSecretsUserModuleSelect = { + id?: boolean; + databaseId?: boolean; + entityField?: boolean; + schemaId?: boolean; + tableId?: boolean; + tableName?: boolean; + apiName?: boolean; + privateApiName?: boolean; +}; export type CryptoAddressesModuleSelect = { id?: boolean; databaseId?: boolean; @@ -2174,21 +2326,6 @@ export type DenormalizedTableFieldSelect = { funcName?: boolean; funcOrder?: boolean; }; -export type IdentityProvidersModuleSelect = { - id?: boolean; - databaseId?: boolean; - schemaId?: boolean; - privateSchemaId?: boolean; - publicSchemaName?: boolean; - privateSchemaName?: boolean; - tableId?: boolean; - tableName?: boolean; - apiName?: boolean; - privateApiName?: boolean; - scope?: boolean; - prefix?: boolean; - entityTableId?: boolean; -}; export type RlsModuleSelect = { id?: boolean; databaseId?: boolean; @@ -2322,42 +2459,103 @@ export type SecureTableProvisionSelect = { policies?: boolean; outFields?: boolean; }; -export type DatabaseProvisionModuleSelect = { +export type IdentityProvidersModuleSelect = { id?: boolean; - databaseName?: boolean; - ownerId?: boolean; - subdomain?: boolean; - domain?: boolean; - modules?: boolean; - options?: boolean; - bootstrapUser?: boolean; - status?: boolean; - errorMessage?: boolean; databaseId?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - completedAt?: boolean; + entityField?: boolean; + schemaId?: boolean; + privateSchemaId?: boolean; + publicSchemaName?: boolean; + privateSchemaName?: boolean; + tableId?: boolean; + tableName?: boolean; + apiName?: boolean; + privateApiName?: boolean; + scope?: boolean; + prefix?: boolean; + entityTableId?: boolean; }; -export type ConfigSecretsModuleSelect = { +export type IntegrationProvidersModuleSelect = { id?: boolean; databaseId?: boolean; + entityField?: boolean; schemaId?: boolean; privateSchemaId?: boolean; publicSchemaName?: boolean; privateSchemaName?: boolean; tableId?: boolean; - configDefinitionsTableId?: boolean; tableName?: boolean; apiName?: boolean; privateApiName?: boolean; scope?: boolean; prefix?: boolean; entityTableId?: boolean; +}; +export type DbPoolConfigSelect = { + id?: boolean; + presetSlug?: boolean; + domain?: boolean; + poolOwnerId?: boolean; + min?: boolean; + max?: boolean; + warmTtl?: boolean; + enabled?: boolean; + createdAt?: boolean; + updatedAt?: boolean; +}; +export type RealtimeModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + privateSchemaId?: boolean; + subscriptionsSchemaId?: boolean; + changeLogTableId?: boolean; + listenerNodeTableId?: boolean; + sourceRegistryTableId?: boolean; + retentionHours?: boolean; + premake?: boolean; + interval?: boolean; + notifyChannel?: boolean; + apiName?: boolean; + privateApiName?: boolean; +}; +export type InfraSecretsModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + privateSchemaId?: boolean; + publicSchemaName?: boolean; + privateSchemaName?: boolean; + secretsTableId?: boolean; + secretsTableName?: boolean; + apiName?: boolean; + privateApiName?: boolean; + scope?: boolean; + prefix?: boolean; + entityTableId?: boolean; + entityField?: boolean; policies?: boolean; provisions?: boolean; - hasConfig?: boolean; }; -export type GraphModuleSelect = { +export type InternalSecretsModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + privateSchemaId?: boolean; + publicSchemaName?: boolean; + privateSchemaName?: boolean; + internalSecretsTableId?: boolean; + internalSecretsTableName?: boolean; + apiName?: boolean; + privateApiName?: boolean; + scope?: boolean; + prefix?: boolean; + entityTableId?: boolean; + entityField?: boolean; + policies?: boolean; + provisions?: boolean; +}; +export type DbPresetModuleSelect = { id?: boolean; databaseId?: boolean; publicSchemaId?: boolean; @@ -2367,41 +2565,39 @@ export type GraphModuleSelect = { scope?: boolean; prefix?: boolean; merkleStoreModuleId?: boolean; - graphsTableId?: boolean; + dbPresetsTableId?: boolean; + storeName?: boolean; apiName?: boolean; privateApiName?: boolean; entityTableId?: boolean; policies?: boolean; provisions?: boolean; - defaultPermissions?: boolean; createdAt?: boolean; merkleStoreModule?: { select: MerkleStoreModuleSelect; }; }; -export type MerkleStoreModuleSelect = { +export type GraphModuleSelect = { id?: boolean; databaseId?: boolean; - schemaId?: boolean; + entityField?: boolean; + publicSchemaId?: boolean; privateSchemaId?: boolean; publicSchemaName?: boolean; privateSchemaName?: boolean; - objectTableId?: boolean; - storeTableId?: boolean; - commitTableId?: boolean; - refTableId?: boolean; + scope?: boolean; prefix?: boolean; + merkleStoreModuleId?: boolean; + graphsTableId?: boolean; apiName?: boolean; privateApiName?: boolean; - scope?: boolean; - functionPrefix?: boolean; - permissionKey?: boolean; + entityTableId?: boolean; + policies?: boolean; + provisions?: boolean; + defaultPermissions?: boolean; createdAt?: boolean; - graphModules?: { - select: GraphModuleSelect; - first?: number; - filter?: GraphModuleFilter; - orderBy?: GraphModuleOrderBy[]; + merkleStoreModule?: { + select: MerkleStoreModuleSelect; }; }; export type RateLimitMetersModuleSelect = { @@ -2423,21 +2619,23 @@ export type RateLimitMetersModuleSelect = { apiName?: boolean; privateApiName?: boolean; }; -export type RealtimeModuleSelect = { +export type InfraConfigModuleSelect = { id?: boolean; databaseId?: boolean; + entityField?: boolean; schemaId?: boolean; privateSchemaId?: boolean; - subscriptionsSchemaId?: boolean; - changeLogTableId?: boolean; - listenerNodeTableId?: boolean; - sourceRegistryTableId?: boolean; - retentionHours?: boolean; - premake?: boolean; - interval?: boolean; - notifyChannel?: boolean; + publicSchemaName?: boolean; + privateSchemaName?: boolean; + configTableId?: boolean; + configTableName?: boolean; apiName?: boolean; privateApiName?: boolean; + scope?: boolean; + prefix?: boolean; + entityTableId?: boolean; + policies?: boolean; + provisions?: boolean; }; export type WebauthnAuthModuleSelect = { id?: boolean; @@ -2457,37 +2655,51 @@ export type WebauthnAuthModuleSelect = { residentKey?: boolean; challengeExpiry?: boolean; }; -export type FunctionInvocationModuleSelect = { +export type PrincipalAuthModuleSelect = { id?: boolean; databaseId?: boolean; schemaId?: boolean; - privateSchemaId?: boolean; - publicSchemaName?: boolean; - privateSchemaName?: boolean; - invocationsTableId?: boolean; - executionLogsTableId?: boolean; - invocationsTableName?: boolean; - executionLogsTableName?: boolean; - apiName?: boolean; - privateApiName?: boolean; - scope?: boolean; - prefix?: boolean; - entityTableId?: boolean; - policies?: boolean; - provisions?: boolean; - defaultPermissions?: boolean; + principalsTableId?: boolean; + principalEntitiesTableId?: boolean; + principalScopeOverridesTableId?: boolean; + usersTableId?: boolean; + sessionsTableId?: boolean; + sessionCredentialsTableId?: boolean; + auditsTableId?: boolean; + principalsTableName?: boolean; + createPrincipalFunction?: boolean; + deletePrincipalFunction?: boolean; + createOrgPrincipalFunction?: boolean; + deleteOrgPrincipalFunction?: boolean; + createOrgApiKeyFunction?: boolean; + revokeOrgApiKeyFunction?: boolean; + apiName?: boolean; +}; +export type DbPoolSelect = { + id?: boolean; + presetSlug?: boolean; + presetCommitId?: boolean; + databaseId?: boolean; + status?: boolean; + errorMessage?: boolean; + expiresAt?: boolean; + claimedBy?: boolean; + claimedAt?: boolean; + bootstrapStatus?: boolean; + bootstrapError?: boolean; + createdAt?: boolean; + updatedAt?: boolean; }; export type FunctionModuleSelect = { id?: boolean; databaseId?: boolean; + entityField?: boolean; schemaId?: boolean; privateSchemaId?: boolean; publicSchemaName?: boolean; privateSchemaName?: boolean; definitionsTableId?: boolean; - secretDefinitionsTableId?: boolean; definitionsTableName?: boolean; - secretDefinitionsTableName?: boolean; apiName?: boolean; privateApiName?: boolean; scope?: boolean; @@ -2497,91 +2709,104 @@ export type FunctionModuleSelect = { provisions?: boolean; defaultPermissions?: boolean; }; -export type InvitesModuleSelect = { +export type MerkleStoreModuleSelect = { id?: boolean; databaseId?: boolean; + entityField?: boolean; schemaId?: boolean; privateSchemaId?: boolean; publicSchemaName?: boolean; privateSchemaName?: boolean; - emailsTableId?: boolean; - usersTableId?: boolean; - invitesTableId?: boolean; - claimedInvitesTableId?: boolean; - invitesTableName?: boolean; - claimedInvitesTableName?: boolean; - submitInviteCodeFunction?: boolean; - scope?: boolean; + objectTableId?: boolean; + storeTableId?: boolean; + commitTableId?: boolean; + refTableId?: boolean; prefix?: boolean; - entityTableId?: boolean; apiName?: boolean; privateApiName?: boolean; + scope?: boolean; + functionPrefix?: boolean; + permissionKey?: boolean; + createdAt?: boolean; + graphModules?: { + select: GraphModuleSelect; + first?: number; + filter?: GraphModuleFilter; + orderBy?: GraphModuleOrderBy[]; + }; + dbPresetModules?: { + select: DbPresetModuleSelect; + first?: number; + filter?: DbPresetModuleFilter; + orderBy?: DbPresetModuleOrderBy[]; + }; }; -export type PrincipalAuthModuleSelect = { +export type DatabaseProvisionModuleSelect = { id?: boolean; + databaseName?: boolean; + ownerId?: boolean; + subdomain?: boolean; + domain?: boolean; + modules?: boolean; + options?: boolean; + bootstrapUser?: boolean; + status?: boolean; + errorMessage?: boolean; + sourceDatabaseId?: boolean; + bootstrapStatus?: boolean; + bootstrapError?: boolean; databaseId?: boolean; - schemaId?: boolean; - principalsTableId?: boolean; - principalEntitiesTableId?: boolean; - principalScopeOverridesTableId?: boolean; - usersTableId?: boolean; - sessionsTableId?: boolean; - sessionCredentialsTableId?: boolean; - auditsTableId?: boolean; - principalsTableName?: boolean; - createPrincipalFunction?: boolean; - deletePrincipalFunction?: boolean; - createOrgPrincipalFunction?: boolean; - deleteOrgPrincipalFunction?: boolean; - createOrgApiKeyFunction?: boolean; - revokeOrgApiKeyFunction?: boolean; - apiName?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + completedAt?: boolean; + fulfilledAt?: boolean; }; -export type ComputeLogModuleSelect = { +export type FunctionInvocationModuleSelect = { id?: boolean; databaseId?: boolean; + entityField?: boolean; schemaId?: boolean; privateSchemaId?: boolean; publicSchemaName?: boolean; privateSchemaName?: boolean; - computeLogTableId?: boolean; - computeLogTableName?: boolean; - usageDailyTableId?: boolean; - usageDailyTableName?: boolean; - interval?: boolean; - retention?: boolean; - premake?: boolean; - scope?: boolean; - actorFkTableId?: boolean; - entityFkTableId?: boolean; - prefix?: boolean; + invocationsTableId?: boolean; + executionLogsTableId?: boolean; + invocationsTableName?: boolean; + executionLogsTableName?: boolean; apiName?: boolean; privateApiName?: boolean; + scope?: boolean; + prefix?: boolean; + entityTableId?: boolean; + policies?: boolean; + provisions?: boolean; + defaultPermissions?: boolean; }; -export type InferenceLogModuleSelect = { +export type InvitesModuleSelect = { id?: boolean; databaseId?: boolean; + entityField?: boolean; schemaId?: boolean; privateSchemaId?: boolean; publicSchemaName?: boolean; privateSchemaName?: boolean; - inferenceLogTableId?: boolean; - inferenceLogTableName?: boolean; - usageDailyTableId?: boolean; - usageDailyTableName?: boolean; - interval?: boolean; - retention?: boolean; - premake?: boolean; + emailsTableId?: boolean; + usersTableId?: boolean; + invitesTableId?: boolean; + claimedInvitesTableId?: boolean; + invitesTableName?: boolean; + claimedInvitesTableName?: boolean; + submitInviteCodeFunction?: boolean; scope?: boolean; - actorFkTableId?: boolean; - entityFkTableId?: boolean; prefix?: boolean; + entityTableId?: boolean; apiName?: boolean; privateApiName?: boolean; }; export type NamespaceModuleSelect = { id?: boolean; databaseId?: boolean; + entityField?: boolean; schemaId?: boolean; privateSchemaId?: boolean; publicSchemaName?: boolean; @@ -2595,44 +2820,43 @@ export type NamespaceModuleSelect = { scope?: boolean; prefix?: boolean; entityTableId?: boolean; - platformNamespacesTableId?: boolean; policies?: boolean; provisions?: boolean; defaultPermissions?: boolean; }; -export type ResourceModuleSelect = { +export type PlansModuleSelect = { id?: boolean; databaseId?: boolean; schemaId?: boolean; privateSchemaId?: boolean; publicSchemaName?: boolean; privateSchemaName?: boolean; - resourcesTableId?: boolean; - resourceEventsTableId?: boolean; - resourcesTableName?: boolean; - resourceEventsTableName?: boolean; + plansTableId?: boolean; + plansTableName?: boolean; + planLimitsTableId?: boolean; + planLimitsTableName?: boolean; + planPricingTableId?: boolean; + planOverridesTableId?: boolean; + planMeterLimitsTableId?: boolean; + planCapsTableId?: boolean; + applyPlanFunction?: boolean; + applyPlanAggregateFunction?: boolean; + applyBillingPlanFunction?: boolean; + applyPlanCapsFunction?: boolean; + prefix?: boolean; apiName?: boolean; privateApiName?: boolean; - scope?: boolean; - prefix?: boolean; - entityTableId?: boolean; - namespaceModuleId?: boolean; - policies?: boolean; - provisions?: boolean; - defaultPermissions?: boolean; - namespaceModule?: { - select: NamespaceModuleSelect; - }; }; -export type StorageLogModuleSelect = { +export type ComputeLogModuleSelect = { id?: boolean; databaseId?: boolean; + entityField?: boolean; schemaId?: boolean; privateSchemaId?: boolean; publicSchemaName?: boolean; privateSchemaName?: boolean; - storageLogTableId?: boolean; - storageLogTableName?: boolean; + computeLogTableId?: boolean; + computeLogTableName?: boolean; usageDailyTableId?: boolean; usageDailyTableName?: boolean; interval?: boolean; @@ -2645,15 +2869,16 @@ export type StorageLogModuleSelect = { apiName?: boolean; privateApiName?: boolean; }; -export type TransferLogModuleSelect = { +export type InferenceLogModuleSelect = { id?: boolean; databaseId?: boolean; + entityField?: boolean; schemaId?: boolean; privateSchemaId?: boolean; publicSchemaName?: boolean; privateSchemaName?: boolean; - transferLogTableId?: boolean; - transferLogTableName?: boolean; + inferenceLogTableId?: boolean; + inferenceLogTableName?: boolean; usageDailyTableId?: boolean; usageDailyTableName?: boolean; interval?: boolean; @@ -2666,53 +2891,46 @@ export type TransferLogModuleSelect = { apiName?: boolean; privateApiName?: boolean; }; -export type FunctionDeploymentModuleSelect = { +export type StorageLogModuleSelect = { id?: boolean; databaseId?: boolean; + entityField?: boolean; schemaId?: boolean; privateSchemaId?: boolean; publicSchemaName?: boolean; privateSchemaName?: boolean; - deploymentsTableId?: boolean; - deploymentEventsTableId?: boolean; - deploymentsTableName?: boolean; - deploymentEventsTableName?: boolean; - apiName?: boolean; - privateApiName?: boolean; + storageLogTableId?: boolean; + storageLogTableName?: boolean; + usageDailyTableId?: boolean; + usageDailyTableName?: boolean; + interval?: boolean; + retention?: boolean; + premake?: boolean; scope?: boolean; + actorFkTableId?: boolean; + entityFkTableId?: boolean; prefix?: boolean; - entityTableId?: boolean; - functionModuleId?: boolean; - namespaceModuleId?: boolean; - policies?: boolean; - provisions?: boolean; - defaultPermissions?: boolean; - functionModule?: { - select: FunctionModuleSelect; - }; - namespaceModule?: { - select: NamespaceModuleSelect; - }; + apiName?: boolean; + privateApiName?: boolean; }; -export type PlansModuleSelect = { +export type TransferLogModuleSelect = { id?: boolean; databaseId?: boolean; + entityField?: boolean; schemaId?: boolean; privateSchemaId?: boolean; publicSchemaName?: boolean; privateSchemaName?: boolean; - plansTableId?: boolean; - plansTableName?: boolean; - planLimitsTableId?: boolean; - planLimitsTableName?: boolean; - planPricingTableId?: boolean; - planOverridesTableId?: boolean; - planMeterLimitsTableId?: boolean; - planCapsTableId?: boolean; - applyPlanFunction?: boolean; - applyPlanAggregateFunction?: boolean; - applyBillingPlanFunction?: boolean; - applyPlanCapsFunction?: boolean; + transferLogTableId?: boolean; + transferLogTableName?: boolean; + usageDailyTableId?: boolean; + usageDailyTableName?: boolean; + interval?: boolean; + retention?: boolean; + premake?: boolean; + scope?: boolean; + actorFkTableId?: boolean; + entityFkTableId?: boolean; prefix?: boolean; apiName?: boolean; privateApiName?: boolean; @@ -2741,42 +2959,72 @@ export type BillingProviderModuleSelect = { apiName?: boolean; privateApiName?: boolean; }; -export type DbUsageModuleSelect = { +export type FunctionDeploymentModuleSelect = { id?: boolean; databaseId?: boolean; + entityField?: boolean; schemaId?: boolean; privateSchemaId?: boolean; publicSchemaName?: boolean; privateSchemaName?: boolean; - tableStatsLogTableId?: boolean; - tableStatsLogTableName?: boolean; - tableStatsDailyTableId?: boolean; - tableStatsDailyTableName?: boolean; - queryStatsLogTableId?: boolean; - queryStatsLogTableName?: boolean; - queryStatsDailyTableId?: boolean; - queryStatsDailyTableName?: boolean; - interval?: boolean; - retention?: boolean; - premake?: boolean; + deploymentsTableId?: boolean; + deploymentEventsTableId?: boolean; + deploymentsTableName?: boolean; + deploymentEventsTableName?: boolean; + apiName?: boolean; + privateApiName?: boolean; scope?: boolean; prefix?: boolean; + entityTableId?: boolean; + functionModuleId?: boolean; + namespaceModuleId?: boolean; + policies?: boolean; + provisions?: boolean; defaultPermissions?: boolean; - apiName?: boolean; - privateApiName?: boolean; + functionModule?: { + select: FunctionModuleSelect; + }; + namespaceModule?: { + select: NamespaceModuleSelect; + }; }; -export type GraphExecutionModuleSelect = { +export type PermissionsModuleSelect = { id?: boolean; databaseId?: boolean; + entityField?: boolean; schemaId?: boolean; privateSchemaId?: boolean; publicSchemaName?: boolean; privateSchemaName?: boolean; - graphModuleId?: boolean; - scope?: boolean; - prefix?: boolean; - executionsTableId?: boolean; - outputsTableId?: boolean; + tableId?: boolean; + tableName?: boolean; + defaultTableId?: boolean; + defaultTableName?: boolean; + bitlen?: boolean; + scope?: boolean; + prefix?: boolean; + entityTableId?: boolean; + actorTableId?: boolean; + getPaddedMask?: boolean; + getMask?: boolean; + getByMask?: boolean; + getMaskByName?: boolean; + apiName?: boolean; + privateApiName?: boolean; +}; +export type GraphExecutionModuleSelect = { + id?: boolean; + databaseId?: boolean; + entityField?: boolean; + schemaId?: boolean; + privateSchemaId?: boolean; + publicSchemaName?: boolean; + privateSchemaName?: boolean; + graphModuleId?: boolean; + scope?: boolean; + prefix?: boolean; + executionsTableId?: boolean; + outputsTableId?: boolean; nodeStatesTableId?: boolean; executionsTableName?: boolean; outputsTableName?: boolean; @@ -2795,6 +3043,7 @@ export type GraphExecutionModuleSelect = { export type HierarchyModuleSelect = { id?: boolean; databaseId?: boolean; + entityField?: boolean; schemaId?: boolean; privateSchemaId?: boolean; chartEdgesTableId?: boolean; @@ -2816,32 +3065,10 @@ export type HierarchyModuleSelect = { defaultPermissions?: boolean; createdAt?: boolean; }; -export type PermissionsModuleSelect = { - id?: boolean; - databaseId?: boolean; - schemaId?: boolean; - privateSchemaId?: boolean; - publicSchemaName?: boolean; - privateSchemaName?: boolean; - tableId?: boolean; - tableName?: boolean; - defaultTableId?: boolean; - defaultTableName?: boolean; - bitlen?: boolean; - scope?: boolean; - prefix?: boolean; - entityTableId?: boolean; - actorTableId?: boolean; - getPaddedMask?: boolean; - getMask?: boolean; - getByMask?: boolean; - getMaskByName?: boolean; - apiName?: boolean; - privateApiName?: boolean; -}; export type NotificationsModuleSelect = { id?: boolean; databaseId?: boolean; + entityField?: boolean; schemaId?: boolean; privateSchemaId?: boolean; publicSchemaName?: boolean; @@ -2864,9 +3091,36 @@ export type NotificationsModuleSelect = { apiName?: boolean; privateApiName?: boolean; }; +export type RelationProvisionSelect = { + id?: boolean; + databaseId?: boolean; + relationType?: boolean; + sourceTableId?: boolean; + targetTableId?: boolean; + fieldName?: boolean; + deleteAction?: boolean; + isRequired?: boolean; + apiRequired?: boolean; + junctionTableId?: boolean; + junctionTableName?: boolean; + junctionSchemaId?: boolean; + sourceFieldName?: boolean; + targetFieldName?: boolean; + useCompositeKey?: boolean; + createIndex?: boolean; + exposeInApi?: boolean; + nodes?: boolean; + grants?: boolean; + policies?: boolean; + outFieldId?: boolean; + outJunctionTableId?: boolean; + outSourceFieldId?: boolean; + outTargetFieldId?: boolean; +}; export type ProfilesModuleSelect = { id?: boolean; databaseId?: boolean; + entityField?: boolean; schemaId?: boolean; privateSchemaId?: boolean; publicSchemaName?: boolean; @@ -2912,36 +3166,43 @@ export type BillingModuleSelect = { meterDefaultsTableId?: boolean; meterDefaultsTableName?: boolean; recordUsageFunction?: boolean; + sweepExpiredSubscriptionsFunction?: boolean; + rollupUsageSummaryFunction?: boolean; prefix?: boolean; defaultPermissions?: boolean; apiName?: boolean; privateApiName?: boolean; }; -export type RelationProvisionSelect = { +export type ResourceModuleSelect = { id?: boolean; databaseId?: boolean; - relationType?: boolean; - sourceTableId?: boolean; - targetTableId?: boolean; - fieldName?: boolean; - deleteAction?: boolean; - isRequired?: boolean; - apiRequired?: boolean; - junctionTableId?: boolean; - junctionTableName?: boolean; - junctionSchemaId?: boolean; - sourceFieldName?: boolean; - targetFieldName?: boolean; - useCompositeKey?: boolean; - createIndex?: boolean; - exposeInApi?: boolean; - nodes?: boolean; - grants?: boolean; + entityField?: boolean; + schemaId?: boolean; + privateSchemaId?: boolean; + publicSchemaName?: boolean; + privateSchemaName?: boolean; + resourcesTableId?: boolean; + resourceEventsTableId?: boolean; + resourceStatusChecksTableId?: boolean; + resourceDefinitionsTableId?: boolean; + resourcesTableName?: boolean; + resourceEventsTableName?: boolean; + resourceStatusChecksTableName?: boolean; + resourceDefinitionsTableName?: boolean; + resolvedRequirementsViewName?: boolean; + requirementsStateViewName?: boolean; + apiName?: boolean; + privateApiName?: boolean; + scope?: boolean; + prefix?: boolean; + entityTableId?: boolean; + namespaceModuleId?: boolean; policies?: boolean; - outFieldId?: boolean; - outJunctionTableId?: boolean; - outSourceFieldId?: boolean; - outTargetFieldId?: boolean; + provisions?: boolean; + defaultPermissions?: boolean; + namespaceModule?: { + select: NamespaceModuleSelect; + }; }; export type UserAuthModuleSelect = { id?: boolean; @@ -2973,9 +3234,39 @@ export type UserAuthModuleSelect = { apiName?: boolean; privateApiName?: boolean; }; +export type DbUsageModuleSelect = { + id?: boolean; + databaseId?: boolean; + entityField?: boolean; + schemaId?: boolean; + privateSchemaId?: boolean; + publicSchemaName?: boolean; + privateSchemaName?: boolean; + tableStatsLogTableId?: boolean; + tableStatsLogTableName?: boolean; + tableStatsDailyTableId?: boolean; + tableStatsDailyTableName?: boolean; + queryStatsLogTableId?: boolean; + queryStatsLogTableName?: boolean; + queryStatsDailyTableId?: boolean; + queryStatsDailyTableName?: boolean; + collectDbTableStatsFunction?: boolean; + collectDbQueryStatsFunction?: boolean; + rollupDbTableStatsDailyFunction?: boolean; + rollupDbQueryStatsDailyFunction?: boolean; + interval?: boolean; + retention?: boolean; + premake?: boolean; + scope?: boolean; + prefix?: boolean; + defaultPermissions?: boolean; + apiName?: boolean; + privateApiName?: boolean; +}; export type AgentModuleSelect = { id?: boolean; databaseId?: boolean; + entityField?: boolean; schemaId?: boolean; privateSchemaId?: boolean; publicSchemaName?: boolean; @@ -3013,6 +3304,7 @@ export type AgentModuleSelect = { export type LimitsModuleSelect = { id?: boolean; databaseId?: boolean; + entityField?: boolean; schemaId?: boolean; privateSchemaId?: boolean; publicSchemaName?: boolean; @@ -3048,49 +3340,6 @@ export type LimitsModuleSelect = { apiName?: boolean; privateApiName?: boolean; }; -export type MembershipsModuleSelect = { - id?: boolean; - databaseId?: boolean; - schemaId?: boolean; - privateSchemaId?: boolean; - publicSchemaName?: boolean; - privateSchemaName?: boolean; - membershipsTableId?: boolean; - membershipsTableName?: boolean; - membersTableId?: boolean; - membersTableName?: boolean; - membershipDefaultsTableId?: boolean; - membershipDefaultsTableName?: boolean; - membershipSettingsTableId?: boolean; - membershipSettingsTableName?: boolean; - grantsTableId?: boolean; - grantsTableName?: boolean; - actorTableId?: boolean; - limitsTableId?: boolean; - defaultLimitsTableId?: boolean; - permissionsTableId?: boolean; - defaultPermissionsTableId?: boolean; - sprtTableId?: boolean; - adminGrantsTableId?: boolean; - adminGrantsTableName?: boolean; - ownerGrantsTableId?: boolean; - ownerGrantsTableName?: boolean; - scope?: boolean; - prefix?: boolean; - entityTableId?: boolean; - entityTableOwnerId?: boolean; - getOrgFn?: boolean; - actorMaskCheck?: boolean; - actorPermCheck?: boolean; - entityIdsByMask?: boolean; - entityIdsByPerm?: boolean; - entityIdsFunction?: boolean; - memberProfilesTableId?: boolean; - permissionDefaultPermissionsTableId?: boolean; - permissionDefaultGrantsTableId?: boolean; - apiName?: boolean; - privateApiName?: boolean; -}; export type EntityTypeProvisionSelect = { id?: boolean; databaseId?: boolean; @@ -3128,7 +3377,6 @@ export type EntityTypeProvisionSelect = { outDefinitionsTableId?: boolean; outInvocationsTableId?: boolean; outExecutionLogsTableId?: boolean; - outSecretDefinitionsTableId?: boolean; outGraphModuleId?: boolean; outGraphsTableId?: boolean; outAgentModuleId?: boolean; @@ -3149,6 +3397,7 @@ export type StorageModuleSelect = { policies?: boolean; provisions?: boolean; entityTableId?: boolean; + entityField?: boolean; endpoint?: boolean; publicUrlPrefix?: boolean; provider?: boolean; @@ -3174,9 +3423,54 @@ export type StorageModuleSelect = { apiName?: boolean; privateApiName?: boolean; }; +export type MembershipsModuleSelect = { + id?: boolean; + databaseId?: boolean; + entityField?: boolean; + schemaId?: boolean; + privateSchemaId?: boolean; + publicSchemaName?: boolean; + privateSchemaName?: boolean; + membershipsTableId?: boolean; + membershipsTableName?: boolean; + membersTableId?: boolean; + membersTableName?: boolean; + membershipDefaultsTableId?: boolean; + membershipDefaultsTableName?: boolean; + membershipSettingsTableId?: boolean; + membershipSettingsTableName?: boolean; + grantsTableId?: boolean; + grantsTableName?: boolean; + actorTableId?: boolean; + limitsTableId?: boolean; + defaultLimitsTableId?: boolean; + permissionsTableId?: boolean; + defaultPermissionsTableId?: boolean; + sprtTableId?: boolean; + adminGrantsTableId?: boolean; + adminGrantsTableName?: boolean; + ownerGrantsTableId?: boolean; + ownerGrantsTableName?: boolean; + scope?: boolean; + prefix?: boolean; + entityTableId?: boolean; + entityTableOwnerId?: boolean; + getOrgFn?: boolean; + actorMaskCheck?: boolean; + actorPermCheck?: boolean; + entityIdsByMask?: boolean; + entityIdsByPerm?: boolean; + entityIdsFunction?: boolean; + memberProfilesTableId?: boolean; + permissionDefaultPermissionsTableId?: boolean; + permissionDefaultGrantsTableId?: boolean; + apiName?: boolean; + privateApiName?: boolean; +}; export type EventsModuleSelect = { id?: boolean; databaseId?: boolean; + entityField?: boolean; schemaId?: boolean; privateSchemaId?: boolean; publicSchemaName?: boolean; @@ -3203,7 +3497,6 @@ export type EventsModuleSelect = { tgEventBool?: boolean; upsertAggregate?: boolean; tgUpdateAggregates?: boolean; - pruneEvents?: boolean; stepsRequired?: boolean; levelAchieved?: boolean; tgCheckAchievements?: boolean; @@ -3251,24 +3544,6 @@ export interface MembershipTypesModuleFilter { /** Negates the expression. */ not?: MembershipTypesModuleFilter; } -export interface UserStateModuleFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `schemaId` field. */ - schemaId?: UUIDFilter; - /** Filter by the object’s `tableId` field. */ - tableId?: UUIDFilter; - /** Filter by the object’s `tableName` field. */ - tableName?: StringFilter; - /** Checks for all expressions in this list. */ - and?: UserStateModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: UserStateModuleFilter[]; - /** Negates the expression. */ - not?: UserStateModuleFilter; -} export interface SessionSecretsModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; @@ -3289,29 +3564,7 @@ export interface SessionSecretsModuleFilter { /** Negates the expression. */ not?: SessionSecretsModuleFilter; } -export interface ConfigSecretsOrgModuleFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `schemaId` field. */ - schemaId?: UUIDFilter; - /** Filter by the object’s `tableId` field. */ - tableId?: UUIDFilter; - /** Filter by the object’s `tableName` field. */ - tableName?: StringFilter; - /** Filter by the object’s `apiName` field. */ - apiName?: StringFilter; - /** Filter by the object’s `privateApiName` field. */ - privateApiName?: StringFilter; - /** Checks for all expressions in this list. */ - and?: ConfigSecretsOrgModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: ConfigSecretsOrgModuleFilter[]; - /** Negates the expression. */ - not?: ConfigSecretsOrgModuleFilter; -} -export interface DevicesModuleFilter { +export interface DevicesModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ @@ -3355,7 +3608,7 @@ export interface I18NModuleFilter { /** Negates the expression. */ not?: I18NModuleFilter; } -export interface UserCredentialsModuleFilter { +export interface UserSettingsModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ @@ -3364,64 +3617,60 @@ export interface UserCredentialsModuleFilter { schemaId?: UUIDFilter; /** Filter by the object’s `tableId` field. */ tableId?: UUIDFilter; + /** Filter by the object’s `ownerTableId` field. */ + ownerTableId?: UUIDFilter; /** Filter by the object’s `tableName` field. */ tableName?: StringFilter; /** Filter by the object’s `apiName` field. */ apiName?: StringFilter; - /** Filter by the object’s `privateApiName` field. */ - privateApiName?: StringFilter; /** Checks for all expressions in this list. */ - and?: UserCredentialsModuleFilter[]; + and?: UserSettingsModuleFilter[]; /** Checks for any expressions in this list. */ - or?: UserCredentialsModuleFilter[]; + or?: UserSettingsModuleFilter[]; /** Negates the expression. */ - not?: UserCredentialsModuleFilter; + not?: UserSettingsModuleFilter; } -export interface UserSettingsModuleFilter { +export interface UserStateModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; + /** Filter by the object’s `entityField` field. */ + entityField?: StringFilter; /** Filter by the object’s `schemaId` field. */ schemaId?: UUIDFilter; /** Filter by the object’s `tableId` field. */ tableId?: UUIDFilter; - /** Filter by the object’s `ownerTableId` field. */ - ownerTableId?: UUIDFilter; /** Filter by the object’s `tableName` field. */ tableName?: StringFilter; - /** Filter by the object’s `apiName` field. */ - apiName?: StringFilter; /** Checks for all expressions in this list. */ - and?: UserSettingsModuleFilter[]; + and?: UserStateModuleFilter[]; /** Checks for any expressions in this list. */ - or?: UserSettingsModuleFilter[]; + or?: UserStateModuleFilter[]; /** Negates the expression. */ - not?: UserSettingsModuleFilter; + not?: UserStateModuleFilter; } -export interface ConfigSecretsUserModuleFilter { +export interface UserCredentialsModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; + /** Filter by the object’s `entityField` field. */ + entityField?: 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 `configDefinitionsTableId` field. */ - configDefinitionsTableId?: UUIDFilter; - /** Filter by the object’s `apiName` field. */ - apiName?: StringFilter; /** Filter by the object’s `privateApiName` field. */ privateApiName?: StringFilter; /** Checks for all expressions in this list. */ - and?: ConfigSecretsUserModuleFilter[]; + and?: UserCredentialsModuleFilter[]; /** Checks for any expressions in this list. */ - or?: ConfigSecretsUserModuleFilter[]; + or?: UserCredentialsModuleFilter[]; /** Negates the expression. */ - not?: ConfigSecretsUserModuleFilter; + not?: UserCredentialsModuleFilter; } export interface ConnectedAccountsModuleFilter { /** Filter by the object’s `id` field. */ @@ -3579,6 +3828,30 @@ export interface WebauthnCredentialsModuleFilter { /** Negates the expression. */ not?: WebauthnCredentialsModuleFilter; } +export interface ConfigSecretsUserModuleFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `entityField` field. */ + entityField?: 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 `apiName` field. */ + apiName?: StringFilter; + /** Filter by the object’s `privateApiName` field. */ + privateApiName?: StringFilter; + /** Checks for all expressions in this list. */ + and?: ConfigSecretsUserModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: ConfigSecretsUserModuleFilter[]; + /** Negates the expression. */ + not?: ConfigSecretsUserModuleFilter; +} export interface CryptoAddressesModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; @@ -3639,40 +3912,6 @@ export interface DenormalizedTableFieldFilter { /** Negates the expression. */ not?: DenormalizedTableFieldFilter; } -export interface IdentityProvidersModuleFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `schemaId` field. */ - schemaId?: UUIDFilter; - /** Filter by the object’s `privateSchemaId` field. */ - privateSchemaId?: UUIDFilter; - /** Filter by the object’s `publicSchemaName` field. */ - publicSchemaName?: StringFilter; - /** Filter by the object’s `privateSchemaName` field. */ - privateSchemaName?: StringFilter; - /** Filter by the object’s `tableId` field. */ - tableId?: UUIDFilter; - /** Filter by the object’s `tableName` field. */ - tableName?: StringFilter; - /** Filter by the object’s `apiName` field. */ - apiName?: StringFilter; - /** Filter by the object’s `privateApiName` field. */ - privateApiName?: StringFilter; - /** Filter by the object’s `scope` field. */ - scope?: StringFilter; - /** Filter by the object’s `prefix` field. */ - prefix?: StringFilter; - /** Filter by the object’s `entityTableId` field. */ - entityTableId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: IdentityProvidersModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: IdentityProvidersModuleFilter[]; - /** Negates the expression. */ - not?: IdentityProvidersModuleFilter; -} export interface RlsModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; @@ -3935,47 +4174,13 @@ export interface SecureTableProvisionFilter { /** Negates the expression. */ not?: SecureTableProvisionFilter; } -export interface DatabaseProvisionModuleFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseName` field. */ - databaseName?: StringFilter; - /** Filter by the object’s `ownerId` field. */ - ownerId?: UUIDFilter; - /** Filter by the object’s `subdomain` field. */ - subdomain?: StringFilter; - /** Filter by the object’s `domain` field. */ - domain?: StringFilter; - /** Filter by the object’s `modules` field. */ - modules?: JSONFilter; - /** Filter by the object’s `options` field. */ - options?: JSONFilter; - /** Filter by the object’s `bootstrapUser` field. */ - bootstrapUser?: BooleanFilter; - /** Filter by the object’s `status` field. */ - status?: StringFilter; - /** Filter by the object’s `errorMessage` field. */ - errorMessage?: StringFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `completedAt` field. */ - completedAt?: DatetimeFilter; - /** Checks for all expressions in this list. */ - and?: DatabaseProvisionModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: DatabaseProvisionModuleFilter[]; - /** Negates the expression. */ - not?: DatabaseProvisionModuleFilter; -} -export interface ConfigSecretsModuleFilter { +export interface IdentityProvidersModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; + /** Filter by the object’s `entityField` field. */ + entityField?: StringFilter; /** Filter by the object’s `schemaId` field. */ schemaId?: UUIDFilter; /** Filter by the object’s `privateSchemaId` field. */ @@ -3986,8 +4191,6 @@ export interface ConfigSecretsModuleFilter { privateSchemaName?: StringFilter; /** Filter by the object’s `tableId` field. */ tableId?: UUIDFilter; - /** Filter by the object’s `configDefinitionsTableId` field. */ - configDefinitionsTableId?: UUIDFilter; /** Filter by the object’s `tableName` field. */ tableName?: StringFilter; /** Filter by the object’s `apiName` field. */ @@ -4000,64 +4203,78 @@ export interface ConfigSecretsModuleFilter { prefix?: StringFilter; /** Filter by the object’s `entityTableId` field. */ entityTableId?: UUIDFilter; - /** Filter by the object’s `policies` field. */ - policies?: JSONFilter; - /** Filter by the object’s `provisions` field. */ - provisions?: JSONFilter; - /** Filter by the object’s `hasConfig` field. */ - hasConfig?: BooleanFilter; /** Checks for all expressions in this list. */ - and?: ConfigSecretsModuleFilter[]; + and?: IdentityProvidersModuleFilter[]; /** Checks for any expressions in this list. */ - or?: ConfigSecretsModuleFilter[]; + or?: IdentityProvidersModuleFilter[]; /** Negates the expression. */ - not?: ConfigSecretsModuleFilter; + not?: IdentityProvidersModuleFilter; } -export interface GraphModuleFilter { +export interface IntegrationProvidersModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `publicSchemaId` field. */ - publicSchemaId?: UUIDFilter; + /** Filter by the object’s `entityField` field. */ + entityField?: StringFilter; + /** Filter by the object’s `schemaId` field. */ + schemaId?: UUIDFilter; /** Filter by the object’s `privateSchemaId` field. */ privateSchemaId?: UUIDFilter; /** Filter by the object’s `publicSchemaName` field. */ publicSchemaName?: StringFilter; /** Filter by the object’s `privateSchemaName` field. */ privateSchemaName?: StringFilter; - /** Filter by the object’s `scope` field. */ - scope?: StringFilter; - /** Filter by the object’s `prefix` field. */ - prefix?: StringFilter; - /** Filter by the object’s `merkleStoreModuleId` field. */ - merkleStoreModuleId?: UUIDFilter; - /** Filter by the object’s `graphsTableId` field. */ - graphsTableId?: UUIDFilter; + /** Filter by the object’s `tableId` field. */ + tableId?: UUIDFilter; + /** Filter by the object’s `tableName` field. */ + tableName?: StringFilter; /** Filter by the object’s `apiName` field. */ apiName?: StringFilter; /** Filter by the object’s `privateApiName` field. */ privateApiName?: StringFilter; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; /** Filter by the object’s `entityTableId` field. */ entityTableId?: UUIDFilter; - /** Filter by the object’s `policies` field. */ - policies?: JSONFilter; - /** Filter by the object’s `provisions` field. */ - provisions?: JSONFilter; - /** Filter by the object’s `defaultPermissions` field. */ - defaultPermissions?: StringListFilter; + /** Checks for all expressions in this list. */ + and?: IntegrationProvidersModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: IntegrationProvidersModuleFilter[]; + /** Negates the expression. */ + not?: IntegrationProvidersModuleFilter; +} +export interface DbPoolConfigFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `presetSlug` field. */ + presetSlug?: StringFilter; + /** Filter by the object’s `domain` field. */ + domain?: StringFilter; + /** Filter by the object’s `poolOwnerId` field. */ + poolOwnerId?: UUIDFilter; + /** Filter by the object’s `min` field. */ + min?: IntFilter; + /** Filter by the object’s `max` field. */ + max?: IntFilter; + /** Filter by the object’s `warmTtl` field. */ + warmTtl?: IntervalFilter; + /** Filter by the object’s `enabled` field. */ + enabled?: BooleanFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; /** Checks for all expressions in this list. */ - and?: GraphModuleFilter[]; + and?: DbPoolConfigFilter[]; /** Checks for any expressions in this list. */ - or?: GraphModuleFilter[]; + or?: DbPoolConfigFilter[]; /** Negates the expression. */ - not?: GraphModuleFilter; - /** Filter by the object’s `merkleStoreModule` relation. */ - merkleStoreModule?: MerkleStoreModuleFilter; + not?: DbPoolConfigFilter; } -export interface MerkleStoreModuleFilter { +export interface RealtimeModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ @@ -4066,44 +4283,34 @@ export interface MerkleStoreModuleFilter { schemaId?: UUIDFilter; /** Filter by the object’s `privateSchemaId` field. */ privateSchemaId?: UUIDFilter; - /** Filter by the object’s `publicSchemaName` field. */ - publicSchemaName?: StringFilter; - /** Filter by the object’s `privateSchemaName` field. */ - privateSchemaName?: StringFilter; - /** Filter by the object’s `objectTableId` field. */ - objectTableId?: UUIDFilter; - /** Filter by the object’s `storeTableId` field. */ - storeTableId?: UUIDFilter; - /** Filter by the object’s `commitTableId` field. */ - commitTableId?: UUIDFilter; - /** Filter by the object’s `refTableId` field. */ - refTableId?: UUIDFilter; - /** Filter by the object’s `prefix` field. */ - prefix?: StringFilter; + /** Filter by the object’s `subscriptionsSchemaId` field. */ + subscriptionsSchemaId?: UUIDFilter; + /** Filter by the object’s `changeLogTableId` field. */ + changeLogTableId?: UUIDFilter; + /** Filter by the object’s `listenerNodeTableId` field. */ + listenerNodeTableId?: UUIDFilter; + /** Filter by the object’s `sourceRegistryTableId` field. */ + sourceRegistryTableId?: UUIDFilter; + /** Filter by the object’s `retentionHours` field. */ + retentionHours?: IntFilter; + /** Filter by the object’s `premake` field. */ + premake?: IntFilter; + /** Filter by the object’s `interval` field. */ + interval?: StringFilter; + /** Filter by the object’s `notifyChannel` field. */ + notifyChannel?: StringFilter; /** Filter by the object’s `apiName` field. */ apiName?: StringFilter; /** Filter by the object’s `privateApiName` field. */ privateApiName?: StringFilter; - /** Filter by the object’s `scope` field. */ - scope?: StringFilter; - /** Filter by the object’s `functionPrefix` field. */ - functionPrefix?: StringFilter; - /** Filter by the object’s `permissionKey` field. */ - permissionKey?: StringFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; /** Checks for all expressions in this list. */ - and?: MerkleStoreModuleFilter[]; + and?: RealtimeModuleFilter[]; /** Checks for any expressions in this list. */ - or?: MerkleStoreModuleFilter[]; + or?: RealtimeModuleFilter[]; /** Negates the expression. */ - not?: MerkleStoreModuleFilter; - /** Filter by the object’s `graphModules` relation. */ - graphModules?: MerkleStoreModuleToManyGraphModuleFilter; - /** `graphModules` exist. */ - graphModulesExist?: boolean; + not?: RealtimeModuleFilter; } -export interface RateLimitMetersModuleFilter { +export interface InfraSecretsModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ @@ -4116,36 +4323,34 @@ export interface RateLimitMetersModuleFilter { publicSchemaName?: StringFilter; /** Filter by the object’s `privateSchemaName` field. */ privateSchemaName?: StringFilter; - /** Filter by the object’s `rateLimitStateTableId` field. */ - rateLimitStateTableId?: UUIDFilter; - /** Filter by the object’s `rateLimitStateTableName` field. */ - rateLimitStateTableName?: StringFilter; - /** Filter by the object’s `rateLimitOverridesTableId` field. */ - rateLimitOverridesTableId?: UUIDFilter; - /** Filter by the object’s `rateLimitOverridesTableName` field. */ - rateLimitOverridesTableName?: StringFilter; - /** Filter by the object’s `rateWindowLimitsTableId` field. */ - rateWindowLimitsTableId?: UUIDFilter; - /** Filter by the object’s `rateWindowLimitsTableName` field. */ - rateWindowLimitsTableName?: StringFilter; - /** Filter by the object’s `checkRateLimitFunction` field. */ - checkRateLimitFunction?: StringFilter; - /** Filter by the object’s `prefix` field. */ - prefix?: StringFilter; - /** Filter by the object’s `defaultPermissions` field. */ - defaultPermissions?: StringListFilter; + /** Filter by the object’s `secretsTableId` field. */ + secretsTableId?: UUIDFilter; + /** Filter by the object’s `secretsTableName` field. */ + secretsTableName?: StringFilter; /** Filter by the object’s `apiName` field. */ apiName?: StringFilter; /** Filter by the object’s `privateApiName` field. */ privateApiName?: StringFilter; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Filter by the object’s `entityTableId` field. */ + entityTableId?: UUIDFilter; + /** Filter by the object’s `entityField` field. */ + entityField?: StringFilter; + /** Filter by the object’s `policies` field. */ + policies?: JSONFilter; + /** Filter by the object’s `provisions` field. */ + provisions?: JSONFilter; /** Checks for all expressions in this list. */ - and?: RateLimitMetersModuleFilter[]; + and?: InfraSecretsModuleFilter[]; /** Checks for any expressions in this list. */ - or?: RateLimitMetersModuleFilter[]; + or?: InfraSecretsModuleFilter[]; /** Negates the expression. */ - not?: RateLimitMetersModuleFilter; + not?: InfraSecretsModuleFilter; } -export interface RealtimeModuleFilter { +export interface InternalSecretsModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ @@ -4154,146 +4359,108 @@ export interface RealtimeModuleFilter { schemaId?: UUIDFilter; /** Filter by the object’s `privateSchemaId` field. */ privateSchemaId?: UUIDFilter; - /** Filter by the object’s `subscriptionsSchemaId` field. */ - subscriptionsSchemaId?: UUIDFilter; - /** Filter by the object’s `changeLogTableId` field. */ - changeLogTableId?: UUIDFilter; - /** Filter by the object’s `listenerNodeTableId` field. */ - listenerNodeTableId?: UUIDFilter; - /** Filter by the object’s `sourceRegistryTableId` field. */ - sourceRegistryTableId?: UUIDFilter; - /** Filter by the object’s `retentionHours` field. */ - retentionHours?: IntFilter; - /** Filter by the object’s `premake` field. */ - premake?: IntFilter; - /** Filter by the object’s `interval` field. */ - interval?: StringFilter; - /** Filter by the object’s `notifyChannel` field. */ - notifyChannel?: StringFilter; + /** Filter by the object’s `publicSchemaName` field. */ + publicSchemaName?: StringFilter; + /** Filter by the object’s `privateSchemaName` field. */ + privateSchemaName?: StringFilter; + /** Filter by the object’s `internalSecretsTableId` field. */ + internalSecretsTableId?: UUIDFilter; + /** Filter by the object’s `internalSecretsTableName` field. */ + internalSecretsTableName?: StringFilter; /** Filter by the object’s `apiName` field. */ apiName?: StringFilter; /** Filter by the object’s `privateApiName` field. */ privateApiName?: StringFilter; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Filter by the object’s `entityTableId` field. */ + entityTableId?: UUIDFilter; + /** Filter by the object’s `entityField` field. */ + entityField?: StringFilter; + /** Filter by the object’s `policies` field. */ + policies?: JSONFilter; + /** Filter by the object’s `provisions` field. */ + provisions?: JSONFilter; /** Checks for all expressions in this list. */ - and?: RealtimeModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: RealtimeModuleFilter[]; - /** Negates the expression. */ - not?: RealtimeModuleFilter; -} -export interface WebauthnAuthModuleFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `schemaId` field. */ - schemaId?: UUIDFilter; - /** Filter by the object’s `usersTableId` field. */ - usersTableId?: UUIDFilter; - /** Filter by the object’s `credentialsTableId` field. */ - credentialsTableId?: UUIDFilter; - /** Filter by the object’s `sessionsTableId` field. */ - sessionsTableId?: UUIDFilter; - /** Filter by the object’s `sessionCredentialsTableId` field. */ - sessionCredentialsTableId?: UUIDFilter; - /** Filter by the object’s `sessionSecretsTableId` field. */ - sessionSecretsTableId?: UUIDFilter; - /** Filter by the object’s `authSettingsTableId` field. */ - authSettingsTableId?: UUIDFilter; - /** Filter by the object’s `rpId` field. */ - rpId?: StringFilter; - /** Filter by the object’s `rpName` field. */ - rpName?: StringFilter; - /** Filter by the object’s `originAllowlist` field. */ - originAllowlist?: StringListFilter; - /** Filter by the object’s `attestationType` field. */ - attestationType?: StringFilter; - /** Filter by the object’s `requireUserVerification` field. */ - requireUserVerification?: BooleanFilter; - /** Filter by the object’s `residentKey` field. */ - residentKey?: StringFilter; - /** Filter by the object’s `challengeExpiry` field. */ - challengeExpiry?: IntervalFilter; - /** Checks for all expressions in this list. */ - and?: WebauthnAuthModuleFilter[]; + and?: InternalSecretsModuleFilter[]; /** Checks for any expressions in this list. */ - or?: WebauthnAuthModuleFilter[]; + or?: InternalSecretsModuleFilter[]; /** Negates the expression. */ - not?: WebauthnAuthModuleFilter; + not?: InternalSecretsModuleFilter; } -export interface FunctionInvocationModuleFilter { +export interface DbPresetModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `schemaId` field. */ - schemaId?: UUIDFilter; + /** Filter by the object’s `publicSchemaId` field. */ + publicSchemaId?: UUIDFilter; /** Filter by the object’s `privateSchemaId` field. */ privateSchemaId?: UUIDFilter; /** Filter by the object’s `publicSchemaName` field. */ publicSchemaName?: StringFilter; /** Filter by the object’s `privateSchemaName` field. */ privateSchemaName?: StringFilter; - /** Filter by the object’s `invocationsTableId` field. */ - invocationsTableId?: UUIDFilter; - /** Filter by the object’s `executionLogsTableId` field. */ - executionLogsTableId?: UUIDFilter; - /** Filter by the object’s `invocationsTableName` field. */ - invocationsTableName?: StringFilter; - /** Filter by the object’s `executionLogsTableName` field. */ - executionLogsTableName?: StringFilter; - /** Filter by the object’s `apiName` field. */ - apiName?: StringFilter; - /** Filter by the object’s `privateApiName` field. */ - privateApiName?: StringFilter; /** Filter by the object’s `scope` field. */ scope?: StringFilter; /** Filter by the object’s `prefix` field. */ prefix?: StringFilter; + /** Filter by the object’s `merkleStoreModuleId` field. */ + merkleStoreModuleId?: UUIDFilter; + /** Filter by the object’s `dbPresetsTableId` field. */ + dbPresetsTableId?: UUIDFilter; + /** Filter by the object’s `storeName` field. */ + storeName?: StringFilter; + /** Filter by the object’s `apiName` field. */ + apiName?: StringFilter; + /** Filter by the object’s `privateApiName` field. */ + privateApiName?: StringFilter; /** Filter by the object’s `entityTableId` field. */ entityTableId?: UUIDFilter; /** Filter by the object’s `policies` field. */ policies?: JSONFilter; /** Filter by the object’s `provisions` field. */ provisions?: JSONFilter; - /** Filter by the object’s `defaultPermissions` field. */ - defaultPermissions?: StringListFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; /** Checks for all expressions in this list. */ - and?: FunctionInvocationModuleFilter[]; + and?: DbPresetModuleFilter[]; /** Checks for any expressions in this list. */ - or?: FunctionInvocationModuleFilter[]; + or?: DbPresetModuleFilter[]; /** Negates the expression. */ - not?: FunctionInvocationModuleFilter; + not?: DbPresetModuleFilter; + /** Filter by the object’s `merkleStoreModule` relation. */ + merkleStoreModule?: MerkleStoreModuleFilter; } -export interface FunctionModuleFilter { +export interface GraphModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `schemaId` field. */ - schemaId?: UUIDFilter; + /** Filter by the object’s `entityField` field. */ + entityField?: StringFilter; + /** Filter by the object’s `publicSchemaId` field. */ + publicSchemaId?: UUIDFilter; /** Filter by the object’s `privateSchemaId` field. */ privateSchemaId?: UUIDFilter; /** Filter by the object’s `publicSchemaName` field. */ publicSchemaName?: StringFilter; /** Filter by the object’s `privateSchemaName` field. */ privateSchemaName?: StringFilter; - /** Filter by the object’s `definitionsTableId` field. */ - definitionsTableId?: UUIDFilter; - /** Filter by the object’s `secretDefinitionsTableId` field. */ - secretDefinitionsTableId?: UUIDFilter; - /** Filter by the object’s `definitionsTableName` field. */ - definitionsTableName?: StringFilter; - /** Filter by the object’s `secretDefinitionsTableName` field. */ - secretDefinitionsTableName?: StringFilter; - /** Filter by the object’s `apiName` field. */ - apiName?: StringFilter; - /** Filter by the object’s `privateApiName` field. */ - privateApiName?: StringFilter; /** Filter by the object’s `scope` field. */ scope?: StringFilter; /** Filter by the object’s `prefix` field. */ prefix?: StringFilter; + /** Filter by the object’s `merkleStoreModuleId` field. */ + merkleStoreModuleId?: UUIDFilter; + /** Filter by the object’s `graphsTableId` field. */ + graphsTableId?: UUIDFilter; + /** Filter by the object’s `apiName` field. */ + apiName?: StringFilter; + /** Filter by the object’s `privateApiName` field. */ + privateApiName?: StringFilter; /** Filter by the object’s `entityTableId` field. */ entityTableId?: UUIDFilter; /** Filter by the object’s `policies` field. */ @@ -4302,14 +4469,18 @@ export interface FunctionModuleFilter { provisions?: JSONFilter; /** Filter by the object’s `defaultPermissions` field. */ defaultPermissions?: StringListFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; /** Checks for all expressions in this list. */ - and?: FunctionModuleFilter[]; + and?: GraphModuleFilter[]; /** Checks for any expressions in this list. */ - or?: FunctionModuleFilter[]; + or?: GraphModuleFilter[]; /** Negates the expression. */ - not?: FunctionModuleFilter; + not?: GraphModuleFilter; + /** Filter by the object’s `merkleStoreModule` relation. */ + merkleStoreModule?: MerkleStoreModuleFilter; } -export interface InvitesModuleFilter { +export interface RateLimitMetersModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ @@ -4322,132 +4493,338 @@ export interface InvitesModuleFilter { publicSchemaName?: StringFilter; /** Filter by the object’s `privateSchemaName` field. */ privateSchemaName?: StringFilter; - /** Filter by the object’s `emailsTableId` field. */ - emailsTableId?: UUIDFilter; - /** Filter by the object’s `usersTableId` field. */ - usersTableId?: UUIDFilter; - /** Filter by the object’s `invitesTableId` field. */ - invitesTableId?: UUIDFilter; - /** Filter by the object’s `claimedInvitesTableId` field. */ - claimedInvitesTableId?: UUIDFilter; - /** Filter by the object’s `invitesTableName` field. */ - invitesTableName?: StringFilter; - /** Filter by the object’s `claimedInvitesTableName` field. */ - claimedInvitesTableName?: StringFilter; - /** Filter by the object’s `submitInviteCodeFunction` field. */ - submitInviteCodeFunction?: StringFilter; - /** Filter by the object’s `scope` field. */ - scope?: StringFilter; + /** Filter by the object’s `rateLimitStateTableId` field. */ + rateLimitStateTableId?: UUIDFilter; + /** Filter by the object’s `rateLimitStateTableName` field. */ + rateLimitStateTableName?: StringFilter; + /** Filter by the object’s `rateLimitOverridesTableId` field. */ + rateLimitOverridesTableId?: UUIDFilter; + /** Filter by the object’s `rateLimitOverridesTableName` field. */ + rateLimitOverridesTableName?: StringFilter; + /** Filter by the object’s `rateWindowLimitsTableId` field. */ + rateWindowLimitsTableId?: UUIDFilter; + /** Filter by the object’s `rateWindowLimitsTableName` field. */ + rateWindowLimitsTableName?: StringFilter; + /** Filter by the object’s `checkRateLimitFunction` field. */ + checkRateLimitFunction?: StringFilter; /** Filter by the object’s `prefix` field. */ prefix?: StringFilter; - /** Filter by the object’s `entityTableId` field. */ - entityTableId?: UUIDFilter; + /** Filter by the object’s `defaultPermissions` field. */ + defaultPermissions?: StringListFilter; /** Filter by the object’s `apiName` field. */ apiName?: StringFilter; /** Filter by the object’s `privateApiName` field. */ privateApiName?: StringFilter; /** Checks for all expressions in this list. */ - and?: InvitesModuleFilter[]; + and?: RateLimitMetersModuleFilter[]; /** Checks for any expressions in this list. */ - or?: InvitesModuleFilter[]; + or?: RateLimitMetersModuleFilter[]; /** Negates the expression. */ - not?: InvitesModuleFilter; + not?: RateLimitMetersModuleFilter; } -export interface PrincipalAuthModuleFilter { +export interface InfraConfigModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; + /** Filter by the object’s `entityField` field. */ + entityField?: StringFilter; /** Filter by the object’s `schemaId` field. */ schemaId?: UUIDFilter; - /** Filter by the object’s `principalsTableId` field. */ - principalsTableId?: UUIDFilter; - /** Filter by the object’s `principalEntitiesTableId` field. */ - principalEntitiesTableId?: UUIDFilter; - /** Filter by the object’s `principalScopeOverridesTableId` field. */ - principalScopeOverridesTableId?: UUIDFilter; - /** Filter by the object’s `usersTableId` field. */ - usersTableId?: UUIDFilter; - /** Filter by the object’s `sessionsTableId` field. */ - sessionsTableId?: UUIDFilter; - /** Filter by the object’s `sessionCredentialsTableId` field. */ - sessionCredentialsTableId?: UUIDFilter; - /** Filter by the object’s `auditsTableId` field. */ - auditsTableId?: UUIDFilter; - /** Filter by the object’s `principalsTableName` field. */ - principalsTableName?: StringFilter; - /** Filter by the object’s `createPrincipalFunction` field. */ - createPrincipalFunction?: StringFilter; - /** Filter by the object’s `deletePrincipalFunction` field. */ - deletePrincipalFunction?: StringFilter; - /** Filter by the object’s `createOrgPrincipalFunction` field. */ - createOrgPrincipalFunction?: StringFilter; - /** Filter by the object’s `deleteOrgPrincipalFunction` field. */ - deleteOrgPrincipalFunction?: StringFilter; - /** Filter by the object’s `createOrgApiKeyFunction` field. */ - createOrgApiKeyFunction?: StringFilter; - /** Filter by the object’s `revokeOrgApiKeyFunction` field. */ - revokeOrgApiKeyFunction?: StringFilter; + /** Filter by the object’s `privateSchemaId` field. */ + privateSchemaId?: UUIDFilter; + /** Filter by the object’s `publicSchemaName` field. */ + publicSchemaName?: StringFilter; + /** Filter by the object’s `privateSchemaName` field. */ + privateSchemaName?: StringFilter; + /** Filter by the object’s `configTableId` field. */ + configTableId?: UUIDFilter; + /** Filter by the object’s `configTableName` field. */ + configTableName?: StringFilter; /** Filter by the object’s `apiName` field. */ apiName?: StringFilter; + /** Filter by the object’s `privateApiName` field. */ + privateApiName?: StringFilter; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Filter by the object’s `entityTableId` field. */ + entityTableId?: UUIDFilter; + /** Filter by the object’s `policies` field. */ + policies?: JSONFilter; + /** Filter by the object’s `provisions` field. */ + provisions?: JSONFilter; /** Checks for all expressions in this list. */ - and?: PrincipalAuthModuleFilter[]; + and?: InfraConfigModuleFilter[]; /** Checks for any expressions in this list. */ - or?: PrincipalAuthModuleFilter[]; + or?: InfraConfigModuleFilter[]; /** Negates the expression. */ - not?: PrincipalAuthModuleFilter; + not?: InfraConfigModuleFilter; } -export interface ComputeLogModuleFilter { +export interface WebauthnAuthModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; /** Filter by the object’s `schemaId` field. */ schemaId?: UUIDFilter; - /** Filter by the object’s `privateSchemaId` field. */ - privateSchemaId?: UUIDFilter; - /** Filter by the object’s `publicSchemaName` field. */ - publicSchemaName?: StringFilter; - /** Filter by the object’s `privateSchemaName` field. */ - privateSchemaName?: StringFilter; - /** Filter by the object’s `computeLogTableId` field. */ - computeLogTableId?: UUIDFilter; - /** Filter by the object’s `computeLogTableName` field. */ - computeLogTableName?: StringFilter; - /** Filter by the object’s `usageDailyTableId` field. */ - usageDailyTableId?: UUIDFilter; - /** Filter by the object’s `usageDailyTableName` field. */ - usageDailyTableName?: StringFilter; - /** Filter by the object’s `interval` field. */ - interval?: StringFilter; - /** Filter by the object’s `retention` field. */ - retention?: StringFilter; - /** Filter by the object’s `premake` field. */ - premake?: IntFilter; + /** Filter by the object’s `usersTableId` field. */ + usersTableId?: UUIDFilter; + /** Filter by the object’s `credentialsTableId` field. */ + credentialsTableId?: UUIDFilter; + /** Filter by the object’s `sessionsTableId` field. */ + sessionsTableId?: UUIDFilter; + /** Filter by the object’s `sessionCredentialsTableId` field. */ + sessionCredentialsTableId?: UUIDFilter; + /** Filter by the object’s `sessionSecretsTableId` field. */ + sessionSecretsTableId?: UUIDFilter; + /** Filter by the object’s `authSettingsTableId` field. */ + authSettingsTableId?: UUIDFilter; + /** Filter by the object’s `rpId` field. */ + rpId?: StringFilter; + /** Filter by the object’s `rpName` field. */ + rpName?: StringFilter; + /** Filter by the object’s `originAllowlist` field. */ + originAllowlist?: StringListFilter; + /** Filter by the object’s `attestationType` field. */ + attestationType?: StringFilter; + /** Filter by the object’s `requireUserVerification` field. */ + requireUserVerification?: BooleanFilter; + /** Filter by the object’s `residentKey` field. */ + residentKey?: StringFilter; + /** Filter by the object’s `challengeExpiry` field. */ + challengeExpiry?: IntervalFilter; + /** Checks for all expressions in this list. */ + and?: WebauthnAuthModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: WebauthnAuthModuleFilter[]; + /** Negates the expression. */ + not?: WebauthnAuthModuleFilter; +} +export interface PrincipalAuthModuleFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `schemaId` field. */ + schemaId?: UUIDFilter; + /** Filter by the object’s `principalsTableId` field. */ + principalsTableId?: UUIDFilter; + /** Filter by the object’s `principalEntitiesTableId` field. */ + principalEntitiesTableId?: UUIDFilter; + /** Filter by the object’s `principalScopeOverridesTableId` field. */ + principalScopeOverridesTableId?: UUIDFilter; + /** Filter by the object’s `usersTableId` field. */ + usersTableId?: UUIDFilter; + /** Filter by the object’s `sessionsTableId` field. */ + sessionsTableId?: UUIDFilter; + /** Filter by the object’s `sessionCredentialsTableId` field. */ + sessionCredentialsTableId?: UUIDFilter; + /** Filter by the object’s `auditsTableId` field. */ + auditsTableId?: UUIDFilter; + /** Filter by the object’s `principalsTableName` field. */ + principalsTableName?: StringFilter; + /** Filter by the object’s `createPrincipalFunction` field. */ + createPrincipalFunction?: StringFilter; + /** Filter by the object’s `deletePrincipalFunction` field. */ + deletePrincipalFunction?: StringFilter; + /** Filter by the object’s `createOrgPrincipalFunction` field. */ + createOrgPrincipalFunction?: StringFilter; + /** Filter by the object’s `deleteOrgPrincipalFunction` field. */ + deleteOrgPrincipalFunction?: StringFilter; + /** Filter by the object’s `createOrgApiKeyFunction` field. */ + createOrgApiKeyFunction?: StringFilter; + /** Filter by the object’s `revokeOrgApiKeyFunction` field. */ + revokeOrgApiKeyFunction?: StringFilter; + /** Filter by the object’s `apiName` field. */ + apiName?: StringFilter; + /** Checks for all expressions in this list. */ + and?: PrincipalAuthModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: PrincipalAuthModuleFilter[]; + /** Negates the expression. */ + not?: PrincipalAuthModuleFilter; +} +export interface DbPoolFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `presetSlug` field. */ + presetSlug?: StringFilter; + /** Filter by the object’s `presetCommitId` field. */ + presetCommitId?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `errorMessage` field. */ + errorMessage?: StringFilter; + /** Filter by the object’s `expiresAt` field. */ + expiresAt?: DatetimeFilter; + /** Filter by the object’s `claimedBy` field. */ + claimedBy?: UUIDFilter; + /** Filter by the object’s `claimedAt` field. */ + claimedAt?: DatetimeFilter; + /** Filter by the object’s `bootstrapStatus` field. */ + bootstrapStatus?: StringFilter; + /** Filter by the object’s `bootstrapError` field. */ + bootstrapError?: StringFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Checks for all expressions in this list. */ + and?: DbPoolFilter[]; + /** Checks for any expressions in this list. */ + or?: DbPoolFilter[]; + /** Negates the expression. */ + not?: DbPoolFilter; +} +export interface FunctionModuleFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `entityField` field. */ + entityField?: StringFilter; + /** Filter by the object’s `schemaId` field. */ + schemaId?: UUIDFilter; + /** Filter by the object’s `privateSchemaId` field. */ + privateSchemaId?: UUIDFilter; + /** Filter by the object’s `publicSchemaName` field. */ + publicSchemaName?: StringFilter; + /** Filter by the object’s `privateSchemaName` field. */ + privateSchemaName?: StringFilter; + /** Filter by the object’s `definitionsTableId` field. */ + definitionsTableId?: UUIDFilter; + /** Filter by the object’s `definitionsTableName` field. */ + definitionsTableName?: StringFilter; + /** Filter by the object’s `apiName` field. */ + apiName?: StringFilter; + /** Filter by the object’s `privateApiName` field. */ + privateApiName?: StringFilter; /** Filter by the object’s `scope` field. */ scope?: StringFilter; - /** Filter by the object’s `actorFkTableId` field. */ - actorFkTableId?: UUIDFilter; - /** Filter by the object’s `entityFkTableId` field. */ - entityFkTableId?: UUIDFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Filter by the object’s `entityTableId` field. */ + entityTableId?: UUIDFilter; + /** Filter by the object’s `policies` field. */ + policies?: JSONFilter; + /** Filter by the object’s `provisions` field. */ + provisions?: JSONFilter; + /** Filter by the object’s `defaultPermissions` field. */ + defaultPermissions?: StringListFilter; + /** Checks for all expressions in this list. */ + and?: FunctionModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: FunctionModuleFilter[]; + /** Negates the expression. */ + not?: FunctionModuleFilter; +} +export interface MerkleStoreModuleFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `entityField` field. */ + entityField?: StringFilter; + /** Filter by the object’s `schemaId` field. */ + schemaId?: UUIDFilter; + /** Filter by the object’s `privateSchemaId` field. */ + privateSchemaId?: UUIDFilter; + /** Filter by the object’s `publicSchemaName` field. */ + publicSchemaName?: StringFilter; + /** Filter by the object’s `privateSchemaName` field. */ + privateSchemaName?: StringFilter; + /** Filter by the object’s `objectTableId` field. */ + objectTableId?: UUIDFilter; + /** Filter by the object’s `storeTableId` field. */ + storeTableId?: UUIDFilter; + /** Filter by the object’s `commitTableId` field. */ + commitTableId?: UUIDFilter; + /** Filter by the object’s `refTableId` field. */ + refTableId?: UUIDFilter; /** Filter by the object’s `prefix` field. */ prefix?: StringFilter; /** Filter by the object’s `apiName` field. */ apiName?: StringFilter; /** Filter by the object’s `privateApiName` field. */ privateApiName?: StringFilter; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; + /** Filter by the object’s `functionPrefix` field. */ + functionPrefix?: StringFilter; + /** Filter by the object’s `permissionKey` field. */ + permissionKey?: StringFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; /** Checks for all expressions in this list. */ - and?: ComputeLogModuleFilter[]; + and?: MerkleStoreModuleFilter[]; /** Checks for any expressions in this list. */ - or?: ComputeLogModuleFilter[]; + or?: MerkleStoreModuleFilter[]; /** Negates the expression. */ - not?: ComputeLogModuleFilter; + not?: MerkleStoreModuleFilter; + /** Filter by the object’s `graphModules` relation. */ + graphModules?: MerkleStoreModuleToManyGraphModuleFilter; + /** `graphModules` exist. */ + graphModulesExist?: boolean; + /** Filter by the object’s `dbPresetModules` relation. */ + dbPresetModules?: MerkleStoreModuleToManyDbPresetModuleFilter; + /** `dbPresetModules` exist. */ + dbPresetModulesExist?: boolean; } -export interface InferenceLogModuleFilter { +export interface DatabaseProvisionModuleFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseName` field. */ + databaseName?: StringFilter; + /** Filter by the object’s `ownerId` field. */ + ownerId?: UUIDFilter; + /** Filter by the object’s `subdomain` field. */ + subdomain?: StringFilter; + /** Filter by the object’s `domain` field. */ + domain?: StringFilter; + /** Filter by the object’s `modules` field. */ + modules?: JSONFilter; + /** Filter by the object’s `options` field. */ + options?: JSONFilter; + /** Filter by the object’s `bootstrapUser` field. */ + bootstrapUser?: BooleanFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `errorMessage` field. */ + errorMessage?: StringFilter; + /** Filter by the object’s `sourceDatabaseId` field. */ + sourceDatabaseId?: UUIDFilter; + /** Filter by the object’s `bootstrapStatus` field. */ + bootstrapStatus?: StringFilter; + /** Filter by the object’s `bootstrapError` field. */ + bootstrapError?: StringFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `completedAt` field. */ + completedAt?: DatetimeFilter; + /** Filter by the object’s `fulfilledAt` field. */ + fulfilledAt?: DatetimeFilter; + /** Checks for all expressions in this list. */ + and?: DatabaseProvisionModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: DatabaseProvisionModuleFilter[]; + /** Negates the expression. */ + not?: DatabaseProvisionModuleFilter; +} +export interface FunctionInvocationModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; + /** Filter by the object’s `entityField` field. */ + entityField?: StringFilter; /** Filter by the object’s `schemaId` field. */ schemaId?: UUIDFilter; /** Filter by the object’s `privateSchemaId` field. */ @@ -4456,44 +4833,90 @@ export interface InferenceLogModuleFilter { publicSchemaName?: StringFilter; /** Filter by the object’s `privateSchemaName` field. */ privateSchemaName?: StringFilter; - /** Filter by the object’s `inferenceLogTableId` field. */ - inferenceLogTableId?: UUIDFilter; - /** Filter by the object’s `inferenceLogTableName` field. */ - inferenceLogTableName?: StringFilter; - /** Filter by the object’s `usageDailyTableId` field. */ - usageDailyTableId?: UUIDFilter; - /** Filter by the object’s `usageDailyTableName` field. */ - usageDailyTableName?: StringFilter; - /** Filter by the object’s `interval` field. */ - interval?: StringFilter; - /** Filter by the object’s `retention` field. */ - retention?: StringFilter; - /** Filter by the object’s `premake` field. */ - premake?: IntFilter; + /** Filter by the object’s `invocationsTableId` field. */ + invocationsTableId?: UUIDFilter; + /** Filter by the object’s `executionLogsTableId` field. */ + executionLogsTableId?: UUIDFilter; + /** Filter by the object’s `invocationsTableName` field. */ + invocationsTableName?: StringFilter; + /** Filter by the object’s `executionLogsTableName` field. */ + executionLogsTableName?: StringFilter; + /** Filter by the object’s `apiName` field. */ + apiName?: StringFilter; + /** Filter by the object’s `privateApiName` field. */ + privateApiName?: StringFilter; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Filter by the object’s `entityTableId` field. */ + entityTableId?: UUIDFilter; + /** Filter by the object’s `policies` field. */ + policies?: JSONFilter; + /** Filter by the object’s `provisions` field. */ + provisions?: JSONFilter; + /** Filter by the object’s `defaultPermissions` field. */ + defaultPermissions?: StringListFilter; + /** Checks for all expressions in this list. */ + and?: FunctionInvocationModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: FunctionInvocationModuleFilter[]; + /** Negates the expression. */ + not?: FunctionInvocationModuleFilter; +} +export interface InvitesModuleFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `entityField` field. */ + entityField?: StringFilter; + /** Filter by the object’s `schemaId` field. */ + schemaId?: UUIDFilter; + /** Filter by the object’s `privateSchemaId` field. */ + privateSchemaId?: UUIDFilter; + /** Filter by the object’s `publicSchemaName` field. */ + publicSchemaName?: StringFilter; + /** Filter by the object’s `privateSchemaName` field. */ + privateSchemaName?: StringFilter; + /** Filter by the object’s `emailsTableId` field. */ + emailsTableId?: UUIDFilter; + /** Filter by the object’s `usersTableId` field. */ + usersTableId?: UUIDFilter; + /** Filter by the object’s `invitesTableId` field. */ + invitesTableId?: UUIDFilter; + /** Filter by the object’s `claimedInvitesTableId` field. */ + claimedInvitesTableId?: UUIDFilter; + /** Filter by the object’s `invitesTableName` field. */ + invitesTableName?: StringFilter; + /** Filter by the object’s `claimedInvitesTableName` field. */ + claimedInvitesTableName?: StringFilter; + /** Filter by the object’s `submitInviteCodeFunction` field. */ + submitInviteCodeFunction?: StringFilter; /** Filter by the object’s `scope` field. */ scope?: StringFilter; - /** Filter by the object’s `actorFkTableId` field. */ - actorFkTableId?: UUIDFilter; - /** Filter by the object’s `entityFkTableId` field. */ - entityFkTableId?: UUIDFilter; /** Filter by the object’s `prefix` field. */ prefix?: StringFilter; + /** Filter by the object’s `entityTableId` field. */ + entityTableId?: UUIDFilter; /** Filter by the object’s `apiName` field. */ apiName?: StringFilter; /** Filter by the object’s `privateApiName` field. */ privateApiName?: StringFilter; /** Checks for all expressions in this list. */ - and?: InferenceLogModuleFilter[]; + and?: InvitesModuleFilter[]; /** Checks for any expressions in this list. */ - or?: InferenceLogModuleFilter[]; + or?: InvitesModuleFilter[]; /** Negates the expression. */ - not?: InferenceLogModuleFilter; + not?: InvitesModuleFilter; } export interface NamespaceModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; + /** Filter by the object’s `entityField` field. */ + entityField?: StringFilter; /** Filter by the object’s `schemaId` field. */ schemaId?: UUIDFilter; /** Filter by the object’s `privateSchemaId` field. */ @@ -4520,8 +4943,6 @@ export interface NamespaceModuleFilter { prefix?: StringFilter; /** Filter by the object’s `entityTableId` field. */ entityTableId?: UUIDFilter; - /** Filter by the object’s `platformNamespacesTableId` field. */ - platformNamespacesTableId?: UUIDFilter; /** Filter by the object’s `policies` field. */ policies?: JSONFilter; /** Filter by the object’s `provisions` field. */ @@ -4535,7 +4956,7 @@ export interface NamespaceModuleFilter { /** Negates the expression. */ not?: NamespaceModuleFilter; } -export interface ResourceModuleFilter { +export interface PlansModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ @@ -4548,48 +4969,50 @@ export interface ResourceModuleFilter { publicSchemaName?: StringFilter; /** Filter by the object’s `privateSchemaName` field. */ privateSchemaName?: StringFilter; - /** Filter by the object’s `resourcesTableId` field. */ - resourcesTableId?: UUIDFilter; - /** Filter by the object’s `resourceEventsTableId` field. */ - resourceEventsTableId?: UUIDFilter; - /** Filter by the object’s `resourcesTableName` field. */ - resourcesTableName?: StringFilter; - /** Filter by the object’s `resourceEventsTableName` field. */ - resourceEventsTableName?: StringFilter; + /** Filter by the object’s `plansTableId` field. */ + plansTableId?: UUIDFilter; + /** Filter by the object’s `plansTableName` field. */ + plansTableName?: StringFilter; + /** Filter by the object’s `planLimitsTableId` field. */ + planLimitsTableId?: UUIDFilter; + /** Filter by the object’s `planLimitsTableName` field. */ + planLimitsTableName?: StringFilter; + /** Filter by the object’s `planPricingTableId` field. */ + planPricingTableId?: UUIDFilter; + /** Filter by the object’s `planOverridesTableId` field. */ + planOverridesTableId?: UUIDFilter; + /** Filter by the object’s `planMeterLimitsTableId` field. */ + planMeterLimitsTableId?: UUIDFilter; + /** Filter by the object’s `planCapsTableId` field. */ + planCapsTableId?: UUIDFilter; + /** Filter by the object’s `applyPlanFunction` field. */ + applyPlanFunction?: StringFilter; + /** Filter by the object’s `applyPlanAggregateFunction` field. */ + applyPlanAggregateFunction?: StringFilter; + /** Filter by the object’s `applyBillingPlanFunction` field. */ + applyBillingPlanFunction?: StringFilter; + /** Filter by the object’s `applyPlanCapsFunction` field. */ + applyPlanCapsFunction?: StringFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; /** Filter by the object’s `apiName` field. */ apiName?: StringFilter; /** Filter by the object’s `privateApiName` field. */ privateApiName?: StringFilter; - /** Filter by the object’s `scope` field. */ - scope?: StringFilter; - /** Filter by the object’s `prefix` field. */ - prefix?: StringFilter; - /** Filter by the object’s `entityTableId` field. */ - entityTableId?: UUIDFilter; - /** Filter by the object’s `namespaceModuleId` field. */ - namespaceModuleId?: UUIDFilter; - /** Filter by the object’s `policies` field. */ - policies?: JSONFilter; - /** Filter by the object’s `provisions` field. */ - provisions?: JSONFilter; - /** Filter by the object’s `defaultPermissions` field. */ - defaultPermissions?: StringListFilter; /** Checks for all expressions in this list. */ - and?: ResourceModuleFilter[]; + and?: PlansModuleFilter[]; /** Checks for any expressions in this list. */ - or?: ResourceModuleFilter[]; + or?: PlansModuleFilter[]; /** Negates the expression. */ - not?: ResourceModuleFilter; - /** Filter by the object’s `namespaceModule` relation. */ - namespaceModule?: NamespaceModuleFilter; - /** A related `namespaceModule` exists. */ - namespaceModuleExists?: boolean; + not?: PlansModuleFilter; } -export interface StorageLogModuleFilter { +export interface ComputeLogModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; + /** Filter by the object’s `entityField` field. */ + entityField?: StringFilter; /** Filter by the object’s `schemaId` field. */ schemaId?: UUIDFilter; /** Filter by the object’s `privateSchemaId` field. */ @@ -4598,10 +5021,10 @@ export interface StorageLogModuleFilter { publicSchemaName?: StringFilter; /** Filter by the object’s `privateSchemaName` field. */ privateSchemaName?: StringFilter; - /** Filter by the object’s `storageLogTableId` field. */ - storageLogTableId?: UUIDFilter; - /** Filter by the object’s `storageLogTableName` field. */ - storageLogTableName?: StringFilter; + /** Filter by the object’s `computeLogTableId` field. */ + computeLogTableId?: UUIDFilter; + /** Filter by the object’s `computeLogTableName` field. */ + computeLogTableName?: StringFilter; /** Filter by the object’s `usageDailyTableId` field. */ usageDailyTableId?: UUIDFilter; /** Filter by the object’s `usageDailyTableName` field. */ @@ -4625,17 +5048,19 @@ export interface StorageLogModuleFilter { /** Filter by the object’s `privateApiName` field. */ privateApiName?: StringFilter; /** Checks for all expressions in this list. */ - and?: StorageLogModuleFilter[]; + and?: ComputeLogModuleFilter[]; /** Checks for any expressions in this list. */ - or?: StorageLogModuleFilter[]; + or?: ComputeLogModuleFilter[]; /** Negates the expression. */ - not?: StorageLogModuleFilter; + not?: ComputeLogModuleFilter; } -export interface TransferLogModuleFilter { +export interface InferenceLogModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; + /** Filter by the object’s `entityField` field. */ + entityField?: StringFilter; /** Filter by the object’s `schemaId` field. */ schemaId?: UUIDFilter; /** Filter by the object’s `privateSchemaId` field. */ @@ -4644,10 +5069,10 @@ export interface TransferLogModuleFilter { publicSchemaName?: StringFilter; /** Filter by the object’s `privateSchemaName` field. */ privateSchemaName?: StringFilter; - /** Filter by the object’s `transferLogTableId` field. */ - transferLogTableId?: UUIDFilter; - /** Filter by the object’s `transferLogTableName` field. */ - transferLogTableName?: StringFilter; + /** Filter by the object’s `inferenceLogTableId` field. */ + inferenceLogTableId?: UUIDFilter; + /** Filter by the object’s `inferenceLogTableName` field. */ + inferenceLogTableName?: StringFilter; /** Filter by the object’s `usageDailyTableId` field. */ usageDailyTableId?: UUIDFilter; /** Filter by the object’s `usageDailyTableName` field. */ @@ -4671,17 +5096,19 @@ export interface TransferLogModuleFilter { /** Filter by the object’s `privateApiName` field. */ privateApiName?: StringFilter; /** Checks for all expressions in this list. */ - and?: TransferLogModuleFilter[]; + and?: InferenceLogModuleFilter[]; /** Checks for any expressions in this list. */ - or?: TransferLogModuleFilter[]; + or?: InferenceLogModuleFilter[]; /** Negates the expression. */ - not?: TransferLogModuleFilter; + not?: InferenceLogModuleFilter; } -export interface FunctionDeploymentModuleFilter { +export interface StorageLogModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; + /** Filter by the object’s `entityField` field. */ + entityField?: StringFilter; /** Filter by the object’s `schemaId` field. */ schemaId?: UUIDFilter; /** Filter by the object’s `privateSchemaId` field. */ @@ -4690,54 +5117,46 @@ export interface FunctionDeploymentModuleFilter { publicSchemaName?: StringFilter; /** Filter by the object’s `privateSchemaName` field. */ privateSchemaName?: StringFilter; - /** Filter by the object’s `deploymentsTableId` field. */ - deploymentsTableId?: UUIDFilter; - /** Filter by the object’s `deploymentEventsTableId` field. */ - deploymentEventsTableId?: UUIDFilter; - /** Filter by the object’s `deploymentsTableName` field. */ - deploymentsTableName?: StringFilter; - /** Filter by the object’s `deploymentEventsTableName` field. */ - deploymentEventsTableName?: StringFilter; - /** Filter by the object’s `apiName` field. */ - apiName?: StringFilter; - /** Filter by the object’s `privateApiName` field. */ - privateApiName?: StringFilter; + /** Filter by the object’s `storageLogTableId` field. */ + storageLogTableId?: UUIDFilter; + /** Filter by the object’s `storageLogTableName` field. */ + storageLogTableName?: StringFilter; + /** Filter by the object’s `usageDailyTableId` field. */ + usageDailyTableId?: UUIDFilter; + /** Filter by the object’s `usageDailyTableName` field. */ + usageDailyTableName?: StringFilter; + /** Filter by the object’s `interval` field. */ + interval?: StringFilter; + /** Filter by the object’s `retention` field. */ + retention?: StringFilter; + /** Filter by the object’s `premake` field. */ + premake?: IntFilter; /** Filter by the object’s `scope` field. */ scope?: StringFilter; + /** Filter by the object’s `actorFkTableId` field. */ + actorFkTableId?: UUIDFilter; + /** Filter by the object’s `entityFkTableId` field. */ + entityFkTableId?: UUIDFilter; /** Filter by the object’s `prefix` field. */ prefix?: StringFilter; - /** Filter by the object’s `entityTableId` field. */ - entityTableId?: UUIDFilter; - /** Filter by the object’s `functionModuleId` field. */ - functionModuleId?: UUIDFilter; - /** Filter by the object’s `namespaceModuleId` field. */ - namespaceModuleId?: UUIDFilter; - /** Filter by the object’s `policies` field. */ - policies?: JSONFilter; - /** Filter by the object’s `provisions` field. */ - provisions?: JSONFilter; - /** Filter by the object’s `defaultPermissions` field. */ - defaultPermissions?: StringListFilter; + /** Filter by the object’s `apiName` field. */ + apiName?: StringFilter; + /** Filter by the object’s `privateApiName` field. */ + privateApiName?: StringFilter; /** Checks for all expressions in this list. */ - and?: FunctionDeploymentModuleFilter[]; + and?: StorageLogModuleFilter[]; /** Checks for any expressions in this list. */ - or?: FunctionDeploymentModuleFilter[]; + or?: StorageLogModuleFilter[]; /** Negates the expression. */ - not?: FunctionDeploymentModuleFilter; - /** Filter by the object’s `functionModule` relation. */ - functionModule?: FunctionModuleFilter; - /** A related `functionModule` exists. */ - functionModuleExists?: boolean; - /** Filter by the object’s `namespaceModule` relation. */ - namespaceModule?: NamespaceModuleFilter; - /** A related `namespaceModule` exists. */ - namespaceModuleExists?: boolean; + not?: StorageLogModuleFilter; } -export interface PlansModuleFilter { +export interface TransferLogModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; + /** Filter by the object’s `entityField` field. */ + entityField?: StringFilter; /** Filter by the object’s `schemaId` field. */ schemaId?: UUIDFilter; /** Filter by the object’s `privateSchemaId` field. */ @@ -4746,30 +5165,26 @@ export interface PlansModuleFilter { publicSchemaName?: StringFilter; /** Filter by the object’s `privateSchemaName` field. */ privateSchemaName?: StringFilter; - /** Filter by the object’s `plansTableId` field. */ - plansTableId?: UUIDFilter; - /** Filter by the object’s `plansTableName` field. */ - plansTableName?: StringFilter; - /** Filter by the object’s `planLimitsTableId` field. */ - planLimitsTableId?: UUIDFilter; - /** Filter by the object’s `planLimitsTableName` field. */ - planLimitsTableName?: StringFilter; - /** Filter by the object’s `planPricingTableId` field. */ - planPricingTableId?: UUIDFilter; - /** Filter by the object’s `planOverridesTableId` field. */ - planOverridesTableId?: UUIDFilter; - /** Filter by the object’s `planMeterLimitsTableId` field. */ - planMeterLimitsTableId?: UUIDFilter; - /** Filter by the object’s `planCapsTableId` field. */ - planCapsTableId?: UUIDFilter; - /** Filter by the object’s `applyPlanFunction` field. */ - applyPlanFunction?: StringFilter; - /** Filter by the object’s `applyPlanAggregateFunction` field. */ - applyPlanAggregateFunction?: StringFilter; - /** Filter by the object’s `applyBillingPlanFunction` field. */ - applyBillingPlanFunction?: StringFilter; - /** Filter by the object’s `applyPlanCapsFunction` field. */ - applyPlanCapsFunction?: StringFilter; + /** Filter by the object’s `transferLogTableId` field. */ + transferLogTableId?: UUIDFilter; + /** Filter by the object’s `transferLogTableName` field. */ + transferLogTableName?: StringFilter; + /** Filter by the object’s `usageDailyTableId` field. */ + usageDailyTableId?: UUIDFilter; + /** Filter by the object’s `usageDailyTableName` field. */ + usageDailyTableName?: StringFilter; + /** Filter by the object’s `interval` field. */ + interval?: StringFilter; + /** Filter by the object’s `retention` field. */ + retention?: StringFilter; + /** Filter by the object’s `premake` field. */ + premake?: IntFilter; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; + /** Filter by the object’s `actorFkTableId` field. */ + actorFkTableId?: UUIDFilter; + /** Filter by the object’s `entityFkTableId` field. */ + entityFkTableId?: UUIDFilter; /** Filter by the object’s `prefix` field. */ prefix?: StringFilter; /** Filter by the object’s `apiName` field. */ @@ -4777,11 +5192,11 @@ export interface PlansModuleFilter { /** Filter by the object’s `privateApiName` field. */ privateApiName?: StringFilter; /** Checks for all expressions in this list. */ - and?: PlansModuleFilter[]; + and?: TransferLogModuleFilter[]; /** Checks for any expressions in this list. */ - or?: PlansModuleFilter[]; + or?: TransferLogModuleFilter[]; /** Negates the expression. */ - not?: PlansModuleFilter; + not?: TransferLogModuleFilter; } export interface BillingProviderModuleFilter { /** Filter by the object’s `id` field. */ @@ -4829,17 +5244,77 @@ export interface BillingProviderModuleFilter { /** Filter by the object’s `privateApiName` field. */ privateApiName?: StringFilter; /** Checks for all expressions in this list. */ - and?: BillingProviderModuleFilter[]; + and?: BillingProviderModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: BillingProviderModuleFilter[]; + /** Negates the expression. */ + not?: BillingProviderModuleFilter; +} +export interface FunctionDeploymentModuleFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `entityField` field. */ + entityField?: StringFilter; + /** Filter by the object’s `schemaId` field. */ + schemaId?: UUIDFilter; + /** Filter by the object’s `privateSchemaId` field. */ + privateSchemaId?: UUIDFilter; + /** Filter by the object’s `publicSchemaName` field. */ + publicSchemaName?: StringFilter; + /** Filter by the object’s `privateSchemaName` field. */ + privateSchemaName?: StringFilter; + /** Filter by the object’s `deploymentsTableId` field. */ + deploymentsTableId?: UUIDFilter; + /** Filter by the object’s `deploymentEventsTableId` field. */ + deploymentEventsTableId?: UUIDFilter; + /** Filter by the object’s `deploymentsTableName` field. */ + deploymentsTableName?: StringFilter; + /** Filter by the object’s `deploymentEventsTableName` field. */ + deploymentEventsTableName?: StringFilter; + /** Filter by the object’s `apiName` field. */ + apiName?: StringFilter; + /** Filter by the object’s `privateApiName` field. */ + privateApiName?: StringFilter; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Filter by the object’s `entityTableId` field. */ + entityTableId?: UUIDFilter; + /** Filter by the object’s `functionModuleId` field. */ + functionModuleId?: UUIDFilter; + /** Filter by the object’s `namespaceModuleId` field. */ + namespaceModuleId?: UUIDFilter; + /** Filter by the object’s `policies` field. */ + policies?: JSONFilter; + /** Filter by the object’s `provisions` field. */ + provisions?: JSONFilter; + /** Filter by the object’s `defaultPermissions` field. */ + defaultPermissions?: StringListFilter; + /** Checks for all expressions in this list. */ + and?: FunctionDeploymentModuleFilter[]; /** Checks for any expressions in this list. */ - or?: BillingProviderModuleFilter[]; + or?: FunctionDeploymentModuleFilter[]; /** Negates the expression. */ - not?: BillingProviderModuleFilter; + not?: FunctionDeploymentModuleFilter; + /** Filter by the object’s `functionModule` relation. */ + functionModule?: FunctionModuleFilter; + /** A related `functionModule` exists. */ + functionModuleExists?: boolean; + /** Filter by the object’s `namespaceModule` relation. */ + namespaceModule?: NamespaceModuleFilter; + /** A related `namespaceModule` exists. */ + namespaceModuleExists?: boolean; } -export interface DbUsageModuleFilter { +export interface PermissionsModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; + /** Filter by the object’s `entityField` field. */ + entityField?: StringFilter; /** Filter by the object’s `schemaId` field. */ schemaId?: UUIDFilter; /** Filter by the object’s `privateSchemaId` field. */ @@ -4848,50 +5323,50 @@ export interface DbUsageModuleFilter { publicSchemaName?: StringFilter; /** Filter by the object’s `privateSchemaName` field. */ privateSchemaName?: StringFilter; - /** Filter by the object’s `tableStatsLogTableId` field. */ - tableStatsLogTableId?: UUIDFilter; - /** Filter by the object’s `tableStatsLogTableName` field. */ - tableStatsLogTableName?: StringFilter; - /** Filter by the object’s `tableStatsDailyTableId` field. */ - tableStatsDailyTableId?: UUIDFilter; - /** Filter by the object’s `tableStatsDailyTableName` field. */ - tableStatsDailyTableName?: StringFilter; - /** Filter by the object’s `queryStatsLogTableId` field. */ - queryStatsLogTableId?: UUIDFilter; - /** Filter by the object’s `queryStatsLogTableName` field. */ - queryStatsLogTableName?: StringFilter; - /** Filter by the object’s `queryStatsDailyTableId` field. */ - queryStatsDailyTableId?: UUIDFilter; - /** Filter by the object’s `queryStatsDailyTableName` field. */ - queryStatsDailyTableName?: StringFilter; - /** Filter by the object’s `interval` field. */ - interval?: StringFilter; - /** Filter by the object’s `retention` field. */ - retention?: StringFilter; - /** Filter by the object’s `premake` field. */ - premake?: IntFilter; + /** Filter by the object’s `tableId` field. */ + tableId?: UUIDFilter; + /** Filter by the object’s `tableName` field. */ + tableName?: StringFilter; + /** Filter by the object’s `defaultTableId` field. */ + defaultTableId?: UUIDFilter; + /** Filter by the object’s `defaultTableName` field. */ + defaultTableName?: StringFilter; + /** Filter by the object’s `bitlen` field. */ + bitlen?: IntFilter; /** Filter by the object’s `scope` field. */ scope?: StringFilter; /** Filter by the object’s `prefix` field. */ prefix?: StringFilter; - /** Filter by the object’s `defaultPermissions` field. */ - defaultPermissions?: StringListFilter; + /** Filter by the object’s `entityTableId` field. */ + entityTableId?: UUIDFilter; + /** Filter by the object’s `actorTableId` field. */ + actorTableId?: UUIDFilter; + /** Filter by the object’s `getPaddedMask` field. */ + getPaddedMask?: StringFilter; + /** Filter by the object’s `getMask` field. */ + getMask?: StringFilter; + /** Filter by the object’s `getByMask` field. */ + getByMask?: StringFilter; + /** Filter by the object’s `getMaskByName` field. */ + getMaskByName?: StringFilter; /** Filter by the object’s `apiName` field. */ apiName?: StringFilter; /** Filter by the object’s `privateApiName` field. */ privateApiName?: StringFilter; /** Checks for all expressions in this list. */ - and?: DbUsageModuleFilter[]; + and?: PermissionsModuleFilter[]; /** Checks for any expressions in this list. */ - or?: DbUsageModuleFilter[]; + or?: PermissionsModuleFilter[]; /** Negates the expression. */ - not?: DbUsageModuleFilter; + not?: PermissionsModuleFilter; } export interface GraphExecutionModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; + /** Filter by the object’s `entityField` field. */ + entityField?: StringFilter; /** Filter by the object’s `schemaId` field. */ schemaId?: UUIDFilter; /** Filter by the object’s `privateSchemaId` field. */ @@ -4946,6 +5421,8 @@ export interface HierarchyModuleFilter { id?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; + /** Filter by the object’s `entityField` field. */ + entityField?: StringFilter; /** Filter by the object’s `schemaId` field. */ schemaId?: UUIDFilter; /** Filter by the object’s `privateSchemaId` field. */ @@ -4993,61 +5470,13 @@ export interface HierarchyModuleFilter { /** Negates the expression. */ not?: HierarchyModuleFilter; } -export interface PermissionsModuleFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `schemaId` field. */ - schemaId?: UUIDFilter; - /** Filter by the object’s `privateSchemaId` field. */ - privateSchemaId?: UUIDFilter; - /** Filter by the object’s `publicSchemaName` field. */ - publicSchemaName?: StringFilter; - /** Filter by the object’s `privateSchemaName` field. */ - privateSchemaName?: StringFilter; - /** Filter by the object’s `tableId` field. */ - tableId?: UUIDFilter; - /** Filter by the object’s `tableName` field. */ - tableName?: StringFilter; - /** Filter by the object’s `defaultTableId` field. */ - defaultTableId?: UUIDFilter; - /** Filter by the object’s `defaultTableName` field. */ - defaultTableName?: StringFilter; - /** Filter by the object’s `bitlen` field. */ - bitlen?: IntFilter; - /** Filter by the object’s `scope` field. */ - scope?: StringFilter; - /** Filter by the object’s `prefix` field. */ - prefix?: StringFilter; - /** Filter by the object’s `entityTableId` field. */ - entityTableId?: UUIDFilter; - /** Filter by the object’s `actorTableId` field. */ - actorTableId?: UUIDFilter; - /** Filter by the object’s `getPaddedMask` field. */ - getPaddedMask?: StringFilter; - /** Filter by the object’s `getMask` field. */ - getMask?: StringFilter; - /** Filter by the object’s `getByMask` field. */ - getByMask?: StringFilter; - /** Filter by the object’s `getMaskByName` field. */ - getMaskByName?: StringFilter; - /** Filter by the object’s `apiName` field. */ - apiName?: StringFilter; - /** Filter by the object’s `privateApiName` field. */ - privateApiName?: StringFilter; - /** Checks for all expressions in this list. */ - and?: PermissionsModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: PermissionsModuleFilter[]; - /** Negates the expression. */ - not?: PermissionsModuleFilter; -} export interface NotificationsModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; + /** Filter by the object’s `entityField` field. */ + entityField?: StringFilter; /** Filter by the object’s `schemaId` field. */ schemaId?: UUIDFilter; /** Filter by the object’s `privateSchemaId` field. */ @@ -5097,11 +5526,69 @@ export interface NotificationsModuleFilter { /** Negates the expression. */ not?: NotificationsModuleFilter; } +export interface RelationProvisionFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `relationType` field. */ + relationType?: StringFilter; + /** Filter by the object’s `sourceTableId` field. */ + sourceTableId?: UUIDFilter; + /** Filter by the object’s `targetTableId` field. */ + targetTableId?: UUIDFilter; + /** Filter by the object’s `fieldName` field. */ + fieldName?: StringFilter; + /** Filter by the object’s `deleteAction` field. */ + deleteAction?: StringFilter; + /** Filter by the object’s `isRequired` field. */ + isRequired?: BooleanFilter; + /** Filter by the object’s `apiRequired` field. */ + apiRequired?: BooleanFilter; + /** Filter by the object’s `junctionTableId` field. */ + junctionTableId?: UUIDFilter; + /** Filter by the object’s `junctionTableName` field. */ + junctionTableName?: StringFilter; + /** Filter by the object’s `junctionSchemaId` field. */ + junctionSchemaId?: UUIDFilter; + /** Filter by the object’s `sourceFieldName` field. */ + sourceFieldName?: StringFilter; + /** Filter by the object’s `targetFieldName` field. */ + targetFieldName?: StringFilter; + /** Filter by the object’s `useCompositeKey` field. */ + useCompositeKey?: BooleanFilter; + /** Filter by the object’s `createIndex` field. */ + createIndex?: BooleanFilter; + /** Filter by the object’s `exposeInApi` field. */ + exposeInApi?: BooleanFilter; + /** Filter by the object’s `nodes` field. */ + nodes?: JSONFilter; + /** Filter by the object’s `grants` field. */ + grants?: JSONFilter; + /** Filter by the object’s `policies` field. */ + policies?: JSONFilter; + /** Filter by the object’s `outFieldId` field. */ + outFieldId?: UUIDFilter; + /** Filter by the object’s `outJunctionTableId` field. */ + outJunctionTableId?: UUIDFilter; + /** Filter by the object’s `outSourceFieldId` field. */ + outSourceFieldId?: UUIDFilter; + /** Filter by the object’s `outTargetFieldId` field. */ + outTargetFieldId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: RelationProvisionFilter[]; + /** Checks for any expressions in this list. */ + or?: RelationProvisionFilter[]; + /** Negates the expression. */ + not?: RelationProvisionFilter; +} export interface ProfilesModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; + /** Filter by the object’s `entityField` field. */ + entityField?: StringFilter; /** Filter by the object’s `schemaId` field. */ schemaId?: UUIDFilter; /** Filter by the object’s `privateSchemaId` field. */ @@ -5196,6 +5683,10 @@ export interface BillingModuleFilter { meterDefaultsTableName?: StringFilter; /** Filter by the object’s `recordUsageFunction` field. */ recordUsageFunction?: StringFilter; + /** Filter by the object’s `sweepExpiredSubscriptionsFunction` field. */ + sweepExpiredSubscriptionsFunction?: StringFilter; + /** Filter by the object’s `rollupUsageSummaryFunction` field. */ + rollupUsageSummaryFunction?: StringFilter; /** Filter by the object’s `prefix` field. */ prefix?: StringFilter; /** Filter by the object’s `defaultPermissions` field. */ @@ -5211,61 +5702,69 @@ export interface BillingModuleFilter { /** Negates the expression. */ not?: BillingModuleFilter; } -export interface RelationProvisionFilter { +export interface ResourceModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `relationType` field. */ - relationType?: StringFilter; - /** Filter by the object’s `sourceTableId` field. */ - sourceTableId?: UUIDFilter; - /** Filter by the object’s `targetTableId` field. */ - targetTableId?: UUIDFilter; - /** Filter by the object’s `fieldName` field. */ - fieldName?: StringFilter; - /** Filter by the object’s `deleteAction` field. */ - deleteAction?: StringFilter; - /** Filter by the object’s `isRequired` field. */ - isRequired?: BooleanFilter; - /** Filter by the object’s `apiRequired` field. */ - apiRequired?: BooleanFilter; - /** Filter by the object’s `junctionTableId` field. */ - junctionTableId?: UUIDFilter; - /** Filter by the object’s `junctionTableName` field. */ - junctionTableName?: StringFilter; - /** Filter by the object’s `junctionSchemaId` field. */ - junctionSchemaId?: UUIDFilter; - /** Filter by the object’s `sourceFieldName` field. */ - sourceFieldName?: StringFilter; - /** Filter by the object’s `targetFieldName` field. */ - targetFieldName?: StringFilter; - /** Filter by the object’s `useCompositeKey` field. */ - useCompositeKey?: BooleanFilter; - /** Filter by the object’s `createIndex` field. */ - createIndex?: BooleanFilter; - /** Filter by the object’s `exposeInApi` field. */ - exposeInApi?: BooleanFilter; - /** Filter by the object’s `nodes` field. */ - nodes?: JSONFilter; - /** Filter by the object’s `grants` field. */ - grants?: JSONFilter; + /** Filter by the object’s `entityField` field. */ + entityField?: StringFilter; + /** Filter by the object’s `schemaId` field. */ + schemaId?: UUIDFilter; + /** Filter by the object’s `privateSchemaId` field. */ + privateSchemaId?: UUIDFilter; + /** Filter by the object’s `publicSchemaName` field. */ + publicSchemaName?: StringFilter; + /** Filter by the object’s `privateSchemaName` field. */ + privateSchemaName?: StringFilter; + /** Filter by the object’s `resourcesTableId` field. */ + resourcesTableId?: UUIDFilter; + /** Filter by the object’s `resourceEventsTableId` field. */ + resourceEventsTableId?: UUIDFilter; + /** Filter by the object’s `resourceStatusChecksTableId` field. */ + resourceStatusChecksTableId?: UUIDFilter; + /** Filter by the object’s `resourceDefinitionsTableId` field. */ + resourceDefinitionsTableId?: UUIDFilter; + /** Filter by the object’s `resourcesTableName` field. */ + resourcesTableName?: StringFilter; + /** Filter by the object’s `resourceEventsTableName` field. */ + resourceEventsTableName?: StringFilter; + /** Filter by the object’s `resourceStatusChecksTableName` field. */ + resourceStatusChecksTableName?: StringFilter; + /** Filter by the object’s `resourceDefinitionsTableName` field. */ + resourceDefinitionsTableName?: StringFilter; + /** Filter by the object’s `resolvedRequirementsViewName` field. */ + resolvedRequirementsViewName?: StringFilter; + /** Filter by the object’s `requirementsStateViewName` field. */ + requirementsStateViewName?: StringFilter; + /** Filter by the object’s `apiName` field. */ + apiName?: StringFilter; + /** Filter by the object’s `privateApiName` field. */ + privateApiName?: StringFilter; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Filter by the object’s `entityTableId` field. */ + entityTableId?: UUIDFilter; + /** Filter by the object’s `namespaceModuleId` field. */ + namespaceModuleId?: UUIDFilter; /** Filter by the object’s `policies` field. */ policies?: JSONFilter; - /** Filter by the object’s `outFieldId` field. */ - outFieldId?: UUIDFilter; - /** Filter by the object’s `outJunctionTableId` field. */ - outJunctionTableId?: UUIDFilter; - /** Filter by the object’s `outSourceFieldId` field. */ - outSourceFieldId?: UUIDFilter; - /** Filter by the object’s `outTargetFieldId` field. */ - outTargetFieldId?: UUIDFilter; + /** Filter by the object’s `provisions` field. */ + provisions?: JSONFilter; + /** Filter by the object’s `defaultPermissions` field. */ + defaultPermissions?: StringListFilter; /** Checks for all expressions in this list. */ - and?: RelationProvisionFilter[]; + and?: ResourceModuleFilter[]; /** Checks for any expressions in this list. */ - or?: RelationProvisionFilter[]; + or?: ResourceModuleFilter[]; /** Negates the expression. */ - not?: RelationProvisionFilter; + not?: ResourceModuleFilter; + /** Filter by the object’s `namespaceModule` relation. */ + namespaceModule?: NamespaceModuleFilter; + /** A related `namespaceModule` exists. */ + namespaceModuleExists?: boolean; } export interface UserAuthModuleFilter { /** Filter by the object’s `id` field. */ @@ -5331,11 +5830,75 @@ export interface UserAuthModuleFilter { /** Negates the expression. */ not?: UserAuthModuleFilter; } +export interface DbUsageModuleFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `entityField` field. */ + entityField?: StringFilter; + /** Filter by the object’s `schemaId` field. */ + schemaId?: UUIDFilter; + /** Filter by the object’s `privateSchemaId` field. */ + privateSchemaId?: UUIDFilter; + /** Filter by the object’s `publicSchemaName` field. */ + publicSchemaName?: StringFilter; + /** Filter by the object’s `privateSchemaName` field. */ + privateSchemaName?: StringFilter; + /** Filter by the object’s `tableStatsLogTableId` field. */ + tableStatsLogTableId?: UUIDFilter; + /** Filter by the object’s `tableStatsLogTableName` field. */ + tableStatsLogTableName?: StringFilter; + /** Filter by the object’s `tableStatsDailyTableId` field. */ + tableStatsDailyTableId?: UUIDFilter; + /** Filter by the object’s `tableStatsDailyTableName` field. */ + tableStatsDailyTableName?: StringFilter; + /** Filter by the object’s `queryStatsLogTableId` field. */ + queryStatsLogTableId?: UUIDFilter; + /** Filter by the object’s `queryStatsLogTableName` field. */ + queryStatsLogTableName?: StringFilter; + /** Filter by the object’s `queryStatsDailyTableId` field. */ + queryStatsDailyTableId?: UUIDFilter; + /** Filter by the object’s `queryStatsDailyTableName` field. */ + queryStatsDailyTableName?: StringFilter; + /** Filter by the object’s `collectDbTableStatsFunction` field. */ + collectDbTableStatsFunction?: StringFilter; + /** Filter by the object’s `collectDbQueryStatsFunction` field. */ + collectDbQueryStatsFunction?: StringFilter; + /** Filter by the object’s `rollupDbTableStatsDailyFunction` field. */ + rollupDbTableStatsDailyFunction?: StringFilter; + /** Filter by the object’s `rollupDbQueryStatsDailyFunction` field. */ + rollupDbQueryStatsDailyFunction?: StringFilter; + /** Filter by the object’s `interval` field. */ + interval?: StringFilter; + /** Filter by the object’s `retention` field. */ + retention?: StringFilter; + /** Filter by the object’s `premake` field. */ + premake?: IntFilter; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Filter by the object’s `defaultPermissions` field. */ + defaultPermissions?: StringListFilter; + /** Filter by the object’s `apiName` field. */ + apiName?: StringFilter; + /** Filter by the object’s `privateApiName` field. */ + privateApiName?: StringFilter; + /** Checks for all expressions in this list. */ + and?: DbUsageModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: DbUsageModuleFilter[]; + /** Negates the expression. */ + not?: DbUsageModuleFilter; +} export interface AgentModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; + /** Filter by the object’s `entityField` field. */ + entityField?: StringFilter; /** Filter by the object’s `schemaId` field. */ schemaId?: UUIDFilter; /** Filter by the object’s `privateSchemaId` field. */ @@ -5414,6 +5977,8 @@ export interface LimitsModuleFilter { id?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; + /** Filter by the object’s `entityField` field. */ + entityField?: StringFilter; /** Filter by the object’s `schemaId` field. */ schemaId?: UUIDFilter; /** Filter by the object’s `privateSchemaId` field. */ @@ -5489,96 +6054,6 @@ export interface LimitsModuleFilter { /** Negates the expression. */ not?: LimitsModuleFilter; } -export interface MembershipsModuleFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `schemaId` field. */ - schemaId?: UUIDFilter; - /** Filter by the object’s `privateSchemaId` field. */ - privateSchemaId?: UUIDFilter; - /** Filter by the object’s `publicSchemaName` field. */ - publicSchemaName?: StringFilter; - /** Filter by the object’s `privateSchemaName` field. */ - privateSchemaName?: StringFilter; - /** Filter by the object’s `membershipsTableId` field. */ - membershipsTableId?: UUIDFilter; - /** Filter by the object’s `membershipsTableName` field. */ - membershipsTableName?: StringFilter; - /** Filter by the object’s `membersTableId` field. */ - membersTableId?: UUIDFilter; - /** Filter by the object’s `membersTableName` field. */ - membersTableName?: StringFilter; - /** Filter by the object’s `membershipDefaultsTableId` field. */ - membershipDefaultsTableId?: UUIDFilter; - /** Filter by the object’s `membershipDefaultsTableName` field. */ - membershipDefaultsTableName?: StringFilter; - /** Filter by the object’s `membershipSettingsTableId` field. */ - membershipSettingsTableId?: UUIDFilter; - /** Filter by the object’s `membershipSettingsTableName` field. */ - membershipSettingsTableName?: StringFilter; - /** Filter by the object’s `grantsTableId` field. */ - grantsTableId?: UUIDFilter; - /** Filter by the object’s `grantsTableName` field. */ - grantsTableName?: StringFilter; - /** Filter by the object’s `actorTableId` field. */ - actorTableId?: UUIDFilter; - /** Filter by the object’s `limitsTableId` field. */ - limitsTableId?: UUIDFilter; - /** Filter by the object’s `defaultLimitsTableId` field. */ - defaultLimitsTableId?: UUIDFilter; - /** Filter by the object’s `permissionsTableId` field. */ - permissionsTableId?: UUIDFilter; - /** Filter by the object’s `defaultPermissionsTableId` field. */ - defaultPermissionsTableId?: UUIDFilter; - /** Filter by the object’s `sprtTableId` field. */ - sprtTableId?: UUIDFilter; - /** Filter by the object’s `adminGrantsTableId` field. */ - adminGrantsTableId?: UUIDFilter; - /** Filter by the object’s `adminGrantsTableName` field. */ - adminGrantsTableName?: StringFilter; - /** Filter by the object’s `ownerGrantsTableId` field. */ - ownerGrantsTableId?: UUIDFilter; - /** Filter by the object’s `ownerGrantsTableName` field. */ - ownerGrantsTableName?: StringFilter; - /** Filter by the object’s `scope` field. */ - scope?: StringFilter; - /** Filter by the object’s `prefix` field. */ - prefix?: StringFilter; - /** Filter by the object’s `entityTableId` field. */ - entityTableId?: UUIDFilter; - /** Filter by the object’s `entityTableOwnerId` field. */ - entityTableOwnerId?: UUIDFilter; - /** Filter by the object’s `getOrgFn` field. */ - getOrgFn?: StringFilter; - /** Filter by the object’s `actorMaskCheck` field. */ - actorMaskCheck?: StringFilter; - /** Filter by the object’s `actorPermCheck` field. */ - actorPermCheck?: StringFilter; - /** Filter by the object’s `entityIdsByMask` field. */ - entityIdsByMask?: StringFilter; - /** Filter by the object’s `entityIdsByPerm` field. */ - entityIdsByPerm?: StringFilter; - /** Filter by the object’s `entityIdsFunction` field. */ - entityIdsFunction?: StringFilter; - /** Filter by the object’s `memberProfilesTableId` field. */ - memberProfilesTableId?: UUIDFilter; - /** Filter by the object’s `permissionDefaultPermissionsTableId` field. */ - permissionDefaultPermissionsTableId?: UUIDFilter; - /** Filter by the object’s `permissionDefaultGrantsTableId` field. */ - permissionDefaultGrantsTableId?: UUIDFilter; - /** Filter by the object’s `apiName` field. */ - apiName?: StringFilter; - /** Filter by the object’s `privateApiName` field. */ - privateApiName?: StringFilter; - /** Checks for all expressions in this list. */ - and?: MembershipsModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: MembershipsModuleFilter[]; - /** Negates the expression. */ - not?: MembershipsModuleFilter; -} export interface EntityTypeProvisionFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; @@ -5652,8 +6127,6 @@ export interface EntityTypeProvisionFilter { outInvocationsTableId?: UUIDFilter; /** Filter by the object’s `outExecutionLogsTableId` field. */ outExecutionLogsTableId?: UUIDFilter; - /** Filter by the object’s `outSecretDefinitionsTableId` field. */ - outSecretDefinitionsTableId?: UUIDFilter; /** Filter by the object’s `outGraphModuleId` field. */ outGraphModuleId?: UUIDFilter; /** Filter by the object’s `outGraphsTableId` field. */ @@ -5698,6 +6171,8 @@ export interface StorageModuleFilter { provisions?: JSONFilter; /** Filter by the object’s `entityTableId` field. */ entityTableId?: UUIDFilter; + /** Filter by the object’s `entityField` field. */ + entityField?: StringFilter; /** Filter by the object’s `endpoint` field. */ endpoint?: StringFilter; /** Filter by the object’s `publicUrlPrefix` field. */ @@ -5747,17 +6222,111 @@ export interface StorageModuleFilter { /** Filter by the object’s `privateApiName` field. */ privateApiName?: StringFilter; /** Checks for all expressions in this list. */ - and?: StorageModuleFilter[]; + and?: StorageModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: StorageModuleFilter[]; + /** Negates the expression. */ + not?: StorageModuleFilter; +} +export interface MembershipsModuleFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `entityField` field. */ + entityField?: StringFilter; + /** Filter by the object’s `schemaId` field. */ + schemaId?: UUIDFilter; + /** Filter by the object’s `privateSchemaId` field. */ + privateSchemaId?: UUIDFilter; + /** Filter by the object’s `publicSchemaName` field. */ + publicSchemaName?: StringFilter; + /** Filter by the object’s `privateSchemaName` field. */ + privateSchemaName?: StringFilter; + /** Filter by the object’s `membershipsTableId` field. */ + membershipsTableId?: UUIDFilter; + /** Filter by the object’s `membershipsTableName` field. */ + membershipsTableName?: StringFilter; + /** Filter by the object’s `membersTableId` field. */ + membersTableId?: UUIDFilter; + /** Filter by the object’s `membersTableName` field. */ + membersTableName?: StringFilter; + /** Filter by the object’s `membershipDefaultsTableId` field. */ + membershipDefaultsTableId?: UUIDFilter; + /** Filter by the object’s `membershipDefaultsTableName` field. */ + membershipDefaultsTableName?: StringFilter; + /** Filter by the object’s `membershipSettingsTableId` field. */ + membershipSettingsTableId?: UUIDFilter; + /** Filter by the object’s `membershipSettingsTableName` field. */ + membershipSettingsTableName?: StringFilter; + /** Filter by the object’s `grantsTableId` field. */ + grantsTableId?: UUIDFilter; + /** Filter by the object’s `grantsTableName` field. */ + grantsTableName?: StringFilter; + /** Filter by the object’s `actorTableId` field. */ + actorTableId?: UUIDFilter; + /** Filter by the object’s `limitsTableId` field. */ + limitsTableId?: UUIDFilter; + /** Filter by the object’s `defaultLimitsTableId` field. */ + defaultLimitsTableId?: UUIDFilter; + /** Filter by the object’s `permissionsTableId` field. */ + permissionsTableId?: UUIDFilter; + /** Filter by the object’s `defaultPermissionsTableId` field. */ + defaultPermissionsTableId?: UUIDFilter; + /** Filter by the object’s `sprtTableId` field. */ + sprtTableId?: UUIDFilter; + /** Filter by the object’s `adminGrantsTableId` field. */ + adminGrantsTableId?: UUIDFilter; + /** Filter by the object’s `adminGrantsTableName` field. */ + adminGrantsTableName?: StringFilter; + /** Filter by the object’s `ownerGrantsTableId` field. */ + ownerGrantsTableId?: UUIDFilter; + /** Filter by the object’s `ownerGrantsTableName` field. */ + ownerGrantsTableName?: StringFilter; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Filter by the object’s `entityTableId` field. */ + entityTableId?: UUIDFilter; + /** Filter by the object’s `entityTableOwnerId` field. */ + entityTableOwnerId?: UUIDFilter; + /** Filter by the object’s `getOrgFn` field. */ + getOrgFn?: StringFilter; + /** Filter by the object’s `actorMaskCheck` field. */ + actorMaskCheck?: StringFilter; + /** Filter by the object’s `actorPermCheck` field. */ + actorPermCheck?: StringFilter; + /** Filter by the object’s `entityIdsByMask` field. */ + entityIdsByMask?: StringFilter; + /** Filter by the object’s `entityIdsByPerm` field. */ + entityIdsByPerm?: StringFilter; + /** Filter by the object’s `entityIdsFunction` field. */ + entityIdsFunction?: StringFilter; + /** Filter by the object’s `memberProfilesTableId` field. */ + memberProfilesTableId?: UUIDFilter; + /** Filter by the object’s `permissionDefaultPermissionsTableId` field. */ + permissionDefaultPermissionsTableId?: UUIDFilter; + /** Filter by the object’s `permissionDefaultGrantsTableId` field. */ + permissionDefaultGrantsTableId?: UUIDFilter; + /** Filter by the object’s `apiName` field. */ + apiName?: StringFilter; + /** Filter by the object’s `privateApiName` field. */ + privateApiName?: StringFilter; + /** Checks for all expressions in this list. */ + and?: MembershipsModuleFilter[]; /** Checks for any expressions in this list. */ - or?: StorageModuleFilter[]; + or?: MembershipsModuleFilter[]; /** Negates the expression. */ - not?: StorageModuleFilter; + not?: MembershipsModuleFilter; } export interface EventsModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; + /** Filter by the object’s `entityField` field. */ + entityField?: StringFilter; /** Filter by the object’s `schemaId` field. */ schemaId?: UUIDFilter; /** Filter by the object’s `privateSchemaId` field. */ @@ -5810,8 +6379,6 @@ export interface EventsModuleFilter { upsertAggregate?: StringFilter; /** Filter by the object’s `tgUpdateAggregates` field. */ tgUpdateAggregates?: StringFilter; - /** Filter by the object’s `pruneEvents` field. */ - pruneEvents?: StringFilter; /** Filter by the object’s `stepsRequired` field. */ stepsRequired?: StringFilter; /** Filter by the object’s `levelAchieved` field. */ @@ -5872,20 +6439,6 @@ export type MembershipTypesModuleOrderBy = | 'TABLE_ID_DESC' | 'TABLE_NAME_ASC' | 'TABLE_NAME_DESC'; -export type UserStateModuleOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC' - | 'TABLE_ID_ASC' - | 'TABLE_ID_DESC' - | 'TABLE_NAME_ASC' - | 'TABLE_NAME_DESC'; export type SessionSecretsModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -5902,24 +6455,6 @@ export type SessionSecretsModuleOrderBy = | 'TABLE_NAME_DESC' | 'SESSIONS_TABLE_ID_ASC' | 'SESSIONS_TABLE_ID_DESC'; -export type ConfigSecretsOrgModuleOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC' - | 'TABLE_ID_ASC' - | 'TABLE_ID_DESC' - | 'TABLE_NAME_ASC' - | 'TABLE_NAME_DESC' - | 'API_NAME_ASC' - | 'API_NAME_DESC' - | 'PRIVATE_API_NAME_ASC' - | 'PRIVATE_API_NAME_DESC'; export type DevicesModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -5956,7 +6491,7 @@ export type I18NModuleOrderBy = | 'API_NAME_DESC' | 'PRIVATE_API_NAME_ASC' | 'PRIVATE_API_NAME_DESC'; -export type UserCredentialsModuleOrderBy = +export type UserSettingsModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -5968,13 +6503,13 @@ export type UserCredentialsModuleOrderBy = | 'SCHEMA_ID_DESC' | 'TABLE_ID_ASC' | 'TABLE_ID_DESC' + | 'OWNER_TABLE_ID_ASC' + | 'OWNER_TABLE_ID_DESC' | 'TABLE_NAME_ASC' | 'TABLE_NAME_DESC' | 'API_NAME_ASC' - | 'API_NAME_DESC' - | 'PRIVATE_API_NAME_ASC' - | 'PRIVATE_API_NAME_DESC'; -export type UserSettingsModuleOrderBy = + | 'API_NAME_DESC'; +export type UserStateModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -5982,17 +6517,15 @@ export type UserSettingsModuleOrderBy = | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' + | 'ENTITY_FIELD_ASC' + | 'ENTITY_FIELD_DESC' | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' | 'TABLE_ID_ASC' | 'TABLE_ID_DESC' - | 'OWNER_TABLE_ID_ASC' - | 'OWNER_TABLE_ID_DESC' | 'TABLE_NAME_ASC' - | 'TABLE_NAME_DESC' - | 'API_NAME_ASC' - | 'API_NAME_DESC'; -export type ConfigSecretsUserModuleOrderBy = + | 'TABLE_NAME_DESC'; +export type UserCredentialsModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -6000,16 +6533,14 @@ export type ConfigSecretsUserModuleOrderBy = | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' + | 'ENTITY_FIELD_ASC' + | 'ENTITY_FIELD_DESC' | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' | 'TABLE_ID_ASC' | 'TABLE_ID_DESC' | 'TABLE_NAME_ASC' | 'TABLE_NAME_DESC' - | 'CONFIG_DEFINITIONS_TABLE_ID_ASC' - | 'CONFIG_DEFINITIONS_TABLE_ID_DESC' - | 'API_NAME_ASC' - | 'API_NAME_DESC' | 'PRIVATE_API_NAME_ASC' | 'PRIVATE_API_NAME_DESC'; export type ConnectedAccountsModuleOrderBy = @@ -6144,6 +6675,26 @@ export type WebauthnCredentialsModuleOrderBy = | 'API_NAME_DESC' | 'PRIVATE_API_NAME_ASC' | 'PRIVATE_API_NAME_DESC'; +export type ConfigSecretsUserModuleOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'ENTITY_FIELD_ASC' + | 'ENTITY_FIELD_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'TABLE_ID_ASC' + | 'TABLE_ID_DESC' + | 'TABLE_NAME_ASC' + | 'TABLE_NAME_DESC' + | 'API_NAME_ASC' + | 'API_NAME_DESC' + | 'PRIVATE_API_NAME_ASC' + | 'PRIVATE_API_NAME_DESC'; export type CryptoAddressesModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -6196,36 +6747,6 @@ export type DenormalizedTableFieldOrderBy = | 'FUNC_NAME_DESC' | 'FUNC_ORDER_ASC' | 'FUNC_ORDER_DESC'; -export type IdentityProvidersModuleOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC' - | 'PRIVATE_SCHEMA_ID_ASC' - | 'PRIVATE_SCHEMA_ID_DESC' - | 'PUBLIC_SCHEMA_NAME_ASC' - | 'PUBLIC_SCHEMA_NAME_DESC' - | 'PRIVATE_SCHEMA_NAME_ASC' - | 'PRIVATE_SCHEMA_NAME_DESC' - | 'TABLE_ID_ASC' - | 'TABLE_ID_DESC' - | 'TABLE_NAME_ASC' - | 'TABLE_NAME_DESC' - | 'API_NAME_ASC' - | 'API_NAME_DESC' - | 'PRIVATE_API_NAME_ASC' - | 'PRIVATE_API_NAME_DESC' - | 'SCOPE_ASC' - | 'SCOPE_DESC' - | 'PREFIX_ASC' - | 'PREFIX_DESC' - | 'ENTITY_TABLE_ID_ASC' - | 'ENTITY_TABLE_ID_DESC'; export type RlsModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -6438,39 +6959,39 @@ export type SecureTableProvisionOrderBy = | 'POLICIES_DESC' | 'OUT_FIELDS_ASC' | 'OUT_FIELDS_DESC'; -export type DatabaseProvisionModuleOrderBy = +export type IdentityProvidersModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' - | 'DATABASE_NAME_ASC' - | 'DATABASE_NAME_DESC' - | 'OWNER_ID_ASC' - | 'OWNER_ID_DESC' - | 'SUBDOMAIN_ASC' - | 'SUBDOMAIN_DESC' - | 'DOMAIN_ASC' - | 'DOMAIN_DESC' - | 'MODULES_ASC' - | 'MODULES_DESC' - | 'OPTIONS_ASC' - | 'OPTIONS_DESC' - | 'BOOTSTRAP_USER_ASC' - | 'BOOTSTRAP_USER_DESC' - | 'STATUS_ASC' - | 'STATUS_DESC' - | 'ERROR_MESSAGE_ASC' - | 'ERROR_MESSAGE_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'COMPLETED_AT_ASC' - | 'COMPLETED_AT_DESC'; -export type ConfigSecretsModuleOrderBy = + | 'ENTITY_FIELD_ASC' + | 'ENTITY_FIELD_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'PRIVATE_SCHEMA_ID_ASC' + | 'PRIVATE_SCHEMA_ID_DESC' + | 'PUBLIC_SCHEMA_NAME_ASC' + | 'PUBLIC_SCHEMA_NAME_DESC' + | 'PRIVATE_SCHEMA_NAME_ASC' + | 'PRIVATE_SCHEMA_NAME_DESC' + | 'TABLE_ID_ASC' + | 'TABLE_ID_DESC' + | 'TABLE_NAME_ASC' + | 'TABLE_NAME_DESC' + | 'API_NAME_ASC' + | 'API_NAME_DESC' + | 'PRIVATE_API_NAME_ASC' + | 'PRIVATE_API_NAME_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC' + | 'ENTITY_TABLE_ID_ASC' + | 'ENTITY_TABLE_ID_DESC'; +export type IntegrationProvidersModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -6478,6 +6999,8 @@ export type ConfigSecretsModuleOrderBy = | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' + | 'ENTITY_FIELD_ASC' + | 'ENTITY_FIELD_DESC' | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' | 'PRIVATE_SCHEMA_ID_ASC' @@ -6488,8 +7011,6 @@ export type ConfigSecretsModuleOrderBy = | 'PRIVATE_SCHEMA_NAME_DESC' | 'TABLE_ID_ASC' | 'TABLE_ID_DESC' - | 'CONFIG_DEFINITIONS_TABLE_ID_ASC' - | 'CONFIG_DEFINITIONS_TABLE_ID_DESC' | 'TABLE_NAME_ASC' | 'TABLE_NAME_DESC' | 'API_NAME_ASC' @@ -6501,14 +7022,136 @@ export type ConfigSecretsModuleOrderBy = | 'PREFIX_ASC' | 'PREFIX_DESC' | 'ENTITY_TABLE_ID_ASC' + | 'ENTITY_TABLE_ID_DESC'; +export type DbPoolConfigOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'PRESET_SLUG_ASC' + | 'PRESET_SLUG_DESC' + | 'DOMAIN_ASC' + | 'DOMAIN_DESC' + | 'POOL_OWNER_ID_ASC' + | 'POOL_OWNER_ID_DESC' + | 'MIN_ASC' + | 'MIN_DESC' + | 'MAX_ASC' + | 'MAX_DESC' + | 'WARM_TTL_ASC' + | 'WARM_TTL_DESC' + | 'ENABLED_ASC' + | 'ENABLED_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +export type RealtimeModuleOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'PRIVATE_SCHEMA_ID_ASC' + | 'PRIVATE_SCHEMA_ID_DESC' + | 'SUBSCRIPTIONS_SCHEMA_ID_ASC' + | 'SUBSCRIPTIONS_SCHEMA_ID_DESC' + | 'CHANGE_LOG_TABLE_ID_ASC' + | 'CHANGE_LOG_TABLE_ID_DESC' + | 'LISTENER_NODE_TABLE_ID_ASC' + | 'LISTENER_NODE_TABLE_ID_DESC' + | 'SOURCE_REGISTRY_TABLE_ID_ASC' + | 'SOURCE_REGISTRY_TABLE_ID_DESC' + | 'RETENTION_HOURS_ASC' + | 'RETENTION_HOURS_DESC' + | 'PREMAKE_ASC' + | 'PREMAKE_DESC' + | 'INTERVAL_ASC' + | 'INTERVAL_DESC' + | 'NOTIFY_CHANNEL_ASC' + | 'NOTIFY_CHANNEL_DESC' + | 'API_NAME_ASC' + | 'API_NAME_DESC' + | 'PRIVATE_API_NAME_ASC' + | 'PRIVATE_API_NAME_DESC'; +export type InfraSecretsModuleOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'PRIVATE_SCHEMA_ID_ASC' + | 'PRIVATE_SCHEMA_ID_DESC' + | 'PUBLIC_SCHEMA_NAME_ASC' + | 'PUBLIC_SCHEMA_NAME_DESC' + | 'PRIVATE_SCHEMA_NAME_ASC' + | 'PRIVATE_SCHEMA_NAME_DESC' + | 'SECRETS_TABLE_ID_ASC' + | 'SECRETS_TABLE_ID_DESC' + | 'SECRETS_TABLE_NAME_ASC' + | 'SECRETS_TABLE_NAME_DESC' + | 'API_NAME_ASC' + | 'API_NAME_DESC' + | 'PRIVATE_API_NAME_ASC' + | 'PRIVATE_API_NAME_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC' + | 'ENTITY_TABLE_ID_ASC' | 'ENTITY_TABLE_ID_DESC' + | 'ENTITY_FIELD_ASC' + | 'ENTITY_FIELD_DESC' | 'POLICIES_ASC' | 'POLICIES_DESC' | 'PROVISIONS_ASC' - | 'PROVISIONS_DESC' - | 'HAS_CONFIG_ASC' - | 'HAS_CONFIG_DESC'; -export type GraphModuleOrderBy = + | 'PROVISIONS_DESC'; +export type InternalSecretsModuleOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'PRIVATE_SCHEMA_ID_ASC' + | 'PRIVATE_SCHEMA_ID_DESC' + | 'PUBLIC_SCHEMA_NAME_ASC' + | 'PUBLIC_SCHEMA_NAME_DESC' + | 'PRIVATE_SCHEMA_NAME_ASC' + | 'PRIVATE_SCHEMA_NAME_DESC' + | 'INTERNAL_SECRETS_TABLE_ID_ASC' + | 'INTERNAL_SECRETS_TABLE_ID_DESC' + | 'INTERNAL_SECRETS_TABLE_NAME_ASC' + | 'INTERNAL_SECRETS_TABLE_NAME_DESC' + | 'API_NAME_ASC' + | 'API_NAME_DESC' + | 'PRIVATE_API_NAME_ASC' + | 'PRIVATE_API_NAME_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC' + | 'ENTITY_TABLE_ID_ASC' + | 'ENTITY_TABLE_ID_DESC' + | 'ENTITY_FIELD_ASC' + | 'ENTITY_FIELD_DESC' + | 'POLICIES_ASC' + | 'POLICIES_DESC' + | 'PROVISIONS_ASC' + | 'PROVISIONS_DESC'; +export type DbPresetModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -6530,8 +7173,10 @@ export type GraphModuleOrderBy = | 'PREFIX_DESC' | 'MERKLE_STORE_MODULE_ID_ASC' | 'MERKLE_STORE_MODULE_ID_DESC' - | 'GRAPHS_TABLE_ID_ASC' - | 'GRAPHS_TABLE_ID_DESC' + | 'DB_PRESETS_TABLE_ID_ASC' + | 'DB_PRESETS_TABLE_ID_DESC' + | 'STORE_NAME_ASC' + | 'STORE_NAME_DESC' | 'API_NAME_ASC' | 'API_NAME_DESC' | 'PRIVATE_API_NAME_ASC' @@ -6542,11 +7187,9 @@ export type GraphModuleOrderBy = | 'POLICIES_DESC' | 'PROVISIONS_ASC' | 'PROVISIONS_DESC' - | 'DEFAULT_PERMISSIONS_ASC' - | 'DEFAULT_PERMISSIONS_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC'; -export type MerkleStoreModuleOrderBy = +export type GraphModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -6554,34 +7197,36 @@ export type MerkleStoreModuleOrderBy = | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' - | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC' + | 'ENTITY_FIELD_ASC' + | 'ENTITY_FIELD_DESC' + | 'PUBLIC_SCHEMA_ID_ASC' + | 'PUBLIC_SCHEMA_ID_DESC' | 'PRIVATE_SCHEMA_ID_ASC' | 'PRIVATE_SCHEMA_ID_DESC' | 'PUBLIC_SCHEMA_NAME_ASC' | 'PUBLIC_SCHEMA_NAME_DESC' | 'PRIVATE_SCHEMA_NAME_ASC' | 'PRIVATE_SCHEMA_NAME_DESC' - | 'OBJECT_TABLE_ID_ASC' - | 'OBJECT_TABLE_ID_DESC' - | 'STORE_TABLE_ID_ASC' - | 'STORE_TABLE_ID_DESC' - | 'COMMIT_TABLE_ID_ASC' - | 'COMMIT_TABLE_ID_DESC' - | 'REF_TABLE_ID_ASC' - | 'REF_TABLE_ID_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' | 'PREFIX_ASC' | 'PREFIX_DESC' + | 'MERKLE_STORE_MODULE_ID_ASC' + | 'MERKLE_STORE_MODULE_ID_DESC' + | 'GRAPHS_TABLE_ID_ASC' + | 'GRAPHS_TABLE_ID_DESC' | 'API_NAME_ASC' | 'API_NAME_DESC' | 'PRIVATE_API_NAME_ASC' | 'PRIVATE_API_NAME_DESC' - | 'SCOPE_ASC' - | 'SCOPE_DESC' - | 'FUNCTION_PREFIX_ASC' - | 'FUNCTION_PREFIX_DESC' - | 'PERMISSION_KEY_ASC' - | 'PERMISSION_KEY_DESC' + | 'ENTITY_TABLE_ID_ASC' + | 'ENTITY_TABLE_ID_DESC' + | 'POLICIES_ASC' + | 'POLICIES_DESC' + | 'PROVISIONS_ASC' + | 'PROVISIONS_DESC' + | 'DEFAULT_PERMISSIONS_ASC' + | 'DEFAULT_PERMISSIONS_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC'; export type RateLimitMetersModuleOrderBy = @@ -6622,7 +7267,7 @@ export type RateLimitMetersModuleOrderBy = | 'API_NAME_DESC' | 'PRIVATE_API_NAME_ASC' | 'PRIVATE_API_NAME_DESC'; -export type RealtimeModuleOrderBy = +export type InfraConfigModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -6630,30 +7275,34 @@ export type RealtimeModuleOrderBy = | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' + | 'ENTITY_FIELD_ASC' + | 'ENTITY_FIELD_DESC' | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' | 'PRIVATE_SCHEMA_ID_ASC' | 'PRIVATE_SCHEMA_ID_DESC' - | 'SUBSCRIPTIONS_SCHEMA_ID_ASC' - | 'SUBSCRIPTIONS_SCHEMA_ID_DESC' - | 'CHANGE_LOG_TABLE_ID_ASC' - | 'CHANGE_LOG_TABLE_ID_DESC' - | 'LISTENER_NODE_TABLE_ID_ASC' - | 'LISTENER_NODE_TABLE_ID_DESC' - | 'SOURCE_REGISTRY_TABLE_ID_ASC' - | 'SOURCE_REGISTRY_TABLE_ID_DESC' - | 'RETENTION_HOURS_ASC' - | 'RETENTION_HOURS_DESC' - | 'PREMAKE_ASC' - | 'PREMAKE_DESC' - | 'INTERVAL_ASC' - | 'INTERVAL_DESC' - | 'NOTIFY_CHANNEL_ASC' - | 'NOTIFY_CHANNEL_DESC' + | 'PUBLIC_SCHEMA_NAME_ASC' + | 'PUBLIC_SCHEMA_NAME_DESC' + | 'PRIVATE_SCHEMA_NAME_ASC' + | 'PRIVATE_SCHEMA_NAME_DESC' + | 'CONFIG_TABLE_ID_ASC' + | 'CONFIG_TABLE_ID_DESC' + | 'CONFIG_TABLE_NAME_ASC' + | 'CONFIG_TABLE_NAME_DESC' | 'API_NAME_ASC' | 'API_NAME_DESC' | 'PRIVATE_API_NAME_ASC' - | 'PRIVATE_API_NAME_DESC'; + | 'PRIVATE_API_NAME_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC' + | 'ENTITY_TABLE_ID_ASC' + | 'ENTITY_TABLE_ID_DESC' + | 'POLICIES_ASC' + | 'POLICIES_DESC' + | 'PROVISIONS_ASC' + | 'PROVISIONS_DESC'; export type WebauthnAuthModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -6690,7 +7339,7 @@ export type WebauthnAuthModuleOrderBy = | 'RESIDENT_KEY_DESC' | 'CHALLENGE_EXPIRY_ASC' | 'CHALLENGE_EXPIRY_DESC'; -export type FunctionInvocationModuleOrderBy = +export type PrincipalAuthModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -6700,36 +7349,66 @@ export type FunctionInvocationModuleOrderBy = | 'DATABASE_ID_DESC' | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' - | 'PRIVATE_SCHEMA_ID_ASC' - | 'PRIVATE_SCHEMA_ID_DESC' - | 'PUBLIC_SCHEMA_NAME_ASC' - | 'PUBLIC_SCHEMA_NAME_DESC' - | 'PRIVATE_SCHEMA_NAME_ASC' - | 'PRIVATE_SCHEMA_NAME_DESC' - | 'INVOCATIONS_TABLE_ID_ASC' - | 'INVOCATIONS_TABLE_ID_DESC' - | 'EXECUTION_LOGS_TABLE_ID_ASC' - | 'EXECUTION_LOGS_TABLE_ID_DESC' - | 'INVOCATIONS_TABLE_NAME_ASC' - | 'INVOCATIONS_TABLE_NAME_DESC' - | 'EXECUTION_LOGS_TABLE_NAME_ASC' - | 'EXECUTION_LOGS_TABLE_NAME_DESC' + | 'PRINCIPALS_TABLE_ID_ASC' + | 'PRINCIPALS_TABLE_ID_DESC' + | 'PRINCIPAL_ENTITIES_TABLE_ID_ASC' + | 'PRINCIPAL_ENTITIES_TABLE_ID_DESC' + | 'PRINCIPAL_SCOPE_OVERRIDES_TABLE_ID_ASC' + | 'PRINCIPAL_SCOPE_OVERRIDES_TABLE_ID_DESC' + | 'USERS_TABLE_ID_ASC' + | 'USERS_TABLE_ID_DESC' + | 'SESSIONS_TABLE_ID_ASC' + | 'SESSIONS_TABLE_ID_DESC' + | 'SESSION_CREDENTIALS_TABLE_ID_ASC' + | 'SESSION_CREDENTIALS_TABLE_ID_DESC' + | 'AUDITS_TABLE_ID_ASC' + | 'AUDITS_TABLE_ID_DESC' + | 'PRINCIPALS_TABLE_NAME_ASC' + | 'PRINCIPALS_TABLE_NAME_DESC' + | 'CREATE_PRINCIPAL_FUNCTION_ASC' + | 'CREATE_PRINCIPAL_FUNCTION_DESC' + | 'DELETE_PRINCIPAL_FUNCTION_ASC' + | 'DELETE_PRINCIPAL_FUNCTION_DESC' + | 'CREATE_ORG_PRINCIPAL_FUNCTION_ASC' + | 'CREATE_ORG_PRINCIPAL_FUNCTION_DESC' + | 'DELETE_ORG_PRINCIPAL_FUNCTION_ASC' + | 'DELETE_ORG_PRINCIPAL_FUNCTION_DESC' + | 'CREATE_ORG_API_KEY_FUNCTION_ASC' + | 'CREATE_ORG_API_KEY_FUNCTION_DESC' + | 'REVOKE_ORG_API_KEY_FUNCTION_ASC' + | 'REVOKE_ORG_API_KEY_FUNCTION_DESC' | 'API_NAME_ASC' - | 'API_NAME_DESC' - | 'PRIVATE_API_NAME_ASC' - | 'PRIVATE_API_NAME_DESC' - | 'SCOPE_ASC' - | 'SCOPE_DESC' - | 'PREFIX_ASC' - | 'PREFIX_DESC' - | 'ENTITY_TABLE_ID_ASC' - | 'ENTITY_TABLE_ID_DESC' - | 'POLICIES_ASC' - | 'POLICIES_DESC' - | 'PROVISIONS_ASC' - | 'PROVISIONS_DESC' - | 'DEFAULT_PERMISSIONS_ASC' - | 'DEFAULT_PERMISSIONS_DESC'; + | 'API_NAME_DESC'; +export type DbPoolOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'PRESET_SLUG_ASC' + | 'PRESET_SLUG_DESC' + | 'PRESET_COMMIT_ID_ASC' + | 'PRESET_COMMIT_ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'STATUS_ASC' + | 'STATUS_DESC' + | 'ERROR_MESSAGE_ASC' + | 'ERROR_MESSAGE_DESC' + | 'EXPIRES_AT_ASC' + | 'EXPIRES_AT_DESC' + | 'CLAIMED_BY_ASC' + | 'CLAIMED_BY_DESC' + | 'CLAIMED_AT_ASC' + | 'CLAIMED_AT_DESC' + | 'BOOTSTRAP_STATUS_ASC' + | 'BOOTSTRAP_STATUS_DESC' + | 'BOOTSTRAP_ERROR_ASC' + | 'BOOTSTRAP_ERROR_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; export type FunctionModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -6738,6 +7417,8 @@ export type FunctionModuleOrderBy = | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' + | 'ENTITY_FIELD_ASC' + | 'ENTITY_FIELD_DESC' | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' | 'PRIVATE_SCHEMA_ID_ASC' @@ -6748,12 +7429,8 @@ export type FunctionModuleOrderBy = | 'PRIVATE_SCHEMA_NAME_DESC' | 'DEFINITIONS_TABLE_ID_ASC' | 'DEFINITIONS_TABLE_ID_DESC' - | 'SECRET_DEFINITIONS_TABLE_ID_ASC' - | 'SECRET_DEFINITIONS_TABLE_ID_DESC' | 'DEFINITIONS_TABLE_NAME_ASC' | 'DEFINITIONS_TABLE_NAME_DESC' - | 'SECRET_DEFINITIONS_TABLE_NAME_ASC' - | 'SECRET_DEFINITIONS_TABLE_NAME_DESC' | 'API_NAME_ASC' | 'API_NAME_DESC' | 'PRIVATE_API_NAME_ASC' @@ -6770,7 +7447,7 @@ export type FunctionModuleOrderBy = | 'PROVISIONS_DESC' | 'DEFAULT_PERMISSIONS_ASC' | 'DEFAULT_PERMISSIONS_DESC'; -export type InvitesModuleOrderBy = +export type MerkleStoreModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -6778,6 +7455,8 @@ export type InvitesModuleOrderBy = | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' + | 'ENTITY_FIELD_ASC' + | 'ENTITY_FIELD_DESC' | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' | 'PRIVATE_SCHEMA_ID_ASC' @@ -6786,71 +7465,69 @@ export type InvitesModuleOrderBy = | 'PUBLIC_SCHEMA_NAME_DESC' | 'PRIVATE_SCHEMA_NAME_ASC' | 'PRIVATE_SCHEMA_NAME_DESC' - | 'EMAILS_TABLE_ID_ASC' - | 'EMAILS_TABLE_ID_DESC' - | 'USERS_TABLE_ID_ASC' - | 'USERS_TABLE_ID_DESC' - | 'INVITES_TABLE_ID_ASC' - | 'INVITES_TABLE_ID_DESC' - | 'CLAIMED_INVITES_TABLE_ID_ASC' - | 'CLAIMED_INVITES_TABLE_ID_DESC' - | 'INVITES_TABLE_NAME_ASC' - | 'INVITES_TABLE_NAME_DESC' - | 'CLAIMED_INVITES_TABLE_NAME_ASC' - | 'CLAIMED_INVITES_TABLE_NAME_DESC' - | 'SUBMIT_INVITE_CODE_FUNCTION_ASC' - | 'SUBMIT_INVITE_CODE_FUNCTION_DESC' - | 'SCOPE_ASC' - | 'SCOPE_DESC' + | 'OBJECT_TABLE_ID_ASC' + | 'OBJECT_TABLE_ID_DESC' + | 'STORE_TABLE_ID_ASC' + | 'STORE_TABLE_ID_DESC' + | 'COMMIT_TABLE_ID_ASC' + | 'COMMIT_TABLE_ID_DESC' + | 'REF_TABLE_ID_ASC' + | 'REF_TABLE_ID_DESC' | 'PREFIX_ASC' | 'PREFIX_DESC' - | 'ENTITY_TABLE_ID_ASC' - | 'ENTITY_TABLE_ID_DESC' | 'API_NAME_ASC' | 'API_NAME_DESC' | 'PRIVATE_API_NAME_ASC' - | 'PRIVATE_API_NAME_DESC'; -export type PrincipalAuthModuleOrderBy = + | 'PRIVATE_API_NAME_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'FUNCTION_PREFIX_ASC' + | 'FUNCTION_PREFIX_DESC' + | 'PERMISSION_KEY_ASC' + | 'PERMISSION_KEY_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC'; +export type DatabaseProvisionModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' + | 'DATABASE_NAME_ASC' + | 'DATABASE_NAME_DESC' + | 'OWNER_ID_ASC' + | 'OWNER_ID_DESC' + | 'SUBDOMAIN_ASC' + | 'SUBDOMAIN_DESC' + | 'DOMAIN_ASC' + | 'DOMAIN_DESC' + | 'MODULES_ASC' + | 'MODULES_DESC' + | 'OPTIONS_ASC' + | 'OPTIONS_DESC' + | 'BOOTSTRAP_USER_ASC' + | 'BOOTSTRAP_USER_DESC' + | 'STATUS_ASC' + | 'STATUS_DESC' + | 'ERROR_MESSAGE_ASC' + | 'ERROR_MESSAGE_DESC' + | 'SOURCE_DATABASE_ID_ASC' + | 'SOURCE_DATABASE_ID_DESC' + | 'BOOTSTRAP_STATUS_ASC' + | 'BOOTSTRAP_STATUS_DESC' + | 'BOOTSTRAP_ERROR_ASC' + | 'BOOTSTRAP_ERROR_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' - | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC' - | 'PRINCIPALS_TABLE_ID_ASC' - | 'PRINCIPALS_TABLE_ID_DESC' - | 'PRINCIPAL_ENTITIES_TABLE_ID_ASC' - | 'PRINCIPAL_ENTITIES_TABLE_ID_DESC' - | 'PRINCIPAL_SCOPE_OVERRIDES_TABLE_ID_ASC' - | 'PRINCIPAL_SCOPE_OVERRIDES_TABLE_ID_DESC' - | 'USERS_TABLE_ID_ASC' - | 'USERS_TABLE_ID_DESC' - | 'SESSIONS_TABLE_ID_ASC' - | 'SESSIONS_TABLE_ID_DESC' - | 'SESSION_CREDENTIALS_TABLE_ID_ASC' - | 'SESSION_CREDENTIALS_TABLE_ID_DESC' - | 'AUDITS_TABLE_ID_ASC' - | 'AUDITS_TABLE_ID_DESC' - | 'PRINCIPALS_TABLE_NAME_ASC' - | 'PRINCIPALS_TABLE_NAME_DESC' - | 'CREATE_PRINCIPAL_FUNCTION_ASC' - | 'CREATE_PRINCIPAL_FUNCTION_DESC' - | 'DELETE_PRINCIPAL_FUNCTION_ASC' - | 'DELETE_PRINCIPAL_FUNCTION_DESC' - | 'CREATE_ORG_PRINCIPAL_FUNCTION_ASC' - | 'CREATE_ORG_PRINCIPAL_FUNCTION_DESC' - | 'DELETE_ORG_PRINCIPAL_FUNCTION_ASC' - | 'DELETE_ORG_PRINCIPAL_FUNCTION_DESC' - | 'CREATE_ORG_API_KEY_FUNCTION_ASC' - | 'CREATE_ORG_API_KEY_FUNCTION_DESC' - | 'REVOKE_ORG_API_KEY_FUNCTION_ASC' - | 'REVOKE_ORG_API_KEY_FUNCTION_DESC' - | 'API_NAME_ASC' - | 'API_NAME_DESC'; -export type ComputeLogModuleOrderBy = + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'COMPLETED_AT_ASC' + | 'COMPLETED_AT_DESC' + | 'FULFILLED_AT_ASC' + | 'FULFILLED_AT_DESC'; +export type FunctionInvocationModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -6858,6 +7535,8 @@ export type ComputeLogModuleOrderBy = | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' + | 'ENTITY_FIELD_ASC' + | 'ENTITY_FIELD_DESC' | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' | 'PRIVATE_SCHEMA_ID_ASC' @@ -6866,33 +7545,31 @@ export type ComputeLogModuleOrderBy = | 'PUBLIC_SCHEMA_NAME_DESC' | 'PRIVATE_SCHEMA_NAME_ASC' | 'PRIVATE_SCHEMA_NAME_DESC' - | 'COMPUTE_LOG_TABLE_ID_ASC' - | 'COMPUTE_LOG_TABLE_ID_DESC' - | 'COMPUTE_LOG_TABLE_NAME_ASC' - | 'COMPUTE_LOG_TABLE_NAME_DESC' - | 'USAGE_DAILY_TABLE_ID_ASC' - | 'USAGE_DAILY_TABLE_ID_DESC' - | 'USAGE_DAILY_TABLE_NAME_ASC' - | 'USAGE_DAILY_TABLE_NAME_DESC' - | 'INTERVAL_ASC' - | 'INTERVAL_DESC' - | 'RETENTION_ASC' - | 'RETENTION_DESC' - | 'PREMAKE_ASC' - | 'PREMAKE_DESC' + | 'INVOCATIONS_TABLE_ID_ASC' + | 'INVOCATIONS_TABLE_ID_DESC' + | 'EXECUTION_LOGS_TABLE_ID_ASC' + | 'EXECUTION_LOGS_TABLE_ID_DESC' + | 'INVOCATIONS_TABLE_NAME_ASC' + | 'INVOCATIONS_TABLE_NAME_DESC' + | 'EXECUTION_LOGS_TABLE_NAME_ASC' + | 'EXECUTION_LOGS_TABLE_NAME_DESC' + | 'API_NAME_ASC' + | 'API_NAME_DESC' + | 'PRIVATE_API_NAME_ASC' + | 'PRIVATE_API_NAME_DESC' | 'SCOPE_ASC' | 'SCOPE_DESC' - | 'ACTOR_FK_TABLE_ID_ASC' - | 'ACTOR_FK_TABLE_ID_DESC' - | 'ENTITY_FK_TABLE_ID_ASC' - | 'ENTITY_FK_TABLE_ID_DESC' | 'PREFIX_ASC' | 'PREFIX_DESC' - | 'API_NAME_ASC' - | 'API_NAME_DESC' - | 'PRIVATE_API_NAME_ASC' - | 'PRIVATE_API_NAME_DESC'; -export type InferenceLogModuleOrderBy = + | 'ENTITY_TABLE_ID_ASC' + | 'ENTITY_TABLE_ID_DESC' + | 'POLICIES_ASC' + | 'POLICIES_DESC' + | 'PROVISIONS_ASC' + | 'PROVISIONS_DESC' + | 'DEFAULT_PERMISSIONS_ASC' + | 'DEFAULT_PERMISSIONS_DESC'; +export type InvitesModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -6900,6 +7577,8 @@ export type InferenceLogModuleOrderBy = | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' + | 'ENTITY_FIELD_ASC' + | 'ENTITY_FIELD_DESC' | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' | 'PRIVATE_SCHEMA_ID_ASC' @@ -6908,28 +7587,26 @@ export type InferenceLogModuleOrderBy = | 'PUBLIC_SCHEMA_NAME_DESC' | 'PRIVATE_SCHEMA_NAME_ASC' | 'PRIVATE_SCHEMA_NAME_DESC' - | 'INFERENCE_LOG_TABLE_ID_ASC' - | 'INFERENCE_LOG_TABLE_ID_DESC' - | 'INFERENCE_LOG_TABLE_NAME_ASC' - | 'INFERENCE_LOG_TABLE_NAME_DESC' - | 'USAGE_DAILY_TABLE_ID_ASC' - | 'USAGE_DAILY_TABLE_ID_DESC' - | 'USAGE_DAILY_TABLE_NAME_ASC' - | 'USAGE_DAILY_TABLE_NAME_DESC' - | 'INTERVAL_ASC' - | 'INTERVAL_DESC' - | 'RETENTION_ASC' - | 'RETENTION_DESC' - | 'PREMAKE_ASC' - | 'PREMAKE_DESC' + | 'EMAILS_TABLE_ID_ASC' + | 'EMAILS_TABLE_ID_DESC' + | 'USERS_TABLE_ID_ASC' + | 'USERS_TABLE_ID_DESC' + | 'INVITES_TABLE_ID_ASC' + | 'INVITES_TABLE_ID_DESC' + | 'CLAIMED_INVITES_TABLE_ID_ASC' + | 'CLAIMED_INVITES_TABLE_ID_DESC' + | 'INVITES_TABLE_NAME_ASC' + | 'INVITES_TABLE_NAME_DESC' + | 'CLAIMED_INVITES_TABLE_NAME_ASC' + | 'CLAIMED_INVITES_TABLE_NAME_DESC' + | 'SUBMIT_INVITE_CODE_FUNCTION_ASC' + | 'SUBMIT_INVITE_CODE_FUNCTION_DESC' | 'SCOPE_ASC' | 'SCOPE_DESC' - | 'ACTOR_FK_TABLE_ID_ASC' - | 'ACTOR_FK_TABLE_ID_DESC' - | 'ENTITY_FK_TABLE_ID_ASC' - | 'ENTITY_FK_TABLE_ID_DESC' | 'PREFIX_ASC' | 'PREFIX_DESC' + | 'ENTITY_TABLE_ID_ASC' + | 'ENTITY_TABLE_ID_DESC' | 'API_NAME_ASC' | 'API_NAME_DESC' | 'PRIVATE_API_NAME_ASC' @@ -6942,6 +7619,8 @@ export type NamespaceModuleOrderBy = | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' + | 'ENTITY_FIELD_ASC' + | 'ENTITY_FIELD_DESC' | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' | 'PRIVATE_SCHEMA_ID_ASC' @@ -6968,15 +7647,13 @@ export type NamespaceModuleOrderBy = | 'PREFIX_DESC' | 'ENTITY_TABLE_ID_ASC' | 'ENTITY_TABLE_ID_DESC' - | 'PLATFORM_NAMESPACES_TABLE_ID_ASC' - | 'PLATFORM_NAMESPACES_TABLE_ID_DESC' | 'POLICIES_ASC' | 'POLICIES_DESC' | 'PROVISIONS_ASC' | 'PROVISIONS_DESC' | 'DEFAULT_PERMISSIONS_ASC' | 'DEFAULT_PERMISSIONS_DESC'; -export type ResourceModuleOrderBy = +export type PlansModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -6992,33 +7669,37 @@ export type ResourceModuleOrderBy = | 'PUBLIC_SCHEMA_NAME_DESC' | 'PRIVATE_SCHEMA_NAME_ASC' | 'PRIVATE_SCHEMA_NAME_DESC' - | 'RESOURCES_TABLE_ID_ASC' - | 'RESOURCES_TABLE_ID_DESC' - | 'RESOURCE_EVENTS_TABLE_ID_ASC' - | 'RESOURCE_EVENTS_TABLE_ID_DESC' - | 'RESOURCES_TABLE_NAME_ASC' - | 'RESOURCES_TABLE_NAME_DESC' - | 'RESOURCE_EVENTS_TABLE_NAME_ASC' - | 'RESOURCE_EVENTS_TABLE_NAME_DESC' + | 'PLANS_TABLE_ID_ASC' + | 'PLANS_TABLE_ID_DESC' + | 'PLANS_TABLE_NAME_ASC' + | 'PLANS_TABLE_NAME_DESC' + | 'PLAN_LIMITS_TABLE_ID_ASC' + | 'PLAN_LIMITS_TABLE_ID_DESC' + | 'PLAN_LIMITS_TABLE_NAME_ASC' + | 'PLAN_LIMITS_TABLE_NAME_DESC' + | 'PLAN_PRICING_TABLE_ID_ASC' + | 'PLAN_PRICING_TABLE_ID_DESC' + | 'PLAN_OVERRIDES_TABLE_ID_ASC' + | 'PLAN_OVERRIDES_TABLE_ID_DESC' + | 'PLAN_METER_LIMITS_TABLE_ID_ASC' + | 'PLAN_METER_LIMITS_TABLE_ID_DESC' + | 'PLAN_CAPS_TABLE_ID_ASC' + | 'PLAN_CAPS_TABLE_ID_DESC' + | 'APPLY_PLAN_FUNCTION_ASC' + | 'APPLY_PLAN_FUNCTION_DESC' + | 'APPLY_PLAN_AGGREGATE_FUNCTION_ASC' + | 'APPLY_PLAN_AGGREGATE_FUNCTION_DESC' + | 'APPLY_BILLING_PLAN_FUNCTION_ASC' + | 'APPLY_BILLING_PLAN_FUNCTION_DESC' + | 'APPLY_PLAN_CAPS_FUNCTION_ASC' + | 'APPLY_PLAN_CAPS_FUNCTION_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC' | 'API_NAME_ASC' | 'API_NAME_DESC' | 'PRIVATE_API_NAME_ASC' - | 'PRIVATE_API_NAME_DESC' - | 'SCOPE_ASC' - | 'SCOPE_DESC' - | 'PREFIX_ASC' - | 'PREFIX_DESC' - | 'ENTITY_TABLE_ID_ASC' - | 'ENTITY_TABLE_ID_DESC' - | 'NAMESPACE_MODULE_ID_ASC' - | 'NAMESPACE_MODULE_ID_DESC' - | 'POLICIES_ASC' - | 'POLICIES_DESC' - | 'PROVISIONS_ASC' - | 'PROVISIONS_DESC' - | 'DEFAULT_PERMISSIONS_ASC' - | 'DEFAULT_PERMISSIONS_DESC'; -export type StorageLogModuleOrderBy = + | 'PRIVATE_API_NAME_DESC'; +export type ComputeLogModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -7026,6 +7707,8 @@ export type StorageLogModuleOrderBy = | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' + | 'ENTITY_FIELD_ASC' + | 'ENTITY_FIELD_DESC' | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' | 'PRIVATE_SCHEMA_ID_ASC' @@ -7034,10 +7717,10 @@ export type StorageLogModuleOrderBy = | 'PUBLIC_SCHEMA_NAME_DESC' | 'PRIVATE_SCHEMA_NAME_ASC' | 'PRIVATE_SCHEMA_NAME_DESC' - | 'STORAGE_LOG_TABLE_ID_ASC' - | 'STORAGE_LOG_TABLE_ID_DESC' - | 'STORAGE_LOG_TABLE_NAME_ASC' - | 'STORAGE_LOG_TABLE_NAME_DESC' + | 'COMPUTE_LOG_TABLE_ID_ASC' + | 'COMPUTE_LOG_TABLE_ID_DESC' + | 'COMPUTE_LOG_TABLE_NAME_ASC' + | 'COMPUTE_LOG_TABLE_NAME_DESC' | 'USAGE_DAILY_TABLE_ID_ASC' | 'USAGE_DAILY_TABLE_ID_DESC' | 'USAGE_DAILY_TABLE_NAME_ASC' @@ -7060,7 +7743,7 @@ export type StorageLogModuleOrderBy = | 'API_NAME_DESC' | 'PRIVATE_API_NAME_ASC' | 'PRIVATE_API_NAME_DESC'; -export type TransferLogModuleOrderBy = +export type InferenceLogModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -7068,6 +7751,8 @@ export type TransferLogModuleOrderBy = | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' + | 'ENTITY_FIELD_ASC' + | 'ENTITY_FIELD_DESC' | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' | 'PRIVATE_SCHEMA_ID_ASC' @@ -7076,10 +7761,10 @@ export type TransferLogModuleOrderBy = | 'PUBLIC_SCHEMA_NAME_DESC' | 'PRIVATE_SCHEMA_NAME_ASC' | 'PRIVATE_SCHEMA_NAME_DESC' - | 'TRANSFER_LOG_TABLE_ID_ASC' - | 'TRANSFER_LOG_TABLE_ID_DESC' - | 'TRANSFER_LOG_TABLE_NAME_ASC' - | 'TRANSFER_LOG_TABLE_NAME_DESC' + | 'INFERENCE_LOG_TABLE_ID_ASC' + | 'INFERENCE_LOG_TABLE_ID_DESC' + | 'INFERENCE_LOG_TABLE_NAME_ASC' + | 'INFERENCE_LOG_TABLE_NAME_DESC' | 'USAGE_DAILY_TABLE_ID_ASC' | 'USAGE_DAILY_TABLE_ID_DESC' | 'USAGE_DAILY_TABLE_NAME_ASC' @@ -7102,7 +7787,7 @@ export type TransferLogModuleOrderBy = | 'API_NAME_DESC' | 'PRIVATE_API_NAME_ASC' | 'PRIVATE_API_NAME_DESC'; -export type FunctionDeploymentModuleOrderBy = +export type StorageLogModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -7110,6 +7795,8 @@ export type FunctionDeploymentModuleOrderBy = | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' + | 'ENTITY_FIELD_ASC' + | 'ENTITY_FIELD_DESC' | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' | 'PRIVATE_SCHEMA_ID_ASC' @@ -7118,35 +7805,33 @@ export type FunctionDeploymentModuleOrderBy = | 'PUBLIC_SCHEMA_NAME_DESC' | 'PRIVATE_SCHEMA_NAME_ASC' | 'PRIVATE_SCHEMA_NAME_DESC' - | 'DEPLOYMENTS_TABLE_ID_ASC' - | 'DEPLOYMENTS_TABLE_ID_DESC' - | 'DEPLOYMENT_EVENTS_TABLE_ID_ASC' - | 'DEPLOYMENT_EVENTS_TABLE_ID_DESC' - | 'DEPLOYMENTS_TABLE_NAME_ASC' - | 'DEPLOYMENTS_TABLE_NAME_DESC' - | 'DEPLOYMENT_EVENTS_TABLE_NAME_ASC' - | 'DEPLOYMENT_EVENTS_TABLE_NAME_DESC' - | 'API_NAME_ASC' - | 'API_NAME_DESC' - | 'PRIVATE_API_NAME_ASC' - | 'PRIVATE_API_NAME_DESC' + | 'STORAGE_LOG_TABLE_ID_ASC' + | 'STORAGE_LOG_TABLE_ID_DESC' + | 'STORAGE_LOG_TABLE_NAME_ASC' + | 'STORAGE_LOG_TABLE_NAME_DESC' + | 'USAGE_DAILY_TABLE_ID_ASC' + | 'USAGE_DAILY_TABLE_ID_DESC' + | 'USAGE_DAILY_TABLE_NAME_ASC' + | 'USAGE_DAILY_TABLE_NAME_DESC' + | 'INTERVAL_ASC' + | 'INTERVAL_DESC' + | 'RETENTION_ASC' + | 'RETENTION_DESC' + | 'PREMAKE_ASC' + | 'PREMAKE_DESC' | 'SCOPE_ASC' | 'SCOPE_DESC' + | 'ACTOR_FK_TABLE_ID_ASC' + | 'ACTOR_FK_TABLE_ID_DESC' + | 'ENTITY_FK_TABLE_ID_ASC' + | 'ENTITY_FK_TABLE_ID_DESC' | 'PREFIX_ASC' | 'PREFIX_DESC' - | 'ENTITY_TABLE_ID_ASC' - | 'ENTITY_TABLE_ID_DESC' - | 'FUNCTION_MODULE_ID_ASC' - | 'FUNCTION_MODULE_ID_DESC' - | 'NAMESPACE_MODULE_ID_ASC' - | 'NAMESPACE_MODULE_ID_DESC' - | 'POLICIES_ASC' - | 'POLICIES_DESC' - | 'PROVISIONS_ASC' - | 'PROVISIONS_DESC' - | 'DEFAULT_PERMISSIONS_ASC' - | 'DEFAULT_PERMISSIONS_DESC'; -export type PlansModuleOrderBy = + | 'API_NAME_ASC' + | 'API_NAME_DESC' + | 'PRIVATE_API_NAME_ASC' + | 'PRIVATE_API_NAME_DESC'; +export type TransferLogModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -7154,6 +7839,8 @@ export type PlansModuleOrderBy = | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' + | 'ENTITY_FIELD_ASC' + | 'ENTITY_FIELD_DESC' | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' | 'PRIVATE_SCHEMA_ID_ASC' @@ -7162,30 +7849,26 @@ export type PlansModuleOrderBy = | 'PUBLIC_SCHEMA_NAME_DESC' | 'PRIVATE_SCHEMA_NAME_ASC' | 'PRIVATE_SCHEMA_NAME_DESC' - | 'PLANS_TABLE_ID_ASC' - | 'PLANS_TABLE_ID_DESC' - | 'PLANS_TABLE_NAME_ASC' - | 'PLANS_TABLE_NAME_DESC' - | 'PLAN_LIMITS_TABLE_ID_ASC' - | 'PLAN_LIMITS_TABLE_ID_DESC' - | 'PLAN_LIMITS_TABLE_NAME_ASC' - | 'PLAN_LIMITS_TABLE_NAME_DESC' - | 'PLAN_PRICING_TABLE_ID_ASC' - | 'PLAN_PRICING_TABLE_ID_DESC' - | 'PLAN_OVERRIDES_TABLE_ID_ASC' - | 'PLAN_OVERRIDES_TABLE_ID_DESC' - | 'PLAN_METER_LIMITS_TABLE_ID_ASC' - | 'PLAN_METER_LIMITS_TABLE_ID_DESC' - | 'PLAN_CAPS_TABLE_ID_ASC' - | 'PLAN_CAPS_TABLE_ID_DESC' - | 'APPLY_PLAN_FUNCTION_ASC' - | 'APPLY_PLAN_FUNCTION_DESC' - | 'APPLY_PLAN_AGGREGATE_FUNCTION_ASC' - | 'APPLY_PLAN_AGGREGATE_FUNCTION_DESC' - | 'APPLY_BILLING_PLAN_FUNCTION_ASC' - | 'APPLY_BILLING_PLAN_FUNCTION_DESC' - | 'APPLY_PLAN_CAPS_FUNCTION_ASC' - | 'APPLY_PLAN_CAPS_FUNCTION_DESC' + | 'TRANSFER_LOG_TABLE_ID_ASC' + | 'TRANSFER_LOG_TABLE_ID_DESC' + | 'TRANSFER_LOG_TABLE_NAME_ASC' + | 'TRANSFER_LOG_TABLE_NAME_DESC' + | 'USAGE_DAILY_TABLE_ID_ASC' + | 'USAGE_DAILY_TABLE_ID_DESC' + | 'USAGE_DAILY_TABLE_NAME_ASC' + | 'USAGE_DAILY_TABLE_NAME_DESC' + | 'INTERVAL_ASC' + | 'INTERVAL_DESC' + | 'RETENTION_ASC' + | 'RETENTION_DESC' + | 'PREMAKE_ASC' + | 'PREMAKE_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'ACTOR_FK_TABLE_ID_ASC' + | 'ACTOR_FK_TABLE_ID_DESC' + | 'ENTITY_FK_TABLE_ID_ASC' + | 'ENTITY_FK_TABLE_ID_DESC' | 'PREFIX_ASC' | 'PREFIX_DESC' | 'API_NAME_ASC' @@ -7239,8 +7922,54 @@ export type BillingProviderModuleOrderBy = | 'API_NAME_ASC' | 'API_NAME_DESC' | 'PRIVATE_API_NAME_ASC' - | 'PRIVATE_API_NAME_DESC'; -export type DbUsageModuleOrderBy = + | 'PRIVATE_API_NAME_DESC'; +export type FunctionDeploymentModuleOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'ENTITY_FIELD_ASC' + | 'ENTITY_FIELD_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'PRIVATE_SCHEMA_ID_ASC' + | 'PRIVATE_SCHEMA_ID_DESC' + | 'PUBLIC_SCHEMA_NAME_ASC' + | 'PUBLIC_SCHEMA_NAME_DESC' + | 'PRIVATE_SCHEMA_NAME_ASC' + | 'PRIVATE_SCHEMA_NAME_DESC' + | 'DEPLOYMENTS_TABLE_ID_ASC' + | 'DEPLOYMENTS_TABLE_ID_DESC' + | 'DEPLOYMENT_EVENTS_TABLE_ID_ASC' + | 'DEPLOYMENT_EVENTS_TABLE_ID_DESC' + | 'DEPLOYMENTS_TABLE_NAME_ASC' + | 'DEPLOYMENTS_TABLE_NAME_DESC' + | 'DEPLOYMENT_EVENTS_TABLE_NAME_ASC' + | 'DEPLOYMENT_EVENTS_TABLE_NAME_DESC' + | 'API_NAME_ASC' + | 'API_NAME_DESC' + | 'PRIVATE_API_NAME_ASC' + | 'PRIVATE_API_NAME_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC' + | 'ENTITY_TABLE_ID_ASC' + | 'ENTITY_TABLE_ID_DESC' + | 'FUNCTION_MODULE_ID_ASC' + | 'FUNCTION_MODULE_ID_DESC' + | 'NAMESPACE_MODULE_ID_ASC' + | 'NAMESPACE_MODULE_ID_DESC' + | 'POLICIES_ASC' + | 'POLICIES_DESC' + | 'PROVISIONS_ASC' + | 'PROVISIONS_DESC' + | 'DEFAULT_PERMISSIONS_ASC' + | 'DEFAULT_PERMISSIONS_DESC'; +export type PermissionsModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -7248,6 +7977,8 @@ export type DbUsageModuleOrderBy = | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' + | 'ENTITY_FIELD_ASC' + | 'ENTITY_FIELD_DESC' | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' | 'PRIVATE_SCHEMA_ID_ASC' @@ -7256,34 +7987,32 @@ export type DbUsageModuleOrderBy = | 'PUBLIC_SCHEMA_NAME_DESC' | 'PRIVATE_SCHEMA_NAME_ASC' | 'PRIVATE_SCHEMA_NAME_DESC' - | 'TABLE_STATS_LOG_TABLE_ID_ASC' - | 'TABLE_STATS_LOG_TABLE_ID_DESC' - | 'TABLE_STATS_LOG_TABLE_NAME_ASC' - | 'TABLE_STATS_LOG_TABLE_NAME_DESC' - | 'TABLE_STATS_DAILY_TABLE_ID_ASC' - | 'TABLE_STATS_DAILY_TABLE_ID_DESC' - | 'TABLE_STATS_DAILY_TABLE_NAME_ASC' - | 'TABLE_STATS_DAILY_TABLE_NAME_DESC' - | 'QUERY_STATS_LOG_TABLE_ID_ASC' - | 'QUERY_STATS_LOG_TABLE_ID_DESC' - | 'QUERY_STATS_LOG_TABLE_NAME_ASC' - | 'QUERY_STATS_LOG_TABLE_NAME_DESC' - | 'QUERY_STATS_DAILY_TABLE_ID_ASC' - | 'QUERY_STATS_DAILY_TABLE_ID_DESC' - | 'QUERY_STATS_DAILY_TABLE_NAME_ASC' - | 'QUERY_STATS_DAILY_TABLE_NAME_DESC' - | 'INTERVAL_ASC' - | 'INTERVAL_DESC' - | 'RETENTION_ASC' - | 'RETENTION_DESC' - | 'PREMAKE_ASC' - | 'PREMAKE_DESC' + | 'TABLE_ID_ASC' + | 'TABLE_ID_DESC' + | 'TABLE_NAME_ASC' + | 'TABLE_NAME_DESC' + | 'DEFAULT_TABLE_ID_ASC' + | 'DEFAULT_TABLE_ID_DESC' + | 'DEFAULT_TABLE_NAME_ASC' + | 'DEFAULT_TABLE_NAME_DESC' + | 'BITLEN_ASC' + | 'BITLEN_DESC' | 'SCOPE_ASC' | 'SCOPE_DESC' | 'PREFIX_ASC' | 'PREFIX_DESC' - | 'DEFAULT_PERMISSIONS_ASC' - | 'DEFAULT_PERMISSIONS_DESC' + | 'ENTITY_TABLE_ID_ASC' + | 'ENTITY_TABLE_ID_DESC' + | 'ACTOR_TABLE_ID_ASC' + | 'ACTOR_TABLE_ID_DESC' + | 'GET_PADDED_MASK_ASC' + | 'GET_PADDED_MASK_DESC' + | 'GET_MASK_ASC' + | 'GET_MASK_DESC' + | 'GET_BY_MASK_ASC' + | 'GET_BY_MASK_DESC' + | 'GET_MASK_BY_NAME_ASC' + | 'GET_MASK_BY_NAME_DESC' | 'API_NAME_ASC' | 'API_NAME_DESC' | 'PRIVATE_API_NAME_ASC' @@ -7296,6 +8025,8 @@ export type GraphExecutionModuleOrderBy = | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' + | 'ENTITY_FIELD_ASC' + | 'ENTITY_FIELD_DESC' | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' | 'PRIVATE_SCHEMA_ID_ASC' @@ -7344,6 +8075,8 @@ export type HierarchyModuleOrderBy = | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' + | 'ENTITY_FIELD_ASC' + | 'ENTITY_FIELD_DESC' | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' | 'PRIVATE_SCHEMA_ID_ASC' @@ -7384,52 +8117,6 @@ export type HierarchyModuleOrderBy = | 'DEFAULT_PERMISSIONS_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC'; -export type PermissionsModuleOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC' - | 'PRIVATE_SCHEMA_ID_ASC' - | 'PRIVATE_SCHEMA_ID_DESC' - | 'PUBLIC_SCHEMA_NAME_ASC' - | 'PUBLIC_SCHEMA_NAME_DESC' - | 'PRIVATE_SCHEMA_NAME_ASC' - | 'PRIVATE_SCHEMA_NAME_DESC' - | 'TABLE_ID_ASC' - | 'TABLE_ID_DESC' - | 'TABLE_NAME_ASC' - | 'TABLE_NAME_DESC' - | 'DEFAULT_TABLE_ID_ASC' - | 'DEFAULT_TABLE_ID_DESC' - | 'DEFAULT_TABLE_NAME_ASC' - | 'DEFAULT_TABLE_NAME_DESC' - | 'BITLEN_ASC' - | 'BITLEN_DESC' - | 'SCOPE_ASC' - | 'SCOPE_DESC' - | 'PREFIX_ASC' - | 'PREFIX_DESC' - | 'ENTITY_TABLE_ID_ASC' - | 'ENTITY_TABLE_ID_DESC' - | 'ACTOR_TABLE_ID_ASC' - | 'ACTOR_TABLE_ID_DESC' - | 'GET_PADDED_MASK_ASC' - | 'GET_PADDED_MASK_DESC' - | 'GET_MASK_ASC' - | 'GET_MASK_DESC' - | 'GET_BY_MASK_ASC' - | 'GET_BY_MASK_DESC' - | 'GET_MASK_BY_NAME_ASC' - | 'GET_MASK_BY_NAME_DESC' - | 'API_NAME_ASC' - | 'API_NAME_DESC' - | 'PRIVATE_API_NAME_ASC' - | 'PRIVATE_API_NAME_DESC'; export type NotificationsModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -7438,6 +8125,8 @@ export type NotificationsModuleOrderBy = | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' + | 'ENTITY_FIELD_ASC' + | 'ENTITY_FIELD_DESC' | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' | 'PRIVATE_SCHEMA_ID_ASC' @@ -7480,6 +8169,58 @@ export type NotificationsModuleOrderBy = | 'API_NAME_DESC' | 'PRIVATE_API_NAME_ASC' | 'PRIVATE_API_NAME_DESC'; +export type RelationProvisionOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'RELATION_TYPE_ASC' + | 'RELATION_TYPE_DESC' + | 'SOURCE_TABLE_ID_ASC' + | 'SOURCE_TABLE_ID_DESC' + | 'TARGET_TABLE_ID_ASC' + | 'TARGET_TABLE_ID_DESC' + | 'FIELD_NAME_ASC' + | 'FIELD_NAME_DESC' + | 'DELETE_ACTION_ASC' + | 'DELETE_ACTION_DESC' + | 'IS_REQUIRED_ASC' + | 'IS_REQUIRED_DESC' + | 'API_REQUIRED_ASC' + | 'API_REQUIRED_DESC' + | 'JUNCTION_TABLE_ID_ASC' + | 'JUNCTION_TABLE_ID_DESC' + | 'JUNCTION_TABLE_NAME_ASC' + | 'JUNCTION_TABLE_NAME_DESC' + | 'JUNCTION_SCHEMA_ID_ASC' + | 'JUNCTION_SCHEMA_ID_DESC' + | 'SOURCE_FIELD_NAME_ASC' + | 'SOURCE_FIELD_NAME_DESC' + | 'TARGET_FIELD_NAME_ASC' + | 'TARGET_FIELD_NAME_DESC' + | 'USE_COMPOSITE_KEY_ASC' + | 'USE_COMPOSITE_KEY_DESC' + | 'CREATE_INDEX_ASC' + | 'CREATE_INDEX_DESC' + | 'EXPOSE_IN_API_ASC' + | 'EXPOSE_IN_API_DESC' + | 'NODES_ASC' + | 'NODES_DESC' + | 'GRANTS_ASC' + | 'GRANTS_DESC' + | 'POLICIES_ASC' + | 'POLICIES_DESC' + | 'OUT_FIELD_ID_ASC' + | 'OUT_FIELD_ID_DESC' + | 'OUT_JUNCTION_TABLE_ID_ASC' + | 'OUT_JUNCTION_TABLE_ID_DESC' + | 'OUT_SOURCE_FIELD_ID_ASC' + | 'OUT_SOURCE_FIELD_ID_DESC' + | 'OUT_TARGET_FIELD_ID_ASC' + | 'OUT_TARGET_FIELD_ID_DESC'; export type ProfilesModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -7488,6 +8229,8 @@ export type ProfilesModuleOrderBy = | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' + | 'ENTITY_FIELD_ASC' + | 'ENTITY_FIELD_DESC' | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' | 'PRIVATE_SCHEMA_ID_ASC' @@ -7578,6 +8321,10 @@ export type BillingModuleOrderBy = | 'METER_DEFAULTS_TABLE_NAME_DESC' | 'RECORD_USAGE_FUNCTION_ASC' | 'RECORD_USAGE_FUNCTION_DESC' + | 'SWEEP_EXPIRED_SUBSCRIPTIONS_FUNCTION_ASC' + | 'SWEEP_EXPIRED_SUBSCRIPTIONS_FUNCTION_DESC' + | 'ROLLUP_USAGE_SUMMARY_FUNCTION_ASC' + | 'ROLLUP_USAGE_SUMMARY_FUNCTION_DESC' | 'PREFIX_ASC' | 'PREFIX_DESC' | 'DEFAULT_PERMISSIONS_ASC' @@ -7586,7 +8333,7 @@ export type BillingModuleOrderBy = | 'API_NAME_DESC' | 'PRIVATE_API_NAME_ASC' | 'PRIVATE_API_NAME_DESC'; -export type RelationProvisionOrderBy = +export type ResourceModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -7594,50 +8341,54 @@ export type RelationProvisionOrderBy = | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' - | 'RELATION_TYPE_ASC' - | 'RELATION_TYPE_DESC' - | 'SOURCE_TABLE_ID_ASC' - | 'SOURCE_TABLE_ID_DESC' - | 'TARGET_TABLE_ID_ASC' - | 'TARGET_TABLE_ID_DESC' - | 'FIELD_NAME_ASC' - | 'FIELD_NAME_DESC' - | 'DELETE_ACTION_ASC' - | 'DELETE_ACTION_DESC' - | 'IS_REQUIRED_ASC' - | 'IS_REQUIRED_DESC' - | 'API_REQUIRED_ASC' - | 'API_REQUIRED_DESC' - | 'JUNCTION_TABLE_ID_ASC' - | 'JUNCTION_TABLE_ID_DESC' - | 'JUNCTION_TABLE_NAME_ASC' - | 'JUNCTION_TABLE_NAME_DESC' - | 'JUNCTION_SCHEMA_ID_ASC' - | 'JUNCTION_SCHEMA_ID_DESC' - | 'SOURCE_FIELD_NAME_ASC' - | 'SOURCE_FIELD_NAME_DESC' - | 'TARGET_FIELD_NAME_ASC' - | 'TARGET_FIELD_NAME_DESC' - | 'USE_COMPOSITE_KEY_ASC' - | 'USE_COMPOSITE_KEY_DESC' - | 'CREATE_INDEX_ASC' - | 'CREATE_INDEX_DESC' - | 'EXPOSE_IN_API_ASC' - | 'EXPOSE_IN_API_DESC' - | 'NODES_ASC' - | 'NODES_DESC' - | 'GRANTS_ASC' - | 'GRANTS_DESC' + | 'ENTITY_FIELD_ASC' + | 'ENTITY_FIELD_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'PRIVATE_SCHEMA_ID_ASC' + | 'PRIVATE_SCHEMA_ID_DESC' + | 'PUBLIC_SCHEMA_NAME_ASC' + | 'PUBLIC_SCHEMA_NAME_DESC' + | 'PRIVATE_SCHEMA_NAME_ASC' + | 'PRIVATE_SCHEMA_NAME_DESC' + | 'RESOURCES_TABLE_ID_ASC' + | 'RESOURCES_TABLE_ID_DESC' + | 'RESOURCE_EVENTS_TABLE_ID_ASC' + | 'RESOURCE_EVENTS_TABLE_ID_DESC' + | 'RESOURCE_STATUS_CHECKS_TABLE_ID_ASC' + | 'RESOURCE_STATUS_CHECKS_TABLE_ID_DESC' + | 'RESOURCE_DEFINITIONS_TABLE_ID_ASC' + | 'RESOURCE_DEFINITIONS_TABLE_ID_DESC' + | 'RESOURCES_TABLE_NAME_ASC' + | 'RESOURCES_TABLE_NAME_DESC' + | 'RESOURCE_EVENTS_TABLE_NAME_ASC' + | 'RESOURCE_EVENTS_TABLE_NAME_DESC' + | 'RESOURCE_STATUS_CHECKS_TABLE_NAME_ASC' + | 'RESOURCE_STATUS_CHECKS_TABLE_NAME_DESC' + | 'RESOURCE_DEFINITIONS_TABLE_NAME_ASC' + | 'RESOURCE_DEFINITIONS_TABLE_NAME_DESC' + | 'RESOLVED_REQUIREMENTS_VIEW_NAME_ASC' + | 'RESOLVED_REQUIREMENTS_VIEW_NAME_DESC' + | 'REQUIREMENTS_STATE_VIEW_NAME_ASC' + | 'REQUIREMENTS_STATE_VIEW_NAME_DESC' + | 'API_NAME_ASC' + | 'API_NAME_DESC' + | 'PRIVATE_API_NAME_ASC' + | 'PRIVATE_API_NAME_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC' + | 'ENTITY_TABLE_ID_ASC' + | 'ENTITY_TABLE_ID_DESC' + | 'NAMESPACE_MODULE_ID_ASC' + | 'NAMESPACE_MODULE_ID_DESC' | 'POLICIES_ASC' | 'POLICIES_DESC' - | 'OUT_FIELD_ID_ASC' - | 'OUT_FIELD_ID_DESC' - | 'OUT_JUNCTION_TABLE_ID_ASC' - | 'OUT_JUNCTION_TABLE_ID_DESC' - | 'OUT_SOURCE_FIELD_ID_ASC' - | 'OUT_SOURCE_FIELD_ID_DESC' - | 'OUT_TARGET_FIELD_ID_ASC' - | 'OUT_TARGET_FIELD_ID_DESC'; + | 'PROVISIONS_ASC' + | 'PROVISIONS_DESC' + | 'DEFAULT_PERMISSIONS_ASC' + | 'DEFAULT_PERMISSIONS_DESC'; export type UserAuthModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -7698,6 +8449,64 @@ export type UserAuthModuleOrderBy = | 'API_NAME_DESC' | 'PRIVATE_API_NAME_ASC' | 'PRIVATE_API_NAME_DESC'; +export type DbUsageModuleOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'ENTITY_FIELD_ASC' + | 'ENTITY_FIELD_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'PRIVATE_SCHEMA_ID_ASC' + | 'PRIVATE_SCHEMA_ID_DESC' + | 'PUBLIC_SCHEMA_NAME_ASC' + | 'PUBLIC_SCHEMA_NAME_DESC' + | 'PRIVATE_SCHEMA_NAME_ASC' + | 'PRIVATE_SCHEMA_NAME_DESC' + | 'TABLE_STATS_LOG_TABLE_ID_ASC' + | 'TABLE_STATS_LOG_TABLE_ID_DESC' + | 'TABLE_STATS_LOG_TABLE_NAME_ASC' + | 'TABLE_STATS_LOG_TABLE_NAME_DESC' + | 'TABLE_STATS_DAILY_TABLE_ID_ASC' + | 'TABLE_STATS_DAILY_TABLE_ID_DESC' + | 'TABLE_STATS_DAILY_TABLE_NAME_ASC' + | 'TABLE_STATS_DAILY_TABLE_NAME_DESC' + | 'QUERY_STATS_LOG_TABLE_ID_ASC' + | 'QUERY_STATS_LOG_TABLE_ID_DESC' + | 'QUERY_STATS_LOG_TABLE_NAME_ASC' + | 'QUERY_STATS_LOG_TABLE_NAME_DESC' + | 'QUERY_STATS_DAILY_TABLE_ID_ASC' + | 'QUERY_STATS_DAILY_TABLE_ID_DESC' + | 'QUERY_STATS_DAILY_TABLE_NAME_ASC' + | 'QUERY_STATS_DAILY_TABLE_NAME_DESC' + | 'COLLECT_DB_TABLE_STATS_FUNCTION_ASC' + | 'COLLECT_DB_TABLE_STATS_FUNCTION_DESC' + | 'COLLECT_DB_QUERY_STATS_FUNCTION_ASC' + | 'COLLECT_DB_QUERY_STATS_FUNCTION_DESC' + | 'ROLLUP_DB_TABLE_STATS_DAILY_FUNCTION_ASC' + | 'ROLLUP_DB_TABLE_STATS_DAILY_FUNCTION_DESC' + | 'ROLLUP_DB_QUERY_STATS_DAILY_FUNCTION_ASC' + | 'ROLLUP_DB_QUERY_STATS_DAILY_FUNCTION_DESC' + | 'INTERVAL_ASC' + | 'INTERVAL_DESC' + | 'RETENTION_ASC' + | 'RETENTION_DESC' + | 'PREMAKE_ASC' + | 'PREMAKE_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC' + | 'DEFAULT_PERMISSIONS_ASC' + | 'DEFAULT_PERMISSIONS_DESC' + | 'API_NAME_ASC' + | 'API_NAME_DESC' + | 'PRIVATE_API_NAME_ASC' + | 'PRIVATE_API_NAME_DESC'; export type AgentModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -7706,6 +8515,8 @@ export type AgentModuleOrderBy = | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' + | 'ENTITY_FIELD_ASC' + | 'ENTITY_FIELD_DESC' | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' | 'PRIVATE_SCHEMA_ID_ASC' @@ -7780,6 +8591,8 @@ export type LimitsModuleOrderBy = | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' + | 'ENTITY_FIELD_ASC' + | 'ENTITY_FIELD_DESC' | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' | 'PRIVATE_SCHEMA_ID_ASC' @@ -7848,92 +8661,6 @@ export type LimitsModuleOrderBy = | 'API_NAME_DESC' | 'PRIVATE_API_NAME_ASC' | 'PRIVATE_API_NAME_DESC'; -export type MembershipsModuleOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC' - | 'PRIVATE_SCHEMA_ID_ASC' - | 'PRIVATE_SCHEMA_ID_DESC' - | 'PUBLIC_SCHEMA_NAME_ASC' - | 'PUBLIC_SCHEMA_NAME_DESC' - | 'PRIVATE_SCHEMA_NAME_ASC' - | 'PRIVATE_SCHEMA_NAME_DESC' - | 'MEMBERSHIPS_TABLE_ID_ASC' - | 'MEMBERSHIPS_TABLE_ID_DESC' - | 'MEMBERSHIPS_TABLE_NAME_ASC' - | 'MEMBERSHIPS_TABLE_NAME_DESC' - | 'MEMBERS_TABLE_ID_ASC' - | 'MEMBERS_TABLE_ID_DESC' - | 'MEMBERS_TABLE_NAME_ASC' - | 'MEMBERS_TABLE_NAME_DESC' - | 'MEMBERSHIP_DEFAULTS_TABLE_ID_ASC' - | 'MEMBERSHIP_DEFAULTS_TABLE_ID_DESC' - | 'MEMBERSHIP_DEFAULTS_TABLE_NAME_ASC' - | 'MEMBERSHIP_DEFAULTS_TABLE_NAME_DESC' - | 'MEMBERSHIP_SETTINGS_TABLE_ID_ASC' - | 'MEMBERSHIP_SETTINGS_TABLE_ID_DESC' - | 'MEMBERSHIP_SETTINGS_TABLE_NAME_ASC' - | 'MEMBERSHIP_SETTINGS_TABLE_NAME_DESC' - | 'GRANTS_TABLE_ID_ASC' - | 'GRANTS_TABLE_ID_DESC' - | 'GRANTS_TABLE_NAME_ASC' - | 'GRANTS_TABLE_NAME_DESC' - | 'ACTOR_TABLE_ID_ASC' - | 'ACTOR_TABLE_ID_DESC' - | 'LIMITS_TABLE_ID_ASC' - | 'LIMITS_TABLE_ID_DESC' - | 'DEFAULT_LIMITS_TABLE_ID_ASC' - | 'DEFAULT_LIMITS_TABLE_ID_DESC' - | 'PERMISSIONS_TABLE_ID_ASC' - | 'PERMISSIONS_TABLE_ID_DESC' - | 'DEFAULT_PERMISSIONS_TABLE_ID_ASC' - | 'DEFAULT_PERMISSIONS_TABLE_ID_DESC' - | 'SPRT_TABLE_ID_ASC' - | 'SPRT_TABLE_ID_DESC' - | 'ADMIN_GRANTS_TABLE_ID_ASC' - | 'ADMIN_GRANTS_TABLE_ID_DESC' - | 'ADMIN_GRANTS_TABLE_NAME_ASC' - | 'ADMIN_GRANTS_TABLE_NAME_DESC' - | 'OWNER_GRANTS_TABLE_ID_ASC' - | 'OWNER_GRANTS_TABLE_ID_DESC' - | 'OWNER_GRANTS_TABLE_NAME_ASC' - | 'OWNER_GRANTS_TABLE_NAME_DESC' - | 'SCOPE_ASC' - | 'SCOPE_DESC' - | 'PREFIX_ASC' - | 'PREFIX_DESC' - | 'ENTITY_TABLE_ID_ASC' - | 'ENTITY_TABLE_ID_DESC' - | 'ENTITY_TABLE_OWNER_ID_ASC' - | 'ENTITY_TABLE_OWNER_ID_DESC' - | 'GET_ORG_FN_ASC' - | 'GET_ORG_FN_DESC' - | 'ACTOR_MASK_CHECK_ASC' - | 'ACTOR_MASK_CHECK_DESC' - | 'ACTOR_PERM_CHECK_ASC' - | 'ACTOR_PERM_CHECK_DESC' - | 'ENTITY_IDS_BY_MASK_ASC' - | 'ENTITY_IDS_BY_MASK_DESC' - | 'ENTITY_IDS_BY_PERM_ASC' - | 'ENTITY_IDS_BY_PERM_DESC' - | 'ENTITY_IDS_FUNCTION_ASC' - | 'ENTITY_IDS_FUNCTION_DESC' - | 'MEMBER_PROFILES_TABLE_ID_ASC' - | 'MEMBER_PROFILES_TABLE_ID_DESC' - | 'PERMISSION_DEFAULT_PERMISSIONS_TABLE_ID_ASC' - | 'PERMISSION_DEFAULT_PERMISSIONS_TABLE_ID_DESC' - | 'PERMISSION_DEFAULT_GRANTS_TABLE_ID_ASC' - | 'PERMISSION_DEFAULT_GRANTS_TABLE_ID_DESC' - | 'API_NAME_ASC' - | 'API_NAME_DESC' - | 'PRIVATE_API_NAME_ASC' - | 'PRIVATE_API_NAME_DESC'; export type EntityTypeProvisionOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -8010,8 +8737,6 @@ export type EntityTypeProvisionOrderBy = | 'OUT_INVOCATIONS_TABLE_ID_DESC' | 'OUT_EXECUTION_LOGS_TABLE_ID_ASC' | 'OUT_EXECUTION_LOGS_TABLE_ID_DESC' - | 'OUT_SECRET_DEFINITIONS_TABLE_ID_ASC' - | 'OUT_SECRET_DEFINITIONS_TABLE_ID_DESC' | 'OUT_GRAPH_MODULE_ID_ASC' | 'OUT_GRAPH_MODULE_ID_DESC' | 'OUT_GRAPHS_TABLE_ID_ASC' @@ -8052,6 +8777,8 @@ export type StorageModuleOrderBy = | 'PROVISIONS_DESC' | 'ENTITY_TABLE_ID_ASC' | 'ENTITY_TABLE_ID_DESC' + | 'ENTITY_FIELD_ASC' + | 'ENTITY_FIELD_DESC' | 'ENDPOINT_ASC' | 'ENDPOINT_DESC' | 'PUBLIC_URL_PREFIX_ASC' @@ -8100,6 +8827,94 @@ export type StorageModuleOrderBy = | 'API_NAME_DESC' | 'PRIVATE_API_NAME_ASC' | 'PRIVATE_API_NAME_DESC'; +export type MembershipsModuleOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'ENTITY_FIELD_ASC' + | 'ENTITY_FIELD_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'PRIVATE_SCHEMA_ID_ASC' + | 'PRIVATE_SCHEMA_ID_DESC' + | 'PUBLIC_SCHEMA_NAME_ASC' + | 'PUBLIC_SCHEMA_NAME_DESC' + | 'PRIVATE_SCHEMA_NAME_ASC' + | 'PRIVATE_SCHEMA_NAME_DESC' + | 'MEMBERSHIPS_TABLE_ID_ASC' + | 'MEMBERSHIPS_TABLE_ID_DESC' + | 'MEMBERSHIPS_TABLE_NAME_ASC' + | 'MEMBERSHIPS_TABLE_NAME_DESC' + | 'MEMBERS_TABLE_ID_ASC' + | 'MEMBERS_TABLE_ID_DESC' + | 'MEMBERS_TABLE_NAME_ASC' + | 'MEMBERS_TABLE_NAME_DESC' + | 'MEMBERSHIP_DEFAULTS_TABLE_ID_ASC' + | 'MEMBERSHIP_DEFAULTS_TABLE_ID_DESC' + | 'MEMBERSHIP_DEFAULTS_TABLE_NAME_ASC' + | 'MEMBERSHIP_DEFAULTS_TABLE_NAME_DESC' + | 'MEMBERSHIP_SETTINGS_TABLE_ID_ASC' + | 'MEMBERSHIP_SETTINGS_TABLE_ID_DESC' + | 'MEMBERSHIP_SETTINGS_TABLE_NAME_ASC' + | 'MEMBERSHIP_SETTINGS_TABLE_NAME_DESC' + | 'GRANTS_TABLE_ID_ASC' + | 'GRANTS_TABLE_ID_DESC' + | 'GRANTS_TABLE_NAME_ASC' + | 'GRANTS_TABLE_NAME_DESC' + | 'ACTOR_TABLE_ID_ASC' + | 'ACTOR_TABLE_ID_DESC' + | 'LIMITS_TABLE_ID_ASC' + | 'LIMITS_TABLE_ID_DESC' + | 'DEFAULT_LIMITS_TABLE_ID_ASC' + | 'DEFAULT_LIMITS_TABLE_ID_DESC' + | 'PERMISSIONS_TABLE_ID_ASC' + | 'PERMISSIONS_TABLE_ID_DESC' + | 'DEFAULT_PERMISSIONS_TABLE_ID_ASC' + | 'DEFAULT_PERMISSIONS_TABLE_ID_DESC' + | 'SPRT_TABLE_ID_ASC' + | 'SPRT_TABLE_ID_DESC' + | 'ADMIN_GRANTS_TABLE_ID_ASC' + | 'ADMIN_GRANTS_TABLE_ID_DESC' + | 'ADMIN_GRANTS_TABLE_NAME_ASC' + | 'ADMIN_GRANTS_TABLE_NAME_DESC' + | 'OWNER_GRANTS_TABLE_ID_ASC' + | 'OWNER_GRANTS_TABLE_ID_DESC' + | 'OWNER_GRANTS_TABLE_NAME_ASC' + | 'OWNER_GRANTS_TABLE_NAME_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC' + | 'ENTITY_TABLE_ID_ASC' + | 'ENTITY_TABLE_ID_DESC' + | 'ENTITY_TABLE_OWNER_ID_ASC' + | 'ENTITY_TABLE_OWNER_ID_DESC' + | 'GET_ORG_FN_ASC' + | 'GET_ORG_FN_DESC' + | 'ACTOR_MASK_CHECK_ASC' + | 'ACTOR_MASK_CHECK_DESC' + | 'ACTOR_PERM_CHECK_ASC' + | 'ACTOR_PERM_CHECK_DESC' + | 'ENTITY_IDS_BY_MASK_ASC' + | 'ENTITY_IDS_BY_MASK_DESC' + | 'ENTITY_IDS_BY_PERM_ASC' + | 'ENTITY_IDS_BY_PERM_DESC' + | 'ENTITY_IDS_FUNCTION_ASC' + | 'ENTITY_IDS_FUNCTION_DESC' + | 'MEMBER_PROFILES_TABLE_ID_ASC' + | 'MEMBER_PROFILES_TABLE_ID_DESC' + | 'PERMISSION_DEFAULT_PERMISSIONS_TABLE_ID_ASC' + | 'PERMISSION_DEFAULT_PERMISSIONS_TABLE_ID_DESC' + | 'PERMISSION_DEFAULT_GRANTS_TABLE_ID_ASC' + | 'PERMISSION_DEFAULT_GRANTS_TABLE_ID_DESC' + | 'API_NAME_ASC' + | 'API_NAME_DESC' + | 'PRIVATE_API_NAME_ASC' + | 'PRIVATE_API_NAME_DESC'; export type EventsModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -8108,6 +8923,8 @@ export type EventsModuleOrderBy = | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' + | 'ENTITY_FIELD_ASC' + | 'ENTITY_FIELD_DESC' | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' | 'PRIVATE_SCHEMA_ID_ASC' @@ -8160,8 +8977,6 @@ export type EventsModuleOrderBy = | 'UPSERT_AGGREGATE_DESC' | 'TG_UPDATE_AGGREGATES_ASC' | 'TG_UPDATE_AGGREGATES_DESC' - | 'PRUNE_EVENTS_ASC' - | 'PRUNE_EVENTS_DESC' | 'STEPS_REQUIRED_ASC' | 'STEPS_REQUIRED_DESC' | 'LEVEL_ACHIEVED_ASC' @@ -8220,96 +9035,44 @@ export interface CreateMembershipTypesModuleInput { tableName?: string; }; } -export interface MembershipTypesModulePatch { - databaseId?: string | null; - schemaId?: string | null; - tableId?: string | null; - tableName?: string | null; -} -export interface UpdateMembershipTypesModuleInput { - clientMutationId?: string; - id: string; - membershipTypesModulePatch: MembershipTypesModulePatch; -} -export interface DeleteMembershipTypesModuleInput { - clientMutationId?: string; - id: string; -} -export interface CreateUserStateModuleInput { - clientMutationId?: string; - userStateModule: { - databaseId: string; - schemaId?: string; - tableId?: string; - tableName?: string; - }; -} -export interface UserStateModulePatch { - databaseId?: string | null; - schemaId?: string | null; - tableId?: string | null; - tableName?: string | null; -} -export interface UpdateUserStateModuleInput { - clientMutationId?: string; - id: string; - userStateModulePatch: UserStateModulePatch; -} -export interface DeleteUserStateModuleInput { - clientMutationId?: string; - id: string; -} -export interface CreateSessionSecretsModuleInput { - clientMutationId?: string; - sessionSecretsModule: { - databaseId: string; - schemaId?: string; - tableId?: string; - tableName?: string; - sessionsTableId?: string; - }; -} -export interface SessionSecretsModulePatch { +export interface MembershipTypesModulePatch { databaseId?: string | null; schemaId?: string | null; tableId?: string | null; tableName?: string | null; - sessionsTableId?: string | null; } -export interface UpdateSessionSecretsModuleInput { +export interface UpdateMembershipTypesModuleInput { clientMutationId?: string; id: string; - sessionSecretsModulePatch: SessionSecretsModulePatch; + membershipTypesModulePatch: MembershipTypesModulePatch; } -export interface DeleteSessionSecretsModuleInput { +export interface DeleteMembershipTypesModuleInput { clientMutationId?: string; id: string; } -export interface CreateConfigSecretsOrgModuleInput { +export interface CreateSessionSecretsModuleInput { clientMutationId?: string; - configSecretsOrgModule: { + sessionSecretsModule: { databaseId: string; schemaId?: string; tableId?: string; tableName?: string; - apiName?: string; - privateApiName?: string; + sessionsTableId?: string; }; } -export interface ConfigSecretsOrgModulePatch { +export interface SessionSecretsModulePatch { databaseId?: string | null; schemaId?: string | null; tableId?: string | null; tableName?: string | null; - apiName?: string | null; - privateApiName?: string | null; + sessionsTableId?: string | null; } -export interface UpdateConfigSecretsOrgModuleInput { +export interface UpdateSessionSecretsModuleInput { clientMutationId?: string; id: string; - configSecretsOrgModulePatch: ConfigSecretsOrgModulePatch; + sessionSecretsModulePatch: SessionSecretsModulePatch; } -export interface DeleteConfigSecretsOrgModuleInput { +export interface DeleteSessionSecretsModuleInput { clientMutationId?: string; id: string; } @@ -8369,89 +9132,85 @@ export interface DeleteI18NModuleInput { clientMutationId?: string; id: string; } -export interface CreateUserCredentialsModuleInput { +export interface CreateUserSettingsModuleInput { clientMutationId?: string; - userCredentialsModule: { + userSettingsModule: { databaseId: string; schemaId?: string; tableId?: string; + ownerTableId?: string; tableName?: string; apiName?: string; - privateApiName?: string; }; } -export interface UserCredentialsModulePatch { +export interface UserSettingsModulePatch { databaseId?: string | null; schemaId?: string | null; tableId?: string | null; + ownerTableId?: string | null; tableName?: string | null; apiName?: string | null; - privateApiName?: string | null; } -export interface UpdateUserCredentialsModuleInput { +export interface UpdateUserSettingsModuleInput { clientMutationId?: string; id: string; - userCredentialsModulePatch: UserCredentialsModulePatch; + userSettingsModulePatch: UserSettingsModulePatch; } -export interface DeleteUserCredentialsModuleInput { +export interface DeleteUserSettingsModuleInput { clientMutationId?: string; id: string; } -export interface CreateUserSettingsModuleInput { +export interface CreateUserStateModuleInput { clientMutationId?: string; - userSettingsModule: { + userStateModule: { databaseId: string; + entityField?: string; schemaId?: string; tableId?: string; - ownerTableId?: string; tableName?: string; - apiName?: string; }; } -export interface UserSettingsModulePatch { +export interface UserStateModulePatch { databaseId?: string | null; + entityField?: string | null; schemaId?: string | null; tableId?: string | null; - ownerTableId?: string | null; tableName?: string | null; - apiName?: string | null; } -export interface UpdateUserSettingsModuleInput { +export interface UpdateUserStateModuleInput { clientMutationId?: string; id: string; - userSettingsModulePatch: UserSettingsModulePatch; + userStateModulePatch: UserStateModulePatch; } -export interface DeleteUserSettingsModuleInput { +export interface DeleteUserStateModuleInput { clientMutationId?: string; id: string; } -export interface CreateConfigSecretsUserModuleInput { +export interface CreateUserCredentialsModuleInput { clientMutationId?: string; - configSecretsUserModule: { + userCredentialsModule: { databaseId: string; + entityField?: string; schemaId?: string; tableId?: string; tableName?: string; - configDefinitionsTableId?: string; - apiName?: string; privateApiName?: string; }; } -export interface ConfigSecretsUserModulePatch { +export interface UserCredentialsModulePatch { databaseId?: string | null; + entityField?: string | null; schemaId?: string | null; tableId?: string | null; tableName?: string | null; - configDefinitionsTableId?: string | null; - apiName?: string | null; privateApiName?: string | null; } -export interface UpdateConfigSecretsUserModuleInput { +export interface UpdateUserCredentialsModuleInput { clientMutationId?: string; id: string; - configSecretsUserModulePatch: ConfigSecretsUserModulePatch; + userCredentialsModulePatch: UserCredentialsModulePatch; } -export interface DeleteConfigSecretsUserModuleInput { +export interface DeleteUserCredentialsModuleInput { clientMutationId?: string; id: string; } @@ -8647,6 +9406,36 @@ export interface DeleteWebauthnCredentialsModuleInput { clientMutationId?: string; id: string; } +export interface CreateConfigSecretsUserModuleInput { + clientMutationId?: string; + configSecretsUserModule: { + databaseId: string; + entityField?: string; + schemaId?: string; + tableId?: string; + tableName?: string; + apiName?: string; + privateApiName?: string; + }; +} +export interface ConfigSecretsUserModulePatch { + databaseId?: string | null; + entityField?: string | null; + schemaId?: string | null; + tableId?: string | null; + tableName?: string | null; + apiName?: string | null; + privateApiName?: string | null; +} +export interface UpdateConfigSecretsUserModuleInput { + clientMutationId?: string; + id: string; + configSecretsUserModulePatch: ConfigSecretsUserModulePatch; +} +export interface DeleteConfigSecretsUserModuleInput { + clientMutationId?: string; + id: string; +} export interface CreateCryptoAddressesModuleInput { clientMutationId?: string; cryptoAddressesModule: { @@ -8719,46 +9508,6 @@ export interface DeleteDenormalizedTableFieldInput { clientMutationId?: string; id: string; } -export interface CreateIdentityProvidersModuleInput { - clientMutationId?: string; - identityProvidersModule: { - databaseId: string; - schemaId?: string; - privateSchemaId?: string; - publicSchemaName?: string; - privateSchemaName?: string; - tableId?: string; - tableName?: string; - apiName?: string; - privateApiName?: string; - scope?: string; - prefix?: string; - entityTableId?: string; - }; -} -export interface IdentityProvidersModulePatch { - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - publicSchemaName?: string | null; - privateSchemaName?: string | null; - tableId?: string | null; - tableName?: string | null; - apiName?: string | null; - privateApiName?: string | null; - scope?: string | null; - prefix?: string | null; - entityTableId?: string | null; -} -export interface UpdateIdentityProvidersModuleInput { - clientMutationId?: string; - id: string; - identityProvidersModulePatch: IdentityProvidersModulePatch; -} -export interface DeleteIdentityProvidersModuleInput { - clientMutationId?: string; - id: string; -} export interface CreateRlsModuleInput { clientMutationId?: string; rlsModule: { @@ -9008,134 +9757,296 @@ export interface CreateSecureTableProvisionInput { outFields?: string[]; }; } -export interface SecureTableProvisionPatch { +export interface SecureTableProvisionPatch { + databaseId?: string | null; + schemaId?: string | null; + tableId?: string | null; + tableName?: string | null; + nodes?: Record | null; + useRls?: boolean | null; + fields?: Record[] | null; + grants?: Record | null; + policies?: Record | null; + outFields?: string[] | null; +} +export interface UpdateSecureTableProvisionInput { + clientMutationId?: string; + id: string; + secureTableProvisionPatch: SecureTableProvisionPatch; +} +export interface DeleteSecureTableProvisionInput { + clientMutationId?: string; + id: string; +} +export interface CreateIdentityProvidersModuleInput { + clientMutationId?: string; + identityProvidersModule: { + databaseId: string; + entityField?: string; + schemaId?: string; + privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + tableId?: string; + tableName?: string; + apiName?: string; + privateApiName?: string; + scope?: string; + prefix?: string; + entityTableId?: string; + }; +} +export interface IdentityProvidersModulePatch { + databaseId?: string | null; + entityField?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + publicSchemaName?: string | null; + privateSchemaName?: string | null; + tableId?: string | null; + tableName?: string | null; + apiName?: string | null; + privateApiName?: string | null; + scope?: string | null; + prefix?: string | null; + entityTableId?: string | null; +} +export interface UpdateIdentityProvidersModuleInput { + clientMutationId?: string; + id: string; + identityProvidersModulePatch: IdentityProvidersModulePatch; +} +export interface DeleteIdentityProvidersModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateIntegrationProvidersModuleInput { + clientMutationId?: string; + integrationProvidersModule: { + databaseId: string; + entityField?: string; + schemaId?: string; + privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + tableId?: string; + tableName?: string; + apiName?: string; + privateApiName?: string; + scope?: string; + prefix?: string; + entityTableId?: string; + }; +} +export interface IntegrationProvidersModulePatch { + databaseId?: string | null; + entityField?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + publicSchemaName?: string | null; + privateSchemaName?: string | null; + tableId?: string | null; + tableName?: string | null; + apiName?: string | null; + privateApiName?: string | null; + scope?: string | null; + prefix?: string | null; + entityTableId?: string | null; +} +export interface UpdateIntegrationProvidersModuleInput { + clientMutationId?: string; + id: string; + integrationProvidersModulePatch: IntegrationProvidersModulePatch; +} +export interface DeleteIntegrationProvidersModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateDbPoolConfigInput { + clientMutationId?: string; + dbPoolConfig: { + presetSlug: string; + domain: string; + poolOwnerId: string; + min?: number; + max?: number; + warmTtl?: IntervalInput; + enabled?: boolean; + }; +} +export interface DbPoolConfigPatch { + presetSlug?: string | null; + domain?: string | null; + poolOwnerId?: string | null; + min?: number | null; + max?: number | null; + warmTtl?: IntervalInput | null; + enabled?: boolean | null; +} +export interface UpdateDbPoolConfigInput { + clientMutationId?: string; + id: string; + dbPoolConfigPatch: DbPoolConfigPatch; +} +export interface DeleteDbPoolConfigInput { + clientMutationId?: string; + id: string; +} +export interface CreateRealtimeModuleInput { + clientMutationId?: string; + realtimeModule: { + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + subscriptionsSchemaId?: string; + changeLogTableId?: string; + listenerNodeTableId?: string; + sourceRegistryTableId?: string; + retentionHours?: number; + premake?: number; + interval?: string; + notifyChannel?: string; + apiName?: string; + privateApiName?: string; + }; +} +export interface RealtimeModulePatch { databaseId?: string | null; schemaId?: string | null; - tableId?: string | null; - tableName?: string | null; - nodes?: Record | null; - useRls?: boolean | null; - fields?: Record[] | null; - grants?: Record | null; - policies?: Record | null; - outFields?: string[] | null; + privateSchemaId?: string | null; + subscriptionsSchemaId?: string | null; + changeLogTableId?: string | null; + listenerNodeTableId?: string | null; + sourceRegistryTableId?: string | null; + retentionHours?: number | null; + premake?: number | null; + interval?: string | null; + notifyChannel?: string | null; + apiName?: string | null; + privateApiName?: string | null; } -export interface UpdateSecureTableProvisionInput { +export interface UpdateRealtimeModuleInput { clientMutationId?: string; id: string; - secureTableProvisionPatch: SecureTableProvisionPatch; + realtimeModulePatch: RealtimeModulePatch; } -export interface DeleteSecureTableProvisionInput { +export interface DeleteRealtimeModuleInput { clientMutationId?: string; id: string; } -export interface CreateDatabaseProvisionModuleInput { +export interface CreateInfraSecretsModuleInput { clientMutationId?: string; - databaseProvisionModule: { - databaseName: string; - ownerId: string; - subdomain?: string; - domain: string; - modules?: Record; - options?: Record; - bootstrapUser?: boolean; - status?: string; - errorMessage?: string; - databaseId?: string; - completedAt?: string; + infraSecretsModule: { + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + secretsTableId?: string; + secretsTableName?: string; + apiName?: string; + privateApiName?: string; + scope?: string; + prefix?: string; + entityTableId?: string; + entityField?: string; + policies?: Record; + provisions?: Record; }; } -export interface DatabaseProvisionModulePatch { - databaseName?: string | null; - ownerId?: string | null; - subdomain?: string | null; - domain?: string | null; - modules?: Record | null; - options?: Record | null; - bootstrapUser?: boolean | null; - status?: string | null; - errorMessage?: string | null; +export interface InfraSecretsModulePatch { databaseId?: string | null; - completedAt?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + publicSchemaName?: string | null; + privateSchemaName?: string | null; + secretsTableId?: string | null; + secretsTableName?: string | null; + apiName?: string | null; + privateApiName?: string | null; + scope?: string | null; + prefix?: string | null; + entityTableId?: string | null; + entityField?: string | null; + policies?: Record | null; + provisions?: Record | null; } -export interface UpdateDatabaseProvisionModuleInput { +export interface UpdateInfraSecretsModuleInput { clientMutationId?: string; id: string; - databaseProvisionModulePatch: DatabaseProvisionModulePatch; + infraSecretsModulePatch: InfraSecretsModulePatch; } -export interface DeleteDatabaseProvisionModuleInput { +export interface DeleteInfraSecretsModuleInput { clientMutationId?: string; id: string; } -export interface CreateConfigSecretsModuleInput { +export interface CreateInternalSecretsModuleInput { clientMutationId?: string; - configSecretsModule: { + internalSecretsModule: { databaseId: string; schemaId?: string; privateSchemaId?: string; publicSchemaName?: string; privateSchemaName?: string; - tableId?: string; - configDefinitionsTableId?: string; - tableName?: string; + internalSecretsTableId?: string; + internalSecretsTableName?: string; apiName?: string; privateApiName?: string; scope?: string; prefix?: string; entityTableId?: string; + entityField?: string; policies?: Record; provisions?: Record; - hasConfig?: boolean; }; } -export interface ConfigSecretsModulePatch { +export interface InternalSecretsModulePatch { databaseId?: string | null; schemaId?: string | null; privateSchemaId?: string | null; publicSchemaName?: string | null; privateSchemaName?: string | null; - tableId?: string | null; - configDefinitionsTableId?: string | null; - tableName?: string | null; + internalSecretsTableId?: string | null; + internalSecretsTableName?: string | null; apiName?: string | null; privateApiName?: string | null; scope?: string | null; prefix?: string | null; entityTableId?: string | null; + entityField?: string | null; policies?: Record | null; provisions?: Record | null; - hasConfig?: boolean | null; } -export interface UpdateConfigSecretsModuleInput { +export interface UpdateInternalSecretsModuleInput { clientMutationId?: string; id: string; - configSecretsModulePatch: ConfigSecretsModulePatch; + internalSecretsModulePatch: InternalSecretsModulePatch; } -export interface DeleteConfigSecretsModuleInput { +export interface DeleteInternalSecretsModuleInput { clientMutationId?: string; id: string; } -export interface CreateGraphModuleInput { +export interface CreateDbPresetModuleInput { clientMutationId?: string; - graphModule: { + dbPresetModule: { databaseId: string; publicSchemaId?: string; privateSchemaId?: string; publicSchemaName?: string; privateSchemaName?: string; - scope?: string; - prefix?: string; + scope: string; + prefix: string; merkleStoreModuleId: string; - graphsTableId?: string; + dbPresetsTableId?: string; + storeName: string; apiName?: string; privateApiName?: string; entityTableId?: string; policies?: Record; provisions?: Record; - defaultPermissions?: string[]; }; } -export interface GraphModulePatch { +export interface DbPresetModulePatch { databaseId?: string | null; publicSchemaId?: string | null; privateSchemaId?: string | null; @@ -9144,66 +10055,68 @@ export interface GraphModulePatch { scope?: string | null; prefix?: string | null; merkleStoreModuleId?: string | null; - graphsTableId?: string | null; + dbPresetsTableId?: string | null; + storeName?: string | null; apiName?: string | null; privateApiName?: string | null; entityTableId?: string | null; policies?: Record | null; provisions?: Record | null; - defaultPermissions?: string[] | null; } -export interface UpdateGraphModuleInput { +export interface UpdateDbPresetModuleInput { clientMutationId?: string; id: string; - graphModulePatch: GraphModulePatch; + dbPresetModulePatch: DbPresetModulePatch; } -export interface DeleteGraphModuleInput { +export interface DeleteDbPresetModuleInput { clientMutationId?: string; id: string; } -export interface CreateMerkleStoreModuleInput { +export interface CreateGraphModuleInput { clientMutationId?: string; - merkleStoreModule: { + graphModule: { databaseId: string; - schemaId?: string; + entityField?: string; + publicSchemaId?: string; privateSchemaId?: string; publicSchemaName?: string; privateSchemaName?: string; - objectTableId?: string; - storeTableId?: string; - commitTableId?: string; - refTableId?: string; + scope?: string; prefix?: string; + merkleStoreModuleId: string; + graphsTableId?: string; apiName?: string; privateApiName?: string; - scope?: string; - functionPrefix?: string; - permissionKey?: string; + entityTableId?: string; + policies?: Record; + provisions?: Record; + defaultPermissions?: string[]; }; } -export interface MerkleStoreModulePatch { +export interface GraphModulePatch { databaseId?: string | null; - schemaId?: string | null; + entityField?: string | null; + publicSchemaId?: string | null; privateSchemaId?: string | null; publicSchemaName?: string | null; privateSchemaName?: string | null; - objectTableId?: string | null; - storeTableId?: string | null; - commitTableId?: string | null; - refTableId?: string | null; + scope?: string | null; prefix?: string | null; + merkleStoreModuleId?: string | null; + graphsTableId?: string | null; apiName?: string | null; privateApiName?: string | null; - scope?: string | null; - functionPrefix?: string | null; - permissionKey?: string | null; + entityTableId?: string | null; + policies?: Record | null; + provisions?: Record | null; + defaultPermissions?: string[] | null; } -export interface UpdateMerkleStoreModuleInput { +export interface UpdateGraphModuleInput { clientMutationId?: string; id: string; - merkleStoreModulePatch: MerkleStoreModulePatch; + graphModulePatch: GraphModulePatch; } -export interface DeleteMerkleStoreModuleInput { +export interface DeleteGraphModuleInput { clientMutationId?: string; id: string; } @@ -9255,45 +10168,49 @@ export interface DeleteRateLimitMetersModuleInput { clientMutationId?: string; id: string; } -export interface CreateRealtimeModuleInput { +export interface CreateInfraConfigModuleInput { clientMutationId?: string; - realtimeModule: { + infraConfigModule: { databaseId: string; + entityField?: string; schemaId?: string; privateSchemaId?: string; - subscriptionsSchemaId?: string; - changeLogTableId?: string; - listenerNodeTableId?: string; - sourceRegistryTableId?: string; - retentionHours?: number; - premake?: number; - interval?: string; - notifyChannel?: string; + publicSchemaName?: string; + privateSchemaName?: string; + configTableId?: string; + configTableName?: string; apiName?: string; privateApiName?: string; + scope?: string; + prefix?: string; + entityTableId?: string; + policies?: Record; + provisions?: Record; }; } -export interface RealtimeModulePatch { +export interface InfraConfigModulePatch { databaseId?: string | null; + entityField?: string | null; schemaId?: string | null; privateSchemaId?: string | null; - subscriptionsSchemaId?: string | null; - changeLogTableId?: string | null; - listenerNodeTableId?: string | null; - sourceRegistryTableId?: string | null; - retentionHours?: number | null; - premake?: number | null; - interval?: string | null; - notifyChannel?: string | null; + publicSchemaName?: string | null; + privateSchemaName?: string | null; + configTableId?: string | null; + configTableName?: string | null; apiName?: string | null; privateApiName?: string | null; + scope?: string | null; + prefix?: string | null; + entityTableId?: string | null; + policies?: Record | null; + provisions?: Record | null; } -export interface UpdateRealtimeModuleInput { +export interface UpdateInfraConfigModuleInput { clientMutationId?: string; id: string; - realtimeModulePatch: RealtimeModulePatch; + infraConfigModulePatch: InfraConfigModulePatch; } -export interface DeleteRealtimeModuleInput { +export interface DeleteInfraConfigModuleInput { clientMutationId?: string; id: string; } @@ -9343,53 +10260,89 @@ export interface DeleteWebauthnAuthModuleInput { clientMutationId?: string; id: string; } -export interface CreateFunctionInvocationModuleInput { +export interface CreatePrincipalAuthModuleInput { clientMutationId?: string; - functionInvocationModule: { + principalAuthModule: { databaseId: string; schemaId?: string; - privateSchemaId?: string; - publicSchemaName?: string; - privateSchemaName?: string; - invocationsTableId?: string; - executionLogsTableId?: string; - invocationsTableName?: string; - executionLogsTableName?: string; + principalsTableId?: string; + principalEntitiesTableId?: string; + principalScopeOverridesTableId?: string; + usersTableId?: string; + sessionsTableId?: string; + sessionCredentialsTableId?: string; + auditsTableId?: string; + principalsTableName?: string; + createPrincipalFunction?: string; + deletePrincipalFunction?: string; + createOrgPrincipalFunction?: string; + deleteOrgPrincipalFunction?: string; + createOrgApiKeyFunction?: string; + revokeOrgApiKeyFunction?: string; apiName?: string; - privateApiName?: string; - scope?: string; - prefix?: string; - entityTableId?: string; - policies?: Record; - provisions?: Record; - defaultPermissions?: string[]; }; } -export interface FunctionInvocationModulePatch { +export interface PrincipalAuthModulePatch { databaseId?: string | null; schemaId?: string | null; - privateSchemaId?: string | null; - publicSchemaName?: string | null; - privateSchemaName?: string | null; - invocationsTableId?: string | null; - executionLogsTableId?: string | null; - invocationsTableName?: string | null; - executionLogsTableName?: string | null; + principalsTableId?: string | null; + principalEntitiesTableId?: string | null; + principalScopeOverridesTableId?: string | null; + usersTableId?: string | null; + sessionsTableId?: string | null; + sessionCredentialsTableId?: string | null; + auditsTableId?: string | null; + principalsTableName?: string | null; + createPrincipalFunction?: string | null; + deletePrincipalFunction?: string | null; + createOrgPrincipalFunction?: string | null; + deleteOrgPrincipalFunction?: string | null; + createOrgApiKeyFunction?: string | null; + revokeOrgApiKeyFunction?: string | null; apiName?: string | null; - privateApiName?: string | null; - scope?: string | null; - prefix?: string | null; - entityTableId?: string | null; - policies?: Record | null; - provisions?: Record | null; - defaultPermissions?: string[] | null; } -export interface UpdateFunctionInvocationModuleInput { +export interface UpdatePrincipalAuthModuleInput { + clientMutationId?: string; + id: string; + principalAuthModulePatch: PrincipalAuthModulePatch; +} +export interface DeletePrincipalAuthModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateDbPoolInput { + clientMutationId?: string; + dbPool: { + presetSlug: string; + presetCommitId?: string; + databaseId?: string; + status?: string; + errorMessage?: string; + expiresAt?: string; + claimedBy?: string; + claimedAt?: string; + bootstrapStatus?: string; + bootstrapError?: string; + }; +} +export interface DbPoolPatch { + presetSlug?: string | null; + presetCommitId?: string | null; + databaseId?: string | null; + status?: string | null; + errorMessage?: string | null; + expiresAt?: string | null; + claimedBy?: string | null; + claimedAt?: string | null; + bootstrapStatus?: string | null; + bootstrapError?: string | null; +} +export interface UpdateDbPoolInput { clientMutationId?: string; id: string; - functionInvocationModulePatch: FunctionInvocationModulePatch; + dbPoolPatch: DbPoolPatch; } -export interface DeleteFunctionInvocationModuleInput { +export interface DeleteDbPoolInput { clientMutationId?: string; id: string; } @@ -9397,14 +10350,13 @@ export interface CreateFunctionModuleInput { clientMutationId?: string; functionModule: { databaseId: string; + entityField?: string; schemaId?: string; privateSchemaId?: string; publicSchemaName?: string; privateSchemaName?: string; definitionsTableId?: string; - secretDefinitionsTableId?: string; definitionsTableName?: string; - secretDefinitionsTableName?: string; apiName?: string; privateApiName?: string; scope?: string; @@ -9417,14 +10369,13 @@ export interface CreateFunctionModuleInput { } export interface FunctionModulePatch { databaseId?: string | null; + entityField?: string | null; schemaId?: string | null; privateSchemaId?: string | null; publicSchemaName?: string | null; privateSchemaName?: string | null; definitionsTableId?: string | null; - secretDefinitionsTableId?: string | null; definitionsTableName?: string | null; - secretDefinitionsTableName?: string | null; apiName?: string | null; privateApiName?: string | null; scope?: string | null; @@ -9443,207 +10394,201 @@ export interface DeleteFunctionModuleInput { clientMutationId?: string; id: string; } -export interface CreateInvitesModuleInput { +export interface CreateMerkleStoreModuleInput { clientMutationId?: string; - invitesModule: { + merkleStoreModule: { databaseId: string; + entityField?: string; schemaId?: string; privateSchemaId?: string; publicSchemaName?: string; privateSchemaName?: string; - emailsTableId?: string; - usersTableId?: string; - invitesTableId?: string; - claimedInvitesTableId?: string; - invitesTableName?: string; - claimedInvitesTableName?: string; - submitInviteCodeFunction?: string; - scope?: string; + objectTableId?: string; + storeTableId?: string; + commitTableId?: string; + refTableId?: string; prefix?: string; - entityTableId?: string; apiName?: string; privateApiName?: string; + scope?: string; + functionPrefix?: string; + permissionKey?: string; }; } -export interface InvitesModulePatch { +export interface MerkleStoreModulePatch { databaseId?: string | null; + entityField?: string | null; schemaId?: string | null; privateSchemaId?: string | null; publicSchemaName?: string | null; privateSchemaName?: string | null; - emailsTableId?: string | null; - usersTableId?: string | null; - invitesTableId?: string | null; - claimedInvitesTableId?: string | null; - invitesTableName?: string | null; - claimedInvitesTableName?: string | null; - submitInviteCodeFunction?: string | null; - scope?: string | null; + objectTableId?: string | null; + storeTableId?: string | null; + commitTableId?: string | null; + refTableId?: string | null; prefix?: string | null; - entityTableId?: string | null; apiName?: string | null; privateApiName?: string | null; + scope?: string | null; + functionPrefix?: string | null; + permissionKey?: string | null; } -export interface UpdateInvitesModuleInput { +export interface UpdateMerkleStoreModuleInput { clientMutationId?: string; id: string; - invitesModulePatch: InvitesModulePatch; + merkleStoreModulePatch: MerkleStoreModulePatch; } -export interface DeleteInvitesModuleInput { +export interface DeleteMerkleStoreModuleInput { clientMutationId?: string; id: string; } -export interface CreatePrincipalAuthModuleInput { +export interface CreateDatabaseProvisionModuleInput { clientMutationId?: string; - principalAuthModule: { - databaseId: string; - schemaId?: string; - principalsTableId?: string; - principalEntitiesTableId?: string; - principalScopeOverridesTableId?: string; - usersTableId?: string; - sessionsTableId?: string; - sessionCredentialsTableId?: string; - auditsTableId?: string; - principalsTableName?: string; - createPrincipalFunction?: string; - deletePrincipalFunction?: string; - createOrgPrincipalFunction?: string; - deleteOrgPrincipalFunction?: string; - createOrgApiKeyFunction?: string; - revokeOrgApiKeyFunction?: string; - apiName?: string; + databaseProvisionModule: { + databaseName: string; + ownerId: string; + subdomain?: string; + domain: string; + modules?: Record; + options?: Record; + bootstrapUser?: boolean; + status?: string; + errorMessage?: string; + sourceDatabaseId?: string; + bootstrapStatus?: string; + bootstrapError?: string; + databaseId?: string; + completedAt?: string; + fulfilledAt?: string; }; } -export interface PrincipalAuthModulePatch { +export interface DatabaseProvisionModulePatch { + databaseName?: string | null; + ownerId?: string | null; + subdomain?: string | null; + domain?: string | null; + modules?: Record | null; + options?: Record | null; + bootstrapUser?: boolean | null; + status?: string | null; + errorMessage?: string | null; + sourceDatabaseId?: string | null; + bootstrapStatus?: string | null; + bootstrapError?: string | null; databaseId?: string | null; - schemaId?: string | null; - principalsTableId?: string | null; - principalEntitiesTableId?: string | null; - principalScopeOverridesTableId?: string | null; - usersTableId?: string | null; - sessionsTableId?: string | null; - sessionCredentialsTableId?: string | null; - auditsTableId?: string | null; - principalsTableName?: string | null; - createPrincipalFunction?: string | null; - deletePrincipalFunction?: string | null; - createOrgPrincipalFunction?: string | null; - deleteOrgPrincipalFunction?: string | null; - createOrgApiKeyFunction?: string | null; - revokeOrgApiKeyFunction?: string | null; - apiName?: string | null; + completedAt?: string | null; + fulfilledAt?: string | null; } -export interface UpdatePrincipalAuthModuleInput { +export interface UpdateDatabaseProvisionModuleInput { clientMutationId?: string; id: string; - principalAuthModulePatch: PrincipalAuthModulePatch; + databaseProvisionModulePatch: DatabaseProvisionModulePatch; } -export interface DeletePrincipalAuthModuleInput { +export interface DeleteDatabaseProvisionModuleInput { clientMutationId?: string; id: string; } -export interface CreateComputeLogModuleInput { +export interface CreateFunctionInvocationModuleInput { clientMutationId?: string; - computeLogModule: { + functionInvocationModule: { databaseId: string; + entityField?: string; schemaId?: string; privateSchemaId?: string; publicSchemaName?: string; privateSchemaName?: string; - computeLogTableId?: string; - computeLogTableName?: string; - usageDailyTableId?: string; - usageDailyTableName?: string; - interval?: string; - retention?: string; - premake?: number; - scope?: string; - actorFkTableId?: string; - entityFkTableId?: string; - prefix?: string; + invocationsTableId?: string; + executionLogsTableId?: string; + invocationsTableName?: string; + executionLogsTableName?: string; apiName?: string; privateApiName?: string; + scope?: string; + prefix?: string; + entityTableId?: string; + policies?: Record; + provisions?: Record; + defaultPermissions?: string[]; }; } -export interface ComputeLogModulePatch { +export interface FunctionInvocationModulePatch { databaseId?: string | null; + entityField?: string | null; schemaId?: string | null; privateSchemaId?: string | null; publicSchemaName?: string | null; privateSchemaName?: string | null; - computeLogTableId?: string | null; - computeLogTableName?: string | null; - usageDailyTableId?: string | null; - usageDailyTableName?: string | null; - interval?: string | null; - retention?: string | null; - premake?: number | null; - scope?: string | null; - actorFkTableId?: string | null; - entityFkTableId?: string | null; - prefix?: string | null; + invocationsTableId?: string | null; + executionLogsTableId?: string | null; + invocationsTableName?: string | null; + executionLogsTableName?: string | null; apiName?: string | null; privateApiName?: string | null; + scope?: string | null; + prefix?: string | null; + entityTableId?: string | null; + policies?: Record | null; + provisions?: Record | null; + defaultPermissions?: string[] | null; } -export interface UpdateComputeLogModuleInput { +export interface UpdateFunctionInvocationModuleInput { clientMutationId?: string; id: string; - computeLogModulePatch: ComputeLogModulePatch; + functionInvocationModulePatch: FunctionInvocationModulePatch; } -export interface DeleteComputeLogModuleInput { +export interface DeleteFunctionInvocationModuleInput { clientMutationId?: string; id: string; } -export interface CreateInferenceLogModuleInput { +export interface CreateInvitesModuleInput { clientMutationId?: string; - inferenceLogModule: { + invitesModule: { databaseId: string; + entityField?: string; schemaId?: string; privateSchemaId?: string; publicSchemaName?: string; privateSchemaName?: string; - inferenceLogTableId?: string; - inferenceLogTableName?: string; - usageDailyTableId?: string; - usageDailyTableName?: string; - interval?: string; - retention?: string; - premake?: number; + emailsTableId?: string; + usersTableId?: string; + invitesTableId?: string; + claimedInvitesTableId?: string; + invitesTableName?: string; + claimedInvitesTableName?: string; + submitInviteCodeFunction?: string; scope?: string; - actorFkTableId?: string; - entityFkTableId?: string; prefix?: string; + entityTableId?: string; apiName?: string; privateApiName?: string; }; } -export interface InferenceLogModulePatch { +export interface InvitesModulePatch { databaseId?: string | null; + entityField?: string | null; schemaId?: string | null; privateSchemaId?: string | null; publicSchemaName?: string | null; privateSchemaName?: string | null; - inferenceLogTableId?: string | null; - inferenceLogTableName?: string | null; - usageDailyTableId?: string | null; - usageDailyTableName?: string | null; - interval?: string | null; - retention?: string | null; - premake?: number | null; + emailsTableId?: string | null; + usersTableId?: string | null; + invitesTableId?: string | null; + claimedInvitesTableId?: string | null; + invitesTableName?: string | null; + claimedInvitesTableName?: string | null; + submitInviteCodeFunction?: string | null; scope?: string | null; - actorFkTableId?: string | null; - entityFkTableId?: string | null; prefix?: string | null; + entityTableId?: string | null; apiName?: string | null; privateApiName?: string | null; } -export interface UpdateInferenceLogModuleInput { +export interface UpdateInvitesModuleInput { clientMutationId?: string; id: string; - inferenceLogModulePatch: InferenceLogModulePatch; + invitesModulePatch: InvitesModulePatch; } -export interface DeleteInferenceLogModuleInput { +export interface DeleteInvitesModuleInput { clientMutationId?: string; id: string; } @@ -9651,6 +10596,7 @@ export interface CreateNamespaceModuleInput { clientMutationId?: string; namespaceModule: { databaseId: string; + entityField?: string; schemaId?: string; privateSchemaId?: string; publicSchemaName?: string; @@ -9664,7 +10610,6 @@ export interface CreateNamespaceModuleInput { scope?: string; prefix?: string; entityTableId?: string; - platformNamespacesTableId?: string; policies?: Record; provisions?: Record; defaultPermissions?: string[]; @@ -9672,6 +10617,7 @@ export interface CreateNamespaceModuleInput { } export interface NamespaceModulePatch { databaseId?: string | null; + entityField?: string | null; schemaId?: string | null; privateSchemaId?: string | null; publicSchemaName?: string | null; @@ -9685,7 +10631,6 @@ export interface NamespaceModulePatch { scope?: string | null; prefix?: string | null; entityTableId?: string | null; - platformNamespacesTableId?: string | null; policies?: Record | null; provisions?: Record | null; defaultPermissions?: string[] | null; @@ -9699,68 +10644,73 @@ export interface DeleteNamespaceModuleInput { clientMutationId?: string; id: string; } -export interface CreateResourceModuleInput { +export interface CreatePlansModuleInput { clientMutationId?: string; - resourceModule: { + plansModule: { databaseId: string; schemaId?: string; privateSchemaId?: string; publicSchemaName?: string; privateSchemaName?: string; - resourcesTableId?: string; - resourceEventsTableId?: string; - resourcesTableName?: string; - resourceEventsTableName?: string; + plansTableId?: string; + plansTableName?: string; + planLimitsTableId?: string; + planLimitsTableName?: string; + planPricingTableId?: string; + planOverridesTableId?: string; + planMeterLimitsTableId?: string; + planCapsTableId?: string; + applyPlanFunction?: string; + applyPlanAggregateFunction?: string; + applyBillingPlanFunction?: string; + applyPlanCapsFunction?: string; + prefix?: string; apiName?: string; privateApiName?: string; - scope?: string; - prefix?: string; - entityTableId?: string; - namespaceModuleId?: string; - policies?: Record; - provisions?: Record; - defaultPermissions?: string[]; }; } -export interface ResourceModulePatch { +export interface PlansModulePatch { databaseId?: string | null; schemaId?: string | null; privateSchemaId?: string | null; publicSchemaName?: string | null; privateSchemaName?: string | null; - resourcesTableId?: string | null; - resourceEventsTableId?: string | null; - resourcesTableName?: string | null; - resourceEventsTableName?: string | null; + plansTableId?: string | null; + plansTableName?: string | null; + planLimitsTableId?: string | null; + planLimitsTableName?: string | null; + planPricingTableId?: string | null; + planOverridesTableId?: string | null; + planMeterLimitsTableId?: string | null; + planCapsTableId?: string | null; + applyPlanFunction?: string | null; + applyPlanAggregateFunction?: string | null; + applyBillingPlanFunction?: string | null; + applyPlanCapsFunction?: string | null; + prefix?: string | null; apiName?: string | null; privateApiName?: string | null; - scope?: string | null; - prefix?: string | null; - entityTableId?: string | null; - namespaceModuleId?: string | null; - policies?: Record | null; - provisions?: Record | null; - defaultPermissions?: string[] | null; } -export interface UpdateResourceModuleInput { +export interface UpdatePlansModuleInput { clientMutationId?: string; id: string; - resourceModulePatch: ResourceModulePatch; + plansModulePatch: PlansModulePatch; } -export interface DeleteResourceModuleInput { +export interface DeletePlansModuleInput { clientMutationId?: string; id: string; } -export interface CreateStorageLogModuleInput { +export interface CreateComputeLogModuleInput { clientMutationId?: string; - storageLogModule: { + computeLogModule: { databaseId: string; + entityField?: string; schemaId?: string; privateSchemaId?: string; publicSchemaName?: string; privateSchemaName?: string; - storageLogTableId?: string; - storageLogTableName?: string; + computeLogTableId?: string; + computeLogTableName?: string; usageDailyTableId?: string; usageDailyTableName?: string; interval?: string; @@ -9774,14 +10724,15 @@ export interface CreateStorageLogModuleInput { privateApiName?: string; }; } -export interface StorageLogModulePatch { +export interface ComputeLogModulePatch { databaseId?: string | null; + entityField?: string | null; schemaId?: string | null; privateSchemaId?: string | null; publicSchemaName?: string | null; privateSchemaName?: string | null; - storageLogTableId?: string | null; - storageLogTableName?: string | null; + computeLogTableId?: string | null; + computeLogTableName?: string | null; usageDailyTableId?: string | null; usageDailyTableName?: string | null; interval?: string | null; @@ -9794,25 +10745,26 @@ export interface StorageLogModulePatch { apiName?: string | null; privateApiName?: string | null; } -export interface UpdateStorageLogModuleInput { +export interface UpdateComputeLogModuleInput { clientMutationId?: string; id: string; - storageLogModulePatch: StorageLogModulePatch; + computeLogModulePatch: ComputeLogModulePatch; } -export interface DeleteStorageLogModuleInput { +export interface DeleteComputeLogModuleInput { clientMutationId?: string; id: string; } -export interface CreateTransferLogModuleInput { +export interface CreateInferenceLogModuleInput { clientMutationId?: string; - transferLogModule: { + inferenceLogModule: { databaseId: string; + entityField?: string; schemaId?: string; privateSchemaId?: string; publicSchemaName?: string; privateSchemaName?: string; - transferLogTableId?: string; - transferLogTableName?: string; + inferenceLogTableId?: string; + inferenceLogTableName?: string; usageDailyTableId?: string; usageDailyTableName?: string; interval?: string; @@ -9826,14 +10778,15 @@ export interface CreateTransferLogModuleInput { privateApiName?: string; }; } -export interface TransferLogModulePatch { +export interface InferenceLogModulePatch { databaseId?: string | null; + entityField?: string | null; schemaId?: string | null; privateSchemaId?: string | null; publicSchemaName?: string | null; privateSchemaName?: string | null; - transferLogTableId?: string | null; - transferLogTableName?: string | null; + inferenceLogTableId?: string | null; + inferenceLogTableName?: string | null; usageDailyTableId?: string | null; usageDailyTableName?: string | null; interval?: string | null; @@ -9846,122 +10799,120 @@ export interface TransferLogModulePatch { apiName?: string | null; privateApiName?: string | null; } -export interface UpdateTransferLogModuleInput { +export interface UpdateInferenceLogModuleInput { clientMutationId?: string; id: string; - transferLogModulePatch: TransferLogModulePatch; + inferenceLogModulePatch: InferenceLogModulePatch; } -export interface DeleteTransferLogModuleInput { +export interface DeleteInferenceLogModuleInput { clientMutationId?: string; id: string; } -export interface CreateFunctionDeploymentModuleInput { +export interface CreateStorageLogModuleInput { clientMutationId?: string; - functionDeploymentModule: { + storageLogModule: { databaseId: string; + entityField?: string; schemaId?: string; privateSchemaId?: string; publicSchemaName?: string; privateSchemaName?: string; - deploymentsTableId?: string; - deploymentEventsTableId?: string; - deploymentsTableName?: string; - deploymentEventsTableName?: string; - apiName?: string; - privateApiName?: string; + storageLogTableId?: string; + storageLogTableName?: string; + usageDailyTableId?: string; + usageDailyTableName?: string; + interval?: string; + retention?: string; + premake?: number; scope?: string; + actorFkTableId?: string; + entityFkTableId?: string; prefix?: string; - entityTableId?: string; - functionModuleId?: string; - namespaceModuleId?: string; - policies?: Record; - provisions?: Record; - defaultPermissions?: string[]; + apiName?: string; + privateApiName?: string; }; } -export interface FunctionDeploymentModulePatch { +export interface StorageLogModulePatch { databaseId?: string | null; + entityField?: string | null; schemaId?: string | null; privateSchemaId?: string | null; publicSchemaName?: string | null; privateSchemaName?: string | null; - deploymentsTableId?: string | null; - deploymentEventsTableId?: string | null; - deploymentsTableName?: string | null; - deploymentEventsTableName?: string | null; - apiName?: string | null; - privateApiName?: string | null; + storageLogTableId?: string | null; + storageLogTableName?: string | null; + usageDailyTableId?: string | null; + usageDailyTableName?: string | null; + interval?: string | null; + retention?: string | null; + premake?: number | null; scope?: string | null; + actorFkTableId?: string | null; + entityFkTableId?: string | null; prefix?: string | null; - entityTableId?: string | null; - functionModuleId?: string | null; - namespaceModuleId?: string | null; - policies?: Record | null; - provisions?: Record | null; - defaultPermissions?: string[] | null; + apiName?: string | null; + privateApiName?: string | null; } -export interface UpdateFunctionDeploymentModuleInput { +export interface UpdateStorageLogModuleInput { clientMutationId?: string; id: string; - functionDeploymentModulePatch: FunctionDeploymentModulePatch; + storageLogModulePatch: StorageLogModulePatch; } -export interface DeleteFunctionDeploymentModuleInput { +export interface DeleteStorageLogModuleInput { clientMutationId?: string; id: string; } -export interface CreatePlansModuleInput { +export interface CreateTransferLogModuleInput { clientMutationId?: string; - plansModule: { + transferLogModule: { databaseId: string; + entityField?: string; schemaId?: string; privateSchemaId?: string; publicSchemaName?: string; privateSchemaName?: string; - plansTableId?: string; - plansTableName?: string; - planLimitsTableId?: string; - planLimitsTableName?: string; - planPricingTableId?: string; - planOverridesTableId?: string; - planMeterLimitsTableId?: string; - planCapsTableId?: string; - applyPlanFunction?: string; - applyPlanAggregateFunction?: string; - applyBillingPlanFunction?: string; - applyPlanCapsFunction?: string; + transferLogTableId?: string; + transferLogTableName?: string; + usageDailyTableId?: string; + usageDailyTableName?: string; + interval?: string; + retention?: string; + premake?: number; + scope?: string; + actorFkTableId?: string; + entityFkTableId?: string; prefix?: string; apiName?: string; privateApiName?: string; }; } -export interface PlansModulePatch { +export interface TransferLogModulePatch { databaseId?: string | null; + entityField?: string | null; schemaId?: string | null; privateSchemaId?: string | null; publicSchemaName?: string | null; privateSchemaName?: string | null; - plansTableId?: string | null; - plansTableName?: string | null; - planLimitsTableId?: string | null; - planLimitsTableName?: string | null; - planPricingTableId?: string | null; - planOverridesTableId?: string | null; - planMeterLimitsTableId?: string | null; - planCapsTableId?: string | null; - applyPlanFunction?: string | null; - applyPlanAggregateFunction?: string | null; - applyBillingPlanFunction?: string | null; - applyPlanCapsFunction?: string | null; + transferLogTableId?: string | null; + transferLogTableName?: string | null; + usageDailyTableId?: string | null; + usageDailyTableName?: string | null; + interval?: string | null; + retention?: string | null; + premake?: number | null; + scope?: string | null; + actorFkTableId?: string | null; + entityFkTableId?: string | null; prefix?: string | null; apiName?: string | null; privateApiName?: string | null; } -export interface UpdatePlansModuleInput { +export interface UpdateTransferLogModuleInput { clientMutationId?: string; id: string; - plansModulePatch: PlansModulePatch; + transferLogModulePatch: TransferLogModulePatch; } -export interface DeletePlansModuleInput { +export interface DeleteTransferLogModuleInput { clientMutationId?: string; id: string; } @@ -10023,61 +10974,117 @@ export interface DeleteBillingProviderModuleInput { clientMutationId?: string; id: string; } -export interface CreateDbUsageModuleInput { +export interface CreateFunctionDeploymentModuleInput { clientMutationId?: string; - dbUsageModule: { + functionDeploymentModule: { databaseId: string; + entityField?: string; schemaId?: string; privateSchemaId?: string; publicSchemaName?: string; privateSchemaName?: string; - tableStatsLogTableId?: string; - tableStatsLogTableName?: string; - tableStatsDailyTableId?: string; - tableStatsDailyTableName?: string; - queryStatsLogTableId?: string; - queryStatsLogTableName?: string; - queryStatsDailyTableId?: string; - queryStatsDailyTableName?: string; - interval?: string; - retention?: string; - premake?: number; + deploymentsTableId?: string; + deploymentEventsTableId?: string; + deploymentsTableName?: string; + deploymentEventsTableName?: string; + apiName?: string; + privateApiName?: string; scope?: string; prefix?: string; + entityTableId?: string; + functionModuleId?: string; + namespaceModuleId?: string; + policies?: Record; + provisions?: Record; defaultPermissions?: string[]; + }; +} +export interface FunctionDeploymentModulePatch { + databaseId?: string | null; + entityField?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + publicSchemaName?: string | null; + privateSchemaName?: string | null; + deploymentsTableId?: string | null; + deploymentEventsTableId?: string | null; + deploymentsTableName?: string | null; + deploymentEventsTableName?: string | null; + apiName?: string | null; + privateApiName?: string | null; + scope?: string | null; + prefix?: string | null; + entityTableId?: string | null; + functionModuleId?: string | null; + namespaceModuleId?: string | null; + policies?: Record | null; + provisions?: Record | null; + defaultPermissions?: string[] | null; +} +export interface UpdateFunctionDeploymentModuleInput { + clientMutationId?: string; + id: string; + functionDeploymentModulePatch: FunctionDeploymentModulePatch; +} +export interface DeleteFunctionDeploymentModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreatePermissionsModuleInput { + clientMutationId?: string; + permissionsModule: { + databaseId: string; + entityField?: string; + schemaId?: string; + privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + tableId?: string; + tableName?: string; + defaultTableId?: string; + defaultTableName?: string; + bitlen?: number; + scope?: string; + prefix?: string; + entityTableId?: string; + actorTableId?: string; + getPaddedMask?: string; + getMask?: string; + getByMask?: string; + getMaskByName?: string; apiName?: string; privateApiName?: string; }; } -export interface DbUsageModulePatch { +export interface PermissionsModulePatch { databaseId?: string | null; + entityField?: string | null; schemaId?: string | null; privateSchemaId?: string | null; publicSchemaName?: string | null; privateSchemaName?: string | null; - tableStatsLogTableId?: string | null; - tableStatsLogTableName?: string | null; - tableStatsDailyTableId?: string | null; - tableStatsDailyTableName?: string | null; - queryStatsLogTableId?: string | null; - queryStatsLogTableName?: string | null; - queryStatsDailyTableId?: string | null; - queryStatsDailyTableName?: string | null; - interval?: string | null; - retention?: string | null; - premake?: number | null; + tableId?: string | null; + tableName?: string | null; + defaultTableId?: string | null; + defaultTableName?: string | null; + bitlen?: number | null; scope?: string | null; prefix?: string | null; - defaultPermissions?: string[] | null; + entityTableId?: string | null; + actorTableId?: string | null; + getPaddedMask?: string | null; + getMask?: string | null; + getByMask?: string | null; + getMaskByName?: string | null; apiName?: string | null; privateApiName?: string | null; } -export interface UpdateDbUsageModuleInput { +export interface UpdatePermissionsModuleInput { clientMutationId?: string; id: string; - dbUsageModulePatch: DbUsageModulePatch; + permissionsModulePatch: PermissionsModulePatch; } -export interface DeleteDbUsageModuleInput { +export interface DeletePermissionsModuleInput { clientMutationId?: string; id: string; } @@ -10085,6 +11092,7 @@ export interface CreateGraphExecutionModuleInput { clientMutationId?: string; graphExecutionModule: { databaseId: string; + entityField?: string; schemaId?: string; privateSchemaId?: string; publicSchemaName?: string; @@ -10108,6 +11116,7 @@ export interface CreateGraphExecutionModuleInput { } export interface GraphExecutionModulePatch { databaseId?: string | null; + entityField?: string | null; schemaId?: string | null; privateSchemaId?: string | null; publicSchemaName?: string | null; @@ -10141,6 +11150,7 @@ export interface CreateHierarchyModuleInput { clientMutationId?: string; hierarchyModule: { databaseId: string; + entityField?: string; schemaId?: string; privateSchemaId?: string; chartEdgesTableId?: string; @@ -10164,6 +11174,7 @@ export interface CreateHierarchyModuleInput { } export interface HierarchyModulePatch { databaseId?: string | null; + entityField?: string | null; schemaId?: string | null; privateSchemaId?: string | null; chartEdgesTableId?: string | null; @@ -10193,66 +11204,11 @@ export interface DeleteHierarchyModuleInput { clientMutationId?: string; id: string; } -export interface CreatePermissionsModuleInput { - clientMutationId?: string; - permissionsModule: { - databaseId: string; - schemaId?: string; - privateSchemaId?: string; - publicSchemaName?: string; - privateSchemaName?: string; - tableId?: string; - tableName?: string; - defaultTableId?: string; - defaultTableName?: string; - bitlen?: number; - scope?: string; - prefix?: string; - entityTableId?: string; - actorTableId?: string; - getPaddedMask?: string; - getMask?: string; - getByMask?: string; - getMaskByName?: string; - apiName?: string; - privateApiName?: string; - }; -} -export interface PermissionsModulePatch { - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - publicSchemaName?: string | null; - privateSchemaName?: string | null; - tableId?: string | null; - tableName?: string | null; - defaultTableId?: string | null; - defaultTableName?: string | null; - bitlen?: number | null; - scope?: string | null; - prefix?: string | null; - entityTableId?: string | null; - actorTableId?: string | null; - getPaddedMask?: string | null; - getMask?: string | null; - getByMask?: string | null; - getMaskByName?: string | null; - apiName?: string | null; - privateApiName?: string | null; -} -export interface UpdatePermissionsModuleInput { - clientMutationId?: string; - id: string; - permissionsModulePatch: PermissionsModulePatch; -} -export interface DeletePermissionsModuleInput { - clientMutationId?: string; - id: string; -} export interface CreateNotificationsModuleInput { clientMutationId?: string; notificationsModule: { databaseId: string; + entityField?: string; schemaId?: string; privateSchemaId?: string; publicSchemaName?: string; @@ -10278,6 +11234,7 @@ export interface CreateNotificationsModuleInput { } export interface NotificationsModulePatch { databaseId?: string | null; + entityField?: string | null; schemaId?: string | null; privateSchemaId?: string | null; publicSchemaName?: string | null; @@ -10309,10 +11266,73 @@ export interface DeleteNotificationsModuleInput { clientMutationId?: string; id: string; } +export interface CreateRelationProvisionInput { + clientMutationId?: string; + relationProvision: { + databaseId: string; + relationType: string; + sourceTableId: string; + targetTableId: string; + fieldName?: string; + deleteAction?: string; + isRequired?: boolean; + apiRequired?: boolean; + junctionTableId?: string; + junctionTableName?: string; + junctionSchemaId?: string; + sourceFieldName?: string; + targetFieldName?: string; + useCompositeKey?: boolean; + createIndex?: boolean; + exposeInApi?: boolean; + nodes?: Record; + grants?: Record; + policies?: Record; + outFieldId?: string; + outJunctionTableId?: string; + outSourceFieldId?: string; + outTargetFieldId?: string; + }; +} +export interface RelationProvisionPatch { + databaseId?: string | null; + relationType?: string | null; + sourceTableId?: string | null; + targetTableId?: string | null; + fieldName?: string | null; + deleteAction?: string | null; + isRequired?: boolean | null; + apiRequired?: boolean | null; + junctionTableId?: string | null; + junctionTableName?: string | null; + junctionSchemaId?: string | null; + sourceFieldName?: string | null; + targetFieldName?: string | null; + useCompositeKey?: boolean | null; + createIndex?: boolean | null; + exposeInApi?: boolean | null; + nodes?: Record | null; + grants?: Record | null; + policies?: Record | null; + outFieldId?: string | null; + outJunctionTableId?: string | null; + outSourceFieldId?: string | null; + outTargetFieldId?: string | null; +} +export interface UpdateRelationProvisionInput { + clientMutationId?: string; + id: string; + relationProvisionPatch: RelationProvisionPatch; +} +export interface DeleteRelationProvisionInput { + clientMutationId?: string; + id: string; +} export interface CreateProfilesModuleInput { clientMutationId?: string; profilesModule: { databaseId: string; + entityField?: string; schemaId?: string; privateSchemaId?: string; publicSchemaName?: string; @@ -10339,6 +11359,7 @@ export interface CreateProfilesModuleInput { } export interface ProfilesModulePatch { databaseId?: string | null; + entityField?: string | null; schemaId?: string | null; privateSchemaId?: string | null; publicSchemaName?: string | null; @@ -10394,6 +11415,8 @@ export interface CreateBillingModuleInput { meterDefaultsTableId?: string; meterDefaultsTableName?: string; recordUsageFunction?: string; + sweepExpiredSubscriptionsFunction?: string; + rollupUsageSummaryFunction?: string; prefix?: string; defaultPermissions?: string[]; apiName?: string; @@ -10421,6 +11444,8 @@ export interface BillingModulePatch { meterDefaultsTableId?: string | null; meterDefaultsTableName?: string | null; recordUsageFunction?: string | null; + sweepExpiredSubscriptionsFunction?: string | null; + rollupUsageSummaryFunction?: string | null; prefix?: string | null; defaultPermissions?: string[] | null; apiName?: string | null; @@ -10435,65 +11460,69 @@ export interface DeleteBillingModuleInput { clientMutationId?: string; id: string; } -export interface CreateRelationProvisionInput { +export interface CreateResourceModuleInput { clientMutationId?: string; - relationProvision: { + resourceModule: { databaseId: string; - relationType: string; - sourceTableId: string; - targetTableId: string; - fieldName?: string; - deleteAction?: string; - isRequired?: boolean; - apiRequired?: boolean; - junctionTableId?: string; - junctionTableName?: string; - junctionSchemaId?: string; - sourceFieldName?: string; - targetFieldName?: string; - useCompositeKey?: boolean; - createIndex?: boolean; - exposeInApi?: boolean; - nodes?: Record; - grants?: Record; + entityField?: string; + schemaId?: string; + privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + resourcesTableId?: string; + resourceEventsTableId?: string; + resourceStatusChecksTableId?: string; + resourceDefinitionsTableId?: string; + resourcesTableName?: string; + resourceEventsTableName?: string; + resourceStatusChecksTableName?: string; + resourceDefinitionsTableName?: string; + resolvedRequirementsViewName?: string; + requirementsStateViewName?: string; + apiName?: string; + privateApiName?: string; + scope?: string; + prefix?: string; + entityTableId?: string; + namespaceModuleId?: string; policies?: Record; - outFieldId?: string; - outJunctionTableId?: string; - outSourceFieldId?: string; - outTargetFieldId?: string; + provisions?: Record; + defaultPermissions?: string[]; }; } -export interface RelationProvisionPatch { +export interface ResourceModulePatch { databaseId?: string | null; - relationType?: string | null; - sourceTableId?: string | null; - targetTableId?: string | null; - fieldName?: string | null; - deleteAction?: string | null; - isRequired?: boolean | null; - apiRequired?: boolean | null; - junctionTableId?: string | null; - junctionTableName?: string | null; - junctionSchemaId?: string | null; - sourceFieldName?: string | null; - targetFieldName?: string | null; - useCompositeKey?: boolean | null; - createIndex?: boolean | null; - exposeInApi?: boolean | null; - nodes?: Record | null; - grants?: Record | null; + entityField?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + publicSchemaName?: string | null; + privateSchemaName?: string | null; + resourcesTableId?: string | null; + resourceEventsTableId?: string | null; + resourceStatusChecksTableId?: string | null; + resourceDefinitionsTableId?: string | null; + resourcesTableName?: string | null; + resourceEventsTableName?: string | null; + resourceStatusChecksTableName?: string | null; + resourceDefinitionsTableName?: string | null; + resolvedRequirementsViewName?: string | null; + requirementsStateViewName?: string | null; + apiName?: string | null; + privateApiName?: string | null; + scope?: string | null; + prefix?: string | null; + entityTableId?: string | null; + namespaceModuleId?: string | null; policies?: Record | null; - outFieldId?: string | null; - outJunctionTableId?: string | null; - outSourceFieldId?: string | null; - outTargetFieldId?: string | null; + provisions?: Record | null; + defaultPermissions?: string[] | null; } -export interface UpdateRelationProvisionInput { +export interface UpdateResourceModuleInput { clientMutationId?: string; id: string; - relationProvisionPatch: RelationProvisionPatch; + resourceModulePatch: ResourceModulePatch; } -export interface DeleteRelationProvisionInput { +export interface DeleteResourceModuleInput { clientMutationId?: string; id: string; } @@ -10558,12 +11587,80 @@ export interface UserAuthModulePatch { apiName?: string | null; privateApiName?: string | null; } -export interface UpdateUserAuthModuleInput { +export interface UpdateUserAuthModuleInput { + clientMutationId?: string; + id: string; + userAuthModulePatch: UserAuthModulePatch; +} +export interface DeleteUserAuthModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateDbUsageModuleInput { + clientMutationId?: string; + dbUsageModule: { + databaseId: string; + entityField?: string; + schemaId?: string; + privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + tableStatsLogTableId?: string; + tableStatsLogTableName?: string; + tableStatsDailyTableId?: string; + tableStatsDailyTableName?: string; + queryStatsLogTableId?: string; + queryStatsLogTableName?: string; + queryStatsDailyTableId?: string; + queryStatsDailyTableName?: string; + collectDbTableStatsFunction?: string; + collectDbQueryStatsFunction?: string; + rollupDbTableStatsDailyFunction?: string; + rollupDbQueryStatsDailyFunction?: string; + interval?: string; + retention?: string; + premake?: number; + scope?: string; + prefix?: string; + defaultPermissions?: string[]; + apiName?: string; + privateApiName?: string; + }; +} +export interface DbUsageModulePatch { + databaseId?: string | null; + entityField?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + publicSchemaName?: string | null; + privateSchemaName?: string | null; + tableStatsLogTableId?: string | null; + tableStatsLogTableName?: string | null; + tableStatsDailyTableId?: string | null; + tableStatsDailyTableName?: string | null; + queryStatsLogTableId?: string | null; + queryStatsLogTableName?: string | null; + queryStatsDailyTableId?: string | null; + queryStatsDailyTableName?: string | null; + collectDbTableStatsFunction?: string | null; + collectDbQueryStatsFunction?: string | null; + rollupDbTableStatsDailyFunction?: string | null; + rollupDbQueryStatsDailyFunction?: string | null; + interval?: string | null; + retention?: string | null; + premake?: number | null; + scope?: string | null; + prefix?: string | null; + defaultPermissions?: string[] | null; + apiName?: string | null; + privateApiName?: string | null; +} +export interface UpdateDbUsageModuleInput { clientMutationId?: string; id: string; - userAuthModulePatch: UserAuthModulePatch; + dbUsageModulePatch: DbUsageModulePatch; } -export interface DeleteUserAuthModuleInput { +export interface DeleteDbUsageModuleInput { clientMutationId?: string; id: string; } @@ -10571,6 +11668,7 @@ export interface CreateAgentModuleInput { clientMutationId?: string; agentModule: { databaseId: string; + entityField?: string; schemaId?: string; privateSchemaId?: string; publicSchemaName?: string; @@ -10608,6 +11706,7 @@ export interface CreateAgentModuleInput { } export interface AgentModulePatch { databaseId?: string | null; + entityField?: string | null; schemaId?: string | null; privateSchemaId?: string | null; publicSchemaName?: string | null; @@ -10655,6 +11754,7 @@ export interface CreateLimitsModuleInput { clientMutationId?: string; limitsModule: { databaseId: string; + entityField?: string; schemaId?: string; privateSchemaId?: string; publicSchemaName?: string; @@ -10693,6 +11793,7 @@ export interface CreateLimitsModuleInput { } export interface LimitsModulePatch { databaseId?: string | null; + entityField?: string | null; schemaId?: string | null; privateSchemaId?: string | null; publicSchemaName?: string | null; @@ -10737,102 +11838,6 @@ export interface DeleteLimitsModuleInput { clientMutationId?: string; id: string; } -export interface CreateMembershipsModuleInput { - clientMutationId?: string; - membershipsModule: { - databaseId: string; - schemaId?: string; - privateSchemaId?: string; - publicSchemaName?: string; - privateSchemaName?: string; - membershipsTableId?: string; - membershipsTableName?: string; - membersTableId?: string; - membersTableName?: string; - membershipDefaultsTableId?: string; - membershipDefaultsTableName?: string; - membershipSettingsTableId?: string; - membershipSettingsTableName?: string; - grantsTableId?: string; - grantsTableName?: string; - actorTableId?: string; - limitsTableId?: string; - defaultLimitsTableId?: string; - permissionsTableId?: string; - defaultPermissionsTableId?: string; - sprtTableId?: string; - adminGrantsTableId?: string; - adminGrantsTableName?: string; - ownerGrantsTableId?: string; - ownerGrantsTableName?: string; - scope?: string; - prefix?: string; - entityTableId?: string; - entityTableOwnerId?: string; - getOrgFn?: string; - actorMaskCheck?: string; - actorPermCheck?: string; - entityIdsByMask?: string; - entityIdsByPerm?: string; - entityIdsFunction?: string; - memberProfilesTableId?: string; - permissionDefaultPermissionsTableId?: string; - permissionDefaultGrantsTableId?: string; - apiName?: string; - privateApiName?: string; - }; -} -export interface MembershipsModulePatch { - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - publicSchemaName?: string | null; - privateSchemaName?: string | null; - membershipsTableId?: string | null; - membershipsTableName?: string | null; - membersTableId?: string | null; - membersTableName?: string | null; - membershipDefaultsTableId?: string | null; - membershipDefaultsTableName?: string | null; - membershipSettingsTableId?: string | null; - membershipSettingsTableName?: string | null; - grantsTableId?: string | null; - grantsTableName?: string | null; - actorTableId?: string | null; - limitsTableId?: string | null; - defaultLimitsTableId?: string | null; - permissionsTableId?: string | null; - defaultPermissionsTableId?: string | null; - sprtTableId?: string | null; - adminGrantsTableId?: string | null; - adminGrantsTableName?: string | null; - ownerGrantsTableId?: string | null; - ownerGrantsTableName?: string | null; - scope?: string | null; - prefix?: string | null; - entityTableId?: string | null; - entityTableOwnerId?: string | null; - getOrgFn?: string | null; - actorMaskCheck?: string | null; - actorPermCheck?: string | null; - entityIdsByMask?: string | null; - entityIdsByPerm?: string | null; - entityIdsFunction?: string | null; - memberProfilesTableId?: string | null; - permissionDefaultPermissionsTableId?: string | null; - permissionDefaultGrantsTableId?: string | null; - apiName?: string | null; - privateApiName?: string | null; -} -export interface UpdateMembershipsModuleInput { - clientMutationId?: string; - id: string; - membershipsModulePatch: MembershipsModulePatch; -} -export interface DeleteMembershipsModuleInput { - clientMutationId?: string; - id: string; -} export interface CreateEntityTypeProvisionInput { clientMutationId?: string; entityTypeProvision: { @@ -10871,7 +11876,6 @@ export interface CreateEntityTypeProvisionInput { outDefinitionsTableId?: string; outInvocationsTableId?: string; outExecutionLogsTableId?: string; - outSecretDefinitionsTableId?: string; outGraphModuleId?: string; outGraphsTableId?: string; outAgentModuleId?: string; @@ -10913,7 +11917,6 @@ export interface EntityTypeProvisionPatch { outDefinitionsTableId?: string | null; outInvocationsTableId?: string | null; outExecutionLogsTableId?: string | null; - outSecretDefinitionsTableId?: string | null; outGraphModuleId?: string | null; outGraphsTableId?: string | null; outAgentModuleId?: string | null; @@ -10944,6 +11947,7 @@ export interface CreateStorageModuleInput { policies?: Record; provisions?: Record; entityTableId?: string; + entityField?: string; endpoint?: string; publicUrlPrefix?: string; provider?: string; @@ -10985,6 +11989,7 @@ export interface StorageModulePatch { policies?: Record | null; provisions?: Record | null; entityTableId?: string | null; + entityField?: string | null; endpoint?: string | null; publicUrlPrefix?: string | null; provider?: string | null; @@ -11019,10 +12024,109 @@ export interface DeleteStorageModuleInput { clientMutationId?: string; id: string; } +export interface CreateMembershipsModuleInput { + clientMutationId?: string; + membershipsModule: { + databaseId: string; + entityField?: string; + schemaId?: string; + privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + membershipsTableId?: string; + membershipsTableName?: string; + membersTableId?: string; + membersTableName?: string; + membershipDefaultsTableId?: string; + membershipDefaultsTableName?: string; + membershipSettingsTableId?: string; + membershipSettingsTableName?: string; + grantsTableId?: string; + grantsTableName?: string; + actorTableId?: string; + limitsTableId?: string; + defaultLimitsTableId?: string; + permissionsTableId?: string; + defaultPermissionsTableId?: string; + sprtTableId?: string; + adminGrantsTableId?: string; + adminGrantsTableName?: string; + ownerGrantsTableId?: string; + ownerGrantsTableName?: string; + scope?: string; + prefix?: string; + entityTableId?: string; + entityTableOwnerId?: string; + getOrgFn?: string; + actorMaskCheck?: string; + actorPermCheck?: string; + entityIdsByMask?: string; + entityIdsByPerm?: string; + entityIdsFunction?: string; + memberProfilesTableId?: string; + permissionDefaultPermissionsTableId?: string; + permissionDefaultGrantsTableId?: string; + apiName?: string; + privateApiName?: string; + }; +} +export interface MembershipsModulePatch { + databaseId?: string | null; + entityField?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + publicSchemaName?: string | null; + privateSchemaName?: string | null; + membershipsTableId?: string | null; + membershipsTableName?: string | null; + membersTableId?: string | null; + membersTableName?: string | null; + membershipDefaultsTableId?: string | null; + membershipDefaultsTableName?: string | null; + membershipSettingsTableId?: string | null; + membershipSettingsTableName?: string | null; + grantsTableId?: string | null; + grantsTableName?: string | null; + actorTableId?: string | null; + limitsTableId?: string | null; + defaultLimitsTableId?: string | null; + permissionsTableId?: string | null; + defaultPermissionsTableId?: string | null; + sprtTableId?: string | null; + adminGrantsTableId?: string | null; + adminGrantsTableName?: string | null; + ownerGrantsTableId?: string | null; + ownerGrantsTableName?: string | null; + scope?: string | null; + prefix?: string | null; + entityTableId?: string | null; + entityTableOwnerId?: string | null; + getOrgFn?: string | null; + actorMaskCheck?: string | null; + actorPermCheck?: string | null; + entityIdsByMask?: string | null; + entityIdsByPerm?: string | null; + entityIdsFunction?: string | null; + memberProfilesTableId?: string | null; + permissionDefaultPermissionsTableId?: string | null; + permissionDefaultGrantsTableId?: string | null; + apiName?: string | null; + privateApiName?: string | null; +} +export interface UpdateMembershipsModuleInput { + clientMutationId?: string; + id: string; + membershipsModulePatch: MembershipsModulePatch; +} +export interface DeleteMembershipsModuleInput { + clientMutationId?: string; + id: string; +} export interface CreateEventsModuleInput { clientMutationId?: string; eventsModule: { databaseId: string; + entityField?: string; schemaId?: string; privateSchemaId?: string; publicSchemaName?: string; @@ -11049,7 +12153,6 @@ export interface CreateEventsModuleInput { tgEventBool?: string; upsertAggregate?: string; tgUpdateAggregates?: string; - pruneEvents?: string; stepsRequired?: string; levelAchieved?: string; tgCheckAchievements?: string; @@ -11069,6 +12172,7 @@ export interface CreateEventsModuleInput { } export interface EventsModulePatch { databaseId?: string | null; + entityField?: string | null; schemaId?: string | null; privateSchemaId?: string | null; publicSchemaName?: string | null; @@ -11095,7 +12199,6 @@ export interface EventsModulePatch { tgEventBool?: string | null; upsertAggregate?: string | null; tgUpdateAggregates?: string | null; - pruneEvents?: string | null; stepsRequired?: string | null; levelAchieved?: string | null; tgCheckAchievements?: string | null; @@ -11132,6 +12235,7 @@ export const connectionFieldsMap = { }, MerkleStoreModule: { graphModules: 'GraphModule', + dbPresetModules: 'DbPresetModule', }, } as Record>; // ============ Custom Input Types (from schema) ============ @@ -11330,6 +12434,15 @@ export interface MerkleStoreModuleToManyGraphModuleFilter { /** Filters to entities where no related entity matches. */ none?: GraphModuleFilter; } +/** 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 at least one related entity matches. */ + some?: DbPresetModuleFilter; + /** Filters to entities where every related entity matches. */ + every?: DbPresetModuleFilter; + /** Filters to entities where no related entity matches. */ + none?: DbPresetModuleFilter; +} /** An input for mutations affecting `DefaultIdsModule` */ export interface DefaultIdsModuleInput { id?: string; @@ -11341,35 +12454,17 @@ export interface MembershipTypesModuleInput { databaseId: string; schemaId?: string; tableId?: string; - tableName?: string; -} -/** An input for mutations affecting `UserStateModule` */ -export interface UserStateModuleInput { - id?: string; - databaseId: string; - schemaId?: string; - tableId?: string; - tableName?: string; -} -/** An input for mutations affecting `SessionSecretsModule` */ -export interface SessionSecretsModuleInput { - id?: string; - databaseId: string; - schemaId?: string; - tableId?: string; - tableName?: string; - /** Resolved reference to sessions_module.sessions_table, used to FK session_secrets.session_id with ON DELETE CASCADE. */ - sessionsTableId?: string; + tableName?: string; } -/** An input for mutations affecting `ConfigSecretsOrgModule` */ -export interface ConfigSecretsOrgModuleInput { +/** An input for mutations affecting `SessionSecretsModule` */ +export interface SessionSecretsModuleInput { id?: string; databaseId: string; schemaId?: string; tableId?: string; tableName?: string; - apiName?: string; - privateApiName?: string; + /** Resolved reference to sessions_module.sessions_table, used to FK session_secrets.session_id with ON DELETE CASCADE. */ + sessionsTableId?: string; } /** An input for mutations affecting `DevicesModule` */ export interface DevicesModuleInput { @@ -11391,35 +12486,33 @@ export interface I18NModuleInput { apiName?: string; privateApiName?: string; } -/** An input for mutations affecting `UserCredentialsModule` */ -export interface UserCredentialsModuleInput { +/** An input for mutations affecting `UserSettingsModule` */ +export interface UserSettingsModuleInput { id?: string; databaseId: string; schemaId?: string; tableId?: string; + ownerTableId?: string; tableName?: string; apiName?: string; - privateApiName?: string; } -/** An input for mutations affecting `UserSettingsModule` */ -export interface UserSettingsModuleInput { +/** An input for mutations affecting `UserStateModule` */ +export interface UserStateModuleInput { id?: string; databaseId: string; + entityField?: string; schemaId?: string; tableId?: string; - ownerTableId?: string; tableName?: string; - apiName?: string; } -/** An input for mutations affecting `ConfigSecretsUserModule` */ -export interface ConfigSecretsUserModuleInput { +/** An input for mutations affecting `UserCredentialsModule` */ +export interface UserCredentialsModuleInput { id?: string; databaseId: string; + entityField?: string; schemaId?: string; tableId?: string; tableName?: string; - configDefinitionsTableId?: string; - apiName?: string; privateApiName?: string; } /** An input for mutations affecting `ConnectedAccountsModule` */ @@ -11495,6 +12588,17 @@ export interface WebauthnCredentialsModuleInput { apiName?: string; privateApiName?: string; } +/** An input for mutations affecting `ConfigSecretsUserModule` */ +export interface ConfigSecretsUserModuleInput { + id?: string; + databaseId: string; + entityField?: string; + schemaId?: string; + tableId?: string; + tableName?: string; + apiName?: string; + privateApiName?: string; +} /** An input for mutations affecting `CryptoAddressesModule` */ export interface CryptoAddressesModuleInput { id?: string; @@ -11523,23 +12627,6 @@ export interface DenormalizedTableFieldInput { funcName?: string; funcOrder?: number; } -/** An input for mutations affecting `IdentityProvidersModule` */ -export interface IdentityProvidersModuleInput { - id?: string; - databaseId: string; - schemaId?: string; - /** Private schema that hosts SECURITY DEFINER admin helpers which write to identity_providers (create / update / enable / disable / rotate-secret / delete) and the per-app quota check. */ - privateSchemaId?: string; - publicSchemaName?: string; - privateSchemaName?: string; - tableId?: string; - tableName?: string; - apiName?: string; - privateApiName?: string; - scope?: string; - prefix?: string; - entityTableId?: string; -} /** An input for mutations affecting `RlsModule` */ export interface RlsModuleInput { id?: string; @@ -11726,90 +12813,155 @@ export interface SecureTableProvisionInput { /** 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[]; } -/** An input for mutations affecting `DatabaseProvisionModule` */ -export interface DatabaseProvisionModuleInput { +/** An input for mutations affecting `IdentityProvidersModule` */ +export interface IdentityProvidersModuleInput { id?: string; - /** The name for the new database */ - databaseName: string; - /** UUID of the user who owns this database */ - ownerId: string; - /** Subdomain prefix for the database. If null, auto-generated using unique_names + random chars */ - subdomain?: string; - /** Base domain for the database (e.g., example.com) */ + databaseId: string; + entityField?: string; + schemaId?: string; + /** Private schema that hosts SECURITY DEFINER admin helpers which write to identity_providers (create / update / enable / disable / rotate-secret / delete) and the per-app quota check. */ + privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + tableId?: string; + tableName?: string; + apiName?: string; + privateApiName?: string; + scope?: string; + prefix?: string; + entityTableId?: string; +} +/** An input for mutations affecting `IntegrationProvidersModule` */ +export interface IntegrationProvidersModuleInput { + id?: string; + databaseId: string; + entityField?: string; + schemaId?: string; + privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + tableId?: string; + tableName?: string; + apiName?: string; + privateApiName?: string; + scope?: string; + prefix?: string; + entityTableId?: string; +} +/** An input for mutations affecting `DbPoolConfig` */ +export interface DbPoolConfigInput { + id?: string; + /** Slug of the db_presets catalog row this pool serves */ + presetSlug: string; + /** Base domain used when provisioning warm databases */ domain: string; - /** JSONB array of modules to install. Each element is either a string ("users_module") or a [name, options] tuple (["permissions_module", {"scope": "app"}]) */ - modules?: Record; - /** Additional configuration options for provisioning */ - options?: Record; - /** When true, copies the owner user and password hash from source database to the newly provisioned database */ - bootstrapUser?: boolean; - /** Current status: pending, in_progress, completed, or failed */ - status?: string; - errorMessage?: string; - /** The ID of the provisioned database (set by trigger before RLS check) */ - databaseId?: string; + /** Platform pool service org that owns warm databases until they are claimed */ + poolOwnerId: string; + /** Minimum number of ready warm databases the reconciler maintains */ + min?: number; + /** Maximum number of warming + ready databases the reconciler will keep */ + max?: number; + /** How long a ready warm database stays claimable before it expires */ + warmTtl?: IntervalInput; + /** When false the reconciler stops warming and the claim path falls through to cold provisioning */ + enabled?: boolean; createdAt?: string; updatedAt?: string; - completedAt?: string; } -/** An input for mutations affecting `ConfigSecretsModule` */ -export interface ConfigSecretsModuleInput { +/** An input for mutations affecting `RealtimeModule` */ +export interface RealtimeModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + subscriptionsSchemaId?: string; + changeLogTableId?: string; + listenerNodeTableId?: string; + sourceRegistryTableId?: string; + retentionHours?: number; + premake?: number; + interval?: string; + notifyChannel?: string; + apiName?: string; + privateApiName?: string; +} +/** An input for mutations affecting `InfraSecretsModule` */ +export interface InfraSecretsModuleInput { id?: string; databaseId: string; schemaId?: string; privateSchemaId?: string; publicSchemaName?: string; privateSchemaName?: string; - tableId?: string; - configDefinitionsTableId?: string; - tableName?: string; + secretsTableId?: string; + secretsTableName?: string; apiName?: string; privateApiName?: string; scope?: string; prefix?: string; entityTableId?: string; + entityField?: string; policies?: Record; provisions?: Record; - hasConfig?: boolean; } -/** An input for mutations affecting `GraphModule` */ -export interface GraphModuleInput { +/** An input for mutations affecting `InternalSecretsModule` */ +export interface InternalSecretsModuleInput { id?: string; databaseId: string; - publicSchemaId?: string; + schemaId?: string; privateSchemaId?: string; publicSchemaName?: string; privateSchemaName?: string; + internalSecretsTableId?: string; + internalSecretsTableName?: string; + apiName?: string; + privateApiName?: string; scope?: string; prefix?: string; + entityTableId?: string; + entityField?: string; + policies?: Record; + provisions?: Record; +} +/** An input for mutations affecting `DbPresetModule` */ +export interface DbPresetModuleInput { + id?: string; + databaseId: string; + publicSchemaId?: string; + privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + scope: string; + prefix: string; merkleStoreModuleId: string; - graphsTableId?: string; + dbPresetsTableId?: string; + storeName: string; apiName?: string; privateApiName?: string; entityTableId?: string; policies?: Record; provisions?: Record; - defaultPermissions?: string[]; createdAt?: string; } -/** An input for mutations affecting `MerkleStoreModule` */ -export interface MerkleStoreModuleInput { +/** An input for mutations affecting `GraphModule` */ +export interface GraphModuleInput { id?: string; databaseId: string; - schemaId?: string; + entityField?: string; + publicSchemaId?: string; privateSchemaId?: string; publicSchemaName?: string; privateSchemaName?: string; - objectTableId?: string; - storeTableId?: string; - commitTableId?: string; - refTableId?: string; + scope?: string; prefix?: string; + merkleStoreModuleId: string; + graphsTableId?: string; apiName?: string; privateApiName?: string; - scope?: string; - functionPrefix?: string; - permissionKey?: string; + entityTableId?: string; + policies?: Record; + provisions?: Record; + defaultPermissions?: string[]; createdAt?: string; } /** An input for mutations affecting `RateLimitMetersModule` */ @@ -11832,22 +12984,24 @@ export interface RateLimitMetersModuleInput { apiName?: string; privateApiName?: string; } -/** An input for mutations affecting `RealtimeModule` */ -export interface RealtimeModuleInput { +/** An input for mutations affecting `InfraConfigModule` */ +export interface InfraConfigModuleInput { id?: string; databaseId: string; + entityField?: string; schemaId?: string; privateSchemaId?: string; - subscriptionsSchemaId?: string; - changeLogTableId?: string; - listenerNodeTableId?: string; - sourceRegistryTableId?: string; - retentionHours?: number; - premake?: number; - interval?: string; - notifyChannel?: string; + publicSchemaName?: string; + privateSchemaName?: string; + configTableId?: string; + configTableName?: string; apiName?: string; privateApiName?: string; + scope?: string; + prefix?: string; + entityTableId?: string; + policies?: Record; + provisions?: Record; } /** An input for mutations affecting `WebauthnAuthModule` */ export interface WebauthnAuthModuleInput { @@ -11868,10 +13022,129 @@ export interface WebauthnAuthModuleInput { residentKey?: string; challengeExpiry?: IntervalInput; } +/** An input for mutations affecting `PrincipalAuthModule` */ +export interface PrincipalAuthModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + principalsTableId?: string; + principalEntitiesTableId?: string; + principalScopeOverridesTableId?: string; + usersTableId?: string; + sessionsTableId?: string; + sessionCredentialsTableId?: string; + auditsTableId?: string; + principalsTableName?: string; + createPrincipalFunction?: string; + deletePrincipalFunction?: string; + createOrgPrincipalFunction?: string; + deleteOrgPrincipalFunction?: string; + createOrgApiKeyFunction?: string; + revokeOrgApiKeyFunction?: string; + apiName?: string; +} +/** An input for mutations affecting `DbPool` */ +export interface DbPoolInput { + id?: string; + /** Slug of the db_presets catalog row this entry was baked from */ + presetSlug: string; + /** The db_presets merkle commit_id the warm database was baked from; a mismatch with the current head marks the entry stale */ + presetCommitId?: string; + databaseId?: string; + /** Lifecycle: warming, ready, claimed, stale, expired, or failed */ + status?: string; + errorMessage?: string; + /** When a ready entry expires (set from db_pool_config.warm_ttl at warm time) */ + expiresAt?: string; + /** User the database was transferred to at claim time */ + claimedBy?: string; + claimedAt?: string; + /** Status of the deferred owner bootstrap job after claim: not_requested, pending, completed, or failed */ + bootstrapStatus?: string; + bootstrapError?: string; + createdAt?: string; + updatedAt?: string; +} +/** An input for mutations affecting `FunctionModule` */ +export interface FunctionModuleInput { + id?: string; + databaseId: string; + entityField?: string; + schemaId?: string; + privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + definitionsTableId?: string; + definitionsTableName?: string; + apiName?: string; + privateApiName?: string; + scope?: string; + prefix?: string; + entityTableId?: string; + policies?: Record; + provisions?: Record; + defaultPermissions?: string[]; +} +/** An input for mutations affecting `MerkleStoreModule` */ +export interface MerkleStoreModuleInput { + id?: string; + databaseId: string; + entityField?: string; + schemaId?: string; + privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + objectTableId?: string; + storeTableId?: string; + commitTableId?: string; + refTableId?: string; + prefix?: string; + apiName?: string; + privateApiName?: string; + scope?: string; + functionPrefix?: string; + permissionKey?: string; + createdAt?: string; +} +/** An input for mutations affecting `DatabaseProvisionModule` */ +export interface DatabaseProvisionModuleInput { + id?: string; + /** The name for the new database */ + databaseName: string; + /** UUID of the user who owns this database */ + ownerId: string; + /** Subdomain prefix for the database. If null, auto-generated using unique_names + random chars */ + subdomain?: string; + /** Base domain for the database (e.g., example.com) */ + domain: string; + /** JSONB array of modules to install. Each element is either a string ("users_module") or a [name, options] tuple (["permissions_module", {"scope": "app"}]) */ + modules?: Record; + /** Additional configuration options for provisioning */ + options?: Record; + /** When true, copies the owner user and password hash from source database to the newly provisioned database */ + bootstrapUser?: boolean; + /** Current status: pending, in_progress, completed, or failed */ + status?: string; + errorMessage?: string; + /** The database the owner user is copied from during bootstrap (captured from JWT context at provision time) */ + sourceDatabaseId?: string; + /** Status of the deferred owner bootstrap job: not_requested, pending, completed, or failed */ + bootstrapStatus?: string; + /** Error message from the most recent failed bootstrap attempt */ + bootstrapError?: string; + /** The ID of the provisioned database (set by trigger before RLS check) */ + databaseId?: string; + createdAt?: string; + updatedAt?: string; + completedAt?: string; + /** 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; +} /** An input for mutations affecting `FunctionInvocationModule` */ export interface FunctionInvocationModuleInput { id?: string; databaseId: string; + entityField?: string; schemaId?: string; privateSchemaId?: string; publicSchemaName?: string; @@ -11889,31 +13162,11 @@ export interface FunctionInvocationModuleInput { provisions?: Record; defaultPermissions?: string[]; } -/** An input for mutations affecting `FunctionModule` */ -export interface FunctionModuleInput { - id?: string; - databaseId: string; - schemaId?: string; - privateSchemaId?: string; - publicSchemaName?: string; - privateSchemaName?: string; - definitionsTableId?: string; - secretDefinitionsTableId?: string; - definitionsTableName?: string; - secretDefinitionsTableName?: string; - apiName?: string; - privateApiName?: string; - scope?: string; - prefix?: string; - entityTableId?: string; - policies?: Record; - provisions?: Record; - defaultPermissions?: string[]; -} /** An input for mutations affecting `InvitesModule` */ export interface InvitesModuleInput { id?: string; databaseId: string; + entityField?: string; schemaId?: string; privateSchemaId?: string; publicSchemaName?: string; @@ -11931,31 +13184,57 @@ export interface InvitesModuleInput { apiName?: string; privateApiName?: string; } -/** An input for mutations affecting `PrincipalAuthModule` */ -export interface PrincipalAuthModuleInput { +/** An input for mutations affecting `NamespaceModule` */ +export interface NamespaceModuleInput { id?: string; databaseId: string; + entityField?: string; schemaId?: string; - principalsTableId?: string; - principalEntitiesTableId?: string; - principalScopeOverridesTableId?: string; - usersTableId?: string; - sessionsTableId?: string; - sessionCredentialsTableId?: string; - auditsTableId?: string; - principalsTableName?: string; - createPrincipalFunction?: string; - deletePrincipalFunction?: string; - createOrgPrincipalFunction?: string; - deleteOrgPrincipalFunction?: string; - createOrgApiKeyFunction?: string; - revokeOrgApiKeyFunction?: string; + privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + namespacesTableId?: string; + namespaceEventsTableId?: string; + namespacesTableName?: string; + namespaceEventsTableName?: string; + apiName?: string; + privateApiName?: string; + scope?: string; + prefix?: string; + entityTableId?: string; + policies?: Record; + provisions?: Record; + defaultPermissions?: string[]; +} +/** An input for mutations affecting `PlansModule` */ +export interface PlansModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + plansTableId?: string; + plansTableName?: string; + planLimitsTableId?: string; + planLimitsTableName?: string; + planPricingTableId?: string; + planOverridesTableId?: string; + planMeterLimitsTableId?: string; + planCapsTableId?: string; + applyPlanFunction?: string; + applyPlanAggregateFunction?: string; + applyBillingPlanFunction?: string; + applyPlanCapsFunction?: string; + prefix?: string; apiName?: string; + privateApiName?: string; } /** An input for mutations affecting `ComputeLogModule` */ export interface ComputeLogModuleInput { id?: string; databaseId: string; + entityField?: string; schemaId?: string; privateSchemaId?: string; publicSchemaName?: string; @@ -11978,6 +13257,7 @@ export interface ComputeLogModuleInput { export interface InferenceLogModuleInput { id?: string; databaseId: string; + entityField?: string; schemaId?: string; privateSchemaId?: string; publicSchemaName?: string; @@ -11996,54 +13276,11 @@ export interface InferenceLogModuleInput { apiName?: string; privateApiName?: string; } -/** An input for mutations affecting `NamespaceModule` */ -export interface NamespaceModuleInput { - id?: string; - databaseId: string; - schemaId?: string; - privateSchemaId?: string; - publicSchemaName?: string; - privateSchemaName?: string; - namespacesTableId?: string; - namespaceEventsTableId?: string; - namespacesTableName?: string; - namespaceEventsTableName?: string; - apiName?: string; - privateApiName?: string; - scope?: string; - prefix?: string; - entityTableId?: string; - platformNamespacesTableId?: string; - policies?: Record; - provisions?: Record; - defaultPermissions?: string[]; -} -/** An input for mutations affecting `ResourceModule` */ -export interface ResourceModuleInput { - id?: string; - databaseId: string; - schemaId?: string; - privateSchemaId?: string; - publicSchemaName?: string; - privateSchemaName?: string; - resourcesTableId?: string; - resourceEventsTableId?: string; - resourcesTableName?: string; - resourceEventsTableName?: string; - apiName?: string; - privateApiName?: string; - scope?: string; - prefix?: string; - entityTableId?: string; - namespaceModuleId?: string; - policies?: Record; - provisions?: Record; - defaultPermissions?: string[]; -} /** An input for mutations affecting `StorageLogModule` */ export interface StorageLogModuleInput { id?: string; databaseId: string; + entityField?: string; schemaId?: string; privateSchemaId?: string; publicSchemaName?: string; @@ -12066,6 +13303,7 @@ export interface StorageLogModuleInput { export interface TransferLogModuleInput { id?: string; databaseId: string; + entityField?: string; schemaId?: string; privateSchemaId?: string; publicSchemaName?: string; @@ -12084,53 +13322,6 @@ export interface TransferLogModuleInput { apiName?: string; privateApiName?: string; } -/** An input for mutations affecting `FunctionDeploymentModule` */ -export interface FunctionDeploymentModuleInput { - id?: string; - databaseId: string; - schemaId?: string; - privateSchemaId?: string; - publicSchemaName?: string; - privateSchemaName?: string; - deploymentsTableId?: string; - deploymentEventsTableId?: string; - deploymentsTableName?: string; - deploymentEventsTableName?: string; - apiName?: string; - privateApiName?: string; - scope?: string; - prefix?: string; - entityTableId?: string; - functionModuleId?: string; - namespaceModuleId?: string; - policies?: Record; - provisions?: Record; - defaultPermissions?: string[]; -} -/** An input for mutations affecting `PlansModule` */ -export interface PlansModuleInput { - id?: string; - databaseId: string; - schemaId?: string; - privateSchemaId?: string; - publicSchemaName?: string; - privateSchemaName?: string; - plansTableId?: string; - plansTableName?: string; - planLimitsTableId?: string; - planLimitsTableName?: string; - planPricingTableId?: string; - planOverridesTableId?: string; - planMeterLimitsTableId?: string; - planCapsTableId?: string; - applyPlanFunction?: string; - applyPlanAggregateFunction?: string; - applyBillingPlanFunction?: string; - applyPlanCapsFunction?: string; - prefix?: string; - apiName?: string; - privateApiName?: string; -} /** An input for mutations affecting `BillingProviderModule` */ export interface BillingProviderModuleInput { id?: string; @@ -12156,28 +13347,52 @@ export interface BillingProviderModuleInput { apiName?: string; privateApiName?: string; } -/** An input for mutations affecting `DbUsageModule` */ -export interface DbUsageModuleInput { +/** An input for mutations affecting `FunctionDeploymentModule` */ +export interface FunctionDeploymentModuleInput { id?: string; databaseId: string; + entityField?: string; schemaId?: string; privateSchemaId?: string; publicSchemaName?: string; privateSchemaName?: string; - tableStatsLogTableId?: string; - tableStatsLogTableName?: string; - tableStatsDailyTableId?: string; - tableStatsDailyTableName?: string; - queryStatsLogTableId?: string; - queryStatsLogTableName?: string; - queryStatsDailyTableId?: string; - queryStatsDailyTableName?: string; - interval?: string; - retention?: string; - premake?: number; + deploymentsTableId?: string; + deploymentEventsTableId?: string; + deploymentsTableName?: string; + deploymentEventsTableName?: string; + apiName?: string; + privateApiName?: string; scope?: string; prefix?: string; + entityTableId?: string; + functionModuleId?: string; + namespaceModuleId?: string; + policies?: Record; + provisions?: Record; defaultPermissions?: string[]; +} +/** An input for mutations affecting `PermissionsModule` */ +export interface PermissionsModuleInput { + id?: string; + databaseId: string; + entityField?: string; + schemaId?: string; + privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + tableId?: string; + tableName?: string; + defaultTableId?: string; + defaultTableName?: string; + bitlen?: number; + scope?: string; + prefix?: string; + entityTableId?: string; + actorTableId?: string; + getPaddedMask?: string; + getMask?: string; + getByMask?: string; + getMaskByName?: string; apiName?: string; privateApiName?: string; } @@ -12185,6 +13400,7 @@ export interface DbUsageModuleInput { export interface GraphExecutionModuleInput { id?: string; databaseId: string; + entityField?: string; schemaId?: string; privateSchemaId?: string; publicSchemaName?: string; @@ -12210,6 +13426,7 @@ export interface GraphExecutionModuleInput { export interface HierarchyModuleInput { id?: string; databaseId: string; + entityField?: string; schemaId?: string; privateSchemaId?: string; chartEdgesTableId?: string; @@ -12227,38 +13444,15 @@ export interface HierarchyModuleInput { rebuildHierarchyFunction?: string; getSubordinatesFunction?: string; getManagersFunction?: string; - isManagerOfFunction?: string; - defaultPermissions?: string[]; - createdAt?: string; -} -/** An input for mutations affecting `PermissionsModule` */ -export interface PermissionsModuleInput { - id?: string; - databaseId: string; - schemaId?: string; - privateSchemaId?: string; - publicSchemaName?: string; - privateSchemaName?: string; - tableId?: string; - tableName?: string; - defaultTableId?: string; - defaultTableName?: string; - bitlen?: number; - scope?: string; - prefix?: string; - entityTableId?: string; - actorTableId?: string; - getPaddedMask?: string; - getMask?: string; - getByMask?: string; - getMaskByName?: string; - apiName?: string; - privateApiName?: string; + isManagerOfFunction?: string; + defaultPermissions?: string[]; + createdAt?: string; } /** An input for mutations affecting `NotificationsModule` */ export interface NotificationsModuleInput { id?: string; databaseId: string; + entityField?: string; schemaId?: string; privateSchemaId?: string; publicSchemaName?: string; @@ -12281,61 +13475,6 @@ export interface NotificationsModuleInput { apiName?: string; privateApiName?: string; } -/** An input for mutations affecting `ProfilesModule` */ -export interface ProfilesModuleInput { - id?: string; - databaseId: string; - schemaId?: string; - privateSchemaId?: string; - publicSchemaName?: string; - privateSchemaName?: string; - tableId?: string; - tableName?: string; - profilePermissionsTableId?: string; - profilePermissionsTableName?: string; - profileGrantsTableId?: string; - profileGrantsTableName?: string; - profileDefinitionGrantsTableId?: string; - profileDefinitionGrantsTableName?: string; - profileTemplatesTableId?: string; - profileTemplatesTableName?: string; - scope?: string; - prefix?: string; - entityTableId?: string; - actorTableId?: string; - permissionsTableId?: string; - membershipsTableId?: string; - apiName?: string; - privateApiName?: string; -} -/** An input for mutations affecting `BillingModule` */ -export interface BillingModuleInput { - id?: string; - databaseId: string; - schemaId?: string; - privateSchemaId?: string; - publicSchemaName?: string; - privateSchemaName?: string; - metersTableId?: string; - metersTableName?: string; - planSubscriptionsTableId?: string; - planSubscriptionsTableName?: string; - ledgerTableId?: string; - ledgerTableName?: string; - balancesTableId?: string; - balancesTableName?: string; - meterCreditsTableId?: string; - meterCreditsTableName?: string; - meterSourcesTableId?: string; - meterSourcesTableName?: string; - meterDefaultsTableId?: string; - meterDefaultsTableName?: string; - recordUsageFunction?: string; - prefix?: string; - defaultPermissions?: string[]; - apiName?: string; - privateApiName?: string; -} /** An input for mutations affecting `RelationProvision` */ export interface RelationProvisionInput { /** Unique identifier for this relation provision row. */ @@ -12460,6 +13599,93 @@ export interface RelationProvisionInput { /** Output column for RelationManyToMany: the UUID of the FK field on the junction table referencing the target table. Populated by the trigger. NULL for RelationBelongsTo/RelationHasOne. Callers should not set this directly. */ outTargetFieldId?: string; } +/** An input for mutations affecting `ProfilesModule` */ +export interface ProfilesModuleInput { + id?: string; + databaseId: string; + entityField?: string; + schemaId?: string; + privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + tableId?: string; + tableName?: string; + profilePermissionsTableId?: string; + profilePermissionsTableName?: string; + profileGrantsTableId?: string; + profileGrantsTableName?: string; + profileDefinitionGrantsTableId?: string; + profileDefinitionGrantsTableName?: string; + profileTemplatesTableId?: string; + profileTemplatesTableName?: string; + scope?: string; + prefix?: string; + entityTableId?: string; + actorTableId?: string; + permissionsTableId?: string; + membershipsTableId?: string; + apiName?: string; + privateApiName?: string; +} +/** An input for mutations affecting `BillingModule` */ +export interface BillingModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + metersTableId?: string; + metersTableName?: string; + planSubscriptionsTableId?: string; + planSubscriptionsTableName?: string; + ledgerTableId?: string; + ledgerTableName?: string; + balancesTableId?: string; + balancesTableName?: string; + meterCreditsTableId?: string; + meterCreditsTableName?: string; + meterSourcesTableId?: string; + meterSourcesTableName?: string; + meterDefaultsTableId?: string; + meterDefaultsTableName?: string; + recordUsageFunction?: string; + sweepExpiredSubscriptionsFunction?: string; + rollupUsageSummaryFunction?: string; + prefix?: string; + defaultPermissions?: string[]; + apiName?: string; + privateApiName?: string; +} +/** An input for mutations affecting `ResourceModule` */ +export interface ResourceModuleInput { + id?: string; + databaseId: string; + entityField?: string; + schemaId?: string; + privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + resourcesTableId?: string; + resourceEventsTableId?: string; + resourceStatusChecksTableId?: string; + resourceDefinitionsTableId?: string; + resourcesTableName?: string; + resourceEventsTableName?: string; + resourceStatusChecksTableName?: string; + resourceDefinitionsTableName?: string; + resolvedRequirementsViewName?: string; + requirementsStateViewName?: string; + apiName?: string; + privateApiName?: string; + scope?: string; + prefix?: string; + entityTableId?: string; + namespaceModuleId?: string; + policies?: Record; + provisions?: Record; + defaultPermissions?: string[]; +} /** An input for mutations affecting `UserAuthModule` */ export interface UserAuthModuleInput { id?: string; @@ -12491,10 +13717,41 @@ export interface UserAuthModuleInput { apiName?: string; privateApiName?: string; } +/** An input for mutations affecting `DbUsageModule` */ +export interface DbUsageModuleInput { + id?: string; + databaseId: string; + entityField?: string; + schemaId?: string; + privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + tableStatsLogTableId?: string; + tableStatsLogTableName?: string; + tableStatsDailyTableId?: string; + tableStatsDailyTableName?: string; + queryStatsLogTableId?: string; + queryStatsLogTableName?: string; + queryStatsDailyTableId?: string; + queryStatsDailyTableName?: string; + collectDbTableStatsFunction?: string; + collectDbQueryStatsFunction?: string; + rollupDbTableStatsDailyFunction?: string; + rollupDbQueryStatsDailyFunction?: string; + interval?: string; + retention?: string; + premake?: number; + scope?: string; + prefix?: string; + defaultPermissions?: string[]; + apiName?: string; + privateApiName?: string; +} /** An input for mutations affecting `AgentModule` */ export interface AgentModuleInput { id?: string; databaseId: string; + entityField?: string; schemaId?: string; privateSchemaId?: string; publicSchemaName?: string; @@ -12533,6 +13790,7 @@ export interface AgentModuleInput { export interface LimitsModuleInput { id?: string; databaseId: string; + entityField?: string; schemaId?: string; privateSchemaId?: string; publicSchemaName?: string; @@ -12568,50 +13826,6 @@ export interface LimitsModuleInput { apiName?: string; privateApiName?: string; } -/** An input for mutations affecting `MembershipsModule` */ -export interface MembershipsModuleInput { - id?: string; - databaseId: string; - schemaId?: string; - privateSchemaId?: string; - publicSchemaName?: string; - privateSchemaName?: string; - membershipsTableId?: string; - membershipsTableName?: string; - membersTableId?: string; - membersTableName?: string; - membershipDefaultsTableId?: string; - membershipDefaultsTableName?: string; - membershipSettingsTableId?: string; - membershipSettingsTableName?: string; - grantsTableId?: string; - grantsTableName?: string; - actorTableId?: string; - limitsTableId?: string; - defaultLimitsTableId?: string; - permissionsTableId?: string; - defaultPermissionsTableId?: string; - sprtTableId?: string; - adminGrantsTableId?: string; - adminGrantsTableName?: string; - ownerGrantsTableId?: string; - ownerGrantsTableName?: string; - scope?: string; - prefix?: string; - entityTableId?: string; - entityTableOwnerId?: string; - getOrgFn?: string; - actorMaskCheck?: string; - actorPermCheck?: string; - entityIdsByMask?: string; - entityIdsByPerm?: string; - entityIdsFunction?: string; - memberProfilesTableId?: string; - permissionDefaultPermissionsTableId?: string; - permissionDefaultGrantsTableId?: string; - apiName?: string; - privateApiName?: string; -} /** An input for mutations affecting `EntityTypeProvision` */ export interface EntityTypeProvisionInput { /** Unique identifier for this provision row. */ @@ -12860,7 +14074,6 @@ export interface EntityTypeProvisionInput { outDefinitionsTableId?: string; outInvocationsTableId?: string; outExecutionLogsTableId?: string; - outSecretDefinitionsTableId?: string; outGraphModuleId?: string; outGraphsTableId?: string; outAgentModuleId?: string; @@ -12879,31 +14092,77 @@ export interface StorageModuleInput { filesTableName?: string; scope?: string; prefix?: string; - policies?: Record; - provisions?: Record; + policies?: Record; + provisions?: Record; + entityTableId?: string; + entityField?: string; + endpoint?: string; + publicUrlPrefix?: string; + provider?: string; + allowedOrigins?: string[]; + restrictReads?: boolean; + hasPathShares?: boolean; + pathSharesTableId?: string; + uploadUrlExpirySeconds?: number; + downloadUrlExpirySeconds?: number; + defaultMaxFileSize?: string; + maxFilenameLength?: number; + cacheTtlSeconds?: number; + maxBulkFiles?: number; + maxBulkTotalSize?: string; + hasVersioning?: boolean; + hasContentHash?: boolean; + hasCustomKeys?: boolean; + hasAuditLog?: boolean; + hasConfirmUpload?: boolean; + confirmUploadDelay?: IntervalInput; + fileEventsTableId?: string; + defaultPermissions?: string[]; + apiName?: string; + privateApiName?: string; +} +/** An input for mutations affecting `MembershipsModule` */ +export interface MembershipsModuleInput { + id?: string; + databaseId: string; + entityField?: string; + schemaId?: string; + privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + membershipsTableId?: string; + membershipsTableName?: string; + membersTableId?: string; + membersTableName?: string; + membershipDefaultsTableId?: string; + membershipDefaultsTableName?: string; + membershipSettingsTableId?: string; + membershipSettingsTableName?: string; + grantsTableId?: string; + grantsTableName?: string; + actorTableId?: string; + limitsTableId?: string; + defaultLimitsTableId?: string; + permissionsTableId?: string; + defaultPermissionsTableId?: string; + sprtTableId?: string; + adminGrantsTableId?: string; + adminGrantsTableName?: string; + ownerGrantsTableId?: string; + ownerGrantsTableName?: string; + scope?: string; + prefix?: string; entityTableId?: string; - endpoint?: string; - publicUrlPrefix?: string; - provider?: string; - allowedOrigins?: string[]; - restrictReads?: boolean; - hasPathShares?: boolean; - pathSharesTableId?: string; - uploadUrlExpirySeconds?: number; - downloadUrlExpirySeconds?: number; - defaultMaxFileSize?: string; - maxFilenameLength?: number; - cacheTtlSeconds?: number; - maxBulkFiles?: number; - maxBulkTotalSize?: string; - hasVersioning?: boolean; - hasContentHash?: boolean; - hasCustomKeys?: boolean; - hasAuditLog?: boolean; - hasConfirmUpload?: boolean; - confirmUploadDelay?: IntervalInput; - fileEventsTableId?: string; - defaultPermissions?: string[]; + entityTableOwnerId?: string; + getOrgFn?: string; + actorMaskCheck?: string; + actorPermCheck?: string; + entityIdsByMask?: string; + entityIdsByPerm?: string; + entityIdsFunction?: string; + memberProfilesTableId?: string; + permissionDefaultPermissionsTableId?: string; + permissionDefaultGrantsTableId?: string; apiName?: string; privateApiName?: string; } @@ -12911,6 +14170,7 @@ export interface StorageModuleInput { export interface EventsModuleInput { id?: string; databaseId: string; + entityField?: string; schemaId?: string; privateSchemaId?: string; publicSchemaName?: string; @@ -12937,7 +14197,6 @@ export interface EventsModuleInput { tgEventBool?: string; upsertAggregate?: string; tgUpdateAggregates?: string; - pruneEvents?: string; stepsRequired?: string; levelAchieved?: string; tgCheckAchievements?: string; @@ -13095,6 +14354,8 @@ export interface GraphModuleFilter { id?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; + /** Filter by the object’s `entityField` field. */ + entityField?: StringFilter; /** Filter by the object’s `publicSchemaId` field. */ publicSchemaId?: UUIDFilter; /** Filter by the object’s `privateSchemaId` field. */ @@ -13134,6 +14395,51 @@ export interface GraphModuleFilter { /** Filter by the object’s `merkleStoreModule` relation. */ merkleStoreModule?: MerkleStoreModuleFilter; } +/** A filter to be used against `DbPresetModule` object types. All fields are combined with a logical ‘and.’ */ +export interface DbPresetModuleFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `publicSchemaId` field. */ + publicSchemaId?: UUIDFilter; + /** Filter by the object’s `privateSchemaId` field. */ + privateSchemaId?: UUIDFilter; + /** Filter by the object’s `publicSchemaName` field. */ + publicSchemaName?: StringFilter; + /** Filter by the object’s `privateSchemaName` field. */ + privateSchemaName?: StringFilter; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Filter by the object’s `merkleStoreModuleId` field. */ + merkleStoreModuleId?: UUIDFilter; + /** Filter by the object’s `dbPresetsTableId` field. */ + dbPresetsTableId?: UUIDFilter; + /** Filter by the object’s `storeName` field. */ + storeName?: StringFilter; + /** Filter by the object’s `apiName` field. */ + apiName?: StringFilter; + /** Filter by the object’s `privateApiName` field. */ + privateApiName?: StringFilter; + /** Filter by the object’s `entityTableId` field. */ + entityTableId?: UUIDFilter; + /** Filter by the object’s `policies` field. */ + policies?: JSONFilter; + /** Filter by the object’s `provisions` field. */ + provisions?: JSONFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Checks for all expressions in this list. */ + and?: DbPresetModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: DbPresetModuleFilter[]; + /** Negates the expression. */ + not?: DbPresetModuleFilter; + /** Filter by the object’s `merkleStoreModule` relation. */ + merkleStoreModule?: MerkleStoreModuleFilter; +} /** A filter to be used against UUID fields. All fields are combined with a logical ‘and.’ */ export interface UUIDFilter { /** Is null (if `true` is specified) or is not null (if `false` is specified). */ @@ -13366,6 +14672,8 @@ export interface MerkleStoreModuleFilter { id?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; + /** Filter by the object’s `entityField` field. */ + entityField?: StringFilter; /** Filter by the object’s `schemaId` field. */ schemaId?: UUIDFilter; /** Filter by the object’s `privateSchemaId` field. */ @@ -13406,6 +14714,10 @@ export interface MerkleStoreModuleFilter { graphModules?: MerkleStoreModuleToManyGraphModuleFilter; /** `graphModules` exist. */ graphModulesExist?: boolean; + /** Filter by the object’s `dbPresetModules` relation. */ + dbPresetModules?: MerkleStoreModuleToManyDbPresetModuleFilter; + /** `dbPresetModules` exist. */ + dbPresetModulesExist?: boolean; } // ============ Payload/Return Types (for custom operations) ============ export interface ConstructBlueprintPayload { @@ -13588,8 +14900,188 @@ export type DeleteMembershipTypesModulePayloadSelect = { membershipTypesModule?: { select: MembershipTypesModuleSelect; }; - membershipTypesModuleEdge?: { - select: MembershipTypesModuleEdgeSelect; + membershipTypesModuleEdge?: { + select: MembershipTypesModuleEdgeSelect; + }; +}; +export interface CreateSessionSecretsModulePayload { + clientMutationId?: string | null; + /** The `SessionSecretsModule` that was created by this mutation. */ + sessionSecretsModule?: SessionSecretsModule | null; + sessionSecretsModuleEdge?: SessionSecretsModuleEdge | null; +} +export type CreateSessionSecretsModulePayloadSelect = { + clientMutationId?: boolean; + sessionSecretsModule?: { + select: SessionSecretsModuleSelect; + }; + sessionSecretsModuleEdge?: { + select: SessionSecretsModuleEdgeSelect; + }; +}; +export interface UpdateSessionSecretsModulePayload { + clientMutationId?: string | null; + /** The `SessionSecretsModule` that was updated by this mutation. */ + sessionSecretsModule?: SessionSecretsModule | null; + sessionSecretsModuleEdge?: SessionSecretsModuleEdge | null; +} +export type UpdateSessionSecretsModulePayloadSelect = { + clientMutationId?: boolean; + sessionSecretsModule?: { + select: SessionSecretsModuleSelect; + }; + sessionSecretsModuleEdge?: { + select: SessionSecretsModuleEdgeSelect; + }; +}; +export interface DeleteSessionSecretsModulePayload { + clientMutationId?: string | null; + /** The `SessionSecretsModule` that was deleted by this mutation. */ + sessionSecretsModule?: SessionSecretsModule | null; + sessionSecretsModuleEdge?: SessionSecretsModuleEdge | null; +} +export type DeleteSessionSecretsModulePayloadSelect = { + clientMutationId?: boolean; + sessionSecretsModule?: { + select: SessionSecretsModuleSelect; + }; + sessionSecretsModuleEdge?: { + select: SessionSecretsModuleEdgeSelect; + }; +}; +export interface CreateDevicesModulePayload { + clientMutationId?: string | null; + /** The `DevicesModule` that was created by this mutation. */ + devicesModule?: DevicesModule | null; + devicesModuleEdge?: DevicesModuleEdge | null; +} +export type CreateDevicesModulePayloadSelect = { + clientMutationId?: boolean; + devicesModule?: { + select: DevicesModuleSelect; + }; + devicesModuleEdge?: { + select: DevicesModuleEdgeSelect; + }; +}; +export interface UpdateDevicesModulePayload { + clientMutationId?: string | null; + /** The `DevicesModule` that was updated by this mutation. */ + devicesModule?: DevicesModule | null; + devicesModuleEdge?: DevicesModuleEdge | null; +} +export type UpdateDevicesModulePayloadSelect = { + clientMutationId?: boolean; + devicesModule?: { + select: DevicesModuleSelect; + }; + devicesModuleEdge?: { + select: DevicesModuleEdgeSelect; + }; +}; +export interface DeleteDevicesModulePayload { + clientMutationId?: string | null; + /** The `DevicesModule` that was deleted by this mutation. */ + devicesModule?: DevicesModule | null; + devicesModuleEdge?: DevicesModuleEdge | null; +} +export type DeleteDevicesModulePayloadSelect = { + clientMutationId?: boolean; + devicesModule?: { + select: DevicesModuleSelect; + }; + devicesModuleEdge?: { + select: DevicesModuleEdgeSelect; + }; +}; +export interface CreateI18NModulePayload { + clientMutationId?: string | null; + /** The `I18NModule` that was created by this mutation. */ + i18NModule?: I18NModule | null; + i18NModuleEdge?: I18NModuleEdge | null; +} +export type CreateI18NModulePayloadSelect = { + clientMutationId?: boolean; + i18NModule?: { + select: I18NModuleSelect; + }; + i18NModuleEdge?: { + select: I18NModuleEdgeSelect; + }; +}; +export interface UpdateI18NModulePayload { + clientMutationId?: string | null; + /** The `I18NModule` that was updated by this mutation. */ + i18NModule?: I18NModule | null; + i18NModuleEdge?: I18NModuleEdge | null; +} +export type UpdateI18NModulePayloadSelect = { + clientMutationId?: boolean; + i18NModule?: { + select: I18NModuleSelect; + }; + i18NModuleEdge?: { + select: I18NModuleEdgeSelect; + }; +}; +export interface DeleteI18NModulePayload { + clientMutationId?: string | null; + /** The `I18NModule` that was deleted by this mutation. */ + i18NModule?: I18NModule | null; + i18NModuleEdge?: I18NModuleEdge | null; +} +export type DeleteI18NModulePayloadSelect = { + clientMutationId?: boolean; + i18NModule?: { + select: I18NModuleSelect; + }; + i18NModuleEdge?: { + select: I18NModuleEdgeSelect; + }; +}; +export interface CreateUserSettingsModulePayload { + clientMutationId?: string | null; + /** The `UserSettingsModule` that was created by this mutation. */ + userSettingsModule?: UserSettingsModule | null; + userSettingsModuleEdge?: UserSettingsModuleEdge | null; +} +export type CreateUserSettingsModulePayloadSelect = { + clientMutationId?: boolean; + userSettingsModule?: { + select: UserSettingsModuleSelect; + }; + userSettingsModuleEdge?: { + select: UserSettingsModuleEdgeSelect; + }; +}; +export interface UpdateUserSettingsModulePayload { + clientMutationId?: string | null; + /** The `UserSettingsModule` that was updated by this mutation. */ + userSettingsModule?: UserSettingsModule | null; + userSettingsModuleEdge?: UserSettingsModuleEdge | null; +} +export type UpdateUserSettingsModulePayloadSelect = { + clientMutationId?: boolean; + userSettingsModule?: { + select: UserSettingsModuleSelect; + }; + userSettingsModuleEdge?: { + select: UserSettingsModuleEdgeSelect; + }; +}; +export interface DeleteUserSettingsModulePayload { + clientMutationId?: string | null; + /** The `UserSettingsModule` that was deleted by this mutation. */ + userSettingsModule?: UserSettingsModule | null; + userSettingsModuleEdge?: UserSettingsModuleEdge | null; +} +export type DeleteUserSettingsModulePayloadSelect = { + clientMutationId?: boolean; + userSettingsModule?: { + select: UserSettingsModuleSelect; + }; + userSettingsModuleEdge?: { + select: UserSettingsModuleEdgeSelect; }; }; export interface CreateUserStateModulePayload { @@ -13637,274 +15129,319 @@ export type DeleteUserStateModulePayloadSelect = { select: UserStateModuleEdgeSelect; }; }; -export interface CreateSessionSecretsModulePayload { +export interface CreateUserCredentialsModulePayload { clientMutationId?: string | null; - /** The `SessionSecretsModule` that was created by this mutation. */ - sessionSecretsModule?: SessionSecretsModule | null; - sessionSecretsModuleEdge?: SessionSecretsModuleEdge | null; + /** The `UserCredentialsModule` that was created by this mutation. */ + userCredentialsModule?: UserCredentialsModule | null; + userCredentialsModuleEdge?: UserCredentialsModuleEdge | null; } -export type CreateSessionSecretsModulePayloadSelect = { +export type CreateUserCredentialsModulePayloadSelect = { clientMutationId?: boolean; - sessionSecretsModule?: { - select: SessionSecretsModuleSelect; + userCredentialsModule?: { + select: UserCredentialsModuleSelect; }; - sessionSecretsModuleEdge?: { - select: SessionSecretsModuleEdgeSelect; + userCredentialsModuleEdge?: { + select: UserCredentialsModuleEdgeSelect; }; }; -export interface UpdateSessionSecretsModulePayload { +export interface UpdateUserCredentialsModulePayload { clientMutationId?: string | null; - /** The `SessionSecretsModule` that was updated by this mutation. */ - sessionSecretsModule?: SessionSecretsModule | null; - sessionSecretsModuleEdge?: SessionSecretsModuleEdge | null; + /** The `UserCredentialsModule` that was updated by this mutation. */ + userCredentialsModule?: UserCredentialsModule | null; + userCredentialsModuleEdge?: UserCredentialsModuleEdge | null; } -export type UpdateSessionSecretsModulePayloadSelect = { +export type UpdateUserCredentialsModulePayloadSelect = { clientMutationId?: boolean; - sessionSecretsModule?: { - select: SessionSecretsModuleSelect; + userCredentialsModule?: { + select: UserCredentialsModuleSelect; }; - sessionSecretsModuleEdge?: { - select: SessionSecretsModuleEdgeSelect; + userCredentialsModuleEdge?: { + select: UserCredentialsModuleEdgeSelect; }; }; -export interface DeleteSessionSecretsModulePayload { +export interface DeleteUserCredentialsModulePayload { clientMutationId?: string | null; - /** The `SessionSecretsModule` that was deleted by this mutation. */ - sessionSecretsModule?: SessionSecretsModule | null; - sessionSecretsModuleEdge?: SessionSecretsModuleEdge | null; + /** The `UserCredentialsModule` that was deleted by this mutation. */ + userCredentialsModule?: UserCredentialsModule | null; + userCredentialsModuleEdge?: UserCredentialsModuleEdge | null; } -export type DeleteSessionSecretsModulePayloadSelect = { +export type DeleteUserCredentialsModulePayloadSelect = { clientMutationId?: boolean; - sessionSecretsModule?: { - select: SessionSecretsModuleSelect; + userCredentialsModule?: { + select: UserCredentialsModuleSelect; }; - sessionSecretsModuleEdge?: { - select: SessionSecretsModuleEdgeSelect; + userCredentialsModuleEdge?: { + select: UserCredentialsModuleEdgeSelect; }; }; -export interface CreateConfigSecretsOrgModulePayload { +export interface CreateConnectedAccountsModulePayload { clientMutationId?: string | null; - /** The `ConfigSecretsOrgModule` that was created by this mutation. */ - configSecretsOrgModule?: ConfigSecretsOrgModule | null; - configSecretsOrgModuleEdge?: ConfigSecretsOrgModuleEdge | null; + /** The `ConnectedAccountsModule` that was created by this mutation. */ + connectedAccountsModule?: ConnectedAccountsModule | null; + connectedAccountsModuleEdge?: ConnectedAccountsModuleEdge | null; } -export type CreateConfigSecretsOrgModulePayloadSelect = { +export type CreateConnectedAccountsModulePayloadSelect = { clientMutationId?: boolean; - configSecretsOrgModule?: { - select: ConfigSecretsOrgModuleSelect; + connectedAccountsModule?: { + select: ConnectedAccountsModuleSelect; }; - configSecretsOrgModuleEdge?: { - select: ConfigSecretsOrgModuleEdgeSelect; + connectedAccountsModuleEdge?: { + select: ConnectedAccountsModuleEdgeSelect; }; }; -export interface UpdateConfigSecretsOrgModulePayload { +export interface UpdateConnectedAccountsModulePayload { clientMutationId?: string | null; - /** The `ConfigSecretsOrgModule` that was updated by this mutation. */ - configSecretsOrgModule?: ConfigSecretsOrgModule | null; - configSecretsOrgModuleEdge?: ConfigSecretsOrgModuleEdge | null; + /** The `ConnectedAccountsModule` that was updated by this mutation. */ + connectedAccountsModule?: ConnectedAccountsModule | null; + connectedAccountsModuleEdge?: ConnectedAccountsModuleEdge | null; } -export type UpdateConfigSecretsOrgModulePayloadSelect = { +export type UpdateConnectedAccountsModulePayloadSelect = { clientMutationId?: boolean; - configSecretsOrgModule?: { - select: ConfigSecretsOrgModuleSelect; + connectedAccountsModule?: { + select: ConnectedAccountsModuleSelect; }; - configSecretsOrgModuleEdge?: { - select: ConfigSecretsOrgModuleEdgeSelect; + connectedAccountsModuleEdge?: { + select: ConnectedAccountsModuleEdgeSelect; }; }; -export interface DeleteConfigSecretsOrgModulePayload { +export interface DeleteConnectedAccountsModulePayload { clientMutationId?: string | null; - /** The `ConfigSecretsOrgModule` that was deleted by this mutation. */ - configSecretsOrgModule?: ConfigSecretsOrgModule | null; - configSecretsOrgModuleEdge?: ConfigSecretsOrgModuleEdge | null; + /** The `ConnectedAccountsModule` that was deleted by this mutation. */ + connectedAccountsModule?: ConnectedAccountsModule | null; + connectedAccountsModuleEdge?: ConnectedAccountsModuleEdge | null; } -export type DeleteConfigSecretsOrgModulePayloadSelect = { +export type DeleteConnectedAccountsModulePayloadSelect = { clientMutationId?: boolean; - configSecretsOrgModule?: { - select: ConfigSecretsOrgModuleSelect; + connectedAccountsModule?: { + select: ConnectedAccountsModuleSelect; }; - configSecretsOrgModuleEdge?: { - select: ConfigSecretsOrgModuleEdgeSelect; + connectedAccountsModuleEdge?: { + select: ConnectedAccountsModuleEdgeSelect; }; }; -export interface CreateDevicesModulePayload { +export interface CreateEmailsModulePayload { clientMutationId?: string | null; - /** The `DevicesModule` that was created by this mutation. */ - devicesModule?: DevicesModule | null; - devicesModuleEdge?: DevicesModuleEdge | null; + /** The `EmailsModule` that was created by this mutation. */ + emailsModule?: EmailsModule | null; + emailsModuleEdge?: EmailsModuleEdge | null; } -export type CreateDevicesModulePayloadSelect = { +export type CreateEmailsModulePayloadSelect = { clientMutationId?: boolean; - devicesModule?: { - select: DevicesModuleSelect; + emailsModule?: { + select: EmailsModuleSelect; }; - devicesModuleEdge?: { - select: DevicesModuleEdgeSelect; + emailsModuleEdge?: { + select: EmailsModuleEdgeSelect; }; }; -export interface UpdateDevicesModulePayload { +export interface UpdateEmailsModulePayload { clientMutationId?: string | null; - /** The `DevicesModule` that was updated by this mutation. */ - devicesModule?: DevicesModule | null; - devicesModuleEdge?: DevicesModuleEdge | null; + /** The `EmailsModule` that was updated by this mutation. */ + emailsModule?: EmailsModule | null; + emailsModuleEdge?: EmailsModuleEdge | null; } -export type UpdateDevicesModulePayloadSelect = { +export type UpdateEmailsModulePayloadSelect = { clientMutationId?: boolean; - devicesModule?: { - select: DevicesModuleSelect; + emailsModule?: { + select: EmailsModuleSelect; }; - devicesModuleEdge?: { - select: DevicesModuleEdgeSelect; + emailsModuleEdge?: { + select: EmailsModuleEdgeSelect; }; }; -export interface DeleteDevicesModulePayload { +export interface DeleteEmailsModulePayload { clientMutationId?: string | null; - /** The `DevicesModule` that was deleted by this mutation. */ - devicesModule?: DevicesModule | null; - devicesModuleEdge?: DevicesModuleEdge | null; + /** The `EmailsModule` that was deleted by this mutation. */ + emailsModule?: EmailsModule | null; + emailsModuleEdge?: EmailsModuleEdge | null; } -export type DeleteDevicesModulePayloadSelect = { +export type DeleteEmailsModulePayloadSelect = { clientMutationId?: boolean; - devicesModule?: { - select: DevicesModuleSelect; + emailsModule?: { + select: EmailsModuleSelect; }; - devicesModuleEdge?: { - select: DevicesModuleEdgeSelect; + emailsModuleEdge?: { + select: EmailsModuleEdgeSelect; }; }; -export interface CreateI18NModulePayload { +export interface CreatePhoneNumbersModulePayload { clientMutationId?: string | null; - /** The `I18NModule` that was created by this mutation. */ - i18NModule?: I18NModule | null; - i18NModuleEdge?: I18NModuleEdge | null; + /** The `PhoneNumbersModule` that was created by this mutation. */ + phoneNumbersModule?: PhoneNumbersModule | null; + phoneNumbersModuleEdge?: PhoneNumbersModuleEdge | null; } -export type CreateI18NModulePayloadSelect = { +export type CreatePhoneNumbersModulePayloadSelect = { clientMutationId?: boolean; - i18NModule?: { - select: I18NModuleSelect; + phoneNumbersModule?: { + select: PhoneNumbersModuleSelect; }; - i18NModuleEdge?: { - select: I18NModuleEdgeSelect; + phoneNumbersModuleEdge?: { + select: PhoneNumbersModuleEdgeSelect; }; }; -export interface UpdateI18NModulePayload { +export interface UpdatePhoneNumbersModulePayload { clientMutationId?: string | null; - /** The `I18NModule` that was updated by this mutation. */ - i18NModule?: I18NModule | null; - i18NModuleEdge?: I18NModuleEdge | null; + /** The `PhoneNumbersModule` that was updated by this mutation. */ + phoneNumbersModule?: PhoneNumbersModule | null; + phoneNumbersModuleEdge?: PhoneNumbersModuleEdge | null; } -export type UpdateI18NModulePayloadSelect = { +export type UpdatePhoneNumbersModulePayloadSelect = { clientMutationId?: boolean; - i18NModule?: { - select: I18NModuleSelect; + phoneNumbersModule?: { + select: PhoneNumbersModuleSelect; }; - i18NModuleEdge?: { - select: I18NModuleEdgeSelect; + phoneNumbersModuleEdge?: { + select: PhoneNumbersModuleEdgeSelect; }; }; -export interface DeleteI18NModulePayload { +export interface DeletePhoneNumbersModulePayload { clientMutationId?: string | null; - /** The `I18NModule` that was deleted by this mutation. */ - i18NModule?: I18NModule | null; - i18NModuleEdge?: I18NModuleEdge | null; + /** The `PhoneNumbersModule` that was deleted by this mutation. */ + phoneNumbersModule?: PhoneNumbersModule | null; + phoneNumbersModuleEdge?: PhoneNumbersModuleEdge | null; } -export type DeleteI18NModulePayloadSelect = { +export type DeletePhoneNumbersModulePayloadSelect = { clientMutationId?: boolean; - i18NModule?: { - select: I18NModuleSelect; + phoneNumbersModule?: { + select: PhoneNumbersModuleSelect; }; - i18NModuleEdge?: { - select: I18NModuleEdgeSelect; + phoneNumbersModuleEdge?: { + select: PhoneNumbersModuleEdgeSelect; }; }; -export interface CreateUserCredentialsModulePayload { +export interface CreateRateLimitsModulePayload { clientMutationId?: string | null; - /** The `UserCredentialsModule` that was created by this mutation. */ - userCredentialsModule?: UserCredentialsModule | null; - userCredentialsModuleEdge?: UserCredentialsModuleEdge | null; + /** The `RateLimitsModule` that was created by this mutation. */ + rateLimitsModule?: RateLimitsModule | null; + rateLimitsModuleEdge?: RateLimitsModuleEdge | null; } -export type CreateUserCredentialsModulePayloadSelect = { +export type CreateRateLimitsModulePayloadSelect = { clientMutationId?: boolean; - userCredentialsModule?: { - select: UserCredentialsModuleSelect; + rateLimitsModule?: { + select: RateLimitsModuleSelect; }; - userCredentialsModuleEdge?: { - select: UserCredentialsModuleEdgeSelect; + rateLimitsModuleEdge?: { + select: RateLimitsModuleEdgeSelect; + }; +}; +export interface UpdateRateLimitsModulePayload { + clientMutationId?: string | null; + /** The `RateLimitsModule` that was updated by this mutation. */ + rateLimitsModule?: RateLimitsModule | null; + rateLimitsModuleEdge?: RateLimitsModuleEdge | null; +} +export type UpdateRateLimitsModulePayloadSelect = { + clientMutationId?: boolean; + rateLimitsModule?: { + select: RateLimitsModuleSelect; + }; + rateLimitsModuleEdge?: { + select: RateLimitsModuleEdgeSelect; + }; +}; +export interface DeleteRateLimitsModulePayload { + clientMutationId?: string | null; + /** The `RateLimitsModule` that was deleted by this mutation. */ + rateLimitsModule?: RateLimitsModule | null; + rateLimitsModuleEdge?: RateLimitsModuleEdge | null; +} +export type DeleteRateLimitsModulePayloadSelect = { + clientMutationId?: boolean; + rateLimitsModule?: { + select: RateLimitsModuleSelect; + }; + rateLimitsModuleEdge?: { + select: RateLimitsModuleEdgeSelect; + }; +}; +export interface CreateUsersModulePayload { + clientMutationId?: string | null; + /** The `UsersModule` that was created by this mutation. */ + usersModule?: UsersModule | null; + usersModuleEdge?: UsersModuleEdge | null; +} +export type CreateUsersModulePayloadSelect = { + clientMutationId?: boolean; + usersModule?: { + select: UsersModuleSelect; + }; + usersModuleEdge?: { + select: UsersModuleEdgeSelect; }; }; -export interface UpdateUserCredentialsModulePayload { +export interface UpdateUsersModulePayload { clientMutationId?: string | null; - /** The `UserCredentialsModule` that was updated by this mutation. */ - userCredentialsModule?: UserCredentialsModule | null; - userCredentialsModuleEdge?: UserCredentialsModuleEdge | null; + /** The `UsersModule` that was updated by this mutation. */ + usersModule?: UsersModule | null; + usersModuleEdge?: UsersModuleEdge | null; } -export type UpdateUserCredentialsModulePayloadSelect = { +export type UpdateUsersModulePayloadSelect = { clientMutationId?: boolean; - userCredentialsModule?: { - select: UserCredentialsModuleSelect; + usersModule?: { + select: UsersModuleSelect; }; - userCredentialsModuleEdge?: { - select: UserCredentialsModuleEdgeSelect; + usersModuleEdge?: { + select: UsersModuleEdgeSelect; }; }; -export interface DeleteUserCredentialsModulePayload { +export interface DeleteUsersModulePayload { clientMutationId?: string | null; - /** The `UserCredentialsModule` that was deleted by this mutation. */ - userCredentialsModule?: UserCredentialsModule | null; - userCredentialsModuleEdge?: UserCredentialsModuleEdge | null; + /** The `UsersModule` that was deleted by this mutation. */ + usersModule?: UsersModule | null; + usersModuleEdge?: UsersModuleEdge | null; } -export type DeleteUserCredentialsModulePayloadSelect = { +export type DeleteUsersModulePayloadSelect = { clientMutationId?: boolean; - userCredentialsModule?: { - select: UserCredentialsModuleSelect; + usersModule?: { + select: UsersModuleSelect; }; - userCredentialsModuleEdge?: { - select: UserCredentialsModuleEdgeSelect; + usersModuleEdge?: { + select: UsersModuleEdgeSelect; }; }; -export interface CreateUserSettingsModulePayload { +export interface CreateWebauthnCredentialsModulePayload { clientMutationId?: string | null; - /** The `UserSettingsModule` that was created by this mutation. */ - userSettingsModule?: UserSettingsModule | null; - userSettingsModuleEdge?: UserSettingsModuleEdge | null; + /** The `WebauthnCredentialsModule` that was created by this mutation. */ + webauthnCredentialsModule?: WebauthnCredentialsModule | null; + webauthnCredentialsModuleEdge?: WebauthnCredentialsModuleEdge | null; } -export type CreateUserSettingsModulePayloadSelect = { +export type CreateWebauthnCredentialsModulePayloadSelect = { clientMutationId?: boolean; - userSettingsModule?: { - select: UserSettingsModuleSelect; + webauthnCredentialsModule?: { + select: WebauthnCredentialsModuleSelect; }; - userSettingsModuleEdge?: { - select: UserSettingsModuleEdgeSelect; + webauthnCredentialsModuleEdge?: { + select: WebauthnCredentialsModuleEdgeSelect; }; }; -export interface UpdateUserSettingsModulePayload { +export interface UpdateWebauthnCredentialsModulePayload { clientMutationId?: string | null; - /** The `UserSettingsModule` that was updated by this mutation. */ - userSettingsModule?: UserSettingsModule | null; - userSettingsModuleEdge?: UserSettingsModuleEdge | null; + /** The `WebauthnCredentialsModule` that was updated by this mutation. */ + webauthnCredentialsModule?: WebauthnCredentialsModule | null; + webauthnCredentialsModuleEdge?: WebauthnCredentialsModuleEdge | null; } -export type UpdateUserSettingsModulePayloadSelect = { +export type UpdateWebauthnCredentialsModulePayloadSelect = { clientMutationId?: boolean; - userSettingsModule?: { - select: UserSettingsModuleSelect; + webauthnCredentialsModule?: { + select: WebauthnCredentialsModuleSelect; }; - userSettingsModuleEdge?: { - select: UserSettingsModuleEdgeSelect; + webauthnCredentialsModuleEdge?: { + select: WebauthnCredentialsModuleEdgeSelect; }; }; -export interface DeleteUserSettingsModulePayload { +export interface DeleteWebauthnCredentialsModulePayload { clientMutationId?: string | null; - /** The `UserSettingsModule` that was deleted by this mutation. */ - userSettingsModule?: UserSettingsModule | null; - userSettingsModuleEdge?: UserSettingsModuleEdge | null; + /** The `WebauthnCredentialsModule` that was deleted by this mutation. */ + webauthnCredentialsModule?: WebauthnCredentialsModule | null; + webauthnCredentialsModuleEdge?: WebauthnCredentialsModuleEdge | null; } -export type DeleteUserSettingsModulePayloadSelect = { +export type DeleteWebauthnCredentialsModulePayloadSelect = { clientMutationId?: boolean; - userSettingsModule?: { - select: UserSettingsModuleSelect; + webauthnCredentialsModule?: { + select: WebauthnCredentialsModuleSelect; }; - userSettingsModuleEdge?: { - select: UserSettingsModuleEdgeSelect; + webauthnCredentialsModuleEdge?: { + select: WebauthnCredentialsModuleEdgeSelect; }; }; export interface CreateConfigSecretsUserModulePayload { @@ -13952,364 +15489,409 @@ export type DeleteConfigSecretsUserModulePayloadSelect = { select: ConfigSecretsUserModuleEdgeSelect; }; }; -export interface CreateConnectedAccountsModulePayload { +export interface CreateCryptoAddressesModulePayload { clientMutationId?: string | null; - /** The `ConnectedAccountsModule` that was created by this mutation. */ - connectedAccountsModule?: ConnectedAccountsModule | null; - connectedAccountsModuleEdge?: ConnectedAccountsModuleEdge | null; + /** The `CryptoAddressesModule` that was created by this mutation. */ + cryptoAddressesModule?: CryptoAddressesModule | null; + cryptoAddressesModuleEdge?: CryptoAddressesModuleEdge | null; } -export type CreateConnectedAccountsModulePayloadSelect = { +export type CreateCryptoAddressesModulePayloadSelect = { clientMutationId?: boolean; - connectedAccountsModule?: { - select: ConnectedAccountsModuleSelect; + cryptoAddressesModule?: { + select: CryptoAddressesModuleSelect; }; - connectedAccountsModuleEdge?: { - select: ConnectedAccountsModuleEdgeSelect; + cryptoAddressesModuleEdge?: { + select: CryptoAddressesModuleEdgeSelect; }; }; -export interface UpdateConnectedAccountsModulePayload { +export interface UpdateCryptoAddressesModulePayload { clientMutationId?: string | null; - /** The `ConnectedAccountsModule` that was updated by this mutation. */ - connectedAccountsModule?: ConnectedAccountsModule | null; - connectedAccountsModuleEdge?: ConnectedAccountsModuleEdge | null; + /** The `CryptoAddressesModule` that was updated by this mutation. */ + cryptoAddressesModule?: CryptoAddressesModule | null; + cryptoAddressesModuleEdge?: CryptoAddressesModuleEdge | null; } -export type UpdateConnectedAccountsModulePayloadSelect = { +export type UpdateCryptoAddressesModulePayloadSelect = { clientMutationId?: boolean; - connectedAccountsModule?: { - select: ConnectedAccountsModuleSelect; + cryptoAddressesModule?: { + select: CryptoAddressesModuleSelect; }; - connectedAccountsModuleEdge?: { - select: ConnectedAccountsModuleEdgeSelect; + cryptoAddressesModuleEdge?: { + select: CryptoAddressesModuleEdgeSelect; }; }; -export interface DeleteConnectedAccountsModulePayload { +export interface DeleteCryptoAddressesModulePayload { clientMutationId?: string | null; - /** The `ConnectedAccountsModule` that was deleted by this mutation. */ - connectedAccountsModule?: ConnectedAccountsModule | null; - connectedAccountsModuleEdge?: ConnectedAccountsModuleEdge | null; + /** The `CryptoAddressesModule` that was deleted by this mutation. */ + cryptoAddressesModule?: CryptoAddressesModule | null; + cryptoAddressesModuleEdge?: CryptoAddressesModuleEdge | null; } -export type DeleteConnectedAccountsModulePayloadSelect = { +export type DeleteCryptoAddressesModulePayloadSelect = { clientMutationId?: boolean; - connectedAccountsModule?: { - select: ConnectedAccountsModuleSelect; + cryptoAddressesModule?: { + select: CryptoAddressesModuleSelect; }; - connectedAccountsModuleEdge?: { - select: ConnectedAccountsModuleEdgeSelect; + cryptoAddressesModuleEdge?: { + select: CryptoAddressesModuleEdgeSelect; }; }; -export interface CreateEmailsModulePayload { +export interface CreateDenormalizedTableFieldPayload { clientMutationId?: string | null; - /** The `EmailsModule` that was created by this mutation. */ - emailsModule?: EmailsModule | null; - emailsModuleEdge?: EmailsModuleEdge | null; + /** The `DenormalizedTableField` that was created by this mutation. */ + denormalizedTableField?: DenormalizedTableField | null; + denormalizedTableFieldEdge?: DenormalizedTableFieldEdge | null; } -export type CreateEmailsModulePayloadSelect = { +export type CreateDenormalizedTableFieldPayloadSelect = { clientMutationId?: boolean; - emailsModule?: { - select: EmailsModuleSelect; + denormalizedTableField?: { + select: DenormalizedTableFieldSelect; }; - emailsModuleEdge?: { - select: EmailsModuleEdgeSelect; + denormalizedTableFieldEdge?: { + select: DenormalizedTableFieldEdgeSelect; }; }; -export interface UpdateEmailsModulePayload { +export interface UpdateDenormalizedTableFieldPayload { clientMutationId?: string | null; - /** The `EmailsModule` that was updated by this mutation. */ - emailsModule?: EmailsModule | null; - emailsModuleEdge?: EmailsModuleEdge | null; + /** The `DenormalizedTableField` that was updated by this mutation. */ + denormalizedTableField?: DenormalizedTableField | null; + denormalizedTableFieldEdge?: DenormalizedTableFieldEdge | null; } -export type UpdateEmailsModulePayloadSelect = { +export type UpdateDenormalizedTableFieldPayloadSelect = { clientMutationId?: boolean; - emailsModule?: { - select: EmailsModuleSelect; + denormalizedTableField?: { + select: DenormalizedTableFieldSelect; }; - emailsModuleEdge?: { - select: EmailsModuleEdgeSelect; + denormalizedTableFieldEdge?: { + select: DenormalizedTableFieldEdgeSelect; }; }; -export interface DeleteEmailsModulePayload { +export interface DeleteDenormalizedTableFieldPayload { clientMutationId?: string | null; - /** The `EmailsModule` that was deleted by this mutation. */ - emailsModule?: EmailsModule | null; - emailsModuleEdge?: EmailsModuleEdge | null; + /** The `DenormalizedTableField` that was deleted by this mutation. */ + denormalizedTableField?: DenormalizedTableField | null; + denormalizedTableFieldEdge?: DenormalizedTableFieldEdge | null; } -export type DeleteEmailsModulePayloadSelect = { +export type DeleteDenormalizedTableFieldPayloadSelect = { clientMutationId?: boolean; - emailsModule?: { - select: EmailsModuleSelect; + denormalizedTableField?: { + select: DenormalizedTableFieldSelect; }; - emailsModuleEdge?: { - select: EmailsModuleEdgeSelect; + denormalizedTableFieldEdge?: { + select: DenormalizedTableFieldEdgeSelect; }; }; -export interface CreatePhoneNumbersModulePayload { +export interface CreateRlsModulePayload { clientMutationId?: string | null; - /** The `PhoneNumbersModule` that was created by this mutation. */ - phoneNumbersModule?: PhoneNumbersModule | null; - phoneNumbersModuleEdge?: PhoneNumbersModuleEdge | null; + /** The `RlsModule` that was created by this mutation. */ + rlsModule?: RlsModule | null; + rlsModuleEdge?: RlsModuleEdge | null; } -export type CreatePhoneNumbersModulePayloadSelect = { +export type CreateRlsModulePayloadSelect = { clientMutationId?: boolean; - phoneNumbersModule?: { - select: PhoneNumbersModuleSelect; + rlsModule?: { + select: RlsModuleSelect; + }; + rlsModuleEdge?: { + select: RlsModuleEdgeSelect; + }; +}; +export interface UpdateRlsModulePayload { + clientMutationId?: string | null; + /** The `RlsModule` that was updated by this mutation. */ + rlsModule?: RlsModule | null; + rlsModuleEdge?: RlsModuleEdge | null; +} +export type UpdateRlsModulePayloadSelect = { + clientMutationId?: boolean; + rlsModule?: { + select: RlsModuleSelect; + }; + rlsModuleEdge?: { + select: RlsModuleEdgeSelect; + }; +}; +export interface DeleteRlsModulePayload { + clientMutationId?: string | null; + /** The `RlsModule` that was deleted by this mutation. */ + rlsModule?: RlsModule | null; + rlsModuleEdge?: RlsModuleEdge | null; +} +export type DeleteRlsModulePayloadSelect = { + clientMutationId?: boolean; + rlsModule?: { + select: RlsModuleSelect; + }; + rlsModuleEdge?: { + select: RlsModuleEdgeSelect; + }; +}; +export interface CreateBlueprintPayload { + clientMutationId?: string | null; + /** The `Blueprint` that was created by this mutation. */ + blueprint?: Blueprint | null; + blueprintEdge?: BlueprintEdge | null; +} +export type CreateBlueprintPayloadSelect = { + clientMutationId?: boolean; + blueprint?: { + select: BlueprintSelect; }; - phoneNumbersModuleEdge?: { - select: PhoneNumbersModuleEdgeSelect; + blueprintEdge?: { + select: BlueprintEdgeSelect; }; }; -export interface UpdatePhoneNumbersModulePayload { +export interface UpdateBlueprintPayload { clientMutationId?: string | null; - /** The `PhoneNumbersModule` that was updated by this mutation. */ - phoneNumbersModule?: PhoneNumbersModule | null; - phoneNumbersModuleEdge?: PhoneNumbersModuleEdge | null; + /** The `Blueprint` that was updated by this mutation. */ + blueprint?: Blueprint | null; + blueprintEdge?: BlueprintEdge | null; } -export type UpdatePhoneNumbersModulePayloadSelect = { +export type UpdateBlueprintPayloadSelect = { clientMutationId?: boolean; - phoneNumbersModule?: { - select: PhoneNumbersModuleSelect; + blueprint?: { + select: BlueprintSelect; }; - phoneNumbersModuleEdge?: { - select: PhoneNumbersModuleEdgeSelect; + blueprintEdge?: { + select: BlueprintEdgeSelect; }; }; -export interface DeletePhoneNumbersModulePayload { +export interface DeleteBlueprintPayload { clientMutationId?: string | null; - /** The `PhoneNumbersModule` that was deleted by this mutation. */ - phoneNumbersModule?: PhoneNumbersModule | null; - phoneNumbersModuleEdge?: PhoneNumbersModuleEdge | null; + /** The `Blueprint` that was deleted by this mutation. */ + blueprint?: Blueprint | null; + blueprintEdge?: BlueprintEdge | null; } -export type DeletePhoneNumbersModulePayloadSelect = { +export type DeleteBlueprintPayloadSelect = { clientMutationId?: boolean; - phoneNumbersModule?: { - select: PhoneNumbersModuleSelect; + blueprint?: { + select: BlueprintSelect; }; - phoneNumbersModuleEdge?: { - select: PhoneNumbersModuleEdgeSelect; + blueprintEdge?: { + select: BlueprintEdgeSelect; }; }; -export interface CreateRateLimitsModulePayload { +export interface CreateBlueprintTemplatePayload { clientMutationId?: string | null; - /** The `RateLimitsModule` that was created by this mutation. */ - rateLimitsModule?: RateLimitsModule | null; - rateLimitsModuleEdge?: RateLimitsModuleEdge | null; + /** The `BlueprintTemplate` that was created by this mutation. */ + blueprintTemplate?: BlueprintTemplate | null; + blueprintTemplateEdge?: BlueprintTemplateEdge | null; } -export type CreateRateLimitsModulePayloadSelect = { +export type CreateBlueprintTemplatePayloadSelect = { clientMutationId?: boolean; - rateLimitsModule?: { - select: RateLimitsModuleSelect; + blueprintTemplate?: { + select: BlueprintTemplateSelect; }; - rateLimitsModuleEdge?: { - select: RateLimitsModuleEdgeSelect; + blueprintTemplateEdge?: { + select: BlueprintTemplateEdgeSelect; }; }; -export interface UpdateRateLimitsModulePayload { +export interface UpdateBlueprintTemplatePayload { clientMutationId?: string | null; - /** The `RateLimitsModule` that was updated by this mutation. */ - rateLimitsModule?: RateLimitsModule | null; - rateLimitsModuleEdge?: RateLimitsModuleEdge | null; + /** The `BlueprintTemplate` that was updated by this mutation. */ + blueprintTemplate?: BlueprintTemplate | null; + blueprintTemplateEdge?: BlueprintTemplateEdge | null; } -export type UpdateRateLimitsModulePayloadSelect = { +export type UpdateBlueprintTemplatePayloadSelect = { clientMutationId?: boolean; - rateLimitsModule?: { - select: RateLimitsModuleSelect; + blueprintTemplate?: { + select: BlueprintTemplateSelect; }; - rateLimitsModuleEdge?: { - select: RateLimitsModuleEdgeSelect; + blueprintTemplateEdge?: { + select: BlueprintTemplateEdgeSelect; }; }; -export interface DeleteRateLimitsModulePayload { +export interface DeleteBlueprintTemplatePayload { clientMutationId?: string | null; - /** The `RateLimitsModule` that was deleted by this mutation. */ - rateLimitsModule?: RateLimitsModule | null; - rateLimitsModuleEdge?: RateLimitsModuleEdge | null; + /** The `BlueprintTemplate` that was deleted by this mutation. */ + blueprintTemplate?: BlueprintTemplate | null; + blueprintTemplateEdge?: BlueprintTemplateEdge | null; } -export type DeleteRateLimitsModulePayloadSelect = { +export type DeleteBlueprintTemplatePayloadSelect = { clientMutationId?: boolean; - rateLimitsModule?: { - select: RateLimitsModuleSelect; + blueprintTemplate?: { + select: BlueprintTemplateSelect; }; - rateLimitsModuleEdge?: { - select: RateLimitsModuleEdgeSelect; + blueprintTemplateEdge?: { + select: BlueprintTemplateEdgeSelect; }; }; -export interface CreateUsersModulePayload { +export interface CreateBlueprintConstructionPayload { clientMutationId?: string | null; - /** The `UsersModule` that was created by this mutation. */ - usersModule?: UsersModule | null; - usersModuleEdge?: UsersModuleEdge | null; + /** The `BlueprintConstruction` that was created by this mutation. */ + blueprintConstruction?: BlueprintConstruction | null; + blueprintConstructionEdge?: BlueprintConstructionEdge | null; } -export type CreateUsersModulePayloadSelect = { +export type CreateBlueprintConstructionPayloadSelect = { clientMutationId?: boolean; - usersModule?: { - select: UsersModuleSelect; + blueprintConstruction?: { + select: BlueprintConstructionSelect; }; - usersModuleEdge?: { - select: UsersModuleEdgeSelect; + blueprintConstructionEdge?: { + select: BlueprintConstructionEdgeSelect; }; }; -export interface UpdateUsersModulePayload { +export interface UpdateBlueprintConstructionPayload { clientMutationId?: string | null; - /** The `UsersModule` that was updated by this mutation. */ - usersModule?: UsersModule | null; - usersModuleEdge?: UsersModuleEdge | null; + /** The `BlueprintConstruction` that was updated by this mutation. */ + blueprintConstruction?: BlueprintConstruction | null; + blueprintConstructionEdge?: BlueprintConstructionEdge | null; } -export type UpdateUsersModulePayloadSelect = { +export type UpdateBlueprintConstructionPayloadSelect = { clientMutationId?: boolean; - usersModule?: { - select: UsersModuleSelect; + blueprintConstruction?: { + select: BlueprintConstructionSelect; }; - usersModuleEdge?: { - select: UsersModuleEdgeSelect; + blueprintConstructionEdge?: { + select: BlueprintConstructionEdgeSelect; }; }; -export interface DeleteUsersModulePayload { +export interface DeleteBlueprintConstructionPayload { clientMutationId?: string | null; - /** The `UsersModule` that was deleted by this mutation. */ - usersModule?: UsersModule | null; - usersModuleEdge?: UsersModuleEdge | null; + /** The `BlueprintConstruction` that was deleted by this mutation. */ + blueprintConstruction?: BlueprintConstruction | null; + blueprintConstructionEdge?: BlueprintConstructionEdge | null; } -export type DeleteUsersModulePayloadSelect = { +export type DeleteBlueprintConstructionPayloadSelect = { clientMutationId?: boolean; - usersModule?: { - select: UsersModuleSelect; + blueprintConstruction?: { + select: BlueprintConstructionSelect; }; - usersModuleEdge?: { - select: UsersModuleEdgeSelect; + blueprintConstructionEdge?: { + select: BlueprintConstructionEdgeSelect; }; }; -export interface CreateWebauthnCredentialsModulePayload { +export interface CreateCryptoAuthModulePayload { clientMutationId?: string | null; - /** The `WebauthnCredentialsModule` that was created by this mutation. */ - webauthnCredentialsModule?: WebauthnCredentialsModule | null; - webauthnCredentialsModuleEdge?: WebauthnCredentialsModuleEdge | null; + /** The `CryptoAuthModule` that was created by this mutation. */ + cryptoAuthModule?: CryptoAuthModule | null; + cryptoAuthModuleEdge?: CryptoAuthModuleEdge | null; } -export type CreateWebauthnCredentialsModulePayloadSelect = { +export type CreateCryptoAuthModulePayloadSelect = { clientMutationId?: boolean; - webauthnCredentialsModule?: { - select: WebauthnCredentialsModuleSelect; + cryptoAuthModule?: { + select: CryptoAuthModuleSelect; }; - webauthnCredentialsModuleEdge?: { - select: WebauthnCredentialsModuleEdgeSelect; + cryptoAuthModuleEdge?: { + select: CryptoAuthModuleEdgeSelect; }; }; -export interface UpdateWebauthnCredentialsModulePayload { +export interface UpdateCryptoAuthModulePayload { clientMutationId?: string | null; - /** The `WebauthnCredentialsModule` that was updated by this mutation. */ - webauthnCredentialsModule?: WebauthnCredentialsModule | null; - webauthnCredentialsModuleEdge?: WebauthnCredentialsModuleEdge | null; + /** The `CryptoAuthModule` that was updated by this mutation. */ + cryptoAuthModule?: CryptoAuthModule | null; + cryptoAuthModuleEdge?: CryptoAuthModuleEdge | null; } -export type UpdateWebauthnCredentialsModulePayloadSelect = { +export type UpdateCryptoAuthModulePayloadSelect = { clientMutationId?: boolean; - webauthnCredentialsModule?: { - select: WebauthnCredentialsModuleSelect; + cryptoAuthModule?: { + select: CryptoAuthModuleSelect; }; - webauthnCredentialsModuleEdge?: { - select: WebauthnCredentialsModuleEdgeSelect; + cryptoAuthModuleEdge?: { + select: CryptoAuthModuleEdgeSelect; }; }; -export interface DeleteWebauthnCredentialsModulePayload { +export interface DeleteCryptoAuthModulePayload { clientMutationId?: string | null; - /** The `WebauthnCredentialsModule` that was deleted by this mutation. */ - webauthnCredentialsModule?: WebauthnCredentialsModule | null; - webauthnCredentialsModuleEdge?: WebauthnCredentialsModuleEdge | null; + /** The `CryptoAuthModule` that was deleted by this mutation. */ + cryptoAuthModule?: CryptoAuthModule | null; + cryptoAuthModuleEdge?: CryptoAuthModuleEdge | null; } -export type DeleteWebauthnCredentialsModulePayloadSelect = { +export type DeleteCryptoAuthModulePayloadSelect = { clientMutationId?: boolean; - webauthnCredentialsModule?: { - select: WebauthnCredentialsModuleSelect; + cryptoAuthModule?: { + select: CryptoAuthModuleSelect; }; - webauthnCredentialsModuleEdge?: { - select: WebauthnCredentialsModuleEdgeSelect; + cryptoAuthModuleEdge?: { + select: CryptoAuthModuleEdgeSelect; }; }; -export interface CreateCryptoAddressesModulePayload { +export interface CreateSessionsModulePayload { clientMutationId?: string | null; - /** The `CryptoAddressesModule` that was created by this mutation. */ - cryptoAddressesModule?: CryptoAddressesModule | null; - cryptoAddressesModuleEdge?: CryptoAddressesModuleEdge | null; + /** The `SessionsModule` that was created by this mutation. */ + sessionsModule?: SessionsModule | null; + sessionsModuleEdge?: SessionsModuleEdge | null; } -export type CreateCryptoAddressesModulePayloadSelect = { +export type CreateSessionsModulePayloadSelect = { clientMutationId?: boolean; - cryptoAddressesModule?: { - select: CryptoAddressesModuleSelect; + sessionsModule?: { + select: SessionsModuleSelect; }; - cryptoAddressesModuleEdge?: { - select: CryptoAddressesModuleEdgeSelect; + sessionsModuleEdge?: { + select: SessionsModuleEdgeSelect; }; }; -export interface UpdateCryptoAddressesModulePayload { +export interface UpdateSessionsModulePayload { clientMutationId?: string | null; - /** The `CryptoAddressesModule` that was updated by this mutation. */ - cryptoAddressesModule?: CryptoAddressesModule | null; - cryptoAddressesModuleEdge?: CryptoAddressesModuleEdge | null; + /** The `SessionsModule` that was updated by this mutation. */ + sessionsModule?: SessionsModule | null; + sessionsModuleEdge?: SessionsModuleEdge | null; } -export type UpdateCryptoAddressesModulePayloadSelect = { +export type UpdateSessionsModulePayloadSelect = { clientMutationId?: boolean; - cryptoAddressesModule?: { - select: CryptoAddressesModuleSelect; + sessionsModule?: { + select: SessionsModuleSelect; }; - cryptoAddressesModuleEdge?: { - select: CryptoAddressesModuleEdgeSelect; + sessionsModuleEdge?: { + select: SessionsModuleEdgeSelect; }; }; -export interface DeleteCryptoAddressesModulePayload { +export interface DeleteSessionsModulePayload { clientMutationId?: string | null; - /** The `CryptoAddressesModule` that was deleted by this mutation. */ - cryptoAddressesModule?: CryptoAddressesModule | null; - cryptoAddressesModuleEdge?: CryptoAddressesModuleEdge | null; + /** The `SessionsModule` that was deleted by this mutation. */ + sessionsModule?: SessionsModule | null; + sessionsModuleEdge?: SessionsModuleEdge | null; } -export type DeleteCryptoAddressesModulePayloadSelect = { +export type DeleteSessionsModulePayloadSelect = { clientMutationId?: boolean; - cryptoAddressesModule?: { - select: CryptoAddressesModuleSelect; + sessionsModule?: { + select: SessionsModuleSelect; }; - cryptoAddressesModuleEdge?: { - select: CryptoAddressesModuleEdgeSelect; + sessionsModuleEdge?: { + select: SessionsModuleEdgeSelect; }; }; -export interface CreateDenormalizedTableFieldPayload { +export interface CreateSecureTableProvisionPayload { clientMutationId?: string | null; - /** The `DenormalizedTableField` that was created by this mutation. */ - denormalizedTableField?: DenormalizedTableField | null; - denormalizedTableFieldEdge?: DenormalizedTableFieldEdge | null; + /** The `SecureTableProvision` that was created by this mutation. */ + secureTableProvision?: SecureTableProvision | null; + secureTableProvisionEdge?: SecureTableProvisionEdge | null; } -export type CreateDenormalizedTableFieldPayloadSelect = { +export type CreateSecureTableProvisionPayloadSelect = { clientMutationId?: boolean; - denormalizedTableField?: { - select: DenormalizedTableFieldSelect; + secureTableProvision?: { + select: SecureTableProvisionSelect; }; - denormalizedTableFieldEdge?: { - select: DenormalizedTableFieldEdgeSelect; + secureTableProvisionEdge?: { + select: SecureTableProvisionEdgeSelect; }; }; -export interface UpdateDenormalizedTableFieldPayload { +export interface UpdateSecureTableProvisionPayload { clientMutationId?: string | null; - /** The `DenormalizedTableField` that was updated by this mutation. */ - denormalizedTableField?: DenormalizedTableField | null; - denormalizedTableFieldEdge?: DenormalizedTableFieldEdge | null; + /** The `SecureTableProvision` that was updated by this mutation. */ + secureTableProvision?: SecureTableProvision | null; + secureTableProvisionEdge?: SecureTableProvisionEdge | null; } -export type UpdateDenormalizedTableFieldPayloadSelect = { +export type UpdateSecureTableProvisionPayloadSelect = { clientMutationId?: boolean; - denormalizedTableField?: { - select: DenormalizedTableFieldSelect; + secureTableProvision?: { + select: SecureTableProvisionSelect; }; - denormalizedTableFieldEdge?: { - select: DenormalizedTableFieldEdgeSelect; + secureTableProvisionEdge?: { + select: SecureTableProvisionEdgeSelect; }; }; -export interface DeleteDenormalizedTableFieldPayload { +export interface DeleteSecureTableProvisionPayload { clientMutationId?: string | null; - /** The `DenormalizedTableField` that was deleted by this mutation. */ - denormalizedTableField?: DenormalizedTableField | null; - denormalizedTableFieldEdge?: DenormalizedTableFieldEdge | null; + /** The `SecureTableProvision` that was deleted by this mutation. */ + secureTableProvision?: SecureTableProvision | null; + secureTableProvisionEdge?: SecureTableProvisionEdge | null; } -export type DeleteDenormalizedTableFieldPayloadSelect = { +export type DeleteSecureTableProvisionPayloadSelect = { clientMutationId?: boolean; - denormalizedTableField?: { - select: DenormalizedTableFieldSelect; + secureTableProvision?: { + select: SecureTableProvisionSelect; }; - denormalizedTableFieldEdge?: { - select: DenormalizedTableFieldEdgeSelect; + secureTableProvisionEdge?: { + select: SecureTableProvisionEdgeSelect; }; }; export interface CreateIdentityProvidersModulePayload { @@ -14357,454 +15939,589 @@ export type DeleteIdentityProvidersModulePayloadSelect = { select: IdentityProvidersModuleEdgeSelect; }; }; -export interface CreateRlsModulePayload { +export interface CreateIntegrationProvidersModulePayload { clientMutationId?: string | null; - /** The `RlsModule` that was created by this mutation. */ - rlsModule?: RlsModule | null; - rlsModuleEdge?: RlsModuleEdge | null; + /** The `IntegrationProvidersModule` that was created by this mutation. */ + integrationProvidersModule?: IntegrationProvidersModule | null; + integrationProvidersModuleEdge?: IntegrationProvidersModuleEdge | null; } -export type CreateRlsModulePayloadSelect = { +export type CreateIntegrationProvidersModulePayloadSelect = { clientMutationId?: boolean; - rlsModule?: { - select: RlsModuleSelect; + integrationProvidersModule?: { + select: IntegrationProvidersModuleSelect; }; - rlsModuleEdge?: { - select: RlsModuleEdgeSelect; + integrationProvidersModuleEdge?: { + select: IntegrationProvidersModuleEdgeSelect; }; }; -export interface UpdateRlsModulePayload { +export interface UpdateIntegrationProvidersModulePayload { clientMutationId?: string | null; - /** The `RlsModule` that was updated by this mutation. */ - rlsModule?: RlsModule | null; - rlsModuleEdge?: RlsModuleEdge | null; + /** The `IntegrationProvidersModule` that was updated by this mutation. */ + integrationProvidersModule?: IntegrationProvidersModule | null; + integrationProvidersModuleEdge?: IntegrationProvidersModuleEdge | null; } -export type UpdateRlsModulePayloadSelect = { +export type UpdateIntegrationProvidersModulePayloadSelect = { clientMutationId?: boolean; - rlsModule?: { - select: RlsModuleSelect; + integrationProvidersModule?: { + select: IntegrationProvidersModuleSelect; }; - rlsModuleEdge?: { - select: RlsModuleEdgeSelect; + integrationProvidersModuleEdge?: { + select: IntegrationProvidersModuleEdgeSelect; }; }; -export interface DeleteRlsModulePayload { +export interface DeleteIntegrationProvidersModulePayload { clientMutationId?: string | null; - /** The `RlsModule` that was deleted by this mutation. */ - rlsModule?: RlsModule | null; - rlsModuleEdge?: RlsModuleEdge | null; + /** The `IntegrationProvidersModule` that was deleted by this mutation. */ + integrationProvidersModule?: IntegrationProvidersModule | null; + integrationProvidersModuleEdge?: IntegrationProvidersModuleEdge | null; } -export type DeleteRlsModulePayloadSelect = { +export type DeleteIntegrationProvidersModulePayloadSelect = { clientMutationId?: boolean; - rlsModule?: { - select: RlsModuleSelect; + integrationProvidersModule?: { + select: IntegrationProvidersModuleSelect; }; - rlsModuleEdge?: { - select: RlsModuleEdgeSelect; + integrationProvidersModuleEdge?: { + select: IntegrationProvidersModuleEdgeSelect; }; }; -export interface CreateBlueprintPayload { +export interface CreateDbPoolConfigPayload { clientMutationId?: string | null; - /** The `Blueprint` that was created by this mutation. */ - blueprint?: Blueprint | null; - blueprintEdge?: BlueprintEdge | null; + /** The `DbPoolConfig` that was created by this mutation. */ + dbPoolConfig?: DbPoolConfig | null; + dbPoolConfigEdge?: DbPoolConfigEdge | null; } -export type CreateBlueprintPayloadSelect = { +export type CreateDbPoolConfigPayloadSelect = { clientMutationId?: boolean; - blueprint?: { - select: BlueprintSelect; + dbPoolConfig?: { + select: DbPoolConfigSelect; }; - blueprintEdge?: { - select: BlueprintEdgeSelect; + dbPoolConfigEdge?: { + select: DbPoolConfigEdgeSelect; }; }; -export interface UpdateBlueprintPayload { +export interface UpdateDbPoolConfigPayload { clientMutationId?: string | null; - /** The `Blueprint` that was updated by this mutation. */ - blueprint?: Blueprint | null; - blueprintEdge?: BlueprintEdge | null; + /** The `DbPoolConfig` that was updated by this mutation. */ + dbPoolConfig?: DbPoolConfig | null; + dbPoolConfigEdge?: DbPoolConfigEdge | null; } -export type UpdateBlueprintPayloadSelect = { +export type UpdateDbPoolConfigPayloadSelect = { clientMutationId?: boolean; - blueprint?: { - select: BlueprintSelect; + dbPoolConfig?: { + select: DbPoolConfigSelect; }; - blueprintEdge?: { - select: BlueprintEdgeSelect; + dbPoolConfigEdge?: { + select: DbPoolConfigEdgeSelect; }; }; -export interface DeleteBlueprintPayload { +export interface DeleteDbPoolConfigPayload { clientMutationId?: string | null; - /** The `Blueprint` that was deleted by this mutation. */ - blueprint?: Blueprint | null; - blueprintEdge?: BlueprintEdge | null; + /** The `DbPoolConfig` that was deleted by this mutation. */ + dbPoolConfig?: DbPoolConfig | null; + dbPoolConfigEdge?: DbPoolConfigEdge | null; } -export type DeleteBlueprintPayloadSelect = { +export type DeleteDbPoolConfigPayloadSelect = { clientMutationId?: boolean; - blueprint?: { - select: BlueprintSelect; + dbPoolConfig?: { + select: DbPoolConfigSelect; }; - blueprintEdge?: { - select: BlueprintEdgeSelect; + dbPoolConfigEdge?: { + select: DbPoolConfigEdgeSelect; }; }; -export interface CreateBlueprintTemplatePayload { +export interface CreateRealtimeModulePayload { clientMutationId?: string | null; - /** The `BlueprintTemplate` that was created by this mutation. */ - blueprintTemplate?: BlueprintTemplate | null; - blueprintTemplateEdge?: BlueprintTemplateEdge | null; + /** The `RealtimeModule` that was created by this mutation. */ + realtimeModule?: RealtimeModule | null; + realtimeModuleEdge?: RealtimeModuleEdge | null; } -export type CreateBlueprintTemplatePayloadSelect = { +export type CreateRealtimeModulePayloadSelect = { clientMutationId?: boolean; - blueprintTemplate?: { - select: BlueprintTemplateSelect; + realtimeModule?: { + select: RealtimeModuleSelect; }; - blueprintTemplateEdge?: { - select: BlueprintTemplateEdgeSelect; + realtimeModuleEdge?: { + select: RealtimeModuleEdgeSelect; }; }; -export interface UpdateBlueprintTemplatePayload { +export interface UpdateRealtimeModulePayload { clientMutationId?: string | null; - /** The `BlueprintTemplate` that was updated by this mutation. */ - blueprintTemplate?: BlueprintTemplate | null; - blueprintTemplateEdge?: BlueprintTemplateEdge | null; + /** The `RealtimeModule` that was updated by this mutation. */ + realtimeModule?: RealtimeModule | null; + realtimeModuleEdge?: RealtimeModuleEdge | null; } -export type UpdateBlueprintTemplatePayloadSelect = { +export type UpdateRealtimeModulePayloadSelect = { clientMutationId?: boolean; - blueprintTemplate?: { - select: BlueprintTemplateSelect; + realtimeModule?: { + select: RealtimeModuleSelect; }; - blueprintTemplateEdge?: { - select: BlueprintTemplateEdgeSelect; + realtimeModuleEdge?: { + select: RealtimeModuleEdgeSelect; }; }; -export interface DeleteBlueprintTemplatePayload { +export interface DeleteRealtimeModulePayload { clientMutationId?: string | null; - /** The `BlueprintTemplate` that was deleted by this mutation. */ - blueprintTemplate?: BlueprintTemplate | null; - blueprintTemplateEdge?: BlueprintTemplateEdge | null; + /** The `RealtimeModule` that was deleted by this mutation. */ + realtimeModule?: RealtimeModule | null; + realtimeModuleEdge?: RealtimeModuleEdge | null; } -export type DeleteBlueprintTemplatePayloadSelect = { +export type DeleteRealtimeModulePayloadSelect = { clientMutationId?: boolean; - blueprintTemplate?: { - select: BlueprintTemplateSelect; + realtimeModule?: { + select: RealtimeModuleSelect; }; - blueprintTemplateEdge?: { - select: BlueprintTemplateEdgeSelect; + realtimeModuleEdge?: { + select: RealtimeModuleEdgeSelect; }; }; -export interface CreateBlueprintConstructionPayload { +export interface CreateInfraSecretsModulePayload { clientMutationId?: string | null; - /** The `BlueprintConstruction` that was created by this mutation. */ - blueprintConstruction?: BlueprintConstruction | null; - blueprintConstructionEdge?: BlueprintConstructionEdge | null; + /** The `InfraSecretsModule` that was created by this mutation. */ + infraSecretsModule?: InfraSecretsModule | null; + infraSecretsModuleEdge?: InfraSecretsModuleEdge | null; } -export type CreateBlueprintConstructionPayloadSelect = { +export type CreateInfraSecretsModulePayloadSelect = { clientMutationId?: boolean; - blueprintConstruction?: { - select: BlueprintConstructionSelect; + infraSecretsModule?: { + select: InfraSecretsModuleSelect; }; - blueprintConstructionEdge?: { - select: BlueprintConstructionEdgeSelect; + infraSecretsModuleEdge?: { + select: InfraSecretsModuleEdgeSelect; }; }; -export interface UpdateBlueprintConstructionPayload { +export interface UpdateInfraSecretsModulePayload { clientMutationId?: string | null; - /** The `BlueprintConstruction` that was updated by this mutation. */ - blueprintConstruction?: BlueprintConstruction | null; - blueprintConstructionEdge?: BlueprintConstructionEdge | null; + /** The `InfraSecretsModule` that was updated by this mutation. */ + infraSecretsModule?: InfraSecretsModule | null; + infraSecretsModuleEdge?: InfraSecretsModuleEdge | null; } -export type UpdateBlueprintConstructionPayloadSelect = { +export type UpdateInfraSecretsModulePayloadSelect = { clientMutationId?: boolean; - blueprintConstruction?: { - select: BlueprintConstructionSelect; + infraSecretsModule?: { + select: InfraSecretsModuleSelect; }; - blueprintConstructionEdge?: { - select: BlueprintConstructionEdgeSelect; + infraSecretsModuleEdge?: { + select: InfraSecretsModuleEdgeSelect; }; }; -export interface DeleteBlueprintConstructionPayload { +export interface DeleteInfraSecretsModulePayload { clientMutationId?: string | null; - /** The `BlueprintConstruction` that was deleted by this mutation. */ - blueprintConstruction?: BlueprintConstruction | null; - blueprintConstructionEdge?: BlueprintConstructionEdge | null; + /** The `InfraSecretsModule` that was deleted by this mutation. */ + infraSecretsModule?: InfraSecretsModule | null; + infraSecretsModuleEdge?: InfraSecretsModuleEdge | null; +} +export type DeleteInfraSecretsModulePayloadSelect = { + clientMutationId?: boolean; + infraSecretsModule?: { + select: InfraSecretsModuleSelect; + }; + infraSecretsModuleEdge?: { + select: InfraSecretsModuleEdgeSelect; + }; +}; +export interface CreateInternalSecretsModulePayload { + clientMutationId?: string | null; + /** The `InternalSecretsModule` that was created by this mutation. */ + internalSecretsModule?: InternalSecretsModule | null; + internalSecretsModuleEdge?: InternalSecretsModuleEdge | null; +} +export type CreateInternalSecretsModulePayloadSelect = { + clientMutationId?: boolean; + internalSecretsModule?: { + select: InternalSecretsModuleSelect; + }; + internalSecretsModuleEdge?: { + select: InternalSecretsModuleEdgeSelect; + }; +}; +export interface UpdateInternalSecretsModulePayload { + clientMutationId?: string | null; + /** The `InternalSecretsModule` that was updated by this mutation. */ + internalSecretsModule?: InternalSecretsModule | null; + internalSecretsModuleEdge?: InternalSecretsModuleEdge | null; +} +export type UpdateInternalSecretsModulePayloadSelect = { + clientMutationId?: boolean; + internalSecretsModule?: { + select: InternalSecretsModuleSelect; + }; + internalSecretsModuleEdge?: { + select: InternalSecretsModuleEdgeSelect; + }; +}; +export interface DeleteInternalSecretsModulePayload { + clientMutationId?: string | null; + /** The `InternalSecretsModule` that was deleted by this mutation. */ + internalSecretsModule?: InternalSecretsModule | null; + internalSecretsModuleEdge?: InternalSecretsModuleEdge | null; +} +export type DeleteInternalSecretsModulePayloadSelect = { + clientMutationId?: boolean; + internalSecretsModule?: { + select: InternalSecretsModuleSelect; + }; + internalSecretsModuleEdge?: { + select: InternalSecretsModuleEdgeSelect; + }; +}; +export interface CreateDbPresetModulePayload { + clientMutationId?: string | null; + /** The `DbPresetModule` that was created by this mutation. */ + dbPresetModule?: DbPresetModule | null; + dbPresetModuleEdge?: DbPresetModuleEdge | null; +} +export type CreateDbPresetModulePayloadSelect = { + clientMutationId?: boolean; + dbPresetModule?: { + select: DbPresetModuleSelect; + }; + dbPresetModuleEdge?: { + select: DbPresetModuleEdgeSelect; + }; +}; +export interface UpdateDbPresetModulePayload { + clientMutationId?: string | null; + /** The `DbPresetModule` that was updated by this mutation. */ + dbPresetModule?: DbPresetModule | null; + dbPresetModuleEdge?: DbPresetModuleEdge | null; +} +export type UpdateDbPresetModulePayloadSelect = { + clientMutationId?: boolean; + dbPresetModule?: { + select: DbPresetModuleSelect; + }; + dbPresetModuleEdge?: { + select: DbPresetModuleEdgeSelect; + }; +}; +export interface DeleteDbPresetModulePayload { + clientMutationId?: string | null; + /** The `DbPresetModule` that was deleted by this mutation. */ + dbPresetModule?: DbPresetModule | null; + dbPresetModuleEdge?: DbPresetModuleEdge | null; +} +export type DeleteDbPresetModulePayloadSelect = { + clientMutationId?: boolean; + dbPresetModule?: { + select: DbPresetModuleSelect; + }; + dbPresetModuleEdge?: { + select: DbPresetModuleEdgeSelect; + }; +}; +export interface CreateGraphModulePayload { + clientMutationId?: string | null; + /** The `GraphModule` that was created by this mutation. */ + graphModule?: GraphModule | null; + graphModuleEdge?: GraphModuleEdge | null; +} +export type CreateGraphModulePayloadSelect = { + clientMutationId?: boolean; + graphModule?: { + select: GraphModuleSelect; + }; + graphModuleEdge?: { + select: GraphModuleEdgeSelect; + }; +}; +export interface UpdateGraphModulePayload { + clientMutationId?: string | null; + /** The `GraphModule` that was updated by this mutation. */ + graphModule?: GraphModule | null; + graphModuleEdge?: GraphModuleEdge | null; +} +export type UpdateGraphModulePayloadSelect = { + clientMutationId?: boolean; + graphModule?: { + select: GraphModuleSelect; + }; + graphModuleEdge?: { + select: GraphModuleEdgeSelect; + }; +}; +export interface DeleteGraphModulePayload { + clientMutationId?: string | null; + /** The `GraphModule` that was deleted by this mutation. */ + graphModule?: GraphModule | null; + graphModuleEdge?: GraphModuleEdge | null; } -export type DeleteBlueprintConstructionPayloadSelect = { +export type DeleteGraphModulePayloadSelect = { clientMutationId?: boolean; - blueprintConstruction?: { - select: BlueprintConstructionSelect; + graphModule?: { + select: GraphModuleSelect; }; - blueprintConstructionEdge?: { - select: BlueprintConstructionEdgeSelect; + graphModuleEdge?: { + select: GraphModuleEdgeSelect; }; }; -export interface CreateCryptoAuthModulePayload { +export interface CreateRateLimitMetersModulePayload { clientMutationId?: string | null; - /** The `CryptoAuthModule` that was created by this mutation. */ - cryptoAuthModule?: CryptoAuthModule | null; - cryptoAuthModuleEdge?: CryptoAuthModuleEdge | null; + /** The `RateLimitMetersModule` that was created by this mutation. */ + rateLimitMetersModule?: RateLimitMetersModule | null; + rateLimitMetersModuleEdge?: RateLimitMetersModuleEdge | null; } -export type CreateCryptoAuthModulePayloadSelect = { +export type CreateRateLimitMetersModulePayloadSelect = { clientMutationId?: boolean; - cryptoAuthModule?: { - select: CryptoAuthModuleSelect; + rateLimitMetersModule?: { + select: RateLimitMetersModuleSelect; }; - cryptoAuthModuleEdge?: { - select: CryptoAuthModuleEdgeSelect; + rateLimitMetersModuleEdge?: { + select: RateLimitMetersModuleEdgeSelect; }; }; -export interface UpdateCryptoAuthModulePayload { +export interface UpdateRateLimitMetersModulePayload { clientMutationId?: string | null; - /** The `CryptoAuthModule` that was updated by this mutation. */ - cryptoAuthModule?: CryptoAuthModule | null; - cryptoAuthModuleEdge?: CryptoAuthModuleEdge | null; + /** The `RateLimitMetersModule` that was updated by this mutation. */ + rateLimitMetersModule?: RateLimitMetersModule | null; + rateLimitMetersModuleEdge?: RateLimitMetersModuleEdge | null; } -export type UpdateCryptoAuthModulePayloadSelect = { +export type UpdateRateLimitMetersModulePayloadSelect = { clientMutationId?: boolean; - cryptoAuthModule?: { - select: CryptoAuthModuleSelect; + rateLimitMetersModule?: { + select: RateLimitMetersModuleSelect; }; - cryptoAuthModuleEdge?: { - select: CryptoAuthModuleEdgeSelect; + rateLimitMetersModuleEdge?: { + select: RateLimitMetersModuleEdgeSelect; }; }; -export interface DeleteCryptoAuthModulePayload { +export interface DeleteRateLimitMetersModulePayload { clientMutationId?: string | null; - /** The `CryptoAuthModule` that was deleted by this mutation. */ - cryptoAuthModule?: CryptoAuthModule | null; - cryptoAuthModuleEdge?: CryptoAuthModuleEdge | null; + /** The `RateLimitMetersModule` that was deleted by this mutation. */ + rateLimitMetersModule?: RateLimitMetersModule | null; + rateLimitMetersModuleEdge?: RateLimitMetersModuleEdge | null; } -export type DeleteCryptoAuthModulePayloadSelect = { +export type DeleteRateLimitMetersModulePayloadSelect = { clientMutationId?: boolean; - cryptoAuthModule?: { - select: CryptoAuthModuleSelect; + rateLimitMetersModule?: { + select: RateLimitMetersModuleSelect; }; - cryptoAuthModuleEdge?: { - select: CryptoAuthModuleEdgeSelect; + rateLimitMetersModuleEdge?: { + select: RateLimitMetersModuleEdgeSelect; }; }; -export interface CreateSessionsModulePayload { +export interface CreateInfraConfigModulePayload { clientMutationId?: string | null; - /** The `SessionsModule` that was created by this mutation. */ - sessionsModule?: SessionsModule | null; - sessionsModuleEdge?: SessionsModuleEdge | null; + /** The `InfraConfigModule` that was created by this mutation. */ + infraConfigModule?: InfraConfigModule | null; + infraConfigModuleEdge?: InfraConfigModuleEdge | null; } -export type CreateSessionsModulePayloadSelect = { +export type CreateInfraConfigModulePayloadSelect = { clientMutationId?: boolean; - sessionsModule?: { - select: SessionsModuleSelect; + infraConfigModule?: { + select: InfraConfigModuleSelect; }; - sessionsModuleEdge?: { - select: SessionsModuleEdgeSelect; + infraConfigModuleEdge?: { + select: InfraConfigModuleEdgeSelect; }; }; -export interface UpdateSessionsModulePayload { +export interface UpdateInfraConfigModulePayload { clientMutationId?: string | null; - /** The `SessionsModule` that was updated by this mutation. */ - sessionsModule?: SessionsModule | null; - sessionsModuleEdge?: SessionsModuleEdge | null; + /** The `InfraConfigModule` that was updated by this mutation. */ + infraConfigModule?: InfraConfigModule | null; + infraConfigModuleEdge?: InfraConfigModuleEdge | null; } -export type UpdateSessionsModulePayloadSelect = { +export type UpdateInfraConfigModulePayloadSelect = { clientMutationId?: boolean; - sessionsModule?: { - select: SessionsModuleSelect; + infraConfigModule?: { + select: InfraConfigModuleSelect; }; - sessionsModuleEdge?: { - select: SessionsModuleEdgeSelect; + infraConfigModuleEdge?: { + select: InfraConfigModuleEdgeSelect; }; }; -export interface DeleteSessionsModulePayload { +export interface DeleteInfraConfigModulePayload { clientMutationId?: string | null; - /** The `SessionsModule` that was deleted by this mutation. */ - sessionsModule?: SessionsModule | null; - sessionsModuleEdge?: SessionsModuleEdge | null; + /** The `InfraConfigModule` that was deleted by this mutation. */ + infraConfigModule?: InfraConfigModule | null; + infraConfigModuleEdge?: InfraConfigModuleEdge | null; } -export type DeleteSessionsModulePayloadSelect = { +export type DeleteInfraConfigModulePayloadSelect = { clientMutationId?: boolean; - sessionsModule?: { - select: SessionsModuleSelect; + infraConfigModule?: { + select: InfraConfigModuleSelect; }; - sessionsModuleEdge?: { - select: SessionsModuleEdgeSelect; + infraConfigModuleEdge?: { + select: InfraConfigModuleEdgeSelect; }; }; -export interface CreateSecureTableProvisionPayload { +export interface CreateWebauthnAuthModulePayload { clientMutationId?: string | null; - /** The `SecureTableProvision` that was created by this mutation. */ - secureTableProvision?: SecureTableProvision | null; - secureTableProvisionEdge?: SecureTableProvisionEdge | null; + /** The `WebauthnAuthModule` that was created by this mutation. */ + webauthnAuthModule?: WebauthnAuthModule | null; + webauthnAuthModuleEdge?: WebauthnAuthModuleEdge | null; } -export type CreateSecureTableProvisionPayloadSelect = { +export type CreateWebauthnAuthModulePayloadSelect = { clientMutationId?: boolean; - secureTableProvision?: { - select: SecureTableProvisionSelect; + webauthnAuthModule?: { + select: WebauthnAuthModuleSelect; }; - secureTableProvisionEdge?: { - select: SecureTableProvisionEdgeSelect; + webauthnAuthModuleEdge?: { + select: WebauthnAuthModuleEdgeSelect; }; }; -export interface UpdateSecureTableProvisionPayload { +export interface UpdateWebauthnAuthModulePayload { clientMutationId?: string | null; - /** The `SecureTableProvision` that was updated by this mutation. */ - secureTableProvision?: SecureTableProvision | null; - secureTableProvisionEdge?: SecureTableProvisionEdge | null; + /** The `WebauthnAuthModule` that was updated by this mutation. */ + webauthnAuthModule?: WebauthnAuthModule | null; + webauthnAuthModuleEdge?: WebauthnAuthModuleEdge | null; } -export type UpdateSecureTableProvisionPayloadSelect = { +export type UpdateWebauthnAuthModulePayloadSelect = { clientMutationId?: boolean; - secureTableProvision?: { - select: SecureTableProvisionSelect; + webauthnAuthModule?: { + select: WebauthnAuthModuleSelect; }; - secureTableProvisionEdge?: { - select: SecureTableProvisionEdgeSelect; + webauthnAuthModuleEdge?: { + select: WebauthnAuthModuleEdgeSelect; }; }; -export interface DeleteSecureTableProvisionPayload { +export interface DeleteWebauthnAuthModulePayload { clientMutationId?: string | null; - /** The `SecureTableProvision` that was deleted by this mutation. */ - secureTableProvision?: SecureTableProvision | null; - secureTableProvisionEdge?: SecureTableProvisionEdge | null; + /** The `WebauthnAuthModule` that was deleted by this mutation. */ + webauthnAuthModule?: WebauthnAuthModule | null; + webauthnAuthModuleEdge?: WebauthnAuthModuleEdge | null; } -export type DeleteSecureTableProvisionPayloadSelect = { +export type DeleteWebauthnAuthModulePayloadSelect = { clientMutationId?: boolean; - secureTableProvision?: { - select: SecureTableProvisionSelect; + webauthnAuthModule?: { + select: WebauthnAuthModuleSelect; }; - secureTableProvisionEdge?: { - select: SecureTableProvisionEdgeSelect; + webauthnAuthModuleEdge?: { + select: WebauthnAuthModuleEdgeSelect; }; }; -export interface CreateDatabaseProvisionModulePayload { +export interface CreatePrincipalAuthModulePayload { clientMutationId?: string | null; - /** The `DatabaseProvisionModule` that was created by this mutation. */ - databaseProvisionModule?: DatabaseProvisionModule | null; - databaseProvisionModuleEdge?: DatabaseProvisionModuleEdge | null; + /** The `PrincipalAuthModule` that was created by this mutation. */ + principalAuthModule?: PrincipalAuthModule | null; + principalAuthModuleEdge?: PrincipalAuthModuleEdge | null; } -export type CreateDatabaseProvisionModulePayloadSelect = { +export type CreatePrincipalAuthModulePayloadSelect = { clientMutationId?: boolean; - databaseProvisionModule?: { - select: DatabaseProvisionModuleSelect; + principalAuthModule?: { + select: PrincipalAuthModuleSelect; }; - databaseProvisionModuleEdge?: { - select: DatabaseProvisionModuleEdgeSelect; + principalAuthModuleEdge?: { + select: PrincipalAuthModuleEdgeSelect; }; }; -export interface UpdateDatabaseProvisionModulePayload { +export interface UpdatePrincipalAuthModulePayload { clientMutationId?: string | null; - /** The `DatabaseProvisionModule` that was updated by this mutation. */ - databaseProvisionModule?: DatabaseProvisionModule | null; - databaseProvisionModuleEdge?: DatabaseProvisionModuleEdge | null; + /** The `PrincipalAuthModule` that was updated by this mutation. */ + principalAuthModule?: PrincipalAuthModule | null; + principalAuthModuleEdge?: PrincipalAuthModuleEdge | null; } -export type UpdateDatabaseProvisionModulePayloadSelect = { +export type UpdatePrincipalAuthModulePayloadSelect = { clientMutationId?: boolean; - databaseProvisionModule?: { - select: DatabaseProvisionModuleSelect; + principalAuthModule?: { + select: PrincipalAuthModuleSelect; }; - databaseProvisionModuleEdge?: { - select: DatabaseProvisionModuleEdgeSelect; + principalAuthModuleEdge?: { + select: PrincipalAuthModuleEdgeSelect; }; }; -export interface DeleteDatabaseProvisionModulePayload { +export interface DeletePrincipalAuthModulePayload { clientMutationId?: string | null; - /** The `DatabaseProvisionModule` that was deleted by this mutation. */ - databaseProvisionModule?: DatabaseProvisionModule | null; - databaseProvisionModuleEdge?: DatabaseProvisionModuleEdge | null; + /** The `PrincipalAuthModule` that was deleted by this mutation. */ + principalAuthModule?: PrincipalAuthModule | null; + principalAuthModuleEdge?: PrincipalAuthModuleEdge | null; } -export type DeleteDatabaseProvisionModulePayloadSelect = { +export type DeletePrincipalAuthModulePayloadSelect = { clientMutationId?: boolean; - databaseProvisionModule?: { - select: DatabaseProvisionModuleSelect; + principalAuthModule?: { + select: PrincipalAuthModuleSelect; }; - databaseProvisionModuleEdge?: { - select: DatabaseProvisionModuleEdgeSelect; + principalAuthModuleEdge?: { + select: PrincipalAuthModuleEdgeSelect; }; }; -export interface CreateConfigSecretsModulePayload { +export interface CreateDbPoolPayload { clientMutationId?: string | null; - /** The `ConfigSecretsModule` that was created by this mutation. */ - configSecretsModule?: ConfigSecretsModule | null; - configSecretsModuleEdge?: ConfigSecretsModuleEdge | null; + /** The `DbPool` that was created by this mutation. */ + dbPool?: DbPool | null; + dbPoolEdge?: DbPoolEdge | null; } -export type CreateConfigSecretsModulePayloadSelect = { +export type CreateDbPoolPayloadSelect = { clientMutationId?: boolean; - configSecretsModule?: { - select: ConfigSecretsModuleSelect; + dbPool?: { + select: DbPoolSelect; }; - configSecretsModuleEdge?: { - select: ConfigSecretsModuleEdgeSelect; + dbPoolEdge?: { + select: DbPoolEdgeSelect; }; }; -export interface UpdateConfigSecretsModulePayload { +export interface UpdateDbPoolPayload { clientMutationId?: string | null; - /** The `ConfigSecretsModule` that was updated by this mutation. */ - configSecretsModule?: ConfigSecretsModule | null; - configSecretsModuleEdge?: ConfigSecretsModuleEdge | null; + /** The `DbPool` that was updated by this mutation. */ + dbPool?: DbPool | null; + dbPoolEdge?: DbPoolEdge | null; } -export type UpdateConfigSecretsModulePayloadSelect = { +export type UpdateDbPoolPayloadSelect = { clientMutationId?: boolean; - configSecretsModule?: { - select: ConfigSecretsModuleSelect; + dbPool?: { + select: DbPoolSelect; }; - configSecretsModuleEdge?: { - select: ConfigSecretsModuleEdgeSelect; + dbPoolEdge?: { + select: DbPoolEdgeSelect; }; }; -export interface DeleteConfigSecretsModulePayload { +export interface DeleteDbPoolPayload { clientMutationId?: string | null; - /** The `ConfigSecretsModule` that was deleted by this mutation. */ - configSecretsModule?: ConfigSecretsModule | null; - configSecretsModuleEdge?: ConfigSecretsModuleEdge | null; + /** The `DbPool` that was deleted by this mutation. */ + dbPool?: DbPool | null; + dbPoolEdge?: DbPoolEdge | null; } -export type DeleteConfigSecretsModulePayloadSelect = { +export type DeleteDbPoolPayloadSelect = { clientMutationId?: boolean; - configSecretsModule?: { - select: ConfigSecretsModuleSelect; + dbPool?: { + select: DbPoolSelect; }; - configSecretsModuleEdge?: { - select: ConfigSecretsModuleEdgeSelect; + dbPoolEdge?: { + select: DbPoolEdgeSelect; }; }; -export interface CreateGraphModulePayload { +export interface CreateFunctionModulePayload { clientMutationId?: string | null; - /** The `GraphModule` that was created by this mutation. */ - graphModule?: GraphModule | null; - graphModuleEdge?: GraphModuleEdge | null; + /** The `FunctionModule` that was created by this mutation. */ + functionModule?: FunctionModule | null; + functionModuleEdge?: FunctionModuleEdge | null; } -export type CreateGraphModulePayloadSelect = { +export type CreateFunctionModulePayloadSelect = { clientMutationId?: boolean; - graphModule?: { - select: GraphModuleSelect; + functionModule?: { + select: FunctionModuleSelect; }; - graphModuleEdge?: { - select: GraphModuleEdgeSelect; + functionModuleEdge?: { + select: FunctionModuleEdgeSelect; }; }; -export interface UpdateGraphModulePayload { +export interface UpdateFunctionModulePayload { clientMutationId?: string | null; - /** The `GraphModule` that was updated by this mutation. */ - graphModule?: GraphModule | null; - graphModuleEdge?: GraphModuleEdge | null; + /** The `FunctionModule` that was updated by this mutation. */ + functionModule?: FunctionModule | null; + functionModuleEdge?: FunctionModuleEdge | null; } -export type UpdateGraphModulePayloadSelect = { +export type UpdateFunctionModulePayloadSelect = { clientMutationId?: boolean; - graphModule?: { - select: GraphModuleSelect; + functionModule?: { + select: FunctionModuleSelect; }; - graphModuleEdge?: { - select: GraphModuleEdgeSelect; + functionModuleEdge?: { + select: FunctionModuleEdgeSelect; }; }; -export interface DeleteGraphModulePayload { +export interface DeleteFunctionModulePayload { clientMutationId?: string | null; - /** The `GraphModule` that was deleted by this mutation. */ - graphModule?: GraphModule | null; - graphModuleEdge?: GraphModuleEdge | null; + /** The `FunctionModule` that was deleted by this mutation. */ + functionModule?: FunctionModule | null; + functionModuleEdge?: FunctionModuleEdge | null; } -export type DeleteGraphModulePayloadSelect = { +export type DeleteFunctionModulePayloadSelect = { clientMutationId?: boolean; - graphModule?: { - select: GraphModuleSelect; + functionModule?: { + select: FunctionModuleSelect; }; - graphModuleEdge?: { - select: GraphModuleEdgeSelect; + functionModuleEdge?: { + select: FunctionModuleEdgeSelect; }; }; export interface CreateMerkleStoreModulePayload { @@ -14852,139 +16569,49 @@ export type DeleteMerkleStoreModulePayloadSelect = { select: MerkleStoreModuleEdgeSelect; }; }; -export interface CreateRateLimitMetersModulePayload { - clientMutationId?: string | null; - /** The `RateLimitMetersModule` that was created by this mutation. */ - rateLimitMetersModule?: RateLimitMetersModule | null; - rateLimitMetersModuleEdge?: RateLimitMetersModuleEdge | null; -} -export type CreateRateLimitMetersModulePayloadSelect = { - clientMutationId?: boolean; - rateLimitMetersModule?: { - select: RateLimitMetersModuleSelect; - }; - rateLimitMetersModuleEdge?: { - select: RateLimitMetersModuleEdgeSelect; - }; -}; -export interface UpdateRateLimitMetersModulePayload { - clientMutationId?: string | null; - /** The `RateLimitMetersModule` that was updated by this mutation. */ - rateLimitMetersModule?: RateLimitMetersModule | null; - rateLimitMetersModuleEdge?: RateLimitMetersModuleEdge | null; -} -export type UpdateRateLimitMetersModulePayloadSelect = { - clientMutationId?: boolean; - rateLimitMetersModule?: { - select: RateLimitMetersModuleSelect; - }; - rateLimitMetersModuleEdge?: { - select: RateLimitMetersModuleEdgeSelect; - }; -}; -export interface DeleteRateLimitMetersModulePayload { - clientMutationId?: string | null; - /** The `RateLimitMetersModule` that was deleted by this mutation. */ - rateLimitMetersModule?: RateLimitMetersModule | null; - rateLimitMetersModuleEdge?: RateLimitMetersModuleEdge | null; -} -export type DeleteRateLimitMetersModulePayloadSelect = { - clientMutationId?: boolean; - rateLimitMetersModule?: { - select: RateLimitMetersModuleSelect; - }; - rateLimitMetersModuleEdge?: { - select: RateLimitMetersModuleEdgeSelect; - }; -}; -export interface CreateRealtimeModulePayload { - clientMutationId?: string | null; - /** The `RealtimeModule` that was created by this mutation. */ - realtimeModule?: RealtimeModule | null; - realtimeModuleEdge?: RealtimeModuleEdge | null; -} -export type CreateRealtimeModulePayloadSelect = { - clientMutationId?: boolean; - realtimeModule?: { - select: RealtimeModuleSelect; - }; - realtimeModuleEdge?: { - select: RealtimeModuleEdgeSelect; - }; -}; -export interface UpdateRealtimeModulePayload { - clientMutationId?: string | null; - /** The `RealtimeModule` that was updated by this mutation. */ - realtimeModule?: RealtimeModule | null; - realtimeModuleEdge?: RealtimeModuleEdge | null; -} -export type UpdateRealtimeModulePayloadSelect = { - clientMutationId?: boolean; - realtimeModule?: { - select: RealtimeModuleSelect; - }; - realtimeModuleEdge?: { - select: RealtimeModuleEdgeSelect; - }; -}; -export interface DeleteRealtimeModulePayload { - clientMutationId?: string | null; - /** The `RealtimeModule` that was deleted by this mutation. */ - realtimeModule?: RealtimeModule | null; - realtimeModuleEdge?: RealtimeModuleEdge | null; -} -export type DeleteRealtimeModulePayloadSelect = { - clientMutationId?: boolean; - realtimeModule?: { - select: RealtimeModuleSelect; - }; - realtimeModuleEdge?: { - select: RealtimeModuleEdgeSelect; - }; -}; -export interface CreateWebauthnAuthModulePayload { +export interface CreateDatabaseProvisionModulePayload { clientMutationId?: string | null; - /** The `WebauthnAuthModule` that was created by this mutation. */ - webauthnAuthModule?: WebauthnAuthModule | null; - webauthnAuthModuleEdge?: WebauthnAuthModuleEdge | null; + /** The `DatabaseProvisionModule` that was created by this mutation. */ + databaseProvisionModule?: DatabaseProvisionModule | null; + databaseProvisionModuleEdge?: DatabaseProvisionModuleEdge | null; } -export type CreateWebauthnAuthModulePayloadSelect = { +export type CreateDatabaseProvisionModulePayloadSelect = { clientMutationId?: boolean; - webauthnAuthModule?: { - select: WebauthnAuthModuleSelect; + databaseProvisionModule?: { + select: DatabaseProvisionModuleSelect; }; - webauthnAuthModuleEdge?: { - select: WebauthnAuthModuleEdgeSelect; + databaseProvisionModuleEdge?: { + select: DatabaseProvisionModuleEdgeSelect; }; }; -export interface UpdateWebauthnAuthModulePayload { +export interface UpdateDatabaseProvisionModulePayload { clientMutationId?: string | null; - /** The `WebauthnAuthModule` that was updated by this mutation. */ - webauthnAuthModule?: WebauthnAuthModule | null; - webauthnAuthModuleEdge?: WebauthnAuthModuleEdge | null; + /** The `DatabaseProvisionModule` that was updated by this mutation. */ + databaseProvisionModule?: DatabaseProvisionModule | null; + databaseProvisionModuleEdge?: DatabaseProvisionModuleEdge | null; } -export type UpdateWebauthnAuthModulePayloadSelect = { +export type UpdateDatabaseProvisionModulePayloadSelect = { clientMutationId?: boolean; - webauthnAuthModule?: { - select: WebauthnAuthModuleSelect; + databaseProvisionModule?: { + select: DatabaseProvisionModuleSelect; }; - webauthnAuthModuleEdge?: { - select: WebauthnAuthModuleEdgeSelect; + databaseProvisionModuleEdge?: { + select: DatabaseProvisionModuleEdgeSelect; }; }; -export interface DeleteWebauthnAuthModulePayload { +export interface DeleteDatabaseProvisionModulePayload { clientMutationId?: string | null; - /** The `WebauthnAuthModule` that was deleted by this mutation. */ - webauthnAuthModule?: WebauthnAuthModule | null; - webauthnAuthModuleEdge?: WebauthnAuthModuleEdge | null; + /** The `DatabaseProvisionModule` that was deleted by this mutation. */ + databaseProvisionModule?: DatabaseProvisionModule | null; + databaseProvisionModuleEdge?: DatabaseProvisionModuleEdge | null; } -export type DeleteWebauthnAuthModulePayloadSelect = { +export type DeleteDatabaseProvisionModulePayloadSelect = { clientMutationId?: boolean; - webauthnAuthModule?: { - select: WebauthnAuthModuleSelect; + databaseProvisionModule?: { + select: DatabaseProvisionModuleSelect; }; - webauthnAuthModuleEdge?: { - select: WebauthnAuthModuleEdgeSelect; + databaseProvisionModuleEdge?: { + select: DatabaseProvisionModuleEdgeSelect; }; }; export interface CreateFunctionInvocationModulePayload { @@ -15032,51 +16659,6 @@ export type DeleteFunctionInvocationModulePayloadSelect = { select: FunctionInvocationModuleEdgeSelect; }; }; -export interface CreateFunctionModulePayload { - clientMutationId?: string | null; - /** The `FunctionModule` that was created by this mutation. */ - functionModule?: FunctionModule | null; - functionModuleEdge?: FunctionModuleEdge | null; -} -export type CreateFunctionModulePayloadSelect = { - clientMutationId?: boolean; - functionModule?: { - select: FunctionModuleSelect; - }; - functionModuleEdge?: { - select: FunctionModuleEdgeSelect; - }; -}; -export interface UpdateFunctionModulePayload { - clientMutationId?: string | null; - /** The `FunctionModule` that was updated by this mutation. */ - functionModule?: FunctionModule | null; - functionModuleEdge?: FunctionModuleEdge | null; -} -export type UpdateFunctionModulePayloadSelect = { - clientMutationId?: boolean; - functionModule?: { - select: FunctionModuleSelect; - }; - functionModuleEdge?: { - select: FunctionModuleEdgeSelect; - }; -}; -export interface DeleteFunctionModulePayload { - clientMutationId?: string | null; - /** The `FunctionModule` that was deleted by this mutation. */ - functionModule?: FunctionModule | null; - functionModuleEdge?: FunctionModuleEdge | null; -} -export type DeleteFunctionModulePayloadSelect = { - clientMutationId?: boolean; - functionModule?: { - select: FunctionModuleSelect; - }; - functionModuleEdge?: { - select: FunctionModuleEdgeSelect; - }; -}; export interface CreateInvitesModulePayload { clientMutationId?: string | null; /** The `InvitesModule` that was created by this mutation. */ @@ -15122,49 +16704,94 @@ export type DeleteInvitesModulePayloadSelect = { select: InvitesModuleEdgeSelect; }; }; -export interface CreatePrincipalAuthModulePayload { +export interface CreateNamespaceModulePayload { clientMutationId?: string | null; - /** The `PrincipalAuthModule` that was created by this mutation. */ - principalAuthModule?: PrincipalAuthModule | null; - principalAuthModuleEdge?: PrincipalAuthModuleEdge | null; + /** The `NamespaceModule` that was created by this mutation. */ + namespaceModule?: NamespaceModule | null; + namespaceModuleEdge?: NamespaceModuleEdge | null; } -export type CreatePrincipalAuthModulePayloadSelect = { +export type CreateNamespaceModulePayloadSelect = { clientMutationId?: boolean; - principalAuthModule?: { - select: PrincipalAuthModuleSelect; + namespaceModule?: { + select: NamespaceModuleSelect; }; - principalAuthModuleEdge?: { - select: PrincipalAuthModuleEdgeSelect; + namespaceModuleEdge?: { + select: NamespaceModuleEdgeSelect; }; }; -export interface UpdatePrincipalAuthModulePayload { +export interface UpdateNamespaceModulePayload { + clientMutationId?: string | null; + /** The `NamespaceModule` that was updated by this mutation. */ + namespaceModule?: NamespaceModule | null; + namespaceModuleEdge?: NamespaceModuleEdge | null; +} +export type UpdateNamespaceModulePayloadSelect = { + clientMutationId?: boolean; + namespaceModule?: { + select: NamespaceModuleSelect; + }; + namespaceModuleEdge?: { + select: NamespaceModuleEdgeSelect; + }; +}; +export interface DeleteNamespaceModulePayload { + clientMutationId?: string | null; + /** The `NamespaceModule` that was deleted by this mutation. */ + namespaceModule?: NamespaceModule | null; + namespaceModuleEdge?: NamespaceModuleEdge | null; +} +export type DeleteNamespaceModulePayloadSelect = { + clientMutationId?: boolean; + namespaceModule?: { + select: NamespaceModuleSelect; + }; + namespaceModuleEdge?: { + select: NamespaceModuleEdgeSelect; + }; +}; +export interface CreatePlansModulePayload { + clientMutationId?: string | null; + /** The `PlansModule` that was created by this mutation. */ + plansModule?: PlansModule | null; + plansModuleEdge?: PlansModuleEdge | null; +} +export type CreatePlansModulePayloadSelect = { + clientMutationId?: boolean; + plansModule?: { + select: PlansModuleSelect; + }; + plansModuleEdge?: { + select: PlansModuleEdgeSelect; + }; +}; +export interface UpdatePlansModulePayload { clientMutationId?: string | null; - /** The `PrincipalAuthModule` that was updated by this mutation. */ - principalAuthModule?: PrincipalAuthModule | null; - principalAuthModuleEdge?: PrincipalAuthModuleEdge | null; + /** The `PlansModule` that was updated by this mutation. */ + plansModule?: PlansModule | null; + plansModuleEdge?: PlansModuleEdge | null; } -export type UpdatePrincipalAuthModulePayloadSelect = { +export type UpdatePlansModulePayloadSelect = { clientMutationId?: boolean; - principalAuthModule?: { - select: PrincipalAuthModuleSelect; + plansModule?: { + select: PlansModuleSelect; }; - principalAuthModuleEdge?: { - select: PrincipalAuthModuleEdgeSelect; + plansModuleEdge?: { + select: PlansModuleEdgeSelect; }; }; -export interface DeletePrincipalAuthModulePayload { +export interface DeletePlansModulePayload { clientMutationId?: string | null; - /** The `PrincipalAuthModule` that was deleted by this mutation. */ - principalAuthModule?: PrincipalAuthModule | null; - principalAuthModuleEdge?: PrincipalAuthModuleEdge | null; + /** The `PlansModule` that was deleted by this mutation. */ + plansModule?: PlansModule | null; + plansModuleEdge?: PlansModuleEdge | null; } -export type DeletePrincipalAuthModulePayloadSelect = { +export type DeletePlansModulePayloadSelect = { clientMutationId?: boolean; - principalAuthModule?: { - select: PrincipalAuthModuleSelect; + plansModule?: { + select: PlansModuleSelect; }; - principalAuthModuleEdge?: { - select: PrincipalAuthModuleEdgeSelect; + plansModuleEdge?: { + select: PlansModuleEdgeSelect; }; }; export interface CreateComputeLogModulePayload { @@ -15257,96 +16884,6 @@ export type DeleteInferenceLogModulePayloadSelect = { select: InferenceLogModuleEdgeSelect; }; }; -export interface CreateNamespaceModulePayload { - clientMutationId?: string | null; - /** The `NamespaceModule` that was created by this mutation. */ - namespaceModule?: NamespaceModule | null; - namespaceModuleEdge?: NamespaceModuleEdge | null; -} -export type CreateNamespaceModulePayloadSelect = { - clientMutationId?: boolean; - namespaceModule?: { - select: NamespaceModuleSelect; - }; - namespaceModuleEdge?: { - select: NamespaceModuleEdgeSelect; - }; -}; -export interface UpdateNamespaceModulePayload { - clientMutationId?: string | null; - /** The `NamespaceModule` that was updated by this mutation. */ - namespaceModule?: NamespaceModule | null; - namespaceModuleEdge?: NamespaceModuleEdge | null; -} -export type UpdateNamespaceModulePayloadSelect = { - clientMutationId?: boolean; - namespaceModule?: { - select: NamespaceModuleSelect; - }; - namespaceModuleEdge?: { - select: NamespaceModuleEdgeSelect; - }; -}; -export interface DeleteNamespaceModulePayload { - clientMutationId?: string | null; - /** The `NamespaceModule` that was deleted by this mutation. */ - namespaceModule?: NamespaceModule | null; - namespaceModuleEdge?: NamespaceModuleEdge | null; -} -export type DeleteNamespaceModulePayloadSelect = { - clientMutationId?: boolean; - namespaceModule?: { - select: NamespaceModuleSelect; - }; - namespaceModuleEdge?: { - select: NamespaceModuleEdgeSelect; - }; -}; -export interface CreateResourceModulePayload { - clientMutationId?: string | null; - /** The `ResourceModule` that was created by this mutation. */ - resourceModule?: ResourceModule | null; - resourceModuleEdge?: ResourceModuleEdge | null; -} -export type CreateResourceModulePayloadSelect = { - clientMutationId?: boolean; - resourceModule?: { - select: ResourceModuleSelect; - }; - resourceModuleEdge?: { - select: ResourceModuleEdgeSelect; - }; -}; -export interface UpdateResourceModulePayload { - clientMutationId?: string | null; - /** The `ResourceModule` that was updated by this mutation. */ - resourceModule?: ResourceModule | null; - resourceModuleEdge?: ResourceModuleEdge | null; -} -export type UpdateResourceModulePayloadSelect = { - clientMutationId?: boolean; - resourceModule?: { - select: ResourceModuleSelect; - }; - resourceModuleEdge?: { - select: ResourceModuleEdgeSelect; - }; -}; -export interface DeleteResourceModulePayload { - clientMutationId?: string | null; - /** The `ResourceModule` that was deleted by this mutation. */ - resourceModule?: ResourceModule | null; - resourceModuleEdge?: ResourceModuleEdge | null; -} -export type DeleteResourceModulePayloadSelect = { - clientMutationId?: boolean; - resourceModule?: { - select: ResourceModuleSelect; - }; - resourceModuleEdge?: { - select: ResourceModuleEdgeSelect; - }; -}; export interface CreateStorageLogModulePayload { clientMutationId?: string | null; /** The `StorageLogModule` that was created by this mutation. */ @@ -15437,96 +16974,6 @@ export type DeleteTransferLogModulePayloadSelect = { select: TransferLogModuleEdgeSelect; }; }; -export interface CreateFunctionDeploymentModulePayload { - clientMutationId?: string | null; - /** The `FunctionDeploymentModule` that was created by this mutation. */ - functionDeploymentModule?: FunctionDeploymentModule | null; - functionDeploymentModuleEdge?: FunctionDeploymentModuleEdge | null; -} -export type CreateFunctionDeploymentModulePayloadSelect = { - clientMutationId?: boolean; - functionDeploymentModule?: { - select: FunctionDeploymentModuleSelect; - }; - functionDeploymentModuleEdge?: { - select: FunctionDeploymentModuleEdgeSelect; - }; -}; -export interface UpdateFunctionDeploymentModulePayload { - clientMutationId?: string | null; - /** The `FunctionDeploymentModule` that was updated by this mutation. */ - functionDeploymentModule?: FunctionDeploymentModule | null; - functionDeploymentModuleEdge?: FunctionDeploymentModuleEdge | null; -} -export type UpdateFunctionDeploymentModulePayloadSelect = { - clientMutationId?: boolean; - functionDeploymentModule?: { - select: FunctionDeploymentModuleSelect; - }; - functionDeploymentModuleEdge?: { - select: FunctionDeploymentModuleEdgeSelect; - }; -}; -export interface DeleteFunctionDeploymentModulePayload { - clientMutationId?: string | null; - /** The `FunctionDeploymentModule` that was deleted by this mutation. */ - functionDeploymentModule?: FunctionDeploymentModule | null; - functionDeploymentModuleEdge?: FunctionDeploymentModuleEdge | null; -} -export type DeleteFunctionDeploymentModulePayloadSelect = { - clientMutationId?: boolean; - functionDeploymentModule?: { - select: FunctionDeploymentModuleSelect; - }; - functionDeploymentModuleEdge?: { - select: FunctionDeploymentModuleEdgeSelect; - }; -}; -export interface CreatePlansModulePayload { - clientMutationId?: string | null; - /** The `PlansModule` that was created by this mutation. */ - plansModule?: PlansModule | null; - plansModuleEdge?: PlansModuleEdge | null; -} -export type CreatePlansModulePayloadSelect = { - clientMutationId?: boolean; - plansModule?: { - select: PlansModuleSelect; - }; - plansModuleEdge?: { - select: PlansModuleEdgeSelect; - }; -}; -export interface UpdatePlansModulePayload { - clientMutationId?: string | null; - /** The `PlansModule` that was updated by this mutation. */ - plansModule?: PlansModule | null; - plansModuleEdge?: PlansModuleEdge | null; -} -export type UpdatePlansModulePayloadSelect = { - clientMutationId?: boolean; - plansModule?: { - select: PlansModuleSelect; - }; - plansModuleEdge?: { - select: PlansModuleEdgeSelect; - }; -}; -export interface DeletePlansModulePayload { - clientMutationId?: string | null; - /** The `PlansModule` that was deleted by this mutation. */ - plansModule?: PlansModule | null; - plansModuleEdge?: PlansModuleEdge | null; -} -export type DeletePlansModulePayloadSelect = { - clientMutationId?: boolean; - plansModule?: { - select: PlansModuleSelect; - }; - plansModuleEdge?: { - select: PlansModuleEdgeSelect; - }; -}; export interface CreateBillingProviderModulePayload { clientMutationId?: string | null; /** The `BillingProviderModule` that was created by this mutation. */ @@ -15563,58 +17010,103 @@ export interface DeleteBillingProviderModulePayload { billingProviderModule?: BillingProviderModule | null; billingProviderModuleEdge?: BillingProviderModuleEdge | null; } -export type DeleteBillingProviderModulePayloadSelect = { +export type DeleteBillingProviderModulePayloadSelect = { + clientMutationId?: boolean; + billingProviderModule?: { + select: BillingProviderModuleSelect; + }; + billingProviderModuleEdge?: { + select: BillingProviderModuleEdgeSelect; + }; +}; +export interface CreateFunctionDeploymentModulePayload { + clientMutationId?: string | null; + /** The `FunctionDeploymentModule` that was created by this mutation. */ + functionDeploymentModule?: FunctionDeploymentModule | null; + functionDeploymentModuleEdge?: FunctionDeploymentModuleEdge | null; +} +export type CreateFunctionDeploymentModulePayloadSelect = { + clientMutationId?: boolean; + functionDeploymentModule?: { + select: FunctionDeploymentModuleSelect; + }; + functionDeploymentModuleEdge?: { + select: FunctionDeploymentModuleEdgeSelect; + }; +}; +export interface UpdateFunctionDeploymentModulePayload { + clientMutationId?: string | null; + /** The `FunctionDeploymentModule` that was updated by this mutation. */ + functionDeploymentModule?: FunctionDeploymentModule | null; + functionDeploymentModuleEdge?: FunctionDeploymentModuleEdge | null; +} +export type UpdateFunctionDeploymentModulePayloadSelect = { + clientMutationId?: boolean; + functionDeploymentModule?: { + select: FunctionDeploymentModuleSelect; + }; + functionDeploymentModuleEdge?: { + select: FunctionDeploymentModuleEdgeSelect; + }; +}; +export interface DeleteFunctionDeploymentModulePayload { + clientMutationId?: string | null; + /** The `FunctionDeploymentModule` that was deleted by this mutation. */ + functionDeploymentModule?: FunctionDeploymentModule | null; + functionDeploymentModuleEdge?: FunctionDeploymentModuleEdge | null; +} +export type DeleteFunctionDeploymentModulePayloadSelect = { clientMutationId?: boolean; - billingProviderModule?: { - select: BillingProviderModuleSelect; + functionDeploymentModule?: { + select: FunctionDeploymentModuleSelect; }; - billingProviderModuleEdge?: { - select: BillingProviderModuleEdgeSelect; + functionDeploymentModuleEdge?: { + select: FunctionDeploymentModuleEdgeSelect; }; }; -export interface CreateDbUsageModulePayload { +export interface CreatePermissionsModulePayload { clientMutationId?: string | null; - /** The `DbUsageModule` that was created by this mutation. */ - dbUsageModule?: DbUsageModule | null; - dbUsageModuleEdge?: DbUsageModuleEdge | null; + /** The `PermissionsModule` that was created by this mutation. */ + permissionsModule?: PermissionsModule | null; + permissionsModuleEdge?: PermissionsModuleEdge | null; } -export type CreateDbUsageModulePayloadSelect = { +export type CreatePermissionsModulePayloadSelect = { clientMutationId?: boolean; - dbUsageModule?: { - select: DbUsageModuleSelect; + permissionsModule?: { + select: PermissionsModuleSelect; }; - dbUsageModuleEdge?: { - select: DbUsageModuleEdgeSelect; + permissionsModuleEdge?: { + select: PermissionsModuleEdgeSelect; }; }; -export interface UpdateDbUsageModulePayload { +export interface UpdatePermissionsModulePayload { clientMutationId?: string | null; - /** The `DbUsageModule` that was updated by this mutation. */ - dbUsageModule?: DbUsageModule | null; - dbUsageModuleEdge?: DbUsageModuleEdge | null; + /** The `PermissionsModule` that was updated by this mutation. */ + permissionsModule?: PermissionsModule | null; + permissionsModuleEdge?: PermissionsModuleEdge | null; } -export type UpdateDbUsageModulePayloadSelect = { +export type UpdatePermissionsModulePayloadSelect = { clientMutationId?: boolean; - dbUsageModule?: { - select: DbUsageModuleSelect; + permissionsModule?: { + select: PermissionsModuleSelect; }; - dbUsageModuleEdge?: { - select: DbUsageModuleEdgeSelect; + permissionsModuleEdge?: { + select: PermissionsModuleEdgeSelect; }; }; -export interface DeleteDbUsageModulePayload { +export interface DeletePermissionsModulePayload { clientMutationId?: string | null; - /** The `DbUsageModule` that was deleted by this mutation. */ - dbUsageModule?: DbUsageModule | null; - dbUsageModuleEdge?: DbUsageModuleEdge | null; + /** The `PermissionsModule` that was deleted by this mutation. */ + permissionsModule?: PermissionsModule | null; + permissionsModuleEdge?: PermissionsModuleEdge | null; } -export type DeleteDbUsageModulePayloadSelect = { +export type DeletePermissionsModulePayloadSelect = { clientMutationId?: boolean; - dbUsageModule?: { - select: DbUsageModuleSelect; + permissionsModule?: { + select: PermissionsModuleSelect; }; - dbUsageModuleEdge?: { - select: DbUsageModuleEdgeSelect; + permissionsModuleEdge?: { + select: PermissionsModuleEdgeSelect; }; }; export interface CreateGraphExecutionModulePayload { @@ -15707,51 +17199,6 @@ export type DeleteHierarchyModulePayloadSelect = { select: HierarchyModuleEdgeSelect; }; }; -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 CreateNotificationsModulePayload { clientMutationId?: string | null; /** The `NotificationsModule` that was created by this mutation. */ @@ -15797,6 +17244,51 @@ export type DeleteNotificationsModulePayloadSelect = { select: NotificationsModuleEdgeSelect; }; }; +export interface CreateRelationProvisionPayload { + clientMutationId?: string | null; + /** The `RelationProvision` that was created by this mutation. */ + relationProvision?: RelationProvision | null; + relationProvisionEdge?: RelationProvisionEdge | null; +} +export type CreateRelationProvisionPayloadSelect = { + clientMutationId?: boolean; + relationProvision?: { + select: RelationProvisionSelect; + }; + relationProvisionEdge?: { + select: RelationProvisionEdgeSelect; + }; +}; +export interface UpdateRelationProvisionPayload { + clientMutationId?: string | null; + /** The `RelationProvision` that was updated by this mutation. */ + relationProvision?: RelationProvision | null; + relationProvisionEdge?: RelationProvisionEdge | null; +} +export type UpdateRelationProvisionPayloadSelect = { + clientMutationId?: boolean; + relationProvision?: { + select: RelationProvisionSelect; + }; + relationProvisionEdge?: { + select: RelationProvisionEdgeSelect; + }; +}; +export interface DeleteRelationProvisionPayload { + clientMutationId?: string | null; + /** The `RelationProvision` that was deleted by this mutation. */ + relationProvision?: RelationProvision | null; + relationProvisionEdge?: RelationProvisionEdge | null; +} +export type DeleteRelationProvisionPayloadSelect = { + clientMutationId?: boolean; + relationProvision?: { + select: RelationProvisionSelect; + }; + relationProvisionEdge?: { + select: RelationProvisionEdgeSelect; + }; +}; export interface CreateProfilesModulePayload { clientMutationId?: string | null; /** The `ProfilesModule` that was created by this mutation. */ @@ -15887,49 +17379,49 @@ export type DeleteBillingModulePayloadSelect = { select: BillingModuleEdgeSelect; }; }; -export interface CreateRelationProvisionPayload { +export interface CreateResourceModulePayload { clientMutationId?: string | null; - /** The `RelationProvision` that was created by this mutation. */ - relationProvision?: RelationProvision | null; - relationProvisionEdge?: RelationProvisionEdge | null; + /** The `ResourceModule` that was created by this mutation. */ + resourceModule?: ResourceModule | null; + resourceModuleEdge?: ResourceModuleEdge | null; } -export type CreateRelationProvisionPayloadSelect = { +export type CreateResourceModulePayloadSelect = { clientMutationId?: boolean; - relationProvision?: { - select: RelationProvisionSelect; + resourceModule?: { + select: ResourceModuleSelect; }; - relationProvisionEdge?: { - select: RelationProvisionEdgeSelect; + resourceModuleEdge?: { + select: ResourceModuleEdgeSelect; }; }; -export interface UpdateRelationProvisionPayload { +export interface UpdateResourceModulePayload { clientMutationId?: string | null; - /** The `RelationProvision` that was updated by this mutation. */ - relationProvision?: RelationProvision | null; - relationProvisionEdge?: RelationProvisionEdge | null; + /** The `ResourceModule` that was updated by this mutation. */ + resourceModule?: ResourceModule | null; + resourceModuleEdge?: ResourceModuleEdge | null; } -export type UpdateRelationProvisionPayloadSelect = { +export type UpdateResourceModulePayloadSelect = { clientMutationId?: boolean; - relationProvision?: { - select: RelationProvisionSelect; + resourceModule?: { + select: ResourceModuleSelect; }; - relationProvisionEdge?: { - select: RelationProvisionEdgeSelect; + resourceModuleEdge?: { + select: ResourceModuleEdgeSelect; }; }; -export interface DeleteRelationProvisionPayload { +export interface DeleteResourceModulePayload { clientMutationId?: string | null; - /** The `RelationProvision` that was deleted by this mutation. */ - relationProvision?: RelationProvision | null; - relationProvisionEdge?: RelationProvisionEdge | null; + /** The `ResourceModule` that was deleted by this mutation. */ + resourceModule?: ResourceModule | null; + resourceModuleEdge?: ResourceModuleEdge | null; } -export type DeleteRelationProvisionPayloadSelect = { +export type DeleteResourceModulePayloadSelect = { clientMutationId?: boolean; - relationProvision?: { - select: RelationProvisionSelect; + resourceModule?: { + select: ResourceModuleSelect; }; - relationProvisionEdge?: { - select: RelationProvisionEdgeSelect; + resourceModuleEdge?: { + select: ResourceModuleEdgeSelect; }; }; export interface CreateUserAuthModulePayload { @@ -15943,38 +17435,83 @@ export type CreateUserAuthModulePayloadSelect = { userAuthModule?: { select: UserAuthModuleSelect; }; - userAuthModuleEdge?: { - select: UserAuthModuleEdgeSelect; + userAuthModuleEdge?: { + select: UserAuthModuleEdgeSelect; + }; +}; +export interface UpdateUserAuthModulePayload { + clientMutationId?: string | null; + /** The `UserAuthModule` that was updated by this mutation. */ + userAuthModule?: UserAuthModule | null; + userAuthModuleEdge?: UserAuthModuleEdge | null; +} +export type UpdateUserAuthModulePayloadSelect = { + clientMutationId?: boolean; + userAuthModule?: { + select: UserAuthModuleSelect; + }; + userAuthModuleEdge?: { + select: UserAuthModuleEdgeSelect; + }; +}; +export interface DeleteUserAuthModulePayload { + clientMutationId?: string | null; + /** The `UserAuthModule` that was deleted by this mutation. */ + userAuthModule?: UserAuthModule | null; + userAuthModuleEdge?: UserAuthModuleEdge | null; +} +export type DeleteUserAuthModulePayloadSelect = { + clientMutationId?: boolean; + userAuthModule?: { + select: UserAuthModuleSelect; + }; + userAuthModuleEdge?: { + select: UserAuthModuleEdgeSelect; + }; +}; +export interface CreateDbUsageModulePayload { + clientMutationId?: string | null; + /** The `DbUsageModule` that was created by this mutation. */ + dbUsageModule?: DbUsageModule | null; + dbUsageModuleEdge?: DbUsageModuleEdge | null; +} +export type CreateDbUsageModulePayloadSelect = { + clientMutationId?: boolean; + dbUsageModule?: { + select: DbUsageModuleSelect; + }; + dbUsageModuleEdge?: { + select: DbUsageModuleEdgeSelect; }; }; -export interface UpdateUserAuthModulePayload { +export interface UpdateDbUsageModulePayload { clientMutationId?: string | null; - /** The `UserAuthModule` that was updated by this mutation. */ - userAuthModule?: UserAuthModule | null; - userAuthModuleEdge?: UserAuthModuleEdge | null; + /** The `DbUsageModule` that was updated by this mutation. */ + dbUsageModule?: DbUsageModule | null; + dbUsageModuleEdge?: DbUsageModuleEdge | null; } -export type UpdateUserAuthModulePayloadSelect = { +export type UpdateDbUsageModulePayloadSelect = { clientMutationId?: boolean; - userAuthModule?: { - select: UserAuthModuleSelect; + dbUsageModule?: { + select: DbUsageModuleSelect; }; - userAuthModuleEdge?: { - select: UserAuthModuleEdgeSelect; + dbUsageModuleEdge?: { + select: DbUsageModuleEdgeSelect; }; }; -export interface DeleteUserAuthModulePayload { +export interface DeleteDbUsageModulePayload { clientMutationId?: string | null; - /** The `UserAuthModule` that was deleted by this mutation. */ - userAuthModule?: UserAuthModule | null; - userAuthModuleEdge?: UserAuthModuleEdge | null; + /** The `DbUsageModule` that was deleted by this mutation. */ + dbUsageModule?: DbUsageModule | null; + dbUsageModuleEdge?: DbUsageModuleEdge | null; } -export type DeleteUserAuthModulePayloadSelect = { +export type DeleteDbUsageModulePayloadSelect = { clientMutationId?: boolean; - userAuthModule?: { - select: UserAuthModuleSelect; + dbUsageModule?: { + select: DbUsageModuleSelect; }; - userAuthModuleEdge?: { - select: UserAuthModuleEdgeSelect; + dbUsageModuleEdge?: { + select: DbUsageModuleEdgeSelect; }; }; export interface CreateAgentModulePayload { @@ -16067,51 +17604,6 @@ export type DeleteLimitsModulePayloadSelect = { select: LimitsModuleEdgeSelect; }; }; -export interface CreateMembershipsModulePayload { - clientMutationId?: string | null; - /** The `MembershipsModule` that was created by this mutation. */ - membershipsModule?: MembershipsModule | null; - membershipsModuleEdge?: MembershipsModuleEdge | null; -} -export type CreateMembershipsModulePayloadSelect = { - clientMutationId?: boolean; - membershipsModule?: { - select: MembershipsModuleSelect; - }; - membershipsModuleEdge?: { - select: MembershipsModuleEdgeSelect; - }; -}; -export interface UpdateMembershipsModulePayload { - clientMutationId?: string | null; - /** The `MembershipsModule` that was updated by this mutation. */ - membershipsModule?: MembershipsModule | null; - membershipsModuleEdge?: MembershipsModuleEdge | null; -} -export type UpdateMembershipsModulePayloadSelect = { - clientMutationId?: boolean; - membershipsModule?: { - select: MembershipsModuleSelect; - }; - membershipsModuleEdge?: { - select: MembershipsModuleEdgeSelect; - }; -}; -export interface DeleteMembershipsModulePayload { - clientMutationId?: string | null; - /** The `MembershipsModule` that was deleted by this mutation. */ - membershipsModule?: MembershipsModule | null; - membershipsModuleEdge?: MembershipsModuleEdge | null; -} -export type DeleteMembershipsModulePayloadSelect = { - clientMutationId?: boolean; - membershipsModule?: { - select: MembershipsModuleSelect; - }; - membershipsModuleEdge?: { - select: MembershipsModuleEdgeSelect; - }; -}; export interface CreateEntityTypeProvisionPayload { clientMutationId?: string | null; /** The `EntityTypeProvision` that was created by this mutation. */ @@ -16202,6 +17694,51 @@ export type DeleteStorageModulePayloadSelect = { select: StorageModuleEdgeSelect; }; }; +export interface CreateMembershipsModulePayload { + clientMutationId?: string | null; + /** The `MembershipsModule` that was created by this mutation. */ + membershipsModule?: MembershipsModule | null; + membershipsModuleEdge?: MembershipsModuleEdge | null; +} +export type CreateMembershipsModulePayloadSelect = { + clientMutationId?: boolean; + membershipsModule?: { + select: MembershipsModuleSelect; + }; + membershipsModuleEdge?: { + select: MembershipsModuleEdgeSelect; + }; +}; +export interface UpdateMembershipsModulePayload { + clientMutationId?: string | null; + /** The `MembershipsModule` that was updated by this mutation. */ + membershipsModule?: MembershipsModule | null; + membershipsModuleEdge?: MembershipsModuleEdge | null; +} +export type UpdateMembershipsModulePayloadSelect = { + clientMutationId?: boolean; + membershipsModule?: { + select: MembershipsModuleSelect; + }; + membershipsModuleEdge?: { + select: MembershipsModuleEdgeSelect; + }; +}; +export interface DeleteMembershipsModulePayload { + clientMutationId?: string | null; + /** The `MembershipsModule` that was deleted by this mutation. */ + membershipsModule?: MembershipsModule | null; + membershipsModuleEdge?: MembershipsModuleEdge | null; +} +export type DeleteMembershipsModulePayloadSelect = { + clientMutationId?: boolean; + membershipsModule?: { + select: MembershipsModuleSelect; + }; + membershipsModuleEdge?: { + select: MembershipsModuleEdgeSelect; + }; +}; export interface CreateEventsModulePayload { clientMutationId?: string | null; /** The `EventsModule` that was created by this mutation. */ @@ -16291,18 +17828,6 @@ export type MembershipTypesModuleEdgeSelect = { select: MembershipTypesModuleSelect; }; }; -/** A `UserStateModule` edge in the connection. */ -export interface UserStateModuleEdge { - cursor?: string | null; - /** The `UserStateModule` at the end of the edge. */ - node?: UserStateModule | null; -} -export type UserStateModuleEdgeSelect = { - cursor?: boolean; - node?: { - select: UserStateModuleSelect; - }; -}; /** A `SessionSecretsModule` edge in the connection. */ export interface SessionSecretsModuleEdge { cursor?: string | null; @@ -16315,18 +17840,6 @@ export type SessionSecretsModuleEdgeSelect = { select: SessionSecretsModuleSelect; }; }; -/** A `ConfigSecretsOrgModule` edge in the connection. */ -export interface ConfigSecretsOrgModuleEdge { - cursor?: string | null; - /** The `ConfigSecretsOrgModule` at the end of the edge. */ - node?: ConfigSecretsOrgModule | null; -} -export type ConfigSecretsOrgModuleEdgeSelect = { - cursor?: boolean; - node?: { - select: ConfigSecretsOrgModuleSelect; - }; -}; /** A `DevicesModule` edge in the connection. */ export interface DevicesModuleEdge { cursor?: string | null; @@ -16351,18 +17864,6 @@ export type I18NModuleEdgeSelect = { select: I18NModuleSelect; }; }; -/** A `UserCredentialsModule` edge in the connection. */ -export interface UserCredentialsModuleEdge { - cursor?: string | null; - /** The `UserCredentialsModule` at the end of the edge. */ - node?: UserCredentialsModule | null; -} -export type UserCredentialsModuleEdgeSelect = { - cursor?: boolean; - node?: { - select: UserCredentialsModuleSelect; - }; -}; /** A `UserSettingsModule` edge in the connection. */ export interface UserSettingsModuleEdge { cursor?: string | null; @@ -16375,16 +17876,28 @@ export type UserSettingsModuleEdgeSelect = { select: UserSettingsModuleSelect; }; }; -/** A `ConfigSecretsUserModule` edge in the connection. */ -export interface ConfigSecretsUserModuleEdge { +/** A `UserStateModule` edge in the connection. */ +export interface UserStateModuleEdge { cursor?: string | null; - /** The `ConfigSecretsUserModule` at the end of the edge. */ - node?: ConfigSecretsUserModule | null; + /** The `UserStateModule` at the end of the edge. */ + node?: UserStateModule | null; } -export type ConfigSecretsUserModuleEdgeSelect = { +export type UserStateModuleEdgeSelect = { cursor?: boolean; node?: { - select: ConfigSecretsUserModuleSelect; + select: UserStateModuleSelect; + }; +}; +/** A `UserCredentialsModule` edge in the connection. */ +export interface UserCredentialsModuleEdge { + cursor?: string | null; + /** The `UserCredentialsModule` at the end of the edge. */ + node?: UserCredentialsModule | null; +} +export type UserCredentialsModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: UserCredentialsModuleSelect; }; }; /** A `ConnectedAccountsModule` edge in the connection. */ @@ -16459,6 +17972,18 @@ export type WebauthnCredentialsModuleEdgeSelect = { select: WebauthnCredentialsModuleSelect; }; }; +/** A `ConfigSecretsUserModule` edge in the connection. */ +export interface ConfigSecretsUserModuleEdge { + cursor?: string | null; + /** The `ConfigSecretsUserModule` at the end of the edge. */ + node?: ConfigSecretsUserModule | null; +} +export type ConfigSecretsUserModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: ConfigSecretsUserModuleSelect; + }; +}; /** A `CryptoAddressesModule` edge in the connection. */ export interface CryptoAddressesModuleEdge { cursor?: string | null; @@ -16483,18 +18008,6 @@ export type DenormalizedTableFieldEdgeSelect = { select: DenormalizedTableFieldSelect; }; }; -/** A `IdentityProvidersModule` edge in the connection. */ -export interface IdentityProvidersModuleEdge { - cursor?: string | null; - /** The `IdentityProvidersModule` at the end of the edge. */ - node?: IdentityProvidersModule | null; -} -export type IdentityProvidersModuleEdgeSelect = { - cursor?: boolean; - node?: { - select: IdentityProvidersModuleSelect; - }; -}; /** A `RlsModule` edge in the connection. */ export interface RlsModuleEdge { cursor?: string | null; @@ -16561,46 +18074,106 @@ export interface SessionsModuleEdge { /** The `SessionsModule` at the end of the edge. */ node?: SessionsModule | null; } -export type SessionsModuleEdgeSelect = { +export type SessionsModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: SessionsModuleSelect; + }; +}; +/** A `SecureTableProvision` edge in the connection. */ +export interface SecureTableProvisionEdge { + cursor?: string | null; + /** The `SecureTableProvision` at the end of the edge. */ + node?: SecureTableProvision | null; +} +export type SecureTableProvisionEdgeSelect = { + cursor?: boolean; + node?: { + select: SecureTableProvisionSelect; + }; +}; +/** A `IdentityProvidersModule` edge in the connection. */ +export interface IdentityProvidersModuleEdge { + cursor?: string | null; + /** The `IdentityProvidersModule` at the end of the edge. */ + node?: IdentityProvidersModule | null; +} +export type IdentityProvidersModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: IdentityProvidersModuleSelect; + }; +}; +/** A `IntegrationProvidersModule` edge in the connection. */ +export interface IntegrationProvidersModuleEdge { + cursor?: string | null; + /** The `IntegrationProvidersModule` at the end of the edge. */ + node?: IntegrationProvidersModule | null; +} +export type IntegrationProvidersModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: IntegrationProvidersModuleSelect; + }; +}; +/** A `DbPoolConfig` edge in the connection. */ +export interface DbPoolConfigEdge { + cursor?: string | null; + /** The `DbPoolConfig` at the end of the edge. */ + node?: DbPoolConfig | null; +} +export type DbPoolConfigEdgeSelect = { + cursor?: boolean; + node?: { + select: DbPoolConfigSelect; + }; +}; +/** A `RealtimeModule` edge in the connection. */ +export interface RealtimeModuleEdge { + cursor?: string | null; + /** The `RealtimeModule` at the end of the edge. */ + node?: RealtimeModule | null; +} +export type RealtimeModuleEdgeSelect = { cursor?: boolean; node?: { - select: SessionsModuleSelect; + select: RealtimeModuleSelect; }; }; -/** A `SecureTableProvision` edge in the connection. */ -export interface SecureTableProvisionEdge { +/** A `InfraSecretsModule` edge in the connection. */ +export interface InfraSecretsModuleEdge { cursor?: string | null; - /** The `SecureTableProvision` at the end of the edge. */ - node?: SecureTableProvision | null; + /** The `InfraSecretsModule` at the end of the edge. */ + node?: InfraSecretsModule | null; } -export type SecureTableProvisionEdgeSelect = { +export type InfraSecretsModuleEdgeSelect = { cursor?: boolean; node?: { - select: SecureTableProvisionSelect; + select: InfraSecretsModuleSelect; }; }; -/** A `DatabaseProvisionModule` edge in the connection. */ -export interface DatabaseProvisionModuleEdge { +/** A `InternalSecretsModule` edge in the connection. */ +export interface InternalSecretsModuleEdge { cursor?: string | null; - /** The `DatabaseProvisionModule` at the end of the edge. */ - node?: DatabaseProvisionModule | null; + /** The `InternalSecretsModule` at the end of the edge. */ + node?: InternalSecretsModule | null; } -export type DatabaseProvisionModuleEdgeSelect = { +export type InternalSecretsModuleEdgeSelect = { cursor?: boolean; node?: { - select: DatabaseProvisionModuleSelect; + select: InternalSecretsModuleSelect; }; }; -/** A `ConfigSecretsModule` edge in the connection. */ -export interface ConfigSecretsModuleEdge { +/** A `DbPresetModule` edge in the connection. */ +export interface DbPresetModuleEdge { cursor?: string | null; - /** The `ConfigSecretsModule` at the end of the edge. */ - node?: ConfigSecretsModule | null; + /** The `DbPresetModule` at the end of the edge. */ + node?: DbPresetModule | null; } -export type ConfigSecretsModuleEdgeSelect = { +export type DbPresetModuleEdgeSelect = { cursor?: boolean; node?: { - select: ConfigSecretsModuleSelect; + select: DbPresetModuleSelect; }; }; /** A `GraphModule` edge in the connection. */ @@ -16615,18 +18188,6 @@ export type GraphModuleEdgeSelect = { select: GraphModuleSelect; }; }; -/** A `MerkleStoreModule` edge in the connection. */ -export interface MerkleStoreModuleEdge { - cursor?: string | null; - /** The `MerkleStoreModule` at the end of the edge. */ - node?: MerkleStoreModule | null; -} -export type MerkleStoreModuleEdgeSelect = { - cursor?: boolean; - node?: { - select: MerkleStoreModuleSelect; - }; -}; /** A `RateLimitMetersModule` edge in the connection. */ export interface RateLimitMetersModuleEdge { cursor?: string | null; @@ -16639,16 +18200,16 @@ export type RateLimitMetersModuleEdgeSelect = { select: RateLimitMetersModuleSelect; }; }; -/** A `RealtimeModule` edge in the connection. */ -export interface RealtimeModuleEdge { +/** A `InfraConfigModule` edge in the connection. */ +export interface InfraConfigModuleEdge { cursor?: string | null; - /** The `RealtimeModule` at the end of the edge. */ - node?: RealtimeModule | null; + /** The `InfraConfigModule` at the end of the edge. */ + node?: InfraConfigModule | null; } -export type RealtimeModuleEdgeSelect = { +export type InfraConfigModuleEdgeSelect = { cursor?: boolean; node?: { - select: RealtimeModuleSelect; + select: InfraConfigModuleSelect; }; }; /** A `WebauthnAuthModule` edge in the connection. */ @@ -16663,16 +18224,28 @@ export type WebauthnAuthModuleEdgeSelect = { select: WebauthnAuthModuleSelect; }; }; -/** A `FunctionInvocationModule` edge in the connection. */ -export interface FunctionInvocationModuleEdge { +/** A `PrincipalAuthModule` edge in the connection. */ +export interface PrincipalAuthModuleEdge { cursor?: string | null; - /** The `FunctionInvocationModule` at the end of the edge. */ - node?: FunctionInvocationModule | null; + /** The `PrincipalAuthModule` at the end of the edge. */ + node?: PrincipalAuthModule | null; } -export type FunctionInvocationModuleEdgeSelect = { +export type PrincipalAuthModuleEdgeSelect = { cursor?: boolean; node?: { - select: FunctionInvocationModuleSelect; + select: PrincipalAuthModuleSelect; + }; +}; +/** A `DbPool` edge in the connection. */ +export interface DbPoolEdge { + cursor?: string | null; + /** The `DbPool` at the end of the edge. */ + node?: DbPool | null; +} +export type DbPoolEdgeSelect = { + cursor?: boolean; + node?: { + select: DbPoolSelect; }; }; /** A `FunctionModule` edge in the connection. */ @@ -16687,52 +18260,52 @@ export type FunctionModuleEdgeSelect = { select: FunctionModuleSelect; }; }; -/** A `InvitesModule` edge in the connection. */ -export interface InvitesModuleEdge { +/** A `MerkleStoreModule` edge in the connection. */ +export interface MerkleStoreModuleEdge { cursor?: string | null; - /** The `InvitesModule` at the end of the edge. */ - node?: InvitesModule | null; + /** The `MerkleStoreModule` at the end of the edge. */ + node?: MerkleStoreModule | null; } -export type InvitesModuleEdgeSelect = { +export type MerkleStoreModuleEdgeSelect = { cursor?: boolean; node?: { - select: InvitesModuleSelect; + select: MerkleStoreModuleSelect; }; }; -/** A `PrincipalAuthModule` edge in the connection. */ -export interface PrincipalAuthModuleEdge { +/** A `DatabaseProvisionModule` edge in the connection. */ +export interface DatabaseProvisionModuleEdge { cursor?: string | null; - /** The `PrincipalAuthModule` at the end of the edge. */ - node?: PrincipalAuthModule | null; + /** The `DatabaseProvisionModule` at the end of the edge. */ + node?: DatabaseProvisionModule | null; } -export type PrincipalAuthModuleEdgeSelect = { +export type DatabaseProvisionModuleEdgeSelect = { cursor?: boolean; node?: { - select: PrincipalAuthModuleSelect; + select: DatabaseProvisionModuleSelect; }; }; -/** A `ComputeLogModule` edge in the connection. */ -export interface ComputeLogModuleEdge { +/** A `FunctionInvocationModule` edge in the connection. */ +export interface FunctionInvocationModuleEdge { cursor?: string | null; - /** The `ComputeLogModule` at the end of the edge. */ - node?: ComputeLogModule | null; + /** The `FunctionInvocationModule` at the end of the edge. */ + node?: FunctionInvocationModule | null; } -export type ComputeLogModuleEdgeSelect = { +export type FunctionInvocationModuleEdgeSelect = { cursor?: boolean; node?: { - select: ComputeLogModuleSelect; + select: FunctionInvocationModuleSelect; }; }; -/** A `InferenceLogModule` edge in the connection. */ -export interface InferenceLogModuleEdge { +/** A `InvitesModule` edge in the connection. */ +export interface InvitesModuleEdge { cursor?: string | null; - /** The `InferenceLogModule` at the end of the edge. */ - node?: InferenceLogModule | null; + /** The `InvitesModule` at the end of the edge. */ + node?: InvitesModule | null; } -export type InferenceLogModuleEdgeSelect = { +export type InvitesModuleEdgeSelect = { cursor?: boolean; node?: { - select: InferenceLogModuleSelect; + select: InvitesModuleSelect; }; }; /** A `NamespaceModule` edge in the connection. */ @@ -16747,64 +18320,64 @@ export type NamespaceModuleEdgeSelect = { select: NamespaceModuleSelect; }; }; -/** A `ResourceModule` edge in the connection. */ -export interface ResourceModuleEdge { +/** A `PlansModule` edge in the connection. */ +export interface PlansModuleEdge { cursor?: string | null; - /** The `ResourceModule` at the end of the edge. */ - node?: ResourceModule | null; + /** The `PlansModule` at the end of the edge. */ + node?: PlansModule | null; } -export type ResourceModuleEdgeSelect = { +export type PlansModuleEdgeSelect = { cursor?: boolean; node?: { - select: ResourceModuleSelect; + select: PlansModuleSelect; }; }; -/** A `StorageLogModule` edge in the connection. */ -export interface StorageLogModuleEdge { +/** A `ComputeLogModule` edge in the connection. */ +export interface ComputeLogModuleEdge { cursor?: string | null; - /** The `StorageLogModule` at the end of the edge. */ - node?: StorageLogModule | null; + /** The `ComputeLogModule` at the end of the edge. */ + node?: ComputeLogModule | null; } -export type StorageLogModuleEdgeSelect = { +export type ComputeLogModuleEdgeSelect = { cursor?: boolean; node?: { - select: StorageLogModuleSelect; + select: ComputeLogModuleSelect; }; }; -/** A `TransferLogModule` edge in the connection. */ -export interface TransferLogModuleEdge { +/** A `InferenceLogModule` edge in the connection. */ +export interface InferenceLogModuleEdge { cursor?: string | null; - /** The `TransferLogModule` at the end of the edge. */ - node?: TransferLogModule | null; + /** The `InferenceLogModule` at the end of the edge. */ + node?: InferenceLogModule | null; } -export type TransferLogModuleEdgeSelect = { +export type InferenceLogModuleEdgeSelect = { cursor?: boolean; node?: { - select: TransferLogModuleSelect; + select: InferenceLogModuleSelect; }; }; -/** A `FunctionDeploymentModule` edge in the connection. */ -export interface FunctionDeploymentModuleEdge { +/** A `StorageLogModule` edge in the connection. */ +export interface StorageLogModuleEdge { cursor?: string | null; - /** The `FunctionDeploymentModule` at the end of the edge. */ - node?: FunctionDeploymentModule | null; + /** The `StorageLogModule` at the end of the edge. */ + node?: StorageLogModule | null; } -export type FunctionDeploymentModuleEdgeSelect = { +export type StorageLogModuleEdgeSelect = { cursor?: boolean; node?: { - select: FunctionDeploymentModuleSelect; + select: StorageLogModuleSelect; }; }; -/** A `PlansModule` edge in the connection. */ -export interface PlansModuleEdge { +/** A `TransferLogModule` edge in the connection. */ +export interface TransferLogModuleEdge { cursor?: string | null; - /** The `PlansModule` at the end of the edge. */ - node?: PlansModule | null; + /** The `TransferLogModule` at the end of the edge. */ + node?: TransferLogModule | null; } -export type PlansModuleEdgeSelect = { +export type TransferLogModuleEdgeSelect = { cursor?: boolean; node?: { - select: PlansModuleSelect; + select: TransferLogModuleSelect; }; }; /** A `BillingProviderModule` edge in the connection. */ @@ -16819,16 +18392,28 @@ export type BillingProviderModuleEdgeSelect = { select: BillingProviderModuleSelect; }; }; -/** A `DbUsageModule` edge in the connection. */ -export interface DbUsageModuleEdge { +/** A `FunctionDeploymentModule` edge in the connection. */ +export interface FunctionDeploymentModuleEdge { cursor?: string | null; - /** The `DbUsageModule` at the end of the edge. */ - node?: DbUsageModule | null; + /** The `FunctionDeploymentModule` at the end of the edge. */ + node?: FunctionDeploymentModule | null; } -export type DbUsageModuleEdgeSelect = { +export type FunctionDeploymentModuleEdgeSelect = { cursor?: boolean; node?: { - select: DbUsageModuleSelect; + select: FunctionDeploymentModuleSelect; + }; +}; +/** A `PermissionsModule` edge in the connection. */ +export interface PermissionsModuleEdge { + cursor?: string | null; + /** The `PermissionsModule` at the end of the edge. */ + node?: PermissionsModule | null; +} +export type PermissionsModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: PermissionsModuleSelect; }; }; /** A `GraphExecutionModule` edge in the connection. */ @@ -16855,18 +18440,6 @@ export type HierarchyModuleEdgeSelect = { select: HierarchyModuleSelect; }; }; -/** A `PermissionsModule` edge in the connection. */ -export interface PermissionsModuleEdge { - cursor?: string | null; - /** The `PermissionsModule` at the end of the edge. */ - node?: PermissionsModule | null; -} -export type PermissionsModuleEdgeSelect = { - cursor?: boolean; - node?: { - select: PermissionsModuleSelect; - }; -}; /** A `NotificationsModule` edge in the connection. */ export interface NotificationsModuleEdge { cursor?: string | null; @@ -16879,6 +18452,18 @@ export type NotificationsModuleEdgeSelect = { select: NotificationsModuleSelect; }; }; +/** A `RelationProvision` edge in the connection. */ +export interface RelationProvisionEdge { + cursor?: string | null; + /** The `RelationProvision` at the end of the edge. */ + node?: RelationProvision | null; +} +export type RelationProvisionEdgeSelect = { + cursor?: boolean; + node?: { + select: RelationProvisionSelect; + }; +}; /** A `ProfilesModule` edge in the connection. */ export interface ProfilesModuleEdge { cursor?: string | null; @@ -16903,16 +18488,16 @@ export type BillingModuleEdgeSelect = { select: BillingModuleSelect; }; }; -/** A `RelationProvision` edge in the connection. */ -export interface RelationProvisionEdge { +/** A `ResourceModule` edge in the connection. */ +export interface ResourceModuleEdge { cursor?: string | null; - /** The `RelationProvision` at the end of the edge. */ - node?: RelationProvision | null; + /** The `ResourceModule` at the end of the edge. */ + node?: ResourceModule | null; } -export type RelationProvisionEdgeSelect = { +export type ResourceModuleEdgeSelect = { cursor?: boolean; node?: { - select: RelationProvisionSelect; + select: ResourceModuleSelect; }; }; /** A `UserAuthModule` edge in the connection. */ @@ -16927,6 +18512,18 @@ export type UserAuthModuleEdgeSelect = { select: UserAuthModuleSelect; }; }; +/** A `DbUsageModule` edge in the connection. */ +export interface DbUsageModuleEdge { + cursor?: string | null; + /** The `DbUsageModule` at the end of the edge. */ + node?: DbUsageModule | null; +} +export type DbUsageModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: DbUsageModuleSelect; + }; +}; /** A `AgentModule` edge in the connection. */ export interface AgentModuleEdge { cursor?: string | null; @@ -16951,18 +18548,6 @@ export type LimitsModuleEdgeSelect = { select: LimitsModuleSelect; }; }; -/** A `MembershipsModule` edge in the connection. */ -export interface MembershipsModuleEdge { - cursor?: string | null; - /** The `MembershipsModule` at the end of the edge. */ - node?: MembershipsModule | null; -} -export type MembershipsModuleEdgeSelect = { - cursor?: boolean; - node?: { - select: MembershipsModuleSelect; - }; -}; /** A `EntityTypeProvision` edge in the connection. */ export interface EntityTypeProvisionEdge { cursor?: string | null; @@ -16987,6 +18572,18 @@ export type StorageModuleEdgeSelect = { select: StorageModuleSelect; }; }; +/** A `MembershipsModule` edge in the connection. */ +export interface MembershipsModuleEdge { + cursor?: string | null; + /** The `MembershipsModule` at the end of the edge. */ + node?: MembershipsModule | null; +} +export type MembershipsModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: MembershipsModuleSelect; + }; +}; /** A `EventsModule` edge in the connection. */ export interface EventsModuleEdge { cursor?: string | null; diff --git a/sdk/constructive-sdk/src/modules/orm/models/configSecretsOrgModule.ts b/sdk/constructive-sdk/src/modules/orm/models/configSecretsOrgModule.ts deleted file mode 100644 index 08969c552d..0000000000 --- a/sdk/constructive-sdk/src/modules/orm/models/configSecretsOrgModule.ts +++ /dev/null @@ -1,247 +0,0 @@ -/** - * ConfigSecretsOrgModule model for ORM client - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { OrmClient } from '../client'; -import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, - buildCreateDocument, - buildUpdateByPkDocument, - buildDeleteByPkDocument, -} from '../query-builder'; -import type { - ConnectionResult, - FindManyArgs, - FindFirstArgs, - CreateArgs, - UpdateArgs, - DeleteArgs, - InferSelectResult, - StrictSelect, -} from '../select-types'; -import type { - ConfigSecretsOrgModule, - ConfigSecretsOrgModuleWithRelations, - ConfigSecretsOrgModuleSelect, - ConfigSecretsOrgModuleFilter, - ConfigSecretsOrgModuleOrderBy, - CreateConfigSecretsOrgModuleInput, - UpdateConfigSecretsOrgModuleInput, - ConfigSecretsOrgModulePatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class ConfigSecretsOrgModuleModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - configSecretsOrgModules: ConnectionResult< - InferSelectResult - >; - }> { - const { document, variables } = buildFindManyDocument( - 'ConfigSecretsOrgModule', - 'configSecretsOrgModules', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - first: args?.first, - last: args?.last, - after: args?.after, - before: args?.before, - offset: args?.offset, - }, - 'ConfigSecretsOrgModuleFilter', - 'ConfigSecretsOrgModuleOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'ConfigSecretsOrgModule', - fieldName: 'configSecretsOrgModules', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - configSecretsOrgModule: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'ConfigSecretsOrgModule', - 'configSecretsOrgModules', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'ConfigSecretsOrgModuleFilter', - 'ConfigSecretsOrgModuleOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'ConfigSecretsOrgModule', - fieldName: 'configSecretsOrgModule', - document, - variables, - transform: (data: { - configSecretsOrgModules?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - configSecretsOrgModule: data.configSecretsOrgModules?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - configSecretsOrgModule: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'ConfigSecretsOrgModule', - 'configSecretsOrgModules', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'ConfigSecretsOrgModuleFilter', - 'ConfigSecretsOrgModuleOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'ConfigSecretsOrgModule', - fieldName: 'configSecretsOrgModule', - document, - variables, - transform: (data: { - configSecretsOrgModules?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - configSecretsOrgModule: data.configSecretsOrgModules?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createConfigSecretsOrgModule: { - configSecretsOrgModule: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'ConfigSecretsOrgModule', - 'createConfigSecretsOrgModule', - 'configSecretsOrgModule', - args.select, - args.data, - 'CreateConfigSecretsOrgModuleInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'ConfigSecretsOrgModule', - fieldName: 'createConfigSecretsOrgModule', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - ConfigSecretsOrgModulePatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateConfigSecretsOrgModule: { - configSecretsOrgModule: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'ConfigSecretsOrgModule', - 'updateConfigSecretsOrgModule', - 'configSecretsOrgModule', - args.select, - args.where.id, - args.data, - 'UpdateConfigSecretsOrgModuleInput', - 'id', - 'configSecretsOrgModulePatch', - connectionFieldsMap, - undefined - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'ConfigSecretsOrgModule', - fieldName: 'updateConfigSecretsOrgModule', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteConfigSecretsOrgModule: { - configSecretsOrgModule: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'ConfigSecretsOrgModule', - 'deleteConfigSecretsOrgModule', - 'configSecretsOrgModule', - { - id: args.where.id, - }, - 'DeleteConfigSecretsOrgModuleInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'ConfigSecretsOrgModule', - fieldName: 'deleteConfigSecretsOrgModule', - document, - variables, - }); - } -} diff --git a/sdk/constructive-sdk/src/modules/orm/models/dbPool.ts b/sdk/constructive-sdk/src/modules/orm/models/dbPool.ts new file mode 100644 index 0000000000..32e26fe980 --- /dev/null +++ b/sdk/constructive-sdk/src/modules/orm/models/dbPool.ts @@ -0,0 +1,245 @@ +/** + * DbPool model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + DbPool, + DbPoolWithRelations, + DbPoolSelect, + DbPoolFilter, + DbPoolOrderBy, + CreateDbPoolInput, + UpdateDbPoolInput, + DbPoolPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class DbPoolModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + dbPools: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'DbPool', + 'dbPools', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'DbPoolFilter', + 'DbPoolOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'DbPool', + fieldName: 'dbPools', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + dbPool: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'DbPool', + 'dbPools', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'DbPoolFilter', + 'DbPoolOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'DbPool', + fieldName: 'dbPool', + document, + variables, + transform: (data: { + dbPools?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + dbPool: data.dbPools?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + dbPool: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'DbPool', + 'dbPools', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'DbPoolFilter', + 'DbPoolOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'DbPool', + fieldName: 'dbPool', + document, + variables, + transform: (data: { + dbPools?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + dbPool: data.dbPools?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createDbPool: { + dbPool: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'DbPool', + 'createDbPool', + 'dbPool', + args.select, + args.data, + 'CreateDbPoolInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'DbPool', + fieldName: 'createDbPool', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + DbPoolPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateDbPool: { + dbPool: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'DbPool', + 'updateDbPool', + 'dbPool', + args.select, + args.where.id, + args.data, + 'UpdateDbPoolInput', + 'id', + 'dbPoolPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'DbPool', + fieldName: 'updateDbPool', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteDbPool: { + dbPool: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'DbPool', + 'deleteDbPool', + 'dbPool', + { + id: args.where.id, + }, + 'DeleteDbPoolInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'DbPool', + fieldName: 'deleteDbPool', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/modules/orm/models/dbPoolConfig.ts b/sdk/constructive-sdk/src/modules/orm/models/dbPoolConfig.ts new file mode 100644 index 0000000000..df67dbab50 --- /dev/null +++ b/sdk/constructive-sdk/src/modules/orm/models/dbPoolConfig.ts @@ -0,0 +1,245 @@ +/** + * DbPoolConfig model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + DbPoolConfig, + DbPoolConfigWithRelations, + DbPoolConfigSelect, + DbPoolConfigFilter, + DbPoolConfigOrderBy, + CreateDbPoolConfigInput, + UpdateDbPoolConfigInput, + DbPoolConfigPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class DbPoolConfigModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + dbPoolConfigs: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'DbPoolConfig', + 'dbPoolConfigs', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'DbPoolConfigFilter', + 'DbPoolConfigOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'DbPoolConfig', + fieldName: 'dbPoolConfigs', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + dbPoolConfig: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'DbPoolConfig', + 'dbPoolConfigs', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'DbPoolConfigFilter', + 'DbPoolConfigOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'DbPoolConfig', + fieldName: 'dbPoolConfig', + document, + variables, + transform: (data: { + dbPoolConfigs?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + dbPoolConfig: data.dbPoolConfigs?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + dbPoolConfig: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'DbPoolConfig', + 'dbPoolConfigs', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'DbPoolConfigFilter', + 'DbPoolConfigOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'DbPoolConfig', + fieldName: 'dbPoolConfig', + document, + variables, + transform: (data: { + dbPoolConfigs?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + dbPoolConfig: data.dbPoolConfigs?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createDbPoolConfig: { + dbPoolConfig: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'DbPoolConfig', + 'createDbPoolConfig', + 'dbPoolConfig', + args.select, + args.data, + 'CreateDbPoolConfigInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'DbPoolConfig', + fieldName: 'createDbPoolConfig', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + DbPoolConfigPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateDbPoolConfig: { + dbPoolConfig: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'DbPoolConfig', + 'updateDbPoolConfig', + 'dbPoolConfig', + args.select, + args.where.id, + args.data, + 'UpdateDbPoolConfigInput', + 'id', + 'dbPoolConfigPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'DbPoolConfig', + fieldName: 'updateDbPoolConfig', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteDbPoolConfig: { + dbPoolConfig: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'DbPoolConfig', + 'deleteDbPoolConfig', + 'dbPoolConfig', + { + id: args.where.id, + }, + 'DeleteDbPoolConfigInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'DbPoolConfig', + fieldName: 'deleteDbPoolConfig', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/modules/orm/models/dbPresetModule.ts b/sdk/constructive-sdk/src/modules/orm/models/dbPresetModule.ts new file mode 100644 index 0000000000..e787354cf8 --- /dev/null +++ b/sdk/constructive-sdk/src/modules/orm/models/dbPresetModule.ts @@ -0,0 +1,245 @@ +/** + * DbPresetModule model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + DbPresetModule, + DbPresetModuleWithRelations, + DbPresetModuleSelect, + DbPresetModuleFilter, + DbPresetModuleOrderBy, + CreateDbPresetModuleInput, + UpdateDbPresetModuleInput, + DbPresetModulePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class DbPresetModuleModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + dbPresetModules: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'DbPresetModule', + 'dbPresetModules', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'DbPresetModuleFilter', + 'DbPresetModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'DbPresetModule', + fieldName: 'dbPresetModules', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + dbPresetModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'DbPresetModule', + 'dbPresetModules', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'DbPresetModuleFilter', + 'DbPresetModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'DbPresetModule', + fieldName: 'dbPresetModule', + document, + variables, + transform: (data: { + dbPresetModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + dbPresetModule: data.dbPresetModules?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + dbPresetModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'DbPresetModule', + 'dbPresetModules', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'DbPresetModuleFilter', + 'DbPresetModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'DbPresetModule', + fieldName: 'dbPresetModule', + document, + variables, + transform: (data: { + dbPresetModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + dbPresetModule: data.dbPresetModules?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createDbPresetModule: { + dbPresetModule: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'DbPresetModule', + 'createDbPresetModule', + 'dbPresetModule', + args.select, + args.data, + 'CreateDbPresetModuleInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'DbPresetModule', + fieldName: 'createDbPresetModule', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + DbPresetModulePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateDbPresetModule: { + dbPresetModule: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'DbPresetModule', + 'updateDbPresetModule', + 'dbPresetModule', + args.select, + args.where.id, + args.data, + 'UpdateDbPresetModuleInput', + 'id', + 'dbPresetModulePatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'DbPresetModule', + fieldName: 'updateDbPresetModule', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteDbPresetModule: { + dbPresetModule: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'DbPresetModule', + 'deleteDbPresetModule', + 'dbPresetModule', + { + id: args.where.id, + }, + 'DeleteDbPresetModuleInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'DbPresetModule', + fieldName: 'deleteDbPresetModule', + 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 15e5dd1552..9cf869b5e3 100644 --- a/sdk/constructive-sdk/src/modules/orm/models/index.ts +++ b/sdk/constructive-sdk/src/modules/orm/models/index.ts @@ -5,23 +5,21 @@ */ export { DefaultIdsModuleModel } from './defaultIdsModule'; export { MembershipTypesModuleModel } from './membershipTypesModule'; -export { UserStateModuleModel } from './userStateModule'; export { SessionSecretsModuleModel } from './sessionSecretsModule'; -export { ConfigSecretsOrgModuleModel } from './configSecretsOrgModule'; export { DevicesModuleModel } from './devicesModule'; export { I18NModuleModel } from './i18NModule'; -export { UserCredentialsModuleModel } from './userCredentialsModule'; export { UserSettingsModuleModel } from './userSettingsModule'; -export { ConfigSecretsUserModuleModel } from './configSecretsUserModule'; +export { UserStateModuleModel } from './userStateModule'; +export { UserCredentialsModuleModel } from './userCredentialsModule'; export { ConnectedAccountsModuleModel } from './connectedAccountsModule'; export { EmailsModuleModel } from './emailsModule'; export { PhoneNumbersModuleModel } from './phoneNumbersModule'; export { RateLimitsModuleModel } from './rateLimitsModule'; export { UsersModuleModel } from './usersModule'; export { WebauthnCredentialsModuleModel } from './webauthnCredentialsModule'; +export { ConfigSecretsUserModuleModel } from './configSecretsUserModule'; export { CryptoAddressesModuleModel } from './cryptoAddressesModule'; export { DenormalizedTableFieldModel } from './denormalizedTableField'; -export { IdentityProvidersModuleModel } from './identityProvidersModule'; export { RlsModuleModel } from './rlsModule'; export { BlueprintModel } from './blueprint'; export { BlueprintTemplateModel } from './blueprintTemplate'; @@ -29,38 +27,45 @@ export { BlueprintConstructionModel } from './blueprintConstruction'; export { CryptoAuthModuleModel } from './cryptoAuthModule'; export { SessionsModuleModel } from './sessionsModule'; export { SecureTableProvisionModel } from './secureTableProvision'; -export { DatabaseProvisionModuleModel } from './databaseProvisionModule'; -export { ConfigSecretsModuleModel } from './configSecretsModule'; +export { IdentityProvidersModuleModel } from './identityProvidersModule'; +export { IntegrationProvidersModuleModel } from './integrationProvidersModule'; +export { DbPoolConfigModel } from './dbPoolConfig'; +export { RealtimeModuleModel } from './realtimeModule'; +export { InfraSecretsModuleModel } from './infraSecretsModule'; +export { InternalSecretsModuleModel } from './internalSecretsModule'; +export { DbPresetModuleModel } from './dbPresetModule'; export { GraphModuleModel } from './graphModule'; -export { MerkleStoreModuleModel } from './merkleStoreModule'; export { RateLimitMetersModuleModel } from './rateLimitMetersModule'; -export { RealtimeModuleModel } from './realtimeModule'; +export { InfraConfigModuleModel } from './infraConfigModule'; export { WebauthnAuthModuleModel } from './webauthnAuthModule'; -export { FunctionInvocationModuleModel } from './functionInvocationModule'; +export { PrincipalAuthModuleModel } from './principalAuthModule'; +export { DbPoolModel } from './dbPool'; export { FunctionModuleModel } from './functionModule'; +export { MerkleStoreModuleModel } from './merkleStoreModule'; +export { DatabaseProvisionModuleModel } from './databaseProvisionModule'; +export { FunctionInvocationModuleModel } from './functionInvocationModule'; export { InvitesModuleModel } from './invitesModule'; -export { PrincipalAuthModuleModel } from './principalAuthModule'; +export { NamespaceModuleModel } from './namespaceModule'; +export { PlansModuleModel } from './plansModule'; export { ComputeLogModuleModel } from './computeLogModule'; export { InferenceLogModuleModel } from './inferenceLogModule'; -export { NamespaceModuleModel } from './namespaceModule'; -export { ResourceModuleModel } from './resourceModule'; export { StorageLogModuleModel } from './storageLogModule'; export { TransferLogModuleModel } from './transferLogModule'; -export { FunctionDeploymentModuleModel } from './functionDeploymentModule'; -export { PlansModuleModel } from './plansModule'; export { BillingProviderModuleModel } from './billingProviderModule'; -export { DbUsageModuleModel } from './dbUsageModule'; +export { FunctionDeploymentModuleModel } from './functionDeploymentModule'; +export { PermissionsModuleModel } from './permissionsModule'; export { GraphExecutionModuleModel } from './graphExecutionModule'; export { HierarchyModuleModel } from './hierarchyModule'; -export { PermissionsModuleModel } from './permissionsModule'; export { NotificationsModuleModel } from './notificationsModule'; +export { RelationProvisionModel } from './relationProvision'; export { ProfilesModuleModel } from './profilesModule'; export { BillingModuleModel } from './billingModule'; -export { RelationProvisionModel } from './relationProvision'; +export { ResourceModuleModel } from './resourceModule'; export { UserAuthModuleModel } from './userAuthModule'; +export { DbUsageModuleModel } from './dbUsageModule'; export { AgentModuleModel } from './agentModule'; export { LimitsModuleModel } from './limitsModule'; -export { MembershipsModuleModel } from './membershipsModule'; export { EntityTypeProvisionModel } from './entityTypeProvision'; export { StorageModuleModel } from './storageModule'; +export { MembershipsModuleModel } from './membershipsModule'; export { EventsModuleModel } from './eventsModule'; diff --git a/sdk/constructive-sdk/src/modules/orm/models/infraConfigModule.ts b/sdk/constructive-sdk/src/modules/orm/models/infraConfigModule.ts new file mode 100644 index 0000000000..12a793b04f --- /dev/null +++ b/sdk/constructive-sdk/src/modules/orm/models/infraConfigModule.ts @@ -0,0 +1,245 @@ +/** + * InfraConfigModule model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + InfraConfigModule, + InfraConfigModuleWithRelations, + InfraConfigModuleSelect, + InfraConfigModuleFilter, + InfraConfigModuleOrderBy, + CreateInfraConfigModuleInput, + UpdateInfraConfigModuleInput, + InfraConfigModulePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class InfraConfigModuleModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + infraConfigModules: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'InfraConfigModule', + 'infraConfigModules', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'InfraConfigModuleFilter', + 'InfraConfigModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'InfraConfigModule', + fieldName: 'infraConfigModules', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + infraConfigModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'InfraConfigModule', + 'infraConfigModules', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'InfraConfigModuleFilter', + 'InfraConfigModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'InfraConfigModule', + fieldName: 'infraConfigModule', + document, + variables, + transform: (data: { + infraConfigModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + infraConfigModule: data.infraConfigModules?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + infraConfigModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'InfraConfigModule', + 'infraConfigModules', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'InfraConfigModuleFilter', + 'InfraConfigModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'InfraConfigModule', + fieldName: 'infraConfigModule', + document, + variables, + transform: (data: { + infraConfigModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + infraConfigModule: data.infraConfigModules?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createInfraConfigModule: { + infraConfigModule: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'InfraConfigModule', + 'createInfraConfigModule', + 'infraConfigModule', + args.select, + args.data, + 'CreateInfraConfigModuleInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'InfraConfigModule', + fieldName: 'createInfraConfigModule', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + InfraConfigModulePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateInfraConfigModule: { + infraConfigModule: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'InfraConfigModule', + 'updateInfraConfigModule', + 'infraConfigModule', + args.select, + args.where.id, + args.data, + 'UpdateInfraConfigModuleInput', + 'id', + 'infraConfigModulePatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'InfraConfigModule', + fieldName: 'updateInfraConfigModule', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteInfraConfigModule: { + infraConfigModule: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'InfraConfigModule', + 'deleteInfraConfigModule', + 'infraConfigModule', + { + id: args.where.id, + }, + 'DeleteInfraConfigModuleInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'InfraConfigModule', + fieldName: 'deleteInfraConfigModule', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/modules/orm/models/infraSecretsModule.ts b/sdk/constructive-sdk/src/modules/orm/models/infraSecretsModule.ts new file mode 100644 index 0000000000..165b4f2d59 --- /dev/null +++ b/sdk/constructive-sdk/src/modules/orm/models/infraSecretsModule.ts @@ -0,0 +1,245 @@ +/** + * InfraSecretsModule model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + InfraSecretsModule, + InfraSecretsModuleWithRelations, + InfraSecretsModuleSelect, + InfraSecretsModuleFilter, + InfraSecretsModuleOrderBy, + CreateInfraSecretsModuleInput, + UpdateInfraSecretsModuleInput, + InfraSecretsModulePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class InfraSecretsModuleModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + infraSecretsModules: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'InfraSecretsModule', + 'infraSecretsModules', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'InfraSecretsModuleFilter', + 'InfraSecretsModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'InfraSecretsModule', + fieldName: 'infraSecretsModules', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + infraSecretsModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'InfraSecretsModule', + 'infraSecretsModules', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'InfraSecretsModuleFilter', + 'InfraSecretsModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'InfraSecretsModule', + fieldName: 'infraSecretsModule', + document, + variables, + transform: (data: { + infraSecretsModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + infraSecretsModule: data.infraSecretsModules?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + infraSecretsModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'InfraSecretsModule', + 'infraSecretsModules', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'InfraSecretsModuleFilter', + 'InfraSecretsModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'InfraSecretsModule', + fieldName: 'infraSecretsModule', + document, + variables, + transform: (data: { + infraSecretsModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + infraSecretsModule: data.infraSecretsModules?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createInfraSecretsModule: { + infraSecretsModule: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'InfraSecretsModule', + 'createInfraSecretsModule', + 'infraSecretsModule', + args.select, + args.data, + 'CreateInfraSecretsModuleInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'InfraSecretsModule', + fieldName: 'createInfraSecretsModule', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + InfraSecretsModulePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateInfraSecretsModule: { + infraSecretsModule: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'InfraSecretsModule', + 'updateInfraSecretsModule', + 'infraSecretsModule', + args.select, + args.where.id, + args.data, + 'UpdateInfraSecretsModuleInput', + 'id', + 'infraSecretsModulePatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'InfraSecretsModule', + fieldName: 'updateInfraSecretsModule', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteInfraSecretsModule: { + infraSecretsModule: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'InfraSecretsModule', + 'deleteInfraSecretsModule', + 'infraSecretsModule', + { + id: args.where.id, + }, + 'DeleteInfraSecretsModuleInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'InfraSecretsModule', + fieldName: 'deleteInfraSecretsModule', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/modules/orm/models/integrationProvidersModule.ts b/sdk/constructive-sdk/src/modules/orm/models/integrationProvidersModule.ts new file mode 100644 index 0000000000..63c765faee --- /dev/null +++ b/sdk/constructive-sdk/src/modules/orm/models/integrationProvidersModule.ts @@ -0,0 +1,253 @@ +/** + * IntegrationProvidersModule model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + IntegrationProvidersModule, + IntegrationProvidersModuleWithRelations, + IntegrationProvidersModuleSelect, + IntegrationProvidersModuleFilter, + IntegrationProvidersModuleOrderBy, + CreateIntegrationProvidersModuleInput, + UpdateIntegrationProvidersModuleInput, + IntegrationProvidersModulePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class IntegrationProvidersModuleModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + integrationProvidersModules: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'IntegrationProvidersModule', + 'integrationProvidersModules', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'IntegrationProvidersModuleFilter', + 'IntegrationProvidersModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'IntegrationProvidersModule', + fieldName: 'integrationProvidersModules', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + integrationProvidersModule: InferSelectResult< + IntegrationProvidersModuleWithRelations, + S + > | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'IntegrationProvidersModule', + 'integrationProvidersModules', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'IntegrationProvidersModuleFilter', + 'IntegrationProvidersModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'IntegrationProvidersModule', + fieldName: 'integrationProvidersModule', + document, + variables, + transform: (data: { + integrationProvidersModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + integrationProvidersModule: data.integrationProvidersModules?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + integrationProvidersModule: InferSelectResult< + IntegrationProvidersModuleWithRelations, + S + > | null; + }> { + const { document, variables } = buildFindManyDocument( + 'IntegrationProvidersModule', + 'integrationProvidersModules', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'IntegrationProvidersModuleFilter', + 'IntegrationProvidersModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'IntegrationProvidersModule', + fieldName: 'integrationProvidersModule', + document, + variables, + transform: (data: { + integrationProvidersModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + integrationProvidersModule: data.integrationProvidersModules?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createIntegrationProvidersModule: { + integrationProvidersModule: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'IntegrationProvidersModule', + 'createIntegrationProvidersModule', + 'integrationProvidersModule', + args.select, + args.data, + 'CreateIntegrationProvidersModuleInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'IntegrationProvidersModule', + fieldName: 'createIntegrationProvidersModule', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + IntegrationProvidersModulePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateIntegrationProvidersModule: { + integrationProvidersModule: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'IntegrationProvidersModule', + 'updateIntegrationProvidersModule', + 'integrationProvidersModule', + args.select, + args.where.id, + args.data, + 'UpdateIntegrationProvidersModuleInput', + 'id', + 'integrationProvidersModulePatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'IntegrationProvidersModule', + fieldName: 'updateIntegrationProvidersModule', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteIntegrationProvidersModule: { + integrationProvidersModule: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'IntegrationProvidersModule', + 'deleteIntegrationProvidersModule', + 'integrationProvidersModule', + { + id: args.where.id, + }, + 'DeleteIntegrationProvidersModuleInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'IntegrationProvidersModule', + fieldName: 'deleteIntegrationProvidersModule', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/modules/orm/models/internalSecretsModule.ts b/sdk/constructive-sdk/src/modules/orm/models/internalSecretsModule.ts new file mode 100644 index 0000000000..cfffbed8d5 --- /dev/null +++ b/sdk/constructive-sdk/src/modules/orm/models/internalSecretsModule.ts @@ -0,0 +1,247 @@ +/** + * InternalSecretsModule model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + InternalSecretsModule, + InternalSecretsModuleWithRelations, + InternalSecretsModuleSelect, + InternalSecretsModuleFilter, + InternalSecretsModuleOrderBy, + CreateInternalSecretsModuleInput, + UpdateInternalSecretsModuleInput, + InternalSecretsModulePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class InternalSecretsModuleModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + internalSecretsModules: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'InternalSecretsModule', + 'internalSecretsModules', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'InternalSecretsModuleFilter', + 'InternalSecretsModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'InternalSecretsModule', + fieldName: 'internalSecretsModules', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + internalSecretsModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'InternalSecretsModule', + 'internalSecretsModules', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'InternalSecretsModuleFilter', + 'InternalSecretsModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'InternalSecretsModule', + fieldName: 'internalSecretsModule', + document, + variables, + transform: (data: { + internalSecretsModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + internalSecretsModule: data.internalSecretsModules?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + internalSecretsModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'InternalSecretsModule', + 'internalSecretsModules', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'InternalSecretsModuleFilter', + 'InternalSecretsModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'InternalSecretsModule', + fieldName: 'internalSecretsModule', + document, + variables, + transform: (data: { + internalSecretsModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + internalSecretsModule: data.internalSecretsModules?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createInternalSecretsModule: { + internalSecretsModule: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'InternalSecretsModule', + 'createInternalSecretsModule', + 'internalSecretsModule', + args.select, + args.data, + 'CreateInternalSecretsModuleInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'InternalSecretsModule', + fieldName: 'createInternalSecretsModule', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + InternalSecretsModulePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateInternalSecretsModule: { + internalSecretsModule: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'InternalSecretsModule', + 'updateInternalSecretsModule', + 'internalSecretsModule', + args.select, + args.where.id, + args.data, + 'UpdateInternalSecretsModuleInput', + 'id', + 'internalSecretsModulePatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'InternalSecretsModule', + fieldName: 'updateInternalSecretsModule', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteInternalSecretsModule: { + internalSecretsModule: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'InternalSecretsModule', + 'deleteInternalSecretsModule', + 'internalSecretsModule', + { + id: args.where.id, + }, + 'DeleteInternalSecretsModuleInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'InternalSecretsModule', + fieldName: 'deleteInternalSecretsModule', + document, + variables, + }); + } +}